@ckeditor/ckeditor5-revision-history 38.0.0 → 38.1.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 (39) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +13 -11
  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/index.d.ts +1 -0
  8. package/src/revision.js +1 -1
  9. package/src/revisiondiff.js +1 -1
  10. package/src/revisionhistory.d.ts +5 -3
  11. package/src/revisionhistory.js +1 -1
  12. package/src/revisionsrepository.d.ts +8 -3
  13. package/src/revisionsrepository.js +1 -1
  14. package/src/revisiontracker.d.ts +8 -3
  15. package/src/revisiontracker.js +1 -1
  16. package/src/revisionviewer.js +1 -1
  17. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  18. package/src/ui/revision/revisionauthorview.js +1 -1
  19. package/src/ui/revision/revisionnameview.js +1 -1
  20. package/src/ui/revision/revisionview.js +1 -1
  21. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  22. package/src/ui/revision/subrevisionview.js +1 -1
  23. package/src/ui/revision/utils.js +1 -1
  24. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  25. package/src/ui/revisionhistory/revisionhistoryui.d.ts +4 -3
  26. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  27. package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -3
  28. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  29. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  30. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  31. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  32. package/src/ui/revisionssidebar/utils.js +1 -1
  33. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  34. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  35. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
  36. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  37. package/src/ui/revisionviewer/revisionviewerui.d.ts +5 -3
  38. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  39. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x67be=['previousPosition','collaboration.channelId','top','vid','markerName','addRoot','_setChanges','removeMarker:revision','length','_balloon','end','activeView','listenTo','nextSibling','ck-suggestion-marker','marked','isRemoveSuggestion','splice','_removeUnsupportedChanges','domEvent','isBlock','isEqual','_joinTapes','isAttached','code','mapper','change:activeChange','consume','merge','delete','flat','revision-viewer','isReady','_getRevisionsRange','affectsData','isIncorrect','forceDisabled','revision-comment:','_fixObsoleteTags','attachChange','bottom','viewItem','createUIElement','_makeModelFromTape','document','plugins','abs','getWalker','createRangeIn','hasClass','addMarker:revision-suggestion:insertion','from','_markSuggestions','bindElementToMarker','done','getRoot','rootName','getRootNames','_removeMissingPairs','enqueueChange','schema','markersEnd','RevisionViewer','toModel','elementToAttribute','then','item','removeClass','compare','_makeModelFromViewString','_refreshStartEndIndex','activeChange','suggestion:','data-revision-','forEach','ck-suggestion-marker--active','isNavigationMode','useFillerType','isContent','revisionHistoryLabel','ck-suggestion-marker-','attribute:vid','low','changes','return','enableReadOnlyMode','pluginName','maxOffset','isSuggestion','markerToHighlight','userId','insert','keys','highest','getItems','markersStart','test','text','add','revision','findIndex','change:isReady','RevisionsRepository','markerRange','range','isCollapsed','ck-suggestion-marker-merge','restoreRevision','startIndex','_step','requires','getAttributes','mapViewToDom','isAtStart','consumable','span','pop','nextPosition','has','name','isEnabled','execute','toViewPosition','concat','revision:','config','attributesAfter','shift','modelRange','_markMarkers','_markMismatchedRemovedTags','createAttributeElement','isAtEnd','POSITIVE_INFINITY','showPreviousChange','indexOf','revision-end','model','_markInsertions','showStack','deletion','split','addHighlight','dataToMarker','reconvertMarker','-new','createRevision','_cleanMarkers','dataDowncast','diff','loadRevisionData','endIndex','_changeView','insertion','unbindElementFromMarkerName','refresh','stop','target','createPositionFromPath','toViewElement','index','revisionHistory','parent','editor','createPositionBefore','toData','resolve','ck-suggestion-preview-marker-','isAdded','change','domConverter','hasAttribute','isObject','authors','get','_getChangeFromId','ck-suggestion-preview-marker','oldRevisionId','mouseover','revisionHistoryAttachChange','revision-suggestion','element','diffData','_findChangeIdFromDomTarget','_threeWayMerge','nodeAfter','bind','pairId','getDomRoot','ck-editor__editable__overlay','getAttribute','WidgetToolbarRepository','markerToData','toViewRange','upcast','deletions','getCustomProperty','addRevisionData','comment','getRevision','isRemoved','default','attributes','level','removeAttribute','_changeIdToChange','observeMarkers','offsetSize','destroy','clear','for','showNextChange','addMarker:revision','_getViewForChange','side','_appendChild','elementStart','forward','getRevisionData','left','downcastDispatcher','isAfter','detachRoot','_data','processor','change:isEnabled','currentChangeNumber','vid_start','_processTape','elementEnd','editingDowncast','set','type','_initInteractions','addClass','sort','remove','filter','createRange','wrap','vid_end','addRevision','right','changeId','isLimit','_getDiff','markers','ck-suggestion-marker-split','_getViewObj','checkAttribute','newRevisionId','isAddSuggestion','conversion','push','map','parse','backward','getRevisionRootsAttributes','isOnRoot','children','string','start','data','view','_removeRevisionMarkers','insertions','high','includes','commands','writer','find','mousedown','locale','_setDistance','repository','ck-revision-history-root--active','init','softBreak','_activeViewTarget','unshift','_sortAndFilterDiffChanges','suggestion','isBefore','change:numberOfChanges','setAttribute','isInline','markerNameToElements','_cleanUp','removeMarker','_setConversion','startsWith','distance','editing','_update','ck-revision-history-root-','getClientRects','all','restoreRevisionCallback','_makeTape'];(function(_0x4781eb,_0x67bee4){const _0x5bd4dd=function(_0xe1bd68){while(--_0xe1bd68){_0x4781eb['push'](_0x4781eb['shift']());}};_0x5bd4dd(++_0x67bee4);}(_0x67be,0x190));const _0x5bd4=function(_0x4781eb,_0x67bee4){_0x4781eb=_0x4781eb-0x0;let _0x5bd4dd=_0x67be[_0x4781eb];return _0x5bd4dd;};import{Plugin as _0x5ce30b,Command as _0x5b4a33}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5214f0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5ee8bc}from'ckeditor5/src/ui';import{DocumentFragment as _0x2d0625,Element as _0x30ac3d,Text as _0x51642b,ViewDocumentFragment as _0x1dfeab,ViewText as _0x1058e8,ViewElement as _0x3c40ed,ViewContainerElement as _0x59605b,ViewAttributeElement as _0x1df025,ViewEmptyElement as _0x54fdb0,ViewRawElement as _0x50e891,ViewUIElement as _0x45d92e}from'ckeditor5/src/engine';import{Users as _0x2bb188,getMarkerDomElement as _0x222649}from'ckeditor5-collaboration/src/collaboration-core';import _0x5dc8aa from'./ui/revisionviewer/changedetailsview';import _0x464859 from'./revisionsrepository';import _0x33f7bf from'./changeitem';import{default as _0x2420f6}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x5297ec}from'lodash-es';const X={'c':_0x59605b,'a':_0x1df025,'e':_0x54fdb0,'r':_0x50e891,'u':_0x45d92e};export default class w extends _0x5ce30b{static get[_0x5bd4('0x11c')](){return _0x5bd4('0x104');}static get[_0x5bd4('0x9')](){return[_0x2bb188,_0x5ee8bc,_0x464859];}constructor(_0x6db929){super(_0x6db929),this[_0x5bd4('0xad')]=this['editor'][_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5bd4('0x1')),this['set'](_0x5bd4('0x10d'),null),this['set']('activeView',null),this[_0x5bd4('0xb1')]=null,this['set'](_0x5bd4('0x30'),null),this['set'](_0x5bd4('0xe6'),!0x1),this['set'](_0x5bd4('0x13'),!0x0),this['on'](_0x5bd4('0x7c'),(_0x3b5b4c,_0x487cb7,_0x7bd55f)=>{this[_0x5bd4('0x10d')]=null,this['activeView']=null,this['editor'][_0x5bd4('0xbf')]['view']['change'](_0x3553b3=>{for(const _0x4a901c of this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['view'][_0x5bd4('0xf2')]['roots'])_0x7bd55f?_0x3553b3[_0x5bd4('0x109')](_0x5bd4('0x58'),_0x4a901c):_0x3553b3[_0x5bd4('0x85')](_0x5bd4('0x58'),_0x4a901c);});}),this['bind'](_0x5bd4('0x112'))['to'](this,_0x5bd4('0x10d'),_0x2bd82f=>null!==_0x2bd82f),this[_0x5bd4('0x55')](_0x5bd4('0x7d'))['to'](this,_0x5bd4('0xe6'),this,_0x5bd4('0x30'),this,_0x5bd4('0x10d'),(_0x2c67ec,_0x6caf51,_0x39594c)=>_0x2c67ec&&_0x39594c?_0x6caf51[_0x5bd4('0x119')]['getIndex'](_0x39594c):0x0),this[_0x5bd4('0x55')]('numberOfChanges')['to'](this,_0x5bd4('0xe6'),this,_0x5bd4('0x30'),(_0x1d82b4,_0x43c10e)=>_0x1d82b4?_0x43c10e[_0x5bd4('0x119')][_0x5bd4('0xce')]:0x0),this[_0x5bd4('0x33')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this[_0x5bd4('0x3e')][_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5ee8bc);}[_0x5bd4('0xaf')](){const _0xcce571=this[_0x5bd4('0x3e')],_0xfd3b78=new ShowChangeCommand(_0xcce571,{'direction':_0x5bd4('0x9b')}),_0x4b214d=new ShowChangeCommand(_0xcce571,{'direction':'forward'});(_0xcce571[_0x5bd4('0xa7')][_0x5bd4('0x128')](_0x5bd4('0x21'),_0xfd3b78),_0xcce571['commands']['add'](_0x5bd4('0x6e'),_0x4b214d),_0xcce571[_0x5bd4('0xa7')]['add'](_0x5bd4('0x6'),new RestoreRevisionCommand(_0xcce571)),this['on'](_0x5bd4('0xb6'),()=>{_0xfd3b78['refresh'](),_0x4b214d[_0x5bd4('0x36')]();}),this[_0x5bd4('0xbc')](),this[_0x5bd4('0x84')](),_0xcce571[_0x5bd4('0x11b')](_0x5bd4('0xe5')),_0xcce571[_0x5bd4('0xf3')][_0x5bd4('0x11')](_0x5bd4('0x5a')))&&_0xcce571[_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5bd4('0x5a'))[_0x5bd4('0xea')]('revision-viewer');}async[_0x5bd4('0x75')](_0xf2d445){await this['loadRevisionData'](_0xf2d445);const _0x5bf0b0={};for(const _0x2907a7 in _0xf2d445['diffData']){if(_0xf2d445[_0x5bd4('0x51')][_0x2907a7][_0x5bd4('0xed')]&&!_0xf2d445[_0x5bd4('0x51')][_0x2907a7][_0x5bd4('0xed')][_0x5bd4('0xdd')])continue;const _0x3e1940=this[_0x5bd4('0xa3')](JSON['parse'](_0xf2d445[_0x5bd4('0x51')][_0x2907a7][_0x5bd4('0xa4')])),_0x3d8abc=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['view'][_0x5bd4('0xf2')],_0x5d64c3=new _0x1dfeab(_0x3d8abc,_0x3e1940['map'](_0x2da0ff=>this[_0x5bd4('0x93')](_0x2da0ff)));this[_0x5bd4('0x3e')][_0x5bd4('0xa1')]['processor']['useFillerType'](_0x5bd4('0xd5')),_0x5bf0b0[_0x2907a7]=this['editor'][_0x5bd4('0xa1')][_0x5bd4('0x7b')][_0x5bd4('0x40')](_0x5d64c3),this[_0x5bd4('0x3e')]['data']['processor'][_0x5bd4('0x113')](_0x5bd4('0x64'));}return _0x5bf0b0;}async[_0x5bd4('0x9c')](_0x2639ea){await this[_0x5bd4('0x31')](_0x2639ea);const _0x11565d={};for(const _0x211796 in _0x2639ea[_0x5bd4('0x51')])_0x2639ea[_0x5bd4('0x51')][_0x211796][_0x5bd4('0xed')]&&!_0x2639ea[_0x5bd4('0x51')][_0x211796][_0x5bd4('0xed')][_0x5bd4('0xdd')]||(_0x11565d[_0x211796]=_0x2639ea[_0x5bd4('0x51')][_0x211796]['attributesAfter']||{});return _0x11565d;}['_removeRevisionMarkers'](_0x1c134d){return(_0x1c134d=_0x1c134d['filter'](_0x112231=>!_0x112231[_0x5bd4('0x12')]||'revision-start'!==_0x112231['name']&&_0x5bd4('0x23')!==_0x112231[_0x5bd4('0x12')]))[_0x5bd4('0x110')](_0x19125b=>{_0x5bd4('0x9f')!=typeof _0x19125b&&(_0x19125b[_0x5bd4('0x9e')]=this[_0x5bd4('0xa3')](_0x19125b[_0x5bd4('0x9e')]),_0x19125b[_0x5bd4('0x65')]=_0x19125b[_0x5bd4('0x65')]['filter'](_0x1f4591=>!_0x1f4591[0x0][_0x5bd4('0xbd')](_0x5bd4('0x10f'))));}),_0x1c134d;}async[_0x5bd4('0x10a')](_0x15d358,_0x107f3b,_0x50e2c7=!0x1){if(!this['isEnabled'])return;const _0x4504d4=this[_0x5bd4('0x30')],_0x9a3503=this[_0x5bd4('0xad')],_0x8ea9dc=_0x5bd4('0x9f')==typeof _0x15d358?_0x9a3503[_0x5bd4('0x62')](_0x15d358):_0x15d358,_0x35a2d5=_0x5bd4('0x9f')==typeof _0x107f3b?_0x9a3503[_0x5bd4('0x62')](_0x107f3b):_0x107f3b,_0x624657=_0x8ea9dc['id'],_0x17a65b=_0x35a2d5?_0x35a2d5['id']:null;if(!_0x50e2c7&&this[_0x5bd4('0x30')]&&this[_0x5bd4('0x30')]['newRevisionId']===_0x624657&&this[_0x5bd4('0x30')][_0x5bd4('0x4c')]===_0x17a65b)return Promise[_0x5bd4('0x41')]();this[_0x5bd4('0xe6')]=!0x1,this[_0x5bd4('0xd1')]=null,this['activeChange']=null,this[_0x5bd4('0x30')]=new _0x2420f6(_0x624657,_0x17a65b);const _0x15695a=this['_getRevisionsRange'](_0x8ea9dc,_0x35a2d5,!0x0)[_0x5bd4('0x99')](_0x59ae0b=>this[_0x5bd4('0x31')](_0x59ae0b));return _0x15695a[_0x5bd4('0x98')](new Promise(_0x36a516=>{setTimeout(_0x36a516,0x14);})),Promise[_0x5bd4('0xc3')](_0x15695a)[_0x5bd4('0x107')](()=>{if(!this[_0x5bd4('0x13')])return;this[_0x5bd4('0xba')]();const _0x4c746d=this[_0x5bd4('0x90')](_0x624657,_0x17a65b);for(const _0x2a1bf4 of _0x4c746d[_0x5bd4('0x119')])this[_0x5bd4('0x68')][_0x5bd4('0x82')](_0x2a1bf4['id'],_0x2a1bf4);this['editor'][_0x5bd4('0x24')][_0x5bd4('0x101')]({'isUndoable':!0x1},_0x14b92e=>{for(const _0x44bf39 of this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')][_0x5bd4('0xff')]())_0x14b92e[_0x5bd4('0x79')](_0x44bf39);for(const _0x560fe0 of Object['keys'](_0x4c746d['model'])){const _0x254a8b=_0x14b92e[_0x5bd4('0xcb')](_0x560fe0);for(const _0x1908c2 of Object[_0x5bd4('0x122')](_0x4c746d[_0x5bd4('0x65')][_0x560fe0]))_0x14b92e['setAttribute'](_0x1908c2,_0x4c746d[_0x5bd4('0x65')][_0x560fe0][_0x1908c2],_0x254a8b);_0x14b92e[_0x5bd4('0x121')](_0x4c746d[_0x5bd4('0x24')][_0x560fe0],_0x254a8b,0x0);}}),this['diff'][_0x5bd4('0xcc')](this['_sortAndFilterDiffChanges'](_0x4c746d[_0x5bd4('0x119')])),this[_0x5bd4('0xe6')]=!0x0;})['catch'](_0x4c2d9c=>{console['error'](_0x4c2d9c),this[_0x5bd4('0xba')](),_0x4504d4&&(this[_0x5bd4('0x30')]=_0x4504d4),this[_0x5bd4('0xe6')]=!0x0;});}[_0x5bd4('0x60')](_0x266253,_0x184bea){const _0x1df2a9=this[_0x5bd4('0xad')][_0x5bd4('0x2d')](_0x266253);return _0x1df2a9['on']('_update',(_0x5c873a,_0x28d1d1,_0x3ba17c)=>_0x184bea(_0x28d1d1,_0x3ba17c,_0x1df2a9)),this[_0x5bd4('0xad')][_0x5bd4('0x8c')](_0x1df2a9),_0x1df2a9;}[_0x5bd4('0x31')](_0x24e1be){if(!_0x24e1be||_0x24e1be['diffData'])return Promise[_0x5bd4('0x41')]();{const _0x4abc38=this[_0x5bd4('0x3e')][_0x5bd4('0x18')]['get'](_0x5bd4('0xc7'));return this['adapter'][_0x5bd4('0x62')]({'channelId':_0x4abc38,'revisionId':_0x24e1be['id']})[_0x5bd4('0x107')](_0x21d506=>{_0x24e1be[_0x5bd4('0xc0')]({'diffData':_0x21d506[_0x5bd4('0x51')]},!0x0);});}}[_0x5bd4('0xba')](){this[_0x5bd4('0x10d')]=null,this[_0x5bd4('0x2e')](),this[_0x5bd4('0x33')]&&this[_0x5bd4('0x33')][_0x5bd4('0x6b')](),this['_changeView']=null,this[_0x5bd4('0x68')][_0x5bd4('0x6c')](),this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x101')]({'isUndoable':!0x1},_0x249cac=>{for(const _0xe130d6 of this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')][_0x5bd4('0xff')]())_0x249cac[_0x5bd4('0x79')](_0xe130d6);});}[_0x5bd4('0xb3')](_0x5d5eb4){const _0x15d7e0=[],_0x1286d8=new Map();for(const _0x3a564b of this['editor'][_0x5bd4('0x24')]['document'][_0x5bd4('0xff')]()){const _0x1276da=this[_0x5bd4('0x3e')]['editing'][_0x5bd4('0xa2')][_0x5bd4('0x57')](_0x3a564b);if(!_0x1276da)continue;const _0xe66a2d=_0x1276da[_0x5bd4('0xc2')]()[_0x5bd4('0x108')](0x0);_0xe66a2d&&(_0x15d7e0[_0x5bd4('0x98')](_0x3a564b),_0x1286d8['set'](_0x3a564b,_0xe66a2d));}return _0x15d7e0[_0x5bd4('0x86')]((_0x173dfd,_0x4ebd66)=>{const _0x3e3f04=_0x1286d8[_0x5bd4('0x49')](_0x173dfd),_0x5bc57c=_0x1286d8['get'](_0x4ebd66);return _0x3e3f04['y']-_0x5bc57c['y']||_0x3e3f04['x']-_0x5bc57c['x'];}),(_0x5d5eb4=_0x5d5eb4[_0x5bd4('0x88')](_0x53deda=>_0x15d7e0['includes'](_0x53deda[_0x5bd4('0xfe')])))[_0x5bd4('0x86')]((_0x6afe2,_0x1d7ed2)=>_0x15d7e0[_0x5bd4('0x22')](_0x6afe2[_0x5bd4('0xfe')])-_0x15d7e0[_0x5bd4('0x22')](_0x1d7ed2['rootName'])),_0x5d5eb4;}[_0x5bd4('0xc5')](_0x187252){const _0x37e79f=Array['from'](_0x187252[_0x5bd4('0x91')])[_0x5bd4('0x88')](([_0x4e8a6e,_0x5cfdee])=>_0x4e8a6e[_0x5bd4('0xbd')]('revision:')&&!_0x5cfdee[_0x5bd4('0x4')]),_0x52bf8a=Array[_0x5bd4('0xf9')](this[_0x5bd4('0x3e')]['model'][_0x5bd4('0xf6')](_0x187252)[_0x5bd4('0xf5')]({'singleCharacters':!0x0}));if(0x0!=_0x37e79f[_0x5bd4('0xce')])for(const _0x524da4 of _0x52bf8a){const [_0x446dba,_0x5e1cad]=_0x37e79f[0x0],[,_0x3e02ea,_0x110c36]=_0x446dba[_0x5bd4('0x28')](':');if(_0x5e1cad['end'][_0x5bd4('0xdb')](_0x524da4[_0x5bd4('0x10')])&&_0x37e79f[_0x5bd4('0x1a')](),(_0x524da4[_0x5bd4('0xc6')][_0x5bd4('0xdb')](_0x5e1cad[_0x5bd4('0xa0')])||_0x524da4[_0x5bd4('0xc6')][_0x5bd4('0x78')](_0x5e1cad[_0x5bd4('0xa0')]))&&(_0x5bd4('0x34')==_0x3e02ea?_0x524da4[_0x5bd4('0x43')]={'userId':_0x110c36}:_0x5bd4('0x27')==_0x3e02ea&&(_0x524da4[_0x5bd4('0x63')]={'userId':_0x110c36})),0x0==_0x37e79f[_0x5bd4('0xce')])break;}return _0x52bf8a;}[_0x5bd4('0x10c')](_0x38c5ef){const _0x383367=new Map();for(let _0x2837e4=0x0;_0x2837e4<_0x38c5ef[_0x5bd4('0xce')];_0x2837e4++)'text'===_0x38c5ef[_0x2837e4][_0x5bd4('0x83')]?(_0x38c5ef[_0x2837e4][_0x5bd4('0x108')]['startIndex']=_0x2837e4,_0x38c5ef[_0x2837e4][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x2837e4):(_0x5bd4('0x73')===_0x38c5ef[_0x2837e4][_0x5bd4('0x83')]?_0x38c5ef[_0x2837e4][_0x5bd4('0x108')][_0x5bd4('0x7')]=_0x2837e4:'elementEnd'===_0x38c5ef[_0x2837e4][_0x5bd4('0x83')]&&(_0x38c5ef[_0x2837e4][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x2837e4),_0x383367[_0x5bd4('0x82')](_0x38c5ef[_0x2837e4]['id'],_0x2837e4));for(const _0x389142 of _0x383367['values']())'elementStart'===_0x38c5ef[_0x389142][_0x5bd4('0x83')]?_0x38c5ef[_0x389142][_0x5bd4('0x108')]['endIndex']=_0x383367['get'](_0x38c5ef[_0x389142][_0x5bd4('0x56')]):_0x5bd4('0x80')===_0x38c5ef[_0x389142][_0x5bd4('0x83')]&&(_0x38c5ef[_0x389142][_0x5bd4('0x108')]['startIndex']=_0x383367[_0x5bd4('0x49')](_0x38c5ef[_0x389142][_0x5bd4('0x56')]));}[_0x5bd4('0x7f')](_0x1c4466){for(let _0x38ad59=0x0;_0x38ad59<_0x1c4466[_0x5bd4('0xce')];_0x38ad59++){if(_0x5bd4('0x73')===_0x1c4466[_0x38ad59][_0x5bd4('0x83')])_0x1c4466[_0x38ad59][_0x5bd4('0x108')]['startIndex']=_0x38ad59;else{if(_0x5bd4('0x80')===_0x1c4466[_0x38ad59]['type']){_0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x38ad59;const _0x516df6=_0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x7')];_0x1c4466[_0x516df6]['pairId']=_0x1c4466[_0x38ad59]['id'],_0x1c4466[_0x38ad59]['pairId']=_0x1c4466[_0x516df6]['id'];}else _0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x7')]=_0x38ad59,_0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x38ad59,_0x1c4466[_0x38ad59][_0x5bd4('0x56')]=null;}_0x1c4466[_0x38ad59]['markersStart']||(_0x1c4466[_0x38ad59]['markersStart']=[],_0x1c4466[_0x38ad59][_0x5bd4('0x103')]=[]);}}[_0x5bd4('0x25')](_0x39ba60,_0x4292df){const _0xbac7f=_0x39ba60['filter'](_0x592ac7=>!_0x592ac7['isAdded']);for(let _0x1212c0=0x0;_0x1212c0<_0x4292df['length'];_0x1212c0++)_0x4292df[_0x1212c0]['isAdded']&&(_0xbac7f[_0x1212c0]['isAdded']=_0x4292df[_0x1212c0][_0x5bd4('0x43')]);}[_0x5bd4('0x10b')](_0x3e84cb){const _0xe83b76=JSON[_0x5bd4('0x9a')](_0x3e84cb),_0x1bb454=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0xf2')],_0x5589fd=new _0x1dfeab(_0x1bb454,_0xe83b76[_0x5bd4('0x99')](_0x3fcb45=>this['_getViewObj'](_0x3fcb45)));return this['editor'][_0x5bd4('0xa1')][_0x5bd4('0x105')](_0x5589fd);}[_0x5bd4('0x93')](_0x4161c9){const _0x43ee74=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0xf2')];if(_0x5bd4('0x9f')==typeof _0x4161c9)return new _0x1058e8(_0x43ee74,_0x4161c9);{const _0x1d0c12=_0x4161c9[_0x5bd4('0x9e')][_0x5bd4('0x99')](_0x3e74ef=>this['_getViewObj'](_0x3e74ef));return new(X[_0x4161c9[(_0x5bd4('0x83'))]]||_0x3c40ed)(_0x43ee74,_0x4161c9['name'],_0x4161c9[_0x5bd4('0x65')],_0x1d0c12);}}[_0x5bd4('0x90')](_0x49cff2,_0x19c867=null){const _0x3792ae=this['repository'][_0x5bd4('0x62')](_0x49cff2),_0x1b0122=_0x19c867?this['repository'][_0x5bd4('0x62')](_0x19c867):null,_0x1221d9=this['_getRevisionsRange'](_0x3792ae,_0x1b0122),_0x154e87=_0x1221d9[_0x1221d9['length']-0x1],_0x5de70f=new Map(),_0x2a26b2={'model':{},'attributes':{},'changes':[]},_0x35ce17=new Set(),_0x7b33d6=new Map();for(let _0x3d70ca=_0x1221d9['length']-0x1;_0x3d70ca>=0x0;_0x3d70ca--){const _0x4d200f=_0x1221d9[_0x3d70ca];for(const _0x5d2f4d of Object['keys'](_0x4d200f[_0x5bd4('0x51')]))if(_0x4d200f['diffData'][_0x5d2f4d][_0x5bd4('0xed')]){const _0x20094d=_0x4d200f[_0x5bd4('0x51')][_0x5d2f4d][_0x5bd4('0xed')];_0x20094d[_0x5bd4('0xdd')]?(_0x35ce17[_0x5bd4('0x128')](_0x5d2f4d),_0x7b33d6[_0x5bd4('0x11')](_0x5d2f4d)&&_0x7b33d6[_0x5bd4('0x49')](_0x5d2f4d)['userId']==_0x20094d['userId']?_0x7b33d6[_0x5bd4('0xe3')](_0x5d2f4d):_0x7b33d6[_0x5bd4('0x82')](_0x5d2f4d,_0x20094d)):_0x7b33d6[_0x5bd4('0x11')](_0x5d2f4d)?(_0x35ce17['delete'](_0x5d2f4d),_0x7b33d6[_0x5bd4('0xe3')](_0x5d2f4d)):(_0x35ce17['add'](_0x5d2f4d),_0x7b33d6[_0x5bd4('0x82')](_0x5d2f4d,_0x20094d));}else _0x35ce17[_0x5bd4('0x128')](_0x5d2f4d);}for(const _0x3898a2 of _0x35ce17){const _0x267570=_0x7b33d6[_0x5bd4('0x11')](_0x3898a2)&&!_0x7b33d6[_0x5bd4('0x49')](_0x3898a2)[_0x5bd4('0xdd')];let _0x377036=_0x267570?_0x1221d9['length']-0x1:0x0;const _0x313b9e=_0x267570?-0x1:0x1;for(;_0x1221d9[_0x377036];){const _0x1fb1ca=_0x1221d9[_0x377036];if(_0x1fb1ca[_0x5bd4('0x51')][_0x3898a2]){const _0x388fed=_0x267570?_0x1fb1ca['diffData'][_0x3898a2]['attributesBefore']:_0x1fb1ca[_0x5bd4('0x51')][_0x3898a2][_0x5bd4('0x19')];_0x2a26b2[_0x5bd4('0x65')][_0x3898a2]=_0x388fed?_0x5297ec(_0x388fed):{};break;}_0x377036+=_0x313b9e;}}for(const _0x283798 of _0x1221d9){_0x283798[_0x5bd4('0x24')]={};for(const _0x121b81 of _0x283798[_0x5bd4('0x48')])_0x5de70f['set'](_0x121b81['id'],_0x121b81);for(const _0x3acc66 of _0x35ce17){const _0x47176b=_0x283798[_0x5bd4('0x51')][_0x3acc66]?_0x283798[_0x5bd4('0x51')][_0x3acc66][_0x5bd4('0xa4')]:'[]',_0xba5e52=_0x283798[_0x5bd4('0x51')][_0x3acc66]?_0x283798[_0x5bd4('0x51')][_0x3acc66][_0x5bd4('0x5e')]:'[]';_0x283798[_0x5bd4('0x24')][_0x3acc66]={'insertions':this['_makeModelFromViewString'](_0x47176b),'deletions':this[_0x5bd4('0x10b')](_0xba5e52)};}}for(const _0x226d0c of _0x35ce17){let _0x151083=null,_0x177450=0x0;const _0x59e058=new Map(Array[_0x5bd4('0xf9')](_0x3792ae['model'][_0x226d0c][_0x5bd4('0xa4')]['markers'])['filter'](([_0x580d99])=>!_0x580d99['startsWith'](_0x5bd4('0x17'))));let _0x4757c2=0x0;for(const _0xc8dad of _0x1221d9){const _0x1269bd=this[_0x5bd4('0xc5')](_0xc8dad[_0x5bd4('0x24')][_0x226d0c]['insertions']);_0xc8dad==_0x3792ae?(_0x151083=_0x1269bd,_0x177450=_0x151083[_0x5bd4('0xce')],_0x151083[_0x5bd4('0x110')](_0x4d8036=>{_0x4d8036['id']=_0x4757c2++;}),this[_0x5bd4('0x7f')](_0x151083)):this[_0x5bd4('0x25')](_0x151083,_0x1269bd);const _0x2fba80=_0x151083['filter'](_0x38403d=>!_0x38403d[_0x5bd4('0x43')])[_0x5bd4('0x99')](_0x5dbd74=>_0x5dbd74['id']);let _0x11475d=0x0;const _0x733221=this[_0x5bd4('0xc5')](_0xc8dad[_0x5bd4('0x24')][_0x226d0c]['deletions']);_0x733221['forEach'](_0x5b257d=>{_0x5b257d[_0x5bd4('0x63')]?_0x5b257d['id']=_0x177450++:_0x5b257d['id']=_0x2fba80[_0x11475d++];}),this['_processTape'](_0x733221),this[_0x5bd4('0xac')](_0x151083,_0x5bd4('0x43')),this['_setDistance'](_0x733221,_0x5bd4('0x63')),_0xc8dad==_0x3792ae&&this[_0x5bd4('0x1c')](_0x151083,_0x59e058),_0x151083=this[_0x5bd4('0xdc')](_0x151083,_0x733221),this[_0x5bd4('0x10c')](_0x151083),this[_0x5bd4('0xac')](_0x151083,_0x5bd4('0x63'));}_0x151083=_0x151083['filter'](_0x9c07dd=>!(_0x9c07dd[_0x5bd4('0x43')]&&_0x9c07dd[_0x5bd4('0x63')]));const _0x147b48=new Map(_0x154e87[_0x5bd4('0x24')][_0x226d0c]['deletions'][_0x5bd4('0x91')]),_0x2bfab1=new Set(_0x59e058['keys']());for(const _0x4be80d of _0x147b48[_0x5bd4('0x122')]())_0x2bfab1['delete'](_0x4be80d);this['_markSuggestions'](_0x151083,_0x2bfab1),this[_0x5bd4('0xec')](_0x151083),_0x151083=this[_0x5bd4('0x100')](_0x151083),_0x151083=this[_0x5bd4('0x1d')](_0x151083),_0x151083=this[_0x5bd4('0xd8')](_0x151083);const {root:_0x25a146,changes:_0x43ead1}=this['_makeModelFromTape'](_0x151083,_0x5de70f,_0x226d0c);_0x2a26b2[_0x5bd4('0x24')][_0x226d0c]=_0x25a146;const _0x4532e0=_0x7b33d6[_0x5bd4('0x49')](_0x226d0c);if(_0x4532e0){const _0x5812a8=_0x5de70f['get'](_0x4532e0[_0x5bd4('0x120')]),_0x542999=new _0x33f7bf({'author':_0x5812a8,'type':_0x4532e0[_0x5bd4('0xdd')]?_0x5bd4('0x128'):_0x5bd4('0x87'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x226d0c});_0x43ead1[_0x5bd4('0xb2')](_0x542999),_0x2a26b2['attributes'][_0x226d0c]['revisionHistoryAttachChange']=_0x542999['id'];}_0x2a26b2['changes']=_0x2a26b2[_0x5bd4('0x119')]['concat'](_0x43ead1);}return _0x2a26b2;}[_0x5bd4('0x1c')](_0x3ceb03,_0x359a70){for(let _0x3b1ae8=0x0;_0x3b1ae8<_0x3ceb03[_0x5bd4('0xce')];_0x3b1ae8++)for(const [_0x3504c4,_0x32f959]of _0x359a70)_0x32f959[_0x5bd4('0xa0')][_0x5bd4('0xdb')](_0x3ceb03[_0x3b1ae8][_0x5bd4('0xc6')])&&_0x3ceb03[_0x3b1ae8][_0x5bd4('0x125')][_0x5bd4('0x98')](_0x3504c4),_0x32f959[_0x5bd4('0xd0')][_0x5bd4('0xdb')](_0x3ceb03[_0x3b1ae8]['nextPosition'])&&_0x3ceb03[_0x3b1ae8][_0x5bd4('0x103')][_0x5bd4('0x98')](_0x3504c4);}[_0x5bd4('0xdc')](_0x24a51c,_0x4d7051){let _0x554d71=[],_0xa5228c=0x0,_0x546fde=0x0;for(;_0xa5228c<_0x24a51c['length']||_0x546fde<_0x4d7051[_0x5bd4('0xce')];){const _0x4bbcdd=_0x24a51c[_0xa5228c]||{},_0x53b9ba=_0x4d7051[_0x546fde]||{};if(_0x4bbcdd['id']==_0x53b9ba['id'])_0xa5228c++,_0x546fde++,_0x554d71[_0x5bd4('0x98')](_0x4bbcdd);else{if(_0x53b9ba[_0x5bd4('0x63')]&&_0x4bbcdd['isAdded']){const {commonTape:_0x281c40,iEnd:_0x31237d,jEnd:_0x1ec7f5}=this['_threeWayMerge'](_0x24a51c,_0xa5228c,_0x4d7051,_0x546fde);_0x554d71=_0x554d71[_0x5bd4('0x16')](_0x281c40),_0xa5228c=_0x31237d,_0x546fde=_0x1ec7f5;}else _0x53b9ba['isRemoved']?(_0x546fde++,_0x554d71[_0x5bd4('0x98')](_0x53b9ba)):(_0xa5228c++,_0x554d71['push'](_0x4bbcdd));}}return _0x554d71;}[_0x5bd4('0xfa')](_0x4bf04e,_0x5a70af){const _0x41fed7=[];for(let _0x44915a=0x0;_0x44915a<_0x4bf04e['length'];_0x44915a++){for(let _0x40d7fe=0x0;_0x40d7fe<_0x4bf04e[_0x44915a][_0x5bd4('0x125')]['length'];_0x40d7fe++){const _0x55b888=_0x4bf04e[_0x44915a][_0x5bd4('0x125')][_0x40d7fe];if(!_0x5a70af[_0x5bd4('0x11')](_0x55b888))continue;const {group:_0x3f34f9,type:_0x482496,authorId:_0x5b9dc7}=_0x1be51d(_0x55b888);_0x5bd4('0x4f')!=_0x3f34f9||_0x5bd4('0x34')!=_0x482496&&_0x5bd4('0x27')!=_0x482496||(_0x41fed7[_0x5bd4('0xb2')]({'type':_0x482496,'name':_0x55b888,'userId':_0x5b9dc7}),_0x4bf04e[_0x44915a]['markersStart'][_0x5bd4('0xd7')](_0x40d7fe,0x1),_0x40d7fe--);}_0x590cd0(_0x4bf04e[_0x44915a]);for(let _0x242394=0x0;_0x242394<_0x4bf04e[_0x44915a][_0x5bd4('0x103')][_0x5bd4('0xce')];_0x242394++){const _0x6f24c1=_0x4bf04e[_0x44915a][_0x5bd4('0x103')][_0x242394];if(!_0x5a70af['has'](_0x6f24c1))continue;const {group:_0x3271b8,type:_0x405c62}=_0x1be51d(_0x6f24c1);if(_0x5bd4('0x4f')!=_0x3271b8||'insertion'!=_0x405c62&&'deletion'!=_0x405c62)continue;_0x4bf04e[_0x44915a][_0x5bd4('0x103')][_0x5bd4('0xd7')](_0x242394,0x1),_0x242394--;const _0x5aaf17=_0x41fed7[_0x5bd4('0x12a')](_0x2ac96e=>_0x2ac96e['name']==_0x6f24c1);_0x5aaf17>-0x1&&_0x41fed7[_0x5bd4('0xd7')](_0x5aaf17,0x1);}}function _0x1be51d(_0x550971){const _0x372d0f=_0x550971['split'](':');return{'group':_0x372d0f[0x0],'type':_0x372d0f[0x1],'subType':_0x372d0f[_0x5bd4('0xce')]>=0x5?_0x372d0f[0x2]:null,'id':_0x372d0f['length']<0x5?_0x372d0f[0x2]:_0x372d0f[0x3],'authorId':_0x372d0f[_0x5bd4('0xce')]<0x5?_0x372d0f[0x3]:_0x372d0f[0x4],'markerCount':0x6==_0x372d0f['length']?_0x372d0f[0x5]:null};}function _0x590cd0(_0x3a587f){for(let _0x1cb1c3=0x0;_0x1cb1c3<_0x41fed7[_0x5bd4('0xce')];_0x1cb1c3++){if(_0x3a587f[_0x5bd4('0x43')]&&_0x5bd4('0x34')==_0x41fed7[_0x1cb1c3]['type'])return _0x3a587f[_0x5bd4('0x96')]=_0x41fed7[_0x1cb1c3],void delete _0x3a587f[_0x5bd4('0x43')];if(!_0x3a587f[_0x5bd4('0x43')]&&!_0x3a587f[_0x5bd4('0x63')]&&_0x5bd4('0x27')==_0x41fed7[_0x1cb1c3][_0x5bd4('0x83')])return void(_0x3a587f[_0x5bd4('0xd6')]=_0x41fed7[_0x1cb1c3]);}}}[_0x5bd4('0xac')](_0x15d236,_0x4e8c6b){let _0x4cdd95=0x0,_0x39d95d=!0x1;const _0x78d29c=new Map();for(const _0x50857e of _0x15d236)_0x50857e[_0x4e8c6b]?_0x39d95d&&(_0x4cdd95++,_0x39d95d=!0x1):(_0x4cdd95++,_0x39d95d=!0x0),_0x78d29c[_0x5bd4('0x82')](_0x50857e['id'],_0x4cdd95);for(let _0x2efac5=0x0;_0x2efac5<_0x15d236[_0x5bd4('0xce')];_0x2efac5++){if('isRemoved'==_0x4e8c6b&&_0x15d236[_0x2efac5]['isAdded']||'isAdded'==_0x4e8c6b&&_0x15d236[_0x2efac5][_0x5bd4('0x63')])continue;if(_0x5bd4('0x127')==_0x15d236[_0x2efac5][_0x5bd4('0x83')]){_0x15d236[_0x2efac5][_0x5bd4('0xbe')]=0x0;continue;}const _0x26e9db=_0x78d29c[_0x5bd4('0x49')](_0x15d236[_0x2efac5][_0x5bd4('0x56')]),_0x296df1=_0x78d29c[_0x5bd4('0x49')](_0x15d236[_0x2efac5]['id']);_0x15d236[_0x2efac5][_0x5bd4('0xbe')]=_0x26e9db-_0x296df1;}}[_0x5bd4('0xe7')](_0x1df8d9,_0x40af28,_0x45623e=!0x1){const _0x2a049e=[];let _0x477270=this[_0x5bd4('0xad')]['getIndex'](_0x1df8d9),_0x115fe3=this['repository']['getIndex'](_0x40af28);for(-0x1==_0x115fe3&&(_0x115fe3=this['repository']['_revisions'][_0x5bd4('0xce')],_0x45623e=!0x1);_0x477270<_0x115fe3;)_0x2a049e[_0x5bd4('0x98')](this[_0x5bd4('0xad')][_0x5bd4('0x62')](_0x477270)),_0x477270++;return _0x45623e&&_0x2a049e[_0x5bd4('0x98')](this[_0x5bd4('0xad')]['getRevision'](_0x477270)),_0x2a049e;}[_0x5bd4('0x53')](_0x17a20c,_0x11848f,_0x5674b5,_0x5914e9){const _0x226a4c=this['editor'][_0x5bd4('0x24')]['schema'];let _0x3a5788=_0x11848f;for(;_0x17a20c[_0x3a5788]&&_0x17a20c[_0x3a5788][_0x5bd4('0x43')];)_0x3a5788++;let _0x3d1c9a=_0x5914e9;for(;_0x5674b5[_0x3d1c9a]&&_0x5674b5[_0x3d1c9a][_0x5bd4('0x63')];)_0x3d1c9a++;_0x5a9ff3(_0x17a20c,_0x11848f,_0x3a5788),_0x5a9ff3(_0x5674b5,_0x5914e9,_0x3d1c9a);const _0x28e652=_0x5674b5['slice'](_0x5914e9,_0x3d1c9a)[_0x5bd4('0x16')](_0x17a20c['slice'](_0x11848f,_0x3a5788));return _0x28e652[_0x5bd4('0x86')]((_0x138123,_0x144713)=>_0x138123[_0x5bd4('0x71')]!=_0x144713['side']?_0x138123[_0x5bd4('0x71')]-_0x144713[_0x5bd4('0x71')]:_0x138123['level']!=_0x144713[_0x5bd4('0x66')]?_0x138123[_0x5bd4('0x66')]-_0x144713['level']:_0x138123[_0x5bd4('0xbe')]!=_0x144713['distance']?_0x144713[_0x5bd4('0xbe')]-_0x138123['distance']:!!_0x138123['isAdded']!=!!_0x144713['isAdded']?-0x1==_0x138123['side']||0x0==_0x138123[_0x5bd4('0x71')]?_0x138123['isAdded']?-0x1:0x1:_0x138123[_0x5bd4('0x43')]?0x1:-0x1:_0x138123['index']-_0x144713[_0x5bd4('0x3b')]),{'commonTape':_0x28e652,'iEnd':_0x3a5788,'jEnd':_0x3d1c9a};function _0x5a9ff3(_0x593594,_0x41f6c1,_0x3d7a5f){let _0x1a72d3=-0x1,_0x385f59=Number[_0x5bd4('0x20')],_0xd554b=!0x0;for(let _0x230912=_0x41f6c1;_0x230912<_0x3d7a5f;_0x230912++)if(_0x226a4c[_0x5bd4('0xb8')](_0x593594[_0x230912][_0x5bd4('0x108')])||(_0xd554b=!0x1),_0x593594[_0x230912][_0x5bd4('0x108')]['startIndex']<_0x41f6c1&&(_0x1a72d3=_0x230912),_0x593594[_0x230912][_0x5bd4('0x108')][_0x5bd4('0x32')]>=_0x3d7a5f){_0x385f59=_0x230912;break;}_0xd554b&&(_0x1a72d3=_0x3d7a5f-0x1);for(let _0x1b46b4=_0x41f6c1;_0x1b46b4<_0x3d7a5f;_0x1b46b4++)_0x593594[_0x1b46b4][_0x5bd4('0x71')]=_0x1b46b4<=_0x1a72d3?-0x1:_0x1b46b4<_0x385f59?0x0:0x1,_0x593594[_0x1b46b4][_0x5bd4('0x3b')]=_0x1b46b4;let _0x10a3fe=0x0;for(let _0x4cc043=_0x41f6c1;_0x4cc043<=_0x1a72d3;_0x4cc043++)0x0==_0x593594[_0x4cc043]['distance']?_0x593594[_0x4cc043][_0x5bd4('0x66')]=_0x10a3fe:(_0x10a3fe++,_0x593594[_0x4cc043][_0x5bd4('0x66')]=_0x10a3fe,_0x10a3fe++);for(let _0x2337b9=_0x41f6c1;_0x2337b9<_0x3d7a5f;_0x2337b9++)0x0==_0x593594[_0x2337b9]['side']&&(_0x593594[_0x2337b9][_0x5bd4('0x66')]=_0x10a3fe);_0x10a3fe=0x0;for(let _0x208854=_0x3d7a5f-0x1;_0x208854>=_0x385f59;_0x208854--)0x0==_0x593594[_0x208854][_0x5bd4('0xbe')]?_0x593594[_0x208854][_0x5bd4('0x66')]=_0x10a3fe:(_0x10a3fe--,_0x593594[_0x208854][_0x5bd4('0x66')]=_0x10a3fe,_0x10a3fe--);}}[_0x5bd4('0xec')](_0x30f237){const _0x2f2864=new Map(),_0x4ef6cf=this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x102')];for(let _0x7f2d57=0x1;_0x7f2d57<_0x30f237[_0x5bd4('0xce')];_0x7f2d57++){let _0x2ca706,_0x156c96,_0x11e129;const _0x1728c4=_0x30f237[_0x7f2d57],_0x2ce784=_0x30f237[_0x7f2d57-0x1];if(_0x5bd4('0x127')==_0x1728c4['type'])continue;if(_0x1728c4[_0x5bd4('0x83')]!=_0x2ce784['type'])continue;if(!_0x4ef6cf[_0x5bd4('0xda')](_0x2ce784[_0x5bd4('0x108')])||_0x4ef6cf[_0x5bd4('0x8f')](_0x2ce784[_0x5bd4('0x108')]))continue;if(!_0x4ef6cf[_0x5bd4('0xda')](_0x1728c4['item'])||_0x4ef6cf['isLimit'](_0x1728c4[_0x5bd4('0x108')]))continue;if((_0x30f237[_0x7f2d57][_0x5bd4('0x43')]||_0x30f237[_0x7f2d57][_0x5bd4('0x96')])&&_0x30f237[_0x7f2d57-0x1]['isRemoved'])_0x2ca706=_0x30f237[_0x7f2d57],_0x156c96=_0x30f237[_0x7f2d57-0x1],_0x11e129=_0x7f2d57-0x1;else{if(!_0x30f237[_0x7f2d57]['isRemoved']||!_0x30f237[_0x7f2d57-0x1][_0x5bd4('0x43')]&&!_0x30f237[_0x7f2d57-0x1][_0x5bd4('0x96')])continue;_0x2ca706=_0x30f237[_0x7f2d57-0x1],_0x156c96=_0x30f237[_0x7f2d57],_0x11e129=_0x7f2d57;}const _0x9e5d48=_0x2ca706[_0x5bd4('0x66')]==_0x156c96[_0x5bd4('0x66')],_0x439644=Math[_0x5bd4('0xf4')](_0x2ca706[_0x5bd4('0x66')])<Math[_0x5bd4('0xf4')](_0x156c96[_0x5bd4('0x66')])&&0x0==_0x156c96[_0x5bd4('0xbe')];(_0x9e5d48||_0x439644)&&(_0x2f2864[_0x5bd4('0x82')](_0x156c96['id'],_0x2ca706['id']),_0x30f237[_0x5bd4('0xd7')](_0x11e129,0x1),_0x7f2d57--,_0x2ca706['isAdded']=!0x1);}for(let _0x145358=0x0;_0x145358<_0x30f237[_0x5bd4('0xce')];_0x145358++)_0x2f2864[_0x5bd4('0x11')](_0x30f237[_0x145358][_0x5bd4('0x56')])&&(_0x30f237[_0x145358]['pairId']=_0x2f2864[_0x5bd4('0x49')](_0x30f237[_0x145358][_0x5bd4('0x56')]));}[_0x5bd4('0x100')](_0x175fae){const _0x19851c=new Set(_0x175fae['map'](_0x4ffa59=>_0x4ffa59['id']));for(let _0x1f212e=0x0;_0x1f212e<_0x175fae['length'];_0x1f212e++)_0x19851c[_0x5bd4('0x11')](_0x175fae[_0x1f212e][_0x5bd4('0x56')])||0x0==_0x175fae[_0x1f212e]['distance']||(_0x175fae[_0x1f212e][_0x5bd4('0xe9')]=!0x0);return _0x175fae[_0x5bd4('0x88')](_0x4a13d1=>!_0x4a13d1[_0x5bd4('0xe9')]);}[_0x5bd4('0x1d')](_0x25c421){const _0x244b18=new Set();for(let _0x471a0a=0x0;_0x471a0a<_0x25c421[_0x5bd4('0xce')];_0x471a0a++){if(_0x244b18[_0x5bd4('0x11')](_0x25c421[_0x471a0a]['id'])&&_0x25c421[_0x471a0a][_0x5bd4('0x63')]&&(_0x25c421[_0x471a0a]['isIncorrect']=!0x0),_0x25c421[_0x471a0a][_0x5bd4('0xe9')])continue;if(0x0==_0x25c421[_0x471a0a][_0x5bd4('0xbe')])continue;if(_0x5bd4('0x73')!=_0x25c421[_0x471a0a][_0x5bd4('0x83')])continue;if(null==_0x25c421[_0x471a0a]['pairId'])continue;let _0x14881c=_0x471a0a+0x1,_0x27cf4b=0x0;for(;_0x25c421[_0x14881c]['id']!=_0x25c421[_0x471a0a][_0x5bd4('0x56')];)_0x5bd4('0x73')==_0x25c421[_0x14881c][_0x5bd4('0x83')]?_0x27cf4b++:_0x5bd4('0x80')==_0x25c421[_0x14881c]['type']&&_0x27cf4b--,_0x14881c++;if(0x0!=_0x27cf4b){if(_0x25c421[_0x471a0a][_0x5bd4('0x63')])_0x25c421[_0x471a0a][_0x5bd4('0xe9')]=!0x0;else for(;_0x14881c!=_0x471a0a;)_0x25c421[_0x14881c][_0x5bd4('0x63')]&&0x0!=_0x25c421[_0x14881c][_0x5bd4('0xbe')]&&(_0x25c421[_0x14881c][_0x5bd4('0xe9')]=!0x0,_0x244b18[_0x5bd4('0x128')](_0x25c421[_0x14881c]['pairId'])),_0x14881c--;}}return _0x25c421[_0x5bd4('0x88')](_0x30493f=>!_0x30493f[_0x5bd4('0xe9')]);}[_0x5bd4('0xd8')](_0x7aa192){const _0xcef480=this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x102')];for(let _0x1313ff=0x0;_0x1313ff<_0x7aa192[_0x5bd4('0xce')];_0x1313ff++){if(!(_0x7aa192[_0x1313ff]['isAdded']||_0x7aa192[_0x1313ff][_0x5bd4('0x96')]||_0x7aa192[_0x1313ff]['isRemoved']||_0x7aa192[_0x1313ff][_0x5bd4('0xd6')]))continue;if(0x0==_0x7aa192[_0x1313ff]['distance'])continue;const _0x4c664a=_0x7aa192[_0x1313ff]['item'];_0xcef480[_0x5bd4('0xda')](_0x4c664a)||_0xcef480[_0x5bd4('0x8f')](_0x4c664a)||(_0x7aa192[_0x1313ff][_0x5bd4('0x43')]&&delete _0x7aa192[_0x1313ff]['isAdded'],_0x7aa192[_0x1313ff]['isAddSuggestion']&&delete _0x7aa192[_0x1313ff]['isAddSuggestion'],_0x7aa192[_0x1313ff][_0x5bd4('0xd6')]&&delete _0x7aa192[_0x1313ff][_0x5bd4('0xd6')],_0x7aa192[_0x1313ff][_0x5bd4('0x63')]&&(_0x7aa192[_0x1313ff][_0x5bd4('0xe9')]=!0x0));}return _0x7aa192[_0x5bd4('0x88')](_0x37c455=>!_0x37c455[_0x5bd4('0xe9')]);}[_0x5bd4('0xf1')](_0x3469e6,_0x198032,_0x4d01c9){const _0x208115=new _0x2d0625(),_0x4e1090=[],_0x5143fe=new Map(),_0x39dcc5=this[_0x5bd4('0x3e')][_0x5bd4('0x24')],_0x553c5d=_0x39dcc5[_0x5bd4('0x102')],_0x39d326=[_0x208115],_0x5e121b={},_0x1213e4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x369cfc=null;const _0x269a71=[0x0];for(let _0x169ca1=0x0;_0x169ca1<_0x3469e6[_0x5bd4('0xce')];_0x169ca1++){let _0x239211,_0x4b0bea;if(_0x5bd4('0x73')===_0x3469e6[_0x169ca1]['type']){_0x239211=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71);const _0x12d058=new _0x30ac3d(_0x3469e6[_0x169ca1][_0x5bd4('0x108')][_0x5bd4('0x12')],_0x3469e6[_0x169ca1][_0x5bd4('0x108')][_0x5bd4('0xa')]());_0x39d326[0x0]['_appendChild'](_0x12d058),_0x269a71[_0x5bd4('0x98')](0x0),_0x39d326['unshift'](_0x12d058),_0x4b0bea=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x369cfc=null;}else{if(_0x5bd4('0x80')===_0x3469e6[_0x169ca1][_0x5bd4('0x83')])_0x39d326[_0x5bd4('0x1a')](),_0x239211=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x269a71[_0x5bd4('0xf')](),_0x269a71[_0x269a71[_0x5bd4('0xce')]-0x1]++,_0x4b0bea=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x369cfc=null;else{if(_0x239211=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x369cfc&&_0x5dc079(_0x369cfc,_0x3469e6[_0x169ca1][_0x5bd4('0x108')]))_0x369cfc[_0x5bd4('0x7a')]+=_0x3469e6[_0x169ca1]['item'][_0x5bd4('0xa1')];else{const _0x5a026e=new _0x51642b(_0x3469e6[_0x169ca1]['item'][_0x5bd4('0xa1')],_0x3469e6[_0x169ca1][_0x5bd4('0x108')][_0x5bd4('0xa')]());_0x39d326[0x0][_0x5bd4('0x72')](_0x5a026e),_0x369cfc=_0x5a026e;}_0x269a71[_0x269a71[_0x5bd4('0xce')]-0x1]+=_0x3469e6[_0x169ca1]['item'][_0x5bd4('0x6a')],_0x4b0bea=_0x39dcc5['createPositionFromPath'](_0x208115,_0x269a71);}}for(const _0x1f2a6d of _0x3469e6[_0x169ca1][_0x5bd4('0x125')])_0x5143fe[_0x5bd4('0x82')](_0x1f2a6d,{'start':_0x239211,'end':null});_0x461fd3('isRemoveSuggestion',_0x169ca1,_0x239211,_0x4b0bea),_0x461fd3(_0x5bd4('0x96'),_0x169ca1,_0x239211,_0x4b0bea),_0x461fd3('isRemoved',_0x169ca1,_0x239211,_0x4b0bea),_0x461fd3(_0x5bd4('0x43'),_0x169ca1,_0x239211,_0x4b0bea);for(const _0xab1c81 of _0x3469e6[_0x169ca1][_0x5bd4('0x103')]){_0x5143fe['get'](_0xab1c81)[_0x5bd4('0xd0')]=_0x4b0bea;}}for(const [_0x104ae1,_0x3e7d95]of _0x5143fe){const _0x16e215=this[_0x5bd4('0x3e')]['model']['createRange'](_0x3e7d95['start'],_0x3e7d95['end']);_0x208115[_0x5bd4('0x91')][_0x5bd4('0x82')](_0x104ae1,_0x16e215);}return _0x4e1090[_0x5bd4('0x86')]((_0xaee37b,_0x331c2d)=>{const _0x4afdc4=_0x208115[_0x5bd4('0x91')][_0x5bd4('0x49')](_0x5bd4('0x17')+_0xaee37b['id']),_0x395f71=_0x208115[_0x5bd4('0x91')][_0x5bd4('0x49')](_0x5bd4('0x17')+_0x331c2d['id']);return _0x4afdc4['start'][_0x5bd4('0xb5')](_0x395f71[_0x5bd4('0xa0')])?-0x1:_0x4afdc4[_0x5bd4('0xa0')][_0x5bd4('0x78')](_0x395f71[_0x5bd4('0xa0')])?0x1:_0x4afdc4[_0x5bd4('0xd0')]['isBefore'](_0x395f71[_0x5bd4('0xd0')])?-0x1:_0x4afdc4[_0x5bd4('0xd0')][_0x5bd4('0x78')](_0x395f71['end'])?0x1:'add'===_0xaee37b[_0x5bd4('0x83')]?-0x1:0x1;}),{'root':_0x208115,'changes':_0x4e1090};function _0x461fd3(_0x4a6f7b,_0x40bab8,_0x46f856,_0x22a64e){const _0x50a5f1=!!_0x3469e6[_0x40bab8][_0x4a6f7b],_0x264732=_0x50a5f1?_0x3469e6[_0x40bab8][_0x4a6f7b][_0x5bd4('0x120')]:null,_0xdb950a=_0x40bab8===_0x3469e6[_0x5bd4('0xce')]-0x1,_0xc81ce=_0x1213e4[_0x4a6f7b][0x0],_0x258805=_0x553c5d[_0x5bd4('0x47')](_0x3469e6[_0x40bab8]['item']);!_0x5e121b[_0x4a6f7b]&&_0x50a5f1?_0x5e121b[_0x4a6f7b]={'start':_0x46f856,'tapeItem':_0x3469e6[_0x40bab8],'userId':_0x264732,'type':_0x4a6f7b}:_0x5e121b[_0x4a6f7b]&&!_0x50a5f1?(_0x5e121b[_0x4a6f7b][_0x5bd4('0xd0')]=_0x46f856,_0x12e945(_0x5e121b[_0x4a6f7b]),_0x5e121b[_0x4a6f7b]=null):_0x5e121b[_0x4a6f7b]&&_0x50a5f1&&_0x5e121b[_0x4a6f7b][_0x5bd4('0x120')]!==_0x264732&&(_0x5e121b[_0x4a6f7b][_0x5bd4('0xd0')]=_0x46f856,_0xc81ce&&_0xc81ce[_0x5bd4('0x120')]===_0x5e121b[_0x4a6f7b][_0x5bd4('0x120')]||_0x12e945(_0x5e121b[_0x4a6f7b]),_0x5e121b[_0x4a6f7b]={'start':_0x46f856,'tapeItem':_0x3469e6[_0x40bab8],'userId':_0x264732,'type':_0x4a6f7b}),_0x5e121b[_0x4a6f7b]&&_0x258805&&('elementStart'!==_0x3469e6[_0x40bab8]['type']||_0xc81ce&&_0xc81ce[_0x5bd4('0x120')]===_0x264732||_0x1213e4[_0x4a6f7b][_0x5bd4('0xb2')]({'userId':_0x264732,'object':_0x3469e6[_0x40bab8][_0x5bd4('0x108')],'change':_0x5e121b[_0x4a6f7b]}),'elementEnd'===_0x3469e6[_0x40bab8]['type']&&_0xc81ce&&_0xc81ce['object']===_0x3469e6[_0x40bab8][_0x5bd4('0x108')]&&(_0x1213e4[_0x4a6f7b][_0x5bd4('0x1a')](),_0x5e121b[_0x4a6f7b]=_0xc81ce[_0x5bd4('0x44')])),_0x5e121b[_0x4a6f7b]&&_0xdb950a&&(_0x5e121b[_0x4a6f7b][_0x5bd4('0xd0')]=_0x22a64e,_0x12e945(_0x5e121b[_0x4a6f7b]),_0x5e121b[_0x4a6f7b]=null);}function _0x12e945({start:_0x6ff1d6,end:_0x4d9eab,tapeItem:_0x52d901,userId:_0x344a50,type:_0x5c4542}){const _0x4077b5=_0x52d901[_0x5bd4('0x108')],_0x755997=_0x39dcc5[_0x5bd4('0x102')][_0x5bd4('0xda')](_0x4077b5)&&!_0x39dcc5[_0x5bd4('0x102')][_0x5bd4('0x8f')](_0x4077b5),_0x935769=_0x6ff1d6[_0x5bd4('0x54')]==_0x4d9eab[_0x5bd4('0x3d')]&&_0x4d9eab[_0x5bd4('0xc')];if(_0x755997&&_0x935769)return;const _0x480d0d=_0x39dcc5[_0x5bd4('0x89')](_0x6ff1d6,_0x4d9eab),_0x2d6a77=_0x198032[_0x5bd4('0x49')](_0x344a50),_0x2a3d68=new _0x33f7bf({'author':_0x2d6a77,'type':'isAdded'==_0x5c4542||_0x5bd4('0x96')==_0x5c4542?_0x5bd4('0x128'):_0x5bd4('0x87'),'data':{'isSuggestion':_0x5bd4('0x96')==_0x5c4542||_0x5bd4('0xd6')==_0x5c4542},'createdAt':new Date(),'rootName':_0x4d01c9});_0x4e1090[_0x5bd4('0x98')](_0x2a3d68),_0x208115['markers'][_0x5bd4('0x82')](_0x5bd4('0x17')+_0x2a3d68['id'],_0x480d0d);}function _0x5dc079(_0x563cf3,_0x503466){const _0x5ab6e1=_0x563cf3[_0x5bd4('0xa')](),_0x3080ad=_0x503466['getAttributes']();for(const _0x980835 of _0x5ab6e1){if(_0x980835[0x1]!==_0x503466[_0x5bd4('0x59')](_0x980835[0x0]))return!0x1;_0x3080ad['next']();}return _0x3080ad['next']()[_0x5bd4('0xfc')];}}[_0x5bd4('0xbc')](){this['editor'][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x5d'))[_0x5bd4('0x2a')]({'view':'revision'}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x81'))[_0x5bd4('0x11f')]({'model':_0x5bd4('0x129'),'view':_0x59331a=>{const _0x28b50b=_0x59331a[_0x5bd4('0xca')][_0x5bd4('0x28')](':')[0x1],_0x5c4364=this[_0x5bd4('0x4a')](_0x28b50b);if(!_0x5c4364)return null;const _0x3d8793=_0x5bd4('0x128')==_0x5c4364[_0x5bd4('0x83')]?_0x5bd4('0x34'):_0x5bd4('0x27'),_0x1c6b2e=[_0x5bd4('0xd4'),'ck-suggestion-marker-'+_0x3d8793];return _0x5c4364[_0x5bd4('0xa1')]['isSuggestion']&&_0x1c6b2e[_0x5bd4('0x98')](_0x5bd4('0x116')+_0x3d8793+'-new'),this[_0x5bd4('0x10d')]==_0x5c4364&&_0x1c6b2e[_0x5bd4('0x98')]('ck-suggestion-marker--active'),{'classes':_0x1c6b2e,'attributes':{'data-change-id':_0x28b50b}};}}),this['editor'][_0x5bd4('0x97')][_0x5bd4('0x6d')]('upcast')[_0x5bd4('0x128')](_0x33e79a=>{_0x33e79a['on']('element:pre',(_0x2379e4,_0x58ba8f,_0x22ae89)=>{const _0xe18870=_0x58ba8f['viewItem']['getChild'](0x0);if(!_0xe18870||!_0xe18870['is'](_0x5bd4('0x50'),_0x5bd4('0xde')))return;if(!_0x22ae89[_0x5bd4('0xd')][_0x5bd4('0xe1')](_0xe18870,{'attributes':[_0x5bd4('0x7e'),_0x5bd4('0x8b')]}))return;const _0x6f0c19=_0x58ba8f[_0x5bd4('0x1b')][_0x5bd4('0xa0')][_0x5bd4('0x54')];_0x22ae89[_0x5bd4('0xa8')][_0x5bd4('0xb7')](_0x5bd4('0x7e'),_0xe18870[_0x5bd4('0x59')](_0x5bd4('0x7e')),_0x6f0c19),_0x22ae89[_0x5bd4('0xa8')][_0x5bd4('0xb7')]('vid_end',_0xe18870[_0x5bd4('0x59')]('vid_end'),_0x6f0c19);},{'priority':_0x5bd4('0x118')});}),this['editor']['conversion'][_0x5bd4('0x6d')](_0x5bd4('0x5d'))[_0x5bd4('0x128')](_0x4458e0=>{_0x4458e0['on'](_0x5bd4('0x50'),(_0x4924fd,_0x45197f,_0x3819af)=>{if(!_0x3819af[_0x5bd4('0xd')][_0x5bd4('0xe1')](_0x45197f['viewItem'],{'attributes':[_0x5bd4('0x7e'),'vid_end']}))return;if(_0x45197f['modelRange']['isCollapsed'])return;const _0x50c99e=_0x45197f[_0x5bd4('0x1b')][_0x5bd4('0xa0')][_0x5bd4('0x54')];_0x50c99e[_0x5bd4('0x46')]('vid_start')||_0x50c99e[_0x5bd4('0x46')]('vid')||(_0x3819af[_0x5bd4('0xa8')][_0x5bd4('0xb7')](_0x5bd4('0x7e'),_0x45197f[_0x5bd4('0xef')][_0x5bd4('0x59')](_0x5bd4('0x7e')),_0x50c99e),_0x3819af[_0x5bd4('0xa8')]['setAttribute'](_0x5bd4('0x8b'),_0x45197f['viewItem'][_0x5bd4('0x59')](_0x5bd4('0x8b')),_0x50c99e));},{'priority':_0x5bd4('0x118')});}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')]('upcast')[_0x5bd4('0x106')]({'view':{'name':_0x5bd4('0xe'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4e533b=>_0x4e533b['getAttribute'](_0x5bd4('0xc9'))}}),this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x102')]['on'](_0x5bd4('0x94'),(_0x5a2dc9,[,_0x271d55])=>{[_0x5bd4('0x7e'),_0x5bd4('0x8b'),_0x5bd4('0xc9')][_0x5bd4('0xa6')](_0x271d55)&&(_0x5a2dc9[_0x5bd4('0x11a')]=!0x0,_0x5a2dc9[_0x5bd4('0x37')]());},{'priority':_0x5bd4('0x123')}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x2f'))[_0x5bd4('0x128')](_0x1ab17f=>{_0x1ab17f['on'](_0x5bd4('0x117'),(_0x2d6c2b,_0x143e26,_0x51fa6d)=>{if('\x20'!=_0x143e26['item'][_0x5bd4('0xa1')]||_0x143e26[_0x5bd4('0x108')][_0x5bd4('0x3d')][_0x5bd4('0x11d')]>0x1)return;if(!_0x51fa6d[_0x5bd4('0xd')][_0x5bd4('0xe1')](_0x143e26['item'],_0x2d6c2b[_0x5bd4('0x12')]))return;const _0x18b92c=_0x51fa6d[_0x5bd4('0xa8')],_0x4f06fd=_0x51fa6d[_0x5bd4('0xdf')][_0x5bd4('0x5c')](_0x143e26[_0x5bd4('0x3')]);_0x18b92c[_0x5bd4('0x8a')](_0x4f06fd,_0x18b92c[_0x5bd4('0x1e')](_0x5bd4('0xe')));});}),this['editor'][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x2f'))[_0x5bd4('0x5b')]({'model':'revision'}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0x77')]['on'](_0x5bd4('0x6f'),function(_0x111319){const _0x332631=_0x111319[_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5bd4('0x104'));return(_0x53f9b0,_0x2f9a4a,_0x397d47)=>{const _0x4b4091=_0x2f9a4a['markerName'][_0x5bd4('0x28')](':')[0x1],_0x46e11b=_0x332631[_0x5bd4('0x4a')](_0x4b4091);if(!_0x46e11b)return null;const _0x54945c=_0x5bd4('0x128')==_0x46e11b[_0x5bd4('0x83')]?'split':_0x5bd4('0xe2');if(!_0x397d47[_0x5bd4('0xd')][_0x5bd4('0x126')](_0x2f9a4a[_0x5bd4('0x2')],_0x53f9b0['name']))return;const _0x2980d1=_0x2f9a4a[_0x5bd4('0x2')][_0x5bd4('0xf5')](),_0x105b02=_0x2f9a4a[_0x5bd4('0x2')][_0x5bd4('0xa0')],_0x337c78=_0x111319[_0x5bd4('0x24')][_0x5bd4('0x102')];let _0x430d15=null,_0x3b45c2=null,_0x1b23e1=!0x1,_0x4ed680=!0x1;for(const _0x5bacae of _0x2980d1){const _0x14b70b=_0x5bacae[_0x5bd4('0x108')];_0x1b23e1=_0x1b23e1||_0x337c78[_0x5bd4('0x114')](_0x14b70b);const _0x30c816=_0x397d47[_0x5bd4('0xdf')][_0x5bd4('0x3a')](_0x14b70b);if(_0x30c816&&_0x30c816[_0x5bd4('0x5f')](_0x5bd4('0x29')))return;'elementEnd'==_0x5bacae['type']&&(_0x337c78[_0x5bd4('0xda')](_0x14b70b)&&!_0x337c78['isLimit'](_0x14b70b)&&(_0x14b70b[_0x5bd4('0xd3')]||_0x105b02[_0x5bd4('0x1f')]?_0x430d15&&_0x430d15['parent']==_0x14b70b||(_0x430d15=_0x14b70b,_0x55f995(_0x5bacae[_0x5bd4('0xc6')]),_0x4ed680=!0x0):_0x3b45c2=_0x3b45c2||_0x5bacae[_0x5bd4('0xc6')]));}function _0x55f995(_0x3ffbd1){const _0x49293d=_0x397d47['writer'][_0x5bd4('0xf0')](_0x5bd4('0xe'),{'class':_0x5bd4('0x116')+_0x54945c}),_0x8640e0=_0x397d47['mapper'][_0x5bd4('0x15')](_0x3ffbd1);_0x46e11b['data'][_0x5bd4('0x11e')]&&_0x397d47['writer'][_0x5bd4('0x85')]('ck-suggestion-marker-'+_0x54945c+_0x5bd4('0x2c'),_0x49293d),_0x332631[_0x5bd4('0x10d')]==_0x46e11b&&_0x397d47[_0x5bd4('0xa8')][_0x5bd4('0x85')](_0x5bd4('0x111'),_0x49293d),_0x397d47[_0x5bd4('0xa8')][_0x5bd4('0x121')](_0x8640e0,_0x49293d),_0x397d47[_0x5bd4('0xdf')][_0x5bd4('0xfb')](_0x49293d,_0x2f9a4a[_0x5bd4('0xca')]);}_0x1b23e1||_0x4ed680||!_0x3b45c2||_0x55f995(_0x3b45c2);};}(this['editor']),{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on'](_0x5bd4('0xcd'),(_0x3b35cf,_0x42e78d,_0xec81d4)=>{const _0x3bf531=_0xec81d4['mapper'][_0x5bd4('0xb9')](_0x42e78d[_0x5bd4('0xca')]);if(_0x3bf531)for(const _0x453dff of _0x3bf531)(_0x453dff[_0x5bd4('0xf7')](_0x5bd4('0x92'))||_0x453dff[_0x5bd4('0xf7')](_0x5bd4('0x5')))&&(_0xec81d4[_0x5bd4('0xdf')][_0x5bd4('0x35')](_0x453dff,_0x42e78d[_0x5bd4('0xca')]),_0xec81d4['writer'][_0x5bd4('0x87')](_0x453dff));},{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on']('addMarker:revision',(_0x40426f,_0x244873,_0x403b5c)=>{const _0x18dc51=_0x244873[_0x5bd4('0xca')][_0x5bd4('0x28')](':')[0x1],_0x217fe0=this['_getChangeFromId'](_0x18dc51);if(!_0x217fe0)return null;const _0x374177=_0x5bd4('0x128')==_0x217fe0[_0x5bd4('0x83')]?'split':_0x5bd4('0xe2');if(_0x403b5c['consumable'][_0x5bd4('0x126')](_0x244873[_0x5bd4('0x2')],_0x40426f[_0x5bd4('0x12')]))for(const _0x2b36d4 of _0x244873[_0x5bd4('0x2')][_0x5bd4('0x124')]()){if(!_0x2b36d4['is'](_0x5bd4('0x50'),_0x5bd4('0xb0')))continue;const _0x13fdc3=_0x403b5c[_0x5bd4('0xa8')]['createUIElement'](_0x5bd4('0xe'),{'class':_0x5bd4('0x116')+_0x374177}),_0xdf4b0=_0x403b5c['mapper'][_0x5bd4('0x15')](this['editor']['model'][_0x5bd4('0x3f')](_0x2b36d4));_0x217fe0[_0x5bd4('0xa1')]['isSuggestion']&&_0x403b5c['writer'][_0x5bd4('0x85')](_0x5bd4('0x116')+_0x374177+_0x5bd4('0x2c'),_0x13fdc3),this['activeChange']==_0x217fe0&&_0x403b5c['writer'][_0x5bd4('0x85')](_0x5bd4('0x111'),_0x13fdc3),_0x403b5c[_0x5bd4('0xa8')][_0x5bd4('0x121')](_0xdf4b0,_0x13fdc3),_0x403b5c[_0x5bd4('0xdf')]['bindElementToMarker'](_0x13fdc3,_0x244873[_0x5bd4('0xca')]);}},{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')]['on'](_0x5bd4('0x44'),()=>{this['editor'][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0x44')](_0x3a71e8=>{for(const _0x13a031 of this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')]['getRootNames']()){const _0x685d98=this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')][_0x5bd4('0xfd')](_0x13a031),_0x498b30=this['editor'][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0xf2')][_0x5bd4('0xfd')](_0x13a031);if(_0x498b30){const _0x53de4c=_0x685d98[_0x5bd4('0x59')](_0x5bd4('0x4e'));if(_0x3a71e8[_0x5bd4('0x67')]('data-change-id',_0x498b30),_0x3a71e8[_0x5bd4('0x109')]('ck-revision-history-root-add',_0x498b30),_0x3a71e8[_0x5bd4('0x109')]('ck-revision-history-root-remove',_0x498b30),_0x3a71e8[_0x5bd4('0x109')]('ck-revision-history-root--active',_0x498b30),_0x53de4c){const _0xd64ae2=this['_getChangeFromId'](_0x53de4c);if(!_0xd64ae2)return null;_0x3a71e8[_0x5bd4('0xb7')]('data-change-id',_0x53de4c,_0x498b30),_0x3a71e8[_0x5bd4('0x85')](_0x5bd4('0xc1')+_0xd64ae2[_0x5bd4('0x83')],_0x498b30),this['activeChange']==_0xd64ae2&&_0x3a71e8[_0x5bd4('0x85')]('ck-revision-history-root--active',_0x498b30);}}}});}),this['editor'][_0x5bd4('0x97')]['for'](_0x5bd4('0x5d'))[_0x5bd4('0x2a')]({'view':_0x5bd4('0x61'),'model':_0x51d90d=>_0x5bd4('0xeb')+_0x51d90d,'converterPriority':_0x5bd4('0x123')}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')]('upcast')['dataToMarker']({'view':_0x5bd4('0xb4'),'model':_0x496b18=>'revision-suggestion:'+_0x496b18,'converterPriority':'highest'}),this[_0x5bd4('0x3e')]['conversion'][_0x5bd4('0x6d')](_0x5bd4('0x2f'))[_0x5bd4('0x5b')]({'model':_0x5bd4('0x4f'),'view':_0x2e0c19=>({'name':_0x5bd4('0x10e')+_0x2e0c19,'group':_0x5bd4('0x4f')}),'converterPriority':_0x5bd4('0x123')}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x81'))[_0x5bd4('0x11f')]({'model':_0x5bd4('0x4f'),'view':_0x19f877=>{const _0x28874c=_0x19f877[_0x5bd4('0xca')]['split'](':')[0x1];return _0x5bd4('0x34')!=_0x28874c&&'deletion'!=_0x28874c?null:{'classes':[_0x5bd4('0x4b'),_0x5bd4('0x42')+_0x28874c]};}}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0x77')]['on']('addMarker:revision-suggestion:deletion',Y(this['editor'],_0x5bd4('0xe2')),{'priority':'high'}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on'](_0x5bd4('0xf8'),Y(this[_0x5bd4('0x3e')],_0x5bd4('0x28')),{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1a9709,_0x5a1546,_0x34a025)=>{const _0x2b9b6f=_0x34a025[_0x5bd4('0xdf')][_0x5bd4('0xb9')](_0x5a1546[_0x5bd4('0xca')]);if(_0x2b9b6f)for(const _0x75c3e9 of _0x2b9b6f)_0x75c3e9['is']('uiElement')&&(_0x34a025[_0x5bd4('0xdf')][_0x5bd4('0x35')](_0x75c3e9,_0x5a1546[_0x5bd4('0xca')]),_0x34a025['writer'][_0x5bd4('0x87')](_0x75c3e9));},{'priority':_0x5bd4('0xa5')});}[_0x5bd4('0x4a')](_0x19565a){return this[_0x5bd4('0x68')][_0x5bd4('0x49')](_0x19565a);}[_0x5bd4('0x70')](_0x1ad841){return this[_0x5bd4('0x33')]&&this[_0x5bd4('0x33')]['destroy'](),this[_0x5bd4('0x33')]=new _0x5dc8aa(this['editor'][_0x5bd4('0xab')],_0x1ad841),this['_changeView'];}[_0x5bd4('0x84')](){this[_0x5bd4('0x3e')][_0x5bd4('0x24')]['document']['selection'][_0x5bd4('0x69')](_0x5bd4('0x129')),this['on']('change:activeView',(_0x4cccad,_0x14bc21,_0x16f66d,_0xd210f1)=>{_0xd210f1&&this['_balloon'][_0x5bd4('0x87')](_0xd210f1),_0x16f66d&&(this[_0x5bd4('0xcf')][_0x5bd4('0x128')]({'view':_0x16f66d,'stackId':_0x5bd4('0x115'),'position':{'target':()=>{const _0x3f05ca=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')],_0x398605=this[_0x5bd4('0x4a')](_0x16f66d[_0x5bd4('0x8e')]);let _0x38e49d;if(_0x398605[_0x5bd4('0xa1')][_0x5bd4('0x9d')]){const _0x1a94b8=_0x3f05ca['view'][_0x5bd4('0x57')](_0x398605[_0x5bd4('0xfe')]);_0x38e49d=Array[_0x5bd4('0xf9')](_0x1a94b8[_0x5bd4('0xc2')]());}else{const _0x221e33=this['editor'][_0x5bd4('0x24')][_0x5bd4('0x91')]['get']('revision:'+_0x16f66d[_0x5bd4('0x8e')]);_0x38e49d=Array[_0x5bd4('0xf9')](_0x3f05ca['mapper'][_0x5bd4('0xb9')](_0x221e33[_0x5bd4('0x12')]))['map'](_0x20366c=>_0x3f05ca[_0x5bd4('0xa2')][_0x5bd4('0x45')][_0x5bd4('0xb')](_0x20366c))['map'](_0x1b95d7=>Array[_0x5bd4('0xf9')](_0x1b95d7[_0x5bd4('0xc2')]()))[_0x5bd4('0xe4')]();}if(!this[_0x5bd4('0xb1')])return _0x38e49d[0x0];return _0x38e49d[_0x5bd4('0xa9')](_0x20ee2b=>_0x20ee2b[_0x5bd4('0xc8')]-0x3<=this['_activeViewTarget']['y']&&_0x20ee2b[_0x5bd4('0xee')]+0x3>=this['_activeViewTarget']['y']&&_0x20ee2b[_0x5bd4('0x76')]-0x3<=this['_activeViewTarget']['x']&&_0x20ee2b[_0x5bd4('0x8d')]+0x3>=this[_0x5bd4('0xb1')]['x'])||_0x38e49d[0x0];}}}),this[_0x5bd4('0xcf')][_0x5bd4('0x26')](_0x5bd4('0x115')));}),this['on'](_0x5bd4('0xe0'),(_0x26f54c,_0x4ec6ce,_0x83d37d,_0x459043)=>{this['activeView']=_0x83d37d?this['_getViewForChange'](_0x83d37d):null,this[_0x5bd4('0x3e')][_0x5bd4('0x24')]['change'](()=>{const _0x1b85b6=this[_0x5bd4('0x3e')]['editing'];_0x459043&&(_0x459043[_0x5bd4('0xa1')][_0x5bd4('0x9d')]?_0x1b85b6['view'][_0x5bd4('0x44')](_0x10b4ad=>{_0x10b4ad['removeClass'](_0x5bd4('0xae'),_0x1b85b6[_0x5bd4('0xa2')][_0x5bd4('0xf2')]['getRoot'](_0x459043[_0x5bd4('0xfe')]));}):_0x1b85b6[_0x5bd4('0x2b')]('revision:'+_0x459043['id'])),_0x83d37d&&(_0x83d37d[_0x5bd4('0xa1')]['isOnRoot']?_0x1b85b6[_0x5bd4('0xa2')][_0x5bd4('0x44')](_0xa6d15c=>{_0xa6d15c['addClass'](_0x5bd4('0xae'),_0x1b85b6[_0x5bd4('0xa2')]['document'][_0x5bd4('0xfd')](_0x83d37d[_0x5bd4('0xfe')]));}):_0x1b85b6['reconvertMarker'](_0x5bd4('0x17')+_0x83d37d['id']));});}),this[_0x5bd4('0xd2')](this['editor'][_0x5bd4('0xbf')]['view'][_0x5bd4('0xf2')],_0x5bd4('0x4d'),(_0x17e385,_0x2cfbee)=>{if(this[_0x5bd4('0x10d')])return;const _0x386df6=this[_0x5bd4('0x52')](_0x2cfbee[_0x5bd4('0x38')]),_0x144fb7=this[_0x5bd4('0x68')][_0x5bd4('0x49')](_0x386df6);_0x144fb7?(this[_0x5bd4('0xb1')]={'x':_0x2cfbee[_0x5bd4('0xd9')]['x'],'y':_0x2cfbee[_0x5bd4('0xd9')]['y']},this['activeView']=this[_0x5bd4('0x70')](_0x144fb7)):(this[_0x5bd4('0xb1')]=null,this['activeView']=null);}),this[_0x5bd4('0xd2')](this[_0x5bd4('0x3e')]['editing']['view'][_0x5bd4('0xf2')],_0x5bd4('0xaa'),(_0x146f0e,_0x2ec241)=>{const _0x2d7b56=this['_findChangeIdFromDomTarget'](_0x2ec241[_0x5bd4('0x38')]),_0x525e77=this['_changeIdToChange'][_0x5bd4('0x49')](_0x2d7b56);_0x525e77?(this[_0x5bd4('0xb1')]={'x':_0x2ec241[_0x5bd4('0xd9')]['x'],'y':_0x2ec241[_0x5bd4('0xd9')]['y']},_0x525e77===this[_0x5bd4('0x10d')]?this[_0x5bd4('0xcf')]['updatePosition']():this['activeChange']=_0x525e77):(this[_0x5bd4('0xb1')]=null,this['activeChange']=null);});}[_0x5bd4('0x52')](_0x930649){do{const _0x2a95d8=_0x930649['getAttribute']('data-change-id');if(_0x2a95d8)return _0x2a95d8;_0x930649=_0x930649[_0x5bd4('0x3d')];}while(_0x930649);return null;}[_0x5bd4('0x2e')](){this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x44')](_0x370ed0=>{for(const _0x2a527a of this[_0x5bd4('0x3e')][_0x5bd4('0x24')]['markers'])_0x370ed0[_0x5bd4('0xbb')](_0x2a527a);});}}function Y(_0x3b0dd8,_0x1eadd7){return(_0x29ccdb,_0x2bac4e,_0x12c045)=>{if(!_0x12c045[_0x5bd4('0xd')][_0x5bd4('0x126')](_0x2bac4e[_0x5bd4('0x2')],_0x29ccdb[_0x5bd4('0x12')]))return;const _0x5363ef=_0x2bac4e[_0x5bd4('0x2')]['getWalker'](),_0x554a1c=_0x2bac4e['markerRange']['start'],_0xccaddd=_0x3b0dd8[_0x5bd4('0x24')][_0x5bd4('0x102')];let _0x305bc7=null,_0x17cd84=null,_0x105c83=!0x1,_0xd33a59=!0x1;for(const _0x4b8b4d of _0x5363ef){const _0xa1a1f7=_0x4b8b4d['item'];_0x105c83=_0x105c83||_0xccaddd[_0x5bd4('0x114')](_0xa1a1f7);const _0x46087f=_0x12c045[_0x5bd4('0xdf')]['toViewElement'](_0xa1a1f7);if(_0x46087f&&_0x46087f[_0x5bd4('0x5f')](_0x5bd4('0x29')))return;_0x5bd4('0x80')==_0x4b8b4d['type']&&(_0xccaddd[_0x5bd4('0xda')](_0xa1a1f7)&&!_0xccaddd[_0x5bd4('0x8f')](_0xa1a1f7)&&(_0xa1a1f7['nextSibling']||_0x554a1c[_0x5bd4('0x1f')]?_0x305bc7&&_0x305bc7[_0x5bd4('0x3d')]==_0xa1a1f7||(_0x305bc7=_0xa1a1f7,_0x37ed60(_0x4b8b4d[_0x5bd4('0xc6')]),_0xd33a59=!0x0):_0x17cd84=_0x17cd84||_0x4b8b4d[_0x5bd4('0xc6')]));}function _0x37ed60(_0x29c6a3){const _0x286cae=_0x12c045[_0x5bd4('0xdf')]['toViewPosition'](_0x29c6a3),_0x3b0e0c=_0x12c045[_0x5bd4('0xa8')][_0x5bd4('0xf0')]('span',{'class':_0x5bd4('0x42')+_0x1eadd7});_0x12c045[_0x5bd4('0xa8')][_0x5bd4('0x121')](_0x286cae,_0x3b0e0c),_0x12c045[_0x5bd4('0xdf')]['bindElementToMarker'](_0x3b0e0c,_0x2bac4e[_0x5bd4('0xca')]);}_0x105c83||_0xd33a59||!_0x17cd84||_0x37ed60(_0x17cd84);};}export class RestoreRevisionCommand extends _0x5b4a33{constructor(_0x3a4e0d){super(_0x3a4e0d);const _0x34b6ed=_0x3a4e0d[_0x5bd4('0xf3')][_0x5bd4('0x49')](w);this[_0x5bd4('0xe8')]=!0x1,this[_0x5bd4('0xd2')](_0x34b6ed,_0x5bd4('0x0'),()=>this[_0x5bd4('0x36')]()),this[_0x5bd4('0xd2')](_0x34b6ed,_0x5bd4('0x7c'),()=>this[_0x5bd4('0x36')]());}[_0x5bd4('0x14')](){const _0x34753c=this[_0x5bd4('0x3e')],_0x5c864d=_0x34753c[_0x5bd4('0xf3')]['get'](w),_0x2574cc=_0x5c864d[_0x5bd4('0xe6')]?_0x5c864d[_0x5bd4('0x30')][_0x5bd4('0x95')]:null;_0x34753c[_0x5bd4('0x18')][_0x5bd4('0x49')](_0x5bd4('0x3c'))[_0x5bd4('0xc4')](_0x2574cc);}['refresh'](){const {isReady:_0x439411,isEnabled:_0x3f5b62}=this[_0x5bd4('0x3e')]['plugins']['get'](w);this['isEnabled']=_0x439411&&_0x3f5b62;}}export class ShowChangeCommand extends _0x5b4a33{constructor(_0x3f17a6,{direction:_0x47980f}){super(_0x3f17a6);const _0x239829=_0x3f17a6['plugins']['get'](w);this['affectsData']=!0x1,this[_0x5bd4('0x8')]=_0x5bd4('0x74')===_0x47980f?0x1:-0x1,this[_0x5bd4('0xd2')](_0x239829,'change:isReady',()=>this[_0x5bd4('0x36')]()),this[_0x5bd4('0xd2')](_0x239829,_0x5bd4('0x7c'),()=>this[_0x5bd4('0x36')]());}[_0x5bd4('0x14')](){const _0x18e456=this[_0x5bd4('0x3e')],_0x4dcd47=_0x18e456['plugins'][_0x5bd4('0x49')](w),{isNavigationMode:_0x4b1359,currentChangeNumber:_0x49771e}=_0x4dcd47;let _0xd1dc78;if(_0x4dcd47['activeChange']=_0x4b1359?_0x4dcd47[_0x5bd4('0x30')][_0x5bd4('0x119')][_0x5bd4('0x49')](_0x49771e+this['_step']):_0x4dcd47['diff'][_0x5bd4('0x119')]['first'],_0x4dcd47['activeChange'][_0x5bd4('0xa1')][_0x5bd4('0x9d')])_0xd1dc78=_0x18e456['editing']['view']['getDomRoot'](_0x4dcd47[_0x5bd4('0x10d')][_0x5bd4('0xfe')]);else{const _0x5caa0d=_0x18e456[_0x5bd4('0x24')][_0x5bd4('0x91')][_0x5bd4('0x49')](_0x5bd4('0x17')+_0x4dcd47[_0x5bd4('0x10d')]['id']);_0xd1dc78=_0x222649(_0x18e456[_0x5bd4('0xbf')],_0x5caa0d);}_0x5214f0({'target':_0xd1dc78,'viewportOffset':0x28});}[_0x5bd4('0x36')](){const {isNavigationMode:_0x553c1f,currentChangeNumber:_0x55c9a8,numberOfChanges:_0x169386,isReady:_0x4582ec,isEnabled:_0x1f8117}=this[_0x5bd4('0x3e')][_0x5bd4('0xf3')]['get'](w);this[_0x5bd4('0x13')]=!!(_0x1f8117&&_0x4582ec&&_0x169386)&&(!_0x553c1f||(0x1===this['_step']?_0x55c9a8<_0x169386-0x1:_0x55c9a8>0x0));}}
23
+ const _0x501b=['keys','isInline','collaboration.channelId','ck-revision-history-root-remove','includes','addRoot','isAfter','revision-suggestion:','_update','conversion','editor','_balloon','level','_markSuggestions','code','change:isReady','downcastDispatcher','_initInteractions','domEvent','low','deletions','consume','isAddSuggestion','filter','softBreak','editingDowncast','vid_start','isReady','splice','activeView','createAttributeElement','getRevisionRootsAttributes','change:activeView','side','_markInsertions','_removeMissingPairs','checkAttribute','getCustomProperty','forward','_cleanUp','pluginName','sort','offsetSize','_setConversion','removeMarker','getRoot','isAdded','viewItem','slice','restoreRevision','data','locale','diffData','_activeViewTarget','_getViewForChange','next','_refreshStartEndIndex','toData','ck-suggestion-marker-','_getRevisionsRange','object','compare','isBlock','currentChangeNumber','processor','hasAttribute','for','detachRoot','setAttribute','addRevision','split','enableReadOnlyMode','refresh','_makeModelFromViewString','get','find','_threeWayMerge','_step','change:numberOfChanges','endIndex','restoreRevisionCallback','revision-end','toViewElement','createRangeIn','removeMarker:revision','schema','_getChangeFromId','init','ck-revision-history-root-add','nextPosition','createUIElement','set','getAttribute','getRootNames','_setChanges','isContent','has','attributesAfter','view','reconvertMarker','length','attributes','item','type','resolve','mousedown','children','revision-start','right','_makeModelFromTape','ck-revision-history-root-','-new','revision-viewer','document','consumable','removeAttribute','isBefore','change:isEnabled','_sortAndFilterDiffChanges','isEqual','revisionHistoryAttachChange','editing','markersStart','string','attributesBefore','markerName','data-change-id','highest','startsWith','listenTo','forEach','nextSibling','data-revision-','authors','numberOfChanges','mapViewToDom','indexOf','getClientRects','diff','execute','adapter','bindElementToMarker','removeClass','commands','useFillerType','markerNameToElements','parent','left','isSuggestion','addHighlight','concat','element','ck-suggestion-marker--active','showStack','shift','enqueueChange','createRevision','markerToHighlight','getWalker','merge','getAttributes','changeId','deletion','unbindElementFromMarkerName','ck-editor__editable__overlay','_data','_removeUnsupportedChanges','updatePosition','attachChange','_findChangeIdFromDomTarget','mouseover','catch','markerToData','elementToAttribute','text','vid_end','loadRevisionData','_getViewObj','change:activeChange','bind','getChild','userId','RevisionsRepository','insert','activeChange','stop','_cleanMarkers','isOnRoot','showNextChange','all','getIndex','ck-revision-history-root--active','isAttached','_setDistance','_getDiff','createPositionBefore','ck-suggestion-preview-marker-','revision','_appendChild','dataDowncast','mapper','rootName','abs','map','_revisions','markersEnd','isIncorrect','isAtEnd','then','upcast','distance','_processTape','nodeAfter','suggestion:','getItems','index','bottom','forceDisabled','modelRange','error','change','_makeTape','add','affectsData','_changeIdToChange','revision-suggestion','revision:','startIndex','_changeView','isLimit','addClass','insertions','high','addMarker:revision-suggestion:insertion','createRange','revision-comment:','isRemoved','push','changes','span','WidgetToolbarRepository','getRevisionData','isAtStart','plugins','dataToMarker','top','vid','_joinTapes','isCollapsed','range','first','suggestion','clear','toViewPosition','createPositionFromPath','destroy','ck-suggestion-marker-merge','maxOffset','values','model','config','getDomRoot','target','_markMarkers','toViewRange','pairId','newRevisionId','from','hasClass','isEnabled','removeMarker:revision-suggestion','getRevision','name','isRemoveSuggestion','elementStart','unshift','insertion','marked','delete','parse','return','end','elementEnd','repository','_removeRevisionMarkers','writer','markers','previousPosition','test','revisionHistory','uiElement','POSITIVE_INFINITY','markerRange','start','_fixObsoleteTags','remove'];(function(_0x46d413,_0x501bcb){const _0x4130a2=function(_0x1c3de1){while(--_0x1c3de1){_0x46d413['push'](_0x46d413['shift']());}};_0x4130a2(++_0x501bcb);}(_0x501b,0x18d));const _0x4130=function(_0x46d413,_0x501bcb){_0x46d413=_0x46d413-0x0;let _0x4130a2=_0x501b[_0x46d413];return _0x4130a2;};import{Plugin as _0x35d362,Command as _0x4a6d65}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x100d62}from'ckeditor5/src/utils';import{ContextualBalloon as _0x14a0e8}from'ckeditor5/src/ui';import{DocumentFragment as _0x29c2df,Element as _0x3dabd7,Text as _0x276073,ViewDocumentFragment as _0x352772,ViewText as _0x2515da,ViewElement as _0xb6844d,ViewContainerElement as _0x55d8df,ViewAttributeElement as _0x33cc22,ViewEmptyElement as _0x18a00f,ViewRawElement as _0x37e5c0,ViewUIElement as _0x570807}from'ckeditor5/src/engine';import{Users as _0x35b135,getMarkerDomElement as _0x367e46}from'ckeditor5-collaboration/src/collaboration-core';import _0x51f391 from'./ui/revisionviewer/changedetailsview';import _0x4d0ed7 from'./revisionsrepository';import _0xfc1d9f from'./changeitem';import{default as _0x30d19f}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3e0774}from'lodash-es';const Y={'c':_0x55d8df,'a':_0x33cc22,'e':_0x18a00f,'r':_0x37e5c0,'u':_0x570807};export default class d extends _0x35d362{static get[_0x4130('0xeb')](){return'RevisionViewer';}static get['requires'](){return[_0x35b135,_0x14a0e8,_0x4d0ed7];}constructor(_0x1e48fd){super(_0x1e48fd),this[_0x4130('0xb6')]=this[_0x4130('0xcd')]['plugins'][_0x4130('0x10d')](_0x4130('0x51')),this[_0x4130('0x11e')]('activeChange',null),this[_0x4130('0x11e')]('activeView',null),this[_0x4130('0xf8')]=null,this[_0x4130('0x11e')]('diff',null),this[_0x4130('0x11e')](_0x4130('0xde'),!0x1),this[_0x4130('0x11e')](_0x4130('0xa8'),!0x0),this['on'](_0x4130('0x10'),(_0x4d7f0b,_0x1fb15c,_0x170c6c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3ee341=>{for(const _0x3930d8 of this['editor'][_0x4130('0x14')][_0x4130('0x125')]['document']['roots'])_0x170c6c?_0x3ee341[_0x4130('0x29')](_0x4130('0x3f'),_0x3930d8):_0x3ee341[_0x4130('0x81')](_0x4130('0x3f'),_0x3930d8);});}),this[_0x4130('0x4e')]('isNavigationMode')['to'](this,'activeChange',_0x183ec7=>null!==_0x183ec7),this[_0x4130('0x4e')](_0x4130('0x102'))['to'](this,_0x4130('0xde'),this,'diff',this,_0x4130('0x53'),(_0x21d556,_0x3f5d7d,_0x4fdbb6)=>_0x21d556&&_0x4fdbb6?_0x3f5d7d[_0x4130('0x89')][_0x4130('0x59')](_0x4fdbb6):0x0),this[_0x4130('0x4e')](_0x4130('0x21'))['to'](this,_0x4130('0xde'),this,_0x4130('0x25'),(_0x254dcd,_0x1b74a7)=>_0x254dcd?_0x1b74a7[_0x4130('0x89')]['length']:0x0),this['_changeView']=null,this[_0x4130('0x7b')]=new Map(),this[_0x4130('0x27')]=null,this[_0x4130('0xce')]=this['editor']['plugins'][_0x4130('0x10d')](_0x14a0e8);}[_0x4130('0x11a')](){const _0x53b971=this['editor'],_0x1e30b0=new ShowChangeCommand(_0x53b971,{'direction':'backward'}),_0x5212c2=new ShowChangeCommand(_0x53b971,{'direction':_0x4130('0xe9')});(_0x53b971[_0x4130('0x2a')]['add']('showPreviousChange',_0x1e30b0),_0x53b971['commands'][_0x4130('0x79')](_0x4130('0x57'),_0x5212c2),_0x53b971[_0x4130('0x2a')][_0x4130('0x79')](_0x4130('0xf4'),new RestoreRevisionCommand(_0x53b971)),this['on'](_0x4130('0x111'),()=>{_0x1e30b0[_0x4130('0x10b')](),_0x5212c2[_0x4130('0x10b')]();}),this[_0x4130('0xee')](),this[_0x4130('0xd4')](),_0x53b971[_0x4130('0x10a')](_0x4130('0xb')),_0x53b971[_0x4130('0x8e')][_0x4130('0x123')](_0x4130('0x8b')))&&_0x53b971[_0x4130('0x8e')][_0x4130('0x10d')]('WidgetToolbarRepository')[_0x4130('0x74')](_0x4130('0xb'));}async[_0x4130('0x8c')](_0x13b7ae){await this['loadRevisionData'](_0x13b7ae);const _0x408779={};for(const _0x5a42bc in _0x13b7ae['diffData']){if(_0x13b7ae[_0x4130('0xf7')][_0x5a42bc][_0x4130('0x43')]&&!_0x13b7ae[_0x4130('0xf7')][_0x5a42bc]['attachChange']['isAttached'])continue;const _0x4fb837=this[_0x4130('0xb7')](JSON[_0x4130('0xb2')](_0x13b7ae[_0x4130('0xf7')][_0x5a42bc][_0x4130('0x82')])),_0x2a465d=this[_0x4130('0xcd')][_0x4130('0x14')][_0x4130('0x125')][_0x4130('0xc')],_0x36dd43=new _0x352772(_0x2a465d,_0x4fb837[_0x4130('0x66')](_0x2f237d=>this[_0x4130('0x4c')](_0x2f237d)));this[_0x4130('0xcd')][_0x4130('0xf5')]['processor']['useFillerType'](_0x4130('0xb0')),_0x408779[_0x5a42bc]=this[_0x4130('0xcd')]['data'][_0x4130('0x103')][_0x4130('0xfc')](_0x36dd43),this['editor'][_0x4130('0xf5')][_0x4130('0x103')][_0x4130('0x2b')]('default');}return _0x408779;}async[_0x4130('0xe2')](_0x575c6b){await this['loadRevisionData'](_0x575c6b);const _0x51dc08={};for(const _0x538512 in _0x575c6b[_0x4130('0xf7')])_0x575c6b[_0x4130('0xf7')][_0x538512][_0x4130('0x43')]&&!_0x575c6b[_0x4130('0xf7')][_0x538512]['attachChange']['isAttached']||(_0x51dc08[_0x538512]=_0x575c6b[_0x4130('0xf7')][_0x538512][_0x4130('0x124')]||{});return _0x51dc08;}[_0x4130('0xb7')](_0x4ee5ca){return(_0x4ee5ca=_0x4ee5ca['filter'](_0x564dac=>!_0x564dac[_0x4130('0xab')]||_0x4130('0x6')!==_0x564dac[_0x4130('0xab')]&&_0x4130('0x114')!==_0x564dac[_0x4130('0xab')]))[_0x4130('0x1d')](_0x2144fa=>{'string'!=typeof _0x2144fa&&(_0x2144fa['children']=this[_0x4130('0xb7')](_0x2144fa[_0x4130('0x5')]),_0x2144fa[_0x4130('0x0')]=_0x2144fa[_0x4130('0x0')][_0x4130('0xda')](_0x12d00b=>!_0x12d00b[0x0][_0x4130('0x1b')](_0x4130('0x1f'))));}),_0x4ee5ca;}async[_0x4130('0x100')](_0x43f069,_0x81580,_0x22cb14=!0x1){if(!this[_0x4130('0xa8')])return;const _0x230841=this[_0x4130('0x25')],_0x478278=this[_0x4130('0xb6')],_0x118f15=_0x4130('0x16')==typeof _0x43f069?_0x478278[_0x4130('0xaa')](_0x43f069):_0x43f069,_0x2e094a=_0x4130('0x16')==typeof _0x81580?_0x478278[_0x4130('0xaa')](_0x81580):_0x81580,_0x3b3e6d=_0x118f15['id'],_0xd3b75=_0x2e094a?_0x2e094a['id']:null;if(!_0x22cb14&&this[_0x4130('0x25')]&&this[_0x4130('0x25')]['newRevisionId']===_0x3b3e6d&&this[_0x4130('0x25')]['oldRevisionId']===_0xd3b75)return Promise[_0x4130('0x3')]();this[_0x4130('0xde')]=!0x1,this[_0x4130('0xe0')]=null,this[_0x4130('0x53')]=null,this['diff']=new _0x30d19f(_0x3b3e6d,_0xd3b75);const _0x28cc32=this[_0x4130('0xfe')](_0x118f15,_0x2e094a,!0x0)[_0x4130('0x66')](_0x2bda71=>this[_0x4130('0x4b')](_0x2bda71));return _0x28cc32['push'](new Promise(_0xe600cd=>{setTimeout(_0xe600cd,0x14);})),Promise[_0x4130('0x58')](_0x28cc32)[_0x4130('0x6b')](()=>{if(!this['isEnabled'])return;this[_0x4130('0xea')]();const _0x13e949=this['_getDiff'](_0x3b3e6d,_0xd3b75);for(const _0x447353 of _0x13e949['changes'])this[_0x4130('0x7b')][_0x4130('0x11e')](_0x447353['id'],_0x447353);this[_0x4130('0xcd')][_0x4130('0x9e')][_0x4130('0x36')]({'isUndoable':!0x1},_0x23fe65=>{for(const _0x1ab687 of this[_0x4130('0xcd')][_0x4130('0x9e')][_0x4130('0xc')][_0x4130('0x120')]())_0x23fe65[_0x4130('0x106')](_0x1ab687);for(const _0x4d45ff of Object[_0x4130('0xc3')](_0x13e949[_0x4130('0x9e')])){const _0x56c9f0=_0x23fe65[_0x4130('0xc8')](_0x4d45ff);for(const _0x19deea of Object['keys'](_0x13e949['attributes'][_0x4d45ff]))_0x23fe65[_0x4130('0x107')](_0x19deea,_0x13e949[_0x4130('0x0')][_0x4d45ff][_0x19deea],_0x56c9f0);_0x23fe65[_0x4130('0x52')](_0x13e949[_0x4130('0x9e')][_0x4d45ff],_0x56c9f0,0x0);}}),this['diff'][_0x4130('0x121')](this['_sortAndFilterDiffChanges'](_0x13e949[_0x4130('0x89')])),this[_0x4130('0xde')]=!0x0;})[_0x4130('0x46')](_0x2f2037=>{console[_0x4130('0x76')](_0x2f2037),this[_0x4130('0xea')](),_0x230841&&(this[_0x4130('0x25')]=_0x230841),this[_0x4130('0xde')]=!0x0;});}['addRevisionData'](_0x548209,_0x509180){const _0xdd2213=this['repository'][_0x4130('0x37')](_0x548209);return _0xdd2213['on'](_0x4130('0xcb'),(_0x41ece3,_0x1115a1,_0x47a810)=>_0x509180(_0x1115a1,_0x47a810,_0xdd2213)),this[_0x4130('0xb6')][_0x4130('0x108')](_0xdd2213),_0xdd2213;}['loadRevisionData'](_0x2c3717){if(!_0x2c3717||_0x2c3717[_0x4130('0xf7')])return Promise['resolve']();{const _0x424a50=this[_0x4130('0xcd')][_0x4130('0x9f')][_0x4130('0x10d')](_0x4130('0xc5'));return this['adapter'][_0x4130('0xaa')]({'channelId':_0x424a50,'revisionId':_0x2c3717['id']})[_0x4130('0x6b')](_0x168ff3=>{_0x2c3717['_update']({'diffData':_0x168ff3[_0x4130('0xf7')]},!0x0);});}}[_0x4130('0xea')](){this[_0x4130('0x53')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x4130('0x7f')][_0x4130('0x9a')](),this[_0x4130('0x7f')]=null,this['_changeIdToChange'][_0x4130('0x97')](),this['editor'][_0x4130('0x9e')][_0x4130('0x36')]({'isUndoable':!0x1},_0x1e98b8=>{for(const _0x436ca1 of this[_0x4130('0xcd')]['model'][_0x4130('0xc')][_0x4130('0x120')]())_0x1e98b8[_0x4130('0x106')](_0x436ca1);});}[_0x4130('0x11')](_0x29b639){const _0x1cab34=[],_0x7ca8af=new Map();for(const _0x3482ab of this[_0x4130('0xcd')][_0x4130('0x9e')][_0x4130('0xc')]['getRootNames']()){const _0x3c906a=this[_0x4130('0xcd')][_0x4130('0x14')]['view'][_0x4130('0xa0')](_0x3482ab);if(!_0x3c906a)continue;const _0xcf6c45=_0x3c906a[_0x4130('0x24')]()[_0x4130('0x1')](0x0);_0xcf6c45&&(_0x1cab34['push'](_0x3482ab),_0x7ca8af['set'](_0x3482ab,_0xcf6c45));}return _0x1cab34['sort']((_0x29c4ee,_0x3f9711)=>{const _0x10756c=_0x7ca8af['get'](_0x29c4ee),_0x498447=_0x7ca8af[_0x4130('0x10d')](_0x3f9711);return _0x10756c['y']-_0x498447['y']||_0x10756c['x']-_0x498447['x'];}),(_0x29b639=_0x29b639[_0x4130('0xda')](_0x1f1f91=>_0x1cab34[_0x4130('0xc7')](_0x1f1f91['rootName'])))[_0x4130('0xec')]((_0x61db1a,_0x1e00dc)=>_0x1cab34[_0x4130('0x23')](_0x61db1a[_0x4130('0x64')])-_0x1cab34[_0x4130('0x23')](_0x1e00dc[_0x4130('0x64')])),_0x29b639;}[_0x4130('0x78')](_0x44b70d){const _0x50b03c=Array[_0x4130('0xa6')](_0x44b70d[_0x4130('0xb9')])[_0x4130('0xda')](([_0x476367,_0x569daa])=>_0x476367[_0x4130('0x1b')](_0x4130('0x7d'))&&!_0x569daa[_0x4130('0x93')]),_0x3a6849=Array[_0x4130('0xa6')](this[_0x4130('0xcd')][_0x4130('0x9e')][_0x4130('0x116')](_0x44b70d)[_0x4130('0x39')]({'singleCharacters':!0x0}));if(0x0!=_0x50b03c[_0x4130('0x127')])for(const _0x602fc4 of _0x3a6849){const [_0x498341,_0x1cf209]=_0x50b03c[0x0],[,_0x5c79e2,_0x5cd97a]=_0x498341['split'](':');if(_0x1cf209['end']['isEqual'](_0x602fc4[_0x4130('0x11c')])&&_0x50b03c[_0x4130('0x35')](),(_0x602fc4[_0x4130('0xba')][_0x4130('0x12')](_0x1cf209[_0x4130('0xc0')])||_0x602fc4[_0x4130('0xba')][_0x4130('0xc9')](_0x1cf209[_0x4130('0xc0')]))&&('insertion'==_0x5c79e2?_0x602fc4[_0x4130('0xf1')]={'userId':_0x5cd97a}:_0x4130('0x3d')==_0x5c79e2&&(_0x602fc4[_0x4130('0x87')]={'userId':_0x5cd97a})),0x0==_0x50b03c[_0x4130('0x127')])break;}return _0x3a6849;}[_0x4130('0xfb')](_0x3ab8e2){const _0x1c5364=new Map();for(let _0x2a822b=0x0;_0x2a822b<_0x3ab8e2[_0x4130('0x127')];_0x2a822b++)_0x4130('0x49')===_0x3ab8e2[_0x2a822b][_0x4130('0x2')]?(_0x3ab8e2[_0x2a822b][_0x4130('0x1')][_0x4130('0x7e')]=_0x2a822b,_0x3ab8e2[_0x2a822b]['item']['endIndex']=_0x2a822b):(_0x4130('0xad')===_0x3ab8e2[_0x2a822b][_0x4130('0x2')]?_0x3ab8e2[_0x2a822b][_0x4130('0x1')][_0x4130('0x7e')]=_0x2a822b:_0x4130('0xb5')===_0x3ab8e2[_0x2a822b][_0x4130('0x2')]&&(_0x3ab8e2[_0x2a822b][_0x4130('0x1')]['endIndex']=_0x2a822b),_0x1c5364[_0x4130('0x11e')](_0x3ab8e2[_0x2a822b]['id'],_0x2a822b));for(const _0x65dc5 of _0x1c5364[_0x4130('0x9d')]())_0x4130('0xad')===_0x3ab8e2[_0x65dc5]['type']?_0x3ab8e2[_0x65dc5]['item'][_0x4130('0x112')]=_0x1c5364['get'](_0x3ab8e2[_0x65dc5][_0x4130('0xa4')]):_0x4130('0xb5')===_0x3ab8e2[_0x65dc5][_0x4130('0x2')]&&(_0x3ab8e2[_0x65dc5][_0x4130('0x1')][_0x4130('0x7e')]=_0x1c5364[_0x4130('0x10d')](_0x3ab8e2[_0x65dc5][_0x4130('0xa4')]));}[_0x4130('0x6e')](_0x2ea391){for(let _0x3e4b9b=0x0;_0x3e4b9b<_0x2ea391['length'];_0x3e4b9b++){if('elementStart'===_0x2ea391[_0x3e4b9b]['type'])_0x2ea391[_0x3e4b9b][_0x4130('0x1')]['startIndex']=_0x3e4b9b;else{if(_0x4130('0xb5')===_0x2ea391[_0x3e4b9b][_0x4130('0x2')]){_0x2ea391[_0x3e4b9b][_0x4130('0x1')]['endIndex']=_0x3e4b9b;const _0x1ab097=_0x2ea391[_0x3e4b9b][_0x4130('0x1')][_0x4130('0x7e')];_0x2ea391[_0x1ab097]['pairId']=_0x2ea391[_0x3e4b9b]['id'],_0x2ea391[_0x3e4b9b][_0x4130('0xa4')]=_0x2ea391[_0x1ab097]['id'];}else _0x2ea391[_0x3e4b9b][_0x4130('0x1')][_0x4130('0x7e')]=_0x3e4b9b,_0x2ea391[_0x3e4b9b]['item'][_0x4130('0x112')]=_0x3e4b9b,_0x2ea391[_0x3e4b9b][_0x4130('0xa4')]=null;}_0x2ea391[_0x3e4b9b][_0x4130('0x15')]||(_0x2ea391[_0x3e4b9b]['markersStart']=[],_0x2ea391[_0x3e4b9b][_0x4130('0x68')]=[]);}}['_markInsertions'](_0x4ff4b7,_0x223a4b){const _0x583082=_0x4ff4b7['filter'](_0xd0f09c=>!_0xd0f09c[_0x4130('0xf1')]);for(let _0x5ac677=0x0;_0x5ac677<_0x223a4b[_0x4130('0x127')];_0x5ac677++)_0x223a4b[_0x5ac677]['isAdded']&&(_0x583082[_0x5ac677][_0x4130('0xf1')]=_0x223a4b[_0x5ac677][_0x4130('0xf1')]);}['_makeModelFromViewString'](_0x2c60d1){const _0x70248c=JSON['parse'](_0x2c60d1),_0x3352f3=this[_0x4130('0xcd')]['editing'][_0x4130('0x125')][_0x4130('0xc')],_0xcead42=new _0x352772(_0x3352f3,_0x70248c[_0x4130('0x66')](_0x1ef1c0=>this[_0x4130('0x4c')](_0x1ef1c0)));return this[_0x4130('0xcd')][_0x4130('0xf5')]['toModel'](_0xcead42);}[_0x4130('0x4c')](_0x44e737){const _0xff091e=this[_0x4130('0xcd')]['editing']['view'][_0x4130('0xc')];if(_0x4130('0x16')==typeof _0x44e737)return new _0x2515da(_0xff091e,_0x44e737);{const _0x2341d0=_0x44e737[_0x4130('0x5')][_0x4130('0x66')](_0x556455=>this['_getViewObj'](_0x556455));return new(Y[_0x44e737['type']]||_0xb6844d)(_0xff091e,_0x44e737[_0x4130('0xab')],_0x44e737[_0x4130('0x0')],_0x2341d0);}}[_0x4130('0x5d')](_0x2591b7,_0x2274b1=null){const _0x187c4e=this[_0x4130('0xb6')][_0x4130('0xaa')](_0x2591b7),_0x33e3c7=_0x2274b1?this[_0x4130('0xb6')][_0x4130('0xaa')](_0x2274b1):null,_0x411637=this[_0x4130('0xfe')](_0x187c4e,_0x33e3c7),_0x3a0655=_0x411637[_0x411637[_0x4130('0x127')]-0x1],_0x5cc722=new Map(),_0x1c063c={'model':{},'attributes':{},'changes':[]},_0x49a2ed=new Set(),_0x54e8fb=new Map();for(let _0x524cf1=_0x411637['length']-0x1;_0x524cf1>=0x0;_0x524cf1--){const _0x27141e=_0x411637[_0x524cf1];for(const _0x52598a of Object[_0x4130('0xc3')](_0x27141e['diffData']))if(_0x27141e[_0x4130('0xf7')][_0x52598a]['attachChange']){const _0x58ec0a=_0x27141e['diffData'][_0x52598a]['attachChange'];_0x58ec0a[_0x4130('0x5b')]?(_0x49a2ed[_0x4130('0x79')](_0x52598a),_0x54e8fb[_0x4130('0x123')](_0x52598a)&&_0x54e8fb[_0x4130('0x10d')](_0x52598a)[_0x4130('0x50')]==_0x58ec0a[_0x4130('0x50')]?_0x54e8fb[_0x4130('0xb1')](_0x52598a):_0x54e8fb['set'](_0x52598a,_0x58ec0a)):_0x54e8fb[_0x4130('0x123')](_0x52598a)?(_0x49a2ed['delete'](_0x52598a),_0x54e8fb[_0x4130('0xb1')](_0x52598a)):(_0x49a2ed['add'](_0x52598a),_0x54e8fb[_0x4130('0x11e')](_0x52598a,_0x58ec0a));}else _0x49a2ed[_0x4130('0x79')](_0x52598a);}for(const _0x2537ee of _0x49a2ed){const _0x1fab6d=_0x54e8fb[_0x4130('0x123')](_0x2537ee)&&!_0x54e8fb[_0x4130('0x10d')](_0x2537ee)[_0x4130('0x5b')];let _0x52f90d=_0x1fab6d?_0x411637['length']-0x1:0x0;const _0x4e44d1=_0x1fab6d?-0x1:0x1;for(;_0x411637[_0x52f90d];){const _0x1fd493=_0x411637[_0x52f90d];if(_0x1fd493[_0x4130('0xf7')][_0x2537ee]){const _0x34e3ea=_0x1fab6d?_0x1fd493[_0x4130('0xf7')][_0x2537ee][_0x4130('0x17')]:_0x1fd493[_0x4130('0xf7')][_0x2537ee][_0x4130('0x124')];_0x1c063c['attributes'][_0x2537ee]=_0x34e3ea?_0x3e0774(_0x34e3ea):{};break;}_0x52f90d+=_0x4e44d1;}}for(const _0x26b11c of _0x411637){_0x26b11c[_0x4130('0x9e')]={};for(const _0x1a6f01 of _0x26b11c[_0x4130('0x20')])_0x5cc722[_0x4130('0x11e')](_0x1a6f01['id'],_0x1a6f01);for(const _0x10ab25 of _0x49a2ed){const _0x33a264=_0x26b11c[_0x4130('0xf7')][_0x10ab25]?_0x26b11c[_0x4130('0xf7')][_0x10ab25][_0x4130('0x82')]:'[]',_0x4d68da=_0x26b11c[_0x4130('0xf7')][_0x10ab25]?_0x26b11c[_0x4130('0xf7')][_0x10ab25][_0x4130('0xd7')]:'[]';_0x26b11c[_0x4130('0x9e')][_0x10ab25]={'insertions':this['_makeModelFromViewString'](_0x33a264),'deletions':this[_0x4130('0x10c')](_0x4d68da)};}}for(const _0x52d8f0 of _0x49a2ed){let _0x12e117=null,_0x3eaa9a=0x0;const _0x82cb63=new Map(Array[_0x4130('0xa6')](_0x187c4e[_0x4130('0x9e')][_0x52d8f0][_0x4130('0x82')][_0x4130('0xb9')])[_0x4130('0xda')](([_0x317316])=>!_0x317316[_0x4130('0x1b')](_0x4130('0x7d'))));let _0x46700e=0x0;for(const _0x477928 of _0x411637){const _0x144421=this[_0x4130('0x78')](_0x477928[_0x4130('0x9e')][_0x52d8f0]['insertions']);_0x477928==_0x187c4e?(_0x12e117=_0x144421,_0x3eaa9a=_0x12e117[_0x4130('0x127')],_0x12e117[_0x4130('0x1d')](_0x83facd=>{_0x83facd['id']=_0x46700e++;}),this[_0x4130('0x6e')](_0x12e117)):this[_0x4130('0xe5')](_0x12e117,_0x144421);const _0xc353e5=_0x12e117[_0x4130('0xda')](_0x5ee5d1=>!_0x5ee5d1[_0x4130('0xf1')])['map'](_0x2255f3=>_0x2255f3['id']);let _0x53589d=0x0;const _0x5c3a61=this[_0x4130('0x78')](_0x477928[_0x4130('0x9e')][_0x52d8f0]['deletions']);_0x5c3a61[_0x4130('0x1d')](_0x119f7e=>{_0x119f7e[_0x4130('0x87')]?_0x119f7e['id']=_0x3eaa9a++:_0x119f7e['id']=_0xc353e5[_0x53589d++];}),this[_0x4130('0x6e')](_0x5c3a61),this['_setDistance'](_0x12e117,_0x4130('0xf1')),this['_setDistance'](_0x5c3a61,_0x4130('0x87')),_0x477928==_0x187c4e&&this[_0x4130('0xa2')](_0x12e117,_0x82cb63),_0x12e117=this[_0x4130('0x92')](_0x12e117,_0x5c3a61),this[_0x4130('0xfb')](_0x12e117),this['_setDistance'](_0x12e117,'isRemoved');}_0x12e117=_0x12e117['filter'](_0x22bca8=>!(_0x22bca8[_0x4130('0xf1')]&&_0x22bca8[_0x4130('0x87')]));const _0x5d9695=new Map(_0x3a0655['model'][_0x52d8f0][_0x4130('0xd7')][_0x4130('0xb9')]),_0xee0a71=new Set(_0x82cb63[_0x4130('0xc3')]());for(const _0x57c299 of _0x5d9695['keys']())_0xee0a71[_0x4130('0xb1')](_0x57c299);this['_markSuggestions'](_0x12e117,_0xee0a71),this[_0x4130('0xc1')](_0x12e117),_0x12e117=this[_0x4130('0xe6')](_0x12e117),_0x12e117=this['_markMismatchedRemovedTags'](_0x12e117),_0x12e117=this[_0x4130('0x41')](_0x12e117);const {root:_0x3f69ba,changes:_0x1696fc}=this['_makeModelFromTape'](_0x12e117,_0x5cc722,_0x52d8f0);_0x1c063c[_0x4130('0x9e')][_0x52d8f0]=_0x3f69ba;const _0xa4d0a=_0x54e8fb['get'](_0x52d8f0);if(_0xa4d0a){const _0x4d1d03=_0x5cc722[_0x4130('0x10d')](_0xa4d0a[_0x4130('0x50')]),_0x4d4a75=new _0xfc1d9f({'author':_0x4d1d03,'type':_0xa4d0a[_0x4130('0x5b')]?'add':_0x4130('0xc2'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x52d8f0});_0x1696fc[_0x4130('0xae')](_0x4d4a75),_0x1c063c[_0x4130('0x0')][_0x52d8f0][_0x4130('0x13')]=_0x4d4a75['id'];}_0x1c063c[_0x4130('0x89')]=_0x1c063c['changes'][_0x4130('0x31')](_0x1696fc);}return _0x1c063c;}[_0x4130('0xa2')](_0x139921,_0x595296){for(let _0x39694f=0x0;_0x39694f<_0x139921['length'];_0x39694f++)for(const [_0x787213,_0x43a00a]of _0x595296)_0x43a00a[_0x4130('0xc0')][_0x4130('0x12')](_0x139921[_0x39694f][_0x4130('0xba')])&&_0x139921[_0x39694f]['markersStart']['push'](_0x787213),_0x43a00a['end'][_0x4130('0x12')](_0x139921[_0x39694f][_0x4130('0x11c')])&&_0x139921[_0x39694f]['markersEnd'][_0x4130('0x88')](_0x787213);}[_0x4130('0x92')](_0x19a405,_0x417b06){let _0x4a73c4=[],_0x1d7336=0x0,_0x3c4290=0x0;for(;_0x1d7336<_0x19a405[_0x4130('0x127')]||_0x3c4290<_0x417b06[_0x4130('0x127')];){const _0x44f504=_0x19a405[_0x1d7336]||{},_0x5d277a=_0x417b06[_0x3c4290]||{};if(_0x44f504['id']==_0x5d277a['id'])_0x1d7336++,_0x3c4290++,_0x4a73c4[_0x4130('0x88')](_0x44f504);else{if(_0x5d277a['isRemoved']&&_0x44f504[_0x4130('0xf1')]){const {commonTape:_0x431d9b,iEnd:_0x115711,jEnd:_0x3e8d0a}=this[_0x4130('0x10f')](_0x19a405,_0x1d7336,_0x417b06,_0x3c4290);_0x4a73c4=_0x4a73c4[_0x4130('0x31')](_0x431d9b),_0x1d7336=_0x115711,_0x3c4290=_0x3e8d0a;}else _0x5d277a[_0x4130('0x87')]?(_0x3c4290++,_0x4a73c4[_0x4130('0x88')](_0x5d277a)):(_0x1d7336++,_0x4a73c4[_0x4130('0x88')](_0x44f504));}}return _0x4a73c4;}[_0x4130('0xd0')](_0x41646f,_0x3863c2){const _0x4c6c1a=[];for(let _0x337b9b=0x0;_0x337b9b<_0x41646f[_0x4130('0x127')];_0x337b9b++){for(let _0x292ebc=0x0;_0x292ebc<_0x41646f[_0x337b9b][_0x4130('0x15')][_0x4130('0x127')];_0x292ebc++){const _0x20f6a6=_0x41646f[_0x337b9b][_0x4130('0x15')][_0x292ebc];if(!_0x3863c2[_0x4130('0x123')](_0x20f6a6))continue;const {group:_0x14d661,type:_0x98e453,authorId:_0x4fe628}=_0x56c287(_0x20f6a6);_0x4130('0x7c')!=_0x14d661||_0x4130('0xaf')!=_0x98e453&&_0x4130('0x3d')!=_0x98e453||(_0x4c6c1a['unshift']({'type':_0x98e453,'name':_0x20f6a6,'userId':_0x4fe628}),_0x41646f[_0x337b9b][_0x4130('0x15')]['splice'](_0x292ebc,0x1),_0x292ebc--);}_0x3c6e4a(_0x41646f[_0x337b9b]);for(let _0x165a16=0x0;_0x165a16<_0x41646f[_0x337b9b]['markersEnd']['length'];_0x165a16++){const _0x1c20e6=_0x41646f[_0x337b9b][_0x4130('0x68')][_0x165a16];if(!_0x3863c2[_0x4130('0x123')](_0x1c20e6))continue;const {group:_0x572399,type:_0x284db4}=_0x56c287(_0x1c20e6);if(_0x4130('0x7c')!=_0x572399||_0x4130('0xaf')!=_0x284db4&&_0x4130('0x3d')!=_0x284db4)continue;_0x41646f[_0x337b9b]['markersEnd'][_0x4130('0xdf')](_0x165a16,0x1),_0x165a16--;const _0x151db2=_0x4c6c1a['findIndex'](_0xac97e5=>_0xac97e5['name']==_0x1c20e6);_0x151db2>-0x1&&_0x4c6c1a['splice'](_0x151db2,0x1);}}function _0x56c287(_0x344b0a){const _0x32a077=_0x344b0a['split'](':');return{'group':_0x32a077[0x0],'type':_0x32a077[0x1],'subType':_0x32a077[_0x4130('0x127')]>=0x5?_0x32a077[0x2]:null,'id':_0x32a077['length']<0x5?_0x32a077[0x2]:_0x32a077[0x3],'authorId':_0x32a077[_0x4130('0x127')]<0x5?_0x32a077[0x3]:_0x32a077[0x4],'markerCount':0x6==_0x32a077[_0x4130('0x127')]?_0x32a077[0x5]:null};}function _0x3c6e4a(_0x325b67){for(let _0x493432=0x0;_0x493432<_0x4c6c1a['length'];_0x493432++){if(_0x325b67[_0x4130('0xf1')]&&'insertion'==_0x4c6c1a[_0x493432][_0x4130('0x2')])return _0x325b67[_0x4130('0xd9')]=_0x4c6c1a[_0x493432],void delete _0x325b67[_0x4130('0xf1')];if(!_0x325b67['isAdded']&&!_0x325b67['isRemoved']&&_0x4130('0x3d')==_0x4c6c1a[_0x493432]['type'])return void(_0x325b67[_0x4130('0xac')]=_0x4c6c1a[_0x493432]);}}}[_0x4130('0x5c')](_0x29336b,_0x49f133){let _0x310fba=0x0,_0x2d75f0=!0x1;const _0x563585=new Map();for(const _0x11bd4b of _0x29336b)_0x11bd4b[_0x49f133]?_0x2d75f0&&(_0x310fba++,_0x2d75f0=!0x1):(_0x310fba++,_0x2d75f0=!0x0),_0x563585[_0x4130('0x11e')](_0x11bd4b['id'],_0x310fba);for(let _0x5119bd=0x0;_0x5119bd<_0x29336b[_0x4130('0x127')];_0x5119bd++){if(_0x4130('0x87')==_0x49f133&&_0x29336b[_0x5119bd][_0x4130('0xf1')]||_0x4130('0xf1')==_0x49f133&&_0x29336b[_0x5119bd]['isRemoved'])continue;if(_0x4130('0x49')==_0x29336b[_0x5119bd][_0x4130('0x2')]){_0x29336b[_0x5119bd][_0x4130('0x6d')]=0x0;continue;}const _0x6b7c89=_0x563585[_0x4130('0x10d')](_0x29336b[_0x5119bd][_0x4130('0xa4')]),_0x47ae1e=_0x563585[_0x4130('0x10d')](_0x29336b[_0x5119bd]['id']);_0x29336b[_0x5119bd][_0x4130('0x6d')]=_0x6b7c89-_0x47ae1e;}}[_0x4130('0xfe')](_0x10a08c,_0x5ae432,_0x5ecd69=!0x1){const _0x705646=[];let _0x2c2ea2=this[_0x4130('0xb6')][_0x4130('0x59')](_0x10a08c),_0x5c3118=this[_0x4130('0xb6')][_0x4130('0x59')](_0x5ae432);for(-0x1==_0x5c3118&&(_0x5c3118=this[_0x4130('0xb6')][_0x4130('0x67')]['length'],_0x5ecd69=!0x1);_0x2c2ea2<_0x5c3118;)_0x705646[_0x4130('0x88')](this[_0x4130('0xb6')]['getRevision'](_0x2c2ea2)),_0x2c2ea2++;return _0x5ecd69&&_0x705646[_0x4130('0x88')](this[_0x4130('0xb6')][_0x4130('0xaa')](_0x2c2ea2)),_0x705646;}['_threeWayMerge'](_0x27644e,_0xa3c385,_0x5c2f53,_0x56253a){const _0x5337d2=this[_0x4130('0xcd')][_0x4130('0x9e')][_0x4130('0x118')];let _0x22189e=_0xa3c385;for(;_0x27644e[_0x22189e]&&_0x27644e[_0x22189e][_0x4130('0xf1')];)_0x22189e++;let _0x26e5e0=_0x56253a;for(;_0x5c2f53[_0x26e5e0]&&_0x5c2f53[_0x26e5e0][_0x4130('0x87')];)_0x26e5e0++;_0x2e0969(_0x27644e,_0xa3c385,_0x22189e),_0x2e0969(_0x5c2f53,_0x56253a,_0x26e5e0);const _0x350625=_0x5c2f53[_0x4130('0xf3')](_0x56253a,_0x26e5e0)[_0x4130('0x31')](_0x27644e[_0x4130('0xf3')](_0xa3c385,_0x22189e));return _0x350625[_0x4130('0xec')]((_0x3135bb,_0x17405e)=>_0x3135bb[_0x4130('0xe4')]!=_0x17405e[_0x4130('0xe4')]?_0x3135bb[_0x4130('0xe4')]-_0x17405e[_0x4130('0xe4')]:_0x3135bb[_0x4130('0xcf')]!=_0x17405e[_0x4130('0xcf')]?_0x3135bb[_0x4130('0xcf')]-_0x17405e[_0x4130('0xcf')]:_0x3135bb['distance']!=_0x17405e[_0x4130('0x6d')]?_0x17405e['distance']-_0x3135bb['distance']:!!_0x3135bb[_0x4130('0xf1')]!=!!_0x17405e['isAdded']?-0x1==_0x3135bb[_0x4130('0xe4')]||0x0==_0x3135bb[_0x4130('0xe4')]?_0x3135bb[_0x4130('0xf1')]?-0x1:0x1:_0x3135bb[_0x4130('0xf1')]?0x1:-0x1:_0x3135bb['index']-_0x17405e[_0x4130('0x72')]),{'commonTape':_0x350625,'iEnd':_0x22189e,'jEnd':_0x26e5e0};function _0x2e0969(_0x344ea9,_0x2a2480,_0xccaf56){let _0x213065=-0x1,_0x597b19=Number[_0x4130('0xbe')],_0x17800b=!0x0;for(let _0x321c5e=_0x2a2480;_0x321c5e<_0xccaf56;_0x321c5e++)if(_0x5337d2[_0x4130('0xc4')](_0x344ea9[_0x321c5e][_0x4130('0x1')])||(_0x17800b=!0x1),_0x344ea9[_0x321c5e][_0x4130('0x1')][_0x4130('0x7e')]<_0x2a2480&&(_0x213065=_0x321c5e),_0x344ea9[_0x321c5e][_0x4130('0x1')][_0x4130('0x112')]>=_0xccaf56){_0x597b19=_0x321c5e;break;}_0x17800b&&(_0x213065=_0xccaf56-0x1);for(let _0x582efd=_0x2a2480;_0x582efd<_0xccaf56;_0x582efd++)_0x344ea9[_0x582efd][_0x4130('0xe4')]=_0x582efd<=_0x213065?-0x1:_0x582efd<_0x597b19?0x0:0x1,_0x344ea9[_0x582efd][_0x4130('0x72')]=_0x582efd;let _0x490dbe=0x0;for(let _0x50ac79=_0x2a2480;_0x50ac79<=_0x213065;_0x50ac79++)0x0==_0x344ea9[_0x50ac79]['distance']?_0x344ea9[_0x50ac79][_0x4130('0xcf')]=_0x490dbe:(_0x490dbe++,_0x344ea9[_0x50ac79][_0x4130('0xcf')]=_0x490dbe,_0x490dbe++);for(let _0x44c842=_0x2a2480;_0x44c842<_0xccaf56;_0x44c842++)0x0==_0x344ea9[_0x44c842]['side']&&(_0x344ea9[_0x44c842]['level']=_0x490dbe);_0x490dbe=0x0;for(let _0x437da6=_0xccaf56-0x1;_0x437da6>=_0x597b19;_0x437da6--)0x0==_0x344ea9[_0x437da6][_0x4130('0x6d')]?_0x344ea9[_0x437da6][_0x4130('0xcf')]=_0x490dbe:(_0x490dbe--,_0x344ea9[_0x437da6][_0x4130('0xcf')]=_0x490dbe,_0x490dbe--);}}[_0x4130('0xc1')](_0x115728){const _0x3abbbb=new Map(),_0x41da8d=this[_0x4130('0xcd')][_0x4130('0x9e')]['schema'];for(let _0x27ffab=0x1;_0x27ffab<_0x115728[_0x4130('0x127')];_0x27ffab++){let _0x2c8510,_0x14a574,_0x693e4b;const _0x2df47b=_0x115728[_0x27ffab],_0x3f74a8=_0x115728[_0x27ffab-0x1];if(_0x4130('0x49')==_0x2df47b[_0x4130('0x2')])continue;if(_0x2df47b[_0x4130('0x2')]!=_0x3f74a8[_0x4130('0x2')])continue;if(!_0x41da8d[_0x4130('0x101')](_0x3f74a8[_0x4130('0x1')])||_0x41da8d[_0x4130('0x80')](_0x3f74a8[_0x4130('0x1')]))continue;if(!_0x41da8d[_0x4130('0x101')](_0x2df47b['item'])||_0x41da8d[_0x4130('0x80')](_0x2df47b[_0x4130('0x1')]))continue;if((_0x115728[_0x27ffab][_0x4130('0xf1')]||_0x115728[_0x27ffab][_0x4130('0xd9')])&&_0x115728[_0x27ffab-0x1]['isRemoved'])_0x2c8510=_0x115728[_0x27ffab],_0x14a574=_0x115728[_0x27ffab-0x1],_0x693e4b=_0x27ffab-0x1;else{if(!_0x115728[_0x27ffab]['isRemoved']||!_0x115728[_0x27ffab-0x1]['isAdded']&&!_0x115728[_0x27ffab-0x1]['isAddSuggestion'])continue;_0x2c8510=_0x115728[_0x27ffab-0x1],_0x14a574=_0x115728[_0x27ffab],_0x693e4b=_0x27ffab;}const _0x57cfc9=_0x2c8510[_0x4130('0xcf')]==_0x14a574[_0x4130('0xcf')],_0x384ac0=Math['abs'](_0x2c8510[_0x4130('0xcf')])<Math[_0x4130('0x65')](_0x14a574[_0x4130('0xcf')])&&0x0==_0x14a574[_0x4130('0x6d')];(_0x57cfc9||_0x384ac0)&&(_0x3abbbb[_0x4130('0x11e')](_0x14a574['id'],_0x2c8510['id']),_0x115728[_0x4130('0xdf')](_0x693e4b,0x1),_0x27ffab--,_0x2c8510['isAdded']=!0x1);}for(let _0x419381=0x0;_0x419381<_0x115728[_0x4130('0x127')];_0x419381++)_0x3abbbb[_0x4130('0x123')](_0x115728[_0x419381][_0x4130('0xa4')])&&(_0x115728[_0x419381]['pairId']=_0x3abbbb['get'](_0x115728[_0x419381][_0x4130('0xa4')]));}[_0x4130('0xe6')](_0x13f19c){const _0x48d708=new Set(_0x13f19c[_0x4130('0x66')](_0x33c5ae=>_0x33c5ae['id']));for(let _0x1371f7=0x0;_0x1371f7<_0x13f19c[_0x4130('0x127')];_0x1371f7++)_0x48d708['has'](_0x13f19c[_0x1371f7][_0x4130('0xa4')])||0x0==_0x13f19c[_0x1371f7][_0x4130('0x6d')]||(_0x13f19c[_0x1371f7]['isIncorrect']=!0x0);return _0x13f19c[_0x4130('0xda')](_0x540d57=>!_0x540d57['isIncorrect']);}['_markMismatchedRemovedTags'](_0x358973){const _0x7940ae=new Set();for(let _0x343f10=0x0;_0x343f10<_0x358973['length'];_0x343f10++){if(_0x7940ae[_0x4130('0x123')](_0x358973[_0x343f10]['id'])&&_0x358973[_0x343f10][_0x4130('0x87')]&&(_0x358973[_0x343f10][_0x4130('0x69')]=!0x0),_0x358973[_0x343f10]['isIncorrect'])continue;if(0x0==_0x358973[_0x343f10][_0x4130('0x6d')])continue;if('elementStart'!=_0x358973[_0x343f10]['type'])continue;if(null==_0x358973[_0x343f10][_0x4130('0xa4')])continue;let _0x4aefdb=_0x343f10+0x1,_0x6c7a21=0x0;for(;_0x358973[_0x4aefdb]['id']!=_0x358973[_0x343f10][_0x4130('0xa4')];)_0x4130('0xad')==_0x358973[_0x4aefdb]['type']?_0x6c7a21++:_0x4130('0xb5')==_0x358973[_0x4aefdb]['type']&&_0x6c7a21--,_0x4aefdb++;if(0x0!=_0x6c7a21){if(_0x358973[_0x343f10][_0x4130('0x87')])_0x358973[_0x343f10][_0x4130('0x69')]=!0x0;else for(;_0x4aefdb!=_0x343f10;)_0x358973[_0x4aefdb]['isRemoved']&&0x0!=_0x358973[_0x4aefdb][_0x4130('0x6d')]&&(_0x358973[_0x4aefdb][_0x4130('0x69')]=!0x0,_0x7940ae['add'](_0x358973[_0x4aefdb]['pairId'])),_0x4aefdb--;}}return _0x358973['filter'](_0x86489f=>!_0x86489f[_0x4130('0x69')]);}[_0x4130('0x41')](_0x4ee236){const _0x3323f9=this[_0x4130('0xcd')][_0x4130('0x9e')]['schema'];for(let _0x37f26d=0x0;_0x37f26d<_0x4ee236[_0x4130('0x127')];_0x37f26d++){if(!(_0x4ee236[_0x37f26d][_0x4130('0xf1')]||_0x4ee236[_0x37f26d]['isAddSuggestion']||_0x4ee236[_0x37f26d]['isRemoved']||_0x4ee236[_0x37f26d][_0x4130('0xac')]))continue;if(0x0==_0x4ee236[_0x37f26d][_0x4130('0x6d')])continue;const _0x257515=_0x4ee236[_0x37f26d][_0x4130('0x1')];_0x3323f9[_0x4130('0x101')](_0x257515)||_0x3323f9[_0x4130('0x80')](_0x257515)||(_0x4ee236[_0x37f26d][_0x4130('0xf1')]&&delete _0x4ee236[_0x37f26d][_0x4130('0xf1')],_0x4ee236[_0x37f26d][_0x4130('0xd9')]&&delete _0x4ee236[_0x37f26d]['isAddSuggestion'],_0x4ee236[_0x37f26d][_0x4130('0xac')]&&delete _0x4ee236[_0x37f26d][_0x4130('0xac')],_0x4ee236[_0x37f26d][_0x4130('0x87')]&&(_0x4ee236[_0x37f26d][_0x4130('0x69')]=!0x0));}return _0x4ee236[_0x4130('0xda')](_0x96dc53=>!_0x96dc53['isIncorrect']);}[_0x4130('0x8')](_0x1cf85f,_0x31b542,_0x4f6a6c){const _0x52910e=new _0x29c2df(),_0x48ba44=[],_0x5669ae=new Map(),_0x4f1f2f=this[_0x4130('0xcd')][_0x4130('0x9e')],_0x2d89a0=_0x4f1f2f[_0x4130('0x118')],_0x3270ae=[_0x52910e],_0x5dc840={},_0x3e5d03={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3b259e=null;const _0x180483=[0x0];for(let _0x1f8ace=0x0;_0x1f8ace<_0x1cf85f['length'];_0x1f8ace++){let _0x596410,_0x3ccfb2;if(_0x4130('0xad')===_0x1cf85f[_0x1f8ace][_0x4130('0x2')]){_0x596410=_0x4f1f2f[_0x4130('0x99')](_0x52910e,_0x180483);const _0x318ff4=new _0x3dabd7(_0x1cf85f[_0x1f8ace][_0x4130('0x1')][_0x4130('0xab')],_0x1cf85f[_0x1f8ace][_0x4130('0x1')][_0x4130('0x3b')]());_0x3270ae[0x0][_0x4130('0x61')](_0x318ff4),_0x180483[_0x4130('0x88')](0x0),_0x3270ae[_0x4130('0xae')](_0x318ff4),_0x3ccfb2=_0x4f1f2f[_0x4130('0x99')](_0x52910e,_0x180483),_0x3b259e=null;}else{if(_0x4130('0xb5')===_0x1cf85f[_0x1f8ace][_0x4130('0x2')])_0x3270ae[_0x4130('0x35')](),_0x596410=_0x4f1f2f['createPositionFromPath'](_0x52910e,_0x180483),_0x180483['pop'](),_0x180483[_0x180483['length']-0x1]++,_0x3ccfb2=_0x4f1f2f[_0x4130('0x99')](_0x52910e,_0x180483),_0x3b259e=null;else{if(_0x596410=_0x4f1f2f[_0x4130('0x99')](_0x52910e,_0x180483),_0x3b259e&&_0x5b466b(_0x3b259e,_0x1cf85f[_0x1f8ace][_0x4130('0x1')]))_0x3b259e[_0x4130('0x40')]+=_0x1cf85f[_0x1f8ace][_0x4130('0x1')][_0x4130('0xf5')];else{const _0x3c225d=new _0x276073(_0x1cf85f[_0x1f8ace]['item'][_0x4130('0xf5')],_0x1cf85f[_0x1f8ace][_0x4130('0x1')]['getAttributes']());_0x3270ae[0x0][_0x4130('0x61')](_0x3c225d),_0x3b259e=_0x3c225d;}_0x180483[_0x180483['length']-0x1]+=_0x1cf85f[_0x1f8ace]['item'][_0x4130('0xed')],_0x3ccfb2=_0x4f1f2f['createPositionFromPath'](_0x52910e,_0x180483);}}for(const _0x2a14af of _0x1cf85f[_0x1f8ace][_0x4130('0x15')])_0x5669ae['set'](_0x2a14af,{'start':_0x596410,'end':null});_0x1d68d8(_0x4130('0xac'),_0x1f8ace,_0x596410,_0x3ccfb2),_0x1d68d8(_0x4130('0xd9'),_0x1f8ace,_0x596410,_0x3ccfb2),_0x1d68d8(_0x4130('0x87'),_0x1f8ace,_0x596410,_0x3ccfb2),_0x1d68d8('isAdded',_0x1f8ace,_0x596410,_0x3ccfb2);for(const _0x43a74f of _0x1cf85f[_0x1f8ace][_0x4130('0x68')]){_0x5669ae[_0x4130('0x10d')](_0x43a74f)[_0x4130('0xb4')]=_0x3ccfb2;}}for(const [_0x1f7fb1,_0x2b4c64]of _0x5669ae){const _0x459bcb=this[_0x4130('0xcd')]['model'][_0x4130('0x85')](_0x2b4c64[_0x4130('0xc0')],_0x2b4c64[_0x4130('0xb4')]);_0x52910e[_0x4130('0xb9')][_0x4130('0x11e')](_0x1f7fb1,_0x459bcb);}return _0x48ba44[_0x4130('0xec')]((_0x1e7a9b,_0x3eb627)=>{const _0x2e0335=_0x52910e[_0x4130('0xb9')][_0x4130('0x10d')](_0x4130('0x7d')+_0x1e7a9b['id']),_0x73b2bf=_0x52910e[_0x4130('0xb9')][_0x4130('0x10d')](_0x4130('0x7d')+_0x3eb627['id']);return _0x2e0335['start']['isBefore'](_0x73b2bf[_0x4130('0xc0')])?-0x1:_0x2e0335[_0x4130('0xc0')][_0x4130('0xc9')](_0x73b2bf[_0x4130('0xc0')])?0x1:_0x2e0335[_0x4130('0xb4')][_0x4130('0xf')](_0x73b2bf[_0x4130('0xb4')])?-0x1:_0x2e0335[_0x4130('0xb4')][_0x4130('0xc9')](_0x73b2bf[_0x4130('0xb4')])?0x1:_0x4130('0x79')===_0x1e7a9b[_0x4130('0x2')]?-0x1:0x1;}),{'root':_0x52910e,'changes':_0x48ba44};function _0x1d68d8(_0x5b5153,_0x229eae,_0x1e09d1,_0x4b4dcb){const _0x5e7431=!!_0x1cf85f[_0x229eae][_0x5b5153],_0x112048=_0x5e7431?_0x1cf85f[_0x229eae][_0x5b5153][_0x4130('0x50')]:null,_0x35c65a=_0x229eae===_0x1cf85f['length']-0x1,_0x303cfb=_0x3e5d03[_0x5b5153][0x0],_0x50f94b=_0x2d89a0['isObject'](_0x1cf85f[_0x229eae][_0x4130('0x1')]);!_0x5dc840[_0x5b5153]&&_0x5e7431?_0x5dc840[_0x5b5153]={'start':_0x1e09d1,'tapeItem':_0x1cf85f[_0x229eae],'userId':_0x112048,'type':_0x5b5153}:_0x5dc840[_0x5b5153]&&!_0x5e7431?(_0x5dc840[_0x5b5153]['end']=_0x1e09d1,_0x4d5cd9(_0x5dc840[_0x5b5153]),_0x5dc840[_0x5b5153]=null):_0x5dc840[_0x5b5153]&&_0x5e7431&&_0x5dc840[_0x5b5153][_0x4130('0x50')]!==_0x112048&&(_0x5dc840[_0x5b5153][_0x4130('0xb4')]=_0x1e09d1,_0x303cfb&&_0x303cfb[_0x4130('0x50')]===_0x5dc840[_0x5b5153][_0x4130('0x50')]||_0x4d5cd9(_0x5dc840[_0x5b5153]),_0x5dc840[_0x5b5153]={'start':_0x1e09d1,'tapeItem':_0x1cf85f[_0x229eae],'userId':_0x112048,'type':_0x5b5153}),_0x5dc840[_0x5b5153]&&_0x50f94b&&(_0x4130('0xad')!==_0x1cf85f[_0x229eae][_0x4130('0x2')]||_0x303cfb&&_0x303cfb[_0x4130('0x50')]===_0x112048||_0x3e5d03[_0x5b5153][_0x4130('0xae')]({'userId':_0x112048,'object':_0x1cf85f[_0x229eae][_0x4130('0x1')],'change':_0x5dc840[_0x5b5153]}),_0x4130('0xb5')===_0x1cf85f[_0x229eae][_0x4130('0x2')]&&_0x303cfb&&_0x303cfb[_0x4130('0xff')]===_0x1cf85f[_0x229eae][_0x4130('0x1')]&&(_0x3e5d03[_0x5b5153][_0x4130('0x35')](),_0x5dc840[_0x5b5153]=_0x303cfb[_0x4130('0x77')])),_0x5dc840[_0x5b5153]&&_0x35c65a&&(_0x5dc840[_0x5b5153][_0x4130('0xb4')]=_0x4b4dcb,_0x4d5cd9(_0x5dc840[_0x5b5153]),_0x5dc840[_0x5b5153]=null);}function _0x4d5cd9({start:_0x1fbe9f,end:_0x218a94,tapeItem:_0x1d264f,userId:_0x293449,type:_0x4fb0c2}){const _0x319722=_0x1d264f[_0x4130('0x1')],_0x3771f8=_0x4f1f2f['schema'][_0x4130('0x101')](_0x319722)&&!_0x4f1f2f['schema'][_0x4130('0x80')](_0x319722),_0x41b370=_0x1fbe9f['nodeAfter']==_0x218a94['parent']&&_0x218a94[_0x4130('0x8d')];if(_0x3771f8&&_0x41b370)return;const _0x449f32=_0x4f1f2f['createRange'](_0x1fbe9f,_0x218a94),_0x30e592=_0x31b542[_0x4130('0x10d')](_0x293449),_0xf62889=new _0xfc1d9f({'author':_0x30e592,'type':'isAdded'==_0x4fb0c2||_0x4130('0xd9')==_0x4fb0c2?_0x4130('0x79'):'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4fb0c2||'isRemoveSuggestion'==_0x4fb0c2},'createdAt':new Date(),'rootName':_0x4f6a6c});_0x48ba44[_0x4130('0x88')](_0xf62889),_0x52910e['markers'][_0x4130('0x11e')](_0x4130('0x7d')+_0xf62889['id'],_0x449f32);}function _0x5b466b(_0x1ddffc,_0x126a05){const _0x161fb2=_0x1ddffc[_0x4130('0x3b')](),_0x51b0c0=_0x126a05[_0x4130('0x3b')]();for(const _0x26b4de of _0x161fb2){if(_0x26b4de[0x1]!==_0x126a05['getAttribute'](_0x26b4de[0x0]))return!0x1;_0x51b0c0[_0x4130('0xfa')]();}return _0x51b0c0[_0x4130('0xfa')]()['done'];}}[_0x4130('0xee')](){this['editor'][_0x4130('0xcc')][_0x4130('0x105')](_0x4130('0x6c'))[_0x4130('0x8f')]({'view':'revision'}),this[_0x4130('0xcd')][_0x4130('0xcc')][_0x4130('0x105')](_0x4130('0xdc'))[_0x4130('0x38')]({'model':_0x4130('0x60'),'view':_0x1612b4=>{const _0x1c26ee=_0x1612b4[_0x4130('0x18')][_0x4130('0x109')](':')[0x1],_0xc3e244=this[_0x4130('0x119')](_0x1c26ee);if(!_0xc3e244)return null;const _0xf22b0f=_0x4130('0x79')==_0xc3e244[_0x4130('0x2')]?_0x4130('0xaf'):_0x4130('0x3d'),_0x467134=['ck-suggestion-marker','ck-suggestion-marker-'+_0xf22b0f];return _0xc3e244[_0x4130('0xf5')][_0x4130('0x2f')]&&_0x467134[_0x4130('0x88')](_0x4130('0xfd')+_0xf22b0f+_0x4130('0xa')),this[_0x4130('0x53')]==_0xc3e244&&_0x467134[_0x4130('0x88')](_0x4130('0x33')),{'classes':_0x467134,'attributes':{'data-change-id':_0x1c26ee}};}}),this['editor'][_0x4130('0xcc')][_0x4130('0x105')](_0x4130('0x6c'))[_0x4130('0x79')](_0x436703=>{_0x436703['on']('element:pre',(_0x303f8e,_0x9291a3,_0x1ed63b)=>{const _0x57ba20=_0x9291a3[_0x4130('0xf2')][_0x4130('0x4f')](0x0);if(!_0x57ba20||!_0x57ba20['is'](_0x4130('0x32'),_0x4130('0xd1')))return;if(!_0x1ed63b[_0x4130('0xd')][_0x4130('0xd8')](_0x57ba20,{'attributes':[_0x4130('0xdd'),_0x4130('0x4a')]}))return;const _0x3b0a4f=_0x9291a3[_0x4130('0x75')]['start'][_0x4130('0x6f')];_0x1ed63b[_0x4130('0xb8')][_0x4130('0x107')](_0x4130('0xdd'),_0x57ba20['getAttribute']('vid_start'),_0x3b0a4f),_0x1ed63b['writer'][_0x4130('0x107')]('vid_end',_0x57ba20[_0x4130('0x11f')](_0x4130('0x4a')),_0x3b0a4f);},{'priority':_0x4130('0xd6')});}),this[_0x4130('0xcd')]['conversion']['for']('upcast')[_0x4130('0x79')](_0x25dae0=>{_0x25dae0['on']('element',(_0x289d17,_0x3c8f99,_0x52eefa)=>{if(!_0x52eefa[_0x4130('0xd')][_0x4130('0xd8')](_0x3c8f99[_0x4130('0xf2')],{'attributes':[_0x4130('0xdd'),_0x4130('0x4a')]}))return;if(_0x3c8f99[_0x4130('0x75')][_0x4130('0x93')])return;const _0x1cf422=_0x3c8f99['modelRange']['start']['nodeAfter'];_0x1cf422[_0x4130('0x104')](_0x4130('0xdd'))||_0x1cf422['hasAttribute'](_0x4130('0x91'))||(_0x52eefa[_0x4130('0xb8')][_0x4130('0x107')](_0x4130('0xdd'),_0x3c8f99[_0x4130('0xf2')]['getAttribute']('vid_start'),_0x1cf422),_0x52eefa[_0x4130('0xb8')][_0x4130('0x107')](_0x4130('0x4a'),_0x3c8f99[_0x4130('0xf2')][_0x4130('0x11f')](_0x4130('0x4a')),_0x1cf422));},{'priority':_0x4130('0xd6')});}),this[_0x4130('0xcd')]['conversion'][_0x4130('0x105')](_0x4130('0x6c'))[_0x4130('0x48')]({'view':{'name':_0x4130('0x8a'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3aa0f0=>_0x3aa0f0[_0x4130('0x11f')](_0x4130('0x91'))}}),this['editor']['model'][_0x4130('0x118')]['on'](_0x4130('0xe7'),(_0x30c43d,[,_0x23a0a2])=>{[_0x4130('0xdd'),'vid_end','vid']['includes'](_0x23a0a2)&&(_0x30c43d[_0x4130('0xb3')]=!0x0,_0x30c43d[_0x4130('0x54')]());},{'priority':_0x4130('0x1a')}),this['editor'][_0x4130('0xcc')]['for'](_0x4130('0x62'))[_0x4130('0x79')](_0x3863c5=>{_0x3863c5['on']('attribute:vid',(_0x1fb601,_0x269b45,_0x585003)=>{if('\x20'!=_0x269b45['item'][_0x4130('0xf5')]||_0x269b45[_0x4130('0x1')][_0x4130('0x2d')][_0x4130('0x9c')]>0x1)return;if(!_0x585003[_0x4130('0xd')][_0x4130('0xd8')](_0x269b45[_0x4130('0x1')],_0x1fb601[_0x4130('0xab')]))return;const _0x3e98f2=_0x585003[_0x4130('0xb8')],_0x581b3a=_0x585003[_0x4130('0x63')][_0x4130('0xa3')](_0x269b45[_0x4130('0x94')]);_0x3e98f2['wrap'](_0x581b3a,_0x3e98f2[_0x4130('0xe1')](_0x4130('0x8a')));});}),this[_0x4130('0xcd')]['conversion'][_0x4130('0x105')]('dataDowncast')[_0x4130('0x47')]({'model':'revision'}),this[_0x4130('0xcd')][_0x4130('0x14')][_0x4130('0xd3')]['on']('addMarker:revision',function(_0x1d08ce){const _0x81c600=_0x1d08ce['plugins'][_0x4130('0x10d')]('RevisionViewer');return(_0x470810,_0x3761d4,_0x5baf48)=>{const _0x69954e=_0x3761d4[_0x4130('0x18')][_0x4130('0x109')](':')[0x1],_0x4f2814=_0x81c600['_getChangeFromId'](_0x69954e);if(!_0x4f2814)return null;const _0x8709db=_0x4130('0x79')==_0x4f2814['type']?'split':_0x4130('0x3a');if(!_0x5baf48['consumable']['test'](_0x3761d4[_0x4130('0xbf')],_0x470810[_0x4130('0xab')]))return;const _0x58ad1e=_0x3761d4[_0x4130('0xbf')][_0x4130('0x39')](),_0x228550=_0x3761d4[_0x4130('0xbf')][_0x4130('0xc0')],_0x3eeea2=_0x1d08ce[_0x4130('0x9e')][_0x4130('0x118')];let _0x45b0bb=null,_0x3a0e1c=null,_0x2252a3=!0x1,_0x64a5c6=!0x1;for(const _0x5df905 of _0x58ad1e){const _0x80a93=_0x5df905['item'];_0x2252a3=_0x2252a3||_0x3eeea2[_0x4130('0x122')](_0x80a93);const _0x252763=_0x5baf48[_0x4130('0x63')][_0x4130('0x115')](_0x80a93);if(_0x252763&&_0x252763['getCustomProperty'](_0x4130('0x30')))return;_0x4130('0xb5')==_0x5df905[_0x4130('0x2')]&&(_0x3eeea2[_0x4130('0x101')](_0x80a93)&&!_0x3eeea2[_0x4130('0x80')](_0x80a93)&&(_0x80a93[_0x4130('0x1e')]||_0x228550[_0x4130('0x6a')]?_0x45b0bb&&_0x45b0bb[_0x4130('0x2d')]==_0x80a93||(_0x45b0bb=_0x80a93,_0xf7b06d(_0x5df905[_0x4130('0xba')]),_0x64a5c6=!0x0):_0x3a0e1c=_0x3a0e1c||_0x5df905[_0x4130('0xba')]));}function _0xf7b06d(_0x662d96){const _0xe73b7c=_0x5baf48['writer'][_0x4130('0x11d')](_0x4130('0x8a'),{'class':_0x4130('0xfd')+_0x8709db}),_0x1d1259=_0x5baf48[_0x4130('0x63')][_0x4130('0x98')](_0x662d96);_0x4f2814[_0x4130('0xf5')][_0x4130('0x2f')]&&_0x5baf48[_0x4130('0xb8')]['addClass'](_0x4130('0xfd')+_0x8709db+_0x4130('0xa'),_0xe73b7c),_0x81c600['activeChange']==_0x4f2814&&_0x5baf48[_0x4130('0xb8')]['addClass'](_0x4130('0x33'),_0xe73b7c),_0x5baf48[_0x4130('0xb8')][_0x4130('0x52')](_0x1d1259,_0xe73b7c),_0x5baf48[_0x4130('0x63')][_0x4130('0x28')](_0xe73b7c,_0x3761d4['markerName']);}_0x2252a3||_0x64a5c6||!_0x3a0e1c||_0xf7b06d(_0x3a0e1c);};}(this['editor']),{'priority':_0x4130('0x83')}),this[_0x4130('0xcd')][_0x4130('0x14')][_0x4130('0xd3')]['on'](_0x4130('0x117'),(_0x57c6a2,_0xbeacdf,_0x23360c)=>{const _0x1f8d60=_0x23360c['mapper'][_0x4130('0x2c')](_0xbeacdf[_0x4130('0x18')]);if(_0x1f8d60)for(const _0x5c1199 of _0x1f8d60)(_0x5c1199[_0x4130('0xa7')]('ck-suggestion-marker-split')||_0x5c1199[_0x4130('0xa7')](_0x4130('0x9b')))&&(_0x23360c[_0x4130('0x63')]['unbindElementFromMarkerName'](_0x5c1199,_0xbeacdf[_0x4130('0x18')]),_0x23360c[_0x4130('0xb8')][_0x4130('0xc2')](_0x5c1199));},{'priority':_0x4130('0x83')}),this[_0x4130('0xcd')][_0x4130('0x14')][_0x4130('0xd3')]['on']('addMarker:revision',(_0x59b878,_0xeb424d,_0x5abbe1)=>{const _0x2b8af3=_0xeb424d[_0x4130('0x18')][_0x4130('0x109')](':')[0x1],_0x5a8718=this[_0x4130('0x119')](_0x2b8af3);if(!_0x5a8718)return null;const _0x2d1f12='add'==_0x5a8718[_0x4130('0x2')]?_0x4130('0x109'):_0x4130('0x3a');if(_0x5abbe1['consumable'][_0x4130('0xbb')](_0xeb424d[_0x4130('0xbf')],_0x59b878['name']))for(const _0x3a1831 of _0xeb424d[_0x4130('0xbf')][_0x4130('0x71')]()){if(!_0x3a1831['is']('element',_0x4130('0xdb')))continue;const _0x3e2e38=_0x5abbe1[_0x4130('0xb8')]['createUIElement'](_0x4130('0x8a'),{'class':_0x4130('0xfd')+_0x2d1f12}),_0x3bd943=_0x5abbe1[_0x4130('0x63')]['toViewPosition'](this[_0x4130('0xcd')][_0x4130('0x9e')][_0x4130('0x5e')](_0x3a1831));_0x5a8718[_0x4130('0xf5')][_0x4130('0x2f')]&&_0x5abbe1['writer'][_0x4130('0x81')](_0x4130('0xfd')+_0x2d1f12+'-new',_0x3e2e38),this[_0x4130('0x53')]==_0x5a8718&&_0x5abbe1[_0x4130('0xb8')][_0x4130('0x81')]('ck-suggestion-marker--active',_0x3e2e38),_0x5abbe1[_0x4130('0xb8')][_0x4130('0x52')](_0x3bd943,_0x3e2e38),_0x5abbe1[_0x4130('0x63')][_0x4130('0x28')](_0x3e2e38,_0xeb424d['markerName']);}},{'priority':'high'}),this[_0x4130('0xcd')]['model']['document']['on'](_0x4130('0x77'),()=>{this[_0x4130('0xcd')][_0x4130('0x14')][_0x4130('0x125')][_0x4130('0x77')](_0x2f248d=>{for(const _0x37968d of this[_0x4130('0xcd')][_0x4130('0x9e')][_0x4130('0xc')][_0x4130('0x120')]()){const _0x3ccdf6=this['editor'][_0x4130('0x9e')]['document'][_0x4130('0xf0')](_0x37968d),_0x2a30a3=this[_0x4130('0xcd')][_0x4130('0x14')][_0x4130('0x125')]['document'][_0x4130('0xf0')](_0x37968d);if(_0x2a30a3){const _0x3f3ad6=_0x3ccdf6[_0x4130('0x11f')](_0x4130('0x13'));if(_0x2f248d[_0x4130('0xe')](_0x4130('0x19'),_0x2a30a3),_0x2f248d[_0x4130('0x29')](_0x4130('0x11b'),_0x2a30a3),_0x2f248d[_0x4130('0x29')](_0x4130('0xc6'),_0x2a30a3),_0x2f248d[_0x4130('0x29')](_0x4130('0x5a'),_0x2a30a3),_0x3f3ad6){const _0x202f5a=this[_0x4130('0x119')](_0x3f3ad6);if(!_0x202f5a)return null;_0x2f248d[_0x4130('0x107')](_0x4130('0x19'),_0x3f3ad6,_0x2a30a3),_0x2f248d['addClass'](_0x4130('0x9')+_0x202f5a[_0x4130('0x2')],_0x2a30a3),this['activeChange']==_0x202f5a&&_0x2f248d[_0x4130('0x81')](_0x4130('0x5a'),_0x2a30a3);}}}});}),this[_0x4130('0xcd')][_0x4130('0xcc')][_0x4130('0x105')](_0x4130('0x6c'))[_0x4130('0x8f')]({'view':'comment','model':_0x165fc2=>_0x4130('0x86')+_0x165fc2,'converterPriority':'highest'}),this[_0x4130('0xcd')][_0x4130('0xcc')][_0x4130('0x105')](_0x4130('0x6c'))[_0x4130('0x8f')]({'view':_0x4130('0x96'),'model':_0x1a6488=>_0x4130('0xca')+_0x1a6488,'converterPriority':_0x4130('0x1a')}),this[_0x4130('0xcd')][_0x4130('0xcc')][_0x4130('0x105')](_0x4130('0x62'))['markerToData']({'model':_0x4130('0x7c'),'view':_0x34d47e=>({'name':_0x4130('0x70')+_0x34d47e,'group':_0x4130('0x7c')}),'converterPriority':_0x4130('0x1a')}),this[_0x4130('0xcd')]['conversion'][_0x4130('0x105')](_0x4130('0xdc'))[_0x4130('0x38')]({'model':'revision-suggestion','view':_0x4aa919=>{const _0x3f0e4=_0x4aa919[_0x4130('0x18')][_0x4130('0x109')](':')[0x1];return'insertion'!=_0x3f0e4&&_0x4130('0x3d')!=_0x3f0e4?null:{'classes':['ck-suggestion-preview-marker',_0x4130('0x5f')+_0x3f0e4]};}}),this[_0x4130('0xcd')]['editing'][_0x4130('0xd3')]['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor'][_0x4130('0x14')][_0x4130('0xd3')]['on'](_0x4130('0x84'),Z(this['editor'],_0x4130('0x109')),{'priority':_0x4130('0x83')}),this[_0x4130('0xcd')]['editing'][_0x4130('0xd3')]['on'](_0x4130('0xa9'),(_0x68ff8f,_0x1672d3,_0x4f826f)=>{const _0x39b821=_0x4f826f[_0x4130('0x63')][_0x4130('0x2c')](_0x1672d3['markerName']);if(_0x39b821)for(const _0x5dbd0a of _0x39b821)_0x5dbd0a['is'](_0x4130('0xbd'))&&(_0x4f826f[_0x4130('0x63')][_0x4130('0x3e')](_0x5dbd0a,_0x1672d3[_0x4130('0x18')]),_0x4f826f[_0x4130('0xb8')][_0x4130('0xc2')](_0x5dbd0a));},{'priority':'high'});}[_0x4130('0x119')](_0x486fa0){return this[_0x4130('0x7b')][_0x4130('0x10d')](_0x486fa0);}['_getViewForChange'](_0x4bb6a9){return this['_changeView']&&this[_0x4130('0x7f')][_0x4130('0x9a')](),this[_0x4130('0x7f')]=new _0x51f391(this[_0x4130('0xcd')][_0x4130('0xf6')],_0x4bb6a9),this['_changeView'];}[_0x4130('0xd4')](){this[_0x4130('0xcd')][_0x4130('0x9e')][_0x4130('0xc')]['selection']['observeMarkers']('revision'),this['on'](_0x4130('0xe3'),(_0x106ce2,_0x16d0e9,_0x4accc2,_0x513c5d)=>{_0x513c5d&&this[_0x4130('0xce')][_0x4130('0xc2')](_0x513c5d),_0x4accc2&&(this['_balloon'][_0x4130('0x79')]({'view':_0x4accc2,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x18b471=this[_0x4130('0xcd')][_0x4130('0x14')],_0x609e37=this[_0x4130('0x119')](_0x4accc2[_0x4130('0x3c')]);let _0x2d662f;if(_0x609e37[_0x4130('0xf5')]['isOnRoot']){const _0x22d3f3=_0x18b471[_0x4130('0x125')]['getDomRoot'](_0x609e37[_0x4130('0x64')]);_0x2d662f=Array['from'](_0x22d3f3[_0x4130('0x24')]());}else{const _0x25d1f0=this[_0x4130('0xcd')][_0x4130('0x9e')][_0x4130('0xb9')]['get']('revision:'+_0x4accc2['changeId']);_0x2d662f=Array[_0x4130('0xa6')](_0x18b471['mapper'][_0x4130('0x2c')](_0x25d1f0[_0x4130('0xab')]))[_0x4130('0x66')](_0x1c5555=>_0x18b471[_0x4130('0x125')]['domConverter'][_0x4130('0x22')](_0x1c5555))[_0x4130('0x66')](_0x2da0a1=>Array[_0x4130('0xa6')](_0x2da0a1[_0x4130('0x24')]()))['flat']();}if(!this[_0x4130('0xf8')])return _0x2d662f[0x0];return _0x2d662f[_0x4130('0x10e')](_0xa2ab2c=>_0xa2ab2c[_0x4130('0x90')]-0x3<=this[_0x4130('0xf8')]['y']&&_0xa2ab2c[_0x4130('0x73')]+0x3>=this[_0x4130('0xf8')]['y']&&_0xa2ab2c[_0x4130('0x2e')]-0x3<=this[_0x4130('0xf8')]['x']&&_0xa2ab2c[_0x4130('0x7')]+0x3>=this[_0x4130('0xf8')]['x'])||_0x2d662f[0x0];}}}),this[_0x4130('0xce')][_0x4130('0x34')]('revisionHistoryLabel'));}),this['on'](_0x4130('0x4d'),(_0x1f82ba,_0x1f163e,_0x3e128c,_0x24c372)=>{this['activeView']=_0x3e128c?this[_0x4130('0xf9')](_0x3e128c):null,this[_0x4130('0xcd')]['model']['change'](()=>{const _0x4122a5=this[_0x4130('0xcd')]['editing'];_0x24c372&&(_0x24c372[_0x4130('0xf5')]['isOnRoot']?_0x4122a5[_0x4130('0x125')][_0x4130('0x77')](_0x6d2e3c=>{_0x6d2e3c['removeClass']('ck-revision-history-root--active',_0x4122a5[_0x4130('0x125')]['document']['getRoot'](_0x24c372['rootName']));}):_0x4122a5[_0x4130('0x126')]('revision:'+_0x24c372['id'])),_0x3e128c&&(_0x3e128c['data']['isOnRoot']?_0x4122a5[_0x4130('0x125')]['change'](_0x5d3377=>{_0x5d3377[_0x4130('0x81')]('ck-revision-history-root--active',_0x4122a5[_0x4130('0x125')][_0x4130('0xc')][_0x4130('0xf0')](_0x3e128c[_0x4130('0x64')]));}):_0x4122a5['reconvertMarker'](_0x4130('0x7d')+_0x3e128c['id']));});}),this[_0x4130('0x1c')](this[_0x4130('0xcd')][_0x4130('0x14')]['view'][_0x4130('0xc')],_0x4130('0x45'),(_0x2315cd,_0x1897ac)=>{if(this[_0x4130('0x53')])return;const _0x377895=this['_findChangeIdFromDomTarget'](_0x1897ac[_0x4130('0xa1')]),_0x1e9ed4=this[_0x4130('0x7b')][_0x4130('0x10d')](_0x377895);_0x1e9ed4?(this[_0x4130('0xf8')]={'x':_0x1897ac[_0x4130('0xd5')]['x'],'y':_0x1897ac['domEvent']['y']},this[_0x4130('0xe0')]=this[_0x4130('0xf9')](_0x1e9ed4)):(this[_0x4130('0xf8')]=null,this[_0x4130('0xe0')]=null);}),this['listenTo'](this['editor'][_0x4130('0x14')][_0x4130('0x125')][_0x4130('0xc')],_0x4130('0x4'),(_0x5b7feb,_0xe7c235)=>{const _0x4c79d0=this[_0x4130('0x44')](_0xe7c235[_0x4130('0xa1')]),_0x28d2c2=this[_0x4130('0x7b')][_0x4130('0x10d')](_0x4c79d0);_0x28d2c2?(this[_0x4130('0xf8')]={'x':_0xe7c235[_0x4130('0xd5')]['x'],'y':_0xe7c235[_0x4130('0xd5')]['y']},_0x28d2c2===this[_0x4130('0x53')]?this[_0x4130('0xce')][_0x4130('0x42')]():this[_0x4130('0x53')]=_0x28d2c2):(this[_0x4130('0xf8')]=null,this[_0x4130('0x53')]=null);});}[_0x4130('0x44')](_0x4f22b6){do{const _0xd64526=_0x4f22b6['getAttribute'](_0x4130('0x19'));if(_0xd64526)return _0xd64526;_0x4f22b6=_0x4f22b6[_0x4130('0x2d')];}while(_0x4f22b6);return null;}[_0x4130('0x55')](){this['editor'][_0x4130('0x9e')]['change'](_0x756a22=>{for(const _0x407ff5 of this[_0x4130('0xcd')]['model'][_0x4130('0xb9')])_0x756a22[_0x4130('0xef')](_0x407ff5);});}}function Z(_0x4ff071,_0xd2a537){return(_0x36d737,_0x3c22f8,_0x5157fd)=>{if(!_0x5157fd[_0x4130('0xd')]['test'](_0x3c22f8[_0x4130('0xbf')],_0x36d737[_0x4130('0xab')]))return;const _0x3d64e6=_0x3c22f8[_0x4130('0xbf')][_0x4130('0x39')](),_0x4576dc=_0x3c22f8[_0x4130('0xbf')][_0x4130('0xc0')],_0x11aa89=_0x4ff071[_0x4130('0x9e')][_0x4130('0x118')];let _0x378574=null,_0x5b2790=null,_0x4703d9=!0x1,_0x739339=!0x1;for(const _0x5babdb of _0x3d64e6){const _0x3528a8=_0x5babdb[_0x4130('0x1')];_0x4703d9=_0x4703d9||_0x11aa89[_0x4130('0x122')](_0x3528a8);const _0x2d9189=_0x5157fd[_0x4130('0x63')]['toViewElement'](_0x3528a8);if(_0x2d9189&&_0x2d9189[_0x4130('0xe8')]('addHighlight'))return;_0x4130('0xb5')==_0x5babdb[_0x4130('0x2')]&&(_0x11aa89['isBlock'](_0x3528a8)&&!_0x11aa89[_0x4130('0x80')](_0x3528a8)&&(_0x3528a8[_0x4130('0x1e')]||_0x4576dc[_0x4130('0x6a')]?_0x378574&&_0x378574[_0x4130('0x2d')]==_0x3528a8||(_0x378574=_0x3528a8,_0x195dc8(_0x5babdb[_0x4130('0xba')]),_0x739339=!0x0):_0x5b2790=_0x5b2790||_0x5babdb[_0x4130('0xba')]));}function _0x195dc8(_0x39d6b3){const _0x59a700=_0x5157fd[_0x4130('0x63')][_0x4130('0x98')](_0x39d6b3),_0x27dcec=_0x5157fd[_0x4130('0xb8')]['createUIElement'](_0x4130('0x8a'),{'class':'ck-suggestion-preview-marker-'+_0xd2a537});_0x5157fd[_0x4130('0xb8')][_0x4130('0x52')](_0x59a700,_0x27dcec),_0x5157fd[_0x4130('0x63')]['bindElementToMarker'](_0x27dcec,_0x3c22f8[_0x4130('0x18')]);}_0x4703d9||_0x739339||!_0x5b2790||_0x195dc8(_0x5b2790);};}export class RestoreRevisionCommand extends _0x4a6d65{constructor(_0x5f4f5d){super(_0x5f4f5d);const _0x2b60e1=_0x5f4f5d[_0x4130('0x8e')]['get'](d);this[_0x4130('0x7a')]=!0x1,this['listenTo'](_0x2b60e1,'change:isReady',()=>this[_0x4130('0x10b')]()),this[_0x4130('0x1c')](_0x2b60e1,_0x4130('0x10'),()=>this[_0x4130('0x10b')]());}[_0x4130('0x26')](){const _0x4342e3=this[_0x4130('0xcd')],_0x23530d=_0x4342e3[_0x4130('0x8e')][_0x4130('0x10d')](d),_0x369323=_0x23530d[_0x4130('0xde')]?_0x23530d[_0x4130('0x25')][_0x4130('0xa5')]:null;_0x4342e3[_0x4130('0x9f')][_0x4130('0x10d')](_0x4130('0xbc'))[_0x4130('0x113')](_0x369323);}[_0x4130('0x10b')](){const {isReady:_0x3d34fb,isEnabled:_0x4484d2}=this['editor']['plugins']['get'](d);this[_0x4130('0xa8')]=_0x3d34fb&&_0x4484d2;}}export class ShowChangeCommand extends _0x4a6d65{constructor(_0x1f2d9e,{direction:_0xfe15e7}){super(_0x1f2d9e);const _0x243d70=_0x1f2d9e[_0x4130('0x8e')][_0x4130('0x10d')](d);this['affectsData']=!0x1,this[_0x4130('0x110')]=_0x4130('0xe9')===_0xfe15e7?0x1:-0x1,this[_0x4130('0x1c')](_0x243d70,_0x4130('0xd2'),()=>this[_0x4130('0x10b')]()),this[_0x4130('0x1c')](_0x243d70,_0x4130('0x10'),()=>this[_0x4130('0x10b')]());}['execute'](){const _0x4d2d49=this[_0x4130('0xcd')],_0x4dff79=_0x4d2d49['plugins'][_0x4130('0x10d')](d),{isNavigationMode:_0x335fab,currentChangeNumber:_0x33b8df}=_0x4dff79;let _0x6f8753;if(_0x4dff79['activeChange']=_0x335fab?_0x4dff79['diff'][_0x4130('0x89')][_0x4130('0x10d')](_0x33b8df+this[_0x4130('0x110')]):_0x4dff79[_0x4130('0x25')][_0x4130('0x89')][_0x4130('0x95')],_0x4dff79[_0x4130('0x53')][_0x4130('0xf5')][_0x4130('0x56')])_0x6f8753=_0x4d2d49[_0x4130('0x14')][_0x4130('0x125')][_0x4130('0xa0')](_0x4dff79[_0x4130('0x53')][_0x4130('0x64')]);else{const _0xc49bc5=_0x4d2d49[_0x4130('0x9e')][_0x4130('0xb9')][_0x4130('0x10d')](_0x4130('0x7d')+_0x4dff79[_0x4130('0x53')]['id']);_0x6f8753=_0x367e46(_0x4d2d49[_0x4130('0x14')],_0xc49bc5);}_0x100d62({'target':_0x6f8753,'viewportOffset':0x28});}[_0x4130('0x10b')](){const {isNavigationMode:_0x176110,currentChangeNumber:_0x4ead68,numberOfChanges:_0x5694e7,isReady:_0x116763,isEnabled:_0x3aefbb}=this[_0x4130('0xcd')]['plugins'][_0x4130('0x10d')](d);this['isEnabled']=!!(_0x3aefbb&&_0x116763&&_0x5694e7)&&(!_0x176110||(0x1===this[_0x4130('0x110')]?_0x4ead68<_0x5694e7-0x1:_0x4ead68>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52c2=['buttonView','listView','locale','listenTo','items','change:isActionsDropdownOpen','map','ck-on','find','ck-revision-history-sidebar__revision__actions','Name\x20this\x20revision','set','Show\x20more\x20items','add','button','isOpen','class','name','extendTemplate','_action','isActionsDropdownOpen','children','Compare\x20against\x20selected','isEnabled','function','bind','source','action','panelPosition','isReady','model','Restore\x20this\x20revision'];(function(_0x5e85e5,_0x52c2e0){const _0x34b9f5=function(_0x558799){while(--_0x558799){_0x5e85e5['push'](_0x5e85e5['shift']());}};_0x34b9f5(++_0x52c2e0);}(_0x52c2,0x1f1));const _0x34b9=function(_0x5e85e5,_0x52c2e0){_0x5e85e5=_0x5e85e5-0x0;let _0x34b9f5=_0x52c2[_0x5e85e5];return _0x34b9f5;};import{Collection as _0x4d5eb6}from'ckeditor5/src/utils';import{icons as _0x597282}from'ckeditor5/src/core';import{Model as _0x341fb5,addListToDropdown as _0x394fb1,createDropdown as _0x1faf42}from'ckeditor5/src/ui';import{getTranslation as _0x110050}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2fc1d4,_0x29bc98){const _0x225bc1=_0x2fc1d4['bindTemplate'],_0x21e3f4=_0x2fc1d4[_0x34b9('0x11')],_0x62c2cc=_0x1faf42(_0x21e3f4);_0x62c2cc[_0x34b9('0xb')]='sw';const _0x5b5410=function(_0x32306b,_0x16c691){const _0x141f78=function(_0x4b9c01,_0x4ed8a5){const _0x55b889=_0x4b9c01['locale'],_0x45ed72={'Compare\x20against\x20selected':_0x110050(_0x55b889,_0x34b9('0x5')),'Name\x20this\x20revision':_0x110050(_0x55b889,_0x34b9('0x19')),'Restore\x20this\x20revision':_0x110050(_0x55b889,_0x34b9('0xe'))};return _0x4ed8a5[_0x34b9('0x15')](_0x44df6b=>{const _0x5c5850=_0x45ed72[_0x44df6b['name']];return _0x5c5850&&_0x5c5850!==_0x44df6b[_0x34b9('0x0')]&&(_0x44df6b[_0x34b9('0x0')]=_0x5c5850),_0x44df6b;});}(_0x32306b,_0x16c691),_0x4984fb=new _0x4d5eb6();for(const _0x3e4e74 of _0x141f78){const _0x3b9b4d={'type':_0x34b9('0x1d'),'model':new _0x341fb5({'label':_0x3e4e74[_0x34b9('0x0')],'class':_0x3e4e74[_0x34b9('0x1f')],'withText':!0x0,'_action':_0x3e4e74[_0x34b9('0xa')]})};_0x3b9b4d[_0x34b9('0xd')][_0x34b9('0x8')](_0x34b9('0x6'))['to'](_0x32306b,_0x34b9('0x3'),_0x21e9bd=>'function'!=typeof _0x3e4e74[_0x34b9('0x6')]||(!_0x21e9bd||_0x3e4e74[_0x34b9('0x6')](_0x32306b))),_0x4984fb[_0x34b9('0x1c')](_0x3b9b4d);}return _0x4984fb;}(_0x2fc1d4,_0x29bc98);return _0x2fc1d4[_0x34b9('0x8')](_0x34b9('0x3'))['to'](_0x62c2cc,_0x34b9('0x1e')),_0x62c2cc[_0x34b9('0xf')][_0x34b9('0x1a')]({'label':_0x110050(_0x21e3f4,_0x34b9('0x1b')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x597282['threeVerticalDots']}),_0x62c2cc[_0x34b9('0x1')]({'attributes':{'class':[_0x34b9('0x18'),_0x225bc1['if'](_0x34b9('0x3'),_0x34b9('0x16'))]},'on':{'click':_0x225bc1['to'](_0x212b5e=>_0x212b5e['stopPropagation']())}}),_0x62c2cc['on']('execute',_0x5e7007=>{_0x2fc1d4[_0x34b9('0xc')]&&_0x34b9('0x7')==typeof _0x5e7007['source'][_0x34b9('0x2')]&&_0x5e7007[_0x34b9('0x9')][_0x34b9('0x2')](_0x2fc1d4);}),_0x394fb1(_0x62c2cc,_0x5b5410),_0x62c2cc[_0x34b9('0x12')](_0x2fc1d4,_0x34b9('0x14'),(_0x4c093f,_0x19b647,_0x343fd8)=>{if(_0x343fd8)for(const _0x1617a2 of _0x62c2cc[_0x34b9('0x10')][_0x34b9('0x13')]){const _0x235f9d=_0x1617a2[_0x34b9('0x4')]['first'],_0x36cd82=_0x29bc98[_0x34b9('0x17')](_0x35901b=>_0x35901b['action']===_0x235f9d['_action'])['isVisible'];_0x1617a2['isVisible']=void 0x0===_0x36cd82||_0x36cd82(_0x2fc1d4);}}),_0x62c2cc;}
23
+ const _0x219a=['model','locale','find','class','function','bind','source','listView','Show\x20more\x20items','name','threeVerticalDots','items','isOpen','isActionsDropdownOpen','first','extendTemplate','action','change:isActionsDropdownOpen','_action','isEnabled','set','buttonView','panelPosition','isReady','map','ck-on','execute','button','Restore\x20this\x20revision','isVisible','children'];(function(_0x43e392,_0x219a24){const _0x842938=function(_0x152734){while(--_0x152734){_0x43e392['push'](_0x43e392['shift']());}};_0x842938(++_0x219a24);}(_0x219a,0x181));const _0x8429=function(_0x43e392,_0x219a24){_0x43e392=_0x43e392-0x0;let _0x842938=_0x219a[_0x43e392];return _0x842938;};import{Collection as _0x3d6b0d}from'ckeditor5/src/utils';import{icons as _0x2f2bcf}from'ckeditor5/src/core';import{Model as _0xcabf86,addListToDropdown as _0x48e06a,createDropdown as _0x359f25}from'ckeditor5/src/ui';import{getTranslation as _0xc289d9}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x57348a,_0x1f31f0){const _0xd91e88=_0x57348a['bindTemplate'],_0x30a883=_0x57348a[_0x8429('0x13')],_0x3ad9cb=_0x359f25(_0x30a883);_0x3ad9cb[_0x8429('0x9')]='sw';const _0x229f13=function(_0xb67fba,_0x1ae3f8){const _0x39d195=function(_0x2f7b14,_0xc3dd06){const _0x469610=_0x2f7b14[_0x8429('0x13')],_0x2e708f={'Compare\x20against\x20selected':_0xc289d9(_0x469610,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0xc289d9(_0x469610,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0xc289d9(_0x469610,_0x8429('0xf'))};return _0xc3dd06[_0x8429('0xb')](_0x587442=>{const _0x29d920=_0x2e708f[_0x587442[_0x8429('0x1b')]];return _0x29d920&&_0x29d920!==_0x587442['name']&&(_0x587442[_0x8429('0x1b')]=_0x29d920),_0x587442;});}(_0xb67fba,_0x1ae3f8),_0x52989c=new _0x3d6b0d();for(const _0xe27720 of _0x39d195){const _0x2819b8={'type':_0x8429('0xe'),'model':new _0xcabf86({'label':_0xe27720[_0x8429('0x1b')],'class':_0xe27720[_0x8429('0x15')],'withText':!0x0,'_action':_0xe27720['action']})};_0x2819b8[_0x8429('0x12')][_0x8429('0x17')](_0x8429('0x6'))['to'](_0xb67fba,'isActionsDropdownOpen',_0x4a70ad=>_0x8429('0x16')!=typeof _0xe27720[_0x8429('0x6')]||(!_0x4a70ad||_0xe27720[_0x8429('0x6')](_0xb67fba))),_0x52989c['add'](_0x2819b8);}return _0x52989c;}(_0x57348a,_0x1f31f0);return _0x57348a['bind']('isActionsDropdownOpen')['to'](_0x3ad9cb,_0x8429('0x1e')),_0x3ad9cb[_0x8429('0x8')][_0x8429('0x7')]({'label':_0xc289d9(_0x30a883,_0x8429('0x1a')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2f2bcf[_0x8429('0x1c')]}),_0x3ad9cb[_0x8429('0x2')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xd91e88['if'](_0x8429('0x0'),_0x8429('0xc'))]},'on':{'click':_0xd91e88['to'](_0x3c4b06=>_0x3c4b06['stopPropagation']())}}),_0x3ad9cb['on'](_0x8429('0xd'),_0x623aad=>{_0x57348a[_0x8429('0xa')]&&'function'==typeof _0x623aad[_0x8429('0x18')]['_action']&&_0x623aad['source'][_0x8429('0x5')](_0x57348a);}),_0x48e06a(_0x3ad9cb,_0x229f13),_0x3ad9cb['listenTo'](_0x57348a,_0x8429('0x4'),(_0x287e65,_0x392f2b,_0x2d32ab)=>{if(_0x2d32ab)for(const _0x37973d of _0x3ad9cb[_0x8429('0x19')][_0x8429('0x1d')]){const _0x179932=_0x37973d[_0x8429('0x11')][_0x8429('0x1')],_0x9d9829=_0x1f31f0[_0x8429('0x14')](_0x252cee=>_0x252cee[_0x8429('0x3')]===_0x179932[_0x8429('0x5')])[_0x8429('0x10')];_0x37973d[_0x8429('0x10')]=void 0x0===_0x9d9829||_0x9d9829(_0x57348a);}}),_0x3ad9cb;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47b8=['ck-revision-history-sidebar__revision-author__name','Revision\x20creator','ck-revision-history-sidebar__revision-author','set','push','span','ck-revision-history-sidebar__revision-author_creator','setTemplate'];(function(_0x330368,_0x47b837){const _0x478b5d=function(_0xc844c0){while(--_0xc844c0){_0x330368['push'](_0x330368['shift']());}};_0x478b5d(++_0x47b837);}(_0x47b8,0x13a));const _0x478b=function(_0x330368,_0x47b837){_0x330368=_0x330368-0x0;let _0x478b5d=_0x47b8[_0x330368];return _0x478b5d;};import{View as _0xbb46f7,IconView as _0x55024d}from'ckeditor5/src/ui';import{getTranslation as _0x11fa94}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x44ee82 from'../../../theme/icons/user.svg';export default class ti extends _0xbb46f7{constructor(_0x24f1c6,_0x1a1dda,_0xb16b48){super(_0x24f1c6);const _0x249041=new _0x55024d();_0x249041[_0x478b('0x1')]({'content':_0x44ee82,'viewBox':'0\x200\x2011\x2010'});const _0x2047ab=['ck',_0x478b('0x0')];_0xb16b48&&_0x2047ab[_0x478b('0x2')](_0x478b('0x4'));const _0x5a54c8=[{'tag':_0x478b('0x3'),'attributes':{'class':['ck',_0x478b('0x6')],'title':_0x11fa94(_0x24f1c6,_0xb16b48?_0x478b('0x7'):'Revision\x20author')},'children':[_0x249041,_0x1a1dda['name']]}];this[_0x478b('0x5')]({'tag':'li','attributes':{'class':_0x2047ab},'children':_0x5a54c8});}}
23
+ const _0x5691=['Revision\x20author','ck-revision-history-sidebar__revision-author_creator','Revision\x20creator','ck-revision-history-sidebar__revision-author__name','name','set','span','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author'];(function(_0x4ceb05,_0x569184){const _0x4ae741=function(_0x118eaa){while(--_0x118eaa){_0x4ceb05['push'](_0x4ceb05['shift']());}};_0x4ae741(++_0x569184);}(_0x5691,0x1a7));const _0x4ae7=function(_0x4ceb05,_0x569184){_0x4ceb05=_0x4ceb05-0x0;let _0x4ae741=_0x5691[_0x4ceb05];return _0x4ae741;};import{View as _0x4e0d43,IconView as _0x21bb5c}from'ckeditor5/src/ui';import{getTranslation as _0x1efa74}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0xa3fcfa from'../../../theme/icons/user.svg';export default class ti extends _0x4e0d43{constructor(_0xc51e48,_0x3a8876,_0x56909e){super(_0xc51e48);const _0x300930=new _0x21bb5c();_0x300930[_0x4ae7('0x5')]({'content':_0xa3fcfa,'viewBox':_0x4ae7('0x7')});const _0x1d3484=['ck',_0x4ae7('0x8')];_0x56909e&&_0x1d3484['push'](_0x4ae7('0x1'));const _0xb410a7=[{'tag':_0x4ae7('0x6'),'attributes':{'class':['ck',_0x4ae7('0x3')],'title':_0x1efa74(_0xc51e48,_0x56909e?_0x4ae7('0x2'):_0x4ae7('0x0'))},'children':[_0x300930,_0x3a8876[_0x4ae7('0x4')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1d3484},'children':_0xb410a7});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x313e=['Revision\x20name','extendTemplate','ck-revision-history-sidebar__revision-name'];(function(_0x1dcb3d,_0x313e4b){var _0x3c0347=function(_0x1ad7d8){while(--_0x1ad7d8){_0x1dcb3d['push'](_0x1dcb3d['shift']());}};_0x3c0347(++_0x313e4b);}(_0x313e,0xe1));var _0x3c03=function(_0x1dcb3d,_0x313e4b){_0x1dcb3d=_0x1dcb3d-0x0;var _0x3c0347=_0x313e[_0x1dcb3d];return _0x3c0347;};import{LabeledFieldView as _0x9a4692}from'ckeditor5/src/ui';import{getTranslation as _0x20dcb0}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x9a4692{constructor(_0x4e2cbb,_0x237450){super(_0x4e2cbb,_0x237450),this['set']({'label':_0x20dcb0(_0x4e2cbb,_0x3c03('0x0'))}),this[_0x3c03('0x1')]({'tag':'span','attributes':{'class':[_0x3c03('0x2')]}});}}
23
+ var _0x35ff=['span','set'];(function(_0x427fb1,_0x35ff11){var _0x102793=function(_0x4ace3a){while(--_0x4ace3a){_0x427fb1['push'](_0x427fb1['shift']());}};_0x102793(++_0x35ff11);}(_0x35ff,0x17b));var _0x1027=function(_0x427fb1,_0x35ff11){_0x427fb1=_0x427fb1-0x0;var _0x102793=_0x35ff[_0x427fb1];return _0x102793;};import{LabeledFieldView as _0x34f019}from'ckeditor5/src/ui';import{getTranslation as _0x128a93}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x34f019{constructor(_0x147140,_0xcce02a){super(_0x147140,_0xcce02a),this[_0x1027('0x0')]({'label':_0x128a93(_0x147140,'Revision\x20name')}),this['extendTemplate']({'tag':_0x1027('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e3f=['ck-revision-history-sidebar__revision_highlighted','select','deselect','creator','bind','placeholder','change','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','setName','value','setTemplate','fire','ck-revision-history-sidebar__revision_selected','isHighlighted','ck-revision-history-sidebar__actions_dropdown_open','bindTemplate','highlight','filter','isConfirm','220','ck-disabled','revisionActionsView','name','_createdAtFormatted','createdAt','fieldView','.ck-thread__remove-confirm','div','map','isSelected','from','render','ck-reset','isReady','closest','ck-revision-history-sidebar__revision','set','authors','isActionsDropdownOpen','revisionNameView','length','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision-wrapper','unshift'];(function(_0x47cb2d,_0x4e3f90){const _0x266a7d=function(_0x153c10){while(--_0x153c10){_0x47cb2d['push'](_0x47cb2d['shift']());}};_0x266a7d(++_0x4e3f90);}(_0x4e3f,0x191));const _0x266a=function(_0x47cb2d,_0x4e3f90){_0x47cb2d=_0x47cb2d-0x0;let _0x266a7d=_0x4e3f[_0x47cb2d];return _0x266a7d;};import{View as _0xbac3ac,createLabeledInputText as _0x383e4d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4df562}from'ckeditor5-collaboration/src/collaboration-core';import _0x53edc6 from'./revisionnameview';import _0x2276ed from'./revisionauthorview';import{dateToPrettyFormat as _0x5f28f6}from'./utils';import{createActionsDropdownView as _0x40f7f3}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4df562(_0xbac3ac){constructor(_0x19313b,_0x1e97ae,_0x3dc1ef){super(_0x19313b);const _0x1c9f52=this[_0x266a('0x14')],_0x29164f=function(_0x53e956,_0x2b8e9a){const _0x4dedc5=Array[_0x266a('0x23')](_0x2b8e9a[_0x266a('0x2a')])[_0x266a('0x16')](_0x3ad758=>_0x3ad758!=_0x2b8e9a[_0x266a('0x7')]);return _0x2b8e9a[_0x266a('0x7')]&&_0x4dedc5[_0x266a('0x3')](_0x2b8e9a[_0x266a('0x7')]),_0x4dedc5[_0x266a('0x21')](_0x5e8be3=>new _0x2276ed(_0x53e956,_0x5e8be3,_0x5e8be3==_0x2b8e9a[_0x266a('0x7')]));}(_0x19313b,_0x1e97ae);this['id']=_0x1e97ae['id'],this['_revision']=_0x1e97ae,this['bind'](_0x266a('0x1b'),_0x266a('0x1d'))['to'](_0x1e97ae),this['bind'](_0x266a('0x1c'))['to'](this,_0x266a('0x1d'),_0x1dc8a6=>_0x1dc8a6?_0x5f28f6(_0x19313b['uiLanguage'],_0x1dc8a6):void 0x0),this[_0x266a('0x29')](_0x266a('0x22'),!0x1),this['set'](_0x266a('0x12'),!0x1),this[_0x266a('0x29')](_0x266a('0x2b'),!0x1),this[_0x266a('0x29')](_0x266a('0x26'),!0x1),this[_0x266a('0x29')](_0x266a('0xb'),!0x1),this[_0x266a('0x2c')]=new _0x53edc6(_0x19313b,_0x383e4d),this[_0x266a('0x2c')]['fieldView']['extendTemplate']({'attributes':{'maxlength':_0x266a('0x18')}}),this[_0x266a('0x2c')][_0x266a('0x1e')][_0x266a('0x8')](_0x266a('0xe'),_0x266a('0x9'))['to'](this,'name',_0x266a('0x1c')),this[_0x266a('0x2c')][_0x266a('0x8')](_0x266a('0xb'))['to'](this,_0x266a('0x22'),this,_0x266a('0xb'),(_0x453250,_0xc3b619)=>_0x453250&&_0xc3b619),this['revisionActionsView']=_0x3dc1ef&&_0x3dc1ef[_0x266a('0x0')]?_0x40f7f3(this,_0x3dc1ef):'',this[_0x266a('0x1a')]&&this[_0x266a('0x1a')][_0x266a('0x8')](_0x266a('0xb'))['to'](this),this[_0x266a('0xf')]({'tag':_0x266a('0x20'),'attributes':{'class':['ck',_0x266a('0x25'),_0x266a('0x2'),_0x1c9f52['if'](_0x266a('0x17'),_0x266a('0x1'))]},'children':[{'tag':_0x266a('0x20'),'attributes':{'class':['ck',_0x266a('0x25'),_0x266a('0x28'),_0x1c9f52['if']('isEnabled',_0x266a('0x19'),_0x378247=>!_0x378247),_0x1c9f52['if']('isSelected',_0x266a('0x11')),_0x1c9f52['if'](_0x266a('0x12'),_0x266a('0x4')),_0x1c9f52['if'](_0x266a('0x2b'),_0x266a('0x13'))]},'children':[this[_0x266a('0x2c')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1c9f52['to'](_0x266a('0x1c'))}]},{'tag':_0x266a('0x20'),'attributes':{'class':['ck',_0x266a('0xc')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x29164f}]},this[_0x266a('0x1a')]],'on':{'click':_0x1c9f52['to'](_0x48b687=>{_0x48b687['srcElement'][_0x266a('0x27')](_0x266a('0x1f'))||this['isReady']&&this[_0x266a('0xb')]&&this[_0x266a('0x10')](_0x266a('0x5'),{'id':this['id']});})}}]});}[_0x266a('0x24')](){super[_0x266a('0x24')]();const _0x4f54d9=this[_0x266a('0x2c')][_0x266a('0x1e')]['element'];this['listenTo'](_0x4f54d9,_0x266a('0xa'),()=>{this[_0x266a('0x10')](_0x266a('0xd'),{'id':this['id'],'name':_0x4f54d9[_0x266a('0xe')]});});}[_0x266a('0x5')](){this[_0x266a('0x22')]=!0x0;}[_0x266a('0x6')](){this[_0x266a('0x22')]=!0x1;}[_0x266a('0x15')](){this[_0x266a('0x12')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
23
+ const _0xd31b=['_createdAtFormatted','authors','ck-revision-history-sidebar__revision_highlighted','length','isReady','ck-revision-history-sidebar__revision_selected','render','highlight','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__actions_dropdown_open','span','revisionActionsView','deselect','fire','from','map','isSelected','creator','unhighlight','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','name','listenTo','isHighlighted','ck-disabled','ck-revision-history-sidebar__revision__date','value','div','set','closest','change','isEnabled','createdAt','isActionsDropdownOpen','unshift','revisionNameView','bind','_revision','fieldView','ck-revision-history-sidebar__revision-authors','select','bindTemplate','setName','extendTemplate','placeholder','element'];(function(_0x284b1b,_0xd31be6){const _0x1d6801=function(_0x1d95d4){while(--_0x1d95d4){_0x284b1b['push'](_0x284b1b['shift']());}};_0x1d6801(++_0xd31be6);}(_0xd31b,0x10d));const _0x1d68=function(_0x284b1b,_0xd31be6){_0x284b1b=_0x284b1b-0x0;let _0x1d6801=_0xd31b[_0x284b1b];return _0x1d6801;};import{View as _0x34aff4,createLabeledInputText as _0x16aae1}from'ckeditor5/src/ui';import{ConfirmMixin as _0x59989f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d9265 from'./revisionnameview';import _0x126325 from'./revisionauthorview';import{dateToPrettyFormat as _0x3f7e0c}from'./utils';import{createActionsDropdownView as _0x5ae26d}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x59989f(_0x34aff4){constructor(_0x11a632,_0x26486b,_0x383f10){super(_0x11a632);const _0x5b7bd2=this[_0x1d68('0x2')],_0x2669e5=function(_0x2dd8dd,_0x42b206){const _0x142e03=Array[_0x1d68('0x16')](_0x42b206[_0x1d68('0x8')])['filter'](_0x5b4192=>_0x5b4192!=_0x42b206['creator']);return _0x42b206[_0x1d68('0x19')]&&_0x142e03[_0x1d68('0x29')](_0x42b206['creator']),_0x142e03[_0x1d68('0x17')](_0x52b14c=>new _0x126325(_0x2dd8dd,_0x52b14c,_0x52b14c==_0x42b206[_0x1d68('0x19')]));}(_0x11a632,_0x26486b);this['id']=_0x26486b['id'],this[_0x1d68('0x2c')]=_0x26486b,this['bind'](_0x1d68('0x1c'),_0x1d68('0x27'))['to'](_0x26486b),this[_0x1d68('0x2b')]('_createdAtFormatted')['to'](this,_0x1d68('0x27'),_0x3c76fc=>_0x3c76fc?_0x3f7e0c(_0x11a632['uiLanguage'],_0x3c76fc):void 0x0),this[_0x1d68('0x23')](_0x1d68('0x18'),!0x1),this[_0x1d68('0x23')]('isHighlighted',!0x1),this[_0x1d68('0x23')]('isActionsDropdownOpen',!0x1),this['set'](_0x1d68('0xb'),!0x1),this[_0x1d68('0x23')](_0x1d68('0x26'),!0x1),this[_0x1d68('0x2a')]=new _0x2d9265(_0x11a632,_0x16aae1),this[_0x1d68('0x2a')][_0x1d68('0x2d')][_0x1d68('0x4')]({'attributes':{'maxlength':'220'}}),this['revisionNameView'][_0x1d68('0x2d')][_0x1d68('0x2b')](_0x1d68('0x21'),_0x1d68('0x5'))['to'](this,_0x1d68('0x1c'),_0x1d68('0x7')),this[_0x1d68('0x2a')]['bind'](_0x1d68('0x26'))['to'](this,_0x1d68('0x18'),this,'isEnabled',(_0x25a6b2,_0x585c08)=>_0x25a6b2&&_0x585c08),this[_0x1d68('0x13')]=_0x383f10&&_0x383f10[_0x1d68('0xa')]?_0x5ae26d(this,_0x383f10):'',this[_0x1d68('0x13')]&&this[_0x1d68('0x13')]['bind'](_0x1d68('0x26'))['to'](this),this['setTemplate']({'tag':_0x1d68('0x22'),'attributes':{'class':['ck','ck-reset',_0x1d68('0x10'),_0x5b7bd2['if']('isConfirm',_0x1d68('0x1b'))]},'children':[{'tag':_0x1d68('0x22'),'attributes':{'class':['ck','ck-reset',_0x1d68('0xf'),_0x5b7bd2['if']('isEnabled',_0x1d68('0x1f'),_0x44733a=>!_0x44733a),_0x5b7bd2['if']('isSelected',_0x1d68('0xc')),_0x5b7bd2['if'](_0x1d68('0x1e'),_0x1d68('0x9')),_0x5b7bd2['if'](_0x1d68('0x28'),_0x1d68('0x11'))]},'children':[this[_0x1d68('0x2a')],{'tag':_0x1d68('0x12'),'attributes':{'class':['ck',_0x1d68('0x20')]},'children':[{'text':_0x5b7bd2['to'](_0x1d68('0x7'))}]},{'tag':_0x1d68('0x22'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1d68('0x0')]},'children':_0x2669e5}]},this[_0x1d68('0x13')]],'on':{'click':_0x5b7bd2['to'](_0x16d6db=>{_0x16d6db['srcElement'][_0x1d68('0x24')]('.ck-thread__remove-confirm')||this[_0x1d68('0xb')]&&this['isEnabled']&&this[_0x1d68('0x15')](_0x1d68('0x1'),{'id':this['id']});})}}]});}[_0x1d68('0xd')](){super[_0x1d68('0xd')]();const _0x5573de=this[_0x1d68('0x2a')][_0x1d68('0x2d')][_0x1d68('0x6')];this[_0x1d68('0x1d')](_0x5573de,_0x1d68('0x25'),()=>{this[_0x1d68('0x15')](_0x1d68('0x3'),{'id':this['id'],'name':_0x5573de[_0x1d68('0x21')]});});}[_0x1d68('0x1')](){this[_0x1d68('0x18')]=!0x0;}[_0x1d68('0x14')](){this[_0x1d68('0x18')]=!0x1;}[_0x1d68('0xe')](){this[_0x1d68('0x1e')]=!0x0;}[_0x1d68('0x1a')](){this[_0x1d68('0x1e')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20fd=['true','toggle','isVisible','set','click','ck-revision-history-sidebar__subrevision-collapser','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','ck-hidden','false'];(function(_0xb90479,_0x20fd57){const _0x157658=function(_0x32cc0f){while(--_0x32cc0f){_0xb90479['push'](_0xb90479['shift']());}};_0x157658(++_0x20fd57);}(_0x20fd,0x94));const _0x1576=function(_0xb90479,_0x20fd57){_0xb90479=_0xb90479-0x0;let _0x157658=_0x20fd[_0xb90479];return _0x157658;};import{View as _0x4b1b2a}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4b1b2a{constructor(_0x1a0f8c){super(_0x1a0f8c);const _0x2badd4=this[_0x1576('0x3')];this[_0x1576('0x9')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1576('0x0')]({'tag':_0x1576('0xc'),'attributes':{'class':['ck',_0x1576('0xb'),_0x2badd4['if'](_0x1576('0x8'),_0x1576('0x4'),_0x33ba0=>!_0x33ba0),_0x2badd4['if'](_0x1576('0x1'),_0x1576('0xd'))],'role':'button','aria-pressed':_0x2badd4['to']('_isCollapsed',_0x23554f=>_0x23554f?_0x1576('0x5'):_0x1576('0x6'))},'children':[{'tag':_0x1576('0xc'),'attributes':{'class':['ck',_0x1576('0x2')]}}],'on':{'click':_0x2badd4['to'](_0x1576('0xa'))}});}[_0x1576('0x7')](){this[_0x1576('0x1')]=!this['_isCollapsed'];}}
23
+ const _0x116b=['false','ck-revision-history-sidebar__subrevision-collapser','isVisible','true','set','click','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','ck-hidden','_isCollapsed'];(function(_0x4a662c,_0x116bc1){const _0x2ceb64=function(_0x1fb8e5){while(--_0x1fb8e5){_0x4a662c['push'](_0x4a662c['shift']());}};_0x2ceb64(++_0x116bc1);}(_0x116b,0x19c));const _0x2ceb=function(_0x4a662c,_0x116bc1){_0x4a662c=_0x4a662c-0x0;let _0x2ceb64=_0x116b[_0x4a662c];return _0x2ceb64;};import{View as _0x13b22b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x13b22b{constructor(_0x1a2b6d){super(_0x1a2b6d);const _0x293c28=this['bindTemplate'];this[_0x2ceb('0xa')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2ceb('0x2')]({'tag':'span','attributes':{'class':['ck',_0x2ceb('0x7'),_0x293c28['if'](_0x2ceb('0x8'),_0x2ceb('0x4'),_0x2124e8=>!_0x2124e8),_0x293c28['if'](_0x2ceb('0x5'),_0x2ceb('0x1'))],'role':'button','aria-pressed':_0x293c28['to'](_0x2ceb('0x5'),_0x1d2d80=>_0x1d2d80?_0x2ceb('0x6'):_0x2ceb('0x9'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x2ceb('0x3')]}}],'on':{'click':_0x293c28['to'](_0x2ceb('0x0'))}});}['toggle'](){this['_isCollapsed']=!this[_0x2ceb('0x5')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d25=['_createdAtFormatted','ck-revision-history-sidebar__revision__date','uiLanguage','span','creator','ck-revision-history-sidebar__revision-authors','createdAt','bindTemplate','select','fire','ck-revision-history-sidebar__subrevision','set','deselect','div','isSelected','ck-revision-history-sidebar__revision_selected','bind','_parentRevisionId'];(function(_0x1739ff,_0x1d2591){const _0x2a2105=function(_0x41fda4){while(--_0x41fda4){_0x1739ff['push'](_0x1739ff['shift']());}};_0x2a2105(++_0x1d2591);}(_0x1d25,0xc5));const _0x2a21=function(_0x1739ff,_0x1d2591){_0x1739ff=_0x1739ff-0x0;let _0x2a2105=_0x1d25[_0x1739ff];return _0x2a2105;};import{View as _0x277bcb}from'ckeditor5/src/ui';import _0x5e4e6c from'./revisionauthorview';import{dateToPrettyFormat as _0x5ec02c}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x277bcb{constructor(_0x38a57c,_0x22e981,_0x67112){super(_0x38a57c);const _0x2d9a3c=this[_0x2a21('0x8')];this['id']=_0x22e981['id'],this[_0x2a21('0x11')](_0x2a21('0x7'))['to'](_0x22e981),this[_0x2a21('0xc')](_0x2a21('0xf'),!0x1),this[_0x2a21('0x11')](_0x2a21('0x1'))['to'](this,_0x2a21('0x7'),_0x42608d=>_0x42608d?_0x5ec02c(_0x38a57c[_0x2a21('0x3')],_0x42608d):void 0x0),this[_0x2a21('0x0')]=_0x67112,this['setTemplate']({'tag':_0x2a21('0xe'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2a21('0xb'),_0x2d9a3c['if'](_0x2a21('0xf'),_0x2a21('0x10'))]},'children':[{'tag':_0x2a21('0x4'),'attributes':{'class':['ck',_0x2a21('0x2')]},'children':[{'text':_0x2d9a3c['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x2a21('0x6')]},'children':[new _0x5e4e6c(_0x38a57c,_0x22e981[_0x2a21('0x5')],!0x0)]}],'on':{'click':_0x2d9a3c['to'](this[_0x2a21('0x9')]['bind'](this))}});}[_0x2a21('0x9')](){this[_0x2a21('0xf')]=!0x0,this[_0x2a21('0xa')]('select',{'parentId':this[_0x2a21('0x0')]});}[_0x2a21('0xd')](){this[_0x2a21('0xf')]=!0x1;}}
23
+ const _0x253c=['setTemplate','fire','bindTemplate','div','select','span','ck-reset','isSelected','createdAt','set','ck-revision-history-sidebar__revision','deselect','ck-revision-history-sidebar__revision_selected','uiLanguage','_parentRevisionId','creator','_createdAtFormatted','bind','ck-revision-history-sidebar__revision__date'];(function(_0x4c564f,_0x253c47){const _0x2154fd=function(_0x52ff27){while(--_0x52ff27){_0x4c564f['push'](_0x4c564f['shift']());}};_0x2154fd(++_0x253c47);}(_0x253c,0x1a4));const _0x2154=function(_0x4c564f,_0x253c47){_0x4c564f=_0x4c564f-0x0;let _0x2154fd=_0x253c[_0x4c564f];return _0x2154fd;};import{View as _0x4d5abd}from'ckeditor5/src/ui';import _0x2c9b1d from'./revisionauthorview';import{dateToPrettyFormat as _0x40da13}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x4d5abd{constructor(_0x4543ab,_0x4fcb33,_0x46fa9a){super(_0x4543ab);const _0x5b99fd=this[_0x2154('0x0')];this['id']=_0x4fcb33['id'],this[_0x2154('0xf')](_0x2154('0x6'))['to'](_0x4fcb33),this[_0x2154('0x7')](_0x2154('0x5'),!0x1),this['bind'](_0x2154('0xe'))['to'](this,_0x2154('0x6'),_0xe6fe9=>_0xe6fe9?_0x40da13(_0x4543ab[_0x2154('0xb')],_0xe6fe9):void 0x0),this[_0x2154('0xc')]=_0x46fa9a,this[_0x2154('0x11')]({'tag':_0x2154('0x1'),'attributes':{'class':['ck',_0x2154('0x4'),_0x2154('0x8'),'ck-revision-history-sidebar__subrevision',_0x5b99fd['if'](_0x2154('0x5'),_0x2154('0xa'))]},'children':[{'tag':_0x2154('0x3'),'attributes':{'class':['ck',_0x2154('0x10')]},'children':[{'text':_0x5b99fd['to'](_0x2154('0xe'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x2c9b1d(_0x4543ab,_0x4fcb33[_0x2154('0xd')],!0x0)]}],'on':{'click':_0x5b99fd['to'](this[_0x2154('0x2')][_0x2154('0xf')](this))}});}[_0x2154('0x2')](){this[_0x2154('0x5')]=!0x0,this[_0x2154('0x12')]('select',{'parentId':this['_parentRevisionId']});}[_0x2154('0x9')](){this[_0x2154('0x5')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4e5f=['toLocaleDateString','numeric','toLocaleTimeString'];(function(_0xc5f820,_0x4e5fb9){var _0x351f46=function(_0x5af536){while(--_0x5af536){_0xc5f820['push'](_0xc5f820['shift']());}};_0x351f46(++_0x4e5fb9);}(_0x4e5f,0x97));var _0x351f=function(_0xc5f820,_0x4e5fb9){_0xc5f820=_0xc5f820-0x0;var _0x351f46=_0x4e5f[_0xc5f820];return _0x351f46;};export function dateToPrettyFormat(_0x32a712,_0x432a40){return _0x432a40[_0x351f('0x2')](_0x32a712,{'month':'long','day':_0x351f('0x0')})+',\x20'+_0x432a40[_0x351f('0x1')](_0x32a712,{'hour':_0x351f('0x0'),'minute':_0x351f('0x0')});}
23
+ var _0x4910=['toLocaleDateString','long','numeric'];(function(_0x450af5,_0x491073){var _0x2d7e47=function(_0x1eefe5){while(--_0x1eefe5){_0x450af5['push'](_0x450af5['shift']());}};_0x2d7e47(++_0x491073);}(_0x4910,0x186));var _0x2d7e=function(_0x450af5,_0x491073){_0x450af5=_0x450af5-0x0;var _0x2d7e47=_0x4910[_0x450af5];return _0x2d7e47;};export function dateToPrettyFormat(_0x29c913,_0x553cfe){return _0x553cfe[_0x2d7e('0x0')](_0x29c913,{'month':_0x2d7e('0x1'),'day':_0x2d7e('0x2')})+',\x20'+_0x553cfe['toLocaleTimeString'](_0x29c913,{'hour':'numeric','minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x179c=['locale','ck-responsive-form','setTemplate','label','ck-button-save','extendTemplate','cancel','reset','input','forEach','listenTo','keystrokes','set','ck-button-cancel','render','form','revisionNameInputValue','shift\x20+\x20tab','execute','220','_createRevisionNameInput','_focusCycler','arrowup','stopPropagation','focusTracker','arrowright','element','revisionName','ck-revision-history-save-revision-form','trim','arrowleft','focusFirst','_createButton','_focusables','focus','value','cancelButtonView','Save','submit','saveButtonView','revisionNameInputView','delegate','fieldView','arrowdown','check','add'];(function(_0xaf9f2e,_0x179c40){const _0x1c9cc7=function(_0x367134){while(--_0x367134){_0xaf9f2e['push'](_0xaf9f2e['shift']());}};_0x1c9cc7(++_0x179c40);}(_0x179c,0x92));const _0x1c9c=function(_0xaf9f2e,_0x179c40){_0xaf9f2e=_0xaf9f2e-0x0;let _0x1c9cc7=_0x179c[_0xaf9f2e];return _0x1c9cc7;};import{icons as _0x51beaa}from'ckeditor5/src/core';import{ButtonView as _0x4452cf,FocusCycler as _0x56bc61,LabeledFieldView as _0x20db42,View as _0x1a3ebc,ViewCollection as _0x10e1e4,createLabeledInputText as _0x42de9e,injectCssTransitionDisabler as _0x3a6156,submitHandler as _0x4b173e}from'ckeditor5/src/ui';import{FocusTracker as _0x17a9ea,KeystrokeHandler as _0x45d9e9}from'ckeditor5/src/utils';import{getTranslation as _0x56eb39}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x1a3ebc{constructor(_0x3cd628){super(_0x3cd628),this[_0x1c9c('0x10')]=new _0x17a9ea(),this['keystrokes']=new _0x45d9e9(),this[_0x1c9c('0x4')]('revisionNameInputValue',''),this[_0x1c9c('0x20')]=this['_createRevisionNameInput'](),this[_0x1c9c('0x1f')]=this['_createButton'](_0x56eb39(_0x3cd628,_0x1c9c('0x1d')),_0x51beaa[_0x1c9c('0x24')],_0x1c9c('0x2a')),this['saveButtonView']['type']=_0x1c9c('0x1e'),this['cancelButtonView']=this['_createButton'](_0x56eb39(_0x3cd628,'Cancel'),_0x51beaa[_0x1c9c('0x2c')],_0x1c9c('0x5'),_0x1c9c('0x2c')),this['_focusables']=new _0x10e1e4(),this[_0x1c9c('0xd')]=new _0x56bc61({'focusables':this[_0x1c9c('0x19')],'focusTracker':this[_0x1c9c('0x10')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x1c9c('0x9'),'focusNext':'tab'}}),this[_0x1c9c('0x28')]({'tag':_0x1c9c('0x7'),'attributes':{'class':['ck',_0x1c9c('0x14'),_0x1c9c('0x27')],'tabindex':'-1'},'children':[this[_0x1c9c('0x20')],this[_0x1c9c('0x1f')],this[_0x1c9c('0x1c')]]}),_0x3a6156(this);}['render'](){super[_0x1c9c('0x6')](),_0x4b173e({'view':this}),([this[_0x1c9c('0x20')],this[_0x1c9c('0x1f')],this[_0x1c9c('0x1c')]][_0x1c9c('0x1')](_0x1f59de=>{this['_focusables'][_0x1c9c('0x25')](_0x1f59de),this[_0x1c9c('0x10')][_0x1c9c('0x25')](_0x1f59de['element']);}),this[_0x1c9c('0x3')][_0x1c9c('0x2')](this[_0x1c9c('0x12')]));const _0x2d3715=_0x29276f=>_0x29276f[_0x1c9c('0xf')]();this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0x11'),_0x2d3715),this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0x16'),_0x2d3715),this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0xe'),_0x2d3715),this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0x23'),_0x2d3715);}[_0x1c9c('0x1a')](){this[_0x1c9c('0xd')][_0x1c9c('0x17')]();}get['revisionName'](){return this[_0x1c9c('0x20')][_0x1c9c('0x22')][_0x1c9c('0x12')]['value']['trim']();}set[_0x1c9c('0x13')](_0x10fa35){this['revisionNameInputView'][_0x1c9c('0x22')][_0x1c9c('0x12')][_0x1c9c('0x1b')]=_0x10fa35[_0x1c9c('0x15')]();}[_0x1c9c('0x2d')](){this[_0x1c9c('0x20')][_0x1c9c('0x22')][_0x1c9c('0x12')]['value']='';}[_0x1c9c('0xc')](){const _0x194d99=new _0x20db42(this[_0x1c9c('0x26')],_0x42de9e),_0x3fffa9=_0x194d99['fieldView'];return _0x3fffa9[_0x1c9c('0x2b')]({'attributes':{'maxlength':_0x1c9c('0xb')}}),_0x194d99[_0x1c9c('0x29')]=_0x56eb39(this[_0x1c9c('0x26')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3fffa9['on'](_0x1c9c('0x0'),()=>{this[_0x1c9c('0x8')]=_0x3fffa9['element']['value'][_0x1c9c('0x15')]();}),_0x194d99;}[_0x1c9c('0x18')](_0x2d3b57,_0x12806d,_0x2dfc53,_0x18a5ba){const _0x518d95=new _0x4452cf(this['locale']);return _0x518d95[_0x1c9c('0x4')]({'label':_0x2d3b57,'icon':_0x12806d,'tooltip':!0x0}),_0x518d95[_0x1c9c('0x2b')]({'attributes':{'class':_0x2dfc53}}),_0x18a5ba&&_0x518d95[_0x1c9c('0x21')](_0x1c9c('0xa'))['to'](this,_0x18a5ba),_0x518d95;}}
23
+ const _0x5598=['ck-revision-history-save-revision-form','saveButtonView','setTemplate','keystrokes','Cancel','ck-button-save','value','focus','focusTracker','220','render','delegate','reset','tab','_focusCycler','shift\x20+\x20tab','fieldView','arrowleft','_createRevisionNameInput','type','focusFirst','_focusables','_createButton','revisionNameInputValue','label','element','revisionNameInputView','ck-responsive-form','trim','arrowdown','cancelButtonView','form','set','Save','submit','cancel','forEach','arrowup','Name\x20of\x20the\x20revision\x20(optional)','ck-button-cancel','locale','add','revisionName'];(function(_0x77996e,_0x559842){const _0x33fa80=function(_0x5e8ef9){while(--_0x5e8ef9){_0x77996e['push'](_0x77996e['shift']());}};_0x33fa80(++_0x559842);}(_0x5598,0x83));const _0x33fa=function(_0x77996e,_0x559842){_0x77996e=_0x77996e-0x0;let _0x33fa80=_0x5598[_0x77996e];return _0x33fa80;};import{icons as _0xc75bae}from'ckeditor5/src/core';import{ButtonView as _0x11c9a7,FocusCycler as _0x35fd67,LabeledFieldView as _0x130a72,View as _0x554ca5,ViewCollection as _0x4934a1,createLabeledInputText as _0x1969a7,injectCssTransitionDisabler as _0x37ba57,submitHandler as _0x10af68}from'ckeditor5/src/ui';import{FocusTracker as _0x1793c2,KeystrokeHandler as _0x1ac0d1}from'ckeditor5/src/utils';import{getTranslation as _0x2e9828}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class bt extends _0x554ca5{constructor(_0x275770){super(_0x275770),this[_0x33fa('0x6')]=new _0x1793c2(),this[_0x33fa('0x1')]=new _0x1ac0d1(),this[_0x33fa('0x1e')](_0x33fa('0x15'),''),this['revisionNameInputView']=this[_0x33fa('0x10')](),this[_0x33fa('0x2a')]=this[_0x33fa('0x14')](_0x2e9828(_0x275770,_0x33fa('0x1f')),_0xc75bae['check'],_0x33fa('0x3')),this[_0x33fa('0x2a')][_0x33fa('0x11')]=_0x33fa('0x20'),this[_0x33fa('0x1c')]=this[_0x33fa('0x14')](_0x2e9828(_0x275770,_0x33fa('0x2')),_0xc75bae[_0x33fa('0x21')],_0x33fa('0x25'),'cancel'),this[_0x33fa('0x13')]=new _0x4934a1(),this[_0x33fa('0xc')]=new _0x35fd67({'focusables':this[_0x33fa('0x13')],'focusTracker':this[_0x33fa('0x6')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x33fa('0xd'),'focusNext':_0x33fa('0xb')}}),this[_0x33fa('0x0')]({'tag':_0x33fa('0x1d'),'attributes':{'class':['ck',_0x33fa('0x29'),_0x33fa('0x19')],'tabindex':'-1'},'children':[this[_0x33fa('0x18')],this[_0x33fa('0x2a')],this[_0x33fa('0x1c')]]}),_0x37ba57(this);}[_0x33fa('0x8')](){super[_0x33fa('0x8')](),_0x10af68({'view':this}),([this[_0x33fa('0x18')],this['saveButtonView'],this['cancelButtonView']][_0x33fa('0x22')](_0x280dc8=>{this['_focusables'][_0x33fa('0x27')](_0x280dc8),this['focusTracker'][_0x33fa('0x27')](_0x280dc8[_0x33fa('0x17')]);}),this[_0x33fa('0x1')]['listenTo'](this[_0x33fa('0x17')]));const _0x2cd06e=_0x9c4000=>_0x9c4000['stopPropagation']();this[_0x33fa('0x1')]['set']('arrowright',_0x2cd06e),this[_0x33fa('0x1')][_0x33fa('0x1e')](_0x33fa('0xf'),_0x2cd06e),this['keystrokes'][_0x33fa('0x1e')](_0x33fa('0x23'),_0x2cd06e),this['keystrokes'][_0x33fa('0x1e')](_0x33fa('0x1b'),_0x2cd06e);}[_0x33fa('0x5')](){this[_0x33fa('0xc')][_0x33fa('0x12')]();}get[_0x33fa('0x28')](){return this[_0x33fa('0x18')][_0x33fa('0xe')][_0x33fa('0x17')]['value'][_0x33fa('0x1a')]();}set['revisionName'](_0x574376){this[_0x33fa('0x18')][_0x33fa('0xe')][_0x33fa('0x17')][_0x33fa('0x4')]=_0x574376[_0x33fa('0x1a')]();}[_0x33fa('0xa')](){this['revisionNameInputView'][_0x33fa('0xe')][_0x33fa('0x17')][_0x33fa('0x4')]='';}['_createRevisionNameInput'](){const _0x49197d=new _0x130a72(this[_0x33fa('0x26')],_0x1969a7),_0xeb8550=_0x49197d[_0x33fa('0xe')];return _0xeb8550['extendTemplate']({'attributes':{'maxlength':_0x33fa('0x7')}}),_0x49197d[_0x33fa('0x16')]=_0x2e9828(this[_0x33fa('0x26')],_0x33fa('0x24')),_0xeb8550['on']('input',()=>{this[_0x33fa('0x15')]=_0xeb8550['element']['value'][_0x33fa('0x1a')]();}),_0x49197d;}[_0x33fa('0x14')](_0x2e4480,_0x553330,_0x1af430,_0x2d9aff){const _0x402d2b=new _0x11c9a7(this['locale']);return _0x402d2b['set']({'label':_0x2e4480,'icon':_0x553330,'tooltip':!0x0}),_0x402d2b['extendTemplate']({'attributes':{'class':_0x1af430}}),_0x2d9aff&&_0x402d2b[_0x33fa('0x9')]('execute')['to'](this,_0x2d9aff),_0x402d2b;}}