@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240122.0 → 0.0.0-nightly-20240123.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 +5 -5
- 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 _0x4b14=['_makeModelFromTape','-new','adapter','_fixObsoleteTags','endIndex','isEnabled','observeMarkers','findIndex','getRoot','splice','refresh','forceDisabled','suggestion:','data-revision-','RevisionViewer','getChild','markerToHighlight','isSuggestion','mousedown','push','element:pre','softBreak','domConverter','remove','POSITIVE_INFINITY','_removeMissingPairs','processor','code','_refreshStartEndIndex','isObject','_setDistance','addClass','sort','_threeWayMerge','view','ck-suggestion-marker-merge','stop','_getViewObj','_markInsertions','vid','selection','authors','editingDowncast','isAdded','editing','text','detachRoot','vid_end','ck-revision-history-root-add','_changeView','marked','isAtEnd','ck-suggestion-marker-','hasClass','listenTo','createPositionFromPath','revision-end','shift','change:isEnabled','markersEnd','_cleanMarkers','from','_getDiff','clear','changes','indexOf','dataToMarker','viewItem','flat','highest','activeChange','getCustomProperty','currentChangeNumber','get','start','_removeRevisionMarkers','isNavigationMode','_setConversion','schema','conversion','restoreRevisionCallback','dataDowncast','isIncorrect','addRevisionData','split','bind','_balloon','wrap','nodeAfter','createUIElement','deletion','requires','default','isOnRoot','type','_markMismatchedRemovedTags','parent','startIndex','mapper','isRemoved','enqueueChange','consumable','markerRange','removeAttribute','createAttributeElement','downcastDispatcher','isContent','createPositionBefore','markerNameToElements','attributesAfter','userId','ck-revision-history-root-','resolve','newRevisionId','has','nextPosition','revision-start','_makeTape','diff','updatePosition','change:activeChange','reconvertMarker','getClientRects','setAttribute','getRootNames','toModel','insertions','insertion','values','side','isAtStart','name','execute','test','isReady','roots','length','numberOfChanges','ck-suggestion-marker','_removeUnsupportedChanges','slice','toViewElement','pop','revisionHistoryAttachChange','ck-editor__editable__overlay','attribute:vid','isLimit','ck-suggestion-preview-marker-','destroy','getRevisionData','domEvent','getIndex','target','editor','revisionHistoryLabel','maxOffset','_initInteractions','low','next','_setChanges','_joinTapes','span','_update','isBlock','markers','removeMarker','catch','includes','affectsData','isRemoveSuggestion','loadRevisionData','getItems','_step','activeView','deletions','level','elementEnd','distance','delete','ck-revision-history-root-remove','_changeIdToChange','commands','attachChange','data-change-id','WidgetToolbarRepository','then','addHighlight','useFillerType','writer','elementToAttribute','change:isReady','showStack','_processTape','ck-suggestion-marker--active','_getViewForChange','previousPosition','_cleanUp','isBefore','forward','unshift','modelRange','revision:','repository','attributesBefore','getAttributes','restoreRevision','ck-revision-history-root--active','addMarker:revision','revision-suggestion:','backward','_markMarkers','oldRevisionId','getWalker','toViewPosition','getAttribute','isEqual','done','error','changeId','revision','markerToData','_sortAndFilterDiffChanges','_getRevisionsRange','_activeViewTarget','return','element','showPreviousChange','unbindElementFromMarkerName','hasAttribute','_markSuggestions','forEach','left','index','insert','consume','merge','revision-viewer','nextSibling','addMarker:revision-suggestion:insertion','isAddSuggestion','children','getRevisionRootsAttributes','config','keys','document','createRevision','suggestion','markerName','getRevision','isInline','vid_start','abs','isAttached','toData','_makeModelFromViewString','_getChangeFromId','addRoot','elementStart','set','_data','data','addRevision','all','attributes','change','concat','diffData','init','end','rootName','pairId','plugins','mouseover','checkAttribute','mapViewToDom','startsWith','map','isAfter','model','bindElementToMarker','for','revision-suggestion','upcast','_findChangeIdFromDomTarget','item','compare','markersStart','removeClass','RevisionsRepository','filter','_appendChild','high','string','getDomRoot','add'];(function(_0x364af0,_0x4b14a7){const _0x77fa0e=function(_0x5df149){while(--_0x5df149){_0x364af0['push'](_0x364af0['shift']());}};_0x77fa0e(++_0x4b14a7);}(_0x4b14,0x148));const _0x77fa=function(_0x364af0,_0x4b14a7){_0x364af0=_0x364af0-0x0;let _0x77fa0e=_0x4b14[_0x364af0];return _0x77fa0e;};import{Plugin as _0x144429,Command as _0x2dba10}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0xa130cd}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x4aa106}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x301f71,Element as _0x3725a2,Text as _0x174716,ViewDocumentFragment as _0x1ca79f,ViewText as _0x2e3bf4,ViewElement as _0x581f3f,ViewContainerElement as _0xc248fc,ViewAttributeElement as _0x1a02f1,ViewEmptyElement as _0x10c893,ViewRawElement as _0x12153c,ViewUIElement as _0x5110a1}from'ckeditor5/src/engine.js';import{Users as _0x3b41dc,getMarkerDomElement as _0x443d60}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3f6844 from'./ui/revisionviewer/changedetailsview.js';import _0x16234f from'./revisionsrepository.js';import _0x2494ad from'./changeitem.js';import{default as _0x44d172}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x4f931b}from'lodash-es';const tt={'c':_0xc248fc,'a':_0x1a02f1,'e':_0x10c893,'r':_0x12153c,'u':_0x5110a1};export default class d extends _0x144429{static get['pluginName'](){return _0x77fa('0x114');}static get[_0x77fa('0x3a')](){return[_0x3b41dc,_0x4aa106,_0x16234f];}constructor(_0x5941d9){super(_0x5941d9),this[_0x77fa('0xa9')]=this[_0x77fa('0x78')][_0x77fa('0xee')][_0x77fa('0x28')](_0x77fa('0xff')),this[_0x77fa('0xe1')](_0x77fa('0x25'),null),this['set'](_0x77fa('0x8c'),null),this['_activeViewTarget']=null,this[_0x77fa('0xe1')](_0x77fa('0x55'),null),this[_0x77fa('0xe1')](_0x77fa('0x65'),!0x1),this[_0x77fa('0xe1')](_0x77fa('0x10b'),!0x0),this['on'](_0x77fa('0x19'),(_0x34de0d,_0x95679a,_0x15813f)=>{this['activeChange']=null,this[_0x77fa('0x8c')]=null,this[_0x77fa('0x78')][_0x77fa('0xb')]['view']['change'](_0x5eef72=>{for(const _0x3ab40d of this['editor'][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xd3')][_0x77fa('0x66')])_0x15813f?_0x5eef72['removeClass'](_0x77fa('0x6f'),_0x3ab40d):_0x5eef72['addClass'](_0x77fa('0x6f'),_0x3ab40d);});}),this[_0x77fa('0x34')](_0x77fa('0x2b'))['to'](this,'activeChange',_0x1594e9=>null!==_0x1594e9),this['bind'](_0x77fa('0x27'))['to'](this,_0x77fa('0x65'),this,_0x77fa('0x55'),this,_0x77fa('0x25'),(_0x47d2af,_0x5c63f5,_0x2c9fdf)=>_0x47d2af&&_0x2c9fdf?_0x5c63f5[_0x77fa('0x1f')][_0x77fa('0x76')](_0x2c9fdf):0x0),this[_0x77fa('0x34')](_0x77fa('0x68'))['to'](this,_0x77fa('0x65'),this,'diff',(_0x2780ba,_0x2368c6)=>_0x2780ba?_0x2368c6[_0x77fa('0x1f')][_0x77fa('0x67')]:0x0),this['_changeView']=null,this[_0x77fa('0x93')]=new Map(),this[_0x77fa('0x108')]=null,this[_0x77fa('0x35')]=this['editor'][_0x77fa('0xee')]['get'](_0x4aa106);}[_0x77fa('0xea')](){const _0x85c542=this[_0x77fa('0x78')],_0x4f6b03=new ShowChangeCommand(_0x85c542,{'direction':_0x77fa('0xb0')}),_0x1315ce=new ShowChangeCommand(_0x85c542,{'direction':_0x77fa('0xa5')});(_0x85c542[_0x77fa('0x94')][_0x77fa('0x105')](_0x77fa('0xc1'),_0x4f6b03),_0x85c542['commands'][_0x77fa('0x105')]('showNextChange',_0x1315ce),_0x85c542[_0x77fa('0x94')]['add'](_0x77fa('0xac'),new RestoreRevisionCommand(_0x85c542)),this['on']('change:numberOfChanges',()=>{_0x4f6b03[_0x77fa('0x110')](),_0x1315ce[_0x77fa('0x110')]();}),this['_setConversion'](),this[_0x77fa('0x7b')](),_0x85c542['enableReadOnlyMode'](_0x77fa('0xcb')),_0x85c542[_0x77fa('0xee')]['has']('WidgetToolbarRepository'))&&_0x85c542['plugins'][_0x77fa('0x28')](_0x77fa('0x97'))[_0x77fa('0x111')](_0x77fa('0xcb'));}async[_0x77fa('0x74')](_0x1da91b){await this[_0x77fa('0x89')](_0x1da91b);const _0x2c9d93={};for(const _0x4ae7a9 in _0x1da91b[_0x77fa('0xe9')]){if(_0x1da91b['diffData'][_0x4ae7a9][_0x77fa('0x95')]&&!_0x1da91b[_0x77fa('0xe9')][_0x4ae7a9][_0x77fa('0x95')][_0x77fa('0xdb')])continue;const _0x24a6a1=this[_0x77fa('0x2a')](JSON['parse'](_0x1da91b[_0x77fa('0xe9')][_0x4ae7a9][_0x77fa('0x5d')])),_0x42cf13=this['editor'][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xd3')],_0x5ac3b7=new _0x1ca79f(_0x42cf13,_0x24a6a1[_0x77fa('0xf3')](_0x484928=>this[_0x77fa('0x4')](_0x484928)));this[_0x77fa('0x78')]['data'][_0x77fa('0x120')][_0x77fa('0x9a')](_0x77fa('0x11')),_0x2c9d93[_0x4ae7a9]=this[_0x77fa('0x78')][_0x77fa('0xe3')]['processor'][_0x77fa('0xdc')](_0x5ac3b7),this[_0x77fa('0x78')][_0x77fa('0xe3')]['processor']['useFillerType'](_0x77fa('0x3b'));}return _0x2c9d93;}async[_0x77fa('0xd0')](_0x2557a0){await this[_0x77fa('0x89')](_0x2557a0);const _0x4ddb6c={};for(const _0x4f7a1c in _0x2557a0[_0x77fa('0xe9')])_0x2557a0[_0x77fa('0xe9')][_0x4f7a1c][_0x77fa('0x95')]&&!_0x2557a0['diffData'][_0x4f7a1c]['attachChange'][_0x77fa('0xdb')]||(_0x4ddb6c[_0x4f7a1c]=_0x2557a0['diffData'][_0x4f7a1c][_0x77fa('0x4c')]||{});return _0x4ddb6c;}[_0x77fa('0x2a')](_0x3b3550){return(_0x3b3550=_0x3b3550[_0x77fa('0x100')](_0x141747=>!_0x141747['name']||_0x77fa('0x53')!==_0x141747[_0x77fa('0x62')]&&_0x77fa('0x17')!==_0x141747[_0x77fa('0x62')]))[_0x77fa('0xc5')](_0x207918=>{_0x77fa('0x103')!=typeof _0x207918&&(_0x207918['children']=this[_0x77fa('0x2a')](_0x207918['children']),_0x207918['attributes']=_0x207918[_0x77fa('0xe6')][_0x77fa('0x100')](_0xc9d01=>!_0xc9d01[0x0][_0x77fa('0xf2')](_0x77fa('0x113'))));}),_0x3b3550;}async[_0x77fa('0xfc')](_0x23f3e7,_0x22abd4,_0x53d9eb=!0x1){if(!this[_0x77fa('0x10b')])return;const _0x584596=this[_0x77fa('0x55')],_0x2ce8e8=this[_0x77fa('0xa9')],_0x1c40df=_0x77fa('0x103')==typeof _0x23f3e7?_0x2ce8e8[_0x77fa('0xd7')](_0x23f3e7):_0x23f3e7,_0x25353e=_0x77fa('0x103')==typeof _0x22abd4?_0x2ce8e8['getRevision'](_0x22abd4):_0x22abd4,_0x3ef657=_0x1c40df['id'],_0x1d0f05=_0x25353e?_0x25353e['id']:null;if(!_0x53d9eb&&this[_0x77fa('0x55')]&&this[_0x77fa('0x55')][_0x77fa('0x50')]===_0x3ef657&&this['diff'][_0x77fa('0xb2')]===_0x1d0f05)return Promise[_0x77fa('0x4f')]();this[_0x77fa('0x65')]=!0x1,this[_0x77fa('0x8c')]=null,this[_0x77fa('0x25')]=null,this[_0x77fa('0x55')]=new _0x44d172(_0x3ef657,_0x1d0f05);const _0xb36f48=this['_getRevisionsRange'](_0x1c40df,_0x25353e,!0x0)[_0x77fa('0xf3')](_0x546c7d=>this[_0x77fa('0x89')](_0x546c7d));return _0xb36f48[_0x77fa('0x119')](new Promise(_0x2df0eb=>{setTimeout(_0x2df0eb,0x14);})),Promise[_0x77fa('0xe5')](_0xb36f48)['then'](()=>{if(!this[_0x77fa('0x10b')])return;this[_0x77fa('0xa3')]();const _0xc916e=this[_0x77fa('0x1d')](_0x3ef657,_0x1d0f05);for(const _0x17ae64 of _0xc916e[_0x77fa('0x1f')])this[_0x77fa('0x93')]['set'](_0x17ae64['id'],_0x17ae64);this[_0x77fa('0x78')][_0x77fa('0xf5')]['enqueueChange']({'isUndoable':!0x1},_0x277352=>{for(const _0x1fe054 of this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xd3')][_0x77fa('0x5b')]())_0x277352[_0x77fa('0xd')](_0x1fe054);for(const _0x5e0bcd of Object[_0x77fa('0xd2')](_0xc916e['model'])){const _0x526ded=_0x277352[_0x77fa('0xdf')](_0x5e0bcd);for(const _0x562057 of Object[_0x77fa('0xd2')](_0xc916e[_0x77fa('0xe6')][_0x5e0bcd]))_0x277352[_0x77fa('0x5a')](_0x562057,_0xc916e[_0x77fa('0xe6')][_0x5e0bcd][_0x562057],_0x526ded);_0x277352[_0x77fa('0xc8')](_0xc916e['model'][_0x5e0bcd],_0x526ded,0x0);}}),this[_0x77fa('0x55')][_0x77fa('0x7e')](this['_sortAndFilterDiffChanges'](_0xc916e[_0x77fa('0x1f')])),this[_0x77fa('0x65')]=!0x0;})[_0x77fa('0x85')](_0x3bef1e=>{console[_0x77fa('0xb8')](_0x3bef1e),this[_0x77fa('0xa3')](),_0x584596&&(this[_0x77fa('0x55')]=_0x584596),this['isReady']=!0x0;});}[_0x77fa('0x32')](_0x4bc9e5,_0xa6330c){const _0x3dfdb3=this[_0x77fa('0xa9')][_0x77fa('0xd4')](_0x4bc9e5);return _0x3dfdb3['on'](_0x77fa('0x81'),(_0x221f8f,_0x163d82,_0x35e665)=>_0xa6330c(_0x163d82,_0x35e665,_0x3dfdb3)),this[_0x77fa('0xa9')][_0x77fa('0xe4')](_0x3dfdb3),_0x3dfdb3;}[_0x77fa('0x89')](_0x314019){if(!_0x314019||_0x314019[_0x77fa('0xe9')])return Promise[_0x77fa('0x4f')]();{const _0x506dfe=this[_0x77fa('0x78')][_0x77fa('0xd1')][_0x77fa('0x28')]('collaboration.channelId');return this[_0x77fa('0x108')][_0x77fa('0xd7')]({'channelId':_0x506dfe,'revisionId':_0x314019['id']})[_0x77fa('0x98')](_0x4a1a0b=>{_0x314019[_0x77fa('0x81')]({'diffData':_0x4a1a0b[_0x77fa('0xe9')]},!0x0);});}}['_cleanUp'](){this[_0x77fa('0x25')]=null,this[_0x77fa('0x1b')](),this[_0x77fa('0x10')]&&this[_0x77fa('0x10')][_0x77fa('0x73')](),this[_0x77fa('0x10')]=null,this[_0x77fa('0x93')][_0x77fa('0x1e')](),this[_0x77fa('0x78')]['model'][_0x77fa('0x43')]({'isUndoable':!0x1},_0x5735ee=>{for(const _0x465188 of this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xd3')]['getRootNames']())_0x5735ee['detachRoot'](_0x465188);});}[_0x77fa('0xbc')](_0x22f710){const _0x565a00=[],_0x1664fc=new Map();for(const _0x365290 of this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xd3')][_0x77fa('0x5b')]()){const _0x26134b=this['editor']['editing'][_0x77fa('0x1')][_0x77fa('0x104')](_0x365290);if(!_0x26134b)continue;const _0x4bea70=_0x26134b[_0x77fa('0x59')]()['item'](0x0);_0x4bea70&&(_0x565a00[_0x77fa('0x119')](_0x365290),_0x1664fc['set'](_0x365290,_0x4bea70));}return _0x565a00[_0x77fa('0x126')]((_0x4c9a3a,_0x9f9d5b)=>{const _0x58457c=_0x1664fc[_0x77fa('0x28')](_0x4c9a3a),_0x2b4e73=_0x1664fc['get'](_0x9f9d5b);return _0x58457c['y']-_0x2b4e73['y']||_0x58457c['x']-_0x2b4e73['x'];}),(_0x22f710=_0x22f710['filter'](_0x58f0b6=>_0x565a00[_0x77fa('0x86')](_0x58f0b6[_0x77fa('0xec')])))[_0x77fa('0x126')]((_0x12b6dd,_0x5cf41f)=>_0x565a00[_0x77fa('0x20')](_0x12b6dd[_0x77fa('0xec')])-_0x565a00[_0x77fa('0x20')](_0x5cf41f[_0x77fa('0xec')])),_0x22f710;}[_0x77fa('0x54')](_0x17416b){const _0x47b218=Array['from'](_0x17416b[_0x77fa('0x83')])[_0x77fa('0x100')](([_0xd45776,_0x39f83f])=>_0xd45776[_0x77fa('0xf2')]('revision:')&&!_0x39f83f['isCollapsed']),_0x5860b0=Array[_0x77fa('0x1c')](this[_0x77fa('0x78')][_0x77fa('0xf5')]['createRangeIn'](_0x17416b)[_0x77fa('0xb3')]({'singleCharacters':!0x0}));if(0x0!=_0x47b218['length'])for(const _0x38a2a9 of _0x5860b0){const [_0x47e774,_0x2d0228]=_0x47b218[0x0],[,_0x4f55b1,_0x234fa4]=_0x47e774[_0x77fa('0x33')](':');if(_0x2d0228['end']['isEqual'](_0x38a2a9[_0x77fa('0x52')])&&_0x47b218[_0x77fa('0x18')](),(_0x38a2a9[_0x77fa('0xa2')][_0x77fa('0xb6')](_0x2d0228['start'])||_0x38a2a9['previousPosition'][_0x77fa('0xf4')](_0x2d0228[_0x77fa('0x29')]))&&(_0x77fa('0x5e')==_0x4f55b1?_0x38a2a9[_0x77fa('0xa')]={'userId':_0x234fa4}:_0x77fa('0x39')==_0x4f55b1&&(_0x38a2a9['isRemoved']={'userId':_0x234fa4})),0x0==_0x47b218[_0x77fa('0x67')])break;}return _0x5860b0;}[_0x77fa('0x122')](_0x311282){const _0x2d7a4b=new Map();for(let _0x516472=0x0;_0x516472<_0x311282[_0x77fa('0x67')];_0x516472++)_0x77fa('0xc')===_0x311282[_0x516472][_0x77fa('0x3d')]?(_0x311282[_0x516472][_0x77fa('0xfb')][_0x77fa('0x40')]=_0x516472,_0x311282[_0x516472][_0x77fa('0xfb')]['endIndex']=_0x516472):('elementStart'===_0x311282[_0x516472][_0x77fa('0x3d')]?_0x311282[_0x516472][_0x77fa('0xfb')][_0x77fa('0x40')]=_0x516472:_0x77fa('0x8f')===_0x311282[_0x516472][_0x77fa('0x3d')]&&(_0x311282[_0x516472][_0x77fa('0xfb')]['endIndex']=_0x516472),_0x2d7a4b['set'](_0x311282[_0x516472]['id'],_0x516472));for(const _0x398560 of _0x2d7a4b[_0x77fa('0x5f')]())_0x77fa('0xe0')===_0x311282[_0x398560]['type']?_0x311282[_0x398560][_0x77fa('0xfb')][_0x77fa('0x10a')]=_0x2d7a4b['get'](_0x311282[_0x398560][_0x77fa('0xed')]):_0x77fa('0x8f')===_0x311282[_0x398560][_0x77fa('0x3d')]&&(_0x311282[_0x398560][_0x77fa('0xfb')][_0x77fa('0x40')]=_0x2d7a4b[_0x77fa('0x28')](_0x311282[_0x398560][_0x77fa('0xed')]));}[_0x77fa('0x9f')](_0x421af4){for(let _0x5a63e3=0x0;_0x5a63e3<_0x421af4[_0x77fa('0x67')];_0x5a63e3++){if(_0x77fa('0xe0')===_0x421af4[_0x5a63e3][_0x77fa('0x3d')])_0x421af4[_0x5a63e3]['item'][_0x77fa('0x40')]=_0x5a63e3;else{if(_0x77fa('0x8f')===_0x421af4[_0x5a63e3]['type']){_0x421af4[_0x5a63e3][_0x77fa('0xfb')][_0x77fa('0x10a')]=_0x5a63e3;const _0x47f4d3=_0x421af4[_0x5a63e3]['item']['startIndex'];_0x421af4[_0x47f4d3][_0x77fa('0xed')]=_0x421af4[_0x5a63e3]['id'],_0x421af4[_0x5a63e3]['pairId']=_0x421af4[_0x47f4d3]['id'];}else _0x421af4[_0x5a63e3]['item'][_0x77fa('0x40')]=_0x5a63e3,_0x421af4[_0x5a63e3][_0x77fa('0xfb')][_0x77fa('0x10a')]=_0x5a63e3,_0x421af4[_0x5a63e3][_0x77fa('0xed')]=null;}_0x421af4[_0x5a63e3][_0x77fa('0xfd')]||(_0x421af4[_0x5a63e3][_0x77fa('0xfd')]=[],_0x421af4[_0x5a63e3][_0x77fa('0x1a')]=[]);}}[_0x77fa('0x5')](_0x3245ef,_0x20c095){const _0xeecf73=_0x3245ef[_0x77fa('0x100')](_0x2c9a84=>!_0x2c9a84[_0x77fa('0xa')]);for(let _0x393a49=0x0;_0x393a49<_0x20c095[_0x77fa('0x67')];_0x393a49++)_0x20c095[_0x393a49]['isAdded']&&(_0xeecf73[_0x393a49][_0x77fa('0xa')]=_0x20c095[_0x393a49][_0x77fa('0xa')]);}[_0x77fa('0xdd')](_0x2f2d05){const _0x4b39c5=JSON['parse'](_0x2f2d05),_0x1a79f0=this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x1')]['document'],_0x1ff59a=new _0x1ca79f(_0x1a79f0,_0x4b39c5[_0x77fa('0xf3')](_0x365e14=>this['_getViewObj'](_0x365e14)));return this['editor'][_0x77fa('0xe3')][_0x77fa('0x5c')](_0x1ff59a);}[_0x77fa('0x4')](_0x53a9f7){const _0x2206e5=this['editor'][_0x77fa('0xb')]['view']['document'];if(_0x77fa('0x103')==typeof _0x53a9f7)return new _0x2e3bf4(_0x2206e5,_0x53a9f7);{const _0x1f6dc4=_0x53a9f7[_0x77fa('0xcf')][_0x77fa('0xf3')](_0x13c0de=>this['_getViewObj'](_0x13c0de));return new(tt[_0x53a9f7[(_0x77fa('0x3d'))]]||_0x581f3f)(_0x2206e5,_0x53a9f7['name'],_0x53a9f7[_0x77fa('0xe6')],_0x1f6dc4);}}[_0x77fa('0x1d')](_0x471736,_0x5e8532=null){const _0x1925d2=this['repository'][_0x77fa('0xd7')](_0x471736),_0x17cc01=_0x5e8532?this[_0x77fa('0xa9')][_0x77fa('0xd7')](_0x5e8532):null,_0x1f685a=this[_0x77fa('0xbd')](_0x1925d2,_0x17cc01),_0x194cee=_0x1f685a[_0x1f685a['length']-0x1],_0x5966fc=new Map(),_0x396833={'model':{},'attributes':{},'changes':[]},_0x44af10=new Set(),_0x135645=new Map();for(let _0x264561=_0x1f685a[_0x77fa('0x67')]-0x1;_0x264561>=0x0;_0x264561--){const _0x2f4bdb=_0x1f685a[_0x264561];for(const _0x4f51e7 of Object['keys'](_0x2f4bdb[_0x77fa('0xe9')]))if(_0x2f4bdb['diffData'][_0x4f51e7][_0x77fa('0x95')]){const _0x35aa4b=_0x2f4bdb[_0x77fa('0xe9')][_0x4f51e7][_0x77fa('0x95')];_0x35aa4b['isAttached']?(_0x44af10[_0x77fa('0x105')](_0x4f51e7),_0x135645[_0x77fa('0x51')](_0x4f51e7)&&_0x135645[_0x77fa('0x28')](_0x4f51e7)[_0x77fa('0x4d')]==_0x35aa4b[_0x77fa('0x4d')]?_0x135645[_0x77fa('0x91')](_0x4f51e7):_0x135645[_0x77fa('0xe1')](_0x4f51e7,_0x35aa4b)):_0x135645[_0x77fa('0x51')](_0x4f51e7)?(_0x44af10['delete'](_0x4f51e7),_0x135645[_0x77fa('0x91')](_0x4f51e7)):(_0x44af10[_0x77fa('0x105')](_0x4f51e7),_0x135645[_0x77fa('0xe1')](_0x4f51e7,_0x35aa4b));}else _0x44af10[_0x77fa('0x105')](_0x4f51e7);}for(const _0x220ad5 of _0x44af10){const _0x174ad8=_0x135645[_0x77fa('0x51')](_0x220ad5)&&!_0x135645[_0x77fa('0x28')](_0x220ad5)[_0x77fa('0xdb')];let _0x2805bb=_0x174ad8?_0x1f685a['length']-0x1:0x0;const _0x4c6532=_0x174ad8?-0x1:0x1;for(;_0x1f685a[_0x2805bb];){const _0x1bde88=_0x1f685a[_0x2805bb];if(_0x1bde88['diffData'][_0x220ad5]){const _0x43c828=_0x174ad8?_0x1bde88['diffData'][_0x220ad5][_0x77fa('0xaa')]:_0x1bde88[_0x77fa('0xe9')][_0x220ad5][_0x77fa('0x4c')];_0x396833[_0x77fa('0xe6')][_0x220ad5]=_0x43c828?_0x4f931b(_0x43c828):{};break;}_0x2805bb+=_0x4c6532;}}for(const _0x26cbfd of _0x1f685a){_0x26cbfd[_0x77fa('0xf5')]={};for(const _0x5e18e7 of _0x26cbfd[_0x77fa('0x8')])_0x5966fc[_0x77fa('0xe1')](_0x5e18e7['id'],_0x5e18e7);for(const _0x57fedb of _0x44af10){const _0x5ab8fb=_0x26cbfd[_0x77fa('0xe9')][_0x57fedb]?_0x26cbfd[_0x77fa('0xe9')][_0x57fedb]['insertions']:'[]',_0x342f49=_0x26cbfd[_0x77fa('0xe9')][_0x57fedb]?_0x26cbfd['diffData'][_0x57fedb][_0x77fa('0x8d')]:'[]';_0x26cbfd[_0x77fa('0xf5')][_0x57fedb]={'insertions':this[_0x77fa('0xdd')](_0x5ab8fb),'deletions':this['_makeModelFromViewString'](_0x342f49)};}}for(const _0x4daa68 of _0x44af10){let _0x475474=null,_0x4eb8b0=0x0;const _0x5f26ec=new Map(Array[_0x77fa('0x1c')](_0x1925d2[_0x77fa('0xf5')][_0x4daa68][_0x77fa('0x5d')][_0x77fa('0x83')])[_0x77fa('0x100')](([_0x2617ef])=>!_0x2617ef[_0x77fa('0xf2')](_0x77fa('0xa8'))));let _0x306beb=0x0;for(const _0x302fbc of _0x1f685a){const _0x205cc4=this[_0x77fa('0x54')](_0x302fbc['model'][_0x4daa68][_0x77fa('0x5d')]);_0x302fbc==_0x1925d2?(_0x475474=_0x205cc4,_0x4eb8b0=_0x475474['length'],_0x475474[_0x77fa('0xc5')](_0x1abac7=>{_0x1abac7['id']=_0x306beb++;}),this[_0x77fa('0x9f')](_0x475474)):this[_0x77fa('0x5')](_0x475474,_0x205cc4);const _0x311048=_0x475474['filter'](_0x28b5be=>!_0x28b5be[_0x77fa('0xa')])[_0x77fa('0xf3')](_0x4d5d02=>_0x4d5d02['id']);let _0x10168e=0x0;const _0x30f010=this[_0x77fa('0x54')](_0x302fbc[_0x77fa('0xf5')][_0x4daa68][_0x77fa('0x8d')]);_0x30f010[_0x77fa('0xc5')](_0x74f567=>{_0x74f567[_0x77fa('0x42')]?_0x74f567['id']=_0x4eb8b0++:_0x74f567['id']=_0x311048[_0x10168e++];}),this[_0x77fa('0x9f')](_0x30f010),this[_0x77fa('0x124')](_0x475474,_0x77fa('0xa')),this['_setDistance'](_0x30f010,'isRemoved'),_0x302fbc==_0x1925d2&&this[_0x77fa('0xb1')](_0x475474,_0x5f26ec),_0x475474=this['_joinTapes'](_0x475474,_0x30f010),this[_0x77fa('0x122')](_0x475474),this[_0x77fa('0x124')](_0x475474,_0x77fa('0x42'));}_0x475474=_0x475474['filter'](_0x296631=>!(_0x296631[_0x77fa('0xa')]&&_0x296631[_0x77fa('0x42')]));const _0x22ccbd=new Map(_0x194cee['model'][_0x4daa68][_0x77fa('0x8d')][_0x77fa('0x83')]),_0x3e1856=new Set(_0x5f26ec[_0x77fa('0xd2')]());for(const _0x27599f of _0x22ccbd['keys']())_0x3e1856['delete'](_0x27599f);this['_markSuggestions'](_0x475474,_0x3e1856),this[_0x77fa('0x109')](_0x475474),_0x475474=this[_0x77fa('0x11f')](_0x475474),_0x475474=this[_0x77fa('0x3e')](_0x475474),_0x475474=this[_0x77fa('0x6a')](_0x475474);const {root:_0x5f2ea0,changes:_0x18c49d}=this['_makeModelFromTape'](_0x475474,_0x5966fc,_0x4daa68);_0x396833[_0x77fa('0xf5')][_0x4daa68]=_0x5f2ea0;const _0x5b5189=_0x135645[_0x77fa('0x28')](_0x4daa68);if(_0x5b5189){const _0x2a2f4e=_0x5966fc[_0x77fa('0x28')](_0x5b5189[_0x77fa('0x4d')]),_0x1c5a5d=new _0x2494ad({'author':_0x2a2f4e,'type':_0x5b5189[_0x77fa('0xdb')]?_0x77fa('0x105'):_0x77fa('0x11d'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4daa68});_0x18c49d[_0x77fa('0xa6')](_0x1c5a5d),_0x396833[_0x77fa('0xe6')][_0x4daa68][_0x77fa('0x6e')]=_0x1c5a5d['id'];}_0x396833[_0x77fa('0x1f')]=_0x396833[_0x77fa('0x1f')]['concat'](_0x18c49d);}return _0x396833;}[_0x77fa('0xb1')](_0x7fd7c5,_0x14ad33){for(let _0x32d2e0=0x0;_0x32d2e0<_0x7fd7c5['length'];_0x32d2e0++)for(const [_0x3a2b08,_0xca5a04]of _0x14ad33)_0xca5a04[_0x77fa('0x29')][_0x77fa('0xb6')](_0x7fd7c5[_0x32d2e0][_0x77fa('0xa2')])&&_0x7fd7c5[_0x32d2e0][_0x77fa('0xfd')][_0x77fa('0x119')](_0x3a2b08),_0xca5a04[_0x77fa('0xeb')][_0x77fa('0xb6')](_0x7fd7c5[_0x32d2e0][_0x77fa('0x52')])&&_0x7fd7c5[_0x32d2e0][_0x77fa('0x1a')][_0x77fa('0x119')](_0x3a2b08);}[_0x77fa('0x7f')](_0x2102a2,_0x2131ac){let _0x1f40e1=[],_0x13c554=0x0,_0x4018c7=0x0;for(;_0x13c554<_0x2102a2[_0x77fa('0x67')]||_0x4018c7<_0x2131ac[_0x77fa('0x67')];){const _0xd790f8=_0x2102a2[_0x13c554]||{},_0x3c1c67=_0x2131ac[_0x4018c7]||{};if(_0xd790f8['id']==_0x3c1c67['id'])_0x13c554++,_0x4018c7++,_0x1f40e1['push'](_0xd790f8);else{if(_0x3c1c67[_0x77fa('0x42')]&&_0xd790f8[_0x77fa('0xa')]){const {commonTape:_0x271419,iEnd:_0x57d06d,jEnd:_0x16e29a}=this[_0x77fa('0x0')](_0x2102a2,_0x13c554,_0x2131ac,_0x4018c7);_0x1f40e1=_0x1f40e1[_0x77fa('0xe8')](_0x271419),_0x13c554=_0x57d06d,_0x4018c7=_0x16e29a;}else _0x3c1c67['isRemoved']?(_0x4018c7++,_0x1f40e1[_0x77fa('0x119')](_0x3c1c67)):(_0x13c554++,_0x1f40e1[_0x77fa('0x119')](_0xd790f8));}}return _0x1f40e1;}[_0x77fa('0xc4')](_0x1177cf,_0x1efaaf){const _0x12bfa0=[];for(let _0xdef173=0x0;_0xdef173<_0x1177cf[_0x77fa('0x67')];_0xdef173++){for(let _0x4f67c8=0x0;_0x4f67c8<_0x1177cf[_0xdef173][_0x77fa('0xfd')][_0x77fa('0x67')];_0x4f67c8++){const _0xc40d5c=_0x1177cf[_0xdef173][_0x77fa('0xfd')][_0x4f67c8];if(!_0x1efaaf[_0x77fa('0x51')](_0xc40d5c))continue;const {group:_0x481cbe,type:_0x9f6ff3,authorId:_0x549d5b}=_0x1bcce9(_0xc40d5c);_0x77fa('0xf8')!=_0x481cbe||_0x77fa('0x5e')!=_0x9f6ff3&&_0x77fa('0x39')!=_0x9f6ff3||(_0x12bfa0[_0x77fa('0xa6')]({'type':_0x9f6ff3,'name':_0xc40d5c,'userId':_0x549d5b}),_0x1177cf[_0xdef173]['markersStart'][_0x77fa('0x10f')](_0x4f67c8,0x1),_0x4f67c8--);}_0x1792a6(_0x1177cf[_0xdef173]);for(let _0x3a0fa8=0x0;_0x3a0fa8<_0x1177cf[_0xdef173][_0x77fa('0x1a')]['length'];_0x3a0fa8++){const _0x5bd4a9=_0x1177cf[_0xdef173][_0x77fa('0x1a')][_0x3a0fa8];if(!_0x1efaaf[_0x77fa('0x51')](_0x5bd4a9))continue;const {group:_0x367046,type:_0x43006f}=_0x1bcce9(_0x5bd4a9);if(_0x77fa('0xf8')!=_0x367046||'insertion'!=_0x43006f&&'deletion'!=_0x43006f)continue;_0x1177cf[_0xdef173]['markersEnd'][_0x77fa('0x10f')](_0x3a0fa8,0x1),_0x3a0fa8--;const _0xdfd690=_0x12bfa0[_0x77fa('0x10d')](_0x57777c=>_0x57777c['name']==_0x5bd4a9);_0xdfd690>-0x1&&_0x12bfa0[_0x77fa('0x10f')](_0xdfd690,0x1);}}function _0x1bcce9(_0x2864ec){const _0x29a4e0=_0x2864ec[_0x77fa('0x33')](':');return{'group':_0x29a4e0[0x0],'type':_0x29a4e0[0x1],'subType':_0x29a4e0[_0x77fa('0x67')]>=0x5?_0x29a4e0[0x2]:null,'id':_0x29a4e0['length']<0x5?_0x29a4e0[0x2]:_0x29a4e0[0x3],'authorId':_0x29a4e0['length']<0x5?_0x29a4e0[0x3]:_0x29a4e0[0x4],'markerCount':0x6==_0x29a4e0['length']?_0x29a4e0[0x5]:null};}function _0x1792a6(_0x1ebcc1){for(let _0x4341ca=0x0;_0x4341ca<_0x12bfa0[_0x77fa('0x67')];_0x4341ca++){if(_0x1ebcc1[_0x77fa('0xa')]&&_0x77fa('0x5e')==_0x12bfa0[_0x4341ca][_0x77fa('0x3d')])return _0x1ebcc1['isAddSuggestion']=_0x12bfa0[_0x4341ca],void delete _0x1ebcc1[_0x77fa('0xa')];if(!_0x1ebcc1[_0x77fa('0xa')]&&!_0x1ebcc1[_0x77fa('0x42')]&&_0x77fa('0x39')==_0x12bfa0[_0x4341ca]['type'])return void(_0x1ebcc1[_0x77fa('0x88')]=_0x12bfa0[_0x4341ca]);}}}[_0x77fa('0x124')](_0x3cad0a,_0x3d7604){let _0x12cb19=0x0,_0x2fd040=!0x1;const _0x96a8f9=new Map();for(const _0x1066fc of _0x3cad0a)_0x1066fc[_0x3d7604]?_0x2fd040&&(_0x12cb19++,_0x2fd040=!0x1):(_0x12cb19++,_0x2fd040=!0x0),_0x96a8f9[_0x77fa('0xe1')](_0x1066fc['id'],_0x12cb19);for(let _0x10a570=0x0;_0x10a570<_0x3cad0a[_0x77fa('0x67')];_0x10a570++){if(_0x77fa('0x42')==_0x3d7604&&_0x3cad0a[_0x10a570]['isAdded']||'isAdded'==_0x3d7604&&_0x3cad0a[_0x10a570]['isRemoved'])continue;if(_0x77fa('0xc')==_0x3cad0a[_0x10a570][_0x77fa('0x3d')]){_0x3cad0a[_0x10a570]['distance']=0x0;continue;}const _0x270d05=_0x96a8f9[_0x77fa('0x28')](_0x3cad0a[_0x10a570][_0x77fa('0xed')]),_0x593ce1=_0x96a8f9[_0x77fa('0x28')](_0x3cad0a[_0x10a570]['id']);_0x3cad0a[_0x10a570][_0x77fa('0x90')]=_0x270d05-_0x593ce1;}}[_0x77fa('0xbd')](_0x17a1f4,_0x25a683,_0x3a7141=!0x1){const _0x295309=[];let _0x1b33c7=this[_0x77fa('0xa9')]['getIndex'](_0x17a1f4),_0x706242=this[_0x77fa('0xa9')][_0x77fa('0x76')](_0x25a683);for(-0x1==_0x706242&&(_0x706242=this[_0x77fa('0xa9')]['_revisions']['length'],_0x3a7141=!0x1);_0x1b33c7<_0x706242;)_0x295309[_0x77fa('0x119')](this[_0x77fa('0xa9')][_0x77fa('0xd7')](_0x1b33c7)),_0x1b33c7++;return _0x3a7141&&_0x295309[_0x77fa('0x119')](this[_0x77fa('0xa9')][_0x77fa('0xd7')](_0x1b33c7)),_0x295309;}[_0x77fa('0x0')](_0x29bce8,_0x25a26e,_0x33e19b,_0x26deea){const _0x51b8a3=this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0x2d')];let _0x28b5fb=_0x25a26e;for(;_0x29bce8[_0x28b5fb]&&_0x29bce8[_0x28b5fb]['isAdded'];)_0x28b5fb++;let _0x5b4ce2=_0x26deea;for(;_0x33e19b[_0x5b4ce2]&&_0x33e19b[_0x5b4ce2][_0x77fa('0x42')];)_0x5b4ce2++;_0x3b65be(_0x29bce8,_0x25a26e,_0x28b5fb),_0x3b65be(_0x33e19b,_0x26deea,_0x5b4ce2);const _0x431cb1=_0x33e19b['slice'](_0x26deea,_0x5b4ce2)[_0x77fa('0xe8')](_0x29bce8[_0x77fa('0x6b')](_0x25a26e,_0x28b5fb));return _0x431cb1[_0x77fa('0x126')]((_0x5430f1,_0x40ad24)=>_0x5430f1[_0x77fa('0x60')]!=_0x40ad24[_0x77fa('0x60')]?_0x5430f1[_0x77fa('0x60')]-_0x40ad24[_0x77fa('0x60')]:_0x5430f1[_0x77fa('0x8e')]!=_0x40ad24[_0x77fa('0x8e')]?_0x5430f1[_0x77fa('0x8e')]-_0x40ad24['level']:_0x5430f1[_0x77fa('0x90')]!=_0x40ad24[_0x77fa('0x90')]?_0x40ad24[_0x77fa('0x90')]-_0x5430f1['distance']:!!_0x5430f1[_0x77fa('0xa')]!=!!_0x40ad24[_0x77fa('0xa')]?-0x1==_0x5430f1[_0x77fa('0x60')]||0x0==_0x5430f1[_0x77fa('0x60')]?_0x5430f1[_0x77fa('0xa')]?-0x1:0x1:_0x5430f1['isAdded']?0x1:-0x1:_0x5430f1[_0x77fa('0xc7')]-_0x40ad24[_0x77fa('0xc7')]),{'commonTape':_0x431cb1,'iEnd':_0x28b5fb,'jEnd':_0x5b4ce2};function _0x3b65be(_0x5ca127,_0x3b1ce3,_0x5115b0){let _0x4c7bac=-0x1,_0x274a28=Number[_0x77fa('0x11e')],_0x544c40=!0x0;for(let _0x4b140e=_0x3b1ce3;_0x4b140e<_0x5115b0;_0x4b140e++)if(_0x51b8a3[_0x77fa('0xd8')](_0x5ca127[_0x4b140e][_0x77fa('0xfb')])||(_0x544c40=!0x1),_0x5ca127[_0x4b140e][_0x77fa('0xfb')]['startIndex']<_0x3b1ce3&&(_0x4c7bac=_0x4b140e),_0x5ca127[_0x4b140e][_0x77fa('0xfb')]['endIndex']>=_0x5115b0){_0x274a28=_0x4b140e;break;}_0x544c40&&(_0x4c7bac=_0x5115b0-0x1);for(let _0x1dc1b4=_0x3b1ce3;_0x1dc1b4<_0x5115b0;_0x1dc1b4++)_0x5ca127[_0x1dc1b4]['side']=_0x1dc1b4<=_0x4c7bac?-0x1:_0x1dc1b4<_0x274a28?0x0:0x1,_0x5ca127[_0x1dc1b4][_0x77fa('0xc7')]=_0x1dc1b4;let _0x148090=0x0;for(let _0x435568=_0x3b1ce3;_0x435568<=_0x4c7bac;_0x435568++)0x0==_0x5ca127[_0x435568][_0x77fa('0x90')]?_0x5ca127[_0x435568][_0x77fa('0x8e')]=_0x148090:(_0x148090++,_0x5ca127[_0x435568][_0x77fa('0x8e')]=_0x148090,_0x148090++);for(let _0x27f560=_0x3b1ce3;_0x27f560<_0x5115b0;_0x27f560++)0x0==_0x5ca127[_0x27f560]['side']&&(_0x5ca127[_0x27f560]['level']=_0x148090);_0x148090=0x0;for(let _0x4eeef7=_0x5115b0-0x1;_0x4eeef7>=_0x274a28;_0x4eeef7--)0x0==_0x5ca127[_0x4eeef7]['distance']?_0x5ca127[_0x4eeef7][_0x77fa('0x8e')]=_0x148090:(_0x148090--,_0x5ca127[_0x4eeef7][_0x77fa('0x8e')]=_0x148090,_0x148090--);}}[_0x77fa('0x109')](_0x58efb1){const _0x21f825=new Map(),_0x4b9559=this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0x2d')];for(let _0x2ae770=0x1;_0x2ae770<_0x58efb1['length'];_0x2ae770++){let _0x4126d1,_0x50ae98,_0x227f19;const _0xd73743=_0x58efb1[_0x2ae770],_0x3d1d69=_0x58efb1[_0x2ae770-0x1];if('text'==_0xd73743[_0x77fa('0x3d')])continue;if(_0xd73743['type']!=_0x3d1d69[_0x77fa('0x3d')])continue;if(!_0x4b9559[_0x77fa('0x82')](_0x3d1d69[_0x77fa('0xfb')])||_0x4b9559[_0x77fa('0x71')](_0x3d1d69[_0x77fa('0xfb')]))continue;if(!_0x4b9559[_0x77fa('0x82')](_0xd73743[_0x77fa('0xfb')])||_0x4b9559[_0x77fa('0x71')](_0xd73743[_0x77fa('0xfb')]))continue;if((_0x58efb1[_0x2ae770][_0x77fa('0xa')]||_0x58efb1[_0x2ae770][_0x77fa('0xce')])&&_0x58efb1[_0x2ae770-0x1][_0x77fa('0x42')])_0x4126d1=_0x58efb1[_0x2ae770],_0x50ae98=_0x58efb1[_0x2ae770-0x1],_0x227f19=_0x2ae770-0x1;else{if(!_0x58efb1[_0x2ae770]['isRemoved']||!_0x58efb1[_0x2ae770-0x1]['isAdded']&&!_0x58efb1[_0x2ae770-0x1]['isAddSuggestion'])continue;_0x4126d1=_0x58efb1[_0x2ae770-0x1],_0x50ae98=_0x58efb1[_0x2ae770],_0x227f19=_0x2ae770;}const _0x1a01d0=_0x4126d1[_0x77fa('0x8e')]==_0x50ae98[_0x77fa('0x8e')],_0x2687af=Math[_0x77fa('0xda')](_0x4126d1[_0x77fa('0x8e')])<Math[_0x77fa('0xda')](_0x50ae98['level'])&&0x0==_0x50ae98[_0x77fa('0x90')];(_0x1a01d0||_0x2687af)&&(_0x21f825[_0x77fa('0xe1')](_0x50ae98['id'],_0x4126d1['id']),_0x58efb1[_0x77fa('0x10f')](_0x227f19,0x1),_0x2ae770--,_0x4126d1[_0x77fa('0xa')]=!0x1);}for(let _0x5b7964=0x0;_0x5b7964<_0x58efb1[_0x77fa('0x67')];_0x5b7964++)_0x21f825[_0x77fa('0x51')](_0x58efb1[_0x5b7964][_0x77fa('0xed')])&&(_0x58efb1[_0x5b7964][_0x77fa('0xed')]=_0x21f825[_0x77fa('0x28')](_0x58efb1[_0x5b7964][_0x77fa('0xed')]));}[_0x77fa('0x11f')](_0x269898){const _0x24e73a=new Set(_0x269898[_0x77fa('0xf3')](_0xa2678d=>_0xa2678d['id']));for(let _0x17223=0x0;_0x17223<_0x269898[_0x77fa('0x67')];_0x17223++)_0x24e73a[_0x77fa('0x51')](_0x269898[_0x17223][_0x77fa('0xed')])||0x0==_0x269898[_0x17223][_0x77fa('0x90')]||(_0x269898[_0x17223][_0x77fa('0x31')]=!0x0);return _0x269898[_0x77fa('0x100')](_0x1846f2=>!_0x1846f2[_0x77fa('0x31')]);}[_0x77fa('0x3e')](_0xafcebb){const _0xc96a89=new Set();for(let _0x555fce=0x0;_0x555fce<_0xafcebb[_0x77fa('0x67')];_0x555fce++){if(_0xc96a89['has'](_0xafcebb[_0x555fce]['id'])&&_0xafcebb[_0x555fce]['isRemoved']&&(_0xafcebb[_0x555fce][_0x77fa('0x31')]=!0x0),_0xafcebb[_0x555fce]['isIncorrect'])continue;if(0x0==_0xafcebb[_0x555fce][_0x77fa('0x90')])continue;if(_0x77fa('0xe0')!=_0xafcebb[_0x555fce][_0x77fa('0x3d')])continue;if(null==_0xafcebb[_0x555fce][_0x77fa('0xed')])continue;let _0x4fc4dc=_0x555fce+0x1,_0x29bb3c=0x0;for(;_0xafcebb[_0x4fc4dc]['id']!=_0xafcebb[_0x555fce]['pairId'];)_0x77fa('0xe0')==_0xafcebb[_0x4fc4dc]['type']?_0x29bb3c++:_0x77fa('0x8f')==_0xafcebb[_0x4fc4dc][_0x77fa('0x3d')]&&_0x29bb3c--,_0x4fc4dc++;if(0x0!=_0x29bb3c){if(_0xafcebb[_0x555fce][_0x77fa('0x42')])_0xafcebb[_0x555fce][_0x77fa('0x31')]=!0x0;else for(;_0x4fc4dc!=_0x555fce;)_0xafcebb[_0x4fc4dc][_0x77fa('0x42')]&&0x0!=_0xafcebb[_0x4fc4dc][_0x77fa('0x90')]&&(_0xafcebb[_0x4fc4dc][_0x77fa('0x31')]=!0x0,_0xc96a89['add'](_0xafcebb[_0x4fc4dc][_0x77fa('0xed')])),_0x4fc4dc--;}}return _0xafcebb[_0x77fa('0x100')](_0x337d59=>!_0x337d59['isIncorrect']);}[_0x77fa('0x6a')](_0x16e5bb){const _0x52cc88=this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0x2d')];for(let _0x276d34=0x0;_0x276d34<_0x16e5bb[_0x77fa('0x67')];_0x276d34++){if(!(_0x16e5bb[_0x276d34][_0x77fa('0xa')]||_0x16e5bb[_0x276d34][_0x77fa('0xce')]||_0x16e5bb[_0x276d34][_0x77fa('0x42')]||_0x16e5bb[_0x276d34]['isRemoveSuggestion']))continue;if(0x0==_0x16e5bb[_0x276d34][_0x77fa('0x90')])continue;const _0x5b8bd6=_0x16e5bb[_0x276d34]['item'];_0x52cc88[_0x77fa('0x82')](_0x5b8bd6)||_0x52cc88[_0x77fa('0x71')](_0x5b8bd6)||(_0x16e5bb[_0x276d34]['isAdded']&&delete _0x16e5bb[_0x276d34]['isAdded'],_0x16e5bb[_0x276d34][_0x77fa('0xce')]&&delete _0x16e5bb[_0x276d34][_0x77fa('0xce')],_0x16e5bb[_0x276d34]['isRemoveSuggestion']&&delete _0x16e5bb[_0x276d34][_0x77fa('0x88')],_0x16e5bb[_0x276d34][_0x77fa('0x42')]&&(_0x16e5bb[_0x276d34][_0x77fa('0x31')]=!0x0));}return _0x16e5bb['filter'](_0x42e80d=>!_0x42e80d[_0x77fa('0x31')]);}[_0x77fa('0x106')](_0x55351b,_0x1d113d,_0x577e18){const _0x52adb4=new _0x301f71(),_0x2cf965=[],_0x1f8541=new Map(),_0x290b06=this['editor']['model'],_0x3e7803=_0x290b06['schema'],_0x55ef5f=[_0x52adb4],_0x884d08={},_0x31aff3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x143c05=null;const _0x766702=[0x0];for(let _0x47bf46=0x0;_0x47bf46<_0x55351b[_0x77fa('0x67')];_0x47bf46++){let _0x1a9025,_0x1cccb2;if('elementStart'===_0x55351b[_0x47bf46][_0x77fa('0x3d')]){_0x1a9025=_0x290b06[_0x77fa('0x16')](_0x52adb4,_0x766702);const _0x209f17=new _0x3725a2(_0x55351b[_0x47bf46][_0x77fa('0xfb')]['name'],_0x55351b[_0x47bf46][_0x77fa('0xfb')]['getAttributes']());_0x55ef5f[0x0][_0x77fa('0x101')](_0x209f17),_0x766702[_0x77fa('0x119')](0x0),_0x55ef5f[_0x77fa('0xa6')](_0x209f17),_0x1cccb2=_0x290b06[_0x77fa('0x16')](_0x52adb4,_0x766702),_0x143c05=null;}else{if(_0x77fa('0x8f')===_0x55351b[_0x47bf46][_0x77fa('0x3d')])_0x55ef5f[_0x77fa('0x18')](),_0x1a9025=_0x290b06[_0x77fa('0x16')](_0x52adb4,_0x766702),_0x766702[_0x77fa('0x6d')](),_0x766702[_0x766702[_0x77fa('0x67')]-0x1]++,_0x1cccb2=_0x290b06['createPositionFromPath'](_0x52adb4,_0x766702),_0x143c05=null;else{if(_0x1a9025=_0x290b06[_0x77fa('0x16')](_0x52adb4,_0x766702),_0x143c05&&_0x52515e(_0x143c05,_0x55351b[_0x47bf46][_0x77fa('0xfb')]))_0x143c05[_0x77fa('0xe2')]+=_0x55351b[_0x47bf46][_0x77fa('0xfb')][_0x77fa('0xe3')];else{const _0x493f5b=new _0x174716(_0x55351b[_0x47bf46]['item'][_0x77fa('0xe3')],_0x55351b[_0x47bf46][_0x77fa('0xfb')][_0x77fa('0xab')]());_0x55ef5f[0x0][_0x77fa('0x101')](_0x493f5b),_0x143c05=_0x493f5b;}_0x766702[_0x766702[_0x77fa('0x67')]-0x1]+=_0x55351b[_0x47bf46][_0x77fa('0xfb')]['offsetSize'],_0x1cccb2=_0x290b06[_0x77fa('0x16')](_0x52adb4,_0x766702);}}for(const _0x2f339c of _0x55351b[_0x47bf46]['markersStart'])_0x1f8541[_0x77fa('0xe1')](_0x2f339c,{'start':_0x1a9025,'end':null});_0x2dd2fa('isRemoveSuggestion',_0x47bf46,_0x1a9025,_0x1cccb2),_0x2dd2fa(_0x77fa('0xce'),_0x47bf46,_0x1a9025,_0x1cccb2),_0x2dd2fa('isRemoved',_0x47bf46,_0x1a9025,_0x1cccb2),_0x2dd2fa(_0x77fa('0xa'),_0x47bf46,_0x1a9025,_0x1cccb2);for(const _0x37de9c of _0x55351b[_0x47bf46][_0x77fa('0x1a')]){_0x1f8541[_0x77fa('0x28')](_0x37de9c)['end']=_0x1cccb2;}}for(const [_0x4cb5db,_0x1f4c8b]of _0x1f8541){const _0x32536d=this['editor'][_0x77fa('0xf5')]['createRange'](_0x1f4c8b['start'],_0x1f4c8b[_0x77fa('0xeb')]);_0x52adb4['markers'][_0x77fa('0xe1')](_0x4cb5db,_0x32536d);}return _0x2cf965[_0x77fa('0x126')]((_0x25a03c,_0x37ef85)=>{const _0x467416=_0x52adb4[_0x77fa('0x83')][_0x77fa('0x28')](_0x77fa('0xa8')+_0x25a03c['id']),_0x4e07f7=_0x52adb4[_0x77fa('0x83')]['get'](_0x77fa('0xa8')+_0x37ef85['id']);return _0x467416['start']['isBefore'](_0x4e07f7[_0x77fa('0x29')])?-0x1:_0x467416[_0x77fa('0x29')][_0x77fa('0xf4')](_0x4e07f7[_0x77fa('0x29')])?0x1:_0x467416[_0x77fa('0xeb')][_0x77fa('0xa4')](_0x4e07f7[_0x77fa('0xeb')])?-0x1:_0x467416[_0x77fa('0xeb')][_0x77fa('0xf4')](_0x4e07f7[_0x77fa('0xeb')])?0x1:_0x77fa('0x105')===_0x25a03c[_0x77fa('0x3d')]?-0x1:0x1;}),{'root':_0x52adb4,'changes':_0x2cf965};function _0x2dd2fa(_0x39f1a0,_0x28fddc,_0x4af469,_0x37710b){const _0x199e33=!!_0x55351b[_0x28fddc][_0x39f1a0],_0x564c70=_0x199e33?_0x55351b[_0x28fddc][_0x39f1a0]['userId']:null,_0x53569f=_0x28fddc===_0x55351b[_0x77fa('0x67')]-0x1,_0x1bcaee=_0x31aff3[_0x39f1a0][0x0],_0x25aeb6=_0x3e7803[_0x77fa('0x123')](_0x55351b[_0x28fddc][_0x77fa('0xfb')]);!_0x884d08[_0x39f1a0]&&_0x199e33?_0x884d08[_0x39f1a0]={'start':_0x4af469,'tapeItem':_0x55351b[_0x28fddc],'userId':_0x564c70,'type':_0x39f1a0}:_0x884d08[_0x39f1a0]&&!_0x199e33?(_0x884d08[_0x39f1a0][_0x77fa('0xeb')]=_0x4af469,_0x1b7dc1(_0x884d08[_0x39f1a0]),_0x884d08[_0x39f1a0]=null):_0x884d08[_0x39f1a0]&&_0x199e33&&_0x884d08[_0x39f1a0]['userId']!==_0x564c70&&(_0x884d08[_0x39f1a0]['end']=_0x4af469,_0x1bcaee&&_0x1bcaee['userId']===_0x884d08[_0x39f1a0][_0x77fa('0x4d')]||_0x1b7dc1(_0x884d08[_0x39f1a0]),_0x884d08[_0x39f1a0]={'start':_0x4af469,'tapeItem':_0x55351b[_0x28fddc],'userId':_0x564c70,'type':_0x39f1a0}),_0x884d08[_0x39f1a0]&&_0x25aeb6&&('elementStart'!==_0x55351b[_0x28fddc][_0x77fa('0x3d')]||_0x1bcaee&&_0x1bcaee[_0x77fa('0x4d')]===_0x564c70||_0x31aff3[_0x39f1a0][_0x77fa('0xa6')]({'userId':_0x564c70,'object':_0x55351b[_0x28fddc]['item'],'change':_0x884d08[_0x39f1a0]}),_0x77fa('0x8f')===_0x55351b[_0x28fddc][_0x77fa('0x3d')]&&_0x1bcaee&&_0x1bcaee['object']===_0x55351b[_0x28fddc][_0x77fa('0xfb')]&&(_0x31aff3[_0x39f1a0][_0x77fa('0x18')](),_0x884d08[_0x39f1a0]=_0x1bcaee[_0x77fa('0xe7')])),_0x884d08[_0x39f1a0]&&_0x53569f&&(_0x884d08[_0x39f1a0][_0x77fa('0xeb')]=_0x37710b,_0x1b7dc1(_0x884d08[_0x39f1a0]),_0x884d08[_0x39f1a0]=null);}function _0x1b7dc1({start:_0x39fbfe,end:_0x1a7e3a,tapeItem:_0x2cb04b,userId:_0x268666,type:_0x3b546c}){const _0x162285=_0x2cb04b[_0x77fa('0xfb')],_0xf2ac9e=_0x290b06[_0x77fa('0x2d')][_0x77fa('0x82')](_0x162285)&&!_0x290b06[_0x77fa('0x2d')][_0x77fa('0x71')](_0x162285),_0x4b5d58=_0x39fbfe['nodeAfter']==_0x1a7e3a['parent']&&_0x1a7e3a[_0x77fa('0x61')];if(_0xf2ac9e&&_0x4b5d58)return;const _0x20285f=_0x290b06['createRange'](_0x39fbfe,_0x1a7e3a),_0x1ee33f=_0x1d113d[_0x77fa('0x28')](_0x268666),_0x2a3134=new _0x2494ad({'author':_0x1ee33f,'type':'isAdded'==_0x3b546c||_0x77fa('0xce')==_0x3b546c?_0x77fa('0x105'):_0x77fa('0x11d'),'data':{'isSuggestion':_0x77fa('0xce')==_0x3b546c||_0x77fa('0x88')==_0x3b546c},'createdAt':new Date(),'rootName':_0x577e18});_0x2cf965[_0x77fa('0x119')](_0x2a3134),_0x52adb4[_0x77fa('0x83')][_0x77fa('0xe1')](_0x77fa('0xa8')+_0x2a3134['id'],_0x20285f);}function _0x52515e(_0x1ddba6,_0x3fdfdd){const _0x94ffd1=_0x1ddba6['getAttributes'](),_0x1138ba=_0x3fdfdd[_0x77fa('0xab')]();for(const _0x2ec900 of _0x94ffd1){if(_0x2ec900[0x1]!==_0x3fdfdd[_0x77fa('0xb5')](_0x2ec900[0x0]))return!0x1;_0x1138ba[_0x77fa('0x7d')]();}return _0x1138ba['next']()[_0x77fa('0xb7')];}}[_0x77fa('0x2c')](){this['editor'][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0xf9'))[_0x77fa('0x21')]({'view':_0x77fa('0xba')}),this[_0x77fa('0x78')][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0x9'))['markerToHighlight']({'model':'revision','view':_0x228795=>{const _0x4f3d0=_0x228795[_0x77fa('0xd6')][_0x77fa('0x33')](':')[0x1],_0x488d83=this[_0x77fa('0xde')](_0x4f3d0);if(!_0x488d83)return null;const _0x4a8e1e=_0x77fa('0x105')==_0x488d83[_0x77fa('0x3d')]?'insertion':_0x77fa('0x39'),_0x53764d=[_0x77fa('0x69'),_0x77fa('0x13')+_0x4a8e1e];return _0x488d83['data'][_0x77fa('0x117')]&&_0x53764d['push'](_0x77fa('0x13')+_0x4a8e1e+_0x77fa('0x107')),this[_0x77fa('0x25')]==_0x488d83&&_0x53764d['push']('ck-suggestion-marker--active'),{'classes':_0x53764d,'attributes':{'data-change-id':_0x4f3d0}};}}),this['editor'][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0xf9'))['add'](_0x30f902=>{_0x30f902['on'](_0x77fa('0x11a'),(_0x1969db,_0x4807a5,_0x46b1f7)=>{const _0x1f6079=_0x4807a5[_0x77fa('0x22')][_0x77fa('0x115')](0x0);if(!_0x1f6079||!_0x1f6079['is']('element',_0x77fa('0x121')))return;if(!_0x46b1f7[_0x77fa('0x44')]['consume'](_0x1f6079,{'attributes':[_0x77fa('0xd9'),_0x77fa('0xe')]}))return;const _0x3aff0d=_0x4807a5[_0x77fa('0xa7')]['start'][_0x77fa('0x37')];_0x46b1f7[_0x77fa('0x9b')][_0x77fa('0x5a')](_0x77fa('0xd9'),_0x1f6079[_0x77fa('0xb5')](_0x77fa('0xd9')),_0x3aff0d),_0x46b1f7[_0x77fa('0x9b')][_0x77fa('0x5a')](_0x77fa('0xe'),_0x1f6079['getAttribute'](_0x77fa('0xe')),_0x3aff0d);},{'priority':'low'});}),this[_0x77fa('0x78')][_0x77fa('0x2e')]['for'](_0x77fa('0xf9'))['add'](_0x421c8a=>{_0x421c8a['on']('element',(_0x1db002,_0x1edeb8,_0x5f2245)=>{if(!_0x5f2245['consumable']['consume'](_0x1edeb8[_0x77fa('0x22')],{'attributes':[_0x77fa('0xd9'),_0x77fa('0xe')]}))return;if(_0x1edeb8[_0x77fa('0xa7')]['isCollapsed'])return;const _0x1f8ea6=_0x1edeb8[_0x77fa('0xa7')][_0x77fa('0x29')][_0x77fa('0x37')];_0x1f8ea6[_0x77fa('0xc3')]('vid_start')||_0x1f8ea6[_0x77fa('0xc3')](_0x77fa('0x6'))||(_0x5f2245['writer']['setAttribute'](_0x77fa('0xd9'),_0x1edeb8[_0x77fa('0x22')][_0x77fa('0xb5')](_0x77fa('0xd9')),_0x1f8ea6),_0x5f2245[_0x77fa('0x9b')]['setAttribute'](_0x77fa('0xe'),_0x1edeb8['viewItem'][_0x77fa('0xb5')](_0x77fa('0xe')),_0x1f8ea6));},{'priority':_0x77fa('0x7c')});}),this['editor'][_0x77fa('0x2e')][_0x77fa('0xf7')]('upcast')[_0x77fa('0x9c')]({'view':{'name':_0x77fa('0x80'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4f99cd=>_0x4f99cd[_0x77fa('0xb5')](_0x77fa('0x6'))}}),this['editor'][_0x77fa('0xf5')][_0x77fa('0x2d')]['on'](_0x77fa('0xf0'),(_0x21078a,[,_0x28653e])=>{[_0x77fa('0xd9'),'vid_end','vid'][_0x77fa('0x86')](_0x28653e)&&(_0x21078a[_0x77fa('0xbf')]=!0x0,_0x21078a[_0x77fa('0x3')]());},{'priority':_0x77fa('0x24')}),this[_0x77fa('0x78')][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0x30'))['add'](_0x1842ec=>{_0x1842ec['on'](_0x77fa('0x70'),(_0x5ba750,_0x5d851f,_0x55634f)=>{if('\x20'!=_0x5d851f['item'][_0x77fa('0xe3')]||_0x5d851f[_0x77fa('0xfb')][_0x77fa('0x3f')][_0x77fa('0x7a')]>0x1)return;if(!_0x55634f[_0x77fa('0x44')][_0x77fa('0xc9')](_0x5d851f['item'],_0x5ba750[_0x77fa('0x62')]))return;const _0x270346=_0x55634f[_0x77fa('0x9b')],_0x4285f4=_0x55634f['mapper']['toViewRange'](_0x5d851f['range']);_0x270346[_0x77fa('0x36')](_0x4285f4,_0x270346[_0x77fa('0x47')](_0x77fa('0x80')));});}),this['editor'][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0x30'))[_0x77fa('0xbb')]({'model':'revision'}),this['editor']['editing'][_0x77fa('0x48')]['on'](_0x77fa('0xae'),function(_0x30209a){const _0x4d678d=_0x30209a[_0x77fa('0xee')][_0x77fa('0x28')](_0x77fa('0x114'));return(_0x52dd4c,_0x55e5b8,_0x5cbba1)=>{const _0x5c32b0=_0x55e5b8[_0x77fa('0xd6')][_0x77fa('0x33')](':')[0x1],_0x7c3025=_0x4d678d['_getChangeFromId'](_0x5c32b0);if(!_0x7c3025)return null;const _0x37ce68=_0x77fa('0x105')==_0x7c3025[_0x77fa('0x3d')]?'split':_0x77fa('0xca');if(!_0x5cbba1['consumable'][_0x77fa('0x64')](_0x55e5b8['markerRange'],_0x52dd4c['name']))return;const _0x14c6bb=_0x55e5b8[_0x77fa('0x45')][_0x77fa('0xb3')](),_0x1148a7=_0x55e5b8['markerRange'][_0x77fa('0x29')],_0x4e2d4c=_0x30209a[_0x77fa('0xf5')][_0x77fa('0x2d')];let _0x348621=null,_0x2b26b7=null,_0x9c9850=!0x1,_0x8cb0be=!0x1;for(const _0x178fee of _0x14c6bb){const _0x4e22bf=_0x178fee[_0x77fa('0xfb')];_0x9c9850=_0x9c9850||_0x4e2d4c[_0x77fa('0x49')](_0x4e22bf);const _0x2a02a6=_0x5cbba1[_0x77fa('0x41')]['toViewElement'](_0x4e22bf);if(_0x2a02a6&&_0x2a02a6[_0x77fa('0x26')](_0x77fa('0x99')))return;'elementEnd'==_0x178fee[_0x77fa('0x3d')]&&(_0x4e2d4c[_0x77fa('0x82')](_0x4e22bf)&&!_0x4e2d4c[_0x77fa('0x71')](_0x4e22bf)&&(_0x4e22bf[_0x77fa('0xcc')]||_0x1148a7[_0x77fa('0x12')]?_0x348621&&_0x348621['parent']==_0x4e22bf||(_0x348621=_0x4e22bf,_0x33bd5f(_0x178fee[_0x77fa('0xa2')]),_0x8cb0be=!0x0):_0x2b26b7=_0x2b26b7||_0x178fee['previousPosition']));}function _0x33bd5f(_0x395d5b){const _0x28b7eb=_0x5cbba1['writer']['createUIElement'](_0x77fa('0x80'),{'class':_0x77fa('0x13')+_0x37ce68}),_0x256abb=_0x5cbba1[_0x77fa('0x41')][_0x77fa('0xb4')](_0x395d5b);_0x7c3025['data']['isSuggestion']&&_0x5cbba1[_0x77fa('0x9b')][_0x77fa('0x125')](_0x77fa('0x13')+_0x37ce68+_0x77fa('0x107'),_0x28b7eb),_0x4d678d[_0x77fa('0x25')]==_0x7c3025&&_0x5cbba1['writer'][_0x77fa('0x125')](_0x77fa('0xa0'),_0x28b7eb),_0x5cbba1[_0x77fa('0x9b')][_0x77fa('0xc8')](_0x256abb,_0x28b7eb),_0x5cbba1[_0x77fa('0x41')]['bindElementToMarker'](_0x28b7eb,_0x55e5b8[_0x77fa('0xd6')]);}_0x9c9850||_0x8cb0be||!_0x2b26b7||_0x33bd5f(_0x2b26b7);};}(this['editor']),{'priority':_0x77fa('0x102')}),this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x48')]['on']('removeMarker:revision',(_0x57c5ef,_0x4cfadf,_0x3dc360)=>{const _0x4058d3=_0x3dc360['mapper'][_0x77fa('0x4b')](_0x4cfadf[_0x77fa('0xd6')]);if(_0x4058d3)for(const _0x28ff55 of _0x4058d3)(_0x28ff55[_0x77fa('0x14')]('ck-suggestion-marker-split')||_0x28ff55[_0x77fa('0x14')](_0x77fa('0x2')))&&(_0x3dc360['mapper'][_0x77fa('0xc2')](_0x28ff55,_0x4cfadf['markerName']),_0x3dc360[_0x77fa('0x9b')][_0x77fa('0x11d')](_0x28ff55));},{'priority':_0x77fa('0x102')}),this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x48')]['on'](_0x77fa('0xae'),(_0x119e97,_0x3ecf93,_0x215b05)=>{const _0x2ceaea=_0x3ecf93[_0x77fa('0xd6')][_0x77fa('0x33')](':')[0x1],_0x2706df=this[_0x77fa('0xde')](_0x2ceaea);if(!_0x2706df)return null;const _0x15b86e=_0x77fa('0x105')==_0x2706df[_0x77fa('0x3d')]?_0x77fa('0x33'):_0x77fa('0xca');if(_0x215b05[_0x77fa('0x44')][_0x77fa('0x64')](_0x3ecf93['markerRange'],_0x119e97[_0x77fa('0x62')]))for(const _0x525ddf of _0x3ecf93[_0x77fa('0x45')][_0x77fa('0x8a')]()){if(!_0x525ddf['is'](_0x77fa('0xc0'),_0x77fa('0x11b')))continue;const _0x691c8=_0x215b05[_0x77fa('0x9b')][_0x77fa('0x38')](_0x77fa('0x80'),{'class':_0x77fa('0x13')+_0x15b86e}),_0x3a2ee5=_0x215b05[_0x77fa('0x41')][_0x77fa('0xb4')](this[_0x77fa('0x78')]['model'][_0x77fa('0x4a')](_0x525ddf));_0x2706df[_0x77fa('0xe3')]['isSuggestion']&&_0x215b05[_0x77fa('0x9b')][_0x77fa('0x125')]('ck-suggestion-marker-'+_0x15b86e+'-new',_0x691c8),this[_0x77fa('0x25')]==_0x2706df&&_0x215b05[_0x77fa('0x9b')]['addClass']('ck-suggestion-marker--active',_0x691c8),_0x215b05[_0x77fa('0x9b')][_0x77fa('0xc8')](_0x3a2ee5,_0x691c8),_0x215b05[_0x77fa('0x41')][_0x77fa('0xf6')](_0x691c8,_0x3ecf93['markerName']);}},{'priority':_0x77fa('0x102')}),this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xd3')]['on'](_0x77fa('0xe7'),()=>{this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xe7')](_0x23051b=>{for(const _0x124abc of this[_0x77fa('0x78')][_0x77fa('0xf5')]['document'][_0x77fa('0x5b')]()){const _0x93efb2=this[_0x77fa('0x78')]['model'][_0x77fa('0xd3')][_0x77fa('0x10e')](_0x124abc),_0xc3361c=this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xd3')]['getRoot'](_0x124abc);if(_0xc3361c){const _0x2cdd48=_0x93efb2[_0x77fa('0xb5')](_0x77fa('0x6e'));if(_0x23051b[_0x77fa('0x46')]('data-change-id',_0xc3361c),_0x23051b[_0x77fa('0xfe')](_0x77fa('0xf'),_0xc3361c),_0x23051b['removeClass'](_0x77fa('0x92'),_0xc3361c),_0x23051b['removeClass'](_0x77fa('0xad'),_0xc3361c),_0x2cdd48){const _0x513fb0=this[_0x77fa('0xde')](_0x2cdd48);if(!_0x513fb0)return null;_0x23051b[_0x77fa('0x5a')](_0x77fa('0x96'),_0x2cdd48,_0xc3361c),_0x23051b[_0x77fa('0x125')](_0x77fa('0x4e')+_0x513fb0[_0x77fa('0x3d')],_0xc3361c),this[_0x77fa('0x25')]==_0x513fb0&&_0x23051b['addClass'](_0x77fa('0xad'),_0xc3361c);}}}});}),this[_0x77fa('0x78')][_0x77fa('0x2e')]['for'](_0x77fa('0xf9'))['dataToMarker']({'view':'comment','model':_0x381cad=>'revision-comment:'+_0x381cad,'converterPriority':_0x77fa('0x24')}),this[_0x77fa('0x78')][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0xf9'))[_0x77fa('0x21')]({'view':_0x77fa('0xd5'),'model':_0x5e3c59=>_0x77fa('0xaf')+_0x5e3c59,'converterPriority':'highest'}),this[_0x77fa('0x78')][_0x77fa('0x2e')]['for'](_0x77fa('0x30'))[_0x77fa('0xbb')]({'model':_0x77fa('0xf8'),'view':_0xcbb6e2=>({'name':_0x77fa('0x112')+_0xcbb6e2,'group':_0x77fa('0xf8')}),'converterPriority':_0x77fa('0x24')}),this[_0x77fa('0x78')][_0x77fa('0x2e')][_0x77fa('0xf7')]('editingDowncast')[_0x77fa('0x116')]({'model':_0x77fa('0xf8'),'view':_0x3d71e4=>{const _0x4c59f5=_0x3d71e4[_0x77fa('0xd6')][_0x77fa('0x33')](':')[0x1];return _0x77fa('0x5e')!=_0x4c59f5&&_0x77fa('0x39')!=_0x4c59f5?null:{'classes':['ck-suggestion-preview-marker',_0x77fa('0x72')+_0x4c59f5]};}}),this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x48')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x77fa('0x78')],_0x77fa('0xca')),{'priority':_0x77fa('0x102')}),this['editor'][_0x77fa('0xb')][_0x77fa('0x48')]['on'](_0x77fa('0xcd'),et(this[_0x77fa('0x78')],_0x77fa('0x33')),{'priority':_0x77fa('0x102')}),this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x48')]['on']('removeMarker:revision-suggestion',(_0x199c7f,_0x3138e2,_0x151655)=>{const _0x2f8c0b=_0x151655[_0x77fa('0x41')][_0x77fa('0x4b')](_0x3138e2[_0x77fa('0xd6')]);if(_0x2f8c0b)for(const _0x1f9f34 of _0x2f8c0b)_0x1f9f34['is']('uiElement')&&(_0x151655[_0x77fa('0x41')]['unbindElementFromMarkerName'](_0x1f9f34,_0x3138e2[_0x77fa('0xd6')]),_0x151655[_0x77fa('0x9b')][_0x77fa('0x11d')](_0x1f9f34));},{'priority':'high'});}[_0x77fa('0xde')](_0x59b8c5){return this[_0x77fa('0x93')][_0x77fa('0x28')](_0x59b8c5);}['_getViewForChange'](_0x3b273a){return this['_changeView']&&this[_0x77fa('0x10')][_0x77fa('0x73')](),this[_0x77fa('0x10')]=new _0x3f6844(this[_0x77fa('0x78')]['locale'],_0x3b273a),this[_0x77fa('0x10')];}[_0x77fa('0x7b')](){this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xd3')][_0x77fa('0x7')][_0x77fa('0x10c')]('revision'),this['on']('change:activeView',(_0x28bd71,_0x59fc0b,_0x4ecf55,_0x49c191)=>{_0x49c191&&this[_0x77fa('0x35')][_0x77fa('0x11d')](_0x49c191),_0x4ecf55&&(this[_0x77fa('0x35')]['add']({'view':_0x4ecf55,'stackId':_0x77fa('0x79'),'position':{'target':()=>{const _0x33b905=this[_0x77fa('0x78')][_0x77fa('0xb')],_0x2d095e=this[_0x77fa('0xde')](_0x4ecf55[_0x77fa('0xb9')]);let _0x2c8b8b;if(_0x2d095e[_0x77fa('0xe3')][_0x77fa('0x3c')]){const _0x15c90b=_0x33b905['view'][_0x77fa('0x104')](_0x2d095e[_0x77fa('0xec')]);_0x2c8b8b=Array['from'](_0x15c90b[_0x77fa('0x59')]());}else{const _0x116b97=this[_0x77fa('0x78')]['model'][_0x77fa('0x83')][_0x77fa('0x28')]('revision:'+_0x4ecf55['changeId']);_0x2c8b8b=Array[_0x77fa('0x1c')](_0x33b905[_0x77fa('0x41')][_0x77fa('0x4b')](_0x116b97[_0x77fa('0x62')]))[_0x77fa('0xf3')](_0x4e8895=>_0x33b905[_0x77fa('0x1')][_0x77fa('0x11c')][_0x77fa('0xf1')](_0x4e8895))[_0x77fa('0xf3')](_0x21e02e=>Array[_0x77fa('0x1c')](_0x21e02e[_0x77fa('0x59')]()))[_0x77fa('0x23')]();}if(!this[_0x77fa('0xbe')])return _0x2c8b8b[0x0];return _0x2c8b8b['find'](_0x4c4447=>_0x4c4447['top']-0x3<=this[_0x77fa('0xbe')]['y']&&_0x4c4447['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4c4447[_0x77fa('0xc6')]-0x3<=this[_0x77fa('0xbe')]['x']&&_0x4c4447['right']+0x3>=this[_0x77fa('0xbe')]['x'])||_0x2c8b8b[0x0];}}}),this[_0x77fa('0x35')][_0x77fa('0x9e')]('revisionHistoryLabel'));}),this['on'](_0x77fa('0x57'),(_0x103c72,_0x3eb2b1,_0x23f38d,_0x4c6b69)=>{this[_0x77fa('0x8c')]=_0x23f38d?this[_0x77fa('0xa1')](_0x23f38d):null,this['editor'][_0x77fa('0xf5')][_0x77fa('0xe7')](()=>{const _0x119bf5=this[_0x77fa('0x78')][_0x77fa('0xb')];_0x4c6b69&&(_0x4c6b69[_0x77fa('0xe3')][_0x77fa('0x3c')]?_0x119bf5[_0x77fa('0x1')][_0x77fa('0xe7')](_0x366eb5=>{_0x366eb5['removeClass'](_0x77fa('0xad'),_0x119bf5[_0x77fa('0x1')][_0x77fa('0xd3')][_0x77fa('0x10e')](_0x4c6b69['rootName']));}):_0x119bf5[_0x77fa('0x58')](_0x77fa('0xa8')+_0x4c6b69['id'])),_0x23f38d&&(_0x23f38d[_0x77fa('0xe3')]['isOnRoot']?_0x119bf5[_0x77fa('0x1')]['change'](_0x30926e=>{_0x30926e[_0x77fa('0x125')](_0x77fa('0xad'),_0x119bf5['view'][_0x77fa('0xd3')]['getRoot'](_0x23f38d[_0x77fa('0xec')]));}):_0x119bf5[_0x77fa('0x58')](_0x77fa('0xa8')+_0x23f38d['id']));});}),this[_0x77fa('0x15')](this['editor'][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xd3')],_0x77fa('0xef'),(_0x8c2b07,_0x386f08)=>{if(this[_0x77fa('0x25')])return;const _0x5db7b4=this[_0x77fa('0xfa')](_0x386f08[_0x77fa('0x77')]),_0x719c1a=this[_0x77fa('0x93')][_0x77fa('0x28')](_0x5db7b4);_0x719c1a?(this[_0x77fa('0xbe')]={'x':_0x386f08[_0x77fa('0x75')]['x'],'y':_0x386f08[_0x77fa('0x75')]['y']},this[_0x77fa('0x8c')]=this['_getViewForChange'](_0x719c1a)):(this[_0x77fa('0xbe')]=null,this[_0x77fa('0x8c')]=null);}),this[_0x77fa('0x15')](this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xd3')],_0x77fa('0x118'),(_0x38a848,_0x56e286)=>{const _0x3b69b8=this[_0x77fa('0xfa')](_0x56e286['target']),_0xa7c4e9=this['_changeIdToChange'][_0x77fa('0x28')](_0x3b69b8);_0xa7c4e9?(this[_0x77fa('0xbe')]={'x':_0x56e286[_0x77fa('0x75')]['x'],'y':_0x56e286[_0x77fa('0x75')]['y']},_0xa7c4e9===this['activeChange']?this[_0x77fa('0x35')][_0x77fa('0x56')]():this[_0x77fa('0x25')]=_0xa7c4e9):(this['_activeViewTarget']=null,this[_0x77fa('0x25')]=null);});}['_findChangeIdFromDomTarget'](_0x357226){do{const _0x330cac=_0x357226[_0x77fa('0xb5')](_0x77fa('0x96'));if(_0x330cac)return _0x330cac;_0x357226=_0x357226[_0x77fa('0x3f')];}while(_0x357226);return null;}[_0x77fa('0x1b')](){this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xe7')](_0x1463d1=>{for(const _0x473cd5 of this[_0x77fa('0x78')][_0x77fa('0xf5')]['markers'])_0x1463d1[_0x77fa('0x84')](_0x473cd5);});}}function et(_0x169585,_0x572e8c){return(_0x3c0eeb,_0x395023,_0x145386)=>{if(!_0x145386[_0x77fa('0x44')][_0x77fa('0x64')](_0x395023[_0x77fa('0x45')],_0x3c0eeb[_0x77fa('0x62')]))return;const _0x4d3a61=_0x395023[_0x77fa('0x45')][_0x77fa('0xb3')](),_0x299b18=_0x395023[_0x77fa('0x45')][_0x77fa('0x29')],_0x28b7a0=_0x169585[_0x77fa('0xf5')][_0x77fa('0x2d')];let _0xfb8050=null,_0x4921b6=null,_0x9fe205=!0x1,_0x6bace5=!0x1;for(const _0x92dc8c of _0x4d3a61){const _0x53c956=_0x92dc8c['item'];_0x9fe205=_0x9fe205||_0x28b7a0['isContent'](_0x53c956);const _0x38c90f=_0x145386[_0x77fa('0x41')][_0x77fa('0x6c')](_0x53c956);if(_0x38c90f&&_0x38c90f[_0x77fa('0x26')](_0x77fa('0x99')))return;'elementEnd'==_0x92dc8c[_0x77fa('0x3d')]&&(_0x28b7a0[_0x77fa('0x82')](_0x53c956)&&!_0x28b7a0[_0x77fa('0x71')](_0x53c956)&&(_0x53c956[_0x77fa('0xcc')]||_0x299b18[_0x77fa('0x12')]?_0xfb8050&&_0xfb8050[_0x77fa('0x3f')]==_0x53c956||(_0xfb8050=_0x53c956,_0x3d83e4(_0x92dc8c[_0x77fa('0xa2')]),_0x6bace5=!0x0):_0x4921b6=_0x4921b6||_0x92dc8c['previousPosition']));}function _0x3d83e4(_0x9bf20f){const _0x4745e5=_0x145386[_0x77fa('0x41')]['toViewPosition'](_0x9bf20f),_0xf03391=_0x145386[_0x77fa('0x9b')]['createUIElement']('span',{'class':_0x77fa('0x72')+_0x572e8c});_0x145386['writer']['insert'](_0x4745e5,_0xf03391),_0x145386[_0x77fa('0x41')][_0x77fa('0xf6')](_0xf03391,_0x395023[_0x77fa('0xd6')]);}_0x9fe205||_0x6bace5||!_0x4921b6||_0x3d83e4(_0x4921b6);};}export class RestoreRevisionCommand extends _0x2dba10{constructor(_0xce6dae){super(_0xce6dae);const _0x1cdd3d=_0xce6dae[_0x77fa('0xee')][_0x77fa('0x28')](d);this[_0x77fa('0x87')]=!0x1,this[_0x77fa('0x15')](_0x1cdd3d,_0x77fa('0x9d'),()=>this[_0x77fa('0x110')]()),this[_0x77fa('0x15')](_0x1cdd3d,_0x77fa('0x19'),()=>this[_0x77fa('0x110')]());}[_0x77fa('0x63')](){const _0x2e0e14=this[_0x77fa('0x78')],_0x1523b2=_0x2e0e14[_0x77fa('0xee')][_0x77fa('0x28')](d),_0x26adec=_0x1523b2['isReady']?_0x1523b2[_0x77fa('0x55')][_0x77fa('0x50')]:null;_0x2e0e14[_0x77fa('0xd1')]['get']('revisionHistory')[_0x77fa('0x2f')](_0x26adec);}[_0x77fa('0x110')](){const {isReady:_0x31f1fd,isEnabled:_0x9522cb}=this[_0x77fa('0x78')][_0x77fa('0xee')][_0x77fa('0x28')](d);this['isEnabled']=_0x31f1fd&&_0x9522cb;}}export class ShowChangeCommand extends _0x2dba10{constructor(_0x3b0737,{direction:_0x1895d8}){super(_0x3b0737);const _0x5e7e77=_0x3b0737[_0x77fa('0xee')]['get'](d);this[_0x77fa('0x87')]=!0x1,this['_step']=_0x77fa('0xa5')===_0x1895d8?0x1:-0x1,this[_0x77fa('0x15')](_0x5e7e77,_0x77fa('0x9d'),()=>this[_0x77fa('0x110')]()),this[_0x77fa('0x15')](_0x5e7e77,_0x77fa('0x19'),()=>this[_0x77fa('0x110')]()),this[_0x77fa('0x15')](_0x5e7e77,'change:activeChange',()=>this[_0x77fa('0x110')]());}[_0x77fa('0x63')](){const _0x3a3659=this[_0x77fa('0x78')],_0x3214e4=_0x3a3659[_0x77fa('0xee')][_0x77fa('0x28')](d),{isNavigationMode:_0x128c9a,currentChangeNumber:_0x10ae0e}=_0x3214e4;let _0x570433;if(_0x3214e4[_0x77fa('0x25')]=_0x128c9a?_0x3214e4[_0x77fa('0x55')][_0x77fa('0x1f')][_0x77fa('0x28')](_0x10ae0e+this[_0x77fa('0x8b')]):_0x3214e4[_0x77fa('0x55')][_0x77fa('0x1f')]['first'],_0x3214e4[_0x77fa('0x25')][_0x77fa('0xe3')]['isOnRoot'])_0x570433=_0x3a3659[_0x77fa('0xb')][_0x77fa('0x1')]['getDomRoot'](_0x3214e4[_0x77fa('0x25')][_0x77fa('0xec')]);else{const _0x5a9f22=_0x3a3659[_0x77fa('0xf5')][_0x77fa('0x83')][_0x77fa('0x28')](_0x77fa('0xa8')+_0x3214e4[_0x77fa('0x25')]['id']);_0x570433=_0x443d60(_0x3a3659[_0x77fa('0xb')],_0x5a9f22);}_0xa130cd({'target':_0x570433,'viewportOffset':0x28});}[_0x77fa('0x110')](){const {isNavigationMode:_0x56f4a,currentChangeNumber:_0x27758c,numberOfChanges:_0x19ec24,isReady:_0x33414b,isEnabled:_0x22e197}=this[_0x77fa('0x78')][_0x77fa('0xee')][_0x77fa('0x28')](d);this['isEnabled']=!!(_0x22e197&&_0x33414b&&_0x19ec24)&&(!_0x56f4a||(0x1===this[_0x77fa('0x8b')]?_0x27758c<_0x19ec24-0x1:_0x27758c>0x0));}}
|
|
23
|
+
const _0x274e=['deletions','showStack','toViewPosition','restoreRevisionCallback','parent','consume','activeView','from','-new','change:isEnabled','editor','loadRevisionData','_sortAndFilterDiffChanges','RevisionViewer','editing','addMarker:revision','vid_end','abs','all','return','_getViewForChange','requires','_refreshStartEndIndex','_processTape','find','changeId','destroy','data','isInline','nodeAfter','maxOffset','setAttribute','nextPosition','isReady','distance','isAtEnd','isIncorrect','vid_start','sort','upcast','isObject','domConverter','highest','_removeRevisionMarkers','splice','repository','toViewRange','getRoot','length','ck-revision-history-root-add','hasAttribute','selection','editingDowncast','isEqual','isContent','left','activeChange','addClass','unbindElementFromMarkerName','element','consumable','mapViewToDom','addMarker:revision-suggestion:insertion','_getChangeFromId','attachChange','conversion','showNextChange','RevisionsRepository','_markInsertions','getRevisionData','modelRange','markerNameToElements','ck-suggestion-marker','revision-suggestion','observeMarkers','refresh','suggestion','done','shift','mousedown','createPositionFromPath','startsWith','removeClass','_balloon','toData','currentChangeNumber','_revisions','map','has','ck-suggestion-marker--active','_changeView','updatePosition','ck-suggestion-marker-split','dataToMarker','numberOfChanges','markerToData','plugins','next','listenTo','isLimit','insert','_joinTapes','isNavigationMode','get','userId','createAttributeElement','isSuggestion','resolve','viewItem','isAfter','getChild','change','_getViewObj','item','delete','config','add','WidgetToolbarRepository','_markSuggestions','merge','for','view','side','_activeViewTarget','insertions','markerRange','getCustomProperty','ck-editor__editable__overlay','oldRevisionId','isRemoved','pairId','findIndex','isBlock','change:numberOfChanges','concat','affectsData','forceDisabled','ck-suggestion-marker-','change:activeView','mouseover','isBefore','string','name','isRemoveSuggestion','stop','comment','start','_removeMissingPairs','vid','document','type','toViewElement','_step','compare','mapper','authors','enableReadOnlyMode','flat','addRoot','diffData','nextSibling','children','markersStart','ck-revision-history-root-remove','wrap','_setConversion','writer','isAdded','_makeModelFromTape','addRevision','markers','revisionHistoryAttachChange','isEnabled','ck-revision-history-root-','_changeIdToChange','getRevisionRootsAttributes','deletion','getIndex','then','keys','getDomRoot','change:activeChange','isAttached','isCollapsed','bottom','revision-comment:','indexOf','init','level','low','getClientRects','endIndex','revision','getWalker','useFillerType','error','hasClass','model','attributes','domEvent','ck-revision-history-root--active','elementEnd','createUIElement','ck-suggestion-marker-merge','adapter','ck-suggestion-preview-marker-','removeMarker','_initInteractions','offsetSize','code','markerName','getAttribute','addHighlight','target','text','end','revisionHistoryLabel','forward','downcastDispatcher','getItems','set','showPreviousChange','_cleanUp','createRangeIn','includes','element:pre','rootName','push','startIndex','commands','addMarker:revision-suggestion:deletion','_setDistance','_findChangeIdFromDomTarget','_threeWayMerge','bind','_cleanMarkers','getRevision','isAddSuggestion','split','_getDiff','index','bindElementToMarker','addRevisionData','revision-suggestion:','unshift','data-change-id','span','isOnRoot','getRootNames','markersEnd','execute','_markMarkers','test','catch','locale','high','schema','clear','_makeTape','elementStart','_removeUnsupportedChanges','parse','attributesAfter','restoreRevision','dataDowncast','createPositionBefore','attribute:vid','values','reconvertMarker','filter','_appendChild','getAttributes','revision:','collaboration.channelId','_fixObsoleteTags','object','slice','right','remove','diff','enqueueChange','suggestion:','first','createRange','removeMarker:revision','revision-viewer','changes','previousPosition','_update','processor','revision-start','forEach','createRevision','detachRoot','uiElement','change:isReady','range','insertion','_markMismatchedRemovedTags','backward'];(function(_0x2ea8bd,_0x274e13){const _0x38d6be=function(_0x4fdd2f){while(--_0x4fdd2f){_0x2ea8bd['push'](_0x2ea8bd['shift']());}};_0x38d6be(++_0x274e13);}(_0x274e,0x70));const _0x38d6=function(_0x2ea8bd,_0x274e13){_0x2ea8bd=_0x2ea8bd-0x0;let _0x38d6be=_0x274e[_0x2ea8bd];return _0x38d6be;};import{Plugin as _0x21aad1,Command as _0x54dece}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x49236b}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x5b7b6d}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x138eb4,Element as _0xe8e4b0,Text as _0x56afd7,ViewDocumentFragment as _0x58b92d,ViewText as _0x21c16c,ViewElement as _0x2aa025,ViewContainerElement as _0x20e9f0,ViewAttributeElement as _0xa24bdd,ViewEmptyElement as _0x3465a4,ViewRawElement as _0x1374d2,ViewUIElement as _0x586148}from'ckeditor5/src/engine.js';import{Users as _0xaeb83d,getMarkerDomElement as _0x57de97}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x9942fd from'./ui/revisionviewer/changedetailsview.js';import _0x266224 from'./revisionsrepository.js';import _0x1006d4 from'./changeitem.js';import{default as _0x163332}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x427977}from'lodash-es';const tt={'c':_0x20e9f0,'a':_0xa24bdd,'e':_0x3465a4,'r':_0x1374d2,'u':_0x586148};export default class d extends _0x21aad1{static get['pluginName'](){return'RevisionViewer';}static get[_0x38d6('0xd1')](){return[_0xaeb83d,_0x5b7b6d,_0x266224];}constructor(_0x46bc6f){super(_0x46bc6f),this['repository']=this[_0x38d6('0xc6')]['plugins']['get'](_0x38d6('0xff')),this[_0x38d6('0x6c')](_0x38d6('0xf4'),null),this[_0x38d6('0x6c')]('activeView',null),this[_0x38d6('0xb')]=null,this[_0x38d6('0x6c')]('diff',null),this[_0x38d6('0x6c')](_0x38d6('0xdd'),!0x1),this[_0x38d6('0x6c')](_0x38d6('0x3c'),!0x0),this['on']('change:isEnabled',(_0x22d794,_0x2bbfa9,_0x539fa6)=>{this[_0x38d6('0xf4')]=null,this[_0x38d6('0xc2')]=null,this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x12b')](_0x383078=>{for(const _0x3b4fa6 of this['editor'][_0x38d6('0xca')]['view'][_0x38d6('0x25')]['roots'])_0x539fa6?_0x383078[_0x38d6('0x10e')](_0x38d6('0xf'),_0x3b4fa6):_0x383078[_0x38d6('0xf5')](_0x38d6('0xf'),_0x3b4fa6);});}),this[_0x38d6('0x7a')](_0x38d6('0x122'))['to'](this,_0x38d6('0xf4'),_0x137243=>null!==_0x137243),this['bind'](_0x38d6('0x111'))['to'](this,_0x38d6('0xdd'),this,_0x38d6('0xa7'),this,'activeChange',(_0x510aa4,_0x56fbf9,_0x485e37)=>_0x510aa4&&_0x485e37?_0x56fbf9['changes'][_0x38d6('0x41')](_0x485e37):0x0),this[_0x38d6('0x7a')](_0x38d6('0x11a'))['to'](this,'isReady',this,_0x38d6('0xa7'),(_0x287ca0,_0x55b2f6)=>_0x287ca0?_0x55b2f6['changes'][_0x38d6('0xec')]:0x0),this[_0x38d6('0x116')]=null,this[_0x38d6('0x3e')]=new Map(),this[_0x38d6('0x5c')]=null,this[_0x38d6('0x10f')]=this[_0x38d6('0xc6')][_0x38d6('0x11c')][_0x38d6('0x123')](_0x5b7b6d);}[_0x38d6('0x4b')](){const _0x4d708e=this[_0x38d6('0xc6')],_0x4c3967=new ShowChangeCommand(_0x4d708e,{'direction':_0x38d6('0xbb')}),_0x4626ed=new ShowChangeCommand(_0x4d708e,{'direction':_0x38d6('0x69')});(_0x4d708e[_0x38d6('0x75')][_0x38d6('0x4')](_0x38d6('0x6d'),_0x4c3967),_0x4d708e[_0x38d6('0x75')]['add'](_0x38d6('0xfe'),_0x4626ed),_0x4d708e[_0x38d6('0x75')][_0x38d6('0x4')](_0x38d6('0x97'),new RestoreRevisionCommand(_0x4d708e)),this['on'](_0x38d6('0x15'),()=>{_0x4c3967[_0x38d6('0x107')](),_0x4626ed['refresh']();}),this[_0x38d6('0x35')](),this['_initInteractions'](),_0x4d708e[_0x38d6('0x2c')](_0x38d6('0xad')),_0x4d708e[_0x38d6('0x11c')][_0x38d6('0x114')](_0x38d6('0x5')))&&_0x4d708e[_0x38d6('0x11c')][_0x38d6('0x123')](_0x38d6('0x5'))[_0x38d6('0x18')](_0x38d6('0xad'));}async[_0x38d6('0x101')](_0x1e42a9){await this['loadRevisionData'](_0x1e42a9);const _0x510a31={};for(const _0x244a21 in _0x1e42a9[_0x38d6('0x2f')]){if(_0x1e42a9[_0x38d6('0x2f')][_0x244a21]['attachChange']&&!_0x1e42a9[_0x38d6('0x2f')][_0x244a21][_0x38d6('0xfc')][_0x38d6('0x46')])continue;const _0x5bed2a=this[_0x38d6('0xe7')](JSON[_0x38d6('0x95')](_0x1e42a9[_0x38d6('0x2f')][_0x244a21]['insertions'])),_0x1f2343=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x25')],_0x2ef64a=new _0x58b92d(_0x1f2343,_0x5bed2a['map'](_0x28cbba=>this['_getViewObj'](_0x28cbba)));this[_0x38d6('0xc6')][_0x38d6('0xd7')][_0x38d6('0xb1')][_0x38d6('0x52')]('marked'),_0x510a31[_0x244a21]=this[_0x38d6('0xc6')][_0x38d6('0xd7')][_0x38d6('0xb1')][_0x38d6('0x110')](_0x2ef64a),this[_0x38d6('0xc6')][_0x38d6('0xd7')][_0x38d6('0xb1')][_0x38d6('0x52')]('default');}return _0x510a31;}async[_0x38d6('0x3f')](_0x9fad62){await this['loadRevisionData'](_0x9fad62);const _0x480d94={};for(const _0x3c01f7 in _0x9fad62[_0x38d6('0x2f')])_0x9fad62[_0x38d6('0x2f')][_0x3c01f7][_0x38d6('0xfc')]&&!_0x9fad62[_0x38d6('0x2f')][_0x3c01f7][_0x38d6('0xfc')]['isAttached']||(_0x480d94[_0x3c01f7]=_0x9fad62[_0x38d6('0x2f')][_0x3c01f7][_0x38d6('0x96')]||{});return _0x480d94;}[_0x38d6('0xe7')](_0x4a1cf0){return(_0x4a1cf0=_0x4a1cf0[_0x38d6('0x9d')](_0xb00f9=>!_0xb00f9['name']||_0x38d6('0xb2')!==_0xb00f9[_0x38d6('0x1e')]&&'revision-end'!==_0xb00f9[_0x38d6('0x1e')]))['forEach'](_0x456dba=>{_0x38d6('0x1d')!=typeof _0x456dba&&(_0x456dba[_0x38d6('0x31')]=this['_removeRevisionMarkers'](_0x456dba['children']),_0x456dba[_0x38d6('0x56')]=_0x456dba[_0x38d6('0x56')][_0x38d6('0x9d')](_0x5b27b4=>!_0x5b27b4[0x0]['startsWith']('data-revision-')));}),_0x4a1cf0;}async[_0x38d6('0x29')](_0x3e4344,_0x353a33,_0x18fc2f=!0x1){if(!this['isEnabled'])return;const _0x1223fa=this[_0x38d6('0xa7')],_0x28fa7d=this[_0x38d6('0xe9')],_0x2a4a7a=_0x38d6('0x1d')==typeof _0x3e4344?_0x28fa7d[_0x38d6('0x7c')](_0x3e4344):_0x3e4344,_0x2bb524=_0x38d6('0x1d')==typeof _0x353a33?_0x28fa7d[_0x38d6('0x7c')](_0x353a33):_0x353a33,_0x2859d9=_0x2a4a7a['id'],_0x3cda81=_0x2bb524?_0x2bb524['id']:null;if(!_0x18fc2f&&this[_0x38d6('0xa7')]&&this[_0x38d6('0xa7')]['newRevisionId']===_0x2859d9&&this[_0x38d6('0xa7')][_0x38d6('0x10')]===_0x3cda81)return Promise[_0x38d6('0x127')]();this[_0x38d6('0xdd')]=!0x1,this[_0x38d6('0xc2')]=null,this[_0x38d6('0xf4')]=null,this[_0x38d6('0xa7')]=new _0x163332(_0x2859d9,_0x3cda81);const _0x3265a8=this['_getRevisionsRange'](_0x2a4a7a,_0x2bb524,!0x0)[_0x38d6('0x113')](_0xc22796=>this[_0x38d6('0xc7')](_0xc22796));return _0x3265a8['push'](new Promise(_0x243903=>{setTimeout(_0x243903,0x14);})),Promise[_0x38d6('0xce')](_0x3265a8)['then'](()=>{if(!this['isEnabled'])return;this[_0x38d6('0x6e')]();const _0x3e1392=this['_getDiff'](_0x2859d9,_0x3cda81);for(const _0x54d8bf of _0x3e1392[_0x38d6('0xae')])this[_0x38d6('0x3e')][_0x38d6('0x6c')](_0x54d8bf['id'],_0x54d8bf);this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0xa8')]({'isUndoable':!0x1},_0x526676=>{for(const _0x186846 of this['editor'][_0x38d6('0x55')]['document']['getRootNames']())_0x526676[_0x38d6('0xb5')](_0x186846);for(const _0x3a8a08 of Object[_0x38d6('0x43')](_0x3e1392[_0x38d6('0x55')])){const _0x18a8af=_0x526676[_0x38d6('0x2e')](_0x3a8a08);for(const _0x1b63fb of Object[_0x38d6('0x43')](_0x3e1392[_0x38d6('0x56')][_0x3a8a08]))_0x526676['setAttribute'](_0x1b63fb,_0x3e1392[_0x38d6('0x56')][_0x3a8a08][_0x1b63fb],_0x18a8af);_0x526676[_0x38d6('0x120')](_0x3e1392['model'][_0x3a8a08],_0x18a8af,0x0);}}),this[_0x38d6('0xa7')]['_setChanges'](this[_0x38d6('0xc8')](_0x3e1392[_0x38d6('0xae')])),this['isReady']=!0x0;})[_0x38d6('0x8d')](_0x36e7f6=>{console[_0x38d6('0x53')](_0x36e7f6),this[_0x38d6('0x6e')](),_0x1223fa&&(this[_0x38d6('0xa7')]=_0x1223fa),this[_0x38d6('0xdd')]=!0x0;});}[_0x38d6('0x82')](_0x545ef4,_0x5bd979){const _0x27fc21=this[_0x38d6('0xe9')][_0x38d6('0xb4')](_0x545ef4);return _0x27fc21['on'](_0x38d6('0xb0'),(_0x45f9a8,_0x50089e,_0x27c7af)=>_0x5bd979(_0x50089e,_0x27c7af,_0x27fc21)),this[_0x38d6('0xe9')][_0x38d6('0x39')](_0x27fc21),_0x27fc21;}[_0x38d6('0xc7')](_0x57454){if(!_0x57454||_0x57454[_0x38d6('0x2f')])return Promise[_0x38d6('0x127')]();{const _0x45aced=this[_0x38d6('0xc6')][_0x38d6('0x3')][_0x38d6('0x123')](_0x38d6('0xa1'));return this[_0x38d6('0x5c')][_0x38d6('0x7c')]({'channelId':_0x45aced,'revisionId':_0x57454['id']})[_0x38d6('0x42')](_0x794697=>{_0x57454['_update']({'diffData':_0x794697[_0x38d6('0x2f')]},!0x0);});}}['_cleanUp'](){this[_0x38d6('0xf4')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x38d6('0x116')]['destroy'](),this[_0x38d6('0x116')]=null,this['_changeIdToChange'][_0x38d6('0x91')](),this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0xa8')]({'isUndoable':!0x1},_0x6cca75=>{for(const _0x333bf1 of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')][_0x38d6('0x88')]())_0x6cca75[_0x38d6('0xb5')](_0x333bf1);});}[_0x38d6('0xc8')](_0x3b8ce5){const _0x47a557=[],_0x38edc8=new Map();for(const _0x3ab14b of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')]['getRootNames']()){const _0x7a50b5=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x44')](_0x3ab14b);if(!_0x7a50b5)continue;const _0x5dcd46=_0x7a50b5[_0x38d6('0x4e')]()[_0x38d6('0x1')](0x0);_0x5dcd46&&(_0x47a557['push'](_0x3ab14b),_0x38edc8['set'](_0x3ab14b,_0x5dcd46));}return _0x47a557[_0x38d6('0xe2')]((_0x3fdfa7,_0x29473b)=>{const _0x226f69=_0x38edc8['get'](_0x3fdfa7),_0x11eae9=_0x38edc8[_0x38d6('0x123')](_0x29473b);return _0x226f69['y']-_0x11eae9['y']||_0x226f69['x']-_0x11eae9['x'];}),(_0x3b8ce5=_0x3b8ce5['filter'](_0x2a6bf4=>_0x47a557[_0x38d6('0x70')](_0x2a6bf4['rootName'])))[_0x38d6('0xe2')]((_0x21ee9f,_0x141442)=>_0x47a557[_0x38d6('0x4a')](_0x21ee9f[_0x38d6('0x72')])-_0x47a557[_0x38d6('0x4a')](_0x141442[_0x38d6('0x72')])),_0x3b8ce5;}['_makeTape'](_0x547b84){const _0x104e6e=Array[_0x38d6('0xc3')](_0x547b84[_0x38d6('0x3a')])[_0x38d6('0x9d')](([_0x594d35,_0x19e4f8])=>_0x594d35['startsWith'](_0x38d6('0xa0'))&&!_0x19e4f8[_0x38d6('0x47')]),_0x49a613=Array['from'](this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x6f')](_0x547b84)[_0x38d6('0x51')]({'singleCharacters':!0x0}));if(0x0!=_0x104e6e['length'])for(const _0x4a0c77 of _0x49a613){const [_0x510b1b,_0x51050c]=_0x104e6e[0x0],[,_0xac87e8,_0x156b3c]=_0x510b1b[_0x38d6('0x7e')](':');if(_0x51050c[_0x38d6('0x67')]['isEqual'](_0x4a0c77[_0x38d6('0xdc')])&&_0x104e6e[_0x38d6('0x10a')](),(_0x4a0c77[_0x38d6('0xaf')][_0x38d6('0xf1')](_0x51050c[_0x38d6('0x22')])||_0x4a0c77[_0x38d6('0xaf')][_0x38d6('0x129')](_0x51050c['start']))&&('insertion'==_0xac87e8?_0x4a0c77[_0x38d6('0x37')]={'userId':_0x156b3c}:'deletion'==_0xac87e8&&(_0x4a0c77[_0x38d6('0x11')]={'userId':_0x156b3c})),0x0==_0x104e6e[_0x38d6('0xec')])break;}return _0x49a613;}[_0x38d6('0xd2')](_0x56f713){const _0x3c8a2d=new Map();for(let _0x41f0f7=0x0;_0x41f0f7<_0x56f713[_0x38d6('0xec')];_0x41f0f7++)_0x38d6('0x66')===_0x56f713[_0x41f0f7][_0x38d6('0x26')]?(_0x56f713[_0x41f0f7][_0x38d6('0x1')][_0x38d6('0x74')]=_0x41f0f7,_0x56f713[_0x41f0f7]['item']['endIndex']=_0x41f0f7):(_0x38d6('0x93')===_0x56f713[_0x41f0f7][_0x38d6('0x26')]?_0x56f713[_0x41f0f7][_0x38d6('0x1')][_0x38d6('0x74')]=_0x41f0f7:_0x38d6('0x59')===_0x56f713[_0x41f0f7][_0x38d6('0x26')]&&(_0x56f713[_0x41f0f7]['item'][_0x38d6('0x4f')]=_0x41f0f7),_0x3c8a2d['set'](_0x56f713[_0x41f0f7]['id'],_0x41f0f7));for(const _0x11b33a of _0x3c8a2d[_0x38d6('0x9b')]())_0x38d6('0x93')===_0x56f713[_0x11b33a][_0x38d6('0x26')]?_0x56f713[_0x11b33a][_0x38d6('0x1')][_0x38d6('0x4f')]=_0x3c8a2d[_0x38d6('0x123')](_0x56f713[_0x11b33a]['pairId']):_0x38d6('0x59')===_0x56f713[_0x11b33a][_0x38d6('0x26')]&&(_0x56f713[_0x11b33a]['item']['startIndex']=_0x3c8a2d['get'](_0x56f713[_0x11b33a][_0x38d6('0x12')]));}['_processTape'](_0x10381a){for(let _0x4b2dfb=0x0;_0x4b2dfb<_0x10381a[_0x38d6('0xec')];_0x4b2dfb++){if(_0x38d6('0x93')===_0x10381a[_0x4b2dfb]['type'])_0x10381a[_0x4b2dfb]['item'][_0x38d6('0x74')]=_0x4b2dfb;else{if(_0x38d6('0x59')===_0x10381a[_0x4b2dfb][_0x38d6('0x26')]){_0x10381a[_0x4b2dfb]['item'][_0x38d6('0x4f')]=_0x4b2dfb;const _0x23aea5=_0x10381a[_0x4b2dfb]['item']['startIndex'];_0x10381a[_0x23aea5][_0x38d6('0x12')]=_0x10381a[_0x4b2dfb]['id'],_0x10381a[_0x4b2dfb][_0x38d6('0x12')]=_0x10381a[_0x23aea5]['id'];}else _0x10381a[_0x4b2dfb][_0x38d6('0x1')]['startIndex']=_0x4b2dfb,_0x10381a[_0x4b2dfb][_0x38d6('0x1')][_0x38d6('0x4f')]=_0x4b2dfb,_0x10381a[_0x4b2dfb][_0x38d6('0x12')]=null;}_0x10381a[_0x4b2dfb][_0x38d6('0x32')]||(_0x10381a[_0x4b2dfb][_0x38d6('0x32')]=[],_0x10381a[_0x4b2dfb][_0x38d6('0x89')]=[]);}}[_0x38d6('0x100')](_0x2c9a42,_0x490412){const _0x1852de=_0x2c9a42[_0x38d6('0x9d')](_0x14f0a4=>!_0x14f0a4[_0x38d6('0x37')]);for(let _0x1679b4=0x0;_0x1679b4<_0x490412[_0x38d6('0xec')];_0x1679b4++)_0x490412[_0x1679b4][_0x38d6('0x37')]&&(_0x1852de[_0x1679b4]['isAdded']=_0x490412[_0x1679b4]['isAdded']);}['_makeModelFromViewString'](_0x5c54c4){const _0x57188f=JSON[_0x38d6('0x95')](_0x5c54c4),_0x132607=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x25')],_0x453e3e=new _0x58b92d(_0x132607,_0x57188f['map'](_0xb8a15f=>this[_0x38d6('0x0')](_0xb8a15f)));return this[_0x38d6('0xc6')][_0x38d6('0xd7')]['toModel'](_0x453e3e);}['_getViewObj'](_0x344996){const _0x561149=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')]['document'];if(_0x38d6('0x1d')==typeof _0x344996)return new _0x21c16c(_0x561149,_0x344996);{const _0xf2220c=_0x344996[_0x38d6('0x31')]['map'](_0x1c3a11=>this[_0x38d6('0x0')](_0x1c3a11));return new(tt[_0x344996['type']]||_0x2aa025)(_0x561149,_0x344996['name'],_0x344996[_0x38d6('0x56')],_0xf2220c);}}[_0x38d6('0x7f')](_0x2cbcf3,_0x5b0f4a=null){const _0x59303f=this[_0x38d6('0xe9')][_0x38d6('0x7c')](_0x2cbcf3),_0x451763=_0x5b0f4a?this['repository'][_0x38d6('0x7c')](_0x5b0f4a):null,_0xc4a5b9=this['_getRevisionsRange'](_0x59303f,_0x451763),_0x2d6d60=_0xc4a5b9[_0xc4a5b9[_0x38d6('0xec')]-0x1],_0xed8e76=new Map(),_0x35cf36={'model':{},'attributes':{},'changes':[]},_0x470f46=new Set(),_0x17028b=new Map();for(let _0x4a1e0f=_0xc4a5b9['length']-0x1;_0x4a1e0f>=0x0;_0x4a1e0f--){const _0x2d3795=_0xc4a5b9[_0x4a1e0f];for(const _0x5a9fb5 of Object[_0x38d6('0x43')](_0x2d3795[_0x38d6('0x2f')]))if(_0x2d3795['diffData'][_0x5a9fb5][_0x38d6('0xfc')]){const _0x33edb4=_0x2d3795[_0x38d6('0x2f')][_0x5a9fb5][_0x38d6('0xfc')];_0x33edb4[_0x38d6('0x46')]?(_0x470f46['add'](_0x5a9fb5),_0x17028b['has'](_0x5a9fb5)&&_0x17028b['get'](_0x5a9fb5)[_0x38d6('0x124')]==_0x33edb4[_0x38d6('0x124')]?_0x17028b[_0x38d6('0x2')](_0x5a9fb5):_0x17028b[_0x38d6('0x6c')](_0x5a9fb5,_0x33edb4)):_0x17028b[_0x38d6('0x114')](_0x5a9fb5)?(_0x470f46[_0x38d6('0x2')](_0x5a9fb5),_0x17028b['delete'](_0x5a9fb5)):(_0x470f46[_0x38d6('0x4')](_0x5a9fb5),_0x17028b[_0x38d6('0x6c')](_0x5a9fb5,_0x33edb4));}else _0x470f46[_0x38d6('0x4')](_0x5a9fb5);}for(const _0x4b81d9 of _0x470f46){const _0x1a237c=_0x17028b[_0x38d6('0x114')](_0x4b81d9)&&!_0x17028b['get'](_0x4b81d9)[_0x38d6('0x46')];let _0xa9dda8=_0x1a237c?_0xc4a5b9[_0x38d6('0xec')]-0x1:0x0;const _0x1e3d5b=_0x1a237c?-0x1:0x1;for(;_0xc4a5b9[_0xa9dda8];){const _0xe83a05=_0xc4a5b9[_0xa9dda8];if(_0xe83a05['diffData'][_0x4b81d9]){const _0x52e5df=_0x1a237c?_0xe83a05[_0x38d6('0x2f')][_0x4b81d9]['attributesBefore']:_0xe83a05[_0x38d6('0x2f')][_0x4b81d9][_0x38d6('0x96')];_0x35cf36[_0x38d6('0x56')][_0x4b81d9]=_0x52e5df?_0x427977(_0x52e5df):{};break;}_0xa9dda8+=_0x1e3d5b;}}for(const _0x4e3b80 of _0xc4a5b9){_0x4e3b80[_0x38d6('0x55')]={};for(const _0x21fe56 of _0x4e3b80[_0x38d6('0x2b')])_0xed8e76[_0x38d6('0x6c')](_0x21fe56['id'],_0x21fe56);for(const _0xb678dd of _0x470f46){const _0x5a2c3a=_0x4e3b80[_0x38d6('0x2f')][_0xb678dd]?_0x4e3b80[_0x38d6('0x2f')][_0xb678dd][_0x38d6('0xc')]:'[]',_0x37f105=_0x4e3b80[_0x38d6('0x2f')][_0xb678dd]?_0x4e3b80[_0x38d6('0x2f')][_0xb678dd][_0x38d6('0xbc')]:'[]';_0x4e3b80[_0x38d6('0x55')][_0xb678dd]={'insertions':this['_makeModelFromViewString'](_0x5a2c3a),'deletions':this['_makeModelFromViewString'](_0x37f105)};}}for(const _0xa9c47d of _0x470f46){let _0x22ec12=null,_0x10aedf=0x0;const _0x3ac996=new Map(Array['from'](_0x59303f[_0x38d6('0x55')][_0xa9c47d][_0x38d6('0xc')][_0x38d6('0x3a')])[_0x38d6('0x9d')](([_0x34c474])=>!_0x34c474[_0x38d6('0x10d')](_0x38d6('0xa0'))));let _0x519089=0x0;for(const _0x427c5e of _0xc4a5b9){const _0x4b1886=this[_0x38d6('0x92')](_0x427c5e[_0x38d6('0x55')][_0xa9c47d]['insertions']);_0x427c5e==_0x59303f?(_0x22ec12=_0x4b1886,_0x10aedf=_0x22ec12[_0x38d6('0xec')],_0x22ec12[_0x38d6('0xb3')](_0x2bb7ed=>{_0x2bb7ed['id']=_0x519089++;}),this[_0x38d6('0xd3')](_0x22ec12)):this['_markInsertions'](_0x22ec12,_0x4b1886);const _0x42e63f=_0x22ec12[_0x38d6('0x9d')](_0x1e8240=>!_0x1e8240[_0x38d6('0x37')])[_0x38d6('0x113')](_0x5f4fd6=>_0x5f4fd6['id']);let _0x26db7c=0x0;const _0x75b508=this[_0x38d6('0x92')](_0x427c5e[_0x38d6('0x55')][_0xa9c47d][_0x38d6('0xbc')]);_0x75b508[_0x38d6('0xb3')](_0x3d33ff=>{_0x3d33ff[_0x38d6('0x11')]?_0x3d33ff['id']=_0x10aedf++:_0x3d33ff['id']=_0x42e63f[_0x26db7c++];}),this[_0x38d6('0xd3')](_0x75b508),this[_0x38d6('0x77')](_0x22ec12,_0x38d6('0x37')),this[_0x38d6('0x77')](_0x75b508,_0x38d6('0x11')),_0x427c5e==_0x59303f&&this[_0x38d6('0x8b')](_0x22ec12,_0x3ac996),_0x22ec12=this[_0x38d6('0x121')](_0x22ec12,_0x75b508),this['_refreshStartEndIndex'](_0x22ec12),this[_0x38d6('0x77')](_0x22ec12,_0x38d6('0x11'));}_0x22ec12=_0x22ec12[_0x38d6('0x9d')](_0x517906=>!(_0x517906[_0x38d6('0x37')]&&_0x517906['isRemoved']));const _0x3805c1=new Map(_0x2d6d60['model'][_0xa9c47d][_0x38d6('0xbc')][_0x38d6('0x3a')]),_0x231dfc=new Set(_0x3ac996[_0x38d6('0x43')]());for(const _0x509fc2 of _0x3805c1[_0x38d6('0x43')]())_0x231dfc[_0x38d6('0x2')](_0x509fc2);this[_0x38d6('0x6')](_0x22ec12,_0x231dfc),this[_0x38d6('0xa2')](_0x22ec12),_0x22ec12=this[_0x38d6('0x23')](_0x22ec12),_0x22ec12=this[_0x38d6('0xba')](_0x22ec12),_0x22ec12=this['_removeUnsupportedChanges'](_0x22ec12);const {root:_0x575b01,changes:_0x3f1f21}=this[_0x38d6('0x38')](_0x22ec12,_0xed8e76,_0xa9c47d);_0x35cf36[_0x38d6('0x55')][_0xa9c47d]=_0x575b01;const _0x49967c=_0x17028b[_0x38d6('0x123')](_0xa9c47d);if(_0x49967c){const _0x216068=_0xed8e76['get'](_0x49967c['userId']),_0x582bc3=new _0x1006d4({'author':_0x216068,'type':_0x49967c[_0x38d6('0x46')]?_0x38d6('0x4'):_0x38d6('0xa6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xa9c47d});_0x3f1f21[_0x38d6('0x84')](_0x582bc3),_0x35cf36[_0x38d6('0x56')][_0xa9c47d][_0x38d6('0x3b')]=_0x582bc3['id'];}_0x35cf36['changes']=_0x35cf36['changes'][_0x38d6('0x16')](_0x3f1f21);}return _0x35cf36;}[_0x38d6('0x8b')](_0x59ad97,_0x45ae01){for(let _0x504153=0x0;_0x504153<_0x59ad97[_0x38d6('0xec')];_0x504153++)for(const [_0x16ad83,_0x32f49d]of _0x45ae01)_0x32f49d[_0x38d6('0x22')][_0x38d6('0xf1')](_0x59ad97[_0x504153]['previousPosition'])&&_0x59ad97[_0x504153][_0x38d6('0x32')]['push'](_0x16ad83),_0x32f49d['end'][_0x38d6('0xf1')](_0x59ad97[_0x504153][_0x38d6('0xdc')])&&_0x59ad97[_0x504153][_0x38d6('0x89')][_0x38d6('0x73')](_0x16ad83);}['_joinTapes'](_0x561a66,_0x53fb94){let _0x2dccfc=[],_0x132217=0x0,_0x4daa7b=0x0;for(;_0x132217<_0x561a66[_0x38d6('0xec')]||_0x4daa7b<_0x53fb94[_0x38d6('0xec')];){const _0xcb73f5=_0x561a66[_0x132217]||{},_0x3f8cfb=_0x53fb94[_0x4daa7b]||{};if(_0xcb73f5['id']==_0x3f8cfb['id'])_0x132217++,_0x4daa7b++,_0x2dccfc['push'](_0xcb73f5);else{if(_0x3f8cfb[_0x38d6('0x11')]&&_0xcb73f5['isAdded']){const {commonTape:_0x10c2ba,iEnd:_0x2a3508,jEnd:_0xbfff78}=this[_0x38d6('0x79')](_0x561a66,_0x132217,_0x53fb94,_0x4daa7b);_0x2dccfc=_0x2dccfc[_0x38d6('0x16')](_0x10c2ba),_0x132217=_0x2a3508,_0x4daa7b=_0xbfff78;}else _0x3f8cfb[_0x38d6('0x11')]?(_0x4daa7b++,_0x2dccfc[_0x38d6('0x73')](_0x3f8cfb)):(_0x132217++,_0x2dccfc[_0x38d6('0x73')](_0xcb73f5));}}return _0x2dccfc;}[_0x38d6('0x6')](_0x2e92fd,_0x5b74a9){const _0x157d50=[];for(let _0x32afe2=0x0;_0x32afe2<_0x2e92fd[_0x38d6('0xec')];_0x32afe2++){for(let _0x5489de=0x0;_0x5489de<_0x2e92fd[_0x32afe2][_0x38d6('0x32')][_0x38d6('0xec')];_0x5489de++){const _0x3f4c74=_0x2e92fd[_0x32afe2][_0x38d6('0x32')][_0x5489de];if(!_0x5b74a9[_0x38d6('0x114')](_0x3f4c74))continue;const {group:_0x59395e,type:_0xf05394,authorId:_0x56f54}=_0x45b15e(_0x3f4c74);_0x38d6('0x105')!=_0x59395e||'insertion'!=_0xf05394&&_0x38d6('0x40')!=_0xf05394||(_0x157d50[_0x38d6('0x84')]({'type':_0xf05394,'name':_0x3f4c74,'userId':_0x56f54}),_0x2e92fd[_0x32afe2][_0x38d6('0x32')][_0x38d6('0xe8')](_0x5489de,0x1),_0x5489de--);}_0x5cc789(_0x2e92fd[_0x32afe2]);for(let _0x132c3a=0x0;_0x132c3a<_0x2e92fd[_0x32afe2][_0x38d6('0x89')][_0x38d6('0xec')];_0x132c3a++){const _0x20f1c2=_0x2e92fd[_0x32afe2]['markersEnd'][_0x132c3a];if(!_0x5b74a9['has'](_0x20f1c2))continue;const {group:_0x44ab32,type:_0xfc706d}=_0x45b15e(_0x20f1c2);if(_0x38d6('0x105')!=_0x44ab32||_0x38d6('0xb9')!=_0xfc706d&&'deletion'!=_0xfc706d)continue;_0x2e92fd[_0x32afe2][_0x38d6('0x89')][_0x38d6('0xe8')](_0x132c3a,0x1),_0x132c3a--;const _0x3c3ed8=_0x157d50[_0x38d6('0x13')](_0x194ecc=>_0x194ecc['name']==_0x20f1c2);_0x3c3ed8>-0x1&&_0x157d50[_0x38d6('0xe8')](_0x3c3ed8,0x1);}}function _0x45b15e(_0x1ed90a){const _0x1d0502=_0x1ed90a[_0x38d6('0x7e')](':');return{'group':_0x1d0502[0x0],'type':_0x1d0502[0x1],'subType':_0x1d0502[_0x38d6('0xec')]>=0x5?_0x1d0502[0x2]:null,'id':_0x1d0502[_0x38d6('0xec')]<0x5?_0x1d0502[0x2]:_0x1d0502[0x3],'authorId':_0x1d0502[_0x38d6('0xec')]<0x5?_0x1d0502[0x3]:_0x1d0502[0x4],'markerCount':0x6==_0x1d0502[_0x38d6('0xec')]?_0x1d0502[0x5]:null};}function _0x5cc789(_0x342fb5){for(let _0x196928=0x0;_0x196928<_0x157d50[_0x38d6('0xec')];_0x196928++){if(_0x342fb5[_0x38d6('0x37')]&&_0x38d6('0xb9')==_0x157d50[_0x196928][_0x38d6('0x26')])return _0x342fb5[_0x38d6('0x7d')]=_0x157d50[_0x196928],void delete _0x342fb5[_0x38d6('0x37')];if(!_0x342fb5[_0x38d6('0x37')]&&!_0x342fb5[_0x38d6('0x11')]&&_0x38d6('0x40')==_0x157d50[_0x196928]['type'])return void(_0x342fb5[_0x38d6('0x1f')]=_0x157d50[_0x196928]);}}}[_0x38d6('0x77')](_0x52fa28,_0x4131a1){let _0x2de451=0x0,_0x395068=!0x1;const _0x1f6dbe=new Map();for(const _0x3f4c2b of _0x52fa28)_0x3f4c2b[_0x4131a1]?_0x395068&&(_0x2de451++,_0x395068=!0x1):(_0x2de451++,_0x395068=!0x0),_0x1f6dbe[_0x38d6('0x6c')](_0x3f4c2b['id'],_0x2de451);for(let _0x2f6221=0x0;_0x2f6221<_0x52fa28['length'];_0x2f6221++){if('isRemoved'==_0x4131a1&&_0x52fa28[_0x2f6221][_0x38d6('0x37')]||_0x38d6('0x37')==_0x4131a1&&_0x52fa28[_0x2f6221][_0x38d6('0x11')])continue;if('text'==_0x52fa28[_0x2f6221][_0x38d6('0x26')]){_0x52fa28[_0x2f6221][_0x38d6('0xde')]=0x0;continue;}const _0x24ee3e=_0x1f6dbe[_0x38d6('0x123')](_0x52fa28[_0x2f6221][_0x38d6('0x12')]),_0x499b97=_0x1f6dbe['get'](_0x52fa28[_0x2f6221]['id']);_0x52fa28[_0x2f6221]['distance']=_0x24ee3e-_0x499b97;}}['_getRevisionsRange'](_0x3103c3,_0x52c1de,_0x2b9428=!0x1){const _0x2f723e=[];let _0x333b0c=this['repository'][_0x38d6('0x41')](_0x3103c3),_0x316ad2=this[_0x38d6('0xe9')]['getIndex'](_0x52c1de);for(-0x1==_0x316ad2&&(_0x316ad2=this[_0x38d6('0xe9')][_0x38d6('0x112')]['length'],_0x2b9428=!0x1);_0x333b0c<_0x316ad2;)_0x2f723e[_0x38d6('0x73')](this[_0x38d6('0xe9')][_0x38d6('0x7c')](_0x333b0c)),_0x333b0c++;return _0x2b9428&&_0x2f723e[_0x38d6('0x73')](this[_0x38d6('0xe9')]['getRevision'](_0x333b0c)),_0x2f723e;}[_0x38d6('0x79')](_0x490fb8,_0x498e0d,_0x344c41,_0x30cad6){const _0x58a146=this[_0x38d6('0xc6')][_0x38d6('0x55')]['schema'];let _0x218131=_0x498e0d;for(;_0x490fb8[_0x218131]&&_0x490fb8[_0x218131][_0x38d6('0x37')];)_0x218131++;let _0x113158=_0x30cad6;for(;_0x344c41[_0x113158]&&_0x344c41[_0x113158][_0x38d6('0x11')];)_0x113158++;_0x195dc5(_0x490fb8,_0x498e0d,_0x218131),_0x195dc5(_0x344c41,_0x30cad6,_0x113158);const _0x11ea9f=_0x344c41[_0x38d6('0xa4')](_0x30cad6,_0x113158)[_0x38d6('0x16')](_0x490fb8['slice'](_0x498e0d,_0x218131));return _0x11ea9f['sort']((_0x4cefd0,_0x55f0bf)=>_0x4cefd0['side']!=_0x55f0bf[_0x38d6('0xa')]?_0x4cefd0[_0x38d6('0xa')]-_0x55f0bf[_0x38d6('0xa')]:_0x4cefd0[_0x38d6('0x4c')]!=_0x55f0bf['level']?_0x4cefd0[_0x38d6('0x4c')]-_0x55f0bf[_0x38d6('0x4c')]:_0x4cefd0[_0x38d6('0xde')]!=_0x55f0bf[_0x38d6('0xde')]?_0x55f0bf['distance']-_0x4cefd0[_0x38d6('0xde')]:!!_0x4cefd0[_0x38d6('0x37')]!=!!_0x55f0bf[_0x38d6('0x37')]?-0x1==_0x4cefd0[_0x38d6('0xa')]||0x0==_0x4cefd0[_0x38d6('0xa')]?_0x4cefd0[_0x38d6('0x37')]?-0x1:0x1:_0x4cefd0[_0x38d6('0x37')]?0x1:-0x1:_0x4cefd0[_0x38d6('0x80')]-_0x55f0bf['index']),{'commonTape':_0x11ea9f,'iEnd':_0x218131,'jEnd':_0x113158};function _0x195dc5(_0x1b5283,_0x2e8b63,_0x15e744){let _0x5d9db9=-0x1,_0x363494=Number['POSITIVE_INFINITY'],_0x5bbfc3=!0x0;for(let _0xfb0201=_0x2e8b63;_0xfb0201<_0x15e744;_0xfb0201++)if(_0x58a146[_0x38d6('0xd8')](_0x1b5283[_0xfb0201][_0x38d6('0x1')])||(_0x5bbfc3=!0x1),_0x1b5283[_0xfb0201][_0x38d6('0x1')][_0x38d6('0x74')]<_0x2e8b63&&(_0x5d9db9=_0xfb0201),_0x1b5283[_0xfb0201][_0x38d6('0x1')]['endIndex']>=_0x15e744){_0x363494=_0xfb0201;break;}_0x5bbfc3&&(_0x5d9db9=_0x15e744-0x1);for(let _0x5407e3=_0x2e8b63;_0x5407e3<_0x15e744;_0x5407e3++)_0x1b5283[_0x5407e3][_0x38d6('0xa')]=_0x5407e3<=_0x5d9db9?-0x1:_0x5407e3<_0x363494?0x0:0x1,_0x1b5283[_0x5407e3][_0x38d6('0x80')]=_0x5407e3;let _0x3fcf64=0x0;for(let _0x1a5d87=_0x2e8b63;_0x1a5d87<=_0x5d9db9;_0x1a5d87++)0x0==_0x1b5283[_0x1a5d87][_0x38d6('0xde')]?_0x1b5283[_0x1a5d87][_0x38d6('0x4c')]=_0x3fcf64:(_0x3fcf64++,_0x1b5283[_0x1a5d87][_0x38d6('0x4c')]=_0x3fcf64,_0x3fcf64++);for(let _0x20ce72=_0x2e8b63;_0x20ce72<_0x15e744;_0x20ce72++)0x0==_0x1b5283[_0x20ce72][_0x38d6('0xa')]&&(_0x1b5283[_0x20ce72]['level']=_0x3fcf64);_0x3fcf64=0x0;for(let _0x284566=_0x15e744-0x1;_0x284566>=_0x363494;_0x284566--)0x0==_0x1b5283[_0x284566]['distance']?_0x1b5283[_0x284566]['level']=_0x3fcf64:(_0x3fcf64--,_0x1b5283[_0x284566][_0x38d6('0x4c')]=_0x3fcf64,_0x3fcf64--);}}[_0x38d6('0xa2')](_0xe43d32){const _0x585d4e=new Map(),_0x2ede09=this['editor']['model'][_0x38d6('0x90')];for(let _0x506971=0x1;_0x506971<_0xe43d32[_0x38d6('0xec')];_0x506971++){let _0x1957ea,_0x31d8a6,_0x43bd26;const _0x3eb691=_0xe43d32[_0x506971],_0x23207c=_0xe43d32[_0x506971-0x1];if('text'==_0x3eb691[_0x38d6('0x26')])continue;if(_0x3eb691[_0x38d6('0x26')]!=_0x23207c[_0x38d6('0x26')])continue;if(!_0x2ede09[_0x38d6('0x14')](_0x23207c[_0x38d6('0x1')])||_0x2ede09['isLimit'](_0x23207c[_0x38d6('0x1')]))continue;if(!_0x2ede09[_0x38d6('0x14')](_0x3eb691[_0x38d6('0x1')])||_0x2ede09[_0x38d6('0x11f')](_0x3eb691['item']))continue;if((_0xe43d32[_0x506971][_0x38d6('0x37')]||_0xe43d32[_0x506971][_0x38d6('0x7d')])&&_0xe43d32[_0x506971-0x1]['isRemoved'])_0x1957ea=_0xe43d32[_0x506971],_0x31d8a6=_0xe43d32[_0x506971-0x1],_0x43bd26=_0x506971-0x1;else{if(!_0xe43d32[_0x506971][_0x38d6('0x11')]||!_0xe43d32[_0x506971-0x1][_0x38d6('0x37')]&&!_0xe43d32[_0x506971-0x1][_0x38d6('0x7d')])continue;_0x1957ea=_0xe43d32[_0x506971-0x1],_0x31d8a6=_0xe43d32[_0x506971],_0x43bd26=_0x506971;}const _0x229b1c=_0x1957ea[_0x38d6('0x4c')]==_0x31d8a6[_0x38d6('0x4c')],_0x15692d=Math[_0x38d6('0xcd')](_0x1957ea[_0x38d6('0x4c')])<Math[_0x38d6('0xcd')](_0x31d8a6[_0x38d6('0x4c')])&&0x0==_0x31d8a6[_0x38d6('0xde')];(_0x229b1c||_0x15692d)&&(_0x585d4e[_0x38d6('0x6c')](_0x31d8a6['id'],_0x1957ea['id']),_0xe43d32[_0x38d6('0xe8')](_0x43bd26,0x1),_0x506971--,_0x1957ea[_0x38d6('0x37')]=!0x1);}for(let _0x1c7749=0x0;_0x1c7749<_0xe43d32['length'];_0x1c7749++)_0x585d4e[_0x38d6('0x114')](_0xe43d32[_0x1c7749]['pairId'])&&(_0xe43d32[_0x1c7749][_0x38d6('0x12')]=_0x585d4e['get'](_0xe43d32[_0x1c7749][_0x38d6('0x12')]));}[_0x38d6('0x23')](_0x5ed5a8){const _0x5ab91e=new Set(_0x5ed5a8[_0x38d6('0x113')](_0x4b98ce=>_0x4b98ce['id']));for(let _0x4cf114=0x0;_0x4cf114<_0x5ed5a8[_0x38d6('0xec')];_0x4cf114++)_0x5ab91e[_0x38d6('0x114')](_0x5ed5a8[_0x4cf114][_0x38d6('0x12')])||0x0==_0x5ed5a8[_0x4cf114][_0x38d6('0xde')]||(_0x5ed5a8[_0x4cf114]['isIncorrect']=!0x0);return _0x5ed5a8['filter'](_0x559575=>!_0x559575[_0x38d6('0xe0')]);}['_markMismatchedRemovedTags'](_0x217abc){const _0x38febd=new Set();for(let _0x512ba3=0x0;_0x512ba3<_0x217abc[_0x38d6('0xec')];_0x512ba3++){if(_0x38febd[_0x38d6('0x114')](_0x217abc[_0x512ba3]['id'])&&_0x217abc[_0x512ba3]['isRemoved']&&(_0x217abc[_0x512ba3][_0x38d6('0xe0')]=!0x0),_0x217abc[_0x512ba3][_0x38d6('0xe0')])continue;if(0x0==_0x217abc[_0x512ba3][_0x38d6('0xde')])continue;if('elementStart'!=_0x217abc[_0x512ba3][_0x38d6('0x26')])continue;if(null==_0x217abc[_0x512ba3][_0x38d6('0x12')])continue;let _0x5a8602=_0x512ba3+0x1,_0x2b63ad=0x0;for(;_0x217abc[_0x5a8602]['id']!=_0x217abc[_0x512ba3][_0x38d6('0x12')];)'elementStart'==_0x217abc[_0x5a8602][_0x38d6('0x26')]?_0x2b63ad++:_0x38d6('0x59')==_0x217abc[_0x5a8602][_0x38d6('0x26')]&&_0x2b63ad--,_0x5a8602++;if(0x0!=_0x2b63ad){if(_0x217abc[_0x512ba3][_0x38d6('0x11')])_0x217abc[_0x512ba3][_0x38d6('0xe0')]=!0x0;else for(;_0x5a8602!=_0x512ba3;)_0x217abc[_0x5a8602][_0x38d6('0x11')]&&0x0!=_0x217abc[_0x5a8602][_0x38d6('0xde')]&&(_0x217abc[_0x5a8602][_0x38d6('0xe0')]=!0x0,_0x38febd['add'](_0x217abc[_0x5a8602][_0x38d6('0x12')])),_0x5a8602--;}}return _0x217abc[_0x38d6('0x9d')](_0xeb95e8=>!_0xeb95e8[_0x38d6('0xe0')]);}[_0x38d6('0x94')](_0x5ae6c1){const _0x33ae9f=this['editor'][_0x38d6('0x55')]['schema'];for(let _0x49a806=0x0;_0x49a806<_0x5ae6c1[_0x38d6('0xec')];_0x49a806++){if(!(_0x5ae6c1[_0x49a806][_0x38d6('0x37')]||_0x5ae6c1[_0x49a806][_0x38d6('0x7d')]||_0x5ae6c1[_0x49a806][_0x38d6('0x11')]||_0x5ae6c1[_0x49a806]['isRemoveSuggestion']))continue;if(0x0==_0x5ae6c1[_0x49a806]['distance'])continue;const _0x4e3c27=_0x5ae6c1[_0x49a806][_0x38d6('0x1')];_0x33ae9f[_0x38d6('0x14')](_0x4e3c27)||_0x33ae9f[_0x38d6('0x11f')](_0x4e3c27)||(_0x5ae6c1[_0x49a806][_0x38d6('0x37')]&&delete _0x5ae6c1[_0x49a806][_0x38d6('0x37')],_0x5ae6c1[_0x49a806]['isAddSuggestion']&&delete _0x5ae6c1[_0x49a806][_0x38d6('0x7d')],_0x5ae6c1[_0x49a806][_0x38d6('0x1f')]&&delete _0x5ae6c1[_0x49a806]['isRemoveSuggestion'],_0x5ae6c1[_0x49a806][_0x38d6('0x11')]&&(_0x5ae6c1[_0x49a806][_0x38d6('0xe0')]=!0x0));}return _0x5ae6c1['filter'](_0x128fe3=>!_0x128fe3[_0x38d6('0xe0')]);}[_0x38d6('0x38')](_0x4b9e4b,_0x222cc9,_0xcb0a83){const _0x11475c=new _0x138eb4(),_0x291790=[],_0x592244=new Map(),_0x199c7a=this[_0x38d6('0xc6')]['model'],_0x2bd1cd=_0x199c7a[_0x38d6('0x90')],_0x4aa793=[_0x11475c],_0x1af3e1={},_0x377c27={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1ca0fb=null;const _0x391ddb=[0x0];for(let _0x2e5989=0x0;_0x2e5989<_0x4b9e4b[_0x38d6('0xec')];_0x2e5989++){let _0x52bb7a,_0x4d4009;if(_0x38d6('0x93')===_0x4b9e4b[_0x2e5989][_0x38d6('0x26')]){_0x52bb7a=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb);const _0x2af1cf=new _0xe8e4b0(_0x4b9e4b[_0x2e5989][_0x38d6('0x1')][_0x38d6('0x1e')],_0x4b9e4b[_0x2e5989]['item'][_0x38d6('0x9f')]());_0x4aa793[0x0]['_appendChild'](_0x2af1cf),_0x391ddb[_0x38d6('0x73')](0x0),_0x4aa793[_0x38d6('0x84')](_0x2af1cf),_0x4d4009=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x1ca0fb=null;}else{if('elementEnd'===_0x4b9e4b[_0x2e5989]['type'])_0x4aa793[_0x38d6('0x10a')](),_0x52bb7a=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x391ddb['pop'](),_0x391ddb[_0x391ddb[_0x38d6('0xec')]-0x1]++,_0x4d4009=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x1ca0fb=null;else{if(_0x52bb7a=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x1ca0fb&&_0x579b89(_0x1ca0fb,_0x4b9e4b[_0x2e5989][_0x38d6('0x1')]))_0x1ca0fb['_data']+=_0x4b9e4b[_0x2e5989][_0x38d6('0x1')]['data'];else{const _0x608c77=new _0x56afd7(_0x4b9e4b[_0x2e5989]['item'][_0x38d6('0xd7')],_0x4b9e4b[_0x2e5989][_0x38d6('0x1')]['getAttributes']());_0x4aa793[0x0][_0x38d6('0x9e')](_0x608c77),_0x1ca0fb=_0x608c77;}_0x391ddb[_0x391ddb[_0x38d6('0xec')]-0x1]+=_0x4b9e4b[_0x2e5989][_0x38d6('0x1')][_0x38d6('0x60')],_0x4d4009=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb);}}for(const _0x185a3a of _0x4b9e4b[_0x2e5989][_0x38d6('0x32')])_0x592244[_0x38d6('0x6c')](_0x185a3a,{'start':_0x52bb7a,'end':null});_0x13d833(_0x38d6('0x1f'),_0x2e5989,_0x52bb7a,_0x4d4009),_0x13d833(_0x38d6('0x7d'),_0x2e5989,_0x52bb7a,_0x4d4009),_0x13d833(_0x38d6('0x11'),_0x2e5989,_0x52bb7a,_0x4d4009),_0x13d833(_0x38d6('0x37'),_0x2e5989,_0x52bb7a,_0x4d4009);for(const _0x2a1b11 of _0x4b9e4b[_0x2e5989][_0x38d6('0x89')]){_0x592244[_0x38d6('0x123')](_0x2a1b11)[_0x38d6('0x67')]=_0x4d4009;}}for(const [_0x133151,_0x2c8426]of _0x592244){const _0x26e7d7=this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0xab')](_0x2c8426[_0x38d6('0x22')],_0x2c8426['end']);_0x11475c[_0x38d6('0x3a')]['set'](_0x133151,_0x26e7d7);}return _0x291790['sort']((_0x294d4b,_0x43836e)=>{const _0x45aa5c=_0x11475c['markers']['get'](_0x38d6('0xa0')+_0x294d4b['id']),_0xb51bd2=_0x11475c[_0x38d6('0x3a')][_0x38d6('0x123')]('revision:'+_0x43836e['id']);return _0x45aa5c[_0x38d6('0x22')][_0x38d6('0x1c')](_0xb51bd2[_0x38d6('0x22')])?-0x1:_0x45aa5c['start']['isAfter'](_0xb51bd2[_0x38d6('0x22')])?0x1:_0x45aa5c[_0x38d6('0x67')][_0x38d6('0x1c')](_0xb51bd2[_0x38d6('0x67')])?-0x1:_0x45aa5c['end']['isAfter'](_0xb51bd2[_0x38d6('0x67')])?0x1:_0x38d6('0x4')===_0x294d4b[_0x38d6('0x26')]?-0x1:0x1;}),{'root':_0x11475c,'changes':_0x291790};function _0x13d833(_0x2a3277,_0x37fda0,_0x3e4c5f,_0x295eeb){const _0x558100=!!_0x4b9e4b[_0x37fda0][_0x2a3277],_0xef78a0=_0x558100?_0x4b9e4b[_0x37fda0][_0x2a3277][_0x38d6('0x124')]:null,_0xc7a8b1=_0x37fda0===_0x4b9e4b[_0x38d6('0xec')]-0x1,_0xa6bd77=_0x377c27[_0x2a3277][0x0],_0x5592af=_0x2bd1cd[_0x38d6('0xe4')](_0x4b9e4b[_0x37fda0][_0x38d6('0x1')]);!_0x1af3e1[_0x2a3277]&&_0x558100?_0x1af3e1[_0x2a3277]={'start':_0x3e4c5f,'tapeItem':_0x4b9e4b[_0x37fda0],'userId':_0xef78a0,'type':_0x2a3277}:_0x1af3e1[_0x2a3277]&&!_0x558100?(_0x1af3e1[_0x2a3277][_0x38d6('0x67')]=_0x3e4c5f,_0x6c5c39(_0x1af3e1[_0x2a3277]),_0x1af3e1[_0x2a3277]=null):_0x1af3e1[_0x2a3277]&&_0x558100&&_0x1af3e1[_0x2a3277]['userId']!==_0xef78a0&&(_0x1af3e1[_0x2a3277][_0x38d6('0x67')]=_0x3e4c5f,_0xa6bd77&&_0xa6bd77[_0x38d6('0x124')]===_0x1af3e1[_0x2a3277]['userId']||_0x6c5c39(_0x1af3e1[_0x2a3277]),_0x1af3e1[_0x2a3277]={'start':_0x3e4c5f,'tapeItem':_0x4b9e4b[_0x37fda0],'userId':_0xef78a0,'type':_0x2a3277}),_0x1af3e1[_0x2a3277]&&_0x5592af&&(_0x38d6('0x93')!==_0x4b9e4b[_0x37fda0][_0x38d6('0x26')]||_0xa6bd77&&_0xa6bd77['userId']===_0xef78a0||_0x377c27[_0x2a3277][_0x38d6('0x84')]({'userId':_0xef78a0,'object':_0x4b9e4b[_0x37fda0]['item'],'change':_0x1af3e1[_0x2a3277]}),_0x38d6('0x59')===_0x4b9e4b[_0x37fda0][_0x38d6('0x26')]&&_0xa6bd77&&_0xa6bd77[_0x38d6('0xa3')]===_0x4b9e4b[_0x37fda0][_0x38d6('0x1')]&&(_0x377c27[_0x2a3277][_0x38d6('0x10a')](),_0x1af3e1[_0x2a3277]=_0xa6bd77[_0x38d6('0x12b')])),_0x1af3e1[_0x2a3277]&&_0xc7a8b1&&(_0x1af3e1[_0x2a3277]['end']=_0x295eeb,_0x6c5c39(_0x1af3e1[_0x2a3277]),_0x1af3e1[_0x2a3277]=null);}function _0x6c5c39({start:_0xb0df54,end:_0x482603,tapeItem:_0x5a49bb,userId:_0x5c3dd8,type:_0x3c4c55}){const _0x547172=_0x5a49bb[_0x38d6('0x1')],_0x30e169=_0x199c7a[_0x38d6('0x90')]['isBlock'](_0x547172)&&!_0x199c7a[_0x38d6('0x90')]['isLimit'](_0x547172),_0x278d89=_0xb0df54['nodeAfter']==_0x482603['parent']&&_0x482603['isAtStart'];if(_0x30e169&&_0x278d89)return;const _0x381289=_0x199c7a['createRange'](_0xb0df54,_0x482603),_0x2cf9c4=_0x222cc9[_0x38d6('0x123')](_0x5c3dd8),_0x388227=new _0x1006d4({'author':_0x2cf9c4,'type':_0x38d6('0x37')==_0x3c4c55||_0x38d6('0x7d')==_0x3c4c55?'add':_0x38d6('0xa6'),'data':{'isSuggestion':_0x38d6('0x7d')==_0x3c4c55||_0x38d6('0x1f')==_0x3c4c55},'createdAt':new Date(),'rootName':_0xcb0a83});_0x291790[_0x38d6('0x73')](_0x388227),_0x11475c[_0x38d6('0x3a')]['set'](_0x38d6('0xa0')+_0x388227['id'],_0x381289);}function _0x579b89(_0x4ff532,_0x5cffe6){const _0x5c440c=_0x4ff532[_0x38d6('0x9f')](),_0x181a55=_0x5cffe6[_0x38d6('0x9f')]();for(const _0x3f5bdc of _0x5c440c){if(_0x3f5bdc[0x1]!==_0x5cffe6[_0x38d6('0x63')](_0x3f5bdc[0x0]))return!0x1;_0x181a55[_0x38d6('0x11d')]();}return _0x181a55['next']()[_0x38d6('0x109')];}}['_setConversion'](){this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0xe3'))['dataToMarker']({'view':'revision'}),this['editor'][_0x38d6('0xfd')][_0x38d6('0x8')]('editingDowncast')['markerToHighlight']({'model':_0x38d6('0x50'),'view':_0x38aebf=>{const _0x540a42=_0x38aebf[_0x38d6('0x62')]['split'](':')[0x1],_0x1ec958=this[_0x38d6('0xfb')](_0x540a42);if(!_0x1ec958)return null;const _0x442123='add'==_0x1ec958['type']?_0x38d6('0xb9'):'deletion',_0x3956bd=[_0x38d6('0x104'),'ck-suggestion-marker-'+_0x442123];return _0x1ec958[_0x38d6('0xd7')][_0x38d6('0x126')]&&_0x3956bd[_0x38d6('0x73')](_0x38d6('0x19')+_0x442123+'-new'),this[_0x38d6('0xf4')]==_0x1ec958&&_0x3956bd[_0x38d6('0x73')]('ck-suggestion-marker--active'),{'classes':_0x3956bd,'attributes':{'data-change-id':_0x540a42}};}}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')]('upcast')[_0x38d6('0x4')](_0x37ee22=>{_0x37ee22['on'](_0x38d6('0x71'),(_0x2e3c3a,_0x56a25f,_0x205a86)=>{const _0xea07d3=_0x56a25f['viewItem'][_0x38d6('0x12a')](0x0);if(!_0xea07d3||!_0xea07d3['is'](_0x38d6('0xf7'),_0x38d6('0x61')))return;if(!_0x205a86[_0x38d6('0xf8')][_0x38d6('0xc1')](_0xea07d3,{'attributes':[_0x38d6('0xe1'),_0x38d6('0xcc')]}))return;const _0x39cad9=_0x56a25f['modelRange']['start']['nodeAfter'];_0x205a86[_0x38d6('0x36')]['setAttribute'](_0x38d6('0xe1'),_0xea07d3['getAttribute'](_0x38d6('0xe1')),_0x39cad9),_0x205a86[_0x38d6('0x36')][_0x38d6('0xdb')](_0x38d6('0xcc'),_0xea07d3[_0x38d6('0x63')](_0x38d6('0xcc')),_0x39cad9);},{'priority':_0x38d6('0x4d')});}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')]('upcast')[_0x38d6('0x4')](_0x5cf491=>{_0x5cf491['on'](_0x38d6('0xf7'),(_0x42f8ba,_0x4d67c7,_0x1284d6)=>{if(!_0x1284d6[_0x38d6('0xf8')][_0x38d6('0xc1')](_0x4d67c7['viewItem'],{'attributes':[_0x38d6('0xe1'),_0x38d6('0xcc')]}))return;if(_0x4d67c7[_0x38d6('0x102')][_0x38d6('0x47')])return;const _0x536e62=_0x4d67c7[_0x38d6('0x102')][_0x38d6('0x22')][_0x38d6('0xd9')];_0x536e62[_0x38d6('0xee')]('vid_start')||_0x536e62[_0x38d6('0xee')](_0x38d6('0x24'))||(_0x1284d6[_0x38d6('0x36')][_0x38d6('0xdb')](_0x38d6('0xe1'),_0x4d67c7[_0x38d6('0x128')][_0x38d6('0x63')](_0x38d6('0xe1')),_0x536e62),_0x1284d6[_0x38d6('0x36')]['setAttribute'](_0x38d6('0xcc'),_0x4d67c7['viewItem'][_0x38d6('0x63')](_0x38d6('0xcc')),_0x536e62));},{'priority':_0x38d6('0x4d')});}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0xe3'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xf5f2c4=>_0xf5f2c4[_0x38d6('0x63')]('vid')}}),this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x90')]['on']('checkAttribute',(_0x5b3eee,[,_0x435a58])=>{[_0x38d6('0xe1'),_0x38d6('0xcc'),_0x38d6('0x24')][_0x38d6('0x70')](_0x435a58)&&(_0x5b3eee[_0x38d6('0xcf')]=!0x0,_0x5b3eee[_0x38d6('0x20')]());},{'priority':_0x38d6('0xe6')}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0x98'))[_0x38d6('0x4')](_0x5719df=>{_0x5719df['on'](_0x38d6('0x9a'),(_0x1fdb9d,_0x1f03ce,_0x542326)=>{if('\x20'!=_0x1f03ce[_0x38d6('0x1')]['data']||_0x1f03ce[_0x38d6('0x1')]['parent'][_0x38d6('0xda')]>0x1)return;if(!_0x542326[_0x38d6('0xf8')][_0x38d6('0xc1')](_0x1f03ce[_0x38d6('0x1')],_0x1fdb9d[_0x38d6('0x1e')]))return;const _0x4ab97a=_0x542326[_0x38d6('0x36')],_0x469c80=_0x542326[_0x38d6('0x2a')][_0x38d6('0xea')](_0x1f03ce[_0x38d6('0xb8')]);_0x4ab97a[_0x38d6('0x34')](_0x469c80,_0x4ab97a[_0x38d6('0x125')](_0x38d6('0x86')));});}),this['editor'][_0x38d6('0xfd')]['for'](_0x38d6('0x98'))[_0x38d6('0x11b')]({'model':_0x38d6('0x50')}),this['editor']['editing'][_0x38d6('0x6a')]['on'](_0x38d6('0xcb'),function(_0x26b20d){const _0x53ccee=_0x26b20d[_0x38d6('0x11c')][_0x38d6('0x123')](_0x38d6('0xc9'));return(_0x1282d1,_0x43d5fb,_0x2a632e)=>{const _0x525d45=_0x43d5fb[_0x38d6('0x62')][_0x38d6('0x7e')](':')[0x1],_0x2edd82=_0x53ccee[_0x38d6('0xfb')](_0x525d45);if(!_0x2edd82)return null;const _0x533e4c=_0x38d6('0x4')==_0x2edd82[_0x38d6('0x26')]?_0x38d6('0x7e'):_0x38d6('0x7');if(!_0x2a632e[_0x38d6('0xf8')][_0x38d6('0x8c')](_0x43d5fb[_0x38d6('0xd')],_0x1282d1[_0x38d6('0x1e')]))return;const _0x5b4b61=_0x43d5fb[_0x38d6('0xd')]['getWalker'](),_0x19f60b=_0x43d5fb[_0x38d6('0xd')][_0x38d6('0x22')],_0x19ec3f=_0x26b20d[_0x38d6('0x55')]['schema'];let _0x1265b0=null,_0x471de9=null,_0x5b4068=!0x1,_0x147946=!0x1;for(const _0x50aa69 of _0x5b4b61){const _0xe44f3b=_0x50aa69['item'];_0x5b4068=_0x5b4068||_0x19ec3f[_0x38d6('0xf2')](_0xe44f3b);const _0x38a098=_0x2a632e[_0x38d6('0x2a')][_0x38d6('0x27')](_0xe44f3b);if(_0x38a098&&_0x38a098[_0x38d6('0xe')](_0x38d6('0x64')))return;_0x38d6('0x59')==_0x50aa69[_0x38d6('0x26')]&&(_0x19ec3f[_0x38d6('0x14')](_0xe44f3b)&&!_0x19ec3f[_0x38d6('0x11f')](_0xe44f3b)&&(_0xe44f3b[_0x38d6('0x30')]||_0x19f60b[_0x38d6('0xdf')]?_0x1265b0&&_0x1265b0['parent']==_0xe44f3b||(_0x1265b0=_0xe44f3b,_0x795fae(_0x50aa69['previousPosition']),_0x147946=!0x0):_0x471de9=_0x471de9||_0x50aa69[_0x38d6('0xaf')]));}function _0x795fae(_0x16752c){const _0x498b4f=_0x2a632e['writer'][_0x38d6('0x5a')](_0x38d6('0x86'),{'class':_0x38d6('0x19')+_0x533e4c}),_0x4a71b2=_0x2a632e['mapper'][_0x38d6('0xbe')](_0x16752c);_0x2edd82[_0x38d6('0xd7')]['isSuggestion']&&_0x2a632e[_0x38d6('0x36')]['addClass'](_0x38d6('0x19')+_0x533e4c+_0x38d6('0xc4'),_0x498b4f),_0x53ccee[_0x38d6('0xf4')]==_0x2edd82&&_0x2a632e['writer'][_0x38d6('0xf5')](_0x38d6('0x115'),_0x498b4f),_0x2a632e[_0x38d6('0x36')][_0x38d6('0x120')](_0x4a71b2,_0x498b4f),_0x2a632e[_0x38d6('0x2a')]['bindElementToMarker'](_0x498b4f,_0x43d5fb[_0x38d6('0x62')]);}_0x5b4068||_0x147946||!_0x471de9||_0x795fae(_0x471de9);};}(this[_0x38d6('0xc6')]),{'priority':_0x38d6('0x8f')}),this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0xac'),(_0x3b33b0,_0xd1b889,_0x3132c0)=>{const _0x57470e=_0x3132c0['mapper'][_0x38d6('0x103')](_0xd1b889[_0x38d6('0x62')]);if(_0x57470e)for(const _0x49bed4 of _0x57470e)(_0x49bed4[_0x38d6('0x54')](_0x38d6('0x118'))||_0x49bed4['hasClass'](_0x38d6('0x5b')))&&(_0x3132c0[_0x38d6('0x2a')][_0x38d6('0xf6')](_0x49bed4,_0xd1b889[_0x38d6('0x62')]),_0x3132c0[_0x38d6('0x36')][_0x38d6('0xa6')](_0x49bed4));},{'priority':_0x38d6('0x8f')}),this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0xcb'),(_0x2cf62e,_0x4b33a7,_0x54f488)=>{const _0x28ea2f=_0x4b33a7[_0x38d6('0x62')][_0x38d6('0x7e')](':')[0x1],_0x211f31=this['_getChangeFromId'](_0x28ea2f);if(!_0x211f31)return null;const _0x594e5b=_0x38d6('0x4')==_0x211f31[_0x38d6('0x26')]?_0x38d6('0x7e'):_0x38d6('0x7');if(_0x54f488['consumable']['test'](_0x4b33a7[_0x38d6('0xd')],_0x2cf62e[_0x38d6('0x1e')]))for(const _0x51e0f1 of _0x4b33a7[_0x38d6('0xd')][_0x38d6('0x6b')]()){if(!_0x51e0f1['is'](_0x38d6('0xf7'),'softBreak'))continue;const _0x48a309=_0x54f488[_0x38d6('0x36')][_0x38d6('0x5a')](_0x38d6('0x86'),{'class':_0x38d6('0x19')+_0x594e5b}),_0x36ee64=_0x54f488[_0x38d6('0x2a')][_0x38d6('0xbe')](this['editor'][_0x38d6('0x55')][_0x38d6('0x99')](_0x51e0f1));_0x211f31['data']['isSuggestion']&&_0x54f488[_0x38d6('0x36')][_0x38d6('0xf5')](_0x38d6('0x19')+_0x594e5b+'-new',_0x48a309),this[_0x38d6('0xf4')]==_0x211f31&&_0x54f488[_0x38d6('0x36')]['addClass']('ck-suggestion-marker--active',_0x48a309),_0x54f488[_0x38d6('0x36')][_0x38d6('0x120')](_0x36ee64,_0x48a309),_0x54f488[_0x38d6('0x2a')][_0x38d6('0x81')](_0x48a309,_0x4b33a7['markerName']);}},{'priority':_0x38d6('0x8f')}),this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')]['on']('change',()=>{this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x12b')](_0x55f9f0=>{for(const _0x1644dd of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')][_0x38d6('0x88')]()){const _0x35c830=this[_0x38d6('0xc6')][_0x38d6('0x55')]['document'][_0x38d6('0xeb')](_0x1644dd),_0x4b6ffd=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x25')][_0x38d6('0xeb')](_0x1644dd);if(_0x4b6ffd){const _0x74cf2c=_0x35c830['getAttribute'](_0x38d6('0x3b'));if(_0x55f9f0['removeAttribute'](_0x38d6('0x85'),_0x4b6ffd),_0x55f9f0[_0x38d6('0x10e')](_0x38d6('0xed'),_0x4b6ffd),_0x55f9f0[_0x38d6('0x10e')](_0x38d6('0x33'),_0x4b6ffd),_0x55f9f0[_0x38d6('0x10e')](_0x38d6('0x58'),_0x4b6ffd),_0x74cf2c){const _0x10f4e5=this[_0x38d6('0xfb')](_0x74cf2c);if(!_0x10f4e5)return null;_0x55f9f0[_0x38d6('0xdb')](_0x38d6('0x85'),_0x74cf2c,_0x4b6ffd),_0x55f9f0[_0x38d6('0xf5')](_0x38d6('0x3d')+_0x10f4e5[_0x38d6('0x26')],_0x4b6ffd),this[_0x38d6('0xf4')]==_0x10f4e5&&_0x55f9f0[_0x38d6('0xf5')]('ck-revision-history-root--active',_0x4b6ffd);}}}});}),this[_0x38d6('0xc6')][_0x38d6('0xfd')]['for'](_0x38d6('0xe3'))[_0x38d6('0x119')]({'view':_0x38d6('0x21'),'model':_0x16fc8c=>_0x38d6('0x49')+_0x16fc8c,'converterPriority':_0x38d6('0xe6')}),this[_0x38d6('0xc6')][_0x38d6('0xfd')]['for'](_0x38d6('0xe3'))[_0x38d6('0x119')]({'view':_0x38d6('0x108'),'model':_0x355a61=>_0x38d6('0x83')+_0x355a61,'converterPriority':_0x38d6('0xe6')}),this['editor']['conversion'][_0x38d6('0x8')](_0x38d6('0x98'))[_0x38d6('0x11b')]({'model':_0x38d6('0x105'),'view':_0x43ac4e=>({'name':_0x38d6('0xa9')+_0x43ac4e,'group':_0x38d6('0x105')}),'converterPriority':_0x38d6('0xe6')}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0xf0'))['markerToHighlight']({'model':_0x38d6('0x105'),'view':_0x92f050=>{const _0x355f15=_0x92f050['markerName'][_0x38d6('0x7e')](':')[0x1];return'insertion'!=_0x355f15&&_0x38d6('0x40')!=_0x355f15?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x355f15]};}}),this['editor'][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0x76'),et(this[_0x38d6('0xc6')],_0x38d6('0x7')),{'priority':'high'}),this['editor'][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0xfa'),et(this[_0x38d6('0xc6')],_0x38d6('0x7e')),{'priority':'high'}),this['editor'][_0x38d6('0xca')][_0x38d6('0x6a')]['on']('removeMarker:revision-suggestion',(_0x418a24,_0x2abfe0,_0x279ccc)=>{const _0x41000b=_0x279ccc[_0x38d6('0x2a')][_0x38d6('0x103')](_0x2abfe0['markerName']);if(_0x41000b)for(const _0x34c3a7 of _0x41000b)_0x34c3a7['is'](_0x38d6('0xb6'))&&(_0x279ccc[_0x38d6('0x2a')]['unbindElementFromMarkerName'](_0x34c3a7,_0x2abfe0[_0x38d6('0x62')]),_0x279ccc[_0x38d6('0x36')][_0x38d6('0xa6')](_0x34c3a7));},{'priority':'high'});}[_0x38d6('0xfb')](_0x10fd3e){return this[_0x38d6('0x3e')][_0x38d6('0x123')](_0x10fd3e);}[_0x38d6('0xd0')](_0x3987a1){return this['_changeView']&&this[_0x38d6('0x116')][_0x38d6('0xd6')](),this[_0x38d6('0x116')]=new _0x9942fd(this[_0x38d6('0xc6')][_0x38d6('0x8e')],_0x3987a1),this[_0x38d6('0x116')];}[_0x38d6('0x5f')](){this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')][_0x38d6('0xef')][_0x38d6('0x106')](_0x38d6('0x50')),this['on'](_0x38d6('0x1a'),(_0x37b1b2,_0x6ee4c2,_0x5a150b,_0x310736)=>{_0x310736&&this[_0x38d6('0x10f')][_0x38d6('0xa6')](_0x310736),_0x5a150b&&(this[_0x38d6('0x10f')][_0x38d6('0x4')]({'view':_0x5a150b,'stackId':_0x38d6('0x68'),'position':{'target':()=>{const _0x1637c6=this[_0x38d6('0xc6')][_0x38d6('0xca')],_0x1dc78e=this['_getChangeFromId'](_0x5a150b[_0x38d6('0xd5')]);let _0x48fce1;if(_0x1dc78e['data']['isOnRoot']){const _0x27a9e4=_0x1637c6['view'][_0x38d6('0x44')](_0x1dc78e[_0x38d6('0x72')]);_0x48fce1=Array[_0x38d6('0xc3')](_0x27a9e4[_0x38d6('0x4e')]());}else{const _0xb39524=this[_0x38d6('0xc6')]['model']['markers'][_0x38d6('0x123')](_0x38d6('0xa0')+_0x5a150b[_0x38d6('0xd5')]);_0x48fce1=Array[_0x38d6('0xc3')](_0x1637c6[_0x38d6('0x2a')][_0x38d6('0x103')](_0xb39524[_0x38d6('0x1e')]))[_0x38d6('0x113')](_0x45a6e3=>_0x1637c6[_0x38d6('0x9')][_0x38d6('0xe5')][_0x38d6('0xf9')](_0x45a6e3))['map'](_0x150be5=>Array[_0x38d6('0xc3')](_0x150be5[_0x38d6('0x4e')]()))[_0x38d6('0x2d')]();}if(!this[_0x38d6('0xb')])return _0x48fce1[0x0];return _0x48fce1[_0x38d6('0xd4')](_0x2e26d6=>_0x2e26d6['top']-0x3<=this[_0x38d6('0xb')]['y']&&_0x2e26d6[_0x38d6('0x48')]+0x3>=this[_0x38d6('0xb')]['y']&&_0x2e26d6[_0x38d6('0xf3')]-0x3<=this[_0x38d6('0xb')]['x']&&_0x2e26d6[_0x38d6('0xa5')]+0x3>=this[_0x38d6('0xb')]['x'])||_0x48fce1[0x0];}}}),this['_balloon'][_0x38d6('0xbd')](_0x38d6('0x68')));}),this['on'](_0x38d6('0x45'),(_0x4ddb6b,_0x620b7f,_0x403b28,_0xefbbdc)=>{this[_0x38d6('0xc2')]=_0x403b28?this[_0x38d6('0xd0')](_0x403b28):null,this['editor'][_0x38d6('0x55')][_0x38d6('0x12b')](()=>{const _0x3ad2bf=this['editor'][_0x38d6('0xca')];_0xefbbdc&&(_0xefbbdc[_0x38d6('0xd7')][_0x38d6('0x87')]?_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x12b')](_0x554b71=>{_0x554b71['removeClass'](_0x38d6('0x58'),_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x25')]['getRoot'](_0xefbbdc[_0x38d6('0x72')]));}):_0x3ad2bf[_0x38d6('0x9c')]('revision:'+_0xefbbdc['id'])),_0x403b28&&(_0x403b28[_0x38d6('0xd7')][_0x38d6('0x87')]?_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x12b')](_0x3450fc=>{_0x3450fc[_0x38d6('0xf5')]('ck-revision-history-root--active',_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x25')][_0x38d6('0xeb')](_0x403b28[_0x38d6('0x72')]));}):_0x3ad2bf[_0x38d6('0x9c')](_0x38d6('0xa0')+_0x403b28['id']));});}),this[_0x38d6('0x11e')](this['editor'][_0x38d6('0xca')][_0x38d6('0x9')]['document'],_0x38d6('0x1b'),(_0x42a98b,_0x486638)=>{if(this['activeChange'])return;const _0x22e919=this[_0x38d6('0x78')](_0x486638[_0x38d6('0x65')]),_0x2c8899=this['_changeIdToChange'][_0x38d6('0x123')](_0x22e919);_0x2c8899?(this[_0x38d6('0xb')]={'x':_0x486638[_0x38d6('0x57')]['x'],'y':_0x486638[_0x38d6('0x57')]['y']},this[_0x38d6('0xc2')]=this['_getViewForChange'](_0x2c8899)):(this[_0x38d6('0xb')]=null,this[_0x38d6('0xc2')]=null);}),this[_0x38d6('0x11e')](this[_0x38d6('0xc6')]['editing'][_0x38d6('0x9')][_0x38d6('0x25')],_0x38d6('0x10b'),(_0x111499,_0x63275b)=>{const _0x248e5b=this['_findChangeIdFromDomTarget'](_0x63275b[_0x38d6('0x65')]),_0x3ad38d=this[_0x38d6('0x3e')][_0x38d6('0x123')](_0x248e5b);_0x3ad38d?(this[_0x38d6('0xb')]={'x':_0x63275b[_0x38d6('0x57')]['x'],'y':_0x63275b[_0x38d6('0x57')]['y']},_0x3ad38d===this[_0x38d6('0xf4')]?this[_0x38d6('0x10f')][_0x38d6('0x117')]():this[_0x38d6('0xf4')]=_0x3ad38d):(this['_activeViewTarget']=null,this[_0x38d6('0xf4')]=null);});}['_findChangeIdFromDomTarget'](_0x5dcb4a){do{const _0x1c513f=_0x5dcb4a[_0x38d6('0x63')]('data-change-id');if(_0x1c513f)return _0x1c513f;_0x5dcb4a=_0x5dcb4a[_0x38d6('0xc0')];}while(_0x5dcb4a);return null;}[_0x38d6('0x7b')](){this[_0x38d6('0xc6')]['model']['change'](_0x1407dc=>{for(const _0x1c599c of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x3a')])_0x1407dc[_0x38d6('0x5e')](_0x1c599c);});}}function et(_0x2bd9c9,_0x3806c6){return(_0x3f40e6,_0x34d700,_0x12bc2f)=>{if(!_0x12bc2f[_0x38d6('0xf8')][_0x38d6('0x8c')](_0x34d700[_0x38d6('0xd')],_0x3f40e6[_0x38d6('0x1e')]))return;const _0x5d9587=_0x34d700[_0x38d6('0xd')][_0x38d6('0x51')](),_0x5625b3=_0x34d700['markerRange'][_0x38d6('0x22')],_0x36455e=_0x2bd9c9[_0x38d6('0x55')][_0x38d6('0x90')];let _0x4d4b5f=null,_0x9b55d=null,_0x1aeae0=!0x1,_0xd5266=!0x1;for(const _0x2ee411 of _0x5d9587){const _0x1bd173=_0x2ee411[_0x38d6('0x1')];_0x1aeae0=_0x1aeae0||_0x36455e['isContent'](_0x1bd173);const _0x53a543=_0x12bc2f[_0x38d6('0x2a')]['toViewElement'](_0x1bd173);if(_0x53a543&&_0x53a543[_0x38d6('0xe')]('addHighlight'))return;'elementEnd'==_0x2ee411['type']&&(_0x36455e[_0x38d6('0x14')](_0x1bd173)&&!_0x36455e['isLimit'](_0x1bd173)&&(_0x1bd173[_0x38d6('0x30')]||_0x5625b3[_0x38d6('0xdf')]?_0x4d4b5f&&_0x4d4b5f[_0x38d6('0xc0')]==_0x1bd173||(_0x4d4b5f=_0x1bd173,_0x3bd1ac(_0x2ee411[_0x38d6('0xaf')]),_0xd5266=!0x0):_0x9b55d=_0x9b55d||_0x2ee411[_0x38d6('0xaf')]));}function _0x3bd1ac(_0x373da0){const _0x4deb5d=_0x12bc2f[_0x38d6('0x2a')][_0x38d6('0xbe')](_0x373da0),_0x2be293=_0x12bc2f[_0x38d6('0x36')]['createUIElement'](_0x38d6('0x86'),{'class':_0x38d6('0x5d')+_0x3806c6});_0x12bc2f[_0x38d6('0x36')][_0x38d6('0x120')](_0x4deb5d,_0x2be293),_0x12bc2f['mapper'][_0x38d6('0x81')](_0x2be293,_0x34d700['markerName']);}_0x1aeae0||_0xd5266||!_0x9b55d||_0x3bd1ac(_0x9b55d);};}export class RestoreRevisionCommand extends _0x54dece{constructor(_0x1b1d66){super(_0x1b1d66);const _0x51ab3a=_0x1b1d66[_0x38d6('0x11c')]['get'](d);this[_0x38d6('0x17')]=!0x1,this[_0x38d6('0x11e')](_0x51ab3a,_0x38d6('0xb7'),()=>this[_0x38d6('0x107')]()),this['listenTo'](_0x51ab3a,'change:isEnabled',()=>this[_0x38d6('0x107')]());}['execute'](){const _0x3079d0=this[_0x38d6('0xc6')],_0x366b25=_0x3079d0['plugins']['get'](d),_0xc03be6=_0x366b25[_0x38d6('0xdd')]?_0x366b25[_0x38d6('0xa7')]['newRevisionId']:null;_0x3079d0[_0x38d6('0x3')]['get']('revisionHistory')[_0x38d6('0xbf')](_0xc03be6);}[_0x38d6('0x107')](){const {isReady:_0x2f861a,isEnabled:_0x359cb2}=this['editor'][_0x38d6('0x11c')][_0x38d6('0x123')](d);this[_0x38d6('0x3c')]=_0x2f861a&&_0x359cb2;}}export class ShowChangeCommand extends _0x54dece{constructor(_0x415e16,{direction:_0x4488c1}){super(_0x415e16);const _0x2c5222=_0x415e16['plugins']['get'](d);this[_0x38d6('0x17')]=!0x1,this['_step']='forward'===_0x4488c1?0x1:-0x1,this['listenTo'](_0x2c5222,_0x38d6('0xb7'),()=>this['refresh']()),this[_0x38d6('0x11e')](_0x2c5222,_0x38d6('0xc5'),()=>this[_0x38d6('0x107')]()),this['listenTo'](_0x2c5222,_0x38d6('0x45'),()=>this[_0x38d6('0x107')]());}[_0x38d6('0x8a')](){const _0x50752e=this[_0x38d6('0xc6')],_0x358c72=_0x50752e[_0x38d6('0x11c')]['get'](d),{isNavigationMode:_0xce8d28,currentChangeNumber:_0x6a2785}=_0x358c72;let _0x3eeb48;if(_0x358c72[_0x38d6('0xf4')]=_0xce8d28?_0x358c72[_0x38d6('0xa7')][_0x38d6('0xae')][_0x38d6('0x123')](_0x6a2785+this[_0x38d6('0x28')]):_0x358c72[_0x38d6('0xa7')][_0x38d6('0xae')][_0x38d6('0xaa')],_0x358c72[_0x38d6('0xf4')]['data'][_0x38d6('0x87')])_0x3eeb48=_0x50752e['editing'][_0x38d6('0x9')][_0x38d6('0x44')](_0x358c72[_0x38d6('0xf4')][_0x38d6('0x72')]);else{const _0x400c8f=_0x50752e[_0x38d6('0x55')][_0x38d6('0x3a')][_0x38d6('0x123')](_0x38d6('0xa0')+_0x358c72[_0x38d6('0xf4')]['id']);_0x3eeb48=_0x57de97(_0x50752e[_0x38d6('0xca')],_0x400c8f);}_0x49236b({'target':_0x3eeb48,'viewportOffset':0x28});}[_0x38d6('0x107')](){const {isNavigationMode:_0x2c19ca,currentChangeNumber:_0x443242,numberOfChanges:_0x22bb87,isReady:_0x3df6fa,isEnabled:_0x22e618}=this[_0x38d6('0xc6')][_0x38d6('0x11c')][_0x38d6('0x123')](d);this[_0x38d6('0x3c')]=!!(_0x22e618&&_0x3df6fa&&_0x22bb87)&&(!_0x2c19ca||(0x1===this['_step']?_0x443242<_0x22bb87-0x1:_0x443242>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fba=['isVisible','model','action','bind','Compare\x20against\x20selected','isReady','name','function','class','panelPosition','_action','listenTo','locale','set','Name\x20this\x20revision','listView','isActionsDropdownOpen','bindTemplate','source','extendTemplate','add','buttonView','isOpen','ck-on','threeVerticalDots','isEnabled','execute','Show\x20more\x20items','children','first'];(function(_0x10bce0,_0x1fbaf3){const _0x598e5c=function(_0x5b1e03){while(--_0x5b1e03){_0x10bce0['push'](_0x10bce0['shift']());}};_0x598e5c(++_0x1fbaf3);}(_0x1fba,0xaa));const _0x598e=function(_0x10bce0,_0x1fbaf3){_0x10bce0=_0x10bce0-0x0;let _0x598e5c=_0x1fba[_0x10bce0];return _0x598e5c;};import{Collection as _0x59661d}from'ckeditor5/src/utils.js';import{icons as _0x44fbff}from'ckeditor5/src/core.js';import{ViewModel as _0x1dddc6,addListToDropdown as _0xf9ed8,createDropdown as _0x2e39bf}from'ckeditor5/src/ui.js';import{getTranslation as _0x32dda4}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2c5aef,_0x1dc9ce){const _0x3557cb=_0x2c5aef[_0x598e('0x1b')],_0x432f4c=_0x2c5aef['locale'],_0xad40b0=_0x2e39bf(_0x432f4c);_0xad40b0[_0x598e('0x13')]='sw';const _0x3ff3f7=function(_0x2881dd,_0x147b57){const _0x3d7ba6=function(_0x2cd498,_0x2e3a4d){const _0x557e49=_0x2cd498[_0x598e('0x16')],_0x1d2ea0={'Compare\x20against\x20selected':_0x32dda4(_0x557e49,_0x598e('0xe')),'Name\x20this\x20revision':_0x32dda4(_0x557e49,_0x598e('0x18')),'Restore\x20this\x20revision':_0x32dda4(_0x557e49,'Restore\x20this\x20revision')};return _0x2e3a4d['map'](_0x249307=>{const _0x309d9f=_0x1d2ea0[_0x249307[_0x598e('0x10')]];return _0x309d9f&&_0x309d9f!==_0x249307['name']&&(_0x249307[_0x598e('0x10')]=_0x309d9f),_0x249307;});}(_0x2881dd,_0x147b57),_0x356a75=new _0x59661d();for(const _0x59c244 of _0x3d7ba6){const _0x51b3f8={'type':'button','model':new _0x1dddc6({'label':_0x59c244[_0x598e('0x10')],'class':_0x59c244[_0x598e('0x12')],'withText':!0x0,'_action':_0x59c244[_0x598e('0xc')]})};_0x51b3f8[_0x598e('0xb')][_0x598e('0xd')]('isEnabled')['to'](_0x2881dd,_0x598e('0x1a'),_0x5726af=>'function'!=typeof _0x59c244[_0x598e('0x5')]||(!_0x5726af||_0x59c244[_0x598e('0x5')](_0x2881dd))),_0x356a75[_0x598e('0x0')](_0x51b3f8);}return _0x356a75;}(_0x2c5aef,_0x1dc9ce);return _0x2c5aef[_0x598e('0xd')]('isActionsDropdownOpen')['to'](_0xad40b0,_0x598e('0x2')),_0xad40b0[_0x598e('0x1')][_0x598e('0x17')]({'label':_0x32dda4(_0x432f4c,_0x598e('0x7')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x44fbff[_0x598e('0x4')]}),_0xad40b0[_0x598e('0x1d')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3557cb['if'](_0x598e('0x1a'),_0x598e('0x3'))]},'on':{'click':_0x3557cb['to'](_0x47a61d=>_0x47a61d['stopPropagation']())}}),_0xad40b0['on'](_0x598e('0x6'),_0x3f4bf7=>{_0x2c5aef[_0x598e('0xf')]&&_0x598e('0x11')==typeof _0x3f4bf7[_0x598e('0x1c')][_0x598e('0x14')]&&_0x3f4bf7[_0x598e('0x1c')]['_action'](_0x2c5aef);}),_0xf9ed8(_0xad40b0,_0x3ff3f7),_0xad40b0[_0x598e('0x15')](_0x2c5aef,'change:isActionsDropdownOpen',(_0xde9b45,_0x494827,_0xdc9672)=>{if(_0xdc9672)for(const _0x34848b of _0xad40b0[_0x598e('0x19')]['items']){const _0x511f53=_0x34848b[_0x598e('0x8')][_0x598e('0x9')],_0x3b450b=_0x1dc9ce['find'](_0x424e94=>_0x424e94['action']===_0x511f53[_0x598e('0x14')])[_0x598e('0xa')];_0x34848b[_0x598e('0xa')]=void 0x0===_0x3b450b||_0x3b450b(_0x2c5aef);}}),_0xad40b0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3de9=['0\x200\x2011\x2010','name','Revision\x20creator','set','setTemplate','ck-revision-history-sidebar__revision-author_creator'];(function(_0x213554,_0x3de906){const _0x2af577=function(_0x3a1971){while(--_0x3a1971){_0x213554['push'](_0x213554['shift']());}};_0x2af577(++_0x3de906);}(_0x3de9,0xef));const _0x2af5=function(_0x213554,_0x3de906){_0x213554=_0x213554-0x0;let _0x2af577=_0x3de9[_0x213554];return _0x2af577;};import{View as _0x53046,IconView as _0x35e85f}from'ckeditor5/src/ui.js';import{getTranslation as _0x3e9cda}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x55d2cd from'../../../theme/icons/user.svg';export default class ti extends _0x53046{constructor(_0x406025,_0x52581b,_0x5eab40){super(_0x406025);const _0x17c6be=new _0x35e85f();_0x17c6be[_0x2af5('0x4')]({'content':_0x55d2cd,'viewBox':_0x2af5('0x1')});const _0x1c3510=['ck','ck-revision-history-sidebar__revision-author'];_0x5eab40&&_0x1c3510['push'](_0x2af5('0x0'));const _0x5bd12c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x3e9cda(_0x406025,_0x5eab40?_0x2af5('0x3'):'Revision\x20author')},'children':[_0x17c6be,_0x52581b[_0x2af5('0x2')]]}];this[_0x2af5('0x5')]({'tag':'li','attributes':{'class':_0x1c3510},'children':_0x5bd12c});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4c12=['span','extendTemplate','ck-revision-history-sidebar__revision-name'];(function(_0x1fdf0c,_0x4c1223){var _0x466b64=function(_0x4f25f3){while(--_0x4f25f3){_0x1fdf0c['push'](_0x1fdf0c['shift']());}};_0x466b64(++_0x4c1223);}(_0x4c12,0xe9));var _0x466b=function(_0x1fdf0c,_0x4c1223){_0x1fdf0c=_0x1fdf0c-0x0;var _0x466b64=_0x4c12[_0x1fdf0c];return _0x466b64;};import{LabeledFieldView as _0x5c3f71}from'ckeditor5/src/ui.js';import{getTranslation as _0x3bb742}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x5c3f71{constructor(_0x94f79e,_0x349a53){super(_0x94f79e,_0x349a53),this['set']({'label':_0x3bb742(_0x94f79e,'Revision\x20name')}),this[_0x466b('0x2')]({'tag':_0x466b('0x1'),'attributes':{'class':[_0x466b('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x368e=['placeholder','ck-reset','authors','closest','isSelected','change','set','from','highlight','isReady','ck-disabled','setTemplate','setName','fieldView','_revision','value','ck-revision-history-sidebar__revision-wrapper','length','select','isActionsDropdownOpen','map','uiLanguage','ck-revision-history-sidebar__revision_selected','deselect','createdAt','element','fire','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__actions_dropdown_open','isHighlighted','div','unshift','extendTemplate','name','bind','isConfirm','isEnabled','revisionNameView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision','render','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision__controls-wrapper','unhighlight','listenTo','creator','span','revisionActionsView','_createdAtFormatted'];(function(_0x5dc895,_0x368ef1){const _0x14af7b=function(_0x1b5a36){while(--_0x1b5a36){_0x5dc895['push'](_0x5dc895['shift']());}};_0x14af7b(++_0x368ef1);}(_0x368e,0x1ee));const _0x14af=function(_0x5dc895,_0x368ef1){_0x5dc895=_0x5dc895-0x0;let _0x14af7b=_0x368e[_0x5dc895];return _0x14af7b;};import{View as _0x21a28e,createLabeledInputText as _0x375e92}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x32d18b}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1d4406 from'./revisionnameview.js';import _0x1310e7 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x71bac6}from'./utils.js';import{createActionsDropdownView as _0x2d7638}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x32d18b(_0x21a28e){constructor(_0x132e06,_0x2da6fa,_0x5885b3){super(_0x132e06);const _0x5eedad=this['bindTemplate'],_0x13ce08=function(_0x5cbb40,_0x28fd83){const _0x370987=Array[_0x14af('0x3')](_0x28fd83[_0x14af('0x2f')])['filter'](_0x5b8a0b=>_0x5b8a0b!=_0x28fd83[_0x14af('0x29')]);return _0x28fd83[_0x14af('0x29')]&&_0x370987[_0x14af('0x1b')](_0x28fd83['creator']),_0x370987[_0x14af('0x10')](_0x5990e0=>new _0x1310e7(_0x5cbb40,_0x5990e0,_0x5990e0==_0x28fd83[_0x14af('0x29')]));}(_0x132e06,_0x2da6fa);this['id']=_0x2da6fa['id'],this[_0x14af('0xa')]=_0x2da6fa,this[_0x14af('0x1e')]('name',_0x14af('0x14'))['to'](_0x2da6fa),this[_0x14af('0x1e')](_0x14af('0x2c'))['to'](this,_0x14af('0x14'),_0x265510=>_0x265510?_0x71bac6(_0x132e06[_0x14af('0x11')],_0x265510):void 0x0),this['set'](_0x14af('0x0'),!0x1),this[_0x14af('0x2')](_0x14af('0x19'),!0x1),this[_0x14af('0x2')]('isActionsDropdownOpen',!0x1),this[_0x14af('0x2')](_0x14af('0x5'),!0x1),this[_0x14af('0x2')]('isEnabled',!0x1),this[_0x14af('0x21')]=new _0x1d4406(_0x132e06,_0x375e92),this[_0x14af('0x21')][_0x14af('0x9')][_0x14af('0x1c')]({'attributes':{'maxlength':'220'}}),this[_0x14af('0x21')]['fieldView'][_0x14af('0x1e')](_0x14af('0xb'),_0x14af('0x2d'))['to'](this,_0x14af('0x1d'),_0x14af('0x2c')),this[_0x14af('0x21')][_0x14af('0x1e')](_0x14af('0x20'))['to'](this,_0x14af('0x0'),this,_0x14af('0x20'),(_0x5565e5,_0x45f830)=>_0x5565e5&&_0x45f830),this['revisionActionsView']=_0x5885b3&&_0x5885b3[_0x14af('0xd')]?_0x2d7638(this,_0x5885b3):'',this['revisionActionsView']&&this['revisionActionsView']['bind'](_0x14af('0x20'))['to'](this),this[_0x14af('0x7')]({'tag':'div','attributes':{'class':['ck',_0x14af('0x2e'),_0x14af('0xc'),_0x5eedad['if'](_0x14af('0x1f'),_0x14af('0x22'))]},'children':[{'tag':_0x14af('0x1a'),'attributes':{'class':['ck','ck-reset',_0x14af('0x23'),_0x5eedad['if'](_0x14af('0x20'),_0x14af('0x6'),_0x2332bf=>!_0x2332bf),_0x5eedad['if']('isSelected',_0x14af('0x12')),_0x5eedad['if'](_0x14af('0x19'),_0x14af('0x17')),_0x5eedad['if'](_0x14af('0xf'),_0x14af('0x18'))]},'children':[this[_0x14af('0x21')],{'tag':_0x14af('0x2a'),'attributes':{'class':['ck',_0x14af('0x25')]},'children':[{'text':_0x5eedad['to'](_0x14af('0x2c'))}]},{'tag':_0x14af('0x1a'),'attributes':{'class':['ck',_0x14af('0x26')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x13ce08}]},this[_0x14af('0x2b')]],'on':{'click':_0x5eedad['to'](_0x12de7f=>{_0x12de7f['srcElement'][_0x14af('0x30')]('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire'](_0x14af('0xe'),{'id':this['id']});})}}]});}[_0x14af('0x24')](){super[_0x14af('0x24')]();const _0x50680c=this[_0x14af('0x21')][_0x14af('0x9')][_0x14af('0x15')];this[_0x14af('0x28')](_0x50680c,_0x14af('0x1'),()=>{this[_0x14af('0x16')](_0x14af('0x8'),{'id':this['id'],'name':_0x50680c[_0x14af('0xb')]});});}[_0x14af('0xe')](){this[_0x14af('0x0')]=!0x0;}[_0x14af('0x13')](){this[_0x14af('0x0')]=!0x1;}[_0x14af('0x4')](){this[_0x14af('0x19')]=!0x0;}[_0x14af('0x27')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1572=['true','toggle','ck-revision-history-sidebar__subrevision-collapser_collapsed','button','_isCollapsed','isVisible','setTemplate','span','ck-revision-history-sidebar__subrevision-collapser','false'];(function(_0x1ed61b,_0x1572b4){const _0x17deab=function(_0x2572b8){while(--_0x2572b8){_0x1ed61b['push'](_0x1ed61b['shift']());}};_0x17deab(++_0x1572b4);}(_0x1572,0xe5));const _0x17de=function(_0x1ed61b,_0x1572b4){_0x1ed61b=_0x1ed61b-0x0;let _0x17deab=_0x1572[_0x1ed61b];return _0x17deab;};import{View as _0x201bf1}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x201bf1{constructor(_0x45faf2){super(_0x45faf2);const _0x43612b=this['bindTemplate'];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x17de('0x7')]({'tag':_0x17de('0x8'),'attributes':{'class':['ck',_0x17de('0x9'),_0x43612b['if'](_0x17de('0x6'),'ck-hidden',_0x56e84c=>!_0x56e84c),_0x43612b['if']('_isCollapsed',_0x17de('0x3'))],'role':_0x17de('0x4'),'aria-pressed':_0x43612b['to'](_0x17de('0x5'),_0x38666b=>_0x38666b?_0x17de('0x0'):_0x17de('0x1'))},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x43612b['to']('click')}});}[_0x17de('0x2')](){this[_0x17de('0x5')]=!this[_0x17de('0x5')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4815=['div','bind','select','_parentRevisionId','bindTemplate','setTemplate','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision_selected','uiLanguage','ck-revision-history-sidebar__revision-authors','fire','set','_createdAtFormatted','isSelected','createdAt'];(function(_0x11b650,_0x4815a9){const _0x5bab58=function(_0x1c5604){while(--_0x1c5604){_0x11b650['push'](_0x11b650['shift']());}};_0x5bab58(++_0x4815a9);}(_0x4815,0xae));const _0x5bab=function(_0x11b650,_0x4815a9){_0x11b650=_0x11b650-0x0;let _0x5bab58=_0x4815[_0x11b650];return _0x5bab58;};import{View as _0x4d6018}from'ckeditor5/src/ui.js';import _0x19ad59 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x5649dd}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x4d6018{constructor(_0x410e76,_0x2197d8,_0x320dd8){super(_0x410e76);const _0x52e895=this[_0x5bab('0xa')];this['id']=_0x2197d8['id'],this[_0x5bab('0x7')](_0x5bab('0x5'))['to'](_0x2197d8),this[_0x5bab('0x2')](_0x5bab('0x4'),!0x1),this[_0x5bab('0x7')](_0x5bab('0x3'))['to'](this,_0x5bab('0x5'),_0x5dd533=>_0x5dd533?_0x5649dd(_0x410e76[_0x5bab('0xe')],_0x5dd533):void 0x0),this[_0x5bab('0x9')]=_0x320dd8,this[_0x5bab('0xb')]({'tag':_0x5bab('0x6'),'attributes':{'class':['ck','ck-reset',_0x5bab('0xc'),'ck-revision-history-sidebar__subrevision',_0x52e895['if'](_0x5bab('0x4'),_0x5bab('0xd'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x52e895['to'](_0x5bab('0x3'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5bab('0x0')]},'children':[new _0x19ad59(_0x410e76,_0x2197d8['creator'],!0x0)]}],'on':{'click':_0x52e895['to'](this[_0x5bab('0x8')][_0x5bab('0x7')](this))}});}[_0x5bab('0x8')](){this[_0x5bab('0x4')]=!0x0,this[_0x5bab('0x1')](_0x5bab('0x8'),{'parentId':this[_0x5bab('0x9')]});}['deselect'](){this[_0x5bab('0x4')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x285b=['toLocaleDateString','numeric','long'];(function(_0x5542c3,_0x285b9c){var _0x27f812=function(_0x2973cb){while(--_0x2973cb){_0x5542c3['push'](_0x5542c3['shift']());}};_0x27f812(++_0x285b9c);}(_0x285b,0x1ca));var _0x27f8=function(_0x5542c3,_0x285b9c){_0x5542c3=_0x5542c3-0x0;var _0x27f812=_0x285b[_0x5542c3];return _0x27f812;};export function dateToPrettyFormat(_0x44af89,_0x1ebb27){return _0x1ebb27[_0x27f8('0x1')](_0x44af89,{'month':_0x27f8('0x0'),'day':_0x27f8('0x2')})+',\x20'+_0x1ebb27['toLocaleTimeString'](_0x44af89,{'hour':'numeric','minute':_0x27f8('0x2')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d51=['trim','forEach','type','ck-responsive-form','fieldView','extendTemplate','execute','ck-button-cancel','ck-button-save','check','setTemplate','locale','Save','value','listenTo','_focusCycler','focusTracker','form','revisionNameInputView','stopPropagation','cancel','_createRevisionNameInput','shift\x20+\x20tab','arrowdown','add','tab','arrowleft','input','set','cancelButtonView','render','ck-revision-history-save-revision-form','delegate','revisionNameInputValue','element','focus','Name\x20of\x20the\x20revision\x20(optional)','_focusables','arrowup','saveButtonView','_createButton','keystrokes','220'];(function(_0x314980,_0x1d51a2){const _0x42590d=function(_0x14f3d2){while(--_0x14f3d2){_0x314980['push'](_0x314980['shift']());}};_0x42590d(++_0x1d51a2);}(_0x1d51,0x133));const _0x4259=function(_0x314980,_0x1d51a2){_0x314980=_0x314980-0x0;let _0x42590d=_0x1d51[_0x314980];return _0x42590d;};import{icons as _0x31ba5f}from'ckeditor5/src/core.js';import{ButtonView as _0x4ae376,FocusCycler as _0x222c5e,LabeledFieldView as _0x292017,View as _0x4fdb5f,ViewCollection as _0x105051,createLabeledInputText as _0x16c86b,injectCssTransitionDisabler as _0x54e85d,submitHandler as _0x610c1e}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4d2ee6,KeystrokeHandler as _0x1ad6cf}from'ckeditor5/src/utils.js';import{getTranslation as _0x425d82}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x4fdb5f{constructor(_0x549484){super(_0x549484),this['focusTracker']=new _0x4d2ee6(),this[_0x4259('0x23')]=new _0x1ad6cf(),this[_0x4259('0x16')](_0x4259('0x1b'),''),this[_0x4259('0xc')]=this[_0x4259('0xf')](),this[_0x4259('0x21')]=this[_0x4259('0x22')](_0x425d82(_0x549484,_0x4259('0x6')),_0x31ba5f[_0x4259('0x3')],_0x4259('0x2')),this[_0x4259('0x21')][_0x4259('0x27')]='submit',this['cancelButtonView']=this['_createButton'](_0x425d82(_0x549484,'Cancel'),_0x31ba5f[_0x4259('0xe')],_0x4259('0x1'),'cancel'),this[_0x4259('0x1f')]=new _0x105051(),this[_0x4259('0x9')]=new _0x222c5e({'focusables':this['_focusables'],'focusTracker':this[_0x4259('0xa')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x4259('0x10'),'focusNext':_0x4259('0x13')}}),this[_0x4259('0x4')]({'tag':_0x4259('0xb'),'attributes':{'class':['ck',_0x4259('0x19'),_0x4259('0x28')],'tabindex':'-1'},'children':[this[_0x4259('0xc')],this[_0x4259('0x21')],this['cancelButtonView']]}),_0x54e85d(this);}[_0x4259('0x18')](){super[_0x4259('0x18')](),_0x610c1e({'view':this}),([this[_0x4259('0xc')],this[_0x4259('0x21')],this[_0x4259('0x17')]][_0x4259('0x26')](_0x42bfe6=>{this['_focusables'][_0x4259('0x12')](_0x42bfe6),this['focusTracker'][_0x4259('0x12')](_0x42bfe6['element']);}),this[_0x4259('0x23')][_0x4259('0x8')](this[_0x4259('0x1c')]));const _0xa3d5c4=_0xb7aede=>_0xb7aede[_0x4259('0xd')]();this['keystrokes'][_0x4259('0x16')]('arrowright',_0xa3d5c4),this[_0x4259('0x23')][_0x4259('0x16')](_0x4259('0x14'),_0xa3d5c4),this[_0x4259('0x23')][_0x4259('0x16')](_0x4259('0x20'),_0xa3d5c4),this[_0x4259('0x23')][_0x4259('0x16')](_0x4259('0x11'),_0xa3d5c4);}[_0x4259('0x1d')](){this[_0x4259('0x9')]['focusFirst']();}get['revisionName'](){return this[_0x4259('0xc')][_0x4259('0x29')][_0x4259('0x1c')][_0x4259('0x7')][_0x4259('0x25')]();}set['revisionName'](_0x24eb91){this[_0x4259('0xc')][_0x4259('0x29')]['element']['value']=_0x24eb91[_0x4259('0x25')]();}['reset'](){this['revisionNameInputView']['fieldView'][_0x4259('0x1c')]['value']='';}[_0x4259('0xf')](){const _0x4ddd19=new _0x292017(this[_0x4259('0x5')],_0x16c86b),_0x2d9da0=_0x4ddd19[_0x4259('0x29')];return _0x2d9da0[_0x4259('0x2a')]({'attributes':{'maxlength':_0x4259('0x24')}}),_0x4ddd19['label']=_0x425d82(this[_0x4259('0x5')],_0x4259('0x1e')),_0x2d9da0['on'](_0x4259('0x15'),()=>{this[_0x4259('0x1b')]=_0x2d9da0[_0x4259('0x1c')][_0x4259('0x7')][_0x4259('0x25')]();}),_0x4ddd19;}[_0x4259('0x22')](_0x1a34c5,_0x46a1fc,_0x1409dc,_0x3cc8f8){const _0x3f3b96=new _0x4ae376(this[_0x4259('0x5')]);return _0x3f3b96[_0x4259('0x16')]({'label':_0x1a34c5,'icon':_0x46a1fc,'tooltip':!0x0}),_0x3f3b96['extendTemplate']({'attributes':{'class':_0x1409dc}}),_0x3cc8f8&&_0x3f3b96[_0x4259('0x1a')](_0x4259('0x0'))['to'](this,_0x3cc8f8),_0x3f3b96;}}
|