@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230908.0 → 0.0.0-nightly-20230909.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 _0x38de=['isAddSuggestion','addMarker:revision-suggestion:insertion','toViewPosition','addClass','isAfter','flat','shift','end','getAttributes','revisionHistoryLabel','hasClass','isAttached','editing','_cleanUp','isRemoved','rootName','delete','setAttribute','upcast','createRevision','then','activeChange','addMarker:revision-suggestion:deletion','model','_getDiff','highest','change:isEnabled','RevisionsRepository','_changeIdToChange','insert','_processTape','add','deletions','config','error','getClientRects','addMarker:revision','ck-revision-history-root-add','changes','adapter','markerNameToElements','high','isEnabled','comment','markerName','currentChangeNumber','pop','softBreak','_data','dataToMarker','distance','getWalker','_removeRevisionMarkers','refresh','length','element','change:numberOfChanges','_getViewObj','RevisionViewer','filter','oldRevisionId','_markMarkers','locale','revision-comment:','endIndex','_getViewForChange','revision:','resolve','revision-suggestion:','_initInteractions','vid_end','change:activeChange','suggestion:','clear','isIncorrect','toData','view','isObject','domConverter','done','userId','restoreRevision','domEvent','change','getRootNames','detachRoot','data-change-id','consumable','sort','catch','parent','revision-suggestion','schema','_changeView','_balloon','removeMarker:revision','isLimit','collaboration.channelId','activeView','push','roots','element:pre','indexOf','change:activeView','backward','revision-viewer','isContent','ck-suggestion-preview-marker','values','index','split','showStack','editor','markerToData','getRoot','_removeUnsupportedChanges','get','name','isEqual','toViewElement','elementToAttribute','getCustomProperty','type','bindElementToMarker','createRangeIn','restoreRevisionCallback','ck-revision-history-root-remove','suggestion','isInline','isReady','toViewRange','consume','listenTo','level','mouseover','bind','deletion','forEach','_joinTapes','enqueueChange','test','uiElement','low','elementEnd','merge','_makeModelFromTape','_makeTape','slice','string','_update','_step','unbindElementFromMarkerName','nextSibling','revisionHistoryAttachChange','plugins','attachChange','WidgetToolbarRepository','-new','_getRevisionsRange','revisionHistory','find','attributesBefore','ck-revision-history-root--active','default','enableReadOnlyMode','ck-revision-history-root-','item','POSITIVE_INFINITY','_appendChild','viewItem','_cleanMarkers','authors','_refreshStartEndIndex','updatePosition','_fixObsoleteTags','isCollapsed','findIndex','mapper','elementStart','conversion','ck-suggestion-marker','keys','createUIElement','selection','ck-suggestion-preview-marker-','ck-editor__editable__overlay','repository','stop','change:isReady','revision','_getChangeFromId','getRevisionRootsAttributes','markersEnd','has','isAtStart','getChild','remove','checkAttribute','span','start','vid_start','data-revision-','removeClass','mapViewToDom','_markInsertions','isBlock','concat','abs','insertion','_findChangeIdFromDomTarget','vid','markerToHighlight','nodeAfter','dataDowncast','changeId','loadRevisionData','writer','newRevisionId','pairId','from','createPositionFromPath','unshift','data','next','commands','startsWith','offsetSize','set','createPositionBefore','addRevision','isBefore','revision-start','nextPosition','reconvertMarker','target','top','text','getRevision','getIndex','markersStart','attributes','splice','map','_makeModelFromViewString','range','_threeWayMerge','createRange','toModel','isAtEnd','for','isNavigationMode','affectsData','pluginName','_setDistance','getDomRoot','isAdded','mousedown','attributesAfter','processor','_activeViewTarget','observeMarkers','_markSuggestions','parse','side','ck-suggestion-marker--active','isRemoveSuggestion','isOnRoot','document','hasAttribute','startIndex','diffData','addHighlight','editingDowncast','getAttribute','execute','removeMarker:revision-suggestion','isSuggestion','all','destroy','showNextChange','left','modelRange','forceDisabled','diff','previousPosition','forward','addRoot','insertions','ck-suggestion-marker-','downcastDispatcher','showPreviousChange','markerRange','_setConversion','markers','useFillerType'];(function(_0x10efc5,_0x38de09){const _0x4a7e7d=function(_0x33131f){while(--_0x33131f){_0x10efc5['push'](_0x10efc5['shift']());}};_0x4a7e7d(++_0x38de09);}(_0x38de,0xab));const _0x4a7e=function(_0x10efc5,_0x38de09){_0x10efc5=_0x10efc5-0x0;let _0x4a7e7d=_0x38de[_0x10efc5];return _0x4a7e7d;};import{Plugin as _0x317eec,Command as _0x4a4255}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2aa636}from'ckeditor5/src/utils';import{ContextualBalloon as _0x3596b6}from'ckeditor5/src/ui';import{DocumentFragment as _0x2e212a,Element as _0x4418da,Text as _0x205bbd,ViewDocumentFragment as _0x405b5f,ViewText as _0x83b51f,ViewElement as _0x46dda2,ViewContainerElement as _0x27fabf,ViewAttributeElement as _0x412101,ViewEmptyElement as _0x6cdf7,ViewRawElement as _0x5e42ae,ViewUIElement as _0xfe1d67}from'ckeditor5/src/engine';import{Users as _0x18c015,getMarkerDomElement as _0x347b17}from'ckeditor5-collaboration/src/collaboration-core';import _0x1bd20b from'./ui/revisionviewer/changedetailsview';import _0x2f6749 from'./revisionsrepository';import _0x3f5468 from'./changeitem';import{default as _0xcb2177}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x110810}from'lodash-es';const tt={'c':_0x27fabf,'a':_0x412101,'e':_0x6cdf7,'r':_0x5e42ae,'u':_0xfe1d67};export default class d extends _0x317eec{static get[_0x4a7e('0x51')](){return _0x4a7e('0xb6');}static get['requires'](){return[_0x18c015,_0x3596b6,_0x2f6749];}constructor(_0x401a4d){super(_0x401a4d),this[_0x4a7e('0xf')]=this[_0x4a7e('0xec')][_0x4a7e('0x116')][_0x4a7e('0xf0')](_0x4a7e('0x97')),this[_0x4a7e('0x38')](_0x4a7e('0x91'),null),this[_0x4a7e('0x38')](_0x4a7e('0xde'),null),this[_0x4a7e('0x58')]=null,this[_0x4a7e('0x38')](_0x4a7e('0x70'),null),this[_0x4a7e('0x38')]('isReady',!0x1),this[_0x4a7e('0x38')]('isEnabled',!0x0),this['on'](_0x4a7e('0x96'),(_0x1e409c,_0x266690,_0x4d5052)=>{this[_0x4a7e('0x91')]=null,this[_0x4a7e('0xde')]=null,this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')][_0x4a7e('0xcf')](_0x696861=>{for(const _0x3ed897 of this[_0x4a7e('0xec')]['editing'][_0x4a7e('0xc8')][_0x4a7e('0x60')][_0x4a7e('0xe0')])_0x4d5052?_0x696861[_0x4a7e('0x1f')]('ck-editor__editable__overlay',_0x3ed897):_0x696861[_0x4a7e('0x7f')](_0x4a7e('0xe'),_0x3ed897);});}),this[_0x4a7e('0x103')](_0x4a7e('0x4f'))['to'](this,_0x4a7e('0x91'),_0x3f593a=>null!==_0x3f593a),this[_0x4a7e('0x103')](_0x4a7e('0xa9'))['to'](this,'isReady',this,_0x4a7e('0x70'),this,'activeChange',(_0x2e9acd,_0x1468b6,_0x19f3a6)=>_0x2e9acd&&_0x19f3a6?_0x1468b6[_0x4a7e('0xa2')]['getIndex'](_0x19f3a6):0x0),this['bind']('numberOfChanges')['to'](this,_0x4a7e('0xfd'),this,'diff',(_0x6da837,_0x28cc08)=>_0x6da837?_0x28cc08['changes'][_0x4a7e('0xb2')]:0x0),this[_0x4a7e('0xd9')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this[_0x4a7e('0xda')]=this['editor']['plugins'][_0x4a7e('0xf0')](_0x3596b6);}['init'](){const _0x282e10=this[_0x4a7e('0xec')],_0x124eee=new ShowChangeCommand(_0x282e10,{'direction':_0x4a7e('0xe4')}),_0x58899c=new ShowChangeCommand(_0x282e10,{'direction':_0x4a7e('0x72')});(_0x282e10[_0x4a7e('0x35')]['add'](_0x4a7e('0x77'),_0x124eee),_0x282e10[_0x4a7e('0x35')]['add'](_0x4a7e('0x6c'),_0x58899c),_0x282e10[_0x4a7e('0x35')][_0x4a7e('0x9b')](_0x4a7e('0xcd'),new RestoreRevisionCommand(_0x282e10)),this['on'](_0x4a7e('0xb4'),()=>{_0x124eee[_0x4a7e('0xb1')](),_0x58899c[_0x4a7e('0xb1')]();}),this[_0x4a7e('0x79')](),this['_initInteractions'](),_0x282e10[_0x4a7e('0x120')](_0x4a7e('0xe5')),_0x282e10[_0x4a7e('0x116')][_0x4a7e('0x16')](_0x4a7e('0x118')))&&_0x282e10['plugins'][_0x4a7e('0xf0')]('WidgetToolbarRepository')[_0x4a7e('0x6f')](_0x4a7e('0xe5'));}async['getRevisionData'](_0x5614c6){await this['loadRevisionData'](_0x5614c6);const _0x4ca053={};for(const _0x189b29 in _0x5614c6[_0x4a7e('0x63')]){if(_0x5614c6[_0x4a7e('0x63')][_0x189b29]['attachChange']&&!_0x5614c6[_0x4a7e('0x63')][_0x189b29][_0x4a7e('0x117')][_0x4a7e('0x87')])continue;const _0x5ca211=this[_0x4a7e('0xb0')](JSON[_0x4a7e('0x5b')](_0x5614c6[_0x4a7e('0x63')][_0x189b29][_0x4a7e('0x74')])),_0x5ab618=this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')][_0x4a7e('0x60')],_0x290710=new _0x405b5f(_0x5ab618,_0x5ca211[_0x4a7e('0x47')](_0x3d7623=>this[_0x4a7e('0xb5')](_0x3d7623)));this['editor'][_0x4a7e('0x33')][_0x4a7e('0x57')][_0x4a7e('0x7b')]('marked'),_0x4ca053[_0x189b29]=this['editor'][_0x4a7e('0x33')]['processor'][_0x4a7e('0xc7')](_0x290710),this['editor'][_0x4a7e('0x33')]['processor'][_0x4a7e('0x7b')](_0x4a7e('0x11f'));}return _0x4ca053;}async[_0x4a7e('0x14')](_0x2abb76){await this[_0x4a7e('0x2c')](_0x2abb76);const _0x3b839a={};for(const _0x5e10b9 in _0x2abb76[_0x4a7e('0x63')])_0x2abb76[_0x4a7e('0x63')][_0x5e10b9][_0x4a7e('0x117')]&&!_0x2abb76[_0x4a7e('0x63')][_0x5e10b9][_0x4a7e('0x117')][_0x4a7e('0x87')]||(_0x3b839a[_0x5e10b9]=_0x2abb76[_0x4a7e('0x63')][_0x5e10b9][_0x4a7e('0x56')]||{});return _0x3b839a;}[_0x4a7e('0xb0')](_0x1944b9){return(_0x1944b9=_0x1944b9[_0x4a7e('0xb7')](_0x1fdd65=>!_0x1fdd65[_0x4a7e('0xf1')]||_0x4a7e('0x3c')!==_0x1fdd65[_0x4a7e('0xf1')]&&'revision-end'!==_0x1fdd65[_0x4a7e('0xf1')]))[_0x4a7e('0x105')](_0x232f95=>{_0x4a7e('0x110')!=typeof _0x232f95&&(_0x232f95['children']=this[_0x4a7e('0xb0')](_0x232f95['children']),_0x232f95[_0x4a7e('0x45')]=_0x232f95[_0x4a7e('0x45')][_0x4a7e('0xb7')](_0x4c9623=>!_0x4c9623[0x0][_0x4a7e('0x36')](_0x4a7e('0x1e'))));}),_0x1944b9;}async['compare'](_0x29be2d,_0x14715b,_0x4ca863=!0x1){if(!this[_0x4a7e('0xa6')])return;const _0x510eeb=this['diff'],_0x34a9c1=this['repository'],_0x34dfbb='string'==typeof _0x29be2d?_0x34a9c1[_0x4a7e('0x42')](_0x29be2d):_0x29be2d,_0x4a8202=_0x4a7e('0x110')==typeof _0x14715b?_0x34a9c1[_0x4a7e('0x42')](_0x14715b):_0x14715b,_0x5423a0=_0x34dfbb['id'],_0x29b14a=_0x4a8202?_0x4a8202['id']:null;if(!_0x4ca863&&this[_0x4a7e('0x70')]&&this[_0x4a7e('0x70')][_0x4a7e('0x2e')]===_0x5423a0&&this[_0x4a7e('0x70')][_0x4a7e('0xb8')]===_0x29b14a)return Promise[_0x4a7e('0xbf')]();this[_0x4a7e('0xfd')]=!0x1,this[_0x4a7e('0xde')]=null,this[_0x4a7e('0x91')]=null,this[_0x4a7e('0x70')]=new _0xcb2177(_0x5423a0,_0x29b14a);const _0x7075af=this[_0x4a7e('0x11a')](_0x34dfbb,_0x4a8202,!0x0)[_0x4a7e('0x47')](_0x1e0832=>this['loadRevisionData'](_0x1e0832));return _0x7075af[_0x4a7e('0xdf')](new Promise(_0x576ff8=>{setTimeout(_0x576ff8,0x14);})),Promise[_0x4a7e('0x6a')](_0x7075af)[_0x4a7e('0x90')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x27826c=this['_getDiff'](_0x5423a0,_0x29b14a);for(const _0x2fccc7 of _0x27826c[_0x4a7e('0xa2')])this[_0x4a7e('0x98')][_0x4a7e('0x38')](_0x2fccc7['id'],_0x2fccc7);this[_0x4a7e('0xec')]['model'][_0x4a7e('0x107')]({'isUndoable':!0x1},_0x37ece5=>{for(const _0x58051f of this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x60')][_0x4a7e('0xd0')]())_0x37ece5[_0x4a7e('0xd1')](_0x58051f);for(const _0x585895 of Object[_0x4a7e('0xa')](_0x27826c['model'])){const _0x1cc695=_0x37ece5[_0x4a7e('0x73')](_0x585895);for(const _0x57a18d of Object['keys'](_0x27826c[_0x4a7e('0x45')][_0x585895]))_0x37ece5[_0x4a7e('0x8d')](_0x57a18d,_0x27826c[_0x4a7e('0x45')][_0x585895][_0x57a18d],_0x1cc695);_0x37ece5['insert'](_0x27826c[_0x4a7e('0x93')][_0x585895],_0x1cc695,0x0);}}),this[_0x4a7e('0x70')]['_setChanges'](this['_sortAndFilterDiffChanges'](_0x27826c['changes'])),this[_0x4a7e('0xfd')]=!0x0;})[_0x4a7e('0xd5')](_0x9bc716=>{console[_0x4a7e('0x9e')](_0x9bc716),this['_cleanUp'](),_0x510eeb&&(this[_0x4a7e('0x70')]=_0x510eeb),this[_0x4a7e('0xfd')]=!0x0;});}['addRevisionData'](_0xa074cb,_0x3b0127){const _0x198b32=this[_0x4a7e('0xf')][_0x4a7e('0x8f')](_0xa074cb);return _0x198b32['on']('_update',(_0xe6c356,_0x38a981,_0x5b0476)=>_0x3b0127(_0x38a981,_0x5b0476,_0x198b32)),this[_0x4a7e('0xf')][_0x4a7e('0x3a')](_0x198b32),_0x198b32;}[_0x4a7e('0x2c')](_0x260bad){if(!_0x260bad||_0x260bad[_0x4a7e('0x63')])return Promise[_0x4a7e('0xbf')]();{const _0x38888f=this['editor']['config'][_0x4a7e('0xf0')](_0x4a7e('0xdd'));return this[_0x4a7e('0xa3')][_0x4a7e('0x42')]({'channelId':_0x38888f,'revisionId':_0x260bad['id']})[_0x4a7e('0x90')](_0x11ac41=>{_0x260bad[_0x4a7e('0x111')]({'diffData':_0x11ac41[_0x4a7e('0x63')]},!0x0);});}}[_0x4a7e('0x89')](){this[_0x4a7e('0x91')]=null,this['_cleanMarkers'](),this[_0x4a7e('0xd9')]&&this[_0x4a7e('0xd9')]['destroy'](),this['_changeView']=null,this[_0x4a7e('0x98')][_0x4a7e('0xc5')](),this[_0x4a7e('0xec')]['model'][_0x4a7e('0x107')]({'isUndoable':!0x1},_0x477ec2=>{for(const _0x4718aa of this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x60')]['getRootNames']())_0x477ec2[_0x4a7e('0xd1')](_0x4718aa);});}['_sortAndFilterDiffChanges'](_0x35ae4a){const _0x11afb4=[],_0x2d40c2=new Map();for(const _0x337312 of this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x60')]['getRootNames']()){const _0x4d8983=this['editor'][_0x4a7e('0x88')]['view'][_0x4a7e('0x53')](_0x337312);if(!_0x4d8983)continue;const _0x570216=_0x4d8983[_0x4a7e('0x9f')]()['item'](0x0);_0x570216&&(_0x11afb4[_0x4a7e('0xdf')](_0x337312),_0x2d40c2['set'](_0x337312,_0x570216));}return _0x11afb4[_0x4a7e('0xd4')]((_0x436010,_0x2a4c77)=>{const _0x599781=_0x2d40c2['get'](_0x436010),_0x3e19c6=_0x2d40c2[_0x4a7e('0xf0')](_0x2a4c77);return _0x599781['y']-_0x3e19c6['y']||_0x599781['x']-_0x3e19c6['x'];}),(_0x35ae4a=_0x35ae4a[_0x4a7e('0xb7')](_0x46458f=>_0x11afb4['includes'](_0x46458f[_0x4a7e('0x8b')])))['sort']((_0x5d2bb6,_0x5190aa)=>_0x11afb4[_0x4a7e('0xe2')](_0x5d2bb6[_0x4a7e('0x8b')])-_0x11afb4['indexOf'](_0x5190aa[_0x4a7e('0x8b')])),_0x35ae4a;}[_0x4a7e('0x10e')](_0x3bd9e6){const _0x4ce4c2=Array['from'](_0x3bd9e6['markers'])['filter'](([_0x487c47,_0x3334f1])=>_0x487c47['startsWith']('revision:')&&!_0x3334f1[_0x4a7e('0x4')]),_0x3fe8eb=Array[_0x4a7e('0x30')](this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0xf8')](_0x3bd9e6)[_0x4a7e('0xaf')]({'singleCharacters':!0x0}));if(0x0!=_0x4ce4c2[_0x4a7e('0xb2')])for(const _0x24a73d of _0x3fe8eb){const [_0x2ac7c7,_0x51dc76]=_0x4ce4c2[0x0],[,_0x31e43b,_0x4841c3]=_0x2ac7c7['split'](':');if(_0x51dc76[_0x4a7e('0x83')][_0x4a7e('0xf2')](_0x24a73d[_0x4a7e('0x3d')])&&_0x4ce4c2[_0x4a7e('0x82')](),(_0x24a73d[_0x4a7e('0x71')][_0x4a7e('0xf2')](_0x51dc76['start'])||_0x24a73d[_0x4a7e('0x71')]['isAfter'](_0x51dc76[_0x4a7e('0x1c')]))&&(_0x4a7e('0x25')==_0x31e43b?_0x24a73d[_0x4a7e('0x54')]={'userId':_0x4841c3}:_0x4a7e('0x104')==_0x31e43b&&(_0x24a73d['isRemoved']={'userId':_0x4841c3})),0x0==_0x4ce4c2[_0x4a7e('0xb2')])break;}return _0x3fe8eb;}['_refreshStartEndIndex'](_0x3c1cae){const _0x594a03=new Map();for(let _0x48b8b6=0x0;_0x48b8b6<_0x3c1cae['length'];_0x48b8b6++)'text'===_0x3c1cae[_0x48b8b6][_0x4a7e('0xf6')]?(_0x3c1cae[_0x48b8b6]['item'][_0x4a7e('0x62')]=_0x48b8b6,_0x3c1cae[_0x48b8b6]['item'][_0x4a7e('0xbc')]=_0x48b8b6):(_0x4a7e('0x7')===_0x3c1cae[_0x48b8b6][_0x4a7e('0xf6')]?_0x3c1cae[_0x48b8b6][_0x4a7e('0x122')]['startIndex']=_0x48b8b6:_0x4a7e('0x10b')===_0x3c1cae[_0x48b8b6][_0x4a7e('0xf6')]&&(_0x3c1cae[_0x48b8b6][_0x4a7e('0x122')][_0x4a7e('0xbc')]=_0x48b8b6),_0x594a03['set'](_0x3c1cae[_0x48b8b6]['id'],_0x48b8b6));for(const _0xaabe82 of _0x594a03[_0x4a7e('0xe8')]())_0x4a7e('0x7')===_0x3c1cae[_0xaabe82]['type']?_0x3c1cae[_0xaabe82][_0x4a7e('0x122')][_0x4a7e('0xbc')]=_0x594a03[_0x4a7e('0xf0')](_0x3c1cae[_0xaabe82][_0x4a7e('0x2f')]):_0x4a7e('0x10b')===_0x3c1cae[_0xaabe82]['type']&&(_0x3c1cae[_0xaabe82][_0x4a7e('0x122')][_0x4a7e('0x62')]=_0x594a03['get'](_0x3c1cae[_0xaabe82][_0x4a7e('0x2f')]));}[_0x4a7e('0x9a')](_0x211b4a){for(let _0x1fc794=0x0;_0x1fc794<_0x211b4a['length'];_0x1fc794++){if(_0x4a7e('0x7')===_0x211b4a[_0x1fc794]['type'])_0x211b4a[_0x1fc794][_0x4a7e('0x122')][_0x4a7e('0x62')]=_0x1fc794;else{if(_0x4a7e('0x10b')===_0x211b4a[_0x1fc794][_0x4a7e('0xf6')]){_0x211b4a[_0x1fc794][_0x4a7e('0x122')][_0x4a7e('0xbc')]=_0x1fc794;const _0x24f423=_0x211b4a[_0x1fc794]['item'][_0x4a7e('0x62')];_0x211b4a[_0x24f423][_0x4a7e('0x2f')]=_0x211b4a[_0x1fc794]['id'],_0x211b4a[_0x1fc794][_0x4a7e('0x2f')]=_0x211b4a[_0x24f423]['id'];}else _0x211b4a[_0x1fc794][_0x4a7e('0x122')][_0x4a7e('0x62')]=_0x1fc794,_0x211b4a[_0x1fc794][_0x4a7e('0x122')][_0x4a7e('0xbc')]=_0x1fc794,_0x211b4a[_0x1fc794][_0x4a7e('0x2f')]=null;}_0x211b4a[_0x1fc794][_0x4a7e('0x44')]||(_0x211b4a[_0x1fc794][_0x4a7e('0x44')]=[],_0x211b4a[_0x1fc794][_0x4a7e('0x15')]=[]);}}[_0x4a7e('0x21')](_0x76f406,_0x4db4d0){const _0x20ea7e=_0x76f406[_0x4a7e('0xb7')](_0x5b894b=>!_0x5b894b['isAdded']);for(let _0x5c400b=0x0;_0x5c400b<_0x4db4d0['length'];_0x5c400b++)_0x4db4d0[_0x5c400b][_0x4a7e('0x54')]&&(_0x20ea7e[_0x5c400b][_0x4a7e('0x54')]=_0x4db4d0[_0x5c400b]['isAdded']);}[_0x4a7e('0x48')](_0x592ed8){const _0x469b44=JSON[_0x4a7e('0x5b')](_0x592ed8),_0x2df612=this[_0x4a7e('0xec')][_0x4a7e('0x88')]['view'][_0x4a7e('0x60')],_0x206bf0=new _0x405b5f(_0x2df612,_0x469b44['map'](_0x21cc41=>this[_0x4a7e('0xb5')](_0x21cc41)));return this[_0x4a7e('0xec')]['data'][_0x4a7e('0x4c')](_0x206bf0);}[_0x4a7e('0xb5')](_0xdffc2d){const _0x34b2e5=this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')]['document'];if(_0x4a7e('0x110')==typeof _0xdffc2d)return new _0x83b51f(_0x34b2e5,_0xdffc2d);{const _0x25958c=_0xdffc2d['children'][_0x4a7e('0x47')](_0x4fd20d=>this[_0x4a7e('0xb5')](_0x4fd20d));return new(tt[_0xdffc2d['type']]||_0x46dda2)(_0x34b2e5,_0xdffc2d[_0x4a7e('0xf1')],_0xdffc2d[_0x4a7e('0x45')],_0x25958c);}}[_0x4a7e('0x94')](_0x30c7fa,_0x2c1b2c=null){const _0x52a133=this['repository'][_0x4a7e('0x42')](_0x30c7fa),_0x255d29=_0x2c1b2c?this['repository'][_0x4a7e('0x42')](_0x2c1b2c):null,_0x2f3bb1=this[_0x4a7e('0x11a')](_0x52a133,_0x255d29),_0x486f61=_0x2f3bb1[_0x2f3bb1[_0x4a7e('0xb2')]-0x1],_0x556230=new Map(),_0x5e0807={'model':{},'attributes':{},'changes':[]},_0x36fea0=new Set(),_0x4ce8bc=new Map();for(let _0x479feb=_0x2f3bb1[_0x4a7e('0xb2')]-0x1;_0x479feb>=0x0;_0x479feb--){const _0x5bbe6b=_0x2f3bb1[_0x479feb];for(const _0x25fee2 of Object['keys'](_0x5bbe6b['diffData']))if(_0x5bbe6b['diffData'][_0x25fee2]['attachChange']){const _0x103fb6=_0x5bbe6b['diffData'][_0x25fee2][_0x4a7e('0x117')];_0x103fb6[_0x4a7e('0x87')]?(_0x36fea0[_0x4a7e('0x9b')](_0x25fee2),_0x4ce8bc[_0x4a7e('0x16')](_0x25fee2)&&_0x4ce8bc[_0x4a7e('0xf0')](_0x25fee2)[_0x4a7e('0xcc')]==_0x103fb6[_0x4a7e('0xcc')]?_0x4ce8bc[_0x4a7e('0x8c')](_0x25fee2):_0x4ce8bc[_0x4a7e('0x38')](_0x25fee2,_0x103fb6)):_0x4ce8bc[_0x4a7e('0x16')](_0x25fee2)?(_0x36fea0[_0x4a7e('0x8c')](_0x25fee2),_0x4ce8bc['delete'](_0x25fee2)):(_0x36fea0[_0x4a7e('0x9b')](_0x25fee2),_0x4ce8bc[_0x4a7e('0x38')](_0x25fee2,_0x103fb6));}else _0x36fea0[_0x4a7e('0x9b')](_0x25fee2);}for(const _0x354e05 of _0x36fea0){const _0x426f26=_0x4ce8bc[_0x4a7e('0x16')](_0x354e05)&&!_0x4ce8bc[_0x4a7e('0xf0')](_0x354e05)[_0x4a7e('0x87')];let _0x39d128=_0x426f26?_0x2f3bb1[_0x4a7e('0xb2')]-0x1:0x0;const _0x82c364=_0x426f26?-0x1:0x1;for(;_0x2f3bb1[_0x39d128];){const _0x19aded=_0x2f3bb1[_0x39d128];if(_0x19aded[_0x4a7e('0x63')][_0x354e05]){const _0x29ab1b=_0x426f26?_0x19aded[_0x4a7e('0x63')][_0x354e05][_0x4a7e('0x11d')]:_0x19aded[_0x4a7e('0x63')][_0x354e05][_0x4a7e('0x56')];_0x5e0807[_0x4a7e('0x45')][_0x354e05]=_0x29ab1b?_0x110810(_0x29ab1b):{};break;}_0x39d128+=_0x82c364;}}for(const _0x2ba9f2 of _0x2f3bb1){_0x2ba9f2['model']={};for(const _0x1031a1 of _0x2ba9f2[_0x4a7e('0x0')])_0x556230['set'](_0x1031a1['id'],_0x1031a1);for(const _0x8b8a1d of _0x36fea0){const _0x5b2c80=_0x2ba9f2[_0x4a7e('0x63')][_0x8b8a1d]?_0x2ba9f2['diffData'][_0x8b8a1d][_0x4a7e('0x74')]:'[]',_0x34e733=_0x2ba9f2['diffData'][_0x8b8a1d]?_0x2ba9f2[_0x4a7e('0x63')][_0x8b8a1d][_0x4a7e('0x9c')]:'[]';_0x2ba9f2[_0x4a7e('0x93')][_0x8b8a1d]={'insertions':this[_0x4a7e('0x48')](_0x5b2c80),'deletions':this[_0x4a7e('0x48')](_0x34e733)};}}for(const _0x1142cf of _0x36fea0){let _0x2bb947=null,_0x4192b9=0x0;const _0x3b0b2a=new Map(Array['from'](_0x52a133[_0x4a7e('0x93')][_0x1142cf][_0x4a7e('0x74')][_0x4a7e('0x7a')])['filter'](([_0x173bab])=>!_0x173bab[_0x4a7e('0x36')]('revision:')));let _0x42a6b7=0x0;for(const _0x5e5173 of _0x2f3bb1){const _0x516b04=this[_0x4a7e('0x10e')](_0x5e5173[_0x4a7e('0x93')][_0x1142cf]['insertions']);_0x5e5173==_0x52a133?(_0x2bb947=_0x516b04,_0x4192b9=_0x2bb947[_0x4a7e('0xb2')],_0x2bb947[_0x4a7e('0x105')](_0x3e633c=>{_0x3e633c['id']=_0x42a6b7++;}),this[_0x4a7e('0x9a')](_0x2bb947)):this[_0x4a7e('0x21')](_0x2bb947,_0x516b04);const _0x2b2b5f=_0x2bb947[_0x4a7e('0xb7')](_0x149a0c=>!_0x149a0c[_0x4a7e('0x54')])[_0x4a7e('0x47')](_0x1647a9=>_0x1647a9['id']);let _0x216641=0x0;const _0x2ffe41=this[_0x4a7e('0x10e')](_0x5e5173[_0x4a7e('0x93')][_0x1142cf]['deletions']);_0x2ffe41['forEach'](_0x127268=>{_0x127268[_0x4a7e('0x8a')]?_0x127268['id']=_0x4192b9++:_0x127268['id']=_0x2b2b5f[_0x216641++];}),this[_0x4a7e('0x9a')](_0x2ffe41),this['_setDistance'](_0x2bb947,_0x4a7e('0x54')),this[_0x4a7e('0x52')](_0x2ffe41,_0x4a7e('0x8a')),_0x5e5173==_0x52a133&&this[_0x4a7e('0xb9')](_0x2bb947,_0x3b0b2a),_0x2bb947=this[_0x4a7e('0x106')](_0x2bb947,_0x2ffe41),this[_0x4a7e('0x1')](_0x2bb947),this[_0x4a7e('0x52')](_0x2bb947,'isRemoved');}_0x2bb947=_0x2bb947[_0x4a7e('0xb7')](_0x2f7a88=>!(_0x2f7a88[_0x4a7e('0x54')]&&_0x2f7a88[_0x4a7e('0x8a')]));const _0x2673e4=new Map(_0x486f61[_0x4a7e('0x93')][_0x1142cf][_0x4a7e('0x9c')][_0x4a7e('0x7a')]),_0x45eb25=new Set(_0x3b0b2a[_0x4a7e('0xa')]());for(const _0x28a2e5 of _0x2673e4[_0x4a7e('0xa')]())_0x45eb25[_0x4a7e('0x8c')](_0x28a2e5);this[_0x4a7e('0x5a')](_0x2bb947,_0x45eb25),this[_0x4a7e('0x3')](_0x2bb947),_0x2bb947=this['_removeMissingPairs'](_0x2bb947),_0x2bb947=this['_markMismatchedRemovedTags'](_0x2bb947),_0x2bb947=this['_removeUnsupportedChanges'](_0x2bb947);const {root:_0x555128,changes:_0xcb2654}=this[_0x4a7e('0x10d')](_0x2bb947,_0x556230,_0x1142cf);_0x5e0807['model'][_0x1142cf]=_0x555128;const _0x27a955=_0x4ce8bc[_0x4a7e('0xf0')](_0x1142cf);if(_0x27a955){const _0x5a52d2=_0x556230[_0x4a7e('0xf0')](_0x27a955[_0x4a7e('0xcc')]),_0x1203d0=new _0x3f5468({'author':_0x5a52d2,'type':_0x27a955[_0x4a7e('0x87')]?_0x4a7e('0x9b'):_0x4a7e('0x19'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1142cf});_0xcb2654[_0x4a7e('0x32')](_0x1203d0),_0x5e0807[_0x4a7e('0x45')][_0x1142cf][_0x4a7e('0x115')]=_0x1203d0['id'];}_0x5e0807[_0x4a7e('0xa2')]=_0x5e0807['changes'][_0x4a7e('0x23')](_0xcb2654);}return _0x5e0807;}['_markMarkers'](_0x11db60,_0xb4278e){for(let _0x191e7a=0x0;_0x191e7a<_0x11db60['length'];_0x191e7a++)for(const [_0x2144de,_0x3eb249]of _0xb4278e)_0x3eb249[_0x4a7e('0x1c')][_0x4a7e('0xf2')](_0x11db60[_0x191e7a]['previousPosition'])&&_0x11db60[_0x191e7a][_0x4a7e('0x44')][_0x4a7e('0xdf')](_0x2144de),_0x3eb249[_0x4a7e('0x83')][_0x4a7e('0xf2')](_0x11db60[_0x191e7a]['nextPosition'])&&_0x11db60[_0x191e7a][_0x4a7e('0x15')][_0x4a7e('0xdf')](_0x2144de);}[_0x4a7e('0x106')](_0x188e84,_0x8ec45d){let _0xe4851e=[],_0x2f48d2=0x0,_0x1d5253=0x0;for(;_0x2f48d2<_0x188e84[_0x4a7e('0xb2')]||_0x1d5253<_0x8ec45d[_0x4a7e('0xb2')];){const _0x26f1e5=_0x188e84[_0x2f48d2]||{},_0x435e36=_0x8ec45d[_0x1d5253]||{};if(_0x26f1e5['id']==_0x435e36['id'])_0x2f48d2++,_0x1d5253++,_0xe4851e[_0x4a7e('0xdf')](_0x26f1e5);else{if(_0x435e36['isRemoved']&&_0x26f1e5['isAdded']){const {commonTape:_0x353b2,iEnd:_0x5effac,jEnd:_0x5b4836}=this[_0x4a7e('0x4a')](_0x188e84,_0x2f48d2,_0x8ec45d,_0x1d5253);_0xe4851e=_0xe4851e[_0x4a7e('0x23')](_0x353b2),_0x2f48d2=_0x5effac,_0x1d5253=_0x5b4836;}else _0x435e36[_0x4a7e('0x8a')]?(_0x1d5253++,_0xe4851e['push'](_0x435e36)):(_0x2f48d2++,_0xe4851e[_0x4a7e('0xdf')](_0x26f1e5));}}return _0xe4851e;}[_0x4a7e('0x5a')](_0x9b0f33,_0x31cf2a){const _0x226253=[];for(let _0x1daecf=0x0;_0x1daecf<_0x9b0f33['length'];_0x1daecf++){for(let _0x29913c=0x0;_0x29913c<_0x9b0f33[_0x1daecf][_0x4a7e('0x44')][_0x4a7e('0xb2')];_0x29913c++){const _0x287e66=_0x9b0f33[_0x1daecf][_0x4a7e('0x44')][_0x29913c];if(!_0x31cf2a[_0x4a7e('0x16')](_0x287e66))continue;const {group:_0x329e28,type:_0x307595,authorId:_0x898364}=_0x51b3ca(_0x287e66);_0x4a7e('0xd7')!=_0x329e28||_0x4a7e('0x25')!=_0x307595&&_0x4a7e('0x104')!=_0x307595||(_0x226253[_0x4a7e('0x32')]({'type':_0x307595,'name':_0x287e66,'userId':_0x898364}),_0x9b0f33[_0x1daecf][_0x4a7e('0x44')][_0x4a7e('0x46')](_0x29913c,0x1),_0x29913c--);}_0x3f6357(_0x9b0f33[_0x1daecf]);for(let _0x201cca=0x0;_0x201cca<_0x9b0f33[_0x1daecf][_0x4a7e('0x15')][_0x4a7e('0xb2')];_0x201cca++){const _0x10f379=_0x9b0f33[_0x1daecf][_0x4a7e('0x15')][_0x201cca];if(!_0x31cf2a[_0x4a7e('0x16')](_0x10f379))continue;const {group:_0x458567,type:_0x165d59}=_0x51b3ca(_0x10f379);if(_0x4a7e('0xd7')!=_0x458567||'insertion'!=_0x165d59&&_0x4a7e('0x104')!=_0x165d59)continue;_0x9b0f33[_0x1daecf][_0x4a7e('0x15')][_0x4a7e('0x46')](_0x201cca,0x1),_0x201cca--;const _0x553b6c=_0x226253[_0x4a7e('0x5')](_0x3618e9=>_0x3618e9[_0x4a7e('0xf1')]==_0x10f379);_0x553b6c>-0x1&&_0x226253[_0x4a7e('0x46')](_0x553b6c,0x1);}}function _0x51b3ca(_0x114cf6){const _0xd1e95c=_0x114cf6[_0x4a7e('0xea')](':');return{'group':_0xd1e95c[0x0],'type':_0xd1e95c[0x1],'subType':_0xd1e95c[_0x4a7e('0xb2')]>=0x5?_0xd1e95c[0x2]:null,'id':_0xd1e95c[_0x4a7e('0xb2')]<0x5?_0xd1e95c[0x2]:_0xd1e95c[0x3],'authorId':_0xd1e95c[_0x4a7e('0xb2')]<0x5?_0xd1e95c[0x3]:_0xd1e95c[0x4],'markerCount':0x6==_0xd1e95c[_0x4a7e('0xb2')]?_0xd1e95c[0x5]:null};}function _0x3f6357(_0x46ae26){for(let _0x4a703b=0x0;_0x4a703b<_0x226253[_0x4a7e('0xb2')];_0x4a703b++){if(_0x46ae26[_0x4a7e('0x54')]&&_0x4a7e('0x25')==_0x226253[_0x4a703b][_0x4a7e('0xf6')])return _0x46ae26['isAddSuggestion']=_0x226253[_0x4a703b],void delete _0x46ae26[_0x4a7e('0x54')];if(!_0x46ae26[_0x4a7e('0x54')]&&!_0x46ae26[_0x4a7e('0x8a')]&&_0x4a7e('0x104')==_0x226253[_0x4a703b][_0x4a7e('0xf6')])return void(_0x46ae26['isRemoveSuggestion']=_0x226253[_0x4a703b]);}}}[_0x4a7e('0x52')](_0x40bb33,_0x13da83){let _0x9ba9b5=0x0,_0x3dc138=!0x1;const _0x410c76=new Map();for(const _0x4a6fa8 of _0x40bb33)_0x4a6fa8[_0x13da83]?_0x3dc138&&(_0x9ba9b5++,_0x3dc138=!0x1):(_0x9ba9b5++,_0x3dc138=!0x0),_0x410c76[_0x4a7e('0x38')](_0x4a6fa8['id'],_0x9ba9b5);for(let _0xa321d3=0x0;_0xa321d3<_0x40bb33['length'];_0xa321d3++){if('isRemoved'==_0x13da83&&_0x40bb33[_0xa321d3][_0x4a7e('0x54')]||'isAdded'==_0x13da83&&_0x40bb33[_0xa321d3][_0x4a7e('0x8a')])continue;if(_0x4a7e('0x41')==_0x40bb33[_0xa321d3][_0x4a7e('0xf6')]){_0x40bb33[_0xa321d3][_0x4a7e('0xae')]=0x0;continue;}const _0xbbf25a=_0x410c76['get'](_0x40bb33[_0xa321d3][_0x4a7e('0x2f')]),_0x2df74e=_0x410c76[_0x4a7e('0xf0')](_0x40bb33[_0xa321d3]['id']);_0x40bb33[_0xa321d3][_0x4a7e('0xae')]=_0xbbf25a-_0x2df74e;}}[_0x4a7e('0x11a')](_0xb1cb04,_0x459c87,_0x306545=!0x1){const _0x4fe088=[];let _0x285883=this['repository'][_0x4a7e('0x43')](_0xb1cb04),_0x311ee4=this[_0x4a7e('0xf')]['getIndex'](_0x459c87);for(-0x1==_0x311ee4&&(_0x311ee4=this['repository']['_revisions'][_0x4a7e('0xb2')],_0x306545=!0x1);_0x285883<_0x311ee4;)_0x4fe088[_0x4a7e('0xdf')](this[_0x4a7e('0xf')][_0x4a7e('0x42')](_0x285883)),_0x285883++;return _0x306545&&_0x4fe088[_0x4a7e('0xdf')](this['repository'][_0x4a7e('0x42')](_0x285883)),_0x4fe088;}[_0x4a7e('0x4a')](_0x32e4d3,_0x4f12a2,_0x334f89,_0x2548da){const _0x40602e=this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0xd8')];let _0x27583b=_0x4f12a2;for(;_0x32e4d3[_0x27583b]&&_0x32e4d3[_0x27583b]['isAdded'];)_0x27583b++;let _0x361d11=_0x2548da;for(;_0x334f89[_0x361d11]&&_0x334f89[_0x361d11][_0x4a7e('0x8a')];)_0x361d11++;_0x5d7146(_0x32e4d3,_0x4f12a2,_0x27583b),_0x5d7146(_0x334f89,_0x2548da,_0x361d11);const _0xe0c74f=_0x334f89[_0x4a7e('0x10f')](_0x2548da,_0x361d11)[_0x4a7e('0x23')](_0x32e4d3[_0x4a7e('0x10f')](_0x4f12a2,_0x27583b));return _0xe0c74f[_0x4a7e('0xd4')]((_0x3661f0,_0x4f7e8b)=>_0x3661f0[_0x4a7e('0x5c')]!=_0x4f7e8b[_0x4a7e('0x5c')]?_0x3661f0['side']-_0x4f7e8b[_0x4a7e('0x5c')]:_0x3661f0[_0x4a7e('0x101')]!=_0x4f7e8b[_0x4a7e('0x101')]?_0x3661f0[_0x4a7e('0x101')]-_0x4f7e8b[_0x4a7e('0x101')]:_0x3661f0[_0x4a7e('0xae')]!=_0x4f7e8b[_0x4a7e('0xae')]?_0x4f7e8b[_0x4a7e('0xae')]-_0x3661f0['distance']:!!_0x3661f0[_0x4a7e('0x54')]!=!!_0x4f7e8b[_0x4a7e('0x54')]?-0x1==_0x3661f0[_0x4a7e('0x5c')]||0x0==_0x3661f0[_0x4a7e('0x5c')]?_0x3661f0[_0x4a7e('0x54')]?-0x1:0x1:_0x3661f0[_0x4a7e('0x54')]?0x1:-0x1:_0x3661f0[_0x4a7e('0xe9')]-_0x4f7e8b[_0x4a7e('0xe9')]),{'commonTape':_0xe0c74f,'iEnd':_0x27583b,'jEnd':_0x361d11};function _0x5d7146(_0x22cf3f,_0x32e11c,_0x4592f7){let _0x8d3da7=-0x1,_0x599f0b=Number[_0x4a7e('0x123')],_0x34dfb6=!0x0;for(let _0x449ac6=_0x32e11c;_0x449ac6<_0x4592f7;_0x449ac6++)if(_0x40602e[_0x4a7e('0xfc')](_0x22cf3f[_0x449ac6]['item'])||(_0x34dfb6=!0x1),_0x22cf3f[_0x449ac6][_0x4a7e('0x122')][_0x4a7e('0x62')]<_0x32e11c&&(_0x8d3da7=_0x449ac6),_0x22cf3f[_0x449ac6][_0x4a7e('0x122')][_0x4a7e('0xbc')]>=_0x4592f7){_0x599f0b=_0x449ac6;break;}_0x34dfb6&&(_0x8d3da7=_0x4592f7-0x1);for(let _0x476765=_0x32e11c;_0x476765<_0x4592f7;_0x476765++)_0x22cf3f[_0x476765][_0x4a7e('0x5c')]=_0x476765<=_0x8d3da7?-0x1:_0x476765<_0x599f0b?0x0:0x1,_0x22cf3f[_0x476765][_0x4a7e('0xe9')]=_0x476765;let _0x42b4a4=0x0;for(let _0x3664ff=_0x32e11c;_0x3664ff<=_0x8d3da7;_0x3664ff++)0x0==_0x22cf3f[_0x3664ff][_0x4a7e('0xae')]?_0x22cf3f[_0x3664ff][_0x4a7e('0x101')]=_0x42b4a4:(_0x42b4a4++,_0x22cf3f[_0x3664ff][_0x4a7e('0x101')]=_0x42b4a4,_0x42b4a4++);for(let _0x4cd342=_0x32e11c;_0x4cd342<_0x4592f7;_0x4cd342++)0x0==_0x22cf3f[_0x4cd342][_0x4a7e('0x5c')]&&(_0x22cf3f[_0x4cd342][_0x4a7e('0x101')]=_0x42b4a4);_0x42b4a4=0x0;for(let _0x5a56bd=_0x4592f7-0x1;_0x5a56bd>=_0x599f0b;_0x5a56bd--)0x0==_0x22cf3f[_0x5a56bd][_0x4a7e('0xae')]?_0x22cf3f[_0x5a56bd][_0x4a7e('0x101')]=_0x42b4a4:(_0x42b4a4--,_0x22cf3f[_0x5a56bd][_0x4a7e('0x101')]=_0x42b4a4,_0x42b4a4--);}}[_0x4a7e('0x3')](_0x2de3fc){const _0xdbbdf0=new Map(),_0x2e0cfa=this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0xd8')];for(let _0x419598=0x1;_0x419598<_0x2de3fc[_0x4a7e('0xb2')];_0x419598++){let _0x704479,_0x1083fc,_0x2201af;const _0x48057f=_0x2de3fc[_0x419598],_0x5841b8=_0x2de3fc[_0x419598-0x1];if(_0x4a7e('0x41')==_0x48057f[_0x4a7e('0xf6')])continue;if(_0x48057f[_0x4a7e('0xf6')]!=_0x5841b8['type'])continue;if(!_0x2e0cfa[_0x4a7e('0x22')](_0x5841b8[_0x4a7e('0x122')])||_0x2e0cfa['isLimit'](_0x5841b8[_0x4a7e('0x122')]))continue;if(!_0x2e0cfa['isBlock'](_0x48057f['item'])||_0x2e0cfa['isLimit'](_0x48057f['item']))continue;if((_0x2de3fc[_0x419598][_0x4a7e('0x54')]||_0x2de3fc[_0x419598]['isAddSuggestion'])&&_0x2de3fc[_0x419598-0x1][_0x4a7e('0x8a')])_0x704479=_0x2de3fc[_0x419598],_0x1083fc=_0x2de3fc[_0x419598-0x1],_0x2201af=_0x419598-0x1;else{if(!_0x2de3fc[_0x419598][_0x4a7e('0x8a')]||!_0x2de3fc[_0x419598-0x1][_0x4a7e('0x54')]&&!_0x2de3fc[_0x419598-0x1][_0x4a7e('0x7c')])continue;_0x704479=_0x2de3fc[_0x419598-0x1],_0x1083fc=_0x2de3fc[_0x419598],_0x2201af=_0x419598;}const _0x590b83=_0x704479['level']==_0x1083fc[_0x4a7e('0x101')],_0x31d608=Math[_0x4a7e('0x24')](_0x704479['level'])<Math[_0x4a7e('0x24')](_0x1083fc[_0x4a7e('0x101')])&&0x0==_0x1083fc['distance'];(_0x590b83||_0x31d608)&&(_0xdbbdf0[_0x4a7e('0x38')](_0x1083fc['id'],_0x704479['id']),_0x2de3fc['splice'](_0x2201af,0x1),_0x419598--,_0x704479[_0x4a7e('0x54')]=!0x1);}for(let _0x2a60b9=0x0;_0x2a60b9<_0x2de3fc[_0x4a7e('0xb2')];_0x2a60b9++)_0xdbbdf0[_0x4a7e('0x16')](_0x2de3fc[_0x2a60b9][_0x4a7e('0x2f')])&&(_0x2de3fc[_0x2a60b9][_0x4a7e('0x2f')]=_0xdbbdf0['get'](_0x2de3fc[_0x2a60b9]['pairId']));}['_removeMissingPairs'](_0x1ce4cf){const _0x3ae2f2=new Set(_0x1ce4cf[_0x4a7e('0x47')](_0x56fbb8=>_0x56fbb8['id']));for(let _0x3ee696=0x0;_0x3ee696<_0x1ce4cf[_0x4a7e('0xb2')];_0x3ee696++)_0x3ae2f2['has'](_0x1ce4cf[_0x3ee696][_0x4a7e('0x2f')])||0x0==_0x1ce4cf[_0x3ee696][_0x4a7e('0xae')]||(_0x1ce4cf[_0x3ee696][_0x4a7e('0xc6')]=!0x0);return _0x1ce4cf[_0x4a7e('0xb7')](_0x42d191=>!_0x42d191[_0x4a7e('0xc6')]);}['_markMismatchedRemovedTags'](_0x5d1f65){const _0x2a9b62=new Set();for(let _0x956c81=0x0;_0x956c81<_0x5d1f65[_0x4a7e('0xb2')];_0x956c81++){if(_0x2a9b62[_0x4a7e('0x16')](_0x5d1f65[_0x956c81]['id'])&&_0x5d1f65[_0x956c81][_0x4a7e('0x8a')]&&(_0x5d1f65[_0x956c81][_0x4a7e('0xc6')]=!0x0),_0x5d1f65[_0x956c81]['isIncorrect'])continue;if(0x0==_0x5d1f65[_0x956c81][_0x4a7e('0xae')])continue;if(_0x4a7e('0x7')!=_0x5d1f65[_0x956c81][_0x4a7e('0xf6')])continue;if(null==_0x5d1f65[_0x956c81][_0x4a7e('0x2f')])continue;let _0x17c4b8=_0x956c81+0x1,_0x6e7cd1=0x0;for(;_0x5d1f65[_0x17c4b8]['id']!=_0x5d1f65[_0x956c81][_0x4a7e('0x2f')];)'elementStart'==_0x5d1f65[_0x17c4b8][_0x4a7e('0xf6')]?_0x6e7cd1++:_0x4a7e('0x10b')==_0x5d1f65[_0x17c4b8][_0x4a7e('0xf6')]&&_0x6e7cd1--,_0x17c4b8++;if(0x0!=_0x6e7cd1){if(_0x5d1f65[_0x956c81][_0x4a7e('0x8a')])_0x5d1f65[_0x956c81][_0x4a7e('0xc6')]=!0x0;else for(;_0x17c4b8!=_0x956c81;)_0x5d1f65[_0x17c4b8][_0x4a7e('0x8a')]&&0x0!=_0x5d1f65[_0x17c4b8][_0x4a7e('0xae')]&&(_0x5d1f65[_0x17c4b8][_0x4a7e('0xc6')]=!0x0,_0x2a9b62[_0x4a7e('0x9b')](_0x5d1f65[_0x17c4b8][_0x4a7e('0x2f')])),_0x17c4b8--;}}return _0x5d1f65['filter'](_0x4efdba=>!_0x4efdba['isIncorrect']);}[_0x4a7e('0xef')](_0x3de24e){const _0x537b81=this[_0x4a7e('0xec')]['model'][_0x4a7e('0xd8')];for(let _0x33d0c1=0x0;_0x33d0c1<_0x3de24e['length'];_0x33d0c1++){if(!(_0x3de24e[_0x33d0c1]['isAdded']||_0x3de24e[_0x33d0c1][_0x4a7e('0x7c')]||_0x3de24e[_0x33d0c1][_0x4a7e('0x8a')]||_0x3de24e[_0x33d0c1][_0x4a7e('0x5e')]))continue;if(0x0==_0x3de24e[_0x33d0c1][_0x4a7e('0xae')])continue;const _0x48f4ba=_0x3de24e[_0x33d0c1][_0x4a7e('0x122')];_0x537b81['isBlock'](_0x48f4ba)||_0x537b81[_0x4a7e('0xdc')](_0x48f4ba)||(_0x3de24e[_0x33d0c1]['isAdded']&&delete _0x3de24e[_0x33d0c1][_0x4a7e('0x54')],_0x3de24e[_0x33d0c1][_0x4a7e('0x7c')]&&delete _0x3de24e[_0x33d0c1][_0x4a7e('0x7c')],_0x3de24e[_0x33d0c1][_0x4a7e('0x5e')]&&delete _0x3de24e[_0x33d0c1]['isRemoveSuggestion'],_0x3de24e[_0x33d0c1]['isRemoved']&&(_0x3de24e[_0x33d0c1][_0x4a7e('0xc6')]=!0x0));}return _0x3de24e[_0x4a7e('0xb7')](_0xec4835=>!_0xec4835['isIncorrect']);}[_0x4a7e('0x10d')](_0x407e1e,_0x4021bf,_0x1a6821){const _0x4d1393=new _0x2e212a(),_0x54b7c9=[],_0x49b34f=new Map(),_0x16e2dc=this[_0x4a7e('0xec')][_0x4a7e('0x93')],_0x2818bf=_0x16e2dc[_0x4a7e('0xd8')],_0x3460aa=[_0x4d1393],_0x1c5f47={},_0x243658={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1b5cd4=null;const _0x131025=[0x0];for(let _0x5247d3=0x0;_0x5247d3<_0x407e1e['length'];_0x5247d3++){let _0xa167,_0x8b7148;if('elementStart'===_0x407e1e[_0x5247d3][_0x4a7e('0xf6')]){_0xa167=_0x16e2dc['createPositionFromPath'](_0x4d1393,_0x131025);const _0x176656=new _0x4418da(_0x407e1e[_0x5247d3][_0x4a7e('0x122')]['name'],_0x407e1e[_0x5247d3]['item'][_0x4a7e('0x84')]());_0x3460aa[0x0][_0x4a7e('0x124')](_0x176656),_0x131025[_0x4a7e('0xdf')](0x0),_0x3460aa[_0x4a7e('0x32')](_0x176656),_0x8b7148=_0x16e2dc[_0x4a7e('0x31')](_0x4d1393,_0x131025),_0x1b5cd4=null;}else{if(_0x4a7e('0x10b')===_0x407e1e[_0x5247d3]['type'])_0x3460aa[_0x4a7e('0x82')](),_0xa167=_0x16e2dc['createPositionFromPath'](_0x4d1393,_0x131025),_0x131025[_0x4a7e('0xaa')](),_0x131025[_0x131025[_0x4a7e('0xb2')]-0x1]++,_0x8b7148=_0x16e2dc[_0x4a7e('0x31')](_0x4d1393,_0x131025),_0x1b5cd4=null;else{if(_0xa167=_0x16e2dc['createPositionFromPath'](_0x4d1393,_0x131025),_0x1b5cd4&&_0x5bcefb(_0x1b5cd4,_0x407e1e[_0x5247d3][_0x4a7e('0x122')]))_0x1b5cd4[_0x4a7e('0xac')]+=_0x407e1e[_0x5247d3][_0x4a7e('0x122')]['data'];else{const _0x270dab=new _0x205bbd(_0x407e1e[_0x5247d3]['item'][_0x4a7e('0x33')],_0x407e1e[_0x5247d3][_0x4a7e('0x122')][_0x4a7e('0x84')]());_0x3460aa[0x0][_0x4a7e('0x124')](_0x270dab),_0x1b5cd4=_0x270dab;}_0x131025[_0x131025[_0x4a7e('0xb2')]-0x1]+=_0x407e1e[_0x5247d3]['item'][_0x4a7e('0x37')],_0x8b7148=_0x16e2dc[_0x4a7e('0x31')](_0x4d1393,_0x131025);}}for(const _0x22dad5 of _0x407e1e[_0x5247d3][_0x4a7e('0x44')])_0x49b34f[_0x4a7e('0x38')](_0x22dad5,{'start':_0xa167,'end':null});_0x5d9b98(_0x4a7e('0x5e'),_0x5247d3,_0xa167,_0x8b7148),_0x5d9b98(_0x4a7e('0x7c'),_0x5247d3,_0xa167,_0x8b7148),_0x5d9b98(_0x4a7e('0x8a'),_0x5247d3,_0xa167,_0x8b7148),_0x5d9b98(_0x4a7e('0x54'),_0x5247d3,_0xa167,_0x8b7148);for(const _0x1932c4 of _0x407e1e[_0x5247d3]['markersEnd']){_0x49b34f[_0x4a7e('0xf0')](_0x1932c4)['end']=_0x8b7148;}}for(const [_0x5db0ec,_0x551879]of _0x49b34f){const _0x8f3711=this['editor'][_0x4a7e('0x93')][_0x4a7e('0x4b')](_0x551879[_0x4a7e('0x1c')],_0x551879['end']);_0x4d1393['markers'][_0x4a7e('0x38')](_0x5db0ec,_0x8f3711);}return _0x54b7c9[_0x4a7e('0xd4')]((_0x1ed0ad,_0x386957)=>{const _0x17984d=_0x4d1393['markers'][_0x4a7e('0xf0')](_0x4a7e('0xbe')+_0x1ed0ad['id']),_0x24ed26=_0x4d1393['markers'][_0x4a7e('0xf0')]('revision:'+_0x386957['id']);return _0x17984d[_0x4a7e('0x1c')]['isBefore'](_0x24ed26[_0x4a7e('0x1c')])?-0x1:_0x17984d['start']['isAfter'](_0x24ed26[_0x4a7e('0x1c')])?0x1:_0x17984d[_0x4a7e('0x83')][_0x4a7e('0x3b')](_0x24ed26['end'])?-0x1:_0x17984d[_0x4a7e('0x83')][_0x4a7e('0x80')](_0x24ed26[_0x4a7e('0x83')])?0x1:_0x4a7e('0x9b')===_0x1ed0ad[_0x4a7e('0xf6')]?-0x1:0x1;}),{'root':_0x4d1393,'changes':_0x54b7c9};function _0x5d9b98(_0xcf7876,_0x42d01c,_0x3884c6,_0x5cff0e){const _0x5c597d=!!_0x407e1e[_0x42d01c][_0xcf7876],_0x2688be=_0x5c597d?_0x407e1e[_0x42d01c][_0xcf7876]['userId']:null,_0x365e06=_0x42d01c===_0x407e1e[_0x4a7e('0xb2')]-0x1,_0x5dd46a=_0x243658[_0xcf7876][0x0],_0x275587=_0x2818bf[_0x4a7e('0xc9')](_0x407e1e[_0x42d01c]['item']);!_0x1c5f47[_0xcf7876]&&_0x5c597d?_0x1c5f47[_0xcf7876]={'start':_0x3884c6,'tapeItem':_0x407e1e[_0x42d01c],'userId':_0x2688be,'type':_0xcf7876}:_0x1c5f47[_0xcf7876]&&!_0x5c597d?(_0x1c5f47[_0xcf7876]['end']=_0x3884c6,_0x22cb75(_0x1c5f47[_0xcf7876]),_0x1c5f47[_0xcf7876]=null):_0x1c5f47[_0xcf7876]&&_0x5c597d&&_0x1c5f47[_0xcf7876][_0x4a7e('0xcc')]!==_0x2688be&&(_0x1c5f47[_0xcf7876][_0x4a7e('0x83')]=_0x3884c6,_0x5dd46a&&_0x5dd46a[_0x4a7e('0xcc')]===_0x1c5f47[_0xcf7876][_0x4a7e('0xcc')]||_0x22cb75(_0x1c5f47[_0xcf7876]),_0x1c5f47[_0xcf7876]={'start':_0x3884c6,'tapeItem':_0x407e1e[_0x42d01c],'userId':_0x2688be,'type':_0xcf7876}),_0x1c5f47[_0xcf7876]&&_0x275587&&(_0x4a7e('0x7')!==_0x407e1e[_0x42d01c][_0x4a7e('0xf6')]||_0x5dd46a&&_0x5dd46a[_0x4a7e('0xcc')]===_0x2688be||_0x243658[_0xcf7876]['unshift']({'userId':_0x2688be,'object':_0x407e1e[_0x42d01c][_0x4a7e('0x122')],'change':_0x1c5f47[_0xcf7876]}),'elementEnd'===_0x407e1e[_0x42d01c][_0x4a7e('0xf6')]&&_0x5dd46a&&_0x5dd46a['object']===_0x407e1e[_0x42d01c]['item']&&(_0x243658[_0xcf7876][_0x4a7e('0x82')](),_0x1c5f47[_0xcf7876]=_0x5dd46a[_0x4a7e('0xcf')])),_0x1c5f47[_0xcf7876]&&_0x365e06&&(_0x1c5f47[_0xcf7876]['end']=_0x5cff0e,_0x22cb75(_0x1c5f47[_0xcf7876]),_0x1c5f47[_0xcf7876]=null);}function _0x22cb75({start:_0x3d0cd3,end:_0x188482,tapeItem:_0x3b2121,userId:_0x24b43c,type:_0xd4a157}){const _0x34e0f6=_0x3b2121['item'],_0x519e21=_0x16e2dc[_0x4a7e('0xd8')][_0x4a7e('0x22')](_0x34e0f6)&&!_0x16e2dc[_0x4a7e('0xd8')][_0x4a7e('0xdc')](_0x34e0f6),_0x286d6c=_0x3d0cd3[_0x4a7e('0x29')]==_0x188482[_0x4a7e('0xd6')]&&_0x188482[_0x4a7e('0x17')];if(_0x519e21&&_0x286d6c)return;const _0xac30dc=_0x16e2dc['createRange'](_0x3d0cd3,_0x188482),_0x23602d=_0x4021bf[_0x4a7e('0xf0')](_0x24b43c),_0x5972b2=new _0x3f5468({'author':_0x23602d,'type':'isAdded'==_0xd4a157||_0x4a7e('0x7c')==_0xd4a157?_0x4a7e('0x9b'):_0x4a7e('0x19'),'data':{'isSuggestion':'isAddSuggestion'==_0xd4a157||'isRemoveSuggestion'==_0xd4a157},'createdAt':new Date(),'rootName':_0x1a6821});_0x54b7c9[_0x4a7e('0xdf')](_0x5972b2),_0x4d1393[_0x4a7e('0x7a')][_0x4a7e('0x38')]('revision:'+_0x5972b2['id'],_0xac30dc);}function _0x5bcefb(_0x1b4877,_0xc02320){const _0x49cc98=_0x1b4877[_0x4a7e('0x84')](),_0x411c75=_0xc02320[_0x4a7e('0x84')]();for(const _0x5cce06 of _0x49cc98){if(_0x5cce06[0x1]!==_0xc02320[_0x4a7e('0x66')](_0x5cce06[0x0]))return!0x1;_0x411c75[_0x4a7e('0x34')]();}return _0x411c75[_0x4a7e('0x34')]()[_0x4a7e('0xcb')];}}[_0x4a7e('0x79')](){this[_0x4a7e('0xec')][_0x4a7e('0x8')]['for'](_0x4a7e('0x8e'))['dataToMarker']({'view':'revision'}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')](_0x4a7e('0x65'))['markerToHighlight']({'model':_0x4a7e('0x12'),'view':_0x2576ba=>{const _0x6b3f33=_0x2576ba['markerName']['split'](':')[0x1],_0x278adc=this[_0x4a7e('0x13')](_0x6b3f33);if(!_0x278adc)return null;const _0x85b4ae=_0x4a7e('0x9b')==_0x278adc[_0x4a7e('0xf6')]?_0x4a7e('0x25'):_0x4a7e('0x104'),_0x20bbda=[_0x4a7e('0x9'),_0x4a7e('0x75')+_0x85b4ae];return _0x278adc['data'][_0x4a7e('0x69')]&&_0x20bbda[_0x4a7e('0xdf')](_0x4a7e('0x75')+_0x85b4ae+'-new'),this['activeChange']==_0x278adc&&_0x20bbda['push'](_0x4a7e('0x5d')),{'classes':_0x20bbda,'attributes':{'data-change-id':_0x6b3f33}};}}),this[_0x4a7e('0xec')]['conversion']['for']('upcast')[_0x4a7e('0x9b')](_0x30e15f=>{_0x30e15f['on'](_0x4a7e('0xe1'),(_0x1fec60,_0x2826da,_0x55e17e)=>{const _0x13873f=_0x2826da[_0x4a7e('0x125')][_0x4a7e('0x18')](0x0);if(!_0x13873f||!_0x13873f['is'](_0x4a7e('0xb3'),'code'))return;if(!_0x55e17e[_0x4a7e('0xd3')]['consume'](_0x13873f,{'attributes':[_0x4a7e('0x1d'),_0x4a7e('0xc2')]}))return;const _0x3b68ab=_0x2826da[_0x4a7e('0x6e')][_0x4a7e('0x1c')]['nodeAfter'];_0x55e17e[_0x4a7e('0x2d')]['setAttribute'](_0x4a7e('0x1d'),_0x13873f['getAttribute'](_0x4a7e('0x1d')),_0x3b68ab),_0x55e17e[_0x4a7e('0x2d')]['setAttribute'](_0x4a7e('0xc2'),_0x13873f['getAttribute'](_0x4a7e('0xc2')),_0x3b68ab);},{'priority':_0x4a7e('0x10a')});}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')](_0x4a7e('0x8e'))['add'](_0x3ce0ca=>{_0x3ce0ca['on'](_0x4a7e('0xb3'),(_0x210128,_0x1cd65a,_0x4dd1b3)=>{if(!_0x4dd1b3[_0x4a7e('0xd3')][_0x4a7e('0xff')](_0x1cd65a[_0x4a7e('0x125')],{'attributes':[_0x4a7e('0x1d'),_0x4a7e('0xc2')]}))return;if(_0x1cd65a['modelRange'][_0x4a7e('0x4')])return;const _0x594989=_0x1cd65a[_0x4a7e('0x6e')][_0x4a7e('0x1c')][_0x4a7e('0x29')];_0x594989[_0x4a7e('0x61')]('vid_start')||_0x594989[_0x4a7e('0x61')](_0x4a7e('0x27'))||(_0x4dd1b3[_0x4a7e('0x2d')][_0x4a7e('0x8d')](_0x4a7e('0x1d'),_0x1cd65a[_0x4a7e('0x125')][_0x4a7e('0x66')]('vid_start'),_0x594989),_0x4dd1b3['writer'][_0x4a7e('0x8d')](_0x4a7e('0xc2'),_0x1cd65a['viewItem'][_0x4a7e('0x66')](_0x4a7e('0xc2')),_0x594989));},{'priority':'low'});}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')]('upcast')[_0x4a7e('0xf4')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x4a7e('0x27'),'value':_0x2985d6=>_0x2985d6[_0x4a7e('0x66')](_0x4a7e('0x27'))}}),this['editor'][_0x4a7e('0x93')][_0x4a7e('0xd8')]['on'](_0x4a7e('0x1a'),(_0x10dab9,[,_0xdcfa5f])=>{[_0x4a7e('0x1d'),'vid_end','vid']['includes'](_0xdcfa5f)&&(_0x10dab9['return']=!0x0,_0x10dab9[_0x4a7e('0x10')]());},{'priority':_0x4a7e('0x95')}),this[_0x4a7e('0xec')]['conversion']['for'](_0x4a7e('0x2a'))[_0x4a7e('0x9b')](_0x2f8c9b=>{_0x2f8c9b['on']('attribute:vid',(_0x2eae64,_0x43a32a,_0x206f12)=>{if('\x20'!=_0x43a32a[_0x4a7e('0x122')][_0x4a7e('0x33')]||_0x43a32a[_0x4a7e('0x122')][_0x4a7e('0xd6')]['maxOffset']>0x1)return;if(!_0x206f12['consumable'][_0x4a7e('0xff')](_0x43a32a[_0x4a7e('0x122')],_0x2eae64[_0x4a7e('0xf1')]))return;const _0x13719a=_0x206f12[_0x4a7e('0x2d')],_0xb5d3dc=_0x206f12[_0x4a7e('0x6')][_0x4a7e('0xfe')](_0x43a32a[_0x4a7e('0x49')]);_0x13719a['wrap'](_0xb5d3dc,_0x13719a['createAttributeElement'](_0x4a7e('0x1b')));});}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')]('dataDowncast')[_0x4a7e('0xed')]({'model':'revision'}),this[_0x4a7e('0xec')]['editing']['downcastDispatcher']['on'](_0x4a7e('0xa0'),function(_0xa22168){const _0x43bb2c=_0xa22168[_0x4a7e('0x116')][_0x4a7e('0xf0')](_0x4a7e('0xb6'));return(_0x8da2e9,_0x1cc7cb,_0x11c9e1)=>{const _0x5ba03b=_0x1cc7cb[_0x4a7e('0xa8')]['split'](':')[0x1],_0x55d453=_0x43bb2c['_getChangeFromId'](_0x5ba03b);if(!_0x55d453)return null;const _0x5c318c=_0x4a7e('0x9b')==_0x55d453[_0x4a7e('0xf6')]?'split':_0x4a7e('0x10c');if(!_0x11c9e1[_0x4a7e('0xd3')][_0x4a7e('0x108')](_0x1cc7cb[_0x4a7e('0x78')],_0x8da2e9['name']))return;const _0x4e452f=_0x1cc7cb[_0x4a7e('0x78')][_0x4a7e('0xaf')](),_0x564346=_0x1cc7cb[_0x4a7e('0x78')]['start'],_0x502911=_0xa22168[_0x4a7e('0x93')][_0x4a7e('0xd8')];let _0x540df2=null,_0x45fb7c=null,_0x1e015b=!0x1,_0x22b876=!0x1;for(const _0x2e12c9 of _0x4e452f){const _0x2483df=_0x2e12c9[_0x4a7e('0x122')];_0x1e015b=_0x1e015b||_0x502911[_0x4a7e('0xe6')](_0x2483df);const _0x4d0876=_0x11c9e1[_0x4a7e('0x6')][_0x4a7e('0xf3')](_0x2483df);if(_0x4d0876&&_0x4d0876['getCustomProperty'](_0x4a7e('0x64')))return;'elementEnd'==_0x2e12c9[_0x4a7e('0xf6')]&&(_0x502911[_0x4a7e('0x22')](_0x2483df)&&!_0x502911[_0x4a7e('0xdc')](_0x2483df)&&(_0x2483df[_0x4a7e('0x114')]||_0x564346[_0x4a7e('0x4d')]?_0x540df2&&_0x540df2[_0x4a7e('0xd6')]==_0x2483df||(_0x540df2=_0x2483df,_0x36cb34(_0x2e12c9['previousPosition']),_0x22b876=!0x0):_0x45fb7c=_0x45fb7c||_0x2e12c9['previousPosition']));}function _0x36cb34(_0x407bbb){const _0x17453f=_0x11c9e1['writer'][_0x4a7e('0xb')]('span',{'class':'ck-suggestion-marker-'+_0x5c318c}),_0x43dd38=_0x11c9e1[_0x4a7e('0x6')][_0x4a7e('0x7e')](_0x407bbb);_0x55d453['data']['isSuggestion']&&_0x11c9e1['writer'][_0x4a7e('0x7f')]('ck-suggestion-marker-'+_0x5c318c+'-new',_0x17453f),_0x43bb2c[_0x4a7e('0x91')]==_0x55d453&&_0x11c9e1[_0x4a7e('0x2d')][_0x4a7e('0x7f')](_0x4a7e('0x5d'),_0x17453f),_0x11c9e1[_0x4a7e('0x2d')][_0x4a7e('0x99')](_0x43dd38,_0x17453f),_0x11c9e1[_0x4a7e('0x6')][_0x4a7e('0xf7')](_0x17453f,_0x1cc7cb[_0x4a7e('0xa8')]);}_0x1e015b||_0x22b876||!_0x45fb7c||_0x36cb34(_0x45fb7c);};}(this[_0x4a7e('0xec')]),{'priority':_0x4a7e('0xa5')}),this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0x76')]['on'](_0x4a7e('0xdb'),(_0x4f5e30,_0x1470c7,_0x54c297)=>{const _0x2581b6=_0x54c297[_0x4a7e('0x6')]['markerNameToElements'](_0x1470c7[_0x4a7e('0xa8')]);if(_0x2581b6)for(const _0x535628 of _0x2581b6)(_0x535628[_0x4a7e('0x86')]('ck-suggestion-marker-split')||_0x535628[_0x4a7e('0x86')]('ck-suggestion-marker-merge'))&&(_0x54c297[_0x4a7e('0x6')][_0x4a7e('0x113')](_0x535628,_0x1470c7['markerName']),_0x54c297['writer'][_0x4a7e('0x19')](_0x535628));},{'priority':_0x4a7e('0xa5')}),this[_0x4a7e('0xec')][_0x4a7e('0x88')]['downcastDispatcher']['on']('addMarker:revision',(_0x5265dd,_0x4fe22b,_0xa49fb1)=>{const _0x117e27=_0x4fe22b['markerName'][_0x4a7e('0xea')](':')[0x1],_0x2da2a8=this[_0x4a7e('0x13')](_0x117e27);if(!_0x2da2a8)return null;const _0x2837c4=_0x4a7e('0x9b')==_0x2da2a8['type']?_0x4a7e('0xea'):'merge';if(_0xa49fb1[_0x4a7e('0xd3')][_0x4a7e('0x108')](_0x4fe22b[_0x4a7e('0x78')],_0x5265dd[_0x4a7e('0xf1')]))for(const _0x4404ce of _0x4fe22b['markerRange']['getItems']()){if(!_0x4404ce['is'](_0x4a7e('0xb3'),_0x4a7e('0xab')))continue;const _0x117949=_0xa49fb1['writer']['createUIElement']('span',{'class':_0x4a7e('0x75')+_0x2837c4}),_0x2bde53=_0xa49fb1[_0x4a7e('0x6')][_0x4a7e('0x7e')](this[_0x4a7e('0xec')]['model'][_0x4a7e('0x39')](_0x4404ce));_0x2da2a8['data'][_0x4a7e('0x69')]&&_0xa49fb1[_0x4a7e('0x2d')][_0x4a7e('0x7f')]('ck-suggestion-marker-'+_0x2837c4+_0x4a7e('0x119'),_0x117949),this[_0x4a7e('0x91')]==_0x2da2a8&&_0xa49fb1[_0x4a7e('0x2d')][_0x4a7e('0x7f')](_0x4a7e('0x5d'),_0x117949),_0xa49fb1['writer'][_0x4a7e('0x99')](_0x2bde53,_0x117949),_0xa49fb1['mapper'][_0x4a7e('0xf7')](_0x117949,_0x4fe22b[_0x4a7e('0xa8')]);}},{'priority':'high'}),this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x60')]['on'](_0x4a7e('0xcf'),()=>{this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')][_0x4a7e('0xcf')](_0xcdfb09=>{for(const _0x6db15d of this[_0x4a7e('0xec')][_0x4a7e('0x93')]['document'][_0x4a7e('0xd0')]()){const _0x5ee878=this[_0x4a7e('0xec')][_0x4a7e('0x93')]['document'][_0x4a7e('0xee')](_0x6db15d),_0x530c87=this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')][_0x4a7e('0x60')]['getRoot'](_0x6db15d);if(_0x530c87){const _0x36f808=_0x5ee878['getAttribute'](_0x4a7e('0x115'));if(_0xcdfb09['removeAttribute'](_0x4a7e('0xd2'),_0x530c87),_0xcdfb09[_0x4a7e('0x1f')](_0x4a7e('0xa1'),_0x530c87),_0xcdfb09[_0x4a7e('0x1f')](_0x4a7e('0xfa'),_0x530c87),_0xcdfb09['removeClass'](_0x4a7e('0x11e'),_0x530c87),_0x36f808){const _0x2d5eb4=this[_0x4a7e('0x13')](_0x36f808);if(!_0x2d5eb4)return null;_0xcdfb09['setAttribute'](_0x4a7e('0xd2'),_0x36f808,_0x530c87),_0xcdfb09[_0x4a7e('0x7f')](_0x4a7e('0x121')+_0x2d5eb4[_0x4a7e('0xf6')],_0x530c87),this['activeChange']==_0x2d5eb4&&_0xcdfb09[_0x4a7e('0x7f')](_0x4a7e('0x11e'),_0x530c87);}}}});}),this[_0x4a7e('0xec')][_0x4a7e('0x8')]['for'](_0x4a7e('0x8e'))[_0x4a7e('0xad')]({'view':_0x4a7e('0xa7'),'model':_0x59869e=>_0x4a7e('0xbb')+_0x59869e,'converterPriority':_0x4a7e('0x95')}),this['editor'][_0x4a7e('0x8')][_0x4a7e('0x4e')](_0x4a7e('0x8e'))['dataToMarker']({'view':_0x4a7e('0xfb'),'model':_0x463d67=>_0x4a7e('0xc0')+_0x463d67,'converterPriority':_0x4a7e('0x95')}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')](_0x4a7e('0x2a'))[_0x4a7e('0xed')]({'model':_0x4a7e('0xd7'),'view':_0x385cba=>({'name':_0x4a7e('0xc4')+_0x385cba,'group':_0x4a7e('0xd7')}),'converterPriority':_0x4a7e('0x95')}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')](_0x4a7e('0x65'))[_0x4a7e('0x28')]({'model':_0x4a7e('0xd7'),'view':_0x3825e0=>{const _0x190705=_0x3825e0[_0x4a7e('0xa8')][_0x4a7e('0xea')](':')[0x1];return _0x4a7e('0x25')!=_0x190705&&_0x4a7e('0x104')!=_0x190705?null:{'classes':[_0x4a7e('0xe7'),_0x4a7e('0xd')+_0x190705]};}}),this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0x76')]['on'](_0x4a7e('0x92'),et(this[_0x4a7e('0xec')],_0x4a7e('0x10c')),{'priority':_0x4a7e('0xa5')}),this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0x76')]['on'](_0x4a7e('0x7d'),et(this[_0x4a7e('0xec')],_0x4a7e('0xea')),{'priority':_0x4a7e('0xa5')}),this['editor'][_0x4a7e('0x88')][_0x4a7e('0x76')]['on'](_0x4a7e('0x68'),(_0x20fef8,_0x1143c1,_0x20d1b0)=>{const _0x25abbb=_0x20d1b0[_0x4a7e('0x6')]['markerNameToElements'](_0x1143c1[_0x4a7e('0xa8')]);if(_0x25abbb)for(const _0x1482ab of _0x25abbb)_0x1482ab['is'](_0x4a7e('0x109'))&&(_0x20d1b0['mapper']['unbindElementFromMarkerName'](_0x1482ab,_0x1143c1['markerName']),_0x20d1b0[_0x4a7e('0x2d')]['remove'](_0x1482ab));},{'priority':_0x4a7e('0xa5')});}[_0x4a7e('0x13')](_0x5853e9){return this[_0x4a7e('0x98')][_0x4a7e('0xf0')](_0x5853e9);}[_0x4a7e('0xbd')](_0x1fc7c4){return this[_0x4a7e('0xd9')]&&this['_changeView'][_0x4a7e('0x6b')](),this[_0x4a7e('0xd9')]=new _0x1bd20b(this[_0x4a7e('0xec')][_0x4a7e('0xba')],_0x1fc7c4),this[_0x4a7e('0xd9')];}[_0x4a7e('0xc1')](){this[_0x4a7e('0xec')]['model'][_0x4a7e('0x60')][_0x4a7e('0xc')][_0x4a7e('0x59')](_0x4a7e('0x12')),this['on'](_0x4a7e('0xe3'),(_0x13a259,_0x4e8586,_0x1406a8,_0x592d17)=>{_0x592d17&&this[_0x4a7e('0xda')][_0x4a7e('0x19')](_0x592d17),_0x1406a8&&(this[_0x4a7e('0xda')][_0x4a7e('0x9b')]({'view':_0x1406a8,'stackId':_0x4a7e('0x85'),'position':{'target':()=>{const _0x414a68=this[_0x4a7e('0xec')][_0x4a7e('0x88')],_0x6966b6=this[_0x4a7e('0x13')](_0x1406a8[_0x4a7e('0x2b')]);let _0x45bbec;if(_0x6966b6[_0x4a7e('0x33')]['isOnRoot']){const _0x2ba8ee=_0x414a68['view']['getDomRoot'](_0x6966b6[_0x4a7e('0x8b')]);_0x45bbec=Array[_0x4a7e('0x30')](_0x2ba8ee[_0x4a7e('0x9f')]());}else{const _0x3392b2=this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x7a')]['get'](_0x4a7e('0xbe')+_0x1406a8['changeId']);_0x45bbec=Array[_0x4a7e('0x30')](_0x414a68['mapper'][_0x4a7e('0xa4')](_0x3392b2[_0x4a7e('0xf1')]))[_0x4a7e('0x47')](_0x1233c7=>_0x414a68[_0x4a7e('0xc8')][_0x4a7e('0xca')][_0x4a7e('0x20')](_0x1233c7))[_0x4a7e('0x47')](_0x39f17e=>Array[_0x4a7e('0x30')](_0x39f17e[_0x4a7e('0x9f')]()))[_0x4a7e('0x81')]();}if(!this[_0x4a7e('0x58')])return _0x45bbec[0x0];return _0x45bbec[_0x4a7e('0x11c')](_0x596d6a=>_0x596d6a[_0x4a7e('0x40')]-0x3<=this[_0x4a7e('0x58')]['y']&&_0x596d6a['bottom']+0x3>=this[_0x4a7e('0x58')]['y']&&_0x596d6a[_0x4a7e('0x6d')]-0x3<=this[_0x4a7e('0x58')]['x']&&_0x596d6a['right']+0x3>=this['_activeViewTarget']['x'])||_0x45bbec[0x0];}}}),this[_0x4a7e('0xda')][_0x4a7e('0xeb')](_0x4a7e('0x85')));}),this['on'](_0x4a7e('0xc3'),(_0x175d91,_0xe893,_0x1e7e11,_0x35b29a)=>{this[_0x4a7e('0xde')]=_0x1e7e11?this[_0x4a7e('0xbd')](_0x1e7e11):null,this['editor'][_0x4a7e('0x93')]['change'](()=>{const _0x1fd6bb=this[_0x4a7e('0xec')]['editing'];_0x35b29a&&(_0x35b29a['data'][_0x4a7e('0x5f')]?_0x1fd6bb[_0x4a7e('0xc8')][_0x4a7e('0xcf')](_0x438d66=>{_0x438d66[_0x4a7e('0x1f')](_0x4a7e('0x11e'),_0x1fd6bb['view'][_0x4a7e('0x60')]['getRoot'](_0x35b29a[_0x4a7e('0x8b')]));}):_0x1fd6bb[_0x4a7e('0x3e')](_0x4a7e('0xbe')+_0x35b29a['id'])),_0x1e7e11&&(_0x1e7e11[_0x4a7e('0x33')][_0x4a7e('0x5f')]?_0x1fd6bb['view']['change'](_0x435644=>{_0x435644[_0x4a7e('0x7f')](_0x4a7e('0x11e'),_0x1fd6bb[_0x4a7e('0xc8')][_0x4a7e('0x60')][_0x4a7e('0xee')](_0x1e7e11[_0x4a7e('0x8b')]));}):_0x1fd6bb['reconvertMarker'](_0x4a7e('0xbe')+_0x1e7e11['id']));});}),this[_0x4a7e('0x100')](this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')]['document'],_0x4a7e('0x102'),(_0x35eced,_0x35e868)=>{if(this[_0x4a7e('0x91')])return;const _0x42cc20=this[_0x4a7e('0x26')](_0x35e868[_0x4a7e('0x3f')]),_0xf76551=this[_0x4a7e('0x98')][_0x4a7e('0xf0')](_0x42cc20);_0xf76551?(this[_0x4a7e('0x58')]={'x':_0x35e868['domEvent']['x'],'y':_0x35e868[_0x4a7e('0xce')]['y']},this['activeView']=this['_getViewForChange'](_0xf76551)):(this[_0x4a7e('0x58')]=null,this[_0x4a7e('0xde')]=null);}),this['listenTo'](this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')]['document'],_0x4a7e('0x55'),(_0x10388a,_0x30cb75)=>{const _0x351973=this['_findChangeIdFromDomTarget'](_0x30cb75[_0x4a7e('0x3f')]),_0x2cc32d=this[_0x4a7e('0x98')][_0x4a7e('0xf0')](_0x351973);_0x2cc32d?(this[_0x4a7e('0x58')]={'x':_0x30cb75[_0x4a7e('0xce')]['x'],'y':_0x30cb75['domEvent']['y']},_0x2cc32d===this[_0x4a7e('0x91')]?this[_0x4a7e('0xda')][_0x4a7e('0x2')]():this[_0x4a7e('0x91')]=_0x2cc32d):(this[_0x4a7e('0x58')]=null,this[_0x4a7e('0x91')]=null);});}[_0x4a7e('0x26')](_0x36cc6e){do{const _0x12223e=_0x36cc6e[_0x4a7e('0x66')]('data-change-id');if(_0x12223e)return _0x12223e;_0x36cc6e=_0x36cc6e['parent'];}while(_0x36cc6e);return null;}[_0x4a7e('0x126')](){this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0xcf')](_0x19fe96=>{for(const _0x2310cb of this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x7a')])_0x19fe96['removeMarker'](_0x2310cb);});}}function et(_0x3b922b,_0x313b29){return(_0x6d0df0,_0x451bba,_0x5c1e3a)=>{if(!_0x5c1e3a[_0x4a7e('0xd3')][_0x4a7e('0x108')](_0x451bba['markerRange'],_0x6d0df0[_0x4a7e('0xf1')]))return;const _0x5d75fe=_0x451bba[_0x4a7e('0x78')][_0x4a7e('0xaf')](),_0x3bcf4f=_0x451bba[_0x4a7e('0x78')]['start'],_0x2acac4=_0x3b922b[_0x4a7e('0x93')]['schema'];let _0xd1121e=null,_0x21ce75=null,_0x2d6761=!0x1,_0x3cae90=!0x1;for(const _0x2baa4d of _0x5d75fe){const _0xa10034=_0x2baa4d[_0x4a7e('0x122')];_0x2d6761=_0x2d6761||_0x2acac4[_0x4a7e('0xe6')](_0xa10034);const _0x4689e5=_0x5c1e3a['mapper'][_0x4a7e('0xf3')](_0xa10034);if(_0x4689e5&&_0x4689e5[_0x4a7e('0xf5')](_0x4a7e('0x64')))return;_0x4a7e('0x10b')==_0x2baa4d[_0x4a7e('0xf6')]&&(_0x2acac4[_0x4a7e('0x22')](_0xa10034)&&!_0x2acac4[_0x4a7e('0xdc')](_0xa10034)&&(_0xa10034[_0x4a7e('0x114')]||_0x3bcf4f[_0x4a7e('0x4d')]?_0xd1121e&&_0xd1121e[_0x4a7e('0xd6')]==_0xa10034||(_0xd1121e=_0xa10034,_0x5e597c(_0x2baa4d['previousPosition']),_0x3cae90=!0x0):_0x21ce75=_0x21ce75||_0x2baa4d['previousPosition']));}function _0x5e597c(_0x258e0c){const _0x163c5a=_0x5c1e3a[_0x4a7e('0x6')][_0x4a7e('0x7e')](_0x258e0c),_0x425251=_0x5c1e3a[_0x4a7e('0x2d')]['createUIElement']('span',{'class':_0x4a7e('0xd')+_0x313b29});_0x5c1e3a[_0x4a7e('0x2d')]['insert'](_0x163c5a,_0x425251),_0x5c1e3a[_0x4a7e('0x6')][_0x4a7e('0xf7')](_0x425251,_0x451bba[_0x4a7e('0xa8')]);}_0x2d6761||_0x3cae90||!_0x21ce75||_0x5e597c(_0x21ce75);};}export class RestoreRevisionCommand extends _0x4a4255{constructor(_0x430e37){super(_0x430e37);const _0x31575c=_0x430e37['plugins'][_0x4a7e('0xf0')](d);this[_0x4a7e('0x50')]=!0x1,this[_0x4a7e('0x100')](_0x31575c,'change:isReady',()=>this[_0x4a7e('0xb1')]()),this['listenTo'](_0x31575c,_0x4a7e('0x96'),()=>this[_0x4a7e('0xb1')]());}[_0x4a7e('0x67')](){const _0x405bc8=this['editor'],_0x2110ee=_0x405bc8[_0x4a7e('0x116')][_0x4a7e('0xf0')](d),_0x37961c=_0x2110ee[_0x4a7e('0xfd')]?_0x2110ee['diff'][_0x4a7e('0x2e')]:null;_0x405bc8[_0x4a7e('0x9d')]['get'](_0x4a7e('0x11b'))[_0x4a7e('0xf9')](_0x37961c);}[_0x4a7e('0xb1')](){const {isReady:_0x2f903a,isEnabled:_0x138310}=this[_0x4a7e('0xec')]['plugins'][_0x4a7e('0xf0')](d);this[_0x4a7e('0xa6')]=_0x2f903a&&_0x138310;}}export class ShowChangeCommand extends _0x4a4255{constructor(_0x5220bb,{direction:_0x4acc6}){super(_0x5220bb);const _0x2f3a05=_0x5220bb['plugins']['get'](d);this['affectsData']=!0x1,this[_0x4a7e('0x112')]='forward'===_0x4acc6?0x1:-0x1,this[_0x4a7e('0x100')](_0x2f3a05,_0x4a7e('0x11'),()=>this['refresh']()),this[_0x4a7e('0x100')](_0x2f3a05,'change:isEnabled',()=>this[_0x4a7e('0xb1')]()),this[_0x4a7e('0x100')](_0x2f3a05,_0x4a7e('0xc3'),()=>this[_0x4a7e('0xb1')]());}[_0x4a7e('0x67')](){const _0x2221bd=this['editor'],_0x1d9b5c=_0x2221bd[_0x4a7e('0x116')]['get'](d),{isNavigationMode:_0x44d605,currentChangeNumber:_0x69c449}=_0x1d9b5c;let _0x52ed6d;if(_0x1d9b5c[_0x4a7e('0x91')]=_0x44d605?_0x1d9b5c['diff'][_0x4a7e('0xa2')][_0x4a7e('0xf0')](_0x69c449+this['_step']):_0x1d9b5c[_0x4a7e('0x70')][_0x4a7e('0xa2')]['first'],_0x1d9b5c[_0x4a7e('0x91')][_0x4a7e('0x33')][_0x4a7e('0x5f')])_0x52ed6d=_0x2221bd['editing'][_0x4a7e('0xc8')][_0x4a7e('0x53')](_0x1d9b5c[_0x4a7e('0x91')][_0x4a7e('0x8b')]);else{const _0xc6b2e0=_0x2221bd[_0x4a7e('0x93')][_0x4a7e('0x7a')][_0x4a7e('0xf0')]('revision:'+_0x1d9b5c[_0x4a7e('0x91')]['id']);_0x52ed6d=_0x347b17(_0x2221bd['editing'],_0xc6b2e0);}_0x2aa636({'target':_0x52ed6d,'viewportOffset':0x28});}[_0x4a7e('0xb1')](){const {isNavigationMode:_0x49f9c4,currentChangeNumber:_0x20b62b,numberOfChanges:_0x3f79e3,isReady:_0x4b26ed,isEnabled:_0x48887b}=this[_0x4a7e('0xec')][_0x4a7e('0x116')][_0x4a7e('0xf0')](d);this[_0x4a7e('0xa6')]=!!(_0x48887b&&_0x4b26ed&&_0x3f79e3)&&(!_0x49f9c4||(0x1===this[_0x4a7e('0x112')]?_0x20b62b<_0x3f79e3-0x1:_0x20b62b>0x0));}}
23
+ const _0x59d9=['collaboration.channelId','isIncorrect','detachRoot','ck-suggestion-marker-merge','parse','enqueueChange','_setConversion','showStack','splice','addMarker:revision-suggestion:deletion','isEqual','ck-suggestion-marker-','oldRevisionId','getRevisionData','has','item','shift','numberOfChanges','markersStart','_step','index','attributes','diffData','isInline','low','change:numberOfChanges','forceDisabled','from','maxOffset','nextSibling','setAttribute','markerName','_joinTapes','createAttributeElement','revision:','editing','children','_cleanUp','isAddSuggestion','remove','nodeAfter','addMarker:revision','_processTape','name','revisionHistoryLabel','_appendChild','unbindElementFromMarkerName','getItems','upcast','_removeMissingPairs','enableReadOnlyMode','data','mapper','bottom','execute','filter','concat','_revisions','set','addRoot','string','isObject','find','showPreviousChange','_update','createRange','abs','isBlock','isReady','getCustomProperty','nextPosition','backward','_activeViewTarget','isRemoved','newRevisionId','isAttached','sort','add','level','removeMarker:revision-suggestion','length','writer','hasAttribute','addRevision','attributesBefore','conversion','showNextChange','affectsData','revision-start','startIndex','ck-suggestion-preview-marker-','toViewRange','revision-suggestion','getRevisionRootsAttributes','left','markerToData','userId','changes','useFillerType','diff','getAttribute','locale','schema','data-change-id','elementEnd','high','deletion','_changeIdToChange','mapViewToDom','keys','model','isEnabled','_getRevisionsRange','mouseover','vid','isAdded','_makeTape','isBefore','includes','element','document','repository','end','change:isReady','insertion','removeClass','_setDistance','toModel','ck-suggestion-preview-marker','attachChange','isLimit','_makeModelFromTape','ck-revision-history-root--active','push','wrap','endIndex','for','comment','_findChangeIdFromDomTarget','distance','side','markerNameToElements','insert','_sortAndFilterDiffChanges','revisionHistory','addMarker:revision-suggestion:insertion','type','delete','code','change:isEnabled','observeMarkers','editor','isOnRoot','first','clear','toData','getRootNames','ck-suggestion-marker-split','isAtStart','WidgetToolbarRepository','-new','revision-viewer','ck-revision-history-root-add','top','loadRevisionData','indexOf','listenTo','error','highest','dataDowncast','default','element:pre','vid_start','viewItem','isContent','reconvertMarker','forward','plugins','_data','bindElementToMarker','getAttributes','findIndex','_makeModelFromViewString','_initInteractions','_changeView','ck-revision-history-root-remove','next','editingDowncast','createRevision','marked','pairId','getChild','createUIElement','parent','span','_markInsertions','text','toViewPosition','changeId','markersEnd','attributesAfter','authors','getIndex','elementToAttribute','deletions','_getViewForChange','pluginName','vid_end','isAtEnd','_fixObsoleteTags','getDomRoot','insertions','removeAttribute','markerToHighlight','isRemoveSuggestion','_threeWayMerge','change:activeChange','_refreshStartEndIndex','bind','_removeUnsupportedChanges','target','softBreak','modelRange','catch','_markMarkers','ck-suggestion-marker--active','domEvent','uiElement','change','createPositionFromPath','markerRange','suggestion:','getWalker','range','domConverter','getRoot','stop','toViewElement','view','return','markers','adapter','all','addClass','dataToMarker','commands','start','get','revisionHistoryAttachChange','ck-suggestion-marker','isSuggestion','data-revision-','compare','ck-editor__editable__overlay','config','right','rootName','previousPosition','pop','restoreRevisionCallback','processor','_markSuggestions','test','downcastDispatcher','resolve','destroy','attribute:vid','then','activeView','activeChange','mousedown','addHighlight','consumable','merge','forEach','getRevision','createPositionBefore','_markMismatchedRemovedTags','isAfter','removeMarker:revision','split','unshift','offsetSize','isCollapsed','_getChangeFromId','map','values','_cleanMarkers','startsWith','_getViewObj','done','refresh','_balloon','RevisionsRepository','_removeRevisionMarkers','init','consume','elementStart','slice'];(function(_0x250232,_0x59d940){const _0x32a29c=function(_0x18b0dd){while(--_0x18b0dd){_0x250232['push'](_0x250232['shift']());}};_0x32a29c(++_0x59d940);}(_0x59d9,0x6d));const _0x32a2=function(_0x250232,_0x59d940){_0x250232=_0x250232-0x0;let _0x32a29c=_0x59d9[_0x250232];return _0x32a29c;};import{Plugin as _0x2567d0,Command as _0xfcdfc2}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x34b707}from'ckeditor5/src/utils';import{ContextualBalloon as _0x44f73c}from'ckeditor5/src/ui';import{DocumentFragment as _0x46a005,Element as _0x3e58ed,Text as _0xcc366f,ViewDocumentFragment as _0x3bce74,ViewText as _0x48bae3,ViewElement as _0x383178,ViewContainerElement as _0x44b800,ViewAttributeElement as _0x30edf7,ViewEmptyElement as _0x44c9b0,ViewRawElement as _0x64d5d2,ViewUIElement as _0x200baa}from'ckeditor5/src/engine';import{Users as _0x442f64,getMarkerDomElement as _0x1e8dff}from'ckeditor5-collaboration/src/collaboration-core';import _0x203876 from'./ui/revisionviewer/changedetailsview';import _0x35c14a from'./revisionsrepository';import _0x33492d from'./changeitem';import{default as _0x560a5d}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x271c49}from'lodash-es';const tt={'c':_0x44b800,'a':_0x30edf7,'e':_0x44c9b0,'r':_0x64d5d2,'u':_0x200baa};export default class d extends _0x2567d0{static get[_0x32a2('0x61')](){return'RevisionViewer';}static get['requires'](){return[_0x442f64,_0x44f73c,_0x35c14a];}constructor(_0x29effb){super(_0x29effb),this[_0x32a2('0xc')]=this['editor']['plugins'][_0x32a2('0x8a')](_0x32a2('0xb8')),this['set']('activeChange',null),this['set'](_0x32a2('0x9f'),null),this[_0x32a2('0x106')]=null,this[_0x32a2('0xf8')](_0x32a2('0x121'),null),this['set'](_0x32a2('0x102'),!0x1),this[_0x32a2('0xf8')](_0x32a2('0x2'),!0x0),this['on'](_0x32a2('0x28'),(_0x326077,_0x29d1c4,_0x521512)=>{this[_0x32a2('0xa0')]=null,this['activeView']=null,this[_0x32a2('0x2a')][_0x32a2('0xe1')][_0x32a2('0x81')][_0x32a2('0x77')](_0x13dda5=>{for(const _0x2673a0 of this[_0x32a2('0x2a')][_0x32a2('0xe1')]['view']['document']['roots'])_0x521512?_0x13dda5[_0x32a2('0x10')]('ck-editor__editable__overlay',_0x2673a0):_0x13dda5[_0x32a2('0x86')](_0x32a2('0x90'),_0x2673a0);});}),this[_0x32a2('0x6d')]('isNavigationMode')['to'](this,_0x32a2('0xa0'),_0x436c5e=>null!==_0x436c5e),this[_0x32a2('0x6d')]('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x558454,_0x245da7,_0x545eea)=>_0x558454&&_0x545eea?_0x245da7[_0x32a2('0x11f')][_0x32a2('0x5d')](_0x545eea):0x0),this[_0x32a2('0x6d')](_0x32a2('0xcf'))['to'](this,_0x32a2('0x102'),this,'diff',(_0x3087fc,_0x4b8fae)=>_0x3087fc?_0x4b8fae[_0x32a2('0x11f')]['length']:0x0),this[_0x32a2('0x4b')]=null,this[_0x32a2('0x129')]=new Map(),this[_0x32a2('0x84')]=null,this[_0x32a2('0xb7')]=this[_0x32a2('0x2a')][_0x32a2('0x44')][_0x32a2('0x8a')](_0x44f73c);}[_0x32a2('0xba')](){const _0x3203c6=this[_0x32a2('0x2a')],_0x161996=new ShowChangeCommand(_0x3203c6,{'direction':_0x32a2('0x105')}),_0x4d23dc=new ShowChangeCommand(_0x3203c6,{'direction':'forward'});(_0x3203c6[_0x32a2('0x88')][_0x32a2('0x10b')](_0x32a2('0xfd'),_0x161996),_0x3203c6[_0x32a2('0x88')][_0x32a2('0x10b')](_0x32a2('0x114'),_0x4d23dc),_0x3203c6[_0x32a2('0x88')][_0x32a2('0x10b')]('restoreRevision',new RestoreRevisionCommand(_0x3203c6)),this['on'](_0x32a2('0xd7'),()=>{_0x161996[_0x32a2('0xb6')](),_0x4d23dc[_0x32a2('0xb6')]();}),this[_0x32a2('0xc4')](),this['_initInteractions'](),_0x3203c6[_0x32a2('0xf0')](_0x32a2('0x34')),_0x3203c6[_0x32a2('0x44')]['has'](_0x32a2('0x32')))&&_0x3203c6[_0x32a2('0x44')][_0x32a2('0x8a')](_0x32a2('0x32'))[_0x32a2('0xd8')]('revision-viewer');}async[_0x32a2('0xcb')](_0x5dce0a){await this['loadRevisionData'](_0x5dce0a);const _0x5a2e99={};for(const _0x1f3c79 in _0x5dce0a['diffData']){if(_0x5dce0a['diffData'][_0x1f3c79][_0x32a2('0x14')]&&!_0x5dce0a[_0x32a2('0xd4')][_0x1f3c79][_0x32a2('0x14')]['isAttached'])continue;const _0x25de00=this['_removeRevisionMarkers'](JSON[_0x32a2('0xc2')](_0x5dce0a['diffData'][_0x1f3c79][_0x32a2('0x66')])),_0x57ad98=this[_0x32a2('0x2a')][_0x32a2('0xe1')]['view']['document'],_0x22e4a5=new _0x3bce74(_0x57ad98,_0x25de00[_0x32a2('0xb0')](_0x5d817a=>this[_0x32a2('0xb4')](_0x5d817a)));this[_0x32a2('0x2a')][_0x32a2('0xf1')][_0x32a2('0x97')][_0x32a2('0x120')](_0x32a2('0x50')),_0x5a2e99[_0x1f3c79]=this[_0x32a2('0x2a')]['data'][_0x32a2('0x97')][_0x32a2('0x2e')](_0x22e4a5),this['editor'][_0x32a2('0xf1')][_0x32a2('0x97')][_0x32a2('0x120')](_0x32a2('0x3d'));}return _0x5a2e99;}async[_0x32a2('0x11b')](_0x422e5d){await this[_0x32a2('0x37')](_0x422e5d);const _0x34a167={};for(const _0x1b9f85 in _0x422e5d[_0x32a2('0xd4')])_0x422e5d[_0x32a2('0xd4')][_0x1b9f85]['attachChange']&&!_0x422e5d[_0x32a2('0xd4')][_0x1b9f85][_0x32a2('0x14')]['isAttached']||(_0x34a167[_0x1b9f85]=_0x422e5d[_0x32a2('0xd4')][_0x1b9f85]['attributesAfter']||{});return _0x34a167;}['_removeRevisionMarkers'](_0x23665f){return(_0x23665f=_0x23665f[_0x32a2('0xf5')](_0x15272d=>!_0x15272d[_0x32a2('0xe9')]||_0x32a2('0x116')!==_0x15272d['name']&&'revision-end'!==_0x15272d['name']))['forEach'](_0x4eff79=>{_0x32a2('0xfa')!=typeof _0x4eff79&&(_0x4eff79[_0x32a2('0xe2')]=this[_0x32a2('0xb9')](_0x4eff79[_0x32a2('0xe2')]),_0x4eff79['attributes']=_0x4eff79[_0x32a2('0xd3')]['filter'](_0x3b5f9c=>!_0x3b5f9c[0x0][_0x32a2('0xb3')](_0x32a2('0x8e'))));}),_0x23665f;}async[_0x32a2('0x8f')](_0xd5ebe1,_0x5f3b5f,_0x597bf0=!0x1){if(!this['isEnabled'])return;const _0x5c8f29=this['diff'],_0x428753=this[_0x32a2('0xc')],_0x7eabbd='string'==typeof _0xd5ebe1?_0x428753[_0x32a2('0xa6')](_0xd5ebe1):_0xd5ebe1,_0x389b6e=_0x32a2('0xfa')==typeof _0x5f3b5f?_0x428753['getRevision'](_0x5f3b5f):_0x5f3b5f,_0x22d33b=_0x7eabbd['id'],_0x41459e=_0x389b6e?_0x389b6e['id']:null;if(!_0x597bf0&&this[_0x32a2('0x121')]&&this[_0x32a2('0x121')][_0x32a2('0x108')]===_0x22d33b&&this[_0x32a2('0x121')][_0x32a2('0xca')]===_0x41459e)return Promise[_0x32a2('0x9b')]();this['isReady']=!0x1,this[_0x32a2('0x9f')]=null,this[_0x32a2('0xa0')]=null,this[_0x32a2('0x121')]=new _0x560a5d(_0x22d33b,_0x41459e);const _0x42e4ff=this[_0x32a2('0x3')](_0x7eabbd,_0x389b6e,!0x0)['map'](_0x1c3638=>this[_0x32a2('0x37')](_0x1c3638));return _0x42e4ff[_0x32a2('0x18')](new Promise(_0x23cb76=>{setTimeout(_0x23cb76,0x14);})),Promise[_0x32a2('0x85')](_0x42e4ff)[_0x32a2('0x9e')](()=>{if(!this['isEnabled'])return;this[_0x32a2('0xe3')]();const _0x170bac=this['_getDiff'](_0x22d33b,_0x41459e);for(const _0x2f6581 of _0x170bac[_0x32a2('0x11f')])this[_0x32a2('0x129')]['set'](_0x2f6581['id'],_0x2f6581);this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0xc3')]({'isUndoable':!0x1},_0x39d6fb=>{for(const _0x51a3cf of this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0xb')][_0x32a2('0x2f')]())_0x39d6fb[_0x32a2('0xc0')](_0x51a3cf);for(const _0x54e9c1 of Object[_0x32a2('0x0')](_0x170bac['model'])){const _0x276184=_0x39d6fb[_0x32a2('0xf9')](_0x54e9c1);for(const _0x3850bb of Object['keys'](_0x170bac[_0x32a2('0xd3')][_0x54e9c1]))_0x39d6fb[_0x32a2('0xdc')](_0x3850bb,_0x170bac['attributes'][_0x54e9c1][_0x3850bb],_0x276184);_0x39d6fb[_0x32a2('0x21')](_0x170bac['model'][_0x54e9c1],_0x276184,0x0);}}),this['diff']['_setChanges'](this[_0x32a2('0x22')](_0x170bac['changes'])),this[_0x32a2('0x102')]=!0x0;})[_0x32a2('0x72')](_0x111669=>{console[_0x32a2('0x3a')](_0x111669),this['_cleanUp'](),_0x5c8f29&&(this[_0x32a2('0x121')]=_0x5c8f29),this[_0x32a2('0x102')]=!0x0;});}['addRevisionData'](_0x591f1a,_0x41262e){const _0x4b4152=this[_0x32a2('0xc')][_0x32a2('0x4f')](_0x591f1a);return _0x4b4152['on']('_update',(_0x5d8732,_0x2c8ff9,_0x23f7e1)=>_0x41262e(_0x2c8ff9,_0x23f7e1,_0x4b4152)),this[_0x32a2('0xc')][_0x32a2('0x111')](_0x4b4152),_0x4b4152;}[_0x32a2('0x37')](_0x53a68b){if(!_0x53a68b||_0x53a68b['diffData'])return Promise['resolve']();{const _0x265c9a=this[_0x32a2('0x2a')][_0x32a2('0x91')][_0x32a2('0x8a')](_0x32a2('0xbe'));return this[_0x32a2('0x84')]['getRevision']({'channelId':_0x265c9a,'revisionId':_0x53a68b['id']})[_0x32a2('0x9e')](_0x2cb5c3=>{_0x53a68b[_0x32a2('0xfe')]({'diffData':_0x2cb5c3['diffData']},!0x0);});}}[_0x32a2('0xe3')](){this[_0x32a2('0xa0')]=null,this[_0x32a2('0xb2')](),this['_changeView']&&this[_0x32a2('0x4b')][_0x32a2('0x9c')](),this[_0x32a2('0x4b')]=null,this[_0x32a2('0x129')][_0x32a2('0x2d')](),this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0xc3')]({'isUndoable':!0x1},_0x20b2ab=>{for(const _0x1ea27d of this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0xb')][_0x32a2('0x2f')]())_0x20b2ab[_0x32a2('0xc0')](_0x1ea27d);});}['_sortAndFilterDiffChanges'](_0x82189b){const _0x14ccb7=[],_0x1a53d1=new Map();for(const _0x3fe84f of this['editor']['model'][_0x32a2('0xb')][_0x32a2('0x2f')]()){const _0x4d3132=this[_0x32a2('0x2a')]['editing']['view'][_0x32a2('0x65')](_0x3fe84f);if(!_0x4d3132)continue;const _0x4f5357=_0x4d3132['getClientRects']()[_0x32a2('0xcd')](0x0);_0x4f5357&&(_0x14ccb7[_0x32a2('0x18')](_0x3fe84f),_0x1a53d1[_0x32a2('0xf8')](_0x3fe84f,_0x4f5357));}return _0x14ccb7[_0x32a2('0x10a')]((_0x31b517,_0x310a80)=>{const _0x15c96a=_0x1a53d1[_0x32a2('0x8a')](_0x31b517),_0x362dd3=_0x1a53d1['get'](_0x310a80);return _0x15c96a['y']-_0x362dd3['y']||_0x15c96a['x']-_0x362dd3['x'];}),(_0x82189b=_0x82189b['filter'](_0x287479=>_0x14ccb7[_0x32a2('0x9')](_0x287479[_0x32a2('0x93')])))[_0x32a2('0x10a')]((_0x5b82a7,_0xc66dcb)=>_0x14ccb7[_0x32a2('0x38')](_0x5b82a7[_0x32a2('0x93')])-_0x14ccb7[_0x32a2('0x38')](_0xc66dcb['rootName'])),_0x82189b;}[_0x32a2('0x7')](_0x41059d){const _0x3c36d0=Array[_0x32a2('0xd9')](_0x41059d[_0x32a2('0x83')])['filter'](([_0x3e622c,_0x821df6])=>_0x3e622c[_0x32a2('0xb3')](_0x32a2('0xe0'))&&!_0x821df6[_0x32a2('0xae')]),_0x286200=Array[_0x32a2('0xd9')](this['editor'][_0x32a2('0x1')]['createRangeIn'](_0x41059d)[_0x32a2('0x7b')]({'singleCharacters':!0x0}));if(0x0!=_0x3c36d0[_0x32a2('0x10e')])for(const _0x32714d of _0x286200){const [_0x3936c7,_0x4384c1]=_0x3c36d0[0x0],[,_0x5889a0,_0x4e1c74]=_0x3936c7['split'](':');if(_0x4384c1[_0x32a2('0xd')]['isEqual'](_0x32714d['nextPosition'])&&_0x3c36d0[_0x32a2('0xce')](),(_0x32714d[_0x32a2('0x94')][_0x32a2('0xc8')](_0x4384c1[_0x32a2('0x89')])||_0x32714d['previousPosition'][_0x32a2('0xa9')](_0x4384c1[_0x32a2('0x89')]))&&('insertion'==_0x5889a0?_0x32714d[_0x32a2('0x6')]={'userId':_0x4e1c74}:_0x32a2('0x128')==_0x5889a0&&(_0x32714d[_0x32a2('0x107')]={'userId':_0x4e1c74})),0x0==_0x3c36d0[_0x32a2('0x10e')])break;}return _0x286200;}['_refreshStartEndIndex'](_0x5a1c76){const _0x426c8c=new Map();for(let _0x527f15=0x0;_0x527f15<_0x5a1c76[_0x32a2('0x10e')];_0x527f15++)_0x32a2('0x57')===_0x5a1c76[_0x527f15][_0x32a2('0x25')]?(_0x5a1c76[_0x527f15]['item'][_0x32a2('0x117')]=_0x527f15,_0x5a1c76[_0x527f15]['item']['endIndex']=_0x527f15):(_0x32a2('0xbc')===_0x5a1c76[_0x527f15][_0x32a2('0x25')]?_0x5a1c76[_0x527f15][_0x32a2('0xcd')][_0x32a2('0x117')]=_0x527f15:_0x32a2('0x126')===_0x5a1c76[_0x527f15][_0x32a2('0x25')]&&(_0x5a1c76[_0x527f15]['item'][_0x32a2('0x1a')]=_0x527f15),_0x426c8c[_0x32a2('0xf8')](_0x5a1c76[_0x527f15]['id'],_0x527f15));for(const _0x58a01f of _0x426c8c[_0x32a2('0xb1')]())_0x32a2('0xbc')===_0x5a1c76[_0x58a01f][_0x32a2('0x25')]?_0x5a1c76[_0x58a01f]['item'][_0x32a2('0x1a')]=_0x426c8c[_0x32a2('0x8a')](_0x5a1c76[_0x58a01f][_0x32a2('0x51')]):_0x32a2('0x126')===_0x5a1c76[_0x58a01f][_0x32a2('0x25')]&&(_0x5a1c76[_0x58a01f][_0x32a2('0xcd')]['startIndex']=_0x426c8c['get'](_0x5a1c76[_0x58a01f][_0x32a2('0x51')]));}[_0x32a2('0xe8')](_0x37a686){for(let _0x1b1a9f=0x0;_0x1b1a9f<_0x37a686[_0x32a2('0x10e')];_0x1b1a9f++){if(_0x32a2('0xbc')===_0x37a686[_0x1b1a9f][_0x32a2('0x25')])_0x37a686[_0x1b1a9f][_0x32a2('0xcd')][_0x32a2('0x117')]=_0x1b1a9f;else{if(_0x32a2('0x126')===_0x37a686[_0x1b1a9f]['type']){_0x37a686[_0x1b1a9f]['item'][_0x32a2('0x1a')]=_0x1b1a9f;const _0x1c68bf=_0x37a686[_0x1b1a9f][_0x32a2('0xcd')]['startIndex'];_0x37a686[_0x1c68bf]['pairId']=_0x37a686[_0x1b1a9f]['id'],_0x37a686[_0x1b1a9f]['pairId']=_0x37a686[_0x1c68bf]['id'];}else _0x37a686[_0x1b1a9f]['item']['startIndex']=_0x1b1a9f,_0x37a686[_0x1b1a9f][_0x32a2('0xcd')][_0x32a2('0x1a')]=_0x1b1a9f,_0x37a686[_0x1b1a9f][_0x32a2('0x51')]=null;}_0x37a686[_0x1b1a9f][_0x32a2('0xd0')]||(_0x37a686[_0x1b1a9f][_0x32a2('0xd0')]=[],_0x37a686[_0x1b1a9f][_0x32a2('0x5a')]=[]);}}[_0x32a2('0x56')](_0x4cef50,_0x59301a){const _0x1014bf=_0x4cef50[_0x32a2('0xf5')](_0x4fe9e5=>!_0x4fe9e5[_0x32a2('0x6')]);for(let _0x5e5354=0x0;_0x5e5354<_0x59301a['length'];_0x5e5354++)_0x59301a[_0x5e5354][_0x32a2('0x6')]&&(_0x1014bf[_0x5e5354][_0x32a2('0x6')]=_0x59301a[_0x5e5354][_0x32a2('0x6')]);}[_0x32a2('0x49')](_0x3a5619){const _0x5bd958=JSON[_0x32a2('0xc2')](_0x3a5619),_0x2a18ac=this[_0x32a2('0x2a')]['editing'][_0x32a2('0x81')][_0x32a2('0xb')],_0x36519d=new _0x3bce74(_0x2a18ac,_0x5bd958[_0x32a2('0xb0')](_0x1df2f3=>this[_0x32a2('0xb4')](_0x1df2f3)));return this['editor'][_0x32a2('0xf1')][_0x32a2('0x12')](_0x36519d);}[_0x32a2('0xb4')](_0x383817){const _0x37bd44=this[_0x32a2('0x2a')][_0x32a2('0xe1')][_0x32a2('0x81')][_0x32a2('0xb')];if('string'==typeof _0x383817)return new _0x48bae3(_0x37bd44,_0x383817);{const _0x1746e0=_0x383817[_0x32a2('0xe2')][_0x32a2('0xb0')](_0x260d16=>this[_0x32a2('0xb4')](_0x260d16));return new(tt[_0x383817[(_0x32a2('0x25'))]]||_0x383178)(_0x37bd44,_0x383817['name'],_0x383817['attributes'],_0x1746e0);}}['_getDiff'](_0xb3083d,_0x57d471=null){const _0x1bd935=this[_0x32a2('0xc')][_0x32a2('0xa6')](_0xb3083d),_0x5f97dd=_0x57d471?this[_0x32a2('0xc')][_0x32a2('0xa6')](_0x57d471):null,_0x34e5c0=this['_getRevisionsRange'](_0x1bd935,_0x5f97dd),_0x3c5071=_0x34e5c0[_0x34e5c0[_0x32a2('0x10e')]-0x1],_0x559060=new Map(),_0x4d981d={'model':{},'attributes':{},'changes':[]},_0x44ebe5=new Set(),_0xd6b89d=new Map();for(let _0x266cf7=_0x34e5c0['length']-0x1;_0x266cf7>=0x0;_0x266cf7--){const _0x3497b6=_0x34e5c0[_0x266cf7];for(const _0x354eb2 of Object[_0x32a2('0x0')](_0x3497b6[_0x32a2('0xd4')]))if(_0x3497b6[_0x32a2('0xd4')][_0x354eb2][_0x32a2('0x14')]){const _0x584df6=_0x3497b6[_0x32a2('0xd4')][_0x354eb2][_0x32a2('0x14')];_0x584df6[_0x32a2('0x109')]?(_0x44ebe5[_0x32a2('0x10b')](_0x354eb2),_0xd6b89d[_0x32a2('0xcc')](_0x354eb2)&&_0xd6b89d[_0x32a2('0x8a')](_0x354eb2)[_0x32a2('0x11e')]==_0x584df6[_0x32a2('0x11e')]?_0xd6b89d['delete'](_0x354eb2):_0xd6b89d[_0x32a2('0xf8')](_0x354eb2,_0x584df6)):_0xd6b89d[_0x32a2('0xcc')](_0x354eb2)?(_0x44ebe5[_0x32a2('0x26')](_0x354eb2),_0xd6b89d['delete'](_0x354eb2)):(_0x44ebe5['add'](_0x354eb2),_0xd6b89d['set'](_0x354eb2,_0x584df6));}else _0x44ebe5[_0x32a2('0x10b')](_0x354eb2);}for(const _0x3a1d2d of _0x44ebe5){const _0xeff965=_0xd6b89d[_0x32a2('0xcc')](_0x3a1d2d)&&!_0xd6b89d[_0x32a2('0x8a')](_0x3a1d2d)[_0x32a2('0x109')];let _0x37420e=_0xeff965?_0x34e5c0['length']-0x1:0x0;const _0x50eae8=_0xeff965?-0x1:0x1;for(;_0x34e5c0[_0x37420e];){const _0x5cfe6e=_0x34e5c0[_0x37420e];if(_0x5cfe6e[_0x32a2('0xd4')][_0x3a1d2d]){const _0xbe9867=_0xeff965?_0x5cfe6e['diffData'][_0x3a1d2d][_0x32a2('0x112')]:_0x5cfe6e[_0x32a2('0xd4')][_0x3a1d2d][_0x32a2('0x5b')];_0x4d981d[_0x32a2('0xd3')][_0x3a1d2d]=_0xbe9867?_0x271c49(_0xbe9867):{};break;}_0x37420e+=_0x50eae8;}}for(const _0x578592 of _0x34e5c0){_0x578592[_0x32a2('0x1')]={};for(const _0x48d3ce of _0x578592[_0x32a2('0x5c')])_0x559060[_0x32a2('0xf8')](_0x48d3ce['id'],_0x48d3ce);for(const _0x194be0 of _0x44ebe5){const _0x5441a3=_0x578592['diffData'][_0x194be0]?_0x578592['diffData'][_0x194be0][_0x32a2('0x66')]:'[]',_0x491249=_0x578592['diffData'][_0x194be0]?_0x578592[_0x32a2('0xd4')][_0x194be0][_0x32a2('0x5f')]:'[]';_0x578592[_0x32a2('0x1')][_0x194be0]={'insertions':this[_0x32a2('0x49')](_0x5441a3),'deletions':this['_makeModelFromViewString'](_0x491249)};}}for(const _0x58f24f of _0x44ebe5){let _0x42098c=null,_0x5f1471=0x0;const _0x1073e9=new Map(Array[_0x32a2('0xd9')](_0x1bd935['model'][_0x58f24f][_0x32a2('0x66')]['markers'])[_0x32a2('0xf5')](([_0x4193e6])=>!_0x4193e6[_0x32a2('0xb3')]('revision:')));let _0x17bbd8=0x0;for(const _0xf2576d of _0x34e5c0){const _0x3f7d66=this[_0x32a2('0x7')](_0xf2576d[_0x32a2('0x1')][_0x58f24f][_0x32a2('0x66')]);_0xf2576d==_0x1bd935?(_0x42098c=_0x3f7d66,_0x5f1471=_0x42098c[_0x32a2('0x10e')],_0x42098c[_0x32a2('0xa5')](_0x2175a6=>{_0x2175a6['id']=_0x17bbd8++;}),this[_0x32a2('0xe8')](_0x42098c)):this[_0x32a2('0x56')](_0x42098c,_0x3f7d66);const _0x4594d4=_0x42098c['filter'](_0xc3321=>!_0xc3321['isAdded'])[_0x32a2('0xb0')](_0x1e63c0=>_0x1e63c0['id']);let _0xf13139=0x0;const _0x5446f5=this[_0x32a2('0x7')](_0xf2576d[_0x32a2('0x1')][_0x58f24f][_0x32a2('0x5f')]);_0x5446f5[_0x32a2('0xa5')](_0x44b5c7=>{_0x44b5c7[_0x32a2('0x107')]?_0x44b5c7['id']=_0x5f1471++:_0x44b5c7['id']=_0x4594d4[_0xf13139++];}),this['_processTape'](_0x5446f5),this[_0x32a2('0x11')](_0x42098c,_0x32a2('0x6')),this[_0x32a2('0x11')](_0x5446f5,'isRemoved'),_0xf2576d==_0x1bd935&&this[_0x32a2('0x73')](_0x42098c,_0x1073e9),_0x42098c=this[_0x32a2('0xde')](_0x42098c,_0x5446f5),this[_0x32a2('0x6c')](_0x42098c),this['_setDistance'](_0x42098c,_0x32a2('0x107'));}_0x42098c=_0x42098c[_0x32a2('0xf5')](_0x47a323=>!(_0x47a323[_0x32a2('0x6')]&&_0x47a323[_0x32a2('0x107')]));const _0x27b0a9=new Map(_0x3c5071[_0x32a2('0x1')][_0x58f24f][_0x32a2('0x5f')][_0x32a2('0x83')]),_0x4fc99c=new Set(_0x1073e9['keys']());for(const _0x74dda5 of _0x27b0a9[_0x32a2('0x0')]())_0x4fc99c[_0x32a2('0x26')](_0x74dda5);this[_0x32a2('0x98')](_0x42098c,_0x4fc99c),this[_0x32a2('0x64')](_0x42098c),_0x42098c=this['_removeMissingPairs'](_0x42098c),_0x42098c=this['_markMismatchedRemovedTags'](_0x42098c),_0x42098c=this[_0x32a2('0x6e')](_0x42098c);const {root:_0x39815f,changes:_0xb7b97d}=this['_makeModelFromTape'](_0x42098c,_0x559060,_0x58f24f);_0x4d981d['model'][_0x58f24f]=_0x39815f;const _0x1e412f=_0xd6b89d[_0x32a2('0x8a')](_0x58f24f);if(_0x1e412f){const _0x24ebdb=_0x559060['get'](_0x1e412f[_0x32a2('0x11e')]),_0x57cdf1=new _0x33492d({'author':_0x24ebdb,'type':_0x1e412f[_0x32a2('0x109')]?_0x32a2('0x10b'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x58f24f});_0xb7b97d[_0x32a2('0xac')](_0x57cdf1),_0x4d981d[_0x32a2('0xd3')][_0x58f24f][_0x32a2('0x8b')]=_0x57cdf1['id'];}_0x4d981d[_0x32a2('0x11f')]=_0x4d981d[_0x32a2('0x11f')][_0x32a2('0xf6')](_0xb7b97d);}return _0x4d981d;}['_markMarkers'](_0x1b3c7f,_0x542126){for(let _0x2e05d7=0x0;_0x2e05d7<_0x1b3c7f[_0x32a2('0x10e')];_0x2e05d7++)for(const [_0x34aa83,_0x596bb9]of _0x542126)_0x596bb9[_0x32a2('0x89')][_0x32a2('0xc8')](_0x1b3c7f[_0x2e05d7][_0x32a2('0x94')])&&_0x1b3c7f[_0x2e05d7][_0x32a2('0xd0')][_0x32a2('0x18')](_0x34aa83),_0x596bb9[_0x32a2('0xd')]['isEqual'](_0x1b3c7f[_0x2e05d7][_0x32a2('0x104')])&&_0x1b3c7f[_0x2e05d7][_0x32a2('0x5a')][_0x32a2('0x18')](_0x34aa83);}[_0x32a2('0xde')](_0x1b5eaa,_0x9c55b7){let _0x3a4200=[],_0x339fec=0x0,_0x327026=0x0;for(;_0x339fec<_0x1b5eaa[_0x32a2('0x10e')]||_0x327026<_0x9c55b7[_0x32a2('0x10e')];){const _0xed38c8=_0x1b5eaa[_0x339fec]||{},_0x1ef6b9=_0x9c55b7[_0x327026]||{};if(_0xed38c8['id']==_0x1ef6b9['id'])_0x339fec++,_0x327026++,_0x3a4200['push'](_0xed38c8);else{if(_0x1ef6b9[_0x32a2('0x107')]&&_0xed38c8['isAdded']){const {commonTape:_0x39cfbb,iEnd:_0x2bbf86,jEnd:_0x34c436}=this['_threeWayMerge'](_0x1b5eaa,_0x339fec,_0x9c55b7,_0x327026);_0x3a4200=_0x3a4200[_0x32a2('0xf6')](_0x39cfbb),_0x339fec=_0x2bbf86,_0x327026=_0x34c436;}else _0x1ef6b9[_0x32a2('0x107')]?(_0x327026++,_0x3a4200['push'](_0x1ef6b9)):(_0x339fec++,_0x3a4200[_0x32a2('0x18')](_0xed38c8));}}return _0x3a4200;}['_markSuggestions'](_0x365aa3,_0x32faa9){const _0xbfcd7=[];for(let _0x1f4871=0x0;_0x1f4871<_0x365aa3[_0x32a2('0x10e')];_0x1f4871++){for(let _0x32cfa6=0x0;_0x32cfa6<_0x365aa3[_0x1f4871][_0x32a2('0xd0')]['length'];_0x32cfa6++){const _0xf6a07e=_0x365aa3[_0x1f4871]['markersStart'][_0x32cfa6];if(!_0x32faa9[_0x32a2('0xcc')](_0xf6a07e))continue;const {group:_0x32fe35,type:_0x115f4d,authorId:_0x1c3d5c}=_0x2effbc(_0xf6a07e);_0x32a2('0x11a')!=_0x32fe35||_0x32a2('0xf')!=_0x115f4d&&'deletion'!=_0x115f4d||(_0xbfcd7[_0x32a2('0xac')]({'type':_0x115f4d,'name':_0xf6a07e,'userId':_0x1c3d5c}),_0x365aa3[_0x1f4871][_0x32a2('0xd0')]['splice'](_0x32cfa6,0x1),_0x32cfa6--);}_0x424d4a(_0x365aa3[_0x1f4871]);for(let _0xf53b4=0x0;_0xf53b4<_0x365aa3[_0x1f4871][_0x32a2('0x5a')][_0x32a2('0x10e')];_0xf53b4++){const _0xfbe83b=_0x365aa3[_0x1f4871]['markersEnd'][_0xf53b4];if(!_0x32faa9['has'](_0xfbe83b))continue;const {group:_0x212d10,type:_0x59f712}=_0x2effbc(_0xfbe83b);if(_0x32a2('0x11a')!=_0x212d10||_0x32a2('0xf')!=_0x59f712&&_0x32a2('0x128')!=_0x59f712)continue;_0x365aa3[_0x1f4871][_0x32a2('0x5a')][_0x32a2('0xc6')](_0xf53b4,0x1),_0xf53b4--;const _0x10b2c2=_0xbfcd7[_0x32a2('0x48')](_0x5b2769=>_0x5b2769['name']==_0xfbe83b);_0x10b2c2>-0x1&&_0xbfcd7[_0x32a2('0xc6')](_0x10b2c2,0x1);}}function _0x2effbc(_0x2f0dc5){const _0x4d4003=_0x2f0dc5['split'](':');return{'group':_0x4d4003[0x0],'type':_0x4d4003[0x1],'subType':_0x4d4003[_0x32a2('0x10e')]>=0x5?_0x4d4003[0x2]:null,'id':_0x4d4003['length']<0x5?_0x4d4003[0x2]:_0x4d4003[0x3],'authorId':_0x4d4003[_0x32a2('0x10e')]<0x5?_0x4d4003[0x3]:_0x4d4003[0x4],'markerCount':0x6==_0x4d4003['length']?_0x4d4003[0x5]:null};}function _0x424d4a(_0x8c1694){for(let _0x49946c=0x0;_0x49946c<_0xbfcd7[_0x32a2('0x10e')];_0x49946c++){if(_0x8c1694['isAdded']&&_0x32a2('0xf')==_0xbfcd7[_0x49946c]['type'])return _0x8c1694[_0x32a2('0xe4')]=_0xbfcd7[_0x49946c],void delete _0x8c1694[_0x32a2('0x6')];if(!_0x8c1694[_0x32a2('0x6')]&&!_0x8c1694['isRemoved']&&_0x32a2('0x128')==_0xbfcd7[_0x49946c][_0x32a2('0x25')])return void(_0x8c1694[_0x32a2('0x69')]=_0xbfcd7[_0x49946c]);}}}[_0x32a2('0x11')](_0x273b9a,_0x363b81){let _0x1493ee=0x0,_0xd5580=!0x1;const _0x1c3517=new Map();for(const _0x402af2 of _0x273b9a)_0x402af2[_0x363b81]?_0xd5580&&(_0x1493ee++,_0xd5580=!0x1):(_0x1493ee++,_0xd5580=!0x0),_0x1c3517[_0x32a2('0xf8')](_0x402af2['id'],_0x1493ee);for(let _0x5c3c10=0x0;_0x5c3c10<_0x273b9a[_0x32a2('0x10e')];_0x5c3c10++){if('isRemoved'==_0x363b81&&_0x273b9a[_0x5c3c10][_0x32a2('0x6')]||'isAdded'==_0x363b81&&_0x273b9a[_0x5c3c10]['isRemoved'])continue;if(_0x32a2('0x57')==_0x273b9a[_0x5c3c10][_0x32a2('0x25')]){_0x273b9a[_0x5c3c10][_0x32a2('0x1e')]=0x0;continue;}const _0x3d0605=_0x1c3517[_0x32a2('0x8a')](_0x273b9a[_0x5c3c10][_0x32a2('0x51')]),_0xfe92a5=_0x1c3517[_0x32a2('0x8a')](_0x273b9a[_0x5c3c10]['id']);_0x273b9a[_0x5c3c10][_0x32a2('0x1e')]=_0x3d0605-_0xfe92a5;}}[_0x32a2('0x3')](_0x553308,_0x32db05,_0x1d06be=!0x1){const _0x52f184=[];let _0x3c55ef=this['repository'][_0x32a2('0x5d')](_0x553308),_0x109c0e=this[_0x32a2('0xc')][_0x32a2('0x5d')](_0x32db05);for(-0x1==_0x109c0e&&(_0x109c0e=this[_0x32a2('0xc')][_0x32a2('0xf7')][_0x32a2('0x10e')],_0x1d06be=!0x1);_0x3c55ef<_0x109c0e;)_0x52f184[_0x32a2('0x18')](this[_0x32a2('0xc')]['getRevision'](_0x3c55ef)),_0x3c55ef++;return _0x1d06be&&_0x52f184[_0x32a2('0x18')](this[_0x32a2('0xc')]['getRevision'](_0x3c55ef)),_0x52f184;}[_0x32a2('0x6a')](_0xf016dd,_0x4ab08a,_0x5c0c9d,_0x28fe37){const _0x69f106=this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0x124')];let _0x59a49d=_0x4ab08a;for(;_0xf016dd[_0x59a49d]&&_0xf016dd[_0x59a49d][_0x32a2('0x6')];)_0x59a49d++;let _0x157aa5=_0x28fe37;for(;_0x5c0c9d[_0x157aa5]&&_0x5c0c9d[_0x157aa5][_0x32a2('0x107')];)_0x157aa5++;_0x24b93b(_0xf016dd,_0x4ab08a,_0x59a49d),_0x24b93b(_0x5c0c9d,_0x28fe37,_0x157aa5);const _0x3df7b9=_0x5c0c9d[_0x32a2('0xbd')](_0x28fe37,_0x157aa5)['concat'](_0xf016dd[_0x32a2('0xbd')](_0x4ab08a,_0x59a49d));return _0x3df7b9[_0x32a2('0x10a')]((_0x5b2e3a,_0x5ee2fb)=>_0x5b2e3a[_0x32a2('0x1f')]!=_0x5ee2fb['side']?_0x5b2e3a['side']-_0x5ee2fb[_0x32a2('0x1f')]:_0x5b2e3a[_0x32a2('0x10c')]!=_0x5ee2fb[_0x32a2('0x10c')]?_0x5b2e3a[_0x32a2('0x10c')]-_0x5ee2fb[_0x32a2('0x10c')]:_0x5b2e3a[_0x32a2('0x1e')]!=_0x5ee2fb['distance']?_0x5ee2fb[_0x32a2('0x1e')]-_0x5b2e3a[_0x32a2('0x1e')]:!!_0x5b2e3a[_0x32a2('0x6')]!=!!_0x5ee2fb[_0x32a2('0x6')]?-0x1==_0x5b2e3a[_0x32a2('0x1f')]||0x0==_0x5b2e3a[_0x32a2('0x1f')]?_0x5b2e3a[_0x32a2('0x6')]?-0x1:0x1:_0x5b2e3a['isAdded']?0x1:-0x1:_0x5b2e3a['index']-_0x5ee2fb[_0x32a2('0xd2')]),{'commonTape':_0x3df7b9,'iEnd':_0x59a49d,'jEnd':_0x157aa5};function _0x24b93b(_0x4c9fc2,_0x4a4068,_0x2a3ccd){let _0x21a9c3=-0x1,_0x45dc8e=Number['POSITIVE_INFINITY'],_0x2ee78e=!0x0;for(let _0xc73049=_0x4a4068;_0xc73049<_0x2a3ccd;_0xc73049++)if(_0x69f106[_0x32a2('0xd5')](_0x4c9fc2[_0xc73049]['item'])||(_0x2ee78e=!0x1),_0x4c9fc2[_0xc73049][_0x32a2('0xcd')]['startIndex']<_0x4a4068&&(_0x21a9c3=_0xc73049),_0x4c9fc2[_0xc73049][_0x32a2('0xcd')][_0x32a2('0x1a')]>=_0x2a3ccd){_0x45dc8e=_0xc73049;break;}_0x2ee78e&&(_0x21a9c3=_0x2a3ccd-0x1);for(let _0x48ba6a=_0x4a4068;_0x48ba6a<_0x2a3ccd;_0x48ba6a++)_0x4c9fc2[_0x48ba6a][_0x32a2('0x1f')]=_0x48ba6a<=_0x21a9c3?-0x1:_0x48ba6a<_0x45dc8e?0x0:0x1,_0x4c9fc2[_0x48ba6a][_0x32a2('0xd2')]=_0x48ba6a;let _0x43a64f=0x0;for(let _0x375a37=_0x4a4068;_0x375a37<=_0x21a9c3;_0x375a37++)0x0==_0x4c9fc2[_0x375a37]['distance']?_0x4c9fc2[_0x375a37][_0x32a2('0x10c')]=_0x43a64f:(_0x43a64f++,_0x4c9fc2[_0x375a37][_0x32a2('0x10c')]=_0x43a64f,_0x43a64f++);for(let _0x454470=_0x4a4068;_0x454470<_0x2a3ccd;_0x454470++)0x0==_0x4c9fc2[_0x454470][_0x32a2('0x1f')]&&(_0x4c9fc2[_0x454470][_0x32a2('0x10c')]=_0x43a64f);_0x43a64f=0x0;for(let _0x51f96c=_0x2a3ccd-0x1;_0x51f96c>=_0x45dc8e;_0x51f96c--)0x0==_0x4c9fc2[_0x51f96c][_0x32a2('0x1e')]?_0x4c9fc2[_0x51f96c][_0x32a2('0x10c')]=_0x43a64f:(_0x43a64f--,_0x4c9fc2[_0x51f96c][_0x32a2('0x10c')]=_0x43a64f,_0x43a64f--);}}[_0x32a2('0x64')](_0x51219e){const _0x5d8852=new Map(),_0x3164ec=this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0x124')];for(let _0x5add37=0x1;_0x5add37<_0x51219e[_0x32a2('0x10e')];_0x5add37++){let _0x20a8df,_0x3a3893,_0x9974d0;const _0x4933b1=_0x51219e[_0x5add37],_0x53bf90=_0x51219e[_0x5add37-0x1];if(_0x32a2('0x57')==_0x4933b1[_0x32a2('0x25')])continue;if(_0x4933b1[_0x32a2('0x25')]!=_0x53bf90[_0x32a2('0x25')])continue;if(!_0x3164ec['isBlock'](_0x53bf90[_0x32a2('0xcd')])||_0x3164ec[_0x32a2('0x15')](_0x53bf90['item']))continue;if(!_0x3164ec[_0x32a2('0x101')](_0x4933b1[_0x32a2('0xcd')])||_0x3164ec[_0x32a2('0x15')](_0x4933b1[_0x32a2('0xcd')]))continue;if((_0x51219e[_0x5add37][_0x32a2('0x6')]||_0x51219e[_0x5add37][_0x32a2('0xe4')])&&_0x51219e[_0x5add37-0x1][_0x32a2('0x107')])_0x20a8df=_0x51219e[_0x5add37],_0x3a3893=_0x51219e[_0x5add37-0x1],_0x9974d0=_0x5add37-0x1;else{if(!_0x51219e[_0x5add37][_0x32a2('0x107')]||!_0x51219e[_0x5add37-0x1]['isAdded']&&!_0x51219e[_0x5add37-0x1][_0x32a2('0xe4')])continue;_0x20a8df=_0x51219e[_0x5add37-0x1],_0x3a3893=_0x51219e[_0x5add37],_0x9974d0=_0x5add37;}const _0x32a9fa=_0x20a8df['level']==_0x3a3893[_0x32a2('0x10c')],_0x5970b7=Math[_0x32a2('0x100')](_0x20a8df['level'])<Math[_0x32a2('0x100')](_0x3a3893[_0x32a2('0x10c')])&&0x0==_0x3a3893[_0x32a2('0x1e')];(_0x32a9fa||_0x5970b7)&&(_0x5d8852[_0x32a2('0xf8')](_0x3a3893['id'],_0x20a8df['id']),_0x51219e[_0x32a2('0xc6')](_0x9974d0,0x1),_0x5add37--,_0x20a8df[_0x32a2('0x6')]=!0x1);}for(let _0xe0c657=0x0;_0xe0c657<_0x51219e[_0x32a2('0x10e')];_0xe0c657++)_0x5d8852[_0x32a2('0xcc')](_0x51219e[_0xe0c657]['pairId'])&&(_0x51219e[_0xe0c657]['pairId']=_0x5d8852[_0x32a2('0x8a')](_0x51219e[_0xe0c657]['pairId']));}[_0x32a2('0xef')](_0x6ddc7b){const _0x131c5b=new Set(_0x6ddc7b[_0x32a2('0xb0')](_0x559cb4=>_0x559cb4['id']));for(let _0x51e65c=0x0;_0x51e65c<_0x6ddc7b['length'];_0x51e65c++)_0x131c5b[_0x32a2('0xcc')](_0x6ddc7b[_0x51e65c]['pairId'])||0x0==_0x6ddc7b[_0x51e65c][_0x32a2('0x1e')]||(_0x6ddc7b[_0x51e65c][_0x32a2('0xbf')]=!0x0);return _0x6ddc7b[_0x32a2('0xf5')](_0x18dbac=>!_0x18dbac[_0x32a2('0xbf')]);}[_0x32a2('0xa8')](_0x49c660){const _0x310bc1=new Set();for(let _0x361789=0x0;_0x361789<_0x49c660[_0x32a2('0x10e')];_0x361789++){if(_0x310bc1[_0x32a2('0xcc')](_0x49c660[_0x361789]['id'])&&_0x49c660[_0x361789][_0x32a2('0x107')]&&(_0x49c660[_0x361789]['isIncorrect']=!0x0),_0x49c660[_0x361789][_0x32a2('0xbf')])continue;if(0x0==_0x49c660[_0x361789]['distance'])continue;if('elementStart'!=_0x49c660[_0x361789]['type'])continue;if(null==_0x49c660[_0x361789]['pairId'])continue;let _0x276694=_0x361789+0x1,_0x565576=0x0;for(;_0x49c660[_0x276694]['id']!=_0x49c660[_0x361789][_0x32a2('0x51')];)_0x32a2('0xbc')==_0x49c660[_0x276694]['type']?_0x565576++:_0x32a2('0x126')==_0x49c660[_0x276694][_0x32a2('0x25')]&&_0x565576--,_0x276694++;if(0x0!=_0x565576){if(_0x49c660[_0x361789][_0x32a2('0x107')])_0x49c660[_0x361789][_0x32a2('0xbf')]=!0x0;else for(;_0x276694!=_0x361789;)_0x49c660[_0x276694][_0x32a2('0x107')]&&0x0!=_0x49c660[_0x276694][_0x32a2('0x1e')]&&(_0x49c660[_0x276694][_0x32a2('0xbf')]=!0x0,_0x310bc1['add'](_0x49c660[_0x276694][_0x32a2('0x51')])),_0x276694--;}}return _0x49c660[_0x32a2('0xf5')](_0x30396f=>!_0x30396f[_0x32a2('0xbf')]);}['_removeUnsupportedChanges'](_0x311e51){const _0x393027=this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0x124')];for(let _0x582099=0x0;_0x582099<_0x311e51[_0x32a2('0x10e')];_0x582099++){if(!(_0x311e51[_0x582099]['isAdded']||_0x311e51[_0x582099][_0x32a2('0xe4')]||_0x311e51[_0x582099][_0x32a2('0x107')]||_0x311e51[_0x582099]['isRemoveSuggestion']))continue;if(0x0==_0x311e51[_0x582099][_0x32a2('0x1e')])continue;const _0x2e19c1=_0x311e51[_0x582099][_0x32a2('0xcd')];_0x393027[_0x32a2('0x101')](_0x2e19c1)||_0x393027[_0x32a2('0x15')](_0x2e19c1)||(_0x311e51[_0x582099][_0x32a2('0x6')]&&delete _0x311e51[_0x582099][_0x32a2('0x6')],_0x311e51[_0x582099][_0x32a2('0xe4')]&&delete _0x311e51[_0x582099][_0x32a2('0xe4')],_0x311e51[_0x582099][_0x32a2('0x69')]&&delete _0x311e51[_0x582099][_0x32a2('0x69')],_0x311e51[_0x582099][_0x32a2('0x107')]&&(_0x311e51[_0x582099][_0x32a2('0xbf')]=!0x0));}return _0x311e51['filter'](_0x3066cd=>!_0x3066cd['isIncorrect']);}[_0x32a2('0x16')](_0x390954,_0x58d83d,_0x42db24){const _0xe30696=new _0x46a005(),_0xea8ed5=[],_0x1a630f=new Map(),_0x1b6954=this[_0x32a2('0x2a')][_0x32a2('0x1')],_0x2c4381=_0x1b6954[_0x32a2('0x124')],_0x595b3e=[_0xe30696],_0x3cc432={},_0x5ccf4e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1b7b43=null;const _0x13ebbf=[0x0];for(let _0x12b68c=0x0;_0x12b68c<_0x390954['length'];_0x12b68c++){let _0x39931c,_0x421e81;if('elementStart'===_0x390954[_0x12b68c][_0x32a2('0x25')]){_0x39931c=_0x1b6954[_0x32a2('0x78')](_0xe30696,_0x13ebbf);const _0x49e470=new _0x3e58ed(_0x390954[_0x12b68c][_0x32a2('0xcd')][_0x32a2('0xe9')],_0x390954[_0x12b68c][_0x32a2('0xcd')][_0x32a2('0x47')]());_0x595b3e[0x0]['_appendChild'](_0x49e470),_0x13ebbf[_0x32a2('0x18')](0x0),_0x595b3e[_0x32a2('0xac')](_0x49e470),_0x421e81=_0x1b6954['createPositionFromPath'](_0xe30696,_0x13ebbf),_0x1b7b43=null;}else{if(_0x32a2('0x126')===_0x390954[_0x12b68c][_0x32a2('0x25')])_0x595b3e['shift'](),_0x39931c=_0x1b6954['createPositionFromPath'](_0xe30696,_0x13ebbf),_0x13ebbf[_0x32a2('0x95')](),_0x13ebbf[_0x13ebbf[_0x32a2('0x10e')]-0x1]++,_0x421e81=_0x1b6954['createPositionFromPath'](_0xe30696,_0x13ebbf),_0x1b7b43=null;else{if(_0x39931c=_0x1b6954['createPositionFromPath'](_0xe30696,_0x13ebbf),_0x1b7b43&&_0x58cd37(_0x1b7b43,_0x390954[_0x12b68c][_0x32a2('0xcd')]))_0x1b7b43[_0x32a2('0x45')]+=_0x390954[_0x12b68c]['item'][_0x32a2('0xf1')];else{const _0xc92fdc=new _0xcc366f(_0x390954[_0x12b68c]['item']['data'],_0x390954[_0x12b68c][_0x32a2('0xcd')][_0x32a2('0x47')]());_0x595b3e[0x0][_0x32a2('0xeb')](_0xc92fdc),_0x1b7b43=_0xc92fdc;}_0x13ebbf[_0x13ebbf[_0x32a2('0x10e')]-0x1]+=_0x390954[_0x12b68c]['item'][_0x32a2('0xad')],_0x421e81=_0x1b6954[_0x32a2('0x78')](_0xe30696,_0x13ebbf);}}for(const _0x386ca1 of _0x390954[_0x12b68c][_0x32a2('0xd0')])_0x1a630f[_0x32a2('0xf8')](_0x386ca1,{'start':_0x39931c,'end':null});_0x1fa205('isRemoveSuggestion',_0x12b68c,_0x39931c,_0x421e81),_0x1fa205(_0x32a2('0xe4'),_0x12b68c,_0x39931c,_0x421e81),_0x1fa205(_0x32a2('0x107'),_0x12b68c,_0x39931c,_0x421e81),_0x1fa205(_0x32a2('0x6'),_0x12b68c,_0x39931c,_0x421e81);for(const _0x52b41f of _0x390954[_0x12b68c]['markersEnd']){_0x1a630f['get'](_0x52b41f)[_0x32a2('0xd')]=_0x421e81;}}for(const [_0x467046,_0x1d78cd]of _0x1a630f){const _0x302d8b=this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0xff')](_0x1d78cd[_0x32a2('0x89')],_0x1d78cd['end']);_0xe30696['markers']['set'](_0x467046,_0x302d8b);}return _0xea8ed5[_0x32a2('0x10a')]((_0x1a0f14,_0x35f60b)=>{const _0x4fdc96=_0xe30696[_0x32a2('0x83')][_0x32a2('0x8a')](_0x32a2('0xe0')+_0x1a0f14['id']),_0x5353a5=_0xe30696[_0x32a2('0x83')]['get']('revision:'+_0x35f60b['id']);return _0x4fdc96[_0x32a2('0x89')]['isBefore'](_0x5353a5[_0x32a2('0x89')])?-0x1:_0x4fdc96['start']['isAfter'](_0x5353a5[_0x32a2('0x89')])?0x1:_0x4fdc96[_0x32a2('0xd')][_0x32a2('0x8')](_0x5353a5[_0x32a2('0xd')])?-0x1:_0x4fdc96['end'][_0x32a2('0xa9')](_0x5353a5[_0x32a2('0xd')])?0x1:'add'===_0x1a0f14[_0x32a2('0x25')]?-0x1:0x1;}),{'root':_0xe30696,'changes':_0xea8ed5};function _0x1fa205(_0x44d143,_0x46143d,_0x338b65,_0x15eb2b){const _0x13ee3b=!!_0x390954[_0x46143d][_0x44d143],_0x55cabb=_0x13ee3b?_0x390954[_0x46143d][_0x44d143][_0x32a2('0x11e')]:null,_0x34c2c8=_0x46143d===_0x390954[_0x32a2('0x10e')]-0x1,_0x5337ab=_0x5ccf4e[_0x44d143][0x0],_0x4bc122=_0x2c4381[_0x32a2('0xfb')](_0x390954[_0x46143d][_0x32a2('0xcd')]);!_0x3cc432[_0x44d143]&&_0x13ee3b?_0x3cc432[_0x44d143]={'start':_0x338b65,'tapeItem':_0x390954[_0x46143d],'userId':_0x55cabb,'type':_0x44d143}:_0x3cc432[_0x44d143]&&!_0x13ee3b?(_0x3cc432[_0x44d143][_0x32a2('0xd')]=_0x338b65,_0x5caa7b(_0x3cc432[_0x44d143]),_0x3cc432[_0x44d143]=null):_0x3cc432[_0x44d143]&&_0x13ee3b&&_0x3cc432[_0x44d143]['userId']!==_0x55cabb&&(_0x3cc432[_0x44d143][_0x32a2('0xd')]=_0x338b65,_0x5337ab&&_0x5337ab[_0x32a2('0x11e')]===_0x3cc432[_0x44d143][_0x32a2('0x11e')]||_0x5caa7b(_0x3cc432[_0x44d143]),_0x3cc432[_0x44d143]={'start':_0x338b65,'tapeItem':_0x390954[_0x46143d],'userId':_0x55cabb,'type':_0x44d143}),_0x3cc432[_0x44d143]&&_0x4bc122&&('elementStart'!==_0x390954[_0x46143d][_0x32a2('0x25')]||_0x5337ab&&_0x5337ab[_0x32a2('0x11e')]===_0x55cabb||_0x5ccf4e[_0x44d143][_0x32a2('0xac')]({'userId':_0x55cabb,'object':_0x390954[_0x46143d][_0x32a2('0xcd')],'change':_0x3cc432[_0x44d143]}),_0x32a2('0x126')===_0x390954[_0x46143d][_0x32a2('0x25')]&&_0x5337ab&&_0x5337ab['object']===_0x390954[_0x46143d]['item']&&(_0x5ccf4e[_0x44d143][_0x32a2('0xce')](),_0x3cc432[_0x44d143]=_0x5337ab[_0x32a2('0x77')])),_0x3cc432[_0x44d143]&&_0x34c2c8&&(_0x3cc432[_0x44d143]['end']=_0x15eb2b,_0x5caa7b(_0x3cc432[_0x44d143]),_0x3cc432[_0x44d143]=null);}function _0x5caa7b({start:_0x450574,end:_0x5c6986,tapeItem:_0x9cb10b,userId:_0x6fbe48,type:_0x5190ac}){const _0x2fa307=_0x9cb10b[_0x32a2('0xcd')],_0x58ddfd=_0x1b6954[_0x32a2('0x124')][_0x32a2('0x101')](_0x2fa307)&&!_0x1b6954[_0x32a2('0x124')][_0x32a2('0x15')](_0x2fa307),_0x339ddf=_0x450574[_0x32a2('0xe6')]==_0x5c6986[_0x32a2('0x54')]&&_0x5c6986[_0x32a2('0x31')];if(_0x58ddfd&&_0x339ddf)return;const _0x36db69=_0x1b6954['createRange'](_0x450574,_0x5c6986),_0x56b40e=_0x58d83d['get'](_0x6fbe48),_0x7e990f=new _0x33492d({'author':_0x56b40e,'type':_0x32a2('0x6')==_0x5190ac||_0x32a2('0xe4')==_0x5190ac?'add':_0x32a2('0xe5'),'data':{'isSuggestion':'isAddSuggestion'==_0x5190ac||'isRemoveSuggestion'==_0x5190ac},'createdAt':new Date(),'rootName':_0x42db24});_0xea8ed5[_0x32a2('0x18')](_0x7e990f),_0xe30696['markers'][_0x32a2('0xf8')](_0x32a2('0xe0')+_0x7e990f['id'],_0x36db69);}function _0x58cd37(_0x456d8f,_0x4209b6){const _0x4e0c3e=_0x456d8f[_0x32a2('0x47')](),_0x596b02=_0x4209b6['getAttributes']();for(const _0x236feb of _0x4e0c3e){if(_0x236feb[0x1]!==_0x4209b6['getAttribute'](_0x236feb[0x0]))return!0x1;_0x596b02[_0x32a2('0x4d')]();}return _0x596b02[_0x32a2('0x4d')]()[_0x32a2('0xb5')];}}['_setConversion'](){this['editor']['conversion'][_0x32a2('0x1b')](_0x32a2('0xee'))[_0x32a2('0x87')]({'view':'revision'}),this[_0x32a2('0x2a')][_0x32a2('0x113')][_0x32a2('0x1b')](_0x32a2('0x4e'))['markerToHighlight']({'model':'revision','view':_0x4ef9f4=>{const _0x566729=_0x4ef9f4[_0x32a2('0xdd')][_0x32a2('0xab')](':')[0x1],_0x57baf7=this['_getChangeFromId'](_0x566729);if(!_0x57baf7)return null;const _0xdd3ea0=_0x32a2('0x10b')==_0x57baf7[_0x32a2('0x25')]?'insertion':'deletion',_0x5e7d38=[_0x32a2('0x8c'),'ck-suggestion-marker-'+_0xdd3ea0];return _0x57baf7[_0x32a2('0xf1')][_0x32a2('0x8d')]&&_0x5e7d38[_0x32a2('0x18')]('ck-suggestion-marker-'+_0xdd3ea0+_0x32a2('0x33')),this[_0x32a2('0xa0')]==_0x57baf7&&_0x5e7d38[_0x32a2('0x18')](_0x32a2('0x74')),{'classes':_0x5e7d38,'attributes':{'data-change-id':_0x566729}};}}),this['editor'][_0x32a2('0x113')]['for'](_0x32a2('0xee'))[_0x32a2('0x10b')](_0x3ec0aa=>{_0x3ec0aa['on'](_0x32a2('0x3e'),(_0x364cc5,_0x4539fe,_0x4a2da3)=>{const _0x2b41bc=_0x4539fe[_0x32a2('0x40')][_0x32a2('0x52')](0x0);if(!_0x2b41bc||!_0x2b41bc['is'](_0x32a2('0xa'),_0x32a2('0x27')))return;if(!_0x4a2da3[_0x32a2('0xa3')]['consume'](_0x2b41bc,{'attributes':[_0x32a2('0x3f'),_0x32a2('0x62')]}))return;const _0x2261a3=_0x4539fe[_0x32a2('0x71')][_0x32a2('0x89')][_0x32a2('0xe6')];_0x4a2da3[_0x32a2('0x10f')][_0x32a2('0xdc')](_0x32a2('0x3f'),_0x2b41bc[_0x32a2('0x122')](_0x32a2('0x3f')),_0x2261a3),_0x4a2da3[_0x32a2('0x10f')][_0x32a2('0xdc')](_0x32a2('0x62'),_0x2b41bc[_0x32a2('0x122')](_0x32a2('0x62')),_0x2261a3);},{'priority':_0x32a2('0xd6')});}),this[_0x32a2('0x2a')][_0x32a2('0x113')][_0x32a2('0x1b')](_0x32a2('0xee'))['add'](_0x2b4785=>{_0x2b4785['on'](_0x32a2('0xa'),(_0x52c0a8,_0x1f70e3,_0x4e3ab5)=>{if(!_0x4e3ab5[_0x32a2('0xa3')][_0x32a2('0xbb')](_0x1f70e3[_0x32a2('0x40')],{'attributes':[_0x32a2('0x3f'),_0x32a2('0x62')]}))return;if(_0x1f70e3['modelRange'][_0x32a2('0xae')])return;const _0x1c7d63=_0x1f70e3[_0x32a2('0x71')][_0x32a2('0x89')][_0x32a2('0xe6')];_0x1c7d63[_0x32a2('0x110')](_0x32a2('0x3f'))||_0x1c7d63['hasAttribute']('vid')||(_0x4e3ab5[_0x32a2('0x10f')][_0x32a2('0xdc')](_0x32a2('0x3f'),_0x1f70e3[_0x32a2('0x40')][_0x32a2('0x122')](_0x32a2('0x3f')),_0x1c7d63),_0x4e3ab5[_0x32a2('0x10f')][_0x32a2('0xdc')](_0x32a2('0x62'),_0x1f70e3['viewItem']['getAttribute'](_0x32a2('0x62')),_0x1c7d63));},{'priority':_0x32a2('0xd6')});}),this[_0x32a2('0x2a')]['conversion'][_0x32a2('0x1b')]('upcast')[_0x32a2('0x5e')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x32a2('0x5'),'value':_0x181dc5=>_0x181dc5[_0x32a2('0x122')](_0x32a2('0x5'))}}),this[_0x32a2('0x2a')]['model'][_0x32a2('0x124')]['on']('checkAttribute',(_0xdc56ab,[,_0x30668d])=>{['vid_start',_0x32a2('0x62'),'vid'][_0x32a2('0x9')](_0x30668d)&&(_0xdc56ab[_0x32a2('0x82')]=!0x0,_0xdc56ab[_0x32a2('0x7f')]());},{'priority':_0x32a2('0x3b')}),this['editor'][_0x32a2('0x113')][_0x32a2('0x1b')](_0x32a2('0x3c'))[_0x32a2('0x10b')](_0x346505=>{_0x346505['on'](_0x32a2('0x9d'),(_0x373f7a,_0xf99809,_0x23e1b9)=>{if('\x20'!=_0xf99809[_0x32a2('0xcd')][_0x32a2('0xf1')]||_0xf99809[_0x32a2('0xcd')]['parent'][_0x32a2('0xda')]>0x1)return;if(!_0x23e1b9[_0x32a2('0xa3')]['consume'](_0xf99809[_0x32a2('0xcd')],_0x373f7a['name']))return;const _0x3751a6=_0x23e1b9[_0x32a2('0x10f')],_0x215125=_0x23e1b9['mapper'][_0x32a2('0x119')](_0xf99809[_0x32a2('0x7c')]);_0x3751a6[_0x32a2('0x19')](_0x215125,_0x3751a6[_0x32a2('0xdf')](_0x32a2('0x55')));});}),this[_0x32a2('0x2a')]['conversion'][_0x32a2('0x1b')](_0x32a2('0x3c'))[_0x32a2('0x11d')]({'model':'revision'}),this['editor'][_0x32a2('0xe1')][_0x32a2('0x9a')]['on']('addMarker:revision',function(_0x13317a){const _0x4ce366=_0x13317a['plugins']['get']('RevisionViewer');return(_0x30d016,_0x11d4ef,_0x229fc1)=>{const _0x55a588=_0x11d4ef[_0x32a2('0xdd')][_0x32a2('0xab')](':')[0x1],_0x579c67=_0x4ce366[_0x32a2('0xaf')](_0x55a588);if(!_0x579c67)return null;const _0x493443=_0x32a2('0x10b')==_0x579c67[_0x32a2('0x25')]?_0x32a2('0xab'):_0x32a2('0xa4');if(!_0x229fc1[_0x32a2('0xa3')][_0x32a2('0x99')](_0x11d4ef[_0x32a2('0x79')],_0x30d016[_0x32a2('0xe9')]))return;const _0x4a6366=_0x11d4ef['markerRange'][_0x32a2('0x7b')](),_0x2214f=_0x11d4ef[_0x32a2('0x79')][_0x32a2('0x89')],_0x242a7f=_0x13317a[_0x32a2('0x1')][_0x32a2('0x124')];let _0x7947ac=null,_0x1a4f85=null,_0x223216=!0x1,_0x2e0097=!0x1;for(const _0x1f3867 of _0x4a6366){const _0x4a2bb5=_0x1f3867[_0x32a2('0xcd')];_0x223216=_0x223216||_0x242a7f[_0x32a2('0x41')](_0x4a2bb5);const _0x464378=_0x229fc1[_0x32a2('0xf2')][_0x32a2('0x80')](_0x4a2bb5);if(_0x464378&&_0x464378[_0x32a2('0x103')](_0x32a2('0xa2')))return;_0x32a2('0x126')==_0x1f3867[_0x32a2('0x25')]&&(_0x242a7f[_0x32a2('0x101')](_0x4a2bb5)&&!_0x242a7f['isLimit'](_0x4a2bb5)&&(_0x4a2bb5[_0x32a2('0xdb')]||_0x2214f[_0x32a2('0x63')]?_0x7947ac&&_0x7947ac['parent']==_0x4a2bb5||(_0x7947ac=_0x4a2bb5,_0x3e8134(_0x1f3867[_0x32a2('0x94')]),_0x2e0097=!0x0):_0x1a4f85=_0x1a4f85||_0x1f3867[_0x32a2('0x94')]));}function _0x3e8134(_0x2a26e3){const _0x141e7d=_0x229fc1[_0x32a2('0x10f')]['createUIElement'](_0x32a2('0x55'),{'class':_0x32a2('0xc9')+_0x493443}),_0x3314de=_0x229fc1[_0x32a2('0xf2')][_0x32a2('0x58')](_0x2a26e3);_0x579c67['data']['isSuggestion']&&_0x229fc1[_0x32a2('0x10f')][_0x32a2('0x86')](_0x32a2('0xc9')+_0x493443+_0x32a2('0x33'),_0x141e7d),_0x4ce366[_0x32a2('0xa0')]==_0x579c67&&_0x229fc1['writer'][_0x32a2('0x86')](_0x32a2('0x74'),_0x141e7d),_0x229fc1[_0x32a2('0x10f')][_0x32a2('0x21')](_0x3314de,_0x141e7d),_0x229fc1[_0x32a2('0xf2')][_0x32a2('0x46')](_0x141e7d,_0x11d4ef[_0x32a2('0xdd')]);}_0x223216||_0x2e0097||!_0x1a4f85||_0x3e8134(_0x1a4f85);};}(this['editor']),{'priority':_0x32a2('0x127')}),this[_0x32a2('0x2a')][_0x32a2('0xe1')][_0x32a2('0x9a')]['on'](_0x32a2('0xaa'),(_0x11e35e,_0x50dc38,_0x32febf)=>{const _0x56c6ec=_0x32febf['mapper'][_0x32a2('0x20')](_0x50dc38[_0x32a2('0xdd')]);if(_0x56c6ec)for(const _0x1c5e25 of _0x56c6ec)(_0x1c5e25['hasClass'](_0x32a2('0x30'))||_0x1c5e25['hasClass'](_0x32a2('0xc1')))&&(_0x32febf[_0x32a2('0xf2')][_0x32a2('0xec')](_0x1c5e25,_0x50dc38[_0x32a2('0xdd')]),_0x32febf[_0x32a2('0x10f')]['remove'](_0x1c5e25));},{'priority':'high'}),this[_0x32a2('0x2a')][_0x32a2('0xe1')]['downcastDispatcher']['on'](_0x32a2('0xe7'),(_0x26f7cf,_0xc8cbbd,_0xbc0f6e)=>{const _0x2d5af9=_0xc8cbbd[_0x32a2('0xdd')]['split'](':')[0x1],_0x5cd6da=this[_0x32a2('0xaf')](_0x2d5af9);if(!_0x5cd6da)return null;const _0x51612e=_0x32a2('0x10b')==_0x5cd6da[_0x32a2('0x25')]?_0x32a2('0xab'):_0x32a2('0xa4');if(_0xbc0f6e[_0x32a2('0xa3')][_0x32a2('0x99')](_0xc8cbbd[_0x32a2('0x79')],_0x26f7cf['name']))for(const _0x326f11 of _0xc8cbbd['markerRange'][_0x32a2('0xed')]()){if(!_0x326f11['is']('element',_0x32a2('0x70')))continue;const _0x4d3d53=_0xbc0f6e[_0x32a2('0x10f')][_0x32a2('0x53')]('span',{'class':'ck-suggestion-marker-'+_0x51612e}),_0x88ee6c=_0xbc0f6e['mapper']['toViewPosition'](this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0xa7')](_0x326f11));_0x5cd6da[_0x32a2('0xf1')][_0x32a2('0x8d')]&&_0xbc0f6e['writer']['addClass'](_0x32a2('0xc9')+_0x51612e+_0x32a2('0x33'),_0x4d3d53),this[_0x32a2('0xa0')]==_0x5cd6da&&_0xbc0f6e[_0x32a2('0x10f')][_0x32a2('0x86')](_0x32a2('0x74'),_0x4d3d53),_0xbc0f6e[_0x32a2('0x10f')]['insert'](_0x88ee6c,_0x4d3d53),_0xbc0f6e[_0x32a2('0xf2')]['bindElementToMarker'](_0x4d3d53,_0xc8cbbd[_0x32a2('0xdd')]);}},{'priority':'high'}),this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0xb')]['on']('change',()=>{this[_0x32a2('0x2a')][_0x32a2('0xe1')][_0x32a2('0x81')][_0x32a2('0x77')](_0x48b56d=>{for(const _0x9c0db7 of this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0xb')][_0x32a2('0x2f')]()){const _0x14694a=this[_0x32a2('0x2a')][_0x32a2('0x1')]['document'][_0x32a2('0x7e')](_0x9c0db7),_0x54b355=this[_0x32a2('0x2a')][_0x32a2('0xe1')][_0x32a2('0x81')][_0x32a2('0xb')][_0x32a2('0x7e')](_0x9c0db7);if(_0x54b355){const _0x43aea4=_0x14694a[_0x32a2('0x122')]('revisionHistoryAttachChange');if(_0x48b56d[_0x32a2('0x67')]('data-change-id',_0x54b355),_0x48b56d['removeClass'](_0x32a2('0x35'),_0x54b355),_0x48b56d[_0x32a2('0x10')](_0x32a2('0x4c'),_0x54b355),_0x48b56d[_0x32a2('0x10')](_0x32a2('0x17'),_0x54b355),_0x43aea4){const _0x19af73=this['_getChangeFromId'](_0x43aea4);if(!_0x19af73)return null;_0x48b56d[_0x32a2('0xdc')](_0x32a2('0x125'),_0x43aea4,_0x54b355),_0x48b56d[_0x32a2('0x86')]('ck-revision-history-root-'+_0x19af73['type'],_0x54b355),this[_0x32a2('0xa0')]==_0x19af73&&_0x48b56d[_0x32a2('0x86')](_0x32a2('0x17'),_0x54b355);}}}});}),this['editor'][_0x32a2('0x113')][_0x32a2('0x1b')]('upcast')[_0x32a2('0x87')]({'view':_0x32a2('0x1c'),'model':_0x18c6e5=>'revision-comment:'+_0x18c6e5,'converterPriority':_0x32a2('0x3b')}),this[_0x32a2('0x2a')][_0x32a2('0x113')]['for']('upcast')[_0x32a2('0x87')]({'view':'suggestion','model':_0x494ce4=>'revision-suggestion:'+_0x494ce4,'converterPriority':'highest'}),this[_0x32a2('0x2a')][_0x32a2('0x113')][_0x32a2('0x1b')]('dataDowncast')[_0x32a2('0x11d')]({'model':_0x32a2('0x11a'),'view':_0x559a53=>({'name':_0x32a2('0x7a')+_0x559a53,'group':_0x32a2('0x11a')}),'converterPriority':_0x32a2('0x3b')}),this[_0x32a2('0x2a')][_0x32a2('0x113')]['for'](_0x32a2('0x4e'))[_0x32a2('0x68')]({'model':_0x32a2('0x11a'),'view':_0x506fd7=>{const _0x2760f6=_0x506fd7[_0x32a2('0xdd')][_0x32a2('0xab')](':')[0x1];return'insertion'!=_0x2760f6&&_0x32a2('0x128')!=_0x2760f6?null:{'classes':[_0x32a2('0x13'),_0x32a2('0x118')+_0x2760f6]};}}),this[_0x32a2('0x2a')][_0x32a2('0xe1')][_0x32a2('0x9a')]['on'](_0x32a2('0xc7'),et(this[_0x32a2('0x2a')],_0x32a2('0xa4')),{'priority':'high'}),this[_0x32a2('0x2a')][_0x32a2('0xe1')][_0x32a2('0x9a')]['on'](_0x32a2('0x24'),et(this[_0x32a2('0x2a')],'split'),{'priority':_0x32a2('0x127')}),this[_0x32a2('0x2a')]['editing'][_0x32a2('0x9a')]['on'](_0x32a2('0x10d'),(_0x51c035,_0x146b52,_0x193122)=>{const _0x7d15af=_0x193122[_0x32a2('0xf2')][_0x32a2('0x20')](_0x146b52[_0x32a2('0xdd')]);if(_0x7d15af)for(const _0x3c95d8 of _0x7d15af)_0x3c95d8['is'](_0x32a2('0x76'))&&(_0x193122[_0x32a2('0xf2')][_0x32a2('0xec')](_0x3c95d8,_0x146b52[_0x32a2('0xdd')]),_0x193122[_0x32a2('0x10f')][_0x32a2('0xe5')](_0x3c95d8));},{'priority':'high'});}[_0x32a2('0xaf')](_0x9300e8){return this[_0x32a2('0x129')][_0x32a2('0x8a')](_0x9300e8);}['_getViewForChange'](_0x3aa8e7){return this[_0x32a2('0x4b')]&&this['_changeView'][_0x32a2('0x9c')](),this['_changeView']=new _0x203876(this['editor'][_0x32a2('0x123')],_0x3aa8e7),this[_0x32a2('0x4b')];}[_0x32a2('0x4a')](){this[_0x32a2('0x2a')][_0x32a2('0x1')][_0x32a2('0xb')]['selection'][_0x32a2('0x29')]('revision'),this['on']('change:activeView',(_0x5a0672,_0x323273,_0x3857c5,_0x2382c8)=>{_0x2382c8&&this[_0x32a2('0xb7')][_0x32a2('0xe5')](_0x2382c8),_0x3857c5&&(this[_0x32a2('0xb7')][_0x32a2('0x10b')]({'view':_0x3857c5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2205e7=this['editor'][_0x32a2('0xe1')],_0xaeadc2=this[_0x32a2('0xaf')](_0x3857c5[_0x32a2('0x59')]);let _0x313e2b;if(_0xaeadc2['data']['isOnRoot']){const _0x5d7c4c=_0x2205e7['view'][_0x32a2('0x65')](_0xaeadc2['rootName']);_0x313e2b=Array['from'](_0x5d7c4c['getClientRects']());}else{const _0x45436d=this[_0x32a2('0x2a')]['model'][_0x32a2('0x83')]['get']('revision:'+_0x3857c5[_0x32a2('0x59')]);_0x313e2b=Array[_0x32a2('0xd9')](_0x2205e7[_0x32a2('0xf2')]['markerNameToElements'](_0x45436d[_0x32a2('0xe9')]))[_0x32a2('0xb0')](_0x338236=>_0x2205e7[_0x32a2('0x81')][_0x32a2('0x7d')][_0x32a2('0x12a')](_0x338236))[_0x32a2('0xb0')](_0x566c80=>Array[_0x32a2('0xd9')](_0x566c80['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x313e2b[0x0];return _0x313e2b[_0x32a2('0xfc')](_0x486f37=>_0x486f37[_0x32a2('0x36')]-0x3<=this[_0x32a2('0x106')]['y']&&_0x486f37[_0x32a2('0xf3')]+0x3>=this[_0x32a2('0x106')]['y']&&_0x486f37[_0x32a2('0x11c')]-0x3<=this[_0x32a2('0x106')]['x']&&_0x486f37[_0x32a2('0x92')]+0x3>=this[_0x32a2('0x106')]['x'])||_0x313e2b[0x0];}}}),this[_0x32a2('0xb7')][_0x32a2('0xc5')](_0x32a2('0xea')));}),this['on'](_0x32a2('0x6b'),(_0x1b7703,_0xdb753d,_0x1d7f74,_0x4ee4a9)=>{this[_0x32a2('0x9f')]=_0x1d7f74?this['_getViewForChange'](_0x1d7f74):null,this['editor'][_0x32a2('0x1')][_0x32a2('0x77')](()=>{const _0x380ff6=this[_0x32a2('0x2a')]['editing'];_0x4ee4a9&&(_0x4ee4a9[_0x32a2('0xf1')][_0x32a2('0x2b')]?_0x380ff6['view'][_0x32a2('0x77')](_0x48cc42=>{_0x48cc42[_0x32a2('0x10')](_0x32a2('0x17'),_0x380ff6[_0x32a2('0x81')]['document'][_0x32a2('0x7e')](_0x4ee4a9[_0x32a2('0x93')]));}):_0x380ff6['reconvertMarker'](_0x32a2('0xe0')+_0x4ee4a9['id'])),_0x1d7f74&&(_0x1d7f74[_0x32a2('0xf1')][_0x32a2('0x2b')]?_0x380ff6[_0x32a2('0x81')][_0x32a2('0x77')](_0x5964c9=>{_0x5964c9[_0x32a2('0x86')](_0x32a2('0x17'),_0x380ff6[_0x32a2('0x81')][_0x32a2('0xb')][_0x32a2('0x7e')](_0x1d7f74[_0x32a2('0x93')]));}):_0x380ff6[_0x32a2('0x42')](_0x32a2('0xe0')+_0x1d7f74['id']));});}),this[_0x32a2('0x39')](this[_0x32a2('0x2a')][_0x32a2('0xe1')][_0x32a2('0x81')]['document'],_0x32a2('0x4'),(_0x427f23,_0x5ef630)=>{if(this[_0x32a2('0xa0')])return;const _0x2b2b42=this[_0x32a2('0x1d')](_0x5ef630[_0x32a2('0x6f')]),_0x48b2d8=this['_changeIdToChange']['get'](_0x2b2b42);_0x48b2d8?(this[_0x32a2('0x106')]={'x':_0x5ef630[_0x32a2('0x75')]['x'],'y':_0x5ef630['domEvent']['y']},this[_0x32a2('0x9f')]=this[_0x32a2('0x60')](_0x48b2d8)):(this[_0x32a2('0x106')]=null,this[_0x32a2('0x9f')]=null);}),this[_0x32a2('0x39')](this['editor']['editing']['view'][_0x32a2('0xb')],_0x32a2('0xa1'),(_0x4903c6,_0x573ea6)=>{const _0x275fc6=this[_0x32a2('0x1d')](_0x573ea6[_0x32a2('0x6f')]),_0x2d0830=this['_changeIdToChange']['get'](_0x275fc6);_0x2d0830?(this[_0x32a2('0x106')]={'x':_0x573ea6[_0x32a2('0x75')]['x'],'y':_0x573ea6[_0x32a2('0x75')]['y']},_0x2d0830===this[_0x32a2('0xa0')]?this['_balloon']['updatePosition']():this[_0x32a2('0xa0')]=_0x2d0830):(this[_0x32a2('0x106')]=null,this['activeChange']=null);});}[_0x32a2('0x1d')](_0x430c66){do{const _0x44aba3=_0x430c66[_0x32a2('0x122')](_0x32a2('0x125'));if(_0x44aba3)return _0x44aba3;_0x430c66=_0x430c66[_0x32a2('0x54')];}while(_0x430c66);return null;}[_0x32a2('0xb2')](){this['editor']['model'][_0x32a2('0x77')](_0x37f28a=>{for(const _0x9c4cb of this[_0x32a2('0x2a')]['model'][_0x32a2('0x83')])_0x37f28a['removeMarker'](_0x9c4cb);});}}function et(_0x4e3e70,_0x162ece){return(_0x3fd598,_0x235448,_0xb934d4)=>{if(!_0xb934d4[_0x32a2('0xa3')][_0x32a2('0x99')](_0x235448[_0x32a2('0x79')],_0x3fd598[_0x32a2('0xe9')]))return;const _0x1671a1=_0x235448['markerRange'][_0x32a2('0x7b')](),_0x4d0262=_0x235448['markerRange'][_0x32a2('0x89')],_0x473267=_0x4e3e70[_0x32a2('0x1')][_0x32a2('0x124')];let _0x2b5a17=null,_0x13729b=null,_0x4aa51b=!0x1,_0x931eee=!0x1;for(const _0x48453d of _0x1671a1){const _0x473e8f=_0x48453d[_0x32a2('0xcd')];_0x4aa51b=_0x4aa51b||_0x473267[_0x32a2('0x41')](_0x473e8f);const _0x4739cc=_0xb934d4[_0x32a2('0xf2')][_0x32a2('0x80')](_0x473e8f);if(_0x4739cc&&_0x4739cc[_0x32a2('0x103')](_0x32a2('0xa2')))return;'elementEnd'==_0x48453d[_0x32a2('0x25')]&&(_0x473267[_0x32a2('0x101')](_0x473e8f)&&!_0x473267[_0x32a2('0x15')](_0x473e8f)&&(_0x473e8f[_0x32a2('0xdb')]||_0x4d0262[_0x32a2('0x63')]?_0x2b5a17&&_0x2b5a17[_0x32a2('0x54')]==_0x473e8f||(_0x2b5a17=_0x473e8f,_0x3a1e6a(_0x48453d[_0x32a2('0x94')]),_0x931eee=!0x0):_0x13729b=_0x13729b||_0x48453d['previousPosition']));}function _0x3a1e6a(_0x72cb9f){const _0x4f4286=_0xb934d4[_0x32a2('0xf2')][_0x32a2('0x58')](_0x72cb9f),_0x29e347=_0xb934d4[_0x32a2('0x10f')][_0x32a2('0x53')](_0x32a2('0x55'),{'class':'ck-suggestion-preview-marker-'+_0x162ece});_0xb934d4[_0x32a2('0x10f')][_0x32a2('0x21')](_0x4f4286,_0x29e347),_0xb934d4[_0x32a2('0xf2')][_0x32a2('0x46')](_0x29e347,_0x235448[_0x32a2('0xdd')]);}_0x4aa51b||_0x931eee||!_0x13729b||_0x3a1e6a(_0x13729b);};}export class RestoreRevisionCommand extends _0xfcdfc2{constructor(_0x436825){super(_0x436825);const _0x300cfd=_0x436825['plugins'][_0x32a2('0x8a')](d);this[_0x32a2('0x115')]=!0x1,this[_0x32a2('0x39')](_0x300cfd,_0x32a2('0xe'),()=>this[_0x32a2('0xb6')]()),this[_0x32a2('0x39')](_0x300cfd,_0x32a2('0x28'),()=>this['refresh']());}[_0x32a2('0xf4')](){const _0x5dea38=this[_0x32a2('0x2a')],_0x48abbe=_0x5dea38[_0x32a2('0x44')][_0x32a2('0x8a')](d),_0x3d470e=_0x48abbe['isReady']?_0x48abbe[_0x32a2('0x121')][_0x32a2('0x108')]:null;_0x5dea38['config']['get'](_0x32a2('0x23'))[_0x32a2('0x96')](_0x3d470e);}[_0x32a2('0xb6')](){const {isReady:_0x41a36e,isEnabled:_0x552312}=this['editor'][_0x32a2('0x44')]['get'](d);this['isEnabled']=_0x41a36e&&_0x552312;}}export class ShowChangeCommand extends _0xfcdfc2{constructor(_0x3e8915,{direction:_0x2b5171}){super(_0x3e8915);const _0x2334e2=_0x3e8915[_0x32a2('0x44')][_0x32a2('0x8a')](d);this[_0x32a2('0x115')]=!0x1,this[_0x32a2('0xd1')]=_0x32a2('0x43')===_0x2b5171?0x1:-0x1,this['listenTo'](_0x2334e2,_0x32a2('0xe'),()=>this[_0x32a2('0xb6')]()),this[_0x32a2('0x39')](_0x2334e2,_0x32a2('0x28'),()=>this[_0x32a2('0xb6')]()),this['listenTo'](_0x2334e2,'change:activeChange',()=>this[_0x32a2('0xb6')]());}['execute'](){const _0x3b0781=this[_0x32a2('0x2a')],_0x1ccc26=_0x3b0781[_0x32a2('0x44')][_0x32a2('0x8a')](d),{isNavigationMode:_0x13ed6e,currentChangeNumber:_0x517ed1}=_0x1ccc26;let _0x2d4d8d;if(_0x1ccc26['activeChange']=_0x13ed6e?_0x1ccc26[_0x32a2('0x121')][_0x32a2('0x11f')][_0x32a2('0x8a')](_0x517ed1+this[_0x32a2('0xd1')]):_0x1ccc26['diff'][_0x32a2('0x11f')][_0x32a2('0x2c')],_0x1ccc26[_0x32a2('0xa0')][_0x32a2('0xf1')][_0x32a2('0x2b')])_0x2d4d8d=_0x3b0781[_0x32a2('0xe1')][_0x32a2('0x81')][_0x32a2('0x65')](_0x1ccc26[_0x32a2('0xa0')][_0x32a2('0x93')]);else{const _0x38083a=_0x3b0781[_0x32a2('0x1')][_0x32a2('0x83')][_0x32a2('0x8a')](_0x32a2('0xe0')+_0x1ccc26[_0x32a2('0xa0')]['id']);_0x2d4d8d=_0x1e8dff(_0x3b0781[_0x32a2('0xe1')],_0x38083a);}_0x34b707({'target':_0x2d4d8d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5e3beb,currentChangeNumber:_0x5dd0af,numberOfChanges:_0x3f86a1,isReady:_0x2c485e,isEnabled:_0x52f44f}=this['editor']['plugins'][_0x32a2('0x8a')](d);this[_0x32a2('0x2')]=!!(_0x52f44f&&_0x2c485e&&_0x3f86a1)&&(!_0x5e3beb||(0x1===this[_0x32a2('0xd1')]?_0x5dd0af<_0x3f86a1-0x1:_0x5dd0af>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45b1=['map','class','isOpen','threeVerticalDots','source','action','listView','items','first','Restore\x20this\x20revision','bind','set','isReady','Show\x20more\x20items','execute','ck-revision-history-sidebar__revision__actions','_action','function','stopPropagation','button','locale','isActionsDropdownOpen','Name\x20this\x20revision','isEnabled','change:isActionsDropdownOpen','add','ck-on','panelPosition','find','name','model','extendTemplate'];(function(_0x8915af,_0x45b109){const _0x20fe9c=function(_0xcedd2e){while(--_0xcedd2e){_0x8915af['push'](_0x8915af['shift']());}};_0x20fe9c(++_0x45b109);}(_0x45b1,0x87));const _0x20fe=function(_0x8915af,_0x45b109){_0x8915af=_0x8915af-0x0;let _0x20fe9c=_0x45b1[_0x8915af];return _0x20fe9c;};import{Collection as _0x558d89}from'ckeditor5/src/utils';import{icons as _0x2345c7}from'ckeditor5/src/core';import{Model as _0x33034f,addListToDropdown as _0x404d37,createDropdown as _0x24ba99}from'ckeditor5/src/ui';import{getTranslation as _0x50ecc4}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x28159d,_0x33fd65){const _0x4fb1b9=_0x28159d['bindTemplate'],_0x5c888e=_0x28159d['locale'],_0x4a9d65=_0x24ba99(_0x5c888e);_0x4a9d65[_0x20fe('0x14')]='sw';const _0xab780e=function(_0x1466ab,_0x3e4672){const _0x1f66a2=function(_0xf66ee9,_0x595aea){const _0x4a7ae6=_0xf66ee9[_0x20fe('0xd')],_0x4db291={'Compare\x20against\x20selected':_0x50ecc4(_0x4a7ae6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x50ecc4(_0x4a7ae6,_0x20fe('0xf')),'Restore\x20this\x20revision':_0x50ecc4(_0x4a7ae6,_0x20fe('0x2'))};return _0x595aea[_0x20fe('0x19')](_0x3c1747=>{const _0x3801d3=_0x4db291[_0x3c1747[_0x20fe('0x16')]];return _0x3801d3&&_0x3801d3!==_0x3c1747[_0x20fe('0x16')]&&(_0x3c1747['name']=_0x3801d3),_0x3c1747;});}(_0x1466ab,_0x3e4672),_0x19999d=new _0x558d89();for(const _0x352615 of _0x1f66a2){const _0x38fe65={'type':_0x20fe('0xc'),'model':new _0x33034f({'label':_0x352615[_0x20fe('0x16')],'class':_0x352615[_0x20fe('0x1a')],'withText':!0x0,'_action':_0x352615[_0x20fe('0x1e')]})};_0x38fe65[_0x20fe('0x17')][_0x20fe('0x3')](_0x20fe('0x10'))['to'](_0x1466ab,_0x20fe('0xe'),_0x2eae23=>_0x20fe('0xa')!=typeof _0x352615[_0x20fe('0x10')]||(!_0x2eae23||_0x352615[_0x20fe('0x10')](_0x1466ab))),_0x19999d[_0x20fe('0x12')](_0x38fe65);}return _0x19999d;}(_0x28159d,_0x33fd65);return _0x28159d[_0x20fe('0x3')](_0x20fe('0xe'))['to'](_0x4a9d65,_0x20fe('0x1b')),_0x4a9d65['buttonView'][_0x20fe('0x4')]({'label':_0x50ecc4(_0x5c888e,_0x20fe('0x6')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2345c7[_0x20fe('0x1c')]}),_0x4a9d65[_0x20fe('0x18')]({'attributes':{'class':[_0x20fe('0x8'),_0x4fb1b9['if']('isActionsDropdownOpen',_0x20fe('0x13'))]},'on':{'click':_0x4fb1b9['to'](_0x39f451=>_0x39f451[_0x20fe('0xb')]())}}),_0x4a9d65['on'](_0x20fe('0x7'),_0x53e104=>{_0x28159d[_0x20fe('0x5')]&&_0x20fe('0xa')==typeof _0x53e104[_0x20fe('0x1d')][_0x20fe('0x9')]&&_0x53e104[_0x20fe('0x1d')][_0x20fe('0x9')](_0x28159d);}),_0x404d37(_0x4a9d65,_0xab780e),_0x4a9d65['listenTo'](_0x28159d,_0x20fe('0x11'),(_0x219208,_0x52aa40,_0xfe297f)=>{if(_0xfe297f)for(const _0x873f8e of _0x4a9d65[_0x20fe('0x1f')][_0x20fe('0x0')]){const _0x26f5a8=_0x873f8e['children'][_0x20fe('0x1')],_0x25061a=_0x33fd65[_0x20fe('0x15')](_0x2b9b7b=>_0x2b9b7b[_0x20fe('0x1e')]===_0x26f5a8['_action'])['isVisible'];_0x873f8e['isVisible']=void 0x0===_0x25061a||_0x25061a(_0x28159d);}}),_0x4a9d65;}
23
+ const _0x2da2=['ck-revision-history-sidebar__revision__actions','items','action','isEnabled','isActionsDropdownOpen','change:isActionsDropdownOpen','set','find','bind','listView','buttonView','map','children','add','Show\x20more\x20items','stopPropagation','model','class','threeVerticalDots','locale','isVisible','bindTemplate','name','isReady','_action','execute','first','isOpen','source','function','Restore\x20this\x20revision'];(function(_0x1fda66,_0x2da2b6){const _0x405571=function(_0xe50ec2){while(--_0xe50ec2){_0x1fda66['push'](_0x1fda66['shift']());}};_0x405571(++_0x2da2b6);}(_0x2da2,0xe9));const _0x4055=function(_0x1fda66,_0x2da2b6){_0x1fda66=_0x1fda66-0x0;let _0x405571=_0x2da2[_0x1fda66];return _0x405571;};import{Collection as _0x631b13}from'ckeditor5/src/utils';import{icons as _0x305e4c}from'ckeditor5/src/core';import{Model as _0x1157a6,addListToDropdown as _0x47d09b,createDropdown as _0x5d658f}from'ckeditor5/src/ui';import{getTranslation as _0x421872}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x343895,_0x4f2e9f){const _0x33db56=_0x343895[_0x4055('0x5')],_0x23982f=_0x343895['locale'],_0x22fbea=_0x5d658f(_0x23982f);_0x22fbea['panelPosition']='sw';const _0x237e9d=function(_0x3a51a9,_0x55d569){const _0x21c1f5=function(_0x3eef71,_0x58a905){const _0xdde665=_0x3eef71[_0x4055('0x3')],_0x5735f9={'Compare\x20against\x20selected':_0x421872(_0xdde665,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x421872(_0xdde665,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x421872(_0xdde665,_0x4055('0xe'))};return _0x58a905[_0x4055('0x1a')](_0x18e598=>{const _0x26af9a=_0x5735f9[_0x18e598[_0x4055('0x6')]];return _0x26af9a&&_0x26af9a!==_0x18e598[_0x4055('0x6')]&&(_0x18e598[_0x4055('0x6')]=_0x26af9a),_0x18e598;});}(_0x3a51a9,_0x55d569),_0x30bc45=new _0x631b13();for(const _0x58d410 of _0x21c1f5){const _0x157ff5={'type':'button','model':new _0x1157a6({'label':_0x58d410[_0x4055('0x6')],'class':_0x58d410[_0x4055('0x1')],'withText':!0x0,'_action':_0x58d410[_0x4055('0x11')]})};_0x157ff5[_0x4055('0x0')][_0x4055('0x17')](_0x4055('0x12'))['to'](_0x3a51a9,_0x4055('0x13'),_0x1702d0=>_0x4055('0xd')!=typeof _0x58d410[_0x4055('0x12')]||(!_0x1702d0||_0x58d410[_0x4055('0x12')](_0x3a51a9))),_0x30bc45[_0x4055('0x1c')](_0x157ff5);}return _0x30bc45;}(_0x343895,_0x4f2e9f);return _0x343895['bind'](_0x4055('0x13'))['to'](_0x22fbea,_0x4055('0xb')),_0x22fbea[_0x4055('0x19')][_0x4055('0x15')]({'label':_0x421872(_0x23982f,_0x4055('0x1d')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x305e4c[_0x4055('0x2')]}),_0x22fbea['extendTemplate']({'attributes':{'class':[_0x4055('0xf'),_0x33db56['if'](_0x4055('0x13'),'ck-on')]},'on':{'click':_0x33db56['to'](_0x4d95a7=>_0x4d95a7[_0x4055('0x1e')]())}}),_0x22fbea['on'](_0x4055('0x9'),_0x32ee9d=>{_0x343895[_0x4055('0x7')]&&_0x4055('0xd')==typeof _0x32ee9d[_0x4055('0xc')][_0x4055('0x8')]&&_0x32ee9d[_0x4055('0xc')]['_action'](_0x343895);}),_0x47d09b(_0x22fbea,_0x237e9d),_0x22fbea['listenTo'](_0x343895,_0x4055('0x14'),(_0x23be85,_0x405706,_0x315c5a)=>{if(_0x315c5a)for(const _0x466a19 of _0x22fbea[_0x4055('0x18')][_0x4055('0x10')]){const _0x4faafb=_0x466a19[_0x4055('0x1b')][_0x4055('0xa')],_0x1adb74=_0x4f2e9f[_0x4055('0x16')](_0x351108=>_0x351108['action']===_0x4faafb[_0x4055('0x8')])[_0x4055('0x4')];_0x466a19[_0x4055('0x4')]=void 0x0===_0x1adb74||_0x1adb74(_0x343895);}}),_0x22fbea;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f77=['Revision\x20creator','ck-revision-history-sidebar__revision-author','push','ck-revision-history-sidebar__revision-author__name','set','0\x200\x2011\x2010','setTemplate','name','ck-revision-history-sidebar__revision-author_creator','Revision\x20author'];(function(_0x566898,_0x1f77aa){const _0x310e70=function(_0x42a60f){while(--_0x42a60f){_0x566898['push'](_0x566898['shift']());}};_0x310e70(++_0x1f77aa);}(_0x1f77,0x7a));const _0x310e=function(_0x566898,_0x1f77aa){_0x566898=_0x566898-0x0;let _0x310e70=_0x1f77[_0x566898];return _0x310e70;};import{View as _0x25999f,IconView as _0x32c003}from'ckeditor5/src/ui';import{getTranslation as _0x5bb491}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x15e3be from'../../../theme/icons/user.svg';export default class ti extends _0x25999f{constructor(_0x3fde3e,_0x6dcaf7,_0x4c6fa9){super(_0x3fde3e);const _0xc7ff0=new _0x32c003();_0xc7ff0[_0x310e('0x2')]({'content':_0x15e3be,'viewBox':_0x310e('0x3')});const _0x3bc9a5=['ck',_0x310e('0x9')];_0x4c6fa9&&_0x3bc9a5[_0x310e('0x0')](_0x310e('0x6'));const _0x81b9a0=[{'tag':'span','attributes':{'class':['ck',_0x310e('0x1')],'title':_0x5bb491(_0x3fde3e,_0x4c6fa9?_0x310e('0x8'):_0x310e('0x7'))},'children':[_0xc7ff0,_0x6dcaf7[_0x310e('0x5')]]}];this[_0x310e('0x4')]({'tag':'li','attributes':{'class':_0x3bc9a5},'children':_0x81b9a0});}}
23
+ const _0x16d5=['Revision\x20author','ck-revision-history-sidebar__revision-author_creator','span','Revision\x20creator','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','push','name','ck-revision-history-sidebar__revision-author__name'];(function(_0x22d727,_0x16d5f7){const _0x2f6fc6=function(_0xfc2893){while(--_0xfc2893){_0x22d727['push'](_0x22d727['shift']());}};_0x2f6fc6(++_0x16d5f7);}(_0x16d5,0xf6));const _0x2f6f=function(_0x22d727,_0x16d5f7){_0x22d727=_0x22d727-0x0;let _0x2f6fc6=_0x16d5[_0x22d727];return _0x2f6fc6;};import{View as _0x37433f,IconView as _0x9904da}from'ckeditor5/src/ui';import{getTranslation as _0x55dbe9}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x342db9 from'../../../theme/icons/user.svg';export default class ti extends _0x37433f{constructor(_0x3ed3b3,_0x7c446,_0x347dd0){super(_0x3ed3b3);const _0x4e12ca=new _0x9904da();_0x4e12ca['set']({'content':_0x342db9,'viewBox':_0x2f6f('0x1')});const _0x4001b7=['ck',_0x2f6f('0x2')];_0x347dd0&&_0x4001b7[_0x2f6f('0x3')](_0x2f6f('0x7'));const _0x4037a9=[{'tag':_0x2f6f('0x8'),'attributes':{'class':['ck',_0x2f6f('0x5')],'title':_0x55dbe9(_0x3ed3b3,_0x347dd0?_0x2f6f('0x0'):_0x2f6f('0x6'))},'children':[_0x4e12ca,_0x7c446[_0x2f6f('0x4')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4001b7},'children':_0x4037a9});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2db0=['Revision\x20name','span','extendTemplate','ck-revision-history-sidebar__revision-name'];(function(_0x34f1e6,_0x2db0fc){var _0x3968af=function(_0x2ec303){while(--_0x2ec303){_0x34f1e6['push'](_0x34f1e6['shift']());}};_0x3968af(++_0x2db0fc);}(_0x2db0,0x142));var _0x3968=function(_0x34f1e6,_0x2db0fc){_0x34f1e6=_0x34f1e6-0x0;var _0x3968af=_0x2db0[_0x34f1e6];return _0x3968af;};import{LabeledFieldView as _0x5ad1e8}from'ckeditor5/src/ui';import{getTranslation as _0x5c9c95}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x5ad1e8{constructor(_0x3c50d0,_0x4e8935){super(_0x3c50d0,_0x4e8935),this['set']({'label':_0x5c9c95(_0x3c50d0,_0x3968('0x2'))}),this[_0x3968('0x0')]({'tag':_0x3968('0x3'),'attributes':{'class':[_0x3968('0x1')]}});}}
23
+ var _0x23f2=['ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate','set'];(function(_0x5b539b,_0x23f240){var _0x23898f=function(_0x5be04a){while(--_0x5be04a){_0x5b539b['push'](_0x5b539b['shift']());}};_0x23898f(++_0x23f240);}(_0x23f2,0x1e4));var _0x2389=function(_0x5b539b,_0x23f240){_0x5b539b=_0x5b539b-0x0;var _0x23898f=_0x23f2[_0x5b539b];return _0x23898f;};import{LabeledFieldView as _0x3a3077}from'ckeditor5/src/ui';import{getTranslation as _0x210e58}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x3a3077{constructor(_0xbd1a48,_0x3883fd){super(_0xbd1a48,_0x3883fd),this[_0x2389('0x3')]({'label':_0x210e58(_0xbd1a48,_0x2389('0x1'))}),this[_0x2389('0x2')]({'tag':'span','attributes':{'class':[_0x2389('0x0')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4624=['unshift','revisionNameView','bindTemplate','fire','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision_highlighted','placeholder','set','isSelected','from','ck-revision-history-sidebar__revision_selected','unhighlight','setTemplate','filter','createdAt','_createdAtFormatted','span','ck-reset','fieldView','220','authors','ck-revision-history-sidebar__revision__date','value','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','_revision','ck-revision-history-sidebar__revision-wrapper','.ck-thread__remove-confirm','isActionsDropdownOpen','revisionActionsView','div','setName','change','ck-disabled','bind','isEnabled','element','ck-revision-history-sidebar__revision-authors','isReady','isHighlighted','select','creator','uiLanguage','render','highlight','closest','ck-revision-history-sidebar__revision','map','srcElement'];(function(_0x1962d7,_0x46242b){const _0x5f0f5a=function(_0x3df3cb){while(--_0x3df3cb){_0x1962d7['push'](_0x1962d7['shift']());}};_0x5f0f5a(++_0x46242b);}(_0x4624,0xce));const _0x5f0f=function(_0x1962d7,_0x46242b){_0x1962d7=_0x1962d7-0x0;let _0x5f0f5a=_0x4624[_0x1962d7];return _0x5f0f5a;};import{View as _0x5d4c64,createLabeledInputText as _0x5642f4}from'ckeditor5/src/ui';import{ConfirmMixin as _0x12d7ff}from'ckeditor5-collaboration/src/collaboration-core';import _0x1fe61c from'./revisionnameview';import _0x5599aa from'./revisionauthorview';import{dateToPrettyFormat as _0x560364}from'./utils';import{createActionsDropdownView as _0x104cb2}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x12d7ff(_0x5d4c64){constructor(_0x4b0b81,_0xf62272,_0x87c37d){super(_0x4b0b81);const _0x476768=this[_0x5f0f('0x24')],_0x348533=function(_0x32a799,_0x55f730){const _0x48d635=Array[_0x5f0f('0x2b')](_0x55f730[_0x5f0f('0x6')])[_0x5f0f('0x2f')](_0x5d3fe3=>_0x5d3fe3!=_0x55f730[_0x5f0f('0x1a')]);return _0x55f730[_0x5f0f('0x1a')]&&_0x48d635[_0x5f0f('0x22')](_0x55f730[_0x5f0f('0x1a')]),_0x48d635[_0x5f0f('0x20')](_0xee814e=>new _0x5599aa(_0x32a799,_0xee814e,_0xee814e==_0x55f730[_0x5f0f('0x1a')]));}(_0x4b0b81,_0xf62272);this['id']=_0xf62272['id'],this[_0x5f0f('0xa')]=_0xf62272,this[_0x5f0f('0x13')]('name',_0x5f0f('0x0'))['to'](_0xf62272),this['bind'](_0x5f0f('0x1'))['to'](this,'createdAt',_0x229efe=>_0x229efe?_0x560364(_0x4b0b81[_0x5f0f('0x1b')],_0x229efe):void 0x0),this['set'](_0x5f0f('0x2a'),!0x1),this[_0x5f0f('0x29')]('isHighlighted',!0x1),this[_0x5f0f('0x29')](_0x5f0f('0xd'),!0x1),this[_0x5f0f('0x29')](_0x5f0f('0x17'),!0x1),this[_0x5f0f('0x29')]('isEnabled',!0x1),this[_0x5f0f('0x23')]=new _0x1fe61c(_0x4b0b81,_0x5642f4),this[_0x5f0f('0x23')][_0x5f0f('0x4')]['extendTemplate']({'attributes':{'maxlength':_0x5f0f('0x5')}}),this['revisionNameView'][_0x5f0f('0x4')][_0x5f0f('0x13')](_0x5f0f('0x8'),_0x5f0f('0x28'))['to'](this,'name',_0x5f0f('0x1')),this[_0x5f0f('0x23')][_0x5f0f('0x13')](_0x5f0f('0x14'))['to'](this,_0x5f0f('0x2a'),this,_0x5f0f('0x14'),(_0x53bb7f,_0x44cf3e)=>_0x53bb7f&&_0x44cf3e),this[_0x5f0f('0xe')]=_0x87c37d&&_0x87c37d['length']?_0x104cb2(this,_0x87c37d):'',this[_0x5f0f('0xe')]&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this[_0x5f0f('0x2e')]({'tag':'div','attributes':{'class':['ck',_0x5f0f('0x3'),_0x5f0f('0xb'),_0x476768['if']('isConfirm',_0x5f0f('0x9'))]},'children':[{'tag':_0x5f0f('0xf'),'attributes':{'class':['ck',_0x5f0f('0x3'),_0x5f0f('0x1f'),_0x476768['if'](_0x5f0f('0x14'),_0x5f0f('0x12'),_0x304dd9=>!_0x304dd9),_0x476768['if'](_0x5f0f('0x2a'),_0x5f0f('0x2c')),_0x476768['if']('isHighlighted',_0x5f0f('0x27')),_0x476768['if'](_0x5f0f('0xd'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x5f0f('0x23')],{'tag':_0x5f0f('0x2'),'attributes':{'class':['ck',_0x5f0f('0x7')]},'children':[{'text':_0x476768['to'](_0x5f0f('0x1'))}]},{'tag':_0x5f0f('0xf'),'attributes':{'class':['ck',_0x5f0f('0x26')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5f0f('0x16')]},'children':_0x348533}]},this[_0x5f0f('0xe')]],'on':{'click':_0x476768['to'](_0x10c012=>{_0x10c012[_0x5f0f('0x21')][_0x5f0f('0x1e')](_0x5f0f('0xc'))||this[_0x5f0f('0x17')]&&this[_0x5f0f('0x14')]&&this[_0x5f0f('0x25')](_0x5f0f('0x19'),{'id':this['id']});})}}]});}[_0x5f0f('0x1c')](){super['render']();const _0x3af78c=this[_0x5f0f('0x23')][_0x5f0f('0x4')][_0x5f0f('0x15')];this['listenTo'](_0x3af78c,_0x5f0f('0x11'),()=>{this[_0x5f0f('0x25')](_0x5f0f('0x10'),{'id':this['id'],'name':_0x3af78c[_0x5f0f('0x8')]});});}[_0x5f0f('0x19')](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}[_0x5f0f('0x1d')](){this[_0x5f0f('0x18')]=!0x0;}[_0x5f0f('0x2d')](){this[_0x5f0f('0x18')]=!0x1;}}
23
+ const _0x3f4e=['length','isEnabled','highlight','from','extendTemplate','isHighlighted','ck-revision-history-sidebar__revision__controls-wrapper','change','bind','element','value','isSelected','ck-revision-history-sidebar__actions_dropdown_open','revisionActionsView','isReady','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-disabled','map','unhighlight','ck-revision-history-sidebar__revision','select','filter','fire','deselect','placeholder','authors','_revision','createdAt','revisionNameView','creator','name','ck-revision-history-sidebar__revision_highlighted','ck-reset','isActionsDropdownOpen','closest','uiLanguage','set','ck-revision-history-sidebar__revision-authors','fieldView','span','_createdAtFormatted','render','ck-revision-history-sidebar__revision_selected','unshift','div','listenTo','ck-revision-history-sidebar__revision-wrapper'];(function(_0x3e22f1,_0x3f4e03){const _0x50d9c9=function(_0x4ceaa1){while(--_0x4ceaa1){_0x3e22f1['push'](_0x3e22f1['shift']());}};_0x50d9c9(++_0x3f4e03);}(_0x3f4e,0x169));const _0x50d9=function(_0x3e22f1,_0x3f4e03){_0x3e22f1=_0x3e22f1-0x0;let _0x50d9c9=_0x3f4e[_0x3e22f1];return _0x50d9c9;};import{View as _0x4e48ba,createLabeledInputText as _0x107f6f}from'ckeditor5/src/ui';import{ConfirmMixin as _0x531683}from'ckeditor5-collaboration/src/collaboration-core';import _0x1f0029 from'./revisionnameview';import _0x516ad0 from'./revisionauthorview';import{dateToPrettyFormat as _0x28b4a8}from'./utils';import{createActionsDropdownView as _0x3ea2b0}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x531683(_0x4e48ba){constructor(_0x42a1fd,_0x44742c,_0x47a0c3){super(_0x42a1fd);const _0x198012=this['bindTemplate'],_0x6e658d=function(_0x1fdc1d,_0x4197a2){const _0x576142=Array[_0x50d9('0x12')](_0x4197a2[_0x50d9('0x28')])[_0x50d9('0x24')](_0x460395=>_0x460395!=_0x4197a2[_0x50d9('0x2c')]);return _0x4197a2[_0x50d9('0x2c')]&&_0x576142[_0x50d9('0xb')](_0x4197a2[_0x50d9('0x2c')]),_0x576142[_0x50d9('0x20')](_0x5475bd=>new _0x516ad0(_0x1fdc1d,_0x5475bd,_0x5475bd==_0x4197a2[_0x50d9('0x2c')]));}(_0x42a1fd,_0x44742c);this['id']=_0x44742c['id'],this[_0x50d9('0x29')]=_0x44742c,this[_0x50d9('0x17')](_0x50d9('0x2d'),_0x50d9('0x2a'))['to'](_0x44742c),this[_0x50d9('0x17')](_0x50d9('0x8'))['to'](this,_0x50d9('0x2a'),_0x55cb85=>_0x55cb85?_0x28b4a8(_0x42a1fd[_0x50d9('0x3')],_0x55cb85):void 0x0),this[_0x50d9('0x4')](_0x50d9('0x1a'),!0x1),this[_0x50d9('0x4')](_0x50d9('0x14'),!0x1),this[_0x50d9('0x4')]('isActionsDropdownOpen',!0x1),this['set'](_0x50d9('0x1d'),!0x1),this[_0x50d9('0x4')]('isEnabled',!0x1),this[_0x50d9('0x2b')]=new _0x1f0029(_0x42a1fd,_0x107f6f),this[_0x50d9('0x2b')]['fieldView'][_0x50d9('0x13')]({'attributes':{'maxlength':'220'}}),this['revisionNameView'][_0x50d9('0x6')][_0x50d9('0x17')](_0x50d9('0x19'),_0x50d9('0x27'))['to'](this,_0x50d9('0x2d'),'_createdAtFormatted'),this[_0x50d9('0x2b')][_0x50d9('0x17')](_0x50d9('0x10'))['to'](this,_0x50d9('0x1a'),this,_0x50d9('0x10'),(_0x5e0e10,_0x331736)=>_0x5e0e10&&_0x331736),this['revisionActionsView']=_0x47a0c3&&_0x47a0c3[_0x50d9('0xf')]?_0x3ea2b0(this,_0x47a0c3):'',this[_0x50d9('0x1c')]&&this[_0x50d9('0x1c')][_0x50d9('0x17')](_0x50d9('0x10'))['to'](this),this['setTemplate']({'tag':_0x50d9('0xc'),'attributes':{'class':['ck',_0x50d9('0x0'),_0x50d9('0xe'),_0x198012['if']('isConfirm',_0x50d9('0x1e'))]},'children':[{'tag':_0x50d9('0xc'),'attributes':{'class':['ck','ck-reset',_0x50d9('0x22'),_0x198012['if']('isEnabled',_0x50d9('0x1f'),_0x726416=>!_0x726416),_0x198012['if']('isSelected',_0x50d9('0xa')),_0x198012['if']('isHighlighted',_0x50d9('0x2e')),_0x198012['if'](_0x50d9('0x1'),_0x50d9('0x1b'))]},'children':[this[_0x50d9('0x2b')],{'tag':_0x50d9('0x7'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x198012['to']('_createdAtFormatted')}]},{'tag':_0x50d9('0xc'),'attributes':{'class':['ck',_0x50d9('0x15')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x50d9('0x5')]},'children':_0x6e658d}]},this['revisionActionsView']],'on':{'click':_0x198012['to'](_0x2d5163=>{_0x2d5163['srcElement'][_0x50d9('0x2')]('.ck-thread__remove-confirm')||this[_0x50d9('0x1d')]&&this[_0x50d9('0x10')]&&this[_0x50d9('0x25')](_0x50d9('0x23'),{'id':this['id']});})}}]});}[_0x50d9('0x9')](){super['render']();const _0x30fafd=this[_0x50d9('0x2b')]['fieldView'][_0x50d9('0x18')];this[_0x50d9('0xd')](_0x30fafd,_0x50d9('0x16'),()=>{this[_0x50d9('0x25')]('setName',{'id':this['id'],'name':_0x30fafd[_0x50d9('0x19')]});});}[_0x50d9('0x23')](){this['isSelected']=!0x0;}[_0x50d9('0x26')](){this[_0x50d9('0x1a')]=!0x1;}[_0x50d9('0x11')](){this[_0x50d9('0x14')]=!0x0;}[_0x50d9('0x21')](){this[_0x50d9('0x14')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e6d=['false','set','click','setTemplate','bindTemplate','isVisible','ck-revision-history-sidebar__subrevision-collapser_collapsed','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','span','ck-revision-history-sidebar__subrevision-collapser'];(function(_0x562e14,_0x3e6d9d){const _0x14943f=function(_0xa5a60f){while(--_0xa5a60f){_0x562e14['push'](_0x562e14['shift']());}};_0x14943f(++_0x3e6d9d);}(_0x3e6d,0x1ce));const _0x1494=function(_0x562e14,_0x3e6d9d){_0x562e14=_0x562e14-0x0;let _0x14943f=_0x3e6d[_0x562e14];return _0x14943f;};import{View as _0x217242}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x217242{constructor(_0x1133d1){super(_0x1133d1);const _0x5cebad=this[_0x1494('0x4')];this[_0x1494('0x1')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1494('0x3')]({'tag':'span','attributes':{'class':['ck',_0x1494('0xa'),_0x5cebad['if'](_0x1494('0x5'),'ck-hidden',_0x31e575=>!_0x31e575),_0x5cebad['if'](_0x1494('0x7'),_0x1494('0x6'))],'role':'button','aria-pressed':_0x5cebad['to']('_isCollapsed',_0xf14135=>_0xf14135?_0x1494('0x0'):'true')},'children':[{'tag':_0x1494('0x9'),'attributes':{'class':['ck',_0x1494('0x8')]}}],'on':{'click':_0x5cebad['to'](_0x1494('0x2'))}});}['toggle'](){this['_isCollapsed']=!this[_0x1494('0x7')];}}
23
+ const _0x379a=['ck-hidden','bindTemplate','button','true','false','span','setTemplate','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','click','set','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed'];(function(_0x3fd96,_0x379a86){const _0x35c38d=function(_0x542ab5){while(--_0x542ab5){_0x3fd96['push'](_0x3fd96['shift']());}};_0x35c38d(++_0x379a86);}(_0x379a,0x65));const _0x35c3=function(_0x3fd96,_0x379a86){_0x3fd96=_0x3fd96-0x0;let _0x35c38d=_0x379a[_0x3fd96];return _0x35c38d;};import{View as _0xb3240d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xb3240d{constructor(_0x5d938f){super(_0x5d938f);const _0x4dbd35=this[_0x35c3('0x4')];this[_0x35c3('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x35c3('0x9')]({'tag':'span','attributes':{'class':['ck',_0x35c3('0x1'),_0x4dbd35['if'](_0x35c3('0xa'),_0x35c3('0x3'),_0x14acc7=>!_0x14acc7),_0x4dbd35['if'](_0x35c3('0x2'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x35c3('0x5'),'aria-pressed':_0x4dbd35['to'](_0x35c3('0x2'),_0x38d1fb=>_0x38d1fb?_0x35c3('0x7'):_0x35c3('0x6'))},'children':[{'tag':_0x35c3('0x8'),'attributes':{'class':['ck',_0x35c3('0xb')]}}],'on':{'click':_0x4dbd35['to'](_0x35c3('0xc'))}});}['toggle'](){this[_0x35c3('0x2')]=!this[_0x35c3('0x2')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b07=['ck-revision-history-sidebar__subrevision','isSelected','fire','bind','set','ck-revision-history-sidebar__revision','select','_createdAtFormatted','createdAt','setTemplate','deselect','span','ck-reset','div','creator','ck-revision-history-sidebar__revision_selected','_parentRevisionId','ck-revision-history-sidebar__revision-authors','uiLanguage'];(function(_0xd31d3,_0x5b074c){const _0x2e89cd=function(_0x497b0d){while(--_0x497b0d){_0xd31d3['push'](_0xd31d3['shift']());}};_0x2e89cd(++_0x5b074c);}(_0x5b07,0x67));const _0x2e89=function(_0xd31d3,_0x5b074c){_0xd31d3=_0xd31d3-0x0;let _0x2e89cd=_0x5b07[_0xd31d3];return _0x2e89cd;};import{View as _0x52bd13}from'ckeditor5/src/ui';import _0x4dcbbd from'./revisionauthorview';import{dateToPrettyFormat as _0x3f9230}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x52bd13{constructor(_0xce7bb0,_0x25a6dd,_0x405679){super(_0xce7bb0);const _0x29c311=this['bindTemplate'];this['id']=_0x25a6dd['id'],this[_0x2e89('0xe')](_0x2e89('0x0'))['to'](_0x25a6dd),this[_0x2e89('0xf')](_0x2e89('0xc'),!0x1),this[_0x2e89('0xe')]('_createdAtFormatted')['to'](this,_0x2e89('0x0'),_0x2651b7=>_0x2651b7?_0x3f9230(_0xce7bb0[_0x2e89('0xa')],_0x2651b7):void 0x0),this[_0x2e89('0x8')]=_0x405679,this[_0x2e89('0x1')]({'tag':_0x2e89('0x5'),'attributes':{'class':['ck',_0x2e89('0x4'),_0x2e89('0x10'),_0x2e89('0xb'),_0x29c311['if'](_0x2e89('0xc'),_0x2e89('0x7'))]},'children':[{'tag':_0x2e89('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x29c311['to'](_0x2e89('0x12'))}]},{'tag':'ul','attributes':{'class':['ck',_0x2e89('0x9')]},'children':[new _0x4dcbbd(_0xce7bb0,_0x25a6dd[_0x2e89('0x6')],!0x0)]}],'on':{'click':_0x29c311['to'](this[_0x2e89('0x11')][_0x2e89('0xe')](this))}});}[_0x2e89('0x11')](){this[_0x2e89('0xc')]=!0x0,this[_0x2e89('0xd')](_0x2e89('0x11'),{'parentId':this['_parentRevisionId']});}[_0x2e89('0x2')](){this[_0x2e89('0xc')]=!0x1;}}
23
+ const _0x3e3a=['ck-revision-history-sidebar__revision_selected','createdAt','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision-authors','isSelected','_parentRevisionId','deselect','select','uiLanguage','div','ck-revision-history-sidebar__revision','creator','bind','setTemplate','fire','_createdAtFormatted','bindTemplate'];(function(_0x2b2b00,_0x3e3a6d){const _0xdfe780=function(_0x556602){while(--_0x556602){_0x2b2b00['push'](_0x2b2b00['shift']());}};_0xdfe780(++_0x3e3a6d);}(_0x3e3a,0x119));const _0xdfe7=function(_0x2b2b00,_0x3e3a6d){_0x2b2b00=_0x2b2b00-0x0;let _0xdfe780=_0x3e3a[_0x2b2b00];return _0xdfe780;};import{View as _0x25638b}from'ckeditor5/src/ui';import _0x45cb68 from'./revisionauthorview';import{dateToPrettyFormat as _0x15fe50}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x25638b{constructor(_0x4c5fc3,_0x35d8e6,_0x1785a0){super(_0x4c5fc3);const _0x21e63=this[_0xdfe7('0x7')];this['id']=_0x35d8e6['id'],this['bind']('createdAt')['to'](_0x35d8e6),this['set']('isSelected',!0x1),this[_0xdfe7('0x3')](_0xdfe7('0x6'))['to'](this,_0xdfe7('0x9'),_0x133f8c=>_0x133f8c?_0x15fe50(_0x4c5fc3[_0xdfe7('0x10')],_0x133f8c):void 0x0),this[_0xdfe7('0xd')]=_0x1785a0,this[_0xdfe7('0x4')]({'tag':_0xdfe7('0x0'),'attributes':{'class':['ck','ck-reset',_0xdfe7('0x1'),_0xdfe7('0xa'),_0x21e63['if']('isSelected',_0xdfe7('0x8'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x21e63['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0xdfe7('0xb')]},'children':[new _0x45cb68(_0x4c5fc3,_0x35d8e6[_0xdfe7('0x2')],!0x0)]}],'on':{'click':_0x21e63['to'](this[_0xdfe7('0xf')][_0xdfe7('0x3')](this))}});}[_0xdfe7('0xf')](){this[_0xdfe7('0xc')]=!0x0,this[_0xdfe7('0x5')](_0xdfe7('0xf'),{'parentId':this[_0xdfe7('0xd')]});}[_0xdfe7('0xe')](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2511=['numeric','toLocaleTimeString','toLocaleDateString','long'];(function(_0x5d619d,_0x25114e){var _0x39d7cd=function(_0x19dbbb){while(--_0x19dbbb){_0x5d619d['push'](_0x5d619d['shift']());}};_0x39d7cd(++_0x25114e);}(_0x2511,0x1ec));var _0x39d7=function(_0x5d619d,_0x25114e){_0x5d619d=_0x5d619d-0x0;var _0x39d7cd=_0x2511[_0x5d619d];return _0x39d7cd;};export function dateToPrettyFormat(_0x57bd75,_0x2f0fda){return _0x2f0fda[_0x39d7('0x2')](_0x57bd75,{'month':_0x39d7('0x3'),'day':'numeric'})+',\x20'+_0x2f0fda[_0x39d7('0x1')](_0x57bd75,{'hour':_0x39d7('0x0'),'minute':'numeric'});}
23
+ var _0x251c=['toLocaleDateString','numeric'];(function(_0x41ccb9,_0x251c2f){var _0x5cb1fd=function(_0x3b5577){while(--_0x3b5577){_0x41ccb9['push'](_0x41ccb9['shift']());}};_0x5cb1fd(++_0x251c2f);}(_0x251c,0x178));var _0x5cb1=function(_0x41ccb9,_0x251c2f){_0x41ccb9=_0x41ccb9-0x0;var _0x5cb1fd=_0x251c[_0x41ccb9];return _0x5cb1fd;};export function dateToPrettyFormat(_0x53c5fd,_0x312032){return _0x312032[_0x5cb1('0x0')](_0x53c5fd,{'month':'long','day':'numeric'})+',\x20'+_0x312032['toLocaleTimeString'](_0x53c5fd,{'hour':_0x5cb1('0x1'),'minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x331e=['stopPropagation','locale','reset','saveButtonView','_focusables','ck-button-cancel','cancelButtonView','revisionNameInputView','render','element','arrowup','setTemplate','extendTemplate','submit','trim','fieldView','add','set','type','revisionName','_createRevisionNameInput','value','form','cancel','listenTo','focus','revisionNameInputValue','delegate','Cancel','arrowleft','ck-button-save','arrowdown','focusTracker','220','input','shift\x20+\x20tab','arrowright','Name\x20of\x20the\x20revision\x20(optional)','_focusCycler','tab','ck-revision-history-save-revision-form','keystrokes','_createButton'];(function(_0x33839e,_0x331e1d){const _0x176659=function(_0xd80c8f){while(--_0xd80c8f){_0x33839e['push'](_0x33839e['shift']());}};_0x176659(++_0x331e1d);}(_0x331e,0x13c));const _0x1766=function(_0x33839e,_0x331e1d){_0x33839e=_0x33839e-0x0;let _0x176659=_0x331e[_0x33839e];return _0x176659;};import{icons as _0x2a09ff}from'ckeditor5/src/core';import{ButtonView as _0x52fce8,FocusCycler as _0x4ffab1,LabeledFieldView as _0x2f7625,View as _0xa40eb4,ViewCollection as _0x36c622,createLabeledInputText as _0x2325c4,injectCssTransitionDisabler as _0x3a953f,submitHandler as _0x5c7451}from'ckeditor5/src/ui';import{FocusTracker as _0xa21a94,KeystrokeHandler as _0xe314a4}from'ckeditor5/src/utils';import{getTranslation as _0x515c36}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xa40eb4{constructor(_0x26a573){super(_0x26a573),this[_0x1766('0x11')]=new _0xa21a94(),this[_0x1766('0x1a')]=new _0xe314a4(),this[_0x1766('0x2')]('revisionNameInputValue',''),this[_0x1766('0x23')]=this[_0x1766('0x5')](),this[_0x1766('0x1f')]=this[_0x1766('0x1b')](_0x515c36(_0x26a573,'Save'),_0x2a09ff['check'],_0x1766('0xf')),this[_0x1766('0x1f')][_0x1766('0x3')]=_0x1766('0x29'),this[_0x1766('0x22')]=this['_createButton'](_0x515c36(_0x26a573,_0x1766('0xd')),_0x2a09ff[_0x1766('0x8')],_0x1766('0x21'),_0x1766('0x8')),this['_focusables']=new _0x36c622(),this[_0x1766('0x17')]=new _0x4ffab1({'focusables':this['_focusables'],'focusTracker':this[_0x1766('0x11')],'keystrokeHandler':this[_0x1766('0x1a')],'actions':{'focusPrevious':_0x1766('0x14'),'focusNext':_0x1766('0x18')}}),this[_0x1766('0x27')]({'tag':_0x1766('0x7'),'attributes':{'class':['ck',_0x1766('0x19'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x1766('0x23')],this['saveButtonView'],this['cancelButtonView']]}),_0x3a953f(this);}[_0x1766('0x24')](){super[_0x1766('0x24')](),_0x5c7451({'view':this}),([this['revisionNameInputView'],this[_0x1766('0x1f')],this[_0x1766('0x22')]]['forEach'](_0x4a59c3=>{this[_0x1766('0x20')][_0x1766('0x1')](_0x4a59c3),this['focusTracker'][_0x1766('0x1')](_0x4a59c3[_0x1766('0x25')]);}),this[_0x1766('0x1a')][_0x1766('0x9')](this[_0x1766('0x25')]));const _0x5915ed=_0x3e89cc=>_0x3e89cc[_0x1766('0x1c')]();this[_0x1766('0x1a')][_0x1766('0x2')](_0x1766('0x15'),_0x5915ed),this[_0x1766('0x1a')][_0x1766('0x2')](_0x1766('0xe'),_0x5915ed),this['keystrokes'][_0x1766('0x2')](_0x1766('0x26'),_0x5915ed),this[_0x1766('0x1a')][_0x1766('0x2')](_0x1766('0x10'),_0x5915ed);}[_0x1766('0xa')](){this[_0x1766('0x17')]['focusFirst']();}get[_0x1766('0x4')](){return this[_0x1766('0x23')]['fieldView'][_0x1766('0x25')][_0x1766('0x6')][_0x1766('0x2a')]();}set[_0x1766('0x4')](_0x10e0a0){this[_0x1766('0x23')][_0x1766('0x0')][_0x1766('0x25')][_0x1766('0x6')]=_0x10e0a0['trim']();}[_0x1766('0x1e')](){this[_0x1766('0x23')][_0x1766('0x0')][_0x1766('0x25')][_0x1766('0x6')]='';}[_0x1766('0x5')](){const _0x5f130e=new _0x2f7625(this[_0x1766('0x1d')],_0x2325c4),_0x324fa4=_0x5f130e[_0x1766('0x0')];return _0x324fa4[_0x1766('0x28')]({'attributes':{'maxlength':_0x1766('0x12')}}),_0x5f130e['label']=_0x515c36(this[_0x1766('0x1d')],_0x1766('0x16')),_0x324fa4['on'](_0x1766('0x13'),()=>{this[_0x1766('0xb')]=_0x324fa4[_0x1766('0x25')][_0x1766('0x6')][_0x1766('0x2a')]();}),_0x5f130e;}[_0x1766('0x1b')](_0x74996d,_0x31698a,_0x28d406,_0x22d701){const _0x203848=new _0x52fce8(this[_0x1766('0x1d')]);return _0x203848[_0x1766('0x2')]({'label':_0x74996d,'icon':_0x31698a,'tooltip':!0x0}),_0x203848['extendTemplate']({'attributes':{'class':_0x28d406}}),_0x22d701&&_0x203848[_0x1766('0xc')]('execute')['to'](this,_0x22d701),_0x203848;}}
23
+ const _0x13b0=['type','saveButtonView','arrowleft','focusTracker','render','220','revisionNameInputValue','delegate','_focusCycler','value','Name\x20of\x20the\x20revision\x20(optional)','cancelButtonView','fieldView','_createButton','trim','_createRevisionNameInput','arrowdown','focus','focusFirst','element','ck-button-cancel','shift\x20+\x20tab','cancel','keystrokes','arrowup','setTemplate','set','forEach','_focusables','input','Save','reset','listenTo','arrowright','check','tab','add','revisionNameInputView','label','locale'];(function(_0x1cd917,_0x13b056){const _0x103379=function(_0xa6c267){while(--_0xa6c267){_0x1cd917['push'](_0x1cd917['shift']());}};_0x103379(++_0x13b056);}(_0x13b0,0xdd));const _0x1033=function(_0x1cd917,_0x13b056){_0x1cd917=_0x1cd917-0x0;let _0x103379=_0x13b0[_0x1cd917];return _0x103379;};import{icons as _0x5eba84}from'ckeditor5/src/core';import{ButtonView as _0x105fe1,FocusCycler as _0x21ab76,LabeledFieldView as _0x59539d,View as _0x27ed7e,ViewCollection as _0x598f69,createLabeledInputText as _0x38ae15,injectCssTransitionDisabler as _0x5b0790,submitHandler as _0x329b0b}from'ckeditor5/src/ui';import{FocusTracker as _0x13ba27,KeystrokeHandler as _0x37f9e3}from'ckeditor5/src/utils';import{getTranslation as _0x2bd605}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x27ed7e{constructor(_0x2cbfd0){super(_0x2cbfd0),this[_0x1033('0x16')]=new _0x13ba27(),this['keystrokes']=new _0x37f9e3(),this['set'](_0x1033('0x19'),''),this[_0x1033('0x10')]=this[_0x1033('0x22')](),this[_0x1033('0x14')]=this[_0x1033('0x20')](_0x2bd605(_0x2cbfd0,_0x1033('0x9')),_0x5eba84[_0x1033('0xd')],'ck-button-save'),this[_0x1033('0x14')][_0x1033('0x13')]='submit',this[_0x1033('0x1e')]=this[_0x1033('0x20')](_0x2bd605(_0x2cbfd0,'Cancel'),_0x5eba84[_0x1033('0x1')],_0x1033('0x27'),'cancel'),this[_0x1033('0x7')]=new _0x598f69(),this[_0x1033('0x1b')]=new _0x21ab76({'focusables':this[_0x1033('0x7')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x1033('0x2')],'actions':{'focusPrevious':_0x1033('0x0'),'focusNext':_0x1033('0xe')}}),this[_0x1033('0x4')]({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x1033('0x10')],this['saveButtonView'],this[_0x1033('0x1e')]]}),_0x5b0790(this);}['render'](){super[_0x1033('0x17')](),_0x329b0b({'view':this}),([this['revisionNameInputView'],this[_0x1033('0x14')],this[_0x1033('0x1e')]][_0x1033('0x6')](_0x2d5004=>{this[_0x1033('0x7')][_0x1033('0xf')](_0x2d5004),this['focusTracker']['add'](_0x2d5004[_0x1033('0x26')]);}),this[_0x1033('0x2')][_0x1033('0xb')](this[_0x1033('0x26')]));const _0x5da4a2=_0x3a8f7c=>_0x3a8f7c['stopPropagation']();this[_0x1033('0x2')][_0x1033('0x5')](_0x1033('0xc'),_0x5da4a2),this[_0x1033('0x2')][_0x1033('0x5')](_0x1033('0x15'),_0x5da4a2),this['keystrokes'][_0x1033('0x5')](_0x1033('0x3'),_0x5da4a2),this[_0x1033('0x2')][_0x1033('0x5')](_0x1033('0x23'),_0x5da4a2);}[_0x1033('0x24')](){this[_0x1033('0x1b')][_0x1033('0x25')]();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element'][_0x1033('0x1c')][_0x1033('0x21')]();}set['revisionName'](_0x1d00f4){this[_0x1033('0x10')]['fieldView']['element'][_0x1033('0x1c')]=_0x1d00f4['trim']();}[_0x1033('0xa')](){this['revisionNameInputView'][_0x1033('0x1f')][_0x1033('0x26')][_0x1033('0x1c')]='';}[_0x1033('0x22')](){const _0x6fe3eb=new _0x59539d(this[_0x1033('0x12')],_0x38ae15),_0x54d1bb=_0x6fe3eb[_0x1033('0x1f')];return _0x54d1bb['extendTemplate']({'attributes':{'maxlength':_0x1033('0x18')}}),_0x6fe3eb[_0x1033('0x11')]=_0x2bd605(this[_0x1033('0x12')],_0x1033('0x1d')),_0x54d1bb['on'](_0x1033('0x8'),()=>{this[_0x1033('0x19')]=_0x54d1bb[_0x1033('0x26')][_0x1033('0x1c')][_0x1033('0x21')]();}),_0x6fe3eb;}[_0x1033('0x20')](_0x5128ee,_0x567d97,_0x5e7fb8,_0x2eda8a){const _0x4d24f1=new _0x105fe1(this[_0x1033('0x12')]);return _0x4d24f1[_0x1033('0x5')]({'label':_0x5128ee,'icon':_0x567d97,'tooltip':!0x0}),_0x4d24f1['extendTemplate']({'attributes':{'class':_0x5e7fb8}}),_0x2eda8a&&_0x4d24f1[_0x1033('0x1a')]('execute')['to'](this,_0x2eda8a),_0x4d24f1;}}