@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231127.0 → 0.0.0-nightly-20231129.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb233=['change:isReady','createAttributeElement','name','restoreRevision','attribute:vid','element:pre','isContent','_processTape','roots','forceDisabled','revisionHistory','_findChangeIdFromDomTarget','isEnabled','error','editingDowncast','children','bottom','revision-comment:','splice','getRevisionRootsAttributes','concat','end','revision','stop','POSITIVE_INFINITY','markerToHighlight','upcast','_initInteractions','getWalker','highest','index','parent','dataToMarker','diffData','includes','createPositionFromPath','writer','attachChange','get','getRootNames','_changeIdToChange','high','editor','ck-revision-history-root-remove','isAdded','refresh','target','nextSibling','insertion','_refreshStartEndIndex','element','has','adapter','view','revisionHistoryAttachChange','removeMarker','addHighlight','createRevision','isBefore','remove','abs','_removeUnsupportedChanges','repository','deletion','findIndex','data-change-id','hasAttribute','from','isLimit','span','_appendChild','dataDowncast','revision-viewer','bind','split','numberOfChanges','rootName','showStack','_sortAndFilterDiffChanges','revisionHistoryLabel','then','sort','low','_getViewForChange','isAtEnd','previousPosition','addMarker:revision','_activeViewTarget','elementEnd','isAttached','mousedown','markerNameToElements','isBlock','execute','checkAttribute','isOnRoot','side','oldRevisionId','_markMismatchedRemovedTags','isAfter','getAttributes','merge','viewItem','_setDistance','currentChangeNumber','change','done','enqueueChange','isInline','activeView','isReady','suggestion:','revision-end','_removeRevisionMarkers','_removeMissingPairs','config','isEqual','indexOf','downcastDispatcher','getChild','deletions','addMarker:revision-suggestion:deletion','ck-suggestion-preview-marker-','markerRange','commands','isAddSuggestion','range','elementToAttribute','revision-suggestion:','all','_joinTapes','comment','_step','test','removeMarker:revision','change:activeChange','forEach','revision-suggestion','_makeModelFromViewString','shift','_cleanMarkers','insertions','left','offsetSize','toModel','getDomRoot','markerToData','addRevision','startIndex','for','toData','getRoot','text','consumable','ck-suggestion-marker--active','pluginName','catch','isRemoved','ck-revision-history-root-add','ck-suggestion-marker','data-revision-','loadRevisionData','hasClass','affectsData','code','removeClass','userId','consume','mapper','diff','change:isEnabled','getRevision','restoreRevisionCallback','useFillerType','clear','filter','init','slice','createRangeIn','data','find','changes','WidgetToolbarRepository','getClientRects','add','nodeAfter','pairId','document','_makeTape','nextPosition','elementStart','observeMarkers','getItems','requires','_changeView','string','_balloon','attributes','isRemoveSuggestion','markersEnd','_makeModelFromTape','conversion','change:activeView','revision:','getAttribute','_getChangeFromId','start','_setChanges','_getDiff','editing','vid_end','_getViewObj','unbindElementFromMarkerName','ck-editor__editable__overlay','createRange','item','maxOffset','showNextChange','wrap','_setConversion','addMarker:revision-suggestion:insertion','_threeWayMerge','attributesAfter','map','processor','authors','uiElement','suggestion','markersStart','_markMarkers','listenTo','selection','detachRoot','modelRange','addClass','compare','unshift','destroy','isNavigationMode','isObject','bindElementToMarker','isAtStart','endIndex','RevisionsRepository','_fixObsoleteTags','_data','markers','_cleanUp','_getRevisionsRange','domConverter','schema','type','-new','locale','set','length','getIndex','activeChange','isCollapsed','object','vid','markerName','softBreak','insert','marked','startsWith','ck-suggestion-marker-','plugins','push','reconvertMarker','vid_start','delete','level','model','next','_markSuggestions','createUIElement','_markInsertions','_update','ck-revision-history-root--active','isIncorrect','keys','isSuggestion','getCustomProperty','distance','setAttribute','toViewPosition','first','changeId','domEvent','RevisionViewer'];(function(_0x2d735b,_0xb23323){const _0x234b76=function(_0x1d74ad){while(--_0x1d74ad){_0x2d735b['push'](_0x2d735b['shift']());}};_0x234b76(++_0xb23323);}(_0xb233,0x123));const _0x234b=function(_0x2d735b,_0xb23323){_0x2d735b=_0x2d735b-0x0;let _0x234b76=_0xb233[_0x2d735b];return _0x234b76;};import{Plugin as _0x2e0c8d,Command as _0x349962}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x46ecbd}from'ckeditor5/src/utils';import{ContextualBalloon as _0x28bc6c}from'ckeditor5/src/ui';import{DocumentFragment as _0x5611e1,Element as _0x30e2cd,Text as _0x5bcfa1,ViewDocumentFragment as _0x561f79,ViewText as _0x524404,ViewElement as _0x68b40a,ViewContainerElement as _0x4b94fa,ViewAttributeElement as _0x19e4b2,ViewEmptyElement as _0x21a0e2,ViewRawElement as _0x50f20a,ViewUIElement as _0x922b7a}from'ckeditor5/src/engine';import{Users as _0x2cd8b7,getMarkerDomElement as _0x1d3894}from'ckeditor5-collaboration/src/collaboration-core';import _0x3d3978 from'./ui/revisionviewer/changedetailsview';import _0x2055b9 from'./revisionsrepository';import _0x5656c0 from'./changeitem';import{default as _0x2e9d2b}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x28b9ba}from'lodash-es';const tt={'c':_0x4b94fa,'a':_0x19e4b2,'e':_0x21a0e2,'r':_0x50f20a,'u':_0x922b7a};export default class d extends _0x2e0c8d{static get[_0x234b('0x9b')](){return _0x234b('0x122');}static get[_0x234b('0xc1')](){return[_0x2cd8b7,_0x28bc6c,_0x2055b9];}constructor(_0xb3e726){super(_0xb3e726),this[_0x234b('0x3e')]=this[_0x234b('0x2a')][_0x234b('0x10b')]['get'](_0x234b('0xf3')),this[_0x234b('0xfe')](_0x234b('0x101'),null),this['set'](_0x234b('0x6d'),null),this[_0x234b('0x57')]=null,this[_0x234b('0xfe')](_0x234b('0xa9'),null),this[_0x234b('0xfe')](_0x234b('0x6e'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x234b('0xaa'),(_0x5607d1,_0x4cee4b,_0xf7bc3a)=>{this[_0x234b('0x101')]=null,this['activeView']=null,this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x69')](_0x2e2649=>{for(const _0x40ebe8 of this['editor'][_0x234b('0xd1')][_0x234b('0x35')]['document'][_0x234b('0x8')])_0xf7bc3a?_0x2e2649[_0x234b('0xa5')](_0x234b('0xd5'),_0x40ebe8):_0x2e2649[_0x234b('0xea')]('ck-editor__editable__overlay',_0x40ebe8);});}),this[_0x234b('0x49')](_0x234b('0xee'))['to'](this,_0x234b('0x101'),_0x287940=>null!==_0x287940),this[_0x234b('0x49')](_0x234b('0x68'))['to'](this,'isReady',this,'diff',this,_0x234b('0x101'),(_0x5ef7db,_0x460153,_0x22b7d0)=>_0x5ef7db&&_0x22b7d0?_0x460153[_0x234b('0xb5')]['getIndex'](_0x22b7d0):0x0),this['bind'](_0x234b('0x4b'))['to'](this,_0x234b('0x6e'),this,_0x234b('0xa9'),(_0x396516,_0x245fc4)=>_0x396516?_0x245fc4['changes'][_0x234b('0xff')]:0x0),this[_0x234b('0xc2')]=null,this[_0x234b('0x28')]=new Map(),this[_0x234b('0x34')]=null,this['_balloon']=this[_0x234b('0x2a')]['plugins'][_0x234b('0x26')](_0x28bc6c);}[_0x234b('0xb0')](){const _0x12b66a=this[_0x234b('0x2a')],_0x266ce9=new ShowChangeCommand(_0x12b66a,{'direction':'backward'}),_0x1681c5=new ShowChangeCommand(_0x12b66a,{'direction':'forward'});(_0x12b66a[_0x234b('0x7c')]['add']('showPreviousChange',_0x266ce9),_0x12b66a[_0x234b('0x7c')]['add'](_0x234b('0xd9'),_0x1681c5),_0x12b66a[_0x234b('0x7c')][_0x234b('0xb8')](_0x234b('0x3'),new RestoreRevisionCommand(_0x12b66a)),this['on']('change:numberOfChanges',()=>{_0x266ce9[_0x234b('0x2d')](),_0x1681c5[_0x234b('0x2d')]();}),this[_0x234b('0xdb')](),this[_0x234b('0x1b')](),_0x12b66a['enableReadOnlyMode']('revision-viewer'),_0x12b66a['plugins'][_0x234b('0x33')]('WidgetToolbarRepository'))&&_0x12b66a['plugins'][_0x234b('0x26')](_0x234b('0xb6'))[_0x234b('0x9')](_0x234b('0x48'));}async['getRevisionData'](_0x1f2d0f){await this[_0x234b('0xa1')](_0x1f2d0f);const _0x35ca52={};for(const _0x32ec75 in _0x1f2d0f['diffData']){if(_0x1f2d0f[_0x234b('0x21')][_0x32ec75][_0x234b('0x25')]&&!_0x1f2d0f[_0x234b('0x21')][_0x32ec75]['attachChange'][_0x234b('0x59')])continue;const _0x41afd3=this[_0x234b('0x71')](JSON['parse'](_0x1f2d0f[_0x234b('0x21')][_0x32ec75][_0x234b('0x8d')])),_0xb1d4ee=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')]['document'],_0x1f1b13=new _0x561f79(_0xb1d4ee,_0x41afd3['map'](_0x966b73=>this['_getViewObj'](_0x966b73)));this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')]['useFillerType'](_0x234b('0x108')),_0x35ca52[_0x32ec75]=this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')][_0x234b('0x96')](_0x1f1b13),this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')][_0x234b('0xad')]('default');}return _0x35ca52;}async[_0x234b('0x13')](_0x506e0d){await this[_0x234b('0xa1')](_0x506e0d);const _0x5c544a={};for(const _0x26eaf0 in _0x506e0d[_0x234b('0x21')])_0x506e0d[_0x234b('0x21')][_0x26eaf0][_0x234b('0x25')]&&!_0x506e0d[_0x234b('0x21')][_0x26eaf0]['attachChange']['isAttached']||(_0x5c544a[_0x26eaf0]=_0x506e0d['diffData'][_0x26eaf0][_0x234b('0xde')]||{});return _0x5c544a;}['_removeRevisionMarkers'](_0x44112e){return(_0x44112e=_0x44112e[_0x234b('0xaf')](_0x9a799=>!_0x9a799[_0x234b('0x2')]||'revision-start'!==_0x9a799[_0x234b('0x2')]&&_0x234b('0x70')!==_0x9a799[_0x234b('0x2')]))['forEach'](_0x479954=>{_0x234b('0xc3')!=typeof _0x479954&&(_0x479954['children']=this[_0x234b('0x71')](_0x479954['children']),_0x479954[_0x234b('0xc5')]=_0x479954[_0x234b('0xc5')][_0x234b('0xaf')](_0x2f8867=>!_0x2f8867[0x0][_0x234b('0x109')](_0x234b('0xa0'))));}),_0x44112e;}async[_0x234b('0xeb')](_0x24e4c1,_0x568d39,_0x1e4855=!0x1){if(!this[_0x234b('0xc')])return;const _0x27d9be=this[_0x234b('0xa9')],_0x4c73e8=this[_0x234b('0x3e')],_0x13fd60=_0x234b('0xc3')==typeof _0x24e4c1?_0x4c73e8[_0x234b('0xab')](_0x24e4c1):_0x24e4c1,_0xf4576f=_0x234b('0xc3')==typeof _0x568d39?_0x4c73e8[_0x234b('0xab')](_0x568d39):_0x568d39,_0x51ae97=_0x13fd60['id'],_0x54d2d3=_0xf4576f?_0xf4576f['id']:null;if(!_0x1e4855&&this[_0x234b('0xa9')]&&this[_0x234b('0xa9')]['newRevisionId']===_0x51ae97&&this[_0x234b('0xa9')][_0x234b('0x61')]===_0x54d2d3)return Promise['resolve']();this['isReady']=!0x1,this[_0x234b('0x6d')]=null,this[_0x234b('0x101')]=null,this['diff']=new _0x2e9d2b(_0x51ae97,_0x54d2d3);const _0x51cc22=this[_0x234b('0xf8')](_0x13fd60,_0xf4576f,!0x0)[_0x234b('0xdf')](_0x3f8ad4=>this['loadRevisionData'](_0x3f8ad4));return _0x51cc22['push'](new Promise(_0x4146a5=>{setTimeout(_0x4146a5,0x14);})),Promise[_0x234b('0x81')](_0x51cc22)['then'](()=>{if(!this[_0x234b('0xc')])return;this[_0x234b('0xf7')]();const _0x5ac68e=this[_0x234b('0xd0')](_0x51ae97,_0x54d2d3);for(const _0x1de02c of _0x5ac68e[_0x234b('0xb5')])this[_0x234b('0x28')][_0x234b('0xfe')](_0x1de02c['id'],_0x1de02c);this['editor'][_0x234b('0x111')][_0x234b('0x6b')]({'isUndoable':!0x1},_0x52c274=>{for(const _0x1451f8 of this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]())_0x52c274['detachRoot'](_0x1451f8);for(const _0x4ebe66 of Object[_0x234b('0x119')](_0x5ac68e['model'])){const _0x1437ed=_0x52c274['addRoot'](_0x4ebe66);for(const _0x4b50f6 of Object['keys'](_0x5ac68e[_0x234b('0xc5')][_0x4ebe66]))_0x52c274['setAttribute'](_0x4b50f6,_0x5ac68e[_0x234b('0xc5')][_0x4ebe66][_0x4b50f6],_0x1437ed);_0x52c274['insert'](_0x5ac68e[_0x234b('0x111')][_0x4ebe66],_0x1437ed,0x0);}}),this[_0x234b('0xa9')][_0x234b('0xcf')](this[_0x234b('0x4e')](_0x5ac68e[_0x234b('0xb5')])),this[_0x234b('0x6e')]=!0x0;})[_0x234b('0x9c')](_0x102280=>{console[_0x234b('0xd')](_0x102280),this[_0x234b('0xf7')](),_0x27d9be&&(this['diff']=_0x27d9be),this[_0x234b('0x6e')]=!0x0;});}['addRevisionData'](_0x346ece,_0x277c6c){const _0x2a0183=this[_0x234b('0x3e')][_0x234b('0x39')](_0x346ece);return _0x2a0183['on'](_0x234b('0x116'),(_0x407534,_0x3b1492,_0x14b73d)=>_0x277c6c(_0x3b1492,_0x14b73d,_0x2a0183)),this[_0x234b('0x3e')][_0x234b('0x93')](_0x2a0183),_0x2a0183;}[_0x234b('0xa1')](_0x2458a1){if(!_0x2458a1||_0x2458a1['diffData'])return Promise['resolve']();{const _0x221b07=this[_0x234b('0x2a')][_0x234b('0x73')][_0x234b('0x26')]('collaboration.channelId');return this['adapter'][_0x234b('0xab')]({'channelId':_0x221b07,'revisionId':_0x2458a1['id']})[_0x234b('0x50')](_0x59f23b=>{_0x2458a1[_0x234b('0x116')]({'diffData':_0x59f23b['diffData']},!0x0);});}}[_0x234b('0xf7')](){this[_0x234b('0x101')]=null,this['_cleanMarkers'](),this[_0x234b('0xc2')]&&this[_0x234b('0xc2')][_0x234b('0xed')](),this[_0x234b('0xc2')]=null,this['_changeIdToChange'][_0x234b('0xae')](),this[_0x234b('0x2a')]['model'][_0x234b('0x6b')]({'isUndoable':!0x1},_0x466a37=>{for(const _0x4b26d8 of this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]())_0x466a37[_0x234b('0xe8')](_0x4b26d8);});}[_0x234b('0x4e')](_0x1fe1ce){const _0x5b2159=[],_0x5b6cc6=new Map();for(const _0xbf1e2b of this['editor'][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]()){const _0x14eaac=this['editor'][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x91')](_0xbf1e2b);if(!_0x14eaac)continue;const _0x3d2a33=_0x14eaac[_0x234b('0xb7')]()['item'](0x0);_0x3d2a33&&(_0x5b2159[_0x234b('0x10c')](_0xbf1e2b),_0x5b6cc6['set'](_0xbf1e2b,_0x3d2a33));}return _0x5b2159[_0x234b('0x51')]((_0x24cc86,_0x26ede5)=>{const _0x34cadd=_0x5b6cc6[_0x234b('0x26')](_0x24cc86),_0xe8abe2=_0x5b6cc6[_0x234b('0x26')](_0x26ede5);return _0x34cadd['y']-_0xe8abe2['y']||_0x34cadd['x']-_0xe8abe2['x'];}),(_0x1fe1ce=_0x1fe1ce['filter'](_0x2c96c9=>_0x5b2159['includes'](_0x2c96c9[_0x234b('0x4c')])))[_0x234b('0x51')]((_0x3b18d0,_0xd92641)=>_0x5b2159[_0x234b('0x75')](_0x3b18d0[_0x234b('0x4c')])-_0x5b2159['indexOf'](_0xd92641[_0x234b('0x4c')])),_0x1fe1ce;}['_makeTape'](_0x5f9226){const _0x533db1=Array['from'](_0x5f9226[_0x234b('0xf6')])[_0x234b('0xaf')](([_0x5ea261,_0x133e2c])=>_0x5ea261[_0x234b('0x109')]('revision:')&&!_0x133e2c[_0x234b('0x102')]),_0x51b135=Array[_0x234b('0x43')](this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xb2')](_0x5f9226)[_0x234b('0x1c')]({'singleCharacters':!0x0}));if(0x0!=_0x533db1[_0x234b('0xff')])for(const _0x32d7c7 of _0x51b135){const [_0x7f129a,_0x5b6c17]=_0x533db1[0x0],[,_0x339ea8,_0x425fb9]=_0x7f129a[_0x234b('0x4a')](':');if(_0x5b6c17[_0x234b('0x15')][_0x234b('0x74')](_0x32d7c7['nextPosition'])&&_0x533db1[_0x234b('0x8b')](),(_0x32d7c7[_0x234b('0x55')]['isEqual'](_0x5b6c17[_0x234b('0xce')])||_0x32d7c7[_0x234b('0x55')][_0x234b('0x63')](_0x5b6c17[_0x234b('0xce')]))&&(_0x234b('0x30')==_0x339ea8?_0x32d7c7[_0x234b('0x2c')]={'userId':_0x425fb9}:'deletion'==_0x339ea8&&(_0x32d7c7[_0x234b('0x9d')]={'userId':_0x425fb9})),0x0==_0x533db1[_0x234b('0xff')])break;}return _0x51b135;}[_0x234b('0x31')](_0x189763){const _0x4789fc=new Map();for(let _0x4b0aad=0x0;_0x4b0aad<_0x189763[_0x234b('0xff')];_0x4b0aad++)_0x234b('0x98')===_0x189763[_0x4b0aad][_0x234b('0xfb')]?(_0x189763[_0x4b0aad][_0x234b('0xd7')][_0x234b('0x94')]=_0x4b0aad,_0x189763[_0x4b0aad]['item'][_0x234b('0xf2')]=_0x4b0aad):('elementStart'===_0x189763[_0x4b0aad][_0x234b('0xfb')]?_0x189763[_0x4b0aad][_0x234b('0xd7')][_0x234b('0x94')]=_0x4b0aad:_0x234b('0x58')===_0x189763[_0x4b0aad][_0x234b('0xfb')]&&(_0x189763[_0x4b0aad]['item']['endIndex']=_0x4b0aad),_0x4789fc[_0x234b('0xfe')](_0x189763[_0x4b0aad]['id'],_0x4b0aad));for(const _0x4ec4ae of _0x4789fc['values']())_0x234b('0xbe')===_0x189763[_0x4ec4ae][_0x234b('0xfb')]?_0x189763[_0x4ec4ae][_0x234b('0xd7')][_0x234b('0xf2')]=_0x4789fc[_0x234b('0x26')](_0x189763[_0x4ec4ae][_0x234b('0xba')]):_0x234b('0x58')===_0x189763[_0x4ec4ae][_0x234b('0xfb')]&&(_0x189763[_0x4ec4ae][_0x234b('0xd7')][_0x234b('0x94')]=_0x4789fc[_0x234b('0x26')](_0x189763[_0x4ec4ae]['pairId']));}[_0x234b('0x7')](_0x32207c){for(let _0x47c24c=0x0;_0x47c24c<_0x32207c[_0x234b('0xff')];_0x47c24c++){if(_0x234b('0xbe')===_0x32207c[_0x47c24c][_0x234b('0xfb')])_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')]=_0x47c24c;else{if(_0x234b('0x58')===_0x32207c[_0x47c24c]['type']){_0x32207c[_0x47c24c][_0x234b('0xd7')]['endIndex']=_0x47c24c;const _0x28ad84=_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')];_0x32207c[_0x28ad84][_0x234b('0xba')]=_0x32207c[_0x47c24c]['id'],_0x32207c[_0x47c24c][_0x234b('0xba')]=_0x32207c[_0x28ad84]['id'];}else _0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')]=_0x47c24c,_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0xf2')]=_0x47c24c,_0x32207c[_0x47c24c][_0x234b('0xba')]=null;}_0x32207c[_0x47c24c][_0x234b('0xe4')]||(_0x32207c[_0x47c24c][_0x234b('0xe4')]=[],_0x32207c[_0x47c24c][_0x234b('0xc7')]=[]);}}[_0x234b('0x115')](_0x562f78,_0x2e7e73){const _0x572d10=_0x562f78[_0x234b('0xaf')](_0x54fa4a=>!_0x54fa4a['isAdded']);for(let _0x12f0a3=0x0;_0x12f0a3<_0x2e7e73[_0x234b('0xff')];_0x12f0a3++)_0x2e7e73[_0x12f0a3][_0x234b('0x2c')]&&(_0x572d10[_0x12f0a3][_0x234b('0x2c')]=_0x2e7e73[_0x12f0a3]['isAdded']);}['_makeModelFromViewString'](_0x21e7ba){const _0x340d94=JSON['parse'](_0x21e7ba),_0x623bca=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],_0xd7aecd=new _0x561f79(_0x623bca,_0x340d94[_0x234b('0xdf')](_0x1f5e98=>this[_0x234b('0xd3')](_0x1f5e98)));return this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0x90')](_0xd7aecd);}['_getViewObj'](_0x170f25){const _0xaaf21e=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')];if('string'==typeof _0x170f25)return new _0x524404(_0xaaf21e,_0x170f25);{const _0x1bb17a=_0x170f25[_0x234b('0xf')][_0x234b('0xdf')](_0x186c15=>this[_0x234b('0xd3')](_0x186c15));return new(tt[_0x170f25[(_0x234b('0xfb'))]]||_0x68b40a)(_0xaaf21e,_0x170f25[_0x234b('0x2')],_0x170f25[_0x234b('0xc5')],_0x1bb17a);}}['_getDiff'](_0x3754b7,_0x363284=null){const _0x5c7ced=this['repository'][_0x234b('0xab')](_0x3754b7),_0x1c8bad=_0x363284?this[_0x234b('0x3e')][_0x234b('0xab')](_0x363284):null,_0x4e409f=this[_0x234b('0xf8')](_0x5c7ced,_0x1c8bad),_0x2362c5=_0x4e409f[_0x4e409f[_0x234b('0xff')]-0x1],_0xe3b5a2=new Map(),_0x4bdd4f={'model':{},'attributes':{},'changes':[]},_0x46a910=new Set(),_0x588155=new Map();for(let _0x2cd68b=_0x4e409f['length']-0x1;_0x2cd68b>=0x0;_0x2cd68b--){const _0x23bb6b=_0x4e409f[_0x2cd68b];for(const _0x3f63a8 of Object['keys'](_0x23bb6b[_0x234b('0x21')]))if(_0x23bb6b['diffData'][_0x3f63a8]['attachChange']){const _0x40461e=_0x23bb6b[_0x234b('0x21')][_0x3f63a8][_0x234b('0x25')];_0x40461e[_0x234b('0x59')]?(_0x46a910[_0x234b('0xb8')](_0x3f63a8),_0x588155[_0x234b('0x33')](_0x3f63a8)&&_0x588155[_0x234b('0x26')](_0x3f63a8)['userId']==_0x40461e[_0x234b('0xa6')]?_0x588155[_0x234b('0x10f')](_0x3f63a8):_0x588155['set'](_0x3f63a8,_0x40461e)):_0x588155['has'](_0x3f63a8)?(_0x46a910[_0x234b('0x10f')](_0x3f63a8),_0x588155[_0x234b('0x10f')](_0x3f63a8)):(_0x46a910['add'](_0x3f63a8),_0x588155[_0x234b('0xfe')](_0x3f63a8,_0x40461e));}else _0x46a910[_0x234b('0xb8')](_0x3f63a8);}for(const _0x2a4ee9 of _0x46a910){const _0xe4da4f=_0x588155[_0x234b('0x33')](_0x2a4ee9)&&!_0x588155[_0x234b('0x26')](_0x2a4ee9)[_0x234b('0x59')];let _0x5093a7=_0xe4da4f?_0x4e409f[_0x234b('0xff')]-0x1:0x0;const _0x35d14a=_0xe4da4f?-0x1:0x1;for(;_0x4e409f[_0x5093a7];){const _0x32880c=_0x4e409f[_0x5093a7];if(_0x32880c['diffData'][_0x2a4ee9]){const _0x31ea1f=_0xe4da4f?_0x32880c[_0x234b('0x21')][_0x2a4ee9]['attributesBefore']:_0x32880c[_0x234b('0x21')][_0x2a4ee9]['attributesAfter'];_0x4bdd4f['attributes'][_0x2a4ee9]=_0x31ea1f?_0x28b9ba(_0x31ea1f):{};break;}_0x5093a7+=_0x35d14a;}}for(const _0x2bc356 of _0x4e409f){_0x2bc356[_0x234b('0x111')]={};for(const _0x3e359a of _0x2bc356[_0x234b('0xe1')])_0xe3b5a2['set'](_0x3e359a['id'],_0x3e359a);for(const _0x1c55e9 of _0x46a910){const _0x21db5d=_0x2bc356[_0x234b('0x21')][_0x1c55e9]?_0x2bc356['diffData'][_0x1c55e9][_0x234b('0x8d')]:'[]',_0x426650=_0x2bc356[_0x234b('0x21')][_0x1c55e9]?_0x2bc356[_0x234b('0x21')][_0x1c55e9]['deletions']:'[]';_0x2bc356[_0x234b('0x111')][_0x1c55e9]={'insertions':this[_0x234b('0x8a')](_0x21db5d),'deletions':this[_0x234b('0x8a')](_0x426650)};}}for(const _0x258bf2 of _0x46a910){let _0x34b2b2=null,_0x5e0a3d=0x0;const _0x522ded=new Map(Array[_0x234b('0x43')](_0x5c7ced[_0x234b('0x111')][_0x258bf2][_0x234b('0x8d')][_0x234b('0xf6')])['filter'](([_0x76eaec])=>!_0x76eaec[_0x234b('0x109')](_0x234b('0xcb'))));let _0x3dabad=0x0;for(const _0x4b49da of _0x4e409f){const _0x69bafd=this[_0x234b('0xbc')](_0x4b49da['model'][_0x258bf2][_0x234b('0x8d')]);_0x4b49da==_0x5c7ced?(_0x34b2b2=_0x69bafd,_0x5e0a3d=_0x34b2b2[_0x234b('0xff')],_0x34b2b2['forEach'](_0x5519df=>{_0x5519df['id']=_0x3dabad++;}),this[_0x234b('0x7')](_0x34b2b2)):this['_markInsertions'](_0x34b2b2,_0x69bafd);const _0x551a2b=_0x34b2b2[_0x234b('0xaf')](_0x46133d=>!_0x46133d[_0x234b('0x2c')])[_0x234b('0xdf')](_0x42caf0=>_0x42caf0['id']);let _0x3d5577=0x0;const _0x933c40=this['_makeTape'](_0x4b49da[_0x234b('0x111')][_0x258bf2][_0x234b('0x78')]);_0x933c40[_0x234b('0x88')](_0xc58518=>{_0xc58518[_0x234b('0x9d')]?_0xc58518['id']=_0x5e0a3d++:_0xc58518['id']=_0x551a2b[_0x3d5577++];}),this['_processTape'](_0x933c40),this[_0x234b('0x67')](_0x34b2b2,_0x234b('0x2c')),this[_0x234b('0x67')](_0x933c40,'isRemoved'),_0x4b49da==_0x5c7ced&&this[_0x234b('0xe5')](_0x34b2b2,_0x522ded),_0x34b2b2=this[_0x234b('0x82')](_0x34b2b2,_0x933c40),this[_0x234b('0x31')](_0x34b2b2),this[_0x234b('0x67')](_0x34b2b2,_0x234b('0x9d'));}_0x34b2b2=_0x34b2b2[_0x234b('0xaf')](_0x9d902a=>!(_0x9d902a[_0x234b('0x2c')]&&_0x9d902a[_0x234b('0x9d')]));const _0xaf4397=new Map(_0x2362c5['model'][_0x258bf2][_0x234b('0x78')][_0x234b('0xf6')]),_0x44ab19=new Set(_0x522ded[_0x234b('0x119')]());for(const _0x4d059e of _0xaf4397[_0x234b('0x119')]())_0x44ab19[_0x234b('0x10f')](_0x4d059e);this['_markSuggestions'](_0x34b2b2,_0x44ab19),this['_fixObsoleteTags'](_0x34b2b2),_0x34b2b2=this[_0x234b('0x72')](_0x34b2b2),_0x34b2b2=this['_markMismatchedRemovedTags'](_0x34b2b2),_0x34b2b2=this[_0x234b('0x3d')](_0x34b2b2);const {root:_0x34f1b8,changes:_0x181900}=this[_0x234b('0xc8')](_0x34b2b2,_0xe3b5a2,_0x258bf2);_0x4bdd4f[_0x234b('0x111')][_0x258bf2]=_0x34f1b8;const _0x33b5d5=_0x588155[_0x234b('0x26')](_0x258bf2);if(_0x33b5d5){const _0x270677=_0xe3b5a2['get'](_0x33b5d5['userId']),_0x145175=new _0x5656c0({'author':_0x270677,'type':_0x33b5d5['isAttached']?_0x234b('0xb8'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x258bf2});_0x181900[_0x234b('0xec')](_0x145175),_0x4bdd4f[_0x234b('0xc5')][_0x258bf2][_0x234b('0x36')]=_0x145175['id'];}_0x4bdd4f[_0x234b('0xb5')]=_0x4bdd4f['changes'][_0x234b('0x14')](_0x181900);}return _0x4bdd4f;}['_markMarkers'](_0x319c28,_0x29ecc9){for(let _0x574438=0x0;_0x574438<_0x319c28[_0x234b('0xff')];_0x574438++)for(const [_0x93be27,_0x5f5a66]of _0x29ecc9)_0x5f5a66[_0x234b('0xce')][_0x234b('0x74')](_0x319c28[_0x574438][_0x234b('0x55')])&&_0x319c28[_0x574438][_0x234b('0xe4')][_0x234b('0x10c')](_0x93be27),_0x5f5a66[_0x234b('0x15')][_0x234b('0x74')](_0x319c28[_0x574438][_0x234b('0xbd')])&&_0x319c28[_0x574438][_0x234b('0xc7')]['push'](_0x93be27);}[_0x234b('0x82')](_0x12e97d,_0x4c4d82){let _0x593c3a=[],_0x42845f=0x0,_0x3613e4=0x0;for(;_0x42845f<_0x12e97d[_0x234b('0xff')]||_0x3613e4<_0x4c4d82[_0x234b('0xff')];){const _0xefc53f=_0x12e97d[_0x42845f]||{},_0x1b2d16=_0x4c4d82[_0x3613e4]||{};if(_0xefc53f['id']==_0x1b2d16['id'])_0x42845f++,_0x3613e4++,_0x593c3a[_0x234b('0x10c')](_0xefc53f);else{if(_0x1b2d16[_0x234b('0x9d')]&&_0xefc53f['isAdded']){const {commonTape:_0x58de7f,iEnd:_0xad94ac,jEnd:_0x3511f3}=this['_threeWayMerge'](_0x12e97d,_0x42845f,_0x4c4d82,_0x3613e4);_0x593c3a=_0x593c3a[_0x234b('0x14')](_0x58de7f),_0x42845f=_0xad94ac,_0x3613e4=_0x3511f3;}else _0x1b2d16[_0x234b('0x9d')]?(_0x3613e4++,_0x593c3a[_0x234b('0x10c')](_0x1b2d16)):(_0x42845f++,_0x593c3a[_0x234b('0x10c')](_0xefc53f));}}return _0x593c3a;}[_0x234b('0x113')](_0xc2ee8e,_0x3de6d9){const _0x1a4c95=[];for(let _0x38b8c6=0x0;_0x38b8c6<_0xc2ee8e['length'];_0x38b8c6++){for(let _0x3c7d38=0x0;_0x3c7d38<_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')]['length'];_0x3c7d38++){const _0x2ffedc=_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')][_0x3c7d38];if(!_0x3de6d9['has'](_0x2ffedc))continue;const {group:_0x5ae783,type:_0x43b1c4,authorId:_0x53f03b}=_0x993aa7(_0x2ffedc);'revision-suggestion'!=_0x5ae783||_0x234b('0x30')!=_0x43b1c4&&_0x234b('0x3f')!=_0x43b1c4||(_0x1a4c95[_0x234b('0xec')]({'type':_0x43b1c4,'name':_0x2ffedc,'userId':_0x53f03b}),_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')]['splice'](_0x3c7d38,0x1),_0x3c7d38--);}_0x590b03(_0xc2ee8e[_0x38b8c6]);for(let _0x1d613a=0x0;_0x1d613a<_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')]['length'];_0x1d613a++){const _0x1f3035=_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')][_0x1d613a];if(!_0x3de6d9[_0x234b('0x33')](_0x1f3035))continue;const {group:_0x17f723,type:_0x546bee}=_0x993aa7(_0x1f3035);if(_0x234b('0x89')!=_0x17f723||'insertion'!=_0x546bee&&_0x234b('0x3f')!=_0x546bee)continue;_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')]['splice'](_0x1d613a,0x1),_0x1d613a--;const _0x1eca38=_0x1a4c95[_0x234b('0x40')](_0x177674=>_0x177674[_0x234b('0x2')]==_0x1f3035);_0x1eca38>-0x1&&_0x1a4c95['splice'](_0x1eca38,0x1);}}function _0x993aa7(_0x53ea60){const _0x3da905=_0x53ea60[_0x234b('0x4a')](':');return{'group':_0x3da905[0x0],'type':_0x3da905[0x1],'subType':_0x3da905['length']>=0x5?_0x3da905[0x2]:null,'id':_0x3da905[_0x234b('0xff')]<0x5?_0x3da905[0x2]:_0x3da905[0x3],'authorId':_0x3da905[_0x234b('0xff')]<0x5?_0x3da905[0x3]:_0x3da905[0x4],'markerCount':0x6==_0x3da905[_0x234b('0xff')]?_0x3da905[0x5]:null};}function _0x590b03(_0x18856e){for(let _0x2afe1e=0x0;_0x2afe1e<_0x1a4c95[_0x234b('0xff')];_0x2afe1e++){if(_0x18856e[_0x234b('0x2c')]&&_0x234b('0x30')==_0x1a4c95[_0x2afe1e][_0x234b('0xfb')])return _0x18856e[_0x234b('0x7d')]=_0x1a4c95[_0x2afe1e],void delete _0x18856e[_0x234b('0x2c')];if(!_0x18856e['isAdded']&&!_0x18856e['isRemoved']&&_0x234b('0x3f')==_0x1a4c95[_0x2afe1e][_0x234b('0xfb')])return void(_0x18856e['isRemoveSuggestion']=_0x1a4c95[_0x2afe1e]);}}}[_0x234b('0x67')](_0x3206f7,_0x52cd1d){let _0x4dc33e=0x0,_0x433ddb=!0x1;const _0x200b89=new Map();for(const _0x320d14 of _0x3206f7)_0x320d14[_0x52cd1d]?_0x433ddb&&(_0x4dc33e++,_0x433ddb=!0x1):(_0x4dc33e++,_0x433ddb=!0x0),_0x200b89['set'](_0x320d14['id'],_0x4dc33e);for(let _0x283491=0x0;_0x283491<_0x3206f7[_0x234b('0xff')];_0x283491++){if(_0x234b('0x9d')==_0x52cd1d&&_0x3206f7[_0x283491][_0x234b('0x2c')]||'isAdded'==_0x52cd1d&&_0x3206f7[_0x283491][_0x234b('0x9d')])continue;if('text'==_0x3206f7[_0x283491][_0x234b('0xfb')]){_0x3206f7[_0x283491][_0x234b('0x11c')]=0x0;continue;}const _0x3446e3=_0x200b89[_0x234b('0x26')](_0x3206f7[_0x283491][_0x234b('0xba')]),_0x562670=_0x200b89[_0x234b('0x26')](_0x3206f7[_0x283491]['id']);_0x3206f7[_0x283491]['distance']=_0x3446e3-_0x562670;}}[_0x234b('0xf8')](_0x4f46cd,_0x5a94f6,_0x4dfc69=!0x1){const _0x59ddd8=[];let _0x47508d=this[_0x234b('0x3e')][_0x234b('0x100')](_0x4f46cd),_0x2c610f=this[_0x234b('0x3e')][_0x234b('0x100')](_0x5a94f6);for(-0x1==_0x2c610f&&(_0x2c610f=this[_0x234b('0x3e')]['_revisions'][_0x234b('0xff')],_0x4dfc69=!0x1);_0x47508d<_0x2c610f;)_0x59ddd8[_0x234b('0x10c')](this[_0x234b('0x3e')][_0x234b('0xab')](_0x47508d)),_0x47508d++;return _0x4dfc69&&_0x59ddd8[_0x234b('0x10c')](this[_0x234b('0x3e')][_0x234b('0xab')](_0x47508d)),_0x59ddd8;}[_0x234b('0xdd')](_0xdacf50,_0x519c7b,_0x1f51d0,_0x356b7d){const _0x193390=this[_0x234b('0x2a')]['model'][_0x234b('0xfa')];let _0x2903c7=_0x519c7b;for(;_0xdacf50[_0x2903c7]&&_0xdacf50[_0x2903c7][_0x234b('0x2c')];)_0x2903c7++;let _0x3eb93d=_0x356b7d;for(;_0x1f51d0[_0x3eb93d]&&_0x1f51d0[_0x3eb93d][_0x234b('0x9d')];)_0x3eb93d++;_0x21d794(_0xdacf50,_0x519c7b,_0x2903c7),_0x21d794(_0x1f51d0,_0x356b7d,_0x3eb93d);const _0x3332c6=_0x1f51d0[_0x234b('0xb1')](_0x356b7d,_0x3eb93d)['concat'](_0xdacf50[_0x234b('0xb1')](_0x519c7b,_0x2903c7));return _0x3332c6[_0x234b('0x51')]((_0x359bce,_0x426d52)=>_0x359bce[_0x234b('0x60')]!=_0x426d52[_0x234b('0x60')]?_0x359bce['side']-_0x426d52['side']:_0x359bce['level']!=_0x426d52['level']?_0x359bce[_0x234b('0x110')]-_0x426d52['level']:_0x359bce['distance']!=_0x426d52[_0x234b('0x11c')]?_0x426d52[_0x234b('0x11c')]-_0x359bce[_0x234b('0x11c')]:!!_0x359bce[_0x234b('0x2c')]!=!!_0x426d52[_0x234b('0x2c')]?-0x1==_0x359bce[_0x234b('0x60')]||0x0==_0x359bce[_0x234b('0x60')]?_0x359bce['isAdded']?-0x1:0x1:_0x359bce[_0x234b('0x2c')]?0x1:-0x1:_0x359bce[_0x234b('0x1e')]-_0x426d52[_0x234b('0x1e')]),{'commonTape':_0x3332c6,'iEnd':_0x2903c7,'jEnd':_0x3eb93d};function _0x21d794(_0xe7c91e,_0x57bc84,_0x3ef6e7){let _0x568537=-0x1,_0x2e3b6a=Number[_0x234b('0x18')],_0x520cd1=!0x0;for(let _0xf8dc13=_0x57bc84;_0xf8dc13<_0x3ef6e7;_0xf8dc13++)if(_0x193390[_0x234b('0x6c')](_0xe7c91e[_0xf8dc13][_0x234b('0xd7')])||(_0x520cd1=!0x1),_0xe7c91e[_0xf8dc13][_0x234b('0xd7')][_0x234b('0x94')]<_0x57bc84&&(_0x568537=_0xf8dc13),_0xe7c91e[_0xf8dc13][_0x234b('0xd7')]['endIndex']>=_0x3ef6e7){_0x2e3b6a=_0xf8dc13;break;}_0x520cd1&&(_0x568537=_0x3ef6e7-0x1);for(let _0x1b5b51=_0x57bc84;_0x1b5b51<_0x3ef6e7;_0x1b5b51++)_0xe7c91e[_0x1b5b51][_0x234b('0x60')]=_0x1b5b51<=_0x568537?-0x1:_0x1b5b51<_0x2e3b6a?0x0:0x1,_0xe7c91e[_0x1b5b51][_0x234b('0x1e')]=_0x1b5b51;let _0x224ea5=0x0;for(let _0x2bfe64=_0x57bc84;_0x2bfe64<=_0x568537;_0x2bfe64++)0x0==_0xe7c91e[_0x2bfe64][_0x234b('0x11c')]?_0xe7c91e[_0x2bfe64]['level']=_0x224ea5:(_0x224ea5++,_0xe7c91e[_0x2bfe64][_0x234b('0x110')]=_0x224ea5,_0x224ea5++);for(let _0x1695ff=_0x57bc84;_0x1695ff<_0x3ef6e7;_0x1695ff++)0x0==_0xe7c91e[_0x1695ff][_0x234b('0x60')]&&(_0xe7c91e[_0x1695ff][_0x234b('0x110')]=_0x224ea5);_0x224ea5=0x0;for(let _0x34c5fb=_0x3ef6e7-0x1;_0x34c5fb>=_0x2e3b6a;_0x34c5fb--)0x0==_0xe7c91e[_0x34c5fb][_0x234b('0x11c')]?_0xe7c91e[_0x34c5fb][_0x234b('0x110')]=_0x224ea5:(_0x224ea5--,_0xe7c91e[_0x34c5fb][_0x234b('0x110')]=_0x224ea5,_0x224ea5--);}}[_0x234b('0xf4')](_0xff4e62){const _0x359697=new Map(),_0x136e2f=this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xfa')];for(let _0x5ac80e=0x1;_0x5ac80e<_0xff4e62[_0x234b('0xff')];_0x5ac80e++){let _0x5e4586,_0x3db19f,_0x23880e;const _0x499ebd=_0xff4e62[_0x5ac80e],_0x2ea360=_0xff4e62[_0x5ac80e-0x1];if(_0x234b('0x98')==_0x499ebd['type'])continue;if(_0x499ebd[_0x234b('0xfb')]!=_0x2ea360[_0x234b('0xfb')])continue;if(!_0x136e2f['isBlock'](_0x2ea360['item'])||_0x136e2f[_0x234b('0x44')](_0x2ea360[_0x234b('0xd7')]))continue;if(!_0x136e2f[_0x234b('0x5c')](_0x499ebd[_0x234b('0xd7')])||_0x136e2f['isLimit'](_0x499ebd[_0x234b('0xd7')]))continue;if((_0xff4e62[_0x5ac80e][_0x234b('0x2c')]||_0xff4e62[_0x5ac80e]['isAddSuggestion'])&&_0xff4e62[_0x5ac80e-0x1][_0x234b('0x9d')])_0x5e4586=_0xff4e62[_0x5ac80e],_0x3db19f=_0xff4e62[_0x5ac80e-0x1],_0x23880e=_0x5ac80e-0x1;else{if(!_0xff4e62[_0x5ac80e][_0x234b('0x9d')]||!_0xff4e62[_0x5ac80e-0x1][_0x234b('0x2c')]&&!_0xff4e62[_0x5ac80e-0x1]['isAddSuggestion'])continue;_0x5e4586=_0xff4e62[_0x5ac80e-0x1],_0x3db19f=_0xff4e62[_0x5ac80e],_0x23880e=_0x5ac80e;}const _0x3d1476=_0x5e4586[_0x234b('0x110')]==_0x3db19f[_0x234b('0x110')],_0xf5f2d0=Math['abs'](_0x5e4586[_0x234b('0x110')])<Math[_0x234b('0x3c')](_0x3db19f[_0x234b('0x110')])&&0x0==_0x3db19f[_0x234b('0x11c')];(_0x3d1476||_0xf5f2d0)&&(_0x359697[_0x234b('0xfe')](_0x3db19f['id'],_0x5e4586['id']),_0xff4e62[_0x234b('0x12')](_0x23880e,0x1),_0x5ac80e--,_0x5e4586['isAdded']=!0x1);}for(let _0x4cd791=0x0;_0x4cd791<_0xff4e62[_0x234b('0xff')];_0x4cd791++)_0x359697[_0x234b('0x33')](_0xff4e62[_0x4cd791][_0x234b('0xba')])&&(_0xff4e62[_0x4cd791]['pairId']=_0x359697[_0x234b('0x26')](_0xff4e62[_0x4cd791][_0x234b('0xba')]));}['_removeMissingPairs'](_0x4cedea){const _0x330080=new Set(_0x4cedea[_0x234b('0xdf')](_0x1917d9=>_0x1917d9['id']));for(let _0x3bf2c2=0x0;_0x3bf2c2<_0x4cedea['length'];_0x3bf2c2++)_0x330080[_0x234b('0x33')](_0x4cedea[_0x3bf2c2][_0x234b('0xba')])||0x0==_0x4cedea[_0x3bf2c2][_0x234b('0x11c')]||(_0x4cedea[_0x3bf2c2][_0x234b('0x118')]=!0x0);return _0x4cedea[_0x234b('0xaf')](_0x49a1ce=>!_0x49a1ce[_0x234b('0x118')]);}[_0x234b('0x62')](_0x1a2fcf){const _0xb54ae7=new Set();for(let _0x8397a9=0x0;_0x8397a9<_0x1a2fcf[_0x234b('0xff')];_0x8397a9++){if(_0xb54ae7[_0x234b('0x33')](_0x1a2fcf[_0x8397a9]['id'])&&_0x1a2fcf[_0x8397a9]['isRemoved']&&(_0x1a2fcf[_0x8397a9][_0x234b('0x118')]=!0x0),_0x1a2fcf[_0x8397a9][_0x234b('0x118')])continue;if(0x0==_0x1a2fcf[_0x8397a9][_0x234b('0x11c')])continue;if(_0x234b('0xbe')!=_0x1a2fcf[_0x8397a9][_0x234b('0xfb')])continue;if(null==_0x1a2fcf[_0x8397a9][_0x234b('0xba')])continue;let _0x1af4da=_0x8397a9+0x1,_0xb68286=0x0;for(;_0x1a2fcf[_0x1af4da]['id']!=_0x1a2fcf[_0x8397a9][_0x234b('0xba')];)_0x234b('0xbe')==_0x1a2fcf[_0x1af4da]['type']?_0xb68286++:_0x234b('0x58')==_0x1a2fcf[_0x1af4da][_0x234b('0xfb')]&&_0xb68286--,_0x1af4da++;if(0x0!=_0xb68286){if(_0x1a2fcf[_0x8397a9][_0x234b('0x9d')])_0x1a2fcf[_0x8397a9][_0x234b('0x118')]=!0x0;else for(;_0x1af4da!=_0x8397a9;)_0x1a2fcf[_0x1af4da][_0x234b('0x9d')]&&0x0!=_0x1a2fcf[_0x1af4da][_0x234b('0x11c')]&&(_0x1a2fcf[_0x1af4da][_0x234b('0x118')]=!0x0,_0xb54ae7[_0x234b('0xb8')](_0x1a2fcf[_0x1af4da]['pairId'])),_0x1af4da--;}}return _0x1a2fcf[_0x234b('0xaf')](_0x1a3798=>!_0x1a3798[_0x234b('0x118')]);}[_0x234b('0x3d')](_0x1a4342){const _0x352e44=this['editor']['model'][_0x234b('0xfa')];for(let _0xb30fc8=0x0;_0xb30fc8<_0x1a4342[_0x234b('0xff')];_0xb30fc8++){if(!(_0x1a4342[_0xb30fc8]['isAdded']||_0x1a4342[_0xb30fc8]['isAddSuggestion']||_0x1a4342[_0xb30fc8][_0x234b('0x9d')]||_0x1a4342[_0xb30fc8][_0x234b('0xc6')]))continue;if(0x0==_0x1a4342[_0xb30fc8][_0x234b('0x11c')])continue;const _0x2f42f4=_0x1a4342[_0xb30fc8][_0x234b('0xd7')];_0x352e44['isBlock'](_0x2f42f4)||_0x352e44['isLimit'](_0x2f42f4)||(_0x1a4342[_0xb30fc8][_0x234b('0x2c')]&&delete _0x1a4342[_0xb30fc8][_0x234b('0x2c')],_0x1a4342[_0xb30fc8][_0x234b('0x7d')]&&delete _0x1a4342[_0xb30fc8][_0x234b('0x7d')],_0x1a4342[_0xb30fc8]['isRemoveSuggestion']&&delete _0x1a4342[_0xb30fc8][_0x234b('0xc6')],_0x1a4342[_0xb30fc8][_0x234b('0x9d')]&&(_0x1a4342[_0xb30fc8]['isIncorrect']=!0x0));}return _0x1a4342[_0x234b('0xaf')](_0x1e13da=>!_0x1e13da[_0x234b('0x118')]);}[_0x234b('0xc8')](_0x29d353,_0xfe1aa2,_0x38a3de){const _0xe1301a=new _0x5611e1(),_0x5055c4=[],_0x4de747=new Map(),_0x327ae4=this[_0x234b('0x2a')]['model'],_0xce8471=_0x327ae4[_0x234b('0xfa')],_0x566703=[_0xe1301a],_0x884428={},_0x52d387={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x35a86d=null;const _0x46cc60=[0x0];for(let _0x4273ff=0x0;_0x4273ff<_0x29d353['length'];_0x4273ff++){let _0x10d688,_0xa63869;if(_0x234b('0xbe')===_0x29d353[_0x4273ff][_0x234b('0xfb')]){_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60);const _0x223f16=new _0x30e2cd(_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x2')],_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x64')]());_0x566703[0x0][_0x234b('0x46')](_0x223f16),_0x46cc60[_0x234b('0x10c')](0x0),_0x566703['unshift'](_0x223f16),_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d=null;}else{if(_0x234b('0x58')===_0x29d353[_0x4273ff][_0x234b('0xfb')])_0x566703[_0x234b('0x8b')](),_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x46cc60['pop'](),_0x46cc60[_0x46cc60[_0x234b('0xff')]-0x1]++,_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d=null;else{if(_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d&&_0x5b9029(_0x35a86d,_0x29d353[_0x4273ff][_0x234b('0xd7')]))_0x35a86d[_0x234b('0xf5')]+=_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0xb3')];else{const _0x144ca6=new _0x5bcfa1(_0x29d353[_0x4273ff][_0x234b('0xd7')]['data'],_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x64')]());_0x566703[0x0][_0x234b('0x46')](_0x144ca6),_0x35a86d=_0x144ca6;}_0x46cc60[_0x46cc60['length']-0x1]+=_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x8f')],_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60);}}for(const _0x509f20 of _0x29d353[_0x4273ff][_0x234b('0xe4')])_0x4de747[_0x234b('0xfe')](_0x509f20,{'start':_0x10d688,'end':null});_0x5bf409('isRemoveSuggestion',_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x7d'),_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x9d'),_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x2c'),_0x4273ff,_0x10d688,_0xa63869);for(const _0x17320c of _0x29d353[_0x4273ff][_0x234b('0xc7')]){_0x4de747[_0x234b('0x26')](_0x17320c)['end']=_0xa63869;}}for(const [_0x485ab6,_0x1c39ea]of _0x4de747){const _0x4fa36b=this[_0x234b('0x2a')]['model'][_0x234b('0xd6')](_0x1c39ea['start'],_0x1c39ea[_0x234b('0x15')]);_0xe1301a['markers'][_0x234b('0xfe')](_0x485ab6,_0x4fa36b);}return _0x5055c4[_0x234b('0x51')]((_0x4449c4,_0x7e66b6)=>{const _0x556bf5=_0xe1301a['markers'][_0x234b('0x26')](_0x234b('0xcb')+_0x4449c4['id']),_0x5237c8=_0xe1301a[_0x234b('0xf6')]['get']('revision:'+_0x7e66b6['id']);return _0x556bf5['start']['isBefore'](_0x5237c8[_0x234b('0xce')])?-0x1:_0x556bf5[_0x234b('0xce')][_0x234b('0x63')](_0x5237c8[_0x234b('0xce')])?0x1:_0x556bf5[_0x234b('0x15')][_0x234b('0x3a')](_0x5237c8[_0x234b('0x15')])?-0x1:_0x556bf5[_0x234b('0x15')][_0x234b('0x63')](_0x5237c8[_0x234b('0x15')])?0x1:_0x234b('0xb8')===_0x4449c4['type']?-0x1:0x1;}),{'root':_0xe1301a,'changes':_0x5055c4};function _0x5bf409(_0x4d304f,_0x463f7a,_0x3aab35,_0x1fc1b1){const _0x5a05cc=!!_0x29d353[_0x463f7a][_0x4d304f],_0x3a8383=_0x5a05cc?_0x29d353[_0x463f7a][_0x4d304f][_0x234b('0xa6')]:null,_0x4fda59=_0x463f7a===_0x29d353[_0x234b('0xff')]-0x1,_0x25bc1f=_0x52d387[_0x4d304f][0x0],_0x59cc4a=_0xce8471[_0x234b('0xef')](_0x29d353[_0x463f7a]['item']);!_0x884428[_0x4d304f]&&_0x5a05cc?_0x884428[_0x4d304f]={'start':_0x3aab35,'tapeItem':_0x29d353[_0x463f7a],'userId':_0x3a8383,'type':_0x4d304f}:_0x884428[_0x4d304f]&&!_0x5a05cc?(_0x884428[_0x4d304f][_0x234b('0x15')]=_0x3aab35,_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]=null):_0x884428[_0x4d304f]&&_0x5a05cc&&_0x884428[_0x4d304f][_0x234b('0xa6')]!==_0x3a8383&&(_0x884428[_0x4d304f][_0x234b('0x15')]=_0x3aab35,_0x25bc1f&&_0x25bc1f[_0x234b('0xa6')]===_0x884428[_0x4d304f][_0x234b('0xa6')]||_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]={'start':_0x3aab35,'tapeItem':_0x29d353[_0x463f7a],'userId':_0x3a8383,'type':_0x4d304f}),_0x884428[_0x4d304f]&&_0x59cc4a&&('elementStart'!==_0x29d353[_0x463f7a][_0x234b('0xfb')]||_0x25bc1f&&_0x25bc1f[_0x234b('0xa6')]===_0x3a8383||_0x52d387[_0x4d304f][_0x234b('0xec')]({'userId':_0x3a8383,'object':_0x29d353[_0x463f7a][_0x234b('0xd7')],'change':_0x884428[_0x4d304f]}),_0x234b('0x58')===_0x29d353[_0x463f7a]['type']&&_0x25bc1f&&_0x25bc1f[_0x234b('0x103')]===_0x29d353[_0x463f7a][_0x234b('0xd7')]&&(_0x52d387[_0x4d304f][_0x234b('0x8b')](),_0x884428[_0x4d304f]=_0x25bc1f[_0x234b('0x69')])),_0x884428[_0x4d304f]&&_0x4fda59&&(_0x884428[_0x4d304f]['end']=_0x1fc1b1,_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]=null);}function _0x2a3c07({start:_0x4dc165,end:_0x14808c,tapeItem:_0x51b39a,userId:_0x115b6f,type:_0x597e83}){const _0x3e66cd=_0x51b39a['item'],_0x5d646c=_0x327ae4['schema']['isBlock'](_0x3e66cd)&&!_0x327ae4['schema'][_0x234b('0x44')](_0x3e66cd),_0x3c41e0=_0x4dc165[_0x234b('0xb9')]==_0x14808c['parent']&&_0x14808c[_0x234b('0xf1')];if(_0x5d646c&&_0x3c41e0)return;const _0x3a5414=_0x327ae4[_0x234b('0xd6')](_0x4dc165,_0x14808c),_0x1c1822=_0xfe1aa2[_0x234b('0x26')](_0x115b6f),_0xeaa320=new _0x5656c0({'author':_0x1c1822,'type':_0x234b('0x2c')==_0x597e83||_0x234b('0x7d')==_0x597e83?_0x234b('0xb8'):'remove','data':{'isSuggestion':_0x234b('0x7d')==_0x597e83||_0x234b('0xc6')==_0x597e83},'createdAt':new Date(),'rootName':_0x38a3de});_0x5055c4[_0x234b('0x10c')](_0xeaa320),_0xe1301a[_0x234b('0xf6')][_0x234b('0xfe')](_0x234b('0xcb')+_0xeaa320['id'],_0x3a5414);}function _0x5b9029(_0x133f14,_0x4dfaa9){const _0x24ba15=_0x133f14[_0x234b('0x64')](),_0x27205f=_0x4dfaa9[_0x234b('0x64')]();for(const _0x12b490 of _0x24ba15){if(_0x12b490[0x1]!==_0x4dfaa9[_0x234b('0xcc')](_0x12b490[0x0]))return!0x1;_0x27205f[_0x234b('0x112')]();}return _0x27205f[_0x234b('0x112')]()[_0x234b('0x6a')];}}[_0x234b('0xdb')](){this['editor'][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0x20')]({'view':_0x234b('0x16')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0xe'))['markerToHighlight']({'model':_0x234b('0x16'),'view':_0x34d7dd=>{const _0xd33a10=_0x34d7dd[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x24a8e1=this['_getChangeFromId'](_0xd33a10);if(!_0x24a8e1)return null;const _0x15ab34='add'==_0x24a8e1[_0x234b('0xfb')]?_0x234b('0x30'):_0x234b('0x3f'),_0x5e44ca=[_0x234b('0x9f'),_0x234b('0x10a')+_0x15ab34];return _0x24a8e1[_0x234b('0xb3')][_0x234b('0x11a')]&&_0x5e44ca[_0x234b('0x10c')](_0x234b('0x10a')+_0x15ab34+_0x234b('0xfc')),this[_0x234b('0x101')]==_0x24a8e1&&_0x5e44ca[_0x234b('0x10c')](_0x234b('0x9a')),{'classes':_0x5e44ca,'attributes':{'data-change-id':_0xd33a10}};}}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))['add'](_0x11c17b=>{_0x11c17b['on'](_0x234b('0x5'),(_0x38b42a,_0x2e4d11,_0x29a3f)=>{const _0x24f349=_0x2e4d11[_0x234b('0x66')][_0x234b('0x77')](0x0);if(!_0x24f349||!_0x24f349['is'](_0x234b('0x32'),_0x234b('0xa4')))return;if(!_0x29a3f['consumable'][_0x234b('0xa7')](_0x24f349,{'attributes':[_0x234b('0x10e'),_0x234b('0xd2')]}))return;const _0x44e6c7=_0x2e4d11[_0x234b('0xe9')][_0x234b('0xce')]['nodeAfter'];_0x29a3f[_0x234b('0x24')][_0x234b('0x11d')]('vid_start',_0x24f349['getAttribute']('vid_start'),_0x44e6c7),_0x29a3f[_0x234b('0x24')][_0x234b('0x11d')](_0x234b('0xd2'),_0x24f349[_0x234b('0xcc')](_0x234b('0xd2')),_0x44e6c7);},{'priority':_0x234b('0x52')});}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0xb8')](_0x5afd26=>{_0x5afd26['on'](_0x234b('0x32'),(_0x5c0558,_0x1e68df,_0x2ff815)=>{if(!_0x2ff815[_0x234b('0x99')][_0x234b('0xa7')](_0x1e68df['viewItem'],{'attributes':['vid_start',_0x234b('0xd2')]}))return;if(_0x1e68df['modelRange']['isCollapsed'])return;const _0x2c39ca=_0x1e68df['modelRange'][_0x234b('0xce')][_0x234b('0xb9')];_0x2c39ca[_0x234b('0x42')](_0x234b('0x10e'))||_0x2c39ca[_0x234b('0x42')](_0x234b('0x104'))||(_0x2ff815[_0x234b('0x24')][_0x234b('0x11d')]('vid_start',_0x1e68df[_0x234b('0x66')][_0x234b('0xcc')](_0x234b('0x10e')),_0x2c39ca),_0x2ff815['writer'][_0x234b('0x11d')](_0x234b('0xd2'),_0x1e68df[_0x234b('0x66')][_0x234b('0xcc')](_0x234b('0xd2')),_0x2c39ca));},{'priority':_0x234b('0x52')});}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0x7f')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x234b('0x104'),'value':_0x4eabdd=>_0x4eabdd[_0x234b('0xcc')](_0x234b('0x104'))}}),this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xfa')]['on'](_0x234b('0x5e'),(_0x51d636,[,_0xbd6151])=>{[_0x234b('0x10e'),_0x234b('0xd2'),_0x234b('0x104')][_0x234b('0x22')](_0xbd6151)&&(_0x51d636['return']=!0x0,_0x51d636[_0x234b('0x17')]());},{'priority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')]('dataDowncast')[_0x234b('0xb8')](_0x5440e8=>{_0x5440e8['on'](_0x234b('0x4'),(_0xa85408,_0x4e6bf5,_0x598aea)=>{if('\x20'!=_0x4e6bf5[_0x234b('0xd7')]['data']||_0x4e6bf5['item'][_0x234b('0x1f')][_0x234b('0xd8')]>0x1)return;if(!_0x598aea[_0x234b('0x99')][_0x234b('0xa7')](_0x4e6bf5[_0x234b('0xd7')],_0xa85408[_0x234b('0x2')]))return;const _0x263477=_0x598aea[_0x234b('0x24')],_0xa726d0=_0x598aea[_0x234b('0xa8')]['toViewRange'](_0x4e6bf5[_0x234b('0x7e')]);_0x263477[_0x234b('0xda')](_0xa726d0,_0x263477[_0x234b('0x1')](_0x234b('0x45')));});}),this[_0x234b('0x2a')]['conversion'][_0x234b('0x95')](_0x234b('0x47'))[_0x234b('0x92')]({'model':_0x234b('0x16')}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x56'),function(_0xdae6ac){const _0x37e292=_0xdae6ac['plugins'][_0x234b('0x26')](_0x234b('0x122'));return(_0x3e532f,_0x2d305c,_0xfa4530)=>{const _0x643514=_0x2d305c[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x219383=_0x37e292[_0x234b('0xcd')](_0x643514);if(!_0x219383)return null;const _0x1a82ba=_0x234b('0xb8')==_0x219383[_0x234b('0xfb')]?_0x234b('0x4a'):'merge';if(!_0xfa4530[_0x234b('0x99')]['test'](_0x2d305c['markerRange'],_0x3e532f['name']))return;const _0x553991=_0x2d305c[_0x234b('0x7b')][_0x234b('0x1c')](),_0x327d22=_0x2d305c[_0x234b('0x7b')][_0x234b('0xce')],_0x20fade=_0xdae6ac['model'][_0x234b('0xfa')];let _0x18a2e7=null,_0x211959=null,_0x12e7a0=!0x1,_0x26e154=!0x1;for(const _0x5b73d6 of _0x553991){const _0x33e992=_0x5b73d6[_0x234b('0xd7')];_0x12e7a0=_0x12e7a0||_0x20fade['isContent'](_0x33e992);const _0x111778=_0xfa4530[_0x234b('0xa8')]['toViewElement'](_0x33e992);if(_0x111778&&_0x111778[_0x234b('0x11b')](_0x234b('0x38')))return;_0x234b('0x58')==_0x5b73d6['type']&&(_0x20fade[_0x234b('0x5c')](_0x33e992)&&!_0x20fade['isLimit'](_0x33e992)&&(_0x33e992[_0x234b('0x2f')]||_0x327d22['isAtEnd']?_0x18a2e7&&_0x18a2e7['parent']==_0x33e992||(_0x18a2e7=_0x33e992,_0xca04c7(_0x5b73d6['previousPosition']),_0x26e154=!0x0):_0x211959=_0x211959||_0x5b73d6['previousPosition']));}function _0xca04c7(_0x1cd058){const _0x30d593=_0xfa4530[_0x234b('0x24')]['createUIElement'](_0x234b('0x45'),{'class':_0x234b('0x10a')+_0x1a82ba}),_0x13e17b=_0xfa4530['mapper'][_0x234b('0x11e')](_0x1cd058);_0x219383[_0x234b('0xb3')]['isSuggestion']&&_0xfa4530[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x10a')+_0x1a82ba+_0x234b('0xfc'),_0x30d593),_0x37e292[_0x234b('0x101')]==_0x219383&&_0xfa4530[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x9a'),_0x30d593),_0xfa4530[_0x234b('0x24')][_0x234b('0x107')](_0x13e17b,_0x30d593),_0xfa4530[_0x234b('0xa8')][_0x234b('0xf0')](_0x30d593,_0x2d305c['markerName']);}_0x12e7a0||_0x26e154||!_0x211959||_0xca04c7(_0x211959);};}(this['editor']),{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')][_0x234b('0xd1')]['downcastDispatcher']['on'](_0x234b('0x86'),(_0x466c52,_0xea034f,_0x4a67ed)=>{const _0x59bf8e=_0x4a67ed[_0x234b('0xa8')]['markerNameToElements'](_0xea034f['markerName']);if(_0x59bf8e)for(const _0x20e8cf of _0x59bf8e)(_0x20e8cf[_0x234b('0xa2')]('ck-suggestion-marker-split')||_0x20e8cf[_0x234b('0xa2')]('ck-suggestion-marker-merge'))&&(_0x4a67ed['mapper'][_0x234b('0xd4')](_0x20e8cf,_0xea034f[_0x234b('0x105')]),_0x4a67ed[_0x234b('0x24')]['remove'](_0x20e8cf));},{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x56'),(_0x10d482,_0xaa7930,_0x3e3ace)=>{const _0x766a8b=_0xaa7930[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x35379d=this['_getChangeFromId'](_0x766a8b);if(!_0x35379d)return null;const _0x5dcd18=_0x234b('0xb8')==_0x35379d[_0x234b('0xfb')]?'split':_0x234b('0x65');if(_0x3e3ace[_0x234b('0x99')][_0x234b('0x85')](_0xaa7930[_0x234b('0x7b')],_0x10d482['name']))for(const _0x5d45a8 of _0xaa7930[_0x234b('0x7b')][_0x234b('0xc0')]()){if(!_0x5d45a8['is'](_0x234b('0x32'),_0x234b('0x106')))continue;const _0x2e8698=_0x3e3ace[_0x234b('0x24')][_0x234b('0x114')](_0x234b('0x45'),{'class':_0x234b('0x10a')+_0x5dcd18}),_0x278070=_0x3e3ace['mapper'][_0x234b('0x11e')](this[_0x234b('0x2a')][_0x234b('0x111')]['createPositionBefore'](_0x5d45a8));_0x35379d['data']['isSuggestion']&&_0x3e3ace[_0x234b('0x24')][_0x234b('0xea')]('ck-suggestion-marker-'+_0x5dcd18+_0x234b('0xfc'),_0x2e8698),this['activeChange']==_0x35379d&&_0x3e3ace[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x9a'),_0x2e8698),_0x3e3ace[_0x234b('0x24')][_0x234b('0x107')](_0x278070,_0x2e8698),_0x3e3ace['mapper']['bindElementToMarker'](_0x2e8698,_0xaa7930['markerName']);}},{'priority':_0x234b('0x29')}),this['editor'][_0x234b('0x111')][_0x234b('0xbb')]['on'](_0x234b('0x69'),()=>{this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x69')](_0x19f667=>{for(const _0x425563 of this[_0x234b('0x2a')][_0x234b('0x111')]['document'][_0x234b('0x27')]()){const _0x2ca774=this[_0x234b('0x2a')][_0x234b('0x111')]['document']['getRoot'](_0x425563),_0x5c505c=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')][_0x234b('0x97')](_0x425563);if(_0x5c505c){const _0x458d79=_0x2ca774[_0x234b('0xcc')](_0x234b('0x36'));if(_0x19f667['removeAttribute'](_0x234b('0x41'),_0x5c505c),_0x19f667[_0x234b('0xa5')](_0x234b('0x9e'),_0x5c505c),_0x19f667[_0x234b('0xa5')](_0x234b('0x2b'),_0x5c505c),_0x19f667['removeClass'](_0x234b('0x117'),_0x5c505c),_0x458d79){const _0x571298=this[_0x234b('0xcd')](_0x458d79);if(!_0x571298)return null;_0x19f667[_0x234b('0x11d')](_0x234b('0x41'),_0x458d79,_0x5c505c),_0x19f667['addClass']('ck-revision-history-root-'+_0x571298[_0x234b('0xfb')],_0x5c505c),this[_0x234b('0x101')]==_0x571298&&_0x19f667[_0x234b('0xea')](_0x234b('0x117'),_0x5c505c);}}}});}),this['editor']['conversion']['for'](_0x234b('0x1a'))[_0x234b('0x20')]({'view':_0x234b('0x83'),'model':_0x589b38=>_0x234b('0x11')+_0x589b38,'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')]('upcast')[_0x234b('0x20')]({'view':_0x234b('0xe3'),'model':_0x1ee07f=>_0x234b('0x80')+_0x1ee07f,'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')]['conversion'][_0x234b('0x95')]('dataDowncast')[_0x234b('0x92')]({'model':_0x234b('0x89'),'view':_0x36841b=>({'name':_0x234b('0x6f')+_0x36841b,'group':_0x234b('0x89')}),'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0xe'))[_0x234b('0x19')]({'model':_0x234b('0x89'),'view':_0x543f5b=>{const _0xa4d937=_0x543f5b[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1];return _0x234b('0x30')!=_0xa4d937&&_0x234b('0x3f')!=_0xa4d937?null:{'classes':['ck-suggestion-preview-marker',_0x234b('0x7a')+_0xa4d937]};}}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x79'),et(this[_0x234b('0x2a')],_0x234b('0x65')),{'priority':_0x234b('0x29')}),this['editor'][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0xdc'),et(this[_0x234b('0x2a')],'split'),{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')]['editing'][_0x234b('0x76')]['on']('removeMarker:revision-suggestion',(_0xcaa285,_0x58421e,_0x38fc3d)=>{const _0x5bb839=_0x38fc3d[_0x234b('0xa8')][_0x234b('0x5b')](_0x58421e[_0x234b('0x105')]);if(_0x5bb839)for(const _0x256d02 of _0x5bb839)_0x256d02['is'](_0x234b('0xe2'))&&(_0x38fc3d[_0x234b('0xa8')][_0x234b('0xd4')](_0x256d02,_0x58421e['markerName']),_0x38fc3d[_0x234b('0x24')][_0x234b('0x3b')](_0x256d02));},{'priority':_0x234b('0x29')});}[_0x234b('0xcd')](_0x3eeb93){return this['_changeIdToChange'][_0x234b('0x26')](_0x3eeb93);}[_0x234b('0x53')](_0x3d5ffc){return this[_0x234b('0xc2')]&&this[_0x234b('0xc2')][_0x234b('0xed')](),this[_0x234b('0xc2')]=new _0x3d3978(this[_0x234b('0x2a')][_0x234b('0xfd')],_0x3d5ffc),this[_0x234b('0xc2')];}[_0x234b('0x1b')](){this['editor'][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0xe7')][_0x234b('0xbf')](_0x234b('0x16')),this['on'](_0x234b('0xca'),(_0x2b1bf7,_0x49eab0,_0x435933,_0x39cf3e)=>{_0x39cf3e&&this['_balloon'][_0x234b('0x3b')](_0x39cf3e),_0x435933&&(this[_0x234b('0xc4')][_0x234b('0xb8')]({'view':_0x435933,'stackId':_0x234b('0x4f'),'position':{'target':()=>{const _0x557327=this[_0x234b('0x2a')][_0x234b('0xd1')],_0x343af1=this[_0x234b('0xcd')](_0x435933[_0x234b('0x120')]);let _0x680095;if(_0x343af1[_0x234b('0xb3')][_0x234b('0x5f')]){const _0x2b53f5=_0x557327[_0x234b('0x35')][_0x234b('0x91')](_0x343af1[_0x234b('0x4c')]);_0x680095=Array[_0x234b('0x43')](_0x2b53f5[_0x234b('0xb7')]());}else{const _0x43df5d=this['editor'][_0x234b('0x111')][_0x234b('0xf6')][_0x234b('0x26')](_0x234b('0xcb')+_0x435933[_0x234b('0x120')]);_0x680095=Array[_0x234b('0x43')](_0x557327[_0x234b('0xa8')]['markerNameToElements'](_0x43df5d[_0x234b('0x2')]))['map'](_0x5df3ed=>_0x557327[_0x234b('0x35')][_0x234b('0xf9')]['mapViewToDom'](_0x5df3ed))['map'](_0x412a1c=>Array[_0x234b('0x43')](_0x412a1c[_0x234b('0xb7')]()))['flat']();}if(!this[_0x234b('0x57')])return _0x680095[0x0];return _0x680095[_0x234b('0xb4')](_0x141c8d=>_0x141c8d['top']-0x3<=this[_0x234b('0x57')]['y']&&_0x141c8d[_0x234b('0x10')]+0x3>=this[_0x234b('0x57')]['y']&&_0x141c8d[_0x234b('0x8e')]-0x3<=this[_0x234b('0x57')]['x']&&_0x141c8d['right']+0x3>=this['_activeViewTarget']['x'])||_0x680095[0x0];}}}),this['_balloon'][_0x234b('0x4d')](_0x234b('0x4f')));}),this['on'](_0x234b('0x87'),(_0x5bdf66,_0xbae009,_0x3c2a93,_0x2dc6a7)=>{this['activeView']=_0x3c2a93?this[_0x234b('0x53')](_0x3c2a93):null,this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0x69')](()=>{const _0xb6023d=this[_0x234b('0x2a')]['editing'];_0x2dc6a7&&(_0x2dc6a7['data']['isOnRoot']?_0xb6023d[_0x234b('0x35')][_0x234b('0x69')](_0x177877=>{_0x177877[_0x234b('0xa5')](_0x234b('0x117'),_0xb6023d['view'][_0x234b('0xbb')][_0x234b('0x97')](_0x2dc6a7[_0x234b('0x4c')]));}):_0xb6023d['reconvertMarker'](_0x234b('0xcb')+_0x2dc6a7['id'])),_0x3c2a93&&(_0x3c2a93[_0x234b('0xb3')]['isOnRoot']?_0xb6023d[_0x234b('0x35')][_0x234b('0x69')](_0x2080b1=>{_0x2080b1[_0x234b('0xea')](_0x234b('0x117'),_0xb6023d['view']['document'][_0x234b('0x97')](_0x3c2a93[_0x234b('0x4c')]));}):_0xb6023d[_0x234b('0x10d')](_0x234b('0xcb')+_0x3c2a93['id']));});}),this[_0x234b('0xe6')](this['editor'][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],'mouseover',(_0x4f927c,_0x5e1a33)=>{if(this['activeChange'])return;const _0x4086db=this[_0x234b('0xb')](_0x5e1a33[_0x234b('0x2e')]),_0x4b5bd7=this[_0x234b('0x28')][_0x234b('0x26')](_0x4086db);_0x4b5bd7?(this[_0x234b('0x57')]={'x':_0x5e1a33['domEvent']['x'],'y':_0x5e1a33[_0x234b('0x121')]['y']},this[_0x234b('0x6d')]=this['_getViewForChange'](_0x4b5bd7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],_0x234b('0x5a'),(_0x5cd2a2,_0xdc1a17)=>{const _0x453324=this['_findChangeIdFromDomTarget'](_0xdc1a17[_0x234b('0x2e')]),_0x1cafef=this[_0x234b('0x28')][_0x234b('0x26')](_0x453324);_0x1cafef?(this[_0x234b('0x57')]={'x':_0xdc1a17[_0x234b('0x121')]['x'],'y':_0xdc1a17[_0x234b('0x121')]['y']},_0x1cafef===this[_0x234b('0x101')]?this['_balloon']['updatePosition']():this['activeChange']=_0x1cafef):(this[_0x234b('0x57')]=null,this['activeChange']=null);});}[_0x234b('0xb')](_0x1b93e6){do{const _0xc9e3e1=_0x1b93e6['getAttribute'](_0x234b('0x41'));if(_0xc9e3e1)return _0xc9e3e1;_0x1b93e6=_0x1b93e6[_0x234b('0x1f')];}while(_0x1b93e6);return null;}[_0x234b('0x8c')](){this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0x69')](_0x36adb9=>{for(const _0x3d6440 of this[_0x234b('0x2a')]['model'][_0x234b('0xf6')])_0x36adb9[_0x234b('0x37')](_0x3d6440);});}}function et(_0x588aa6,_0xee45bd){return(_0x5efd2f,_0x15840c,_0x25eac0)=>{if(!_0x25eac0[_0x234b('0x99')][_0x234b('0x85')](_0x15840c[_0x234b('0x7b')],_0x5efd2f[_0x234b('0x2')]))return;const _0x54ec82=_0x15840c[_0x234b('0x7b')]['getWalker'](),_0x1004b5=_0x15840c['markerRange'][_0x234b('0xce')],_0x41ee5a=_0x588aa6[_0x234b('0x111')][_0x234b('0xfa')];let _0x5dc804=null,_0x2f06a0=null,_0x4e2638=!0x1,_0x21368a=!0x1;for(const _0x2a784c of _0x54ec82){const _0x14749b=_0x2a784c[_0x234b('0xd7')];_0x4e2638=_0x4e2638||_0x41ee5a[_0x234b('0x6')](_0x14749b);const _0xaa8d61=_0x25eac0[_0x234b('0xa8')]['toViewElement'](_0x14749b);if(_0xaa8d61&&_0xaa8d61[_0x234b('0x11b')]('addHighlight'))return;_0x234b('0x58')==_0x2a784c['type']&&(_0x41ee5a[_0x234b('0x5c')](_0x14749b)&&!_0x41ee5a[_0x234b('0x44')](_0x14749b)&&(_0x14749b[_0x234b('0x2f')]||_0x1004b5[_0x234b('0x54')]?_0x5dc804&&_0x5dc804[_0x234b('0x1f')]==_0x14749b||(_0x5dc804=_0x14749b,_0x584711(_0x2a784c[_0x234b('0x55')]),_0x21368a=!0x0):_0x2f06a0=_0x2f06a0||_0x2a784c[_0x234b('0x55')]));}function _0x584711(_0xf4d798){const _0xea41bf=_0x25eac0['mapper'][_0x234b('0x11e')](_0xf4d798),_0x5dc5de=_0x25eac0[_0x234b('0x24')][_0x234b('0x114')](_0x234b('0x45'),{'class':'ck-suggestion-preview-marker-'+_0xee45bd});_0x25eac0[_0x234b('0x24')]['insert'](_0xea41bf,_0x5dc5de),_0x25eac0[_0x234b('0xa8')]['bindElementToMarker'](_0x5dc5de,_0x15840c[_0x234b('0x105')]);}_0x4e2638||_0x21368a||!_0x2f06a0||_0x584711(_0x2f06a0);};}export class RestoreRevisionCommand extends _0x349962{constructor(_0x5f103b){super(_0x5f103b);const _0x47a4a5=_0x5f103b['plugins'][_0x234b('0x26')](d);this[_0x234b('0xa3')]=!0x1,this[_0x234b('0xe6')](_0x47a4a5,'change:isReady',()=>this[_0x234b('0x2d')]()),this[_0x234b('0xe6')](_0x47a4a5,_0x234b('0xaa'),()=>this['refresh']());}['execute'](){const _0x19e3b7=this[_0x234b('0x2a')],_0x5e111c=_0x19e3b7[_0x234b('0x10b')]['get'](d),_0x549bae=_0x5e111c[_0x234b('0x6e')]?_0x5e111c[_0x234b('0xa9')]['newRevisionId']:null;_0x19e3b7['config'][_0x234b('0x26')](_0x234b('0xa'))[_0x234b('0xac')](_0x549bae);}['refresh'](){const {isReady:_0x127141,isEnabled:_0x2869b6}=this[_0x234b('0x2a')][_0x234b('0x10b')][_0x234b('0x26')](d);this[_0x234b('0xc')]=_0x127141&&_0x2869b6;}}export class ShowChangeCommand extends _0x349962{constructor(_0xb76121,{direction:_0x258abd}){super(_0xb76121);const _0x2fa319=_0xb76121[_0x234b('0x10b')][_0x234b('0x26')](d);this[_0x234b('0xa3')]=!0x1,this[_0x234b('0x84')]='forward'===_0x258abd?0x1:-0x1,this[_0x234b('0xe6')](_0x2fa319,_0x234b('0x0'),()=>this[_0x234b('0x2d')]()),this[_0x234b('0xe6')](_0x2fa319,_0x234b('0xaa'),()=>this[_0x234b('0x2d')]()),this['listenTo'](_0x2fa319,_0x234b('0x87'),()=>this[_0x234b('0x2d')]());}[_0x234b('0x5d')](){const _0x179954=this['editor'],_0x3a928c=_0x179954[_0x234b('0x10b')]['get'](d),{isNavigationMode:_0x25a373,currentChangeNumber:_0x589198}=_0x3a928c;let _0x306334;if(_0x3a928c[_0x234b('0x101')]=_0x25a373?_0x3a928c['diff'][_0x234b('0xb5')][_0x234b('0x26')](_0x589198+this[_0x234b('0x84')]):_0x3a928c[_0x234b('0xa9')]['changes'][_0x234b('0x11f')],_0x3a928c[_0x234b('0x101')][_0x234b('0xb3')][_0x234b('0x5f')])_0x306334=_0x179954[_0x234b('0xd1')][_0x234b('0x35')]['getDomRoot'](_0x3a928c[_0x234b('0x101')][_0x234b('0x4c')]);else{const _0x276a24=_0x179954[_0x234b('0x111')][_0x234b('0xf6')][_0x234b('0x26')]('revision:'+_0x3a928c['activeChange']['id']);_0x306334=_0x1d3894(_0x179954[_0x234b('0xd1')],_0x276a24);}_0x46ecbd({'target':_0x306334,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19eb8b,currentChangeNumber:_0x1acbc3,numberOfChanges:_0x1f350e,isReady:_0x277825,isEnabled:_0x391c8b}=this[_0x234b('0x2a')][_0x234b('0x10b')][_0x234b('0x26')](d);this['isEnabled']=!!(_0x391c8b&&_0x277825&&_0x1f350e)&&(!_0x19eb8b||(0x1===this['_step']?_0x1acbc3<_0x1f350e-0x1:_0x1acbc3>0x0));}}
23
+ const _0x59b3=['POSITIVE_INFINITY','vid_start','ck-revision-history-root--active','_sortAndFilterDiffChanges','next','from','_getChangeFromId','conversion','activeView','get','changes','endIndex','bindElementToMarker','map','right','oldRevisionId','isEnabled','isBefore','RevisionViewer','repository','nextPosition','find','findIndex','document','stop','removeMarker:revision','showStack','getRootNames','maxOffset','ck-suggestion-marker-split','_setDistance','includes','markerToHighlight','attributesBefore','createUIElement','elementStart','catch','_changeIdToChange','getWalker','_markMismatchedRemovedTags','isReady','shift','keys','hasClass','_fixObsoleteTags','_changeView','add','getIndex','insertions','first','concat','_balloon','config','listenTo','parent','unbindElementFromMarkerName','ck-suggestion-preview-marker','isContent','isAdded','startsWith','view','insertion','high','viewItem','range','distance','editing','level','getDomRoot','_joinTapes','uiElement','createPositionFromPath','_removeRevisionMarkers','_threeWayMerge','useFillerType','isLimit','error','remove','children','vid','done','string','slice','default','startIndex','push','RevisionsRepository','getAttributes','markers','_getViewForChange','editingDowncast','change','collaboration.channelId','consume','forward','markersStart','previousPosition','elementEnd','createPositionBefore','change:isEnabled','model','merge','commands','bind','changeId','attributes','dataDowncast','ck-suggestion-marker--active','isCollapsed','elementToAttribute','test','revisionHistory','toModel','_refreshStartEndIndex','ck-suggestion-marker','_markMarkers','change:activeView','rootName','pairId','downcastDispatcher','toViewElement','unshift','_cleanUp','data','_update','mouseover','top','mousedown','getRevisionData','selection','addHighlight','marked','markerNameToElements','getAttribute','isRemoved','revision','affectsData','suggestion:','revision-suggestion:','isRemoveSuggestion','plugins','restoreRevisionCallback','revision-comment:','isBlock','toViewPosition','createAttributeElement','resolve','isSuggestion','name','text','_activeViewTarget','clear','insert','parse','getRevision','removeAttribute','adapter','isNavigationMode','deletions','ck-suggestion-preview-marker-','_removeMissingPairs','_getRevisionsRange','getCustomProperty','writer','revision-end','isOnRoot','index','setAttribute','loadRevisionData','_makeTape','showPreviousChange','init','nodeAfter','low','toViewRange','domConverter','ck-revision-history-root-','_markSuggestions','abs','currentChangeNumber','userId','dataToMarker','start','element','addClass','observeMarkers','activeChange','item','attributesAfter','_data','left','ck-revision-history-root-remove','revision:','values','reconvertMarker','revision-start','_makeModelFromViewString','_revisions','showNextChange','-new','comment','_markInsertions','processor','schema','roots','editor','deletion','updatePosition','_setChanges','then','_appendChild','addRevisionData','addMarker:revision','createRevision','hasAttribute','_step','sort','getRoot','data-change-id','WidgetToolbarRepository','change:numberOfChanges','domEvent','markerName','end','ck-editor__editable__overlay','newRevisionId','isAttached','forceDisabled','createRangeIn','length','markerRange','modelRange','ck-suggestion-marker-merge','removeMarker','mapper','_getViewObj','createRange','return','flat','attribute:vid','markerToData','isEqual','change:isReady','split','_processTape','diff','upcast','span','removeClass','isAfter','revision-viewer','for','addRevision','element:pre','enqueueChange','restoreRevision','requires','filter','splice','isAddSuggestion','all','revision-suggestion','target','revisionHistoryAttachChange','isAtEnd','ck-suggestion-marker-','diffData','removeMarker:revision-suggestion','vid_end','detachRoot','_setConversion','_initInteractions','code','pluginName','set','nextSibling','data-revision-','_findChangeIdFromDomTarget','enableReadOnlyMode','pop','side','refresh','has','execute','getRevisionRootsAttributes','consumable','delete','locale','revisionHistoryLabel','attachChange','_removeUnsupportedChanges','isInline','forEach','isIncorrect','getClientRects','type','numberOfChanges','highest','markersEnd','change:activeChange'];(function(_0x7830fe,_0x59b3be){const _0x316cf7=function(_0x41ec68){while(--_0x41ec68){_0x7830fe['push'](_0x7830fe['shift']());}};_0x316cf7(++_0x59b3be);}(_0x59b3,0x83));const _0x316c=function(_0x7830fe,_0x59b3be){_0x7830fe=_0x7830fe-0x0;let _0x316cf7=_0x59b3[_0x7830fe];return _0x316cf7;};import{Plugin as _0x532074,Command as _0x3ee5c9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1d92ac}from'ckeditor5/src/utils';import{ContextualBalloon as _0x104146}from'ckeditor5/src/ui';import{DocumentFragment as _0x3641d9,Element as _0x2d5233,Text as _0x449c8c,ViewDocumentFragment as _0x1ed9cb,ViewText as _0x1729b1,ViewElement as _0x59a2fe,ViewContainerElement as _0x41a823,ViewAttributeElement as _0x4ba664,ViewEmptyElement as _0x2baf22,ViewRawElement as _0x6edad1,ViewUIElement as _0x40ba17}from'ckeditor5/src/engine';import{Users as _0x280c16,getMarkerDomElement as _0x1ddec9}from'ckeditor5-collaboration/src/collaboration-core';import _0x24da1b from'./ui/revisionviewer/changedetailsview';import _0x5c0c1e from'./revisionsrepository';import _0x1d6b4c from'./changeitem';import{default as _0x2757b3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3da7ba}from'lodash-es';const tt={'c':_0x41a823,'a':_0x4ba664,'e':_0x2baf22,'r':_0x6edad1,'u':_0x40ba17};export default class d extends _0x532074{static get[_0x316c('0x8e')](){return _0x316c('0xbb');}static get[_0x316c('0x7d')](){return[_0x280c16,_0x104146,_0x5c0c1e];}constructor(_0x175d40){super(_0x175d40),this[_0x316c('0xbc')]=this['editor'][_0x316c('0x9')][_0x316c('0xb2')](_0x316c('0xff')),this['set'](_0x316c('0x37'),null),this[_0x316c('0x8f')]('activeView',null),this['_activeViewTarget']=null,this[_0x316c('0x8f')]('diff',null),this[_0x316c('0x8f')]('isReady',!0x1),this[_0x316c('0x8f')](_0x316c('0xb9'),!0x0),this['on'](_0x316c('0x10c'),(_0x2d0856,_0x10e02c,_0x23da6e)=>{this['activeChange']=null,this[_0x316c('0xb1')]=null,this['editor'][_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0x104')](_0x372484=>{for(const _0x28c9d9 of this[_0x316c('0x4a')][_0x316c('0xeb')]['view']['document'][_0x316c('0x49')])_0x23da6e?_0x372484[_0x316c('0x75')](_0x316c('0x5d'),_0x28c9d9):_0x372484[_0x316c('0x35')](_0x316c('0x5d'),_0x28c9d9);});}),this[_0x316c('0x110')](_0x316c('0x1a'))['to'](this,'activeChange',_0x3697c5=>null!==_0x3697c5),this['bind'](_0x316c('0x30'))['to'](this,_0x316c('0xd1'),this,'diff',this,'activeChange',(_0x1716e2,_0x2ef5e5,_0x4bd586)=>_0x1716e2&&_0x4bd586?_0x2ef5e5[_0x316c('0xb3')]['getIndex'](_0x4bd586):0x0),this[_0x316c('0x110')](_0x316c('0xa5'))['to'](this,_0x316c('0xd1'),this,_0x316c('0x72'),(_0x544950,_0x4cf8e6)=>_0x544950?_0x4cf8e6[_0x316c('0xb3')][_0x316c('0x62')]:0x0),this['_changeView']=null,this[_0x316c('0xce')]=new Map(),this[_0x316c('0x19')]=null,this[_0x316c('0xdc')]=this[_0x316c('0x4a')][_0x316c('0x9')]['get'](_0x104146);}[_0x316c('0x28')](){const _0x4c3623=this['editor'],_0x438faf=new ShowChangeCommand(_0x4c3623,{'direction':'backward'}),_0xca8933=new ShowChangeCommand(_0x4c3623,{'direction':_0x316c('0x107')});(_0x4c3623[_0x316c('0x10f')]['add'](_0x316c('0x27'),_0x438faf),_0x4c3623[_0x316c('0x10f')][_0x316c('0xd7')](_0x316c('0x43'),_0xca8933),_0x4c3623[_0x316c('0x10f')][_0x316c('0xd7')](_0x316c('0x7c'),new RestoreRevisionCommand(_0x4c3623)),this['on'](_0x316c('0x59'),()=>{_0x438faf[_0x316c('0x96')](),_0xca8933[_0x316c('0x96')]();}),this[_0x316c('0x8b')](),this['_initInteractions'](),_0x4c3623[_0x316c('0x93')]('revision-viewer'),_0x4c3623[_0x316c('0x9')][_0x316c('0x97')](_0x316c('0x58')))&&_0x4c3623[_0x316c('0x9')][_0x316c('0xb2')]('WidgetToolbarRepository')[_0x316c('0x60')](_0x316c('0x77'));}async[_0x316c('0x129')](_0x3b9205){await this[_0x316c('0x25')](_0x3b9205);const _0x444648={};for(const _0x57ff97 in _0x3b9205[_0x316c('0x87')]){if(_0x3b9205['diffData'][_0x57ff97][_0x316c('0x9e')]&&!_0x3b9205[_0x316c('0x87')][_0x57ff97][_0x316c('0x9e')]['isAttached'])continue;const _0x670165=this[_0x316c('0xf1')](JSON[_0x316c('0x16')](_0x3b9205[_0x316c('0x87')][_0x57ff97]['insertions'])),_0x3135dd=this['editor']['editing'][_0x316c('0xe5')]['document'],_0x1c3d98=new _0x1ed9cb(_0x3135dd,_0x670165[_0x316c('0xb6')](_0x4a1de5=>this[_0x316c('0x68')](_0x4a1de5)));this['editor']['data'][_0x316c('0x47')][_0x316c('0xf3')](_0x316c('0x0')),_0x444648[_0x57ff97]=this[_0x316c('0x4a')][_0x316c('0x124')]['processor']['toData'](_0x1c3d98),this[_0x316c('0x4a')][_0x316c('0x124')][_0x316c('0x47')][_0x316c('0xf3')](_0x316c('0xfc'));}return _0x444648;}async[_0x316c('0x99')](_0x58af22){await this[_0x316c('0x25')](_0x58af22);const _0x411dfc={};for(const _0xb2f7a0 in _0x58af22['diffData'])_0x58af22[_0x316c('0x87')][_0xb2f7a0][_0x316c('0x9e')]&&!_0x58af22[_0x316c('0x87')][_0xb2f7a0][_0x316c('0x9e')][_0x316c('0x5f')]||(_0x411dfc[_0xb2f7a0]=_0x58af22['diffData'][_0xb2f7a0][_0x316c('0x39')]||{});return _0x411dfc;}['_removeRevisionMarkers'](_0x18d4f4){return(_0x18d4f4=_0x18d4f4[_0x316c('0x7e')](_0x4de393=>!_0x4de393[_0x316c('0x11')]||_0x316c('0x40')!==_0x4de393['name']&&_0x316c('0x21')!==_0x4de393[_0x316c('0x11')]))[_0x316c('0xa1')](_0x2a08f8=>{_0x316c('0xfa')!=typeof _0x2a08f8&&(_0x2a08f8['children']=this[_0x316c('0xf1')](_0x2a08f8[_0x316c('0xf7')]),_0x2a08f8[_0x316c('0x112')]=_0x2a08f8['attributes'][_0x316c('0x7e')](_0x2fcd5f=>!_0x2fcd5f[0x0][_0x316c('0xe4')](_0x316c('0x91'))));}),_0x18d4f4;}async['compare'](_0x2a283d,_0x227067,_0x5ce354=!0x1){if(!this[_0x316c('0xb9')])return;const _0x3e3299=this[_0x316c('0x72')],_0x14ee6c=this[_0x316c('0xbc')],_0x1f7831=_0x316c('0xfa')==typeof _0x2a283d?_0x14ee6c[_0x316c('0x17')](_0x2a283d):_0x2a283d,_0x2e9af0='string'==typeof _0x227067?_0x14ee6c[_0x316c('0x17')](_0x227067):_0x227067,_0x5deeb1=_0x1f7831['id'],_0x4ed17e=_0x2e9af0?_0x2e9af0['id']:null;if(!_0x5ce354&&this[_0x316c('0x72')]&&this[_0x316c('0x72')][_0x316c('0x5e')]===_0x5deeb1&&this[_0x316c('0x72')][_0x316c('0xb8')]===_0x4ed17e)return Promise[_0x316c('0xf')]();this[_0x316c('0xd1')]=!0x1,this[_0x316c('0xb1')]=null,this['activeChange']=null,this[_0x316c('0x72')]=new _0x2757b3(_0x5deeb1,_0x4ed17e);const _0xd6e0a9=this[_0x316c('0x1e')](_0x1f7831,_0x2e9af0,!0x0)['map'](_0x47deca=>this[_0x316c('0x25')](_0x47deca));return _0xd6e0a9[_0x316c('0xfe')](new Promise(_0x5b2a9e=>{setTimeout(_0x5b2a9e,0x14);})),Promise[_0x316c('0x81')](_0xd6e0a9)[_0x316c('0x4e')](()=>{if(!this['isEnabled'])return;this[_0x316c('0x123')]();const _0x2624ec=this['_getDiff'](_0x5deeb1,_0x4ed17e);for(const _0x103b67 of _0x2624ec[_0x316c('0xb3')])this['_changeIdToChange'][_0x316c('0x8f')](_0x103b67['id'],_0x103b67);this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x7b')]({'isUndoable':!0x1},_0x4e370c=>{for(const _0x2b2464 of this[_0x316c('0x4a')]['model']['document'][_0x316c('0xc4')]())_0x4e370c[_0x316c('0x8a')](_0x2b2464);for(const _0x1e9f4c of Object['keys'](_0x2624ec['model'])){const _0x1a0c85=_0x4e370c['addRoot'](_0x1e9f4c);for(const _0x4306f1 of Object[_0x316c('0xd3')](_0x2624ec[_0x316c('0x112')][_0x1e9f4c]))_0x4e370c[_0x316c('0x24')](_0x4306f1,_0x2624ec[_0x316c('0x112')][_0x1e9f4c][_0x4306f1],_0x1a0c85);_0x4e370c[_0x316c('0x15')](_0x2624ec[_0x316c('0x10d')][_0x1e9f4c],_0x1a0c85,0x0);}}),this[_0x316c('0x72')][_0x316c('0x4d')](this[_0x316c('0xac')](_0x2624ec['changes'])),this['isReady']=!0x0;})[_0x316c('0xcd')](_0x1131a5=>{console[_0x316c('0xf5')](_0x1131a5),this[_0x316c('0x123')](),_0x3e3299&&(this['diff']=_0x3e3299),this[_0x316c('0xd1')]=!0x0;});}[_0x316c('0x50')](_0x47ccb7,_0x1fc391){const _0x5ed8a2=this[_0x316c('0xbc')][_0x316c('0x52')](_0x47ccb7);return _0x5ed8a2['on'](_0x316c('0x125'),(_0x4bee56,_0x4554c8,_0x3cbbe2)=>_0x1fc391(_0x4554c8,_0x3cbbe2,_0x5ed8a2)),this[_0x316c('0xbc')][_0x316c('0x79')](_0x5ed8a2),_0x5ed8a2;}['loadRevisionData'](_0x5a51df){if(!_0x5a51df||_0x5a51df[_0x316c('0x87')])return Promise[_0x316c('0xf')]();{const _0x38cc27=this[_0x316c('0x4a')][_0x316c('0xdd')][_0x316c('0xb2')](_0x316c('0x105'));return this[_0x316c('0x19')][_0x316c('0x17')]({'channelId':_0x38cc27,'revisionId':_0x5a51df['id']})[_0x316c('0x4e')](_0x2ff6db=>{_0x5a51df['_update']({'diffData':_0x2ff6db[_0x316c('0x87')]},!0x0);});}}[_0x316c('0x123')](){this[_0x316c('0x37')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x316c('0xd6')]['destroy'](),this[_0x316c('0xd6')]=null,this['_changeIdToChange'][_0x316c('0x14')](),this[_0x316c('0x4a')]['model'][_0x316c('0x7b')]({'isUndoable':!0x1},_0x2a25a0=>{for(const _0x4eb33e of this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0xc4')]())_0x2a25a0[_0x316c('0x8a')](_0x4eb33e);});}['_sortAndFilterDiffChanges'](_0x1a5d50){const _0xb43e32=[],_0x429db8=new Map();for(const _0x468d9d of this['editor'][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0xc4')]()){const _0x46af70=this[_0x316c('0x4a')][_0x316c('0xeb')]['view'][_0x316c('0xed')](_0x468d9d);if(!_0x46af70)continue;const _0x2c75d7=_0x46af70[_0x316c('0xa3')]()[_0x316c('0x38')](0x0);_0x2c75d7&&(_0xb43e32[_0x316c('0xfe')](_0x468d9d),_0x429db8[_0x316c('0x8f')](_0x468d9d,_0x2c75d7));}return _0xb43e32['sort']((_0x390ffd,_0x3930b7)=>{const _0x440d73=_0x429db8[_0x316c('0xb2')](_0x390ffd),_0x1d9cc6=_0x429db8[_0x316c('0xb2')](_0x3930b7);return _0x440d73['y']-_0x1d9cc6['y']||_0x440d73['x']-_0x1d9cc6['x'];}),(_0x1a5d50=_0x1a5d50[_0x316c('0x7e')](_0x2d3906=>_0xb43e32[_0x316c('0xc8')](_0x2d3906[_0x316c('0x11e')])))['sort']((_0x5c358c,_0xe0d3e4)=>_0xb43e32['indexOf'](_0x5c358c['rootName'])-_0xb43e32['indexOf'](_0xe0d3e4[_0x316c('0x11e')])),_0x1a5d50;}[_0x316c('0x26')](_0x1d3565){const _0x2de81a=Array['from'](_0x1d3565[_0x316c('0x101')])[_0x316c('0x7e')](([_0x47c901,_0xee5d7c])=>_0x47c901[_0x316c('0xe4')]('revision:')&&!_0xee5d7c['isCollapsed']),_0x247380=Array[_0x316c('0xae')](this[_0x316c('0x4a')]['model'][_0x316c('0x61')](_0x1d3565)[_0x316c('0xcf')]({'singleCharacters':!0x0}));if(0x0!=_0x2de81a[_0x316c('0x62')])for(const _0x31f1ac of _0x247380){const [_0x5883c8,_0x2a2df3]=_0x2de81a[0x0],[,_0x24fb77,_0x4349ce]=_0x5883c8[_0x316c('0x70')](':');if(_0x2a2df3[_0x316c('0x5c')][_0x316c('0x6e')](_0x31f1ac[_0x316c('0xbd')])&&_0x2de81a[_0x316c('0xd2')](),(_0x31f1ac[_0x316c('0x109')][_0x316c('0x6e')](_0x2a2df3[_0x316c('0x33')])||_0x31f1ac[_0x316c('0x109')][_0x316c('0x76')](_0x2a2df3[_0x316c('0x33')]))&&(_0x316c('0xe6')==_0x24fb77?_0x31f1ac['isAdded']={'userId':_0x4349ce}:_0x316c('0x4b')==_0x24fb77&&(_0x31f1ac[_0x316c('0x3')]={'userId':_0x4349ce})),0x0==_0x2de81a[_0x316c('0x62')])break;}return _0x247380;}[_0x316c('0x11a')](_0x24d7bd){const _0x5e3283=new Map();for(let _0x41cc44=0x0;_0x41cc44<_0x24d7bd['length'];_0x41cc44++)_0x316c('0x12')===_0x24d7bd[_0x41cc44][_0x316c('0xa4')]?(_0x24d7bd[_0x41cc44][_0x316c('0x38')]['startIndex']=_0x41cc44,_0x24d7bd[_0x41cc44]['item'][_0x316c('0xb4')]=_0x41cc44):(_0x316c('0xcc')===_0x24d7bd[_0x41cc44][_0x316c('0xa4')]?_0x24d7bd[_0x41cc44][_0x316c('0x38')][_0x316c('0xfd')]=_0x41cc44:_0x316c('0x10a')===_0x24d7bd[_0x41cc44]['type']&&(_0x24d7bd[_0x41cc44][_0x316c('0x38')]['endIndex']=_0x41cc44),_0x5e3283[_0x316c('0x8f')](_0x24d7bd[_0x41cc44]['id'],_0x41cc44));for(const _0x1d61a9 of _0x5e3283[_0x316c('0x3e')]())'elementStart'===_0x24d7bd[_0x1d61a9][_0x316c('0xa4')]?_0x24d7bd[_0x1d61a9][_0x316c('0x38')][_0x316c('0xb4')]=_0x5e3283[_0x316c('0xb2')](_0x24d7bd[_0x1d61a9][_0x316c('0x11f')]):_0x316c('0x10a')===_0x24d7bd[_0x1d61a9][_0x316c('0xa4')]&&(_0x24d7bd[_0x1d61a9]['item'][_0x316c('0xfd')]=_0x5e3283[_0x316c('0xb2')](_0x24d7bd[_0x1d61a9][_0x316c('0x11f')]));}[_0x316c('0x71')](_0x46f6ad){for(let _0x4ce178=0x0;_0x4ce178<_0x46f6ad[_0x316c('0x62')];_0x4ce178++){if(_0x316c('0xcc')===_0x46f6ad[_0x4ce178]['type'])_0x46f6ad[_0x4ce178][_0x316c('0x38')][_0x316c('0xfd')]=_0x4ce178;else{if(_0x316c('0x10a')===_0x46f6ad[_0x4ce178]['type']){_0x46f6ad[_0x4ce178]['item'][_0x316c('0xb4')]=_0x4ce178;const _0xc8804=_0x46f6ad[_0x4ce178][_0x316c('0x38')][_0x316c('0xfd')];_0x46f6ad[_0xc8804][_0x316c('0x11f')]=_0x46f6ad[_0x4ce178]['id'],_0x46f6ad[_0x4ce178][_0x316c('0x11f')]=_0x46f6ad[_0xc8804]['id'];}else _0x46f6ad[_0x4ce178]['item'][_0x316c('0xfd')]=_0x4ce178,_0x46f6ad[_0x4ce178]['item'][_0x316c('0xb4')]=_0x4ce178,_0x46f6ad[_0x4ce178][_0x316c('0x11f')]=null;}_0x46f6ad[_0x4ce178][_0x316c('0x108')]||(_0x46f6ad[_0x4ce178]['markersStart']=[],_0x46f6ad[_0x4ce178][_0x316c('0xa7')]=[]);}}[_0x316c('0x46')](_0x5687a4,_0x3419b2){const _0x87b7b1=_0x5687a4[_0x316c('0x7e')](_0x1898c1=>!_0x1898c1[_0x316c('0xe3')]);for(let _0xf2a565=0x0;_0xf2a565<_0x3419b2[_0x316c('0x62')];_0xf2a565++)_0x3419b2[_0xf2a565][_0x316c('0xe3')]&&(_0x87b7b1[_0xf2a565][_0x316c('0xe3')]=_0x3419b2[_0xf2a565][_0x316c('0xe3')]);}[_0x316c('0x41')](_0x2ce4a3){const _0x33e782=JSON[_0x316c('0x16')](_0x2ce4a3),_0x38ad6f=this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')]['document'],_0xc926b2=new _0x1ed9cb(_0x38ad6f,_0x33e782[_0x316c('0xb6')](_0x2e7721=>this[_0x316c('0x68')](_0x2e7721)));return this[_0x316c('0x4a')][_0x316c('0x124')][_0x316c('0x119')](_0xc926b2);}[_0x316c('0x68')](_0x2dee5e){const _0x3cd2b2=this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0xc0')];if('string'==typeof _0x2dee5e)return new _0x1729b1(_0x3cd2b2,_0x2dee5e);{const _0xff11c6=_0x2dee5e['children'][_0x316c('0xb6')](_0x13b620=>this[_0x316c('0x68')](_0x13b620));return new(tt[_0x2dee5e['type']]||_0x59a2fe)(_0x3cd2b2,_0x2dee5e[_0x316c('0x11')],_0x2dee5e[_0x316c('0x112')],_0xff11c6);}}['_getDiff'](_0x1af579,_0x2a78b3=null){const _0xf8880=this[_0x316c('0xbc')][_0x316c('0x17')](_0x1af579),_0x20fd1c=_0x2a78b3?this[_0x316c('0xbc')][_0x316c('0x17')](_0x2a78b3):null,_0x54395a=this[_0x316c('0x1e')](_0xf8880,_0x20fd1c),_0x13e795=_0x54395a[_0x54395a[_0x316c('0x62')]-0x1],_0x2e40de=new Map(),_0x50deaa={'model':{},'attributes':{},'changes':[]},_0x3ccd81=new Set(),_0x118b10=new Map();for(let _0x5a0b74=_0x54395a[_0x316c('0x62')]-0x1;_0x5a0b74>=0x0;_0x5a0b74--){const _0x32f350=_0x54395a[_0x5a0b74];for(const _0x41184f of Object[_0x316c('0xd3')](_0x32f350[_0x316c('0x87')]))if(_0x32f350[_0x316c('0x87')][_0x41184f][_0x316c('0x9e')]){const _0x13ca66=_0x32f350[_0x316c('0x87')][_0x41184f]['attachChange'];_0x13ca66['isAttached']?(_0x3ccd81['add'](_0x41184f),_0x118b10['has'](_0x41184f)&&_0x118b10[_0x316c('0xb2')](_0x41184f)[_0x316c('0x31')]==_0x13ca66[_0x316c('0x31')]?_0x118b10[_0x316c('0x9b')](_0x41184f):_0x118b10[_0x316c('0x8f')](_0x41184f,_0x13ca66)):_0x118b10['has'](_0x41184f)?(_0x3ccd81[_0x316c('0x9b')](_0x41184f),_0x118b10['delete'](_0x41184f)):(_0x3ccd81[_0x316c('0xd7')](_0x41184f),_0x118b10[_0x316c('0x8f')](_0x41184f,_0x13ca66));}else _0x3ccd81['add'](_0x41184f);}for(const _0x2a6a6f of _0x3ccd81){const _0xaa8da2=_0x118b10[_0x316c('0x97')](_0x2a6a6f)&&!_0x118b10[_0x316c('0xb2')](_0x2a6a6f)[_0x316c('0x5f')];let _0x57ad12=_0xaa8da2?_0x54395a[_0x316c('0x62')]-0x1:0x0;const _0x332df6=_0xaa8da2?-0x1:0x1;for(;_0x54395a[_0x57ad12];){const _0x55f9ac=_0x54395a[_0x57ad12];if(_0x55f9ac['diffData'][_0x2a6a6f]){const _0x42ef3c=_0xaa8da2?_0x55f9ac[_0x316c('0x87')][_0x2a6a6f][_0x316c('0xca')]:_0x55f9ac[_0x316c('0x87')][_0x2a6a6f]['attributesAfter'];_0x50deaa[_0x316c('0x112')][_0x2a6a6f]=_0x42ef3c?_0x3da7ba(_0x42ef3c):{};break;}_0x57ad12+=_0x332df6;}}for(const _0x2f13c2 of _0x54395a){_0x2f13c2['model']={};for(const _0x537b5d of _0x2f13c2['authors'])_0x2e40de[_0x316c('0x8f')](_0x537b5d['id'],_0x537b5d);for(const _0x4954a7 of _0x3ccd81){const _0x169fa9=_0x2f13c2[_0x316c('0x87')][_0x4954a7]?_0x2f13c2[_0x316c('0x87')][_0x4954a7][_0x316c('0xd9')]:'[]',_0x3285f5=_0x2f13c2[_0x316c('0x87')][_0x4954a7]?_0x2f13c2[_0x316c('0x87')][_0x4954a7][_0x316c('0x1b')]:'[]';_0x2f13c2[_0x316c('0x10d')][_0x4954a7]={'insertions':this[_0x316c('0x41')](_0x169fa9),'deletions':this[_0x316c('0x41')](_0x3285f5)};}}for(const _0x496b50 of _0x3ccd81){let _0x209da4=null,_0x1aefad=0x0;const _0x3db4b7=new Map(Array['from'](_0xf8880[_0x316c('0x10d')][_0x496b50]['insertions'][_0x316c('0x101')])[_0x316c('0x7e')](([_0x2dba04])=>!_0x2dba04[_0x316c('0xe4')](_0x316c('0x3d'))));let _0x3b977d=0x0;for(const _0xc60de3 of _0x54395a){const _0x20929f=this[_0x316c('0x26')](_0xc60de3['model'][_0x496b50]['insertions']);_0xc60de3==_0xf8880?(_0x209da4=_0x20929f,_0x1aefad=_0x209da4[_0x316c('0x62')],_0x209da4['forEach'](_0x2d8d0e=>{_0x2d8d0e['id']=_0x3b977d++;}),this[_0x316c('0x71')](_0x209da4)):this['_markInsertions'](_0x209da4,_0x20929f);const _0x12ae78=_0x209da4[_0x316c('0x7e')](_0x3ebae6=>!_0x3ebae6[_0x316c('0xe3')])[_0x316c('0xb6')](_0x16de7b=>_0x16de7b['id']);let _0x54ae2d=0x0;const _0x13fa3b=this['_makeTape'](_0xc60de3[_0x316c('0x10d')][_0x496b50]['deletions']);_0x13fa3b[_0x316c('0xa1')](_0x106971=>{_0x106971[_0x316c('0x3')]?_0x106971['id']=_0x1aefad++:_0x106971['id']=_0x12ae78[_0x54ae2d++];}),this[_0x316c('0x71')](_0x13fa3b),this[_0x316c('0xc7')](_0x209da4,_0x316c('0xe3')),this[_0x316c('0xc7')](_0x13fa3b,_0x316c('0x3')),_0xc60de3==_0xf8880&&this[_0x316c('0x11c')](_0x209da4,_0x3db4b7),_0x209da4=this[_0x316c('0xee')](_0x209da4,_0x13fa3b),this[_0x316c('0x11a')](_0x209da4),this[_0x316c('0xc7')](_0x209da4,_0x316c('0x3'));}_0x209da4=_0x209da4[_0x316c('0x7e')](_0x2dc08a=>!(_0x2dc08a[_0x316c('0xe3')]&&_0x2dc08a['isRemoved']));const _0x325c4d=new Map(_0x13e795[_0x316c('0x10d')][_0x496b50][_0x316c('0x1b')]['markers']),_0x406152=new Set(_0x3db4b7['keys']());for(const _0x1b0f56 of _0x325c4d[_0x316c('0xd3')]())_0x406152[_0x316c('0x9b')](_0x1b0f56);this[_0x316c('0x2e')](_0x209da4,_0x406152),this[_0x316c('0xd5')](_0x209da4),_0x209da4=this[_0x316c('0x1d')](_0x209da4),_0x209da4=this[_0x316c('0xd0')](_0x209da4),_0x209da4=this[_0x316c('0x9f')](_0x209da4);const {root:_0x224125,changes:_0x1cde2a}=this['_makeModelFromTape'](_0x209da4,_0x2e40de,_0x496b50);_0x50deaa[_0x316c('0x10d')][_0x496b50]=_0x224125;const _0x3eb486=_0x118b10['get'](_0x496b50);if(_0x3eb486){const _0x558051=_0x2e40de['get'](_0x3eb486['userId']),_0x27491d=new _0x1d6b4c({'author':_0x558051,'type':_0x3eb486[_0x316c('0x5f')]?_0x316c('0xd7'):_0x316c('0xf6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x496b50});_0x1cde2a[_0x316c('0x122')](_0x27491d),_0x50deaa['attributes'][_0x496b50][_0x316c('0x84')]=_0x27491d['id'];}_0x50deaa[_0x316c('0xb3')]=_0x50deaa[_0x316c('0xb3')][_0x316c('0xdb')](_0x1cde2a);}return _0x50deaa;}[_0x316c('0x11c')](_0x4c2c24,_0x542c3d){for(let _0x146f13=0x0;_0x146f13<_0x4c2c24['length'];_0x146f13++)for(const [_0x2054ee,_0x5de447]of _0x542c3d)_0x5de447[_0x316c('0x33')][_0x316c('0x6e')](_0x4c2c24[_0x146f13][_0x316c('0x109')])&&_0x4c2c24[_0x146f13]['markersStart']['push'](_0x2054ee),_0x5de447['end']['isEqual'](_0x4c2c24[_0x146f13][_0x316c('0xbd')])&&_0x4c2c24[_0x146f13][_0x316c('0xa7')]['push'](_0x2054ee);}[_0x316c('0xee')](_0x9e3a0f,_0x25d64e){let _0xe963a3=[],_0x380612=0x0,_0x5acd1d=0x0;for(;_0x380612<_0x9e3a0f[_0x316c('0x62')]||_0x5acd1d<_0x25d64e[_0x316c('0x62')];){const _0x106936=_0x9e3a0f[_0x380612]||{},_0x4f6515=_0x25d64e[_0x5acd1d]||{};if(_0x106936['id']==_0x4f6515['id'])_0x380612++,_0x5acd1d++,_0xe963a3['push'](_0x106936);else{if(_0x4f6515[_0x316c('0x3')]&&_0x106936[_0x316c('0xe3')]){const {commonTape:_0xd7cfe4,iEnd:_0x7c429c,jEnd:_0x2cbc87}=this[_0x316c('0xf2')](_0x9e3a0f,_0x380612,_0x25d64e,_0x5acd1d);_0xe963a3=_0xe963a3[_0x316c('0xdb')](_0xd7cfe4),_0x380612=_0x7c429c,_0x5acd1d=_0x2cbc87;}else _0x4f6515[_0x316c('0x3')]?(_0x5acd1d++,_0xe963a3['push'](_0x4f6515)):(_0x380612++,_0xe963a3[_0x316c('0xfe')](_0x106936));}}return _0xe963a3;}[_0x316c('0x2e')](_0x268691,_0x42e6c4){const _0x2158b9=[];for(let _0x29f5b7=0x0;_0x29f5b7<_0x268691[_0x316c('0x62')];_0x29f5b7++){for(let _0x1fb24a=0x0;_0x1fb24a<_0x268691[_0x29f5b7][_0x316c('0x108')][_0x316c('0x62')];_0x1fb24a++){const _0x4b6697=_0x268691[_0x29f5b7][_0x316c('0x108')][_0x1fb24a];if(!_0x42e6c4[_0x316c('0x97')](_0x4b6697))continue;const {group:_0x322b5d,type:_0x258360,authorId:_0x1071d4}=_0x3d6614(_0x4b6697);_0x316c('0x82')!=_0x322b5d||'insertion'!=_0x258360&&_0x316c('0x4b')!=_0x258360||(_0x2158b9[_0x316c('0x122')]({'type':_0x258360,'name':_0x4b6697,'userId':_0x1071d4}),_0x268691[_0x29f5b7]['markersStart'][_0x316c('0x7f')](_0x1fb24a,0x1),_0x1fb24a--);}_0x436cdd(_0x268691[_0x29f5b7]);for(let _0x299349=0x0;_0x299349<_0x268691[_0x29f5b7][_0x316c('0xa7')]['length'];_0x299349++){const _0xea7afe=_0x268691[_0x29f5b7][_0x316c('0xa7')][_0x299349];if(!_0x42e6c4[_0x316c('0x97')](_0xea7afe))continue;const {group:_0x48727d,type:_0x29d46e}=_0x3d6614(_0xea7afe);if('revision-suggestion'!=_0x48727d||_0x316c('0xe6')!=_0x29d46e&&'deletion'!=_0x29d46e)continue;_0x268691[_0x29f5b7][_0x316c('0xa7')][_0x316c('0x7f')](_0x299349,0x1),_0x299349--;const _0x17ce11=_0x2158b9[_0x316c('0xbf')](_0x31443f=>_0x31443f[_0x316c('0x11')]==_0xea7afe);_0x17ce11>-0x1&&_0x2158b9[_0x316c('0x7f')](_0x17ce11,0x1);}}function _0x3d6614(_0x2ba870){const _0x8b709=_0x2ba870[_0x316c('0x70')](':');return{'group':_0x8b709[0x0],'type':_0x8b709[0x1],'subType':_0x8b709[_0x316c('0x62')]>=0x5?_0x8b709[0x2]:null,'id':_0x8b709[_0x316c('0x62')]<0x5?_0x8b709[0x2]:_0x8b709[0x3],'authorId':_0x8b709[_0x316c('0x62')]<0x5?_0x8b709[0x3]:_0x8b709[0x4],'markerCount':0x6==_0x8b709[_0x316c('0x62')]?_0x8b709[0x5]:null};}function _0x436cdd(_0x230858){for(let _0xa9486b=0x0;_0xa9486b<_0x2158b9['length'];_0xa9486b++){if(_0x230858[_0x316c('0xe3')]&&'insertion'==_0x2158b9[_0xa9486b][_0x316c('0xa4')])return _0x230858[_0x316c('0x80')]=_0x2158b9[_0xa9486b],void delete _0x230858[_0x316c('0xe3')];if(!_0x230858[_0x316c('0xe3')]&&!_0x230858[_0x316c('0x3')]&&_0x316c('0x4b')==_0x2158b9[_0xa9486b]['type'])return void(_0x230858[_0x316c('0x8')]=_0x2158b9[_0xa9486b]);}}}[_0x316c('0xc7')](_0x4201da,_0x4bca6c){let _0xcd2b1e=0x0,_0x374e55=!0x1;const _0x173bbb=new Map();for(const _0x2d6440 of _0x4201da)_0x2d6440[_0x4bca6c]?_0x374e55&&(_0xcd2b1e++,_0x374e55=!0x1):(_0xcd2b1e++,_0x374e55=!0x0),_0x173bbb['set'](_0x2d6440['id'],_0xcd2b1e);for(let _0x21e05d=0x0;_0x21e05d<_0x4201da['length'];_0x21e05d++){if(_0x316c('0x3')==_0x4bca6c&&_0x4201da[_0x21e05d][_0x316c('0xe3')]||_0x316c('0xe3')==_0x4bca6c&&_0x4201da[_0x21e05d]['isRemoved'])continue;if(_0x316c('0x12')==_0x4201da[_0x21e05d][_0x316c('0xa4')]){_0x4201da[_0x21e05d][_0x316c('0xea')]=0x0;continue;}const _0xb35693=_0x173bbb[_0x316c('0xb2')](_0x4201da[_0x21e05d][_0x316c('0x11f')]),_0x5ee113=_0x173bbb[_0x316c('0xb2')](_0x4201da[_0x21e05d]['id']);_0x4201da[_0x21e05d][_0x316c('0xea')]=_0xb35693-_0x5ee113;}}['_getRevisionsRange'](_0x22e2b6,_0x391460,_0x493a24=!0x1){const _0x21b566=[];let _0x1502fd=this[_0x316c('0xbc')]['getIndex'](_0x22e2b6),_0x2ad29e=this[_0x316c('0xbc')][_0x316c('0xd8')](_0x391460);for(-0x1==_0x2ad29e&&(_0x2ad29e=this[_0x316c('0xbc')][_0x316c('0x42')]['length'],_0x493a24=!0x1);_0x1502fd<_0x2ad29e;)_0x21b566['push'](this[_0x316c('0xbc')][_0x316c('0x17')](_0x1502fd)),_0x1502fd++;return _0x493a24&&_0x21b566['push'](this[_0x316c('0xbc')][_0x316c('0x17')](_0x1502fd)),_0x21b566;}['_threeWayMerge'](_0xa0993c,_0x39ad10,_0x373ce8,_0x3603d8){const _0x1225eb=this[_0x316c('0x4a')][_0x316c('0x10d')]['schema'];let _0x55ab33=_0x39ad10;for(;_0xa0993c[_0x55ab33]&&_0xa0993c[_0x55ab33][_0x316c('0xe3')];)_0x55ab33++;let _0x358073=_0x3603d8;for(;_0x373ce8[_0x358073]&&_0x373ce8[_0x358073][_0x316c('0x3')];)_0x358073++;_0x5b36fa(_0xa0993c,_0x39ad10,_0x55ab33),_0x5b36fa(_0x373ce8,_0x3603d8,_0x358073);const _0x69e4fb=_0x373ce8[_0x316c('0xfb')](_0x3603d8,_0x358073)[_0x316c('0xdb')](_0xa0993c[_0x316c('0xfb')](_0x39ad10,_0x55ab33));return _0x69e4fb[_0x316c('0x55')]((_0x399b50,_0x12f758)=>_0x399b50[_0x316c('0x95')]!=_0x12f758[_0x316c('0x95')]?_0x399b50[_0x316c('0x95')]-_0x12f758[_0x316c('0x95')]:_0x399b50['level']!=_0x12f758[_0x316c('0xec')]?_0x399b50[_0x316c('0xec')]-_0x12f758[_0x316c('0xec')]:_0x399b50[_0x316c('0xea')]!=_0x12f758[_0x316c('0xea')]?_0x12f758[_0x316c('0xea')]-_0x399b50[_0x316c('0xea')]:!!_0x399b50['isAdded']!=!!_0x12f758[_0x316c('0xe3')]?-0x1==_0x399b50['side']||0x0==_0x399b50[_0x316c('0x95')]?_0x399b50[_0x316c('0xe3')]?-0x1:0x1:_0x399b50[_0x316c('0xe3')]?0x1:-0x1:_0x399b50['index']-_0x12f758['index']),{'commonTape':_0x69e4fb,'iEnd':_0x55ab33,'jEnd':_0x358073};function _0x5b36fa(_0x404a62,_0x34c06e,_0x3991fa){let _0x5325b3=-0x1,_0xd72666=Number[_0x316c('0xa9')],_0x363aeb=!0x0;for(let _0x136bba=_0x34c06e;_0x136bba<_0x3991fa;_0x136bba++)if(_0x1225eb[_0x316c('0xa0')](_0x404a62[_0x136bba]['item'])||(_0x363aeb=!0x1),_0x404a62[_0x136bba][_0x316c('0x38')][_0x316c('0xfd')]<_0x34c06e&&(_0x5325b3=_0x136bba),_0x404a62[_0x136bba][_0x316c('0x38')][_0x316c('0xb4')]>=_0x3991fa){_0xd72666=_0x136bba;break;}_0x363aeb&&(_0x5325b3=_0x3991fa-0x1);for(let _0x3b9706=_0x34c06e;_0x3b9706<_0x3991fa;_0x3b9706++)_0x404a62[_0x3b9706][_0x316c('0x95')]=_0x3b9706<=_0x5325b3?-0x1:_0x3b9706<_0xd72666?0x0:0x1,_0x404a62[_0x3b9706][_0x316c('0x23')]=_0x3b9706;let _0xb3a35a=0x0;for(let _0x5c823a=_0x34c06e;_0x5c823a<=_0x5325b3;_0x5c823a++)0x0==_0x404a62[_0x5c823a][_0x316c('0xea')]?_0x404a62[_0x5c823a]['level']=_0xb3a35a:(_0xb3a35a++,_0x404a62[_0x5c823a]['level']=_0xb3a35a,_0xb3a35a++);for(let _0x164032=_0x34c06e;_0x164032<_0x3991fa;_0x164032++)0x0==_0x404a62[_0x164032]['side']&&(_0x404a62[_0x164032][_0x316c('0xec')]=_0xb3a35a);_0xb3a35a=0x0;for(let _0x35f5cd=_0x3991fa-0x1;_0x35f5cd>=_0xd72666;_0x35f5cd--)0x0==_0x404a62[_0x35f5cd][_0x316c('0xea')]?_0x404a62[_0x35f5cd]['level']=_0xb3a35a:(_0xb3a35a--,_0x404a62[_0x35f5cd][_0x316c('0xec')]=_0xb3a35a,_0xb3a35a--);}}['_fixObsoleteTags'](_0xdffcf7){const _0x5e1e73=new Map(),_0x3ecf78=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x48')];for(let _0x4e263a=0x1;_0x4e263a<_0xdffcf7[_0x316c('0x62')];_0x4e263a++){let _0x652257,_0x37b627,_0x1b6393;const _0xbaab4=_0xdffcf7[_0x4e263a],_0x1ff1d3=_0xdffcf7[_0x4e263a-0x1];if(_0x316c('0x12')==_0xbaab4[_0x316c('0xa4')])continue;if(_0xbaab4[_0x316c('0xa4')]!=_0x1ff1d3[_0x316c('0xa4')])continue;if(!_0x3ecf78[_0x316c('0xc')](_0x1ff1d3['item'])||_0x3ecf78[_0x316c('0xf4')](_0x1ff1d3[_0x316c('0x38')]))continue;if(!_0x3ecf78['isBlock'](_0xbaab4[_0x316c('0x38')])||_0x3ecf78[_0x316c('0xf4')](_0xbaab4[_0x316c('0x38')]))continue;if((_0xdffcf7[_0x4e263a]['isAdded']||_0xdffcf7[_0x4e263a][_0x316c('0x80')])&&_0xdffcf7[_0x4e263a-0x1][_0x316c('0x3')])_0x652257=_0xdffcf7[_0x4e263a],_0x37b627=_0xdffcf7[_0x4e263a-0x1],_0x1b6393=_0x4e263a-0x1;else{if(!_0xdffcf7[_0x4e263a][_0x316c('0x3')]||!_0xdffcf7[_0x4e263a-0x1][_0x316c('0xe3')]&&!_0xdffcf7[_0x4e263a-0x1]['isAddSuggestion'])continue;_0x652257=_0xdffcf7[_0x4e263a-0x1],_0x37b627=_0xdffcf7[_0x4e263a],_0x1b6393=_0x4e263a;}const _0x2a8125=_0x652257[_0x316c('0xec')]==_0x37b627[_0x316c('0xec')],_0x434250=Math[_0x316c('0x2f')](_0x652257[_0x316c('0xec')])<Math['abs'](_0x37b627[_0x316c('0xec')])&&0x0==_0x37b627[_0x316c('0xea')];(_0x2a8125||_0x434250)&&(_0x5e1e73['set'](_0x37b627['id'],_0x652257['id']),_0xdffcf7[_0x316c('0x7f')](_0x1b6393,0x1),_0x4e263a--,_0x652257[_0x316c('0xe3')]=!0x1);}for(let _0x376629=0x0;_0x376629<_0xdffcf7['length'];_0x376629++)_0x5e1e73[_0x316c('0x97')](_0xdffcf7[_0x376629][_0x316c('0x11f')])&&(_0xdffcf7[_0x376629]['pairId']=_0x5e1e73[_0x316c('0xb2')](_0xdffcf7[_0x376629][_0x316c('0x11f')]));}[_0x316c('0x1d')](_0x431b8a){const _0x54bc7b=new Set(_0x431b8a[_0x316c('0xb6')](_0x59d4dc=>_0x59d4dc['id']));for(let _0x38b7b0=0x0;_0x38b7b0<_0x431b8a['length'];_0x38b7b0++)_0x54bc7b['has'](_0x431b8a[_0x38b7b0][_0x316c('0x11f')])||0x0==_0x431b8a[_0x38b7b0][_0x316c('0xea')]||(_0x431b8a[_0x38b7b0][_0x316c('0xa2')]=!0x0);return _0x431b8a['filter'](_0x4e61ca=>!_0x4e61ca[_0x316c('0xa2')]);}[_0x316c('0xd0')](_0x145dd3){const _0xa99a74=new Set();for(let _0x37fa5b=0x0;_0x37fa5b<_0x145dd3[_0x316c('0x62')];_0x37fa5b++){if(_0xa99a74[_0x316c('0x97')](_0x145dd3[_0x37fa5b]['id'])&&_0x145dd3[_0x37fa5b][_0x316c('0x3')]&&(_0x145dd3[_0x37fa5b][_0x316c('0xa2')]=!0x0),_0x145dd3[_0x37fa5b][_0x316c('0xa2')])continue;if(0x0==_0x145dd3[_0x37fa5b][_0x316c('0xea')])continue;if(_0x316c('0xcc')!=_0x145dd3[_0x37fa5b][_0x316c('0xa4')])continue;if(null==_0x145dd3[_0x37fa5b]['pairId'])continue;let _0x388e92=_0x37fa5b+0x1,_0x18ca9c=0x0;for(;_0x145dd3[_0x388e92]['id']!=_0x145dd3[_0x37fa5b][_0x316c('0x11f')];)_0x316c('0xcc')==_0x145dd3[_0x388e92][_0x316c('0xa4')]?_0x18ca9c++:_0x316c('0x10a')==_0x145dd3[_0x388e92][_0x316c('0xa4')]&&_0x18ca9c--,_0x388e92++;if(0x0!=_0x18ca9c){if(_0x145dd3[_0x37fa5b][_0x316c('0x3')])_0x145dd3[_0x37fa5b][_0x316c('0xa2')]=!0x0;else for(;_0x388e92!=_0x37fa5b;)_0x145dd3[_0x388e92]['isRemoved']&&0x0!=_0x145dd3[_0x388e92][_0x316c('0xea')]&&(_0x145dd3[_0x388e92][_0x316c('0xa2')]=!0x0,_0xa99a74['add'](_0x145dd3[_0x388e92]['pairId'])),_0x388e92--;}}return _0x145dd3[_0x316c('0x7e')](_0x296cf8=>!_0x296cf8[_0x316c('0xa2')]);}[_0x316c('0x9f')](_0x4d1ea4){const _0x553d6c=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x48')];for(let _0x54ffc5=0x0;_0x54ffc5<_0x4d1ea4['length'];_0x54ffc5++){if(!(_0x4d1ea4[_0x54ffc5][_0x316c('0xe3')]||_0x4d1ea4[_0x54ffc5][_0x316c('0x80')]||_0x4d1ea4[_0x54ffc5][_0x316c('0x3')]||_0x4d1ea4[_0x54ffc5][_0x316c('0x8')]))continue;if(0x0==_0x4d1ea4[_0x54ffc5][_0x316c('0xea')])continue;const _0x5cfb1e=_0x4d1ea4[_0x54ffc5][_0x316c('0x38')];_0x553d6c[_0x316c('0xc')](_0x5cfb1e)||_0x553d6c[_0x316c('0xf4')](_0x5cfb1e)||(_0x4d1ea4[_0x54ffc5][_0x316c('0xe3')]&&delete _0x4d1ea4[_0x54ffc5][_0x316c('0xe3')],_0x4d1ea4[_0x54ffc5]['isAddSuggestion']&&delete _0x4d1ea4[_0x54ffc5][_0x316c('0x80')],_0x4d1ea4[_0x54ffc5][_0x316c('0x8')]&&delete _0x4d1ea4[_0x54ffc5][_0x316c('0x8')],_0x4d1ea4[_0x54ffc5][_0x316c('0x3')]&&(_0x4d1ea4[_0x54ffc5]['isIncorrect']=!0x0));}return _0x4d1ea4[_0x316c('0x7e')](_0x3ea564=>!_0x3ea564['isIncorrect']);}['_makeModelFromTape'](_0x439399,_0x324a56,_0x16a4bd){const _0x4419c8=new _0x3641d9(),_0x1c1a58=[],_0xd24905=new Map(),_0x14e1a3=this['editor'][_0x316c('0x10d')],_0x2273fe=_0x14e1a3[_0x316c('0x48')],_0x3e0346=[_0x4419c8],_0x4f7541={},_0x5b2c97={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5b03bd=null;const _0x49852c=[0x0];for(let _0x2632a0=0x0;_0x2632a0<_0x439399[_0x316c('0x62')];_0x2632a0++){let _0x430f23,_0x2dc88e;if('elementStart'===_0x439399[_0x2632a0][_0x316c('0xa4')]){_0x430f23=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c);const _0x298bd8=new _0x2d5233(_0x439399[_0x2632a0][_0x316c('0x38')]['name'],_0x439399[_0x2632a0][_0x316c('0x38')][_0x316c('0x100')]());_0x3e0346[0x0][_0x316c('0x4f')](_0x298bd8),_0x49852c['push'](0x0),_0x3e0346[_0x316c('0x122')](_0x298bd8),_0x2dc88e=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x5b03bd=null;}else{if(_0x316c('0x10a')===_0x439399[_0x2632a0][_0x316c('0xa4')])_0x3e0346[_0x316c('0xd2')](),_0x430f23=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x49852c[_0x316c('0x94')](),_0x49852c[_0x49852c[_0x316c('0x62')]-0x1]++,_0x2dc88e=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x5b03bd=null;else{if(_0x430f23=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x5b03bd&&_0x31a6f3(_0x5b03bd,_0x439399[_0x2632a0][_0x316c('0x38')]))_0x5b03bd[_0x316c('0x3a')]+=_0x439399[_0x2632a0]['item']['data'];else{const _0x598ae6=new _0x449c8c(_0x439399[_0x2632a0][_0x316c('0x38')][_0x316c('0x124')],_0x439399[_0x2632a0]['item']['getAttributes']());_0x3e0346[0x0][_0x316c('0x4f')](_0x598ae6),_0x5b03bd=_0x598ae6;}_0x49852c[_0x49852c[_0x316c('0x62')]-0x1]+=_0x439399[_0x2632a0][_0x316c('0x38')]['offsetSize'],_0x2dc88e=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c);}}for(const _0x4c72f5 of _0x439399[_0x2632a0]['markersStart'])_0xd24905[_0x316c('0x8f')](_0x4c72f5,{'start':_0x430f23,'end':null});_0x5aad24(_0x316c('0x8'),_0x2632a0,_0x430f23,_0x2dc88e),_0x5aad24('isAddSuggestion',_0x2632a0,_0x430f23,_0x2dc88e),_0x5aad24(_0x316c('0x3'),_0x2632a0,_0x430f23,_0x2dc88e),_0x5aad24(_0x316c('0xe3'),_0x2632a0,_0x430f23,_0x2dc88e);for(const _0x1e0102 of _0x439399[_0x2632a0]['markersEnd']){_0xd24905[_0x316c('0xb2')](_0x1e0102)['end']=_0x2dc88e;}}for(const [_0x4476b0,_0x21b3ca]of _0xd24905){const _0xf5a520=this[_0x316c('0x4a')]['model'][_0x316c('0x69')](_0x21b3ca['start'],_0x21b3ca[_0x316c('0x5c')]);_0x4419c8[_0x316c('0x101')][_0x316c('0x8f')](_0x4476b0,_0xf5a520);}return _0x1c1a58[_0x316c('0x55')]((_0x5e25c5,_0x12a1ca)=>{const _0x477b9e=_0x4419c8[_0x316c('0x101')][_0x316c('0xb2')]('revision:'+_0x5e25c5['id']),_0x16d27a=_0x4419c8['markers'][_0x316c('0xb2')](_0x316c('0x3d')+_0x12a1ca['id']);return _0x477b9e[_0x316c('0x33')][_0x316c('0xba')](_0x16d27a[_0x316c('0x33')])?-0x1:_0x477b9e[_0x316c('0x33')][_0x316c('0x76')](_0x16d27a[_0x316c('0x33')])?0x1:_0x477b9e['end'][_0x316c('0xba')](_0x16d27a['end'])?-0x1:_0x477b9e[_0x316c('0x5c')][_0x316c('0x76')](_0x16d27a[_0x316c('0x5c')])?0x1:_0x316c('0xd7')===_0x5e25c5[_0x316c('0xa4')]?-0x1:0x1;}),{'root':_0x4419c8,'changes':_0x1c1a58};function _0x5aad24(_0x1ac1d3,_0x20e640,_0x15a9a3,_0x19161e){const _0x1ea60a=!!_0x439399[_0x20e640][_0x1ac1d3],_0x2ad71c=_0x1ea60a?_0x439399[_0x20e640][_0x1ac1d3][_0x316c('0x31')]:null,_0x8af4a6=_0x20e640===_0x439399['length']-0x1,_0x3c3565=_0x5b2c97[_0x1ac1d3][0x0],_0x54a686=_0x2273fe['isObject'](_0x439399[_0x20e640][_0x316c('0x38')]);!_0x4f7541[_0x1ac1d3]&&_0x1ea60a?_0x4f7541[_0x1ac1d3]={'start':_0x15a9a3,'tapeItem':_0x439399[_0x20e640],'userId':_0x2ad71c,'type':_0x1ac1d3}:_0x4f7541[_0x1ac1d3]&&!_0x1ea60a?(_0x4f7541[_0x1ac1d3][_0x316c('0x5c')]=_0x15a9a3,_0x1d0822(_0x4f7541[_0x1ac1d3]),_0x4f7541[_0x1ac1d3]=null):_0x4f7541[_0x1ac1d3]&&_0x1ea60a&&_0x4f7541[_0x1ac1d3]['userId']!==_0x2ad71c&&(_0x4f7541[_0x1ac1d3][_0x316c('0x5c')]=_0x15a9a3,_0x3c3565&&_0x3c3565[_0x316c('0x31')]===_0x4f7541[_0x1ac1d3][_0x316c('0x31')]||_0x1d0822(_0x4f7541[_0x1ac1d3]),_0x4f7541[_0x1ac1d3]={'start':_0x15a9a3,'tapeItem':_0x439399[_0x20e640],'userId':_0x2ad71c,'type':_0x1ac1d3}),_0x4f7541[_0x1ac1d3]&&_0x54a686&&(_0x316c('0xcc')!==_0x439399[_0x20e640][_0x316c('0xa4')]||_0x3c3565&&_0x3c3565[_0x316c('0x31')]===_0x2ad71c||_0x5b2c97[_0x1ac1d3]['unshift']({'userId':_0x2ad71c,'object':_0x439399[_0x20e640][_0x316c('0x38')],'change':_0x4f7541[_0x1ac1d3]}),_0x316c('0x10a')===_0x439399[_0x20e640][_0x316c('0xa4')]&&_0x3c3565&&_0x3c3565['object']===_0x439399[_0x20e640]['item']&&(_0x5b2c97[_0x1ac1d3][_0x316c('0xd2')](),_0x4f7541[_0x1ac1d3]=_0x3c3565['change'])),_0x4f7541[_0x1ac1d3]&&_0x8af4a6&&(_0x4f7541[_0x1ac1d3]['end']=_0x19161e,_0x1d0822(_0x4f7541[_0x1ac1d3]),_0x4f7541[_0x1ac1d3]=null);}function _0x1d0822({start:_0x22ddc5,end:_0x2b0860,tapeItem:_0x3ebddd,userId:_0x321010,type:_0x4b5d04}){const _0x15dcbf=_0x3ebddd['item'],_0x4c3823=_0x14e1a3[_0x316c('0x48')][_0x316c('0xc')](_0x15dcbf)&&!_0x14e1a3[_0x316c('0x48')][_0x316c('0xf4')](_0x15dcbf),_0x4f1966=_0x22ddc5['nodeAfter']==_0x2b0860[_0x316c('0xdf')]&&_0x2b0860['isAtStart'];if(_0x4c3823&&_0x4f1966)return;const _0x377077=_0x14e1a3[_0x316c('0x69')](_0x22ddc5,_0x2b0860),_0x285847=_0x324a56['get'](_0x321010),_0x131da7=new _0x1d6b4c({'author':_0x285847,'type':_0x316c('0xe3')==_0x4b5d04||_0x316c('0x80')==_0x4b5d04?_0x316c('0xd7'):'remove','data':{'isSuggestion':_0x316c('0x80')==_0x4b5d04||_0x316c('0x8')==_0x4b5d04},'createdAt':new Date(),'rootName':_0x16a4bd});_0x1c1a58[_0x316c('0xfe')](_0x131da7),_0x4419c8[_0x316c('0x101')]['set'](_0x316c('0x3d')+_0x131da7['id'],_0x377077);}function _0x31a6f3(_0x51710e,_0x3f4b28){const _0x3b6956=_0x51710e['getAttributes'](),_0x5aec98=_0x3f4b28[_0x316c('0x100')]();for(const _0x9e3dcb of _0x3b6956){if(_0x9e3dcb[0x1]!==_0x3f4b28[_0x316c('0x2')](_0x9e3dcb[0x0]))return!0x1;_0x5aec98[_0x316c('0xad')]();}return _0x5aec98[_0x316c('0xad')]()[_0x316c('0xf9')];}}[_0x316c('0x8b')](){this['editor']['conversion']['for'](_0x316c('0x73'))[_0x316c('0x32')]({'view':_0x316c('0x4')}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x103'))[_0x316c('0xc9')]({'model':_0x316c('0x4'),'view':_0x2886b6=>{const _0x1d86be=_0x2886b6['markerName'][_0x316c('0x70')](':')[0x1],_0x2af075=this[_0x316c('0xaf')](_0x1d86be);if(!_0x2af075)return null;const _0x2279b5=_0x316c('0xd7')==_0x2af075[_0x316c('0xa4')]?_0x316c('0xe6'):_0x316c('0x4b'),_0x13e69d=[_0x316c('0x11b'),_0x316c('0x86')+_0x2279b5];return _0x2af075[_0x316c('0x124')][_0x316c('0x10')]&&_0x13e69d[_0x316c('0xfe')](_0x316c('0x86')+_0x2279b5+_0x316c('0x44')),this['activeChange']==_0x2af075&&_0x13e69d[_0x316c('0xfe')](_0x316c('0x114')),{'classes':_0x13e69d,'attributes':{'data-change-id':_0x1d86be}};}}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))[_0x316c('0xd7')](_0x58d2cd=>{_0x58d2cd['on'](_0x316c('0x7a'),(_0x4b1b2c,_0x3ddc23,_0xf5fd98)=>{const _0x5a16d3=_0x3ddc23[_0x316c('0xe8')]['getChild'](0x0);if(!_0x5a16d3||!_0x5a16d3['is']('element',_0x316c('0x8d')))return;if(!_0xf5fd98[_0x316c('0x9a')][_0x316c('0x106')](_0x5a16d3,{'attributes':[_0x316c('0xaa'),_0x316c('0x89')]}))return;const _0x13c83b=_0x3ddc23[_0x316c('0x64')][_0x316c('0x33')][_0x316c('0x29')];_0xf5fd98[_0x316c('0x20')][_0x316c('0x24')](_0x316c('0xaa'),_0x5a16d3[_0x316c('0x2')](_0x316c('0xaa')),_0x13c83b),_0xf5fd98[_0x316c('0x20')][_0x316c('0x24')](_0x316c('0x89'),_0x5a16d3[_0x316c('0x2')](_0x316c('0x89')),_0x13c83b);},{'priority':_0x316c('0x2a')});}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))['add'](_0x3928ed=>{_0x3928ed['on']('element',(_0x521d5e,_0x1d2d1b,_0x5d4d50)=>{if(!_0x5d4d50[_0x316c('0x9a')][_0x316c('0x106')](_0x1d2d1b[_0x316c('0xe8')],{'attributes':[_0x316c('0xaa'),_0x316c('0x89')]}))return;if(_0x1d2d1b[_0x316c('0x64')][_0x316c('0x115')])return;const _0x405d66=_0x1d2d1b[_0x316c('0x64')]['start'][_0x316c('0x29')];_0x405d66[_0x316c('0x53')](_0x316c('0xaa'))||_0x405d66[_0x316c('0x53')](_0x316c('0xf8'))||(_0x5d4d50[_0x316c('0x20')][_0x316c('0x24')](_0x316c('0xaa'),_0x1d2d1b[_0x316c('0xe8')]['getAttribute'](_0x316c('0xaa')),_0x405d66),_0x5d4d50[_0x316c('0x20')]['setAttribute'](_0x316c('0x89'),_0x1d2d1b[_0x316c('0xe8')][_0x316c('0x2')](_0x316c('0x89')),_0x405d66));},{'priority':'low'});}),this['editor'][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))[_0x316c('0x116')]({'view':{'name':_0x316c('0x74'),'attributes':{'vid':!0x0}},'model':{'key':_0x316c('0xf8'),'value':_0x256e13=>_0x256e13[_0x316c('0x2')](_0x316c('0xf8'))}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5ad03b,[,_0x41eab5])=>{[_0x316c('0xaa'),_0x316c('0x89'),_0x316c('0xf8')]['includes'](_0x41eab5)&&(_0x5ad03b[_0x316c('0x6a')]=!0x0,_0x5ad03b[_0x316c('0xc1')]());},{'priority':_0x316c('0xa6')}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')]('dataDowncast')[_0x316c('0xd7')](_0x6d642=>{_0x6d642['on'](_0x316c('0x6c'),(_0x598b51,_0x2aa488,_0x2b5353)=>{if('\x20'!=_0x2aa488['item'][_0x316c('0x124')]||_0x2aa488['item']['parent'][_0x316c('0xc5')]>0x1)return;if(!_0x2b5353[_0x316c('0x9a')]['consume'](_0x2aa488[_0x316c('0x38')],_0x598b51['name']))return;const _0x54d937=_0x2b5353[_0x316c('0x20')],_0x4b5636=_0x2b5353[_0x316c('0x67')][_0x316c('0x2b')](_0x2aa488[_0x316c('0xe9')]);_0x54d937['wrap'](_0x4b5636,_0x54d937[_0x316c('0xe')]('span'));});}),this[_0x316c('0x4a')]['conversion'][_0x316c('0x78')](_0x316c('0x113'))['markerToData']({'model':_0x316c('0x4')}),this[_0x316c('0x4a')][_0x316c('0xeb')]['downcastDispatcher']['on'](_0x316c('0x51'),function(_0x538255){const _0x573ccf=_0x538255[_0x316c('0x9')][_0x316c('0xb2')](_0x316c('0xbb'));return(_0x185b9b,_0x36a10e,_0x3d5219)=>{const _0x1d11fa=_0x36a10e[_0x316c('0x5b')][_0x316c('0x70')](':')[0x1],_0x2b369b=_0x573ccf[_0x316c('0xaf')](_0x1d11fa);if(!_0x2b369b)return null;const _0x3df1a='add'==_0x2b369b[_0x316c('0xa4')]?_0x316c('0x70'):'merge';if(!_0x3d5219[_0x316c('0x9a')][_0x316c('0x117')](_0x36a10e[_0x316c('0x63')],_0x185b9b[_0x316c('0x11')]))return;const _0x38633f=_0x36a10e[_0x316c('0x63')][_0x316c('0xcf')](),_0x349da3=_0x36a10e['markerRange'][_0x316c('0x33')],_0x17ba06=_0x538255[_0x316c('0x10d')][_0x316c('0x48')];let _0x3a892a=null,_0x989e06=null,_0x4fc07c=!0x1,_0x37cce3=!0x1;for(const _0x31a785 of _0x38633f){const _0x1cf255=_0x31a785[_0x316c('0x38')];_0x4fc07c=_0x4fc07c||_0x17ba06[_0x316c('0xe2')](_0x1cf255);const _0x1c2a9f=_0x3d5219[_0x316c('0x67')][_0x316c('0x121')](_0x1cf255);if(_0x1c2a9f&&_0x1c2a9f[_0x316c('0x1f')](_0x316c('0x12b')))return;'elementEnd'==_0x31a785['type']&&(_0x17ba06[_0x316c('0xc')](_0x1cf255)&&!_0x17ba06['isLimit'](_0x1cf255)&&(_0x1cf255[_0x316c('0x90')]||_0x349da3[_0x316c('0x85')]?_0x3a892a&&_0x3a892a[_0x316c('0xdf')]==_0x1cf255||(_0x3a892a=_0x1cf255,_0x11aaef(_0x31a785[_0x316c('0x109')]),_0x37cce3=!0x0):_0x989e06=_0x989e06||_0x31a785['previousPosition']));}function _0x11aaef(_0x1a10a6){const _0xcf1493=_0x3d5219[_0x316c('0x20')][_0x316c('0xcb')]('span',{'class':_0x316c('0x86')+_0x3df1a}),_0x3fd58c=_0x3d5219[_0x316c('0x67')]['toViewPosition'](_0x1a10a6);_0x2b369b[_0x316c('0x124')][_0x316c('0x10')]&&_0x3d5219[_0x316c('0x20')]['addClass']('ck-suggestion-marker-'+_0x3df1a+_0x316c('0x44'),_0xcf1493),_0x573ccf[_0x316c('0x37')]==_0x2b369b&&_0x3d5219['writer'][_0x316c('0x35')](_0x316c('0x114'),_0xcf1493),_0x3d5219[_0x316c('0x20')][_0x316c('0x15')](_0x3fd58c,_0xcf1493),_0x3d5219['mapper'][_0x316c('0xb5')](_0xcf1493,_0x36a10e['markerName']);}_0x4fc07c||_0x37cce3||!_0x989e06||_0x11aaef(_0x989e06);};}(this[_0x316c('0x4a')]),{'priority':_0x316c('0xe7')}),this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0x120')]['on'](_0x316c('0xc2'),(_0x483969,_0xf69445,_0x22cab2)=>{const _0x5bd6f7=_0x22cab2[_0x316c('0x67')]['markerNameToElements'](_0xf69445[_0x316c('0x5b')]);if(_0x5bd6f7)for(const _0x46a009 of _0x5bd6f7)(_0x46a009[_0x316c('0xd4')](_0x316c('0xc6'))||_0x46a009[_0x316c('0xd4')](_0x316c('0x65')))&&(_0x22cab2['mapper']['unbindElementFromMarkerName'](_0x46a009,_0xf69445[_0x316c('0x5b')]),_0x22cab2[_0x316c('0x20')][_0x316c('0xf6')](_0x46a009));},{'priority':_0x316c('0xe7')}),this['editor'][_0x316c('0xeb')][_0x316c('0x120')]['on'](_0x316c('0x51'),(_0x288d5c,_0x36f62f,_0x40da62)=>{const _0x537dd1=_0x36f62f[_0x316c('0x5b')]['split'](':')[0x1],_0x4eff0d=this[_0x316c('0xaf')](_0x537dd1);if(!_0x4eff0d)return null;const _0x2065a5=_0x316c('0xd7')==_0x4eff0d[_0x316c('0xa4')]?_0x316c('0x70'):_0x316c('0x10e');if(_0x40da62[_0x316c('0x9a')]['test'](_0x36f62f[_0x316c('0x63')],_0x288d5c[_0x316c('0x11')]))for(const _0x303c57 of _0x36f62f[_0x316c('0x63')]['getItems']()){if(!_0x303c57['is'](_0x316c('0x34'),'softBreak'))continue;const _0x337072=_0x40da62[_0x316c('0x20')][_0x316c('0xcb')]('span',{'class':_0x316c('0x86')+_0x2065a5}),_0x14c4f0=_0x40da62[_0x316c('0x67')]['toViewPosition'](this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x10b')](_0x303c57));_0x4eff0d[_0x316c('0x124')][_0x316c('0x10')]&&_0x40da62[_0x316c('0x20')][_0x316c('0x35')](_0x316c('0x86')+_0x2065a5+_0x316c('0x44'),_0x337072),this[_0x316c('0x37')]==_0x4eff0d&&_0x40da62[_0x316c('0x20')][_0x316c('0x35')](_0x316c('0x114'),_0x337072),_0x40da62[_0x316c('0x20')][_0x316c('0x15')](_0x14c4f0,_0x337072),_0x40da62['mapper'][_0x316c('0xb5')](_0x337072,_0x36f62f[_0x316c('0x5b')]);}},{'priority':'high'}),this['editor']['model']['document']['on'](_0x316c('0x104'),()=>{this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0x104')](_0x228f63=>{for(const _0x2a2fa8 of this['editor'][_0x316c('0x10d')]['document']['getRootNames']()){const _0xf8ca18=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0x56')](_0x2a2fa8),_0xd7bbb4=this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')]['document'][_0x316c('0x56')](_0x2a2fa8);if(_0xd7bbb4){const _0x1d525b=_0xf8ca18['getAttribute'](_0x316c('0x84'));if(_0x228f63[_0x316c('0x18')]('data-change-id',_0xd7bbb4),_0x228f63[_0x316c('0x75')]('ck-revision-history-root-add',_0xd7bbb4),_0x228f63[_0x316c('0x75')](_0x316c('0x3c'),_0xd7bbb4),_0x228f63[_0x316c('0x75')]('ck-revision-history-root--active',_0xd7bbb4),_0x1d525b){const _0x451f23=this[_0x316c('0xaf')](_0x1d525b);if(!_0x451f23)return null;_0x228f63[_0x316c('0x24')](_0x316c('0x57'),_0x1d525b,_0xd7bbb4),_0x228f63[_0x316c('0x35')](_0x316c('0x2d')+_0x451f23[_0x316c('0xa4')],_0xd7bbb4),this['activeChange']==_0x451f23&&_0x228f63['addClass'](_0x316c('0xab'),_0xd7bbb4);}}}});}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')]('upcast')[_0x316c('0x32')]({'view':_0x316c('0x45'),'model':_0x252ca6=>_0x316c('0xb')+_0x252ca6,'converterPriority':_0x316c('0xa6')}),this['editor'][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))[_0x316c('0x32')]({'view':'suggestion','model':_0x497ad3=>_0x316c('0x7')+_0x497ad3,'converterPriority':_0x316c('0xa6')}),this['editor'][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x113'))[_0x316c('0x6d')]({'model':_0x316c('0x82'),'view':_0x48a849=>({'name':_0x316c('0x6')+_0x48a849,'group':'revision-suggestion'}),'converterPriority':'highest'}),this[_0x316c('0x4a')]['conversion'][_0x316c('0x78')](_0x316c('0x103'))[_0x316c('0xc9')]({'model':_0x316c('0x82'),'view':_0x9b942e=>{const _0x515b13=_0x9b942e[_0x316c('0x5b')][_0x316c('0x70')](':')[0x1];return _0x316c('0xe6')!=_0x515b13&&_0x316c('0x4b')!=_0x515b13?null:{'classes':[_0x316c('0xe1'),_0x316c('0x1c')+_0x515b13]};}}),this[_0x316c('0x4a')]['editing'][_0x316c('0x120')]['on']('addMarker:revision-suggestion:deletion',et(this['editor'],_0x316c('0x10e')),{'priority':_0x316c('0xe7')}),this[_0x316c('0x4a')][_0x316c('0xeb')]['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this['editor'],_0x316c('0x70')),{'priority':_0x316c('0xe7')}),this[_0x316c('0x4a')][_0x316c('0xeb')]['downcastDispatcher']['on'](_0x316c('0x88'),(_0x4a38a7,_0x7ff684,_0x175c15)=>{const _0x3b9d89=_0x175c15[_0x316c('0x67')][_0x316c('0x1')](_0x7ff684[_0x316c('0x5b')]);if(_0x3b9d89)for(const _0x52deb8 of _0x3b9d89)_0x52deb8['is'](_0x316c('0xef'))&&(_0x175c15[_0x316c('0x67')][_0x316c('0xe0')](_0x52deb8,_0x7ff684[_0x316c('0x5b')]),_0x175c15[_0x316c('0x20')][_0x316c('0xf6')](_0x52deb8));},{'priority':_0x316c('0xe7')});}[_0x316c('0xaf')](_0x39e0bc){return this['_changeIdToChange']['get'](_0x39e0bc);}['_getViewForChange'](_0x4feae4){return this[_0x316c('0xd6')]&&this[_0x316c('0xd6')]['destroy'](),this[_0x316c('0xd6')]=new _0x24da1b(this['editor'][_0x316c('0x9c')],_0x4feae4),this[_0x316c('0xd6')];}[_0x316c('0x8c')](){this['editor'][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0x12a')][_0x316c('0x36')](_0x316c('0x4')),this['on'](_0x316c('0x11d'),(_0x1688d9,_0x5c5446,_0xe52f90,_0x3053a0)=>{_0x3053a0&&this[_0x316c('0xdc')]['remove'](_0x3053a0),_0xe52f90&&(this['_balloon'][_0x316c('0xd7')]({'view':_0xe52f90,'stackId':_0x316c('0x9d'),'position':{'target':()=>{const _0xc845dd=this[_0x316c('0x4a')][_0x316c('0xeb')],_0x1d1c7f=this[_0x316c('0xaf')](_0xe52f90[_0x316c('0x111')]);let _0x10987b;if(_0x1d1c7f[_0x316c('0x124')][_0x316c('0x22')]){const _0x3b167e=_0xc845dd[_0x316c('0xe5')]['getDomRoot'](_0x1d1c7f[_0x316c('0x11e')]);_0x10987b=Array[_0x316c('0xae')](_0x3b167e[_0x316c('0xa3')]());}else{const _0x580184=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x101')]['get']('revision:'+_0xe52f90['changeId']);_0x10987b=Array[_0x316c('0xae')](_0xc845dd[_0x316c('0x67')]['markerNameToElements'](_0x580184['name']))[_0x316c('0xb6')](_0xb0078=>_0xc845dd[_0x316c('0xe5')][_0x316c('0x2c')]['mapViewToDom'](_0xb0078))['map'](_0x1b093b=>Array[_0x316c('0xae')](_0x1b093b[_0x316c('0xa3')]()))[_0x316c('0x6b')]();}if(!this[_0x316c('0x13')])return _0x10987b[0x0];return _0x10987b[_0x316c('0xbe')](_0x1a00e9=>_0x1a00e9[_0x316c('0x127')]-0x3<=this[_0x316c('0x13')]['y']&&_0x1a00e9['bottom']+0x3>=this[_0x316c('0x13')]['y']&&_0x1a00e9[_0x316c('0x3b')]-0x3<=this[_0x316c('0x13')]['x']&&_0x1a00e9[_0x316c('0xb7')]+0x3>=this[_0x316c('0x13')]['x'])||_0x10987b[0x0];}}}),this[_0x316c('0xdc')][_0x316c('0xc3')](_0x316c('0x9d')));}),this['on'](_0x316c('0xa8'),(_0x4a2a4d,_0x4b87ae,_0x1f560d,_0x18c316)=>{this[_0x316c('0xb1')]=_0x1f560d?this[_0x316c('0x102')](_0x1f560d):null,this[_0x316c('0x4a')]['model'][_0x316c('0x104')](()=>{const _0x4a594d=this[_0x316c('0x4a')][_0x316c('0xeb')];_0x18c316&&(_0x18c316['data']['isOnRoot']?_0x4a594d[_0x316c('0xe5')][_0x316c('0x104')](_0x79b996=>{_0x79b996[_0x316c('0x75')]('ck-revision-history-root--active',_0x4a594d[_0x316c('0xe5')][_0x316c('0xc0')][_0x316c('0x56')](_0x18c316[_0x316c('0x11e')]));}):_0x4a594d[_0x316c('0x3f')](_0x316c('0x3d')+_0x18c316['id'])),_0x1f560d&&(_0x1f560d['data']['isOnRoot']?_0x4a594d['view'][_0x316c('0x104')](_0x20e7e7=>{_0x20e7e7[_0x316c('0x35')]('ck-revision-history-root--active',_0x4a594d['view'][_0x316c('0xc0')][_0x316c('0x56')](_0x1f560d['rootName']));}):_0x4a594d['reconvertMarker']('revision:'+_0x1f560d['id']));});}),this[_0x316c('0xde')](this['editor'][_0x316c('0xeb')][_0x316c('0xe5')]['document'],_0x316c('0x126'),(_0x46e2e3,_0x10deed)=>{if(this[_0x316c('0x37')])return;const _0x3cec21=this[_0x316c('0x92')](_0x10deed[_0x316c('0x83')]),_0x5cb142=this[_0x316c('0xce')][_0x316c('0xb2')](_0x3cec21);_0x5cb142?(this[_0x316c('0x13')]={'x':_0x10deed[_0x316c('0x5a')]['x'],'y':_0x10deed[_0x316c('0x5a')]['y']},this['activeView']=this[_0x316c('0x102')](_0x5cb142)):(this['_activeViewTarget']=null,this[_0x316c('0xb1')]=null);}),this['listenTo'](this[_0x316c('0x4a')][_0x316c('0xeb')]['view'][_0x316c('0xc0')],_0x316c('0x128'),(_0x2331e8,_0x57fc07)=>{const _0x572596=this[_0x316c('0x92')](_0x57fc07['target']),_0x270522=this[_0x316c('0xce')][_0x316c('0xb2')](_0x572596);_0x270522?(this['_activeViewTarget']={'x':_0x57fc07[_0x316c('0x5a')]['x'],'y':_0x57fc07[_0x316c('0x5a')]['y']},_0x270522===this[_0x316c('0x37')]?this[_0x316c('0xdc')][_0x316c('0x4c')]():this['activeChange']=_0x270522):(this[_0x316c('0x13')]=null,this[_0x316c('0x37')]=null);});}[_0x316c('0x92')](_0x3322c8){do{const _0x48914f=_0x3322c8[_0x316c('0x2')](_0x316c('0x57'));if(_0x48914f)return _0x48914f;_0x3322c8=_0x3322c8[_0x316c('0xdf')];}while(_0x3322c8);return null;}['_cleanMarkers'](){this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x104')](_0x38c6a5=>{for(const _0x2fe6fd of this[_0x316c('0x4a')][_0x316c('0x10d')]['markers'])_0x38c6a5[_0x316c('0x66')](_0x2fe6fd);});}}function et(_0xe6049a,_0x1e3063){return(_0x3d3361,_0x118f59,_0x2a3a99)=>{if(!_0x2a3a99[_0x316c('0x9a')][_0x316c('0x117')](_0x118f59[_0x316c('0x63')],_0x3d3361[_0x316c('0x11')]))return;const _0x13f807=_0x118f59['markerRange'][_0x316c('0xcf')](),_0x32208a=_0x118f59[_0x316c('0x63')][_0x316c('0x33')],_0x16c109=_0xe6049a['model']['schema'];let _0x52c0f4=null,_0x477ca5=null,_0x4a59fa=!0x1,_0x18a946=!0x1;for(const _0x17c3f6 of _0x13f807){const _0x58a9de=_0x17c3f6[_0x316c('0x38')];_0x4a59fa=_0x4a59fa||_0x16c109['isContent'](_0x58a9de);const _0x2b7e80=_0x2a3a99['mapper'][_0x316c('0x121')](_0x58a9de);if(_0x2b7e80&&_0x2b7e80[_0x316c('0x1f')](_0x316c('0x12b')))return;_0x316c('0x10a')==_0x17c3f6[_0x316c('0xa4')]&&(_0x16c109[_0x316c('0xc')](_0x58a9de)&&!_0x16c109['isLimit'](_0x58a9de)&&(_0x58a9de[_0x316c('0x90')]||_0x32208a['isAtEnd']?_0x52c0f4&&_0x52c0f4[_0x316c('0xdf')]==_0x58a9de||(_0x52c0f4=_0x58a9de,_0xdba50c(_0x17c3f6[_0x316c('0x109')]),_0x18a946=!0x0):_0x477ca5=_0x477ca5||_0x17c3f6[_0x316c('0x109')]));}function _0xdba50c(_0x386eff){const _0x61fb32=_0x2a3a99['mapper'][_0x316c('0xd')](_0x386eff),_0x21ce76=_0x2a3a99[_0x316c('0x20')][_0x316c('0xcb')](_0x316c('0x74'),{'class':'ck-suggestion-preview-marker-'+_0x1e3063});_0x2a3a99[_0x316c('0x20')]['insert'](_0x61fb32,_0x21ce76),_0x2a3a99[_0x316c('0x67')][_0x316c('0xb5')](_0x21ce76,_0x118f59[_0x316c('0x5b')]);}_0x4a59fa||_0x18a946||!_0x477ca5||_0xdba50c(_0x477ca5);};}export class RestoreRevisionCommand extends _0x3ee5c9{constructor(_0x43ff71){super(_0x43ff71);const _0x3c00ba=_0x43ff71[_0x316c('0x9')][_0x316c('0xb2')](d);this[_0x316c('0x5')]=!0x1,this['listenTo'](_0x3c00ba,_0x316c('0x6f'),()=>this[_0x316c('0x96')]()),this[_0x316c('0xde')](_0x3c00ba,'change:isEnabled',()=>this[_0x316c('0x96')]());}[_0x316c('0x98')](){const _0x1fba0f=this['editor'],_0x285736=_0x1fba0f[_0x316c('0x9')][_0x316c('0xb2')](d),_0x162de7=_0x285736[_0x316c('0xd1')]?_0x285736[_0x316c('0x72')]['newRevisionId']:null;_0x1fba0f[_0x316c('0xdd')][_0x316c('0xb2')](_0x316c('0x118'))[_0x316c('0xa')](_0x162de7);}[_0x316c('0x96')](){const {isReady:_0x1155df,isEnabled:_0x2bdea8}=this[_0x316c('0x4a')][_0x316c('0x9')]['get'](d);this[_0x316c('0xb9')]=_0x1155df&&_0x2bdea8;}}export class ShowChangeCommand extends _0x3ee5c9{constructor(_0x4b3718,{direction:_0x469d13}){super(_0x4b3718);const _0x540a5c=_0x4b3718[_0x316c('0x9')][_0x316c('0xb2')](d);this['affectsData']=!0x1,this[_0x316c('0x54')]=_0x316c('0x107')===_0x469d13?0x1:-0x1,this[_0x316c('0xde')](_0x540a5c,'change:isReady',()=>this[_0x316c('0x96')]()),this[_0x316c('0xde')](_0x540a5c,_0x316c('0x10c'),()=>this[_0x316c('0x96')]()),this[_0x316c('0xde')](_0x540a5c,_0x316c('0xa8'),()=>this[_0x316c('0x96')]());}[_0x316c('0x98')](){const _0x14657f=this[_0x316c('0x4a')],_0x25271b=_0x14657f['plugins']['get'](d),{isNavigationMode:_0x5a0955,currentChangeNumber:_0x226ae8}=_0x25271b;let _0x2ceaf4;if(_0x25271b[_0x316c('0x37')]=_0x5a0955?_0x25271b[_0x316c('0x72')][_0x316c('0xb3')][_0x316c('0xb2')](_0x226ae8+this['_step']):_0x25271b[_0x316c('0x72')]['changes'][_0x316c('0xda')],_0x25271b[_0x316c('0x37')]['data']['isOnRoot'])_0x2ceaf4=_0x14657f[_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0xed')](_0x25271b[_0x316c('0x37')][_0x316c('0x11e')]);else{const _0x321640=_0x14657f[_0x316c('0x10d')][_0x316c('0x101')][_0x316c('0xb2')](_0x316c('0x3d')+_0x25271b[_0x316c('0x37')]['id']);_0x2ceaf4=_0x1ddec9(_0x14657f[_0x316c('0xeb')],_0x321640);}_0x1d92ac({'target':_0x2ceaf4,'viewportOffset':0x28});}[_0x316c('0x96')](){const {isNavigationMode:_0x11c20f,currentChangeNumber:_0x5619ce,numberOfChanges:_0x41c438,isReady:_0x1d2948,isEnabled:_0x3e444d}=this[_0x316c('0x4a')][_0x316c('0x9')][_0x316c('0xb2')](d);this['isEnabled']=!!(_0x3e444d&&_0x1d2948&&_0x41c438)&&(!_0x11c20f||(0x1===this[_0x316c('0x54')]?_0x5619ce<_0x41c438-0x1:_0x5619ce>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x392c=['class','first','execute','find','add','function','listenTo','children','action','items','threeVerticalDots','change:isActionsDropdownOpen','panelPosition','isVisible','name','stopPropagation','set','isOpen','Name\x20this\x20revision','listView','isActionsDropdownOpen','button','buttonView','ck-revision-history-sidebar__revision__actions','Restore\x20this\x20revision','locale','source','bind','bindTemplate','isReady','_action','isEnabled'];(function(_0x579b1b,_0x392c5d){const _0x501cbb=function(_0x1d105e){while(--_0x1d105e){_0x579b1b['push'](_0x579b1b['shift']());}};_0x501cbb(++_0x392c5d);}(_0x392c,0x1d4));const _0x501c=function(_0x579b1b,_0x392c5d){_0x579b1b=_0x579b1b-0x0;let _0x501cbb=_0x392c[_0x579b1b];return _0x501cbb;};import{Collection as _0x2e126b}from'ckeditor5/src/utils';import{icons as _0x1130d8}from'ckeditor5/src/core';import{Model as _0x59a1e1,addListToDropdown as _0x1bc17e,createDropdown as _0x383949}from'ckeditor5/src/ui';import{getTranslation as _0x4f11ac}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x48e23b,_0x4e02cb){const _0x98131c=_0x48e23b[_0x501c('0x8')],_0x451b6a=_0x48e23b[_0x501c('0x5')],_0x56d868=_0x383949(_0x451b6a);_0x56d868[_0x501c('0x18')]='sw';const _0x2f7abe=function(_0x294615,_0x3defd7){const _0x120894=function(_0x40a1af,_0x139f7f){const _0x229252=_0x40a1af['locale'],_0x46178e={'Compare\x20against\x20selected':_0x4f11ac(_0x229252,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x4f11ac(_0x229252,_0x501c('0x1e')),'Restore\x20this\x20revision':_0x4f11ac(_0x229252,_0x501c('0x4'))};return _0x139f7f['map'](_0x43cac8=>{const _0x4992c9=_0x46178e[_0x43cac8['name']];return _0x4992c9&&_0x4992c9!==_0x43cac8[_0x501c('0x1a')]&&(_0x43cac8[_0x501c('0x1a')]=_0x4992c9),_0x43cac8;});}(_0x294615,_0x3defd7),_0x14b9ea=new _0x2e126b();for(const _0x742309 of _0x120894){const _0x36a947={'type':_0x501c('0x1'),'model':new _0x59a1e1({'label':_0x742309[_0x501c('0x1a')],'class':_0x742309[_0x501c('0xc')],'withText':!0x0,'_action':_0x742309['action']})};_0x36a947['model']['bind'](_0x501c('0xb'))['to'](_0x294615,_0x501c('0x0'),_0x6ce7ed=>_0x501c('0x11')!=typeof _0x742309[_0x501c('0xb')]||(!_0x6ce7ed||_0x742309[_0x501c('0xb')](_0x294615))),_0x14b9ea[_0x501c('0x10')](_0x36a947);}return _0x14b9ea;}(_0x48e23b,_0x4e02cb);return _0x48e23b[_0x501c('0x7')](_0x501c('0x0'))['to'](_0x56d868,_0x501c('0x1d')),_0x56d868[_0x501c('0x2')][_0x501c('0x1c')]({'label':_0x4f11ac(_0x451b6a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1130d8[_0x501c('0x16')]}),_0x56d868['extendTemplate']({'attributes':{'class':[_0x501c('0x3'),_0x98131c['if'](_0x501c('0x0'),'ck-on')]},'on':{'click':_0x98131c['to'](_0x50dc92=>_0x50dc92[_0x501c('0x1b')]())}}),_0x56d868['on'](_0x501c('0xe'),_0x2ff21d=>{_0x48e23b[_0x501c('0x9')]&&'function'==typeof _0x2ff21d[_0x501c('0x6')][_0x501c('0xa')]&&_0x2ff21d[_0x501c('0x6')][_0x501c('0xa')](_0x48e23b);}),_0x1bc17e(_0x56d868,_0x2f7abe),_0x56d868[_0x501c('0x12')](_0x48e23b,_0x501c('0x17'),(_0x3613bc,_0x2a74ed,_0xe5fe0d)=>{if(_0xe5fe0d)for(const _0x133352 of _0x56d868[_0x501c('0x1f')][_0x501c('0x15')]){const _0xb9a91e=_0x133352[_0x501c('0x13')][_0x501c('0xd')],_0xc114e7=_0x4e02cb[_0x501c('0xf')](_0x120af1=>_0x120af1[_0x501c('0x14')]===_0xb9a91e[_0x501c('0xa')])[_0x501c('0x19')];_0x133352[_0x501c('0x19')]=void 0x0===_0xc114e7||_0xc114e7(_0x48e23b);}}),_0x56d868;}
23
+ const _0x5ccd=['threeVerticalDots','set','class','children','find','ck-revision-history-sidebar__revision__actions','button','add','Show\x20more\x20items','isEnabled','first','items','function','bind','isActionsDropdownOpen','ck-on','map','source','name','stopPropagation','extendTemplate','bindTemplate','execute','listenTo','action','isReady','_action','isVisible'];(function(_0x161065,_0x5ccdb6){const _0x50fe98=function(_0x47b363){while(--_0x47b363){_0x161065['push'](_0x161065['shift']());}};_0x50fe98(++_0x5ccdb6);}(_0x5ccd,0xc0));const _0x50fe=function(_0x161065,_0x5ccdb6){_0x161065=_0x161065-0x0;let _0x50fe98=_0x5ccd[_0x161065];return _0x50fe98;};import{Collection as _0x451d53}from'ckeditor5/src/utils';import{icons as _0x50e4ef}from'ckeditor5/src/core';import{Model as _0x4b7fb4,addListToDropdown as _0x528fae,createDropdown as _0x4898b1}from'ckeditor5/src/ui';import{getTranslation as _0x48d9db}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x54e404,_0x3a9429){const _0x12ad3e=_0x54e404[_0x50fe('0x19')],_0x4e3467=_0x54e404['locale'],_0x1ffaec=_0x4898b1(_0x4e3467);_0x1ffaec['panelPosition']='sw';const _0x3ff307=function(_0x2f7365,_0x50c3b){const _0x7d45bb=function(_0x381a2f,_0x380635){const _0x271af2=_0x381a2f['locale'],_0x214abe={'Compare\x20against\x20selected':_0x48d9db(_0x271af2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x48d9db(_0x271af2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x48d9db(_0x271af2,'Restore\x20this\x20revision')};return _0x380635[_0x50fe('0x14')](_0xfbe4ea=>{const _0x43d649=_0x214abe[_0xfbe4ea[_0x50fe('0x16')]];return _0x43d649&&_0x43d649!==_0xfbe4ea['name']&&(_0xfbe4ea[_0x50fe('0x16')]=_0x43d649),_0xfbe4ea;});}(_0x2f7365,_0x50c3b),_0x19541d=new _0x451d53();for(const _0x528e5a of _0x7d45bb){const _0x44aac9={'type':_0x50fe('0xa'),'model':new _0x4b7fb4({'label':_0x528e5a[_0x50fe('0x16')],'class':_0x528e5a[_0x50fe('0x6')],'withText':!0x0,'_action':_0x528e5a[_0x50fe('0x0')]})};_0x44aac9['model'][_0x50fe('0x11')](_0x50fe('0xd'))['to'](_0x2f7365,_0x50fe('0x12'),_0x5d409e=>_0x50fe('0x10')!=typeof _0x528e5a[_0x50fe('0xd')]||(!_0x5d409e||_0x528e5a[_0x50fe('0xd')](_0x2f7365))),_0x19541d[_0x50fe('0xb')](_0x44aac9);}return _0x19541d;}(_0x54e404,_0x3a9429);return _0x54e404[_0x50fe('0x11')]('isActionsDropdownOpen')['to'](_0x1ffaec,'isOpen'),_0x1ffaec['buttonView'][_0x50fe('0x5')]({'label':_0x48d9db(_0x4e3467,_0x50fe('0xc')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x50e4ef[_0x50fe('0x4')]}),_0x1ffaec[_0x50fe('0x18')]({'attributes':{'class':[_0x50fe('0x9'),_0x12ad3e['if'](_0x50fe('0x12'),_0x50fe('0x13'))]},'on':{'click':_0x12ad3e['to'](_0x3535f4=>_0x3535f4[_0x50fe('0x17')]())}}),_0x1ffaec['on'](_0x50fe('0x1a'),_0x3f0cfd=>{_0x54e404[_0x50fe('0x1')]&&_0x50fe('0x10')==typeof _0x3f0cfd['source'][_0x50fe('0x2')]&&_0x3f0cfd[_0x50fe('0x15')][_0x50fe('0x2')](_0x54e404);}),_0x528fae(_0x1ffaec,_0x3ff307),_0x1ffaec[_0x50fe('0x1b')](_0x54e404,'change:isActionsDropdownOpen',(_0x5ee0f1,_0xcfde0f,_0x10fe05)=>{if(_0x10fe05)for(const _0x3a7f8f of _0x1ffaec['listView'][_0x50fe('0xf')]){const _0x42495e=_0x3a7f8f[_0x50fe('0x7')][_0x50fe('0xe')],_0x228ad7=_0x3a9429[_0x50fe('0x8')](_0x568190=>_0x568190[_0x50fe('0x0')]===_0x42495e[_0x50fe('0x2')])[_0x50fe('0x3')];_0x3a7f8f[_0x50fe('0x3')]=void 0x0===_0x228ad7||_0x228ad7(_0x54e404);}}),_0x1ffaec;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a0a=['Revision\x20author','name','setTemplate','Revision\x20creator','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name','span'];(function(_0x5efb5c,_0x4a0a1b){const _0x210b24=function(_0x3e9823){while(--_0x3e9823){_0x5efb5c['push'](_0x5efb5c['shift']());}};_0x210b24(++_0x4a0a1b);}(_0x4a0a,0x1f3));const _0x210b=function(_0x5efb5c,_0x4a0a1b){_0x5efb5c=_0x5efb5c-0x0;let _0x210b24=_0x4a0a[_0x5efb5c];return _0x210b24;};import{View as _0x565772,IconView as _0x7ba919}from'ckeditor5/src/ui';import{getTranslation as _0x45dd9d}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x35ce93 from'../../../theme/icons/user.svg';export default class ti extends _0x565772{constructor(_0x1cbe96,_0x6ac0bf,_0xaa7377){super(_0x1cbe96);const _0x22c59e=new _0x7ba919();_0x22c59e['set']({'content':_0x35ce93,'viewBox':'0\x200\x2011\x2010'});const _0x21e033=['ck',_0x210b('0x2')];_0xaa7377&&_0x21e033['push']('ck-revision-history-sidebar__revision-author_creator');const _0xdfabaa=[{'tag':_0x210b('0x4'),'attributes':{'class':['ck',_0x210b('0x3')],'title':_0x45dd9d(_0x1cbe96,_0xaa7377?_0x210b('0x1'):_0x210b('0x5'))},'children':[_0x22c59e,_0x6ac0bf[_0x210b('0x6')]]}];this[_0x210b('0x0')]({'tag':'li','attributes':{'class':_0x21e033},'children':_0xdfabaa});}}
23
+ const _0xdffa=['Revision\x20creator','set','setTemplate','name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','push','ck-revision-history-sidebar__revision-author__name','Revision\x20author'];(function(_0x4ff67f,_0xdffada){const _0x252127=function(_0x30d511){while(--_0x30d511){_0x4ff67f['push'](_0x4ff67f['shift']());}};_0x252127(++_0xdffada);}(_0xdffa,0x1b4));const _0x2521=function(_0x4ff67f,_0xdffada){_0x4ff67f=_0x4ff67f-0x0;let _0x252127=_0xdffa[_0x4ff67f];return _0x252127;};import{View as _0x4764e0,IconView as _0x4fdc57}from'ckeditor5/src/ui';import{getTranslation as _0x33f414}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x2d42d0 from'../../../theme/icons/user.svg';export default class ti extends _0x4764e0{constructor(_0x2cfcc6,_0x5a6cc2,_0x54948a){super(_0x2cfcc6);const _0x511e79=new _0x4fdc57();_0x511e79[_0x2521('0x6')]({'content':_0x2d42d0,'viewBox':_0x2521('0x0')});const _0x207e5b=['ck','ck-revision-history-sidebar__revision-author'];_0x54948a&&_0x207e5b[_0x2521('0x2')](_0x2521('0x1'));const _0x252bcd=[{'tag':'span','attributes':{'class':['ck',_0x2521('0x3')],'title':_0x33f414(_0x2cfcc6,_0x54948a?_0x2521('0x5'):_0x2521('0x4'))},'children':[_0x511e79,_0x5a6cc2[_0x2521('0x8')]]}];this[_0x2521('0x7')]({'tag':'li','attributes':{'class':_0x207e5b},'children':_0x252bcd});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2a8e=['extendTemplate','ck-revision-history-sidebar__revision-name','set','Revision\x20name'];(function(_0xd320b2,_0x2a8e60){var _0x565158=function(_0x572357){while(--_0x572357){_0xd320b2['push'](_0xd320b2['shift']());}};_0x565158(++_0x2a8e60);}(_0x2a8e,0x9b));var _0x5651=function(_0xd320b2,_0x2a8e60){_0xd320b2=_0xd320b2-0x0;var _0x565158=_0x2a8e[_0xd320b2];return _0x565158;};import{LabeledFieldView as _0x51fe15}from'ckeditor5/src/ui';import{getTranslation as _0x1f538e}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x51fe15{constructor(_0x2efdb7,_0x354a0a){super(_0x2efdb7,_0x354a0a),this[_0x5651('0x3')]({'label':_0x1f538e(_0x2efdb7,_0x5651('0x0'))}),this[_0x5651('0x1')]({'tag':'span','attributes':{'class':[_0x5651('0x2')]}});}}
23
+ var _0x3cad=['span','set','Revision\x20name','extendTemplate'];(function(_0x577c72,_0x3cad3e){var _0x536c22=function(_0x2d1821){while(--_0x2d1821){_0x577c72['push'](_0x577c72['shift']());}};_0x536c22(++_0x3cad3e);}(_0x3cad,0x1d3));var _0x536c=function(_0x577c72,_0x3cad3e){_0x577c72=_0x577c72-0x0;var _0x536c22=_0x3cad[_0x577c72];return _0x536c22;};import{LabeledFieldView as _0x3cf833}from'ckeditor5/src/ui';import{getTranslation as _0x1d88f5}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x3cf833{constructor(_0x8a1968,_0x12565e){super(_0x8a1968,_0x12565e),this[_0x536c('0x2')]({'label':_0x1d88f5(_0x8a1968,_0x536c('0x3'))}),this[_0x536c('0x0')]({'tag':_0x536c('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ac5=['name','ck-disabled','span','isEnabled','ck-revision-history-sidebar__revision__date','bindTemplate','render','length','from','isHighlighted','isReady','value','set','setTemplate','isSelected','element','ck-revision-history-sidebar__revision','220','_createdAtFormatted','div','extendTemplate','ck-revision-history-sidebar__revision_selected','revisionNameView','highlight','ck-reset','revisionActionsView','.ck-thread__remove-confirm','fire','ck-revision-history-sidebar__revision__controls-wrapper','placeholder','select','closest','bind','srcElement','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','_revision','isActionsDropdownOpen','creator','fieldView','map','deselect','createdAt','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__actions_dropdown_open','unshift'];(function(_0x2db954,_0x4ac583){const _0x29c3ca=function(_0x12808c){while(--_0x12808c){_0x2db954['push'](_0x2db954['shift']());}};_0x29c3ca(++_0x4ac583);}(_0x4ac5,0x124));const _0x29c3=function(_0x2db954,_0x4ac583){_0x2db954=_0x2db954-0x0;let _0x29c3ca=_0x4ac5[_0x2db954];return _0x29c3ca;};import{View as _0x3210dc,createLabeledInputText as _0x2ca384}from'ckeditor5/src/ui';import{ConfirmMixin as _0xc6ea05}from'ckeditor5-collaboration/src/collaboration-core';import _0x3da5c9 from'./revisionnameview';import _0x193724 from'./revisionauthorview';import{dateToPrettyFormat as _0x34be19}from'./utils';import{createActionsDropdownView as _0x58068e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0xc6ea05(_0x3210dc){constructor(_0x3a5620,_0x5359c9,_0x31cd45){super(_0x3a5620);const _0x3d1019=this[_0x29c3('0x23')],_0x293277=function(_0x6a25e3,_0x36896a){const _0xd40618=Array[_0x29c3('0x26')](_0x36896a['authors'])['filter'](_0x3fedc1=>_0x3fedc1!=_0x36896a[_0x29c3('0x16')]);return _0x36896a[_0x29c3('0x16')]&&_0xd40618[_0x29c3('0x1d')](_0x36896a[_0x29c3('0x16')]),_0xd40618[_0x29c3('0x18')](_0x19de39=>new _0x193724(_0x6a25e3,_0x19de39,_0x19de39==_0x36896a[_0x29c3('0x16')]));}(_0x3a5620,_0x5359c9);this['id']=_0x5359c9['id'],this[_0x29c3('0x14')]=_0x5359c9,this['bind'](_0x29c3('0x1e'),_0x29c3('0x1a'))['to'](_0x5359c9),this['bind']('_createdAtFormatted')['to'](this,_0x29c3('0x1a'),_0x37835b=>_0x37835b?_0x34be19(_0x3a5620['uiLanguage'],_0x37835b):void 0x0),this['set'](_0x29c3('0x2c'),!0x1),this[_0x29c3('0x2a')]('isHighlighted',!0x1),this[_0x29c3('0x2a')]('isActionsDropdownOpen',!0x1),this[_0x29c3('0x2a')]('isReady',!0x1),this[_0x29c3('0x2a')](_0x29c3('0x21'),!0x1),this[_0x29c3('0x6')]=new _0x3da5c9(_0x3a5620,_0x2ca384),this[_0x29c3('0x6')][_0x29c3('0x17')][_0x29c3('0x4')]({'attributes':{'maxlength':_0x29c3('0x1')}}),this[_0x29c3('0x6')][_0x29c3('0x17')]['bind'](_0x29c3('0x29'),_0x29c3('0xd'))['to'](this,_0x29c3('0x1e'),_0x29c3('0x2')),this[_0x29c3('0x6')][_0x29c3('0x10')](_0x29c3('0x21'))['to'](this,_0x29c3('0x2c'),this,_0x29c3('0x21'),(_0xb3bead,_0x246b63)=>_0xb3bead&&_0x246b63),this[_0x29c3('0x9')]=_0x31cd45&&_0x31cd45[_0x29c3('0x25')]?_0x58068e(this,_0x31cd45):'',this[_0x29c3('0x9')]&&this[_0x29c3('0x9')][_0x29c3('0x10')](_0x29c3('0x21'))['to'](this),this[_0x29c3('0x2b')]({'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0x8'),'ck-revision-history-sidebar__revision-wrapper',_0x3d1019['if']('isConfirm',_0x29c3('0x13'))]},'children':[{'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0x8'),_0x29c3('0x0'),_0x3d1019['if'](_0x29c3('0x21'),_0x29c3('0x1f'),_0xe9f546=>!_0xe9f546),_0x3d1019['if'](_0x29c3('0x2c'),_0x29c3('0x5')),_0x3d1019['if'](_0x29c3('0x27'),_0x29c3('0x1b')),_0x3d1019['if'](_0x29c3('0x15'),_0x29c3('0x1c'))]},'children':[this['revisionNameView'],{'tag':_0x29c3('0x20'),'attributes':{'class':['ck',_0x29c3('0x22')]},'children':[{'text':_0x3d1019['to'](_0x29c3('0x2'))}]},{'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0xc')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x29c3('0x12')]},'children':_0x293277}]},this[_0x29c3('0x9')]],'on':{'click':_0x3d1019['to'](_0x424792=>{_0x424792[_0x29c3('0x11')][_0x29c3('0xf')](_0x29c3('0xa'))||this[_0x29c3('0x28')]&&this[_0x29c3('0x21')]&&this[_0x29c3('0xb')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x29c3('0x24')]();const _0x28c945=this[_0x29c3('0x6')][_0x29c3('0x17')][_0x29c3('0x2d')];this['listenTo'](_0x28c945,'change',()=>{this[_0x29c3('0xb')]('setName',{'id':this['id'],'name':_0x28c945[_0x29c3('0x29')]});});}[_0x29c3('0xe')](){this[_0x29c3('0x2c')]=!0x0;}[_0x29c3('0x19')](){this[_0x29c3('0x2c')]=!0x1;}[_0x29c3('0x7')](){this[_0x29c3('0x27')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
23
+ const _0x4b96=['isHighlighted','ck-revision-history-sidebar__revision_selected','srcElement','element','value','setName','220','length','name','creator','bind','change','unshift','_createdAtFormatted','fieldView','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__actions_dropdown_open','fire','_revision','isSelected','select','createdAt','map','isEnabled','render','isConfirm','listenTo','isActionsDropdownOpen','div','closest','placeholder','ck-reset','ck-revision-history-sidebar__revision_highlighted','authors','ck-revision-history-sidebar__revision__date','revisionNameView','setTemplate','set','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision-authors','ck-disabled','revisionActionsView','ck-revision-history-sidebar__revision-wrapper'];(function(_0x4e8e53,_0x4b9682){const _0x3b80d4=function(_0x13f42f){while(--_0x13f42f){_0x4e8e53['push'](_0x4e8e53['shift']());}};_0x3b80d4(++_0x4b9682);}(_0x4b96,0x1ae));const _0x3b80=function(_0x4e8e53,_0x4b9682){_0x4e8e53=_0x4e8e53-0x0;let _0x3b80d4=_0x4b96[_0x4e8e53];return _0x3b80d4;};import{View as _0x2d2170,createLabeledInputText as _0x19715c}from'ckeditor5/src/ui';import{ConfirmMixin as _0x59f7df}from'ckeditor5-collaboration/src/collaboration-core';import _0x1be261 from'./revisionnameview';import _0x5ac66c from'./revisionauthorview';import{dateToPrettyFormat as _0x5a710c}from'./utils';import{createActionsDropdownView as _0x5f04c5}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x59f7df(_0x2d2170){constructor(_0x35e2b5,_0x19dc0d,_0x4338f7){super(_0x35e2b5);const _0x25916e=this['bindTemplate'],_0x4b8958=function(_0x3ed0ac,_0x5766f9){const _0x510d20=Array['from'](_0x5766f9[_0x3b80('0x21')])['filter'](_0x219ec9=>_0x219ec9!=_0x5766f9['creator']);return _0x5766f9['creator']&&_0x510d20[_0x3b80('0xc')](_0x5766f9[_0x3b80('0x9')]),_0x510d20[_0x3b80('0x16')](_0x1ac01d=>new _0x5ac66c(_0x3ed0ac,_0x1ac01d,_0x1ac01d==_0x5766f9[_0x3b80('0x9')]));}(_0x35e2b5,_0x19dc0d);this['id']=_0x19dc0d['id'],this[_0x3b80('0x12')]=_0x19dc0d,this[_0x3b80('0xa')]('name',_0x3b80('0x15'))['to'](_0x19dc0d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2b1907=>_0x2b1907?_0x5a710c(_0x35e2b5['uiLanguage'],_0x2b1907):void 0x0),this[_0x3b80('0x25')](_0x3b80('0x13'),!0x1),this['set']('isHighlighted',!0x1),this[_0x3b80('0x25')]('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this[_0x3b80('0x25')](_0x3b80('0x17'),!0x1),this[_0x3b80('0x23')]=new _0x1be261(_0x35e2b5,_0x19715c),this[_0x3b80('0x23')][_0x3b80('0xe')]['extendTemplate']({'attributes':{'maxlength':_0x3b80('0x6')}}),this[_0x3b80('0x23')][_0x3b80('0xe')][_0x3b80('0xa')](_0x3b80('0x4'),_0x3b80('0x1e'))['to'](this,_0x3b80('0x8'),_0x3b80('0xd')),this[_0x3b80('0x23')][_0x3b80('0xa')](_0x3b80('0x17'))['to'](this,_0x3b80('0x13'),this,_0x3b80('0x17'),(_0x38ccaf,_0x4c1b7d)=>_0x38ccaf&&_0x4c1b7d),this[_0x3b80('0x29')]=_0x4338f7&&_0x4338f7[_0x3b80('0x7')]?_0x5f04c5(this,_0x4338f7):'',this['revisionActionsView']&&this[_0x3b80('0x29')][_0x3b80('0xa')](_0x3b80('0x17'))['to'](this),this[_0x3b80('0x24')]({'tag':_0x3b80('0x1c'),'attributes':{'class':['ck',_0x3b80('0x1f'),_0x3b80('0x2a'),_0x25916e['if'](_0x3b80('0x19'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x3b80('0x1c'),'attributes':{'class':['ck',_0x3b80('0x1f'),_0x3b80('0xf'),_0x25916e['if'](_0x3b80('0x17'),_0x3b80('0x28'),_0x5b4fe8=>!_0x5b4fe8),_0x25916e['if'](_0x3b80('0x13'),_0x3b80('0x1')),_0x25916e['if'](_0x3b80('0x0'),_0x3b80('0x20')),_0x25916e['if'](_0x3b80('0x1b'),_0x3b80('0x10'))]},'children':[this[_0x3b80('0x23')],{'tag':'span','attributes':{'class':['ck',_0x3b80('0x22')]},'children':[{'text':_0x25916e['to'](_0x3b80('0xd'))}]},{'tag':'div','attributes':{'class':['ck',_0x3b80('0x26')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3b80('0x27')]},'children':_0x4b8958}]},this[_0x3b80('0x29')]],'on':{'click':_0x25916e['to'](_0x7edecc=>{_0x7edecc[_0x3b80('0x2')][_0x3b80('0x1d')]('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire'](_0x3b80('0x14'),{'id':this['id']});})}}]});}[_0x3b80('0x18')](){super[_0x3b80('0x18')]();const _0x15d44e=this[_0x3b80('0x23')][_0x3b80('0xe')][_0x3b80('0x3')];this[_0x3b80('0x1a')](_0x15d44e,_0x3b80('0xb'),()=>{this[_0x3b80('0x11')](_0x3b80('0x5'),{'id':this['id'],'name':_0x15d44e[_0x3b80('0x4')]});});}[_0x3b80('0x14')](){this[_0x3b80('0x13')]=!0x0;}['deselect'](){this[_0x3b80('0x13')]=!0x1;}['highlight'](){this[_0x3b80('0x0')]=!0x0;}['unhighlight'](){this[_0x3b80('0x0')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1847=['_isCollapsed','bindTemplate','set','toggle','true','button','span','ck-hidden','isVisible','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser__inner','setTemplate'];(function(_0x1a917b,_0x1847c0){const _0x50ad26=function(_0x220805){while(--_0x220805){_0x1a917b['push'](_0x1a917b['shift']());}};_0x50ad26(++_0x1847c0);}(_0x1847,0xd3));const _0x50ad=function(_0x1a917b,_0x1847c0){_0x1a917b=_0x1a917b-0x0;let _0x50ad26=_0x1847[_0x1a917b];return _0x50ad26;};import{View as _0x2da169}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2da169{constructor(_0x38ad81){super(_0x38ad81);const _0x22180d=this[_0x50ad('0x6')];this[_0x50ad('0x7')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x50ad('0x4')]({'tag':'span','attributes':{'class':['ck',_0x50ad('0x2'),_0x22180d['if'](_0x50ad('0x1'),_0x50ad('0x0'),_0x32d73b=>!_0x32d73b),_0x22180d['if'](_0x50ad('0x5'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x50ad('0xa'),'aria-pressed':_0x22180d['to'](_0x50ad('0x5'),_0x491040=>_0x491040?'false':_0x50ad('0x9'))},'children':[{'tag':_0x50ad('0xb'),'attributes':{'class':['ck',_0x50ad('0x3')]}}],'on':{'click':_0x22180d['to']('click')}});}[_0x50ad('0x8')](){this[_0x50ad('0x5')]=!this[_0x50ad('0x5')];}}
23
+ const _0x282b=['bindTemplate','button','set','setTemplate','click','ck-hidden','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner','false','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','true','isVisible'];(function(_0x58471f,_0x282bcb){const _0x5c64a2=function(_0x5394d7){while(--_0x5394d7){_0x58471f['push'](_0x58471f['shift']());}};_0x5c64a2(++_0x282bcb);}(_0x282b,0x1d7));const _0x5c64=function(_0x58471f,_0x282bcb){_0x58471f=_0x58471f-0x0;let _0x5c64a2=_0x282b[_0x58471f];return _0x5c64a2;};import{View as _0x9c5c4}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x9c5c4{constructor(_0x3db81e){super(_0x3db81e);const _0x37be3a=this[_0x5c64('0xa')];this[_0x5c64('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5c64('0x0')]({'tag':'span','attributes':{'class':['ck',_0x5c64('0x6'),_0x37be3a['if'](_0x5c64('0x9'),_0x5c64('0x2'),_0x6afc90=>!_0x6afc90),_0x37be3a['if']('_isCollapsed',_0x5c64('0x3'))],'role':_0x5c64('0xb'),'aria-pressed':_0x37be3a['to'](_0x5c64('0x7'),_0x336473=>_0x336473?_0x5c64('0x5'):_0x5c64('0x8'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x5c64('0x4')]}}],'on':{'click':_0x37be3a['to'](_0x5c64('0x1'))}});}['toggle'](){this[_0x5c64('0x7')]=!this[_0x5c64('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c6f=['createdAt','div','isSelected','select','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','bind','deselect','_createdAtFormatted','creator','ck-reset','ck-revision-history-sidebar__revision-authors','span','_parentRevisionId','bindTemplate','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision','uiLanguage'];(function(_0xd188d8,_0x5c6f5f){const _0x19ae79=function(_0x150297){while(--_0x150297){_0xd188d8['push'](_0xd188d8['shift']());}};_0x19ae79(++_0x5c6f5f);}(_0x5c6f,0x9b));const _0x19ae=function(_0xd188d8,_0x5c6f5f){_0xd188d8=_0xd188d8-0x0;let _0x19ae79=_0x5c6f[_0xd188d8];return _0x19ae79;};import{View as _0x3c72d9}from'ckeditor5/src/ui';import _0xbc5505 from'./revisionauthorview';import{dateToPrettyFormat as _0x73d907}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3c72d9{constructor(_0x50995f,_0x3142a8,_0x49bfff){super(_0x50995f);const _0x5617b0=this[_0x19ae('0x3')];this['id']=_0x3142a8['id'],this['bind'](_0x19ae('0x7'))['to'](_0x3142a8),this['set'](_0x19ae('0x9'),!0x1),this[_0x19ae('0xd')](_0x19ae('0xf'))['to'](this,_0x19ae('0x7'),_0x5c8366=>_0x5c8366?_0x73d907(_0x50995f[_0x19ae('0x6')],_0x5c8366):void 0x0),this['_parentRevisionId']=_0x49bfff,this['setTemplate']({'tag':_0x19ae('0x8'),'attributes':{'class':['ck',_0x19ae('0x11'),_0x19ae('0x5'),_0x19ae('0x4'),_0x5617b0['if'](_0x19ae('0x9'),_0x19ae('0xb'))]},'children':[{'tag':_0x19ae('0x1'),'attributes':{'class':['ck',_0x19ae('0xc')]},'children':[{'text':_0x5617b0['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x19ae('0x0')]},'children':[new _0xbc5505(_0x50995f,_0x3142a8[_0x19ae('0x10')],!0x0)]}],'on':{'click':_0x5617b0['to'](this[_0x19ae('0xa')][_0x19ae('0xd')](this))}});}[_0x19ae('0xa')](){this[_0x19ae('0x9')]=!0x0,this['fire']('select',{'parentId':this[_0x19ae('0x2')]});}[_0x19ae('0xe')](){this['isSelected']=!0x1;}}
23
+ const _0x1d72=['creator','deselect','div','ck-revision-history-sidebar__subrevision','bind','createdAt','span','_parentRevisionId','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','_createdAtFormatted','fire','uiLanguage','isSelected'];(function(_0x49d346,_0x1d726a){const _0x1fc86a=function(_0x29094b){while(--_0x29094b){_0x49d346['push'](_0x49d346['shift']());}};_0x1fc86a(++_0x1d726a);}(_0x1d72,0x19a));const _0x1fc8=function(_0x49d346,_0x1d726a){_0x49d346=_0x49d346-0x0;let _0x1fc86a=_0x1d72[_0x49d346];return _0x1fc86a;};import{View as _0x2e47a3}from'ckeditor5/src/ui';import _0x5d0529 from'./revisionauthorview';import{dateToPrettyFormat as _0x49307f}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2e47a3{constructor(_0x31e3f9,_0x5e57e3,_0x4f863e){super(_0x31e3f9);const _0x3cc009=this['bindTemplate'];this['id']=_0x5e57e3['id'],this[_0x1fc8('0xe')](_0x1fc8('0x0'))['to'](_0x5e57e3),this['set'](_0x1fc8('0x9'),!0x1),this[_0x1fc8('0xe')](_0x1fc8('0x6'))['to'](this,'createdAt',_0x346a95=>_0x346a95?_0x49307f(_0x31e3f9[_0x1fc8('0x8')],_0x346a95):void 0x0),this[_0x1fc8('0x2')]=_0x4f863e,this['setTemplate']({'tag':_0x1fc8('0xc'),'attributes':{'class':['ck','ck-reset',_0x1fc8('0x4'),_0x1fc8('0xd'),_0x3cc009['if']('isSelected',_0x1fc8('0x3'))]},'children':[{'tag':_0x1fc8('0x1'),'attributes':{'class':['ck',_0x1fc8('0x5')]},'children':[{'text':_0x3cc009['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x5d0529(_0x31e3f9,_0x5e57e3[_0x1fc8('0xa')],!0x0)]}],'on':{'click':_0x3cc009['to'](this['select'][_0x1fc8('0xe')](this))}});}['select'](){this[_0x1fc8('0x9')]=!0x0,this[_0x1fc8('0x7')]('select',{'parentId':this[_0x1fc8('0x2')]});}[_0x1fc8('0xb')](){this[_0x1fc8('0x9')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x53d9=['numeric','toLocaleTimeString','long'];(function(_0x582648,_0x53d931){var _0x2b25a6=function(_0x32c0fa){while(--_0x32c0fa){_0x582648['push'](_0x582648['shift']());}};_0x2b25a6(++_0x53d931);}(_0x53d9,0x1d6));var _0x2b25=function(_0x582648,_0x53d931){_0x582648=_0x582648-0x0;var _0x2b25a6=_0x53d9[_0x582648];return _0x2b25a6;};export function dateToPrettyFormat(_0x268e8d,_0x552b34){return _0x552b34['toLocaleDateString'](_0x268e8d,{'month':_0x2b25('0x0'),'day':_0x2b25('0x1')})+',\x20'+_0x552b34[_0x2b25('0x2')](_0x268e8d,{'hour':'numeric','minute':_0x2b25('0x1')});}
23
+ var _0x1de0=['toLocaleDateString','numeric'];(function(_0x9d051a,_0x1de079){var _0x351472=function(_0x11973a){while(--_0x11973a){_0x9d051a['push'](_0x9d051a['shift']());}};_0x351472(++_0x1de079);}(_0x1de0,0x8d));var _0x3514=function(_0x9d051a,_0x1de079){_0x9d051a=_0x9d051a-0x0;var _0x351472=_0x1de0[_0x9d051a];return _0x351472;};export function dateToPrettyFormat(_0x4c8c8e,_0xc9886f){return _0xc9886f[_0x3514('0x1')](_0x4c8c8e,{'month':'long','day':'numeric'})+',\x20'+_0xc9886f['toLocaleTimeString'](_0x4c8c8e,{'hour':_0x3514('0x0'),'minute':_0x3514('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54b9=['setTemplate','Name\x20of\x20the\x20revision\x20(optional)','arrowright','trim','_createRevisionNameInput','add','focusFirst','fieldView','revisionNameInputView','revisionName','tab','saveButtonView','execute','_focusables','shift\x20+\x20tab','value','ck-button-cancel','label','reset','arrowup','keystrokes','form','set','cancelButtonView','input','submit','Cancel','focus','element','_createButton','listenTo','arrowleft','extendTemplate','locale','arrowdown','_focusCycler','delegate','ck-responsive-form','ck-revision-history-save-revision-form','render','cancel','forEach','focusTracker'];(function(_0x16f81f,_0x54b9ab){const _0x5e66b0=function(_0x4bd49d){while(--_0x4bd49d){_0x16f81f['push'](_0x16f81f['shift']());}};_0x5e66b0(++_0x54b9ab);}(_0x54b9,0xc4));const _0x5e66=function(_0x16f81f,_0x54b9ab){_0x16f81f=_0x16f81f-0x0;let _0x5e66b0=_0x54b9[_0x16f81f];return _0x5e66b0;};import{icons as _0x156f0e}from'ckeditor5/src/core';import{ButtonView as _0x47f805,FocusCycler as _0x3d3a7d,LabeledFieldView as _0x36fd4e,View as _0x40738f,ViewCollection as _0xe77f32,createLabeledInputText as _0x3e852e,injectCssTransitionDisabler as _0x123942,submitHandler as _0xfa23a2}from'ckeditor5/src/ui';import{FocusTracker as _0x53e0c0,KeystrokeHandler as _0x73a621}from'ckeditor5/src/utils';import{getTranslation as _0x98215e}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x40738f{constructor(_0x1a254e){super(_0x1a254e),this[_0x5e66('0x12')]=new _0x53e0c0(),this[_0x5e66('0x27')]=new _0x73a621(),this[_0x5e66('0x29')]('revisionNameInputValue',''),this[_0x5e66('0x1b')]=this[_0x5e66('0x17')](),this[_0x5e66('0x1e')]=this['_createButton'](_0x98215e(_0x1a254e,'Save'),_0x156f0e['check'],'ck-button-save'),this['saveButtonView']['type']=_0x5e66('0x1'),this[_0x5e66('0x2a')]=this['_createButton'](_0x98215e(_0x1a254e,_0x5e66('0x2')),_0x156f0e[_0x5e66('0x10')],_0x5e66('0x23'),_0x5e66('0x10')),this[_0x5e66('0x20')]=new _0xe77f32(),this[_0x5e66('0xb')]=new _0x3d3a7d({'focusables':this[_0x5e66('0x20')],'focusTracker':this[_0x5e66('0x12')],'keystrokeHandler':this[_0x5e66('0x27')],'actions':{'focusPrevious':_0x5e66('0x21'),'focusNext':_0x5e66('0x1d')}}),this[_0x5e66('0x13')]({'tag':_0x5e66('0x28'),'attributes':{'class':['ck',_0x5e66('0xe'),_0x5e66('0xd')],'tabindex':'-1'},'children':[this[_0x5e66('0x1b')],this[_0x5e66('0x1e')],this['cancelButtonView']]}),_0x123942(this);}['render'](){super[_0x5e66('0xf')](),_0xfa23a2({'view':this}),([this[_0x5e66('0x1b')],this[_0x5e66('0x1e')],this[_0x5e66('0x2a')]][_0x5e66('0x11')](_0x44ee2e=>{this[_0x5e66('0x20')][_0x5e66('0x18')](_0x44ee2e),this[_0x5e66('0x12')]['add'](_0x44ee2e[_0x5e66('0x4')]);}),this[_0x5e66('0x27')][_0x5e66('0x6')](this[_0x5e66('0x4')]));const _0x125620=_0x340155=>_0x340155['stopPropagation']();this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x15'),_0x125620),this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x7'),_0x125620),this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x26'),_0x125620),this[_0x5e66('0x27')]['set'](_0x5e66('0xa'),_0x125620);}[_0x5e66('0x3')](){this['_focusCycler'][_0x5e66('0x19')]();}get[_0x5e66('0x1c')](){return this[_0x5e66('0x1b')]['fieldView'][_0x5e66('0x4')][_0x5e66('0x22')]['trim']();}set['revisionName'](_0x1cb0a9){this['revisionNameInputView'][_0x5e66('0x1a')][_0x5e66('0x4')][_0x5e66('0x22')]=_0x1cb0a9[_0x5e66('0x16')]();}[_0x5e66('0x25')](){this['revisionNameInputView']['fieldView'][_0x5e66('0x4')][_0x5e66('0x22')]='';}[_0x5e66('0x17')](){const _0x14c068=new _0x36fd4e(this[_0x5e66('0x9')],_0x3e852e),_0x55699a=_0x14c068[_0x5e66('0x1a')];return _0x55699a['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x14c068[_0x5e66('0x24')]=_0x98215e(this[_0x5e66('0x9')],_0x5e66('0x14')),_0x55699a['on'](_0x5e66('0x0'),()=>{this['revisionNameInputValue']=_0x55699a[_0x5e66('0x4')]['value'][_0x5e66('0x16')]();}),_0x14c068;}[_0x5e66('0x5')](_0x42d471,_0x42a3eb,_0x3ece03,_0x316b12){const _0x32dd33=new _0x47f805(this['locale']);return _0x32dd33['set']({'label':_0x42d471,'icon':_0x42a3eb,'tooltip':!0x0}),_0x32dd33[_0x5e66('0x8')]({'attributes':{'class':_0x3ece03}}),_0x316b12&&_0x32dd33[_0x5e66('0xc')](_0x5e66('0x1f'))['to'](this,_0x316b12),_0x32dd33;}}
23
+ const _0x3a79=['check','focusTracker','forEach','revisionName','cancelButtonView','arrowup','submit','_createButton','_focusables','extendTemplate','stopPropagation','focusFirst','Name\x20of\x20the\x20revision\x20(optional)','ck-responsive-form','setTemplate','cancel','revisionNameInputView','_focusCycler','value','set','keystrokes','arrowdown','locale','focus','type','form','arrowright','ck-button-save','Save','render','fieldView','saveButtonView','_createRevisionNameInput','element','ck-button-cancel','220','ck-revision-history-save-revision-form','add','trim','revisionNameInputValue','tab','label'];(function(_0x520f6a,_0x3a79aa){const _0x493fdf=function(_0x4ef1bb){while(--_0x4ef1bb){_0x520f6a['push'](_0x520f6a['shift']());}};_0x493fdf(++_0x3a79aa);}(_0x3a79,0x1bd));const _0x493f=function(_0x520f6a,_0x3a79aa){_0x520f6a=_0x520f6a-0x0;let _0x493fdf=_0x3a79[_0x520f6a];return _0x493fdf;};import{icons as _0x22a66c}from'ckeditor5/src/core';import{ButtonView as _0x4447fd,FocusCycler as _0x38e16d,LabeledFieldView as _0x59111b,View as _0x14c0cd,ViewCollection as _0x289dac,createLabeledInputText as _0x1f2603,injectCssTransitionDisabler as _0x237f0b,submitHandler as _0x6a2413}from'ckeditor5/src/ui';import{FocusTracker as _0x4fda7a,KeystrokeHandler as _0x34f6ba}from'ckeditor5/src/utils';import{getTranslation as _0x519cfe}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x14c0cd{constructor(_0x2ed740){super(_0x2ed740),this[_0x493f('0x12')]=new _0x4fda7a(),this[_0x493f('0x25')]=new _0x34f6ba(),this[_0x493f('0x24')](_0x493f('0xe'),''),this[_0x493f('0x21')]=this[_0x493f('0x7')](),this[_0x493f('0x6')]=this[_0x493f('0x18')](_0x519cfe(_0x2ed740,_0x493f('0x3')),_0x22a66c[_0x493f('0x11')],_0x493f('0x2')),this[_0x493f('0x6')][_0x493f('0x29')]=_0x493f('0x17'),this[_0x493f('0x15')]=this['_createButton'](_0x519cfe(_0x2ed740,'Cancel'),_0x22a66c['cancel'],_0x493f('0x9'),_0x493f('0x20')),this[_0x493f('0x19')]=new _0x289dac(),this[_0x493f('0x22')]=new _0x38e16d({'focusables':this[_0x493f('0x19')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x493f('0x25')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x493f('0xf')}}),this[_0x493f('0x1f')]({'tag':_0x493f('0x0'),'attributes':{'class':['ck',_0x493f('0xb'),_0x493f('0x1e')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x493f('0x6')],this[_0x493f('0x15')]]}),_0x237f0b(this);}[_0x493f('0x4')](){super[_0x493f('0x4')](),_0x6a2413({'view':this}),([this['revisionNameInputView'],this[_0x493f('0x6')],this[_0x493f('0x15')]][_0x493f('0x13')](_0x2e40e4=>{this['_focusables']['add'](_0x2e40e4),this[_0x493f('0x12')][_0x493f('0xc')](_0x2e40e4[_0x493f('0x8')]);}),this[_0x493f('0x25')]['listenTo'](this[_0x493f('0x8')]));const _0x1aea29=_0x3a46f0=>_0x3a46f0[_0x493f('0x1b')]();this[_0x493f('0x25')][_0x493f('0x24')](_0x493f('0x1'),_0x1aea29),this[_0x493f('0x25')][_0x493f('0x24')]('arrowleft',_0x1aea29),this[_0x493f('0x25')][_0x493f('0x24')](_0x493f('0x16'),_0x1aea29),this[_0x493f('0x25')][_0x493f('0x24')](_0x493f('0x26'),_0x1aea29);}[_0x493f('0x28')](){this[_0x493f('0x22')][_0x493f('0x1c')]();}get[_0x493f('0x14')](){return this[_0x493f('0x21')]['fieldView']['element'][_0x493f('0x23')][_0x493f('0xd')]();}set[_0x493f('0x14')](_0x337d90){this[_0x493f('0x21')][_0x493f('0x5')][_0x493f('0x8')][_0x493f('0x23')]=_0x337d90['trim']();}['reset'](){this[_0x493f('0x21')][_0x493f('0x5')][_0x493f('0x8')][_0x493f('0x23')]='';}[_0x493f('0x7')](){const _0x5ce176=new _0x59111b(this[_0x493f('0x27')],_0x1f2603),_0x3a3e94=_0x5ce176[_0x493f('0x5')];return _0x3a3e94[_0x493f('0x1a')]({'attributes':{'maxlength':_0x493f('0xa')}}),_0x5ce176[_0x493f('0x10')]=_0x519cfe(this[_0x493f('0x27')],_0x493f('0x1d')),_0x3a3e94['on']('input',()=>{this[_0x493f('0xe')]=_0x3a3e94[_0x493f('0x8')][_0x493f('0x23')][_0x493f('0xd')]();}),_0x5ce176;}[_0x493f('0x18')](_0x9ba289,_0x33bf8d,_0x237df9,_0x269454){const _0x1447d9=new _0x4447fd(this[_0x493f('0x27')]);return _0x1447d9[_0x493f('0x24')]({'label':_0x9ba289,'icon':_0x33bf8d,'tooltip':!0x0}),_0x1447d9[_0x493f('0x1a')]({'attributes':{'class':_0x237df9}}),_0x269454&&_0x1447d9['delegate']('execute')['to'](this,_0x269454),_0x1447d9;}}