@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230807.0 → 0.0.0-nightly-20230808.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 (33) hide show
  1. package/LICENSE.md +5 -5
  2. package/README.md +10 -10
  3. package/build/revision-history.js +1 -1
  4. package/package.json +6 -6
  5. package/src/changeitem.js +1 -1
  6. package/src/editor/revisionviewereditor.js +1 -1
  7. package/src/editor/revisionviewereditorui.js +1 -1
  8. package/src/editor/revisionviewereditoruiview.js +1 -1
  9. package/src/revision.js +1 -1
  10. package/src/revisiondiff.js +1 -1
  11. package/src/revisionhistory.js +1 -1
  12. package/src/revisionsrepository.js +1 -1
  13. package/src/revisiontracker.js +1 -1
  14. package/src/revisionviewer.js +1 -1
  15. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  16. package/src/ui/revision/revisionauthorview.js +1 -1
  17. package/src/ui/revision/revisionnameview.js +1 -1
  18. package/src/ui/revision/revisionview.js +1 -1
  19. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  20. package/src/ui/revision/subrevisionview.js +1 -1
  21. package/src/ui/revision/utils.js +1 -1
  22. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  23. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  27. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  28. package/src/ui/revisionssidebar/utils.js +1 -1
  29. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  30. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  31. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  32. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  33. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40bf=['getCustomProperty','sort','data','checkAttribute','revision:','_makeTape','diff','conversion','flat','from','collaboration.channelId','mousedown','_balloon','resolve','change:isReady','then','detachRoot','authors','isAddSuggestion','markerToHighlight','_findChangeIdFromDomTarget','RevisionViewer','elementToAttribute','_getDiff','has','getRevisionData','getAttributes','splice','bindElementToMarker','isAdded','isAtEnd','bottom','bind','split','enqueueChange','-new','backward','POSITIVE_INFINITY','markers','_initInteractions','length','activeView','isInline','ck-revision-history-root-add','getRevisionRootsAttributes','listenTo','addClass','getRevision','selection','revision-comment:','isCollapsed','requires','revisionHistory','unshift','newRevisionId','ck-suggestion-preview-marker-','consume','toViewPosition','_joinTapes','filter','revisionHistoryLabel','addMarker:revision-suggestion:deletion','ck-suggestion-marker--active','hasClass','return','enableReadOnlyMode','writer','markerToData','addMarker:revision-suggestion:insertion','vid_start','attributes','changeId','highest','markersStart','isReady','done','useFillerType','dataToMarker','maxOffset','endIndex','catch','elementEnd','forceDisabled','softBreak','commands','ck-editor__editable__overlay','nextPosition','low','find','execute','element:pre','change','editing','values','view','_setConversion','plugins','attributesBefore','_sortAndFilterDiffChanges','target','_activeViewTarget','map','unbindElementFromMarkerName','_refreshStartEndIndex','text','isObject','_getViewObj','uiElement','reconvertMarker','insert','children','attributesAfter','mapper','markersEnd','_makeModelFromTape','isNavigationMode','addRoot','set','parse','createRangeIn','addHighlight','isSuggestion','userId','getAttribute','data-change-id','revisionHistoryAttachChange','type','removeAttribute','item','init','getDomRoot','change:activeChange','WidgetToolbarRepository','_processTape','keys','index','change:isEnabled','_setChanges','deletion','getIndex','end','toViewRange','ck-suggestion-marker-split','dataDowncast','consumable','start','_cleanUp','pop','_getChangeFromId','RevisionsRepository','insertion','setAttribute','isEnabled','string','revision','startsWith','toModel','delete','_update','merge','removeClass','domEvent','deletions','add','getRootNames','document','getItems','restoreRevisionCallback','_markMismatchedRemovedTags','name','createPositionFromPath','model','for','ck-revision-history-root-','removeMarker:revision-suggestion','showNextChange','comment','_setDistance','_markInsertions','vid','markerNameToElements','schema','push','pluginName','adapter','isIncorrect','affectsData','showStack','change:numberOfChanges','changes','concat','right','_data','ck-revision-history-root--active','isContent','object','shift','_changeView','isAttached','locale','revision-suggestion','startIndex','ck-revision-history-root-remove','isRemoveSuggestion','forEach','downcastDispatcher','previousPosition','createRange','viewItem','forward','level','suggestion','getRoot','ck-suggestion-marker-merge','processor','revision-viewer','_changeIdToChange','getClientRects','ck-suggestion-preview-marker','markerName','wrap','_makeModelFromViewString','rootName','test','_markSuggestions','destroy','hasAttribute','roots','repository','pairId','_getViewForChange','distance','_removeRevisionMarkers','vid_end','currentChangeNumber','abs','get','change:activeView','numberOfChanges','isBlock','ck-suggestion-marker-','remove','attachChange','modelRange','addRevisionData','side','slice','left','_getRevisionsRange','span','isAfter','parent','oldRevisionId','activeChange','nextSibling','showPreviousChange','range','upcast','refresh','stop','diffData','isEqual','isOnRoot','_cleanMarkers','nodeAfter','_fixObsoleteTags','elementStart','isBefore','editingDowncast','revision-end','_removeMissingPairs','addRevision','ck-suggestion-marker','isLimit','element','toViewElement','markerRange','_appendChild','editor','_step','includes','loadRevisionData','addMarker:revision','high','insertions','isRemoved','toData','createUIElement','clear','config'];(function(_0x29b000,_0x40bf4a){const _0x406965=function(_0x24180b){while(--_0x24180b){_0x29b000['push'](_0x29b000['shift']());}};_0x406965(++_0x40bf4a);}(_0x40bf,0x113));const _0x4069=function(_0x29b000,_0x40bf4a){_0x29b000=_0x29b000-0x0;let _0x406965=_0x40bf[_0x29b000];return _0x406965;};import{Plugin as _0x2bb06f,Command as _0x3dd145}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4b51d0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x18ce7b}from'ckeditor5/src/ui';import{DocumentFragment as _0x4897c4,Element as _0x3c078a,Text as _0x12ea09,ViewDocumentFragment as _0x4df735,ViewText as _0x50a58d,ViewElement as _0x525592,ViewContainerElement as _0xc63ef9,ViewAttributeElement as _0x1c62be,ViewEmptyElement as _0x2fec83,ViewRawElement as _0x1e58d0,ViewUIElement as _0x4dbe09}from'ckeditor5/src/engine';import{Users as _0x551908,getMarkerDomElement as _0x47b482}from'ckeditor5-collaboration/src/collaboration-core';import _0x54ed56 from'./ui/revisionviewer/changedetailsview';import _0x19af68 from'./revisionsrepository';import _0x51339a from'./changeitem';import{default as _0x48bfca}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x389537}from'lodash-es';const tt={'c':_0xc63ef9,'a':_0x1c62be,'e':_0x2fec83,'r':_0x1e58d0,'u':_0x4dbe09};export default class d extends _0x2bb06f{static get[_0x4069('0xc6')](){return _0x4069('0x24');}static get[_0x4069('0x42')](){return[_0x551908,_0x18ce7b,_0x19af68];}constructor(_0x522b4c){super(_0x522b4c),this[_0x4069('0xf3')]=this[_0x4069('0x3')][_0x4069('0x6f')]['get'](_0x4069('0xa4')),this['set'](_0x4069('0x10c'),null),this['set'](_0x4069('0x38'),null),this[_0x4069('0x73')]=null,this['set'](_0x4069('0x15'),null),this[_0x4069('0x84')]('isReady',!0x1),this['set']('isEnabled',!0x0),this['on'](_0x4069('0x97'),(_0xb0a484,_0x5152ca,_0x1ce020)=>{this[_0x4069('0x10c')]=null,this[_0x4069('0x38')]=null,this[_0x4069('0x3')]['editing'][_0x4069('0x6d')][_0x4069('0x6a')](_0x1d80b5=>{for(const _0x2300db of this[_0x4069('0x3')][_0x4069('0x6b')]['view'][_0x4069('0xb4')][_0x4069('0xf2')])_0x1ce020?_0x1d80b5[_0x4069('0xaf')]('ck-editor__editable__overlay',_0x2300db):_0x1d80b5[_0x4069('0x3d')](_0x4069('0x64'),_0x2300db);});}),this['bind'](_0x4069('0x82'))['to'](this,_0x4069('0x10c'),_0x16fbab=>null!==_0x16fbab),this[_0x4069('0x2f')](_0x4069('0xf9'))['to'](this,'isReady',this,_0x4069('0x15'),this,_0x4069('0x10c'),(_0xffaeb3,_0x4ff563,_0x31aed0)=>_0xffaeb3&&_0x31aed0?_0x4ff563[_0x4069('0xcc')][_0x4069('0x9a')](_0x31aed0):0x0),this[_0x4069('0x2f')](_0x4069('0xfd'))['to'](this,_0x4069('0x59'),this,_0x4069('0x15'),(_0x38fdb9,_0x4cb5d3)=>_0x38fdb9?_0x4cb5d3[_0x4069('0xcc')]['length']:0x0),this[_0x4069('0xd4')]=null,this['_changeIdToChange']=new Map(),this[_0x4069('0xc7')]=null,this[_0x4069('0x1b')]=this['editor'][_0x4069('0x6f')][_0x4069('0xfb')](_0x18ce7b);}[_0x4069('0x90')](){const _0x6923b9=this[_0x4069('0x3')],_0x53b040=new ShowChangeCommand(_0x6923b9,{'direction':_0x4069('0x33')}),_0xf6995b=new ShowChangeCommand(_0x6923b9,{'direction':'forward'});(_0x6923b9[_0x4069('0x63')]['add'](_0x4069('0x10e'),_0x53b040),_0x6923b9[_0x4069('0x63')]['add'](_0x4069('0xbe'),_0xf6995b),_0x6923b9[_0x4069('0x63')][_0x4069('0xb2')]('restoreRevision',new RestoreRevisionCommand(_0x6923b9)),this['on'](_0x4069('0xcb'),()=>{_0x53b040[_0x4069('0x111')](),_0xf6995b[_0x4069('0x111')]();}),this[_0x4069('0x6e')](),this['_initInteractions'](),_0x6923b9[_0x4069('0x50')](_0x4069('0xe6')),_0x6923b9['plugins'][_0x4069('0x27')](_0x4069('0x93')))&&_0x6923b9[_0x4069('0x6f')]['get'](_0x4069('0x93'))[_0x4069('0x61')](_0x4069('0xe6'));}async[_0x4069('0x28')](_0x3d4c39){await this[_0x4069('0x6')](_0x3d4c39);const _0x467d19={};for(const _0x42deb6 in _0x3d4c39[_0x4069('0x113')]){if(_0x3d4c39[_0x4069('0x113')][_0x42deb6][_0x4069('0x101')]&&!_0x3d4c39[_0x4069('0x113')][_0x42deb6][_0x4069('0x101')][_0x4069('0xd5')])continue;const _0x159b44=this[_0x4069('0xf7')](JSON['parse'](_0x3d4c39[_0x4069('0x113')][_0x42deb6][_0x4069('0x9')])),_0x1222f8=this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0x6d')][_0x4069('0xb4')],_0x29106f=new _0x4df735(_0x1222f8,_0x159b44[_0x4069('0x74')](_0x535b7f=>this[_0x4069('0x79')](_0x535b7f)));this[_0x4069('0x3')][_0x4069('0x11')][_0x4069('0xe5')][_0x4069('0x5b')]('marked'),_0x467d19[_0x42deb6]=this['editor'][_0x4069('0x11')]['processor'][_0x4069('0xb')](_0x29106f),this['editor'][_0x4069('0x11')][_0x4069('0xe5')][_0x4069('0x5b')]('default');}return _0x467d19;}async[_0x4069('0x3b')](_0x3ddfb9){await this['loadRevisionData'](_0x3ddfb9);const _0x483637={};for(const _0x134980 in _0x3ddfb9[_0x4069('0x113')])_0x3ddfb9[_0x4069('0x113')][_0x134980][_0x4069('0x101')]&&!_0x3ddfb9[_0x4069('0x113')][_0x134980][_0x4069('0x101')][_0x4069('0xd5')]||(_0x483637[_0x134980]=_0x3ddfb9[_0x4069('0x113')][_0x134980][_0x4069('0x7e')]||{});return _0x483637;}['_removeRevisionMarkers'](_0x4e4af9){return(_0x4e4af9=_0x4e4af9[_0x4069('0x4a')](_0x10644=>!_0x10644[_0x4069('0xb8')]||'revision-start'!==_0x10644[_0x4069('0xb8')]&&_0x4069('0x11c')!==_0x10644[_0x4069('0xb8')]))[_0x4069('0xdb')](_0x1fcd79=>{_0x4069('0xa8')!=typeof _0x1fcd79&&(_0x1fcd79[_0x4069('0x7d')]=this['_removeRevisionMarkers'](_0x1fcd79[_0x4069('0x7d')]),_0x1fcd79[_0x4069('0x55')]=_0x1fcd79[_0x4069('0x55')]['filter'](_0x2e697e=>!_0x2e697e[0x0]['startsWith']('data-revision-')));}),_0x4e4af9;}async['compare'](_0x9b811f,_0x410393,_0x4621d9=!0x1){if(!this[_0x4069('0xa7')])return;const _0x6e50fb=this[_0x4069('0x15')],_0x40c843=this['repository'],_0x20e259=_0x4069('0xa8')==typeof _0x9b811f?_0x40c843[_0x4069('0x3e')](_0x9b811f):_0x9b811f,_0x1e4558=_0x4069('0xa8')==typeof _0x410393?_0x40c843['getRevision'](_0x410393):_0x410393,_0x1c52ef=_0x20e259['id'],_0x597dea=_0x1e4558?_0x1e4558['id']:null;if(!_0x4621d9&&this[_0x4069('0x15')]&&this['diff'][_0x4069('0x45')]===_0x1c52ef&&this[_0x4069('0x15')][_0x4069('0x10b')]===_0x597dea)return Promise[_0x4069('0x1c')]();this[_0x4069('0x59')]=!0x1,this[_0x4069('0x38')]=null,this[_0x4069('0x10c')]=null,this[_0x4069('0x15')]=new _0x48bfca(_0x1c52ef,_0x597dea);const _0x3c0db9=this[_0x4069('0x107')](_0x20e259,_0x1e4558,!0x0)['map'](_0x24ee71=>this[_0x4069('0x6')](_0x24ee71));return _0x3c0db9[_0x4069('0xc5')](new Promise(_0x24f515=>{setTimeout(_0x24f515,0x14);})),Promise['all'](_0x3c0db9)['then'](()=>{if(!this[_0x4069('0xa7')])return;this[_0x4069('0xa1')]();const _0xf13f6d=this['_getDiff'](_0x1c52ef,_0x597dea);for(const _0x275097 of _0xf13f6d[_0x4069('0xcc')])this[_0x4069('0xe7')][_0x4069('0x84')](_0x275097['id'],_0x275097);this[_0x4069('0x3')][_0x4069('0xba')]['enqueueChange']({'isUndoable':!0x1},_0x15d7c1=>{for(const _0x4ce2bf of this[_0x4069('0x3')]['model']['document']['getRootNames']())_0x15d7c1['detachRoot'](_0x4ce2bf);for(const _0x1e3207 of Object[_0x4069('0x95')](_0xf13f6d[_0x4069('0xba')])){const _0x170d15=_0x15d7c1[_0x4069('0x83')](_0x1e3207);for(const _0x3302ad of Object['keys'](_0xf13f6d['attributes'][_0x1e3207]))_0x15d7c1[_0x4069('0xa6')](_0x3302ad,_0xf13f6d[_0x4069('0x55')][_0x1e3207][_0x3302ad],_0x170d15);_0x15d7c1[_0x4069('0x7c')](_0xf13f6d[_0x4069('0xba')][_0x1e3207],_0x170d15,0x0);}}),this[_0x4069('0x15')][_0x4069('0x98')](this[_0x4069('0x71')](_0xf13f6d['changes'])),this['isReady']=!0x0;})[_0x4069('0x5f')](_0x190448=>{console['error'](_0x190448),this[_0x4069('0xa1')](),_0x6e50fb&&(this['diff']=_0x6e50fb),this[_0x4069('0x59')]=!0x0;});}[_0x4069('0x103')](_0x123bd1,_0x39fa60){const _0x22207d=this['repository']['createRevision'](_0x123bd1);return _0x22207d['on'](_0x4069('0xad'),(_0xb18c13,_0x19fbfd,_0x3ea4a7)=>_0x39fa60(_0x19fbfd,_0x3ea4a7,_0x22207d)),this[_0x4069('0xf3')][_0x4069('0x11e')](_0x22207d),_0x22207d;}[_0x4069('0x6')](_0x2a1bdf){if(!_0x2a1bdf||_0x2a1bdf[_0x4069('0x113')])return Promise[_0x4069('0x1c')]();{const _0x2974ce=this[_0x4069('0x3')][_0x4069('0xe')][_0x4069('0xfb')](_0x4069('0x19'));return this[_0x4069('0xc7')][_0x4069('0x3e')]({'channelId':_0x2974ce,'revisionId':_0x2a1bdf['id']})[_0x4069('0x1e')](_0x51aa5d=>{_0x2a1bdf['_update']({'diffData':_0x51aa5d[_0x4069('0x113')]},!0x0);});}}[_0x4069('0xa1')](){this[_0x4069('0x10c')]=null,this[_0x4069('0x116')](),this[_0x4069('0xd4')]&&this['_changeView'][_0x4069('0xf0')](),this[_0x4069('0xd4')]=null,this['_changeIdToChange'][_0x4069('0xd')](),this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0x31')]({'isUndoable':!0x1},_0xe99b03=>{for(const _0x21a64d of this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0xb4')]['getRootNames']())_0xe99b03[_0x4069('0x1f')](_0x21a64d);});}[_0x4069('0x71')](_0x4553e0){const _0x36e7f1=[],_0x2d5e49=new Map();for(const _0x101ad2 of this['editor']['model'][_0x4069('0xb4')][_0x4069('0xb3')]()){const _0x248a14=this[_0x4069('0x3')]['editing'][_0x4069('0x6d')]['getDomRoot'](_0x101ad2);if(!_0x248a14)continue;const _0x3d5c6d=_0x248a14[_0x4069('0xe8')]()[_0x4069('0x8f')](0x0);_0x3d5c6d&&(_0x36e7f1[_0x4069('0xc5')](_0x101ad2),_0x2d5e49[_0x4069('0x84')](_0x101ad2,_0x3d5c6d));}return _0x36e7f1[_0x4069('0x10')]((_0x4903a4,_0x5bfd03)=>{const _0x1090e7=_0x2d5e49[_0x4069('0xfb')](_0x4903a4),_0x4c1717=_0x2d5e49['get'](_0x5bfd03);return _0x1090e7['y']-_0x4c1717['y']||_0x1090e7['x']-_0x4c1717['x'];}),(_0x4553e0=_0x4553e0[_0x4069('0x4a')](_0x3fcbbb=>_0x36e7f1[_0x4069('0x5')](_0x3fcbbb['rootName'])))[_0x4069('0x10')]((_0x17b9af,_0x104cff)=>_0x36e7f1['indexOf'](_0x17b9af[_0x4069('0xed')])-_0x36e7f1['indexOf'](_0x104cff[_0x4069('0xed')])),_0x4553e0;}[_0x4069('0x14')](_0x15e04f){const _0x3c5abb=Array[_0x4069('0x18')](_0x15e04f[_0x4069('0x35')])['filter'](([_0x1bdc1c,_0x5da54f])=>_0x1bdc1c['startsWith'](_0x4069('0x13'))&&!_0x5da54f[_0x4069('0x41')]),_0x21c35d=Array['from'](this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0x86')](_0x15e04f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3c5abb['length'])for(const _0x519505 of _0x21c35d){const [_0x4323c4,_0x2df8ee]=_0x3c5abb[0x0],[,_0x2bbb66,_0x388a72]=_0x4323c4[_0x4069('0x30')](':');if(_0x2df8ee[_0x4069('0x9b')]['isEqual'](_0x519505['nextPosition'])&&_0x3c5abb[_0x4069('0xd3')](),(_0x519505[_0x4069('0xdd')][_0x4069('0x114')](_0x2df8ee[_0x4069('0xa0')])||_0x519505['previousPosition']['isAfter'](_0x2df8ee[_0x4069('0xa0')]))&&(_0x4069('0xa5')==_0x2bbb66?_0x519505[_0x4069('0x2c')]={'userId':_0x388a72}:'deletion'==_0x2bbb66&&(_0x519505[_0x4069('0xa')]={'userId':_0x388a72})),0x0==_0x3c5abb['length'])break;}return _0x21c35d;}[_0x4069('0x76')](_0x421cbf){const _0x160607=new Map();for(let _0x1a03f2=0x0;_0x1a03f2<_0x421cbf[_0x4069('0x37')];_0x1a03f2++)_0x4069('0x77')===_0x421cbf[_0x1a03f2][_0x4069('0x8d')]?(_0x421cbf[_0x1a03f2]['item'][_0x4069('0xd8')]=_0x1a03f2,_0x421cbf[_0x1a03f2][_0x4069('0x8f')][_0x4069('0x5e')]=_0x1a03f2):(_0x4069('0x119')===_0x421cbf[_0x1a03f2][_0x4069('0x8d')]?_0x421cbf[_0x1a03f2][_0x4069('0x8f')][_0x4069('0xd8')]=_0x1a03f2:_0x4069('0x60')===_0x421cbf[_0x1a03f2][_0x4069('0x8d')]&&(_0x421cbf[_0x1a03f2][_0x4069('0x8f')][_0x4069('0x5e')]=_0x1a03f2),_0x160607[_0x4069('0x84')](_0x421cbf[_0x1a03f2]['id'],_0x1a03f2));for(const _0x3893bb of _0x160607[_0x4069('0x6c')]())'elementStart'===_0x421cbf[_0x3893bb][_0x4069('0x8d')]?_0x421cbf[_0x3893bb][_0x4069('0x8f')][_0x4069('0x5e')]=_0x160607[_0x4069('0xfb')](_0x421cbf[_0x3893bb][_0x4069('0xf4')]):'elementEnd'===_0x421cbf[_0x3893bb]['type']&&(_0x421cbf[_0x3893bb][_0x4069('0x8f')][_0x4069('0xd8')]=_0x160607['get'](_0x421cbf[_0x3893bb][_0x4069('0xf4')]));}[_0x4069('0x94')](_0x33716c){for(let _0x57d58e=0x0;_0x57d58e<_0x33716c[_0x4069('0x37')];_0x57d58e++){if('elementStart'===_0x33716c[_0x57d58e][_0x4069('0x8d')])_0x33716c[_0x57d58e][_0x4069('0x8f')][_0x4069('0xd8')]=_0x57d58e;else{if(_0x4069('0x60')===_0x33716c[_0x57d58e][_0x4069('0x8d')]){_0x33716c[_0x57d58e]['item'][_0x4069('0x5e')]=_0x57d58e;const _0x58ee28=_0x33716c[_0x57d58e][_0x4069('0x8f')][_0x4069('0xd8')];_0x33716c[_0x58ee28][_0x4069('0xf4')]=_0x33716c[_0x57d58e]['id'],_0x33716c[_0x57d58e][_0x4069('0xf4')]=_0x33716c[_0x58ee28]['id'];}else _0x33716c[_0x57d58e][_0x4069('0x8f')][_0x4069('0xd8')]=_0x57d58e,_0x33716c[_0x57d58e][_0x4069('0x8f')][_0x4069('0x5e')]=_0x57d58e,_0x33716c[_0x57d58e]['pairId']=null;}_0x33716c[_0x57d58e][_0x4069('0x58')]||(_0x33716c[_0x57d58e][_0x4069('0x58')]=[],_0x33716c[_0x57d58e]['markersEnd']=[]);}}[_0x4069('0xc1')](_0x201b3f,_0xb4ff96){const _0x5ebe1f=_0x201b3f['filter'](_0x213f1c=>!_0x213f1c[_0x4069('0x2c')]);for(let _0x4fd609=0x0;_0x4fd609<_0xb4ff96[_0x4069('0x37')];_0x4fd609++)_0xb4ff96[_0x4fd609][_0x4069('0x2c')]&&(_0x5ebe1f[_0x4fd609][_0x4069('0x2c')]=_0xb4ff96[_0x4fd609]['isAdded']);}[_0x4069('0xec')](_0x311e5c){const _0xe8348e=JSON[_0x4069('0x85')](_0x311e5c),_0x7067c=this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0x6d')]['document'],_0x1c0065=new _0x4df735(_0x7067c,_0xe8348e['map'](_0x3c5b62=>this[_0x4069('0x79')](_0x3c5b62)));return this[_0x4069('0x3')][_0x4069('0x11')][_0x4069('0xab')](_0x1c0065);}['_getViewObj'](_0x2a930b){const _0x3642b0=this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0x6d')][_0x4069('0xb4')];if(_0x4069('0xa8')==typeof _0x2a930b)return new _0x50a58d(_0x3642b0,_0x2a930b);{const _0x1c3258=_0x2a930b[_0x4069('0x7d')]['map'](_0x38cdf2=>this[_0x4069('0x79')](_0x38cdf2));return new(tt[_0x2a930b['type']]||_0x525592)(_0x3642b0,_0x2a930b['name'],_0x2a930b[_0x4069('0x55')],_0x1c3258);}}[_0x4069('0x26')](_0x4273f7,_0x2066c4=null){const _0xa28393=this['repository'][_0x4069('0x3e')](_0x4273f7),_0x33e0fb=_0x2066c4?this['repository'][_0x4069('0x3e')](_0x2066c4):null,_0x2c0998=this[_0x4069('0x107')](_0xa28393,_0x33e0fb),_0x4fd8da=_0x2c0998[_0x2c0998[_0x4069('0x37')]-0x1],_0x3178ce=new Map(),_0x19b739={'model':{},'attributes':{},'changes':[]},_0x5d53aa=new Set(),_0x11328b=new Map();for(let _0x3d16dc=_0x2c0998['length']-0x1;_0x3d16dc>=0x0;_0x3d16dc--){const _0x2679d6=_0x2c0998[_0x3d16dc];for(const _0x3298f1 of Object[_0x4069('0x95')](_0x2679d6[_0x4069('0x113')]))if(_0x2679d6[_0x4069('0x113')][_0x3298f1][_0x4069('0x101')]){const _0x41bd84=_0x2679d6[_0x4069('0x113')][_0x3298f1]['attachChange'];_0x41bd84[_0x4069('0xd5')]?(_0x5d53aa[_0x4069('0xb2')](_0x3298f1),_0x11328b[_0x4069('0x27')](_0x3298f1)&&_0x11328b['get'](_0x3298f1)[_0x4069('0x89')]==_0x41bd84['userId']?_0x11328b['delete'](_0x3298f1):_0x11328b[_0x4069('0x84')](_0x3298f1,_0x41bd84)):_0x11328b['has'](_0x3298f1)?(_0x5d53aa[_0x4069('0xac')](_0x3298f1),_0x11328b['delete'](_0x3298f1)):(_0x5d53aa['add'](_0x3298f1),_0x11328b[_0x4069('0x84')](_0x3298f1,_0x41bd84));}else _0x5d53aa['add'](_0x3298f1);}for(const _0x320427 of _0x5d53aa){const _0x2cb3b8=_0x11328b[_0x4069('0x27')](_0x320427)&&!_0x11328b[_0x4069('0xfb')](_0x320427)[_0x4069('0xd5')];let _0x20d0b3=_0x2cb3b8?_0x2c0998[_0x4069('0x37')]-0x1:0x0;const _0x3dbaeb=_0x2cb3b8?-0x1:0x1;for(;_0x2c0998[_0x20d0b3];){const _0x4dd108=_0x2c0998[_0x20d0b3];if(_0x4dd108['diffData'][_0x320427]){const _0x524f29=_0x2cb3b8?_0x4dd108[_0x4069('0x113')][_0x320427][_0x4069('0x70')]:_0x4dd108['diffData'][_0x320427]['attributesAfter'];_0x19b739[_0x4069('0x55')][_0x320427]=_0x524f29?_0x389537(_0x524f29):{};break;}_0x20d0b3+=_0x3dbaeb;}}for(const _0x66f736 of _0x2c0998){_0x66f736[_0x4069('0xba')]={};for(const _0x7495c1 of _0x66f736[_0x4069('0x20')])_0x3178ce[_0x4069('0x84')](_0x7495c1['id'],_0x7495c1);for(const _0x1e0270 of _0x5d53aa){const _0x1447ab=_0x66f736[_0x4069('0x113')][_0x1e0270]?_0x66f736[_0x4069('0x113')][_0x1e0270][_0x4069('0x9')]:'[]',_0x4577aa=_0x66f736[_0x4069('0x113')][_0x1e0270]?_0x66f736[_0x4069('0x113')][_0x1e0270][_0x4069('0xb1')]:'[]';_0x66f736['model'][_0x1e0270]={'insertions':this['_makeModelFromViewString'](_0x1447ab),'deletions':this[_0x4069('0xec')](_0x4577aa)};}}for(const _0x34ece6 of _0x5d53aa){let _0x18ff7a=null,_0x590cad=0x0;const _0x3616c5=new Map(Array[_0x4069('0x18')](_0xa28393['model'][_0x34ece6][_0x4069('0x9')][_0x4069('0x35')])[_0x4069('0x4a')](([_0x16ef34])=>!_0x16ef34[_0x4069('0xaa')](_0x4069('0x13'))));let _0xdd6373=0x0;for(const _0x55d672 of _0x2c0998){const _0x243ae4=this['_makeTape'](_0x55d672[_0x4069('0xba')][_0x34ece6]['insertions']);_0x55d672==_0xa28393?(_0x18ff7a=_0x243ae4,_0x590cad=_0x18ff7a['length'],_0x18ff7a['forEach'](_0xe657d4=>{_0xe657d4['id']=_0xdd6373++;}),this[_0x4069('0x94')](_0x18ff7a)):this[_0x4069('0xc1')](_0x18ff7a,_0x243ae4);const _0x2bfdb5=_0x18ff7a[_0x4069('0x4a')](_0xc2460b=>!_0xc2460b[_0x4069('0x2c')])['map'](_0x42cf30=>_0x42cf30['id']);let _0x549ce3=0x0;const _0x208100=this[_0x4069('0x14')](_0x55d672['model'][_0x34ece6][_0x4069('0xb1')]);_0x208100['forEach'](_0x1900c8=>{_0x1900c8[_0x4069('0xa')]?_0x1900c8['id']=_0x590cad++:_0x1900c8['id']=_0x2bfdb5[_0x549ce3++];}),this[_0x4069('0x94')](_0x208100),this[_0x4069('0xc0')](_0x18ff7a,_0x4069('0x2c')),this['_setDistance'](_0x208100,_0x4069('0xa')),_0x55d672==_0xa28393&&this['_markMarkers'](_0x18ff7a,_0x3616c5),_0x18ff7a=this[_0x4069('0x49')](_0x18ff7a,_0x208100),this[_0x4069('0x76')](_0x18ff7a),this[_0x4069('0xc0')](_0x18ff7a,_0x4069('0xa'));}_0x18ff7a=_0x18ff7a['filter'](_0x3e46cb=>!(_0x3e46cb['isAdded']&&_0x3e46cb['isRemoved']));const _0x37eccf=new Map(_0x4fd8da[_0x4069('0xba')][_0x34ece6][_0x4069('0xb1')]['markers']),_0xe62e6c=new Set(_0x3616c5[_0x4069('0x95')]());for(const _0x4bcc66 of _0x37eccf['keys']())_0xe62e6c[_0x4069('0xac')](_0x4bcc66);this[_0x4069('0xef')](_0x18ff7a,_0xe62e6c),this[_0x4069('0x118')](_0x18ff7a),_0x18ff7a=this[_0x4069('0x11d')](_0x18ff7a),_0x18ff7a=this[_0x4069('0xb7')](_0x18ff7a),_0x18ff7a=this['_removeUnsupportedChanges'](_0x18ff7a);const {root:_0x494e52,changes:_0x4229de}=this[_0x4069('0x81')](_0x18ff7a,_0x3178ce,_0x34ece6);_0x19b739[_0x4069('0xba')][_0x34ece6]=_0x494e52;const _0x5945eb=_0x11328b[_0x4069('0xfb')](_0x34ece6);if(_0x5945eb){const _0x23a41c=_0x3178ce['get'](_0x5945eb[_0x4069('0x89')]),_0x514fab=new _0x51339a({'author':_0x23a41c,'type':_0x5945eb[_0x4069('0xd5')]?_0x4069('0xb2'):_0x4069('0x100'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x34ece6});_0x4229de[_0x4069('0x44')](_0x514fab),_0x19b739[_0x4069('0x55')][_0x34ece6][_0x4069('0x8c')]=_0x514fab['id'];}_0x19b739['changes']=_0x19b739[_0x4069('0xcc')][_0x4069('0xcd')](_0x4229de);}return _0x19b739;}['_markMarkers'](_0xac716e,_0x430f51){for(let _0x3892d2=0x0;_0x3892d2<_0xac716e['length'];_0x3892d2++)for(const [_0x262049,_0x37102c]of _0x430f51)_0x37102c[_0x4069('0xa0')][_0x4069('0x114')](_0xac716e[_0x3892d2][_0x4069('0xdd')])&&_0xac716e[_0x3892d2][_0x4069('0x58')][_0x4069('0xc5')](_0x262049),_0x37102c[_0x4069('0x9b')][_0x4069('0x114')](_0xac716e[_0x3892d2][_0x4069('0x65')])&&_0xac716e[_0x3892d2][_0x4069('0x80')]['push'](_0x262049);}[_0x4069('0x49')](_0x1d83f4,_0x58f34d){let _0x378fcf=[],_0x1b803d=0x0,_0x3878a3=0x0;for(;_0x1b803d<_0x1d83f4[_0x4069('0x37')]||_0x3878a3<_0x58f34d[_0x4069('0x37')];){const _0x529dca=_0x1d83f4[_0x1b803d]||{},_0xd78438=_0x58f34d[_0x3878a3]||{};if(_0x529dca['id']==_0xd78438['id'])_0x1b803d++,_0x3878a3++,_0x378fcf[_0x4069('0xc5')](_0x529dca);else{if(_0xd78438[_0x4069('0xa')]&&_0x529dca[_0x4069('0x2c')]){const {commonTape:_0x5b6ea3,iEnd:_0x110c25,jEnd:_0x40eda2}=this['_threeWayMerge'](_0x1d83f4,_0x1b803d,_0x58f34d,_0x3878a3);_0x378fcf=_0x378fcf[_0x4069('0xcd')](_0x5b6ea3),_0x1b803d=_0x110c25,_0x3878a3=_0x40eda2;}else _0xd78438[_0x4069('0xa')]?(_0x3878a3++,_0x378fcf['push'](_0xd78438)):(_0x1b803d++,_0x378fcf[_0x4069('0xc5')](_0x529dca));}}return _0x378fcf;}[_0x4069('0xef')](_0x195bf2,_0x494b06){const _0x345891=[];for(let _0x4b2a78=0x0;_0x4b2a78<_0x195bf2[_0x4069('0x37')];_0x4b2a78++){for(let _0x79f895=0x0;_0x79f895<_0x195bf2[_0x4b2a78][_0x4069('0x58')][_0x4069('0x37')];_0x79f895++){const _0x30ac68=_0x195bf2[_0x4b2a78][_0x4069('0x58')][_0x79f895];if(!_0x494b06[_0x4069('0x27')](_0x30ac68))continue;const {group:_0x5d4dae,type:_0x53bd27,authorId:_0x304a89}=_0x54675a(_0x30ac68);'revision-suggestion'!=_0x5d4dae||'insertion'!=_0x53bd27&&_0x4069('0x99')!=_0x53bd27||(_0x345891[_0x4069('0x44')]({'type':_0x53bd27,'name':_0x30ac68,'userId':_0x304a89}),_0x195bf2[_0x4b2a78]['markersStart'][_0x4069('0x2a')](_0x79f895,0x1),_0x79f895--);}_0x25fc60(_0x195bf2[_0x4b2a78]);for(let _0x788006=0x0;_0x788006<_0x195bf2[_0x4b2a78][_0x4069('0x80')][_0x4069('0x37')];_0x788006++){const _0x4553e6=_0x195bf2[_0x4b2a78][_0x4069('0x80')][_0x788006];if(!_0x494b06[_0x4069('0x27')](_0x4553e6))continue;const {group:_0x5c7c58,type:_0x444e72}=_0x54675a(_0x4553e6);if('revision-suggestion'!=_0x5c7c58||_0x4069('0xa5')!=_0x444e72&&_0x4069('0x99')!=_0x444e72)continue;_0x195bf2[_0x4b2a78]['markersEnd'][_0x4069('0x2a')](_0x788006,0x1),_0x788006--;const _0x149697=_0x345891['findIndex'](_0xcd5386=>_0xcd5386[_0x4069('0xb8')]==_0x4553e6);_0x149697>-0x1&&_0x345891['splice'](_0x149697,0x1);}}function _0x54675a(_0x282e1f){const _0x27f6dd=_0x282e1f[_0x4069('0x30')](':');return{'group':_0x27f6dd[0x0],'type':_0x27f6dd[0x1],'subType':_0x27f6dd[_0x4069('0x37')]>=0x5?_0x27f6dd[0x2]:null,'id':_0x27f6dd['length']<0x5?_0x27f6dd[0x2]:_0x27f6dd[0x3],'authorId':_0x27f6dd[_0x4069('0x37')]<0x5?_0x27f6dd[0x3]:_0x27f6dd[0x4],'markerCount':0x6==_0x27f6dd[_0x4069('0x37')]?_0x27f6dd[0x5]:null};}function _0x25fc60(_0xc49a6f){for(let _0x368fec=0x0;_0x368fec<_0x345891[_0x4069('0x37')];_0x368fec++){if(_0xc49a6f[_0x4069('0x2c')]&&_0x4069('0xa5')==_0x345891[_0x368fec][_0x4069('0x8d')])return _0xc49a6f['isAddSuggestion']=_0x345891[_0x368fec],void delete _0xc49a6f['isAdded'];if(!_0xc49a6f[_0x4069('0x2c')]&&!_0xc49a6f['isRemoved']&&'deletion'==_0x345891[_0x368fec]['type'])return void(_0xc49a6f[_0x4069('0xda')]=_0x345891[_0x368fec]);}}}[_0x4069('0xc0')](_0x18289c,_0x93efeb){let _0x4cce20=0x0,_0x1945d9=!0x1;const _0x4d4897=new Map();for(const _0x1f5b6f of _0x18289c)_0x1f5b6f[_0x93efeb]?_0x1945d9&&(_0x4cce20++,_0x1945d9=!0x1):(_0x4cce20++,_0x1945d9=!0x0),_0x4d4897['set'](_0x1f5b6f['id'],_0x4cce20);for(let _0xc37776=0x0;_0xc37776<_0x18289c[_0x4069('0x37')];_0xc37776++){if(_0x4069('0xa')==_0x93efeb&&_0x18289c[_0xc37776]['isAdded']||_0x4069('0x2c')==_0x93efeb&&_0x18289c[_0xc37776][_0x4069('0xa')])continue;if(_0x4069('0x77')==_0x18289c[_0xc37776]['type']){_0x18289c[_0xc37776][_0x4069('0xf6')]=0x0;continue;}const _0x30c586=_0x4d4897[_0x4069('0xfb')](_0x18289c[_0xc37776][_0x4069('0xf4')]),_0x3bf4a9=_0x4d4897[_0x4069('0xfb')](_0x18289c[_0xc37776]['id']);_0x18289c[_0xc37776]['distance']=_0x30c586-_0x3bf4a9;}}[_0x4069('0x107')](_0x17a827,_0x4111b3,_0x319b0a=!0x1){const _0x585668=[];let _0x4c45f8=this[_0x4069('0xf3')][_0x4069('0x9a')](_0x17a827),_0x8d3f5d=this[_0x4069('0xf3')][_0x4069('0x9a')](_0x4111b3);for(-0x1==_0x8d3f5d&&(_0x8d3f5d=this[_0x4069('0xf3')]['_revisions'][_0x4069('0x37')],_0x319b0a=!0x1);_0x4c45f8<_0x8d3f5d;)_0x585668[_0x4069('0xc5')](this[_0x4069('0xf3')][_0x4069('0x3e')](_0x4c45f8)),_0x4c45f8++;return _0x319b0a&&_0x585668[_0x4069('0xc5')](this[_0x4069('0xf3')][_0x4069('0x3e')](_0x4c45f8)),_0x585668;}['_threeWayMerge'](_0x1bdc3c,_0x120120,_0x54f5b8,_0xd90563){const _0x55d47f=this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0xc4')];let _0x42e6a4=_0x120120;for(;_0x1bdc3c[_0x42e6a4]&&_0x1bdc3c[_0x42e6a4][_0x4069('0x2c')];)_0x42e6a4++;let _0x4a21ef=_0xd90563;for(;_0x54f5b8[_0x4a21ef]&&_0x54f5b8[_0x4a21ef][_0x4069('0xa')];)_0x4a21ef++;_0x371b84(_0x1bdc3c,_0x120120,_0x42e6a4),_0x371b84(_0x54f5b8,_0xd90563,_0x4a21ef);const _0x2b20c2=_0x54f5b8[_0x4069('0x105')](_0xd90563,_0x4a21ef)[_0x4069('0xcd')](_0x1bdc3c[_0x4069('0x105')](_0x120120,_0x42e6a4));return _0x2b20c2['sort']((_0x431277,_0x3b2006)=>_0x431277[_0x4069('0x104')]!=_0x3b2006[_0x4069('0x104')]?_0x431277['side']-_0x3b2006[_0x4069('0x104')]:_0x431277[_0x4069('0xe1')]!=_0x3b2006[_0x4069('0xe1')]?_0x431277[_0x4069('0xe1')]-_0x3b2006['level']:_0x431277[_0x4069('0xf6')]!=_0x3b2006[_0x4069('0xf6')]?_0x3b2006[_0x4069('0xf6')]-_0x431277[_0x4069('0xf6')]:!!_0x431277[_0x4069('0x2c')]!=!!_0x3b2006[_0x4069('0x2c')]?-0x1==_0x431277['side']||0x0==_0x431277[_0x4069('0x104')]?_0x431277['isAdded']?-0x1:0x1:_0x431277[_0x4069('0x2c')]?0x1:-0x1:_0x431277['index']-_0x3b2006[_0x4069('0x96')]),{'commonTape':_0x2b20c2,'iEnd':_0x42e6a4,'jEnd':_0x4a21ef};function _0x371b84(_0x29fc6d,_0x2dd8b8,_0x47652d){let _0x4aee96=-0x1,_0x4129a6=Number[_0x4069('0x34')],_0x49f896=!0x0;for(let _0xd277c4=_0x2dd8b8;_0xd277c4<_0x47652d;_0xd277c4++)if(_0x55d47f[_0x4069('0x39')](_0x29fc6d[_0xd277c4][_0x4069('0x8f')])||(_0x49f896=!0x1),_0x29fc6d[_0xd277c4][_0x4069('0x8f')]['startIndex']<_0x2dd8b8&&(_0x4aee96=_0xd277c4),_0x29fc6d[_0xd277c4][_0x4069('0x8f')]['endIndex']>=_0x47652d){_0x4129a6=_0xd277c4;break;}_0x49f896&&(_0x4aee96=_0x47652d-0x1);for(let _0x118d2f=_0x2dd8b8;_0x118d2f<_0x47652d;_0x118d2f++)_0x29fc6d[_0x118d2f][_0x4069('0x104')]=_0x118d2f<=_0x4aee96?-0x1:_0x118d2f<_0x4129a6?0x0:0x1,_0x29fc6d[_0x118d2f][_0x4069('0x96')]=_0x118d2f;let _0x316eb4=0x0;for(let _0x5987bd=_0x2dd8b8;_0x5987bd<=_0x4aee96;_0x5987bd++)0x0==_0x29fc6d[_0x5987bd][_0x4069('0xf6')]?_0x29fc6d[_0x5987bd][_0x4069('0xe1')]=_0x316eb4:(_0x316eb4++,_0x29fc6d[_0x5987bd][_0x4069('0xe1')]=_0x316eb4,_0x316eb4++);for(let _0x50b387=_0x2dd8b8;_0x50b387<_0x47652d;_0x50b387++)0x0==_0x29fc6d[_0x50b387][_0x4069('0x104')]&&(_0x29fc6d[_0x50b387][_0x4069('0xe1')]=_0x316eb4);_0x316eb4=0x0;for(let _0x302538=_0x47652d-0x1;_0x302538>=_0x4129a6;_0x302538--)0x0==_0x29fc6d[_0x302538][_0x4069('0xf6')]?_0x29fc6d[_0x302538]['level']=_0x316eb4:(_0x316eb4--,_0x29fc6d[_0x302538]['level']=_0x316eb4,_0x316eb4--);}}[_0x4069('0x118')](_0x24a652){const _0x360255=new Map(),_0x334095=this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0xc4')];for(let _0x597d5a=0x1;_0x597d5a<_0x24a652['length'];_0x597d5a++){let _0x28faed,_0x3ec00f,_0x9a5a29;const _0x5053fb=_0x24a652[_0x597d5a],_0x4496f7=_0x24a652[_0x597d5a-0x1];if('text'==_0x5053fb[_0x4069('0x8d')])continue;if(_0x5053fb[_0x4069('0x8d')]!=_0x4496f7[_0x4069('0x8d')])continue;if(!_0x334095[_0x4069('0xfe')](_0x4496f7['item'])||_0x334095[_0x4069('0x120')](_0x4496f7['item']))continue;if(!_0x334095[_0x4069('0xfe')](_0x5053fb[_0x4069('0x8f')])||_0x334095[_0x4069('0x120')](_0x5053fb['item']))continue;if((_0x24a652[_0x597d5a][_0x4069('0x2c')]||_0x24a652[_0x597d5a][_0x4069('0x21')])&&_0x24a652[_0x597d5a-0x1][_0x4069('0xa')])_0x28faed=_0x24a652[_0x597d5a],_0x3ec00f=_0x24a652[_0x597d5a-0x1],_0x9a5a29=_0x597d5a-0x1;else{if(!_0x24a652[_0x597d5a]['isRemoved']||!_0x24a652[_0x597d5a-0x1][_0x4069('0x2c')]&&!_0x24a652[_0x597d5a-0x1][_0x4069('0x21')])continue;_0x28faed=_0x24a652[_0x597d5a-0x1],_0x3ec00f=_0x24a652[_0x597d5a],_0x9a5a29=_0x597d5a;}const _0x314bda=_0x28faed[_0x4069('0xe1')]==_0x3ec00f[_0x4069('0xe1')],_0x41d14d=Math[_0x4069('0xfa')](_0x28faed[_0x4069('0xe1')])<Math[_0x4069('0xfa')](_0x3ec00f[_0x4069('0xe1')])&&0x0==_0x3ec00f[_0x4069('0xf6')];(_0x314bda||_0x41d14d)&&(_0x360255[_0x4069('0x84')](_0x3ec00f['id'],_0x28faed['id']),_0x24a652[_0x4069('0x2a')](_0x9a5a29,0x1),_0x597d5a--,_0x28faed[_0x4069('0x2c')]=!0x1);}for(let _0x302803=0x0;_0x302803<_0x24a652[_0x4069('0x37')];_0x302803++)_0x360255['has'](_0x24a652[_0x302803][_0x4069('0xf4')])&&(_0x24a652[_0x302803][_0x4069('0xf4')]=_0x360255[_0x4069('0xfb')](_0x24a652[_0x302803][_0x4069('0xf4')]));}['_removeMissingPairs'](_0x496592){const _0x4a1232=new Set(_0x496592[_0x4069('0x74')](_0x2dba71=>_0x2dba71['id']));for(let _0x250e42=0x0;_0x250e42<_0x496592[_0x4069('0x37')];_0x250e42++)_0x4a1232[_0x4069('0x27')](_0x496592[_0x250e42]['pairId'])||0x0==_0x496592[_0x250e42][_0x4069('0xf6')]||(_0x496592[_0x250e42][_0x4069('0xc8')]=!0x0);return _0x496592[_0x4069('0x4a')](_0x513a24=>!_0x513a24[_0x4069('0xc8')]);}[_0x4069('0xb7')](_0x3f919d){const _0x1e10fe=new Set();for(let _0x458a88=0x0;_0x458a88<_0x3f919d['length'];_0x458a88++){if(_0x1e10fe[_0x4069('0x27')](_0x3f919d[_0x458a88]['id'])&&_0x3f919d[_0x458a88][_0x4069('0xa')]&&(_0x3f919d[_0x458a88]['isIncorrect']=!0x0),_0x3f919d[_0x458a88][_0x4069('0xc8')])continue;if(0x0==_0x3f919d[_0x458a88]['distance'])continue;if(_0x4069('0x119')!=_0x3f919d[_0x458a88][_0x4069('0x8d')])continue;if(null==_0x3f919d[_0x458a88][_0x4069('0xf4')])continue;let _0x34b151=_0x458a88+0x1,_0x15f7d2=0x0;for(;_0x3f919d[_0x34b151]['id']!=_0x3f919d[_0x458a88][_0x4069('0xf4')];)_0x4069('0x119')==_0x3f919d[_0x34b151]['type']?_0x15f7d2++:_0x4069('0x60')==_0x3f919d[_0x34b151][_0x4069('0x8d')]&&_0x15f7d2--,_0x34b151++;if(0x0!=_0x15f7d2){if(_0x3f919d[_0x458a88][_0x4069('0xa')])_0x3f919d[_0x458a88]['isIncorrect']=!0x0;else for(;_0x34b151!=_0x458a88;)_0x3f919d[_0x34b151]['isRemoved']&&0x0!=_0x3f919d[_0x34b151][_0x4069('0xf6')]&&(_0x3f919d[_0x34b151]['isIncorrect']=!0x0,_0x1e10fe[_0x4069('0xb2')](_0x3f919d[_0x34b151][_0x4069('0xf4')])),_0x34b151--;}}return _0x3f919d['filter'](_0x19dc12=>!_0x19dc12[_0x4069('0xc8')]);}['_removeUnsupportedChanges'](_0x7fd66d){const _0x208984=this['editor'][_0x4069('0xba')][_0x4069('0xc4')];for(let _0x34e9da=0x0;_0x34e9da<_0x7fd66d[_0x4069('0x37')];_0x34e9da++){if(!(_0x7fd66d[_0x34e9da][_0x4069('0x2c')]||_0x7fd66d[_0x34e9da][_0x4069('0x21')]||_0x7fd66d[_0x34e9da][_0x4069('0xa')]||_0x7fd66d[_0x34e9da]['isRemoveSuggestion']))continue;if(0x0==_0x7fd66d[_0x34e9da][_0x4069('0xf6')])continue;const _0x55841e=_0x7fd66d[_0x34e9da][_0x4069('0x8f')];_0x208984[_0x4069('0xfe')](_0x55841e)||_0x208984['isLimit'](_0x55841e)||(_0x7fd66d[_0x34e9da][_0x4069('0x2c')]&&delete _0x7fd66d[_0x34e9da]['isAdded'],_0x7fd66d[_0x34e9da]['isAddSuggestion']&&delete _0x7fd66d[_0x34e9da]['isAddSuggestion'],_0x7fd66d[_0x34e9da]['isRemoveSuggestion']&&delete _0x7fd66d[_0x34e9da]['isRemoveSuggestion'],_0x7fd66d[_0x34e9da]['isRemoved']&&(_0x7fd66d[_0x34e9da]['isIncorrect']=!0x0));}return _0x7fd66d['filter'](_0x19e8ec=>!_0x19e8ec[_0x4069('0xc8')]);}[_0x4069('0x81')](_0x1f3899,_0x30f247,_0x53dd29){const _0x44da9f=new _0x4897c4(),_0x4634d7=[],_0x443c57=new Map(),_0xca5291=this[_0x4069('0x3')][_0x4069('0xba')],_0x33e163=_0xca5291[_0x4069('0xc4')],_0x5da7c3=[_0x44da9f],_0x36b46d={},_0x52e3fd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x108eb0=null;const _0x5277f9=[0x0];for(let _0x3da970=0x0;_0x3da970<_0x1f3899[_0x4069('0x37')];_0x3da970++){let _0x2b9fb1,_0x112d07;if('elementStart'===_0x1f3899[_0x3da970][_0x4069('0x8d')]){_0x2b9fb1=_0xca5291['createPositionFromPath'](_0x44da9f,_0x5277f9);const _0x32217e=new _0x3c078a(_0x1f3899[_0x3da970][_0x4069('0x8f')][_0x4069('0xb8')],_0x1f3899[_0x3da970][_0x4069('0x8f')][_0x4069('0x29')]());_0x5da7c3[0x0][_0x4069('0x2')](_0x32217e),_0x5277f9[_0x4069('0xc5')](0x0),_0x5da7c3[_0x4069('0x44')](_0x32217e),_0x112d07=_0xca5291['createPositionFromPath'](_0x44da9f,_0x5277f9),_0x108eb0=null;}else{if(_0x4069('0x60')===_0x1f3899[_0x3da970]['type'])_0x5da7c3[_0x4069('0xd3')](),_0x2b9fb1=_0xca5291[_0x4069('0xb9')](_0x44da9f,_0x5277f9),_0x5277f9[_0x4069('0xa2')](),_0x5277f9[_0x5277f9[_0x4069('0x37')]-0x1]++,_0x112d07=_0xca5291[_0x4069('0xb9')](_0x44da9f,_0x5277f9),_0x108eb0=null;else{if(_0x2b9fb1=_0xca5291[_0x4069('0xb9')](_0x44da9f,_0x5277f9),_0x108eb0&&_0x3849ad(_0x108eb0,_0x1f3899[_0x3da970][_0x4069('0x8f')]))_0x108eb0[_0x4069('0xcf')]+=_0x1f3899[_0x3da970][_0x4069('0x8f')][_0x4069('0x11')];else{const _0x5ba110=new _0x12ea09(_0x1f3899[_0x3da970]['item'][_0x4069('0x11')],_0x1f3899[_0x3da970][_0x4069('0x8f')][_0x4069('0x29')]());_0x5da7c3[0x0][_0x4069('0x2')](_0x5ba110),_0x108eb0=_0x5ba110;}_0x5277f9[_0x5277f9['length']-0x1]+=_0x1f3899[_0x3da970][_0x4069('0x8f')]['offsetSize'],_0x112d07=_0xca5291[_0x4069('0xb9')](_0x44da9f,_0x5277f9);}}for(const _0x3216d3 of _0x1f3899[_0x3da970][_0x4069('0x58')])_0x443c57[_0x4069('0x84')](_0x3216d3,{'start':_0x2b9fb1,'end':null});_0x101c2b(_0x4069('0xda'),_0x3da970,_0x2b9fb1,_0x112d07),_0x101c2b(_0x4069('0x21'),_0x3da970,_0x2b9fb1,_0x112d07),_0x101c2b(_0x4069('0xa'),_0x3da970,_0x2b9fb1,_0x112d07),_0x101c2b('isAdded',_0x3da970,_0x2b9fb1,_0x112d07);for(const _0x5b6737 of _0x1f3899[_0x3da970][_0x4069('0x80')]){_0x443c57[_0x4069('0xfb')](_0x5b6737)[_0x4069('0x9b')]=_0x112d07;}}for(const [_0x1ca454,_0x2c8526]of _0x443c57){const _0x4b1bcc=this['editor'][_0x4069('0xba')][_0x4069('0xde')](_0x2c8526[_0x4069('0xa0')],_0x2c8526[_0x4069('0x9b')]);_0x44da9f['markers'][_0x4069('0x84')](_0x1ca454,_0x4b1bcc);}return _0x4634d7[_0x4069('0x10')]((_0xbc5816,_0x4a12bb)=>{const _0x10d94d=_0x44da9f[_0x4069('0x35')][_0x4069('0xfb')](_0x4069('0x13')+_0xbc5816['id']),_0x50272a=_0x44da9f[_0x4069('0x35')][_0x4069('0xfb')](_0x4069('0x13')+_0x4a12bb['id']);return _0x10d94d[_0x4069('0xa0')][_0x4069('0x11a')](_0x50272a['start'])?-0x1:_0x10d94d[_0x4069('0xa0')][_0x4069('0x109')](_0x50272a[_0x4069('0xa0')])?0x1:_0x10d94d[_0x4069('0x9b')][_0x4069('0x11a')](_0x50272a['end'])?-0x1:_0x10d94d['end'][_0x4069('0x109')](_0x50272a[_0x4069('0x9b')])?0x1:_0x4069('0xb2')===_0xbc5816[_0x4069('0x8d')]?-0x1:0x1;}),{'root':_0x44da9f,'changes':_0x4634d7};function _0x101c2b(_0x5557c1,_0x30087a,_0x422a5d,_0x563401){const _0x519f9d=!!_0x1f3899[_0x30087a][_0x5557c1],_0x39fcdc=_0x519f9d?_0x1f3899[_0x30087a][_0x5557c1][_0x4069('0x89')]:null,_0x40a6e6=_0x30087a===_0x1f3899[_0x4069('0x37')]-0x1,_0x3e8971=_0x52e3fd[_0x5557c1][0x0],_0x514db9=_0x33e163[_0x4069('0x78')](_0x1f3899[_0x30087a][_0x4069('0x8f')]);!_0x36b46d[_0x5557c1]&&_0x519f9d?_0x36b46d[_0x5557c1]={'start':_0x422a5d,'tapeItem':_0x1f3899[_0x30087a],'userId':_0x39fcdc,'type':_0x5557c1}:_0x36b46d[_0x5557c1]&&!_0x519f9d?(_0x36b46d[_0x5557c1][_0x4069('0x9b')]=_0x422a5d,_0x47c8e5(_0x36b46d[_0x5557c1]),_0x36b46d[_0x5557c1]=null):_0x36b46d[_0x5557c1]&&_0x519f9d&&_0x36b46d[_0x5557c1]['userId']!==_0x39fcdc&&(_0x36b46d[_0x5557c1][_0x4069('0x9b')]=_0x422a5d,_0x3e8971&&_0x3e8971[_0x4069('0x89')]===_0x36b46d[_0x5557c1][_0x4069('0x89')]||_0x47c8e5(_0x36b46d[_0x5557c1]),_0x36b46d[_0x5557c1]={'start':_0x422a5d,'tapeItem':_0x1f3899[_0x30087a],'userId':_0x39fcdc,'type':_0x5557c1}),_0x36b46d[_0x5557c1]&&_0x514db9&&(_0x4069('0x119')!==_0x1f3899[_0x30087a][_0x4069('0x8d')]||_0x3e8971&&_0x3e8971['userId']===_0x39fcdc||_0x52e3fd[_0x5557c1][_0x4069('0x44')]({'userId':_0x39fcdc,'object':_0x1f3899[_0x30087a][_0x4069('0x8f')],'change':_0x36b46d[_0x5557c1]}),_0x4069('0x60')===_0x1f3899[_0x30087a][_0x4069('0x8d')]&&_0x3e8971&&_0x3e8971[_0x4069('0xd2')]===_0x1f3899[_0x30087a][_0x4069('0x8f')]&&(_0x52e3fd[_0x5557c1]['shift'](),_0x36b46d[_0x5557c1]=_0x3e8971[_0x4069('0x6a')])),_0x36b46d[_0x5557c1]&&_0x40a6e6&&(_0x36b46d[_0x5557c1][_0x4069('0x9b')]=_0x563401,_0x47c8e5(_0x36b46d[_0x5557c1]),_0x36b46d[_0x5557c1]=null);}function _0x47c8e5({start:_0x2030e7,end:_0x2c110e,tapeItem:_0x4c0b38,userId:_0x108984,type:_0x40519b}){const _0x20bb72=_0x4c0b38[_0x4069('0x8f')],_0x407e80=_0xca5291['schema']['isBlock'](_0x20bb72)&&!_0xca5291[_0x4069('0xc4')]['isLimit'](_0x20bb72),_0x21dc20=_0x2030e7[_0x4069('0x117')]==_0x2c110e['parent']&&_0x2c110e['isAtStart'];if(_0x407e80&&_0x21dc20)return;const _0x41ee04=_0xca5291[_0x4069('0xde')](_0x2030e7,_0x2c110e),_0x56eb4a=_0x30f247['get'](_0x108984),_0xe2415f=new _0x51339a({'author':_0x56eb4a,'type':_0x4069('0x2c')==_0x40519b||_0x4069('0x21')==_0x40519b?'add':_0x4069('0x100'),'data':{'isSuggestion':_0x4069('0x21')==_0x40519b||_0x4069('0xda')==_0x40519b},'createdAt':new Date(),'rootName':_0x53dd29});_0x4634d7[_0x4069('0xc5')](_0xe2415f),_0x44da9f[_0x4069('0x35')][_0x4069('0x84')](_0x4069('0x13')+_0xe2415f['id'],_0x41ee04);}function _0x3849ad(_0x3da0f5,_0x10b52d){const _0x19b501=_0x3da0f5[_0x4069('0x29')](),_0x598299=_0x10b52d[_0x4069('0x29')]();for(const _0x16ac55 of _0x19b501){if(_0x16ac55[0x1]!==_0x10b52d[_0x4069('0x8a')](_0x16ac55[0x0]))return!0x1;_0x598299['next']();}return _0x598299['next']()[_0x4069('0x5a')];}}['_setConversion'](){this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')](_0x4069('0x110'))['dataToMarker']({'view':'revision'}),this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')](_0x4069('0x11b'))[_0x4069('0x22')]({'model':_0x4069('0xa9'),'view':_0x2dd219=>{const _0x52af3d=_0x2dd219[_0x4069('0xea')][_0x4069('0x30')](':')[0x1],_0x54635a=this[_0x4069('0xa3')](_0x52af3d);if(!_0x54635a)return null;const _0x116fec=_0x4069('0xb2')==_0x54635a[_0x4069('0x8d')]?_0x4069('0xa5'):_0x4069('0x99'),_0x36b5d9=[_0x4069('0x11f'),_0x4069('0xff')+_0x116fec];return _0x54635a[_0x4069('0x11')][_0x4069('0x88')]&&_0x36b5d9[_0x4069('0xc5')]('ck-suggestion-marker-'+_0x116fec+'-new'),this[_0x4069('0x10c')]==_0x54635a&&_0x36b5d9[_0x4069('0xc5')]('ck-suggestion-marker--active'),{'classes':_0x36b5d9,'attributes':{'data-change-id':_0x52af3d}};}}),this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')]('upcast')[_0x4069('0xb2')](_0x1e1e1b=>{_0x1e1e1b['on'](_0x4069('0x69'),(_0x3c05ee,_0x20851d,_0x473ef4)=>{const _0x2fcb25=_0x20851d[_0x4069('0xdf')]['getChild'](0x0);if(!_0x2fcb25||!_0x2fcb25['is'](_0x4069('0x121'),'code'))return;if(!_0x473ef4['consumable'][_0x4069('0x47')](_0x2fcb25,{'attributes':[_0x4069('0x54'),_0x4069('0xf8')]}))return;const _0x413131=_0x20851d[_0x4069('0x102')][_0x4069('0xa0')][_0x4069('0x117')];_0x473ef4[_0x4069('0x51')][_0x4069('0xa6')](_0x4069('0x54'),_0x2fcb25['getAttribute'](_0x4069('0x54')),_0x413131),_0x473ef4[_0x4069('0x51')]['setAttribute'](_0x4069('0xf8'),_0x2fcb25['getAttribute'](_0x4069('0xf8')),_0x413131);},{'priority':_0x4069('0x66')});}),this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')](_0x4069('0x110'))[_0x4069('0xb2')](_0x27b60d=>{_0x27b60d['on'](_0x4069('0x121'),(_0x460b9e,_0x1477af,_0x43eec4)=>{if(!_0x43eec4[_0x4069('0x9f')]['consume'](_0x1477af['viewItem'],{'attributes':[_0x4069('0x54'),_0x4069('0xf8')]}))return;if(_0x1477af[_0x4069('0x102')]['isCollapsed'])return;const _0x3e88ec=_0x1477af[_0x4069('0x102')]['start'][_0x4069('0x117')];_0x3e88ec[_0x4069('0xf1')](_0x4069('0x54'))||_0x3e88ec[_0x4069('0xf1')](_0x4069('0xc2'))||(_0x43eec4[_0x4069('0x51')][_0x4069('0xa6')](_0x4069('0x54'),_0x1477af['viewItem'][_0x4069('0x8a')](_0x4069('0x54')),_0x3e88ec),_0x43eec4[_0x4069('0x51')]['setAttribute'](_0x4069('0xf8'),_0x1477af[_0x4069('0xdf')][_0x4069('0x8a')](_0x4069('0xf8')),_0x3e88ec));},{'priority':_0x4069('0x66')});}),this[_0x4069('0x3')]['conversion'][_0x4069('0xbb')](_0x4069('0x110'))[_0x4069('0x25')]({'view':{'name':_0x4069('0x108'),'attributes':{'vid':!0x0}},'model':{'key':_0x4069('0xc2'),'value':_0x2a19e0=>_0x2a19e0[_0x4069('0x8a')]('vid')}}),this[_0x4069('0x3')]['model']['schema']['on'](_0x4069('0x12'),(_0x24cfeb,[,_0x3f9afc])=>{[_0x4069('0x54'),_0x4069('0xf8'),_0x4069('0xc2')]['includes'](_0x3f9afc)&&(_0x24cfeb[_0x4069('0x4f')]=!0x0,_0x24cfeb[_0x4069('0x112')]());},{'priority':_0x4069('0x57')}),this['editor']['conversion'][_0x4069('0xbb')]('dataDowncast')[_0x4069('0xb2')](_0x36185b=>{_0x36185b['on']('attribute:vid',(_0x5932e4,_0x1a7005,_0x4444d3)=>{if('\x20'!=_0x1a7005[_0x4069('0x8f')][_0x4069('0x11')]||_0x1a7005[_0x4069('0x8f')][_0x4069('0x10a')][_0x4069('0x5d')]>0x1)return;if(!_0x4444d3[_0x4069('0x9f')][_0x4069('0x47')](_0x1a7005[_0x4069('0x8f')],_0x5932e4[_0x4069('0xb8')]))return;const _0x54c532=_0x4444d3['writer'],_0x254ee6=_0x4444d3[_0x4069('0x7f')][_0x4069('0x9c')](_0x1a7005[_0x4069('0x10f')]);_0x54c532[_0x4069('0xeb')](_0x254ee6,_0x54c532['createAttributeElement'](_0x4069('0x108')));});}),this[_0x4069('0x3')]['conversion'][_0x4069('0xbb')](_0x4069('0x9e'))['markerToData']({'model':_0x4069('0xa9')}),this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0xdc')]['on']('addMarker:revision',function(_0x1e88c8){const _0x25743a=_0x1e88c8['plugins'][_0x4069('0xfb')](_0x4069('0x24'));return(_0x2222ad,_0x462452,_0x1202c9)=>{const _0x5167dc=_0x462452[_0x4069('0xea')][_0x4069('0x30')](':')[0x1],_0x484dfe=_0x25743a[_0x4069('0xa3')](_0x5167dc);if(!_0x484dfe)return null;const _0x2459f2=_0x4069('0xb2')==_0x484dfe['type']?_0x4069('0x30'):_0x4069('0xae');if(!_0x1202c9['consumable'][_0x4069('0xee')](_0x462452[_0x4069('0x1')],_0x2222ad[_0x4069('0xb8')]))return;const _0x154e81=_0x462452[_0x4069('0x1')]['getWalker'](),_0x5a2cd0=_0x462452[_0x4069('0x1')][_0x4069('0xa0')],_0x69091b=_0x1e88c8[_0x4069('0xba')][_0x4069('0xc4')];let _0x287590=null,_0x3b59c4=null,_0x41314c=!0x1,_0x1380fd=!0x1;for(const _0x53d422 of _0x154e81){const _0x4fdb78=_0x53d422[_0x4069('0x8f')];_0x41314c=_0x41314c||_0x69091b[_0x4069('0xd1')](_0x4fdb78);const _0x29cd2b=_0x1202c9[_0x4069('0x7f')][_0x4069('0x0')](_0x4fdb78);if(_0x29cd2b&&_0x29cd2b[_0x4069('0xf')]('addHighlight'))return;'elementEnd'==_0x53d422[_0x4069('0x8d')]&&(_0x69091b[_0x4069('0xfe')](_0x4fdb78)&&!_0x69091b['isLimit'](_0x4fdb78)&&(_0x4fdb78['nextSibling']||_0x5a2cd0[_0x4069('0x2d')]?_0x287590&&_0x287590['parent']==_0x4fdb78||(_0x287590=_0x4fdb78,_0x4cd7d9(_0x53d422[_0x4069('0xdd')]),_0x1380fd=!0x0):_0x3b59c4=_0x3b59c4||_0x53d422[_0x4069('0xdd')]));}function _0x4cd7d9(_0x518808){const _0x5bc133=_0x1202c9[_0x4069('0x51')][_0x4069('0xc')](_0x4069('0x108'),{'class':_0x4069('0xff')+_0x2459f2}),_0x401153=_0x1202c9['mapper'][_0x4069('0x48')](_0x518808);_0x484dfe[_0x4069('0x11')][_0x4069('0x88')]&&_0x1202c9[_0x4069('0x51')][_0x4069('0x3d')](_0x4069('0xff')+_0x2459f2+'-new',_0x5bc133),_0x25743a['activeChange']==_0x484dfe&&_0x1202c9[_0x4069('0x51')][_0x4069('0x3d')](_0x4069('0x4d'),_0x5bc133),_0x1202c9[_0x4069('0x51')][_0x4069('0x7c')](_0x401153,_0x5bc133),_0x1202c9[_0x4069('0x7f')][_0x4069('0x2b')](_0x5bc133,_0x462452[_0x4069('0xea')]);}_0x41314c||_0x1380fd||!_0x3b59c4||_0x4cd7d9(_0x3b59c4);};}(this[_0x4069('0x3')]),{'priority':_0x4069('0x8')}),this[_0x4069('0x3')]['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x39dceb,_0x1b6ba4,_0x180d63)=>{const _0x55e846=_0x180d63['mapper'][_0x4069('0xc3')](_0x1b6ba4['markerName']);if(_0x55e846)for(const _0x412e10 of _0x55e846)(_0x412e10[_0x4069('0x4e')](_0x4069('0x9d'))||_0x412e10[_0x4069('0x4e')](_0x4069('0xe4')))&&(_0x180d63[_0x4069('0x7f')][_0x4069('0x75')](_0x412e10,_0x1b6ba4[_0x4069('0xea')]),_0x180d63[_0x4069('0x51')][_0x4069('0x100')](_0x412e10));},{'priority':_0x4069('0x8')}),this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0xdc')]['on'](_0x4069('0x7'),(_0x27e639,_0x43a1a9,_0x54dbbc)=>{const _0x62a67=_0x43a1a9[_0x4069('0xea')][_0x4069('0x30')](':')[0x1],_0x5958af=this[_0x4069('0xa3')](_0x62a67);if(!_0x5958af)return null;const _0x1da5b6='add'==_0x5958af[_0x4069('0x8d')]?_0x4069('0x30'):'merge';if(_0x54dbbc[_0x4069('0x9f')][_0x4069('0xee')](_0x43a1a9[_0x4069('0x1')],_0x27e639[_0x4069('0xb8')]))for(const _0x3fc8f3 of _0x43a1a9[_0x4069('0x1')][_0x4069('0xb5')]()){if(!_0x3fc8f3['is'](_0x4069('0x121'),_0x4069('0x62')))continue;const _0x3224ea=_0x54dbbc[_0x4069('0x51')][_0x4069('0xc')](_0x4069('0x108'),{'class':_0x4069('0xff')+_0x1da5b6}),_0x528b20=_0x54dbbc['mapper'][_0x4069('0x48')](this[_0x4069('0x3')][_0x4069('0xba')]['createPositionBefore'](_0x3fc8f3));_0x5958af[_0x4069('0x11')][_0x4069('0x88')]&&_0x54dbbc[_0x4069('0x51')]['addClass'](_0x4069('0xff')+_0x1da5b6+_0x4069('0x32'),_0x3224ea),this[_0x4069('0x10c')]==_0x5958af&&_0x54dbbc[_0x4069('0x51')]['addClass'](_0x4069('0x4d'),_0x3224ea),_0x54dbbc[_0x4069('0x51')]['insert'](_0x528b20,_0x3224ea),_0x54dbbc[_0x4069('0x7f')]['bindElementToMarker'](_0x3224ea,_0x43a1a9[_0x4069('0xea')]);}},{'priority':'high'}),this['editor']['model'][_0x4069('0xb4')]['on'](_0x4069('0x6a'),()=>{this[_0x4069('0x3')]['editing']['view']['change'](_0x59995d=>{for(const _0x39327c of this['editor'][_0x4069('0xba')][_0x4069('0xb4')]['getRootNames']()){const _0x5b9f3c=this[_0x4069('0x3')][_0x4069('0xba')]['document'][_0x4069('0xe3')](_0x39327c),_0x181634=this['editor']['editing'][_0x4069('0x6d')][_0x4069('0xb4')]['getRoot'](_0x39327c);if(_0x181634){const _0x12a7b9=_0x5b9f3c[_0x4069('0x8a')](_0x4069('0x8c'));if(_0x59995d[_0x4069('0x8e')](_0x4069('0x8b'),_0x181634),_0x59995d[_0x4069('0xaf')](_0x4069('0x3a'),_0x181634),_0x59995d['removeClass'](_0x4069('0xd9'),_0x181634),_0x59995d['removeClass'](_0x4069('0xd0'),_0x181634),_0x12a7b9){const _0x1cf479=this[_0x4069('0xa3')](_0x12a7b9);if(!_0x1cf479)return null;_0x59995d[_0x4069('0xa6')](_0x4069('0x8b'),_0x12a7b9,_0x181634),_0x59995d['addClass'](_0x4069('0xbc')+_0x1cf479[_0x4069('0x8d')],_0x181634),this[_0x4069('0x10c')]==_0x1cf479&&_0x59995d[_0x4069('0x3d')](_0x4069('0xd0'),_0x181634);}}}});}),this[_0x4069('0x3')]['conversion']['for']('upcast')[_0x4069('0x5c')]({'view':_0x4069('0xbf'),'model':_0x1af940=>_0x4069('0x40')+_0x1af940,'converterPriority':_0x4069('0x57')}),this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')]('upcast')[_0x4069('0x5c')]({'view':_0x4069('0xe2'),'model':_0x39ad39=>'revision-suggestion:'+_0x39ad39,'converterPriority':'highest'}),this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')](_0x4069('0x9e'))[_0x4069('0x52')]({'model':_0x4069('0xd7'),'view':_0x5a99e7=>({'name':'suggestion:'+_0x5a99e7,'group':_0x4069('0xd7')}),'converterPriority':_0x4069('0x57')}),this['editor'][_0x4069('0x16')][_0x4069('0xbb')]('editingDowncast')[_0x4069('0x22')]({'model':_0x4069('0xd7'),'view':_0x792cd1=>{const _0x1f9ef0=_0x792cd1[_0x4069('0xea')]['split'](':')[0x1];return _0x4069('0xa5')!=_0x1f9ef0&&_0x4069('0x99')!=_0x1f9ef0?null:{'classes':[_0x4069('0xe9'),_0x4069('0x46')+_0x1f9ef0]};}}),this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0xdc')]['on'](_0x4069('0x4c'),et(this[_0x4069('0x3')],_0x4069('0xae')),{'priority':_0x4069('0x8')}),this['editor'][_0x4069('0x6b')][_0x4069('0xdc')]['on'](_0x4069('0x53'),et(this['editor'],_0x4069('0x30')),{'priority':_0x4069('0x8')}),this[_0x4069('0x3')]['editing']['downcastDispatcher']['on'](_0x4069('0xbd'),(_0x5e48f0,_0x17fde2,_0x5e2fbb)=>{const _0x36debe=_0x5e2fbb['mapper'][_0x4069('0xc3')](_0x17fde2[_0x4069('0xea')]);if(_0x36debe)for(const _0xb6c0b2 of _0x36debe)_0xb6c0b2['is'](_0x4069('0x7a'))&&(_0x5e2fbb['mapper'][_0x4069('0x75')](_0xb6c0b2,_0x17fde2[_0x4069('0xea')]),_0x5e2fbb['writer'][_0x4069('0x100')](_0xb6c0b2));},{'priority':_0x4069('0x8')});}['_getChangeFromId'](_0x1d202c){return this[_0x4069('0xe7')][_0x4069('0xfb')](_0x1d202c);}[_0x4069('0xf5')](_0xbef917){return this[_0x4069('0xd4')]&&this[_0x4069('0xd4')][_0x4069('0xf0')](),this[_0x4069('0xd4')]=new _0x54ed56(this[_0x4069('0x3')][_0x4069('0xd6')],_0xbef917),this['_changeView'];}[_0x4069('0x36')](){this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0xb4')][_0x4069('0x3f')]['observeMarkers'](_0x4069('0xa9')),this['on'](_0x4069('0xfc'),(_0x5e8cd9,_0x3f24f7,_0xffa76c,_0x5dc2e2)=>{_0x5dc2e2&&this[_0x4069('0x1b')][_0x4069('0x100')](_0x5dc2e2),_0xffa76c&&(this['_balloon'][_0x4069('0xb2')]({'view':_0xffa76c,'stackId':_0x4069('0x4b'),'position':{'target':()=>{const _0x340bb4=this[_0x4069('0x3')]['editing'],_0x5c7a3f=this[_0x4069('0xa3')](_0xffa76c[_0x4069('0x56')]);let _0x43303b;if(_0x5c7a3f[_0x4069('0x11')][_0x4069('0x115')]){const _0x333892=_0x340bb4[_0x4069('0x6d')]['getDomRoot'](_0x5c7a3f[_0x4069('0xed')]);_0x43303b=Array[_0x4069('0x18')](_0x333892[_0x4069('0xe8')]());}else{const _0x261323=this[_0x4069('0x3')][_0x4069('0xba')]['markers']['get'](_0x4069('0x13')+_0xffa76c[_0x4069('0x56')]);_0x43303b=Array[_0x4069('0x18')](_0x340bb4[_0x4069('0x7f')][_0x4069('0xc3')](_0x261323['name']))['map'](_0x5c9c0f=>_0x340bb4[_0x4069('0x6d')]['domConverter']['mapViewToDom'](_0x5c9c0f))[_0x4069('0x74')](_0x51bf00=>Array[_0x4069('0x18')](_0x51bf00['getClientRects']()))[_0x4069('0x17')]();}if(!this[_0x4069('0x73')])return _0x43303b[0x0];return _0x43303b[_0x4069('0x67')](_0x31d20b=>_0x31d20b['top']-0x3<=this[_0x4069('0x73')]['y']&&_0x31d20b[_0x4069('0x2e')]+0x3>=this['_activeViewTarget']['y']&&_0x31d20b[_0x4069('0x106')]-0x3<=this[_0x4069('0x73')]['x']&&_0x31d20b[_0x4069('0xce')]+0x3>=this[_0x4069('0x73')]['x'])||_0x43303b[0x0];}}}),this[_0x4069('0x1b')][_0x4069('0xca')]('revisionHistoryLabel'));}),this['on'](_0x4069('0x92'),(_0x4d034c,_0xa3099c,_0x3367ba,_0x3d8518)=>{this[_0x4069('0x38')]=_0x3367ba?this[_0x4069('0xf5')](_0x3367ba):null,this[_0x4069('0x3')][_0x4069('0xba')]['change'](()=>{const _0x3a089c=this[_0x4069('0x3')]['editing'];_0x3d8518&&(_0x3d8518[_0x4069('0x11')][_0x4069('0x115')]?_0x3a089c[_0x4069('0x6d')]['change'](_0x26063e=>{_0x26063e[_0x4069('0xaf')](_0x4069('0xd0'),_0x3a089c[_0x4069('0x6d')]['document'][_0x4069('0xe3')](_0x3d8518[_0x4069('0xed')]));}):_0x3a089c[_0x4069('0x7b')](_0x4069('0x13')+_0x3d8518['id'])),_0x3367ba&&(_0x3367ba[_0x4069('0x11')]['isOnRoot']?_0x3a089c[_0x4069('0x6d')]['change'](_0x1f74ef=>{_0x1f74ef[_0x4069('0x3d')](_0x4069('0xd0'),_0x3a089c['view']['document'][_0x4069('0xe3')](_0x3367ba[_0x4069('0xed')]));}):_0x3a089c['reconvertMarker']('revision:'+_0x3367ba['id']));});}),this[_0x4069('0x3c')](this[_0x4069('0x3')][_0x4069('0x6b')]['view'][_0x4069('0xb4')],'mouseover',(_0x2bd582,_0x30f7db)=>{if(this[_0x4069('0x10c')])return;const _0x22355f=this[_0x4069('0x23')](_0x30f7db[_0x4069('0x72')]),_0x467502=this[_0x4069('0xe7')][_0x4069('0xfb')](_0x22355f);_0x467502?(this[_0x4069('0x73')]={'x':_0x30f7db[_0x4069('0xb0')]['x'],'y':_0x30f7db['domEvent']['y']},this['activeView']=this[_0x4069('0xf5')](_0x467502)):(this[_0x4069('0x73')]=null,this[_0x4069('0x38')]=null);}),this['listenTo'](this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0x6d')]['document'],_0x4069('0x1a'),(_0x4c3d88,_0x485f14)=>{const _0x48433e=this[_0x4069('0x23')](_0x485f14[_0x4069('0x72')]),_0x290700=this[_0x4069('0xe7')][_0x4069('0xfb')](_0x48433e);_0x290700?(this[_0x4069('0x73')]={'x':_0x485f14['domEvent']['x'],'y':_0x485f14[_0x4069('0xb0')]['y']},_0x290700===this[_0x4069('0x10c')]?this[_0x4069('0x1b')]['updatePosition']():this[_0x4069('0x10c')]=_0x290700):(this[_0x4069('0x73')]=null,this[_0x4069('0x10c')]=null);});}[_0x4069('0x23')](_0x21d4c0){do{const _0x5c460b=_0x21d4c0[_0x4069('0x8a')](_0x4069('0x8b'));if(_0x5c460b)return _0x5c460b;_0x21d4c0=_0x21d4c0[_0x4069('0x10a')];}while(_0x21d4c0);return null;}[_0x4069('0x116')](){this['editor'][_0x4069('0xba')]['change'](_0x122710=>{for(const _0x225339 of this['editor']['model']['markers'])_0x122710['removeMarker'](_0x225339);});}}function et(_0x12f3fe,_0xd72ced){return(_0x5bc125,_0x4b94ed,_0x2c9349)=>{if(!_0x2c9349[_0x4069('0x9f')][_0x4069('0xee')](_0x4b94ed[_0x4069('0x1')],_0x5bc125[_0x4069('0xb8')]))return;const _0x214369=_0x4b94ed[_0x4069('0x1')]['getWalker'](),_0x2176e2=_0x4b94ed[_0x4069('0x1')]['start'],_0x14d180=_0x12f3fe['model'][_0x4069('0xc4')];let _0x5c3ee9=null,_0x285307=null,_0x25e0b9=!0x1,_0x48178c=!0x1;for(const _0x584d23 of _0x214369){const _0x1d975e=_0x584d23[_0x4069('0x8f')];_0x25e0b9=_0x25e0b9||_0x14d180[_0x4069('0xd1')](_0x1d975e);const _0x194512=_0x2c9349[_0x4069('0x7f')][_0x4069('0x0')](_0x1d975e);if(_0x194512&&_0x194512[_0x4069('0xf')](_0x4069('0x87')))return;_0x4069('0x60')==_0x584d23['type']&&(_0x14d180[_0x4069('0xfe')](_0x1d975e)&&!_0x14d180['isLimit'](_0x1d975e)&&(_0x1d975e[_0x4069('0x10d')]||_0x2176e2['isAtEnd']?_0x5c3ee9&&_0x5c3ee9['parent']==_0x1d975e||(_0x5c3ee9=_0x1d975e,_0x491761(_0x584d23[_0x4069('0xdd')]),_0x48178c=!0x0):_0x285307=_0x285307||_0x584d23[_0x4069('0xdd')]));}function _0x491761(_0x49ce12){const _0x5819a4=_0x2c9349[_0x4069('0x7f')]['toViewPosition'](_0x49ce12),_0x48ec08=_0x2c9349['writer'][_0x4069('0xc')](_0x4069('0x108'),{'class':'ck-suggestion-preview-marker-'+_0xd72ced});_0x2c9349[_0x4069('0x51')][_0x4069('0x7c')](_0x5819a4,_0x48ec08),_0x2c9349[_0x4069('0x7f')][_0x4069('0x2b')](_0x48ec08,_0x4b94ed['markerName']);}_0x25e0b9||_0x48178c||!_0x285307||_0x491761(_0x285307);};}export class RestoreRevisionCommand extends _0x3dd145{constructor(_0x58bd76){super(_0x58bd76);const _0x1e57bd=_0x58bd76[_0x4069('0x6f')][_0x4069('0xfb')](d);this[_0x4069('0xc9')]=!0x1,this[_0x4069('0x3c')](_0x1e57bd,_0x4069('0x1d'),()=>this[_0x4069('0x111')]()),this['listenTo'](_0x1e57bd,_0x4069('0x97'),()=>this[_0x4069('0x111')]());}['execute'](){const _0x91b6ef=this[_0x4069('0x3')],_0x5204b6=_0x91b6ef[_0x4069('0x6f')][_0x4069('0xfb')](d),_0x50b789=_0x5204b6[_0x4069('0x59')]?_0x5204b6['diff']['newRevisionId']:null;_0x91b6ef[_0x4069('0xe')][_0x4069('0xfb')](_0x4069('0x43'))[_0x4069('0xb6')](_0x50b789);}[_0x4069('0x111')](){const {isReady:_0x5464eb,isEnabled:_0x3d2952}=this[_0x4069('0x3')][_0x4069('0x6f')]['get'](d);this[_0x4069('0xa7')]=_0x5464eb&&_0x3d2952;}}export class ShowChangeCommand extends _0x3dd145{constructor(_0x250225,{direction:_0x4db991}){super(_0x250225);const _0x27008b=_0x250225['plugins']['get'](d);this[_0x4069('0xc9')]=!0x1,this[_0x4069('0x4')]=_0x4069('0xe0')===_0x4db991?0x1:-0x1,this[_0x4069('0x3c')](_0x27008b,_0x4069('0x1d'),()=>this['refresh']()),this['listenTo'](_0x27008b,_0x4069('0x97'),()=>this['refresh']()),this[_0x4069('0x3c')](_0x27008b,'change:activeChange',()=>this[_0x4069('0x111')]());}[_0x4069('0x68')](){const _0x26642a=this[_0x4069('0x3')],_0x5c11c3=_0x26642a[_0x4069('0x6f')][_0x4069('0xfb')](d),{isNavigationMode:_0x33457f,currentChangeNumber:_0x11f8ae}=_0x5c11c3;let _0x256f52;if(_0x5c11c3['activeChange']=_0x33457f?_0x5c11c3[_0x4069('0x15')]['changes'][_0x4069('0xfb')](_0x11f8ae+this[_0x4069('0x4')]):_0x5c11c3['diff'][_0x4069('0xcc')]['first'],_0x5c11c3['activeChange'][_0x4069('0x11')][_0x4069('0x115')])_0x256f52=_0x26642a[_0x4069('0x6b')]['view'][_0x4069('0x91')](_0x5c11c3[_0x4069('0x10c')][_0x4069('0xed')]);else{const _0x19a42f=_0x26642a[_0x4069('0xba')][_0x4069('0x35')][_0x4069('0xfb')](_0x4069('0x13')+_0x5c11c3[_0x4069('0x10c')]['id']);_0x256f52=_0x47b482(_0x26642a[_0x4069('0x6b')],_0x19a42f);}_0x4b51d0({'target':_0x256f52,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4da200,currentChangeNumber:_0x14ec23,numberOfChanges:_0x4f7322,isReady:_0x96e603,isEnabled:_0x41252f}=this['editor'][_0x4069('0x6f')][_0x4069('0xfb')](d);this[_0x4069('0xa7')]=!!(_0x41252f&&_0x96e603&&_0x4f7322)&&(!_0x4da200||(0x1===this[_0x4069('0x4')]?_0x14ec23<_0x4f7322-0x1:_0x14ec23>0x0));}}
23
+ const _0x9ba6=['isRemoveSuggestion','uiElement','level','_step','catch','useFillerType','downcastDispatcher','done','highest','_makeModelFromTape','getAttribute','distance','mouseover','suggestion:','insertions','mapper','createRangeIn','authors','enqueueChange','destroy','then','ck-editor__editable__overlay','_joinTapes','consume','deletion','_appendChild','bindElementToMarker','isAdded','markerRange','isAddSuggestion','_markSuggestions','dataToMarker','affectsData','restoreRevisionCallback','clear','push','keys','elementStart','_changeView','restoreRevision','ck-revision-history-root-add','markerName','change:isEnabled','includes','resolve','isLimit','addRevision','getClientRects','end','isCollapsed','addMarker:revision','view','_removeMissingPairs','isEnabled','markersStart','WidgetToolbarRepository','from','revision','item','isBlock','listenTo','concat','RevisionsRepository','ck-revision-history-root-','conversion','markerToHighlight','removeAttribute','commands','nextPosition','marked','changeId','diffData','-new','createRevision','currentChangeNumber','diff','ck-suggestion-marker--active','attributesAfter','mousedown','nextSibling','activeChange','createPositionFromPath','userId','toViewRange','vid_start','filter','forceDisabled','activeView','config','revision-end','getRevision','showPreviousChange','adapter','_markMismatchedRemovedTags','detachRoot','addMarker:revision-suggestion:deletion','_balloon','target','POSITIVE_INFINITY','vid','deletions','isAtStart','all','domEvent','ck-revision-history-root--active','markersEnd','toViewPosition','_setChanges','getRoot','revision-suggestion','isAfter','get','side','ck-suggestion-marker','string','parent','change:isReady','newRevisionId','unshift','_removeRevisionMarkers','createPositionBefore','showStack','addMarker:revision-suggestion:insertion','vid_end','updatePosition','elementEnd','error','revision-start','revisionHistoryAttachChange','indexOf','_setConversion','numberOfChanges','change:numberOfChanges','pairId','toModel','revision-comment:','parse','init','isIncorrect','add','rootName','_findChangeIdFromDomTarget','children','next','startIndex','selection','type','find','index','_markInsertions','createRange','getAttributes','_data','insertion','softBreak','bind','return','pop','data-change-id','isNavigationMode','endIndex','object','_setDistance','revision:','change:activeChange','createAttributeElement','repository','oldRevisionId','viewItem','_cleanMarkers','isInline','_processTape','has','_markMarkers','merge','_changeIdToChange','forward','suggestion','sort','span','markerNameToElements','removeMarker','changes','consumable','ck-revision-history-root-remove','change','data-revision-','_getRevisionsRange','default','refresh','_getViewForChange','comment','loadRevisionData','toViewElement','toData','_getChangeFromId','addClass','mapViewToDom','isReady','ck-suggestion-preview-marker-','upcast','name','dataDowncast','slice','reconvertMarker','hasAttribute','collaboration.channelId','model','setAttribute','findIndex','for','_removeUnsupportedChanges','getCustomProperty','abs','getIndex','addRoot','getDomRoot','backward','split','editor','RevisionViewer','execute','data','requires','document','_getViewObj','pluginName','element','_sortAndFilterDiffChanges','markers','_refreshStartEndIndex','hasClass','attachChange','previousPosition','revision-viewer','startsWith','_cleanUp','map','addRevisionData','editing','_makeTape','addHighlight','range','_fixObsoleteTags','writer','_revisions','schema','_getDiff','low','processor','remove','attributes','ck-suggestion-marker-','set','getRootNames','left','isOnRoot','modelRange','test','unbindElementFromMarkerName','forEach','revision-suggestion:','isEqual','getRevisionRootsAttributes','length','isContent','delete','roots','nodeAfter','removeMarker:revision-suggestion','createUIElement','isAttached','isRemoved','text','ck-suggestion-preview-marker','getChild','isAtEnd','wrap','_update','compare','start','isBefore','removeMarker:revision','isSuggestion','splice','getWalker','removeClass','ck-suggestion-marker-split','high','values','markerToData','insert','stop','_activeViewTarget','_initInteractions','plugins','showNextChange','shift'];(function(_0x4f69ce,_0x9ba693){const _0x213693=function(_0x3d777c){while(--_0x3d777c){_0x4f69ce['push'](_0x4f69ce['shift']());}};_0x213693(++_0x9ba693);}(_0x9ba6,0x1b1));const _0x2136=function(_0x4f69ce,_0x9ba693){_0x4f69ce=_0x4f69ce-0x0;let _0x213693=_0x9ba6[_0x4f69ce];return _0x213693;};import{Plugin as _0x42d9e6,Command as _0x335097}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4d0bd3}from'ckeditor5/src/utils';import{ContextualBalloon as _0xeefb4}from'ckeditor5/src/ui';import{DocumentFragment as _0x526ef0,Element as _0x506657,Text as _0x7c5852,ViewDocumentFragment as _0x5c4611,ViewText as _0x8480e7,ViewElement as _0x498da1,ViewContainerElement as _0x9e9bc7,ViewAttributeElement as _0x2797a4,ViewEmptyElement as _0x93cac0,ViewRawElement as _0x2c7b49,ViewUIElement as _0x49fd6f}from'ckeditor5/src/engine';import{Users as _0x32eca4,getMarkerDomElement as _0x39674b}from'ckeditor5-collaboration/src/collaboration-core';import _0x164776 from'./ui/revisionviewer/changedetailsview';import _0x43b7de from'./revisionsrepository';import _0x3ff98c from'./changeitem';import{default as _0x57039d}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4cf36d}from'lodash-es';const tt={'c':_0x9e9bc7,'a':_0x2797a4,'e':_0x93cac0,'r':_0x2c7b49,'u':_0x49fd6f};export default class d extends _0x42d9e6{static get[_0x2136('0x5b')](){return _0x2136('0x55');}static get[_0x2136('0x58')](){return[_0x32eca4,_0xeefb4,_0x43b7de];}constructor(_0x191c65){super(_0x191c65),this[_0x2136('0x1f')]=this[_0x2136('0x54')]['plugins'][_0x2136('0x112')](_0x2136('0xe1')),this[_0x2136('0x76')](_0x2136('0xf3'),null),this[_0x2136('0x76')](_0x2136('0xfa'),null),this[_0x2136('0x9e')]=null,this[_0x2136('0x76')](_0x2136('0xee'),null),this[_0x2136('0x76')](_0x2136('0x3f'),!0x1),this[_0x2136('0x76')](_0x2136('0xd8'),!0x0),this['on']('change:isEnabled',(_0x350eb5,_0x33d362,_0x3b6f58)=>{this['activeChange']=null,this[_0x2136('0xfa')]=null,this['editor'][_0x2136('0x68')][_0x2136('0xd6')][_0x2136('0x32')](_0xd11723=>{for(const _0x457f6a of this[_0x2136('0x54')]['editing'][_0x2136('0xd6')][_0x2136('0x59')][_0x2136('0x84')])_0x3b6f58?_0xd11723[_0x2136('0x97')](_0x2136('0xb8'),_0x457f6a):_0xd11723['addClass'](_0x2136('0xb8'),_0x457f6a);});}),this[_0x2136('0x14')](_0x2136('0x18'))['to'](this,_0x2136('0xf3'),_0x43b4a0=>null!==_0x43b4a0),this[_0x2136('0x14')](_0x2136('0xed'))['to'](this,_0x2136('0x3f'),this,_0x2136('0xee'),this,_0x2136('0xf3'),(_0x5c1dba,_0x3e6b70,_0x45beed)=>_0x5c1dba&&_0x45beed?_0x3e6b70[_0x2136('0x2f')]['getIndex'](_0x45beed):0x0),this[_0x2136('0x14')](_0x2136('0x126'))['to'](this,'isReady',this,'diff',(_0x2c4b16,_0x1a4789)=>_0x2c4b16?_0x1a4789[_0x2136('0x2f')][_0x2136('0x81')]:0x0),this[_0x2136('0xc9')]=null,this[_0x2136('0x28')]=new Map(),this[_0x2136('0xff')]=null,this['_balloon']=this[_0x2136('0x54')]['plugins']['get'](_0xeefb4);}[_0x2136('0x2')](){const _0x109d6c=this[_0x2136('0x54')],_0x1cacb7=new ShowChangeCommand(_0x109d6c,{'direction':_0x2136('0x52')}),_0x1ff304=new ShowChangeCommand(_0x109d6c,{'direction':_0x2136('0x29')});(_0x109d6c['commands'][_0x2136('0x4')](_0x2136('0xfe'),_0x1cacb7),_0x109d6c[_0x2136('0xe6')]['add'](_0x2136('0xa1'),_0x1ff304),_0x109d6c[_0x2136('0xe6')]['add'](_0x2136('0xca'),new RestoreRevisionCommand(_0x109d6c)),this['on'](_0x2136('0x127'),()=>{_0x1cacb7[_0x2136('0x36')](),_0x1ff304[_0x2136('0x36')]();}),this[_0x2136('0x125')](),this[_0x2136('0x9f')](),_0x109d6c['enableReadOnlyMode'](_0x2136('0x63')),_0x109d6c['plugins']['has'](_0x2136('0xda')))&&_0x109d6c[_0x2136('0xa0')]['get'](_0x2136('0xda'))[_0x2136('0xf9')]('revision-viewer');}async['getRevisionData'](_0x11e2b0){await this[_0x2136('0x39')](_0x11e2b0);const _0x19b9e9={};for(const _0x4e093e in _0x11e2b0[_0x2136('0xea')]){if(_0x11e2b0[_0x2136('0xea')][_0x4e093e][_0x2136('0x61')]&&!_0x11e2b0[_0x2136('0xea')][_0x4e093e]['attachChange'][_0x2136('0x88')])continue;const _0xe0a52a=this[_0x2136('0x11a')](JSON[_0x2136('0x1')](_0x11e2b0[_0x2136('0xea')][_0x4e093e][_0x2136('0xb1')])),_0x30a10a=this[_0x2136('0x54')]['editing'][_0x2136('0xd6')]['document'],_0x5a5213=new _0x5c4611(_0x30a10a,_0xe0a52a[_0x2136('0x66')](_0x3d7353=>this[_0x2136('0x5a')](_0x3d7353)));this[_0x2136('0x54')]['data']['processor'][_0x2136('0xa8')](_0x2136('0xe8')),_0x19b9e9[_0x4e093e]=this[_0x2136('0x54')][_0x2136('0x57')][_0x2136('0x72')][_0x2136('0x3b')](_0x5a5213),this[_0x2136('0x54')][_0x2136('0x57')][_0x2136('0x72')]['useFillerType'](_0x2136('0x35'));}return _0x19b9e9;}async[_0x2136('0x80')](_0x37ac3c){await this[_0x2136('0x39')](_0x37ac3c);const _0x2e77db={};for(const _0x58341f in _0x37ac3c['diffData'])_0x37ac3c[_0x2136('0xea')][_0x58341f][_0x2136('0x61')]&&!_0x37ac3c['diffData'][_0x58341f][_0x2136('0x61')][_0x2136('0x88')]||(_0x2e77db[_0x58341f]=_0x37ac3c[_0x2136('0xea')][_0x58341f][_0x2136('0xf0')]||{});return _0x2e77db;}['_removeRevisionMarkers'](_0xe12d5){return(_0xe12d5=_0xe12d5['filter'](_0x26fce2=>!_0x26fce2[_0x2136('0x42')]||_0x2136('0x122')!==_0x26fce2[_0x2136('0x42')]&&_0x2136('0xfc')!==_0x26fce2['name']))[_0x2136('0x7d')](_0x1e64db=>{_0x2136('0x115')!=typeof _0x1e64db&&(_0x1e64db[_0x2136('0x7')]=this[_0x2136('0x11a')](_0x1e64db[_0x2136('0x7')]),_0x1e64db[_0x2136('0x74')]=_0x1e64db[_0x2136('0x74')][_0x2136('0xf8')](_0x27e91e=>!_0x27e91e[0x0][_0x2136('0x64')](_0x2136('0x33'))));}),_0xe12d5;}async[_0x2136('0x90')](_0x9f3a0c,_0x5089f3,_0x142576=!0x1){if(!this[_0x2136('0xd8')])return;const _0x2ec083=this['diff'],_0x27e66d=this[_0x2136('0x1f')],_0x4acf07=_0x2136('0x115')==typeof _0x9f3a0c?_0x27e66d[_0x2136('0xfd')](_0x9f3a0c):_0x9f3a0c,_0x7e8a7b=_0x2136('0x115')==typeof _0x5089f3?_0x27e66d[_0x2136('0xfd')](_0x5089f3):_0x5089f3,_0x323a6f=_0x4acf07['id'],_0x423bb9=_0x7e8a7b?_0x7e8a7b['id']:null;if(!_0x142576&&this[_0x2136('0xee')]&&this['diff'][_0x2136('0x118')]===_0x323a6f&&this[_0x2136('0xee')][_0x2136('0x20')]===_0x423bb9)return Promise[_0x2136('0xcf')]();this[_0x2136('0x3f')]=!0x1,this[_0x2136('0xfa')]=null,this[_0x2136('0xf3')]=null,this[_0x2136('0xee')]=new _0x57039d(_0x323a6f,_0x423bb9);const _0x2c3b45=this['_getRevisionsRange'](_0x4acf07,_0x7e8a7b,!0x0)[_0x2136('0x66')](_0x3a21b3=>this[_0x2136('0x39')](_0x3a21b3));return _0x2c3b45[_0x2136('0xc6')](new Promise(_0x4757ce=>{setTimeout(_0x4757ce,0x14);})),Promise[_0x2136('0x109')](_0x2c3b45)[_0x2136('0xb7')](()=>{if(!this[_0x2136('0xd8')])return;this['_cleanUp']();const _0x4e470c=this['_getDiff'](_0x323a6f,_0x423bb9);for(const _0x1f1fb5 of _0x4e470c[_0x2136('0x2f')])this[_0x2136('0x28')][_0x2136('0x76')](_0x1f1fb5['id'],_0x1f1fb5);this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0xb5')]({'isUndoable':!0x1},_0x2b5ec1=>{for(const _0x367a61 of this['editor'][_0x2136('0x48')][_0x2136('0x59')][_0x2136('0x77')]())_0x2b5ec1[_0x2136('0x101')](_0x367a61);for(const _0x256fdf of Object[_0x2136('0xc7')](_0x4e470c[_0x2136('0x48')])){const _0xf45b38=_0x2b5ec1[_0x2136('0x50')](_0x256fdf);for(const _0x5c7c07 of Object[_0x2136('0xc7')](_0x4e470c[_0x2136('0x74')][_0x256fdf]))_0x2b5ec1[_0x2136('0x49')](_0x5c7c07,_0x4e470c[_0x2136('0x74')][_0x256fdf][_0x5c7c07],_0xf45b38);_0x2b5ec1[_0x2136('0x9c')](_0x4e470c[_0x2136('0x48')][_0x256fdf],_0xf45b38,0x0);}}),this[_0x2136('0xee')][_0x2136('0x10e')](this[_0x2136('0x5d')](_0x4e470c['changes'])),this[_0x2136('0x3f')]=!0x0;})[_0x2136('0xa7')](_0x4395ef=>{console[_0x2136('0x121')](_0x4395ef),this[_0x2136('0x65')](),_0x2ec083&&(this['diff']=_0x2ec083),this[_0x2136('0x3f')]=!0x0;});}[_0x2136('0x67')](_0x2e2741,_0x2d2739){const _0x1460de=this[_0x2136('0x1f')][_0x2136('0xec')](_0x2e2741);return _0x1460de['on'](_0x2136('0x8f'),(_0x7a58b7,_0x3328ce,_0x5ed723)=>_0x2d2739(_0x3328ce,_0x5ed723,_0x1460de)),this[_0x2136('0x1f')][_0x2136('0xd1')](_0x1460de),_0x1460de;}[_0x2136('0x39')](_0x4ffd92){if(!_0x4ffd92||_0x4ffd92[_0x2136('0xea')])return Promise[_0x2136('0xcf')]();{const _0xf88e1d=this[_0x2136('0x54')][_0x2136('0xfb')][_0x2136('0x112')](_0x2136('0x47'));return this[_0x2136('0xff')][_0x2136('0xfd')]({'channelId':_0xf88e1d,'revisionId':_0x4ffd92['id']})['then'](_0x7293d=>{_0x4ffd92[_0x2136('0x8f')]({'diffData':_0x7293d[_0x2136('0xea')]},!0x0);});}}[_0x2136('0x65')](){this[_0x2136('0xf3')]=null,this['_cleanMarkers'](),this[_0x2136('0xc9')]&&this[_0x2136('0xc9')][_0x2136('0xb6')](),this[_0x2136('0xc9')]=null,this[_0x2136('0x28')][_0x2136('0xc5')](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1ed379=>{for(const _0x676115 of this[_0x2136('0x54')][_0x2136('0x48')]['document'][_0x2136('0x77')]())_0x1ed379[_0x2136('0x101')](_0x676115);});}[_0x2136('0x5d')](_0x2e833f){const _0x4ddfdc=[],_0x6eb3e4=new Map();for(const _0x4015af of this[_0x2136('0x54')][_0x2136('0x48')]['document'][_0x2136('0x77')]()){const _0x5b0df3=this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xd6')][_0x2136('0x51')](_0x4015af);if(!_0x5b0df3)continue;const _0x40730e=_0x5b0df3[_0x2136('0xd2')]()[_0x2136('0xdd')](0x0);_0x40730e&&(_0x4ddfdc[_0x2136('0xc6')](_0x4015af),_0x6eb3e4['set'](_0x4015af,_0x40730e));}return _0x4ddfdc[_0x2136('0x2b')]((_0x59dbab,_0x315424)=>{const _0x4633af=_0x6eb3e4[_0x2136('0x112')](_0x59dbab),_0xff51af=_0x6eb3e4[_0x2136('0x112')](_0x315424);return _0x4633af['y']-_0xff51af['y']||_0x4633af['x']-_0xff51af['x'];}),(_0x2e833f=_0x2e833f[_0x2136('0xf8')](_0x232e8b=>_0x4ddfdc[_0x2136('0xce')](_0x232e8b[_0x2136('0x5')])))[_0x2136('0x2b')]((_0x344f15,_0x3d4508)=>_0x4ddfdc[_0x2136('0x124')](_0x344f15[_0x2136('0x5')])-_0x4ddfdc['indexOf'](_0x3d4508[_0x2136('0x5')])),_0x2e833f;}[_0x2136('0x69')](_0x13b2f3){const _0xf23ece=Array[_0x2136('0xdb')](_0x13b2f3['markers'])[_0x2136('0xf8')](([_0x4a67ca,_0x35bdae])=>_0x4a67ca[_0x2136('0x64')](_0x2136('0x1c'))&&!_0x35bdae[_0x2136('0xd4')]),_0x49b3de=Array[_0x2136('0xdb')](this['editor'][_0x2136('0x48')][_0x2136('0xb3')](_0x13b2f3)[_0x2136('0x96')]({'singleCharacters':!0x0}));if(0x0!=_0xf23ece[_0x2136('0x81')])for(const _0x3f0bd2 of _0x49b3de){const [_0x23dc3b,_0x4822de]=_0xf23ece[0x0],[,_0x37d2d2,_0x5e742b]=_0x23dc3b[_0x2136('0x53')](':');if(_0x4822de[_0x2136('0xd3')][_0x2136('0x7f')](_0x3f0bd2[_0x2136('0xe7')])&&_0xf23ece[_0x2136('0xa2')](),(_0x3f0bd2['previousPosition'][_0x2136('0x7f')](_0x4822de[_0x2136('0x91')])||_0x3f0bd2[_0x2136('0x62')]['isAfter'](_0x4822de['start']))&&(_0x2136('0x12')==_0x37d2d2?_0x3f0bd2[_0x2136('0xbe')]={'userId':_0x5e742b}:_0x2136('0xbb')==_0x37d2d2&&(_0x3f0bd2[_0x2136('0x89')]={'userId':_0x5e742b})),0x0==_0xf23ece[_0x2136('0x81')])break;}return _0x49b3de;}['_refreshStartEndIndex'](_0x3d37d9){const _0x5840f5=new Map();for(let _0x4c3156=0x0;_0x4c3156<_0x3d37d9['length'];_0x4c3156++)_0x2136('0x8a')===_0x3d37d9[_0x4c3156]['type']?(_0x3d37d9[_0x4c3156][_0x2136('0xdd')]['startIndex']=_0x4c3156,_0x3d37d9[_0x4c3156][_0x2136('0xdd')][_0x2136('0x19')]=_0x4c3156):('elementStart'===_0x3d37d9[_0x4c3156][_0x2136('0xb')]?_0x3d37d9[_0x4c3156][_0x2136('0xdd')][_0x2136('0x9')]=_0x4c3156:_0x2136('0x120')===_0x3d37d9[_0x4c3156][_0x2136('0xb')]&&(_0x3d37d9[_0x4c3156][_0x2136('0xdd')]['endIndex']=_0x4c3156),_0x5840f5[_0x2136('0x76')](_0x3d37d9[_0x4c3156]['id'],_0x4c3156));for(const _0x54cf48 of _0x5840f5[_0x2136('0x9a')]())_0x2136('0xc8')===_0x3d37d9[_0x54cf48][_0x2136('0xb')]?_0x3d37d9[_0x54cf48][_0x2136('0xdd')][_0x2136('0x19')]=_0x5840f5['get'](_0x3d37d9[_0x54cf48][_0x2136('0x128')]):_0x2136('0x120')===_0x3d37d9[_0x54cf48][_0x2136('0xb')]&&(_0x3d37d9[_0x54cf48][_0x2136('0xdd')]['startIndex']=_0x5840f5[_0x2136('0x112')](_0x3d37d9[_0x54cf48][_0x2136('0x128')]));}[_0x2136('0x24')](_0x6dfc0c){for(let _0xfa6f51=0x0;_0xfa6f51<_0x6dfc0c[_0x2136('0x81')];_0xfa6f51++){if(_0x2136('0xc8')===_0x6dfc0c[_0xfa6f51][_0x2136('0xb')])_0x6dfc0c[_0xfa6f51]['item'][_0x2136('0x9')]=_0xfa6f51;else{if(_0x2136('0x120')===_0x6dfc0c[_0xfa6f51]['type']){_0x6dfc0c[_0xfa6f51]['item']['endIndex']=_0xfa6f51;const _0x30264b=_0x6dfc0c[_0xfa6f51][_0x2136('0xdd')][_0x2136('0x9')];_0x6dfc0c[_0x30264b][_0x2136('0x128')]=_0x6dfc0c[_0xfa6f51]['id'],_0x6dfc0c[_0xfa6f51][_0x2136('0x128')]=_0x6dfc0c[_0x30264b]['id'];}else _0x6dfc0c[_0xfa6f51][_0x2136('0xdd')][_0x2136('0x9')]=_0xfa6f51,_0x6dfc0c[_0xfa6f51][_0x2136('0xdd')][_0x2136('0x19')]=_0xfa6f51,_0x6dfc0c[_0xfa6f51][_0x2136('0x128')]=null;}_0x6dfc0c[_0xfa6f51][_0x2136('0xd9')]||(_0x6dfc0c[_0xfa6f51][_0x2136('0xd9')]=[],_0x6dfc0c[_0xfa6f51][_0x2136('0x10c')]=[]);}}[_0x2136('0xe')](_0x190d1a,_0x598e1b){const _0x20cac2=_0x190d1a[_0x2136('0xf8')](_0x26c0bd=>!_0x26c0bd[_0x2136('0xbe')]);for(let _0x4d6cb3=0x0;_0x4d6cb3<_0x598e1b[_0x2136('0x81')];_0x4d6cb3++)_0x598e1b[_0x4d6cb3][_0x2136('0xbe')]&&(_0x20cac2[_0x4d6cb3][_0x2136('0xbe')]=_0x598e1b[_0x4d6cb3][_0x2136('0xbe')]);}['_makeModelFromViewString'](_0x11bca6){const _0x2fcb19=JSON['parse'](_0x11bca6),_0xcaa022=this[_0x2136('0x54')]['editing'][_0x2136('0xd6')]['document'],_0x1c92ee=new _0x5c4611(_0xcaa022,_0x2fcb19[_0x2136('0x66')](_0x2fc9c7=>this[_0x2136('0x5a')](_0x2fc9c7)));return this['editor'][_0x2136('0x57')][_0x2136('0x129')](_0x1c92ee);}[_0x2136('0x5a')](_0x19a51d){const _0x30d48f=this[_0x2136('0x54')]['editing'][_0x2136('0xd6')][_0x2136('0x59')];if('string'==typeof _0x19a51d)return new _0x8480e7(_0x30d48f,_0x19a51d);{const _0x7ff77a=_0x19a51d[_0x2136('0x7')][_0x2136('0x66')](_0x48dd1a=>this[_0x2136('0x5a')](_0x48dd1a));return new(tt[_0x19a51d['type']]||_0x498da1)(_0x30d48f,_0x19a51d['name'],_0x19a51d[_0x2136('0x74')],_0x7ff77a);}}[_0x2136('0x70')](_0x5ab462,_0x4b4bde=null){const _0x3ff846=this['repository'][_0x2136('0xfd')](_0x5ab462),_0x127ba8=_0x4b4bde?this['repository'][_0x2136('0xfd')](_0x4b4bde):null,_0x5646a3=this['_getRevisionsRange'](_0x3ff846,_0x127ba8),_0x353ae2=_0x5646a3[_0x5646a3['length']-0x1],_0x1ddbfe=new Map(),_0x11e3fc={'model':{},'attributes':{},'changes':[]},_0x1ff839=new Set(),_0x1d11de=new Map();for(let _0x30412d=_0x5646a3[_0x2136('0x81')]-0x1;_0x30412d>=0x0;_0x30412d--){const _0x4b8bb9=_0x5646a3[_0x30412d];for(const _0x1f81f0 of Object[_0x2136('0xc7')](_0x4b8bb9[_0x2136('0xea')]))if(_0x4b8bb9[_0x2136('0xea')][_0x1f81f0][_0x2136('0x61')]){const _0x2f4f17=_0x4b8bb9[_0x2136('0xea')][_0x1f81f0][_0x2136('0x61')];_0x2f4f17['isAttached']?(_0x1ff839[_0x2136('0x4')](_0x1f81f0),_0x1d11de['has'](_0x1f81f0)&&_0x1d11de[_0x2136('0x112')](_0x1f81f0)[_0x2136('0xf5')]==_0x2f4f17[_0x2136('0xf5')]?_0x1d11de[_0x2136('0x83')](_0x1f81f0):_0x1d11de['set'](_0x1f81f0,_0x2f4f17)):_0x1d11de[_0x2136('0x25')](_0x1f81f0)?(_0x1ff839[_0x2136('0x83')](_0x1f81f0),_0x1d11de[_0x2136('0x83')](_0x1f81f0)):(_0x1ff839[_0x2136('0x4')](_0x1f81f0),_0x1d11de[_0x2136('0x76')](_0x1f81f0,_0x2f4f17));}else _0x1ff839['add'](_0x1f81f0);}for(const _0x257f6d of _0x1ff839){const _0x83bad6=_0x1d11de[_0x2136('0x25')](_0x257f6d)&&!_0x1d11de[_0x2136('0x112')](_0x257f6d)['isAttached'];let _0x355fb7=_0x83bad6?_0x5646a3[_0x2136('0x81')]-0x1:0x0;const _0x3e265a=_0x83bad6?-0x1:0x1;for(;_0x5646a3[_0x355fb7];){const _0x2dd71d=_0x5646a3[_0x355fb7];if(_0x2dd71d[_0x2136('0xea')][_0x257f6d]){const _0x54f5f5=_0x83bad6?_0x2dd71d[_0x2136('0xea')][_0x257f6d]['attributesBefore']:_0x2dd71d[_0x2136('0xea')][_0x257f6d][_0x2136('0xf0')];_0x11e3fc[_0x2136('0x74')][_0x257f6d]=_0x54f5f5?_0x4cf36d(_0x54f5f5):{};break;}_0x355fb7+=_0x3e265a;}}for(const _0x3d837c of _0x5646a3){_0x3d837c[_0x2136('0x48')]={};for(const _0x208f49 of _0x3d837c[_0x2136('0xb4')])_0x1ddbfe[_0x2136('0x76')](_0x208f49['id'],_0x208f49);for(const _0x55b28b of _0x1ff839){const _0x563df3=_0x3d837c[_0x2136('0xea')][_0x55b28b]?_0x3d837c[_0x2136('0xea')][_0x55b28b]['insertions']:'[]',_0x46596b=_0x3d837c[_0x2136('0xea')][_0x55b28b]?_0x3d837c['diffData'][_0x55b28b][_0x2136('0x107')]:'[]';_0x3d837c[_0x2136('0x48')][_0x55b28b]={'insertions':this['_makeModelFromViewString'](_0x563df3),'deletions':this['_makeModelFromViewString'](_0x46596b)};}}for(const _0x3e65b4 of _0x1ff839){let _0x94229f=null,_0x2b61cd=0x0;const _0x1d437c=new Map(Array[_0x2136('0xdb')](_0x3ff846[_0x2136('0x48')][_0x3e65b4][_0x2136('0xb1')][_0x2136('0x5e')])[_0x2136('0xf8')](([_0x1544f8])=>!_0x1544f8[_0x2136('0x64')]('revision:')));let _0x30072a=0x0;for(const _0x10901b of _0x5646a3){const _0x20e87d=this[_0x2136('0x69')](_0x10901b[_0x2136('0x48')][_0x3e65b4][_0x2136('0xb1')]);_0x10901b==_0x3ff846?(_0x94229f=_0x20e87d,_0x2b61cd=_0x94229f[_0x2136('0x81')],_0x94229f[_0x2136('0x7d')](_0x144eca=>{_0x144eca['id']=_0x30072a++;}),this[_0x2136('0x24')](_0x94229f)):this[_0x2136('0xe')](_0x94229f,_0x20e87d);const _0x1fb193=_0x94229f[_0x2136('0xf8')](_0x4574e0=>!_0x4574e0[_0x2136('0xbe')])[_0x2136('0x66')](_0x3b055f=>_0x3b055f['id']);let _0x1e816e=0x0;const _0x4c267=this[_0x2136('0x69')](_0x10901b['model'][_0x3e65b4][_0x2136('0x107')]);_0x4c267[_0x2136('0x7d')](_0x159d13=>{_0x159d13[_0x2136('0x89')]?_0x159d13['id']=_0x2b61cd++:_0x159d13['id']=_0x1fb193[_0x1e816e++];}),this[_0x2136('0x24')](_0x4c267),this[_0x2136('0x1b')](_0x94229f,'isAdded'),this['_setDistance'](_0x4c267,'isRemoved'),_0x10901b==_0x3ff846&&this['_markMarkers'](_0x94229f,_0x1d437c),_0x94229f=this['_joinTapes'](_0x94229f,_0x4c267),this[_0x2136('0x5f')](_0x94229f),this['_setDistance'](_0x94229f,_0x2136('0x89'));}_0x94229f=_0x94229f[_0x2136('0xf8')](_0xa3ba93=>!(_0xa3ba93[_0x2136('0xbe')]&&_0xa3ba93['isRemoved']));const _0x4402ca=new Map(_0x353ae2[_0x2136('0x48')][_0x3e65b4][_0x2136('0x107')]['markers']),_0x1b97cd=new Set(_0x1d437c[_0x2136('0xc7')]());for(const _0x1df1fd of _0x4402ca[_0x2136('0xc7')]())_0x1b97cd[_0x2136('0x83')](_0x1df1fd);this[_0x2136('0xc1')](_0x94229f,_0x1b97cd),this[_0x2136('0x6c')](_0x94229f),_0x94229f=this[_0x2136('0xd7')](_0x94229f),_0x94229f=this[_0x2136('0x100')](_0x94229f),_0x94229f=this[_0x2136('0x4c')](_0x94229f);const {root:_0x36f6cc,changes:_0x1d56f8}=this[_0x2136('0xac')](_0x94229f,_0x1ddbfe,_0x3e65b4);_0x11e3fc[_0x2136('0x48')][_0x3e65b4]=_0x36f6cc;const _0x3c6a44=_0x1d11de[_0x2136('0x112')](_0x3e65b4);if(_0x3c6a44){const _0x46e5f4=_0x1ddbfe['get'](_0x3c6a44['userId']),_0x1be20b=new _0x3ff98c({'author':_0x46e5f4,'type':_0x3c6a44[_0x2136('0x88')]?_0x2136('0x4'):_0x2136('0x73'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3e65b4});_0x1d56f8[_0x2136('0x119')](_0x1be20b),_0x11e3fc['attributes'][_0x3e65b4][_0x2136('0x123')]=_0x1be20b['id'];}_0x11e3fc[_0x2136('0x2f')]=_0x11e3fc[_0x2136('0x2f')][_0x2136('0xe0')](_0x1d56f8);}return _0x11e3fc;}[_0x2136('0x26')](_0x183bcd,_0x2b2245){for(let _0x477c4e=0x0;_0x477c4e<_0x183bcd[_0x2136('0x81')];_0x477c4e++)for(const [_0x423e50,_0xced05]of _0x2b2245)_0xced05[_0x2136('0x91')][_0x2136('0x7f')](_0x183bcd[_0x477c4e][_0x2136('0x62')])&&_0x183bcd[_0x477c4e][_0x2136('0xd9')][_0x2136('0xc6')](_0x423e50),_0xced05[_0x2136('0xd3')]['isEqual'](_0x183bcd[_0x477c4e][_0x2136('0xe7')])&&_0x183bcd[_0x477c4e]['markersEnd'][_0x2136('0xc6')](_0x423e50);}[_0x2136('0xb9')](_0x31c17a,_0x4d6fda){let _0x40bfb9=[],_0x34a0b9=0x0,_0x4c751c=0x0;for(;_0x34a0b9<_0x31c17a[_0x2136('0x81')]||_0x4c751c<_0x4d6fda[_0x2136('0x81')];){const _0x4ec390=_0x31c17a[_0x34a0b9]||{},_0xa2d4bb=_0x4d6fda[_0x4c751c]||{};if(_0x4ec390['id']==_0xa2d4bb['id'])_0x34a0b9++,_0x4c751c++,_0x40bfb9['push'](_0x4ec390);else{if(_0xa2d4bb[_0x2136('0x89')]&&_0x4ec390[_0x2136('0xbe')]){const {commonTape:_0x39ecad,iEnd:_0x2622cc,jEnd:_0x26081c}=this['_threeWayMerge'](_0x31c17a,_0x34a0b9,_0x4d6fda,_0x4c751c);_0x40bfb9=_0x40bfb9[_0x2136('0xe0')](_0x39ecad),_0x34a0b9=_0x2622cc,_0x4c751c=_0x26081c;}else _0xa2d4bb[_0x2136('0x89')]?(_0x4c751c++,_0x40bfb9['push'](_0xa2d4bb)):(_0x34a0b9++,_0x40bfb9['push'](_0x4ec390));}}return _0x40bfb9;}[_0x2136('0xc1')](_0x5bfac5,_0x158223){const _0x57ab98=[];for(let _0x3b84f1=0x0;_0x3b84f1<_0x5bfac5['length'];_0x3b84f1++){for(let _0x2069aa=0x0;_0x2069aa<_0x5bfac5[_0x3b84f1]['markersStart'][_0x2136('0x81')];_0x2069aa++){const _0x4eabe2=_0x5bfac5[_0x3b84f1][_0x2136('0xd9')][_0x2069aa];if(!_0x158223['has'](_0x4eabe2))continue;const {group:_0x11036d,type:_0x972d85,authorId:_0x73d2f2}=_0x2003c3(_0x4eabe2);_0x2136('0x110')!=_0x11036d||_0x2136('0x12')!=_0x972d85&&_0x2136('0xbb')!=_0x972d85||(_0x57ab98[_0x2136('0x119')]({'type':_0x972d85,'name':_0x4eabe2,'userId':_0x73d2f2}),_0x5bfac5[_0x3b84f1][_0x2136('0xd9')][_0x2136('0x95')](_0x2069aa,0x1),_0x2069aa--);}_0x537acc(_0x5bfac5[_0x3b84f1]);for(let _0x10af6b=0x0;_0x10af6b<_0x5bfac5[_0x3b84f1]['markersEnd'][_0x2136('0x81')];_0x10af6b++){const _0x38e445=_0x5bfac5[_0x3b84f1][_0x2136('0x10c')][_0x10af6b];if(!_0x158223[_0x2136('0x25')](_0x38e445))continue;const {group:_0x4304cf,type:_0x2aacfb}=_0x2003c3(_0x38e445);if(_0x2136('0x110')!=_0x4304cf||_0x2136('0x12')!=_0x2aacfb&&'deletion'!=_0x2aacfb)continue;_0x5bfac5[_0x3b84f1][_0x2136('0x10c')]['splice'](_0x10af6b,0x1),_0x10af6b--;const _0x5072e1=_0x57ab98[_0x2136('0x4a')](_0x1ed6cc=>_0x1ed6cc[_0x2136('0x42')]==_0x38e445);_0x5072e1>-0x1&&_0x57ab98['splice'](_0x5072e1,0x1);}}function _0x2003c3(_0x2963e9){const _0x199450=_0x2963e9[_0x2136('0x53')](':');return{'group':_0x199450[0x0],'type':_0x199450[0x1],'subType':_0x199450['length']>=0x5?_0x199450[0x2]:null,'id':_0x199450[_0x2136('0x81')]<0x5?_0x199450[0x2]:_0x199450[0x3],'authorId':_0x199450[_0x2136('0x81')]<0x5?_0x199450[0x3]:_0x199450[0x4],'markerCount':0x6==_0x199450['length']?_0x199450[0x5]:null};}function _0x537acc(_0x7ef13d){for(let _0x359941=0x0;_0x359941<_0x57ab98['length'];_0x359941++){if(_0x7ef13d[_0x2136('0xbe')]&&'insertion'==_0x57ab98[_0x359941][_0x2136('0xb')])return _0x7ef13d[_0x2136('0xc0')]=_0x57ab98[_0x359941],void delete _0x7ef13d[_0x2136('0xbe')];if(!_0x7ef13d[_0x2136('0xbe')]&&!_0x7ef13d['isRemoved']&&'deletion'==_0x57ab98[_0x359941][_0x2136('0xb')])return void(_0x7ef13d[_0x2136('0xa3')]=_0x57ab98[_0x359941]);}}}['_setDistance'](_0x57f43d,_0x19978b){let _0x5d8156=0x0,_0x3801d3=!0x1;const _0x449a17=new Map();for(const _0x162c80 of _0x57f43d)_0x162c80[_0x19978b]?_0x3801d3&&(_0x5d8156++,_0x3801d3=!0x1):(_0x5d8156++,_0x3801d3=!0x0),_0x449a17['set'](_0x162c80['id'],_0x5d8156);for(let _0x4caaf3=0x0;_0x4caaf3<_0x57f43d['length'];_0x4caaf3++){if(_0x2136('0x89')==_0x19978b&&_0x57f43d[_0x4caaf3][_0x2136('0xbe')]||_0x2136('0xbe')==_0x19978b&&_0x57f43d[_0x4caaf3][_0x2136('0x89')])continue;if(_0x2136('0x8a')==_0x57f43d[_0x4caaf3]['type']){_0x57f43d[_0x4caaf3][_0x2136('0xae')]=0x0;continue;}const _0x5de6e9=_0x449a17[_0x2136('0x112')](_0x57f43d[_0x4caaf3][_0x2136('0x128')]),_0x233d51=_0x449a17['get'](_0x57f43d[_0x4caaf3]['id']);_0x57f43d[_0x4caaf3][_0x2136('0xae')]=_0x5de6e9-_0x233d51;}}[_0x2136('0x34')](_0x345c5c,_0x2fee3e,_0x1f595b=!0x1){const _0x1d396b=[];let _0x4d6fd7=this[_0x2136('0x1f')][_0x2136('0x4f')](_0x345c5c),_0x5f4a10=this[_0x2136('0x1f')]['getIndex'](_0x2fee3e);for(-0x1==_0x5f4a10&&(_0x5f4a10=this[_0x2136('0x1f')][_0x2136('0x6e')]['length'],_0x1f595b=!0x1);_0x4d6fd7<_0x5f4a10;)_0x1d396b[_0x2136('0xc6')](this['repository'][_0x2136('0xfd')](_0x4d6fd7)),_0x4d6fd7++;return _0x1f595b&&_0x1d396b[_0x2136('0xc6')](this[_0x2136('0x1f')]['getRevision'](_0x4d6fd7)),_0x1d396b;}['_threeWayMerge'](_0x440195,_0x296379,_0x46b140,_0x4d3180){const _0x4dce5a=this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0x6f')];let _0x302e46=_0x296379;for(;_0x440195[_0x302e46]&&_0x440195[_0x302e46]['isAdded'];)_0x302e46++;let _0x2b11f4=_0x4d3180;for(;_0x46b140[_0x2b11f4]&&_0x46b140[_0x2b11f4][_0x2136('0x89')];)_0x2b11f4++;_0x17f356(_0x440195,_0x296379,_0x302e46),_0x17f356(_0x46b140,_0x4d3180,_0x2b11f4);const _0x2977a6=_0x46b140[_0x2136('0x44')](_0x4d3180,_0x2b11f4)[_0x2136('0xe0')](_0x440195['slice'](_0x296379,_0x302e46));return _0x2977a6[_0x2136('0x2b')]((_0x2a3dc4,_0x3b63d9)=>_0x2a3dc4['side']!=_0x3b63d9[_0x2136('0x113')]?_0x2a3dc4['side']-_0x3b63d9[_0x2136('0x113')]:_0x2a3dc4[_0x2136('0xa5')]!=_0x3b63d9[_0x2136('0xa5')]?_0x2a3dc4['level']-_0x3b63d9['level']:_0x2a3dc4[_0x2136('0xae')]!=_0x3b63d9[_0x2136('0xae')]?_0x3b63d9[_0x2136('0xae')]-_0x2a3dc4[_0x2136('0xae')]:!!_0x2a3dc4[_0x2136('0xbe')]!=!!_0x3b63d9[_0x2136('0xbe')]?-0x1==_0x2a3dc4[_0x2136('0x113')]||0x0==_0x2a3dc4[_0x2136('0x113')]?_0x2a3dc4[_0x2136('0xbe')]?-0x1:0x1:_0x2a3dc4[_0x2136('0xbe')]?0x1:-0x1:_0x2a3dc4[_0x2136('0xd')]-_0x3b63d9[_0x2136('0xd')]),{'commonTape':_0x2977a6,'iEnd':_0x302e46,'jEnd':_0x2b11f4};function _0x17f356(_0x53b6bd,_0x3ee385,_0x39cdcf){let _0x338707=-0x1,_0x2adae6=Number[_0x2136('0x105')],_0x170c8b=!0x0;for(let _0x81f13b=_0x3ee385;_0x81f13b<_0x39cdcf;_0x81f13b++)if(_0x4dce5a[_0x2136('0x23')](_0x53b6bd[_0x81f13b][_0x2136('0xdd')])||(_0x170c8b=!0x1),_0x53b6bd[_0x81f13b]['item'][_0x2136('0x9')]<_0x3ee385&&(_0x338707=_0x81f13b),_0x53b6bd[_0x81f13b][_0x2136('0xdd')]['endIndex']>=_0x39cdcf){_0x2adae6=_0x81f13b;break;}_0x170c8b&&(_0x338707=_0x39cdcf-0x1);for(let _0x33995a=_0x3ee385;_0x33995a<_0x39cdcf;_0x33995a++)_0x53b6bd[_0x33995a][_0x2136('0x113')]=_0x33995a<=_0x338707?-0x1:_0x33995a<_0x2adae6?0x0:0x1,_0x53b6bd[_0x33995a][_0x2136('0xd')]=_0x33995a;let _0xc49732=0x0;for(let _0x3f3114=_0x3ee385;_0x3f3114<=_0x338707;_0x3f3114++)0x0==_0x53b6bd[_0x3f3114]['distance']?_0x53b6bd[_0x3f3114][_0x2136('0xa5')]=_0xc49732:(_0xc49732++,_0x53b6bd[_0x3f3114][_0x2136('0xa5')]=_0xc49732,_0xc49732++);for(let _0x44f0b5=_0x3ee385;_0x44f0b5<_0x39cdcf;_0x44f0b5++)0x0==_0x53b6bd[_0x44f0b5][_0x2136('0x113')]&&(_0x53b6bd[_0x44f0b5][_0x2136('0xa5')]=_0xc49732);_0xc49732=0x0;for(let _0x25c038=_0x39cdcf-0x1;_0x25c038>=_0x2adae6;_0x25c038--)0x0==_0x53b6bd[_0x25c038][_0x2136('0xae')]?_0x53b6bd[_0x25c038][_0x2136('0xa5')]=_0xc49732:(_0xc49732--,_0x53b6bd[_0x25c038][_0x2136('0xa5')]=_0xc49732,_0xc49732--);}}[_0x2136('0x6c')](_0x46fc1f){const _0x2d35fc=new Map(),_0x47ddd9=this['editor'][_0x2136('0x48')][_0x2136('0x6f')];for(let _0xea5202=0x1;_0xea5202<_0x46fc1f[_0x2136('0x81')];_0xea5202++){let _0x4901fd,_0xa08fa0,_0x5bf071;const _0x267439=_0x46fc1f[_0xea5202],_0x2ebecd=_0x46fc1f[_0xea5202-0x1];if('text'==_0x267439['type'])continue;if(_0x267439[_0x2136('0xb')]!=_0x2ebecd[_0x2136('0xb')])continue;if(!_0x47ddd9[_0x2136('0xde')](_0x2ebecd['item'])||_0x47ddd9[_0x2136('0xd0')](_0x2ebecd[_0x2136('0xdd')]))continue;if(!_0x47ddd9[_0x2136('0xde')](_0x267439['item'])||_0x47ddd9['isLimit'](_0x267439[_0x2136('0xdd')]))continue;if((_0x46fc1f[_0xea5202][_0x2136('0xbe')]||_0x46fc1f[_0xea5202][_0x2136('0xc0')])&&_0x46fc1f[_0xea5202-0x1][_0x2136('0x89')])_0x4901fd=_0x46fc1f[_0xea5202],_0xa08fa0=_0x46fc1f[_0xea5202-0x1],_0x5bf071=_0xea5202-0x1;else{if(!_0x46fc1f[_0xea5202][_0x2136('0x89')]||!_0x46fc1f[_0xea5202-0x1][_0x2136('0xbe')]&&!_0x46fc1f[_0xea5202-0x1][_0x2136('0xc0')])continue;_0x4901fd=_0x46fc1f[_0xea5202-0x1],_0xa08fa0=_0x46fc1f[_0xea5202],_0x5bf071=_0xea5202;}const _0x315b90=_0x4901fd[_0x2136('0xa5')]==_0xa08fa0['level'],_0x2e3d1d=Math[_0x2136('0x4e')](_0x4901fd[_0x2136('0xa5')])<Math[_0x2136('0x4e')](_0xa08fa0[_0x2136('0xa5')])&&0x0==_0xa08fa0['distance'];(_0x315b90||_0x2e3d1d)&&(_0x2d35fc[_0x2136('0x76')](_0xa08fa0['id'],_0x4901fd['id']),_0x46fc1f['splice'](_0x5bf071,0x1),_0xea5202--,_0x4901fd[_0x2136('0xbe')]=!0x1);}for(let _0x522d0e=0x0;_0x522d0e<_0x46fc1f[_0x2136('0x81')];_0x522d0e++)_0x2d35fc[_0x2136('0x25')](_0x46fc1f[_0x522d0e]['pairId'])&&(_0x46fc1f[_0x522d0e]['pairId']=_0x2d35fc['get'](_0x46fc1f[_0x522d0e]['pairId']));}[_0x2136('0xd7')](_0x454ac4){const _0x3eb278=new Set(_0x454ac4[_0x2136('0x66')](_0xb24be5=>_0xb24be5['id']));for(let _0x51c751=0x0;_0x51c751<_0x454ac4['length'];_0x51c751++)_0x3eb278[_0x2136('0x25')](_0x454ac4[_0x51c751][_0x2136('0x128')])||0x0==_0x454ac4[_0x51c751][_0x2136('0xae')]||(_0x454ac4[_0x51c751][_0x2136('0x3')]=!0x0);return _0x454ac4[_0x2136('0xf8')](_0x471dda=>!_0x471dda[_0x2136('0x3')]);}[_0x2136('0x100')](_0x226bd1){const _0xd67801=new Set();for(let _0x2676ce=0x0;_0x2676ce<_0x226bd1['length'];_0x2676ce++){if(_0xd67801[_0x2136('0x25')](_0x226bd1[_0x2676ce]['id'])&&_0x226bd1[_0x2676ce][_0x2136('0x89')]&&(_0x226bd1[_0x2676ce]['isIncorrect']=!0x0),_0x226bd1[_0x2676ce][_0x2136('0x3')])continue;if(0x0==_0x226bd1[_0x2676ce][_0x2136('0xae')])continue;if(_0x2136('0xc8')!=_0x226bd1[_0x2676ce]['type'])continue;if(null==_0x226bd1[_0x2676ce]['pairId'])continue;let _0x36308b=_0x2676ce+0x1,_0x36c9f1=0x0;for(;_0x226bd1[_0x36308b]['id']!=_0x226bd1[_0x2676ce]['pairId'];)'elementStart'==_0x226bd1[_0x36308b]['type']?_0x36c9f1++:'elementEnd'==_0x226bd1[_0x36308b]['type']&&_0x36c9f1--,_0x36308b++;if(0x0!=_0x36c9f1){if(_0x226bd1[_0x2676ce][_0x2136('0x89')])_0x226bd1[_0x2676ce][_0x2136('0x3')]=!0x0;else for(;_0x36308b!=_0x2676ce;)_0x226bd1[_0x36308b][_0x2136('0x89')]&&0x0!=_0x226bd1[_0x36308b]['distance']&&(_0x226bd1[_0x36308b][_0x2136('0x3')]=!0x0,_0xd67801[_0x2136('0x4')](_0x226bd1[_0x36308b][_0x2136('0x128')])),_0x36308b--;}}return _0x226bd1[_0x2136('0xf8')](_0x1a88de=>!_0x1a88de[_0x2136('0x3')]);}[_0x2136('0x4c')](_0x4ea6e6){const _0x36f73b=this[_0x2136('0x54')]['model'][_0x2136('0x6f')];for(let _0xda4fa3=0x0;_0xda4fa3<_0x4ea6e6[_0x2136('0x81')];_0xda4fa3++){if(!(_0x4ea6e6[_0xda4fa3][_0x2136('0xbe')]||_0x4ea6e6[_0xda4fa3][_0x2136('0xc0')]||_0x4ea6e6[_0xda4fa3][_0x2136('0x89')]||_0x4ea6e6[_0xda4fa3][_0x2136('0xa3')]))continue;if(0x0==_0x4ea6e6[_0xda4fa3][_0x2136('0xae')])continue;const _0x518d7a=_0x4ea6e6[_0xda4fa3][_0x2136('0xdd')];_0x36f73b[_0x2136('0xde')](_0x518d7a)||_0x36f73b['isLimit'](_0x518d7a)||(_0x4ea6e6[_0xda4fa3][_0x2136('0xbe')]&&delete _0x4ea6e6[_0xda4fa3][_0x2136('0xbe')],_0x4ea6e6[_0xda4fa3]['isAddSuggestion']&&delete _0x4ea6e6[_0xda4fa3][_0x2136('0xc0')],_0x4ea6e6[_0xda4fa3][_0x2136('0xa3')]&&delete _0x4ea6e6[_0xda4fa3][_0x2136('0xa3')],_0x4ea6e6[_0xda4fa3][_0x2136('0x89')]&&(_0x4ea6e6[_0xda4fa3]['isIncorrect']=!0x0));}return _0x4ea6e6['filter'](_0x240440=>!_0x240440[_0x2136('0x3')]);}[_0x2136('0xac')](_0x2f2445,_0x324029,_0x2f056e){const _0x172178=new _0x526ef0(),_0x414890=[],_0x4de6a3=new Map(),_0x5f49c7=this['editor'][_0x2136('0x48')],_0x16cf3d=_0x5f49c7[_0x2136('0x6f')],_0x5e7492=[_0x172178],_0x333cc6={},_0x688dab={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24b59b=null;const _0x2b579d=[0x0];for(let _0x54d6f2=0x0;_0x54d6f2<_0x2f2445[_0x2136('0x81')];_0x54d6f2++){let _0x351349,_0x29b5ae;if(_0x2136('0xc8')===_0x2f2445[_0x54d6f2][_0x2136('0xb')]){_0x351349=_0x5f49c7[_0x2136('0xf4')](_0x172178,_0x2b579d);const _0x3d2220=new _0x506657(_0x2f2445[_0x54d6f2][_0x2136('0xdd')][_0x2136('0x42')],_0x2f2445[_0x54d6f2][_0x2136('0xdd')][_0x2136('0x10')]());_0x5e7492[0x0][_0x2136('0xbc')](_0x3d2220),_0x2b579d['push'](0x0),_0x5e7492[_0x2136('0x119')](_0x3d2220),_0x29b5ae=_0x5f49c7[_0x2136('0xf4')](_0x172178,_0x2b579d),_0x24b59b=null;}else{if(_0x2136('0x120')===_0x2f2445[_0x54d6f2][_0x2136('0xb')])_0x5e7492[_0x2136('0xa2')](),_0x351349=_0x5f49c7[_0x2136('0xf4')](_0x172178,_0x2b579d),_0x2b579d[_0x2136('0x16')](),_0x2b579d[_0x2b579d['length']-0x1]++,_0x29b5ae=_0x5f49c7['createPositionFromPath'](_0x172178,_0x2b579d),_0x24b59b=null;else{if(_0x351349=_0x5f49c7[_0x2136('0xf4')](_0x172178,_0x2b579d),_0x24b59b&&_0x3b3640(_0x24b59b,_0x2f2445[_0x54d6f2][_0x2136('0xdd')]))_0x24b59b[_0x2136('0x11')]+=_0x2f2445[_0x54d6f2][_0x2136('0xdd')][_0x2136('0x57')];else{const _0x12d5fb=new _0x7c5852(_0x2f2445[_0x54d6f2][_0x2136('0xdd')]['data'],_0x2f2445[_0x54d6f2][_0x2136('0xdd')][_0x2136('0x10')]());_0x5e7492[0x0][_0x2136('0xbc')](_0x12d5fb),_0x24b59b=_0x12d5fb;}_0x2b579d[_0x2b579d[_0x2136('0x81')]-0x1]+=_0x2f2445[_0x54d6f2][_0x2136('0xdd')]['offsetSize'],_0x29b5ae=_0x5f49c7['createPositionFromPath'](_0x172178,_0x2b579d);}}for(const _0x4a1cce of _0x2f2445[_0x54d6f2][_0x2136('0xd9')])_0x4de6a3[_0x2136('0x76')](_0x4a1cce,{'start':_0x351349,'end':null});_0x214693(_0x2136('0xa3'),_0x54d6f2,_0x351349,_0x29b5ae),_0x214693(_0x2136('0xc0'),_0x54d6f2,_0x351349,_0x29b5ae),_0x214693(_0x2136('0x89'),_0x54d6f2,_0x351349,_0x29b5ae),_0x214693(_0x2136('0xbe'),_0x54d6f2,_0x351349,_0x29b5ae);for(const _0x2c1012 of _0x2f2445[_0x54d6f2][_0x2136('0x10c')]){_0x4de6a3['get'](_0x2c1012)[_0x2136('0xd3')]=_0x29b5ae;}}for(const [_0x491bcb,_0x240e92]of _0x4de6a3){const _0x2b9df3=this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0xf')](_0x240e92[_0x2136('0x91')],_0x240e92[_0x2136('0xd3')]);_0x172178[_0x2136('0x5e')][_0x2136('0x76')](_0x491bcb,_0x2b9df3);}return _0x414890[_0x2136('0x2b')]((_0x457221,_0x40926e)=>{const _0x2076e7=_0x172178[_0x2136('0x5e')][_0x2136('0x112')](_0x2136('0x1c')+_0x457221['id']),_0x113e47=_0x172178[_0x2136('0x5e')]['get'](_0x2136('0x1c')+_0x40926e['id']);return _0x2076e7['start'][_0x2136('0x92')](_0x113e47[_0x2136('0x91')])?-0x1:_0x2076e7[_0x2136('0x91')][_0x2136('0x111')](_0x113e47['start'])?0x1:_0x2076e7[_0x2136('0xd3')][_0x2136('0x92')](_0x113e47[_0x2136('0xd3')])?-0x1:_0x2076e7[_0x2136('0xd3')][_0x2136('0x111')](_0x113e47['end'])?0x1:_0x2136('0x4')===_0x457221[_0x2136('0xb')]?-0x1:0x1;}),{'root':_0x172178,'changes':_0x414890};function _0x214693(_0x590762,_0x2be225,_0x2531b2,_0x33175e){const _0x1e9d71=!!_0x2f2445[_0x2be225][_0x590762],_0x86e68e=_0x1e9d71?_0x2f2445[_0x2be225][_0x590762][_0x2136('0xf5')]:null,_0x867ae4=_0x2be225===_0x2f2445[_0x2136('0x81')]-0x1,_0x176184=_0x688dab[_0x590762][0x0],_0x45994d=_0x16cf3d['isObject'](_0x2f2445[_0x2be225]['item']);!_0x333cc6[_0x590762]&&_0x1e9d71?_0x333cc6[_0x590762]={'start':_0x2531b2,'tapeItem':_0x2f2445[_0x2be225],'userId':_0x86e68e,'type':_0x590762}:_0x333cc6[_0x590762]&&!_0x1e9d71?(_0x333cc6[_0x590762][_0x2136('0xd3')]=_0x2531b2,_0x519cc1(_0x333cc6[_0x590762]),_0x333cc6[_0x590762]=null):_0x333cc6[_0x590762]&&_0x1e9d71&&_0x333cc6[_0x590762][_0x2136('0xf5')]!==_0x86e68e&&(_0x333cc6[_0x590762]['end']=_0x2531b2,_0x176184&&_0x176184[_0x2136('0xf5')]===_0x333cc6[_0x590762][_0x2136('0xf5')]||_0x519cc1(_0x333cc6[_0x590762]),_0x333cc6[_0x590762]={'start':_0x2531b2,'tapeItem':_0x2f2445[_0x2be225],'userId':_0x86e68e,'type':_0x590762}),_0x333cc6[_0x590762]&&_0x45994d&&(_0x2136('0xc8')!==_0x2f2445[_0x2be225][_0x2136('0xb')]||_0x176184&&_0x176184[_0x2136('0xf5')]===_0x86e68e||_0x688dab[_0x590762][_0x2136('0x119')]({'userId':_0x86e68e,'object':_0x2f2445[_0x2be225][_0x2136('0xdd')],'change':_0x333cc6[_0x590762]}),'elementEnd'===_0x2f2445[_0x2be225][_0x2136('0xb')]&&_0x176184&&_0x176184[_0x2136('0x1a')]===_0x2f2445[_0x2be225][_0x2136('0xdd')]&&(_0x688dab[_0x590762][_0x2136('0xa2')](),_0x333cc6[_0x590762]=_0x176184[_0x2136('0x32')])),_0x333cc6[_0x590762]&&_0x867ae4&&(_0x333cc6[_0x590762][_0x2136('0xd3')]=_0x33175e,_0x519cc1(_0x333cc6[_0x590762]),_0x333cc6[_0x590762]=null);}function _0x519cc1({start:_0x4f0a15,end:_0x3ca47e,tapeItem:_0x12e9be,userId:_0x477ba3,type:_0x4764cb}){const _0xcedbb6=_0x12e9be['item'],_0x57f35e=_0x5f49c7[_0x2136('0x6f')]['isBlock'](_0xcedbb6)&&!_0x5f49c7[_0x2136('0x6f')][_0x2136('0xd0')](_0xcedbb6),_0x333ef8=_0x4f0a15[_0x2136('0x85')]==_0x3ca47e[_0x2136('0x116')]&&_0x3ca47e[_0x2136('0x108')];if(_0x57f35e&&_0x333ef8)return;const _0x5676c2=_0x5f49c7['createRange'](_0x4f0a15,_0x3ca47e),_0x385276=_0x324029['get'](_0x477ba3),_0xefd12=new _0x3ff98c({'author':_0x385276,'type':_0x2136('0xbe')==_0x4764cb||_0x2136('0xc0')==_0x4764cb?_0x2136('0x4'):_0x2136('0x73'),'data':{'isSuggestion':'isAddSuggestion'==_0x4764cb||_0x2136('0xa3')==_0x4764cb},'createdAt':new Date(),'rootName':_0x2f056e});_0x414890[_0x2136('0xc6')](_0xefd12),_0x172178[_0x2136('0x5e')]['set'](_0x2136('0x1c')+_0xefd12['id'],_0x5676c2);}function _0x3b3640(_0x5d09d4,_0x4f32fe){const _0x3352af=_0x5d09d4['getAttributes'](),_0x12cfd2=_0x4f32fe[_0x2136('0x10')]();for(const _0x2b212e of _0x3352af){if(_0x2b212e[0x1]!==_0x4f32fe[_0x2136('0xad')](_0x2b212e[0x0]))return!0x1;_0x12cfd2[_0x2136('0x8')]();}return _0x12cfd2[_0x2136('0x8')]()[_0x2136('0xaa')];}}['_setConversion'](){this[_0x2136('0x54')]['conversion'][_0x2136('0x4b')]('upcast')['dataToMarker']({'view':'revision'}),this[_0x2136('0x54')][_0x2136('0xe3')]['for']('editingDowncast')[_0x2136('0xe4')]({'model':_0x2136('0xdc'),'view':_0x4bcd41=>{const _0x274aac=_0x4bcd41[_0x2136('0xcc')][_0x2136('0x53')](':')[0x1],_0x5967d8=this[_0x2136('0x3c')](_0x274aac);if(!_0x5967d8)return null;const _0x36d56a=_0x2136('0x4')==_0x5967d8[_0x2136('0xb')]?_0x2136('0x12'):'deletion',_0x592b82=[_0x2136('0x114'),_0x2136('0x75')+_0x36d56a];return _0x5967d8[_0x2136('0x57')]['isSuggestion']&&_0x592b82[_0x2136('0xc6')](_0x2136('0x75')+_0x36d56a+_0x2136('0xeb')),this[_0x2136('0xf3')]==_0x5967d8&&_0x592b82['push'](_0x2136('0xef')),{'classes':_0x592b82,'attributes':{'data-change-id':_0x274aac}};}}),this[_0x2136('0x54')][_0x2136('0xe3')][_0x2136('0x4b')]('upcast')[_0x2136('0x4')](_0x364b23=>{_0x364b23['on']('element:pre',(_0x543f80,_0x1fe480,_0x1c81a2)=>{const _0x21336a=_0x1fe480[_0x2136('0x21')][_0x2136('0x8c')](0x0);if(!_0x21336a||!_0x21336a['is'](_0x2136('0x5c'),'code'))return;if(!_0x1c81a2[_0x2136('0x30')][_0x2136('0xba')](_0x21336a,{'attributes':[_0x2136('0xf7'),_0x2136('0x11e')]}))return;const _0x4cb3a6=_0x1fe480['modelRange'][_0x2136('0x91')][_0x2136('0x85')];_0x1c81a2[_0x2136('0x6d')][_0x2136('0x49')](_0x2136('0xf7'),_0x21336a[_0x2136('0xad')](_0x2136('0xf7')),_0x4cb3a6),_0x1c81a2[_0x2136('0x6d')][_0x2136('0x49')](_0x2136('0x11e'),_0x21336a['getAttribute'](_0x2136('0x11e')),_0x4cb3a6);},{'priority':_0x2136('0x71')});}),this['editor'][_0x2136('0xe3')]['for'](_0x2136('0x41'))['add'](_0x4d77af=>{_0x4d77af['on'](_0x2136('0x5c'),(_0x521ed5,_0x44ee7c,_0xf9975a)=>{if(!_0xf9975a[_0x2136('0x30')][_0x2136('0xba')](_0x44ee7c['viewItem'],{'attributes':[_0x2136('0xf7'),'vid_end']}))return;if(_0x44ee7c[_0x2136('0x7a')]['isCollapsed'])return;const _0x37f3ee=_0x44ee7c[_0x2136('0x7a')][_0x2136('0x91')]['nodeAfter'];_0x37f3ee[_0x2136('0x46')](_0x2136('0xf7'))||_0x37f3ee[_0x2136('0x46')](_0x2136('0x106'))||(_0xf9975a[_0x2136('0x6d')][_0x2136('0x49')](_0x2136('0xf7'),_0x44ee7c[_0x2136('0x21')][_0x2136('0xad')](_0x2136('0xf7')),_0x37f3ee),_0xf9975a[_0x2136('0x6d')][_0x2136('0x49')](_0x2136('0x11e'),_0x44ee7c[_0x2136('0x21')][_0x2136('0xad')](_0x2136('0x11e')),_0x37f3ee));},{'priority':'low'});}),this['editor'][_0x2136('0xe3')][_0x2136('0x4b')]('upcast')['elementToAttribute']({'view':{'name':_0x2136('0x2c'),'attributes':{'vid':!0x0}},'model':{'key':_0x2136('0x106'),'value':_0x16aa98=>_0x16aa98['getAttribute']('vid')}}),this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0x6f')]['on']('checkAttribute',(_0x54f9c9,[,_0x3f0719])=>{['vid_start',_0x2136('0x11e'),'vid'][_0x2136('0xce')](_0x3f0719)&&(_0x54f9c9[_0x2136('0x15')]=!0x0,_0x54f9c9[_0x2136('0x9d')]());},{'priority':_0x2136('0xab')}),this[_0x2136('0x54')][_0x2136('0xe3')][_0x2136('0x4b')]('dataDowncast')[_0x2136('0x4')](_0x3794ca=>{_0x3794ca['on']('attribute:vid',(_0x330899,_0x34e5dd,_0x53c128)=>{if('\x20'!=_0x34e5dd[_0x2136('0xdd')]['data']||_0x34e5dd[_0x2136('0xdd')][_0x2136('0x116')]['maxOffset']>0x1)return;if(!_0x53c128[_0x2136('0x30')][_0x2136('0xba')](_0x34e5dd['item'],_0x330899['name']))return;const _0x9f9019=_0x53c128[_0x2136('0x6d')],_0x25b769=_0x53c128[_0x2136('0xb2')][_0x2136('0xf6')](_0x34e5dd[_0x2136('0x6b')]);_0x9f9019[_0x2136('0x8e')](_0x25b769,_0x9f9019[_0x2136('0x1e')](_0x2136('0x2c')));});}),this['editor'][_0x2136('0xe3')]['for'](_0x2136('0x43'))[_0x2136('0x9b')]({'model':_0x2136('0xdc')}),this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xa9')]['on'](_0x2136('0xd5'),function(_0x5871de){const _0x6ce660=_0x5871de[_0x2136('0xa0')]['get'](_0x2136('0x55'));return(_0x4e7e66,_0x51c255,_0x27195d)=>{const _0x379c8f=_0x51c255[_0x2136('0xcc')][_0x2136('0x53')](':')[0x1],_0x364c90=_0x6ce660[_0x2136('0x3c')](_0x379c8f);if(!_0x364c90)return null;const _0x24fb83='add'==_0x364c90[_0x2136('0xb')]?'split':_0x2136('0x27');if(!_0x27195d[_0x2136('0x30')][_0x2136('0x7b')](_0x51c255['markerRange'],_0x4e7e66['name']))return;const _0x1ec2ba=_0x51c255[_0x2136('0xbf')][_0x2136('0x96')](),_0x50fd79=_0x51c255[_0x2136('0xbf')][_0x2136('0x91')],_0x5b53d6=_0x5871de['model'][_0x2136('0x6f')];let _0x545cd9=null,_0x581433=null,_0x28f62e=!0x1,_0x1a9737=!0x1;for(const _0x58b72f of _0x1ec2ba){const _0x2f6885=_0x58b72f[_0x2136('0xdd')];_0x28f62e=_0x28f62e||_0x5b53d6[_0x2136('0x82')](_0x2f6885);const _0x574f5f=_0x27195d[_0x2136('0xb2')]['toViewElement'](_0x2f6885);if(_0x574f5f&&_0x574f5f[_0x2136('0x4d')](_0x2136('0x6a')))return;_0x2136('0x120')==_0x58b72f[_0x2136('0xb')]&&(_0x5b53d6['isBlock'](_0x2f6885)&&!_0x5b53d6[_0x2136('0xd0')](_0x2f6885)&&(_0x2f6885[_0x2136('0xf2')]||_0x50fd79[_0x2136('0x8d')]?_0x545cd9&&_0x545cd9[_0x2136('0x116')]==_0x2f6885||(_0x545cd9=_0x2f6885,_0x1ed112(_0x58b72f['previousPosition']),_0x1a9737=!0x0):_0x581433=_0x581433||_0x58b72f[_0x2136('0x62')]));}function _0x1ed112(_0x2cfee0){const _0x5f2569=_0x27195d[_0x2136('0x6d')][_0x2136('0x87')](_0x2136('0x2c'),{'class':_0x2136('0x75')+_0x24fb83}),_0x3592f0=_0x27195d[_0x2136('0xb2')][_0x2136('0x10d')](_0x2cfee0);_0x364c90[_0x2136('0x57')][_0x2136('0x94')]&&_0x27195d[_0x2136('0x6d')]['addClass'](_0x2136('0x75')+_0x24fb83+'-new',_0x5f2569),_0x6ce660[_0x2136('0xf3')]==_0x364c90&&_0x27195d[_0x2136('0x6d')]['addClass'](_0x2136('0xef'),_0x5f2569),_0x27195d[_0x2136('0x6d')][_0x2136('0x9c')](_0x3592f0,_0x5f2569),_0x27195d[_0x2136('0xb2')][_0x2136('0xbd')](_0x5f2569,_0x51c255['markerName']);}_0x28f62e||_0x1a9737||!_0x581433||_0x1ed112(_0x581433);};}(this[_0x2136('0x54')]),{'priority':_0x2136('0x99')}),this['editor'][_0x2136('0x68')][_0x2136('0xa9')]['on'](_0x2136('0x93'),(_0x181ab8,_0x2edf21,_0x332ed6)=>{const _0x517153=_0x332ed6[_0x2136('0xb2')]['markerNameToElements'](_0x2edf21[_0x2136('0xcc')]);if(_0x517153)for(const _0x1a63bb of _0x517153)(_0x1a63bb[_0x2136('0x60')](_0x2136('0x98'))||_0x1a63bb[_0x2136('0x60')]('ck-suggestion-marker-merge'))&&(_0x332ed6[_0x2136('0xb2')][_0x2136('0x7c')](_0x1a63bb,_0x2edf21['markerName']),_0x332ed6[_0x2136('0x6d')][_0x2136('0x73')](_0x1a63bb));},{'priority':_0x2136('0x99')}),this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xa9')]['on'](_0x2136('0xd5'),(_0x4b97b7,_0x317b12,_0x409a95)=>{const _0x28d2b3=_0x317b12['markerName'][_0x2136('0x53')](':')[0x1],_0x3be5d3=this['_getChangeFromId'](_0x28d2b3);if(!_0x3be5d3)return null;const _0x37842b='add'==_0x3be5d3['type']?_0x2136('0x53'):'merge';if(_0x409a95[_0x2136('0x30')][_0x2136('0x7b')](_0x317b12[_0x2136('0xbf')],_0x4b97b7['name']))for(const _0x58a7a3 of _0x317b12[_0x2136('0xbf')]['getItems']()){if(!_0x58a7a3['is'](_0x2136('0x5c'),_0x2136('0x13')))continue;const _0x43c474=_0x409a95[_0x2136('0x6d')]['createUIElement'](_0x2136('0x2c'),{'class':_0x2136('0x75')+_0x37842b}),_0x5d7e9c=_0x409a95[_0x2136('0xb2')]['toViewPosition'](this['editor'][_0x2136('0x48')][_0x2136('0x11b')](_0x58a7a3));_0x3be5d3[_0x2136('0x57')][_0x2136('0x94')]&&_0x409a95[_0x2136('0x6d')]['addClass'](_0x2136('0x75')+_0x37842b+_0x2136('0xeb'),_0x43c474),this[_0x2136('0xf3')]==_0x3be5d3&&_0x409a95['writer'][_0x2136('0x3d')](_0x2136('0xef'),_0x43c474),_0x409a95[_0x2136('0x6d')][_0x2136('0x9c')](_0x5d7e9c,_0x43c474),_0x409a95[_0x2136('0xb2')]['bindElementToMarker'](_0x43c474,_0x317b12[_0x2136('0xcc')]);}},{'priority':_0x2136('0x99')}),this[_0x2136('0x54')][_0x2136('0x48')]['document']['on'](_0x2136('0x32'),()=>{this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xd6')][_0x2136('0x32')](_0x44d69a=>{for(const _0x10eedc of this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0x59')][_0x2136('0x77')]()){const _0x4ff6e3=this['editor']['model'][_0x2136('0x59')]['getRoot'](_0x10eedc),_0x4fc5d6=this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xd6')]['document'][_0x2136('0x10f')](_0x10eedc);if(_0x4fc5d6){const _0x24422d=_0x4ff6e3[_0x2136('0xad')](_0x2136('0x123'));if(_0x44d69a[_0x2136('0xe5')]('data-change-id',_0x4fc5d6),_0x44d69a[_0x2136('0x97')](_0x2136('0xcb'),_0x4fc5d6),_0x44d69a[_0x2136('0x97')](_0x2136('0x31'),_0x4fc5d6),_0x44d69a[_0x2136('0x97')](_0x2136('0x10b'),_0x4fc5d6),_0x24422d){const _0x1e4ae1=this['_getChangeFromId'](_0x24422d);if(!_0x1e4ae1)return null;_0x44d69a[_0x2136('0x49')](_0x2136('0x17'),_0x24422d,_0x4fc5d6),_0x44d69a[_0x2136('0x3d')](_0x2136('0xe2')+_0x1e4ae1['type'],_0x4fc5d6),this[_0x2136('0xf3')]==_0x1e4ae1&&_0x44d69a['addClass'](_0x2136('0x10b'),_0x4fc5d6);}}}});}),this[_0x2136('0x54')]['conversion'][_0x2136('0x4b')](_0x2136('0x41'))[_0x2136('0xc2')]({'view':_0x2136('0x38'),'model':_0x11c729=>_0x2136('0x0')+_0x11c729,'converterPriority':_0x2136('0xab')}),this[_0x2136('0x54')]['conversion'][_0x2136('0x4b')]('upcast')['dataToMarker']({'view':_0x2136('0x2a'),'model':_0x1bb53b=>_0x2136('0x7e')+_0x1bb53b,'converterPriority':'highest'}),this[_0x2136('0x54')][_0x2136('0xe3')][_0x2136('0x4b')]('dataDowncast')[_0x2136('0x9b')]({'model':_0x2136('0x110'),'view':_0xae216d=>({'name':_0x2136('0xb0')+_0xae216d,'group':'revision-suggestion'}),'converterPriority':_0x2136('0xab')}),this[_0x2136('0x54')][_0x2136('0xe3')][_0x2136('0x4b')]('editingDowncast')[_0x2136('0xe4')]({'model':_0x2136('0x110'),'view':_0x126bee=>{const _0x214bb0=_0x126bee[_0x2136('0xcc')][_0x2136('0x53')](':')[0x1];return'insertion'!=_0x214bb0&&'deletion'!=_0x214bb0?null:{'classes':[_0x2136('0x8b'),_0x2136('0x40')+_0x214bb0]};}}),this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xa9')]['on'](_0x2136('0x102'),et(this['editor'],_0x2136('0x27')),{'priority':_0x2136('0x99')}),this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xa9')]['on'](_0x2136('0x11d'),et(this[_0x2136('0x54')],_0x2136('0x53')),{'priority':_0x2136('0x99')}),this['editor']['editing'][_0x2136('0xa9')]['on'](_0x2136('0x86'),(_0x2e7fc7,_0x4b2305,_0x572dc9)=>{const _0x233508=_0x572dc9['mapper'][_0x2136('0x2d')](_0x4b2305[_0x2136('0xcc')]);if(_0x233508)for(const _0x19f65e of _0x233508)_0x19f65e['is'](_0x2136('0xa4'))&&(_0x572dc9[_0x2136('0xb2')]['unbindElementFromMarkerName'](_0x19f65e,_0x4b2305[_0x2136('0xcc')]),_0x572dc9['writer'][_0x2136('0x73')](_0x19f65e));},{'priority':_0x2136('0x99')});}[_0x2136('0x3c')](_0x33b3df){return this[_0x2136('0x28')][_0x2136('0x112')](_0x33b3df);}[_0x2136('0x37')](_0x355e31){return this[_0x2136('0xc9')]&&this[_0x2136('0xc9')][_0x2136('0xb6')](),this[_0x2136('0xc9')]=new _0x164776(this[_0x2136('0x54')]['locale'],_0x355e31),this['_changeView'];}[_0x2136('0x9f')](){this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0x59')][_0x2136('0xa')]['observeMarkers'](_0x2136('0xdc')),this['on']('change:activeView',(_0x3fbfc5,_0x286482,_0x3938dc,_0x5f5257)=>{_0x5f5257&&this[_0x2136('0x103')][_0x2136('0x73')](_0x5f5257),_0x3938dc&&(this[_0x2136('0x103')][_0x2136('0x4')]({'view':_0x3938dc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x397c82=this[_0x2136('0x54')]['editing'],_0x3793e9=this['_getChangeFromId'](_0x3938dc[_0x2136('0xe9')]);let _0xc9af25;if(_0x3793e9[_0x2136('0x57')][_0x2136('0x79')]){const _0x2db94f=_0x397c82[_0x2136('0xd6')]['getDomRoot'](_0x3793e9[_0x2136('0x5')]);_0xc9af25=Array[_0x2136('0xdb')](_0x2db94f[_0x2136('0xd2')]());}else{const _0x2c0881=this['editor']['model'][_0x2136('0x5e')][_0x2136('0x112')]('revision:'+_0x3938dc['changeId']);_0xc9af25=Array[_0x2136('0xdb')](_0x397c82[_0x2136('0xb2')][_0x2136('0x2d')](_0x2c0881[_0x2136('0x42')]))[_0x2136('0x66')](_0x71f126=>_0x397c82['view']['domConverter'][_0x2136('0x3e')](_0x71f126))[_0x2136('0x66')](_0x21ff67=>Array['from'](_0x21ff67[_0x2136('0xd2')]()))['flat']();}if(!this[_0x2136('0x9e')])return _0xc9af25[0x0];return _0xc9af25[_0x2136('0xc')](_0x525c60=>_0x525c60['top']-0x3<=this[_0x2136('0x9e')]['y']&&_0x525c60['bottom']+0x3>=this[_0x2136('0x9e')]['y']&&_0x525c60[_0x2136('0x78')]-0x3<=this[_0x2136('0x9e')]['x']&&_0x525c60['right']+0x3>=this['_activeViewTarget']['x'])||_0xc9af25[0x0];}}}),this['_balloon'][_0x2136('0x11c')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1189b1,_0x776291,_0x39c0c5,_0x5ab483)=>{this['activeView']=_0x39c0c5?this[_0x2136('0x37')](_0x39c0c5):null,this[_0x2136('0x54')]['model']['change'](()=>{const _0x562686=this[_0x2136('0x54')]['editing'];_0x5ab483&&(_0x5ab483['data'][_0x2136('0x79')]?_0x562686[_0x2136('0xd6')]['change'](_0x114ed7=>{_0x114ed7[_0x2136('0x97')](_0x2136('0x10b'),_0x562686[_0x2136('0xd6')][_0x2136('0x59')][_0x2136('0x10f')](_0x5ab483[_0x2136('0x5')]));}):_0x562686[_0x2136('0x45')]('revision:'+_0x5ab483['id'])),_0x39c0c5&&(_0x39c0c5[_0x2136('0x57')][_0x2136('0x79')]?_0x562686[_0x2136('0xd6')][_0x2136('0x32')](_0x1538be=>{_0x1538be[_0x2136('0x3d')]('ck-revision-history-root--active',_0x562686[_0x2136('0xd6')][_0x2136('0x59')][_0x2136('0x10f')](_0x39c0c5[_0x2136('0x5')]));}):_0x562686[_0x2136('0x45')](_0x2136('0x1c')+_0x39c0c5['id']));});}),this[_0x2136('0xdf')](this[_0x2136('0x54')]['editing'][_0x2136('0xd6')][_0x2136('0x59')],_0x2136('0xaf'),(_0x389fe4,_0x21ce01)=>{if(this[_0x2136('0xf3')])return;const _0x538828=this['_findChangeIdFromDomTarget'](_0x21ce01[_0x2136('0x104')]),_0x4a9205=this[_0x2136('0x28')]['get'](_0x538828);_0x4a9205?(this[_0x2136('0x9e')]={'x':_0x21ce01[_0x2136('0x10a')]['x'],'y':_0x21ce01[_0x2136('0x10a')]['y']},this[_0x2136('0xfa')]=this[_0x2136('0x37')](_0x4a9205)):(this[_0x2136('0x9e')]=null,this['activeView']=null);}),this[_0x2136('0xdf')](this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xd6')][_0x2136('0x59')],_0x2136('0xf1'),(_0xf4eead,_0x847099)=>{const _0x5cfb29=this[_0x2136('0x6')](_0x847099[_0x2136('0x104')]),_0x4d3644=this[_0x2136('0x28')]['get'](_0x5cfb29);_0x4d3644?(this[_0x2136('0x9e')]={'x':_0x847099[_0x2136('0x10a')]['x'],'y':_0x847099[_0x2136('0x10a')]['y']},_0x4d3644===this[_0x2136('0xf3')]?this[_0x2136('0x103')][_0x2136('0x11f')]():this[_0x2136('0xf3')]=_0x4d3644):(this['_activeViewTarget']=null,this[_0x2136('0xf3')]=null);});}[_0x2136('0x6')](_0x12e7eb){do{const _0x98c3dc=_0x12e7eb['getAttribute']('data-change-id');if(_0x98c3dc)return _0x98c3dc;_0x12e7eb=_0x12e7eb[_0x2136('0x116')];}while(_0x12e7eb);return null;}[_0x2136('0x22')](){this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0x32')](_0x5bdfea=>{for(const _0x2978aa of this[_0x2136('0x54')]['model'][_0x2136('0x5e')])_0x5bdfea[_0x2136('0x2e')](_0x2978aa);});}}function et(_0x569ff9,_0x4bf58c){return(_0x1d350a,_0x29fe0e,_0x40eb31)=>{if(!_0x40eb31[_0x2136('0x30')][_0x2136('0x7b')](_0x29fe0e['markerRange'],_0x1d350a[_0x2136('0x42')]))return;const _0x112000=_0x29fe0e[_0x2136('0xbf')]['getWalker'](),_0x57f2cf=_0x29fe0e[_0x2136('0xbf')][_0x2136('0x91')],_0xc55f1=_0x569ff9[_0x2136('0x48')]['schema'];let _0x4c9dc9=null,_0x9858eb=null,_0x394cd5=!0x1,_0x1ac655=!0x1;for(const _0x4549b0 of _0x112000){const _0x459511=_0x4549b0['item'];_0x394cd5=_0x394cd5||_0xc55f1[_0x2136('0x82')](_0x459511);const _0x9ea624=_0x40eb31[_0x2136('0xb2')][_0x2136('0x3a')](_0x459511);if(_0x9ea624&&_0x9ea624[_0x2136('0x4d')](_0x2136('0x6a')))return;_0x2136('0x120')==_0x4549b0['type']&&(_0xc55f1['isBlock'](_0x459511)&&!_0xc55f1[_0x2136('0xd0')](_0x459511)&&(_0x459511[_0x2136('0xf2')]||_0x57f2cf[_0x2136('0x8d')]?_0x4c9dc9&&_0x4c9dc9['parent']==_0x459511||(_0x4c9dc9=_0x459511,_0x32e775(_0x4549b0[_0x2136('0x62')]),_0x1ac655=!0x0):_0x9858eb=_0x9858eb||_0x4549b0[_0x2136('0x62')]));}function _0x32e775(_0x5cba6){const _0x318bec=_0x40eb31[_0x2136('0xb2')][_0x2136('0x10d')](_0x5cba6),_0x76facf=_0x40eb31[_0x2136('0x6d')][_0x2136('0x87')]('span',{'class':_0x2136('0x40')+_0x4bf58c});_0x40eb31[_0x2136('0x6d')][_0x2136('0x9c')](_0x318bec,_0x76facf),_0x40eb31['mapper']['bindElementToMarker'](_0x76facf,_0x29fe0e[_0x2136('0xcc')]);}_0x394cd5||_0x1ac655||!_0x9858eb||_0x32e775(_0x9858eb);};}export class RestoreRevisionCommand extends _0x335097{constructor(_0xfc9755){super(_0xfc9755);const _0x188e59=_0xfc9755[_0x2136('0xa0')][_0x2136('0x112')](d);this[_0x2136('0xc3')]=!0x1,this[_0x2136('0xdf')](_0x188e59,'change:isReady',()=>this['refresh']()),this[_0x2136('0xdf')](_0x188e59,_0x2136('0xcd'),()=>this[_0x2136('0x36')]());}[_0x2136('0x56')](){const _0x1b3110=this[_0x2136('0x54')],_0x12e3e6=_0x1b3110['plugins'][_0x2136('0x112')](d),_0x5e488b=_0x12e3e6[_0x2136('0x3f')]?_0x12e3e6['diff'][_0x2136('0x118')]:null;_0x1b3110[_0x2136('0xfb')][_0x2136('0x112')]('revisionHistory')[_0x2136('0xc4')](_0x5e488b);}[_0x2136('0x36')](){const {isReady:_0x27c6c1,isEnabled:_0x568bc7}=this[_0x2136('0x54')]['plugins'][_0x2136('0x112')](d);this[_0x2136('0xd8')]=_0x27c6c1&&_0x568bc7;}}export class ShowChangeCommand extends _0x335097{constructor(_0x4fec61,{direction:_0x141ed4}){super(_0x4fec61);const _0x3e5051=_0x4fec61['plugins'][_0x2136('0x112')](d);this[_0x2136('0xc3')]=!0x1,this[_0x2136('0xa6')]=_0x2136('0x29')===_0x141ed4?0x1:-0x1,this[_0x2136('0xdf')](_0x3e5051,_0x2136('0x117'),()=>this[_0x2136('0x36')]()),this[_0x2136('0xdf')](_0x3e5051,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3e5051,_0x2136('0x1d'),()=>this[_0x2136('0x36')]());}[_0x2136('0x56')](){const _0x420d7d=this[_0x2136('0x54')],_0x5836dc=_0x420d7d[_0x2136('0xa0')][_0x2136('0x112')](d),{isNavigationMode:_0xb85712,currentChangeNumber:_0x260431}=_0x5836dc;let _0x4d2586;if(_0x5836dc['activeChange']=_0xb85712?_0x5836dc[_0x2136('0xee')][_0x2136('0x2f')]['get'](_0x260431+this[_0x2136('0xa6')]):_0x5836dc[_0x2136('0xee')]['changes']['first'],_0x5836dc[_0x2136('0xf3')][_0x2136('0x57')][_0x2136('0x79')])_0x4d2586=_0x420d7d[_0x2136('0x68')][_0x2136('0xd6')][_0x2136('0x51')](_0x5836dc[_0x2136('0xf3')][_0x2136('0x5')]);else{const _0x5f014b=_0x420d7d[_0x2136('0x48')][_0x2136('0x5e')]['get'](_0x2136('0x1c')+_0x5836dc[_0x2136('0xf3')]['id']);_0x4d2586=_0x39674b(_0x420d7d[_0x2136('0x68')],_0x5f014b);}_0x4d0bd3({'target':_0x4d2586,'viewportOffset':0x28});}[_0x2136('0x36')](){const {isNavigationMode:_0x58b22b,currentChangeNumber:_0x4bbe96,numberOfChanges:_0x19c93f,isReady:_0x39bfa0,isEnabled:_0x21daa8}=this[_0x2136('0x54')]['plugins']['get'](d);this[_0x2136('0xd8')]=!!(_0x21daa8&&_0x39bfa0&&_0x19c93f)&&(!_0x58b22b||(0x1===this[_0x2136('0xa6')]?_0x4bbe96<_0x19c93f-0x1:_0x4bbe96>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b01=['add','isVisible','model','ck-on','isOpen','isReady','_action','first','locale','ck-revision-history-sidebar__revision__actions','source','Compare\x20against\x20selected','map','change:isActionsDropdownOpen','threeVerticalDots','Show\x20more\x20items','action','bindTemplate','name','bind','set','function','Restore\x20this\x20revision','panelPosition','children','listView','listenTo','isEnabled'];(function(_0x3d7b41,_0x1b01a0){const _0x1673f3=function(_0x173b3f){while(--_0x173b3f){_0x3d7b41['push'](_0x3d7b41['shift']());}};_0x1673f3(++_0x1b01a0);}(_0x1b01,0x166));const _0x1673=function(_0x3d7b41,_0x1b01a0){_0x3d7b41=_0x3d7b41-0x0;let _0x1673f3=_0x1b01[_0x3d7b41];return _0x1673f3;};import{Collection as _0x392fd4}from'ckeditor5/src/utils';import{icons as _0x252520}from'ckeditor5/src/core';import{Model as _0xa34333,addListToDropdown as _0x430692,createDropdown as _0xd653e9}from'ckeditor5/src/ui';import{getTranslation as _0x345d66}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x48711c,_0x846102){const _0x21446e=_0x48711c[_0x1673('0x17')],_0x508616=_0x48711c[_0x1673('0xe')],_0x179241=_0xd653e9(_0x508616);_0x179241[_0x1673('0x1')]='sw';const _0x12f900=function(_0x4673ba,_0x419105){const _0x6b7e41=function(_0x2a7b11,_0x4b7a51){const _0x4441fd=_0x2a7b11['locale'],_0xaaa101={'Compare\x20against\x20selected':_0x345d66(_0x4441fd,_0x1673('0x11')),'Name\x20this\x20revision':_0x345d66(_0x4441fd,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x345d66(_0x4441fd,_0x1673('0x0'))};return _0x4b7a51[_0x1673('0x12')](_0x1b6f21=>{const _0x3883a8=_0xaaa101[_0x1b6f21['name']];return _0x3883a8&&_0x3883a8!==_0x1b6f21['name']&&(_0x1b6f21[_0x1673('0x18')]=_0x3883a8),_0x1b6f21;});}(_0x4673ba,_0x419105),_0x287e90=new _0x392fd4();for(const _0x3388e0 of _0x6b7e41){const _0x579eae={'type':'button','model':new _0xa34333({'label':_0x3388e0[_0x1673('0x18')],'class':_0x3388e0['class'],'withText':!0x0,'_action':_0x3388e0[_0x1673('0x16')]})};_0x579eae[_0x1673('0x8')][_0x1673('0x19')](_0x1673('0x5'))['to'](_0x4673ba,'isActionsDropdownOpen',_0x24272c=>_0x1673('0x1b')!=typeof _0x3388e0[_0x1673('0x5')]||(!_0x24272c||_0x3388e0[_0x1673('0x5')](_0x4673ba))),_0x287e90[_0x1673('0x6')](_0x579eae);}return _0x287e90;}(_0x48711c,_0x846102);return _0x48711c['bind']('isActionsDropdownOpen')['to'](_0x179241,_0x1673('0xa')),_0x179241['buttonView'][_0x1673('0x1a')]({'label':_0x345d66(_0x508616,_0x1673('0x15')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x252520[_0x1673('0x14')]}),_0x179241['extendTemplate']({'attributes':{'class':[_0x1673('0xf'),_0x21446e['if']('isActionsDropdownOpen',_0x1673('0x9'))]},'on':{'click':_0x21446e['to'](_0x2acfc1=>_0x2acfc1['stopPropagation']())}}),_0x179241['on']('execute',_0x4fbe16=>{_0x48711c[_0x1673('0xb')]&&'function'==typeof _0x4fbe16[_0x1673('0x10')]['_action']&&_0x4fbe16[_0x1673('0x10')][_0x1673('0xc')](_0x48711c);}),_0x430692(_0x179241,_0x12f900),_0x179241[_0x1673('0x4')](_0x48711c,_0x1673('0x13'),(_0x2b9413,_0x57e2be,_0x55d58e)=>{if(_0x55d58e)for(const _0x21dcad of _0x179241[_0x1673('0x3')]['items']){const _0x5c81ad=_0x21dcad[_0x1673('0x2')][_0x1673('0xd')],_0x159824=_0x846102['find'](_0x70aca6=>_0x70aca6[_0x1673('0x16')]===_0x5c81ad[_0x1673('0xc')])[_0x1673('0x7')];_0x21dcad[_0x1673('0x7')]=void 0x0===_0x159824||_0x159824(_0x48711c);}}),_0x179241;}
23
+ const _0x2561=['children','isOpen','locale','set','function','execute','isActionsDropdownOpen','ck-on','ck-revision-history-sidebar__revision__actions','action','add','extendTemplate','_action','Restore\x20this\x20revision','Show\x20more\x20items','name','isReady','first','isEnabled','Name\x20this\x20revision','buttonView','change:isActionsDropdownOpen','source','class','find','isVisible','bind','model','map'];(function(_0x12bb96,_0x2561d5){const _0x285fd8=function(_0x5bf9f8){while(--_0x5bf9f8){_0x12bb96['push'](_0x12bb96['shift']());}};_0x285fd8(++_0x2561d5);}(_0x2561,0xb2));const _0x285f=function(_0x12bb96,_0x2561d5){_0x12bb96=_0x12bb96-0x0;let _0x285fd8=_0x2561[_0x12bb96];return _0x285fd8;};import{Collection as _0x3fb2f9}from'ckeditor5/src/utils';import{icons as _0x41b69b}from'ckeditor5/src/core';import{Model as _0x34f963,addListToDropdown as _0x34a164,createDropdown as _0x4637a9}from'ckeditor5/src/ui';import{getTranslation as _0x4c8598}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x275f18,_0x568df6){const _0x7bee44=_0x275f18['bindTemplate'],_0x163445=_0x275f18[_0x285f('0x1b')],_0x1753ad=_0x4637a9(_0x163445);_0x1753ad['panelPosition']='sw';const _0x208a60=function(_0x4d86aa,_0x597fee){const _0x42f755=function(_0x2bf981,_0x334d2d){const _0xf659a6=_0x2bf981['locale'],_0x36d067={'Compare\x20against\x20selected':_0x4c8598(_0xf659a6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x4c8598(_0xf659a6,_0x285f('0xf')),'Restore\x20this\x20revision':_0x4c8598(_0xf659a6,_0x285f('0x9'))};return _0x334d2d[_0x285f('0x18')](_0x4df7c8=>{const _0x28244e=_0x36d067[_0x4df7c8['name']];return _0x28244e&&_0x28244e!==_0x4df7c8['name']&&(_0x4df7c8[_0x285f('0xb')]=_0x28244e),_0x4df7c8;});}(_0x4d86aa,_0x597fee),_0x141b0f=new _0x3fb2f9();for(const _0x143bf0 of _0x42f755){const _0x36157f={'type':'button','model':new _0x34f963({'label':_0x143bf0['name'],'class':_0x143bf0[_0x285f('0x13')],'withText':!0x0,'_action':_0x143bf0[_0x285f('0x5')]})};_0x36157f[_0x285f('0x17')][_0x285f('0x16')]('isEnabled')['to'](_0x4d86aa,_0x285f('0x2'),_0x17363a=>_0x285f('0x0')!=typeof _0x143bf0[_0x285f('0xe')]||(!_0x17363a||_0x143bf0[_0x285f('0xe')](_0x4d86aa))),_0x141b0f[_0x285f('0x6')](_0x36157f);}return _0x141b0f;}(_0x275f18,_0x568df6);return _0x275f18[_0x285f('0x16')](_0x285f('0x2'))['to'](_0x1753ad,_0x285f('0x1a')),_0x1753ad[_0x285f('0x10')][_0x285f('0x1c')]({'label':_0x4c8598(_0x163445,_0x285f('0xa')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x41b69b['threeVerticalDots']}),_0x1753ad[_0x285f('0x7')]({'attributes':{'class':[_0x285f('0x4'),_0x7bee44['if']('isActionsDropdownOpen',_0x285f('0x3'))]},'on':{'click':_0x7bee44['to'](_0x58165f=>_0x58165f['stopPropagation']())}}),_0x1753ad['on'](_0x285f('0x1'),_0x32709a=>{_0x275f18[_0x285f('0xc')]&&'function'==typeof _0x32709a[_0x285f('0x12')][_0x285f('0x8')]&&_0x32709a['source']['_action'](_0x275f18);}),_0x34a164(_0x1753ad,_0x208a60),_0x1753ad['listenTo'](_0x275f18,_0x285f('0x11'),(_0x19227c,_0x218774,_0x6f699a)=>{if(_0x6f699a)for(const _0xcc9d44 of _0x1753ad['listView']['items']){const _0x11b5e3=_0xcc9d44[_0x285f('0x19')][_0x285f('0xd')],_0x203174=_0x568df6[_0x285f('0x14')](_0x368ea2=>_0x368ea2[_0x285f('0x5')]===_0x11b5e3['_action'])[_0x285f('0x15')];_0xcc9d44[_0x285f('0x15')]=void 0x0===_0x203174||_0x203174(_0x275f18);}}),_0x1753ad;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c84=['0\x200\x2011\x2010','span','setTemplate','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','name'];(function(_0x53b227,_0x1c8497){const _0x262185=function(_0x23624d){while(--_0x23624d){_0x53b227['push'](_0x53b227['shift']());}};_0x262185(++_0x1c8497);}(_0x1c84,0x1c3));const _0x2621=function(_0x53b227,_0x1c8497){_0x53b227=_0x53b227-0x0;let _0x262185=_0x1c84[_0x53b227];return _0x262185;};import{View as _0x539067,IconView as _0x4b9701}from'ckeditor5/src/ui';import{getTranslation as _0x12b011}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x2a8fc6 from'../../../theme/icons/user.svg';export default class ti extends _0x539067{constructor(_0x352696,_0x96e99d,_0x14cdc6){super(_0x352696);const _0x833062=new _0x4b9701();_0x833062['set']({'content':_0x2a8fc6,'viewBox':_0x2621('0x5')});const _0x2d5220=['ck',_0x2621('0x3')];_0x14cdc6&&_0x2d5220['push']('ck-revision-history-sidebar__revision-author_creator');const _0x171d1a=[{'tag':_0x2621('0x0'),'attributes':{'class':['ck',_0x2621('0x2')],'title':_0x12b011(_0x352696,_0x14cdc6?'Revision\x20creator':'Revision\x20author')},'children':[_0x833062,_0x96e99d[_0x2621('0x4')]]}];this[_0x2621('0x1')]({'tag':'li','attributes':{'class':_0x2d5220},'children':_0x171d1a});}}
23
+ const _0x4fff=['ck-revision-history-sidebar__revision-author','Revision\x20creator','set','name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','span','push'];(function(_0x23c431,_0x4fffdd){const _0x5d7c9c=function(_0x3be758){while(--_0x3be758){_0x23c431['push'](_0x23c431['shift']());}};_0x5d7c9c(++_0x4fffdd);}(_0x4fff,0xfa));const _0x5d7c=function(_0x23c431,_0x4fffdd){_0x23c431=_0x23c431-0x0;let _0x5d7c9c=_0x4fff[_0x23c431];return _0x5d7c9c;};import{View as _0x490748,IconView as _0x16b6b0}from'ckeditor5/src/ui';import{getTranslation as _0x47016c}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x11f663 from'../../../theme/icons/user.svg';export default class ti extends _0x490748{constructor(_0xdcb84d,_0x4d2fc0,_0x13d6fb){super(_0xdcb84d);const _0x7d6a0d=new _0x16b6b0();_0x7d6a0d[_0x5d7c('0x4')]({'content':_0x11f663,'viewBox':_0x5d7c('0x6')});const _0x55cf64=['ck',_0x5d7c('0x2')];_0x13d6fb&&_0x55cf64[_0x5d7c('0x1')](_0x5d7c('0x7'));const _0x55d257=[{'tag':_0x5d7c('0x0'),'attributes':{'class':['ck',_0x5d7c('0x8')],'title':_0x47016c(_0xdcb84d,_0x13d6fb?_0x5d7c('0x3'):'Revision\x20author')},'children':[_0x7d6a0d,_0x4d2fc0[_0x5d7c('0x5')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x55cf64},'children':_0x55d257});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2401=['span','extendTemplate','Revision\x20name','ck-revision-history-sidebar__revision-name'];(function(_0x4db31e,_0x2401be){var _0xfee94d=function(_0x1c0b11){while(--_0x1c0b11){_0x4db31e['push'](_0x4db31e['shift']());}};_0xfee94d(++_0x2401be);}(_0x2401,0x1aa));var _0xfee9=function(_0x4db31e,_0x2401be){_0x4db31e=_0x4db31e-0x0;var _0xfee94d=_0x2401[_0x4db31e];return _0xfee94d;};import{LabeledFieldView as _0x27bc68}from'ckeditor5/src/ui';import{getTranslation as _0x1e65bf}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x27bc68{constructor(_0x7595c5,_0x1ce1bc){super(_0x7595c5,_0x1ce1bc),this['set']({'label':_0x1e65bf(_0x7595c5,_0xfee9('0x0'))}),this[_0xfee9('0x3')]({'tag':_0xfee9('0x2'),'attributes':{'class':[_0xfee9('0x1')]}});}}
23
+ var _0x3c94=['set','extendTemplate','span'];(function(_0x1f0540,_0x3c940d){var _0x4154ff=function(_0x585922){while(--_0x585922){_0x1f0540['push'](_0x1f0540['shift']());}};_0x4154ff(++_0x3c940d);}(_0x3c94,0xe6));var _0x4154=function(_0x1f0540,_0x3c940d){_0x1f0540=_0x1f0540-0x0;var _0x4154ff=_0x3c94[_0x1f0540];return _0x4154ff;};import{LabeledFieldView as _0x52d037}from'ckeditor5/src/ui';import{getTranslation as _0x21e023}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x52d037{constructor(_0xe4b7a4,_0x59778f){super(_0xe4b7a4,_0x59778f),this[_0x4154('0x1')]({'label':_0x21e023(_0xe4b7a4,'Revision\x20name')}),this[_0x4154('0x2')]({'tag':_0x4154('0x0'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a7d=['unhighlight','revisionNameView','set','value','deselect','render','fieldView','uiLanguage','isHighlighted','isEnabled','bindTemplate','map','ck-revision-history-sidebar__revision__date','creator','ck-revision-history-sidebar__revision-authors','revisionActionsView','ck-reset','extendTemplate','ck-revision-history-sidebar__actions_dropdown_open','bind','ck-revision-history-sidebar__revision_selected','div','name','isSelected','element','isReady','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision-wrapper','change','highlight','isActionsDropdownOpen','220','setTemplate','ck-revision-history-sidebar__revision__controls-wrapper','closest','srcElement','ck-revision-history-sidebar__revision','unshift','select','isConfirm','fire','from','createdAt','ck-disabled','ck-revision-history-sidebar__revision_highlighted'];(function(_0x1b59bc,_0x5a7d05){const _0x329d75=function(_0x4bea08){while(--_0x4bea08){_0x1b59bc['push'](_0x1b59bc['shift']());}};_0x329d75(++_0x5a7d05);}(_0x5a7d,0xd6));const _0x329d=function(_0x1b59bc,_0x5a7d05){_0x1b59bc=_0x1b59bc-0x0;let _0x329d75=_0x5a7d[_0x1b59bc];return _0x329d75;};import{View as _0x31440f,createLabeledInputText as _0x15f0a5}from'ckeditor5/src/ui';import{ConfirmMixin as _0x51151b}from'ckeditor5-collaboration/src/collaboration-core';import _0x35a663 from'./revisionnameview';import _0x453756 from'./revisionauthorview';import{dateToPrettyFormat as _0x3f768c}from'./utils';import{createActionsDropdownView as _0x5b0b90}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x51151b(_0x31440f){constructor(_0x3e48a5,_0xa9703e,_0x32a27e){super(_0x3e48a5);const _0x3280c8=this[_0x329d('0x15')],_0x33c188=function(_0x3cdd11,_0x2c752f){const _0x2716d1=Array[_0x329d('0x7')](_0x2c752f['authors'])['filter'](_0x1edf6a=>_0x1edf6a!=_0x2c752f[_0x329d('0x18')]);return _0x2c752f[_0x329d('0x18')]&&_0x2716d1[_0x329d('0x3')](_0x2c752f['creator']),_0x2716d1[_0x329d('0x16')](_0x32d337=>new _0x453756(_0x3cdd11,_0x32d337,_0x32d337==_0x2c752f[_0x329d('0x18')]));}(_0x3e48a5,_0xa9703e);this['id']=_0xa9703e['id'],this['_revision']=_0xa9703e,this[_0x329d('0x1e')](_0x329d('0x21'),'createdAt')['to'](_0xa9703e),this['bind']('_createdAtFormatted')['to'](this,_0x329d('0x8'),_0xb409d1=>_0xb409d1?_0x3f768c(_0x3e48a5[_0x329d('0x12')],_0xb409d1):void 0x0),this[_0x329d('0xd')]('isSelected',!0x1),this[_0x329d('0xd')](_0x329d('0x13'),!0x1),this[_0x329d('0xd')](_0x329d('0x29'),!0x1),this[_0x329d('0xd')](_0x329d('0x24'),!0x1),this[_0x329d('0xd')](_0x329d('0x14'),!0x1),this['revisionNameView']=new _0x35a663(_0x3e48a5,_0x15f0a5),this['revisionNameView'][_0x329d('0x11')][_0x329d('0x1c')]({'attributes':{'maxlength':_0x329d('0x2a')}}),this['revisionNameView'][_0x329d('0x11')][_0x329d('0x1e')](_0x329d('0xe'),'placeholder')['to'](this,_0x329d('0x21'),'_createdAtFormatted'),this[_0x329d('0xc')]['bind']('isEnabled')['to'](this,'isSelected',this,_0x329d('0x14'),(_0x469acd,_0x51de34)=>_0x469acd&&_0x51de34),this[_0x329d('0x1a')]=_0x32a27e&&_0x32a27e['length']?_0x5b0b90(this,_0x32a27e):'',this['revisionActionsView']&&this['revisionActionsView'][_0x329d('0x1e')]('isEnabled')['to'](this),this[_0x329d('0x2b')]({'tag':'div','attributes':{'class':['ck',_0x329d('0x1b'),_0x329d('0x26'),_0x3280c8['if'](_0x329d('0x5'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x329d('0x20'),'attributes':{'class':['ck',_0x329d('0x1b'),_0x329d('0x2'),_0x3280c8['if'](_0x329d('0x14'),_0x329d('0x9'),_0x8593c8=>!_0x8593c8),_0x3280c8['if'](_0x329d('0x22'),_0x329d('0x1f')),_0x3280c8['if'](_0x329d('0x13'),_0x329d('0xa')),_0x3280c8['if']('isActionsDropdownOpen',_0x329d('0x1d'))]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck',_0x329d('0x17')]},'children':[{'text':_0x3280c8['to']('_createdAtFormatted')}]},{'tag':_0x329d('0x20'),'attributes':{'class':['ck',_0x329d('0x2c')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x329d('0x19')]},'children':_0x33c188}]},this['revisionActionsView']],'on':{'click':_0x3280c8['to'](_0x2ded60=>{_0x2ded60[_0x329d('0x1')][_0x329d('0x0')](_0x329d('0x25'))||this[_0x329d('0x24')]&&this[_0x329d('0x14')]&&this[_0x329d('0x6')](_0x329d('0x4'),{'id':this['id']});})}}]});}[_0x329d('0x10')](){super[_0x329d('0x10')]();const _0x3ddd98=this[_0x329d('0xc')]['fieldView'][_0x329d('0x23')];this['listenTo'](_0x3ddd98,_0x329d('0x27'),()=>{this[_0x329d('0x6')]('setName',{'id':this['id'],'name':_0x3ddd98['value']});});}[_0x329d('0x4')](){this['isSelected']=!0x0;}[_0x329d('0xf')](){this['isSelected']=!0x1;}[_0x329d('0x28')](){this[_0x329d('0x13')]=!0x0;}[_0x329d('0xb')](){this[_0x329d('0x13')]=!0x1;}}
23
+ const _0x45db=['uiLanguage','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision__date','div','isSelected','deselect','isEnabled','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision_highlighted','isActionsDropdownOpen','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','creator','map','filter','render','revisionNameView','bind','set','isHighlighted','listenTo','element','_createdAtFormatted','revisionActionsView','value','name','placeholder','fire','length','ck-reset','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision','extendTemplate','closest','setTemplate','bindTemplate','unshift','isConfirm','ck-revision-history-sidebar__revision-authors','unhighlight','fieldView','setName','srcElement','select'];(function(_0x4b590f,_0x45db33){const _0x4a3a82=function(_0x9802b2){while(--_0x9802b2){_0x4b590f['push'](_0x4b590f['shift']());}};_0x4a3a82(++_0x45db33);}(_0x45db,0x77));const _0x4a3a=function(_0x4b590f,_0x45db33){_0x4b590f=_0x4b590f-0x0;let _0x4a3a82=_0x45db[_0x4b590f];return _0x4a3a82;};import{View as _0x14ac7f,createLabeledInputText as _0x34b402}from'ckeditor5/src/ui';import{ConfirmMixin as _0x7deb82}from'ckeditor5-collaboration/src/collaboration-core';import _0x26b9df from'./revisionnameview';import _0xe24895 from'./revisionauthorview';import{dateToPrettyFormat as _0x165745}from'./utils';import{createActionsDropdownView as _0x515333}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x7deb82(_0x14ac7f){constructor(_0x5958fe,_0x10cceb,_0x32d420){super(_0x5958fe);const _0x3374a8=this[_0x4a3a('0x1')],_0x13aa6a=function(_0xa829d4,_0x51d9a5){const _0x54c986=Array['from'](_0x51d9a5['authors'])[_0x4a3a('0x17')](_0x5d045d=>_0x5d045d!=_0x51d9a5[_0x4a3a('0x15')]);return _0x51d9a5['creator']&&_0x54c986[_0x4a3a('0x2')](_0x51d9a5[_0x4a3a('0x15')]),_0x54c986[_0x4a3a('0x16')](_0x59432c=>new _0xe24895(_0xa829d4,_0x59432c,_0x59432c==_0x51d9a5[_0x4a3a('0x15')]));}(_0x5958fe,_0x10cceb);this['id']=_0x10cceb['id'],this['_revision']=_0x10cceb,this[_0x4a3a('0x1a')](_0x4a3a('0x22'),'createdAt')['to'](_0x10cceb),this[_0x4a3a('0x1a')](_0x4a3a('0x1f'))['to'](this,'createdAt',_0x19a24f=>_0x19a24f?_0x165745(_0x5958fe[_0x4a3a('0xa')],_0x19a24f):void 0x0),this[_0x4a3a('0x1b')](_0x4a3a('0xe'),!0x1),this['set'](_0x4a3a('0x1c'),!0x1),this[_0x4a3a('0x1b')]('isActionsDropdownOpen',!0x1),this[_0x4a3a('0x1b')]('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new _0x26b9df(_0x5958fe,_0x34b402),this[_0x4a3a('0x19')][_0x4a3a('0x6')][_0x4a3a('0x29')]({'attributes':{'maxlength':'220'}}),this[_0x4a3a('0x19')][_0x4a3a('0x6')][_0x4a3a('0x1a')](_0x4a3a('0x21'),_0x4a3a('0x23'))['to'](this,_0x4a3a('0x22'),_0x4a3a('0x1f')),this['revisionNameView'][_0x4a3a('0x1a')]('isEnabled')['to'](this,_0x4a3a('0xe'),this,_0x4a3a('0x10'),(_0x4e08aa,_0x4196c6)=>_0x4e08aa&&_0x4196c6),this[_0x4a3a('0x20')]=_0x32d420&&_0x32d420[_0x4a3a('0x25')]?_0x515333(this,_0x32d420):'',this[_0x4a3a('0x20')]&&this[_0x4a3a('0x20')][_0x4a3a('0x1a')](_0x4a3a('0x10'))['to'](this),this[_0x4a3a('0x0')]({'tag':_0x4a3a('0xd'),'attributes':{'class':['ck',_0x4a3a('0x26'),_0x4a3a('0xb'),_0x3374a8['if'](_0x4a3a('0x3'),_0x4a3a('0x14'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x4a3a('0x26'),_0x4a3a('0x28'),_0x3374a8['if'](_0x4a3a('0x10'),'ck-disabled',_0x5e3022=>!_0x5e3022),_0x3374a8['if'](_0x4a3a('0xe'),_0x4a3a('0x11')),_0x3374a8['if'](_0x4a3a('0x1c'),_0x4a3a('0x12')),_0x3374a8['if'](_0x4a3a('0x13'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x4a3a('0x19')],{'tag':'span','attributes':{'class':['ck',_0x4a3a('0xc')]},'children':[{'text':_0x3374a8['to'](_0x4a3a('0x1f'))}]},{'tag':_0x4a3a('0xd'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4a3a('0x4')]},'children':_0x13aa6a}]},this[_0x4a3a('0x20')]],'on':{'click':_0x3374a8['to'](_0x2ca514=>{_0x2ca514[_0x4a3a('0x8')][_0x4a3a('0x2a')](_0x4a3a('0x27'))||this['isReady']&&this[_0x4a3a('0x10')]&&this[_0x4a3a('0x24')]('select',{'id':this['id']});})}}]});}[_0x4a3a('0x18')](){super[_0x4a3a('0x18')]();const _0x32234b=this[_0x4a3a('0x19')][_0x4a3a('0x6')][_0x4a3a('0x1e')];this[_0x4a3a('0x1d')](_0x32234b,'change',()=>{this[_0x4a3a('0x24')](_0x4a3a('0x7'),{'id':this['id'],'name':_0x32234b[_0x4a3a('0x21')]});});}[_0x4a3a('0x9')](){this[_0x4a3a('0xe')]=!0x0;}[_0x4a3a('0xf')](){this[_0x4a3a('0xe')]=!0x1;}['highlight'](){this[_0x4a3a('0x1c')]=!0x0;}[_0x4a3a('0x5')](){this[_0x4a3a('0x1c')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b9d=['span','click','true','setTemplate','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','set','ck-hidden','button','isVisible','false','toggle'];(function(_0x43d0b9,_0x2b9d2d){const _0x3a0220=function(_0x52efec){while(--_0x52efec){_0x43d0b9['push'](_0x43d0b9['shift']());}};_0x3a0220(++_0x2b9d2d);}(_0x2b9d,0x181));const _0x3a02=function(_0x43d0b9,_0x2b9d2d){_0x43d0b9=_0x43d0b9-0x0;let _0x3a0220=_0x2b9d[_0x43d0b9];return _0x3a0220;};import{View as _0x2c1aea}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2c1aea{constructor(_0xfb1e11){super(_0xfb1e11);const _0x2be07c=this['bindTemplate'];this[_0x3a02('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x3a02('0x2')]({'tag':'span','attributes':{'class':['ck',_0x3a02('0x4'),_0x2be07c['if'](_0x3a02('0x8'),_0x3a02('0x6'),_0x429c94=>!_0x429c94),_0x2be07c['if'](_0x3a02('0x3'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x3a02('0x7'),'aria-pressed':_0x2be07c['to'](_0x3a02('0x3'),_0x45c577=>_0x45c577?_0x3a02('0x9'):_0x3a02('0x1'))},'children':[{'tag':_0x3a02('0xb'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x2be07c['to'](_0x3a02('0x0'))}});}[_0x3a02('0xa')](){this[_0x3a02('0x3')]=!this[_0x3a02('0x3')];}}
23
+ const _0x4c15=['ck-revision-history-sidebar__subrevision-collapser','span','click','_isCollapsed','bindTemplate','setTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','ck-hidden','button','false','set','isVisible','ck-revision-history-sidebar__subrevision-collapser_collapsed','toggle'];(function(_0x58f7b6,_0x4c157b){const _0xc5d774=function(_0x55c667){while(--_0x55c667){_0x58f7b6['push'](_0x58f7b6['shift']());}};_0xc5d774(++_0x4c157b);}(_0x4c15,0x1da));const _0xc5d7=function(_0x58f7b6,_0x4c157b){_0x58f7b6=_0x58f7b6-0x0;let _0xc5d774=_0x4c15[_0x58f7b6];return _0xc5d774;};import{View as _0x49f533}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x49f533{constructor(_0x1fd540){super(_0x1fd540);const _0x30016e=this[_0xc5d7('0x6')];this[_0xc5d7('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xc5d7('0x7')]({'tag':'span','attributes':{'class':['ck',_0xc5d7('0x2'),_0x30016e['if'](_0xc5d7('0xd'),_0xc5d7('0x9'),_0x1ac4d4=>!_0x1ac4d4),_0x30016e['if']('_isCollapsed',_0xc5d7('0x0'))],'role':_0xc5d7('0xa'),'aria-pressed':_0x30016e['to']('_isCollapsed',_0x2687ee=>_0x2687ee?_0xc5d7('0xb'):'true')},'children':[{'tag':_0xc5d7('0x3'),'attributes':{'class':['ck',_0xc5d7('0x8')]}}],'on':{'click':_0x30016e['to'](_0xc5d7('0x4'))}});}[_0xc5d7('0x1')](){this[_0xc5d7('0x5')]=!this[_0xc5d7('0x5')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54c0=['set','uiLanguage','ck-revision-history-sidebar__subrevision','createdAt','creator','fire','bind','ck-revision-history-sidebar__revision_selected','setTemplate','_parentRevisionId','ck-reset','_createdAtFormatted','isSelected','select','bindTemplate','div','deselect'];(function(_0x506d01,_0x54c0db){const _0x41dfa7=function(_0x1b166b){while(--_0x1b166b){_0x506d01['push'](_0x506d01['shift']());}};_0x41dfa7(++_0x54c0db);}(_0x54c0,0x1b6));const _0x41df=function(_0x506d01,_0x54c0db){_0x506d01=_0x506d01-0x0;let _0x41dfa7=_0x54c0[_0x506d01];return _0x41dfa7;};import{View as _0x226b04}from'ckeditor5/src/ui';import _0x4e7d5b from'./revisionauthorview';import{dateToPrettyFormat as _0x251698}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x226b04{constructor(_0x388d5a,_0x50a290,_0x5658dd){super(_0x388d5a);const _0x1a3f94=this[_0x41df('0x1')];this['id']=_0x50a290['id'],this[_0x41df('0xa')](_0x41df('0x7'))['to'](_0x50a290),this[_0x41df('0x4')](_0x41df('0x10'),!0x1),this[_0x41df('0xa')](_0x41df('0xf'))['to'](this,_0x41df('0x7'),_0x5dc347=>_0x5dc347?_0x251698(_0x388d5a[_0x41df('0x5')],_0x5dc347):void 0x0),this[_0x41df('0xd')]=_0x5658dd,this[_0x41df('0xc')]({'tag':_0x41df('0x2'),'attributes':{'class':['ck',_0x41df('0xe'),'ck-revision-history-sidebar__revision',_0x41df('0x6'),_0x1a3f94['if'](_0x41df('0x10'),_0x41df('0xb'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1a3f94['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x4e7d5b(_0x388d5a,_0x50a290[_0x41df('0x8')],!0x0)]}],'on':{'click':_0x1a3f94['to'](this[_0x41df('0x0')][_0x41df('0xa')](this))}});}[_0x41df('0x0')](){this[_0x41df('0x10')]=!0x0,this[_0x41df('0x9')](_0x41df('0x0'),{'parentId':this[_0x41df('0xd')]});}[_0x41df('0x3')](){this[_0x41df('0x10')]=!0x1;}}
23
+ const _0x19ef=['setTemplate','createdAt','div','span','deselect','ck-reset','ck-revision-history-sidebar__revision_selected','fire','select','set','_parentRevisionId','ck-revision-history-sidebar__subrevision','_createdAtFormatted','bindTemplate','ck-revision-history-sidebar__revision__date','creator','uiLanguage','isSelected'];(function(_0xde81b9,_0x19efa2){const _0x2e1f1b=function(_0x1fc113){while(--_0x1fc113){_0xde81b9['push'](_0xde81b9['shift']());}};_0x2e1f1b(++_0x19efa2);}(_0x19ef,0x9e));const _0x2e1f=function(_0xde81b9,_0x19efa2){_0xde81b9=_0xde81b9-0x0;let _0x2e1f1b=_0x19ef[_0xde81b9];return _0x2e1f1b;};import{View as _0x5e650b}from'ckeditor5/src/ui';import _0x231e84 from'./revisionauthorview';import{dateToPrettyFormat as _0x5e3524}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x5e650b{constructor(_0x14db58,_0x2c637e,_0x1727ae){super(_0x14db58);const _0x51a853=this[_0x2e1f('0x11')];this['id']=_0x2c637e['id'],this['bind']('createdAt')['to'](_0x2c637e),this[_0x2e1f('0xd')](_0x2e1f('0x3'),!0x1),this['bind']('_createdAtFormatted')['to'](this,_0x2e1f('0x5'),_0x529691=>_0x529691?_0x5e3524(_0x14db58[_0x2e1f('0x2')],_0x529691):void 0x0),this[_0x2e1f('0xe')]=_0x1727ae,this[_0x2e1f('0x4')]({'tag':_0x2e1f('0x6'),'attributes':{'class':['ck',_0x2e1f('0x9'),'ck-revision-history-sidebar__revision',_0x2e1f('0xf'),_0x51a853['if']('isSelected',_0x2e1f('0xa'))]},'children':[{'tag':_0x2e1f('0x7'),'attributes':{'class':['ck',_0x2e1f('0x0')]},'children':[{'text':_0x51a853['to'](_0x2e1f('0x10'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x231e84(_0x14db58,_0x2c637e[_0x2e1f('0x1')],!0x0)]}],'on':{'click':_0x51a853['to'](this['select']['bind'](this))}});}[_0x2e1f('0xc')](){this[_0x2e1f('0x3')]=!0x0,this[_0x2e1f('0xb')](_0x2e1f('0xc'),{'parentId':this[_0x2e1f('0xe')]});}[_0x2e1f('0x8')](){this[_0x2e1f('0x3')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5e39=['toLocaleDateString','toLocaleTimeString','long'];(function(_0x5d352b,_0x5e3986){var _0x508326=function(_0x95e2d3){while(--_0x95e2d3){_0x5d352b['push'](_0x5d352b['shift']());}};_0x508326(++_0x5e3986);}(_0x5e39,0x1eb));var _0x5083=function(_0x5d352b,_0x5e3986){_0x5d352b=_0x5d352b-0x0;var _0x508326=_0x5e39[_0x5d352b];return _0x508326;};export function dateToPrettyFormat(_0x7ec014,_0x344116){return _0x344116[_0x5083('0x1')](_0x7ec014,{'month':_0x5083('0x0'),'day':'numeric'})+',\x20'+_0x344116[_0x5083('0x2')](_0x7ec014,{'hour':'numeric','minute':'numeric'});}
23
+ var _0x2355=['long','toLocaleDateString','numeric'];(function(_0x2df521,_0x2355c0){var _0x25cfca=function(_0x338b65){while(--_0x338b65){_0x2df521['push'](_0x2df521['shift']());}};_0x25cfca(++_0x2355c0);}(_0x2355,0x125));var _0x25cf=function(_0x2df521,_0x2355c0){_0x2df521=_0x2df521-0x0;var _0x25cfca=_0x2355[_0x2df521];return _0x25cfca;};export function dateToPrettyFormat(_0x442cb8,_0x52e8ac){return _0x52e8ac[_0x25cf('0x2')](_0x442cb8,{'month':_0x25cf('0x1'),'day':'numeric'})+',\x20'+_0x52e8ac['toLocaleTimeString'](_0x442cb8,{'hour':_0x25cf('0x0'),'minute':_0x25cf('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24c1=['label','Name\x20of\x20the\x20revision\x20(optional)','revisionNameInputValue','ck-revision-history-save-revision-form','_focusCycler','input','submit','trim','listenTo','ck-button-cancel','render','arrowup','cancel','shift\x20+\x20tab','keystrokes','saveButtonView','element','_focusables','value','focusTracker','arrowright','delegate','form','revisionNameInputView','check','Cancel','220','forEach','_createButton','locale','Save','reset','focus','execute','focusFirst','fieldView','arrowleft','setTemplate','revisionName','extendTemplate','stopPropagation','_createRevisionNameInput','cancelButtonView','add','type','set'];(function(_0x41ca46,_0x24c120){const _0x6d95d7=function(_0x4d1cff){while(--_0x4d1cff){_0x41ca46['push'](_0x41ca46['shift']());}};_0x6d95d7(++_0x24c120);}(_0x24c1,0x178));const _0x6d95=function(_0x41ca46,_0x24c120){_0x41ca46=_0x41ca46-0x0;let _0x6d95d7=_0x24c1[_0x41ca46];return _0x6d95d7;};import{icons as _0x2803ed}from'ckeditor5/src/core';import{ButtonView as _0x4e3efd,FocusCycler as _0x17e3a3,LabeledFieldView as _0x1f1e1f,View as _0x7af9ce,ViewCollection as _0x33a39c,createLabeledInputText as _0x18c43a,injectCssTransitionDisabler as _0x5cdd45,submitHandler as _0x16661b}from'ckeditor5/src/ui';import{FocusTracker as _0x5bd822,KeystrokeHandler as _0x5a2166}from'ckeditor5/src/utils';import{getTranslation as _0x4fc634}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x7af9ce{constructor(_0x19771f){super(_0x19771f),this[_0x6d95('0xb')]=new _0x5bd822(),this[_0x6d95('0x6')]=new _0x5a2166(),this[_0x6d95('0x25')](_0x6d95('0x28'),''),this[_0x6d95('0xf')]=this['_createRevisionNameInput'](),this[_0x6d95('0x7')]=this[_0x6d95('0x14')](_0x4fc634(_0x19771f,_0x6d95('0x16')),_0x2803ed[_0x6d95('0x10')],'ck-button-save'),this[_0x6d95('0x7')][_0x6d95('0x24')]=_0x6d95('0x2c'),this['cancelButtonView']=this['_createButton'](_0x4fc634(_0x19771f,_0x6d95('0x11')),_0x2803ed['cancel'],_0x6d95('0x1'),_0x6d95('0x4')),this[_0x6d95('0x9')]=new _0x33a39c(),this[_0x6d95('0x2a')]=new _0x17e3a3({'focusables':this[_0x6d95('0x9')],'focusTracker':this[_0x6d95('0xb')],'keystrokeHandler':this[_0x6d95('0x6')],'actions':{'focusPrevious':_0x6d95('0x5'),'focusNext':'tab'}}),this[_0x6d95('0x1d')]({'tag':_0x6d95('0xe'),'attributes':{'class':['ck',_0x6d95('0x29'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x6d95('0xf')],this[_0x6d95('0x7')],this['cancelButtonView']]}),_0x5cdd45(this);}[_0x6d95('0x2')](){super[_0x6d95('0x2')](),_0x16661b({'view':this}),([this[_0x6d95('0xf')],this[_0x6d95('0x7')],this[_0x6d95('0x22')]][_0x6d95('0x13')](_0xaf2a4a=>{this[_0x6d95('0x9')][_0x6d95('0x23')](_0xaf2a4a),this['focusTracker'][_0x6d95('0x23')](_0xaf2a4a[_0x6d95('0x8')]);}),this[_0x6d95('0x6')][_0x6d95('0x0')](this[_0x6d95('0x8')]));const _0x4fb834=_0x1c360b=>_0x1c360b[_0x6d95('0x20')]();this[_0x6d95('0x6')][_0x6d95('0x25')](_0x6d95('0xc'),_0x4fb834),this['keystrokes'][_0x6d95('0x25')](_0x6d95('0x1c'),_0x4fb834),this[_0x6d95('0x6')][_0x6d95('0x25')](_0x6d95('0x3'),_0x4fb834),this[_0x6d95('0x6')][_0x6d95('0x25')]('arrowdown',_0x4fb834);}[_0x6d95('0x18')](){this[_0x6d95('0x2a')][_0x6d95('0x1a')]();}get[_0x6d95('0x1e')](){return this['revisionNameInputView']['fieldView'][_0x6d95('0x8')]['value'][_0x6d95('0x2d')]();}set['revisionName'](_0x3eb7de){this[_0x6d95('0xf')][_0x6d95('0x1b')]['element']['value']=_0x3eb7de['trim']();}[_0x6d95('0x17')](){this[_0x6d95('0xf')][_0x6d95('0x1b')][_0x6d95('0x8')][_0x6d95('0xa')]='';}[_0x6d95('0x21')](){const _0x4e1b76=new _0x1f1e1f(this[_0x6d95('0x15')],_0x18c43a),_0x355cae=_0x4e1b76[_0x6d95('0x1b')];return _0x355cae[_0x6d95('0x1f')]({'attributes':{'maxlength':_0x6d95('0x12')}}),_0x4e1b76[_0x6d95('0x26')]=_0x4fc634(this[_0x6d95('0x15')],_0x6d95('0x27')),_0x355cae['on'](_0x6d95('0x2b'),()=>{this[_0x6d95('0x28')]=_0x355cae[_0x6d95('0x8')][_0x6d95('0xa')][_0x6d95('0x2d')]();}),_0x4e1b76;}['_createButton'](_0x4bcb1c,_0x31998a,_0x4d2e2c,_0x69ba91){const _0x146ce7=new _0x4e3efd(this[_0x6d95('0x15')]);return _0x146ce7[_0x6d95('0x25')]({'label':_0x4bcb1c,'icon':_0x31998a,'tooltip':!0x0}),_0x146ce7[_0x6d95('0x1f')]({'attributes':{'class':_0x4d2e2c}}),_0x69ba91&&_0x146ce7[_0x6d95('0xd')](_0x6d95('0x19'))['to'](this,_0x69ba91),_0x146ce7;}}
23
+ const _0x216b=['focusFirst','setTemplate','add','locale','focus','forEach','value','label','Cancel','delegate','arrowdown','input','tab','check','ck-revision-history-save-revision-form','type','extendTemplate','trim','shift\x20+\x20tab','revisionNameInputValue','_createRevisionNameInput','cancel','reset','_focusCycler','submit','listenTo','set','saveButtonView','ck-responsive-form','stopPropagation','focusTracker','Save','cancelButtonView','arrowleft','revisionName','_focusables','Name\x20of\x20the\x20revision\x20(optional)','revisionNameInputView','fieldView','keystrokes','render','_createButton','element'];(function(_0x43b189,_0x216b1b){const _0x18a25e=function(_0x1cb82b){while(--_0x1cb82b){_0x43b189['push'](_0x43b189['shift']());}};_0x18a25e(++_0x216b1b);}(_0x216b,0x180));const _0x18a2=function(_0x43b189,_0x216b1b){_0x43b189=_0x43b189-0x0;let _0x18a25e=_0x216b[_0x43b189];return _0x18a25e;};import{icons as _0x1c039f}from'ckeditor5/src/core';import{ButtonView as _0x50831e,FocusCycler as _0x2eafbf,LabeledFieldView as _0x2add43,View as _0x1c17aa,ViewCollection as _0x4d84be,createLabeledInputText as _0x28e8b2,injectCssTransitionDisabler as _0x5abb2f,submitHandler as _0x2895ae}from'ckeditor5/src/ui';import{FocusTracker as _0x5a245e,KeystrokeHandler as _0xff9b69}from'ckeditor5/src/utils';import{getTranslation as _0x744041}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1c17aa{constructor(_0x3f1ee8){super(_0x3f1ee8),this[_0x18a2('0x21')]=new _0x5a245e(),this[_0x18a2('0x2a')]=new _0xff9b69(),this[_0x18a2('0x1d')]('revisionNameInputValue',''),this[_0x18a2('0x28')]=this[_0x18a2('0x17')](),this['saveButtonView']=this[_0x18a2('0x1')](_0x744041(_0x3f1ee8,_0x18a2('0x22')),_0x1c039f[_0x18a2('0x10')],'ck-button-save'),this[_0x18a2('0x1e')][_0x18a2('0x12')]=_0x18a2('0x1b'),this[_0x18a2('0x23')]=this[_0x18a2('0x1')](_0x744041(_0x3f1ee8,_0x18a2('0xb')),_0x1c039f[_0x18a2('0x18')],'ck-button-cancel','cancel'),this[_0x18a2('0x26')]=new _0x4d84be(),this[_0x18a2('0x1a')]=new _0x2eafbf({'focusables':this[_0x18a2('0x26')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x18a2('0x2a')],'actions':{'focusPrevious':_0x18a2('0x15'),'focusNext':_0x18a2('0xf')}}),this[_0x18a2('0x4')]({'tag':'form','attributes':{'class':['ck',_0x18a2('0x11'),_0x18a2('0x1f')],'tabindex':'-1'},'children':[this[_0x18a2('0x28')],this[_0x18a2('0x1e')],this[_0x18a2('0x23')]]}),_0x5abb2f(this);}[_0x18a2('0x0')](){super[_0x18a2('0x0')](),_0x2895ae({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this[_0x18a2('0x23')]][_0x18a2('0x8')](_0x539b98=>{this['_focusables']['add'](_0x539b98),this[_0x18a2('0x21')][_0x18a2('0x5')](_0x539b98[_0x18a2('0x2')]);}),this[_0x18a2('0x2a')][_0x18a2('0x1c')](this[_0x18a2('0x2')]));const _0x1f7ea1=_0x2f37ee=>_0x2f37ee[_0x18a2('0x20')]();this[_0x18a2('0x2a')]['set']('arrowright',_0x1f7ea1),this['keystrokes'][_0x18a2('0x1d')](_0x18a2('0x24'),_0x1f7ea1),this[_0x18a2('0x2a')]['set']('arrowup',_0x1f7ea1),this['keystrokes'][_0x18a2('0x1d')](_0x18a2('0xd'),_0x1f7ea1);}[_0x18a2('0x7')](){this['_focusCycler'][_0x18a2('0x3')]();}get[_0x18a2('0x25')](){return this[_0x18a2('0x28')][_0x18a2('0x29')][_0x18a2('0x2')][_0x18a2('0x9')][_0x18a2('0x14')]();}set[_0x18a2('0x25')](_0x434275){this[_0x18a2('0x28')][_0x18a2('0x29')][_0x18a2('0x2')][_0x18a2('0x9')]=_0x434275['trim']();}[_0x18a2('0x19')](){this[_0x18a2('0x28')]['fieldView'][_0x18a2('0x2')]['value']='';}[_0x18a2('0x17')](){const _0x6cda37=new _0x2add43(this[_0x18a2('0x6')],_0x28e8b2),_0x52a1ee=_0x6cda37[_0x18a2('0x29')];return _0x52a1ee['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x6cda37[_0x18a2('0xa')]=_0x744041(this[_0x18a2('0x6')],_0x18a2('0x27')),_0x52a1ee['on'](_0x18a2('0xe'),()=>{this[_0x18a2('0x16')]=_0x52a1ee[_0x18a2('0x2')][_0x18a2('0x9')][_0x18a2('0x14')]();}),_0x6cda37;}['_createButton'](_0x1d94ea,_0x9d061c,_0x5a4f14,_0x1883d0){const _0x2e194e=new _0x50831e(this[_0x18a2('0x6')]);return _0x2e194e[_0x18a2('0x1d')]({'label':_0x1d94ea,'icon':_0x9d061c,'tooltip':!0x0}),_0x2e194e[_0x18a2('0x13')]({'attributes':{'class':_0x5a4f14}}),_0x1883d0&&_0x2e194e[_0x18a2('0xc')]('execute')['to'](this,_0x1883d0),_0x2e194e;}}