@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240205.0 → 0.0.0-nightly-20240206.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 +5 -5
  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 _0xeaa2=['isRemoveSuggestion','isSuggestion','suggestion:','unshift','compare','_removeUnsupportedChanges','_findChangeIdFromDomTarget','shift','getItems','enqueueChange','enableReadOnlyMode','isAtStart','vid_end','WidgetToolbarRepository','toViewPosition','deletions','endIndex','ck-suggestion-marker-merge','backward','consume','get','data-change-id','insert','getClientRects','revision-suggestion','POSITIVE_INFINITY','checkAttribute','isAttached','_sortAndFilterDiffChanges','createRangeIn','numberOfChanges','ck-suggestion-marker','downcastDispatcher','startIndex','nextPosition','_removeMissingPairs','consumable','getRevisionData','name','range','schema','change:activeView','hasClass','viewItem','config','done','text','roots','revision','revision-comment:','previousPosition','pluginName','_fixObsoleteTags','_cleanUp','catch','change','init','set','mouseover','addMarker:revision-suggestion:insertion','pairId','bindElementToMarker','editing','editor','ck-editor__editable__overlay','change:numberOfChanges','slice','model','isIncorrect','abs','getCustomProperty','indexOf','span','createPositionBefore','unbindElementFromMarkerName','pop','side','_removeRevisionMarkers','ck-suggestion-marker-split','ck-suggestion-preview-marker','diff','changeId','addMarker:revision','addRevision','_processTape','refresh','nextSibling','adapter','userId','length','resolve','attachChange','removeClass','detachRoot','markerName','getAttributes','writer','isRemoved','distance','newRevisionId','_getViewForChange','vid_start','ck-revision-history-root-add','next','high','element','children','collaboration.channelId','test','add','delete','for','mapViewToDom','bind','change:activeChange','processor','item','_threeWayMerge','revisionHistoryLabel','attributes','bottom','_getViewObj','isBlock','_cleanMarkers','highest','offsetSize','listenTo','attribute:vid','revisionHistoryAttachChange','addMarker:revision-suggestion:deletion','top','includes','isAddSuggestion','getRootNames','softBreak','wrap','target','createUIElement','removeMarker','getRevision','from','isCollapsed','revision-suggestion:','ck-suggestion-preview-marker-','map','keys','parent','view','loadRevisionData','mousedown','forEach','isEqual','getDomRoot','_makeModelFromViewString','stop','remove','domEvent','_changeIdToChange','data','level','modelRange','_changeView','rootName','RevisionsRepository','plugins','_getRevisionsRange','affectsData','upcast','getRoot','observeMarkers','createAttributeElement','_initInteractions','_joinTapes','showStack','oldRevisionId','default','has','isAdded','startsWith','ck-suggestion-marker-','markerNameToElements','ck-revision-history-root-remove','forceDisabled','push','right','toModel','editingDowncast','_markMismatchedRemovedTags','split','return','commands','isReady','_markMarkers','flat','insertion','revision-end','getWalker','dataDowncast','ck-revision-history-root-','markers','isAtEnd','-new','mapper','index','change:isEnabled','domConverter','isAfter','end','document','restoreRevision','createRange','execute','_balloon','ck-revision-history-root--active','showPreviousChange','createPositionFromPath','_markSuggestions','locale','selection','_setConversion','concat','toViewRange','then','isNavigationMode','_refreshStartEndIndex','getAttribute','marked','error','_getChangeFromId','destroy','string','repository','low','type','element:pre','change:isReady','sort','_appendChild','_data','markersEnd','addRevisionData','_makeModelFromTape','isEnabled','conversion','deletion','revision:','changes','splice','insertions','all','getChild','markerToHighlight','nodeAfter','elementStart','addHighlight','removeMarker:revision-suggestion','activeChange','revision-viewer','_markInsertions','attributesBefore','diffData','ck-suggestion-marker--active','hasAttribute','setAttribute','markerToData','getIndex','toViewElement','clear','merge','isBefore','suggestion','start','_makeTape','_activeViewTarget','updatePosition','isOnRoot','showNextChange','attributesAfter','isContent','dataToMarker','maxOffset','forward','_getDiff','elementEnd','markerRange','markersStart','activeView','getRevisionRootsAttributes','RevisionViewer','_step','restoreRevisionCallback','parse','_setDistance','filter','isLimit','uiElement','addClass','vid','useFillerType','object','reconvertMarker'];(function(_0x45ffa,_0xeaa293){const _0x59f69d=function(_0x3a1bd1){while(--_0x3a1bd1){_0x45ffa['push'](_0x45ffa['shift']());}};_0x59f69d(++_0xeaa293);}(_0xeaa2,0x65));const _0x59f6=function(_0x45ffa,_0xeaa293){_0x45ffa=_0x45ffa-0x0;let _0x59f69d=_0xeaa2[_0x45ffa];return _0x59f69d;};import{Plugin as _0x46a91c,Command as _0x5e8b59}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x3b15ae}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0xefe336}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x29151e,Element as _0x2d9a61,Text as _0x509178,ViewDocumentFragment as _0x3925ef,ViewText as _0x59bd71,ViewElement as _0xfb73e3,ViewContainerElement as _0x47a98c,ViewAttributeElement as _0x191dfd,ViewEmptyElement as _0x76d4bd,ViewRawElement as _0x5034c0,ViewUIElement as _0x1d85e0}from'ckeditor5/src/engine.js';import{Users as _0x16029d,getMarkerDomElement as _0x44109a}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4e1609 from'./ui/revisionviewer/changedetailsview.js';import _0x315e5d from'./revisionsrepository.js';import _0x344f57 from'./changeitem.js';import{default as _0x1c5865}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x36b8e1}from'lodash-es';const tt={'c':_0x47a98c,'a':_0x191dfd,'e':_0x76d4bd,'r':_0x5034c0,'u':_0x1d85e0};export default class d extends _0x46a91c{static get[_0x59f6('0xfb')](){return _0x59f6('0xbb');}static get['requires'](){return[_0x16029d,_0xefe336,_0x315e5d];}constructor(_0x454887){super(_0x454887),this['repository']=this[_0x59f6('0x107')][_0x59f6('0x3f')][_0x59f6('0xdc')](_0x59f6('0x3e')),this[_0x59f6('0x101')]('activeChange',null),this[_0x59f6('0x101')](_0x59f6('0xb9'),null),this['_activeViewTarget']=null,this['set']('diff',null),this['set'](_0x59f6('0x5a'),!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x31f8cf,_0x4e7544,_0x1ddb8f)=>{this[_0x59f6('0x9b')]=null,this[_0x59f6('0xb9')]=null,this[_0x59f6('0x107')]['editing']['view']['change'](_0xa0c773=>{for(const _0x565332 of this['editor']['editing'][_0x59f6('0x2e')][_0x59f6('0x6b')][_0x59f6('0xf7')])_0x1ddb8f?_0xa0c773[_0x59f6('0x124')]('ck-editor__editable__overlay',_0x565332):_0xa0c773[_0x59f6('0xc3')](_0x59f6('0x108'),_0x565332);});}),this[_0x59f6('0xc')](_0x59f6('0x7a'))['to'](this,_0x59f6('0x9b'),_0x4036d2=>null!==_0x4036d2),this[_0x59f6('0xc')]('currentChangeNumber')['to'](this,_0x59f6('0x5a'),this,_0x59f6('0x118'),this,'activeChange',(_0x14198c,_0x379e2a,_0x21aac4)=>_0x14198c&&_0x21aac4?_0x379e2a['changes'][_0x59f6('0xa4')](_0x21aac4):0x0),this[_0x59f6('0xc')](_0x59f6('0xe6'))['to'](this,_0x59f6('0x5a'),this,_0x59f6('0x118'),(_0x1852b8,_0x480766)=>_0x1852b8?_0x480766[_0x59f6('0x91')][_0x59f6('0x121')]:0x0),this[_0x59f6('0x3c')]=null,this[_0x59f6('0x38')]=new Map(),this['adapter']=null,this[_0x59f6('0x6f')]=this[_0x59f6('0x107')][_0x59f6('0x3f')][_0x59f6('0xdc')](_0xefe336);}[_0x59f6('0x100')](){const _0xde5b22=this[_0x59f6('0x107')],_0x52e233=new ShowChangeCommand(_0xde5b22,{'direction':_0x59f6('0xda')}),_0x548c71=new ShowChangeCommand(_0xde5b22,{'direction':_0x59f6('0xb4')});(_0xde5b22['commands']['add'](_0x59f6('0x71'),_0x52e233),_0xde5b22[_0x59f6('0x59')][_0x59f6('0x8')](_0x59f6('0xaf'),_0x548c71),_0xde5b22[_0x59f6('0x59')][_0x59f6('0x8')](_0x59f6('0x6c'),new RestoreRevisionCommand(_0xde5b22)),this['on'](_0x59f6('0x109'),()=>{_0x52e233['refresh'](),_0x548c71['refresh']();}),this['_setConversion'](),this[_0x59f6('0x46')](),_0xde5b22[_0x59f6('0xd2')]('revision-viewer'),_0xde5b22[_0x59f6('0x3f')][_0x59f6('0x4b')](_0x59f6('0xd5')))&&_0xde5b22['plugins'][_0x59f6('0xdc')]('WidgetToolbarRepository')[_0x59f6('0x51')](_0x59f6('0x9c'));}async[_0x59f6('0xed')](_0x35739a){await this['loadRevisionData'](_0x35739a);const _0x1d12d8={};for(const _0x410651 in _0x35739a[_0x59f6('0x9f')]){if(_0x35739a['diffData'][_0x410651][_0x59f6('0x123')]&&!_0x35739a['diffData'][_0x410651]['attachChange'][_0x59f6('0xe3')])continue;const _0x5ece47=this[_0x59f6('0x115')](JSON[_0x59f6('0xbe')](_0x35739a['diffData'][_0x410651][_0x59f6('0x93')])),_0xe4cc9b=this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0x6b')],_0x95606c=new _0x3925ef(_0xe4cc9b,_0x5ece47['map'](_0x989ae6=>this[_0x59f6('0x14')](_0x989ae6)));this[_0x59f6('0x107')][_0x59f6('0x39')]['processor'][_0x59f6('0xc5')](_0x59f6('0x7d')),_0x1d12d8[_0x410651]=this[_0x59f6('0x107')][_0x59f6('0x39')][_0x59f6('0xe')]['toData'](_0x95606c),this[_0x59f6('0x107')]['data'][_0x59f6('0xe')][_0x59f6('0xc5')](_0x59f6('0x4a'));}return _0x1d12d8;}async[_0x59f6('0xba')](_0x429c25){await this[_0x59f6('0x2f')](_0x429c25);const _0x5106eb={};for(const _0x5619fd in _0x429c25[_0x59f6('0x9f')])_0x429c25[_0x59f6('0x9f')][_0x5619fd][_0x59f6('0x123')]&&!_0x429c25['diffData'][_0x5619fd]['attachChange'][_0x59f6('0xe3')]||(_0x5106eb[_0x5619fd]=_0x429c25[_0x59f6('0x9f')][_0x5619fd][_0x59f6('0xb0')]||{});return _0x5106eb;}[_0x59f6('0x115')](_0x1a709a){return(_0x1a709a=_0x1a709a[_0x59f6('0xc0')](_0x59eec9=>!_0x59eec9[_0x59f6('0xee')]||'revision-start'!==_0x59eec9['name']&&_0x59f6('0x5e')!==_0x59eec9[_0x59f6('0xee')]))[_0x59f6('0x31')](_0x48166a=>{_0x59f6('0x81')!=typeof _0x48166a&&(_0x48166a[_0x59f6('0x5')]=this['_removeRevisionMarkers'](_0x48166a['children']),_0x48166a[_0x59f6('0x12')]=_0x48166a[_0x59f6('0x12')][_0x59f6('0xc0')](_0x8c1a22=>!_0x8c1a22[0x0][_0x59f6('0x4d')]('data-revision-')));}),_0x1a709a;}async[_0x59f6('0xcc')](_0x43041c,_0x2edcd5,_0x59b41d=!0x1){if(!this[_0x59f6('0x8d')])return;const _0x39fbe9=this['diff'],_0x12b5b7=this['repository'],_0x4380e8='string'==typeof _0x43041c?_0x12b5b7[_0x59f6('0x26')](_0x43041c):_0x43041c,_0x45865d=_0x59f6('0x81')==typeof _0x2edcd5?_0x12b5b7[_0x59f6('0x26')](_0x2edcd5):_0x2edcd5,_0x462b9c=_0x4380e8['id'],_0x563405=_0x45865d?_0x45865d['id']:null;if(!_0x59b41d&&this[_0x59f6('0x118')]&&this[_0x59f6('0x118')][_0x59f6('0x12b')]===_0x462b9c&&this['diff'][_0x59f6('0x49')]===_0x563405)return Promise[_0x59f6('0x122')]();this[_0x59f6('0x5a')]=!0x1,this[_0x59f6('0xb9')]=null,this[_0x59f6('0x9b')]=null,this[_0x59f6('0x118')]=new _0x1c5865(_0x462b9c,_0x563405);const _0x23d941=this[_0x59f6('0x40')](_0x4380e8,_0x45865d,!0x0)[_0x59f6('0x2b')](_0xf5c2eb=>this['loadRevisionData'](_0xf5c2eb));return _0x23d941[_0x59f6('0x52')](new Promise(_0xbd6edd=>{setTimeout(_0xbd6edd,0x14);})),Promise[_0x59f6('0x94')](_0x23d941)[_0x59f6('0x79')](()=>{if(!this[_0x59f6('0x8d')])return;this['_cleanUp']();const _0x551eb8=this[_0x59f6('0xb5')](_0x462b9c,_0x563405);for(const _0x1d10d3 of _0x551eb8[_0x59f6('0x91')])this['_changeIdToChange'][_0x59f6('0x101')](_0x1d10d3['id'],_0x1d10d3);this[_0x59f6('0x107')][_0x59f6('0x10b')]['enqueueChange']({'isUndoable':!0x1},_0x1ba168=>{for(const _0x5d6071 of this['editor'][_0x59f6('0x10b')][_0x59f6('0x6b')][_0x59f6('0x20')]())_0x1ba168['detachRoot'](_0x5d6071);for(const _0x19fc34 of Object[_0x59f6('0x2c')](_0x551eb8[_0x59f6('0x10b')])){const _0xaf1fff=_0x1ba168['addRoot'](_0x19fc34);for(const _0x672df8 of Object['keys'](_0x551eb8[_0x59f6('0x12')][_0x19fc34]))_0x1ba168[_0x59f6('0xa2')](_0x672df8,_0x551eb8[_0x59f6('0x12')][_0x19fc34][_0x672df8],_0xaf1fff);_0x1ba168[_0x59f6('0xde')](_0x551eb8[_0x59f6('0x10b')][_0x19fc34],_0xaf1fff,0x0);}}),this[_0x59f6('0x118')]['_setChanges'](this['_sortAndFilterDiffChanges'](_0x551eb8['changes'])),this['isReady']=!0x0;})[_0x59f6('0xfe')](_0x14eb51=>{console[_0x59f6('0x7e')](_0x14eb51),this[_0x59f6('0xfd')](),_0x39fbe9&&(this['diff']=_0x39fbe9),this['isReady']=!0x0;});}[_0x59f6('0x8b')](_0x295d9d,_0x3d4a61){const _0x5de26b=this[_0x59f6('0x82')]['createRevision'](_0x295d9d);return _0x5de26b['on']('_update',(_0x4be05c,_0x17f6a7,_0x5865c4)=>_0x3d4a61(_0x17f6a7,_0x5865c4,_0x5de26b)),this[_0x59f6('0x82')][_0x59f6('0x11b')](_0x5de26b),_0x5de26b;}[_0x59f6('0x2f')](_0x21392c){if(!_0x21392c||_0x21392c[_0x59f6('0x9f')])return Promise[_0x59f6('0x122')]();{const _0x5aee67=this['editor'][_0x59f6('0xf4')][_0x59f6('0xdc')](_0x59f6('0x6'));return this[_0x59f6('0x11f')][_0x59f6('0x26')]({'channelId':_0x5aee67,'revisionId':_0x21392c['id']})[_0x59f6('0x79')](_0xef58e3=>{_0x21392c['_update']({'diffData':_0xef58e3[_0x59f6('0x9f')]},!0x0);});}}['_cleanUp'](){this[_0x59f6('0x9b')]=null,this['_cleanMarkers'](),this[_0x59f6('0x3c')]&&this[_0x59f6('0x3c')][_0x59f6('0x80')](),this[_0x59f6('0x3c')]=null,this['_changeIdToChange'][_0x59f6('0xa6')](),this[_0x59f6('0x107')]['model'][_0x59f6('0xd1')]({'isUndoable':!0x1},_0xc77a88=>{for(const _0x42bafb of this[_0x59f6('0x107')]['model']['document'][_0x59f6('0x20')]())_0xc77a88[_0x59f6('0x125')](_0x42bafb);});}[_0x59f6('0xe4')](_0x3768de){const _0x5dd00f=[],_0x4db00b=new Map();for(const _0x29c182 of this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0x6b')][_0x59f6('0x20')]()){const _0x4c2fb1=this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0x2e')]['getDomRoot'](_0x29c182);if(!_0x4c2fb1)continue;const _0xa90716=_0x4c2fb1[_0x59f6('0xdf')]()[_0x59f6('0xf')](0x0);_0xa90716&&(_0x5dd00f[_0x59f6('0x52')](_0x29c182),_0x4db00b[_0x59f6('0x101')](_0x29c182,_0xa90716));}return _0x5dd00f[_0x59f6('0x87')]((_0x8e4375,_0x5b13b6)=>{const _0x4e068d=_0x4db00b['get'](_0x8e4375),_0x19b9e4=_0x4db00b[_0x59f6('0xdc')](_0x5b13b6);return _0x4e068d['y']-_0x19b9e4['y']||_0x4e068d['x']-_0x19b9e4['x'];}),(_0x3768de=_0x3768de[_0x59f6('0xc0')](_0x413182=>_0x5dd00f['includes'](_0x413182[_0x59f6('0x3d')])))[_0x59f6('0x87')]((_0x37c891,_0x3fad45)=>_0x5dd00f[_0x59f6('0x10f')](_0x37c891[_0x59f6('0x3d')])-_0x5dd00f['indexOf'](_0x3fad45['rootName'])),_0x3768de;}[_0x59f6('0xab')](_0x112e36){const _0x24b487=Array['from'](_0x112e36[_0x59f6('0x62')])['filter'](([_0xdadb54,_0x2cd502])=>_0xdadb54[_0x59f6('0x4d')](_0x59f6('0x90'))&&!_0x2cd502[_0x59f6('0x28')]),_0x37ebca=Array[_0x59f6('0x27')](this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0xe5')](_0x112e36)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x24b487['length'])for(const _0x5f4c8c of _0x37ebca){const [_0x18f9b7,_0x873b13]=_0x24b487[0x0],[,_0xdcd00c,_0x4c2c3c]=_0x18f9b7[_0x59f6('0x57')](':');if(_0x873b13['end'][_0x59f6('0x32')](_0x5f4c8c['nextPosition'])&&_0x24b487[_0x59f6('0xcf')](),(_0x5f4c8c[_0x59f6('0xfa')]['isEqual'](_0x873b13['start'])||_0x5f4c8c[_0x59f6('0xfa')][_0x59f6('0x69')](_0x873b13[_0x59f6('0xaa')]))&&(_0x59f6('0x5d')==_0xdcd00c?_0x5f4c8c[_0x59f6('0x4c')]={'userId':_0x4c2c3c}:_0x59f6('0x8f')==_0xdcd00c&&(_0x5f4c8c[_0x59f6('0x129')]={'userId':_0x4c2c3c})),0x0==_0x24b487[_0x59f6('0x121')])break;}return _0x37ebca;}[_0x59f6('0x7b')](_0xcad22c){const _0x2e5c4d=new Map();for(let _0x27c19b=0x0;_0x27c19b<_0xcad22c[_0x59f6('0x121')];_0x27c19b++)_0x59f6('0xf6')===_0xcad22c[_0x27c19b][_0x59f6('0x84')]?(_0xcad22c[_0x27c19b][_0x59f6('0xf')]['startIndex']=_0x27c19b,_0xcad22c[_0x27c19b][_0x59f6('0xf')]['endIndex']=_0x27c19b):(_0x59f6('0x98')===_0xcad22c[_0x27c19b][_0x59f6('0x84')]?_0xcad22c[_0x27c19b]['item'][_0x59f6('0xe9')]=_0x27c19b:_0x59f6('0xb6')===_0xcad22c[_0x27c19b]['type']&&(_0xcad22c[_0x27c19b][_0x59f6('0xf')][_0x59f6('0xd8')]=_0x27c19b),_0x2e5c4d['set'](_0xcad22c[_0x27c19b]['id'],_0x27c19b));for(const _0x47dcc6 of _0x2e5c4d['values']())_0x59f6('0x98')===_0xcad22c[_0x47dcc6][_0x59f6('0x84')]?_0xcad22c[_0x47dcc6][_0x59f6('0xf')]['endIndex']=_0x2e5c4d[_0x59f6('0xdc')](_0xcad22c[_0x47dcc6][_0x59f6('0x104')]):_0x59f6('0xb6')===_0xcad22c[_0x47dcc6][_0x59f6('0x84')]&&(_0xcad22c[_0x47dcc6][_0x59f6('0xf')][_0x59f6('0xe9')]=_0x2e5c4d[_0x59f6('0xdc')](_0xcad22c[_0x47dcc6][_0x59f6('0x104')]));}[_0x59f6('0x11c')](_0x216dca){for(let _0x145bce=0x0;_0x145bce<_0x216dca['length'];_0x145bce++){if(_0x59f6('0x98')===_0x216dca[_0x145bce][_0x59f6('0x84')])_0x216dca[_0x145bce][_0x59f6('0xf')][_0x59f6('0xe9')]=_0x145bce;else{if('elementEnd'===_0x216dca[_0x145bce]['type']){_0x216dca[_0x145bce][_0x59f6('0xf')][_0x59f6('0xd8')]=_0x145bce;const _0x161617=_0x216dca[_0x145bce][_0x59f6('0xf')][_0x59f6('0xe9')];_0x216dca[_0x161617][_0x59f6('0x104')]=_0x216dca[_0x145bce]['id'],_0x216dca[_0x145bce][_0x59f6('0x104')]=_0x216dca[_0x161617]['id'];}else _0x216dca[_0x145bce][_0x59f6('0xf')][_0x59f6('0xe9')]=_0x145bce,_0x216dca[_0x145bce][_0x59f6('0xf')]['endIndex']=_0x145bce,_0x216dca[_0x145bce][_0x59f6('0x104')]=null;}_0x216dca[_0x145bce][_0x59f6('0xb8')]||(_0x216dca[_0x145bce][_0x59f6('0xb8')]=[],_0x216dca[_0x145bce]['markersEnd']=[]);}}[_0x59f6('0x9d')](_0x2e762a,_0x522096){const _0x42510d=_0x2e762a['filter'](_0x22d4b6=>!_0x22d4b6[_0x59f6('0x4c')]);for(let _0x5c6383=0x0;_0x5c6383<_0x522096['length'];_0x5c6383++)_0x522096[_0x5c6383]['isAdded']&&(_0x42510d[_0x5c6383][_0x59f6('0x4c')]=_0x522096[_0x5c6383][_0x59f6('0x4c')]);}['_makeModelFromViewString'](_0x5c208c){const _0x44d449=JSON[_0x59f6('0xbe')](_0x5c208c),_0x461e9f=this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0x6b')],_0x20b99d=new _0x3925ef(_0x461e9f,_0x44d449[_0x59f6('0x2b')](_0x449866=>this[_0x59f6('0x14')](_0x449866)));return this[_0x59f6('0x107')][_0x59f6('0x39')][_0x59f6('0x54')](_0x20b99d);}[_0x59f6('0x14')](_0x2ace81){const _0x124e67=this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0x6b')];if(_0x59f6('0x81')==typeof _0x2ace81)return new _0x59bd71(_0x124e67,_0x2ace81);{const _0x517169=_0x2ace81[_0x59f6('0x5')][_0x59f6('0x2b')](_0x36bd72=>this[_0x59f6('0x14')](_0x36bd72));return new(tt[_0x2ace81[(_0x59f6('0x84'))]]||_0xfb73e3)(_0x124e67,_0x2ace81[_0x59f6('0xee')],_0x2ace81['attributes'],_0x517169);}}[_0x59f6('0xb5')](_0x19b592,_0x3d95d1=null){const _0x2dd3cf=this[_0x59f6('0x82')][_0x59f6('0x26')](_0x19b592),_0x173e0b=_0x3d95d1?this[_0x59f6('0x82')][_0x59f6('0x26')](_0x3d95d1):null,_0x1aa8de=this[_0x59f6('0x40')](_0x2dd3cf,_0x173e0b),_0x288ed2=_0x1aa8de[_0x1aa8de[_0x59f6('0x121')]-0x1],_0x2ca78e=new Map(),_0x3f7c18={'model':{},'attributes':{},'changes':[]},_0xab63ef=new Set(),_0x32a1bc=new Map();for(let _0x314746=_0x1aa8de[_0x59f6('0x121')]-0x1;_0x314746>=0x0;_0x314746--){const _0xa2f5af=_0x1aa8de[_0x314746];for(const _0x394afd of Object[_0x59f6('0x2c')](_0xa2f5af[_0x59f6('0x9f')]))if(_0xa2f5af['diffData'][_0x394afd]['attachChange']){const _0x39fd74=_0xa2f5af[_0x59f6('0x9f')][_0x394afd][_0x59f6('0x123')];_0x39fd74[_0x59f6('0xe3')]?(_0xab63ef[_0x59f6('0x8')](_0x394afd),_0x32a1bc[_0x59f6('0x4b')](_0x394afd)&&_0x32a1bc[_0x59f6('0xdc')](_0x394afd)[_0x59f6('0x120')]==_0x39fd74[_0x59f6('0x120')]?_0x32a1bc[_0x59f6('0x9')](_0x394afd):_0x32a1bc[_0x59f6('0x101')](_0x394afd,_0x39fd74)):_0x32a1bc[_0x59f6('0x4b')](_0x394afd)?(_0xab63ef['delete'](_0x394afd),_0x32a1bc['delete'](_0x394afd)):(_0xab63ef[_0x59f6('0x8')](_0x394afd),_0x32a1bc[_0x59f6('0x101')](_0x394afd,_0x39fd74));}else _0xab63ef['add'](_0x394afd);}for(const _0x2a6b81 of _0xab63ef){const _0x2fe304=_0x32a1bc[_0x59f6('0x4b')](_0x2a6b81)&&!_0x32a1bc[_0x59f6('0xdc')](_0x2a6b81)[_0x59f6('0xe3')];let _0x287fcd=_0x2fe304?_0x1aa8de[_0x59f6('0x121')]-0x1:0x0;const _0x3838b5=_0x2fe304?-0x1:0x1;for(;_0x1aa8de[_0x287fcd];){const _0x1a5b4a=_0x1aa8de[_0x287fcd];if(_0x1a5b4a[_0x59f6('0x9f')][_0x2a6b81]){const _0x1b6ebd=_0x2fe304?_0x1a5b4a['diffData'][_0x2a6b81][_0x59f6('0x9e')]:_0x1a5b4a['diffData'][_0x2a6b81][_0x59f6('0xb0')];_0x3f7c18['attributes'][_0x2a6b81]=_0x1b6ebd?_0x36b8e1(_0x1b6ebd):{};break;}_0x287fcd+=_0x3838b5;}}for(const _0x43ff7e of _0x1aa8de){_0x43ff7e[_0x59f6('0x10b')]={};for(const _0x4c43f0 of _0x43ff7e['authors'])_0x2ca78e[_0x59f6('0x101')](_0x4c43f0['id'],_0x4c43f0);for(const _0x3b1703 of _0xab63ef){const _0x389a7b=_0x43ff7e[_0x59f6('0x9f')][_0x3b1703]?_0x43ff7e[_0x59f6('0x9f')][_0x3b1703][_0x59f6('0x93')]:'[]',_0x547026=_0x43ff7e[_0x59f6('0x9f')][_0x3b1703]?_0x43ff7e[_0x59f6('0x9f')][_0x3b1703][_0x59f6('0xd7')]:'[]';_0x43ff7e['model'][_0x3b1703]={'insertions':this[_0x59f6('0x34')](_0x389a7b),'deletions':this['_makeModelFromViewString'](_0x547026)};}}for(const _0x51cd5f of _0xab63ef){let _0xe1589a=null,_0x32d4cd=0x0;const _0x384d7c=new Map(Array[_0x59f6('0x27')](_0x2dd3cf[_0x59f6('0x10b')][_0x51cd5f][_0x59f6('0x93')][_0x59f6('0x62')])[_0x59f6('0xc0')](([_0x56d879])=>!_0x56d879[_0x59f6('0x4d')]('revision:')));let _0x318d98=0x0;for(const _0x34c0f1 of _0x1aa8de){const _0x2d73da=this[_0x59f6('0xab')](_0x34c0f1[_0x59f6('0x10b')][_0x51cd5f]['insertions']);_0x34c0f1==_0x2dd3cf?(_0xe1589a=_0x2d73da,_0x32d4cd=_0xe1589a[_0x59f6('0x121')],_0xe1589a[_0x59f6('0x31')](_0x53062d=>{_0x53062d['id']=_0x318d98++;}),this[_0x59f6('0x11c')](_0xe1589a)):this[_0x59f6('0x9d')](_0xe1589a,_0x2d73da);const _0x5f535c=_0xe1589a[_0x59f6('0xc0')](_0x4c6f31=>!_0x4c6f31['isAdded'])['map'](_0x408a80=>_0x408a80['id']);let _0x166936=0x0;const _0x4a13c6=this[_0x59f6('0xab')](_0x34c0f1[_0x59f6('0x10b')][_0x51cd5f][_0x59f6('0xd7')]);_0x4a13c6['forEach'](_0x3b6f44=>{_0x3b6f44[_0x59f6('0x129')]?_0x3b6f44['id']=_0x32d4cd++:_0x3b6f44['id']=_0x5f535c[_0x166936++];}),this[_0x59f6('0x11c')](_0x4a13c6),this[_0x59f6('0xbf')](_0xe1589a,'isAdded'),this['_setDistance'](_0x4a13c6,'isRemoved'),_0x34c0f1==_0x2dd3cf&&this['_markMarkers'](_0xe1589a,_0x384d7c),_0xe1589a=this[_0x59f6('0x47')](_0xe1589a,_0x4a13c6),this[_0x59f6('0x7b')](_0xe1589a),this[_0x59f6('0xbf')](_0xe1589a,_0x59f6('0x129'));}_0xe1589a=_0xe1589a[_0x59f6('0xc0')](_0x5da1f9=>!(_0x5da1f9['isAdded']&&_0x5da1f9[_0x59f6('0x129')]));const _0x88c259=new Map(_0x288ed2['model'][_0x51cd5f][_0x59f6('0xd7')]['markers']),_0x4e49c1=new Set(_0x384d7c[_0x59f6('0x2c')]());for(const _0x228ac1 of _0x88c259[_0x59f6('0x2c')]())_0x4e49c1[_0x59f6('0x9')](_0x228ac1);this[_0x59f6('0x73')](_0xe1589a,_0x4e49c1),this['_fixObsoleteTags'](_0xe1589a),_0xe1589a=this['_removeMissingPairs'](_0xe1589a),_0xe1589a=this[_0x59f6('0x56')](_0xe1589a),_0xe1589a=this[_0x59f6('0xcd')](_0xe1589a);const {root:_0x20aa8c,changes:_0x3abe19}=this[_0x59f6('0x8c')](_0xe1589a,_0x2ca78e,_0x51cd5f);_0x3f7c18['model'][_0x51cd5f]=_0x20aa8c;const _0x1ffa26=_0x32a1bc['get'](_0x51cd5f);if(_0x1ffa26){const _0x3a97d6=_0x2ca78e['get'](_0x1ffa26[_0x59f6('0x120')]),_0x3d2bfd=new _0x344f57({'author':_0x3a97d6,'type':_0x1ffa26[_0x59f6('0xe3')]?_0x59f6('0x8'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x51cd5f});_0x3abe19[_0x59f6('0xcb')](_0x3d2bfd),_0x3f7c18[_0x59f6('0x12')][_0x51cd5f][_0x59f6('0x1b')]=_0x3d2bfd['id'];}_0x3f7c18[_0x59f6('0x91')]=_0x3f7c18[_0x59f6('0x91')][_0x59f6('0x77')](_0x3abe19);}return _0x3f7c18;}[_0x59f6('0x5b')](_0x487ef3,_0x78d57d){for(let _0x3c042a=0x0;_0x3c042a<_0x487ef3[_0x59f6('0x121')];_0x3c042a++)for(const [_0x101498,_0xecbab3]of _0x78d57d)_0xecbab3[_0x59f6('0xaa')][_0x59f6('0x32')](_0x487ef3[_0x3c042a][_0x59f6('0xfa')])&&_0x487ef3[_0x3c042a][_0x59f6('0xb8')][_0x59f6('0x52')](_0x101498),_0xecbab3[_0x59f6('0x6a')][_0x59f6('0x32')](_0x487ef3[_0x3c042a][_0x59f6('0xea')])&&_0x487ef3[_0x3c042a][_0x59f6('0x8a')]['push'](_0x101498);}[_0x59f6('0x47')](_0x3c05a5,_0x513dc7){let _0x5266cf=[],_0x38f196=0x0,_0x4eb1a4=0x0;for(;_0x38f196<_0x3c05a5['length']||_0x4eb1a4<_0x513dc7[_0x59f6('0x121')];){const _0x19d2aa=_0x3c05a5[_0x38f196]||{},_0x387fc9=_0x513dc7[_0x4eb1a4]||{};if(_0x19d2aa['id']==_0x387fc9['id'])_0x38f196++,_0x4eb1a4++,_0x5266cf['push'](_0x19d2aa);else{if(_0x387fc9[_0x59f6('0x129')]&&_0x19d2aa[_0x59f6('0x4c')]){const {commonTape:_0x53dad1,iEnd:_0xef596d,jEnd:_0x77aeca}=this[_0x59f6('0x10')](_0x3c05a5,_0x38f196,_0x513dc7,_0x4eb1a4);_0x5266cf=_0x5266cf[_0x59f6('0x77')](_0x53dad1),_0x38f196=_0xef596d,_0x4eb1a4=_0x77aeca;}else _0x387fc9[_0x59f6('0x129')]?(_0x4eb1a4++,_0x5266cf['push'](_0x387fc9)):(_0x38f196++,_0x5266cf['push'](_0x19d2aa));}}return _0x5266cf;}[_0x59f6('0x73')](_0x112c69,_0x47ea92){const _0x5a0c2a=[];for(let _0x3f1910=0x0;_0x3f1910<_0x112c69[_0x59f6('0x121')];_0x3f1910++){for(let _0x32c9fd=0x0;_0x32c9fd<_0x112c69[_0x3f1910][_0x59f6('0xb8')][_0x59f6('0x121')];_0x32c9fd++){const _0x5c4909=_0x112c69[_0x3f1910]['markersStart'][_0x32c9fd];if(!_0x47ea92[_0x59f6('0x4b')](_0x5c4909))continue;const {group:_0x39950e,type:_0x2f015d,authorId:_0x553290}=_0x46af00(_0x5c4909);_0x59f6('0xe0')!=_0x39950e||_0x59f6('0x5d')!=_0x2f015d&&'deletion'!=_0x2f015d||(_0x5a0c2a[_0x59f6('0xcb')]({'type':_0x2f015d,'name':_0x5c4909,'userId':_0x553290}),_0x112c69[_0x3f1910][_0x59f6('0xb8')][_0x59f6('0x92')](_0x32c9fd,0x1),_0x32c9fd--);}_0x226820(_0x112c69[_0x3f1910]);for(let _0x268229=0x0;_0x268229<_0x112c69[_0x3f1910]['markersEnd'][_0x59f6('0x121')];_0x268229++){const _0x4e447f=_0x112c69[_0x3f1910]['markersEnd'][_0x268229];if(!_0x47ea92['has'](_0x4e447f))continue;const {group:_0x3113ee,type:_0xa6d553}=_0x46af00(_0x4e447f);if(_0x59f6('0xe0')!=_0x3113ee||_0x59f6('0x5d')!=_0xa6d553&&_0x59f6('0x8f')!=_0xa6d553)continue;_0x112c69[_0x3f1910][_0x59f6('0x8a')]['splice'](_0x268229,0x1),_0x268229--;const _0x1021d6=_0x5a0c2a['findIndex'](_0x309cba=>_0x309cba[_0x59f6('0xee')]==_0x4e447f);_0x1021d6>-0x1&&_0x5a0c2a['splice'](_0x1021d6,0x1);}}function _0x46af00(_0x315b3c){const _0x1f2499=_0x315b3c[_0x59f6('0x57')](':');return{'group':_0x1f2499[0x0],'type':_0x1f2499[0x1],'subType':_0x1f2499[_0x59f6('0x121')]>=0x5?_0x1f2499[0x2]:null,'id':_0x1f2499[_0x59f6('0x121')]<0x5?_0x1f2499[0x2]:_0x1f2499[0x3],'authorId':_0x1f2499[_0x59f6('0x121')]<0x5?_0x1f2499[0x3]:_0x1f2499[0x4],'markerCount':0x6==_0x1f2499['length']?_0x1f2499[0x5]:null};}function _0x226820(_0x5795d1){for(let _0x3fad9f=0x0;_0x3fad9f<_0x5a0c2a[_0x59f6('0x121')];_0x3fad9f++){if(_0x5795d1[_0x59f6('0x4c')]&&_0x59f6('0x5d')==_0x5a0c2a[_0x3fad9f][_0x59f6('0x84')])return _0x5795d1[_0x59f6('0x1f')]=_0x5a0c2a[_0x3fad9f],void delete _0x5795d1[_0x59f6('0x4c')];if(!_0x5795d1['isAdded']&&!_0x5795d1[_0x59f6('0x129')]&&'deletion'==_0x5a0c2a[_0x3fad9f][_0x59f6('0x84')])return void(_0x5795d1[_0x59f6('0xc8')]=_0x5a0c2a[_0x3fad9f]);}}}[_0x59f6('0xbf')](_0x4c7bc8,_0x1dd35a){let _0x5c3795=0x0,_0xd87fe9=!0x1;const _0x57fd8a=new Map();for(const _0x413858 of _0x4c7bc8)_0x413858[_0x1dd35a]?_0xd87fe9&&(_0x5c3795++,_0xd87fe9=!0x1):(_0x5c3795++,_0xd87fe9=!0x0),_0x57fd8a['set'](_0x413858['id'],_0x5c3795);for(let _0x5d16ad=0x0;_0x5d16ad<_0x4c7bc8['length'];_0x5d16ad++){if(_0x59f6('0x129')==_0x1dd35a&&_0x4c7bc8[_0x5d16ad]['isAdded']||_0x59f6('0x4c')==_0x1dd35a&&_0x4c7bc8[_0x5d16ad][_0x59f6('0x129')])continue;if(_0x59f6('0xf6')==_0x4c7bc8[_0x5d16ad][_0x59f6('0x84')]){_0x4c7bc8[_0x5d16ad]['distance']=0x0;continue;}const _0x33298d=_0x57fd8a['get'](_0x4c7bc8[_0x5d16ad]['pairId']),_0x183bcf=_0x57fd8a[_0x59f6('0xdc')](_0x4c7bc8[_0x5d16ad]['id']);_0x4c7bc8[_0x5d16ad][_0x59f6('0x12a')]=_0x33298d-_0x183bcf;}}[_0x59f6('0x40')](_0x9b80fb,_0x54706a,_0x3a1d5f=!0x1){const _0xc729b8=[];let _0x505618=this[_0x59f6('0x82')]['getIndex'](_0x9b80fb),_0x8a3940=this[_0x59f6('0x82')]['getIndex'](_0x54706a);for(-0x1==_0x8a3940&&(_0x8a3940=this[_0x59f6('0x82')]['_revisions'][_0x59f6('0x121')],_0x3a1d5f=!0x1);_0x505618<_0x8a3940;)_0xc729b8[_0x59f6('0x52')](this['repository'][_0x59f6('0x26')](_0x505618)),_0x505618++;return _0x3a1d5f&&_0xc729b8[_0x59f6('0x52')](this[_0x59f6('0x82')][_0x59f6('0x26')](_0x505618)),_0xc729b8;}['_threeWayMerge'](_0x358591,_0x36662a,_0x3056eb,_0x25d2d2){const _0x18bf0c=this[_0x59f6('0x107')]['model']['schema'];let _0x348935=_0x36662a;for(;_0x358591[_0x348935]&&_0x358591[_0x348935][_0x59f6('0x4c')];)_0x348935++;let _0x4a650f=_0x25d2d2;for(;_0x3056eb[_0x4a650f]&&_0x3056eb[_0x4a650f][_0x59f6('0x129')];)_0x4a650f++;_0x121f58(_0x358591,_0x36662a,_0x348935),_0x121f58(_0x3056eb,_0x25d2d2,_0x4a650f);const _0x410aab=_0x3056eb[_0x59f6('0x10a')](_0x25d2d2,_0x4a650f)[_0x59f6('0x77')](_0x358591['slice'](_0x36662a,_0x348935));return _0x410aab[_0x59f6('0x87')]((_0xa0ba47,_0x45213a)=>_0xa0ba47[_0x59f6('0x114')]!=_0x45213a[_0x59f6('0x114')]?_0xa0ba47[_0x59f6('0x114')]-_0x45213a[_0x59f6('0x114')]:_0xa0ba47[_0x59f6('0x3a')]!=_0x45213a[_0x59f6('0x3a')]?_0xa0ba47[_0x59f6('0x3a')]-_0x45213a[_0x59f6('0x3a')]:_0xa0ba47[_0x59f6('0x12a')]!=_0x45213a[_0x59f6('0x12a')]?_0x45213a[_0x59f6('0x12a')]-_0xa0ba47[_0x59f6('0x12a')]:!!_0xa0ba47['isAdded']!=!!_0x45213a[_0x59f6('0x4c')]?-0x1==_0xa0ba47[_0x59f6('0x114')]||0x0==_0xa0ba47[_0x59f6('0x114')]?_0xa0ba47['isAdded']?-0x1:0x1:_0xa0ba47[_0x59f6('0x4c')]?0x1:-0x1:_0xa0ba47[_0x59f6('0x66')]-_0x45213a[_0x59f6('0x66')]),{'commonTape':_0x410aab,'iEnd':_0x348935,'jEnd':_0x4a650f};function _0x121f58(_0x1fc245,_0x136a5f,_0x295386){let _0x38270e=-0x1,_0x376824=Number[_0x59f6('0xe1')],_0x55e391=!0x0;for(let _0x3599ac=_0x136a5f;_0x3599ac<_0x295386;_0x3599ac++)if(_0x18bf0c['isInline'](_0x1fc245[_0x3599ac][_0x59f6('0xf')])||(_0x55e391=!0x1),_0x1fc245[_0x3599ac][_0x59f6('0xf')]['startIndex']<_0x136a5f&&(_0x38270e=_0x3599ac),_0x1fc245[_0x3599ac][_0x59f6('0xf')]['endIndex']>=_0x295386){_0x376824=_0x3599ac;break;}_0x55e391&&(_0x38270e=_0x295386-0x1);for(let _0x432686=_0x136a5f;_0x432686<_0x295386;_0x432686++)_0x1fc245[_0x432686][_0x59f6('0x114')]=_0x432686<=_0x38270e?-0x1:_0x432686<_0x376824?0x0:0x1,_0x1fc245[_0x432686][_0x59f6('0x66')]=_0x432686;let _0x4a1a98=0x0;for(let _0x8ba521=_0x136a5f;_0x8ba521<=_0x38270e;_0x8ba521++)0x0==_0x1fc245[_0x8ba521]['distance']?_0x1fc245[_0x8ba521]['level']=_0x4a1a98:(_0x4a1a98++,_0x1fc245[_0x8ba521][_0x59f6('0x3a')]=_0x4a1a98,_0x4a1a98++);for(let _0x372bfd=_0x136a5f;_0x372bfd<_0x295386;_0x372bfd++)0x0==_0x1fc245[_0x372bfd][_0x59f6('0x114')]&&(_0x1fc245[_0x372bfd][_0x59f6('0x3a')]=_0x4a1a98);_0x4a1a98=0x0;for(let _0x386630=_0x295386-0x1;_0x386630>=_0x376824;_0x386630--)0x0==_0x1fc245[_0x386630]['distance']?_0x1fc245[_0x386630]['level']=_0x4a1a98:(_0x4a1a98--,_0x1fc245[_0x386630][_0x59f6('0x3a')]=_0x4a1a98,_0x4a1a98--);}}[_0x59f6('0xfc')](_0x5f0ee4){const _0x480f7b=new Map(),_0x1b19e0=this['editor'][_0x59f6('0x10b')][_0x59f6('0xf0')];for(let _0x55df3c=0x1;_0x55df3c<_0x5f0ee4[_0x59f6('0x121')];_0x55df3c++){let _0x3d74fc,_0x5abf46,_0x25e288;const _0x3cc54c=_0x5f0ee4[_0x55df3c],_0x928d4d=_0x5f0ee4[_0x55df3c-0x1];if(_0x59f6('0xf6')==_0x3cc54c[_0x59f6('0x84')])continue;if(_0x3cc54c[_0x59f6('0x84')]!=_0x928d4d[_0x59f6('0x84')])continue;if(!_0x1b19e0[_0x59f6('0x15')](_0x928d4d[_0x59f6('0xf')])||_0x1b19e0[_0x59f6('0xc1')](_0x928d4d[_0x59f6('0xf')]))continue;if(!_0x1b19e0[_0x59f6('0x15')](_0x3cc54c[_0x59f6('0xf')])||_0x1b19e0[_0x59f6('0xc1')](_0x3cc54c[_0x59f6('0xf')]))continue;if((_0x5f0ee4[_0x55df3c]['isAdded']||_0x5f0ee4[_0x55df3c][_0x59f6('0x1f')])&&_0x5f0ee4[_0x55df3c-0x1][_0x59f6('0x129')])_0x3d74fc=_0x5f0ee4[_0x55df3c],_0x5abf46=_0x5f0ee4[_0x55df3c-0x1],_0x25e288=_0x55df3c-0x1;else{if(!_0x5f0ee4[_0x55df3c][_0x59f6('0x129')]||!_0x5f0ee4[_0x55df3c-0x1][_0x59f6('0x4c')]&&!_0x5f0ee4[_0x55df3c-0x1][_0x59f6('0x1f')])continue;_0x3d74fc=_0x5f0ee4[_0x55df3c-0x1],_0x5abf46=_0x5f0ee4[_0x55df3c],_0x25e288=_0x55df3c;}const _0x1d3379=_0x3d74fc[_0x59f6('0x3a')]==_0x5abf46[_0x59f6('0x3a')],_0x510bee=Math[_0x59f6('0x10d')](_0x3d74fc[_0x59f6('0x3a')])<Math[_0x59f6('0x10d')](_0x5abf46[_0x59f6('0x3a')])&&0x0==_0x5abf46[_0x59f6('0x12a')];(_0x1d3379||_0x510bee)&&(_0x480f7b[_0x59f6('0x101')](_0x5abf46['id'],_0x3d74fc['id']),_0x5f0ee4['splice'](_0x25e288,0x1),_0x55df3c--,_0x3d74fc['isAdded']=!0x1);}for(let _0x1a4742=0x0;_0x1a4742<_0x5f0ee4[_0x59f6('0x121')];_0x1a4742++)_0x480f7b[_0x59f6('0x4b')](_0x5f0ee4[_0x1a4742][_0x59f6('0x104')])&&(_0x5f0ee4[_0x1a4742][_0x59f6('0x104')]=_0x480f7b[_0x59f6('0xdc')](_0x5f0ee4[_0x1a4742][_0x59f6('0x104')]));}[_0x59f6('0xeb')](_0x5b475b){const _0x5f3207=new Set(_0x5b475b[_0x59f6('0x2b')](_0x492e1a=>_0x492e1a['id']));for(let _0x328c9c=0x0;_0x328c9c<_0x5b475b[_0x59f6('0x121')];_0x328c9c++)_0x5f3207['has'](_0x5b475b[_0x328c9c][_0x59f6('0x104')])||0x0==_0x5b475b[_0x328c9c]['distance']||(_0x5b475b[_0x328c9c]['isIncorrect']=!0x0);return _0x5b475b[_0x59f6('0xc0')](_0x2a761a=>!_0x2a761a[_0x59f6('0x10c')]);}['_markMismatchedRemovedTags'](_0x272c22){const _0x475874=new Set();for(let _0x1cbbd0=0x0;_0x1cbbd0<_0x272c22[_0x59f6('0x121')];_0x1cbbd0++){if(_0x475874[_0x59f6('0x4b')](_0x272c22[_0x1cbbd0]['id'])&&_0x272c22[_0x1cbbd0][_0x59f6('0x129')]&&(_0x272c22[_0x1cbbd0][_0x59f6('0x10c')]=!0x0),_0x272c22[_0x1cbbd0][_0x59f6('0x10c')])continue;if(0x0==_0x272c22[_0x1cbbd0][_0x59f6('0x12a')])continue;if(_0x59f6('0x98')!=_0x272c22[_0x1cbbd0]['type'])continue;if(null==_0x272c22[_0x1cbbd0][_0x59f6('0x104')])continue;let _0xc1e018=_0x1cbbd0+0x1,_0x149a60=0x0;for(;_0x272c22[_0xc1e018]['id']!=_0x272c22[_0x1cbbd0]['pairId'];)_0x59f6('0x98')==_0x272c22[_0xc1e018]['type']?_0x149a60++:'elementEnd'==_0x272c22[_0xc1e018][_0x59f6('0x84')]&&_0x149a60--,_0xc1e018++;if(0x0!=_0x149a60){if(_0x272c22[_0x1cbbd0][_0x59f6('0x129')])_0x272c22[_0x1cbbd0][_0x59f6('0x10c')]=!0x0;else for(;_0xc1e018!=_0x1cbbd0;)_0x272c22[_0xc1e018][_0x59f6('0x129')]&&0x0!=_0x272c22[_0xc1e018][_0x59f6('0x12a')]&&(_0x272c22[_0xc1e018]['isIncorrect']=!0x0,_0x475874[_0x59f6('0x8')](_0x272c22[_0xc1e018][_0x59f6('0x104')])),_0xc1e018--;}}return _0x272c22[_0x59f6('0xc0')](_0x3dbfc4=>!_0x3dbfc4[_0x59f6('0x10c')]);}[_0x59f6('0xcd')](_0x568ec6){const _0x4ca613=this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0xf0')];for(let _0x259d4d=0x0;_0x259d4d<_0x568ec6[_0x59f6('0x121')];_0x259d4d++){if(!(_0x568ec6[_0x259d4d][_0x59f6('0x4c')]||_0x568ec6[_0x259d4d][_0x59f6('0x1f')]||_0x568ec6[_0x259d4d]['isRemoved']||_0x568ec6[_0x259d4d]['isRemoveSuggestion']))continue;if(0x0==_0x568ec6[_0x259d4d][_0x59f6('0x12a')])continue;const _0x39bff4=_0x568ec6[_0x259d4d][_0x59f6('0xf')];_0x4ca613[_0x59f6('0x15')](_0x39bff4)||_0x4ca613['isLimit'](_0x39bff4)||(_0x568ec6[_0x259d4d][_0x59f6('0x4c')]&&delete _0x568ec6[_0x259d4d][_0x59f6('0x4c')],_0x568ec6[_0x259d4d][_0x59f6('0x1f')]&&delete _0x568ec6[_0x259d4d]['isAddSuggestion'],_0x568ec6[_0x259d4d][_0x59f6('0xc8')]&&delete _0x568ec6[_0x259d4d][_0x59f6('0xc8')],_0x568ec6[_0x259d4d][_0x59f6('0x129')]&&(_0x568ec6[_0x259d4d][_0x59f6('0x10c')]=!0x0));}return _0x568ec6[_0x59f6('0xc0')](_0x344b99=>!_0x344b99[_0x59f6('0x10c')]);}[_0x59f6('0x8c')](_0x52714f,_0x463e61,_0x3b1d91){const _0x53cd91=new _0x29151e(),_0x1519e7=[],_0x33f29c=new Map(),_0x262d5e=this[_0x59f6('0x107')][_0x59f6('0x10b')],_0x240bea=_0x262d5e[_0x59f6('0xf0')],_0x5c343f=[_0x53cd91],_0x2c10d5={},_0xe4e5dc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5dc5ee=null;const _0x539288=[0x0];for(let _0x2a9ef2=0x0;_0x2a9ef2<_0x52714f[_0x59f6('0x121')];_0x2a9ef2++){let _0x39a534,_0x573b66;if(_0x59f6('0x98')===_0x52714f[_0x2a9ef2][_0x59f6('0x84')]){_0x39a534=_0x262d5e[_0x59f6('0x72')](_0x53cd91,_0x539288);const _0x3da8e3=new _0x2d9a61(_0x52714f[_0x2a9ef2][_0x59f6('0xf')]['name'],_0x52714f[_0x2a9ef2][_0x59f6('0xf')]['getAttributes']());_0x5c343f[0x0]['_appendChild'](_0x3da8e3),_0x539288['push'](0x0),_0x5c343f[_0x59f6('0xcb')](_0x3da8e3),_0x573b66=_0x262d5e['createPositionFromPath'](_0x53cd91,_0x539288),_0x5dc5ee=null;}else{if('elementEnd'===_0x52714f[_0x2a9ef2][_0x59f6('0x84')])_0x5c343f[_0x59f6('0xcf')](),_0x39a534=_0x262d5e[_0x59f6('0x72')](_0x53cd91,_0x539288),_0x539288[_0x59f6('0x113')](),_0x539288[_0x539288[_0x59f6('0x121')]-0x1]++,_0x573b66=_0x262d5e[_0x59f6('0x72')](_0x53cd91,_0x539288),_0x5dc5ee=null;else{if(_0x39a534=_0x262d5e['createPositionFromPath'](_0x53cd91,_0x539288),_0x5dc5ee&&_0x22030f(_0x5dc5ee,_0x52714f[_0x2a9ef2][_0x59f6('0xf')]))_0x5dc5ee[_0x59f6('0x89')]+=_0x52714f[_0x2a9ef2][_0x59f6('0xf')]['data'];else{const _0x49723d=new _0x509178(_0x52714f[_0x2a9ef2][_0x59f6('0xf')]['data'],_0x52714f[_0x2a9ef2][_0x59f6('0xf')][_0x59f6('0x127')]());_0x5c343f[0x0][_0x59f6('0x88')](_0x49723d),_0x5dc5ee=_0x49723d;}_0x539288[_0x539288[_0x59f6('0x121')]-0x1]+=_0x52714f[_0x2a9ef2]['item'][_0x59f6('0x18')],_0x573b66=_0x262d5e[_0x59f6('0x72')](_0x53cd91,_0x539288);}}for(const _0x270785 of _0x52714f[_0x2a9ef2][_0x59f6('0xb8')])_0x33f29c[_0x59f6('0x101')](_0x270785,{'start':_0x39a534,'end':null});_0x23887f(_0x59f6('0xc8'),_0x2a9ef2,_0x39a534,_0x573b66),_0x23887f('isAddSuggestion',_0x2a9ef2,_0x39a534,_0x573b66),_0x23887f(_0x59f6('0x129'),_0x2a9ef2,_0x39a534,_0x573b66),_0x23887f(_0x59f6('0x4c'),_0x2a9ef2,_0x39a534,_0x573b66);for(const _0x224cdf of _0x52714f[_0x2a9ef2]['markersEnd']){_0x33f29c[_0x59f6('0xdc')](_0x224cdf)['end']=_0x573b66;}}for(const [_0x2ef336,_0x3ff1ce]of _0x33f29c){const _0x5d217b=this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0x6d')](_0x3ff1ce[_0x59f6('0xaa')],_0x3ff1ce[_0x59f6('0x6a')]);_0x53cd91[_0x59f6('0x62')][_0x59f6('0x101')](_0x2ef336,_0x5d217b);}return _0x1519e7[_0x59f6('0x87')]((_0x16d15a,_0x1d306d)=>{const _0x25f378=_0x53cd91[_0x59f6('0x62')][_0x59f6('0xdc')](_0x59f6('0x90')+_0x16d15a['id']),_0x1e231a=_0x53cd91[_0x59f6('0x62')][_0x59f6('0xdc')](_0x59f6('0x90')+_0x1d306d['id']);return _0x25f378[_0x59f6('0xaa')][_0x59f6('0xa8')](_0x1e231a['start'])?-0x1:_0x25f378[_0x59f6('0xaa')]['isAfter'](_0x1e231a[_0x59f6('0xaa')])?0x1:_0x25f378['end']['isBefore'](_0x1e231a[_0x59f6('0x6a')])?-0x1:_0x25f378[_0x59f6('0x6a')]['isAfter'](_0x1e231a[_0x59f6('0x6a')])?0x1:_0x59f6('0x8')===_0x16d15a[_0x59f6('0x84')]?-0x1:0x1;}),{'root':_0x53cd91,'changes':_0x1519e7};function _0x23887f(_0x38803c,_0x13c7f7,_0x129e24,_0xc70d3b){const _0x1e663f=!!_0x52714f[_0x13c7f7][_0x38803c],_0xa7f06=_0x1e663f?_0x52714f[_0x13c7f7][_0x38803c][_0x59f6('0x120')]:null,_0x167ba0=_0x13c7f7===_0x52714f[_0x59f6('0x121')]-0x1,_0x5cf3e8=_0xe4e5dc[_0x38803c][0x0],_0xe45f47=_0x240bea['isObject'](_0x52714f[_0x13c7f7][_0x59f6('0xf')]);!_0x2c10d5[_0x38803c]&&_0x1e663f?_0x2c10d5[_0x38803c]={'start':_0x129e24,'tapeItem':_0x52714f[_0x13c7f7],'userId':_0xa7f06,'type':_0x38803c}:_0x2c10d5[_0x38803c]&&!_0x1e663f?(_0x2c10d5[_0x38803c][_0x59f6('0x6a')]=_0x129e24,_0x229a51(_0x2c10d5[_0x38803c]),_0x2c10d5[_0x38803c]=null):_0x2c10d5[_0x38803c]&&_0x1e663f&&_0x2c10d5[_0x38803c][_0x59f6('0x120')]!==_0xa7f06&&(_0x2c10d5[_0x38803c][_0x59f6('0x6a')]=_0x129e24,_0x5cf3e8&&_0x5cf3e8[_0x59f6('0x120')]===_0x2c10d5[_0x38803c][_0x59f6('0x120')]||_0x229a51(_0x2c10d5[_0x38803c]),_0x2c10d5[_0x38803c]={'start':_0x129e24,'tapeItem':_0x52714f[_0x13c7f7],'userId':_0xa7f06,'type':_0x38803c}),_0x2c10d5[_0x38803c]&&_0xe45f47&&('elementStart'!==_0x52714f[_0x13c7f7][_0x59f6('0x84')]||_0x5cf3e8&&_0x5cf3e8['userId']===_0xa7f06||_0xe4e5dc[_0x38803c][_0x59f6('0xcb')]({'userId':_0xa7f06,'object':_0x52714f[_0x13c7f7][_0x59f6('0xf')],'change':_0x2c10d5[_0x38803c]}),_0x59f6('0xb6')===_0x52714f[_0x13c7f7][_0x59f6('0x84')]&&_0x5cf3e8&&_0x5cf3e8[_0x59f6('0xc6')]===_0x52714f[_0x13c7f7][_0x59f6('0xf')]&&(_0xe4e5dc[_0x38803c][_0x59f6('0xcf')](),_0x2c10d5[_0x38803c]=_0x5cf3e8[_0x59f6('0xff')])),_0x2c10d5[_0x38803c]&&_0x167ba0&&(_0x2c10d5[_0x38803c][_0x59f6('0x6a')]=_0xc70d3b,_0x229a51(_0x2c10d5[_0x38803c]),_0x2c10d5[_0x38803c]=null);}function _0x229a51({start:_0x242792,end:_0x16c4bd,tapeItem:_0x49937f,userId:_0x58bb38,type:_0x5d67c0}){const _0x1f6347=_0x49937f[_0x59f6('0xf')],_0xb8ef7=_0x262d5e[_0x59f6('0xf0')][_0x59f6('0x15')](_0x1f6347)&&!_0x262d5e[_0x59f6('0xf0')][_0x59f6('0xc1')](_0x1f6347),_0x5e28d7=_0x242792[_0x59f6('0x97')]==_0x16c4bd[_0x59f6('0x2d')]&&_0x16c4bd[_0x59f6('0xd3')];if(_0xb8ef7&&_0x5e28d7)return;const _0x35b1e7=_0x262d5e[_0x59f6('0x6d')](_0x242792,_0x16c4bd),_0x438329=_0x463e61[_0x59f6('0xdc')](_0x58bb38),_0x174211=new _0x344f57({'author':_0x438329,'type':'isAdded'==_0x5d67c0||_0x59f6('0x1f')==_0x5d67c0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5d67c0||_0x59f6('0xc8')==_0x5d67c0},'createdAt':new Date(),'rootName':_0x3b1d91});_0x1519e7[_0x59f6('0x52')](_0x174211),_0x53cd91[_0x59f6('0x62')][_0x59f6('0x101')](_0x59f6('0x90')+_0x174211['id'],_0x35b1e7);}function _0x22030f(_0x53cd92,_0x58beef){const _0x4a49a4=_0x53cd92[_0x59f6('0x127')](),_0x4a8e23=_0x58beef['getAttributes']();for(const _0x5252c2 of _0x4a49a4){if(_0x5252c2[0x1]!==_0x58beef[_0x59f6('0x7c')](_0x5252c2[0x0]))return!0x1;_0x4a8e23[_0x59f6('0x2')]();}return _0x4a8e23[_0x59f6('0x2')]()[_0x59f6('0xf5')];}}[_0x59f6('0x76')](){this[_0x59f6('0x107')][_0x59f6('0x8e')]['for'](_0x59f6('0x42'))[_0x59f6('0xb2')]({'view':_0x59f6('0xf8')}),this[_0x59f6('0x107')]['conversion']['for'](_0x59f6('0x55'))['markerToHighlight']({'model':'revision','view':_0xa88290=>{const _0x561998=_0xa88290[_0x59f6('0x126')]['split'](':')[0x1],_0x2eb715=this[_0x59f6('0x7f')](_0x561998);if(!_0x2eb715)return null;const _0x541c46=_0x59f6('0x8')==_0x2eb715[_0x59f6('0x84')]?'insertion':'deletion',_0x1011b2=[_0x59f6('0xe7'),_0x59f6('0x4e')+_0x541c46];return _0x2eb715[_0x59f6('0x39')][_0x59f6('0xc9')]&&_0x1011b2[_0x59f6('0x52')](_0x59f6('0x4e')+_0x541c46+_0x59f6('0x64')),this['activeChange']==_0x2eb715&&_0x1011b2['push']('ck-suggestion-marker--active'),{'classes':_0x1011b2,'attributes':{'data-change-id':_0x561998}};}}),this[_0x59f6('0x107')]['conversion'][_0x59f6('0xa')](_0x59f6('0x42'))[_0x59f6('0x8')](_0x10500d=>{_0x10500d['on'](_0x59f6('0x85'),(_0x37c1e3,_0x4ba7fa,_0x3b729d)=>{const _0x4a884e=_0x4ba7fa['viewItem'][_0x59f6('0x95')](0x0);if(!_0x4a884e||!_0x4a884e['is'](_0x59f6('0x4'),'code'))return;if(!_0x3b729d['consumable'][_0x59f6('0xdb')](_0x4a884e,{'attributes':[_0x59f6('0x0'),_0x59f6('0xd4')]}))return;const _0xc8f824=_0x4ba7fa[_0x59f6('0x3b')][_0x59f6('0xaa')]['nodeAfter'];_0x3b729d[_0x59f6('0x128')][_0x59f6('0xa2')](_0x59f6('0x0'),_0x4a884e[_0x59f6('0x7c')](_0x59f6('0x0')),_0xc8f824),_0x3b729d[_0x59f6('0x128')][_0x59f6('0xa2')]('vid_end',_0x4a884e['getAttribute'](_0x59f6('0xd4')),_0xc8f824);},{'priority':_0x59f6('0x83')});}),this[_0x59f6('0x107')][_0x59f6('0x8e')]['for'](_0x59f6('0x42'))[_0x59f6('0x8')](_0x23fb1e=>{_0x23fb1e['on'](_0x59f6('0x4'),(_0x1da6fc,_0x15c386,_0x5f2cf8)=>{if(!_0x5f2cf8['consumable'][_0x59f6('0xdb')](_0x15c386[_0x59f6('0xf3')],{'attributes':[_0x59f6('0x0'),_0x59f6('0xd4')]}))return;if(_0x15c386['modelRange'][_0x59f6('0x28')])return;const _0x37b84a=_0x15c386['modelRange'][_0x59f6('0xaa')][_0x59f6('0x97')];_0x37b84a[_0x59f6('0xa1')](_0x59f6('0x0'))||_0x37b84a['hasAttribute']('vid')||(_0x5f2cf8['writer'][_0x59f6('0xa2')]('vid_start',_0x15c386[_0x59f6('0xf3')][_0x59f6('0x7c')](_0x59f6('0x0')),_0x37b84a),_0x5f2cf8['writer'][_0x59f6('0xa2')](_0x59f6('0xd4'),_0x15c386[_0x59f6('0xf3')][_0x59f6('0x7c')](_0x59f6('0xd4')),_0x37b84a));},{'priority':_0x59f6('0x83')});}),this[_0x59f6('0x107')][_0x59f6('0x8e')]['for'](_0x59f6('0x42'))['elementToAttribute']({'view':{'name':_0x59f6('0x110'),'attributes':{'vid':!0x0}},'model':{'key':_0x59f6('0xc4'),'value':_0x53f3b7=>_0x53f3b7[_0x59f6('0x7c')](_0x59f6('0xc4'))}}),this[_0x59f6('0x107')]['model'][_0x59f6('0xf0')]['on'](_0x59f6('0xe2'),(_0x5b03f8,[,_0x1723e3])=>{[_0x59f6('0x0'),'vid_end',_0x59f6('0xc4')][_0x59f6('0x1e')](_0x1723e3)&&(_0x5b03f8[_0x59f6('0x58')]=!0x0,_0x5b03f8[_0x59f6('0x35')]());},{'priority':_0x59f6('0x17')}),this[_0x59f6('0x107')][_0x59f6('0x8e')][_0x59f6('0xa')](_0x59f6('0x60'))['add'](_0x3b6822=>{_0x3b6822['on'](_0x59f6('0x1a'),(_0x37fa80,_0xd50598,_0x47f0eb)=>{if('\x20'!=_0xd50598[_0x59f6('0xf')][_0x59f6('0x39')]||_0xd50598[_0x59f6('0xf')][_0x59f6('0x2d')][_0x59f6('0xb3')]>0x1)return;if(!_0x47f0eb[_0x59f6('0xec')][_0x59f6('0xdb')](_0xd50598[_0x59f6('0xf')],_0x37fa80[_0x59f6('0xee')]))return;const _0x430db5=_0x47f0eb[_0x59f6('0x128')],_0x5bbce5=_0x47f0eb[_0x59f6('0x65')][_0x59f6('0x78')](_0xd50598[_0x59f6('0xef')]);_0x430db5[_0x59f6('0x22')](_0x5bbce5,_0x430db5[_0x59f6('0x45')](_0x59f6('0x110')));});}),this[_0x59f6('0x107')][_0x59f6('0x8e')][_0x59f6('0xa')](_0x59f6('0x60'))['markerToData']({'model':_0x59f6('0xf8')}),this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0xe8')]['on'](_0x59f6('0x11a'),function(_0x1a2f65){const _0x5dadc0=_0x1a2f65[_0x59f6('0x3f')]['get'](_0x59f6('0xbb'));return(_0x5622be,_0x399558,_0x4d65c9)=>{const _0x529972=_0x399558[_0x59f6('0x126')][_0x59f6('0x57')](':')[0x1],_0x4b2bae=_0x5dadc0['_getChangeFromId'](_0x529972);if(!_0x4b2bae)return null;const _0x18f2ea=_0x59f6('0x8')==_0x4b2bae[_0x59f6('0x84')]?_0x59f6('0x57'):_0x59f6('0xa7');if(!_0x4d65c9[_0x59f6('0xec')]['test'](_0x399558[_0x59f6('0xb7')],_0x5622be[_0x59f6('0xee')]))return;const _0x4151f5=_0x399558[_0x59f6('0xb7')][_0x59f6('0x5f')](),_0x1a940e=_0x399558[_0x59f6('0xb7')][_0x59f6('0xaa')],_0x4c68d5=_0x1a2f65['model'][_0x59f6('0xf0')];let _0x1eb3a8=null,_0x42f357=null,_0x2e82eb=!0x1,_0x3a84ed=!0x1;for(const _0x285580 of _0x4151f5){const _0x55dfb0=_0x285580[_0x59f6('0xf')];_0x2e82eb=_0x2e82eb||_0x4c68d5[_0x59f6('0xb1')](_0x55dfb0);const _0x5c6a14=_0x4d65c9[_0x59f6('0x65')][_0x59f6('0xa5')](_0x55dfb0);if(_0x5c6a14&&_0x5c6a14[_0x59f6('0x10e')]('addHighlight'))return;_0x59f6('0xb6')==_0x285580[_0x59f6('0x84')]&&(_0x4c68d5[_0x59f6('0x15')](_0x55dfb0)&&!_0x4c68d5[_0x59f6('0xc1')](_0x55dfb0)&&(_0x55dfb0[_0x59f6('0x11e')]||_0x1a940e[_0x59f6('0x63')]?_0x1eb3a8&&_0x1eb3a8[_0x59f6('0x2d')]==_0x55dfb0||(_0x1eb3a8=_0x55dfb0,_0x1eff50(_0x285580[_0x59f6('0xfa')]),_0x3a84ed=!0x0):_0x42f357=_0x42f357||_0x285580[_0x59f6('0xfa')]));}function _0x1eff50(_0xa24e3c){const _0x5071b5=_0x4d65c9[_0x59f6('0x128')][_0x59f6('0x24')](_0x59f6('0x110'),{'class':_0x59f6('0x4e')+_0x18f2ea}),_0x5275c5=_0x4d65c9[_0x59f6('0x65')][_0x59f6('0xd6')](_0xa24e3c);_0x4b2bae['data'][_0x59f6('0xc9')]&&_0x4d65c9[_0x59f6('0x128')][_0x59f6('0xc3')](_0x59f6('0x4e')+_0x18f2ea+_0x59f6('0x64'),_0x5071b5),_0x5dadc0[_0x59f6('0x9b')]==_0x4b2bae&&_0x4d65c9['writer']['addClass'](_0x59f6('0xa0'),_0x5071b5),_0x4d65c9[_0x59f6('0x128')]['insert'](_0x5275c5,_0x5071b5),_0x4d65c9[_0x59f6('0x65')][_0x59f6('0x105')](_0x5071b5,_0x399558[_0x59f6('0x126')]);}_0x2e82eb||_0x3a84ed||!_0x42f357||_0x1eff50(_0x42f357);};}(this[_0x59f6('0x107')]),{'priority':_0x59f6('0x3')}),this[_0x59f6('0x107')][_0x59f6('0x106')]['downcastDispatcher']['on']('removeMarker:revision',(_0x44ddc3,_0xa457eb,_0x56ad19)=>{const _0x292a23=_0x56ad19[_0x59f6('0x65')][_0x59f6('0x4f')](_0xa457eb['markerName']);if(_0x292a23)for(const _0x4ccc65 of _0x292a23)(_0x4ccc65[_0x59f6('0xf2')](_0x59f6('0x116'))||_0x4ccc65[_0x59f6('0xf2')](_0x59f6('0xd9')))&&(_0x56ad19['mapper'][_0x59f6('0x112')](_0x4ccc65,_0xa457eb[_0x59f6('0x126')]),_0x56ad19[_0x59f6('0x128')]['remove'](_0x4ccc65));},{'priority':_0x59f6('0x3')}),this['editor'][_0x59f6('0x106')][_0x59f6('0xe8')]['on'](_0x59f6('0x11a'),(_0x5d8697,_0x6c9da5,_0x347398)=>{const _0x2563ea=_0x6c9da5[_0x59f6('0x126')][_0x59f6('0x57')](':')[0x1],_0x5e9025=this[_0x59f6('0x7f')](_0x2563ea);if(!_0x5e9025)return null;const _0x3a5ab5=_0x59f6('0x8')==_0x5e9025[_0x59f6('0x84')]?'split':_0x59f6('0xa7');if(_0x347398['consumable'][_0x59f6('0x7')](_0x6c9da5[_0x59f6('0xb7')],_0x5d8697[_0x59f6('0xee')]))for(const _0x27be4b of _0x6c9da5['markerRange'][_0x59f6('0xd0')]()){if(!_0x27be4b['is'](_0x59f6('0x4'),_0x59f6('0x21')))continue;const _0x488d89=_0x347398['writer'][_0x59f6('0x24')]('span',{'class':_0x59f6('0x4e')+_0x3a5ab5}),_0x15df66=_0x347398[_0x59f6('0x65')][_0x59f6('0xd6')](this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0x111')](_0x27be4b));_0x5e9025['data']['isSuggestion']&&_0x347398[_0x59f6('0x128')][_0x59f6('0xc3')](_0x59f6('0x4e')+_0x3a5ab5+_0x59f6('0x64'),_0x488d89),this[_0x59f6('0x9b')]==_0x5e9025&&_0x347398[_0x59f6('0x128')][_0x59f6('0xc3')](_0x59f6('0xa0'),_0x488d89),_0x347398[_0x59f6('0x128')][_0x59f6('0xde')](_0x15df66,_0x488d89),_0x347398[_0x59f6('0x65')]['bindElementToMarker'](_0x488d89,_0x6c9da5['markerName']);}},{'priority':_0x59f6('0x3')}),this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0x6b')]['on'](_0x59f6('0xff'),()=>{this['editor'][_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0xff')](_0x249a6d=>{for(const _0x3a94c1 of this['editor'][_0x59f6('0x10b')][_0x59f6('0x6b')][_0x59f6('0x20')]()){const _0x45ffb2=this[_0x59f6('0x107')]['model']['document']['getRoot'](_0x3a94c1),_0x1d2d6c=this['editor'][_0x59f6('0x106')]['view'][_0x59f6('0x6b')][_0x59f6('0x43')](_0x3a94c1);if(_0x1d2d6c){const _0x329850=_0x45ffb2['getAttribute']('revisionHistoryAttachChange');if(_0x249a6d['removeAttribute'](_0x59f6('0xdd'),_0x1d2d6c),_0x249a6d[_0x59f6('0x124')](_0x59f6('0x1'),_0x1d2d6c),_0x249a6d[_0x59f6('0x124')](_0x59f6('0x50'),_0x1d2d6c),_0x249a6d[_0x59f6('0x124')]('ck-revision-history-root--active',_0x1d2d6c),_0x329850){const _0x473351=this[_0x59f6('0x7f')](_0x329850);if(!_0x473351)return null;_0x249a6d[_0x59f6('0xa2')](_0x59f6('0xdd'),_0x329850,_0x1d2d6c),_0x249a6d[_0x59f6('0xc3')](_0x59f6('0x61')+_0x473351[_0x59f6('0x84')],_0x1d2d6c),this[_0x59f6('0x9b')]==_0x473351&&_0x249a6d[_0x59f6('0xc3')]('ck-revision-history-root--active',_0x1d2d6c);}}}});}),this['editor'][_0x59f6('0x8e')][_0x59f6('0xa')](_0x59f6('0x42'))[_0x59f6('0xb2')]({'view':'comment','model':_0x46201a=>_0x59f6('0xf9')+_0x46201a,'converterPriority':_0x59f6('0x17')}),this['editor'][_0x59f6('0x8e')][_0x59f6('0xa')](_0x59f6('0x42'))[_0x59f6('0xb2')]({'view':_0x59f6('0xa9'),'model':_0x132829=>_0x59f6('0x29')+_0x132829,'converterPriority':_0x59f6('0x17')}),this[_0x59f6('0x107')][_0x59f6('0x8e')][_0x59f6('0xa')]('dataDowncast')[_0x59f6('0xa3')]({'model':_0x59f6('0xe0'),'view':_0x33635d=>({'name':_0x59f6('0xca')+_0x33635d,'group':_0x59f6('0xe0')}),'converterPriority':_0x59f6('0x17')}),this[_0x59f6('0x107')][_0x59f6('0x8e')][_0x59f6('0xa')](_0x59f6('0x55'))[_0x59f6('0x96')]({'model':_0x59f6('0xe0'),'view':_0x459366=>{const _0xe05324=_0x459366['markerName'][_0x59f6('0x57')](':')[0x1];return _0x59f6('0x5d')!=_0xe05324&&_0x59f6('0x8f')!=_0xe05324?null:{'classes':[_0x59f6('0x117'),_0x59f6('0x2a')+_0xe05324]};}}),this['editor'][_0x59f6('0x106')]['downcastDispatcher']['on'](_0x59f6('0x1c'),et(this['editor'],'merge'),{'priority':_0x59f6('0x3')}),this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0xe8')]['on'](_0x59f6('0x103'),et(this[_0x59f6('0x107')],_0x59f6('0x57')),{'priority':_0x59f6('0x3')}),this['editor'][_0x59f6('0x106')]['downcastDispatcher']['on'](_0x59f6('0x9a'),(_0x567f6f,_0x3c07a3,_0x1b8dfc)=>{const _0x3e6eaf=_0x1b8dfc[_0x59f6('0x65')][_0x59f6('0x4f')](_0x3c07a3[_0x59f6('0x126')]);if(_0x3e6eaf)for(const _0x3a0fcd of _0x3e6eaf)_0x3a0fcd['is'](_0x59f6('0xc2'))&&(_0x1b8dfc[_0x59f6('0x65')]['unbindElementFromMarkerName'](_0x3a0fcd,_0x3c07a3[_0x59f6('0x126')]),_0x1b8dfc['writer']['remove'](_0x3a0fcd));},{'priority':_0x59f6('0x3')});}[_0x59f6('0x7f')](_0x4b30fb){return this[_0x59f6('0x38')][_0x59f6('0xdc')](_0x4b30fb);}[_0x59f6('0x12c')](_0x189d00){return this['_changeView']&&this[_0x59f6('0x3c')][_0x59f6('0x80')](),this['_changeView']=new _0x4e1609(this[_0x59f6('0x107')][_0x59f6('0x74')],_0x189d00),this[_0x59f6('0x3c')];}['_initInteractions'](){this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0x6b')][_0x59f6('0x75')][_0x59f6('0x44')](_0x59f6('0xf8')),this['on'](_0x59f6('0xf1'),(_0x5c2ce6,_0x3866de,_0x2d05cf,_0x4e89d5)=>{_0x4e89d5&&this[_0x59f6('0x6f')][_0x59f6('0x36')](_0x4e89d5),_0x2d05cf&&(this['_balloon'][_0x59f6('0x8')]({'view':_0x2d05cf,'stackId':_0x59f6('0x11'),'position':{'target':()=>{const _0x35af5d=this[_0x59f6('0x107')][_0x59f6('0x106')],_0x32e003=this[_0x59f6('0x7f')](_0x2d05cf[_0x59f6('0x119')]);let _0xcc0023;if(_0x32e003[_0x59f6('0x39')][_0x59f6('0xae')]){const _0x59686f=_0x35af5d[_0x59f6('0x2e')][_0x59f6('0x33')](_0x32e003['rootName']);_0xcc0023=Array['from'](_0x59686f[_0x59f6('0xdf')]());}else{const _0x368236=this[_0x59f6('0x107')]['model']['markers'][_0x59f6('0xdc')](_0x59f6('0x90')+_0x2d05cf[_0x59f6('0x119')]);_0xcc0023=Array[_0x59f6('0x27')](_0x35af5d[_0x59f6('0x65')]['markerNameToElements'](_0x368236[_0x59f6('0xee')]))[_0x59f6('0x2b')](_0xb6248b=>_0x35af5d[_0x59f6('0x2e')][_0x59f6('0x68')][_0x59f6('0xb')](_0xb6248b))[_0x59f6('0x2b')](_0xac4579=>Array['from'](_0xac4579[_0x59f6('0xdf')]()))[_0x59f6('0x5c')]();}if(!this[_0x59f6('0xac')])return _0xcc0023[0x0];return _0xcc0023['find'](_0x13369e=>_0x13369e[_0x59f6('0x1d')]-0x3<=this['_activeViewTarget']['y']&&_0x13369e[_0x59f6('0x13')]+0x3>=this[_0x59f6('0xac')]['y']&&_0x13369e['left']-0x3<=this[_0x59f6('0xac')]['x']&&_0x13369e[_0x59f6('0x53')]+0x3>=this[_0x59f6('0xac')]['x'])||_0xcc0023[0x0];}}}),this[_0x59f6('0x6f')][_0x59f6('0x48')](_0x59f6('0x11')));}),this['on'](_0x59f6('0xd'),(_0x2ccc2d,_0x22459d,_0x19ad2a,_0x1f328b)=>{this[_0x59f6('0xb9')]=_0x19ad2a?this[_0x59f6('0x12c')](_0x19ad2a):null,this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0xff')](()=>{const _0x11965e=this['editor'][_0x59f6('0x106')];_0x1f328b&&(_0x1f328b[_0x59f6('0x39')]['isOnRoot']?_0x11965e[_0x59f6('0x2e')][_0x59f6('0xff')](_0x34bf29=>{_0x34bf29[_0x59f6('0x124')](_0x59f6('0x70'),_0x11965e['view'][_0x59f6('0x6b')][_0x59f6('0x43')](_0x1f328b['rootName']));}):_0x11965e[_0x59f6('0xc7')](_0x59f6('0x90')+_0x1f328b['id'])),_0x19ad2a&&(_0x19ad2a[_0x59f6('0x39')][_0x59f6('0xae')]?_0x11965e[_0x59f6('0x2e')]['change'](_0x52bd2f=>{_0x52bd2f[_0x59f6('0xc3')](_0x59f6('0x70'),_0x11965e[_0x59f6('0x2e')][_0x59f6('0x6b')]['getRoot'](_0x19ad2a[_0x59f6('0x3d')]));}):_0x11965e[_0x59f6('0xc7')]('revision:'+_0x19ad2a['id']));});}),this[_0x59f6('0x19')](this['editor']['editing'][_0x59f6('0x2e')]['document'],_0x59f6('0x102'),(_0x400d50,_0x3ed961)=>{if(this[_0x59f6('0x9b')])return;const _0x5d36f9=this[_0x59f6('0xce')](_0x3ed961[_0x59f6('0x23')]),_0x42389c=this[_0x59f6('0x38')][_0x59f6('0xdc')](_0x5d36f9);_0x42389c?(this[_0x59f6('0xac')]={'x':_0x3ed961['domEvent']['x'],'y':_0x3ed961[_0x59f6('0x37')]['y']},this[_0x59f6('0xb9')]=this[_0x59f6('0x12c')](_0x42389c)):(this[_0x59f6('0xac')]=null,this[_0x59f6('0xb9')]=null);}),this[_0x59f6('0x19')](this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0x6b')],_0x59f6('0x30'),(_0x2e4bcd,_0x2ca631)=>{const _0x1b8afd=this[_0x59f6('0xce')](_0x2ca631['target']),_0x4ae923=this['_changeIdToChange'][_0x59f6('0xdc')](_0x1b8afd);_0x4ae923?(this['_activeViewTarget']={'x':_0x2ca631[_0x59f6('0x37')]['x'],'y':_0x2ca631[_0x59f6('0x37')]['y']},_0x4ae923===this[_0x59f6('0x9b')]?this[_0x59f6('0x6f')][_0x59f6('0xad')]():this['activeChange']=_0x4ae923):(this[_0x59f6('0xac')]=null,this[_0x59f6('0x9b')]=null);});}[_0x59f6('0xce')](_0x32ecf2){do{const _0x524669=_0x32ecf2[_0x59f6('0x7c')](_0x59f6('0xdd'));if(_0x524669)return _0x524669;_0x32ecf2=_0x32ecf2[_0x59f6('0x2d')];}while(_0x32ecf2);return null;}[_0x59f6('0x16')](){this[_0x59f6('0x107')]['model'][_0x59f6('0xff')](_0x103f44=>{for(const _0x5069ca of this['editor'][_0x59f6('0x10b')]['markers'])_0x103f44[_0x59f6('0x25')](_0x5069ca);});}}function et(_0x4d4dd1,_0x5a27a9){return(_0x3caf1d,_0x5dff12,_0x98538e)=>{if(!_0x98538e[_0x59f6('0xec')][_0x59f6('0x7')](_0x5dff12[_0x59f6('0xb7')],_0x3caf1d['name']))return;const _0x7bc1ba=_0x5dff12[_0x59f6('0xb7')][_0x59f6('0x5f')](),_0x3b9b26=_0x5dff12[_0x59f6('0xb7')][_0x59f6('0xaa')],_0x6f4f9=_0x4d4dd1['model'][_0x59f6('0xf0')];let _0x28c702=null,_0x57ed4b=null,_0x4bb478=!0x1,_0x110f37=!0x1;for(const _0x44d610 of _0x7bc1ba){const _0x1027fd=_0x44d610['item'];_0x4bb478=_0x4bb478||_0x6f4f9['isContent'](_0x1027fd);const _0x488e40=_0x98538e[_0x59f6('0x65')]['toViewElement'](_0x1027fd);if(_0x488e40&&_0x488e40[_0x59f6('0x10e')](_0x59f6('0x99')))return;'elementEnd'==_0x44d610[_0x59f6('0x84')]&&(_0x6f4f9[_0x59f6('0x15')](_0x1027fd)&&!_0x6f4f9['isLimit'](_0x1027fd)&&(_0x1027fd[_0x59f6('0x11e')]||_0x3b9b26[_0x59f6('0x63')]?_0x28c702&&_0x28c702[_0x59f6('0x2d')]==_0x1027fd||(_0x28c702=_0x1027fd,_0x1126b2(_0x44d610[_0x59f6('0xfa')]),_0x110f37=!0x0):_0x57ed4b=_0x57ed4b||_0x44d610[_0x59f6('0xfa')]));}function _0x1126b2(_0x456e3e){const _0x3b4ac7=_0x98538e[_0x59f6('0x65')]['toViewPosition'](_0x456e3e),_0x4218a6=_0x98538e['writer'][_0x59f6('0x24')](_0x59f6('0x110'),{'class':_0x59f6('0x2a')+_0x5a27a9});_0x98538e['writer'][_0x59f6('0xde')](_0x3b4ac7,_0x4218a6),_0x98538e[_0x59f6('0x65')]['bindElementToMarker'](_0x4218a6,_0x5dff12['markerName']);}_0x4bb478||_0x110f37||!_0x57ed4b||_0x1126b2(_0x57ed4b);};}export class RestoreRevisionCommand extends _0x5e8b59{constructor(_0x51c284){super(_0x51c284);const _0x536e24=_0x51c284['plugins'][_0x59f6('0xdc')](d);this[_0x59f6('0x41')]=!0x1,this[_0x59f6('0x19')](_0x536e24,_0x59f6('0x86'),()=>this[_0x59f6('0x11d')]()),this[_0x59f6('0x19')](_0x536e24,_0x59f6('0x67'),()=>this[_0x59f6('0x11d')]());}[_0x59f6('0x6e')](){const _0x1fdc68=this[_0x59f6('0x107')],_0x49262d=_0x1fdc68[_0x59f6('0x3f')][_0x59f6('0xdc')](d),_0x18a571=_0x49262d[_0x59f6('0x5a')]?_0x49262d[_0x59f6('0x118')][_0x59f6('0x12b')]:null;_0x1fdc68[_0x59f6('0xf4')]['get']('revisionHistory')[_0x59f6('0xbd')](_0x18a571);}['refresh'](){const {isReady:_0x34f175,isEnabled:_0x5a777c}=this[_0x59f6('0x107')][_0x59f6('0x3f')][_0x59f6('0xdc')](d);this['isEnabled']=_0x34f175&&_0x5a777c;}}export class ShowChangeCommand extends _0x5e8b59{constructor(_0x4393a9,{direction:_0x163be9}){super(_0x4393a9);const _0x3e8beb=_0x4393a9[_0x59f6('0x3f')][_0x59f6('0xdc')](d);this[_0x59f6('0x41')]=!0x1,this[_0x59f6('0xbc')]=_0x59f6('0xb4')===_0x163be9?0x1:-0x1,this[_0x59f6('0x19')](_0x3e8beb,_0x59f6('0x86'),()=>this[_0x59f6('0x11d')]()),this['listenTo'](_0x3e8beb,_0x59f6('0x67'),()=>this[_0x59f6('0x11d')]()),this[_0x59f6('0x19')](_0x3e8beb,_0x59f6('0xd'),()=>this[_0x59f6('0x11d')]());}['execute'](){const _0x546d48=this[_0x59f6('0x107')],_0x143a8e=_0x546d48[_0x59f6('0x3f')][_0x59f6('0xdc')](d),{isNavigationMode:_0x11eeba,currentChangeNumber:_0x298824}=_0x143a8e;let _0x172269;if(_0x143a8e[_0x59f6('0x9b')]=_0x11eeba?_0x143a8e[_0x59f6('0x118')]['changes'][_0x59f6('0xdc')](_0x298824+this[_0x59f6('0xbc')]):_0x143a8e[_0x59f6('0x118')][_0x59f6('0x91')]['first'],_0x143a8e['activeChange'][_0x59f6('0x39')][_0x59f6('0xae')])_0x172269=_0x546d48[_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0x33')](_0x143a8e[_0x59f6('0x9b')][_0x59f6('0x3d')]);else{const _0x51881f=_0x546d48['model'][_0x59f6('0x62')][_0x59f6('0xdc')](_0x59f6('0x90')+_0x143a8e[_0x59f6('0x9b')]['id']);_0x172269=_0x44109a(_0x546d48[_0x59f6('0x106')],_0x51881f);}_0x3b15ae({'target':_0x172269,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2f9bf5,currentChangeNumber:_0x58953f,numberOfChanges:_0x810007,isReady:_0x3be06f,isEnabled:_0x40b5a2}=this[_0x59f6('0x107')]['plugins'][_0x59f6('0xdc')](d);this[_0x59f6('0x8d')]=!!(_0x40b5a2&&_0x3be06f&&_0x810007)&&(!_0x2f9bf5||(0x1===this['_step']?_0x58953f<_0x810007-0x1:_0x58953f>0x0));}}
23
+ const _0x46c6=['remove','isInline','consumable','repository','_findChangeIdFromDomTarget','addClass','distance','_markInsertions','createPositionFromPath','isContent','editing','level','getRevision','set','restoreRevisionCallback','getCustomProperty','startIndex','revision-viewer','revision-start','enableReadOnlyMode','selection','toModel','string','_refreshStartEndIndex','config','offsetSize','revision-comment:','RevisionViewer','keys','-new','name','observeMarkers','ck-suggestion-marker--active','data-change-id','elementStart','default','map','isBefore','range','restoreRevision','revision-suggestion','rootName','document','vid','addHighlight','mouseover','revision','plugins','locale','activeView','_getRevisionsRange','collaboration.channelId','insertion','getAttribute','ck-revision-history-root--active','test','WidgetToolbarRepository','isOnRoot','isReady','detachRoot','splice','high','merge','stop','ck-editor__editable__overlay','_revisions','changeId','all','left','uiElement','ck-revision-history-root-','_markSuggestions','userId','newRevisionId','getRootNames','adapter','ck-revision-history-root-remove','writer','_removeMissingPairs','next','marked','markerToHighlight','low','getWalker','ck-suggestion-marker-merge','for','forward','insertions','revision:','span','compare','shift','hasClass','diffData','_appendChild','listenTo','_markMismatchedRemovedTags','affectsData','end','index','mousedown','loadRevisionData','refresh','attributes','_activeViewTarget','flat','includes','isAdded','toData','_threeWayMerge','isAfter','_removeUnsupportedChanges','bindElementToMarker','changes','element:pre','getIndex','nextSibling','target','dataToMarker','_joinTapes','activeChange','createRangeIn','revisionHistoryLabel','deletion','_step','error','_fixObsoleteTags','ck-revision-history-root-add','isRemoveSuggestion','top','change:activeView','markerName','enqueueChange','parse','isIncorrect','addMarker:revision','wrap','RevisionsRepository','getDomRoot','showStack','_processTape','_getViewForChange','domEvent','_removeRevisionMarkers','markerNameToElements','has','attributesBefore','length','concat','isBlock','showPreviousChange','markerToData','removeClass','authors','ck-suggestion-preview-marker-','_setDistance','markers','code','highest','reconvertMarker','conversion','_makeModelFromViewString','revisionHistoryAttachChange','removeMarker:revision','catch','ck-suggestion-marker-','change','attachChange','pop','roots','diff','resolve','isSuggestion','_getDiff','upcast','ck-suggestion-marker-split','findIndex','insert','view','_changeView','previousPosition','suggestion','checkAttribute','add','commands','useFillerType','_setChanges','dataDowncast','markerRange','modelRange','_markMarkers','numberOfChanges','isEqual','execute','schema','ck-suggestion-preview-marker','sort','mapper','side','revision-end','toViewElement','pairId','endIndex','hasAttribute','downcastDispatcher','_changeIdToChange','markersEnd','isCollapsed','find','getChild','item','text','processor','editor','addMarker:revision-suggestion:insertion','vid_start','isAddSuggestion','start','get','isNavigationMode','indexOf','from','deletions','setAttribute','elementEnd','nextPosition','_initInteractions','_cleanUp','startsWith','toViewPosition','first','getAttributes','editingDowncast','unshift','elementToAttribute','createRange','model','_makeModelFromTape','createUIElement','removeAttribute','nodeAfter','attributesAfter','right','type','done','getRoot','_sortAndFilterDiffChanges','isEnabled','vid_end','isAtStart','_update','unbindElementFromMarkerName','isRemoved','element','_data','backward','bind','slice','markersStart','push','parent','_balloon','isLimit','consume','change:isEnabled','requires','getItems','addRoot','delete','children','change:isReady','isAtEnd','return','forEach','_getChangeFromId','suggestion:','data','viewItem','_getViewObj','then','domConverter','filter','pluginName','isAttached','_setConversion','_makeTape','split'];(function(_0x8d899f,_0x46c6c9){const _0x5cdb61=function(_0x2ab50a){while(--_0x2ab50a){_0x8d899f['push'](_0x8d899f['shift']());}};_0x5cdb61(++_0x46c6c9);}(_0x46c6,0x89));const _0x5cdb=function(_0x8d899f,_0x46c6c9){_0x8d899f=_0x8d899f-0x0;let _0x5cdb61=_0x46c6[_0x8d899f];return _0x5cdb61;};import{Plugin as _0x50c75e,Command as _0x3c0b4d}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x3dd3e4}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x4f489e}from'ckeditor5/src/ui.js';import{DocumentFragment as _0xb35c1b,Element as _0x5494c6,Text as _0xd8d479,ViewDocumentFragment as _0x33a8b0,ViewText as _0x391f6e,ViewElement as _0x391bfa,ViewContainerElement as _0x4ade49,ViewAttributeElement as _0x19021b,ViewEmptyElement as _0x2f1c34,ViewRawElement as _0x1d7908,ViewUIElement as _0x46d764}from'ckeditor5/src/engine.js';import{Users as _0x28b064,getMarkerDomElement as _0x386f63}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1e8ae2 from'./ui/revisionviewer/changedetailsview.js';import _0x154da7 from'./revisionsrepository.js';import _0x194294 from'./changeitem.js';import{default as _0x2536de}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x41a0f8}from'lodash-es';const tt={'c':_0x4ade49,'a':_0x19021b,'e':_0x2f1c34,'r':_0x1d7908,'u':_0x46d764};export default class d extends _0x50c75e{static get[_0x5cdb('0x91')](){return _0x5cdb('0xb1');}static get[_0x5cdb('0x80')](){return[_0x28b064,_0x4f489e,_0x154da7];}constructor(_0x12c054){super(_0x12c054),this[_0x5cdb('0x99')]=this[_0x5cdb('0x4c')][_0x5cdb('0xc5')][_0x5cdb('0x51')](_0x5cdb('0x0')),this[_0x5cdb('0xa3')]('activeChange',null),this['set'](_0x5cdb('0xc7'),null),this[_0x5cdb('0xfe')]=null,this['set'](_0x5cdb('0x21'),null),this[_0x5cdb('0xa3')]('isReady',!0x1),this[_0x5cdb('0xa3')](_0x5cdb('0x6e'),!0x0),this['on'](_0x5cdb('0x7f'),(_0x171bea,_0xdb8ce,_0x501736)=>{this['activeChange']=null,this[_0x5cdb('0xc7')]=null,this[_0x5cdb('0x4c')]['editing'][_0x5cdb('0x29')][_0x5cdb('0x1d')](_0x44786d=>{for(const _0x8292d4 of this['editor'][_0x5cdb('0xa0')][_0x5cdb('0x29')]['document'][_0x5cdb('0x20')])_0x501736?_0x44786d[_0x5cdb('0xf')](_0x5cdb('0xd6'),_0x8292d4):_0x44786d[_0x5cdb('0x9b')](_0x5cdb('0xd6'),_0x8292d4);});}),this['bind'](_0x5cdb('0x52'))['to'](this,'activeChange',_0x18d8ba=>null!==_0x18d8ba),this[_0x5cdb('0x77')]('currentChangeNumber')['to'](this,_0x5cdb('0xd0'),this,'diff',this,'activeChange',(_0x4f6787,_0x483ed7,_0x2667ea)=>_0x4f6787&&_0x2667ea?_0x483ed7[_0x5cdb('0x107')][_0x5cdb('0x109')](_0x2667ea):0x0),this[_0x5cdb('0x77')](_0x5cdb('0x36'))['to'](this,'isReady',this,_0x5cdb('0x21'),(_0x5e8824,_0x30142f)=>_0x5e8824?_0x30142f[_0x5cdb('0x107')]['length']:0x0),this[_0x5cdb('0x2a')]=null,this[_0x5cdb('0x44')]=new Map(),this[_0x5cdb('0xe1')]=null,this[_0x5cdb('0x7c')]=this[_0x5cdb('0x4c')][_0x5cdb('0xc5')][_0x5cdb('0x51')](_0x4f489e);}['init'](){const _0x20c310=this[_0x5cdb('0x4c')],_0x4a8884=new ShowChangeCommand(_0x20c310,{'direction':_0x5cdb('0x76')}),_0x2c4d3f=new ShowChangeCommand(_0x20c310,{'direction':_0x5cdb('0xec')});(_0x20c310[_0x5cdb('0x2f')][_0x5cdb('0x2e')](_0x5cdb('0xd'),_0x4a8884),_0x20c310[_0x5cdb('0x2f')]['add']('showNextChange',_0x2c4d3f),_0x20c310[_0x5cdb('0x2f')][_0x5cdb('0x2e')](_0x5cdb('0xbd'),new RestoreRevisionCommand(_0x20c310)),this['on']('change:numberOfChanges',()=>{_0x4a8884['refresh'](),_0x2c4d3f[_0x5cdb('0xfc')]();}),this[_0x5cdb('0x93')](),this[_0x5cdb('0x59')](),_0x20c310[_0x5cdb('0xa9')]('revision-viewer'),_0x20c310[_0x5cdb('0xc5')][_0x5cdb('0x8')]('WidgetToolbarRepository'))&&_0x20c310[_0x5cdb('0xc5')][_0x5cdb('0x51')](_0x5cdb('0xce'))['forceDisabled'](_0x5cdb('0xa7'));}async['getRevisionData'](_0x35d297){await this['loadRevisionData'](_0x35d297);const _0x516d64={};for(const _0x223207 in _0x35d297[_0x5cdb('0xf3')]){if(_0x35d297['diffData'][_0x223207][_0x5cdb('0x1e')]&&!_0x35d297[_0x5cdb('0xf3')][_0x223207]['attachChange']['isAttached'])continue;const _0x54b360=this['_removeRevisionMarkers'](JSON[_0x5cdb('0x11b')](_0x35d297[_0x5cdb('0xf3')][_0x223207][_0x5cdb('0xed')])),_0x47fc74=this[_0x5cdb('0x4c')][_0x5cdb('0xa0')][_0x5cdb('0x29')][_0x5cdb('0xc0')],_0x1ada10=new _0x33a8b0(_0x47fc74,_0x54b360['map'](_0x3a9181=>this[_0x5cdb('0x8d')](_0x3a9181)));this[_0x5cdb('0x4c')][_0x5cdb('0x8b')][_0x5cdb('0x4b')][_0x5cdb('0x30')](_0x5cdb('0xe6')),_0x516d64[_0x223207]=this[_0x5cdb('0x4c')]['data']['processor'][_0x5cdb('0x102')](_0x1ada10),this[_0x5cdb('0x4c')][_0x5cdb('0x8b')][_0x5cdb('0x4b')][_0x5cdb('0x30')](_0x5cdb('0xb9'));}return _0x516d64;}async['getRevisionRootsAttributes'](_0x2e8b32){await this[_0x5cdb('0xfb')](_0x2e8b32);const _0xe9f624={};for(const _0x41a2de in _0x2e8b32[_0x5cdb('0xf3')])_0x2e8b32['diffData'][_0x41a2de]['attachChange']&&!_0x2e8b32[_0x5cdb('0xf3')][_0x41a2de][_0x5cdb('0x1e')][_0x5cdb('0x92')]||(_0xe9f624[_0x41a2de]=_0x2e8b32[_0x5cdb('0xf3')][_0x41a2de][_0x5cdb('0x68')]||{});return _0xe9f624;}[_0x5cdb('0x6')](_0x2fec08){return(_0x2fec08=_0x2fec08[_0x5cdb('0x90')](_0x5600db=>!_0x5600db[_0x5cdb('0xb4')]||_0x5cdb('0xa8')!==_0x5600db['name']&&_0x5cdb('0x3e')!==_0x5600db[_0x5cdb('0xb4')]))[_0x5cdb('0x88')](_0x401bbb=>{_0x5cdb('0xac')!=typeof _0x401bbb&&(_0x401bbb[_0x5cdb('0x84')]=this[_0x5cdb('0x6')](_0x401bbb['children']),_0x401bbb['attributes']=_0x401bbb[_0x5cdb('0xfd')]['filter'](_0x328c65=>!_0x328c65[0x0][_0x5cdb('0x5b')]('data-revision-')));}),_0x2fec08;}async[_0x5cdb('0xf0')](_0x2eb2da,_0x138e9d,_0x55bbf3=!0x1){if(!this[_0x5cdb('0x6e')])return;const _0x1ac40f=this[_0x5cdb('0x21')],_0xb42647=this[_0x5cdb('0x99')],_0x142215=_0x5cdb('0xac')==typeof _0x2eb2da?_0xb42647[_0x5cdb('0xa2')](_0x2eb2da):_0x2eb2da,_0x169c64='string'==typeof _0x138e9d?_0xb42647['getRevision'](_0x138e9d):_0x138e9d,_0x7d50c0=_0x142215['id'],_0x4ca8be=_0x169c64?_0x169c64['id']:null;if(!_0x55bbf3&&this[_0x5cdb('0x21')]&&this[_0x5cdb('0x21')][_0x5cdb('0xdf')]===_0x7d50c0&&this['diff']['oldRevisionId']===_0x4ca8be)return Promise[_0x5cdb('0x22')]();this[_0x5cdb('0xd0')]=!0x1,this[_0x5cdb('0xc7')]=null,this[_0x5cdb('0x10e')]=null,this[_0x5cdb('0x21')]=new _0x2536de(_0x7d50c0,_0x4ca8be);const _0x405fc6=this[_0x5cdb('0xc8')](_0x142215,_0x169c64,!0x0)[_0x5cdb('0xba')](_0x9eebb3=>this['loadRevisionData'](_0x9eebb3));return _0x405fc6['push'](new Promise(_0x25a053=>{setTimeout(_0x25a053,0x14);})),Promise[_0x5cdb('0xd9')](_0x405fc6)['then'](()=>{if(!this[_0x5cdb('0x6e')])return;this[_0x5cdb('0x5a')]();const _0x9c37d2=this[_0x5cdb('0x24')](_0x7d50c0,_0x4ca8be);for(const _0x20f57e of _0x9c37d2['changes'])this[_0x5cdb('0x44')][_0x5cdb('0xa3')](_0x20f57e['id'],_0x20f57e);this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0x11a')]({'isUndoable':!0x1},_0x42a088=>{for(const _0x2327f4 of this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0xc0')][_0x5cdb('0xe0')]())_0x42a088[_0x5cdb('0xd1')](_0x2327f4);for(const _0x42ac97 of Object['keys'](_0x9c37d2['model'])){const _0x5de16b=_0x42a088[_0x5cdb('0x82')](_0x42ac97);for(const _0x22b7dc of Object['keys'](_0x9c37d2[_0x5cdb('0xfd')][_0x42ac97]))_0x42a088[_0x5cdb('0x56')](_0x22b7dc,_0x9c37d2[_0x5cdb('0xfd')][_0x42ac97][_0x22b7dc],_0x5de16b);_0x42a088[_0x5cdb('0x28')](_0x9c37d2[_0x5cdb('0x63')][_0x42ac97],_0x5de16b,0x0);}}),this['diff'][_0x5cdb('0x31')](this[_0x5cdb('0x6d')](_0x9c37d2[_0x5cdb('0x107')])),this[_0x5cdb('0xd0')]=!0x0;})[_0x5cdb('0x1b')](_0x5245d9=>{console[_0x5cdb('0x113')](_0x5245d9),this[_0x5cdb('0x5a')](),_0x1ac40f&&(this['diff']=_0x1ac40f),this[_0x5cdb('0xd0')]=!0x0;});}['addRevisionData'](_0x5065a9,_0x3976e9){const _0x3267cc=this[_0x5cdb('0x99')]['createRevision'](_0x5065a9);return _0x3267cc['on'](_0x5cdb('0x71'),(_0x1e4ce6,_0x4ba001,_0x149d11)=>_0x3976e9(_0x4ba001,_0x149d11,_0x3267cc)),this[_0x5cdb('0x99')]['addRevision'](_0x3267cc),_0x3267cc;}[_0x5cdb('0xfb')](_0x20ccc3){if(!_0x20ccc3||_0x20ccc3['diffData'])return Promise[_0x5cdb('0x22')]();{const _0x224e06=this[_0x5cdb('0x4c')][_0x5cdb('0xae')][_0x5cdb('0x51')](_0x5cdb('0xc9'));return this[_0x5cdb('0xe1')][_0x5cdb('0xa2')]({'channelId':_0x224e06,'revisionId':_0x20ccc3['id']})[_0x5cdb('0x8e')](_0x202270=>{_0x20ccc3['_update']({'diffData':_0x202270[_0x5cdb('0xf3')]},!0x0);});}}[_0x5cdb('0x5a')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x5cdb('0x2a')]&&this[_0x5cdb('0x2a')]['destroy'](),this[_0x5cdb('0x2a')]=null,this['_changeIdToChange']['clear'](),this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0x11a')]({'isUndoable':!0x1},_0x35efc9=>{for(const _0x21af09 of this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0xc0')][_0x5cdb('0xe0')]())_0x35efc9[_0x5cdb('0xd1')](_0x21af09);});}[_0x5cdb('0x6d')](_0x371012){const _0x4e1416=[],_0x2278da=new Map();for(const _0x370a95 of this[_0x5cdb('0x4c')][_0x5cdb('0x63')]['document']['getRootNames']()){const _0x5c5838=this[_0x5cdb('0x4c')][_0x5cdb('0xa0')][_0x5cdb('0x29')][_0x5cdb('0x1')](_0x370a95);if(!_0x5c5838)continue;const _0x3d2da5=_0x5c5838['getClientRects']()[_0x5cdb('0x49')](0x0);_0x3d2da5&&(_0x4e1416[_0x5cdb('0x7a')](_0x370a95),_0x2278da[_0x5cdb('0xa3')](_0x370a95,_0x3d2da5));}return _0x4e1416[_0x5cdb('0x3b')]((_0x21a9c4,_0x5f26d6)=>{const _0x106aa6=_0x2278da['get'](_0x21a9c4),_0x52844e=_0x2278da[_0x5cdb('0x51')](_0x5f26d6);return _0x106aa6['y']-_0x52844e['y']||_0x106aa6['x']-_0x52844e['x'];}),(_0x371012=_0x371012[_0x5cdb('0x90')](_0x24023c=>_0x4e1416[_0x5cdb('0x100')](_0x24023c['rootName'])))[_0x5cdb('0x3b')]((_0x46ffd1,_0x434b85)=>_0x4e1416[_0x5cdb('0x53')](_0x46ffd1['rootName'])-_0x4e1416[_0x5cdb('0x53')](_0x434b85['rootName'])),_0x371012;}[_0x5cdb('0x94')](_0x4807a8){const _0x330919=Array['from'](_0x4807a8['markers'])[_0x5cdb('0x90')](([_0x1344a5,_0x5bd769])=>_0x1344a5[_0x5cdb('0x5b')]('revision:')&&!_0x5bd769[_0x5cdb('0x46')]),_0x15f7a4=Array['from'](this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0x10f')](_0x4807a8)[_0x5cdb('0xe9')]({'singleCharacters':!0x0}));if(0x0!=_0x330919['length'])for(const _0x36247c of _0x15f7a4){const [_0x438957,_0x6f3449]=_0x330919[0x0],[,_0xf8cd50,_0x1d9b84]=_0x438957[_0x5cdb('0x95')](':');if(_0x6f3449[_0x5cdb('0xf8')][_0x5cdb('0x37')](_0x36247c[_0x5cdb('0x58')])&&_0x330919[_0x5cdb('0xf1')](),(_0x36247c[_0x5cdb('0x2b')][_0x5cdb('0x37')](_0x6f3449[_0x5cdb('0x50')])||_0x36247c[_0x5cdb('0x2b')]['isAfter'](_0x6f3449[_0x5cdb('0x50')]))&&(_0x5cdb('0xca')==_0xf8cd50?_0x36247c[_0x5cdb('0x101')]={'userId':_0x1d9b84}:'deletion'==_0xf8cd50&&(_0x36247c[_0x5cdb('0x73')]={'userId':_0x1d9b84})),0x0==_0x330919[_0x5cdb('0xa')])break;}return _0x15f7a4;}[_0x5cdb('0xad')](_0x1c026b){const _0x37b75a=new Map();for(let _0x402a80=0x0;_0x402a80<_0x1c026b[_0x5cdb('0xa')];_0x402a80++)_0x5cdb('0x4a')===_0x1c026b[_0x402a80]['type']?(_0x1c026b[_0x402a80][_0x5cdb('0x49')][_0x5cdb('0xa6')]=_0x402a80,_0x1c026b[_0x402a80][_0x5cdb('0x49')][_0x5cdb('0x41')]=_0x402a80):(_0x5cdb('0xb8')===_0x1c026b[_0x402a80]['type']?_0x1c026b[_0x402a80]['item'][_0x5cdb('0xa6')]=_0x402a80:_0x5cdb('0x57')===_0x1c026b[_0x402a80][_0x5cdb('0x6a')]&&(_0x1c026b[_0x402a80][_0x5cdb('0x49')][_0x5cdb('0x41')]=_0x402a80),_0x37b75a[_0x5cdb('0xa3')](_0x1c026b[_0x402a80]['id'],_0x402a80));for(const _0x1c23ab of _0x37b75a['values']())'elementStart'===_0x1c026b[_0x1c23ab][_0x5cdb('0x6a')]?_0x1c026b[_0x1c23ab][_0x5cdb('0x49')][_0x5cdb('0x41')]=_0x37b75a[_0x5cdb('0x51')](_0x1c026b[_0x1c23ab]['pairId']):_0x5cdb('0x57')===_0x1c026b[_0x1c23ab][_0x5cdb('0x6a')]&&(_0x1c026b[_0x1c23ab][_0x5cdb('0x49')][_0x5cdb('0xa6')]=_0x37b75a[_0x5cdb('0x51')](_0x1c026b[_0x1c23ab][_0x5cdb('0x40')]));}[_0x5cdb('0x3')](_0x10c823){for(let _0x2df0ca=0x0;_0x2df0ca<_0x10c823[_0x5cdb('0xa')];_0x2df0ca++){if(_0x5cdb('0xb8')===_0x10c823[_0x2df0ca][_0x5cdb('0x6a')])_0x10c823[_0x2df0ca][_0x5cdb('0x49')]['startIndex']=_0x2df0ca;else{if('elementEnd'===_0x10c823[_0x2df0ca][_0x5cdb('0x6a')]){_0x10c823[_0x2df0ca][_0x5cdb('0x49')][_0x5cdb('0x41')]=_0x2df0ca;const _0x529450=_0x10c823[_0x2df0ca][_0x5cdb('0x49')][_0x5cdb('0xa6')];_0x10c823[_0x529450][_0x5cdb('0x40')]=_0x10c823[_0x2df0ca]['id'],_0x10c823[_0x2df0ca][_0x5cdb('0x40')]=_0x10c823[_0x529450]['id'];}else _0x10c823[_0x2df0ca][_0x5cdb('0x49')][_0x5cdb('0xa6')]=_0x2df0ca,_0x10c823[_0x2df0ca]['item'][_0x5cdb('0x41')]=_0x2df0ca,_0x10c823[_0x2df0ca][_0x5cdb('0x40')]=null;}_0x10c823[_0x2df0ca][_0x5cdb('0x79')]||(_0x10c823[_0x2df0ca][_0x5cdb('0x79')]=[],_0x10c823[_0x2df0ca][_0x5cdb('0x45')]=[]);}}[_0x5cdb('0x9d')](_0x99bae0,_0x434128){const _0x52b772=_0x99bae0['filter'](_0x53749c=>!_0x53749c[_0x5cdb('0x101')]);for(let _0x53c6de=0x0;_0x53c6de<_0x434128[_0x5cdb('0xa')];_0x53c6de++)_0x434128[_0x53c6de][_0x5cdb('0x101')]&&(_0x52b772[_0x53c6de][_0x5cdb('0x101')]=_0x434128[_0x53c6de][_0x5cdb('0x101')]);}[_0x5cdb('0x18')](_0x1042c1){const _0x233fb1=JSON['parse'](_0x1042c1),_0x328066=this[_0x5cdb('0x4c')][_0x5cdb('0xa0')]['view'][_0x5cdb('0xc0')],_0x362b4d=new _0x33a8b0(_0x328066,_0x233fb1[_0x5cdb('0xba')](_0x3f3c15=>this[_0x5cdb('0x8d')](_0x3f3c15)));return this[_0x5cdb('0x4c')][_0x5cdb('0x8b')][_0x5cdb('0xab')](_0x362b4d);}[_0x5cdb('0x8d')](_0x5057d4){const _0x76b3b1=this[_0x5cdb('0x4c')]['editing'][_0x5cdb('0x29')][_0x5cdb('0xc0')];if(_0x5cdb('0xac')==typeof _0x5057d4)return new _0x391f6e(_0x76b3b1,_0x5057d4);{const _0x204ece=_0x5057d4['children'][_0x5cdb('0xba')](_0x5b38be=>this[_0x5cdb('0x8d')](_0x5b38be));return new(tt[_0x5057d4[(_0x5cdb('0x6a'))]]||_0x391bfa)(_0x76b3b1,_0x5057d4[_0x5cdb('0xb4')],_0x5057d4[_0x5cdb('0xfd')],_0x204ece);}}[_0x5cdb('0x24')](_0x42b0ff,_0x3ed8e6=null){const _0x35fdb9=this['repository'][_0x5cdb('0xa2')](_0x42b0ff),_0x594d4e=_0x3ed8e6?this[_0x5cdb('0x99')]['getRevision'](_0x3ed8e6):null,_0x2c9b7c=this[_0x5cdb('0xc8')](_0x35fdb9,_0x594d4e),_0x58ea8d=_0x2c9b7c[_0x2c9b7c[_0x5cdb('0xa')]-0x1],_0x298444=new Map(),_0x4acc3a={'model':{},'attributes':{},'changes':[]},_0x1fd7e1=new Set(),_0x51b19f=new Map();for(let _0x5248a2=_0x2c9b7c[_0x5cdb('0xa')]-0x1;_0x5248a2>=0x0;_0x5248a2--){const _0x463641=_0x2c9b7c[_0x5248a2];for(const _0x44755e of Object['keys'](_0x463641[_0x5cdb('0xf3')]))if(_0x463641[_0x5cdb('0xf3')][_0x44755e][_0x5cdb('0x1e')]){const _0x1595b0=_0x463641['diffData'][_0x44755e][_0x5cdb('0x1e')];_0x1595b0[_0x5cdb('0x92')]?(_0x1fd7e1[_0x5cdb('0x2e')](_0x44755e),_0x51b19f[_0x5cdb('0x8')](_0x44755e)&&_0x51b19f['get'](_0x44755e)[_0x5cdb('0xde')]==_0x1595b0[_0x5cdb('0xde')]?_0x51b19f[_0x5cdb('0x83')](_0x44755e):_0x51b19f[_0x5cdb('0xa3')](_0x44755e,_0x1595b0)):_0x51b19f[_0x5cdb('0x8')](_0x44755e)?(_0x1fd7e1[_0x5cdb('0x83')](_0x44755e),_0x51b19f[_0x5cdb('0x83')](_0x44755e)):(_0x1fd7e1['add'](_0x44755e),_0x51b19f[_0x5cdb('0xa3')](_0x44755e,_0x1595b0));}else _0x1fd7e1[_0x5cdb('0x2e')](_0x44755e);}for(const _0x160a78 of _0x1fd7e1){const _0x4f0f57=_0x51b19f[_0x5cdb('0x8')](_0x160a78)&&!_0x51b19f[_0x5cdb('0x51')](_0x160a78)[_0x5cdb('0x92')];let _0x356df6=_0x4f0f57?_0x2c9b7c[_0x5cdb('0xa')]-0x1:0x0;const _0x47829f=_0x4f0f57?-0x1:0x1;for(;_0x2c9b7c[_0x356df6];){const _0x4b43aa=_0x2c9b7c[_0x356df6];if(_0x4b43aa['diffData'][_0x160a78]){const _0x315c69=_0x4f0f57?_0x4b43aa['diffData'][_0x160a78][_0x5cdb('0x9')]:_0x4b43aa[_0x5cdb('0xf3')][_0x160a78][_0x5cdb('0x68')];_0x4acc3a[_0x5cdb('0xfd')][_0x160a78]=_0x315c69?_0x41a0f8(_0x315c69):{};break;}_0x356df6+=_0x47829f;}}for(const _0x40bc07 of _0x2c9b7c){_0x40bc07['model']={};for(const _0x2fba90 of _0x40bc07[_0x5cdb('0x10')])_0x298444[_0x5cdb('0xa3')](_0x2fba90['id'],_0x2fba90);for(const _0x499ea0 of _0x1fd7e1){const _0xd682b5=_0x40bc07[_0x5cdb('0xf3')][_0x499ea0]?_0x40bc07[_0x5cdb('0xf3')][_0x499ea0][_0x5cdb('0xed')]:'[]',_0x2d6fe6=_0x40bc07[_0x5cdb('0xf3')][_0x499ea0]?_0x40bc07['diffData'][_0x499ea0][_0x5cdb('0x55')]:'[]';_0x40bc07[_0x5cdb('0x63')][_0x499ea0]={'insertions':this[_0x5cdb('0x18')](_0xd682b5),'deletions':this[_0x5cdb('0x18')](_0x2d6fe6)};}}for(const _0x3b9180 of _0x1fd7e1){let _0x58ab81=null,_0x3e7782=0x0;const _0x3a6b2e=new Map(Array[_0x5cdb('0x54')](_0x35fdb9[_0x5cdb('0x63')][_0x3b9180]['insertions'][_0x5cdb('0x13')])[_0x5cdb('0x90')](([_0x2ac73a])=>!_0x2ac73a['startsWith'](_0x5cdb('0xee'))));let _0x3f0028=0x0;for(const _0x3e1ea6 of _0x2c9b7c){const _0x2fb3e6=this[_0x5cdb('0x94')](_0x3e1ea6[_0x5cdb('0x63')][_0x3b9180]['insertions']);_0x3e1ea6==_0x35fdb9?(_0x58ab81=_0x2fb3e6,_0x3e7782=_0x58ab81[_0x5cdb('0xa')],_0x58ab81[_0x5cdb('0x88')](_0xf46ef7=>{_0xf46ef7['id']=_0x3f0028++;}),this['_processTape'](_0x58ab81)):this[_0x5cdb('0x9d')](_0x58ab81,_0x2fb3e6);const _0x3ece06=_0x58ab81[_0x5cdb('0x90')](_0x271e0b=>!_0x271e0b[_0x5cdb('0x101')])[_0x5cdb('0xba')](_0x256937=>_0x256937['id']);let _0x325e62=0x0;const _0x2d0d5d=this[_0x5cdb('0x94')](_0x3e1ea6[_0x5cdb('0x63')][_0x3b9180][_0x5cdb('0x55')]);_0x2d0d5d[_0x5cdb('0x88')](_0x3f3fe6=>{_0x3f3fe6[_0x5cdb('0x73')]?_0x3f3fe6['id']=_0x3e7782++:_0x3f3fe6['id']=_0x3ece06[_0x325e62++];}),this['_processTape'](_0x2d0d5d),this['_setDistance'](_0x58ab81,_0x5cdb('0x101')),this['_setDistance'](_0x2d0d5d,'isRemoved'),_0x3e1ea6==_0x35fdb9&&this[_0x5cdb('0x35')](_0x58ab81,_0x3a6b2e),_0x58ab81=this[_0x5cdb('0x10d')](_0x58ab81,_0x2d0d5d),this[_0x5cdb('0xad')](_0x58ab81),this[_0x5cdb('0x12')](_0x58ab81,_0x5cdb('0x73'));}_0x58ab81=_0x58ab81[_0x5cdb('0x90')](_0x162eaa=>!(_0x162eaa['isAdded']&&_0x162eaa['isRemoved']));const _0xd5b778=new Map(_0x58ea8d[_0x5cdb('0x63')][_0x3b9180]['deletions']['markers']),_0xb1b5e4=new Set(_0x3a6b2e[_0x5cdb('0xb2')]());for(const _0x203a18 of _0xd5b778['keys']())_0xb1b5e4[_0x5cdb('0x83')](_0x203a18);this[_0x5cdb('0xdd')](_0x58ab81,_0xb1b5e4),this[_0x5cdb('0x114')](_0x58ab81),_0x58ab81=this[_0x5cdb('0xe4')](_0x58ab81),_0x58ab81=this[_0x5cdb('0xf6')](_0x58ab81),_0x58ab81=this[_0x5cdb('0x105')](_0x58ab81);const {root:_0x164172,changes:_0x7716b7}=this[_0x5cdb('0x64')](_0x58ab81,_0x298444,_0x3b9180);_0x4acc3a['model'][_0x3b9180]=_0x164172;const _0x1e4d54=_0x51b19f[_0x5cdb('0x51')](_0x3b9180);if(_0x1e4d54){const _0x56ad70=_0x298444[_0x5cdb('0x51')](_0x1e4d54[_0x5cdb('0xde')]),_0x28972a=new _0x194294({'author':_0x56ad70,'type':_0x1e4d54['isAttached']?_0x5cdb('0x2e'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3b9180});_0x7716b7[_0x5cdb('0x60')](_0x28972a),_0x4acc3a[_0x5cdb('0xfd')][_0x3b9180][_0x5cdb('0x19')]=_0x28972a['id'];}_0x4acc3a[_0x5cdb('0x107')]=_0x4acc3a[_0x5cdb('0x107')][_0x5cdb('0xb')](_0x7716b7);}return _0x4acc3a;}['_markMarkers'](_0x57490a,_0x308337){for(let _0x3e3804=0x0;_0x3e3804<_0x57490a[_0x5cdb('0xa')];_0x3e3804++)for(const [_0x11c032,_0x4838ad]of _0x308337)_0x4838ad[_0x5cdb('0x50')][_0x5cdb('0x37')](_0x57490a[_0x3e3804][_0x5cdb('0x2b')])&&_0x57490a[_0x3e3804][_0x5cdb('0x79')][_0x5cdb('0x7a')](_0x11c032),_0x4838ad[_0x5cdb('0xf8')][_0x5cdb('0x37')](_0x57490a[_0x3e3804]['nextPosition'])&&_0x57490a[_0x3e3804]['markersEnd'][_0x5cdb('0x7a')](_0x11c032);}[_0x5cdb('0x10d')](_0x221764,_0x2f379e){let _0x34b532=[],_0xd40d53=0x0,_0x12fc3a=0x0;for(;_0xd40d53<_0x221764[_0x5cdb('0xa')]||_0x12fc3a<_0x2f379e['length'];){const _0x24c432=_0x221764[_0xd40d53]||{},_0x37784c=_0x2f379e[_0x12fc3a]||{};if(_0x24c432['id']==_0x37784c['id'])_0xd40d53++,_0x12fc3a++,_0x34b532['push'](_0x24c432);else{if(_0x37784c[_0x5cdb('0x73')]&&_0x24c432[_0x5cdb('0x101')]){const {commonTape:_0x3f0afb,iEnd:_0x2f1abf,jEnd:_0x1ad120}=this[_0x5cdb('0x103')](_0x221764,_0xd40d53,_0x2f379e,_0x12fc3a);_0x34b532=_0x34b532[_0x5cdb('0xb')](_0x3f0afb),_0xd40d53=_0x2f1abf,_0x12fc3a=_0x1ad120;}else _0x37784c['isRemoved']?(_0x12fc3a++,_0x34b532[_0x5cdb('0x7a')](_0x37784c)):(_0xd40d53++,_0x34b532[_0x5cdb('0x7a')](_0x24c432));}}return _0x34b532;}[_0x5cdb('0xdd')](_0x528ad8,_0x4b9e06){const _0x131bf4=[];for(let _0x5db291=0x0;_0x5db291<_0x528ad8['length'];_0x5db291++){for(let _0x5c9921=0x0;_0x5c9921<_0x528ad8[_0x5db291][_0x5cdb('0x79')][_0x5cdb('0xa')];_0x5c9921++){const _0x31d76b=_0x528ad8[_0x5db291]['markersStart'][_0x5c9921];if(!_0x4b9e06[_0x5cdb('0x8')](_0x31d76b))continue;const {group:_0xf2905b,type:_0x312c6d,authorId:_0x12deaa}=_0x301c7d(_0x31d76b);_0x5cdb('0xbe')!=_0xf2905b||_0x5cdb('0xca')!=_0x312c6d&&_0x5cdb('0x111')!=_0x312c6d||(_0x131bf4[_0x5cdb('0x60')]({'type':_0x312c6d,'name':_0x31d76b,'userId':_0x12deaa}),_0x528ad8[_0x5db291][_0x5cdb('0x79')][_0x5cdb('0xd2')](_0x5c9921,0x1),_0x5c9921--);}_0xb01169(_0x528ad8[_0x5db291]);for(let _0x231bc6=0x0;_0x231bc6<_0x528ad8[_0x5db291][_0x5cdb('0x45')][_0x5cdb('0xa')];_0x231bc6++){const _0x7a5efc=_0x528ad8[_0x5db291][_0x5cdb('0x45')][_0x231bc6];if(!_0x4b9e06[_0x5cdb('0x8')](_0x7a5efc))continue;const {group:_0x335c4e,type:_0x2c815b}=_0x301c7d(_0x7a5efc);if(_0x5cdb('0xbe')!=_0x335c4e||_0x5cdb('0xca')!=_0x2c815b&&_0x5cdb('0x111')!=_0x2c815b)continue;_0x528ad8[_0x5db291][_0x5cdb('0x45')]['splice'](_0x231bc6,0x1),_0x231bc6--;const _0x38d4fe=_0x131bf4[_0x5cdb('0x27')](_0x28f91d=>_0x28f91d[_0x5cdb('0xb4')]==_0x7a5efc);_0x38d4fe>-0x1&&_0x131bf4[_0x5cdb('0xd2')](_0x38d4fe,0x1);}}function _0x301c7d(_0x5271a9){const _0x45f887=_0x5271a9[_0x5cdb('0x95')](':');return{'group':_0x45f887[0x0],'type':_0x45f887[0x1],'subType':_0x45f887[_0x5cdb('0xa')]>=0x5?_0x45f887[0x2]:null,'id':_0x45f887['length']<0x5?_0x45f887[0x2]:_0x45f887[0x3],'authorId':_0x45f887['length']<0x5?_0x45f887[0x3]:_0x45f887[0x4],'markerCount':0x6==_0x45f887[_0x5cdb('0xa')]?_0x45f887[0x5]:null};}function _0xb01169(_0x50fecf){for(let _0x3b9d1a=0x0;_0x3b9d1a<_0x131bf4[_0x5cdb('0xa')];_0x3b9d1a++){if(_0x50fecf['isAdded']&&'insertion'==_0x131bf4[_0x3b9d1a][_0x5cdb('0x6a')])return _0x50fecf[_0x5cdb('0x4f')]=_0x131bf4[_0x3b9d1a],void delete _0x50fecf[_0x5cdb('0x101')];if(!_0x50fecf['isAdded']&&!_0x50fecf[_0x5cdb('0x73')]&&'deletion'==_0x131bf4[_0x3b9d1a][_0x5cdb('0x6a')])return void(_0x50fecf[_0x5cdb('0x116')]=_0x131bf4[_0x3b9d1a]);}}}['_setDistance'](_0x392c36,_0x25a712){let _0x54ae0a=0x0,_0x1819d9=!0x1;const _0x4d531c=new Map();for(const _0x5a3f2e of _0x392c36)_0x5a3f2e[_0x25a712]?_0x1819d9&&(_0x54ae0a++,_0x1819d9=!0x1):(_0x54ae0a++,_0x1819d9=!0x0),_0x4d531c[_0x5cdb('0xa3')](_0x5a3f2e['id'],_0x54ae0a);for(let _0x373429=0x0;_0x373429<_0x392c36[_0x5cdb('0xa')];_0x373429++){if('isRemoved'==_0x25a712&&_0x392c36[_0x373429]['isAdded']||_0x5cdb('0x101')==_0x25a712&&_0x392c36[_0x373429][_0x5cdb('0x73')])continue;if(_0x5cdb('0x4a')==_0x392c36[_0x373429][_0x5cdb('0x6a')]){_0x392c36[_0x373429]['distance']=0x0;continue;}const _0x3ef414=_0x4d531c[_0x5cdb('0x51')](_0x392c36[_0x373429][_0x5cdb('0x40')]),_0x3c7379=_0x4d531c['get'](_0x392c36[_0x373429]['id']);_0x392c36[_0x373429][_0x5cdb('0x9c')]=_0x3ef414-_0x3c7379;}}[_0x5cdb('0xc8')](_0x2ed7ee,_0x409657,_0x5d231e=!0x1){const _0x123c9d=[];let _0x254ad8=this['repository'][_0x5cdb('0x109')](_0x2ed7ee),_0x5e5d94=this['repository'][_0x5cdb('0x109')](_0x409657);for(-0x1==_0x5e5d94&&(_0x5e5d94=this[_0x5cdb('0x99')][_0x5cdb('0xd7')][_0x5cdb('0xa')],_0x5d231e=!0x1);_0x254ad8<_0x5e5d94;)_0x123c9d[_0x5cdb('0x7a')](this[_0x5cdb('0x99')][_0x5cdb('0xa2')](_0x254ad8)),_0x254ad8++;return _0x5d231e&&_0x123c9d[_0x5cdb('0x7a')](this[_0x5cdb('0x99')][_0x5cdb('0xa2')](_0x254ad8)),_0x123c9d;}['_threeWayMerge'](_0xe258f7,_0x23f0c2,_0x220432,_0x47c00d){const _0x321840=this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0x39')];let _0x41c44c=_0x23f0c2;for(;_0xe258f7[_0x41c44c]&&_0xe258f7[_0x41c44c][_0x5cdb('0x101')];)_0x41c44c++;let _0x1404f9=_0x47c00d;for(;_0x220432[_0x1404f9]&&_0x220432[_0x1404f9][_0x5cdb('0x73')];)_0x1404f9++;_0x284da7(_0xe258f7,_0x23f0c2,_0x41c44c),_0x284da7(_0x220432,_0x47c00d,_0x1404f9);const _0xdcc5a=_0x220432[_0x5cdb('0x78')](_0x47c00d,_0x1404f9)[_0x5cdb('0xb')](_0xe258f7[_0x5cdb('0x78')](_0x23f0c2,_0x41c44c));return _0xdcc5a[_0x5cdb('0x3b')]((_0x251c26,_0x58a04f)=>_0x251c26[_0x5cdb('0x3d')]!=_0x58a04f[_0x5cdb('0x3d')]?_0x251c26[_0x5cdb('0x3d')]-_0x58a04f['side']:_0x251c26[_0x5cdb('0xa1')]!=_0x58a04f[_0x5cdb('0xa1')]?_0x251c26[_0x5cdb('0xa1')]-_0x58a04f[_0x5cdb('0xa1')]:_0x251c26['distance']!=_0x58a04f[_0x5cdb('0x9c')]?_0x58a04f['distance']-_0x251c26['distance']:!!_0x251c26['isAdded']!=!!_0x58a04f[_0x5cdb('0x101')]?-0x1==_0x251c26['side']||0x0==_0x251c26[_0x5cdb('0x3d')]?_0x251c26[_0x5cdb('0x101')]?-0x1:0x1:_0x251c26[_0x5cdb('0x101')]?0x1:-0x1:_0x251c26[_0x5cdb('0xf9')]-_0x58a04f[_0x5cdb('0xf9')]),{'commonTape':_0xdcc5a,'iEnd':_0x41c44c,'jEnd':_0x1404f9};function _0x284da7(_0x1220b8,_0x206462,_0xb409a5){let _0x463fdd=-0x1,_0x119fa1=Number['POSITIVE_INFINITY'],_0x461791=!0x0;for(let _0x6f2432=_0x206462;_0x6f2432<_0xb409a5;_0x6f2432++)if(_0x321840[_0x5cdb('0x97')](_0x1220b8[_0x6f2432][_0x5cdb('0x49')])||(_0x461791=!0x1),_0x1220b8[_0x6f2432][_0x5cdb('0x49')][_0x5cdb('0xa6')]<_0x206462&&(_0x463fdd=_0x6f2432),_0x1220b8[_0x6f2432][_0x5cdb('0x49')][_0x5cdb('0x41')]>=_0xb409a5){_0x119fa1=_0x6f2432;break;}_0x461791&&(_0x463fdd=_0xb409a5-0x1);for(let _0x2ca5dd=_0x206462;_0x2ca5dd<_0xb409a5;_0x2ca5dd++)_0x1220b8[_0x2ca5dd][_0x5cdb('0x3d')]=_0x2ca5dd<=_0x463fdd?-0x1:_0x2ca5dd<_0x119fa1?0x0:0x1,_0x1220b8[_0x2ca5dd][_0x5cdb('0xf9')]=_0x2ca5dd;let _0x35f843=0x0;for(let _0x5a7481=_0x206462;_0x5a7481<=_0x463fdd;_0x5a7481++)0x0==_0x1220b8[_0x5a7481]['distance']?_0x1220b8[_0x5a7481][_0x5cdb('0xa1')]=_0x35f843:(_0x35f843++,_0x1220b8[_0x5a7481][_0x5cdb('0xa1')]=_0x35f843,_0x35f843++);for(let _0x1c30e7=_0x206462;_0x1c30e7<_0xb409a5;_0x1c30e7++)0x0==_0x1220b8[_0x1c30e7][_0x5cdb('0x3d')]&&(_0x1220b8[_0x1c30e7][_0x5cdb('0xa1')]=_0x35f843);_0x35f843=0x0;for(let _0x370839=_0xb409a5-0x1;_0x370839>=_0x119fa1;_0x370839--)0x0==_0x1220b8[_0x370839][_0x5cdb('0x9c')]?_0x1220b8[_0x370839][_0x5cdb('0xa1')]=_0x35f843:(_0x35f843--,_0x1220b8[_0x370839][_0x5cdb('0xa1')]=_0x35f843,_0x35f843--);}}[_0x5cdb('0x114')](_0x17af7e){const _0x318c5c=new Map(),_0xe2055=this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0x39')];for(let _0x1cb78d=0x1;_0x1cb78d<_0x17af7e['length'];_0x1cb78d++){let _0x23b7a9,_0x43352f,_0x29e5c8;const _0x4636e2=_0x17af7e[_0x1cb78d],_0xa6a423=_0x17af7e[_0x1cb78d-0x1];if(_0x5cdb('0x4a')==_0x4636e2['type'])continue;if(_0x4636e2[_0x5cdb('0x6a')]!=_0xa6a423[_0x5cdb('0x6a')])continue;if(!_0xe2055[_0x5cdb('0xc')](_0xa6a423[_0x5cdb('0x49')])||_0xe2055[_0x5cdb('0x7d')](_0xa6a423[_0x5cdb('0x49')]))continue;if(!_0xe2055[_0x5cdb('0xc')](_0x4636e2['item'])||_0xe2055[_0x5cdb('0x7d')](_0x4636e2['item']))continue;if((_0x17af7e[_0x1cb78d][_0x5cdb('0x101')]||_0x17af7e[_0x1cb78d][_0x5cdb('0x4f')])&&_0x17af7e[_0x1cb78d-0x1][_0x5cdb('0x73')])_0x23b7a9=_0x17af7e[_0x1cb78d],_0x43352f=_0x17af7e[_0x1cb78d-0x1],_0x29e5c8=_0x1cb78d-0x1;else{if(!_0x17af7e[_0x1cb78d][_0x5cdb('0x73')]||!_0x17af7e[_0x1cb78d-0x1][_0x5cdb('0x101')]&&!_0x17af7e[_0x1cb78d-0x1][_0x5cdb('0x4f')])continue;_0x23b7a9=_0x17af7e[_0x1cb78d-0x1],_0x43352f=_0x17af7e[_0x1cb78d],_0x29e5c8=_0x1cb78d;}const _0x1522ea=_0x23b7a9[_0x5cdb('0xa1')]==_0x43352f['level'],_0x18e334=Math['abs'](_0x23b7a9['level'])<Math['abs'](_0x43352f[_0x5cdb('0xa1')])&&0x0==_0x43352f[_0x5cdb('0x9c')];(_0x1522ea||_0x18e334)&&(_0x318c5c['set'](_0x43352f['id'],_0x23b7a9['id']),_0x17af7e['splice'](_0x29e5c8,0x1),_0x1cb78d--,_0x23b7a9[_0x5cdb('0x101')]=!0x1);}for(let _0x4a6140=0x0;_0x4a6140<_0x17af7e['length'];_0x4a6140++)_0x318c5c[_0x5cdb('0x8')](_0x17af7e[_0x4a6140][_0x5cdb('0x40')])&&(_0x17af7e[_0x4a6140][_0x5cdb('0x40')]=_0x318c5c[_0x5cdb('0x51')](_0x17af7e[_0x4a6140][_0x5cdb('0x40')]));}['_removeMissingPairs'](_0x3fd097){const _0x193835=new Set(_0x3fd097[_0x5cdb('0xba')](_0x297130=>_0x297130['id']));for(let _0x3711f5=0x0;_0x3711f5<_0x3fd097[_0x5cdb('0xa')];_0x3711f5++)_0x193835[_0x5cdb('0x8')](_0x3fd097[_0x3711f5][_0x5cdb('0x40')])||0x0==_0x3fd097[_0x3711f5][_0x5cdb('0x9c')]||(_0x3fd097[_0x3711f5][_0x5cdb('0x11c')]=!0x0);return _0x3fd097['filter'](_0x58fb2c=>!_0x58fb2c[_0x5cdb('0x11c')]);}['_markMismatchedRemovedTags'](_0x42fcf1){const _0x50f5a2=new Set();for(let _0x47d3f8=0x0;_0x47d3f8<_0x42fcf1[_0x5cdb('0xa')];_0x47d3f8++){if(_0x50f5a2['has'](_0x42fcf1[_0x47d3f8]['id'])&&_0x42fcf1[_0x47d3f8]['isRemoved']&&(_0x42fcf1[_0x47d3f8][_0x5cdb('0x11c')]=!0x0),_0x42fcf1[_0x47d3f8][_0x5cdb('0x11c')])continue;if(0x0==_0x42fcf1[_0x47d3f8][_0x5cdb('0x9c')])continue;if(_0x5cdb('0xb8')!=_0x42fcf1[_0x47d3f8][_0x5cdb('0x6a')])continue;if(null==_0x42fcf1[_0x47d3f8][_0x5cdb('0x40')])continue;let _0x4ec4df=_0x47d3f8+0x1,_0x20bf9e=0x0;for(;_0x42fcf1[_0x4ec4df]['id']!=_0x42fcf1[_0x47d3f8][_0x5cdb('0x40')];)'elementStart'==_0x42fcf1[_0x4ec4df][_0x5cdb('0x6a')]?_0x20bf9e++:'elementEnd'==_0x42fcf1[_0x4ec4df][_0x5cdb('0x6a')]&&_0x20bf9e--,_0x4ec4df++;if(0x0!=_0x20bf9e){if(_0x42fcf1[_0x47d3f8][_0x5cdb('0x73')])_0x42fcf1[_0x47d3f8][_0x5cdb('0x11c')]=!0x0;else for(;_0x4ec4df!=_0x47d3f8;)_0x42fcf1[_0x4ec4df]['isRemoved']&&0x0!=_0x42fcf1[_0x4ec4df]['distance']&&(_0x42fcf1[_0x4ec4df][_0x5cdb('0x11c')]=!0x0,_0x50f5a2[_0x5cdb('0x2e')](_0x42fcf1[_0x4ec4df]['pairId'])),_0x4ec4df--;}}return _0x42fcf1[_0x5cdb('0x90')](_0x1e91d2=>!_0x1e91d2[_0x5cdb('0x11c')]);}[_0x5cdb('0x105')](_0xfcda19){const _0x1c5805=this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0x39')];for(let _0x21c0ee=0x0;_0x21c0ee<_0xfcda19[_0x5cdb('0xa')];_0x21c0ee++){if(!(_0xfcda19[_0x21c0ee][_0x5cdb('0x101')]||_0xfcda19[_0x21c0ee][_0x5cdb('0x4f')]||_0xfcda19[_0x21c0ee][_0x5cdb('0x73')]||_0xfcda19[_0x21c0ee][_0x5cdb('0x116')]))continue;if(0x0==_0xfcda19[_0x21c0ee][_0x5cdb('0x9c')])continue;const _0x6d2a1a=_0xfcda19[_0x21c0ee]['item'];_0x1c5805['isBlock'](_0x6d2a1a)||_0x1c5805[_0x5cdb('0x7d')](_0x6d2a1a)||(_0xfcda19[_0x21c0ee]['isAdded']&&delete _0xfcda19[_0x21c0ee][_0x5cdb('0x101')],_0xfcda19[_0x21c0ee]['isAddSuggestion']&&delete _0xfcda19[_0x21c0ee][_0x5cdb('0x4f')],_0xfcda19[_0x21c0ee][_0x5cdb('0x116')]&&delete _0xfcda19[_0x21c0ee][_0x5cdb('0x116')],_0xfcda19[_0x21c0ee][_0x5cdb('0x73')]&&(_0xfcda19[_0x21c0ee]['isIncorrect']=!0x0));}return _0xfcda19['filter'](_0x4d51de=>!_0x4d51de[_0x5cdb('0x11c')]);}['_makeModelFromTape'](_0x2583a7,_0xe113dc,_0x4cbb7f){const _0x3fedc9=new _0xb35c1b(),_0x1f941b=[],_0x1aba21=new Map(),_0x54cca9=this[_0x5cdb('0x4c')][_0x5cdb('0x63')],_0x1f0cdb=_0x54cca9[_0x5cdb('0x39')],_0x4bc1ac=[_0x3fedc9],_0xcf11ff={},_0x446f42={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x307d0c=null;const _0x137ea5=[0x0];for(let _0x22b633=0x0;_0x22b633<_0x2583a7['length'];_0x22b633++){let _0x43f6f7,_0x26b185;if('elementStart'===_0x2583a7[_0x22b633][_0x5cdb('0x6a')]){_0x43f6f7=_0x54cca9['createPositionFromPath'](_0x3fedc9,_0x137ea5);const _0x25e69f=new _0x5494c6(_0x2583a7[_0x22b633][_0x5cdb('0x49')][_0x5cdb('0xb4')],_0x2583a7[_0x22b633][_0x5cdb('0x49')]['getAttributes']());_0x4bc1ac[0x0]['_appendChild'](_0x25e69f),_0x137ea5[_0x5cdb('0x7a')](0x0),_0x4bc1ac['unshift'](_0x25e69f),_0x26b185=_0x54cca9['createPositionFromPath'](_0x3fedc9,_0x137ea5),_0x307d0c=null;}else{if(_0x5cdb('0x57')===_0x2583a7[_0x22b633][_0x5cdb('0x6a')])_0x4bc1ac[_0x5cdb('0xf1')](),_0x43f6f7=_0x54cca9[_0x5cdb('0x9e')](_0x3fedc9,_0x137ea5),_0x137ea5[_0x5cdb('0x1f')](),_0x137ea5[_0x137ea5[_0x5cdb('0xa')]-0x1]++,_0x26b185=_0x54cca9[_0x5cdb('0x9e')](_0x3fedc9,_0x137ea5),_0x307d0c=null;else{if(_0x43f6f7=_0x54cca9[_0x5cdb('0x9e')](_0x3fedc9,_0x137ea5),_0x307d0c&&_0x54e0cd(_0x307d0c,_0x2583a7[_0x22b633][_0x5cdb('0x49')]))_0x307d0c[_0x5cdb('0x75')]+=_0x2583a7[_0x22b633]['item'][_0x5cdb('0x8b')];else{const _0x2188b2=new _0xd8d479(_0x2583a7[_0x22b633][_0x5cdb('0x49')][_0x5cdb('0x8b')],_0x2583a7[_0x22b633][_0x5cdb('0x49')]['getAttributes']());_0x4bc1ac[0x0][_0x5cdb('0xf4')](_0x2188b2),_0x307d0c=_0x2188b2;}_0x137ea5[_0x137ea5[_0x5cdb('0xa')]-0x1]+=_0x2583a7[_0x22b633][_0x5cdb('0x49')][_0x5cdb('0xaf')],_0x26b185=_0x54cca9[_0x5cdb('0x9e')](_0x3fedc9,_0x137ea5);}}for(const _0x5351ef of _0x2583a7[_0x22b633][_0x5cdb('0x79')])_0x1aba21[_0x5cdb('0xa3')](_0x5351ef,{'start':_0x43f6f7,'end':null});_0x2ac742(_0x5cdb('0x116'),_0x22b633,_0x43f6f7,_0x26b185),_0x2ac742(_0x5cdb('0x4f'),_0x22b633,_0x43f6f7,_0x26b185),_0x2ac742(_0x5cdb('0x73'),_0x22b633,_0x43f6f7,_0x26b185),_0x2ac742('isAdded',_0x22b633,_0x43f6f7,_0x26b185);for(const _0x5b2cab of _0x2583a7[_0x22b633][_0x5cdb('0x45')]){_0x1aba21[_0x5cdb('0x51')](_0x5b2cab)[_0x5cdb('0xf8')]=_0x26b185;}}for(const [_0x497472,_0x471057]of _0x1aba21){const _0x3f76f4=this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0x62')](_0x471057[_0x5cdb('0x50')],_0x471057[_0x5cdb('0xf8')]);_0x3fedc9[_0x5cdb('0x13')][_0x5cdb('0xa3')](_0x497472,_0x3f76f4);}return _0x1f941b[_0x5cdb('0x3b')]((_0x44f921,_0x49d0e4)=>{const _0x44283d=_0x3fedc9[_0x5cdb('0x13')][_0x5cdb('0x51')](_0x5cdb('0xee')+_0x44f921['id']),_0x3e83d5=_0x3fedc9[_0x5cdb('0x13')][_0x5cdb('0x51')](_0x5cdb('0xee')+_0x49d0e4['id']);return _0x44283d[_0x5cdb('0x50')]['isBefore'](_0x3e83d5[_0x5cdb('0x50')])?-0x1:_0x44283d['start'][_0x5cdb('0x104')](_0x3e83d5[_0x5cdb('0x50')])?0x1:_0x44283d[_0x5cdb('0xf8')][_0x5cdb('0xbb')](_0x3e83d5[_0x5cdb('0xf8')])?-0x1:_0x44283d[_0x5cdb('0xf8')][_0x5cdb('0x104')](_0x3e83d5['end'])?0x1:_0x5cdb('0x2e')===_0x44f921[_0x5cdb('0x6a')]?-0x1:0x1;}),{'root':_0x3fedc9,'changes':_0x1f941b};function _0x2ac742(_0x22290b,_0x616f89,_0x4fd004,_0x19fefe){const _0x583ecb=!!_0x2583a7[_0x616f89][_0x22290b],_0x5e5783=_0x583ecb?_0x2583a7[_0x616f89][_0x22290b]['userId']:null,_0x193519=_0x616f89===_0x2583a7[_0x5cdb('0xa')]-0x1,_0x645990=_0x446f42[_0x22290b][0x0],_0x5e18a0=_0x1f0cdb['isObject'](_0x2583a7[_0x616f89][_0x5cdb('0x49')]);!_0xcf11ff[_0x22290b]&&_0x583ecb?_0xcf11ff[_0x22290b]={'start':_0x4fd004,'tapeItem':_0x2583a7[_0x616f89],'userId':_0x5e5783,'type':_0x22290b}:_0xcf11ff[_0x22290b]&&!_0x583ecb?(_0xcf11ff[_0x22290b][_0x5cdb('0xf8')]=_0x4fd004,_0x56edff(_0xcf11ff[_0x22290b]),_0xcf11ff[_0x22290b]=null):_0xcf11ff[_0x22290b]&&_0x583ecb&&_0xcf11ff[_0x22290b][_0x5cdb('0xde')]!==_0x5e5783&&(_0xcf11ff[_0x22290b][_0x5cdb('0xf8')]=_0x4fd004,_0x645990&&_0x645990[_0x5cdb('0xde')]===_0xcf11ff[_0x22290b]['userId']||_0x56edff(_0xcf11ff[_0x22290b]),_0xcf11ff[_0x22290b]={'start':_0x4fd004,'tapeItem':_0x2583a7[_0x616f89],'userId':_0x5e5783,'type':_0x22290b}),_0xcf11ff[_0x22290b]&&_0x5e18a0&&(_0x5cdb('0xb8')!==_0x2583a7[_0x616f89][_0x5cdb('0x6a')]||_0x645990&&_0x645990[_0x5cdb('0xde')]===_0x5e5783||_0x446f42[_0x22290b][_0x5cdb('0x60')]({'userId':_0x5e5783,'object':_0x2583a7[_0x616f89]['item'],'change':_0xcf11ff[_0x22290b]}),_0x5cdb('0x57')===_0x2583a7[_0x616f89][_0x5cdb('0x6a')]&&_0x645990&&_0x645990['object']===_0x2583a7[_0x616f89][_0x5cdb('0x49')]&&(_0x446f42[_0x22290b][_0x5cdb('0xf1')](),_0xcf11ff[_0x22290b]=_0x645990[_0x5cdb('0x1d')])),_0xcf11ff[_0x22290b]&&_0x193519&&(_0xcf11ff[_0x22290b][_0x5cdb('0xf8')]=_0x19fefe,_0x56edff(_0xcf11ff[_0x22290b]),_0xcf11ff[_0x22290b]=null);}function _0x56edff({start:_0x43579a,end:_0x39a689,tapeItem:_0x4a44e6,userId:_0x5284e3,type:_0x3cd4f0}){const _0x12e526=_0x4a44e6[_0x5cdb('0x49')],_0x4629e4=_0x54cca9[_0x5cdb('0x39')][_0x5cdb('0xc')](_0x12e526)&&!_0x54cca9['schema'][_0x5cdb('0x7d')](_0x12e526),_0x30ba3c=_0x43579a[_0x5cdb('0x67')]==_0x39a689[_0x5cdb('0x7b')]&&_0x39a689[_0x5cdb('0x70')];if(_0x4629e4&&_0x30ba3c)return;const _0xffb96b=_0x54cca9[_0x5cdb('0x62')](_0x43579a,_0x39a689),_0x578511=_0xe113dc[_0x5cdb('0x51')](_0x5284e3),_0x32942f=new _0x194294({'author':_0x578511,'type':_0x5cdb('0x101')==_0x3cd4f0||_0x5cdb('0x4f')==_0x3cd4f0?_0x5cdb('0x2e'):_0x5cdb('0x96'),'data':{'isSuggestion':_0x5cdb('0x4f')==_0x3cd4f0||_0x5cdb('0x116')==_0x3cd4f0},'createdAt':new Date(),'rootName':_0x4cbb7f});_0x1f941b[_0x5cdb('0x7a')](_0x32942f),_0x3fedc9['markers'][_0x5cdb('0xa3')](_0x5cdb('0xee')+_0x32942f['id'],_0xffb96b);}function _0x54e0cd(_0x50f200,_0x232d1b){const _0x58af47=_0x50f200[_0x5cdb('0x5e')](),_0x11da2f=_0x232d1b['getAttributes']();for(const _0x36191a of _0x58af47){if(_0x36191a[0x1]!==_0x232d1b[_0x5cdb('0xcb')](_0x36191a[0x0]))return!0x1;_0x11da2f['next']();}return _0x11da2f[_0x5cdb('0xe5')]()[_0x5cdb('0x6b')];}}[_0x5cdb('0x93')](){this[_0x5cdb('0x4c')][_0x5cdb('0x17')]['for']('upcast')[_0x5cdb('0x10c')]({'view':_0x5cdb('0xc4')}),this[_0x5cdb('0x4c')][_0x5cdb('0x17')][_0x5cdb('0xeb')](_0x5cdb('0x5f'))[_0x5cdb('0xe7')]({'model':_0x5cdb('0xc4'),'view':_0x3294ef=>{const _0x18ad91=_0x3294ef[_0x5cdb('0x119')][_0x5cdb('0x95')](':')[0x1],_0x3940e5=this[_0x5cdb('0x89')](_0x18ad91);if(!_0x3940e5)return null;const _0x4acace='add'==_0x3940e5[_0x5cdb('0x6a')]?_0x5cdb('0xca'):_0x5cdb('0x111'),_0x4cb8f8=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4acace];return _0x3940e5[_0x5cdb('0x8b')][_0x5cdb('0x23')]&&_0x4cb8f8[_0x5cdb('0x7a')](_0x5cdb('0x1c')+_0x4acace+_0x5cdb('0xb3')),this[_0x5cdb('0x10e')]==_0x3940e5&&_0x4cb8f8[_0x5cdb('0x7a')](_0x5cdb('0xb6')),{'classes':_0x4cb8f8,'attributes':{'data-change-id':_0x18ad91}};}}),this[_0x5cdb('0x4c')][_0x5cdb('0x17')][_0x5cdb('0xeb')]('upcast')[_0x5cdb('0x2e')](_0x3b818e=>{_0x3b818e['on'](_0x5cdb('0x108'),(_0x53155b,_0x482c5d,_0x6e89c1)=>{const _0x3018af=_0x482c5d[_0x5cdb('0x8c')][_0x5cdb('0x48')](0x0);if(!_0x3018af||!_0x3018af['is'](_0x5cdb('0x74'),_0x5cdb('0x14')))return;if(!_0x6e89c1[_0x5cdb('0x98')][_0x5cdb('0x7e')](_0x3018af,{'attributes':[_0x5cdb('0x4e'),_0x5cdb('0x6f')]}))return;const _0x313f4b=_0x482c5d['modelRange'][_0x5cdb('0x50')]['nodeAfter'];_0x6e89c1['writer'][_0x5cdb('0x56')](_0x5cdb('0x4e'),_0x3018af['getAttribute']('vid_start'),_0x313f4b),_0x6e89c1[_0x5cdb('0xe3')]['setAttribute'](_0x5cdb('0x6f'),_0x3018af[_0x5cdb('0xcb')]('vid_end'),_0x313f4b);},{'priority':_0x5cdb('0xe8')});}),this['editor']['conversion']['for'](_0x5cdb('0x25'))[_0x5cdb('0x2e')](_0x18e3b0=>{_0x18e3b0['on'](_0x5cdb('0x74'),(_0x4423c0,_0x4fe2fa,_0x59a3cf)=>{if(!_0x59a3cf['consumable'][_0x5cdb('0x7e')](_0x4fe2fa[_0x5cdb('0x8c')],{'attributes':[_0x5cdb('0x4e'),'vid_end']}))return;if(_0x4fe2fa['modelRange']['isCollapsed'])return;const _0x34147c=_0x4fe2fa[_0x5cdb('0x34')][_0x5cdb('0x50')]['nodeAfter'];_0x34147c[_0x5cdb('0x42')](_0x5cdb('0x4e'))||_0x34147c['hasAttribute'](_0x5cdb('0xc1'))||(_0x59a3cf[_0x5cdb('0xe3')][_0x5cdb('0x56')](_0x5cdb('0x4e'),_0x4fe2fa[_0x5cdb('0x8c')][_0x5cdb('0xcb')]('vid_start'),_0x34147c),_0x59a3cf[_0x5cdb('0xe3')][_0x5cdb('0x56')](_0x5cdb('0x6f'),_0x4fe2fa[_0x5cdb('0x8c')][_0x5cdb('0xcb')]('vid_end'),_0x34147c));},{'priority':_0x5cdb('0xe8')});}),this['editor']['conversion'][_0x5cdb('0xeb')](_0x5cdb('0x25'))[_0x5cdb('0x61')]({'view':{'name':_0x5cdb('0xef'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x558422=>_0x558422['getAttribute'](_0x5cdb('0xc1'))}}),this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0x39')]['on'](_0x5cdb('0x2d'),(_0x4985e3,[,_0xf2965d])=>{['vid_start',_0x5cdb('0x6f'),'vid']['includes'](_0xf2965d)&&(_0x4985e3[_0x5cdb('0x87')]=!0x0,_0x4985e3[_0x5cdb('0xd5')]());},{'priority':'highest'}),this['editor'][_0x5cdb('0x17')][_0x5cdb('0xeb')]('dataDowncast')[_0x5cdb('0x2e')](_0xb88380=>{_0xb88380['on']('attribute:vid',(_0xa52c95,_0xe52413,_0x3b7a51)=>{if('\x20'!=_0xe52413[_0x5cdb('0x49')][_0x5cdb('0x8b')]||_0xe52413['item'][_0x5cdb('0x7b')]['maxOffset']>0x1)return;if(!_0x3b7a51[_0x5cdb('0x98')][_0x5cdb('0x7e')](_0xe52413[_0x5cdb('0x49')],_0xa52c95['name']))return;const _0x1c6030=_0x3b7a51[_0x5cdb('0xe3')],_0x33b533=_0x3b7a51[_0x5cdb('0x3c')]['toViewRange'](_0xe52413[_0x5cdb('0xbc')]);_0x1c6030[_0x5cdb('0x11e')](_0x33b533,_0x1c6030['createAttributeElement'](_0x5cdb('0xef')));});}),this[_0x5cdb('0x4c')][_0x5cdb('0x17')][_0x5cdb('0xeb')]('dataDowncast')['markerToData']({'model':_0x5cdb('0xc4')}),this[_0x5cdb('0x4c')][_0x5cdb('0xa0')]['downcastDispatcher']['on'](_0x5cdb('0x11d'),function(_0x11df94){const _0x248ef0=_0x11df94[_0x5cdb('0xc5')][_0x5cdb('0x51')](_0x5cdb('0xb1'));return(_0x185fcd,_0x2f9c91,_0x1bcadb)=>{const _0x5632c3=_0x2f9c91[_0x5cdb('0x119')][_0x5cdb('0x95')](':')[0x1],_0x4399dc=_0x248ef0[_0x5cdb('0x89')](_0x5632c3);if(!_0x4399dc)return null;const _0xdfbbbd='add'==_0x4399dc[_0x5cdb('0x6a')]?'split':_0x5cdb('0xd4');if(!_0x1bcadb['consumable'][_0x5cdb('0xcd')](_0x2f9c91[_0x5cdb('0x33')],_0x185fcd[_0x5cdb('0xb4')]))return;const _0x607637=_0x2f9c91[_0x5cdb('0x33')][_0x5cdb('0xe9')](),_0x5f336f=_0x2f9c91[_0x5cdb('0x33')]['start'],_0x3b5683=_0x11df94['model'][_0x5cdb('0x39')];let _0x432bd5=null,_0x8c96b0=null,_0x3bf881=!0x1,_0x2dacee=!0x1;for(const _0x4d12ba of _0x607637){const _0x1c15f7=_0x4d12ba['item'];_0x3bf881=_0x3bf881||_0x3b5683[_0x5cdb('0x9f')](_0x1c15f7);const _0x392b38=_0x1bcadb[_0x5cdb('0x3c')]['toViewElement'](_0x1c15f7);if(_0x392b38&&_0x392b38[_0x5cdb('0xa5')](_0x5cdb('0xc2')))return;_0x5cdb('0x57')==_0x4d12ba['type']&&(_0x3b5683['isBlock'](_0x1c15f7)&&!_0x3b5683['isLimit'](_0x1c15f7)&&(_0x1c15f7[_0x5cdb('0x10a')]||_0x5f336f[_0x5cdb('0x86')]?_0x432bd5&&_0x432bd5[_0x5cdb('0x7b')]==_0x1c15f7||(_0x432bd5=_0x1c15f7,_0x268cd6(_0x4d12ba['previousPosition']),_0x2dacee=!0x0):_0x8c96b0=_0x8c96b0||_0x4d12ba[_0x5cdb('0x2b')]));}function _0x268cd6(_0x5b9264){const _0x1fc63=_0x1bcadb[_0x5cdb('0xe3')][_0x5cdb('0x65')](_0x5cdb('0xef'),{'class':_0x5cdb('0x1c')+_0xdfbbbd}),_0x44367f=_0x1bcadb[_0x5cdb('0x3c')][_0x5cdb('0x5c')](_0x5b9264);_0x4399dc[_0x5cdb('0x8b')][_0x5cdb('0x23')]&&_0x1bcadb[_0x5cdb('0xe3')][_0x5cdb('0x9b')](_0x5cdb('0x1c')+_0xdfbbbd+_0x5cdb('0xb3'),_0x1fc63),_0x248ef0[_0x5cdb('0x10e')]==_0x4399dc&&_0x1bcadb[_0x5cdb('0xe3')]['addClass'](_0x5cdb('0xb6'),_0x1fc63),_0x1bcadb[_0x5cdb('0xe3')][_0x5cdb('0x28')](_0x44367f,_0x1fc63),_0x1bcadb['mapper'][_0x5cdb('0x106')](_0x1fc63,_0x2f9c91[_0x5cdb('0x119')]);}_0x3bf881||_0x2dacee||!_0x8c96b0||_0x268cd6(_0x8c96b0);};}(this[_0x5cdb('0x4c')]),{'priority':_0x5cdb('0xd3')}),this[_0x5cdb('0x4c')][_0x5cdb('0xa0')][_0x5cdb('0x43')]['on'](_0x5cdb('0x1a'),(_0x6e3831,_0x526b0c,_0x1d209a)=>{const _0x563abc=_0x1d209a[_0x5cdb('0x3c')][_0x5cdb('0x7')](_0x526b0c[_0x5cdb('0x119')]);if(_0x563abc)for(const _0x1d299e of _0x563abc)(_0x1d299e[_0x5cdb('0xf2')](_0x5cdb('0x26'))||_0x1d299e[_0x5cdb('0xf2')](_0x5cdb('0xea')))&&(_0x1d209a['mapper'][_0x5cdb('0x72')](_0x1d299e,_0x526b0c[_0x5cdb('0x119')]),_0x1d209a[_0x5cdb('0xe3')][_0x5cdb('0x96')](_0x1d299e));},{'priority':_0x5cdb('0xd3')}),this[_0x5cdb('0x4c')]['editing'][_0x5cdb('0x43')]['on'](_0x5cdb('0x11d'),(_0x38d301,_0x2ab406,_0x5a5f93)=>{const _0x385b06=_0x2ab406[_0x5cdb('0x119')][_0x5cdb('0x95')](':')[0x1],_0x4a9606=this['_getChangeFromId'](_0x385b06);if(!_0x4a9606)return null;const _0x268bf9=_0x5cdb('0x2e')==_0x4a9606[_0x5cdb('0x6a')]?_0x5cdb('0x95'):_0x5cdb('0xd4');if(_0x5a5f93[_0x5cdb('0x98')][_0x5cdb('0xcd')](_0x2ab406[_0x5cdb('0x33')],_0x38d301[_0x5cdb('0xb4')]))for(const _0x511e44 of _0x2ab406[_0x5cdb('0x33')][_0x5cdb('0x81')]()){if(!_0x511e44['is'](_0x5cdb('0x74'),'softBreak'))continue;const _0x47de27=_0x5a5f93[_0x5cdb('0xe3')][_0x5cdb('0x65')](_0x5cdb('0xef'),{'class':'ck-suggestion-marker-'+_0x268bf9}),_0x4e8b47=_0x5a5f93['mapper'][_0x5cdb('0x5c')](this[_0x5cdb('0x4c')][_0x5cdb('0x63')]['createPositionBefore'](_0x511e44));_0x4a9606[_0x5cdb('0x8b')]['isSuggestion']&&_0x5a5f93['writer']['addClass'](_0x5cdb('0x1c')+_0x268bf9+_0x5cdb('0xb3'),_0x47de27),this[_0x5cdb('0x10e')]==_0x4a9606&&_0x5a5f93[_0x5cdb('0xe3')][_0x5cdb('0x9b')](_0x5cdb('0xb6'),_0x47de27),_0x5a5f93[_0x5cdb('0xe3')][_0x5cdb('0x28')](_0x4e8b47,_0x47de27),_0x5a5f93[_0x5cdb('0x3c')][_0x5cdb('0x106')](_0x47de27,_0x2ab406[_0x5cdb('0x119')]);}},{'priority':_0x5cdb('0xd3')}),this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0xc0')]['on'](_0x5cdb('0x1d'),()=>{this[_0x5cdb('0x4c')][_0x5cdb('0xa0')][_0x5cdb('0x29')][_0x5cdb('0x1d')](_0x57f8d6=>{for(const _0x5f46f1 of this['editor'][_0x5cdb('0x63')][_0x5cdb('0xc0')][_0x5cdb('0xe0')]()){const _0x49b9bb=this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0xc0')][_0x5cdb('0x6c')](_0x5f46f1),_0x33d282=this[_0x5cdb('0x4c')][_0x5cdb('0xa0')][_0x5cdb('0x29')][_0x5cdb('0xc0')][_0x5cdb('0x6c')](_0x5f46f1);if(_0x33d282){const _0x4d4c34=_0x49b9bb[_0x5cdb('0xcb')]('revisionHistoryAttachChange');if(_0x57f8d6[_0x5cdb('0x66')](_0x5cdb('0xb7'),_0x33d282),_0x57f8d6['removeClass'](_0x5cdb('0x115'),_0x33d282),_0x57f8d6['removeClass'](_0x5cdb('0xe2'),_0x33d282),_0x57f8d6[_0x5cdb('0xf')]('ck-revision-history-root--active',_0x33d282),_0x4d4c34){const _0x56b856=this[_0x5cdb('0x89')](_0x4d4c34);if(!_0x56b856)return null;_0x57f8d6['setAttribute'](_0x5cdb('0xb7'),_0x4d4c34,_0x33d282),_0x57f8d6[_0x5cdb('0x9b')](_0x5cdb('0xdc')+_0x56b856['type'],_0x33d282),this[_0x5cdb('0x10e')]==_0x56b856&&_0x57f8d6['addClass'](_0x5cdb('0xcc'),_0x33d282);}}}});}),this[_0x5cdb('0x4c')]['conversion']['for'](_0x5cdb('0x25'))[_0x5cdb('0x10c')]({'view':'comment','model':_0x5ce392=>_0x5cdb('0xb0')+_0x5ce392,'converterPriority':_0x5cdb('0x15')}),this[_0x5cdb('0x4c')]['conversion'][_0x5cdb('0xeb')]('upcast')[_0x5cdb('0x10c')]({'view':_0x5cdb('0x2c'),'model':_0x4abb26=>'revision-suggestion:'+_0x4abb26,'converterPriority':_0x5cdb('0x15')}),this[_0x5cdb('0x4c')]['conversion'][_0x5cdb('0xeb')](_0x5cdb('0x32'))[_0x5cdb('0xe')]({'model':'revision-suggestion','view':_0x3824c3=>({'name':_0x5cdb('0x8a')+_0x3824c3,'group':_0x5cdb('0xbe')}),'converterPriority':_0x5cdb('0x15')}),this[_0x5cdb('0x4c')][_0x5cdb('0x17')]['for'](_0x5cdb('0x5f'))[_0x5cdb('0xe7')]({'model':'revision-suggestion','view':_0x1ed3a3=>{const _0x5b5b11=_0x1ed3a3[_0x5cdb('0x119')]['split'](':')[0x1];return _0x5cdb('0xca')!=_0x5b5b11&&_0x5cdb('0x111')!=_0x5b5b11?null:{'classes':[_0x5cdb('0x3a'),_0x5cdb('0x11')+_0x5b5b11]};}}),this[_0x5cdb('0x4c')][_0x5cdb('0xa0')][_0x5cdb('0x43')]['on']('addMarker:revision-suggestion:deletion',et(this['editor'],_0x5cdb('0xd4')),{'priority':_0x5cdb('0xd3')}),this[_0x5cdb('0x4c')][_0x5cdb('0xa0')][_0x5cdb('0x43')]['on'](_0x5cdb('0x4d'),et(this['editor'],_0x5cdb('0x95')),{'priority':_0x5cdb('0xd3')}),this[_0x5cdb('0x4c')][_0x5cdb('0xa0')][_0x5cdb('0x43')]['on']('removeMarker:revision-suggestion',(_0x37cfb5,_0xe9eb78,_0x264a23)=>{const _0x3e32dc=_0x264a23[_0x5cdb('0x3c')][_0x5cdb('0x7')](_0xe9eb78[_0x5cdb('0x119')]);if(_0x3e32dc)for(const _0x2913b0 of _0x3e32dc)_0x2913b0['is'](_0x5cdb('0xdb'))&&(_0x264a23['mapper'][_0x5cdb('0x72')](_0x2913b0,_0xe9eb78[_0x5cdb('0x119')]),_0x264a23[_0x5cdb('0xe3')][_0x5cdb('0x96')](_0x2913b0));},{'priority':_0x5cdb('0xd3')});}[_0x5cdb('0x89')](_0x3344d5){return this[_0x5cdb('0x44')]['get'](_0x3344d5);}[_0x5cdb('0x4')](_0x46999b){return this['_changeView']&&this['_changeView']['destroy'](),this[_0x5cdb('0x2a')]=new _0x1e8ae2(this[_0x5cdb('0x4c')][_0x5cdb('0xc6')],_0x46999b),this[_0x5cdb('0x2a')];}[_0x5cdb('0x59')](){this['editor'][_0x5cdb('0x63')]['document'][_0x5cdb('0xaa')][_0x5cdb('0xb5')](_0x5cdb('0xc4')),this['on'](_0x5cdb('0x118'),(_0x31c699,_0xdeb926,_0x478fda,_0x3b2d29)=>{_0x3b2d29&&this[_0x5cdb('0x7c')][_0x5cdb('0x96')](_0x3b2d29),_0x478fda&&(this[_0x5cdb('0x7c')][_0x5cdb('0x2e')]({'view':_0x478fda,'stackId':_0x5cdb('0x110'),'position':{'target':()=>{const _0x5eeb34=this[_0x5cdb('0x4c')][_0x5cdb('0xa0')],_0x86c3e6=this[_0x5cdb('0x89')](_0x478fda['changeId']);let _0x416d70;if(_0x86c3e6['data']['isOnRoot']){const _0x254dfc=_0x5eeb34[_0x5cdb('0x29')][_0x5cdb('0x1')](_0x86c3e6[_0x5cdb('0xbf')]);_0x416d70=Array[_0x5cdb('0x54')](_0x254dfc['getClientRects']());}else{const _0x857060=this[_0x5cdb('0x4c')][_0x5cdb('0x63')]['markers']['get'](_0x5cdb('0xee')+_0x478fda[_0x5cdb('0xd8')]);_0x416d70=Array[_0x5cdb('0x54')](_0x5eeb34[_0x5cdb('0x3c')]['markerNameToElements'](_0x857060['name']))[_0x5cdb('0xba')](_0x111126=>_0x5eeb34[_0x5cdb('0x29')][_0x5cdb('0x8f')]['mapViewToDom'](_0x111126))[_0x5cdb('0xba')](_0x11fb8c=>Array[_0x5cdb('0x54')](_0x11fb8c['getClientRects']()))[_0x5cdb('0xff')]();}if(!this[_0x5cdb('0xfe')])return _0x416d70[0x0];return _0x416d70[_0x5cdb('0x47')](_0x5b16a8=>_0x5b16a8[_0x5cdb('0x117')]-0x3<=this[_0x5cdb('0xfe')]['y']&&_0x5b16a8['bottom']+0x3>=this[_0x5cdb('0xfe')]['y']&&_0x5b16a8[_0x5cdb('0xda')]-0x3<=this['_activeViewTarget']['x']&&_0x5b16a8[_0x5cdb('0x69')]+0x3>=this[_0x5cdb('0xfe')]['x'])||_0x416d70[0x0];}}}),this[_0x5cdb('0x7c')][_0x5cdb('0x2')](_0x5cdb('0x110')));}),this['on']('change:activeChange',(_0x1e044c,_0x4be967,_0x343951,_0x5dd066)=>{this[_0x5cdb('0xc7')]=_0x343951?this[_0x5cdb('0x4')](_0x343951):null,this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0x1d')](()=>{const _0x4fc92a=this[_0x5cdb('0x4c')][_0x5cdb('0xa0')];_0x5dd066&&(_0x5dd066[_0x5cdb('0x8b')][_0x5cdb('0xcf')]?_0x4fc92a[_0x5cdb('0x29')][_0x5cdb('0x1d')](_0x29830b=>{_0x29830b[_0x5cdb('0xf')](_0x5cdb('0xcc'),_0x4fc92a[_0x5cdb('0x29')][_0x5cdb('0xc0')]['getRoot'](_0x5dd066['rootName']));}):_0x4fc92a[_0x5cdb('0x16')](_0x5cdb('0xee')+_0x5dd066['id'])),_0x343951&&(_0x343951[_0x5cdb('0x8b')][_0x5cdb('0xcf')]?_0x4fc92a[_0x5cdb('0x29')][_0x5cdb('0x1d')](_0x2239c1=>{_0x2239c1['addClass']('ck-revision-history-root--active',_0x4fc92a[_0x5cdb('0x29')][_0x5cdb('0xc0')]['getRoot'](_0x343951[_0x5cdb('0xbf')]));}):_0x4fc92a[_0x5cdb('0x16')](_0x5cdb('0xee')+_0x343951['id']));});}),this[_0x5cdb('0xf5')](this[_0x5cdb('0x4c')][_0x5cdb('0xa0')][_0x5cdb('0x29')]['document'],_0x5cdb('0xc3'),(_0x3855c6,_0x419b3d)=>{if(this[_0x5cdb('0x10e')])return;const _0x953958=this[_0x5cdb('0x9a')](_0x419b3d[_0x5cdb('0x10b')]),_0x13e2e3=this[_0x5cdb('0x44')][_0x5cdb('0x51')](_0x953958);_0x13e2e3?(this['_activeViewTarget']={'x':_0x419b3d[_0x5cdb('0x5')]['x'],'y':_0x419b3d[_0x5cdb('0x5')]['y']},this['activeView']=this[_0x5cdb('0x4')](_0x13e2e3)):(this[_0x5cdb('0xfe')]=null,this[_0x5cdb('0xc7')]=null);}),this[_0x5cdb('0xf5')](this['editor'][_0x5cdb('0xa0')][_0x5cdb('0x29')][_0x5cdb('0xc0')],_0x5cdb('0xfa'),(_0x5277f0,_0x277e47)=>{const _0x3d9c06=this[_0x5cdb('0x9a')](_0x277e47[_0x5cdb('0x10b')]),_0x517f3d=this['_changeIdToChange'][_0x5cdb('0x51')](_0x3d9c06);_0x517f3d?(this['_activeViewTarget']={'x':_0x277e47['domEvent']['x'],'y':_0x277e47[_0x5cdb('0x5')]['y']},_0x517f3d===this['activeChange']?this[_0x5cdb('0x7c')]['updatePosition']():this[_0x5cdb('0x10e')]=_0x517f3d):(this[_0x5cdb('0xfe')]=null,this[_0x5cdb('0x10e')]=null);});}[_0x5cdb('0x9a')](_0x4177bb){do{const _0x50955f=_0x4177bb[_0x5cdb('0xcb')](_0x5cdb('0xb7'));if(_0x50955f)return _0x50955f;_0x4177bb=_0x4177bb[_0x5cdb('0x7b')];}while(_0x4177bb);return null;}['_cleanMarkers'](){this[_0x5cdb('0x4c')][_0x5cdb('0x63')][_0x5cdb('0x1d')](_0xcb46f0=>{for(const _0x45ff92 of this['editor'][_0x5cdb('0x63')]['markers'])_0xcb46f0['removeMarker'](_0x45ff92);});}}function et(_0x3e48f2,_0x57f9b5){return(_0x2d4bc6,_0x32c00c,_0x142450)=>{if(!_0x142450[_0x5cdb('0x98')][_0x5cdb('0xcd')](_0x32c00c['markerRange'],_0x2d4bc6[_0x5cdb('0xb4')]))return;const _0x25c8f9=_0x32c00c[_0x5cdb('0x33')][_0x5cdb('0xe9')](),_0x3c89d7=_0x32c00c[_0x5cdb('0x33')][_0x5cdb('0x50')],_0x3db9b2=_0x3e48f2['model']['schema'];let _0x3f4e22=null,_0x43aa21=null,_0x5b1e0d=!0x1,_0x5574f1=!0x1;for(const _0x25dc74 of _0x25c8f9){const _0x164db4=_0x25dc74[_0x5cdb('0x49')];_0x5b1e0d=_0x5b1e0d||_0x3db9b2[_0x5cdb('0x9f')](_0x164db4);const _0x5d7cf5=_0x142450[_0x5cdb('0x3c')][_0x5cdb('0x3f')](_0x164db4);if(_0x5d7cf5&&_0x5d7cf5[_0x5cdb('0xa5')](_0x5cdb('0xc2')))return;_0x5cdb('0x57')==_0x25dc74[_0x5cdb('0x6a')]&&(_0x3db9b2['isBlock'](_0x164db4)&&!_0x3db9b2['isLimit'](_0x164db4)&&(_0x164db4[_0x5cdb('0x10a')]||_0x3c89d7[_0x5cdb('0x86')]?_0x3f4e22&&_0x3f4e22[_0x5cdb('0x7b')]==_0x164db4||(_0x3f4e22=_0x164db4,_0x4d1436(_0x25dc74['previousPosition']),_0x5574f1=!0x0):_0x43aa21=_0x43aa21||_0x25dc74[_0x5cdb('0x2b')]));}function _0x4d1436(_0x1bdff0){const _0x3c3fba=_0x142450[_0x5cdb('0x3c')][_0x5cdb('0x5c')](_0x1bdff0),_0xe52f0e=_0x142450[_0x5cdb('0xe3')][_0x5cdb('0x65')](_0x5cdb('0xef'),{'class':_0x5cdb('0x11')+_0x57f9b5});_0x142450[_0x5cdb('0xe3')][_0x5cdb('0x28')](_0x3c3fba,_0xe52f0e),_0x142450['mapper'][_0x5cdb('0x106')](_0xe52f0e,_0x32c00c[_0x5cdb('0x119')]);}_0x5b1e0d||_0x5574f1||!_0x43aa21||_0x4d1436(_0x43aa21);};}export class RestoreRevisionCommand extends _0x3c0b4d{constructor(_0x2cff39){super(_0x2cff39);const _0x1ddd58=_0x2cff39[_0x5cdb('0xc5')][_0x5cdb('0x51')](d);this[_0x5cdb('0xf7')]=!0x1,this[_0x5cdb('0xf5')](_0x1ddd58,_0x5cdb('0x85'),()=>this['refresh']()),this[_0x5cdb('0xf5')](_0x1ddd58,_0x5cdb('0x7f'),()=>this['refresh']());}[_0x5cdb('0x38')](){const _0x2904f1=this[_0x5cdb('0x4c')],_0x1bf35b=_0x2904f1[_0x5cdb('0xc5')][_0x5cdb('0x51')](d),_0x1e1e0a=_0x1bf35b['isReady']?_0x1bf35b[_0x5cdb('0x21')][_0x5cdb('0xdf')]:null;_0x2904f1['config'][_0x5cdb('0x51')]('revisionHistory')[_0x5cdb('0xa4')](_0x1e1e0a);}['refresh'](){const {isReady:_0x370191,isEnabled:_0x3a34ca}=this[_0x5cdb('0x4c')]['plugins'][_0x5cdb('0x51')](d);this['isEnabled']=_0x370191&&_0x3a34ca;}}export class ShowChangeCommand extends _0x3c0b4d{constructor(_0x5745f5,{direction:_0x4c1ba1}){super(_0x5745f5);const _0x31590e=_0x5745f5[_0x5cdb('0xc5')][_0x5cdb('0x51')](d);this['affectsData']=!0x1,this[_0x5cdb('0x112')]=_0x5cdb('0xec')===_0x4c1ba1?0x1:-0x1,this['listenTo'](_0x31590e,_0x5cdb('0x85'),()=>this[_0x5cdb('0xfc')]()),this['listenTo'](_0x31590e,_0x5cdb('0x7f'),()=>this[_0x5cdb('0xfc')]()),this[_0x5cdb('0xf5')](_0x31590e,'change:activeChange',()=>this['refresh']());}[_0x5cdb('0x38')](){const _0x381e6e=this[_0x5cdb('0x4c')],_0x9da810=_0x381e6e['plugins'][_0x5cdb('0x51')](d),{isNavigationMode:_0x35e5fd,currentChangeNumber:_0x313c92}=_0x9da810;let _0x597925;if(_0x9da810[_0x5cdb('0x10e')]=_0x35e5fd?_0x9da810[_0x5cdb('0x21')]['changes'][_0x5cdb('0x51')](_0x313c92+this['_step']):_0x9da810['diff'][_0x5cdb('0x107')][_0x5cdb('0x5d')],_0x9da810[_0x5cdb('0x10e')][_0x5cdb('0x8b')][_0x5cdb('0xcf')])_0x597925=_0x381e6e['editing']['view'][_0x5cdb('0x1')](_0x9da810[_0x5cdb('0x10e')][_0x5cdb('0xbf')]);else{const _0x3efa3c=_0x381e6e['model']['markers'][_0x5cdb('0x51')](_0x5cdb('0xee')+_0x9da810['activeChange']['id']);_0x597925=_0x386f63(_0x381e6e[_0x5cdb('0xa0')],_0x3efa3c);}_0x3dd3e4({'target':_0x597925,'viewportOffset':0x28});}[_0x5cdb('0xfc')](){const {isNavigationMode:_0x8f7f3f,currentChangeNumber:_0x39c59c,numberOfChanges:_0x4fb991,isReady:_0xa675ed,isEnabled:_0x1dda32}=this[_0x5cdb('0x4c')]['plugins'][_0x5cdb('0x51')](d);this[_0x5cdb('0x6e')]=!!(_0x1dda32&&_0xa675ed&&_0x4fb991)&&(!_0x8f7f3f||(0x1===this[_0x5cdb('0x112')]?_0x39c59c<_0x4fb991-0x1:_0x39c59c>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5252=['ck-on','model','isVisible','class','bind','action','add','Name\x20this\x20revision','locale','_action','children','isEnabled','items','extendTemplate','listView','threeVerticalDots','first','Compare\x20against\x20selected','set','ck-revision-history-sidebar__revision__actions','isOpen','change:isActionsDropdownOpen','stopPropagation','name','isActionsDropdownOpen','map','execute','function','source','bindTemplate','listenTo','Restore\x20this\x20revision','button','find','panelPosition'];(function(_0x490d04,_0x5252a3){const _0x146b34=function(_0x540254){while(--_0x540254){_0x490d04['push'](_0x490d04['shift']());}};_0x146b34(++_0x5252a3);}(_0x5252,0x77));const _0x146b=function(_0x490d04,_0x5252a3){_0x490d04=_0x490d04-0x0;let _0x146b34=_0x5252[_0x490d04];return _0x146b34;};import{Collection as _0x4e2e97}from'ckeditor5/src/utils.js';import{icons as _0x6acfed}from'ckeditor5/src/core.js';import{ViewModel as _0x5b445d,addListToDropdown as _0xe736dd,createDropdown as _0x19e9cc}from'ckeditor5/src/ui.js';import{getTranslation as _0x31cd2c}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1311a2,_0xfd9bf5){const _0x579708=_0x1311a2[_0x146b('0xf')],_0x2be423=_0x1311a2[_0x146b('0x1d')],_0x171803=_0x19e9cc(_0x2be423);_0x171803[_0x146b('0x14')]='sw';const _0x42199c=function(_0x55f1ad,_0x2939cb){const _0x185dc9=function(_0x4d633a,_0x18e6f8){const _0x158081=_0x4d633a[_0x146b('0x1d')],_0x1ca354={'Compare\x20against\x20selected':_0x31cd2c(_0x158081,_0x146b('0x3')),'Name\x20this\x20revision':_0x31cd2c(_0x158081,_0x146b('0x1c')),'Restore\x20this\x20revision':_0x31cd2c(_0x158081,_0x146b('0x11'))};return _0x18e6f8[_0x146b('0xb')](_0x42fc81=>{const _0x192ed3=_0x1ca354[_0x42fc81[_0x146b('0x9')]];return _0x192ed3&&_0x192ed3!==_0x42fc81[_0x146b('0x9')]&&(_0x42fc81[_0x146b('0x9')]=_0x192ed3),_0x42fc81;});}(_0x55f1ad,_0x2939cb),_0x38f569=new _0x4e2e97();for(const _0x11aa90 of _0x185dc9){const _0x198af0={'type':_0x146b('0x12'),'model':new _0x5b445d({'label':_0x11aa90['name'],'class':_0x11aa90[_0x146b('0x18')],'withText':!0x0,'_action':_0x11aa90['action']})};_0x198af0[_0x146b('0x16')][_0x146b('0x19')](_0x146b('0x20'))['to'](_0x55f1ad,'isActionsDropdownOpen',_0x1b52e5=>'function'!=typeof _0x11aa90[_0x146b('0x20')]||(!_0x1b52e5||_0x11aa90[_0x146b('0x20')](_0x55f1ad))),_0x38f569[_0x146b('0x1b')](_0x198af0);}return _0x38f569;}(_0x1311a2,_0xfd9bf5);return _0x1311a2['bind'](_0x146b('0xa'))['to'](_0x171803,_0x146b('0x6')),_0x171803['buttonView'][_0x146b('0x4')]({'label':_0x31cd2c(_0x2be423,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x6acfed[_0x146b('0x1')]}),_0x171803[_0x146b('0x22')]({'attributes':{'class':[_0x146b('0x5'),_0x579708['if'](_0x146b('0xa'),_0x146b('0x15'))]},'on':{'click':_0x579708['to'](_0x587ea1=>_0x587ea1[_0x146b('0x8')]())}}),_0x171803['on'](_0x146b('0xc'),_0x243f0f=>{_0x1311a2['isReady']&&_0x146b('0xd')==typeof _0x243f0f[_0x146b('0xe')][_0x146b('0x1e')]&&_0x243f0f[_0x146b('0xe')][_0x146b('0x1e')](_0x1311a2);}),_0xe736dd(_0x171803,_0x42199c),_0x171803[_0x146b('0x10')](_0x1311a2,_0x146b('0x7'),(_0x26f662,_0x6e1206,_0x2176d5)=>{if(_0x2176d5)for(const _0x5df59e of _0x171803[_0x146b('0x0')][_0x146b('0x21')]){const _0x456ebd=_0x5df59e[_0x146b('0x1f')][_0x146b('0x2')],_0x11b440=_0xfd9bf5[_0x146b('0x13')](_0x1f5752=>_0x1f5752[_0x146b('0x1a')]===_0x456ebd[_0x146b('0x1e')])[_0x146b('0x17')];_0x5df59e['isVisible']=void 0x0===_0x11b440||_0x11b440(_0x1311a2);}}),_0x171803;}
23
+ const _0x3636=['execute','name','threeVerticalDots','bind','find','model','listenTo','add','locale','isOpen','children','ck-revision-history-sidebar__revision__actions','action','extendTemplate','isActionsDropdownOpen','_action','bindTemplate','items','listView','first','isVisible','function','Name\x20this\x20revision','isEnabled','set','source'];(function(_0x717a84,_0x363643){const _0x3b33c6=function(_0x4282db){while(--_0x4282db){_0x717a84['push'](_0x717a84['shift']());}};_0x3b33c6(++_0x363643);}(_0x3636,0x81));const _0x3b33=function(_0x717a84,_0x363643){_0x717a84=_0x717a84-0x0;let _0x3b33c6=_0x3636[_0x717a84];return _0x3b33c6;};import{Collection as _0x4c1fb6}from'ckeditor5/src/utils.js';import{icons as _0x56c4f0}from'ckeditor5/src/core.js';import{ViewModel as _0x43dad7,addListToDropdown as _0x5c11a7,createDropdown as _0x41f858}from'ckeditor5/src/ui.js';import{getTranslation as _0x3482cb}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x5463f5,_0x48e6e7){const _0x1ca30e=_0x5463f5[_0x3b33('0x11')],_0x5dc08b=_0x5463f5[_0x3b33('0x9')],_0x287a8f=_0x41f858(_0x5dc08b);_0x287a8f['panelPosition']='sw';const _0x11fd5a=function(_0x558ffc,_0x57d9b5){const _0x35928d=function(_0x3d5f32,_0x49c8ba){const _0x40a7dc=_0x3d5f32['locale'],_0x3e09a5={'Compare\x20against\x20selected':_0x3482cb(_0x40a7dc,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x3482cb(_0x40a7dc,_0x3b33('0x17')),'Restore\x20this\x20revision':_0x3482cb(_0x40a7dc,'Restore\x20this\x20revision')};return _0x49c8ba['map'](_0x200f4e=>{const _0x1d5626=_0x3e09a5[_0x200f4e['name']];return _0x1d5626&&_0x1d5626!==_0x200f4e[_0x3b33('0x2')]&&(_0x200f4e[_0x3b33('0x2')]=_0x1d5626),_0x200f4e;});}(_0x558ffc,_0x57d9b5),_0x156292=new _0x4c1fb6();for(const _0x5bc744 of _0x35928d){const _0x294f48={'type':'button','model':new _0x43dad7({'label':_0x5bc744[_0x3b33('0x2')],'class':_0x5bc744['class'],'withText':!0x0,'_action':_0x5bc744[_0x3b33('0xd')]})};_0x294f48[_0x3b33('0x6')]['bind']('isEnabled')['to'](_0x558ffc,_0x3b33('0xf'),_0x49a5b1=>_0x3b33('0x16')!=typeof _0x5bc744['isEnabled']||(!_0x49a5b1||_0x5bc744[_0x3b33('0x18')](_0x558ffc))),_0x156292[_0x3b33('0x8')](_0x294f48);}return _0x156292;}(_0x5463f5,_0x48e6e7);return _0x5463f5[_0x3b33('0x4')](_0x3b33('0xf'))['to'](_0x287a8f,_0x3b33('0xa')),_0x287a8f['buttonView'][_0x3b33('0x19')]({'label':_0x3482cb(_0x5dc08b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x56c4f0[_0x3b33('0x3')]}),_0x287a8f[_0x3b33('0xe')]({'attributes':{'class':[_0x3b33('0xc'),_0x1ca30e['if'](_0x3b33('0xf'),'ck-on')]},'on':{'click':_0x1ca30e['to'](_0x1baeb5=>_0x1baeb5['stopPropagation']())}}),_0x287a8f['on'](_0x3b33('0x1'),_0x349fa6=>{_0x5463f5['isReady']&&_0x3b33('0x16')==typeof _0x349fa6[_0x3b33('0x0')][_0x3b33('0x10')]&&_0x349fa6[_0x3b33('0x0')]['_action'](_0x5463f5);}),_0x5c11a7(_0x287a8f,_0x11fd5a),_0x287a8f[_0x3b33('0x7')](_0x5463f5,'change:isActionsDropdownOpen',(_0x105268,_0x5f541b,_0x3f92a0)=>{if(_0x3f92a0)for(const _0x2801f9 of _0x287a8f[_0x3b33('0x13')][_0x3b33('0x12')]){const _0x3aa377=_0x2801f9[_0x3b33('0xb')][_0x3b33('0x14')],_0x380334=_0x48e6e7[_0x3b33('0x5')](_0x10384f=>_0x10384f[_0x3b33('0xd')]===_0x3aa377[_0x3b33('0x10')])[_0x3b33('0x15')];_0x2801f9[_0x3b33('0x15')]=void 0x0===_0x380334||_0x380334(_0x5463f5);}}),_0x287a8f;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25a9=['ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','Revision\x20creator','Revision\x20author','span','0\x200\x2011\x2010','set','setTemplate'];(function(_0x582c84,_0x25a95b){const _0x3dd28e=function(_0x308914){while(--_0x308914){_0x582c84['push'](_0x582c84['shift']());}};_0x3dd28e(++_0x25a95b);}(_0x25a9,0x1d6));const _0x3dd2=function(_0x582c84,_0x25a95b){_0x582c84=_0x582c84-0x0;let _0x3dd28e=_0x25a9[_0x582c84];return _0x3dd28e;};import{View as _0x2323fe,IconView as _0x4ef3a8}from'ckeditor5/src/ui.js';import{getTranslation as _0x53c276}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x3cd0bb from'../../../theme/icons/user.svg';export default class ti extends _0x2323fe{constructor(_0x5b82df,_0x391409,_0x589257){super(_0x5b82df);const _0x2f83f0=new _0x4ef3a8();_0x2f83f0[_0x3dd2('0x5')]({'content':_0x3cd0bb,'viewBox':_0x3dd2('0x4')});const _0x28c558=['ck',_0x3dd2('0x0')];_0x589257&&_0x28c558['push'](_0x3dd2('0x7'));const _0xacf34c=[{'tag':_0x3dd2('0x3'),'attributes':{'class':['ck',_0x3dd2('0x8')],'title':_0x53c276(_0x5b82df,_0x589257?_0x3dd2('0x1'):_0x3dd2('0x2'))},'children':[_0x2f83f0,_0x391409['name']]}];this[_0x3dd2('0x6')]({'tag':'li','attributes':{'class':_0x28c558},'children':_0xacf34c});}}
23
+ const _0x5345=['ck-revision-history-sidebar__revision-author_creator','Revision\x20author','name','ck-revision-history-sidebar__revision-author','push','span','setTemplate','ck-revision-history-sidebar__revision-author__name','set'];(function(_0xf5effc,_0x53455d){const _0x557af7=function(_0x7cfdaa){while(--_0x7cfdaa){_0xf5effc['push'](_0xf5effc['shift']());}};_0x557af7(++_0x53455d);}(_0x5345,0xa4));const _0x557a=function(_0xf5effc,_0x53455d){_0xf5effc=_0xf5effc-0x0;let _0x557af7=_0x5345[_0xf5effc];return _0x557af7;};import{View as _0x4d3aeb,IconView as _0x49a2c1}from'ckeditor5/src/ui.js';import{getTranslation as _0x328c4b}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x49587b from'../../../theme/icons/user.svg';export default class ti extends _0x4d3aeb{constructor(_0x1b7e08,_0x37aa8c,_0x36080b){super(_0x1b7e08);const _0x17359f=new _0x49a2c1();_0x17359f[_0x557a('0x6')]({'content':_0x49587b,'viewBox':'0\x200\x2011\x2010'});const _0x1c4d1e=['ck',_0x557a('0x1')];_0x36080b&&_0x1c4d1e[_0x557a('0x2')](_0x557a('0x7'));const _0x2d7603=[{'tag':_0x557a('0x3'),'attributes':{'class':['ck',_0x557a('0x5')],'title':_0x328c4b(_0x1b7e08,_0x36080b?'Revision\x20creator':_0x557a('0x8'))},'children':[_0x17359f,_0x37aa8c[_0x557a('0x0')]]}];this[_0x557a('0x4')]({'tag':'li','attributes':{'class':_0x1c4d1e},'children':_0x2d7603});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x40be=['span','ck-revision-history-sidebar__revision-name','set','extendTemplate'];(function(_0x50ad44,_0x40be85){var _0x21746d=function(_0x455a72){while(--_0x455a72){_0x50ad44['push'](_0x50ad44['shift']());}};_0x21746d(++_0x40be85);}(_0x40be,0x1b7));var _0x2174=function(_0x50ad44,_0x40be85){_0x50ad44=_0x50ad44-0x0;var _0x21746d=_0x40be[_0x50ad44];return _0x21746d;};import{LabeledFieldView as _0x159165}from'ckeditor5/src/ui.js';import{getTranslation as _0x45e64a}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x159165{constructor(_0x3d53c6,_0x2c7749){super(_0x3d53c6,_0x2c7749),this[_0x2174('0x3')]({'label':_0x45e64a(_0x3d53c6,'Revision\x20name')}),this[_0x2174('0x0')]({'tag':_0x2174('0x1'),'attributes':{'class':[_0x2174('0x2')]}});}}
23
+ var _0x5d90=['set','span','Revision\x20name','ck-revision-history-sidebar__revision-name'];(function(_0x29e4fc,_0x5d9084){var _0x907109=function(_0x3d8648){while(--_0x3d8648){_0x29e4fc['push'](_0x29e4fc['shift']());}};_0x907109(++_0x5d9084);}(_0x5d90,0x114));var _0x9071=function(_0x29e4fc,_0x5d9084){_0x29e4fc=_0x29e4fc-0x0;var _0x907109=_0x5d90[_0x29e4fc];return _0x907109;};import{LabeledFieldView as _0x55de2b}from'ckeditor5/src/ui.js';import{getTranslation as _0x21fb5b}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x55de2b{constructor(_0x7916a7,_0x1f9478){super(_0x7916a7,_0x1f9478),this[_0x9071('0x0')]({'label':_0x21fb5b(_0x7916a7,_0x9071('0x2'))}),this['extendTemplate']({'tag':_0x9071('0x1'),'attributes':{'class':[_0x9071('0x3')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f56=['map','value','length','createdAt','setTemplate','placeholder','listenTo','isActionsDropdownOpen','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','name','unhighlight','srcElement','select','revisionActionsView','unshift','isReady','revisionNameView','ck-revision-history-sidebar__revision_highlighted','closest','render','isConfirm','change','element','highlight','fieldView','creator','isEnabled','_revision','set','isHighlighted','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','filter','deselect','isSelected','ck-revision-history-sidebar__actions_dropdown_open','setName','div','.ck-thread__remove-confirm','bind','extendTemplate','from','ck-reset'];(function(_0x57df48,_0x5f569f){const _0x582fba=function(_0xebb8a8){while(--_0xebb8a8){_0x57df48['push'](_0x57df48['shift']());}};_0x582fba(++_0x5f569f);}(_0x5f56,0x1d5));const _0x582f=function(_0x57df48,_0x5f569f){_0x57df48=_0x57df48-0x0;let _0x582fba=_0x5f56[_0x57df48];return _0x582fba;};import{View as _0x4a2bf5,createLabeledInputText as _0x490250}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x70b814}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x359352 from'./revisionnameview.js';import _0x223859 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x10e400}from'./utils.js';import{createActionsDropdownView as _0x503d59}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x70b814(_0x4a2bf5){constructor(_0xc379f,_0x2eff2c,_0x4f4bdb){super(_0xc379f);const _0x34ddb4=this['bindTemplate'],_0x585289=function(_0x27f907,_0x40dd87){const _0x963ec2=Array[_0x582f('0x2')](_0x40dd87['authors'])[_0x582f('0x24')](_0x55c873=>_0x55c873!=_0x40dd87['creator']);return _0x40dd87[_0x582f('0x1d')]&&_0x963ec2[_0x582f('0x12')](_0x40dd87['creator']),_0x963ec2[_0x582f('0x4')](_0x340e91=>new _0x223859(_0x27f907,_0x340e91,_0x340e91==_0x40dd87[_0x582f('0x1d')]));}(_0xc379f,_0x2eff2c);this['id']=_0x2eff2c['id'],this[_0x582f('0x1f')]=_0x2eff2c,this[_0x582f('0x0')](_0x582f('0xd'),_0x582f('0x7'))['to'](_0x2eff2c),this[_0x582f('0x0')]('_createdAtFormatted')['to'](this,'createdAt',_0x4fc13c=>_0x4fc13c?_0x10e400(_0xc379f['uiLanguage'],_0x4fc13c):void 0x0),this[_0x582f('0x20')](_0x582f('0x26'),!0x1),this[_0x582f('0x20')]('isHighlighted',!0x1),this['set'](_0x582f('0xb'),!0x1),this[_0x582f('0x20')](_0x582f('0x13'),!0x1),this[_0x582f('0x20')]('isEnabled',!0x1),this['revisionNameView']=new _0x359352(_0xc379f,_0x490250),this[_0x582f('0x14')]['fieldView'][_0x582f('0x1')]({'attributes':{'maxlength':'220'}}),this[_0x582f('0x14')]['fieldView'][_0x582f('0x0')](_0x582f('0x5'),_0x582f('0x9'))['to'](this,'name','_createdAtFormatted'),this[_0x582f('0x14')][_0x582f('0x0')](_0x582f('0x1e'))['to'](this,_0x582f('0x26'),this,_0x582f('0x1e'),(_0x5d25eb,_0x1ea9ab)=>_0x5d25eb&&_0x1ea9ab),this[_0x582f('0x11')]=_0x4f4bdb&&_0x4f4bdb[_0x582f('0x6')]?_0x503d59(this,_0x4f4bdb):'',this['revisionActionsView']&&this[_0x582f('0x11')][_0x582f('0x0')]('isEnabled')['to'](this),this[_0x582f('0x8')]({'tag':_0x582f('0x29'),'attributes':{'class':['ck',_0x582f('0x3'),'ck-revision-history-sidebar__revision-wrapper',_0x34ddb4['if'](_0x582f('0x18'),_0x582f('0xc'))]},'children':[{'tag':_0x582f('0x29'),'attributes':{'class':['ck','ck-reset',_0x582f('0x22'),_0x34ddb4['if'](_0x582f('0x1e'),'ck-disabled',_0x4e4510=>!_0x4e4510),_0x34ddb4['if'](_0x582f('0x26'),'ck-revision-history-sidebar__revision_selected'),_0x34ddb4['if'](_0x582f('0x21'),_0x582f('0x15')),_0x34ddb4['if'](_0x582f('0xb'),_0x582f('0x27'))]},'children':[this[_0x582f('0x14')],{'tag':'span','attributes':{'class':['ck',_0x582f('0x23')]},'children':[{'text':_0x34ddb4['to']('_createdAtFormatted')}]},{'tag':_0x582f('0x29'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x585289}]},this['revisionActionsView']],'on':{'click':_0x34ddb4['to'](_0x520c65=>{_0x520c65[_0x582f('0xf')][_0x582f('0x16')](_0x582f('0x2a'))||this[_0x582f('0x13')]&&this[_0x582f('0x1e')]&&this['fire'](_0x582f('0x10'),{'id':this['id']});})}}]});}['render'](){super[_0x582f('0x17')]();const _0x240f8f=this[_0x582f('0x14')][_0x582f('0x1c')][_0x582f('0x1a')];this[_0x582f('0xa')](_0x240f8f,_0x582f('0x19'),()=>{this['fire'](_0x582f('0x28'),{'id':this['id'],'name':_0x240f8f[_0x582f('0x5')]});});}[_0x582f('0x10')](){this['isSelected']=!0x0;}[_0x582f('0x25')](){this['isSelected']=!0x1;}[_0x582f('0x1b')](){this[_0x582f('0x21')]=!0x0;}[_0x582f('0xe')](){this[_0x582f('0x21')]=!0x1;}}
23
+ const _0x3ffd=['extendTemplate','set','ck-revision-history-sidebar__revision__controls-wrapper','_createdAtFormatted','filter','srcElement','span','map','value','isReady','fire','name','div','creator','ck-disabled','isSelected','setName','ck-reset','element','bind','ck-revision-history-sidebar__revision_selected','createdAt','.ck-thread__remove-confirm','revisionActionsView','fieldView','isConfirm','change','isEnabled','_revision','revisionNameView','authors','ck-revision-history-sidebar__actions_dropdown_open','closest','placeholder','select','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','highlight','listenTo','unhighlight','isActionsDropdownOpen','ck-revision-history-sidebar__revision','isHighlighted','render','length'];(function(_0x3b6c14,_0x3ffdc1){const _0x5e2a3d=function(_0x39e7bd){while(--_0x39e7bd){_0x3b6c14['push'](_0x3b6c14['shift']());}};_0x5e2a3d(++_0x3ffdc1);}(_0x3ffd,0x15d));const _0x5e2a=function(_0x3b6c14,_0x3ffdc1){_0x3b6c14=_0x3b6c14-0x0;let _0x5e2a3d=_0x3ffd[_0x3b6c14];return _0x5e2a3d;};import{View as _0x15fd65,createLabeledInputText as _0x578e8e}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x5bf0f0}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x569c60 from'./revisionnameview.js';import _0x1570f1 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x161a52}from'./utils.js';import{createActionsDropdownView as _0xfaf925}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x5bf0f0(_0x15fd65){constructor(_0x56363b,_0xd00bfd,_0x54a778){super(_0x56363b);const _0x280568=this['bindTemplate'],_0x3e8eb6=function(_0x2deaa8,_0x4c8f3a){const _0x268b50=Array['from'](_0x4c8f3a[_0x5e2a('0x29')])[_0x5e2a('0xf')](_0x216b82=>_0x216b82!=_0x4c8f3a[_0x5e2a('0x18')]);return _0x4c8f3a[_0x5e2a('0x18')]&&_0x268b50['unshift'](_0x4c8f3a[_0x5e2a('0x18')]),_0x268b50[_0x5e2a('0x12')](_0x13f2ab=>new _0x1570f1(_0x2deaa8,_0x13f2ab,_0x13f2ab==_0x4c8f3a['creator']));}(_0x56363b,_0xd00bfd);this['id']=_0xd00bfd['id'],this[_0x5e2a('0x27')]=_0xd00bfd,this[_0x5e2a('0x1e')](_0x5e2a('0x16'),_0x5e2a('0x20'))['to'](_0xd00bfd),this['bind'](_0x5e2a('0xe'))['to'](this,_0x5e2a('0x20'),_0x3addee=>_0x3addee?_0x161a52(_0x56363b['uiLanguage'],_0x3addee):void 0x0),this['set'](_0x5e2a('0x1a'),!0x1),this[_0x5e2a('0xc')](_0x5e2a('0x8'),!0x1),this[_0x5e2a('0xc')]('isActionsDropdownOpen',!0x1),this[_0x5e2a('0xc')]('isReady',!0x1),this[_0x5e2a('0xc')](_0x5e2a('0x26'),!0x1),this[_0x5e2a('0x28')]=new _0x569c60(_0x56363b,_0x578e8e),this[_0x5e2a('0x28')][_0x5e2a('0x23')][_0x5e2a('0xb')]({'attributes':{'maxlength':'220'}}),this[_0x5e2a('0x28')][_0x5e2a('0x23')][_0x5e2a('0x1e')](_0x5e2a('0x13'),_0x5e2a('0x2c'))['to'](this,_0x5e2a('0x16'),_0x5e2a('0xe')),this[_0x5e2a('0x28')]['bind'](_0x5e2a('0x26'))['to'](this,'isSelected',this,_0x5e2a('0x26'),(_0xad8795,_0x4893b0)=>_0xad8795&&_0x4893b0),this['revisionActionsView']=_0x54a778&&_0x54a778[_0x5e2a('0xa')]?_0xfaf925(this,_0x54a778):'',this[_0x5e2a('0x22')]&&this[_0x5e2a('0x22')]['bind'](_0x5e2a('0x26'))['to'](this),this['setTemplate']({'tag':_0x5e2a('0x17'),'attributes':{'class':['ck',_0x5e2a('0x1c'),'ck-revision-history-sidebar__revision-wrapper',_0x280568['if'](_0x5e2a('0x24'),_0x5e2a('0x2'))]},'children':[{'tag':_0x5e2a('0x17'),'attributes':{'class':['ck','ck-reset',_0x5e2a('0x7'),_0x280568['if'](_0x5e2a('0x26'),_0x5e2a('0x19'),_0x3dd679=>!_0x3dd679),_0x280568['if'](_0x5e2a('0x1a'),_0x5e2a('0x1f')),_0x280568['if'](_0x5e2a('0x8'),'ck-revision-history-sidebar__revision_highlighted'),_0x280568['if'](_0x5e2a('0x6'),_0x5e2a('0x2a'))]},'children':[this['revisionNameView'],{'tag':_0x5e2a('0x11'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x280568['to'](_0x5e2a('0xe'))}]},{'tag':'div','attributes':{'class':['ck',_0x5e2a('0xd')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5e2a('0x1')]},'children':_0x3e8eb6}]},this[_0x5e2a('0x22')]],'on':{'click':_0x280568['to'](_0x50c0cf=>{_0x50c0cf[_0x5e2a('0x10')][_0x5e2a('0x2b')](_0x5e2a('0x21'))||this[_0x5e2a('0x14')]&&this[_0x5e2a('0x26')]&&this[_0x5e2a('0x15')](_0x5e2a('0x0'),{'id':this['id']});})}}]});}[_0x5e2a('0x9')](){super[_0x5e2a('0x9')]();const _0x5b788d=this[_0x5e2a('0x28')][_0x5e2a('0x23')][_0x5e2a('0x1d')];this[_0x5e2a('0x4')](_0x5b788d,_0x5e2a('0x25'),()=>{this['fire'](_0x5e2a('0x1b'),{'id':this['id'],'name':_0x5b788d[_0x5e2a('0x13')]});});}['select'](){this[_0x5e2a('0x1a')]=!0x0;}['deselect'](){this[_0x5e2a('0x1a')]=!0x1;}[_0x5e2a('0x3')](){this['isHighlighted']=!0x0;}[_0x5e2a('0x5')](){this[_0x5e2a('0x8')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2546=['ck-revision-history-sidebar__subrevision-collapser__inner','_isCollapsed','true','span','ck-hidden','ck-revision-history-sidebar__subrevision-collapser','bindTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','click','setTemplate','isVisible','button','set','toggle','false'];(function(_0x35a072,_0x254678){const _0x4eb98f=function(_0x5847d3){while(--_0x5847d3){_0x35a072['push'](_0x35a072['shift']());}};_0x4eb98f(++_0x254678);}(_0x2546,0x145));const _0x4eb9=function(_0x35a072,_0x254678){_0x35a072=_0x35a072-0x0;let _0x4eb98f=_0x2546[_0x35a072];return _0x4eb98f;};import{View as _0x468177}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x468177{constructor(_0x22449f){super(_0x22449f);const _0x1b60ee=this[_0x4eb9('0xb')];this[_0x4eb9('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4eb9('0xe')]({'tag':_0x4eb9('0x8'),'attributes':{'class':['ck',_0x4eb9('0xa'),_0x1b60ee['if'](_0x4eb9('0x0'),_0x4eb9('0x9'),_0x29fc18=>!_0x29fc18),_0x1b60ee['if'](_0x4eb9('0x6'),_0x4eb9('0xc'))],'role':_0x4eb9('0x1'),'aria-pressed':_0x1b60ee['to'](_0x4eb9('0x6'),_0x239bb4=>_0x239bb4?_0x4eb9('0x4'):_0x4eb9('0x7'))},'children':[{'tag':_0x4eb9('0x8'),'attributes':{'class':['ck',_0x4eb9('0x5')]}}],'on':{'click':_0x1b60ee['to'](_0x4eb9('0xd'))}});}[_0x4eb9('0x3')](){this[_0x4eb9('0x6')]=!this[_0x4eb9('0x6')];}}
23
+ const _0x5fde=['click','set','ck-hidden','bindTemplate','toggle','ck-revision-history-sidebar__subrevision-collapser','button','span','setTemplate','false','true','_isCollapsed'];(function(_0x110459,_0x5fde04){const _0x2e9e0e=function(_0x103bda){while(--_0x103bda){_0x110459['push'](_0x110459['shift']());}};_0x2e9e0e(++_0x5fde04);}(_0x5fde,0xab));const _0x2e9e=function(_0x110459,_0x5fde04){_0x110459=_0x110459-0x0;let _0x2e9e0e=_0x5fde[_0x110459];return _0x2e9e0e;};import{View as _0x4e8d64}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4e8d64{constructor(_0x47e794){super(_0x47e794);const _0x565344=this[_0x2e9e('0x0')];this[_0x2e9e('0xa')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2e9e('0x5')]({'tag':_0x2e9e('0x4'),'attributes':{'class':['ck',_0x2e9e('0x2'),_0x565344['if']('isVisible',_0x2e9e('0xb'),_0x95a2f3=>!_0x95a2f3),_0x565344['if'](_0x2e9e('0x8'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x2e9e('0x3'),'aria-pressed':_0x565344['to'](_0x2e9e('0x8'),_0x5b5d2c=>_0x5b5d2c?_0x2e9e('0x6'):_0x2e9e('0x7'))},'children':[{'tag':_0x2e9e('0x4'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x565344['to'](_0x2e9e('0x9'))}});}[_0x2e9e('0x1')](){this[_0x2e9e('0x8')]=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27f9=['fire','createdAt','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision__date','_parentRevisionId','set','ck-revision-history-sidebar__revision','deselect','select','ck-reset','setTemplate','bind','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','div','isSelected','uiLanguage'];(function(_0x106a98,_0x27f9d4){const _0x392297=function(_0x1288c8){while(--_0x1288c8){_0x106a98['push'](_0x106a98['shift']());}};_0x392297(++_0x27f9d4);}(_0x27f9,0xa8));const _0x3922=function(_0x106a98,_0x27f9d4){_0x106a98=_0x106a98-0x0;let _0x392297=_0x27f9[_0x106a98];return _0x392297;};import{View as _0x350f09}from'ckeditor5/src/ui.js';import _0x4b9f9d from'./revisionauthorview.js';import{dateToPrettyFormat as _0x307eb2}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x350f09{constructor(_0x3e2ed0,_0x37fc33,_0x10dca3){super(_0x3e2ed0);const _0x6bb857=this['bindTemplate'];this['id']=_0x37fc33['id'],this[_0x3922('0xd')](_0x3922('0x3'))['to'](_0x37fc33),this[_0x3922('0x7')](_0x3922('0x0'),!0x1),this[_0x3922('0xd')]('_createdAtFormatted')['to'](this,_0x3922('0x3'),_0x5df305=>_0x5df305?_0x307eb2(_0x3e2ed0[_0x3922('0x1')],_0x5df305):void 0x0),this[_0x3922('0x6')]=_0x10dca3,this[_0x3922('0xc')]({'tag':_0x3922('0x10'),'attributes':{'class':['ck',_0x3922('0xb'),_0x3922('0x8'),_0x3922('0x4'),_0x6bb857['if'](_0x3922('0x0'),_0x3922('0xf'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x3922('0x5')]},'children':[{'text':_0x6bb857['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x3922('0xe')]},'children':[new _0x4b9f9d(_0x3e2ed0,_0x37fc33['creator'],!0x0)]}],'on':{'click':_0x6bb857['to'](this[_0x3922('0xa')]['bind'](this))}});}[_0x3922('0xa')](){this['isSelected']=!0x0,this[_0x3922('0x2')](_0x3922('0xa'),{'parentId':this[_0x3922('0x6')]});}[_0x3922('0x9')](){this[_0x3922('0x0')]=!0x1;}}
23
+ const _0x106c=['isSelected','ck-revision-history-sidebar__revision_selected','deselect','bindTemplate','ck-revision-history-sidebar__revision','fire','ck-revision-history-sidebar__revision-authors','select','_parentRevisionId','creator','createdAt','ck-reset','bind','_createdAtFormatted','ck-revision-history-sidebar__subrevision','setTemplate'];(function(_0x40888d,_0x106c4e){const _0x4b6f4a=function(_0x175f7e){while(--_0x175f7e){_0x40888d['push'](_0x40888d['shift']());}};_0x4b6f4a(++_0x106c4e);}(_0x106c,0x173));const _0x4b6f=function(_0x40888d,_0x106c4e){_0x40888d=_0x40888d-0x0;let _0x4b6f4a=_0x106c[_0x40888d];return _0x4b6f4a;};import{View as _0x155ab3}from'ckeditor5/src/ui.js';import _0xace56a from'./revisionauthorview.js';import{dateToPrettyFormat as _0x37cc88}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x155ab3{constructor(_0x130a25,_0x3b87f0,_0x3dd7ad){super(_0x130a25);const _0x233ab9=this[_0x4b6f('0x0')];this['id']=_0x3b87f0['id'],this[_0x4b6f('0x9')](_0x4b6f('0x7'))['to'](_0x3b87f0),this['set'](_0x4b6f('0xd'),!0x1),this[_0x4b6f('0x9')](_0x4b6f('0xa'))['to'](this,'createdAt',_0xcfd4c0=>_0xcfd4c0?_0x37cc88(_0x130a25['uiLanguage'],_0xcfd4c0):void 0x0),this[_0x4b6f('0x5')]=_0x3dd7ad,this[_0x4b6f('0xc')]({'tag':'div','attributes':{'class':['ck',_0x4b6f('0x8'),_0x4b6f('0x1'),_0x4b6f('0xb'),_0x233ab9['if']('isSelected',_0x4b6f('0xe'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x233ab9['to'](_0x4b6f('0xa'))}]},{'tag':'ul','attributes':{'class':['ck',_0x4b6f('0x3')]},'children':[new _0xace56a(_0x130a25,_0x3b87f0[_0x4b6f('0x6')],!0x0)]}],'on':{'click':_0x233ab9['to'](this[_0x4b6f('0x4')]['bind'](this))}});}[_0x4b6f('0x4')](){this[_0x4b6f('0xd')]=!0x0,this[_0x4b6f('0x2')](_0x4b6f('0x4'),{'parentId':this[_0x4b6f('0x5')]});}[_0x4b6f('0xf')](){this[_0x4b6f('0xd')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x32c3=['numeric','toLocaleTimeString','long','toLocaleDateString'];(function(_0x3152e3,_0x32c353){var _0x53b626=function(_0x1d8695){while(--_0x1d8695){_0x3152e3['push'](_0x3152e3['shift']());}};_0x53b626(++_0x32c353);}(_0x32c3,0x133));var _0x53b6=function(_0x3152e3,_0x32c353){_0x3152e3=_0x3152e3-0x0;var _0x53b626=_0x32c3[_0x3152e3];return _0x53b626;};export function dateToPrettyFormat(_0x5250ee,_0x49ad45){return _0x49ad45[_0x53b6('0x0')](_0x5250ee,{'month':_0x53b6('0x3'),'day':_0x53b6('0x1')})+',\x20'+_0x49ad45[_0x53b6('0x2')](_0x5250ee,{'hour':'numeric','minute':_0x53b6('0x1')});}
23
+ var _0x1f38=['toLocaleDateString','toLocaleTimeString','long'];(function(_0x4446d9,_0x1f3850){var _0x3568f3=function(_0x328548){while(--_0x328548){_0x4446d9['push'](_0x4446d9['shift']());}};_0x3568f3(++_0x1f3850);}(_0x1f38,0x183));var _0x3568=function(_0x4446d9,_0x1f3850){_0x4446d9=_0x4446d9-0x0;var _0x3568f3=_0x1f38[_0x4446d9];return _0x3568f3;};export function dateToPrettyFormat(_0x45039c,_0x42437d){return _0x42437d[_0x3568('0x0')](_0x45039c,{'month':_0x3568('0x2'),'day':'numeric'})+',\x20'+_0x42437d[_0x3568('0x1')](_0x45039c,{'hour':'numeric','minute':'numeric'});}