@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230809.0 → 0.0.0-nightly-20230811.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 _0x1f53=['text','merge','bind','_removeRevisionMarkers','set','roots','attributesBefore','_appendChild','markerNameToElements','isAttached','isBlock','ck-suggestion-marker-split','object','attachChange','elementStart','isLimit','includes','attributesAfter','_initInteractions','isRemoved','createPositionBefore','_cleanUp','from','useFillerType','removeClass','markers','createAttributeElement','revision-suggestion','refresh','editingDowncast','nextSibling','getIndex','authors','name','data','_balloon','_makeTape','keys','clear','toViewPosition','hasClass','isIncorrect','next','oldRevisionId','insert','forceDisabled','change:activeChange','add','item','_markMismatchedRemovedTags','remove','catch','ck-suggestion-preview-marker-','_markSuggestions','checkAttribute','isEqual','getRootNames','downcastDispatcher','_getChangeFromId','adapter','for','element:pre','backward','index','change:numberOfChanges','code','ck-suggestion-marker--active','activeView','split','attribute:vid','level','getRevision','bindElementToMarker','revision-end','delete','revision-suggestion:','indexOf','isObject','findIndex','markerToHighlight','markerToData','isBefore','getChild','_makeModelFromTape','_changeView','POSITIVE_INFINITY','newRevisionId','_joinTapes','concat','change:activeView','_step','changes','_removeUnsupportedChanges','pairId','listenTo','maxOffset','error','dataToMarker','compare','removeMarker:revision-suggestion','revision-start','nextPosition','nodeAfter','distance','string','map','abs','toViewElement','startIndex','forward','isSuggestion','suggestion:','first','domEvent','affectsData','right','ck-suggestion-marker-','upcast','_fixObsoleteTags','startsWith','markersEnd','ck-suggestion-preview-marker','hasAttribute','createUIElement','detachRoot','values','get','revision','_getDiff','RevisionViewer','activeChange','dataDowncast','addMarker:revision-suggestion:deletion','endIndex','push','commands','consumable','markerRange','document','config','showStack','view','_getViewForChange','change','loadRevisionData','-new','restoreRevision','ck-revision-history-root--active','_removeMissingPairs','editor','done','target','change:isEnabled','all','destroy','end','selection','then','revision:','_processTape','revisionHistoryAttachChange','top','sort','isReady','range','WidgetToolbarRepository','ck-suggestion-marker-merge','addMarker:revision-suggestion:insertion','setAttribute','mousedown','element','schema','plugins','isContent','init','markersStart','editing','data-change-id','isAtEnd','vid_end','getRevisionRootsAttributes','start','createRange','shift','isEnabled','deletion','has','addRevisionData','_setDistance','_threeWayMerge','vid','processor','_markMarkers','modelRange','collaboration.channelId','slice','change:isReady','resolve','_changeIdToChange','model','filter','vid_start','addRoot','mapper','_getRevisionsRange','toViewRange','userId','removeAttribute','_data','deletions','test','markerName','locale','createPositionFromPath','span','addHighlight','diffData','previousPosition','getRoot','uiElement','rootName','revisionHistoryLabel','parent','softBreak','requires','getAttributes','getWalker','revision-viewer','_findChangeIdFromDomTarget','type','isAddSuggestion','addMarker:revision','restoreRevisionCallback','elementToAttribute','_sortAndFilterDiffChanges','getAttribute','execute','_activeViewTarget','showPreviousChange','forEach','getClientRects','showNextChange','changeId','unbindElementFromMarkerName','viewItem','ck-revision-history-root-add','children','_update','splice','insertions','isAdded','_markInsertions','_getViewObj','revisionHistory','addRevision','consume','mouseover','attributes','side','writer','insertion','ck-editor__editable__overlay','ck-revision-history-root-remove','length','isAfter','revision-comment:','diff','marked','high','isRemoveSuggestion','low','unshift','conversion','_setConversion','highest','addClass','offsetSize','isOnRoot','removeMarker:revision','domConverter','elementEnd','repository','getDomRoot','enqueueChange'];(function(_0x4334f2,_0x1f53d2){const _0x55d98e=function(_0x481fd0){while(--_0x481fd0){_0x4334f2['push'](_0x4334f2['shift']());}};_0x55d98e(++_0x1f53d2);}(_0x1f53,0x17e));const _0x55d9=function(_0x4334f2,_0x1f53d2){_0x4334f2=_0x4334f2-0x0;let _0x55d98e=_0x1f53[_0x4334f2];return _0x55d98e;};import{Plugin as _0x2d00d0,Command as _0x306e87}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2eaf4a}from'ckeditor5/src/utils';import{ContextualBalloon as _0x47dd80}from'ckeditor5/src/ui';import{DocumentFragment as _0x516649,Element as _0x3c019d,Text as _0x36c2e4,ViewDocumentFragment as _0x4615a6,ViewText as _0x4d5d1b,ViewElement as _0x43c320,ViewContainerElement as _0x23894f,ViewAttributeElement as _0x35b023,ViewEmptyElement as _0xe5ffd4,ViewRawElement as _0x4d2f14,ViewUIElement as _0x305c09}from'ckeditor5/src/engine';import{Users as _0x10cfa1,getMarkerDomElement as _0x4edb92}from'ckeditor5-collaboration/src/collaboration-core';import _0x38408b from'./ui/revisionviewer/changedetailsview';import _0xdfaa65 from'./revisionsrepository';import _0x568b9f from'./changeitem';import{default as _0x4205c9}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x38a019}from'lodash-es';const tt={'c':_0x23894f,'a':_0x35b023,'e':_0xe5ffd4,'r':_0x4d2f14,'u':_0x305c09};export default class d extends _0x2d00d0{static get['pluginName'](){return'RevisionViewer';}static get[_0x55d9('0x7e')](){return[_0x10cfa1,_0x47dd80,_0xdfaa65];}constructor(_0x52fceb){super(_0x52fceb),this[_0x55d9('0xb7')]=this[_0x55d9('0x33')][_0x55d9('0x4a')][_0x55d9('0x1c')]('RevisionsRepository'),this['set'](_0x55d9('0x20'),null),this[_0x55d9('0xbe')]('activeView',null),this[_0x55d9('0x8b')]=null,this[_0x55d9('0xbe')]('diff',null),this['set'](_0x55d9('0x41'),!0x1),this[_0x55d9('0xbe')](_0x55d9('0x56'),!0x0),this['on'](_0x55d9('0x36'),(_0x1cc017,_0x3490e9,_0x5caa0b)=>{this[_0x55d9('0x20')]=null,this[_0x55d9('0xfd')]=null,this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x2d')](_0x9a0739=>{for(const _0x360e89 of this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x28')][_0x55d9('0xbf')])_0x5caa0b?_0x9a0739[_0x55d9('0xd2')](_0x55d9('0xa3'),_0x360e89):_0x9a0739['addClass']('ck-editor__editable__overlay',_0x360e89);});}),this[_0x55d9('0xbc')]('isNavigationMode')['to'](this,'activeChange',_0x177918=>null!==_0x177918),this[_0x55d9('0xbc')]('currentChangeNumber')['to'](this,_0x55d9('0x41'),this,_0x55d9('0xa8'),this,_0x55d9('0x20'),(_0x3fda69,_0x384f04,_0x52abb3)=>_0x3fda69&&_0x52abb3?_0x384f04[_0x55d9('0x115')][_0x55d9('0xd9')](_0x52abb3):0x0),this[_0x55d9('0xbc')]('numberOfChanges')['to'](this,'isReady',this,_0x55d9('0xa8'),(_0x317d06,_0x463cf7)=>_0x317d06?_0x463cf7['changes'][_0x55d9('0xa5')]:0x0),this['_changeView']=null,this[_0x55d9('0x64')]=new Map(),this[_0x55d9('0xf5')]=null,this[_0x55d9('0xdd')]=this[_0x55d9('0x33')]['plugins'][_0x55d9('0x1c')](_0x47dd80);}[_0x55d9('0x4c')](){const _0x53eac7=this['editor'],_0xe6b9a2=new ShowChangeCommand(_0x53eac7,{'direction':_0x55d9('0xf8')}),_0x31caed=new ShowChangeCommand(_0x53eac7,{'direction':_0x55d9('0xb')});(_0x53eac7[_0x55d9('0x25')][_0x55d9('0xe9')](_0x55d9('0x8c'),_0xe6b9a2),_0x53eac7[_0x55d9('0x25')][_0x55d9('0xe9')](_0x55d9('0x8f'),_0x31caed),_0x53eac7[_0x55d9('0x25')][_0x55d9('0xe9')](_0x55d9('0x30'),new RestoreRevisionCommand(_0x53eac7)),this['on'](_0x55d9('0xfa'),()=>{_0xe6b9a2[_0x55d9('0xd6')](),_0x31caed[_0x55d9('0xd6')]();}),this['_setConversion'](),this[_0x55d9('0xcc')](),_0x53eac7['enableReadOnlyMode']('revision-viewer'),_0x53eac7[_0x55d9('0x4a')][_0x55d9('0x58')](_0x55d9('0x43')))&&_0x53eac7[_0x55d9('0x4a')][_0x55d9('0x1c')](_0x55d9('0x43'))[_0x55d9('0xe7')](_0x55d9('0x81'));}async['getRevisionData'](_0x499213){await this['loadRevisionData'](_0x499213);const _0x1a081e={};for(const _0x58c12b in _0x499213[_0x55d9('0x76')]){if(_0x499213[_0x55d9('0x76')][_0x58c12b][_0x55d9('0xc7')]&&!_0x499213[_0x55d9('0x76')][_0x58c12b][_0x55d9('0xc7')]['isAttached'])continue;const _0x47b8ee=this['_removeRevisionMarkers'](JSON['parse'](_0x499213[_0x55d9('0x76')][_0x58c12b][_0x55d9('0x97')])),_0x30cd07=this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x28')],_0x2322c6=new _0x4615a6(_0x30cd07,_0x47b8ee[_0x55d9('0x7')](_0x328987=>this['_getViewObj'](_0x328987)));this[_0x55d9('0x33')][_0x55d9('0xdc')][_0x55d9('0x5d')]['useFillerType'](_0x55d9('0xa9')),_0x1a081e[_0x58c12b]=this[_0x55d9('0x33')][_0x55d9('0xdc')][_0x55d9('0x5d')]['toData'](_0x2322c6),this[_0x55d9('0x33')][_0x55d9('0xdc')][_0x55d9('0x5d')][_0x55d9('0xd1')]('default');}return _0x1a081e;}async[_0x55d9('0x52')](_0x5287e3){await this['loadRevisionData'](_0x5287e3);const _0x2724ee={};for(const _0x238b74 in _0x5287e3[_0x55d9('0x76')])_0x5287e3[_0x55d9('0x76')][_0x238b74][_0x55d9('0xc7')]&&!_0x5287e3[_0x55d9('0x76')][_0x238b74][_0x55d9('0xc7')][_0x55d9('0xc3')]||(_0x2724ee[_0x238b74]=_0x5287e3[_0x55d9('0x76')][_0x238b74]['attributesAfter']||{});return _0x2724ee;}[_0x55d9('0xbd')](_0x3df067){return(_0x3df067=_0x3df067[_0x55d9('0x66')](_0x29b16f=>!_0x29b16f[_0x55d9('0xdb')]||_0x55d9('0x2')!==_0x29b16f[_0x55d9('0xdb')]&&_0x55d9('0x103')!==_0x29b16f[_0x55d9('0xdb')]))[_0x55d9('0x8d')](_0x1d48ca=>{_0x55d9('0x6')!=typeof _0x1d48ca&&(_0x1d48ca[_0x55d9('0x94')]=this['_removeRevisionMarkers'](_0x1d48ca[_0x55d9('0x94')]),_0x1d48ca['attributes']=_0x1d48ca['attributes'][_0x55d9('0x66')](_0x1d0fb5=>!_0x1d0fb5[0x0][_0x55d9('0x15')]('data-revision-')));}),_0x3df067;}async[_0x55d9('0x0')](_0x353682,_0x2b9c10,_0x1c5908=!0x1){if(!this['isEnabled'])return;const _0x5bbad3=this['diff'],_0x29ae81=this['repository'],_0x19a0d9=_0x55d9('0x6')==typeof _0x353682?_0x29ae81[_0x55d9('0x101')](_0x353682):_0x353682,_0x29be44=_0x55d9('0x6')==typeof _0x2b9c10?_0x29ae81[_0x55d9('0x101')](_0x2b9c10):_0x2b9c10,_0x1f632a=_0x19a0d9['id'],_0x285cca=_0x29be44?_0x29be44['id']:null;if(!_0x1c5908&&this[_0x55d9('0xa8')]&&this[_0x55d9('0xa8')][_0x55d9('0x110')]===_0x1f632a&&this[_0x55d9('0xa8')][_0x55d9('0xe5')]===_0x285cca)return Promise[_0x55d9('0x63')]();this[_0x55d9('0x41')]=!0x1,this[_0x55d9('0xfd')]=null,this[_0x55d9('0x20')]=null,this[_0x55d9('0xa8')]=new _0x4205c9(_0x1f632a,_0x285cca);const _0x56da58=this[_0x55d9('0x6a')](_0x19a0d9,_0x29be44,!0x0)[_0x55d9('0x7')](_0x3290d0=>this[_0x55d9('0x2e')](_0x3290d0));return _0x56da58[_0x55d9('0x24')](new Promise(_0x2f55ad=>{setTimeout(_0x2f55ad,0x14);})),Promise[_0x55d9('0x37')](_0x56da58)['then'](()=>{if(!this[_0x55d9('0x56')])return;this[_0x55d9('0xcf')]();const _0x167b0b=this[_0x55d9('0x1e')](_0x1f632a,_0x285cca);for(const _0x1b8599 of _0x167b0b[_0x55d9('0x115')])this[_0x55d9('0x64')][_0x55d9('0xbe')](_0x1b8599['id'],_0x1b8599);this['editor'][_0x55d9('0x65')][_0x55d9('0xb9')]({'isUndoable':!0x1},_0x32cd8a=>{for(const _0x189c0a of this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x28')][_0x55d9('0xf2')]())_0x32cd8a[_0x55d9('0x1a')](_0x189c0a);for(const _0x563f90 of Object['keys'](_0x167b0b[_0x55d9('0x65')])){const _0xb0c4cf=_0x32cd8a[_0x55d9('0x68')](_0x563f90);for(const _0x28c66f of Object[_0x55d9('0xdf')](_0x167b0b[_0x55d9('0x9f')][_0x563f90]))_0x32cd8a[_0x55d9('0x46')](_0x28c66f,_0x167b0b[_0x55d9('0x9f')][_0x563f90][_0x28c66f],_0xb0c4cf);_0x32cd8a['insert'](_0x167b0b['model'][_0x563f90],_0xb0c4cf,0x0);}}),this['diff']['_setChanges'](this[_0x55d9('0x88')](_0x167b0b[_0x55d9('0x115')])),this[_0x55d9('0x41')]=!0x0;})[_0x55d9('0xed')](_0x35b412=>{console[_0x55d9('0x11a')](_0x35b412),this[_0x55d9('0xcf')](),_0x5bbad3&&(this[_0x55d9('0xa8')]=_0x5bbad3),this[_0x55d9('0x41')]=!0x0;});}[_0x55d9('0x59')](_0x3b2799,_0x1555e9){const _0x5df309=this[_0x55d9('0xb7')]['createRevision'](_0x3b2799);return _0x5df309['on'](_0x55d9('0x95'),(_0x20e33d,_0x24328c,_0x14bb9c)=>_0x1555e9(_0x24328c,_0x14bb9c,_0x5df309)),this[_0x55d9('0xb7')][_0x55d9('0x9c')](_0x5df309),_0x5df309;}['loadRevisionData'](_0x50e64b){if(!_0x50e64b||_0x50e64b[_0x55d9('0x76')])return Promise['resolve']();{const _0x315db7=this[_0x55d9('0x33')]['config'][_0x55d9('0x1c')](_0x55d9('0x60'));return this[_0x55d9('0xf5')][_0x55d9('0x101')]({'channelId':_0x315db7,'revisionId':_0x50e64b['id']})[_0x55d9('0x3b')](_0x27585a=>{_0x50e64b[_0x55d9('0x95')]({'diffData':_0x27585a[_0x55d9('0x76')]},!0x0);});}}['_cleanUp'](){this[_0x55d9('0x20')]=null,this['_cleanMarkers'](),this[_0x55d9('0x10e')]&&this[_0x55d9('0x10e')][_0x55d9('0x38')](),this[_0x55d9('0x10e')]=null,this['_changeIdToChange'][_0x55d9('0xe0')](),this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0xb9')]({'isUndoable':!0x1},_0x13799a=>{for(const _0x915b4d of this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x28')]['getRootNames']())_0x13799a[_0x55d9('0x1a')](_0x915b4d);});}[_0x55d9('0x88')](_0x3f63b9){const _0x5d9d88=[],_0xd7d742=new Map();for(const _0x3e8266 of this['editor'][_0x55d9('0x65')][_0x55d9('0x28')][_0x55d9('0xf2')]()){const _0x2e0803=this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')]['getDomRoot'](_0x3e8266);if(!_0x2e0803)continue;const _0x136ba3=_0x2e0803[_0x55d9('0x8e')]()['item'](0x0);_0x136ba3&&(_0x5d9d88[_0x55d9('0x24')](_0x3e8266),_0xd7d742['set'](_0x3e8266,_0x136ba3));}return _0x5d9d88['sort']((_0x16d1bc,_0x119aaa)=>{const _0x2fb38f=_0xd7d742[_0x55d9('0x1c')](_0x16d1bc),_0x29b5d2=_0xd7d742[_0x55d9('0x1c')](_0x119aaa);return _0x2fb38f['y']-_0x29b5d2['y']||_0x2fb38f['x']-_0x29b5d2['x'];}),(_0x3f63b9=_0x3f63b9[_0x55d9('0x66')](_0x5e623e=>_0x5d9d88[_0x55d9('0xca')](_0x5e623e[_0x55d9('0x7a')])))['sort']((_0x5b176e,_0x503155)=>_0x5d9d88[_0x55d9('0x106')](_0x5b176e[_0x55d9('0x7a')])-_0x5d9d88[_0x55d9('0x106')](_0x503155[_0x55d9('0x7a')])),_0x3f63b9;}[_0x55d9('0xde')](_0x5ee1c7){const _0x10f665=Array[_0x55d9('0xd0')](_0x5ee1c7[_0x55d9('0xd3')])[_0x55d9('0x66')](([_0x3c6b3f,_0x121d91])=>_0x3c6b3f['startsWith'](_0x55d9('0x3c'))&&!_0x121d91['isCollapsed']),_0x3a1f88=Array[_0x55d9('0xd0')](this['editor'][_0x55d9('0x65')]['createRangeIn'](_0x5ee1c7)[_0x55d9('0x80')]({'singleCharacters':!0x0}));if(0x0!=_0x10f665[_0x55d9('0xa5')])for(const _0x451a45 of _0x3a1f88){const [_0x57cd92,_0x105fcc]=_0x10f665[0x0],[,_0x447009,_0x2bf217]=_0x57cd92[_0x55d9('0xfe')](':');if(_0x105fcc[_0x55d9('0x39')][_0x55d9('0xf1')](_0x451a45[_0x55d9('0x3')])&&_0x10f665[_0x55d9('0x55')](),(_0x451a45[_0x55d9('0x77')]['isEqual'](_0x105fcc['start'])||_0x451a45['previousPosition'][_0x55d9('0xa6')](_0x105fcc['start']))&&(_0x55d9('0xa2')==_0x447009?_0x451a45['isAdded']={'userId':_0x2bf217}:_0x55d9('0x57')==_0x447009&&(_0x451a45['isRemoved']={'userId':_0x2bf217})),0x0==_0x10f665['length'])break;}return _0x3a1f88;}['_refreshStartEndIndex'](_0x166265){const _0x110b32=new Map();for(let _0x2c5861=0x0;_0x2c5861<_0x166265[_0x55d9('0xa5')];_0x2c5861++)_0x55d9('0xba')===_0x166265[_0x2c5861][_0x55d9('0x83')]?(_0x166265[_0x2c5861][_0x55d9('0xea')][_0x55d9('0xa')]=_0x2c5861,_0x166265[_0x2c5861][_0x55d9('0xea')][_0x55d9('0x23')]=_0x2c5861):(_0x55d9('0xc8')===_0x166265[_0x2c5861][_0x55d9('0x83')]?_0x166265[_0x2c5861][_0x55d9('0xea')]['startIndex']=_0x2c5861:_0x55d9('0xb6')===_0x166265[_0x2c5861][_0x55d9('0x83')]&&(_0x166265[_0x2c5861][_0x55d9('0xea')][_0x55d9('0x23')]=_0x2c5861),_0x110b32[_0x55d9('0xbe')](_0x166265[_0x2c5861]['id'],_0x2c5861));for(const _0x3c768d of _0x110b32[_0x55d9('0x1b')]())_0x55d9('0xc8')===_0x166265[_0x3c768d][_0x55d9('0x83')]?_0x166265[_0x3c768d][_0x55d9('0xea')][_0x55d9('0x23')]=_0x110b32[_0x55d9('0x1c')](_0x166265[_0x3c768d][_0x55d9('0x117')]):_0x55d9('0xb6')===_0x166265[_0x3c768d][_0x55d9('0x83')]&&(_0x166265[_0x3c768d]['item'][_0x55d9('0xa')]=_0x110b32[_0x55d9('0x1c')](_0x166265[_0x3c768d][_0x55d9('0x117')]));}[_0x55d9('0x3d')](_0xf8d785){for(let _0x306f0d=0x0;_0x306f0d<_0xf8d785[_0x55d9('0xa5')];_0x306f0d++){if(_0x55d9('0xc8')===_0xf8d785[_0x306f0d][_0x55d9('0x83')])_0xf8d785[_0x306f0d][_0x55d9('0xea')][_0x55d9('0xa')]=_0x306f0d;else{if('elementEnd'===_0xf8d785[_0x306f0d][_0x55d9('0x83')]){_0xf8d785[_0x306f0d][_0x55d9('0xea')][_0x55d9('0x23')]=_0x306f0d;const _0x51e43d=_0xf8d785[_0x306f0d]['item'][_0x55d9('0xa')];_0xf8d785[_0x51e43d][_0x55d9('0x117')]=_0xf8d785[_0x306f0d]['id'],_0xf8d785[_0x306f0d][_0x55d9('0x117')]=_0xf8d785[_0x51e43d]['id'];}else _0xf8d785[_0x306f0d][_0x55d9('0xea')]['startIndex']=_0x306f0d,_0xf8d785[_0x306f0d][_0x55d9('0xea')][_0x55d9('0x23')]=_0x306f0d,_0xf8d785[_0x306f0d][_0x55d9('0x117')]=null;}_0xf8d785[_0x306f0d][_0x55d9('0x4d')]||(_0xf8d785[_0x306f0d]['markersStart']=[],_0xf8d785[_0x306f0d][_0x55d9('0x16')]=[]);}}['_markInsertions'](_0x22059c,_0x3b24bf){const _0x1c937b=_0x22059c['filter'](_0x33da60=>!_0x33da60[_0x55d9('0x98')]);for(let _0x267086=0x0;_0x267086<_0x3b24bf[_0x55d9('0xa5')];_0x267086++)_0x3b24bf[_0x267086][_0x55d9('0x98')]&&(_0x1c937b[_0x267086][_0x55d9('0x98')]=_0x3b24bf[_0x267086]['isAdded']);}['_makeModelFromViewString'](_0x7401ee){const _0x7cd794=JSON['parse'](_0x7401ee),_0xc81380=this[_0x55d9('0x33')]['editing'][_0x55d9('0x2b')][_0x55d9('0x28')],_0x117a0e=new _0x4615a6(_0xc81380,_0x7cd794[_0x55d9('0x7')](_0x1d4eb0=>this[_0x55d9('0x9a')](_0x1d4eb0)));return this[_0x55d9('0x33')]['data']['toModel'](_0x117a0e);}[_0x55d9('0x9a')](_0x314004){const _0x1fdef3=this['editor'][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x28')];if(_0x55d9('0x6')==typeof _0x314004)return new _0x4d5d1b(_0x1fdef3,_0x314004);{const _0x33b345=_0x314004[_0x55d9('0x94')]['map'](_0x24d360=>this[_0x55d9('0x9a')](_0x24d360));return new(tt[_0x314004['type']]||_0x43c320)(_0x1fdef3,_0x314004['name'],_0x314004[_0x55d9('0x9f')],_0x33b345);}}[_0x55d9('0x1e')](_0x1c6869,_0xb007ef=null){const _0x767a4e=this['repository'][_0x55d9('0x101')](_0x1c6869),_0x5ee274=_0xb007ef?this[_0x55d9('0xb7')][_0x55d9('0x101')](_0xb007ef):null,_0x42a0a4=this[_0x55d9('0x6a')](_0x767a4e,_0x5ee274),_0x2b2562=_0x42a0a4[_0x42a0a4[_0x55d9('0xa5')]-0x1],_0x2de661=new Map(),_0x3aabb0={'model':{},'attributes':{},'changes':[]},_0x128542=new Set(),_0x5106ee=new Map();for(let _0x56ec78=_0x42a0a4[_0x55d9('0xa5')]-0x1;_0x56ec78>=0x0;_0x56ec78--){const _0x5780c6=_0x42a0a4[_0x56ec78];for(const _0x11ea6f of Object['keys'](_0x5780c6['diffData']))if(_0x5780c6[_0x55d9('0x76')][_0x11ea6f][_0x55d9('0xc7')]){const _0x167b9b=_0x5780c6['diffData'][_0x11ea6f][_0x55d9('0xc7')];_0x167b9b[_0x55d9('0xc3')]?(_0x128542[_0x55d9('0xe9')](_0x11ea6f),_0x5106ee[_0x55d9('0x58')](_0x11ea6f)&&_0x5106ee[_0x55d9('0x1c')](_0x11ea6f)[_0x55d9('0x6c')]==_0x167b9b[_0x55d9('0x6c')]?_0x5106ee[_0x55d9('0x104')](_0x11ea6f):_0x5106ee[_0x55d9('0xbe')](_0x11ea6f,_0x167b9b)):_0x5106ee[_0x55d9('0x58')](_0x11ea6f)?(_0x128542[_0x55d9('0x104')](_0x11ea6f),_0x5106ee[_0x55d9('0x104')](_0x11ea6f)):(_0x128542[_0x55d9('0xe9')](_0x11ea6f),_0x5106ee[_0x55d9('0xbe')](_0x11ea6f,_0x167b9b));}else _0x128542['add'](_0x11ea6f);}for(const _0x4ed814 of _0x128542){const _0x3a7a6e=_0x5106ee[_0x55d9('0x58')](_0x4ed814)&&!_0x5106ee[_0x55d9('0x1c')](_0x4ed814)[_0x55d9('0xc3')];let _0x2297b4=_0x3a7a6e?_0x42a0a4['length']-0x1:0x0;const _0x5d0d12=_0x3a7a6e?-0x1:0x1;for(;_0x42a0a4[_0x2297b4];){const _0x13ad42=_0x42a0a4[_0x2297b4];if(_0x13ad42[_0x55d9('0x76')][_0x4ed814]){const _0x3fee2c=_0x3a7a6e?_0x13ad42['diffData'][_0x4ed814][_0x55d9('0xc0')]:_0x13ad42['diffData'][_0x4ed814][_0x55d9('0xcb')];_0x3aabb0[_0x55d9('0x9f')][_0x4ed814]=_0x3fee2c?_0x38a019(_0x3fee2c):{};break;}_0x2297b4+=_0x5d0d12;}}for(const _0x570b25 of _0x42a0a4){_0x570b25[_0x55d9('0x65')]={};for(const _0x407217 of _0x570b25[_0x55d9('0xda')])_0x2de661[_0x55d9('0xbe')](_0x407217['id'],_0x407217);for(const _0x24e5ed of _0x128542){const _0x38fe65=_0x570b25[_0x55d9('0x76')][_0x24e5ed]?_0x570b25[_0x55d9('0x76')][_0x24e5ed][_0x55d9('0x97')]:'[]',_0x5e3ba3=_0x570b25[_0x55d9('0x76')][_0x24e5ed]?_0x570b25[_0x55d9('0x76')][_0x24e5ed]['deletions']:'[]';_0x570b25['model'][_0x24e5ed]={'insertions':this['_makeModelFromViewString'](_0x38fe65),'deletions':this['_makeModelFromViewString'](_0x5e3ba3)};}}for(const _0x3ab625 of _0x128542){let _0x4aeb77=null,_0x390be2=0x0;const _0xadbc31=new Map(Array[_0x55d9('0xd0')](_0x767a4e[_0x55d9('0x65')][_0x3ab625][_0x55d9('0x97')][_0x55d9('0xd3')])['filter'](([_0x3addd1])=>!_0x3addd1[_0x55d9('0x15')](_0x55d9('0x3c'))));let _0x385693=0x0;for(const _0x13ea67 of _0x42a0a4){const _0x476add=this[_0x55d9('0xde')](_0x13ea67['model'][_0x3ab625][_0x55d9('0x97')]);_0x13ea67==_0x767a4e?(_0x4aeb77=_0x476add,_0x390be2=_0x4aeb77[_0x55d9('0xa5')],_0x4aeb77[_0x55d9('0x8d')](_0x9d2c9b=>{_0x9d2c9b['id']=_0x385693++;}),this[_0x55d9('0x3d')](_0x4aeb77)):this[_0x55d9('0x99')](_0x4aeb77,_0x476add);const _0x59e7e0=_0x4aeb77[_0x55d9('0x66')](_0x1f1dd5=>!_0x1f1dd5[_0x55d9('0x98')])[_0x55d9('0x7')](_0x3e77ce=>_0x3e77ce['id']);let _0x13fac8=0x0;const _0x5474f7=this[_0x55d9('0xde')](_0x13ea67[_0x55d9('0x65')][_0x3ab625][_0x55d9('0x6f')]);_0x5474f7[_0x55d9('0x8d')](_0xd8a21=>{_0xd8a21[_0x55d9('0xcd')]?_0xd8a21['id']=_0x390be2++:_0xd8a21['id']=_0x59e7e0[_0x13fac8++];}),this['_processTape'](_0x5474f7),this['_setDistance'](_0x4aeb77,_0x55d9('0x98')),this[_0x55d9('0x5a')](_0x5474f7,'isRemoved'),_0x13ea67==_0x767a4e&&this[_0x55d9('0x5e')](_0x4aeb77,_0xadbc31),_0x4aeb77=this['_joinTapes'](_0x4aeb77,_0x5474f7),this['_refreshStartEndIndex'](_0x4aeb77),this[_0x55d9('0x5a')](_0x4aeb77,'isRemoved');}_0x4aeb77=_0x4aeb77[_0x55d9('0x66')](_0x31e973=>!(_0x31e973[_0x55d9('0x98')]&&_0x31e973[_0x55d9('0xcd')]));const _0xe71cf=new Map(_0x2b2562[_0x55d9('0x65')][_0x3ab625][_0x55d9('0x6f')]['markers']),_0x375b65=new Set(_0xadbc31[_0x55d9('0xdf')]());for(const _0x38dc2a of _0xe71cf[_0x55d9('0xdf')]())_0x375b65[_0x55d9('0x104')](_0x38dc2a);this[_0x55d9('0xef')](_0x4aeb77,_0x375b65),this['_fixObsoleteTags'](_0x4aeb77),_0x4aeb77=this[_0x55d9('0x32')](_0x4aeb77),_0x4aeb77=this[_0x55d9('0xeb')](_0x4aeb77),_0x4aeb77=this[_0x55d9('0x116')](_0x4aeb77);const {root:_0x1595e1,changes:_0x1d9b7a}=this[_0x55d9('0x10d')](_0x4aeb77,_0x2de661,_0x3ab625);_0x3aabb0[_0x55d9('0x65')][_0x3ab625]=_0x1595e1;const _0x1d3cbe=_0x5106ee[_0x55d9('0x1c')](_0x3ab625);if(_0x1d3cbe){const _0x1b20d0=_0x2de661[_0x55d9('0x1c')](_0x1d3cbe[_0x55d9('0x6c')]),_0x1c172f=new _0x568b9f({'author':_0x1b20d0,'type':_0x1d3cbe['isAttached']?_0x55d9('0xe9'):_0x55d9('0xec'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3ab625});_0x1d9b7a[_0x55d9('0xad')](_0x1c172f),_0x3aabb0[_0x55d9('0x9f')][_0x3ab625]['revisionHistoryAttachChange']=_0x1c172f['id'];}_0x3aabb0['changes']=_0x3aabb0[_0x55d9('0x115')][_0x55d9('0x112')](_0x1d9b7a);}return _0x3aabb0;}[_0x55d9('0x5e')](_0x39fcaf,_0x503af9){for(let _0x288d41=0x0;_0x288d41<_0x39fcaf[_0x55d9('0xa5')];_0x288d41++)for(const [_0x135a80,_0x2b01c6]of _0x503af9)_0x2b01c6['start']['isEqual'](_0x39fcaf[_0x288d41][_0x55d9('0x77')])&&_0x39fcaf[_0x288d41][_0x55d9('0x4d')][_0x55d9('0x24')](_0x135a80),_0x2b01c6[_0x55d9('0x39')][_0x55d9('0xf1')](_0x39fcaf[_0x288d41][_0x55d9('0x3')])&&_0x39fcaf[_0x288d41]['markersEnd']['push'](_0x135a80);}[_0x55d9('0x111')](_0x4fd87e,_0xc01bd4){let _0x50ea7c=[],_0x43f923=0x0,_0x25634b=0x0;for(;_0x43f923<_0x4fd87e[_0x55d9('0xa5')]||_0x25634b<_0xc01bd4[_0x55d9('0xa5')];){const _0x51ed8e=_0x4fd87e[_0x43f923]||{},_0x5a2336=_0xc01bd4[_0x25634b]||{};if(_0x51ed8e['id']==_0x5a2336['id'])_0x43f923++,_0x25634b++,_0x50ea7c[_0x55d9('0x24')](_0x51ed8e);else{if(_0x5a2336[_0x55d9('0xcd')]&&_0x51ed8e[_0x55d9('0x98')]){const {commonTape:_0x47d927,iEnd:_0x5dc2a2,jEnd:_0x41564b}=this[_0x55d9('0x5b')](_0x4fd87e,_0x43f923,_0xc01bd4,_0x25634b);_0x50ea7c=_0x50ea7c[_0x55d9('0x112')](_0x47d927),_0x43f923=_0x5dc2a2,_0x25634b=_0x41564b;}else _0x5a2336[_0x55d9('0xcd')]?(_0x25634b++,_0x50ea7c[_0x55d9('0x24')](_0x5a2336)):(_0x43f923++,_0x50ea7c['push'](_0x51ed8e));}}return _0x50ea7c;}['_markSuggestions'](_0x4096e1,_0x35b0ed){const _0x22651e=[];for(let _0x220d08=0x0;_0x220d08<_0x4096e1[_0x55d9('0xa5')];_0x220d08++){for(let _0x336961=0x0;_0x336961<_0x4096e1[_0x220d08][_0x55d9('0x4d')][_0x55d9('0xa5')];_0x336961++){const _0x3639c4=_0x4096e1[_0x220d08][_0x55d9('0x4d')][_0x336961];if(!_0x35b0ed[_0x55d9('0x58')](_0x3639c4))continue;const {group:_0x28f14a,type:_0x2b5fc7,authorId:_0x399061}=_0x54aadf(_0x3639c4);_0x55d9('0xd5')!=_0x28f14a||_0x55d9('0xa2')!=_0x2b5fc7&&'deletion'!=_0x2b5fc7||(_0x22651e[_0x55d9('0xad')]({'type':_0x2b5fc7,'name':_0x3639c4,'userId':_0x399061}),_0x4096e1[_0x220d08][_0x55d9('0x4d')][_0x55d9('0x96')](_0x336961,0x1),_0x336961--);}_0xcd4bba(_0x4096e1[_0x220d08]);for(let _0x3fda57=0x0;_0x3fda57<_0x4096e1[_0x220d08][_0x55d9('0x16')]['length'];_0x3fda57++){const _0x2c9eb4=_0x4096e1[_0x220d08]['markersEnd'][_0x3fda57];if(!_0x35b0ed[_0x55d9('0x58')](_0x2c9eb4))continue;const {group:_0x5dc47d,type:_0x417502}=_0x54aadf(_0x2c9eb4);if(_0x55d9('0xd5')!=_0x5dc47d||_0x55d9('0xa2')!=_0x417502&&_0x55d9('0x57')!=_0x417502)continue;_0x4096e1[_0x220d08]['markersEnd'][_0x55d9('0x96')](_0x3fda57,0x1),_0x3fda57--;const _0xb827e=_0x22651e[_0x55d9('0x108')](_0x5042fa=>_0x5042fa[_0x55d9('0xdb')]==_0x2c9eb4);_0xb827e>-0x1&&_0x22651e['splice'](_0xb827e,0x1);}}function _0x54aadf(_0x513c8c){const _0xc626cd=_0x513c8c[_0x55d9('0xfe')](':');return{'group':_0xc626cd[0x0],'type':_0xc626cd[0x1],'subType':_0xc626cd['length']>=0x5?_0xc626cd[0x2]:null,'id':_0xc626cd[_0x55d9('0xa5')]<0x5?_0xc626cd[0x2]:_0xc626cd[0x3],'authorId':_0xc626cd[_0x55d9('0xa5')]<0x5?_0xc626cd[0x3]:_0xc626cd[0x4],'markerCount':0x6==_0xc626cd['length']?_0xc626cd[0x5]:null};}function _0xcd4bba(_0x11ad4b){for(let _0x40b245=0x0;_0x40b245<_0x22651e[_0x55d9('0xa5')];_0x40b245++){if(_0x11ad4b[_0x55d9('0x98')]&&_0x55d9('0xa2')==_0x22651e[_0x40b245]['type'])return _0x11ad4b['isAddSuggestion']=_0x22651e[_0x40b245],void delete _0x11ad4b[_0x55d9('0x98')];if(!_0x11ad4b[_0x55d9('0x98')]&&!_0x11ad4b[_0x55d9('0xcd')]&&_0x55d9('0x57')==_0x22651e[_0x40b245]['type'])return void(_0x11ad4b['isRemoveSuggestion']=_0x22651e[_0x40b245]);}}}[_0x55d9('0x5a')](_0x44d850,_0x4b7333){let _0x52e862=0x0,_0x891b59=!0x1;const _0x3cc427=new Map();for(const _0x554b97 of _0x44d850)_0x554b97[_0x4b7333]?_0x891b59&&(_0x52e862++,_0x891b59=!0x1):(_0x52e862++,_0x891b59=!0x0),_0x3cc427[_0x55d9('0xbe')](_0x554b97['id'],_0x52e862);for(let _0x2e5f8c=0x0;_0x2e5f8c<_0x44d850[_0x55d9('0xa5')];_0x2e5f8c++){if(_0x55d9('0xcd')==_0x4b7333&&_0x44d850[_0x2e5f8c]['isAdded']||_0x55d9('0x98')==_0x4b7333&&_0x44d850[_0x2e5f8c][_0x55d9('0xcd')])continue;if(_0x55d9('0xba')==_0x44d850[_0x2e5f8c][_0x55d9('0x83')]){_0x44d850[_0x2e5f8c]['distance']=0x0;continue;}const _0x1f5863=_0x3cc427[_0x55d9('0x1c')](_0x44d850[_0x2e5f8c][_0x55d9('0x117')]),_0x58f681=_0x3cc427[_0x55d9('0x1c')](_0x44d850[_0x2e5f8c]['id']);_0x44d850[_0x2e5f8c][_0x55d9('0x5')]=_0x1f5863-_0x58f681;}}['_getRevisionsRange'](_0x2f327d,_0x3cc0db,_0x471849=!0x1){const _0x138908=[];let _0x330999=this['repository'][_0x55d9('0xd9')](_0x2f327d),_0x59bf62=this['repository'][_0x55d9('0xd9')](_0x3cc0db);for(-0x1==_0x59bf62&&(_0x59bf62=this[_0x55d9('0xb7')]['_revisions'][_0x55d9('0xa5')],_0x471849=!0x1);_0x330999<_0x59bf62;)_0x138908['push'](this['repository']['getRevision'](_0x330999)),_0x330999++;return _0x471849&&_0x138908[_0x55d9('0x24')](this[_0x55d9('0xb7')]['getRevision'](_0x330999)),_0x138908;}['_threeWayMerge'](_0x594b07,_0x2e8f31,_0x4e7550,_0x3bb088){const _0x58ffc2=this['editor'][_0x55d9('0x65')][_0x55d9('0x49')];let _0x3f0539=_0x2e8f31;for(;_0x594b07[_0x3f0539]&&_0x594b07[_0x3f0539]['isAdded'];)_0x3f0539++;let _0x1cab5f=_0x3bb088;for(;_0x4e7550[_0x1cab5f]&&_0x4e7550[_0x1cab5f][_0x55d9('0xcd')];)_0x1cab5f++;_0x1b0761(_0x594b07,_0x2e8f31,_0x3f0539),_0x1b0761(_0x4e7550,_0x3bb088,_0x1cab5f);const _0x375773=_0x4e7550[_0x55d9('0x61')](_0x3bb088,_0x1cab5f)[_0x55d9('0x112')](_0x594b07[_0x55d9('0x61')](_0x2e8f31,_0x3f0539));return _0x375773[_0x55d9('0x40')]((_0x24425b,_0x4d702e)=>_0x24425b[_0x55d9('0xa0')]!=_0x4d702e[_0x55d9('0xa0')]?_0x24425b['side']-_0x4d702e[_0x55d9('0xa0')]:_0x24425b[_0x55d9('0x100')]!=_0x4d702e[_0x55d9('0x100')]?_0x24425b[_0x55d9('0x100')]-_0x4d702e[_0x55d9('0x100')]:_0x24425b[_0x55d9('0x5')]!=_0x4d702e[_0x55d9('0x5')]?_0x4d702e[_0x55d9('0x5')]-_0x24425b[_0x55d9('0x5')]:!!_0x24425b[_0x55d9('0x98')]!=!!_0x4d702e[_0x55d9('0x98')]?-0x1==_0x24425b[_0x55d9('0xa0')]||0x0==_0x24425b['side']?_0x24425b['isAdded']?-0x1:0x1:_0x24425b[_0x55d9('0x98')]?0x1:-0x1:_0x24425b['index']-_0x4d702e[_0x55d9('0xf9')]),{'commonTape':_0x375773,'iEnd':_0x3f0539,'jEnd':_0x1cab5f};function _0x1b0761(_0x4283cf,_0x23d70a,_0x28e85a){let _0xb76358=-0x1,_0x2ef150=Number[_0x55d9('0x10f')],_0x41c6bd=!0x0;for(let _0x1677e0=_0x23d70a;_0x1677e0<_0x28e85a;_0x1677e0++)if(_0x58ffc2['isInline'](_0x4283cf[_0x1677e0]['item'])||(_0x41c6bd=!0x1),_0x4283cf[_0x1677e0][_0x55d9('0xea')][_0x55d9('0xa')]<_0x23d70a&&(_0xb76358=_0x1677e0),_0x4283cf[_0x1677e0][_0x55d9('0xea')][_0x55d9('0x23')]>=_0x28e85a){_0x2ef150=_0x1677e0;break;}_0x41c6bd&&(_0xb76358=_0x28e85a-0x1);for(let _0x464a49=_0x23d70a;_0x464a49<_0x28e85a;_0x464a49++)_0x4283cf[_0x464a49][_0x55d9('0xa0')]=_0x464a49<=_0xb76358?-0x1:_0x464a49<_0x2ef150?0x0:0x1,_0x4283cf[_0x464a49][_0x55d9('0xf9')]=_0x464a49;let _0x55a710=0x0;for(let _0x3fed0b=_0x23d70a;_0x3fed0b<=_0xb76358;_0x3fed0b++)0x0==_0x4283cf[_0x3fed0b]['distance']?_0x4283cf[_0x3fed0b][_0x55d9('0x100')]=_0x55a710:(_0x55a710++,_0x4283cf[_0x3fed0b]['level']=_0x55a710,_0x55a710++);for(let _0x26fb2c=_0x23d70a;_0x26fb2c<_0x28e85a;_0x26fb2c++)0x0==_0x4283cf[_0x26fb2c]['side']&&(_0x4283cf[_0x26fb2c]['level']=_0x55a710);_0x55a710=0x0;for(let _0x149a0=_0x28e85a-0x1;_0x149a0>=_0x2ef150;_0x149a0--)0x0==_0x4283cf[_0x149a0][_0x55d9('0x5')]?_0x4283cf[_0x149a0][_0x55d9('0x100')]=_0x55a710:(_0x55a710--,_0x4283cf[_0x149a0][_0x55d9('0x100')]=_0x55a710,_0x55a710--);}}[_0x55d9('0x14')](_0x4c35d9){const _0x124f2e=new Map(),_0x614c5=this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x49')];for(let _0x219b2d=0x1;_0x219b2d<_0x4c35d9[_0x55d9('0xa5')];_0x219b2d++){let _0x248301,_0x3b7ab5,_0x2438e4;const _0x26d8b2=_0x4c35d9[_0x219b2d],_0x2a5d2c=_0x4c35d9[_0x219b2d-0x1];if(_0x55d9('0xba')==_0x26d8b2[_0x55d9('0x83')])continue;if(_0x26d8b2['type']!=_0x2a5d2c['type'])continue;if(!_0x614c5[_0x55d9('0xc4')](_0x2a5d2c[_0x55d9('0xea')])||_0x614c5[_0x55d9('0xc9')](_0x2a5d2c[_0x55d9('0xea')]))continue;if(!_0x614c5['isBlock'](_0x26d8b2[_0x55d9('0xea')])||_0x614c5[_0x55d9('0xc9')](_0x26d8b2[_0x55d9('0xea')]))continue;if((_0x4c35d9[_0x219b2d]['isAdded']||_0x4c35d9[_0x219b2d][_0x55d9('0x84')])&&_0x4c35d9[_0x219b2d-0x1][_0x55d9('0xcd')])_0x248301=_0x4c35d9[_0x219b2d],_0x3b7ab5=_0x4c35d9[_0x219b2d-0x1],_0x2438e4=_0x219b2d-0x1;else{if(!_0x4c35d9[_0x219b2d]['isRemoved']||!_0x4c35d9[_0x219b2d-0x1][_0x55d9('0x98')]&&!_0x4c35d9[_0x219b2d-0x1]['isAddSuggestion'])continue;_0x248301=_0x4c35d9[_0x219b2d-0x1],_0x3b7ab5=_0x4c35d9[_0x219b2d],_0x2438e4=_0x219b2d;}const _0x1243ae=_0x248301[_0x55d9('0x100')]==_0x3b7ab5[_0x55d9('0x100')],_0x121479=Math[_0x55d9('0x8')](_0x248301[_0x55d9('0x100')])<Math[_0x55d9('0x8')](_0x3b7ab5[_0x55d9('0x100')])&&0x0==_0x3b7ab5[_0x55d9('0x5')];(_0x1243ae||_0x121479)&&(_0x124f2e[_0x55d9('0xbe')](_0x3b7ab5['id'],_0x248301['id']),_0x4c35d9['splice'](_0x2438e4,0x1),_0x219b2d--,_0x248301[_0x55d9('0x98')]=!0x1);}for(let _0x2fe30e=0x0;_0x2fe30e<_0x4c35d9[_0x55d9('0xa5')];_0x2fe30e++)_0x124f2e['has'](_0x4c35d9[_0x2fe30e][_0x55d9('0x117')])&&(_0x4c35d9[_0x2fe30e][_0x55d9('0x117')]=_0x124f2e[_0x55d9('0x1c')](_0x4c35d9[_0x2fe30e][_0x55d9('0x117')]));}[_0x55d9('0x32')](_0x528280){const _0x4471cf=new Set(_0x528280[_0x55d9('0x7')](_0x9d07c0=>_0x9d07c0['id']));for(let _0x401a49=0x0;_0x401a49<_0x528280[_0x55d9('0xa5')];_0x401a49++)_0x4471cf['has'](_0x528280[_0x401a49][_0x55d9('0x117')])||0x0==_0x528280[_0x401a49][_0x55d9('0x5')]||(_0x528280[_0x401a49][_0x55d9('0xe3')]=!0x0);return _0x528280[_0x55d9('0x66')](_0x4424ad=>!_0x4424ad['isIncorrect']);}[_0x55d9('0xeb')](_0x5967b2){const _0x5c7169=new Set();for(let _0x42ef77=0x0;_0x42ef77<_0x5967b2[_0x55d9('0xa5')];_0x42ef77++){if(_0x5c7169[_0x55d9('0x58')](_0x5967b2[_0x42ef77]['id'])&&_0x5967b2[_0x42ef77]['isRemoved']&&(_0x5967b2[_0x42ef77][_0x55d9('0xe3')]=!0x0),_0x5967b2[_0x42ef77]['isIncorrect'])continue;if(0x0==_0x5967b2[_0x42ef77][_0x55d9('0x5')])continue;if(_0x55d9('0xc8')!=_0x5967b2[_0x42ef77][_0x55d9('0x83')])continue;if(null==_0x5967b2[_0x42ef77][_0x55d9('0x117')])continue;let _0x194442=_0x42ef77+0x1,_0x465bb7=0x0;for(;_0x5967b2[_0x194442]['id']!=_0x5967b2[_0x42ef77][_0x55d9('0x117')];)_0x55d9('0xc8')==_0x5967b2[_0x194442][_0x55d9('0x83')]?_0x465bb7++:_0x55d9('0xb6')==_0x5967b2[_0x194442][_0x55d9('0x83')]&&_0x465bb7--,_0x194442++;if(0x0!=_0x465bb7){if(_0x5967b2[_0x42ef77][_0x55d9('0xcd')])_0x5967b2[_0x42ef77][_0x55d9('0xe3')]=!0x0;else for(;_0x194442!=_0x42ef77;)_0x5967b2[_0x194442][_0x55d9('0xcd')]&&0x0!=_0x5967b2[_0x194442][_0x55d9('0x5')]&&(_0x5967b2[_0x194442]['isIncorrect']=!0x0,_0x5c7169[_0x55d9('0xe9')](_0x5967b2[_0x194442][_0x55d9('0x117')])),_0x194442--;}}return _0x5967b2['filter'](_0x5e40c0=>!_0x5e40c0[_0x55d9('0xe3')]);}[_0x55d9('0x116')](_0x5df9a8){const _0x2c16a0=this[_0x55d9('0x33')][_0x55d9('0x65')]['schema'];for(let _0x1652ab=0x0;_0x1652ab<_0x5df9a8[_0x55d9('0xa5')];_0x1652ab++){if(!(_0x5df9a8[_0x1652ab][_0x55d9('0x98')]||_0x5df9a8[_0x1652ab][_0x55d9('0x84')]||_0x5df9a8[_0x1652ab][_0x55d9('0xcd')]||_0x5df9a8[_0x1652ab][_0x55d9('0xab')]))continue;if(0x0==_0x5df9a8[_0x1652ab][_0x55d9('0x5')])continue;const _0x57a227=_0x5df9a8[_0x1652ab][_0x55d9('0xea')];_0x2c16a0[_0x55d9('0xc4')](_0x57a227)||_0x2c16a0[_0x55d9('0xc9')](_0x57a227)||(_0x5df9a8[_0x1652ab][_0x55d9('0x98')]&&delete _0x5df9a8[_0x1652ab][_0x55d9('0x98')],_0x5df9a8[_0x1652ab][_0x55d9('0x84')]&&delete _0x5df9a8[_0x1652ab]['isAddSuggestion'],_0x5df9a8[_0x1652ab][_0x55d9('0xab')]&&delete _0x5df9a8[_0x1652ab][_0x55d9('0xab')],_0x5df9a8[_0x1652ab]['isRemoved']&&(_0x5df9a8[_0x1652ab][_0x55d9('0xe3')]=!0x0));}return _0x5df9a8[_0x55d9('0x66')](_0x2430f4=>!_0x2430f4['isIncorrect']);}[_0x55d9('0x10d')](_0x1f0fc6,_0x3aa2e5,_0x1e635c){const _0x2f29e7=new _0x516649(),_0x44155f=[],_0x47f653=new Map(),_0x17f018=this[_0x55d9('0x33')][_0x55d9('0x65')],_0x3c6ad0=_0x17f018[_0x55d9('0x49')],_0x5d9b63=[_0x2f29e7],_0x585fd5={},_0x285b58={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x34a6be=null;const _0x17ba83=[0x0];for(let _0x354100=0x0;_0x354100<_0x1f0fc6[_0x55d9('0xa5')];_0x354100++){let _0x4c14c3,_0x136665;if('elementStart'===_0x1f0fc6[_0x354100]['type']){_0x4c14c3=_0x17f018['createPositionFromPath'](_0x2f29e7,_0x17ba83);const _0x507e9c=new _0x3c019d(_0x1f0fc6[_0x354100][_0x55d9('0xea')]['name'],_0x1f0fc6[_0x354100]['item'][_0x55d9('0x7f')]());_0x5d9b63[0x0][_0x55d9('0xc1')](_0x507e9c),_0x17ba83[_0x55d9('0x24')](0x0),_0x5d9b63['unshift'](_0x507e9c),_0x136665=_0x17f018[_0x55d9('0x73')](_0x2f29e7,_0x17ba83),_0x34a6be=null;}else{if(_0x55d9('0xb6')===_0x1f0fc6[_0x354100][_0x55d9('0x83')])_0x5d9b63[_0x55d9('0x55')](),_0x4c14c3=_0x17f018['createPositionFromPath'](_0x2f29e7,_0x17ba83),_0x17ba83['pop'](),_0x17ba83[_0x17ba83[_0x55d9('0xa5')]-0x1]++,_0x136665=_0x17f018['createPositionFromPath'](_0x2f29e7,_0x17ba83),_0x34a6be=null;else{if(_0x4c14c3=_0x17f018[_0x55d9('0x73')](_0x2f29e7,_0x17ba83),_0x34a6be&&_0x28b0d0(_0x34a6be,_0x1f0fc6[_0x354100]['item']))_0x34a6be[_0x55d9('0x6e')]+=_0x1f0fc6[_0x354100][_0x55d9('0xea')]['data'];else{const _0x5dd7bd=new _0x36c2e4(_0x1f0fc6[_0x354100][_0x55d9('0xea')]['data'],_0x1f0fc6[_0x354100][_0x55d9('0xea')][_0x55d9('0x7f')]());_0x5d9b63[0x0][_0x55d9('0xc1')](_0x5dd7bd),_0x34a6be=_0x5dd7bd;}_0x17ba83[_0x17ba83[_0x55d9('0xa5')]-0x1]+=_0x1f0fc6[_0x354100][_0x55d9('0xea')][_0x55d9('0xb2')],_0x136665=_0x17f018[_0x55d9('0x73')](_0x2f29e7,_0x17ba83);}}for(const _0x17a084 of _0x1f0fc6[_0x354100][_0x55d9('0x4d')])_0x47f653[_0x55d9('0xbe')](_0x17a084,{'start':_0x4c14c3,'end':null});_0xd6380d(_0x55d9('0xab'),_0x354100,_0x4c14c3,_0x136665),_0xd6380d(_0x55d9('0x84'),_0x354100,_0x4c14c3,_0x136665),_0xd6380d('isRemoved',_0x354100,_0x4c14c3,_0x136665),_0xd6380d(_0x55d9('0x98'),_0x354100,_0x4c14c3,_0x136665);for(const _0x1fc3fa of _0x1f0fc6[_0x354100][_0x55d9('0x16')]){_0x47f653[_0x55d9('0x1c')](_0x1fc3fa)[_0x55d9('0x39')]=_0x136665;}}for(const [_0x1ec631,_0x5706c8]of _0x47f653){const _0x274b80=this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x54')](_0x5706c8['start'],_0x5706c8[_0x55d9('0x39')]);_0x2f29e7[_0x55d9('0xd3')]['set'](_0x1ec631,_0x274b80);}return _0x44155f[_0x55d9('0x40')]((_0x574fa9,_0x324ed9)=>{const _0x232ea2=_0x2f29e7[_0x55d9('0xd3')]['get'](_0x55d9('0x3c')+_0x574fa9['id']),_0x2d06e5=_0x2f29e7['markers'][_0x55d9('0x1c')](_0x55d9('0x3c')+_0x324ed9['id']);return _0x232ea2[_0x55d9('0x53')][_0x55d9('0x10b')](_0x2d06e5[_0x55d9('0x53')])?-0x1:_0x232ea2[_0x55d9('0x53')][_0x55d9('0xa6')](_0x2d06e5[_0x55d9('0x53')])?0x1:_0x232ea2[_0x55d9('0x39')][_0x55d9('0x10b')](_0x2d06e5[_0x55d9('0x39')])?-0x1:_0x232ea2[_0x55d9('0x39')][_0x55d9('0xa6')](_0x2d06e5['end'])?0x1:_0x55d9('0xe9')===_0x574fa9[_0x55d9('0x83')]?-0x1:0x1;}),{'root':_0x2f29e7,'changes':_0x44155f};function _0xd6380d(_0x4767bf,_0x47e6d3,_0x35d63e,_0x12332d){const _0x268e27=!!_0x1f0fc6[_0x47e6d3][_0x4767bf],_0xaa0580=_0x268e27?_0x1f0fc6[_0x47e6d3][_0x4767bf][_0x55d9('0x6c')]:null,_0x5eeaa0=_0x47e6d3===_0x1f0fc6[_0x55d9('0xa5')]-0x1,_0x54900c=_0x285b58[_0x4767bf][0x0],_0x22f5c2=_0x3c6ad0[_0x55d9('0x107')](_0x1f0fc6[_0x47e6d3][_0x55d9('0xea')]);!_0x585fd5[_0x4767bf]&&_0x268e27?_0x585fd5[_0x4767bf]={'start':_0x35d63e,'tapeItem':_0x1f0fc6[_0x47e6d3],'userId':_0xaa0580,'type':_0x4767bf}:_0x585fd5[_0x4767bf]&&!_0x268e27?(_0x585fd5[_0x4767bf][_0x55d9('0x39')]=_0x35d63e,_0xfac230(_0x585fd5[_0x4767bf]),_0x585fd5[_0x4767bf]=null):_0x585fd5[_0x4767bf]&&_0x268e27&&_0x585fd5[_0x4767bf][_0x55d9('0x6c')]!==_0xaa0580&&(_0x585fd5[_0x4767bf][_0x55d9('0x39')]=_0x35d63e,_0x54900c&&_0x54900c['userId']===_0x585fd5[_0x4767bf]['userId']||_0xfac230(_0x585fd5[_0x4767bf]),_0x585fd5[_0x4767bf]={'start':_0x35d63e,'tapeItem':_0x1f0fc6[_0x47e6d3],'userId':_0xaa0580,'type':_0x4767bf}),_0x585fd5[_0x4767bf]&&_0x22f5c2&&(_0x55d9('0xc8')!==_0x1f0fc6[_0x47e6d3][_0x55d9('0x83')]||_0x54900c&&_0x54900c[_0x55d9('0x6c')]===_0xaa0580||_0x285b58[_0x4767bf][_0x55d9('0xad')]({'userId':_0xaa0580,'object':_0x1f0fc6[_0x47e6d3][_0x55d9('0xea')],'change':_0x585fd5[_0x4767bf]}),_0x55d9('0xb6')===_0x1f0fc6[_0x47e6d3][_0x55d9('0x83')]&&_0x54900c&&_0x54900c[_0x55d9('0xc6')]===_0x1f0fc6[_0x47e6d3]['item']&&(_0x285b58[_0x4767bf]['shift'](),_0x585fd5[_0x4767bf]=_0x54900c[_0x55d9('0x2d')])),_0x585fd5[_0x4767bf]&&_0x5eeaa0&&(_0x585fd5[_0x4767bf][_0x55d9('0x39')]=_0x12332d,_0xfac230(_0x585fd5[_0x4767bf]),_0x585fd5[_0x4767bf]=null);}function _0xfac230({start:_0x143277,end:_0x1daf8a,tapeItem:_0xea4bd2,userId:_0x524892,type:_0x434590}){const _0x3b2e19=_0xea4bd2[_0x55d9('0xea')],_0xab6395=_0x17f018[_0x55d9('0x49')][_0x55d9('0xc4')](_0x3b2e19)&&!_0x17f018[_0x55d9('0x49')][_0x55d9('0xc9')](_0x3b2e19),_0xc8c683=_0x143277[_0x55d9('0x4')]==_0x1daf8a[_0x55d9('0x7c')]&&_0x1daf8a['isAtStart'];if(_0xab6395&&_0xc8c683)return;const _0x28713a=_0x17f018[_0x55d9('0x54')](_0x143277,_0x1daf8a),_0x5dc114=_0x3aa2e5[_0x55d9('0x1c')](_0x524892),_0x3d7772=new _0x568b9f({'author':_0x5dc114,'type':'isAdded'==_0x434590||'isAddSuggestion'==_0x434590?_0x55d9('0xe9'):_0x55d9('0xec'),'data':{'isSuggestion':'isAddSuggestion'==_0x434590||'isRemoveSuggestion'==_0x434590},'createdAt':new Date(),'rootName':_0x1e635c});_0x44155f[_0x55d9('0x24')](_0x3d7772),_0x2f29e7['markers'][_0x55d9('0xbe')](_0x55d9('0x3c')+_0x3d7772['id'],_0x28713a);}function _0x28b0d0(_0x1c696e,_0x3981f1){const _0x4063e1=_0x1c696e[_0x55d9('0x7f')](),_0x5a9625=_0x3981f1[_0x55d9('0x7f')]();for(const _0x499f88 of _0x4063e1){if(_0x499f88[0x1]!==_0x3981f1[_0x55d9('0x89')](_0x499f88[0x0]))return!0x1;_0x5a9625[_0x55d9('0xe4')]();}return _0x5a9625['next']()[_0x55d9('0x34')];}}[_0x55d9('0xaf')](){this[_0x55d9('0x33')][_0x55d9('0xae')]['for']('upcast')[_0x55d9('0x11b')]({'view':_0x55d9('0x1d')}),this[_0x55d9('0x33')][_0x55d9('0xae')][_0x55d9('0xf6')](_0x55d9('0xd7'))['markerToHighlight']({'model':'revision','view':_0x17af74=>{const _0x160ec3=_0x17af74[_0x55d9('0x71')][_0x55d9('0xfe')](':')[0x1],_0x53a0cb=this[_0x55d9('0xf4')](_0x160ec3);if(!_0x53a0cb)return null;const _0x40d966=_0x55d9('0xe9')==_0x53a0cb[_0x55d9('0x83')]?'insertion':_0x55d9('0x57'),_0xab011d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x40d966];return _0x53a0cb['data']['isSuggestion']&&_0xab011d['push']('ck-suggestion-marker-'+_0x40d966+'-new'),this[_0x55d9('0x20')]==_0x53a0cb&&_0xab011d['push']('ck-suggestion-marker--active'),{'classes':_0xab011d,'attributes':{'data-change-id':_0x160ec3}};}}),this[_0x55d9('0x33')][_0x55d9('0xae')][_0x55d9('0xf6')](_0x55d9('0x13'))[_0x55d9('0xe9')](_0x2ec92a=>{_0x2ec92a['on'](_0x55d9('0xf7'),(_0xb691da,_0x6734a7,_0x3334a8)=>{const _0x56c487=_0x6734a7[_0x55d9('0x92')][_0x55d9('0x10c')](0x0);if(!_0x56c487||!_0x56c487['is'](_0x55d9('0x48'),_0x55d9('0xfb')))return;if(!_0x3334a8[_0x55d9('0x26')][_0x55d9('0x9d')](_0x56c487,{'attributes':[_0x55d9('0x67'),_0x55d9('0x51')]}))return;const _0x2792dd=_0x6734a7[_0x55d9('0x5f')][_0x55d9('0x53')][_0x55d9('0x4')];_0x3334a8[_0x55d9('0xa1')]['setAttribute'](_0x55d9('0x67'),_0x56c487[_0x55d9('0x89')](_0x55d9('0x67')),_0x2792dd),_0x3334a8['writer'][_0x55d9('0x46')](_0x55d9('0x51'),_0x56c487['getAttribute']('vid_end'),_0x2792dd);},{'priority':_0x55d9('0xac')});}),this[_0x55d9('0x33')][_0x55d9('0xae')][_0x55d9('0xf6')]('upcast')['add'](_0x27c770=>{_0x27c770['on'](_0x55d9('0x48'),(_0xb55838,_0x33a00f,_0x1090e7)=>{if(!_0x1090e7[_0x55d9('0x26')][_0x55d9('0x9d')](_0x33a00f[_0x55d9('0x92')],{'attributes':[_0x55d9('0x67'),_0x55d9('0x51')]}))return;if(_0x33a00f[_0x55d9('0x5f')]['isCollapsed'])return;const _0x57cfde=_0x33a00f[_0x55d9('0x5f')][_0x55d9('0x53')][_0x55d9('0x4')];_0x57cfde[_0x55d9('0x18')](_0x55d9('0x67'))||_0x57cfde[_0x55d9('0x18')](_0x55d9('0x5c'))||(_0x1090e7[_0x55d9('0xa1')][_0x55d9('0x46')]('vid_start',_0x33a00f[_0x55d9('0x92')][_0x55d9('0x89')]('vid_start'),_0x57cfde),_0x1090e7['writer'][_0x55d9('0x46')]('vid_end',_0x33a00f[_0x55d9('0x92')][_0x55d9('0x89')](_0x55d9('0x51')),_0x57cfde));},{'priority':_0x55d9('0xac')});}),this[_0x55d9('0x33')]['conversion'][_0x55d9('0xf6')](_0x55d9('0x13'))[_0x55d9('0x87')]({'view':{'name':_0x55d9('0x74'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1c819d=>_0x1c819d[_0x55d9('0x89')](_0x55d9('0x5c'))}}),this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x49')]['on'](_0x55d9('0xf0'),(_0xe3e950,[,_0x502c4b])=>{[_0x55d9('0x67'),'vid_end',_0x55d9('0x5c')][_0x55d9('0xca')](_0x502c4b)&&(_0xe3e950['return']=!0x0,_0xe3e950['stop']());},{'priority':_0x55d9('0xb0')}),this[_0x55d9('0x33')][_0x55d9('0xae')]['for'](_0x55d9('0x21'))[_0x55d9('0xe9')](_0x221829=>{_0x221829['on'](_0x55d9('0xff'),(_0x392bc2,_0x11b71a,_0x1ee92e)=>{if('\x20'!=_0x11b71a[_0x55d9('0xea')][_0x55d9('0xdc')]||_0x11b71a[_0x55d9('0xea')][_0x55d9('0x7c')][_0x55d9('0x119')]>0x1)return;if(!_0x1ee92e[_0x55d9('0x26')][_0x55d9('0x9d')](_0x11b71a['item'],_0x392bc2[_0x55d9('0xdb')]))return;const _0x2b46c1=_0x1ee92e[_0x55d9('0xa1')],_0x3ca71b=_0x1ee92e[_0x55d9('0x69')][_0x55d9('0x6b')](_0x11b71a[_0x55d9('0x42')]);_0x2b46c1['wrap'](_0x3ca71b,_0x2b46c1[_0x55d9('0xd4')](_0x55d9('0x74')));});}),this[_0x55d9('0x33')]['conversion'][_0x55d9('0xf6')](_0x55d9('0x21'))[_0x55d9('0x10a')]({'model':_0x55d9('0x1d')}),this[_0x55d9('0x33')]['editing'][_0x55d9('0xf3')]['on'](_0x55d9('0x85'),function(_0x7e302e){const _0x3c73dc=_0x7e302e[_0x55d9('0x4a')][_0x55d9('0x1c')](_0x55d9('0x1f'));return(_0x2fd9d3,_0x2d5bfa,_0x37f98a)=>{const _0x2f4ce2=_0x2d5bfa['markerName'][_0x55d9('0xfe')](':')[0x1],_0x5cf46a=_0x3c73dc[_0x55d9('0xf4')](_0x2f4ce2);if(!_0x5cf46a)return null;const _0x571d29=_0x55d9('0xe9')==_0x5cf46a[_0x55d9('0x83')]?'split':_0x55d9('0xbb');if(!_0x37f98a[_0x55d9('0x26')][_0x55d9('0x70')](_0x2d5bfa[_0x55d9('0x27')],_0x2fd9d3[_0x55d9('0xdb')]))return;const _0x5ba377=_0x2d5bfa[_0x55d9('0x27')][_0x55d9('0x80')](),_0x45de4b=_0x2d5bfa[_0x55d9('0x27')][_0x55d9('0x53')],_0x460552=_0x7e302e[_0x55d9('0x65')][_0x55d9('0x49')];let _0x578b6a=null,_0x4f4d14=null,_0xbdaa40=!0x1,_0x107b24=!0x1;for(const _0x541cd9 of _0x5ba377){const _0x51ecb5=_0x541cd9[_0x55d9('0xea')];_0xbdaa40=_0xbdaa40||_0x460552[_0x55d9('0x4b')](_0x51ecb5);const _0x52d579=_0x37f98a[_0x55d9('0x69')][_0x55d9('0x9')](_0x51ecb5);if(_0x52d579&&_0x52d579['getCustomProperty'](_0x55d9('0x75')))return;_0x55d9('0xb6')==_0x541cd9[_0x55d9('0x83')]&&(_0x460552[_0x55d9('0xc4')](_0x51ecb5)&&!_0x460552[_0x55d9('0xc9')](_0x51ecb5)&&(_0x51ecb5[_0x55d9('0xd8')]||_0x45de4b[_0x55d9('0x50')]?_0x578b6a&&_0x578b6a['parent']==_0x51ecb5||(_0x578b6a=_0x51ecb5,_0x34dc18(_0x541cd9[_0x55d9('0x77')]),_0x107b24=!0x0):_0x4f4d14=_0x4f4d14||_0x541cd9[_0x55d9('0x77')]));}function _0x34dc18(_0x18e6f2){const _0x56db3c=_0x37f98a[_0x55d9('0xa1')][_0x55d9('0x19')](_0x55d9('0x74'),{'class':_0x55d9('0x12')+_0x571d29}),_0x564f78=_0x37f98a['mapper'][_0x55d9('0xe1')](_0x18e6f2);_0x5cf46a[_0x55d9('0xdc')][_0x55d9('0xc')]&&_0x37f98a[_0x55d9('0xa1')]['addClass'](_0x55d9('0x12')+_0x571d29+_0x55d9('0x2f'),_0x56db3c),_0x3c73dc[_0x55d9('0x20')]==_0x5cf46a&&_0x37f98a[_0x55d9('0xa1')][_0x55d9('0xb1')](_0x55d9('0xfc'),_0x56db3c),_0x37f98a['writer']['insert'](_0x564f78,_0x56db3c),_0x37f98a[_0x55d9('0x69')][_0x55d9('0x102')](_0x56db3c,_0x2d5bfa['markerName']);}_0xbdaa40||_0x107b24||!_0x4f4d14||_0x34dc18(_0x4f4d14);};}(this[_0x55d9('0x33')]),{'priority':'high'}),this['editor'][_0x55d9('0x4e')][_0x55d9('0xf3')]['on'](_0x55d9('0xb4'),(_0x59f327,_0x973e0f,_0x5ded4e)=>{const _0x28920b=_0x5ded4e['mapper']['markerNameToElements'](_0x973e0f['markerName']);if(_0x28920b)for(const _0x20d700 of _0x28920b)(_0x20d700[_0x55d9('0xe2')](_0x55d9('0xc5'))||_0x20d700[_0x55d9('0xe2')](_0x55d9('0x44')))&&(_0x5ded4e['mapper'][_0x55d9('0x91')](_0x20d700,_0x973e0f['markerName']),_0x5ded4e[_0x55d9('0xa1')][_0x55d9('0xec')](_0x20d700));},{'priority':_0x55d9('0xaa')}),this['editor'][_0x55d9('0x4e')][_0x55d9('0xf3')]['on'](_0x55d9('0x85'),(_0x4c02d4,_0x549c35,_0x3d8e61)=>{const _0x307e89=_0x549c35[_0x55d9('0x71')][_0x55d9('0xfe')](':')[0x1],_0x1a8a18=this[_0x55d9('0xf4')](_0x307e89);if(!_0x1a8a18)return null;const _0x1f6bda=_0x55d9('0xe9')==_0x1a8a18[_0x55d9('0x83')]?'split':_0x55d9('0xbb');if(_0x3d8e61[_0x55d9('0x26')]['test'](_0x549c35[_0x55d9('0x27')],_0x4c02d4[_0x55d9('0xdb')]))for(const _0x399295 of _0x549c35[_0x55d9('0x27')]['getItems']()){if(!_0x399295['is'](_0x55d9('0x48'),_0x55d9('0x7d')))continue;const _0x5f34f3=_0x3d8e61[_0x55d9('0xa1')]['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f6bda}),_0x4f0a4f=_0x3d8e61[_0x55d9('0x69')][_0x55d9('0xe1')](this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0xce')](_0x399295));_0x1a8a18[_0x55d9('0xdc')][_0x55d9('0xc')]&&_0x3d8e61[_0x55d9('0xa1')][_0x55d9('0xb1')](_0x55d9('0x12')+_0x1f6bda+'-new',_0x5f34f3),this[_0x55d9('0x20')]==_0x1a8a18&&_0x3d8e61[_0x55d9('0xa1')][_0x55d9('0xb1')](_0x55d9('0xfc'),_0x5f34f3),_0x3d8e61['writer'][_0x55d9('0xe6')](_0x4f0a4f,_0x5f34f3),_0x3d8e61[_0x55d9('0x69')][_0x55d9('0x102')](_0x5f34f3,_0x549c35[_0x55d9('0x71')]);}},{'priority':'high'}),this[_0x55d9('0x33')][_0x55d9('0x65')]['document']['on'](_0x55d9('0x2d'),()=>{this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')]['change'](_0x3abc35=>{for(const _0x2a920b of this[_0x55d9('0x33')]['model']['document'][_0x55d9('0xf2')]()){const _0x4fdb2f=this['editor'][_0x55d9('0x65')][_0x55d9('0x28')][_0x55d9('0x78')](_0x2a920b),_0x47a293=this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x28')][_0x55d9('0x78')](_0x2a920b);if(_0x47a293){const _0x2e02c9=_0x4fdb2f[_0x55d9('0x89')](_0x55d9('0x3e'));if(_0x3abc35[_0x55d9('0x6d')]('data-change-id',_0x47a293),_0x3abc35[_0x55d9('0xd2')](_0x55d9('0x93'),_0x47a293),_0x3abc35[_0x55d9('0xd2')](_0x55d9('0xa4'),_0x47a293),_0x3abc35[_0x55d9('0xd2')]('ck-revision-history-root--active',_0x47a293),_0x2e02c9){const _0x771198=this['_getChangeFromId'](_0x2e02c9);if(!_0x771198)return null;_0x3abc35[_0x55d9('0x46')](_0x55d9('0x4f'),_0x2e02c9,_0x47a293),_0x3abc35['addClass']('ck-revision-history-root-'+_0x771198[_0x55d9('0x83')],_0x47a293),this[_0x55d9('0x20')]==_0x771198&&_0x3abc35[_0x55d9('0xb1')]('ck-revision-history-root--active',_0x47a293);}}}});}),this['editor'][_0x55d9('0xae')][_0x55d9('0xf6')](_0x55d9('0x13'))['dataToMarker']({'view':'comment','model':_0x17ce1b=>_0x55d9('0xa7')+_0x17ce1b,'converterPriority':'highest'}),this['editor']['conversion'][_0x55d9('0xf6')](_0x55d9('0x13'))[_0x55d9('0x11b')]({'view':'suggestion','model':_0x24f03b=>_0x55d9('0x105')+_0x24f03b,'converterPriority':'highest'}),this[_0x55d9('0x33')][_0x55d9('0xae')][_0x55d9('0xf6')](_0x55d9('0x21'))[_0x55d9('0x10a')]({'model':_0x55d9('0xd5'),'view':_0x6f86cb=>({'name':_0x55d9('0xd')+_0x6f86cb,'group':_0x55d9('0xd5')}),'converterPriority':_0x55d9('0xb0')}),this[_0x55d9('0x33')][_0x55d9('0xae')][_0x55d9('0xf6')](_0x55d9('0xd7'))[_0x55d9('0x109')]({'model':_0x55d9('0xd5'),'view':_0x5b6bed=>{const _0x494b7c=_0x5b6bed[_0x55d9('0x71')][_0x55d9('0xfe')](':')[0x1];return _0x55d9('0xa2')!=_0x494b7c&&_0x55d9('0x57')!=_0x494b7c?null:{'classes':[_0x55d9('0x17'),_0x55d9('0xee')+_0x494b7c]};}}),this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0xf3')]['on'](_0x55d9('0x22'),et(this[_0x55d9('0x33')],_0x55d9('0xbb')),{'priority':_0x55d9('0xaa')}),this['editor'][_0x55d9('0x4e')][_0x55d9('0xf3')]['on'](_0x55d9('0x45'),et(this[_0x55d9('0x33')],_0x55d9('0xfe')),{'priority':'high'}),this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0xf3')]['on'](_0x55d9('0x1'),(_0x18f563,_0x1268c3,_0x83b308)=>{const _0x321cbb=_0x83b308[_0x55d9('0x69')]['markerNameToElements'](_0x1268c3[_0x55d9('0x71')]);if(_0x321cbb)for(const _0x37a988 of _0x321cbb)_0x37a988['is'](_0x55d9('0x79'))&&(_0x83b308[_0x55d9('0x69')][_0x55d9('0x91')](_0x37a988,_0x1268c3[_0x55d9('0x71')]),_0x83b308[_0x55d9('0xa1')][_0x55d9('0xec')](_0x37a988));},{'priority':_0x55d9('0xaa')});}[_0x55d9('0xf4')](_0x2642e0){return this[_0x55d9('0x64')]['get'](_0x2642e0);}[_0x55d9('0x2c')](_0x17cbb8){return this['_changeView']&&this[_0x55d9('0x10e')]['destroy'](),this[_0x55d9('0x10e')]=new _0x38408b(this[_0x55d9('0x33')][_0x55d9('0x72')],_0x17cbb8),this[_0x55d9('0x10e')];}[_0x55d9('0xcc')](){this[_0x55d9('0x33')]['model'][_0x55d9('0x28')][_0x55d9('0x3a')]['observeMarkers'](_0x55d9('0x1d')),this['on'](_0x55d9('0x113'),(_0x4842d4,_0x385a57,_0x423910,_0x231148)=>{_0x231148&&this['_balloon'][_0x55d9('0xec')](_0x231148),_0x423910&&(this[_0x55d9('0xdd')][_0x55d9('0xe9')]({'view':_0x423910,'stackId':_0x55d9('0x7b'),'position':{'target':()=>{const _0x56c298=this['editor'][_0x55d9('0x4e')],_0x157513=this[_0x55d9('0xf4')](_0x423910[_0x55d9('0x90')]);let _0x5b3ad1;if(_0x157513[_0x55d9('0xdc')][_0x55d9('0xb3')]){const _0x343de0=_0x56c298['view']['getDomRoot'](_0x157513[_0x55d9('0x7a')]);_0x5b3ad1=Array['from'](_0x343de0['getClientRects']());}else{const _0x18064a=this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0xd3')][_0x55d9('0x1c')](_0x55d9('0x3c')+_0x423910[_0x55d9('0x90')]);_0x5b3ad1=Array[_0x55d9('0xd0')](_0x56c298['mapper'][_0x55d9('0xc2')](_0x18064a[_0x55d9('0xdb')]))[_0x55d9('0x7')](_0x108309=>_0x56c298[_0x55d9('0x2b')][_0x55d9('0xb5')]['mapViewToDom'](_0x108309))[_0x55d9('0x7')](_0x40d6b7=>Array[_0x55d9('0xd0')](_0x40d6b7[_0x55d9('0x8e')]()))['flat']();}if(!this['_activeViewTarget'])return _0x5b3ad1[0x0];return _0x5b3ad1['find'](_0x3f4ccf=>_0x3f4ccf[_0x55d9('0x3f')]-0x3<=this[_0x55d9('0x8b')]['y']&&_0x3f4ccf['bottom']+0x3>=this[_0x55d9('0x8b')]['y']&&_0x3f4ccf['left']-0x3<=this[_0x55d9('0x8b')]['x']&&_0x3f4ccf[_0x55d9('0x11')]+0x3>=this[_0x55d9('0x8b')]['x'])||_0x5b3ad1[0x0];}}}),this[_0x55d9('0xdd')][_0x55d9('0x2a')](_0x55d9('0x7b')));}),this['on'](_0x55d9('0xe8'),(_0x3c7c35,_0x4e8917,_0x5a2822,_0x356f70)=>{this[_0x55d9('0xfd')]=_0x5a2822?this['_getViewForChange'](_0x5a2822):null,this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x2d')](()=>{const _0x3eb4bd=this[_0x55d9('0x33')][_0x55d9('0x4e')];_0x356f70&&(_0x356f70[_0x55d9('0xdc')][_0x55d9('0xb3')]?_0x3eb4bd[_0x55d9('0x2b')][_0x55d9('0x2d')](_0x516042=>{_0x516042[_0x55d9('0xd2')](_0x55d9('0x31'),_0x3eb4bd[_0x55d9('0x2b')]['document']['getRoot'](_0x356f70[_0x55d9('0x7a')]));}):_0x3eb4bd['reconvertMarker']('revision:'+_0x356f70['id'])),_0x5a2822&&(_0x5a2822[_0x55d9('0xdc')]['isOnRoot']?_0x3eb4bd['view'][_0x55d9('0x2d')](_0x11375a=>{_0x11375a[_0x55d9('0xb1')](_0x55d9('0x31'),_0x3eb4bd[_0x55d9('0x2b')]['document']['getRoot'](_0x5a2822[_0x55d9('0x7a')]));}):_0x3eb4bd['reconvertMarker'](_0x55d9('0x3c')+_0x5a2822['id']));});}),this[_0x55d9('0x118')](this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x28')],_0x55d9('0x9e'),(_0x2710c8,_0x308404)=>{if(this[_0x55d9('0x20')])return;const _0x53a0bd=this[_0x55d9('0x82')](_0x308404[_0x55d9('0x35')]),_0x62b7c3=this[_0x55d9('0x64')][_0x55d9('0x1c')](_0x53a0bd);_0x62b7c3?(this[_0x55d9('0x8b')]={'x':_0x308404[_0x55d9('0xf')]['x'],'y':_0x308404[_0x55d9('0xf')]['y']},this['activeView']=this[_0x55d9('0x2c')](_0x62b7c3)):(this[_0x55d9('0x8b')]=null,this[_0x55d9('0xfd')]=null);}),this[_0x55d9('0x118')](this[_0x55d9('0x33')][_0x55d9('0x4e')]['view']['document'],_0x55d9('0x47'),(_0x430308,_0x1f7cd4)=>{const _0x4ebbfd=this[_0x55d9('0x82')](_0x1f7cd4[_0x55d9('0x35')]),_0x1f59f5=this[_0x55d9('0x64')]['get'](_0x4ebbfd);_0x1f59f5?(this[_0x55d9('0x8b')]={'x':_0x1f7cd4['domEvent']['x'],'y':_0x1f7cd4[_0x55d9('0xf')]['y']},_0x1f59f5===this['activeChange']?this[_0x55d9('0xdd')]['updatePosition']():this[_0x55d9('0x20')]=_0x1f59f5):(this['_activeViewTarget']=null,this[_0x55d9('0x20')]=null);});}[_0x55d9('0x82')](_0x48cb23){do{const _0x5d2f2d=_0x48cb23['getAttribute'](_0x55d9('0x4f'));if(_0x5d2f2d)return _0x5d2f2d;_0x48cb23=_0x48cb23[_0x55d9('0x7c')];}while(_0x48cb23);return null;}['_cleanMarkers'](){this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x2d')](_0x3c3d06=>{for(const _0xc94501 of this['editor'][_0x55d9('0x65')][_0x55d9('0xd3')])_0x3c3d06['removeMarker'](_0xc94501);});}}function et(_0x15992d,_0x121786){return(_0x5f144e,_0x5938dd,_0x3229e3)=>{if(!_0x3229e3[_0x55d9('0x26')]['test'](_0x5938dd[_0x55d9('0x27')],_0x5f144e[_0x55d9('0xdb')]))return;const _0x11b802=_0x5938dd[_0x55d9('0x27')][_0x55d9('0x80')](),_0x56eeac=_0x5938dd['markerRange']['start'],_0x2f5e35=_0x15992d[_0x55d9('0x65')]['schema'];let _0x59b27b=null,_0x2052ee=null,_0xc4afec=!0x1,_0x1cac0d=!0x1;for(const _0x8b78f1 of _0x11b802){const _0x15721d=_0x8b78f1[_0x55d9('0xea')];_0xc4afec=_0xc4afec||_0x2f5e35['isContent'](_0x15721d);const _0x538a56=_0x3229e3[_0x55d9('0x69')][_0x55d9('0x9')](_0x15721d);if(_0x538a56&&_0x538a56['getCustomProperty']('addHighlight'))return;_0x55d9('0xb6')==_0x8b78f1[_0x55d9('0x83')]&&(_0x2f5e35[_0x55d9('0xc4')](_0x15721d)&&!_0x2f5e35['isLimit'](_0x15721d)&&(_0x15721d[_0x55d9('0xd8')]||_0x56eeac[_0x55d9('0x50')]?_0x59b27b&&_0x59b27b[_0x55d9('0x7c')]==_0x15721d||(_0x59b27b=_0x15721d,_0x5b6f05(_0x8b78f1[_0x55d9('0x77')]),_0x1cac0d=!0x0):_0x2052ee=_0x2052ee||_0x8b78f1[_0x55d9('0x77')]));}function _0x5b6f05(_0x1d2d19){const _0x2938ef=_0x3229e3[_0x55d9('0x69')][_0x55d9('0xe1')](_0x1d2d19),_0x183240=_0x3229e3[_0x55d9('0xa1')][_0x55d9('0x19')](_0x55d9('0x74'),{'class':_0x55d9('0xee')+_0x121786});_0x3229e3[_0x55d9('0xa1')][_0x55d9('0xe6')](_0x2938ef,_0x183240),_0x3229e3[_0x55d9('0x69')][_0x55d9('0x102')](_0x183240,_0x5938dd[_0x55d9('0x71')]);}_0xc4afec||_0x1cac0d||!_0x2052ee||_0x5b6f05(_0x2052ee);};}export class RestoreRevisionCommand extends _0x306e87{constructor(_0x51e011){super(_0x51e011);const _0x3af002=_0x51e011[_0x55d9('0x4a')][_0x55d9('0x1c')](d);this[_0x55d9('0x10')]=!0x1,this[_0x55d9('0x118')](_0x3af002,_0x55d9('0x62'),()=>this[_0x55d9('0xd6')]()),this['listenTo'](_0x3af002,'change:isEnabled',()=>this[_0x55d9('0xd6')]());}[_0x55d9('0x8a')](){const _0xeef91a=this[_0x55d9('0x33')],_0x308d86=_0xeef91a[_0x55d9('0x4a')][_0x55d9('0x1c')](d),_0x37963d=_0x308d86[_0x55d9('0x41')]?_0x308d86[_0x55d9('0xa8')][_0x55d9('0x110')]:null;_0xeef91a[_0x55d9('0x29')][_0x55d9('0x1c')](_0x55d9('0x9b'))[_0x55d9('0x86')](_0x37963d);}[_0x55d9('0xd6')](){const {isReady:_0x4cd9c9,isEnabled:_0xbfa8b7}=this[_0x55d9('0x33')][_0x55d9('0x4a')][_0x55d9('0x1c')](d);this[_0x55d9('0x56')]=_0x4cd9c9&&_0xbfa8b7;}}export class ShowChangeCommand extends _0x306e87{constructor(_0x1709ea,{direction:_0x1a1638}){super(_0x1709ea);const _0x3c6b2f=_0x1709ea[_0x55d9('0x4a')][_0x55d9('0x1c')](d);this[_0x55d9('0x10')]=!0x1,this[_0x55d9('0x114')]='forward'===_0x1a1638?0x1:-0x1,this[_0x55d9('0x118')](_0x3c6b2f,'change:isReady',()=>this['refresh']()),this[_0x55d9('0x118')](_0x3c6b2f,'change:isEnabled',()=>this[_0x55d9('0xd6')]()),this[_0x55d9('0x118')](_0x3c6b2f,_0x55d9('0xe8'),()=>this[_0x55d9('0xd6')]());}[_0x55d9('0x8a')](){const _0x1a54ce=this[_0x55d9('0x33')],_0x321c1d=_0x1a54ce[_0x55d9('0x4a')][_0x55d9('0x1c')](d),{isNavigationMode:_0x9a1b7c,currentChangeNumber:_0x506b6b}=_0x321c1d;let _0x1123c0;if(_0x321c1d['activeChange']=_0x9a1b7c?_0x321c1d[_0x55d9('0xa8')]['changes']['get'](_0x506b6b+this[_0x55d9('0x114')]):_0x321c1d[_0x55d9('0xa8')][_0x55d9('0x115')][_0x55d9('0xe')],_0x321c1d[_0x55d9('0x20')]['data'][_0x55d9('0xb3')])_0x1123c0=_0x1a54ce[_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0xb8')](_0x321c1d['activeChange']['rootName']);else{const _0x1e90f5=_0x1a54ce['model']['markers']['get'](_0x55d9('0x3c')+_0x321c1d[_0x55d9('0x20')]['id']);_0x1123c0=_0x4edb92(_0x1a54ce[_0x55d9('0x4e')],_0x1e90f5);}_0x2eaf4a({'target':_0x1123c0,'viewportOffset':0x28});}[_0x55d9('0xd6')](){const {isNavigationMode:_0x29a411,currentChangeNumber:_0x2575b0,numberOfChanges:_0x2bd271,isReady:_0x1d9bba,isEnabled:_0x325169}=this[_0x55d9('0x33')][_0x55d9('0x4a')][_0x55d9('0x1c')](d);this[_0x55d9('0x56')]=!!(_0x325169&&_0x1d9bba&&_0x2bd271)&&(!_0x29a411||(0x1===this['_step']?_0x2575b0<_0x2bd271-0x1:_0x2575b0>0x0));}}
23
+ const _0x397e=['modelRange','_cleanMarkers','ck-revision-history-root-','bindElementToMarker','indexOf','ck-editor__editable__overlay','split','_revisions','revision','isInline','_balloon','sort','isAfter','toViewPosition','affectsData','flat','getChild','_threeWayMerge','from','mouseover','isSuggestion','elementStart','ck-suggestion-preview-marker','ck-revision-history-root-add','createRevision','_processTape','newRevisionId','toViewRange','index','currentChangeNumber','catch','_activeViewTarget','revision-start','forward','abs','resolve','start','markersStart','isAddSuggestion','nextPosition','concat','suggestion:','text','element:pre','consume','isBlock','data','isOnRoot','commands','showNextChange','revisionHistoryLabel','insertion','_markSuggestions','maxOffset','elementEnd','_cleanUp','markersEnd','schema','useFillerType','_changeView','revision-suggestion:','isAttached','-new','editing','isRemoveSuggestion','attributesAfter','delete','error','shift','compare','numberOfChanges','map','attribute:vid','getRoot','listenTo','ck-suggestion-preview-marker-','restoreRevision','_sortAndFilterDiffChanges','for','deletions','isCollapsed','item','done','writer','left','_getViewObj','activeView','previousPosition','enableReadOnlyMode','startsWith','createRangeIn','bind','addMarker:revision-suggestion:insertion','filter','isLimit','toModel','domEvent','test','isEqual','_update','hasClass','_initInteractions','children','element','ck-revision-history-root-remove','upcast','insert','isNavigationMode','revision-end','first','high','clear','ck-revision-history-root--active','markerToHighlight','side','has','ck-suggestion-marker-','_setChanges','diff','right','addMarker:revision-suggestion:deletion','addRevisionData','plugins','_appendChild','refresh','detachRoot','data-revision-','processor','distance','_makeModelFromTape','viewItem','changeId','hasAttribute','RevisionViewer','unbindElementFromMarkerName','isAdded','_removeRevisionMarkers','document','change:isReady','keys','POSITIVE_INFINITY','view','addHighlight','insertions','attributes','addClass','_joinTapes','_step','mapper','parent','code','target','isIncorrect','revision-comment:','domConverter','execute','pop','nodeAfter','return','offsetSize','getWalker','removeClass','model','consumable','diffData','_makeModelFromViewString','change:activeChange','getDomRoot','length','next','startIndex','_markInsertions','activeChange','vid_end','markerName','add','getRootNames','_changeIdToChange','pairId','vid','find','restoreRevisionCallback','_fixObsoleteTags','getClientRects','type','enqueueChange','addRoot','isRemoved','nextSibling','merge','adapter','highest','low','downcastDispatcher','change:isEnabled','config','findIndex','get','setAttribute','set','showStack','end','parse','getIndex','userId','forceDisabled','all','getItems','markerNameToElements','ck-suggestion-marker-merge','isEnabled','markerRange','revisionHistory','softBreak','attachChange','data-change-id','uiElement','push','vid_start','WidgetToolbarRepository','bottom','init','change','forEach','_removeMissingPairs','rootName','deletion','addMarker:revision','reconvertMarker','changes','level','slice','_setDistance','getRevision','_getDiff','toViewElement','string','revision-viewer','mousedown','change:activeView','endIndex','locale','revision-suggestion','ck-suggestion-marker--active','editingDowncast','span','remove','stop','createPositionFromPath','getAttributes','top','oldRevisionId','markers','_getViewForChange','createUIElement','_markMarkers','authors','wrap','createAttributeElement','destroy','unshift','splice','getAttribute','_getChangeFromId','collaboration.channelId','revisionHistoryAttachChange','editor','_markMismatchedRemovedTags','name','isReady','revision:','then','change:numberOfChanges','_setConversion','showPreviousChange','dataDowncast','isAtStart','isAtEnd','getRevisionRootsAttributes','markerToData','dataToMarker','repository','conversion','roots','toData','_removeUnsupportedChanges','_makeTape','ck-suggestion-marker-split','getCustomProperty','_findChangeIdFromDomTarget','comment','includes','loadRevisionData'];(function(_0x4cd812,_0x397ef7){const _0x5f56eb=function(_0x2d4061){while(--_0x2d4061){_0x4cd812['push'](_0x4cd812['shift']());}};_0x5f56eb(++_0x397ef7);}(_0x397e,0x1a7));const _0x5f56=function(_0x4cd812,_0x397ef7){_0x4cd812=_0x4cd812-0x0;let _0x5f56eb=_0x397e[_0x4cd812];return _0x5f56eb;};import{Plugin as _0x5e3775,Command as _0x14259b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x455a82}from'ckeditor5/src/utils';import{ContextualBalloon as _0x38ab13}from'ckeditor5/src/ui';import{DocumentFragment as _0x2dd089,Element as _0x33325d,Text as _0x3840ba,ViewDocumentFragment as _0x2d9ce0,ViewText as _0x1cd1ec,ViewElement as _0x119151,ViewContainerElement as _0xcd952c,ViewAttributeElement as _0x5e4e34,ViewEmptyElement as _0x165648,ViewRawElement as _0x39344b,ViewUIElement as _0x310436}from'ckeditor5/src/engine';import{Users as _0x26dad2,getMarkerDomElement as _0x43e17b}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a00c8 from'./ui/revisionviewer/changedetailsview';import _0x2f3486 from'./revisionsrepository';import _0x3348ea from'./changeitem';import{default as _0xe16e1c}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x413fed}from'lodash-es';const tt={'c':_0xcd952c,'a':_0x5e4e34,'e':_0x165648,'r':_0x39344b,'u':_0x310436};export default class d extends _0x5e3775{static get['pluginName'](){return _0x5f56('0x3');}static get['requires'](){return[_0x26dad2,_0x38ab13,_0x2f3486];}constructor(_0x12e070){super(_0x12e070),this[_0x5f56('0x97')]=this[_0x5f56('0x88')]['plugins'][_0x5f56('0x43')]('RevisionsRepository'),this[_0x5f56('0x45')](_0x5f56('0x2a'),null),this[_0x5f56('0x45')](_0x5f56('0xf9'),null),this[_0x5f56('0xc2')]=null,this[_0x5f56('0x45')]('diff',null),this[_0x5f56('0x45')](_0x5f56('0x8b'),!0x1),this[_0x5f56('0x45')](_0x5f56('0x50'),!0x0),this['on'](_0x5f56('0x40'),(_0x411913,_0x568d6d,_0xc5831c)=>{this[_0x5f56('0x2a')]=null,this['activeView']=null,this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0xb')]['change'](_0x551320=>{for(const _0x278ccf of this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x7')][_0x5f56('0x99')])_0xc5831c?_0x551320[_0x5f56('0x1f')]('ck-editor__editable__overlay',_0x278ccf):_0x551320[_0x5f56('0xf')](_0x5f56('0xa8'),_0x278ccf);});}),this['bind'](_0x5f56('0x10e'))['to'](this,'activeChange',_0x2bf6b4=>null!==_0x2bf6b4),this['bind'](_0x5f56('0xc0'))['to'](this,_0x5f56('0x8b'),this,_0x5f56('0x119'),this,_0x5f56('0x2a'),(_0x1e6bfb,_0x2b863d,_0xf6614b)=>_0x1e6bfb&&_0xf6614b?_0x2b863d[_0x5f56('0x63')][_0x5f56('0x49')](_0xf6614b):0x0),this[_0x5f56('0xfe')](_0x5f56('0xe9'))['to'](this,_0x5f56('0x8b'),this,_0x5f56('0x119'),(_0x56de28,_0x3d8417)=>_0x56de28?_0x3d8417[_0x5f56('0x63')][_0x5f56('0x26')]:0x0),this[_0x5f56('0xde')]=null,this[_0x5f56('0x2f')]=new Map(),this[_0x5f56('0x3c')]=null,this['_balloon']=this['editor'][_0x5f56('0x11d')][_0x5f56('0x43')](_0x38ab13);}[_0x5f56('0x5b')](){const _0x4f67bd=this[_0x5f56('0x88')],_0x1cf2f5=new ShowChangeCommand(_0x4f67bd,{'direction':'backward'}),_0x590451=new ShowChangeCommand(_0x4f67bd,{'direction':_0x5f56('0xc4')});(_0x4f67bd['commands']['add'](_0x5f56('0x90'),_0x1cf2f5),_0x4f67bd['commands'][_0x5f56('0x2d')](_0x5f56('0xd4'),_0x590451),_0x4f67bd[_0x5f56('0xd3')][_0x5f56('0x2d')](_0x5f56('0xef'),new RestoreRevisionCommand(_0x4f67bd)),this['on'](_0x5f56('0x8e'),()=>{_0x1cf2f5[_0x5f56('0x11f')](),_0x590451[_0x5f56('0x11f')]();}),this[_0x5f56('0x8f')](),this['_initInteractions'](),_0x4f67bd[_0x5f56('0xfb')](_0x5f56('0x6b')),_0x4f67bd['plugins'][_0x5f56('0x116')](_0x5f56('0x59')))&&_0x4f67bd[_0x5f56('0x11d')]['get'](_0x5f56('0x59'))[_0x5f56('0x4b')]('revision-viewer');}async['getRevisionData'](_0x2d4e8d){await this[_0x5f56('0xa2')](_0x2d4e8d);const _0xe5cb4a={};for(const _0x3b6736 in _0x2d4e8d[_0x5f56('0x22')]){if(_0x2d4e8d['diffData'][_0x3b6736][_0x5f56('0x54')]&&!_0x2d4e8d[_0x5f56('0x22')][_0x3b6736][_0x5f56('0x54')][_0x5f56('0xe0')])continue;const _0x1f564c=this[_0x5f56('0x6')](JSON[_0x5f56('0x48')](_0x2d4e8d[_0x5f56('0x22')][_0x3b6736][_0x5f56('0xd')])),_0x4fb574=this[_0x5f56('0x88')]['editing'][_0x5f56('0xb')][_0x5f56('0x7')],_0x1f623d=new _0x2d9ce0(_0x4fb574,_0x1f564c[_0x5f56('0xea')](_0x4b3f43=>this[_0x5f56('0xf8')](_0x4b3f43)));this[_0x5f56('0x88')][_0x5f56('0xd1')]['processor']['useFillerType']('marked'),_0xe5cb4a[_0x3b6736]=this['editor']['data']['processor'][_0x5f56('0x9a')](_0x1f623d),this['editor'][_0x5f56('0xd1')][_0x5f56('0x122')][_0x5f56('0xdd')]('default');}return _0xe5cb4a;}async[_0x5f56('0x94')](_0x55ae0b){await this[_0x5f56('0xa2')](_0x55ae0b);const _0x818fcd={};for(const _0x249362 in _0x55ae0b[_0x5f56('0x22')])_0x55ae0b[_0x5f56('0x22')][_0x249362]['attachChange']&&!_0x55ae0b[_0x5f56('0x22')][_0x249362][_0x5f56('0x54')][_0x5f56('0xe0')]||(_0x818fcd[_0x249362]=_0x55ae0b[_0x5f56('0x22')][_0x249362][_0x5f56('0xe4')]||{});return _0x818fcd;}['_removeRevisionMarkers'](_0x311eb4){return(_0x311eb4=_0x311eb4[_0x5f56('0x100')](_0x132424=>!_0x132424[_0x5f56('0x8a')]||_0x5f56('0xc3')!==_0x132424['name']&&_0x5f56('0x10f')!==_0x132424[_0x5f56('0x8a')]))[_0x5f56('0x5d')](_0x1e4b18=>{_0x5f56('0x6a')!=typeof _0x1e4b18&&(_0x1e4b18[_0x5f56('0x109')]=this[_0x5f56('0x6')](_0x1e4b18[_0x5f56('0x109')]),_0x1e4b18[_0x5f56('0xe')]=_0x1e4b18['attributes']['filter'](_0x27e114=>!_0x27e114[0x0][_0x5f56('0xfc')](_0x5f56('0x121'))));}),_0x311eb4;}async[_0x5f56('0xe8')](_0x42ba2b,_0xc14e58,_0xa701cb=!0x1){if(!this[_0x5f56('0x50')])return;const _0x51d66d=this['diff'],_0x55e3d5=this[_0x5f56('0x97')],_0x1d3e73=_0x5f56('0x6a')==typeof _0x42ba2b?_0x55e3d5[_0x5f56('0x67')](_0x42ba2b):_0x42ba2b,_0x154f52=_0x5f56('0x6a')==typeof _0xc14e58?_0x55e3d5[_0x5f56('0x67')](_0xc14e58):_0xc14e58,_0x2f6907=_0x1d3e73['id'],_0x1b75db=_0x154f52?_0x154f52['id']:null;if(!_0xa701cb&&this[_0x5f56('0x119')]&&this[_0x5f56('0x119')][_0x5f56('0xbd')]===_0x2f6907&&this[_0x5f56('0x119')][_0x5f56('0x79')]===_0x1b75db)return Promise[_0x5f56('0xc6')]();this['isReady']=!0x1,this['activeView']=null,this[_0x5f56('0x2a')]=null,this[_0x5f56('0x119')]=new _0xe16e1c(_0x2f6907,_0x1b75db);const _0x18214e=this['_getRevisionsRange'](_0x1d3e73,_0x154f52,!0x0)['map'](_0xfc2021=>this['loadRevisionData'](_0xfc2021));return _0x18214e[_0x5f56('0x57')](new Promise(_0x21045b=>{setTimeout(_0x21045b,0x14);})),Promise[_0x5f56('0x4c')](_0x18214e)[_0x5f56('0x8d')](()=>{if(!this[_0x5f56('0x50')])return;this[_0x5f56('0xda')]();const _0x1781e0=this[_0x5f56('0x68')](_0x2f6907,_0x1b75db);for(const _0x1b075a of _0x1781e0[_0x5f56('0x63')])this[_0x5f56('0x2f')][_0x5f56('0x45')](_0x1b075a['id'],_0x1b075a);this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x37')]({'isUndoable':!0x1},_0x135660=>{for(const _0x30a672 of this['editor'][_0x5f56('0x20')][_0x5f56('0x7')][_0x5f56('0x2e')]())_0x135660[_0x5f56('0x120')](_0x30a672);for(const _0x278696 of Object['keys'](_0x1781e0[_0x5f56('0x20')])){const _0x4e1d90=_0x135660[_0x5f56('0x38')](_0x278696);for(const _0x2f59f0 of Object[_0x5f56('0x9')](_0x1781e0[_0x5f56('0xe')][_0x278696]))_0x135660[_0x5f56('0x44')](_0x2f59f0,_0x1781e0['attributes'][_0x278696][_0x2f59f0],_0x4e1d90);_0x135660[_0x5f56('0x10d')](_0x1781e0['model'][_0x278696],_0x4e1d90,0x0);}}),this[_0x5f56('0x119')][_0x5f56('0x118')](this[_0x5f56('0xf0')](_0x1781e0[_0x5f56('0x63')])),this['isReady']=!0x0;})[_0x5f56('0xc1')](_0x3ae99a=>{console[_0x5f56('0xe6')](_0x3ae99a),this[_0x5f56('0xda')](),_0x51d66d&&(this[_0x5f56('0x119')]=_0x51d66d),this[_0x5f56('0x8b')]=!0x0;});}[_0x5f56('0x11c')](_0x21c268,_0x1a406a){const _0x587e72=this[_0x5f56('0x97')][_0x5f56('0xbb')](_0x21c268);return _0x587e72['on']('_update',(_0x2c262c,_0x5c92e6,_0x6ea07b)=>_0x1a406a(_0x5c92e6,_0x6ea07b,_0x587e72)),this[_0x5f56('0x97')]['addRevision'](_0x587e72),_0x587e72;}[_0x5f56('0xa2')](_0x515e58){if(!_0x515e58||_0x515e58[_0x5f56('0x22')])return Promise['resolve']();{const _0x4660b8=this['editor'][_0x5f56('0x41')][_0x5f56('0x43')](_0x5f56('0x86'));return this[_0x5f56('0x3c')][_0x5f56('0x67')]({'channelId':_0x4660b8,'revisionId':_0x515e58['id']})[_0x5f56('0x8d')](_0x4cc305=>{_0x515e58[_0x5f56('0x106')]({'diffData':_0x4cc305['diffData']},!0x0);});}}[_0x5f56('0xda')](){this['activeChange']=null,this[_0x5f56('0xa4')](),this[_0x5f56('0xde')]&&this[_0x5f56('0xde')][_0x5f56('0x81')](),this[_0x5f56('0xde')]=null,this[_0x5f56('0x2f')][_0x5f56('0x112')](),this[_0x5f56('0x88')][_0x5f56('0x20')]['enqueueChange']({'isUndoable':!0x1},_0x3113e0=>{for(const _0x585d3b of this['editor'][_0x5f56('0x20')][_0x5f56('0x7')][_0x5f56('0x2e')]())_0x3113e0[_0x5f56('0x120')](_0x585d3b);});}[_0x5f56('0xf0')](_0x3d94d0){const _0x27c440=[],_0x528ed6=new Map();for(const _0x3d865c of this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x7')][_0x5f56('0x2e')]()){const _0x4d6b21=this[_0x5f56('0x88')]['editing'][_0x5f56('0xb')][_0x5f56('0x25')](_0x3d865c);if(!_0x4d6b21)continue;const _0x417cd6=_0x4d6b21[_0x5f56('0x35')]()[_0x5f56('0xf4')](0x0);_0x417cd6&&(_0x27c440['push'](_0x3d865c),_0x528ed6[_0x5f56('0x45')](_0x3d865c,_0x417cd6));}return _0x27c440[_0x5f56('0xae')]((_0x214df9,_0x5b5f5b)=>{const _0x2398c6=_0x528ed6[_0x5f56('0x43')](_0x214df9),_0x1e2dcd=_0x528ed6[_0x5f56('0x43')](_0x5b5f5b);return _0x2398c6['y']-_0x1e2dcd['y']||_0x2398c6['x']-_0x1e2dcd['x'];}),(_0x3d94d0=_0x3d94d0['filter'](_0x49d375=>_0x27c440[_0x5f56('0xa1')](_0x49d375[_0x5f56('0x5f')])))[_0x5f56('0xae')]((_0x464726,_0x215854)=>_0x27c440[_0x5f56('0xa7')](_0x464726[_0x5f56('0x5f')])-_0x27c440[_0x5f56('0xa7')](_0x215854['rootName'])),_0x3d94d0;}[_0x5f56('0x9c')](_0x494b25){const _0x2d51e3=Array[_0x5f56('0xb5')](_0x494b25['markers'])[_0x5f56('0x100')](([_0x3e80fc,_0x5b0493])=>_0x3e80fc['startsWith']('revision:')&&!_0x5b0493[_0x5f56('0xf3')]),_0x3d414e=Array[_0x5f56('0xb5')](this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xfd')](_0x494b25)[_0x5f56('0x1e')]({'singleCharacters':!0x0}));if(0x0!=_0x2d51e3[_0x5f56('0x26')])for(const _0xd9c778 of _0x3d414e){const [_0x5b67d0,_0xaf8667]=_0x2d51e3[0x0],[,_0x24787f,_0x544d3d]=_0x5b67d0[_0x5f56('0xa9')](':');if(_0xaf8667[_0x5f56('0x47')][_0x5f56('0x105')](_0xd9c778[_0x5f56('0xca')])&&_0x2d51e3[_0x5f56('0xe7')](),(_0xd9c778['previousPosition'][_0x5f56('0x105')](_0xaf8667['start'])||_0xd9c778['previousPosition'][_0x5f56('0xaf')](_0xaf8667[_0x5f56('0xc7')]))&&(_0x5f56('0xd6')==_0x24787f?_0xd9c778[_0x5f56('0x5')]={'userId':_0x544d3d}:'deletion'==_0x24787f&&(_0xd9c778[_0x5f56('0x39')]={'userId':_0x544d3d})),0x0==_0x2d51e3[_0x5f56('0x26')])break;}return _0x3d414e;}['_refreshStartEndIndex'](_0x264815){const _0x2c2813=new Map();for(let _0x4bf6f1=0x0;_0x4bf6f1<_0x264815['length'];_0x4bf6f1++)_0x5f56('0xcd')===_0x264815[_0x4bf6f1][_0x5f56('0x36')]?(_0x264815[_0x4bf6f1][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x4bf6f1,_0x264815[_0x4bf6f1]['item']['endIndex']=_0x4bf6f1):('elementStart'===_0x264815[_0x4bf6f1][_0x5f56('0x36')]?_0x264815[_0x4bf6f1][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x4bf6f1:_0x5f56('0xd9')===_0x264815[_0x4bf6f1][_0x5f56('0x36')]&&(_0x264815[_0x4bf6f1][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x4bf6f1),_0x2c2813['set'](_0x264815[_0x4bf6f1]['id'],_0x4bf6f1));for(const _0x2b90da of _0x2c2813['values']())_0x5f56('0xb8')===_0x264815[_0x2b90da][_0x5f56('0x36')]?_0x264815[_0x2b90da][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x2c2813[_0x5f56('0x43')](_0x264815[_0x2b90da][_0x5f56('0x30')]):_0x5f56('0xd9')===_0x264815[_0x2b90da]['type']&&(_0x264815[_0x2b90da][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x2c2813[_0x5f56('0x43')](_0x264815[_0x2b90da][_0x5f56('0x30')]));}[_0x5f56('0xbc')](_0x15e190){for(let _0x11ba2b=0x0;_0x11ba2b<_0x15e190[_0x5f56('0x26')];_0x11ba2b++){if(_0x5f56('0xb8')===_0x15e190[_0x11ba2b][_0x5f56('0x36')])_0x15e190[_0x11ba2b]['item']['startIndex']=_0x11ba2b;else{if('elementEnd'===_0x15e190[_0x11ba2b]['type']){_0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x11ba2b;const _0x2cd40f=_0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x28')];_0x15e190[_0x2cd40f][_0x5f56('0x30')]=_0x15e190[_0x11ba2b]['id'],_0x15e190[_0x11ba2b][_0x5f56('0x30')]=_0x15e190[_0x2cd40f]['id'];}else _0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x11ba2b,_0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x11ba2b,_0x15e190[_0x11ba2b]['pairId']=null;}_0x15e190[_0x11ba2b][_0x5f56('0xc8')]||(_0x15e190[_0x11ba2b][_0x5f56('0xc8')]=[],_0x15e190[_0x11ba2b][_0x5f56('0xdb')]=[]);}}['_markInsertions'](_0x3627f5,_0x1abfc1){const _0x1ca9fe=_0x3627f5['filter'](_0x28334f=>!_0x28334f[_0x5f56('0x5')]);for(let _0x46c672=0x0;_0x46c672<_0x1abfc1[_0x5f56('0x26')];_0x46c672++)_0x1abfc1[_0x46c672][_0x5f56('0x5')]&&(_0x1ca9fe[_0x46c672]['isAdded']=_0x1abfc1[_0x46c672][_0x5f56('0x5')]);}[_0x5f56('0x23')](_0x53eba8){const _0x3fffbc=JSON['parse'](_0x53eba8),_0x205990=this['editor'][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x7')],_0x13d417=new _0x2d9ce0(_0x205990,_0x3fffbc[_0x5f56('0xea')](_0x47caf4=>this[_0x5f56('0xf8')](_0x47caf4)));return this['editor'][_0x5f56('0xd1')][_0x5f56('0x102')](_0x13d417);}['_getViewObj'](_0x4f2eec){const _0x5e1fb9=this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x7')];if(_0x5f56('0x6a')==typeof _0x4f2eec)return new _0x1cd1ec(_0x5e1fb9,_0x4f2eec);{const _0x5a48e0=_0x4f2eec[_0x5f56('0x109')][_0x5f56('0xea')](_0x63df2a=>this['_getViewObj'](_0x63df2a));return new(tt[_0x4f2eec['type']]||_0x119151)(_0x5e1fb9,_0x4f2eec[_0x5f56('0x8a')],_0x4f2eec['attributes'],_0x5a48e0);}}[_0x5f56('0x68')](_0x185a38,_0xb0de78=null){const _0xf24dd3=this[_0x5f56('0x97')][_0x5f56('0x67')](_0x185a38),_0x1caed6=_0xb0de78?this[_0x5f56('0x97')][_0x5f56('0x67')](_0xb0de78):null,_0x182b89=this['_getRevisionsRange'](_0xf24dd3,_0x1caed6),_0xff95fd=_0x182b89[_0x182b89['length']-0x1],_0xdb4a7f=new Map(),_0x1c006e={'model':{},'attributes':{},'changes':[]},_0x2b2be3=new Set(),_0x8d000d=new Map();for(let _0x1bf6ca=_0x182b89[_0x5f56('0x26')]-0x1;_0x1bf6ca>=0x0;_0x1bf6ca--){const _0x5c9750=_0x182b89[_0x1bf6ca];for(const _0x275c48 of Object['keys'](_0x5c9750['diffData']))if(_0x5c9750[_0x5f56('0x22')][_0x275c48][_0x5f56('0x54')]){const _0x360a8e=_0x5c9750[_0x5f56('0x22')][_0x275c48][_0x5f56('0x54')];_0x360a8e[_0x5f56('0xe0')]?(_0x2b2be3[_0x5f56('0x2d')](_0x275c48),_0x8d000d[_0x5f56('0x116')](_0x275c48)&&_0x8d000d['get'](_0x275c48)[_0x5f56('0x4a')]==_0x360a8e[_0x5f56('0x4a')]?_0x8d000d[_0x5f56('0xe5')](_0x275c48):_0x8d000d[_0x5f56('0x45')](_0x275c48,_0x360a8e)):_0x8d000d[_0x5f56('0x116')](_0x275c48)?(_0x2b2be3[_0x5f56('0xe5')](_0x275c48),_0x8d000d[_0x5f56('0xe5')](_0x275c48)):(_0x2b2be3[_0x5f56('0x2d')](_0x275c48),_0x8d000d['set'](_0x275c48,_0x360a8e));}else _0x2b2be3[_0x5f56('0x2d')](_0x275c48);}for(const _0x33838b of _0x2b2be3){const _0x344a61=_0x8d000d['has'](_0x33838b)&&!_0x8d000d[_0x5f56('0x43')](_0x33838b)[_0x5f56('0xe0')];let _0x3a6481=_0x344a61?_0x182b89[_0x5f56('0x26')]-0x1:0x0;const _0x2a675e=_0x344a61?-0x1:0x1;for(;_0x182b89[_0x3a6481];){const _0x119095=_0x182b89[_0x3a6481];if(_0x119095[_0x5f56('0x22')][_0x33838b]){const _0x101b56=_0x344a61?_0x119095[_0x5f56('0x22')][_0x33838b]['attributesBefore']:_0x119095[_0x5f56('0x22')][_0x33838b][_0x5f56('0xe4')];_0x1c006e[_0x5f56('0xe')][_0x33838b]=_0x101b56?_0x413fed(_0x101b56):{};break;}_0x3a6481+=_0x2a675e;}}for(const _0x51f5c8 of _0x182b89){_0x51f5c8[_0x5f56('0x20')]={};for(const _0x4603f5 of _0x51f5c8[_0x5f56('0x7e')])_0xdb4a7f['set'](_0x4603f5['id'],_0x4603f5);for(const _0xf81b81 of _0x2b2be3){const _0x488707=_0x51f5c8[_0x5f56('0x22')][_0xf81b81]?_0x51f5c8['diffData'][_0xf81b81][_0x5f56('0xd')]:'[]',_0x20cfd0=_0x51f5c8[_0x5f56('0x22')][_0xf81b81]?_0x51f5c8['diffData'][_0xf81b81][_0x5f56('0xf2')]:'[]';_0x51f5c8[_0x5f56('0x20')][_0xf81b81]={'insertions':this[_0x5f56('0x23')](_0x488707),'deletions':this['_makeModelFromViewString'](_0x20cfd0)};}}for(const _0xe1d8e5 of _0x2b2be3){let _0x2672a0=null,_0x59860c=0x0;const _0x40901a=new Map(Array['from'](_0xf24dd3[_0x5f56('0x20')][_0xe1d8e5][_0x5f56('0xd')][_0x5f56('0x7a')])[_0x5f56('0x100')](([_0x1fa14c])=>!_0x1fa14c[_0x5f56('0xfc')]('revision:')));let _0x52befe=0x0;for(const _0x2779cd of _0x182b89){const _0x36cc72=this[_0x5f56('0x9c')](_0x2779cd[_0x5f56('0x20')][_0xe1d8e5][_0x5f56('0xd')]);_0x2779cd==_0xf24dd3?(_0x2672a0=_0x36cc72,_0x59860c=_0x2672a0[_0x5f56('0x26')],_0x2672a0['forEach'](_0x1fe845=>{_0x1fe845['id']=_0x52befe++;}),this[_0x5f56('0xbc')](_0x2672a0)):this[_0x5f56('0x29')](_0x2672a0,_0x36cc72);const _0x93a445=_0x2672a0['filter'](_0x194ea2=>!_0x194ea2[_0x5f56('0x5')])[_0x5f56('0xea')](_0x45dcf1=>_0x45dcf1['id']);let _0x2796d7=0x0;const _0x1afec3=this['_makeTape'](_0x2779cd['model'][_0xe1d8e5][_0x5f56('0xf2')]);_0x1afec3[_0x5f56('0x5d')](_0x4aea69=>{_0x4aea69[_0x5f56('0x39')]?_0x4aea69['id']=_0x59860c++:_0x4aea69['id']=_0x93a445[_0x2796d7++];}),this['_processTape'](_0x1afec3),this[_0x5f56('0x66')](_0x2672a0,'isAdded'),this['_setDistance'](_0x1afec3,_0x5f56('0x39')),_0x2779cd==_0xf24dd3&&this[_0x5f56('0x7d')](_0x2672a0,_0x40901a),_0x2672a0=this[_0x5f56('0x10')](_0x2672a0,_0x1afec3),this['_refreshStartEndIndex'](_0x2672a0),this[_0x5f56('0x66')](_0x2672a0,_0x5f56('0x39'));}_0x2672a0=_0x2672a0[_0x5f56('0x100')](_0x283bf5=>!(_0x283bf5['isAdded']&&_0x283bf5['isRemoved']));const _0x2d0497=new Map(_0xff95fd[_0x5f56('0x20')][_0xe1d8e5][_0x5f56('0xf2')][_0x5f56('0x7a')]),_0x40ebec=new Set(_0x40901a[_0x5f56('0x9')]());for(const _0x287a2f of _0x2d0497['keys']())_0x40ebec['delete'](_0x287a2f);this['_markSuggestions'](_0x2672a0,_0x40ebec),this[_0x5f56('0x34')](_0x2672a0),_0x2672a0=this[_0x5f56('0x5e')](_0x2672a0),_0x2672a0=this[_0x5f56('0x89')](_0x2672a0),_0x2672a0=this['_removeUnsupportedChanges'](_0x2672a0);const {root:_0x21ff87,changes:_0x4216ac}=this[_0x5f56('0x124')](_0x2672a0,_0xdb4a7f,_0xe1d8e5);_0x1c006e[_0x5f56('0x20')][_0xe1d8e5]=_0x21ff87;const _0x198a03=_0x8d000d[_0x5f56('0x43')](_0xe1d8e5);if(_0x198a03){const _0x554b52=_0xdb4a7f[_0x5f56('0x43')](_0x198a03[_0x5f56('0x4a')]),_0x56e6e6=new _0x3348ea({'author':_0x554b52,'type':_0x198a03[_0x5f56('0xe0')]?_0x5f56('0x2d'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xe1d8e5});_0x4216ac['unshift'](_0x56e6e6),_0x1c006e[_0x5f56('0xe')][_0xe1d8e5][_0x5f56('0x87')]=_0x56e6e6['id'];}_0x1c006e['changes']=_0x1c006e[_0x5f56('0x63')][_0x5f56('0xcb')](_0x4216ac);}return _0x1c006e;}['_markMarkers'](_0x4008ef,_0x544561){for(let _0x10f08b=0x0;_0x10f08b<_0x4008ef[_0x5f56('0x26')];_0x10f08b++)for(const [_0x3931d2,_0x4081fd]of _0x544561)_0x4081fd[_0x5f56('0xc7')][_0x5f56('0x105')](_0x4008ef[_0x10f08b]['previousPosition'])&&_0x4008ef[_0x10f08b][_0x5f56('0xc8')]['push'](_0x3931d2),_0x4081fd[_0x5f56('0x47')][_0x5f56('0x105')](_0x4008ef[_0x10f08b][_0x5f56('0xca')])&&_0x4008ef[_0x10f08b]['markersEnd']['push'](_0x3931d2);}[_0x5f56('0x10')](_0x18ca1d,_0xb8845){let _0x45711b=[],_0x3d2910=0x0,_0x31de2b=0x0;for(;_0x3d2910<_0x18ca1d[_0x5f56('0x26')]||_0x31de2b<_0xb8845[_0x5f56('0x26')];){const _0x24cb74=_0x18ca1d[_0x3d2910]||{},_0x56c954=_0xb8845[_0x31de2b]||{};if(_0x24cb74['id']==_0x56c954['id'])_0x3d2910++,_0x31de2b++,_0x45711b[_0x5f56('0x57')](_0x24cb74);else{if(_0x56c954[_0x5f56('0x39')]&&_0x24cb74[_0x5f56('0x5')]){const {commonTape:_0x12d1b4,iEnd:_0xa6aa1d,jEnd:_0x3b67f7}=this[_0x5f56('0xb4')](_0x18ca1d,_0x3d2910,_0xb8845,_0x31de2b);_0x45711b=_0x45711b[_0x5f56('0xcb')](_0x12d1b4),_0x3d2910=_0xa6aa1d,_0x31de2b=_0x3b67f7;}else _0x56c954[_0x5f56('0x39')]?(_0x31de2b++,_0x45711b['push'](_0x56c954)):(_0x3d2910++,_0x45711b['push'](_0x24cb74));}}return _0x45711b;}[_0x5f56('0xd7')](_0x2cac46,_0x4156d9){const _0x5e7ad9=[];for(let _0x361a66=0x0;_0x361a66<_0x2cac46['length'];_0x361a66++){for(let _0x4aa114=0x0;_0x4aa114<_0x2cac46[_0x361a66][_0x5f56('0xc8')]['length'];_0x4aa114++){const _0x124906=_0x2cac46[_0x361a66][_0x5f56('0xc8')][_0x4aa114];if(!_0x4156d9['has'](_0x124906))continue;const {group:_0x162906,type:_0x2a36c2,authorId:_0x1bc4f7}=_0x40fd91(_0x124906);_0x5f56('0x70')!=_0x162906||_0x5f56('0xd6')!=_0x2a36c2&&_0x5f56('0x60')!=_0x2a36c2||(_0x5e7ad9['unshift']({'type':_0x2a36c2,'name':_0x124906,'userId':_0x1bc4f7}),_0x2cac46[_0x361a66]['markersStart'][_0x5f56('0x83')](_0x4aa114,0x1),_0x4aa114--);}_0xc73d31(_0x2cac46[_0x361a66]);for(let _0x2aa8c7=0x0;_0x2aa8c7<_0x2cac46[_0x361a66][_0x5f56('0xdb')][_0x5f56('0x26')];_0x2aa8c7++){const _0x497a8d=_0x2cac46[_0x361a66][_0x5f56('0xdb')][_0x2aa8c7];if(!_0x4156d9[_0x5f56('0x116')](_0x497a8d))continue;const {group:_0x22dd6e,type:_0x1e283c}=_0x40fd91(_0x497a8d);if(_0x5f56('0x70')!=_0x22dd6e||'insertion'!=_0x1e283c&&_0x5f56('0x60')!=_0x1e283c)continue;_0x2cac46[_0x361a66]['markersEnd'][_0x5f56('0x83')](_0x2aa8c7,0x1),_0x2aa8c7--;const _0x47ccfa=_0x5e7ad9[_0x5f56('0x42')](_0x7f3261=>_0x7f3261[_0x5f56('0x8a')]==_0x497a8d);_0x47ccfa>-0x1&&_0x5e7ad9['splice'](_0x47ccfa,0x1);}}function _0x40fd91(_0x5558c8){const _0x41d17f=_0x5558c8[_0x5f56('0xa9')](':');return{'group':_0x41d17f[0x0],'type':_0x41d17f[0x1],'subType':_0x41d17f[_0x5f56('0x26')]>=0x5?_0x41d17f[0x2]:null,'id':_0x41d17f['length']<0x5?_0x41d17f[0x2]:_0x41d17f[0x3],'authorId':_0x41d17f[_0x5f56('0x26')]<0x5?_0x41d17f[0x3]:_0x41d17f[0x4],'markerCount':0x6==_0x41d17f[_0x5f56('0x26')]?_0x41d17f[0x5]:null};}function _0xc73d31(_0x279453){for(let _0x4bb4bf=0x0;_0x4bb4bf<_0x5e7ad9[_0x5f56('0x26')];_0x4bb4bf++){if(_0x279453[_0x5f56('0x5')]&&_0x5f56('0xd6')==_0x5e7ad9[_0x4bb4bf]['type'])return _0x279453['isAddSuggestion']=_0x5e7ad9[_0x4bb4bf],void delete _0x279453[_0x5f56('0x5')];if(!_0x279453[_0x5f56('0x5')]&&!_0x279453['isRemoved']&&'deletion'==_0x5e7ad9[_0x4bb4bf][_0x5f56('0x36')])return void(_0x279453[_0x5f56('0xe3')]=_0x5e7ad9[_0x4bb4bf]);}}}[_0x5f56('0x66')](_0x189168,_0x5ab3f5){let _0x3ab354=0x0,_0x35d142=!0x1;const _0x61411f=new Map();for(const _0x156c5d of _0x189168)_0x156c5d[_0x5ab3f5]?_0x35d142&&(_0x3ab354++,_0x35d142=!0x1):(_0x3ab354++,_0x35d142=!0x0),_0x61411f['set'](_0x156c5d['id'],_0x3ab354);for(let _0x193cc5=0x0;_0x193cc5<_0x189168[_0x5f56('0x26')];_0x193cc5++){if(_0x5f56('0x39')==_0x5ab3f5&&_0x189168[_0x193cc5]['isAdded']||_0x5f56('0x5')==_0x5ab3f5&&_0x189168[_0x193cc5][_0x5f56('0x39')])continue;if(_0x5f56('0xcd')==_0x189168[_0x193cc5]['type']){_0x189168[_0x193cc5]['distance']=0x0;continue;}const _0x5910d1=_0x61411f[_0x5f56('0x43')](_0x189168[_0x193cc5]['pairId']),_0xc90977=_0x61411f[_0x5f56('0x43')](_0x189168[_0x193cc5]['id']);_0x189168[_0x193cc5]['distance']=_0x5910d1-_0xc90977;}}['_getRevisionsRange'](_0x1b84e8,_0x7aff19,_0x64d96c=!0x1){const _0x40260d=[];let _0x3c1b50=this[_0x5f56('0x97')]['getIndex'](_0x1b84e8),_0x23f45d=this[_0x5f56('0x97')][_0x5f56('0x49')](_0x7aff19);for(-0x1==_0x23f45d&&(_0x23f45d=this[_0x5f56('0x97')][_0x5f56('0xaa')]['length'],_0x64d96c=!0x1);_0x3c1b50<_0x23f45d;)_0x40260d[_0x5f56('0x57')](this[_0x5f56('0x97')][_0x5f56('0x67')](_0x3c1b50)),_0x3c1b50++;return _0x64d96c&&_0x40260d[_0x5f56('0x57')](this['repository'][_0x5f56('0x67')](_0x3c1b50)),_0x40260d;}['_threeWayMerge'](_0x54fcba,_0x1b7757,_0x55757c,_0x262a2a){const _0x1d6595=this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')];let _0x4b7ca8=_0x1b7757;for(;_0x54fcba[_0x4b7ca8]&&_0x54fcba[_0x4b7ca8][_0x5f56('0x5')];)_0x4b7ca8++;let _0x260f2c=_0x262a2a;for(;_0x55757c[_0x260f2c]&&_0x55757c[_0x260f2c][_0x5f56('0x39')];)_0x260f2c++;_0x42e74f(_0x54fcba,_0x1b7757,_0x4b7ca8),_0x42e74f(_0x55757c,_0x262a2a,_0x260f2c);const _0x41746e=_0x55757c[_0x5f56('0x65')](_0x262a2a,_0x260f2c)['concat'](_0x54fcba[_0x5f56('0x65')](_0x1b7757,_0x4b7ca8));return _0x41746e[_0x5f56('0xae')]((_0x30927f,_0x4a9fab)=>_0x30927f['side']!=_0x4a9fab['side']?_0x30927f[_0x5f56('0x115')]-_0x4a9fab[_0x5f56('0x115')]:_0x30927f[_0x5f56('0x64')]!=_0x4a9fab[_0x5f56('0x64')]?_0x30927f[_0x5f56('0x64')]-_0x4a9fab['level']:_0x30927f[_0x5f56('0x123')]!=_0x4a9fab['distance']?_0x4a9fab[_0x5f56('0x123')]-_0x30927f[_0x5f56('0x123')]:!!_0x30927f['isAdded']!=!!_0x4a9fab[_0x5f56('0x5')]?-0x1==_0x30927f[_0x5f56('0x115')]||0x0==_0x30927f[_0x5f56('0x115')]?_0x30927f['isAdded']?-0x1:0x1:_0x30927f[_0x5f56('0x5')]?0x1:-0x1:_0x30927f[_0x5f56('0xbf')]-_0x4a9fab[_0x5f56('0xbf')]),{'commonTape':_0x41746e,'iEnd':_0x4b7ca8,'jEnd':_0x260f2c};function _0x42e74f(_0x5999fc,_0x42315f,_0x1477b5){let _0x232f05=-0x1,_0x2f1c78=Number[_0x5f56('0xa')],_0x349950=!0x0;for(let _0x33f89c=_0x42315f;_0x33f89c<_0x1477b5;_0x33f89c++)if(_0x1d6595[_0x5f56('0xac')](_0x5999fc[_0x33f89c]['item'])||(_0x349950=!0x1),_0x5999fc[_0x33f89c][_0x5f56('0xf4')]['startIndex']<_0x42315f&&(_0x232f05=_0x33f89c),_0x5999fc[_0x33f89c][_0x5f56('0xf4')][_0x5f56('0x6e')]>=_0x1477b5){_0x2f1c78=_0x33f89c;break;}_0x349950&&(_0x232f05=_0x1477b5-0x1);for(let _0x3904c9=_0x42315f;_0x3904c9<_0x1477b5;_0x3904c9++)_0x5999fc[_0x3904c9][_0x5f56('0x115')]=_0x3904c9<=_0x232f05?-0x1:_0x3904c9<_0x2f1c78?0x0:0x1,_0x5999fc[_0x3904c9][_0x5f56('0xbf')]=_0x3904c9;let _0x2d7fe1=0x0;for(let _0x12691d=_0x42315f;_0x12691d<=_0x232f05;_0x12691d++)0x0==_0x5999fc[_0x12691d]['distance']?_0x5999fc[_0x12691d][_0x5f56('0x64')]=_0x2d7fe1:(_0x2d7fe1++,_0x5999fc[_0x12691d]['level']=_0x2d7fe1,_0x2d7fe1++);for(let _0x2a2bc7=_0x42315f;_0x2a2bc7<_0x1477b5;_0x2a2bc7++)0x0==_0x5999fc[_0x2a2bc7][_0x5f56('0x115')]&&(_0x5999fc[_0x2a2bc7][_0x5f56('0x64')]=_0x2d7fe1);_0x2d7fe1=0x0;for(let _0x53455b=_0x1477b5-0x1;_0x53455b>=_0x2f1c78;_0x53455b--)0x0==_0x5999fc[_0x53455b][_0x5f56('0x123')]?_0x5999fc[_0x53455b][_0x5f56('0x64')]=_0x2d7fe1:(_0x2d7fe1--,_0x5999fc[_0x53455b]['level']=_0x2d7fe1,_0x2d7fe1--);}}[_0x5f56('0x34')](_0x27ca97){const _0x40f118=new Map(),_0xbb9fbe=this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')];for(let _0x159051=0x1;_0x159051<_0x27ca97[_0x5f56('0x26')];_0x159051++){let _0xf13c5d,_0x217de6,_0x2ba13b;const _0x277ce2=_0x27ca97[_0x159051],_0x41106c=_0x27ca97[_0x159051-0x1];if(_0x5f56('0xcd')==_0x277ce2[_0x5f56('0x36')])continue;if(_0x277ce2['type']!=_0x41106c['type'])continue;if(!_0xbb9fbe[_0x5f56('0xd0')](_0x41106c[_0x5f56('0xf4')])||_0xbb9fbe[_0x5f56('0x101')](_0x41106c[_0x5f56('0xf4')]))continue;if(!_0xbb9fbe[_0x5f56('0xd0')](_0x277ce2['item'])||_0xbb9fbe[_0x5f56('0x101')](_0x277ce2[_0x5f56('0xf4')]))continue;if((_0x27ca97[_0x159051][_0x5f56('0x5')]||_0x27ca97[_0x159051][_0x5f56('0xc9')])&&_0x27ca97[_0x159051-0x1][_0x5f56('0x39')])_0xf13c5d=_0x27ca97[_0x159051],_0x217de6=_0x27ca97[_0x159051-0x1],_0x2ba13b=_0x159051-0x1;else{if(!_0x27ca97[_0x159051]['isRemoved']||!_0x27ca97[_0x159051-0x1][_0x5f56('0x5')]&&!_0x27ca97[_0x159051-0x1][_0x5f56('0xc9')])continue;_0xf13c5d=_0x27ca97[_0x159051-0x1],_0x217de6=_0x27ca97[_0x159051],_0x2ba13b=_0x159051;}const _0x50202f=_0xf13c5d[_0x5f56('0x64')]==_0x217de6[_0x5f56('0x64')],_0x3c36f3=Math['abs'](_0xf13c5d[_0x5f56('0x64')])<Math[_0x5f56('0xc5')](_0x217de6[_0x5f56('0x64')])&&0x0==_0x217de6[_0x5f56('0x123')];(_0x50202f||_0x3c36f3)&&(_0x40f118['set'](_0x217de6['id'],_0xf13c5d['id']),_0x27ca97[_0x5f56('0x83')](_0x2ba13b,0x1),_0x159051--,_0xf13c5d[_0x5f56('0x5')]=!0x1);}for(let _0xbc2061=0x0;_0xbc2061<_0x27ca97[_0x5f56('0x26')];_0xbc2061++)_0x40f118[_0x5f56('0x116')](_0x27ca97[_0xbc2061][_0x5f56('0x30')])&&(_0x27ca97[_0xbc2061][_0x5f56('0x30')]=_0x40f118[_0x5f56('0x43')](_0x27ca97[_0xbc2061][_0x5f56('0x30')]));}[_0x5f56('0x5e')](_0x3dc124){const _0x1e4602=new Set(_0x3dc124['map'](_0x270ec8=>_0x270ec8['id']));for(let _0x26d7a3=0x0;_0x26d7a3<_0x3dc124[_0x5f56('0x26')];_0x26d7a3++)_0x1e4602[_0x5f56('0x116')](_0x3dc124[_0x26d7a3][_0x5f56('0x30')])||0x0==_0x3dc124[_0x26d7a3][_0x5f56('0x123')]||(_0x3dc124[_0x26d7a3][_0x5f56('0x16')]=!0x0);return _0x3dc124['filter'](_0x15c8b9=>!_0x15c8b9[_0x5f56('0x16')]);}[_0x5f56('0x89')](_0x41eaf3){const _0x39da05=new Set();for(let _0x59e923=0x0;_0x59e923<_0x41eaf3[_0x5f56('0x26')];_0x59e923++){if(_0x39da05[_0x5f56('0x116')](_0x41eaf3[_0x59e923]['id'])&&_0x41eaf3[_0x59e923][_0x5f56('0x39')]&&(_0x41eaf3[_0x59e923][_0x5f56('0x16')]=!0x0),_0x41eaf3[_0x59e923]['isIncorrect'])continue;if(0x0==_0x41eaf3[_0x59e923][_0x5f56('0x123')])continue;if('elementStart'!=_0x41eaf3[_0x59e923][_0x5f56('0x36')])continue;if(null==_0x41eaf3[_0x59e923][_0x5f56('0x30')])continue;let _0x2ee31a=_0x59e923+0x1,_0x3047cc=0x0;for(;_0x41eaf3[_0x2ee31a]['id']!=_0x41eaf3[_0x59e923][_0x5f56('0x30')];)'elementStart'==_0x41eaf3[_0x2ee31a][_0x5f56('0x36')]?_0x3047cc++:_0x5f56('0xd9')==_0x41eaf3[_0x2ee31a]['type']&&_0x3047cc--,_0x2ee31a++;if(0x0!=_0x3047cc){if(_0x41eaf3[_0x59e923][_0x5f56('0x39')])_0x41eaf3[_0x59e923][_0x5f56('0x16')]=!0x0;else for(;_0x2ee31a!=_0x59e923;)_0x41eaf3[_0x2ee31a][_0x5f56('0x39')]&&0x0!=_0x41eaf3[_0x2ee31a][_0x5f56('0x123')]&&(_0x41eaf3[_0x2ee31a][_0x5f56('0x16')]=!0x0,_0x39da05[_0x5f56('0x2d')](_0x41eaf3[_0x2ee31a][_0x5f56('0x30')])),_0x2ee31a--;}}return _0x41eaf3[_0x5f56('0x100')](_0x3d1fa0=>!_0x3d1fa0[_0x5f56('0x16')]);}[_0x5f56('0x9b')](_0x25f1ef){const _0x495972=this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')];for(let _0x320304=0x0;_0x320304<_0x25f1ef['length'];_0x320304++){if(!(_0x25f1ef[_0x320304][_0x5f56('0x5')]||_0x25f1ef[_0x320304][_0x5f56('0xc9')]||_0x25f1ef[_0x320304][_0x5f56('0x39')]||_0x25f1ef[_0x320304][_0x5f56('0xe3')]))continue;if(0x0==_0x25f1ef[_0x320304]['distance'])continue;const _0x2a13eb=_0x25f1ef[_0x320304]['item'];_0x495972[_0x5f56('0xd0')](_0x2a13eb)||_0x495972[_0x5f56('0x101')](_0x2a13eb)||(_0x25f1ef[_0x320304][_0x5f56('0x5')]&&delete _0x25f1ef[_0x320304]['isAdded'],_0x25f1ef[_0x320304]['isAddSuggestion']&&delete _0x25f1ef[_0x320304][_0x5f56('0xc9')],_0x25f1ef[_0x320304]['isRemoveSuggestion']&&delete _0x25f1ef[_0x320304][_0x5f56('0xe3')],_0x25f1ef[_0x320304][_0x5f56('0x39')]&&(_0x25f1ef[_0x320304][_0x5f56('0x16')]=!0x0));}return _0x25f1ef['filter'](_0x3951c6=>!_0x3951c6['isIncorrect']);}['_makeModelFromTape'](_0x4389ea,_0x3c0901,_0x3108e3){const _0x10163a=new _0x2dd089(),_0x56c193=[],_0x3aca30=new Map(),_0x5afb84=this[_0x5f56('0x88')][_0x5f56('0x20')],_0x1af381=_0x5afb84[_0x5f56('0xdc')],_0xa82261=[_0x10163a],_0x4589d3={},_0x5f2e81={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x921040=null;const _0x45336c=[0x0];for(let _0x5a601c=0x0;_0x5a601c<_0x4389ea['length'];_0x5a601c++){let _0x21fe4c,_0x2a687f;if(_0x5f56('0xb8')===_0x4389ea[_0x5a601c][_0x5f56('0x36')]){_0x21fe4c=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c);const _0x14c427=new _0x33325d(_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0x8a')],_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0x77')]());_0xa82261[0x0][_0x5f56('0x11e')](_0x14c427),_0x45336c['push'](0x0),_0xa82261['unshift'](_0x14c427),_0x2a687f=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x921040=null;}else{if(_0x5f56('0xd9')===_0x4389ea[_0x5a601c][_0x5f56('0x36')])_0xa82261[_0x5f56('0xe7')](),_0x21fe4c=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x45336c[_0x5f56('0x1a')](),_0x45336c[_0x45336c[_0x5f56('0x26')]-0x1]++,_0x2a687f=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x921040=null;else{if(_0x21fe4c=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x921040&&_0x171a31(_0x921040,_0x4389ea[_0x5a601c]['item']))_0x921040['_data']+=_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0xd1')];else{const _0x415d96=new _0x3840ba(_0x4389ea[_0x5a601c][_0x5f56('0xf4')]['data'],_0x4389ea[_0x5a601c]['item']['getAttributes']());_0xa82261[0x0][_0x5f56('0x11e')](_0x415d96),_0x921040=_0x415d96;}_0x45336c[_0x45336c[_0x5f56('0x26')]-0x1]+=_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0x1d')],_0x2a687f=_0x5afb84['createPositionFromPath'](_0x10163a,_0x45336c);}}for(const _0x272ae4 of _0x4389ea[_0x5a601c][_0x5f56('0xc8')])_0x3aca30[_0x5f56('0x45')](_0x272ae4,{'start':_0x21fe4c,'end':null});_0x57e0db(_0x5f56('0xe3'),_0x5a601c,_0x21fe4c,_0x2a687f),_0x57e0db(_0x5f56('0xc9'),_0x5a601c,_0x21fe4c,_0x2a687f),_0x57e0db(_0x5f56('0x39'),_0x5a601c,_0x21fe4c,_0x2a687f),_0x57e0db(_0x5f56('0x5'),_0x5a601c,_0x21fe4c,_0x2a687f);for(const _0x5c7d7b of _0x4389ea[_0x5a601c][_0x5f56('0xdb')]){_0x3aca30[_0x5f56('0x43')](_0x5c7d7b)[_0x5f56('0x47')]=_0x2a687f;}}for(const [_0x15eef2,_0x2ad660]of _0x3aca30){const _0x4c9897=this[_0x5f56('0x88')][_0x5f56('0x20')]['createRange'](_0x2ad660[_0x5f56('0xc7')],_0x2ad660[_0x5f56('0x47')]);_0x10163a[_0x5f56('0x7a')][_0x5f56('0x45')](_0x15eef2,_0x4c9897);}return _0x56c193[_0x5f56('0xae')]((_0x3d743d,_0x2ed00f)=>{const _0x553513=_0x10163a['markers'][_0x5f56('0x43')](_0x5f56('0x8c')+_0x3d743d['id']),_0x400642=_0x10163a[_0x5f56('0x7a')][_0x5f56('0x43')]('revision:'+_0x2ed00f['id']);return _0x553513[_0x5f56('0xc7')]['isBefore'](_0x400642[_0x5f56('0xc7')])?-0x1:_0x553513['start'][_0x5f56('0xaf')](_0x400642[_0x5f56('0xc7')])?0x1:_0x553513[_0x5f56('0x47')]['isBefore'](_0x400642[_0x5f56('0x47')])?-0x1:_0x553513[_0x5f56('0x47')][_0x5f56('0xaf')](_0x400642[_0x5f56('0x47')])?0x1:_0x5f56('0x2d')===_0x3d743d[_0x5f56('0x36')]?-0x1:0x1;}),{'root':_0x10163a,'changes':_0x56c193};function _0x57e0db(_0x1dbb82,_0x10acf2,_0x524760,_0xb23b0f){const _0x444a30=!!_0x4389ea[_0x10acf2][_0x1dbb82],_0x5df634=_0x444a30?_0x4389ea[_0x10acf2][_0x1dbb82][_0x5f56('0x4a')]:null,_0x21d78b=_0x10acf2===_0x4389ea[_0x5f56('0x26')]-0x1,_0x16d84a=_0x5f2e81[_0x1dbb82][0x0],_0x425c55=_0x1af381['isObject'](_0x4389ea[_0x10acf2][_0x5f56('0xf4')]);!_0x4589d3[_0x1dbb82]&&_0x444a30?_0x4589d3[_0x1dbb82]={'start':_0x524760,'tapeItem':_0x4389ea[_0x10acf2],'userId':_0x5df634,'type':_0x1dbb82}:_0x4589d3[_0x1dbb82]&&!_0x444a30?(_0x4589d3[_0x1dbb82]['end']=_0x524760,_0x65bab3(_0x4589d3[_0x1dbb82]),_0x4589d3[_0x1dbb82]=null):_0x4589d3[_0x1dbb82]&&_0x444a30&&_0x4589d3[_0x1dbb82][_0x5f56('0x4a')]!==_0x5df634&&(_0x4589d3[_0x1dbb82][_0x5f56('0x47')]=_0x524760,_0x16d84a&&_0x16d84a[_0x5f56('0x4a')]===_0x4589d3[_0x1dbb82][_0x5f56('0x4a')]||_0x65bab3(_0x4589d3[_0x1dbb82]),_0x4589d3[_0x1dbb82]={'start':_0x524760,'tapeItem':_0x4389ea[_0x10acf2],'userId':_0x5df634,'type':_0x1dbb82}),_0x4589d3[_0x1dbb82]&&_0x425c55&&(_0x5f56('0xb8')!==_0x4389ea[_0x10acf2][_0x5f56('0x36')]||_0x16d84a&&_0x16d84a['userId']===_0x5df634||_0x5f2e81[_0x1dbb82][_0x5f56('0x82')]({'userId':_0x5df634,'object':_0x4389ea[_0x10acf2]['item'],'change':_0x4589d3[_0x1dbb82]}),_0x5f56('0xd9')===_0x4389ea[_0x10acf2][_0x5f56('0x36')]&&_0x16d84a&&_0x16d84a['object']===_0x4389ea[_0x10acf2][_0x5f56('0xf4')]&&(_0x5f2e81[_0x1dbb82]['shift'](),_0x4589d3[_0x1dbb82]=_0x16d84a[_0x5f56('0x5c')])),_0x4589d3[_0x1dbb82]&&_0x21d78b&&(_0x4589d3[_0x1dbb82][_0x5f56('0x47')]=_0xb23b0f,_0x65bab3(_0x4589d3[_0x1dbb82]),_0x4589d3[_0x1dbb82]=null);}function _0x65bab3({start:_0xdeeba7,end:_0x585609,tapeItem:_0x81eca5,userId:_0x1dc269,type:_0x551e07}){const _0xc93a2e=_0x81eca5[_0x5f56('0xf4')],_0x48bb17=_0x5afb84['schema'][_0x5f56('0xd0')](_0xc93a2e)&&!_0x5afb84[_0x5f56('0xdc')][_0x5f56('0x101')](_0xc93a2e),_0x20b5ce=_0xdeeba7[_0x5f56('0x1b')]==_0x585609['parent']&&_0x585609[_0x5f56('0x92')];if(_0x48bb17&&_0x20b5ce)return;const _0x29201a=_0x5afb84['createRange'](_0xdeeba7,_0x585609),_0x3db4cc=_0x3c0901[_0x5f56('0x43')](_0x1dc269),_0x2808d9=new _0x3348ea({'author':_0x3db4cc,'type':_0x5f56('0x5')==_0x551e07||_0x5f56('0xc9')==_0x551e07?'add':'remove','data':{'isSuggestion':_0x5f56('0xc9')==_0x551e07||_0x5f56('0xe3')==_0x551e07},'createdAt':new Date(),'rootName':_0x3108e3});_0x56c193['push'](_0x2808d9),_0x10163a[_0x5f56('0x7a')]['set'](_0x5f56('0x8c')+_0x2808d9['id'],_0x29201a);}function _0x171a31(_0x5fca0e,_0x1c74fa){const _0x1e0e2b=_0x5fca0e[_0x5f56('0x77')](),_0x573542=_0x1c74fa[_0x5f56('0x77')]();for(const _0x2f90fc of _0x1e0e2b){if(_0x2f90fc[0x1]!==_0x1c74fa[_0x5f56('0x84')](_0x2f90fc[0x0]))return!0x1;_0x573542[_0x5f56('0x27')]();}return _0x573542[_0x5f56('0x27')]()[_0x5f56('0xf5')];}}[_0x5f56('0x8f')](){this['editor'][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x10c'))[_0x5f56('0x96')]({'view':_0x5f56('0xab')}),this[_0x5f56('0x88')][_0x5f56('0x98')]['for'](_0x5f56('0x72'))['markerToHighlight']({'model':_0x5f56('0xab'),'view':_0x594db7=>{const _0x15bb77=_0x594db7[_0x5f56('0x2c')][_0x5f56('0xa9')](':')[0x1],_0x470e10=this['_getChangeFromId'](_0x15bb77);if(!_0x470e10)return null;const _0x4524c4=_0x5f56('0x2d')==_0x470e10[_0x5f56('0x36')]?'insertion':_0x5f56('0x60'),_0xe4757c=['ck-suggestion-marker',_0x5f56('0x117')+_0x4524c4];return _0x470e10[_0x5f56('0xd1')][_0x5f56('0xb7')]&&_0xe4757c[_0x5f56('0x57')](_0x5f56('0x117')+_0x4524c4+_0x5f56('0xe1')),this[_0x5f56('0x2a')]==_0x470e10&&_0xe4757c[_0x5f56('0x57')](_0x5f56('0x71')),{'classes':_0xe4757c,'attributes':{'data-change-id':_0x15bb77}};}}),this['editor']['conversion'][_0x5f56('0xf1')]('upcast')['add'](_0x2e1243=>{_0x2e1243['on'](_0x5f56('0xce'),(_0x582489,_0x28ceaf,_0x42946b)=>{const _0x37c699=_0x28ceaf[_0x5f56('0x0')][_0x5f56('0xb3')](0x0);if(!_0x37c699||!_0x37c699['is'](_0x5f56('0x10a'),_0x5f56('0x14')))return;if(!_0x42946b[_0x5f56('0x21')][_0x5f56('0xcf')](_0x37c699,{'attributes':[_0x5f56('0x58'),_0x5f56('0x2b')]}))return;const _0x3d1d0f=_0x28ceaf['modelRange'][_0x5f56('0xc7')][_0x5f56('0x1b')];_0x42946b['writer'][_0x5f56('0x44')](_0x5f56('0x58'),_0x37c699[_0x5f56('0x84')](_0x5f56('0x58')),_0x3d1d0f),_0x42946b[_0x5f56('0xf6')][_0x5f56('0x44')](_0x5f56('0x2b'),_0x37c699[_0x5f56('0x84')]('vid_end'),_0x3d1d0f);},{'priority':_0x5f56('0x3e')});}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x10c'))[_0x5f56('0x2d')](_0x289215=>{_0x289215['on'](_0x5f56('0x10a'),(_0x1e9bdf,_0x119301,_0x4fe5d8)=>{if(!_0x4fe5d8[_0x5f56('0x21')][_0x5f56('0xcf')](_0x119301[_0x5f56('0x0')],{'attributes':[_0x5f56('0x58'),_0x5f56('0x2b')]}))return;if(_0x119301[_0x5f56('0xa3')][_0x5f56('0xf3')])return;const _0x11aab6=_0x119301[_0x5f56('0xa3')][_0x5f56('0xc7')][_0x5f56('0x1b')];_0x11aab6[_0x5f56('0x2')](_0x5f56('0x58'))||_0x11aab6[_0x5f56('0x2')](_0x5f56('0x31'))||(_0x4fe5d8[_0x5f56('0xf6')][_0x5f56('0x44')](_0x5f56('0x58'),_0x119301[_0x5f56('0x0')][_0x5f56('0x84')](_0x5f56('0x58')),_0x11aab6),_0x4fe5d8[_0x5f56('0xf6')]['setAttribute'](_0x5f56('0x2b'),_0x119301[_0x5f56('0x0')][_0x5f56('0x84')]('vid_end'),_0x11aab6));},{'priority':'low'});}),this['editor'][_0x5f56('0x98')]['for'](_0x5f56('0x10c'))['elementToAttribute']({'view':{'name':_0x5f56('0x73'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x27f92b=>_0x27f92b[_0x5f56('0x84')]('vid')}}),this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')]['on']('checkAttribute',(_0x4f3a8d,[,_0x48a7c2])=>{['vid_start',_0x5f56('0x2b'),_0x5f56('0x31')][_0x5f56('0xa1')](_0x48a7c2)&&(_0x4f3a8d[_0x5f56('0x1c')]=!0x0,_0x4f3a8d[_0x5f56('0x75')]());},{'priority':_0x5f56('0x3d')}),this[_0x5f56('0x88')]['conversion'][_0x5f56('0xf1')](_0x5f56('0x91'))[_0x5f56('0x2d')](_0x12619f=>{_0x12619f['on'](_0x5f56('0xeb'),(_0x1ac025,_0x52dbfe,_0x25e952)=>{if('\x20'!=_0x52dbfe['item'][_0x5f56('0xd1')]||_0x52dbfe[_0x5f56('0xf4')][_0x5f56('0x13')][_0x5f56('0xd8')]>0x1)return;if(!_0x25e952[_0x5f56('0x21')][_0x5f56('0xcf')](_0x52dbfe[_0x5f56('0xf4')],_0x1ac025['name']))return;const _0xdc66a5=_0x25e952['writer'],_0x51110b=_0x25e952['mapper'][_0x5f56('0xbe')](_0x52dbfe['range']);_0xdc66a5[_0x5f56('0x7f')](_0x51110b,_0xdc66a5[_0x5f56('0x80')](_0x5f56('0x73')));});}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x91'))['markerToData']({'model':_0x5f56('0xab')}),this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0x3f')]['on'](_0x5f56('0x61'),function(_0x2f8e70){const _0x422a0a=_0x2f8e70[_0x5f56('0x11d')][_0x5f56('0x43')]('RevisionViewer');return(_0x4b17a3,_0x3fe722,_0x4fbd25)=>{const _0x1d37b2=_0x3fe722[_0x5f56('0x2c')]['split'](':')[0x1],_0x1d222a=_0x422a0a[_0x5f56('0x85')](_0x1d37b2);if(!_0x1d222a)return null;const _0x5ab115='add'==_0x1d222a[_0x5f56('0x36')]?'split':_0x5f56('0x3b');if(!_0x4fbd25[_0x5f56('0x21')][_0x5f56('0x104')](_0x3fe722[_0x5f56('0x51')],_0x4b17a3[_0x5f56('0x8a')]))return;const _0x28070d=_0x3fe722[_0x5f56('0x51')]['getWalker'](),_0x4c5584=_0x3fe722[_0x5f56('0x51')][_0x5f56('0xc7')],_0x5dcb32=_0x2f8e70[_0x5f56('0x20')][_0x5f56('0xdc')];let _0x563b62=null,_0x5b7e03=null,_0x24a4c8=!0x1,_0x322d30=!0x1;for(const _0x502cf1 of _0x28070d){const _0x563684=_0x502cf1['item'];_0x24a4c8=_0x24a4c8||_0x5dcb32['isContent'](_0x563684);const _0x4d98a3=_0x4fbd25[_0x5f56('0x12')]['toViewElement'](_0x563684);if(_0x4d98a3&&_0x4d98a3['getCustomProperty'](_0x5f56('0xc')))return;_0x5f56('0xd9')==_0x502cf1[_0x5f56('0x36')]&&(_0x5dcb32[_0x5f56('0xd0')](_0x563684)&&!_0x5dcb32[_0x5f56('0x101')](_0x563684)&&(_0x563684[_0x5f56('0x3a')]||_0x4c5584[_0x5f56('0x93')]?_0x563b62&&_0x563b62['parent']==_0x563684||(_0x563b62=_0x563684,_0x21b42c(_0x502cf1['previousPosition']),_0x322d30=!0x0):_0x5b7e03=_0x5b7e03||_0x502cf1[_0x5f56('0xfa')]));}function _0x21b42c(_0x3bdf27){const _0x5b2eef=_0x4fbd25[_0x5f56('0xf6')]['createUIElement'](_0x5f56('0x73'),{'class':'ck-suggestion-marker-'+_0x5ab115}),_0x14f936=_0x4fbd25[_0x5f56('0x12')]['toViewPosition'](_0x3bdf27);_0x1d222a[_0x5f56('0xd1')][_0x5f56('0xb7')]&&_0x4fbd25['writer'][_0x5f56('0xf')]('ck-suggestion-marker-'+_0x5ab115+_0x5f56('0xe1'),_0x5b2eef),_0x422a0a[_0x5f56('0x2a')]==_0x1d222a&&_0x4fbd25['writer'][_0x5f56('0xf')](_0x5f56('0x71'),_0x5b2eef),_0x4fbd25['writer'][_0x5f56('0x10d')](_0x14f936,_0x5b2eef),_0x4fbd25[_0x5f56('0x12')][_0x5f56('0xa6')](_0x5b2eef,_0x3fe722['markerName']);}_0x24a4c8||_0x322d30||!_0x5b7e03||_0x21b42c(_0x5b7e03);};}(this['editor']),{'priority':_0x5f56('0x111')}),this[_0x5f56('0x88')]['editing'][_0x5f56('0x3f')]['on']('removeMarker:revision',(_0xc454e6,_0x48934e,_0x50f357)=>{const _0xa7feed=_0x50f357[_0x5f56('0x12')]['markerNameToElements'](_0x48934e[_0x5f56('0x2c')]);if(_0xa7feed)for(const _0x425325 of _0xa7feed)(_0x425325[_0x5f56('0x107')](_0x5f56('0x9d'))||_0x425325[_0x5f56('0x107')](_0x5f56('0x4f')))&&(_0x50f357['mapper'][_0x5f56('0x4')](_0x425325,_0x48934e[_0x5f56('0x2c')]),_0x50f357[_0x5f56('0xf6')]['remove'](_0x425325));},{'priority':'high'}),this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0x3f')]['on'](_0x5f56('0x61'),(_0x5c7cc0,_0x4a7d55,_0x50cbf2)=>{const _0x49b0df=_0x4a7d55['markerName'][_0x5f56('0xa9')](':')[0x1],_0x5de801=this['_getChangeFromId'](_0x49b0df);if(!_0x5de801)return null;const _0x1043b5=_0x5f56('0x2d')==_0x5de801['type']?_0x5f56('0xa9'):_0x5f56('0x3b');if(_0x50cbf2[_0x5f56('0x21')][_0x5f56('0x104')](_0x4a7d55[_0x5f56('0x51')],_0x5c7cc0['name']))for(const _0x3bd9f9 of _0x4a7d55[_0x5f56('0x51')][_0x5f56('0x4d')]()){if(!_0x3bd9f9['is'](_0x5f56('0x10a'),_0x5f56('0x53')))continue;const _0x79f52e=_0x50cbf2[_0x5f56('0xf6')]['createUIElement'](_0x5f56('0x73'),{'class':_0x5f56('0x117')+_0x1043b5}),_0x114df3=_0x50cbf2[_0x5f56('0x12')][_0x5f56('0xb0')](this['editor']['model']['createPositionBefore'](_0x3bd9f9));_0x5de801[_0x5f56('0xd1')]['isSuggestion']&&_0x50cbf2['writer'][_0x5f56('0xf')](_0x5f56('0x117')+_0x1043b5+_0x5f56('0xe1'),_0x79f52e),this['activeChange']==_0x5de801&&_0x50cbf2[_0x5f56('0xf6')]['addClass']('ck-suggestion-marker--active',_0x79f52e),_0x50cbf2[_0x5f56('0xf6')][_0x5f56('0x10d')](_0x114df3,_0x79f52e),_0x50cbf2[_0x5f56('0x12')][_0x5f56('0xa6')](_0x79f52e,_0x4a7d55['markerName']);}},{'priority':_0x5f56('0x111')}),this[_0x5f56('0x88')]['model']['document']['on'](_0x5f56('0x5c'),()=>{this['editor'][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x5c')](_0x965850=>{for(const _0x558bf0 of this[_0x5f56('0x88')][_0x5f56('0x20')]['document']['getRootNames']()){const _0x3cbb10=this[_0x5f56('0x88')][_0x5f56('0x20')]['document'][_0x5f56('0xec')](_0x558bf0),_0x53ed49=this[_0x5f56('0x88')]['editing'][_0x5f56('0xb')][_0x5f56('0x7')][_0x5f56('0xec')](_0x558bf0);if(_0x53ed49){const _0x49c441=_0x3cbb10[_0x5f56('0x84')]('revisionHistoryAttachChange');if(_0x965850['removeAttribute'](_0x5f56('0x55'),_0x53ed49),_0x965850[_0x5f56('0x1f')](_0x5f56('0xba'),_0x53ed49),_0x965850['removeClass'](_0x5f56('0x10b'),_0x53ed49),_0x965850[_0x5f56('0x1f')]('ck-revision-history-root--active',_0x53ed49),_0x49c441){const _0x2bf07f=this['_getChangeFromId'](_0x49c441);if(!_0x2bf07f)return null;_0x965850[_0x5f56('0x44')]('data-change-id',_0x49c441,_0x53ed49),_0x965850[_0x5f56('0xf')](_0x5f56('0xa5')+_0x2bf07f[_0x5f56('0x36')],_0x53ed49),this['activeChange']==_0x2bf07f&&_0x965850[_0x5f56('0xf')]('ck-revision-history-root--active',_0x53ed49);}}}});}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x10c'))[_0x5f56('0x96')]({'view':_0x5f56('0xa0'),'model':_0x19a9bd=>_0x5f56('0x17')+_0x19a9bd,'converterPriority':_0x5f56('0x3d')}),this[_0x5f56('0x88')][_0x5f56('0x98')]['for'](_0x5f56('0x10c'))['dataToMarker']({'view':'suggestion','model':_0x5ac50c=>_0x5f56('0xdf')+_0x5ac50c,'converterPriority':_0x5f56('0x3d')}),this['editor'][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x91'))[_0x5f56('0x95')]({'model':_0x5f56('0x70'),'view':_0x20726b=>({'name':_0x5f56('0xcc')+_0x20726b,'group':_0x5f56('0x70')}),'converterPriority':_0x5f56('0x3d')}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')]('editingDowncast')[_0x5f56('0x114')]({'model':_0x5f56('0x70'),'view':_0xf7575b=>{const _0x497517=_0xf7575b['markerName'][_0x5f56('0xa9')](':')[0x1];return'insertion'!=_0x497517&&_0x5f56('0x60')!=_0x497517?null:{'classes':[_0x5f56('0xb9'),_0x5f56('0xee')+_0x497517]};}}),this['editor']['editing'][_0x5f56('0x3f')]['on'](_0x5f56('0x11b'),et(this[_0x5f56('0x88')],_0x5f56('0x3b')),{'priority':'high'}),this[_0x5f56('0x88')][_0x5f56('0xe2')]['downcastDispatcher']['on'](_0x5f56('0xff'),et(this[_0x5f56('0x88')],'split'),{'priority':_0x5f56('0x111')}),this[_0x5f56('0x88')]['editing'][_0x5f56('0x3f')]['on']('removeMarker:revision-suggestion',(_0x3b0ebe,_0x2f10b6,_0x300fe3)=>{const _0x547f2a=_0x300fe3[_0x5f56('0x12')]['markerNameToElements'](_0x2f10b6[_0x5f56('0x2c')]);if(_0x547f2a)for(const _0x41abbe of _0x547f2a)_0x41abbe['is'](_0x5f56('0x56'))&&(_0x300fe3[_0x5f56('0x12')][_0x5f56('0x4')](_0x41abbe,_0x2f10b6[_0x5f56('0x2c')]),_0x300fe3['writer'][_0x5f56('0x74')](_0x41abbe));},{'priority':_0x5f56('0x111')});}[_0x5f56('0x85')](_0x1ad6f4){return this['_changeIdToChange'][_0x5f56('0x43')](_0x1ad6f4);}[_0x5f56('0x7b')](_0xecbc32){return this[_0x5f56('0xde')]&&this[_0x5f56('0xde')][_0x5f56('0x81')](),this['_changeView']=new _0x3a00c8(this[_0x5f56('0x88')][_0x5f56('0x6f')],_0xecbc32),this[_0x5f56('0xde')];}[_0x5f56('0x108')](){this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x7')]['selection']['observeMarkers'](_0x5f56('0xab')),this['on'](_0x5f56('0x6d'),(_0x237fdd,_0x23b1d0,_0x28f592,_0x32f4f7)=>{_0x32f4f7&&this[_0x5f56('0xad')]['remove'](_0x32f4f7),_0x28f592&&(this[_0x5f56('0xad')][_0x5f56('0x2d')]({'view':_0x28f592,'stackId':_0x5f56('0xd5'),'position':{'target':()=>{const _0x5b030a=this[_0x5f56('0x88')][_0x5f56('0xe2')],_0x264216=this['_getChangeFromId'](_0x28f592[_0x5f56('0x1')]);let _0x20a91f;if(_0x264216[_0x5f56('0xd1')][_0x5f56('0xd2')]){const _0x2b588d=_0x5b030a[_0x5f56('0xb')][_0x5f56('0x25')](_0x264216[_0x5f56('0x5f')]);_0x20a91f=Array[_0x5f56('0xb5')](_0x2b588d['getClientRects']());}else{const _0x1d5358=this[_0x5f56('0x88')]['model'][_0x5f56('0x7a')][_0x5f56('0x43')]('revision:'+_0x28f592['changeId']);_0x20a91f=Array[_0x5f56('0xb5')](_0x5b030a[_0x5f56('0x12')][_0x5f56('0x4e')](_0x1d5358['name']))['map'](_0x4c4a76=>_0x5b030a[_0x5f56('0xb')][_0x5f56('0x18')]['mapViewToDom'](_0x4c4a76))[_0x5f56('0xea')](_0x13fe67=>Array['from'](_0x13fe67[_0x5f56('0x35')]()))[_0x5f56('0xb2')]();}if(!this[_0x5f56('0xc2')])return _0x20a91f[0x0];return _0x20a91f[_0x5f56('0x32')](_0xdcabd4=>_0xdcabd4[_0x5f56('0x78')]-0x3<=this['_activeViewTarget']['y']&&_0xdcabd4[_0x5f56('0x5a')]+0x3>=this[_0x5f56('0xc2')]['y']&&_0xdcabd4[_0x5f56('0xf7')]-0x3<=this['_activeViewTarget']['x']&&_0xdcabd4[_0x5f56('0x11a')]+0x3>=this[_0x5f56('0xc2')]['x'])||_0x20a91f[0x0];}}}),this['_balloon'][_0x5f56('0x46')](_0x5f56('0xd5')));}),this['on']('change:activeChange',(_0x4c04e0,_0x3fb728,_0x5ece2b,_0x194384)=>{this[_0x5f56('0xf9')]=_0x5ece2b?this[_0x5f56('0x7b')](_0x5ece2b):null,this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x5c')](()=>{const _0x27d61e=this[_0x5f56('0x88')][_0x5f56('0xe2')];_0x194384&&(_0x194384[_0x5f56('0xd1')][_0x5f56('0xd2')]?_0x27d61e[_0x5f56('0xb')][_0x5f56('0x5c')](_0x54901e=>{_0x54901e[_0x5f56('0x1f')](_0x5f56('0x113'),_0x27d61e[_0x5f56('0xb')][_0x5f56('0x7')]['getRoot'](_0x194384[_0x5f56('0x5f')]));}):_0x27d61e[_0x5f56('0x62')](_0x5f56('0x8c')+_0x194384['id'])),_0x5ece2b&&(_0x5ece2b[_0x5f56('0xd1')]['isOnRoot']?_0x27d61e['view']['change'](_0x4eae71=>{_0x4eae71[_0x5f56('0xf')]('ck-revision-history-root--active',_0x27d61e[_0x5f56('0xb')][_0x5f56('0x7')]['getRoot'](_0x5ece2b[_0x5f56('0x5f')]));}):_0x27d61e[_0x5f56('0x62')](_0x5f56('0x8c')+_0x5ece2b['id']));});}),this[_0x5f56('0xed')](this['editor']['editing'][_0x5f56('0xb')][_0x5f56('0x7')],_0x5f56('0xb6'),(_0x114ba4,_0x33c80b)=>{if(this[_0x5f56('0x2a')])return;const _0x1cbbba=this['_findChangeIdFromDomTarget'](_0x33c80b[_0x5f56('0x15')]),_0x304cdd=this['_changeIdToChange'][_0x5f56('0x43')](_0x1cbbba);_0x304cdd?(this['_activeViewTarget']={'x':_0x33c80b['domEvent']['x'],'y':_0x33c80b['domEvent']['y']},this['activeView']=this[_0x5f56('0x7b')](_0x304cdd)):(this[_0x5f56('0xc2')]=null,this[_0x5f56('0xf9')]=null);}),this['listenTo'](this['editor'][_0x5f56('0xe2')]['view']['document'],_0x5f56('0x6c'),(_0x298940,_0x224325)=>{const _0x34f18f=this[_0x5f56('0x9f')](_0x224325[_0x5f56('0x15')]),_0xc0e4c6=this[_0x5f56('0x2f')][_0x5f56('0x43')](_0x34f18f);_0xc0e4c6?(this[_0x5f56('0xc2')]={'x':_0x224325[_0x5f56('0x103')]['x'],'y':_0x224325[_0x5f56('0x103')]['y']},_0xc0e4c6===this[_0x5f56('0x2a')]?this[_0x5f56('0xad')]['updatePosition']():this[_0x5f56('0x2a')]=_0xc0e4c6):(this[_0x5f56('0xc2')]=null,this[_0x5f56('0x2a')]=null);});}['_findChangeIdFromDomTarget'](_0x1933c8){do{const _0x413f4b=_0x1933c8[_0x5f56('0x84')](_0x5f56('0x55'));if(_0x413f4b)return _0x413f4b;_0x1933c8=_0x1933c8[_0x5f56('0x13')];}while(_0x1933c8);return null;}[_0x5f56('0xa4')](){this['editor'][_0x5f56('0x20')][_0x5f56('0x5c')](_0x6d211f=>{for(const _0xd98461 of this['editor'][_0x5f56('0x20')][_0x5f56('0x7a')])_0x6d211f['removeMarker'](_0xd98461);});}}function et(_0x13e6ce,_0x2c7946){return(_0x3a494f,_0x3cf5b0,_0x4d9ff8)=>{if(!_0x4d9ff8[_0x5f56('0x21')][_0x5f56('0x104')](_0x3cf5b0[_0x5f56('0x51')],_0x3a494f[_0x5f56('0x8a')]))return;const _0x1d9660=_0x3cf5b0[_0x5f56('0x51')][_0x5f56('0x1e')](),_0x3ca6d6=_0x3cf5b0[_0x5f56('0x51')][_0x5f56('0xc7')],_0x3911e6=_0x13e6ce[_0x5f56('0x20')]['schema'];let _0x183e7e=null,_0x467196=null,_0x40794f=!0x1,_0x16a2e5=!0x1;for(const _0xcae28e of _0x1d9660){const _0x2eb172=_0xcae28e[_0x5f56('0xf4')];_0x40794f=_0x40794f||_0x3911e6['isContent'](_0x2eb172);const _0x4d7aff=_0x4d9ff8[_0x5f56('0x12')][_0x5f56('0x69')](_0x2eb172);if(_0x4d7aff&&_0x4d7aff[_0x5f56('0x9e')]('addHighlight'))return;'elementEnd'==_0xcae28e['type']&&(_0x3911e6['isBlock'](_0x2eb172)&&!_0x3911e6[_0x5f56('0x101')](_0x2eb172)&&(_0x2eb172['nextSibling']||_0x3ca6d6[_0x5f56('0x93')]?_0x183e7e&&_0x183e7e[_0x5f56('0x13')]==_0x2eb172||(_0x183e7e=_0x2eb172,_0x50e0e2(_0xcae28e[_0x5f56('0xfa')]),_0x16a2e5=!0x0):_0x467196=_0x467196||_0xcae28e[_0x5f56('0xfa')]));}function _0x50e0e2(_0x1df923){const _0x3f84f=_0x4d9ff8[_0x5f56('0x12')][_0x5f56('0xb0')](_0x1df923),_0x26f480=_0x4d9ff8[_0x5f56('0xf6')][_0x5f56('0x7c')](_0x5f56('0x73'),{'class':_0x5f56('0xee')+_0x2c7946});_0x4d9ff8[_0x5f56('0xf6')][_0x5f56('0x10d')](_0x3f84f,_0x26f480),_0x4d9ff8[_0x5f56('0x12')][_0x5f56('0xa6')](_0x26f480,_0x3cf5b0['markerName']);}_0x40794f||_0x16a2e5||!_0x467196||_0x50e0e2(_0x467196);};}export class RestoreRevisionCommand extends _0x14259b{constructor(_0x52b2c4){super(_0x52b2c4);const _0x2a49c9=_0x52b2c4[_0x5f56('0x11d')][_0x5f56('0x43')](d);this[_0x5f56('0xb1')]=!0x1,this['listenTo'](_0x2a49c9,_0x5f56('0x8'),()=>this['refresh']()),this[_0x5f56('0xed')](_0x2a49c9,_0x5f56('0x40'),()=>this[_0x5f56('0x11f')]());}[_0x5f56('0x19')](){const _0x5609fc=this[_0x5f56('0x88')],_0x48540d=_0x5609fc[_0x5f56('0x11d')][_0x5f56('0x43')](d),_0x56be13=_0x48540d[_0x5f56('0x8b')]?_0x48540d[_0x5f56('0x119')][_0x5f56('0xbd')]:null;_0x5609fc[_0x5f56('0x41')][_0x5f56('0x43')](_0x5f56('0x52'))[_0x5f56('0x33')](_0x56be13);}[_0x5f56('0x11f')](){const {isReady:_0x11f824,isEnabled:_0x30fd51}=this[_0x5f56('0x88')][_0x5f56('0x11d')][_0x5f56('0x43')](d);this['isEnabled']=_0x11f824&&_0x30fd51;}}export class ShowChangeCommand extends _0x14259b{constructor(_0x44e7f4,{direction:_0x3c7a87}){super(_0x44e7f4);const _0x51dc77=_0x44e7f4['plugins'][_0x5f56('0x43')](d);this[_0x5f56('0xb1')]=!0x1,this['_step']=_0x5f56('0xc4')===_0x3c7a87?0x1:-0x1,this[_0x5f56('0xed')](_0x51dc77,_0x5f56('0x8'),()=>this[_0x5f56('0x11f')]()),this[_0x5f56('0xed')](_0x51dc77,_0x5f56('0x40'),()=>this['refresh']()),this['listenTo'](_0x51dc77,_0x5f56('0x24'),()=>this['refresh']());}['execute'](){const _0x1b7a6f=this[_0x5f56('0x88')],_0x4ba9a2=_0x1b7a6f[_0x5f56('0x11d')]['get'](d),{isNavigationMode:_0x7d2c7b,currentChangeNumber:_0x493a79}=_0x4ba9a2;let _0x55dc7b;if(_0x4ba9a2[_0x5f56('0x2a')]=_0x7d2c7b?_0x4ba9a2[_0x5f56('0x119')][_0x5f56('0x63')][_0x5f56('0x43')](_0x493a79+this[_0x5f56('0x11')]):_0x4ba9a2['diff'][_0x5f56('0x63')][_0x5f56('0x110')],_0x4ba9a2[_0x5f56('0x2a')][_0x5f56('0xd1')]['isOnRoot'])_0x55dc7b=_0x1b7a6f[_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x25')](_0x4ba9a2[_0x5f56('0x2a')][_0x5f56('0x5f')]);else{const _0xefc275=_0x1b7a6f[_0x5f56('0x20')][_0x5f56('0x7a')][_0x5f56('0x43')](_0x5f56('0x8c')+_0x4ba9a2['activeChange']['id']);_0x55dc7b=_0x43e17b(_0x1b7a6f[_0x5f56('0xe2')],_0xefc275);}_0x455a82({'target':_0x55dc7b,'viewportOffset':0x28});}[_0x5f56('0x11f')](){const {isNavigationMode:_0x1da2eb,currentChangeNumber:_0x4a2796,numberOfChanges:_0x3ac77e,isReady:_0x33e973,isEnabled:_0x31fb0b}=this[_0x5f56('0x88')][_0x5f56('0x11d')]['get'](d);this['isEnabled']=!!(_0x31fb0b&&_0x33e973&&_0x3ac77e)&&(!_0x1da2eb||(0x1===this[_0x5f56('0x11')]?_0x4a2796<_0x3ac77e-0x1:_0x4a2796>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2aab=['find','locale','isEnabled','_action','ck-revision-history-sidebar__revision__actions','source','isVisible','action','function','class','first','execute','name','bind','panelPosition','extendTemplate','Compare\x20against\x20selected','Restore\x20this\x20revision','stopPropagation','ck-on','listView','isActionsDropdownOpen','model','threeVerticalDots','button','listenTo','isReady','set','add','isOpen'];(function(_0x2fec39,_0x2aab7a){const _0x41cce7=function(_0x1205cf){while(--_0x1205cf){_0x2fec39['push'](_0x2fec39['shift']());}};_0x41cce7(++_0x2aab7a);}(_0x2aab,0x12d));const _0x41cc=function(_0x2fec39,_0x2aab7a){_0x2fec39=_0x2fec39-0x0;let _0x41cce7=_0x2aab[_0x2fec39];return _0x41cce7;};import{Collection as _0x481218}from'ckeditor5/src/utils';import{icons as _0x15fa50}from'ckeditor5/src/core';import{Model as _0x2bf744,addListToDropdown as _0x2771a8,createDropdown as _0x4ad19c}from'ckeditor5/src/ui';import{getTranslation as _0x594a00}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x34d08d,_0x47f6b9){const _0x1a5c8e=_0x34d08d['bindTemplate'],_0x15024b=_0x34d08d['locale'],_0x1f944d=_0x4ad19c(_0x15024b);_0x1f944d[_0x41cc('0xd')]='sw';const _0x43fb87=function(_0x455fb7,_0x307f09){const _0x2fc98e=function(_0x5b10a1,_0x275a01){const _0x32f0b7=_0x5b10a1[_0x41cc('0x0')],_0x3fc750={'Compare\x20against\x20selected':_0x594a00(_0x32f0b7,_0x41cc('0xf')),'Name\x20this\x20revision':_0x594a00(_0x32f0b7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x594a00(_0x32f0b7,_0x41cc('0x10'))};return _0x275a01['map'](_0x1e523b=>{const _0x57d7c3=_0x3fc750[_0x1e523b[_0x41cc('0xb')]];return _0x57d7c3&&_0x57d7c3!==_0x1e523b['name']&&(_0x1e523b[_0x41cc('0xb')]=_0x57d7c3),_0x1e523b;});}(_0x455fb7,_0x307f09),_0x488a62=new _0x481218();for(const _0x3b2e7e of _0x2fc98e){const _0x5d7b35={'type':_0x41cc('0x17'),'model':new _0x2bf744({'label':_0x3b2e7e[_0x41cc('0xb')],'class':_0x3b2e7e[_0x41cc('0x8')],'withText':!0x0,'_action':_0x3b2e7e[_0x41cc('0x6')]})};_0x5d7b35[_0x41cc('0x15')]['bind'](_0x41cc('0x1'))['to'](_0x455fb7,'isActionsDropdownOpen',_0xa1f95a=>_0x41cc('0x7')!=typeof _0x3b2e7e['isEnabled']||(!_0xa1f95a||_0x3b2e7e['isEnabled'](_0x455fb7))),_0x488a62[_0x41cc('0x1b')](_0x5d7b35);}return _0x488a62;}(_0x34d08d,_0x47f6b9);return _0x34d08d[_0x41cc('0xc')]('isActionsDropdownOpen')['to'](_0x1f944d,_0x41cc('0x1c')),_0x1f944d['buttonView'][_0x41cc('0x1a')]({'label':_0x594a00(_0x15024b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x15fa50[_0x41cc('0x16')]}),_0x1f944d[_0x41cc('0xe')]({'attributes':{'class':[_0x41cc('0x3'),_0x1a5c8e['if'](_0x41cc('0x14'),_0x41cc('0x12'))]},'on':{'click':_0x1a5c8e['to'](_0x32422d=>_0x32422d[_0x41cc('0x11')]())}}),_0x1f944d['on'](_0x41cc('0xa'),_0x59ee69=>{_0x34d08d[_0x41cc('0x19')]&&'function'==typeof _0x59ee69[_0x41cc('0x4')]['_action']&&_0x59ee69[_0x41cc('0x4')][_0x41cc('0x2')](_0x34d08d);}),_0x2771a8(_0x1f944d,_0x43fb87),_0x1f944d[_0x41cc('0x18')](_0x34d08d,'change:isActionsDropdownOpen',(_0x467209,_0xd6f76a,_0x3552f3)=>{if(_0x3552f3)for(const _0x211578 of _0x1f944d[_0x41cc('0x13')]['items']){const _0x1d104d=_0x211578['children'][_0x41cc('0x9')],_0x4e042f=_0x47f6b9[_0x41cc('0x1d')](_0x12e982=>_0x12e982[_0x41cc('0x6')]===_0x1d104d[_0x41cc('0x2')])[_0x41cc('0x5')];_0x211578[_0x41cc('0x5')]=void 0x0===_0x4e042f||_0x4e042f(_0x34d08d);}}),_0x1f944d;}
23
+ const _0x8117=['source','threeVerticalDots','isActionsDropdownOpen','bindTemplate','class','button','first','ck-on','function','find','bind','Name\x20this\x20revision','ck-revision-history-sidebar__revision__actions','listenTo','Compare\x20against\x20selected','items','Show\x20more\x20items','model','add','panelPosition','isVisible','isReady','action','change:isActionsDropdownOpen','isEnabled','name','children','Restore\x20this\x20revision','set','isOpen','locale','map','buttonView','_action'];(function(_0x2d806b,_0x81176e){const _0x1308d0=function(_0x4676ce){while(--_0x4676ce){_0x2d806b['push'](_0x2d806b['shift']());}};_0x1308d0(++_0x81176e);}(_0x8117,0x123));const _0x1308=function(_0x2d806b,_0x81176e){_0x2d806b=_0x2d806b-0x0;let _0x1308d0=_0x8117[_0x2d806b];return _0x1308d0;};import{Collection as _0x4765a6}from'ckeditor5/src/utils';import{icons as _0x4bbad9}from'ckeditor5/src/core';import{Model as _0x1ae7cd,addListToDropdown as _0x270320,createDropdown as _0x393b1b}from'ckeditor5/src/ui';import{getTranslation as _0x594b21}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2ee79b,_0x493cef){const _0x2c2101=_0x2ee79b[_0x1308('0x12')],_0x25b9fb=_0x2ee79b[_0x1308('0xb')],_0x565444=_0x393b1b(_0x25b9fb);_0x565444[_0x1308('0x0')]='sw';const _0x37cbb1=function(_0xad669b,_0x1de375){const _0xf8321d=function(_0xfa9ff5,_0x2bf5bc){const _0xb4a6a=_0xfa9ff5[_0x1308('0xb')],_0x1e4939={'Compare\x20against\x20selected':_0x594b21(_0xb4a6a,_0x1308('0x1d')),'Name\x20this\x20revision':_0x594b21(_0xb4a6a,_0x1308('0x1a')),'Restore\x20this\x20revision':_0x594b21(_0xb4a6a,_0x1308('0x8'))};return _0x2bf5bc[_0x1308('0xc')](_0x5dc6a4=>{const _0xd83e70=_0x1e4939[_0x5dc6a4[_0x1308('0x6')]];return _0xd83e70&&_0xd83e70!==_0x5dc6a4[_0x1308('0x6')]&&(_0x5dc6a4[_0x1308('0x6')]=_0xd83e70),_0x5dc6a4;});}(_0xad669b,_0x1de375),_0x353755=new _0x4765a6();for(const _0x55be37 of _0xf8321d){const _0x2ffb60={'type':_0x1308('0x14'),'model':new _0x1ae7cd({'label':_0x55be37[_0x1308('0x6')],'class':_0x55be37[_0x1308('0x13')],'withText':!0x0,'_action':_0x55be37[_0x1308('0x3')]})};_0x2ffb60[_0x1308('0x20')][_0x1308('0x19')](_0x1308('0x5'))['to'](_0xad669b,'isActionsDropdownOpen',_0x596fd1=>_0x1308('0x17')!=typeof _0x55be37['isEnabled']||(!_0x596fd1||_0x55be37[_0x1308('0x5')](_0xad669b))),_0x353755[_0x1308('0x21')](_0x2ffb60);}return _0x353755;}(_0x2ee79b,_0x493cef);return _0x2ee79b[_0x1308('0x19')](_0x1308('0x11'))['to'](_0x565444,_0x1308('0xa')),_0x565444[_0x1308('0xd')][_0x1308('0x9')]({'label':_0x594b21(_0x25b9fb,_0x1308('0x1f')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4bbad9[_0x1308('0x10')]}),_0x565444['extendTemplate']({'attributes':{'class':[_0x1308('0x1b'),_0x2c2101['if']('isActionsDropdownOpen',_0x1308('0x16'))]},'on':{'click':_0x2c2101['to'](_0x3a1017=>_0x3a1017['stopPropagation']())}}),_0x565444['on']('execute',_0x312404=>{_0x2ee79b[_0x1308('0x2')]&&'function'==typeof _0x312404['source'][_0x1308('0xe')]&&_0x312404[_0x1308('0xf')]['_action'](_0x2ee79b);}),_0x270320(_0x565444,_0x37cbb1),_0x565444[_0x1308('0x1c')](_0x2ee79b,_0x1308('0x4'),(_0x522e73,_0x2d9f59,_0x28f7e7)=>{if(_0x28f7e7)for(const _0x18748b of _0x565444['listView'][_0x1308('0x1e')]){const _0x51e99e=_0x18748b[_0x1308('0x7')][_0x1308('0x15')],_0x157082=_0x493cef[_0x1308('0x18')](_0x56443f=>_0x56443f[_0x1308('0x3')]===_0x51e99e[_0x1308('0xe')])['isVisible'];_0x18748b[_0x1308('0x1')]=void 0x0===_0x157082||_0x157082(_0x2ee79b);}}),_0x565444;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39e7=['ck-revision-history-sidebar__revision-author','0\x200\x2011\x2010','span','push','name','setTemplate','Revision\x20author','ck-revision-history-sidebar__revision-author__name'];(function(_0x4baaae,_0x39e73f){const _0x478d15=function(_0x1baf82){while(--_0x1baf82){_0x4baaae['push'](_0x4baaae['shift']());}};_0x478d15(++_0x39e73f);}(_0x39e7,0x1a2));const _0x478d=function(_0x4baaae,_0x39e73f){_0x4baaae=_0x4baaae-0x0;let _0x478d15=_0x39e7[_0x4baaae];return _0x478d15;};import{View as _0x2179f2,IconView as _0x1fedfc}from'ckeditor5/src/ui';import{getTranslation as _0x18e8f6}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4f0544 from'../../../theme/icons/user.svg';export default class ti extends _0x2179f2{constructor(_0x5611d1,_0x24d915,_0x84995c){super(_0x5611d1);const _0x373732=new _0x1fedfc();_0x373732['set']({'content':_0x4f0544,'viewBox':_0x478d('0x7')});const _0x225053=['ck',_0x478d('0x6')];_0x84995c&&_0x225053[_0x478d('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x55252e=[{'tag':_0x478d('0x0'),'attributes':{'class':['ck',_0x478d('0x5')],'title':_0x18e8f6(_0x5611d1,_0x84995c?'Revision\x20creator':_0x478d('0x4'))},'children':[_0x373732,_0x24d915[_0x478d('0x2')]]}];this[_0x478d('0x3')]({'tag':'li','attributes':{'class':_0x225053},'children':_0x55252e});}}
23
+ const _0x59c2=['name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','set','Revision\x20creator','Revision\x20author'];(function(_0x48b524,_0x59c2f9){const _0x36ab3c=function(_0x36c34f){while(--_0x36c34f){_0x48b524['push'](_0x48b524['shift']());}};_0x36ab3c(++_0x59c2f9);}(_0x59c2,0x195));const _0x36ab=function(_0x48b524,_0x59c2f9){_0x48b524=_0x48b524-0x0;let _0x36ab3c=_0x59c2[_0x48b524];return _0x36ab3c;};import{View as _0x102ced,IconView as _0xceaef6}from'ckeditor5/src/ui';import{getTranslation as _0x29ac21}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x3f5338 from'../../../theme/icons/user.svg';export default class ti extends _0x102ced{constructor(_0x4e3acd,_0x5f423b,_0x45e828){super(_0x4e3acd);const _0x581200=new _0xceaef6();_0x581200[_0x36ab('0x0')]({'content':_0x3f5338,'viewBox':_0x36ab('0x4')});const _0xd7dbc2=['ck',_0x36ab('0x5')];_0x45e828&&_0xd7dbc2['push']('ck-revision-history-sidebar__revision-author_creator');const _0x57abce=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x29ac21(_0x4e3acd,_0x45e828?_0x36ab('0x1'):_0x36ab('0x2'))},'children':[_0x581200,_0x5f423b[_0x36ab('0x3')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xd7dbc2},'children':_0x57abce});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x53d0=['set','Revision\x20name','span','extendTemplate','ck-revision-history-sidebar__revision-name'];(function(_0xac3cbf,_0x53d03c){var _0x334c5e=function(_0xd8709e){while(--_0xd8709e){_0xac3cbf['push'](_0xac3cbf['shift']());}};_0x334c5e(++_0x53d03c);}(_0x53d0,0x91));var _0x334c=function(_0xac3cbf,_0x53d03c){_0xac3cbf=_0xac3cbf-0x0;var _0x334c5e=_0x53d0[_0xac3cbf];return _0x334c5e;};import{LabeledFieldView as _0x1392c2}from'ckeditor5/src/ui';import{getTranslation as _0x3b01a2}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x1392c2{constructor(_0x1e3521,_0x249258){super(_0x1e3521,_0x249258),this[_0x334c('0x0')]({'label':_0x3b01a2(_0x1e3521,_0x334c('0x1'))}),this[_0x334c('0x3')]({'tag':_0x334c('0x2'),'attributes':{'class':[_0x334c('0x4')]}});}}
23
+ var _0x2c5b=['ck-revision-history-sidebar__revision-name','span'];(function(_0x276c46,_0x2c5bc2){var _0x1760bd=function(_0x3750ae){while(--_0x3750ae){_0x276c46['push'](_0x276c46['shift']());}};_0x1760bd(++_0x2c5bc2);}(_0x2c5b,0x109));var _0x1760=function(_0x276c46,_0x2c5bc2){_0x276c46=_0x276c46-0x0;var _0x1760bd=_0x2c5b[_0x276c46];return _0x1760bd;};import{LabeledFieldView as _0x57303b}from'ckeditor5/src/ui';import{getTranslation as _0x24c93f}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x57303b{constructor(_0x4dc402,_0x33834f){super(_0x4dc402,_0x33834f),this['set']({'label':_0x24c93f(_0x4dc402,'Revision\x20name')}),this['extendTemplate']({'tag':_0x1760('0x0'),'attributes':{'class':[_0x1760('0x1')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21d0=['set','highlight','uiLanguage','_createdAtFormatted','bind','unhighlight','placeholder','change','deselect','map','length','filter','from','isReady','ck-revision-history-sidebar__revision-wrapper','unshift','setTemplate','revisionActionsView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','creator','ck-disabled','select','createdAt','ck-reset','render','_revision','isActionsDropdownOpen','value','setName','ck-revision-history-sidebar__revision__controls-wrapper','listenTo','fieldView','isSelected','isEnabled','isHighlighted','name','div','ck-revision-history-sidebar__revision_highlighted','revisionNameView','fire','authors','element','srcElement','ck-revision-history-sidebar__revision','.ck-thread__remove-confirm','ck-revision-history-sidebar__actions_dropdown_open'];(function(_0x2bfb80,_0x21d01e){const _0x539834=function(_0x1e92a){while(--_0x1e92a){_0x2bfb80['push'](_0x2bfb80['shift']());}};_0x539834(++_0x21d01e);}(_0x21d0,0x11c));const _0x5398=function(_0x2bfb80,_0x21d01e){_0x2bfb80=_0x2bfb80-0x0;let _0x539834=_0x21d0[_0x2bfb80];return _0x539834;};import{View as _0x597fdd,createLabeledInputText as _0x1b4535}from'ckeditor5/src/ui';import{ConfirmMixin as _0x5e3e22}from'ckeditor5-collaboration/src/collaboration-core';import _0x331da8 from'./revisionnameview';import _0x4aa33f from'./revisionauthorview';import{dateToPrettyFormat as _0x2820e6}from'./utils';import{createActionsDropdownView as _0x26b758}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x5e3e22(_0x597fdd){constructor(_0xfa04f5,_0x488433,_0x23572b){super(_0xfa04f5);const _0xbca6a6=this['bindTemplate'],_0x516d66=function(_0x1ee46e,_0x5b5ef8){const _0x1aaa33=Array[_0x5398('0x4')](_0x5b5ef8[_0x5398('0x20')])[_0x5398('0x3')](_0x2d8e3a=>_0x2d8e3a!=_0x5b5ef8[_0x5398('0xb')]);return _0x5b5ef8[_0x5398('0xb')]&&_0x1aaa33[_0x5398('0x7')](_0x5b5ef8[_0x5398('0xb')]),_0x1aaa33[_0x5398('0x1')](_0x4874ad=>new _0x4aa33f(_0x1ee46e,_0x4874ad,_0x4874ad==_0x5b5ef8[_0x5398('0xb')]));}(_0xfa04f5,_0x488433);this['id']=_0x488433['id'],this[_0x5398('0x11')]=_0x488433,this['bind'](_0x5398('0x1b'),'createdAt')['to'](_0x488433),this['bind'](_0x5398('0x29'))['to'](this,_0x5398('0xe'),_0x4997e8=>_0x4997e8?_0x2820e6(_0xfa04f5[_0x5398('0x28')],_0x4997e8):void 0x0),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this[_0x5398('0x26')](_0x5398('0x12'),!0x1),this[_0x5398('0x26')](_0x5398('0x5'),!0x1),this[_0x5398('0x26')](_0x5398('0x19'),!0x1),this[_0x5398('0x1e')]=new _0x331da8(_0xfa04f5,_0x1b4535),this[_0x5398('0x1e')][_0x5398('0x17')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView'][_0x5398('0x17')]['bind']('value',_0x5398('0x2c'))['to'](this,_0x5398('0x1b'),_0x5398('0x29')),this[_0x5398('0x1e')][_0x5398('0x2a')](_0x5398('0x19'))['to'](this,_0x5398('0x18'),this,_0x5398('0x19'),(_0x4798e6,_0x427c4f)=>_0x4798e6&&_0x427c4f),this[_0x5398('0x9')]=_0x23572b&&_0x23572b[_0x5398('0x2')]?_0x26b758(this,_0x23572b):'',this[_0x5398('0x9')]&&this[_0x5398('0x9')][_0x5398('0x2a')](_0x5398('0x19'))['to'](this),this[_0x5398('0x8')]({'tag':_0x5398('0x1c'),'attributes':{'class':['ck','ck-reset',_0x5398('0x6'),_0xbca6a6['if']('isConfirm',_0x5398('0xa'))]},'children':[{'tag':_0x5398('0x1c'),'attributes':{'class':['ck',_0x5398('0xf'),_0x5398('0x23'),_0xbca6a6['if'](_0x5398('0x19'),_0x5398('0xc'),_0x51027f=>!_0x51027f),_0xbca6a6['if'](_0x5398('0x18'),'ck-revision-history-sidebar__revision_selected'),_0xbca6a6['if'](_0x5398('0x1a'),_0x5398('0x1d')),_0xbca6a6['if']('isActionsDropdownOpen',_0x5398('0x25'))]},'children':[this[_0x5398('0x1e')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0xbca6a6['to'](_0x5398('0x29'))}]},{'tag':_0x5398('0x1c'),'attributes':{'class':['ck',_0x5398('0x15')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x516d66}]},this[_0x5398('0x9')]],'on':{'click':_0xbca6a6['to'](_0x57c570=>{_0x57c570[_0x5398('0x22')]['closest'](_0x5398('0x24'))||this['isReady']&&this['isEnabled']&&this[_0x5398('0x1f')](_0x5398('0xd'),{'id':this['id']});})}}]});}[_0x5398('0x10')](){super[_0x5398('0x10')]();const _0x42f44d=this[_0x5398('0x1e')]['fieldView'][_0x5398('0x21')];this[_0x5398('0x16')](_0x42f44d,_0x5398('0x2d'),()=>{this[_0x5398('0x1f')](_0x5398('0x14'),{'id':this['id'],'name':_0x42f44d[_0x5398('0x13')]});});}[_0x5398('0xd')](){this[_0x5398('0x18')]=!0x0;}[_0x5398('0x0')](){this['isSelected']=!0x1;}[_0x5398('0x27')](){this[_0x5398('0x1a')]=!0x0;}[_0x5398('0x2b')](){this[_0x5398('0x1a')]=!0x1;}}
23
+ const _0x2330=['ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isConfirm','ck-revision-history-sidebar__revision__date','isHighlighted','revisionNameView','span','authors','revisionActionsView','bindTemplate','select','isSelected','creator','filter','createdAt','ck-reset','placeholder','from','listenTo','setTemplate','unshift','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision__controls-wrapper','isActionsDropdownOpen','highlight','render','extendTemplate','value','fire','set','bind','isEnabled','ck-revision-history-sidebar__actions_dropdown_open','uiLanguage','element','fieldView','closest','change','_createdAtFormatted','srcElement','ck-revision-history-sidebar__revision','map','name','div','ck-revision-history-sidebar__revision-wrapper','deselect','ck-disabled'];(function(_0x152f0d,_0x2330e4){const _0x10384b=function(_0x4beeba){while(--_0x4beeba){_0x152f0d['push'](_0x152f0d['shift']());}};_0x10384b(++_0x2330e4);}(_0x2330,0xbd));const _0x1038=function(_0x152f0d,_0x2330e4){_0x152f0d=_0x152f0d-0x0;let _0x10384b=_0x2330[_0x152f0d];return _0x10384b;};import{View as _0x42d547,createLabeledInputText as _0xb89a9d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x40bb18}from'ckeditor5-collaboration/src/collaboration-core';import _0x23febc from'./revisionnameview';import _0x11c188 from'./revisionauthorview';import{dateToPrettyFormat as _0x4950d5}from'./utils';import{createActionsDropdownView as _0x504691}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x40bb18(_0x42d547){constructor(_0x3c9ca9,_0xd8564,_0x4dd3d2){super(_0x3c9ca9);const _0x524954=this[_0x1038('0x8')],_0x54d453=function(_0x1acf35,_0x12b3f7){const _0x103aeb=Array[_0x1038('0x10')](_0x12b3f7[_0x1038('0x6')])[_0x1038('0xc')](_0x28c080=>_0x28c080!=_0x12b3f7[_0x1038('0xb')]);return _0x12b3f7['creator']&&_0x103aeb[_0x1038('0x13')](_0x12b3f7[_0x1038('0xb')]),_0x103aeb[_0x1038('0x28')](_0x3cb5a3=>new _0x11c188(_0x1acf35,_0x3cb5a3,_0x3cb5a3==_0x12b3f7[_0x1038('0xb')]));}(_0x3c9ca9,_0xd8564);this['id']=_0xd8564['id'],this['_revision']=_0xd8564,this['bind'](_0x1038('0x29'),_0x1038('0xd'))['to'](_0xd8564),this[_0x1038('0x1d')](_0x1038('0x25'))['to'](this,'createdAt',_0x457abb=>_0x457abb?_0x4950d5(_0x3c9ca9[_0x1038('0x20')],_0x457abb):void 0x0),this[_0x1038('0x1c')](_0x1038('0xa'),!0x1),this[_0x1038('0x1c')](_0x1038('0x3'),!0x1),this[_0x1038('0x1c')](_0x1038('0x16'),!0x1),this[_0x1038('0x1c')]('isReady',!0x1),this[_0x1038('0x1c')](_0x1038('0x1e'),!0x1),this[_0x1038('0x4')]=new _0x23febc(_0x3c9ca9,_0xb89a9d),this['revisionNameView']['fieldView'][_0x1038('0x19')]({'attributes':{'maxlength':'220'}}),this[_0x1038('0x4')][_0x1038('0x22')][_0x1038('0x1d')](_0x1038('0x1a'),_0x1038('0xf'))['to'](this,'name',_0x1038('0x25')),this[_0x1038('0x4')][_0x1038('0x1d')](_0x1038('0x1e'))['to'](this,_0x1038('0xa'),this,'isEnabled',(_0x55699b,_0x186e45)=>_0x55699b&&_0x186e45),this[_0x1038('0x7')]=_0x4dd3d2&&_0x4dd3d2['length']?_0x504691(this,_0x4dd3d2):'',this[_0x1038('0x7')]&&this['revisionActionsView'][_0x1038('0x1d')](_0x1038('0x1e'))['to'](this),this[_0x1038('0x12')]({'tag':_0x1038('0x2a'),'attributes':{'class':['ck','ck-reset',_0x1038('0x2b'),_0x524954['if'](_0x1038('0x1'),_0x1038('0x0'))]},'children':[{'tag':_0x1038('0x2a'),'attributes':{'class':['ck',_0x1038('0xe'),_0x1038('0x27'),_0x524954['if'](_0x1038('0x1e'),_0x1038('0x2d'),_0x365ffe=>!_0x365ffe),_0x524954['if'](_0x1038('0xa'),'ck-revision-history-sidebar__revision_selected'),_0x524954['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x524954['if'](_0x1038('0x16'),_0x1038('0x1f'))]},'children':[this['revisionNameView'],{'tag':_0x1038('0x5'),'attributes':{'class':['ck',_0x1038('0x2')]},'children':[{'text':_0x524954['to'](_0x1038('0x25'))}]},{'tag':_0x1038('0x2a'),'attributes':{'class':['ck',_0x1038('0x15')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1038('0x2e')]},'children':_0x54d453}]},this['revisionActionsView']],'on':{'click':_0x524954['to'](_0x58b0ba=>{_0x58b0ba[_0x1038('0x26')][_0x1038('0x23')](_0x1038('0x14'))||this['isReady']&&this['isEnabled']&&this[_0x1038('0x1b')](_0x1038('0x9'),{'id':this['id']});})}}]});}['render'](){super[_0x1038('0x18')]();const _0x34bc2d=this[_0x1038('0x4')][_0x1038('0x22')][_0x1038('0x21')];this[_0x1038('0x11')](_0x34bc2d,_0x1038('0x24'),()=>{this[_0x1038('0x1b')]('setName',{'id':this['id'],'name':_0x34bc2d[_0x1038('0x1a')]});});}[_0x1038('0x9')](){this[_0x1038('0xa')]=!0x0;}[_0x1038('0x2c')](){this[_0x1038('0xa')]=!0x1;}[_0x1038('0x17')](){this[_0x1038('0x3')]=!0x0;}['unhighlight'](){this[_0x1038('0x3')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa88b=['false','ck-hidden','set','ck-revision-history-sidebar__subrevision-collapser','true','isVisible','span','toggle','bindTemplate','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner'];(function(_0x1dd3bd,_0xa88b62){const _0x2e9d4c=function(_0x3f4ee1){while(--_0x3f4ee1){_0x1dd3bd['push'](_0x1dd3bd['shift']());}};_0x2e9d4c(++_0xa88b62);}(_0xa88b,0xe1));const _0x2e9d=function(_0x1dd3bd,_0xa88b62){_0x1dd3bd=_0x1dd3bd-0x0;let _0x2e9d4c=_0xa88b[_0x1dd3bd];return _0x2e9d4c;};import{View as _0x2dcadb}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2dcadb{constructor(_0x15bbf1){super(_0x15bbf1);const _0x3a5dc5=this[_0x2e9d('0xb')];this[_0x2e9d('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x2e9d('0x6'),_0x3a5dc5['if'](_0x2e9d('0x8'),_0x2e9d('0x4'),_0x11561b=>!_0x11561b),_0x3a5dc5['if'](_0x2e9d('0x0'),_0x2e9d('0x1'))],'role':'button','aria-pressed':_0x3a5dc5['to']('_isCollapsed',_0x2c43e6=>_0x2c43e6?_0x2e9d('0x3'):_0x2e9d('0x7'))},'children':[{'tag':_0x2e9d('0x9'),'attributes':{'class':['ck',_0x2e9d('0x2')]}}],'on':{'click':_0x3a5dc5['to']('click')}});}[_0x2e9d('0xa')](){this['_isCollapsed']=!this['_isCollapsed'];}}
23
+ const _0x2258=['ck-revision-history-sidebar__subrevision-collapser__inner','toggle','isVisible','setTemplate','_isCollapsed','click','button','bindTemplate','true','ck-hidden','false','ck-revision-history-sidebar__subrevision-collapser','set'];(function(_0x25be16,_0x225875){const _0x153c69=function(_0x263c12){while(--_0x263c12){_0x25be16['push'](_0x25be16['shift']());}};_0x153c69(++_0x225875);}(_0x2258,0x102));const _0x153c=function(_0x25be16,_0x225875){_0x25be16=_0x25be16-0x0;let _0x153c69=_0x2258[_0x25be16];return _0x153c69;};import{View as _0x529f65}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x529f65{constructor(_0x53ed61){super(_0x53ed61);const _0x349449=this[_0x153c('0x9')];this[_0x153c('0x1')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x153c('0x5')]({'tag':'span','attributes':{'class':['ck',_0x153c('0x0'),_0x349449['if'](_0x153c('0x4'),_0x153c('0xb'),_0x545593=>!_0x545593),_0x349449['if'](_0x153c('0x6'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x153c('0x8'),'aria-pressed':_0x349449['to']('_isCollapsed',_0x235980=>_0x235980?_0x153c('0xc'):_0x153c('0xa'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x153c('0x2')]}}],'on':{'click':_0x349449['to'](_0x153c('0x7'))}});}[_0x153c('0x3')](){this[_0x153c('0x6')]=!this[_0x153c('0x6')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ae5=['set','ck-revision-history-sidebar__revision-authors','creator','_parentRevisionId','bind','ck-reset','select','ck-revision-history-sidebar__revision_selected','createdAt','isSelected','ck-revision-history-sidebar__revision__date','_createdAtFormatted','div','fire'];(function(_0x178086,_0x1ae54d){const _0x1ecf40=function(_0x41844b){while(--_0x41844b){_0x178086['push'](_0x178086['shift']());}};_0x1ecf40(++_0x1ae54d);}(_0x1ae5,0xc6));const _0x1ecf=function(_0x178086,_0x1ae54d){_0x178086=_0x178086-0x0;let _0x1ecf40=_0x1ae5[_0x178086];return _0x1ecf40;};import{View as _0x2d8d48}from'ckeditor5/src/ui';import _0x341768 from'./revisionauthorview';import{dateToPrettyFormat as _0x4d0c66}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2d8d48{constructor(_0xc7bf09,_0x882131,_0x474b5e){super(_0xc7bf09);const _0x3a8c13=this['bindTemplate'];this['id']=_0x882131['id'],this[_0x1ecf('0x2')](_0x1ecf('0x6'))['to'](_0x882131),this[_0x1ecf('0xc')](_0x1ecf('0x7'),!0x1),this[_0x1ecf('0x2')]('_createdAtFormatted')['to'](this,_0x1ecf('0x6'),_0x52deb1=>_0x52deb1?_0x4d0c66(_0xc7bf09['uiLanguage'],_0x52deb1):void 0x0),this[_0x1ecf('0x1')]=_0x474b5e,this['setTemplate']({'tag':_0x1ecf('0xa'),'attributes':{'class':['ck',_0x1ecf('0x3'),'ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x3a8c13['if'](_0x1ecf('0x7'),_0x1ecf('0x5'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x1ecf('0x8')]},'children':[{'text':_0x3a8c13['to'](_0x1ecf('0x9'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1ecf('0xd')]},'children':[new _0x341768(_0xc7bf09,_0x882131[_0x1ecf('0x0')],!0x0)]}],'on':{'click':_0x3a8c13['to'](this['select'][_0x1ecf('0x2')](this))}});}[_0x1ecf('0x4')](){this['isSelected']=!0x0,this[_0x1ecf('0xb')](_0x1ecf('0x4'),{'parentId':this[_0x1ecf('0x1')]});}['deselect'](){this[_0x1ecf('0x7')]=!0x1;}}
23
+ const _0x7547=['select','ck-revision-history-sidebar__subrevision','_createdAtFormatted','bindTemplate','bind','fire','isSelected','_parentRevisionId','span','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','createdAt','set','div'];(function(_0x24f836,_0x754741){const _0x10886e=function(_0x34f207){while(--_0x34f207){_0x24f836['push'](_0x24f836['shift']());}};_0x10886e(++_0x754741);}(_0x7547,0xff));const _0x1088=function(_0x24f836,_0x754741){_0x24f836=_0x24f836-0x0;let _0x10886e=_0x7547[_0x24f836];return _0x10886e;};import{View as _0xef5dbc}from'ckeditor5/src/ui';import _0x13dabe from'./revisionauthorview';import{dateToPrettyFormat as _0x38d1fb}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xef5dbc{constructor(_0x567455,_0x6cc58a,_0x28086f){super(_0x567455);const _0x5c699a=this[_0x1088('0x0')];this['id']=_0x6cc58a['id'],this[_0x1088('0x1')](_0x1088('0x8'))['to'](_0x6cc58a),this[_0x1088('0x9')](_0x1088('0x3'),!0x1),this['bind'](_0x1088('0xd'))['to'](this,_0x1088('0x8'),_0x1c6c1f=>_0x1c6c1f?_0x38d1fb(_0x567455['uiLanguage'],_0x1c6c1f):void 0x0),this[_0x1088('0x4')]=_0x28086f,this['setTemplate']({'tag':_0x1088('0xa'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1088('0xc'),_0x5c699a['if'](_0x1088('0x3'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1088('0x5'),'attributes':{'class':['ck',_0x1088('0x7')]},'children':[{'text':_0x5c699a['to'](_0x1088('0xd'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1088('0x6')]},'children':[new _0x13dabe(_0x567455,_0x6cc58a['creator'],!0x0)]}],'on':{'click':_0x5c699a['to'](this['select'][_0x1088('0x1')](this))}});}[_0x1088('0xb')](){this[_0x1088('0x3')]=!0x0,this[_0x1088('0x2')](_0x1088('0xb'),{'parentId':this[_0x1088('0x4')]});}['deselect'](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x10a4=['toLocaleDateString','toLocaleTimeString','long'];(function(_0x231b92,_0x10a453){var _0x379b47=function(_0x4dd350){while(--_0x4dd350){_0x231b92['push'](_0x231b92['shift']());}};_0x379b47(++_0x10a453);}(_0x10a4,0xf7));var _0x379b=function(_0x231b92,_0x10a453){_0x231b92=_0x231b92-0x0;var _0x379b47=_0x10a4[_0x231b92];return _0x379b47;};export function dateToPrettyFormat(_0x55ce7f,_0xad4991){return _0xad4991[_0x379b('0x2')](_0x55ce7f,{'month':_0x379b('0x1'),'day':'numeric'})+',\x20'+_0xad4991[_0x379b('0x0')](_0x55ce7f,{'hour':'numeric','minute':'numeric'});}
23
+ var _0x178e=['toLocaleTimeString','toLocaleDateString','long','numeric'];(function(_0x2230a6,_0x178eb5){var _0x2da4d6=function(_0x5084a7){while(--_0x5084a7){_0x2230a6['push'](_0x2230a6['shift']());}};_0x2da4d6(++_0x178eb5);}(_0x178e,0xf3));var _0x2da4=function(_0x2230a6,_0x178eb5){_0x2230a6=_0x2230a6-0x0;var _0x2da4d6=_0x178e[_0x2230a6];return _0x2da4d6;};export function dateToPrettyFormat(_0x2c9388,_0x1324ec){return _0x1324ec[_0x2da4('0x2')](_0x2c9388,{'month':_0x2da4('0x3'),'day':_0x2da4('0x0')})+',\x20'+_0x1324ec[_0x2da4('0x1')](_0x2c9388,{'hour':'numeric','minute':_0x2da4('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf9ac=['value','shift\x20+\x20tab','220','_focusables','Save','revisionNameInputValue','ck-button-save','revisionName','render','Cancel','_createButton','stopPropagation','_focusCycler','arrowup','reset','add','revisionNameInputView','focusTracker','trim','locale','_createRevisionNameInput','fieldView','cancelButtonView','Name\x20of\x20the\x20revision\x20(optional)','saveButtonView','arrowdown','delegate','forEach','tab','submit','keystrokes','focusFirst','set','type','ck-responsive-form','element','extendTemplate','setTemplate','label'];(function(_0x55086c,_0xf9ac79){const _0xa2674f=function(_0x50208d){while(--_0x50208d){_0x55086c['push'](_0x55086c['shift']());}};_0xa2674f(++_0xf9ac79);}(_0xf9ac,0x1c9));const _0xa267=function(_0x55086c,_0xf9ac79){_0x55086c=_0x55086c-0x0;let _0xa2674f=_0xf9ac[_0x55086c];return _0xa2674f;};import{icons as _0x1bf8bd}from'ckeditor5/src/core';import{ButtonView as _0x1c825a,FocusCycler as _0x6ccdd6,LabeledFieldView as _0x5d82ef,View as _0x3ae135,ViewCollection as _0x4741e9,createLabeledInputText as _0x59aa78,injectCssTransitionDisabler as _0x2a73a8,submitHandler as _0x1a1013}from'ckeditor5/src/ui';import{FocusTracker as _0x3e73b5,KeystrokeHandler as _0x4d6a3e}from'ckeditor5/src/utils';import{getTranslation as _0xbd5b8d}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x3ae135{constructor(_0x476d63){super(_0x476d63),this[_0xa267('0x1c')]=new _0x3e73b5(),this['keystrokes']=new _0x4d6a3e(),this['set'](_0xa267('0x10'),''),this[_0xa267('0x1b')]=this[_0xa267('0x1f')](),this[_0xa267('0x23')]=this[_0xa267('0x15')](_0xbd5b8d(_0x476d63,_0xa267('0xf')),_0x1bf8bd['check'],_0xa267('0x11')),this[_0xa267('0x23')][_0xa267('0x5')]=_0xa267('0x1'),this[_0xa267('0x21')]=this['_createButton'](_0xbd5b8d(_0x476d63,_0xa267('0x14')),_0x1bf8bd['cancel'],'ck-button-cancel','cancel'),this['_focusables']=new _0x4741e9(),this[_0xa267('0x17')]=new _0x6ccdd6({'focusables':this[_0xa267('0xe')],'focusTracker':this[_0xa267('0x1c')],'keystrokeHandler':this[_0xa267('0x2')],'actions':{'focusPrevious':_0xa267('0xc'),'focusNext':_0xa267('0x0')}}),this[_0xa267('0x9')]({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form',_0xa267('0x6')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this[_0xa267('0x21')]]}),_0x2a73a8(this);}[_0xa267('0x13')](){super[_0xa267('0x13')](),_0x1a1013({'view':this}),([this[_0xa267('0x1b')],this['saveButtonView'],this[_0xa267('0x21')]][_0xa267('0x26')](_0x5bdaf0=>{this[_0xa267('0xe')][_0xa267('0x1a')](_0x5bdaf0),this[_0xa267('0x1c')][_0xa267('0x1a')](_0x5bdaf0[_0xa267('0x7')]);}),this[_0xa267('0x2')]['listenTo'](this['element']));const _0xc4d0e3=_0xcd0734=>_0xcd0734[_0xa267('0x16')]();this[_0xa267('0x2')][_0xa267('0x4')]('arrowright',_0xc4d0e3),this[_0xa267('0x2')][_0xa267('0x4')]('arrowleft',_0xc4d0e3),this['keystrokes'][_0xa267('0x4')](_0xa267('0x18'),_0xc4d0e3),this[_0xa267('0x2')][_0xa267('0x4')](_0xa267('0x24'),_0xc4d0e3);}['focus'](){this['_focusCycler'][_0xa267('0x3')]();}get[_0xa267('0x12')](){return this[_0xa267('0x1b')][_0xa267('0x20')][_0xa267('0x7')][_0xa267('0xb')][_0xa267('0x1d')]();}set[_0xa267('0x12')](_0x1ff7eb){this[_0xa267('0x1b')]['fieldView']['element']['value']=_0x1ff7eb[_0xa267('0x1d')]();}[_0xa267('0x19')](){this[_0xa267('0x1b')]['fieldView'][_0xa267('0x7')][_0xa267('0xb')]='';}[_0xa267('0x1f')](){const _0x304d3b=new _0x5d82ef(this[_0xa267('0x1e')],_0x59aa78),_0x1421e2=_0x304d3b['fieldView'];return _0x1421e2[_0xa267('0x8')]({'attributes':{'maxlength':_0xa267('0xd')}}),_0x304d3b[_0xa267('0xa')]=_0xbd5b8d(this[_0xa267('0x1e')],_0xa267('0x22')),_0x1421e2['on']('input',()=>{this['revisionNameInputValue']=_0x1421e2[_0xa267('0x7')][_0xa267('0xb')][_0xa267('0x1d')]();}),_0x304d3b;}['_createButton'](_0x19f91b,_0x388f2e,_0x3e9d2c,_0x206427){const _0xbdd7aa=new _0x1c825a(this[_0xa267('0x1e')]);return _0xbdd7aa[_0xa267('0x4')]({'label':_0x19f91b,'icon':_0x388f2e,'tooltip':!0x0}),_0xbdd7aa[_0xa267('0x8')]({'attributes':{'class':_0x3e9d2c}}),_0x206427&&_0xbdd7aa[_0xa267('0x25')]('execute')['to'](this,_0x206427),_0xbdd7aa;}}
23
+ const _0x13e3=['keystrokes','revisionName','cancelButtonView','ck-responsive-form','_focusCycler','fieldView','add','_createButton','render','form','Save','forEach','_focusables','revisionNameInputValue','revisionNameInputView','tab','ck-revision-history-save-revision-form','focusTracker','ck-button-save','type','label','locale','_createRevisionNameInput','trim','saveButtonView','element','submit','listenTo','extendTemplate','ck-button-cancel','input','setTemplate','set','stopPropagation','shift\x20+\x20tab','arrowleft','220','check','focusFirst','value','arrowright','cancel','delegate','Cancel','Name\x20of\x20the\x20revision\x20(optional)'];(function(_0xac75c5,_0x13e36d){const _0x1dfcb4=function(_0x39d06b){while(--_0x39d06b){_0xac75c5['push'](_0xac75c5['shift']());}};_0x1dfcb4(++_0x13e36d);}(_0x13e3,0x91));const _0x1dfc=function(_0xac75c5,_0x13e36d){_0xac75c5=_0xac75c5-0x0;let _0x1dfcb4=_0x13e3[_0xac75c5];return _0x1dfcb4;};import{icons as _0x94e75}from'ckeditor5/src/core';import{ButtonView as _0x111fda,FocusCycler as _0x2c1db7,LabeledFieldView as _0x94a6fa,View as _0xd3889f,ViewCollection as _0x2a8bb7,createLabeledInputText as _0x328927,injectCssTransitionDisabler as _0x466162,submitHandler as _0x2280b5}from'ckeditor5/src/ui';import{FocusTracker as _0x4aa7c9,KeystrokeHandler as _0x43546b}from'ckeditor5/src/utils';import{getTranslation as _0x4071d5}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class xt extends _0xd3889f{constructor(_0x402ecd){super(_0x402ecd),this[_0x1dfc('0x7')]=new _0x4aa7c9(),this[_0x1dfc('0x23')]=new _0x43546b(),this[_0x1dfc('0x16')](_0x1dfc('0x3'),''),this[_0x1dfc('0x4')]=this[_0x1dfc('0xc')](),this[_0x1dfc('0xe')]=this[_0x1dfc('0x2a')](_0x4071d5(_0x402ecd,_0x1dfc('0x0')),_0x94e75[_0x1dfc('0x1b')],_0x1dfc('0x8')),this[_0x1dfc('0xe')][_0x1dfc('0x9')]=_0x1dfc('0x10'),this[_0x1dfc('0x25')]=this[_0x1dfc('0x2a')](_0x4071d5(_0x402ecd,_0x1dfc('0x21')),_0x94e75['cancel'],_0x1dfc('0x13'),_0x1dfc('0x1f')),this[_0x1dfc('0x2')]=new _0x2a8bb7(),this[_0x1dfc('0x27')]=new _0x2c1db7({'focusables':this[_0x1dfc('0x2')],'focusTracker':this[_0x1dfc('0x7')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x1dfc('0x18'),'focusNext':_0x1dfc('0x5')}}),this[_0x1dfc('0x15')]({'tag':_0x1dfc('0x2c'),'attributes':{'class':['ck',_0x1dfc('0x6'),_0x1dfc('0x26')],'tabindex':'-1'},'children':[this[_0x1dfc('0x4')],this[_0x1dfc('0xe')],this[_0x1dfc('0x25')]]}),_0x466162(this);}[_0x1dfc('0x2b')](){super['render'](),_0x2280b5({'view':this}),([this[_0x1dfc('0x4')],this['saveButtonView'],this[_0x1dfc('0x25')]][_0x1dfc('0x1')](_0x3c0998=>{this[_0x1dfc('0x2')][_0x1dfc('0x29')](_0x3c0998),this[_0x1dfc('0x7')][_0x1dfc('0x29')](_0x3c0998['element']);}),this['keystrokes'][_0x1dfc('0x11')](this[_0x1dfc('0xf')]));const _0xb61c6e=_0x259d71=>_0x259d71[_0x1dfc('0x17')]();this[_0x1dfc('0x23')][_0x1dfc('0x16')](_0x1dfc('0x1e'),_0xb61c6e),this[_0x1dfc('0x23')][_0x1dfc('0x16')](_0x1dfc('0x19'),_0xb61c6e),this[_0x1dfc('0x23')][_0x1dfc('0x16')]('arrowup',_0xb61c6e),this[_0x1dfc('0x23')][_0x1dfc('0x16')]('arrowdown',_0xb61c6e);}['focus'](){this[_0x1dfc('0x27')][_0x1dfc('0x1c')]();}get[_0x1dfc('0x24')](){return this['revisionNameInputView']['fieldView'][_0x1dfc('0xf')][_0x1dfc('0x1d')][_0x1dfc('0xd')]();}set['revisionName'](_0x4df341){this[_0x1dfc('0x4')][_0x1dfc('0x28')][_0x1dfc('0xf')][_0x1dfc('0x1d')]=_0x4df341[_0x1dfc('0xd')]();}['reset'](){this[_0x1dfc('0x4')][_0x1dfc('0x28')][_0x1dfc('0xf')][_0x1dfc('0x1d')]='';}[_0x1dfc('0xc')](){const _0x2e26c1=new _0x94a6fa(this['locale'],_0x328927),_0x52009d=_0x2e26c1['fieldView'];return _0x52009d[_0x1dfc('0x12')]({'attributes':{'maxlength':_0x1dfc('0x1a')}}),_0x2e26c1[_0x1dfc('0xa')]=_0x4071d5(this['locale'],_0x1dfc('0x22')),_0x52009d['on'](_0x1dfc('0x14'),()=>{this['revisionNameInputValue']=_0x52009d[_0x1dfc('0xf')][_0x1dfc('0x1d')][_0x1dfc('0xd')]();}),_0x2e26c1;}[_0x1dfc('0x2a')](_0xfbc3e4,_0x20f8b7,_0x224e16,_0x21b7f4){const _0x53f84d=new _0x111fda(this[_0x1dfc('0xb')]);return _0x53f84d['set']({'label':_0xfbc3e4,'icon':_0x20f8b7,'tooltip':!0x0}),_0x53f84d['extendTemplate']({'attributes':{'class':_0x224e16}}),_0x21b7f4&&_0x53f84d[_0x1dfc('0x20')]('execute')['to'](this,_0x21b7f4),_0x53f84d;}}