@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231106.0 → 0.0.0-nightly-20231107.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.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x433d=['children','listenTo','RevisionViewer','isNavigationMode','nextPosition','removeAttribute','toViewElement','findIndex','suggestion:','_changeIdToChange','showNextChange','removeClass','_setChanges','diffData','_markInsertions','isSuggestion','isInline','_balloon','WidgetToolbarRepository','currentChangeNumber','dataToMarker','activeChange','_makeTape','addClass','editing','init','suggestion','first','isBlock','attributes','resolve','startsWith','split','push','_fixObsoleteTags','_getViewForChange','_getChangeFromId','RevisionsRepository','elementEnd','ck-suggestion-marker--active','_getDiff','locale','ck-revision-history-root-','requires','_activeViewTarget','getDomRoot','merge','domEvent','plugins','insert','concat','upcast','_makeModelFromViewString','revision-suggestion','commands','editor','element:pre','nodeAfter','target','add','downcastDispatcher','left','mapper','isBefore','data','shift','createUIElement','_findChangeIdFromDomTarget','revision:','modelRange','changes','elementToAttribute','getAttribute','markerNameToElements','_setDistance','_appendChild','ck-suggestion-marker-merge','repository','isRemoveSuggestion','diff','revision-end','clear','markersStart','_initInteractions','range','revision-viewer','schema','isOnRoot','text','type','change:activeView','unbindElementFromMarkerName','pop','highest','_makeModelFromTape','showStack','getIndex','getAttributes','isAtStart','isEqual','isAtEnd','activeView','markerRange','index','_threeWayMerge','level','forEach','side','getChild','for','oldRevisionId','_data','getRevision','mousedown','change','markerName','config','ck-editor__editable__overlay','bind','authors','set','refresh','_markMarkers','getRoot','_markMismatchedRemovedTags','indexOf','getRootNames','slice','parent','_getViewObj','addRoot','addHighlight','createRange','reconvertMarker','_sortAndFilterDiffChanges','isAfter','start','isObject','checkAttribute','error','_cleanMarkers','forward','splice','model','endIndex','_getRevisionsRange','ck-suggestion-marker-','_update','ck-suggestion-marker','getRevisionRootsAttributes','change:activeChange','code','markers','destroy','view','getItems','removeMarker:revision','addMarker:revision-suggestion:insertion','vid_start','restoreRevisionCallback','restoreRevision','isReady','viewItem','distance','deletions','_markSuggestions','getRevisionData','roots','newRevisionId','revisionHistoryLabel','revision-start','_joinTapes','_step','abs','createPositionBefore','execute','element','maxOffset','selection','observeMarkers','changeId','hasClass','loadRevisionData','nextSibling','-new','map','deletion','POSITIVE_INFINITY','offsetSize','hasAttribute','done','_cleanUp','unshift','insertions','rootName','revisionHistory','insertion','attachChange','get','markersEnd','_removeUnsupportedChanges','catch','isAttached','adapter','userId','_setConversion','removeMarker:revision-suggestion','default','revisionHistoryAttachChange','ck-revision-history-root-remove','compare','isLimit','revision','change:isReady','item','previousPosition','data-change-id','detachRoot','_processTape','showPreviousChange','collaboration.channelId','markerToHighlight','parse','writer','remove','createPositionFromPath','change:isEnabled','useFillerType','keys','addMarker:revision','softBreak','toViewPosition','isAdded','isAddSuggestion','ck-revision-history-root--active','markerToData','processor','span','filter','bindElementToMarker','then','domConverter','enqueueChange','isIncorrect','find','ck-revision-history-root-add','test','affectsData','_refreshStartEndIndex','revision-comment:','_removeMissingPairs','vid_end','name','_removeRevisionMarkers','bottom','_revisions','vid','high','document','length','has','wrap','getWalker','mapViewToDom','addRevisionData','sort','string','consumable','top','isRemoved','pluginName','from','setAttribute','startIndex','conversion','consume','delete','dataDowncast','isEnabled','isCollapsed','pairId','_changeView','attribute:vid','toData','data-revision-','end','ck-suggestion-preview-marker','low','elementStart','includes','updatePosition','backward','attributesAfter'];(function(_0x4218a2,_0x433d0e){const _0x13560e=function(_0x13d0ad){while(--_0x13d0ad){_0x4218a2['push'](_0x4218a2['shift']());}};_0x13560e(++_0x433d0e);}(_0x433d,0x179));const _0x1356=function(_0x4218a2,_0x433d0e){_0x4218a2=_0x4218a2-0x0;let _0x13560e=_0x433d[_0x4218a2];return _0x13560e;};import{Plugin as _0x1510fd,Command as _0x2142de}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x415310}from'ckeditor5/src/utils';import{ContextualBalloon as _0xa73b69}from'ckeditor5/src/ui';import{DocumentFragment as _0x5965bc,Element as _0x44f9e5,Text as _0x1a81de,ViewDocumentFragment as _0x525421,ViewText as _0x4bb1f1,ViewElement as _0x2f7af2,ViewContainerElement as _0x5a664e,ViewAttributeElement as _0x4c464a,ViewEmptyElement as _0x312e40,ViewRawElement as _0x58d3c1,ViewUIElement as _0x124c77}from'ckeditor5/src/engine';import{Users as _0x4cf1a5,getMarkerDomElement as _0x4f8cde}from'ckeditor5-collaboration/src/collaboration-core';import _0x11c73b from'./ui/revisionviewer/changedetailsview';import _0x42eb58 from'./revisionsrepository';import _0x341b4f from'./changeitem';import{default as _0x1770a1}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x5d4713}from'lodash-es';const tt={'c':_0x5a664e,'a':_0x4c464a,'e':_0x312e40,'r':_0x58d3c1,'u':_0x124c77};export default class d extends _0x1510fd{static get[_0x1356('0xba')](){return _0x1356('0xd3');}static get[_0x1356('0xfc')](){return[_0x4cf1a5,_0xa73b69,_0x42eb58];}constructor(_0x10f409){super(_0x10f409),this[_0x1356('0x11e')]=this[_0x1356('0x108')]['plugins'][_0x1356('0x72')](_0x1356('0xf6')),this[_0x1356('0x24')](_0x1356('0xe6'),null),this[_0x1356('0x24')](_0x1356('0x11'),null),this['_activeViewTarget']=null,this['set'](_0x1356('0x120'),null),this[_0x1356('0x24')](_0x1356('0x4d'),!0x1),this[_0x1356('0x24')]('isEnabled',!0x0),this['on'](_0x1356('0x8e'),(_0x25e692,_0x189aa7,_0x5aa300)=>{this[_0x1356('0xe6')]=null,this[_0x1356('0x11')]=null,this['editor'][_0x1356('0xe9')]['view'][_0x1356('0x1e')](_0x4ca945=>{for(const _0x2bbadb of this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x46')][_0x1356('0xae')][_0x1356('0x53')])_0x5aa300?_0x4ca945[_0x1356('0xdc')](_0x1356('0x21'),_0x2bbadb):_0x4ca945[_0x1356('0xe8')](_0x1356('0x21'),_0x2bbadb);});}),this[_0x1356('0x22')](_0x1356('0xd4'))['to'](this,_0x1356('0xe6'),_0x514bff=>null!==_0x514bff),this[_0x1356('0x22')](_0x1356('0xe4'))['to'](this,'isReady',this,_0x1356('0x120'),this,_0x1356('0xe6'),(_0x363086,_0x2674c5,_0x1d5f10)=>_0x363086&&_0x1d5f10?_0x2674c5['changes']['getIndex'](_0x1d5f10):0x0),this[_0x1356('0x22')]('numberOfChanges')['to'](this,_0x1356('0x4d'),this,'diff',(_0xaf8f77,_0x5e1865)=>_0xaf8f77?_0x5e1865[_0x1356('0x117')][_0x1356('0xaf')]:0x0),this['_changeView']=null,this[_0x1356('0xda')]=new Map(),this[_0x1356('0x77')]=null,this[_0x1356('0xe2')]=this[_0x1356('0x108')][_0x1356('0x101')][_0x1356('0x72')](_0xa73b69);}[_0x1356('0xea')](){const _0x1a3ffb=this[_0x1356('0x108')],_0x244958=new ShowChangeCommand(_0x1a3ffb,{'direction':_0x1356('0xcf')}),_0x5d6a80=new ShowChangeCommand(_0x1a3ffb,{'direction':_0x1356('0x39')});(_0x1a3ffb['commands'][_0x1356('0x10c')](_0x1356('0x87'),_0x244958),_0x1a3ffb['commands'][_0x1356('0x10c')](_0x1356('0xdb'),_0x5d6a80),_0x1a3ffb[_0x1356('0x107')]['add'](_0x1356('0x4c'),new RestoreRevisionCommand(_0x1a3ffb)),this['on']('change:numberOfChanges',()=>{_0x244958[_0x1356('0x25')](),_0x5d6a80[_0x1356('0x25')]();}),this[_0x1356('0x79')](),this[_0x1356('0x124')](),_0x1a3ffb['enableReadOnlyMode'](_0x1356('0x1')),_0x1a3ffb[_0x1356('0x101')][_0x1356('0xb0')](_0x1356('0xe3')))&&_0x1a3ffb[_0x1356('0x101')][_0x1356('0x72')]('WidgetToolbarRepository')['forceDisabled'](_0x1356('0x1'));}async[_0x1356('0x52')](_0x248458){await this[_0x1356('0x62')](_0x248458);const _0x2a4056={};for(const _0x552db6 in _0x248458['diffData']){if(_0x248458[_0x1356('0xde')][_0x552db6][_0x1356('0x71')]&&!_0x248458[_0x1356('0xde')][_0x552db6][_0x1356('0x71')]['isAttached'])continue;const _0xfdc3e7=this['_removeRevisionMarkers'](JSON[_0x1356('0x8a')](_0x248458[_0x1356('0xde')][_0x552db6][_0x1356('0x6d')])),_0x2a450f=this[_0x1356('0x108')][_0x1356('0xe9')]['view']['document'],_0x51a298=new _0x525421(_0x2a450f,_0xfdc3e7[_0x1356('0x65')](_0x32e94a=>this[_0x1356('0x2d')](_0x32e94a)));this['editor'][_0x1356('0x111')][_0x1356('0x98')][_0x1356('0x8f')]('marked'),_0x2a4056[_0x552db6]=this[_0x1356('0x108')][_0x1356('0x111')]['processor'][_0x1356('0xc7')](_0x51a298),this[_0x1356('0x108')][_0x1356('0x111')][_0x1356('0x98')]['useFillerType'](_0x1356('0x7b'));}return _0x2a4056;}async[_0x1356('0x41')](_0x2b9856){await this[_0x1356('0x62')](_0x2b9856);const _0xb9a84b={};for(const _0x34da7c in _0x2b9856[_0x1356('0xde')])_0x2b9856['diffData'][_0x34da7c][_0x1356('0x71')]&&!_0x2b9856[_0x1356('0xde')][_0x34da7c][_0x1356('0x71')][_0x1356('0x76')]||(_0xb9a84b[_0x34da7c]=_0x2b9856['diffData'][_0x34da7c][_0x1356('0xd0')]||{});return _0xb9a84b;}[_0x1356('0xa9')](_0x17461e){return(_0x17461e=_0x17461e[_0x1356('0x9a')](_0x58838c=>!_0x58838c[_0x1356('0xa8')]||_0x1356('0x56')!==_0x58838c[_0x1356('0xa8')]&&_0x1356('0x121')!==_0x58838c[_0x1356('0xa8')]))[_0x1356('0x16')](_0x49b0b9=>{_0x1356('0xb6')!=typeof _0x49b0b9&&(_0x49b0b9[_0x1356('0xd1')]=this[_0x1356('0xa9')](_0x49b0b9[_0x1356('0xd1')]),_0x49b0b9[_0x1356('0xee')]=_0x49b0b9[_0x1356('0xee')][_0x1356('0x9a')](_0xde0b6a=>!_0xde0b6a[0x0]['startsWith'](_0x1356('0xc8'))));}),_0x17461e;}async[_0x1356('0x7e')](_0x21cee7,_0x5ee617,_0x413f87=!0x1){if(!this[_0x1356('0xc2')])return;const _0x591eb9=this[_0x1356('0x120')],_0x611d59=this[_0x1356('0x11e')],_0x640317=_0x1356('0xb6')==typeof _0x21cee7?_0x611d59[_0x1356('0x1c')](_0x21cee7):_0x21cee7,_0x563f90='string'==typeof _0x5ee617?_0x611d59['getRevision'](_0x5ee617):_0x5ee617,_0x3a4130=_0x640317['id'],_0x4de707=_0x563f90?_0x563f90['id']:null;if(!_0x413f87&&this['diff']&&this[_0x1356('0x120')][_0x1356('0x54')]===_0x3a4130&&this[_0x1356('0x120')][_0x1356('0x1a')]===_0x4de707)return Promise[_0x1356('0xef')]();this[_0x1356('0x4d')]=!0x1,this[_0x1356('0x11')]=null,this[_0x1356('0xe6')]=null,this['diff']=new _0x1770a1(_0x3a4130,_0x4de707);const _0x939dc2=this[_0x1356('0x3d')](_0x640317,_0x563f90,!0x0)['map'](_0xe09d50=>this[_0x1356('0x62')](_0xe09d50));return _0x939dc2[_0x1356('0xf2')](new Promise(_0x523087=>{setTimeout(_0x523087,0x14);})),Promise['all'](_0x939dc2)[_0x1356('0x9c')](()=>{if(!this[_0x1356('0xc2')])return;this[_0x1356('0x6b')]();const _0x19b56a=this[_0x1356('0xf9')](_0x3a4130,_0x4de707);for(const _0x4c5983 of _0x19b56a[_0x1356('0x117')])this['_changeIdToChange'][_0x1356('0x24')](_0x4c5983['id'],_0x4c5983);this['editor'][_0x1356('0x3b')][_0x1356('0x9e')]({'isUndoable':!0x1},_0x239ccc=>{for(const _0x2dfc59 of this['editor'][_0x1356('0x3b')][_0x1356('0xae')][_0x1356('0x2a')]())_0x239ccc[_0x1356('0x85')](_0x2dfc59);for(const _0x3aed53 of Object[_0x1356('0x90')](_0x19b56a[_0x1356('0x3b')])){const _0xf78691=_0x239ccc[_0x1356('0x2e')](_0x3aed53);for(const _0x4b40ee of Object[_0x1356('0x90')](_0x19b56a[_0x1356('0xee')][_0x3aed53]))_0x239ccc[_0x1356('0xbc')](_0x4b40ee,_0x19b56a[_0x1356('0xee')][_0x3aed53][_0x4b40ee],_0xf78691);_0x239ccc[_0x1356('0x102')](_0x19b56a[_0x1356('0x3b')][_0x3aed53],_0xf78691,0x0);}}),this['diff'][_0x1356('0xdd')](this[_0x1356('0x32')](_0x19b56a[_0x1356('0x117')])),this[_0x1356('0x4d')]=!0x0;})[_0x1356('0x75')](_0x903955=>{console[_0x1356('0x37')](_0x903955),this[_0x1356('0x6b')](),_0x591eb9&&(this['diff']=_0x591eb9),this['isReady']=!0x0;});}[_0x1356('0xb4')](_0xd7ba8,_0x3a130b){const _0x5f39a8=this[_0x1356('0x11e')]['createRevision'](_0xd7ba8);return _0x5f39a8['on']('_update',(_0x495e8b,_0x5417fc,_0x15b4de)=>_0x3a130b(_0x5417fc,_0x15b4de,_0x5f39a8)),this[_0x1356('0x11e')]['addRevision'](_0x5f39a8),_0x5f39a8;}[_0x1356('0x62')](_0x1fb722){if(!_0x1fb722||_0x1fb722[_0x1356('0xde')])return Promise[_0x1356('0xef')]();{const _0x12323f=this[_0x1356('0x108')][_0x1356('0x20')][_0x1356('0x72')](_0x1356('0x88'));return this['adapter'][_0x1356('0x1c')]({'channelId':_0x12323f,'revisionId':_0x1fb722['id']})[_0x1356('0x9c')](_0x566ba8=>{_0x1fb722[_0x1356('0x3f')]({'diffData':_0x566ba8[_0x1356('0xde')]},!0x0);});}}[_0x1356('0x6b')](){this[_0x1356('0xe6')]=null,this[_0x1356('0x38')](),this[_0x1356('0xc5')]&&this[_0x1356('0xc5')]['destroy'](),this[_0x1356('0xc5')]=null,this['_changeIdToChange'][_0x1356('0x122')](),this[_0x1356('0x108')][_0x1356('0x3b')][_0x1356('0x9e')]({'isUndoable':!0x1},_0x30a7b6=>{for(const _0x50950f of this[_0x1356('0x108')][_0x1356('0x3b')][_0x1356('0xae')][_0x1356('0x2a')]())_0x30a7b6['detachRoot'](_0x50950f);});}['_sortAndFilterDiffChanges'](_0x22e5ac){const _0x340bc1=[],_0x5f1db1=new Map();for(const _0x254a2c of this[_0x1356('0x108')]['model']['document'][_0x1356('0x2a')]()){const _0x13e13a=this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x46')][_0x1356('0xfe')](_0x254a2c);if(!_0x13e13a)continue;const _0x1fdb20=_0x13e13a['getClientRects']()[_0x1356('0x82')](0x0);_0x1fdb20&&(_0x340bc1[_0x1356('0xf2')](_0x254a2c),_0x5f1db1[_0x1356('0x24')](_0x254a2c,_0x1fdb20));}return _0x340bc1['sort']((_0x312c68,_0x4018b1)=>{const _0x41ba8c=_0x5f1db1[_0x1356('0x72')](_0x312c68),_0x1ae70c=_0x5f1db1[_0x1356('0x72')](_0x4018b1);return _0x41ba8c['y']-_0x1ae70c['y']||_0x41ba8c['x']-_0x1ae70c['x'];}),(_0x22e5ac=_0x22e5ac[_0x1356('0x9a')](_0x132aa9=>_0x340bc1[_0x1356('0xcd')](_0x132aa9[_0x1356('0x6e')])))[_0x1356('0xb5')]((_0x576e99,_0x50450c)=>_0x340bc1['indexOf'](_0x576e99[_0x1356('0x6e')])-_0x340bc1[_0x1356('0x29')](_0x50450c[_0x1356('0x6e')])),_0x22e5ac;}[_0x1356('0xe7')](_0x136bb2){const _0x29566a=Array[_0x1356('0xbb')](_0x136bb2[_0x1356('0x44')])['filter'](([_0x585b57,_0x222f7e])=>_0x585b57[_0x1356('0xf0')](_0x1356('0x115'))&&!_0x222f7e[_0x1356('0xc3')]),_0x350c16=Array[_0x1356('0xbb')](this[_0x1356('0x108')][_0x1356('0x3b')]['createRangeIn'](_0x136bb2)[_0x1356('0xb2')]({'singleCharacters':!0x0}));if(0x0!=_0x29566a[_0x1356('0xaf')])for(const _0x94d1de of _0x350c16){const [_0x26fcda,_0x4477c6]=_0x29566a[0x0],[,_0x5b24a,_0x3b61aa]=_0x26fcda[_0x1356('0xf1')](':');if(_0x4477c6['end'][_0x1356('0xf')](_0x94d1de[_0x1356('0xd5')])&&_0x29566a[_0x1356('0x112')](),(_0x94d1de[_0x1356('0x83')][_0x1356('0xf')](_0x4477c6['start'])||_0x94d1de[_0x1356('0x83')][_0x1356('0x33')](_0x4477c6['start']))&&(_0x1356('0x70')==_0x5b24a?_0x94d1de[_0x1356('0x94')]={'userId':_0x3b61aa}:_0x1356('0x66')==_0x5b24a&&(_0x94d1de['isRemoved']={'userId':_0x3b61aa})),0x0==_0x29566a[_0x1356('0xaf')])break;}return _0x350c16;}[_0x1356('0xa4')](_0x345c0a){const _0x14a1e6=new Map();for(let _0x344abb=0x0;_0x344abb<_0x345c0a[_0x1356('0xaf')];_0x344abb++)_0x1356('0x4')===_0x345c0a[_0x344abb]['type']?(_0x345c0a[_0x344abb][_0x1356('0x82')][_0x1356('0xbd')]=_0x344abb,_0x345c0a[_0x344abb][_0x1356('0x82')]['endIndex']=_0x344abb):('elementStart'===_0x345c0a[_0x344abb][_0x1356('0x5')]?_0x345c0a[_0x344abb]['item'][_0x1356('0xbd')]=_0x344abb:_0x1356('0xf7')===_0x345c0a[_0x344abb]['type']&&(_0x345c0a[_0x344abb][_0x1356('0x82')][_0x1356('0x3c')]=_0x344abb),_0x14a1e6['set'](_0x345c0a[_0x344abb]['id'],_0x344abb));for(const _0xeaf7ed of _0x14a1e6['values']())_0x1356('0xcc')===_0x345c0a[_0xeaf7ed][_0x1356('0x5')]?_0x345c0a[_0xeaf7ed][_0x1356('0x82')][_0x1356('0x3c')]=_0x14a1e6[_0x1356('0x72')](_0x345c0a[_0xeaf7ed][_0x1356('0xc4')]):'elementEnd'===_0x345c0a[_0xeaf7ed][_0x1356('0x5')]&&(_0x345c0a[_0xeaf7ed][_0x1356('0x82')][_0x1356('0xbd')]=_0x14a1e6[_0x1356('0x72')](_0x345c0a[_0xeaf7ed][_0x1356('0xc4')]));}[_0x1356('0x86')](_0x19e670){for(let _0x46282c=0x0;_0x46282c<_0x19e670[_0x1356('0xaf')];_0x46282c++){if(_0x1356('0xcc')===_0x19e670[_0x46282c][_0x1356('0x5')])_0x19e670[_0x46282c][_0x1356('0x82')][_0x1356('0xbd')]=_0x46282c;else{if(_0x1356('0xf7')===_0x19e670[_0x46282c][_0x1356('0x5')]){_0x19e670[_0x46282c]['item'][_0x1356('0x3c')]=_0x46282c;const _0xc1b05e=_0x19e670[_0x46282c][_0x1356('0x82')][_0x1356('0xbd')];_0x19e670[_0xc1b05e][_0x1356('0xc4')]=_0x19e670[_0x46282c]['id'],_0x19e670[_0x46282c][_0x1356('0xc4')]=_0x19e670[_0xc1b05e]['id'];}else _0x19e670[_0x46282c][_0x1356('0x82')][_0x1356('0xbd')]=_0x46282c,_0x19e670[_0x46282c]['item'][_0x1356('0x3c')]=_0x46282c,_0x19e670[_0x46282c][_0x1356('0xc4')]=null;}_0x19e670[_0x46282c]['markersStart']||(_0x19e670[_0x46282c][_0x1356('0x123')]=[],_0x19e670[_0x46282c]['markersEnd']=[]);}}['_markInsertions'](_0x49cffb,_0x4ccfbf){const _0x37b4b6=_0x49cffb[_0x1356('0x9a')](_0xeb86eb=>!_0xeb86eb[_0x1356('0x94')]);for(let _0x2b8d54=0x0;_0x2b8d54<_0x4ccfbf[_0x1356('0xaf')];_0x2b8d54++)_0x4ccfbf[_0x2b8d54]['isAdded']&&(_0x37b4b6[_0x2b8d54][_0x1356('0x94')]=_0x4ccfbf[_0x2b8d54][_0x1356('0x94')]);}['_makeModelFromViewString'](_0x9459c){const _0x5016a4=JSON['parse'](_0x9459c),_0x589605=this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x46')]['document'],_0x1ed4da=new _0x525421(_0x589605,_0x5016a4['map'](_0x2bf89b=>this[_0x1356('0x2d')](_0x2bf89b)));return this[_0x1356('0x108')][_0x1356('0x111')]['toModel'](_0x1ed4da);}['_getViewObj'](_0x5a2ab9){const _0x1e2288=this['editor'][_0x1356('0xe9')][_0x1356('0x46')][_0x1356('0xae')];if(_0x1356('0xb6')==typeof _0x5a2ab9)return new _0x4bb1f1(_0x1e2288,_0x5a2ab9);{const _0x59fead=_0x5a2ab9[_0x1356('0xd1')][_0x1356('0x65')](_0x4d80e6=>this['_getViewObj'](_0x4d80e6));return new(tt[_0x5a2ab9[(_0x1356('0x5'))]]||_0x2f7af2)(_0x1e2288,_0x5a2ab9[_0x1356('0xa8')],_0x5a2ab9['attributes'],_0x59fead);}}[_0x1356('0xf9')](_0x18ff1b,_0xd445e=null){const _0x2da600=this[_0x1356('0x11e')][_0x1356('0x1c')](_0x18ff1b),_0x1f487d=_0xd445e?this['repository'][_0x1356('0x1c')](_0xd445e):null,_0x322089=this[_0x1356('0x3d')](_0x2da600,_0x1f487d),_0x1dd8b1=_0x322089[_0x322089[_0x1356('0xaf')]-0x1],_0x47e5ec=new Map(),_0x417982={'model':{},'attributes':{},'changes':[]},_0x4af11e=new Set(),_0x243b52=new Map();for(let _0x1adbea=_0x322089[_0x1356('0xaf')]-0x1;_0x1adbea>=0x0;_0x1adbea--){const _0x286999=_0x322089[_0x1adbea];for(const _0x4fc994 of Object['keys'](_0x286999['diffData']))if(_0x286999['diffData'][_0x4fc994]['attachChange']){const _0x272893=_0x286999['diffData'][_0x4fc994][_0x1356('0x71')];_0x272893[_0x1356('0x76')]?(_0x4af11e[_0x1356('0x10c')](_0x4fc994),_0x243b52[_0x1356('0xb0')](_0x4fc994)&&_0x243b52[_0x1356('0x72')](_0x4fc994)['userId']==_0x272893[_0x1356('0x78')]?_0x243b52[_0x1356('0xc0')](_0x4fc994):_0x243b52[_0x1356('0x24')](_0x4fc994,_0x272893)):_0x243b52[_0x1356('0xb0')](_0x4fc994)?(_0x4af11e[_0x1356('0xc0')](_0x4fc994),_0x243b52[_0x1356('0xc0')](_0x4fc994)):(_0x4af11e[_0x1356('0x10c')](_0x4fc994),_0x243b52[_0x1356('0x24')](_0x4fc994,_0x272893));}else _0x4af11e[_0x1356('0x10c')](_0x4fc994);}for(const _0x5005ac of _0x4af11e){const _0x15fff1=_0x243b52[_0x1356('0xb0')](_0x5005ac)&&!_0x243b52[_0x1356('0x72')](_0x5005ac)['isAttached'];let _0x28568b=_0x15fff1?_0x322089[_0x1356('0xaf')]-0x1:0x0;const _0x524d18=_0x15fff1?-0x1:0x1;for(;_0x322089[_0x28568b];){const _0x579f23=_0x322089[_0x28568b];if(_0x579f23['diffData'][_0x5005ac]){const _0x2d7f79=_0x15fff1?_0x579f23[_0x1356('0xde')][_0x5005ac]['attributesBefore']:_0x579f23[_0x1356('0xde')][_0x5005ac]['attributesAfter'];_0x417982['attributes'][_0x5005ac]=_0x2d7f79?_0x5d4713(_0x2d7f79):{};break;}_0x28568b+=_0x524d18;}}for(const _0x299ad8 of _0x322089){_0x299ad8[_0x1356('0x3b')]={};for(const _0x4d30bd of _0x299ad8[_0x1356('0x23')])_0x47e5ec[_0x1356('0x24')](_0x4d30bd['id'],_0x4d30bd);for(const _0xc92d53 of _0x4af11e){const _0x2cc636=_0x299ad8['diffData'][_0xc92d53]?_0x299ad8[_0x1356('0xde')][_0xc92d53][_0x1356('0x6d')]:'[]',_0x4070af=_0x299ad8[_0x1356('0xde')][_0xc92d53]?_0x299ad8[_0x1356('0xde')][_0xc92d53]['deletions']:'[]';_0x299ad8[_0x1356('0x3b')][_0xc92d53]={'insertions':this[_0x1356('0x105')](_0x2cc636),'deletions':this['_makeModelFromViewString'](_0x4070af)};}}for(const _0x289776 of _0x4af11e){let _0x509db2=null,_0x395ce8=0x0;const _0xe140b9=new Map(Array[_0x1356('0xbb')](_0x2da600['model'][_0x289776][_0x1356('0x6d')][_0x1356('0x44')])['filter'](([_0x24e999])=>!_0x24e999['startsWith'](_0x1356('0x115'))));let _0x2714e8=0x0;for(const _0x185873 of _0x322089){const _0x2f690b=this[_0x1356('0xe7')](_0x185873[_0x1356('0x3b')][_0x289776][_0x1356('0x6d')]);_0x185873==_0x2da600?(_0x509db2=_0x2f690b,_0x395ce8=_0x509db2['length'],_0x509db2['forEach'](_0x16a7f4=>{_0x16a7f4['id']=_0x2714e8++;}),this[_0x1356('0x86')](_0x509db2)):this[_0x1356('0xdf')](_0x509db2,_0x2f690b);const _0x143688=_0x509db2['filter'](_0x1bb6fa=>!_0x1bb6fa['isAdded'])['map'](_0x37e8f1=>_0x37e8f1['id']);let _0x5d0028=0x0;const _0x2ba334=this[_0x1356('0xe7')](_0x185873['model'][_0x289776][_0x1356('0x50')]);_0x2ba334[_0x1356('0x16')](_0x13d093=>{_0x13d093[_0x1356('0xb9')]?_0x13d093['id']=_0x395ce8++:_0x13d093['id']=_0x143688[_0x5d0028++];}),this[_0x1356('0x86')](_0x2ba334),this[_0x1356('0x11b')](_0x509db2,_0x1356('0x94')),this[_0x1356('0x11b')](_0x2ba334,_0x1356('0xb9')),_0x185873==_0x2da600&&this[_0x1356('0x26')](_0x509db2,_0xe140b9),_0x509db2=this[_0x1356('0x57')](_0x509db2,_0x2ba334),this['_refreshStartEndIndex'](_0x509db2),this[_0x1356('0x11b')](_0x509db2,'isRemoved');}_0x509db2=_0x509db2['filter'](_0x340f33=>!(_0x340f33['isAdded']&&_0x340f33[_0x1356('0xb9')]));const _0x1aae85=new Map(_0x1dd8b1[_0x1356('0x3b')][_0x289776][_0x1356('0x50')][_0x1356('0x44')]),_0x35c4e7=new Set(_0xe140b9[_0x1356('0x90')]());for(const _0x486bbf of _0x1aae85[_0x1356('0x90')]())_0x35c4e7['delete'](_0x486bbf);this[_0x1356('0x51')](_0x509db2,_0x35c4e7),this[_0x1356('0xf3')](_0x509db2),_0x509db2=this[_0x1356('0xa6')](_0x509db2),_0x509db2=this[_0x1356('0x28')](_0x509db2),_0x509db2=this[_0x1356('0x74')](_0x509db2);const {root:_0xcc135b,changes:_0x244c60}=this['_makeModelFromTape'](_0x509db2,_0x47e5ec,_0x289776);_0x417982[_0x1356('0x3b')][_0x289776]=_0xcc135b;const _0x2b7915=_0x243b52[_0x1356('0x72')](_0x289776);if(_0x2b7915){const _0x4ae081=_0x47e5ec[_0x1356('0x72')](_0x2b7915['userId']),_0x5f0c19=new _0x341b4f({'author':_0x4ae081,'type':_0x2b7915[_0x1356('0x76')]?_0x1356('0x10c'):_0x1356('0x8c'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x289776});_0x244c60['unshift'](_0x5f0c19),_0x417982['attributes'][_0x289776][_0x1356('0x7c')]=_0x5f0c19['id'];}_0x417982['changes']=_0x417982['changes'][_0x1356('0x103')](_0x244c60);}return _0x417982;}[_0x1356('0x26')](_0x4455a1,_0x4fab23){for(let _0x4e4d5e=0x0;_0x4e4d5e<_0x4455a1[_0x1356('0xaf')];_0x4e4d5e++)for(const [_0x4c87ae,_0x585d63]of _0x4fab23)_0x585d63[_0x1356('0x34')][_0x1356('0xf')](_0x4455a1[_0x4e4d5e][_0x1356('0x83')])&&_0x4455a1[_0x4e4d5e][_0x1356('0x123')][_0x1356('0xf2')](_0x4c87ae),_0x585d63[_0x1356('0xc9')]['isEqual'](_0x4455a1[_0x4e4d5e]['nextPosition'])&&_0x4455a1[_0x4e4d5e][_0x1356('0x73')][_0x1356('0xf2')](_0x4c87ae);}['_joinTapes'](_0x292a74,_0x14a524){let _0x483c04=[],_0x509338=0x0,_0x3b3361=0x0;for(;_0x509338<_0x292a74[_0x1356('0xaf')]||_0x3b3361<_0x14a524[_0x1356('0xaf')];){const _0x126e68=_0x292a74[_0x509338]||{},_0x25c853=_0x14a524[_0x3b3361]||{};if(_0x126e68['id']==_0x25c853['id'])_0x509338++,_0x3b3361++,_0x483c04[_0x1356('0xf2')](_0x126e68);else{if(_0x25c853[_0x1356('0xb9')]&&_0x126e68[_0x1356('0x94')]){const {commonTape:_0x12b7e9,iEnd:_0x550616,jEnd:_0x2683a7}=this['_threeWayMerge'](_0x292a74,_0x509338,_0x14a524,_0x3b3361);_0x483c04=_0x483c04[_0x1356('0x103')](_0x12b7e9),_0x509338=_0x550616,_0x3b3361=_0x2683a7;}else _0x25c853['isRemoved']?(_0x3b3361++,_0x483c04[_0x1356('0xf2')](_0x25c853)):(_0x509338++,_0x483c04[_0x1356('0xf2')](_0x126e68));}}return _0x483c04;}[_0x1356('0x51')](_0x230111,_0x180f08){const _0x2272f1=[];for(let _0x435d58=0x0;_0x435d58<_0x230111['length'];_0x435d58++){for(let _0x322f8b=0x0;_0x322f8b<_0x230111[_0x435d58][_0x1356('0x123')][_0x1356('0xaf')];_0x322f8b++){const _0x5ac06d=_0x230111[_0x435d58][_0x1356('0x123')][_0x322f8b];if(!_0x180f08[_0x1356('0xb0')](_0x5ac06d))continue;const {group:_0x171793,type:_0x372d64,authorId:_0x1dfbd6}=_0x3b6a02(_0x5ac06d);'revision-suggestion'!=_0x171793||_0x1356('0x70')!=_0x372d64&&_0x1356('0x66')!=_0x372d64||(_0x2272f1['unshift']({'type':_0x372d64,'name':_0x5ac06d,'userId':_0x1dfbd6}),_0x230111[_0x435d58][_0x1356('0x123')][_0x1356('0x3a')](_0x322f8b,0x1),_0x322f8b--);}_0x1ac0c4(_0x230111[_0x435d58]);for(let _0x10ae77=0x0;_0x10ae77<_0x230111[_0x435d58][_0x1356('0x73')][_0x1356('0xaf')];_0x10ae77++){const _0x2e74a0=_0x230111[_0x435d58][_0x1356('0x73')][_0x10ae77];if(!_0x180f08[_0x1356('0xb0')](_0x2e74a0))continue;const {group:_0x2c3189,type:_0xd49c02}=_0x3b6a02(_0x2e74a0);if(_0x1356('0x106')!=_0x2c3189||'insertion'!=_0xd49c02&&_0x1356('0x66')!=_0xd49c02)continue;_0x230111[_0x435d58][_0x1356('0x73')][_0x1356('0x3a')](_0x10ae77,0x1),_0x10ae77--;const _0xedd624=_0x2272f1[_0x1356('0xd8')](_0x2aeaf4=>_0x2aeaf4[_0x1356('0xa8')]==_0x2e74a0);_0xedd624>-0x1&&_0x2272f1[_0x1356('0x3a')](_0xedd624,0x1);}}function _0x3b6a02(_0x2bc3fc){const _0x1b71f5=_0x2bc3fc[_0x1356('0xf1')](':');return{'group':_0x1b71f5[0x0],'type':_0x1b71f5[0x1],'subType':_0x1b71f5[_0x1356('0xaf')]>=0x5?_0x1b71f5[0x2]:null,'id':_0x1b71f5[_0x1356('0xaf')]<0x5?_0x1b71f5[0x2]:_0x1b71f5[0x3],'authorId':_0x1b71f5['length']<0x5?_0x1b71f5[0x3]:_0x1b71f5[0x4],'markerCount':0x6==_0x1b71f5[_0x1356('0xaf')]?_0x1b71f5[0x5]:null};}function _0x1ac0c4(_0x2bef0d){for(let _0x347b0f=0x0;_0x347b0f<_0x2272f1[_0x1356('0xaf')];_0x347b0f++){if(_0x2bef0d[_0x1356('0x94')]&&_0x1356('0x70')==_0x2272f1[_0x347b0f][_0x1356('0x5')])return _0x2bef0d['isAddSuggestion']=_0x2272f1[_0x347b0f],void delete _0x2bef0d[_0x1356('0x94')];if(!_0x2bef0d[_0x1356('0x94')]&&!_0x2bef0d[_0x1356('0xb9')]&&_0x1356('0x66')==_0x2272f1[_0x347b0f][_0x1356('0x5')])return void(_0x2bef0d[_0x1356('0x11f')]=_0x2272f1[_0x347b0f]);}}}['_setDistance'](_0x50768f,_0x4f9373){let _0x315ab7=0x0,_0x3022b5=!0x1;const _0x1257c3=new Map();for(const _0xf74cb2 of _0x50768f)_0xf74cb2[_0x4f9373]?_0x3022b5&&(_0x315ab7++,_0x3022b5=!0x1):(_0x315ab7++,_0x3022b5=!0x0),_0x1257c3[_0x1356('0x24')](_0xf74cb2['id'],_0x315ab7);for(let _0x4c5b5d=0x0;_0x4c5b5d<_0x50768f['length'];_0x4c5b5d++){if(_0x1356('0xb9')==_0x4f9373&&_0x50768f[_0x4c5b5d][_0x1356('0x94')]||_0x1356('0x94')==_0x4f9373&&_0x50768f[_0x4c5b5d][_0x1356('0xb9')])continue;if(_0x1356('0x4')==_0x50768f[_0x4c5b5d][_0x1356('0x5')]){_0x50768f[_0x4c5b5d][_0x1356('0x4f')]=0x0;continue;}const _0xbf1480=_0x1257c3['get'](_0x50768f[_0x4c5b5d][_0x1356('0xc4')]),_0x566956=_0x1257c3[_0x1356('0x72')](_0x50768f[_0x4c5b5d]['id']);_0x50768f[_0x4c5b5d][_0x1356('0x4f')]=_0xbf1480-_0x566956;}}[_0x1356('0x3d')](_0x48b691,_0x5e0718,_0x230773=!0x1){const _0x51503d=[];let _0x56c7bb=this[_0x1356('0x11e')][_0x1356('0xc')](_0x48b691),_0x3e83cf=this[_0x1356('0x11e')]['getIndex'](_0x5e0718);for(-0x1==_0x3e83cf&&(_0x3e83cf=this['repository'][_0x1356('0xab')]['length'],_0x230773=!0x1);_0x56c7bb<_0x3e83cf;)_0x51503d[_0x1356('0xf2')](this[_0x1356('0x11e')]['getRevision'](_0x56c7bb)),_0x56c7bb++;return _0x230773&&_0x51503d[_0x1356('0xf2')](this[_0x1356('0x11e')][_0x1356('0x1c')](_0x56c7bb)),_0x51503d;}[_0x1356('0x14')](_0x265a86,_0x26622b,_0x37abbf,_0x26b49a){const _0x269556=this[_0x1356('0x108')]['model'][_0x1356('0x2')];let _0x3bd651=_0x26622b;for(;_0x265a86[_0x3bd651]&&_0x265a86[_0x3bd651]['isAdded'];)_0x3bd651++;let _0x3363d7=_0x26b49a;for(;_0x37abbf[_0x3363d7]&&_0x37abbf[_0x3363d7][_0x1356('0xb9')];)_0x3363d7++;_0x3e2c30(_0x265a86,_0x26622b,_0x3bd651),_0x3e2c30(_0x37abbf,_0x26b49a,_0x3363d7);const _0x376e13=_0x37abbf['slice'](_0x26b49a,_0x3363d7)[_0x1356('0x103')](_0x265a86[_0x1356('0x2b')](_0x26622b,_0x3bd651));return _0x376e13[_0x1356('0xb5')]((_0x2ccb08,_0x48ce64)=>_0x2ccb08[_0x1356('0x17')]!=_0x48ce64['side']?_0x2ccb08[_0x1356('0x17')]-_0x48ce64['side']:_0x2ccb08[_0x1356('0x15')]!=_0x48ce64[_0x1356('0x15')]?_0x2ccb08[_0x1356('0x15')]-_0x48ce64[_0x1356('0x15')]:_0x2ccb08[_0x1356('0x4f')]!=_0x48ce64['distance']?_0x48ce64[_0x1356('0x4f')]-_0x2ccb08['distance']:!!_0x2ccb08['isAdded']!=!!_0x48ce64[_0x1356('0x94')]?-0x1==_0x2ccb08[_0x1356('0x17')]||0x0==_0x2ccb08[_0x1356('0x17')]?_0x2ccb08[_0x1356('0x94')]?-0x1:0x1:_0x2ccb08[_0x1356('0x94')]?0x1:-0x1:_0x2ccb08[_0x1356('0x13')]-_0x48ce64[_0x1356('0x13')]),{'commonTape':_0x376e13,'iEnd':_0x3bd651,'jEnd':_0x3363d7};function _0x3e2c30(_0x1b13a8,_0x5a48d2,_0x5b1c8d){let _0x57eb6d=-0x1,_0x39bdcb=Number[_0x1356('0x67')],_0x235db2=!0x0;for(let _0x3381e7=_0x5a48d2;_0x3381e7<_0x5b1c8d;_0x3381e7++)if(_0x269556[_0x1356('0xe1')](_0x1b13a8[_0x3381e7][_0x1356('0x82')])||(_0x235db2=!0x1),_0x1b13a8[_0x3381e7]['item'][_0x1356('0xbd')]<_0x5a48d2&&(_0x57eb6d=_0x3381e7),_0x1b13a8[_0x3381e7][_0x1356('0x82')]['endIndex']>=_0x5b1c8d){_0x39bdcb=_0x3381e7;break;}_0x235db2&&(_0x57eb6d=_0x5b1c8d-0x1);for(let _0x2aefd4=_0x5a48d2;_0x2aefd4<_0x5b1c8d;_0x2aefd4++)_0x1b13a8[_0x2aefd4][_0x1356('0x17')]=_0x2aefd4<=_0x57eb6d?-0x1:_0x2aefd4<_0x39bdcb?0x0:0x1,_0x1b13a8[_0x2aefd4]['index']=_0x2aefd4;let _0x572d85=0x0;for(let _0x22043b=_0x5a48d2;_0x22043b<=_0x57eb6d;_0x22043b++)0x0==_0x1b13a8[_0x22043b][_0x1356('0x4f')]?_0x1b13a8[_0x22043b]['level']=_0x572d85:(_0x572d85++,_0x1b13a8[_0x22043b]['level']=_0x572d85,_0x572d85++);for(let _0xc47708=_0x5a48d2;_0xc47708<_0x5b1c8d;_0xc47708++)0x0==_0x1b13a8[_0xc47708][_0x1356('0x17')]&&(_0x1b13a8[_0xc47708]['level']=_0x572d85);_0x572d85=0x0;for(let _0x5f2d1e=_0x5b1c8d-0x1;_0x5f2d1e>=_0x39bdcb;_0x5f2d1e--)0x0==_0x1b13a8[_0x5f2d1e]['distance']?_0x1b13a8[_0x5f2d1e][_0x1356('0x15')]=_0x572d85:(_0x572d85--,_0x1b13a8[_0x5f2d1e][_0x1356('0x15')]=_0x572d85,_0x572d85--);}}[_0x1356('0xf3')](_0x220351){const _0x6536c5=new Map(),_0x3bf076=this[_0x1356('0x108')][_0x1356('0x3b')][_0x1356('0x2')];for(let _0x117b00=0x1;_0x117b00<_0x220351[_0x1356('0xaf')];_0x117b00++){let _0x50879d,_0x1e0367,_0x5abe14;const _0x19aa5e=_0x220351[_0x117b00],_0x44773f=_0x220351[_0x117b00-0x1];if(_0x1356('0x4')==_0x19aa5e[_0x1356('0x5')])continue;if(_0x19aa5e['type']!=_0x44773f['type'])continue;if(!_0x3bf076['isBlock'](_0x44773f['item'])||_0x3bf076[_0x1356('0x7f')](_0x44773f[_0x1356('0x82')]))continue;if(!_0x3bf076[_0x1356('0xed')](_0x19aa5e[_0x1356('0x82')])||_0x3bf076[_0x1356('0x7f')](_0x19aa5e[_0x1356('0x82')]))continue;if((_0x220351[_0x117b00][_0x1356('0x94')]||_0x220351[_0x117b00]['isAddSuggestion'])&&_0x220351[_0x117b00-0x1][_0x1356('0xb9')])_0x50879d=_0x220351[_0x117b00],_0x1e0367=_0x220351[_0x117b00-0x1],_0x5abe14=_0x117b00-0x1;else{if(!_0x220351[_0x117b00]['isRemoved']||!_0x220351[_0x117b00-0x1]['isAdded']&&!_0x220351[_0x117b00-0x1][_0x1356('0x95')])continue;_0x50879d=_0x220351[_0x117b00-0x1],_0x1e0367=_0x220351[_0x117b00],_0x5abe14=_0x117b00;}const _0x45e288=_0x50879d[_0x1356('0x15')]==_0x1e0367['level'],_0x276f30=Math['abs'](_0x50879d[_0x1356('0x15')])<Math[_0x1356('0x59')](_0x1e0367[_0x1356('0x15')])&&0x0==_0x1e0367[_0x1356('0x4f')];(_0x45e288||_0x276f30)&&(_0x6536c5['set'](_0x1e0367['id'],_0x50879d['id']),_0x220351[_0x1356('0x3a')](_0x5abe14,0x1),_0x117b00--,_0x50879d[_0x1356('0x94')]=!0x1);}for(let _0x8f0a06=0x0;_0x8f0a06<_0x220351[_0x1356('0xaf')];_0x8f0a06++)_0x6536c5['has'](_0x220351[_0x8f0a06][_0x1356('0xc4')])&&(_0x220351[_0x8f0a06]['pairId']=_0x6536c5[_0x1356('0x72')](_0x220351[_0x8f0a06][_0x1356('0xc4')]));}[_0x1356('0xa6')](_0x4f39e8){const _0x5182e8=new Set(_0x4f39e8[_0x1356('0x65')](_0x58b7d6=>_0x58b7d6['id']));for(let _0x1a6a97=0x0;_0x1a6a97<_0x4f39e8['length'];_0x1a6a97++)_0x5182e8['has'](_0x4f39e8[_0x1a6a97]['pairId'])||0x0==_0x4f39e8[_0x1a6a97][_0x1356('0x4f')]||(_0x4f39e8[_0x1a6a97]['isIncorrect']=!0x0);return _0x4f39e8['filter'](_0x10a463=>!_0x10a463[_0x1356('0x9f')]);}[_0x1356('0x28')](_0x4ed539){const _0x3324bb=new Set();for(let _0x4ea9ca=0x0;_0x4ea9ca<_0x4ed539['length'];_0x4ea9ca++){if(_0x3324bb[_0x1356('0xb0')](_0x4ed539[_0x4ea9ca]['id'])&&_0x4ed539[_0x4ea9ca][_0x1356('0xb9')]&&(_0x4ed539[_0x4ea9ca][_0x1356('0x9f')]=!0x0),_0x4ed539[_0x4ea9ca][_0x1356('0x9f')])continue;if(0x0==_0x4ed539[_0x4ea9ca]['distance'])continue;if(_0x1356('0xcc')!=_0x4ed539[_0x4ea9ca][_0x1356('0x5')])continue;if(null==_0x4ed539[_0x4ea9ca][_0x1356('0xc4')])continue;let _0x4114c0=_0x4ea9ca+0x1,_0x3756d9=0x0;for(;_0x4ed539[_0x4114c0]['id']!=_0x4ed539[_0x4ea9ca][_0x1356('0xc4')];)_0x1356('0xcc')==_0x4ed539[_0x4114c0][_0x1356('0x5')]?_0x3756d9++:_0x1356('0xf7')==_0x4ed539[_0x4114c0][_0x1356('0x5')]&&_0x3756d9--,_0x4114c0++;if(0x0!=_0x3756d9){if(_0x4ed539[_0x4ea9ca][_0x1356('0xb9')])_0x4ed539[_0x4ea9ca]['isIncorrect']=!0x0;else for(;_0x4114c0!=_0x4ea9ca;)_0x4ed539[_0x4114c0][_0x1356('0xb9')]&&0x0!=_0x4ed539[_0x4114c0][_0x1356('0x4f')]&&(_0x4ed539[_0x4114c0][_0x1356('0x9f')]=!0x0,_0x3324bb['add'](_0x4ed539[_0x4114c0][_0x1356('0xc4')])),_0x4114c0--;}}return _0x4ed539[_0x1356('0x9a')](_0x2fe780=>!_0x2fe780[_0x1356('0x9f')]);}['_removeUnsupportedChanges'](_0x2d7ed0){const _0x11fad5=this[_0x1356('0x108')]['model']['schema'];for(let _0x47648b=0x0;_0x47648b<_0x2d7ed0[_0x1356('0xaf')];_0x47648b++){if(!(_0x2d7ed0[_0x47648b][_0x1356('0x94')]||_0x2d7ed0[_0x47648b][_0x1356('0x95')]||_0x2d7ed0[_0x47648b][_0x1356('0xb9')]||_0x2d7ed0[_0x47648b][_0x1356('0x11f')]))continue;if(0x0==_0x2d7ed0[_0x47648b][_0x1356('0x4f')])continue;const _0x592a22=_0x2d7ed0[_0x47648b][_0x1356('0x82')];_0x11fad5['isBlock'](_0x592a22)||_0x11fad5['isLimit'](_0x592a22)||(_0x2d7ed0[_0x47648b][_0x1356('0x94')]&&delete _0x2d7ed0[_0x47648b][_0x1356('0x94')],_0x2d7ed0[_0x47648b][_0x1356('0x95')]&&delete _0x2d7ed0[_0x47648b][_0x1356('0x95')],_0x2d7ed0[_0x47648b][_0x1356('0x11f')]&&delete _0x2d7ed0[_0x47648b]['isRemoveSuggestion'],_0x2d7ed0[_0x47648b][_0x1356('0xb9')]&&(_0x2d7ed0[_0x47648b]['isIncorrect']=!0x0));}return _0x2d7ed0[_0x1356('0x9a')](_0x18e52e=>!_0x18e52e[_0x1356('0x9f')]);}[_0x1356('0xa')](_0x4c1383,_0x505683,_0x203cf7){const _0x5c9ee5=new _0x5965bc(),_0x465091=[],_0x3b48c4=new Map(),_0x578106=this[_0x1356('0x108')][_0x1356('0x3b')],_0x532e36=_0x578106[_0x1356('0x2')],_0x1ff7a0=[_0x5c9ee5],_0xb9c862={},_0x57fbd5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1385a2=null;const _0x5e35a5=[0x0];for(let _0x5b6f38=0x0;_0x5b6f38<_0x4c1383['length'];_0x5b6f38++){let _0x45362b,_0x12e471;if(_0x1356('0xcc')===_0x4c1383[_0x5b6f38]['type']){_0x45362b=_0x578106['createPositionFromPath'](_0x5c9ee5,_0x5e35a5);const _0x151286=new _0x44f9e5(_0x4c1383[_0x5b6f38][_0x1356('0x82')][_0x1356('0xa8')],_0x4c1383[_0x5b6f38][_0x1356('0x82')][_0x1356('0xd')]());_0x1ff7a0[0x0][_0x1356('0x11c')](_0x151286),_0x5e35a5[_0x1356('0xf2')](0x0),_0x1ff7a0[_0x1356('0x6c')](_0x151286),_0x12e471=_0x578106[_0x1356('0x8d')](_0x5c9ee5,_0x5e35a5),_0x1385a2=null;}else{if(_0x1356('0xf7')===_0x4c1383[_0x5b6f38][_0x1356('0x5')])_0x1ff7a0[_0x1356('0x112')](),_0x45362b=_0x578106[_0x1356('0x8d')](_0x5c9ee5,_0x5e35a5),_0x5e35a5[_0x1356('0x8')](),_0x5e35a5[_0x5e35a5['length']-0x1]++,_0x12e471=_0x578106[_0x1356('0x8d')](_0x5c9ee5,_0x5e35a5),_0x1385a2=null;else{if(_0x45362b=_0x578106[_0x1356('0x8d')](_0x5c9ee5,_0x5e35a5),_0x1385a2&&_0x361652(_0x1385a2,_0x4c1383[_0x5b6f38][_0x1356('0x82')]))_0x1385a2[_0x1356('0x1b')]+=_0x4c1383[_0x5b6f38]['item'][_0x1356('0x111')];else{const _0x140a1f=new _0x1a81de(_0x4c1383[_0x5b6f38][_0x1356('0x82')][_0x1356('0x111')],_0x4c1383[_0x5b6f38]['item']['getAttributes']());_0x1ff7a0[0x0]['_appendChild'](_0x140a1f),_0x1385a2=_0x140a1f;}_0x5e35a5[_0x5e35a5['length']-0x1]+=_0x4c1383[_0x5b6f38][_0x1356('0x82')][_0x1356('0x68')],_0x12e471=_0x578106['createPositionFromPath'](_0x5c9ee5,_0x5e35a5);}}for(const _0x9d17c2 of _0x4c1383[_0x5b6f38]['markersStart'])_0x3b48c4[_0x1356('0x24')](_0x9d17c2,{'start':_0x45362b,'end':null});_0x22a81b(_0x1356('0x11f'),_0x5b6f38,_0x45362b,_0x12e471),_0x22a81b(_0x1356('0x95'),_0x5b6f38,_0x45362b,_0x12e471),_0x22a81b(_0x1356('0xb9'),_0x5b6f38,_0x45362b,_0x12e471),_0x22a81b('isAdded',_0x5b6f38,_0x45362b,_0x12e471);for(const _0x4cbf3b of _0x4c1383[_0x5b6f38][_0x1356('0x73')]){_0x3b48c4[_0x1356('0x72')](_0x4cbf3b)[_0x1356('0xc9')]=_0x12e471;}}for(const [_0x161707,_0x968484]of _0x3b48c4){const _0x49db64=this['editor'][_0x1356('0x3b')][_0x1356('0x30')](_0x968484[_0x1356('0x34')],_0x968484[_0x1356('0xc9')]);_0x5c9ee5[_0x1356('0x44')][_0x1356('0x24')](_0x161707,_0x49db64);}return _0x465091[_0x1356('0xb5')]((_0x97bb0e,_0x36586e)=>{const _0x9eb7cc=_0x5c9ee5[_0x1356('0x44')][_0x1356('0x72')](_0x1356('0x115')+_0x97bb0e['id']),_0xb6dc37=_0x5c9ee5[_0x1356('0x44')][_0x1356('0x72')](_0x1356('0x115')+_0x36586e['id']);return _0x9eb7cc[_0x1356('0x34')][_0x1356('0x110')](_0xb6dc37[_0x1356('0x34')])?-0x1:_0x9eb7cc[_0x1356('0x34')][_0x1356('0x33')](_0xb6dc37[_0x1356('0x34')])?0x1:_0x9eb7cc['end'][_0x1356('0x110')](_0xb6dc37[_0x1356('0xc9')])?-0x1:_0x9eb7cc['end']['isAfter'](_0xb6dc37[_0x1356('0xc9')])?0x1:_0x1356('0x10c')===_0x97bb0e[_0x1356('0x5')]?-0x1:0x1;}),{'root':_0x5c9ee5,'changes':_0x465091};function _0x22a81b(_0x933bbb,_0x5741b7,_0x23b0e1,_0x228ea6){const _0xb8a3ff=!!_0x4c1383[_0x5741b7][_0x933bbb],_0x79435b=_0xb8a3ff?_0x4c1383[_0x5741b7][_0x933bbb][_0x1356('0x78')]:null,_0x1e53f8=_0x5741b7===_0x4c1383[_0x1356('0xaf')]-0x1,_0x3cb0c6=_0x57fbd5[_0x933bbb][0x0],_0x425b56=_0x532e36[_0x1356('0x35')](_0x4c1383[_0x5741b7][_0x1356('0x82')]);!_0xb9c862[_0x933bbb]&&_0xb8a3ff?_0xb9c862[_0x933bbb]={'start':_0x23b0e1,'tapeItem':_0x4c1383[_0x5741b7],'userId':_0x79435b,'type':_0x933bbb}:_0xb9c862[_0x933bbb]&&!_0xb8a3ff?(_0xb9c862[_0x933bbb][_0x1356('0xc9')]=_0x23b0e1,_0x982b85(_0xb9c862[_0x933bbb]),_0xb9c862[_0x933bbb]=null):_0xb9c862[_0x933bbb]&&_0xb8a3ff&&_0xb9c862[_0x933bbb][_0x1356('0x78')]!==_0x79435b&&(_0xb9c862[_0x933bbb][_0x1356('0xc9')]=_0x23b0e1,_0x3cb0c6&&_0x3cb0c6[_0x1356('0x78')]===_0xb9c862[_0x933bbb][_0x1356('0x78')]||_0x982b85(_0xb9c862[_0x933bbb]),_0xb9c862[_0x933bbb]={'start':_0x23b0e1,'tapeItem':_0x4c1383[_0x5741b7],'userId':_0x79435b,'type':_0x933bbb}),_0xb9c862[_0x933bbb]&&_0x425b56&&(_0x1356('0xcc')!==_0x4c1383[_0x5741b7][_0x1356('0x5')]||_0x3cb0c6&&_0x3cb0c6[_0x1356('0x78')]===_0x79435b||_0x57fbd5[_0x933bbb]['unshift']({'userId':_0x79435b,'object':_0x4c1383[_0x5741b7][_0x1356('0x82')],'change':_0xb9c862[_0x933bbb]}),_0x1356('0xf7')===_0x4c1383[_0x5741b7]['type']&&_0x3cb0c6&&_0x3cb0c6['object']===_0x4c1383[_0x5741b7][_0x1356('0x82')]&&(_0x57fbd5[_0x933bbb][_0x1356('0x112')](),_0xb9c862[_0x933bbb]=_0x3cb0c6[_0x1356('0x1e')])),_0xb9c862[_0x933bbb]&&_0x1e53f8&&(_0xb9c862[_0x933bbb]['end']=_0x228ea6,_0x982b85(_0xb9c862[_0x933bbb]),_0xb9c862[_0x933bbb]=null);}function _0x982b85({start:_0x4b813a,end:_0x37f10a,tapeItem:_0xc2fe2f,userId:_0x297598,type:_0x4e3e25}){const _0x405ac1=_0xc2fe2f[_0x1356('0x82')],_0xda5a3c=_0x578106[_0x1356('0x2')][_0x1356('0xed')](_0x405ac1)&&!_0x578106[_0x1356('0x2')]['isLimit'](_0x405ac1),_0x31cd4c=_0x4b813a[_0x1356('0x10a')]==_0x37f10a[_0x1356('0x2c')]&&_0x37f10a[_0x1356('0xe')];if(_0xda5a3c&&_0x31cd4c)return;const _0xd42cd8=_0x578106[_0x1356('0x30')](_0x4b813a,_0x37f10a),_0x47e160=_0x505683[_0x1356('0x72')](_0x297598),_0x22bb15=new _0x341b4f({'author':_0x47e160,'type':_0x1356('0x94')==_0x4e3e25||'isAddSuggestion'==_0x4e3e25?_0x1356('0x10c'):_0x1356('0x8c'),'data':{'isSuggestion':_0x1356('0x95')==_0x4e3e25||_0x1356('0x11f')==_0x4e3e25},'createdAt':new Date(),'rootName':_0x203cf7});_0x465091[_0x1356('0xf2')](_0x22bb15),_0x5c9ee5[_0x1356('0x44')][_0x1356('0x24')](_0x1356('0x115')+_0x22bb15['id'],_0xd42cd8);}function _0x361652(_0x34f93a,_0x591215){const _0x26f99c=_0x34f93a['getAttributes'](),_0x3d474d=_0x591215[_0x1356('0xd')]();for(const _0x9c7997 of _0x26f99c){if(_0x9c7997[0x1]!==_0x591215[_0x1356('0x119')](_0x9c7997[0x0]))return!0x1;_0x3d474d['next']();}return _0x3d474d['next']()[_0x1356('0x6a')];}}[_0x1356('0x79')](){this['editor'][_0x1356('0xbe')][_0x1356('0x19')](_0x1356('0x104'))[_0x1356('0xe5')]({'view':'revision'}),this[_0x1356('0x108')][_0x1356('0xbe')][_0x1356('0x19')]('editingDowncast')[_0x1356('0x89')]({'model':_0x1356('0x80'),'view':_0x5eb7a4=>{const _0x1ce4d7=_0x5eb7a4['markerName']['split'](':')[0x1],_0x4221b5=this[_0x1356('0xf5')](_0x1ce4d7);if(!_0x4221b5)return null;const _0x1fe372=_0x1356('0x10c')==_0x4221b5[_0x1356('0x5')]?'insertion':'deletion',_0x1bfd1b=[_0x1356('0x40'),_0x1356('0x3e')+_0x1fe372];return _0x4221b5[_0x1356('0x111')][_0x1356('0xe0')]&&_0x1bfd1b[_0x1356('0xf2')](_0x1356('0x3e')+_0x1fe372+_0x1356('0x64')),this['activeChange']==_0x4221b5&&_0x1bfd1b[_0x1356('0xf2')](_0x1356('0xf8')),{'classes':_0x1bfd1b,'attributes':{'data-change-id':_0x1ce4d7}};}}),this[_0x1356('0x108')][_0x1356('0xbe')]['for'](_0x1356('0x104'))[_0x1356('0x10c')](_0x43eb45=>{_0x43eb45['on'](_0x1356('0x109'),(_0x45b054,_0x3ce57c,_0x4bcabd)=>{const _0x31a305=_0x3ce57c[_0x1356('0x4e')][_0x1356('0x18')](0x0);if(!_0x31a305||!_0x31a305['is']('element',_0x1356('0x43')))return;if(!_0x4bcabd[_0x1356('0xb7')][_0x1356('0xbf')](_0x31a305,{'attributes':[_0x1356('0x4a'),_0x1356('0xa7')]}))return;const _0x3a6b71=_0x3ce57c[_0x1356('0x116')][_0x1356('0x34')][_0x1356('0x10a')];_0x4bcabd[_0x1356('0x8b')][_0x1356('0xbc')](_0x1356('0x4a'),_0x31a305[_0x1356('0x119')](_0x1356('0x4a')),_0x3a6b71),_0x4bcabd['writer'][_0x1356('0xbc')](_0x1356('0xa7'),_0x31a305[_0x1356('0x119')](_0x1356('0xa7')),_0x3a6b71);},{'priority':_0x1356('0xcb')});}),this[_0x1356('0x108')][_0x1356('0xbe')][_0x1356('0x19')](_0x1356('0x104'))['add'](_0x44aabe=>{_0x44aabe['on'](_0x1356('0x5c'),(_0x1dbd66,_0x22f2e3,_0x5ef819)=>{if(!_0x5ef819[_0x1356('0xb7')][_0x1356('0xbf')](_0x22f2e3[_0x1356('0x4e')],{'attributes':[_0x1356('0x4a'),_0x1356('0xa7')]}))return;if(_0x22f2e3[_0x1356('0x116')][_0x1356('0xc3')])return;const _0x47c657=_0x22f2e3[_0x1356('0x116')][_0x1356('0x34')][_0x1356('0x10a')];_0x47c657['hasAttribute']('vid_start')||_0x47c657[_0x1356('0x69')](_0x1356('0xac'))||(_0x5ef819[_0x1356('0x8b')][_0x1356('0xbc')]('vid_start',_0x22f2e3[_0x1356('0x4e')]['getAttribute']('vid_start'),_0x47c657),_0x5ef819[_0x1356('0x8b')][_0x1356('0xbc')](_0x1356('0xa7'),_0x22f2e3[_0x1356('0x4e')]['getAttribute'](_0x1356('0xa7')),_0x47c657));},{'priority':_0x1356('0xcb')});}),this[_0x1356('0x108')][_0x1356('0xbe')][_0x1356('0x19')]('upcast')[_0x1356('0x118')]({'view':{'name':_0x1356('0x99'),'attributes':{'vid':!0x0}},'model':{'key':_0x1356('0xac'),'value':_0x1fbbad=>_0x1fbbad['getAttribute'](_0x1356('0xac'))}}),this[_0x1356('0x108')][_0x1356('0x3b')][_0x1356('0x2')]['on'](_0x1356('0x36'),(_0x18b5e4,[,_0xa2a195])=>{[_0x1356('0x4a'),_0x1356('0xa7'),_0x1356('0xac')][_0x1356('0xcd')](_0xa2a195)&&(_0x18b5e4['return']=!0x0,_0x18b5e4['stop']());},{'priority':_0x1356('0x9')}),this[_0x1356('0x108')][_0x1356('0xbe')][_0x1356('0x19')](_0x1356('0xc1'))['add'](_0x380b24=>{_0x380b24['on'](_0x1356('0xc6'),(_0x31e865,_0x55d856,_0x5b0ebf)=>{if('\x20'!=_0x55d856[_0x1356('0x82')][_0x1356('0x111')]||_0x55d856[_0x1356('0x82')][_0x1356('0x2c')][_0x1356('0x5d')]>0x1)return;if(!_0x5b0ebf[_0x1356('0xb7')][_0x1356('0xbf')](_0x55d856[_0x1356('0x82')],_0x31e865[_0x1356('0xa8')]))return;const _0x811322=_0x5b0ebf[_0x1356('0x8b')],_0x1df216=_0x5b0ebf[_0x1356('0x10f')]['toViewRange'](_0x55d856[_0x1356('0x0')]);_0x811322[_0x1356('0xb1')](_0x1df216,_0x811322['createAttributeElement'](_0x1356('0x99')));});}),this[_0x1356('0x108')][_0x1356('0xbe')][_0x1356('0x19')](_0x1356('0xc1'))[_0x1356('0x97')]({'model':'revision'}),this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x10d')]['on']('addMarker:revision',function(_0x3213d2){const _0x101157=_0x3213d2['plugins'][_0x1356('0x72')](_0x1356('0xd3'));return(_0x47966d,_0x489873,_0x198a77)=>{const _0x55e0fa=_0x489873[_0x1356('0x1f')]['split'](':')[0x1],_0x16d2f1=_0x101157['_getChangeFromId'](_0x55e0fa);if(!_0x16d2f1)return null;const _0x2f285b=_0x1356('0x10c')==_0x16d2f1[_0x1356('0x5')]?'split':_0x1356('0xff');if(!_0x198a77['consumable']['test'](_0x489873['markerRange'],_0x47966d[_0x1356('0xa8')]))return;const _0x5de258=_0x489873[_0x1356('0x12')][_0x1356('0xb2')](),_0xae65b8=_0x489873[_0x1356('0x12')]['start'],_0xdef887=_0x3213d2['model'][_0x1356('0x2')];let _0x19c20e=null,_0x21c8b9=null,_0x13744d=!0x1,_0x2f2936=!0x1;for(const _0x5cdb5c of _0x5de258){const _0x15551d=_0x5cdb5c[_0x1356('0x82')];_0x13744d=_0x13744d||_0xdef887['isContent'](_0x15551d);const _0x51f8a1=_0x198a77['mapper'][_0x1356('0xd7')](_0x15551d);if(_0x51f8a1&&_0x51f8a1['getCustomProperty'](_0x1356('0x2f')))return;_0x1356('0xf7')==_0x5cdb5c[_0x1356('0x5')]&&(_0xdef887[_0x1356('0xed')](_0x15551d)&&!_0xdef887[_0x1356('0x7f')](_0x15551d)&&(_0x15551d[_0x1356('0x63')]||_0xae65b8['isAtEnd']?_0x19c20e&&_0x19c20e[_0x1356('0x2c')]==_0x15551d||(_0x19c20e=_0x15551d,_0x16f545(_0x5cdb5c['previousPosition']),_0x2f2936=!0x0):_0x21c8b9=_0x21c8b9||_0x5cdb5c[_0x1356('0x83')]));}function _0x16f545(_0x253071){const _0x3335ac=_0x198a77[_0x1356('0x8b')]['createUIElement']('span',{'class':_0x1356('0x3e')+_0x2f285b}),_0x32fbe6=_0x198a77[_0x1356('0x10f')][_0x1356('0x93')](_0x253071);_0x16d2f1[_0x1356('0x111')][_0x1356('0xe0')]&&_0x198a77[_0x1356('0x8b')]['addClass'](_0x1356('0x3e')+_0x2f285b+_0x1356('0x64'),_0x3335ac),_0x101157['activeChange']==_0x16d2f1&&_0x198a77[_0x1356('0x8b')]['addClass']('ck-suggestion-marker--active',_0x3335ac),_0x198a77['writer'][_0x1356('0x102')](_0x32fbe6,_0x3335ac),_0x198a77[_0x1356('0x10f')]['bindElementToMarker'](_0x3335ac,_0x489873[_0x1356('0x1f')]);}_0x13744d||_0x2f2936||!_0x21c8b9||_0x16f545(_0x21c8b9);};}(this['editor']),{'priority':_0x1356('0xad')}),this[_0x1356('0x108')]['editing'][_0x1356('0x10d')]['on'](_0x1356('0x48'),(_0x28254a,_0x3e9776,_0xdaca1a)=>{const _0x8b8a7e=_0xdaca1a['mapper'][_0x1356('0x11a')](_0x3e9776[_0x1356('0x1f')]);if(_0x8b8a7e)for(const _0x95bd3 of _0x8b8a7e)(_0x95bd3[_0x1356('0x61')]('ck-suggestion-marker-split')||_0x95bd3['hasClass'](_0x1356('0x11d')))&&(_0xdaca1a[_0x1356('0x10f')][_0x1356('0x7')](_0x95bd3,_0x3e9776[_0x1356('0x1f')]),_0xdaca1a[_0x1356('0x8b')][_0x1356('0x8c')](_0x95bd3));},{'priority':_0x1356('0xad')}),this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x10d')]['on'](_0x1356('0x91'),(_0x45ce18,_0x6dc650,_0x39ed42)=>{const _0x5a7e3f=_0x6dc650[_0x1356('0x1f')][_0x1356('0xf1')](':')[0x1],_0x2cb625=this[_0x1356('0xf5')](_0x5a7e3f);if(!_0x2cb625)return null;const _0x247d5e='add'==_0x2cb625[_0x1356('0x5')]?_0x1356('0xf1'):_0x1356('0xff');if(_0x39ed42[_0x1356('0xb7')]['test'](_0x6dc650[_0x1356('0x12')],_0x45ce18[_0x1356('0xa8')]))for(const _0x2018b9 of _0x6dc650[_0x1356('0x12')][_0x1356('0x47')]()){if(!_0x2018b9['is'](_0x1356('0x5c'),_0x1356('0x92')))continue;const _0x2af1b9=_0x39ed42['writer'][_0x1356('0x113')](_0x1356('0x99'),{'class':_0x1356('0x3e')+_0x247d5e}),_0x22637e=_0x39ed42['mapper']['toViewPosition'](this[_0x1356('0x108')][_0x1356('0x3b')][_0x1356('0x5a')](_0x2018b9));_0x2cb625['data'][_0x1356('0xe0')]&&_0x39ed42[_0x1356('0x8b')][_0x1356('0xe8')](_0x1356('0x3e')+_0x247d5e+_0x1356('0x64'),_0x2af1b9),this[_0x1356('0xe6')]==_0x2cb625&&_0x39ed42['writer']['addClass'](_0x1356('0xf8'),_0x2af1b9),_0x39ed42[_0x1356('0x8b')][_0x1356('0x102')](_0x22637e,_0x2af1b9),_0x39ed42['mapper'][_0x1356('0x9b')](_0x2af1b9,_0x6dc650[_0x1356('0x1f')]);}},{'priority':'high'}),this['editor']['model'][_0x1356('0xae')]['on']('change',()=>{this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x46')][_0x1356('0x1e')](_0x3b68ec=>{for(const _0x2ef964 of this[_0x1356('0x108')][_0x1356('0x3b')][_0x1356('0xae')][_0x1356('0x2a')]()){const _0x326d41=this[_0x1356('0x108')][_0x1356('0x3b')][_0x1356('0xae')][_0x1356('0x27')](_0x2ef964),_0x1a28f8=this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x46')][_0x1356('0xae')][_0x1356('0x27')](_0x2ef964);if(_0x1a28f8){const _0x3a41af=_0x326d41[_0x1356('0x119')](_0x1356('0x7c'));if(_0x3b68ec[_0x1356('0xd6')](_0x1356('0x84'),_0x1a28f8),_0x3b68ec[_0x1356('0xdc')](_0x1356('0xa1'),_0x1a28f8),_0x3b68ec['removeClass'](_0x1356('0x7d'),_0x1a28f8),_0x3b68ec[_0x1356('0xdc')]('ck-revision-history-root--active',_0x1a28f8),_0x3a41af){const _0x168fa1=this[_0x1356('0xf5')](_0x3a41af);if(!_0x168fa1)return null;_0x3b68ec['setAttribute'](_0x1356('0x84'),_0x3a41af,_0x1a28f8),_0x3b68ec['addClass'](_0x1356('0xfb')+_0x168fa1['type'],_0x1a28f8),this[_0x1356('0xe6')]==_0x168fa1&&_0x3b68ec[_0x1356('0xe8')]('ck-revision-history-root--active',_0x1a28f8);}}}});}),this[_0x1356('0x108')]['conversion'][_0x1356('0x19')](_0x1356('0x104'))[_0x1356('0xe5')]({'view':'comment','model':_0x118f91=>_0x1356('0xa5')+_0x118f91,'converterPriority':'highest'}),this[_0x1356('0x108')][_0x1356('0xbe')][_0x1356('0x19')](_0x1356('0x104'))[_0x1356('0xe5')]({'view':_0x1356('0xeb'),'model':_0x33b53f=>'revision-suggestion:'+_0x33b53f,'converterPriority':_0x1356('0x9')}),this[_0x1356('0x108')]['conversion']['for'](_0x1356('0xc1'))['markerToData']({'model':'revision-suggestion','view':_0x58b9e7=>({'name':_0x1356('0xd9')+_0x58b9e7,'group':'revision-suggestion'}),'converterPriority':_0x1356('0x9')}),this[_0x1356('0x108')][_0x1356('0xbe')]['for']('editingDowncast')[_0x1356('0x89')]({'model':_0x1356('0x106'),'view':_0x36a5fa=>{const _0xf766c8=_0x36a5fa[_0x1356('0x1f')]['split'](':')[0x1];return _0x1356('0x70')!=_0xf766c8&&'deletion'!=_0xf766c8?null:{'classes':[_0x1356('0xca'),'ck-suggestion-preview-marker-'+_0xf766c8]};}}),this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x10d')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x1356('0x108')],_0x1356('0xff')),{'priority':_0x1356('0xad')}),this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x10d')]['on'](_0x1356('0x49'),et(this[_0x1356('0x108')],_0x1356('0xf1')),{'priority':'high'}),this[_0x1356('0x108')]['editing'][_0x1356('0x10d')]['on'](_0x1356('0x7a'),(_0xb67f2b,_0x3fb480,_0x5c2f12)=>{const _0x3b6fb3=_0x5c2f12['mapper'][_0x1356('0x11a')](_0x3fb480[_0x1356('0x1f')]);if(_0x3b6fb3)for(const _0x4ef729 of _0x3b6fb3)_0x4ef729['is']('uiElement')&&(_0x5c2f12['mapper'][_0x1356('0x7')](_0x4ef729,_0x3fb480[_0x1356('0x1f')]),_0x5c2f12[_0x1356('0x8b')]['remove'](_0x4ef729));},{'priority':_0x1356('0xad')});}[_0x1356('0xf5')](_0x49a150){return this[_0x1356('0xda')][_0x1356('0x72')](_0x49a150);}['_getViewForChange'](_0x23bd58){return this['_changeView']&&this['_changeView'][_0x1356('0x45')](),this[_0x1356('0xc5')]=new _0x11c73b(this[_0x1356('0x108')][_0x1356('0xfa')],_0x23bd58),this[_0x1356('0xc5')];}[_0x1356('0x124')](){this['editor'][_0x1356('0x3b')][_0x1356('0xae')][_0x1356('0x5e')][_0x1356('0x5f')]('revision'),this['on'](_0x1356('0x6'),(_0x30c984,_0x4524ea,_0xc90aec,_0x21c148)=>{_0x21c148&&this[_0x1356('0xe2')][_0x1356('0x8c')](_0x21c148),_0xc90aec&&(this[_0x1356('0xe2')][_0x1356('0x10c')]({'view':_0xc90aec,'stackId':_0x1356('0x55'),'position':{'target':()=>{const _0x58f68d=this[_0x1356('0x108')]['editing'],_0x5e7461=this['_getChangeFromId'](_0xc90aec[_0x1356('0x60')]);let _0x2a441f;if(_0x5e7461[_0x1356('0x111')][_0x1356('0x3')]){const _0x4435be=_0x58f68d[_0x1356('0x46')][_0x1356('0xfe')](_0x5e7461[_0x1356('0x6e')]);_0x2a441f=Array[_0x1356('0xbb')](_0x4435be['getClientRects']());}else{const _0x201d67=this[_0x1356('0x108')][_0x1356('0x3b')][_0x1356('0x44')][_0x1356('0x72')](_0x1356('0x115')+_0xc90aec[_0x1356('0x60')]);_0x2a441f=Array[_0x1356('0xbb')](_0x58f68d[_0x1356('0x10f')][_0x1356('0x11a')](_0x201d67[_0x1356('0xa8')]))['map'](_0xa637f6=>_0x58f68d['view'][_0x1356('0x9d')][_0x1356('0xb3')](_0xa637f6))['map'](_0x47d305=>Array[_0x1356('0xbb')](_0x47d305['getClientRects']()))['flat']();}if(!this[_0x1356('0xfd')])return _0x2a441f[0x0];return _0x2a441f[_0x1356('0xa0')](_0x30214b=>_0x30214b[_0x1356('0xb8')]-0x3<=this[_0x1356('0xfd')]['y']&&_0x30214b[_0x1356('0xaa')]+0x3>=this[_0x1356('0xfd')]['y']&&_0x30214b[_0x1356('0x10e')]-0x3<=this[_0x1356('0xfd')]['x']&&_0x30214b['right']+0x3>=this['_activeViewTarget']['x'])||_0x2a441f[0x0];}}}),this[_0x1356('0xe2')][_0x1356('0xb')](_0x1356('0x55')));}),this['on']('change:activeChange',(_0x1bf1ff,_0x4c6367,_0x3ccc9b,_0x254767)=>{this['activeView']=_0x3ccc9b?this[_0x1356('0xf4')](_0x3ccc9b):null,this['editor'][_0x1356('0x3b')][_0x1356('0x1e')](()=>{const _0x4485c4=this[_0x1356('0x108')][_0x1356('0xe9')];_0x254767&&(_0x254767[_0x1356('0x111')][_0x1356('0x3')]?_0x4485c4[_0x1356('0x46')][_0x1356('0x1e')](_0x50a129=>{_0x50a129[_0x1356('0xdc')]('ck-revision-history-root--active',_0x4485c4['view']['document'][_0x1356('0x27')](_0x254767[_0x1356('0x6e')]));}):_0x4485c4[_0x1356('0x31')](_0x1356('0x115')+_0x254767['id'])),_0x3ccc9b&&(_0x3ccc9b[_0x1356('0x111')][_0x1356('0x3')]?_0x4485c4[_0x1356('0x46')][_0x1356('0x1e')](_0x1492ea=>{_0x1492ea[_0x1356('0xe8')](_0x1356('0x96'),_0x4485c4[_0x1356('0x46')]['document']['getRoot'](_0x3ccc9b[_0x1356('0x6e')]));}):_0x4485c4['reconvertMarker']('revision:'+_0x3ccc9b['id']));});}),this['listenTo'](this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x46')][_0x1356('0xae')],'mouseover',(_0x276eec,_0x2ef13e)=>{if(this[_0x1356('0xe6')])return;const _0x11cbb7=this[_0x1356('0x114')](_0x2ef13e['target']),_0x505eca=this['_changeIdToChange'][_0x1356('0x72')](_0x11cbb7);_0x505eca?(this[_0x1356('0xfd')]={'x':_0x2ef13e[_0x1356('0x100')]['x'],'y':_0x2ef13e[_0x1356('0x100')]['y']},this[_0x1356('0x11')]=this[_0x1356('0xf4')](_0x505eca)):(this[_0x1356('0xfd')]=null,this[_0x1356('0x11')]=null);}),this[_0x1356('0xd2')](this[_0x1356('0x108')][_0x1356('0xe9')][_0x1356('0x46')][_0x1356('0xae')],_0x1356('0x1d'),(_0x315a7f,_0xa57dd6)=>{const _0x462cb0=this['_findChangeIdFromDomTarget'](_0xa57dd6[_0x1356('0x10b')]),_0x287a45=this[_0x1356('0xda')][_0x1356('0x72')](_0x462cb0);_0x287a45?(this['_activeViewTarget']={'x':_0xa57dd6['domEvent']['x'],'y':_0xa57dd6[_0x1356('0x100')]['y']},_0x287a45===this['activeChange']?this[_0x1356('0xe2')][_0x1356('0xce')]():this['activeChange']=_0x287a45):(this['_activeViewTarget']=null,this[_0x1356('0xe6')]=null);});}[_0x1356('0x114')](_0x386a65){do{const _0x26641c=_0x386a65[_0x1356('0x119')](_0x1356('0x84'));if(_0x26641c)return _0x26641c;_0x386a65=_0x386a65[_0x1356('0x2c')];}while(_0x386a65);return null;}[_0x1356('0x38')](){this[_0x1356('0x108')][_0x1356('0x3b')][_0x1356('0x1e')](_0x38b9b2=>{for(const _0x2df0b0 of this[_0x1356('0x108')][_0x1356('0x3b')][_0x1356('0x44')])_0x38b9b2['removeMarker'](_0x2df0b0);});}}function et(_0x372729,_0x2b8942){return(_0x4ce533,_0x2d554d,_0x4a153e)=>{if(!_0x4a153e[_0x1356('0xb7')][_0x1356('0xa2')](_0x2d554d[_0x1356('0x12')],_0x4ce533[_0x1356('0xa8')]))return;const _0x554a01=_0x2d554d[_0x1356('0x12')][_0x1356('0xb2')](),_0x5d6415=_0x2d554d[_0x1356('0x12')][_0x1356('0x34')],_0x575170=_0x372729['model'][_0x1356('0x2')];let _0xd6ca74=null,_0x213cf8=null,_0x8aefdd=!0x1,_0xa3073c=!0x1;for(const _0x3364d7 of _0x554a01){const _0x2bdb16=_0x3364d7[_0x1356('0x82')];_0x8aefdd=_0x8aefdd||_0x575170['isContent'](_0x2bdb16);const _0x3db928=_0x4a153e[_0x1356('0x10f')]['toViewElement'](_0x2bdb16);if(_0x3db928&&_0x3db928['getCustomProperty'](_0x1356('0x2f')))return;_0x1356('0xf7')==_0x3364d7[_0x1356('0x5')]&&(_0x575170[_0x1356('0xed')](_0x2bdb16)&&!_0x575170['isLimit'](_0x2bdb16)&&(_0x2bdb16['nextSibling']||_0x5d6415[_0x1356('0x10')]?_0xd6ca74&&_0xd6ca74[_0x1356('0x2c')]==_0x2bdb16||(_0xd6ca74=_0x2bdb16,_0x29574f(_0x3364d7[_0x1356('0x83')]),_0xa3073c=!0x0):_0x213cf8=_0x213cf8||_0x3364d7[_0x1356('0x83')]));}function _0x29574f(_0x7838ec){const _0x3910db=_0x4a153e[_0x1356('0x10f')][_0x1356('0x93')](_0x7838ec),_0x58d1ab=_0x4a153e[_0x1356('0x8b')]['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b8942});_0x4a153e[_0x1356('0x8b')]['insert'](_0x3910db,_0x58d1ab),_0x4a153e[_0x1356('0x10f')][_0x1356('0x9b')](_0x58d1ab,_0x2d554d[_0x1356('0x1f')]);}_0x8aefdd||_0xa3073c||!_0x213cf8||_0x29574f(_0x213cf8);};}export class RestoreRevisionCommand extends _0x2142de{constructor(_0x520720){super(_0x520720);const _0x4a1868=_0x520720[_0x1356('0x101')][_0x1356('0x72')](d);this[_0x1356('0xa3')]=!0x1,this[_0x1356('0xd2')](_0x4a1868,_0x1356('0x81'),()=>this[_0x1356('0x25')]()),this[_0x1356('0xd2')](_0x4a1868,_0x1356('0x8e'),()=>this[_0x1356('0x25')]());}[_0x1356('0x5b')](){const _0x1a8984=this[_0x1356('0x108')],_0x2c93ca=_0x1a8984[_0x1356('0x101')][_0x1356('0x72')](d),_0x9bca13=_0x2c93ca[_0x1356('0x4d')]?_0x2c93ca['diff'][_0x1356('0x54')]:null;_0x1a8984[_0x1356('0x20')][_0x1356('0x72')](_0x1356('0x6f'))[_0x1356('0x4b')](_0x9bca13);}[_0x1356('0x25')](){const {isReady:_0x3da10b,isEnabled:_0x45b57a}=this[_0x1356('0x108')]['plugins']['get'](d);this[_0x1356('0xc2')]=_0x3da10b&&_0x45b57a;}}export class ShowChangeCommand extends _0x2142de{constructor(_0xbff776,{direction:_0x480aee}){super(_0xbff776);const _0x30d131=_0xbff776[_0x1356('0x101')]['get'](d);this[_0x1356('0xa3')]=!0x1,this[_0x1356('0x58')]=_0x1356('0x39')===_0x480aee?0x1:-0x1,this['listenTo'](_0x30d131,_0x1356('0x81'),()=>this[_0x1356('0x25')]()),this[_0x1356('0xd2')](_0x30d131,_0x1356('0x8e'),()=>this['refresh']()),this[_0x1356('0xd2')](_0x30d131,_0x1356('0x42'),()=>this[_0x1356('0x25')]());}[_0x1356('0x5b')](){const _0x4f30c5=this[_0x1356('0x108')],_0x3c3ac5=_0x4f30c5[_0x1356('0x101')]['get'](d),{isNavigationMode:_0xa0c1db,currentChangeNumber:_0x56a8ed}=_0x3c3ac5;let _0x3a2d60;if(_0x3c3ac5[_0x1356('0xe6')]=_0xa0c1db?_0x3c3ac5[_0x1356('0x120')][_0x1356('0x117')][_0x1356('0x72')](_0x56a8ed+this[_0x1356('0x58')]):_0x3c3ac5[_0x1356('0x120')]['changes'][_0x1356('0xec')],_0x3c3ac5[_0x1356('0xe6')][_0x1356('0x111')][_0x1356('0x3')])_0x3a2d60=_0x4f30c5[_0x1356('0xe9')][_0x1356('0x46')][_0x1356('0xfe')](_0x3c3ac5[_0x1356('0xe6')][_0x1356('0x6e')]);else{const _0x329b84=_0x4f30c5[_0x1356('0x3b')][_0x1356('0x44')]['get']('revision:'+_0x3c3ac5['activeChange']['id']);_0x3a2d60=_0x4f8cde(_0x4f30c5[_0x1356('0xe9')],_0x329b84);}_0x415310({'target':_0x3a2d60,'viewportOffset':0x28});}[_0x1356('0x25')](){const {isNavigationMode:_0x173f9b,currentChangeNumber:_0x1eb768,numberOfChanges:_0x85176,isReady:_0x4baca0,isEnabled:_0x24c34f}=this['editor']['plugins']['get'](d);this[_0x1356('0xc2')]=!!(_0x24c34f&&_0x4baca0&&_0x85176)&&(!_0x173f9b||(0x1===this[_0x1356('0x58')]?_0x1eb768<_0x85176-0x1:_0x1eb768>0x0));}}
|
|
23
|
+
const _0x4df9=['getAttributes','removeMarker','isOnRoot','data-revision-','_changeIdToChange','ck-suggestion-marker-split','_cleanMarkers','change:isReady','createRange','startsWith','markerToHighlight','distance','schema','keys','side','revision-suggestion:','default','removeMarker:revision-suggestion','remove','toViewPosition','revision-suggestion','deletion','ck-revision-history-root--active','forEach','highest','dataDowncast','_markSuggestions','dataToMarker','ck-revision-history-root-add','test','isBlock','marked','isRemoved','removeMarker:revision','restoreRevision','attribute:vid','level','markerRange','isEqual','mouseover','diff','bottom','insertion','activeChange','find','_revisions','ck-suggestion-marker-merge','insertions','_getChangeFromId','text','elementStart','roots','high','toViewRange','maxOffset','top','_setDistance','_cleanUp','item','ck-suggestion-marker','vid','_markInsertions','editing','markerName','_getDiff','getRoot','modelRange','endIndex','_joinTapes','element','isAtEnd','revisionHistoryAttachChange','change:isEnabled','element:pre','selection','abs','userId','_refreshStartEndIndex','bindElementToMarker','right','_sortAndFilterDiffChanges','downcastDispatcher','useFillerType','bind','deletions','catch','viewItem','for','stop','getClientRects','revision-end','elementEnd','toModel','hasAttribute','then','showNextChange','suggestion:','delete','consumable','consume','addMarker:revision','createRevision','isBefore','first','getWalker','ck-editor__editable__overlay','_fixObsoleteTags','writer','shift','flat','diffData','left','previousPosition','set','conversion','isAfter','repository','_activeViewTarget','isRemoveSuggestion','span','revision-viewer','editingDowncast','isSuggestion','findIndex','mapViewToDom','attributesBefore','toViewElement','ck-revision-history-root-remove','_data','requires','attributes','get','parent','string','execute','isReady','compare','revision','_removeRevisionMarkers','return','_update','getIndex','_setConversion','addHighlight','_changeView','adapter','locale','_step','changeId','from','filter','slice','init','addRevision','start','model','attachChange','ck-suggestion-marker-','children','startIndex','loadRevisionData','RevisionsRepository','affectsData','isAdded','splice','WidgetToolbarRepository','addRevisionData','_threeWayMerge','plugins','data-change-id','_setChanges','all','authors','_initInteractions','resolve','insert','attributesAfter','forward','_processTape','name','markerNameToElements','isObject','createAttributeElement','nextSibling','getAttribute','_getRevisionsRange','getRevision','revisionHistoryLabel','createPositionBefore','ck-suggestion-preview-marker-','_appendChild','editor','isInline','_markMarkers','pairId','RevisionViewer','vid_end','nodeAfter','pluginName','nextPosition','range','revision-comment:','_balloon','_markMismatchedRemovedTags','isIncorrect','length','toData','add','_makeModelFromTape','reconvertMarker','listenTo','change:numberOfChanges','markers','domEvent','createUIElement','end','activeView','backward','getRootNames','checkAttribute','updatePosition','view','isAddSuggestion','revision-start','data','suggestion','target','split','isLimit','mousedown','removeClass','change','document','refresh','_getViewForChange','upcast','_getViewObj','getDomRoot','currentChangeNumber','_removeMissingPairs','rootName','isAttached','_findChangeIdFromDomTarget','unshift','-new','mapper','config','vid_start','_makeTape','has','includes','changes','markersStart','map','type','values','code','restoreRevisionCallback','newRevisionId','push','merge','createPositionFromPath','addMarker:revision-suggestion:insertion','addClass','revision:','change:activeChange','low','ck-revision-history-root-','concat','showStack','uiElement','detachRoot','index','ck-suggestion-preview-marker','addRoot','markerToData','unbindElementFromMarkerName','enqueueChange','markersEnd','sort','getRevisionData','removeAttribute','clear','next','processor','setAttribute','change:activeView','_makeModelFromViewString','isEnabled','parse','createRangeIn','getCustomProperty','ck-suggestion-marker--active','isContent'];(function(_0x4331c6,_0x4df96f){const _0x328bb1=function(_0x2e1c30){while(--_0x2e1c30){_0x4331c6['push'](_0x4331c6['shift']());}};_0x328bb1(++_0x4df96f);}(_0x4df9,0x17e));const _0x328b=function(_0x4331c6,_0x4df96f){_0x4331c6=_0x4331c6-0x0;let _0x328bb1=_0x4df9[_0x4331c6];return _0x328bb1;};import{Plugin as _0xc0d923,Command as _0x58acda}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x347115}from'ckeditor5/src/utils';import{ContextualBalloon as _0x27f76e}from'ckeditor5/src/ui';import{DocumentFragment as _0x42e056,Element as _0x2b2641,Text as _0x40003c,ViewDocumentFragment as _0x3d21e0,ViewText as _0x2166bc,ViewElement as _0x444667,ViewContainerElement as _0xa9cd4a,ViewAttributeElement as _0x39bec7,ViewEmptyElement as _0x355596,ViewRawElement as _0x37397a,ViewUIElement as _0x26928d}from'ckeditor5/src/engine';import{Users as _0x4cfab0,getMarkerDomElement as _0x49e797}from'ckeditor5-collaboration/src/collaboration-core';import _0x2c4ffc from'./ui/revisionviewer/changedetailsview';import _0x2d8d8c from'./revisionsrepository';import _0x17a30b from'./changeitem';import{default as _0x2fe05a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x31862c}from'lodash-es';const tt={'c':_0xa9cd4a,'a':_0x39bec7,'e':_0x355596,'r':_0x37397a,'u':_0x26928d};export default class d extends _0xc0d923{static get[_0x328b('0x6e')](){return _0x328b('0x6b');}static get[_0x328b('0x29')](){return[_0x4cfab0,_0x27f76e,_0x2d8d8c];}constructor(_0x5d015c){super(_0x5d015c),this[_0x328b('0x1c')]=this[_0x328b('0x67')][_0x328b('0x50')][_0x328b('0x2b')](_0x328b('0x49')),this[_0x328b('0x19')](_0x328b('0xf9'),null),this[_0x328b('0x19')](_0x328b('0x80'),null),this['_activeViewTarget']=null,this[_0x328b('0x19')]('diff',null),this[_0x328b('0x19')](_0x328b('0x2f'),!0x1),this[_0x328b('0x19')](_0x328b('0xc8'),!0x0),this['on']('change:isEnabled',(_0x44093b,_0x4c6a28,_0x109473)=>{this[_0x328b('0xf9')]=null,this['activeView']=null,this[_0x328b('0x67')]['editing'][_0x328b('0x85')][_0x328b('0x8f')](_0x483904=>{for(const _0x1fc921 of this[_0x328b('0x67')]['editing'][_0x328b('0x85')][_0x328b('0x90')][_0x328b('0x101')])_0x109473?_0x483904[_0x328b('0x8e')](_0x328b('0x11'),_0x1fc921):_0x483904['addClass'](_0x328b('0x11'),_0x1fc921);});}),this[_0x328b('0x121')]('isNavigationMode')['to'](this,'activeChange',_0x3fd113=>null!==_0x3fd113),this[_0x328b('0x121')](_0x328b('0x96'))['to'](this,_0x328b('0x2f'),this,_0x328b('0xf6'),this,_0x328b('0xf9'),(_0x25d511,_0x204806,_0xd304bb)=>_0x25d511&&_0xd304bb?_0x204806[_0x328b('0xa3')][_0x328b('0x35')](_0xd304bb):0x0),this['bind']('numberOfChanges')['to'](this,_0x328b('0x2f'),this,_0x328b('0xf6'),(_0x592419,_0x1e063f)=>_0x592419?_0x1e063f['changes']['length']:0x0),this[_0x328b('0x38')]=null,this[_0x328b('0xd2')]=new Map(),this[_0x328b('0x39')]=null,this[_0x328b('0x72')]=this['editor'][_0x328b('0x50')]['get'](_0x27f76e);}[_0x328b('0x40')](){const _0x414391=this[_0x328b('0x67')],_0x55ecb6=new ShowChangeCommand(_0x414391,{'direction':_0x328b('0x81')}),_0x440a8a=new ShowChangeCommand(_0x414391,{'direction':_0x328b('0x59')});(_0x414391['commands'][_0x328b('0x77')]('showPreviousChange',_0x55ecb6),_0x414391['commands']['add'](_0x328b('0x7'),_0x440a8a),_0x414391['commands']['add'](_0x328b('0xf0'),new RestoreRevisionCommand(_0x414391)),this['on'](_0x328b('0x7b'),()=>{_0x55ecb6[_0x328b('0x91')](),_0x440a8a[_0x328b('0x91')]();}),this[_0x328b('0x36')](),this[_0x328b('0x55')](),_0x414391['enableReadOnlyMode']('revision-viewer'),_0x414391[_0x328b('0x50')][_0x328b('0xa1')]('WidgetToolbarRepository'))&&_0x414391[_0x328b('0x50')][_0x328b('0x2b')](_0x328b('0x4d'))['forceDisabled'](_0x328b('0x20'));}async[_0x328b('0xc0')](_0x5a3862){await this['loadRevisionData'](_0x5a3862);const _0x4423a2={};for(const _0x3be37e in _0x5a3862[_0x328b('0x16')]){if(_0x5a3862['diffData'][_0x3be37e][_0x328b('0x44')]&&!_0x5a3862[_0x328b('0x16')][_0x3be37e][_0x328b('0x44')][_0x328b('0x99')])continue;const _0xbb548e=this[_0x328b('0x32')](JSON[_0x328b('0xc9')](_0x5a3862['diffData'][_0x3be37e]['insertions'])),_0x358fb5=this[_0x328b('0x67')][_0x328b('0x10c')][_0x328b('0x85')]['document'],_0x5c0d7b=new _0x3d21e0(_0x358fb5,_0xbb548e[_0x328b('0xa5')](_0x594675=>this[_0x328b('0x94')](_0x594675)));this[_0x328b('0x67')][_0x328b('0x88')][_0x328b('0xc4')][_0x328b('0x120')](_0x328b('0xed')),_0x4423a2[_0x3be37e]=this[_0x328b('0x67')][_0x328b('0x88')][_0x328b('0xc4')][_0x328b('0x76')](_0x5c0d7b),this[_0x328b('0x67')][_0x328b('0x88')][_0x328b('0xc4')][_0x328b('0x120')](_0x328b('0xde'));}return _0x4423a2;}async['getRevisionRootsAttributes'](_0x142ebb){await this['loadRevisionData'](_0x142ebb);const _0xcb1d28={};for(const _0x4e5aec in _0x142ebb['diffData'])_0x142ebb[_0x328b('0x16')][_0x4e5aec][_0x328b('0x44')]&&!_0x142ebb[_0x328b('0x16')][_0x4e5aec][_0x328b('0x44')]['isAttached']||(_0xcb1d28[_0x4e5aec]=_0x142ebb[_0x328b('0x16')][_0x4e5aec][_0x328b('0x58')]||{});return _0xcb1d28;}[_0x328b('0x32')](_0x38591b){return(_0x38591b=_0x38591b[_0x328b('0x3e')](_0x465e54=>!_0x465e54[_0x328b('0x5b')]||_0x328b('0x87')!==_0x465e54[_0x328b('0x5b')]&&_0x328b('0x2')!==_0x465e54['name']))['forEach'](_0x202885=>{_0x328b('0x2d')!=typeof _0x202885&&(_0x202885[_0x328b('0x46')]=this['_removeRevisionMarkers'](_0x202885[_0x328b('0x46')]),_0x202885['attributes']=_0x202885[_0x328b('0x2a')][_0x328b('0x3e')](_0x545be5=>!_0x545be5[0x0][_0x328b('0xd7')](_0x328b('0xd1'))));}),_0x38591b;}async[_0x328b('0x30')](_0x4d406f,_0x2ba935,_0x483a80=!0x1){if(!this[_0x328b('0xc8')])return;const _0x3d348d=this['diff'],_0x3be66d=this['repository'],_0x346479='string'==typeof _0x4d406f?_0x3be66d[_0x328b('0x62')](_0x4d406f):_0x4d406f,_0x5b88da='string'==typeof _0x2ba935?_0x3be66d[_0x328b('0x62')](_0x2ba935):_0x2ba935,_0x31a6ec=_0x346479['id'],_0x52c46d=_0x5b88da?_0x5b88da['id']:null;if(!_0x483a80&&this[_0x328b('0xf6')]&&this[_0x328b('0xf6')][_0x328b('0xaa')]===_0x31a6ec&&this[_0x328b('0xf6')]['oldRevisionId']===_0x52c46d)return Promise[_0x328b('0x56')]();this[_0x328b('0x2f')]=!0x1,this[_0x328b('0x80')]=null,this[_0x328b('0xf9')]=null,this[_0x328b('0xf6')]=new _0x2fe05a(_0x31a6ec,_0x52c46d);const _0x3b0fc5=this[_0x328b('0x61')](_0x346479,_0x5b88da,!0x0)[_0x328b('0xa5')](_0x21460b=>this[_0x328b('0x48')](_0x21460b));return _0x3b0fc5[_0x328b('0xab')](new Promise(_0x5d21d4=>{setTimeout(_0x5d21d4,0x14);})),Promise[_0x328b('0x53')](_0x3b0fc5)[_0x328b('0x6')](()=>{if(!this['isEnabled'])return;this[_0x328b('0x107')]();const _0x1f9ff7=this[_0x328b('0x10e')](_0x31a6ec,_0x52c46d);for(const _0x157c2d of _0x1f9ff7['changes'])this[_0x328b('0xd2')][_0x328b('0x19')](_0x157c2d['id'],_0x157c2d);this['editor'][_0x328b('0x43')][_0x328b('0xbd')]({'isUndoable':!0x1},_0x3ed3ee=>{for(const _0x1b46eb of this['editor'][_0x328b('0x43')]['document'][_0x328b('0x82')]())_0x3ed3ee[_0x328b('0xb7')](_0x1b46eb);for(const _0x3d0aa8 of Object[_0x328b('0xdb')](_0x1f9ff7['model'])){const _0x29d4b=_0x3ed3ee[_0x328b('0xba')](_0x3d0aa8);for(const _0x197102 of Object[_0x328b('0xdb')](_0x1f9ff7[_0x328b('0x2a')][_0x3d0aa8]))_0x3ed3ee['setAttribute'](_0x197102,_0x1f9ff7[_0x328b('0x2a')][_0x3d0aa8][_0x197102],_0x29d4b);_0x3ed3ee[_0x328b('0x57')](_0x1f9ff7[_0x328b('0x43')][_0x3d0aa8],_0x29d4b,0x0);}}),this[_0x328b('0xf6')][_0x328b('0x52')](this[_0x328b('0x11e')](_0x1f9ff7[_0x328b('0xa3')])),this[_0x328b('0x2f')]=!0x0;})[_0x328b('0x123')](_0x5ac097=>{console['error'](_0x5ac097),this['_cleanUp'](),_0x3d348d&&(this[_0x328b('0xf6')]=_0x3d348d),this[_0x328b('0x2f')]=!0x0;});}[_0x328b('0x4e')](_0x2a206e,_0x13867b){const _0x31d169=this['repository'][_0x328b('0xd')](_0x2a206e);return _0x31d169['on'](_0x328b('0x34'),(_0xc9b166,_0x243dee,_0x407d84)=>_0x13867b(_0x243dee,_0x407d84,_0x31d169)),this[_0x328b('0x1c')][_0x328b('0x41')](_0x31d169),_0x31d169;}[_0x328b('0x48')](_0x873e99){if(!_0x873e99||_0x873e99['diffData'])return Promise[_0x328b('0x56')]();{const _0xcf0ab3=this[_0x328b('0x67')][_0x328b('0x9e')][_0x328b('0x2b')]('collaboration.channelId');return this[_0x328b('0x39')]['getRevision']({'channelId':_0xcf0ab3,'revisionId':_0x873e99['id']})['then'](_0x4e1c09=>{_0x873e99['_update']({'diffData':_0x4e1c09['diffData']},!0x0);});}}['_cleanUp'](){this[_0x328b('0xf9')]=null,this[_0x328b('0xd4')](),this['_changeView']&&this[_0x328b('0x38')]['destroy'](),this['_changeView']=null,this['_changeIdToChange'][_0x328b('0xc2')](),this[_0x328b('0x67')][_0x328b('0x43')][_0x328b('0xbd')]({'isUndoable':!0x1},_0x24e3cf=>{for(const _0x1cf923 of this[_0x328b('0x67')]['model'][_0x328b('0x90')][_0x328b('0x82')]())_0x24e3cf[_0x328b('0xb7')](_0x1cf923);});}[_0x328b('0x11e')](_0x106583){const _0x2b04c1=[],_0x452c39=new Map();for(const _0x1940c5 of this[_0x328b('0x67')][_0x328b('0x43')]['document']['getRootNames']()){const _0x44154a=this['editor']['editing'][_0x328b('0x85')][_0x328b('0x95')](_0x1940c5);if(!_0x44154a)continue;const _0x3eb3eb=_0x44154a[_0x328b('0x1')]()[_0x328b('0x108')](0x0);_0x3eb3eb&&(_0x2b04c1[_0x328b('0xab')](_0x1940c5),_0x452c39['set'](_0x1940c5,_0x3eb3eb));}return _0x2b04c1[_0x328b('0xbf')]((_0x53e6d3,_0x54396c)=>{const _0x51b583=_0x452c39[_0x328b('0x2b')](_0x53e6d3),_0x2d2a4e=_0x452c39[_0x328b('0x2b')](_0x54396c);return _0x51b583['y']-_0x2d2a4e['y']||_0x51b583['x']-_0x2d2a4e['x'];}),(_0x106583=_0x106583[_0x328b('0x3e')](_0x3cc5a3=>_0x2b04c1[_0x328b('0xa2')](_0x3cc5a3[_0x328b('0x98')])))['sort']((_0x393583,_0x4fb727)=>_0x2b04c1['indexOf'](_0x393583[_0x328b('0x98')])-_0x2b04c1['indexOf'](_0x4fb727['rootName'])),_0x106583;}[_0x328b('0xa0')](_0x54f12a){const _0x3ab59e=Array[_0x328b('0x3d')](_0x54f12a[_0x328b('0x7c')])[_0x328b('0x3e')](([_0x432f26,_0x326f3b])=>_0x432f26[_0x328b('0xd7')](_0x328b('0xb0'))&&!_0x326f3b['isCollapsed']),_0x3965ef=Array[_0x328b('0x3d')](this['editor']['model'][_0x328b('0xca')](_0x54f12a)[_0x328b('0x10')]({'singleCharacters':!0x0}));if(0x0!=_0x3ab59e[_0x328b('0x75')])for(const _0x34ef75 of _0x3965ef){const [_0x300bd9,_0x36087b]=_0x3ab59e[0x0],[,_0x38c2c1,_0x3faa42]=_0x300bd9[_0x328b('0x8b')](':');if(_0x36087b['end'][_0x328b('0xf4')](_0x34ef75['nextPosition'])&&_0x3ab59e[_0x328b('0x14')](),(_0x34ef75[_0x328b('0x18')][_0x328b('0xf4')](_0x36087b['start'])||_0x34ef75[_0x328b('0x18')][_0x328b('0x1b')](_0x36087b[_0x328b('0x42')]))&&(_0x328b('0xf8')==_0x38c2c1?_0x34ef75[_0x328b('0x4b')]={'userId':_0x3faa42}:'deletion'==_0x38c2c1&&(_0x34ef75['isRemoved']={'userId':_0x3faa42})),0x0==_0x3ab59e['length'])break;}return _0x3965ef;}['_refreshStartEndIndex'](_0x4a8bf7){const _0xb09c6d=new Map();for(let _0x8563c3=0x0;_0x8563c3<_0x4a8bf7['length'];_0x8563c3++)_0x328b('0xff')===_0x4a8bf7[_0x8563c3][_0x328b('0xa6')]?(_0x4a8bf7[_0x8563c3]['item'][_0x328b('0x47')]=_0x8563c3,_0x4a8bf7[_0x8563c3][_0x328b('0x108')][_0x328b('0x111')]=_0x8563c3):(_0x328b('0x100')===_0x4a8bf7[_0x8563c3]['type']?_0x4a8bf7[_0x8563c3][_0x328b('0x108')][_0x328b('0x47')]=_0x8563c3:_0x328b('0x3')===_0x4a8bf7[_0x8563c3]['type']&&(_0x4a8bf7[_0x8563c3][_0x328b('0x108')][_0x328b('0x111')]=_0x8563c3),_0xb09c6d[_0x328b('0x19')](_0x4a8bf7[_0x8563c3]['id'],_0x8563c3));for(const _0x3c584f of _0xb09c6d[_0x328b('0xa7')]())_0x328b('0x100')===_0x4a8bf7[_0x3c584f][_0x328b('0xa6')]?_0x4a8bf7[_0x3c584f][_0x328b('0x108')][_0x328b('0x111')]=_0xb09c6d['get'](_0x4a8bf7[_0x3c584f][_0x328b('0x6a')]):_0x328b('0x3')===_0x4a8bf7[_0x3c584f][_0x328b('0xa6')]&&(_0x4a8bf7[_0x3c584f]['item'][_0x328b('0x47')]=_0xb09c6d['get'](_0x4a8bf7[_0x3c584f][_0x328b('0x6a')]));}[_0x328b('0x5a')](_0x5fdc81){for(let _0x91f862=0x0;_0x91f862<_0x5fdc81[_0x328b('0x75')];_0x91f862++){if(_0x328b('0x100')===_0x5fdc81[_0x91f862][_0x328b('0xa6')])_0x5fdc81[_0x91f862][_0x328b('0x108')][_0x328b('0x47')]=_0x91f862;else{if(_0x328b('0x3')===_0x5fdc81[_0x91f862]['type']){_0x5fdc81[_0x91f862]['item'][_0x328b('0x111')]=_0x91f862;const _0x2e85ba=_0x5fdc81[_0x91f862][_0x328b('0x108')][_0x328b('0x47')];_0x5fdc81[_0x2e85ba][_0x328b('0x6a')]=_0x5fdc81[_0x91f862]['id'],_0x5fdc81[_0x91f862][_0x328b('0x6a')]=_0x5fdc81[_0x2e85ba]['id'];}else _0x5fdc81[_0x91f862]['item'][_0x328b('0x47')]=_0x91f862,_0x5fdc81[_0x91f862][_0x328b('0x108')][_0x328b('0x111')]=_0x91f862,_0x5fdc81[_0x91f862][_0x328b('0x6a')]=null;}_0x5fdc81[_0x91f862][_0x328b('0xa4')]||(_0x5fdc81[_0x91f862][_0x328b('0xa4')]=[],_0x5fdc81[_0x91f862][_0x328b('0xbe')]=[]);}}[_0x328b('0x10b')](_0x262578,_0x35dff6){const _0x22a4f2=_0x262578[_0x328b('0x3e')](_0x48af24=>!_0x48af24[_0x328b('0x4b')]);for(let _0x36db62=0x0;_0x36db62<_0x35dff6[_0x328b('0x75')];_0x36db62++)_0x35dff6[_0x36db62][_0x328b('0x4b')]&&(_0x22a4f2[_0x36db62]['isAdded']=_0x35dff6[_0x36db62][_0x328b('0x4b')]);}[_0x328b('0xc7')](_0x45716b){const _0x1cd512=JSON[_0x328b('0xc9')](_0x45716b),_0x48b700=this['editor']['editing'][_0x328b('0x85')]['document'],_0x42dcb2=new _0x3d21e0(_0x48b700,_0x1cd512['map'](_0x58a839=>this['_getViewObj'](_0x58a839)));return this[_0x328b('0x67')][_0x328b('0x88')][_0x328b('0x4')](_0x42dcb2);}[_0x328b('0x94')](_0x2fef09){const _0x4dd6ed=this[_0x328b('0x67')][_0x328b('0x10c')][_0x328b('0x85')][_0x328b('0x90')];if(_0x328b('0x2d')==typeof _0x2fef09)return new _0x2166bc(_0x4dd6ed,_0x2fef09);{const _0x67e0d9=_0x2fef09[_0x328b('0x46')][_0x328b('0xa5')](_0x1c5e6c=>this[_0x328b('0x94')](_0x1c5e6c));return new(tt[_0x2fef09[(_0x328b('0xa6'))]]||_0x444667)(_0x4dd6ed,_0x2fef09['name'],_0x2fef09[_0x328b('0x2a')],_0x67e0d9);}}[_0x328b('0x10e')](_0x26bff7,_0x35b9f6=null){const _0x26fffa=this[_0x328b('0x1c')][_0x328b('0x62')](_0x26bff7),_0x245f39=_0x35b9f6?this[_0x328b('0x1c')]['getRevision'](_0x35b9f6):null,_0x1875e2=this[_0x328b('0x61')](_0x26fffa,_0x245f39),_0x703ecd=_0x1875e2[_0x1875e2[_0x328b('0x75')]-0x1],_0x5dc539=new Map(),_0x23b0d6={'model':{},'attributes':{},'changes':[]},_0x3e5f31=new Set(),_0x56da97=new Map();for(let _0x1c520d=_0x1875e2[_0x328b('0x75')]-0x1;_0x1c520d>=0x0;_0x1c520d--){const _0x240279=_0x1875e2[_0x1c520d];for(const _0x29ca36 of Object[_0x328b('0xdb')](_0x240279['diffData']))if(_0x240279['diffData'][_0x29ca36][_0x328b('0x44')]){const _0x19c757=_0x240279[_0x328b('0x16')][_0x29ca36][_0x328b('0x44')];_0x19c757[_0x328b('0x99')]?(_0x3e5f31['add'](_0x29ca36),_0x56da97[_0x328b('0xa1')](_0x29ca36)&&_0x56da97[_0x328b('0x2b')](_0x29ca36)[_0x328b('0x11a')]==_0x19c757[_0x328b('0x11a')]?_0x56da97['delete'](_0x29ca36):_0x56da97[_0x328b('0x19')](_0x29ca36,_0x19c757)):_0x56da97[_0x328b('0xa1')](_0x29ca36)?(_0x3e5f31[_0x328b('0x9')](_0x29ca36),_0x56da97[_0x328b('0x9')](_0x29ca36)):(_0x3e5f31[_0x328b('0x77')](_0x29ca36),_0x56da97[_0x328b('0x19')](_0x29ca36,_0x19c757));}else _0x3e5f31[_0x328b('0x77')](_0x29ca36);}for(const _0x9ae283 of _0x3e5f31){const _0x5e1610=_0x56da97[_0x328b('0xa1')](_0x9ae283)&&!_0x56da97[_0x328b('0x2b')](_0x9ae283)[_0x328b('0x99')];let _0x1fda3a=_0x5e1610?_0x1875e2[_0x328b('0x75')]-0x1:0x0;const _0x4dc406=_0x5e1610?-0x1:0x1;for(;_0x1875e2[_0x1fda3a];){const _0x9d34b8=_0x1875e2[_0x1fda3a];if(_0x9d34b8[_0x328b('0x16')][_0x9ae283]){const _0x375cf1=_0x5e1610?_0x9d34b8[_0x328b('0x16')][_0x9ae283][_0x328b('0x25')]:_0x9d34b8[_0x328b('0x16')][_0x9ae283][_0x328b('0x58')];_0x23b0d6[_0x328b('0x2a')][_0x9ae283]=_0x375cf1?_0x31862c(_0x375cf1):{};break;}_0x1fda3a+=_0x4dc406;}}for(const _0x28dfab of _0x1875e2){_0x28dfab[_0x328b('0x43')]={};for(const _0x4f30c6 of _0x28dfab[_0x328b('0x54')])_0x5dc539['set'](_0x4f30c6['id'],_0x4f30c6);for(const _0x5bc3a8 of _0x3e5f31){const _0x59f041=_0x28dfab['diffData'][_0x5bc3a8]?_0x28dfab[_0x328b('0x16')][_0x5bc3a8][_0x328b('0xfd')]:'[]',_0x5582d1=_0x28dfab[_0x328b('0x16')][_0x5bc3a8]?_0x28dfab[_0x328b('0x16')][_0x5bc3a8][_0x328b('0x122')]:'[]';_0x28dfab[_0x328b('0x43')][_0x5bc3a8]={'insertions':this['_makeModelFromViewString'](_0x59f041),'deletions':this[_0x328b('0xc7')](_0x5582d1)};}}for(const _0x5e1b4b of _0x3e5f31){let _0x5ac7a9=null,_0x17b099=0x0;const _0x59d494=new Map(Array[_0x328b('0x3d')](_0x26fffa[_0x328b('0x43')][_0x5e1b4b]['insertions'][_0x328b('0x7c')])[_0x328b('0x3e')](([_0x5abf9e])=>!_0x5abf9e[_0x328b('0xd7')](_0x328b('0xb0'))));let _0x159247=0x0;for(const _0x329829 of _0x1875e2){const _0x753c32=this[_0x328b('0xa0')](_0x329829[_0x328b('0x43')][_0x5e1b4b][_0x328b('0xfd')]);_0x329829==_0x26fffa?(_0x5ac7a9=_0x753c32,_0x17b099=_0x5ac7a9[_0x328b('0x75')],_0x5ac7a9[_0x328b('0xe5')](_0x4c05a2=>{_0x4c05a2['id']=_0x159247++;}),this[_0x328b('0x5a')](_0x5ac7a9)):this['_markInsertions'](_0x5ac7a9,_0x753c32);const _0xe1d70b=_0x5ac7a9[_0x328b('0x3e')](_0x552b22=>!_0x552b22[_0x328b('0x4b')])[_0x328b('0xa5')](_0x32c1e3=>_0x32c1e3['id']);let _0x54e3f2=0x0;const _0x141c74=this[_0x328b('0xa0')](_0x329829[_0x328b('0x43')][_0x5e1b4b][_0x328b('0x122')]);_0x141c74[_0x328b('0xe5')](_0x2dd21b=>{_0x2dd21b[_0x328b('0xee')]?_0x2dd21b['id']=_0x17b099++:_0x2dd21b['id']=_0xe1d70b[_0x54e3f2++];}),this[_0x328b('0x5a')](_0x141c74),this[_0x328b('0x106')](_0x5ac7a9,'isAdded'),this[_0x328b('0x106')](_0x141c74,_0x328b('0xee')),_0x329829==_0x26fffa&&this[_0x328b('0x69')](_0x5ac7a9,_0x59d494),_0x5ac7a9=this[_0x328b('0x112')](_0x5ac7a9,_0x141c74),this[_0x328b('0x11b')](_0x5ac7a9),this[_0x328b('0x106')](_0x5ac7a9,'isRemoved');}_0x5ac7a9=_0x5ac7a9[_0x328b('0x3e')](_0x10d89c=>!(_0x10d89c['isAdded']&&_0x10d89c['isRemoved']));const _0x2fbd48=new Map(_0x703ecd[_0x328b('0x43')][_0x5e1b4b]['deletions'][_0x328b('0x7c')]),_0x140933=new Set(_0x59d494[_0x328b('0xdb')]());for(const _0x2b5ea2 of _0x2fbd48[_0x328b('0xdb')]())_0x140933['delete'](_0x2b5ea2);this[_0x328b('0xe8')](_0x5ac7a9,_0x140933),this[_0x328b('0x12')](_0x5ac7a9),_0x5ac7a9=this[_0x328b('0x97')](_0x5ac7a9),_0x5ac7a9=this[_0x328b('0x73')](_0x5ac7a9),_0x5ac7a9=this['_removeUnsupportedChanges'](_0x5ac7a9);const {root:_0x1e7e53,changes:_0x3ddf39}=this['_makeModelFromTape'](_0x5ac7a9,_0x5dc539,_0x5e1b4b);_0x23b0d6[_0x328b('0x43')][_0x5e1b4b]=_0x1e7e53;const _0x780485=_0x56da97[_0x328b('0x2b')](_0x5e1b4b);if(_0x780485){const _0x26a278=_0x5dc539['get'](_0x780485[_0x328b('0x11a')]),_0x49937c=new _0x17a30b({'author':_0x26a278,'type':_0x780485[_0x328b('0x99')]?'add':_0x328b('0xe0'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5e1b4b});_0x3ddf39[_0x328b('0x9b')](_0x49937c),_0x23b0d6[_0x328b('0x2a')][_0x5e1b4b][_0x328b('0x115')]=_0x49937c['id'];}_0x23b0d6[_0x328b('0xa3')]=_0x23b0d6['changes']['concat'](_0x3ddf39);}return _0x23b0d6;}[_0x328b('0x69')](_0x51ada7,_0x3e1a71){for(let _0x36f54c=0x0;_0x36f54c<_0x51ada7[_0x328b('0x75')];_0x36f54c++)for(const [_0x30aef0,_0x4b056f]of _0x3e1a71)_0x4b056f[_0x328b('0x42')][_0x328b('0xf4')](_0x51ada7[_0x36f54c]['previousPosition'])&&_0x51ada7[_0x36f54c]['markersStart'][_0x328b('0xab')](_0x30aef0),_0x4b056f[_0x328b('0x7f')][_0x328b('0xf4')](_0x51ada7[_0x36f54c][_0x328b('0x6f')])&&_0x51ada7[_0x36f54c][_0x328b('0xbe')][_0x328b('0xab')](_0x30aef0);}['_joinTapes'](_0x3fedb2,_0xad08c8){let _0xc93a97=[],_0x58238d=0x0,_0x547714=0x0;for(;_0x58238d<_0x3fedb2[_0x328b('0x75')]||_0x547714<_0xad08c8[_0x328b('0x75')];){const _0x197272=_0x3fedb2[_0x58238d]||{},_0x2460dc=_0xad08c8[_0x547714]||{};if(_0x197272['id']==_0x2460dc['id'])_0x58238d++,_0x547714++,_0xc93a97['push'](_0x197272);else{if(_0x2460dc[_0x328b('0xee')]&&_0x197272[_0x328b('0x4b')]){const {commonTape:_0x299faa,iEnd:_0x4c3470,jEnd:_0x398843}=this[_0x328b('0x4f')](_0x3fedb2,_0x58238d,_0xad08c8,_0x547714);_0xc93a97=_0xc93a97['concat'](_0x299faa),_0x58238d=_0x4c3470,_0x547714=_0x398843;}else _0x2460dc[_0x328b('0xee')]?(_0x547714++,_0xc93a97['push'](_0x2460dc)):(_0x58238d++,_0xc93a97[_0x328b('0xab')](_0x197272));}}return _0xc93a97;}['_markSuggestions'](_0x246877,_0x48dbdc){const _0x17cbf5=[];for(let _0x3dfc0f=0x0;_0x3dfc0f<_0x246877[_0x328b('0x75')];_0x3dfc0f++){for(let _0x3f9634=0x0;_0x3f9634<_0x246877[_0x3dfc0f]['markersStart']['length'];_0x3f9634++){const _0x58a148=_0x246877[_0x3dfc0f]['markersStart'][_0x3f9634];if(!_0x48dbdc['has'](_0x58a148))continue;const {group:_0x54bd4b,type:_0x40d9b2,authorId:_0x3fa8f7}=_0x4bd8c1(_0x58a148);_0x328b('0xe2')!=_0x54bd4b||_0x328b('0xf8')!=_0x40d9b2&&_0x328b('0xe3')!=_0x40d9b2||(_0x17cbf5[_0x328b('0x9b')]({'type':_0x40d9b2,'name':_0x58a148,'userId':_0x3fa8f7}),_0x246877[_0x3dfc0f][_0x328b('0xa4')][_0x328b('0x4c')](_0x3f9634,0x1),_0x3f9634--);}_0x31a2bf(_0x246877[_0x3dfc0f]);for(let _0x284a07=0x0;_0x284a07<_0x246877[_0x3dfc0f]['markersEnd'][_0x328b('0x75')];_0x284a07++){const _0xc59490=_0x246877[_0x3dfc0f]['markersEnd'][_0x284a07];if(!_0x48dbdc[_0x328b('0xa1')](_0xc59490))continue;const {group:_0x1beb15,type:_0x26f4ef}=_0x4bd8c1(_0xc59490);if(_0x328b('0xe2')!=_0x1beb15||'insertion'!=_0x26f4ef&&'deletion'!=_0x26f4ef)continue;_0x246877[_0x3dfc0f][_0x328b('0xbe')][_0x328b('0x4c')](_0x284a07,0x1),_0x284a07--;const _0x559d62=_0x17cbf5[_0x328b('0x23')](_0x2af669=>_0x2af669['name']==_0xc59490);_0x559d62>-0x1&&_0x17cbf5[_0x328b('0x4c')](_0x559d62,0x1);}}function _0x4bd8c1(_0x491549){const _0x2bfe0f=_0x491549[_0x328b('0x8b')](':');return{'group':_0x2bfe0f[0x0],'type':_0x2bfe0f[0x1],'subType':_0x2bfe0f[_0x328b('0x75')]>=0x5?_0x2bfe0f[0x2]:null,'id':_0x2bfe0f[_0x328b('0x75')]<0x5?_0x2bfe0f[0x2]:_0x2bfe0f[0x3],'authorId':_0x2bfe0f[_0x328b('0x75')]<0x5?_0x2bfe0f[0x3]:_0x2bfe0f[0x4],'markerCount':0x6==_0x2bfe0f[_0x328b('0x75')]?_0x2bfe0f[0x5]:null};}function _0x31a2bf(_0x5d9a5e){for(let _0x5850e8=0x0;_0x5850e8<_0x17cbf5[_0x328b('0x75')];_0x5850e8++){if(_0x5d9a5e[_0x328b('0x4b')]&&_0x328b('0xf8')==_0x17cbf5[_0x5850e8][_0x328b('0xa6')])return _0x5d9a5e['isAddSuggestion']=_0x17cbf5[_0x5850e8],void delete _0x5d9a5e[_0x328b('0x4b')];if(!_0x5d9a5e[_0x328b('0x4b')]&&!_0x5d9a5e[_0x328b('0xee')]&&_0x328b('0xe3')==_0x17cbf5[_0x5850e8][_0x328b('0xa6')])return void(_0x5d9a5e[_0x328b('0x1e')]=_0x17cbf5[_0x5850e8]);}}}[_0x328b('0x106')](_0x5e8f29,_0x1bce60){let _0x13548c=0x0,_0x503a92=!0x1;const _0x344c5c=new Map();for(const _0x550f45 of _0x5e8f29)_0x550f45[_0x1bce60]?_0x503a92&&(_0x13548c++,_0x503a92=!0x1):(_0x13548c++,_0x503a92=!0x0),_0x344c5c['set'](_0x550f45['id'],_0x13548c);for(let _0x545ab6=0x0;_0x545ab6<_0x5e8f29[_0x328b('0x75')];_0x545ab6++){if(_0x328b('0xee')==_0x1bce60&&_0x5e8f29[_0x545ab6][_0x328b('0x4b')]||_0x328b('0x4b')==_0x1bce60&&_0x5e8f29[_0x545ab6]['isRemoved'])continue;if(_0x328b('0xff')==_0x5e8f29[_0x545ab6][_0x328b('0xa6')]){_0x5e8f29[_0x545ab6][_0x328b('0xd9')]=0x0;continue;}const _0x5c59e1=_0x344c5c[_0x328b('0x2b')](_0x5e8f29[_0x545ab6]['pairId']),_0x3f9db1=_0x344c5c[_0x328b('0x2b')](_0x5e8f29[_0x545ab6]['id']);_0x5e8f29[_0x545ab6][_0x328b('0xd9')]=_0x5c59e1-_0x3f9db1;}}[_0x328b('0x61')](_0x4fa0d4,_0x2fd7aa,_0x3bbd49=!0x1){const _0x293e8a=[];let _0x17b649=this['repository'][_0x328b('0x35')](_0x4fa0d4),_0x29028d=this[_0x328b('0x1c')][_0x328b('0x35')](_0x2fd7aa);for(-0x1==_0x29028d&&(_0x29028d=this[_0x328b('0x1c')][_0x328b('0xfb')][_0x328b('0x75')],_0x3bbd49=!0x1);_0x17b649<_0x29028d;)_0x293e8a[_0x328b('0xab')](this[_0x328b('0x1c')][_0x328b('0x62')](_0x17b649)),_0x17b649++;return _0x3bbd49&&_0x293e8a[_0x328b('0xab')](this['repository'][_0x328b('0x62')](_0x17b649)),_0x293e8a;}[_0x328b('0x4f')](_0x98e61c,_0x41ce1e,_0x2d9e95,_0x31c037){const _0x1947cc=this[_0x328b('0x67')][_0x328b('0x43')][_0x328b('0xda')];let _0x4211c2=_0x41ce1e;for(;_0x98e61c[_0x4211c2]&&_0x98e61c[_0x4211c2][_0x328b('0x4b')];)_0x4211c2++;let _0x302712=_0x31c037;for(;_0x2d9e95[_0x302712]&&_0x2d9e95[_0x302712][_0x328b('0xee')];)_0x302712++;_0x3b5a75(_0x98e61c,_0x41ce1e,_0x4211c2),_0x3b5a75(_0x2d9e95,_0x31c037,_0x302712);const _0x522199=_0x2d9e95[_0x328b('0x3f')](_0x31c037,_0x302712)[_0x328b('0xb4')](_0x98e61c[_0x328b('0x3f')](_0x41ce1e,_0x4211c2));return _0x522199[_0x328b('0xbf')]((_0x337e62,_0x1d7d41)=>_0x337e62[_0x328b('0xdc')]!=_0x1d7d41['side']?_0x337e62[_0x328b('0xdc')]-_0x1d7d41[_0x328b('0xdc')]:_0x337e62[_0x328b('0xf2')]!=_0x1d7d41[_0x328b('0xf2')]?_0x337e62[_0x328b('0xf2')]-_0x1d7d41[_0x328b('0xf2')]:_0x337e62[_0x328b('0xd9')]!=_0x1d7d41[_0x328b('0xd9')]?_0x1d7d41[_0x328b('0xd9')]-_0x337e62['distance']:!!_0x337e62[_0x328b('0x4b')]!=!!_0x1d7d41[_0x328b('0x4b')]?-0x1==_0x337e62[_0x328b('0xdc')]||0x0==_0x337e62['side']?_0x337e62['isAdded']?-0x1:0x1:_0x337e62[_0x328b('0x4b')]?0x1:-0x1:_0x337e62[_0x328b('0xb8')]-_0x1d7d41['index']),{'commonTape':_0x522199,'iEnd':_0x4211c2,'jEnd':_0x302712};function _0x3b5a75(_0x4246a3,_0x49601d,_0x35f84e){let _0x3a136b=-0x1,_0x414218=Number['POSITIVE_INFINITY'],_0x4f3f59=!0x0;for(let _0x288f7e=_0x49601d;_0x288f7e<_0x35f84e;_0x288f7e++)if(_0x1947cc[_0x328b('0x68')](_0x4246a3[_0x288f7e][_0x328b('0x108')])||(_0x4f3f59=!0x1),_0x4246a3[_0x288f7e][_0x328b('0x108')][_0x328b('0x47')]<_0x49601d&&(_0x3a136b=_0x288f7e),_0x4246a3[_0x288f7e][_0x328b('0x108')]['endIndex']>=_0x35f84e){_0x414218=_0x288f7e;break;}_0x4f3f59&&(_0x3a136b=_0x35f84e-0x1);for(let _0x367ac9=_0x49601d;_0x367ac9<_0x35f84e;_0x367ac9++)_0x4246a3[_0x367ac9][_0x328b('0xdc')]=_0x367ac9<=_0x3a136b?-0x1:_0x367ac9<_0x414218?0x0:0x1,_0x4246a3[_0x367ac9][_0x328b('0xb8')]=_0x367ac9;let _0x336cdc=0x0;for(let _0x54a5a9=_0x49601d;_0x54a5a9<=_0x3a136b;_0x54a5a9++)0x0==_0x4246a3[_0x54a5a9][_0x328b('0xd9')]?_0x4246a3[_0x54a5a9]['level']=_0x336cdc:(_0x336cdc++,_0x4246a3[_0x54a5a9]['level']=_0x336cdc,_0x336cdc++);for(let _0x5d4aab=_0x49601d;_0x5d4aab<_0x35f84e;_0x5d4aab++)0x0==_0x4246a3[_0x5d4aab][_0x328b('0xdc')]&&(_0x4246a3[_0x5d4aab][_0x328b('0xf2')]=_0x336cdc);_0x336cdc=0x0;for(let _0x128215=_0x35f84e-0x1;_0x128215>=_0x414218;_0x128215--)0x0==_0x4246a3[_0x128215]['distance']?_0x4246a3[_0x128215]['level']=_0x336cdc:(_0x336cdc--,_0x4246a3[_0x128215][_0x328b('0xf2')]=_0x336cdc,_0x336cdc--);}}[_0x328b('0x12')](_0x40aeeb){const _0x34a1ba=new Map(),_0x364b4a=this['editor']['model'][_0x328b('0xda')];for(let _0x5c2b98=0x1;_0x5c2b98<_0x40aeeb[_0x328b('0x75')];_0x5c2b98++){let _0x48be5b,_0x47a6f7,_0x3cff5a;const _0x33cae9=_0x40aeeb[_0x5c2b98],_0x2b2b91=_0x40aeeb[_0x5c2b98-0x1];if(_0x328b('0xff')==_0x33cae9[_0x328b('0xa6')])continue;if(_0x33cae9[_0x328b('0xa6')]!=_0x2b2b91[_0x328b('0xa6')])continue;if(!_0x364b4a[_0x328b('0xec')](_0x2b2b91[_0x328b('0x108')])||_0x364b4a[_0x328b('0x8c')](_0x2b2b91['item']))continue;if(!_0x364b4a[_0x328b('0xec')](_0x33cae9[_0x328b('0x108')])||_0x364b4a[_0x328b('0x8c')](_0x33cae9[_0x328b('0x108')]))continue;if((_0x40aeeb[_0x5c2b98]['isAdded']||_0x40aeeb[_0x5c2b98][_0x328b('0x86')])&&_0x40aeeb[_0x5c2b98-0x1][_0x328b('0xee')])_0x48be5b=_0x40aeeb[_0x5c2b98],_0x47a6f7=_0x40aeeb[_0x5c2b98-0x1],_0x3cff5a=_0x5c2b98-0x1;else{if(!_0x40aeeb[_0x5c2b98]['isRemoved']||!_0x40aeeb[_0x5c2b98-0x1][_0x328b('0x4b')]&&!_0x40aeeb[_0x5c2b98-0x1][_0x328b('0x86')])continue;_0x48be5b=_0x40aeeb[_0x5c2b98-0x1],_0x47a6f7=_0x40aeeb[_0x5c2b98],_0x3cff5a=_0x5c2b98;}const _0x4a0c10=_0x48be5b[_0x328b('0xf2')]==_0x47a6f7['level'],_0x1cdc64=Math[_0x328b('0x119')](_0x48be5b[_0x328b('0xf2')])<Math[_0x328b('0x119')](_0x47a6f7['level'])&&0x0==_0x47a6f7['distance'];(_0x4a0c10||_0x1cdc64)&&(_0x34a1ba[_0x328b('0x19')](_0x47a6f7['id'],_0x48be5b['id']),_0x40aeeb[_0x328b('0x4c')](_0x3cff5a,0x1),_0x5c2b98--,_0x48be5b[_0x328b('0x4b')]=!0x1);}for(let _0x23f712=0x0;_0x23f712<_0x40aeeb[_0x328b('0x75')];_0x23f712++)_0x34a1ba[_0x328b('0xa1')](_0x40aeeb[_0x23f712][_0x328b('0x6a')])&&(_0x40aeeb[_0x23f712]['pairId']=_0x34a1ba[_0x328b('0x2b')](_0x40aeeb[_0x23f712][_0x328b('0x6a')]));}['_removeMissingPairs'](_0x306524){const _0x320a59=new Set(_0x306524[_0x328b('0xa5')](_0xa4b34=>_0xa4b34['id']));for(let _0x3b0648=0x0;_0x3b0648<_0x306524[_0x328b('0x75')];_0x3b0648++)_0x320a59['has'](_0x306524[_0x3b0648][_0x328b('0x6a')])||0x0==_0x306524[_0x3b0648]['distance']||(_0x306524[_0x3b0648][_0x328b('0x74')]=!0x0);return _0x306524[_0x328b('0x3e')](_0x5f3776=>!_0x5f3776[_0x328b('0x74')]);}[_0x328b('0x73')](_0x5cc892){const _0x53e462=new Set();for(let _0x40b674=0x0;_0x40b674<_0x5cc892[_0x328b('0x75')];_0x40b674++){if(_0x53e462[_0x328b('0xa1')](_0x5cc892[_0x40b674]['id'])&&_0x5cc892[_0x40b674]['isRemoved']&&(_0x5cc892[_0x40b674][_0x328b('0x74')]=!0x0),_0x5cc892[_0x40b674][_0x328b('0x74')])continue;if(0x0==_0x5cc892[_0x40b674][_0x328b('0xd9')])continue;if('elementStart'!=_0x5cc892[_0x40b674][_0x328b('0xa6')])continue;if(null==_0x5cc892[_0x40b674][_0x328b('0x6a')])continue;let _0x4c224b=_0x40b674+0x1,_0x3f3eb9=0x0;for(;_0x5cc892[_0x4c224b]['id']!=_0x5cc892[_0x40b674]['pairId'];)_0x328b('0x100')==_0x5cc892[_0x4c224b]['type']?_0x3f3eb9++:'elementEnd'==_0x5cc892[_0x4c224b][_0x328b('0xa6')]&&_0x3f3eb9--,_0x4c224b++;if(0x0!=_0x3f3eb9){if(_0x5cc892[_0x40b674][_0x328b('0xee')])_0x5cc892[_0x40b674][_0x328b('0x74')]=!0x0;else for(;_0x4c224b!=_0x40b674;)_0x5cc892[_0x4c224b][_0x328b('0xee')]&&0x0!=_0x5cc892[_0x4c224b][_0x328b('0xd9')]&&(_0x5cc892[_0x4c224b][_0x328b('0x74')]=!0x0,_0x53e462['add'](_0x5cc892[_0x4c224b][_0x328b('0x6a')])),_0x4c224b--;}}return _0x5cc892['filter'](_0x5b28a5=>!_0x5b28a5['isIncorrect']);}['_removeUnsupportedChanges'](_0x37d228){const _0x1eb70f=this[_0x328b('0x67')][_0x328b('0x43')][_0x328b('0xda')];for(let _0xe43af1=0x0;_0xe43af1<_0x37d228['length'];_0xe43af1++){if(!(_0x37d228[_0xe43af1]['isAdded']||_0x37d228[_0xe43af1][_0x328b('0x86')]||_0x37d228[_0xe43af1]['isRemoved']||_0x37d228[_0xe43af1]['isRemoveSuggestion']))continue;if(0x0==_0x37d228[_0xe43af1][_0x328b('0xd9')])continue;const _0x2997e6=_0x37d228[_0xe43af1]['item'];_0x1eb70f[_0x328b('0xec')](_0x2997e6)||_0x1eb70f[_0x328b('0x8c')](_0x2997e6)||(_0x37d228[_0xe43af1]['isAdded']&&delete _0x37d228[_0xe43af1][_0x328b('0x4b')],_0x37d228[_0xe43af1][_0x328b('0x86')]&&delete _0x37d228[_0xe43af1]['isAddSuggestion'],_0x37d228[_0xe43af1][_0x328b('0x1e')]&&delete _0x37d228[_0xe43af1]['isRemoveSuggestion'],_0x37d228[_0xe43af1][_0x328b('0xee')]&&(_0x37d228[_0xe43af1]['isIncorrect']=!0x0));}return _0x37d228[_0x328b('0x3e')](_0x4a2efd=>!_0x4a2efd[_0x328b('0x74')]);}[_0x328b('0x78')](_0x2694f6,_0x2c42d4,_0x5189f1){const _0x2a08b4=new _0x42e056(),_0x29447c=[],_0x1a5946=new Map(),_0x33c11e=this[_0x328b('0x67')][_0x328b('0x43')],_0xebabb4=_0x33c11e['schema'],_0x4ad918=[_0x2a08b4],_0x51f59f={},_0x51dad4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x116aa6=null;const _0x1ddebd=[0x0];for(let _0x4d946d=0x0;_0x4d946d<_0x2694f6[_0x328b('0x75')];_0x4d946d++){let _0x1528f3,_0x221289;if(_0x328b('0x100')===_0x2694f6[_0x4d946d][_0x328b('0xa6')]){_0x1528f3=_0x33c11e[_0x328b('0xad')](_0x2a08b4,_0x1ddebd);const _0x27e9af=new _0x2b2641(_0x2694f6[_0x4d946d][_0x328b('0x108')][_0x328b('0x5b')],_0x2694f6[_0x4d946d]['item'][_0x328b('0xce')]());_0x4ad918[0x0][_0x328b('0x66')](_0x27e9af),_0x1ddebd[_0x328b('0xab')](0x0),_0x4ad918[_0x328b('0x9b')](_0x27e9af),_0x221289=_0x33c11e[_0x328b('0xad')](_0x2a08b4,_0x1ddebd),_0x116aa6=null;}else{if('elementEnd'===_0x2694f6[_0x4d946d][_0x328b('0xa6')])_0x4ad918['shift'](),_0x1528f3=_0x33c11e[_0x328b('0xad')](_0x2a08b4,_0x1ddebd),_0x1ddebd['pop'](),_0x1ddebd[_0x1ddebd[_0x328b('0x75')]-0x1]++,_0x221289=_0x33c11e['createPositionFromPath'](_0x2a08b4,_0x1ddebd),_0x116aa6=null;else{if(_0x1528f3=_0x33c11e[_0x328b('0xad')](_0x2a08b4,_0x1ddebd),_0x116aa6&&_0x1d2fb9(_0x116aa6,_0x2694f6[_0x4d946d][_0x328b('0x108')]))_0x116aa6[_0x328b('0x28')]+=_0x2694f6[_0x4d946d]['item'][_0x328b('0x88')];else{const _0xef8837=new _0x40003c(_0x2694f6[_0x4d946d]['item'][_0x328b('0x88')],_0x2694f6[_0x4d946d][_0x328b('0x108')][_0x328b('0xce')]());_0x4ad918[0x0][_0x328b('0x66')](_0xef8837),_0x116aa6=_0xef8837;}_0x1ddebd[_0x1ddebd[_0x328b('0x75')]-0x1]+=_0x2694f6[_0x4d946d][_0x328b('0x108')]['offsetSize'],_0x221289=_0x33c11e['createPositionFromPath'](_0x2a08b4,_0x1ddebd);}}for(const _0x167172 of _0x2694f6[_0x4d946d][_0x328b('0xa4')])_0x1a5946[_0x328b('0x19')](_0x167172,{'start':_0x1528f3,'end':null});_0x5a820a(_0x328b('0x1e'),_0x4d946d,_0x1528f3,_0x221289),_0x5a820a(_0x328b('0x86'),_0x4d946d,_0x1528f3,_0x221289),_0x5a820a(_0x328b('0xee'),_0x4d946d,_0x1528f3,_0x221289),_0x5a820a(_0x328b('0x4b'),_0x4d946d,_0x1528f3,_0x221289);for(const _0x15690e of _0x2694f6[_0x4d946d]['markersEnd']){_0x1a5946[_0x328b('0x2b')](_0x15690e)[_0x328b('0x7f')]=_0x221289;}}for(const [_0x13fa6d,_0x41ef0e]of _0x1a5946){const _0x53a253=this[_0x328b('0x67')][_0x328b('0x43')][_0x328b('0xd6')](_0x41ef0e[_0x328b('0x42')],_0x41ef0e['end']);_0x2a08b4[_0x328b('0x7c')]['set'](_0x13fa6d,_0x53a253);}return _0x29447c[_0x328b('0xbf')]((_0x239a5a,_0x3dd50)=>{const _0x3a729e=_0x2a08b4[_0x328b('0x7c')][_0x328b('0x2b')](_0x328b('0xb0')+_0x239a5a['id']),_0x417143=_0x2a08b4[_0x328b('0x7c')][_0x328b('0x2b')]('revision:'+_0x3dd50['id']);return _0x3a729e[_0x328b('0x42')][_0x328b('0xe')](_0x417143[_0x328b('0x42')])?-0x1:_0x3a729e[_0x328b('0x42')][_0x328b('0x1b')](_0x417143[_0x328b('0x42')])?0x1:_0x3a729e[_0x328b('0x7f')][_0x328b('0xe')](_0x417143[_0x328b('0x7f')])?-0x1:_0x3a729e[_0x328b('0x7f')][_0x328b('0x1b')](_0x417143[_0x328b('0x7f')])?0x1:_0x328b('0x77')===_0x239a5a[_0x328b('0xa6')]?-0x1:0x1;}),{'root':_0x2a08b4,'changes':_0x29447c};function _0x5a820a(_0x313e08,_0x2b2aa0,_0x10dd02,_0x2ec1d4){const _0x233242=!!_0x2694f6[_0x2b2aa0][_0x313e08],_0xd109ce=_0x233242?_0x2694f6[_0x2b2aa0][_0x313e08][_0x328b('0x11a')]:null,_0x6abcd4=_0x2b2aa0===_0x2694f6[_0x328b('0x75')]-0x1,_0x784f81=_0x51dad4[_0x313e08][0x0],_0x26ddfe=_0xebabb4[_0x328b('0x5d')](_0x2694f6[_0x2b2aa0]['item']);!_0x51f59f[_0x313e08]&&_0x233242?_0x51f59f[_0x313e08]={'start':_0x10dd02,'tapeItem':_0x2694f6[_0x2b2aa0],'userId':_0xd109ce,'type':_0x313e08}:_0x51f59f[_0x313e08]&&!_0x233242?(_0x51f59f[_0x313e08][_0x328b('0x7f')]=_0x10dd02,_0x2d8945(_0x51f59f[_0x313e08]),_0x51f59f[_0x313e08]=null):_0x51f59f[_0x313e08]&&_0x233242&&_0x51f59f[_0x313e08][_0x328b('0x11a')]!==_0xd109ce&&(_0x51f59f[_0x313e08]['end']=_0x10dd02,_0x784f81&&_0x784f81[_0x328b('0x11a')]===_0x51f59f[_0x313e08][_0x328b('0x11a')]||_0x2d8945(_0x51f59f[_0x313e08]),_0x51f59f[_0x313e08]={'start':_0x10dd02,'tapeItem':_0x2694f6[_0x2b2aa0],'userId':_0xd109ce,'type':_0x313e08}),_0x51f59f[_0x313e08]&&_0x26ddfe&&('elementStart'!==_0x2694f6[_0x2b2aa0][_0x328b('0xa6')]||_0x784f81&&_0x784f81[_0x328b('0x11a')]===_0xd109ce||_0x51dad4[_0x313e08][_0x328b('0x9b')]({'userId':_0xd109ce,'object':_0x2694f6[_0x2b2aa0][_0x328b('0x108')],'change':_0x51f59f[_0x313e08]}),'elementEnd'===_0x2694f6[_0x2b2aa0][_0x328b('0xa6')]&&_0x784f81&&_0x784f81['object']===_0x2694f6[_0x2b2aa0][_0x328b('0x108')]&&(_0x51dad4[_0x313e08][_0x328b('0x14')](),_0x51f59f[_0x313e08]=_0x784f81['change'])),_0x51f59f[_0x313e08]&&_0x6abcd4&&(_0x51f59f[_0x313e08][_0x328b('0x7f')]=_0x2ec1d4,_0x2d8945(_0x51f59f[_0x313e08]),_0x51f59f[_0x313e08]=null);}function _0x2d8945({start:_0x3b18cd,end:_0x351caf,tapeItem:_0x342273,userId:_0x4fdb90,type:_0x191f6b}){const _0x4364ae=_0x342273[_0x328b('0x108')],_0x5d3d80=_0x33c11e[_0x328b('0xda')][_0x328b('0xec')](_0x4364ae)&&!_0x33c11e['schema'][_0x328b('0x8c')](_0x4364ae),_0x4fabb7=_0x3b18cd[_0x328b('0x6d')]==_0x351caf[_0x328b('0x2c')]&&_0x351caf['isAtStart'];if(_0x5d3d80&&_0x4fabb7)return;const _0x183158=_0x33c11e[_0x328b('0xd6')](_0x3b18cd,_0x351caf),_0x542923=_0x2c42d4['get'](_0x4fdb90),_0x37850d=new _0x17a30b({'author':_0x542923,'type':_0x328b('0x4b')==_0x191f6b||_0x328b('0x86')==_0x191f6b?_0x328b('0x77'):'remove','data':{'isSuggestion':_0x328b('0x86')==_0x191f6b||_0x328b('0x1e')==_0x191f6b},'createdAt':new Date(),'rootName':_0x5189f1});_0x29447c[_0x328b('0xab')](_0x37850d),_0x2a08b4['markers'][_0x328b('0x19')](_0x328b('0xb0')+_0x37850d['id'],_0x183158);}function _0x1d2fb9(_0x11a17f,_0x3f6841){const _0x5b679f=_0x11a17f[_0x328b('0xce')](),_0x65f170=_0x3f6841[_0x328b('0xce')]();for(const _0x9700c3 of _0x5b679f){if(_0x9700c3[0x1]!==_0x3f6841['getAttribute'](_0x9700c3[0x0]))return!0x1;_0x65f170[_0x328b('0xc3')]();}return _0x65f170[_0x328b('0xc3')]()['done'];}}[_0x328b('0x36')](){this[_0x328b('0x67')][_0x328b('0x1a')][_0x328b('0x125')](_0x328b('0x93'))['dataToMarker']({'view':_0x328b('0x31')}),this['editor']['conversion'][_0x328b('0x125')]('editingDowncast')[_0x328b('0xd8')]({'model':_0x328b('0x31'),'view':_0x4a2f02=>{const _0x3aebcc=_0x4a2f02[_0x328b('0x10d')]['split'](':')[0x1],_0x1d8ca6=this['_getChangeFromId'](_0x3aebcc);if(!_0x1d8ca6)return null;const _0x32442d=_0x328b('0x77')==_0x1d8ca6[_0x328b('0xa6')]?'insertion':_0x328b('0xe3'),_0x521558=[_0x328b('0x109'),_0x328b('0x45')+_0x32442d];return _0x1d8ca6[_0x328b('0x88')]['isSuggestion']&&_0x521558[_0x328b('0xab')]('ck-suggestion-marker-'+_0x32442d+_0x328b('0x9c')),this['activeChange']==_0x1d8ca6&&_0x521558[_0x328b('0xab')](_0x328b('0xcc')),{'classes':_0x521558,'attributes':{'data-change-id':_0x3aebcc}};}}),this[_0x328b('0x67')]['conversion'][_0x328b('0x125')](_0x328b('0x93'))['add'](_0x4ae8e7=>{_0x4ae8e7['on'](_0x328b('0x117'),(_0x40e78c,_0x42b037,_0x3410d1)=>{const _0x141c11=_0x42b037[_0x328b('0x124')]['getChild'](0x0);if(!_0x141c11||!_0x141c11['is'](_0x328b('0x113'),_0x328b('0xa8')))return;if(!_0x3410d1[_0x328b('0xa')][_0x328b('0xb')](_0x141c11,{'attributes':[_0x328b('0x9f'),'vid_end']}))return;const _0x398a0f=_0x42b037[_0x328b('0x110')][_0x328b('0x42')][_0x328b('0x6d')];_0x3410d1[_0x328b('0x13')][_0x328b('0xc5')](_0x328b('0x9f'),_0x141c11[_0x328b('0x60')](_0x328b('0x9f')),_0x398a0f),_0x3410d1[_0x328b('0x13')][_0x328b('0xc5')](_0x328b('0x6c'),_0x141c11[_0x328b('0x60')](_0x328b('0x6c')),_0x398a0f);},{'priority':'low'});}),this[_0x328b('0x67')][_0x328b('0x1a')][_0x328b('0x125')](_0x328b('0x93'))['add'](_0x281331=>{_0x281331['on'](_0x328b('0x113'),(_0x4bef32,_0x2c5930,_0x1597fc)=>{if(!_0x1597fc['consumable'][_0x328b('0xb')](_0x2c5930[_0x328b('0x124')],{'attributes':['vid_start',_0x328b('0x6c')]}))return;if(_0x2c5930[_0x328b('0x110')]['isCollapsed'])return;const _0x294b0d=_0x2c5930[_0x328b('0x110')][_0x328b('0x42')][_0x328b('0x6d')];_0x294b0d[_0x328b('0x5')](_0x328b('0x9f'))||_0x294b0d[_0x328b('0x5')](_0x328b('0x10a'))||(_0x1597fc[_0x328b('0x13')][_0x328b('0xc5')](_0x328b('0x9f'),_0x2c5930[_0x328b('0x124')]['getAttribute'](_0x328b('0x9f')),_0x294b0d),_0x1597fc['writer'][_0x328b('0xc5')](_0x328b('0x6c'),_0x2c5930[_0x328b('0x124')][_0x328b('0x60')]('vid_end'),_0x294b0d));},{'priority':_0x328b('0xb2')});}),this[_0x328b('0x67')][_0x328b('0x1a')][_0x328b('0x125')]('upcast')['elementToAttribute']({'view':{'name':_0x328b('0x1f'),'attributes':{'vid':!0x0}},'model':{'key':_0x328b('0x10a'),'value':_0x5c1622=>_0x5c1622[_0x328b('0x60')](_0x328b('0x10a'))}}),this['editor'][_0x328b('0x43')]['schema']['on'](_0x328b('0x83'),(_0x384a9d,[,_0x51dc99])=>{['vid_start',_0x328b('0x6c'),_0x328b('0x10a')]['includes'](_0x51dc99)&&(_0x384a9d[_0x328b('0x33')]=!0x0,_0x384a9d[_0x328b('0x0')]());},{'priority':'highest'}),this[_0x328b('0x67')]['conversion'][_0x328b('0x125')](_0x328b('0xe7'))[_0x328b('0x77')](_0x58257b=>{_0x58257b['on'](_0x328b('0xf1'),(_0x2ed1e2,_0x503632,_0x54be8e)=>{if('\x20'!=_0x503632['item'][_0x328b('0x88')]||_0x503632[_0x328b('0x108')]['parent'][_0x328b('0x104')]>0x1)return;if(!_0x54be8e['consumable'][_0x328b('0xb')](_0x503632['item'],_0x2ed1e2[_0x328b('0x5b')]))return;const _0x522ed5=_0x54be8e[_0x328b('0x13')],_0x5cc664=_0x54be8e[_0x328b('0x9d')][_0x328b('0x103')](_0x503632[_0x328b('0x70')]);_0x522ed5['wrap'](_0x5cc664,_0x522ed5[_0x328b('0x5e')](_0x328b('0x1f')));});}),this['editor'][_0x328b('0x1a')][_0x328b('0x125')]('dataDowncast')[_0x328b('0xbb')]({'model':_0x328b('0x31')}),this[_0x328b('0x67')]['editing'][_0x328b('0x11f')]['on'](_0x328b('0xc'),function(_0x5c9a09){const _0x2a6f1a=_0x5c9a09[_0x328b('0x50')]['get']('RevisionViewer');return(_0x2ef0eb,_0x178893,_0x56bb21)=>{const _0x2b9421=_0x178893['markerName'][_0x328b('0x8b')](':')[0x1],_0x4e4e57=_0x2a6f1a[_0x328b('0xfe')](_0x2b9421);if(!_0x4e4e57)return null;const _0x2ceec2='add'==_0x4e4e57['type']?_0x328b('0x8b'):_0x328b('0xac');if(!_0x56bb21['consumable']['test'](_0x178893[_0x328b('0xf3')],_0x2ef0eb[_0x328b('0x5b')]))return;const _0x1b2802=_0x178893[_0x328b('0xf3')][_0x328b('0x10')](),_0x13323c=_0x178893[_0x328b('0xf3')][_0x328b('0x42')],_0x46a0d9=_0x5c9a09['model'][_0x328b('0xda')];let _0x5493c4=null,_0xdd1fcb=null,_0x2fa1f3=!0x1,_0x58ba54=!0x1;for(const _0x151be4 of _0x1b2802){const _0x29d411=_0x151be4[_0x328b('0x108')];_0x2fa1f3=_0x2fa1f3||_0x46a0d9[_0x328b('0xcd')](_0x29d411);const _0x15ccfc=_0x56bb21[_0x328b('0x9d')][_0x328b('0x26')](_0x29d411);if(_0x15ccfc&&_0x15ccfc['getCustomProperty'](_0x328b('0x37')))return;_0x328b('0x3')==_0x151be4['type']&&(_0x46a0d9['isBlock'](_0x29d411)&&!_0x46a0d9[_0x328b('0x8c')](_0x29d411)&&(_0x29d411[_0x328b('0x5f')]||_0x13323c[_0x328b('0x114')]?_0x5493c4&&_0x5493c4[_0x328b('0x2c')]==_0x29d411||(_0x5493c4=_0x29d411,_0x201410(_0x151be4[_0x328b('0x18')]),_0x58ba54=!0x0):_0xdd1fcb=_0xdd1fcb||_0x151be4[_0x328b('0x18')]));}function _0x201410(_0x4312a5){const _0x5624eb=_0x56bb21[_0x328b('0x13')][_0x328b('0x7e')](_0x328b('0x1f'),{'class':_0x328b('0x45')+_0x2ceec2}),_0x45c8f8=_0x56bb21[_0x328b('0x9d')]['toViewPosition'](_0x4312a5);_0x4e4e57[_0x328b('0x88')]['isSuggestion']&&_0x56bb21['writer'][_0x328b('0xaf')](_0x328b('0x45')+_0x2ceec2+_0x328b('0x9c'),_0x5624eb),_0x2a6f1a[_0x328b('0xf9')]==_0x4e4e57&&_0x56bb21[_0x328b('0x13')]['addClass'](_0x328b('0xcc'),_0x5624eb),_0x56bb21['writer'][_0x328b('0x57')](_0x45c8f8,_0x5624eb),_0x56bb21['mapper'][_0x328b('0x11c')](_0x5624eb,_0x178893[_0x328b('0x10d')]);}_0x2fa1f3||_0x58ba54||!_0xdd1fcb||_0x201410(_0xdd1fcb);};}(this[_0x328b('0x67')]),{'priority':_0x328b('0x102')}),this[_0x328b('0x67')][_0x328b('0x10c')]['downcastDispatcher']['on'](_0x328b('0xef'),(_0x44a9c8,_0x12c583,_0x4ed81b)=>{const _0x19eef5=_0x4ed81b[_0x328b('0x9d')][_0x328b('0x5c')](_0x12c583[_0x328b('0x10d')]);if(_0x19eef5)for(const _0x892dc2 of _0x19eef5)(_0x892dc2['hasClass'](_0x328b('0xd3'))||_0x892dc2['hasClass'](_0x328b('0xfc')))&&(_0x4ed81b[_0x328b('0x9d')][_0x328b('0xbc')](_0x892dc2,_0x12c583[_0x328b('0x10d')]),_0x4ed81b[_0x328b('0x13')][_0x328b('0xe0')](_0x892dc2));},{'priority':'high'}),this['editor'][_0x328b('0x10c')][_0x328b('0x11f')]['on'](_0x328b('0xc'),(_0x4b0648,_0xe211e9,_0xcf3c71)=>{const _0x5d81b9=_0xe211e9['markerName'][_0x328b('0x8b')](':')[0x1],_0x16fcb4=this['_getChangeFromId'](_0x5d81b9);if(!_0x16fcb4)return null;const _0x2ccea0=_0x328b('0x77')==_0x16fcb4[_0x328b('0xa6')]?_0x328b('0x8b'):_0x328b('0xac');if(_0xcf3c71['consumable'][_0x328b('0xeb')](_0xe211e9[_0x328b('0xf3')],_0x4b0648[_0x328b('0x5b')]))for(const _0x31eaa1 of _0xe211e9['markerRange']['getItems']()){if(!_0x31eaa1['is'](_0x328b('0x113'),'softBreak'))continue;const _0x3a28ad=_0xcf3c71['writer'][_0x328b('0x7e')](_0x328b('0x1f'),{'class':_0x328b('0x45')+_0x2ccea0}),_0x336bc4=_0xcf3c71['mapper']['toViewPosition'](this[_0x328b('0x67')][_0x328b('0x43')][_0x328b('0x64')](_0x31eaa1));_0x16fcb4[_0x328b('0x88')][_0x328b('0x22')]&&_0xcf3c71[_0x328b('0x13')]['addClass'](_0x328b('0x45')+_0x2ccea0+_0x328b('0x9c'),_0x3a28ad),this['activeChange']==_0x16fcb4&&_0xcf3c71[_0x328b('0x13')]['addClass']('ck-suggestion-marker--active',_0x3a28ad),_0xcf3c71[_0x328b('0x13')]['insert'](_0x336bc4,_0x3a28ad),_0xcf3c71[_0x328b('0x9d')][_0x328b('0x11c')](_0x3a28ad,_0xe211e9[_0x328b('0x10d')]);}},{'priority':'high'}),this[_0x328b('0x67')]['model'][_0x328b('0x90')]['on'](_0x328b('0x8f'),()=>{this['editor'][_0x328b('0x10c')][_0x328b('0x85')][_0x328b('0x8f')](_0xbacca9=>{for(const _0x1aad85 of this[_0x328b('0x67')][_0x328b('0x43')][_0x328b('0x90')]['getRootNames']()){const _0xb74af5=this[_0x328b('0x67')][_0x328b('0x43')][_0x328b('0x90')][_0x328b('0x10f')](_0x1aad85),_0x21e5fd=this['editor'][_0x328b('0x10c')][_0x328b('0x85')][_0x328b('0x90')][_0x328b('0x10f')](_0x1aad85);if(_0x21e5fd){const _0x13d5dd=_0xb74af5[_0x328b('0x60')](_0x328b('0x115'));if(_0xbacca9[_0x328b('0xc1')](_0x328b('0x51'),_0x21e5fd),_0xbacca9['removeClass'](_0x328b('0xea'),_0x21e5fd),_0xbacca9['removeClass'](_0x328b('0x27'),_0x21e5fd),_0xbacca9[_0x328b('0x8e')](_0x328b('0xe4'),_0x21e5fd),_0x13d5dd){const _0x491b55=this[_0x328b('0xfe')](_0x13d5dd);if(!_0x491b55)return null;_0xbacca9['setAttribute'](_0x328b('0x51'),_0x13d5dd,_0x21e5fd),_0xbacca9[_0x328b('0xaf')](_0x328b('0xb3')+_0x491b55[_0x328b('0xa6')],_0x21e5fd),this['activeChange']==_0x491b55&&_0xbacca9[_0x328b('0xaf')](_0x328b('0xe4'),_0x21e5fd);}}}});}),this['editor'][_0x328b('0x1a')][_0x328b('0x125')](_0x328b('0x93'))[_0x328b('0xe9')]({'view':'comment','model':_0x42d945=>_0x328b('0x71')+_0x42d945,'converterPriority':_0x328b('0xe6')}),this[_0x328b('0x67')][_0x328b('0x1a')][_0x328b('0x125')](_0x328b('0x93'))[_0x328b('0xe9')]({'view':_0x328b('0x89'),'model':_0x389b63=>_0x328b('0xdd')+_0x389b63,'converterPriority':_0x328b('0xe6')}),this[_0x328b('0x67')][_0x328b('0x1a')][_0x328b('0x125')]('dataDowncast')[_0x328b('0xbb')]({'model':_0x328b('0xe2'),'view':_0xfde952=>({'name':_0x328b('0x8')+_0xfde952,'group':_0x328b('0xe2')}),'converterPriority':_0x328b('0xe6')}),this['editor'][_0x328b('0x1a')][_0x328b('0x125')](_0x328b('0x21'))[_0x328b('0xd8')]({'model':'revision-suggestion','view':_0x35a1c5=>{const _0x10caf5=_0x35a1c5['markerName'][_0x328b('0x8b')](':')[0x1];return _0x328b('0xf8')!=_0x10caf5&&'deletion'!=_0x10caf5?null:{'classes':[_0x328b('0xb9'),_0x328b('0x65')+_0x10caf5]};}}),this[_0x328b('0x67')]['editing'][_0x328b('0x11f')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x328b('0x67')],'merge'),{'priority':_0x328b('0x102')}),this[_0x328b('0x67')][_0x328b('0x10c')]['downcastDispatcher']['on'](_0x328b('0xae'),et(this['editor'],'split'),{'priority':_0x328b('0x102')}),this[_0x328b('0x67')]['editing'][_0x328b('0x11f')]['on'](_0x328b('0xdf'),(_0x21b162,_0x4db4d9,_0x4547c4)=>{const _0x24e2ac=_0x4547c4[_0x328b('0x9d')][_0x328b('0x5c')](_0x4db4d9[_0x328b('0x10d')]);if(_0x24e2ac)for(const _0x2de144 of _0x24e2ac)_0x2de144['is'](_0x328b('0xb6'))&&(_0x4547c4['mapper'][_0x328b('0xbc')](_0x2de144,_0x4db4d9[_0x328b('0x10d')]),_0x4547c4[_0x328b('0x13')]['remove'](_0x2de144));},{'priority':_0x328b('0x102')});}[_0x328b('0xfe')](_0x25a13a){return this[_0x328b('0xd2')][_0x328b('0x2b')](_0x25a13a);}[_0x328b('0x92')](_0x2398d0){return this['_changeView']&&this[_0x328b('0x38')]['destroy'](),this['_changeView']=new _0x2c4ffc(this[_0x328b('0x67')][_0x328b('0x3a')],_0x2398d0),this[_0x328b('0x38')];}[_0x328b('0x55')](){this[_0x328b('0x67')]['model'][_0x328b('0x90')][_0x328b('0x118')]['observeMarkers'](_0x328b('0x31')),this['on'](_0x328b('0xc6'),(_0x28e9f4,_0x4118b6,_0x572303,_0xf8dab8)=>{_0xf8dab8&&this[_0x328b('0x72')][_0x328b('0xe0')](_0xf8dab8),_0x572303&&(this[_0x328b('0x72')]['add']({'view':_0x572303,'stackId':_0x328b('0x63'),'position':{'target':()=>{const _0x1b427e=this[_0x328b('0x67')][_0x328b('0x10c')],_0x56d893=this[_0x328b('0xfe')](_0x572303[_0x328b('0x3c')]);let _0x17e4fa;if(_0x56d893['data'][_0x328b('0xd0')]){const _0x19942d=_0x1b427e['view']['getDomRoot'](_0x56d893['rootName']);_0x17e4fa=Array[_0x328b('0x3d')](_0x19942d[_0x328b('0x1')]());}else{const _0x1b58d1=this[_0x328b('0x67')][_0x328b('0x43')][_0x328b('0x7c')][_0x328b('0x2b')](_0x328b('0xb0')+_0x572303['changeId']);_0x17e4fa=Array['from'](_0x1b427e[_0x328b('0x9d')][_0x328b('0x5c')](_0x1b58d1[_0x328b('0x5b')]))['map'](_0x12259f=>_0x1b427e[_0x328b('0x85')]['domConverter'][_0x328b('0x24')](_0x12259f))['map'](_0x325e0a=>Array[_0x328b('0x3d')](_0x325e0a[_0x328b('0x1')]()))[_0x328b('0x15')]();}if(!this[_0x328b('0x1d')])return _0x17e4fa[0x0];return _0x17e4fa[_0x328b('0xfa')](_0x360392=>_0x360392[_0x328b('0x105')]-0x3<=this['_activeViewTarget']['y']&&_0x360392[_0x328b('0xf7')]+0x3>=this[_0x328b('0x1d')]['y']&&_0x360392[_0x328b('0x17')]-0x3<=this[_0x328b('0x1d')]['x']&&_0x360392[_0x328b('0x11d')]+0x3>=this[_0x328b('0x1d')]['x'])||_0x17e4fa[0x0];}}}),this[_0x328b('0x72')][_0x328b('0xb5')](_0x328b('0x63')));}),this['on'](_0x328b('0xb1'),(_0x309d65,_0x32b8be,_0x282f8c,_0x490f4d)=>{this[_0x328b('0x80')]=_0x282f8c?this[_0x328b('0x92')](_0x282f8c):null,this[_0x328b('0x67')][_0x328b('0x43')]['change'](()=>{const _0x2ecea5=this[_0x328b('0x67')][_0x328b('0x10c')];_0x490f4d&&(_0x490f4d[_0x328b('0x88')][_0x328b('0xd0')]?_0x2ecea5[_0x328b('0x85')][_0x328b('0x8f')](_0x1dcccd=>{_0x1dcccd['removeClass'](_0x328b('0xe4'),_0x2ecea5[_0x328b('0x85')][_0x328b('0x90')][_0x328b('0x10f')](_0x490f4d[_0x328b('0x98')]));}):_0x2ecea5[_0x328b('0x79')]('revision:'+_0x490f4d['id'])),_0x282f8c&&(_0x282f8c['data'][_0x328b('0xd0')]?_0x2ecea5['view']['change'](_0x3102c4=>{_0x3102c4[_0x328b('0xaf')]('ck-revision-history-root--active',_0x2ecea5[_0x328b('0x85')][_0x328b('0x90')][_0x328b('0x10f')](_0x282f8c[_0x328b('0x98')]));}):_0x2ecea5['reconvertMarker'](_0x328b('0xb0')+_0x282f8c['id']));});}),this[_0x328b('0x7a')](this[_0x328b('0x67')][_0x328b('0x10c')][_0x328b('0x85')][_0x328b('0x90')],_0x328b('0xf5'),(_0xc0dbd7,_0x41c05e)=>{if(this['activeChange'])return;const _0x36c5f0=this[_0x328b('0x9a')](_0x41c05e[_0x328b('0x8a')]),_0x50d566=this['_changeIdToChange']['get'](_0x36c5f0);_0x50d566?(this[_0x328b('0x1d')]={'x':_0x41c05e['domEvent']['x'],'y':_0x41c05e['domEvent']['y']},this[_0x328b('0x80')]=this[_0x328b('0x92')](_0x50d566)):(this[_0x328b('0x1d')]=null,this[_0x328b('0x80')]=null);}),this[_0x328b('0x7a')](this[_0x328b('0x67')][_0x328b('0x10c')][_0x328b('0x85')]['document'],_0x328b('0x8d'),(_0x3b93d4,_0x5eb017)=>{const _0x39fdf2=this[_0x328b('0x9a')](_0x5eb017[_0x328b('0x8a')]),_0x3ee98e=this[_0x328b('0xd2')][_0x328b('0x2b')](_0x39fdf2);_0x3ee98e?(this['_activeViewTarget']={'x':_0x5eb017[_0x328b('0x7d')]['x'],'y':_0x5eb017['domEvent']['y']},_0x3ee98e===this[_0x328b('0xf9')]?this['_balloon'][_0x328b('0x84')]():this[_0x328b('0xf9')]=_0x3ee98e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f81c4){do{const _0x73e2b6=_0x2f81c4[_0x328b('0x60')](_0x328b('0x51'));if(_0x73e2b6)return _0x73e2b6;_0x2f81c4=_0x2f81c4['parent'];}while(_0x2f81c4);return null;}[_0x328b('0xd4')](){this[_0x328b('0x67')]['model'][_0x328b('0x8f')](_0x4d25df=>{for(const _0x1bf0bb of this[_0x328b('0x67')][_0x328b('0x43')][_0x328b('0x7c')])_0x4d25df[_0x328b('0xcf')](_0x1bf0bb);});}}function et(_0x1761b3,_0x7e61ca){return(_0xc2e6bd,_0x57c559,_0xc4392e)=>{if(!_0xc4392e[_0x328b('0xa')][_0x328b('0xeb')](_0x57c559[_0x328b('0xf3')],_0xc2e6bd[_0x328b('0x5b')]))return;const _0x212b82=_0x57c559[_0x328b('0xf3')]['getWalker'](),_0x42e6b8=_0x57c559[_0x328b('0xf3')][_0x328b('0x42')],_0x2b2528=_0x1761b3[_0x328b('0x43')][_0x328b('0xda')];let _0x2a1681=null,_0x23fe9d=null,_0x632e86=!0x1,_0x2f9013=!0x1;for(const _0x93cf14 of _0x212b82){const _0x324e4a=_0x93cf14[_0x328b('0x108')];_0x632e86=_0x632e86||_0x2b2528[_0x328b('0xcd')](_0x324e4a);const _0x848265=_0xc4392e['mapper'][_0x328b('0x26')](_0x324e4a);if(_0x848265&&_0x848265[_0x328b('0xcb')](_0x328b('0x37')))return;_0x328b('0x3')==_0x93cf14['type']&&(_0x2b2528[_0x328b('0xec')](_0x324e4a)&&!_0x2b2528[_0x328b('0x8c')](_0x324e4a)&&(_0x324e4a['nextSibling']||_0x42e6b8[_0x328b('0x114')]?_0x2a1681&&_0x2a1681[_0x328b('0x2c')]==_0x324e4a||(_0x2a1681=_0x324e4a,_0x544d3a(_0x93cf14[_0x328b('0x18')]),_0x2f9013=!0x0):_0x23fe9d=_0x23fe9d||_0x93cf14[_0x328b('0x18')]));}function _0x544d3a(_0x2d8878){const _0x20673f=_0xc4392e['mapper'][_0x328b('0xe1')](_0x2d8878),_0x3d1634=_0xc4392e['writer']['createUIElement'](_0x328b('0x1f'),{'class':'ck-suggestion-preview-marker-'+_0x7e61ca});_0xc4392e[_0x328b('0x13')]['insert'](_0x20673f,_0x3d1634),_0xc4392e[_0x328b('0x9d')][_0x328b('0x11c')](_0x3d1634,_0x57c559[_0x328b('0x10d')]);}_0x632e86||_0x2f9013||!_0x23fe9d||_0x544d3a(_0x23fe9d);};}export class RestoreRevisionCommand extends _0x58acda{constructor(_0xb4cb7){super(_0xb4cb7);const _0x116a14=_0xb4cb7[_0x328b('0x50')][_0x328b('0x2b')](d);this[_0x328b('0x4a')]=!0x1,this[_0x328b('0x7a')](_0x116a14,_0x328b('0xd5'),()=>this[_0x328b('0x91')]()),this['listenTo'](_0x116a14,_0x328b('0x116'),()=>this[_0x328b('0x91')]());}[_0x328b('0x2e')](){const _0x57c783=this['editor'],_0x100a03=_0x57c783[_0x328b('0x50')]['get'](d),_0x5339c2=_0x100a03[_0x328b('0x2f')]?_0x100a03[_0x328b('0xf6')][_0x328b('0xaa')]:null;_0x57c783[_0x328b('0x9e')][_0x328b('0x2b')]('revisionHistory')[_0x328b('0xa9')](_0x5339c2);}[_0x328b('0x91')](){const {isReady:_0x20f8bf,isEnabled:_0x5ac113}=this[_0x328b('0x67')][_0x328b('0x50')]['get'](d);this[_0x328b('0xc8')]=_0x20f8bf&&_0x5ac113;}}export class ShowChangeCommand extends _0x58acda{constructor(_0x19fc17,{direction:_0x43ada2}){super(_0x19fc17);const _0x59e975=_0x19fc17['plugins'][_0x328b('0x2b')](d);this[_0x328b('0x4a')]=!0x1,this[_0x328b('0x3b')]=_0x328b('0x59')===_0x43ada2?0x1:-0x1,this[_0x328b('0x7a')](_0x59e975,'change:isReady',()=>this[_0x328b('0x91')]()),this[_0x328b('0x7a')](_0x59e975,_0x328b('0x116'),()=>this[_0x328b('0x91')]()),this[_0x328b('0x7a')](_0x59e975,_0x328b('0xb1'),()=>this[_0x328b('0x91')]());}[_0x328b('0x2e')](){const _0x5026c4=this[_0x328b('0x67')],_0x2770f2=_0x5026c4[_0x328b('0x50')][_0x328b('0x2b')](d),{isNavigationMode:_0x4becc7,currentChangeNumber:_0x532ba8}=_0x2770f2;let _0x3178d8;if(_0x2770f2[_0x328b('0xf9')]=_0x4becc7?_0x2770f2[_0x328b('0xf6')]['changes']['get'](_0x532ba8+this[_0x328b('0x3b')]):_0x2770f2['diff'][_0x328b('0xa3')][_0x328b('0xf')],_0x2770f2[_0x328b('0xf9')][_0x328b('0x88')][_0x328b('0xd0')])_0x3178d8=_0x5026c4[_0x328b('0x10c')]['view']['getDomRoot'](_0x2770f2['activeChange'][_0x328b('0x98')]);else{const _0x19cab1=_0x5026c4[_0x328b('0x43')]['markers']['get'](_0x328b('0xb0')+_0x2770f2['activeChange']['id']);_0x3178d8=_0x49e797(_0x5026c4[_0x328b('0x10c')],_0x19cab1);}_0x347115({'target':_0x3178d8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x484389,currentChangeNumber:_0x17c091,numberOfChanges:_0x173266,isReady:_0x3468cb,isEnabled:_0x1a1443}=this['editor']['plugins'][_0x328b('0x2b')](d);this[_0x328b('0xc8')]=!!(_0x1a1443&&_0x3468cb&&_0x173266)&&(!_0x484389||(0x1===this[_0x328b('0x3b')]?_0x17c091<_0x173266-0x1:_0x17c091>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3228=['Name\x20this\x20revision','stopPropagation','bind','locale','function','Restore\x20this\x20revision','change:isActionsDropdownOpen','Show\x20more\x20items','first','isOpen','isVisible','isActionsDropdownOpen','ck-revision-history-sidebar__revision__actions','set','class','execute','isEnabled','name','bindTemplate','_action','threeVerticalDots','buttonView','model','listenTo','source'];(function(_0x3ee3e8,_0x322815){const _0x1ee6ab=function(_0x2efd6d){while(--_0x2efd6d){_0x3ee3e8['push'](_0x3ee3e8['shift']());}};_0x1ee6ab(++_0x322815);}(_0x3228,0x16c));const _0x1ee6=function(_0x3ee3e8,_0x322815){_0x3ee3e8=_0x3ee3e8-0x0;let _0x1ee6ab=_0x3228[_0x3ee3e8];return _0x1ee6ab;};import{Collection as _0x37df45}from'ckeditor5/src/utils';import{icons as _0x3d8cb0}from'ckeditor5/src/core';import{Model as _0x1c9a02,addListToDropdown as _0x375e21,createDropdown as _0x1bba16}from'ckeditor5/src/ui';import{getTranslation as _0x4b3a7b}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x155502,_0x26704e){const _0x31767a=_0x155502[_0x1ee6('0x4')],_0x50da88=_0x155502[_0x1ee6('0xe')],_0x19bca7=_0x1bba16(_0x50da88);_0x19bca7['panelPosition']='sw';const _0x2f7582=function(_0x4b7148,_0x83cee0){const _0x5c2178=function(_0x3c2290,_0x1a5073){const _0x5f3229=_0x3c2290['locale'],_0x2ddbb7={'Compare\x20against\x20selected':_0x4b3a7b(_0x5f3229,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x4b3a7b(_0x5f3229,_0x1ee6('0xb')),'Restore\x20this\x20revision':_0x4b3a7b(_0x5f3229,_0x1ee6('0x10'))};return _0x1a5073['map'](_0x5385e0=>{const _0x4220cd=_0x2ddbb7[_0x5385e0[_0x1ee6('0x3')]];return _0x4220cd&&_0x4220cd!==_0x5385e0['name']&&(_0x5385e0['name']=_0x4220cd),_0x5385e0;});}(_0x4b7148,_0x83cee0),_0xae8e3a=new _0x37df45();for(const _0x4536c9 of _0x5c2178){const _0x32ef0f={'type':'button','model':new _0x1c9a02({'label':_0x4536c9[_0x1ee6('0x3')],'class':_0x4536c9[_0x1ee6('0x0')],'withText':!0x0,'_action':_0x4536c9['action']})};_0x32ef0f[_0x1ee6('0x8')][_0x1ee6('0xd')](_0x1ee6('0x2'))['to'](_0x4b7148,'isActionsDropdownOpen',_0x6e5bf=>'function'!=typeof _0x4536c9[_0x1ee6('0x2')]||(!_0x6e5bf||_0x4536c9['isEnabled'](_0x4b7148))),_0xae8e3a['add'](_0x32ef0f);}return _0xae8e3a;}(_0x155502,_0x26704e);return _0x155502['bind'](_0x1ee6('0x16'))['to'](_0x19bca7,_0x1ee6('0x14')),_0x19bca7[_0x1ee6('0x7')][_0x1ee6('0x18')]({'label':_0x4b3a7b(_0x50da88,_0x1ee6('0x12')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3d8cb0[_0x1ee6('0x6')]}),_0x19bca7['extendTemplate']({'attributes':{'class':[_0x1ee6('0x17'),_0x31767a['if'](_0x1ee6('0x16'),'ck-on')]},'on':{'click':_0x31767a['to'](_0x3887bd=>_0x3887bd[_0x1ee6('0xc')]())}}),_0x19bca7['on'](_0x1ee6('0x1'),_0x34fcf1=>{_0x155502['isReady']&&_0x1ee6('0xf')==typeof _0x34fcf1[_0x1ee6('0xa')][_0x1ee6('0x5')]&&_0x34fcf1['source']['_action'](_0x155502);}),_0x375e21(_0x19bca7,_0x2f7582),_0x19bca7[_0x1ee6('0x9')](_0x155502,_0x1ee6('0x11'),(_0x5eb37f,_0x54625d,_0x259c67)=>{if(_0x259c67)for(const _0xacdec1 of _0x19bca7['listView']['items']){const _0x3fb8ac=_0xacdec1['children'][_0x1ee6('0x13')],_0xc49df6=_0x26704e['find'](_0xa5be7=>_0xa5be7['action']===_0x3fb8ac[_0x1ee6('0x5')])[_0x1ee6('0x15')];_0xacdec1[_0x1ee6('0x15')]=void 0x0===_0xc49df6||_0xc49df6(_0x155502);}}),_0x19bca7;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29f2=['setTemplate','set','span','name','0\x200\x2011\x2010','Revision\x20creator','Revision\x20author','push','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name'];(function(_0x384103,_0x29f265){const _0x3cc5be=function(_0x4f0e56){while(--_0x4f0e56){_0x384103['push'](_0x384103['shift']());}};_0x3cc5be(++_0x29f265);}(_0x29f2,0x150));const _0x3cc5=function(_0x384103,_0x29f265){_0x384103=_0x384103-0x0;let _0x3cc5be=_0x29f2[_0x384103];return _0x3cc5be;};import{View as _0x4bb7ae,IconView as _0x25d4e4}from'ckeditor5/src/ui';import{getTranslation as _0x96fa97}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x2823c0 from'../../../theme/icons/user.svg';export default class ti extends _0x4bb7ae{constructor(_0x3f8432,_0x13e38b,_0x30798e){super(_0x3f8432);const _0x5771c8=new _0x25d4e4();_0x5771c8[_0x3cc5('0x5')]({'content':_0x2823c0,'viewBox':_0x3cc5('0x8')});const _0x46ae18=['ck',_0x3cc5('0x2')];_0x30798e&&_0x46ae18[_0x3cc5('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x34b69f=[{'tag':_0x3cc5('0x6'),'attributes':{'class':['ck',_0x3cc5('0x3')],'title':_0x96fa97(_0x3f8432,_0x30798e?_0x3cc5('0x9'):_0x3cc5('0x0'))},'children':[_0x5771c8,_0x13e38b[_0x3cc5('0x7')]]}];this[_0x3cc5('0x4')]({'tag':'li','attributes':{'class':_0x46ae18},'children':_0x34b69f});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2515=['extendTemplate','span','ck-revision-history-sidebar__revision-name','set','Revision\x20name'];(function(_0x1b0eab,_0x251574){var _0x2045df=function(_0x2ecbc5){while(--_0x2ecbc5){_0x1b0eab['push'](_0x1b0eab['shift']());}};_0x2045df(++_0x251574);}(_0x2515,0xd5));var _0x2045=function(_0x1b0eab,_0x251574){_0x1b0eab=_0x1b0eab-0x0;var _0x2045df=_0x2515[_0x1b0eab];return _0x2045df;};import{LabeledFieldView as _0x3b39f5}from'ckeditor5/src/ui';import{getTranslation as _0x46d0c4}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x3b39f5{constructor(_0x10fc39,_0x407a88){super(_0x10fc39,_0x407a88),this[_0x2045('0x0')]({'label':_0x46d0c4(_0x10fc39,_0x2045('0x1'))}),this[_0x2045('0x2')]({'tag':_0x2045('0x3'),'attributes':{'class':[_0x2045('0x4')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29c0=['name','authors','render','ck-revision-history-sidebar__revision','creator','_createdAtFormatted','ck-revision-history-sidebar__revision-wrapper','listenTo','map','ck-disabled','placeholder','ck-revision-history-sidebar__revision__date','220','revisionActionsView','ck-reset','highlight','change','deselect','set','ck-revision-history-sidebar__revision_selected','isSelected','ck-revision-history-sidebar__revision_highlighted','revisionNameView','ck-revision-history-sidebar__revision__controls-wrapper','fire','select','bind','setName','div','createdAt','_revision','filter','srcElement','length','bindTemplate','ck-revision-history-sidebar__actions_dropdown_open','closest','uiLanguage','isHighlighted','value','isEnabled','isConfirm','isReady','extendTemplate','isActionsDropdownOpen'];(function(_0x216621,_0x29c0bb){const _0x5e4190=function(_0x15e517){while(--_0x15e517){_0x216621['push'](_0x216621['shift']());}};_0x5e4190(++_0x29c0bb);}(_0x29c0,0xf0));const _0x5e41=function(_0x216621,_0x29c0bb){_0x216621=_0x216621-0x0;let _0x5e4190=_0x29c0[_0x216621];return _0x5e4190;};import{View as _0x5edd3e,createLabeledInputText as _0xff55f5}from'ckeditor5/src/ui';import{ConfirmMixin as _0x10826e}from'ckeditor5-collaboration/src/collaboration-core';import _0x259c2e from'./revisionnameview';import _0x39b5c1 from'./revisionauthorview';import{dateToPrettyFormat as _0x54b054}from'./utils';import{createActionsDropdownView as _0x5ddbc4}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x10826e(_0x5edd3e){constructor(_0x1f08f9,_0x20ed5a,_0x1b2fad){super(_0x1f08f9);const _0x9dd9d1=this[_0x5e41('0x13')],_0x3b24ff=function(_0x5cebb2,_0x4fe837){const _0x36edf2=Array['from'](_0x4fe837[_0x5e41('0x1f')])[_0x5e41('0x10')](_0x30eb98=>_0x30eb98!=_0x4fe837[_0x5e41('0x22')]);return _0x4fe837[_0x5e41('0x22')]&&_0x36edf2['unshift'](_0x4fe837[_0x5e41('0x22')]),_0x36edf2[_0x5e41('0x26')](_0x4684b7=>new _0x39b5c1(_0x5cebb2,_0x4684b7,_0x4684b7==_0x4fe837[_0x5e41('0x22')]));}(_0x1f08f9,_0x20ed5a);this['id']=_0x20ed5a['id'],this[_0x5e41('0xf')]=_0x20ed5a,this[_0x5e41('0xb')]('name',_0x5e41('0xe'))['to'](_0x20ed5a),this['bind'](_0x5e41('0x23'))['to'](this,_0x5e41('0xe'),_0x43268d=>_0x43268d?_0x54b054(_0x1f08f9[_0x5e41('0x16')],_0x43268d):void 0x0),this[_0x5e41('0x3')](_0x5e41('0x5'),!0x1),this[_0x5e41('0x3')](_0x5e41('0x17'),!0x1),this['set']('isActionsDropdownOpen',!0x1),this[_0x5e41('0x3')](_0x5e41('0x1b'),!0x1),this[_0x5e41('0x3')]('isEnabled',!0x1),this['revisionNameView']=new _0x259c2e(_0x1f08f9,_0xff55f5),this[_0x5e41('0x7')]['fieldView'][_0x5e41('0x1c')]({'attributes':{'maxlength':_0x5e41('0x2a')}}),this[_0x5e41('0x7')]['fieldView']['bind'](_0x5e41('0x18'),_0x5e41('0x28'))['to'](this,_0x5e41('0x1e'),_0x5e41('0x23')),this[_0x5e41('0x7')][_0x5e41('0xb')]('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4b050b,_0x2d2c50)=>_0x4b050b&&_0x2d2c50),this['revisionActionsView']=_0x1b2fad&&_0x1b2fad[_0x5e41('0x12')]?_0x5ddbc4(this,_0x1b2fad):'',this[_0x5e41('0x2b')]&&this[_0x5e41('0x2b')]['bind'](_0x5e41('0x19'))['to'](this),this['setTemplate']({'tag':_0x5e41('0xd'),'attributes':{'class':['ck','ck-reset',_0x5e41('0x24'),_0x9dd9d1['if'](_0x5e41('0x1a'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x5e41('0xd'),'attributes':{'class':['ck',_0x5e41('0x2c'),_0x5e41('0x21'),_0x9dd9d1['if'](_0x5e41('0x19'),_0x5e41('0x27'),_0x17ceab=>!_0x17ceab),_0x9dd9d1['if'](_0x5e41('0x5'),_0x5e41('0x4')),_0x9dd9d1['if'](_0x5e41('0x17'),_0x5e41('0x6')),_0x9dd9d1['if'](_0x5e41('0x1d'),_0x5e41('0x14'))]},'children':[this[_0x5e41('0x7')],{'tag':'span','attributes':{'class':['ck',_0x5e41('0x29')]},'children':[{'text':_0x9dd9d1['to'](_0x5e41('0x23'))}]},{'tag':_0x5e41('0xd'),'attributes':{'class':['ck',_0x5e41('0x8')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x3b24ff}]},this[_0x5e41('0x2b')]],'on':{'click':_0x9dd9d1['to'](_0x11e6fb=>{_0x11e6fb[_0x5e41('0x11')][_0x5e41('0x15')]('.ck-thread__remove-confirm')||this[_0x5e41('0x1b')]&&this[_0x5e41('0x19')]&&this[_0x5e41('0x9')](_0x5e41('0xa'),{'id':this['id']});})}}]});}[_0x5e41('0x20')](){super[_0x5e41('0x20')]();const _0x597909=this[_0x5e41('0x7')]['fieldView']['element'];this[_0x5e41('0x25')](_0x597909,_0x5e41('0x1'),()=>{this[_0x5e41('0x9')](_0x5e41('0xc'),{'id':this['id'],'name':_0x597909[_0x5e41('0x18')]});});}[_0x5e41('0xa')](){this['isSelected']=!0x0;}[_0x5e41('0x2')](){this[_0x5e41('0x5')]=!0x1;}[_0x5e41('0x0')](){this[_0x5e41('0x17')]=!0x0;}['unhighlight'](){this[_0x5e41('0x17')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36c0=['false','span','bindTemplate','ck-hidden','_isCollapsed','set','click','ck-revision-history-sidebar__subrevision-collapser','true','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner'];(function(_0x4a51cc,_0x36c09b){const _0x2f2be3=function(_0x1ee846){while(--_0x1ee846){_0x4a51cc['push'](_0x4a51cc['shift']());}};_0x2f2be3(++_0x36c09b);}(_0x36c0,0x19c));const _0x2f2b=function(_0x4a51cc,_0x36c09b){_0x4a51cc=_0x4a51cc-0x0;let _0x2f2be3=_0x36c0[_0x4a51cc];return _0x2f2be3;};import{View as _0x17891d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x17891d{constructor(_0xcb0bd5){super(_0xcb0bd5);const _0x44710c=this[_0x2f2b('0x8')];this[_0x2f2b('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x2f2b('0x7'),'attributes':{'class':['ck',_0x2f2b('0x2'),_0x44710c['if']('isVisible',_0x2f2b('0x9'),_0x5af203=>!_0x5af203),_0x44710c['if'](_0x2f2b('0xa'),_0x2f2b('0x4'))],'role':'button','aria-pressed':_0x44710c['to'](_0x2f2b('0xa'),_0x503192=>_0x503192?_0x2f2b('0x6'):_0x2f2b('0x3'))},'children':[{'tag':_0x2f2b('0x7'),'attributes':{'class':['ck',_0x2f2b('0x5')]}}],'on':{'click':_0x44710c['to'](_0x2f2b('0x1'))}});}['toggle'](){this['_isCollapsed']=!this[_0x2f2b('0xa')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x392c=['ck-revision-history-sidebar__revision__date','_parentRevisionId','div','_createdAtFormatted','creator','isSelected','set','bind','bindTemplate','ck-revision-history-sidebar__revision-authors','select','deselect','ck-reset','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__subrevision'];(function(_0x5df74f,_0x392c91){const _0x526739=function(_0x51aa5b){while(--_0x51aa5b){_0x5df74f['push'](_0x5df74f['shift']());}};_0x526739(++_0x392c91);}(_0x392c,0x1ef));const _0x5267=function(_0x5df74f,_0x392c91){_0x5df74f=_0x5df74f-0x0;let _0x526739=_0x392c[_0x5df74f];return _0x526739;};import{View as _0x4e497a}from'ckeditor5/src/ui';import _0x3b9cad from'./revisionauthorview';import{dateToPrettyFormat as _0x5f2b85}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x4e497a{constructor(_0x5e3d15,_0x4d93bf,_0x4289fc){super(_0x5e3d15);const _0x3bb281=this[_0x5267('0x8')];this['id']=_0x4d93bf['id'],this[_0x5267('0x7')]('createdAt')['to'](_0x4d93bf),this[_0x5267('0x6')](_0x5267('0x5'),!0x1),this[_0x5267('0x7')](_0x5267('0x3'))['to'](this,'createdAt',_0x255e6c=>_0x255e6c?_0x5f2b85(_0x5e3d15['uiLanguage'],_0x255e6c):void 0x0),this[_0x5267('0x1')]=_0x4289fc,this['setTemplate']({'tag':_0x5267('0x2'),'attributes':{'class':['ck',_0x5267('0xc'),'ck-revision-history-sidebar__revision',_0x5267('0xe'),_0x3bb281['if'](_0x5267('0x5'),_0x5267('0xd'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x5267('0x0')]},'children':[{'text':_0x3bb281['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x5267('0x9')]},'children':[new _0x3b9cad(_0x5e3d15,_0x4d93bf[_0x5267('0x4')],!0x0)]}],'on':{'click':_0x3bb281['to'](this[_0x5267('0xa')][_0x5267('0x7')](this))}});}[_0x5267('0xa')](){this[_0x5267('0x5')]=!0x0,this['fire'](_0x5267('0xa'),{'parentId':this[_0x5267('0x1')]});}[_0x5267('0xb')](){this[_0x5267('0x5')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x6b0e=['long','toLocaleTimeString','toLocaleDateString','numeric'];(function(_0x5b1b14,_0x6b0e94){var _0x17e7c7=function(_0x160d5a){while(--_0x160d5a){_0x5b1b14['push'](_0x5b1b14['shift']());}};_0x17e7c7(++_0x6b0e94);}(_0x6b0e,0x7b));var _0x17e7=function(_0x5b1b14,_0x6b0e94){_0x5b1b14=_0x5b1b14-0x0;var _0x17e7c7=_0x6b0e[_0x5b1b14];return _0x17e7c7;};export function dateToPrettyFormat(_0x10a967,_0x2be750){return _0x2be750[_0x17e7('0x3')](_0x10a967,{'month':_0x17e7('0x1'),'day':_0x17e7('0x0')})+',\x20'+_0x2be750[_0x17e7('0x2')](_0x10a967,{'hour':'numeric','minute':_0x17e7('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4920=['trim','arrowright','220','fieldView','delegate','cancel','stopPropagation','focusTracker','Save','focus','submit','revisionName','set','arrowdown','_createRevisionNameInput','ck-button-save','extendTemplate','Cancel','saveButtonView','ck-responsive-form','Name\x20of\x20the\x20revision\x20(optional)','revisionNameInputView','ck-revision-history-save-revision-form','value','form','listenTo','input','locale','_createButton','check','shift\x20+\x20tab','setTemplate','render','cancelButtonView','arrowleft','revisionNameInputValue','keystrokes','tab','add','_focusables','element','_focusCycler','reset','label','ck-button-cancel'];(function(_0x30ad3b,_0x4920c8){const _0x14aead=function(_0x5a3277){while(--_0x5a3277){_0x30ad3b['push'](_0x30ad3b['shift']());}};_0x14aead(++_0x4920c8);}(_0x4920,0x130));const _0x14ae=function(_0x30ad3b,_0x4920c8){_0x30ad3b=_0x30ad3b-0x0;let _0x14aead=_0x4920[_0x30ad3b];return _0x14aead;};import{icons as _0x2f35bc}from'ckeditor5/src/core';import{ButtonView as _0x59ddfd,FocusCycler as _0x2200ef,LabeledFieldView as _0x3a1ae5,View as _0x28093d,ViewCollection as _0x38f194,createLabeledInputText as _0x1644c5,injectCssTransitionDisabler as _0x4b167e,submitHandler as _0x200ef0}from'ckeditor5/src/ui';import{FocusTracker as _0x1ac8df,KeystrokeHandler as _0x4dc8b6}from'ckeditor5/src/utils';import{getTranslation as _0x59e462}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x28093d{constructor(_0x2a8e67){super(_0x2a8e67),this[_0x14ae('0x12')]=new _0x1ac8df(),this['keystrokes']=new _0x4dc8b6(),this['set'](_0x14ae('0x1'),''),this[_0x14ae('0x20')]=this[_0x14ae('0x19')](),this['saveButtonView']=this['_createButton'](_0x59e462(_0x2a8e67,_0x14ae('0x13')),_0x2f35bc[_0x14ae('0x28')],_0x14ae('0x1a')),this[_0x14ae('0x1d')]['type']=_0x14ae('0x15'),this[_0x14ae('0x2c')]=this[_0x14ae('0x27')](_0x59e462(_0x2a8e67,_0x14ae('0x1c')),_0x2f35bc[_0x14ae('0x10')],_0x14ae('0xa'),_0x14ae('0x10')),this['_focusables']=new _0x38f194(),this[_0x14ae('0x7')]=new _0x2200ef({'focusables':this[_0x14ae('0x5')],'focusTracker':this[_0x14ae('0x12')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x14ae('0x29'),'focusNext':_0x14ae('0x3')}}),this[_0x14ae('0x2a')]({'tag':_0x14ae('0x23'),'attributes':{'class':['ck',_0x14ae('0x21'),_0x14ae('0x1e')],'tabindex':'-1'},'children':[this[_0x14ae('0x20')],this[_0x14ae('0x1d')],this[_0x14ae('0x2c')]]}),_0x4b167e(this);}[_0x14ae('0x2b')](){super['render'](),_0x200ef0({'view':this}),([this[_0x14ae('0x20')],this[_0x14ae('0x1d')],this[_0x14ae('0x2c')]]['forEach'](_0x219718=>{this['_focusables'][_0x14ae('0x4')](_0x219718),this[_0x14ae('0x12')]['add'](_0x219718[_0x14ae('0x6')]);}),this[_0x14ae('0x2')][_0x14ae('0x24')](this[_0x14ae('0x6')]));const _0x49833f=_0x102648=>_0x102648[_0x14ae('0x11')]();this[_0x14ae('0x2')][_0x14ae('0x17')](_0x14ae('0xc'),_0x49833f),this['keystrokes'][_0x14ae('0x17')](_0x14ae('0x0'),_0x49833f),this['keystrokes'][_0x14ae('0x17')]('arrowup',_0x49833f),this[_0x14ae('0x2')][_0x14ae('0x17')](_0x14ae('0x18'),_0x49833f);}[_0x14ae('0x14')](){this[_0x14ae('0x7')]['focusFirst']();}get[_0x14ae('0x16')](){return this[_0x14ae('0x20')]['fieldView'][_0x14ae('0x6')][_0x14ae('0x22')][_0x14ae('0xb')]();}set[_0x14ae('0x16')](_0x47887d){this['revisionNameInputView']['fieldView'][_0x14ae('0x6')]['value']=_0x47887d[_0x14ae('0xb')]();}[_0x14ae('0x8')](){this[_0x14ae('0x20')][_0x14ae('0xe')][_0x14ae('0x6')][_0x14ae('0x22')]='';}[_0x14ae('0x19')](){const _0x4b128e=new _0x3a1ae5(this[_0x14ae('0x26')],_0x1644c5),_0x154a85=_0x4b128e['fieldView'];return _0x154a85[_0x14ae('0x1b')]({'attributes':{'maxlength':_0x14ae('0xd')}}),_0x4b128e[_0x14ae('0x9')]=_0x59e462(this[_0x14ae('0x26')],_0x14ae('0x1f')),_0x154a85['on'](_0x14ae('0x25'),()=>{this['revisionNameInputValue']=_0x154a85[_0x14ae('0x6')]['value'][_0x14ae('0xb')]();}),_0x4b128e;}[_0x14ae('0x27')](_0x5ecd8b,_0x380074,_0x8ca613,_0x47c55b){const _0x4c23bf=new _0x59ddfd(this[_0x14ae('0x26')]);return _0x4c23bf[_0x14ae('0x17')]({'label':_0x5ecd8b,'icon':_0x380074,'tooltip':!0x0}),_0x4c23bf['extendTemplate']({'attributes':{'class':_0x8ca613}}),_0x47c55b&&_0x4c23bf[_0x14ae('0xf')]('execute')['to'](this,_0x47c55b),_0x4c23bf;}}
|