@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230825.0 → 0.0.0-nightly-20230827.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 _0x2083=['element','resolve','getAttributes','hasAttribute','revision-suggestion:','collaboration.channelId','revisionHistoryAttachChange','index','distance','forEach','get','string','startIndex','test','schema','diffData','uiElement','comment','toViewRange','deletions','activeView','wrap','revision','stop','userId','deletion','getItems','modelRange','_cleanMarkers','mapViewToDom','default','slice','removeMarker:revision-suggestion','showPreviousChange','elementStart','then','getIndex','_removeRevisionMarkers','data','affectsData','createPositionBefore','getRoot','top','toData','isBefore','isAfter','level','rootName','_activeViewTarget','conversion','ck-suggestion-preview-marker-','markersStart','elementEnd','next','markerName','activeChange','range','removeAttribute','data-revision-','isRemoveSuggestion','_changeView','refresh','loadRevisionData','dataDowncast','processor','_processTape','change:isEnabled','editor','WidgetToolbarRepository','markerNameToElements','config','changes','domEvent','element:pre','document','_markMarkers','repository','children','getDomRoot','nextSibling','done','code','insertion','destroy','_getDiff','pairId','ck-revision-history-root-','pluginName','nodeAfter','_makeModelFromTape','isOnRoot','split','object','ck-suggestion-preview-marker','change:activeChange','_revisions','isRemoved','indexOf','revision:','softBreak','addClass','parent','insert','ck-revision-history-root-remove','attributesBefore','attachChange','restoreRevision','init','view','upcast','execute','bindElementToMarker','markers','type','change:isReady','isAdded','dataToMarker','getCustomProperty','isCollapsed','revision-suggestion','vid','end','data-change-id','concat','_markSuggestions','model','insertions','getAttribute','isNavigationMode','push','_setDistance','_joinTapes','keys','vid_start','from','hasClass','vid_end','_getViewForChange','highest','compare','markerToHighlight','item','forward','findIndex','ck-suggestion-marker','commands','adapter','getRevision','_getRevisionsRange','_initInteractions','detachRoot','unshift','set','enableReadOnlyMode','target','_removeMissingPairs','low','restoreRevisionCallback','createRangeIn','viewItem','includes','all','ck-suggestion-marker--active','addRevision','unbindElementFromMarkerName','bottom','high','splice','isAttached','pop','isObject','markersEnd','isAddSuggestion','editing','_appendChild','startsWith','_makeModelFromViewString','_getChangeFromId','-new','maxOffset','nextPosition','removeMarker:revision','diff','abs','backward','editingDowncast','_fixObsoleteTags','add','_step','setAttribute','isReady','name','getRevisionData','span','return','filter','mouseover','elementToAttribute','parse','_markMismatchedRemovedTags','shift','attributesAfter','mousedown','revisionHistory','start','consume','toModel','mapper','_sortAndFilterDiffChanges','removeClass','_update','enqueueChange','text','newRevisionId','createUIElement','remove','downcastDispatcher','_data','_makeTape','toViewPosition','selection','markerToData','createPositionFromPath','isBlock','_markInsertions','flat','ck-revision-history-root--active','values','addRevisionData','isContent','addMarker:revision-suggestion:deletion','locale','merge','side','change','change:numberOfChanges','markerRange','previousPosition','bind','map','revisionHistoryLabel','_cleanUp','isEnabled','getChild','ck-suggestion-marker-merge','_removeUnsupportedChanges','ck-suggestion-marker-','isIncorrect','length','attributes','getWalker','isEqual','consumable','isLimit','_threeWayMerge','_balloon','ck-editor__editable__overlay','_changeIdToChange','forceDisabled','right','_setConversion','attribute:vid','getClientRects','addMarker:revision','writer','plugins','ck-suggestion-marker-split','numberOfChanges','error','endIndex','for','sort','marked','_refreshStartEndIndex','isSuggestion','revision-viewer','has','createRange','isAtEnd','changeId','getRootNames','_getViewObj','useFillerType','listenTo','_findChangeIdFromDomTarget','delete','domConverter','change:activeView'];(function(_0x443b11,_0x2083e5){const _0x5cd953=function(_0x128b38){while(--_0x128b38){_0x443b11['push'](_0x443b11['shift']());}};_0x5cd953(++_0x2083e5);}(_0x2083,0x182));const _0x5cd9=function(_0x443b11,_0x2083e5){_0x443b11=_0x443b11-0x0;let _0x5cd953=_0x2083[_0x443b11];return _0x5cd953;};import{Plugin as _0x117d69,Command as _0x4d70d4}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5ef46d}from'ckeditor5/src/utils';import{ContextualBalloon as _0x58c748}from'ckeditor5/src/ui';import{DocumentFragment as _0x211351,Element as _0x1565a7,Text as _0x4f0a0a,ViewDocumentFragment as _0x402449,ViewText as _0x1fa6ff,ViewElement as _0xd1a5a0,ViewContainerElement as _0x438ef0,ViewAttributeElement as _0x5c732f,ViewEmptyElement as _0xe84082,ViewRawElement as _0x15d513,ViewUIElement as _0x1987cf}from'ckeditor5/src/engine';import{Users as _0x296dd7,getMarkerDomElement as _0x3441c4}from'ckeditor5-collaboration/src/collaboration-core';import _0x4f2711 from'./ui/revisionviewer/changedetailsview';import _0x3c9592 from'./revisionsrepository';import _0x72731d from'./changeitem';import{default as _0x34a787}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x463aae}from'lodash-es';const tt={'c':_0x438ef0,'a':_0x5c732f,'e':_0xe84082,'r':_0x15d513,'u':_0x1987cf};export default class d extends _0x117d69{static get[_0x5cd9('0x115')](){return'RevisionViewer';}static get['requires'](){return[_0x296dd7,_0x58c748,_0x3c9592];}constructor(_0x48b51a){super(_0x48b51a),this['repository']=this[_0x5cd9('0x101')]['plugins']['get']('RevisionsRepository'),this['set'](_0x5cd9('0xf5'),null),this['set']('activeView',null),this[_0x5cd9('0xee')]=null,this[_0x5cd9('0x36')](_0x5cd9('0x54'),null),this[_0x5cd9('0x36')](_0x5cd9('0x5c'),!0x1),this[_0x5cd9('0x36')](_0x5cd9('0x90'),!0x0),this['on']('change:isEnabled',(_0x2471cf,_0x1870dd,_0x4185fc)=>{this[_0x5cd9('0xf5')]=null,this['activeView']=null,this[_0x5cd9('0x101')]['editing'][_0x5cd9('0xa')]['change'](_0x3b82ae=>{for(const _0x3cda74 of this['editor'][_0x5cd9('0x4b')][_0x5cd9('0xa')][_0x5cd9('0x108')]['roots'])_0x4185fc?_0x3b82ae[_0x5cd9('0x6f')]('ck-editor__editable__overlay',_0x3cda74):_0x3b82ae[_0x5cd9('0x2')](_0x5cd9('0x9e'),_0x3cda74);});}),this[_0x5cd9('0x8c')](_0x5cd9('0x1e'))['to'](this,_0x5cd9('0xf5'),_0x537072=>null!==_0x537072),this[_0x5cd9('0x8c')]('currentChangeNumber')['to'](this,_0x5cd9('0x5c'),this,_0x5cd9('0x54'),this,_0x5cd9('0xf5'),(_0x3798a1,_0xc50e06,_0x524989)=>_0x3798a1&&_0x524989?_0xc50e06['changes'][_0x5cd9('0xe2')](_0x524989):0x0),this['bind'](_0x5cd9('0xa9'))['to'](this,'isReady',this,_0x5cd9('0x54'),(_0x3a2839,_0x19ef90)=>_0x3a2839?_0x19ef90[_0x5cd9('0x105')][_0x5cd9('0x96')]:0x0),this[_0x5cd9('0xfa')]=null,this[_0x5cd9('0x9f')]=new Map(),this[_0x5cd9('0x30')]=null,this[_0x5cd9('0x9d')]=this[_0x5cd9('0x101')][_0x5cd9('0xa7')][_0x5cd9('0xc8')](_0x58c748);}[_0x5cd9('0x9')](){const _0x3a83cc=this[_0x5cd9('0x101')],_0x18916e=new ShowChangeCommand(_0x3a83cc,{'direction':_0x5cd9('0x56')}),_0x2179aa=new ShowChangeCommand(_0x3a83cc,{'direction':'forward'});(_0x3a83cc[_0x5cd9('0x2f')][_0x5cd9('0x59')](_0x5cd9('0xdf'),_0x18916e),_0x3a83cc[_0x5cd9('0x2f')][_0x5cd9('0x59')]('showNextChange',_0x2179aa),_0x3a83cc[_0x5cd9('0x2f')]['add'](_0x5cd9('0x8'),new RestoreRevisionCommand(_0x3a83cc)),this['on'](_0x5cd9('0x89'),()=>{_0x18916e[_0x5cd9('0xfb')](),_0x2179aa[_0x5cd9('0xfb')]();}),this[_0x5cd9('0xa2')](),this[_0x5cd9('0x33')](),_0x3a83cc[_0x5cd9('0x37')](_0x5cd9('0xb1')),_0x3a83cc[_0x5cd9('0xa7')][_0x5cd9('0xb2')]('WidgetToolbarRepository'))&&_0x3a83cc[_0x5cd9('0xa7')][_0x5cd9('0xc8')](_0x5cd9('0x102'))[_0x5cd9('0xa0')](_0x5cd9('0xb1'));}async[_0x5cd9('0x5e')](_0xe591e6){await this[_0x5cd9('0xfc')](_0xe591e6);const _0x29aef6={};for(const _0xfa970a in _0xe591e6[_0x5cd9('0xcd')]){if(_0xe591e6['diffData'][_0xfa970a][_0x5cd9('0x7')]&&!_0xe591e6[_0x5cd9('0xcd')][_0xfa970a]['attachChange'][_0x5cd9('0x46')])continue;const _0x38afd2=this['_removeRevisionMarkers'](JSON[_0x5cd9('0x64')](_0xe591e6[_0x5cd9('0xcd')][_0xfa970a][_0x5cd9('0x1c')])),_0x223216=this[_0x5cd9('0x101')][_0x5cd9('0x4b')][_0x5cd9('0xa')]['document'],_0x28f063=new _0x402449(_0x223216,_0x38afd2[_0x5cd9('0x8d')](_0x1d9967=>this['_getViewObj'](_0x1d9967)));this[_0x5cd9('0x101')]['data'][_0x5cd9('0xfe')]['useFillerType'](_0x5cd9('0xae')),_0x29aef6[_0xfa970a]=this[_0x5cd9('0x101')]['data']['processor'][_0x5cd9('0xe9')](_0x28f063),this[_0x5cd9('0x101')][_0x5cd9('0xe4')][_0x5cd9('0xfe')][_0x5cd9('0xb8')](_0x5cd9('0xdc'));}return _0x29aef6;}async['getRevisionRootsAttributes'](_0x5e0bf3){await this[_0x5cd9('0xfc')](_0x5e0bf3);const _0x16e1d5={};for(const _0x3e844f in _0x5e0bf3[_0x5cd9('0xcd')])_0x5e0bf3[_0x5cd9('0xcd')][_0x3e844f]['attachChange']&&!_0x5e0bf3['diffData'][_0x3e844f]['attachChange'][_0x5cd9('0x46')]||(_0x16e1d5[_0x3e844f]=_0x5e0bf3[_0x5cd9('0xcd')][_0x3e844f][_0x5cd9('0x67')]||{});return _0x16e1d5;}[_0x5cd9('0xe3')](_0x9d2cbb){return(_0x9d2cbb=_0x9d2cbb['filter'](_0x44c1ec=>!_0x44c1ec[_0x5cd9('0x5d')]||'revision-start'!==_0x44c1ec[_0x5cd9('0x5d')]&&'revision-end'!==_0x44c1ec[_0x5cd9('0x5d')]))[_0x5cd9('0xc7')](_0x3ea76b=>{_0x5cd9('0xc9')!=typeof _0x3ea76b&&(_0x3ea76b[_0x5cd9('0x10b')]=this[_0x5cd9('0xe3')](_0x3ea76b[_0x5cd9('0x10b')]),_0x3ea76b['attributes']=_0x3ea76b[_0x5cd9('0x97')]['filter'](_0x114f79=>!_0x114f79[0x0][_0x5cd9('0x4d')](_0x5cd9('0xf8'))));}),_0x9d2cbb;}async[_0x5cd9('0x29')](_0x257335,_0xbd8b30,_0x2d93ac=!0x1){if(!this[_0x5cd9('0x90')])return;const _0x269b30=this['diff'],_0x3a4c20=this['repository'],_0x148ba3='string'==typeof _0x257335?_0x3a4c20[_0x5cd9('0x31')](_0x257335):_0x257335,_0x4f6301=_0x5cd9('0xc9')==typeof _0xbd8b30?_0x3a4c20['getRevision'](_0xbd8b30):_0xbd8b30,_0x10f264=_0x148ba3['id'],_0x4c6af0=_0x4f6301?_0x4f6301['id']:null;if(!_0x2d93ac&&this[_0x5cd9('0x54')]&&this['diff'][_0x5cd9('0x73')]===_0x10f264&&this[_0x5cd9('0x54')]['oldRevisionId']===_0x4c6af0)return Promise[_0x5cd9('0xbf')]();this[_0x5cd9('0x5c')]=!0x1,this[_0x5cd9('0xd2')]=null,this[_0x5cd9('0xf5')]=null,this[_0x5cd9('0x54')]=new _0x34a787(_0x10f264,_0x4c6af0);const _0x37027a=this[_0x5cd9('0x32')](_0x148ba3,_0x4f6301,!0x0)[_0x5cd9('0x8d')](_0x3343a0=>this[_0x5cd9('0xfc')](_0x3343a0));return _0x37027a[_0x5cd9('0x1f')](new Promise(_0x44dcb7=>{setTimeout(_0x44dcb7,0x14);})),Promise[_0x5cd9('0x3f')](_0x37027a)[_0x5cd9('0xe1')](()=>{if(!this[_0x5cd9('0x90')])return;this['_cleanUp']();const _0x5e29f1=this[_0x5cd9('0x112')](_0x10f264,_0x4c6af0);for(const _0x5de668 of _0x5e29f1[_0x5cd9('0x105')])this[_0x5cd9('0x9f')]['set'](_0x5de668['id'],_0x5de668);this['editor']['model'][_0x5cd9('0x71')]({'isUndoable':!0x1},_0x5e404f=>{for(const _0x580ada of this[_0x5cd9('0x101')][_0x5cd9('0x1b')][_0x5cd9('0x108')][_0x5cd9('0xb6')]())_0x5e404f[_0x5cd9('0x34')](_0x580ada);for(const _0x419521 of Object[_0x5cd9('0x22')](_0x5e29f1['model'])){const _0x21ccc3=_0x5e404f['addRoot'](_0x419521);for(const _0x28bcb9 of Object[_0x5cd9('0x22')](_0x5e29f1[_0x5cd9('0x97')][_0x419521]))_0x5e404f[_0x5cd9('0x5b')](_0x28bcb9,_0x5e29f1[_0x5cd9('0x97')][_0x419521][_0x28bcb9],_0x21ccc3);_0x5e404f[_0x5cd9('0x4')](_0x5e29f1[_0x5cd9('0x1b')][_0x419521],_0x21ccc3,0x0);}}),this['diff']['_setChanges'](this[_0x5cd9('0x6e')](_0x5e29f1[_0x5cd9('0x105')])),this['isReady']=!0x0;})['catch'](_0x2aeeab=>{console[_0x5cd9('0xaa')](_0x2aeeab),this[_0x5cd9('0x8f')](),_0x269b30&&(this[_0x5cd9('0x54')]=_0x269b30),this['isReady']=!0x0;});}[_0x5cd9('0x82')](_0x3bb09a,_0xf0c092){const _0x3a5f98=this[_0x5cd9('0x10a')]['createRevision'](_0x3bb09a);return _0x3a5f98['on']('_update',(_0x2b80da,_0x335311,_0x213f27)=>_0xf0c092(_0x335311,_0x213f27,_0x3a5f98)),this[_0x5cd9('0x10a')][_0x5cd9('0x41')](_0x3a5f98),_0x3a5f98;}[_0x5cd9('0xfc')](_0x5093d1){if(!_0x5093d1||_0x5093d1[_0x5cd9('0xcd')])return Promise['resolve']();{const _0x5e40d0=this[_0x5cd9('0x101')]['config']['get'](_0x5cd9('0xc3'));return this[_0x5cd9('0x30')][_0x5cd9('0x31')]({'channelId':_0x5e40d0,'revisionId':_0x5093d1['id']})[_0x5cd9('0xe1')](_0x5c160f=>{_0x5093d1[_0x5cd9('0x70')]({'diffData':_0x5c160f['diffData']},!0x0);});}}[_0x5cd9('0x8f')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x5cd9('0xfa')]&&this['_changeView'][_0x5cd9('0x111')](),this[_0x5cd9('0xfa')]=null,this[_0x5cd9('0x9f')]['clear'](),this[_0x5cd9('0x101')]['model']['enqueueChange']({'isUndoable':!0x1},_0x3d3d7b=>{for(const _0x5951c7 of this[_0x5cd9('0x101')][_0x5cd9('0x1b')][_0x5cd9('0x108')][_0x5cd9('0xb6')]())_0x3d3d7b[_0x5cd9('0x34')](_0x5951c7);});}['_sortAndFilterDiffChanges'](_0x2948b7){const _0x1b4d8f=[],_0x440172=new Map();for(const _0x12336a of this[_0x5cd9('0x101')][_0x5cd9('0x1b')]['document'][_0x5cd9('0xb6')]()){const _0x263957=this[_0x5cd9('0x101')][_0x5cd9('0x4b')][_0x5cd9('0xa')][_0x5cd9('0x10c')](_0x12336a);if(!_0x263957)continue;const _0x531dd8=_0x263957[_0x5cd9('0xa4')]()[_0x5cd9('0x2b')](0x0);_0x531dd8&&(_0x1b4d8f['push'](_0x12336a),_0x440172[_0x5cd9('0x36')](_0x12336a,_0x531dd8));}return _0x1b4d8f[_0x5cd9('0xad')]((_0x1549de,_0x4edc3c)=>{const _0x109986=_0x440172['get'](_0x1549de),_0x4abfa=_0x440172[_0x5cd9('0xc8')](_0x4edc3c);return _0x109986['y']-_0x4abfa['y']||_0x109986['x']-_0x4abfa['x'];}),(_0x2948b7=_0x2948b7[_0x5cd9('0x61')](_0x47f251=>_0x1b4d8f[_0x5cd9('0x3e')](_0x47f251[_0x5cd9('0xed')])))[_0x5cd9('0xad')]((_0x144d31,_0x58a20a)=>_0x1b4d8f[_0x5cd9('0x11f')](_0x144d31[_0x5cd9('0xed')])-_0x1b4d8f[_0x5cd9('0x11f')](_0x58a20a['rootName'])),_0x2948b7;}['_makeTape'](_0x224b1c){const _0x43b97c=Array[_0x5cd9('0x24')](_0x224b1c['markers'])[_0x5cd9('0x61')](([_0x32e698,_0x49c3f3])=>_0x32e698[_0x5cd9('0x4d')](_0x5cd9('0x0'))&&!_0x49c3f3[_0x5cd9('0x14')]),_0x4ca780=Array[_0x5cd9('0x24')](this[_0x5cd9('0x101')][_0x5cd9('0x1b')][_0x5cd9('0x3c')](_0x224b1c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x43b97c[_0x5cd9('0x96')])for(const _0x87b59a of _0x4ca780){const [_0x33a6fa,_0x41de27]=_0x43b97c[0x0],[,_0x34074b,_0xa747e0]=_0x33a6fa[_0x5cd9('0x119')](':');if(_0x41de27[_0x5cd9('0x17')]['isEqual'](_0x87b59a[_0x5cd9('0x52')])&&_0x43b97c[_0x5cd9('0x66')](),(_0x87b59a[_0x5cd9('0x8b')][_0x5cd9('0x99')](_0x41de27['start'])||_0x87b59a[_0x5cd9('0x8b')][_0x5cd9('0xeb')](_0x41de27[_0x5cd9('0x6a')]))&&(_0x5cd9('0x110')==_0x34074b?_0x87b59a['isAdded']={'userId':_0xa747e0}:'deletion'==_0x34074b&&(_0x87b59a['isRemoved']={'userId':_0xa747e0})),0x0==_0x43b97c[_0x5cd9('0x96')])break;}return _0x4ca780;}[_0x5cd9('0xaf')](_0x59e93d){const _0x3d381f=new Map();for(let _0x164f6a=0x0;_0x164f6a<_0x59e93d[_0x5cd9('0x96')];_0x164f6a++)_0x5cd9('0x72')===_0x59e93d[_0x164f6a]['type']?(_0x59e93d[_0x164f6a][_0x5cd9('0x2b')][_0x5cd9('0xca')]=_0x164f6a,_0x59e93d[_0x164f6a][_0x5cd9('0x2b')][_0x5cd9('0xab')]=_0x164f6a):(_0x5cd9('0xe0')===_0x59e93d[_0x164f6a][_0x5cd9('0xf')]?_0x59e93d[_0x164f6a][_0x5cd9('0x2b')]['startIndex']=_0x164f6a:_0x5cd9('0xf2')===_0x59e93d[_0x164f6a][_0x5cd9('0xf')]&&(_0x59e93d[_0x164f6a][_0x5cd9('0x2b')][_0x5cd9('0xab')]=_0x164f6a),_0x3d381f[_0x5cd9('0x36')](_0x59e93d[_0x164f6a]['id'],_0x164f6a));for(const _0x5c6991 of _0x3d381f[_0x5cd9('0x81')]())'elementStart'===_0x59e93d[_0x5c6991][_0x5cd9('0xf')]?_0x59e93d[_0x5c6991][_0x5cd9('0x2b')][_0x5cd9('0xab')]=_0x3d381f[_0x5cd9('0xc8')](_0x59e93d[_0x5c6991][_0x5cd9('0x113')]):_0x5cd9('0xf2')===_0x59e93d[_0x5c6991][_0x5cd9('0xf')]&&(_0x59e93d[_0x5c6991][_0x5cd9('0x2b')][_0x5cd9('0xca')]=_0x3d381f[_0x5cd9('0xc8')](_0x59e93d[_0x5c6991][_0x5cd9('0x113')]));}['_processTape'](_0x45c4fc){for(let _0x2bd626=0x0;_0x2bd626<_0x45c4fc[_0x5cd9('0x96')];_0x2bd626++){if(_0x5cd9('0xe0')===_0x45c4fc[_0x2bd626][_0x5cd9('0xf')])_0x45c4fc[_0x2bd626][_0x5cd9('0x2b')][_0x5cd9('0xca')]=_0x2bd626;else{if(_0x5cd9('0xf2')===_0x45c4fc[_0x2bd626][_0x5cd9('0xf')]){_0x45c4fc[_0x2bd626]['item'][_0x5cd9('0xab')]=_0x2bd626;const _0x47e039=_0x45c4fc[_0x2bd626][_0x5cd9('0x2b')][_0x5cd9('0xca')];_0x45c4fc[_0x47e039][_0x5cd9('0x113')]=_0x45c4fc[_0x2bd626]['id'],_0x45c4fc[_0x2bd626][_0x5cd9('0x113')]=_0x45c4fc[_0x47e039]['id'];}else _0x45c4fc[_0x2bd626]['item'][_0x5cd9('0xca')]=_0x2bd626,_0x45c4fc[_0x2bd626][_0x5cd9('0x2b')]['endIndex']=_0x2bd626,_0x45c4fc[_0x2bd626]['pairId']=null;}_0x45c4fc[_0x2bd626][_0x5cd9('0xf1')]||(_0x45c4fc[_0x2bd626][_0x5cd9('0xf1')]=[],_0x45c4fc[_0x2bd626]['markersEnd']=[]);}}['_markInsertions'](_0x41be52,_0x1b51bf){const _0xaff77e=_0x41be52['filter'](_0x153b27=>!_0x153b27[_0x5cd9('0x11')]);for(let _0x418f40=0x0;_0x418f40<_0x1b51bf[_0x5cd9('0x96')];_0x418f40++)_0x1b51bf[_0x418f40]['isAdded']&&(_0xaff77e[_0x418f40][_0x5cd9('0x11')]=_0x1b51bf[_0x418f40][_0x5cd9('0x11')]);}[_0x5cd9('0x4e')](_0x464c2e){const _0x2d57c7=JSON[_0x5cd9('0x64')](_0x464c2e),_0x32e589=this[_0x5cd9('0x101')][_0x5cd9('0x4b')][_0x5cd9('0xa')][_0x5cd9('0x108')],_0x1332d7=new _0x402449(_0x32e589,_0x2d57c7[_0x5cd9('0x8d')](_0x4609ff=>this[_0x5cd9('0xb7')](_0x4609ff)));return this['editor']['data'][_0x5cd9('0x6c')](_0x1332d7);}[_0x5cd9('0xb7')](_0x13f00f){const _0x2d4e9c=this['editor']['editing'][_0x5cd9('0xa')][_0x5cd9('0x108')];if(_0x5cd9('0xc9')==typeof _0x13f00f)return new _0x1fa6ff(_0x2d4e9c,_0x13f00f);{const _0x5e5c77=_0x13f00f[_0x5cd9('0x10b')][_0x5cd9('0x8d')](_0x45ac19=>this['_getViewObj'](_0x45ac19));return new(tt[_0x13f00f[(_0x5cd9('0xf'))]]||_0xd1a5a0)(_0x2d4e9c,_0x13f00f[_0x5cd9('0x5d')],_0x13f00f[_0x5cd9('0x97')],_0x5e5c77);}}[_0x5cd9('0x112')](_0x57022a,_0x123270=null){const _0x110542=this[_0x5cd9('0x10a')][_0x5cd9('0x31')](_0x57022a),_0x132643=_0x123270?this[_0x5cd9('0x10a')]['getRevision'](_0x123270):null,_0x3c114f=this[_0x5cd9('0x32')](_0x110542,_0x132643),_0x4be878=_0x3c114f[_0x3c114f['length']-0x1],_0x36218a=new Map(),_0x50dc1a={'model':{},'attributes':{},'changes':[]},_0x2109e1=new Set(),_0x414375=new Map();for(let _0x37656d=_0x3c114f[_0x5cd9('0x96')]-0x1;_0x37656d>=0x0;_0x37656d--){const _0x3f7400=_0x3c114f[_0x37656d];for(const _0x508da1 of Object[_0x5cd9('0x22')](_0x3f7400[_0x5cd9('0xcd')]))if(_0x3f7400[_0x5cd9('0xcd')][_0x508da1][_0x5cd9('0x7')]){const _0x45b517=_0x3f7400[_0x5cd9('0xcd')][_0x508da1]['attachChange'];_0x45b517['isAttached']?(_0x2109e1['add'](_0x508da1),_0x414375[_0x5cd9('0xb2')](_0x508da1)&&_0x414375['get'](_0x508da1)[_0x5cd9('0xd6')]==_0x45b517['userId']?_0x414375[_0x5cd9('0xbb')](_0x508da1):_0x414375[_0x5cd9('0x36')](_0x508da1,_0x45b517)):_0x414375[_0x5cd9('0xb2')](_0x508da1)?(_0x2109e1['delete'](_0x508da1),_0x414375[_0x5cd9('0xbb')](_0x508da1)):(_0x2109e1[_0x5cd9('0x59')](_0x508da1),_0x414375['set'](_0x508da1,_0x45b517));}else _0x2109e1['add'](_0x508da1);}for(const _0xdfd11a of _0x2109e1){const _0x1903d1=_0x414375[_0x5cd9('0xb2')](_0xdfd11a)&&!_0x414375[_0x5cd9('0xc8')](_0xdfd11a)[_0x5cd9('0x46')];let _0x4fd4f4=_0x1903d1?_0x3c114f[_0x5cd9('0x96')]-0x1:0x0;const _0x50b840=_0x1903d1?-0x1:0x1;for(;_0x3c114f[_0x4fd4f4];){const _0x89baaa=_0x3c114f[_0x4fd4f4];if(_0x89baaa[_0x5cd9('0xcd')][_0xdfd11a]){const _0x3acbc3=_0x1903d1?_0x89baaa['diffData'][_0xdfd11a][_0x5cd9('0x6')]:_0x89baaa[_0x5cd9('0xcd')][_0xdfd11a][_0x5cd9('0x67')];_0x50dc1a[_0x5cd9('0x97')][_0xdfd11a]=_0x3acbc3?_0x463aae(_0x3acbc3):{};break;}_0x4fd4f4+=_0x50b840;}}for(const _0x55220b of _0x3c114f){_0x55220b[_0x5cd9('0x1b')]={};for(const _0x40822a of _0x55220b['authors'])_0x36218a[_0x5cd9('0x36')](_0x40822a['id'],_0x40822a);for(const _0x1b64dd of _0x2109e1){const _0x3219b9=_0x55220b[_0x5cd9('0xcd')][_0x1b64dd]?_0x55220b['diffData'][_0x1b64dd][_0x5cd9('0x1c')]:'[]',_0xcdc51a=_0x55220b[_0x5cd9('0xcd')][_0x1b64dd]?_0x55220b[_0x5cd9('0xcd')][_0x1b64dd][_0x5cd9('0xd1')]:'[]';_0x55220b[_0x5cd9('0x1b')][_0x1b64dd]={'insertions':this[_0x5cd9('0x4e')](_0x3219b9),'deletions':this['_makeModelFromViewString'](_0xcdc51a)};}}for(const _0x41ffa9 of _0x2109e1){let _0x373569=null,_0x4b0b0c=0x0;const _0x531c9a=new Map(Array['from'](_0x110542[_0x5cd9('0x1b')][_0x41ffa9]['insertions'][_0x5cd9('0xe')])['filter'](([_0x4261ac])=>!_0x4261ac[_0x5cd9('0x4d')](_0x5cd9('0x0'))));let _0x310791=0x0;for(const _0x1aef10 of _0x3c114f){const _0x221bf=this[_0x5cd9('0x78')](_0x1aef10[_0x5cd9('0x1b')][_0x41ffa9][_0x5cd9('0x1c')]);_0x1aef10==_0x110542?(_0x373569=_0x221bf,_0x4b0b0c=_0x373569[_0x5cd9('0x96')],_0x373569[_0x5cd9('0xc7')](_0x166822=>{_0x166822['id']=_0x310791++;}),this[_0x5cd9('0xff')](_0x373569)):this[_0x5cd9('0x7e')](_0x373569,_0x221bf);const _0x596f4c=_0x373569['filter'](_0x132d2a=>!_0x132d2a['isAdded'])[_0x5cd9('0x8d')](_0x52d9ed=>_0x52d9ed['id']);let _0x3c5bd8=0x0;const _0xdd1ef7=this[_0x5cd9('0x78')](_0x1aef10[_0x5cd9('0x1b')][_0x41ffa9][_0x5cd9('0xd1')]);_0xdd1ef7[_0x5cd9('0xc7')](_0x5f41cc=>{_0x5f41cc['isRemoved']?_0x5f41cc['id']=_0x4b0b0c++:_0x5f41cc['id']=_0x596f4c[_0x3c5bd8++];}),this['_processTape'](_0xdd1ef7),this[_0x5cd9('0x20')](_0x373569,_0x5cd9('0x11')),this[_0x5cd9('0x20')](_0xdd1ef7,_0x5cd9('0x11e')),_0x1aef10==_0x110542&&this['_markMarkers'](_0x373569,_0x531c9a),_0x373569=this['_joinTapes'](_0x373569,_0xdd1ef7),this['_refreshStartEndIndex'](_0x373569),this[_0x5cd9('0x20')](_0x373569,_0x5cd9('0x11e'));}_0x373569=_0x373569[_0x5cd9('0x61')](_0x35ba86=>!(_0x35ba86[_0x5cd9('0x11')]&&_0x35ba86[_0x5cd9('0x11e')]));const _0x131243=new Map(_0x4be878['model'][_0x41ffa9][_0x5cd9('0xd1')][_0x5cd9('0xe')]),_0x5d7c69=new Set(_0x531c9a[_0x5cd9('0x22')]());for(const _0x587a74 of _0x131243[_0x5cd9('0x22')]())_0x5d7c69[_0x5cd9('0xbb')](_0x587a74);this[_0x5cd9('0x1a')](_0x373569,_0x5d7c69),this[_0x5cd9('0x58')](_0x373569),_0x373569=this[_0x5cd9('0x39')](_0x373569),_0x373569=this[_0x5cd9('0x65')](_0x373569),_0x373569=this[_0x5cd9('0x93')](_0x373569);const {root:_0x1895ef,changes:_0x1fabea}=this[_0x5cd9('0x117')](_0x373569,_0x36218a,_0x41ffa9);_0x50dc1a['model'][_0x41ffa9]=_0x1895ef;const _0x4b1b8c=_0x414375['get'](_0x41ffa9);if(_0x4b1b8c){const _0x4e24fb=_0x36218a['get'](_0x4b1b8c[_0x5cd9('0xd6')]),_0x3935a0=new _0x72731d({'author':_0x4e24fb,'type':_0x4b1b8c[_0x5cd9('0x46')]?'add':_0x5cd9('0x75'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x41ffa9});_0x1fabea['unshift'](_0x3935a0),_0x50dc1a[_0x5cd9('0x97')][_0x41ffa9][_0x5cd9('0xc4')]=_0x3935a0['id'];}_0x50dc1a[_0x5cd9('0x105')]=_0x50dc1a[_0x5cd9('0x105')][_0x5cd9('0x19')](_0x1fabea);}return _0x50dc1a;}[_0x5cd9('0x109')](_0x3c7cf7,_0x3eb15a){for(let _0x3029ec=0x0;_0x3029ec<_0x3c7cf7['length'];_0x3029ec++)for(const [_0x3f3f20,_0x2cba5c]of _0x3eb15a)_0x2cba5c[_0x5cd9('0x6a')]['isEqual'](_0x3c7cf7[_0x3029ec][_0x5cd9('0x8b')])&&_0x3c7cf7[_0x3029ec][_0x5cd9('0xf1')][_0x5cd9('0x1f')](_0x3f3f20),_0x2cba5c[_0x5cd9('0x17')][_0x5cd9('0x99')](_0x3c7cf7[_0x3029ec][_0x5cd9('0x52')])&&_0x3c7cf7[_0x3029ec][_0x5cd9('0x49')][_0x5cd9('0x1f')](_0x3f3f20);}[_0x5cd9('0x21')](_0x5e8494,_0x11d5ea){let _0x5802c4=[],_0x4e79d2=0x0,_0x3982f5=0x0;for(;_0x4e79d2<_0x5e8494[_0x5cd9('0x96')]||_0x3982f5<_0x11d5ea['length'];){const _0xe82574=_0x5e8494[_0x4e79d2]||{},_0x923521=_0x11d5ea[_0x3982f5]||{};if(_0xe82574['id']==_0x923521['id'])_0x4e79d2++,_0x3982f5++,_0x5802c4[_0x5cd9('0x1f')](_0xe82574);else{if(_0x923521[_0x5cd9('0x11e')]&&_0xe82574[_0x5cd9('0x11')]){const {commonTape:_0x4d2eff,iEnd:_0x1d5e51,jEnd:_0x2a5041}=this[_0x5cd9('0x9c')](_0x5e8494,_0x4e79d2,_0x11d5ea,_0x3982f5);_0x5802c4=_0x5802c4[_0x5cd9('0x19')](_0x4d2eff),_0x4e79d2=_0x1d5e51,_0x3982f5=_0x2a5041;}else _0x923521[_0x5cd9('0x11e')]?(_0x3982f5++,_0x5802c4[_0x5cd9('0x1f')](_0x923521)):(_0x4e79d2++,_0x5802c4[_0x5cd9('0x1f')](_0xe82574));}}return _0x5802c4;}[_0x5cd9('0x1a')](_0x2f4973,_0x40ab36){const _0x3949c0=[];for(let _0x1417d7=0x0;_0x1417d7<_0x2f4973[_0x5cd9('0x96')];_0x1417d7++){for(let _0x1a1614=0x0;_0x1a1614<_0x2f4973[_0x1417d7][_0x5cd9('0xf1')][_0x5cd9('0x96')];_0x1a1614++){const _0x35d5d3=_0x2f4973[_0x1417d7][_0x5cd9('0xf1')][_0x1a1614];if(!_0x40ab36[_0x5cd9('0xb2')](_0x35d5d3))continue;const {group:_0x1e9301,type:_0x2f8422,authorId:_0x50a3d0}=_0x2b1867(_0x35d5d3);_0x5cd9('0x15')!=_0x1e9301||_0x5cd9('0x110')!=_0x2f8422&&_0x5cd9('0xd7')!=_0x2f8422||(_0x3949c0[_0x5cd9('0x35')]({'type':_0x2f8422,'name':_0x35d5d3,'userId':_0x50a3d0}),_0x2f4973[_0x1417d7]['markersStart'][_0x5cd9('0x45')](_0x1a1614,0x1),_0x1a1614--);}_0x27a5f7(_0x2f4973[_0x1417d7]);for(let _0x2737dc=0x0;_0x2737dc<_0x2f4973[_0x1417d7][_0x5cd9('0x49')][_0x5cd9('0x96')];_0x2737dc++){const _0x1fa3b6=_0x2f4973[_0x1417d7]['markersEnd'][_0x2737dc];if(!_0x40ab36[_0x5cd9('0xb2')](_0x1fa3b6))continue;const {group:_0x1ed5af,type:_0x400096}=_0x2b1867(_0x1fa3b6);if('revision-suggestion'!=_0x1ed5af||_0x5cd9('0x110')!=_0x400096&&'deletion'!=_0x400096)continue;_0x2f4973[_0x1417d7][_0x5cd9('0x49')][_0x5cd9('0x45')](_0x2737dc,0x1),_0x2737dc--;const _0x1c7004=_0x3949c0[_0x5cd9('0x2d')](_0x591bbc=>_0x591bbc['name']==_0x1fa3b6);_0x1c7004>-0x1&&_0x3949c0[_0x5cd9('0x45')](_0x1c7004,0x1);}}function _0x2b1867(_0x268c2a){const _0x4b01ed=_0x268c2a[_0x5cd9('0x119')](':');return{'group':_0x4b01ed[0x0],'type':_0x4b01ed[0x1],'subType':_0x4b01ed[_0x5cd9('0x96')]>=0x5?_0x4b01ed[0x2]:null,'id':_0x4b01ed['length']<0x5?_0x4b01ed[0x2]:_0x4b01ed[0x3],'authorId':_0x4b01ed[_0x5cd9('0x96')]<0x5?_0x4b01ed[0x3]:_0x4b01ed[0x4],'markerCount':0x6==_0x4b01ed[_0x5cd9('0x96')]?_0x4b01ed[0x5]:null};}function _0x27a5f7(_0x5277e3){for(let _0x2c359b=0x0;_0x2c359b<_0x3949c0[_0x5cd9('0x96')];_0x2c359b++){if(_0x5277e3[_0x5cd9('0x11')]&&'insertion'==_0x3949c0[_0x2c359b]['type'])return _0x5277e3[_0x5cd9('0x4a')]=_0x3949c0[_0x2c359b],void delete _0x5277e3['isAdded'];if(!_0x5277e3[_0x5cd9('0x11')]&&!_0x5277e3[_0x5cd9('0x11e')]&&'deletion'==_0x3949c0[_0x2c359b][_0x5cd9('0xf')])return void(_0x5277e3[_0x5cd9('0xf9')]=_0x3949c0[_0x2c359b]);}}}[_0x5cd9('0x20')](_0x3b3efc,_0x4fe8f1){let _0x3ae023=0x0,_0x59d680=!0x1;const _0xc727b=new Map();for(const _0x313bbf of _0x3b3efc)_0x313bbf[_0x4fe8f1]?_0x59d680&&(_0x3ae023++,_0x59d680=!0x1):(_0x3ae023++,_0x59d680=!0x0),_0xc727b['set'](_0x313bbf['id'],_0x3ae023);for(let _0x4e7294=0x0;_0x4e7294<_0x3b3efc[_0x5cd9('0x96')];_0x4e7294++){if(_0x5cd9('0x11e')==_0x4fe8f1&&_0x3b3efc[_0x4e7294][_0x5cd9('0x11')]||'isAdded'==_0x4fe8f1&&_0x3b3efc[_0x4e7294][_0x5cd9('0x11e')])continue;if('text'==_0x3b3efc[_0x4e7294]['type']){_0x3b3efc[_0x4e7294][_0x5cd9('0xc6')]=0x0;continue;}const _0x2779a6=_0xc727b[_0x5cd9('0xc8')](_0x3b3efc[_0x4e7294][_0x5cd9('0x113')]),_0x590e32=_0xc727b[_0x5cd9('0xc8')](_0x3b3efc[_0x4e7294]['id']);_0x3b3efc[_0x4e7294][_0x5cd9('0xc6')]=_0x2779a6-_0x590e32;}}[_0x5cd9('0x32')](_0x592d7e,_0x59a7de,_0x2ccdde=!0x1){const _0x5006e8=[];let _0x4b2624=this[_0x5cd9('0x10a')][_0x5cd9('0xe2')](_0x592d7e),_0x414b00=this['repository'][_0x5cd9('0xe2')](_0x59a7de);for(-0x1==_0x414b00&&(_0x414b00=this[_0x5cd9('0x10a')][_0x5cd9('0x11d')][_0x5cd9('0x96')],_0x2ccdde=!0x1);_0x4b2624<_0x414b00;)_0x5006e8[_0x5cd9('0x1f')](this[_0x5cd9('0x10a')][_0x5cd9('0x31')](_0x4b2624)),_0x4b2624++;return _0x2ccdde&&_0x5006e8['push'](this[_0x5cd9('0x10a')][_0x5cd9('0x31')](_0x4b2624)),_0x5006e8;}[_0x5cd9('0x9c')](_0x2a922a,_0x7532d,_0x55d2a5,_0x55d1d2){const _0x347165=this['editor'][_0x5cd9('0x1b')][_0x5cd9('0xcc')];let _0x4cbae6=_0x7532d;for(;_0x2a922a[_0x4cbae6]&&_0x2a922a[_0x4cbae6]['isAdded'];)_0x4cbae6++;let _0xd7fc5e=_0x55d1d2;for(;_0x55d2a5[_0xd7fc5e]&&_0x55d2a5[_0xd7fc5e][_0x5cd9('0x11e')];)_0xd7fc5e++;_0x3dfb6b(_0x2a922a,_0x7532d,_0x4cbae6),_0x3dfb6b(_0x55d2a5,_0x55d1d2,_0xd7fc5e);const _0x2219dc=_0x55d2a5[_0x5cd9('0xdd')](_0x55d1d2,_0xd7fc5e)[_0x5cd9('0x19')](_0x2a922a[_0x5cd9('0xdd')](_0x7532d,_0x4cbae6));return _0x2219dc['sort']((_0x2460aa,_0x411bb4)=>_0x2460aa['side']!=_0x411bb4[_0x5cd9('0x87')]?_0x2460aa['side']-_0x411bb4[_0x5cd9('0x87')]:_0x2460aa['level']!=_0x411bb4[_0x5cd9('0xec')]?_0x2460aa[_0x5cd9('0xec')]-_0x411bb4[_0x5cd9('0xec')]:_0x2460aa[_0x5cd9('0xc6')]!=_0x411bb4[_0x5cd9('0xc6')]?_0x411bb4[_0x5cd9('0xc6')]-_0x2460aa['distance']:!!_0x2460aa[_0x5cd9('0x11')]!=!!_0x411bb4['isAdded']?-0x1==_0x2460aa[_0x5cd9('0x87')]||0x0==_0x2460aa[_0x5cd9('0x87')]?_0x2460aa[_0x5cd9('0x11')]?-0x1:0x1:_0x2460aa[_0x5cd9('0x11')]?0x1:-0x1:_0x2460aa[_0x5cd9('0xc5')]-_0x411bb4[_0x5cd9('0xc5')]),{'commonTape':_0x2219dc,'iEnd':_0x4cbae6,'jEnd':_0xd7fc5e};function _0x3dfb6b(_0x598fa9,_0x3b3ab5,_0xc76706){let _0x43313d=-0x1,_0x5de13b=Number['POSITIVE_INFINITY'],_0x3344d2=!0x0;for(let _0x669fc2=_0x3b3ab5;_0x669fc2<_0xc76706;_0x669fc2++)if(_0x347165['isInline'](_0x598fa9[_0x669fc2]['item'])||(_0x3344d2=!0x1),_0x598fa9[_0x669fc2][_0x5cd9('0x2b')][_0x5cd9('0xca')]<_0x3b3ab5&&(_0x43313d=_0x669fc2),_0x598fa9[_0x669fc2][_0x5cd9('0x2b')][_0x5cd9('0xab')]>=_0xc76706){_0x5de13b=_0x669fc2;break;}_0x3344d2&&(_0x43313d=_0xc76706-0x1);for(let _0x342134=_0x3b3ab5;_0x342134<_0xc76706;_0x342134++)_0x598fa9[_0x342134]['side']=_0x342134<=_0x43313d?-0x1:_0x342134<_0x5de13b?0x0:0x1,_0x598fa9[_0x342134][_0x5cd9('0xc5')]=_0x342134;let _0x3f378f=0x0;for(let _0x4cf679=_0x3b3ab5;_0x4cf679<=_0x43313d;_0x4cf679++)0x0==_0x598fa9[_0x4cf679][_0x5cd9('0xc6')]?_0x598fa9[_0x4cf679]['level']=_0x3f378f:(_0x3f378f++,_0x598fa9[_0x4cf679][_0x5cd9('0xec')]=_0x3f378f,_0x3f378f++);for(let _0x1bc89b=_0x3b3ab5;_0x1bc89b<_0xc76706;_0x1bc89b++)0x0==_0x598fa9[_0x1bc89b][_0x5cd9('0x87')]&&(_0x598fa9[_0x1bc89b][_0x5cd9('0xec')]=_0x3f378f);_0x3f378f=0x0;for(let _0x89bcec=_0xc76706-0x1;_0x89bcec>=_0x5de13b;_0x89bcec--)0x0==_0x598fa9[_0x89bcec][_0x5cd9('0xc6')]?_0x598fa9[_0x89bcec][_0x5cd9('0xec')]=_0x3f378f:(_0x3f378f--,_0x598fa9[_0x89bcec][_0x5cd9('0xec')]=_0x3f378f,_0x3f378f--);}}['_fixObsoleteTags'](_0x27309b){const _0x29c0b=new Map(),_0x453fb4=this[_0x5cd9('0x101')][_0x5cd9('0x1b')][_0x5cd9('0xcc')];for(let _0x231d34=0x1;_0x231d34<_0x27309b[_0x5cd9('0x96')];_0x231d34++){let _0x1fc69b,_0x565cc8,_0x18073c;const _0x124807=_0x27309b[_0x231d34],_0x2e876c=_0x27309b[_0x231d34-0x1];if(_0x5cd9('0x72')==_0x124807['type'])continue;if(_0x124807[_0x5cd9('0xf')]!=_0x2e876c['type'])continue;if(!_0x453fb4[_0x5cd9('0x7d')](_0x2e876c[_0x5cd9('0x2b')])||_0x453fb4['isLimit'](_0x2e876c[_0x5cd9('0x2b')]))continue;if(!_0x453fb4['isBlock'](_0x124807[_0x5cd9('0x2b')])||_0x453fb4[_0x5cd9('0x9b')](_0x124807[_0x5cd9('0x2b')]))continue;if((_0x27309b[_0x231d34][_0x5cd9('0x11')]||_0x27309b[_0x231d34][_0x5cd9('0x4a')])&&_0x27309b[_0x231d34-0x1][_0x5cd9('0x11e')])_0x1fc69b=_0x27309b[_0x231d34],_0x565cc8=_0x27309b[_0x231d34-0x1],_0x18073c=_0x231d34-0x1;else{if(!_0x27309b[_0x231d34][_0x5cd9('0x11e')]||!_0x27309b[_0x231d34-0x1][_0x5cd9('0x11')]&&!_0x27309b[_0x231d34-0x1][_0x5cd9('0x4a')])continue;_0x1fc69b=_0x27309b[_0x231d34-0x1],_0x565cc8=_0x27309b[_0x231d34],_0x18073c=_0x231d34;}const _0x1ca51d=_0x1fc69b[_0x5cd9('0xec')]==_0x565cc8[_0x5cd9('0xec')],_0x9d8230=Math[_0x5cd9('0x55')](_0x1fc69b[_0x5cd9('0xec')])<Math[_0x5cd9('0x55')](_0x565cc8[_0x5cd9('0xec')])&&0x0==_0x565cc8[_0x5cd9('0xc6')];(_0x1ca51d||_0x9d8230)&&(_0x29c0b[_0x5cd9('0x36')](_0x565cc8['id'],_0x1fc69b['id']),_0x27309b[_0x5cd9('0x45')](_0x18073c,0x1),_0x231d34--,_0x1fc69b['isAdded']=!0x1);}for(let _0x4b5d13=0x0;_0x4b5d13<_0x27309b[_0x5cd9('0x96')];_0x4b5d13++)_0x29c0b['has'](_0x27309b[_0x4b5d13][_0x5cd9('0x113')])&&(_0x27309b[_0x4b5d13][_0x5cd9('0x113')]=_0x29c0b[_0x5cd9('0xc8')](_0x27309b[_0x4b5d13][_0x5cd9('0x113')]));}[_0x5cd9('0x39')](_0x370f56){const _0x372fbb=new Set(_0x370f56[_0x5cd9('0x8d')](_0x542550=>_0x542550['id']));for(let _0x2dc254=0x0;_0x2dc254<_0x370f56[_0x5cd9('0x96')];_0x2dc254++)_0x372fbb[_0x5cd9('0xb2')](_0x370f56[_0x2dc254][_0x5cd9('0x113')])||0x0==_0x370f56[_0x2dc254][_0x5cd9('0xc6')]||(_0x370f56[_0x2dc254][_0x5cd9('0x95')]=!0x0);return _0x370f56[_0x5cd9('0x61')](_0x16263f=>!_0x16263f[_0x5cd9('0x95')]);}[_0x5cd9('0x65')](_0x1a11c3){const _0x40d59f=new Set();for(let _0x1a571b=0x0;_0x1a571b<_0x1a11c3[_0x5cd9('0x96')];_0x1a571b++){if(_0x40d59f[_0x5cd9('0xb2')](_0x1a11c3[_0x1a571b]['id'])&&_0x1a11c3[_0x1a571b]['isRemoved']&&(_0x1a11c3[_0x1a571b][_0x5cd9('0x95')]=!0x0),_0x1a11c3[_0x1a571b][_0x5cd9('0x95')])continue;if(0x0==_0x1a11c3[_0x1a571b][_0x5cd9('0xc6')])continue;if('elementStart'!=_0x1a11c3[_0x1a571b][_0x5cd9('0xf')])continue;if(null==_0x1a11c3[_0x1a571b][_0x5cd9('0x113')])continue;let _0x216d9c=_0x1a571b+0x1,_0x11ecb1=0x0;for(;_0x1a11c3[_0x216d9c]['id']!=_0x1a11c3[_0x1a571b]['pairId'];)_0x5cd9('0xe0')==_0x1a11c3[_0x216d9c]['type']?_0x11ecb1++:_0x5cd9('0xf2')==_0x1a11c3[_0x216d9c][_0x5cd9('0xf')]&&_0x11ecb1--,_0x216d9c++;if(0x0!=_0x11ecb1){if(_0x1a11c3[_0x1a571b][_0x5cd9('0x11e')])_0x1a11c3[_0x1a571b][_0x5cd9('0x95')]=!0x0;else for(;_0x216d9c!=_0x1a571b;)_0x1a11c3[_0x216d9c]['isRemoved']&&0x0!=_0x1a11c3[_0x216d9c]['distance']&&(_0x1a11c3[_0x216d9c][_0x5cd9('0x95')]=!0x0,_0x40d59f[_0x5cd9('0x59')](_0x1a11c3[_0x216d9c]['pairId'])),_0x216d9c--;}}return _0x1a11c3[_0x5cd9('0x61')](_0x21fcba=>!_0x21fcba[_0x5cd9('0x95')]);}[_0x5cd9('0x93')](_0x30137f){const _0xd78a44=this[_0x5cd9('0x101')]['model'][_0x5cd9('0xcc')];for(let _0x1669fb=0x0;_0x1669fb<_0x30137f[_0x5cd9('0x96')];_0x1669fb++){if(!(_0x30137f[_0x1669fb][_0x5cd9('0x11')]||_0x30137f[_0x1669fb][_0x5cd9('0x4a')]||_0x30137f[_0x1669fb]['isRemoved']||_0x30137f[_0x1669fb]['isRemoveSuggestion']))continue;if(0x0==_0x30137f[_0x1669fb][_0x5cd9('0xc6')])continue;const _0x5309e0=_0x30137f[_0x1669fb]['item'];_0xd78a44[_0x5cd9('0x7d')](_0x5309e0)||_0xd78a44[_0x5cd9('0x9b')](_0x5309e0)||(_0x30137f[_0x1669fb]['isAdded']&&delete _0x30137f[_0x1669fb][_0x5cd9('0x11')],_0x30137f[_0x1669fb][_0x5cd9('0x4a')]&&delete _0x30137f[_0x1669fb][_0x5cd9('0x4a')],_0x30137f[_0x1669fb][_0x5cd9('0xf9')]&&delete _0x30137f[_0x1669fb][_0x5cd9('0xf9')],_0x30137f[_0x1669fb][_0x5cd9('0x11e')]&&(_0x30137f[_0x1669fb][_0x5cd9('0x95')]=!0x0));}return _0x30137f['filter'](_0x153bb9=>!_0x153bb9[_0x5cd9('0x95')]);}[_0x5cd9('0x117')](_0x5a2219,_0xd80bfa,_0x32bc3c){const _0x5b7159=new _0x211351(),_0x1fc6c7=[],_0x1f1ad5=new Map(),_0x23d474=this[_0x5cd9('0x101')][_0x5cd9('0x1b')],_0x1479d8=_0x23d474[_0x5cd9('0xcc')],_0x316f7a=[_0x5b7159],_0x588654={},_0x3c365d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3a5952=null;const _0x5c12a2=[0x0];for(let _0xcef1d=0x0;_0xcef1d<_0x5a2219[_0x5cd9('0x96')];_0xcef1d++){let _0x553707,_0x52d66d;if(_0x5cd9('0xe0')===_0x5a2219[_0xcef1d][_0x5cd9('0xf')]){_0x553707=_0x23d474[_0x5cd9('0x7c')](_0x5b7159,_0x5c12a2);const _0x25775e=new _0x1565a7(_0x5a2219[_0xcef1d]['item']['name'],_0x5a2219[_0xcef1d][_0x5cd9('0x2b')]['getAttributes']());_0x316f7a[0x0][_0x5cd9('0x4c')](_0x25775e),_0x5c12a2[_0x5cd9('0x1f')](0x0),_0x316f7a[_0x5cd9('0x35')](_0x25775e),_0x52d66d=_0x23d474[_0x5cd9('0x7c')](_0x5b7159,_0x5c12a2),_0x3a5952=null;}else{if('elementEnd'===_0x5a2219[_0xcef1d][_0x5cd9('0xf')])_0x316f7a[_0x5cd9('0x66')](),_0x553707=_0x23d474[_0x5cd9('0x7c')](_0x5b7159,_0x5c12a2),_0x5c12a2[_0x5cd9('0x47')](),_0x5c12a2[_0x5c12a2[_0x5cd9('0x96')]-0x1]++,_0x52d66d=_0x23d474[_0x5cd9('0x7c')](_0x5b7159,_0x5c12a2),_0x3a5952=null;else{if(_0x553707=_0x23d474[_0x5cd9('0x7c')](_0x5b7159,_0x5c12a2),_0x3a5952&&_0x1faec4(_0x3a5952,_0x5a2219[_0xcef1d][_0x5cd9('0x2b')]))_0x3a5952[_0x5cd9('0x77')]+=_0x5a2219[_0xcef1d][_0x5cd9('0x2b')][_0x5cd9('0xe4')];else{const _0x3485ec=new _0x4f0a0a(_0x5a2219[_0xcef1d][_0x5cd9('0x2b')]['data'],_0x5a2219[_0xcef1d][_0x5cd9('0x2b')][_0x5cd9('0xc0')]());_0x316f7a[0x0][_0x5cd9('0x4c')](_0x3485ec),_0x3a5952=_0x3485ec;}_0x5c12a2[_0x5c12a2[_0x5cd9('0x96')]-0x1]+=_0x5a2219[_0xcef1d]['item']['offsetSize'],_0x52d66d=_0x23d474[_0x5cd9('0x7c')](_0x5b7159,_0x5c12a2);}}for(const _0x596c76 of _0x5a2219[_0xcef1d][_0x5cd9('0xf1')])_0x1f1ad5[_0x5cd9('0x36')](_0x596c76,{'start':_0x553707,'end':null});_0x290148(_0x5cd9('0xf9'),_0xcef1d,_0x553707,_0x52d66d),_0x290148('isAddSuggestion',_0xcef1d,_0x553707,_0x52d66d),_0x290148(_0x5cd9('0x11e'),_0xcef1d,_0x553707,_0x52d66d),_0x290148(_0x5cd9('0x11'),_0xcef1d,_0x553707,_0x52d66d);for(const _0x1efc08 of _0x5a2219[_0xcef1d][_0x5cd9('0x49')]){_0x1f1ad5[_0x5cd9('0xc8')](_0x1efc08)[_0x5cd9('0x17')]=_0x52d66d;}}for(const [_0x59014b,_0x2a83ca]of _0x1f1ad5){const _0xc1c93f=this[_0x5cd9('0x101')][_0x5cd9('0x1b')]['createRange'](_0x2a83ca[_0x5cd9('0x6a')],_0x2a83ca[_0x5cd9('0x17')]);_0x5b7159[_0x5cd9('0xe')][_0x5cd9('0x36')](_0x59014b,_0xc1c93f);}return _0x1fc6c7[_0x5cd9('0xad')]((_0x537ec9,_0xf41e05)=>{const _0x2757ef=_0x5b7159[_0x5cd9('0xe')][_0x5cd9('0xc8')]('revision:'+_0x537ec9['id']),_0x500d1a=_0x5b7159[_0x5cd9('0xe')][_0x5cd9('0xc8')](_0x5cd9('0x0')+_0xf41e05['id']);return _0x2757ef[_0x5cd9('0x6a')][_0x5cd9('0xea')](_0x500d1a[_0x5cd9('0x6a')])?-0x1:_0x2757ef[_0x5cd9('0x6a')][_0x5cd9('0xeb')](_0x500d1a[_0x5cd9('0x6a')])?0x1:_0x2757ef['end']['isBefore'](_0x500d1a[_0x5cd9('0x17')])?-0x1:_0x2757ef[_0x5cd9('0x17')][_0x5cd9('0xeb')](_0x500d1a[_0x5cd9('0x17')])?0x1:_0x5cd9('0x59')===_0x537ec9[_0x5cd9('0xf')]?-0x1:0x1;}),{'root':_0x5b7159,'changes':_0x1fc6c7};function _0x290148(_0x427e9f,_0x1a1966,_0x11e138,_0x545eb0){const _0x2e2129=!!_0x5a2219[_0x1a1966][_0x427e9f],_0x16513b=_0x2e2129?_0x5a2219[_0x1a1966][_0x427e9f][_0x5cd9('0xd6')]:null,_0x2f7373=_0x1a1966===_0x5a2219[_0x5cd9('0x96')]-0x1,_0x50271c=_0x3c365d[_0x427e9f][0x0],_0x2f2b6a=_0x1479d8[_0x5cd9('0x48')](_0x5a2219[_0x1a1966][_0x5cd9('0x2b')]);!_0x588654[_0x427e9f]&&_0x2e2129?_0x588654[_0x427e9f]={'start':_0x11e138,'tapeItem':_0x5a2219[_0x1a1966],'userId':_0x16513b,'type':_0x427e9f}:_0x588654[_0x427e9f]&&!_0x2e2129?(_0x588654[_0x427e9f]['end']=_0x11e138,_0xab5142(_0x588654[_0x427e9f]),_0x588654[_0x427e9f]=null):_0x588654[_0x427e9f]&&_0x2e2129&&_0x588654[_0x427e9f]['userId']!==_0x16513b&&(_0x588654[_0x427e9f][_0x5cd9('0x17')]=_0x11e138,_0x50271c&&_0x50271c['userId']===_0x588654[_0x427e9f][_0x5cd9('0xd6')]||_0xab5142(_0x588654[_0x427e9f]),_0x588654[_0x427e9f]={'start':_0x11e138,'tapeItem':_0x5a2219[_0x1a1966],'userId':_0x16513b,'type':_0x427e9f}),_0x588654[_0x427e9f]&&_0x2f2b6a&&(_0x5cd9('0xe0')!==_0x5a2219[_0x1a1966]['type']||_0x50271c&&_0x50271c['userId']===_0x16513b||_0x3c365d[_0x427e9f][_0x5cd9('0x35')]({'userId':_0x16513b,'object':_0x5a2219[_0x1a1966][_0x5cd9('0x2b')],'change':_0x588654[_0x427e9f]}),_0x5cd9('0xf2')===_0x5a2219[_0x1a1966][_0x5cd9('0xf')]&&_0x50271c&&_0x50271c[_0x5cd9('0x11a')]===_0x5a2219[_0x1a1966]['item']&&(_0x3c365d[_0x427e9f][_0x5cd9('0x66')](),_0x588654[_0x427e9f]=_0x50271c[_0x5cd9('0x88')])),_0x588654[_0x427e9f]&&_0x2f7373&&(_0x588654[_0x427e9f][_0x5cd9('0x17')]=_0x545eb0,_0xab5142(_0x588654[_0x427e9f]),_0x588654[_0x427e9f]=null);}function _0xab5142({start:_0x59d22d,end:_0x2933da,tapeItem:_0x530f73,userId:_0x5e7ee8,type:_0xcc98c8}){const _0xe592c0=_0x530f73[_0x5cd9('0x2b')],_0x4dd22e=_0x23d474[_0x5cd9('0xcc')]['isBlock'](_0xe592c0)&&!_0x23d474[_0x5cd9('0xcc')][_0x5cd9('0x9b')](_0xe592c0),_0x9553df=_0x59d22d[_0x5cd9('0x116')]==_0x2933da[_0x5cd9('0x3')]&&_0x2933da['isAtStart'];if(_0x4dd22e&&_0x9553df)return;const _0x29ca82=_0x23d474[_0x5cd9('0xb3')](_0x59d22d,_0x2933da),_0x41de76=_0xd80bfa[_0x5cd9('0xc8')](_0x5e7ee8),_0x377d62=new _0x72731d({'author':_0x41de76,'type':'isAdded'==_0xcc98c8||'isAddSuggestion'==_0xcc98c8?_0x5cd9('0x59'):_0x5cd9('0x75'),'data':{'isSuggestion':'isAddSuggestion'==_0xcc98c8||_0x5cd9('0xf9')==_0xcc98c8},'createdAt':new Date(),'rootName':_0x32bc3c});_0x1fc6c7[_0x5cd9('0x1f')](_0x377d62),_0x5b7159['markers'][_0x5cd9('0x36')](_0x5cd9('0x0')+_0x377d62['id'],_0x29ca82);}function _0x1faec4(_0x816cff,_0x5a05fd){const _0x88e97f=_0x816cff[_0x5cd9('0xc0')](),_0x2ddefd=_0x5a05fd[_0x5cd9('0xc0')]();for(const _0x5ebd34 of _0x88e97f){if(_0x5ebd34[0x1]!==_0x5a05fd[_0x5cd9('0x1d')](_0x5ebd34[0x0]))return!0x1;_0x2ddefd['next']();}return _0x2ddefd[_0x5cd9('0xf3')]()[_0x5cd9('0x10e')];}}[_0x5cd9('0xa2')](){this[_0x5cd9('0x101')]['conversion']['for']('upcast')[_0x5cd9('0x12')]({'view':'revision'}),this[_0x5cd9('0x101')][_0x5cd9('0xef')][_0x5cd9('0xac')](_0x5cd9('0x57'))[_0x5cd9('0x2a')]({'model':_0x5cd9('0xd4'),'view':_0x5a79de=>{const _0x248c25=_0x5a79de[_0x5cd9('0xf4')][_0x5cd9('0x119')](':')[0x1],_0x2e9ea7=this[_0x5cd9('0x4f')](_0x248c25);if(!_0x2e9ea7)return null;const _0x5d96ba=_0x5cd9('0x59')==_0x2e9ea7[_0x5cd9('0xf')]?_0x5cd9('0x110'):_0x5cd9('0xd7'),_0x4e14fb=[_0x5cd9('0x2e'),'ck-suggestion-marker-'+_0x5d96ba];return _0x2e9ea7['data']['isSuggestion']&&_0x4e14fb[_0x5cd9('0x1f')](_0x5cd9('0x94')+_0x5d96ba+_0x5cd9('0x50')),this[_0x5cd9('0xf5')]==_0x2e9ea7&&_0x4e14fb[_0x5cd9('0x1f')]('ck-suggestion-marker--active'),{'classes':_0x4e14fb,'attributes':{'data-change-id':_0x248c25}};}}),this['editor'][_0x5cd9('0xef')][_0x5cd9('0xac')](_0x5cd9('0xb'))[_0x5cd9('0x59')](_0x1ebef6=>{_0x1ebef6['on'](_0x5cd9('0x107'),(_0x4a81c1,_0x427c97,_0x3c8934)=>{const _0x2276ee=_0x427c97[_0x5cd9('0x3d')][_0x5cd9('0x91')](0x0);if(!_0x2276ee||!_0x2276ee['is'](_0x5cd9('0xbe'),_0x5cd9('0x10f')))return;if(!_0x3c8934[_0x5cd9('0x9a')][_0x5cd9('0x6b')](_0x2276ee,{'attributes':[_0x5cd9('0x23'),_0x5cd9('0x26')]}))return;const _0x4e9018=_0x427c97[_0x5cd9('0xd9')][_0x5cd9('0x6a')][_0x5cd9('0x116')];_0x3c8934[_0x5cd9('0xa6')]['setAttribute'](_0x5cd9('0x23'),_0x2276ee[_0x5cd9('0x1d')](_0x5cd9('0x23')),_0x4e9018),_0x3c8934[_0x5cd9('0xa6')][_0x5cd9('0x5b')](_0x5cd9('0x26'),_0x2276ee[_0x5cd9('0x1d')](_0x5cd9('0x26')),_0x4e9018);},{'priority':_0x5cd9('0x3a')});}),this['editor'][_0x5cd9('0xef')][_0x5cd9('0xac')]('upcast')['add'](_0x1a7b39=>{_0x1a7b39['on'](_0x5cd9('0xbe'),(_0x43d90b,_0x227594,_0x279f3e)=>{if(!_0x279f3e[_0x5cd9('0x9a')][_0x5cd9('0x6b')](_0x227594[_0x5cd9('0x3d')],{'attributes':['vid_start',_0x5cd9('0x26')]}))return;if(_0x227594[_0x5cd9('0xd9')]['isCollapsed'])return;const _0x14f235=_0x227594[_0x5cd9('0xd9')]['start']['nodeAfter'];_0x14f235[_0x5cd9('0xc1')](_0x5cd9('0x23'))||_0x14f235[_0x5cd9('0xc1')]('vid')||(_0x279f3e[_0x5cd9('0xa6')][_0x5cd9('0x5b')]('vid_start',_0x227594[_0x5cd9('0x3d')][_0x5cd9('0x1d')]('vid_start'),_0x14f235),_0x279f3e['writer'][_0x5cd9('0x5b')](_0x5cd9('0x26'),_0x227594['viewItem'][_0x5cd9('0x1d')](_0x5cd9('0x26')),_0x14f235));},{'priority':_0x5cd9('0x3a')});}),this[_0x5cd9('0x101')][_0x5cd9('0xef')][_0x5cd9('0xac')](_0x5cd9('0xb'))[_0x5cd9('0x63')]({'view':{'name':_0x5cd9('0x5f'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xd84fe3=>_0xd84fe3['getAttribute']('vid')}}),this[_0x5cd9('0x101')][_0x5cd9('0x1b')]['schema']['on']('checkAttribute',(_0x319225,[,_0x3a4063])=>{[_0x5cd9('0x23'),'vid_end',_0x5cd9('0x16')]['includes'](_0x3a4063)&&(_0x319225[_0x5cd9('0x60')]=!0x0,_0x319225[_0x5cd9('0xd5')]());},{'priority':'highest'}),this[_0x5cd9('0x101')]['conversion']['for'](_0x5cd9('0xfd'))[_0x5cd9('0x59')](_0x32bcf3=>{_0x32bcf3['on'](_0x5cd9('0xa3'),(_0x3c5b85,_0x440081,_0x5e80e2)=>{if('\x20'!=_0x440081[_0x5cd9('0x2b')][_0x5cd9('0xe4')]||_0x440081[_0x5cd9('0x2b')][_0x5cd9('0x3')][_0x5cd9('0x51')]>0x1)return;if(!_0x5e80e2[_0x5cd9('0x9a')]['consume'](_0x440081['item'],_0x3c5b85[_0x5cd9('0x5d')]))return;const _0x4a675a=_0x5e80e2[_0x5cd9('0xa6')],_0x2af64b=_0x5e80e2['mapper'][_0x5cd9('0xd0')](_0x440081[_0x5cd9('0xf6')]);_0x4a675a[_0x5cd9('0xd3')](_0x2af64b,_0x4a675a['createAttributeElement'](_0x5cd9('0x5f')));});}),this[_0x5cd9('0x101')][_0x5cd9('0xef')][_0x5cd9('0xac')](_0x5cd9('0xfd'))[_0x5cd9('0x7b')]({'model':_0x5cd9('0xd4')}),this[_0x5cd9('0x101')][_0x5cd9('0x4b')]['downcastDispatcher']['on'](_0x5cd9('0xa5'),function(_0x5c8dbe){const _0xc01bed=_0x5c8dbe[_0x5cd9('0xa7')]['get']('RevisionViewer');return(_0x1a20cb,_0x45e5dc,_0x883fac)=>{const _0x4c9596=_0x45e5dc[_0x5cd9('0xf4')][_0x5cd9('0x119')](':')[0x1],_0x48e8ec=_0xc01bed[_0x5cd9('0x4f')](_0x4c9596);if(!_0x48e8ec)return null;const _0x37c23a='add'==_0x48e8ec[_0x5cd9('0xf')]?'split':_0x5cd9('0x86');if(!_0x883fac[_0x5cd9('0x9a')][_0x5cd9('0xcb')](_0x45e5dc[_0x5cd9('0x8a')],_0x1a20cb[_0x5cd9('0x5d')]))return;const _0x55a006=_0x45e5dc[_0x5cd9('0x8a')][_0x5cd9('0x98')](),_0x2a0226=_0x45e5dc[_0x5cd9('0x8a')]['start'],_0xa29ddb=_0x5c8dbe[_0x5cd9('0x1b')][_0x5cd9('0xcc')];let _0x48bae6=null,_0x5ed9ba=null,_0x41b4ce=!0x1,_0x3d2fa8=!0x1;for(const _0x427151 of _0x55a006){const _0x19acdf=_0x427151[_0x5cd9('0x2b')];_0x41b4ce=_0x41b4ce||_0xa29ddb[_0x5cd9('0x83')](_0x19acdf);const _0xf6938=_0x883fac[_0x5cd9('0x6d')]['toViewElement'](_0x19acdf);if(_0xf6938&&_0xf6938['getCustomProperty']('addHighlight'))return;_0x5cd9('0xf2')==_0x427151[_0x5cd9('0xf')]&&(_0xa29ddb[_0x5cd9('0x7d')](_0x19acdf)&&!_0xa29ddb[_0x5cd9('0x9b')](_0x19acdf)&&(_0x19acdf['nextSibling']||_0x2a0226[_0x5cd9('0xb4')]?_0x48bae6&&_0x48bae6['parent']==_0x19acdf||(_0x48bae6=_0x19acdf,_0x4ddb49(_0x427151[_0x5cd9('0x8b')]),_0x3d2fa8=!0x0):_0x5ed9ba=_0x5ed9ba||_0x427151[_0x5cd9('0x8b')]));}function _0x4ddb49(_0x2419d8){const _0x3b646a=_0x883fac[_0x5cd9('0xa6')][_0x5cd9('0x74')](_0x5cd9('0x5f'),{'class':_0x5cd9('0x94')+_0x37c23a}),_0xdb9d9f=_0x883fac[_0x5cd9('0x6d')][_0x5cd9('0x79')](_0x2419d8);_0x48e8ec[_0x5cd9('0xe4')]['isSuggestion']&&_0x883fac[_0x5cd9('0xa6')][_0x5cd9('0x2')](_0x5cd9('0x94')+_0x37c23a+_0x5cd9('0x50'),_0x3b646a),_0xc01bed[_0x5cd9('0xf5')]==_0x48e8ec&&_0x883fac[_0x5cd9('0xa6')]['addClass'](_0x5cd9('0x40'),_0x3b646a),_0x883fac[_0x5cd9('0xa6')][_0x5cd9('0x4')](_0xdb9d9f,_0x3b646a),_0x883fac[_0x5cd9('0x6d')]['bindElementToMarker'](_0x3b646a,_0x45e5dc['markerName']);}_0x41b4ce||_0x3d2fa8||!_0x5ed9ba||_0x4ddb49(_0x5ed9ba);};}(this['editor']),{'priority':_0x5cd9('0x44')}),this['editor']['editing'][_0x5cd9('0x76')]['on'](_0x5cd9('0x53'),(_0x2fcfce,_0x30976d,_0x1164c3)=>{const _0x177bee=_0x1164c3[_0x5cd9('0x6d')]['markerNameToElements'](_0x30976d[_0x5cd9('0xf4')]);if(_0x177bee)for(const _0x5ee3e7 of _0x177bee)(_0x5ee3e7[_0x5cd9('0x25')](_0x5cd9('0xa8'))||_0x5ee3e7[_0x5cd9('0x25')](_0x5cd9('0x92')))&&(_0x1164c3[_0x5cd9('0x6d')]['unbindElementFromMarkerName'](_0x5ee3e7,_0x30976d['markerName']),_0x1164c3[_0x5cd9('0xa6')][_0x5cd9('0x75')](_0x5ee3e7));},{'priority':'high'}),this[_0x5cd9('0x101')][_0x5cd9('0x4b')][_0x5cd9('0x76')]['on']('addMarker:revision',(_0x28fefc,_0x4747be,_0x439124)=>{const _0x368ccc=_0x4747be[_0x5cd9('0xf4')][_0x5cd9('0x119')](':')[0x1],_0x58b1b0=this[_0x5cd9('0x4f')](_0x368ccc);if(!_0x58b1b0)return null;const _0x59b194=_0x5cd9('0x59')==_0x58b1b0['type']?_0x5cd9('0x119'):'merge';if(_0x439124[_0x5cd9('0x9a')][_0x5cd9('0xcb')](_0x4747be[_0x5cd9('0x8a')],_0x28fefc[_0x5cd9('0x5d')]))for(const _0x3f0a5f of _0x4747be[_0x5cd9('0x8a')][_0x5cd9('0xd8')]()){if(!_0x3f0a5f['is'](_0x5cd9('0xbe'),_0x5cd9('0x1')))continue;const _0xc834ef=_0x439124['writer'][_0x5cd9('0x74')]('span',{'class':_0x5cd9('0x94')+_0x59b194}),_0x3d3aa7=_0x439124[_0x5cd9('0x6d')][_0x5cd9('0x79')](this['editor'][_0x5cd9('0x1b')][_0x5cd9('0xe6')](_0x3f0a5f));_0x58b1b0[_0x5cd9('0xe4')][_0x5cd9('0xb0')]&&_0x439124['writer'][_0x5cd9('0x2')](_0x5cd9('0x94')+_0x59b194+'-new',_0xc834ef),this[_0x5cd9('0xf5')]==_0x58b1b0&&_0x439124[_0x5cd9('0xa6')][_0x5cd9('0x2')](_0x5cd9('0x40'),_0xc834ef),_0x439124[_0x5cd9('0xa6')]['insert'](_0x3d3aa7,_0xc834ef),_0x439124[_0x5cd9('0x6d')][_0x5cd9('0xd')](_0xc834ef,_0x4747be[_0x5cd9('0xf4')]);}},{'priority':_0x5cd9('0x44')}),this[_0x5cd9('0x101')]['model'][_0x5cd9('0x108')]['on'](_0x5cd9('0x88'),()=>{this[_0x5cd9('0x101')][_0x5cd9('0x4b')][_0x5cd9('0xa')]['change'](_0x3956a3=>{for(const _0x39d9bd of this['editor'][_0x5cd9('0x1b')][_0x5cd9('0x108')][_0x5cd9('0xb6')]()){const _0x3d2caf=this[_0x5cd9('0x101')][_0x5cd9('0x1b')][_0x5cd9('0x108')]['getRoot'](_0x39d9bd),_0x1ad983=this[_0x5cd9('0x101')]['editing'][_0x5cd9('0xa')][_0x5cd9('0x108')]['getRoot'](_0x39d9bd);if(_0x1ad983){const _0x5b0c85=_0x3d2caf['getAttribute'](_0x5cd9('0xc4'));if(_0x3956a3[_0x5cd9('0xf7')](_0x5cd9('0x18'),_0x1ad983),_0x3956a3[_0x5cd9('0x6f')]('ck-revision-history-root-add',_0x1ad983),_0x3956a3['removeClass'](_0x5cd9('0x5'),_0x1ad983),_0x3956a3[_0x5cd9('0x6f')](_0x5cd9('0x80'),_0x1ad983),_0x5b0c85){const _0x25cd6b=this[_0x5cd9('0x4f')](_0x5b0c85);if(!_0x25cd6b)return null;_0x3956a3['setAttribute']('data-change-id',_0x5b0c85,_0x1ad983),_0x3956a3['addClass'](_0x5cd9('0x114')+_0x25cd6b[_0x5cd9('0xf')],_0x1ad983),this[_0x5cd9('0xf5')]==_0x25cd6b&&_0x3956a3['addClass']('ck-revision-history-root--active',_0x1ad983);}}}});}),this[_0x5cd9('0x101')][_0x5cd9('0xef')][_0x5cd9('0xac')](_0x5cd9('0xb'))[_0x5cd9('0x12')]({'view':_0x5cd9('0xcf'),'model':_0x2dc39=>'revision-comment:'+_0x2dc39,'converterPriority':_0x5cd9('0x28')}),this[_0x5cd9('0x101')][_0x5cd9('0xef')]['for']('upcast')[_0x5cd9('0x12')]({'view':'suggestion','model':_0x8466aa=>_0x5cd9('0xc2')+_0x8466aa,'converterPriority':'highest'}),this[_0x5cd9('0x101')][_0x5cd9('0xef')][_0x5cd9('0xac')]('dataDowncast')[_0x5cd9('0x7b')]({'model':'revision-suggestion','view':_0x531a6f=>({'name':'suggestion:'+_0x531a6f,'group':_0x5cd9('0x15')}),'converterPriority':_0x5cd9('0x28')}),this[_0x5cd9('0x101')][_0x5cd9('0xef')][_0x5cd9('0xac')](_0x5cd9('0x57'))[_0x5cd9('0x2a')]({'model':_0x5cd9('0x15'),'view':_0x25b2bc=>{const _0x33a66a=_0x25b2bc[_0x5cd9('0xf4')][_0x5cd9('0x119')](':')[0x1];return'insertion'!=_0x33a66a&&_0x5cd9('0xd7')!=_0x33a66a?null:{'classes':[_0x5cd9('0x11b'),_0x5cd9('0xf0')+_0x33a66a]};}}),this['editor'][_0x5cd9('0x4b')][_0x5cd9('0x76')]['on'](_0x5cd9('0x84'),et(this[_0x5cd9('0x101')],'merge'),{'priority':_0x5cd9('0x44')}),this['editor'][_0x5cd9('0x4b')]['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this[_0x5cd9('0x101')],'split'),{'priority':_0x5cd9('0x44')}),this[_0x5cd9('0x101')][_0x5cd9('0x4b')][_0x5cd9('0x76')]['on'](_0x5cd9('0xde'),(_0x5d0347,_0x36f45b,_0x264f29)=>{const _0x2c10ea=_0x264f29[_0x5cd9('0x6d')][_0x5cd9('0x103')](_0x36f45b[_0x5cd9('0xf4')]);if(_0x2c10ea)for(const _0x26f331 of _0x2c10ea)_0x26f331['is'](_0x5cd9('0xce'))&&(_0x264f29[_0x5cd9('0x6d')][_0x5cd9('0x42')](_0x26f331,_0x36f45b['markerName']),_0x264f29['writer'][_0x5cd9('0x75')](_0x26f331));},{'priority':'high'});}[_0x5cd9('0x4f')](_0x2c19f6){return this[_0x5cd9('0x9f')][_0x5cd9('0xc8')](_0x2c19f6);}[_0x5cd9('0x27')](_0x3fbcb2){return this[_0x5cd9('0xfa')]&&this[_0x5cd9('0xfa')][_0x5cd9('0x111')](),this[_0x5cd9('0xfa')]=new _0x4f2711(this[_0x5cd9('0x101')][_0x5cd9('0x85')],_0x3fbcb2),this[_0x5cd9('0xfa')];}['_initInteractions'](){this[_0x5cd9('0x101')][_0x5cd9('0x1b')][_0x5cd9('0x108')][_0x5cd9('0x7a')]['observeMarkers']('revision'),this['on'](_0x5cd9('0xbd'),(_0x634325,_0x418fca,_0x1d1c3b,_0x579fc1)=>{_0x579fc1&&this[_0x5cd9('0x9d')][_0x5cd9('0x75')](_0x579fc1),_0x1d1c3b&&(this[_0x5cd9('0x9d')]['add']({'view':_0x1d1c3b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1f41f6=this[_0x5cd9('0x101')][_0x5cd9('0x4b')],_0x33f2a1=this[_0x5cd9('0x4f')](_0x1d1c3b[_0x5cd9('0xb5')]);let _0x9427f6;if(_0x33f2a1[_0x5cd9('0xe4')]['isOnRoot']){const _0x1c0abb=_0x1f41f6[_0x5cd9('0xa')][_0x5cd9('0x10c')](_0x33f2a1[_0x5cd9('0xed')]);_0x9427f6=Array[_0x5cd9('0x24')](_0x1c0abb[_0x5cd9('0xa4')]());}else{const _0x508782=this['editor'][_0x5cd9('0x1b')]['markers'][_0x5cd9('0xc8')](_0x5cd9('0x0')+_0x1d1c3b['changeId']);_0x9427f6=Array[_0x5cd9('0x24')](_0x1f41f6[_0x5cd9('0x6d')][_0x5cd9('0x103')](_0x508782[_0x5cd9('0x5d')]))[_0x5cd9('0x8d')](_0x225290=>_0x1f41f6['view'][_0x5cd9('0xbc')][_0x5cd9('0xdb')](_0x225290))[_0x5cd9('0x8d')](_0x5c1f5e=>Array[_0x5cd9('0x24')](_0x5c1f5e[_0x5cd9('0xa4')]()))[_0x5cd9('0x7f')]();}if(!this[_0x5cd9('0xee')])return _0x9427f6[0x0];return _0x9427f6['find'](_0x4a2694=>_0x4a2694[_0x5cd9('0xe8')]-0x3<=this[_0x5cd9('0xee')]['y']&&_0x4a2694[_0x5cd9('0x43')]+0x3>=this[_0x5cd9('0xee')]['y']&&_0x4a2694['left']-0x3<=this['_activeViewTarget']['x']&&_0x4a2694[_0x5cd9('0xa1')]+0x3>=this['_activeViewTarget']['x'])||_0x9427f6[0x0];}}}),this[_0x5cd9('0x9d')]['showStack'](_0x5cd9('0x8e')));}),this['on'](_0x5cd9('0x11c'),(_0x126f3d,_0x3cd3d7,_0x37a0b3,_0x5ba9f)=>{this[_0x5cd9('0xd2')]=_0x37a0b3?this[_0x5cd9('0x27')](_0x37a0b3):null,this[_0x5cd9('0x101')][_0x5cd9('0x1b')][_0x5cd9('0x88')](()=>{const _0x13328b=this[_0x5cd9('0x101')]['editing'];_0x5ba9f&&(_0x5ba9f[_0x5cd9('0xe4')][_0x5cd9('0x118')]?_0x13328b[_0x5cd9('0xa')][_0x5cd9('0x88')](_0x4145a7=>{_0x4145a7[_0x5cd9('0x6f')](_0x5cd9('0x80'),_0x13328b[_0x5cd9('0xa')]['document']['getRoot'](_0x5ba9f[_0x5cd9('0xed')]));}):_0x13328b['reconvertMarker'](_0x5cd9('0x0')+_0x5ba9f['id'])),_0x37a0b3&&(_0x37a0b3[_0x5cd9('0xe4')][_0x5cd9('0x118')]?_0x13328b['view'][_0x5cd9('0x88')](_0x2434bf=>{_0x2434bf[_0x5cd9('0x2')](_0x5cd9('0x80'),_0x13328b[_0x5cd9('0xa')][_0x5cd9('0x108')][_0x5cd9('0xe7')](_0x37a0b3[_0x5cd9('0xed')]));}):_0x13328b['reconvertMarker'](_0x5cd9('0x0')+_0x37a0b3['id']));});}),this['listenTo'](this[_0x5cd9('0x101')]['editing'][_0x5cd9('0xa')][_0x5cd9('0x108')],_0x5cd9('0x62'),(_0x56b98b,_0x13e3b8)=>{if(this[_0x5cd9('0xf5')])return;const _0xccabbd=this[_0x5cd9('0xba')](_0x13e3b8[_0x5cd9('0x38')]),_0x422afd=this['_changeIdToChange'][_0x5cd9('0xc8')](_0xccabbd);_0x422afd?(this[_0x5cd9('0xee')]={'x':_0x13e3b8[_0x5cd9('0x106')]['x'],'y':_0x13e3b8[_0x5cd9('0x106')]['y']},this[_0x5cd9('0xd2')]=this[_0x5cd9('0x27')](_0x422afd)):(this[_0x5cd9('0xee')]=null,this['activeView']=null);}),this[_0x5cd9('0xb9')](this[_0x5cd9('0x101')][_0x5cd9('0x4b')]['view'][_0x5cd9('0x108')],_0x5cd9('0x68'),(_0x540834,_0x22c1ca)=>{const _0x3b1b7e=this[_0x5cd9('0xba')](_0x22c1ca[_0x5cd9('0x38')]),_0x30a740=this[_0x5cd9('0x9f')][_0x5cd9('0xc8')](_0x3b1b7e);_0x30a740?(this['_activeViewTarget']={'x':_0x22c1ca[_0x5cd9('0x106')]['x'],'y':_0x22c1ca['domEvent']['y']},_0x30a740===this[_0x5cd9('0xf5')]?this[_0x5cd9('0x9d')]['updatePosition']():this['activeChange']=_0x30a740):(this['_activeViewTarget']=null,this['activeChange']=null);});}[_0x5cd9('0xba')](_0x18cf14){do{const _0x19e3d5=_0x18cf14[_0x5cd9('0x1d')]('data-change-id');if(_0x19e3d5)return _0x19e3d5;_0x18cf14=_0x18cf14[_0x5cd9('0x3')];}while(_0x18cf14);return null;}[_0x5cd9('0xda')](){this[_0x5cd9('0x101')][_0x5cd9('0x1b')]['change'](_0x1e81f4=>{for(const _0x2c5f05 of this[_0x5cd9('0x101')][_0x5cd9('0x1b')][_0x5cd9('0xe')])_0x1e81f4['removeMarker'](_0x2c5f05);});}}function et(_0x4b78eb,_0x2d0fae){return(_0x34f988,_0x104df7,_0x1e9805)=>{if(!_0x1e9805[_0x5cd9('0x9a')][_0x5cd9('0xcb')](_0x104df7['markerRange'],_0x34f988[_0x5cd9('0x5d')]))return;const _0x535866=_0x104df7[_0x5cd9('0x8a')][_0x5cd9('0x98')](),_0x46fae5=_0x104df7[_0x5cd9('0x8a')][_0x5cd9('0x6a')],_0x2914e4=_0x4b78eb['model'][_0x5cd9('0xcc')];let _0x45e135=null,_0x46ff4f=null,_0x2fdf95=!0x1,_0x13a013=!0x1;for(const _0x29ddff of _0x535866){const _0x252522=_0x29ddff[_0x5cd9('0x2b')];_0x2fdf95=_0x2fdf95||_0x2914e4[_0x5cd9('0x83')](_0x252522);const _0xe1e297=_0x1e9805['mapper']['toViewElement'](_0x252522);if(_0xe1e297&&_0xe1e297[_0x5cd9('0x13')]('addHighlight'))return;'elementEnd'==_0x29ddff[_0x5cd9('0xf')]&&(_0x2914e4[_0x5cd9('0x7d')](_0x252522)&&!_0x2914e4[_0x5cd9('0x9b')](_0x252522)&&(_0x252522[_0x5cd9('0x10d')]||_0x46fae5[_0x5cd9('0xb4')]?_0x45e135&&_0x45e135[_0x5cd9('0x3')]==_0x252522||(_0x45e135=_0x252522,_0x417361(_0x29ddff[_0x5cd9('0x8b')]),_0x13a013=!0x0):_0x46ff4f=_0x46ff4f||_0x29ddff[_0x5cd9('0x8b')]));}function _0x417361(_0x1dc459){const _0x5b7356=_0x1e9805[_0x5cd9('0x6d')][_0x5cd9('0x79')](_0x1dc459),_0x39a9c0=_0x1e9805[_0x5cd9('0xa6')][_0x5cd9('0x74')]('span',{'class':_0x5cd9('0xf0')+_0x2d0fae});_0x1e9805['writer'][_0x5cd9('0x4')](_0x5b7356,_0x39a9c0),_0x1e9805[_0x5cd9('0x6d')][_0x5cd9('0xd')](_0x39a9c0,_0x104df7[_0x5cd9('0xf4')]);}_0x2fdf95||_0x13a013||!_0x46ff4f||_0x417361(_0x46ff4f);};}export class RestoreRevisionCommand extends _0x4d70d4{constructor(_0x17d4b9){super(_0x17d4b9);const _0x30f9cb=_0x17d4b9[_0x5cd9('0xa7')][_0x5cd9('0xc8')](d);this[_0x5cd9('0xe5')]=!0x1,this[_0x5cd9('0xb9')](_0x30f9cb,_0x5cd9('0x10'),()=>this[_0x5cd9('0xfb')]()),this[_0x5cd9('0xb9')](_0x30f9cb,_0x5cd9('0x100'),()=>this[_0x5cd9('0xfb')]());}[_0x5cd9('0xc')](){const _0x405520=this[_0x5cd9('0x101')],_0x19a04b=_0x405520['plugins']['get'](d),_0x5261b6=_0x19a04b[_0x5cd9('0x5c')]?_0x19a04b[_0x5cd9('0x54')][_0x5cd9('0x73')]:null;_0x405520[_0x5cd9('0x104')][_0x5cd9('0xc8')](_0x5cd9('0x69'))[_0x5cd9('0x3b')](_0x5261b6);}[_0x5cd9('0xfb')](){const {isReady:_0x3a670b,isEnabled:_0x272711}=this['editor'][_0x5cd9('0xa7')][_0x5cd9('0xc8')](d);this[_0x5cd9('0x90')]=_0x3a670b&&_0x272711;}}export class ShowChangeCommand extends _0x4d70d4{constructor(_0x1a659e,{direction:_0xb6136a}){super(_0x1a659e);const _0x380fc2=_0x1a659e[_0x5cd9('0xa7')][_0x5cd9('0xc8')](d);this[_0x5cd9('0xe5')]=!0x1,this[_0x5cd9('0x5a')]=_0x5cd9('0x2c')===_0xb6136a?0x1:-0x1,this[_0x5cd9('0xb9')](_0x380fc2,_0x5cd9('0x10'),()=>this[_0x5cd9('0xfb')]()),this['listenTo'](_0x380fc2,'change:isEnabled',()=>this[_0x5cd9('0xfb')]()),this[_0x5cd9('0xb9')](_0x380fc2,_0x5cd9('0x11c'),()=>this[_0x5cd9('0xfb')]());}[_0x5cd9('0xc')](){const _0x5c458d=this[_0x5cd9('0x101')],_0x568c39=_0x5c458d['plugins'][_0x5cd9('0xc8')](d),{isNavigationMode:_0x5ec954,currentChangeNumber:_0xe798b6}=_0x568c39;let _0x2d1531;if(_0x568c39[_0x5cd9('0xf5')]=_0x5ec954?_0x568c39[_0x5cd9('0x54')][_0x5cd9('0x105')][_0x5cd9('0xc8')](_0xe798b6+this[_0x5cd9('0x5a')]):_0x568c39[_0x5cd9('0x54')]['changes']['first'],_0x568c39[_0x5cd9('0xf5')][_0x5cd9('0xe4')][_0x5cd9('0x118')])_0x2d1531=_0x5c458d['editing']['view'][_0x5cd9('0x10c')](_0x568c39[_0x5cd9('0xf5')][_0x5cd9('0xed')]);else{const _0x9da165=_0x5c458d[_0x5cd9('0x1b')][_0x5cd9('0xe')][_0x5cd9('0xc8')](_0x5cd9('0x0')+_0x568c39[_0x5cd9('0xf5')]['id']);_0x2d1531=_0x3441c4(_0x5c458d['editing'],_0x9da165);}_0x5ef46d({'target':_0x2d1531,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x38a9d4,currentChangeNumber:_0x3c8b87,numberOfChanges:_0x32f204,isReady:_0x373bab,isEnabled:_0x526875}=this[_0x5cd9('0x101')]['plugins']['get'](d);this[_0x5cd9('0x90')]=!!(_0x526875&&_0x373bab&&_0x32f204)&&(!_0x38a9d4||(0x1===this[_0x5cd9('0x5a')]?_0x3c8b87<_0x32f204-0x1:_0x3c8b87>0x0));}}
23
+ const _0x29f9=['addMarker:revision','consume','merge','unbindElementFromMarkerName','get','showPreviousChange','isNavigationMode','keys','revision','addClass','createAttributeElement','mousedown','createUIElement','isEqual','markerToData','all','isAddSuggestion','forEach','isInline','distance','addRevisionData','revisionHistoryLabel','hasClass','split','maxOffset','startIndex','createPositionFromPath','hasAttribute','removeMarker','roots','name','editor','insert','low','insertion','schema','POSITIVE_INFINITY','next','slice','_getViewForChange','enableReadOnlyMode','markerToHighlight','addMarker:revision-suggestion:insertion','comment','markerNameToElements','getCustomProperty','revision-suggestion','removeAttribute','filter','_sortAndFilterDiffChanges','_markMarkers','compare','stop','enqueueChange','processor','addRevision','offsetSize','revision:','_getRevisionsRange','isSuggestion','end','_findChangeIdFromDomTarget','consumable','currentChangeNumber','downcastDispatcher','map','nextSibling','isAdded','forward','changeId','getAttributes','then','getIndex','_threeWayMerge','dataToMarker','isOnRoot','addRoot','_removeRevisionMarkers','isAfter','data-revision-','span','_changeView','concat','markersStart','_makeTape','requires','abs','_setDistance','endIndex','level','viewItem','parse','elementToAttribute','attributesBefore','parent','_changeIdToChange','affectsData','_appendChild','_refreshStartEndIndex','unshift','diff','change:activeChange','pop','adapter','bottom','_markSuggestions','getRevisionData','side','isBefore','_removeUnsupportedChanges','getRootNames','createRangeIn','ck-suggestion-marker--active','editingDowncast','deletion','revisionHistoryAttachChange','getRoot','_markInsertions','start','data-change-id','_makeModelFromViewString','vid_start','vid','changes','softBreak','item','left','isAtStart','createRevision','addHighlight','resolve','_step','shift','detachRoot','change:isEnabled','upcast','getRevisionRootsAttributes','flat','indexOf','ck-suggestion-preview-marker-','markers','activeChange','domEvent','set','ck-revision-history-root-add','from','_setChanges','mapper','splice','find','getRevision','toViewElement','useFillerType','getClientRects','isBlock','listenTo','toModel','suggestion:','isAtEnd','createRange','observeMarkers','ck-revision-history-root-remove','updatePosition','isEnabled','_getChangeFromId','userId','refresh','return','activeView','revision-start','_processTape','for','getWalker','push','add','findIndex','change:activeView','length','toViewPosition','markersEnd','data','loadRevisionData','selection','insertions','object','isContent','model','pluginName','showStack','mapViewToDom','includes','revision-viewer','markerRange','elementStart','sort','attributesAfter','-new','element','remove','first','isLimit','attachChange','collaboration.channelId','clear','_revisions','removeMarker:revision-suggestion','document','isRemoved','_getDiff','marked','_cleanUp','editing','_update','rootName','_removeMissingPairs','isReady','plugins','revision-suggestion:','attribute:vid','change','_getViewObj','previousPosition','conversion','vid_end','getAttribute','removeClass','execute','repository','ck-suggestion-marker-','high','ck-suggestion-marker-merge','dataDowncast','attributes','view','diffData','_fixObsoleteTags','text','isAttached','isIncorrect','_markMismatchedRemovedTags','commands','highest','bindElementToMarker','modelRange','removeMarker:revision','ck-editor__editable__overlay','startsWith','delete','has','toData','locale','_activeViewTarget','pairId','isRemoveSuggestion','catch','writer','restoreRevisionCallback','test','ck-revision-history-root--active','target','markerName','reconvertMarker','wrap','suggestion','deletions','RevisionViewer','string','nodeAfter','_setConversion','done','getDomRoot','error','type','_balloon','children','nextPosition','numberOfChanges','isCollapsed','_data','index','restoreRevision','getItems','setAttribute','newRevisionId','bind','backward','elementEnd'];(function(_0x1d785f,_0x29f9df){const _0x3c0702=function(_0x49fb36){while(--_0x49fb36){_0x1d785f['push'](_0x1d785f['shift']());}};_0x3c0702(++_0x29f9df);}(_0x29f9,0xdf));const _0x3c07=function(_0x1d785f,_0x29f9df){_0x1d785f=_0x1d785f-0x0;let _0x3c0702=_0x29f9[_0x1d785f];return _0x3c0702;};import{Plugin as _0xb5b263,Command as _0x14fe97}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x113633}from'ckeditor5/src/utils';import{ContextualBalloon as _0x472dc6}from'ckeditor5/src/ui';import{DocumentFragment as _0x188d52,Element as _0x2b2bbc,Text as _0x538d83,ViewDocumentFragment as _0x560c58,ViewText as _0x3c2903,ViewElement as _0x2bfea8,ViewContainerElement as _0x58f227,ViewAttributeElement as _0x78be20,ViewEmptyElement as _0xcaf9a1,ViewRawElement as _0x4795fa,ViewUIElement as _0x2ac804}from'ckeditor5/src/engine';import{Users as _0x3021b4,getMarkerDomElement as _0x37dcec}from'ckeditor5-collaboration/src/collaboration-core';import _0x579397 from'./ui/revisionviewer/changedetailsview';import _0x8dc73b from'./revisionsrepository';import _0x4420af from'./changeitem';import{default as _0x177897}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x9f87b9}from'lodash-es';const tt={'c':_0x58f227,'a':_0x78be20,'e':_0xcaf9a1,'r':_0x4795fa,'u':_0x2ac804};export default class d extends _0xb5b263{static get[_0x3c07('0xfb')](){return _0x3c07('0x2a');}static get[_0x3c07('0x95')](){return[_0x3021b4,_0x472dc6,_0x8dc73b];}constructor(_0x165623){super(_0x165623),this['repository']=this[_0x3c07('0x5f')][_0x3c07('0x118')][_0x3c07('0x44')]('RevisionsRepository'),this[_0x3c07('0xcf')](_0x3c07('0xcd'),null),this['set']('activeView',null),this[_0x3c07('0x1c')]=null,this[_0x3c07('0xcf')]('diff',null),this[_0x3c07('0xcf')](_0x3c07('0x117'),!0x1),this[_0x3c07('0xcf')]('isEnabled',!0x0),this['on'](_0x3c07('0xc6'),(_0x382c5e,_0x48fbe1,_0x54b54d)=>{this[_0x3c07('0xcd')]=null,this['activeView']=null,this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x11b')](_0x47a9d1=>{for(const _0x8ecc53 of this['editor'][_0x3c07('0x113')]['view']['document'][_0x3c07('0x5d')])_0x54b54d?_0x47a9d1[_0x3c07('0x2')](_0x3c07('0x16'),_0x8ecc53):_0x47a9d1[_0x3c07('0x49')]('ck-editor__editable__overlay',_0x8ecc53);});}),this[_0x3c07('0x3d')](_0x3c07('0x46'))['to'](this,_0x3c07('0xcd'),_0x35c0c2=>null!==_0x35c0c2),this['bind'](_0x3c07('0x7f'))['to'](this,'isReady',this,_0x3c07('0xa4'),this,'activeChange',(_0x50880b,_0x5aec69,_0x1a3fa6)=>_0x50880b&&_0x1a3fa6?_0x5aec69['changes'][_0x3c07('0x88')](_0x1a3fa6):0x0),this[_0x3c07('0x3d')](_0x3c07('0x35'))['to'](this,_0x3c07('0x117'),this,_0x3c07('0xa4'),(_0x346f18,_0x12839d)=>_0x346f18?_0x12839d[_0x3c07('0xbb')]['length']:0x0),this[_0x3c07('0x91')]=null,this[_0x3c07('0x9f')]=new Map(),this[_0x3c07('0xa7')]=null,this[_0x3c07('0x32')]=this[_0x3c07('0x5f')]['plugins'][_0x3c07('0x44')](_0x472dc6);}['init'](){const _0x1bf701=this[_0x3c07('0x5f')],_0x5b5395=new ShowChangeCommand(_0x1bf701,{'direction':_0x3c07('0x3e')}),_0x1bfb38=new ShowChangeCommand(_0x1bf701,{'direction':'forward'});(_0x1bf701[_0x3c07('0x11')][_0x3c07('0xee')](_0x3c07('0x45'),_0x5b5395),_0x1bf701[_0x3c07('0x11')][_0x3c07('0xee')]('showNextChange',_0x1bfb38),_0x1bf701[_0x3c07('0x11')][_0x3c07('0xee')](_0x3c07('0x39'),new RestoreRevisionCommand(_0x1bf701)),this['on']('change:numberOfChanges',()=>{_0x5b5395['refresh'](),_0x1bfb38['refresh']();}),this[_0x3c07('0x2d')](),this['_initInteractions'](),_0x1bf701[_0x3c07('0x68')](_0x3c07('0xff')),_0x1bf701[_0x3c07('0x118')][_0x3c07('0x19')]('WidgetToolbarRepository'))&&_0x1bf701[_0x3c07('0x118')][_0x3c07('0x44')]('WidgetToolbarRepository')['forceDisabled'](_0x3c07('0xff'));}async[_0x3c07('0xaa')](_0x1a8304){await this['loadRevisionData'](_0x1a8304);const _0x5b9b22={};for(const _0x339223 in _0x1a8304['diffData']){if(_0x1a8304[_0x3c07('0xb')][_0x339223][_0x3c07('0x109')]&&!_0x1a8304[_0x3c07('0xb')][_0x339223][_0x3c07('0x109')][_0x3c07('0xe')])continue;const _0x4f8c16=this[_0x3c07('0x8d')](JSON[_0x3c07('0x9b')](_0x1a8304[_0x3c07('0xb')][_0x339223][_0x3c07('0xf7')])),_0x271187=this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],_0x2b3efe=new _0x560c58(_0x271187,_0x4f8c16[_0x3c07('0x81')](_0x22561e=>this['_getViewObj'](_0x22561e)));this[_0x3c07('0x5f')][_0x3c07('0xf4')][_0x3c07('0x76')][_0x3c07('0xd8')](_0x3c07('0x111')),_0x5b9b22[_0x339223]=this[_0x3c07('0x5f')][_0x3c07('0xf4')][_0x3c07('0x76')][_0x3c07('0x1a')](_0x2b3efe),this['editor'][_0x3c07('0xf4')][_0x3c07('0x76')][_0x3c07('0xd8')]('default');}return _0x5b9b22;}async[_0x3c07('0xc8')](_0x2e0cef){await this[_0x3c07('0xf5')](_0x2e0cef);const _0x5d4b80={};for(const _0x2087f9 in _0x2e0cef[_0x3c07('0xb')])_0x2e0cef[_0x3c07('0xb')][_0x2087f9]['attachChange']&&!_0x2e0cef[_0x3c07('0xb')][_0x2087f9][_0x3c07('0x109')][_0x3c07('0xe')]||(_0x5d4b80[_0x2087f9]=_0x2e0cef['diffData'][_0x2087f9][_0x3c07('0x103')]||{});return _0x5d4b80;}['_removeRevisionMarkers'](_0x506af5){return(_0x506af5=_0x506af5['filter'](_0x46605e=>!_0x46605e[_0x3c07('0x5e')]||_0x3c07('0xe9')!==_0x46605e['name']&&'revision-end'!==_0x46605e[_0x3c07('0x5e')]))[_0x3c07('0x51')](_0xed4e09=>{_0x3c07('0x2b')!=typeof _0xed4e09&&(_0xed4e09[_0x3c07('0x33')]=this[_0x3c07('0x8d')](_0xed4e09[_0x3c07('0x33')]),_0xed4e09[_0x3c07('0x9')]=_0xed4e09[_0x3c07('0x9')]['filter'](_0x37522f=>!_0x37522f[0x0][_0x3c07('0x17')](_0x3c07('0x8f'))));}),_0x506af5;}async[_0x3c07('0x73')](_0x4631b9,_0x4700ea,_0x23ff79=!0x1){if(!this[_0x3c07('0xe3')])return;const _0x7658be=this[_0x3c07('0xa4')],_0x458744=this[_0x3c07('0x4')],_0x5ebc4f=_0x3c07('0x2b')==typeof _0x4631b9?_0x458744[_0x3c07('0xd6')](_0x4631b9):_0x4631b9,_0x2b1fd8='string'==typeof _0x4700ea?_0x458744[_0x3c07('0xd6')](_0x4700ea):_0x4700ea,_0x137bb3=_0x5ebc4f['id'],_0x588f31=_0x2b1fd8?_0x2b1fd8['id']:null;if(!_0x23ff79&&this['diff']&&this[_0x3c07('0xa4')][_0x3c07('0x3c')]===_0x137bb3&&this['diff']['oldRevisionId']===_0x588f31)return Promise[_0x3c07('0xc2')]();this[_0x3c07('0x117')]=!0x1,this[_0x3c07('0xe8')]=null,this[_0x3c07('0xcd')]=null,this[_0x3c07('0xa4')]=new _0x177897(_0x137bb3,_0x588f31);const _0x20e7a4=this[_0x3c07('0x7a')](_0x5ebc4f,_0x2b1fd8,!0x0)[_0x3c07('0x81')](_0x22cd09=>this[_0x3c07('0xf5')](_0x22cd09));return _0x20e7a4[_0x3c07('0xed')](new Promise(_0x4c67d0=>{setTimeout(_0x4c67d0,0x14);})),Promise[_0x3c07('0x4f')](_0x20e7a4)[_0x3c07('0x87')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5f09fb=this['_getDiff'](_0x137bb3,_0x588f31);for(const _0x26b934 of _0x5f09fb[_0x3c07('0xbb')])this['_changeIdToChange']['set'](_0x26b934['id'],_0x26b934);this[_0x3c07('0x5f')][_0x3c07('0xfa')]['enqueueChange']({'isUndoable':!0x1},_0x1ec553=>{for(const _0x583e0f of this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['getRootNames']())_0x1ec553[_0x3c07('0xc5')](_0x583e0f);for(const _0x254a4a of Object['keys'](_0x5f09fb[_0x3c07('0xfa')])){const _0x31f77a=_0x1ec553[_0x3c07('0x8c')](_0x254a4a);for(const _0x25d1ea of Object[_0x3c07('0x47')](_0x5f09fb[_0x3c07('0x9')][_0x254a4a]))_0x1ec553[_0x3c07('0x3b')](_0x25d1ea,_0x5f09fb[_0x3c07('0x9')][_0x254a4a][_0x25d1ea],_0x31f77a);_0x1ec553[_0x3c07('0x60')](_0x5f09fb[_0x3c07('0xfa')][_0x254a4a],_0x31f77a,0x0);}}),this['diff'][_0x3c07('0xd2')](this[_0x3c07('0x71')](_0x5f09fb[_0x3c07('0xbb')])),this[_0x3c07('0x117')]=!0x0;})[_0x3c07('0x1f')](_0x41c24e=>{console[_0x3c07('0x30')](_0x41c24e),this[_0x3c07('0x112')](),_0x7658be&&(this[_0x3c07('0xa4')]=_0x7658be),this[_0x3c07('0x117')]=!0x0;});}[_0x3c07('0x54')](_0x1468e3,_0x3a58e3){const _0x5719dc=this['repository'][_0x3c07('0xc0')](_0x1468e3);return _0x5719dc['on'](_0x3c07('0x114'),(_0x4fb69e,_0x2de52f,_0x99c303)=>_0x3a58e3(_0x2de52f,_0x99c303,_0x5719dc)),this['repository'][_0x3c07('0x77')](_0x5719dc),_0x5719dc;}[_0x3c07('0xf5')](_0x537c8e){if(!_0x537c8e||_0x537c8e[_0x3c07('0xb')])return Promise[_0x3c07('0xc2')]();{const _0x458f55=this[_0x3c07('0x5f')]['config'][_0x3c07('0x44')](_0x3c07('0x10a'));return this[_0x3c07('0xa7')][_0x3c07('0xd6')]({'channelId':_0x458f55,'revisionId':_0x537c8e['id']})['then'](_0x3833e4=>{_0x537c8e[_0x3c07('0x114')]({'diffData':_0x3833e4[_0x3c07('0xb')]},!0x0);});}}[_0x3c07('0x112')](){this[_0x3c07('0xcd')]=null,this['_cleanMarkers'](),this[_0x3c07('0x91')]&&this[_0x3c07('0x91')]['destroy'](),this['_changeView']=null,this['_changeIdToChange'][_0x3c07('0x10b')](),this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x75')]({'isUndoable':!0x1},_0x2e670b=>{for(const _0x760e74 of this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['getRootNames']())_0x2e670b[_0x3c07('0xc5')](_0x760e74);});}[_0x3c07('0x71')](_0x4f465a){const _0x36bb4d=[],_0x548c08=new Map();for(const _0x5043cf of this[_0x3c07('0x5f')]['model'][_0x3c07('0x10e')][_0x3c07('0xae')]()){const _0x57a177=this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x2f')](_0x5043cf);if(!_0x57a177)continue;const _0x13c2d7=_0x57a177[_0x3c07('0xd9')]()[_0x3c07('0xbd')](0x0);_0x13c2d7&&(_0x36bb4d[_0x3c07('0xed')](_0x5043cf),_0x548c08[_0x3c07('0xcf')](_0x5043cf,_0x13c2d7));}return _0x36bb4d[_0x3c07('0x102')]((_0x101fd1,_0x404e35)=>{const _0x423392=_0x548c08[_0x3c07('0x44')](_0x101fd1),_0x1ddbdd=_0x548c08['get'](_0x404e35);return _0x423392['y']-_0x1ddbdd['y']||_0x423392['x']-_0x1ddbdd['x'];}),(_0x4f465a=_0x4f465a['filter'](_0x398602=>_0x36bb4d[_0x3c07('0xfe')](_0x398602[_0x3c07('0x115')])))[_0x3c07('0x102')]((_0x4db291,_0x359deb)=>_0x36bb4d[_0x3c07('0xca')](_0x4db291[_0x3c07('0x115')])-_0x36bb4d[_0x3c07('0xca')](_0x359deb[_0x3c07('0x115')])),_0x4f465a;}[_0x3c07('0x94')](_0x1cc629){const _0x32d566=Array[_0x3c07('0xd1')](_0x1cc629[_0x3c07('0xcc')])[_0x3c07('0x70')](([_0xa8e172,_0x233b98])=>_0xa8e172['startsWith'](_0x3c07('0x79'))&&!_0x233b98[_0x3c07('0x36')]),_0x1fb474=Array[_0x3c07('0xd1')](this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0xaf')](_0x1cc629)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x32d566[_0x3c07('0xf1')])for(const _0x30e9c9 of _0x1fb474){const [_0x1aa862,_0xd1027b]=_0x32d566[0x0],[,_0x3e3126,_0x98d908]=_0x1aa862[_0x3c07('0x57')](':');if(_0xd1027b[_0x3c07('0x7c')][_0x3c07('0x4d')](_0x30e9c9[_0x3c07('0x34')])&&_0x32d566[_0x3c07('0xc4')](),(_0x30e9c9[_0x3c07('0x11d')][_0x3c07('0x4d')](_0xd1027b[_0x3c07('0xb6')])||_0x30e9c9[_0x3c07('0x11d')]['isAfter'](_0xd1027b['start']))&&(_0x3c07('0x62')==_0x3e3126?_0x30e9c9['isAdded']={'userId':_0x98d908}:'deletion'==_0x3e3126&&(_0x30e9c9[_0x3c07('0x10f')]={'userId':_0x98d908})),0x0==_0x32d566[_0x3c07('0xf1')])break;}return _0x1fb474;}[_0x3c07('0xa2')](_0x36cc17){const _0x1d6806=new Map();for(let _0x3a6d32=0x0;_0x3a6d32<_0x36cc17[_0x3c07('0xf1')];_0x3a6d32++)_0x3c07('0xd')===_0x36cc17[_0x3a6d32]['type']?(_0x36cc17[_0x3a6d32][_0x3c07('0xbd')]['startIndex']=_0x3a6d32,_0x36cc17[_0x3a6d32][_0x3c07('0xbd')][_0x3c07('0x98')]=_0x3a6d32):(_0x3c07('0x101')===_0x36cc17[_0x3a6d32][_0x3c07('0x31')]?_0x36cc17[_0x3a6d32][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x3a6d32:_0x3c07('0x3f')===_0x36cc17[_0x3a6d32][_0x3c07('0x31')]&&(_0x36cc17[_0x3a6d32][_0x3c07('0xbd')]['endIndex']=_0x3a6d32),_0x1d6806['set'](_0x36cc17[_0x3a6d32]['id'],_0x3a6d32));for(const _0x5aab39 of _0x1d6806['values']())_0x3c07('0x101')===_0x36cc17[_0x5aab39][_0x3c07('0x31')]?_0x36cc17[_0x5aab39][_0x3c07('0xbd')][_0x3c07('0x98')]=_0x1d6806[_0x3c07('0x44')](_0x36cc17[_0x5aab39][_0x3c07('0x1d')]):_0x3c07('0x3f')===_0x36cc17[_0x5aab39][_0x3c07('0x31')]&&(_0x36cc17[_0x5aab39][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x1d6806[_0x3c07('0x44')](_0x36cc17[_0x5aab39][_0x3c07('0x1d')]));}[_0x3c07('0xea')](_0x32c00f){for(let _0x34bbda=0x0;_0x34bbda<_0x32c00f[_0x3c07('0xf1')];_0x34bbda++){if(_0x3c07('0x101')===_0x32c00f[_0x34bbda]['type'])_0x32c00f[_0x34bbda][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x34bbda;else{if(_0x3c07('0x3f')===_0x32c00f[_0x34bbda][_0x3c07('0x31')]){_0x32c00f[_0x34bbda][_0x3c07('0xbd')][_0x3c07('0x98')]=_0x34bbda;const _0x4935c4=_0x32c00f[_0x34bbda][_0x3c07('0xbd')]['startIndex'];_0x32c00f[_0x4935c4][_0x3c07('0x1d')]=_0x32c00f[_0x34bbda]['id'],_0x32c00f[_0x34bbda][_0x3c07('0x1d')]=_0x32c00f[_0x4935c4]['id'];}else _0x32c00f[_0x34bbda][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x34bbda,_0x32c00f[_0x34bbda][_0x3c07('0xbd')]['endIndex']=_0x34bbda,_0x32c00f[_0x34bbda][_0x3c07('0x1d')]=null;}_0x32c00f[_0x34bbda][_0x3c07('0x93')]||(_0x32c00f[_0x34bbda][_0x3c07('0x93')]=[],_0x32c00f[_0x34bbda][_0x3c07('0xf3')]=[]);}}[_0x3c07('0xb5')](_0x209eea,_0x65a9e1){const _0x40bd0a=_0x209eea[_0x3c07('0x70')](_0x7cfced=>!_0x7cfced['isAdded']);for(let _0x2a16ff=0x0;_0x2a16ff<_0x65a9e1[_0x3c07('0xf1')];_0x2a16ff++)_0x65a9e1[_0x2a16ff][_0x3c07('0x83')]&&(_0x40bd0a[_0x2a16ff]['isAdded']=_0x65a9e1[_0x2a16ff]['isAdded']);}[_0x3c07('0xb8')](_0xf196c0){const _0x57049e=JSON[_0x3c07('0x9b')](_0xf196c0),_0x577fb9=this[_0x3c07('0x5f')][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],_0x2c8048=new _0x560c58(_0x577fb9,_0x57049e[_0x3c07('0x81')](_0x3461de=>this['_getViewObj'](_0x3461de)));return this['editor']['data'][_0x3c07('0xdc')](_0x2c8048);}[_0x3c07('0x11c')](_0x433776){const _0x3e6979=this[_0x3c07('0x5f')][_0x3c07('0x113')]['view'][_0x3c07('0x10e')];if('string'==typeof _0x433776)return new _0x3c2903(_0x3e6979,_0x433776);{const _0x2d79b6=_0x433776[_0x3c07('0x33')][_0x3c07('0x81')](_0x17db0e=>this[_0x3c07('0x11c')](_0x17db0e));return new(tt[_0x433776[(_0x3c07('0x31'))]]||_0x2bfea8)(_0x3e6979,_0x433776['name'],_0x433776['attributes'],_0x2d79b6);}}[_0x3c07('0x110')](_0x5b88e4,_0x5ba7c7=null){const _0x436e6d=this['repository'][_0x3c07('0xd6')](_0x5b88e4),_0x141310=_0x5ba7c7?this['repository']['getRevision'](_0x5ba7c7):null,_0x5bd8d5=this['_getRevisionsRange'](_0x436e6d,_0x141310),_0x4d45ea=_0x5bd8d5[_0x5bd8d5[_0x3c07('0xf1')]-0x1],_0x245c11=new Map(),_0x17e935={'model':{},'attributes':{},'changes':[]},_0x106c5a=new Set(),_0x3ca726=new Map();for(let _0x258cf6=_0x5bd8d5[_0x3c07('0xf1')]-0x1;_0x258cf6>=0x0;_0x258cf6--){const _0x2ce4f0=_0x5bd8d5[_0x258cf6];for(const _0x3eb286 of Object[_0x3c07('0x47')](_0x2ce4f0[_0x3c07('0xb')]))if(_0x2ce4f0[_0x3c07('0xb')][_0x3eb286]['attachChange']){const _0x4a761e=_0x2ce4f0[_0x3c07('0xb')][_0x3eb286][_0x3c07('0x109')];_0x4a761e[_0x3c07('0xe')]?(_0x106c5a[_0x3c07('0xee')](_0x3eb286),_0x3ca726[_0x3c07('0x19')](_0x3eb286)&&_0x3ca726['get'](_0x3eb286)[_0x3c07('0xe5')]==_0x4a761e[_0x3c07('0xe5')]?_0x3ca726[_0x3c07('0x18')](_0x3eb286):_0x3ca726[_0x3c07('0xcf')](_0x3eb286,_0x4a761e)):_0x3ca726['has'](_0x3eb286)?(_0x106c5a[_0x3c07('0x18')](_0x3eb286),_0x3ca726['delete'](_0x3eb286)):(_0x106c5a[_0x3c07('0xee')](_0x3eb286),_0x3ca726['set'](_0x3eb286,_0x4a761e));}else _0x106c5a[_0x3c07('0xee')](_0x3eb286);}for(const _0x5883c9 of _0x106c5a){const _0x443397=_0x3ca726[_0x3c07('0x19')](_0x5883c9)&&!_0x3ca726[_0x3c07('0x44')](_0x5883c9)[_0x3c07('0xe')];let _0x5e5e04=_0x443397?_0x5bd8d5[_0x3c07('0xf1')]-0x1:0x0;const _0xb7deec=_0x443397?-0x1:0x1;for(;_0x5bd8d5[_0x5e5e04];){const _0x253fc2=_0x5bd8d5[_0x5e5e04];if(_0x253fc2[_0x3c07('0xb')][_0x5883c9]){const _0x196811=_0x443397?_0x253fc2[_0x3c07('0xb')][_0x5883c9][_0x3c07('0x9d')]:_0x253fc2[_0x3c07('0xb')][_0x5883c9]['attributesAfter'];_0x17e935[_0x3c07('0x9')][_0x5883c9]=_0x196811?_0x9f87b9(_0x196811):{};break;}_0x5e5e04+=_0xb7deec;}}for(const _0x4af975 of _0x5bd8d5){_0x4af975[_0x3c07('0xfa')]={};for(const _0x334cd7 of _0x4af975['authors'])_0x245c11['set'](_0x334cd7['id'],_0x334cd7);for(const _0x58c61e of _0x106c5a){const _0x1e9f80=_0x4af975[_0x3c07('0xb')][_0x58c61e]?_0x4af975[_0x3c07('0xb')][_0x58c61e][_0x3c07('0xf7')]:'[]',_0x1873af=_0x4af975[_0x3c07('0xb')][_0x58c61e]?_0x4af975['diffData'][_0x58c61e]['deletions']:'[]';_0x4af975[_0x3c07('0xfa')][_0x58c61e]={'insertions':this[_0x3c07('0xb8')](_0x1e9f80),'deletions':this[_0x3c07('0xb8')](_0x1873af)};}}for(const _0xc76ce6 of _0x106c5a){let _0xf54419=null,_0x5ea78d=0x0;const _0x4d084a=new Map(Array[_0x3c07('0xd1')](_0x436e6d[_0x3c07('0xfa')][_0xc76ce6][_0x3c07('0xf7')][_0x3c07('0xcc')])[_0x3c07('0x70')](([_0x411956])=>!_0x411956[_0x3c07('0x17')](_0x3c07('0x79'))));let _0x546a7e=0x0;for(const _0x51b87d of _0x5bd8d5){const _0x26822c=this[_0x3c07('0x94')](_0x51b87d[_0x3c07('0xfa')][_0xc76ce6][_0x3c07('0xf7')]);_0x51b87d==_0x436e6d?(_0xf54419=_0x26822c,_0x5ea78d=_0xf54419[_0x3c07('0xf1')],_0xf54419[_0x3c07('0x51')](_0x47b9f3=>{_0x47b9f3['id']=_0x546a7e++;}),this[_0x3c07('0xea')](_0xf54419)):this[_0x3c07('0xb5')](_0xf54419,_0x26822c);const _0x1e36e8=_0xf54419[_0x3c07('0x70')](_0x4ac691=>!_0x4ac691[_0x3c07('0x83')])[_0x3c07('0x81')](_0x268a21=>_0x268a21['id']);let _0x442742=0x0;const _0x443788=this['_makeTape'](_0x51b87d['model'][_0xc76ce6][_0x3c07('0x29')]);_0x443788[_0x3c07('0x51')](_0x453110=>{_0x453110['isRemoved']?_0x453110['id']=_0x5ea78d++:_0x453110['id']=_0x1e36e8[_0x442742++];}),this[_0x3c07('0xea')](_0x443788),this[_0x3c07('0x97')](_0xf54419,_0x3c07('0x83')),this[_0x3c07('0x97')](_0x443788,_0x3c07('0x10f')),_0x51b87d==_0x436e6d&&this[_0x3c07('0x72')](_0xf54419,_0x4d084a),_0xf54419=this['_joinTapes'](_0xf54419,_0x443788),this['_refreshStartEndIndex'](_0xf54419),this[_0x3c07('0x97')](_0xf54419,_0x3c07('0x10f'));}_0xf54419=_0xf54419[_0x3c07('0x70')](_0x481742=>!(_0x481742[_0x3c07('0x83')]&&_0x481742[_0x3c07('0x10f')]));const _0x55d589=new Map(_0x4d45ea[_0x3c07('0xfa')][_0xc76ce6]['deletions'][_0x3c07('0xcc')]),_0x505b60=new Set(_0x4d084a['keys']());for(const _0x3d208f of _0x55d589[_0x3c07('0x47')]())_0x505b60['delete'](_0x3d208f);this[_0x3c07('0xa9')](_0xf54419,_0x505b60),this[_0x3c07('0xc')](_0xf54419),_0xf54419=this[_0x3c07('0x116')](_0xf54419),_0xf54419=this['_markMismatchedRemovedTags'](_0xf54419),_0xf54419=this[_0x3c07('0xad')](_0xf54419);const {root:_0x5eda4f,changes:_0x571e6e}=this['_makeModelFromTape'](_0xf54419,_0x245c11,_0xc76ce6);_0x17e935[_0x3c07('0xfa')][_0xc76ce6]=_0x5eda4f;const _0xf305ab=_0x3ca726[_0x3c07('0x44')](_0xc76ce6);if(_0xf305ab){const _0x4dbbd5=_0x245c11[_0x3c07('0x44')](_0xf305ab[_0x3c07('0xe5')]),_0x21f4ba=new _0x4420af({'author':_0x4dbbd5,'type':_0xf305ab[_0x3c07('0xe')]?'add':_0x3c07('0x106'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xc76ce6});_0x571e6e[_0x3c07('0xa3')](_0x21f4ba),_0x17e935['attributes'][_0xc76ce6][_0x3c07('0xb3')]=_0x21f4ba['id'];}_0x17e935[_0x3c07('0xbb')]=_0x17e935[_0x3c07('0xbb')]['concat'](_0x571e6e);}return _0x17e935;}['_markMarkers'](_0x1f560f,_0x5517ee){for(let _0x900674=0x0;_0x900674<_0x1f560f[_0x3c07('0xf1')];_0x900674++)for(const [_0x2a59a7,_0x2ee874]of _0x5517ee)_0x2ee874[_0x3c07('0xb6')]['isEqual'](_0x1f560f[_0x900674]['previousPosition'])&&_0x1f560f[_0x900674]['markersStart']['push'](_0x2a59a7),_0x2ee874[_0x3c07('0x7c')][_0x3c07('0x4d')](_0x1f560f[_0x900674][_0x3c07('0x34')])&&_0x1f560f[_0x900674][_0x3c07('0xf3')]['push'](_0x2a59a7);}['_joinTapes'](_0x598190,_0x47a8c1){let _0x4cb06=[],_0x31d35b=0x0,_0x2810c5=0x0;for(;_0x31d35b<_0x598190[_0x3c07('0xf1')]||_0x2810c5<_0x47a8c1[_0x3c07('0xf1')];){const _0x55b929=_0x598190[_0x31d35b]||{},_0x38a026=_0x47a8c1[_0x2810c5]||{};if(_0x55b929['id']==_0x38a026['id'])_0x31d35b++,_0x2810c5++,_0x4cb06[_0x3c07('0xed')](_0x55b929);else{if(_0x38a026[_0x3c07('0x10f')]&&_0x55b929[_0x3c07('0x83')]){const {commonTape:_0x508673,iEnd:_0x242425,jEnd:_0x401cbe}=this[_0x3c07('0x89')](_0x598190,_0x31d35b,_0x47a8c1,_0x2810c5);_0x4cb06=_0x4cb06['concat'](_0x508673),_0x31d35b=_0x242425,_0x2810c5=_0x401cbe;}else _0x38a026[_0x3c07('0x10f')]?(_0x2810c5++,_0x4cb06[_0x3c07('0xed')](_0x38a026)):(_0x31d35b++,_0x4cb06[_0x3c07('0xed')](_0x55b929));}}return _0x4cb06;}[_0x3c07('0xa9')](_0x14c4d5,_0x29287b){const _0x5eb7cc=[];for(let _0x133557=0x0;_0x133557<_0x14c4d5['length'];_0x133557++){for(let _0x4994ac=0x0;_0x4994ac<_0x14c4d5[_0x133557][_0x3c07('0x93')][_0x3c07('0xf1')];_0x4994ac++){const _0x1483bc=_0x14c4d5[_0x133557][_0x3c07('0x93')][_0x4994ac];if(!_0x29287b[_0x3c07('0x19')](_0x1483bc))continue;const {group:_0x326c0a,type:_0x315338,authorId:_0x4936fb}=_0x4ebd2f(_0x1483bc);'revision-suggestion'!=_0x326c0a||_0x3c07('0x62')!=_0x315338&&_0x3c07('0xb2')!=_0x315338||(_0x5eb7cc[_0x3c07('0xa3')]({'type':_0x315338,'name':_0x1483bc,'userId':_0x4936fb}),_0x14c4d5[_0x133557][_0x3c07('0x93')]['splice'](_0x4994ac,0x1),_0x4994ac--);}_0x4ddf86(_0x14c4d5[_0x133557]);for(let _0x3bfaf6=0x0;_0x3bfaf6<_0x14c4d5[_0x133557][_0x3c07('0xf3')][_0x3c07('0xf1')];_0x3bfaf6++){const _0x55002c=_0x14c4d5[_0x133557][_0x3c07('0xf3')][_0x3bfaf6];if(!_0x29287b[_0x3c07('0x19')](_0x55002c))continue;const {group:_0x4fb569,type:_0x38a31e}=_0x4ebd2f(_0x55002c);if('revision-suggestion'!=_0x4fb569||_0x3c07('0x62')!=_0x38a31e&&_0x3c07('0xb2')!=_0x38a31e)continue;_0x14c4d5[_0x133557][_0x3c07('0xf3')][_0x3c07('0xd4')](_0x3bfaf6,0x1),_0x3bfaf6--;const _0x5394c7=_0x5eb7cc[_0x3c07('0xef')](_0x3a5d26=>_0x3a5d26[_0x3c07('0x5e')]==_0x55002c);_0x5394c7>-0x1&&_0x5eb7cc['splice'](_0x5394c7,0x1);}}function _0x4ebd2f(_0x2cb414){const _0x4f2626=_0x2cb414[_0x3c07('0x57')](':');return{'group':_0x4f2626[0x0],'type':_0x4f2626[0x1],'subType':_0x4f2626[_0x3c07('0xf1')]>=0x5?_0x4f2626[0x2]:null,'id':_0x4f2626['length']<0x5?_0x4f2626[0x2]:_0x4f2626[0x3],'authorId':_0x4f2626[_0x3c07('0xf1')]<0x5?_0x4f2626[0x3]:_0x4f2626[0x4],'markerCount':0x6==_0x4f2626['length']?_0x4f2626[0x5]:null};}function _0x4ddf86(_0x2c8d3a){for(let _0x3523de=0x0;_0x3523de<_0x5eb7cc['length'];_0x3523de++){if(_0x2c8d3a[_0x3c07('0x83')]&&_0x3c07('0x62')==_0x5eb7cc[_0x3523de][_0x3c07('0x31')])return _0x2c8d3a['isAddSuggestion']=_0x5eb7cc[_0x3523de],void delete _0x2c8d3a[_0x3c07('0x83')];if(!_0x2c8d3a[_0x3c07('0x83')]&&!_0x2c8d3a[_0x3c07('0x10f')]&&_0x3c07('0xb2')==_0x5eb7cc[_0x3523de][_0x3c07('0x31')])return void(_0x2c8d3a[_0x3c07('0x1e')]=_0x5eb7cc[_0x3523de]);}}}['_setDistance'](_0xd4df4e,_0x43733f){let _0x14ad44=0x0,_0x2eec7e=!0x1;const _0x585b34=new Map();for(const _0x324a16 of _0xd4df4e)_0x324a16[_0x43733f]?_0x2eec7e&&(_0x14ad44++,_0x2eec7e=!0x1):(_0x14ad44++,_0x2eec7e=!0x0),_0x585b34[_0x3c07('0xcf')](_0x324a16['id'],_0x14ad44);for(let _0x128a87=0x0;_0x128a87<_0xd4df4e[_0x3c07('0xf1')];_0x128a87++){if('isRemoved'==_0x43733f&&_0xd4df4e[_0x128a87][_0x3c07('0x83')]||_0x3c07('0x83')==_0x43733f&&_0xd4df4e[_0x128a87][_0x3c07('0x10f')])continue;if('text'==_0xd4df4e[_0x128a87][_0x3c07('0x31')]){_0xd4df4e[_0x128a87][_0x3c07('0x53')]=0x0;continue;}const _0x591969=_0x585b34[_0x3c07('0x44')](_0xd4df4e[_0x128a87][_0x3c07('0x1d')]),_0x37046c=_0x585b34[_0x3c07('0x44')](_0xd4df4e[_0x128a87]['id']);_0xd4df4e[_0x128a87]['distance']=_0x591969-_0x37046c;}}[_0x3c07('0x7a')](_0x3aef3d,_0x24ccad,_0x5956e5=!0x1){const _0x259dce=[];let _0x24626e=this[_0x3c07('0x4')][_0x3c07('0x88')](_0x3aef3d),_0x4df05c=this['repository']['getIndex'](_0x24ccad);for(-0x1==_0x4df05c&&(_0x4df05c=this[_0x3c07('0x4')][_0x3c07('0x10c')]['length'],_0x5956e5=!0x1);_0x24626e<_0x4df05c;)_0x259dce[_0x3c07('0xed')](this[_0x3c07('0x4')][_0x3c07('0xd6')](_0x24626e)),_0x24626e++;return _0x5956e5&&_0x259dce[_0x3c07('0xed')](this[_0x3c07('0x4')][_0x3c07('0xd6')](_0x24626e)),_0x259dce;}[_0x3c07('0x89')](_0x30df9,_0x206917,_0x11f733,_0x5c9f06){const _0x385e93=this[_0x3c07('0x5f')][_0x3c07('0xfa')]['schema'];let _0xf03b6=_0x206917;for(;_0x30df9[_0xf03b6]&&_0x30df9[_0xf03b6][_0x3c07('0x83')];)_0xf03b6++;let _0x47043f=_0x5c9f06;for(;_0x11f733[_0x47043f]&&_0x11f733[_0x47043f][_0x3c07('0x10f')];)_0x47043f++;_0x4b4f9b(_0x30df9,_0x206917,_0xf03b6),_0x4b4f9b(_0x11f733,_0x5c9f06,_0x47043f);const _0x4d6f48=_0x11f733[_0x3c07('0x66')](_0x5c9f06,_0x47043f)[_0x3c07('0x92')](_0x30df9[_0x3c07('0x66')](_0x206917,_0xf03b6));return _0x4d6f48[_0x3c07('0x102')]((_0x539bba,_0x2c6b25)=>_0x539bba[_0x3c07('0xab')]!=_0x2c6b25[_0x3c07('0xab')]?_0x539bba[_0x3c07('0xab')]-_0x2c6b25['side']:_0x539bba['level']!=_0x2c6b25['level']?_0x539bba[_0x3c07('0x99')]-_0x2c6b25[_0x3c07('0x99')]:_0x539bba['distance']!=_0x2c6b25[_0x3c07('0x53')]?_0x2c6b25['distance']-_0x539bba[_0x3c07('0x53')]:!!_0x539bba[_0x3c07('0x83')]!=!!_0x2c6b25['isAdded']?-0x1==_0x539bba[_0x3c07('0xab')]||0x0==_0x539bba[_0x3c07('0xab')]?_0x539bba[_0x3c07('0x83')]?-0x1:0x1:_0x539bba[_0x3c07('0x83')]?0x1:-0x1:_0x539bba[_0x3c07('0x38')]-_0x2c6b25[_0x3c07('0x38')]),{'commonTape':_0x4d6f48,'iEnd':_0xf03b6,'jEnd':_0x47043f};function _0x4b4f9b(_0x5cbca6,_0x18d306,_0x491ab4){let _0x73e05f=-0x1,_0x109b09=Number[_0x3c07('0x64')],_0x9dae94=!0x0;for(let _0x160a49=_0x18d306;_0x160a49<_0x491ab4;_0x160a49++)if(_0x385e93[_0x3c07('0x52')](_0x5cbca6[_0x160a49]['item'])||(_0x9dae94=!0x1),_0x5cbca6[_0x160a49]['item'][_0x3c07('0x59')]<_0x18d306&&(_0x73e05f=_0x160a49),_0x5cbca6[_0x160a49][_0x3c07('0xbd')][_0x3c07('0x98')]>=_0x491ab4){_0x109b09=_0x160a49;break;}_0x9dae94&&(_0x73e05f=_0x491ab4-0x1);for(let _0x3a2327=_0x18d306;_0x3a2327<_0x491ab4;_0x3a2327++)_0x5cbca6[_0x3a2327][_0x3c07('0xab')]=_0x3a2327<=_0x73e05f?-0x1:_0x3a2327<_0x109b09?0x0:0x1,_0x5cbca6[_0x3a2327]['index']=_0x3a2327;let _0x3a4051=0x0;for(let _0x5300d6=_0x18d306;_0x5300d6<=_0x73e05f;_0x5300d6++)0x0==_0x5cbca6[_0x5300d6][_0x3c07('0x53')]?_0x5cbca6[_0x5300d6][_0x3c07('0x99')]=_0x3a4051:(_0x3a4051++,_0x5cbca6[_0x5300d6][_0x3c07('0x99')]=_0x3a4051,_0x3a4051++);for(let _0x39f445=_0x18d306;_0x39f445<_0x491ab4;_0x39f445++)0x0==_0x5cbca6[_0x39f445][_0x3c07('0xab')]&&(_0x5cbca6[_0x39f445]['level']=_0x3a4051);_0x3a4051=0x0;for(let _0xe0c746=_0x491ab4-0x1;_0xe0c746>=_0x109b09;_0xe0c746--)0x0==_0x5cbca6[_0xe0c746]['distance']?_0x5cbca6[_0xe0c746]['level']=_0x3a4051:(_0x3a4051--,_0x5cbca6[_0xe0c746][_0x3c07('0x99')]=_0x3a4051,_0x3a4051--);}}[_0x3c07('0xc')](_0x395f47){const _0x1a4960=new Map(),_0xdb6cf4=this[_0x3c07('0x5f')][_0x3c07('0xfa')]['schema'];for(let _0x172598=0x1;_0x172598<_0x395f47[_0x3c07('0xf1')];_0x172598++){let _0x6e9520,_0x15a7ed,_0x229491;const _0x1ea359=_0x395f47[_0x172598],_0x2e8b44=_0x395f47[_0x172598-0x1];if(_0x3c07('0xd')==_0x1ea359[_0x3c07('0x31')])continue;if(_0x1ea359['type']!=_0x2e8b44[_0x3c07('0x31')])continue;if(!_0xdb6cf4[_0x3c07('0xda')](_0x2e8b44[_0x3c07('0xbd')])||_0xdb6cf4[_0x3c07('0x108')](_0x2e8b44['item']))continue;if(!_0xdb6cf4[_0x3c07('0xda')](_0x1ea359[_0x3c07('0xbd')])||_0xdb6cf4['isLimit'](_0x1ea359['item']))continue;if((_0x395f47[_0x172598][_0x3c07('0x83')]||_0x395f47[_0x172598][_0x3c07('0x50')])&&_0x395f47[_0x172598-0x1][_0x3c07('0x10f')])_0x6e9520=_0x395f47[_0x172598],_0x15a7ed=_0x395f47[_0x172598-0x1],_0x229491=_0x172598-0x1;else{if(!_0x395f47[_0x172598][_0x3c07('0x10f')]||!_0x395f47[_0x172598-0x1][_0x3c07('0x83')]&&!_0x395f47[_0x172598-0x1][_0x3c07('0x50')])continue;_0x6e9520=_0x395f47[_0x172598-0x1],_0x15a7ed=_0x395f47[_0x172598],_0x229491=_0x172598;}const _0x1e050c=_0x6e9520[_0x3c07('0x99')]==_0x15a7ed[_0x3c07('0x99')],_0x2da670=Math[_0x3c07('0x96')](_0x6e9520[_0x3c07('0x99')])<Math[_0x3c07('0x96')](_0x15a7ed[_0x3c07('0x99')])&&0x0==_0x15a7ed[_0x3c07('0x53')];(_0x1e050c||_0x2da670)&&(_0x1a4960[_0x3c07('0xcf')](_0x15a7ed['id'],_0x6e9520['id']),_0x395f47[_0x3c07('0xd4')](_0x229491,0x1),_0x172598--,_0x6e9520['isAdded']=!0x1);}for(let _0x37a5d2=0x0;_0x37a5d2<_0x395f47['length'];_0x37a5d2++)_0x1a4960[_0x3c07('0x19')](_0x395f47[_0x37a5d2][_0x3c07('0x1d')])&&(_0x395f47[_0x37a5d2]['pairId']=_0x1a4960[_0x3c07('0x44')](_0x395f47[_0x37a5d2]['pairId']));}[_0x3c07('0x116')](_0x440839){const _0x15b11b=new Set(_0x440839['map'](_0x57ec36=>_0x57ec36['id']));for(let _0x346214=0x0;_0x346214<_0x440839[_0x3c07('0xf1')];_0x346214++)_0x15b11b[_0x3c07('0x19')](_0x440839[_0x346214][_0x3c07('0x1d')])||0x0==_0x440839[_0x346214][_0x3c07('0x53')]||(_0x440839[_0x346214]['isIncorrect']=!0x0);return _0x440839[_0x3c07('0x70')](_0x17a8f7=>!_0x17a8f7[_0x3c07('0xf')]);}[_0x3c07('0x10')](_0x31e09b){const _0x342f8c=new Set();for(let _0x285f23=0x0;_0x285f23<_0x31e09b['length'];_0x285f23++){if(_0x342f8c['has'](_0x31e09b[_0x285f23]['id'])&&_0x31e09b[_0x285f23][_0x3c07('0x10f')]&&(_0x31e09b[_0x285f23][_0x3c07('0xf')]=!0x0),_0x31e09b[_0x285f23]['isIncorrect'])continue;if(0x0==_0x31e09b[_0x285f23][_0x3c07('0x53')])continue;if(_0x3c07('0x101')!=_0x31e09b[_0x285f23][_0x3c07('0x31')])continue;if(null==_0x31e09b[_0x285f23][_0x3c07('0x1d')])continue;let _0x15745b=_0x285f23+0x1,_0x3936a4=0x0;for(;_0x31e09b[_0x15745b]['id']!=_0x31e09b[_0x285f23][_0x3c07('0x1d')];)_0x3c07('0x101')==_0x31e09b[_0x15745b]['type']?_0x3936a4++:_0x3c07('0x3f')==_0x31e09b[_0x15745b][_0x3c07('0x31')]&&_0x3936a4--,_0x15745b++;if(0x0!=_0x3936a4){if(_0x31e09b[_0x285f23]['isRemoved'])_0x31e09b[_0x285f23][_0x3c07('0xf')]=!0x0;else for(;_0x15745b!=_0x285f23;)_0x31e09b[_0x15745b]['isRemoved']&&0x0!=_0x31e09b[_0x15745b][_0x3c07('0x53')]&&(_0x31e09b[_0x15745b][_0x3c07('0xf')]=!0x0,_0x342f8c[_0x3c07('0xee')](_0x31e09b[_0x15745b][_0x3c07('0x1d')])),_0x15745b--;}}return _0x31e09b[_0x3c07('0x70')](_0x14ce50=>!_0x14ce50[_0x3c07('0xf')]);}[_0x3c07('0xad')](_0xddc030){const _0x324f7f=this[_0x3c07('0x5f')]['model'][_0x3c07('0x63')];for(let _0x1c3af1=0x0;_0x1c3af1<_0xddc030[_0x3c07('0xf1')];_0x1c3af1++){if(!(_0xddc030[_0x1c3af1][_0x3c07('0x83')]||_0xddc030[_0x1c3af1][_0x3c07('0x50')]||_0xddc030[_0x1c3af1][_0x3c07('0x10f')]||_0xddc030[_0x1c3af1][_0x3c07('0x1e')]))continue;if(0x0==_0xddc030[_0x1c3af1][_0x3c07('0x53')])continue;const _0x5d6ff7=_0xddc030[_0x1c3af1][_0x3c07('0xbd')];_0x324f7f[_0x3c07('0xda')](_0x5d6ff7)||_0x324f7f['isLimit'](_0x5d6ff7)||(_0xddc030[_0x1c3af1][_0x3c07('0x83')]&&delete _0xddc030[_0x1c3af1][_0x3c07('0x83')],_0xddc030[_0x1c3af1][_0x3c07('0x50')]&&delete _0xddc030[_0x1c3af1][_0x3c07('0x50')],_0xddc030[_0x1c3af1][_0x3c07('0x1e')]&&delete _0xddc030[_0x1c3af1][_0x3c07('0x1e')],_0xddc030[_0x1c3af1][_0x3c07('0x10f')]&&(_0xddc030[_0x1c3af1]['isIncorrect']=!0x0));}return _0xddc030[_0x3c07('0x70')](_0x20d4bb=>!_0x20d4bb['isIncorrect']);}['_makeModelFromTape'](_0x456983,_0x2afeb1,_0xbbf6b7){const _0x4f0932=new _0x188d52(),_0x55100c=[],_0x4d1720=new Map(),_0x39d797=this[_0x3c07('0x5f')][_0x3c07('0xfa')],_0x3ddfe9=_0x39d797[_0x3c07('0x63')],_0x1fc3ac=[_0x4f0932],_0x15435b={},_0x3fdde8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4156e9=null;const _0x1abb36=[0x0];for(let _0x574bd6=0x0;_0x574bd6<_0x456983[_0x3c07('0xf1')];_0x574bd6++){let _0x20dc82,_0x424444;if(_0x3c07('0x101')===_0x456983[_0x574bd6]['type']){_0x20dc82=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36);const _0x39b962=new _0x2b2bbc(_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0x5e')],_0x456983[_0x574bd6][_0x3c07('0xbd')]['getAttributes']());_0x1fc3ac[0x0][_0x3c07('0xa1')](_0x39b962),_0x1abb36[_0x3c07('0xed')](0x0),_0x1fc3ac['unshift'](_0x39b962),_0x424444=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x4156e9=null;}else{if(_0x3c07('0x3f')===_0x456983[_0x574bd6][_0x3c07('0x31')])_0x1fc3ac[_0x3c07('0xc4')](),_0x20dc82=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x1abb36[_0x3c07('0xa6')](),_0x1abb36[_0x1abb36[_0x3c07('0xf1')]-0x1]++,_0x424444=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x4156e9=null;else{if(_0x20dc82=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x4156e9&&_0x2cc966(_0x4156e9,_0x456983[_0x574bd6][_0x3c07('0xbd')]))_0x4156e9[_0x3c07('0x37')]+=_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0xf4')];else{const _0x48fae2=new _0x538d83(_0x456983[_0x574bd6][_0x3c07('0xbd')]['data'],_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0x86')]());_0x1fc3ac[0x0]['_appendChild'](_0x48fae2),_0x4156e9=_0x48fae2;}_0x1abb36[_0x1abb36[_0x3c07('0xf1')]-0x1]+=_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0x78')],_0x424444=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36);}}for(const _0x2743d3 of _0x456983[_0x574bd6][_0x3c07('0x93')])_0x4d1720['set'](_0x2743d3,{'start':_0x20dc82,'end':null});_0x5071d1(_0x3c07('0x1e'),_0x574bd6,_0x20dc82,_0x424444),_0x5071d1(_0x3c07('0x50'),_0x574bd6,_0x20dc82,_0x424444),_0x5071d1(_0x3c07('0x10f'),_0x574bd6,_0x20dc82,_0x424444),_0x5071d1('isAdded',_0x574bd6,_0x20dc82,_0x424444);for(const _0x1999b5 of _0x456983[_0x574bd6]['markersEnd']){_0x4d1720[_0x3c07('0x44')](_0x1999b5)[_0x3c07('0x7c')]=_0x424444;}}for(const [_0xa931c2,_0x17c883]of _0x4d1720){const _0x5569f3=this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0xdf')](_0x17c883[_0x3c07('0xb6')],_0x17c883['end']);_0x4f0932['markers']['set'](_0xa931c2,_0x5569f3);}return _0x55100c['sort']((_0x30caf8,_0x1c086f)=>{const _0x3703ae=_0x4f0932[_0x3c07('0xcc')][_0x3c07('0x44')]('revision:'+_0x30caf8['id']),_0x11d7b0=_0x4f0932[_0x3c07('0xcc')][_0x3c07('0x44')](_0x3c07('0x79')+_0x1c086f['id']);return _0x3703ae[_0x3c07('0xb6')][_0x3c07('0xac')](_0x11d7b0[_0x3c07('0xb6')])?-0x1:_0x3703ae[_0x3c07('0xb6')][_0x3c07('0x8e')](_0x11d7b0[_0x3c07('0xb6')])?0x1:_0x3703ae['end']['isBefore'](_0x11d7b0[_0x3c07('0x7c')])?-0x1:_0x3703ae[_0x3c07('0x7c')][_0x3c07('0x8e')](_0x11d7b0[_0x3c07('0x7c')])?0x1:_0x3c07('0xee')===_0x30caf8['type']?-0x1:0x1;}),{'root':_0x4f0932,'changes':_0x55100c};function _0x5071d1(_0x35da47,_0x525250,_0x118466,_0x1826d6){const _0x50de02=!!_0x456983[_0x525250][_0x35da47],_0x3561ea=_0x50de02?_0x456983[_0x525250][_0x35da47][_0x3c07('0xe5')]:null,_0x945965=_0x525250===_0x456983[_0x3c07('0xf1')]-0x1,_0x39f334=_0x3fdde8[_0x35da47][0x0],_0x38cc42=_0x3ddfe9['isObject'](_0x456983[_0x525250]['item']);!_0x15435b[_0x35da47]&&_0x50de02?_0x15435b[_0x35da47]={'start':_0x118466,'tapeItem':_0x456983[_0x525250],'userId':_0x3561ea,'type':_0x35da47}:_0x15435b[_0x35da47]&&!_0x50de02?(_0x15435b[_0x35da47][_0x3c07('0x7c')]=_0x118466,_0x46eeb9(_0x15435b[_0x35da47]),_0x15435b[_0x35da47]=null):_0x15435b[_0x35da47]&&_0x50de02&&_0x15435b[_0x35da47]['userId']!==_0x3561ea&&(_0x15435b[_0x35da47][_0x3c07('0x7c')]=_0x118466,_0x39f334&&_0x39f334['userId']===_0x15435b[_0x35da47]['userId']||_0x46eeb9(_0x15435b[_0x35da47]),_0x15435b[_0x35da47]={'start':_0x118466,'tapeItem':_0x456983[_0x525250],'userId':_0x3561ea,'type':_0x35da47}),_0x15435b[_0x35da47]&&_0x38cc42&&('elementStart'!==_0x456983[_0x525250][_0x3c07('0x31')]||_0x39f334&&_0x39f334[_0x3c07('0xe5')]===_0x3561ea||_0x3fdde8[_0x35da47][_0x3c07('0xa3')]({'userId':_0x3561ea,'object':_0x456983[_0x525250][_0x3c07('0xbd')],'change':_0x15435b[_0x35da47]}),_0x3c07('0x3f')===_0x456983[_0x525250][_0x3c07('0x31')]&&_0x39f334&&_0x39f334[_0x3c07('0xf8')]===_0x456983[_0x525250][_0x3c07('0xbd')]&&(_0x3fdde8[_0x35da47][_0x3c07('0xc4')](),_0x15435b[_0x35da47]=_0x39f334[_0x3c07('0x11b')])),_0x15435b[_0x35da47]&&_0x945965&&(_0x15435b[_0x35da47][_0x3c07('0x7c')]=_0x1826d6,_0x46eeb9(_0x15435b[_0x35da47]),_0x15435b[_0x35da47]=null);}function _0x46eeb9({start:_0x5f547e,end:_0x5883ab,tapeItem:_0x44b372,userId:_0x426b9d,type:_0x4f9a30}){const _0x483ec3=_0x44b372['item'],_0x2a3f22=_0x39d797[_0x3c07('0x63')][_0x3c07('0xda')](_0x483ec3)&&!_0x39d797['schema']['isLimit'](_0x483ec3),_0x3067fe=_0x5f547e[_0x3c07('0x2c')]==_0x5883ab[_0x3c07('0x9e')]&&_0x5883ab[_0x3c07('0xbf')];if(_0x2a3f22&&_0x3067fe)return;const _0x59f00b=_0x39d797[_0x3c07('0xdf')](_0x5f547e,_0x5883ab),_0x413954=_0x2afeb1[_0x3c07('0x44')](_0x426b9d),_0x2225e4=new _0x4420af({'author':_0x413954,'type':_0x3c07('0x83')==_0x4f9a30||_0x3c07('0x50')==_0x4f9a30?_0x3c07('0xee'):_0x3c07('0x106'),'data':{'isSuggestion':'isAddSuggestion'==_0x4f9a30||'isRemoveSuggestion'==_0x4f9a30},'createdAt':new Date(),'rootName':_0xbbf6b7});_0x55100c[_0x3c07('0xed')](_0x2225e4),_0x4f0932[_0x3c07('0xcc')][_0x3c07('0xcf')](_0x3c07('0x79')+_0x2225e4['id'],_0x59f00b);}function _0x2cc966(_0x33eb4b,_0x514992){const _0xc1a85d=_0x33eb4b['getAttributes'](),_0x16a393=_0x514992[_0x3c07('0x86')]();for(const _0x2e208c of _0xc1a85d){if(_0x2e208c[0x1]!==_0x514992[_0x3c07('0x1')](_0x2e208c[0x0]))return!0x1;_0x16a393['next']();}return _0x16a393[_0x3c07('0x65')]()[_0x3c07('0x2e')];}}[_0x3c07('0x2d')](){this['editor'][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xc7'))[_0x3c07('0x8a')]({'view':_0x3c07('0x48')}),this[_0x3c07('0x5f')]['conversion'][_0x3c07('0xeb')]('editingDowncast')[_0x3c07('0x69')]({'model':_0x3c07('0x48'),'view':_0x150165=>{const _0x5c4bd2=_0x150165[_0x3c07('0x25')]['split'](':')[0x1],_0x3d12b7=this['_getChangeFromId'](_0x5c4bd2);if(!_0x3d12b7)return null;const _0x274034=_0x3c07('0xee')==_0x3d12b7[_0x3c07('0x31')]?_0x3c07('0x62'):_0x3c07('0xb2'),_0x4353be=['ck-suggestion-marker','ck-suggestion-marker-'+_0x274034];return _0x3d12b7[_0x3c07('0xf4')]['isSuggestion']&&_0x4353be['push'](_0x3c07('0x5')+_0x274034+'-new'),this[_0x3c07('0xcd')]==_0x3d12b7&&_0x4353be[_0x3c07('0xed')]('ck-suggestion-marker--active'),{'classes':_0x4353be,'attributes':{'data-change-id':_0x5c4bd2}};}}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xc7'))[_0x3c07('0xee')](_0x472f55=>{_0x472f55['on']('element:pre',(_0x1f6478,_0x50c888,_0x57cb60)=>{const _0x4abb9b=_0x50c888[_0x3c07('0x9a')]['getChild'](0x0);if(!_0x4abb9b||!_0x4abb9b['is'](_0x3c07('0x105'),'code'))return;if(!_0x57cb60[_0x3c07('0x7e')][_0x3c07('0x41')](_0x4abb9b,{'attributes':[_0x3c07('0xb9'),'vid_end']}))return;const _0x4d493f=_0x50c888[_0x3c07('0x14')][_0x3c07('0xb6')][_0x3c07('0x2c')];_0x57cb60[_0x3c07('0x20')][_0x3c07('0x3b')](_0x3c07('0xb9'),_0x4abb9b[_0x3c07('0x1')](_0x3c07('0xb9')),_0x4d493f),_0x57cb60['writer'][_0x3c07('0x3b')](_0x3c07('0x0'),_0x4abb9b[_0x3c07('0x1')]('vid_end'),_0x4d493f);},{'priority':'low'});}),this[_0x3c07('0x5f')]['conversion']['for'](_0x3c07('0xc7'))[_0x3c07('0xee')](_0x5d5ac6=>{_0x5d5ac6['on'](_0x3c07('0x105'),(_0x7ddf81,_0x2bfd2c,_0x179be0)=>{if(!_0x179be0[_0x3c07('0x7e')]['consume'](_0x2bfd2c[_0x3c07('0x9a')],{'attributes':[_0x3c07('0xb9'),_0x3c07('0x0')]}))return;if(_0x2bfd2c['modelRange'][_0x3c07('0x36')])return;const _0x38bfc5=_0x2bfd2c[_0x3c07('0x14')][_0x3c07('0xb6')]['nodeAfter'];_0x38bfc5[_0x3c07('0x5b')](_0x3c07('0xb9'))||_0x38bfc5['hasAttribute'](_0x3c07('0xba'))||(_0x179be0['writer']['setAttribute'](_0x3c07('0xb9'),_0x2bfd2c[_0x3c07('0x9a')][_0x3c07('0x1')](_0x3c07('0xb9')),_0x38bfc5),_0x179be0[_0x3c07('0x20')][_0x3c07('0x3b')](_0x3c07('0x0'),_0x2bfd2c[_0x3c07('0x9a')]['getAttribute'](_0x3c07('0x0')),_0x38bfc5));},{'priority':_0x3c07('0x61')});}),this['editor'][_0x3c07('0x11e')]['for'](_0x3c07('0xc7'))[_0x3c07('0x9c')]({'view':{'name':_0x3c07('0x90'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x54d0f3=>_0x54d0f3[_0x3c07('0x1')]('vid')}}),this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x63')]['on']('checkAttribute',(_0x45fa87,[,_0x180fff])=>{[_0x3c07('0xb9'),_0x3c07('0x0'),_0x3c07('0xba')][_0x3c07('0xfe')](_0x180fff)&&(_0x45fa87[_0x3c07('0xe7')]=!0x0,_0x45fa87[_0x3c07('0x74')]());},{'priority':_0x3c07('0x12')}),this[_0x3c07('0x5f')][_0x3c07('0x11e')]['for'](_0x3c07('0x8'))['add'](_0xf4408c=>{_0xf4408c['on'](_0x3c07('0x11a'),(_0x596c17,_0x444136,_0x13182a)=>{if('\x20'!=_0x444136[_0x3c07('0xbd')]['data']||_0x444136[_0x3c07('0xbd')]['parent'][_0x3c07('0x58')]>0x1)return;if(!_0x13182a[_0x3c07('0x7e')][_0x3c07('0x41')](_0x444136[_0x3c07('0xbd')],_0x596c17[_0x3c07('0x5e')]))return;const _0x4f522d=_0x13182a[_0x3c07('0x20')],_0x73be23=_0x13182a[_0x3c07('0xd3')]['toViewRange'](_0x444136['range']);_0x4f522d[_0x3c07('0x27')](_0x73be23,_0x4f522d[_0x3c07('0x4a')](_0x3c07('0x90')));});}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')]('dataDowncast')[_0x3c07('0x4e')]({'model':_0x3c07('0x48')}),this['editor']['editing'][_0x3c07('0x80')]['on'](_0x3c07('0x40'),function(_0x4f4601){const _0x36c94f=_0x4f4601['plugins']['get']('RevisionViewer');return(_0xda87df,_0x437529,_0x44ccfc)=>{const _0x2ab1c1=_0x437529[_0x3c07('0x25')]['split'](':')[0x1],_0x4c7d71=_0x36c94f[_0x3c07('0xe4')](_0x2ab1c1);if(!_0x4c7d71)return null;const _0x45dec2=_0x3c07('0xee')==_0x4c7d71[_0x3c07('0x31')]?'split':_0x3c07('0x42');if(!_0x44ccfc['consumable'][_0x3c07('0x22')](_0x437529[_0x3c07('0x100')],_0xda87df[_0x3c07('0x5e')]))return;const _0x5d118c=_0x437529[_0x3c07('0x100')]['getWalker'](),_0x38b82f=_0x437529[_0x3c07('0x100')][_0x3c07('0xb6')],_0x4d583f=_0x4f4601[_0x3c07('0xfa')][_0x3c07('0x63')];let _0x284c69=null,_0x151126=null,_0x1a3a20=!0x1,_0x59b6d0=!0x1;for(const _0x4787fb of _0x5d118c){const _0x4721a0=_0x4787fb[_0x3c07('0xbd')];_0x1a3a20=_0x1a3a20||_0x4d583f['isContent'](_0x4721a0);const _0x28c452=_0x44ccfc[_0x3c07('0xd3')]['toViewElement'](_0x4721a0);if(_0x28c452&&_0x28c452[_0x3c07('0x6d')](_0x3c07('0xc1')))return;_0x3c07('0x3f')==_0x4787fb['type']&&(_0x4d583f[_0x3c07('0xda')](_0x4721a0)&&!_0x4d583f[_0x3c07('0x108')](_0x4721a0)&&(_0x4721a0[_0x3c07('0x82')]||_0x38b82f[_0x3c07('0xde')]?_0x284c69&&_0x284c69[_0x3c07('0x9e')]==_0x4721a0||(_0x284c69=_0x4721a0,_0x67f628(_0x4787fb['previousPosition']),_0x59b6d0=!0x0):_0x151126=_0x151126||_0x4787fb[_0x3c07('0x11d')]));}function _0x67f628(_0x4695f0){const _0xb99521=_0x44ccfc[_0x3c07('0x20')]['createUIElement'](_0x3c07('0x90'),{'class':_0x3c07('0x5')+_0x45dec2}),_0x52d80e=_0x44ccfc['mapper']['toViewPosition'](_0x4695f0);_0x4c7d71[_0x3c07('0xf4')][_0x3c07('0x7b')]&&_0x44ccfc['writer'][_0x3c07('0x49')](_0x3c07('0x5')+_0x45dec2+_0x3c07('0x104'),_0xb99521),_0x36c94f[_0x3c07('0xcd')]==_0x4c7d71&&_0x44ccfc[_0x3c07('0x20')][_0x3c07('0x49')](_0x3c07('0xb0'),_0xb99521),_0x44ccfc[_0x3c07('0x20')]['insert'](_0x52d80e,_0xb99521),_0x44ccfc['mapper'][_0x3c07('0x13')](_0xb99521,_0x437529[_0x3c07('0x25')]);}_0x1a3a20||_0x59b6d0||!_0x151126||_0x67f628(_0x151126);};}(this[_0x3c07('0x5f')]),{'priority':'high'}),this[_0x3c07('0x5f')][_0x3c07('0x113')]['downcastDispatcher']['on'](_0x3c07('0x15'),(_0x1b86f1,_0x1c7ec7,_0x32c083)=>{const _0x3be390=_0x32c083['mapper'][_0x3c07('0x6c')](_0x1c7ec7[_0x3c07('0x25')]);if(_0x3be390)for(const _0x280eaf of _0x3be390)(_0x280eaf[_0x3c07('0x56')]('ck-suggestion-marker-split')||_0x280eaf[_0x3c07('0x56')](_0x3c07('0x7')))&&(_0x32c083['mapper'][_0x3c07('0x43')](_0x280eaf,_0x1c7ec7[_0x3c07('0x25')]),_0x32c083[_0x3c07('0x20')][_0x3c07('0x106')](_0x280eaf));},{'priority':_0x3c07('0x6')}),this[_0x3c07('0x5f')][_0x3c07('0x113')][_0x3c07('0x80')]['on'](_0x3c07('0x40'),(_0x514229,_0x884a92,_0xd0252)=>{const _0x577d4a=_0x884a92[_0x3c07('0x25')][_0x3c07('0x57')](':')[0x1],_0x4d384d=this['_getChangeFromId'](_0x577d4a);if(!_0x4d384d)return null;const _0x2ff7b0=_0x3c07('0xee')==_0x4d384d[_0x3c07('0x31')]?_0x3c07('0x57'):_0x3c07('0x42');if(_0xd0252['consumable'][_0x3c07('0x22')](_0x884a92[_0x3c07('0x100')],_0x514229['name']))for(const _0x4ff040 of _0x884a92[_0x3c07('0x100')][_0x3c07('0x3a')]()){if(!_0x4ff040['is']('element',_0x3c07('0xbc')))continue;const _0x2ee523=_0xd0252[_0x3c07('0x20')][_0x3c07('0x4c')](_0x3c07('0x90'),{'class':_0x3c07('0x5')+_0x2ff7b0}),_0x4195a4=_0xd0252[_0x3c07('0xd3')][_0x3c07('0xf2')](this[_0x3c07('0x5f')][_0x3c07('0xfa')]['createPositionBefore'](_0x4ff040));_0x4d384d[_0x3c07('0xf4')][_0x3c07('0x7b')]&&_0xd0252['writer'][_0x3c07('0x49')](_0x3c07('0x5')+_0x2ff7b0+'-new',_0x2ee523),this[_0x3c07('0xcd')]==_0x4d384d&&_0xd0252[_0x3c07('0x20')][_0x3c07('0x49')]('ck-suggestion-marker--active',_0x2ee523),_0xd0252[_0x3c07('0x20')]['insert'](_0x4195a4,_0x2ee523),_0xd0252[_0x3c07('0xd3')][_0x3c07('0x13')](_0x2ee523,_0x884a92[_0x3c07('0x25')]);}},{'priority':_0x3c07('0x6')}),this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['on'](_0x3c07('0x11b'),()=>{this[_0x3c07('0x5f')]['editing'][_0x3c07('0xa')][_0x3c07('0x11b')](_0x5b2fcc=>{for(const _0x25e055 of this[_0x3c07('0x5f')][_0x3c07('0xfa')]['document'][_0x3c07('0xae')]()){const _0xca35f3=this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['getRoot'](_0x25e055),_0xe532fa=this[_0x3c07('0x5f')]['editing'][_0x3c07('0xa')][_0x3c07('0x10e')][_0x3c07('0xb4')](_0x25e055);if(_0xe532fa){const _0x4a1bac=_0xca35f3[_0x3c07('0x1')]('revisionHistoryAttachChange');if(_0x5b2fcc[_0x3c07('0x6f')](_0x3c07('0xb7'),_0xe532fa),_0x5b2fcc['removeClass'](_0x3c07('0xd0'),_0xe532fa),_0x5b2fcc[_0x3c07('0x2')](_0x3c07('0xe1'),_0xe532fa),_0x5b2fcc[_0x3c07('0x2')](_0x3c07('0x23'),_0xe532fa),_0x4a1bac){const _0x4dbe8b=this[_0x3c07('0xe4')](_0x4a1bac);if(!_0x4dbe8b)return null;_0x5b2fcc[_0x3c07('0x3b')](_0x3c07('0xb7'),_0x4a1bac,_0xe532fa),_0x5b2fcc[_0x3c07('0x49')]('ck-revision-history-root-'+_0x4dbe8b['type'],_0xe532fa),this[_0x3c07('0xcd')]==_0x4dbe8b&&_0x5b2fcc['addClass'](_0x3c07('0x23'),_0xe532fa);}}}});}),this[_0x3c07('0x5f')]['conversion'][_0x3c07('0xeb')]('upcast')[_0x3c07('0x8a')]({'view':_0x3c07('0x6b'),'model':_0xfe30f3=>'revision-comment:'+_0xfe30f3,'converterPriority':_0x3c07('0x12')}),this['editor'][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xc7'))['dataToMarker']({'view':_0x3c07('0x28'),'model':_0x64919c=>_0x3c07('0x119')+_0x64919c,'converterPriority':_0x3c07('0x12')}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0x8'))['markerToData']({'model':_0x3c07('0x6e'),'view':_0x3a7dad=>({'name':_0x3c07('0xdd')+_0x3a7dad,'group':_0x3c07('0x6e')}),'converterPriority':_0x3c07('0x12')}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xb1'))[_0x3c07('0x69')]({'model':'revision-suggestion','view':_0x35427f=>{const _0x1490bc=_0x35427f[_0x3c07('0x25')][_0x3c07('0x57')](':')[0x1];return _0x3c07('0x62')!=_0x1490bc&&_0x3c07('0xb2')!=_0x1490bc?null:{'classes':['ck-suggestion-preview-marker',_0x3c07('0xcb')+_0x1490bc]};}}),this['editor'][_0x3c07('0x113')][_0x3c07('0x80')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x3c07('0x5f')],_0x3c07('0x42')),{'priority':_0x3c07('0x6')}),this[_0x3c07('0x5f')]['editing'][_0x3c07('0x80')]['on'](_0x3c07('0x6a'),et(this[_0x3c07('0x5f')],'split'),{'priority':'high'}),this['editor']['editing'][_0x3c07('0x80')]['on'](_0x3c07('0x10d'),(_0x1375b9,_0x29399a,_0x413baf)=>{const _0x5ea349=_0x413baf[_0x3c07('0xd3')]['markerNameToElements'](_0x29399a['markerName']);if(_0x5ea349)for(const _0x8eb99d of _0x5ea349)_0x8eb99d['is']('uiElement')&&(_0x413baf['mapper'][_0x3c07('0x43')](_0x8eb99d,_0x29399a['markerName']),_0x413baf[_0x3c07('0x20')][_0x3c07('0x106')](_0x8eb99d));},{'priority':_0x3c07('0x6')});}[_0x3c07('0xe4')](_0x6c1687){return this[_0x3c07('0x9f')][_0x3c07('0x44')](_0x6c1687);}[_0x3c07('0x67')](_0x14ef42){return this[_0x3c07('0x91')]&&this[_0x3c07('0x91')]['destroy'](),this['_changeView']=new _0x579397(this[_0x3c07('0x5f')][_0x3c07('0x1b')],_0x14ef42),this['_changeView'];}['_initInteractions'](){this['editor'][_0x3c07('0xfa')][_0x3c07('0x10e')][_0x3c07('0xf6')][_0x3c07('0xe0')](_0x3c07('0x48')),this['on'](_0x3c07('0xf0'),(_0x21f91b,_0x4e3a6d,_0x12f0c3,_0x3f83d2)=>{_0x3f83d2&&this['_balloon']['remove'](_0x3f83d2),_0x12f0c3&&(this['_balloon']['add']({'view':_0x12f0c3,'stackId':_0x3c07('0x55'),'position':{'target':()=>{const _0x53ee16=this[_0x3c07('0x5f')][_0x3c07('0x113')],_0xc20699=this['_getChangeFromId'](_0x12f0c3[_0x3c07('0x85')]);let _0xc153b7;if(_0xc20699[_0x3c07('0xf4')][_0x3c07('0x8b')]){const _0x59d2bd=_0x53ee16[_0x3c07('0xa')][_0x3c07('0x2f')](_0xc20699[_0x3c07('0x115')]);_0xc153b7=Array[_0x3c07('0xd1')](_0x59d2bd[_0x3c07('0xd9')]());}else{const _0x91b44=this[_0x3c07('0x5f')]['model'][_0x3c07('0xcc')][_0x3c07('0x44')](_0x3c07('0x79')+_0x12f0c3['changeId']);_0xc153b7=Array[_0x3c07('0xd1')](_0x53ee16[_0x3c07('0xd3')][_0x3c07('0x6c')](_0x91b44[_0x3c07('0x5e')]))[_0x3c07('0x81')](_0xd25bf8=>_0x53ee16['view']['domConverter'][_0x3c07('0xfd')](_0xd25bf8))[_0x3c07('0x81')](_0x23a59d=>Array[_0x3c07('0xd1')](_0x23a59d[_0x3c07('0xd9')]()))[_0x3c07('0xc9')]();}if(!this['_activeViewTarget'])return _0xc153b7[0x0];return _0xc153b7[_0x3c07('0xd5')](_0x35c7dc=>_0x35c7dc['top']-0x3<=this[_0x3c07('0x1c')]['y']&&_0x35c7dc[_0x3c07('0xa8')]+0x3>=this['_activeViewTarget']['y']&&_0x35c7dc[_0x3c07('0xbe')]-0x3<=this[_0x3c07('0x1c')]['x']&&_0x35c7dc['right']+0x3>=this['_activeViewTarget']['x'])||_0xc153b7[0x0];}}}),this[_0x3c07('0x32')][_0x3c07('0xfc')](_0x3c07('0x55')));}),this['on'](_0x3c07('0xa5'),(_0x46ae1a,_0x4cfbc2,_0x125e08,_0x339cf4)=>{this[_0x3c07('0xe8')]=_0x125e08?this['_getViewForChange'](_0x125e08):null,this[_0x3c07('0x5f')]['model'][_0x3c07('0x11b')](()=>{const _0x2f9437=this[_0x3c07('0x5f')][_0x3c07('0x113')];_0x339cf4&&(_0x339cf4['data']['isOnRoot']?_0x2f9437[_0x3c07('0xa')][_0x3c07('0x11b')](_0x1f1f12=>{_0x1f1f12['removeClass'](_0x3c07('0x23'),_0x2f9437[_0x3c07('0xa')]['document'][_0x3c07('0xb4')](_0x339cf4[_0x3c07('0x115')]));}):_0x2f9437[_0x3c07('0x26')](_0x3c07('0x79')+_0x339cf4['id'])),_0x125e08&&(_0x125e08[_0x3c07('0xf4')][_0x3c07('0x8b')]?_0x2f9437[_0x3c07('0xa')][_0x3c07('0x11b')](_0x33a7bc=>{_0x33a7bc[_0x3c07('0x49')](_0x3c07('0x23'),_0x2f9437[_0x3c07('0xa')][_0x3c07('0x10e')][_0x3c07('0xb4')](_0x125e08[_0x3c07('0x115')]));}):_0x2f9437[_0x3c07('0x26')](_0x3c07('0x79')+_0x125e08['id']));});}),this[_0x3c07('0xdb')](this[_0x3c07('0x5f')][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],'mouseover',(_0x566ab1,_0x3c7529)=>{if(this[_0x3c07('0xcd')])return;const _0x35507b=this['_findChangeIdFromDomTarget'](_0x3c7529['target']),_0x1eafcc=this['_changeIdToChange']['get'](_0x35507b);_0x1eafcc?(this[_0x3c07('0x1c')]={'x':_0x3c7529[_0x3c07('0xce')]['x'],'y':_0x3c7529[_0x3c07('0xce')]['y']},this[_0x3c07('0xe8')]=this[_0x3c07('0x67')](_0x1eafcc)):(this[_0x3c07('0x1c')]=null,this[_0x3c07('0xe8')]=null);}),this['listenTo'](this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],_0x3c07('0x4b'),(_0xf001f1,_0x22917a)=>{const _0x142631=this['_findChangeIdFromDomTarget'](_0x22917a[_0x3c07('0x24')]),_0x1f21e7=this[_0x3c07('0x9f')][_0x3c07('0x44')](_0x142631);_0x1f21e7?(this['_activeViewTarget']={'x':_0x22917a[_0x3c07('0xce')]['x'],'y':_0x22917a[_0x3c07('0xce')]['y']},_0x1f21e7===this[_0x3c07('0xcd')]?this[_0x3c07('0x32')][_0x3c07('0xe2')]():this[_0x3c07('0xcd')]=_0x1f21e7):(this[_0x3c07('0x1c')]=null,this['activeChange']=null);});}[_0x3c07('0x7d')](_0x425b85){do{const _0x4ff2da=_0x425b85[_0x3c07('0x1')](_0x3c07('0xb7'));if(_0x4ff2da)return _0x4ff2da;_0x425b85=_0x425b85['parent'];}while(_0x425b85);return null;}['_cleanMarkers'](){this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x11b')](_0x3dd6ed=>{for(const _0x34f9d9 of this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0xcc')])_0x3dd6ed[_0x3c07('0x5c')](_0x34f9d9);});}}function et(_0x3192ab,_0x57ef40){return(_0x5cb173,_0x373b33,_0x3aad7c)=>{if(!_0x3aad7c['consumable']['test'](_0x373b33[_0x3c07('0x100')],_0x5cb173[_0x3c07('0x5e')]))return;const _0x5c194b=_0x373b33[_0x3c07('0x100')][_0x3c07('0xec')](),_0x52dd24=_0x373b33[_0x3c07('0x100')][_0x3c07('0xb6')],_0xc7e930=_0x3192ab[_0x3c07('0xfa')][_0x3c07('0x63')];let _0x16b396=null,_0x214dbd=null,_0x7416f1=!0x1,_0x36aff9=!0x1;for(const _0x59a532 of _0x5c194b){const _0x17f67d=_0x59a532[_0x3c07('0xbd')];_0x7416f1=_0x7416f1||_0xc7e930[_0x3c07('0xf9')](_0x17f67d);const _0x2fb442=_0x3aad7c[_0x3c07('0xd3')][_0x3c07('0xd7')](_0x17f67d);if(_0x2fb442&&_0x2fb442[_0x3c07('0x6d')](_0x3c07('0xc1')))return;_0x3c07('0x3f')==_0x59a532['type']&&(_0xc7e930[_0x3c07('0xda')](_0x17f67d)&&!_0xc7e930[_0x3c07('0x108')](_0x17f67d)&&(_0x17f67d[_0x3c07('0x82')]||_0x52dd24[_0x3c07('0xde')]?_0x16b396&&_0x16b396['parent']==_0x17f67d||(_0x16b396=_0x17f67d,_0x181856(_0x59a532['previousPosition']),_0x36aff9=!0x0):_0x214dbd=_0x214dbd||_0x59a532['previousPosition']));}function _0x181856(_0x37ee6d){const _0x5c613e=_0x3aad7c[_0x3c07('0xd3')][_0x3c07('0xf2')](_0x37ee6d),_0x29c86e=_0x3aad7c[_0x3c07('0x20')][_0x3c07('0x4c')](_0x3c07('0x90'),{'class':'ck-suggestion-preview-marker-'+_0x57ef40});_0x3aad7c[_0x3c07('0x20')][_0x3c07('0x60')](_0x5c613e,_0x29c86e),_0x3aad7c[_0x3c07('0xd3')][_0x3c07('0x13')](_0x29c86e,_0x373b33['markerName']);}_0x7416f1||_0x36aff9||!_0x214dbd||_0x181856(_0x214dbd);};}export class RestoreRevisionCommand extends _0x14fe97{constructor(_0xcebc49){super(_0xcebc49);const _0x1ce8dc=_0xcebc49[_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xa0')]=!0x1,this[_0x3c07('0xdb')](_0x1ce8dc,'change:isReady',()=>this[_0x3c07('0xe6')]()),this[_0x3c07('0xdb')](_0x1ce8dc,_0x3c07('0xc6'),()=>this[_0x3c07('0xe6')]());}[_0x3c07('0x3')](){const _0x545486=this['editor'],_0x22f3b4=_0x545486[_0x3c07('0x118')][_0x3c07('0x44')](d),_0x324378=_0x22f3b4[_0x3c07('0x117')]?_0x22f3b4[_0x3c07('0xa4')][_0x3c07('0x3c')]:null;_0x545486['config']['get']('revisionHistory')[_0x3c07('0x21')](_0x324378);}[_0x3c07('0xe6')](){const {isReady:_0x42f844,isEnabled:_0x22ec23}=this[_0x3c07('0x5f')][_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xe3')]=_0x42f844&&_0x22ec23;}}export class ShowChangeCommand extends _0x14fe97{constructor(_0x5dd157,{direction:_0x2c9832}){super(_0x5dd157);const _0x4a7e95=_0x5dd157[_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xa0')]=!0x1,this[_0x3c07('0xc3')]=_0x3c07('0x84')===_0x2c9832?0x1:-0x1,this['listenTo'](_0x4a7e95,'change:isReady',()=>this[_0x3c07('0xe6')]()),this['listenTo'](_0x4a7e95,_0x3c07('0xc6'),()=>this[_0x3c07('0xe6')]()),this[_0x3c07('0xdb')](_0x4a7e95,_0x3c07('0xa5'),()=>this[_0x3c07('0xe6')]());}[_0x3c07('0x3')](){const _0x27e4ff=this[_0x3c07('0x5f')],_0x399efc=_0x27e4ff[_0x3c07('0x118')]['get'](d),{isNavigationMode:_0x23ed23,currentChangeNumber:_0x1928a6}=_0x399efc;let _0x21375c;if(_0x399efc[_0x3c07('0xcd')]=_0x23ed23?_0x399efc[_0x3c07('0xa4')][_0x3c07('0xbb')][_0x3c07('0x44')](_0x1928a6+this[_0x3c07('0xc3')]):_0x399efc[_0x3c07('0xa4')][_0x3c07('0xbb')][_0x3c07('0x107')],_0x399efc[_0x3c07('0xcd')][_0x3c07('0xf4')][_0x3c07('0x8b')])_0x21375c=_0x27e4ff['editing'][_0x3c07('0xa')][_0x3c07('0x2f')](_0x399efc['activeChange'][_0x3c07('0x115')]);else{const _0x3c0967=_0x27e4ff['model']['markers'][_0x3c07('0x44')]('revision:'+_0x399efc[_0x3c07('0xcd')]['id']);_0x21375c=_0x37dcec(_0x27e4ff[_0x3c07('0x113')],_0x3c0967);}_0x113633({'target':_0x21375c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19c0fd,currentChangeNumber:_0x512375,numberOfChanges:_0x5ae67d,isReady:_0x4cb098,isEnabled:_0x366d55}=this['editor'][_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xe3')]=!!(_0x366d55&&_0x4cb098&&_0x5ae67d)&&(!_0x19c0fd||(0x1===this[_0x3c07('0xc3')]?_0x512375<_0x5ae67d-0x1:_0x512375>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47b7=['bind','_action','Name\x20this\x20revision','listView','function','bindTemplate','set','isVisible','button','panelPosition','source','buttonView','model','isOpen','children','isActionsDropdownOpen','isEnabled','map','find','threeVerticalDots','ck-revision-history-sidebar__revision__actions','class','items','Compare\x20against\x20selected','listenTo','name','locale','add','stopPropagation','extendTemplate','action'];(function(_0x139d34,_0x47b7e0){const _0x3bd882=function(_0x2b84eb){while(--_0x2b84eb){_0x139d34['push'](_0x139d34['shift']());}};_0x3bd882(++_0x47b7e0);}(_0x47b7,0xb6));const _0x3bd8=function(_0x139d34,_0x47b7e0){_0x139d34=_0x139d34-0x0;let _0x3bd882=_0x47b7[_0x139d34];return _0x3bd882;};import{Collection as _0x42d7cd}from'ckeditor5/src/utils';import{icons as _0x36b92d}from'ckeditor5/src/core';import{Model as _0x513372,addListToDropdown as _0xcb1ac6,createDropdown as _0x4b5524}from'ckeditor5/src/ui';import{getTranslation as _0xa7de51}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x52b21e,_0x412492){const _0x529f43=_0x52b21e[_0x3bd8('0x9')],_0x1693d4=_0x52b21e[_0x3bd8('0x1e')],_0x340297=_0x4b5524(_0x1693d4);_0x340297[_0x3bd8('0xd')]='sw';const _0x49ccbc=function(_0x37ecbc,_0x19a418){const _0x3396a3=function(_0x1d4494,_0x5a46a9){const _0x454e10=_0x1d4494[_0x3bd8('0x1e')],_0x268eba={'Compare\x20against\x20selected':_0xa7de51(_0x454e10,_0x3bd8('0x1b')),'Name\x20this\x20revision':_0xa7de51(_0x454e10,_0x3bd8('0x6')),'Restore\x20this\x20revision':_0xa7de51(_0x454e10,'Restore\x20this\x20revision')};return _0x5a46a9[_0x3bd8('0x15')](_0x2de680=>{const _0x3b9151=_0x268eba[_0x2de680['name']];return _0x3b9151&&_0x3b9151!==_0x2de680[_0x3bd8('0x1d')]&&(_0x2de680[_0x3bd8('0x1d')]=_0x3b9151),_0x2de680;});}(_0x37ecbc,_0x19a418),_0xea694b=new _0x42d7cd();for(const _0x2542bf of _0x3396a3){const _0x461b68={'type':_0x3bd8('0xc'),'model':new _0x513372({'label':_0x2542bf[_0x3bd8('0x1d')],'class':_0x2542bf[_0x3bd8('0x19')],'withText':!0x0,'_action':_0x2542bf[_0x3bd8('0x3')]})};_0x461b68[_0x3bd8('0x10')][_0x3bd8('0x4')](_0x3bd8('0x14'))['to'](_0x37ecbc,_0x3bd8('0x13'),_0x21e367=>_0x3bd8('0x8')!=typeof _0x2542bf[_0x3bd8('0x14')]||(!_0x21e367||_0x2542bf['isEnabled'](_0x37ecbc))),_0xea694b[_0x3bd8('0x0')](_0x461b68);}return _0xea694b;}(_0x52b21e,_0x412492);return _0x52b21e['bind'](_0x3bd8('0x13'))['to'](_0x340297,_0x3bd8('0x11')),_0x340297[_0x3bd8('0xf')][_0x3bd8('0xa')]({'label':_0xa7de51(_0x1693d4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x36b92d[_0x3bd8('0x17')]}),_0x340297[_0x3bd8('0x2')]({'attributes':{'class':[_0x3bd8('0x18'),_0x529f43['if'](_0x3bd8('0x13'),'ck-on')]},'on':{'click':_0x529f43['to'](_0x31ee77=>_0x31ee77[_0x3bd8('0x1')]())}}),_0x340297['on']('execute',_0xd3ab7b=>{_0x52b21e['isReady']&&_0x3bd8('0x8')==typeof _0xd3ab7b[_0x3bd8('0xe')][_0x3bd8('0x5')]&&_0xd3ab7b['source'][_0x3bd8('0x5')](_0x52b21e);}),_0xcb1ac6(_0x340297,_0x49ccbc),_0x340297[_0x3bd8('0x1c')](_0x52b21e,'change:isActionsDropdownOpen',(_0x5e381e,_0x133b64,_0x33c729)=>{if(_0x33c729)for(const _0x42303d of _0x340297[_0x3bd8('0x7')][_0x3bd8('0x1a')]){const _0x5c730c=_0x42303d[_0x3bd8('0x12')]['first'],_0x3a17ea=_0x412492[_0x3bd8('0x16')](_0x5f4cc0=>_0x5f4cc0[_0x3bd8('0x3')]===_0x5c730c['_action'])[_0x3bd8('0xb')];_0x42303d[_0x3bd8('0xb')]=void 0x0===_0x3a17ea||_0x3a17ea(_0x52b21e);}}),_0x340297;}
23
+ const _0x542c=['first','children','stopPropagation','extendTemplate','_action','bindTemplate','isReady','name','isOpen','find','function','ck-on','panelPosition','Show\x20more\x20items','execute','items','change:isActionsDropdownOpen','locale','threeVerticalDots','bind','set','class','Name\x20this\x20revision','listenTo','action','map','button','listView','isVisible','source','isEnabled','isActionsDropdownOpen','Restore\x20this\x20revision'];(function(_0x49a0a3,_0x542c9f){const _0x527506=function(_0x490eef){while(--_0x490eef){_0x49a0a3['push'](_0x49a0a3['shift']());}};_0x527506(++_0x542c9f);}(_0x542c,0x199));const _0x5275=function(_0x49a0a3,_0x542c9f){_0x49a0a3=_0x49a0a3-0x0;let _0x527506=_0x542c[_0x49a0a3];return _0x527506;};import{Collection as _0x8743f6}from'ckeditor5/src/utils';import{icons as _0x420aa9}from'ckeditor5/src/core';import{Model as _0xeb1a8e,addListToDropdown as _0x45ae6b,createDropdown as _0xbdca43}from'ckeditor5/src/ui';import{getTranslation as _0xc68580}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4e1732,_0x42c6db){const _0x3e2a31=_0x4e1732[_0x5275('0x19')],_0x38e59f=_0x4e1732['locale'],_0x55f72b=_0xbdca43(_0x38e59f);_0x55f72b[_0x5275('0x20')]='sw';const _0x327eef=function(_0x342ab0,_0x42872f){const _0x362445=function(_0x5e123a,_0x3494cc){const _0x548e7a=_0x5e123a[_0x5275('0x4')],_0x304aff={'Compare\x20against\x20selected':_0xc68580(_0x548e7a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0xc68580(_0x548e7a,_0x5275('0x9')),'Restore\x20this\x20revision':_0xc68580(_0x548e7a,_0x5275('0x13'))};return _0x3494cc[_0x5275('0xc')](_0x42e71f=>{const _0xceb593=_0x304aff[_0x42e71f['name']];return _0xceb593&&_0xceb593!==_0x42e71f[_0x5275('0x1b')]&&(_0x42e71f['name']=_0xceb593),_0x42e71f;});}(_0x342ab0,_0x42872f),_0x50ed41=new _0x8743f6();for(const _0x54b257 of _0x362445){const _0x59694f={'type':_0x5275('0xd'),'model':new _0xeb1a8e({'label':_0x54b257[_0x5275('0x1b')],'class':_0x54b257[_0x5275('0x8')],'withText':!0x0,'_action':_0x54b257['action']})};_0x59694f['model'][_0x5275('0x6')](_0x5275('0x11'))['to'](_0x342ab0,_0x5275('0x12'),_0x4047b7=>_0x5275('0x1e')!=typeof _0x54b257['isEnabled']||(!_0x4047b7||_0x54b257[_0x5275('0x11')](_0x342ab0))),_0x50ed41['add'](_0x59694f);}return _0x50ed41;}(_0x4e1732,_0x42c6db);return _0x4e1732['bind'](_0x5275('0x12'))['to'](_0x55f72b,_0x5275('0x1c')),_0x55f72b['buttonView'][_0x5275('0x7')]({'label':_0xc68580(_0x38e59f,_0x5275('0x0')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x420aa9[_0x5275('0x5')]}),_0x55f72b[_0x5275('0x17')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3e2a31['if'](_0x5275('0x12'),_0x5275('0x1f'))]},'on':{'click':_0x3e2a31['to'](_0x2792a1=>_0x2792a1[_0x5275('0x16')]())}}),_0x55f72b['on'](_0x5275('0x1'),_0x4a3181=>{_0x4e1732[_0x5275('0x1a')]&&'function'==typeof _0x4a3181[_0x5275('0x10')][_0x5275('0x18')]&&_0x4a3181[_0x5275('0x10')]['_action'](_0x4e1732);}),_0x45ae6b(_0x55f72b,_0x327eef),_0x55f72b[_0x5275('0xa')](_0x4e1732,_0x5275('0x3'),(_0x539956,_0x7868ce,_0x1d35ee)=>{if(_0x1d35ee)for(const _0x16e973 of _0x55f72b[_0x5275('0xe')][_0x5275('0x2')]){const _0x338b6a=_0x16e973[_0x5275('0x15')][_0x5275('0x14')],_0x41898e=_0x42c6db[_0x5275('0x1d')](_0x32ff4a=>_0x32ff4a[_0x5275('0xb')]===_0x338b6a[_0x5275('0x18')])[_0x5275('0xf')];_0x16e973['isVisible']=void 0x0===_0x41898e||_0x41898e(_0x4e1732);}}),_0x55f72b;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c4f=['name','set','ck-revision-history-sidebar__revision-author_creator','span','push','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','0\x200\x2011\x2010','Revision\x20author','Revision\x20creator'];(function(_0x19b5b6,_0x5c4f2a){const _0x336230=function(_0x353440){while(--_0x353440){_0x19b5b6['push'](_0x19b5b6['shift']());}};_0x336230(++_0x5c4f2a);}(_0x5c4f,0xd0));const _0x3362=function(_0x19b5b6,_0x5c4f2a){_0x19b5b6=_0x19b5b6-0x0;let _0x336230=_0x5c4f[_0x19b5b6];return _0x336230;};import{View as _0xdcf6c8,IconView as _0x1cd978}from'ckeditor5/src/ui';import{getTranslation as _0x55652f}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x31769d from'../../../theme/icons/user.svg';export default class ti extends _0xdcf6c8{constructor(_0x12317a,_0x18165d,_0x581dbc){super(_0x12317a);const _0x22e815=new _0x1cd978();_0x22e815[_0x3362('0x3')]({'content':_0x31769d,'viewBox':_0x3362('0x9')});const _0x3a2a80=['ck',_0x3362('0x8')];_0x581dbc&&_0x3a2a80[_0x3362('0x6')](_0x3362('0x4'));const _0x3e7de3=[{'tag':_0x3362('0x5'),'attributes':{'class':['ck',_0x3362('0x7')],'title':_0x55652f(_0x12317a,_0x581dbc?_0x3362('0x1'):_0x3362('0x0'))},'children':[_0x22e815,_0x18165d[_0x3362('0x2')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3a2a80},'children':_0x3e7de3});}}
23
+ const _0x4c65=['0\x200\x2011\x2010','name','set','ck-revision-history-sidebar__revision-author','setTemplate','ck-revision-history-sidebar__revision-author__name','span'];(function(_0x107d02,_0x4c6529){const _0x1f65fb=function(_0x2b4ba6){while(--_0x2b4ba6){_0x107d02['push'](_0x107d02['shift']());}};_0x1f65fb(++_0x4c6529);}(_0x4c65,0xa9));const _0x1f65=function(_0x107d02,_0x4c6529){_0x107d02=_0x107d02-0x0;let _0x1f65fb=_0x4c65[_0x107d02];return _0x1f65fb;};import{View as _0x464596,IconView as _0x36e24b}from'ckeditor5/src/ui';import{getTranslation as _0x578a8e}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x234c27 from'../../../theme/icons/user.svg';export default class ti extends _0x464596{constructor(_0x548a48,_0x5d325e,_0x5aaca9){super(_0x548a48);const _0x7b264c=new _0x36e24b();_0x7b264c[_0x1f65('0x1')]({'content':_0x234c27,'viewBox':_0x1f65('0x6')});const _0x28251d=['ck',_0x1f65('0x2')];_0x5aaca9&&_0x28251d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x378b1e=[{'tag':_0x1f65('0x5'),'attributes':{'class':['ck',_0x1f65('0x4')],'title':_0x578a8e(_0x548a48,_0x5aaca9?'Revision\x20creator':'Revision\x20author')},'children':[_0x7b264c,_0x5d325e[_0x1f65('0x0')]]}];this[_0x1f65('0x3')]({'tag':'li','attributes':{'class':_0x28251d},'children':_0x378b1e});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5900=['Revision\x20name','set','span'];(function(_0x430be9,_0x590059){var _0x4110f9=function(_0x406ba7){while(--_0x406ba7){_0x430be9['push'](_0x430be9['shift']());}};_0x4110f9(++_0x590059);}(_0x5900,0x17d));var _0x4110=function(_0x430be9,_0x590059){_0x430be9=_0x430be9-0x0;var _0x4110f9=_0x5900[_0x430be9];return _0x4110f9;};import{LabeledFieldView as _0x22ef3f}from'ckeditor5/src/ui';import{getTranslation as _0x132184}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x22ef3f{constructor(_0x42744a,_0x3675ab){super(_0x42744a,_0x3675ab),this[_0x4110('0x1')]({'label':_0x132184(_0x42744a,_0x4110('0x0'))}),this['extendTemplate']({'tag':_0x4110('0x2'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x50bf=['span','set','Revision\x20name'];(function(_0x455e26,_0x50bfde){var _0x8cdd03=function(_0x6343b4){while(--_0x6343b4){_0x455e26['push'](_0x455e26['shift']());}};_0x8cdd03(++_0x50bfde);}(_0x50bf,0x187));var _0x8cdd=function(_0x455e26,_0x50bfde){_0x455e26=_0x455e26-0x0;var _0x8cdd03=_0x50bf[_0x455e26];return _0x8cdd03;};import{LabeledFieldView as _0x14f619}from'ckeditor5/src/ui';import{getTranslation as _0x4ebfde}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x14f619{constructor(_0x5a7394,_0x5b7370){super(_0x5a7394,_0x5b7370),this[_0x8cdd('0x0')]({'label':_0x4ebfde(_0x5a7394,_0x8cdd('0x1'))}),this['extendTemplate']({'tag':_0x8cdd('0x2'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3968=['ck-revision-history-sidebar__revision-authors','name','highlight','change','listenTo','deselect','ck-disabled','isHighlighted','select','placeholder','_createdAtFormatted','extendTemplate','isSelected','ck-revision-history-sidebar__revision_selected','div','revisionNameView','setName','revisionActionsView','isConfirm','fieldView','createdAt','set','.ck-thread__remove-confirm','value','220','fire','isReady','_revision','closest','authors','unshift','ck-reset','ck-revision-history-sidebar__actions_dropdown_open','length','isEnabled','isActionsDropdownOpen','element','unhighlight','creator','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision__controls-wrapper','span','bind','uiLanguage','from','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision-wrapper_confirmation_visible'];(function(_0xdfbdce,_0x3968d2){const _0x469119=function(_0x2fff29){while(--_0x2fff29){_0xdfbdce['push'](_0xdfbdce['shift']());}};_0x469119(++_0x3968d2);}(_0x3968,0x9e));const _0x4691=function(_0xdfbdce,_0x3968d2){_0xdfbdce=_0xdfbdce-0x0;let _0x469119=_0x3968[_0xdfbdce];return _0x469119;};import{View as _0x4c41ee,createLabeledInputText as _0x890e11}from'ckeditor5/src/ui';import{ConfirmMixin as _0x139fb5}from'ckeditor5-collaboration/src/collaboration-core';import _0x471032 from'./revisionnameview';import _0x5ed338 from'./revisionauthorview';import{dateToPrettyFormat as _0x33378b}from'./utils';import{createActionsDropdownView as _0x2db85a}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x139fb5(_0x4c41ee){constructor(_0xaac37c,_0x28106f,_0x3e4b88){super(_0xaac37c);const _0x37ca8d=this['bindTemplate'],_0xf9779e=function(_0x4ac869,_0x57822b){const _0x48678e=Array[_0x4691('0x1b')](_0x57822b[_0x4691('0xc')])['filter'](_0x2ca410=>_0x2ca410!=_0x57822b[_0x4691('0x15')]);return _0x57822b[_0x4691('0x15')]&&_0x48678e[_0x4691('0xd')](_0x57822b[_0x4691('0x15')]),_0x48678e['map'](_0x35fe8e=>new _0x5ed338(_0x4ac869,_0x35fe8e,_0x35fe8e==_0x57822b[_0x4691('0x15')]));}(_0xaac37c,_0x28106f);this['id']=_0x28106f['id'],this[_0x4691('0xa')]=_0x28106f,this['bind']('name','createdAt')['to'](_0x28106f),this[_0x4691('0x19')](_0x4691('0x28'))['to'](this,_0x4691('0x3'),_0x3fe814=>_0x3fe814?_0x33378b(_0xaac37c[_0x4691('0x1a')],_0x3fe814):void 0x0),this[_0x4691('0x4')](_0x4691('0x2a'),!0x1),this[_0x4691('0x4')](_0x4691('0x25'),!0x1),this['set'](_0x4691('0x12'),!0x1),this[_0x4691('0x4')](_0x4691('0x9'),!0x1),this[_0x4691('0x4')]('isEnabled',!0x1),this['revisionNameView']=new _0x471032(_0xaac37c,_0x890e11),this[_0x4691('0x2d')][_0x4691('0x2')][_0x4691('0x29')]({'attributes':{'maxlength':_0x4691('0x7')}}),this[_0x4691('0x2d')][_0x4691('0x2')][_0x4691('0x19')](_0x4691('0x6'),_0x4691('0x27'))['to'](this,_0x4691('0x1f'),_0x4691('0x28')),this[_0x4691('0x2d')][_0x4691('0x19')]('isEnabled')['to'](this,_0x4691('0x2a'),this,_0x4691('0x11'),(_0xd05717,_0x2b0d91)=>_0xd05717&&_0x2b0d91),this[_0x4691('0x0')]=_0x3e4b88&&_0x3e4b88[_0x4691('0x10')]?_0x2db85a(this,_0x3e4b88):'',this[_0x4691('0x0')]&&this['revisionActionsView'][_0x4691('0x19')]('isEnabled')['to'](this),this['setTemplate']({'tag':_0x4691('0x2c'),'attributes':{'class':['ck',_0x4691('0xe'),_0x4691('0x16'),_0x37ca8d['if'](_0x4691('0x1'),_0x4691('0x1d'))]},'children':[{'tag':_0x4691('0x2c'),'attributes':{'class':['ck',_0x4691('0xe'),'ck-revision-history-sidebar__revision',_0x37ca8d['if'](_0x4691('0x11'),_0x4691('0x24'),_0x436bfe=>!_0x436bfe),_0x37ca8d['if'](_0x4691('0x2a'),_0x4691('0x2b')),_0x37ca8d['if'](_0x4691('0x25'),_0x4691('0x1c')),_0x37ca8d['if'](_0x4691('0x12'),_0x4691('0xf'))]},'children':[this[_0x4691('0x2d')],{'tag':_0x4691('0x18'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x37ca8d['to'](_0x4691('0x28'))}]},{'tag':_0x4691('0x2c'),'attributes':{'class':['ck',_0x4691('0x17')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4691('0x1e')]},'children':_0xf9779e}]},this[_0x4691('0x0')]],'on':{'click':_0x37ca8d['to'](_0x848f79=>{_0x848f79['srcElement'][_0x4691('0xb')](_0x4691('0x5'))||this[_0x4691('0x9')]&&this[_0x4691('0x11')]&&this[_0x4691('0x8')]('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5ddf2e=this['revisionNameView'][_0x4691('0x2')][_0x4691('0x13')];this[_0x4691('0x22')](_0x5ddf2e,_0x4691('0x21'),()=>{this[_0x4691('0x8')](_0x4691('0x2e'),{'id':this['id'],'name':_0x5ddf2e[_0x4691('0x6')]});});}[_0x4691('0x26')](){this['isSelected']=!0x0;}[_0x4691('0x23')](){this['isSelected']=!0x1;}[_0x4691('0x20')](){this[_0x4691('0x25')]=!0x0;}[_0x4691('0x14')](){this[_0x4691('0x25')]=!0x1;}}
23
+ const _0x3da4=['ck-revision-history-sidebar__revision_selected','createdAt','unhighlight','render','ck-revision-history-sidebar__actions_dropdown_open','bind','element','uiLanguage','deselect','.ck-thread__remove-confirm','isEnabled','setName','listenTo','authors','revisionActionsView','isReady','ck-revision-history-sidebar__revision__controls-wrapper','creator','ck-revision-history-sidebar__revision_highlighted','name','ck-reset','select','length','extendTemplate','isSelected','from','set','isHighlighted','filter','revisionNameView','unshift','value','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision-authors','closest','map','span','div','highlight','fire','fieldView','bindTemplate','220','placeholder','_createdAtFormatted','ck-disabled','isActionsDropdownOpen','setTemplate'];(function(_0x509c58,_0x3da4ff){const _0x253fa2=function(_0x6a33db){while(--_0x6a33db){_0x509c58['push'](_0x509c58['shift']());}};_0x253fa2(++_0x3da4ff);}(_0x3da4,0x1b6));const _0x253f=function(_0x509c58,_0x3da4ff){_0x509c58=_0x509c58-0x0;let _0x253fa2=_0x3da4[_0x509c58];return _0x253fa2;};import{View as _0x2af06f,createLabeledInputText as _0x5e6c38}from'ckeditor5/src/ui';import{ConfirmMixin as _0x370ba0}from'ckeditor5-collaboration/src/collaboration-core';import _0x9e5947 from'./revisionnameview';import _0x249589 from'./revisionauthorview';import{dateToPrettyFormat as _0x391c20}from'./utils';import{createActionsDropdownView as _0x5aa43c}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x370ba0(_0x2af06f){constructor(_0x1e2749,_0x3a4516,_0x2f91ef){super(_0x1e2749);const _0x496a27=this[_0x253f('0x2d')],_0x5d6fad=function(_0x2923ba,_0x403d58){const _0x1f191b=Array[_0x253f('0x1c')](_0x403d58[_0x253f('0x10')])[_0x253f('0x1f')](_0x9d574d=>_0x9d574d!=_0x403d58['creator']);return _0x403d58['creator']&&_0x1f191b[_0x253f('0x21')](_0x403d58[_0x253f('0x14')]),_0x1f191b[_0x253f('0x27')](_0x9b98de=>new _0x249589(_0x2923ba,_0x9b98de,_0x9b98de==_0x403d58[_0x253f('0x14')]));}(_0x1e2749,_0x3a4516);this['id']=_0x3a4516['id'],this['_revision']=_0x3a4516,this['bind'](_0x253f('0x16'),_0x253f('0x4'))['to'](_0x3a4516),this[_0x253f('0x8')](_0x253f('0x30'))['to'](this,_0x253f('0x4'),_0x46ac36=>_0x46ac36?_0x391c20(_0x1e2749[_0x253f('0xa')],_0x46ac36):void 0x0),this[_0x253f('0x1d')](_0x253f('0x1b'),!0x1),this[_0x253f('0x1d')](_0x253f('0x1e'),!0x1),this[_0x253f('0x1d')](_0x253f('0x1'),!0x1),this[_0x253f('0x1d')]('isReady',!0x1),this[_0x253f('0x1d')](_0x253f('0xd'),!0x1),this['revisionNameView']=new _0x9e5947(_0x1e2749,_0x5e6c38),this[_0x253f('0x20')][_0x253f('0x2c')][_0x253f('0x1a')]({'attributes':{'maxlength':_0x253f('0x2e')}}),this[_0x253f('0x20')][_0x253f('0x2c')][_0x253f('0x8')](_0x253f('0x22'),_0x253f('0x2f'))['to'](this,_0x253f('0x16'),_0x253f('0x30')),this[_0x253f('0x20')][_0x253f('0x8')]('isEnabled')['to'](this,_0x253f('0x1b'),this,'isEnabled',(_0x3b7250,_0x29bd16)=>_0x3b7250&&_0x29bd16),this[_0x253f('0x11')]=_0x2f91ef&&_0x2f91ef[_0x253f('0x19')]?_0x5aa43c(this,_0x2f91ef):'',this[_0x253f('0x11')]&&this['revisionActionsView'][_0x253f('0x8')](_0x253f('0xd'))['to'](this),this[_0x253f('0x2')]({'tag':'div','attributes':{'class':['ck',_0x253f('0x17'),_0x253f('0x24'),_0x496a27['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x253f('0x17'),_0x253f('0x23'),_0x496a27['if'](_0x253f('0xd'),_0x253f('0x0'),_0x2175d0=>!_0x2175d0),_0x496a27['if'](_0x253f('0x1b'),_0x253f('0x3')),_0x496a27['if'](_0x253f('0x1e'),_0x253f('0x15')),_0x496a27['if'](_0x253f('0x1'),_0x253f('0x7'))]},'children':[this['revisionNameView'],{'tag':_0x253f('0x28'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x496a27['to'](_0x253f('0x30'))}]},{'tag':_0x253f('0x29'),'attributes':{'class':['ck',_0x253f('0x13')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x253f('0x25')]},'children':_0x5d6fad}]},this[_0x253f('0x11')]],'on':{'click':_0x496a27['to'](_0x248818=>{_0x248818['srcElement'][_0x253f('0x26')](_0x253f('0xc'))||this[_0x253f('0x12')]&&this[_0x253f('0xd')]&&this[_0x253f('0x2b')](_0x253f('0x18'),{'id':this['id']});})}}]});}[_0x253f('0x6')](){super[_0x253f('0x6')]();const _0x4f5267=this[_0x253f('0x20')][_0x253f('0x2c')][_0x253f('0x9')];this[_0x253f('0xf')](_0x4f5267,'change',()=>{this[_0x253f('0x2b')](_0x253f('0xe'),{'id':this['id'],'name':_0x4f5267['value']});});}['select'](){this[_0x253f('0x1b')]=!0x0;}[_0x253f('0xb')](){this[_0x253f('0x1b')]=!0x1;}[_0x253f('0x2a')](){this['isHighlighted']=!0x0;}[_0x253f('0x5')](){this[_0x253f('0x1e')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13b6=['setTemplate','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser__inner','isVisible','span','ck-hidden','ck-revision-history-sidebar__subrevision-collapser_collapsed','false','click','true','set','_isCollapsed'];(function(_0x4477,_0x13b6d7){const _0x53df68=function(_0x122a13){while(--_0x122a13){_0x4477['push'](_0x4477['shift']());}};_0x53df68(++_0x13b6d7);}(_0x13b6,0x64));const _0x53df=function(_0x4477,_0x13b6d7){_0x4477=_0x4477-0x0;let _0x53df68=_0x13b6[_0x4477];return _0x53df68;};import{View as _0x42afae}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x42afae{constructor(_0x3f674c){super(_0x3f674c);const _0x2d1ed6=this[_0x53df('0x5')];this[_0x53df('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x53df('0x4')]({'tag':'span','attributes':{'class':['ck',_0x53df('0x6'),_0x2d1ed6['if'](_0x53df('0x8'),_0x53df('0xa'),_0x43ef5d=>!_0x43ef5d),_0x2d1ed6['if']('_isCollapsed',_0x53df('0xb'))],'role':'button','aria-pressed':_0x2d1ed6['to'](_0x53df('0x3'),_0x162c26=>_0x162c26?_0x53df('0xc'):_0x53df('0x1'))},'children':[{'tag':_0x53df('0x9'),'attributes':{'class':['ck',_0x53df('0x7')]}}],'on':{'click':_0x2d1ed6['to'](_0x53df('0x0'))}});}['toggle'](){this['_isCollapsed']=!this[_0x53df('0x3')];}}
23
+ const _0x29cd=['setTemplate','toggle','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser_collapsed','set','_isCollapsed','true','span','button','isVisible','false'];(function(_0x3e3494,_0x29cda6){const _0xaf5312=function(_0x2acbf5){while(--_0x2acbf5){_0x3e3494['push'](_0x3e3494['shift']());}};_0xaf5312(++_0x29cda6);}(_0x29cd,0x169));const _0xaf53=function(_0x3e3494,_0x29cda6){_0x3e3494=_0x3e3494-0x0;let _0xaf5312=_0x29cd[_0x3e3494];return _0xaf5312;};import{View as _0x2e1857}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2e1857{constructor(_0x4d8a5b){super(_0x4d8a5b);const _0x1d69cc=this['bindTemplate'];this[_0xaf53('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xaf53('0x2')]({'tag':_0xaf53('0x9'),'attributes':{'class':['ck',_0xaf53('0x4'),_0x1d69cc['if'](_0xaf53('0x0'),'ck-hidden',_0x457403=>!_0x457403),_0x1d69cc['if'](_0xaf53('0x7'),_0xaf53('0x5'))],'role':_0xaf53('0xa'),'aria-pressed':_0x1d69cc['to']('_isCollapsed',_0x431926=>_0x431926?_0xaf53('0x1'):_0xaf53('0x8'))},'children':[{'tag':_0xaf53('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x1d69cc['to']('click')}});}[_0xaf53('0x3')](){this[_0xaf53('0x7')]=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16bb=['isSelected','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision','fire','_createdAtFormatted','span','createdAt','div','_parentRevisionId','bind','setTemplate','set','bindTemplate','ck-revision-history-sidebar__revision-authors','uiLanguage','ck-reset','select'];(function(_0x4169ea,_0x16bbc9){const _0xbccf7e=function(_0x1e47ad){while(--_0x1e47ad){_0x4169ea['push'](_0x4169ea['shift']());}};_0xbccf7e(++_0x16bbc9);}(_0x16bb,0x177));const _0xbccf=function(_0x4169ea,_0x16bbc9){_0x4169ea=_0x4169ea-0x0;let _0xbccf7e=_0x16bb[_0x4169ea];return _0xbccf7e;};import{View as _0x3e694f}from'ckeditor5/src/ui';import _0x363eb8 from'./revisionauthorview';import{dateToPrettyFormat as _0x177c2e}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3e694f{constructor(_0x1bf70e,_0x12e65a,_0xed8f1b){super(_0x1bf70e);const _0x40fc1f=this[_0xbccf('0xb')];this['id']=_0x12e65a['id'],this[_0xbccf('0x8')](_0xbccf('0x5'))['to'](_0x12e65a),this[_0xbccf('0xa')](_0xbccf('0x10'),!0x1),this[_0xbccf('0x8')](_0xbccf('0x3'))['to'](this,_0xbccf('0x5'),_0x27af06=>_0x27af06?_0x177c2e(_0x1bf70e[_0xbccf('0xd')],_0x27af06):void 0x0),this[_0xbccf('0x7')]=_0xed8f1b,this[_0xbccf('0x9')]({'tag':_0xbccf('0x6'),'attributes':{'class':['ck',_0xbccf('0xe'),_0xbccf('0x1'),'ck-revision-history-sidebar__subrevision',_0x40fc1f['if'](_0xbccf('0x10'),_0xbccf('0x0'))]},'children':[{'tag':_0xbccf('0x4'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x40fc1f['to'](_0xbccf('0x3'))}]},{'tag':'ul','attributes':{'class':['ck',_0xbccf('0xc')]},'children':[new _0x363eb8(_0x1bf70e,_0x12e65a['creator'],!0x0)]}],'on':{'click':_0x40fc1f['to'](this[_0xbccf('0xf')][_0xbccf('0x8')](this))}});}['select'](){this[_0xbccf('0x10')]=!0x0,this[_0xbccf('0x2')](_0xbccf('0xf'),{'parentId':this[_0xbccf('0x7')]});}['deselect'](){this[_0xbccf('0x10')]=!0x1;}}
23
+ const _0x4f85=['createdAt','_parentRevisionId','deselect','set','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','setTemplate','ck-revision-history-sidebar__revision_selected','bind','uiLanguage','div','fire','creator','select','_createdAtFormatted','isSelected','ck-revision-history-sidebar__revision'];(function(_0x2c1c81,_0x4f85dd){const _0x32fe9c=function(_0x8f60da){while(--_0x8f60da){_0x2c1c81['push'](_0x2c1c81['shift']());}};_0x32fe9c(++_0x4f85dd);}(_0x4f85,0x11d));const _0x32fe=function(_0x2c1c81,_0x4f85dd){_0x2c1c81=_0x2c1c81-0x0;let _0x32fe9c=_0x4f85[_0x2c1c81];return _0x32fe9c;};import{View as _0x41cc88}from'ckeditor5/src/ui';import _0x11a1a8 from'./revisionauthorview';import{dateToPrettyFormat as _0x5dff79}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x41cc88{constructor(_0x11b455,_0x330273,_0x1bcbe5){super(_0x11b455);const _0x101bca=this['bindTemplate'];this['id']=_0x330273['id'],this[_0x32fe('0xc')](_0x32fe('0x4'))['to'](_0x330273),this[_0x32fe('0x7')]('isSelected',!0x1),this['bind'](_0x32fe('0x1'))['to'](this,'createdAt',_0x3df5e5=>_0x3df5e5?_0x5dff79(_0x11b455[_0x32fe('0xd')],_0x3df5e5):void 0x0),this[_0x32fe('0x5')]=_0x1bcbe5,this[_0x32fe('0xa')]({'tag':_0x32fe('0xe'),'attributes':{'class':['ck','ck-reset',_0x32fe('0x3'),'ck-revision-history-sidebar__subrevision',_0x101bca['if'](_0x32fe('0x2'),_0x32fe('0xb'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x32fe('0x9')]},'children':[{'text':_0x101bca['to'](_0x32fe('0x1'))}]},{'tag':'ul','attributes':{'class':['ck',_0x32fe('0x8')]},'children':[new _0x11a1a8(_0x11b455,_0x330273[_0x32fe('0x10')],!0x0)]}],'on':{'click':_0x101bca['to'](this[_0x32fe('0x0')][_0x32fe('0xc')](this))}});}[_0x32fe('0x0')](){this['isSelected']=!0x0,this[_0x32fe('0xf')](_0x32fe('0x0'),{'parentId':this[_0x32fe('0x5')]});}[_0x32fe('0x6')](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4b86=['long','toLocaleTimeString','numeric'];(function(_0x52e348,_0x4b8647){var _0x475885=function(_0x4db63d){while(--_0x4db63d){_0x52e348['push'](_0x52e348['shift']());}};_0x475885(++_0x4b8647);}(_0x4b86,0x1c0));var _0x4758=function(_0x52e348,_0x4b8647){_0x52e348=_0x52e348-0x0;var _0x475885=_0x4b86[_0x52e348];return _0x475885;};export function dateToPrettyFormat(_0x4aafd7,_0x57f1ad){return _0x57f1ad['toLocaleDateString'](_0x4aafd7,{'month':_0x4758('0x2'),'day':_0x4758('0x1')})+',\x20'+_0x57f1ad[_0x4758('0x0')](_0x4aafd7,{'hour':_0x4758('0x1'),'minute':_0x4758('0x1')});}
23
+ var _0x4356=['numeric','toLocaleDateString','toLocaleTimeString','long'];(function(_0x5a0502,_0x4356d6){var _0x579e28=function(_0x4e5b7b){while(--_0x4e5b7b){_0x5a0502['push'](_0x5a0502['shift']());}};_0x579e28(++_0x4356d6);}(_0x4356,0x1de));var _0x579e=function(_0x5a0502,_0x4356d6){_0x5a0502=_0x5a0502-0x0;var _0x579e28=_0x4356[_0x5a0502];return _0x579e28;};export function dateToPrettyFormat(_0x3117a3,_0xffc4e9){return _0xffc4e9[_0x579e('0x3')](_0x3117a3,{'month':_0x579e('0x1'),'day':_0x579e('0x2')})+',\x20'+_0xffc4e9[_0x579e('0x0')](_0x3117a3,{'hour':'numeric','minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1383=['type','saveButtonView','cancelButtonView','listenTo','ck-button-save','delegate','_createRevisionNameInput','setTemplate','arrowup','fieldView','arrowdown','execute','focusTracker','value','render','revisionNameInputView','keystrokes','ck-responsive-form','tab','cancel','_createButton','locale','form','add','_focusCycler','element','revisionNameInputValue','check','extendTemplate','ck-revision-history-save-revision-form','input','arrowright','focusFirst','_focusables','submit','revisionName','stopPropagation','Cancel','label','ck-button-cancel','220','set','reset','trim'];(function(_0x3c4faf,_0x138394){const _0x2a905b=function(_0x578d9c){while(--_0x578d9c){_0x3c4faf['push'](_0x3c4faf['shift']());}};_0x2a905b(++_0x138394);}(_0x1383,0x161));const _0x2a90=function(_0x3c4faf,_0x138394){_0x3c4faf=_0x3c4faf-0x0;let _0x2a905b=_0x1383[_0x3c4faf];return _0x2a905b;};import{icons as _0x7feb15}from'ckeditor5/src/core';import{ButtonView as _0x5eca54,FocusCycler as _0x22eb85,LabeledFieldView as _0x46807b,View as _0x22f81e,ViewCollection as _0x429dbb,createLabeledInputText as _0x16cc20,injectCssTransitionDisabler as _0x1eb79b,submitHandler as _0x2ccd7b}from'ckeditor5/src/ui';import{FocusTracker as _0x32a46e,KeystrokeHandler as _0x494214}from'ckeditor5/src/utils';import{getTranslation as _0x46f03b}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x22f81e{constructor(_0x41cf59){super(_0x41cf59),this['focusTracker']=new _0x32a46e(),this[_0x2a90('0xf')]=new _0x494214(),this['set'](_0x2a90('0x19'),''),this[_0x2a90('0xe')]=this[_0x2a90('0x5')](),this[_0x2a90('0x0')]=this[_0x2a90('0x13')](_0x46f03b(_0x41cf59,'Save'),_0x7feb15[_0x2a90('0x1a')],_0x2a90('0x3')),this['saveButtonView'][_0x2a90('0x2b')]=_0x2a90('0x21'),this[_0x2a90('0x1')]=this[_0x2a90('0x13')](_0x46f03b(_0x41cf59,_0x2a90('0x24')),_0x7feb15[_0x2a90('0x12')],_0x2a90('0x26'),_0x2a90('0x12')),this[_0x2a90('0x20')]=new _0x429dbb(),this['_focusCycler']=new _0x22eb85({'focusables':this[_0x2a90('0x20')],'focusTracker':this[_0x2a90('0xb')],'keystrokeHandler':this[_0x2a90('0xf')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x2a90('0x11')}}),this[_0x2a90('0x6')]({'tag':_0x2a90('0x15'),'attributes':{'class':['ck',_0x2a90('0x1c'),_0x2a90('0x10')],'tabindex':'-1'},'children':[this[_0x2a90('0xe')],this[_0x2a90('0x0')],this[_0x2a90('0x1')]]}),_0x1eb79b(this);}[_0x2a90('0xd')](){super[_0x2a90('0xd')](),_0x2ccd7b({'view':this}),([this['revisionNameInputView'],this[_0x2a90('0x0')],this[_0x2a90('0x1')]]['forEach'](_0x2f9536=>{this[_0x2a90('0x20')][_0x2a90('0x16')](_0x2f9536),this[_0x2a90('0xb')][_0x2a90('0x16')](_0x2f9536[_0x2a90('0x18')]);}),this[_0x2a90('0xf')][_0x2a90('0x2')](this[_0x2a90('0x18')]));const _0x3d2620=_0x12cde2=>_0x12cde2[_0x2a90('0x23')]();this[_0x2a90('0xf')][_0x2a90('0x28')](_0x2a90('0x1e'),_0x3d2620),this['keystrokes'][_0x2a90('0x28')]('arrowleft',_0x3d2620),this[_0x2a90('0xf')][_0x2a90('0x28')](_0x2a90('0x7'),_0x3d2620),this[_0x2a90('0xf')][_0x2a90('0x28')](_0x2a90('0x9'),_0x3d2620);}['focus'](){this[_0x2a90('0x17')][_0x2a90('0x1f')]();}get[_0x2a90('0x22')](){return this[_0x2a90('0xe')][_0x2a90('0x8')][_0x2a90('0x18')]['value']['trim']();}set['revisionName'](_0xcc4793){this[_0x2a90('0xe')][_0x2a90('0x8')]['element'][_0x2a90('0xc')]=_0xcc4793['trim']();}[_0x2a90('0x29')](){this[_0x2a90('0xe')][_0x2a90('0x8')][_0x2a90('0x18')][_0x2a90('0xc')]='';}['_createRevisionNameInput'](){const _0x3b3ddf=new _0x46807b(this[_0x2a90('0x14')],_0x16cc20),_0x1bb6d2=_0x3b3ddf[_0x2a90('0x8')];return _0x1bb6d2[_0x2a90('0x1b')]({'attributes':{'maxlength':_0x2a90('0x27')}}),_0x3b3ddf[_0x2a90('0x25')]=_0x46f03b(this['locale'],'Name\x20of\x20the\x20revision\x20(optional)'),_0x1bb6d2['on'](_0x2a90('0x1d'),()=>{this['revisionNameInputValue']=_0x1bb6d2[_0x2a90('0x18')][_0x2a90('0xc')][_0x2a90('0x2a')]();}),_0x3b3ddf;}[_0x2a90('0x13')](_0x24cbc9,_0x2d1ac9,_0x2f06d0,_0x2ac335){const _0x5dd49f=new _0x5eca54(this[_0x2a90('0x14')]);return _0x5dd49f['set']({'label':_0x24cbc9,'icon':_0x2d1ac9,'tooltip':!0x0}),_0x5dd49f[_0x2a90('0x1b')]({'attributes':{'class':_0x2f06d0}}),_0x2ac335&&_0x5dd49f[_0x2a90('0x4')](_0x2a90('0xa'))['to'](this,_0x2ac335),_0x5dd49f;}}
23
+ const _0x9476=['cancel','focusTracker','arrowdown','arrowright','input','value','set','listenTo','submit','revisionNameInputValue','_focusables','delegate','locale','Save','stopPropagation','_focusCycler','arrowleft','trim','execute','check','220','label','revisionNameInputView','keystrokes','element','render','cancelButtonView','add','ck-button-cancel','fieldView','shift\x20+\x20tab','Cancel','type','forEach','Name\x20of\x20the\x20revision\x20(optional)','saveButtonView','setTemplate','form','_createRevisionNameInput','focusFirst','revisionName'];(function(_0x14b21e,_0x9476a0){const _0x48d817=function(_0x2ff097){while(--_0x2ff097){_0x14b21e['push'](_0x14b21e['shift']());}};_0x48d817(++_0x9476a0);}(_0x9476,0xba));const _0x48d8=function(_0x14b21e,_0x9476a0){_0x14b21e=_0x14b21e-0x0;let _0x48d817=_0x9476[_0x14b21e];return _0x48d817;};import{icons as _0x39ea11}from'ckeditor5/src/core';import{ButtonView as _0x3f86f4,FocusCycler as _0x995f1b,LabeledFieldView as _0x50e9b4,View as _0x5ae435,ViewCollection as _0x1a3278,createLabeledInputText as _0x2c1112,injectCssTransitionDisabler as _0x36d9f9,submitHandler as _0x193364}from'ckeditor5/src/ui';import{FocusTracker as _0x5d1a54,KeystrokeHandler as _0xf032f4}from'ckeditor5/src/utils';import{getTranslation as _0x447db2}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5ae435{constructor(_0x49f289){super(_0x49f289),this['focusTracker']=new _0x5d1a54(),this[_0x48d8('0x1')]=new _0xf032f4(),this[_0x48d8('0x19')](_0x48d8('0x1c'),''),this[_0x48d8('0x0')]=this['_createRevisionNameInput'](),this[_0x48d8('0xd')]=this['_createButton'](_0x447db2(_0x49f289,_0x48d8('0x20')),_0x39ea11[_0x48d8('0x26')],'ck-button-save'),this['saveButtonView'][_0x48d8('0xa')]=_0x48d8('0x1b'),this[_0x48d8('0x4')]=this['_createButton'](_0x447db2(_0x49f289,_0x48d8('0x9')),_0x39ea11[_0x48d8('0x13')],_0x48d8('0x6'),_0x48d8('0x13')),this[_0x48d8('0x1d')]=new _0x1a3278(),this[_0x48d8('0x22')]=new _0x995f1b({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x48d8('0x1')],'actions':{'focusPrevious':_0x48d8('0x8'),'focusNext':'tab'}}),this[_0x48d8('0xe')]({'tag':_0x48d8('0xf'),'attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x48d8('0x0')],this['saveButtonView'],this[_0x48d8('0x4')]]}),_0x36d9f9(this);}[_0x48d8('0x3')](){super['render'](),_0x193364({'view':this}),([this[_0x48d8('0x0')],this[_0x48d8('0xd')],this[_0x48d8('0x4')]][_0x48d8('0xb')](_0x2c520c=>{this[_0x48d8('0x1d')][_0x48d8('0x5')](_0x2c520c),this[_0x48d8('0x14')][_0x48d8('0x5')](_0x2c520c[_0x48d8('0x2')]);}),this[_0x48d8('0x1')][_0x48d8('0x1a')](this[_0x48d8('0x2')]));const _0x540a9c=_0x2fcbc4=>_0x2fcbc4[_0x48d8('0x21')]();this[_0x48d8('0x1')][_0x48d8('0x19')](_0x48d8('0x16'),_0x540a9c),this[_0x48d8('0x1')][_0x48d8('0x19')](_0x48d8('0x23'),_0x540a9c),this[_0x48d8('0x1')][_0x48d8('0x19')]('arrowup',_0x540a9c),this[_0x48d8('0x1')][_0x48d8('0x19')](_0x48d8('0x15'),_0x540a9c);}['focus'](){this[_0x48d8('0x22')][_0x48d8('0x11')]();}get[_0x48d8('0x12')](){return this['revisionNameInputView'][_0x48d8('0x7')][_0x48d8('0x2')][_0x48d8('0x18')][_0x48d8('0x24')]();}set['revisionName'](_0xda5a05){this[_0x48d8('0x0')][_0x48d8('0x7')][_0x48d8('0x2')]['value']=_0xda5a05[_0x48d8('0x24')]();}['reset'](){this['revisionNameInputView'][_0x48d8('0x7')][_0x48d8('0x2')][_0x48d8('0x18')]='';}[_0x48d8('0x10')](){const _0x2ee734=new _0x50e9b4(this[_0x48d8('0x1f')],_0x2c1112),_0x62391e=_0x2ee734['fieldView'];return _0x62391e['extendTemplate']({'attributes':{'maxlength':_0x48d8('0x27')}}),_0x2ee734[_0x48d8('0x28')]=_0x447db2(this[_0x48d8('0x1f')],_0x48d8('0xc')),_0x62391e['on'](_0x48d8('0x17'),()=>{this['revisionNameInputValue']=_0x62391e[_0x48d8('0x2')][_0x48d8('0x18')][_0x48d8('0x24')]();}),_0x2ee734;}['_createButton'](_0x188812,_0x3457bb,_0x5ab0a9,_0x9482af){const _0xbf8f92=new _0x3f86f4(this[_0x48d8('0x1f')]);return _0xbf8f92[_0x48d8('0x19')]({'label':_0x188812,'icon':_0x3457bb,'tooltip':!0x0}),_0xbf8f92['extendTemplate']({'attributes':{'class':_0x5ab0a9}}),_0x9482af&&_0xbf8f92[_0x48d8('0x1e')](_0x48d8('0x25'))['to'](this,_0x9482af),_0xbf8f92;}}