@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230803.0 → 0.0.0-nightly-20230805.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 -10
- 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 _0x2516=['_markSuggestions','vid_start','revision-comment:','document','unbindElementFromMarkerName','adapter','restoreRevisionCallback','mapViewToDom','getClientRects','writer','isRemoveSuggestion','markerRange','addRevision','_cleanUp','insert','isBefore','createRange','revisionHistoryLabel','revisionHistory','forward','slice','mouseover','_setConversion','updatePosition','isLimit','WidgetToolbarRepository','isOnRoot','nextPosition','newRevisionId','change:numberOfChanges','side','parent','vid','markerNameToElements','createAttributeElement','_initInteractions','dataDowncast','_getChangeFromId','suggestion:','next','item','-new','startsWith','pairId','attributesAfter','ck-revision-history-root-remove','getRevision','element:pre','revision','toData','_getDiff','RevisionsRepository','split','elementStart','_changeView','consumable','get','isSuggestion','isAttached','children','unshift','loadRevisionData','removeClass','right','_refreshStartEndIndex','addMarker:revision','createUIElement','editor','_revisions','checkAttribute','comment','insertion','revisionHistoryAttachChange','span','element','getItems','conversion','config','abs','has','commands','isEqual','useFillerType','top','_getViewObj','wrap','code','for','name','mapper','_markMarkers','_appendChild','forEach','isObject','mousedown','isAtEnd','startIndex','isContent','change:isEnabled','_findChangeIdFromDomTarget','vid_end','_removeUnsupportedChanges','upcast','revision-suggestion','nodeAfter','changes','attachChange','numberOfChanges','high','revision-viewer','_getRevisionsRange','_removeRevisionMarkers','bottom','ck-editor__editable__overlay','markerName','_data','ck-suggestion-marker-','_threeWayMerge','getCustomProperty','parse','activeView','_changeIdToChange','add','done','clear','activeChange','ck-revision-history-root-add','revision-suggestion:','execute','addHighlight','dataToMarker','sort','push','merge','getDomRoot','isBlock','markersEnd','text','getChild','POSITIVE_INFINITY','level','revision-start','change','view','concat','uiElement','_balloon','_processTape','getAttribute','remove','indexOf','createPositionBefore','addRoot','string','ck-revision-history-root--active','forceDisabled','diffData','return','highest','target','marked','data','domEvent','getRootNames','backward','index','modelRange','data-change-id','toViewRange','ck-suggestion-marker--active','removeMarker','restoreRevision','previousPosition','elementEnd','ck-suggestion-marker-merge','first','schema','offsetSize','ck-suggestion-marker-split','model','isAddSuggestion','refresh','downcastDispatcher','resolve','revision-end','getWalker','isRemoved','change:activeChange','currentChangeNumber','splice','end','editingDowncast','createPositionFromPath','object','_activeViewTarget','addRevisionData','includes','_markInsertions','data-revision-','change:isReady','reconvertMarker','revision:','isEnabled','plugins','test','bind','_getViewForChange','consume','addClass','attributes','createRangeIn','rootName','diff','_makeModelFromViewString','nextSibling','observeMarkers','isAtStart','values','isCollapsed','maxOffset','keys','markerToData','getRevisionData','repository','hasAttribute','ck-suggestion-preview-marker','isAfter','_markMismatchedRemovedTags','_setDistance','type','toViewElement','requires','markers','markersStart','deletions','userId','listenTo','stop','collaboration.channelId','_update','roots','compare','hasClass','low','isNavigationMode','default','deletion','enqueueChange','_step','endIndex','distance','editing','filter','isIncorrect','_removeMissingPairs','removeMarker:revision-suggestion','getIndex','shift','changeId','delete','viewItem','_makeTape','_joinTapes','getAttributes','destroy','setAttribute','isReady','suggestion','RevisionViewer','length','map','getRoot','set','flat','find','error','toViewPosition','showPreviousChange','markerToHighlight','bindElementToMarker','then','ck-suggestion-preview-marker-','softBreak','from','enableReadOnlyMode','domConverter','isAdded','start','insertions','isInline'];(function(_0x158a81,_0x2516ce){const _0x34d766=function(_0x37f6e8){while(--_0x37f6e8){_0x158a81['push'](_0x158a81['shift']());}};_0x34d766(++_0x2516ce);}(_0x2516,0xbe));const _0x34d7=function(_0x158a81,_0x2516ce){_0x158a81=_0x158a81-0x0;let _0x34d766=_0x2516[_0x158a81];return _0x34d766;};import{Plugin as _0x2fc33f,Command as _0x36887a}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x50716e}from'ckeditor5/src/utils';import{ContextualBalloon as _0x382bec}from'ckeditor5/src/ui';import{DocumentFragment as _0x2914f6,Element as _0xa820f6,Text as _0x2170a2,ViewDocumentFragment as _0x261106,ViewText as _0xa94f78,ViewElement as _0x15233a,ViewContainerElement as _0x5d2a98,ViewAttributeElement as _0xce135a,ViewEmptyElement as _0x11a960,ViewRawElement as _0x5963bd,ViewUIElement as _0x11f217}from'ckeditor5/src/engine';import{Users as _0x252e06,getMarkerDomElement as _0x1acd99}from'ckeditor5-collaboration/src/collaboration-core';import _0x21bbee from'./ui/revisionviewer/changedetailsview';import _0xc32967 from'./revisionsrepository';import _0x3711f3 from'./changeitem';import{default as _0x132999}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x23e22a}from'lodash-es';const tt={'c':_0x5d2a98,'a':_0xce135a,'e':_0x11a960,'r':_0x5963bd,'u':_0x11f217};export default class d extends _0x2fc33f{static get['pluginName'](){return'RevisionViewer';}static get[_0x34d7('0x29')](){return[_0x252e06,_0x382bec,_0xc32967];}constructor(_0x5d40f3){super(_0x5d40f3),this['repository']=this[_0x34d7('0xa7')][_0x34d7('0xd')][_0x34d7('0x9c')](_0x34d7('0x97')),this[_0x34d7('0x52')]('activeChange',null),this['set'](_0x34d7('0xdc'),null),this[_0x34d7('0x4')]=null,this[_0x34d7('0x52')](_0x34d7('0x16'),null),this['set'](_0x34d7('0x4c'),!0x1),this[_0x34d7('0x52')](_0x34d7('0xc'),!0x0),this['on'](_0x34d7('0xc6'),(_0x3b0901,_0x4d619e,_0x3f7e5c)=>{this[_0x34d7('0xe1')]=null,this['activeView']=null,this[_0x34d7('0xa7')]['editing'][_0x34d7('0xf3')][_0x34d7('0xf2')](_0x2d5b81=>{for(const _0x162c2a of this[_0x34d7('0xa7')][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0x67')][_0x34d7('0x32')])_0x3f7e5c?_0x2d5b81[_0x34d7('0xa2')]('ck-editor__editable__overlay',_0x162c2a):_0x2d5b81[_0x34d7('0x12')](_0x34d7('0xd5'),_0x162c2a);});}),this['bind'](_0x34d7('0x36'))['to'](this,_0x34d7('0xe1'),_0x1ce6f4=>null!==_0x1ce6f4),this[_0x34d7('0xf')](_0x34d7('0x120'))['to'](this,_0x34d7('0x4c'),this,'diff',this,_0x34d7('0xe1'),(_0xb06fcb,_0x4b1dba,_0x3b3ae2)=>_0xb06fcb&&_0x3b3ae2?_0x4b1dba['changes'][_0x34d7('0x42')](_0x3b3ae2):0x0),this[_0x34d7('0xf')](_0x34d7('0xcf'))['to'](this,_0x34d7('0x4c'),this,_0x34d7('0x16'),(_0x269049,_0x4098ff)=>_0x269049?_0x4098ff['changes'][_0x34d7('0x4f')]:0x0),this[_0x34d7('0x9a')]=null,this[_0x34d7('0xdd')]=new Map(),this[_0x34d7('0x69')]=null,this['_balloon']=this[_0x34d7('0xa7')]['plugins'][_0x34d7('0x9c')](_0x382bec);}['init'](){const _0x14aba6=this[_0x34d7('0xa7')],_0x338d3a=new ShowChangeCommand(_0x14aba6,{'direction':_0x34d7('0x108')}),_0x5dbc5f=new ShowChangeCommand(_0x14aba6,{'direction':'forward'});(_0x14aba6[_0x34d7('0xb4')][_0x34d7('0xde')](_0x34d7('0x57'),_0x338d3a),_0x14aba6[_0x34d7('0xb4')][_0x34d7('0xde')]('showNextChange',_0x5dbc5f),_0x14aba6[_0x34d7('0xb4')][_0x34d7('0xde')](_0x34d7('0x10f'),new RestoreRevisionCommand(_0x14aba6)),this['on'](_0x34d7('0x81'),()=>{_0x338d3a[_0x34d7('0x119')](),_0x5dbc5f[_0x34d7('0x119')]();}),this[_0x34d7('0x7a')](),this[_0x34d7('0x87')](),_0x14aba6[_0x34d7('0x5e')](_0x34d7('0xd1')),_0x14aba6['plugins'][_0x34d7('0xb3')]('WidgetToolbarRepository'))&&_0x14aba6['plugins'][_0x34d7('0x9c')](_0x34d7('0x7d'))[_0x34d7('0xff')]('revision-viewer');}async[_0x34d7('0x20')](_0xddd003){await this[_0x34d7('0xa1')](_0xddd003);const _0x3338a7={};for(const _0x31dd02 in _0xddd003[_0x34d7('0x100')]){if(_0xddd003[_0x34d7('0x100')][_0x31dd02][_0x34d7('0xce')]&&!_0xddd003['diffData'][_0x31dd02]['attachChange'][_0x34d7('0x9e')])continue;const _0x4e7fea=this[_0x34d7('0xd3')](JSON[_0x34d7('0xdb')](_0xddd003['diffData'][_0x31dd02][_0x34d7('0x62')])),_0xfed9f9=this[_0x34d7('0xa7')]['editing'][_0x34d7('0xf3')][_0x34d7('0x67')],_0xe5fc2a=new _0x261106(_0xfed9f9,_0x4e7fea[_0x34d7('0x50')](_0x54f029=>this[_0x34d7('0xb8')](_0x54f029)));this['editor'][_0x34d7('0x105')]['processor'][_0x34d7('0xb6')](_0x34d7('0x104')),_0x3338a7[_0x31dd02]=this['editor']['data']['processor'][_0x34d7('0x95')](_0xe5fc2a),this['editor'][_0x34d7('0x105')]['processor'][_0x34d7('0xb6')](_0x34d7('0x37'));}return _0x3338a7;}async['getRevisionRootsAttributes'](_0x5450d6){await this['loadRevisionData'](_0x5450d6);const _0x567469={};for(const _0x5a4929 in _0x5450d6[_0x34d7('0x100')])_0x5450d6[_0x34d7('0x100')][_0x5a4929][_0x34d7('0xce')]&&!_0x5450d6[_0x34d7('0x100')][_0x5a4929][_0x34d7('0xce')]['isAttached']||(_0x567469[_0x5a4929]=_0x5450d6[_0x34d7('0x100')][_0x5a4929][_0x34d7('0x90')]||{});return _0x567469;}[_0x34d7('0xd3')](_0x459a79){return(_0x459a79=_0x459a79[_0x34d7('0x3e')](_0x1866d1=>!_0x1866d1[_0x34d7('0xbc')]||_0x34d7('0xf1')!==_0x1866d1[_0x34d7('0xbc')]&&_0x34d7('0x11c')!==_0x1866d1[_0x34d7('0xbc')]))[_0x34d7('0xc0')](_0x4f417a=>{'string'!=typeof _0x4f417a&&(_0x4f417a['children']=this[_0x34d7('0xd3')](_0x4f417a[_0x34d7('0x9f')]),_0x4f417a[_0x34d7('0x13')]=_0x4f417a[_0x34d7('0x13')][_0x34d7('0x3e')](_0x1a5d6b=>!_0x1a5d6b[0x0]['startsWith'](_0x34d7('0x8'))));}),_0x459a79;}async[_0x34d7('0x33')](_0x3ddba0,_0x123c75,_0x4be888=!0x1){if(!this['isEnabled'])return;const _0x22c622=this[_0x34d7('0x16')],_0x3030e0=this['repository'],_0x364c4a=_0x34d7('0xfd')==typeof _0x3ddba0?_0x3030e0[_0x34d7('0x92')](_0x3ddba0):_0x3ddba0,_0x2e3cf0=_0x34d7('0xfd')==typeof _0x123c75?_0x3030e0[_0x34d7('0x92')](_0x123c75):_0x123c75,_0x2c45f6=_0x364c4a['id'],_0x573b03=_0x2e3cf0?_0x2e3cf0['id']:null;if(!_0x4be888&&this[_0x34d7('0x16')]&&this['diff'][_0x34d7('0x80')]===_0x2c45f6&&this[_0x34d7('0x16')]['oldRevisionId']===_0x573b03)return Promise[_0x34d7('0x11b')]();this[_0x34d7('0x4c')]=!0x1,this[_0x34d7('0xdc')]=null,this[_0x34d7('0xe1')]=null,this['diff']=new _0x132999(_0x2c45f6,_0x573b03);const _0x39ea13=this['_getRevisionsRange'](_0x364c4a,_0x2e3cf0,!0x0)[_0x34d7('0x50')](_0x59ea00=>this[_0x34d7('0xa1')](_0x59ea00));return _0x39ea13[_0x34d7('0xe8')](new Promise(_0x3a391d=>{setTimeout(_0x3a391d,0x14);})),Promise['all'](_0x39ea13)[_0x34d7('0x5a')](()=>{if(!this[_0x34d7('0xc')])return;this[_0x34d7('0x71')]();const _0x5e0cf8=this[_0x34d7('0x96')](_0x2c45f6,_0x573b03);for(const _0x42595d of _0x5e0cf8['changes'])this[_0x34d7('0xdd')][_0x34d7('0x52')](_0x42595d['id'],_0x42595d);this[_0x34d7('0xa7')]['model'][_0x34d7('0x39')]({'isUndoable':!0x1},_0x5f5087=>{for(const _0x3a2e12 of this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x67')]['getRootNames']())_0x5f5087['detachRoot'](_0x3a2e12);for(const _0x4fca35 of Object[_0x34d7('0x1e')](_0x5e0cf8['model'])){const _0x1f5040=_0x5f5087[_0x34d7('0xfc')](_0x4fca35);for(const _0x9e02bb of Object[_0x34d7('0x1e')](_0x5e0cf8['attributes'][_0x4fca35]))_0x5f5087[_0x34d7('0x4b')](_0x9e02bb,_0x5e0cf8[_0x34d7('0x13')][_0x4fca35][_0x9e02bb],_0x1f5040);_0x5f5087[_0x34d7('0x72')](_0x5e0cf8[_0x34d7('0x117')][_0x4fca35],_0x1f5040,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5e0cf8['changes'])),this[_0x34d7('0x4c')]=!0x0;})['catch'](_0x5ef96a=>{console[_0x34d7('0x55')](_0x5ef96a),this[_0x34d7('0x71')](),_0x22c622&&(this['diff']=_0x22c622),this[_0x34d7('0x4c')]=!0x0;});}[_0x34d7('0x5')](_0x4b1ef7,_0x3db77f){const _0x2c2a11=this['repository']['createRevision'](_0x4b1ef7);return _0x2c2a11['on'](_0x34d7('0x31'),(_0x362d92,_0x3b5703,_0xff7d74)=>_0x3db77f(_0x3b5703,_0xff7d74,_0x2c2a11)),this[_0x34d7('0x21')][_0x34d7('0x70')](_0x2c2a11),_0x2c2a11;}[_0x34d7('0xa1')](_0x50bf60){if(!_0x50bf60||_0x50bf60[_0x34d7('0x100')])return Promise['resolve']();{const _0x250025=this[_0x34d7('0xa7')][_0x34d7('0xb1')][_0x34d7('0x9c')](_0x34d7('0x30'));return this['adapter'][_0x34d7('0x92')]({'channelId':_0x250025,'revisionId':_0x50bf60['id']})[_0x34d7('0x5a')](_0xa489cd=>{_0x50bf60[_0x34d7('0x31')]({'diffData':_0xa489cd[_0x34d7('0x100')]},!0x0);});}}[_0x34d7('0x71')](){this[_0x34d7('0xe1')]=null,this['_cleanMarkers'](),this[_0x34d7('0x9a')]&&this[_0x34d7('0x9a')][_0x34d7('0x4a')](),this['_changeView']=null,this[_0x34d7('0xdd')][_0x34d7('0xe0')](),this[_0x34d7('0xa7')][_0x34d7('0x117')]['enqueueChange']({'isUndoable':!0x1},_0x1d055e=>{for(const _0x59e91b of this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x67')][_0x34d7('0x107')]())_0x1d055e['detachRoot'](_0x59e91b);});}['_sortAndFilterDiffChanges'](_0x478b6b){const _0x5a9b04=[],_0xc9aa1d=new Map();for(const _0x21d957 of this[_0x34d7('0xa7')]['model'][_0x34d7('0x67')][_0x34d7('0x107')]()){const _0x159f1f=this[_0x34d7('0xa7')][_0x34d7('0x3d')][_0x34d7('0xf3')]['getDomRoot'](_0x21d957);if(!_0x159f1f)continue;const _0xdcd634=_0x159f1f['getClientRects']()['item'](0x0);_0xdcd634&&(_0x5a9b04[_0x34d7('0xe8')](_0x21d957),_0xc9aa1d[_0x34d7('0x52')](_0x21d957,_0xdcd634));}return _0x5a9b04[_0x34d7('0xe7')]((_0x18b8da,_0x4f2695)=>{const _0x23ccba=_0xc9aa1d[_0x34d7('0x9c')](_0x18b8da),_0x3a0c7c=_0xc9aa1d[_0x34d7('0x9c')](_0x4f2695);return _0x23ccba['y']-_0x3a0c7c['y']||_0x23ccba['x']-_0x3a0c7c['x'];}),(_0x478b6b=_0x478b6b['filter'](_0x5d9969=>_0x5a9b04['includes'](_0x5d9969[_0x34d7('0x15')])))[_0x34d7('0xe7')]((_0x15ffbb,_0x3f171d)=>_0x5a9b04['indexOf'](_0x15ffbb[_0x34d7('0x15')])-_0x5a9b04[_0x34d7('0xfa')](_0x3f171d[_0x34d7('0x15')])),_0x478b6b;}[_0x34d7('0x47')](_0xda13ff){const _0x9fd853=Array[_0x34d7('0x5d')](_0xda13ff['markers'])[_0x34d7('0x3e')](([_0x4c5536,_0x5925f4])=>_0x4c5536[_0x34d7('0x8e')](_0x34d7('0xb'))&&!_0x5925f4[_0x34d7('0x1c')]),_0x377058=Array[_0x34d7('0x5d')](this[_0x34d7('0xa7')]['model'][_0x34d7('0x14')](_0xda13ff)[_0x34d7('0x11d')]({'singleCharacters':!0x0}));if(0x0!=_0x9fd853[_0x34d7('0x4f')])for(const _0x2be6b2 of _0x377058){const [_0x283be1,_0x433edb]=_0x9fd853[0x0],[,_0x36a1ae,_0x27f840]=_0x283be1[_0x34d7('0x98')](':');if(_0x433edb[_0x34d7('0x0')][_0x34d7('0xb5')](_0x2be6b2[_0x34d7('0x7f')])&&_0x9fd853[_0x34d7('0x43')](),(_0x2be6b2['previousPosition'][_0x34d7('0xb5')](_0x433edb['start'])||_0x2be6b2[_0x34d7('0x110')][_0x34d7('0x24')](_0x433edb[_0x34d7('0x61')]))&&(_0x34d7('0xab')==_0x36a1ae?_0x2be6b2['isAdded']={'userId':_0x27f840}:'deletion'==_0x36a1ae&&(_0x2be6b2[_0x34d7('0x11e')]={'userId':_0x27f840})),0x0==_0x9fd853[_0x34d7('0x4f')])break;}return _0x377058;}[_0x34d7('0xa4')](_0x4d0737){const _0x301d5f=new Map();for(let _0x31770d=0x0;_0x31770d<_0x4d0737['length'];_0x31770d++)_0x34d7('0xed')===_0x4d0737[_0x31770d][_0x34d7('0x27')]?(_0x4d0737[_0x31770d]['item']['startIndex']=_0x31770d,_0x4d0737[_0x31770d][_0x34d7('0x8c')][_0x34d7('0x3b')]=_0x31770d):(_0x34d7('0x99')===_0x4d0737[_0x31770d]['type']?_0x4d0737[_0x31770d][_0x34d7('0x8c')]['startIndex']=_0x31770d:_0x34d7('0x111')===_0x4d0737[_0x31770d][_0x34d7('0x27')]&&(_0x4d0737[_0x31770d][_0x34d7('0x8c')][_0x34d7('0x3b')]=_0x31770d),_0x301d5f['set'](_0x4d0737[_0x31770d]['id'],_0x31770d));for(const _0xf66f2e of _0x301d5f[_0x34d7('0x1b')]())_0x34d7('0x99')===_0x4d0737[_0xf66f2e][_0x34d7('0x27')]?_0x4d0737[_0xf66f2e]['item'][_0x34d7('0x3b')]=_0x301d5f['get'](_0x4d0737[_0xf66f2e]['pairId']):_0x34d7('0x111')===_0x4d0737[_0xf66f2e][_0x34d7('0x27')]&&(_0x4d0737[_0xf66f2e][_0x34d7('0x8c')][_0x34d7('0xc4')]=_0x301d5f[_0x34d7('0x9c')](_0x4d0737[_0xf66f2e][_0x34d7('0x8f')]));}[_0x34d7('0xf7')](_0x50767b){for(let _0x37f1e8=0x0;_0x37f1e8<_0x50767b['length'];_0x37f1e8++){if(_0x34d7('0x99')===_0x50767b[_0x37f1e8][_0x34d7('0x27')])_0x50767b[_0x37f1e8]['item']['startIndex']=_0x37f1e8;else{if(_0x34d7('0x111')===_0x50767b[_0x37f1e8]['type']){_0x50767b[_0x37f1e8][_0x34d7('0x8c')][_0x34d7('0x3b')]=_0x37f1e8;const _0x56d238=_0x50767b[_0x37f1e8]['item'][_0x34d7('0xc4')];_0x50767b[_0x56d238]['pairId']=_0x50767b[_0x37f1e8]['id'],_0x50767b[_0x37f1e8]['pairId']=_0x50767b[_0x56d238]['id'];}else _0x50767b[_0x37f1e8][_0x34d7('0x8c')][_0x34d7('0xc4')]=_0x37f1e8,_0x50767b[_0x37f1e8]['item'][_0x34d7('0x3b')]=_0x37f1e8,_0x50767b[_0x37f1e8][_0x34d7('0x8f')]=null;}_0x50767b[_0x37f1e8][_0x34d7('0x2b')]||(_0x50767b[_0x37f1e8]['markersStart']=[],_0x50767b[_0x37f1e8][_0x34d7('0xec')]=[]);}}[_0x34d7('0x7')](_0x264a6e,_0x311322){const _0x379de3=_0x264a6e[_0x34d7('0x3e')](_0x327b63=>!_0x327b63[_0x34d7('0x60')]);for(let _0x4fdbfe=0x0;_0x4fdbfe<_0x311322[_0x34d7('0x4f')];_0x4fdbfe++)_0x311322[_0x4fdbfe][_0x34d7('0x60')]&&(_0x379de3[_0x4fdbfe][_0x34d7('0x60')]=_0x311322[_0x4fdbfe][_0x34d7('0x60')]);}[_0x34d7('0x17')](_0x30f305){const _0xdf2f95=JSON[_0x34d7('0xdb')](_0x30f305),_0x2ee913=this[_0x34d7('0xa7')]['editing'][_0x34d7('0xf3')][_0x34d7('0x67')],_0x2b7827=new _0x261106(_0x2ee913,_0xdf2f95[_0x34d7('0x50')](_0x45269b=>this[_0x34d7('0xb8')](_0x45269b)));return this[_0x34d7('0xa7')][_0x34d7('0x105')]['toModel'](_0x2b7827);}['_getViewObj'](_0x3d0b13){const _0x481670=this['editor'][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0x67')];if('string'==typeof _0x3d0b13)return new _0xa94f78(_0x481670,_0x3d0b13);{const _0x3463fa=_0x3d0b13[_0x34d7('0x9f')][_0x34d7('0x50')](_0x1300f6=>this['_getViewObj'](_0x1300f6));return new(tt[_0x3d0b13[(_0x34d7('0x27'))]]||_0x15233a)(_0x481670,_0x3d0b13['name'],_0x3d0b13[_0x34d7('0x13')],_0x3463fa);}}['_getDiff'](_0x591fbd,_0x204aa9=null){const _0x8aebf0=this[_0x34d7('0x21')][_0x34d7('0x92')](_0x591fbd),_0x5df8b2=_0x204aa9?this['repository'][_0x34d7('0x92')](_0x204aa9):null,_0x58d481=this['_getRevisionsRange'](_0x8aebf0,_0x5df8b2),_0x397331=_0x58d481[_0x58d481[_0x34d7('0x4f')]-0x1],_0x31065e=new Map(),_0x2df7c0={'model':{},'attributes':{},'changes':[]},_0xa570b9=new Set(),_0x3f99e4=new Map();for(let _0x26f5d1=_0x58d481[_0x34d7('0x4f')]-0x1;_0x26f5d1>=0x0;_0x26f5d1--){const _0x53bb89=_0x58d481[_0x26f5d1];for(const _0x48a076 of Object[_0x34d7('0x1e')](_0x53bb89[_0x34d7('0x100')]))if(_0x53bb89[_0x34d7('0x100')][_0x48a076][_0x34d7('0xce')]){const _0x992364=_0x53bb89['diffData'][_0x48a076][_0x34d7('0xce')];_0x992364[_0x34d7('0x9e')]?(_0xa570b9[_0x34d7('0xde')](_0x48a076),_0x3f99e4[_0x34d7('0xb3')](_0x48a076)&&_0x3f99e4[_0x34d7('0x9c')](_0x48a076)[_0x34d7('0x2d')]==_0x992364['userId']?_0x3f99e4[_0x34d7('0x45')](_0x48a076):_0x3f99e4[_0x34d7('0x52')](_0x48a076,_0x992364)):_0x3f99e4[_0x34d7('0xb3')](_0x48a076)?(_0xa570b9[_0x34d7('0x45')](_0x48a076),_0x3f99e4[_0x34d7('0x45')](_0x48a076)):(_0xa570b9[_0x34d7('0xde')](_0x48a076),_0x3f99e4[_0x34d7('0x52')](_0x48a076,_0x992364));}else _0xa570b9[_0x34d7('0xde')](_0x48a076);}for(const _0x50695a of _0xa570b9){const _0x1bb376=_0x3f99e4['has'](_0x50695a)&&!_0x3f99e4['get'](_0x50695a)[_0x34d7('0x9e')];let _0x458511=_0x1bb376?_0x58d481[_0x34d7('0x4f')]-0x1:0x0;const _0x38e715=_0x1bb376?-0x1:0x1;for(;_0x58d481[_0x458511];){const _0xd01938=_0x58d481[_0x458511];if(_0xd01938['diffData'][_0x50695a]){const _0x58a6af=_0x1bb376?_0xd01938[_0x34d7('0x100')][_0x50695a]['attributesBefore']:_0xd01938[_0x34d7('0x100')][_0x50695a]['attributesAfter'];_0x2df7c0[_0x34d7('0x13')][_0x50695a]=_0x58a6af?_0x23e22a(_0x58a6af):{};break;}_0x458511+=_0x38e715;}}for(const _0x10c844 of _0x58d481){_0x10c844[_0x34d7('0x117')]={};for(const _0x47dc91 of _0x10c844['authors'])_0x31065e['set'](_0x47dc91['id'],_0x47dc91);for(const _0x427d3d of _0xa570b9){const _0x582939=_0x10c844[_0x34d7('0x100')][_0x427d3d]?_0x10c844['diffData'][_0x427d3d][_0x34d7('0x62')]:'[]',_0x4281c3=_0x10c844[_0x34d7('0x100')][_0x427d3d]?_0x10c844['diffData'][_0x427d3d][_0x34d7('0x2c')]:'[]';_0x10c844[_0x34d7('0x117')][_0x427d3d]={'insertions':this[_0x34d7('0x17')](_0x582939),'deletions':this[_0x34d7('0x17')](_0x4281c3)};}}for(const _0x56c554 of _0xa570b9){let _0x1c0792=null,_0xf1a9f9=0x0;const _0x2b6450=new Map(Array['from'](_0x8aebf0[_0x34d7('0x117')][_0x56c554][_0x34d7('0x62')]['markers'])['filter'](([_0x440db6])=>!_0x440db6[_0x34d7('0x8e')](_0x34d7('0xb'))));let _0x17d353=0x0;for(const _0x21c730 of _0x58d481){const _0x231062=this['_makeTape'](_0x21c730[_0x34d7('0x117')][_0x56c554][_0x34d7('0x62')]);_0x21c730==_0x8aebf0?(_0x1c0792=_0x231062,_0xf1a9f9=_0x1c0792[_0x34d7('0x4f')],_0x1c0792['forEach'](_0x3c800c=>{_0x3c800c['id']=_0x17d353++;}),this[_0x34d7('0xf7')](_0x1c0792)):this[_0x34d7('0x7')](_0x1c0792,_0x231062);const _0x559f1d=_0x1c0792[_0x34d7('0x3e')](_0x613d72=>!_0x613d72[_0x34d7('0x60')])['map'](_0x1b129b=>_0x1b129b['id']);let _0xb9a2f8=0x0;const _0x174ce4=this[_0x34d7('0x47')](_0x21c730[_0x34d7('0x117')][_0x56c554][_0x34d7('0x2c')]);_0x174ce4[_0x34d7('0xc0')](_0x2ce042=>{_0x2ce042[_0x34d7('0x11e')]?_0x2ce042['id']=_0xf1a9f9++:_0x2ce042['id']=_0x559f1d[_0xb9a2f8++];}),this['_processTape'](_0x174ce4),this['_setDistance'](_0x1c0792,_0x34d7('0x60')),this[_0x34d7('0x26')](_0x174ce4,_0x34d7('0x11e')),_0x21c730==_0x8aebf0&&this['_markMarkers'](_0x1c0792,_0x2b6450),_0x1c0792=this[_0x34d7('0x48')](_0x1c0792,_0x174ce4),this[_0x34d7('0xa4')](_0x1c0792),this[_0x34d7('0x26')](_0x1c0792,_0x34d7('0x11e'));}_0x1c0792=_0x1c0792[_0x34d7('0x3e')](_0x44b62d=>!(_0x44b62d[_0x34d7('0x60')]&&_0x44b62d[_0x34d7('0x11e')]));const _0x2f571a=new Map(_0x397331[_0x34d7('0x117')][_0x56c554][_0x34d7('0x2c')]['markers']),_0x6d6f75=new Set(_0x2b6450['keys']());for(const _0x415a8d of _0x2f571a['keys']())_0x6d6f75[_0x34d7('0x45')](_0x415a8d);this[_0x34d7('0x64')](_0x1c0792,_0x6d6f75),this['_fixObsoleteTags'](_0x1c0792),_0x1c0792=this[_0x34d7('0x40')](_0x1c0792),_0x1c0792=this[_0x34d7('0x25')](_0x1c0792),_0x1c0792=this[_0x34d7('0xc9')](_0x1c0792);const {root:_0x2ea1e3,changes:_0x19a78c}=this['_makeModelFromTape'](_0x1c0792,_0x31065e,_0x56c554);_0x2df7c0['model'][_0x56c554]=_0x2ea1e3;const _0x12ac98=_0x3f99e4['get'](_0x56c554);if(_0x12ac98){const _0x4fce1a=_0x31065e[_0x34d7('0x9c')](_0x12ac98['userId']),_0x1da85b=new _0x3711f3({'author':_0x4fce1a,'type':_0x12ac98[_0x34d7('0x9e')]?_0x34d7('0xde'):_0x34d7('0xf9'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x56c554});_0x19a78c[_0x34d7('0xa0')](_0x1da85b),_0x2df7c0['attributes'][_0x56c554][_0x34d7('0xac')]=_0x1da85b['id'];}_0x2df7c0['changes']=_0x2df7c0[_0x34d7('0xcd')][_0x34d7('0xf4')](_0x19a78c);}return _0x2df7c0;}[_0x34d7('0xbe')](_0x57631f,_0x33647d){for(let _0x1dfb3c=0x0;_0x1dfb3c<_0x57631f[_0x34d7('0x4f')];_0x1dfb3c++)for(const [_0x261ce0,_0x530e71]of _0x33647d)_0x530e71[_0x34d7('0x61')][_0x34d7('0xb5')](_0x57631f[_0x1dfb3c][_0x34d7('0x110')])&&_0x57631f[_0x1dfb3c]['markersStart'][_0x34d7('0xe8')](_0x261ce0),_0x530e71[_0x34d7('0x0')][_0x34d7('0xb5')](_0x57631f[_0x1dfb3c][_0x34d7('0x7f')])&&_0x57631f[_0x1dfb3c][_0x34d7('0xec')][_0x34d7('0xe8')](_0x261ce0);}[_0x34d7('0x48')](_0x5e06fa,_0x1b03fc){let _0x469da2=[],_0x4ea363=0x0,_0x4341ca=0x0;for(;_0x4ea363<_0x5e06fa[_0x34d7('0x4f')]||_0x4341ca<_0x1b03fc[_0x34d7('0x4f')];){const _0x26ec1a=_0x5e06fa[_0x4ea363]||{},_0x40388c=_0x1b03fc[_0x4341ca]||{};if(_0x26ec1a['id']==_0x40388c['id'])_0x4ea363++,_0x4341ca++,_0x469da2['push'](_0x26ec1a);else{if(_0x40388c['isRemoved']&&_0x26ec1a['isAdded']){const {commonTape:_0x5d4bce,iEnd:_0x433a6c,jEnd:_0x5a41bf}=this[_0x34d7('0xd9')](_0x5e06fa,_0x4ea363,_0x1b03fc,_0x4341ca);_0x469da2=_0x469da2[_0x34d7('0xf4')](_0x5d4bce),_0x4ea363=_0x433a6c,_0x4341ca=_0x5a41bf;}else _0x40388c[_0x34d7('0x11e')]?(_0x4341ca++,_0x469da2['push'](_0x40388c)):(_0x4ea363++,_0x469da2[_0x34d7('0xe8')](_0x26ec1a));}}return _0x469da2;}[_0x34d7('0x64')](_0x21fbda,_0x23ac63){const _0x535888=[];for(let _0xab92c8=0x0;_0xab92c8<_0x21fbda[_0x34d7('0x4f')];_0xab92c8++){for(let _0x482337=0x0;_0x482337<_0x21fbda[_0xab92c8]['markersStart'][_0x34d7('0x4f')];_0x482337++){const _0x14aea4=_0x21fbda[_0xab92c8][_0x34d7('0x2b')][_0x482337];if(!_0x23ac63[_0x34d7('0xb3')](_0x14aea4))continue;const {group:_0x2993af,type:_0x14bf3f,authorId:_0x31c473}=_0x104621(_0x14aea4);_0x34d7('0xcb')!=_0x2993af||_0x34d7('0xab')!=_0x14bf3f&&'deletion'!=_0x14bf3f||(_0x535888['unshift']({'type':_0x14bf3f,'name':_0x14aea4,'userId':_0x31c473}),_0x21fbda[_0xab92c8][_0x34d7('0x2b')][_0x34d7('0x121')](_0x482337,0x1),_0x482337--);}_0x38a3d6(_0x21fbda[_0xab92c8]);for(let _0xb18c05=0x0;_0xb18c05<_0x21fbda[_0xab92c8][_0x34d7('0xec')]['length'];_0xb18c05++){const _0x31fa49=_0x21fbda[_0xab92c8][_0x34d7('0xec')][_0xb18c05];if(!_0x23ac63[_0x34d7('0xb3')](_0x31fa49))continue;const {group:_0x1c113e,type:_0x57d435}=_0x104621(_0x31fa49);if(_0x34d7('0xcb')!=_0x1c113e||_0x34d7('0xab')!=_0x57d435&&_0x34d7('0x38')!=_0x57d435)continue;_0x21fbda[_0xab92c8][_0x34d7('0xec')][_0x34d7('0x121')](_0xb18c05,0x1),_0xb18c05--;const _0x3cda9d=_0x535888['findIndex'](_0xc630d8=>_0xc630d8[_0x34d7('0xbc')]==_0x31fa49);_0x3cda9d>-0x1&&_0x535888[_0x34d7('0x121')](_0x3cda9d,0x1);}}function _0x104621(_0x315085){const _0x62ef30=_0x315085[_0x34d7('0x98')](':');return{'group':_0x62ef30[0x0],'type':_0x62ef30[0x1],'subType':_0x62ef30[_0x34d7('0x4f')]>=0x5?_0x62ef30[0x2]:null,'id':_0x62ef30[_0x34d7('0x4f')]<0x5?_0x62ef30[0x2]:_0x62ef30[0x3],'authorId':_0x62ef30[_0x34d7('0x4f')]<0x5?_0x62ef30[0x3]:_0x62ef30[0x4],'markerCount':0x6==_0x62ef30[_0x34d7('0x4f')]?_0x62ef30[0x5]:null};}function _0x38a3d6(_0x32a638){for(let _0x316543=0x0;_0x316543<_0x535888[_0x34d7('0x4f')];_0x316543++){if(_0x32a638[_0x34d7('0x60')]&&'insertion'==_0x535888[_0x316543][_0x34d7('0x27')])return _0x32a638['isAddSuggestion']=_0x535888[_0x316543],void delete _0x32a638[_0x34d7('0x60')];if(!_0x32a638['isAdded']&&!_0x32a638[_0x34d7('0x11e')]&&_0x34d7('0x38')==_0x535888[_0x316543][_0x34d7('0x27')])return void(_0x32a638[_0x34d7('0x6e')]=_0x535888[_0x316543]);}}}[_0x34d7('0x26')](_0x3b6bd2,_0x313337){let _0x1d8689=0x0,_0xdb3d86=!0x1;const _0xf9e3b5=new Map();for(const _0x2e3bf9 of _0x3b6bd2)_0x2e3bf9[_0x313337]?_0xdb3d86&&(_0x1d8689++,_0xdb3d86=!0x1):(_0x1d8689++,_0xdb3d86=!0x0),_0xf9e3b5['set'](_0x2e3bf9['id'],_0x1d8689);for(let _0x402c34=0x0;_0x402c34<_0x3b6bd2['length'];_0x402c34++){if('isRemoved'==_0x313337&&_0x3b6bd2[_0x402c34][_0x34d7('0x60')]||'isAdded'==_0x313337&&_0x3b6bd2[_0x402c34]['isRemoved'])continue;if(_0x34d7('0xed')==_0x3b6bd2[_0x402c34][_0x34d7('0x27')]){_0x3b6bd2[_0x402c34][_0x34d7('0x3c')]=0x0;continue;}const _0x3a6066=_0xf9e3b5[_0x34d7('0x9c')](_0x3b6bd2[_0x402c34][_0x34d7('0x8f')]),_0x5a0e11=_0xf9e3b5[_0x34d7('0x9c')](_0x3b6bd2[_0x402c34]['id']);_0x3b6bd2[_0x402c34][_0x34d7('0x3c')]=_0x3a6066-_0x5a0e11;}}[_0x34d7('0xd2')](_0x4b73cc,_0x313f87,_0x4af29a=!0x1){const _0x1a8338=[];let _0x1453f4=this[_0x34d7('0x21')][_0x34d7('0x42')](_0x4b73cc),_0x49e202=this[_0x34d7('0x21')][_0x34d7('0x42')](_0x313f87);for(-0x1==_0x49e202&&(_0x49e202=this[_0x34d7('0x21')][_0x34d7('0xa8')][_0x34d7('0x4f')],_0x4af29a=!0x1);_0x1453f4<_0x49e202;)_0x1a8338[_0x34d7('0xe8')](this[_0x34d7('0x21')][_0x34d7('0x92')](_0x1453f4)),_0x1453f4++;return _0x4af29a&&_0x1a8338[_0x34d7('0xe8')](this[_0x34d7('0x21')][_0x34d7('0x92')](_0x1453f4)),_0x1a8338;}[_0x34d7('0xd9')](_0xcdbbbf,_0x3555b9,_0x4e93c5,_0x531646){const _0x5d87b2=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x114')];let _0x2b313a=_0x3555b9;for(;_0xcdbbbf[_0x2b313a]&&_0xcdbbbf[_0x2b313a][_0x34d7('0x60')];)_0x2b313a++;let _0x12f83a=_0x531646;for(;_0x4e93c5[_0x12f83a]&&_0x4e93c5[_0x12f83a][_0x34d7('0x11e')];)_0x12f83a++;_0x25316b(_0xcdbbbf,_0x3555b9,_0x2b313a),_0x25316b(_0x4e93c5,_0x531646,_0x12f83a);const _0x38dd49=_0x4e93c5['slice'](_0x531646,_0x12f83a)[_0x34d7('0xf4')](_0xcdbbbf[_0x34d7('0x78')](_0x3555b9,_0x2b313a));return _0x38dd49[_0x34d7('0xe7')]((_0x183bdf,_0x4ba62c)=>_0x183bdf['side']!=_0x4ba62c[_0x34d7('0x82')]?_0x183bdf[_0x34d7('0x82')]-_0x4ba62c['side']:_0x183bdf[_0x34d7('0xf0')]!=_0x4ba62c['level']?_0x183bdf[_0x34d7('0xf0')]-_0x4ba62c['level']:_0x183bdf['distance']!=_0x4ba62c[_0x34d7('0x3c')]?_0x4ba62c['distance']-_0x183bdf['distance']:!!_0x183bdf['isAdded']!=!!_0x4ba62c['isAdded']?-0x1==_0x183bdf['side']||0x0==_0x183bdf[_0x34d7('0x82')]?_0x183bdf['isAdded']?-0x1:0x1:_0x183bdf['isAdded']?0x1:-0x1:_0x183bdf[_0x34d7('0x109')]-_0x4ba62c['index']),{'commonTape':_0x38dd49,'iEnd':_0x2b313a,'jEnd':_0x12f83a};function _0x25316b(_0x4d0fa7,_0x1cf65f,_0x249a26){let _0x3ae440=-0x1,_0x98173e=Number[_0x34d7('0xef')],_0x13b58f=!0x0;for(let _0x103a25=_0x1cf65f;_0x103a25<_0x249a26;_0x103a25++)if(_0x5d87b2[_0x34d7('0x63')](_0x4d0fa7[_0x103a25][_0x34d7('0x8c')])||(_0x13b58f=!0x1),_0x4d0fa7[_0x103a25][_0x34d7('0x8c')]['startIndex']<_0x1cf65f&&(_0x3ae440=_0x103a25),_0x4d0fa7[_0x103a25][_0x34d7('0x8c')][_0x34d7('0x3b')]>=_0x249a26){_0x98173e=_0x103a25;break;}_0x13b58f&&(_0x3ae440=_0x249a26-0x1);for(let _0x96b8c0=_0x1cf65f;_0x96b8c0<_0x249a26;_0x96b8c0++)_0x4d0fa7[_0x96b8c0][_0x34d7('0x82')]=_0x96b8c0<=_0x3ae440?-0x1:_0x96b8c0<_0x98173e?0x0:0x1,_0x4d0fa7[_0x96b8c0]['index']=_0x96b8c0;let _0x5471fe=0x0;for(let _0x159dcb=_0x1cf65f;_0x159dcb<=_0x3ae440;_0x159dcb++)0x0==_0x4d0fa7[_0x159dcb][_0x34d7('0x3c')]?_0x4d0fa7[_0x159dcb][_0x34d7('0xf0')]=_0x5471fe:(_0x5471fe++,_0x4d0fa7[_0x159dcb][_0x34d7('0xf0')]=_0x5471fe,_0x5471fe++);for(let _0x84fd0b=_0x1cf65f;_0x84fd0b<_0x249a26;_0x84fd0b++)0x0==_0x4d0fa7[_0x84fd0b][_0x34d7('0x82')]&&(_0x4d0fa7[_0x84fd0b]['level']=_0x5471fe);_0x5471fe=0x0;for(let _0x400f2c=_0x249a26-0x1;_0x400f2c>=_0x98173e;_0x400f2c--)0x0==_0x4d0fa7[_0x400f2c][_0x34d7('0x3c')]?_0x4d0fa7[_0x400f2c]['level']=_0x5471fe:(_0x5471fe--,_0x4d0fa7[_0x400f2c][_0x34d7('0xf0')]=_0x5471fe,_0x5471fe--);}}['_fixObsoleteTags'](_0x56927d){const _0x2f2c55=new Map(),_0x5e7e26=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x114')];for(let _0x5040d7=0x1;_0x5040d7<_0x56927d[_0x34d7('0x4f')];_0x5040d7++){let _0x2e349f,_0x21f7bd,_0xa0e4e;const _0x16b764=_0x56927d[_0x5040d7],_0x251a14=_0x56927d[_0x5040d7-0x1];if(_0x34d7('0xed')==_0x16b764[_0x34d7('0x27')])continue;if(_0x16b764[_0x34d7('0x27')]!=_0x251a14['type'])continue;if(!_0x5e7e26[_0x34d7('0xeb')](_0x251a14[_0x34d7('0x8c')])||_0x5e7e26[_0x34d7('0x7c')](_0x251a14[_0x34d7('0x8c')]))continue;if(!_0x5e7e26[_0x34d7('0xeb')](_0x16b764[_0x34d7('0x8c')])||_0x5e7e26[_0x34d7('0x7c')](_0x16b764[_0x34d7('0x8c')]))continue;if((_0x56927d[_0x5040d7][_0x34d7('0x60')]||_0x56927d[_0x5040d7][_0x34d7('0x118')])&&_0x56927d[_0x5040d7-0x1]['isRemoved'])_0x2e349f=_0x56927d[_0x5040d7],_0x21f7bd=_0x56927d[_0x5040d7-0x1],_0xa0e4e=_0x5040d7-0x1;else{if(!_0x56927d[_0x5040d7]['isRemoved']||!_0x56927d[_0x5040d7-0x1][_0x34d7('0x60')]&&!_0x56927d[_0x5040d7-0x1][_0x34d7('0x118')])continue;_0x2e349f=_0x56927d[_0x5040d7-0x1],_0x21f7bd=_0x56927d[_0x5040d7],_0xa0e4e=_0x5040d7;}const _0x4bded6=_0x2e349f[_0x34d7('0xf0')]==_0x21f7bd['level'],_0x5c35d8=Math[_0x34d7('0xb2')](_0x2e349f[_0x34d7('0xf0')])<Math[_0x34d7('0xb2')](_0x21f7bd[_0x34d7('0xf0')])&&0x0==_0x21f7bd[_0x34d7('0x3c')];(_0x4bded6||_0x5c35d8)&&(_0x2f2c55[_0x34d7('0x52')](_0x21f7bd['id'],_0x2e349f['id']),_0x56927d['splice'](_0xa0e4e,0x1),_0x5040d7--,_0x2e349f['isAdded']=!0x1);}for(let _0x42a86c=0x0;_0x42a86c<_0x56927d[_0x34d7('0x4f')];_0x42a86c++)_0x2f2c55['has'](_0x56927d[_0x42a86c][_0x34d7('0x8f')])&&(_0x56927d[_0x42a86c][_0x34d7('0x8f')]=_0x2f2c55['get'](_0x56927d[_0x42a86c]['pairId']));}['_removeMissingPairs'](_0x3fcee3){const _0x40e5ad=new Set(_0x3fcee3[_0x34d7('0x50')](_0x486700=>_0x486700['id']));for(let _0x391f5e=0x0;_0x391f5e<_0x3fcee3[_0x34d7('0x4f')];_0x391f5e++)_0x40e5ad[_0x34d7('0xb3')](_0x3fcee3[_0x391f5e]['pairId'])||0x0==_0x3fcee3[_0x391f5e][_0x34d7('0x3c')]||(_0x3fcee3[_0x391f5e][_0x34d7('0x3f')]=!0x0);return _0x3fcee3[_0x34d7('0x3e')](_0x3810fa=>!_0x3810fa[_0x34d7('0x3f')]);}[_0x34d7('0x25')](_0x53cfc6){const _0x242b01=new Set();for(let _0x50d897=0x0;_0x50d897<_0x53cfc6['length'];_0x50d897++){if(_0x242b01['has'](_0x53cfc6[_0x50d897]['id'])&&_0x53cfc6[_0x50d897][_0x34d7('0x11e')]&&(_0x53cfc6[_0x50d897][_0x34d7('0x3f')]=!0x0),_0x53cfc6[_0x50d897][_0x34d7('0x3f')])continue;if(0x0==_0x53cfc6[_0x50d897][_0x34d7('0x3c')])continue;if('elementStart'!=_0x53cfc6[_0x50d897][_0x34d7('0x27')])continue;if(null==_0x53cfc6[_0x50d897][_0x34d7('0x8f')])continue;let _0xc63829=_0x50d897+0x1,_0x5232fd=0x0;for(;_0x53cfc6[_0xc63829]['id']!=_0x53cfc6[_0x50d897][_0x34d7('0x8f')];)_0x34d7('0x99')==_0x53cfc6[_0xc63829][_0x34d7('0x27')]?_0x5232fd++:_0x34d7('0x111')==_0x53cfc6[_0xc63829]['type']&&_0x5232fd--,_0xc63829++;if(0x0!=_0x5232fd){if(_0x53cfc6[_0x50d897][_0x34d7('0x11e')])_0x53cfc6[_0x50d897][_0x34d7('0x3f')]=!0x0;else for(;_0xc63829!=_0x50d897;)_0x53cfc6[_0xc63829][_0x34d7('0x11e')]&&0x0!=_0x53cfc6[_0xc63829][_0x34d7('0x3c')]&&(_0x53cfc6[_0xc63829][_0x34d7('0x3f')]=!0x0,_0x242b01[_0x34d7('0xde')](_0x53cfc6[_0xc63829][_0x34d7('0x8f')])),_0xc63829--;}}return _0x53cfc6[_0x34d7('0x3e')](_0x47f79f=>!_0x47f79f[_0x34d7('0x3f')]);}[_0x34d7('0xc9')](_0x23fa24){const _0x5a19fb=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x114')];for(let _0x389fa2=0x0;_0x389fa2<_0x23fa24[_0x34d7('0x4f')];_0x389fa2++){if(!(_0x23fa24[_0x389fa2][_0x34d7('0x60')]||_0x23fa24[_0x389fa2][_0x34d7('0x118')]||_0x23fa24[_0x389fa2]['isRemoved']||_0x23fa24[_0x389fa2]['isRemoveSuggestion']))continue;if(0x0==_0x23fa24[_0x389fa2][_0x34d7('0x3c')])continue;const _0x36bb2e=_0x23fa24[_0x389fa2]['item'];_0x5a19fb[_0x34d7('0xeb')](_0x36bb2e)||_0x5a19fb[_0x34d7('0x7c')](_0x36bb2e)||(_0x23fa24[_0x389fa2][_0x34d7('0x60')]&&delete _0x23fa24[_0x389fa2]['isAdded'],_0x23fa24[_0x389fa2][_0x34d7('0x118')]&&delete _0x23fa24[_0x389fa2][_0x34d7('0x118')],_0x23fa24[_0x389fa2][_0x34d7('0x6e')]&&delete _0x23fa24[_0x389fa2][_0x34d7('0x6e')],_0x23fa24[_0x389fa2][_0x34d7('0x11e')]&&(_0x23fa24[_0x389fa2][_0x34d7('0x3f')]=!0x0));}return _0x23fa24['filter'](_0x2d8413=>!_0x2d8413[_0x34d7('0x3f')]);}['_makeModelFromTape'](_0x1484fc,_0x926afd,_0x3ddfe9){const _0x105e5e=new _0x2914f6(),_0x53da04=[],_0x528879=new Map(),_0x30144c=this['editor'][_0x34d7('0x117')],_0x5a4131=_0x30144c[_0x34d7('0x114')],_0x310495=[_0x105e5e],_0x4ebd2a={},_0x15acd5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4ac2a2=null;const _0x4198ec=[0x0];for(let _0x1b4aa0=0x0;_0x1b4aa0<_0x1484fc[_0x34d7('0x4f')];_0x1b4aa0++){let _0x18247c,_0x3abe6a;if(_0x34d7('0x99')===_0x1484fc[_0x1b4aa0][_0x34d7('0x27')]){_0x18247c=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec);const _0x5a6334=new _0xa820f6(_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')][_0x34d7('0xbc')],_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')][_0x34d7('0x49')]());_0x310495[0x0][_0x34d7('0xbf')](_0x5a6334),_0x4198ec['push'](0x0),_0x310495['unshift'](_0x5a6334),_0x3abe6a=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec),_0x4ac2a2=null;}else{if(_0x34d7('0x111')===_0x1484fc[_0x1b4aa0]['type'])_0x310495[_0x34d7('0x43')](),_0x18247c=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec),_0x4198ec['pop'](),_0x4198ec[_0x4198ec[_0x34d7('0x4f')]-0x1]++,_0x3abe6a=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec),_0x4ac2a2=null;else{if(_0x18247c=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec),_0x4ac2a2&&_0x5d66f4(_0x4ac2a2,_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')]))_0x4ac2a2[_0x34d7('0xd7')]+=_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')][_0x34d7('0x105')];else{const _0x2df433=new _0x2170a2(_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')][_0x34d7('0x105')],_0x1484fc[_0x1b4aa0]['item'][_0x34d7('0x49')]());_0x310495[0x0][_0x34d7('0xbf')](_0x2df433),_0x4ac2a2=_0x2df433;}_0x4198ec[_0x4198ec[_0x34d7('0x4f')]-0x1]+=_0x1484fc[_0x1b4aa0][_0x34d7('0x8c')][_0x34d7('0x115')],_0x3abe6a=_0x30144c[_0x34d7('0x2')](_0x105e5e,_0x4198ec);}}for(const _0xdfb398 of _0x1484fc[_0x1b4aa0]['markersStart'])_0x528879[_0x34d7('0x52')](_0xdfb398,{'start':_0x18247c,'end':null});_0x2fc98b('isRemoveSuggestion',_0x1b4aa0,_0x18247c,_0x3abe6a),_0x2fc98b(_0x34d7('0x118'),_0x1b4aa0,_0x18247c,_0x3abe6a),_0x2fc98b(_0x34d7('0x11e'),_0x1b4aa0,_0x18247c,_0x3abe6a),_0x2fc98b('isAdded',_0x1b4aa0,_0x18247c,_0x3abe6a);for(const _0x4c8bc1 of _0x1484fc[_0x1b4aa0][_0x34d7('0xec')]){_0x528879['get'](_0x4c8bc1)['end']=_0x3abe6a;}}for(const [_0x38f0ee,_0x5de539]of _0x528879){const _0x5d2ada=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x74')](_0x5de539[_0x34d7('0x61')],_0x5de539[_0x34d7('0x0')]);_0x105e5e[_0x34d7('0x2a')][_0x34d7('0x52')](_0x38f0ee,_0x5d2ada);}return _0x53da04[_0x34d7('0xe7')]((_0x2f955b,_0xe92bf3)=>{const _0x535713=_0x105e5e[_0x34d7('0x2a')][_0x34d7('0x9c')]('revision:'+_0x2f955b['id']),_0x282510=_0x105e5e[_0x34d7('0x2a')][_0x34d7('0x9c')](_0x34d7('0xb')+_0xe92bf3['id']);return _0x535713[_0x34d7('0x61')][_0x34d7('0x73')](_0x282510[_0x34d7('0x61')])?-0x1:_0x535713['start'][_0x34d7('0x24')](_0x282510[_0x34d7('0x61')])?0x1:_0x535713['end'][_0x34d7('0x73')](_0x282510[_0x34d7('0x0')])?-0x1:_0x535713[_0x34d7('0x0')][_0x34d7('0x24')](_0x282510['end'])?0x1:_0x34d7('0xde')===_0x2f955b[_0x34d7('0x27')]?-0x1:0x1;}),{'root':_0x105e5e,'changes':_0x53da04};function _0x2fc98b(_0x5025c3,_0x189e08,_0x3c230c,_0x2a4282){const _0x2df924=!!_0x1484fc[_0x189e08][_0x5025c3],_0x294c02=_0x2df924?_0x1484fc[_0x189e08][_0x5025c3][_0x34d7('0x2d')]:null,_0x1a718c=_0x189e08===_0x1484fc[_0x34d7('0x4f')]-0x1,_0x3b8a0e=_0x15acd5[_0x5025c3][0x0],_0x316aaa=_0x5a4131[_0x34d7('0xc1')](_0x1484fc[_0x189e08][_0x34d7('0x8c')]);!_0x4ebd2a[_0x5025c3]&&_0x2df924?_0x4ebd2a[_0x5025c3]={'start':_0x3c230c,'tapeItem':_0x1484fc[_0x189e08],'userId':_0x294c02,'type':_0x5025c3}:_0x4ebd2a[_0x5025c3]&&!_0x2df924?(_0x4ebd2a[_0x5025c3]['end']=_0x3c230c,_0x3378c8(_0x4ebd2a[_0x5025c3]),_0x4ebd2a[_0x5025c3]=null):_0x4ebd2a[_0x5025c3]&&_0x2df924&&_0x4ebd2a[_0x5025c3]['userId']!==_0x294c02&&(_0x4ebd2a[_0x5025c3][_0x34d7('0x0')]=_0x3c230c,_0x3b8a0e&&_0x3b8a0e['userId']===_0x4ebd2a[_0x5025c3][_0x34d7('0x2d')]||_0x3378c8(_0x4ebd2a[_0x5025c3]),_0x4ebd2a[_0x5025c3]={'start':_0x3c230c,'tapeItem':_0x1484fc[_0x189e08],'userId':_0x294c02,'type':_0x5025c3}),_0x4ebd2a[_0x5025c3]&&_0x316aaa&&(_0x34d7('0x99')!==_0x1484fc[_0x189e08]['type']||_0x3b8a0e&&_0x3b8a0e[_0x34d7('0x2d')]===_0x294c02||_0x15acd5[_0x5025c3][_0x34d7('0xa0')]({'userId':_0x294c02,'object':_0x1484fc[_0x189e08]['item'],'change':_0x4ebd2a[_0x5025c3]}),'elementEnd'===_0x1484fc[_0x189e08][_0x34d7('0x27')]&&_0x3b8a0e&&_0x3b8a0e[_0x34d7('0x3')]===_0x1484fc[_0x189e08][_0x34d7('0x8c')]&&(_0x15acd5[_0x5025c3][_0x34d7('0x43')](),_0x4ebd2a[_0x5025c3]=_0x3b8a0e['change'])),_0x4ebd2a[_0x5025c3]&&_0x1a718c&&(_0x4ebd2a[_0x5025c3][_0x34d7('0x0')]=_0x2a4282,_0x3378c8(_0x4ebd2a[_0x5025c3]),_0x4ebd2a[_0x5025c3]=null);}function _0x3378c8({start:_0x3da0ce,end:_0x378f23,tapeItem:_0x436a63,userId:_0x19b838,type:_0x9c70e1}){const _0x45b76c=_0x436a63[_0x34d7('0x8c')],_0x68af0e=_0x30144c[_0x34d7('0x114')][_0x34d7('0xeb')](_0x45b76c)&&!_0x30144c[_0x34d7('0x114')][_0x34d7('0x7c')](_0x45b76c),_0xf08451=_0x3da0ce[_0x34d7('0xcc')]==_0x378f23[_0x34d7('0x83')]&&_0x378f23[_0x34d7('0x1a')];if(_0x68af0e&&_0xf08451)return;const _0x28d3ad=_0x30144c['createRange'](_0x3da0ce,_0x378f23),_0x1d61ec=_0x926afd['get'](_0x19b838),_0xf756be=new _0x3711f3({'author':_0x1d61ec,'type':_0x34d7('0x60')==_0x9c70e1||_0x34d7('0x118')==_0x9c70e1?_0x34d7('0xde'):_0x34d7('0xf9'),'data':{'isSuggestion':_0x34d7('0x118')==_0x9c70e1||'isRemoveSuggestion'==_0x9c70e1},'createdAt':new Date(),'rootName':_0x3ddfe9});_0x53da04[_0x34d7('0xe8')](_0xf756be),_0x105e5e[_0x34d7('0x2a')][_0x34d7('0x52')]('revision:'+_0xf756be['id'],_0x28d3ad);}function _0x5d66f4(_0x50fb66,_0xcc1622){const _0x3b1694=_0x50fb66['getAttributes'](),_0x589dea=_0xcc1622[_0x34d7('0x49')]();for(const _0x50717c of _0x3b1694){if(_0x50717c[0x1]!==_0xcc1622[_0x34d7('0xf8')](_0x50717c[0x0]))return!0x1;_0x589dea[_0x34d7('0x8b')]();}return _0x589dea[_0x34d7('0x8b')]()[_0x34d7('0xdf')];}}[_0x34d7('0x7a')](){this[_0x34d7('0xa7')][_0x34d7('0xb0')]['for'](_0x34d7('0xca'))[_0x34d7('0xe6')]({'view':'revision'}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')](_0x34d7('0x1'))[_0x34d7('0x58')]({'model':_0x34d7('0x94'),'view':_0x28282d=>{const _0x32d194=_0x28282d['markerName'][_0x34d7('0x98')](':')[0x1],_0x3d8740=this[_0x34d7('0x89')](_0x32d194);if(!_0x3d8740)return null;const _0x229fc9='add'==_0x3d8740[_0x34d7('0x27')]?'insertion':_0x34d7('0x38'),_0x1f2b80=['ck-suggestion-marker',_0x34d7('0xd8')+_0x229fc9];return _0x3d8740[_0x34d7('0x105')][_0x34d7('0x9d')]&&_0x1f2b80['push']('ck-suggestion-marker-'+_0x229fc9+_0x34d7('0x8d')),this[_0x34d7('0xe1')]==_0x3d8740&&_0x1f2b80[_0x34d7('0xe8')](_0x34d7('0x10d')),{'classes':_0x1f2b80,'attributes':{'data-change-id':_0x32d194}};}}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')](_0x34d7('0xca'))[_0x34d7('0xde')](_0x4c454b=>{_0x4c454b['on'](_0x34d7('0x93'),(_0x2614ed,_0x141c0b,_0x3bd3e7)=>{const _0x13b0e0=_0x141c0b[_0x34d7('0x46')][_0x34d7('0xee')](0x0);if(!_0x13b0e0||!_0x13b0e0['is'](_0x34d7('0xae'),_0x34d7('0xba')))return;if(!_0x3bd3e7[_0x34d7('0x9b')][_0x34d7('0x11')](_0x13b0e0,{'attributes':[_0x34d7('0x65'),_0x34d7('0xc8')]}))return;const _0x400fba=_0x141c0b[_0x34d7('0x10a')]['start'][_0x34d7('0xcc')];_0x3bd3e7['writer'][_0x34d7('0x4b')](_0x34d7('0x65'),_0x13b0e0[_0x34d7('0xf8')](_0x34d7('0x65')),_0x400fba),_0x3bd3e7[_0x34d7('0x6d')][_0x34d7('0x4b')](_0x34d7('0xc8'),_0x13b0e0[_0x34d7('0xf8')](_0x34d7('0xc8')),_0x400fba);},{'priority':_0x34d7('0x35')});}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')]('upcast')[_0x34d7('0xde')](_0x4a0451=>{_0x4a0451['on'](_0x34d7('0xae'),(_0x1f1541,_0x2ec2ca,_0x293043)=>{if(!_0x293043[_0x34d7('0x9b')][_0x34d7('0x11')](_0x2ec2ca[_0x34d7('0x46')],{'attributes':[_0x34d7('0x65'),_0x34d7('0xc8')]}))return;if(_0x2ec2ca[_0x34d7('0x10a')]['isCollapsed'])return;const _0x412238=_0x2ec2ca[_0x34d7('0x10a')][_0x34d7('0x61')]['nodeAfter'];_0x412238['hasAttribute'](_0x34d7('0x65'))||_0x412238[_0x34d7('0x22')](_0x34d7('0x84'))||(_0x293043[_0x34d7('0x6d')][_0x34d7('0x4b')](_0x34d7('0x65'),_0x2ec2ca[_0x34d7('0x46')]['getAttribute']('vid_start'),_0x412238),_0x293043[_0x34d7('0x6d')]['setAttribute']('vid_end',_0x2ec2ca['viewItem'][_0x34d7('0xf8')]('vid_end'),_0x412238));},{'priority':'low'});}),this[_0x34d7('0xa7')]['conversion'][_0x34d7('0xbb')](_0x34d7('0xca'))['elementToAttribute']({'view':{'name':_0x34d7('0xad'),'attributes':{'vid':!0x0}},'model':{'key':_0x34d7('0x84'),'value':_0x9e65ea=>_0x9e65ea['getAttribute'](_0x34d7('0x84'))}}),this['editor'][_0x34d7('0x117')][_0x34d7('0x114')]['on'](_0x34d7('0xa9'),(_0x3c2c38,[,_0x262883])=>{[_0x34d7('0x65'),'vid_end',_0x34d7('0x84')][_0x34d7('0x6')](_0x262883)&&(_0x3c2c38[_0x34d7('0x101')]=!0x0,_0x3c2c38[_0x34d7('0x2f')]());},{'priority':_0x34d7('0x102')}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')](_0x34d7('0x88'))[_0x34d7('0xde')](_0x550e31=>{_0x550e31['on']('attribute:vid',(_0x461bf9,_0x3fdf34,_0x8713b6)=>{if('\x20'!=_0x3fdf34['item'][_0x34d7('0x105')]||_0x3fdf34[_0x34d7('0x8c')][_0x34d7('0x83')][_0x34d7('0x1d')]>0x1)return;if(!_0x8713b6[_0x34d7('0x9b')]['consume'](_0x3fdf34[_0x34d7('0x8c')],_0x461bf9['name']))return;const _0x4e5a8d=_0x8713b6[_0x34d7('0x6d')],_0x2cd4fe=_0x8713b6[_0x34d7('0xbd')][_0x34d7('0x10c')](_0x3fdf34['range']);_0x4e5a8d[_0x34d7('0xb9')](_0x2cd4fe,_0x4e5a8d[_0x34d7('0x86')]('span'));});}),this[_0x34d7('0xa7')]['conversion'][_0x34d7('0xbb')](_0x34d7('0x88'))[_0x34d7('0x1f')]({'model':'revision'}),this['editor']['editing'][_0x34d7('0x11a')]['on'](_0x34d7('0xa5'),function(_0x60d737){const _0x1dd6cd=_0x60d737[_0x34d7('0xd')][_0x34d7('0x9c')](_0x34d7('0x4e'));return(_0x3e1cbc,_0x2ef820,_0x20c04e)=>{const _0x43ba25=_0x2ef820['markerName'][_0x34d7('0x98')](':')[0x1],_0x280a78=_0x1dd6cd[_0x34d7('0x89')](_0x43ba25);if(!_0x280a78)return null;const _0xdc6ea4=_0x34d7('0xde')==_0x280a78[_0x34d7('0x27')]?'split':_0x34d7('0xe9');if(!_0x20c04e[_0x34d7('0x9b')][_0x34d7('0xe')](_0x2ef820[_0x34d7('0x6f')],_0x3e1cbc['name']))return;const _0x1a2c5b=_0x2ef820[_0x34d7('0x6f')][_0x34d7('0x11d')](),_0x344ac3=_0x2ef820[_0x34d7('0x6f')][_0x34d7('0x61')],_0x4d708c=_0x60d737['model'][_0x34d7('0x114')];let _0x52b7a4=null,_0x187c61=null,_0x124567=!0x1,_0x4bb77c=!0x1;for(const _0xf6db84 of _0x1a2c5b){const _0x4c81cf=_0xf6db84[_0x34d7('0x8c')];_0x124567=_0x124567||_0x4d708c[_0x34d7('0xc5')](_0x4c81cf);const _0x1f9591=_0x20c04e[_0x34d7('0xbd')][_0x34d7('0x28')](_0x4c81cf);if(_0x1f9591&&_0x1f9591[_0x34d7('0xda')]('addHighlight'))return;_0x34d7('0x111')==_0xf6db84['type']&&(_0x4d708c[_0x34d7('0xeb')](_0x4c81cf)&&!_0x4d708c[_0x34d7('0x7c')](_0x4c81cf)&&(_0x4c81cf[_0x34d7('0x18')]||_0x344ac3[_0x34d7('0xc3')]?_0x52b7a4&&_0x52b7a4[_0x34d7('0x83')]==_0x4c81cf||(_0x52b7a4=_0x4c81cf,_0x163dd8(_0xf6db84[_0x34d7('0x110')]),_0x4bb77c=!0x0):_0x187c61=_0x187c61||_0xf6db84['previousPosition']));}function _0x163dd8(_0x707c4a){const _0x1fd55f=_0x20c04e['writer'][_0x34d7('0xa6')](_0x34d7('0xad'),{'class':_0x34d7('0xd8')+_0xdc6ea4}),_0x14171f=_0x20c04e[_0x34d7('0xbd')][_0x34d7('0x56')](_0x707c4a);_0x280a78['data'][_0x34d7('0x9d')]&&_0x20c04e[_0x34d7('0x6d')]['addClass'](_0x34d7('0xd8')+_0xdc6ea4+_0x34d7('0x8d'),_0x1fd55f),_0x1dd6cd[_0x34d7('0xe1')]==_0x280a78&&_0x20c04e[_0x34d7('0x6d')][_0x34d7('0x12')](_0x34d7('0x10d'),_0x1fd55f),_0x20c04e[_0x34d7('0x6d')][_0x34d7('0x72')](_0x14171f,_0x1fd55f),_0x20c04e[_0x34d7('0xbd')][_0x34d7('0x59')](_0x1fd55f,_0x2ef820[_0x34d7('0xd6')]);}_0x124567||_0x4bb77c||!_0x187c61||_0x163dd8(_0x187c61);};}(this[_0x34d7('0xa7')]),{'priority':'high'}),this[_0x34d7('0xa7')]['editing'][_0x34d7('0x11a')]['on']('removeMarker:revision',(_0x41a78f,_0x1aa3cb,_0x7ae9eb)=>{const _0x7a216b=_0x7ae9eb[_0x34d7('0xbd')][_0x34d7('0x85')](_0x1aa3cb['markerName']);if(_0x7a216b)for(const _0x5357fd of _0x7a216b)(_0x5357fd[_0x34d7('0x34')](_0x34d7('0x116'))||_0x5357fd[_0x34d7('0x34')](_0x34d7('0x112')))&&(_0x7ae9eb['mapper']['unbindElementFromMarkerName'](_0x5357fd,_0x1aa3cb[_0x34d7('0xd6')]),_0x7ae9eb[_0x34d7('0x6d')][_0x34d7('0xf9')](_0x5357fd));},{'priority':_0x34d7('0xd0')}),this['editor'][_0x34d7('0x3d')][_0x34d7('0x11a')]['on']('addMarker:revision',(_0x17e2f3,_0x16b05f,_0x9e6d2)=>{const _0x194a8e=_0x16b05f['markerName'][_0x34d7('0x98')](':')[0x1],_0x3143fd=this[_0x34d7('0x89')](_0x194a8e);if(!_0x3143fd)return null;const _0x508ca8=_0x34d7('0xde')==_0x3143fd['type']?_0x34d7('0x98'):_0x34d7('0xe9');if(_0x9e6d2[_0x34d7('0x9b')][_0x34d7('0xe')](_0x16b05f['markerRange'],_0x17e2f3[_0x34d7('0xbc')]))for(const _0x2c627e of _0x16b05f[_0x34d7('0x6f')][_0x34d7('0xaf')]()){if(!_0x2c627e['is']('element',_0x34d7('0x5c')))continue;const _0x449423=_0x9e6d2[_0x34d7('0x6d')]['createUIElement']('span',{'class':_0x34d7('0xd8')+_0x508ca8}),_0x38de5a=_0x9e6d2[_0x34d7('0xbd')][_0x34d7('0x56')](this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0xfb')](_0x2c627e));_0x3143fd['data'][_0x34d7('0x9d')]&&_0x9e6d2[_0x34d7('0x6d')][_0x34d7('0x12')](_0x34d7('0xd8')+_0x508ca8+'-new',_0x449423),this[_0x34d7('0xe1')]==_0x3143fd&&_0x9e6d2[_0x34d7('0x6d')][_0x34d7('0x12')]('ck-suggestion-marker--active',_0x449423),_0x9e6d2[_0x34d7('0x6d')]['insert'](_0x38de5a,_0x449423),_0x9e6d2[_0x34d7('0xbd')][_0x34d7('0x59')](_0x449423,_0x16b05f['markerName']);}},{'priority':_0x34d7('0xd0')}),this['editor'][_0x34d7('0x117')][_0x34d7('0x67')]['on'](_0x34d7('0xf2'),()=>{this['editor'][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0xf2')](_0x2b33ee=>{for(const _0x12866a of this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x67')][_0x34d7('0x107')]()){const _0x4dc015=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x67')][_0x34d7('0x51')](_0x12866a),_0x310239=this[_0x34d7('0xa7')][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0x67')][_0x34d7('0x51')](_0x12866a);if(_0x310239){const _0x5039cd=_0x4dc015['getAttribute'](_0x34d7('0xac'));if(_0x2b33ee['removeAttribute'](_0x34d7('0x10b'),_0x310239),_0x2b33ee[_0x34d7('0xa2')](_0x34d7('0xe2'),_0x310239),_0x2b33ee['removeClass'](_0x34d7('0x91'),_0x310239),_0x2b33ee['removeClass']('ck-revision-history-root--active',_0x310239),_0x5039cd){const _0x5d7e34=this['_getChangeFromId'](_0x5039cd);if(!_0x5d7e34)return null;_0x2b33ee['setAttribute']('data-change-id',_0x5039cd,_0x310239),_0x2b33ee[_0x34d7('0x12')]('ck-revision-history-root-'+_0x5d7e34[_0x34d7('0x27')],_0x310239),this['activeChange']==_0x5d7e34&&_0x2b33ee['addClass'](_0x34d7('0xfe'),_0x310239);}}}});}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')](_0x34d7('0xca'))['dataToMarker']({'view':_0x34d7('0xaa'),'model':_0x358af6=>_0x34d7('0x66')+_0x358af6,'converterPriority':_0x34d7('0x102')}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')]('upcast')[_0x34d7('0xe6')]({'view':_0x34d7('0x4d'),'model':_0x3f6bdd=>_0x34d7('0xe3')+_0x3f6bdd,'converterPriority':'highest'}),this['editor'][_0x34d7('0xb0')]['for'](_0x34d7('0x88'))['markerToData']({'model':_0x34d7('0xcb'),'view':_0x52d73e=>({'name':_0x34d7('0x8a')+_0x52d73e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this[_0x34d7('0xa7')][_0x34d7('0xb0')][_0x34d7('0xbb')](_0x34d7('0x1'))['markerToHighlight']({'model':_0x34d7('0xcb'),'view':_0x2ce227=>{const _0x2e7476=_0x2ce227[_0x34d7('0xd6')][_0x34d7('0x98')](':')[0x1];return'insertion'!=_0x2e7476&&_0x34d7('0x38')!=_0x2e7476?null:{'classes':[_0x34d7('0x23'),_0x34d7('0x5b')+_0x2e7476]};}}),this['editor'][_0x34d7('0x3d')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this['editor'],'merge'),{'priority':_0x34d7('0xd0')}),this[_0x34d7('0xa7')]['editing'][_0x34d7('0x11a')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x34d7('0xa7')],_0x34d7('0x98')),{'priority':_0x34d7('0xd0')}),this[_0x34d7('0xa7')][_0x34d7('0x3d')][_0x34d7('0x11a')]['on'](_0x34d7('0x41'),(_0x13c98f,_0x3d3ad3,_0x102e63)=>{const _0x5cc8c5=_0x102e63[_0x34d7('0xbd')][_0x34d7('0x85')](_0x3d3ad3[_0x34d7('0xd6')]);if(_0x5cc8c5)for(const _0x296b20 of _0x5cc8c5)_0x296b20['is'](_0x34d7('0xf5'))&&(_0x102e63[_0x34d7('0xbd')][_0x34d7('0x68')](_0x296b20,_0x3d3ad3[_0x34d7('0xd6')]),_0x102e63[_0x34d7('0x6d')][_0x34d7('0xf9')](_0x296b20));},{'priority':_0x34d7('0xd0')});}[_0x34d7('0x89')](_0x34e197){return this[_0x34d7('0xdd')][_0x34d7('0x9c')](_0x34e197);}[_0x34d7('0x10')](_0x5b2c16){return this[_0x34d7('0x9a')]&&this['_changeView'][_0x34d7('0x4a')](),this[_0x34d7('0x9a')]=new _0x21bbee(this[_0x34d7('0xa7')]['locale'],_0x5b2c16),this[_0x34d7('0x9a')];}[_0x34d7('0x87')](){this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x67')]['selection'][_0x34d7('0x19')](_0x34d7('0x94')),this['on']('change:activeView',(_0x41db45,_0xfb40a6,_0x34cd1a,_0x840b6c)=>{_0x840b6c&&this[_0x34d7('0xf6')]['remove'](_0x840b6c),_0x34cd1a&&(this[_0x34d7('0xf6')][_0x34d7('0xde')]({'view':_0x34cd1a,'stackId':_0x34d7('0x75'),'position':{'target':()=>{const _0x43bfce=this[_0x34d7('0xa7')][_0x34d7('0x3d')],_0x5f13af=this['_getChangeFromId'](_0x34cd1a[_0x34d7('0x44')]);let _0x3ca6e5;if(_0x5f13af[_0x34d7('0x105')]['isOnRoot']){const _0x38de5f=_0x43bfce[_0x34d7('0xf3')][_0x34d7('0xea')](_0x5f13af['rootName']);_0x3ca6e5=Array[_0x34d7('0x5d')](_0x38de5f[_0x34d7('0x6c')]());}else{const _0x3c36fc=this[_0x34d7('0xa7')][_0x34d7('0x117')][_0x34d7('0x2a')]['get'](_0x34d7('0xb')+_0x34cd1a[_0x34d7('0x44')]);_0x3ca6e5=Array[_0x34d7('0x5d')](_0x43bfce['mapper']['markerNameToElements'](_0x3c36fc[_0x34d7('0xbc')]))[_0x34d7('0x50')](_0x493b1c=>_0x43bfce[_0x34d7('0xf3')][_0x34d7('0x5f')][_0x34d7('0x6b')](_0x493b1c))['map'](_0x113037=>Array['from'](_0x113037[_0x34d7('0x6c')]()))[_0x34d7('0x53')]();}if(!this[_0x34d7('0x4')])return _0x3ca6e5[0x0];return _0x3ca6e5[_0x34d7('0x54')](_0x2f5f4f=>_0x2f5f4f[_0x34d7('0xb7')]-0x3<=this[_0x34d7('0x4')]['y']&&_0x2f5f4f[_0x34d7('0xd4')]+0x3>=this[_0x34d7('0x4')]['y']&&_0x2f5f4f['left']-0x3<=this['_activeViewTarget']['x']&&_0x2f5f4f[_0x34d7('0xa3')]+0x3>=this[_0x34d7('0x4')]['x'])||_0x3ca6e5[0x0];}}}),this[_0x34d7('0xf6')]['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4af479,_0x240b70,_0x150fbe,_0x428c3c)=>{this['activeView']=_0x150fbe?this['_getViewForChange'](_0x150fbe):null,this[_0x34d7('0xa7')]['model'][_0x34d7('0xf2')](()=>{const _0x37eb9c=this['editor'][_0x34d7('0x3d')];_0x428c3c&&(_0x428c3c[_0x34d7('0x105')][_0x34d7('0x7e')]?_0x37eb9c['view'][_0x34d7('0xf2')](_0x473473=>{_0x473473[_0x34d7('0xa2')](_0x34d7('0xfe'),_0x37eb9c['view'][_0x34d7('0x67')][_0x34d7('0x51')](_0x428c3c[_0x34d7('0x15')]));}):_0x37eb9c[_0x34d7('0xa')](_0x34d7('0xb')+_0x428c3c['id'])),_0x150fbe&&(_0x150fbe[_0x34d7('0x105')][_0x34d7('0x7e')]?_0x37eb9c[_0x34d7('0xf3')][_0x34d7('0xf2')](_0x411e28=>{_0x411e28['addClass'](_0x34d7('0xfe'),_0x37eb9c[_0x34d7('0xf3')][_0x34d7('0x67')]['getRoot'](_0x150fbe[_0x34d7('0x15')]));}):_0x37eb9c[_0x34d7('0xa')](_0x34d7('0xb')+_0x150fbe['id']));});}),this['listenTo'](this['editor'][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0x67')],_0x34d7('0x79'),(_0x251037,_0x32fcc9)=>{if(this[_0x34d7('0xe1')])return;const _0x19def3=this[_0x34d7('0xc7')](_0x32fcc9[_0x34d7('0x103')]),_0x161d75=this[_0x34d7('0xdd')]['get'](_0x19def3);_0x161d75?(this[_0x34d7('0x4')]={'x':_0x32fcc9[_0x34d7('0x106')]['x'],'y':_0x32fcc9[_0x34d7('0x106')]['y']},this[_0x34d7('0xdc')]=this[_0x34d7('0x10')](_0x161d75)):(this[_0x34d7('0x4')]=null,this[_0x34d7('0xdc')]=null);}),this[_0x34d7('0x2e')](this['editor'][_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0x67')],_0x34d7('0xc2'),(_0x47860a,_0x475a6a)=>{const _0x3ce9bc=this[_0x34d7('0xc7')](_0x475a6a[_0x34d7('0x103')]),_0x57e9d9=this['_changeIdToChange']['get'](_0x3ce9bc);_0x57e9d9?(this[_0x34d7('0x4')]={'x':_0x475a6a[_0x34d7('0x106')]['x'],'y':_0x475a6a[_0x34d7('0x106')]['y']},_0x57e9d9===this[_0x34d7('0xe1')]?this[_0x34d7('0xf6')][_0x34d7('0x7b')]():this[_0x34d7('0xe1')]=_0x57e9d9):(this['_activeViewTarget']=null,this[_0x34d7('0xe1')]=null);});}[_0x34d7('0xc7')](_0xd100cd){do{const _0x22be0e=_0xd100cd[_0x34d7('0xf8')](_0x34d7('0x10b'));if(_0x22be0e)return _0x22be0e;_0xd100cd=_0xd100cd[_0x34d7('0x83')];}while(_0xd100cd);return null;}['_cleanMarkers'](){this[_0x34d7('0xa7')]['model'][_0x34d7('0xf2')](_0x2d4c0d=>{for(const _0x36b8d8 of this['editor'][_0x34d7('0x117')]['markers'])_0x2d4c0d[_0x34d7('0x10e')](_0x36b8d8);});}}function et(_0x479007,_0x5cfa9d){return(_0xc7dc20,_0x2952ea,_0x3930cd)=>{if(!_0x3930cd[_0x34d7('0x9b')]['test'](_0x2952ea[_0x34d7('0x6f')],_0xc7dc20['name']))return;const _0x3263aa=_0x2952ea[_0x34d7('0x6f')][_0x34d7('0x11d')](),_0x2f568c=_0x2952ea[_0x34d7('0x6f')][_0x34d7('0x61')],_0x3377f9=_0x479007[_0x34d7('0x117')][_0x34d7('0x114')];let _0x56ddec=null,_0x1c3de1=null,_0x10dcd1=!0x1,_0x563d61=!0x1;for(const _0x46238a of _0x3263aa){const _0x1cb89c=_0x46238a[_0x34d7('0x8c')];_0x10dcd1=_0x10dcd1||_0x3377f9['isContent'](_0x1cb89c);const _0x16976c=_0x3930cd[_0x34d7('0xbd')][_0x34d7('0x28')](_0x1cb89c);if(_0x16976c&&_0x16976c[_0x34d7('0xda')](_0x34d7('0xe5')))return;_0x34d7('0x111')==_0x46238a[_0x34d7('0x27')]&&(_0x3377f9[_0x34d7('0xeb')](_0x1cb89c)&&!_0x3377f9[_0x34d7('0x7c')](_0x1cb89c)&&(_0x1cb89c['nextSibling']||_0x2f568c[_0x34d7('0xc3')]?_0x56ddec&&_0x56ddec[_0x34d7('0x83')]==_0x1cb89c||(_0x56ddec=_0x1cb89c,_0x439c75(_0x46238a[_0x34d7('0x110')]),_0x563d61=!0x0):_0x1c3de1=_0x1c3de1||_0x46238a['previousPosition']));}function _0x439c75(_0x3a6611){const _0x1acd5f=_0x3930cd[_0x34d7('0xbd')]['toViewPosition'](_0x3a6611),_0x293a77=_0x3930cd[_0x34d7('0x6d')][_0x34d7('0xa6')](_0x34d7('0xad'),{'class':_0x34d7('0x5b')+_0x5cfa9d});_0x3930cd[_0x34d7('0x6d')][_0x34d7('0x72')](_0x1acd5f,_0x293a77),_0x3930cd['mapper'][_0x34d7('0x59')](_0x293a77,_0x2952ea['markerName']);}_0x10dcd1||_0x563d61||!_0x1c3de1||_0x439c75(_0x1c3de1);};}export class RestoreRevisionCommand extends _0x36887a{constructor(_0x2aff1b){super(_0x2aff1b);const _0x2223e2=_0x2aff1b['plugins'][_0x34d7('0x9c')](d);this['affectsData']=!0x1,this[_0x34d7('0x2e')](_0x2223e2,'change:isReady',()=>this[_0x34d7('0x119')]()),this[_0x34d7('0x2e')](_0x2223e2,_0x34d7('0xc6'),()=>this['refresh']());}[_0x34d7('0xe4')](){const _0x319472=this[_0x34d7('0xa7')],_0x44c032=_0x319472[_0x34d7('0xd')]['get'](d),_0x587081=_0x44c032['isReady']?_0x44c032[_0x34d7('0x16')][_0x34d7('0x80')]:null;_0x319472[_0x34d7('0xb1')][_0x34d7('0x9c')](_0x34d7('0x76'))[_0x34d7('0x6a')](_0x587081);}[_0x34d7('0x119')](){const {isReady:_0x513361,isEnabled:_0xd55225}=this[_0x34d7('0xa7')]['plugins'][_0x34d7('0x9c')](d);this[_0x34d7('0xc')]=_0x513361&&_0xd55225;}}export class ShowChangeCommand extends _0x36887a{constructor(_0xc0c24e,{direction:_0x39a573}){super(_0xc0c24e);const _0x5e7ada=_0xc0c24e[_0x34d7('0xd')]['get'](d);this['affectsData']=!0x1,this[_0x34d7('0x3a')]=_0x34d7('0x77')===_0x39a573?0x1:-0x1,this['listenTo'](_0x5e7ada,_0x34d7('0x9'),()=>this[_0x34d7('0x119')]()),this['listenTo'](_0x5e7ada,_0x34d7('0xc6'),()=>this[_0x34d7('0x119')]()),this[_0x34d7('0x2e')](_0x5e7ada,_0x34d7('0x11f'),()=>this['refresh']());}[_0x34d7('0xe4')](){const _0x58999c=this[_0x34d7('0xa7')],_0x4c2a37=_0x58999c[_0x34d7('0xd')][_0x34d7('0x9c')](d),{isNavigationMode:_0x590d2e,currentChangeNumber:_0x1505dc}=_0x4c2a37;let _0x554296;if(_0x4c2a37[_0x34d7('0xe1')]=_0x590d2e?_0x4c2a37[_0x34d7('0x16')][_0x34d7('0xcd')][_0x34d7('0x9c')](_0x1505dc+this[_0x34d7('0x3a')]):_0x4c2a37['diff']['changes'][_0x34d7('0x113')],_0x4c2a37['activeChange']['data'][_0x34d7('0x7e')])_0x554296=_0x58999c[_0x34d7('0x3d')][_0x34d7('0xf3')][_0x34d7('0xea')](_0x4c2a37['activeChange']['rootName']);else{const _0x59fded=_0x58999c[_0x34d7('0x117')]['markers']['get'](_0x34d7('0xb')+_0x4c2a37['activeChange']['id']);_0x554296=_0x1acd99(_0x58999c[_0x34d7('0x3d')],_0x59fded);}_0x50716e({'target':_0x554296,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x50fbbe,currentChangeNumber:_0x1947cf,numberOfChanges:_0x3bc27d,isReady:_0x1c26b8,isEnabled:_0x39c7bf}=this[_0x34d7('0xa7')][_0x34d7('0xd')]['get'](d);this[_0x34d7('0xc')]=!!(_0x39c7bf&&_0x1c26b8&&_0x3bc27d)&&(!_0x50fbbe||(0x1===this[_0x34d7('0x3a')]?_0x1947cf<_0x3bc27d-0x1:_0x1947cf>0x0));}}
|
|
23
|
+
const _0x40bf=['getCustomProperty','sort','data','checkAttribute','revision:','_makeTape','diff','conversion','flat','from','collaboration.channelId','mousedown','_balloon','resolve','change:isReady','then','detachRoot','authors','isAddSuggestion','markerToHighlight','_findChangeIdFromDomTarget','RevisionViewer','elementToAttribute','_getDiff','has','getRevisionData','getAttributes','splice','bindElementToMarker','isAdded','isAtEnd','bottom','bind','split','enqueueChange','-new','backward','POSITIVE_INFINITY','markers','_initInteractions','length','activeView','isInline','ck-revision-history-root-add','getRevisionRootsAttributes','listenTo','addClass','getRevision','selection','revision-comment:','isCollapsed','requires','revisionHistory','unshift','newRevisionId','ck-suggestion-preview-marker-','consume','toViewPosition','_joinTapes','filter','revisionHistoryLabel','addMarker:revision-suggestion:deletion','ck-suggestion-marker--active','hasClass','return','enableReadOnlyMode','writer','markerToData','addMarker:revision-suggestion:insertion','vid_start','attributes','changeId','highest','markersStart','isReady','done','useFillerType','dataToMarker','maxOffset','endIndex','catch','elementEnd','forceDisabled','softBreak','commands','ck-editor__editable__overlay','nextPosition','low','find','execute','element:pre','change','editing','values','view','_setConversion','plugins','attributesBefore','_sortAndFilterDiffChanges','target','_activeViewTarget','map','unbindElementFromMarkerName','_refreshStartEndIndex','text','isObject','_getViewObj','uiElement','reconvertMarker','insert','children','attributesAfter','mapper','markersEnd','_makeModelFromTape','isNavigationMode','addRoot','set','parse','createRangeIn','addHighlight','isSuggestion','userId','getAttribute','data-change-id','revisionHistoryAttachChange','type','removeAttribute','item','init','getDomRoot','change:activeChange','WidgetToolbarRepository','_processTape','keys','index','change:isEnabled','_setChanges','deletion','getIndex','end','toViewRange','ck-suggestion-marker-split','dataDowncast','consumable','start','_cleanUp','pop','_getChangeFromId','RevisionsRepository','insertion','setAttribute','isEnabled','string','revision','startsWith','toModel','delete','_update','merge','removeClass','domEvent','deletions','add','getRootNames','document','getItems','restoreRevisionCallback','_markMismatchedRemovedTags','name','createPositionFromPath','model','for','ck-revision-history-root-','removeMarker:revision-suggestion','showNextChange','comment','_setDistance','_markInsertions','vid','markerNameToElements','schema','push','pluginName','adapter','isIncorrect','affectsData','showStack','change:numberOfChanges','changes','concat','right','_data','ck-revision-history-root--active','isContent','object','shift','_changeView','isAttached','locale','revision-suggestion','startIndex','ck-revision-history-root-remove','isRemoveSuggestion','forEach','downcastDispatcher','previousPosition','createRange','viewItem','forward','level','suggestion','getRoot','ck-suggestion-marker-merge','processor','revision-viewer','_changeIdToChange','getClientRects','ck-suggestion-preview-marker','markerName','wrap','_makeModelFromViewString','rootName','test','_markSuggestions','destroy','hasAttribute','roots','repository','pairId','_getViewForChange','distance','_removeRevisionMarkers','vid_end','currentChangeNumber','abs','get','change:activeView','numberOfChanges','isBlock','ck-suggestion-marker-','remove','attachChange','modelRange','addRevisionData','side','slice','left','_getRevisionsRange','span','isAfter','parent','oldRevisionId','activeChange','nextSibling','showPreviousChange','range','upcast','refresh','stop','diffData','isEqual','isOnRoot','_cleanMarkers','nodeAfter','_fixObsoleteTags','elementStart','isBefore','editingDowncast','revision-end','_removeMissingPairs','addRevision','ck-suggestion-marker','isLimit','element','toViewElement','markerRange','_appendChild','editor','_step','includes','loadRevisionData','addMarker:revision','high','insertions','isRemoved','toData','createUIElement','clear','config'];(function(_0x29b000,_0x40bf4a){const _0x406965=function(_0x24180b){while(--_0x24180b){_0x29b000['push'](_0x29b000['shift']());}};_0x406965(++_0x40bf4a);}(_0x40bf,0x113));const _0x4069=function(_0x29b000,_0x40bf4a){_0x29b000=_0x29b000-0x0;let _0x406965=_0x40bf[_0x29b000];return _0x406965;};import{Plugin as _0x2bb06f,Command as _0x3dd145}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4b51d0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x18ce7b}from'ckeditor5/src/ui';import{DocumentFragment as _0x4897c4,Element as _0x3c078a,Text as _0x12ea09,ViewDocumentFragment as _0x4df735,ViewText as _0x50a58d,ViewElement as _0x525592,ViewContainerElement as _0xc63ef9,ViewAttributeElement as _0x1c62be,ViewEmptyElement as _0x2fec83,ViewRawElement as _0x1e58d0,ViewUIElement as _0x4dbe09}from'ckeditor5/src/engine';import{Users as _0x551908,getMarkerDomElement as _0x47b482}from'ckeditor5-collaboration/src/collaboration-core';import _0x54ed56 from'./ui/revisionviewer/changedetailsview';import _0x19af68 from'./revisionsrepository';import _0x51339a from'./changeitem';import{default as _0x48bfca}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x389537}from'lodash-es';const tt={'c':_0xc63ef9,'a':_0x1c62be,'e':_0x2fec83,'r':_0x1e58d0,'u':_0x4dbe09};export default class d extends _0x2bb06f{static get[_0x4069('0xc6')](){return _0x4069('0x24');}static get[_0x4069('0x42')](){return[_0x551908,_0x18ce7b,_0x19af68];}constructor(_0x522b4c){super(_0x522b4c),this[_0x4069('0xf3')]=this[_0x4069('0x3')][_0x4069('0x6f')]['get'](_0x4069('0xa4')),this['set'](_0x4069('0x10c'),null),this['set'](_0x4069('0x38'),null),this[_0x4069('0x73')]=null,this['set'](_0x4069('0x15'),null),this[_0x4069('0x84')]('isReady',!0x1),this['set']('isEnabled',!0x0),this['on'](_0x4069('0x97'),(_0xb0a484,_0x5152ca,_0x1ce020)=>{this[_0x4069('0x10c')]=null,this[_0x4069('0x38')]=null,this[_0x4069('0x3')]['editing'][_0x4069('0x6d')][_0x4069('0x6a')](_0x1d80b5=>{for(const _0x2300db of this[_0x4069('0x3')][_0x4069('0x6b')]['view'][_0x4069('0xb4')][_0x4069('0xf2')])_0x1ce020?_0x1d80b5[_0x4069('0xaf')]('ck-editor__editable__overlay',_0x2300db):_0x1d80b5[_0x4069('0x3d')](_0x4069('0x64'),_0x2300db);});}),this['bind'](_0x4069('0x82'))['to'](this,_0x4069('0x10c'),_0x16fbab=>null!==_0x16fbab),this[_0x4069('0x2f')](_0x4069('0xf9'))['to'](this,'isReady',this,_0x4069('0x15'),this,_0x4069('0x10c'),(_0xffaeb3,_0x4ff563,_0x31aed0)=>_0xffaeb3&&_0x31aed0?_0x4ff563[_0x4069('0xcc')][_0x4069('0x9a')](_0x31aed0):0x0),this[_0x4069('0x2f')](_0x4069('0xfd'))['to'](this,_0x4069('0x59'),this,_0x4069('0x15'),(_0x38fdb9,_0x4cb5d3)=>_0x38fdb9?_0x4cb5d3[_0x4069('0xcc')]['length']:0x0),this[_0x4069('0xd4')]=null,this['_changeIdToChange']=new Map(),this[_0x4069('0xc7')]=null,this[_0x4069('0x1b')]=this['editor'][_0x4069('0x6f')][_0x4069('0xfb')](_0x18ce7b);}[_0x4069('0x90')](){const _0x6923b9=this[_0x4069('0x3')],_0x53b040=new ShowChangeCommand(_0x6923b9,{'direction':_0x4069('0x33')}),_0xf6995b=new ShowChangeCommand(_0x6923b9,{'direction':'forward'});(_0x6923b9[_0x4069('0x63')]['add'](_0x4069('0x10e'),_0x53b040),_0x6923b9[_0x4069('0x63')]['add'](_0x4069('0xbe'),_0xf6995b),_0x6923b9[_0x4069('0x63')][_0x4069('0xb2')]('restoreRevision',new RestoreRevisionCommand(_0x6923b9)),this['on'](_0x4069('0xcb'),()=>{_0x53b040[_0x4069('0x111')](),_0xf6995b[_0x4069('0x111')]();}),this[_0x4069('0x6e')](),this['_initInteractions'](),_0x6923b9[_0x4069('0x50')](_0x4069('0xe6')),_0x6923b9['plugins'][_0x4069('0x27')](_0x4069('0x93')))&&_0x6923b9[_0x4069('0x6f')]['get'](_0x4069('0x93'))[_0x4069('0x61')](_0x4069('0xe6'));}async[_0x4069('0x28')](_0x3d4c39){await this[_0x4069('0x6')](_0x3d4c39);const _0x467d19={};for(const _0x42deb6 in _0x3d4c39[_0x4069('0x113')]){if(_0x3d4c39[_0x4069('0x113')][_0x42deb6][_0x4069('0x101')]&&!_0x3d4c39[_0x4069('0x113')][_0x42deb6][_0x4069('0x101')][_0x4069('0xd5')])continue;const _0x159b44=this[_0x4069('0xf7')](JSON['parse'](_0x3d4c39[_0x4069('0x113')][_0x42deb6][_0x4069('0x9')])),_0x1222f8=this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0x6d')][_0x4069('0xb4')],_0x29106f=new _0x4df735(_0x1222f8,_0x159b44[_0x4069('0x74')](_0x535b7f=>this[_0x4069('0x79')](_0x535b7f)));this[_0x4069('0x3')][_0x4069('0x11')][_0x4069('0xe5')][_0x4069('0x5b')]('marked'),_0x467d19[_0x42deb6]=this['editor'][_0x4069('0x11')]['processor'][_0x4069('0xb')](_0x29106f),this['editor'][_0x4069('0x11')][_0x4069('0xe5')][_0x4069('0x5b')]('default');}return _0x467d19;}async[_0x4069('0x3b')](_0x3ddfb9){await this['loadRevisionData'](_0x3ddfb9);const _0x483637={};for(const _0x134980 in _0x3ddfb9[_0x4069('0x113')])_0x3ddfb9[_0x4069('0x113')][_0x134980][_0x4069('0x101')]&&!_0x3ddfb9[_0x4069('0x113')][_0x134980][_0x4069('0x101')][_0x4069('0xd5')]||(_0x483637[_0x134980]=_0x3ddfb9[_0x4069('0x113')][_0x134980][_0x4069('0x7e')]||{});return _0x483637;}['_removeRevisionMarkers'](_0x4e4af9){return(_0x4e4af9=_0x4e4af9[_0x4069('0x4a')](_0x10644=>!_0x10644[_0x4069('0xb8')]||'revision-start'!==_0x10644[_0x4069('0xb8')]&&_0x4069('0x11c')!==_0x10644[_0x4069('0xb8')]))[_0x4069('0xdb')](_0x1fcd79=>{_0x4069('0xa8')!=typeof _0x1fcd79&&(_0x1fcd79[_0x4069('0x7d')]=this['_removeRevisionMarkers'](_0x1fcd79[_0x4069('0x7d')]),_0x1fcd79[_0x4069('0x55')]=_0x1fcd79[_0x4069('0x55')]['filter'](_0x2e697e=>!_0x2e697e[0x0]['startsWith']('data-revision-')));}),_0x4e4af9;}async['compare'](_0x9b811f,_0x410393,_0x4621d9=!0x1){if(!this[_0x4069('0xa7')])return;const _0x6e50fb=this[_0x4069('0x15')],_0x40c843=this['repository'],_0x20e259=_0x4069('0xa8')==typeof _0x9b811f?_0x40c843[_0x4069('0x3e')](_0x9b811f):_0x9b811f,_0x1e4558=_0x4069('0xa8')==typeof _0x410393?_0x40c843['getRevision'](_0x410393):_0x410393,_0x1c52ef=_0x20e259['id'],_0x597dea=_0x1e4558?_0x1e4558['id']:null;if(!_0x4621d9&&this[_0x4069('0x15')]&&this['diff'][_0x4069('0x45')]===_0x1c52ef&&this[_0x4069('0x15')][_0x4069('0x10b')]===_0x597dea)return Promise[_0x4069('0x1c')]();this[_0x4069('0x59')]=!0x1,this[_0x4069('0x38')]=null,this[_0x4069('0x10c')]=null,this[_0x4069('0x15')]=new _0x48bfca(_0x1c52ef,_0x597dea);const _0x3c0db9=this[_0x4069('0x107')](_0x20e259,_0x1e4558,!0x0)['map'](_0x24ee71=>this[_0x4069('0x6')](_0x24ee71));return _0x3c0db9[_0x4069('0xc5')](new Promise(_0x24f515=>{setTimeout(_0x24f515,0x14);})),Promise['all'](_0x3c0db9)['then'](()=>{if(!this[_0x4069('0xa7')])return;this[_0x4069('0xa1')]();const _0xf13f6d=this['_getDiff'](_0x1c52ef,_0x597dea);for(const _0x275097 of _0xf13f6d[_0x4069('0xcc')])this[_0x4069('0xe7')][_0x4069('0x84')](_0x275097['id'],_0x275097);this[_0x4069('0x3')][_0x4069('0xba')]['enqueueChange']({'isUndoable':!0x1},_0x15d7c1=>{for(const _0x4ce2bf of this[_0x4069('0x3')]['model']['document']['getRootNames']())_0x15d7c1['detachRoot'](_0x4ce2bf);for(const _0x1e3207 of Object[_0x4069('0x95')](_0xf13f6d[_0x4069('0xba')])){const _0x170d15=_0x15d7c1[_0x4069('0x83')](_0x1e3207);for(const _0x3302ad of Object['keys'](_0xf13f6d['attributes'][_0x1e3207]))_0x15d7c1[_0x4069('0xa6')](_0x3302ad,_0xf13f6d[_0x4069('0x55')][_0x1e3207][_0x3302ad],_0x170d15);_0x15d7c1[_0x4069('0x7c')](_0xf13f6d[_0x4069('0xba')][_0x1e3207],_0x170d15,0x0);}}),this[_0x4069('0x15')][_0x4069('0x98')](this[_0x4069('0x71')](_0xf13f6d['changes'])),this['isReady']=!0x0;})[_0x4069('0x5f')](_0x190448=>{console['error'](_0x190448),this[_0x4069('0xa1')](),_0x6e50fb&&(this['diff']=_0x6e50fb),this[_0x4069('0x59')]=!0x0;});}[_0x4069('0x103')](_0x123bd1,_0x39fa60){const _0x22207d=this['repository']['createRevision'](_0x123bd1);return _0x22207d['on'](_0x4069('0xad'),(_0xb18c13,_0x19fbfd,_0x3ea4a7)=>_0x39fa60(_0x19fbfd,_0x3ea4a7,_0x22207d)),this[_0x4069('0xf3')][_0x4069('0x11e')](_0x22207d),_0x22207d;}[_0x4069('0x6')](_0x2a1bdf){if(!_0x2a1bdf||_0x2a1bdf[_0x4069('0x113')])return Promise[_0x4069('0x1c')]();{const _0x2974ce=this[_0x4069('0x3')][_0x4069('0xe')][_0x4069('0xfb')](_0x4069('0x19'));return this[_0x4069('0xc7')][_0x4069('0x3e')]({'channelId':_0x2974ce,'revisionId':_0x2a1bdf['id']})[_0x4069('0x1e')](_0x51aa5d=>{_0x2a1bdf['_update']({'diffData':_0x51aa5d[_0x4069('0x113')]},!0x0);});}}[_0x4069('0xa1')](){this[_0x4069('0x10c')]=null,this[_0x4069('0x116')](),this[_0x4069('0xd4')]&&this['_changeView'][_0x4069('0xf0')](),this[_0x4069('0xd4')]=null,this['_changeIdToChange'][_0x4069('0xd')](),this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0x31')]({'isUndoable':!0x1},_0xe99b03=>{for(const _0x21a64d of this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0xb4')]['getRootNames']())_0xe99b03[_0x4069('0x1f')](_0x21a64d);});}[_0x4069('0x71')](_0x4553e0){const _0x36e7f1=[],_0x2d5e49=new Map();for(const _0x101ad2 of this['editor']['model'][_0x4069('0xb4')][_0x4069('0xb3')]()){const _0x248a14=this[_0x4069('0x3')]['editing'][_0x4069('0x6d')]['getDomRoot'](_0x101ad2);if(!_0x248a14)continue;const _0x3d5c6d=_0x248a14[_0x4069('0xe8')]()[_0x4069('0x8f')](0x0);_0x3d5c6d&&(_0x36e7f1[_0x4069('0xc5')](_0x101ad2),_0x2d5e49[_0x4069('0x84')](_0x101ad2,_0x3d5c6d));}return _0x36e7f1[_0x4069('0x10')]((_0x4903a4,_0x5bfd03)=>{const _0x1090e7=_0x2d5e49[_0x4069('0xfb')](_0x4903a4),_0x4c1717=_0x2d5e49['get'](_0x5bfd03);return _0x1090e7['y']-_0x4c1717['y']||_0x1090e7['x']-_0x4c1717['x'];}),(_0x4553e0=_0x4553e0[_0x4069('0x4a')](_0x3fcbbb=>_0x36e7f1[_0x4069('0x5')](_0x3fcbbb['rootName'])))[_0x4069('0x10')]((_0x17b9af,_0x104cff)=>_0x36e7f1['indexOf'](_0x17b9af[_0x4069('0xed')])-_0x36e7f1['indexOf'](_0x104cff[_0x4069('0xed')])),_0x4553e0;}[_0x4069('0x14')](_0x15e04f){const _0x3c5abb=Array[_0x4069('0x18')](_0x15e04f[_0x4069('0x35')])['filter'](([_0x1bdc1c,_0x5da54f])=>_0x1bdc1c['startsWith'](_0x4069('0x13'))&&!_0x5da54f[_0x4069('0x41')]),_0x21c35d=Array['from'](this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0x86')](_0x15e04f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3c5abb['length'])for(const _0x519505 of _0x21c35d){const [_0x4323c4,_0x2df8ee]=_0x3c5abb[0x0],[,_0x2bbb66,_0x388a72]=_0x4323c4[_0x4069('0x30')](':');if(_0x2df8ee[_0x4069('0x9b')]['isEqual'](_0x519505['nextPosition'])&&_0x3c5abb[_0x4069('0xd3')](),(_0x519505[_0x4069('0xdd')][_0x4069('0x114')](_0x2df8ee[_0x4069('0xa0')])||_0x519505['previousPosition']['isAfter'](_0x2df8ee[_0x4069('0xa0')]))&&(_0x4069('0xa5')==_0x2bbb66?_0x519505[_0x4069('0x2c')]={'userId':_0x388a72}:'deletion'==_0x2bbb66&&(_0x519505[_0x4069('0xa')]={'userId':_0x388a72})),0x0==_0x3c5abb['length'])break;}return _0x21c35d;}[_0x4069('0x76')](_0x421cbf){const _0x160607=new Map();for(let _0x1a03f2=0x0;_0x1a03f2<_0x421cbf[_0x4069('0x37')];_0x1a03f2++)_0x4069('0x77')===_0x421cbf[_0x1a03f2][_0x4069('0x8d')]?(_0x421cbf[_0x1a03f2]['item'][_0x4069('0xd8')]=_0x1a03f2,_0x421cbf[_0x1a03f2][_0x4069('0x8f')][_0x4069('0x5e')]=_0x1a03f2):(_0x4069('0x119')===_0x421cbf[_0x1a03f2][_0x4069('0x8d')]?_0x421cbf[_0x1a03f2][_0x4069('0x8f')][_0x4069('0xd8')]=_0x1a03f2:_0x4069('0x60')===_0x421cbf[_0x1a03f2][_0x4069('0x8d')]&&(_0x421cbf[_0x1a03f2][_0x4069('0x8f')][_0x4069('0x5e')]=_0x1a03f2),_0x160607[_0x4069('0x84')](_0x421cbf[_0x1a03f2]['id'],_0x1a03f2));for(const _0x3893bb of _0x160607[_0x4069('0x6c')]())'elementStart'===_0x421cbf[_0x3893bb][_0x4069('0x8d')]?_0x421cbf[_0x3893bb][_0x4069('0x8f')][_0x4069('0x5e')]=_0x160607[_0x4069('0xfb')](_0x421cbf[_0x3893bb][_0x4069('0xf4')]):'elementEnd'===_0x421cbf[_0x3893bb]['type']&&(_0x421cbf[_0x3893bb][_0x4069('0x8f')][_0x4069('0xd8')]=_0x160607['get'](_0x421cbf[_0x3893bb][_0x4069('0xf4')]));}[_0x4069('0x94')](_0x33716c){for(let _0x57d58e=0x0;_0x57d58e<_0x33716c[_0x4069('0x37')];_0x57d58e++){if('elementStart'===_0x33716c[_0x57d58e][_0x4069('0x8d')])_0x33716c[_0x57d58e][_0x4069('0x8f')][_0x4069('0xd8')]=_0x57d58e;else{if(_0x4069('0x60')===_0x33716c[_0x57d58e][_0x4069('0x8d')]){_0x33716c[_0x57d58e]['item'][_0x4069('0x5e')]=_0x57d58e;const _0x58ee28=_0x33716c[_0x57d58e][_0x4069('0x8f')][_0x4069('0xd8')];_0x33716c[_0x58ee28][_0x4069('0xf4')]=_0x33716c[_0x57d58e]['id'],_0x33716c[_0x57d58e][_0x4069('0xf4')]=_0x33716c[_0x58ee28]['id'];}else _0x33716c[_0x57d58e][_0x4069('0x8f')][_0x4069('0xd8')]=_0x57d58e,_0x33716c[_0x57d58e][_0x4069('0x8f')][_0x4069('0x5e')]=_0x57d58e,_0x33716c[_0x57d58e]['pairId']=null;}_0x33716c[_0x57d58e][_0x4069('0x58')]||(_0x33716c[_0x57d58e][_0x4069('0x58')]=[],_0x33716c[_0x57d58e]['markersEnd']=[]);}}[_0x4069('0xc1')](_0x201b3f,_0xb4ff96){const _0x5ebe1f=_0x201b3f['filter'](_0x213f1c=>!_0x213f1c[_0x4069('0x2c')]);for(let _0x4fd609=0x0;_0x4fd609<_0xb4ff96[_0x4069('0x37')];_0x4fd609++)_0xb4ff96[_0x4fd609][_0x4069('0x2c')]&&(_0x5ebe1f[_0x4fd609][_0x4069('0x2c')]=_0xb4ff96[_0x4fd609]['isAdded']);}[_0x4069('0xec')](_0x311e5c){const _0xe8348e=JSON[_0x4069('0x85')](_0x311e5c),_0x7067c=this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0x6d')]['document'],_0x1c0065=new _0x4df735(_0x7067c,_0xe8348e['map'](_0x3c5b62=>this[_0x4069('0x79')](_0x3c5b62)));return this[_0x4069('0x3')][_0x4069('0x11')][_0x4069('0xab')](_0x1c0065);}['_getViewObj'](_0x2a930b){const _0x3642b0=this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0x6d')][_0x4069('0xb4')];if(_0x4069('0xa8')==typeof _0x2a930b)return new _0x50a58d(_0x3642b0,_0x2a930b);{const _0x1c3258=_0x2a930b[_0x4069('0x7d')]['map'](_0x38cdf2=>this[_0x4069('0x79')](_0x38cdf2));return new(tt[_0x2a930b['type']]||_0x525592)(_0x3642b0,_0x2a930b['name'],_0x2a930b[_0x4069('0x55')],_0x1c3258);}}[_0x4069('0x26')](_0x4273f7,_0x2066c4=null){const _0xa28393=this['repository'][_0x4069('0x3e')](_0x4273f7),_0x33e0fb=_0x2066c4?this['repository'][_0x4069('0x3e')](_0x2066c4):null,_0x2c0998=this[_0x4069('0x107')](_0xa28393,_0x33e0fb),_0x4fd8da=_0x2c0998[_0x2c0998[_0x4069('0x37')]-0x1],_0x3178ce=new Map(),_0x19b739={'model':{},'attributes':{},'changes':[]},_0x5d53aa=new Set(),_0x11328b=new Map();for(let _0x3d16dc=_0x2c0998['length']-0x1;_0x3d16dc>=0x0;_0x3d16dc--){const _0x2679d6=_0x2c0998[_0x3d16dc];for(const _0x3298f1 of Object[_0x4069('0x95')](_0x2679d6[_0x4069('0x113')]))if(_0x2679d6[_0x4069('0x113')][_0x3298f1][_0x4069('0x101')]){const _0x41bd84=_0x2679d6[_0x4069('0x113')][_0x3298f1]['attachChange'];_0x41bd84[_0x4069('0xd5')]?(_0x5d53aa[_0x4069('0xb2')](_0x3298f1),_0x11328b[_0x4069('0x27')](_0x3298f1)&&_0x11328b['get'](_0x3298f1)[_0x4069('0x89')]==_0x41bd84['userId']?_0x11328b['delete'](_0x3298f1):_0x11328b[_0x4069('0x84')](_0x3298f1,_0x41bd84)):_0x11328b['has'](_0x3298f1)?(_0x5d53aa[_0x4069('0xac')](_0x3298f1),_0x11328b['delete'](_0x3298f1)):(_0x5d53aa['add'](_0x3298f1),_0x11328b[_0x4069('0x84')](_0x3298f1,_0x41bd84));}else _0x5d53aa['add'](_0x3298f1);}for(const _0x320427 of _0x5d53aa){const _0x2cb3b8=_0x11328b[_0x4069('0x27')](_0x320427)&&!_0x11328b[_0x4069('0xfb')](_0x320427)[_0x4069('0xd5')];let _0x20d0b3=_0x2cb3b8?_0x2c0998[_0x4069('0x37')]-0x1:0x0;const _0x3dbaeb=_0x2cb3b8?-0x1:0x1;for(;_0x2c0998[_0x20d0b3];){const _0x4dd108=_0x2c0998[_0x20d0b3];if(_0x4dd108['diffData'][_0x320427]){const _0x524f29=_0x2cb3b8?_0x4dd108[_0x4069('0x113')][_0x320427][_0x4069('0x70')]:_0x4dd108['diffData'][_0x320427]['attributesAfter'];_0x19b739[_0x4069('0x55')][_0x320427]=_0x524f29?_0x389537(_0x524f29):{};break;}_0x20d0b3+=_0x3dbaeb;}}for(const _0x66f736 of _0x2c0998){_0x66f736[_0x4069('0xba')]={};for(const _0x7495c1 of _0x66f736[_0x4069('0x20')])_0x3178ce[_0x4069('0x84')](_0x7495c1['id'],_0x7495c1);for(const _0x1e0270 of _0x5d53aa){const _0x1447ab=_0x66f736[_0x4069('0x113')][_0x1e0270]?_0x66f736[_0x4069('0x113')][_0x1e0270][_0x4069('0x9')]:'[]',_0x4577aa=_0x66f736[_0x4069('0x113')][_0x1e0270]?_0x66f736[_0x4069('0x113')][_0x1e0270][_0x4069('0xb1')]:'[]';_0x66f736['model'][_0x1e0270]={'insertions':this['_makeModelFromViewString'](_0x1447ab),'deletions':this[_0x4069('0xec')](_0x4577aa)};}}for(const _0x34ece6 of _0x5d53aa){let _0x18ff7a=null,_0x590cad=0x0;const _0x3616c5=new Map(Array[_0x4069('0x18')](_0xa28393['model'][_0x34ece6][_0x4069('0x9')][_0x4069('0x35')])[_0x4069('0x4a')](([_0x16ef34])=>!_0x16ef34[_0x4069('0xaa')](_0x4069('0x13'))));let _0xdd6373=0x0;for(const _0x55d672 of _0x2c0998){const _0x243ae4=this['_makeTape'](_0x55d672[_0x4069('0xba')][_0x34ece6]['insertions']);_0x55d672==_0xa28393?(_0x18ff7a=_0x243ae4,_0x590cad=_0x18ff7a['length'],_0x18ff7a['forEach'](_0xe657d4=>{_0xe657d4['id']=_0xdd6373++;}),this[_0x4069('0x94')](_0x18ff7a)):this[_0x4069('0xc1')](_0x18ff7a,_0x243ae4);const _0x2bfdb5=_0x18ff7a[_0x4069('0x4a')](_0xc2460b=>!_0xc2460b[_0x4069('0x2c')])['map'](_0x42cf30=>_0x42cf30['id']);let _0x549ce3=0x0;const _0x208100=this[_0x4069('0x14')](_0x55d672['model'][_0x34ece6][_0x4069('0xb1')]);_0x208100['forEach'](_0x1900c8=>{_0x1900c8[_0x4069('0xa')]?_0x1900c8['id']=_0x590cad++:_0x1900c8['id']=_0x2bfdb5[_0x549ce3++];}),this[_0x4069('0x94')](_0x208100),this[_0x4069('0xc0')](_0x18ff7a,_0x4069('0x2c')),this['_setDistance'](_0x208100,_0x4069('0xa')),_0x55d672==_0xa28393&&this['_markMarkers'](_0x18ff7a,_0x3616c5),_0x18ff7a=this[_0x4069('0x49')](_0x18ff7a,_0x208100),this[_0x4069('0x76')](_0x18ff7a),this[_0x4069('0xc0')](_0x18ff7a,_0x4069('0xa'));}_0x18ff7a=_0x18ff7a['filter'](_0x3e46cb=>!(_0x3e46cb['isAdded']&&_0x3e46cb['isRemoved']));const _0x37eccf=new Map(_0x4fd8da[_0x4069('0xba')][_0x34ece6][_0x4069('0xb1')]['markers']),_0xe62e6c=new Set(_0x3616c5[_0x4069('0x95')]());for(const _0x4bcc66 of _0x37eccf['keys']())_0xe62e6c[_0x4069('0xac')](_0x4bcc66);this[_0x4069('0xef')](_0x18ff7a,_0xe62e6c),this[_0x4069('0x118')](_0x18ff7a),_0x18ff7a=this[_0x4069('0x11d')](_0x18ff7a),_0x18ff7a=this[_0x4069('0xb7')](_0x18ff7a),_0x18ff7a=this['_removeUnsupportedChanges'](_0x18ff7a);const {root:_0x494e52,changes:_0x4229de}=this[_0x4069('0x81')](_0x18ff7a,_0x3178ce,_0x34ece6);_0x19b739[_0x4069('0xba')][_0x34ece6]=_0x494e52;const _0x5945eb=_0x11328b[_0x4069('0xfb')](_0x34ece6);if(_0x5945eb){const _0x23a41c=_0x3178ce['get'](_0x5945eb[_0x4069('0x89')]),_0x514fab=new _0x51339a({'author':_0x23a41c,'type':_0x5945eb[_0x4069('0xd5')]?_0x4069('0xb2'):_0x4069('0x100'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x34ece6});_0x4229de[_0x4069('0x44')](_0x514fab),_0x19b739[_0x4069('0x55')][_0x34ece6][_0x4069('0x8c')]=_0x514fab['id'];}_0x19b739['changes']=_0x19b739[_0x4069('0xcc')][_0x4069('0xcd')](_0x4229de);}return _0x19b739;}['_markMarkers'](_0xac716e,_0x430f51){for(let _0x3892d2=0x0;_0x3892d2<_0xac716e['length'];_0x3892d2++)for(const [_0x262049,_0x37102c]of _0x430f51)_0x37102c[_0x4069('0xa0')][_0x4069('0x114')](_0xac716e[_0x3892d2][_0x4069('0xdd')])&&_0xac716e[_0x3892d2][_0x4069('0x58')][_0x4069('0xc5')](_0x262049),_0x37102c[_0x4069('0x9b')][_0x4069('0x114')](_0xac716e[_0x3892d2][_0x4069('0x65')])&&_0xac716e[_0x3892d2][_0x4069('0x80')]['push'](_0x262049);}[_0x4069('0x49')](_0x1d83f4,_0x58f34d){let _0x378fcf=[],_0x1b803d=0x0,_0x3878a3=0x0;for(;_0x1b803d<_0x1d83f4[_0x4069('0x37')]||_0x3878a3<_0x58f34d[_0x4069('0x37')];){const _0x529dca=_0x1d83f4[_0x1b803d]||{},_0xd78438=_0x58f34d[_0x3878a3]||{};if(_0x529dca['id']==_0xd78438['id'])_0x1b803d++,_0x3878a3++,_0x378fcf[_0x4069('0xc5')](_0x529dca);else{if(_0xd78438[_0x4069('0xa')]&&_0x529dca[_0x4069('0x2c')]){const {commonTape:_0x5b6ea3,iEnd:_0x110c25,jEnd:_0x40eda2}=this['_threeWayMerge'](_0x1d83f4,_0x1b803d,_0x58f34d,_0x3878a3);_0x378fcf=_0x378fcf[_0x4069('0xcd')](_0x5b6ea3),_0x1b803d=_0x110c25,_0x3878a3=_0x40eda2;}else _0xd78438[_0x4069('0xa')]?(_0x3878a3++,_0x378fcf['push'](_0xd78438)):(_0x1b803d++,_0x378fcf[_0x4069('0xc5')](_0x529dca));}}return _0x378fcf;}[_0x4069('0xef')](_0x195bf2,_0x494b06){const _0x345891=[];for(let _0x4b2a78=0x0;_0x4b2a78<_0x195bf2[_0x4069('0x37')];_0x4b2a78++){for(let _0x79f895=0x0;_0x79f895<_0x195bf2[_0x4b2a78][_0x4069('0x58')][_0x4069('0x37')];_0x79f895++){const _0x30ac68=_0x195bf2[_0x4b2a78][_0x4069('0x58')][_0x79f895];if(!_0x494b06[_0x4069('0x27')](_0x30ac68))continue;const {group:_0x5d4dae,type:_0x53bd27,authorId:_0x304a89}=_0x54675a(_0x30ac68);'revision-suggestion'!=_0x5d4dae||'insertion'!=_0x53bd27&&_0x4069('0x99')!=_0x53bd27||(_0x345891[_0x4069('0x44')]({'type':_0x53bd27,'name':_0x30ac68,'userId':_0x304a89}),_0x195bf2[_0x4b2a78]['markersStart'][_0x4069('0x2a')](_0x79f895,0x1),_0x79f895--);}_0x25fc60(_0x195bf2[_0x4b2a78]);for(let _0x788006=0x0;_0x788006<_0x195bf2[_0x4b2a78][_0x4069('0x80')][_0x4069('0x37')];_0x788006++){const _0x4553e6=_0x195bf2[_0x4b2a78][_0x4069('0x80')][_0x788006];if(!_0x494b06[_0x4069('0x27')](_0x4553e6))continue;const {group:_0x5c7c58,type:_0x444e72}=_0x54675a(_0x4553e6);if('revision-suggestion'!=_0x5c7c58||_0x4069('0xa5')!=_0x444e72&&_0x4069('0x99')!=_0x444e72)continue;_0x195bf2[_0x4b2a78]['markersEnd'][_0x4069('0x2a')](_0x788006,0x1),_0x788006--;const _0x149697=_0x345891['findIndex'](_0xcd5386=>_0xcd5386[_0x4069('0xb8')]==_0x4553e6);_0x149697>-0x1&&_0x345891['splice'](_0x149697,0x1);}}function _0x54675a(_0x282e1f){const _0x27f6dd=_0x282e1f[_0x4069('0x30')](':');return{'group':_0x27f6dd[0x0],'type':_0x27f6dd[0x1],'subType':_0x27f6dd[_0x4069('0x37')]>=0x5?_0x27f6dd[0x2]:null,'id':_0x27f6dd['length']<0x5?_0x27f6dd[0x2]:_0x27f6dd[0x3],'authorId':_0x27f6dd[_0x4069('0x37')]<0x5?_0x27f6dd[0x3]:_0x27f6dd[0x4],'markerCount':0x6==_0x27f6dd[_0x4069('0x37')]?_0x27f6dd[0x5]:null};}function _0x25fc60(_0xc49a6f){for(let _0x368fec=0x0;_0x368fec<_0x345891[_0x4069('0x37')];_0x368fec++){if(_0xc49a6f[_0x4069('0x2c')]&&_0x4069('0xa5')==_0x345891[_0x368fec][_0x4069('0x8d')])return _0xc49a6f['isAddSuggestion']=_0x345891[_0x368fec],void delete _0xc49a6f['isAdded'];if(!_0xc49a6f[_0x4069('0x2c')]&&!_0xc49a6f['isRemoved']&&'deletion'==_0x345891[_0x368fec]['type'])return void(_0xc49a6f[_0x4069('0xda')]=_0x345891[_0x368fec]);}}}[_0x4069('0xc0')](_0x18289c,_0x93efeb){let _0x4cce20=0x0,_0x1945d9=!0x1;const _0x4d4897=new Map();for(const _0x1f5b6f of _0x18289c)_0x1f5b6f[_0x93efeb]?_0x1945d9&&(_0x4cce20++,_0x1945d9=!0x1):(_0x4cce20++,_0x1945d9=!0x0),_0x4d4897['set'](_0x1f5b6f['id'],_0x4cce20);for(let _0xc37776=0x0;_0xc37776<_0x18289c[_0x4069('0x37')];_0xc37776++){if(_0x4069('0xa')==_0x93efeb&&_0x18289c[_0xc37776]['isAdded']||_0x4069('0x2c')==_0x93efeb&&_0x18289c[_0xc37776][_0x4069('0xa')])continue;if(_0x4069('0x77')==_0x18289c[_0xc37776]['type']){_0x18289c[_0xc37776][_0x4069('0xf6')]=0x0;continue;}const _0x30c586=_0x4d4897[_0x4069('0xfb')](_0x18289c[_0xc37776][_0x4069('0xf4')]),_0x3bf4a9=_0x4d4897[_0x4069('0xfb')](_0x18289c[_0xc37776]['id']);_0x18289c[_0xc37776]['distance']=_0x30c586-_0x3bf4a9;}}[_0x4069('0x107')](_0x17a827,_0x4111b3,_0x319b0a=!0x1){const _0x585668=[];let _0x4c45f8=this[_0x4069('0xf3')][_0x4069('0x9a')](_0x17a827),_0x8d3f5d=this[_0x4069('0xf3')][_0x4069('0x9a')](_0x4111b3);for(-0x1==_0x8d3f5d&&(_0x8d3f5d=this[_0x4069('0xf3')]['_revisions'][_0x4069('0x37')],_0x319b0a=!0x1);_0x4c45f8<_0x8d3f5d;)_0x585668[_0x4069('0xc5')](this[_0x4069('0xf3')][_0x4069('0x3e')](_0x4c45f8)),_0x4c45f8++;return _0x319b0a&&_0x585668[_0x4069('0xc5')](this[_0x4069('0xf3')][_0x4069('0x3e')](_0x4c45f8)),_0x585668;}['_threeWayMerge'](_0x1bdc3c,_0x120120,_0x54f5b8,_0xd90563){const _0x55d47f=this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0xc4')];let _0x42e6a4=_0x120120;for(;_0x1bdc3c[_0x42e6a4]&&_0x1bdc3c[_0x42e6a4][_0x4069('0x2c')];)_0x42e6a4++;let _0x4a21ef=_0xd90563;for(;_0x54f5b8[_0x4a21ef]&&_0x54f5b8[_0x4a21ef][_0x4069('0xa')];)_0x4a21ef++;_0x371b84(_0x1bdc3c,_0x120120,_0x42e6a4),_0x371b84(_0x54f5b8,_0xd90563,_0x4a21ef);const _0x2b20c2=_0x54f5b8[_0x4069('0x105')](_0xd90563,_0x4a21ef)[_0x4069('0xcd')](_0x1bdc3c[_0x4069('0x105')](_0x120120,_0x42e6a4));return _0x2b20c2['sort']((_0x431277,_0x3b2006)=>_0x431277[_0x4069('0x104')]!=_0x3b2006[_0x4069('0x104')]?_0x431277['side']-_0x3b2006[_0x4069('0x104')]:_0x431277[_0x4069('0xe1')]!=_0x3b2006[_0x4069('0xe1')]?_0x431277[_0x4069('0xe1')]-_0x3b2006['level']:_0x431277[_0x4069('0xf6')]!=_0x3b2006[_0x4069('0xf6')]?_0x3b2006[_0x4069('0xf6')]-_0x431277[_0x4069('0xf6')]:!!_0x431277[_0x4069('0x2c')]!=!!_0x3b2006[_0x4069('0x2c')]?-0x1==_0x431277['side']||0x0==_0x431277[_0x4069('0x104')]?_0x431277['isAdded']?-0x1:0x1:_0x431277[_0x4069('0x2c')]?0x1:-0x1:_0x431277['index']-_0x3b2006[_0x4069('0x96')]),{'commonTape':_0x2b20c2,'iEnd':_0x42e6a4,'jEnd':_0x4a21ef};function _0x371b84(_0x29fc6d,_0x2dd8b8,_0x47652d){let _0x4aee96=-0x1,_0x4129a6=Number[_0x4069('0x34')],_0x49f896=!0x0;for(let _0xd277c4=_0x2dd8b8;_0xd277c4<_0x47652d;_0xd277c4++)if(_0x55d47f[_0x4069('0x39')](_0x29fc6d[_0xd277c4][_0x4069('0x8f')])||(_0x49f896=!0x1),_0x29fc6d[_0xd277c4][_0x4069('0x8f')]['startIndex']<_0x2dd8b8&&(_0x4aee96=_0xd277c4),_0x29fc6d[_0xd277c4][_0x4069('0x8f')]['endIndex']>=_0x47652d){_0x4129a6=_0xd277c4;break;}_0x49f896&&(_0x4aee96=_0x47652d-0x1);for(let _0x118d2f=_0x2dd8b8;_0x118d2f<_0x47652d;_0x118d2f++)_0x29fc6d[_0x118d2f][_0x4069('0x104')]=_0x118d2f<=_0x4aee96?-0x1:_0x118d2f<_0x4129a6?0x0:0x1,_0x29fc6d[_0x118d2f][_0x4069('0x96')]=_0x118d2f;let _0x316eb4=0x0;for(let _0x5987bd=_0x2dd8b8;_0x5987bd<=_0x4aee96;_0x5987bd++)0x0==_0x29fc6d[_0x5987bd][_0x4069('0xf6')]?_0x29fc6d[_0x5987bd][_0x4069('0xe1')]=_0x316eb4:(_0x316eb4++,_0x29fc6d[_0x5987bd][_0x4069('0xe1')]=_0x316eb4,_0x316eb4++);for(let _0x50b387=_0x2dd8b8;_0x50b387<_0x47652d;_0x50b387++)0x0==_0x29fc6d[_0x50b387][_0x4069('0x104')]&&(_0x29fc6d[_0x50b387][_0x4069('0xe1')]=_0x316eb4);_0x316eb4=0x0;for(let _0x302538=_0x47652d-0x1;_0x302538>=_0x4129a6;_0x302538--)0x0==_0x29fc6d[_0x302538][_0x4069('0xf6')]?_0x29fc6d[_0x302538]['level']=_0x316eb4:(_0x316eb4--,_0x29fc6d[_0x302538]['level']=_0x316eb4,_0x316eb4--);}}[_0x4069('0x118')](_0x24a652){const _0x360255=new Map(),_0x334095=this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0xc4')];for(let _0x597d5a=0x1;_0x597d5a<_0x24a652['length'];_0x597d5a++){let _0x28faed,_0x3ec00f,_0x9a5a29;const _0x5053fb=_0x24a652[_0x597d5a],_0x4496f7=_0x24a652[_0x597d5a-0x1];if('text'==_0x5053fb[_0x4069('0x8d')])continue;if(_0x5053fb[_0x4069('0x8d')]!=_0x4496f7[_0x4069('0x8d')])continue;if(!_0x334095[_0x4069('0xfe')](_0x4496f7['item'])||_0x334095[_0x4069('0x120')](_0x4496f7['item']))continue;if(!_0x334095[_0x4069('0xfe')](_0x5053fb[_0x4069('0x8f')])||_0x334095[_0x4069('0x120')](_0x5053fb['item']))continue;if((_0x24a652[_0x597d5a][_0x4069('0x2c')]||_0x24a652[_0x597d5a][_0x4069('0x21')])&&_0x24a652[_0x597d5a-0x1][_0x4069('0xa')])_0x28faed=_0x24a652[_0x597d5a],_0x3ec00f=_0x24a652[_0x597d5a-0x1],_0x9a5a29=_0x597d5a-0x1;else{if(!_0x24a652[_0x597d5a]['isRemoved']||!_0x24a652[_0x597d5a-0x1][_0x4069('0x2c')]&&!_0x24a652[_0x597d5a-0x1][_0x4069('0x21')])continue;_0x28faed=_0x24a652[_0x597d5a-0x1],_0x3ec00f=_0x24a652[_0x597d5a],_0x9a5a29=_0x597d5a;}const _0x314bda=_0x28faed[_0x4069('0xe1')]==_0x3ec00f[_0x4069('0xe1')],_0x41d14d=Math[_0x4069('0xfa')](_0x28faed[_0x4069('0xe1')])<Math[_0x4069('0xfa')](_0x3ec00f[_0x4069('0xe1')])&&0x0==_0x3ec00f[_0x4069('0xf6')];(_0x314bda||_0x41d14d)&&(_0x360255[_0x4069('0x84')](_0x3ec00f['id'],_0x28faed['id']),_0x24a652[_0x4069('0x2a')](_0x9a5a29,0x1),_0x597d5a--,_0x28faed[_0x4069('0x2c')]=!0x1);}for(let _0x302803=0x0;_0x302803<_0x24a652[_0x4069('0x37')];_0x302803++)_0x360255['has'](_0x24a652[_0x302803][_0x4069('0xf4')])&&(_0x24a652[_0x302803][_0x4069('0xf4')]=_0x360255[_0x4069('0xfb')](_0x24a652[_0x302803][_0x4069('0xf4')]));}['_removeMissingPairs'](_0x496592){const _0x4a1232=new Set(_0x496592[_0x4069('0x74')](_0x2dba71=>_0x2dba71['id']));for(let _0x250e42=0x0;_0x250e42<_0x496592[_0x4069('0x37')];_0x250e42++)_0x4a1232[_0x4069('0x27')](_0x496592[_0x250e42]['pairId'])||0x0==_0x496592[_0x250e42][_0x4069('0xf6')]||(_0x496592[_0x250e42][_0x4069('0xc8')]=!0x0);return _0x496592[_0x4069('0x4a')](_0x513a24=>!_0x513a24[_0x4069('0xc8')]);}[_0x4069('0xb7')](_0x3f919d){const _0x1e10fe=new Set();for(let _0x458a88=0x0;_0x458a88<_0x3f919d['length'];_0x458a88++){if(_0x1e10fe[_0x4069('0x27')](_0x3f919d[_0x458a88]['id'])&&_0x3f919d[_0x458a88][_0x4069('0xa')]&&(_0x3f919d[_0x458a88]['isIncorrect']=!0x0),_0x3f919d[_0x458a88][_0x4069('0xc8')])continue;if(0x0==_0x3f919d[_0x458a88]['distance'])continue;if(_0x4069('0x119')!=_0x3f919d[_0x458a88][_0x4069('0x8d')])continue;if(null==_0x3f919d[_0x458a88][_0x4069('0xf4')])continue;let _0x34b151=_0x458a88+0x1,_0x15f7d2=0x0;for(;_0x3f919d[_0x34b151]['id']!=_0x3f919d[_0x458a88][_0x4069('0xf4')];)_0x4069('0x119')==_0x3f919d[_0x34b151]['type']?_0x15f7d2++:_0x4069('0x60')==_0x3f919d[_0x34b151][_0x4069('0x8d')]&&_0x15f7d2--,_0x34b151++;if(0x0!=_0x15f7d2){if(_0x3f919d[_0x458a88][_0x4069('0xa')])_0x3f919d[_0x458a88]['isIncorrect']=!0x0;else for(;_0x34b151!=_0x458a88;)_0x3f919d[_0x34b151]['isRemoved']&&0x0!=_0x3f919d[_0x34b151][_0x4069('0xf6')]&&(_0x3f919d[_0x34b151]['isIncorrect']=!0x0,_0x1e10fe[_0x4069('0xb2')](_0x3f919d[_0x34b151][_0x4069('0xf4')])),_0x34b151--;}}return _0x3f919d['filter'](_0x19dc12=>!_0x19dc12[_0x4069('0xc8')]);}['_removeUnsupportedChanges'](_0x7fd66d){const _0x208984=this['editor'][_0x4069('0xba')][_0x4069('0xc4')];for(let _0x34e9da=0x0;_0x34e9da<_0x7fd66d[_0x4069('0x37')];_0x34e9da++){if(!(_0x7fd66d[_0x34e9da][_0x4069('0x2c')]||_0x7fd66d[_0x34e9da][_0x4069('0x21')]||_0x7fd66d[_0x34e9da][_0x4069('0xa')]||_0x7fd66d[_0x34e9da]['isRemoveSuggestion']))continue;if(0x0==_0x7fd66d[_0x34e9da][_0x4069('0xf6')])continue;const _0x55841e=_0x7fd66d[_0x34e9da][_0x4069('0x8f')];_0x208984[_0x4069('0xfe')](_0x55841e)||_0x208984['isLimit'](_0x55841e)||(_0x7fd66d[_0x34e9da][_0x4069('0x2c')]&&delete _0x7fd66d[_0x34e9da]['isAdded'],_0x7fd66d[_0x34e9da]['isAddSuggestion']&&delete _0x7fd66d[_0x34e9da]['isAddSuggestion'],_0x7fd66d[_0x34e9da]['isRemoveSuggestion']&&delete _0x7fd66d[_0x34e9da]['isRemoveSuggestion'],_0x7fd66d[_0x34e9da]['isRemoved']&&(_0x7fd66d[_0x34e9da]['isIncorrect']=!0x0));}return _0x7fd66d['filter'](_0x19e8ec=>!_0x19e8ec[_0x4069('0xc8')]);}[_0x4069('0x81')](_0x1f3899,_0x30f247,_0x53dd29){const _0x44da9f=new _0x4897c4(),_0x4634d7=[],_0x443c57=new Map(),_0xca5291=this[_0x4069('0x3')][_0x4069('0xba')],_0x33e163=_0xca5291[_0x4069('0xc4')],_0x5da7c3=[_0x44da9f],_0x36b46d={},_0x52e3fd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x108eb0=null;const _0x5277f9=[0x0];for(let _0x3da970=0x0;_0x3da970<_0x1f3899[_0x4069('0x37')];_0x3da970++){let _0x2b9fb1,_0x112d07;if('elementStart'===_0x1f3899[_0x3da970][_0x4069('0x8d')]){_0x2b9fb1=_0xca5291['createPositionFromPath'](_0x44da9f,_0x5277f9);const _0x32217e=new _0x3c078a(_0x1f3899[_0x3da970][_0x4069('0x8f')][_0x4069('0xb8')],_0x1f3899[_0x3da970][_0x4069('0x8f')][_0x4069('0x29')]());_0x5da7c3[0x0][_0x4069('0x2')](_0x32217e),_0x5277f9[_0x4069('0xc5')](0x0),_0x5da7c3[_0x4069('0x44')](_0x32217e),_0x112d07=_0xca5291['createPositionFromPath'](_0x44da9f,_0x5277f9),_0x108eb0=null;}else{if(_0x4069('0x60')===_0x1f3899[_0x3da970]['type'])_0x5da7c3[_0x4069('0xd3')](),_0x2b9fb1=_0xca5291[_0x4069('0xb9')](_0x44da9f,_0x5277f9),_0x5277f9[_0x4069('0xa2')](),_0x5277f9[_0x5277f9[_0x4069('0x37')]-0x1]++,_0x112d07=_0xca5291[_0x4069('0xb9')](_0x44da9f,_0x5277f9),_0x108eb0=null;else{if(_0x2b9fb1=_0xca5291[_0x4069('0xb9')](_0x44da9f,_0x5277f9),_0x108eb0&&_0x3849ad(_0x108eb0,_0x1f3899[_0x3da970][_0x4069('0x8f')]))_0x108eb0[_0x4069('0xcf')]+=_0x1f3899[_0x3da970][_0x4069('0x8f')][_0x4069('0x11')];else{const _0x5ba110=new _0x12ea09(_0x1f3899[_0x3da970]['item'][_0x4069('0x11')],_0x1f3899[_0x3da970][_0x4069('0x8f')][_0x4069('0x29')]());_0x5da7c3[0x0][_0x4069('0x2')](_0x5ba110),_0x108eb0=_0x5ba110;}_0x5277f9[_0x5277f9['length']-0x1]+=_0x1f3899[_0x3da970][_0x4069('0x8f')]['offsetSize'],_0x112d07=_0xca5291[_0x4069('0xb9')](_0x44da9f,_0x5277f9);}}for(const _0x3216d3 of _0x1f3899[_0x3da970][_0x4069('0x58')])_0x443c57[_0x4069('0x84')](_0x3216d3,{'start':_0x2b9fb1,'end':null});_0x101c2b(_0x4069('0xda'),_0x3da970,_0x2b9fb1,_0x112d07),_0x101c2b(_0x4069('0x21'),_0x3da970,_0x2b9fb1,_0x112d07),_0x101c2b(_0x4069('0xa'),_0x3da970,_0x2b9fb1,_0x112d07),_0x101c2b('isAdded',_0x3da970,_0x2b9fb1,_0x112d07);for(const _0x5b6737 of _0x1f3899[_0x3da970][_0x4069('0x80')]){_0x443c57[_0x4069('0xfb')](_0x5b6737)[_0x4069('0x9b')]=_0x112d07;}}for(const [_0x1ca454,_0x2c8526]of _0x443c57){const _0x4b1bcc=this['editor'][_0x4069('0xba')][_0x4069('0xde')](_0x2c8526[_0x4069('0xa0')],_0x2c8526[_0x4069('0x9b')]);_0x44da9f['markers'][_0x4069('0x84')](_0x1ca454,_0x4b1bcc);}return _0x4634d7[_0x4069('0x10')]((_0xbc5816,_0x4a12bb)=>{const _0x10d94d=_0x44da9f[_0x4069('0x35')][_0x4069('0xfb')](_0x4069('0x13')+_0xbc5816['id']),_0x50272a=_0x44da9f[_0x4069('0x35')][_0x4069('0xfb')](_0x4069('0x13')+_0x4a12bb['id']);return _0x10d94d[_0x4069('0xa0')][_0x4069('0x11a')](_0x50272a['start'])?-0x1:_0x10d94d[_0x4069('0xa0')][_0x4069('0x109')](_0x50272a[_0x4069('0xa0')])?0x1:_0x10d94d[_0x4069('0x9b')][_0x4069('0x11a')](_0x50272a['end'])?-0x1:_0x10d94d['end'][_0x4069('0x109')](_0x50272a[_0x4069('0x9b')])?0x1:_0x4069('0xb2')===_0xbc5816[_0x4069('0x8d')]?-0x1:0x1;}),{'root':_0x44da9f,'changes':_0x4634d7};function _0x101c2b(_0x5557c1,_0x30087a,_0x422a5d,_0x563401){const _0x519f9d=!!_0x1f3899[_0x30087a][_0x5557c1],_0x39fcdc=_0x519f9d?_0x1f3899[_0x30087a][_0x5557c1][_0x4069('0x89')]:null,_0x40a6e6=_0x30087a===_0x1f3899[_0x4069('0x37')]-0x1,_0x3e8971=_0x52e3fd[_0x5557c1][0x0],_0x514db9=_0x33e163[_0x4069('0x78')](_0x1f3899[_0x30087a][_0x4069('0x8f')]);!_0x36b46d[_0x5557c1]&&_0x519f9d?_0x36b46d[_0x5557c1]={'start':_0x422a5d,'tapeItem':_0x1f3899[_0x30087a],'userId':_0x39fcdc,'type':_0x5557c1}:_0x36b46d[_0x5557c1]&&!_0x519f9d?(_0x36b46d[_0x5557c1][_0x4069('0x9b')]=_0x422a5d,_0x47c8e5(_0x36b46d[_0x5557c1]),_0x36b46d[_0x5557c1]=null):_0x36b46d[_0x5557c1]&&_0x519f9d&&_0x36b46d[_0x5557c1]['userId']!==_0x39fcdc&&(_0x36b46d[_0x5557c1][_0x4069('0x9b')]=_0x422a5d,_0x3e8971&&_0x3e8971[_0x4069('0x89')]===_0x36b46d[_0x5557c1][_0x4069('0x89')]||_0x47c8e5(_0x36b46d[_0x5557c1]),_0x36b46d[_0x5557c1]={'start':_0x422a5d,'tapeItem':_0x1f3899[_0x30087a],'userId':_0x39fcdc,'type':_0x5557c1}),_0x36b46d[_0x5557c1]&&_0x514db9&&(_0x4069('0x119')!==_0x1f3899[_0x30087a][_0x4069('0x8d')]||_0x3e8971&&_0x3e8971['userId']===_0x39fcdc||_0x52e3fd[_0x5557c1][_0x4069('0x44')]({'userId':_0x39fcdc,'object':_0x1f3899[_0x30087a][_0x4069('0x8f')],'change':_0x36b46d[_0x5557c1]}),_0x4069('0x60')===_0x1f3899[_0x30087a][_0x4069('0x8d')]&&_0x3e8971&&_0x3e8971[_0x4069('0xd2')]===_0x1f3899[_0x30087a][_0x4069('0x8f')]&&(_0x52e3fd[_0x5557c1]['shift'](),_0x36b46d[_0x5557c1]=_0x3e8971[_0x4069('0x6a')])),_0x36b46d[_0x5557c1]&&_0x40a6e6&&(_0x36b46d[_0x5557c1][_0x4069('0x9b')]=_0x563401,_0x47c8e5(_0x36b46d[_0x5557c1]),_0x36b46d[_0x5557c1]=null);}function _0x47c8e5({start:_0x2030e7,end:_0x2c110e,tapeItem:_0x4c0b38,userId:_0x108984,type:_0x40519b}){const _0x20bb72=_0x4c0b38[_0x4069('0x8f')],_0x407e80=_0xca5291['schema']['isBlock'](_0x20bb72)&&!_0xca5291[_0x4069('0xc4')]['isLimit'](_0x20bb72),_0x21dc20=_0x2030e7[_0x4069('0x117')]==_0x2c110e['parent']&&_0x2c110e['isAtStart'];if(_0x407e80&&_0x21dc20)return;const _0x41ee04=_0xca5291[_0x4069('0xde')](_0x2030e7,_0x2c110e),_0x56eb4a=_0x30f247['get'](_0x108984),_0xe2415f=new _0x51339a({'author':_0x56eb4a,'type':_0x4069('0x2c')==_0x40519b||_0x4069('0x21')==_0x40519b?'add':_0x4069('0x100'),'data':{'isSuggestion':_0x4069('0x21')==_0x40519b||_0x4069('0xda')==_0x40519b},'createdAt':new Date(),'rootName':_0x53dd29});_0x4634d7[_0x4069('0xc5')](_0xe2415f),_0x44da9f[_0x4069('0x35')][_0x4069('0x84')](_0x4069('0x13')+_0xe2415f['id'],_0x41ee04);}function _0x3849ad(_0x3da0f5,_0x10b52d){const _0x19b501=_0x3da0f5[_0x4069('0x29')](),_0x598299=_0x10b52d[_0x4069('0x29')]();for(const _0x16ac55 of _0x19b501){if(_0x16ac55[0x1]!==_0x10b52d[_0x4069('0x8a')](_0x16ac55[0x0]))return!0x1;_0x598299['next']();}return _0x598299['next']()[_0x4069('0x5a')];}}['_setConversion'](){this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')](_0x4069('0x110'))['dataToMarker']({'view':'revision'}),this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')](_0x4069('0x11b'))[_0x4069('0x22')]({'model':_0x4069('0xa9'),'view':_0x2dd219=>{const _0x52af3d=_0x2dd219[_0x4069('0xea')][_0x4069('0x30')](':')[0x1],_0x54635a=this[_0x4069('0xa3')](_0x52af3d);if(!_0x54635a)return null;const _0x116fec=_0x4069('0xb2')==_0x54635a[_0x4069('0x8d')]?_0x4069('0xa5'):_0x4069('0x99'),_0x36b5d9=[_0x4069('0x11f'),_0x4069('0xff')+_0x116fec];return _0x54635a[_0x4069('0x11')][_0x4069('0x88')]&&_0x36b5d9[_0x4069('0xc5')]('ck-suggestion-marker-'+_0x116fec+'-new'),this[_0x4069('0x10c')]==_0x54635a&&_0x36b5d9[_0x4069('0xc5')]('ck-suggestion-marker--active'),{'classes':_0x36b5d9,'attributes':{'data-change-id':_0x52af3d}};}}),this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')]('upcast')[_0x4069('0xb2')](_0x1e1e1b=>{_0x1e1e1b['on'](_0x4069('0x69'),(_0x3c05ee,_0x20851d,_0x473ef4)=>{const _0x2fcb25=_0x20851d[_0x4069('0xdf')]['getChild'](0x0);if(!_0x2fcb25||!_0x2fcb25['is'](_0x4069('0x121'),'code'))return;if(!_0x473ef4['consumable'][_0x4069('0x47')](_0x2fcb25,{'attributes':[_0x4069('0x54'),_0x4069('0xf8')]}))return;const _0x413131=_0x20851d[_0x4069('0x102')][_0x4069('0xa0')][_0x4069('0x117')];_0x473ef4[_0x4069('0x51')][_0x4069('0xa6')](_0x4069('0x54'),_0x2fcb25['getAttribute'](_0x4069('0x54')),_0x413131),_0x473ef4[_0x4069('0x51')]['setAttribute'](_0x4069('0xf8'),_0x2fcb25['getAttribute'](_0x4069('0xf8')),_0x413131);},{'priority':_0x4069('0x66')});}),this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')](_0x4069('0x110'))[_0x4069('0xb2')](_0x27b60d=>{_0x27b60d['on'](_0x4069('0x121'),(_0x460b9e,_0x1477af,_0x43eec4)=>{if(!_0x43eec4[_0x4069('0x9f')]['consume'](_0x1477af['viewItem'],{'attributes':[_0x4069('0x54'),_0x4069('0xf8')]}))return;if(_0x1477af[_0x4069('0x102')]['isCollapsed'])return;const _0x3e88ec=_0x1477af[_0x4069('0x102')]['start'][_0x4069('0x117')];_0x3e88ec[_0x4069('0xf1')](_0x4069('0x54'))||_0x3e88ec[_0x4069('0xf1')](_0x4069('0xc2'))||(_0x43eec4[_0x4069('0x51')][_0x4069('0xa6')](_0x4069('0x54'),_0x1477af['viewItem'][_0x4069('0x8a')](_0x4069('0x54')),_0x3e88ec),_0x43eec4[_0x4069('0x51')]['setAttribute'](_0x4069('0xf8'),_0x1477af[_0x4069('0xdf')][_0x4069('0x8a')](_0x4069('0xf8')),_0x3e88ec));},{'priority':_0x4069('0x66')});}),this[_0x4069('0x3')]['conversion'][_0x4069('0xbb')](_0x4069('0x110'))[_0x4069('0x25')]({'view':{'name':_0x4069('0x108'),'attributes':{'vid':!0x0}},'model':{'key':_0x4069('0xc2'),'value':_0x2a19e0=>_0x2a19e0[_0x4069('0x8a')]('vid')}}),this[_0x4069('0x3')]['model']['schema']['on'](_0x4069('0x12'),(_0x24cfeb,[,_0x3f9afc])=>{[_0x4069('0x54'),_0x4069('0xf8'),_0x4069('0xc2')]['includes'](_0x3f9afc)&&(_0x24cfeb[_0x4069('0x4f')]=!0x0,_0x24cfeb[_0x4069('0x112')]());},{'priority':_0x4069('0x57')}),this['editor']['conversion'][_0x4069('0xbb')]('dataDowncast')[_0x4069('0xb2')](_0x36185b=>{_0x36185b['on']('attribute:vid',(_0x5932e4,_0x1a7005,_0x4444d3)=>{if('\x20'!=_0x1a7005[_0x4069('0x8f')][_0x4069('0x11')]||_0x1a7005[_0x4069('0x8f')][_0x4069('0x10a')][_0x4069('0x5d')]>0x1)return;if(!_0x4444d3[_0x4069('0x9f')][_0x4069('0x47')](_0x1a7005[_0x4069('0x8f')],_0x5932e4[_0x4069('0xb8')]))return;const _0x54c532=_0x4444d3['writer'],_0x254ee6=_0x4444d3[_0x4069('0x7f')][_0x4069('0x9c')](_0x1a7005[_0x4069('0x10f')]);_0x54c532[_0x4069('0xeb')](_0x254ee6,_0x54c532['createAttributeElement'](_0x4069('0x108')));});}),this[_0x4069('0x3')]['conversion'][_0x4069('0xbb')](_0x4069('0x9e'))['markerToData']({'model':_0x4069('0xa9')}),this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0xdc')]['on']('addMarker:revision',function(_0x1e88c8){const _0x25743a=_0x1e88c8['plugins'][_0x4069('0xfb')](_0x4069('0x24'));return(_0x2222ad,_0x462452,_0x1202c9)=>{const _0x5167dc=_0x462452[_0x4069('0xea')][_0x4069('0x30')](':')[0x1],_0x484dfe=_0x25743a[_0x4069('0xa3')](_0x5167dc);if(!_0x484dfe)return null;const _0x2459f2=_0x4069('0xb2')==_0x484dfe['type']?_0x4069('0x30'):_0x4069('0xae');if(!_0x1202c9['consumable'][_0x4069('0xee')](_0x462452[_0x4069('0x1')],_0x2222ad[_0x4069('0xb8')]))return;const _0x154e81=_0x462452[_0x4069('0x1')]['getWalker'](),_0x5a2cd0=_0x462452[_0x4069('0x1')][_0x4069('0xa0')],_0x69091b=_0x1e88c8[_0x4069('0xba')][_0x4069('0xc4')];let _0x287590=null,_0x3b59c4=null,_0x41314c=!0x1,_0x1380fd=!0x1;for(const _0x53d422 of _0x154e81){const _0x4fdb78=_0x53d422[_0x4069('0x8f')];_0x41314c=_0x41314c||_0x69091b[_0x4069('0xd1')](_0x4fdb78);const _0x29cd2b=_0x1202c9[_0x4069('0x7f')][_0x4069('0x0')](_0x4fdb78);if(_0x29cd2b&&_0x29cd2b[_0x4069('0xf')]('addHighlight'))return;'elementEnd'==_0x53d422[_0x4069('0x8d')]&&(_0x69091b[_0x4069('0xfe')](_0x4fdb78)&&!_0x69091b['isLimit'](_0x4fdb78)&&(_0x4fdb78['nextSibling']||_0x5a2cd0[_0x4069('0x2d')]?_0x287590&&_0x287590['parent']==_0x4fdb78||(_0x287590=_0x4fdb78,_0x4cd7d9(_0x53d422[_0x4069('0xdd')]),_0x1380fd=!0x0):_0x3b59c4=_0x3b59c4||_0x53d422[_0x4069('0xdd')]));}function _0x4cd7d9(_0x518808){const _0x5bc133=_0x1202c9[_0x4069('0x51')][_0x4069('0xc')](_0x4069('0x108'),{'class':_0x4069('0xff')+_0x2459f2}),_0x401153=_0x1202c9['mapper'][_0x4069('0x48')](_0x518808);_0x484dfe[_0x4069('0x11')][_0x4069('0x88')]&&_0x1202c9[_0x4069('0x51')][_0x4069('0x3d')](_0x4069('0xff')+_0x2459f2+'-new',_0x5bc133),_0x25743a['activeChange']==_0x484dfe&&_0x1202c9[_0x4069('0x51')][_0x4069('0x3d')](_0x4069('0x4d'),_0x5bc133),_0x1202c9[_0x4069('0x51')][_0x4069('0x7c')](_0x401153,_0x5bc133),_0x1202c9[_0x4069('0x7f')][_0x4069('0x2b')](_0x5bc133,_0x462452[_0x4069('0xea')]);}_0x41314c||_0x1380fd||!_0x3b59c4||_0x4cd7d9(_0x3b59c4);};}(this[_0x4069('0x3')]),{'priority':_0x4069('0x8')}),this[_0x4069('0x3')]['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x39dceb,_0x1b6ba4,_0x180d63)=>{const _0x55e846=_0x180d63['mapper'][_0x4069('0xc3')](_0x1b6ba4['markerName']);if(_0x55e846)for(const _0x412e10 of _0x55e846)(_0x412e10[_0x4069('0x4e')](_0x4069('0x9d'))||_0x412e10[_0x4069('0x4e')](_0x4069('0xe4')))&&(_0x180d63[_0x4069('0x7f')][_0x4069('0x75')](_0x412e10,_0x1b6ba4[_0x4069('0xea')]),_0x180d63[_0x4069('0x51')][_0x4069('0x100')](_0x412e10));},{'priority':_0x4069('0x8')}),this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0xdc')]['on'](_0x4069('0x7'),(_0x27e639,_0x43a1a9,_0x54dbbc)=>{const _0x62a67=_0x43a1a9[_0x4069('0xea')][_0x4069('0x30')](':')[0x1],_0x5958af=this[_0x4069('0xa3')](_0x62a67);if(!_0x5958af)return null;const _0x1da5b6='add'==_0x5958af[_0x4069('0x8d')]?_0x4069('0x30'):'merge';if(_0x54dbbc[_0x4069('0x9f')][_0x4069('0xee')](_0x43a1a9[_0x4069('0x1')],_0x27e639[_0x4069('0xb8')]))for(const _0x3fc8f3 of _0x43a1a9[_0x4069('0x1')][_0x4069('0xb5')]()){if(!_0x3fc8f3['is'](_0x4069('0x121'),_0x4069('0x62')))continue;const _0x3224ea=_0x54dbbc[_0x4069('0x51')][_0x4069('0xc')](_0x4069('0x108'),{'class':_0x4069('0xff')+_0x1da5b6}),_0x528b20=_0x54dbbc['mapper'][_0x4069('0x48')](this[_0x4069('0x3')][_0x4069('0xba')]['createPositionBefore'](_0x3fc8f3));_0x5958af[_0x4069('0x11')][_0x4069('0x88')]&&_0x54dbbc[_0x4069('0x51')]['addClass'](_0x4069('0xff')+_0x1da5b6+_0x4069('0x32'),_0x3224ea),this[_0x4069('0x10c')]==_0x5958af&&_0x54dbbc[_0x4069('0x51')]['addClass'](_0x4069('0x4d'),_0x3224ea),_0x54dbbc[_0x4069('0x51')]['insert'](_0x528b20,_0x3224ea),_0x54dbbc[_0x4069('0x7f')]['bindElementToMarker'](_0x3224ea,_0x43a1a9[_0x4069('0xea')]);}},{'priority':'high'}),this['editor']['model'][_0x4069('0xb4')]['on'](_0x4069('0x6a'),()=>{this[_0x4069('0x3')]['editing']['view']['change'](_0x59995d=>{for(const _0x39327c of this['editor'][_0x4069('0xba')][_0x4069('0xb4')]['getRootNames']()){const _0x5b9f3c=this[_0x4069('0x3')][_0x4069('0xba')]['document'][_0x4069('0xe3')](_0x39327c),_0x181634=this['editor']['editing'][_0x4069('0x6d')][_0x4069('0xb4')]['getRoot'](_0x39327c);if(_0x181634){const _0x12a7b9=_0x5b9f3c[_0x4069('0x8a')](_0x4069('0x8c'));if(_0x59995d[_0x4069('0x8e')](_0x4069('0x8b'),_0x181634),_0x59995d[_0x4069('0xaf')](_0x4069('0x3a'),_0x181634),_0x59995d['removeClass'](_0x4069('0xd9'),_0x181634),_0x59995d['removeClass'](_0x4069('0xd0'),_0x181634),_0x12a7b9){const _0x1cf479=this[_0x4069('0xa3')](_0x12a7b9);if(!_0x1cf479)return null;_0x59995d[_0x4069('0xa6')](_0x4069('0x8b'),_0x12a7b9,_0x181634),_0x59995d['addClass'](_0x4069('0xbc')+_0x1cf479[_0x4069('0x8d')],_0x181634),this[_0x4069('0x10c')]==_0x1cf479&&_0x59995d[_0x4069('0x3d')](_0x4069('0xd0'),_0x181634);}}}});}),this[_0x4069('0x3')]['conversion']['for']('upcast')[_0x4069('0x5c')]({'view':_0x4069('0xbf'),'model':_0x1af940=>_0x4069('0x40')+_0x1af940,'converterPriority':_0x4069('0x57')}),this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')]('upcast')[_0x4069('0x5c')]({'view':_0x4069('0xe2'),'model':_0x39ad39=>'revision-suggestion:'+_0x39ad39,'converterPriority':'highest'}),this[_0x4069('0x3')][_0x4069('0x16')][_0x4069('0xbb')](_0x4069('0x9e'))[_0x4069('0x52')]({'model':_0x4069('0xd7'),'view':_0x5a99e7=>({'name':'suggestion:'+_0x5a99e7,'group':_0x4069('0xd7')}),'converterPriority':_0x4069('0x57')}),this['editor'][_0x4069('0x16')][_0x4069('0xbb')]('editingDowncast')[_0x4069('0x22')]({'model':_0x4069('0xd7'),'view':_0x792cd1=>{const _0x1f9ef0=_0x792cd1[_0x4069('0xea')]['split'](':')[0x1];return _0x4069('0xa5')!=_0x1f9ef0&&_0x4069('0x99')!=_0x1f9ef0?null:{'classes':[_0x4069('0xe9'),_0x4069('0x46')+_0x1f9ef0]};}}),this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0xdc')]['on'](_0x4069('0x4c'),et(this[_0x4069('0x3')],_0x4069('0xae')),{'priority':_0x4069('0x8')}),this['editor'][_0x4069('0x6b')][_0x4069('0xdc')]['on'](_0x4069('0x53'),et(this['editor'],_0x4069('0x30')),{'priority':_0x4069('0x8')}),this[_0x4069('0x3')]['editing']['downcastDispatcher']['on'](_0x4069('0xbd'),(_0x5e48f0,_0x17fde2,_0x5e2fbb)=>{const _0x36debe=_0x5e2fbb['mapper'][_0x4069('0xc3')](_0x17fde2[_0x4069('0xea')]);if(_0x36debe)for(const _0xb6c0b2 of _0x36debe)_0xb6c0b2['is'](_0x4069('0x7a'))&&(_0x5e2fbb['mapper'][_0x4069('0x75')](_0xb6c0b2,_0x17fde2[_0x4069('0xea')]),_0x5e2fbb['writer'][_0x4069('0x100')](_0xb6c0b2));},{'priority':_0x4069('0x8')});}['_getChangeFromId'](_0x1d202c){return this[_0x4069('0xe7')][_0x4069('0xfb')](_0x1d202c);}[_0x4069('0xf5')](_0xbef917){return this[_0x4069('0xd4')]&&this[_0x4069('0xd4')][_0x4069('0xf0')](),this[_0x4069('0xd4')]=new _0x54ed56(this[_0x4069('0x3')][_0x4069('0xd6')],_0xbef917),this['_changeView'];}[_0x4069('0x36')](){this[_0x4069('0x3')][_0x4069('0xba')][_0x4069('0xb4')][_0x4069('0x3f')]['observeMarkers'](_0x4069('0xa9')),this['on'](_0x4069('0xfc'),(_0x5e8cd9,_0x3f24f7,_0xffa76c,_0x5dc2e2)=>{_0x5dc2e2&&this[_0x4069('0x1b')][_0x4069('0x100')](_0x5dc2e2),_0xffa76c&&(this['_balloon'][_0x4069('0xb2')]({'view':_0xffa76c,'stackId':_0x4069('0x4b'),'position':{'target':()=>{const _0x340bb4=this[_0x4069('0x3')]['editing'],_0x5c7a3f=this[_0x4069('0xa3')](_0xffa76c[_0x4069('0x56')]);let _0x43303b;if(_0x5c7a3f[_0x4069('0x11')][_0x4069('0x115')]){const _0x333892=_0x340bb4[_0x4069('0x6d')]['getDomRoot'](_0x5c7a3f[_0x4069('0xed')]);_0x43303b=Array[_0x4069('0x18')](_0x333892[_0x4069('0xe8')]());}else{const _0x261323=this[_0x4069('0x3')][_0x4069('0xba')]['markers']['get'](_0x4069('0x13')+_0xffa76c[_0x4069('0x56')]);_0x43303b=Array[_0x4069('0x18')](_0x340bb4[_0x4069('0x7f')][_0x4069('0xc3')](_0x261323['name']))['map'](_0x5c9c0f=>_0x340bb4[_0x4069('0x6d')]['domConverter']['mapViewToDom'](_0x5c9c0f))[_0x4069('0x74')](_0x51bf00=>Array[_0x4069('0x18')](_0x51bf00['getClientRects']()))[_0x4069('0x17')]();}if(!this[_0x4069('0x73')])return _0x43303b[0x0];return _0x43303b[_0x4069('0x67')](_0x31d20b=>_0x31d20b['top']-0x3<=this[_0x4069('0x73')]['y']&&_0x31d20b[_0x4069('0x2e')]+0x3>=this['_activeViewTarget']['y']&&_0x31d20b[_0x4069('0x106')]-0x3<=this[_0x4069('0x73')]['x']&&_0x31d20b[_0x4069('0xce')]+0x3>=this[_0x4069('0x73')]['x'])||_0x43303b[0x0];}}}),this[_0x4069('0x1b')][_0x4069('0xca')]('revisionHistoryLabel'));}),this['on'](_0x4069('0x92'),(_0x4d034c,_0xa3099c,_0x3367ba,_0x3d8518)=>{this[_0x4069('0x38')]=_0x3367ba?this[_0x4069('0xf5')](_0x3367ba):null,this[_0x4069('0x3')][_0x4069('0xba')]['change'](()=>{const _0x3a089c=this[_0x4069('0x3')]['editing'];_0x3d8518&&(_0x3d8518[_0x4069('0x11')][_0x4069('0x115')]?_0x3a089c[_0x4069('0x6d')]['change'](_0x26063e=>{_0x26063e[_0x4069('0xaf')](_0x4069('0xd0'),_0x3a089c[_0x4069('0x6d')]['document'][_0x4069('0xe3')](_0x3d8518[_0x4069('0xed')]));}):_0x3a089c[_0x4069('0x7b')](_0x4069('0x13')+_0x3d8518['id'])),_0x3367ba&&(_0x3367ba[_0x4069('0x11')]['isOnRoot']?_0x3a089c[_0x4069('0x6d')]['change'](_0x1f74ef=>{_0x1f74ef[_0x4069('0x3d')](_0x4069('0xd0'),_0x3a089c['view']['document'][_0x4069('0xe3')](_0x3367ba[_0x4069('0xed')]));}):_0x3a089c['reconvertMarker']('revision:'+_0x3367ba['id']));});}),this[_0x4069('0x3c')](this[_0x4069('0x3')][_0x4069('0x6b')]['view'][_0x4069('0xb4')],'mouseover',(_0x2bd582,_0x30f7db)=>{if(this[_0x4069('0x10c')])return;const _0x22355f=this[_0x4069('0x23')](_0x30f7db[_0x4069('0x72')]),_0x467502=this[_0x4069('0xe7')][_0x4069('0xfb')](_0x22355f);_0x467502?(this[_0x4069('0x73')]={'x':_0x30f7db[_0x4069('0xb0')]['x'],'y':_0x30f7db['domEvent']['y']},this['activeView']=this[_0x4069('0xf5')](_0x467502)):(this[_0x4069('0x73')]=null,this[_0x4069('0x38')]=null);}),this['listenTo'](this[_0x4069('0x3')][_0x4069('0x6b')][_0x4069('0x6d')]['document'],_0x4069('0x1a'),(_0x4c3d88,_0x485f14)=>{const _0x48433e=this[_0x4069('0x23')](_0x485f14[_0x4069('0x72')]),_0x290700=this[_0x4069('0xe7')][_0x4069('0xfb')](_0x48433e);_0x290700?(this[_0x4069('0x73')]={'x':_0x485f14['domEvent']['x'],'y':_0x485f14[_0x4069('0xb0')]['y']},_0x290700===this[_0x4069('0x10c')]?this[_0x4069('0x1b')]['updatePosition']():this[_0x4069('0x10c')]=_0x290700):(this[_0x4069('0x73')]=null,this[_0x4069('0x10c')]=null);});}[_0x4069('0x23')](_0x21d4c0){do{const _0x5c460b=_0x21d4c0[_0x4069('0x8a')](_0x4069('0x8b'));if(_0x5c460b)return _0x5c460b;_0x21d4c0=_0x21d4c0[_0x4069('0x10a')];}while(_0x21d4c0);return null;}[_0x4069('0x116')](){this['editor'][_0x4069('0xba')]['change'](_0x122710=>{for(const _0x225339 of this['editor']['model']['markers'])_0x122710['removeMarker'](_0x225339);});}}function et(_0x12f3fe,_0xd72ced){return(_0x5bc125,_0x4b94ed,_0x2c9349)=>{if(!_0x2c9349[_0x4069('0x9f')][_0x4069('0xee')](_0x4b94ed[_0x4069('0x1')],_0x5bc125[_0x4069('0xb8')]))return;const _0x214369=_0x4b94ed[_0x4069('0x1')]['getWalker'](),_0x2176e2=_0x4b94ed[_0x4069('0x1')]['start'],_0x14d180=_0x12f3fe['model'][_0x4069('0xc4')];let _0x5c3ee9=null,_0x285307=null,_0x25e0b9=!0x1,_0x48178c=!0x1;for(const _0x584d23 of _0x214369){const _0x1d975e=_0x584d23[_0x4069('0x8f')];_0x25e0b9=_0x25e0b9||_0x14d180[_0x4069('0xd1')](_0x1d975e);const _0x194512=_0x2c9349[_0x4069('0x7f')][_0x4069('0x0')](_0x1d975e);if(_0x194512&&_0x194512[_0x4069('0xf')](_0x4069('0x87')))return;_0x4069('0x60')==_0x584d23['type']&&(_0x14d180[_0x4069('0xfe')](_0x1d975e)&&!_0x14d180['isLimit'](_0x1d975e)&&(_0x1d975e[_0x4069('0x10d')]||_0x2176e2['isAtEnd']?_0x5c3ee9&&_0x5c3ee9['parent']==_0x1d975e||(_0x5c3ee9=_0x1d975e,_0x491761(_0x584d23[_0x4069('0xdd')]),_0x48178c=!0x0):_0x285307=_0x285307||_0x584d23[_0x4069('0xdd')]));}function _0x491761(_0x49ce12){const _0x5819a4=_0x2c9349[_0x4069('0x7f')]['toViewPosition'](_0x49ce12),_0x48ec08=_0x2c9349['writer'][_0x4069('0xc')](_0x4069('0x108'),{'class':'ck-suggestion-preview-marker-'+_0xd72ced});_0x2c9349[_0x4069('0x51')][_0x4069('0x7c')](_0x5819a4,_0x48ec08),_0x2c9349[_0x4069('0x7f')][_0x4069('0x2b')](_0x48ec08,_0x4b94ed['markerName']);}_0x25e0b9||_0x48178c||!_0x285307||_0x491761(_0x285307);};}export class RestoreRevisionCommand extends _0x3dd145{constructor(_0x58bd76){super(_0x58bd76);const _0x1e57bd=_0x58bd76[_0x4069('0x6f')][_0x4069('0xfb')](d);this[_0x4069('0xc9')]=!0x1,this[_0x4069('0x3c')](_0x1e57bd,_0x4069('0x1d'),()=>this[_0x4069('0x111')]()),this['listenTo'](_0x1e57bd,_0x4069('0x97'),()=>this[_0x4069('0x111')]());}['execute'](){const _0x91b6ef=this[_0x4069('0x3')],_0x5204b6=_0x91b6ef[_0x4069('0x6f')][_0x4069('0xfb')](d),_0x50b789=_0x5204b6[_0x4069('0x59')]?_0x5204b6['diff']['newRevisionId']:null;_0x91b6ef[_0x4069('0xe')][_0x4069('0xfb')](_0x4069('0x43'))[_0x4069('0xb6')](_0x50b789);}[_0x4069('0x111')](){const {isReady:_0x5464eb,isEnabled:_0x3d2952}=this[_0x4069('0x3')][_0x4069('0x6f')]['get'](d);this[_0x4069('0xa7')]=_0x5464eb&&_0x3d2952;}}export class ShowChangeCommand extends _0x3dd145{constructor(_0x250225,{direction:_0x4db991}){super(_0x250225);const _0x27008b=_0x250225['plugins']['get'](d);this[_0x4069('0xc9')]=!0x1,this[_0x4069('0x4')]=_0x4069('0xe0')===_0x4db991?0x1:-0x1,this[_0x4069('0x3c')](_0x27008b,_0x4069('0x1d'),()=>this['refresh']()),this['listenTo'](_0x27008b,_0x4069('0x97'),()=>this['refresh']()),this[_0x4069('0x3c')](_0x27008b,'change:activeChange',()=>this[_0x4069('0x111')]());}[_0x4069('0x68')](){const _0x26642a=this[_0x4069('0x3')],_0x5c11c3=_0x26642a[_0x4069('0x6f')][_0x4069('0xfb')](d),{isNavigationMode:_0x33457f,currentChangeNumber:_0x11f8ae}=_0x5c11c3;let _0x256f52;if(_0x5c11c3['activeChange']=_0x33457f?_0x5c11c3[_0x4069('0x15')]['changes'][_0x4069('0xfb')](_0x11f8ae+this[_0x4069('0x4')]):_0x5c11c3['diff'][_0x4069('0xcc')]['first'],_0x5c11c3['activeChange'][_0x4069('0x11')][_0x4069('0x115')])_0x256f52=_0x26642a[_0x4069('0x6b')]['view'][_0x4069('0x91')](_0x5c11c3[_0x4069('0x10c')][_0x4069('0xed')]);else{const _0x19a42f=_0x26642a[_0x4069('0xba')][_0x4069('0x35')][_0x4069('0xfb')](_0x4069('0x13')+_0x5c11c3[_0x4069('0x10c')]['id']);_0x256f52=_0x47b482(_0x26642a[_0x4069('0x6b')],_0x19a42f);}_0x4b51d0({'target':_0x256f52,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4da200,currentChangeNumber:_0x14ec23,numberOfChanges:_0x4f7322,isReady:_0x96e603,isEnabled:_0x41252f}=this['editor'][_0x4069('0x6f')][_0x4069('0xfb')](d);this[_0x4069('0xa7')]=!!(_0x41252f&&_0x96e603&&_0x4f7322)&&(!_0x4da200||(0x1===this[_0x4069('0x4')]?_0x14ec23<_0x4f7322-0x1:_0x14ec23>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b01=['add','isVisible','model','ck-on','isOpen','isReady','_action','first','locale','ck-revision-history-sidebar__revision__actions','source','Compare\x20against\x20selected','map','change:isActionsDropdownOpen','threeVerticalDots','Show\x20more\x20items','action','bindTemplate','name','bind','set','function','Restore\x20this\x20revision','panelPosition','children','listView','listenTo','isEnabled'];(function(_0x3d7b41,_0x1b01a0){const _0x1673f3=function(_0x173b3f){while(--_0x173b3f){_0x3d7b41['push'](_0x3d7b41['shift']());}};_0x1673f3(++_0x1b01a0);}(_0x1b01,0x166));const _0x1673=function(_0x3d7b41,_0x1b01a0){_0x3d7b41=_0x3d7b41-0x0;let _0x1673f3=_0x1b01[_0x3d7b41];return _0x1673f3;};import{Collection as _0x392fd4}from'ckeditor5/src/utils';import{icons as _0x252520}from'ckeditor5/src/core';import{Model as _0xa34333,addListToDropdown as _0x430692,createDropdown as _0xd653e9}from'ckeditor5/src/ui';import{getTranslation as _0x345d66}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x48711c,_0x846102){const _0x21446e=_0x48711c[_0x1673('0x17')],_0x508616=_0x48711c[_0x1673('0xe')],_0x179241=_0xd653e9(_0x508616);_0x179241[_0x1673('0x1')]='sw';const _0x12f900=function(_0x4673ba,_0x419105){const _0x6b7e41=function(_0x2a7b11,_0x4b7a51){const _0x4441fd=_0x2a7b11['locale'],_0xaaa101={'Compare\x20against\x20selected':_0x345d66(_0x4441fd,_0x1673('0x11')),'Name\x20this\x20revision':_0x345d66(_0x4441fd,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x345d66(_0x4441fd,_0x1673('0x0'))};return _0x4b7a51[_0x1673('0x12')](_0x1b6f21=>{const _0x3883a8=_0xaaa101[_0x1b6f21['name']];return _0x3883a8&&_0x3883a8!==_0x1b6f21['name']&&(_0x1b6f21[_0x1673('0x18')]=_0x3883a8),_0x1b6f21;});}(_0x4673ba,_0x419105),_0x287e90=new _0x392fd4();for(const _0x3388e0 of _0x6b7e41){const _0x579eae={'type':'button','model':new _0xa34333({'label':_0x3388e0[_0x1673('0x18')],'class':_0x3388e0['class'],'withText':!0x0,'_action':_0x3388e0[_0x1673('0x16')]})};_0x579eae[_0x1673('0x8')][_0x1673('0x19')](_0x1673('0x5'))['to'](_0x4673ba,'isActionsDropdownOpen',_0x24272c=>_0x1673('0x1b')!=typeof _0x3388e0[_0x1673('0x5')]||(!_0x24272c||_0x3388e0[_0x1673('0x5')](_0x4673ba))),_0x287e90[_0x1673('0x6')](_0x579eae);}return _0x287e90;}(_0x48711c,_0x846102);return _0x48711c['bind']('isActionsDropdownOpen')['to'](_0x179241,_0x1673('0xa')),_0x179241['buttonView'][_0x1673('0x1a')]({'label':_0x345d66(_0x508616,_0x1673('0x15')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x252520[_0x1673('0x14')]}),_0x179241['extendTemplate']({'attributes':{'class':[_0x1673('0xf'),_0x21446e['if']('isActionsDropdownOpen',_0x1673('0x9'))]},'on':{'click':_0x21446e['to'](_0x2acfc1=>_0x2acfc1['stopPropagation']())}}),_0x179241['on']('execute',_0x4fbe16=>{_0x48711c[_0x1673('0xb')]&&'function'==typeof _0x4fbe16[_0x1673('0x10')]['_action']&&_0x4fbe16[_0x1673('0x10')][_0x1673('0xc')](_0x48711c);}),_0x430692(_0x179241,_0x12f900),_0x179241[_0x1673('0x4')](_0x48711c,_0x1673('0x13'),(_0x2b9413,_0x57e2be,_0x55d58e)=>{if(_0x55d58e)for(const _0x21dcad of _0x179241[_0x1673('0x3')]['items']){const _0x5c81ad=_0x21dcad[_0x1673('0x2')][_0x1673('0xd')],_0x159824=_0x846102['find'](_0x70aca6=>_0x70aca6[_0x1673('0x16')]===_0x5c81ad[_0x1673('0xc')])[_0x1673('0x7')];_0x21dcad[_0x1673('0x7')]=void 0x0===_0x159824||_0x159824(_0x48711c);}}),_0x179241;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c84=['0\x200\x2011\x2010','span','setTemplate','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','name'];(function(_0x53b227,_0x1c8497){const _0x262185=function(_0x23624d){while(--_0x23624d){_0x53b227['push'](_0x53b227['shift']());}};_0x262185(++_0x1c8497);}(_0x1c84,0x1c3));const _0x2621=function(_0x53b227,_0x1c8497){_0x53b227=_0x53b227-0x0;let _0x262185=_0x1c84[_0x53b227];return _0x262185;};import{View as _0x539067,IconView as _0x4b9701}from'ckeditor5/src/ui';import{getTranslation as _0x12b011}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x2a8fc6 from'../../../theme/icons/user.svg';export default class ti extends _0x539067{constructor(_0x352696,_0x96e99d,_0x14cdc6){super(_0x352696);const _0x833062=new _0x4b9701();_0x833062['set']({'content':_0x2a8fc6,'viewBox':_0x2621('0x5')});const _0x2d5220=['ck',_0x2621('0x3')];_0x14cdc6&&_0x2d5220['push']('ck-revision-history-sidebar__revision-author_creator');const _0x171d1a=[{'tag':_0x2621('0x0'),'attributes':{'class':['ck',_0x2621('0x2')],'title':_0x12b011(_0x352696,_0x14cdc6?'Revision\x20creator':'Revision\x20author')},'children':[_0x833062,_0x96e99d[_0x2621('0x4')]]}];this[_0x2621('0x1')]({'tag':'li','attributes':{'class':_0x2d5220},'children':_0x171d1a});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2401=['span','extendTemplate','Revision\x20name','ck-revision-history-sidebar__revision-name'];(function(_0x4db31e,_0x2401be){var _0xfee94d=function(_0x1c0b11){while(--_0x1c0b11){_0x4db31e['push'](_0x4db31e['shift']());}};_0xfee94d(++_0x2401be);}(_0x2401,0x1aa));var _0xfee9=function(_0x4db31e,_0x2401be){_0x4db31e=_0x4db31e-0x0;var _0xfee94d=_0x2401[_0x4db31e];return _0xfee94d;};import{LabeledFieldView as _0x27bc68}from'ckeditor5/src/ui';import{getTranslation as _0x1e65bf}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x27bc68{constructor(_0x7595c5,_0x1ce1bc){super(_0x7595c5,_0x1ce1bc),this['set']({'label':_0x1e65bf(_0x7595c5,_0xfee9('0x0'))}),this[_0xfee9('0x3')]({'tag':_0xfee9('0x2'),'attributes':{'class':[_0xfee9('0x1')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a7d=['unhighlight','revisionNameView','set','value','deselect','render','fieldView','uiLanguage','isHighlighted','isEnabled','bindTemplate','map','ck-revision-history-sidebar__revision__date','creator','ck-revision-history-sidebar__revision-authors','revisionActionsView','ck-reset','extendTemplate','ck-revision-history-sidebar__actions_dropdown_open','bind','ck-revision-history-sidebar__revision_selected','div','name','isSelected','element','isReady','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision-wrapper','change','highlight','isActionsDropdownOpen','220','setTemplate','ck-revision-history-sidebar__revision__controls-wrapper','closest','srcElement','ck-revision-history-sidebar__revision','unshift','select','isConfirm','fire','from','createdAt','ck-disabled','ck-revision-history-sidebar__revision_highlighted'];(function(_0x1b59bc,_0x5a7d05){const _0x329d75=function(_0x4bea08){while(--_0x4bea08){_0x1b59bc['push'](_0x1b59bc['shift']());}};_0x329d75(++_0x5a7d05);}(_0x5a7d,0xd6));const _0x329d=function(_0x1b59bc,_0x5a7d05){_0x1b59bc=_0x1b59bc-0x0;let _0x329d75=_0x5a7d[_0x1b59bc];return _0x329d75;};import{View as _0x31440f,createLabeledInputText as _0x15f0a5}from'ckeditor5/src/ui';import{ConfirmMixin as _0x51151b}from'ckeditor5-collaboration/src/collaboration-core';import _0x35a663 from'./revisionnameview';import _0x453756 from'./revisionauthorview';import{dateToPrettyFormat as _0x3f768c}from'./utils';import{createActionsDropdownView as _0x5b0b90}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x51151b(_0x31440f){constructor(_0x3e48a5,_0xa9703e,_0x32a27e){super(_0x3e48a5);const _0x3280c8=this[_0x329d('0x15')],_0x33c188=function(_0x3cdd11,_0x2c752f){const _0x2716d1=Array[_0x329d('0x7')](_0x2c752f['authors'])['filter'](_0x1edf6a=>_0x1edf6a!=_0x2c752f[_0x329d('0x18')]);return _0x2c752f[_0x329d('0x18')]&&_0x2716d1[_0x329d('0x3')](_0x2c752f['creator']),_0x2716d1[_0x329d('0x16')](_0x32d337=>new _0x453756(_0x3cdd11,_0x32d337,_0x32d337==_0x2c752f[_0x329d('0x18')]));}(_0x3e48a5,_0xa9703e);this['id']=_0xa9703e['id'],this['_revision']=_0xa9703e,this[_0x329d('0x1e')](_0x329d('0x21'),'createdAt')['to'](_0xa9703e),this['bind']('_createdAtFormatted')['to'](this,_0x329d('0x8'),_0xb409d1=>_0xb409d1?_0x3f768c(_0x3e48a5[_0x329d('0x12')],_0xb409d1):void 0x0),this[_0x329d('0xd')]('isSelected',!0x1),this[_0x329d('0xd')](_0x329d('0x13'),!0x1),this[_0x329d('0xd')](_0x329d('0x29'),!0x1),this[_0x329d('0xd')](_0x329d('0x24'),!0x1),this[_0x329d('0xd')](_0x329d('0x14'),!0x1),this['revisionNameView']=new _0x35a663(_0x3e48a5,_0x15f0a5),this['revisionNameView'][_0x329d('0x11')][_0x329d('0x1c')]({'attributes':{'maxlength':_0x329d('0x2a')}}),this['revisionNameView'][_0x329d('0x11')][_0x329d('0x1e')](_0x329d('0xe'),'placeholder')['to'](this,_0x329d('0x21'),'_createdAtFormatted'),this[_0x329d('0xc')]['bind']('isEnabled')['to'](this,'isSelected',this,_0x329d('0x14'),(_0x469acd,_0x51de34)=>_0x469acd&&_0x51de34),this[_0x329d('0x1a')]=_0x32a27e&&_0x32a27e['length']?_0x5b0b90(this,_0x32a27e):'',this['revisionActionsView']&&this['revisionActionsView'][_0x329d('0x1e')]('isEnabled')['to'](this),this[_0x329d('0x2b')]({'tag':'div','attributes':{'class':['ck',_0x329d('0x1b'),_0x329d('0x26'),_0x3280c8['if'](_0x329d('0x5'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x329d('0x20'),'attributes':{'class':['ck',_0x329d('0x1b'),_0x329d('0x2'),_0x3280c8['if'](_0x329d('0x14'),_0x329d('0x9'),_0x8593c8=>!_0x8593c8),_0x3280c8['if'](_0x329d('0x22'),_0x329d('0x1f')),_0x3280c8['if'](_0x329d('0x13'),_0x329d('0xa')),_0x3280c8['if']('isActionsDropdownOpen',_0x329d('0x1d'))]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck',_0x329d('0x17')]},'children':[{'text':_0x3280c8['to']('_createdAtFormatted')}]},{'tag':_0x329d('0x20'),'attributes':{'class':['ck',_0x329d('0x2c')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x329d('0x19')]},'children':_0x33c188}]},this['revisionActionsView']],'on':{'click':_0x3280c8['to'](_0x2ded60=>{_0x2ded60[_0x329d('0x1')][_0x329d('0x0')](_0x329d('0x25'))||this[_0x329d('0x24')]&&this[_0x329d('0x14')]&&this[_0x329d('0x6')](_0x329d('0x4'),{'id':this['id']});})}}]});}[_0x329d('0x10')](){super[_0x329d('0x10')]();const _0x3ddd98=this[_0x329d('0xc')]['fieldView'][_0x329d('0x23')];this['listenTo'](_0x3ddd98,_0x329d('0x27'),()=>{this[_0x329d('0x6')]('setName',{'id':this['id'],'name':_0x3ddd98['value']});});}[_0x329d('0x4')](){this['isSelected']=!0x0;}[_0x329d('0xf')](){this['isSelected']=!0x1;}[_0x329d('0x28')](){this[_0x329d('0x13')]=!0x0;}[_0x329d('0xb')](){this[_0x329d('0x13')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b9d=['span','click','true','setTemplate','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','set','ck-hidden','button','isVisible','false','toggle'];(function(_0x43d0b9,_0x2b9d2d){const _0x3a0220=function(_0x52efec){while(--_0x52efec){_0x43d0b9['push'](_0x43d0b9['shift']());}};_0x3a0220(++_0x2b9d2d);}(_0x2b9d,0x181));const _0x3a02=function(_0x43d0b9,_0x2b9d2d){_0x43d0b9=_0x43d0b9-0x0;let _0x3a0220=_0x2b9d[_0x43d0b9];return _0x3a0220;};import{View as _0x2c1aea}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2c1aea{constructor(_0xfb1e11){super(_0xfb1e11);const _0x2be07c=this['bindTemplate'];this[_0x3a02('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x3a02('0x2')]({'tag':'span','attributes':{'class':['ck',_0x3a02('0x4'),_0x2be07c['if'](_0x3a02('0x8'),_0x3a02('0x6'),_0x429c94=>!_0x429c94),_0x2be07c['if'](_0x3a02('0x3'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x3a02('0x7'),'aria-pressed':_0x2be07c['to'](_0x3a02('0x3'),_0x45c577=>_0x45c577?_0x3a02('0x9'):_0x3a02('0x1'))},'children':[{'tag':_0x3a02('0xb'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x2be07c['to'](_0x3a02('0x0'))}});}[_0x3a02('0xa')](){this[_0x3a02('0x3')]=!this[_0x3a02('0x3')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54c0=['set','uiLanguage','ck-revision-history-sidebar__subrevision','createdAt','creator','fire','bind','ck-revision-history-sidebar__revision_selected','setTemplate','_parentRevisionId','ck-reset','_createdAtFormatted','isSelected','select','bindTemplate','div','deselect'];(function(_0x506d01,_0x54c0db){const _0x41dfa7=function(_0x1b166b){while(--_0x1b166b){_0x506d01['push'](_0x506d01['shift']());}};_0x41dfa7(++_0x54c0db);}(_0x54c0,0x1b6));const _0x41df=function(_0x506d01,_0x54c0db){_0x506d01=_0x506d01-0x0;let _0x41dfa7=_0x54c0[_0x506d01];return _0x41dfa7;};import{View as _0x226b04}from'ckeditor5/src/ui';import _0x4e7d5b from'./revisionauthorview';import{dateToPrettyFormat as _0x251698}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x226b04{constructor(_0x388d5a,_0x50a290,_0x5658dd){super(_0x388d5a);const _0x1a3f94=this[_0x41df('0x1')];this['id']=_0x50a290['id'],this[_0x41df('0xa')](_0x41df('0x7'))['to'](_0x50a290),this[_0x41df('0x4')](_0x41df('0x10'),!0x1),this[_0x41df('0xa')](_0x41df('0xf'))['to'](this,_0x41df('0x7'),_0x5dc347=>_0x5dc347?_0x251698(_0x388d5a[_0x41df('0x5')],_0x5dc347):void 0x0),this[_0x41df('0xd')]=_0x5658dd,this[_0x41df('0xc')]({'tag':_0x41df('0x2'),'attributes':{'class':['ck',_0x41df('0xe'),'ck-revision-history-sidebar__revision',_0x41df('0x6'),_0x1a3f94['if'](_0x41df('0x10'),_0x41df('0xb'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1a3f94['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x4e7d5b(_0x388d5a,_0x50a290[_0x41df('0x8')],!0x0)]}],'on':{'click':_0x1a3f94['to'](this[_0x41df('0x0')][_0x41df('0xa')](this))}});}[_0x41df('0x0')](){this[_0x41df('0x10')]=!0x0,this[_0x41df('0x9')](_0x41df('0x0'),{'parentId':this[_0x41df('0xd')]});}[_0x41df('0x3')](){this[_0x41df('0x10')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e39=['toLocaleDateString','toLocaleTimeString','long'];(function(_0x5d352b,_0x5e3986){var _0x508326=function(_0x95e2d3){while(--_0x95e2d3){_0x5d352b['push'](_0x5d352b['shift']());}};_0x508326(++_0x5e3986);}(_0x5e39,0x1eb));var _0x5083=function(_0x5d352b,_0x5e3986){_0x5d352b=_0x5d352b-0x0;var _0x508326=_0x5e39[_0x5d352b];return _0x508326;};export function dateToPrettyFormat(_0x7ec014,_0x344116){return _0x344116[_0x5083('0x1')](_0x7ec014,{'month':_0x5083('0x0'),'day':'numeric'})+',\x20'+_0x344116[_0x5083('0x2')](_0x7ec014,{'hour':'numeric','minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24c1=['label','Name\x20of\x20the\x20revision\x20(optional)','revisionNameInputValue','ck-revision-history-save-revision-form','_focusCycler','input','submit','trim','listenTo','ck-button-cancel','render','arrowup','cancel','shift\x20+\x20tab','keystrokes','saveButtonView','element','_focusables','value','focusTracker','arrowright','delegate','form','revisionNameInputView','check','Cancel','220','forEach','_createButton','locale','Save','reset','focus','execute','focusFirst','fieldView','arrowleft','setTemplate','revisionName','extendTemplate','stopPropagation','_createRevisionNameInput','cancelButtonView','add','type','set'];(function(_0x41ca46,_0x24c120){const _0x6d95d7=function(_0x4d1cff){while(--_0x4d1cff){_0x41ca46['push'](_0x41ca46['shift']());}};_0x6d95d7(++_0x24c120);}(_0x24c1,0x178));const _0x6d95=function(_0x41ca46,_0x24c120){_0x41ca46=_0x41ca46-0x0;let _0x6d95d7=_0x24c1[_0x41ca46];return _0x6d95d7;};import{icons as _0x2803ed}from'ckeditor5/src/core';import{ButtonView as _0x4e3efd,FocusCycler as _0x17e3a3,LabeledFieldView as _0x1f1e1f,View as _0x7af9ce,ViewCollection as _0x33a39c,createLabeledInputText as _0x18c43a,injectCssTransitionDisabler as _0x5cdd45,submitHandler as _0x16661b}from'ckeditor5/src/ui';import{FocusTracker as _0x5bd822,KeystrokeHandler as _0x5a2166}from'ckeditor5/src/utils';import{getTranslation as _0x4fc634}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x7af9ce{constructor(_0x19771f){super(_0x19771f),this[_0x6d95('0xb')]=new _0x5bd822(),this[_0x6d95('0x6')]=new _0x5a2166(),this[_0x6d95('0x25')](_0x6d95('0x28'),''),this[_0x6d95('0xf')]=this['_createRevisionNameInput'](),this[_0x6d95('0x7')]=this[_0x6d95('0x14')](_0x4fc634(_0x19771f,_0x6d95('0x16')),_0x2803ed[_0x6d95('0x10')],'ck-button-save'),this[_0x6d95('0x7')][_0x6d95('0x24')]=_0x6d95('0x2c'),this['cancelButtonView']=this['_createButton'](_0x4fc634(_0x19771f,_0x6d95('0x11')),_0x2803ed['cancel'],_0x6d95('0x1'),_0x6d95('0x4')),this[_0x6d95('0x9')]=new _0x33a39c(),this[_0x6d95('0x2a')]=new _0x17e3a3({'focusables':this[_0x6d95('0x9')],'focusTracker':this[_0x6d95('0xb')],'keystrokeHandler':this[_0x6d95('0x6')],'actions':{'focusPrevious':_0x6d95('0x5'),'focusNext':'tab'}}),this[_0x6d95('0x1d')]({'tag':_0x6d95('0xe'),'attributes':{'class':['ck',_0x6d95('0x29'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x6d95('0xf')],this[_0x6d95('0x7')],this['cancelButtonView']]}),_0x5cdd45(this);}[_0x6d95('0x2')](){super[_0x6d95('0x2')](),_0x16661b({'view':this}),([this[_0x6d95('0xf')],this[_0x6d95('0x7')],this[_0x6d95('0x22')]][_0x6d95('0x13')](_0xaf2a4a=>{this[_0x6d95('0x9')][_0x6d95('0x23')](_0xaf2a4a),this['focusTracker'][_0x6d95('0x23')](_0xaf2a4a[_0x6d95('0x8')]);}),this[_0x6d95('0x6')][_0x6d95('0x0')](this[_0x6d95('0x8')]));const _0x4fb834=_0x1c360b=>_0x1c360b[_0x6d95('0x20')]();this[_0x6d95('0x6')][_0x6d95('0x25')](_0x6d95('0xc'),_0x4fb834),this['keystrokes'][_0x6d95('0x25')](_0x6d95('0x1c'),_0x4fb834),this[_0x6d95('0x6')][_0x6d95('0x25')](_0x6d95('0x3'),_0x4fb834),this[_0x6d95('0x6')][_0x6d95('0x25')]('arrowdown',_0x4fb834);}[_0x6d95('0x18')](){this[_0x6d95('0x2a')][_0x6d95('0x1a')]();}get[_0x6d95('0x1e')](){return this['revisionNameInputView']['fieldView'][_0x6d95('0x8')]['value'][_0x6d95('0x2d')]();}set['revisionName'](_0x3eb7de){this[_0x6d95('0xf')][_0x6d95('0x1b')]['element']['value']=_0x3eb7de['trim']();}[_0x6d95('0x17')](){this[_0x6d95('0xf')][_0x6d95('0x1b')][_0x6d95('0x8')][_0x6d95('0xa')]='';}[_0x6d95('0x21')](){const _0x4e1b76=new _0x1f1e1f(this[_0x6d95('0x15')],_0x18c43a),_0x355cae=_0x4e1b76[_0x6d95('0x1b')];return _0x355cae[_0x6d95('0x1f')]({'attributes':{'maxlength':_0x6d95('0x12')}}),_0x4e1b76[_0x6d95('0x26')]=_0x4fc634(this[_0x6d95('0x15')],_0x6d95('0x27')),_0x355cae['on'](_0x6d95('0x2b'),()=>{this[_0x6d95('0x28')]=_0x355cae[_0x6d95('0x8')][_0x6d95('0xa')][_0x6d95('0x2d')]();}),_0x4e1b76;}['_createButton'](_0x4bcb1c,_0x31998a,_0x4d2e2c,_0x69ba91){const _0x146ce7=new _0x4e3efd(this[_0x6d95('0x15')]);return _0x146ce7[_0x6d95('0x25')]({'label':_0x4bcb1c,'icon':_0x31998a,'tooltip':!0x0}),_0x146ce7[_0x6d95('0x1f')]({'attributes':{'class':_0x4d2e2c}}),_0x69ba91&&_0x146ce7[_0x6d95('0xd')](_0x6d95('0x19'))['to'](this,_0x69ba91),_0x146ce7;}}
|