@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231010.0 → 0.0.0-nightly-20231011.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 _0x5b32=['offsetSize','findIndex','comment','top','keys','_getChangeFromId','_cleanMarkers','getCustomProperty','config','restoreRevisionCallback','_sortAndFilterDiffChanges','document','concat','dataDowncast','createPositionFromPath','markerToData','index','createUIElement','isEqual','_initInteractions','getRootNames','level','ck-suggestion-marker-split','target','element','side','_markSuggestions','getWalker','toData','range','vid_end','insertion','name','first','_refreshStartEndIndex','_getRevisionsRange','activeView','_joinTapes','ck-suggestion-preview-marker','getAttributes','resolve','getIndex','ck-suggestion-marker-merge','consumable','addClass','toModel','parent','isSuggestion','children','RevisionViewer','_findChangeIdFromDomTarget','isAddSuggestion','forceDisabled','isOnRoot','isInline','getRoot','dataToMarker','_appendChild','modelRange','listenTo','startIndex','mapper','reconvertMarker','get','removeClass','getClientRects','revision-suggestion','createAttributeElement','schema','markerName','newRevisionId','isContent','refresh','catch','set','bindElementToMarker','vid_start','suggestion','for','revision-suggestion:','adapter','revisionHistoryAttachChange','_removeUnsupportedChanges','oldRevisionId','remove','uiElement','editing','_revisions','flat','bind','isRemoved','locale','add','startsWith','_makeTape','consume','isAtEnd','deletions','repository','bottom','toViewPosition','upcast','_setDistance','data-change-id','end','changes','high','distance','start','isNavigationMode','WidgetToolbarRepository','data','domConverter','revisionHistoryLabel','_balloon','nextSibling','_markInsertions','length','element:pre','ck-revision-history-root-remove','isAdded','type','backward','nodeAfter','enqueueChange','indexOf','insertions','isAfter','test','_setConversion','_getViewObj','isAtStart','selection','rootName','removeMarker:revision','markers','getAttribute','map','enableReadOnlyMode','addHighlight','_activeViewTarget','_cleanUp','data-revision-','model','domEvent','has','from','endIndex','isBlock','useFillerType','_threeWayMerge','includes','affectsData','change:isReady','unshift','_changeIdToChange','_processTape','forward','shift','elementStart','ck-revision-history-root--active','_removeRevisionMarkers','execute','code','markerNameToElements','getItems','ck-revision-history-root-add','addRevisionData','attachChange','suggestion:','downcastDispatcher','isBefore','next','_data','diff','isReady','getDomRoot','change','conversion','pairId','_fixObsoleteTags','isRemoveSuggestion','markersStart','view','addRoot','unbindElementFromMarkerName','activeChange','currentChangeNumber','requires','ck-revision-history-root-','_changeView','revision','init','commands','change:activeChange','mousedown','change:activeView','all','deletion','editingDowncast','toViewElement','createPositionBefore','_step','wrap','slice','ck-suggestion-marker--active','setAttribute','showNextChange','then','item','ck-suggestion-marker','editor','destroy','compare','_markMarkers','plugins','change:isEnabled','abs','splice','isEnabled','done','_markMismatchedRemovedTags','filter','createRange','forEach','revision:','return','softBreak','mapViewToDom','markerToHighlight','mouseover','isLimit','-new','highest','writer','getChild','previousPosition','addMarker:revision','nextPosition','text','low','attributesBefore','split','string','attributes','markersEnd','stop','object','elementEnd','isIncorrect','maxOffset','RevisionsRepository','markerRange','isAttached','diffData','_update','clear','userId','_removeMissingPairs','_setChanges','getRevision','isCollapsed','revision-comment:','viewItem','revision-viewer','loadRevisionData','getRevisionRootsAttributes','addMarker:revision-suggestion:insertion','detachRoot','delete','sort','attributesAfter','hasAttribute','changeId','_getViewForChange','vid','span','ck-suggestion-marker-','push','_makeModelFromViewString','parse','addRevision','insert','revisionHistory','ck-editor__editable__overlay','right','merge','_makeModelFromTape','processor'];(function(_0x525bb1,_0x5b328f){const _0x20bf46=function(_0x5f3b7b){while(--_0x5f3b7b){_0x525bb1['push'](_0x525bb1['shift']());}};_0x20bf46(++_0x5b328f);}(_0x5b32,0x1be));const _0x20bf=function(_0x525bb1,_0x5b328f){_0x525bb1=_0x525bb1-0x0;let _0x20bf46=_0x5b32[_0x525bb1];return _0x20bf46;};import{Plugin as _0x1f5549,Command as _0x48e309}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x98832}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5ad0f0}from'ckeditor5/src/ui';import{DocumentFragment as _0x5600b3,Element as _0xf7bb48,Text as _0x43992d,ViewDocumentFragment as _0x5421bf,ViewText as _0x1017eb,ViewElement as _0x161ef3,ViewContainerElement as _0x250000,ViewAttributeElement as _0x52c04f,ViewEmptyElement as _0x27094d,ViewRawElement as _0x140c49,ViewUIElement as _0x7a41c0}from'ckeditor5/src/engine';import{Users as _0x3c7e7a,getMarkerDomElement as _0xd912bf}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c09bf from'./ui/revisionviewer/changedetailsview';import _0x22a1d1 from'./revisionsrepository';import _0x45af27 from'./changeitem';import{default as _0xf859ff}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x38bd10}from'lodash-es';const tt={'c':_0x250000,'a':_0x52c04f,'e':_0x27094d,'r':_0x140c49,'u':_0x7a41c0};export default class d extends _0x1f5549{static get['pluginName'](){return _0x20bf('0xb5');}static get[_0x20bf('0x1f')](){return[_0x3c7e7a,_0x5ad0f0,_0x22a1d1];}constructor(_0x47807d){super(_0x47807d),this[_0x20bf('0xe6')]=this[_0x20bf('0x36')]['plugins'][_0x20bf('0xc3')](_0x20bf('0x5e')),this['set'](_0x20bf('0x1d'),null),this['set'](_0x20bf('0xa8'),null),this[_0x20bf('0x110')]=null,this[_0x20bf('0xce')](_0x20bf('0x11'),null),this[_0x20bf('0xce')]('isReady',!0x1),this[_0x20bf('0xce')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1db370,_0x5f288c,_0x3d36a4)=>{this['activeChange']=null,this[_0x20bf('0xa8')]=null,this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x14')](_0x131748=>{for(const _0x425f55 of this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x8f')]['roots'])_0x3d36a4?_0x131748[_0x20bf('0xc4')](_0x20bf('0x7f'),_0x425f55):_0x131748[_0x20bf('0xb0')](_0x20bf('0x7f'),_0x425f55);});}),this[_0x20bf('0xdd')](_0x20bf('0xf1'))['to'](this,'activeChange',_0x49a39c=>null!==_0x49a39c),this[_0x20bf('0xdd')](_0x20bf('0x1e'))['to'](this,'isReady',this,_0x20bf('0x11'),this,'activeChange',(_0x3d9f42,_0x172a6e,_0x47f758)=>_0x3d9f42&&_0x47f758?_0x172a6e[_0x20bf('0xed')][_0x20bf('0xad')](_0x47f758):0x0),this[_0x20bf('0xdd')]('numberOfChanges')['to'](this,_0x20bf('0x12'),this,_0x20bf('0x11'),(_0x202ca7,_0x328b86)=>_0x202ca7?_0x328b86[_0x20bf('0xed')][_0x20bf('0xf9')]:0x0),this[_0x20bf('0x21')]=null,this[_0x20bf('0x11f')]=new Map(),this[_0x20bf('0xd4')]=null,this[_0x20bf('0xf6')]=this['editor'][_0x20bf('0x3a')][_0x20bf('0xc3')](_0x5ad0f0);}[_0x20bf('0x23')](){const _0x34af69=this[_0x20bf('0x36')],_0x1c48f9=new ShowChangeCommand(_0x34af69,{'direction':_0x20bf('0xfe')}),_0x25bd45=new ShowChangeCommand(_0x34af69,{'direction':_0x20bf('0x0')});(_0x34af69[_0x20bf('0x24')][_0x20bf('0xe0')]('showPreviousChange',_0x1c48f9),_0x34af69['commands'][_0x20bf('0xe0')](_0x20bf('0x32'),_0x25bd45),_0x34af69[_0x20bf('0x24')][_0x20bf('0xe0')]('restoreRevision',new RestoreRevisionCommand(_0x34af69)),this['on']('change:numberOfChanges',()=>{_0x1c48f9[_0x20bf('0xcc')](),_0x25bd45[_0x20bf('0xcc')]();}),this[_0x20bf('0x105')](),this[_0x20bf('0x97')](),_0x34af69[_0x20bf('0x10e')]('revision-viewer'),_0x34af69[_0x20bf('0x3a')][_0x20bf('0x115')](_0x20bf('0xf2')))&&_0x34af69[_0x20bf('0x3a')][_0x20bf('0xc3')](_0x20bf('0xf2'))[_0x20bf('0xb8')](_0x20bf('0x6b'));}async['getRevisionData'](_0x49458b){await this['loadRevisionData'](_0x49458b);const _0x284a4c={};for(const _0x119470 in _0x49458b[_0x20bf('0x61')]){if(_0x49458b['diffData'][_0x119470]['attachChange']&&!_0x49458b[_0x20bf('0x61')][_0x119470][_0x20bf('0xb')][_0x20bf('0x60')])continue;const _0x4aabad=this[_0x20bf('0x4')](JSON[_0x20bf('0x7b')](_0x49458b[_0x20bf('0x61')][_0x119470]['insertions'])),_0x56f9ae=this[_0x20bf('0x36')]['editing'][_0x20bf('0x1a')]['document'],_0x436704=new _0x5421bf(_0x56f9ae,_0x4aabad[_0x20bf('0x10d')](_0x31857c=>this[_0x20bf('0x106')](_0x31857c)));this[_0x20bf('0x36')][_0x20bf('0xf3')][_0x20bf('0x83')][_0x20bf('0x119')]('marked'),_0x284a4c[_0x119470]=this[_0x20bf('0x36')][_0x20bf('0xf3')][_0x20bf('0x83')][_0x20bf('0xa0')](_0x436704),this['editor']['data'][_0x20bf('0x83')][_0x20bf('0x119')]('default');}return _0x284a4c;}async[_0x20bf('0x6d')](_0x474a5b){await this[_0x20bf('0x6c')](_0x474a5b);const _0x418d3c={};for(const _0x29bd96 in _0x474a5b[_0x20bf('0x61')])_0x474a5b['diffData'][_0x29bd96][_0x20bf('0xb')]&&!_0x474a5b[_0x20bf('0x61')][_0x29bd96][_0x20bf('0xb')][_0x20bf('0x60')]||(_0x418d3c[_0x29bd96]=_0x474a5b['diffData'][_0x29bd96]['attributesAfter']||{});return _0x418d3c;}['_removeRevisionMarkers'](_0x1e0d8a){return(_0x1e0d8a=_0x1e0d8a[_0x20bf('0x41')](_0x504662=>!_0x504662[_0x20bf('0xa4')]||'revision-start'!==_0x504662[_0x20bf('0xa4')]&&'revision-end'!==_0x504662['name']))[_0x20bf('0x43')](_0x35f203=>{_0x20bf('0x56')!=typeof _0x35f203&&(_0x35f203[_0x20bf('0xb4')]=this['_removeRevisionMarkers'](_0x35f203['children']),_0x35f203[_0x20bf('0x57')]=_0x35f203[_0x20bf('0x57')][_0x20bf('0x41')](_0x4ec497=>!_0x4ec497[0x0][_0x20bf('0xe1')](_0x20bf('0x112'))));}),_0x1e0d8a;}async[_0x20bf('0x38')](_0x5844e5,_0xe0a2b2,_0x53f4c9=!0x1){if(!this['isEnabled'])return;const _0x43c4a6=this[_0x20bf('0x11')],_0x36a917=this[_0x20bf('0xe6')],_0xbe9ddc=_0x20bf('0x56')==typeof _0x5844e5?_0x36a917['getRevision'](_0x5844e5):_0x5844e5,_0x390a55=_0x20bf('0x56')==typeof _0xe0a2b2?_0x36a917['getRevision'](_0xe0a2b2):_0xe0a2b2,_0x4bec9a=_0xbe9ddc['id'],_0x4c4f70=_0x390a55?_0x390a55['id']:null;if(!_0x53f4c9&&this[_0x20bf('0x11')]&&this[_0x20bf('0x11')]['newRevisionId']===_0x4bec9a&&this[_0x20bf('0x11')][_0x20bf('0xd7')]===_0x4c4f70)return Promise['resolve']();this['isReady']=!0x1,this[_0x20bf('0xa8')]=null,this['activeChange']=null,this['diff']=new _0xf859ff(_0x4bec9a,_0x4c4f70);const _0x2c93f9=this[_0x20bf('0xa7')](_0xbe9ddc,_0x390a55,!0x0)['map'](_0x43b5f6=>this['loadRevisionData'](_0x43b5f6));return _0x2c93f9[_0x20bf('0x79')](new Promise(_0x53848a=>{setTimeout(_0x53848a,0x14);})),Promise[_0x20bf('0x28')](_0x2c93f9)[_0x20bf('0x33')](()=>{if(!this[_0x20bf('0x3e')])return;this['_cleanUp']();const _0x1d3df3=this['_getDiff'](_0x4bec9a,_0x4c4f70);for(const _0x28791f of _0x1d3df3[_0x20bf('0xed')])this[_0x20bf('0x11f')][_0x20bf('0xce')](_0x28791f['id'],_0x28791f);this['editor'][_0x20bf('0x113')]['enqueueChange']({'isUndoable':!0x1},_0x5b02a1=>{for(const _0x4a041e of this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x8f')][_0x20bf('0x98')]())_0x5b02a1['detachRoot'](_0x4a041e);for(const _0x1aede5 of Object['keys'](_0x1d3df3[_0x20bf('0x113')])){const _0x501c0c=_0x5b02a1[_0x20bf('0x1b')](_0x1aede5);for(const _0x1375fb of Object['keys'](_0x1d3df3[_0x20bf('0x57')][_0x1aede5]))_0x5b02a1[_0x20bf('0x31')](_0x1375fb,_0x1d3df3[_0x20bf('0x57')][_0x1aede5][_0x1375fb],_0x501c0c);_0x5b02a1[_0x20bf('0x7d')](_0x1d3df3['model'][_0x1aede5],_0x501c0c,0x0);}}),this[_0x20bf('0x11')][_0x20bf('0x66')](this[_0x20bf('0x8e')](_0x1d3df3['changes'])),this['isReady']=!0x0;})[_0x20bf('0xcd')](_0x1cf004=>{console['error'](_0x1cf004),this['_cleanUp'](),_0x43c4a6&&(this[_0x20bf('0x11')]=_0x43c4a6),this[_0x20bf('0x12')]=!0x0;});}[_0x20bf('0xa')](_0x2521a9,_0x3355f8){const _0x480d2=this[_0x20bf('0xe6')]['createRevision'](_0x2521a9);return _0x480d2['on'](_0x20bf('0x62'),(_0x5e3d52,_0x345836,_0x30e1ea)=>_0x3355f8(_0x345836,_0x30e1ea,_0x480d2)),this[_0x20bf('0xe6')][_0x20bf('0x7c')](_0x480d2),_0x480d2;}[_0x20bf('0x6c')](_0x3dcfd0){if(!_0x3dcfd0||_0x3dcfd0[_0x20bf('0x61')])return Promise[_0x20bf('0xac')]();{const _0x1c0b75=this['editor']['config'][_0x20bf('0xc3')]('collaboration.channelId');return this[_0x20bf('0xd4')][_0x20bf('0x67')]({'channelId':_0x1c0b75,'revisionId':_0x3dcfd0['id']})[_0x20bf('0x33')](_0x18325f=>{_0x3dcfd0['_update']({'diffData':_0x18325f[_0x20bf('0x61')]},!0x0);});}}[_0x20bf('0x111')](){this[_0x20bf('0x1d')]=null,this[_0x20bf('0x8a')](),this[_0x20bf('0x21')]&&this[_0x20bf('0x21')]['destroy'](),this[_0x20bf('0x21')]=null,this[_0x20bf('0x11f')][_0x20bf('0x63')](),this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x100')]({'isUndoable':!0x1},_0x2846bb=>{for(const _0x9ebc5c of this[_0x20bf('0x36')]['model'][_0x20bf('0x8f')][_0x20bf('0x98')]())_0x2846bb[_0x20bf('0x6f')](_0x9ebc5c);});}[_0x20bf('0x8e')](_0x3cfe77){const _0x48f3a7=[],_0x18dc0f=new Map();for(const _0x323f25 of this['editor'][_0x20bf('0x113')][_0x20bf('0x8f')]['getRootNames']()){const _0x486b8c=this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x13')](_0x323f25);if(!_0x486b8c)continue;const _0x7e4ef7=_0x486b8c['getClientRects']()['item'](0x0);_0x7e4ef7&&(_0x48f3a7[_0x20bf('0x79')](_0x323f25),_0x18dc0f[_0x20bf('0xce')](_0x323f25,_0x7e4ef7));}return _0x48f3a7[_0x20bf('0x71')]((_0x453fec,_0x4589e6)=>{const _0x11a3b4=_0x18dc0f[_0x20bf('0xc3')](_0x453fec),_0x17442c=_0x18dc0f['get'](_0x4589e6);return _0x11a3b4['y']-_0x17442c['y']||_0x11a3b4['x']-_0x17442c['x'];}),(_0x3cfe77=_0x3cfe77['filter'](_0x5b9cae=>_0x48f3a7[_0x20bf('0x11b')](_0x5b9cae[_0x20bf('0x109')])))[_0x20bf('0x71')]((_0x4bdf62,_0x233d7a)=>_0x48f3a7[_0x20bf('0x101')](_0x4bdf62[_0x20bf('0x109')])-_0x48f3a7[_0x20bf('0x101')](_0x233d7a[_0x20bf('0x109')])),_0x3cfe77;}[_0x20bf('0xe2')](_0x384a30){const _0x187948=Array[_0x20bf('0x116')](_0x384a30[_0x20bf('0x10b')])[_0x20bf('0x41')](([_0x30e4bd,_0x2a387e])=>_0x30e4bd[_0x20bf('0xe1')](_0x20bf('0x44'))&&!_0x2a387e[_0x20bf('0x68')]),_0x14ffc5=Array[_0x20bf('0x116')](this[_0x20bf('0x36')]['model']['createRangeIn'](_0x384a30)[_0x20bf('0x9f')]({'singleCharacters':!0x0}));if(0x0!=_0x187948[_0x20bf('0xf9')])for(const _0x118a81 of _0x14ffc5){const [_0xa6474b,_0x1dbb83]=_0x187948[0x0],[,_0x47f393,_0x5b0975]=_0xa6474b[_0x20bf('0x55')](':');if(_0x1dbb83[_0x20bf('0xec')]['isEqual'](_0x118a81[_0x20bf('0x51')])&&_0x187948['shift'](),(_0x118a81[_0x20bf('0x4f')][_0x20bf('0x96')](_0x1dbb83['start'])||_0x118a81[_0x20bf('0x4f')][_0x20bf('0x103')](_0x1dbb83[_0x20bf('0xf0')]))&&(_0x20bf('0xa3')==_0x47f393?_0x118a81[_0x20bf('0xfc')]={'userId':_0x5b0975}:'deletion'==_0x47f393&&(_0x118a81[_0x20bf('0xde')]={'userId':_0x5b0975})),0x0==_0x187948['length'])break;}return _0x14ffc5;}['_refreshStartEndIndex'](_0x50002d){const _0x51889c=new Map();for(let _0x3b4ef5=0x0;_0x3b4ef5<_0x50002d['length'];_0x3b4ef5++)_0x20bf('0x52')===_0x50002d[_0x3b4ef5]['type']?(_0x50002d[_0x3b4ef5][_0x20bf('0x34')]['startIndex']=_0x3b4ef5,_0x50002d[_0x3b4ef5]['item'][_0x20bf('0x117')]=_0x3b4ef5):(_0x20bf('0x2')===_0x50002d[_0x3b4ef5][_0x20bf('0xfd')]?_0x50002d[_0x3b4ef5][_0x20bf('0x34')][_0x20bf('0xc0')]=_0x3b4ef5:_0x20bf('0x5b')===_0x50002d[_0x3b4ef5][_0x20bf('0xfd')]&&(_0x50002d[_0x3b4ef5][_0x20bf('0x34')][_0x20bf('0x117')]=_0x3b4ef5),_0x51889c['set'](_0x50002d[_0x3b4ef5]['id'],_0x3b4ef5));for(const _0x5e07a1 of _0x51889c['values']())'elementStart'===_0x50002d[_0x5e07a1]['type']?_0x50002d[_0x5e07a1]['item'][_0x20bf('0x117')]=_0x51889c[_0x20bf('0xc3')](_0x50002d[_0x5e07a1][_0x20bf('0x16')]):_0x20bf('0x5b')===_0x50002d[_0x5e07a1][_0x20bf('0xfd')]&&(_0x50002d[_0x5e07a1][_0x20bf('0x34')][_0x20bf('0xc0')]=_0x51889c[_0x20bf('0xc3')](_0x50002d[_0x5e07a1][_0x20bf('0x16')]));}[_0x20bf('0x120')](_0x2ba03e){for(let _0x6d9aad=0x0;_0x6d9aad<_0x2ba03e[_0x20bf('0xf9')];_0x6d9aad++){if(_0x20bf('0x2')===_0x2ba03e[_0x6d9aad][_0x20bf('0xfd')])_0x2ba03e[_0x6d9aad][_0x20bf('0x34')]['startIndex']=_0x6d9aad;else{if(_0x20bf('0x5b')===_0x2ba03e[_0x6d9aad]['type']){_0x2ba03e[_0x6d9aad]['item'][_0x20bf('0x117')]=_0x6d9aad;const _0x2ebc6e=_0x2ba03e[_0x6d9aad][_0x20bf('0x34')][_0x20bf('0xc0')];_0x2ba03e[_0x2ebc6e][_0x20bf('0x16')]=_0x2ba03e[_0x6d9aad]['id'],_0x2ba03e[_0x6d9aad][_0x20bf('0x16')]=_0x2ba03e[_0x2ebc6e]['id'];}else _0x2ba03e[_0x6d9aad][_0x20bf('0x34')][_0x20bf('0xc0')]=_0x6d9aad,_0x2ba03e[_0x6d9aad][_0x20bf('0x34')]['endIndex']=_0x6d9aad,_0x2ba03e[_0x6d9aad][_0x20bf('0x16')]=null;}_0x2ba03e[_0x6d9aad][_0x20bf('0x19')]||(_0x2ba03e[_0x6d9aad][_0x20bf('0x19')]=[],_0x2ba03e[_0x6d9aad]['markersEnd']=[]);}}[_0x20bf('0xf8')](_0x1dcb60,_0x212693){const _0x438a63=_0x1dcb60['filter'](_0x5271fd=>!_0x5271fd[_0x20bf('0xfc')]);for(let _0x1cadda=0x0;_0x1cadda<_0x212693['length'];_0x1cadda++)_0x212693[_0x1cadda][_0x20bf('0xfc')]&&(_0x438a63[_0x1cadda][_0x20bf('0xfc')]=_0x212693[_0x1cadda][_0x20bf('0xfc')]);}['_makeModelFromViewString'](_0x3da0fe){const _0x3b6a97=JSON[_0x20bf('0x7b')](_0x3da0fe),_0x70a92f=this[_0x20bf('0x36')]['editing']['view']['document'],_0x35db0f=new _0x5421bf(_0x70a92f,_0x3b6a97['map'](_0x3ab7c2=>this[_0x20bf('0x106')](_0x3ab7c2)));return this[_0x20bf('0x36')]['data'][_0x20bf('0xb1')](_0x35db0f);}[_0x20bf('0x106')](_0x22befb){const _0x347e33=this[_0x20bf('0x36')]['editing'][_0x20bf('0x1a')][_0x20bf('0x8f')];if(_0x20bf('0x56')==typeof _0x22befb)return new _0x1017eb(_0x347e33,_0x22befb);{const _0x9bde61=_0x22befb[_0x20bf('0xb4')][_0x20bf('0x10d')](_0x252030=>this[_0x20bf('0x106')](_0x252030));return new(tt[_0x22befb['type']]||_0x161ef3)(_0x347e33,_0x22befb[_0x20bf('0xa4')],_0x22befb['attributes'],_0x9bde61);}}['_getDiff'](_0x31107b,_0x141469=null){const _0x103ff2=this[_0x20bf('0xe6')]['getRevision'](_0x31107b),_0x504ba2=_0x141469?this['repository'][_0x20bf('0x67')](_0x141469):null,_0x5dc3cf=this[_0x20bf('0xa7')](_0x103ff2,_0x504ba2),_0x41f9d2=_0x5dc3cf[_0x5dc3cf['length']-0x1],_0x2c6513=new Map(),_0x1242a2={'model':{},'attributes':{},'changes':[]},_0x11b2b6=new Set(),_0x3b5081=new Map();for(let _0x165523=_0x5dc3cf[_0x20bf('0xf9')]-0x1;_0x165523>=0x0;_0x165523--){const _0x1f2add=_0x5dc3cf[_0x165523];for(const _0x448ade of Object[_0x20bf('0x88')](_0x1f2add[_0x20bf('0x61')]))if(_0x1f2add['diffData'][_0x448ade][_0x20bf('0xb')]){const _0x406c47=_0x1f2add[_0x20bf('0x61')][_0x448ade][_0x20bf('0xb')];_0x406c47[_0x20bf('0x60')]?(_0x11b2b6[_0x20bf('0xe0')](_0x448ade),_0x3b5081['has'](_0x448ade)&&_0x3b5081[_0x20bf('0xc3')](_0x448ade)['userId']==_0x406c47[_0x20bf('0x64')]?_0x3b5081['delete'](_0x448ade):_0x3b5081[_0x20bf('0xce')](_0x448ade,_0x406c47)):_0x3b5081['has'](_0x448ade)?(_0x11b2b6[_0x20bf('0x70')](_0x448ade),_0x3b5081[_0x20bf('0x70')](_0x448ade)):(_0x11b2b6['add'](_0x448ade),_0x3b5081[_0x20bf('0xce')](_0x448ade,_0x406c47));}else _0x11b2b6[_0x20bf('0xe0')](_0x448ade);}for(const _0x71ffde of _0x11b2b6){const _0xadb5a=_0x3b5081[_0x20bf('0x115')](_0x71ffde)&&!_0x3b5081['get'](_0x71ffde)[_0x20bf('0x60')];let _0x9e2e57=_0xadb5a?_0x5dc3cf[_0x20bf('0xf9')]-0x1:0x0;const _0x23c620=_0xadb5a?-0x1:0x1;for(;_0x5dc3cf[_0x9e2e57];){const _0x34ec07=_0x5dc3cf[_0x9e2e57];if(_0x34ec07['diffData'][_0x71ffde]){const _0x5b9059=_0xadb5a?_0x34ec07[_0x20bf('0x61')][_0x71ffde][_0x20bf('0x54')]:_0x34ec07[_0x20bf('0x61')][_0x71ffde][_0x20bf('0x72')];_0x1242a2['attributes'][_0x71ffde]=_0x5b9059?_0x38bd10(_0x5b9059):{};break;}_0x9e2e57+=_0x23c620;}}for(const _0x4c511e of _0x5dc3cf){_0x4c511e['model']={};for(const _0x33b0db of _0x4c511e['authors'])_0x2c6513[_0x20bf('0xce')](_0x33b0db['id'],_0x33b0db);for(const _0x46f389 of _0x11b2b6){const _0x4d056c=_0x4c511e[_0x20bf('0x61')][_0x46f389]?_0x4c511e[_0x20bf('0x61')][_0x46f389][_0x20bf('0x102')]:'[]',_0x2a9b3d=_0x4c511e['diffData'][_0x46f389]?_0x4c511e[_0x20bf('0x61')][_0x46f389][_0x20bf('0xe5')]:'[]';_0x4c511e[_0x20bf('0x113')][_0x46f389]={'insertions':this[_0x20bf('0x7a')](_0x4d056c),'deletions':this[_0x20bf('0x7a')](_0x2a9b3d)};}}for(const _0x5d11af of _0x11b2b6){let _0x4dca64=null,_0x1f5a01=0x0;const _0x34a9b2=new Map(Array[_0x20bf('0x116')](_0x103ff2['model'][_0x5d11af]['insertions'][_0x20bf('0x10b')])['filter'](([_0x2d64d5])=>!_0x2d64d5[_0x20bf('0xe1')](_0x20bf('0x44'))));let _0x3c6cd1=0x0;for(const _0xe7417 of _0x5dc3cf){const _0x58343d=this['_makeTape'](_0xe7417[_0x20bf('0x113')][_0x5d11af][_0x20bf('0x102')]);_0xe7417==_0x103ff2?(_0x4dca64=_0x58343d,_0x1f5a01=_0x4dca64[_0x20bf('0xf9')],_0x4dca64[_0x20bf('0x43')](_0x1f4441=>{_0x1f4441['id']=_0x3c6cd1++;}),this[_0x20bf('0x120')](_0x4dca64)):this[_0x20bf('0xf8')](_0x4dca64,_0x58343d);const _0x128aaa=_0x4dca64['filter'](_0x723d61=>!_0x723d61['isAdded'])[_0x20bf('0x10d')](_0x24496e=>_0x24496e['id']);let _0x26c1a6=0x0;const _0x3ddaec=this[_0x20bf('0xe2')](_0xe7417[_0x20bf('0x113')][_0x5d11af][_0x20bf('0xe5')]);_0x3ddaec[_0x20bf('0x43')](_0x25f9af=>{_0x25f9af[_0x20bf('0xde')]?_0x25f9af['id']=_0x1f5a01++:_0x25f9af['id']=_0x128aaa[_0x26c1a6++];}),this['_processTape'](_0x3ddaec),this['_setDistance'](_0x4dca64,_0x20bf('0xfc')),this[_0x20bf('0xea')](_0x3ddaec,'isRemoved'),_0xe7417==_0x103ff2&&this[_0x20bf('0x39')](_0x4dca64,_0x34a9b2),_0x4dca64=this[_0x20bf('0xa9')](_0x4dca64,_0x3ddaec),this[_0x20bf('0xa6')](_0x4dca64),this['_setDistance'](_0x4dca64,'isRemoved');}_0x4dca64=_0x4dca64['filter'](_0x239bd6=>!(_0x239bd6[_0x20bf('0xfc')]&&_0x239bd6[_0x20bf('0xde')]));const _0x1b2d3b=new Map(_0x41f9d2[_0x20bf('0x113')][_0x5d11af]['deletions']['markers']),_0x2dd1ba=new Set(_0x34a9b2[_0x20bf('0x88')]());for(const _0x27f8c9 of _0x1b2d3b['keys']())_0x2dd1ba[_0x20bf('0x70')](_0x27f8c9);this['_markSuggestions'](_0x4dca64,_0x2dd1ba),this[_0x20bf('0x17')](_0x4dca64),_0x4dca64=this['_removeMissingPairs'](_0x4dca64),_0x4dca64=this[_0x20bf('0x40')](_0x4dca64),_0x4dca64=this[_0x20bf('0xd6')](_0x4dca64);const {root:_0x23c6bf,changes:_0x3cb073}=this[_0x20bf('0x82')](_0x4dca64,_0x2c6513,_0x5d11af);_0x1242a2[_0x20bf('0x113')][_0x5d11af]=_0x23c6bf;const _0x4fda98=_0x3b5081[_0x20bf('0xc3')](_0x5d11af);if(_0x4fda98){const _0x3ebf7b=_0x2c6513[_0x20bf('0xc3')](_0x4fda98[_0x20bf('0x64')]),_0x4927f4=new _0x45af27({'author':_0x3ebf7b,'type':_0x4fda98[_0x20bf('0x60')]?_0x20bf('0xe0'):_0x20bf('0xd8'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d11af});_0x3cb073[_0x20bf('0x11e')](_0x4927f4),_0x1242a2[_0x20bf('0x57')][_0x5d11af]['revisionHistoryAttachChange']=_0x4927f4['id'];}_0x1242a2[_0x20bf('0xed')]=_0x1242a2['changes'][_0x20bf('0x90')](_0x3cb073);}return _0x1242a2;}[_0x20bf('0x39')](_0x51c129,_0x44afbb){for(let _0x2a4fb0=0x0;_0x2a4fb0<_0x51c129['length'];_0x2a4fb0++)for(const [_0x54b8d1,_0x10ec11]of _0x44afbb)_0x10ec11['start'][_0x20bf('0x96')](_0x51c129[_0x2a4fb0]['previousPosition'])&&_0x51c129[_0x2a4fb0]['markersStart'][_0x20bf('0x79')](_0x54b8d1),_0x10ec11[_0x20bf('0xec')]['isEqual'](_0x51c129[_0x2a4fb0]['nextPosition'])&&_0x51c129[_0x2a4fb0][_0x20bf('0x58')]['push'](_0x54b8d1);}[_0x20bf('0xa9')](_0x3b63bd,_0x11f584){let _0x143b8c=[],_0x5f478d=0x0,_0x14bf0e=0x0;for(;_0x5f478d<_0x3b63bd[_0x20bf('0xf9')]||_0x14bf0e<_0x11f584[_0x20bf('0xf9')];){const _0x5d4564=_0x3b63bd[_0x5f478d]||{},_0x51c48c=_0x11f584[_0x14bf0e]||{};if(_0x5d4564['id']==_0x51c48c['id'])_0x5f478d++,_0x14bf0e++,_0x143b8c[_0x20bf('0x79')](_0x5d4564);else{if(_0x51c48c[_0x20bf('0xde')]&&_0x5d4564['isAdded']){const {commonTape:_0x2051f1,iEnd:_0x43a69e,jEnd:_0x475649}=this['_threeWayMerge'](_0x3b63bd,_0x5f478d,_0x11f584,_0x14bf0e);_0x143b8c=_0x143b8c[_0x20bf('0x90')](_0x2051f1),_0x5f478d=_0x43a69e,_0x14bf0e=_0x475649;}else _0x51c48c[_0x20bf('0xde')]?(_0x14bf0e++,_0x143b8c[_0x20bf('0x79')](_0x51c48c)):(_0x5f478d++,_0x143b8c[_0x20bf('0x79')](_0x5d4564));}}return _0x143b8c;}[_0x20bf('0x9e')](_0x341335,_0x15e538){const _0x286f52=[];for(let _0x590e6a=0x0;_0x590e6a<_0x341335[_0x20bf('0xf9')];_0x590e6a++){for(let _0x3ba26c=0x0;_0x3ba26c<_0x341335[_0x590e6a][_0x20bf('0x19')][_0x20bf('0xf9')];_0x3ba26c++){const _0x5ee9c8=_0x341335[_0x590e6a]['markersStart'][_0x3ba26c];if(!_0x15e538[_0x20bf('0x115')](_0x5ee9c8))continue;const {group:_0x26090b,type:_0x2a4c61,authorId:_0x2cff41}=_0x236a6b(_0x5ee9c8);_0x20bf('0xc6')!=_0x26090b||_0x20bf('0xa3')!=_0x2a4c61&&_0x20bf('0x29')!=_0x2a4c61||(_0x286f52[_0x20bf('0x11e')]({'type':_0x2a4c61,'name':_0x5ee9c8,'userId':_0x2cff41}),_0x341335[_0x590e6a][_0x20bf('0x19')][_0x20bf('0x3d')](_0x3ba26c,0x1),_0x3ba26c--);}_0x2f2d53(_0x341335[_0x590e6a]);for(let _0x26d202=0x0;_0x26d202<_0x341335[_0x590e6a]['markersEnd'][_0x20bf('0xf9')];_0x26d202++){const _0x35ffff=_0x341335[_0x590e6a][_0x20bf('0x58')][_0x26d202];if(!_0x15e538[_0x20bf('0x115')](_0x35ffff))continue;const {group:_0xf960e4,type:_0x5448fa}=_0x236a6b(_0x35ffff);if(_0x20bf('0xc6')!=_0xf960e4||_0x20bf('0xa3')!=_0x5448fa&&_0x20bf('0x29')!=_0x5448fa)continue;_0x341335[_0x590e6a]['markersEnd'][_0x20bf('0x3d')](_0x26d202,0x1),_0x26d202--;const _0x1eba44=_0x286f52[_0x20bf('0x85')](_0xce83e0=>_0xce83e0[_0x20bf('0xa4')]==_0x35ffff);_0x1eba44>-0x1&&_0x286f52[_0x20bf('0x3d')](_0x1eba44,0x1);}}function _0x236a6b(_0x34f7ff){const _0x238aca=_0x34f7ff[_0x20bf('0x55')](':');return{'group':_0x238aca[0x0],'type':_0x238aca[0x1],'subType':_0x238aca[_0x20bf('0xf9')]>=0x5?_0x238aca[0x2]:null,'id':_0x238aca[_0x20bf('0xf9')]<0x5?_0x238aca[0x2]:_0x238aca[0x3],'authorId':_0x238aca[_0x20bf('0xf9')]<0x5?_0x238aca[0x3]:_0x238aca[0x4],'markerCount':0x6==_0x238aca['length']?_0x238aca[0x5]:null};}function _0x2f2d53(_0x512674){for(let _0x1e46c8=0x0;_0x1e46c8<_0x286f52[_0x20bf('0xf9')];_0x1e46c8++){if(_0x512674[_0x20bf('0xfc')]&&_0x20bf('0xa3')==_0x286f52[_0x1e46c8]['type'])return _0x512674['isAddSuggestion']=_0x286f52[_0x1e46c8],void delete _0x512674['isAdded'];if(!_0x512674['isAdded']&&!_0x512674[_0x20bf('0xde')]&&_0x20bf('0x29')==_0x286f52[_0x1e46c8][_0x20bf('0xfd')])return void(_0x512674['isRemoveSuggestion']=_0x286f52[_0x1e46c8]);}}}[_0x20bf('0xea')](_0x58528b,_0x3add6){let _0x14dbb6=0x0,_0x229732=!0x1;const _0x136635=new Map();for(const _0x558a22 of _0x58528b)_0x558a22[_0x3add6]?_0x229732&&(_0x14dbb6++,_0x229732=!0x1):(_0x14dbb6++,_0x229732=!0x0),_0x136635['set'](_0x558a22['id'],_0x14dbb6);for(let _0x2a88de=0x0;_0x2a88de<_0x58528b['length'];_0x2a88de++){if(_0x20bf('0xde')==_0x3add6&&_0x58528b[_0x2a88de]['isAdded']||_0x20bf('0xfc')==_0x3add6&&_0x58528b[_0x2a88de][_0x20bf('0xde')])continue;if(_0x20bf('0x52')==_0x58528b[_0x2a88de][_0x20bf('0xfd')]){_0x58528b[_0x2a88de][_0x20bf('0xef')]=0x0;continue;}const _0x2ff741=_0x136635[_0x20bf('0xc3')](_0x58528b[_0x2a88de][_0x20bf('0x16')]),_0x379f0c=_0x136635[_0x20bf('0xc3')](_0x58528b[_0x2a88de]['id']);_0x58528b[_0x2a88de][_0x20bf('0xef')]=_0x2ff741-_0x379f0c;}}[_0x20bf('0xa7')](_0x506027,_0x579c4a,_0x1c0ea0=!0x1){const _0xb504e6=[];let _0x4aee3f=this['repository']['getIndex'](_0x506027),_0x598cc0=this[_0x20bf('0xe6')][_0x20bf('0xad')](_0x579c4a);for(-0x1==_0x598cc0&&(_0x598cc0=this['repository'][_0x20bf('0xdb')][_0x20bf('0xf9')],_0x1c0ea0=!0x1);_0x4aee3f<_0x598cc0;)_0xb504e6['push'](this[_0x20bf('0xe6')]['getRevision'](_0x4aee3f)),_0x4aee3f++;return _0x1c0ea0&&_0xb504e6[_0x20bf('0x79')](this['repository'][_0x20bf('0x67')](_0x4aee3f)),_0xb504e6;}[_0x20bf('0x11a')](_0x17650a,_0x4d5b10,_0x3af90b,_0x56b112){const _0x34c762=this[_0x20bf('0x36')]['model'][_0x20bf('0xc8')];let _0x401792=_0x4d5b10;for(;_0x17650a[_0x401792]&&_0x17650a[_0x401792][_0x20bf('0xfc')];)_0x401792++;let _0x448052=_0x56b112;for(;_0x3af90b[_0x448052]&&_0x3af90b[_0x448052][_0x20bf('0xde')];)_0x448052++;_0x53be8a(_0x17650a,_0x4d5b10,_0x401792),_0x53be8a(_0x3af90b,_0x56b112,_0x448052);const _0x139061=_0x3af90b['slice'](_0x56b112,_0x448052)['concat'](_0x17650a[_0x20bf('0x2f')](_0x4d5b10,_0x401792));return _0x139061['sort']((_0x414911,_0x59ba7b)=>_0x414911[_0x20bf('0x9d')]!=_0x59ba7b[_0x20bf('0x9d')]?_0x414911[_0x20bf('0x9d')]-_0x59ba7b[_0x20bf('0x9d')]:_0x414911[_0x20bf('0x99')]!=_0x59ba7b['level']?_0x414911[_0x20bf('0x99')]-_0x59ba7b[_0x20bf('0x99')]:_0x414911[_0x20bf('0xef')]!=_0x59ba7b['distance']?_0x59ba7b[_0x20bf('0xef')]-_0x414911[_0x20bf('0xef')]:!!_0x414911[_0x20bf('0xfc')]!=!!_0x59ba7b[_0x20bf('0xfc')]?-0x1==_0x414911[_0x20bf('0x9d')]||0x0==_0x414911[_0x20bf('0x9d')]?_0x414911[_0x20bf('0xfc')]?-0x1:0x1:_0x414911[_0x20bf('0xfc')]?0x1:-0x1:_0x414911[_0x20bf('0x94')]-_0x59ba7b[_0x20bf('0x94')]),{'commonTape':_0x139061,'iEnd':_0x401792,'jEnd':_0x448052};function _0x53be8a(_0x451e52,_0x409d73,_0xd1772a){let _0x55f9c3=-0x1,_0xfa35b=Number['POSITIVE_INFINITY'],_0x9c7312=!0x0;for(let _0x541fd2=_0x409d73;_0x541fd2<_0xd1772a;_0x541fd2++)if(_0x34c762[_0x20bf('0xba')](_0x451e52[_0x541fd2]['item'])||(_0x9c7312=!0x1),_0x451e52[_0x541fd2][_0x20bf('0x34')]['startIndex']<_0x409d73&&(_0x55f9c3=_0x541fd2),_0x451e52[_0x541fd2][_0x20bf('0x34')][_0x20bf('0x117')]>=_0xd1772a){_0xfa35b=_0x541fd2;break;}_0x9c7312&&(_0x55f9c3=_0xd1772a-0x1);for(let _0x21113f=_0x409d73;_0x21113f<_0xd1772a;_0x21113f++)_0x451e52[_0x21113f][_0x20bf('0x9d')]=_0x21113f<=_0x55f9c3?-0x1:_0x21113f<_0xfa35b?0x0:0x1,_0x451e52[_0x21113f]['index']=_0x21113f;let _0x4376b1=0x0;for(let _0x301263=_0x409d73;_0x301263<=_0x55f9c3;_0x301263++)0x0==_0x451e52[_0x301263][_0x20bf('0xef')]?_0x451e52[_0x301263]['level']=_0x4376b1:(_0x4376b1++,_0x451e52[_0x301263]['level']=_0x4376b1,_0x4376b1++);for(let _0x1219f3=_0x409d73;_0x1219f3<_0xd1772a;_0x1219f3++)0x0==_0x451e52[_0x1219f3][_0x20bf('0x9d')]&&(_0x451e52[_0x1219f3][_0x20bf('0x99')]=_0x4376b1);_0x4376b1=0x0;for(let _0x11bbe8=_0xd1772a-0x1;_0x11bbe8>=_0xfa35b;_0x11bbe8--)0x0==_0x451e52[_0x11bbe8][_0x20bf('0xef')]?_0x451e52[_0x11bbe8][_0x20bf('0x99')]=_0x4376b1:(_0x4376b1--,_0x451e52[_0x11bbe8][_0x20bf('0x99')]=_0x4376b1,_0x4376b1--);}}[_0x20bf('0x17')](_0x4d19f9){const _0x2f1c56=new Map(),_0x523670=this[_0x20bf('0x36')]['model'][_0x20bf('0xc8')];for(let _0x27a5f2=0x1;_0x27a5f2<_0x4d19f9[_0x20bf('0xf9')];_0x27a5f2++){let _0x5bf453,_0x2d3fc0,_0x290770;const _0x13b9c6=_0x4d19f9[_0x27a5f2],_0x1ad827=_0x4d19f9[_0x27a5f2-0x1];if(_0x20bf('0x52')==_0x13b9c6[_0x20bf('0xfd')])continue;if(_0x13b9c6['type']!=_0x1ad827[_0x20bf('0xfd')])continue;if(!_0x523670[_0x20bf('0x118')](_0x1ad827['item'])||_0x523670[_0x20bf('0x4a')](_0x1ad827[_0x20bf('0x34')]))continue;if(!_0x523670[_0x20bf('0x118')](_0x13b9c6['item'])||_0x523670[_0x20bf('0x4a')](_0x13b9c6[_0x20bf('0x34')]))continue;if((_0x4d19f9[_0x27a5f2]['isAdded']||_0x4d19f9[_0x27a5f2]['isAddSuggestion'])&&_0x4d19f9[_0x27a5f2-0x1]['isRemoved'])_0x5bf453=_0x4d19f9[_0x27a5f2],_0x2d3fc0=_0x4d19f9[_0x27a5f2-0x1],_0x290770=_0x27a5f2-0x1;else{if(!_0x4d19f9[_0x27a5f2][_0x20bf('0xde')]||!_0x4d19f9[_0x27a5f2-0x1][_0x20bf('0xfc')]&&!_0x4d19f9[_0x27a5f2-0x1][_0x20bf('0xb7')])continue;_0x5bf453=_0x4d19f9[_0x27a5f2-0x1],_0x2d3fc0=_0x4d19f9[_0x27a5f2],_0x290770=_0x27a5f2;}const _0x3692d4=_0x5bf453[_0x20bf('0x99')]==_0x2d3fc0[_0x20bf('0x99')],_0x2184c5=Math[_0x20bf('0x3c')](_0x5bf453[_0x20bf('0x99')])<Math[_0x20bf('0x3c')](_0x2d3fc0[_0x20bf('0x99')])&&0x0==_0x2d3fc0[_0x20bf('0xef')];(_0x3692d4||_0x2184c5)&&(_0x2f1c56[_0x20bf('0xce')](_0x2d3fc0['id'],_0x5bf453['id']),_0x4d19f9[_0x20bf('0x3d')](_0x290770,0x1),_0x27a5f2--,_0x5bf453['isAdded']=!0x1);}for(let _0xd31b39=0x0;_0xd31b39<_0x4d19f9[_0x20bf('0xf9')];_0xd31b39++)_0x2f1c56[_0x20bf('0x115')](_0x4d19f9[_0xd31b39][_0x20bf('0x16')])&&(_0x4d19f9[_0xd31b39][_0x20bf('0x16')]=_0x2f1c56['get'](_0x4d19f9[_0xd31b39][_0x20bf('0x16')]));}[_0x20bf('0x65')](_0x236e9d){const _0x7937f1=new Set(_0x236e9d[_0x20bf('0x10d')](_0x542151=>_0x542151['id']));for(let _0x4c7362=0x0;_0x4c7362<_0x236e9d['length'];_0x4c7362++)_0x7937f1[_0x20bf('0x115')](_0x236e9d[_0x4c7362][_0x20bf('0x16')])||0x0==_0x236e9d[_0x4c7362]['distance']||(_0x236e9d[_0x4c7362][_0x20bf('0x5c')]=!0x0);return _0x236e9d[_0x20bf('0x41')](_0x3ecda7=>!_0x3ecda7[_0x20bf('0x5c')]);}[_0x20bf('0x40')](_0x317ad0){const _0x1dba82=new Set();for(let _0x292791=0x0;_0x292791<_0x317ad0[_0x20bf('0xf9')];_0x292791++){if(_0x1dba82['has'](_0x317ad0[_0x292791]['id'])&&_0x317ad0[_0x292791][_0x20bf('0xde')]&&(_0x317ad0[_0x292791][_0x20bf('0x5c')]=!0x0),_0x317ad0[_0x292791][_0x20bf('0x5c')])continue;if(0x0==_0x317ad0[_0x292791][_0x20bf('0xef')])continue;if(_0x20bf('0x2')!=_0x317ad0[_0x292791][_0x20bf('0xfd')])continue;if(null==_0x317ad0[_0x292791][_0x20bf('0x16')])continue;let _0x275040=_0x292791+0x1,_0x4d0c63=0x0;for(;_0x317ad0[_0x275040]['id']!=_0x317ad0[_0x292791][_0x20bf('0x16')];)_0x20bf('0x2')==_0x317ad0[_0x275040]['type']?_0x4d0c63++:_0x20bf('0x5b')==_0x317ad0[_0x275040]['type']&&_0x4d0c63--,_0x275040++;if(0x0!=_0x4d0c63){if(_0x317ad0[_0x292791][_0x20bf('0xde')])_0x317ad0[_0x292791][_0x20bf('0x5c')]=!0x0;else for(;_0x275040!=_0x292791;)_0x317ad0[_0x275040][_0x20bf('0xde')]&&0x0!=_0x317ad0[_0x275040][_0x20bf('0xef')]&&(_0x317ad0[_0x275040][_0x20bf('0x5c')]=!0x0,_0x1dba82['add'](_0x317ad0[_0x275040][_0x20bf('0x16')])),_0x275040--;}}return _0x317ad0[_0x20bf('0x41')](_0xec4ae9=>!_0xec4ae9[_0x20bf('0x5c')]);}['_removeUnsupportedChanges'](_0x19e840){const _0x377ee4=this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0xc8')];for(let _0x487230=0x0;_0x487230<_0x19e840[_0x20bf('0xf9')];_0x487230++){if(!(_0x19e840[_0x487230][_0x20bf('0xfc')]||_0x19e840[_0x487230][_0x20bf('0xb7')]||_0x19e840[_0x487230][_0x20bf('0xde')]||_0x19e840[_0x487230][_0x20bf('0x18')]))continue;if(0x0==_0x19e840[_0x487230][_0x20bf('0xef')])continue;const _0xcfe21b=_0x19e840[_0x487230][_0x20bf('0x34')];_0x377ee4[_0x20bf('0x118')](_0xcfe21b)||_0x377ee4[_0x20bf('0x4a')](_0xcfe21b)||(_0x19e840[_0x487230][_0x20bf('0xfc')]&&delete _0x19e840[_0x487230][_0x20bf('0xfc')],_0x19e840[_0x487230][_0x20bf('0xb7')]&&delete _0x19e840[_0x487230][_0x20bf('0xb7')],_0x19e840[_0x487230][_0x20bf('0x18')]&&delete _0x19e840[_0x487230][_0x20bf('0x18')],_0x19e840[_0x487230][_0x20bf('0xde')]&&(_0x19e840[_0x487230][_0x20bf('0x5c')]=!0x0));}return _0x19e840[_0x20bf('0x41')](_0x23aad0=>!_0x23aad0['isIncorrect']);}[_0x20bf('0x82')](_0x261202,_0x122769,_0x57e6fe){const _0x4d5c08=new _0x5600b3(),_0x233a51=[],_0x5c5d8d=new Map(),_0x2df721=this[_0x20bf('0x36')][_0x20bf('0x113')],_0x4c1849=_0x2df721[_0x20bf('0xc8')],_0x463417=[_0x4d5c08],_0x5865f2={},_0x5dadbd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24cd63=null;const _0x5506dd=[0x0];for(let _0x56133e=0x0;_0x56133e<_0x261202[_0x20bf('0xf9')];_0x56133e++){let _0x29dcfd,_0x3806ac;if(_0x20bf('0x2')===_0x261202[_0x56133e][_0x20bf('0xfd')]){_0x29dcfd=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd);const _0x4fdabf=new _0xf7bb48(_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xa4')],_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xab')]());_0x463417[0x0]['_appendChild'](_0x4fdabf),_0x5506dd['push'](0x0),_0x463417['unshift'](_0x4fdabf),_0x3806ac=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd),_0x24cd63=null;}else{if(_0x20bf('0x5b')===_0x261202[_0x56133e]['type'])_0x463417[_0x20bf('0x1')](),_0x29dcfd=_0x2df721['createPositionFromPath'](_0x4d5c08,_0x5506dd),_0x5506dd['pop'](),_0x5506dd[_0x5506dd[_0x20bf('0xf9')]-0x1]++,_0x3806ac=_0x2df721['createPositionFromPath'](_0x4d5c08,_0x5506dd),_0x24cd63=null;else{if(_0x29dcfd=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd),_0x24cd63&&_0x5f05aa(_0x24cd63,_0x261202[_0x56133e][_0x20bf('0x34')]))_0x24cd63[_0x20bf('0x10')]+=_0x261202[_0x56133e][_0x20bf('0x34')]['data'];else{const _0x309d69=new _0x43992d(_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xf3')],_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xab')]());_0x463417[0x0][_0x20bf('0xbd')](_0x309d69),_0x24cd63=_0x309d69;}_0x5506dd[_0x5506dd[_0x20bf('0xf9')]-0x1]+=_0x261202[_0x56133e]['item'][_0x20bf('0x84')],_0x3806ac=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd);}}for(const _0x2b47c4 of _0x261202[_0x56133e][_0x20bf('0x19')])_0x5c5d8d['set'](_0x2b47c4,{'start':_0x29dcfd,'end':null});_0x5408b6(_0x20bf('0x18'),_0x56133e,_0x29dcfd,_0x3806ac),_0x5408b6(_0x20bf('0xb7'),_0x56133e,_0x29dcfd,_0x3806ac),_0x5408b6(_0x20bf('0xde'),_0x56133e,_0x29dcfd,_0x3806ac),_0x5408b6(_0x20bf('0xfc'),_0x56133e,_0x29dcfd,_0x3806ac);for(const _0x2e7735 of _0x261202[_0x56133e][_0x20bf('0x58')]){_0x5c5d8d[_0x20bf('0xc3')](_0x2e7735)['end']=_0x3806ac;}}for(const [_0x38c9ac,_0x227a63]of _0x5c5d8d){const _0x4724dc=this['editor'][_0x20bf('0x113')][_0x20bf('0x42')](_0x227a63[_0x20bf('0xf0')],_0x227a63[_0x20bf('0xec')]);_0x4d5c08[_0x20bf('0x10b')][_0x20bf('0xce')](_0x38c9ac,_0x4724dc);}return _0x233a51['sort']((_0x535448,_0x1434a2)=>{const _0x46ff96=_0x4d5c08[_0x20bf('0x10b')]['get']('revision:'+_0x535448['id']),_0x1aa11f=_0x4d5c08[_0x20bf('0x10b')]['get'](_0x20bf('0x44')+_0x1434a2['id']);return _0x46ff96[_0x20bf('0xf0')][_0x20bf('0xe')](_0x1aa11f[_0x20bf('0xf0')])?-0x1:_0x46ff96[_0x20bf('0xf0')][_0x20bf('0x103')](_0x1aa11f[_0x20bf('0xf0')])?0x1:_0x46ff96['end'][_0x20bf('0xe')](_0x1aa11f['end'])?-0x1:_0x46ff96[_0x20bf('0xec')][_0x20bf('0x103')](_0x1aa11f[_0x20bf('0xec')])?0x1:'add'===_0x535448[_0x20bf('0xfd')]?-0x1:0x1;}),{'root':_0x4d5c08,'changes':_0x233a51};function _0x5408b6(_0x525ed5,_0x384e91,_0x115f68,_0x55c082){const _0x1a022f=!!_0x261202[_0x384e91][_0x525ed5],_0x198fd2=_0x1a022f?_0x261202[_0x384e91][_0x525ed5][_0x20bf('0x64')]:null,_0x55569a=_0x384e91===_0x261202['length']-0x1,_0x3bb3bf=_0x5dadbd[_0x525ed5][0x0],_0x52f8a2=_0x4c1849['isObject'](_0x261202[_0x384e91][_0x20bf('0x34')]);!_0x5865f2[_0x525ed5]&&_0x1a022f?_0x5865f2[_0x525ed5]={'start':_0x115f68,'tapeItem':_0x261202[_0x384e91],'userId':_0x198fd2,'type':_0x525ed5}:_0x5865f2[_0x525ed5]&&!_0x1a022f?(_0x5865f2[_0x525ed5][_0x20bf('0xec')]=_0x115f68,_0x168125(_0x5865f2[_0x525ed5]),_0x5865f2[_0x525ed5]=null):_0x5865f2[_0x525ed5]&&_0x1a022f&&_0x5865f2[_0x525ed5]['userId']!==_0x198fd2&&(_0x5865f2[_0x525ed5]['end']=_0x115f68,_0x3bb3bf&&_0x3bb3bf[_0x20bf('0x64')]===_0x5865f2[_0x525ed5][_0x20bf('0x64')]||_0x168125(_0x5865f2[_0x525ed5]),_0x5865f2[_0x525ed5]={'start':_0x115f68,'tapeItem':_0x261202[_0x384e91],'userId':_0x198fd2,'type':_0x525ed5}),_0x5865f2[_0x525ed5]&&_0x52f8a2&&(_0x20bf('0x2')!==_0x261202[_0x384e91][_0x20bf('0xfd')]||_0x3bb3bf&&_0x3bb3bf['userId']===_0x198fd2||_0x5dadbd[_0x525ed5][_0x20bf('0x11e')]({'userId':_0x198fd2,'object':_0x261202[_0x384e91][_0x20bf('0x34')],'change':_0x5865f2[_0x525ed5]}),_0x20bf('0x5b')===_0x261202[_0x384e91][_0x20bf('0xfd')]&&_0x3bb3bf&&_0x3bb3bf[_0x20bf('0x5a')]===_0x261202[_0x384e91][_0x20bf('0x34')]&&(_0x5dadbd[_0x525ed5][_0x20bf('0x1')](),_0x5865f2[_0x525ed5]=_0x3bb3bf[_0x20bf('0x14')])),_0x5865f2[_0x525ed5]&&_0x55569a&&(_0x5865f2[_0x525ed5]['end']=_0x55c082,_0x168125(_0x5865f2[_0x525ed5]),_0x5865f2[_0x525ed5]=null);}function _0x168125({start:_0x45f6ab,end:_0x3ab7e6,tapeItem:_0x6d1431,userId:_0x186f34,type:_0x403b4a}){const _0x2fbd81=_0x6d1431[_0x20bf('0x34')],_0x5cf701=_0x2df721[_0x20bf('0xc8')][_0x20bf('0x118')](_0x2fbd81)&&!_0x2df721['schema']['isLimit'](_0x2fbd81),_0x4e3e49=_0x45f6ab[_0x20bf('0xff')]==_0x3ab7e6[_0x20bf('0xb2')]&&_0x3ab7e6[_0x20bf('0x107')];if(_0x5cf701&&_0x4e3e49)return;const _0x321ba5=_0x2df721[_0x20bf('0x42')](_0x45f6ab,_0x3ab7e6),_0x473750=_0x122769[_0x20bf('0xc3')](_0x186f34),_0x1a8260=new _0x45af27({'author':_0x473750,'type':_0x20bf('0xfc')==_0x403b4a||_0x20bf('0xb7')==_0x403b4a?'add':_0x20bf('0xd8'),'data':{'isSuggestion':_0x20bf('0xb7')==_0x403b4a||_0x20bf('0x18')==_0x403b4a},'createdAt':new Date(),'rootName':_0x57e6fe});_0x233a51[_0x20bf('0x79')](_0x1a8260),_0x4d5c08['markers']['set'](_0x20bf('0x44')+_0x1a8260['id'],_0x321ba5);}function _0x5f05aa(_0x218a71,_0x582e07){const _0x282292=_0x218a71['getAttributes'](),_0x1f80d3=_0x582e07[_0x20bf('0xab')]();for(const _0x338e80 of _0x282292){if(_0x338e80[0x1]!==_0x582e07['getAttribute'](_0x338e80[0x0]))return!0x1;_0x1f80d3['next']();}return _0x1f80d3[_0x20bf('0xf')]()[_0x20bf('0x3f')];}}[_0x20bf('0x105')](){this[_0x20bf('0x36')][_0x20bf('0x15')]['for'](_0x20bf('0xe9'))[_0x20bf('0xbc')]({'view':_0x20bf('0x22')}),this['editor'][_0x20bf('0x15')][_0x20bf('0xd2')]('editingDowncast')[_0x20bf('0x48')]({'model':'revision','view':_0x2749a7=>{const _0x2dc8ea=_0x2749a7[_0x20bf('0xc9')][_0x20bf('0x55')](':')[0x1],_0x225dd5=this['_getChangeFromId'](_0x2dc8ea);if(!_0x225dd5)return null;const _0x1de0cc=_0x20bf('0xe0')==_0x225dd5[_0x20bf('0xfd')]?_0x20bf('0xa3'):_0x20bf('0x29'),_0x2e41b6=[_0x20bf('0x35'),_0x20bf('0x78')+_0x1de0cc];return _0x225dd5[_0x20bf('0xf3')][_0x20bf('0xb3')]&&_0x2e41b6[_0x20bf('0x79')](_0x20bf('0x78')+_0x1de0cc+_0x20bf('0x4b')),this[_0x20bf('0x1d')]==_0x225dd5&&_0x2e41b6[_0x20bf('0x79')]('ck-suggestion-marker--active'),{'classes':_0x2e41b6,'attributes':{'data-change-id':_0x2dc8ea}};}}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')]('upcast')[_0x20bf('0xe0')](_0x899518=>{_0x899518['on'](_0x20bf('0xfa'),(_0x5f5553,_0x1aed45,_0x55e4a8)=>{const _0x9082fa=_0x1aed45[_0x20bf('0x6a')][_0x20bf('0x4e')](0x0);if(!_0x9082fa||!_0x9082fa['is'](_0x20bf('0x9c'),_0x20bf('0x6')))return;if(!_0x55e4a8[_0x20bf('0xaf')][_0x20bf('0xe3')](_0x9082fa,{'attributes':[_0x20bf('0xd0'),'vid_end']}))return;const _0x5bc862=_0x1aed45[_0x20bf('0xbe')][_0x20bf('0xf0')]['nodeAfter'];_0x55e4a8[_0x20bf('0x4d')][_0x20bf('0x31')](_0x20bf('0xd0'),_0x9082fa[_0x20bf('0x10c')]('vid_start'),_0x5bc862),_0x55e4a8[_0x20bf('0x4d')]['setAttribute'](_0x20bf('0xa2'),_0x9082fa[_0x20bf('0x10c')](_0x20bf('0xa2')),_0x5bc862);},{'priority':_0x20bf('0x53')});}),this[_0x20bf('0x36')][_0x20bf('0x15')]['for'](_0x20bf('0xe9'))[_0x20bf('0xe0')](_0x83a821=>{_0x83a821['on']('element',(_0x56c89f,_0x2de912,_0x5e0c33)=>{if(!_0x5e0c33['consumable']['consume'](_0x2de912[_0x20bf('0x6a')],{'attributes':[_0x20bf('0xd0'),_0x20bf('0xa2')]}))return;if(_0x2de912['modelRange'][_0x20bf('0x68')])return;const _0x4bc4c2=_0x2de912['modelRange'][_0x20bf('0xf0')][_0x20bf('0xff')];_0x4bc4c2[_0x20bf('0x73')](_0x20bf('0xd0'))||_0x4bc4c2[_0x20bf('0x73')](_0x20bf('0x76'))||(_0x5e0c33[_0x20bf('0x4d')][_0x20bf('0x31')](_0x20bf('0xd0'),_0x2de912[_0x20bf('0x6a')][_0x20bf('0x10c')](_0x20bf('0xd0')),_0x4bc4c2),_0x5e0c33[_0x20bf('0x4d')]['setAttribute'](_0x20bf('0xa2'),_0x2de912[_0x20bf('0x6a')]['getAttribute'](_0x20bf('0xa2')),_0x4bc4c2));},{'priority':_0x20bf('0x53')});}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')](_0x20bf('0xe9'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1cc5fa=>_0x1cc5fa[_0x20bf('0x10c')](_0x20bf('0x76'))}}),this['editor']['model'][_0x20bf('0xc8')]['on']('checkAttribute',(_0x3f3854,[,_0x1f3141])=>{[_0x20bf('0xd0'),'vid_end',_0x20bf('0x76')]['includes'](_0x1f3141)&&(_0x3f3854[_0x20bf('0x45')]=!0x0,_0x3f3854[_0x20bf('0x59')]());},{'priority':'highest'}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')]('dataDowncast')['add'](_0x142df4=>{_0x142df4['on']('attribute:vid',(_0x28f6f6,_0x4d1275,_0xca3190)=>{if('\x20'!=_0x4d1275[_0x20bf('0x34')][_0x20bf('0xf3')]||_0x4d1275['item'][_0x20bf('0xb2')][_0x20bf('0x5d')]>0x1)return;if(!_0xca3190[_0x20bf('0xaf')][_0x20bf('0xe3')](_0x4d1275[_0x20bf('0x34')],_0x28f6f6['name']))return;const _0x3970c3=_0xca3190['writer'],_0x11dc4b=_0xca3190['mapper']['toViewRange'](_0x4d1275[_0x20bf('0xa1')]);_0x3970c3[_0x20bf('0x2e')](_0x11dc4b,_0x3970c3[_0x20bf('0xc7')](_0x20bf('0x77')));});}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')](_0x20bf('0x91'))[_0x20bf('0x93')]({'model':_0x20bf('0x22')}),this[_0x20bf('0x36')]['editing']['downcastDispatcher']['on'](_0x20bf('0x50'),function(_0xdf0535){const _0x532b5f=_0xdf0535[_0x20bf('0x3a')][_0x20bf('0xc3')](_0x20bf('0xb5'));return(_0x972bfd,_0x4615a5,_0x150ff8)=>{const _0xd85606=_0x4615a5[_0x20bf('0xc9')]['split'](':')[0x1],_0x3fd800=_0x532b5f['_getChangeFromId'](_0xd85606);if(!_0x3fd800)return null;const _0x5d5ab5=_0x20bf('0xe0')==_0x3fd800[_0x20bf('0xfd')]?_0x20bf('0x55'):_0x20bf('0x81');if(!_0x150ff8[_0x20bf('0xaf')][_0x20bf('0x104')](_0x4615a5[_0x20bf('0x5f')],_0x972bfd[_0x20bf('0xa4')]))return;const _0x171963=_0x4615a5['markerRange'][_0x20bf('0x9f')](),_0x5b1d08=_0x4615a5[_0x20bf('0x5f')][_0x20bf('0xf0')],_0x245f83=_0xdf0535['model'][_0x20bf('0xc8')];let _0x25818c=null,_0x3483bd=null,_0x5199c5=!0x1,_0x4f144c=!0x1;for(const _0xe69ec of _0x171963){const _0x73b228=_0xe69ec[_0x20bf('0x34')];_0x5199c5=_0x5199c5||_0x245f83['isContent'](_0x73b228);const _0x4c322f=_0x150ff8[_0x20bf('0xc1')][_0x20bf('0x2b')](_0x73b228);if(_0x4c322f&&_0x4c322f[_0x20bf('0x8b')](_0x20bf('0x10f')))return;_0x20bf('0x5b')==_0xe69ec[_0x20bf('0xfd')]&&(_0x245f83[_0x20bf('0x118')](_0x73b228)&&!_0x245f83[_0x20bf('0x4a')](_0x73b228)&&(_0x73b228[_0x20bf('0xf7')]||_0x5b1d08[_0x20bf('0xe4')]?_0x25818c&&_0x25818c[_0x20bf('0xb2')]==_0x73b228||(_0x25818c=_0x73b228,_0x29ae71(_0xe69ec[_0x20bf('0x4f')]),_0x4f144c=!0x0):_0x3483bd=_0x3483bd||_0xe69ec[_0x20bf('0x4f')]));}function _0x29ae71(_0x45f488){const _0x60fd37=_0x150ff8[_0x20bf('0x4d')][_0x20bf('0x95')](_0x20bf('0x77'),{'class':_0x20bf('0x78')+_0x5d5ab5}),_0x51d1f3=_0x150ff8[_0x20bf('0xc1')][_0x20bf('0xe8')](_0x45f488);_0x3fd800[_0x20bf('0xf3')]['isSuggestion']&&_0x150ff8[_0x20bf('0x4d')][_0x20bf('0xb0')](_0x20bf('0x78')+_0x5d5ab5+_0x20bf('0x4b'),_0x60fd37),_0x532b5f[_0x20bf('0x1d')]==_0x3fd800&&_0x150ff8[_0x20bf('0x4d')][_0x20bf('0xb0')](_0x20bf('0x30'),_0x60fd37),_0x150ff8['writer'][_0x20bf('0x7d')](_0x51d1f3,_0x60fd37),_0x150ff8[_0x20bf('0xc1')]['bindElementToMarker'](_0x60fd37,_0x4615a5[_0x20bf('0xc9')]);}_0x5199c5||_0x4f144c||!_0x3483bd||_0x29ae71(_0x3483bd);};}(this['editor']),{'priority':_0x20bf('0xee')}),this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0xd')]['on'](_0x20bf('0x10a'),(_0x18789d,_0x4c8b74,_0x52d05d)=>{const _0x1dde47=_0x52d05d[_0x20bf('0xc1')][_0x20bf('0x7')](_0x4c8b74[_0x20bf('0xc9')]);if(_0x1dde47)for(const _0x2c829e of _0x1dde47)(_0x2c829e['hasClass'](_0x20bf('0x9a'))||_0x2c829e['hasClass'](_0x20bf('0xae')))&&(_0x52d05d[_0x20bf('0xc1')][_0x20bf('0x1c')](_0x2c829e,_0x4c8b74[_0x20bf('0xc9')]),_0x52d05d[_0x20bf('0x4d')][_0x20bf('0xd8')](_0x2c829e));},{'priority':'high'}),this['editor'][_0x20bf('0xda')]['downcastDispatcher']['on']('addMarker:revision',(_0x534fb1,_0x4bf8b3,_0xa2460d)=>{const _0x26e607=_0x4bf8b3[_0x20bf('0xc9')][_0x20bf('0x55')](':')[0x1],_0x2549d7=this[_0x20bf('0x89')](_0x26e607);if(!_0x2549d7)return null;const _0x455818=_0x20bf('0xe0')==_0x2549d7[_0x20bf('0xfd')]?_0x20bf('0x55'):'merge';if(_0xa2460d['consumable'][_0x20bf('0x104')](_0x4bf8b3['markerRange'],_0x534fb1[_0x20bf('0xa4')]))for(const _0x35fe44 of _0x4bf8b3[_0x20bf('0x5f')][_0x20bf('0x8')]()){if(!_0x35fe44['is'](_0x20bf('0x9c'),_0x20bf('0x46')))continue;const _0x4fc1b9=_0xa2460d['writer'][_0x20bf('0x95')](_0x20bf('0x77'),{'class':_0x20bf('0x78')+_0x455818}),_0x148133=_0xa2460d['mapper'][_0x20bf('0xe8')](this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x2c')](_0x35fe44));_0x2549d7[_0x20bf('0xf3')][_0x20bf('0xb3')]&&_0xa2460d['writer'][_0x20bf('0xb0')](_0x20bf('0x78')+_0x455818+_0x20bf('0x4b'),_0x4fc1b9),this[_0x20bf('0x1d')]==_0x2549d7&&_0xa2460d['writer'][_0x20bf('0xb0')](_0x20bf('0x30'),_0x4fc1b9),_0xa2460d[_0x20bf('0x4d')]['insert'](_0x148133,_0x4fc1b9),_0xa2460d['mapper'][_0x20bf('0xcf')](_0x4fc1b9,_0x4bf8b3[_0x20bf('0xc9')]);}},{'priority':_0x20bf('0xee')}),this[_0x20bf('0x36')][_0x20bf('0x113')]['document']['on'](_0x20bf('0x14'),()=>{this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x14')](_0x2ce9c9=>{for(const _0x4c3e3f of this['editor'][_0x20bf('0x113')][_0x20bf('0x8f')][_0x20bf('0x98')]()){const _0x3e5f50=this[_0x20bf('0x36')][_0x20bf('0x113')]['document'][_0x20bf('0xbb')](_0x4c3e3f),_0x8fe38f=this[_0x20bf('0x36')]['editing']['view']['document'][_0x20bf('0xbb')](_0x4c3e3f);if(_0x8fe38f){const _0x148379=_0x3e5f50[_0x20bf('0x10c')](_0x20bf('0xd5'));if(_0x2ce9c9['removeAttribute']('data-change-id',_0x8fe38f),_0x2ce9c9[_0x20bf('0xc4')](_0x20bf('0x9'),_0x8fe38f),_0x2ce9c9[_0x20bf('0xc4')](_0x20bf('0xfb'),_0x8fe38f),_0x2ce9c9[_0x20bf('0xc4')]('ck-revision-history-root--active',_0x8fe38f),_0x148379){const _0x723644=this['_getChangeFromId'](_0x148379);if(!_0x723644)return null;_0x2ce9c9[_0x20bf('0x31')]('data-change-id',_0x148379,_0x8fe38f),_0x2ce9c9[_0x20bf('0xb0')](_0x20bf('0x20')+_0x723644[_0x20bf('0xfd')],_0x8fe38f),this[_0x20bf('0x1d')]==_0x723644&&_0x2ce9c9[_0x20bf('0xb0')](_0x20bf('0x3'),_0x8fe38f);}}}});}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')](_0x20bf('0xe9'))['dataToMarker']({'view':_0x20bf('0x86'),'model':_0x56b76e=>_0x20bf('0x69')+_0x56b76e,'converterPriority':_0x20bf('0x4c')}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')]('upcast')['dataToMarker']({'view':_0x20bf('0xd1'),'model':_0x123af3=>_0x20bf('0xd3')+_0x123af3,'converterPriority':_0x20bf('0x4c')}),this[_0x20bf('0x36')]['conversion']['for'](_0x20bf('0x91'))[_0x20bf('0x93')]({'model':'revision-suggestion','view':_0x214cf5=>({'name':_0x20bf('0xc')+_0x214cf5,'group':'revision-suggestion'}),'converterPriority':_0x20bf('0x4c')}),this[_0x20bf('0x36')][_0x20bf('0x15')]['for'](_0x20bf('0x2a'))[_0x20bf('0x48')]({'model':_0x20bf('0xc6'),'view':_0x31c074=>{const _0x1bdb0c=_0x31c074['markerName'][_0x20bf('0x55')](':')[0x1];return _0x20bf('0xa3')!=_0x1bdb0c&&_0x20bf('0x29')!=_0x1bdb0c?null:{'classes':[_0x20bf('0xaa'),'ck-suggestion-preview-marker-'+_0x1bdb0c]};}}),this['editor'][_0x20bf('0xda')][_0x20bf('0xd')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x20bf('0x36')],_0x20bf('0x81')),{'priority':'high'}),this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0xd')]['on'](_0x20bf('0x6e'),et(this[_0x20bf('0x36')],_0x20bf('0x55')),{'priority':_0x20bf('0xee')}),this[_0x20bf('0x36')][_0x20bf('0xda')]['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1974ea,_0x4bd201,_0x2f3da4)=>{const _0x552578=_0x2f3da4[_0x20bf('0xc1')]['markerNameToElements'](_0x4bd201[_0x20bf('0xc9')]);if(_0x552578)for(const _0x3be0e1 of _0x552578)_0x3be0e1['is'](_0x20bf('0xd9'))&&(_0x2f3da4[_0x20bf('0xc1')][_0x20bf('0x1c')](_0x3be0e1,_0x4bd201['markerName']),_0x2f3da4[_0x20bf('0x4d')][_0x20bf('0xd8')](_0x3be0e1));},{'priority':_0x20bf('0xee')});}[_0x20bf('0x89')](_0xbd43b2){return this['_changeIdToChange'][_0x20bf('0xc3')](_0xbd43b2);}[_0x20bf('0x75')](_0x30375f){return this[_0x20bf('0x21')]&&this[_0x20bf('0x21')][_0x20bf('0x37')](),this['_changeView']=new _0x1c09bf(this[_0x20bf('0x36')][_0x20bf('0xdf')],_0x30375f),this['_changeView'];}[_0x20bf('0x97')](){this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x8f')][_0x20bf('0x108')]['observeMarkers'](_0x20bf('0x22')),this['on'](_0x20bf('0x27'),(_0x2c6e6d,_0x1593b2,_0x5537f2,_0x3aad63)=>{_0x3aad63&&this[_0x20bf('0xf6')]['remove'](_0x3aad63),_0x5537f2&&(this[_0x20bf('0xf6')][_0x20bf('0xe0')]({'view':_0x5537f2,'stackId':_0x20bf('0xf5'),'position':{'target':()=>{const _0x59f1fe=this[_0x20bf('0x36')][_0x20bf('0xda')],_0xd03065=this[_0x20bf('0x89')](_0x5537f2[_0x20bf('0x74')]);let _0x3bba55;if(_0xd03065[_0x20bf('0xf3')][_0x20bf('0xb9')]){const _0x21a8a8=_0x59f1fe[_0x20bf('0x1a')][_0x20bf('0x13')](_0xd03065[_0x20bf('0x109')]);_0x3bba55=Array[_0x20bf('0x116')](_0x21a8a8[_0x20bf('0xc5')]());}else{const _0x1a6440=this[_0x20bf('0x36')]['model'][_0x20bf('0x10b')][_0x20bf('0xc3')]('revision:'+_0x5537f2[_0x20bf('0x74')]);_0x3bba55=Array[_0x20bf('0x116')](_0x59f1fe[_0x20bf('0xc1')]['markerNameToElements'](_0x1a6440[_0x20bf('0xa4')]))[_0x20bf('0x10d')](_0x33c6f4=>_0x59f1fe[_0x20bf('0x1a')][_0x20bf('0xf4')][_0x20bf('0x47')](_0x33c6f4))[_0x20bf('0x10d')](_0x448e42=>Array[_0x20bf('0x116')](_0x448e42[_0x20bf('0xc5')]()))[_0x20bf('0xdc')]();}if(!this[_0x20bf('0x110')])return _0x3bba55[0x0];return _0x3bba55['find'](_0x3a6bd8=>_0x3a6bd8[_0x20bf('0x87')]-0x3<=this[_0x20bf('0x110')]['y']&&_0x3a6bd8[_0x20bf('0xe7')]+0x3>=this[_0x20bf('0x110')]['y']&&_0x3a6bd8['left']-0x3<=this[_0x20bf('0x110')]['x']&&_0x3a6bd8[_0x20bf('0x80')]+0x3>=this['_activeViewTarget']['x'])||_0x3bba55[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x40c0ff,_0x47ac37,_0x2ddde0,_0x17ada9)=>{this[_0x20bf('0xa8')]=_0x2ddde0?this[_0x20bf('0x75')](_0x2ddde0):null,this[_0x20bf('0x36')]['model'][_0x20bf('0x14')](()=>{const _0xdb8e39=this[_0x20bf('0x36')][_0x20bf('0xda')];_0x17ada9&&(_0x17ada9[_0x20bf('0xf3')][_0x20bf('0xb9')]?_0xdb8e39['view'][_0x20bf('0x14')](_0x55aebf=>{_0x55aebf[_0x20bf('0xc4')](_0x20bf('0x3'),_0xdb8e39[_0x20bf('0x1a')][_0x20bf('0x8f')]['getRoot'](_0x17ada9[_0x20bf('0x109')]));}):_0xdb8e39['reconvertMarker'](_0x20bf('0x44')+_0x17ada9['id'])),_0x2ddde0&&(_0x2ddde0[_0x20bf('0xf3')][_0x20bf('0xb9')]?_0xdb8e39['view']['change'](_0xb1f107=>{_0xb1f107['addClass'](_0x20bf('0x3'),_0xdb8e39[_0x20bf('0x1a')]['document'][_0x20bf('0xbb')](_0x2ddde0[_0x20bf('0x109')]));}):_0xdb8e39[_0x20bf('0xc2')](_0x20bf('0x44')+_0x2ddde0['id']));});}),this[_0x20bf('0xbf')](this[_0x20bf('0x36')]['editing'][_0x20bf('0x1a')][_0x20bf('0x8f')],_0x20bf('0x49'),(_0x383116,_0x244235)=>{if(this[_0x20bf('0x1d')])return;const _0x134fdd=this[_0x20bf('0xb6')](_0x244235[_0x20bf('0x9b')]),_0x249b8a=this[_0x20bf('0x11f')][_0x20bf('0xc3')](_0x134fdd);_0x249b8a?(this[_0x20bf('0x110')]={'x':_0x244235['domEvent']['x'],'y':_0x244235[_0x20bf('0x114')]['y']},this[_0x20bf('0xa8')]=this[_0x20bf('0x75')](_0x249b8a)):(this[_0x20bf('0x110')]=null,this[_0x20bf('0xa8')]=null);}),this[_0x20bf('0xbf')](this['editor'][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x8f')],_0x20bf('0x26'),(_0x47e0af,_0x55b97f)=>{const _0x37c414=this[_0x20bf('0xb6')](_0x55b97f[_0x20bf('0x9b')]),_0x1463bc=this[_0x20bf('0x11f')][_0x20bf('0xc3')](_0x37c414);_0x1463bc?(this[_0x20bf('0x110')]={'x':_0x55b97f['domEvent']['x'],'y':_0x55b97f[_0x20bf('0x114')]['y']},_0x1463bc===this['activeChange']?this[_0x20bf('0xf6')]['updatePosition']():this[_0x20bf('0x1d')]=_0x1463bc):(this[_0x20bf('0x110')]=null,this[_0x20bf('0x1d')]=null);});}[_0x20bf('0xb6')](_0x17dff2){do{const _0x25af53=_0x17dff2[_0x20bf('0x10c')](_0x20bf('0xeb'));if(_0x25af53)return _0x25af53;_0x17dff2=_0x17dff2[_0x20bf('0xb2')];}while(_0x17dff2);return null;}[_0x20bf('0x8a')](){this[_0x20bf('0x36')]['model'][_0x20bf('0x14')](_0x40d856=>{for(const _0x3c1a70 of this['editor'][_0x20bf('0x113')][_0x20bf('0x10b')])_0x40d856['removeMarker'](_0x3c1a70);});}}function et(_0x4f9f56,_0x4bdc07){return(_0x1d2396,_0x3d2ae2,_0x31a6d4)=>{if(!_0x31a6d4[_0x20bf('0xaf')]['test'](_0x3d2ae2[_0x20bf('0x5f')],_0x1d2396['name']))return;const _0x5a0c55=_0x3d2ae2['markerRange'][_0x20bf('0x9f')](),_0x3a8371=_0x3d2ae2['markerRange'][_0x20bf('0xf0')],_0x20afd2=_0x4f9f56[_0x20bf('0x113')][_0x20bf('0xc8')];let _0x5d8fd4=null,_0x4d4efa=null,_0xe15e3b=!0x1,_0x3be90b=!0x1;for(const _0x3a6637 of _0x5a0c55){const _0x25b499=_0x3a6637['item'];_0xe15e3b=_0xe15e3b||_0x20afd2[_0x20bf('0xcb')](_0x25b499);const _0x16f646=_0x31a6d4['mapper'][_0x20bf('0x2b')](_0x25b499);if(_0x16f646&&_0x16f646[_0x20bf('0x8b')](_0x20bf('0x10f')))return;_0x20bf('0x5b')==_0x3a6637[_0x20bf('0xfd')]&&(_0x20afd2[_0x20bf('0x118')](_0x25b499)&&!_0x20afd2[_0x20bf('0x4a')](_0x25b499)&&(_0x25b499[_0x20bf('0xf7')]||_0x3a8371[_0x20bf('0xe4')]?_0x5d8fd4&&_0x5d8fd4['parent']==_0x25b499||(_0x5d8fd4=_0x25b499,_0x23f357(_0x3a6637[_0x20bf('0x4f')]),_0x3be90b=!0x0):_0x4d4efa=_0x4d4efa||_0x3a6637['previousPosition']));}function _0x23f357(_0x1f43ef){const _0x8bccd1=_0x31a6d4[_0x20bf('0xc1')][_0x20bf('0xe8')](_0x1f43ef),_0x11dce3=_0x31a6d4[_0x20bf('0x4d')][_0x20bf('0x95')]('span',{'class':'ck-suggestion-preview-marker-'+_0x4bdc07});_0x31a6d4[_0x20bf('0x4d')][_0x20bf('0x7d')](_0x8bccd1,_0x11dce3),_0x31a6d4[_0x20bf('0xc1')][_0x20bf('0xcf')](_0x11dce3,_0x3d2ae2['markerName']);}_0xe15e3b||_0x3be90b||!_0x4d4efa||_0x23f357(_0x4d4efa);};}export class RestoreRevisionCommand extends _0x48e309{constructor(_0x2934a1){super(_0x2934a1);const _0x3d29ba=_0x2934a1[_0x20bf('0x3a')]['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3d29ba,_0x20bf('0x11d'),()=>this['refresh']()),this[_0x20bf('0xbf')](_0x3d29ba,_0x20bf('0x3b'),()=>this[_0x20bf('0xcc')]());}[_0x20bf('0x5')](){const _0x1d97c8=this['editor'],_0x435d60=_0x1d97c8['plugins']['get'](d),_0x1298a3=_0x435d60[_0x20bf('0x12')]?_0x435d60[_0x20bf('0x11')][_0x20bf('0xca')]:null;_0x1d97c8[_0x20bf('0x8c')]['get'](_0x20bf('0x7e'))[_0x20bf('0x8d')](_0x1298a3);}[_0x20bf('0xcc')](){const {isReady:_0x4f19ea,isEnabled:_0x5468af}=this[_0x20bf('0x36')][_0x20bf('0x3a')]['get'](d);this['isEnabled']=_0x4f19ea&&_0x5468af;}}export class ShowChangeCommand extends _0x48e309{constructor(_0x312e12,{direction:_0x15e186}){super(_0x312e12);const _0x255f8b=_0x312e12[_0x20bf('0x3a')][_0x20bf('0xc3')](d);this[_0x20bf('0x11c')]=!0x1,this['_step']=_0x20bf('0x0')===_0x15e186?0x1:-0x1,this[_0x20bf('0xbf')](_0x255f8b,_0x20bf('0x11d'),()=>this[_0x20bf('0xcc')]()),this['listenTo'](_0x255f8b,'change:isEnabled',()=>this[_0x20bf('0xcc')]()),this[_0x20bf('0xbf')](_0x255f8b,_0x20bf('0x25'),()=>this[_0x20bf('0xcc')]());}['execute'](){const _0x16b569=this['editor'],_0x1b060a=_0x16b569['plugins'][_0x20bf('0xc3')](d),{isNavigationMode:_0x5b58c4,currentChangeNumber:_0x2de763}=_0x1b060a;let _0x5b3859;if(_0x1b060a[_0x20bf('0x1d')]=_0x5b58c4?_0x1b060a[_0x20bf('0x11')][_0x20bf('0xed')][_0x20bf('0xc3')](_0x2de763+this[_0x20bf('0x2d')]):_0x1b060a[_0x20bf('0x11')][_0x20bf('0xed')][_0x20bf('0xa5')],_0x1b060a[_0x20bf('0x1d')]['data'][_0x20bf('0xb9')])_0x5b3859=_0x16b569['editing'][_0x20bf('0x1a')][_0x20bf('0x13')](_0x1b060a[_0x20bf('0x1d')][_0x20bf('0x109')]);else{const _0x53955e=_0x16b569[_0x20bf('0x113')][_0x20bf('0x10b')]['get']('revision:'+_0x1b060a[_0x20bf('0x1d')]['id']);_0x5b3859=_0xd912bf(_0x16b569['editing'],_0x53955e);}_0x98832({'target':_0x5b3859,'viewportOffset':0x28});}[_0x20bf('0xcc')](){const {isNavigationMode:_0x492038,currentChangeNumber:_0x2a7961,numberOfChanges:_0x28c291,isReady:_0x3ddf26,isEnabled:_0x4e6ca9}=this[_0x20bf('0x36')][_0x20bf('0x3a')][_0x20bf('0xc3')](d);this[_0x20bf('0x3e')]=!!(_0x4e6ca9&&_0x3ddf26&&_0x28c291)&&(!_0x492038||(0x1===this['_step']?_0x2a7961<_0x28c291-0x1:_0x2a7961>0x0));}}
|
|
23
|
+
const _0x2ffa=['_step','_makeModelFromTape','markerToData','element:pre','revisionHistoryAttachChange','getAttributes','reconvertMarker','isContent','startIndex','left','getRevisionRootsAttributes','level','all','processor','consumable','isAtEnd','startsWith','object','isAfter','_getViewObj','previousPosition','index','mapper','_refreshStartEndIndex','data','string','setAttribute','data-revision-','markerToHighlight','test','type','revision-suggestion','has','adapter','_threeWayMerge','isAtStart','ck-revision-history-root-add','insert','_markMarkers','addRoot','locale','distance','_findChangeIdFromDomTarget','revision-comment:','isReady','pluginName','collaboration.channelId','merge','getRevision','markersStart','parent','mousedown','parse','restoreRevision','ck-suggestion-marker','activeChange','currentChangeNumber','consume','revision','activeView','pop','-new','endIndex','_joinTapes','markers','findIndex','error','hasAttribute','change:numberOfChanges','done','createRangeIn','addHighlight','isEqual','revision-start','_getDiff','enableReadOnlyMode','deletions','_setDistance','catch','slice','config','diffData','domConverter','vid','useFillerType','split','getClientRects','revisionHistory','offsetSize','editingDowncast','checkAttribute','end','_removeUnsupportedChanges','_getViewForChange','concat','changeId','toViewPosition','revision:','_getRevisionsRange','splice','restoreRevisionCallback','for','editing','vid_end','toModel','return','get','_initInteractions','isAdded','high','observeMarkers','add','dataToMarker','attributesAfter','selection','flat','showNextChange','_activeViewTarget','_cleanMarkers','getItems','getWalker','requires','change:isReady','createRange','isEnabled','compare','_update','getDomRoot','pairId','_setChanges','backward','push','toData','document','_balloon','attributes','isCollapsed','POSITIVE_INFINITY','bottom','roots','hasClass','_removeMissingPairs','marked','length','_makeModelFromViewString','loadRevisionData','getIndex','element','maxOffset','addMarker:revision','insertion','downcastDispatcher','isRemoved','_appendChild','showPreviousChange','map','addClass','keys','execute','code','init','markerRange','default','isRemoveSuggestion','low','isOnRoot','then','conversion','_markMismatchedRemovedTags','filter','includes','getRoot','suggestion:','text','resolve','children','start','forEach','viewItem','_data','item','_markSuggestions','isSuggestion','_changeIdToChange','WidgetToolbarRepository','delete','writer','elementEnd','wrap','removeClass','updatePosition','refresh','_changeView','remove','shift','insertions','_cleanUp','addMarker:revision-suggestion:deletion','destroy','revisionHistoryLabel','revision-end','ck-revision-history-root-','revision-viewer','isBefore','vid_start','change:activeChange','unshift','_sortAndFilterDiffChanges','modelRange','target','enqueueChange','changes','addRevision','deletion','isLimit','right','find','createAttributeElement','repository','createUIElement','from','ck-suggestion-marker-merge','top','createRevision','detachRoot','change','ck-suggestion-marker--active','forward','_revisions','bindElementToMarker','upcast','uiElement','markerNameToElements','_processTape','suggestion','bind','_markInsertions','ck-suggestion-preview-marker','side','markerName','plugins','ck-suggestion-preview-marker-','oldRevisionId','nextSibling','schema','affectsData','set','change:activeView','change:isEnabled','next','mapViewToDom','indexOf','numberOfChanges','_setConversion','isIncorrect','domEvent','isBlock','getCustomProperty','sort','newRevisionId','listenTo','revision-suggestion:','span','attachChange','userId','view','model','editor','toViewRange','_getChangeFromId','_fixObsoleteTags','markersEnd','rootName','ck-suggestion-marker-','getRootNames','commands','ck-editor__editable__overlay','isAddSuggestion','isAttached','name','dataDowncast','stop','getAttribute','removeMarker:revision','nextPosition','diff','highest','_removeRevisionMarkers','data-change-id','mouseover','ck-revision-history-root--active','elementStart','createPositionFromPath'];(function(_0x1f5628,_0x2ffadf){const _0x2af5d3=function(_0x3301d7){while(--_0x3301d7){_0x1f5628['push'](_0x1f5628['shift']());}};_0x2af5d3(++_0x2ffadf);}(_0x2ffa,0xe7));const _0x2af5=function(_0x1f5628,_0x2ffadf){_0x1f5628=_0x1f5628-0x0;let _0x2af5d3=_0x2ffa[_0x1f5628];return _0x2af5d3;};import{Plugin as _0x2486a4,Command as _0x3a55c2}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5686ab}from'ckeditor5/src/utils';import{ContextualBalloon as _0x509c5a}from'ckeditor5/src/ui';import{DocumentFragment as _0x78ee8d,Element as _0x39553c,Text as _0x4662a3,ViewDocumentFragment as _0x41f13b,ViewText as _0x5d2d12,ViewElement as _0x4f8406,ViewContainerElement as _0x465596,ViewAttributeElement as _0x328460,ViewEmptyElement as _0xf0a9,ViewRawElement as _0x29c65a,ViewUIElement as _0x3c2db0}from'ckeditor5/src/engine';import{Users as _0x4475ca,getMarkerDomElement as _0x324c3d}from'ckeditor5-collaboration/src/collaboration-core';import _0x52ad46 from'./ui/revisionviewer/changedetailsview';import _0x569230 from'./revisionsrepository';import _0x35673c from'./changeitem';import{default as _0x147585}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0xda6787}from'lodash-es';const tt={'c':_0x465596,'a':_0x328460,'e':_0xf0a9,'r':_0x29c65a,'u':_0x3c2db0};export default class d extends _0x2486a4{static get[_0x2af5('0x6b')](){return'RevisionViewer';}static get[_0x2af5('0xb7')](){return[_0x4475ca,_0x509c5a,_0x569230];}constructor(_0x4b5924){super(_0x4b5924),this[_0x2af5('0x118')]=this['editor'][_0x2af5('0x9')][_0x2af5('0xa8')]('RevisionsRepository'),this[_0x2af5('0xf')](_0x2af5('0x75'),null),this[_0x2af5('0xf')](_0x2af5('0x79'),null),this['_activeViewTarget']=null,this[_0x2af5('0xf')]('diff',null),this[_0x2af5('0xf')](_0x2af5('0x6a'),!0x1),this[_0x2af5('0xf')](_0x2af5('0xba'),!0x0),this['on'](_0x2af5('0x11'),(_0x2ed70f,_0x336659,_0x1cb42f)=>{this[_0x2af5('0x75')]=null,this[_0x2af5('0x79')]=null,this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0x22')][_0x2af5('0x11f')](_0x1b364e=>{for(const _0x43074c of this[_0x2af5('0x24')][_0x2af5('0xa4')]['view'][_0x2af5('0xc3')][_0x2af5('0xc9')])_0x1cb42f?_0x1b364e[_0x2af5('0xfb')](_0x2af5('0x2d'),_0x43074c):_0x1b364e['addClass'](_0x2af5('0x2d'),_0x43074c);});}),this[_0x2af5('0x4')]('isNavigationMode')['to'](this,_0x2af5('0x75'),_0x9373af=>null!==_0x9373af),this[_0x2af5('0x4')](_0x2af5('0x76'))['to'](this,'isReady',this,_0x2af5('0x36'),this,_0x2af5('0x75'),(_0x4d1259,_0x49d0cc,_0x108588)=>_0x4d1259&&_0x108588?_0x49d0cc[_0x2af5('0x111')][_0x2af5('0xd0')](_0x108588):0x0),this['bind'](_0x2af5('0x15'))['to'](this,'isReady',this,_0x2af5('0x36'),(_0x1d6757,_0x304499)=>_0x1d6757?_0x304499['changes']['length']:0x0),this[_0x2af5('0xfe')]=null,this[_0x2af5('0xf5')]=new Map(),this['adapter']=null,this[_0x2af5('0xc4')]=this[_0x2af5('0x24')]['plugins'][_0x2af5('0xa8')](_0x509c5a);}[_0x2af5('0xde')](){const _0x9753df=this[_0x2af5('0x24')],_0x17be39=new ShowChangeCommand(_0x9753df,{'direction':_0x2af5('0xc0')}),_0x38f773=new ShowChangeCommand(_0x9753df,{'direction':'forward'});(_0x9753df[_0x2af5('0x2c')][_0x2af5('0xad')](_0x2af5('0xd8'),_0x17be39),_0x9753df[_0x2af5('0x2c')]['add'](_0x2af5('0xb2'),_0x38f773),_0x9753df[_0x2af5('0x2c')]['add'](_0x2af5('0x73'),new RestoreRevisionCommand(_0x9753df)),this['on'](_0x2af5('0x82'),()=>{_0x17be39[_0x2af5('0xfd')](),_0x38f773[_0x2af5('0xfd')]();}),this[_0x2af5('0x16')](),this[_0x2af5('0xa9')](),_0x9753df[_0x2af5('0x89')]('revision-viewer'),_0x9753df['plugins'][_0x2af5('0x5e')](_0x2af5('0xf6')))&&_0x9753df[_0x2af5('0x9')]['get']('WidgetToolbarRepository')['forceDisabled'](_0x2af5('0x108'));}async['getRevisionData'](_0x3740e0){await this['loadRevisionData'](_0x3740e0);const _0x4b5b31={};for(const _0x30a2d2 in _0x3740e0[_0x2af5('0x8f')]){if(_0x3740e0[_0x2af5('0x8f')][_0x30a2d2]['attachChange']&&!_0x3740e0['diffData'][_0x30a2d2]['attachChange']['isAttached'])continue;const _0x25c697=this['_removeRevisionMarkers'](JSON['parse'](_0x3740e0['diffData'][_0x30a2d2][_0x2af5('0x101')])),_0x29666e=this[_0x2af5('0x24')]['editing'][_0x2af5('0x22')][_0x2af5('0xc3')],_0x374ee6=new _0x41f13b(_0x29666e,_0x25c697[_0x2af5('0xd9')](_0x440434=>this[_0x2af5('0x51')](_0x440434)));this[_0x2af5('0x24')][_0x2af5('0x56')][_0x2af5('0x4b')][_0x2af5('0x92')](_0x2af5('0xcc')),_0x4b5b31[_0x30a2d2]=this[_0x2af5('0x24')][_0x2af5('0x56')]['processor'][_0x2af5('0xc2')](_0x374ee6),this[_0x2af5('0x24')][_0x2af5('0x56')][_0x2af5('0x4b')][_0x2af5('0x92')](_0x2af5('0xe0'));}return _0x4b5b31;}async[_0x2af5('0x48')](_0xa8d974){await this[_0x2af5('0xcf')](_0xa8d974);const _0x10970b={};for(const _0x183f84 in _0xa8d974['diffData'])_0xa8d974[_0x2af5('0x8f')][_0x183f84][_0x2af5('0x20')]&&!_0xa8d974[_0x2af5('0x8f')][_0x183f84][_0x2af5('0x20')][_0x2af5('0x2f')]||(_0x10970b[_0x183f84]=_0xa8d974[_0x2af5('0x8f')][_0x183f84][_0x2af5('0xaf')]||{});return _0x10970b;}[_0x2af5('0x38')](_0x435903){return(_0x435903=_0x435903['filter'](_0xdb8d27=>!_0xdb8d27[_0x2af5('0x30')]||_0x2af5('0x87')!==_0xdb8d27[_0x2af5('0x30')]&&_0x2af5('0x106')!==_0xdb8d27[_0x2af5('0x30')]))[_0x2af5('0xef')](_0x320e5f=>{'string'!=typeof _0x320e5f&&(_0x320e5f[_0x2af5('0xed')]=this[_0x2af5('0x38')](_0x320e5f[_0x2af5('0xed')]),_0x320e5f[_0x2af5('0xc5')]=_0x320e5f[_0x2af5('0xc5')][_0x2af5('0xe7')](_0x161b5c=>!_0x161b5c[0x0]['startsWith'](_0x2af5('0x59'))));}),_0x435903;}async[_0x2af5('0xbb')](_0x4fc3e7,_0x5aa4a4,_0x2e6abd=!0x1){if(!this[_0x2af5('0xba')])return;const _0x584f2e=this[_0x2af5('0x36')],_0x35c07e=this[_0x2af5('0x118')],_0x5e027c=_0x2af5('0x57')==typeof _0x4fc3e7?_0x35c07e[_0x2af5('0x6e')](_0x4fc3e7):_0x4fc3e7,_0x212456=_0x2af5('0x57')==typeof _0x5aa4a4?_0x35c07e[_0x2af5('0x6e')](_0x5aa4a4):_0x5aa4a4,_0x581c91=_0x5e027c['id'],_0x5e3cef=_0x212456?_0x212456['id']:null;if(!_0x2e6abd&&this[_0x2af5('0x36')]&&this[_0x2af5('0x36')][_0x2af5('0x1c')]===_0x581c91&&this[_0x2af5('0x36')][_0x2af5('0xb')]===_0x5e3cef)return Promise[_0x2af5('0xec')]();this['isReady']=!0x1,this[_0x2af5('0x79')]=null,this[_0x2af5('0x75')]=null,this['diff']=new _0x147585(_0x581c91,_0x5e3cef);const _0x378a83=this[_0x2af5('0xa0')](_0x5e027c,_0x212456,!0x0)['map'](_0x34ee75=>this[_0x2af5('0xcf')](_0x34ee75));return _0x378a83[_0x2af5('0xc1')](new Promise(_0x409d7d=>{setTimeout(_0x409d7d,0x14);})),Promise[_0x2af5('0x4a')](_0x378a83)[_0x2af5('0xe4')](()=>{if(!this[_0x2af5('0xba')])return;this['_cleanUp']();const _0x4989c7=this[_0x2af5('0x88')](_0x581c91,_0x5e3cef);for(const _0x3a6cac of _0x4989c7[_0x2af5('0x111')])this[_0x2af5('0xf5')][_0x2af5('0xf')](_0x3a6cac['id'],_0x3a6cac);this[_0x2af5('0x24')]['model'][_0x2af5('0x110')]({'isUndoable':!0x1},_0x38f258=>{for(const _0x3c6574 of this['editor'][_0x2af5('0x23')]['document'][_0x2af5('0x2b')]())_0x38f258[_0x2af5('0x11e')](_0x3c6574);for(const _0x4a2f96 of Object[_0x2af5('0xdb')](_0x4989c7[_0x2af5('0x23')])){const _0x3aa4c8=_0x38f258[_0x2af5('0x65')](_0x4a2f96);for(const _0x4f2e39 of Object[_0x2af5('0xdb')](_0x4989c7[_0x2af5('0xc5')][_0x4a2f96]))_0x38f258[_0x2af5('0x58')](_0x4f2e39,_0x4989c7['attributes'][_0x4a2f96][_0x4f2e39],_0x3aa4c8);_0x38f258[_0x2af5('0x63')](_0x4989c7['model'][_0x4a2f96],_0x3aa4c8,0x0);}}),this[_0x2af5('0x36')][_0x2af5('0xbf')](this[_0x2af5('0x10d')](_0x4989c7[_0x2af5('0x111')])),this[_0x2af5('0x6a')]=!0x0;})[_0x2af5('0x8c')](_0x2c62ee=>{console[_0x2af5('0x80')](_0x2c62ee),this[_0x2af5('0x102')](),_0x584f2e&&(this[_0x2af5('0x36')]=_0x584f2e),this['isReady']=!0x0;});}['addRevisionData'](_0x2a0450,_0x2ab4e8){const _0x2bea68=this[_0x2af5('0x118')][_0x2af5('0x11d')](_0x2a0450);return _0x2bea68['on'](_0x2af5('0xbc'),(_0x43b4b9,_0xdb3582,_0x3cffad)=>_0x2ab4e8(_0xdb3582,_0x3cffad,_0x2bea68)),this['repository'][_0x2af5('0x112')](_0x2bea68),_0x2bea68;}[_0x2af5('0xcf')](_0x140b61){if(!_0x140b61||_0x140b61['diffData'])return Promise[_0x2af5('0xec')]();{const _0x16b9d5=this[_0x2af5('0x24')]['config'][_0x2af5('0xa8')](_0x2af5('0x6c'));return this[_0x2af5('0x5f')][_0x2af5('0x6e')]({'channelId':_0x16b9d5,'revisionId':_0x140b61['id']})[_0x2af5('0xe4')](_0x2d3646=>{_0x140b61[_0x2af5('0xbc')]({'diffData':_0x2d3646[_0x2af5('0x8f')]},!0x0);});}}[_0x2af5('0x102')](){this['activeChange']=null,this[_0x2af5('0xb4')](),this[_0x2af5('0xfe')]&&this[_0x2af5('0xfe')]['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0x110')]({'isUndoable':!0x1},_0x354d48=>{for(const _0xf2f51c of this[_0x2af5('0x24')]['model'][_0x2af5('0xc3')][_0x2af5('0x2b')]())_0x354d48[_0x2af5('0x11e')](_0xf2f51c);});}[_0x2af5('0x10d')](_0x250bed){const _0x6dae79=[],_0x3b9935=new Map();for(const _0x178cf1 of this['editor'][_0x2af5('0x23')][_0x2af5('0xc3')]['getRootNames']()){const _0x521f84=this[_0x2af5('0x24')][_0x2af5('0xa4')]['view'][_0x2af5('0xbd')](_0x178cf1);if(!_0x521f84)continue;const _0x509cab=_0x521f84['getClientRects']()['item'](0x0);_0x509cab&&(_0x6dae79[_0x2af5('0xc1')](_0x178cf1),_0x3b9935[_0x2af5('0xf')](_0x178cf1,_0x509cab));}return _0x6dae79[_0x2af5('0x1b')]((_0x388579,_0x143020)=>{const _0x15e149=_0x3b9935[_0x2af5('0xa8')](_0x388579),_0x293795=_0x3b9935[_0x2af5('0xa8')](_0x143020);return _0x15e149['y']-_0x293795['y']||_0x15e149['x']-_0x293795['x'];}),(_0x250bed=_0x250bed[_0x2af5('0xe7')](_0x2427c4=>_0x6dae79[_0x2af5('0xe8')](_0x2427c4[_0x2af5('0x29')])))[_0x2af5('0x1b')]((_0x1129b3,_0x24b201)=>_0x6dae79[_0x2af5('0x14')](_0x1129b3['rootName'])-_0x6dae79[_0x2af5('0x14')](_0x24b201[_0x2af5('0x29')])),_0x250bed;}['_makeTape'](_0x1d4215){const _0x49bb31=Array[_0x2af5('0x11a')](_0x1d4215[_0x2af5('0x7e')])[_0x2af5('0xe7')](([_0x244331,_0x57c289])=>_0x244331[_0x2af5('0x4e')](_0x2af5('0x9f'))&&!_0x57c289[_0x2af5('0xc6')]),_0x7f8b0=Array[_0x2af5('0x11a')](this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0x84')](_0x1d4215)[_0x2af5('0xb6')]({'singleCharacters':!0x0}));if(0x0!=_0x49bb31[_0x2af5('0xcd')])for(const _0x45fea7 of _0x7f8b0){const [_0x536993,_0x28d17c]=_0x49bb31[0x0],[,_0x2e6d9a,_0x497b83]=_0x536993[_0x2af5('0x93')](':');if(_0x28d17c[_0x2af5('0x99')][_0x2af5('0x86')](_0x45fea7['nextPosition'])&&_0x49bb31[_0x2af5('0x100')](),(_0x45fea7[_0x2af5('0x52')][_0x2af5('0x86')](_0x28d17c['start'])||_0x45fea7[_0x2af5('0x52')][_0x2af5('0x50')](_0x28d17c[_0x2af5('0xee')]))&&(_0x2af5('0xd4')==_0x2e6d9a?_0x45fea7[_0x2af5('0xaa')]={'userId':_0x497b83}:'deletion'==_0x2e6d9a&&(_0x45fea7[_0x2af5('0xd6')]={'userId':_0x497b83})),0x0==_0x49bb31['length'])break;}return _0x7f8b0;}['_refreshStartEndIndex'](_0x58f18c){const _0x15471f=new Map();for(let _0x2bfe45=0x0;_0x2bfe45<_0x58f18c[_0x2af5('0xcd')];_0x2bfe45++)_0x2af5('0xeb')===_0x58f18c[_0x2bfe45][_0x2af5('0x5c')]?(_0x58f18c[_0x2bfe45][_0x2af5('0xf2')][_0x2af5('0x46')]=_0x2bfe45,_0x58f18c[_0x2bfe45][_0x2af5('0xf2')][_0x2af5('0x7c')]=_0x2bfe45):('elementStart'===_0x58f18c[_0x2bfe45][_0x2af5('0x5c')]?_0x58f18c[_0x2bfe45][_0x2af5('0xf2')][_0x2af5('0x46')]=_0x2bfe45:_0x2af5('0xf9')===_0x58f18c[_0x2bfe45][_0x2af5('0x5c')]&&(_0x58f18c[_0x2bfe45]['item'][_0x2af5('0x7c')]=_0x2bfe45),_0x15471f[_0x2af5('0xf')](_0x58f18c[_0x2bfe45]['id'],_0x2bfe45));for(const _0x150727 of _0x15471f['values']())_0x2af5('0x3c')===_0x58f18c[_0x150727][_0x2af5('0x5c')]?_0x58f18c[_0x150727][_0x2af5('0xf2')][_0x2af5('0x7c')]=_0x15471f[_0x2af5('0xa8')](_0x58f18c[_0x150727]['pairId']):_0x2af5('0xf9')===_0x58f18c[_0x150727][_0x2af5('0x5c')]&&(_0x58f18c[_0x150727][_0x2af5('0xf2')][_0x2af5('0x46')]=_0x15471f[_0x2af5('0xa8')](_0x58f18c[_0x150727][_0x2af5('0xbe')]));}[_0x2af5('0x2')](_0x2ab2e6){for(let _0x34d0cd=0x0;_0x34d0cd<_0x2ab2e6[_0x2af5('0xcd')];_0x34d0cd++){if(_0x2af5('0x3c')===_0x2ab2e6[_0x34d0cd][_0x2af5('0x5c')])_0x2ab2e6[_0x34d0cd]['item']['startIndex']=_0x34d0cd;else{if(_0x2af5('0xf9')===_0x2ab2e6[_0x34d0cd][_0x2af5('0x5c')]){_0x2ab2e6[_0x34d0cd][_0x2af5('0xf2')][_0x2af5('0x7c')]=_0x34d0cd;const _0x30dfe0=_0x2ab2e6[_0x34d0cd][_0x2af5('0xf2')]['startIndex'];_0x2ab2e6[_0x30dfe0]['pairId']=_0x2ab2e6[_0x34d0cd]['id'],_0x2ab2e6[_0x34d0cd][_0x2af5('0xbe')]=_0x2ab2e6[_0x30dfe0]['id'];}else _0x2ab2e6[_0x34d0cd]['item']['startIndex']=_0x34d0cd,_0x2ab2e6[_0x34d0cd][_0x2af5('0xf2')][_0x2af5('0x7c')]=_0x34d0cd,_0x2ab2e6[_0x34d0cd][_0x2af5('0xbe')]=null;}_0x2ab2e6[_0x34d0cd][_0x2af5('0x6f')]||(_0x2ab2e6[_0x34d0cd][_0x2af5('0x6f')]=[],_0x2ab2e6[_0x34d0cd][_0x2af5('0x28')]=[]);}}['_markInsertions'](_0x2ec565,_0x342acc){const _0x3a056a=_0x2ec565[_0x2af5('0xe7')](_0x5d7988=>!_0x5d7988[_0x2af5('0xaa')]);for(let _0x410ed6=0x0;_0x410ed6<_0x342acc['length'];_0x410ed6++)_0x342acc[_0x410ed6]['isAdded']&&(_0x3a056a[_0x410ed6][_0x2af5('0xaa')]=_0x342acc[_0x410ed6][_0x2af5('0xaa')]);}[_0x2af5('0xce')](_0x324a98){const _0xe0aa27=JSON[_0x2af5('0x72')](_0x324a98),_0x1b8827=this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0x22')][_0x2af5('0xc3')],_0x56df88=new _0x41f13b(_0x1b8827,_0xe0aa27['map'](_0x25db2f=>this[_0x2af5('0x51')](_0x25db2f)));return this['editor'][_0x2af5('0x56')][_0x2af5('0xa6')](_0x56df88);}[_0x2af5('0x51')](_0x5b0c4a){const _0x2d67e0=this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0x22')][_0x2af5('0xc3')];if(_0x2af5('0x57')==typeof _0x5b0c4a)return new _0x5d2d12(_0x2d67e0,_0x5b0c4a);{const _0x3c38d3=_0x5b0c4a[_0x2af5('0xed')]['map'](_0x51b064=>this[_0x2af5('0x51')](_0x51b064));return new(tt[_0x5b0c4a['type']]||_0x4f8406)(_0x2d67e0,_0x5b0c4a[_0x2af5('0x30')],_0x5b0c4a[_0x2af5('0xc5')],_0x3c38d3);}}[_0x2af5('0x88')](_0x5a4676,_0x2ef787=null){const _0x24abc8=this[_0x2af5('0x118')][_0x2af5('0x6e')](_0x5a4676),_0x14ef80=_0x2ef787?this['repository']['getRevision'](_0x2ef787):null,_0x18b932=this['_getRevisionsRange'](_0x24abc8,_0x14ef80),_0x3a71b7=_0x18b932[_0x18b932['length']-0x1],_0x397109=new Map(),_0x329200={'model':{},'attributes':{},'changes':[]},_0x39ca06=new Set(),_0x456eb7=new Map();for(let _0x15a9aa=_0x18b932[_0x2af5('0xcd')]-0x1;_0x15a9aa>=0x0;_0x15a9aa--){const _0x1616fb=_0x18b932[_0x15a9aa];for(const _0x2d9fe7 of Object[_0x2af5('0xdb')](_0x1616fb[_0x2af5('0x8f')]))if(_0x1616fb[_0x2af5('0x8f')][_0x2d9fe7]['attachChange']){const _0x29a0b2=_0x1616fb[_0x2af5('0x8f')][_0x2d9fe7]['attachChange'];_0x29a0b2[_0x2af5('0x2f')]?(_0x39ca06[_0x2af5('0xad')](_0x2d9fe7),_0x456eb7[_0x2af5('0x5e')](_0x2d9fe7)&&_0x456eb7['get'](_0x2d9fe7)[_0x2af5('0x21')]==_0x29a0b2['userId']?_0x456eb7[_0x2af5('0xf7')](_0x2d9fe7):_0x456eb7['set'](_0x2d9fe7,_0x29a0b2)):_0x456eb7[_0x2af5('0x5e')](_0x2d9fe7)?(_0x39ca06[_0x2af5('0xf7')](_0x2d9fe7),_0x456eb7[_0x2af5('0xf7')](_0x2d9fe7)):(_0x39ca06[_0x2af5('0xad')](_0x2d9fe7),_0x456eb7[_0x2af5('0xf')](_0x2d9fe7,_0x29a0b2));}else _0x39ca06['add'](_0x2d9fe7);}for(const _0x422105 of _0x39ca06){const _0x5e5e19=_0x456eb7[_0x2af5('0x5e')](_0x422105)&&!_0x456eb7[_0x2af5('0xa8')](_0x422105)['isAttached'];let _0x58925a=_0x5e5e19?_0x18b932['length']-0x1:0x0;const _0x5d6fd1=_0x5e5e19?-0x1:0x1;for(;_0x18b932[_0x58925a];){const _0x4bc7ef=_0x18b932[_0x58925a];if(_0x4bc7ef[_0x2af5('0x8f')][_0x422105]){const _0x2bf7a5=_0x5e5e19?_0x4bc7ef[_0x2af5('0x8f')][_0x422105]['attributesBefore']:_0x4bc7ef[_0x2af5('0x8f')][_0x422105][_0x2af5('0xaf')];_0x329200['attributes'][_0x422105]=_0x2bf7a5?_0xda6787(_0x2bf7a5):{};break;}_0x58925a+=_0x5d6fd1;}}for(const _0x3a3146 of _0x18b932){_0x3a3146[_0x2af5('0x23')]={};for(const _0x42d1ee of _0x3a3146['authors'])_0x397109[_0x2af5('0xf')](_0x42d1ee['id'],_0x42d1ee);for(const _0x56dd3f of _0x39ca06){const _0xb21128=_0x3a3146[_0x2af5('0x8f')][_0x56dd3f]?_0x3a3146['diffData'][_0x56dd3f][_0x2af5('0x101')]:'[]',_0x2940e1=_0x3a3146['diffData'][_0x56dd3f]?_0x3a3146['diffData'][_0x56dd3f][_0x2af5('0x8a')]:'[]';_0x3a3146[_0x2af5('0x23')][_0x56dd3f]={'insertions':this[_0x2af5('0xce')](_0xb21128),'deletions':this[_0x2af5('0xce')](_0x2940e1)};}}for(const _0x947d16 of _0x39ca06){let _0x4265e1=null,_0x205c15=0x0;const _0x2b8019=new Map(Array[_0x2af5('0x11a')](_0x24abc8[_0x2af5('0x23')][_0x947d16][_0x2af5('0x101')][_0x2af5('0x7e')])[_0x2af5('0xe7')](([_0x2bd00d])=>!_0x2bd00d[_0x2af5('0x4e')](_0x2af5('0x9f'))));let _0x12defa=0x0;for(const _0x49b15e of _0x18b932){const _0x36722f=this['_makeTape'](_0x49b15e[_0x2af5('0x23')][_0x947d16]['insertions']);_0x49b15e==_0x24abc8?(_0x4265e1=_0x36722f,_0x205c15=_0x4265e1[_0x2af5('0xcd')],_0x4265e1[_0x2af5('0xef')](_0x2a71e1=>{_0x2a71e1['id']=_0x12defa++;}),this[_0x2af5('0x2')](_0x4265e1)):this[_0x2af5('0x5')](_0x4265e1,_0x36722f);const _0x45a132=_0x4265e1[_0x2af5('0xe7')](_0x4ca66d=>!_0x4ca66d['isAdded'])['map'](_0x43273b=>_0x43273b['id']);let _0x418f8f=0x0;const _0x417d8b=this['_makeTape'](_0x49b15e[_0x2af5('0x23')][_0x947d16][_0x2af5('0x8a')]);_0x417d8b['forEach'](_0x3131dd=>{_0x3131dd[_0x2af5('0xd6')]?_0x3131dd['id']=_0x205c15++:_0x3131dd['id']=_0x45a132[_0x418f8f++];}),this[_0x2af5('0x2')](_0x417d8b),this[_0x2af5('0x8b')](_0x4265e1,_0x2af5('0xaa')),this[_0x2af5('0x8b')](_0x417d8b,_0x2af5('0xd6')),_0x49b15e==_0x24abc8&&this[_0x2af5('0x64')](_0x4265e1,_0x2b8019),_0x4265e1=this[_0x2af5('0x7d')](_0x4265e1,_0x417d8b),this[_0x2af5('0x55')](_0x4265e1),this[_0x2af5('0x8b')](_0x4265e1,'isRemoved');}_0x4265e1=_0x4265e1['filter'](_0x61b6a7=>!(_0x61b6a7[_0x2af5('0xaa')]&&_0x61b6a7[_0x2af5('0xd6')]));const _0x201570=new Map(_0x3a71b7['model'][_0x947d16][_0x2af5('0x8a')]['markers']),_0x125b24=new Set(_0x2b8019[_0x2af5('0xdb')]());for(const _0x207c29 of _0x201570[_0x2af5('0xdb')]())_0x125b24['delete'](_0x207c29);this[_0x2af5('0xf3')](_0x4265e1,_0x125b24),this['_fixObsoleteTags'](_0x4265e1),_0x4265e1=this[_0x2af5('0xcb')](_0x4265e1),_0x4265e1=this[_0x2af5('0xe6')](_0x4265e1),_0x4265e1=this[_0x2af5('0x9a')](_0x4265e1);const {root:_0x4f4a3d,changes:_0x28afbd}=this[_0x2af5('0x3f')](_0x4265e1,_0x397109,_0x947d16);_0x329200['model'][_0x947d16]=_0x4f4a3d;const _0xdf2bbb=_0x456eb7[_0x2af5('0xa8')](_0x947d16);if(_0xdf2bbb){const _0x32c005=_0x397109['get'](_0xdf2bbb[_0x2af5('0x21')]),_0x5c6fba=new _0x35673c({'author':_0x32c005,'type':_0xdf2bbb[_0x2af5('0x2f')]?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x947d16});_0x28afbd[_0x2af5('0x10c')](_0x5c6fba),_0x329200['attributes'][_0x947d16][_0x2af5('0x42')]=_0x5c6fba['id'];}_0x329200[_0x2af5('0x111')]=_0x329200[_0x2af5('0x111')]['concat'](_0x28afbd);}return _0x329200;}[_0x2af5('0x64')](_0x4e4590,_0x1b5678){for(let _0x2851c8=0x0;_0x2851c8<_0x4e4590[_0x2af5('0xcd')];_0x2851c8++)for(const [_0x10ed0c,_0x350364]of _0x1b5678)_0x350364[_0x2af5('0xee')][_0x2af5('0x86')](_0x4e4590[_0x2851c8]['previousPosition'])&&_0x4e4590[_0x2851c8][_0x2af5('0x6f')][_0x2af5('0xc1')](_0x10ed0c),_0x350364[_0x2af5('0x99')]['isEqual'](_0x4e4590[_0x2851c8][_0x2af5('0x35')])&&_0x4e4590[_0x2851c8][_0x2af5('0x28')][_0x2af5('0xc1')](_0x10ed0c);}['_joinTapes'](_0x225d78,_0x1e4084){let _0x56710a=[],_0x3df3dd=0x0,_0x56fec5=0x0;for(;_0x3df3dd<_0x225d78['length']||_0x56fec5<_0x1e4084[_0x2af5('0xcd')];){const _0x46d029=_0x225d78[_0x3df3dd]||{},_0x2a6541=_0x1e4084[_0x56fec5]||{};if(_0x46d029['id']==_0x2a6541['id'])_0x3df3dd++,_0x56fec5++,_0x56710a[_0x2af5('0xc1')](_0x46d029);else{if(_0x2a6541[_0x2af5('0xd6')]&&_0x46d029[_0x2af5('0xaa')]){const {commonTape:_0x2ff8f6,iEnd:_0x51a1ce,jEnd:_0x4580f0}=this[_0x2af5('0x60')](_0x225d78,_0x3df3dd,_0x1e4084,_0x56fec5);_0x56710a=_0x56710a['concat'](_0x2ff8f6),_0x3df3dd=_0x51a1ce,_0x56fec5=_0x4580f0;}else _0x2a6541[_0x2af5('0xd6')]?(_0x56fec5++,_0x56710a[_0x2af5('0xc1')](_0x2a6541)):(_0x3df3dd++,_0x56710a[_0x2af5('0xc1')](_0x46d029));}}return _0x56710a;}[_0x2af5('0xf3')](_0x4d2b69,_0x35208f){const _0x5bb478=[];for(let _0x1a7849=0x0;_0x1a7849<_0x4d2b69['length'];_0x1a7849++){for(let _0x10574b=0x0;_0x10574b<_0x4d2b69[_0x1a7849][_0x2af5('0x6f')][_0x2af5('0xcd')];_0x10574b++){const _0x4380e5=_0x4d2b69[_0x1a7849][_0x2af5('0x6f')][_0x10574b];if(!_0x35208f['has'](_0x4380e5))continue;const {group:_0x484781,type:_0x3f5fd3,authorId:_0x969350}=_0x22ebd9(_0x4380e5);_0x2af5('0x5d')!=_0x484781||_0x2af5('0xd4')!=_0x3f5fd3&&_0x2af5('0x113')!=_0x3f5fd3||(_0x5bb478[_0x2af5('0x10c')]({'type':_0x3f5fd3,'name':_0x4380e5,'userId':_0x969350}),_0x4d2b69[_0x1a7849][_0x2af5('0x6f')][_0x2af5('0xa1')](_0x10574b,0x1),_0x10574b--);}_0x2b3f01(_0x4d2b69[_0x1a7849]);for(let _0x160112=0x0;_0x160112<_0x4d2b69[_0x1a7849][_0x2af5('0x28')][_0x2af5('0xcd')];_0x160112++){const _0x56427a=_0x4d2b69[_0x1a7849][_0x2af5('0x28')][_0x160112];if(!_0x35208f['has'](_0x56427a))continue;const {group:_0x420855,type:_0x55f607}=_0x22ebd9(_0x56427a);if('revision-suggestion'!=_0x420855||'insertion'!=_0x55f607&&'deletion'!=_0x55f607)continue;_0x4d2b69[_0x1a7849][_0x2af5('0x28')]['splice'](_0x160112,0x1),_0x160112--;const _0x530b4d=_0x5bb478[_0x2af5('0x7f')](_0x38110d=>_0x38110d[_0x2af5('0x30')]==_0x56427a);_0x530b4d>-0x1&&_0x5bb478[_0x2af5('0xa1')](_0x530b4d,0x1);}}function _0x22ebd9(_0x1c8ec9){const _0x11a294=_0x1c8ec9[_0x2af5('0x93')](':');return{'group':_0x11a294[0x0],'type':_0x11a294[0x1],'subType':_0x11a294[_0x2af5('0xcd')]>=0x5?_0x11a294[0x2]:null,'id':_0x11a294[_0x2af5('0xcd')]<0x5?_0x11a294[0x2]:_0x11a294[0x3],'authorId':_0x11a294[_0x2af5('0xcd')]<0x5?_0x11a294[0x3]:_0x11a294[0x4],'markerCount':0x6==_0x11a294['length']?_0x11a294[0x5]:null};}function _0x2b3f01(_0x6c4815){for(let _0x5ac3c7=0x0;_0x5ac3c7<_0x5bb478[_0x2af5('0xcd')];_0x5ac3c7++){if(_0x6c4815[_0x2af5('0xaa')]&&_0x2af5('0xd4')==_0x5bb478[_0x5ac3c7][_0x2af5('0x5c')])return _0x6c4815[_0x2af5('0x2e')]=_0x5bb478[_0x5ac3c7],void delete _0x6c4815['isAdded'];if(!_0x6c4815[_0x2af5('0xaa')]&&!_0x6c4815[_0x2af5('0xd6')]&&_0x2af5('0x113')==_0x5bb478[_0x5ac3c7][_0x2af5('0x5c')])return void(_0x6c4815['isRemoveSuggestion']=_0x5bb478[_0x5ac3c7]);}}}[_0x2af5('0x8b')](_0x34f88b,_0x5644e6){let _0x493d79=0x0,_0x563e04=!0x1;const _0x46b5e5=new Map();for(const _0x333677 of _0x34f88b)_0x333677[_0x5644e6]?_0x563e04&&(_0x493d79++,_0x563e04=!0x1):(_0x493d79++,_0x563e04=!0x0),_0x46b5e5[_0x2af5('0xf')](_0x333677['id'],_0x493d79);for(let _0x42626e=0x0;_0x42626e<_0x34f88b['length'];_0x42626e++){if('isRemoved'==_0x5644e6&&_0x34f88b[_0x42626e][_0x2af5('0xaa')]||_0x2af5('0xaa')==_0x5644e6&&_0x34f88b[_0x42626e][_0x2af5('0xd6')])continue;if(_0x2af5('0xeb')==_0x34f88b[_0x42626e]['type']){_0x34f88b[_0x42626e][_0x2af5('0x67')]=0x0;continue;}const _0x1f9209=_0x46b5e5[_0x2af5('0xa8')](_0x34f88b[_0x42626e][_0x2af5('0xbe')]),_0x5d2ae1=_0x46b5e5[_0x2af5('0xa8')](_0x34f88b[_0x42626e]['id']);_0x34f88b[_0x42626e][_0x2af5('0x67')]=_0x1f9209-_0x5d2ae1;}}[_0x2af5('0xa0')](_0x1c2f1e,_0x203b4e,_0x3f5a20=!0x1){const _0x35ed57=[];let _0x46bfcf=this['repository'][_0x2af5('0xd0')](_0x1c2f1e),_0x4bc31a=this[_0x2af5('0x118')]['getIndex'](_0x203b4e);for(-0x1==_0x4bc31a&&(_0x4bc31a=this[_0x2af5('0x118')][_0x2af5('0x122')]['length'],_0x3f5a20=!0x1);_0x46bfcf<_0x4bc31a;)_0x35ed57[_0x2af5('0xc1')](this[_0x2af5('0x118')]['getRevision'](_0x46bfcf)),_0x46bfcf++;return _0x3f5a20&&_0x35ed57['push'](this[_0x2af5('0x118')][_0x2af5('0x6e')](_0x46bfcf)),_0x35ed57;}[_0x2af5('0x60')](_0x5980c5,_0x511e6e,_0x25baa1,_0x97dfc6){const _0x1ba746=this['editor'][_0x2af5('0x23')][_0x2af5('0xd')];let _0x25888f=_0x511e6e;for(;_0x5980c5[_0x25888f]&&_0x5980c5[_0x25888f][_0x2af5('0xaa')];)_0x25888f++;let _0x3f4ce5=_0x97dfc6;for(;_0x25baa1[_0x3f4ce5]&&_0x25baa1[_0x3f4ce5][_0x2af5('0xd6')];)_0x3f4ce5++;_0x3f5530(_0x5980c5,_0x511e6e,_0x25888f),_0x3f5530(_0x25baa1,_0x97dfc6,_0x3f4ce5);const _0x39f123=_0x25baa1[_0x2af5('0x8d')](_0x97dfc6,_0x3f4ce5)[_0x2af5('0x9c')](_0x5980c5[_0x2af5('0x8d')](_0x511e6e,_0x25888f));return _0x39f123[_0x2af5('0x1b')]((_0x95d085,_0x47a891)=>_0x95d085[_0x2af5('0x7')]!=_0x47a891[_0x2af5('0x7')]?_0x95d085[_0x2af5('0x7')]-_0x47a891['side']:_0x95d085[_0x2af5('0x49')]!=_0x47a891[_0x2af5('0x49')]?_0x95d085[_0x2af5('0x49')]-_0x47a891[_0x2af5('0x49')]:_0x95d085[_0x2af5('0x67')]!=_0x47a891[_0x2af5('0x67')]?_0x47a891[_0x2af5('0x67')]-_0x95d085[_0x2af5('0x67')]:!!_0x95d085[_0x2af5('0xaa')]!=!!_0x47a891[_0x2af5('0xaa')]?-0x1==_0x95d085[_0x2af5('0x7')]||0x0==_0x95d085[_0x2af5('0x7')]?_0x95d085[_0x2af5('0xaa')]?-0x1:0x1:_0x95d085['isAdded']?0x1:-0x1:_0x95d085[_0x2af5('0x53')]-_0x47a891[_0x2af5('0x53')]),{'commonTape':_0x39f123,'iEnd':_0x25888f,'jEnd':_0x3f4ce5};function _0x3f5530(_0x2467f7,_0x151f84,_0x146c66){let _0x1205c9=-0x1,_0x52062d=Number[_0x2af5('0xc7')],_0x33e503=!0x0;for(let _0xa7044=_0x151f84;_0xa7044<_0x146c66;_0xa7044++)if(_0x1ba746['isInline'](_0x2467f7[_0xa7044][_0x2af5('0xf2')])||(_0x33e503=!0x1),_0x2467f7[_0xa7044][_0x2af5('0xf2')][_0x2af5('0x46')]<_0x151f84&&(_0x1205c9=_0xa7044),_0x2467f7[_0xa7044]['item'][_0x2af5('0x7c')]>=_0x146c66){_0x52062d=_0xa7044;break;}_0x33e503&&(_0x1205c9=_0x146c66-0x1);for(let _0x42cb1c=_0x151f84;_0x42cb1c<_0x146c66;_0x42cb1c++)_0x2467f7[_0x42cb1c]['side']=_0x42cb1c<=_0x1205c9?-0x1:_0x42cb1c<_0x52062d?0x0:0x1,_0x2467f7[_0x42cb1c][_0x2af5('0x53')]=_0x42cb1c;let _0x348090=0x0;for(let _0x2640e5=_0x151f84;_0x2640e5<=_0x1205c9;_0x2640e5++)0x0==_0x2467f7[_0x2640e5][_0x2af5('0x67')]?_0x2467f7[_0x2640e5][_0x2af5('0x49')]=_0x348090:(_0x348090++,_0x2467f7[_0x2640e5][_0x2af5('0x49')]=_0x348090,_0x348090++);for(let _0x1d6404=_0x151f84;_0x1d6404<_0x146c66;_0x1d6404++)0x0==_0x2467f7[_0x1d6404]['side']&&(_0x2467f7[_0x1d6404][_0x2af5('0x49')]=_0x348090);_0x348090=0x0;for(let _0x29a1de=_0x146c66-0x1;_0x29a1de>=_0x52062d;_0x29a1de--)0x0==_0x2467f7[_0x29a1de][_0x2af5('0x67')]?_0x2467f7[_0x29a1de][_0x2af5('0x49')]=_0x348090:(_0x348090--,_0x2467f7[_0x29a1de][_0x2af5('0x49')]=_0x348090,_0x348090--);}}[_0x2af5('0x27')](_0x432ee2){const _0x3a392a=new Map(),_0x48cfa3=this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0xd')];for(let _0xc0f336=0x1;_0xc0f336<_0x432ee2[_0x2af5('0xcd')];_0xc0f336++){let _0x6fa57b,_0x571d6b,_0x80f980;const _0x12651b=_0x432ee2[_0xc0f336],_0x3a8e27=_0x432ee2[_0xc0f336-0x1];if('text'==_0x12651b['type'])continue;if(_0x12651b[_0x2af5('0x5c')]!=_0x3a8e27[_0x2af5('0x5c')])continue;if(!_0x48cfa3['isBlock'](_0x3a8e27[_0x2af5('0xf2')])||_0x48cfa3['isLimit'](_0x3a8e27['item']))continue;if(!_0x48cfa3[_0x2af5('0x19')](_0x12651b[_0x2af5('0xf2')])||_0x48cfa3['isLimit'](_0x12651b[_0x2af5('0xf2')]))continue;if((_0x432ee2[_0xc0f336]['isAdded']||_0x432ee2[_0xc0f336][_0x2af5('0x2e')])&&_0x432ee2[_0xc0f336-0x1][_0x2af5('0xd6')])_0x6fa57b=_0x432ee2[_0xc0f336],_0x571d6b=_0x432ee2[_0xc0f336-0x1],_0x80f980=_0xc0f336-0x1;else{if(!_0x432ee2[_0xc0f336][_0x2af5('0xd6')]||!_0x432ee2[_0xc0f336-0x1][_0x2af5('0xaa')]&&!_0x432ee2[_0xc0f336-0x1][_0x2af5('0x2e')])continue;_0x6fa57b=_0x432ee2[_0xc0f336-0x1],_0x571d6b=_0x432ee2[_0xc0f336],_0x80f980=_0xc0f336;}const _0x4c1888=_0x6fa57b[_0x2af5('0x49')]==_0x571d6b[_0x2af5('0x49')],_0x499768=Math['abs'](_0x6fa57b[_0x2af5('0x49')])<Math['abs'](_0x571d6b['level'])&&0x0==_0x571d6b[_0x2af5('0x67')];(_0x4c1888||_0x499768)&&(_0x3a392a[_0x2af5('0xf')](_0x571d6b['id'],_0x6fa57b['id']),_0x432ee2['splice'](_0x80f980,0x1),_0xc0f336--,_0x6fa57b['isAdded']=!0x1);}for(let _0x16a88e=0x0;_0x16a88e<_0x432ee2[_0x2af5('0xcd')];_0x16a88e++)_0x3a392a[_0x2af5('0x5e')](_0x432ee2[_0x16a88e][_0x2af5('0xbe')])&&(_0x432ee2[_0x16a88e][_0x2af5('0xbe')]=_0x3a392a[_0x2af5('0xa8')](_0x432ee2[_0x16a88e][_0x2af5('0xbe')]));}[_0x2af5('0xcb')](_0x299e98){const _0x2495cd=new Set(_0x299e98['map'](_0xc9998a=>_0xc9998a['id']));for(let _0x166a53=0x0;_0x166a53<_0x299e98[_0x2af5('0xcd')];_0x166a53++)_0x2495cd['has'](_0x299e98[_0x166a53][_0x2af5('0xbe')])||0x0==_0x299e98[_0x166a53][_0x2af5('0x67')]||(_0x299e98[_0x166a53][_0x2af5('0x17')]=!0x0);return _0x299e98[_0x2af5('0xe7')](_0x10eca7=>!_0x10eca7[_0x2af5('0x17')]);}['_markMismatchedRemovedTags'](_0x55344f){const _0x378ecf=new Set();for(let _0x16299c=0x0;_0x16299c<_0x55344f[_0x2af5('0xcd')];_0x16299c++){if(_0x378ecf[_0x2af5('0x5e')](_0x55344f[_0x16299c]['id'])&&_0x55344f[_0x16299c][_0x2af5('0xd6')]&&(_0x55344f[_0x16299c][_0x2af5('0x17')]=!0x0),_0x55344f[_0x16299c][_0x2af5('0x17')])continue;if(0x0==_0x55344f[_0x16299c][_0x2af5('0x67')])continue;if(_0x2af5('0x3c')!=_0x55344f[_0x16299c]['type'])continue;if(null==_0x55344f[_0x16299c][_0x2af5('0xbe')])continue;let _0x3d2a1c=_0x16299c+0x1,_0x3edb7c=0x0;for(;_0x55344f[_0x3d2a1c]['id']!=_0x55344f[_0x16299c]['pairId'];)_0x2af5('0x3c')==_0x55344f[_0x3d2a1c][_0x2af5('0x5c')]?_0x3edb7c++:_0x2af5('0xf9')==_0x55344f[_0x3d2a1c][_0x2af5('0x5c')]&&_0x3edb7c--,_0x3d2a1c++;if(0x0!=_0x3edb7c){if(_0x55344f[_0x16299c][_0x2af5('0xd6')])_0x55344f[_0x16299c][_0x2af5('0x17')]=!0x0;else for(;_0x3d2a1c!=_0x16299c;)_0x55344f[_0x3d2a1c][_0x2af5('0xd6')]&&0x0!=_0x55344f[_0x3d2a1c][_0x2af5('0x67')]&&(_0x55344f[_0x3d2a1c]['isIncorrect']=!0x0,_0x378ecf[_0x2af5('0xad')](_0x55344f[_0x3d2a1c][_0x2af5('0xbe')])),_0x3d2a1c--;}}return _0x55344f['filter'](_0x479f39=>!_0x479f39[_0x2af5('0x17')]);}[_0x2af5('0x9a')](_0x3f0f91){const _0x300500=this['editor'][_0x2af5('0x23')]['schema'];for(let _0x317fa6=0x0;_0x317fa6<_0x3f0f91['length'];_0x317fa6++){if(!(_0x3f0f91[_0x317fa6]['isAdded']||_0x3f0f91[_0x317fa6][_0x2af5('0x2e')]||_0x3f0f91[_0x317fa6]['isRemoved']||_0x3f0f91[_0x317fa6][_0x2af5('0xe1')]))continue;if(0x0==_0x3f0f91[_0x317fa6]['distance'])continue;const _0x1c2673=_0x3f0f91[_0x317fa6][_0x2af5('0xf2')];_0x300500[_0x2af5('0x19')](_0x1c2673)||_0x300500[_0x2af5('0x114')](_0x1c2673)||(_0x3f0f91[_0x317fa6][_0x2af5('0xaa')]&&delete _0x3f0f91[_0x317fa6][_0x2af5('0xaa')],_0x3f0f91[_0x317fa6]['isAddSuggestion']&&delete _0x3f0f91[_0x317fa6][_0x2af5('0x2e')],_0x3f0f91[_0x317fa6][_0x2af5('0xe1')]&&delete _0x3f0f91[_0x317fa6][_0x2af5('0xe1')],_0x3f0f91[_0x317fa6][_0x2af5('0xd6')]&&(_0x3f0f91[_0x317fa6]['isIncorrect']=!0x0));}return _0x3f0f91['filter'](_0x537d9c=>!_0x537d9c[_0x2af5('0x17')]);}[_0x2af5('0x3f')](_0x1787bd,_0x29e655,_0x4baaa6){const _0x2640f6=new _0x78ee8d(),_0x2eb3ce=[],_0x549a87=new Map(),_0x36d24e=this[_0x2af5('0x24')][_0x2af5('0x23')],_0x3dddd8=_0x36d24e[_0x2af5('0xd')],_0x428ca8=[_0x2640f6],_0x177cfd={},_0x22cd78={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3b0728=null;const _0x305d0f=[0x0];for(let _0x281f10=0x0;_0x281f10<_0x1787bd[_0x2af5('0xcd')];_0x281f10++){let _0xd4624c,_0x572eb7;if(_0x2af5('0x3c')===_0x1787bd[_0x281f10][_0x2af5('0x5c')]){_0xd4624c=_0x36d24e[_0x2af5('0x3d')](_0x2640f6,_0x305d0f);const _0x18728f=new _0x39553c(_0x1787bd[_0x281f10]['item'][_0x2af5('0x30')],_0x1787bd[_0x281f10][_0x2af5('0xf2')]['getAttributes']());_0x428ca8[0x0][_0x2af5('0xd7')](_0x18728f),_0x305d0f[_0x2af5('0xc1')](0x0),_0x428ca8['unshift'](_0x18728f),_0x572eb7=_0x36d24e['createPositionFromPath'](_0x2640f6,_0x305d0f),_0x3b0728=null;}else{if('elementEnd'===_0x1787bd[_0x281f10][_0x2af5('0x5c')])_0x428ca8['shift'](),_0xd4624c=_0x36d24e[_0x2af5('0x3d')](_0x2640f6,_0x305d0f),_0x305d0f[_0x2af5('0x7a')](),_0x305d0f[_0x305d0f[_0x2af5('0xcd')]-0x1]++,_0x572eb7=_0x36d24e[_0x2af5('0x3d')](_0x2640f6,_0x305d0f),_0x3b0728=null;else{if(_0xd4624c=_0x36d24e[_0x2af5('0x3d')](_0x2640f6,_0x305d0f),_0x3b0728&&_0x196ea2(_0x3b0728,_0x1787bd[_0x281f10]['item']))_0x3b0728[_0x2af5('0xf1')]+=_0x1787bd[_0x281f10][_0x2af5('0xf2')][_0x2af5('0x56')];else{const _0x4487d6=new _0x4662a3(_0x1787bd[_0x281f10][_0x2af5('0xf2')][_0x2af5('0x56')],_0x1787bd[_0x281f10][_0x2af5('0xf2')]['getAttributes']());_0x428ca8[0x0][_0x2af5('0xd7')](_0x4487d6),_0x3b0728=_0x4487d6;}_0x305d0f[_0x305d0f[_0x2af5('0xcd')]-0x1]+=_0x1787bd[_0x281f10][_0x2af5('0xf2')][_0x2af5('0x96')],_0x572eb7=_0x36d24e[_0x2af5('0x3d')](_0x2640f6,_0x305d0f);}}for(const _0x5d4f0d of _0x1787bd[_0x281f10][_0x2af5('0x6f')])_0x549a87[_0x2af5('0xf')](_0x5d4f0d,{'start':_0xd4624c,'end':null});_0x49a5c2('isRemoveSuggestion',_0x281f10,_0xd4624c,_0x572eb7),_0x49a5c2(_0x2af5('0x2e'),_0x281f10,_0xd4624c,_0x572eb7),_0x49a5c2(_0x2af5('0xd6'),_0x281f10,_0xd4624c,_0x572eb7),_0x49a5c2(_0x2af5('0xaa'),_0x281f10,_0xd4624c,_0x572eb7);for(const _0xd1ff15 of _0x1787bd[_0x281f10][_0x2af5('0x28')]){_0x549a87[_0x2af5('0xa8')](_0xd1ff15)[_0x2af5('0x99')]=_0x572eb7;}}for(const [_0x296c44,_0x486467]of _0x549a87){const _0x11e332=this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0xb9')](_0x486467[_0x2af5('0xee')],_0x486467[_0x2af5('0x99')]);_0x2640f6[_0x2af5('0x7e')][_0x2af5('0xf')](_0x296c44,_0x11e332);}return _0x2eb3ce[_0x2af5('0x1b')]((_0x5dce42,_0x1b38cb)=>{const _0x26c19a=_0x2640f6[_0x2af5('0x7e')][_0x2af5('0xa8')](_0x2af5('0x9f')+_0x5dce42['id']),_0x535f44=_0x2640f6['markers'][_0x2af5('0xa8')](_0x2af5('0x9f')+_0x1b38cb['id']);return _0x26c19a[_0x2af5('0xee')][_0x2af5('0x109')](_0x535f44[_0x2af5('0xee')])?-0x1:_0x26c19a['start'][_0x2af5('0x50')](_0x535f44[_0x2af5('0xee')])?0x1:_0x26c19a[_0x2af5('0x99')][_0x2af5('0x109')](_0x535f44[_0x2af5('0x99')])?-0x1:_0x26c19a[_0x2af5('0x99')][_0x2af5('0x50')](_0x535f44['end'])?0x1:_0x2af5('0xad')===_0x5dce42[_0x2af5('0x5c')]?-0x1:0x1;}),{'root':_0x2640f6,'changes':_0x2eb3ce};function _0x49a5c2(_0x415016,_0x1c09d2,_0x25c4d1,_0xac5693){const _0x384770=!!_0x1787bd[_0x1c09d2][_0x415016],_0x29a2c0=_0x384770?_0x1787bd[_0x1c09d2][_0x415016]['userId']:null,_0x175072=_0x1c09d2===_0x1787bd['length']-0x1,_0x4a8053=_0x22cd78[_0x415016][0x0],_0x3ef34c=_0x3dddd8['isObject'](_0x1787bd[_0x1c09d2][_0x2af5('0xf2')]);!_0x177cfd[_0x415016]&&_0x384770?_0x177cfd[_0x415016]={'start':_0x25c4d1,'tapeItem':_0x1787bd[_0x1c09d2],'userId':_0x29a2c0,'type':_0x415016}:_0x177cfd[_0x415016]&&!_0x384770?(_0x177cfd[_0x415016][_0x2af5('0x99')]=_0x25c4d1,_0x1aa8d7(_0x177cfd[_0x415016]),_0x177cfd[_0x415016]=null):_0x177cfd[_0x415016]&&_0x384770&&_0x177cfd[_0x415016][_0x2af5('0x21')]!==_0x29a2c0&&(_0x177cfd[_0x415016][_0x2af5('0x99')]=_0x25c4d1,_0x4a8053&&_0x4a8053[_0x2af5('0x21')]===_0x177cfd[_0x415016][_0x2af5('0x21')]||_0x1aa8d7(_0x177cfd[_0x415016]),_0x177cfd[_0x415016]={'start':_0x25c4d1,'tapeItem':_0x1787bd[_0x1c09d2],'userId':_0x29a2c0,'type':_0x415016}),_0x177cfd[_0x415016]&&_0x3ef34c&&(_0x2af5('0x3c')!==_0x1787bd[_0x1c09d2][_0x2af5('0x5c')]||_0x4a8053&&_0x4a8053[_0x2af5('0x21')]===_0x29a2c0||_0x22cd78[_0x415016][_0x2af5('0x10c')]({'userId':_0x29a2c0,'object':_0x1787bd[_0x1c09d2][_0x2af5('0xf2')],'change':_0x177cfd[_0x415016]}),_0x2af5('0xf9')===_0x1787bd[_0x1c09d2]['type']&&_0x4a8053&&_0x4a8053[_0x2af5('0x4f')]===_0x1787bd[_0x1c09d2][_0x2af5('0xf2')]&&(_0x22cd78[_0x415016][_0x2af5('0x100')](),_0x177cfd[_0x415016]=_0x4a8053[_0x2af5('0x11f')])),_0x177cfd[_0x415016]&&_0x175072&&(_0x177cfd[_0x415016][_0x2af5('0x99')]=_0xac5693,_0x1aa8d7(_0x177cfd[_0x415016]),_0x177cfd[_0x415016]=null);}function _0x1aa8d7({start:_0x23d8e0,end:_0x250e81,tapeItem:_0xd59437,userId:_0x1f8e82,type:_0x4ed8ac}){const _0x27d52e=_0xd59437['item'],_0x26bc23=_0x36d24e[_0x2af5('0xd')][_0x2af5('0x19')](_0x27d52e)&&!_0x36d24e['schema'][_0x2af5('0x114')](_0x27d52e),_0x176ab0=_0x23d8e0['nodeAfter']==_0x250e81[_0x2af5('0x70')]&&_0x250e81[_0x2af5('0x61')];if(_0x26bc23&&_0x176ab0)return;const _0x16a864=_0x36d24e[_0x2af5('0xb9')](_0x23d8e0,_0x250e81),_0x520027=_0x29e655[_0x2af5('0xa8')](_0x1f8e82),_0x123606=new _0x35673c({'author':_0x520027,'type':'isAdded'==_0x4ed8ac||_0x2af5('0x2e')==_0x4ed8ac?_0x2af5('0xad'):_0x2af5('0xff'),'data':{'isSuggestion':_0x2af5('0x2e')==_0x4ed8ac||_0x2af5('0xe1')==_0x4ed8ac},'createdAt':new Date(),'rootName':_0x4baaa6});_0x2eb3ce['push'](_0x123606),_0x2640f6['markers']['set'](_0x2af5('0x9f')+_0x123606['id'],_0x16a864);}function _0x196ea2(_0x682c92,_0x2385b8){const _0x23557d=_0x682c92[_0x2af5('0x43')](),_0xc68a5a=_0x2385b8['getAttributes']();for(const _0x355f98 of _0x23557d){if(_0x355f98[0x1]!==_0x2385b8[_0x2af5('0x33')](_0x355f98[0x0]))return!0x1;_0xc68a5a[_0x2af5('0x12')]();}return _0xc68a5a[_0x2af5('0x12')]()[_0x2af5('0x83')];}}[_0x2af5('0x16')](){this[_0x2af5('0x24')]['conversion']['for'](_0x2af5('0x124'))['dataToMarker']({'view':'revision'}),this[_0x2af5('0x24')]['conversion']['for'](_0x2af5('0x97'))[_0x2af5('0x5a')]({'model':'revision','view':_0x311440=>{const _0x20fee7=_0x311440[_0x2af5('0x8')][_0x2af5('0x93')](':')[0x1],_0xe89f44=this['_getChangeFromId'](_0x20fee7);if(!_0xe89f44)return null;const _0x5cabca='add'==_0xe89f44['type']?'insertion':_0x2af5('0x113'),_0x10f9c3=[_0x2af5('0x74'),_0x2af5('0x2a')+_0x5cabca];return _0xe89f44[_0x2af5('0x56')][_0x2af5('0xf4')]&&_0x10f9c3[_0x2af5('0xc1')](_0x2af5('0x2a')+_0x5cabca+_0x2af5('0x7b')),this[_0x2af5('0x75')]==_0xe89f44&&_0x10f9c3[_0x2af5('0xc1')](_0x2af5('0x120')),{'classes':_0x10f9c3,'attributes':{'data-change-id':_0x20fee7}};}}),this[_0x2af5('0x24')][_0x2af5('0xe5')]['for'](_0x2af5('0x124'))[_0x2af5('0xad')](_0x3b6f3e=>{_0x3b6f3e['on'](_0x2af5('0x41'),(_0x54a623,_0x1c884d,_0x81da00)=>{const _0x1d1e15=_0x1c884d[_0x2af5('0xf0')]['getChild'](0x0);if(!_0x1d1e15||!_0x1d1e15['is'](_0x2af5('0xd1'),_0x2af5('0xdd')))return;if(!_0x81da00[_0x2af5('0x4c')][_0x2af5('0x77')](_0x1d1e15,{'attributes':[_0x2af5('0x10a'),'vid_end']}))return;const _0x595f16=_0x1c884d[_0x2af5('0x10e')]['start']['nodeAfter'];_0x81da00[_0x2af5('0xf8')]['setAttribute'](_0x2af5('0x10a'),_0x1d1e15[_0x2af5('0x33')]('vid_start'),_0x595f16),_0x81da00['writer'][_0x2af5('0x58')]('vid_end',_0x1d1e15['getAttribute'](_0x2af5('0xa5')),_0x595f16);},{'priority':_0x2af5('0xe2')});}),this[_0x2af5('0x24')]['conversion'][_0x2af5('0xa3')]('upcast')[_0x2af5('0xad')](_0x24f45a=>{_0x24f45a['on']('element',(_0x41c30e,_0x5ee69a,_0xdf88fa)=>{if(!_0xdf88fa[_0x2af5('0x4c')][_0x2af5('0x77')](_0x5ee69a['viewItem'],{'attributes':[_0x2af5('0x10a'),_0x2af5('0xa5')]}))return;if(_0x5ee69a[_0x2af5('0x10e')][_0x2af5('0xc6')])return;const _0x21cdfe=_0x5ee69a['modelRange']['start']['nodeAfter'];_0x21cdfe[_0x2af5('0x81')]('vid_start')||_0x21cdfe['hasAttribute']('vid')||(_0xdf88fa['writer']['setAttribute'](_0x2af5('0x10a'),_0x5ee69a[_0x2af5('0xf0')][_0x2af5('0x33')](_0x2af5('0x10a')),_0x21cdfe),_0xdf88fa['writer'][_0x2af5('0x58')](_0x2af5('0xa5'),_0x5ee69a[_0x2af5('0xf0')][_0x2af5('0x33')](_0x2af5('0xa5')),_0x21cdfe));},{'priority':_0x2af5('0xe2')});}),this[_0x2af5('0x24')][_0x2af5('0xe5')][_0x2af5('0xa3')](_0x2af5('0x124'))['elementToAttribute']({'view':{'name':_0x2af5('0x1f'),'attributes':{'vid':!0x0}},'model':{'key':_0x2af5('0x91'),'value':_0xc002af=>_0xc002af['getAttribute']('vid')}}),this[_0x2af5('0x24')]['model'][_0x2af5('0xd')]['on'](_0x2af5('0x98'),(_0x31ae50,[,_0x6a628e])=>{[_0x2af5('0x10a'),_0x2af5('0xa5'),'vid'][_0x2af5('0xe8')](_0x6a628e)&&(_0x31ae50[_0x2af5('0xa7')]=!0x0,_0x31ae50[_0x2af5('0x32')]());},{'priority':'highest'}),this[_0x2af5('0x24')][_0x2af5('0xe5')][_0x2af5('0xa3')](_0x2af5('0x31'))[_0x2af5('0xad')](_0x55229c=>{_0x55229c['on']('attribute:vid',(_0x550181,_0x5413e4,_0x4b7810)=>{if('\x20'!=_0x5413e4['item'][_0x2af5('0x56')]||_0x5413e4['item'][_0x2af5('0x70')][_0x2af5('0xd2')]>0x1)return;if(!_0x4b7810['consumable'][_0x2af5('0x77')](_0x5413e4[_0x2af5('0xf2')],_0x550181[_0x2af5('0x30')]))return;const _0x18f41e=_0x4b7810[_0x2af5('0xf8')],_0x224bf6=_0x4b7810[_0x2af5('0x54')][_0x2af5('0x25')](_0x5413e4['range']);_0x18f41e[_0x2af5('0xfa')](_0x224bf6,_0x18f41e[_0x2af5('0x117')]('span'));});}),this[_0x2af5('0x24')]['conversion'][_0x2af5('0xa3')](_0x2af5('0x31'))[_0x2af5('0x40')]({'model':'revision'}),this[_0x2af5('0x24')]['editing'][_0x2af5('0xd5')]['on'](_0x2af5('0xd3'),function(_0x173b25){const _0x31f199=_0x173b25[_0x2af5('0x9')]['get']('RevisionViewer');return(_0x101a53,_0x5dbb07,_0x17e74f)=>{const _0x1d2ede=_0x5dbb07['markerName'][_0x2af5('0x93')](':')[0x1],_0x55f243=_0x31f199[_0x2af5('0x26')](_0x1d2ede);if(!_0x55f243)return null;const _0x2260ba='add'==_0x55f243[_0x2af5('0x5c')]?'split':_0x2af5('0x6d');if(!_0x17e74f[_0x2af5('0x4c')][_0x2af5('0x5b')](_0x5dbb07[_0x2af5('0xdf')],_0x101a53[_0x2af5('0x30')]))return;const _0x4978b3=_0x5dbb07['markerRange'][_0x2af5('0xb6')](),_0xcab211=_0x5dbb07[_0x2af5('0xdf')]['start'],_0x119354=_0x173b25[_0x2af5('0x23')][_0x2af5('0xd')];let _0xccf4d0=null,_0x540778=null,_0x77cbab=!0x1,_0x5eb80a=!0x1;for(const _0x3c577a of _0x4978b3){const _0x52828c=_0x3c577a[_0x2af5('0xf2')];_0x77cbab=_0x77cbab||_0x119354[_0x2af5('0x45')](_0x52828c);const _0x53079f=_0x17e74f['mapper']['toViewElement'](_0x52828c);if(_0x53079f&&_0x53079f[_0x2af5('0x1a')](_0x2af5('0x85')))return;_0x2af5('0xf9')==_0x3c577a[_0x2af5('0x5c')]&&(_0x119354['isBlock'](_0x52828c)&&!_0x119354[_0x2af5('0x114')](_0x52828c)&&(_0x52828c['nextSibling']||_0xcab211['isAtEnd']?_0xccf4d0&&_0xccf4d0[_0x2af5('0x70')]==_0x52828c||(_0xccf4d0=_0x52828c,_0x54005b(_0x3c577a['previousPosition']),_0x5eb80a=!0x0):_0x540778=_0x540778||_0x3c577a[_0x2af5('0x52')]));}function _0x54005b(_0x1e8e3f){const _0x356e7c=_0x17e74f['writer']['createUIElement'](_0x2af5('0x1f'),{'class':_0x2af5('0x2a')+_0x2260ba}),_0x2e06ad=_0x17e74f[_0x2af5('0x54')][_0x2af5('0x9e')](_0x1e8e3f);_0x55f243[_0x2af5('0x56')][_0x2af5('0xf4')]&&_0x17e74f[_0x2af5('0xf8')][_0x2af5('0xda')](_0x2af5('0x2a')+_0x2260ba+_0x2af5('0x7b'),_0x356e7c),_0x31f199['activeChange']==_0x55f243&&_0x17e74f['writer']['addClass'](_0x2af5('0x120'),_0x356e7c),_0x17e74f[_0x2af5('0xf8')][_0x2af5('0x63')](_0x2e06ad,_0x356e7c),_0x17e74f[_0x2af5('0x54')]['bindElementToMarker'](_0x356e7c,_0x5dbb07[_0x2af5('0x8')]);}_0x77cbab||_0x5eb80a||!_0x540778||_0x54005b(_0x540778);};}(this[_0x2af5('0x24')]),{'priority':_0x2af5('0xab')}),this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0xd5')]['on'](_0x2af5('0x34'),(_0x7dda19,_0x41e162,_0x261d91)=>{const _0x4e2d4d=_0x261d91[_0x2af5('0x54')][_0x2af5('0x1')](_0x41e162[_0x2af5('0x8')]);if(_0x4e2d4d)for(const _0x556903 of _0x4e2d4d)(_0x556903['hasClass']('ck-suggestion-marker-split')||_0x556903[_0x2af5('0xca')](_0x2af5('0x11b')))&&(_0x261d91['mapper']['unbindElementFromMarkerName'](_0x556903,_0x41e162[_0x2af5('0x8')]),_0x261d91['writer'][_0x2af5('0xff')](_0x556903));},{'priority':_0x2af5('0xab')}),this[_0x2af5('0x24')][_0x2af5('0xa4')]['downcastDispatcher']['on'](_0x2af5('0xd3'),(_0x3555e9,_0x1ac552,_0x2e998f)=>{const _0x1aeb68=_0x1ac552['markerName'][_0x2af5('0x93')](':')[0x1],_0x25c900=this[_0x2af5('0x26')](_0x1aeb68);if(!_0x25c900)return null;const _0x7fff02=_0x2af5('0xad')==_0x25c900['type']?_0x2af5('0x93'):'merge';if(_0x2e998f[_0x2af5('0x4c')][_0x2af5('0x5b')](_0x1ac552['markerRange'],_0x3555e9[_0x2af5('0x30')]))for(const _0x176a67 of _0x1ac552['markerRange'][_0x2af5('0xb5')]()){if(!_0x176a67['is'](_0x2af5('0xd1'),'softBreak'))continue;const _0x2e7edf=_0x2e998f[_0x2af5('0xf8')][_0x2af5('0x119')]('span',{'class':_0x2af5('0x2a')+_0x7fff02}),_0x52049e=_0x2e998f[_0x2af5('0x54')]['toViewPosition'](this[_0x2af5('0x24')][_0x2af5('0x23')]['createPositionBefore'](_0x176a67));_0x25c900[_0x2af5('0x56')][_0x2af5('0xf4')]&&_0x2e998f[_0x2af5('0xf8')][_0x2af5('0xda')](_0x2af5('0x2a')+_0x7fff02+_0x2af5('0x7b'),_0x2e7edf),this['activeChange']==_0x25c900&&_0x2e998f['writer'][_0x2af5('0xda')](_0x2af5('0x120'),_0x2e7edf),_0x2e998f[_0x2af5('0xf8')][_0x2af5('0x63')](_0x52049e,_0x2e7edf),_0x2e998f['mapper'][_0x2af5('0x123')](_0x2e7edf,_0x1ac552[_0x2af5('0x8')]);}},{'priority':_0x2af5('0xab')}),this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0xc3')]['on'](_0x2af5('0x11f'),()=>{this['editor']['editing'][_0x2af5('0x22')]['change'](_0x312e52=>{for(const _0x2e58b3 of this['editor'][_0x2af5('0x23')][_0x2af5('0xc3')][_0x2af5('0x2b')]()){const _0xdd1c5=this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0xc3')][_0x2af5('0xe9')](_0x2e58b3),_0x2bd4c8=this['editor'][_0x2af5('0xa4')][_0x2af5('0x22')][_0x2af5('0xc3')][_0x2af5('0xe9')](_0x2e58b3);if(_0x2bd4c8){const _0x4e01aa=_0xdd1c5[_0x2af5('0x33')](_0x2af5('0x42'));if(_0x312e52['removeAttribute']('data-change-id',_0x2bd4c8),_0x312e52['removeClass'](_0x2af5('0x62'),_0x2bd4c8),_0x312e52[_0x2af5('0xfb')]('ck-revision-history-root-remove',_0x2bd4c8),_0x312e52[_0x2af5('0xfb')](_0x2af5('0x3b'),_0x2bd4c8),_0x4e01aa){const _0x170159=this[_0x2af5('0x26')](_0x4e01aa);if(!_0x170159)return null;_0x312e52['setAttribute']('data-change-id',_0x4e01aa,_0x2bd4c8),_0x312e52[_0x2af5('0xda')](_0x2af5('0x107')+_0x170159['type'],_0x2bd4c8),this['activeChange']==_0x170159&&_0x312e52[_0x2af5('0xda')]('ck-revision-history-root--active',_0x2bd4c8);}}}});}),this[_0x2af5('0x24')][_0x2af5('0xe5')][_0x2af5('0xa3')](_0x2af5('0x124'))[_0x2af5('0xae')]({'view':'comment','model':_0x2a33f7=>_0x2af5('0x69')+_0x2a33f7,'converterPriority':_0x2af5('0x37')}),this[_0x2af5('0x24')]['conversion'][_0x2af5('0xa3')]('upcast')[_0x2af5('0xae')]({'view':_0x2af5('0x3'),'model':_0xb4f95d=>_0x2af5('0x1e')+_0xb4f95d,'converterPriority':'highest'}),this[_0x2af5('0x24')]['conversion'][_0x2af5('0xa3')](_0x2af5('0x31'))[_0x2af5('0x40')]({'model':_0x2af5('0x5d'),'view':_0x4a746c=>({'name':_0x2af5('0xea')+_0x4a746c,'group':_0x2af5('0x5d')}),'converterPriority':_0x2af5('0x37')}),this[_0x2af5('0x24')][_0x2af5('0xe5')][_0x2af5('0xa3')](_0x2af5('0x97'))[_0x2af5('0x5a')]({'model':_0x2af5('0x5d'),'view':_0x1f3ea0=>{const _0x57ffe9=_0x1f3ea0[_0x2af5('0x8')][_0x2af5('0x93')](':')[0x1];return'insertion'!=_0x57ffe9&&_0x2af5('0x113')!=_0x57ffe9?null:{'classes':[_0x2af5('0x6'),_0x2af5('0xa')+_0x57ffe9]};}}),this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0xd5')]['on'](_0x2af5('0x103'),et(this['editor'],_0x2af5('0x6d')),{'priority':_0x2af5('0xab')}),this[_0x2af5('0x24')]['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this[_0x2af5('0x24')],_0x2af5('0x93')),{'priority':'high'}),this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0xd5')]['on']('removeMarker:revision-suggestion',(_0x3fbe5e,_0x56b9d8,_0x41fcf5)=>{const _0x52b7d4=_0x41fcf5['mapper'][_0x2af5('0x1')](_0x56b9d8[_0x2af5('0x8')]);if(_0x52b7d4)for(const _0x3ae2e5 of _0x52b7d4)_0x3ae2e5['is'](_0x2af5('0x0'))&&(_0x41fcf5[_0x2af5('0x54')]['unbindElementFromMarkerName'](_0x3ae2e5,_0x56b9d8[_0x2af5('0x8')]),_0x41fcf5[_0x2af5('0xf8')]['remove'](_0x3ae2e5));},{'priority':_0x2af5('0xab')});}[_0x2af5('0x26')](_0x4f1a26){return this[_0x2af5('0xf5')]['get'](_0x4f1a26);}[_0x2af5('0x9b')](_0x5e65f8){return this[_0x2af5('0xfe')]&&this[_0x2af5('0xfe')][_0x2af5('0x104')](),this[_0x2af5('0xfe')]=new _0x52ad46(this['editor'][_0x2af5('0x66')],_0x5e65f8),this['_changeView'];}['_initInteractions'](){this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0xc3')][_0x2af5('0xb0')][_0x2af5('0xac')](_0x2af5('0x78')),this['on'](_0x2af5('0x10'),(_0x3ac4cb,_0xadf415,_0x9bace4,_0x520df5)=>{_0x520df5&&this[_0x2af5('0xc4')][_0x2af5('0xff')](_0x520df5),_0x9bace4&&(this[_0x2af5('0xc4')][_0x2af5('0xad')]({'view':_0x9bace4,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4683b5=this[_0x2af5('0x24')][_0x2af5('0xa4')],_0x2c8099=this['_getChangeFromId'](_0x9bace4[_0x2af5('0x9d')]);let _0x3ed2a7;if(_0x2c8099[_0x2af5('0x56')][_0x2af5('0xe3')]){const _0x3a91a9=_0x4683b5[_0x2af5('0x22')][_0x2af5('0xbd')](_0x2c8099[_0x2af5('0x29')]);_0x3ed2a7=Array[_0x2af5('0x11a')](_0x3a91a9[_0x2af5('0x94')]());}else{const _0x146d67=this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0x7e')][_0x2af5('0xa8')]('revision:'+_0x9bace4[_0x2af5('0x9d')]);_0x3ed2a7=Array[_0x2af5('0x11a')](_0x4683b5['mapper'][_0x2af5('0x1')](_0x146d67[_0x2af5('0x30')]))['map'](_0x441227=>_0x4683b5[_0x2af5('0x22')][_0x2af5('0x90')][_0x2af5('0x13')](_0x441227))[_0x2af5('0xd9')](_0x302831=>Array['from'](_0x302831[_0x2af5('0x94')]()))[_0x2af5('0xb1')]();}if(!this[_0x2af5('0xb3')])return _0x3ed2a7[0x0];return _0x3ed2a7[_0x2af5('0x116')](_0x31df23=>_0x31df23[_0x2af5('0x11c')]-0x3<=this[_0x2af5('0xb3')]['y']&&_0x31df23[_0x2af5('0xc8')]+0x3>=this[_0x2af5('0xb3')]['y']&&_0x31df23[_0x2af5('0x47')]-0x3<=this[_0x2af5('0xb3')]['x']&&_0x31df23[_0x2af5('0x115')]+0x3>=this[_0x2af5('0xb3')]['x'])||_0x3ed2a7[0x0];}}}),this['_balloon']['showStack'](_0x2af5('0x105')));}),this['on'](_0x2af5('0x10b'),(_0x4a2190,_0x249f6c,_0x23cedb,_0x2162e3)=>{this[_0x2af5('0x79')]=_0x23cedb?this['_getViewForChange'](_0x23cedb):null,this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0x11f')](()=>{const _0x2fec66=this[_0x2af5('0x24')][_0x2af5('0xa4')];_0x2162e3&&(_0x2162e3[_0x2af5('0x56')][_0x2af5('0xe3')]?_0x2fec66[_0x2af5('0x22')][_0x2af5('0x11f')](_0x362bfc=>{_0x362bfc['removeClass'](_0x2af5('0x3b'),_0x2fec66[_0x2af5('0x22')]['document'][_0x2af5('0xe9')](_0x2162e3[_0x2af5('0x29')]));}):_0x2fec66[_0x2af5('0x44')]('revision:'+_0x2162e3['id'])),_0x23cedb&&(_0x23cedb[_0x2af5('0x56')][_0x2af5('0xe3')]?_0x2fec66[_0x2af5('0x22')]['change'](_0x2c7618=>{_0x2c7618[_0x2af5('0xda')](_0x2af5('0x3b'),_0x2fec66[_0x2af5('0x22')][_0x2af5('0xc3')][_0x2af5('0xe9')](_0x23cedb[_0x2af5('0x29')]));}):_0x2fec66['reconvertMarker']('revision:'+_0x23cedb['id']));});}),this['listenTo'](this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0x22')][_0x2af5('0xc3')],_0x2af5('0x3a'),(_0x4cc3e6,_0x181c42)=>{if(this['activeChange'])return;const _0x6b048=this[_0x2af5('0x68')](_0x181c42[_0x2af5('0x10f')]),_0x5ce123=this[_0x2af5('0xf5')][_0x2af5('0xa8')](_0x6b048);_0x5ce123?(this[_0x2af5('0xb3')]={'x':_0x181c42[_0x2af5('0x18')]['x'],'y':_0x181c42[_0x2af5('0x18')]['y']},this[_0x2af5('0x79')]=this[_0x2af5('0x9b')](_0x5ce123)):(this[_0x2af5('0xb3')]=null,this[_0x2af5('0x79')]=null);}),this[_0x2af5('0x1d')](this[_0x2af5('0x24')][_0x2af5('0xa4')]['view'][_0x2af5('0xc3')],_0x2af5('0x71'),(_0x44377f,_0x30eb97)=>{const _0x23b3b4=this[_0x2af5('0x68')](_0x30eb97[_0x2af5('0x10f')]),_0x2e14dd=this[_0x2af5('0xf5')][_0x2af5('0xa8')](_0x23b3b4);_0x2e14dd?(this[_0x2af5('0xb3')]={'x':_0x30eb97['domEvent']['x'],'y':_0x30eb97['domEvent']['y']},_0x2e14dd===this['activeChange']?this['_balloon'][_0x2af5('0xfc')]():this[_0x2af5('0x75')]=_0x2e14dd):(this[_0x2af5('0xb3')]=null,this[_0x2af5('0x75')]=null);});}['_findChangeIdFromDomTarget'](_0x1a9475){do{const _0x5e0348=_0x1a9475[_0x2af5('0x33')](_0x2af5('0x39'));if(_0x5e0348)return _0x5e0348;_0x1a9475=_0x1a9475['parent'];}while(_0x1a9475);return null;}[_0x2af5('0xb4')](){this[_0x2af5('0x24')]['model']['change'](_0x221582=>{for(const _0x501052 of this['editor'][_0x2af5('0x23')][_0x2af5('0x7e')])_0x221582['removeMarker'](_0x501052);});}}function et(_0x2096cd,_0x4061e0){return(_0x1f25b0,_0x41918d,_0x5f252a)=>{if(!_0x5f252a['consumable'][_0x2af5('0x5b')](_0x41918d[_0x2af5('0xdf')],_0x1f25b0[_0x2af5('0x30')]))return;const _0x2b6ae3=_0x41918d[_0x2af5('0xdf')]['getWalker'](),_0x38153b=_0x41918d['markerRange'][_0x2af5('0xee')],_0x234d8c=_0x2096cd[_0x2af5('0x23')]['schema'];let _0x5ec36c=null,_0x459c94=null,_0x4b87e3=!0x1,_0x2551bd=!0x1;for(const _0x2dd9dd of _0x2b6ae3){const _0x4cd7db=_0x2dd9dd['item'];_0x4b87e3=_0x4b87e3||_0x234d8c[_0x2af5('0x45')](_0x4cd7db);const _0x2779d0=_0x5f252a[_0x2af5('0x54')]['toViewElement'](_0x4cd7db);if(_0x2779d0&&_0x2779d0[_0x2af5('0x1a')](_0x2af5('0x85')))return;'elementEnd'==_0x2dd9dd['type']&&(_0x234d8c['isBlock'](_0x4cd7db)&&!_0x234d8c['isLimit'](_0x4cd7db)&&(_0x4cd7db[_0x2af5('0xc')]||_0x38153b[_0x2af5('0x4d')]?_0x5ec36c&&_0x5ec36c[_0x2af5('0x70')]==_0x4cd7db||(_0x5ec36c=_0x4cd7db,_0x465541(_0x2dd9dd[_0x2af5('0x52')]),_0x2551bd=!0x0):_0x459c94=_0x459c94||_0x2dd9dd[_0x2af5('0x52')]));}function _0x465541(_0x5cc8b3){const _0x58c6ea=_0x5f252a[_0x2af5('0x54')][_0x2af5('0x9e')](_0x5cc8b3),_0xf66945=_0x5f252a[_0x2af5('0xf8')]['createUIElement'](_0x2af5('0x1f'),{'class':'ck-suggestion-preview-marker-'+_0x4061e0});_0x5f252a[_0x2af5('0xf8')][_0x2af5('0x63')](_0x58c6ea,_0xf66945),_0x5f252a[_0x2af5('0x54')][_0x2af5('0x123')](_0xf66945,_0x41918d[_0x2af5('0x8')]);}_0x4b87e3||_0x2551bd||!_0x459c94||_0x465541(_0x459c94);};}export class RestoreRevisionCommand extends _0x3a55c2{constructor(_0x41ff7b){super(_0x41ff7b);const _0x1d2ca1=_0x41ff7b[_0x2af5('0x9')][_0x2af5('0xa8')](d);this[_0x2af5('0xe')]=!0x1,this[_0x2af5('0x1d')](_0x1d2ca1,_0x2af5('0xb8'),()=>this['refresh']()),this[_0x2af5('0x1d')](_0x1d2ca1,_0x2af5('0x11'),()=>this['refresh']());}[_0x2af5('0xdc')](){const _0x3910bc=this[_0x2af5('0x24')],_0x518722=_0x3910bc[_0x2af5('0x9')][_0x2af5('0xa8')](d),_0x5050d6=_0x518722[_0x2af5('0x6a')]?_0x518722['diff'][_0x2af5('0x1c')]:null;_0x3910bc[_0x2af5('0x8e')][_0x2af5('0xa8')](_0x2af5('0x95'))[_0x2af5('0xa2')](_0x5050d6);}['refresh'](){const {isReady:_0x4bb46e,isEnabled:_0x31fa2e}=this[_0x2af5('0x24')][_0x2af5('0x9')]['get'](d);this['isEnabled']=_0x4bb46e&&_0x31fa2e;}}export class ShowChangeCommand extends _0x3a55c2{constructor(_0x3159cd,{direction:_0xf877ff}){super(_0x3159cd);const _0x561cb5=_0x3159cd['plugins'][_0x2af5('0xa8')](d);this[_0x2af5('0xe')]=!0x1,this[_0x2af5('0x3e')]=_0x2af5('0x121')===_0xf877ff?0x1:-0x1,this[_0x2af5('0x1d')](_0x561cb5,_0x2af5('0xb8'),()=>this['refresh']()),this[_0x2af5('0x1d')](_0x561cb5,_0x2af5('0x11'),()=>this['refresh']()),this[_0x2af5('0x1d')](_0x561cb5,_0x2af5('0x10b'),()=>this[_0x2af5('0xfd')]());}[_0x2af5('0xdc')](){const _0x360e56=this['editor'],_0x36625a=_0x360e56[_0x2af5('0x9')]['get'](d),{isNavigationMode:_0xb3d5aa,currentChangeNumber:_0x35b7c8}=_0x36625a;let _0x41ffb8;if(_0x36625a[_0x2af5('0x75')]=_0xb3d5aa?_0x36625a['diff'][_0x2af5('0x111')][_0x2af5('0xa8')](_0x35b7c8+this['_step']):_0x36625a['diff'][_0x2af5('0x111')]['first'],_0x36625a[_0x2af5('0x75')]['data'][_0x2af5('0xe3')])_0x41ffb8=_0x360e56[_0x2af5('0xa4')][_0x2af5('0x22')]['getDomRoot'](_0x36625a[_0x2af5('0x75')][_0x2af5('0x29')]);else{const _0x19cb2f=_0x360e56[_0x2af5('0x23')][_0x2af5('0x7e')]['get'](_0x2af5('0x9f')+_0x36625a[_0x2af5('0x75')]['id']);_0x41ffb8=_0x324c3d(_0x360e56[_0x2af5('0xa4')],_0x19cb2f);}_0x5686ab({'target':_0x41ffb8,'viewportOffset':0x28});}[_0x2af5('0xfd')](){const {isNavigationMode:_0x3f3989,currentChangeNumber:_0x29e66d,numberOfChanges:_0x102bd6,isReady:_0x30ca5d,isEnabled:_0x535379}=this[_0x2af5('0x24')][_0x2af5('0x9')][_0x2af5('0xa8')](d);this['isEnabled']=!!(_0x535379&&_0x30ca5d&&_0x102bd6)&&(!_0x3f3989||(0x1===this[_0x2af5('0x3e')]?_0x29e66d<_0x102bd6-0x1:_0x29e66d>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32d9=['listView','bindTemplate','Show\x20more\x20items','class','isOpen','extendTemplate','source','bind','_action','ck-on','Name\x20this\x20revision','Restore\x20this\x20revision','locale','set','isReady','name','action','items','panelPosition','isEnabled','find','Compare\x20against\x20selected','add','buttonView','ck-revision-history-sidebar__revision__actions','isActionsDropdownOpen','isVisible'];(function(_0x3671a7,_0x32d990){const _0x5e5e1a=function(_0x3cc4ea){while(--_0x3cc4ea){_0x3671a7['push'](_0x3671a7['shift']());}};_0x5e5e1a(++_0x32d990);}(_0x32d9,0x148));const _0x5e5e=function(_0x3671a7,_0x32d990){_0x3671a7=_0x3671a7-0x0;let _0x5e5e1a=_0x32d9[_0x3671a7];return _0x5e5e1a;};import{Collection as _0x355625}from'ckeditor5/src/utils';import{icons as _0x1e23b9}from'ckeditor5/src/core';import{Model as _0x25dfae,addListToDropdown as _0x54e907,createDropdown as _0x29bb8e}from'ckeditor5/src/ui';import{getTranslation as _0x2eef79}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1fc763,_0x4eab19){const _0x37ac34=_0x1fc763[_0x5e5e('0x18')],_0x456b1e=_0x1fc763[_0x5e5e('0x8')],_0x5d2a00=_0x29bb8e(_0x456b1e);_0x5d2a00[_0x5e5e('0xe')]='sw';const _0x14c4eb=function(_0x66e963,_0xc3e4cf){const _0x253b5b=function(_0x2fb4bb,_0x556cdc){const _0x467e05=_0x2fb4bb['locale'],_0x4bb790={'Compare\x20against\x20selected':_0x2eef79(_0x467e05,_0x5e5e('0x11')),'Name\x20this\x20revision':_0x2eef79(_0x467e05,_0x5e5e('0x6')),'Restore\x20this\x20revision':_0x2eef79(_0x467e05,_0x5e5e('0x7'))};return _0x556cdc['map'](_0x3d3172=>{const _0x374762=_0x4bb790[_0x3d3172[_0x5e5e('0xb')]];return _0x374762&&_0x374762!==_0x3d3172[_0x5e5e('0xb')]&&(_0x3d3172[_0x5e5e('0xb')]=_0x374762),_0x3d3172;});}(_0x66e963,_0xc3e4cf),_0x3b3b85=new _0x355625();for(const _0x28b4d5 of _0x253b5b){const _0x12375c={'type':'button','model':new _0x25dfae({'label':_0x28b4d5[_0x5e5e('0xb')],'class':_0x28b4d5[_0x5e5e('0x1a')],'withText':!0x0,'_action':_0x28b4d5['action']})};_0x12375c['model'][_0x5e5e('0x3')](_0x5e5e('0xf'))['to'](_0x66e963,_0x5e5e('0x15'),_0x5430ab=>'function'!=typeof _0x28b4d5[_0x5e5e('0xf')]||(!_0x5430ab||_0x28b4d5[_0x5e5e('0xf')](_0x66e963))),_0x3b3b85[_0x5e5e('0x12')](_0x12375c);}return _0x3b3b85;}(_0x1fc763,_0x4eab19);return _0x1fc763['bind']('isActionsDropdownOpen')['to'](_0x5d2a00,_0x5e5e('0x0')),_0x5d2a00[_0x5e5e('0x13')][_0x5e5e('0x9')]({'label':_0x2eef79(_0x456b1e,_0x5e5e('0x19')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1e23b9['threeVerticalDots']}),_0x5d2a00[_0x5e5e('0x1')]({'attributes':{'class':[_0x5e5e('0x14'),_0x37ac34['if'](_0x5e5e('0x15'),_0x5e5e('0x5'))]},'on':{'click':_0x37ac34['to'](_0x4dbcf5=>_0x4dbcf5['stopPropagation']())}}),_0x5d2a00['on']('execute',_0x291c36=>{_0x1fc763[_0x5e5e('0xa')]&&'function'==typeof _0x291c36[_0x5e5e('0x2')][_0x5e5e('0x4')]&&_0x291c36[_0x5e5e('0x2')][_0x5e5e('0x4')](_0x1fc763);}),_0x54e907(_0x5d2a00,_0x14c4eb),_0x5d2a00['listenTo'](_0x1fc763,'change:isActionsDropdownOpen',(_0x3d541f,_0x26ffb3,_0x50206f)=>{if(_0x50206f)for(const _0x593327 of _0x5d2a00[_0x5e5e('0x17')][_0x5e5e('0xd')]){const _0x342b6e=_0x593327['children']['first'],_0x3340ef=_0x4eab19[_0x5e5e('0x10')](_0x595a63=>_0x595a63[_0x5e5e('0xc')]===_0x342b6e['_action'])['isVisible'];_0x593327[_0x5e5e('0x16')]=void 0x0===_0x3340ef||_0x3340ef(_0x1fc763);}}),_0x5d2a00;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbe2e=['ck-revision-history-sidebar__revision-author__name','setTemplate','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','Revision\x20creator','set','push','name','span'];(function(_0x120154,_0xbe2e55){const _0x320b56=function(_0xe6f0c7){while(--_0xe6f0c7){_0x120154['push'](_0x120154['shift']());}};_0x320b56(++_0xbe2e55);}(_0xbe2e,0xaf));const _0x320b=function(_0x120154,_0xbe2e55){_0x120154=_0x120154-0x0;let _0x320b56=_0xbe2e[_0x120154];return _0x320b56;};import{View as _0x2a6fdf,IconView as _0x4d20c3}from'ckeditor5/src/ui';import{getTranslation as _0x1b39fd}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0xf1ae8a from'../../../theme/icons/user.svg';export default class ti extends _0x2a6fdf{constructor(_0x578085,_0xb2f20a,_0xd5d20e){super(_0x578085);const _0xa1612d=new _0x4d20c3();_0xa1612d[_0x320b('0x1')]({'content':_0xf1ae8a,'viewBox':_0x320b('0x7')});const _0x16daf8=['ck','ck-revision-history-sidebar__revision-author'];_0xd5d20e&&_0x16daf8[_0x320b('0x2')](_0x320b('0x8'));const _0x5805fe=[{'tag':_0x320b('0x4'),'attributes':{'class':['ck',_0x320b('0x5')],'title':_0x1b39fd(_0x578085,_0xd5d20e?_0x320b('0x0'):'Revision\x20author')},'children':[_0xa1612d,_0xb2f20a[_0x320b('0x3')]]}];this[_0x320b('0x6')]({'tag':'li','attributes':{'class':_0x16daf8},'children':_0x5805fe});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4bd1=['extendTemplate','ck-revision-history-sidebar__revision-name','Revision\x20name','set'];(function(_0x316af8,_0x4bd161){var _0x5f05df=function(_0xb40b53){while(--_0xb40b53){_0x316af8['push'](_0x316af8['shift']());}};_0x5f05df(++_0x4bd161);}(_0x4bd1,0x133));var _0x5f05=function(_0x316af8,_0x4bd161){_0x316af8=_0x316af8-0x0;var _0x5f05df=_0x4bd1[_0x316af8];return _0x5f05df;};import{LabeledFieldView as _0x4fecc6}from'ckeditor5/src/ui';import{getTranslation as _0x267d76}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x4fecc6{constructor(_0x3ac861,_0x2fca0f){super(_0x3ac861,_0x2fca0f),this[_0x5f05('0x0')]({'label':_0x267d76(_0x3ac861,_0x5f05('0x3'))}),this[_0x5f05('0x1')]({'tag':'span','attributes':{'class':[_0x5f05('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54ce=['isSelected','uiLanguage','div','fire','setName','listenTo','revisionNameView','fieldView','creator','change','srcElement','revisionActionsView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','_createdAtFormatted','authors','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision','unshift','.ck-thread__remove-confirm','isHighlighted','filter','isConfirm','bind','map','isEnabled','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision__date','select','_revision','isActionsDropdownOpen','placeholder','set','unhighlight','bindTemplate','ck-revision-history-sidebar__revision__controls-wrapper','createdAt','value','ck-revision-history-sidebar__revision-authors','name','ck-disabled','isReady','closest','from','element'];(function(_0x2dcf75,_0x54ce40){const _0x47ff7e=function(_0x567b28){while(--_0x567b28){_0x2dcf75['push'](_0x2dcf75['shift']());}};_0x47ff7e(++_0x54ce40);}(_0x54ce,0x124));const _0x47ff=function(_0x2dcf75,_0x54ce40){_0x2dcf75=_0x2dcf75-0x0;let _0x47ff7e=_0x54ce[_0x2dcf75];return _0x47ff7e;};import{View as _0xac9ef,createLabeledInputText as _0x3f0f7b}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4d4b71}from'ckeditor5-collaboration/src/collaboration-core';import _0x59d379 from'./revisionnameview';import _0x4e576b from'./revisionauthorview';import{dateToPrettyFormat as _0x479859}from'./utils';import{createActionsDropdownView as _0x5a04a1}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4d4b71(_0xac9ef){constructor(_0x4abfe1,_0x434a44,_0x11864d){super(_0x4abfe1);const _0x31cb30=this[_0x47ff('0x5')],_0x39351f=function(_0x3a622a,_0x5f303c){const _0x4a4397=Array[_0x47ff('0xe')](_0x5f303c[_0x47ff('0x1e')])[_0x47ff('0x24')](_0x597001=>_0x597001!=_0x5f303c[_0x47ff('0x18')]);return _0x5f303c[_0x47ff('0x18')]&&_0x4a4397[_0x47ff('0x21')](_0x5f303c['creator']),_0x4a4397[_0x47ff('0x27')](_0x1833cf=>new _0x4e576b(_0x3a622a,_0x1833cf,_0x1833cf==_0x5f303c['creator']));}(_0x4abfe1,_0x434a44);this['id']=_0x434a44['id'],this[_0x47ff('0x0')]=_0x434a44,this['bind']('name',_0x47ff('0x7'))['to'](_0x434a44),this[_0x47ff('0x26')](_0x47ff('0x1d'))['to'](this,'createdAt',_0xa1948b=>_0xa1948b?_0x479859(_0x4abfe1[_0x47ff('0x11')],_0xa1948b):void 0x0),this[_0x47ff('0x3')](_0x47ff('0x10'),!0x1),this[_0x47ff('0x3')](_0x47ff('0x23'),!0x1),this[_0x47ff('0x3')](_0x47ff('0x1'),!0x1),this[_0x47ff('0x3')](_0x47ff('0xc'),!0x1),this['set'](_0x47ff('0x28'),!0x1),this[_0x47ff('0x16')]=new _0x59d379(_0x4abfe1,_0x3f0f7b),this[_0x47ff('0x16')][_0x47ff('0x17')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x47ff('0x16')][_0x47ff('0x17')]['bind'](_0x47ff('0x8'),_0x47ff('0x2'))['to'](this,_0x47ff('0xa'),_0x47ff('0x1d')),this['revisionNameView'][_0x47ff('0x26')](_0x47ff('0x28'))['to'](this,_0x47ff('0x10'),this,_0x47ff('0x28'),(_0x3b1e56,_0x31efda)=>_0x3b1e56&&_0x31efda),this[_0x47ff('0x1b')]=_0x11864d&&_0x11864d['length']?_0x5a04a1(this,_0x11864d):'',this[_0x47ff('0x1b')]&&this[_0x47ff('0x1b')][_0x47ff('0x26')](_0x47ff('0x28'))['to'](this),this['setTemplate']({'tag':_0x47ff('0x12'),'attributes':{'class':['ck','ck-reset',_0x47ff('0x1f'),_0x31cb30['if'](_0x47ff('0x25'),_0x47ff('0x1c'))]},'children':[{'tag':_0x47ff('0x12'),'attributes':{'class':['ck','ck-reset',_0x47ff('0x20'),_0x31cb30['if']('isEnabled',_0x47ff('0xb'),_0xd36a9d=>!_0xd36a9d),_0x31cb30['if'](_0x47ff('0x10'),'ck-revision-history-sidebar__revision_selected'),_0x31cb30['if'](_0x47ff('0x23'),_0x47ff('0x29')),_0x31cb30['if'](_0x47ff('0x1'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x47ff('0x16')],{'tag':'span','attributes':{'class':['ck',_0x47ff('0x2a')]},'children':[{'text':_0x31cb30['to'](_0x47ff('0x1d'))}]},{'tag':_0x47ff('0x12'),'attributes':{'class':['ck',_0x47ff('0x6')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x47ff('0x9')]},'children':_0x39351f}]},this['revisionActionsView']],'on':{'click':_0x31cb30['to'](_0x168c5d=>{_0x168c5d[_0x47ff('0x1a')][_0x47ff('0xd')](_0x47ff('0x22'))||this[_0x47ff('0xc')]&&this['isEnabled']&&this[_0x47ff('0x13')](_0x47ff('0x2b'),{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1b592b=this['revisionNameView'][_0x47ff('0x17')][_0x47ff('0xf')];this[_0x47ff('0x15')](_0x1b592b,_0x47ff('0x19'),()=>{this['fire'](_0x47ff('0x14'),{'id':this['id'],'name':_0x1b592b[_0x47ff('0x8')]});});}[_0x47ff('0x2b')](){this[_0x47ff('0x10')]=!0x0;}['deselect'](){this[_0x47ff('0x10')]=!0x1;}['highlight'](){this[_0x47ff('0x23')]=!0x0;}[_0x47ff('0x4')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5102=['toggle','button','isVisible','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','click','span','_isCollapsed','true','ck-hidden','ck-revision-history-sidebar__subrevision-collapser','set','bindTemplate'];(function(_0x97acbb,_0x5102de){const _0x4ea5c7=function(_0x228810){while(--_0x228810){_0x97acbb['push'](_0x97acbb['shift']());}};_0x4ea5c7(++_0x5102de);}(_0x5102,0x8b));const _0x4ea5=function(_0x97acbb,_0x5102de){_0x97acbb=_0x97acbb-0x0;let _0x4ea5c7=_0x5102[_0x97acbb];return _0x4ea5c7;};import{View as _0xfce638}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xfce638{constructor(_0x143340){super(_0x143340);const _0x49adb5=this[_0x4ea5('0x3')];this[_0x4ea5('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4ea5('0x8')]({'tag':'span','attributes':{'class':['ck',_0x4ea5('0x1'),_0x49adb5['if'](_0x4ea5('0x6'),_0x4ea5('0x0'),_0x35742f=>!_0x35742f),_0x49adb5['if']('_isCollapsed',_0x4ea5('0x7'))],'role':_0x4ea5('0x5'),'aria-pressed':_0x49adb5['to'](_0x4ea5('0xb'),_0x5b0706=>_0x5b0706?'false':_0x4ea5('0xc'))},'children':[{'tag':_0x4ea5('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x49adb5['to'](_0x4ea5('0x9'))}});}[_0x4ea5('0x4')](){this[_0x4ea5('0xb')]=!this[_0x4ea5('0xb')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d4e=['setTemplate','isSelected','createdAt','bind','creator','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision','_createdAtFormatted','ck-reset','ck-revision-history-sidebar__revision_selected','span','div','deselect','_parentRevisionId','uiLanguage','select','ck-revision-history-sidebar__revision-authors'];(function(_0xe43e2b,_0x5d4eb3){const _0x1c25b3=function(_0x4288d4){while(--_0x4288d4){_0xe43e2b['push'](_0xe43e2b['shift']());}};_0x1c25b3(++_0x5d4eb3);}(_0x5d4e,0x9f));const _0x1c25=function(_0xe43e2b,_0x5d4eb3){_0xe43e2b=_0xe43e2b-0x0;let _0x1c25b3=_0x5d4e[_0xe43e2b];return _0x1c25b3;};import{View as _0x5f0797}from'ckeditor5/src/ui';import _0x9fbdc0 from'./revisionauthorview';import{dateToPrettyFormat as _0x53c13d}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x5f0797{constructor(_0x1ac583,_0x31302d,_0x1cdda0){super(_0x1ac583);const _0x4bb8f8=this['bindTemplate'];this['id']=_0x31302d['id'],this[_0x1c25('0xe')](_0x1c25('0xd'))['to'](_0x31302d),this['set'](_0x1c25('0xc'),!0x1),this[_0x1c25('0xe')](_0x1c25('0x1'))['to'](this,'createdAt',_0x5ef041=>_0x5ef041?_0x53c13d(_0x1ac583[_0x1c25('0x8')],_0x5ef041):void 0x0),this[_0x1c25('0x7')]=_0x1cdda0,this[_0x1c25('0xb')]({'tag':_0x1c25('0x5'),'attributes':{'class':['ck',_0x1c25('0x2'),_0x1c25('0x0'),'ck-revision-history-sidebar__subrevision',_0x4bb8f8['if'](_0x1c25('0xc'),_0x1c25('0x3'))]},'children':[{'tag':_0x1c25('0x4'),'attributes':{'class':['ck',_0x1c25('0x10')]},'children':[{'text':_0x4bb8f8['to'](_0x1c25('0x1'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1c25('0xa')]},'children':[new _0x9fbdc0(_0x1ac583,_0x31302d[_0x1c25('0xf')],!0x0)]}],'on':{'click':_0x4bb8f8['to'](this[_0x1c25('0x9')][_0x1c25('0xe')](this))}});}[_0x1c25('0x9')](){this[_0x1c25('0xc')]=!0x0,this['fire'](_0x1c25('0x9'),{'parentId':this['_parentRevisionId']});}[_0x1c25('0x6')](){this[_0x1c25('0xc')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3837=['toLocaleDateString','toLocaleTimeString','numeric','long'];(function(_0x573743,_0x383724){var _0x581edb=function(_0x53917e){while(--_0x53917e){_0x573743['push'](_0x573743['shift']());}};_0x581edb(++_0x383724);}(_0x3837,0x1d2));var _0x581e=function(_0x573743,_0x383724){_0x573743=_0x573743-0x0;var _0x581edb=_0x3837[_0x573743];return _0x581edb;};export function dateToPrettyFormat(_0x4fc040,_0x10242a){return _0x10242a[_0x581e('0x2')](_0x4fc040,{'month':_0x581e('0x1'),'day':_0x581e('0x0')})+',\x20'+_0x10242a[_0x581e('0x3')](_0x4fc040,{'hour':_0x581e('0x0'),'minute':_0x581e('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9182=['locale','render','stopPropagation','revisionNameInputValue','Save','saveButtonView','arrowright','_createButton','focusFirst','_focusables','Name\x20of\x20the\x20revision\x20(optional)','element','ck-responsive-form','_createRevisionNameInput','focusTracker','setTemplate','cancelButtonView','cancel','check','fieldView','revisionNameInputView','keystrokes','delegate','revisionName','trim','label','forEach','input','_focusCycler','submit','listenTo','focus','220','execute','shift\x20+\x20tab','set','reset','extendTemplate','value','ck-button-cancel','type'];(function(_0x3050c0,_0x9182d8){const _0x2f414a=function(_0x3bd5dd){while(--_0x3bd5dd){_0x3050c0['push'](_0x3050c0['shift']());}};_0x2f414a(++_0x9182d8);}(_0x9182,0x12f));const _0x2f41=function(_0x3050c0,_0x9182d8){_0x3050c0=_0x3050c0-0x0;let _0x2f414a=_0x9182[_0x3050c0];return _0x2f414a;};import{icons as _0x4ab8b6}from'ckeditor5/src/core';import{ButtonView as _0x192005,FocusCycler as _0x565af4,LabeledFieldView as _0x43c2b6,View as _0x3c128c,ViewCollection as _0x5d1d1e,createLabeledInputText as _0x4ebf8b,injectCssTransitionDisabler as _0x4017ef,submitHandler as _0x317693}from'ckeditor5/src/ui';import{FocusTracker as _0x1153a2,KeystrokeHandler as _0x3a8539}from'ckeditor5/src/utils';import{getTranslation as _0x26d1cc}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x3c128c{constructor(_0x34cd13){super(_0x34cd13),this[_0x2f41('0x27')]=new _0x1153a2(),this[_0x2f41('0x5')]=new _0x3a8539(),this['set'](_0x2f41('0x1c'),''),this[_0x2f41('0x4')]=this[_0x2f41('0x26')](),this[_0x2f41('0x1e')]=this['_createButton'](_0x26d1cc(_0x34cd13,_0x2f41('0x1d')),_0x4ab8b6[_0x2f41('0x2')],'ck-button-save'),this[_0x2f41('0x1e')][_0x2f41('0x18')]=_0x2f41('0xd'),this['cancelButtonView']=this[_0x2f41('0x20')](_0x26d1cc(_0x34cd13,'Cancel'),_0x4ab8b6[_0x2f41('0x1')],_0x2f41('0x17'),_0x2f41('0x1')),this[_0x2f41('0x22')]=new _0x5d1d1e(),this['_focusCycler']=new _0x565af4({'focusables':this[_0x2f41('0x22')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x2f41('0x5')],'actions':{'focusPrevious':_0x2f41('0x12'),'focusNext':'tab'}}),this[_0x2f41('0x28')]({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x2f41('0x25')],'tabindex':'-1'},'children':[this[_0x2f41('0x4')],this[_0x2f41('0x1e')],this['cancelButtonView']]}),_0x4017ef(this);}[_0x2f41('0x1a')](){super[_0x2f41('0x1a')](),_0x317693({'view':this}),([this[_0x2f41('0x4')],this[_0x2f41('0x1e')],this[_0x2f41('0x0')]][_0x2f41('0xa')](_0x132e78=>{this['_focusables']['add'](_0x132e78),this['focusTracker']['add'](_0x132e78[_0x2f41('0x24')]);}),this[_0x2f41('0x5')][_0x2f41('0xe')](this[_0x2f41('0x24')]));const _0x397a18=_0x21eeae=>_0x21eeae[_0x2f41('0x1b')]();this[_0x2f41('0x5')][_0x2f41('0x13')](_0x2f41('0x1f'),_0x397a18),this[_0x2f41('0x5')][_0x2f41('0x13')]('arrowleft',_0x397a18),this['keystrokes'][_0x2f41('0x13')]('arrowup',_0x397a18),this[_0x2f41('0x5')][_0x2f41('0x13')]('arrowdown',_0x397a18);}[_0x2f41('0xf')](){this[_0x2f41('0xc')][_0x2f41('0x21')]();}get['revisionName'](){return this[_0x2f41('0x4')][_0x2f41('0x3')][_0x2f41('0x24')][_0x2f41('0x16')][_0x2f41('0x8')]();}set[_0x2f41('0x7')](_0xa839b7){this['revisionNameInputView']['fieldView'][_0x2f41('0x24')]['value']=_0xa839b7[_0x2f41('0x8')]();}[_0x2f41('0x14')](){this[_0x2f41('0x4')]['fieldView'][_0x2f41('0x24')][_0x2f41('0x16')]='';}[_0x2f41('0x26')](){const _0x316d63=new _0x43c2b6(this['locale'],_0x4ebf8b),_0x542da4=_0x316d63[_0x2f41('0x3')];return _0x542da4[_0x2f41('0x15')]({'attributes':{'maxlength':_0x2f41('0x10')}}),_0x316d63[_0x2f41('0x9')]=_0x26d1cc(this['locale'],_0x2f41('0x23')),_0x542da4['on'](_0x2f41('0xb'),()=>{this[_0x2f41('0x1c')]=_0x542da4[_0x2f41('0x24')][_0x2f41('0x16')][_0x2f41('0x8')]();}),_0x316d63;}[_0x2f41('0x20')](_0x42c163,_0x196146,_0x513bfa,_0x1cbf73){const _0x2d3bcf=new _0x192005(this[_0x2f41('0x19')]);return _0x2d3bcf[_0x2f41('0x13')]({'label':_0x42c163,'icon':_0x196146,'tooltip':!0x0}),_0x2d3bcf['extendTemplate']({'attributes':{'class':_0x513bfa}}),_0x1cbf73&&_0x2d3bcf[_0x2f41('0x6')](_0x2f41('0x11'))['to'](this,_0x1cbf73),_0x2d3bcf;}}
|