@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230802.0 → 0.0.0-nightly-20230803.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/revision/revisionactions.css +2 -0
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1b98=['RevisionsRepository','revision-suggestion','isIncorrect','locale','createUIElement','getRoot','oldRevisionId','editor','getRevisionRootsAttributes','loadRevisionData','addRoot','schema','getChild','_appendChild','domConverter','_sortAndFilterDiffChanges','element','requires','dataDowncast','_getChangeFromId','parent','attachChange','highest','revision:','revision-viewer','getAttributes','vid_end','target','markerToData','suggestion','currentChangeNumber','forceDisabled','isLimit','split','toData','_changeIdToChange','createRangeIn','name','removeClass','createPositionBefore','view','low','checkAttribute','WidgetToolbarRepository','viewItem','isAdded','toViewRange','_revisions','mapper','values','map','bind','push','_removeRevisionMarkers','markerName','POSITIVE_INFINITY','span','deletion','clear','processor','object','diffData','toViewElement','right','keys','isNavigationMode','getClientRects','_markMarkers','top','ck-editor__editable__overlay','suggestion:','mouseover','_joinTapes','attribute:vid','_setConversion','revisionHistoryLabel','authors','config','resolve','_processTape','enableReadOnlyMode','delete','remove','collaboration.channelId','change:numberOfChanges','createRange','plugins','isObject','removeMarker','addMarker:revision-suggestion:deletion','ck-suggestion-marker--active','ck-suggestion-preview-marker','data-change-id','numberOfChanges','addRevisionData','then','ck-revision-history-root--active','high','revisionHistoryAttachChange','isSuggestion','_makeTape','selection','left','activeChange','slice','elementToAttribute','isCollapsed','observeMarkers','distance','markerToHighlight','init','bindElementToMarker','get','ck-revision-history-root-add','destroy','ck-suggestion-marker','downcastDispatcher','abs','forEach','marked','_findChangeIdFromDomTarget','useFillerType','editingDowncast','merge','consumable','ck-suggestion-preview-marker-','stop','maxOffset','forward','document','splice','removeAttribute','type','revision-end','text','_cleanUp','_fixObsoleteTags','has','item','changes','markerRange','enqueueChange','restoreRevisionCallback','end','deletions','toViewPosition','add','length','model','change:activeView','diff','findIndex','execute','_getViewForChange','refresh','_getDiff','_markMismatchedRemovedTags','startIndex','isAddSuggestion','revision','mapViewToDom','_setChanges','sort','createPositionFromPath','change:activeChange','isInline','unshift','markersEnd','addClass','repository','_getViewObj','error','detachRoot','getDomRoot','activeView','level','revision-start','isAfter','_refreshStartEndIndex','flat','set','vid_start','_markSuggestions','side','addMarker:revision','_markInsertions','insert','isRemoveSuggestion','_removeMissingPairs','toModel','rootName','isAtEnd','change:isReady','data','parse','isRemoved','_removeUnsupportedChanges','dataToMarker','showPreviousChange','getWalker','updatePosition','wrap','attributesAfter','getAttribute','backward','for','indexOf','addHighlight','setAttribute','listenTo','ck-revision-history-root-remove','hasAttribute','elementEnd','isEnabled','getRootNames','editing','pairId','isAtStart','start','elementStart','writer','element:pre','nodeAfter','domEvent','markers','getCustomProperty','_balloon','restoreRevision','_changeView','isBlock','attributes','insertion','consume','isOnRoot','createRevision','_getRevisionsRange','revision-suggestion:','unbindElementFromMarkerName','offsetSize','upcast','revisionHistory','hasClass','modelRange','isAttached','_makeModelFromViewString','pop','test','getRevision','_step','_setDistance','shift','affectsData','all','next','isEqual','conversion','_cleanMarkers','_activeViewTarget','uiElement','isBefore','filter','reconvertMarker','_update','commands','previousPosition','isContent','children','markerNameToElements','range','_threeWayMerge','endIndex','nextPosition','roots','isReady','removeMarker:revision-suggestion','comment','insertions','getRevisionData','RevisionViewer','_makeModelFromTape','markersStart','first','bottom','string','adapter','userId','index','_initInteractions','concat','from','vid','getIndex','ck-suggestion-marker-','createAttributeElement','nextSibling','startsWith','change','done','showStack'];(function(_0x5ab105,_0x1b98f8){const _0x353521=function(_0x15efb5){while(--_0x15efb5){_0x5ab105['push'](_0x5ab105['shift']());}};_0x353521(++_0x1b98f8);}(_0x1b98,0x1e1));const _0x3535=function(_0x5ab105,_0x1b98f8){_0x5ab105=_0x5ab105-0x0;let _0x353521=_0x1b98[_0x5ab105];return _0x353521;};import{Plugin as _0x4dae84,Command as _0xd63f90}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x526bc7}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2c57d4}from'ckeditor5/src/ui';import{DocumentFragment as _0x43f879,Element as _0x52a395,Text as _0x4153f7,ViewDocumentFragment as _0x128678,ViewText as _0xf590a8,ViewElement as _0x575a40,ViewContainerElement as _0x121912,ViewAttributeElement as _0x469fe1,ViewEmptyElement as _0x427f73,ViewRawElement as _0x585484,ViewUIElement as _0x38d3ae}from'ckeditor5/src/engine';import{Users as _0x2cf9dc,getMarkerDomElement as _0x19e99f}from'ckeditor5-collaboration/src/collaboration-core';import _0x5a955c from'./ui/revisionviewer/changedetailsview';import _0x444e61 from'./revisionsrepository';import _0x324807 from'./changeitem';import{default as _0x31ecd5}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x21ea20}from'lodash-es';const tt={'c':_0x121912,'a':_0x469fe1,'e':_0x427f73,'r':_0x585484,'u':_0x38d3ae};export default class d extends _0x4dae84{static get['pluginName'](){return _0x3535('0x60');}static get[_0x3535('0x86')](){return[_0x2cf9dc,_0x2c57d4,_0x444e61];}constructor(_0x352858){super(_0x352858),this['repository']=this[_0x3535('0x7c')][_0x3535('0xcb')]['get'](_0x3535('0x75')),this[_0x3535('0x129')](_0x3535('0xdc'),null),this[_0x3535('0x129')]('activeView',null),this['_activeViewTarget']=null,this[_0x3535('0x129')](_0x3535('0x10b'),null),this[_0x3535('0x129')](_0x3535('0x5b'),!0x1),this[_0x3535('0x129')](_0x3535('0x1f'),!0x0),this['on']('change:isEnabled',(_0x49ceb5,_0x512ec1,_0x903f08)=>{this['activeChange']=null,this[_0x3535('0x123')]=null,this['editor']['editing'][_0x3535('0x9d')][_0x3535('0x72')](_0xed06e4=>{for(const _0x3a3224 of this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0xf6')][_0x3535('0x5a')])_0x903f08?_0xed06e4[_0x3535('0x9b')](_0x3535('0xba'),_0x3a3224):_0xed06e4[_0x3535('0x11d')](_0x3535('0xba'),_0x3a3224);});}),this[_0x3535('0xa8')](_0x3535('0xb6'))['to'](this,_0x3535('0xdc'),_0x30bc18=>null!==_0x30bc18),this['bind'](_0x3535('0x93'))['to'](this,_0x3535('0x5b'),this,_0x3535('0x10b'),this,_0x3535('0xdc'),(_0x91b2ce,_0x360ac3,_0x24cf4c)=>_0x91b2ce&&_0x24cf4c?_0x360ac3[_0x3535('0x100')][_0x3535('0x6d')](_0x24cf4c):0x0),this[_0x3535('0xa8')](_0x3535('0xd2'))['to'](this,_0x3535('0x5b'),this,_0x3535('0x10b'),(_0x1c369c,_0x5f120a)=>_0x1c369c?_0x5f120a[_0x3535('0x100')][_0x3535('0x108')]:0x0),this['_changeView']=null,this[_0x3535('0x98')]=new Map(),this[_0x3535('0x66')]=null,this[_0x3535('0x2c')]=this[_0x3535('0x7c')][_0x3535('0xcb')]['get'](_0x2c57d4);}[_0x3535('0xe3')](){const _0x1f75c2=this['editor'],_0x2a1f6b=new ShowChangeCommand(_0x1f75c2,{'direction':_0x3535('0x16')}),_0x3fc862=new ShowChangeCommand(_0x1f75c2,{'direction':_0x3535('0xf5')});(_0x1f75c2[_0x3535('0x51')][_0x3535('0x107')](_0x3535('0x10'),_0x2a1f6b),_0x1f75c2[_0x3535('0x51')][_0x3535('0x107')]('showNextChange',_0x3fc862),_0x1f75c2[_0x3535('0x51')][_0x3535('0x107')](_0x3535('0x2d'),new RestoreRevisionCommand(_0x1f75c2)),this['on'](_0x3535('0xc9'),()=>{_0x2a1f6b['refresh'](),_0x3fc862[_0x3535('0x10f')]();}),this['_setConversion'](),this[_0x3535('0x69')](),_0x1f75c2[_0x3535('0xc5')](_0x3535('0x8d')),_0x1f75c2[_0x3535('0xcb')]['has'](_0x3535('0xa0')))&&_0x1f75c2[_0x3535('0xcb')][_0x3535('0xe5')](_0x3535('0xa0'))[_0x3535('0x94')]('revision-viewer');}async[_0x3535('0x5f')](_0x552683){await this[_0x3535('0x7e')](_0x552683);const _0x7b59a3={};for(const _0x35bc0e in _0x552683['diffData']){if(_0x552683[_0x3535('0xb2')][_0x35bc0e][_0x3535('0x8a')]&&!_0x552683['diffData'][_0x35bc0e][_0x3535('0x8a')][_0x3535('0x3d')])continue;const _0xf23434=this[_0x3535('0xaa')](JSON[_0x3535('0xc')](_0x552683[_0x3535('0xb2')][_0x35bc0e][_0x3535('0x5e')])),_0x4bbac6=this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')]['document'],_0x2a4961=new _0x128678(_0x4bbac6,_0xf23434[_0x3535('0xa7')](_0x1ac8df=>this[_0x3535('0x11f')](_0x1ac8df)));this[_0x3535('0x7c')][_0x3535('0xb')]['processor'][_0x3535('0xee')](_0x3535('0xec')),_0x7b59a3[_0x35bc0e]=this['editor'][_0x3535('0xb')][_0x3535('0xb0')][_0x3535('0x97')](_0x2a4961),this[_0x3535('0x7c')][_0x3535('0xb')][_0x3535('0xb0')][_0x3535('0xee')]('default');}return _0x7b59a3;}async[_0x3535('0x7d')](_0x594038){await this['loadRevisionData'](_0x594038);const _0x2d58ac={};for(const _0x4e96e7 in _0x594038[_0x3535('0xb2')])_0x594038[_0x3535('0xb2')][_0x4e96e7]['attachChange']&&!_0x594038[_0x3535('0xb2')][_0x4e96e7][_0x3535('0x8a')][_0x3535('0x3d')]||(_0x2d58ac[_0x4e96e7]=_0x594038[_0x3535('0xb2')][_0x4e96e7][_0x3535('0x14')]||{});return _0x2d58ac;}['_removeRevisionMarkers'](_0x1bf4c2){return(_0x1bf4c2=_0x1bf4c2[_0x3535('0x4e')](_0x3fa8b1=>!_0x3fa8b1[_0x3535('0x9a')]||_0x3535('0x125')!==_0x3fa8b1[_0x3535('0x9a')]&&_0x3535('0xfa')!==_0x3fa8b1[_0x3535('0x9a')]))[_0x3535('0xeb')](_0x46ef73=>{_0x3535('0x65')!=typeof _0x46ef73&&(_0x46ef73['children']=this[_0x3535('0xaa')](_0x46ef73[_0x3535('0x54')]),_0x46ef73[_0x3535('0x30')]=_0x46ef73['attributes']['filter'](_0x52481e=>!_0x52481e[0x0][_0x3535('0x71')]('data-revision-')));}),_0x1bf4c2;}async['compare'](_0x58db67,_0x70e54f,_0x36ac14=!0x1){if(!this[_0x3535('0x1f')])return;const _0x903a4=this[_0x3535('0x10b')],_0x3074b2=this[_0x3535('0x11e')],_0x5ca2a8='string'==typeof _0x58db67?_0x3074b2[_0x3535('0x41')](_0x58db67):_0x58db67,_0x108bce=_0x3535('0x65')==typeof _0x70e54f?_0x3074b2[_0x3535('0x41')](_0x70e54f):_0x70e54f,_0x5c8983=_0x5ca2a8['id'],_0x1457e7=_0x108bce?_0x108bce['id']:null;if(!_0x36ac14&&this[_0x3535('0x10b')]&&this[_0x3535('0x10b')]['newRevisionId']===_0x5c8983&&this[_0x3535('0x10b')][_0x3535('0x7b')]===_0x1457e7)return Promise[_0x3535('0xc3')]();this[_0x3535('0x5b')]=!0x1,this[_0x3535('0x123')]=null,this[_0x3535('0xdc')]=null,this[_0x3535('0x10b')]=new _0x31ecd5(_0x5c8983,_0x1457e7);const _0x45bddb=this['_getRevisionsRange'](_0x5ca2a8,_0x108bce,!0x0)[_0x3535('0xa7')](_0x2c307f=>this['loadRevisionData'](_0x2c307f));return _0x45bddb[_0x3535('0xa9')](new Promise(_0x5bee8a=>{setTimeout(_0x5bee8a,0x14);})),Promise[_0x3535('0x46')](_0x45bddb)['then'](()=>{if(!this[_0x3535('0x1f')])return;this[_0x3535('0xfc')]();const _0x322a02=this[_0x3535('0x110')](_0x5c8983,_0x1457e7);for(const _0x41b861 of _0x322a02[_0x3535('0x100')])this['_changeIdToChange']['set'](_0x41b861['id'],_0x41b861);this[_0x3535('0x7c')][_0x3535('0x109')][_0x3535('0x102')]({'isUndoable':!0x1},_0x34cfec=>{for(const _0x2eb59e of this[_0x3535('0x7c')][_0x3535('0x109')][_0x3535('0xf6')][_0x3535('0x20')]())_0x34cfec[_0x3535('0x121')](_0x2eb59e);for(const _0x3dcf79 of Object['keys'](_0x322a02[_0x3535('0x109')])){const _0x1c51aa=_0x34cfec[_0x3535('0x7f')](_0x3dcf79);for(const _0x26b20d of Object['keys'](_0x322a02[_0x3535('0x30')][_0x3dcf79]))_0x34cfec[_0x3535('0x1a')](_0x26b20d,_0x322a02['attributes'][_0x3dcf79][_0x26b20d],_0x1c51aa);_0x34cfec[_0x3535('0x4')](_0x322a02[_0x3535('0x109')][_0x3dcf79],_0x1c51aa,0x0);}}),this['diff'][_0x3535('0x116')](this[_0x3535('0x84')](_0x322a02['changes'])),this[_0x3535('0x5b')]=!0x0;})['catch'](_0x123cb0=>{console[_0x3535('0x120')](_0x123cb0),this[_0x3535('0xfc')](),_0x903a4&&(this[_0x3535('0x10b')]=_0x903a4),this[_0x3535('0x5b')]=!0x0;});}[_0x3535('0xd3')](_0x45dd2e,_0x4a0ec2){const _0x71ec47=this[_0x3535('0x11e')][_0x3535('0x34')](_0x45dd2e);return _0x71ec47['on']('_update',(_0xf7442c,_0x23397a,_0x4a47a9)=>_0x4a0ec2(_0x23397a,_0x4a47a9,_0x71ec47)),this[_0x3535('0x11e')]['addRevision'](_0x71ec47),_0x71ec47;}[_0x3535('0x7e')](_0xb86bc6){if(!_0xb86bc6||_0xb86bc6[_0x3535('0xb2')])return Promise['resolve']();{const _0x281b30=this[_0x3535('0x7c')]['config']['get'](_0x3535('0xc8'));return this[_0x3535('0x66')][_0x3535('0x41')]({'channelId':_0x281b30,'revisionId':_0xb86bc6['id']})[_0x3535('0xd4')](_0x213d8d=>{_0xb86bc6[_0x3535('0x50')]({'diffData':_0x213d8d[_0x3535('0xb2')]},!0x0);});}}[_0x3535('0xfc')](){this[_0x3535('0xdc')]=null,this[_0x3535('0x4a')](),this[_0x3535('0x2e')]&&this['_changeView']['destroy'](),this['_changeView']=null,this[_0x3535('0x98')][_0x3535('0xaf')](),this[_0x3535('0x7c')]['model']['enqueueChange']({'isUndoable':!0x1},_0x52d784=>{for(const _0x4b6456 of this[_0x3535('0x7c')][_0x3535('0x109')]['document'][_0x3535('0x20')]())_0x52d784[_0x3535('0x121')](_0x4b6456);});}[_0x3535('0x84')](_0x5d2780){const _0x490038=[],_0x27290c=new Map();for(const _0x37ad06 of this['editor'][_0x3535('0x109')][_0x3535('0xf6')][_0x3535('0x20')]()){const _0x657759=this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0x122')](_0x37ad06);if(!_0x657759)continue;const _0x436444=_0x657759[_0x3535('0xb7')]()[_0x3535('0xff')](0x0);_0x436444&&(_0x490038['push'](_0x37ad06),_0x27290c[_0x3535('0x129')](_0x37ad06,_0x436444));}return _0x490038['sort']((_0x3bd676,_0x10e1d6)=>{const _0x3b3b9a=_0x27290c[_0x3535('0xe5')](_0x3bd676),_0xff7de3=_0x27290c['get'](_0x10e1d6);return _0x3b3b9a['y']-_0xff7de3['y']||_0x3b3b9a['x']-_0xff7de3['x'];}),(_0x5d2780=_0x5d2780[_0x3535('0x4e')](_0x178c70=>_0x490038['includes'](_0x178c70[_0x3535('0x8')])))[_0x3535('0x117')]((_0xcbeb04,_0x5ceacd)=>_0x490038[_0x3535('0x18')](_0xcbeb04[_0x3535('0x8')])-_0x490038[_0x3535('0x18')](_0x5ceacd['rootName'])),_0x5d2780;}[_0x3535('0xd9')](_0x8662dd){const _0x2c53f5=Array['from'](_0x8662dd[_0x3535('0x2a')])[_0x3535('0x4e')](([_0x1e758a,_0x3dbc0f])=>_0x1e758a[_0x3535('0x71')](_0x3535('0x8c'))&&!_0x3dbc0f[_0x3535('0xdf')]),_0xa80bbe=Array[_0x3535('0x6b')](this[_0x3535('0x7c')]['model'][_0x3535('0x99')](_0x8662dd)[_0x3535('0x11')]({'singleCharacters':!0x0}));if(0x0!=_0x2c53f5[_0x3535('0x108')])for(const _0x133549 of _0xa80bbe){const [_0x270bd3,_0x49aa04]=_0x2c53f5[0x0],[,_0x3c0c2b,_0x2ae294]=_0x270bd3['split'](':');if(_0x49aa04[_0x3535('0x104')][_0x3535('0x48')](_0x133549[_0x3535('0x59')])&&_0x2c53f5[_0x3535('0x44')](),(_0x133549[_0x3535('0x52')][_0x3535('0x48')](_0x49aa04[_0x3535('0x24')])||_0x133549['previousPosition'][_0x3535('0x126')](_0x49aa04[_0x3535('0x24')]))&&(_0x3535('0x31')==_0x3c0c2b?_0x133549[_0x3535('0xa2')]={'userId':_0x2ae294}:'deletion'==_0x3c0c2b&&(_0x133549['isRemoved']={'userId':_0x2ae294})),0x0==_0x2c53f5[_0x3535('0x108')])break;}return _0xa80bbe;}['_refreshStartEndIndex'](_0x53a9e5){const _0x75859d=new Map();for(let _0x5314a6=0x0;_0x5314a6<_0x53a9e5[_0x3535('0x108')];_0x5314a6++)_0x3535('0xfb')===_0x53a9e5[_0x5314a6][_0x3535('0xf9')]?(_0x53a9e5[_0x5314a6][_0x3535('0xff')][_0x3535('0x112')]=_0x5314a6,_0x53a9e5[_0x5314a6]['item'][_0x3535('0x58')]=_0x5314a6):(_0x3535('0x25')===_0x53a9e5[_0x5314a6][_0x3535('0xf9')]?_0x53a9e5[_0x5314a6][_0x3535('0xff')][_0x3535('0x112')]=_0x5314a6:_0x3535('0x1e')===_0x53a9e5[_0x5314a6][_0x3535('0xf9')]&&(_0x53a9e5[_0x5314a6]['item'][_0x3535('0x58')]=_0x5314a6),_0x75859d[_0x3535('0x129')](_0x53a9e5[_0x5314a6]['id'],_0x5314a6));for(const _0x3c1f5e of _0x75859d[_0x3535('0xa6')]())_0x3535('0x25')===_0x53a9e5[_0x3c1f5e]['type']?_0x53a9e5[_0x3c1f5e][_0x3535('0xff')][_0x3535('0x58')]=_0x75859d[_0x3535('0xe5')](_0x53a9e5[_0x3c1f5e]['pairId']):'elementEnd'===_0x53a9e5[_0x3c1f5e][_0x3535('0xf9')]&&(_0x53a9e5[_0x3c1f5e][_0x3535('0xff')][_0x3535('0x112')]=_0x75859d['get'](_0x53a9e5[_0x3c1f5e][_0x3535('0x22')]));}[_0x3535('0xc4')](_0x404626){for(let _0x10806b=0x0;_0x10806b<_0x404626[_0x3535('0x108')];_0x10806b++){if(_0x3535('0x25')===_0x404626[_0x10806b][_0x3535('0xf9')])_0x404626[_0x10806b][_0x3535('0xff')]['startIndex']=_0x10806b;else{if('elementEnd'===_0x404626[_0x10806b][_0x3535('0xf9')]){_0x404626[_0x10806b][_0x3535('0xff')][_0x3535('0x58')]=_0x10806b;const _0x5f28fb=_0x404626[_0x10806b]['item'][_0x3535('0x112')];_0x404626[_0x5f28fb][_0x3535('0x22')]=_0x404626[_0x10806b]['id'],_0x404626[_0x10806b][_0x3535('0x22')]=_0x404626[_0x5f28fb]['id'];}else _0x404626[_0x10806b][_0x3535('0xff')]['startIndex']=_0x10806b,_0x404626[_0x10806b][_0x3535('0xff')][_0x3535('0x58')]=_0x10806b,_0x404626[_0x10806b][_0x3535('0x22')]=null;}_0x404626[_0x10806b]['markersStart']||(_0x404626[_0x10806b][_0x3535('0x62')]=[],_0x404626[_0x10806b][_0x3535('0x11c')]=[]);}}[_0x3535('0x3')](_0x5ef072,_0x19b69c){const _0x41a0f4=_0x5ef072['filter'](_0x42ad96=>!_0x42ad96[_0x3535('0xa2')]);for(let _0x826e4=0x0;_0x826e4<_0x19b69c['length'];_0x826e4++)_0x19b69c[_0x826e4][_0x3535('0xa2')]&&(_0x41a0f4[_0x826e4]['isAdded']=_0x19b69c[_0x826e4][_0x3535('0xa2')]);}[_0x3535('0x3e')](_0x1a7cf0){const _0x7d4e88=JSON[_0x3535('0xc')](_0x1a7cf0),_0x9bbad5=this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0xf6')],_0x2c4bba=new _0x128678(_0x9bbad5,_0x7d4e88[_0x3535('0xa7')](_0x7d3270=>this[_0x3535('0x11f')](_0x7d3270)));return this[_0x3535('0x7c')][_0x3535('0xb')][_0x3535('0x7')](_0x2c4bba);}['_getViewObj'](_0x5524c8){const _0x4c3ee6=this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0xf6')];if(_0x3535('0x65')==typeof _0x5524c8)return new _0xf590a8(_0x4c3ee6,_0x5524c8);{const _0x3eb020=_0x5524c8[_0x3535('0x54')][_0x3535('0xa7')](_0x1967be=>this[_0x3535('0x11f')](_0x1967be));return new(tt[_0x5524c8[(_0x3535('0xf9'))]]||_0x575a40)(_0x4c3ee6,_0x5524c8[_0x3535('0x9a')],_0x5524c8[_0x3535('0x30')],_0x3eb020);}}[_0x3535('0x110')](_0x57f280,_0x35780d=null){const _0x4d9ebf=this[_0x3535('0x11e')][_0x3535('0x41')](_0x57f280),_0x8fe6b=_0x35780d?this[_0x3535('0x11e')][_0x3535('0x41')](_0x35780d):null,_0x54a6db=this['_getRevisionsRange'](_0x4d9ebf,_0x8fe6b),_0x26761a=_0x54a6db[_0x54a6db[_0x3535('0x108')]-0x1],_0x35e4b8=new Map(),_0x9aa19={'model':{},'attributes':{},'changes':[]},_0x582f7c=new Set(),_0x142b6d=new Map();for(let _0x530d04=_0x54a6db['length']-0x1;_0x530d04>=0x0;_0x530d04--){const _0x5ed90b=_0x54a6db[_0x530d04];for(const _0x4942f8 of Object[_0x3535('0xb5')](_0x5ed90b[_0x3535('0xb2')]))if(_0x5ed90b['diffData'][_0x4942f8][_0x3535('0x8a')]){const _0x49d249=_0x5ed90b[_0x3535('0xb2')][_0x4942f8]['attachChange'];_0x49d249[_0x3535('0x3d')]?(_0x582f7c[_0x3535('0x107')](_0x4942f8),_0x142b6d[_0x3535('0xfe')](_0x4942f8)&&_0x142b6d['get'](_0x4942f8)[_0x3535('0x67')]==_0x49d249[_0x3535('0x67')]?_0x142b6d[_0x3535('0xc6')](_0x4942f8):_0x142b6d['set'](_0x4942f8,_0x49d249)):_0x142b6d['has'](_0x4942f8)?(_0x582f7c[_0x3535('0xc6')](_0x4942f8),_0x142b6d[_0x3535('0xc6')](_0x4942f8)):(_0x582f7c[_0x3535('0x107')](_0x4942f8),_0x142b6d[_0x3535('0x129')](_0x4942f8,_0x49d249));}else _0x582f7c[_0x3535('0x107')](_0x4942f8);}for(const _0x223af4 of _0x582f7c){const _0x25dc91=_0x142b6d[_0x3535('0xfe')](_0x223af4)&&!_0x142b6d[_0x3535('0xe5')](_0x223af4)['isAttached'];let _0x59359d=_0x25dc91?_0x54a6db[_0x3535('0x108')]-0x1:0x0;const _0x5b2dee=_0x25dc91?-0x1:0x1;for(;_0x54a6db[_0x59359d];){const _0xb21fd3=_0x54a6db[_0x59359d];if(_0xb21fd3[_0x3535('0xb2')][_0x223af4]){const _0x3f1009=_0x25dc91?_0xb21fd3['diffData'][_0x223af4]['attributesBefore']:_0xb21fd3[_0x3535('0xb2')][_0x223af4]['attributesAfter'];_0x9aa19[_0x3535('0x30')][_0x223af4]=_0x3f1009?_0x21ea20(_0x3f1009):{};break;}_0x59359d+=_0x5b2dee;}}for(const _0x438086 of _0x54a6db){_0x438086['model']={};for(const _0x287ed3 of _0x438086[_0x3535('0xc1')])_0x35e4b8['set'](_0x287ed3['id'],_0x287ed3);for(const _0x18f0dc of _0x582f7c){const _0x3cbb8c=_0x438086[_0x3535('0xb2')][_0x18f0dc]?_0x438086[_0x3535('0xb2')][_0x18f0dc][_0x3535('0x5e')]:'[]',_0x5618e1=_0x438086['diffData'][_0x18f0dc]?_0x438086[_0x3535('0xb2')][_0x18f0dc][_0x3535('0x105')]:'[]';_0x438086[_0x3535('0x109')][_0x18f0dc]={'insertions':this[_0x3535('0x3e')](_0x3cbb8c),'deletions':this[_0x3535('0x3e')](_0x5618e1)};}}for(const _0x1c6f48 of _0x582f7c){let _0x133acc=null,_0x2e0ea3=0x0;const _0x2fc4ee=new Map(Array[_0x3535('0x6b')](_0x4d9ebf[_0x3535('0x109')][_0x1c6f48][_0x3535('0x5e')]['markers'])[_0x3535('0x4e')](([_0x77ba1f])=>!_0x77ba1f[_0x3535('0x71')](_0x3535('0x8c'))));let _0xe6a7bf=0x0;for(const _0x598ac6 of _0x54a6db){const _0x5c103a=this[_0x3535('0xd9')](_0x598ac6[_0x3535('0x109')][_0x1c6f48][_0x3535('0x5e')]);_0x598ac6==_0x4d9ebf?(_0x133acc=_0x5c103a,_0x2e0ea3=_0x133acc[_0x3535('0x108')],_0x133acc[_0x3535('0xeb')](_0x24c667=>{_0x24c667['id']=_0xe6a7bf++;}),this[_0x3535('0xc4')](_0x133acc)):this[_0x3535('0x3')](_0x133acc,_0x5c103a);const _0x48e8e=_0x133acc[_0x3535('0x4e')](_0x3a277d=>!_0x3a277d[_0x3535('0xa2')])[_0x3535('0xa7')](_0x148c5d=>_0x148c5d['id']);let _0x3fc643=0x0;const _0x1d5156=this['_makeTape'](_0x598ac6[_0x3535('0x109')][_0x1c6f48][_0x3535('0x105')]);_0x1d5156[_0x3535('0xeb')](_0x9dfd9c=>{_0x9dfd9c['isRemoved']?_0x9dfd9c['id']=_0x2e0ea3++:_0x9dfd9c['id']=_0x48e8e[_0x3fc643++];}),this[_0x3535('0xc4')](_0x1d5156),this[_0x3535('0x43')](_0x133acc,_0x3535('0xa2')),this[_0x3535('0x43')](_0x1d5156,_0x3535('0xd')),_0x598ac6==_0x4d9ebf&&this['_markMarkers'](_0x133acc,_0x2fc4ee),_0x133acc=this[_0x3535('0xbd')](_0x133acc,_0x1d5156),this[_0x3535('0x127')](_0x133acc),this[_0x3535('0x43')](_0x133acc,_0x3535('0xd'));}_0x133acc=_0x133acc[_0x3535('0x4e')](_0x7f4b18=>!(_0x7f4b18[_0x3535('0xa2')]&&_0x7f4b18['isRemoved']));const _0x5d7446=new Map(_0x26761a[_0x3535('0x109')][_0x1c6f48][_0x3535('0x105')][_0x3535('0x2a')]),_0x59e9ba=new Set(_0x2fc4ee['keys']());for(const _0x267036 of _0x5d7446['keys']())_0x59e9ba[_0x3535('0xc6')](_0x267036);this['_markSuggestions'](_0x133acc,_0x59e9ba),this[_0x3535('0xfd')](_0x133acc),_0x133acc=this[_0x3535('0x6')](_0x133acc),_0x133acc=this['_markMismatchedRemovedTags'](_0x133acc),_0x133acc=this[_0x3535('0xe')](_0x133acc);const {root:_0x3ee7af,changes:_0x3cfac3}=this[_0x3535('0x61')](_0x133acc,_0x35e4b8,_0x1c6f48);_0x9aa19[_0x3535('0x109')][_0x1c6f48]=_0x3ee7af;const _0x595e7f=_0x142b6d[_0x3535('0xe5')](_0x1c6f48);if(_0x595e7f){const _0x243fe2=_0x35e4b8[_0x3535('0xe5')](_0x595e7f[_0x3535('0x67')]),_0x1bdffd=new _0x324807({'author':_0x243fe2,'type':_0x595e7f[_0x3535('0x3d')]?'add':_0x3535('0xc7'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1c6f48});_0x3cfac3['unshift'](_0x1bdffd),_0x9aa19[_0x3535('0x30')][_0x1c6f48][_0x3535('0xd7')]=_0x1bdffd['id'];}_0x9aa19['changes']=_0x9aa19[_0x3535('0x100')][_0x3535('0x6a')](_0x3cfac3);}return _0x9aa19;}[_0x3535('0xb8')](_0x2f3024,_0x409afc){for(let _0x2fb869=0x0;_0x2fb869<_0x2f3024[_0x3535('0x108')];_0x2fb869++)for(const [_0x1db608,_0x15f408]of _0x409afc)_0x15f408[_0x3535('0x24')][_0x3535('0x48')](_0x2f3024[_0x2fb869][_0x3535('0x52')])&&_0x2f3024[_0x2fb869][_0x3535('0x62')][_0x3535('0xa9')](_0x1db608),_0x15f408[_0x3535('0x104')][_0x3535('0x48')](_0x2f3024[_0x2fb869]['nextPosition'])&&_0x2f3024[_0x2fb869][_0x3535('0x11c')][_0x3535('0xa9')](_0x1db608);}[_0x3535('0xbd')](_0x17b4d8,_0x4a3ab8){let _0x1f9e89=[],_0x2e0996=0x0,_0x5ee555=0x0;for(;_0x2e0996<_0x17b4d8['length']||_0x5ee555<_0x4a3ab8[_0x3535('0x108')];){const _0x1a8f7c=_0x17b4d8[_0x2e0996]||{},_0x12f9e6=_0x4a3ab8[_0x5ee555]||{};if(_0x1a8f7c['id']==_0x12f9e6['id'])_0x2e0996++,_0x5ee555++,_0x1f9e89[_0x3535('0xa9')](_0x1a8f7c);else{if(_0x12f9e6[_0x3535('0xd')]&&_0x1a8f7c['isAdded']){const {commonTape:_0xe2b03f,iEnd:_0x15ede6,jEnd:_0x41aa43}=this[_0x3535('0x57')](_0x17b4d8,_0x2e0996,_0x4a3ab8,_0x5ee555);_0x1f9e89=_0x1f9e89[_0x3535('0x6a')](_0xe2b03f),_0x2e0996=_0x15ede6,_0x5ee555=_0x41aa43;}else _0x12f9e6['isRemoved']?(_0x5ee555++,_0x1f9e89['push'](_0x12f9e6)):(_0x2e0996++,_0x1f9e89[_0x3535('0xa9')](_0x1a8f7c));}}return _0x1f9e89;}[_0x3535('0x0')](_0x220d5e,_0x3b5f18){const _0x34f8c6=[];for(let _0xc67aaa=0x0;_0xc67aaa<_0x220d5e[_0x3535('0x108')];_0xc67aaa++){for(let _0x599091=0x0;_0x599091<_0x220d5e[_0xc67aaa][_0x3535('0x62')]['length'];_0x599091++){const _0x188156=_0x220d5e[_0xc67aaa][_0x3535('0x62')][_0x599091];if(!_0x3b5f18['has'](_0x188156))continue;const {group:_0xd8159,type:_0x531861,authorId:_0x271bd2}=_0x47408f(_0x188156);_0x3535('0x76')!=_0xd8159||_0x3535('0x31')!=_0x531861&&_0x3535('0xae')!=_0x531861||(_0x34f8c6[_0x3535('0x11b')]({'type':_0x531861,'name':_0x188156,'userId':_0x271bd2}),_0x220d5e[_0xc67aaa]['markersStart'][_0x3535('0xf7')](_0x599091,0x1),_0x599091--);}_0x123c14(_0x220d5e[_0xc67aaa]);for(let _0x232c25=0x0;_0x232c25<_0x220d5e[_0xc67aaa]['markersEnd'][_0x3535('0x108')];_0x232c25++){const _0x43eb09=_0x220d5e[_0xc67aaa][_0x3535('0x11c')][_0x232c25];if(!_0x3b5f18[_0x3535('0xfe')](_0x43eb09))continue;const {group:_0x394f4e,type:_0x15558e}=_0x47408f(_0x43eb09);if(_0x3535('0x76')!=_0x394f4e||_0x3535('0x31')!=_0x15558e&&_0x3535('0xae')!=_0x15558e)continue;_0x220d5e[_0xc67aaa][_0x3535('0x11c')][_0x3535('0xf7')](_0x232c25,0x1),_0x232c25--;const _0x30bb83=_0x34f8c6[_0x3535('0x10c')](_0x31eb81=>_0x31eb81['name']==_0x43eb09);_0x30bb83>-0x1&&_0x34f8c6[_0x3535('0xf7')](_0x30bb83,0x1);}}function _0x47408f(_0x2d9495){const _0x3f04ec=_0x2d9495['split'](':');return{'group':_0x3f04ec[0x0],'type':_0x3f04ec[0x1],'subType':_0x3f04ec[_0x3535('0x108')]>=0x5?_0x3f04ec[0x2]:null,'id':_0x3f04ec[_0x3535('0x108')]<0x5?_0x3f04ec[0x2]:_0x3f04ec[0x3],'authorId':_0x3f04ec[_0x3535('0x108')]<0x5?_0x3f04ec[0x3]:_0x3f04ec[0x4],'markerCount':0x6==_0x3f04ec[_0x3535('0x108')]?_0x3f04ec[0x5]:null};}function _0x123c14(_0xbca0c5){for(let _0x526aaa=0x0;_0x526aaa<_0x34f8c6['length'];_0x526aaa++){if(_0xbca0c5[_0x3535('0xa2')]&&_0x3535('0x31')==_0x34f8c6[_0x526aaa][_0x3535('0xf9')])return _0xbca0c5['isAddSuggestion']=_0x34f8c6[_0x526aaa],void delete _0xbca0c5[_0x3535('0xa2')];if(!_0xbca0c5[_0x3535('0xa2')]&&!_0xbca0c5['isRemoved']&&'deletion'==_0x34f8c6[_0x526aaa][_0x3535('0xf9')])return void(_0xbca0c5[_0x3535('0x5')]=_0x34f8c6[_0x526aaa]);}}}[_0x3535('0x43')](_0x1679c9,_0x2bef37){let _0x35fe1d=0x0,_0x5218ce=!0x1;const _0x5867f8=new Map();for(const _0x1f0e79 of _0x1679c9)_0x1f0e79[_0x2bef37]?_0x5218ce&&(_0x35fe1d++,_0x5218ce=!0x1):(_0x35fe1d++,_0x5218ce=!0x0),_0x5867f8['set'](_0x1f0e79['id'],_0x35fe1d);for(let _0x449451=0x0;_0x449451<_0x1679c9['length'];_0x449451++){if('isRemoved'==_0x2bef37&&_0x1679c9[_0x449451]['isAdded']||_0x3535('0xa2')==_0x2bef37&&_0x1679c9[_0x449451][_0x3535('0xd')])continue;if('text'==_0x1679c9[_0x449451]['type']){_0x1679c9[_0x449451][_0x3535('0xe1')]=0x0;continue;}const _0x418d70=_0x5867f8[_0x3535('0xe5')](_0x1679c9[_0x449451][_0x3535('0x22')]),_0x903900=_0x5867f8['get'](_0x1679c9[_0x449451]['id']);_0x1679c9[_0x449451][_0x3535('0xe1')]=_0x418d70-_0x903900;}}[_0x3535('0x35')](_0x3003ca,_0x1c634a,_0x1d8d07=!0x1){const _0x358a46=[];let _0x37d3a3=this['repository'][_0x3535('0x6d')](_0x3003ca),_0x59a902=this[_0x3535('0x11e')][_0x3535('0x6d')](_0x1c634a);for(-0x1==_0x59a902&&(_0x59a902=this[_0x3535('0x11e')][_0x3535('0xa4')][_0x3535('0x108')],_0x1d8d07=!0x1);_0x37d3a3<_0x59a902;)_0x358a46[_0x3535('0xa9')](this[_0x3535('0x11e')]['getRevision'](_0x37d3a3)),_0x37d3a3++;return _0x1d8d07&&_0x358a46[_0x3535('0xa9')](this[_0x3535('0x11e')][_0x3535('0x41')](_0x37d3a3)),_0x358a46;}[_0x3535('0x57')](_0x351a23,_0x25770c,_0x131a5f,_0x2c9bc0){const _0x380ce1=this[_0x3535('0x7c')][_0x3535('0x109')]['schema'];let _0xc014dd=_0x25770c;for(;_0x351a23[_0xc014dd]&&_0x351a23[_0xc014dd][_0x3535('0xa2')];)_0xc014dd++;let _0x3a51f1=_0x2c9bc0;for(;_0x131a5f[_0x3a51f1]&&_0x131a5f[_0x3a51f1][_0x3535('0xd')];)_0x3a51f1++;_0x2b8c23(_0x351a23,_0x25770c,_0xc014dd),_0x2b8c23(_0x131a5f,_0x2c9bc0,_0x3a51f1);const _0x3e6614=_0x131a5f[_0x3535('0xdd')](_0x2c9bc0,_0x3a51f1)['concat'](_0x351a23[_0x3535('0xdd')](_0x25770c,_0xc014dd));return _0x3e6614[_0x3535('0x117')]((_0x35c1af,_0x19eb87)=>_0x35c1af[_0x3535('0x1')]!=_0x19eb87[_0x3535('0x1')]?_0x35c1af[_0x3535('0x1')]-_0x19eb87[_0x3535('0x1')]:_0x35c1af[_0x3535('0x124')]!=_0x19eb87['level']?_0x35c1af[_0x3535('0x124')]-_0x19eb87[_0x3535('0x124')]:_0x35c1af[_0x3535('0xe1')]!=_0x19eb87[_0x3535('0xe1')]?_0x19eb87[_0x3535('0xe1')]-_0x35c1af['distance']:!!_0x35c1af['isAdded']!=!!_0x19eb87[_0x3535('0xa2')]?-0x1==_0x35c1af[_0x3535('0x1')]||0x0==_0x35c1af[_0x3535('0x1')]?_0x35c1af['isAdded']?-0x1:0x1:_0x35c1af[_0x3535('0xa2')]?0x1:-0x1:_0x35c1af['index']-_0x19eb87[_0x3535('0x68')]),{'commonTape':_0x3e6614,'iEnd':_0xc014dd,'jEnd':_0x3a51f1};function _0x2b8c23(_0x165477,_0x56a5c9,_0x3773b9){let _0x52dfe2=-0x1,_0x162c24=Number[_0x3535('0xac')],_0x95c9c0=!0x0;for(let _0x2e6f9f=_0x56a5c9;_0x2e6f9f<_0x3773b9;_0x2e6f9f++)if(_0x380ce1[_0x3535('0x11a')](_0x165477[_0x2e6f9f]['item'])||(_0x95c9c0=!0x1),_0x165477[_0x2e6f9f]['item']['startIndex']<_0x56a5c9&&(_0x52dfe2=_0x2e6f9f),_0x165477[_0x2e6f9f]['item'][_0x3535('0x58')]>=_0x3773b9){_0x162c24=_0x2e6f9f;break;}_0x95c9c0&&(_0x52dfe2=_0x3773b9-0x1);for(let _0x2a59fa=_0x56a5c9;_0x2a59fa<_0x3773b9;_0x2a59fa++)_0x165477[_0x2a59fa][_0x3535('0x1')]=_0x2a59fa<=_0x52dfe2?-0x1:_0x2a59fa<_0x162c24?0x0:0x1,_0x165477[_0x2a59fa]['index']=_0x2a59fa;let _0x4cf5dc=0x0;for(let _0x56d0f5=_0x56a5c9;_0x56d0f5<=_0x52dfe2;_0x56d0f5++)0x0==_0x165477[_0x56d0f5][_0x3535('0xe1')]?_0x165477[_0x56d0f5]['level']=_0x4cf5dc:(_0x4cf5dc++,_0x165477[_0x56d0f5]['level']=_0x4cf5dc,_0x4cf5dc++);for(let _0x574abf=_0x56a5c9;_0x574abf<_0x3773b9;_0x574abf++)0x0==_0x165477[_0x574abf]['side']&&(_0x165477[_0x574abf][_0x3535('0x124')]=_0x4cf5dc);_0x4cf5dc=0x0;for(let _0x3e47bb=_0x3773b9-0x1;_0x3e47bb>=_0x162c24;_0x3e47bb--)0x0==_0x165477[_0x3e47bb][_0x3535('0xe1')]?_0x165477[_0x3e47bb][_0x3535('0x124')]=_0x4cf5dc:(_0x4cf5dc--,_0x165477[_0x3e47bb]['level']=_0x4cf5dc,_0x4cf5dc--);}}[_0x3535('0xfd')](_0x38b34d){const _0x57c62e=new Map(),_0x32de59=this[_0x3535('0x7c')][_0x3535('0x109')]['schema'];for(let _0x2b99cd=0x1;_0x2b99cd<_0x38b34d[_0x3535('0x108')];_0x2b99cd++){let _0xc880c3,_0x294c43,_0x7211cb;const _0x909547=_0x38b34d[_0x2b99cd],_0x4a0d4f=_0x38b34d[_0x2b99cd-0x1];if('text'==_0x909547[_0x3535('0xf9')])continue;if(_0x909547[_0x3535('0xf9')]!=_0x4a0d4f[_0x3535('0xf9')])continue;if(!_0x32de59['isBlock'](_0x4a0d4f[_0x3535('0xff')])||_0x32de59[_0x3535('0x95')](_0x4a0d4f['item']))continue;if(!_0x32de59[_0x3535('0x2f')](_0x909547[_0x3535('0xff')])||_0x32de59[_0x3535('0x95')](_0x909547[_0x3535('0xff')]))continue;if((_0x38b34d[_0x2b99cd][_0x3535('0xa2')]||_0x38b34d[_0x2b99cd][_0x3535('0x113')])&&_0x38b34d[_0x2b99cd-0x1][_0x3535('0xd')])_0xc880c3=_0x38b34d[_0x2b99cd],_0x294c43=_0x38b34d[_0x2b99cd-0x1],_0x7211cb=_0x2b99cd-0x1;else{if(!_0x38b34d[_0x2b99cd][_0x3535('0xd')]||!_0x38b34d[_0x2b99cd-0x1]['isAdded']&&!_0x38b34d[_0x2b99cd-0x1][_0x3535('0x113')])continue;_0xc880c3=_0x38b34d[_0x2b99cd-0x1],_0x294c43=_0x38b34d[_0x2b99cd],_0x7211cb=_0x2b99cd;}const _0x11ac91=_0xc880c3[_0x3535('0x124')]==_0x294c43[_0x3535('0x124')],_0x5bb11e=Math['abs'](_0xc880c3[_0x3535('0x124')])<Math[_0x3535('0xea')](_0x294c43['level'])&&0x0==_0x294c43[_0x3535('0xe1')];(_0x11ac91||_0x5bb11e)&&(_0x57c62e[_0x3535('0x129')](_0x294c43['id'],_0xc880c3['id']),_0x38b34d[_0x3535('0xf7')](_0x7211cb,0x1),_0x2b99cd--,_0xc880c3[_0x3535('0xa2')]=!0x1);}for(let _0x419223=0x0;_0x419223<_0x38b34d[_0x3535('0x108')];_0x419223++)_0x57c62e[_0x3535('0xfe')](_0x38b34d[_0x419223][_0x3535('0x22')])&&(_0x38b34d[_0x419223][_0x3535('0x22')]=_0x57c62e[_0x3535('0xe5')](_0x38b34d[_0x419223][_0x3535('0x22')]));}[_0x3535('0x6')](_0x2654d4){const _0x10424e=new Set(_0x2654d4[_0x3535('0xa7')](_0x2b81c8=>_0x2b81c8['id']));for(let _0x529050=0x0;_0x529050<_0x2654d4['length'];_0x529050++)_0x10424e[_0x3535('0xfe')](_0x2654d4[_0x529050][_0x3535('0x22')])||0x0==_0x2654d4[_0x529050]['distance']||(_0x2654d4[_0x529050]['isIncorrect']=!0x0);return _0x2654d4[_0x3535('0x4e')](_0x5564e4=>!_0x5564e4[_0x3535('0x77')]);}[_0x3535('0x111')](_0x529e11){const _0x2edda7=new Set();for(let _0x2d8bde=0x0;_0x2d8bde<_0x529e11[_0x3535('0x108')];_0x2d8bde++){if(_0x2edda7[_0x3535('0xfe')](_0x529e11[_0x2d8bde]['id'])&&_0x529e11[_0x2d8bde]['isRemoved']&&(_0x529e11[_0x2d8bde][_0x3535('0x77')]=!0x0),_0x529e11[_0x2d8bde][_0x3535('0x77')])continue;if(0x0==_0x529e11[_0x2d8bde][_0x3535('0xe1')])continue;if(_0x3535('0x25')!=_0x529e11[_0x2d8bde][_0x3535('0xf9')])continue;if(null==_0x529e11[_0x2d8bde][_0x3535('0x22')])continue;let _0x2ddf1e=_0x2d8bde+0x1,_0x5f1c26=0x0;for(;_0x529e11[_0x2ddf1e]['id']!=_0x529e11[_0x2d8bde][_0x3535('0x22')];)_0x3535('0x25')==_0x529e11[_0x2ddf1e][_0x3535('0xf9')]?_0x5f1c26++:_0x3535('0x1e')==_0x529e11[_0x2ddf1e]['type']&&_0x5f1c26--,_0x2ddf1e++;if(0x0!=_0x5f1c26){if(_0x529e11[_0x2d8bde][_0x3535('0xd')])_0x529e11[_0x2d8bde][_0x3535('0x77')]=!0x0;else for(;_0x2ddf1e!=_0x2d8bde;)_0x529e11[_0x2ddf1e][_0x3535('0xd')]&&0x0!=_0x529e11[_0x2ddf1e][_0x3535('0xe1')]&&(_0x529e11[_0x2ddf1e][_0x3535('0x77')]=!0x0,_0x2edda7[_0x3535('0x107')](_0x529e11[_0x2ddf1e]['pairId'])),_0x2ddf1e--;}}return _0x529e11['filter'](_0x46280d=>!_0x46280d['isIncorrect']);}[_0x3535('0xe')](_0x551031){const _0x5c4a74=this[_0x3535('0x7c')][_0x3535('0x109')]['schema'];for(let _0x3ba92f=0x0;_0x3ba92f<_0x551031[_0x3535('0x108')];_0x3ba92f++){if(!(_0x551031[_0x3ba92f]['isAdded']||_0x551031[_0x3ba92f][_0x3535('0x113')]||_0x551031[_0x3ba92f][_0x3535('0xd')]||_0x551031[_0x3ba92f][_0x3535('0x5')]))continue;if(0x0==_0x551031[_0x3ba92f][_0x3535('0xe1')])continue;const _0x44f6f5=_0x551031[_0x3ba92f][_0x3535('0xff')];_0x5c4a74[_0x3535('0x2f')](_0x44f6f5)||_0x5c4a74['isLimit'](_0x44f6f5)||(_0x551031[_0x3ba92f][_0x3535('0xa2')]&&delete _0x551031[_0x3ba92f][_0x3535('0xa2')],_0x551031[_0x3ba92f][_0x3535('0x113')]&&delete _0x551031[_0x3ba92f][_0x3535('0x113')],_0x551031[_0x3ba92f][_0x3535('0x5')]&&delete _0x551031[_0x3ba92f][_0x3535('0x5')],_0x551031[_0x3ba92f]['isRemoved']&&(_0x551031[_0x3ba92f][_0x3535('0x77')]=!0x0));}return _0x551031[_0x3535('0x4e')](_0x4553fb=>!_0x4553fb['isIncorrect']);}['_makeModelFromTape'](_0x431ec5,_0xdc31ae,_0x1e25c0){const _0x504e24=new _0x43f879(),_0x3f0d7e=[],_0x1935fc=new Map(),_0xc2c910=this['editor'][_0x3535('0x109')],_0x58b752=_0xc2c910['schema'],_0x57ccf8=[_0x504e24],_0x1d8b8={},_0x1bfde1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4fb679=null;const _0x41431a=[0x0];for(let _0x31af3c=0x0;_0x31af3c<_0x431ec5['length'];_0x31af3c++){let _0x594969,_0x24dfcd;if(_0x3535('0x25')===_0x431ec5[_0x31af3c][_0x3535('0xf9')]){_0x594969=_0xc2c910[_0x3535('0x118')](_0x504e24,_0x41431a);const _0x15706b=new _0x52a395(_0x431ec5[_0x31af3c][_0x3535('0xff')][_0x3535('0x9a')],_0x431ec5[_0x31af3c][_0x3535('0xff')][_0x3535('0x8e')]());_0x57ccf8[0x0][_0x3535('0x82')](_0x15706b),_0x41431a[_0x3535('0xa9')](0x0),_0x57ccf8[_0x3535('0x11b')](_0x15706b),_0x24dfcd=_0xc2c910[_0x3535('0x118')](_0x504e24,_0x41431a),_0x4fb679=null;}else{if(_0x3535('0x1e')===_0x431ec5[_0x31af3c][_0x3535('0xf9')])_0x57ccf8[_0x3535('0x44')](),_0x594969=_0xc2c910[_0x3535('0x118')](_0x504e24,_0x41431a),_0x41431a[_0x3535('0x3f')](),_0x41431a[_0x41431a[_0x3535('0x108')]-0x1]++,_0x24dfcd=_0xc2c910[_0x3535('0x118')](_0x504e24,_0x41431a),_0x4fb679=null;else{if(_0x594969=_0xc2c910[_0x3535('0x118')](_0x504e24,_0x41431a),_0x4fb679&&_0x562bc9(_0x4fb679,_0x431ec5[_0x31af3c]['item']))_0x4fb679['_data']+=_0x431ec5[_0x31af3c][_0x3535('0xff')][_0x3535('0xb')];else{const _0x35b438=new _0x4153f7(_0x431ec5[_0x31af3c][_0x3535('0xff')][_0x3535('0xb')],_0x431ec5[_0x31af3c][_0x3535('0xff')]['getAttributes']());_0x57ccf8[0x0]['_appendChild'](_0x35b438),_0x4fb679=_0x35b438;}_0x41431a[_0x41431a[_0x3535('0x108')]-0x1]+=_0x431ec5[_0x31af3c][_0x3535('0xff')][_0x3535('0x38')],_0x24dfcd=_0xc2c910['createPositionFromPath'](_0x504e24,_0x41431a);}}for(const _0x2301c1 of _0x431ec5[_0x31af3c][_0x3535('0x62')])_0x1935fc['set'](_0x2301c1,{'start':_0x594969,'end':null});_0xaf49ea(_0x3535('0x5'),_0x31af3c,_0x594969,_0x24dfcd),_0xaf49ea(_0x3535('0x113'),_0x31af3c,_0x594969,_0x24dfcd),_0xaf49ea(_0x3535('0xd'),_0x31af3c,_0x594969,_0x24dfcd),_0xaf49ea(_0x3535('0xa2'),_0x31af3c,_0x594969,_0x24dfcd);for(const _0x22c865 of _0x431ec5[_0x31af3c]['markersEnd']){_0x1935fc['get'](_0x22c865)['end']=_0x24dfcd;}}for(const [_0x28e174,_0x3698a9]of _0x1935fc){const _0x3aba6d=this[_0x3535('0x7c')][_0x3535('0x109')][_0x3535('0xca')](_0x3698a9[_0x3535('0x24')],_0x3698a9[_0x3535('0x104')]);_0x504e24[_0x3535('0x2a')][_0x3535('0x129')](_0x28e174,_0x3aba6d);}return _0x3f0d7e['sort']((_0x1ad81a,_0x53dd13)=>{const _0x257c8c=_0x504e24[_0x3535('0x2a')]['get']('revision:'+_0x1ad81a['id']),_0x311469=_0x504e24['markers'][_0x3535('0xe5')](_0x3535('0x8c')+_0x53dd13['id']);return _0x257c8c['start']['isBefore'](_0x311469[_0x3535('0x24')])?-0x1:_0x257c8c[_0x3535('0x24')][_0x3535('0x126')](_0x311469['start'])?0x1:_0x257c8c[_0x3535('0x104')][_0x3535('0x4d')](_0x311469[_0x3535('0x104')])?-0x1:_0x257c8c[_0x3535('0x104')][_0x3535('0x126')](_0x311469[_0x3535('0x104')])?0x1:_0x3535('0x107')===_0x1ad81a[_0x3535('0xf9')]?-0x1:0x1;}),{'root':_0x504e24,'changes':_0x3f0d7e};function _0xaf49ea(_0x4d7793,_0x11d690,_0x560aa6,_0x10e082){const _0x23b38b=!!_0x431ec5[_0x11d690][_0x4d7793],_0x3f94ea=_0x23b38b?_0x431ec5[_0x11d690][_0x4d7793][_0x3535('0x67')]:null,_0x4464fe=_0x11d690===_0x431ec5[_0x3535('0x108')]-0x1,_0x3e6a75=_0x1bfde1[_0x4d7793][0x0],_0x3dce61=_0x58b752[_0x3535('0xcc')](_0x431ec5[_0x11d690]['item']);!_0x1d8b8[_0x4d7793]&&_0x23b38b?_0x1d8b8[_0x4d7793]={'start':_0x560aa6,'tapeItem':_0x431ec5[_0x11d690],'userId':_0x3f94ea,'type':_0x4d7793}:_0x1d8b8[_0x4d7793]&&!_0x23b38b?(_0x1d8b8[_0x4d7793]['end']=_0x560aa6,_0xc394ee(_0x1d8b8[_0x4d7793]),_0x1d8b8[_0x4d7793]=null):_0x1d8b8[_0x4d7793]&&_0x23b38b&&_0x1d8b8[_0x4d7793]['userId']!==_0x3f94ea&&(_0x1d8b8[_0x4d7793][_0x3535('0x104')]=_0x560aa6,_0x3e6a75&&_0x3e6a75[_0x3535('0x67')]===_0x1d8b8[_0x4d7793][_0x3535('0x67')]||_0xc394ee(_0x1d8b8[_0x4d7793]),_0x1d8b8[_0x4d7793]={'start':_0x560aa6,'tapeItem':_0x431ec5[_0x11d690],'userId':_0x3f94ea,'type':_0x4d7793}),_0x1d8b8[_0x4d7793]&&_0x3dce61&&(_0x3535('0x25')!==_0x431ec5[_0x11d690]['type']||_0x3e6a75&&_0x3e6a75[_0x3535('0x67')]===_0x3f94ea||_0x1bfde1[_0x4d7793][_0x3535('0x11b')]({'userId':_0x3f94ea,'object':_0x431ec5[_0x11d690][_0x3535('0xff')],'change':_0x1d8b8[_0x4d7793]}),'elementEnd'===_0x431ec5[_0x11d690][_0x3535('0xf9')]&&_0x3e6a75&&_0x3e6a75[_0x3535('0xb1')]===_0x431ec5[_0x11d690][_0x3535('0xff')]&&(_0x1bfde1[_0x4d7793][_0x3535('0x44')](),_0x1d8b8[_0x4d7793]=_0x3e6a75[_0x3535('0x72')])),_0x1d8b8[_0x4d7793]&&_0x4464fe&&(_0x1d8b8[_0x4d7793][_0x3535('0x104')]=_0x10e082,_0xc394ee(_0x1d8b8[_0x4d7793]),_0x1d8b8[_0x4d7793]=null);}function _0xc394ee({start:_0x21f5f8,end:_0x59ad8b,tapeItem:_0x346fbf,userId:_0x3f0d7b,type:_0x36dbe9}){const _0x30e314=_0x346fbf['item'],_0x424cfa=_0xc2c910[_0x3535('0x80')][_0x3535('0x2f')](_0x30e314)&&!_0xc2c910[_0x3535('0x80')][_0x3535('0x95')](_0x30e314),_0x4fdd3d=_0x21f5f8[_0x3535('0x28')]==_0x59ad8b[_0x3535('0x89')]&&_0x59ad8b[_0x3535('0x23')];if(_0x424cfa&&_0x4fdd3d)return;const _0x22600c=_0xc2c910[_0x3535('0xca')](_0x21f5f8,_0x59ad8b),_0x2e40ff=_0xdc31ae[_0x3535('0xe5')](_0x3f0d7b),_0x10767b=new _0x324807({'author':_0x2e40ff,'type':'isAdded'==_0x36dbe9||'isAddSuggestion'==_0x36dbe9?_0x3535('0x107'):_0x3535('0xc7'),'data':{'isSuggestion':_0x3535('0x113')==_0x36dbe9||_0x3535('0x5')==_0x36dbe9},'createdAt':new Date(),'rootName':_0x1e25c0});_0x3f0d7e[_0x3535('0xa9')](_0x10767b),_0x504e24['markers'][_0x3535('0x129')]('revision:'+_0x10767b['id'],_0x22600c);}function _0x562bc9(_0x233f73,_0x1fe449){const _0x15aae0=_0x233f73[_0x3535('0x8e')](),_0x540513=_0x1fe449[_0x3535('0x8e')]();for(const _0x1e10eb of _0x15aae0){if(_0x1e10eb[0x1]!==_0x1fe449[_0x3535('0x15')](_0x1e10eb[0x0]))return!0x1;_0x540513[_0x3535('0x47')]();}return _0x540513['next']()[_0x3535('0x73')];}}[_0x3535('0xbf')](){this[_0x3535('0x7c')]['conversion']['for'](_0x3535('0x39'))[_0x3535('0xf')]({'view':_0x3535('0x114')}),this[_0x3535('0x7c')][_0x3535('0x49')]['for']('editingDowncast')[_0x3535('0xe2')]({'model':_0x3535('0x114'),'view':_0x418fa8=>{const _0x44a747=_0x418fa8[_0x3535('0xab')][_0x3535('0x96')](':')[0x1],_0x29d5c0=this[_0x3535('0x88')](_0x44a747);if(!_0x29d5c0)return null;const _0x39629b=_0x3535('0x107')==_0x29d5c0[_0x3535('0xf9')]?'insertion':'deletion',_0x56c673=[_0x3535('0xe8'),_0x3535('0x6e')+_0x39629b];return _0x29d5c0[_0x3535('0xb')][_0x3535('0xd8')]&&_0x56c673[_0x3535('0xa9')](_0x3535('0x6e')+_0x39629b+'-new'),this[_0x3535('0xdc')]==_0x29d5c0&&_0x56c673['push']('ck-suggestion-marker--active'),{'classes':_0x56c673,'attributes':{'data-change-id':_0x44a747}};}}),this['editor'][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x39'))['add'](_0x3cab58=>{_0x3cab58['on'](_0x3535('0x27'),(_0x1d2362,_0x51815f,_0x540945)=>{const _0x3e5587=_0x51815f[_0x3535('0xa1')][_0x3535('0x81')](0x0);if(!_0x3e5587||!_0x3e5587['is'](_0x3535('0x85'),'code'))return;if(!_0x540945[_0x3535('0xf1')][_0x3535('0x32')](_0x3e5587,{'attributes':[_0x3535('0x12a'),_0x3535('0x8f')]}))return;const _0x528520=_0x51815f[_0x3535('0x3c')]['start'][_0x3535('0x28')];_0x540945['writer'][_0x3535('0x1a')](_0x3535('0x12a'),_0x3e5587[_0x3535('0x15')]('vid_start'),_0x528520),_0x540945[_0x3535('0x26')][_0x3535('0x1a')](_0x3535('0x8f'),_0x3e5587[_0x3535('0x15')](_0x3535('0x8f')),_0x528520);},{'priority':'low'});}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x39'))[_0x3535('0x107')](_0x53df93=>{_0x53df93['on']('element',(_0x20556d,_0x5f0426,_0x3892c5)=>{if(!_0x3892c5['consumable']['consume'](_0x5f0426[_0x3535('0xa1')],{'attributes':[_0x3535('0x12a'),'vid_end']}))return;if(_0x5f0426[_0x3535('0x3c')]['isCollapsed'])return;const _0x56e794=_0x5f0426['modelRange'][_0x3535('0x24')]['nodeAfter'];_0x56e794[_0x3535('0x1d')](_0x3535('0x12a'))||_0x56e794['hasAttribute'](_0x3535('0x6c'))||(_0x3892c5[_0x3535('0x26')][_0x3535('0x1a')](_0x3535('0x12a'),_0x5f0426[_0x3535('0xa1')]['getAttribute'](_0x3535('0x12a')),_0x56e794),_0x3892c5[_0x3535('0x26')][_0x3535('0x1a')]('vid_end',_0x5f0426['viewItem'][_0x3535('0x15')]('vid_end'),_0x56e794));},{'priority':_0x3535('0x9e')});}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x39'))[_0x3535('0xde')]({'view':{'name':_0x3535('0xad'),'attributes':{'vid':!0x0}},'model':{'key':_0x3535('0x6c'),'value':_0x284239=>_0x284239[_0x3535('0x15')](_0x3535('0x6c'))}}),this[_0x3535('0x7c')]['model'][_0x3535('0x80')]['on'](_0x3535('0x9f'),(_0x4d517d,[,_0x2c958d])=>{[_0x3535('0x12a'),_0x3535('0x8f'),_0x3535('0x6c')]['includes'](_0x2c958d)&&(_0x4d517d['return']=!0x0,_0x4d517d[_0x3535('0xf3')]());},{'priority':_0x3535('0x8b')}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')]('dataDowncast')[_0x3535('0x107')](_0x540a1c=>{_0x540a1c['on'](_0x3535('0xbe'),(_0xa0a524,_0x435d3d,_0x8faf70)=>{if('\x20'!=_0x435d3d[_0x3535('0xff')][_0x3535('0xb')]||_0x435d3d[_0x3535('0xff')][_0x3535('0x89')][_0x3535('0xf4')]>0x1)return;if(!_0x8faf70[_0x3535('0xf1')]['consume'](_0x435d3d[_0x3535('0xff')],_0xa0a524[_0x3535('0x9a')]))return;const _0x4ea95e=_0x8faf70[_0x3535('0x26')],_0x214aaa=_0x8faf70['mapper'][_0x3535('0xa3')](_0x435d3d[_0x3535('0x56')]);_0x4ea95e[_0x3535('0x13')](_0x214aaa,_0x4ea95e[_0x3535('0x6f')](_0x3535('0xad')));});}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')]('dataDowncast')[_0x3535('0x91')]({'model':'revision'}),this[_0x3535('0x7c')][_0x3535('0x21')]['downcastDispatcher']['on'](_0x3535('0x2'),function(_0x8b6e4c){const _0x5a521f=_0x8b6e4c[_0x3535('0xcb')][_0x3535('0xe5')](_0x3535('0x60'));return(_0x20683d,_0x51fd7a,_0x46e46d)=>{const _0x239770=_0x51fd7a[_0x3535('0xab')][_0x3535('0x96')](':')[0x1],_0x40d02e=_0x5a521f['_getChangeFromId'](_0x239770);if(!_0x40d02e)return null;const _0x255140=_0x3535('0x107')==_0x40d02e[_0x3535('0xf9')]?'split':_0x3535('0xf0');if(!_0x46e46d[_0x3535('0xf1')][_0x3535('0x40')](_0x51fd7a[_0x3535('0x101')],_0x20683d['name']))return;const _0x1f526f=_0x51fd7a['markerRange']['getWalker'](),_0x58966=_0x51fd7a['markerRange'][_0x3535('0x24')],_0x53fd95=_0x8b6e4c[_0x3535('0x109')]['schema'];let _0xa8fa56=null,_0xc5c755=null,_0x449aa8=!0x1,_0x291078=!0x1;for(const _0xba4d3f of _0x1f526f){const _0x4499f0=_0xba4d3f[_0x3535('0xff')];_0x449aa8=_0x449aa8||_0x53fd95['isContent'](_0x4499f0);const _0x565337=_0x46e46d['mapper']['toViewElement'](_0x4499f0);if(_0x565337&&_0x565337[_0x3535('0x2b')](_0x3535('0x19')))return;_0x3535('0x1e')==_0xba4d3f[_0x3535('0xf9')]&&(_0x53fd95[_0x3535('0x2f')](_0x4499f0)&&!_0x53fd95['isLimit'](_0x4499f0)&&(_0x4499f0[_0x3535('0x70')]||_0x58966[_0x3535('0x9')]?_0xa8fa56&&_0xa8fa56['parent']==_0x4499f0||(_0xa8fa56=_0x4499f0,_0x1fda89(_0xba4d3f[_0x3535('0x52')]),_0x291078=!0x0):_0xc5c755=_0xc5c755||_0xba4d3f[_0x3535('0x52')]));}function _0x1fda89(_0x385930){const _0x1129a3=_0x46e46d[_0x3535('0x26')][_0x3535('0x79')](_0x3535('0xad'),{'class':'ck-suggestion-marker-'+_0x255140}),_0x2c8bf8=_0x46e46d[_0x3535('0xa5')]['toViewPosition'](_0x385930);_0x40d02e['data']['isSuggestion']&&_0x46e46d['writer']['addClass'](_0x3535('0x6e')+_0x255140+'-new',_0x1129a3),_0x5a521f[_0x3535('0xdc')]==_0x40d02e&&_0x46e46d[_0x3535('0x26')]['addClass'](_0x3535('0xcf'),_0x1129a3),_0x46e46d['writer'][_0x3535('0x4')](_0x2c8bf8,_0x1129a3),_0x46e46d[_0x3535('0xa5')][_0x3535('0xe4')](_0x1129a3,_0x51fd7a['markerName']);}_0x449aa8||_0x291078||!_0xc5c755||_0x1fda89(_0xc5c755);};}(this[_0x3535('0x7c')]),{'priority':_0x3535('0xd6')}),this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0xe9')]['on']('removeMarker:revision',(_0x55cd59,_0xff665f,_0x8fbf8a)=>{const _0x4237e0=_0x8fbf8a['mapper'][_0x3535('0x55')](_0xff665f[_0x3535('0xab')]);if(_0x4237e0)for(const _0x1502b7 of _0x4237e0)(_0x1502b7[_0x3535('0x3b')]('ck-suggestion-marker-split')||_0x1502b7[_0x3535('0x3b')]('ck-suggestion-marker-merge'))&&(_0x8fbf8a[_0x3535('0xa5')][_0x3535('0x37')](_0x1502b7,_0xff665f[_0x3535('0xab')]),_0x8fbf8a['writer'][_0x3535('0xc7')](_0x1502b7));},{'priority':_0x3535('0xd6')}),this['editor'][_0x3535('0x21')][_0x3535('0xe9')]['on'](_0x3535('0x2'),(_0x338294,_0x55cdb1,_0x3eecf6)=>{const _0x15a3f2=_0x55cdb1['markerName'][_0x3535('0x96')](':')[0x1],_0x3f128b=this['_getChangeFromId'](_0x15a3f2);if(!_0x3f128b)return null;const _0x150cc0='add'==_0x3f128b[_0x3535('0xf9')]?_0x3535('0x96'):_0x3535('0xf0');if(_0x3eecf6[_0x3535('0xf1')][_0x3535('0x40')](_0x55cdb1[_0x3535('0x101')],_0x338294[_0x3535('0x9a')]))for(const _0x594a60 of _0x55cdb1[_0x3535('0x101')]['getItems']()){if(!_0x594a60['is'](_0x3535('0x85'),'softBreak'))continue;const _0x31232a=_0x3eecf6['writer'][_0x3535('0x79')](_0x3535('0xad'),{'class':_0x3535('0x6e')+_0x150cc0}),_0x549c98=_0x3eecf6[_0x3535('0xa5')][_0x3535('0x106')](this[_0x3535('0x7c')]['model'][_0x3535('0x9c')](_0x594a60));_0x3f128b[_0x3535('0xb')][_0x3535('0xd8')]&&_0x3eecf6[_0x3535('0x26')]['addClass'](_0x3535('0x6e')+_0x150cc0+'-new',_0x31232a),this[_0x3535('0xdc')]==_0x3f128b&&_0x3eecf6[_0x3535('0x26')]['addClass'](_0x3535('0xcf'),_0x31232a),_0x3eecf6[_0x3535('0x26')]['insert'](_0x549c98,_0x31232a),_0x3eecf6[_0x3535('0xa5')][_0x3535('0xe4')](_0x31232a,_0x55cdb1[_0x3535('0xab')]);}},{'priority':_0x3535('0xd6')}),this[_0x3535('0x7c')]['model'][_0x3535('0xf6')]['on'](_0x3535('0x72'),()=>{this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0x72')](_0x310414=>{for(const _0x4b2105 of this[_0x3535('0x7c')]['model']['document'][_0x3535('0x20')]()){const _0x27079e=this[_0x3535('0x7c')]['model'][_0x3535('0xf6')]['getRoot'](_0x4b2105),_0x2fea83=this['editor'][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0xf6')][_0x3535('0x7a')](_0x4b2105);if(_0x2fea83){const _0x3add50=_0x27079e[_0x3535('0x15')](_0x3535('0xd7'));if(_0x310414[_0x3535('0xf8')]('data-change-id',_0x2fea83),_0x310414['removeClass'](_0x3535('0xe6'),_0x2fea83),_0x310414[_0x3535('0x9b')](_0x3535('0x1c'),_0x2fea83),_0x310414[_0x3535('0x9b')](_0x3535('0xd5'),_0x2fea83),_0x3add50){const _0x26e34e=this['_getChangeFromId'](_0x3add50);if(!_0x26e34e)return null;_0x310414[_0x3535('0x1a')](_0x3535('0xd1'),_0x3add50,_0x2fea83),_0x310414[_0x3535('0x11d')]('ck-revision-history-root-'+_0x26e34e[_0x3535('0xf9')],_0x2fea83),this[_0x3535('0xdc')]==_0x26e34e&&_0x310414['addClass'](_0x3535('0xd5'),_0x2fea83);}}}});}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x39'))[_0x3535('0xf')]({'view':_0x3535('0x5d'),'model':_0x3fd1bd=>'revision-comment:'+_0x3fd1bd,'converterPriority':_0x3535('0x8b')}),this['editor'][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x39'))[_0x3535('0xf')]({'view':_0x3535('0x92'),'model':_0x2c28ad=>_0x3535('0x36')+_0x2c28ad,'converterPriority':_0x3535('0x8b')}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x87'))[_0x3535('0x91')]({'model':_0x3535('0x76'),'view':_0x4ee596=>({'name':_0x3535('0xbb')+_0x4ee596,'group':_0x3535('0x76')}),'converterPriority':_0x3535('0x8b')}),this[_0x3535('0x7c')]['conversion'][_0x3535('0x17')](_0x3535('0xef'))[_0x3535('0xe2')]({'model':_0x3535('0x76'),'view':_0x4aad79=>{const _0x1b612a=_0x4aad79[_0x3535('0xab')][_0x3535('0x96')](':')[0x1];return _0x3535('0x31')!=_0x1b612a&&_0x3535('0xae')!=_0x1b612a?null:{'classes':[_0x3535('0xd0'),_0x3535('0xf2')+_0x1b612a]};}}),this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0xe9')]['on'](_0x3535('0xce'),et(this[_0x3535('0x7c')],_0x3535('0xf0')),{'priority':_0x3535('0xd6')}),this[_0x3535('0x7c')]['editing'][_0x3535('0xe9')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x3535('0x7c')],'split'),{'priority':_0x3535('0xd6')}),this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0xe9')]['on'](_0x3535('0x5c'),(_0xb0e446,_0x424d29,_0x3951ea)=>{const _0x4e6592=_0x3951ea['mapper'][_0x3535('0x55')](_0x424d29[_0x3535('0xab')]);if(_0x4e6592)for(const _0x1c0430 of _0x4e6592)_0x1c0430['is'](_0x3535('0x4c'))&&(_0x3951ea[_0x3535('0xa5')][_0x3535('0x37')](_0x1c0430,_0x424d29[_0x3535('0xab')]),_0x3951ea[_0x3535('0x26')]['remove'](_0x1c0430));},{'priority':_0x3535('0xd6')});}['_getChangeFromId'](_0xcded57){return this[_0x3535('0x98')][_0x3535('0xe5')](_0xcded57);}[_0x3535('0x10e')](_0x4d3d1f){return this['_changeView']&&this[_0x3535('0x2e')][_0x3535('0xe7')](),this[_0x3535('0x2e')]=new _0x5a955c(this['editor'][_0x3535('0x78')],_0x4d3d1f),this[_0x3535('0x2e')];}[_0x3535('0x69')](){this[_0x3535('0x7c')][_0x3535('0x109')][_0x3535('0xf6')][_0x3535('0xda')][_0x3535('0xe0')](_0x3535('0x114')),this['on'](_0x3535('0x10a'),(_0x1a8677,_0x4dadad,_0x4a40ab,_0x2b18ba)=>{_0x2b18ba&&this[_0x3535('0x2c')][_0x3535('0xc7')](_0x2b18ba),_0x4a40ab&&(this['_balloon'][_0x3535('0x107')]({'view':_0x4a40ab,'stackId':_0x3535('0xc0'),'position':{'target':()=>{const _0x2158fb=this[_0x3535('0x7c')][_0x3535('0x21')],_0x9d32b8=this[_0x3535('0x88')](_0x4a40ab['changeId']);let _0x1921c2;if(_0x9d32b8['data'][_0x3535('0x33')]){const _0x14e845=_0x2158fb[_0x3535('0x9d')][_0x3535('0x122')](_0x9d32b8[_0x3535('0x8')]);_0x1921c2=Array[_0x3535('0x6b')](_0x14e845[_0x3535('0xb7')]());}else{const _0xdd392d=this[_0x3535('0x7c')][_0x3535('0x109')][_0x3535('0x2a')][_0x3535('0xe5')]('revision:'+_0x4a40ab['changeId']);_0x1921c2=Array[_0x3535('0x6b')](_0x2158fb[_0x3535('0xa5')][_0x3535('0x55')](_0xdd392d['name']))[_0x3535('0xa7')](_0x7a37f9=>_0x2158fb['view'][_0x3535('0x83')][_0x3535('0x115')](_0x7a37f9))[_0x3535('0xa7')](_0x59865f=>Array[_0x3535('0x6b')](_0x59865f[_0x3535('0xb7')]()))[_0x3535('0x128')]();}if(!this['_activeViewTarget'])return _0x1921c2[0x0];return _0x1921c2['find'](_0xc54c8=>_0xc54c8[_0x3535('0xb9')]-0x3<=this[_0x3535('0x4b')]['y']&&_0xc54c8[_0x3535('0x64')]+0x3>=this[_0x3535('0x4b')]['y']&&_0xc54c8[_0x3535('0xdb')]-0x3<=this['_activeViewTarget']['x']&&_0xc54c8[_0x3535('0xb4')]+0x3>=this[_0x3535('0x4b')]['x'])||_0x1921c2[0x0];}}}),this[_0x3535('0x2c')][_0x3535('0x74')](_0x3535('0xc0')));}),this['on'](_0x3535('0x119'),(_0x4d3ecc,_0x11427f,_0x125676,_0xc25401)=>{this[_0x3535('0x123')]=_0x125676?this['_getViewForChange'](_0x125676):null,this['editor'][_0x3535('0x109')]['change'](()=>{const _0x53c0ca=this[_0x3535('0x7c')]['editing'];_0xc25401&&(_0xc25401['data'][_0x3535('0x33')]?_0x53c0ca[_0x3535('0x9d')]['change'](_0x515c33=>{_0x515c33['removeClass']('ck-revision-history-root--active',_0x53c0ca[_0x3535('0x9d')][_0x3535('0xf6')][_0x3535('0x7a')](_0xc25401[_0x3535('0x8')]));}):_0x53c0ca[_0x3535('0x4f')](_0x3535('0x8c')+_0xc25401['id'])),_0x125676&&(_0x125676['data'][_0x3535('0x33')]?_0x53c0ca[_0x3535('0x9d')][_0x3535('0x72')](_0x2f2eab=>{_0x2f2eab[_0x3535('0x11d')](_0x3535('0xd5'),_0x53c0ca[_0x3535('0x9d')][_0x3535('0xf6')]['getRoot'](_0x125676[_0x3535('0x8')]));}):_0x53c0ca[_0x3535('0x4f')]('revision:'+_0x125676['id']));});}),this[_0x3535('0x1b')](this[_0x3535('0x7c')]['editing'][_0x3535('0x9d')][_0x3535('0xf6')],_0x3535('0xbc'),(_0x1ab837,_0x5e984d)=>{if(this[_0x3535('0xdc')])return;const _0x572105=this[_0x3535('0xed')](_0x5e984d[_0x3535('0x90')]),_0x10b271=this[_0x3535('0x98')][_0x3535('0xe5')](_0x572105);_0x10b271?(this['_activeViewTarget']={'x':_0x5e984d[_0x3535('0x29')]['x'],'y':_0x5e984d[_0x3535('0x29')]['y']},this[_0x3535('0x123')]=this[_0x3535('0x10e')](_0x10b271)):(this[_0x3535('0x4b')]=null,this[_0x3535('0x123')]=null);}),this[_0x3535('0x1b')](this['editor'][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0xf6')],'mousedown',(_0x5827da,_0xb12ea3)=>{const _0x1a17e3=this['_findChangeIdFromDomTarget'](_0xb12ea3['target']),_0x53c6bf=this[_0x3535('0x98')]['get'](_0x1a17e3);_0x53c6bf?(this['_activeViewTarget']={'x':_0xb12ea3[_0x3535('0x29')]['x'],'y':_0xb12ea3[_0x3535('0x29')]['y']},_0x53c6bf===this[_0x3535('0xdc')]?this['_balloon'][_0x3535('0x12')]():this[_0x3535('0xdc')]=_0x53c6bf):(this[_0x3535('0x4b')]=null,this[_0x3535('0xdc')]=null);});}[_0x3535('0xed')](_0x378c10){do{const _0x5e823a=_0x378c10['getAttribute']('data-change-id');if(_0x5e823a)return _0x5e823a;_0x378c10=_0x378c10['parent'];}while(_0x378c10);return null;}['_cleanMarkers'](){this['editor'][_0x3535('0x109')][_0x3535('0x72')](_0x402609=>{for(const _0x2b8eac of this[_0x3535('0x7c')]['model'][_0x3535('0x2a')])_0x402609[_0x3535('0xcd')](_0x2b8eac);});}}function et(_0x4d0003,_0x2538a6){return(_0x3104a7,_0x1601c3,_0x1acac9)=>{if(!_0x1acac9[_0x3535('0xf1')]['test'](_0x1601c3[_0x3535('0x101')],_0x3104a7[_0x3535('0x9a')]))return;const _0x1328e0=_0x1601c3['markerRange'][_0x3535('0x11')](),_0x34c2e7=_0x1601c3[_0x3535('0x101')][_0x3535('0x24')],_0x2c1c1b=_0x4d0003[_0x3535('0x109')][_0x3535('0x80')];let _0x5a1de9=null,_0x3d67d1=null,_0x462b01=!0x1,_0x3a43ac=!0x1;for(const _0x5cad33 of _0x1328e0){const _0x4d6eb6=_0x5cad33[_0x3535('0xff')];_0x462b01=_0x462b01||_0x2c1c1b[_0x3535('0x53')](_0x4d6eb6);const _0x589d67=_0x1acac9[_0x3535('0xa5')][_0x3535('0xb3')](_0x4d6eb6);if(_0x589d67&&_0x589d67['getCustomProperty'](_0x3535('0x19')))return;'elementEnd'==_0x5cad33[_0x3535('0xf9')]&&(_0x2c1c1b[_0x3535('0x2f')](_0x4d6eb6)&&!_0x2c1c1b['isLimit'](_0x4d6eb6)&&(_0x4d6eb6[_0x3535('0x70')]||_0x34c2e7[_0x3535('0x9')]?_0x5a1de9&&_0x5a1de9[_0x3535('0x89')]==_0x4d6eb6||(_0x5a1de9=_0x4d6eb6,_0x28e2ac(_0x5cad33['previousPosition']),_0x3a43ac=!0x0):_0x3d67d1=_0x3d67d1||_0x5cad33[_0x3535('0x52')]));}function _0x28e2ac(_0xa51ff6){const _0x290aff=_0x1acac9[_0x3535('0xa5')]['toViewPosition'](_0xa51ff6),_0x42429e=_0x1acac9['writer'][_0x3535('0x79')](_0x3535('0xad'),{'class':_0x3535('0xf2')+_0x2538a6});_0x1acac9[_0x3535('0x26')]['insert'](_0x290aff,_0x42429e),_0x1acac9['mapper'][_0x3535('0xe4')](_0x42429e,_0x1601c3['markerName']);}_0x462b01||_0x3a43ac||!_0x3d67d1||_0x28e2ac(_0x3d67d1);};}export class RestoreRevisionCommand extends _0xd63f90{constructor(_0x55d977){super(_0x55d977);const _0x3565ee=_0x55d977[_0x3535('0xcb')][_0x3535('0xe5')](d);this[_0x3535('0x45')]=!0x1,this[_0x3535('0x1b')](_0x3565ee,_0x3535('0xa'),()=>this[_0x3535('0x10f')]()),this[_0x3535('0x1b')](_0x3565ee,'change:isEnabled',()=>this[_0x3535('0x10f')]());}[_0x3535('0x10d')](){const _0x4be537=this[_0x3535('0x7c')],_0x676091=_0x4be537[_0x3535('0xcb')]['get'](d),_0x5ca063=_0x676091[_0x3535('0x5b')]?_0x676091[_0x3535('0x10b')]['newRevisionId']:null;_0x4be537[_0x3535('0xc2')][_0x3535('0xe5')](_0x3535('0x3a'))[_0x3535('0x103')](_0x5ca063);}['refresh'](){const {isReady:_0x277fc5,isEnabled:_0x256c36}=this[_0x3535('0x7c')][_0x3535('0xcb')][_0x3535('0xe5')](d);this[_0x3535('0x1f')]=_0x277fc5&&_0x256c36;}}export class ShowChangeCommand extends _0xd63f90{constructor(_0x46d430,{direction:_0x8f9c37}){super(_0x46d430);const _0x5acf5c=_0x46d430[_0x3535('0xcb')][_0x3535('0xe5')](d);this['affectsData']=!0x1,this[_0x3535('0x42')]=_0x3535('0xf5')===_0x8f9c37?0x1:-0x1,this[_0x3535('0x1b')](_0x5acf5c,_0x3535('0xa'),()=>this[_0x3535('0x10f')]()),this['listenTo'](_0x5acf5c,'change:isEnabled',()=>this[_0x3535('0x10f')]()),this[_0x3535('0x1b')](_0x5acf5c,_0x3535('0x119'),()=>this[_0x3535('0x10f')]());}['execute'](){const _0x2ed63f=this[_0x3535('0x7c')],_0x23347a=_0x2ed63f[_0x3535('0xcb')][_0x3535('0xe5')](d),{isNavigationMode:_0x1f7cac,currentChangeNumber:_0x3e1d94}=_0x23347a;let _0x4348c6;if(_0x23347a['activeChange']=_0x1f7cac?_0x23347a['diff'][_0x3535('0x100')][_0x3535('0xe5')](_0x3e1d94+this[_0x3535('0x42')]):_0x23347a[_0x3535('0x10b')][_0x3535('0x100')][_0x3535('0x63')],_0x23347a['activeChange'][_0x3535('0xb')]['isOnRoot'])_0x4348c6=_0x2ed63f['editing'][_0x3535('0x9d')][_0x3535('0x122')](_0x23347a[_0x3535('0xdc')][_0x3535('0x8')]);else{const _0x33dc4c=_0x2ed63f[_0x3535('0x109')][_0x3535('0x2a')]['get'](_0x3535('0x8c')+_0x23347a[_0x3535('0xdc')]['id']);_0x4348c6=_0x19e99f(_0x2ed63f['editing'],_0x33dc4c);}_0x526bc7({'target':_0x4348c6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2d5ae2,currentChangeNumber:_0x151a08,numberOfChanges:_0x33e9de,isReady:_0x451998,isEnabled:_0x1bb8a2}=this[_0x3535('0x7c')][_0x3535('0xcb')][_0x3535('0xe5')](d);this[_0x3535('0x1f')]=!!(_0x1bb8a2&&_0x451998&&_0x33e9de)&&(!_0x2d5ae2||(0x1===this[_0x3535('0x42')]?_0x151a08<_0x33e9de-0x1:_0x151a08>0x0));}}
|
|
23
|
+
const _0x2516=['_markSuggestions','vid_start','revision-comment:','document','unbindElementFromMarkerName','adapter','restoreRevisionCallback','mapViewToDom','getClientRects','writer','isRemoveSuggestion','markerRange','addRevision','_cleanUp','insert','isBefore','createRange','revisionHistoryLabel','revisionHistory','forward','slice','mouseover','_setConversion','updatePosition','isLimit','WidgetToolbarRepository','isOnRoot','nextPosition','newRevisionId','change:numberOfChanges','side','parent','vid','markerNameToElements','createAttributeElement','_initInteractions','dataDowncast','_getChangeFromId','suggestion:','next','item','-new','startsWith','pairId','attributesAfter','ck-revision-history-root-remove','getRevision','element:pre','revision','toData','_getDiff','RevisionsRepository','split','elementStart','_changeView','consumable','get','isSuggestion','isAttached','children','unshift','loadRevisionData','removeClass','right','_refreshStartEndIndex','addMarker:revision','createUIElement','editor','_revisions','checkAttribute','comment','insertion','revisionHistoryAttachChange','span','element','getItems','conversion','config','abs','has','commands','isEqual','useFillerType','top','_getViewObj','wrap','code','for','name','mapper','_markMarkers','_appendChild','forEach','isObject','mousedown','isAtEnd','startIndex','isContent','change:isEnabled','_findChangeIdFromDomTarget','vid_end','_removeUnsupportedChanges','upcast','revision-suggestion','nodeAfter','changes','attachChange','numberOfChanges','high','revision-viewer','_getRevisionsRange','_removeRevisionMarkers','bottom','ck-editor__editable__overlay','markerName','_data','ck-suggestion-marker-','_threeWayMerge','getCustomProperty','parse','activeView','_changeIdToChange','add','done','clear','activeChange','ck-revision-history-root-add','revision-suggestion:','execute','addHighlight','dataToMarker','sort','push','merge','getDomRoot','isBlock','markersEnd','text','getChild','POSITIVE_INFINITY','level','revision-start','change','view','concat','uiElement','_balloon','_processTape','getAttribute','remove','indexOf','createPositionBefore','addRoot','string','ck-revision-history-root--active','forceDisabled','diffData','return','highest','target','marked','data','domEvent','getRootNames','backward','index','modelRange','data-change-id','toViewRange','ck-suggestion-marker--active','removeMarker','restoreRevision','previousPosition','elementEnd','ck-suggestion-marker-merge','first','schema','offsetSize','ck-suggestion-marker-split','model','isAddSuggestion','refresh','downcastDispatcher','resolve','revision-end','getWalker','isRemoved','change:activeChange','currentChangeNumber','splice','end','editingDowncast','createPositionFromPath','object','_activeViewTarget','addRevisionData','includes','_markInsertions','data-revision-','change:isReady','reconvertMarker','revision:','isEnabled','plugins','test','bind','_getViewForChange','consume','addClass','attributes','createRangeIn','rootName','diff','_makeModelFromViewString','nextSibling','observeMarkers','isAtStart','values','isCollapsed','maxOffset','keys','markerToData','getRevisionData','repository','hasAttribute','ck-suggestion-preview-marker','isAfter','_markMismatchedRemovedTags','_setDistance','type','toViewElement','requires','markers','markersStart','deletions','userId','listenTo','stop','collaboration.channelId','_update','roots','compare','hasClass','low','isNavigationMode','default','deletion','enqueueChange','_step','endIndex','distance','editing','filter','isIncorrect','_removeMissingPairs','removeMarker:revision-suggestion','getIndex','shift','changeId','delete','viewItem','_makeTape','_joinTapes','getAttributes','destroy','setAttribute','isReady','suggestion','RevisionViewer','length','map','getRoot','set','flat','find','error','toViewPosition','showPreviousChange','markerToHighlight','bindElementToMarker','then','ck-suggestion-preview-marker-','softBreak','from','enableReadOnlyMode','domConverter','isAdded','start','insertions','isInline'];(function(_0x158a81,_0x2516ce){const _0x34d766=function(_0x37f6e8){while(--_0x37f6e8){_0x158a81['push'](_0x158a81['shift']());}};_0x34d766(++_0x2516ce);}(_0x2516,0xbe));const _0x34d7=function(_0x158a81,_0x2516ce){_0x158a81=_0x158a81-0x0;let _0x34d766=_0x2516[_0x158a81];return _0x34d766;};import{Plugin as _0x2fc33f,Command as _0x36887a}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x50716e}from'ckeditor5/src/utils';import{ContextualBalloon as _0x382bec}from'ckeditor5/src/ui';import{DocumentFragment as _0x2914f6,Element as _0xa820f6,Text as _0x2170a2,ViewDocumentFragment as _0x261106,ViewText as _0xa94f78,ViewElement as _0x15233a,ViewContainerElement as _0x5d2a98,ViewAttributeElement as _0xce135a,ViewEmptyElement as _0x11a960,ViewRawElement as _0x5963bd,ViewUIElement as _0x11f217}from'ckeditor5/src/engine';import{Users as _0x252e06,getMarkerDomElement as _0x1acd99}from'ckeditor5-collaboration/src/collaboration-core';import _0x21bbee from'./ui/revisionviewer/changedetailsview';import _0xc32967 from'./revisionsrepository';import _0x3711f3 from'./changeitem';import{default as _0x132999}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x23e22a}from'lodash-es';const tt={'c':_0x5d2a98,'a':_0xce135a,'e':_0x11a960,'r':_0x5963bd,'u':_0x11f217};export default class d extends _0x2fc33f{static get['pluginName'](){return'RevisionViewer';}static get[_0x34d7('0x29')](){return[_0x252e06,_0x382bec,_0xc32967];}constructor(_0x5d40f3){super(_0x5d40f3),this['repository']=this[_0x34d7('0xa7')][_0x34d7('0xd')][_0x34d7('0x9c')](_0x34d7('0x97')),this[_0x34d7('0x52')]('activeChange',null),this['set'](_0x34d7('0xdc'),null),this[_0x34d7('0x4')]=null,this[_0x34d7('0x52')](_0x34d7('0x16'),null),this['set'](_0x34d7('0x4c'),!0x1),this[_0x34d7('0x52')](_0x34d7('0xc'),!0x0),this['on'](_0x34d7('0xc6'),(_0x3b0901,_0x4d619e,_0x3f7e5c)=>{this[_0x34d7('0xe1')]=null,this['activeView']=null,this[_0x34d7('0xa7')]['editing'][_0x34d7('0xf3')][_0x34d7('0xf2')](_0x2d5b81=>{for(const _0x162c2a of this[_0x34d7('0xa7')][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0x67')][_0x34d7('0x32')])_0x3f7e5c?_0x2d5b81[_0x34d7('0xa2')]('ck-editor__editable__overlay',_0x162c2a):_0x2d5b81[_0x34d7('0x12')](_0x34d7('0xd5'),_0x162c2a);});}),this['bind'](_0x34d7('0x36'))['to'](this,_0x34d7('0xe1'),_0x1ce6f4=>null!==_0x1ce6f4),this[_0x34d7('0xf')](_0x34d7('0x120'))['to'](this,_0x34d7('0x4c'),this,'diff',this,_0x34d7('0xe1'),(_0xb06fcb,_0x4b1dba,_0x3b3ae2)=>_0xb06fcb&&_0x3b3ae2?_0x4b1dba['changes'][_0x34d7('0x42')](_0x3b3ae2):0x0),this[_0x34d7('0xf')](_0x34d7('0xcf'))['to'](this,_0x34d7('0x4c'),this,_0x34d7('0x16'),(_0x269049,_0x4098ff)=>_0x269049?_0x4098ff['changes'][_0x34d7('0x4f')]:0x0),this[_0x34d7('0x9a')]=null,this[_0x34d7('0xdd')]=new Map(),this[_0x34d7('0x69')]=null,this['_balloon']=this[_0x34d7('0xa7')]['plugins'][_0x34d7('0x9c')](_0x382bec);}['init'](){const _0x14aba6=this[_0x34d7('0xa7')],_0x338d3a=new ShowChangeCommand(_0x14aba6,{'direction':_0x34d7('0x108')}),_0x5dbc5f=new ShowChangeCommand(_0x14aba6,{'direction':'forward'});(_0x14aba6[_0x34d7('0xb4')][_0x34d7('0xde')](_0x34d7('0x57'),_0x338d3a),_0x14aba6[_0x34d7('0xb4')][_0x34d7('0xde')]('showNextChange',_0x5dbc5f),_0x14aba6[_0x34d7('0xb4')][_0x34d7('0xde')](_0x34d7('0x10f'),new RestoreRevisionCommand(_0x14aba6)),this['on'](_0x34d7('0x81'),()=>{_0x338d3a[_0x34d7('0x119')](),_0x5dbc5f[_0x34d7('0x119')]();}),this[_0x34d7('0x7a')](),this[_0x34d7('0x87')](),_0x14aba6[_0x34d7('0x5e')](_0x34d7('0xd1')),_0x14aba6['plugins'][_0x34d7('0xb3')]('WidgetToolbarRepository'))&&_0x14aba6['plugins'][_0x34d7('0x9c')](_0x34d7('0x7d'))[_0x34d7('0xff')]('revision-viewer');}async[_0x34d7('0x20')](_0xddd003){await this[_0x34d7('0xa1')](_0xddd003);const _0x3338a7={};for(const _0x31dd02 in _0xddd003[_0x34d7('0x100')]){if(_0xddd003[_0x34d7('0x100')][_0x31dd02][_0x34d7('0xce')]&&!_0xddd003['diffData'][_0x31dd02]['attachChange'][_0x34d7('0x9e')])continue;const _0x4e7fea=this[_0x34d7('0xd3')](JSON[_0x34d7('0xdb')](_0xddd003['diffData'][_0x31dd02][_0x34d7('0x62')])),_0xfed9f9=this[_0x34d7('0xa7')]['editing'][_0x34d7('0xf3')][_0x34d7('0x67')],_0xe5fc2a=new _0x261106(_0xfed9f9,_0x4e7fea[_0x34d7('0x50')](_0x54f029=>this[_0x34d7('0xb8')](_0x54f029)));this['editor'][_0x34d7('0x105')]['processor'][_0x34d7('0xb6')](_0x34d7('0x104')),_0x3338a7[_0x31dd02]=this['editor']['data']['processor'][_0x34d7('0x95')](_0xe5fc2a),this['editor'][_0x34d7('0x105')]['processor'][_0x34d7('0xb6')](_0x34d7('0x37'));}return _0x3338a7;}async['getRevisionRootsAttributes'](_0x5450d6){await this['loadRevisionData'](_0x5450d6);const _0x567469={};for(const _0x5a4929 in _0x5450d6[_0x34d7('0x100')])_0x5450d6[_0x34d7('0x100')][_0x5a4929][_0x34d7('0xce')]&&!_0x5450d6[_0x34d7('0x100')][_0x5a4929][_0x34d7('0xce')]['isAttached']||(_0x567469[_0x5a4929]=_0x5450d6[_0x34d7('0x100')][_0x5a4929][_0x34d7('0x90')]||{});return _0x567469;}[_0x34d7('0xd3')](_0x459a79){return(_0x459a79=_0x459a79[_0x34d7('0x3e')](_0x1866d1=>!_0x1866d1[_0x34d7('0xbc')]||_0x34d7('0xf1')!==_0x1866d1[_0x34d7('0xbc')]&&_0x34d7('0x11c')!==_0x1866d1[_0x34d7('0xbc')]))[_0x34d7('0xc0')](_0x4f417a=>{'string'!=typeof _0x4f417a&&(_0x4f417a['children']=this[_0x34d7('0xd3')](_0x4f417a[_0x34d7('0x9f')]),_0x4f417a[_0x34d7('0x13')]=_0x4f417a[_0x34d7('0x13')][_0x34d7('0x3e')](_0x1a5d6b=>!_0x1a5d6b[0x0]['startsWith'](_0x34d7('0x8'))));}),_0x459a79;}async[_0x34d7('0x33')](_0x3ddba0,_0x123c75,_0x4be888=!0x1){if(!this['isEnabled'])return;const _0x22c622=this[_0x34d7('0x16')],_0x3030e0=this['repository'],_0x364c4a=_0x34d7('0xfd')==typeof _0x3ddba0?_0x3030e0[_0x34d7('0x92')](_0x3ddba0):_0x3ddba0,_0x2e3cf0=_0x34d7('0xfd')==typeof _0x123c75?_0x3030e0[_0x34d7('0x92')](_0x123c75):_0x123c75,_0x2c45f6=_0x364c4a['id'],_0x573b03=_0x2e3cf0?_0x2e3cf0['id']:null;if(!_0x4be888&&this[_0x34d7('0x16')]&&this['diff'][_0x34d7('0x80')]===_0x2c45f6&&this[_0x34d7('0x16')]['oldRevisionId']===_0x573b03)return Promise[_0x34d7('0x11b')]();this[_0x34d7('0x4c')]=!0x1,this[_0x34d7('0xdc')]=null,this[_0x34d7('0xe1')]=null,this['diff']=new _0x132999(_0x2c45f6,_0x573b03);const _0x39ea13=this['_getRevisionsRange'](_0x364c4a,_0x2e3cf0,!0x0)[_0x34d7('0x50')](_0x59ea00=>this[_0x34d7('0xa1')](_0x59ea00));return _0x39ea13[_0x34d7('0xe8')](new Promise(_0x3a391d=>{setTimeout(_0x3a391d,0x14);})),Promise['all'](_0x39ea13)[_0x34d7('0x5a')](()=>{if(!this[_0x34d7('0xc')])return;this[_0x34d7('0x71')]();const _0x5e0cf8=this[_0x34d7('0x96')](_0x2c45f6,_0x573b03);for(const _0x42595d of _0x5e0cf8['changes'])this[_0x34d7('0xdd')][_0x34d7('0x52')](_0x42595d['id'],_0x42595d);this[_0x34d7('0xa7')]['model'][_0x34d7('0x39')]({'isUndoable':!0x1},_0x5f5087=>{for(const _0x3a2e12 of this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x67')]['getRootNames']())_0x5f5087['detachRoot'](_0x3a2e12);for(const _0x4fca35 of Object[_0x34d7('0x1e')](_0x5e0cf8['model'])){const _0x1f5040=_0x5f5087[_0x34d7('0xfc')](_0x4fca35);for(const _0x9e02bb of Object[_0x34d7('0x1e')](_0x5e0cf8['attributes'][_0x4fca35]))_0x5f5087[_0x34d7('0x4b')](_0x9e02bb,_0x5e0cf8[_0x34d7('0x13')][_0x4fca35][_0x9e02bb],_0x1f5040);_0x5f5087[_0x34d7('0x72')](_0x5e0cf8[_0x34d7('0x117')][_0x4fca35],_0x1f5040,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5e0cf8['changes'])),this[_0x34d7('0x4c')]=!0x0;})['catch'](_0x5ef96a=>{console[_0x34d7('0x55')](_0x5ef96a),this[_0x34d7('0x71')](),_0x22c622&&(this['diff']=_0x22c622),this[_0x34d7('0x4c')]=!0x0;});}[_0x34d7('0x5')](_0x4b1ef7,_0x3db77f){const _0x2c2a11=this['repository']['createRevision'](_0x4b1ef7);return _0x2c2a11['on'](_0x34d7('0x31'),(_0x362d92,_0x3b5703,_0xff7d74)=>_0x3db77f(_0x3b5703,_0xff7d74,_0x2c2a11)),this[_0x34d7('0x21')][_0x34d7('0x70')](_0x2c2a11),_0x2c2a11;}[_0x34d7('0xa1')](_0x50bf60){if(!_0x50bf60||_0x50bf60[_0x34d7('0x100')])return Promise['resolve']();{const _0x250025=this[_0x34d7('0xa7')][_0x34d7('0xb1')][_0x34d7('0x9c')](_0x34d7('0x30'));return this['adapter'][_0x34d7('0x92')]({'channelId':_0x250025,'revisionId':_0x50bf60['id']})[_0x34d7('0x5a')](_0xa489cd=>{_0x50bf60[_0x34d7('0x31')]({'diffData':_0xa489cd[_0x34d7('0x100')]},!0x0);});}}[_0x34d7('0x71')](){this[_0x34d7('0xe1')]=null,this['_cleanMarkers'](),this[_0x34d7('0x9a')]&&this[_0x34d7('0x9a')][_0x34d7('0x4a')](),this['_changeView']=null,this[_0x34d7('0xdd')][_0x34d7('0xe0')](),this[_0x34d7('0xa7')][_0x34d7('0x117')]['enqueueChange']({'isUndoable':!0x1},_0x1d055e=>{for(const _0x59e91b of this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x67')][_0x34d7('0x107')]())_0x1d055e['detachRoot'](_0x59e91b);});}['_sortAndFilterDiffChanges'](_0x478b6b){const _0x5a9b04=[],_0xc9aa1d=new Map();for(const _0x21d957 of this[_0x34d7('0xa7')]['model'][_0x34d7('0x67')][_0x34d7('0x107')]()){const _0x159f1f=this[_0x34d7('0xa7')][_0x34d7('0x3d')][_0x34d7('0xf3')]['getDomRoot'](_0x21d957);if(!_0x159f1f)continue;const _0xdcd634=_0x159f1f['getClientRects']()['item'](0x0);_0xdcd634&&(_0x5a9b04[_0x34d7('0xe8')](_0x21d957),_0xc9aa1d[_0x34d7('0x52')](_0x21d957,_0xdcd634));}return _0x5a9b04[_0x34d7('0xe7')]((_0x18b8da,_0x4f2695)=>{const _0x23ccba=_0xc9aa1d[_0x34d7('0x9c')](_0x18b8da),_0x3a0c7c=_0xc9aa1d[_0x34d7('0x9c')](_0x4f2695);return _0x23ccba['y']-_0x3a0c7c['y']||_0x23ccba['x']-_0x3a0c7c['x'];}),(_0x478b6b=_0x478b6b['filter'](_0x5d9969=>_0x5a9b04['includes'](_0x5d9969[_0x34d7('0x15')])))[_0x34d7('0xe7')]((_0x15ffbb,_0x3f171d)=>_0x5a9b04['indexOf'](_0x15ffbb[_0x34d7('0x15')])-_0x5a9b04[_0x34d7('0xfa')](_0x3f171d[_0x34d7('0x15')])),_0x478b6b;}[_0x34d7('0x47')](_0xda13ff){const _0x9fd853=Array[_0x34d7('0x5d')](_0xda13ff['markers'])[_0x34d7('0x3e')](([_0x4c5536,_0x5925f4])=>_0x4c5536[_0x34d7('0x8e')](_0x34d7('0xb'))&&!_0x5925f4[_0x34d7('0x1c')]),_0x377058=Array[_0x34d7('0x5d')](this[_0x34d7('0xa7')]['model'][_0x34d7('0x14')](_0xda13ff)[_0x34d7('0x11d')]({'singleCharacters':!0x0}));if(0x0!=_0x9fd853[_0x34d7('0x4f')])for(const _0x2be6b2 of _0x377058){const [_0x283be1,_0x433edb]=_0x9fd853[0x0],[,_0x36a1ae,_0x27f840]=_0x283be1[_0x34d7('0x98')](':');if(_0x433edb[_0x34d7('0x0')][_0x34d7('0xb5')](_0x2be6b2[_0x34d7('0x7f')])&&_0x9fd853[_0x34d7('0x43')](),(_0x2be6b2['previousPosition'][_0x34d7('0xb5')](_0x433edb['start'])||_0x2be6b2[_0x34d7('0x110')][_0x34d7('0x24')](_0x433edb[_0x34d7('0x61')]))&&(_0x34d7('0xab')==_0x36a1ae?_0x2be6b2['isAdded']={'userId':_0x27f840}:'deletion'==_0x36a1ae&&(_0x2be6b2[_0x34d7('0x11e')]={'userId':_0x27f840})),0x0==_0x9fd853[_0x34d7('0x4f')])break;}return _0x377058;}[_0x34d7('0xa4')](_0x4d0737){const _0x301d5f=new Map();for(let _0x31770d=0x0;_0x31770d<_0x4d0737['length'];_0x31770d++)_0x34d7('0xed')===_0x4d0737[_0x31770d][_0x34d7('0x27')]?(_0x4d0737[_0x31770d]['item']['startIndex']=_0x31770d,_0x4d0737[_0x31770d][_0x34d7('0x8c')][_0x34d7('0x3b')]=_0x31770d):(_0x34d7('0x99')===_0x4d0737[_0x31770d]['type']?_0x4d0737[_0x31770d][_0x34d7('0x8c')]['startIndex']=_0x31770d:_0x34d7('0x111')===_0x4d0737[_0x31770d][_0x34d7('0x27')]&&(_0x4d0737[_0x31770d][_0x34d7('0x8c')][_0x34d7('0x3b')]=_0x31770d),_0x301d5f['set'](_0x4d0737[_0x31770d]['id'],_0x31770d));for(const _0xf66f2e of _0x301d5f[_0x34d7('0x1b')]())_0x34d7('0x99')===_0x4d0737[_0xf66f2e][_0x34d7('0x27')]?_0x4d0737[_0xf66f2e]['item'][_0x34d7('0x3b')]=_0x301d5f['get'](_0x4d0737[_0xf66f2e]['pairId']):_0x34d7('0x111')===_0x4d0737[_0xf66f2e][_0x34d7('0x27')]&&(_0x4d0737[_0xf66f2e][_0x34d7('0x8c')][_0x34d7('0xc4')]=_0x301d5f[_0x34d7('0x9c')](_0x4d0737[_0xf66f2e][_0x34d7('0x8f')]));}[_0x34d7('0xf7')](_0x50767b){for(let _0x37f1e8=0x0;_0x37f1e8<_0x50767b['length'];_0x37f1e8++){if(_0x34d7('0x99')===_0x50767b[_0x37f1e8][_0x34d7('0x27')])_0x50767b[_0x37f1e8]['item']['startIndex']=_0x37f1e8;else{if(_0x34d7('0x111')===_0x50767b[_0x37f1e8]['type']){_0x50767b[_0x37f1e8][_0x34d7('0x8c')][_0x34d7('0x3b')]=_0x37f1e8;const _0x56d238=_0x50767b[_0x37f1e8]['item'][_0x34d7('0xc4')];_0x50767b[_0x56d238]['pairId']=_0x50767b[_0x37f1e8]['id'],_0x50767b[_0x37f1e8]['pairId']=_0x50767b[_0x56d238]['id'];}else _0x50767b[_0x37f1e8][_0x34d7('0x8c')][_0x34d7('0xc4')]=_0x37f1e8,_0x50767b[_0x37f1e8]['item'][_0x34d7('0x3b')]=_0x37f1e8,_0x50767b[_0x37f1e8][_0x34d7('0x8f')]=null;}_0x50767b[_0x37f1e8][_0x34d7('0x2b')]||(_0x50767b[_0x37f1e8]['markersStart']=[],_0x50767b[_0x37f1e8][_0x34d7('0xec')]=[]);}}[_0x34d7('0x7')](_0x264a6e,_0x311322){const _0x379de3=_0x264a6e[_0x34d7('0x3e')](_0x327b63=>!_0x327b63[_0x34d7('0x60')]);for(let _0x4fdbfe=0x0;_0x4fdbfe<_0x311322[_0x34d7('0x4f')];_0x4fdbfe++)_0x311322[_0x4fdbfe][_0x34d7('0x60')]&&(_0x379de3[_0x4fdbfe][_0x34d7('0x60')]=_0x311322[_0x4fdbfe][_0x34d7('0x60')]);}[_0x34d7('0x17')](_0x30f305){const _0xdf2f95=JSON[_0x34d7('0xdb')](_0x30f305),_0x2ee913=this[_0x34d7('0xa7')]['editing'][_0x34d7('0xf3')][_0x34d7('0x67')],_0x2b7827=new _0x261106(_0x2ee913,_0xdf2f95[_0x34d7('0x50')](_0x45269b=>this[_0x34d7('0xb8')](_0x45269b)));return this[_0x34d7('0xa7')][_0x34d7('0x105')]['toModel'](_0x2b7827);}['_getViewObj'](_0x3d0b13){const _0x481670=this['editor'][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0x67')];if('string'==typeof _0x3d0b13)return new _0xa94f78(_0x481670,_0x3d0b13);{const _0x3463fa=_0x3d0b13[_0x34d7('0x9f')][_0x34d7('0x50')](_0x1300f6=>this['_getViewObj'](_0x1300f6));return new(tt[_0x3d0b13[(_0x34d7('0x27'))]]||_0x15233a)(_0x481670,_0x3d0b13['name'],_0x3d0b13[_0x34d7('0x13')],_0x3463fa);}}['_getDiff'](_0x591fbd,_0x204aa9=null){const _0x8aebf0=this[_0x34d7('0x21')][_0x34d7('0x92')](_0x591fbd),_0x5df8b2=_0x204aa9?this['repository'][_0x34d7('0x92')](_0x204aa9):null,_0x58d481=this['_getRevisionsRange'](_0x8aebf0,_0x5df8b2),_0x397331=_0x58d481[_0x58d481[_0x34d7('0x4f')]-0x1],_0x31065e=new Map(),_0x2df7c0={'model':{},'attributes':{},'changes':[]},_0xa570b9=new Set(),_0x3f99e4=new Map();for(let _0x26f5d1=_0x58d481[_0x34d7('0x4f')]-0x1;_0x26f5d1>=0x0;_0x26f5d1--){const _0x53bb89=_0x58d481[_0x26f5d1];for(const _0x48a076 of Object[_0x34d7('0x1e')](_0x53bb89[_0x34d7('0x100')]))if(_0x53bb89[_0x34d7('0x100')][_0x48a076][_0x34d7('0xce')]){const _0x992364=_0x53bb89['diffData'][_0x48a076][_0x34d7('0xce')];_0x992364[_0x34d7('0x9e')]?(_0xa570b9[_0x34d7('0xde')](_0x48a076),_0x3f99e4[_0x34d7('0xb3')](_0x48a076)&&_0x3f99e4[_0x34d7('0x9c')](_0x48a076)[_0x34d7('0x2d')]==_0x992364['userId']?_0x3f99e4[_0x34d7('0x45')](_0x48a076):_0x3f99e4[_0x34d7('0x52')](_0x48a076,_0x992364)):_0x3f99e4[_0x34d7('0xb3')](_0x48a076)?(_0xa570b9[_0x34d7('0x45')](_0x48a076),_0x3f99e4[_0x34d7('0x45')](_0x48a076)):(_0xa570b9[_0x34d7('0xde')](_0x48a076),_0x3f99e4[_0x34d7('0x52')](_0x48a076,_0x992364));}else _0xa570b9[_0x34d7('0xde')](_0x48a076);}for(const _0x50695a of _0xa570b9){const _0x1bb376=_0x3f99e4['has'](_0x50695a)&&!_0x3f99e4['get'](_0x50695a)[_0x34d7('0x9e')];let _0x458511=_0x1bb376?_0x58d481[_0x34d7('0x4f')]-0x1:0x0;const _0x38e715=_0x1bb376?-0x1:0x1;for(;_0x58d481[_0x458511];){const _0xd01938=_0x58d481[_0x458511];if(_0xd01938['diffData'][_0x50695a]){const _0x58a6af=_0x1bb376?_0xd01938[_0x34d7('0x100')][_0x50695a]['attributesBefore']:_0xd01938[_0x34d7('0x100')][_0x50695a]['attributesAfter'];_0x2df7c0[_0x34d7('0x13')][_0x50695a]=_0x58a6af?_0x23e22a(_0x58a6af):{};break;}_0x458511+=_0x38e715;}}for(const _0x10c844 of _0x58d481){_0x10c844[_0x34d7('0x117')]={};for(const _0x47dc91 of _0x10c844['authors'])_0x31065e['set'](_0x47dc91['id'],_0x47dc91);for(const _0x427d3d of _0xa570b9){const _0x582939=_0x10c844[_0x34d7('0x100')][_0x427d3d]?_0x10c844['diffData'][_0x427d3d][_0x34d7('0x62')]:'[]',_0x4281c3=_0x10c844[_0x34d7('0x100')][_0x427d3d]?_0x10c844['diffData'][_0x427d3d][_0x34d7('0x2c')]:'[]';_0x10c844[_0x34d7('0x117')][_0x427d3d]={'insertions':this[_0x34d7('0x17')](_0x582939),'deletions':this[_0x34d7('0x17')](_0x4281c3)};}}for(const _0x56c554 of _0xa570b9){let _0x1c0792=null,_0xf1a9f9=0x0;const _0x2b6450=new Map(Array['from'](_0x8aebf0[_0x34d7('0x117')][_0x56c554][_0x34d7('0x62')]['markers'])['filter'](([_0x440db6])=>!_0x440db6[_0x34d7('0x8e')](_0x34d7('0xb'))));let _0x17d353=0x0;for(const _0x21c730 of _0x58d481){const _0x231062=this['_makeTape'](_0x21c730[_0x34d7('0x117')][_0x56c554][_0x34d7('0x62')]);_0x21c730==_0x8aebf0?(_0x1c0792=_0x231062,_0xf1a9f9=_0x1c0792[_0x34d7('0x4f')],_0x1c0792['forEach'](_0x3c800c=>{_0x3c800c['id']=_0x17d353++;}),this[_0x34d7('0xf7')](_0x1c0792)):this[_0x34d7('0x7')](_0x1c0792,_0x231062);const _0x559f1d=_0x1c0792[_0x34d7('0x3e')](_0x613d72=>!_0x613d72[_0x34d7('0x60')])['map'](_0x1b129b=>_0x1b129b['id']);let _0xb9a2f8=0x0;const _0x174ce4=this[_0x34d7('0x47')](_0x21c730[_0x34d7('0x117')][_0x56c554][_0x34d7('0x2c')]);_0x174ce4[_0x34d7('0xc0')](_0x2ce042=>{_0x2ce042[_0x34d7('0x11e')]?_0x2ce042['id']=_0xf1a9f9++:_0x2ce042['id']=_0x559f1d[_0xb9a2f8++];}),this['_processTape'](_0x174ce4),this['_setDistance'](_0x1c0792,_0x34d7('0x60')),this[_0x34d7('0x26')](_0x174ce4,_0x34d7('0x11e')),_0x21c730==_0x8aebf0&&this['_markMarkers'](_0x1c0792,_0x2b6450),_0x1c0792=this[_0x34d7('0x48')](_0x1c0792,_0x174ce4),this[_0x34d7('0xa4')](_0x1c0792),this[_0x34d7('0x26')](_0x1c0792,_0x34d7('0x11e'));}_0x1c0792=_0x1c0792[_0x34d7('0x3e')](_0x44b62d=>!(_0x44b62d[_0x34d7('0x60')]&&_0x44b62d[_0x34d7('0x11e')]));const _0x2f571a=new Map(_0x397331[_0x34d7('0x117')][_0x56c554][_0x34d7('0x2c')]['markers']),_0x6d6f75=new Set(_0x2b6450['keys']());for(const _0x415a8d of _0x2f571a['keys']())_0x6d6f75[_0x34d7('0x45')](_0x415a8d);this[_0x34d7('0x64')](_0x1c0792,_0x6d6f75),this['_fixObsoleteTags'](_0x1c0792),_0x1c0792=this[_0x34d7('0x40')](_0x1c0792),_0x1c0792=this[_0x34d7('0x25')](_0x1c0792),_0x1c0792=this[_0x34d7('0xc9')](_0x1c0792);const {root:_0x2ea1e3,changes:_0x19a78c}=this['_makeModelFromTape'](_0x1c0792,_0x31065e,_0x56c554);_0x2df7c0['model'][_0x56c554]=_0x2ea1e3;const _0x12ac98=_0x3f99e4['get'](_0x56c554);if(_0x12ac98){const _0x4fce1a=_0x31065e[_0x34d7('0x9c')](_0x12ac98['userId']),_0x1da85b=new _0x3711f3({'author':_0x4fce1a,'type':_0x12ac98[_0x34d7('0x9e')]?_0x34d7('0xde'):_0x34d7('0xf9'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x56c554});_0x19a78c[_0x34d7('0xa0')](_0x1da85b),_0x2df7c0['attributes'][_0x56c554][_0x34d7('0xac')]=_0x1da85b['id'];}_0x2df7c0['changes']=_0x2df7c0[_0x34d7('0xcd')][_0x34d7('0xf4')](_0x19a78c);}return _0x2df7c0;}[_0x34d7('0xbe')](_0x57631f,_0x33647d){for(let _0x1dfb3c=0x0;_0x1dfb3c<_0x57631f[_0x34d7('0x4f')];_0x1dfb3c++)for(const [_0x261ce0,_0x530e71]of _0x33647d)_0x530e71[_0x34d7('0x61')][_0x34d7('0xb5')](_0x57631f[_0x1dfb3c][_0x34d7('0x110')])&&_0x57631f[_0x1dfb3c]['markersStart'][_0x34d7('0xe8')](_0x261ce0),_0x530e71[_0x34d7('0x0')][_0x34d7('0xb5')](_0x57631f[_0x1dfb3c][_0x34d7('0x7f')])&&_0x57631f[_0x1dfb3c][_0x34d7('0xec')][_0x34d7('0xe8')](_0x261ce0);}[_0x34d7('0x48')](_0x5e06fa,_0x1b03fc){let _0x469da2=[],_0x4ea363=0x0,_0x4341ca=0x0;for(;_0x4ea363<_0x5e06fa[_0x34d7('0x4f')]||_0x4341ca<_0x1b03fc[_0x34d7('0x4f')];){const _0x26ec1a=_0x5e06fa[_0x4ea363]||{},_0x40388c=_0x1b03fc[_0x4341ca]||{};if(_0x26ec1a['id']==_0x40388c['id'])_0x4ea363++,_0x4341ca++,_0x469da2['push'](_0x26ec1a);else{if(_0x40388c['isRemoved']&&_0x26ec1a['isAdded']){const {commonTape:_0x5d4bce,iEnd:_0x433a6c,jEnd:_0x5a41bf}=this[_0x34d7('0xd9')](_0x5e06fa,_0x4ea363,_0x1b03fc,_0x4341ca);_0x469da2=_0x469da2[_0x34d7('0xf4')](_0x5d4bce),_0x4ea363=_0x433a6c,_0x4341ca=_0x5a41bf;}else _0x40388c[_0x34d7('0x11e')]?(_0x4341ca++,_0x469da2['push'](_0x40388c)):(_0x4ea363++,_0x469da2[_0x34d7('0xe8')](_0x26ec1a));}}return _0x469da2;}[_0x34d7('0x64')](_0x21fbda,_0x23ac63){const _0x535888=[];for(let _0xab92c8=0x0;_0xab92c8<_0x21fbda[_0x34d7('0x4f')];_0xab92c8++){for(let _0x482337=0x0;_0x482337<_0x21fbda[_0xab92c8]['markersStart'][_0x34d7('0x4f')];_0x482337++){const _0x14aea4=_0x21fbda[_0xab92c8][_0x34d7('0x2b')][_0x482337];if(!_0x23ac63[_0x34d7('0xb3')](_0x14aea4))continue;const {group:_0x2993af,type:_0x14bf3f,authorId:_0x31c473}=_0x104621(_0x14aea4);_0x34d7('0xcb')!=_0x2993af||_0x34d7('0xab')!=_0x14bf3f&&'deletion'!=_0x14bf3f||(_0x535888['unshift']({'type':_0x14bf3f,'name':_0x14aea4,'userId':_0x31c473}),_0x21fbda[_0xab92c8][_0x34d7('0x2b')][_0x34d7('0x121')](_0x482337,0x1),_0x482337--);}_0x38a3d6(_0x21fbda[_0xab92c8]);for(let _0xb18c05=0x0;_0xb18c05<_0x21fbda[_0xab92c8][_0x34d7('0xec')]['length'];_0xb18c05++){const _0x31fa49=_0x21fbda[_0xab92c8][_0x34d7('0xec')][_0xb18c05];if(!_0x23ac63[_0x34d7('0xb3')](_0x31fa49))continue;const {group:_0x1c113e,type:_0x57d435}=_0x104621(_0x31fa49);if(_0x34d7('0xcb')!=_0x1c113e||_0x34d7('0xab')!=_0x57d435&&_0x34d7('0x38')!=_0x57d435)continue;_0x21fbda[_0xab92c8][_0x34d7('0xec')][_0x34d7('0x121')](_0xb18c05,0x1),_0xb18c05--;const _0x3cda9d=_0x535888['findIndex'](_0xc630d8=>_0xc630d8[_0x34d7('0xbc')]==_0x31fa49);_0x3cda9d>-0x1&&_0x535888[_0x34d7('0x121')](_0x3cda9d,0x1);}}function _0x104621(_0x315085){const _0x62ef30=_0x315085[_0x34d7('0x98')](':');return{'group':_0x62ef30[0x0],'type':_0x62ef30[0x1],'subType':_0x62ef30[_0x34d7('0x4f')]>=0x5?_0x62ef30[0x2]:null,'id':_0x62ef30[_0x34d7('0x4f')]<0x5?_0x62ef30[0x2]:_0x62ef30[0x3],'authorId':_0x62ef30[_0x34d7('0x4f')]<0x5?_0x62ef30[0x3]:_0x62ef30[0x4],'markerCount':0x6==_0x62ef30[_0x34d7('0x4f')]?_0x62ef30[0x5]:null};}function _0x38a3d6(_0x32a638){for(let _0x316543=0x0;_0x316543<_0x535888[_0x34d7('0x4f')];_0x316543++){if(_0x32a638[_0x34d7('0x60')]&&'insertion'==_0x535888[_0x316543][_0x34d7('0x27')])return _0x32a638['isAddSuggestion']=_0x535888[_0x316543],void delete _0x32a638[_0x34d7('0x60')];if(!_0x32a638['isAdded']&&!_0x32a638[_0x34d7('0x11e')]&&_0x34d7('0x38')==_0x535888[_0x316543][_0x34d7('0x27')])return void(_0x32a638[_0x34d7('0x6e')]=_0x535888[_0x316543]);}}}[_0x34d7('0x26')](_0x3b6bd2,_0x313337){let _0x1d8689=0x0,_0xdb3d86=!0x1;const _0xf9e3b5=new Map();for(const _0x2e3bf9 of _0x3b6bd2)_0x2e3bf9[_0x313337]?_0xdb3d86&&(_0x1d8689++,_0xdb3d86=!0x1):(_0x1d8689++,_0xdb3d86=!0x0),_0xf9e3b5['set'](_0x2e3bf9['id'],_0x1d8689);for(let _0x402c34=0x0;_0x402c34<_0x3b6bd2['length'];_0x402c34++){if('isRemoved'==_0x313337&&_0x3b6bd2[_0x402c34][_0x34d7('0x60')]||'isAdded'==_0x313337&&_0x3b6bd2[_0x402c34]['isRemoved'])continue;if(_0x34d7('0xed')==_0x3b6bd2[_0x402c34][_0x34d7('0x27')]){_0x3b6bd2[_0x402c34][_0x34d7('0x3c')]=0x0;continue;}const _0x3a6066=_0xf9e3b5[_0x34d7('0x9c')](_0x3b6bd2[_0x402c34][_0x34d7('0x8f')]),_0x5a0e11=_0xf9e3b5[_0x34d7('0x9c')](_0x3b6bd2[_0x402c34]['id']);_0x3b6bd2[_0x402c34][_0x34d7('0x3c')]=_0x3a6066-_0x5a0e11;}}[_0x34d7('0xd2')](_0x4b73cc,_0x313f87,_0x4af29a=!0x1){const _0x1a8338=[];let _0x1453f4=this[_0x34d7('0x21')][_0x34d7('0x42')](_0x4b73cc),_0x49e202=this[_0x34d7('0x21')][_0x34d7('0x42')](_0x313f87);for(-0x1==_0x49e202&&(_0x49e202=this[_0x34d7('0x21')][_0x34d7('0xa8')][_0x34d7('0x4f')],_0x4af29a=!0x1);_0x1453f4<_0x49e202;)_0x1a8338[_0x34d7('0xe8')](this[_0x34d7('0x21')][_0x34d7('0x92')](_0x1453f4)),_0x1453f4++;return _0x4af29a&&_0x1a8338[_0x34d7('0xe8')](this[_0x34d7('0x21')][_0x34d7('0x92')](_0x1453f4)),_0x1a8338;}[_0x34d7('0xd9')](_0xcdbbbf,_0x3555b9,_0x4e93c5,_0x531646){const _0x5d87b2=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x114')];let _0x2b313a=_0x3555b9;for(;_0xcdbbbf[_0x2b313a]&&_0xcdbbbf[_0x2b313a][_0x34d7('0x60')];)_0x2b313a++;let _0x12f83a=_0x531646;for(;_0x4e93c5[_0x12f83a]&&_0x4e93c5[_0x12f83a][_0x34d7('0x11e')];)_0x12f83a++;_0x25316b(_0xcdbbbf,_0x3555b9,_0x2b313a),_0x25316b(_0x4e93c5,_0x531646,_0x12f83a);const _0x38dd49=_0x4e93c5['slice'](_0x531646,_0x12f83a)[_0x34d7('0xf4')](_0xcdbbbf[_0x34d7('0x78')](_0x3555b9,_0x2b313a));return _0x38dd49[_0x34d7('0xe7')]((_0x183bdf,_0x4ba62c)=>_0x183bdf['side']!=_0x4ba62c[_0x34d7('0x82')]?_0x183bdf[_0x34d7('0x82')]-_0x4ba62c['side']:_0x183bdf[_0x34d7('0xf0')]!=_0x4ba62c['level']?_0x183bdf[_0x34d7('0xf0')]-_0x4ba62c['level']:_0x183bdf['distance']!=_0x4ba62c[_0x34d7('0x3c')]?_0x4ba62c['distance']-_0x183bdf['distance']:!!_0x183bdf['isAdded']!=!!_0x4ba62c['isAdded']?-0x1==_0x183bdf['side']||0x0==_0x183bdf[_0x34d7('0x82')]?_0x183bdf['isAdded']?-0x1:0x1:_0x183bdf['isAdded']?0x1:-0x1:_0x183bdf[_0x34d7('0x109')]-_0x4ba62c['index']),{'commonTape':_0x38dd49,'iEnd':_0x2b313a,'jEnd':_0x12f83a};function _0x25316b(_0x4d0fa7,_0x1cf65f,_0x249a26){let _0x3ae440=-0x1,_0x98173e=Number[_0x34d7('0xef')],_0x13b58f=!0x0;for(let _0x103a25=_0x1cf65f;_0x103a25<_0x249a26;_0x103a25++)if(_0x5d87b2[_0x34d7('0x63')](_0x4d0fa7[_0x103a25][_0x34d7('0x8c')])||(_0x13b58f=!0x1),_0x4d0fa7[_0x103a25][_0x34d7('0x8c')]['startIndex']<_0x1cf65f&&(_0x3ae440=_0x103a25),_0x4d0fa7[_0x103a25][_0x34d7('0x8c')][_0x34d7('0x3b')]>=_0x249a26){_0x98173e=_0x103a25;break;}_0x13b58f&&(_0x3ae440=_0x249a26-0x1);for(let _0x96b8c0=_0x1cf65f;_0x96b8c0<_0x249a26;_0x96b8c0++)_0x4d0fa7[_0x96b8c0][_0x34d7('0x82')]=_0x96b8c0<=_0x3ae440?-0x1:_0x96b8c0<_0x98173e?0x0:0x1,_0x4d0fa7[_0x96b8c0]['index']=_0x96b8c0;let _0x5471fe=0x0;for(let _0x159dcb=_0x1cf65f;_0x159dcb<=_0x3ae440;_0x159dcb++)0x0==_0x4d0fa7[_0x159dcb][_0x34d7('0x3c')]?_0x4d0fa7[_0x159dcb][_0x34d7('0xf0')]=_0x5471fe:(_0x5471fe++,_0x4d0fa7[_0x159dcb][_0x34d7('0xf0')]=_0x5471fe,_0x5471fe++);for(let _0x84fd0b=_0x1cf65f;_0x84fd0b<_0x249a26;_0x84fd0b++)0x0==_0x4d0fa7[_0x84fd0b][_0x34d7('0x82')]&&(_0x4d0fa7[_0x84fd0b]['level']=_0x5471fe);_0x5471fe=0x0;for(let _0x400f2c=_0x249a26-0x1;_0x400f2c>=_0x98173e;_0x400f2c--)0x0==_0x4d0fa7[_0x400f2c][_0x34d7('0x3c')]?_0x4d0fa7[_0x400f2c]['level']=_0x5471fe:(_0x5471fe--,_0x4d0fa7[_0x400f2c][_0x34d7('0xf0')]=_0x5471fe,_0x5471fe--);}}['_fixObsoleteTags'](_0x56927d){const _0x2f2c55=new Map(),_0x5e7e26=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x114')];for(let _0x5040d7=0x1;_0x5040d7<_0x56927d[_0x34d7('0x4f')];_0x5040d7++){let _0x2e349f,_0x21f7bd,_0xa0e4e;const _0x16b764=_0x56927d[_0x5040d7],_0x251a14=_0x56927d[_0x5040d7-0x1];if(_0x34d7('0xed')==_0x16b764[_0x34d7('0x27')])continue;if(_0x16b764[_0x34d7('0x27')]!=_0x251a14['type'])continue;if(!_0x5e7e26[_0x34d7('0xeb')](_0x251a14[_0x34d7('0x8c')])||_0x5e7e26[_0x34d7('0x7c')](_0x251a14[_0x34d7('0x8c')]))continue;if(!_0x5e7e26[_0x34d7('0xeb')](_0x16b764[_0x34d7('0x8c')])||_0x5e7e26[_0x34d7('0x7c')](_0x16b764[_0x34d7('0x8c')]))continue;if((_0x56927d[_0x5040d7][_0x34d7('0x60')]||_0x56927d[_0x5040d7][_0x34d7('0x118')])&&_0x56927d[_0x5040d7-0x1]['isRemoved'])_0x2e349f=_0x56927d[_0x5040d7],_0x21f7bd=_0x56927d[_0x5040d7-0x1],_0xa0e4e=_0x5040d7-0x1;else{if(!_0x56927d[_0x5040d7]['isRemoved']||!_0x56927d[_0x5040d7-0x1][_0x34d7('0x60')]&&!_0x56927d[_0x5040d7-0x1][_0x34d7('0x118')])continue;_0x2e349f=_0x56927d[_0x5040d7-0x1],_0x21f7bd=_0x56927d[_0x5040d7],_0xa0e4e=_0x5040d7;}const _0x4bded6=_0x2e349f[_0x34d7('0xf0')]==_0x21f7bd['level'],_0x5c35d8=Math[_0x34d7('0xb2')](_0x2e349f[_0x34d7('0xf0')])<Math[_0x34d7('0xb2')](_0x21f7bd[_0x34d7('0xf0')])&&0x0==_0x21f7bd[_0x34d7('0x3c')];(_0x4bded6||_0x5c35d8)&&(_0x2f2c55[_0x34d7('0x52')](_0x21f7bd['id'],_0x2e349f['id']),_0x56927d['splice'](_0xa0e4e,0x1),_0x5040d7--,_0x2e349f['isAdded']=!0x1);}for(let _0x42a86c=0x0;_0x42a86c<_0x56927d[_0x34d7('0x4f')];_0x42a86c++)_0x2f2c55['has'](_0x56927d[_0x42a86c][_0x34d7('0x8f')])&&(_0x56927d[_0x42a86c][_0x34d7('0x8f')]=_0x2f2c55['get'](_0x56927d[_0x42a86c]['pairId']));}['_removeMissingPairs'](_0x3fcee3){const _0x40e5ad=new Set(_0x3fcee3[_0x34d7('0x50')](_0x486700=>_0x486700['id']));for(let _0x391f5e=0x0;_0x391f5e<_0x3fcee3[_0x34d7('0x4f')];_0x391f5e++)_0x40e5ad[_0x34d7('0xb3')](_0x3fcee3[_0x391f5e]['pairId'])||0x0==_0x3fcee3[_0x391f5e][_0x34d7('0x3c')]||(_0x3fcee3[_0x391f5e][_0x34d7('0x3f')]=!0x0);return _0x3fcee3[_0x34d7('0x3e')](_0x3810fa=>!_0x3810fa[_0x34d7('0x3f')]);}[_0x34d7('0x25')](_0x53cfc6){const _0x242b01=new Set();for(let _0x50d897=0x0;_0x50d897<_0x53cfc6['length'];_0x50d897++){if(_0x242b01['has'](_0x53cfc6[_0x50d897]['id'])&&_0x53cfc6[_0x50d897][_0x34d7('0x11e')]&&(_0x53cfc6[_0x50d897][_0x34d7('0x3f')]=!0x0),_0x53cfc6[_0x50d897][_0x34d7('0x3f')])continue;if(0x0==_0x53cfc6[_0x50d897][_0x34d7('0x3c')])continue;if('elementStart'!=_0x53cfc6[_0x50d897][_0x34d7('0x27')])continue;if(null==_0x53cfc6[_0x50d897][_0x34d7('0x8f')])continue;let _0xc63829=_0x50d897+0x1,_0x5232fd=0x0;for(;_0x53cfc6[_0xc63829]['id']!=_0x53cfc6[_0x50d897][_0x34d7('0x8f')];)_0x34d7('0x99')==_0x53cfc6[_0xc63829][_0x34d7('0x27')]?_0x5232fd++:_0x34d7('0x111')==_0x53cfc6[_0xc63829]['type']&&_0x5232fd--,_0xc63829++;if(0x0!=_0x5232fd){if(_0x53cfc6[_0x50d897][_0x34d7('0x11e')])_0x53cfc6[_0x50d897][_0x34d7('0x3f')]=!0x0;else for(;_0xc63829!=_0x50d897;)_0x53cfc6[_0xc63829][_0x34d7('0x11e')]&&0x0!=_0x53cfc6[_0xc63829][_0x34d7('0x3c')]&&(_0x53cfc6[_0xc63829][_0x34d7('0x3f')]=!0x0,_0x242b01[_0x34d7('0xde')](_0x53cfc6[_0xc63829][_0x34d7('0x8f')])),_0xc63829--;}}return _0x53cfc6[_0x34d7('0x3e')](_0x47f79f=>!_0x47f79f[_0x34d7('0x3f')]);}[_0x34d7('0xc9')](_0x23fa24){const _0x5a19fb=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x114')];for(let _0x389fa2=0x0;_0x389fa2<_0x23fa24[_0x34d7('0x4f')];_0x389fa2++){if(!(_0x23fa24[_0x389fa2][_0x34d7('0x60')]||_0x23fa24[_0x389fa2][_0x34d7('0x118')]||_0x23fa24[_0x389fa2]['isRemoved']||_0x23fa24[_0x389fa2]['isRemoveSuggestion']))continue;if(0x0==_0x23fa24[_0x389fa2][_0x34d7('0x3c')])continue;const _0x36bb2e=_0x23fa24[_0x389fa2]['item'];_0x5a19fb[_0x34d7('0xeb')](_0x36bb2e)||_0x5a19fb[_0x34d7('0x7c')](_0x36bb2e)||(_0x23fa24[_0x389fa2][_0x34d7('0x60')]&&delete _0x23fa24[_0x389fa2]['isAdded'],_0x23fa24[_0x389fa2][_0x34d7('0x118')]&&delete _0x23fa24[_0x389fa2][_0x34d7('0x118')],_0x23fa24[_0x389fa2][_0x34d7('0x6e')]&&delete _0x23fa24[_0x389fa2][_0x34d7('0x6e')],_0x23fa24[_0x389fa2][_0x34d7('0x11e')]&&(_0x23fa24[_0x389fa2][_0x34d7('0x3f')]=!0x0));}return _0x23fa24['filter'](_0x2d8413=>!_0x2d8413[_0x34d7('0x3f')]);}['_makeModelFromTape'](_0x1484fc,_0x926afd,_0x3ddfe9){const _0x105e5e=new _0x2914f6(),_0x53da04=[],_0x528879=new Map(),_0x30144c=this['editor'][_0x34d7('0x117')],_0x5a4131=_0x30144c[_0x34d7('0x114')],_0x310495=[_0x105e5e],_0x4ebd2a={},_0x15acd5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4ac2a2=null;const _0x4198ec=[0x0];for(let _0x1b4aa0=0x0;_0x1b4aa0<_0x1484fc[_0x34d7('0x4f')];_0x1b4aa0++){let _0x18247c,_0x3abe6a;if(_0x34d7('0x99')===_0x1484fc[_0x1b4aa0][_0x34d7('0x27')]){_0x18247c=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec);const _0x5a6334=new _0xa820f6(_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')][_0x34d7('0xbc')],_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')][_0x34d7('0x49')]());_0x310495[0x0][_0x34d7('0xbf')](_0x5a6334),_0x4198ec['push'](0x0),_0x310495['unshift'](_0x5a6334),_0x3abe6a=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec),_0x4ac2a2=null;}else{if(_0x34d7('0x111')===_0x1484fc[_0x1b4aa0]['type'])_0x310495[_0x34d7('0x43')](),_0x18247c=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec),_0x4198ec['pop'](),_0x4198ec[_0x4198ec[_0x34d7('0x4f')]-0x1]++,_0x3abe6a=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec),_0x4ac2a2=null;else{if(_0x18247c=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec),_0x4ac2a2&&_0x5d66f4(_0x4ac2a2,_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')]))_0x4ac2a2[_0x34d7('0xd7')]+=_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')][_0x34d7('0x105')];else{const _0x2df433=new _0x2170a2(_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')][_0x34d7('0x105')],_0x1484fc[_0x1b4aa0]['item'][_0x34d7('0x49')]());_0x310495[0x0][_0x34d7('0xbf')](_0x2df433),_0x4ac2a2=_0x2df433;}_0x4198ec[_0x4198ec[_0x34d7('0x4f')]-0x1]+=_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')][_0x34d7('0x115')],_0x3abe6a=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec);}}for(const _0xdfb398 of _0x1484fc[_0x1b4aa0]['markersStart'])_0x528879[_0x34d7('0x52')](_0xdfb398,{'start':_0x18247c,'end':null});_0x2fc98b('isRemoveSuggestion',_0x1b4aa0,_0x18247c,_0x3abe6a),_0x2fc98b(_0x34d7('0x118'),_0x1b4aa0,_0x18247c,_0x3abe6a),_0x2fc98b(_0x34d7('0x11e'),_0x1b4aa0,_0x18247c,_0x3abe6a),_0x2fc98b('isAdded',_0x1b4aa0,_0x18247c,_0x3abe6a);for(const _0x4c8bc1 of _0x1484fc[_0x1b4aa0][_0x34d7('0xec')]){_0x528879['get'](_0x4c8bc1)['end']=_0x3abe6a;}}for(const [_0x38f0ee,_0x5de539]of _0x528879){const _0x5d2ada=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x74')](_0x5de539[_0x34d7('0x61')],_0x5de539[_0x34d7('0x0')]);_0x105e5e[_0x34d7('0x2a')][_0x34d7('0x52')](_0x38f0ee,_0x5d2ada);}return _0x53da04[_0x34d7('0xe7')]((_0x2f955b,_0xe92bf3)=>{const _0x535713=_0x105e5e[_0x34d7('0x2a')][_0x34d7('0x9c')]('revision:'+_0x2f955b['id']),_0x282510=_0x105e5e[_0x34d7('0x2a')][_0x34d7('0x9c')](_0x34d7('0xb')+_0xe92bf3['id']);return _0x535713[_0x34d7('0x61')][_0x34d7('0x73')](_0x282510[_0x34d7('0x61')])?-0x1:_0x535713['start'][_0x34d7('0x24')](_0x282510[_0x34d7('0x61')])?0x1:_0x535713['end'][_0x34d7('0x73')](_0x282510[_0x34d7('0x0')])?-0x1:_0x535713[_0x34d7('0x0')][_0x34d7('0x24')](_0x282510['end'])?0x1:_0x34d7('0xde')===_0x2f955b[_0x34d7('0x27')]?-0x1:0x1;}),{'root':_0x105e5e,'changes':_0x53da04};function _0x2fc98b(_0x5025c3,_0x189e08,_0x3c230c,_0x2a4282){const _0x2df924=!!_0x1484fc[_0x189e08][_0x5025c3],_0x294c02=_0x2df924?_0x1484fc[_0x189e08][_0x5025c3][_0x34d7('0x2d')]:null,_0x1a718c=_0x189e08===_0x1484fc[_0x34d7('0x4f')]-0x1,_0x3b8a0e=_0x15acd5[_0x5025c3][0x0],_0x316aaa=_0x5a4131[_0x34d7('0xc1')](_0x1484fc[_0x189e08][_0x34d7('0x8c')]);!_0x4ebd2a[_0x5025c3]&&_0x2df924?_0x4ebd2a[_0x5025c3]={'start':_0x3c230c,'tapeItem':_0x1484fc[_0x189e08],'userId':_0x294c02,'type':_0x5025c3}:_0x4ebd2a[_0x5025c3]&&!_0x2df924?(_0x4ebd2a[_0x5025c3]['end']=_0x3c230c,_0x3378c8(_0x4ebd2a[_0x5025c3]),_0x4ebd2a[_0x5025c3]=null):_0x4ebd2a[_0x5025c3]&&_0x2df924&&_0x4ebd2a[_0x5025c3]['userId']!==_0x294c02&&(_0x4ebd2a[_0x5025c3][_0x34d7('0x0')]=_0x3c230c,_0x3b8a0e&&_0x3b8a0e['userId']===_0x4ebd2a[_0x5025c3][_0x34d7('0x2d')]||_0x3378c8(_0x4ebd2a[_0x5025c3]),_0x4ebd2a[_0x5025c3]={'start':_0x3c230c,'tapeItem':_0x1484fc[_0x189e08],'userId':_0x294c02,'type':_0x5025c3}),_0x4ebd2a[_0x5025c3]&&_0x316aaa&&(_0x34d7('0x99')!==_0x1484fc[_0x189e08]['type']||_0x3b8a0e&&_0x3b8a0e[_0x34d7('0x2d')]===_0x294c02||_0x15acd5[_0x5025c3][_0x34d7('0xa0')]({'userId':_0x294c02,'object':_0x1484fc[_0x189e08]['item'],'change':_0x4ebd2a[_0x5025c3]}),'elementEnd'===_0x1484fc[_0x189e08][_0x34d7('0x27')]&&_0x3b8a0e&&_0x3b8a0e[_0x34d7('0x3')]===_0x1484fc[_0x189e08][_0x34d7('0x8c')]&&(_0x15acd5[_0x5025c3][_0x34d7('0x43')](),_0x4ebd2a[_0x5025c3]=_0x3b8a0e['change'])),_0x4ebd2a[_0x5025c3]&&_0x1a718c&&(_0x4ebd2a[_0x5025c3][_0x34d7('0x0')]=_0x2a4282,_0x3378c8(_0x4ebd2a[_0x5025c3]),_0x4ebd2a[_0x5025c3]=null);}function _0x3378c8({start:_0x3da0ce,end:_0x378f23,tapeItem:_0x436a63,userId:_0x19b838,type:_0x9c70e1}){const _0x45b76c=_0x436a63[_0x34d7('0x8c')],_0x68af0e=_0x30144c[_0x34d7('0x114')][_0x34d7('0xeb')](_0x45b76c)&&!_0x30144c[_0x34d7('0x114')][_0x34d7('0x7c')](_0x45b76c),_0xf08451=_0x3da0ce[_0x34d7('0xcc')]==_0x378f23[_0x34d7('0x83')]&&_0x378f23[_0x34d7('0x1a')];if(_0x68af0e&&_0xf08451)return;const _0x28d3ad=_0x30144c['createRange'](_0x3da0ce,_0x378f23),_0x1d61ec=_0x926afd['get'](_0x19b838),_0xf756be=new _0x3711f3({'author':_0x1d61ec,'type':_0x34d7('0x60')==_0x9c70e1||_0x34d7('0x118')==_0x9c70e1?_0x34d7('0xde'):_0x34d7('0xf9'),'data':{'isSuggestion':_0x34d7('0x118')==_0x9c70e1||'isRemoveSuggestion'==_0x9c70e1},'createdAt':new Date(),'rootName':_0x3ddfe9});_0x53da04[_0x34d7('0xe8')](_0xf756be),_0x105e5e[_0x34d7('0x2a')][_0x34d7('0x52')]('revision:'+_0xf756be['id'],_0x28d3ad);}function _0x5d66f4(_0x50fb66,_0xcc1622){const _0x3b1694=_0x50fb66['getAttributes'](),_0x589dea=_0xcc1622[_0x34d7('0x49')]();for(const _0x50717c of _0x3b1694){if(_0x50717c[0x1]!==_0xcc1622[_0x34d7('0xf8')](_0x50717c[0x0]))return!0x1;_0x589dea[_0x34d7('0x8b')]();}return _0x589dea[_0x34d7('0x8b')]()[_0x34d7('0xdf')];}}[_0x34d7('0x7a')](){this[_0x34d7('0xa7')][_0x34d7('0xb0')]['for'](_0x34d7('0xca'))[_0x34d7('0xe6')]({'view':'revision'}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')](_0x34d7('0x1'))[_0x34d7('0x58')]({'model':_0x34d7('0x94'),'view':_0x28282d=>{const _0x32d194=_0x28282d['markerName'][_0x34d7('0x98')](':')[0x1],_0x3d8740=this[_0x34d7('0x89')](_0x32d194);if(!_0x3d8740)return null;const _0x229fc9='add'==_0x3d8740[_0x34d7('0x27')]?'insertion':_0x34d7('0x38'),_0x1f2b80=['ck-suggestion-marker',_0x34d7('0xd8')+_0x229fc9];return _0x3d8740[_0x34d7('0x105')][_0x34d7('0x9d')]&&_0x1f2b80['push']('ck-suggestion-marker-'+_0x229fc9+_0x34d7('0x8d')),this[_0x34d7('0xe1')]==_0x3d8740&&_0x1f2b80[_0x34d7('0xe8')](_0x34d7('0x10d')),{'classes':_0x1f2b80,'attributes':{'data-change-id':_0x32d194}};}}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')](_0x34d7('0xca'))[_0x34d7('0xde')](_0x4c454b=>{_0x4c454b['on'](_0x34d7('0x93'),(_0x2614ed,_0x141c0b,_0x3bd3e7)=>{const _0x13b0e0=_0x141c0b[_0x34d7('0x46')][_0x34d7('0xee')](0x0);if(!_0x13b0e0||!_0x13b0e0['is'](_0x34d7('0xae'),_0x34d7('0xba')))return;if(!_0x3bd3e7[_0x34d7('0x9b')][_0x34d7('0x11')](_0x13b0e0,{'attributes':[_0x34d7('0x65'),_0x34d7('0xc8')]}))return;const _0x400fba=_0x141c0b[_0x34d7('0x10a')]['start'][_0x34d7('0xcc')];_0x3bd3e7['writer'][_0x34d7('0x4b')](_0x34d7('0x65'),_0x13b0e0[_0x34d7('0xf8')](_0x34d7('0x65')),_0x400fba),_0x3bd3e7[_0x34d7('0x6d')][_0x34d7('0x4b')](_0x34d7('0xc8'),_0x13b0e0[_0x34d7('0xf8')](_0x34d7('0xc8')),_0x400fba);},{'priority':_0x34d7('0x35')});}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')]('upcast')[_0x34d7('0xde')](_0x4a0451=>{_0x4a0451['on'](_0x34d7('0xae'),(_0x1f1541,_0x2ec2ca,_0x293043)=>{if(!_0x293043[_0x34d7('0x9b')][_0x34d7('0x11')](_0x2ec2ca[_0x34d7('0x46')],{'attributes':[_0x34d7('0x65'),_0x34d7('0xc8')]}))return;if(_0x2ec2ca[_0x34d7('0x10a')]['isCollapsed'])return;const _0x412238=_0x2ec2ca[_0x34d7('0x10a')][_0x34d7('0x61')]['nodeAfter'];_0x412238['hasAttribute'](_0x34d7('0x65'))||_0x412238[_0x34d7('0x22')](_0x34d7('0x84'))||(_0x293043[_0x34d7('0x6d')][_0x34d7('0x4b')](_0x34d7('0x65'),_0x2ec2ca[_0x34d7('0x46')]['getAttribute']('vid_start'),_0x412238),_0x293043[_0x34d7('0x6d')]['setAttribute']('vid_end',_0x2ec2ca['viewItem'][_0x34d7('0xf8')]('vid_end'),_0x412238));},{'priority':'low'});}),this[_0x34d7('0xa7')]['conversion'][_0x34d7('0xbb')](_0x34d7('0xca'))['elementToAttribute']({'view':{'name':_0x34d7('0xad'),'attributes':{'vid':!0x0}},'model':{'key':_0x34d7('0x84'),'value':_0x9e65ea=>_0x9e65ea['getAttribute'](_0x34d7('0x84'))}}),this['editor'][_0x34d7('0x117')][_0x34d7('0x114')]['on'](_0x34d7('0xa9'),(_0x3c2c38,[,_0x262883])=>{[_0x34d7('0x65'),'vid_end',_0x34d7('0x84')][_0x34d7('0x6')](_0x262883)&&(_0x3c2c38[_0x34d7('0x101')]=!0x0,_0x3c2c38[_0x34d7('0x2f')]());},{'priority':_0x34d7('0x102')}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')](_0x34d7('0x88'))[_0x34d7('0xde')](_0x550e31=>{_0x550e31['on']('attribute:vid',(_0x461bf9,_0x3fdf34,_0x8713b6)=>{if('\x20'!=_0x3fdf34['item'][_0x34d7('0x105')]||_0x3fdf34[_0x34d7('0x8c')][_0x34d7('0x83')][_0x34d7('0x1d')]>0x1)return;if(!_0x8713b6[_0x34d7('0x9b')]['consume'](_0x3fdf34[_0x34d7('0x8c')],_0x461bf9['name']))return;const _0x4e5a8d=_0x8713b6[_0x34d7('0x6d')],_0x2cd4fe=_0x8713b6[_0x34d7('0xbd')][_0x34d7('0x10c')](_0x3fdf34['range']);_0x4e5a8d[_0x34d7('0xb9')](_0x2cd4fe,_0x4e5a8d[_0x34d7('0x86')]('span'));});}),this[_0x34d7('0xa7')]['conversion'][_0x34d7('0xbb')](_0x34d7('0x88'))[_0x34d7('0x1f')]({'model':'revision'}),this['editor']['editing'][_0x34d7('0x11a')]['on'](_0x34d7('0xa5'),function(_0x60d737){const _0x1dd6cd=_0x60d737[_0x34d7('0xd')][_0x34d7('0x9c')](_0x34d7('0x4e'));return(_0x3e1cbc,_0x2ef820,_0x20c04e)=>{const _0x43ba25=_0x2ef820['markerName'][_0x34d7('0x98')](':')[0x1],_0x280a78=_0x1dd6cd[_0x34d7('0x89')](_0x43ba25);if(!_0x280a78)return null;const _0xdc6ea4=_0x34d7('0xde')==_0x280a78[_0x34d7('0x27')]?'split':_0x34d7('0xe9');if(!_0x20c04e[_0x34d7('0x9b')][_0x34d7('0xe')](_0x2ef820[_0x34d7('0x6f')],_0x3e1cbc['name']))return;const _0x1a2c5b=_0x2ef820[_0x34d7('0x6f')][_0x34d7('0x11d')](),_0x344ac3=_0x2ef820[_0x34d7('0x6f')][_0x34d7('0x61')],_0x4d708c=_0x60d737['model'][_0x34d7('0x114')];let _0x52b7a4=null,_0x187c61=null,_0x124567=!0x1,_0x4bb77c=!0x1;for(const _0xf6db84 of _0x1a2c5b){const _0x4c81cf=_0xf6db84[_0x34d7('0x8c')];_0x124567=_0x124567||_0x4d708c[_0x34d7('0xc5')](_0x4c81cf);const _0x1f9591=_0x20c04e[_0x34d7('0xbd')][_0x34d7('0x28')](_0x4c81cf);if(_0x1f9591&&_0x1f9591[_0x34d7('0xda')]('addHighlight'))return;_0x34d7('0x111')==_0xf6db84['type']&&(_0x4d708c[_0x34d7('0xeb')](_0x4c81cf)&&!_0x4d708c[_0x34d7('0x7c')](_0x4c81cf)&&(_0x4c81cf[_0x34d7('0x18')]||_0x344ac3[_0x34d7('0xc3')]?_0x52b7a4&&_0x52b7a4[_0x34d7('0x83')]==_0x4c81cf||(_0x52b7a4=_0x4c81cf,_0x163dd8(_0xf6db84[_0x34d7('0x110')]),_0x4bb77c=!0x0):_0x187c61=_0x187c61||_0xf6db84['previousPosition']));}function _0x163dd8(_0x707c4a){const _0x1fd55f=_0x20c04e['writer'][_0x34d7('0xa6')](_0x34d7('0xad'),{'class':_0x34d7('0xd8')+_0xdc6ea4}),_0x14171f=_0x20c04e[_0x34d7('0xbd')][_0x34d7('0x56')](_0x707c4a);_0x280a78['data'][_0x34d7('0x9d')]&&_0x20c04e[_0x34d7('0x6d')]['addClass'](_0x34d7('0xd8')+_0xdc6ea4+_0x34d7('0x8d'),_0x1fd55f),_0x1dd6cd[_0x34d7('0xe1')]==_0x280a78&&_0x20c04e[_0x34d7('0x6d')][_0x34d7('0x12')](_0x34d7('0x10d'),_0x1fd55f),_0x20c04e[_0x34d7('0x6d')][_0x34d7('0x72')](_0x14171f,_0x1fd55f),_0x20c04e[_0x34d7('0xbd')][_0x34d7('0x59')](_0x1fd55f,_0x2ef820[_0x34d7('0xd6')]);}_0x124567||_0x4bb77c||!_0x187c61||_0x163dd8(_0x187c61);};}(this[_0x34d7('0xa7')]),{'priority':'high'}),this[_0x34d7('0xa7')]['editing'][_0x34d7('0x11a')]['on']('removeMarker:revision',(_0x41a78f,_0x1aa3cb,_0x7ae9eb)=>{const _0x7a216b=_0x7ae9eb[_0x34d7('0xbd')][_0x34d7('0x85')](_0x1aa3cb['markerName']);if(_0x7a216b)for(const _0x5357fd of _0x7a216b)(_0x5357fd[_0x34d7('0x34')](_0x34d7('0x116'))||_0x5357fd[_0x34d7('0x34')](_0x34d7('0x112')))&&(_0x7ae9eb['mapper']['unbindElementFromMarkerName'](_0x5357fd,_0x1aa3cb[_0x34d7('0xd6')]),_0x7ae9eb[_0x34d7('0x6d')][_0x34d7('0xf9')](_0x5357fd));},{'priority':_0x34d7('0xd0')}),this['editor'][_0x34d7('0x3d')][_0x34d7('0x11a')]['on']('addMarker:revision',(_0x17e2f3,_0x16b05f,_0x9e6d2)=>{const _0x194a8e=_0x16b05f['markerName'][_0x34d7('0x98')](':')[0x1],_0x3143fd=this[_0x34d7('0x89')](_0x194a8e);if(!_0x3143fd)return null;const _0x508ca8=_0x34d7('0xde')==_0x3143fd['type']?_0x34d7('0x98'):_0x34d7('0xe9');if(_0x9e6d2[_0x34d7('0x9b')][_0x34d7('0xe')](_0x16b05f['markerRange'],_0x17e2f3[_0x34d7('0xbc')]))for(const _0x2c627e of _0x16b05f[_0x34d7('0x6f')][_0x34d7('0xaf')]()){if(!_0x2c627e['is']('element',_0x34d7('0x5c')))continue;const _0x449423=_0x9e6d2[_0x34d7('0x6d')]['createUIElement']('span',{'class':_0x34d7('0xd8')+_0x508ca8}),_0x38de5a=_0x9e6d2[_0x34d7('0xbd')][_0x34d7('0x56')](this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0xfb')](_0x2c627e));_0x3143fd['data'][_0x34d7('0x9d')]&&_0x9e6d2[_0x34d7('0x6d')][_0x34d7('0x12')](_0x34d7('0xd8')+_0x508ca8+'-new',_0x449423),this[_0x34d7('0xe1')]==_0x3143fd&&_0x9e6d2[_0x34d7('0x6d')][_0x34d7('0x12')]('ck-suggestion-marker--active',_0x449423),_0x9e6d2[_0x34d7('0x6d')]['insert'](_0x38de5a,_0x449423),_0x9e6d2[_0x34d7('0xbd')][_0x34d7('0x59')](_0x449423,_0x16b05f['markerName']);}},{'priority':_0x34d7('0xd0')}),this['editor'][_0x34d7('0x117')][_0x34d7('0x67')]['on'](_0x34d7('0xf2'),()=>{this['editor'][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0xf2')](_0x2b33ee=>{for(const _0x12866a of this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x67')][_0x34d7('0x107')]()){const _0x4dc015=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x67')][_0x34d7('0x51')](_0x12866a),_0x310239=this[_0x34d7('0xa7')][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0x67')][_0x34d7('0x51')](_0x12866a);if(_0x310239){const _0x5039cd=_0x4dc015['getAttribute'](_0x34d7('0xac'));if(_0x2b33ee['removeAttribute'](_0x34d7('0x10b'),_0x310239),_0x2b33ee[_0x34d7('0xa2')](_0x34d7('0xe2'),_0x310239),_0x2b33ee['removeClass'](_0x34d7('0x91'),_0x310239),_0x2b33ee['removeClass']('ck-revision-history-root--active',_0x310239),_0x5039cd){const _0x5d7e34=this['_getChangeFromId'](_0x5039cd);if(!_0x5d7e34)return null;_0x2b33ee['setAttribute']('data-change-id',_0x5039cd,_0x310239),_0x2b33ee[_0x34d7('0x12')]('ck-revision-history-root-'+_0x5d7e34[_0x34d7('0x27')],_0x310239),this['activeChange']==_0x5d7e34&&_0x2b33ee['addClass'](_0x34d7('0xfe'),_0x310239);}}}});}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')](_0x34d7('0xca'))['dataToMarker']({'view':_0x34d7('0xaa'),'model':_0x358af6=>_0x34d7('0x66')+_0x358af6,'converterPriority':_0x34d7('0x102')}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')]('upcast')[_0x34d7('0xe6')]({'view':_0x34d7('0x4d'),'model':_0x3f6bdd=>_0x34d7('0xe3')+_0x3f6bdd,'converterPriority':'highest'}),this['editor'][_0x34d7('0xb0')]['for'](_0x34d7('0x88'))['markerToData']({'model':_0x34d7('0xcb'),'view':_0x52d73e=>({'name':_0x34d7('0x8a')+_0x52d73e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')](_0x34d7('0x1'))['markerToHighlight']({'model':_0x34d7('0xcb'),'view':_0x2ce227=>{const _0x2e7476=_0x2ce227[_0x34d7('0xd6')][_0x34d7('0x98')](':')[0x1];return'insertion'!=_0x2e7476&&_0x34d7('0x38')!=_0x2e7476?null:{'classes':[_0x34d7('0x23'),_0x34d7('0x5b')+_0x2e7476]};}}),this['editor'][_0x34d7('0x3d')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this['editor'],'merge'),{'priority':_0x34d7('0xd0')}),this[_0x34d7('0xa7')]['editing'][_0x34d7('0x11a')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x34d7('0xa7')],_0x34d7('0x98')),{'priority':_0x34d7('0xd0')}),this[_0x34d7('0xa7')][_0x34d7('0x3d')][_0x34d7('0x11a')]['on'](_0x34d7('0x41'),(_0x13c98f,_0x3d3ad3,_0x102e63)=>{const _0x5cc8c5=_0x102e63[_0x34d7('0xbd')][_0x34d7('0x85')](_0x3d3ad3[_0x34d7('0xd6')]);if(_0x5cc8c5)for(const _0x296b20 of _0x5cc8c5)_0x296b20['is'](_0x34d7('0xf5'))&&(_0x102e63[_0x34d7('0xbd')][_0x34d7('0x68')](_0x296b20,_0x3d3ad3[_0x34d7('0xd6')]),_0x102e63[_0x34d7('0x6d')][_0x34d7('0xf9')](_0x296b20));},{'priority':_0x34d7('0xd0')});}[_0x34d7('0x89')](_0x34e197){return this[_0x34d7('0xdd')][_0x34d7('0x9c')](_0x34e197);}[_0x34d7('0x10')](_0x5b2c16){return this[_0x34d7('0x9a')]&&this['_changeView'][_0x34d7('0x4a')](),this[_0x34d7('0x9a')]=new _0x21bbee(this[_0x34d7('0xa7')]['locale'],_0x5b2c16),this[_0x34d7('0x9a')];}[_0x34d7('0x87')](){this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x67')]['selection'][_0x34d7('0x19')](_0x34d7('0x94')),this['on']('change:activeView',(_0x41db45,_0xfb40a6,_0x34cd1a,_0x840b6c)=>{_0x840b6c&&this[_0x34d7('0xf6')]['remove'](_0x840b6c),_0x34cd1a&&(this[_0x34d7('0xf6')][_0x34d7('0xde')]({'view':_0x34cd1a,'stackId':_0x34d7('0x75'),'position':{'target':()=>{const _0x43bfce=this[_0x34d7('0xa7')][_0x34d7('0x3d')],_0x5f13af=this['_getChangeFromId'](_0x34cd1a[_0x34d7('0x44')]);let _0x3ca6e5;if(_0x5f13af[_0x34d7('0x105')]['isOnRoot']){const _0x38de5f=_0x43bfce[_0x34d7('0xf3')][_0x34d7('0xea')](_0x5f13af['rootName']);_0x3ca6e5=Array[_0x34d7('0x5d')](_0x38de5f[_0x34d7('0x6c')]());}else{const _0x3c36fc=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x2a')]['get'](_0x34d7('0xb')+_0x34cd1a[_0x34d7('0x44')]);_0x3ca6e5=Array[_0x34d7('0x5d')](_0x43bfce['mapper']['markerNameToElements'](_0x3c36fc[_0x34d7('0xbc')]))[_0x34d7('0x50')](_0x493b1c=>_0x43bfce[_0x34d7('0xf3')][_0x34d7('0x5f')][_0x34d7('0x6b')](_0x493b1c))['map'](_0x113037=>Array['from'](_0x113037[_0x34d7('0x6c')]()))[_0x34d7('0x53')]();}if(!this[_0x34d7('0x4')])return _0x3ca6e5[0x0];return _0x3ca6e5[_0x34d7('0x54')](_0x2f5f4f=>_0x2f5f4f[_0x34d7('0xb7')]-0x3<=this[_0x34d7('0x4')]['y']&&_0x2f5f4f[_0x34d7('0xd4')]+0x3>=this[_0x34d7('0x4')]['y']&&_0x2f5f4f['left']-0x3<=this['_activeViewTarget']['x']&&_0x2f5f4f[_0x34d7('0xa3')]+0x3>=this[_0x34d7('0x4')]['x'])||_0x3ca6e5[0x0];}}}),this[_0x34d7('0xf6')]['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4af479,_0x240b70,_0x150fbe,_0x428c3c)=>{this['activeView']=_0x150fbe?this['_getViewForChange'](_0x150fbe):null,this[_0x34d7('0xa7')]['model'][_0x34d7('0xf2')](()=>{const _0x37eb9c=this['editor'][_0x34d7('0x3d')];_0x428c3c&&(_0x428c3c[_0x34d7('0x105')][_0x34d7('0x7e')]?_0x37eb9c['view'][_0x34d7('0xf2')](_0x473473=>{_0x473473[_0x34d7('0xa2')](_0x34d7('0xfe'),_0x37eb9c['view'][_0x34d7('0x67')][_0x34d7('0x51')](_0x428c3c[_0x34d7('0x15')]));}):_0x37eb9c[_0x34d7('0xa')](_0x34d7('0xb')+_0x428c3c['id'])),_0x150fbe&&(_0x150fbe[_0x34d7('0x105')][_0x34d7('0x7e')]?_0x37eb9c[_0x34d7('0xf3')][_0x34d7('0xf2')](_0x411e28=>{_0x411e28['addClass'](_0x34d7('0xfe'),_0x37eb9c[_0x34d7('0xf3')][_0x34d7('0x67')]['getRoot'](_0x150fbe[_0x34d7('0x15')]));}):_0x37eb9c[_0x34d7('0xa')](_0x34d7('0xb')+_0x150fbe['id']));});}),this['listenTo'](this['editor'][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0x67')],_0x34d7('0x79'),(_0x251037,_0x32fcc9)=>{if(this[_0x34d7('0xe1')])return;const _0x19def3=this[_0x34d7('0xc7')](_0x32fcc9[_0x34d7('0x103')]),_0x161d75=this[_0x34d7('0xdd')]['get'](_0x19def3);_0x161d75?(this[_0x34d7('0x4')]={'x':_0x32fcc9[_0x34d7('0x106')]['x'],'y':_0x32fcc9[_0x34d7('0x106')]['y']},this[_0x34d7('0xdc')]=this[_0x34d7('0x10')](_0x161d75)):(this[_0x34d7('0x4')]=null,this[_0x34d7('0xdc')]=null);}),this[_0x34d7('0x2e')](this['editor'][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0x67')],_0x34d7('0xc2'),(_0x47860a,_0x475a6a)=>{const _0x3ce9bc=this[_0x34d7('0xc7')](_0x475a6a[_0x34d7('0x103')]),_0x57e9d9=this['_changeIdToChange']['get'](_0x3ce9bc);_0x57e9d9?(this[_0x34d7('0x4')]={'x':_0x475a6a[_0x34d7('0x106')]['x'],'y':_0x475a6a[_0x34d7('0x106')]['y']},_0x57e9d9===this[_0x34d7('0xe1')]?this[_0x34d7('0xf6')][_0x34d7('0x7b')]():this[_0x34d7('0xe1')]=_0x57e9d9):(this['_activeViewTarget']=null,this[_0x34d7('0xe1')]=null);});}[_0x34d7('0xc7')](_0xd100cd){do{const _0x22be0e=_0xd100cd[_0x34d7('0xf8')](_0x34d7('0x10b'));if(_0x22be0e)return _0x22be0e;_0xd100cd=_0xd100cd[_0x34d7('0x83')];}while(_0xd100cd);return null;}['_cleanMarkers'](){this[_0x34d7('0xa7')]['model'][_0x34d7('0xf2')](_0x2d4c0d=>{for(const _0x36b8d8 of this['editor'][_0x34d7('0x117')]['markers'])_0x2d4c0d[_0x34d7('0x10e')](_0x36b8d8);});}}function et(_0x479007,_0x5cfa9d){return(_0xc7dc20,_0x2952ea,_0x3930cd)=>{if(!_0x3930cd[_0x34d7('0x9b')]['test'](_0x2952ea[_0x34d7('0x6f')],_0xc7dc20['name']))return;const _0x3263aa=_0x2952ea[_0x34d7('0x6f')][_0x34d7('0x11d')](),_0x2f568c=_0x2952ea[_0x34d7('0x6f')][_0x34d7('0x61')],_0x3377f9=_0x479007[_0x34d7('0x117')][_0x34d7('0x114')];let _0x56ddec=null,_0x1c3de1=null,_0x10dcd1=!0x1,_0x563d61=!0x1;for(const _0x46238a of _0x3263aa){const _0x1cb89c=_0x46238a[_0x34d7('0x8c')];_0x10dcd1=_0x10dcd1||_0x3377f9['isContent'](_0x1cb89c);const _0x16976c=_0x3930cd[_0x34d7('0xbd')][_0x34d7('0x28')](_0x1cb89c);if(_0x16976c&&_0x16976c[_0x34d7('0xda')](_0x34d7('0xe5')))return;_0x34d7('0x111')==_0x46238a[_0x34d7('0x27')]&&(_0x3377f9[_0x34d7('0xeb')](_0x1cb89c)&&!_0x3377f9[_0x34d7('0x7c')](_0x1cb89c)&&(_0x1cb89c['nextSibling']||_0x2f568c[_0x34d7('0xc3')]?_0x56ddec&&_0x56ddec[_0x34d7('0x83')]==_0x1cb89c||(_0x56ddec=_0x1cb89c,_0x439c75(_0x46238a[_0x34d7('0x110')]),_0x563d61=!0x0):_0x1c3de1=_0x1c3de1||_0x46238a['previousPosition']));}function _0x439c75(_0x3a6611){const _0x1acd5f=_0x3930cd[_0x34d7('0xbd')]['toViewPosition'](_0x3a6611),_0x293a77=_0x3930cd[_0x34d7('0x6d')][_0x34d7('0xa6')](_0x34d7('0xad'),{'class':_0x34d7('0x5b')+_0x5cfa9d});_0x3930cd[_0x34d7('0x6d')][_0x34d7('0x72')](_0x1acd5f,_0x293a77),_0x3930cd['mapper'][_0x34d7('0x59')](_0x293a77,_0x2952ea['markerName']);}_0x10dcd1||_0x563d61||!_0x1c3de1||_0x439c75(_0x1c3de1);};}export class RestoreRevisionCommand extends _0x36887a{constructor(_0x2aff1b){super(_0x2aff1b);const _0x2223e2=_0x2aff1b['plugins'][_0x34d7('0x9c')](d);this['affectsData']=!0x1,this[_0x34d7('0x2e')](_0x2223e2,'change:isReady',()=>this[_0x34d7('0x119')]()),this[_0x34d7('0x2e')](_0x2223e2,_0x34d7('0xc6'),()=>this['refresh']());}[_0x34d7('0xe4')](){const _0x319472=this[_0x34d7('0xa7')],_0x44c032=_0x319472[_0x34d7('0xd')]['get'](d),_0x587081=_0x44c032['isReady']?_0x44c032[_0x34d7('0x16')][_0x34d7('0x80')]:null;_0x319472[_0x34d7('0xb1')][_0x34d7('0x9c')](_0x34d7('0x76'))[_0x34d7('0x6a')](_0x587081);}[_0x34d7('0x119')](){const {isReady:_0x513361,isEnabled:_0xd55225}=this[_0x34d7('0xa7')]['plugins'][_0x34d7('0x9c')](d);this[_0x34d7('0xc')]=_0x513361&&_0xd55225;}}export class ShowChangeCommand extends _0x36887a{constructor(_0xc0c24e,{direction:_0x39a573}){super(_0xc0c24e);const _0x5e7ada=_0xc0c24e[_0x34d7('0xd')]['get'](d);this['affectsData']=!0x1,this[_0x34d7('0x3a')]=_0x34d7('0x77')===_0x39a573?0x1:-0x1,this['listenTo'](_0x5e7ada,_0x34d7('0x9'),()=>this[_0x34d7('0x119')]()),this['listenTo'](_0x5e7ada,_0x34d7('0xc6'),()=>this[_0x34d7('0x119')]()),this[_0x34d7('0x2e')](_0x5e7ada,_0x34d7('0x11f'),()=>this['refresh']());}[_0x34d7('0xe4')](){const _0x58999c=this[_0x34d7('0xa7')],_0x4c2a37=_0x58999c[_0x34d7('0xd')][_0x34d7('0x9c')](d),{isNavigationMode:_0x590d2e,currentChangeNumber:_0x1505dc}=_0x4c2a37;let _0x554296;if(_0x4c2a37[_0x34d7('0xe1')]=_0x590d2e?_0x4c2a37[_0x34d7('0x16')][_0x34d7('0xcd')][_0x34d7('0x9c')](_0x1505dc+this[_0x34d7('0x3a')]):_0x4c2a37['diff']['changes'][_0x34d7('0x113')],_0x4c2a37['activeChange']['data'][_0x34d7('0x7e')])_0x554296=_0x58999c[_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0xea')](_0x4c2a37['activeChange']['rootName']);else{const _0x59fded=_0x58999c[_0x34d7('0x117')]['markers']['get'](_0x34d7('0xb')+_0x4c2a37['activeChange']['id']);_0x554296=_0x1acd99(_0x58999c[_0x34d7('0x3d')],_0x59fded);}_0x50716e({'target':_0x554296,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x50fbbe,currentChangeNumber:_0x1947cf,numberOfChanges:_0x3bc27d,isReady:_0x1c26b8,isEnabled:_0x39c7bf}=this[_0x34d7('0xa7')][_0x34d7('0xd')]['get'](d);this[_0x34d7('0xc')]=!!(_0x39c7bf&&_0x1c26b8&&_0x3bc27d)&&(!_0x50fbbe||(0x1===this[_0x34d7('0x3a')]?_0x1947cf<_0x3bc27d-0x1:_0x1947cf>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17f2=['bind','bindTemplate','listView','isReady','threeVerticalDots','isEnabled','buttonView','add','function','Compare\x20against\x20selected','change:isActionsDropdownOpen','name','ck-revision-history-sidebar__revision__actions','Show\x20more\x20items','model','Name\x20this\x20revision','isOpen','action','listenTo','set','locale','_action','map','stopPropagation','ck-on','panelPosition','isActionsDropdownOpen','source','isVisible','extendTemplate'];(function(_0x5d2dab,_0x17f25c){const _0x45ec5e=function(_0x3ebf26){while(--_0x3ebf26){_0x5d2dab['push'](_0x5d2dab['shift']());}};_0x45ec5e(++_0x17f25c);}(_0x17f2,0x1eb));const _0x45ec=function(_0x5d2dab,_0x17f25c){_0x5d2dab=_0x5d2dab-0x0;let _0x45ec5e=_0x17f2[_0x5d2dab];return _0x45ec5e;};import{Collection as _0x239f81}from'ckeditor5/src/utils';import{icons as _0x4cd430}from'ckeditor5/src/core';import{Model as _0x2fa0f7,addListToDropdown as _0x4d69f8,createDropdown as _0x25a1e8}from'ckeditor5/src/ui';import{getTranslation as _0x4522b2}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x377247,_0x1684c0){const _0x4b3715=_0x377247[_0x45ec('0x14')],_0x447e3c=_0x377247['locale'],_0x4b6d14=_0x25a1e8(_0x447e3c);_0x4b6d14[_0x45ec('0xe')]='sw';const _0x178295=function(_0x4472d0,_0x5e3227){const _0x542ab7=function(_0x380be3,_0x4ec782){const _0x57c150=_0x380be3[_0x45ec('0x9')],_0xb3bf00={'Compare\x20against\x20selected':_0x4522b2(_0x57c150,_0x45ec('0x1c')),'Name\x20this\x20revision':_0x4522b2(_0x57c150,_0x45ec('0x4')),'Restore\x20this\x20revision':_0x4522b2(_0x57c150,'Restore\x20this\x20revision')};return _0x4ec782[_0x45ec('0xb')](_0x217f12=>{const _0x59d03a=_0xb3bf00[_0x217f12[_0x45ec('0x0')]];return _0x59d03a&&_0x59d03a!==_0x217f12['name']&&(_0x217f12[_0x45ec('0x0')]=_0x59d03a),_0x217f12;});}(_0x4472d0,_0x5e3227),_0x380d71=new _0x239f81();for(const _0x256274 of _0x542ab7){const _0x1588dc={'type':'button','model':new _0x2fa0f7({'label':_0x256274['name'],'class':_0x256274['class'],'withText':!0x0,'_action':_0x256274[_0x45ec('0x6')]})};_0x1588dc[_0x45ec('0x3')][_0x45ec('0x13')](_0x45ec('0x18'))['to'](_0x4472d0,_0x45ec('0xf'),_0x3d6b22=>'function'!=typeof _0x256274[_0x45ec('0x18')]||(!_0x3d6b22||_0x256274[_0x45ec('0x18')](_0x4472d0))),_0x380d71[_0x45ec('0x1a')](_0x1588dc);}return _0x380d71;}(_0x377247,_0x1684c0);return _0x377247[_0x45ec('0x13')](_0x45ec('0xf'))['to'](_0x4b6d14,_0x45ec('0x5')),_0x4b6d14[_0x45ec('0x19')][_0x45ec('0x8')]({'label':_0x4522b2(_0x447e3c,_0x45ec('0x2')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4cd430[_0x45ec('0x17')]}),_0x4b6d14[_0x45ec('0x12')]({'attributes':{'class':[_0x45ec('0x1'),_0x4b3715['if'](_0x45ec('0xf'),_0x45ec('0xd'))]},'on':{'click':_0x4b3715['to'](_0x4fd264=>_0x4fd264[_0x45ec('0xc')]())}}),_0x4b6d14['on']('execute',_0x1e98a3=>{_0x377247[_0x45ec('0x16')]&&_0x45ec('0x1b')==typeof _0x1e98a3[_0x45ec('0x10')][_0x45ec('0xa')]&&_0x1e98a3[_0x45ec('0x10')][_0x45ec('0xa')](_0x377247);}),_0x4d69f8(_0x4b6d14,_0x178295),_0x4b6d14[_0x45ec('0x7')](_0x377247,_0x45ec('0x1d'),(_0xa39e77,_0x1d2e13,_0x206f7a)=>{if(_0x206f7a)for(const _0xdfe637 of _0x4b6d14[_0x45ec('0x15')]['items']){const _0x22f83b=_0xdfe637['children']['first'],_0x4b7abe=_0x1684c0['find'](_0xb1f435=>_0xb1f435[_0x45ec('0x6')]===_0x22f83b['_action'])[_0x45ec('0x11')];_0xdfe637[_0x45ec('0x11')]=void 0x0===_0x4b7abe||_0x4b7abe(_0x377247);}}),_0x4b6d14;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51df=['Revision\x20creator','name','setTemplate','ck-revision-history-sidebar__revision-author__name','set','Revision\x20author','ck-revision-history-sidebar__revision-author','span','0\x200\x2011\x2010','push'];(function(_0x540af5,_0x51dff5){const _0x4d0d4d=function(_0x4b58ec){while(--_0x4b58ec){_0x540af5['push'](_0x540af5['shift']());}};_0x4d0d4d(++_0x51dff5);}(_0x51df,0x1c5));const _0x4d0d=function(_0x540af5,_0x51dff5){_0x540af5=_0x540af5-0x0;let _0x4d0d4d=_0x51df[_0x540af5];return _0x4d0d4d;};import{View as _0x406777,IconView as _0x8f2493}from'ckeditor5/src/ui';import{getTranslation as _0x194618}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x53c858 from'../../../theme/icons/user.svg';export default class ti extends _0x406777{constructor(_0x4cdbf9,_0x212f50,_0x3a37d4){super(_0x4cdbf9);const _0x1ef635=new _0x8f2493();_0x1ef635[_0x4d0d('0x1')]({'content':_0x53c858,'viewBox':_0x4d0d('0x5')});const _0x3ca3e6=['ck',_0x4d0d('0x3')];_0x3a37d4&&_0x3ca3e6[_0x4d0d('0x6')]('ck-revision-history-sidebar__revision-author_creator');const _0x42eda9=[{'tag':_0x4d0d('0x4'),'attributes':{'class':['ck',_0x4d0d('0x0')],'title':_0x194618(_0x4cdbf9,_0x3a37d4?_0x4d0d('0x7'):_0x4d0d('0x2'))},'children':[_0x1ef635,_0x212f50[_0x4d0d('0x8')]]}];this[_0x4d0d('0x9')]({'tag':'li','attributes':{'class':_0x3ca3e6},'children':_0x42eda9});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e85=['ck-revision-history-sidebar__revision-name','Revision\x20name','set','extendTemplate'];(function(_0x3b9f89,_0x5e85a7){var _0x477bdb=function(_0x594fbf){while(--_0x594fbf){_0x3b9f89['push'](_0x3b9f89['shift']());}};_0x477bdb(++_0x5e85a7);}(_0x5e85,0x15e));var _0x477b=function(_0x3b9f89,_0x5e85a7){_0x3b9f89=_0x3b9f89-0x0;var _0x477bdb=_0x5e85[_0x3b9f89];return _0x477bdb;};import{LabeledFieldView as _0x27a078}from'ckeditor5/src/ui';import{getTranslation as _0x14874b}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x27a078{constructor(_0x2d517e,_0x2715e1){super(_0x2d517e,_0x2715e1),this[_0x477b('0x0')]({'label':_0x14874b(_0x2d517e,_0x477b('0x3'))}),this[_0x477b('0x1')]({'tag':'span','attributes':{'class':[_0x477b('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d29=['bindTemplate','placeholder','set','ck-revision-history-sidebar__revision__date','render','ck-revision-history-sidebar__revision-authors','isEnabled','createdAt','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isReady','fieldView','unshift','from','div','_createdAtFormatted','ck-reset','revisionNameView','isHighlighted','fire','bind','setTemplate','closest','ck-revision-history-sidebar__revision-wrapper','srcElement','220','creator','revisionActionsView','element','value','name','filter','change','select','length','isConfirm','ck-revision-history-sidebar__revision_selected','isSelected','isActionsDropdownOpen','span','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision'];(function(_0x439e05,_0x3d29ed){const _0x422bde=function(_0x3ef0a0){while(--_0x3ef0a0){_0x439e05['push'](_0x439e05['shift']());}};_0x422bde(++_0x3d29ed);}(_0x3d29,0x180));const _0x422b=function(_0x439e05,_0x3d29ed){_0x439e05=_0x439e05-0x0;let _0x422bde=_0x3d29[_0x439e05];return _0x422bde;};import{View as _0x502956,createLabeledInputText as _0x2e0dc4}from'ckeditor5/src/ui';import{ConfirmMixin as _0x3123ab}from'ckeditor5-collaboration/src/collaboration-core';import _0x504fd6 from'./revisionnameview';import _0x34adfd from'./revisionauthorview';import{dateToPrettyFormat as _0x260e8d}from'./utils';import{createActionsDropdownView as _0x323079}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x3123ab(_0x502956){constructor(_0x5945d4,_0xe08983,_0x191f5a){super(_0x5945d4);const _0x5d4369=this[_0x422b('0x1a')],_0x3bfb4d=function(_0x1072bb,_0x594ccc){const _0x260d1a=Array[_0x422b('0x26')](_0x594ccc['authors'])[_0x422b('0xf')](_0x3b69b9=>_0x3b69b9!=_0x594ccc[_0x422b('0xa')]);return _0x594ccc[_0x422b('0xa')]&&_0x260d1a[_0x422b('0x25')](_0x594ccc['creator']),_0x260d1a['map'](_0x18d993=>new _0x34adfd(_0x1072bb,_0x18d993,_0x18d993==_0x594ccc['creator']));}(_0x5945d4,_0xe08983);this['id']=_0xe08983['id'],this['_revision']=_0xe08983,this[_0x422b('0x4')](_0x422b('0xe'),_0x422b('0x21'))['to'](_0xe08983),this[_0x422b('0x4')](_0x422b('0x28'))['to'](this,'createdAt',_0x2a20c2=>_0x2a20c2?_0x260e8d(_0x5945d4['uiLanguage'],_0x2a20c2):void 0x0),this['set'](_0x422b('0x15'),!0x1),this[_0x422b('0x1c')](_0x422b('0x2'),!0x1),this[_0x422b('0x1c')]('isActionsDropdownOpen',!0x1),this[_0x422b('0x1c')](_0x422b('0x23'),!0x1),this['set'](_0x422b('0x20'),!0x1),this[_0x422b('0x1')]=new _0x504fd6(_0x5945d4,_0x2e0dc4),this[_0x422b('0x1')]['fieldView']['extendTemplate']({'attributes':{'maxlength':_0x422b('0x9')}}),this[_0x422b('0x1')][_0x422b('0x24')][_0x422b('0x4')](_0x422b('0xd'),_0x422b('0x1b'))['to'](this,_0x422b('0xe'),_0x422b('0x28')),this['revisionNameView']['bind'](_0x422b('0x20'))['to'](this,_0x422b('0x15'),this,_0x422b('0x20'),(_0x15feb0,_0x247f4c)=>_0x15feb0&&_0x247f4c),this[_0x422b('0xb')]=_0x191f5a&&_0x191f5a[_0x422b('0x12')]?_0x323079(this,_0x191f5a):'',this[_0x422b('0xb')]&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this[_0x422b('0x5')]({'tag':'div','attributes':{'class':['ck',_0x422b('0x0'),_0x422b('0x7'),_0x5d4369['if'](_0x422b('0x13'),_0x422b('0x22'))]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset',_0x422b('0x19'),_0x5d4369['if']('isEnabled','ck-disabled',_0x4d55f9=>!_0x4d55f9),_0x5d4369['if'](_0x422b('0x15'),_0x422b('0x14')),_0x5d4369['if'](_0x422b('0x2'),'ck-revision-history-sidebar__revision_highlighted'),_0x5d4369['if'](_0x422b('0x16'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x422b('0x1')],{'tag':_0x422b('0x17'),'attributes':{'class':['ck',_0x422b('0x1d')]},'children':[{'text':_0x5d4369['to'](_0x422b('0x28'))}]},{'tag':_0x422b('0x27'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x422b('0x1f')]},'children':_0x3bfb4d}]},this['revisionActionsView']],'on':{'click':_0x5d4369['to'](_0x428f05=>{_0x428f05[_0x422b('0x8')][_0x422b('0x6')](_0x422b('0x18'))||this[_0x422b('0x23')]&&this[_0x422b('0x20')]&&this['fire'](_0x422b('0x11'),{'id':this['id']});})}}]});}[_0x422b('0x1e')](){super[_0x422b('0x1e')]();const _0x155ae5=this[_0x422b('0x1')][_0x422b('0x24')][_0x422b('0xc')];this['listenTo'](_0x155ae5,_0x422b('0x10'),()=>{this[_0x422b('0x3')]('setName',{'id':this['id'],'name':_0x155ae5['value']});});}[_0x422b('0x11')](){this['isSelected']=!0x0;}['deselect'](){this[_0x422b('0x15')]=!0x1;}['highlight'](){this[_0x422b('0x2')]=!0x0;}['unhighlight'](){this[_0x422b('0x2')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x251a=['toggle','click','ck-revision-history-sidebar__subrevision-collapser_collapsed','span','setTemplate','bindTemplate','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','true','_isCollapsed','ck-hidden'];(function(_0x351828,_0x251a04){const _0x49b198=function(_0x23a380){while(--_0x23a380){_0x351828['push'](_0x351828['shift']());}};_0x49b198(++_0x251a04);}(_0x251a,0x143));const _0x49b1=function(_0x351828,_0x251a04){_0x351828=_0x351828-0x0;let _0x49b198=_0x251a[_0x351828];return _0x49b198;};import{View as _0x151512}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x151512{constructor(_0x247211){super(_0x247211);const _0xa03269=this[_0x49b1('0x1')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x49b1('0x0')]({'tag':_0x49b1('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0xa03269['if'](_0x49b1('0x2'),_0x49b1('0x6'),_0x527330=>!_0x527330),_0xa03269['if'](_0x49b1('0x5'),_0x49b1('0x9'))],'role':'button','aria-pressed':_0xa03269['to']('_isCollapsed',_0x33a6a9=>_0x33a6a9?'false':_0x49b1('0x4'))},'children':[{'tag':_0x49b1('0xa'),'attributes':{'class':['ck',_0x49b1('0x3')]}}],'on':{'click':_0xa03269['to'](_0x49b1('0x8'))}});}[_0x49b1('0x7')](){this['_isCollapsed']=!this[_0x49b1('0x5')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4589=['span','select','div','createdAt','isSelected','bindTemplate','ck-reset','ck-revision-history-sidebar__revision_selected','_createdAtFormatted','ck-revision-history-sidebar__revision-authors','setTemplate','ck-revision-history-sidebar__revision','_parentRevisionId','creator','deselect','set','bind'];(function(_0xd4e176,_0x4589d5){const _0x25e17d=function(_0xf963e8){while(--_0xf963e8){_0xd4e176['push'](_0xd4e176['shift']());}};_0x25e17d(++_0x4589d5);}(_0x4589,0x9b));const _0x25e1=function(_0xd4e176,_0x4589d5){_0xd4e176=_0xd4e176-0x0;let _0x25e17d=_0x4589[_0xd4e176];return _0x25e17d;};import{View as _0x5652a6}from'ckeditor5/src/ui';import _0x48d6d8 from'./revisionauthorview';import{dateToPrettyFormat as _0x39c79c}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x5652a6{constructor(_0x4d30cc,_0x2bde0b,_0xf4a7ef){super(_0x4d30cc);const _0x3ea3b6=this[_0x25e1('0x3')];this['id']=_0x2bde0b['id'],this[_0x25e1('0xe')](_0x25e1('0x1'))['to'](_0x2bde0b),this[_0x25e1('0xd')](_0x25e1('0x2'),!0x1),this[_0x25e1('0xe')](_0x25e1('0x6'))['to'](this,'createdAt',_0x255cc4=>_0x255cc4?_0x39c79c(_0x4d30cc['uiLanguage'],_0x255cc4):void 0x0),this[_0x25e1('0xa')]=_0xf4a7ef,this[_0x25e1('0x8')]({'tag':_0x25e1('0x0'),'attributes':{'class':['ck',_0x25e1('0x4'),_0x25e1('0x9'),'ck-revision-history-sidebar__subrevision',_0x3ea3b6['if'](_0x25e1('0x2'),_0x25e1('0x5'))]},'children':[{'tag':_0x25e1('0xf'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x3ea3b6['to'](_0x25e1('0x6'))}]},{'tag':'ul','attributes':{'class':['ck',_0x25e1('0x7')]},'children':[new _0x48d6d8(_0x4d30cc,_0x2bde0b[_0x25e1('0xb')],!0x0)]}],'on':{'click':_0x3ea3b6['to'](this['select'][_0x25e1('0xe')](this))}});}[_0x25e1('0x10')](){this[_0x25e1('0x2')]=!0x0,this['fire']('select',{'parentId':this[_0x25e1('0xa')]});}[_0x25e1('0xc')](){this[_0x25e1('0x2')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x58f4=['toLocaleTimeString','long','toLocaleDateString','numeric'];(function(_0x1e3716,_0x58f4d4){var _0x40a47b=function(_0x5161c6){while(--_0x5161c6){_0x1e3716['push'](_0x1e3716['shift']());}};_0x40a47b(++_0x58f4d4);}(_0x58f4,0xe3));var _0x40a4=function(_0x1e3716,_0x58f4d4){_0x1e3716=_0x1e3716-0x0;var _0x40a47b=_0x58f4[_0x1e3716];return _0x40a47b;};export function dateToPrettyFormat(_0x33ea81,_0x2e1e6f){return _0x2e1e6f[_0x40a4('0x3')](_0x33ea81,{'month':_0x40a4('0x2'),'day':_0x40a4('0x0')})+',\x20'+_0x2e1e6f[_0x40a4('0x1')](_0x33ea81,{'hour':'numeric','minute':_0x40a4('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7ead=['saveButtonView','reset','revisionNameInputView','forEach','Cancel','_focusables','set','setTemplate','_createRevisionNameInput','arrowleft','input','value','ck-button-cancel','arrowright','ck-revision-history-save-revision-form','shift\x20+\x20tab','fieldView','add','type','trim','cancel','stopPropagation','listenTo','220','keystrokes','check','_createButton','_focusCycler','ck-responsive-form','submit','Name\x20of\x20the\x20revision\x20(optional)','focus','element','focusTracker','revisionName','Save','focusFirst','render','execute','form','cancelButtonView','locale','tab','extendTemplate','arrowdown','revisionNameInputValue','delegate'];(function(_0x4d526f,_0x7eadf5){const _0x2e0a0d=function(_0x3a7682){while(--_0x3a7682){_0x4d526f['push'](_0x4d526f['shift']());}};_0x2e0a0d(++_0x7eadf5);}(_0x7ead,0x1a9));const _0x2e0a=function(_0x4d526f,_0x7eadf5){_0x4d526f=_0x4d526f-0x0;let _0x2e0a0d=_0x7ead[_0x4d526f];return _0x2e0a0d;};import{icons as _0x1904f4}from'ckeditor5/src/core';import{ButtonView as _0xf3ab08,FocusCycler as _0x33628e,LabeledFieldView as _0x477315,View as _0x1fa346,ViewCollection as _0x341ad7,createLabeledInputText as _0x8f86ca,injectCssTransitionDisabler as _0x331095,submitHandler as _0x14cc95}from'ckeditor5/src/ui';import{FocusTracker as _0xf67cc6,KeystrokeHandler as _0x129d10}from'ckeditor5/src/utils';import{getTranslation as _0x591248}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1fa346{constructor(_0x29d125){super(_0x29d125),this[_0x2e0a('0x1f')]=new _0xf67cc6(),this[_0x2e0a('0x16')]=new _0x129d10(),this[_0x2e0a('0x4')](_0x2e0a('0x2b'),''),this[_0x2e0a('0x0')]=this[_0x2e0a('0x6')](),this[_0x2e0a('0x2d')]=this[_0x2e0a('0x18')](_0x591248(_0x29d125,_0x2e0a('0x21')),_0x1904f4[_0x2e0a('0x17')],'ck-button-save'),this['saveButtonView'][_0x2e0a('0x10')]=_0x2e0a('0x1b'),this[_0x2e0a('0x26')]=this[_0x2e0a('0x18')](_0x591248(_0x29d125,_0x2e0a('0x2')),_0x1904f4[_0x2e0a('0x12')],_0x2e0a('0xa'),_0x2e0a('0x12')),this[_0x2e0a('0x3')]=new _0x341ad7(),this[_0x2e0a('0x19')]=new _0x33628e({'focusables':this['_focusables'],'focusTracker':this[_0x2e0a('0x1f')],'keystrokeHandler':this[_0x2e0a('0x16')],'actions':{'focusPrevious':_0x2e0a('0xd'),'focusNext':_0x2e0a('0x28')}}),this[_0x2e0a('0x5')]({'tag':_0x2e0a('0x25'),'attributes':{'class':['ck',_0x2e0a('0xc'),_0x2e0a('0x1a')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x2e0a('0x2d')],this[_0x2e0a('0x26')]]}),_0x331095(this);}[_0x2e0a('0x23')](){super[_0x2e0a('0x23')](),_0x14cc95({'view':this}),([this[_0x2e0a('0x0')],this[_0x2e0a('0x2d')],this[_0x2e0a('0x26')]][_0x2e0a('0x1')](_0x14a77a=>{this[_0x2e0a('0x3')][_0x2e0a('0xf')](_0x14a77a),this[_0x2e0a('0x1f')]['add'](_0x14a77a['element']);}),this[_0x2e0a('0x16')][_0x2e0a('0x14')](this[_0x2e0a('0x1e')]));const _0x3c5935=_0x5b470e=>_0x5b470e[_0x2e0a('0x13')]();this[_0x2e0a('0x16')][_0x2e0a('0x4')](_0x2e0a('0xb'),_0x3c5935),this[_0x2e0a('0x16')]['set'](_0x2e0a('0x7'),_0x3c5935),this[_0x2e0a('0x16')][_0x2e0a('0x4')]('arrowup',_0x3c5935),this[_0x2e0a('0x16')][_0x2e0a('0x4')](_0x2e0a('0x2a'),_0x3c5935);}[_0x2e0a('0x1d')](){this['_focusCycler'][_0x2e0a('0x22')]();}get[_0x2e0a('0x20')](){return this[_0x2e0a('0x0')][_0x2e0a('0xe')][_0x2e0a('0x1e')][_0x2e0a('0x9')][_0x2e0a('0x11')]();}set['revisionName'](_0x5cc476){this[_0x2e0a('0x0')]['fieldView'][_0x2e0a('0x1e')][_0x2e0a('0x9')]=_0x5cc476[_0x2e0a('0x11')]();}[_0x2e0a('0x2e')](){this['revisionNameInputView']['fieldView'][_0x2e0a('0x1e')][_0x2e0a('0x9')]='';}[_0x2e0a('0x6')](){const _0x57f16a=new _0x477315(this[_0x2e0a('0x27')],_0x8f86ca),_0x2179ff=_0x57f16a[_0x2e0a('0xe')];return _0x2179ff['extendTemplate']({'attributes':{'maxlength':_0x2e0a('0x15')}}),_0x57f16a['label']=_0x591248(this[_0x2e0a('0x27')],_0x2e0a('0x1c')),_0x2179ff['on'](_0x2e0a('0x8'),()=>{this[_0x2e0a('0x2b')]=_0x2179ff['element'][_0x2e0a('0x9')][_0x2e0a('0x11')]();}),_0x57f16a;}[_0x2e0a('0x18')](_0x276973,_0x1337ef,_0x482f8f,_0x23a3f5){const _0x22f740=new _0xf3ab08(this[_0x2e0a('0x27')]);return _0x22f740['set']({'label':_0x276973,'icon':_0x1337ef,'tooltip':!0x0}),_0x22f740[_0x2e0a('0x29')]({'attributes':{'class':_0x482f8f}}),_0x23a3f5&&_0x22f740[_0x2e0a('0x2c')](_0x2e0a('0x24'))['to'](this,_0x23a3f5),_0x22f740;}}
|