@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231120.0 → 0.0.0-nightly-20231122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5b24=['remove','revision','isAdded','range','get','_markSuggestions','enqueueChange','_setConversion','_appendChild','change:numberOfChanges','bind','markerRange','vid','createPositionFromPath','elementEnd','ck-revision-history-root--active','isBefore','diffData','numberOfChanges','comment','RevisionsRepository','useFillerType','error','addClass','_makeTape','keys','dataDowncast','mapper','addRoot','repository','revisionHistoryLabel','low','toData','_getViewObj','toViewElement','deletion','isRemoved','_getRevisionsRange','isObject','_setDistance','ck-suggestion-marker--active','change:activeChange','change:activeView','name','revision-start','createRevision','setAttribute','currentChangeNumber','high','getChild','reconvertMarker','_fixObsoleteTags','removeMarker','span','hasAttribute','forceDisabled','getIndex','isBlock','_balloon','_cleanUp','index','_step','upcast','modelRange','isCollapsed','addMarker:revision-suggestion:insertion','removeMarker:revision','restoreRevisionCallback','target','start','then','activeView','showStack','collaboration.channelId','dataToMarker','getAttributes','resolve','type','right','_getViewForChange','forEach','left','merge','newRevisionId','startsWith','object','plugins','config','marked','level','wrap','-new','from','elementStart','isRemoveSuggestion','softBreak','pluginName','insertions','changes','domEvent','_cleanMarkers','distance','nodeAfter','addRevision','getCustomProperty','text','isEnabled','vid_end','init','_removeRevisionMarkers','revisionHistory','execute','_removeMissingPairs','highest','processor','getWalker','children','_revisions','uiElement','string','element:pre','push','revision-suggestion:','sort','insertion','getClientRects','changeId','view','restoreRevision','isInline','removeClass','parent','getRevision','getRoot','revision:','diff','markerName','add','nextPosition','catch','authors','isAtStart','pairId','findIndex','unshift','forward','_makeModelFromViewString','ck-revision-history-root-remove','_changeView','downcastDispatcher','_makeModelFromTape','markers','toViewRange','change:isEnabled','revision-comment:','RevisionViewer','_markInsertions','observeMarkers','pop','revisionHistoryAttachChange','isLimit','data','markersStart','destroy','values','_changeIdToChange','_getDiff','markerToData','schema','createAttributeElement','getRevisionData','model','viewItem','for','has','shift','enableReadOnlyMode','WidgetToolbarRepository','_markMarkers','previousPosition','_processTape','getAttribute','editing','isAtEnd','loadRevisionData','slice','isIncorrect','markersEnd','nextSibling','insert','map','element','requires','showPreviousChange','unbindElementFromMarkerName','_sortAndFilterDiffChanges','revision-end','_update','affectsData','addHighlight','checkAttribute','_joinTapes','attribute:vid','detachRoot','_findChangeIdFromDomTarget','abs','delete','listenTo','rootName','isAttached','createUIElement','bindElementToMarker','_removeUnsupportedChanges','getRevisionRootsAttributes','done','side','editor','_threeWayMerge','_refreshStartEndIndex','_getChangeFromId','ck-suggestion-preview-marker-','updatePosition','find','maxOffset','markerToHighlight','first','filter','concat','data-revision-','refresh','_markMismatchedRemovedTags','_setChanges','splice','ck-editor__editable__overlay','isOnRoot','startIndex','createRange','consume','length','locale','consumable','isAfter','addMarker:revision-suggestion:deletion','activeChange','isNavigationMode','mouseover','bottom','attachChange','next','document','isAddSuggestion','showNextChange','isReady','POSITIVE_INFINITY','change:isReady','revision-suggestion','vid_start','item','getRootNames','conversion','commands','editingDowncast','end','isSuggestion','ck-suggestion-marker','parse','test','getDomRoot','_data','change','offsetSize','indexOf','createRangeIn','_initInteractions','userId','ck-suggestion-marker-','addMarker:revision','writer','suggestion:','set','data-change-id','attributes','markerNameToElements','split','isContent','_activeViewTarget','deletions','revision-viewer','isEqual','endIndex','toViewPosition'];(function(_0x4899da,_0x5b2462){const _0x8c5259=function(_0x1b68fd){while(--_0x1b68fd){_0x4899da['push'](_0x4899da['shift']());}};_0x8c5259(++_0x5b2462);}(_0x5b24,0x195));const _0x8c52=function(_0x4899da,_0x5b2462){_0x4899da=_0x4899da-0x0;let _0x8c5259=_0x5b24[_0x4899da];return _0x8c5259;};import{Plugin as _0x236186,Command as _0x4f8e0d}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x555514}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4e11fe}from'ckeditor5/src/ui';import{DocumentFragment as _0x18ec3c,Element as _0x40d188,Text as _0xb751c2,ViewDocumentFragment as _0x5edb8f,ViewText as _0x1a7fd3,ViewElement as _0x4935c6,ViewContainerElement as _0x565e2d,ViewAttributeElement as _0x41f736,ViewEmptyElement as _0xee9f3a,ViewRawElement as _0x18f7b7,ViewUIElement as _0x48ccef}from'ckeditor5/src/engine';import{Users as _0x398e09,getMarkerDomElement as _0x2df8cb}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e90cc from'./ui/revisionviewer/changedetailsview';import _0x20410f from'./revisionsrepository';import _0x290cfa from'./changeitem';import{default as _0x55c35e}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x599561}from'lodash-es';const tt={'c':_0x565e2d,'a':_0x41f736,'e':_0xee9f3a,'r':_0x18f7b7,'u':_0x48ccef};export default class d extends _0x236186{static get[_0x8c52('0x111')](){return _0x8c52('0x29');}static get[_0x8c52('0x4e')](){return[_0x398e09,_0x4e11fe,_0x20410f];}constructor(_0x5c8216){super(_0x5c8216),this['repository']=this['editor'][_0x8c52('0x107')]['get'](_0x8c52('0xc5')),this['set']('activeChange',null),this[_0x8c52('0xa5')]('activeView',null),this[_0x8c52('0xab')]=null,this[_0x8c52('0xa5')](_0x8c52('0x15'),null),this[_0x8c52('0xa5')]('isReady',!0x1),this[_0x8c52('0xa5')](_0x8c52('0x11b'),!0x0),this['on'](_0x8c52('0x27'),(_0x25e170,_0x50284c,_0x3a69e9)=>{this[_0x8c52('0x81')]=null,this[_0x8c52('0xf8')]=null,this[_0x8c52('0x66')][_0x8c52('0x44')][_0x8c52('0xd')][_0x8c52('0x9b')](_0x27c628=>{for(const _0x43732c of this[_0x8c52('0x66')][_0x8c52('0x44')][_0x8c52('0xd')][_0x8c52('0x87')]['roots'])_0x3a69e9?_0x27c628[_0x8c52('0x10')](_0x8c52('0x77'),_0x43732c):_0x27c628[_0x8c52('0xc8')]('ck-editor__editable__overlay',_0x43732c);});}),this[_0x8c52('0xbb')](_0x8c52('0x82'))['to'](this,'activeChange',_0x3e061d=>null!==_0x3e061d),this[_0x8c52('0xbb')](_0x8c52('0xe0'))['to'](this,'isReady',this,'diff',this,_0x8c52('0x81'),(_0x5aebf7,_0x242fa4,_0x28212a)=>_0x5aebf7&&_0x28212a?_0x242fa4[_0x8c52('0x113')]['getIndex'](_0x28212a):0x0),this['bind'](_0x8c52('0xc3'))['to'](this,'isReady',this,_0x8c52('0x15'),(_0x401b87,_0x50dfea)=>_0x401b87?_0x50dfea[_0x8c52('0x113')][_0x8c52('0x7c')]:0x0),this[_0x8c52('0x22')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this[_0x8c52('0xeb')]=this['editor'][_0x8c52('0x107')]['get'](_0x4e11fe);}[_0x8c52('0x11d')](){const _0x1d0804=this[_0x8c52('0x66')],_0x16d2b3=new ShowChangeCommand(_0x1d0804,{'direction':'backward'}),_0x13495a=new ShowChangeCommand(_0x1d0804,{'direction':_0x8c52('0x1f')});(_0x1d0804['commands'][_0x8c52('0x17')](_0x8c52('0x4f'),_0x16d2b3),_0x1d0804[_0x8c52('0x92')]['add'](_0x8c52('0x89'),_0x13495a),_0x1d0804[_0x8c52('0x92')]['add'](_0x8c52('0xe'),new RestoreRevisionCommand(_0x1d0804)),this['on'](_0x8c52('0xba'),()=>{_0x16d2b3[_0x8c52('0x73')](),_0x13495a[_0x8c52('0x73')]();}),this[_0x8c52('0xb8')](),this[_0x8c52('0x9f')](),_0x1d0804[_0x8c52('0x3e')](_0x8c52('0xad')),_0x1d0804[_0x8c52('0x107')][_0x8c52('0x3c')]('WidgetToolbarRepository'))&&_0x1d0804['plugins'][_0x8c52('0xb5')](_0x8c52('0x3f'))[_0x8c52('0xe8')]('revision-viewer');}async[_0x8c52('0x38')](_0x4c2cdf){await this[_0x8c52('0x46')](_0x4c2cdf);const _0x309b40={};for(const _0x1bcbc8 in _0x4c2cdf[_0x8c52('0xc2')]){if(_0x4c2cdf['diffData'][_0x1bcbc8][_0x8c52('0x85')]&&!_0x4c2cdf['diffData'][_0x1bcbc8][_0x8c52('0x85')]['isAttached'])continue;const _0x98c665=this[_0x8c52('0x11e')](JSON[_0x8c52('0x97')](_0x4c2cdf['diffData'][_0x1bcbc8][_0x8c52('0x112')])),_0x4b6a79=this[_0x8c52('0x66')][_0x8c52('0x44')][_0x8c52('0xd')]['document'],_0x5e9ffc=new _0x5edb8f(_0x4b6a79,_0x98c665[_0x8c52('0x4c')](_0x5b28b7=>this['_getViewObj'](_0x5b28b7)));this[_0x8c52('0x66')][_0x8c52('0x2f')][_0x8c52('0x0')][_0x8c52('0xc6')](_0x8c52('0x109')),_0x309b40[_0x1bcbc8]=this[_0x8c52('0x66')][_0x8c52('0x2f')][_0x8c52('0x0')][_0x8c52('0xd1')](_0x5e9ffc),this[_0x8c52('0x66')][_0x8c52('0x2f')]['processor'][_0x8c52('0xc6')]('default');}return _0x309b40;}async[_0x8c52('0x63')](_0x8c4459){await this[_0x8c52('0x46')](_0x8c4459);const _0x420ea7={};for(const _0x30bf41 in _0x8c4459[_0x8c52('0xc2')])_0x8c4459[_0x8c52('0xc2')][_0x30bf41]['attachChange']&&!_0x8c4459[_0x8c52('0xc2')][_0x30bf41][_0x8c52('0x85')][_0x8c52('0x5f')]||(_0x420ea7[_0x30bf41]=_0x8c4459[_0x8c52('0xc2')][_0x30bf41]['attributesAfter']||{});return _0x420ea7;}['_removeRevisionMarkers'](_0x1fa3bb){return(_0x1fa3bb=_0x1fa3bb[_0x8c52('0x70')](_0x15420d=>!_0x15420d[_0x8c52('0xdc')]||_0x8c52('0xdd')!==_0x15420d[_0x8c52('0xdc')]&&_0x8c52('0x52')!==_0x15420d[_0x8c52('0xdc')]))['forEach'](_0xe12dc3=>{_0x8c52('0x5')!=typeof _0xe12dc3&&(_0xe12dc3[_0x8c52('0x2')]=this[_0x8c52('0x11e')](_0xe12dc3[_0x8c52('0x2')]),_0xe12dc3[_0x8c52('0xa7')]=_0xe12dc3[_0x8c52('0xa7')][_0x8c52('0x70')](_0x1ae4ec=>!_0x1ae4ec[0x0][_0x8c52('0x105')](_0x8c52('0x72'))));}),_0x1fa3bb;}async['compare'](_0x251edc,_0x5f01b6,_0x212cd5=!0x1){if(!this['isEnabled'])return;const _0x5a48a2=this[_0x8c52('0x15')],_0x40f60b=this[_0x8c52('0xce')],_0x13c6c9=_0x8c52('0x5')==typeof _0x251edc?_0x40f60b[_0x8c52('0x12')](_0x251edc):_0x251edc,_0x488d65=_0x8c52('0x5')==typeof _0x5f01b6?_0x40f60b[_0x8c52('0x12')](_0x5f01b6):_0x5f01b6,_0x27638a=_0x13c6c9['id'],_0x545ea6=_0x488d65?_0x488d65['id']:null;if(!_0x212cd5&&this[_0x8c52('0x15')]&&this[_0x8c52('0x15')][_0x8c52('0x104')]===_0x27638a&&this[_0x8c52('0x15')]['oldRevisionId']===_0x545ea6)return Promise[_0x8c52('0xfd')]();this[_0x8c52('0x8a')]=!0x1,this[_0x8c52('0xf8')]=null,this[_0x8c52('0x81')]=null,this[_0x8c52('0x15')]=new _0x55c35e(_0x27638a,_0x545ea6);const _0x3069ea=this[_0x8c52('0xd6')](_0x13c6c9,_0x488d65,!0x0)[_0x8c52('0x4c')](_0x2c7f15=>this[_0x8c52('0x46')](_0x2c7f15));return _0x3069ea['push'](new Promise(_0x1e70b9=>{setTimeout(_0x1e70b9,0x14);})),Promise['all'](_0x3069ea)[_0x8c52('0xf7')](()=>{if(!this[_0x8c52('0x11b')])return;this['_cleanUp']();const _0x1fa86d=this['_getDiff'](_0x27638a,_0x545ea6);for(const _0x4d4119 of _0x1fa86d[_0x8c52('0x113')])this[_0x8c52('0x33')][_0x8c52('0xa5')](_0x4d4119['id'],_0x4d4119);this[_0x8c52('0x66')][_0x8c52('0x39')][_0x8c52('0xb7')]({'isUndoable':!0x1},_0x31e548=>{for(const _0x24ea0b of this[_0x8c52('0x66')][_0x8c52('0x39')][_0x8c52('0x87')]['getRootNames']())_0x31e548[_0x8c52('0x59')](_0x24ea0b);for(const _0x5ebe1d of Object[_0x8c52('0xca')](_0x1fa86d[_0x8c52('0x39')])){const _0x3339da=_0x31e548[_0x8c52('0xcd')](_0x5ebe1d);for(const _0xe33d5b of Object[_0x8c52('0xca')](_0x1fa86d[_0x8c52('0xa7')][_0x5ebe1d]))_0x31e548[_0x8c52('0xdf')](_0xe33d5b,_0x1fa86d['attributes'][_0x5ebe1d][_0xe33d5b],_0x3339da);_0x31e548[_0x8c52('0x4b')](_0x1fa86d[_0x8c52('0x39')][_0x5ebe1d],_0x3339da,0x0);}}),this[_0x8c52('0x15')][_0x8c52('0x75')](this[_0x8c52('0x51')](_0x1fa86d['changes'])),this[_0x8c52('0x8a')]=!0x0;})[_0x8c52('0x19')](_0x2791f8=>{console[_0x8c52('0xc7')](_0x2791f8),this[_0x8c52('0xec')](),_0x5a48a2&&(this[_0x8c52('0x15')]=_0x5a48a2),this['isReady']=!0x0;});}['addRevisionData'](_0xdb9f1c,_0x4dfc49){const _0x449c6c=this[_0x8c52('0xce')][_0x8c52('0xde')](_0xdb9f1c);return _0x449c6c['on']('_update',(_0x9acc2d,_0x13f661,_0x10da86)=>_0x4dfc49(_0x13f661,_0x10da86,_0x449c6c)),this[_0x8c52('0xce')][_0x8c52('0x118')](_0x449c6c),_0x449c6c;}[_0x8c52('0x46')](_0x3866f5){if(!_0x3866f5||_0x3866f5[_0x8c52('0xc2')])return Promise[_0x8c52('0xfd')]();{const _0x1a06a7=this[_0x8c52('0x66')][_0x8c52('0x108')][_0x8c52('0xb5')](_0x8c52('0xfa'));return this['adapter'][_0x8c52('0x12')]({'channelId':_0x1a06a7,'revisionId':_0x3866f5['id']})[_0x8c52('0xf7')](_0x16148a=>{_0x3866f5[_0x8c52('0x53')]({'diffData':_0x16148a[_0x8c52('0xc2')]},!0x0);});}}[_0x8c52('0xec')](){this[_0x8c52('0x81')]=null,this[_0x8c52('0x115')](),this['_changeView']&&this['_changeView']['destroy'](),this[_0x8c52('0x22')]=null,this['_changeIdToChange']['clear'](),this['editor'][_0x8c52('0x39')][_0x8c52('0xb7')]({'isUndoable':!0x1},_0x12f7a3=>{for(const _0x15762f of this[_0x8c52('0x66')][_0x8c52('0x39')][_0x8c52('0x87')]['getRootNames']())_0x12f7a3['detachRoot'](_0x15762f);});}[_0x8c52('0x51')](_0x2f1d4d){const _0x9bddcc=[],_0x544958=new Map();for(const _0x35be0b of this[_0x8c52('0x66')]['model']['document'][_0x8c52('0x90')]()){const _0x4e7b1c=this[_0x8c52('0x66')][_0x8c52('0x44')][_0x8c52('0xd')][_0x8c52('0x99')](_0x35be0b);if(!_0x4e7b1c)continue;const _0x4f0c96=_0x4e7b1c[_0x8c52('0xb')]()[_0x8c52('0x8f')](0x0);_0x4f0c96&&(_0x9bddcc[_0x8c52('0x7')](_0x35be0b),_0x544958['set'](_0x35be0b,_0x4f0c96));}return _0x9bddcc[_0x8c52('0x9')]((_0x2f904d,_0x3ada35)=>{const _0x53a8e2=_0x544958[_0x8c52('0xb5')](_0x2f904d),_0x21a0b3=_0x544958['get'](_0x3ada35);return _0x53a8e2['y']-_0x21a0b3['y']||_0x53a8e2['x']-_0x21a0b3['x'];}),(_0x2f1d4d=_0x2f1d4d[_0x8c52('0x70')](_0x306403=>_0x9bddcc['includes'](_0x306403['rootName'])))[_0x8c52('0x9')]((_0x534376,_0x3f0777)=>_0x9bddcc[_0x8c52('0x9d')](_0x534376[_0x8c52('0x5e')])-_0x9bddcc['indexOf'](_0x3f0777[_0x8c52('0x5e')])),_0x2f1d4d;}[_0x8c52('0xc9')](_0x4c4f7d){const _0x3c6367=Array[_0x8c52('0x10d')](_0x4c4f7d[_0x8c52('0x25')])['filter'](([_0x531007,_0x34d38a])=>_0x531007['startsWith'](_0x8c52('0x14'))&&!_0x34d38a['isCollapsed']),_0x1212f6=Array[_0x8c52('0x10d')](this['editor'][_0x8c52('0x39')][_0x8c52('0x9e')](_0x4c4f7d)[_0x8c52('0x1')]({'singleCharacters':!0x0}));if(0x0!=_0x3c6367['length'])for(const _0x236172 of _0x1212f6){const [_0x3c202c,_0x4743df]=_0x3c6367[0x0],[,_0x90a55f,_0x4c6183]=_0x3c202c[_0x8c52('0xa9')](':');if(_0x4743df[_0x8c52('0x94')][_0x8c52('0xae')](_0x236172['nextPosition'])&&_0x3c6367[_0x8c52('0x3d')](),(_0x236172[_0x8c52('0x41')][_0x8c52('0xae')](_0x4743df[_0x8c52('0xf6')])||_0x236172[_0x8c52('0x41')][_0x8c52('0x7f')](_0x4743df[_0x8c52('0xf6')]))&&('insertion'==_0x90a55f?_0x236172[_0x8c52('0xb3')]={'userId':_0x4c6183}:'deletion'==_0x90a55f&&(_0x236172[_0x8c52('0xd5')]={'userId':_0x4c6183})),0x0==_0x3c6367[_0x8c52('0x7c')])break;}return _0x1212f6;}[_0x8c52('0x68')](_0x3bcbf0){const _0x429321=new Map();for(let _0x55ac95=0x0;_0x55ac95<_0x3bcbf0[_0x8c52('0x7c')];_0x55ac95++)_0x8c52('0x11a')===_0x3bcbf0[_0x55ac95][_0x8c52('0xfe')]?(_0x3bcbf0[_0x55ac95][_0x8c52('0x8f')]['startIndex']=_0x55ac95,_0x3bcbf0[_0x55ac95][_0x8c52('0x8f')][_0x8c52('0xaf')]=_0x55ac95):('elementStart'===_0x3bcbf0[_0x55ac95][_0x8c52('0xfe')]?_0x3bcbf0[_0x55ac95]['item'][_0x8c52('0x79')]=_0x55ac95:_0x8c52('0xbf')===_0x3bcbf0[_0x55ac95][_0x8c52('0xfe')]&&(_0x3bcbf0[_0x55ac95]['item'][_0x8c52('0xaf')]=_0x55ac95),_0x429321[_0x8c52('0xa5')](_0x3bcbf0[_0x55ac95]['id'],_0x55ac95));for(const _0x1ae4d3 of _0x429321[_0x8c52('0x32')]())_0x8c52('0x10e')===_0x3bcbf0[_0x1ae4d3][_0x8c52('0xfe')]?_0x3bcbf0[_0x1ae4d3][_0x8c52('0x8f')]['endIndex']=_0x429321[_0x8c52('0xb5')](_0x3bcbf0[_0x1ae4d3][_0x8c52('0x1c')]):_0x8c52('0xbf')===_0x3bcbf0[_0x1ae4d3][_0x8c52('0xfe')]&&(_0x3bcbf0[_0x1ae4d3][_0x8c52('0x8f')][_0x8c52('0x79')]=_0x429321[_0x8c52('0xb5')](_0x3bcbf0[_0x1ae4d3][_0x8c52('0x1c')]));}[_0x8c52('0x42')](_0x42db75){for(let _0x21f790=0x0;_0x21f790<_0x42db75[_0x8c52('0x7c')];_0x21f790++){if(_0x8c52('0x10e')===_0x42db75[_0x21f790][_0x8c52('0xfe')])_0x42db75[_0x21f790][_0x8c52('0x8f')][_0x8c52('0x79')]=_0x21f790;else{if(_0x8c52('0xbf')===_0x42db75[_0x21f790][_0x8c52('0xfe')]){_0x42db75[_0x21f790][_0x8c52('0x8f')]['endIndex']=_0x21f790;const _0x3fdc54=_0x42db75[_0x21f790][_0x8c52('0x8f')][_0x8c52('0x79')];_0x42db75[_0x3fdc54]['pairId']=_0x42db75[_0x21f790]['id'],_0x42db75[_0x21f790][_0x8c52('0x1c')]=_0x42db75[_0x3fdc54]['id'];}else _0x42db75[_0x21f790][_0x8c52('0x8f')]['startIndex']=_0x21f790,_0x42db75[_0x21f790][_0x8c52('0x8f')][_0x8c52('0xaf')]=_0x21f790,_0x42db75[_0x21f790][_0x8c52('0x1c')]=null;}_0x42db75[_0x21f790][_0x8c52('0x30')]||(_0x42db75[_0x21f790][_0x8c52('0x30')]=[],_0x42db75[_0x21f790][_0x8c52('0x49')]=[]);}}[_0x8c52('0x2a')](_0x439228,_0x9f02b8){const _0x30484a=_0x439228[_0x8c52('0x70')](_0x2fafb9=>!_0x2fafb9[_0x8c52('0xb3')]);for(let _0x3de81e=0x0;_0x3de81e<_0x9f02b8[_0x8c52('0x7c')];_0x3de81e++)_0x9f02b8[_0x3de81e][_0x8c52('0xb3')]&&(_0x30484a[_0x3de81e][_0x8c52('0xb3')]=_0x9f02b8[_0x3de81e][_0x8c52('0xb3')]);}[_0x8c52('0x20')](_0x5344bb){const _0x15b2cf=JSON[_0x8c52('0x97')](_0x5344bb),_0xec68f0=this[_0x8c52('0x66')][_0x8c52('0x44')][_0x8c52('0xd')][_0x8c52('0x87')],_0x4c35f1=new _0x5edb8f(_0xec68f0,_0x15b2cf[_0x8c52('0x4c')](_0x37fe85=>this[_0x8c52('0xd2')](_0x37fe85)));return this['editor'][_0x8c52('0x2f')]['toModel'](_0x4c35f1);}['_getViewObj'](_0xde9018){const _0x2c08fb=this[_0x8c52('0x66')]['editing'][_0x8c52('0xd')][_0x8c52('0x87')];if(_0x8c52('0x5')==typeof _0xde9018)return new _0x1a7fd3(_0x2c08fb,_0xde9018);{const _0x36891e=_0xde9018['children'][_0x8c52('0x4c')](_0x4dc500=>this[_0x8c52('0xd2')](_0x4dc500));return new(tt[_0xde9018[(_0x8c52('0xfe'))]]||_0x4935c6)(_0x2c08fb,_0xde9018[_0x8c52('0xdc')],_0xde9018[_0x8c52('0xa7')],_0x36891e);}}[_0x8c52('0x34')](_0x544336,_0x4677af=null){const _0x44e129=this['repository']['getRevision'](_0x544336),_0x38ef98=_0x4677af?this[_0x8c52('0xce')][_0x8c52('0x12')](_0x4677af):null,_0x36f977=this[_0x8c52('0xd6')](_0x44e129,_0x38ef98),_0x2a91a6=_0x36f977[_0x36f977[_0x8c52('0x7c')]-0x1],_0x242aa6=new Map(),_0x420652={'model':{},'attributes':{},'changes':[]},_0x5d0b46=new Set(),_0x484946=new Map();for(let _0x30bb18=_0x36f977[_0x8c52('0x7c')]-0x1;_0x30bb18>=0x0;_0x30bb18--){const _0x2a06b6=_0x36f977[_0x30bb18];for(const _0x51ac08 of Object[_0x8c52('0xca')](_0x2a06b6['diffData']))if(_0x2a06b6['diffData'][_0x51ac08][_0x8c52('0x85')]){const _0x308de6=_0x2a06b6[_0x8c52('0xc2')][_0x51ac08]['attachChange'];_0x308de6[_0x8c52('0x5f')]?(_0x5d0b46[_0x8c52('0x17')](_0x51ac08),_0x484946['has'](_0x51ac08)&&_0x484946[_0x8c52('0xb5')](_0x51ac08)['userId']==_0x308de6[_0x8c52('0xa0')]?_0x484946[_0x8c52('0x5c')](_0x51ac08):_0x484946[_0x8c52('0xa5')](_0x51ac08,_0x308de6)):_0x484946[_0x8c52('0x3c')](_0x51ac08)?(_0x5d0b46[_0x8c52('0x5c')](_0x51ac08),_0x484946['delete'](_0x51ac08)):(_0x5d0b46[_0x8c52('0x17')](_0x51ac08),_0x484946[_0x8c52('0xa5')](_0x51ac08,_0x308de6));}else _0x5d0b46['add'](_0x51ac08);}for(const _0x5ed876 of _0x5d0b46){const _0x53d304=_0x484946[_0x8c52('0x3c')](_0x5ed876)&&!_0x484946[_0x8c52('0xb5')](_0x5ed876)['isAttached'];let _0x2e3b26=_0x53d304?_0x36f977[_0x8c52('0x7c')]-0x1:0x0;const _0x68fe75=_0x53d304?-0x1:0x1;for(;_0x36f977[_0x2e3b26];){const _0x53572e=_0x36f977[_0x2e3b26];if(_0x53572e[_0x8c52('0xc2')][_0x5ed876]){const _0x5306bd=_0x53d304?_0x53572e[_0x8c52('0xc2')][_0x5ed876]['attributesBefore']:_0x53572e[_0x8c52('0xc2')][_0x5ed876]['attributesAfter'];_0x420652['attributes'][_0x5ed876]=_0x5306bd?_0x599561(_0x5306bd):{};break;}_0x2e3b26+=_0x68fe75;}}for(const _0x28e70b of _0x36f977){_0x28e70b['model']={};for(const _0x4f5359 of _0x28e70b[_0x8c52('0x1a')])_0x242aa6[_0x8c52('0xa5')](_0x4f5359['id'],_0x4f5359);for(const _0x53cbbc of _0x5d0b46){const _0x2db18f=_0x28e70b['diffData'][_0x53cbbc]?_0x28e70b['diffData'][_0x53cbbc][_0x8c52('0x112')]:'[]',_0x5cd411=_0x28e70b[_0x8c52('0xc2')][_0x53cbbc]?_0x28e70b[_0x8c52('0xc2')][_0x53cbbc][_0x8c52('0xac')]:'[]';_0x28e70b[_0x8c52('0x39')][_0x53cbbc]={'insertions':this[_0x8c52('0x20')](_0x2db18f),'deletions':this[_0x8c52('0x20')](_0x5cd411)};}}for(const _0x1863b0 of _0x5d0b46){let _0x471074=null,_0x192a28=0x0;const _0x1d3a10=new Map(Array[_0x8c52('0x10d')](_0x44e129[_0x8c52('0x39')][_0x1863b0][_0x8c52('0x112')][_0x8c52('0x25')])[_0x8c52('0x70')](([_0x31b0dd])=>!_0x31b0dd[_0x8c52('0x105')](_0x8c52('0x14'))));let _0x49de50=0x0;for(const _0x186c63 of _0x36f977){const _0x5d07be=this[_0x8c52('0xc9')](_0x186c63[_0x8c52('0x39')][_0x1863b0][_0x8c52('0x112')]);_0x186c63==_0x44e129?(_0x471074=_0x5d07be,_0x192a28=_0x471074[_0x8c52('0x7c')],_0x471074['forEach'](_0x1b039f=>{_0x1b039f['id']=_0x49de50++;}),this[_0x8c52('0x42')](_0x471074)):this[_0x8c52('0x2a')](_0x471074,_0x5d07be);const _0x55a5ac=_0x471074['filter'](_0x291c46=>!_0x291c46[_0x8c52('0xb3')])['map'](_0x2491bd=>_0x2491bd['id']);let _0xd029b7=0x0;const _0x556f81=this['_makeTape'](_0x186c63[_0x8c52('0x39')][_0x1863b0][_0x8c52('0xac')]);_0x556f81[_0x8c52('0x101')](_0x485f05=>{_0x485f05['isRemoved']?_0x485f05['id']=_0x192a28++:_0x485f05['id']=_0x55a5ac[_0xd029b7++];}),this[_0x8c52('0x42')](_0x556f81),this[_0x8c52('0xd8')](_0x471074,_0x8c52('0xb3')),this['_setDistance'](_0x556f81,'isRemoved'),_0x186c63==_0x44e129&&this[_0x8c52('0x40')](_0x471074,_0x1d3a10),_0x471074=this[_0x8c52('0x57')](_0x471074,_0x556f81),this[_0x8c52('0x68')](_0x471074),this['_setDistance'](_0x471074,_0x8c52('0xd5'));}_0x471074=_0x471074[_0x8c52('0x70')](_0x43da19=>!(_0x43da19[_0x8c52('0xb3')]&&_0x43da19[_0x8c52('0xd5')]));const _0x58f981=new Map(_0x2a91a6[_0x8c52('0x39')][_0x1863b0][_0x8c52('0xac')][_0x8c52('0x25')]),_0x144041=new Set(_0x1d3a10[_0x8c52('0xca')]());for(const _0x42dee4 of _0x58f981[_0x8c52('0xca')]())_0x144041[_0x8c52('0x5c')](_0x42dee4);this['_markSuggestions'](_0x471074,_0x144041),this[_0x8c52('0xe4')](_0x471074),_0x471074=this['_removeMissingPairs'](_0x471074),_0x471074=this['_markMismatchedRemovedTags'](_0x471074),_0x471074=this[_0x8c52('0x62')](_0x471074);const {root:_0x292b31,changes:_0x15330f}=this[_0x8c52('0x24')](_0x471074,_0x242aa6,_0x1863b0);_0x420652[_0x8c52('0x39')][_0x1863b0]=_0x292b31;const _0x19076b=_0x484946[_0x8c52('0xb5')](_0x1863b0);if(_0x19076b){const _0xc05050=_0x242aa6[_0x8c52('0xb5')](_0x19076b['userId']),_0x2344b8=new _0x290cfa({'author':_0xc05050,'type':_0x19076b[_0x8c52('0x5f')]?_0x8c52('0x17'):_0x8c52('0xb1'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1863b0});_0x15330f['unshift'](_0x2344b8),_0x420652[_0x8c52('0xa7')][_0x1863b0]['revisionHistoryAttachChange']=_0x2344b8['id'];}_0x420652[_0x8c52('0x113')]=_0x420652[_0x8c52('0x113')][_0x8c52('0x71')](_0x15330f);}return _0x420652;}['_markMarkers'](_0x4d07f9,_0x44f4da){for(let _0x2d8d8f=0x0;_0x2d8d8f<_0x4d07f9[_0x8c52('0x7c')];_0x2d8d8f++)for(const [_0xef7244,_0x79624d]of _0x44f4da)_0x79624d[_0x8c52('0xf6')][_0x8c52('0xae')](_0x4d07f9[_0x2d8d8f][_0x8c52('0x41')])&&_0x4d07f9[_0x2d8d8f][_0x8c52('0x30')]['push'](_0xef7244),_0x79624d['end'][_0x8c52('0xae')](_0x4d07f9[_0x2d8d8f][_0x8c52('0x18')])&&_0x4d07f9[_0x2d8d8f]['markersEnd']['push'](_0xef7244);}['_joinTapes'](_0x5cddcf,_0x306113){let _0xa3d93=[],_0x547a67=0x0,_0x1c3cc6=0x0;for(;_0x547a67<_0x5cddcf['length']||_0x1c3cc6<_0x306113[_0x8c52('0x7c')];){const _0x4d7df6=_0x5cddcf[_0x547a67]||{},_0x54286a=_0x306113[_0x1c3cc6]||{};if(_0x4d7df6['id']==_0x54286a['id'])_0x547a67++,_0x1c3cc6++,_0xa3d93['push'](_0x4d7df6);else{if(_0x54286a['isRemoved']&&_0x4d7df6[_0x8c52('0xb3')]){const {commonTape:_0x199310,iEnd:_0xde7f15,jEnd:_0x1f17c9}=this['_threeWayMerge'](_0x5cddcf,_0x547a67,_0x306113,_0x1c3cc6);_0xa3d93=_0xa3d93[_0x8c52('0x71')](_0x199310),_0x547a67=_0xde7f15,_0x1c3cc6=_0x1f17c9;}else _0x54286a[_0x8c52('0xd5')]?(_0x1c3cc6++,_0xa3d93[_0x8c52('0x7')](_0x54286a)):(_0x547a67++,_0xa3d93[_0x8c52('0x7')](_0x4d7df6));}}return _0xa3d93;}[_0x8c52('0xb6')](_0x1df351,_0x5ccb9c){const _0x3d7515=[];for(let _0x5e1684=0x0;_0x5e1684<_0x1df351[_0x8c52('0x7c')];_0x5e1684++){for(let _0x483dfb=0x0;_0x483dfb<_0x1df351[_0x5e1684][_0x8c52('0x30')][_0x8c52('0x7c')];_0x483dfb++){const _0x12f95e=_0x1df351[_0x5e1684][_0x8c52('0x30')][_0x483dfb];if(!_0x5ccb9c['has'](_0x12f95e))continue;const {group:_0x4fcefd,type:_0x26a552,authorId:_0x2ee684}=_0x5ebb9d(_0x12f95e);_0x8c52('0x8d')!=_0x4fcefd||_0x8c52('0xa')!=_0x26a552&&_0x8c52('0xd4')!=_0x26a552||(_0x3d7515[_0x8c52('0x1e')]({'type':_0x26a552,'name':_0x12f95e,'userId':_0x2ee684}),_0x1df351[_0x5e1684][_0x8c52('0x30')][_0x8c52('0x76')](_0x483dfb,0x1),_0x483dfb--);}_0x4cae58(_0x1df351[_0x5e1684]);for(let _0x4ef5ab=0x0;_0x4ef5ab<_0x1df351[_0x5e1684][_0x8c52('0x49')][_0x8c52('0x7c')];_0x4ef5ab++){const _0xe4dbd7=_0x1df351[_0x5e1684][_0x8c52('0x49')][_0x4ef5ab];if(!_0x5ccb9c[_0x8c52('0x3c')](_0xe4dbd7))continue;const {group:_0xe3e504,type:_0x493844}=_0x5ebb9d(_0xe4dbd7);if(_0x8c52('0x8d')!=_0xe3e504||_0x8c52('0xa')!=_0x493844&&'deletion'!=_0x493844)continue;_0x1df351[_0x5e1684]['markersEnd'][_0x8c52('0x76')](_0x4ef5ab,0x1),_0x4ef5ab--;const _0x6a1765=_0x3d7515[_0x8c52('0x1d')](_0x2ffaf7=>_0x2ffaf7[_0x8c52('0xdc')]==_0xe4dbd7);_0x6a1765>-0x1&&_0x3d7515[_0x8c52('0x76')](_0x6a1765,0x1);}}function _0x5ebb9d(_0x42e316){const _0x30303a=_0x42e316[_0x8c52('0xa9')](':');return{'group':_0x30303a[0x0],'type':_0x30303a[0x1],'subType':_0x30303a[_0x8c52('0x7c')]>=0x5?_0x30303a[0x2]:null,'id':_0x30303a['length']<0x5?_0x30303a[0x2]:_0x30303a[0x3],'authorId':_0x30303a[_0x8c52('0x7c')]<0x5?_0x30303a[0x3]:_0x30303a[0x4],'markerCount':0x6==_0x30303a[_0x8c52('0x7c')]?_0x30303a[0x5]:null};}function _0x4cae58(_0x1b0a70){for(let _0x2eb501=0x0;_0x2eb501<_0x3d7515['length'];_0x2eb501++){if(_0x1b0a70['isAdded']&&_0x8c52('0xa')==_0x3d7515[_0x2eb501][_0x8c52('0xfe')])return _0x1b0a70['isAddSuggestion']=_0x3d7515[_0x2eb501],void delete _0x1b0a70[_0x8c52('0xb3')];if(!_0x1b0a70[_0x8c52('0xb3')]&&!_0x1b0a70[_0x8c52('0xd5')]&&'deletion'==_0x3d7515[_0x2eb501][_0x8c52('0xfe')])return void(_0x1b0a70[_0x8c52('0x10f')]=_0x3d7515[_0x2eb501]);}}}[_0x8c52('0xd8')](_0x51a101,_0x353960){let _0x50b878=0x0,_0x3596ec=!0x1;const _0x2fbc22=new Map();for(const _0x4dd9c6 of _0x51a101)_0x4dd9c6[_0x353960]?_0x3596ec&&(_0x50b878++,_0x3596ec=!0x1):(_0x50b878++,_0x3596ec=!0x0),_0x2fbc22[_0x8c52('0xa5')](_0x4dd9c6['id'],_0x50b878);for(let _0x5f2d87=0x0;_0x5f2d87<_0x51a101[_0x8c52('0x7c')];_0x5f2d87++){if(_0x8c52('0xd5')==_0x353960&&_0x51a101[_0x5f2d87]['isAdded']||_0x8c52('0xb3')==_0x353960&&_0x51a101[_0x5f2d87][_0x8c52('0xd5')])continue;if(_0x8c52('0x11a')==_0x51a101[_0x5f2d87][_0x8c52('0xfe')]){_0x51a101[_0x5f2d87][_0x8c52('0x116')]=0x0;continue;}const _0x33c4dd=_0x2fbc22[_0x8c52('0xb5')](_0x51a101[_0x5f2d87]['pairId']),_0x11ffeb=_0x2fbc22[_0x8c52('0xb5')](_0x51a101[_0x5f2d87]['id']);_0x51a101[_0x5f2d87][_0x8c52('0x116')]=_0x33c4dd-_0x11ffeb;}}[_0x8c52('0xd6')](_0x471d21,_0x3128f3,_0x284985=!0x1){const _0x1a13ac=[];let _0x4a95a6=this[_0x8c52('0xce')][_0x8c52('0xe9')](_0x471d21),_0x49d6d7=this[_0x8c52('0xce')][_0x8c52('0xe9')](_0x3128f3);for(-0x1==_0x49d6d7&&(_0x49d6d7=this['repository'][_0x8c52('0x3')][_0x8c52('0x7c')],_0x284985=!0x1);_0x4a95a6<_0x49d6d7;)_0x1a13ac[_0x8c52('0x7')](this[_0x8c52('0xce')]['getRevision'](_0x4a95a6)),_0x4a95a6++;return _0x284985&&_0x1a13ac[_0x8c52('0x7')](this[_0x8c52('0xce')][_0x8c52('0x12')](_0x4a95a6)),_0x1a13ac;}[_0x8c52('0x67')](_0x2f0769,_0x55f7f8,_0x5b3187,_0x47278d){const _0x50a465=this[_0x8c52('0x66')][_0x8c52('0x39')][_0x8c52('0x36')];let _0x2d5225=_0x55f7f8;for(;_0x2f0769[_0x2d5225]&&_0x2f0769[_0x2d5225]['isAdded'];)_0x2d5225++;let _0x5aba26=_0x47278d;for(;_0x5b3187[_0x5aba26]&&_0x5b3187[_0x5aba26]['isRemoved'];)_0x5aba26++;_0xd49d53(_0x2f0769,_0x55f7f8,_0x2d5225),_0xd49d53(_0x5b3187,_0x47278d,_0x5aba26);const _0x2e499d=_0x5b3187[_0x8c52('0x47')](_0x47278d,_0x5aba26)[_0x8c52('0x71')](_0x2f0769['slice'](_0x55f7f8,_0x2d5225));return _0x2e499d[_0x8c52('0x9')]((_0xe335bb,_0x4df2db)=>_0xe335bb[_0x8c52('0x65')]!=_0x4df2db[_0x8c52('0x65')]?_0xe335bb[_0x8c52('0x65')]-_0x4df2db['side']:_0xe335bb[_0x8c52('0x10a')]!=_0x4df2db[_0x8c52('0x10a')]?_0xe335bb[_0x8c52('0x10a')]-_0x4df2db[_0x8c52('0x10a')]:_0xe335bb[_0x8c52('0x116')]!=_0x4df2db[_0x8c52('0x116')]?_0x4df2db[_0x8c52('0x116')]-_0xe335bb[_0x8c52('0x116')]:!!_0xe335bb['isAdded']!=!!_0x4df2db[_0x8c52('0xb3')]?-0x1==_0xe335bb[_0x8c52('0x65')]||0x0==_0xe335bb[_0x8c52('0x65')]?_0xe335bb[_0x8c52('0xb3')]?-0x1:0x1:_0xe335bb[_0x8c52('0xb3')]?0x1:-0x1:_0xe335bb[_0x8c52('0xed')]-_0x4df2db[_0x8c52('0xed')]),{'commonTape':_0x2e499d,'iEnd':_0x2d5225,'jEnd':_0x5aba26};function _0xd49d53(_0x236a55,_0x5d3e93,_0x6f28dc){let _0xed0343=-0x1,_0x116a70=Number[_0x8c52('0x8b')],_0xe5392d=!0x0;for(let _0x120798=_0x5d3e93;_0x120798<_0x6f28dc;_0x120798++)if(_0x50a465[_0x8c52('0xf')](_0x236a55[_0x120798][_0x8c52('0x8f')])||(_0xe5392d=!0x1),_0x236a55[_0x120798][_0x8c52('0x8f')][_0x8c52('0x79')]<_0x5d3e93&&(_0xed0343=_0x120798),_0x236a55[_0x120798][_0x8c52('0x8f')]['endIndex']>=_0x6f28dc){_0x116a70=_0x120798;break;}_0xe5392d&&(_0xed0343=_0x6f28dc-0x1);for(let _0x316663=_0x5d3e93;_0x316663<_0x6f28dc;_0x316663++)_0x236a55[_0x316663][_0x8c52('0x65')]=_0x316663<=_0xed0343?-0x1:_0x316663<_0x116a70?0x0:0x1,_0x236a55[_0x316663]['index']=_0x316663;let _0x436d9d=0x0;for(let _0x37d909=_0x5d3e93;_0x37d909<=_0xed0343;_0x37d909++)0x0==_0x236a55[_0x37d909]['distance']?_0x236a55[_0x37d909][_0x8c52('0x10a')]=_0x436d9d:(_0x436d9d++,_0x236a55[_0x37d909][_0x8c52('0x10a')]=_0x436d9d,_0x436d9d++);for(let _0x50f7d7=_0x5d3e93;_0x50f7d7<_0x6f28dc;_0x50f7d7++)0x0==_0x236a55[_0x50f7d7][_0x8c52('0x65')]&&(_0x236a55[_0x50f7d7][_0x8c52('0x10a')]=_0x436d9d);_0x436d9d=0x0;for(let _0x2b7d25=_0x6f28dc-0x1;_0x2b7d25>=_0x116a70;_0x2b7d25--)0x0==_0x236a55[_0x2b7d25][_0x8c52('0x116')]?_0x236a55[_0x2b7d25]['level']=_0x436d9d:(_0x436d9d--,_0x236a55[_0x2b7d25]['level']=_0x436d9d,_0x436d9d--);}}[_0x8c52('0xe4')](_0x2dbadb){const _0xe121c1=new Map(),_0x2442bb=this['editor'][_0x8c52('0x39')][_0x8c52('0x36')];for(let _0x2739cb=0x1;_0x2739cb<_0x2dbadb[_0x8c52('0x7c')];_0x2739cb++){let _0x345877,_0x56df35,_0x298810;const _0x315ca7=_0x2dbadb[_0x2739cb],_0x5a862c=_0x2dbadb[_0x2739cb-0x1];if(_0x8c52('0x11a')==_0x315ca7[_0x8c52('0xfe')])continue;if(_0x315ca7['type']!=_0x5a862c[_0x8c52('0xfe')])continue;if(!_0x2442bb['isBlock'](_0x5a862c['item'])||_0x2442bb[_0x8c52('0x2e')](_0x5a862c[_0x8c52('0x8f')]))continue;if(!_0x2442bb[_0x8c52('0xea')](_0x315ca7[_0x8c52('0x8f')])||_0x2442bb[_0x8c52('0x2e')](_0x315ca7[_0x8c52('0x8f')]))continue;if((_0x2dbadb[_0x2739cb]['isAdded']||_0x2dbadb[_0x2739cb][_0x8c52('0x88')])&&_0x2dbadb[_0x2739cb-0x1][_0x8c52('0xd5')])_0x345877=_0x2dbadb[_0x2739cb],_0x56df35=_0x2dbadb[_0x2739cb-0x1],_0x298810=_0x2739cb-0x1;else{if(!_0x2dbadb[_0x2739cb][_0x8c52('0xd5')]||!_0x2dbadb[_0x2739cb-0x1][_0x8c52('0xb3')]&&!_0x2dbadb[_0x2739cb-0x1][_0x8c52('0x88')])continue;_0x345877=_0x2dbadb[_0x2739cb-0x1],_0x56df35=_0x2dbadb[_0x2739cb],_0x298810=_0x2739cb;}const _0x1b6e57=_0x345877['level']==_0x56df35['level'],_0x567768=Math['abs'](_0x345877[_0x8c52('0x10a')])<Math[_0x8c52('0x5b')](_0x56df35[_0x8c52('0x10a')])&&0x0==_0x56df35[_0x8c52('0x116')];(_0x1b6e57||_0x567768)&&(_0xe121c1[_0x8c52('0xa5')](_0x56df35['id'],_0x345877['id']),_0x2dbadb[_0x8c52('0x76')](_0x298810,0x1),_0x2739cb--,_0x345877[_0x8c52('0xb3')]=!0x1);}for(let _0x1d33a8=0x0;_0x1d33a8<_0x2dbadb[_0x8c52('0x7c')];_0x1d33a8++)_0xe121c1[_0x8c52('0x3c')](_0x2dbadb[_0x1d33a8][_0x8c52('0x1c')])&&(_0x2dbadb[_0x1d33a8][_0x8c52('0x1c')]=_0xe121c1['get'](_0x2dbadb[_0x1d33a8][_0x8c52('0x1c')]));}[_0x8c52('0x121')](_0x5d14f8){const _0x3dbe99=new Set(_0x5d14f8[_0x8c52('0x4c')](_0x30eea7=>_0x30eea7['id']));for(let _0x377036=0x0;_0x377036<_0x5d14f8[_0x8c52('0x7c')];_0x377036++)_0x3dbe99[_0x8c52('0x3c')](_0x5d14f8[_0x377036][_0x8c52('0x1c')])||0x0==_0x5d14f8[_0x377036]['distance']||(_0x5d14f8[_0x377036][_0x8c52('0x48')]=!0x0);return _0x5d14f8[_0x8c52('0x70')](_0x36fd00=>!_0x36fd00[_0x8c52('0x48')]);}[_0x8c52('0x74')](_0x2004f1){const _0x401851=new Set();for(let _0x1bc011=0x0;_0x1bc011<_0x2004f1[_0x8c52('0x7c')];_0x1bc011++){if(_0x401851[_0x8c52('0x3c')](_0x2004f1[_0x1bc011]['id'])&&_0x2004f1[_0x1bc011]['isRemoved']&&(_0x2004f1[_0x1bc011][_0x8c52('0x48')]=!0x0),_0x2004f1[_0x1bc011]['isIncorrect'])continue;if(0x0==_0x2004f1[_0x1bc011]['distance'])continue;if(_0x8c52('0x10e')!=_0x2004f1[_0x1bc011][_0x8c52('0xfe')])continue;if(null==_0x2004f1[_0x1bc011][_0x8c52('0x1c')])continue;let _0x45ebe8=_0x1bc011+0x1,_0x28ca0f=0x0;for(;_0x2004f1[_0x45ebe8]['id']!=_0x2004f1[_0x1bc011][_0x8c52('0x1c')];)_0x8c52('0x10e')==_0x2004f1[_0x45ebe8][_0x8c52('0xfe')]?_0x28ca0f++:'elementEnd'==_0x2004f1[_0x45ebe8]['type']&&_0x28ca0f--,_0x45ebe8++;if(0x0!=_0x28ca0f){if(_0x2004f1[_0x1bc011][_0x8c52('0xd5')])_0x2004f1[_0x1bc011]['isIncorrect']=!0x0;else for(;_0x45ebe8!=_0x1bc011;)_0x2004f1[_0x45ebe8][_0x8c52('0xd5')]&&0x0!=_0x2004f1[_0x45ebe8][_0x8c52('0x116')]&&(_0x2004f1[_0x45ebe8][_0x8c52('0x48')]=!0x0,_0x401851['add'](_0x2004f1[_0x45ebe8][_0x8c52('0x1c')])),_0x45ebe8--;}}return _0x2004f1[_0x8c52('0x70')](_0x23269b=>!_0x23269b['isIncorrect']);}[_0x8c52('0x62')](_0x44cf83){const _0x2a2fcb=this[_0x8c52('0x66')][_0x8c52('0x39')]['schema'];for(let _0x4d5bdb=0x0;_0x4d5bdb<_0x44cf83[_0x8c52('0x7c')];_0x4d5bdb++){if(!(_0x44cf83[_0x4d5bdb]['isAdded']||_0x44cf83[_0x4d5bdb][_0x8c52('0x88')]||_0x44cf83[_0x4d5bdb][_0x8c52('0xd5')]||_0x44cf83[_0x4d5bdb][_0x8c52('0x10f')]))continue;if(0x0==_0x44cf83[_0x4d5bdb]['distance'])continue;const _0x5fd7d3=_0x44cf83[_0x4d5bdb][_0x8c52('0x8f')];_0x2a2fcb['isBlock'](_0x5fd7d3)||_0x2a2fcb[_0x8c52('0x2e')](_0x5fd7d3)||(_0x44cf83[_0x4d5bdb][_0x8c52('0xb3')]&&delete _0x44cf83[_0x4d5bdb]['isAdded'],_0x44cf83[_0x4d5bdb][_0x8c52('0x88')]&&delete _0x44cf83[_0x4d5bdb][_0x8c52('0x88')],_0x44cf83[_0x4d5bdb][_0x8c52('0x10f')]&&delete _0x44cf83[_0x4d5bdb][_0x8c52('0x10f')],_0x44cf83[_0x4d5bdb][_0x8c52('0xd5')]&&(_0x44cf83[_0x4d5bdb][_0x8c52('0x48')]=!0x0));}return _0x44cf83['filter'](_0x1e6d74=>!_0x1e6d74[_0x8c52('0x48')]);}['_makeModelFromTape'](_0xd68f19,_0x21ff8c,_0x232b47){const _0x15ab85=new _0x18ec3c(),_0x54aab7=[],_0x4913f7=new Map(),_0x171a43=this['editor']['model'],_0x1a2a2d=_0x171a43[_0x8c52('0x36')],_0x191896=[_0x15ab85],_0x48691f={},_0x28791b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x30b5dd=null;const _0x27170b=[0x0];for(let _0x390e0d=0x0;_0x390e0d<_0xd68f19['length'];_0x390e0d++){let _0x55b746,_0x580ce5;if(_0x8c52('0x10e')===_0xd68f19[_0x390e0d][_0x8c52('0xfe')]){_0x55b746=_0x171a43['createPositionFromPath'](_0x15ab85,_0x27170b);const _0x1c1ba1=new _0x40d188(_0xd68f19[_0x390e0d]['item'][_0x8c52('0xdc')],_0xd68f19[_0x390e0d]['item'][_0x8c52('0xfc')]());_0x191896[0x0][_0x8c52('0xb9')](_0x1c1ba1),_0x27170b[_0x8c52('0x7')](0x0),_0x191896[_0x8c52('0x1e')](_0x1c1ba1),_0x580ce5=_0x171a43[_0x8c52('0xbe')](_0x15ab85,_0x27170b),_0x30b5dd=null;}else{if(_0x8c52('0xbf')===_0xd68f19[_0x390e0d]['type'])_0x191896[_0x8c52('0x3d')](),_0x55b746=_0x171a43[_0x8c52('0xbe')](_0x15ab85,_0x27170b),_0x27170b[_0x8c52('0x2c')](),_0x27170b[_0x27170b[_0x8c52('0x7c')]-0x1]++,_0x580ce5=_0x171a43[_0x8c52('0xbe')](_0x15ab85,_0x27170b),_0x30b5dd=null;else{if(_0x55b746=_0x171a43[_0x8c52('0xbe')](_0x15ab85,_0x27170b),_0x30b5dd&&_0x588878(_0x30b5dd,_0xd68f19[_0x390e0d][_0x8c52('0x8f')]))_0x30b5dd[_0x8c52('0x9a')]+=_0xd68f19[_0x390e0d]['item'][_0x8c52('0x2f')];else{const _0x48329e=new _0xb751c2(_0xd68f19[_0x390e0d]['item']['data'],_0xd68f19[_0x390e0d]['item'][_0x8c52('0xfc')]());_0x191896[0x0][_0x8c52('0xb9')](_0x48329e),_0x30b5dd=_0x48329e;}_0x27170b[_0x27170b['length']-0x1]+=_0xd68f19[_0x390e0d][_0x8c52('0x8f')][_0x8c52('0x9c')],_0x580ce5=_0x171a43[_0x8c52('0xbe')](_0x15ab85,_0x27170b);}}for(const _0x36e44e of _0xd68f19[_0x390e0d][_0x8c52('0x30')])_0x4913f7[_0x8c52('0xa5')](_0x36e44e,{'start':_0x55b746,'end':null});_0x5f521f('isRemoveSuggestion',_0x390e0d,_0x55b746,_0x580ce5),_0x5f521f(_0x8c52('0x88'),_0x390e0d,_0x55b746,_0x580ce5),_0x5f521f(_0x8c52('0xd5'),_0x390e0d,_0x55b746,_0x580ce5),_0x5f521f('isAdded',_0x390e0d,_0x55b746,_0x580ce5);for(const _0x11e389 of _0xd68f19[_0x390e0d]['markersEnd']){_0x4913f7[_0x8c52('0xb5')](_0x11e389)[_0x8c52('0x94')]=_0x580ce5;}}for(const [_0x35bf50,_0x4c05b2]of _0x4913f7){const _0xa2c888=this[_0x8c52('0x66')][_0x8c52('0x39')][_0x8c52('0x7a')](_0x4c05b2[_0x8c52('0xf6')],_0x4c05b2['end']);_0x15ab85[_0x8c52('0x25')]['set'](_0x35bf50,_0xa2c888);}return _0x54aab7[_0x8c52('0x9')]((_0x35de4a,_0x41fe06)=>{const _0x4c6645=_0x15ab85[_0x8c52('0x25')]['get'](_0x8c52('0x14')+_0x35de4a['id']),_0x1bfd93=_0x15ab85[_0x8c52('0x25')][_0x8c52('0xb5')](_0x8c52('0x14')+_0x41fe06['id']);return _0x4c6645[_0x8c52('0xf6')]['isBefore'](_0x1bfd93[_0x8c52('0xf6')])?-0x1:_0x4c6645[_0x8c52('0xf6')][_0x8c52('0x7f')](_0x1bfd93[_0x8c52('0xf6')])?0x1:_0x4c6645['end'][_0x8c52('0xc1')](_0x1bfd93['end'])?-0x1:_0x4c6645[_0x8c52('0x94')][_0x8c52('0x7f')](_0x1bfd93[_0x8c52('0x94')])?0x1:_0x8c52('0x17')===_0x35de4a[_0x8c52('0xfe')]?-0x1:0x1;}),{'root':_0x15ab85,'changes':_0x54aab7};function _0x5f521f(_0x5f5e00,_0x17c948,_0x55b255,_0x57f280){const _0x4b44c6=!!_0xd68f19[_0x17c948][_0x5f5e00],_0x206abd=_0x4b44c6?_0xd68f19[_0x17c948][_0x5f5e00][_0x8c52('0xa0')]:null,_0x361522=_0x17c948===_0xd68f19[_0x8c52('0x7c')]-0x1,_0x17e318=_0x28791b[_0x5f5e00][0x0],_0x1374cf=_0x1a2a2d[_0x8c52('0xd7')](_0xd68f19[_0x17c948][_0x8c52('0x8f')]);!_0x48691f[_0x5f5e00]&&_0x4b44c6?_0x48691f[_0x5f5e00]={'start':_0x55b255,'tapeItem':_0xd68f19[_0x17c948],'userId':_0x206abd,'type':_0x5f5e00}:_0x48691f[_0x5f5e00]&&!_0x4b44c6?(_0x48691f[_0x5f5e00][_0x8c52('0x94')]=_0x55b255,_0x1f834d(_0x48691f[_0x5f5e00]),_0x48691f[_0x5f5e00]=null):_0x48691f[_0x5f5e00]&&_0x4b44c6&&_0x48691f[_0x5f5e00][_0x8c52('0xa0')]!==_0x206abd&&(_0x48691f[_0x5f5e00][_0x8c52('0x94')]=_0x55b255,_0x17e318&&_0x17e318['userId']===_0x48691f[_0x5f5e00][_0x8c52('0xa0')]||_0x1f834d(_0x48691f[_0x5f5e00]),_0x48691f[_0x5f5e00]={'start':_0x55b255,'tapeItem':_0xd68f19[_0x17c948],'userId':_0x206abd,'type':_0x5f5e00}),_0x48691f[_0x5f5e00]&&_0x1374cf&&(_0x8c52('0x10e')!==_0xd68f19[_0x17c948]['type']||_0x17e318&&_0x17e318['userId']===_0x206abd||_0x28791b[_0x5f5e00]['unshift']({'userId':_0x206abd,'object':_0xd68f19[_0x17c948][_0x8c52('0x8f')],'change':_0x48691f[_0x5f5e00]}),'elementEnd'===_0xd68f19[_0x17c948][_0x8c52('0xfe')]&&_0x17e318&&_0x17e318[_0x8c52('0x106')]===_0xd68f19[_0x17c948][_0x8c52('0x8f')]&&(_0x28791b[_0x5f5e00][_0x8c52('0x3d')](),_0x48691f[_0x5f5e00]=_0x17e318[_0x8c52('0x9b')])),_0x48691f[_0x5f5e00]&&_0x361522&&(_0x48691f[_0x5f5e00][_0x8c52('0x94')]=_0x57f280,_0x1f834d(_0x48691f[_0x5f5e00]),_0x48691f[_0x5f5e00]=null);}function _0x1f834d({start:_0x2f93a5,end:_0x47c83b,tapeItem:_0x22bbdc,userId:_0x4fd43d,type:_0x1a7048}){const _0x5db3fe=_0x22bbdc['item'],_0x2c4b13=_0x171a43[_0x8c52('0x36')]['isBlock'](_0x5db3fe)&&!_0x171a43[_0x8c52('0x36')][_0x8c52('0x2e')](_0x5db3fe),_0x261505=_0x2f93a5[_0x8c52('0x117')]==_0x47c83b['parent']&&_0x47c83b[_0x8c52('0x1b')];if(_0x2c4b13&&_0x261505)return;const _0x366df9=_0x171a43['createRange'](_0x2f93a5,_0x47c83b),_0x378306=_0x21ff8c['get'](_0x4fd43d),_0x35d9e0=new _0x290cfa({'author':_0x378306,'type':_0x8c52('0xb3')==_0x1a7048||_0x8c52('0x88')==_0x1a7048?_0x8c52('0x17'):_0x8c52('0xb1'),'data':{'isSuggestion':_0x8c52('0x88')==_0x1a7048||_0x8c52('0x10f')==_0x1a7048},'createdAt':new Date(),'rootName':_0x232b47});_0x54aab7[_0x8c52('0x7')](_0x35d9e0),_0x15ab85[_0x8c52('0x25')][_0x8c52('0xa5')](_0x8c52('0x14')+_0x35d9e0['id'],_0x366df9);}function _0x588878(_0x55581e,_0x47bdb0){const _0x5c3885=_0x55581e[_0x8c52('0xfc')](),_0x23eff0=_0x47bdb0[_0x8c52('0xfc')]();for(const _0x10fd2f of _0x5c3885){if(_0x10fd2f[0x1]!==_0x47bdb0['getAttribute'](_0x10fd2f[0x0]))return!0x1;_0x23eff0['next']();}return _0x23eff0[_0x8c52('0x86')]()[_0x8c52('0x64')];}}[_0x8c52('0xb8')](){this[_0x8c52('0x66')][_0x8c52('0x91')][_0x8c52('0x3b')](_0x8c52('0xef'))[_0x8c52('0xfb')]({'view':_0x8c52('0xb2')}),this[_0x8c52('0x66')][_0x8c52('0x91')][_0x8c52('0x3b')](_0x8c52('0x93'))[_0x8c52('0x6e')]({'model':'revision','view':_0x1b64d1=>{const _0x53bd72=_0x1b64d1[_0x8c52('0x16')][_0x8c52('0xa9')](':')[0x1],_0x40dbd9=this[_0x8c52('0x69')](_0x53bd72);if(!_0x40dbd9)return null;const _0x4c0d81=_0x8c52('0x17')==_0x40dbd9[_0x8c52('0xfe')]?_0x8c52('0xa'):_0x8c52('0xd4'),_0x3a7f17=[_0x8c52('0x96'),'ck-suggestion-marker-'+_0x4c0d81];return _0x40dbd9['data']['isSuggestion']&&_0x3a7f17[_0x8c52('0x7')](_0x8c52('0xa1')+_0x4c0d81+_0x8c52('0x10c')),this['activeChange']==_0x40dbd9&&_0x3a7f17[_0x8c52('0x7')](_0x8c52('0xd9')),{'classes':_0x3a7f17,'attributes':{'data-change-id':_0x53bd72}};}}),this[_0x8c52('0x66')][_0x8c52('0x91')]['for'](_0x8c52('0xef'))['add'](_0x724154=>{_0x724154['on'](_0x8c52('0x6'),(_0x51f32b,_0x2156dd,_0x272063)=>{const _0x5d1bb2=_0x2156dd['viewItem'][_0x8c52('0xe2')](0x0);if(!_0x5d1bb2||!_0x5d1bb2['is'](_0x8c52('0x4d'),'code'))return;if(!_0x272063[_0x8c52('0x7e')][_0x8c52('0x7b')](_0x5d1bb2,{'attributes':[_0x8c52('0x8e'),'vid_end']}))return;const _0x8d40b2=_0x2156dd[_0x8c52('0xf0')]['start'][_0x8c52('0x117')];_0x272063[_0x8c52('0xa3')]['setAttribute'](_0x8c52('0x8e'),_0x5d1bb2[_0x8c52('0x43')](_0x8c52('0x8e')),_0x8d40b2),_0x272063[_0x8c52('0xa3')]['setAttribute'](_0x8c52('0x11c'),_0x5d1bb2[_0x8c52('0x43')](_0x8c52('0x11c')),_0x8d40b2);},{'priority':_0x8c52('0xd0')});}),this['editor'][_0x8c52('0x91')][_0x8c52('0x3b')](_0x8c52('0xef'))[_0x8c52('0x17')](_0x489eef=>{_0x489eef['on'](_0x8c52('0x4d'),(_0x10b6cc,_0x14c5c5,_0xa5976a)=>{if(!_0xa5976a[_0x8c52('0x7e')]['consume'](_0x14c5c5[_0x8c52('0x3a')],{'attributes':[_0x8c52('0x8e'),'vid_end']}))return;if(_0x14c5c5[_0x8c52('0xf0')][_0x8c52('0xf1')])return;const _0x655f2=_0x14c5c5['modelRange'][_0x8c52('0xf6')]['nodeAfter'];_0x655f2[_0x8c52('0xe7')]('vid_start')||_0x655f2['hasAttribute']('vid')||(_0xa5976a[_0x8c52('0xa3')]['setAttribute']('vid_start',_0x14c5c5['viewItem'][_0x8c52('0x43')]('vid_start'),_0x655f2),_0xa5976a[_0x8c52('0xa3')][_0x8c52('0xdf')]('vid_end',_0x14c5c5[_0x8c52('0x3a')][_0x8c52('0x43')](_0x8c52('0x11c')),_0x655f2));},{'priority':_0x8c52('0xd0')});}),this[_0x8c52('0x66')]['conversion']['for'](_0x8c52('0xef'))['elementToAttribute']({'view':{'name':_0x8c52('0xe6'),'attributes':{'vid':!0x0}},'model':{'key':_0x8c52('0xbd'),'value':_0x1d1eb5=>_0x1d1eb5[_0x8c52('0x43')]('vid')}}),this[_0x8c52('0x66')]['model'][_0x8c52('0x36')]['on'](_0x8c52('0x56'),(_0x24894e,[,_0x2df863])=>{[_0x8c52('0x8e'),_0x8c52('0x11c'),_0x8c52('0xbd')]['includes'](_0x2df863)&&(_0x24894e['return']=!0x0,_0x24894e['stop']());},{'priority':_0x8c52('0x122')}),this[_0x8c52('0x66')]['conversion'][_0x8c52('0x3b')]('dataDowncast')['add'](_0x69901b=>{_0x69901b['on'](_0x8c52('0x58'),(_0x1f1691,_0x28f269,_0xa82a48)=>{if('\x20'!=_0x28f269['item']['data']||_0x28f269[_0x8c52('0x8f')][_0x8c52('0x11')][_0x8c52('0x6d')]>0x1)return;if(!_0xa82a48[_0x8c52('0x7e')]['consume'](_0x28f269[_0x8c52('0x8f')],_0x1f1691[_0x8c52('0xdc')]))return;const _0x4f7437=_0xa82a48[_0x8c52('0xa3')],_0x520618=_0xa82a48[_0x8c52('0xcc')][_0x8c52('0x26')](_0x28f269[_0x8c52('0xb4')]);_0x4f7437[_0x8c52('0x10b')](_0x520618,_0x4f7437[_0x8c52('0x37')](_0x8c52('0xe6')));});}),this['editor']['conversion'][_0x8c52('0x3b')]('dataDowncast')[_0x8c52('0x35')]({'model':'revision'}),this[_0x8c52('0x66')][_0x8c52('0x44')][_0x8c52('0x23')]['on'](_0x8c52('0xa2'),function(_0x577d6b){const _0x3477fa=_0x577d6b[_0x8c52('0x107')][_0x8c52('0xb5')](_0x8c52('0x29'));return(_0x25d218,_0x2d4fd7,_0x1671de)=>{const _0x231f92=_0x2d4fd7[_0x8c52('0x16')]['split'](':')[0x1],_0xd8c73a=_0x3477fa[_0x8c52('0x69')](_0x231f92);if(!_0xd8c73a)return null;const _0x15fe9e=_0x8c52('0x17')==_0xd8c73a[_0x8c52('0xfe')]?_0x8c52('0xa9'):_0x8c52('0x103');if(!_0x1671de[_0x8c52('0x7e')][_0x8c52('0x98')](_0x2d4fd7[_0x8c52('0xbc')],_0x25d218[_0x8c52('0xdc')]))return;const _0x5de41e=_0x2d4fd7[_0x8c52('0xbc')][_0x8c52('0x1')](),_0x29f6d2=_0x2d4fd7[_0x8c52('0xbc')][_0x8c52('0xf6')],_0x3dff6d=_0x577d6b[_0x8c52('0x39')][_0x8c52('0x36')];let _0x16ffaa=null,_0x1da1d=null,_0x5ee553=!0x1,_0x500599=!0x1;for(const _0x5ed7bb of _0x5de41e){const _0x273823=_0x5ed7bb[_0x8c52('0x8f')];_0x5ee553=_0x5ee553||_0x3dff6d[_0x8c52('0xaa')](_0x273823);const _0x276112=_0x1671de[_0x8c52('0xcc')][_0x8c52('0xd3')](_0x273823);if(_0x276112&&_0x276112[_0x8c52('0x119')](_0x8c52('0x55')))return;'elementEnd'==_0x5ed7bb['type']&&(_0x3dff6d[_0x8c52('0xea')](_0x273823)&&!_0x3dff6d[_0x8c52('0x2e')](_0x273823)&&(_0x273823[_0x8c52('0x4a')]||_0x29f6d2[_0x8c52('0x45')]?_0x16ffaa&&_0x16ffaa[_0x8c52('0x11')]==_0x273823||(_0x16ffaa=_0x273823,_0x1c4c1d(_0x5ed7bb[_0x8c52('0x41')]),_0x500599=!0x0):_0x1da1d=_0x1da1d||_0x5ed7bb[_0x8c52('0x41')]));}function _0x1c4c1d(_0x3a407a){const _0x4df003=_0x1671de[_0x8c52('0xa3')][_0x8c52('0x60')](_0x8c52('0xe6'),{'class':_0x8c52('0xa1')+_0x15fe9e}),_0x10fbd4=_0x1671de[_0x8c52('0xcc')][_0x8c52('0xb0')](_0x3a407a);_0xd8c73a[_0x8c52('0x2f')][_0x8c52('0x95')]&&_0x1671de['writer'][_0x8c52('0xc8')](_0x8c52('0xa1')+_0x15fe9e+'-new',_0x4df003),_0x3477fa[_0x8c52('0x81')]==_0xd8c73a&&_0x1671de[_0x8c52('0xa3')][_0x8c52('0xc8')](_0x8c52('0xd9'),_0x4df003),_0x1671de['writer'][_0x8c52('0x4b')](_0x10fbd4,_0x4df003),_0x1671de['mapper'][_0x8c52('0x61')](_0x4df003,_0x2d4fd7[_0x8c52('0x16')]);}_0x5ee553||_0x500599||!_0x1da1d||_0x1c4c1d(_0x1da1d);};}(this['editor']),{'priority':_0x8c52('0xe1')}),this[_0x8c52('0x66')]['editing'][_0x8c52('0x23')]['on'](_0x8c52('0xf3'),(_0x195b16,_0x31f9cb,_0x577ffd)=>{const _0x2100de=_0x577ffd[_0x8c52('0xcc')][_0x8c52('0xa8')](_0x31f9cb['markerName']);if(_0x2100de)for(const _0x54eae8 of _0x2100de)(_0x54eae8['hasClass']('ck-suggestion-marker-split')||_0x54eae8['hasClass']('ck-suggestion-marker-merge'))&&(_0x577ffd[_0x8c52('0xcc')]['unbindElementFromMarkerName'](_0x54eae8,_0x31f9cb['markerName']),_0x577ffd['writer'][_0x8c52('0xb1')](_0x54eae8));},{'priority':_0x8c52('0xe1')}),this[_0x8c52('0x66')]['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x9866df,_0x5a48b8,_0x5ad008)=>{const _0x3b62cf=_0x5a48b8[_0x8c52('0x16')][_0x8c52('0xa9')](':')[0x1],_0x58dde6=this[_0x8c52('0x69')](_0x3b62cf);if(!_0x58dde6)return null;const _0x1465a4=_0x8c52('0x17')==_0x58dde6[_0x8c52('0xfe')]?_0x8c52('0xa9'):'merge';if(_0x5ad008['consumable']['test'](_0x5a48b8['markerRange'],_0x9866df[_0x8c52('0xdc')]))for(const _0x417083 of _0x5a48b8[_0x8c52('0xbc')]['getItems']()){if(!_0x417083['is'](_0x8c52('0x4d'),_0x8c52('0x110')))continue;const _0x259cc9=_0x5ad008[_0x8c52('0xa3')]['createUIElement'](_0x8c52('0xe6'),{'class':_0x8c52('0xa1')+_0x1465a4}),_0x5028f0=_0x5ad008[_0x8c52('0xcc')][_0x8c52('0xb0')](this[_0x8c52('0x66')][_0x8c52('0x39')]['createPositionBefore'](_0x417083));_0x58dde6[_0x8c52('0x2f')][_0x8c52('0x95')]&&_0x5ad008[_0x8c52('0xa3')][_0x8c52('0xc8')](_0x8c52('0xa1')+_0x1465a4+_0x8c52('0x10c'),_0x259cc9),this[_0x8c52('0x81')]==_0x58dde6&&_0x5ad008[_0x8c52('0xa3')][_0x8c52('0xc8')]('ck-suggestion-marker--active',_0x259cc9),_0x5ad008[_0x8c52('0xa3')][_0x8c52('0x4b')](_0x5028f0,_0x259cc9),_0x5ad008['mapper'][_0x8c52('0x61')](_0x259cc9,_0x5a48b8[_0x8c52('0x16')]);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this[_0x8c52('0x66')]['editing']['view'][_0x8c52('0x9b')](_0x37a8b0=>{for(const _0x573996 of this[_0x8c52('0x66')][_0x8c52('0x39')]['document'][_0x8c52('0x90')]()){const _0x506680=this[_0x8c52('0x66')][_0x8c52('0x39')][_0x8c52('0x87')][_0x8c52('0x13')](_0x573996),_0x433547=this[_0x8c52('0x66')]['editing']['view'][_0x8c52('0x87')][_0x8c52('0x13')](_0x573996);if(_0x433547){const _0x22fff1=_0x506680[_0x8c52('0x43')](_0x8c52('0x2d'));if(_0x37a8b0['removeAttribute'](_0x8c52('0xa6'),_0x433547),_0x37a8b0[_0x8c52('0x10')]('ck-revision-history-root-add',_0x433547),_0x37a8b0['removeClass'](_0x8c52('0x21'),_0x433547),_0x37a8b0[_0x8c52('0x10')]('ck-revision-history-root--active',_0x433547),_0x22fff1){const _0x4c9f4f=this[_0x8c52('0x69')](_0x22fff1);if(!_0x4c9f4f)return null;_0x37a8b0[_0x8c52('0xdf')](_0x8c52('0xa6'),_0x22fff1,_0x433547),_0x37a8b0[_0x8c52('0xc8')]('ck-revision-history-root-'+_0x4c9f4f[_0x8c52('0xfe')],_0x433547),this[_0x8c52('0x81')]==_0x4c9f4f&&_0x37a8b0[_0x8c52('0xc8')](_0x8c52('0xc0'),_0x433547);}}}});}),this[_0x8c52('0x66')][_0x8c52('0x91')][_0x8c52('0x3b')](_0x8c52('0xef'))[_0x8c52('0xfb')]({'view':_0x8c52('0xc4'),'model':_0x5a819f=>_0x8c52('0x28')+_0x5a819f,'converterPriority':_0x8c52('0x122')}),this['editor'][_0x8c52('0x91')][_0x8c52('0x3b')](_0x8c52('0xef'))['dataToMarker']({'view':'suggestion','model':_0x38774c=>_0x8c52('0x8')+_0x38774c,'converterPriority':_0x8c52('0x122')}),this['editor'][_0x8c52('0x91')][_0x8c52('0x3b')](_0x8c52('0xcb'))[_0x8c52('0x35')]({'model':'revision-suggestion','view':_0x2fafe5=>({'name':_0x8c52('0xa4')+_0x2fafe5,'group':_0x8c52('0x8d')}),'converterPriority':_0x8c52('0x122')}),this[_0x8c52('0x66')]['conversion'][_0x8c52('0x3b')](_0x8c52('0x93'))[_0x8c52('0x6e')]({'model':_0x8c52('0x8d'),'view':_0xf8577b=>{const _0x4126d6=_0xf8577b[_0x8c52('0x16')][_0x8c52('0xa9')](':')[0x1];return'insertion'!=_0x4126d6&&'deletion'!=_0x4126d6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4126d6]};}}),this[_0x8c52('0x66')]['editing'][_0x8c52('0x23')]['on'](_0x8c52('0x80'),et(this[_0x8c52('0x66')],_0x8c52('0x103')),{'priority':_0x8c52('0xe1')}),this[_0x8c52('0x66')][_0x8c52('0x44')][_0x8c52('0x23')]['on'](_0x8c52('0xf2'),et(this[_0x8c52('0x66')],'split'),{'priority':_0x8c52('0xe1')}),this[_0x8c52('0x66')][_0x8c52('0x44')][_0x8c52('0x23')]['on']('removeMarker:revision-suggestion',(_0x175385,_0x320ceb,_0x13553a)=>{const _0x5634d1=_0x13553a[_0x8c52('0xcc')][_0x8c52('0xa8')](_0x320ceb[_0x8c52('0x16')]);if(_0x5634d1)for(const _0x34a66e of _0x5634d1)_0x34a66e['is'](_0x8c52('0x4'))&&(_0x13553a[_0x8c52('0xcc')][_0x8c52('0x50')](_0x34a66e,_0x320ceb[_0x8c52('0x16')]),_0x13553a[_0x8c52('0xa3')][_0x8c52('0xb1')](_0x34a66e));},{'priority':_0x8c52('0xe1')});}['_getChangeFromId'](_0x1b01d4){return this[_0x8c52('0x33')][_0x8c52('0xb5')](_0x1b01d4);}[_0x8c52('0x100')](_0x26bb09){return this[_0x8c52('0x22')]&&this[_0x8c52('0x22')][_0x8c52('0x31')](),this[_0x8c52('0x22')]=new _0x2e90cc(this['editor'][_0x8c52('0x7d')],_0x26bb09),this[_0x8c52('0x22')];}[_0x8c52('0x9f')](){this[_0x8c52('0x66')][_0x8c52('0x39')][_0x8c52('0x87')]['selection'][_0x8c52('0x2b')](_0x8c52('0xb2')),this['on'](_0x8c52('0xdb'),(_0x1e102e,_0x43ddc8,_0x57babf,_0x4582a7)=>{_0x4582a7&&this['_balloon']['remove'](_0x4582a7),_0x57babf&&(this['_balloon']['add']({'view':_0x57babf,'stackId':_0x8c52('0xcf'),'position':{'target':()=>{const _0x4a2eeb=this[_0x8c52('0x66')]['editing'],_0x5cf1ad=this['_getChangeFromId'](_0x57babf['changeId']);let _0x5724a8;if(_0x5cf1ad[_0x8c52('0x2f')]['isOnRoot']){const _0x29060d=_0x4a2eeb['view'][_0x8c52('0x99')](_0x5cf1ad[_0x8c52('0x5e')]);_0x5724a8=Array['from'](_0x29060d[_0x8c52('0xb')]());}else{const _0x151508=this[_0x8c52('0x66')]['model'][_0x8c52('0x25')][_0x8c52('0xb5')]('revision:'+_0x57babf[_0x8c52('0xc')]);_0x5724a8=Array[_0x8c52('0x10d')](_0x4a2eeb[_0x8c52('0xcc')][_0x8c52('0xa8')](_0x151508['name']))[_0x8c52('0x4c')](_0x111791=>_0x4a2eeb[_0x8c52('0xd')]['domConverter']['mapViewToDom'](_0x111791))[_0x8c52('0x4c')](_0x1e9ab9=>Array[_0x8c52('0x10d')](_0x1e9ab9[_0x8c52('0xb')]()))['flat']();}if(!this[_0x8c52('0xab')])return _0x5724a8[0x0];return _0x5724a8[_0x8c52('0x6c')](_0x247f6b=>_0x247f6b['top']-0x3<=this[_0x8c52('0xab')]['y']&&_0x247f6b[_0x8c52('0x84')]+0x3>=this['_activeViewTarget']['y']&&_0x247f6b[_0x8c52('0x102')]-0x3<=this['_activeViewTarget']['x']&&_0x247f6b[_0x8c52('0xff')]+0x3>=this[_0x8c52('0xab')]['x'])||_0x5724a8[0x0];}}}),this[_0x8c52('0xeb')][_0x8c52('0xf9')]('revisionHistoryLabel'));}),this['on'](_0x8c52('0xda'),(_0x1db9b8,_0x2e52d6,_0x6acaa8,_0x2ccf8d)=>{this[_0x8c52('0xf8')]=_0x6acaa8?this[_0x8c52('0x100')](_0x6acaa8):null,this['editor'][_0x8c52('0x39')][_0x8c52('0x9b')](()=>{const _0x432e84=this[_0x8c52('0x66')][_0x8c52('0x44')];_0x2ccf8d&&(_0x2ccf8d[_0x8c52('0x2f')][_0x8c52('0x78')]?_0x432e84['view'][_0x8c52('0x9b')](_0x15fbc4=>{_0x15fbc4[_0x8c52('0x10')]('ck-revision-history-root--active',_0x432e84[_0x8c52('0xd')][_0x8c52('0x87')]['getRoot'](_0x2ccf8d[_0x8c52('0x5e')]));}):_0x432e84['reconvertMarker'](_0x8c52('0x14')+_0x2ccf8d['id'])),_0x6acaa8&&(_0x6acaa8[_0x8c52('0x2f')][_0x8c52('0x78')]?_0x432e84[_0x8c52('0xd')][_0x8c52('0x9b')](_0x4532bd=>{_0x4532bd[_0x8c52('0xc8')](_0x8c52('0xc0'),_0x432e84[_0x8c52('0xd')][_0x8c52('0x87')]['getRoot'](_0x6acaa8['rootName']));}):_0x432e84[_0x8c52('0xe3')](_0x8c52('0x14')+_0x6acaa8['id']));});}),this[_0x8c52('0x5d')](this[_0x8c52('0x66')][_0x8c52('0x44')][_0x8c52('0xd')][_0x8c52('0x87')],_0x8c52('0x83'),(_0x4384ab,_0x280ec7)=>{if(this[_0x8c52('0x81')])return;const _0x53d8b3=this[_0x8c52('0x5a')](_0x280ec7[_0x8c52('0xf5')]),_0x1112cc=this[_0x8c52('0x33')]['get'](_0x53d8b3);_0x1112cc?(this['_activeViewTarget']={'x':_0x280ec7[_0x8c52('0x114')]['x'],'y':_0x280ec7['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1112cc)):(this[_0x8c52('0xab')]=null,this['activeView']=null);}),this[_0x8c52('0x5d')](this[_0x8c52('0x66')]['editing'][_0x8c52('0xd')][_0x8c52('0x87')],'mousedown',(_0x58e21d,_0x4ec9ae)=>{const _0x1ee596=this['_findChangeIdFromDomTarget'](_0x4ec9ae['target']),_0x1a2b8f=this['_changeIdToChange']['get'](_0x1ee596);_0x1a2b8f?(this['_activeViewTarget']={'x':_0x4ec9ae[_0x8c52('0x114')]['x'],'y':_0x4ec9ae[_0x8c52('0x114')]['y']},_0x1a2b8f===this['activeChange']?this[_0x8c52('0xeb')][_0x8c52('0x6b')]():this['activeChange']=_0x1a2b8f):(this[_0x8c52('0xab')]=null,this[_0x8c52('0x81')]=null);});}[_0x8c52('0x5a')](_0x3300d4){do{const _0x33cfbb=_0x3300d4[_0x8c52('0x43')](_0x8c52('0xa6'));if(_0x33cfbb)return _0x33cfbb;_0x3300d4=_0x3300d4[_0x8c52('0x11')];}while(_0x3300d4);return null;}[_0x8c52('0x115')](){this['editor'][_0x8c52('0x39')][_0x8c52('0x9b')](_0x2ed5ef=>{for(const _0x5e1c85 of this[_0x8c52('0x66')][_0x8c52('0x39')]['markers'])_0x2ed5ef[_0x8c52('0xe5')](_0x5e1c85);});}}function et(_0x32ca01,_0x206374){return(_0x233422,_0x402655,_0x20994a)=>{if(!_0x20994a[_0x8c52('0x7e')][_0x8c52('0x98')](_0x402655[_0x8c52('0xbc')],_0x233422[_0x8c52('0xdc')]))return;const _0x6d9a8a=_0x402655[_0x8c52('0xbc')]['getWalker'](),_0x2e71f4=_0x402655[_0x8c52('0xbc')][_0x8c52('0xf6')],_0x394c16=_0x32ca01['model']['schema'];let _0x1fc12f=null,_0x37d6ea=null,_0x3cc224=!0x1,_0x234093=!0x1;for(const _0x21a34e of _0x6d9a8a){const _0x2f2f39=_0x21a34e[_0x8c52('0x8f')];_0x3cc224=_0x3cc224||_0x394c16['isContent'](_0x2f2f39);const _0x208f79=_0x20994a[_0x8c52('0xcc')][_0x8c52('0xd3')](_0x2f2f39);if(_0x208f79&&_0x208f79['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21a34e[_0x8c52('0xfe')]&&(_0x394c16[_0x8c52('0xea')](_0x2f2f39)&&!_0x394c16['isLimit'](_0x2f2f39)&&(_0x2f2f39[_0x8c52('0x4a')]||_0x2e71f4[_0x8c52('0x45')]?_0x1fc12f&&_0x1fc12f[_0x8c52('0x11')]==_0x2f2f39||(_0x1fc12f=_0x2f2f39,_0x4b21d6(_0x21a34e[_0x8c52('0x41')]),_0x234093=!0x0):_0x37d6ea=_0x37d6ea||_0x21a34e['previousPosition']));}function _0x4b21d6(_0x2befbb){const _0x23477d=_0x20994a[_0x8c52('0xcc')][_0x8c52('0xb0')](_0x2befbb),_0x22fc90=_0x20994a['writer']['createUIElement'](_0x8c52('0xe6'),{'class':_0x8c52('0x6a')+_0x206374});_0x20994a['writer'][_0x8c52('0x4b')](_0x23477d,_0x22fc90),_0x20994a[_0x8c52('0xcc')][_0x8c52('0x61')](_0x22fc90,_0x402655[_0x8c52('0x16')]);}_0x3cc224||_0x234093||!_0x37d6ea||_0x4b21d6(_0x37d6ea);};}export class RestoreRevisionCommand extends _0x4f8e0d{constructor(_0x174c01){super(_0x174c01);const _0x7fc339=_0x174c01[_0x8c52('0x107')][_0x8c52('0xb5')](d);this[_0x8c52('0x54')]=!0x1,this['listenTo'](_0x7fc339,_0x8c52('0x8c'),()=>this[_0x8c52('0x73')]()),this[_0x8c52('0x5d')](_0x7fc339,_0x8c52('0x27'),()=>this[_0x8c52('0x73')]());}[_0x8c52('0x120')](){const _0x3e2d63=this[_0x8c52('0x66')],_0x34d377=_0x3e2d63[_0x8c52('0x107')][_0x8c52('0xb5')](d),_0x314b11=_0x34d377['isReady']?_0x34d377['diff'][_0x8c52('0x104')]:null;_0x3e2d63[_0x8c52('0x108')]['get'](_0x8c52('0x11f'))[_0x8c52('0xf4')](_0x314b11);}[_0x8c52('0x73')](){const {isReady:_0x2c3564,isEnabled:_0x42e629}=this[_0x8c52('0x66')][_0x8c52('0x107')][_0x8c52('0xb5')](d);this['isEnabled']=_0x2c3564&&_0x42e629;}}export class ShowChangeCommand extends _0x4f8e0d{constructor(_0x43dca3,{direction:_0x41ffc0}){super(_0x43dca3);const _0x316f80=_0x43dca3[_0x8c52('0x107')][_0x8c52('0xb5')](d);this[_0x8c52('0x54')]=!0x1,this[_0x8c52('0xee')]=_0x8c52('0x1f')===_0x41ffc0?0x1:-0x1,this['listenTo'](_0x316f80,_0x8c52('0x8c'),()=>this['refresh']()),this[_0x8c52('0x5d')](_0x316f80,_0x8c52('0x27'),()=>this[_0x8c52('0x73')]()),this[_0x8c52('0x5d')](_0x316f80,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1da5c5=this[_0x8c52('0x66')],_0xc3c304=_0x1da5c5[_0x8c52('0x107')][_0x8c52('0xb5')](d),{isNavigationMode:_0xebe199,currentChangeNumber:_0x8e27f1}=_0xc3c304;let _0x17e0ae;if(_0xc3c304[_0x8c52('0x81')]=_0xebe199?_0xc3c304['diff'][_0x8c52('0x113')]['get'](_0x8e27f1+this[_0x8c52('0xee')]):_0xc3c304[_0x8c52('0x15')][_0x8c52('0x113')][_0x8c52('0x6f')],_0xc3c304[_0x8c52('0x81')][_0x8c52('0x2f')]['isOnRoot'])_0x17e0ae=_0x1da5c5[_0x8c52('0x44')][_0x8c52('0xd')][_0x8c52('0x99')](_0xc3c304[_0x8c52('0x81')][_0x8c52('0x5e')]);else{const _0x177675=_0x1da5c5[_0x8c52('0x39')]['markers'][_0x8c52('0xb5')](_0x8c52('0x14')+_0xc3c304[_0x8c52('0x81')]['id']);_0x17e0ae=_0x2df8cb(_0x1da5c5[_0x8c52('0x44')],_0x177675);}_0x555514({'target':_0x17e0ae,'viewportOffset':0x28});}[_0x8c52('0x73')](){const {isNavigationMode:_0xed72d3,currentChangeNumber:_0xd101ba,numberOfChanges:_0x104b3b,isReady:_0x374a81,isEnabled:_0x20e481}=this[_0x8c52('0x66')][_0x8c52('0x107')][_0x8c52('0xb5')](d);this[_0x8c52('0x11b')]=!!(_0x20e481&&_0x374a81&&_0x104b3b)&&(!_0xed72d3||(0x1===this[_0x8c52('0xee')]?_0xd101ba<_0x104b3b-0x1:_0xd101ba>0x0));}}
|
|
23
|
+
const _0x512f=['attributesBefore','addMarker:revision-suggestion:deletion','elementEnd','removeAttribute','_markMarkers','concat','attachChange','addMarker:revision-suggestion:insertion','markerRange','_cleanUp','_activeViewTarget','highest','insertions','splice','left','data','isSuggestion','_removeMissingPairs','ck-suggestion-marker-','ck-revision-history-root-add','RevisionViewer','catch','isBefore','removeClass','shift','_setConversion','getClientRects','revisionHistoryAttachChange','suggestion','clear','refresh','insert','text','attributes','_setDistance','isContent','isEnabled','createAttributeElement','low','end','mousedown','ck-suggestion-marker--active','upcast','domEvent','toViewElement','_makeModelFromViewString','isNavigationMode','isReady','addClass','processor','startsWith','suggestion:','enableReadOnlyMode','setAttribute','activeChange','next','downcastDispatcher','config','isRemoveSuggestion','_initInteractions','forceDisabled','isAtStart','isObject','stop','mouseover','add','_cleanMarkers','createUIElement','nextPosition','markersEnd','getRevision','index','span','isBlock','_markSuggestions','ck-revision-history-root-remove','removeMarker:revision','roots','startIndex','showStack','markersStart','revisionHistoryLabel','change:numberOfChanges','_update','isAtEnd','mapViewToDom','isInline','isAfter','then','set','checkAttribute','model','forward','_changeView','getCustomProperty','_getDiff','hasClass','target','pairId','uiElement','plugins','parse','repository','getRootNames','editingDowncast','_removeUnsupportedChanges','findIndex','isAttached','length','isOnRoot','mapper','_getViewForChange','endIndex','_sortAndFilterDiffChanges','activeView','editor','pluginName','adapter','high','bottom','revision','parent','nodeAfter','consume','toModel','changes','view','markerToData','useFillerType','keys','change:isEnabled','_getRevisionsRange','getDomRoot','ck-suggestion-marker','dataToMarker','_balloon','object','revision-viewer','editing','resolve','_revisions','detachRoot','insertion','toViewPosition','_setChanges','toData','type','schema','WidgetToolbarRepository','element','item','error','_markMismatchedRemovedTags','_step','getAttribute','isAdded','listenTo','modelRange','_fixObsoleteTags','getRevisionData','for','get','from','_changeIdToChange','deletion','revision:','affectsData','data-change-id','createRevision','isEqual','revision-suggestion:','loadRevisionData','offsetSize','getRoot','showNextChange','getIndex','createPositionBefore','updatePosition','find','_makeModelFromTape','removeMarker:revision-suggestion','ck-revision-history-root--active','return','ck-suggestion-preview-marker-','delete','nextSibling','createRange','markerNameToElements','attribute:vid','addRevision','_removeRevisionMarkers','markerName','_getViewObj','string','maxOffset','revision-start','level','bind','requires','change:activeView','abs','_refreshStartEndIndex','change','all','sort','has','consumable','execute','destroy','restoreRevision','dataDowncast','change:isReady','getRevisionRootsAttributes','getWalker','range','element:pre','document','commands','userId','ck-suggestion-marker-merge','elementToAttribute','_data','split','domConverter','indexOf','merge','isIncorrect','diff','test','comment','isAddSuggestion','change:activeChange','first','numberOfChanges','_markInsertions','_joinTapes','_getChangeFromId','_appendChild','toViewRange','flat','conversion','_processTape','selection','markerToHighlight','rootName','elementStart','writer','-new','hasAttribute','_makeTape','isLimit','unbindElementFromMarkerName','vid_start','getAttributes','ck-suggestion-preview-marker','attributesAfter','revision-suggestion','revision-comment:','_findChangeIdFromDomTarget','reconvertMarker','start','restoreRevisionCallback','vid_end','init','distance','addRevisionData','children','createRangeIn','addHighlight','createPositionFromPath','slice','push','RevisionsRepository','unshift','getChild','enqueueChange','includes','isRemoved','name','ck-editor__editable__overlay','viewItem','map','vid','forEach','side','previousPosition','currentChangeNumber','markers','remove','oldRevisionId','bindElementToMarker','changeId','diffData','filter','deletions','ck-revision-history-root-'];(function(_0x330ea7,_0x512f00){const _0x10ed49=function(_0x9667a2){while(--_0x9667a2){_0x330ea7['push'](_0x330ea7['shift']());}};_0x10ed49(++_0x512f00);}(_0x512f,0x13a));const _0x10ed=function(_0x330ea7,_0x512f00){_0x330ea7=_0x330ea7-0x0;let _0x10ed49=_0x512f[_0x330ea7];return _0x10ed49;};import{Plugin as _0x27f16f,Command as _0x46c3fd}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x320b83}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1af1cc}from'ckeditor5/src/ui';import{DocumentFragment as _0x1d3a31,Element as _0x5577c4,Text as _0x879057,ViewDocumentFragment as _0x2df832,ViewText as _0x18ad25,ViewElement as _0x34c193,ViewContainerElement as _0xfbd701,ViewAttributeElement as _0x2d52cf,ViewEmptyElement as _0x5db82e,ViewRawElement as _0x4418d7,ViewUIElement as _0x268adc}from'ckeditor5/src/engine';import{Users as _0x199734,getMarkerDomElement as _0x4d02c5}from'ckeditor5-collaboration/src/collaboration-core';import _0x542f7b from'./ui/revisionviewer/changedetailsview';import _0x5aa07e from'./revisionsrepository';import _0x406215 from'./changeitem';import{default as _0x3c7eb4}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x1eb127}from'lodash-es';const tt={'c':_0xfbd701,'a':_0x2d52cf,'e':_0x5db82e,'r':_0x4418d7,'u':_0x268adc};export default class d extends _0x27f16f{static get[_0x10ed('0x62')](){return _0x10ed('0x2');}static get[_0x10ed('0xb4')](){return[_0x199734,_0x1af1cc,_0x5aa07e];}constructor(_0x37669d){super(_0x37669d),this[_0x10ed('0x54')]=this[_0x10ed('0x61')]['plugins'][_0x10ed('0x8f')](_0x10ed('0xfe')),this['set']('activeChange',null),this[_0x10ed('0x47')](_0x10ed('0x60'),null),this[_0x10ed('0x120')]=null,this[_0x10ed('0x47')](_0x10ed('0xd1'),null),this['set'](_0x10ed('0x1d'),!0x1),this[_0x10ed('0x47')](_0x10ed('0x12'),!0x0),this['on']('change:isEnabled',(_0x4992d3,_0x1a9b2a,_0x55e748)=>{this[_0x10ed('0x24')]=null,this[_0x10ed('0x60')]=null,this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xb8')](_0x54ff03=>{for(const _0x48df43 of this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')][_0x10ed('0x3b')])_0x55e748?_0x54ff03[_0x10ed('0x5')](_0x10ed('0x105'),_0x48df43):_0x54ff03['addClass']('ck-editor__editable__overlay',_0x48df43);});}),this[_0x10ed('0xb3')](_0x10ed('0x1c'))['to'](this,'activeChange',_0x3f1f8c=>null!==_0x3f1f8c),this[_0x10ed('0xb3')](_0x10ed('0x10c'))['to'](this,'isReady',this,_0x10ed('0xd1'),this,'activeChange',(_0x56a1b3,_0x1b228f,_0x21dcba)=>_0x56a1b3&&_0x21dcba?_0x1b228f['changes'][_0x10ed('0x9d')](_0x21dcba):0x0),this['bind'](_0x10ed('0xd7'))['to'](this,'isReady',this,_0x10ed('0xd1'),(_0x3bbd58,_0x333362)=>_0x3bbd58?_0x333362[_0x10ed('0x6b')]['length']:0x0),this[_0x10ed('0x4b')]=null,this[_0x10ed('0x91')]=new Map(),this[_0x10ed('0x63')]=null,this['_balloon']=this[_0x10ed('0x61')][_0x10ed('0x52')]['get'](_0x1af1cc);}[_0x10ed('0xf5')](){const _0x1b3fb4=this['editor'],_0x2cdad6=new ShowChangeCommand(_0x1b3fb4,{'direction':'backward'}),_0x5b8dc5=new ShowChangeCommand(_0x1b3fb4,{'direction':_0x10ed('0x4a')});(_0x1b3fb4['commands']['add']('showPreviousChange',_0x2cdad6),_0x1b3fb4['commands'][_0x10ed('0x2f')](_0x10ed('0x9c'),_0x5b8dc5),_0x1b3fb4[_0x10ed('0xc7')][_0x10ed('0x2f')](_0x10ed('0xbf'),new RestoreRevisionCommand(_0x1b3fb4)),this['on'](_0x10ed('0x40'),()=>{_0x2cdad6[_0x10ed('0xc')](),_0x5b8dc5[_0x10ed('0xc')]();}),this[_0x10ed('0x7')](),this[_0x10ed('0x29')](),_0x1b3fb4[_0x10ed('0x22')](_0x10ed('0x77')),_0x1b3fb4[_0x10ed('0x52')][_0x10ed('0xbb')](_0x10ed('0x82')))&&_0x1b3fb4['plugins'][_0x10ed('0x8f')](_0x10ed('0x82'))[_0x10ed('0x2a')](_0x10ed('0x77'));}async[_0x10ed('0x8d')](_0x2f50c5){await this[_0x10ed('0x99')](_0x2f50c5);const _0xb283d7={};for(const _0xbfcc8f in _0x2f50c5[_0x10ed('0x112')]){if(_0x2f50c5[_0x10ed('0x112')][_0xbfcc8f][_0x10ed('0x11c')]&&!_0x2f50c5[_0x10ed('0x112')][_0xbfcc8f][_0x10ed('0x11c')][_0x10ed('0x59')])continue;const _0x2022fb=this[_0x10ed('0xac')](JSON[_0x10ed('0x53')](_0x2f50c5[_0x10ed('0x112')][_0xbfcc8f][_0x10ed('0x122')])),_0x1a12b4=this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')],_0x628678=new _0x2df832(_0x1a12b4,_0x2022fb[_0x10ed('0x107')](_0x403423=>this['_getViewObj'](_0x403423)));this[_0x10ed('0x61')][_0x10ed('0x125')]['processor'][_0x10ed('0x6e')]('marked'),_0xb283d7[_0xbfcc8f]=this[_0x10ed('0x61')][_0x10ed('0x125')][_0x10ed('0x1f')][_0x10ed('0x7f')](_0x628678),this['editor'][_0x10ed('0x125')][_0x10ed('0x1f')][_0x10ed('0x6e')]('default');}return _0xb283d7;}async[_0x10ed('0xc2')](_0x5bde50){await this['loadRevisionData'](_0x5bde50);const _0x458454={};for(const _0xbb3992 in _0x5bde50[_0x10ed('0x112')])_0x5bde50[_0x10ed('0x112')][_0xbb3992][_0x10ed('0x11c')]&&!_0x5bde50['diffData'][_0xbb3992]['attachChange'][_0x10ed('0x59')]||(_0x458454[_0xbb3992]=_0x5bde50[_0x10ed('0x112')][_0xbb3992][_0x10ed('0xed')]||{});return _0x458454;}[_0x10ed('0xac')](_0x2e36bc){return(_0x2e36bc=_0x2e36bc['filter'](_0x2012e6=>!_0x2012e6['name']||_0x10ed('0xb1')!==_0x2012e6[_0x10ed('0x104')]&&'revision-end'!==_0x2012e6[_0x10ed('0x104')]))['forEach'](_0x451291=>{_0x10ed('0xaf')!=typeof _0x451291&&(_0x451291[_0x10ed('0xf8')]=this['_removeRevisionMarkers'](_0x451291[_0x10ed('0xf8')]),_0x451291[_0x10ed('0xf')]=_0x451291['attributes']['filter'](_0x526a91=>!_0x526a91[0x0][_0x10ed('0x20')]('data-revision-')));}),_0x2e36bc;}async['compare'](_0x3ed74c,_0x5644be,_0x2de20f=!0x1){if(!this[_0x10ed('0x12')])return;const _0x3801cf=this['diff'],_0xf14b8f=this['repository'],_0x20d560=_0x10ed('0xaf')==typeof _0x3ed74c?_0xf14b8f[_0x10ed('0x34')](_0x3ed74c):_0x3ed74c,_0x17d94c=_0x10ed('0xaf')==typeof _0x5644be?_0xf14b8f['getRevision'](_0x5644be):_0x5644be,_0xe61879=_0x20d560['id'],_0x485855=_0x17d94c?_0x17d94c['id']:null;if(!_0x2de20f&&this['diff']&&this[_0x10ed('0xd1')]['newRevisionId']===_0xe61879&&this[_0x10ed('0xd1')][_0x10ed('0x10f')]===_0x485855)return Promise[_0x10ed('0x79')]();this[_0x10ed('0x1d')]=!0x1,this[_0x10ed('0x60')]=null,this[_0x10ed('0x24')]=null,this[_0x10ed('0xd1')]=new _0x3c7eb4(_0xe61879,_0x485855);const _0x300a25=this[_0x10ed('0x71')](_0x20d560,_0x17d94c,!0x0)[_0x10ed('0x107')](_0x5cae0d=>this[_0x10ed('0x99')](_0x5cae0d));return _0x300a25[_0x10ed('0xfd')](new Promise(_0x206b4a=>{setTimeout(_0x206b4a,0x14);})),Promise[_0x10ed('0xb9')](_0x300a25)[_0x10ed('0x46')](()=>{if(!this[_0x10ed('0x12')])return;this[_0x10ed('0x11f')]();const _0x3b008a=this[_0x10ed('0x4d')](_0xe61879,_0x485855);for(const _0x2e24a2 of _0x3b008a[_0x10ed('0x6b')])this[_0x10ed('0x91')][_0x10ed('0x47')](_0x2e24a2['id'],_0x2e24a2);this['editor'][_0x10ed('0x49')]['enqueueChange']({'isUndoable':!0x1},_0x557d16=>{for(const _0x5e3c0a of this[_0x10ed('0x61')][_0x10ed('0x49')]['document'][_0x10ed('0x55')]())_0x557d16[_0x10ed('0x7b')](_0x5e3c0a);for(const _0x2e629a of Object[_0x10ed('0x6f')](_0x3b008a['model'])){const _0x273fb8=_0x557d16['addRoot'](_0x2e629a);for(const _0x5957fc of Object[_0x10ed('0x6f')](_0x3b008a[_0x10ed('0xf')][_0x2e629a]))_0x557d16[_0x10ed('0x23')](_0x5957fc,_0x3b008a[_0x10ed('0xf')][_0x2e629a][_0x5957fc],_0x273fb8);_0x557d16[_0x10ed('0xd')](_0x3b008a['model'][_0x2e629a],_0x273fb8,0x0);}}),this[_0x10ed('0xd1')][_0x10ed('0x7e')](this[_0x10ed('0x5f')](_0x3b008a[_0x10ed('0x6b')])),this[_0x10ed('0x1d')]=!0x0;})[_0x10ed('0x3')](_0x531c26=>{console[_0x10ed('0x85')](_0x531c26),this['_cleanUp'](),_0x3801cf&&(this['diff']=_0x3801cf),this['isReady']=!0x0;});}[_0x10ed('0xf7')](_0x39f316,_0x549e8c){const _0x4662d2=this[_0x10ed('0x54')][_0x10ed('0x96')](_0x39f316);return _0x4662d2['on'](_0x10ed('0x41'),(_0x2882bb,_0xdd480,_0x1f2d5d)=>_0x549e8c(_0xdd480,_0x1f2d5d,_0x4662d2)),this['repository'][_0x10ed('0xab')](_0x4662d2),_0x4662d2;}['loadRevisionData'](_0x445abc){if(!_0x445abc||_0x445abc['diffData'])return Promise[_0x10ed('0x79')]();{const _0x103ef8=this['editor'][_0x10ed('0x27')][_0x10ed('0x8f')]('collaboration.channelId');return this[_0x10ed('0x63')]['getRevision']({'channelId':_0x103ef8,'revisionId':_0x445abc['id']})[_0x10ed('0x46')](_0x24236b=>{_0x445abc['_update']({'diffData':_0x24236b['diffData']},!0x0);});}}[_0x10ed('0x11f')](){this[_0x10ed('0x24')]=null,this['_cleanMarkers'](),this[_0x10ed('0x4b')]&&this['_changeView'][_0x10ed('0xbe')](),this[_0x10ed('0x4b')]=null,this['_changeIdToChange'][_0x10ed('0xb')](),this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0x101')]({'isUndoable':!0x1},_0x12ed64=>{for(const _0x30e3c9 of this[_0x10ed('0x61')]['model']['document'][_0x10ed('0x55')]())_0x12ed64['detachRoot'](_0x30e3c9);});}['_sortAndFilterDiffChanges'](_0xbecdbe){const _0x162909=[],_0x5edaa9=new Map();for(const _0x150c8b of this[_0x10ed('0x61')][_0x10ed('0x49')]['document'][_0x10ed('0x55')]()){const _0x15ce90=this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0x72')](_0x150c8b);if(!_0x15ce90)continue;const _0xa6b73=_0x15ce90[_0x10ed('0x8')]()[_0x10ed('0x84')](0x0);_0xa6b73&&(_0x162909[_0x10ed('0xfd')](_0x150c8b),_0x5edaa9['set'](_0x150c8b,_0xa6b73));}return _0x162909[_0x10ed('0xba')]((_0x1a48e3,_0x83a711)=>{const _0x37e572=_0x5edaa9[_0x10ed('0x8f')](_0x1a48e3),_0x36755d=_0x5edaa9[_0x10ed('0x8f')](_0x83a711);return _0x37e572['y']-_0x36755d['y']||_0x37e572['x']-_0x36755d['x'];}),(_0xbecdbe=_0xbecdbe[_0x10ed('0x113')](_0x37ce0b=>_0x162909['includes'](_0x37ce0b['rootName'])))[_0x10ed('0xba')]((_0x57473c,_0x7e8329)=>_0x162909[_0x10ed('0xce')](_0x57473c[_0x10ed('0xe2')])-_0x162909[_0x10ed('0xce')](_0x7e8329['rootName'])),_0xbecdbe;}[_0x10ed('0xe7')](_0x124c56){const _0x25a0ee=Array['from'](_0x124c56[_0x10ed('0x10d')])['filter'](([_0xdf540b,_0x44b83c])=>_0xdf540b[_0x10ed('0x20')](_0x10ed('0x93'))&&!_0x44b83c['isCollapsed']),_0x386573=Array['from'](this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xf9')](_0x124c56)[_0x10ed('0xc3')]({'singleCharacters':!0x0}));if(0x0!=_0x25a0ee[_0x10ed('0x5a')])for(const _0x4d39a9 of _0x386573){const [_0x2f2ede,_0x142b40]=_0x25a0ee[0x0],[,_0x18ba16,_0x9c694a]=_0x2f2ede[_0x10ed('0xcc')](':');if(_0x142b40['end'][_0x10ed('0x97')](_0x4d39a9[_0x10ed('0x32')])&&_0x25a0ee['shift'](),(_0x4d39a9[_0x10ed('0x10b')][_0x10ed('0x97')](_0x142b40[_0x10ed('0xf2')])||_0x4d39a9['previousPosition'][_0x10ed('0x45')](_0x142b40[_0x10ed('0xf2')]))&&(_0x10ed('0x7c')==_0x18ba16?_0x4d39a9[_0x10ed('0x89')]={'userId':_0x9c694a}:_0x10ed('0x92')==_0x18ba16&&(_0x4d39a9['isRemoved']={'userId':_0x9c694a})),0x0==_0x25a0ee['length'])break;}return _0x386573;}['_refreshStartEndIndex'](_0x3fa3fd){const _0xf2d122=new Map();for(let _0x106417=0x0;_0x106417<_0x3fa3fd[_0x10ed('0x5a')];_0x106417++)_0x10ed('0xe')===_0x3fa3fd[_0x106417]['type']?(_0x3fa3fd[_0x106417][_0x10ed('0x84')][_0x10ed('0x3c')]=_0x106417,_0x3fa3fd[_0x106417][_0x10ed('0x84')]['endIndex']=_0x106417):(_0x10ed('0xe3')===_0x3fa3fd[_0x106417]['type']?_0x3fa3fd[_0x106417][_0x10ed('0x84')]['startIndex']=_0x106417:_0x10ed('0x118')===_0x3fa3fd[_0x106417][_0x10ed('0x80')]&&(_0x3fa3fd[_0x106417][_0x10ed('0x84')][_0x10ed('0x5e')]=_0x106417),_0xf2d122[_0x10ed('0x47')](_0x3fa3fd[_0x106417]['id'],_0x106417));for(const _0x54aea5 of _0xf2d122['values']())'elementStart'===_0x3fa3fd[_0x54aea5]['type']?_0x3fa3fd[_0x54aea5][_0x10ed('0x84')][_0x10ed('0x5e')]=_0xf2d122['get'](_0x3fa3fd[_0x54aea5][_0x10ed('0x50')]):_0x10ed('0x118')===_0x3fa3fd[_0x54aea5][_0x10ed('0x80')]&&(_0x3fa3fd[_0x54aea5][_0x10ed('0x84')]['startIndex']=_0xf2d122[_0x10ed('0x8f')](_0x3fa3fd[_0x54aea5][_0x10ed('0x50')]));}[_0x10ed('0xdf')](_0x535c32){for(let _0x340449=0x0;_0x340449<_0x535c32[_0x10ed('0x5a')];_0x340449++){if(_0x10ed('0xe3')===_0x535c32[_0x340449][_0x10ed('0x80')])_0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x3c')]=_0x340449;else{if(_0x10ed('0x118')===_0x535c32[_0x340449]['type']){_0x535c32[_0x340449]['item']['endIndex']=_0x340449;const _0x4af7db=_0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x3c')];_0x535c32[_0x4af7db]['pairId']=_0x535c32[_0x340449]['id'],_0x535c32[_0x340449][_0x10ed('0x50')]=_0x535c32[_0x4af7db]['id'];}else _0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x3c')]=_0x340449,_0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x5e')]=_0x340449,_0x535c32[_0x340449][_0x10ed('0x50')]=null;}_0x535c32[_0x340449][_0x10ed('0x3e')]||(_0x535c32[_0x340449][_0x10ed('0x3e')]=[],_0x535c32[_0x340449][_0x10ed('0x33')]=[]);}}[_0x10ed('0xd8')](_0x242f18,_0x5ab936){const _0x5c2387=_0x242f18[_0x10ed('0x113')](_0x2f695d=>!_0x2f695d[_0x10ed('0x89')]);for(let _0x4c4e75=0x0;_0x4c4e75<_0x5ab936[_0x10ed('0x5a')];_0x4c4e75++)_0x5ab936[_0x4c4e75][_0x10ed('0x89')]&&(_0x5c2387[_0x4c4e75]['isAdded']=_0x5ab936[_0x4c4e75][_0x10ed('0x89')]);}[_0x10ed('0x1b')](_0x1da0f9){const _0x28ac54=JSON['parse'](_0x1da0f9),_0x34c9b0=this['editor'][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')],_0x1ca634=new _0x2df832(_0x34c9b0,_0x28ac54['map'](_0x424f26=>this[_0x10ed('0xae')](_0x424f26)));return this[_0x10ed('0x61')][_0x10ed('0x125')][_0x10ed('0x6a')](_0x1ca634);}[_0x10ed('0xae')](_0x1b6d90){const _0x18a6cb=this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')];if('string'==typeof _0x1b6d90)return new _0x18ad25(_0x18a6cb,_0x1b6d90);{const _0x354ee4=_0x1b6d90[_0x10ed('0xf8')][_0x10ed('0x107')](_0x58fd7b=>this[_0x10ed('0xae')](_0x58fd7b));return new(tt[_0x1b6d90['type']]||_0x34c193)(_0x18a6cb,_0x1b6d90[_0x10ed('0x104')],_0x1b6d90[_0x10ed('0xf')],_0x354ee4);}}['_getDiff'](_0x16a0f7,_0x1861d3=null){const _0x16a70c=this[_0x10ed('0x54')][_0x10ed('0x34')](_0x16a0f7),_0x1fe584=_0x1861d3?this['repository'][_0x10ed('0x34')](_0x1861d3):null,_0x3d2f83=this[_0x10ed('0x71')](_0x16a70c,_0x1fe584),_0x4bc289=_0x3d2f83[_0x3d2f83['length']-0x1],_0x157a40=new Map(),_0x353d14={'model':{},'attributes':{},'changes':[]},_0x5a799b=new Set(),_0x4054a5=new Map();for(let _0x2c3baf=_0x3d2f83[_0x10ed('0x5a')]-0x1;_0x2c3baf>=0x0;_0x2c3baf--){const _0x26dfd8=_0x3d2f83[_0x2c3baf];for(const _0x2dd4d0 of Object[_0x10ed('0x6f')](_0x26dfd8[_0x10ed('0x112')]))if(_0x26dfd8[_0x10ed('0x112')][_0x2dd4d0]['attachChange']){const _0x1ec337=_0x26dfd8[_0x10ed('0x112')][_0x2dd4d0]['attachChange'];_0x1ec337[_0x10ed('0x59')]?(_0x5a799b[_0x10ed('0x2f')](_0x2dd4d0),_0x4054a5['has'](_0x2dd4d0)&&_0x4054a5[_0x10ed('0x8f')](_0x2dd4d0)[_0x10ed('0xc8')]==_0x1ec337['userId']?_0x4054a5['delete'](_0x2dd4d0):_0x4054a5[_0x10ed('0x47')](_0x2dd4d0,_0x1ec337)):_0x4054a5[_0x10ed('0xbb')](_0x2dd4d0)?(_0x5a799b[_0x10ed('0xa6')](_0x2dd4d0),_0x4054a5[_0x10ed('0xa6')](_0x2dd4d0)):(_0x5a799b[_0x10ed('0x2f')](_0x2dd4d0),_0x4054a5['set'](_0x2dd4d0,_0x1ec337));}else _0x5a799b['add'](_0x2dd4d0);}for(const _0x38033c of _0x5a799b){const _0x1ee4ad=_0x4054a5[_0x10ed('0xbb')](_0x38033c)&&!_0x4054a5[_0x10ed('0x8f')](_0x38033c)[_0x10ed('0x59')];let _0x352f46=_0x1ee4ad?_0x3d2f83[_0x10ed('0x5a')]-0x1:0x0;const _0x45c0a8=_0x1ee4ad?-0x1:0x1;for(;_0x3d2f83[_0x352f46];){const _0x2261c7=_0x3d2f83[_0x352f46];if(_0x2261c7[_0x10ed('0x112')][_0x38033c]){const _0xa6f668=_0x1ee4ad?_0x2261c7['diffData'][_0x38033c][_0x10ed('0x116')]:_0x2261c7[_0x10ed('0x112')][_0x38033c][_0x10ed('0xed')];_0x353d14[_0x10ed('0xf')][_0x38033c]=_0xa6f668?_0x1eb127(_0xa6f668):{};break;}_0x352f46+=_0x45c0a8;}}for(const _0xd1d612 of _0x3d2f83){_0xd1d612[_0x10ed('0x49')]={};for(const _0x593835 of _0xd1d612['authors'])_0x157a40[_0x10ed('0x47')](_0x593835['id'],_0x593835);for(const _0xef26a3 of _0x5a799b){const _0x35e0f8=_0xd1d612[_0x10ed('0x112')][_0xef26a3]?_0xd1d612[_0x10ed('0x112')][_0xef26a3][_0x10ed('0x122')]:'[]',_0x42f02a=_0xd1d612['diffData'][_0xef26a3]?_0xd1d612['diffData'][_0xef26a3][_0x10ed('0x114')]:'[]';_0xd1d612[_0x10ed('0x49')][_0xef26a3]={'insertions':this[_0x10ed('0x1b')](_0x35e0f8),'deletions':this[_0x10ed('0x1b')](_0x42f02a)};}}for(const _0x2aa5bb of _0x5a799b){let _0x42025b=null,_0x3a2ebf=0x0;const _0x358ece=new Map(Array[_0x10ed('0x90')](_0x16a70c[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x122')][_0x10ed('0x10d')])[_0x10ed('0x113')](([_0x4a1f7b])=>!_0x4a1f7b[_0x10ed('0x20')](_0x10ed('0x93'))));let _0x513624=0x0;for(const _0x1164d4 of _0x3d2f83){const _0x226474=this[_0x10ed('0xe7')](_0x1164d4[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x122')]);_0x1164d4==_0x16a70c?(_0x42025b=_0x226474,_0x3a2ebf=_0x42025b[_0x10ed('0x5a')],_0x42025b[_0x10ed('0x109')](_0x2dbeaf=>{_0x2dbeaf['id']=_0x513624++;}),this[_0x10ed('0xdf')](_0x42025b)):this[_0x10ed('0xd8')](_0x42025b,_0x226474);const _0x55690e=_0x42025b[_0x10ed('0x113')](_0x45f6a3=>!_0x45f6a3[_0x10ed('0x89')])['map'](_0x5bcfb9=>_0x5bcfb9['id']);let _0x3958e4=0x0;const _0x90be2=this['_makeTape'](_0x1164d4[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x114')]);_0x90be2[_0x10ed('0x109')](_0x37da87=>{_0x37da87[_0x10ed('0x103')]?_0x37da87['id']=_0x3a2ebf++:_0x37da87['id']=_0x55690e[_0x3958e4++];}),this[_0x10ed('0xdf')](_0x90be2),this[_0x10ed('0x10')](_0x42025b,_0x10ed('0x89')),this[_0x10ed('0x10')](_0x90be2,'isRemoved'),_0x1164d4==_0x16a70c&&this[_0x10ed('0x11a')](_0x42025b,_0x358ece),_0x42025b=this[_0x10ed('0xd9')](_0x42025b,_0x90be2),this[_0x10ed('0xb7')](_0x42025b),this[_0x10ed('0x10')](_0x42025b,'isRemoved');}_0x42025b=_0x42025b[_0x10ed('0x113')](_0x18f0bf=>!(_0x18f0bf[_0x10ed('0x89')]&&_0x18f0bf[_0x10ed('0x103')]));const _0x2702d0=new Map(_0x4bc289[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x114')][_0x10ed('0x10d')]),_0x291140=new Set(_0x358ece[_0x10ed('0x6f')]());for(const _0x2bf366 of _0x2702d0[_0x10ed('0x6f')]())_0x291140['delete'](_0x2bf366);this[_0x10ed('0x38')](_0x42025b,_0x291140),this[_0x10ed('0x8c')](_0x42025b),_0x42025b=this[_0x10ed('0x127')](_0x42025b),_0x42025b=this[_0x10ed('0x86')](_0x42025b),_0x42025b=this[_0x10ed('0x57')](_0x42025b);const {root:_0x149939,changes:_0x28f597}=this[_0x10ed('0xa1')](_0x42025b,_0x157a40,_0x2aa5bb);_0x353d14[_0x10ed('0x49')][_0x2aa5bb]=_0x149939;const _0x877ae8=_0x4054a5['get'](_0x2aa5bb);if(_0x877ae8){const _0x52823d=_0x157a40[_0x10ed('0x8f')](_0x877ae8['userId']),_0x5d49c1=new _0x406215({'author':_0x52823d,'type':_0x877ae8[_0x10ed('0x59')]?'add':_0x10ed('0x10e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2aa5bb});_0x28f597[_0x10ed('0xff')](_0x5d49c1),_0x353d14['attributes'][_0x2aa5bb]['revisionHistoryAttachChange']=_0x5d49c1['id'];}_0x353d14[_0x10ed('0x6b')]=_0x353d14['changes'][_0x10ed('0x11b')](_0x28f597);}return _0x353d14;}[_0x10ed('0x11a')](_0x4f3be7,_0x3eb531){for(let _0x546591=0x0;_0x546591<_0x4f3be7[_0x10ed('0x5a')];_0x546591++)for(const [_0x2246d5,_0x3bb69b]of _0x3eb531)_0x3bb69b[_0x10ed('0xf2')][_0x10ed('0x97')](_0x4f3be7[_0x546591][_0x10ed('0x10b')])&&_0x4f3be7[_0x546591][_0x10ed('0x3e')][_0x10ed('0xfd')](_0x2246d5),_0x3bb69b[_0x10ed('0x15')]['isEqual'](_0x4f3be7[_0x546591]['nextPosition'])&&_0x4f3be7[_0x546591][_0x10ed('0x33')][_0x10ed('0xfd')](_0x2246d5);}[_0x10ed('0xd9')](_0x2fd4e1,_0x28da54){let _0x37b443=[],_0x8641a6=0x0,_0x1b0178=0x0;for(;_0x8641a6<_0x2fd4e1[_0x10ed('0x5a')]||_0x1b0178<_0x28da54[_0x10ed('0x5a')];){const _0x498389=_0x2fd4e1[_0x8641a6]||{},_0x1cdd9f=_0x28da54[_0x1b0178]||{};if(_0x498389['id']==_0x1cdd9f['id'])_0x8641a6++,_0x1b0178++,_0x37b443['push'](_0x498389);else{if(_0x1cdd9f[_0x10ed('0x103')]&&_0x498389[_0x10ed('0x89')]){const {commonTape:_0x39b01b,iEnd:_0x95d3f1,jEnd:_0xf169c}=this['_threeWayMerge'](_0x2fd4e1,_0x8641a6,_0x28da54,_0x1b0178);_0x37b443=_0x37b443[_0x10ed('0x11b')](_0x39b01b),_0x8641a6=_0x95d3f1,_0x1b0178=_0xf169c;}else _0x1cdd9f['isRemoved']?(_0x1b0178++,_0x37b443['push'](_0x1cdd9f)):(_0x8641a6++,_0x37b443['push'](_0x498389));}}return _0x37b443;}[_0x10ed('0x38')](_0x627ae5,_0x4875e8){const _0x24f9cb=[];for(let _0x6d1ed3=0x0;_0x6d1ed3<_0x627ae5['length'];_0x6d1ed3++){for(let _0x4ec31f=0x0;_0x4ec31f<_0x627ae5[_0x6d1ed3]['markersStart']['length'];_0x4ec31f++){const _0x6e7f77=_0x627ae5[_0x6d1ed3][_0x10ed('0x3e')][_0x4ec31f];if(!_0x4875e8[_0x10ed('0xbb')](_0x6e7f77))continue;const {group:_0x5c773c,type:_0x487d0d,authorId:_0x3cf0af}=_0x1721a4(_0x6e7f77);'revision-suggestion'!=_0x5c773c||_0x10ed('0x7c')!=_0x487d0d&&_0x10ed('0x92')!=_0x487d0d||(_0x24f9cb[_0x10ed('0xff')]({'type':_0x487d0d,'name':_0x6e7f77,'userId':_0x3cf0af}),_0x627ae5[_0x6d1ed3][_0x10ed('0x3e')]['splice'](_0x4ec31f,0x1),_0x4ec31f--);}_0x3d966a(_0x627ae5[_0x6d1ed3]);for(let _0x7b4041=0x0;_0x7b4041<_0x627ae5[_0x6d1ed3]['markersEnd']['length'];_0x7b4041++){const _0x4bd2b3=_0x627ae5[_0x6d1ed3]['markersEnd'][_0x7b4041];if(!_0x4875e8[_0x10ed('0xbb')](_0x4bd2b3))continue;const {group:_0xcb3d65,type:_0x18d343}=_0x1721a4(_0x4bd2b3);if(_0x10ed('0xee')!=_0xcb3d65||_0x10ed('0x7c')!=_0x18d343&&_0x10ed('0x92')!=_0x18d343)continue;_0x627ae5[_0x6d1ed3][_0x10ed('0x33')][_0x10ed('0x123')](_0x7b4041,0x1),_0x7b4041--;const _0xe841a6=_0x24f9cb[_0x10ed('0x58')](_0x767821=>_0x767821[_0x10ed('0x104')]==_0x4bd2b3);_0xe841a6>-0x1&&_0x24f9cb[_0x10ed('0x123')](_0xe841a6,0x1);}}function _0x1721a4(_0x12ef4a){const _0x412e16=_0x12ef4a['split'](':');return{'group':_0x412e16[0x0],'type':_0x412e16[0x1],'subType':_0x412e16[_0x10ed('0x5a')]>=0x5?_0x412e16[0x2]:null,'id':_0x412e16[_0x10ed('0x5a')]<0x5?_0x412e16[0x2]:_0x412e16[0x3],'authorId':_0x412e16[_0x10ed('0x5a')]<0x5?_0x412e16[0x3]:_0x412e16[0x4],'markerCount':0x6==_0x412e16[_0x10ed('0x5a')]?_0x412e16[0x5]:null};}function _0x3d966a(_0x43ee88){for(let _0x5b74a5=0x0;_0x5b74a5<_0x24f9cb[_0x10ed('0x5a')];_0x5b74a5++){if(_0x43ee88[_0x10ed('0x89')]&&_0x10ed('0x7c')==_0x24f9cb[_0x5b74a5]['type'])return _0x43ee88['isAddSuggestion']=_0x24f9cb[_0x5b74a5],void delete _0x43ee88['isAdded'];if(!_0x43ee88[_0x10ed('0x89')]&&!_0x43ee88[_0x10ed('0x103')]&&_0x10ed('0x92')==_0x24f9cb[_0x5b74a5][_0x10ed('0x80')])return void(_0x43ee88['isRemoveSuggestion']=_0x24f9cb[_0x5b74a5]);}}}[_0x10ed('0x10')](_0x40bc56,_0x2c6f67){let _0x474562=0x0,_0x4be1de=!0x1;const _0x208364=new Map();for(const _0x5789b6 of _0x40bc56)_0x5789b6[_0x2c6f67]?_0x4be1de&&(_0x474562++,_0x4be1de=!0x1):(_0x474562++,_0x4be1de=!0x0),_0x208364[_0x10ed('0x47')](_0x5789b6['id'],_0x474562);for(let _0x3e0dd8=0x0;_0x3e0dd8<_0x40bc56[_0x10ed('0x5a')];_0x3e0dd8++){if('isRemoved'==_0x2c6f67&&_0x40bc56[_0x3e0dd8][_0x10ed('0x89')]||_0x10ed('0x89')==_0x2c6f67&&_0x40bc56[_0x3e0dd8][_0x10ed('0x103')])continue;if(_0x10ed('0xe')==_0x40bc56[_0x3e0dd8][_0x10ed('0x80')]){_0x40bc56[_0x3e0dd8][_0x10ed('0xf6')]=0x0;continue;}const _0x3ab960=_0x208364[_0x10ed('0x8f')](_0x40bc56[_0x3e0dd8]['pairId']),_0x20870a=_0x208364['get'](_0x40bc56[_0x3e0dd8]['id']);_0x40bc56[_0x3e0dd8]['distance']=_0x3ab960-_0x20870a;}}[_0x10ed('0x71')](_0x53bf9b,_0x5d7110,_0x1b655e=!0x1){const _0xdc158e=[];let _0x3738e4=this['repository'][_0x10ed('0x9d')](_0x53bf9b),_0x34b860=this[_0x10ed('0x54')]['getIndex'](_0x5d7110);for(-0x1==_0x34b860&&(_0x34b860=this[_0x10ed('0x54')][_0x10ed('0x7a')][_0x10ed('0x5a')],_0x1b655e=!0x1);_0x3738e4<_0x34b860;)_0xdc158e[_0x10ed('0xfd')](this[_0x10ed('0x54')][_0x10ed('0x34')](_0x3738e4)),_0x3738e4++;return _0x1b655e&&_0xdc158e[_0x10ed('0xfd')](this[_0x10ed('0x54')][_0x10ed('0x34')](_0x3738e4)),_0xdc158e;}['_threeWayMerge'](_0x45c4d8,_0x4f07da,_0x39d129,_0xcf4ca6){const _0x449eb6=this['editor']['model'][_0x10ed('0x81')];let _0x5456f5=_0x4f07da;for(;_0x45c4d8[_0x5456f5]&&_0x45c4d8[_0x5456f5]['isAdded'];)_0x5456f5++;let _0x1885ab=_0xcf4ca6;for(;_0x39d129[_0x1885ab]&&_0x39d129[_0x1885ab][_0x10ed('0x103')];)_0x1885ab++;_0x39b127(_0x45c4d8,_0x4f07da,_0x5456f5),_0x39b127(_0x39d129,_0xcf4ca6,_0x1885ab);const _0x28a879=_0x39d129[_0x10ed('0xfc')](_0xcf4ca6,_0x1885ab)['concat'](_0x45c4d8[_0x10ed('0xfc')](_0x4f07da,_0x5456f5));return _0x28a879[_0x10ed('0xba')]((_0x3b84d0,_0x3fc699)=>_0x3b84d0[_0x10ed('0x10a')]!=_0x3fc699[_0x10ed('0x10a')]?_0x3b84d0[_0x10ed('0x10a')]-_0x3fc699[_0x10ed('0x10a')]:_0x3b84d0[_0x10ed('0xb2')]!=_0x3fc699[_0x10ed('0xb2')]?_0x3b84d0['level']-_0x3fc699[_0x10ed('0xb2')]:_0x3b84d0['distance']!=_0x3fc699[_0x10ed('0xf6')]?_0x3fc699[_0x10ed('0xf6')]-_0x3b84d0[_0x10ed('0xf6')]:!!_0x3b84d0[_0x10ed('0x89')]!=!!_0x3fc699[_0x10ed('0x89')]?-0x1==_0x3b84d0[_0x10ed('0x10a')]||0x0==_0x3b84d0[_0x10ed('0x10a')]?_0x3b84d0[_0x10ed('0x89')]?-0x1:0x1:_0x3b84d0['isAdded']?0x1:-0x1:_0x3b84d0[_0x10ed('0x35')]-_0x3fc699[_0x10ed('0x35')]),{'commonTape':_0x28a879,'iEnd':_0x5456f5,'jEnd':_0x1885ab};function _0x39b127(_0x1ec847,_0x435e45,_0x29f85c){let _0x2f5a42=-0x1,_0x2b082d=Number['POSITIVE_INFINITY'],_0x2b60f6=!0x0;for(let _0xe52b5b=_0x435e45;_0xe52b5b<_0x29f85c;_0xe52b5b++)if(_0x449eb6[_0x10ed('0x44')](_0x1ec847[_0xe52b5b][_0x10ed('0x84')])||(_0x2b60f6=!0x1),_0x1ec847[_0xe52b5b][_0x10ed('0x84')][_0x10ed('0x3c')]<_0x435e45&&(_0x2f5a42=_0xe52b5b),_0x1ec847[_0xe52b5b][_0x10ed('0x84')]['endIndex']>=_0x29f85c){_0x2b082d=_0xe52b5b;break;}_0x2b60f6&&(_0x2f5a42=_0x29f85c-0x1);for(let _0x36876b=_0x435e45;_0x36876b<_0x29f85c;_0x36876b++)_0x1ec847[_0x36876b]['side']=_0x36876b<=_0x2f5a42?-0x1:_0x36876b<_0x2b082d?0x0:0x1,_0x1ec847[_0x36876b][_0x10ed('0x35')]=_0x36876b;let _0x57c3a7=0x0;for(let _0xd9c0bf=_0x435e45;_0xd9c0bf<=_0x2f5a42;_0xd9c0bf++)0x0==_0x1ec847[_0xd9c0bf][_0x10ed('0xf6')]?_0x1ec847[_0xd9c0bf][_0x10ed('0xb2')]=_0x57c3a7:(_0x57c3a7++,_0x1ec847[_0xd9c0bf]['level']=_0x57c3a7,_0x57c3a7++);for(let _0x490637=_0x435e45;_0x490637<_0x29f85c;_0x490637++)0x0==_0x1ec847[_0x490637][_0x10ed('0x10a')]&&(_0x1ec847[_0x490637][_0x10ed('0xb2')]=_0x57c3a7);_0x57c3a7=0x0;for(let _0xe3ea8a=_0x29f85c-0x1;_0xe3ea8a>=_0x2b082d;_0xe3ea8a--)0x0==_0x1ec847[_0xe3ea8a][_0x10ed('0xf6')]?_0x1ec847[_0xe3ea8a]['level']=_0x57c3a7:(_0x57c3a7--,_0x1ec847[_0xe3ea8a][_0x10ed('0xb2')]=_0x57c3a7,_0x57c3a7--);}}['_fixObsoleteTags'](_0x4d006b){const _0x36f42e=new Map(),_0x2ce6f0=this['editor']['model'][_0x10ed('0x81')];for(let _0x3fcde8=0x1;_0x3fcde8<_0x4d006b[_0x10ed('0x5a')];_0x3fcde8++){let _0x3ca573,_0x163229,_0x125643;const _0x459c5a=_0x4d006b[_0x3fcde8],_0x215f49=_0x4d006b[_0x3fcde8-0x1];if(_0x10ed('0xe')==_0x459c5a[_0x10ed('0x80')])continue;if(_0x459c5a[_0x10ed('0x80')]!=_0x215f49['type'])continue;if(!_0x2ce6f0[_0x10ed('0x37')](_0x215f49[_0x10ed('0x84')])||_0x2ce6f0[_0x10ed('0xe8')](_0x215f49[_0x10ed('0x84')]))continue;if(!_0x2ce6f0[_0x10ed('0x37')](_0x459c5a['item'])||_0x2ce6f0[_0x10ed('0xe8')](_0x459c5a[_0x10ed('0x84')]))continue;if((_0x4d006b[_0x3fcde8][_0x10ed('0x89')]||_0x4d006b[_0x3fcde8][_0x10ed('0xd4')])&&_0x4d006b[_0x3fcde8-0x1][_0x10ed('0x103')])_0x3ca573=_0x4d006b[_0x3fcde8],_0x163229=_0x4d006b[_0x3fcde8-0x1],_0x125643=_0x3fcde8-0x1;else{if(!_0x4d006b[_0x3fcde8][_0x10ed('0x103')]||!_0x4d006b[_0x3fcde8-0x1][_0x10ed('0x89')]&&!_0x4d006b[_0x3fcde8-0x1][_0x10ed('0xd4')])continue;_0x3ca573=_0x4d006b[_0x3fcde8-0x1],_0x163229=_0x4d006b[_0x3fcde8],_0x125643=_0x3fcde8;}const _0x11c5f4=_0x3ca573[_0x10ed('0xb2')]==_0x163229['level'],_0x356238=Math[_0x10ed('0xb6')](_0x3ca573[_0x10ed('0xb2')])<Math[_0x10ed('0xb6')](_0x163229[_0x10ed('0xb2')])&&0x0==_0x163229[_0x10ed('0xf6')];(_0x11c5f4||_0x356238)&&(_0x36f42e[_0x10ed('0x47')](_0x163229['id'],_0x3ca573['id']),_0x4d006b[_0x10ed('0x123')](_0x125643,0x1),_0x3fcde8--,_0x3ca573[_0x10ed('0x89')]=!0x1);}for(let _0x23c8cf=0x0;_0x23c8cf<_0x4d006b['length'];_0x23c8cf++)_0x36f42e[_0x10ed('0xbb')](_0x4d006b[_0x23c8cf][_0x10ed('0x50')])&&(_0x4d006b[_0x23c8cf][_0x10ed('0x50')]=_0x36f42e[_0x10ed('0x8f')](_0x4d006b[_0x23c8cf][_0x10ed('0x50')]));}[_0x10ed('0x127')](_0x26a63a){const _0x2e96cc=new Set(_0x26a63a[_0x10ed('0x107')](_0x219d64=>_0x219d64['id']));for(let _0x4fb839=0x0;_0x4fb839<_0x26a63a[_0x10ed('0x5a')];_0x4fb839++)_0x2e96cc[_0x10ed('0xbb')](_0x26a63a[_0x4fb839][_0x10ed('0x50')])||0x0==_0x26a63a[_0x4fb839][_0x10ed('0xf6')]||(_0x26a63a[_0x4fb839][_0x10ed('0xd0')]=!0x0);return _0x26a63a[_0x10ed('0x113')](_0x5b274b=>!_0x5b274b['isIncorrect']);}[_0x10ed('0x86')](_0x479eb9){const _0x51f307=new Set();for(let _0x52b6ed=0x0;_0x52b6ed<_0x479eb9[_0x10ed('0x5a')];_0x52b6ed++){if(_0x51f307[_0x10ed('0xbb')](_0x479eb9[_0x52b6ed]['id'])&&_0x479eb9[_0x52b6ed]['isRemoved']&&(_0x479eb9[_0x52b6ed][_0x10ed('0xd0')]=!0x0),_0x479eb9[_0x52b6ed][_0x10ed('0xd0')])continue;if(0x0==_0x479eb9[_0x52b6ed][_0x10ed('0xf6')])continue;if(_0x10ed('0xe3')!=_0x479eb9[_0x52b6ed][_0x10ed('0x80')])continue;if(null==_0x479eb9[_0x52b6ed][_0x10ed('0x50')])continue;let _0x574683=_0x52b6ed+0x1,_0x579248=0x0;for(;_0x479eb9[_0x574683]['id']!=_0x479eb9[_0x52b6ed]['pairId'];)_0x10ed('0xe3')==_0x479eb9[_0x574683][_0x10ed('0x80')]?_0x579248++:_0x10ed('0x118')==_0x479eb9[_0x574683][_0x10ed('0x80')]&&_0x579248--,_0x574683++;if(0x0!=_0x579248){if(_0x479eb9[_0x52b6ed][_0x10ed('0x103')])_0x479eb9[_0x52b6ed][_0x10ed('0xd0')]=!0x0;else for(;_0x574683!=_0x52b6ed;)_0x479eb9[_0x574683][_0x10ed('0x103')]&&0x0!=_0x479eb9[_0x574683][_0x10ed('0xf6')]&&(_0x479eb9[_0x574683][_0x10ed('0xd0')]=!0x0,_0x51f307['add'](_0x479eb9[_0x574683][_0x10ed('0x50')])),_0x574683--;}}return _0x479eb9[_0x10ed('0x113')](_0x4bd203=>!_0x4bd203[_0x10ed('0xd0')]);}[_0x10ed('0x57')](_0x56e513){const _0x2b65c9=this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0x81')];for(let _0x5ba5d2=0x0;_0x5ba5d2<_0x56e513['length'];_0x5ba5d2++){if(!(_0x56e513[_0x5ba5d2][_0x10ed('0x89')]||_0x56e513[_0x5ba5d2][_0x10ed('0xd4')]||_0x56e513[_0x5ba5d2]['isRemoved']||_0x56e513[_0x5ba5d2][_0x10ed('0x28')]))continue;if(0x0==_0x56e513[_0x5ba5d2]['distance'])continue;const _0x6bca3d=_0x56e513[_0x5ba5d2][_0x10ed('0x84')];_0x2b65c9['isBlock'](_0x6bca3d)||_0x2b65c9[_0x10ed('0xe8')](_0x6bca3d)||(_0x56e513[_0x5ba5d2]['isAdded']&&delete _0x56e513[_0x5ba5d2][_0x10ed('0x89')],_0x56e513[_0x5ba5d2][_0x10ed('0xd4')]&&delete _0x56e513[_0x5ba5d2]['isAddSuggestion'],_0x56e513[_0x5ba5d2][_0x10ed('0x28')]&&delete _0x56e513[_0x5ba5d2][_0x10ed('0x28')],_0x56e513[_0x5ba5d2][_0x10ed('0x103')]&&(_0x56e513[_0x5ba5d2][_0x10ed('0xd0')]=!0x0));}return _0x56e513[_0x10ed('0x113')](_0xa9c59e=>!_0xa9c59e[_0x10ed('0xd0')]);}[_0x10ed('0xa1')](_0x37dadd,_0x3b0a95,_0x10517e){const _0x4fe7bd=new _0x1d3a31(),_0xfbf830=[],_0x20fc89=new Map(),_0x445f49=this[_0x10ed('0x61')][_0x10ed('0x49')],_0x4d2e6c=_0x445f49[_0x10ed('0x81')],_0x1b3797=[_0x4fe7bd],_0x1687d2={},_0x35123d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x51f267=null;const _0x245892=[0x0];for(let _0xe8b9dd=0x0;_0xe8b9dd<_0x37dadd['length'];_0xe8b9dd++){let _0xbf1bc6,_0x4ccd76;if(_0x10ed('0xe3')===_0x37dadd[_0xe8b9dd][_0x10ed('0x80')]){_0xbf1bc6=_0x445f49[_0x10ed('0xfb')](_0x4fe7bd,_0x245892);const _0x224cde=new _0x5577c4(_0x37dadd[_0xe8b9dd]['item']['name'],_0x37dadd[_0xe8b9dd][_0x10ed('0x84')][_0x10ed('0xeb')]());_0x1b3797[0x0]['_appendChild'](_0x224cde),_0x245892['push'](0x0),_0x1b3797[_0x10ed('0xff')](_0x224cde),_0x4ccd76=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x51f267=null;}else{if(_0x10ed('0x118')===_0x37dadd[_0xe8b9dd][_0x10ed('0x80')])_0x1b3797[_0x10ed('0x6')](),_0xbf1bc6=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x245892['pop'](),_0x245892[_0x245892[_0x10ed('0x5a')]-0x1]++,_0x4ccd76=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x51f267=null;else{if(_0xbf1bc6=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x51f267&&_0x270984(_0x51f267,_0x37dadd[_0xe8b9dd][_0x10ed('0x84')]))_0x51f267[_0x10ed('0xcb')]+=_0x37dadd[_0xe8b9dd][_0x10ed('0x84')]['data'];else{const _0x9e374e=new _0x879057(_0x37dadd[_0xe8b9dd]['item'][_0x10ed('0x125')],_0x37dadd[_0xe8b9dd][_0x10ed('0x84')][_0x10ed('0xeb')]());_0x1b3797[0x0][_0x10ed('0xdb')](_0x9e374e),_0x51f267=_0x9e374e;}_0x245892[_0x245892[_0x10ed('0x5a')]-0x1]+=_0x37dadd[_0xe8b9dd][_0x10ed('0x84')][_0x10ed('0x9a')],_0x4ccd76=_0x445f49[_0x10ed('0xfb')](_0x4fe7bd,_0x245892);}}for(const _0x43a691 of _0x37dadd[_0xe8b9dd][_0x10ed('0x3e')])_0x20fc89[_0x10ed('0x47')](_0x43a691,{'start':_0xbf1bc6,'end':null});_0x3c8028('isRemoveSuggestion',_0xe8b9dd,_0xbf1bc6,_0x4ccd76),_0x3c8028(_0x10ed('0xd4'),_0xe8b9dd,_0xbf1bc6,_0x4ccd76),_0x3c8028(_0x10ed('0x103'),_0xe8b9dd,_0xbf1bc6,_0x4ccd76),_0x3c8028(_0x10ed('0x89'),_0xe8b9dd,_0xbf1bc6,_0x4ccd76);for(const _0x5538b3 of _0x37dadd[_0xe8b9dd][_0x10ed('0x33')]){_0x20fc89[_0x10ed('0x8f')](_0x5538b3)[_0x10ed('0x15')]=_0x4ccd76;}}for(const [_0x22b09d,_0x513e16]of _0x20fc89){const _0x26801d=this[_0x10ed('0x61')]['model'][_0x10ed('0xa8')](_0x513e16[_0x10ed('0xf2')],_0x513e16['end']);_0x4fe7bd[_0x10ed('0x10d')]['set'](_0x22b09d,_0x26801d);}return _0xfbf830[_0x10ed('0xba')]((_0x2d4f85,_0x577b81)=>{const _0x27c7ef=_0x4fe7bd['markers'][_0x10ed('0x8f')](_0x10ed('0x93')+_0x2d4f85['id']),_0x155496=_0x4fe7bd[_0x10ed('0x10d')][_0x10ed('0x8f')](_0x10ed('0x93')+_0x577b81['id']);return _0x27c7ef[_0x10ed('0xf2')][_0x10ed('0x4')](_0x155496[_0x10ed('0xf2')])?-0x1:_0x27c7ef[_0x10ed('0xf2')][_0x10ed('0x45')](_0x155496[_0x10ed('0xf2')])?0x1:_0x27c7ef[_0x10ed('0x15')][_0x10ed('0x4')](_0x155496[_0x10ed('0x15')])?-0x1:_0x27c7ef[_0x10ed('0x15')]['isAfter'](_0x155496[_0x10ed('0x15')])?0x1:_0x10ed('0x2f')===_0x2d4f85['type']?-0x1:0x1;}),{'root':_0x4fe7bd,'changes':_0xfbf830};function _0x3c8028(_0x2be399,_0x3b2d9a,_0x5c7ca0,_0x32ea1e){const _0x103382=!!_0x37dadd[_0x3b2d9a][_0x2be399],_0x24d1b7=_0x103382?_0x37dadd[_0x3b2d9a][_0x2be399]['userId']:null,_0x207ae5=_0x3b2d9a===_0x37dadd[_0x10ed('0x5a')]-0x1,_0x196eea=_0x35123d[_0x2be399][0x0],_0x2a55f3=_0x4d2e6c[_0x10ed('0x2c')](_0x37dadd[_0x3b2d9a][_0x10ed('0x84')]);!_0x1687d2[_0x2be399]&&_0x103382?_0x1687d2[_0x2be399]={'start':_0x5c7ca0,'tapeItem':_0x37dadd[_0x3b2d9a],'userId':_0x24d1b7,'type':_0x2be399}:_0x1687d2[_0x2be399]&&!_0x103382?(_0x1687d2[_0x2be399][_0x10ed('0x15')]=_0x5c7ca0,_0x46bc88(_0x1687d2[_0x2be399]),_0x1687d2[_0x2be399]=null):_0x1687d2[_0x2be399]&&_0x103382&&_0x1687d2[_0x2be399]['userId']!==_0x24d1b7&&(_0x1687d2[_0x2be399]['end']=_0x5c7ca0,_0x196eea&&_0x196eea[_0x10ed('0xc8')]===_0x1687d2[_0x2be399][_0x10ed('0xc8')]||_0x46bc88(_0x1687d2[_0x2be399]),_0x1687d2[_0x2be399]={'start':_0x5c7ca0,'tapeItem':_0x37dadd[_0x3b2d9a],'userId':_0x24d1b7,'type':_0x2be399}),_0x1687d2[_0x2be399]&&_0x2a55f3&&(_0x10ed('0xe3')!==_0x37dadd[_0x3b2d9a]['type']||_0x196eea&&_0x196eea[_0x10ed('0xc8')]===_0x24d1b7||_0x35123d[_0x2be399]['unshift']({'userId':_0x24d1b7,'object':_0x37dadd[_0x3b2d9a][_0x10ed('0x84')],'change':_0x1687d2[_0x2be399]}),_0x10ed('0x118')===_0x37dadd[_0x3b2d9a][_0x10ed('0x80')]&&_0x196eea&&_0x196eea[_0x10ed('0x76')]===_0x37dadd[_0x3b2d9a]['item']&&(_0x35123d[_0x2be399]['shift'](),_0x1687d2[_0x2be399]=_0x196eea['change'])),_0x1687d2[_0x2be399]&&_0x207ae5&&(_0x1687d2[_0x2be399][_0x10ed('0x15')]=_0x32ea1e,_0x46bc88(_0x1687d2[_0x2be399]),_0x1687d2[_0x2be399]=null);}function _0x46bc88({start:_0x52d583,end:_0x5e7cda,tapeItem:_0x4b1632,userId:_0x42eca3,type:_0x558086}){const _0x2d0968=_0x4b1632[_0x10ed('0x84')],_0x3554b3=_0x445f49[_0x10ed('0x81')][_0x10ed('0x37')](_0x2d0968)&&!_0x445f49[_0x10ed('0x81')]['isLimit'](_0x2d0968),_0xe71d8a=_0x52d583[_0x10ed('0x68')]==_0x5e7cda[_0x10ed('0x67')]&&_0x5e7cda[_0x10ed('0x2b')];if(_0x3554b3&&_0xe71d8a)return;const _0x3d1088=_0x445f49[_0x10ed('0xa8')](_0x52d583,_0x5e7cda),_0xd2d5f5=_0x3b0a95['get'](_0x42eca3),_0x3ee590=new _0x406215({'author':_0xd2d5f5,'type':_0x10ed('0x89')==_0x558086||_0x10ed('0xd4')==_0x558086?_0x10ed('0x2f'):_0x10ed('0x10e'),'data':{'isSuggestion':_0x10ed('0xd4')==_0x558086||_0x10ed('0x28')==_0x558086},'createdAt':new Date(),'rootName':_0x10517e});_0xfbf830['push'](_0x3ee590),_0x4fe7bd[_0x10ed('0x10d')]['set'](_0x10ed('0x93')+_0x3ee590['id'],_0x3d1088);}function _0x270984(_0xe20303,_0xe7fcf3){const _0x16cbcb=_0xe20303[_0x10ed('0xeb')](),_0x4fbe97=_0xe7fcf3['getAttributes']();for(const _0x3cfa1e of _0x16cbcb){if(_0x3cfa1e[0x1]!==_0xe7fcf3[_0x10ed('0x88')](_0x3cfa1e[0x0]))return!0x1;_0x4fbe97[_0x10ed('0x25')]();}return _0x4fbe97['next']()['done'];}}['_setConversion'](){this[_0x10ed('0x61')][_0x10ed('0xde')]['for']('upcast')[_0x10ed('0x74')]({'view':'revision'}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x56'))[_0x10ed('0xe1')]({'model':_0x10ed('0x66'),'view':_0x22846d=>{const _0x266917=_0x22846d[_0x10ed('0xad')]['split'](':')[0x1],_0x36a9af=this[_0x10ed('0xda')](_0x266917);if(!_0x36a9af)return null;const _0xc2edb9='add'==_0x36a9af[_0x10ed('0x80')]?_0x10ed('0x7c'):_0x10ed('0x92'),_0x12e1eb=[_0x10ed('0x73'),_0x10ed('0x0')+_0xc2edb9];return _0x36a9af[_0x10ed('0x125')][_0x10ed('0x126')]&&_0x12e1eb['push'](_0x10ed('0x0')+_0xc2edb9+_0x10ed('0xe5')),this['activeChange']==_0x36a9af&&_0x12e1eb[_0x10ed('0xfd')]('ck-suggestion-marker--active'),{'classes':_0x12e1eb,'attributes':{'data-change-id':_0x266917}};}}),this['editor'][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x18'))[_0x10ed('0x2f')](_0x5aff07=>{_0x5aff07['on'](_0x10ed('0xc5'),(_0x4b0d10,_0x2e1b09,_0x5849ec)=>{const _0x5e2ed1=_0x2e1b09[_0x10ed('0x106')][_0x10ed('0x100')](0x0);if(!_0x5e2ed1||!_0x5e2ed1['is'](_0x10ed('0x83'),'code'))return;if(!_0x5849ec[_0x10ed('0xbc')][_0x10ed('0x69')](_0x5e2ed1,{'attributes':['vid_start',_0x10ed('0xf4')]}))return;const _0x318b90=_0x2e1b09[_0x10ed('0x8b')][_0x10ed('0xf2')][_0x10ed('0x68')];_0x5849ec[_0x10ed('0xe4')][_0x10ed('0x23')]('vid_start',_0x5e2ed1[_0x10ed('0x88')]('vid_start'),_0x318b90),_0x5849ec[_0x10ed('0xe4')]['setAttribute'](_0x10ed('0xf4'),_0x5e2ed1['getAttribute'](_0x10ed('0xf4')),_0x318b90);},{'priority':'low'});}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x18'))[_0x10ed('0x2f')](_0x38ad96=>{_0x38ad96['on']('element',(_0x22d7f4,_0x1a8013,_0x3aefc5)=>{if(!_0x3aefc5[_0x10ed('0xbc')][_0x10ed('0x69')](_0x1a8013[_0x10ed('0x106')],{'attributes':['vid_start',_0x10ed('0xf4')]}))return;if(_0x1a8013[_0x10ed('0x8b')]['isCollapsed'])return;const _0x88fa25=_0x1a8013['modelRange'][_0x10ed('0xf2')][_0x10ed('0x68')];_0x88fa25['hasAttribute'](_0x10ed('0xea'))||_0x88fa25[_0x10ed('0xe6')](_0x10ed('0x108'))||(_0x3aefc5[_0x10ed('0xe4')][_0x10ed('0x23')](_0x10ed('0xea'),_0x1a8013[_0x10ed('0x106')][_0x10ed('0x88')](_0x10ed('0xea')),_0x88fa25),_0x3aefc5['writer'][_0x10ed('0x23')](_0x10ed('0xf4'),_0x1a8013[_0x10ed('0x106')][_0x10ed('0x88')](_0x10ed('0xf4')),_0x88fa25));},{'priority':_0x10ed('0x14')});}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x18'))[_0x10ed('0xca')]({'view':{'name':_0x10ed('0x36'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x329c8d=>_0x329c8d[_0x10ed('0x88')](_0x10ed('0x108'))}}),this[_0x10ed('0x61')]['model'][_0x10ed('0x81')]['on'](_0x10ed('0x48'),(_0x479cb0,[,_0x2b952c])=>{[_0x10ed('0xea'),_0x10ed('0xf4'),_0x10ed('0x108')][_0x10ed('0x102')](_0x2b952c)&&(_0x479cb0[_0x10ed('0xa4')]=!0x0,_0x479cb0[_0x10ed('0x2d')]());},{'priority':_0x10ed('0x121')}),this['editor'][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0xc0'))[_0x10ed('0x2f')](_0x4560b1=>{_0x4560b1['on'](_0x10ed('0xaa'),(_0x1d55ef,_0x1b6199,_0x299dc2)=>{if('\x20'!=_0x1b6199['item'][_0x10ed('0x125')]||_0x1b6199['item'][_0x10ed('0x67')][_0x10ed('0xb0')]>0x1)return;if(!_0x299dc2[_0x10ed('0xbc')]['consume'](_0x1b6199[_0x10ed('0x84')],_0x1d55ef[_0x10ed('0x104')]))return;const _0x5285e8=_0x299dc2[_0x10ed('0xe4')],_0x5a5074=_0x299dc2[_0x10ed('0x5c')][_0x10ed('0xdc')](_0x1b6199[_0x10ed('0xc4')]);_0x5285e8['wrap'](_0x5a5074,_0x5285e8[_0x10ed('0x13')](_0x10ed('0x36')));});}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0xc0'))[_0x10ed('0x6d')]({'model':_0x10ed('0x66')}),this['editor']['editing'][_0x10ed('0x26')]['on']('addMarker:revision',function(_0x85b0f1){const _0x3bbe0b=_0x85b0f1[_0x10ed('0x52')][_0x10ed('0x8f')]('RevisionViewer');return(_0x27fdde,_0x1bb60d,_0x35e023)=>{const _0x46a6ec=_0x1bb60d[_0x10ed('0xad')][_0x10ed('0xcc')](':')[0x1],_0x456b1c=_0x3bbe0b[_0x10ed('0xda')](_0x46a6ec);if(!_0x456b1c)return null;const _0x3037b3='add'==_0x456b1c[_0x10ed('0x80')]?_0x10ed('0xcc'):_0x10ed('0xcf');if(!_0x35e023[_0x10ed('0xbc')][_0x10ed('0xd2')](_0x1bb60d[_0x10ed('0x11e')],_0x27fdde[_0x10ed('0x104')]))return;const _0x5961a9=_0x1bb60d[_0x10ed('0x11e')]['getWalker'](),_0x3bb9e9=_0x1bb60d['markerRange']['start'],_0x4d6ac0=_0x85b0f1['model'][_0x10ed('0x81')];let _0x1e6686=null,_0x20ae11=null,_0x156645=!0x1,_0x9daa28=!0x1;for(const _0xf7324a of _0x5961a9){const _0x364690=_0xf7324a[_0x10ed('0x84')];_0x156645=_0x156645||_0x4d6ac0['isContent'](_0x364690);const _0x50cc47=_0x35e023[_0x10ed('0x5c')][_0x10ed('0x1a')](_0x364690);if(_0x50cc47&&_0x50cc47['getCustomProperty'](_0x10ed('0xfa')))return;'elementEnd'==_0xf7324a['type']&&(_0x4d6ac0[_0x10ed('0x37')](_0x364690)&&!_0x4d6ac0[_0x10ed('0xe8')](_0x364690)&&(_0x364690[_0x10ed('0xa7')]||_0x3bb9e9[_0x10ed('0x42')]?_0x1e6686&&_0x1e6686[_0x10ed('0x67')]==_0x364690||(_0x1e6686=_0x364690,_0x19c8b1(_0xf7324a['previousPosition']),_0x9daa28=!0x0):_0x20ae11=_0x20ae11||_0xf7324a['previousPosition']));}function _0x19c8b1(_0x105d69){const _0x9b51b8=_0x35e023[_0x10ed('0xe4')]['createUIElement'](_0x10ed('0x36'),{'class':_0x10ed('0x0')+_0x3037b3}),_0x127e10=_0x35e023[_0x10ed('0x5c')][_0x10ed('0x7d')](_0x105d69);_0x456b1c[_0x10ed('0x125')][_0x10ed('0x126')]&&_0x35e023[_0x10ed('0xe4')]['addClass'](_0x10ed('0x0')+_0x3037b3+'-new',_0x9b51b8),_0x3bbe0b[_0x10ed('0x24')]==_0x456b1c&&_0x35e023['writer']['addClass'](_0x10ed('0x17'),_0x9b51b8),_0x35e023[_0x10ed('0xe4')][_0x10ed('0xd')](_0x127e10,_0x9b51b8),_0x35e023[_0x10ed('0x5c')]['bindElementToMarker'](_0x9b51b8,_0x1bb60d[_0x10ed('0xad')]);}_0x156645||_0x9daa28||!_0x20ae11||_0x19c8b1(_0x20ae11);};}(this[_0x10ed('0x61')]),{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')]['editing'][_0x10ed('0x26')]['on'](_0x10ed('0x3a'),(_0x3107d5,_0x31f3e6,_0x403662)=>{const _0x5e1aaa=_0x403662['mapper'][_0x10ed('0xa9')](_0x31f3e6[_0x10ed('0xad')]);if(_0x5e1aaa)for(const _0x49b138 of _0x5e1aaa)(_0x49b138[_0x10ed('0x4e')]('ck-suggestion-marker-split')||_0x49b138[_0x10ed('0x4e')](_0x10ed('0xc9')))&&(_0x403662['mapper'][_0x10ed('0xe9')](_0x49b138,_0x31f3e6[_0x10ed('0xad')]),_0x403662[_0x10ed('0xe4')][_0x10ed('0x10e')](_0x49b138));},{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on']('addMarker:revision',(_0x312931,_0xf521f5,_0x25948c)=>{const _0x447e3c=_0xf521f5[_0x10ed('0xad')][_0x10ed('0xcc')](':')[0x1],_0x5991c5=this['_getChangeFromId'](_0x447e3c);if(!_0x5991c5)return null;const _0x399dbf=_0x10ed('0x2f')==_0x5991c5[_0x10ed('0x80')]?_0x10ed('0xcc'):_0x10ed('0xcf');if(_0x25948c['consumable'][_0x10ed('0xd2')](_0xf521f5[_0x10ed('0x11e')],_0x312931[_0x10ed('0x104')]))for(const _0x4ee7ae of _0xf521f5[_0x10ed('0x11e')]['getItems']()){if(!_0x4ee7ae['is'](_0x10ed('0x83'),'softBreak'))continue;const _0x215ea0=_0x25948c[_0x10ed('0xe4')][_0x10ed('0x31')](_0x10ed('0x36'),{'class':_0x10ed('0x0')+_0x399dbf}),_0x5c780a=_0x25948c['mapper'][_0x10ed('0x7d')](this[_0x10ed('0x61')]['model'][_0x10ed('0x9e')](_0x4ee7ae));_0x5991c5['data'][_0x10ed('0x126')]&&_0x25948c[_0x10ed('0xe4')]['addClass'](_0x10ed('0x0')+_0x399dbf+'-new',_0x215ea0),this['activeChange']==_0x5991c5&&_0x25948c[_0x10ed('0xe4')]['addClass']('ck-suggestion-marker--active',_0x215ea0),_0x25948c[_0x10ed('0xe4')]['insert'](_0x5c780a,_0x215ea0),_0x25948c[_0x10ed('0x5c')][_0x10ed('0x110')](_0x215ea0,_0xf521f5[_0x10ed('0xad')]);}},{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xc6')]['on']('change',()=>{this[_0x10ed('0x61')][_0x10ed('0x78')]['view'][_0x10ed('0xb8')](_0x408273=>{for(const _0xfad406 of this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xc6')]['getRootNames']()){const _0x415c8a=this[_0x10ed('0x61')]['model']['document'][_0x10ed('0x9b')](_0xfad406),_0x46fe85=this['editor'][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')][_0x10ed('0x9b')](_0xfad406);if(_0x46fe85){const _0x500770=_0x415c8a[_0x10ed('0x88')](_0x10ed('0x9'));if(_0x408273[_0x10ed('0x119')](_0x10ed('0x95'),_0x46fe85),_0x408273[_0x10ed('0x5')](_0x10ed('0x1'),_0x46fe85),_0x408273['removeClass'](_0x10ed('0x39'),_0x46fe85),_0x408273[_0x10ed('0x5')](_0x10ed('0xa3'),_0x46fe85),_0x500770){const _0x218685=this[_0x10ed('0xda')](_0x500770);if(!_0x218685)return null;_0x408273[_0x10ed('0x23')](_0x10ed('0x95'),_0x500770,_0x46fe85),_0x408273[_0x10ed('0x1e')](_0x10ed('0x115')+_0x218685['type'],_0x46fe85),this['activeChange']==_0x218685&&_0x408273[_0x10ed('0x1e')](_0x10ed('0xa3'),_0x46fe85);}}}});}),this['editor']['conversion'][_0x10ed('0x8e')]('upcast')[_0x10ed('0x74')]({'view':_0x10ed('0xd3'),'model':_0x405309=>_0x10ed('0xef')+_0x405309,'converterPriority':_0x10ed('0x121')}),this['editor'][_0x10ed('0xde')][_0x10ed('0x8e')]('upcast')[_0x10ed('0x74')]({'view':_0x10ed('0xa'),'model':_0x425738=>_0x10ed('0x98')+_0x425738,'converterPriority':_0x10ed('0x121')}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')]('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2f8538=>({'name':_0x10ed('0x21')+_0x2f8538,'group':_0x10ed('0xee')}),'converterPriority':_0x10ed('0x121')}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x56'))[_0x10ed('0xe1')]({'model':_0x10ed('0xee'),'view':_0x26dbf3=>{const _0x4b372e=_0x26dbf3[_0x10ed('0xad')][_0x10ed('0xcc')](':')[0x1];return _0x10ed('0x7c')!=_0x4b372e&&_0x10ed('0x92')!=_0x4b372e?null:{'classes':[_0x10ed('0xec'),_0x10ed('0xa5')+_0x4b372e]};}}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on'](_0x10ed('0x117'),et(this['editor'],'merge'),{'priority':'high'}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on'](_0x10ed('0x11d'),et(this[_0x10ed('0x61')],_0x10ed('0xcc')),{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on'](_0x10ed('0xa2'),(_0x548b16,_0x3cdbd8,_0x18c420)=>{const _0x2134fd=_0x18c420['mapper']['markerNameToElements'](_0x3cdbd8[_0x10ed('0xad')]);if(_0x2134fd)for(const _0x53a79e of _0x2134fd)_0x53a79e['is'](_0x10ed('0x51'))&&(_0x18c420['mapper'][_0x10ed('0xe9')](_0x53a79e,_0x3cdbd8['markerName']),_0x18c420[_0x10ed('0xe4')][_0x10ed('0x10e')](_0x53a79e));},{'priority':_0x10ed('0x64')});}[_0x10ed('0xda')](_0x33e404){return this[_0x10ed('0x91')][_0x10ed('0x8f')](_0x33e404);}[_0x10ed('0x5d')](_0x327607){return this[_0x10ed('0x4b')]&&this['_changeView']['destroy'](),this[_0x10ed('0x4b')]=new _0x542f7b(this[_0x10ed('0x61')]['locale'],_0x327607),this[_0x10ed('0x4b')];}[_0x10ed('0x29')](){this['editor'][_0x10ed('0x49')]['document'][_0x10ed('0xe0')]['observeMarkers'](_0x10ed('0x66')),this['on'](_0x10ed('0xb5'),(_0xb26244,_0x273de3,_0x10a28f,_0x2531ac)=>{_0x2531ac&&this[_0x10ed('0x75')][_0x10ed('0x10e')](_0x2531ac),_0x10a28f&&(this[_0x10ed('0x75')][_0x10ed('0x2f')]({'view':_0x10a28f,'stackId':_0x10ed('0x3f'),'position':{'target':()=>{const _0x5e4b2c=this['editor'][_0x10ed('0x78')],_0x331ff3=this[_0x10ed('0xda')](_0x10a28f[_0x10ed('0x111')]);let _0x29f693;if(_0x331ff3[_0x10ed('0x125')][_0x10ed('0x5b')]){const _0x130e53=_0x5e4b2c[_0x10ed('0x6c')]['getDomRoot'](_0x331ff3[_0x10ed('0xe2')]);_0x29f693=Array[_0x10ed('0x90')](_0x130e53['getClientRects']());}else{const _0x4d3633=this[_0x10ed('0x61')]['model'][_0x10ed('0x10d')]['get'](_0x10ed('0x93')+_0x10a28f[_0x10ed('0x111')]);_0x29f693=Array[_0x10ed('0x90')](_0x5e4b2c[_0x10ed('0x5c')][_0x10ed('0xa9')](_0x4d3633[_0x10ed('0x104')]))[_0x10ed('0x107')](_0x33af49=>_0x5e4b2c[_0x10ed('0x6c')][_0x10ed('0xcd')][_0x10ed('0x43')](_0x33af49))[_0x10ed('0x107')](_0x4cd5e4=>Array[_0x10ed('0x90')](_0x4cd5e4[_0x10ed('0x8')]()))[_0x10ed('0xdd')]();}if(!this[_0x10ed('0x120')])return _0x29f693[0x0];return _0x29f693[_0x10ed('0xa0')](_0x40807f=>_0x40807f['top']-0x3<=this['_activeViewTarget']['y']&&_0x40807f[_0x10ed('0x65')]+0x3>=this[_0x10ed('0x120')]['y']&&_0x40807f[_0x10ed('0x124')]-0x3<=this['_activeViewTarget']['x']&&_0x40807f['right']+0x3>=this[_0x10ed('0x120')]['x'])||_0x29f693[0x0];}}}),this['_balloon'][_0x10ed('0x3d')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x125d72,_0x244603,_0x3357d8,_0x2ce885)=>{this[_0x10ed('0x60')]=_0x3357d8?this[_0x10ed('0x5d')](_0x3357d8):null,this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xb8')](()=>{const _0x60b122=this[_0x10ed('0x61')]['editing'];_0x2ce885&&(_0x2ce885[_0x10ed('0x125')]['isOnRoot']?_0x60b122['view'][_0x10ed('0xb8')](_0x4f720c=>{_0x4f720c[_0x10ed('0x5')](_0x10ed('0xa3'),_0x60b122[_0x10ed('0x6c')][_0x10ed('0xc6')][_0x10ed('0x9b')](_0x2ce885[_0x10ed('0xe2')]));}):_0x60b122[_0x10ed('0xf1')]('revision:'+_0x2ce885['id'])),_0x3357d8&&(_0x3357d8[_0x10ed('0x125')][_0x10ed('0x5b')]?_0x60b122['view']['change'](_0x2865ef=>{_0x2865ef[_0x10ed('0x1e')](_0x10ed('0xa3'),_0x60b122['view']['document'][_0x10ed('0x9b')](_0x3357d8[_0x10ed('0xe2')]));}):_0x60b122[_0x10ed('0xf1')](_0x10ed('0x93')+_0x3357d8['id']));});}),this[_0x10ed('0x8a')](this['editor']['editing'][_0x10ed('0x6c')]['document'],_0x10ed('0x2e'),(_0x4e400c,_0x4e9e9d)=>{if(this['activeChange'])return;const _0x374716=this[_0x10ed('0xf0')](_0x4e9e9d[_0x10ed('0x4f')]),_0x2bcfab=this[_0x10ed('0x91')][_0x10ed('0x8f')](_0x374716);_0x2bcfab?(this[_0x10ed('0x120')]={'x':_0x4e9e9d['domEvent']['x'],'y':_0x4e9e9d[_0x10ed('0x19')]['y']},this[_0x10ed('0x60')]=this[_0x10ed('0x5d')](_0x2bcfab)):(this[_0x10ed('0x120')]=null,this[_0x10ed('0x60')]=null);}),this[_0x10ed('0x8a')](this['editor']['editing']['view']['document'],_0x10ed('0x16'),(_0x415874,_0x3139c8)=>{const _0x4fa4fc=this[_0x10ed('0xf0')](_0x3139c8['target']),_0x17472b=this['_changeIdToChange'][_0x10ed('0x8f')](_0x4fa4fc);_0x17472b?(this[_0x10ed('0x120')]={'x':_0x3139c8[_0x10ed('0x19')]['x'],'y':_0x3139c8['domEvent']['y']},_0x17472b===this[_0x10ed('0x24')]?this[_0x10ed('0x75')][_0x10ed('0x9f')]():this['activeChange']=_0x17472b):(this[_0x10ed('0x120')]=null,this['activeChange']=null);});}[_0x10ed('0xf0')](_0x19c585){do{const _0x1b6d70=_0x19c585['getAttribute'](_0x10ed('0x95'));if(_0x1b6d70)return _0x1b6d70;_0x19c585=_0x19c585[_0x10ed('0x67')];}while(_0x19c585);return null;}[_0x10ed('0x30')](){this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xb8')](_0x368af4=>{for(const _0x57f193 of this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0x10d')])_0x368af4['removeMarker'](_0x57f193);});}}function et(_0x47b805,_0x41b59c){return(_0x50030e,_0x4d3608,_0x13abdb)=>{if(!_0x13abdb[_0x10ed('0xbc')][_0x10ed('0xd2')](_0x4d3608['markerRange'],_0x50030e['name']))return;const _0x340d05=_0x4d3608[_0x10ed('0x11e')]['getWalker'](),_0x1f1ced=_0x4d3608['markerRange'][_0x10ed('0xf2')],_0x1dcbd9=_0x47b805[_0x10ed('0x49')][_0x10ed('0x81')];let _0x30ac3e=null,_0x5baff9=null,_0x50045d=!0x1,_0x2f456f=!0x1;for(const _0xc72a34 of _0x340d05){const _0x2447c5=_0xc72a34[_0x10ed('0x84')];_0x50045d=_0x50045d||_0x1dcbd9[_0x10ed('0x11')](_0x2447c5);const _0x39c751=_0x13abdb[_0x10ed('0x5c')]['toViewElement'](_0x2447c5);if(_0x39c751&&_0x39c751[_0x10ed('0x4c')](_0x10ed('0xfa')))return;_0x10ed('0x118')==_0xc72a34['type']&&(_0x1dcbd9['isBlock'](_0x2447c5)&&!_0x1dcbd9['isLimit'](_0x2447c5)&&(_0x2447c5[_0x10ed('0xa7')]||_0x1f1ced[_0x10ed('0x42')]?_0x30ac3e&&_0x30ac3e[_0x10ed('0x67')]==_0x2447c5||(_0x30ac3e=_0x2447c5,_0x3383cd(_0xc72a34[_0x10ed('0x10b')]),_0x2f456f=!0x0):_0x5baff9=_0x5baff9||_0xc72a34[_0x10ed('0x10b')]));}function _0x3383cd(_0x36eba4){const _0x1d9aa2=_0x13abdb[_0x10ed('0x5c')][_0x10ed('0x7d')](_0x36eba4),_0x2023b4=_0x13abdb['writer'][_0x10ed('0x31')](_0x10ed('0x36'),{'class':_0x10ed('0xa5')+_0x41b59c});_0x13abdb[_0x10ed('0xe4')][_0x10ed('0xd')](_0x1d9aa2,_0x2023b4),_0x13abdb[_0x10ed('0x5c')][_0x10ed('0x110')](_0x2023b4,_0x4d3608[_0x10ed('0xad')]);}_0x50045d||_0x2f456f||!_0x5baff9||_0x3383cd(_0x5baff9);};}export class RestoreRevisionCommand extends _0x46c3fd{constructor(_0x4b53e5){super(_0x4b53e5);const _0x347192=_0x4b53e5[_0x10ed('0x52')]['get'](d);this[_0x10ed('0x94')]=!0x1,this['listenTo'](_0x347192,_0x10ed('0xc1'),()=>this[_0x10ed('0xc')]()),this['listenTo'](_0x347192,_0x10ed('0x70'),()=>this[_0x10ed('0xc')]());}[_0x10ed('0xbd')](){const _0x235f49=this[_0x10ed('0x61')],_0x52282b=_0x235f49[_0x10ed('0x52')][_0x10ed('0x8f')](d),_0x4066a1=_0x52282b[_0x10ed('0x1d')]?_0x52282b[_0x10ed('0xd1')]['newRevisionId']:null;_0x235f49[_0x10ed('0x27')][_0x10ed('0x8f')]('revisionHistory')[_0x10ed('0xf3')](_0x4066a1);}[_0x10ed('0xc')](){const {isReady:_0x2a8cfb,isEnabled:_0x4a91d2}=this[_0x10ed('0x61')][_0x10ed('0x52')]['get'](d);this[_0x10ed('0x12')]=_0x2a8cfb&&_0x4a91d2;}}export class ShowChangeCommand extends _0x46c3fd{constructor(_0x196802,{direction:_0x1d1b7a}){super(_0x196802);const _0x291308=_0x196802[_0x10ed('0x52')][_0x10ed('0x8f')](d);this['affectsData']=!0x1,this[_0x10ed('0x87')]=_0x10ed('0x4a')===_0x1d1b7a?0x1:-0x1,this['listenTo'](_0x291308,_0x10ed('0xc1'),()=>this[_0x10ed('0xc')]()),this[_0x10ed('0x8a')](_0x291308,_0x10ed('0x70'),()=>this['refresh']()),this[_0x10ed('0x8a')](_0x291308,_0x10ed('0xd5'),()=>this[_0x10ed('0xc')]());}[_0x10ed('0xbd')](){const _0x41e810=this['editor'],_0x565ac6=_0x41e810[_0x10ed('0x52')]['get'](d),{isNavigationMode:_0x29e630,currentChangeNumber:_0xb8374a}=_0x565ac6;let _0x5baec9;if(_0x565ac6['activeChange']=_0x29e630?_0x565ac6[_0x10ed('0xd1')][_0x10ed('0x6b')][_0x10ed('0x8f')](_0xb8374a+this[_0x10ed('0x87')]):_0x565ac6[_0x10ed('0xd1')][_0x10ed('0x6b')][_0x10ed('0xd6')],_0x565ac6[_0x10ed('0x24')]['data'][_0x10ed('0x5b')])_0x5baec9=_0x41e810[_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0x72')](_0x565ac6['activeChange'][_0x10ed('0xe2')]);else{const _0x4d7a43=_0x41e810[_0x10ed('0x49')]['markers'][_0x10ed('0x8f')](_0x10ed('0x93')+_0x565ac6[_0x10ed('0x24')]['id']);_0x5baec9=_0x4d02c5(_0x41e810['editing'],_0x4d7a43);}_0x320b83({'target':_0x5baec9,'viewportOffset':0x28});}[_0x10ed('0xc')](){const {isNavigationMode:_0x1d0437,currentChangeNumber:_0x4743a0,numberOfChanges:_0x51a67c,isReady:_0x5a8355,isEnabled:_0x59c3e3}=this[_0x10ed('0x61')][_0x10ed('0x52')][_0x10ed('0x8f')](d);this['isEnabled']=!!(_0x59c3e3&&_0x5a8355&&_0x51a67c)&&(!_0x1d0437||(0x1===this['_step']?_0x4743a0<_0x51a67c-0x1:_0x4743a0>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5de1=['change:isActionsDropdownOpen','first','_action','isVisible','listenTo','action','add','isActionsDropdownOpen','name','source','map','items','button','execute','class','model','isReady','isOpen','threeVerticalDots','listView','Compare\x20against\x20selected','function','Restore\x20this\x20revision','bind','ck-revision-history-sidebar__revision__actions','bindTemplate','children','stopPropagation','find','panelPosition','buttonView','isEnabled'];(function(_0x3cd57c,_0x5de1cf){const _0x134ef8=function(_0x288a1b){while(--_0x288a1b){_0x3cd57c['push'](_0x3cd57c['shift']());}};_0x134ef8(++_0x5de1cf);}(_0x5de1,0x163));const _0x134e=function(_0x3cd57c,_0x5de1cf){_0x3cd57c=_0x3cd57c-0x0;let _0x134ef8=_0x5de1[_0x3cd57c];return _0x134ef8;};import{Collection as _0x326ea2}from'ckeditor5/src/utils';import{icons as _0x21825c}from'ckeditor5/src/core';import{Model as _0x5a6a2a,addListToDropdown as _0x384a12,createDropdown as _0x47f338}from'ckeditor5/src/ui';import{getTranslation as _0x727a6f}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4fcddf,_0x1d0c24){const _0x311953=_0x4fcddf[_0x134e('0x16')],_0x5768e8=_0x4fcddf['locale'],_0x17a17b=_0x47f338(_0x5768e8);_0x17a17b[_0x134e('0x1a')]='sw';const _0x4c8690=function(_0x563f9e,_0x58d580){const _0x32e9e0=function(_0x4d96ac,_0x4e1f7d){const _0x29cc23=_0x4d96ac['locale'],_0x27eebb={'Compare\x20against\x20selected':_0x727a6f(_0x29cc23,_0x134e('0x11')),'Name\x20this\x20revision':_0x727a6f(_0x29cc23,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x727a6f(_0x29cc23,_0x134e('0x13'))};return _0x4e1f7d[_0x134e('0x7')](_0x48b220=>{const _0x360507=_0x27eebb[_0x48b220[_0x134e('0x5')]];return _0x360507&&_0x360507!==_0x48b220[_0x134e('0x5')]&&(_0x48b220['name']=_0x360507),_0x48b220;});}(_0x563f9e,_0x58d580),_0x2ea24f=new _0x326ea2();for(const _0x461ad3 of _0x32e9e0){const _0x42cc1c={'type':_0x134e('0x9'),'model':new _0x5a6a2a({'label':_0x461ad3[_0x134e('0x5')],'class':_0x461ad3[_0x134e('0xb')],'withText':!0x0,'_action':_0x461ad3[_0x134e('0x2')]})};_0x42cc1c[_0x134e('0xc')][_0x134e('0x14')](_0x134e('0x1c'))['to'](_0x563f9e,_0x134e('0x4'),_0x183980=>_0x134e('0x12')!=typeof _0x461ad3['isEnabled']||(!_0x183980||_0x461ad3[_0x134e('0x1c')](_0x563f9e))),_0x2ea24f[_0x134e('0x3')](_0x42cc1c);}return _0x2ea24f;}(_0x4fcddf,_0x1d0c24);return _0x4fcddf[_0x134e('0x14')](_0x134e('0x4'))['to'](_0x17a17b,_0x134e('0xe')),_0x17a17b[_0x134e('0x1b')]['set']({'label':_0x727a6f(_0x5768e8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x21825c[_0x134e('0xf')]}),_0x17a17b['extendTemplate']({'attributes':{'class':[_0x134e('0x15'),_0x311953['if'](_0x134e('0x4'),'ck-on')]},'on':{'click':_0x311953['to'](_0x1ecc01=>_0x1ecc01[_0x134e('0x18')]())}}),_0x17a17b['on'](_0x134e('0xa'),_0x466ae4=>{_0x4fcddf[_0x134e('0xd')]&&_0x134e('0x12')==typeof _0x466ae4[_0x134e('0x6')][_0x134e('0x1f')]&&_0x466ae4[_0x134e('0x6')]['_action'](_0x4fcddf);}),_0x384a12(_0x17a17b,_0x4c8690),_0x17a17b[_0x134e('0x1')](_0x4fcddf,_0x134e('0x1d'),(_0x323c20,_0x3b4488,_0x1c9e7f)=>{if(_0x1c9e7f)for(const _0x43a55c of _0x17a17b[_0x134e('0x10')][_0x134e('0x8')]){const _0x542270=_0x43a55c[_0x134e('0x17')][_0x134e('0x1e')],_0x19e477=_0x1d0c24[_0x134e('0x19')](_0x3cb0d8=>_0x3cb0d8[_0x134e('0x2')]===_0x542270['_action'])[_0x134e('0x0')];_0x43a55c[_0x134e('0x0')]=void 0x0===_0x19e477||_0x19e477(_0x4fcddf);}}),_0x17a17b;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d9f=['span','Revision\x20creator','set','setTemplate','name','push','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name'];(function(_0x314989,_0x3d9fef){const _0x3c89d2=function(_0xafb01f){while(--_0xafb01f){_0x314989['push'](_0x314989['shift']());}};_0x3c89d2(++_0x3d9fef);}(_0x3d9f,0x133));const _0x3c89=function(_0x314989,_0x3d9fef){_0x314989=_0x314989-0x0;let _0x3c89d2=_0x3d9f[_0x314989];return _0x3c89d2;};import{View as _0x55768e,IconView as _0x2cb4bb}from'ckeditor5/src/ui';import{getTranslation as _0x31d8f5}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x57b78b from'../../../theme/icons/user.svg';export default class ti extends _0x55768e{constructor(_0x56675b,_0x56922d,_0x3bb583){super(_0x56675b);const _0x373d41=new _0x2cb4bb();_0x373d41[_0x3c89('0x5')]({'content':_0x57b78b,'viewBox':_0x3c89('0x9')});const _0x51ef79=['ck',_0x3c89('0x0')];_0x3bb583&&_0x51ef79[_0x3c89('0x8')](_0x3c89('0x1'));const _0x37d58b=[{'tag':_0x3c89('0x3'),'attributes':{'class':['ck',_0x3c89('0x2')],'title':_0x31d8f5(_0x56675b,_0x3bb583?_0x3c89('0x4'):'Revision\x20author')},'children':[_0x373d41,_0x56922d[_0x3c89('0x7')]]}];this[_0x3c89('0x6')]({'tag':'li','attributes':{'class':_0x51ef79},'children':_0x37d58b});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1daf=['extendTemplate','span','ck-revision-history-sidebar__revision-name'];(function(_0x4aeeee,_0x1daf3e){var _0x1708d9=function(_0x395767){while(--_0x395767){_0x4aeeee['push'](_0x4aeeee['shift']());}};_0x1708d9(++_0x1daf3e);}(_0x1daf,0x19f));var _0x1708=function(_0x4aeeee,_0x1daf3e){_0x4aeeee=_0x4aeeee-0x0;var _0x1708d9=_0x1daf[_0x4aeeee];return _0x1708d9;};import{LabeledFieldView as _0x599cd9}from'ckeditor5/src/ui';import{getTranslation as _0x406400}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x599cd9{constructor(_0x59e7a2,_0x526a5f){super(_0x59e7a2,_0x526a5f),this['set']({'label':_0x406400(_0x59e7a2,'Revision\x20name')}),this[_0x1708('0x2')]({'tag':_0x1708('0x0'),'attributes':{'class':[_0x1708('0x1')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e29=['ck-revision-history-sidebar__revision-wrapper','bind','ck-revision-history-sidebar__revision__date','unhighlight','isReady','span','fire','createdAt','set','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision','uiLanguage','isSelected','revisionNameView','isEnabled','name','srcElement','unshift','ck-revision-history-sidebar__revision-authors','length','highlight','listenTo','value','.ck-thread__remove-confirm','creator','setTemplate','_createdAtFormatted','ck-reset','ck-revision-history-sidebar__actions_dropdown_open','element','div','placeholder','220','map','isHighlighted','fieldView','revisionActionsView','from','ck-revision-history-sidebar__revision__controls-wrapper','authors'];(function(_0x2c4e5e,_0x3e2947){const _0x1f7416=function(_0x541fa9){while(--_0x541fa9){_0x2c4e5e['push'](_0x2c4e5e['shift']());}};_0x1f7416(++_0x3e2947);}(_0x3e29,0x11e));const _0x1f74=function(_0x2c4e5e,_0x3e2947){_0x2c4e5e=_0x2c4e5e-0x0;let _0x1f7416=_0x3e29[_0x2c4e5e];return _0x1f7416;};import{View as _0x154321,createLabeledInputText as _0x3b775f}from'ckeditor5/src/ui';import{ConfirmMixin as _0x33d01c}from'ckeditor5-collaboration/src/collaboration-core';import _0x5b5459 from'./revisionnameview';import _0x16f37a from'./revisionauthorview';import{dateToPrettyFormat as _0x482cd3}from'./utils';import{createActionsDropdownView as _0x45c2ca}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x33d01c(_0x154321){constructor(_0x2b9e4c,_0x93d780,_0x2ba0c6){super(_0x2b9e4c);const _0x4f87d9=this['bindTemplate'],_0x3cfa87=function(_0x686855,_0xe4792d){const _0x1aaf23=Array[_0x1f74('0x1f')](_0xe4792d[_0x1f74('0x21')])['filter'](_0x14804b=>_0x14804b!=_0xe4792d[_0x1f74('0x12')]);return _0xe4792d[_0x1f74('0x12')]&&_0x1aaf23[_0x1f74('0xb')](_0xe4792d[_0x1f74('0x12')]),_0x1aaf23[_0x1f74('0x1b')](_0x1cc7f5=>new _0x16f37a(_0x686855,_0x1cc7f5,_0x1cc7f5==_0xe4792d[_0x1f74('0x12')]));}(_0x2b9e4c,_0x93d780);this['id']=_0x93d780['id'],this['_revision']=_0x93d780,this[_0x1f74('0x23')]('name',_0x1f74('0x1'))['to'](_0x93d780),this[_0x1f74('0x23')](_0x1f74('0x14'))['to'](this,_0x1f74('0x1'),_0x37de61=>_0x37de61?_0x482cd3(_0x2b9e4c[_0x1f74('0x5')],_0x37de61):void 0x0),this[_0x1f74('0x2')](_0x1f74('0x6'),!0x1),this[_0x1f74('0x2')]('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this[_0x1f74('0x2')](_0x1f74('0x26'),!0x1),this['set'](_0x1f74('0x8'),!0x1),this[_0x1f74('0x7')]=new _0x5b5459(_0x2b9e4c,_0x3b775f),this[_0x1f74('0x7')][_0x1f74('0x1d')]['extendTemplate']({'attributes':{'maxlength':_0x1f74('0x1a')}}),this[_0x1f74('0x7')][_0x1f74('0x1d')][_0x1f74('0x23')]('value',_0x1f74('0x19'))['to'](this,_0x1f74('0x9'),'_createdAtFormatted'),this[_0x1f74('0x7')][_0x1f74('0x23')](_0x1f74('0x8'))['to'](this,_0x1f74('0x6'),this,_0x1f74('0x8'),(_0x23c5bb,_0x4d98cd)=>_0x23c5bb&&_0x4d98cd),this[_0x1f74('0x1e')]=_0x2ba0c6&&_0x2ba0c6[_0x1f74('0xd')]?_0x45c2ca(this,_0x2ba0c6):'',this[_0x1f74('0x1e')]&&this['revisionActionsView'][_0x1f74('0x23')](_0x1f74('0x8'))['to'](this),this[_0x1f74('0x13')]({'tag':_0x1f74('0x18'),'attributes':{'class':['ck','ck-reset',_0x1f74('0x22'),_0x4f87d9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x1f74('0x15'),_0x1f74('0x4'),_0x4f87d9['if']('isEnabled','ck-disabled',_0x5a1932=>!_0x5a1932),_0x4f87d9['if'](_0x1f74('0x6'),_0x1f74('0x3')),_0x4f87d9['if'](_0x1f74('0x1c'),'ck-revision-history-sidebar__revision_highlighted'),_0x4f87d9['if']('isActionsDropdownOpen',_0x1f74('0x16'))]},'children':[this[_0x1f74('0x7')],{'tag':_0x1f74('0x27'),'attributes':{'class':['ck',_0x1f74('0x24')]},'children':[{'text':_0x4f87d9['to']('_createdAtFormatted')}]},{'tag':_0x1f74('0x18'),'attributes':{'class':['ck',_0x1f74('0x20')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1f74('0xc')]},'children':_0x3cfa87}]},this[_0x1f74('0x1e')]],'on':{'click':_0x4f87d9['to'](_0x1c846d=>{_0x1c846d[_0x1f74('0xa')]['closest'](_0x1f74('0x11'))||this[_0x1f74('0x26')]&&this[_0x1f74('0x8')]&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x17664e=this[_0x1f74('0x7')]['fieldView'][_0x1f74('0x17')];this[_0x1f74('0xf')](_0x17664e,'change',()=>{this[_0x1f74('0x0')]('setName',{'id':this['id'],'name':_0x17664e[_0x1f74('0x10')]});});}['select'](){this[_0x1f74('0x6')]=!0x0;}['deselect'](){this[_0x1f74('0x6')]=!0x1;}[_0x1f74('0xe')](){this[_0x1f74('0x1c')]=!0x0;}[_0x1f74('0x25')](){this[_0x1f74('0x1c')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44e2=['span','_isCollapsed','set','true','toggle','ck-revision-history-sidebar__subrevision-collapser__inner','isVisible','ck-hidden','click','bindTemplate','setTemplate'];(function(_0x3566eb,_0x44e2d7){const _0x115665=function(_0x36294f){while(--_0x36294f){_0x3566eb['push'](_0x3566eb['shift']());}};_0x115665(++_0x44e2d7);}(_0x44e2,0x144));const _0x1156=function(_0x3566eb,_0x44e2d7){_0x3566eb=_0x3566eb-0x0;let _0x115665=_0x44e2[_0x3566eb];return _0x115665;};import{View as _0x462aa8}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x462aa8{constructor(_0x28a8a6){super(_0x28a8a6);const _0x25c603=this[_0x1156('0x4')];this[_0x1156('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1156('0x5')]({'tag':_0x1156('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x25c603['if'](_0x1156('0x1'),_0x1156('0x2'),_0x47d70c=>!_0x47d70c),_0x25c603['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':'button','aria-pressed':_0x25c603['to'](_0x1156('0x7'),_0x428c57=>_0x428c57?'false':_0x1156('0x9'))},'children':[{'tag':_0x1156('0x6'),'attributes':{'class':['ck',_0x1156('0x0')]}}],'on':{'click':_0x25c603['to'](_0x1156('0x3'))}});}[_0x1156('0xa')](){this['_isCollapsed']=!this[_0x1156('0x7')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fb1=['ck-revision-history-sidebar__revision-authors','_createdAtFormatted','bindTemplate','_parentRevisionId','ck-revision-history-sidebar__revision__date','setTemplate','ck-revision-history-sidebar__revision_selected','deselect','span','createdAt','bind','set','uiLanguage','isSelected','div'];(function(_0x269939,_0x4fb11f){const _0x41d6b6=function(_0x11bc1b){while(--_0x11bc1b){_0x269939['push'](_0x269939['shift']());}};_0x41d6b6(++_0x4fb11f);}(_0x4fb1,0x106));const _0x41d6=function(_0x269939,_0x4fb11f){_0x269939=_0x269939-0x0;let _0x41d6b6=_0x4fb1[_0x269939];return _0x41d6b6;};import{View as _0x1e4348}from'ckeditor5/src/ui';import _0x44edf8 from'./revisionauthorview';import{dateToPrettyFormat as _0x2b5838}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1e4348{constructor(_0x132fc1,_0x3b1e36,_0x327b78){super(_0x132fc1);const _0x54d02e=this[_0x41d6('0xa')];this['id']=_0x3b1e36['id'],this['bind']('createdAt')['to'](_0x3b1e36),this[_0x41d6('0x4')](_0x41d6('0x6'),!0x1),this[_0x41d6('0x3')](_0x41d6('0x9'))['to'](this,_0x41d6('0x2'),_0x15a350=>_0x15a350?_0x2b5838(_0x132fc1[_0x41d6('0x5')],_0x15a350):void 0x0),this['_parentRevisionId']=_0x327b78,this[_0x41d6('0xd')]({'tag':_0x41d6('0x7'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x54d02e['if'](_0x41d6('0x6'),_0x41d6('0xe'))]},'children':[{'tag':_0x41d6('0x1'),'attributes':{'class':['ck',_0x41d6('0xc')]},'children':[{'text':_0x54d02e['to'](_0x41d6('0x9'))}]},{'tag':'ul','attributes':{'class':['ck',_0x41d6('0x8')]},'children':[new _0x44edf8(_0x132fc1,_0x3b1e36['creator'],!0x0)]}],'on':{'click':_0x54d02e['to'](this['select'][_0x41d6('0x3')](this))}});}['select'](){this[_0x41d6('0x6')]=!0x0,this['fire']('select',{'parentId':this[_0x41d6('0xb')]});}[_0x41d6('0x0')](){this[_0x41d6('0x6')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x34a5=['toLocaleDateString','toLocaleTimeString','long','numeric'];(function(_0x15dc7e,_0x34a55f){var _0x177348=function(_0x173986){while(--_0x173986){_0x15dc7e['push'](_0x15dc7e['shift']());}};_0x177348(++_0x34a55f);}(_0x34a5,0xbf));var _0x1773=function(_0x15dc7e,_0x34a55f){_0x15dc7e=_0x15dc7e-0x0;var _0x177348=_0x34a5[_0x15dc7e];return _0x177348;};export function dateToPrettyFormat(_0x44a7d1,_0x100d50){return _0x100d50[_0x1773('0x1')](_0x44a7d1,{'month':_0x1773('0x3'),'day':_0x1773('0x0')})+',\x20'+_0x100d50[_0x1773('0x2')](_0x44a7d1,{'hour':'numeric','minute':_0x1773('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4beb=['listenTo','_createRevisionNameInput','ck-button-save','arrowright','arrowleft','trim','cancelButtonView','reset','ck-responsive-form','cancel','revisionName','execute','Save','add','locale','_createButton','form','ck-revision-history-save-revision-form','submit','arrowup','fieldView','focusTracker','220','_focusables','Name\x20of\x20the\x20revision\x20(optional)','revisionNameInputValue','setTemplate','tab','type','Cancel','ck-button-cancel','value','keystrokes','forEach','element','check','revisionNameInputView','set','label','delegate','extendTemplate','saveButtonView','_focusCycler','focus'];(function(_0x58b3b2,_0x4bebee){const _0x4d9b27=function(_0x13973d){while(--_0x13973d){_0x58b3b2['push'](_0x58b3b2['shift']());}};_0x4d9b27(++_0x4bebee);}(_0x4beb,0x1d8));const _0x4d9b=function(_0x58b3b2,_0x4bebee){_0x58b3b2=_0x58b3b2-0x0;let _0x4d9b27=_0x4beb[_0x58b3b2];return _0x4d9b27;};import{icons as _0x47d0c5}from'ckeditor5/src/core';import{ButtonView as _0x91d04d,FocusCycler as _0x4c6efe,LabeledFieldView as _0x32f228,View as _0x1c211d,ViewCollection as _0xa8b03f,createLabeledInputText as _0x2ed245,injectCssTransitionDisabler as _0x34eeac,submitHandler as _0x2173a9}from'ckeditor5/src/ui';import{FocusTracker as _0x53e584,KeystrokeHandler as _0xffc167}from'ckeditor5/src/utils';import{getTranslation as _0x3c32ef}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1c211d{constructor(_0x4f9ed6){super(_0x4f9ed6),this['focusTracker']=new _0x53e584(),this['keystrokes']=new _0xffc167(),this[_0x4d9b('0x5')](_0x4d9b('0x25'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x4d9b('0x9')]=this['_createButton'](_0x3c32ef(_0x4f9ed6,_0x4d9b('0x18')),_0x47d0c5[_0x4d9b('0x3')],_0x4d9b('0xe')),this[_0x4d9b('0x9')][_0x4d9b('0x28')]=_0x4d9b('0x1e'),this[_0x4d9b('0x12')]=this[_0x4d9b('0x1b')](_0x3c32ef(_0x4f9ed6,_0x4d9b('0x29')),_0x47d0c5['cancel'],_0x4d9b('0x2a'),_0x4d9b('0x15')),this[_0x4d9b('0x23')]=new _0xa8b03f(),this[_0x4d9b('0xa')]=new _0x4c6efe({'focusables':this[_0x4d9b('0x23')],'focusTracker':this[_0x4d9b('0x21')],'keystrokeHandler':this[_0x4d9b('0x0')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x4d9b('0x27')}}),this[_0x4d9b('0x26')]({'tag':_0x4d9b('0x1c'),'attributes':{'class':['ck',_0x4d9b('0x1d'),_0x4d9b('0x14')],'tabindex':'-1'},'children':[this[_0x4d9b('0x4')],this[_0x4d9b('0x9')],this[_0x4d9b('0x12')]]}),_0x34eeac(this);}['render'](){super['render'](),_0x2173a9({'view':this}),([this[_0x4d9b('0x4')],this['saveButtonView'],this[_0x4d9b('0x12')]][_0x4d9b('0x1')](_0x145d8a=>{this[_0x4d9b('0x23')][_0x4d9b('0x19')](_0x145d8a),this[_0x4d9b('0x21')]['add'](_0x145d8a[_0x4d9b('0x2')]);}),this[_0x4d9b('0x0')][_0x4d9b('0xc')](this['element']));const _0x5465d7=_0x106ceb=>_0x106ceb['stopPropagation']();this['keystrokes'][_0x4d9b('0x5')](_0x4d9b('0xf'),_0x5465d7),this[_0x4d9b('0x0')]['set'](_0x4d9b('0x10'),_0x5465d7),this[_0x4d9b('0x0')][_0x4d9b('0x5')](_0x4d9b('0x1f'),_0x5465d7),this['keystrokes'][_0x4d9b('0x5')]('arrowdown',_0x5465d7);}[_0x4d9b('0xb')](){this[_0x4d9b('0xa')]['focusFirst']();}get[_0x4d9b('0x16')](){return this['revisionNameInputView'][_0x4d9b('0x20')][_0x4d9b('0x2')][_0x4d9b('0x2b')]['trim']();}set[_0x4d9b('0x16')](_0x14c490){this[_0x4d9b('0x4')][_0x4d9b('0x20')][_0x4d9b('0x2')][_0x4d9b('0x2b')]=_0x14c490[_0x4d9b('0x11')]();}[_0x4d9b('0x13')](){this[_0x4d9b('0x4')][_0x4d9b('0x20')][_0x4d9b('0x2')]['value']='';}[_0x4d9b('0xd')](){const _0x528766=new _0x32f228(this[_0x4d9b('0x1a')],_0x2ed245),_0x8f0d36=_0x528766[_0x4d9b('0x20')];return _0x8f0d36[_0x4d9b('0x8')]({'attributes':{'maxlength':_0x4d9b('0x22')}}),_0x528766[_0x4d9b('0x6')]=_0x3c32ef(this['locale'],_0x4d9b('0x24')),_0x8f0d36['on']('input',()=>{this[_0x4d9b('0x25')]=_0x8f0d36[_0x4d9b('0x2')][_0x4d9b('0x2b')]['trim']();}),_0x528766;}[_0x4d9b('0x1b')](_0x27ac05,_0x4d9bf6,_0x46d1b9,_0x186cec){const _0x4119e4=new _0x91d04d(this[_0x4d9b('0x1a')]);return _0x4119e4[_0x4d9b('0x5')]({'label':_0x27ac05,'icon':_0x4d9bf6,'tooltip':!0x0}),_0x4119e4[_0x4d9b('0x8')]({'attributes':{'class':_0x46d1b9}}),_0x186cec&&_0x4119e4[_0x4d9b('0x7')](_0x4d9b('0x17'))['to'](this,_0x186cec),_0x4119e4;}}
|