@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x259c=['refresh','elementToAttribute','enqueueChange','schema','values','document','_refreshStartEndIndex','getRootNames','bottom','removeMarker:revision','insertion','get','getAttributes','ck-revision-history-root--active','activeChange','removeClass','end','removeMarker:revision-suggestion','marked','-new','_removeRevisionMarkers','_getChangeFromId','next','writer','startsWith','deletions','getRevisionRootsAttributes','_getDiff','getRoot','pluginName','isRemoveSuggestion','data','changeId','ck-revision-history-root-','isEqual','consumable','ck-editor__editable__overlay','slice','bind','collaboration.channelId','isSuggestion','uiElement','roots','dataDowncast','vid_start','backward','enableReadOnlyMode','_threeWayMerge','useFillerType','insertions','createPositionBefore','_cleanUp','oldRevisionId','selection','addRevision','rootName','createPositionFromPath','markers','isCollapsed','_activeViewTarget','abs','vid_end','config','unbindElementFromMarkerName','isAttached','level','getRevisionData','diffData','view','WidgetToolbarRepository','parent','_changeIdToChange','add','side','setAttribute','push','revisionHistoryAttachChange','ck-suggestion-preview-marker-','getChild','revision-comment:','remove','_setConversion','children','forward','getIndex','data-revision-','revision-end','showNextChange','isRemoved','startIndex','markerNameToElements','markerRange','revision','editingDowncast','ck-suggestion-marker','loadRevisionData','highest','domConverter','ck-revision-history-root-remove','object','mousedown','authors','data-change-id','nextPosition','type','split','ck-suggestion-marker-merge','nextSibling','offsetSize','POSITIVE_INFINITY','span','test','addMarker:revision','markerToData','_initInteractions','createUIElement','delete','insert','addMarker:revision-suggestion:insertion','isAddSuggestion','forEach','bindElementToMarker','_setDistance','_update','compare','merge','domEvent','element:pre','keys','from','pairId','_getRevisionsRange','string','then','destroy','activeView','ck-revision-history-root-add','attributesAfter','showStack','hasClass','change:activeChange','revision:','wrap','change:activeView','high','editor','isBlock','_data','markerName','change:isEnabled','viewItem','RevisionViewer','previousPosition','deletion','addRoot','resolve','commands','nodeAfter','attributes','index','set','change','comment','dataToMarker','getAttribute','range','filter','numberOfChanges','default','markersEnd','ck-suggestion-marker--active','getCustomProperty','createRangeIn','vid','_appendChild','isEnabled','sort','target','map','_sortAndFilterDiffChanges','_cleanMarkers','code','has','toViewRange','isAfter','conversion','attribute:vid','isAtStart','elementStart','change:isReady','addHighlight','_markMarkers','reconvertMarker','getClientRects','item','_getViewObj','includes','start','distance','mapper','for','_balloon','name','isIncorrect','checkAttribute','mouseover','isNavigationMode','upcast','_makeModelFromTape','findIndex','elementEnd','getDomRoot','ck-suggestion-marker-split','removeMarker','_removeUnsupportedChanges','_getViewForChange','top','_findChangeIdFromDomTarget','userId','repository','editing','revision-suggestion','return','isLimit','toViewPosition','listenTo','processor','createAttributeElement','maxOffset','isOnRoot','plugins','text','currentChangeNumber','splice','_setChanges','toData','_revisions','removeAttribute','adapter','createRange','done','_markMismatchedRemovedTags','isAtEnd','diff','change:numberOfChanges','element','endIndex','markerToHighlight','_makeTape','getItems','revisionHistoryLabel','_changeView','shift','getWalker','catch','changes','attachChange','isObject','softBreak','newRevisionId','_fixObsoleteTags','isAdded','getRevision','_removeMissingPairs','length','right','RevisionsRepository','model','error','downcastDispatcher','first','isReady','_processTape','indexOf','observeMarkers','init','_markInsertions','ck-suggestion-marker-','modelRange','markersStart','execute','unshift','addMarker:revision-suggestion:deletion','detachRoot','hasAttribute','revisionHistory','consume','toViewElement','revision-viewer','concat','isContent','addClass','_step','_makeModelFromViewString'];(function(_0x37087c,_0x259c73){const _0x4f22c2=function(_0xf63fb0){while(--_0xf63fb0){_0x37087c['push'](_0x37087c['shift']());}};_0x4f22c2(++_0x259c73);}(_0x259c,0x14b));const _0x4f22=function(_0x37087c,_0x259c73){_0x37087c=_0x37087c-0x0;let _0x4f22c2=_0x259c[_0x37087c];return _0x4f22c2;};import{Plugin as _0x279042,Command as _0x35688b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3c451b}from'ckeditor5/src/utils';import{ContextualBalloon as _0x15d37b}from'ckeditor5/src/ui';import{DocumentFragment as _0x448404,Element as _0x340e18,Text as _0x21d0f8,ViewDocumentFragment as _0xbcd63c,ViewText as _0x5207c2,ViewElement as _0x371eda,ViewContainerElement as _0x49d4fd,ViewAttributeElement as _0x2f3a53,ViewEmptyElement as _0x7c8eb7,ViewRawElement as _0x19772b,ViewUIElement as _0x38347b}from'ckeditor5/src/engine';import{Users as _0x34c33f,getMarkerDomElement as _0x313195}from'ckeditor5-collaboration/src/collaboration-core';import _0x249774 from'./ui/revisionviewer/changedetailsview';import _0x2e7230 from'./revisionsrepository';import _0x2f0fc5 from'./changeitem';import{default as _0x353e10}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4c96ef}from'lodash-es';const Y={'c':_0x49d4fd,'a':_0x2f3a53,'e':_0x7c8eb7,'r':_0x19772b,'u':_0x38347b};export default class d extends _0x279042{static get[_0x4f22('0x11e')](){return _0x4f22('0x72');}static get['requires'](){return[_0x34c33f,_0x15d37b,_0x2e7230];}constructor(_0x1c52ab){super(_0x1c52ab),this[_0x4f22('0xb6')]=this[_0x4f22('0x6c')][_0x4f22('0xc1')]['get'](_0x4f22('0xe5')),this[_0x4f22('0x7b')](_0x4f22('0x10f'),null),this['set'](_0x4f22('0x62'),null),this[_0x4f22('0x16')]=null,this['set'](_0x4f22('0xce'),null),this[_0x4f22('0x7b')](_0x4f22('0xea'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x4f22('0x70'),(_0x12eebf,_0x26d7cb,_0x533011)=>{this[_0x4f22('0x10f')]=null,this[_0x4f22('0x62')]=null,this[_0x4f22('0x6c')]['editing'][_0x4f22('0x1f')][_0x4f22('0x7c')](_0x3357b3=>{for(const _0x595046 of this['editor'][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')][_0x4f22('0x5')])_0x533011?_0x3357b3['removeClass'](_0x4f22('0x125'),_0x595046):_0x3357b3[_0x4f22('0xfe')](_0x4f22('0x125'),_0x595046);});}),this[_0x4f22('0x1')](_0x4f22('0xa9'))['to'](this,_0x4f22('0x10f'),_0x2c7407=>null!==_0x2c7407),this[_0x4f22('0x1')](_0x4f22('0xc3'))['to'](this,_0x4f22('0xea'),this,_0x4f22('0xce'),this,_0x4f22('0x10f'),(_0x874a2c,_0x189a71,_0x29bb40)=>_0x874a2c&&_0x29bb40?_0x189a71[_0x4f22('0xda')][_0x4f22('0x2f')](_0x29bb40):0x0),this[_0x4f22('0x1')](_0x4f22('0x82'))['to'](this,'isReady',this,_0x4f22('0xce'),(_0x3d4c35,_0x2e7c8f)=>_0x3d4c35?_0x2e7c8f[_0x4f22('0xda')][_0x4f22('0xe3')]:0x0),this[_0x4f22('0xd6')]=null,this[_0x4f22('0x22')]=new Map(),this[_0x4f22('0xc9')]=null,this[_0x4f22('0xa4')]=this['editor'][_0x4f22('0xc1')][_0x4f22('0x10c')](_0x15d37b);}[_0x4f22('0xee')](){const _0x1f0bab=this[_0x4f22('0x6c')],_0x359dac=new ShowChangeCommand(_0x1f0bab,{'direction':_0x4f22('0x8')}),_0x3b1d53=new ShowChangeCommand(_0x1f0bab,{'direction':'forward'});(_0x1f0bab['commands']['add']('showPreviousChange',_0x359dac),_0x1f0bab['commands'][_0x4f22('0x23')](_0x4f22('0x32'),_0x3b1d53),_0x1f0bab[_0x4f22('0x77')][_0x4f22('0x23')]('restoreRevision',new RestoreRevisionCommand(_0x1f0bab)),this['on'](_0x4f22('0xcf'),()=>{_0x359dac['refresh'](),_0x3b1d53['refresh']();}),this[_0x4f22('0x2c')](),this[_0x4f22('0x4d')](),_0x1f0bab[_0x4f22('0x9')](_0x4f22('0xfb')),_0x1f0bab[_0x4f22('0xc1')][_0x4f22('0x91')](_0x4f22('0x20')))&&_0x1f0bab[_0x4f22('0xc1')][_0x4f22('0x10c')](_0x4f22('0x20'))['forceDisabled'](_0x4f22('0xfb'));}async[_0x4f22('0x1d')](_0x1c24ff){await this[_0x4f22('0x3a')](_0x1c24ff);const _0x3698a1={};for(const _0x5eb89b in _0x1c24ff[_0x4f22('0x1e')]){if(_0x1c24ff[_0x4f22('0x1e')][_0x5eb89b][_0x4f22('0xdb')]&&!_0x1c24ff['diffData'][_0x5eb89b][_0x4f22('0xdb')][_0x4f22('0x1b')])continue;const _0x31e62f=this['_removeRevisionMarkers'](JSON['parse'](_0x1c24ff[_0x4f22('0x1e')][_0x5eb89b]['insertions'])),_0x4a7214=this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')],_0x20c17a=new _0xbcd63c(_0x4a7214,_0x31e62f[_0x4f22('0x8d')](_0x1db344=>this[_0x4f22('0x9e')](_0x1db344)));this[_0x4f22('0x6c')][_0x4f22('0x120')][_0x4f22('0xbd')]['useFillerType'](_0x4f22('0x113')),_0x3698a1[_0x5eb89b]=this[_0x4f22('0x6c')]['data'][_0x4f22('0xbd')][_0x4f22('0xc6')](_0x20c17a),this[_0x4f22('0x6c')][_0x4f22('0x120')][_0x4f22('0xbd')][_0x4f22('0xb')](_0x4f22('0x83'));}return _0x3698a1;}async[_0x4f22('0x11b')](_0x42311d){await this[_0x4f22('0x3a')](_0x42311d);const _0x3c09a8={};for(const _0x1bb199 in _0x42311d[_0x4f22('0x1e')])_0x42311d[_0x4f22('0x1e')][_0x1bb199][_0x4f22('0xdb')]&&!_0x42311d['diffData'][_0x1bb199][_0x4f22('0xdb')][_0x4f22('0x1b')]||(_0x3c09a8[_0x1bb199]=_0x42311d[_0x4f22('0x1e')][_0x1bb199]['attributesAfter']||{});return _0x3c09a8;}[_0x4f22('0x115')](_0x40f022){return(_0x40f022=_0x40f022[_0x4f22('0x81')](_0x41e39e=>!_0x41e39e[_0x4f22('0xa5')]||'revision-start'!==_0x41e39e[_0x4f22('0xa5')]&&_0x4f22('0x31')!==_0x41e39e[_0x4f22('0xa5')]))[_0x4f22('0x53')](_0x188c96=>{_0x4f22('0x5f')!=typeof _0x188c96&&(_0x188c96['children']=this[_0x4f22('0x115')](_0x188c96[_0x4f22('0x2d')]),_0x188c96[_0x4f22('0x79')]=_0x188c96[_0x4f22('0x79')][_0x4f22('0x81')](_0x2b952f=>!_0x2b952f[0x0][_0x4f22('0x119')](_0x4f22('0x30'))));}),_0x40f022;}async[_0x4f22('0x57')](_0x341645,_0xd0cbf4,_0x2833d3=!0x1){if(!this['isEnabled'])return;const _0x3bffaf=this[_0x4f22('0xce')],_0x31b649=this['repository'],_0x595485=_0x4f22('0x5f')==typeof _0x341645?_0x31b649['getRevision'](_0x341645):_0x341645,_0x326ae4='string'==typeof _0xd0cbf4?_0x31b649[_0x4f22('0xe1')](_0xd0cbf4):_0xd0cbf4,_0x4e017c=_0x595485['id'],_0x3068ad=_0x326ae4?_0x326ae4['id']:null;if(!_0x2833d3&&this[_0x4f22('0xce')]&&this[_0x4f22('0xce')][_0x4f22('0xde')]===_0x4e017c&&this[_0x4f22('0xce')][_0x4f22('0xf')]===_0x3068ad)return Promise[_0x4f22('0x76')]();this['isReady']=!0x1,this[_0x4f22('0x62')]=null,this[_0x4f22('0x10f')]=null,this[_0x4f22('0xce')]=new _0x353e10(_0x4e017c,_0x3068ad);const _0x13cf55=this[_0x4f22('0x5e')](_0x595485,_0x326ae4,!0x0)[_0x4f22('0x8d')](_0x5d16d8=>this[_0x4f22('0x3a')](_0x5d16d8));return _0x13cf55[_0x4f22('0x26')](new Promise(_0xfa997c=>{setTimeout(_0xfa997c,0x14);})),Promise['all'](_0x13cf55)[_0x4f22('0x60')](()=>{if(!this[_0x4f22('0x8a')])return;this[_0x4f22('0xe')]();const _0x4a6244=this[_0x4f22('0x11c')](_0x4e017c,_0x3068ad);for(const _0x2dec33 of _0x4a6244[_0x4f22('0xda')])this[_0x4f22('0x22')][_0x4f22('0x7b')](_0x2dec33['id'],_0x2dec33);this[_0x4f22('0x6c')]['model'][_0x4f22('0x103')]({'isUndoable':!0x1},_0x35ec39=>{for(const _0x2e8004 of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]())_0x35ec39['detachRoot'](_0x2e8004);for(const _0x377e71 of Object[_0x4f22('0x5b')](_0x4a6244['model'])){const _0x51096b=_0x35ec39[_0x4f22('0x75')](_0x377e71);for(const _0x16afa5 of Object[_0x4f22('0x5b')](_0x4a6244[_0x4f22('0x79')][_0x377e71]))_0x35ec39[_0x4f22('0x25')](_0x16afa5,_0x4a6244['attributes'][_0x377e71][_0x16afa5],_0x51096b);_0x35ec39[_0x4f22('0x50')](_0x4a6244[_0x4f22('0xe6')][_0x377e71],_0x51096b,0x0);}}),this['diff'][_0x4f22('0xc5')](this[_0x4f22('0x8e')](_0x4a6244[_0x4f22('0xda')])),this[_0x4f22('0xea')]=!0x0;})[_0x4f22('0xd9')](_0x4b4002=>{console[_0x4f22('0xe7')](_0x4b4002),this[_0x4f22('0xe')](),_0x3bffaf&&(this[_0x4f22('0xce')]=_0x3bffaf),this[_0x4f22('0xea')]=!0x0;});}['addRevisionData'](_0x52e4f3,_0x14f073){const _0x51e5a3=this['repository']['createRevision'](_0x52e4f3);return _0x51e5a3['on'](_0x4f22('0x56'),(_0x4f5284,_0x5582f7,_0x357c5e)=>_0x14f073(_0x5582f7,_0x357c5e,_0x51e5a3)),this[_0x4f22('0xb6')][_0x4f22('0x11')](_0x51e5a3),_0x51e5a3;}[_0x4f22('0x3a')](_0x4cfdfb){if(!_0x4cfdfb||_0x4cfdfb['diffData'])return Promise[_0x4f22('0x76')]();{const _0x46c0e3=this['editor'][_0x4f22('0x19')][_0x4f22('0x10c')](_0x4f22('0x2'));return this[_0x4f22('0xc9')][_0x4f22('0xe1')]({'channelId':_0x46c0e3,'revisionId':_0x4cfdfb['id']})[_0x4f22('0x60')](_0x973190=>{_0x4cfdfb[_0x4f22('0x56')]({'diffData':_0x973190[_0x4f22('0x1e')]},!0x0);});}}['_cleanUp'](){this[_0x4f22('0x10f')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x4f22('0xd6')][_0x4f22('0x61')](),this[_0x4f22('0xd6')]=null,this['_changeIdToChange']['clear'](),this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x103')]({'isUndoable':!0x1},_0x28683c=>{for(const _0x4c3128 of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]())_0x28683c[_0x4f22('0xf6')](_0x4c3128);});}[_0x4f22('0x8e')](_0x147158){const _0x3949f2=[],_0x549010=new Map();for(const _0x15f98e of this['editor']['model']['document']['getRootNames']()){const _0x16419a=this[_0x4f22('0x6c')][_0x4f22('0xb7')]['view'][_0x4f22('0xae')](_0x15f98e);if(!_0x16419a)continue;const _0x52d4a9=_0x16419a[_0x4f22('0x9c')]()[_0x4f22('0x9d')](0x0);_0x52d4a9&&(_0x3949f2[_0x4f22('0x26')](_0x15f98e),_0x549010[_0x4f22('0x7b')](_0x15f98e,_0x52d4a9));}return _0x3949f2[_0x4f22('0x8b')]((_0x57c0f2,_0x5dfdf4)=>{const _0x5e99ab=_0x549010[_0x4f22('0x10c')](_0x57c0f2),_0x1406d3=_0x549010[_0x4f22('0x10c')](_0x5dfdf4);return _0x5e99ab['y']-_0x1406d3['y']||_0x5e99ab['x']-_0x1406d3['x'];}),(_0x147158=_0x147158[_0x4f22('0x81')](_0x5692a3=>_0x3949f2['includes'](_0x5692a3['rootName'])))[_0x4f22('0x8b')]((_0x26d373,_0x5198af)=>_0x3949f2[_0x4f22('0xec')](_0x26d373[_0x4f22('0x12')])-_0x3949f2['indexOf'](_0x5198af['rootName'])),_0x147158;}[_0x4f22('0xd3')](_0x5785b0){const _0x1f97e8=Array[_0x4f22('0x5c')](_0x5785b0['markers'])[_0x4f22('0x81')](([_0xe32195,_0x252fb2])=>_0xe32195[_0x4f22('0x119')](_0x4f22('0x68'))&&!_0x252fb2[_0x4f22('0x15')]),_0x249491=Array['from'](this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x87')](_0x5785b0)[_0x4f22('0xd8')]({'singleCharacters':!0x0}));if(0x0!=_0x1f97e8[_0x4f22('0xe3')])for(const _0x5cd368 of _0x249491){const [_0x377cf1,_0x1c15f4]=_0x1f97e8[0x0],[,_0x52f7ba,_0x494389]=_0x377cf1[_0x4f22('0x44')](':');if(_0x1c15f4[_0x4f22('0x111')][_0x4f22('0x123')](_0x5cd368[_0x4f22('0x42')])&&_0x1f97e8[_0x4f22('0xd7')](),(_0x5cd368[_0x4f22('0x73')][_0x4f22('0x123')](_0x1c15f4[_0x4f22('0xa0')])||_0x5cd368[_0x4f22('0x73')]['isAfter'](_0x1c15f4[_0x4f22('0xa0')]))&&(_0x4f22('0x10b')==_0x52f7ba?_0x5cd368[_0x4f22('0xe0')]={'userId':_0x494389}:_0x4f22('0x74')==_0x52f7ba&&(_0x5cd368[_0x4f22('0x33')]={'userId':_0x494389})),0x0==_0x1f97e8[_0x4f22('0xe3')])break;}return _0x249491;}[_0x4f22('0x107')](_0x5cef78){const _0x25c8cc=new Map();for(let _0x1102ba=0x0;_0x1102ba<_0x5cef78[_0x4f22('0xe3')];_0x1102ba++)_0x4f22('0xc2')===_0x5cef78[_0x1102ba][_0x4f22('0x43')]?(_0x5cef78[_0x1102ba][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x1102ba,_0x5cef78[_0x1102ba][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x1102ba):(_0x4f22('0x97')===_0x5cef78[_0x1102ba][_0x4f22('0x43')]?_0x5cef78[_0x1102ba][_0x4f22('0x9d')]['startIndex']=_0x1102ba:_0x4f22('0xad')===_0x5cef78[_0x1102ba]['type']&&(_0x5cef78[_0x1102ba][_0x4f22('0x9d')]['endIndex']=_0x1102ba),_0x25c8cc[_0x4f22('0x7b')](_0x5cef78[_0x1102ba]['id'],_0x1102ba));for(const _0x527c0a of _0x25c8cc[_0x4f22('0x105')]())'elementStart'===_0x5cef78[_0x527c0a][_0x4f22('0x43')]?_0x5cef78[_0x527c0a]['item'][_0x4f22('0xd1')]=_0x25c8cc[_0x4f22('0x10c')](_0x5cef78[_0x527c0a][_0x4f22('0x5d')]):_0x4f22('0xad')===_0x5cef78[_0x527c0a][_0x4f22('0x43')]&&(_0x5cef78[_0x527c0a][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x25c8cc[_0x4f22('0x10c')](_0x5cef78[_0x527c0a][_0x4f22('0x5d')]));}[_0x4f22('0xeb')](_0x441884){for(let _0x190e4e=0x0;_0x190e4e<_0x441884['length'];_0x190e4e++){if(_0x4f22('0x97')===_0x441884[_0x190e4e][_0x4f22('0x43')])_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x190e4e;else{if('elementEnd'===_0x441884[_0x190e4e][_0x4f22('0x43')]){_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x190e4e;const _0x450a4e=_0x441884[_0x190e4e][_0x4f22('0x9d')]['startIndex'];_0x441884[_0x450a4e]['pairId']=_0x441884[_0x190e4e]['id'],_0x441884[_0x190e4e]['pairId']=_0x441884[_0x450a4e]['id'];}else _0x441884[_0x190e4e]['item'][_0x4f22('0x34')]=_0x190e4e,_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x190e4e,_0x441884[_0x190e4e][_0x4f22('0x5d')]=null;}_0x441884[_0x190e4e][_0x4f22('0xf2')]||(_0x441884[_0x190e4e][_0x4f22('0xf2')]=[],_0x441884[_0x190e4e][_0x4f22('0x84')]=[]);}}[_0x4f22('0xef')](_0x3bf566,_0x38a12f){const _0x5a1e4f=_0x3bf566[_0x4f22('0x81')](_0x17fda1=>!_0x17fda1[_0x4f22('0xe0')]);for(let _0x4f7bcc=0x0;_0x4f7bcc<_0x38a12f['length'];_0x4f7bcc++)_0x38a12f[_0x4f7bcc]['isAdded']&&(_0x5a1e4f[_0x4f7bcc][_0x4f22('0xe0')]=_0x38a12f[_0x4f7bcc][_0x4f22('0xe0')]);}[_0x4f22('0x100')](_0x10083f){const _0x2ed796=JSON['parse'](_0x10083f),_0x19458b=this['editor'][_0x4f22('0xb7')]['view'][_0x4f22('0x106')],_0x574cae=new _0xbcd63c(_0x19458b,_0x2ed796['map'](_0xfba7e5=>this[_0x4f22('0x9e')](_0xfba7e5)));return this[_0x4f22('0x6c')][_0x4f22('0x120')]['toModel'](_0x574cae);}[_0x4f22('0x9e')](_0x213bce){const _0x49875c=this[_0x4f22('0x6c')]['editing'][_0x4f22('0x1f')][_0x4f22('0x106')];if(_0x4f22('0x5f')==typeof _0x213bce)return new _0x5207c2(_0x49875c,_0x213bce);{const _0x4595fa=_0x213bce[_0x4f22('0x2d')]['map'](_0x8753c9=>this[_0x4f22('0x9e')](_0x8753c9));return new(Y[_0x213bce['type']]||_0x371eda)(_0x49875c,_0x213bce[_0x4f22('0xa5')],_0x213bce['attributes'],_0x4595fa);}}[_0x4f22('0x11c')](_0x373463,_0x533996=null){const _0x4b5f24=this['repository'][_0x4f22('0xe1')](_0x373463),_0x49c007=_0x533996?this[_0x4f22('0xb6')][_0x4f22('0xe1')](_0x533996):null,_0x548ee1=this[_0x4f22('0x5e')](_0x4b5f24,_0x49c007),_0x333752=_0x548ee1[_0x548ee1[_0x4f22('0xe3')]-0x1],_0x38970d=new Map(),_0x5f2406={'model':{},'attributes':{},'changes':[]},_0x3e4f91=new Set(),_0xaef6b2=new Map();for(let _0x3b1775=_0x548ee1[_0x4f22('0xe3')]-0x1;_0x3b1775>=0x0;_0x3b1775--){const _0x1fc355=_0x548ee1[_0x3b1775];for(const _0x296e32 of Object[_0x4f22('0x5b')](_0x1fc355[_0x4f22('0x1e')]))if(_0x1fc355[_0x4f22('0x1e')][_0x296e32]['attachChange']){const _0x2ff47e=_0x1fc355['diffData'][_0x296e32]['attachChange'];_0x2ff47e['isAttached']?(_0x3e4f91['add'](_0x296e32),_0xaef6b2[_0x4f22('0x91')](_0x296e32)&&_0xaef6b2[_0x4f22('0x10c')](_0x296e32)['userId']==_0x2ff47e['userId']?_0xaef6b2[_0x4f22('0x4f')](_0x296e32):_0xaef6b2[_0x4f22('0x7b')](_0x296e32,_0x2ff47e)):_0xaef6b2[_0x4f22('0x91')](_0x296e32)?(_0x3e4f91[_0x4f22('0x4f')](_0x296e32),_0xaef6b2['delete'](_0x296e32)):(_0x3e4f91['add'](_0x296e32),_0xaef6b2[_0x4f22('0x7b')](_0x296e32,_0x2ff47e));}else _0x3e4f91['add'](_0x296e32);}for(const _0x4a6297 of _0x3e4f91){const _0x4498e4=_0xaef6b2[_0x4f22('0x91')](_0x4a6297)&&!_0xaef6b2[_0x4f22('0x10c')](_0x4a6297)[_0x4f22('0x1b')];let _0x84c577=_0x4498e4?_0x548ee1[_0x4f22('0xe3')]-0x1:0x0;const _0x5993be=_0x4498e4?-0x1:0x1;for(;_0x548ee1[_0x84c577];){const _0x5dbeb2=_0x548ee1[_0x84c577];if(_0x5dbeb2['diffData'][_0x4a6297]){const _0x5e99bb=_0x4498e4?_0x5dbeb2[_0x4f22('0x1e')][_0x4a6297]['attributesBefore']:_0x5dbeb2['diffData'][_0x4a6297][_0x4f22('0x64')];_0x5f2406['attributes'][_0x4a6297]=_0x5e99bb?_0x4c96ef(_0x5e99bb):{};break;}_0x84c577+=_0x5993be;}}for(const _0xc42ba4 of _0x548ee1){_0xc42ba4[_0x4f22('0xe6')]={};for(const _0x5694d of _0xc42ba4[_0x4f22('0x40')])_0x38970d[_0x4f22('0x7b')](_0x5694d['id'],_0x5694d);for(const _0x53464a of _0x3e4f91){const _0x3c1f80=_0xc42ba4[_0x4f22('0x1e')][_0x53464a]?_0xc42ba4[_0x4f22('0x1e')][_0x53464a][_0x4f22('0xc')]:'[]',_0x5b30b8=_0xc42ba4[_0x4f22('0x1e')][_0x53464a]?_0xc42ba4[_0x4f22('0x1e')][_0x53464a]['deletions']:'[]';_0xc42ba4[_0x4f22('0xe6')][_0x53464a]={'insertions':this['_makeModelFromViewString'](_0x3c1f80),'deletions':this[_0x4f22('0x100')](_0x5b30b8)};}}for(const _0x1a6ee0 of _0x3e4f91){let _0x551b3b=null,_0x382ab2=0x0;const _0x5ca079=new Map(Array[_0x4f22('0x5c')](_0x4b5f24[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0xc')][_0x4f22('0x14')])[_0x4f22('0x81')](([_0x28dfa5])=>!_0x28dfa5[_0x4f22('0x119')](_0x4f22('0x68'))));let _0x4b66b4=0x0;for(const _0x516f64 of _0x548ee1){const _0x1952c9=this[_0x4f22('0xd3')](_0x516f64[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0xc')]);_0x516f64==_0x4b5f24?(_0x551b3b=_0x1952c9,_0x382ab2=_0x551b3b[_0x4f22('0xe3')],_0x551b3b[_0x4f22('0x53')](_0x19de66=>{_0x19de66['id']=_0x4b66b4++;}),this['_processTape'](_0x551b3b)):this['_markInsertions'](_0x551b3b,_0x1952c9);const _0x3776e6=_0x551b3b[_0x4f22('0x81')](_0x556cd7=>!_0x556cd7[_0x4f22('0xe0')])[_0x4f22('0x8d')](_0x2e87c4=>_0x2e87c4['id']);let _0x178967=0x0;const _0x48d4fd=this['_makeTape'](_0x516f64[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0x11a')]);_0x48d4fd['forEach'](_0x2678ac=>{_0x2678ac['isRemoved']?_0x2678ac['id']=_0x382ab2++:_0x2678ac['id']=_0x3776e6[_0x178967++];}),this[_0x4f22('0xeb')](_0x48d4fd),this[_0x4f22('0x55')](_0x551b3b,_0x4f22('0xe0')),this['_setDistance'](_0x48d4fd,_0x4f22('0x33')),_0x516f64==_0x4b5f24&&this[_0x4f22('0x9a')](_0x551b3b,_0x5ca079),_0x551b3b=this['_joinTapes'](_0x551b3b,_0x48d4fd),this[_0x4f22('0x107')](_0x551b3b),this['_setDistance'](_0x551b3b,_0x4f22('0x33'));}_0x551b3b=_0x551b3b[_0x4f22('0x81')](_0x7b1765=>!(_0x7b1765[_0x4f22('0xe0')]&&_0x7b1765[_0x4f22('0x33')]));const _0x217bea=new Map(_0x333752['model'][_0x1a6ee0]['deletions'][_0x4f22('0x14')]),_0x26303c=new Set(_0x5ca079[_0x4f22('0x5b')]());for(const _0x11d194 of _0x217bea[_0x4f22('0x5b')]())_0x26303c[_0x4f22('0x4f')](_0x11d194);this['_markSuggestions'](_0x551b3b,_0x26303c),this[_0x4f22('0xdf')](_0x551b3b),_0x551b3b=this['_removeMissingPairs'](_0x551b3b),_0x551b3b=this[_0x4f22('0xcc')](_0x551b3b),_0x551b3b=this[_0x4f22('0xb1')](_0x551b3b);const {root:_0x26a6d,changes:_0x3922e1}=this['_makeModelFromTape'](_0x551b3b,_0x38970d,_0x1a6ee0);_0x5f2406[_0x4f22('0xe6')][_0x1a6ee0]=_0x26a6d;const _0x366c7f=_0xaef6b2[_0x4f22('0x10c')](_0x1a6ee0);if(_0x366c7f){const _0x2d1b29=_0x38970d[_0x4f22('0x10c')](_0x366c7f[_0x4f22('0xb5')]),_0x1c6d93=new _0x2f0fc5({'author':_0x2d1b29,'type':_0x366c7f[_0x4f22('0x1b')]?'add':_0x4f22('0x2b'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1a6ee0});_0x3922e1[_0x4f22('0xf4')](_0x1c6d93),_0x5f2406[_0x4f22('0x79')][_0x1a6ee0][_0x4f22('0x27')]=_0x1c6d93['id'];}_0x5f2406[_0x4f22('0xda')]=_0x5f2406[_0x4f22('0xda')][_0x4f22('0xfc')](_0x3922e1);}return _0x5f2406;}[_0x4f22('0x9a')](_0x482df4,_0x36edad){for(let _0xe2bd37=0x0;_0xe2bd37<_0x482df4['length'];_0xe2bd37++)for(const [_0x5e500b,_0x13be3a]of _0x36edad)_0x13be3a[_0x4f22('0xa0')]['isEqual'](_0x482df4[_0xe2bd37]['previousPosition'])&&_0x482df4[_0xe2bd37][_0x4f22('0xf2')][_0x4f22('0x26')](_0x5e500b),_0x13be3a['end'][_0x4f22('0x123')](_0x482df4[_0xe2bd37][_0x4f22('0x42')])&&_0x482df4[_0xe2bd37][_0x4f22('0x84')]['push'](_0x5e500b);}['_joinTapes'](_0x5854d6,_0x44be03){let _0x594e11=[],_0x3474a7=0x0,_0x1cd7f7=0x0;for(;_0x3474a7<_0x5854d6[_0x4f22('0xe3')]||_0x1cd7f7<_0x44be03[_0x4f22('0xe3')];){const _0x4af272=_0x5854d6[_0x3474a7]||{},_0x5032cf=_0x44be03[_0x1cd7f7]||{};if(_0x4af272['id']==_0x5032cf['id'])_0x3474a7++,_0x1cd7f7++,_0x594e11['push'](_0x4af272);else{if(_0x5032cf[_0x4f22('0x33')]&&_0x4af272['isAdded']){const {commonTape:_0x16bee7,iEnd:_0x2f5a80,jEnd:_0x5e6a92}=this[_0x4f22('0xa')](_0x5854d6,_0x3474a7,_0x44be03,_0x1cd7f7);_0x594e11=_0x594e11['concat'](_0x16bee7),_0x3474a7=_0x2f5a80,_0x1cd7f7=_0x5e6a92;}else _0x5032cf[_0x4f22('0x33')]?(_0x1cd7f7++,_0x594e11['push'](_0x5032cf)):(_0x3474a7++,_0x594e11['push'](_0x4af272));}}return _0x594e11;}['_markSuggestions'](_0x3be9e2,_0x737483){const _0x3acb97=[];for(let _0x5e33a4=0x0;_0x5e33a4<_0x3be9e2[_0x4f22('0xe3')];_0x5e33a4++){for(let _0x2e2128=0x0;_0x2e2128<_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x4f22('0xe3')];_0x2e2128++){const _0x343795=_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x2e2128];if(!_0x737483[_0x4f22('0x91')](_0x343795))continue;const {group:_0xe167c3,type:_0x213a85,authorId:_0x165890}=_0x2adccb(_0x343795);_0x4f22('0xb8')!=_0xe167c3||_0x4f22('0x10b')!=_0x213a85&&_0x4f22('0x74')!=_0x213a85||(_0x3acb97['unshift']({'type':_0x213a85,'name':_0x343795,'userId':_0x165890}),_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x4f22('0xc4')](_0x2e2128,0x1),_0x2e2128--);}_0xf198e4(_0x3be9e2[_0x5e33a4]);for(let _0x1fff23=0x0;_0x1fff23<_0x3be9e2[_0x5e33a4][_0x4f22('0x84')][_0x4f22('0xe3')];_0x1fff23++){const _0x374737=_0x3be9e2[_0x5e33a4]['markersEnd'][_0x1fff23];if(!_0x737483[_0x4f22('0x91')](_0x374737))continue;const {group:_0x435b76,type:_0x4f522b}=_0x2adccb(_0x374737);if(_0x4f22('0xb8')!=_0x435b76||_0x4f22('0x10b')!=_0x4f522b&&_0x4f22('0x74')!=_0x4f522b)continue;_0x3be9e2[_0x5e33a4][_0x4f22('0x84')][_0x4f22('0xc4')](_0x1fff23,0x1),_0x1fff23--;const _0x1f40b4=_0x3acb97[_0x4f22('0xac')](_0x565996=>_0x565996[_0x4f22('0xa5')]==_0x374737);_0x1f40b4>-0x1&&_0x3acb97['splice'](_0x1f40b4,0x1);}}function _0x2adccb(_0x2db3a4){const _0x2259a7=_0x2db3a4[_0x4f22('0x44')](':');return{'group':_0x2259a7[0x0],'type':_0x2259a7[0x1],'subType':_0x2259a7[_0x4f22('0xe3')]>=0x5?_0x2259a7[0x2]:null,'id':_0x2259a7[_0x4f22('0xe3')]<0x5?_0x2259a7[0x2]:_0x2259a7[0x3],'authorId':_0x2259a7[_0x4f22('0xe3')]<0x5?_0x2259a7[0x3]:_0x2259a7[0x4],'markerCount':0x6==_0x2259a7[_0x4f22('0xe3')]?_0x2259a7[0x5]:null};}function _0xf198e4(_0x186ed4){for(let _0x128bb6=0x0;_0x128bb6<_0x3acb97[_0x4f22('0xe3')];_0x128bb6++){if(_0x186ed4[_0x4f22('0xe0')]&&_0x4f22('0x10b')==_0x3acb97[_0x128bb6][_0x4f22('0x43')])return _0x186ed4['isAddSuggestion']=_0x3acb97[_0x128bb6],void delete _0x186ed4[_0x4f22('0xe0')];if(!_0x186ed4[_0x4f22('0xe0')]&&!_0x186ed4[_0x4f22('0x33')]&&_0x4f22('0x74')==_0x3acb97[_0x128bb6][_0x4f22('0x43')])return void(_0x186ed4[_0x4f22('0x11f')]=_0x3acb97[_0x128bb6]);}}}[_0x4f22('0x55')](_0x355f21,_0x183ae4){let _0x435bba=0x0,_0x56fe7f=!0x1;const _0xdd2e7b=new Map();for(const _0x2741e0 of _0x355f21)_0x2741e0[_0x183ae4]?_0x56fe7f&&(_0x435bba++,_0x56fe7f=!0x1):(_0x435bba++,_0x56fe7f=!0x0),_0xdd2e7b[_0x4f22('0x7b')](_0x2741e0['id'],_0x435bba);for(let _0xee8ef7=0x0;_0xee8ef7<_0x355f21['length'];_0xee8ef7++){if(_0x4f22('0x33')==_0x183ae4&&_0x355f21[_0xee8ef7][_0x4f22('0xe0')]||'isAdded'==_0x183ae4&&_0x355f21[_0xee8ef7][_0x4f22('0x33')])continue;if(_0x4f22('0xc2')==_0x355f21[_0xee8ef7][_0x4f22('0x43')]){_0x355f21[_0xee8ef7][_0x4f22('0xa1')]=0x0;continue;}const _0x34da0d=_0xdd2e7b[_0x4f22('0x10c')](_0x355f21[_0xee8ef7][_0x4f22('0x5d')]),_0x2c8487=_0xdd2e7b[_0x4f22('0x10c')](_0x355f21[_0xee8ef7]['id']);_0x355f21[_0xee8ef7][_0x4f22('0xa1')]=_0x34da0d-_0x2c8487;}}['_getRevisionsRange'](_0xededc4,_0x1fed71,_0x1c227d=!0x1){const _0x27ecdb=[];let _0x5cf6e9=this['repository'][_0x4f22('0x2f')](_0xededc4),_0x40e7bf=this[_0x4f22('0xb6')][_0x4f22('0x2f')](_0x1fed71);for(-0x1==_0x40e7bf&&(_0x40e7bf=this[_0x4f22('0xb6')][_0x4f22('0xc7')]['length'],_0x1c227d=!0x1);_0x5cf6e9<_0x40e7bf;)_0x27ecdb[_0x4f22('0x26')](this['repository'][_0x4f22('0xe1')](_0x5cf6e9)),_0x5cf6e9++;return _0x1c227d&&_0x27ecdb[_0x4f22('0x26')](this['repository']['getRevision'](_0x5cf6e9)),_0x27ecdb;}[_0x4f22('0xa')](_0x176834,_0x59d643,_0x1b122f,_0x15c3de){const _0x3250e9=this['editor']['model'][_0x4f22('0x104')];let _0x41f863=_0x59d643;for(;_0x176834[_0x41f863]&&_0x176834[_0x41f863][_0x4f22('0xe0')];)_0x41f863++;let _0x43b3ff=_0x15c3de;for(;_0x1b122f[_0x43b3ff]&&_0x1b122f[_0x43b3ff]['isRemoved'];)_0x43b3ff++;_0x320dfb(_0x176834,_0x59d643,_0x41f863),_0x320dfb(_0x1b122f,_0x15c3de,_0x43b3ff);const _0x5df12e=_0x1b122f['slice'](_0x15c3de,_0x43b3ff)[_0x4f22('0xfc')](_0x176834[_0x4f22('0x0')](_0x59d643,_0x41f863));return _0x5df12e[_0x4f22('0x8b')]((_0x25eee9,_0x230164)=>_0x25eee9[_0x4f22('0x24')]!=_0x230164['side']?_0x25eee9[_0x4f22('0x24')]-_0x230164['side']:_0x25eee9[_0x4f22('0x1c')]!=_0x230164['level']?_0x25eee9[_0x4f22('0x1c')]-_0x230164[_0x4f22('0x1c')]:_0x25eee9[_0x4f22('0xa1')]!=_0x230164[_0x4f22('0xa1')]?_0x230164[_0x4f22('0xa1')]-_0x25eee9['distance']:!!_0x25eee9['isAdded']!=!!_0x230164['isAdded']?-0x1==_0x25eee9['side']||0x0==_0x25eee9[_0x4f22('0x24')]?_0x25eee9[_0x4f22('0xe0')]?-0x1:0x1:_0x25eee9[_0x4f22('0xe0')]?0x1:-0x1:_0x25eee9['index']-_0x230164[_0x4f22('0x7a')]),{'commonTape':_0x5df12e,'iEnd':_0x41f863,'jEnd':_0x43b3ff};function _0x320dfb(_0x26fb25,_0x2fae27,_0x1e6081){let _0x57874c=-0x1,_0x2e845c=Number[_0x4f22('0x48')],_0x1976e9=!0x0;for(let _0xb92e30=_0x2fae27;_0xb92e30<_0x1e6081;_0xb92e30++)if(_0x3250e9['isInline'](_0x26fb25[_0xb92e30][_0x4f22('0x9d')])||(_0x1976e9=!0x1),_0x26fb25[_0xb92e30][_0x4f22('0x9d')][_0x4f22('0x34')]<_0x2fae27&&(_0x57874c=_0xb92e30),_0x26fb25[_0xb92e30][_0x4f22('0x9d')][_0x4f22('0xd1')]>=_0x1e6081){_0x2e845c=_0xb92e30;break;}_0x1976e9&&(_0x57874c=_0x1e6081-0x1);for(let _0x3c25a4=_0x2fae27;_0x3c25a4<_0x1e6081;_0x3c25a4++)_0x26fb25[_0x3c25a4][_0x4f22('0x24')]=_0x3c25a4<=_0x57874c?-0x1:_0x3c25a4<_0x2e845c?0x0:0x1,_0x26fb25[_0x3c25a4][_0x4f22('0x7a')]=_0x3c25a4;let _0x28babb=0x0;for(let _0x4a181d=_0x2fae27;_0x4a181d<=_0x57874c;_0x4a181d++)0x0==_0x26fb25[_0x4a181d][_0x4f22('0xa1')]?_0x26fb25[_0x4a181d]['level']=_0x28babb:(_0x28babb++,_0x26fb25[_0x4a181d][_0x4f22('0x1c')]=_0x28babb,_0x28babb++);for(let _0x1b2298=_0x2fae27;_0x1b2298<_0x1e6081;_0x1b2298++)0x0==_0x26fb25[_0x1b2298]['side']&&(_0x26fb25[_0x1b2298][_0x4f22('0x1c')]=_0x28babb);_0x28babb=0x0;for(let _0x2474a0=_0x1e6081-0x1;_0x2474a0>=_0x2e845c;_0x2474a0--)0x0==_0x26fb25[_0x2474a0][_0x4f22('0xa1')]?_0x26fb25[_0x2474a0]['level']=_0x28babb:(_0x28babb--,_0x26fb25[_0x2474a0]['level']=_0x28babb,_0x28babb--);}}['_fixObsoleteTags'](_0x2bafe4){const _0x3c14e5=new Map(),_0x4d2bb1=this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x104')];for(let _0x41e03f=0x1;_0x41e03f<_0x2bafe4[_0x4f22('0xe3')];_0x41e03f++){let _0xa73dfc,_0x177089,_0x30ca68;const _0x1c0e9b=_0x2bafe4[_0x41e03f],_0x3d5a8b=_0x2bafe4[_0x41e03f-0x1];if(_0x4f22('0xc2')==_0x1c0e9b[_0x4f22('0x43')])continue;if(_0x1c0e9b[_0x4f22('0x43')]!=_0x3d5a8b['type'])continue;if(!_0x4d2bb1[_0x4f22('0x6d')](_0x3d5a8b['item'])||_0x4d2bb1['isLimit'](_0x3d5a8b['item']))continue;if(!_0x4d2bb1['isBlock'](_0x1c0e9b[_0x4f22('0x9d')])||_0x4d2bb1[_0x4f22('0xba')](_0x1c0e9b['item']))continue;if((_0x2bafe4[_0x41e03f]['isAdded']||_0x2bafe4[_0x41e03f][_0x4f22('0x52')])&&_0x2bafe4[_0x41e03f-0x1][_0x4f22('0x33')])_0xa73dfc=_0x2bafe4[_0x41e03f],_0x177089=_0x2bafe4[_0x41e03f-0x1],_0x30ca68=_0x41e03f-0x1;else{if(!_0x2bafe4[_0x41e03f][_0x4f22('0x33')]||!_0x2bafe4[_0x41e03f-0x1][_0x4f22('0xe0')]&&!_0x2bafe4[_0x41e03f-0x1][_0x4f22('0x52')])continue;_0xa73dfc=_0x2bafe4[_0x41e03f-0x1],_0x177089=_0x2bafe4[_0x41e03f],_0x30ca68=_0x41e03f;}const _0xe9ece8=_0xa73dfc[_0x4f22('0x1c')]==_0x177089[_0x4f22('0x1c')],_0xcc4458=Math[_0x4f22('0x17')](_0xa73dfc[_0x4f22('0x1c')])<Math[_0x4f22('0x17')](_0x177089[_0x4f22('0x1c')])&&0x0==_0x177089[_0x4f22('0xa1')];(_0xe9ece8||_0xcc4458)&&(_0x3c14e5[_0x4f22('0x7b')](_0x177089['id'],_0xa73dfc['id']),_0x2bafe4[_0x4f22('0xc4')](_0x30ca68,0x1),_0x41e03f--,_0xa73dfc['isAdded']=!0x1);}for(let _0x215470=0x0;_0x215470<_0x2bafe4['length'];_0x215470++)_0x3c14e5[_0x4f22('0x91')](_0x2bafe4[_0x215470]['pairId'])&&(_0x2bafe4[_0x215470][_0x4f22('0x5d')]=_0x3c14e5[_0x4f22('0x10c')](_0x2bafe4[_0x215470][_0x4f22('0x5d')]));}[_0x4f22('0xe2')](_0x20eebe){const _0x915bd7=new Set(_0x20eebe[_0x4f22('0x8d')](_0x52f6be=>_0x52f6be['id']));for(let _0x4cde0b=0x0;_0x4cde0b<_0x20eebe[_0x4f22('0xe3')];_0x4cde0b++)_0x915bd7['has'](_0x20eebe[_0x4cde0b][_0x4f22('0x5d')])||0x0==_0x20eebe[_0x4cde0b]['distance']||(_0x20eebe[_0x4cde0b][_0x4f22('0xa6')]=!0x0);return _0x20eebe[_0x4f22('0x81')](_0x2b3bea=>!_0x2b3bea['isIncorrect']);}[_0x4f22('0xcc')](_0x4660bb){const _0x426815=new Set();for(let _0x31342d=0x0;_0x31342d<_0x4660bb[_0x4f22('0xe3')];_0x31342d++){if(_0x426815['has'](_0x4660bb[_0x31342d]['id'])&&_0x4660bb[_0x31342d][_0x4f22('0x33')]&&(_0x4660bb[_0x31342d][_0x4f22('0xa6')]=!0x0),_0x4660bb[_0x31342d][_0x4f22('0xa6')])continue;if(0x0==_0x4660bb[_0x31342d]['distance'])continue;if(_0x4f22('0x97')!=_0x4660bb[_0x31342d][_0x4f22('0x43')])continue;if(null==_0x4660bb[_0x31342d][_0x4f22('0x5d')])continue;let _0x14f713=_0x31342d+0x1,_0x127c81=0x0;for(;_0x4660bb[_0x14f713]['id']!=_0x4660bb[_0x31342d][_0x4f22('0x5d')];)_0x4f22('0x97')==_0x4660bb[_0x14f713][_0x4f22('0x43')]?_0x127c81++:'elementEnd'==_0x4660bb[_0x14f713]['type']&&_0x127c81--,_0x14f713++;if(0x0!=_0x127c81){if(_0x4660bb[_0x31342d][_0x4f22('0x33')])_0x4660bb[_0x31342d][_0x4f22('0xa6')]=!0x0;else for(;_0x14f713!=_0x31342d;)_0x4660bb[_0x14f713][_0x4f22('0x33')]&&0x0!=_0x4660bb[_0x14f713][_0x4f22('0xa1')]&&(_0x4660bb[_0x14f713][_0x4f22('0xa6')]=!0x0,_0x426815[_0x4f22('0x23')](_0x4660bb[_0x14f713][_0x4f22('0x5d')])),_0x14f713--;}}return _0x4660bb[_0x4f22('0x81')](_0x163d74=>!_0x163d74['isIncorrect']);}[_0x4f22('0xb1')](_0x186de2){const _0x1f2775=this[_0x4f22('0x6c')][_0x4f22('0xe6')]['schema'];for(let _0x1bbffc=0x0;_0x1bbffc<_0x186de2['length'];_0x1bbffc++){if(!(_0x186de2[_0x1bbffc][_0x4f22('0xe0')]||_0x186de2[_0x1bbffc]['isAddSuggestion']||_0x186de2[_0x1bbffc][_0x4f22('0x33')]||_0x186de2[_0x1bbffc]['isRemoveSuggestion']))continue;if(0x0==_0x186de2[_0x1bbffc][_0x4f22('0xa1')])continue;const _0x465f44=_0x186de2[_0x1bbffc][_0x4f22('0x9d')];_0x1f2775[_0x4f22('0x6d')](_0x465f44)||_0x1f2775['isLimit'](_0x465f44)||(_0x186de2[_0x1bbffc]['isAdded']&&delete _0x186de2[_0x1bbffc][_0x4f22('0xe0')],_0x186de2[_0x1bbffc][_0x4f22('0x52')]&&delete _0x186de2[_0x1bbffc]['isAddSuggestion'],_0x186de2[_0x1bbffc][_0x4f22('0x11f')]&&delete _0x186de2[_0x1bbffc][_0x4f22('0x11f')],_0x186de2[_0x1bbffc][_0x4f22('0x33')]&&(_0x186de2[_0x1bbffc][_0x4f22('0xa6')]=!0x0));}return _0x186de2[_0x4f22('0x81')](_0x2de353=>!_0x2de353[_0x4f22('0xa6')]);}[_0x4f22('0xab')](_0x344747,_0x5a945a,_0x301e1a){const _0x2f181a=new _0x448404(),_0x1aac78=[],_0x1220db=new Map(),_0x288f9f=this[_0x4f22('0x6c')][_0x4f22('0xe6')],_0x373cc8=_0x288f9f[_0x4f22('0x104')],_0x1dc7b8=[_0x2f181a],_0x3c5a21={},_0x501cc2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3fe734=null;const _0x194126=[0x0];for(let _0x25f807=0x0;_0x25f807<_0x344747[_0x4f22('0xe3')];_0x25f807++){let _0x30b13a,_0x2e6ad9;if(_0x4f22('0x97')===_0x344747[_0x25f807][_0x4f22('0x43')]){_0x30b13a=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126);const _0x58d76f=new _0x340e18(_0x344747[_0x25f807]['item'][_0x4f22('0xa5')],_0x344747[_0x25f807][_0x4f22('0x9d')]['getAttributes']());_0x1dc7b8[0x0][_0x4f22('0x89')](_0x58d76f),_0x194126[_0x4f22('0x26')](0x0),_0x1dc7b8['unshift'](_0x58d76f),_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734=null;}else{if('elementEnd'===_0x344747[_0x25f807][_0x4f22('0x43')])_0x1dc7b8[_0x4f22('0xd7')](),_0x30b13a=_0x288f9f['createPositionFromPath'](_0x2f181a,_0x194126),_0x194126['pop'](),_0x194126[_0x194126[_0x4f22('0xe3')]-0x1]++,_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734=null;else{if(_0x30b13a=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734&&_0x4f2dd6(_0x3fe734,_0x344747[_0x25f807][_0x4f22('0x9d')]))_0x3fe734[_0x4f22('0x6e')]+=_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x120')];else{const _0x3caf6d=new _0x21d0f8(_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x120')],_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x10d')]());_0x1dc7b8[0x0][_0x4f22('0x89')](_0x3caf6d),_0x3fe734=_0x3caf6d;}_0x194126[_0x194126[_0x4f22('0xe3')]-0x1]+=_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x47')],_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126);}}for(const _0x3038c5 of _0x344747[_0x25f807]['markersStart'])_0x1220db[_0x4f22('0x7b')](_0x3038c5,{'start':_0x30b13a,'end':null});_0x2e8e22(_0x4f22('0x11f'),_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22('isAddSuggestion',_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22(_0x4f22('0x33'),_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22(_0x4f22('0xe0'),_0x25f807,_0x30b13a,_0x2e6ad9);for(const _0x242ae2 of _0x344747[_0x25f807][_0x4f22('0x84')]){_0x1220db[_0x4f22('0x10c')](_0x242ae2)[_0x4f22('0x111')]=_0x2e6ad9;}}for(const [_0x58b2cc,_0x17eeae]of _0x1220db){const _0x65d9e=this[_0x4f22('0x6c')]['model'][_0x4f22('0xca')](_0x17eeae[_0x4f22('0xa0')],_0x17eeae[_0x4f22('0x111')]);_0x2f181a['markers'][_0x4f22('0x7b')](_0x58b2cc,_0x65d9e);}return _0x1aac78[_0x4f22('0x8b')]((_0xf51ea,_0x415d33)=>{const _0x1953c5=_0x2f181a['markers'][_0x4f22('0x10c')](_0x4f22('0x68')+_0xf51ea['id']),_0xef17cf=_0x2f181a[_0x4f22('0x14')]['get']('revision:'+_0x415d33['id']);return _0x1953c5[_0x4f22('0xa0')]['isBefore'](_0xef17cf[_0x4f22('0xa0')])?-0x1:_0x1953c5[_0x4f22('0xa0')]['isAfter'](_0xef17cf[_0x4f22('0xa0')])?0x1:_0x1953c5['end']['isBefore'](_0xef17cf['end'])?-0x1:_0x1953c5[_0x4f22('0x111')][_0x4f22('0x93')](_0xef17cf[_0x4f22('0x111')])?0x1:_0x4f22('0x23')===_0xf51ea[_0x4f22('0x43')]?-0x1:0x1;}),{'root':_0x2f181a,'changes':_0x1aac78};function _0x2e8e22(_0x3317c4,_0x5494e1,_0x29100c,_0x5b607e){const _0x36def9=!!_0x344747[_0x5494e1][_0x3317c4],_0xd0858a=_0x36def9?_0x344747[_0x5494e1][_0x3317c4][_0x4f22('0xb5')]:null,_0x2197d2=_0x5494e1===_0x344747[_0x4f22('0xe3')]-0x1,_0x46d21d=_0x501cc2[_0x3317c4][0x0],_0x3d0609=_0x373cc8[_0x4f22('0xdc')](_0x344747[_0x5494e1][_0x4f22('0x9d')]);!_0x3c5a21[_0x3317c4]&&_0x36def9?_0x3c5a21[_0x3317c4]={'start':_0x29100c,'tapeItem':_0x344747[_0x5494e1],'userId':_0xd0858a,'type':_0x3317c4}:_0x3c5a21[_0x3317c4]&&!_0x36def9?(_0x3c5a21[_0x3317c4][_0x4f22('0x111')]=_0x29100c,_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]=null):_0x3c5a21[_0x3317c4]&&_0x36def9&&_0x3c5a21[_0x3317c4]['userId']!==_0xd0858a&&(_0x3c5a21[_0x3317c4][_0x4f22('0x111')]=_0x29100c,_0x46d21d&&_0x46d21d['userId']===_0x3c5a21[_0x3317c4][_0x4f22('0xb5')]||_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]={'start':_0x29100c,'tapeItem':_0x344747[_0x5494e1],'userId':_0xd0858a,'type':_0x3317c4}),_0x3c5a21[_0x3317c4]&&_0x3d0609&&(_0x4f22('0x97')!==_0x344747[_0x5494e1][_0x4f22('0x43')]||_0x46d21d&&_0x46d21d[_0x4f22('0xb5')]===_0xd0858a||_0x501cc2[_0x3317c4][_0x4f22('0xf4')]({'userId':_0xd0858a,'object':_0x344747[_0x5494e1][_0x4f22('0x9d')],'change':_0x3c5a21[_0x3317c4]}),_0x4f22('0xad')===_0x344747[_0x5494e1]['type']&&_0x46d21d&&_0x46d21d[_0x4f22('0x3e')]===_0x344747[_0x5494e1][_0x4f22('0x9d')]&&(_0x501cc2[_0x3317c4][_0x4f22('0xd7')](),_0x3c5a21[_0x3317c4]=_0x46d21d['change'])),_0x3c5a21[_0x3317c4]&&_0x2197d2&&(_0x3c5a21[_0x3317c4]['end']=_0x5b607e,_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]=null);}function _0x5eb8fd({start:_0x4a3c53,end:_0xa51cf7,tapeItem:_0xa4492d,userId:_0x242ad3,type:_0x280af9}){const _0x3e21e5=_0xa4492d['item'],_0x9f58e2=_0x288f9f[_0x4f22('0x104')][_0x4f22('0x6d')](_0x3e21e5)&&!_0x288f9f[_0x4f22('0x104')][_0x4f22('0xba')](_0x3e21e5),_0x43a6d0=_0x4a3c53[_0x4f22('0x78')]==_0xa51cf7['parent']&&_0xa51cf7[_0x4f22('0x96')];if(_0x9f58e2&&_0x43a6d0)return;const _0x404d25=_0x288f9f[_0x4f22('0xca')](_0x4a3c53,_0xa51cf7),_0x21a161=_0x5a945a[_0x4f22('0x10c')](_0x242ad3),_0x233db8=new _0x2f0fc5({'author':_0x21a161,'type':_0x4f22('0xe0')==_0x280af9||'isAddSuggestion'==_0x280af9?_0x4f22('0x23'):_0x4f22('0x2b'),'data':{'isSuggestion':_0x4f22('0x52')==_0x280af9||_0x4f22('0x11f')==_0x280af9},'createdAt':new Date(),'rootName':_0x301e1a});_0x1aac78['push'](_0x233db8),_0x2f181a[_0x4f22('0x14')][_0x4f22('0x7b')](_0x4f22('0x68')+_0x233db8['id'],_0x404d25);}function _0x4f2dd6(_0x37b11f,_0x1d2234){const _0x546c0f=_0x37b11f['getAttributes'](),_0xa02aad=_0x1d2234[_0x4f22('0x10d')]();for(const _0x2b5521 of _0x546c0f){if(_0x2b5521[0x1]!==_0x1d2234['getAttribute'](_0x2b5521[0x0]))return!0x1;_0xa02aad['next']();}return _0xa02aad[_0x4f22('0x117')]()[_0x4f22('0xcb')];}}[_0x4f22('0x2c')](){this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))[_0x4f22('0x7e')]({'view':_0x4f22('0x37')}),this[_0x4f22('0x6c')]['conversion'][_0x4f22('0xa3')](_0x4f22('0x38'))['markerToHighlight']({'model':_0x4f22('0x37'),'view':_0x4ccf36=>{const _0x48993a=_0x4ccf36['markerName'][_0x4f22('0x44')](':')[0x1],_0x22fe6f=this[_0x4f22('0x116')](_0x48993a);if(!_0x22fe6f)return null;const _0x55a8c1='add'==_0x22fe6f[_0x4f22('0x43')]?'insertion':'deletion',_0x349b40=[_0x4f22('0x39'),_0x4f22('0xf0')+_0x55a8c1];return _0x22fe6f[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x349b40[_0x4f22('0x26')](_0x4f22('0xf0')+_0x55a8c1+_0x4f22('0x114')),this[_0x4f22('0x10f')]==_0x22fe6f&&_0x349b40[_0x4f22('0x26')](_0x4f22('0x85')),{'classes':_0x349b40,'attributes':{'data-change-id':_0x48993a}};}}),this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')]('upcast')[_0x4f22('0x23')](_0x10ffb8=>{_0x10ffb8['on'](_0x4f22('0x5a'),(_0x3b5dfa,_0x2e29c8,_0x2a1a04)=>{const _0x22bae8=_0x2e29c8[_0x4f22('0x71')][_0x4f22('0x29')](0x0);if(!_0x22bae8||!_0x22bae8['is'](_0x4f22('0xd0'),_0x4f22('0x90')))return;if(!_0x2a1a04[_0x4f22('0x124')][_0x4f22('0xf9')](_0x22bae8,{'attributes':[_0x4f22('0x7'),'vid_end']}))return;const _0x5ce5b2=_0x2e29c8[_0x4f22('0xf1')][_0x4f22('0xa0')][_0x4f22('0x78')];_0x2a1a04[_0x4f22('0x118')][_0x4f22('0x25')]('vid_start',_0x22bae8['getAttribute'](_0x4f22('0x7')),_0x5ce5b2),_0x2a1a04['writer'][_0x4f22('0x25')]('vid_end',_0x22bae8[_0x4f22('0x7f')]('vid_end'),_0x5ce5b2);},{'priority':'low'});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')]('upcast')[_0x4f22('0x23')](_0x438f08=>{_0x438f08['on'](_0x4f22('0xd0'),(_0x28a728,_0x4cabbc,_0x113ebb)=>{if(!_0x113ebb[_0x4f22('0x124')]['consume'](_0x4cabbc[_0x4f22('0x71')],{'attributes':[_0x4f22('0x7'),_0x4f22('0x18')]}))return;if(_0x4cabbc[_0x4f22('0xf1')]['isCollapsed'])return;const _0x26829e=_0x4cabbc[_0x4f22('0xf1')][_0x4f22('0xa0')]['nodeAfter'];_0x26829e[_0x4f22('0xf7')]('vid_start')||_0x26829e[_0x4f22('0xf7')](_0x4f22('0x88'))||(_0x113ebb[_0x4f22('0x118')]['setAttribute'](_0x4f22('0x7'),_0x4cabbc[_0x4f22('0x71')][_0x4f22('0x7f')](_0x4f22('0x7')),_0x26829e),_0x113ebb[_0x4f22('0x118')]['setAttribute'](_0x4f22('0x18'),_0x4cabbc[_0x4f22('0x71')][_0x4f22('0x7f')]('vid_end'),_0x26829e));},{'priority':'low'});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))[_0x4f22('0x102')]({'view':{'name':_0x4f22('0x49'),'attributes':{'vid':!0x0}},'model':{'key':_0x4f22('0x88'),'value':_0x3886c8=>_0x3886c8['getAttribute'](_0x4f22('0x88'))}}),this['editor'][_0x4f22('0xe6')][_0x4f22('0x104')]['on'](_0x4f22('0xa7'),(_0x2e3b7d,[,_0x31e541])=>{['vid_start',_0x4f22('0x18'),'vid'][_0x4f22('0x9f')](_0x31e541)&&(_0x2e3b7d[_0x4f22('0xb9')]=!0x0,_0x2e3b7d['stop']());},{'priority':_0x4f22('0x3b')}),this[_0x4f22('0x6c')]['conversion'][_0x4f22('0xa3')](_0x4f22('0x6'))[_0x4f22('0x23')](_0x340063=>{_0x340063['on'](_0x4f22('0x95'),(_0x826ebb,_0x121503,_0x2f8e1a)=>{if('\x20'!=_0x121503[_0x4f22('0x9d')]['data']||_0x121503['item']['parent'][_0x4f22('0xbf')]>0x1)return;if(!_0x2f8e1a[_0x4f22('0x124')]['consume'](_0x121503[_0x4f22('0x9d')],_0x826ebb['name']))return;const _0x23eda3=_0x2f8e1a[_0x4f22('0x118')],_0x2c7cda=_0x2f8e1a['mapper'][_0x4f22('0x92')](_0x121503[_0x4f22('0x80')]);_0x23eda3[_0x4f22('0x69')](_0x2c7cda,_0x23eda3[_0x4f22('0xbe')](_0x4f22('0x49')));});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')]('dataDowncast')[_0x4f22('0x4c')]({'model':_0x4f22('0x37')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x4b'),function(_0x19585e){const _0x35f3d8=_0x19585e['plugins'][_0x4f22('0x10c')](_0x4f22('0x72'));return(_0xa6b8b7,_0x345f65,_0x4f1ad3)=>{const _0x3e0f95=_0x345f65[_0x4f22('0x6f')][_0x4f22('0x44')](':')[0x1],_0x32b2e4=_0x35f3d8[_0x4f22('0x116')](_0x3e0f95);if(!_0x32b2e4)return null;const _0x5ca7d9=_0x4f22('0x23')==_0x32b2e4['type']?_0x4f22('0x44'):_0x4f22('0x58');if(!_0x4f1ad3[_0x4f22('0x124')][_0x4f22('0x4a')](_0x345f65[_0x4f22('0x36')],_0xa6b8b7[_0x4f22('0xa5')]))return;const _0x4ecdb7=_0x345f65[_0x4f22('0x36')][_0x4f22('0xd8')](),_0x1501ba=_0x345f65[_0x4f22('0x36')][_0x4f22('0xa0')],_0x17d7cf=_0x19585e['model'][_0x4f22('0x104')];let _0x397386=null,_0x30bf78=null,_0x4ebe78=!0x1,_0x332f65=!0x1;for(const _0x142d61 of _0x4ecdb7){const _0x5d5716=_0x142d61[_0x4f22('0x9d')];_0x4ebe78=_0x4ebe78||_0x17d7cf[_0x4f22('0xfd')](_0x5d5716);const _0x1870b4=_0x4f1ad3[_0x4f22('0xa2')]['toViewElement'](_0x5d5716);if(_0x1870b4&&_0x1870b4['getCustomProperty'](_0x4f22('0x99')))return;'elementEnd'==_0x142d61[_0x4f22('0x43')]&&(_0x17d7cf['isBlock'](_0x5d5716)&&!_0x17d7cf[_0x4f22('0xba')](_0x5d5716)&&(_0x5d5716[_0x4f22('0x46')]||_0x1501ba[_0x4f22('0xcd')]?_0x397386&&_0x397386[_0x4f22('0x21')]==_0x5d5716||(_0x397386=_0x5d5716,_0x24e527(_0x142d61['previousPosition']),_0x332f65=!0x0):_0x30bf78=_0x30bf78||_0x142d61['previousPosition']));}function _0x24e527(_0x2db218){const _0x33ba1a=_0x4f1ad3['writer'][_0x4f22('0x4e')](_0x4f22('0x49'),{'class':_0x4f22('0xf0')+_0x5ca7d9}),_0x3043d1=_0x4f1ad3['mapper'][_0x4f22('0xbb')](_0x2db218);_0x32b2e4[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x4f1ad3[_0x4f22('0x118')][_0x4f22('0xfe')](_0x4f22('0xf0')+_0x5ca7d9+_0x4f22('0x114'),_0x33ba1a),_0x35f3d8[_0x4f22('0x10f')]==_0x32b2e4&&_0x4f1ad3[_0x4f22('0x118')]['addClass'](_0x4f22('0x85'),_0x33ba1a),_0x4f1ad3[_0x4f22('0x118')][_0x4f22('0x50')](_0x3043d1,_0x33ba1a),_0x4f1ad3[_0x4f22('0xa2')][_0x4f22('0x54')](_0x33ba1a,_0x345f65[_0x4f22('0x6f')]);}_0x4ebe78||_0x332f65||!_0x30bf78||_0x24e527(_0x30bf78);};}(this[_0x4f22('0x6c')]),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')]['editing'][_0x4f22('0xe8')]['on'](_0x4f22('0x10a'),(_0x4934ca,_0x37c2ed,_0x14fc5a)=>{const _0x11da56=_0x14fc5a[_0x4f22('0xa2')]['markerNameToElements'](_0x37c2ed['markerName']);if(_0x11da56)for(const _0xadef02 of _0x11da56)(_0xadef02[_0x4f22('0x66')](_0x4f22('0xaf'))||_0xadef02[_0x4f22('0x66')](_0x4f22('0x45')))&&(_0x14fc5a[_0x4f22('0xa2')][_0x4f22('0x1a')](_0xadef02,_0x37c2ed[_0x4f22('0x6f')]),_0x14fc5a[_0x4f22('0x118')][_0x4f22('0x2b')](_0xadef02));},{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x4b'),(_0x5a7caa,_0x26f91d,_0x18666f)=>{const _0x58bf3f=_0x26f91d['markerName'][_0x4f22('0x44')](':')[0x1],_0x4e173c=this[_0x4f22('0x116')](_0x58bf3f);if(!_0x4e173c)return null;const _0x3961cc=_0x4f22('0x23')==_0x4e173c[_0x4f22('0x43')]?_0x4f22('0x44'):'merge';if(_0x18666f[_0x4f22('0x124')][_0x4f22('0x4a')](_0x26f91d[_0x4f22('0x36')],_0x5a7caa[_0x4f22('0xa5')]))for(const _0x29e99d of _0x26f91d[_0x4f22('0x36')][_0x4f22('0xd4')]()){if(!_0x29e99d['is']('element',_0x4f22('0xdd')))continue;const _0xf6d6af=_0x18666f[_0x4f22('0x118')][_0x4f22('0x4e')]('span',{'class':_0x4f22('0xf0')+_0x3961cc}),_0x35418b=_0x18666f['mapper']['toViewPosition'](this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0xd')](_0x29e99d));_0x4e173c[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x18666f[_0x4f22('0x118')][_0x4f22('0xfe')](_0x4f22('0xf0')+_0x3961cc+_0x4f22('0x114'),_0xf6d6af),this[_0x4f22('0x10f')]==_0x4e173c&&_0x18666f[_0x4f22('0x118')]['addClass']('ck-suggestion-marker--active',_0xf6d6af),_0x18666f['writer'][_0x4f22('0x50')](_0x35418b,_0xf6d6af),_0x18666f[_0x4f22('0xa2')][_0x4f22('0x54')](_0xf6d6af,_0x26f91d[_0x4f22('0x6f')]);}},{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xe6')]['document']['on'](_0x4f22('0x7c'),()=>{this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x7c')](_0xe01fc2=>{for(const _0x3364dd of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]()){const _0x275419=this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x11d')](_0x3364dd),_0x951a71=this['editor'][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')][_0x4f22('0x11d')](_0x3364dd);if(_0x951a71){const _0x2bc6f3=_0x275419['getAttribute'](_0x4f22('0x27'));if(_0xe01fc2[_0x4f22('0xc8')](_0x4f22('0x41'),_0x951a71),_0xe01fc2[_0x4f22('0x110')](_0x4f22('0x63'),_0x951a71),_0xe01fc2[_0x4f22('0x110')](_0x4f22('0x3d'),_0x951a71),_0xe01fc2['removeClass'](_0x4f22('0x10e'),_0x951a71),_0x2bc6f3){const _0x587329=this['_getChangeFromId'](_0x2bc6f3);if(!_0x587329)return null;_0xe01fc2[_0x4f22('0x25')](_0x4f22('0x41'),_0x2bc6f3,_0x951a71),_0xe01fc2[_0x4f22('0xfe')](_0x4f22('0x122')+_0x587329[_0x4f22('0x43')],_0x951a71),this['activeChange']==_0x587329&&_0xe01fc2[_0x4f22('0xfe')](_0x4f22('0x10e'),_0x951a71);}}}});}),this[_0x4f22('0x6c')][_0x4f22('0x94')]['for'](_0x4f22('0xaa'))[_0x4f22('0x7e')]({'view':_0x4f22('0x7d'),'model':_0x3e8be9=>_0x4f22('0x2a')+_0x3e8be9,'converterPriority':'highest'}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))['dataToMarker']({'view':'suggestion','model':_0x2134a6=>'revision-suggestion:'+_0x2134a6,'converterPriority':_0x4f22('0x3b')}),this[_0x4f22('0x6c')][_0x4f22('0x94')]['for'](_0x4f22('0x6'))[_0x4f22('0x4c')]({'model':_0x4f22('0xb8'),'view':_0xb9c967=>({'name':'suggestion:'+_0xb9c967,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0x38'))[_0x4f22('0xd2')]({'model':_0x4f22('0xb8'),'view':_0x50fca6=>{const _0x40959f=_0x50fca6[_0x4f22('0x6f')]['split'](':')[0x1];return _0x4f22('0x10b')!=_0x40959f&&'deletion'!=_0x40959f?null:{'classes':['ck-suggestion-preview-marker',_0x4f22('0x28')+_0x40959f]};}}),this[_0x4f22('0x6c')]['editing'][_0x4f22('0xe8')]['on'](_0x4f22('0xf5'),Z(this[_0x4f22('0x6c')],_0x4f22('0x58')),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x51'),Z(this[_0x4f22('0x6c')],_0x4f22('0x44')),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x112'),(_0xa1b7e8,_0x2b9315,_0x53c38c)=>{const _0x2359a2=_0x53c38c[_0x4f22('0xa2')]['markerNameToElements'](_0x2b9315[_0x4f22('0x6f')]);if(_0x2359a2)for(const _0x12bb38 of _0x2359a2)_0x12bb38['is'](_0x4f22('0x4'))&&(_0x53c38c[_0x4f22('0xa2')][_0x4f22('0x1a')](_0x12bb38,_0x2b9315[_0x4f22('0x6f')]),_0x53c38c[_0x4f22('0x118')]['remove'](_0x12bb38));},{'priority':_0x4f22('0x6b')});}[_0x4f22('0x116')](_0x297b21){return this[_0x4f22('0x22')][_0x4f22('0x10c')](_0x297b21);}['_getViewForChange'](_0x236b75){return this[_0x4f22('0xd6')]&&this['_changeView'][_0x4f22('0x61')](),this[_0x4f22('0xd6')]=new _0x249774(this[_0x4f22('0x6c')]['locale'],_0x236b75),this[_0x4f22('0xd6')];}[_0x4f22('0x4d')](){this[_0x4f22('0x6c')]['model'][_0x4f22('0x106')][_0x4f22('0x10')][_0x4f22('0xed')](_0x4f22('0x37')),this['on'](_0x4f22('0x6a'),(_0x121a0b,_0xf201ca,_0x5a5ea5,_0x56c4fa)=>{_0x56c4fa&&this[_0x4f22('0xa4')][_0x4f22('0x2b')](_0x56c4fa),_0x5a5ea5&&(this[_0x4f22('0xa4')][_0x4f22('0x23')]({'view':_0x5a5ea5,'stackId':_0x4f22('0xd5'),'position':{'target':()=>{const _0x1e7510=this['editor'][_0x4f22('0xb7')],_0x50c6d7=this[_0x4f22('0x116')](_0x5a5ea5[_0x4f22('0x121')]);let _0x219456;if(_0x50c6d7[_0x4f22('0x120')][_0x4f22('0xc0')]){const _0x464c3f=_0x1e7510[_0x4f22('0x1f')][_0x4f22('0xae')](_0x50c6d7[_0x4f22('0x12')]);_0x219456=Array[_0x4f22('0x5c')](_0x464c3f[_0x4f22('0x9c')]());}else{const _0x394ca9=this[_0x4f22('0x6c')][_0x4f22('0xe6')]['markers'][_0x4f22('0x10c')](_0x4f22('0x68')+_0x5a5ea5[_0x4f22('0x121')]);_0x219456=Array[_0x4f22('0x5c')](_0x1e7510['mapper'][_0x4f22('0x35')](_0x394ca9[_0x4f22('0xa5')]))[_0x4f22('0x8d')](_0x4c5d2b=>_0x1e7510[_0x4f22('0x1f')][_0x4f22('0x3c')]['mapViewToDom'](_0x4c5d2b))[_0x4f22('0x8d')](_0x3495f3=>Array[_0x4f22('0x5c')](_0x3495f3[_0x4f22('0x9c')]()))['flat']();}if(!this[_0x4f22('0x16')])return _0x219456[0x0];return _0x219456['find'](_0x5cb08b=>_0x5cb08b[_0x4f22('0xb3')]-0x3<=this['_activeViewTarget']['y']&&_0x5cb08b[_0x4f22('0x109')]+0x3>=this[_0x4f22('0x16')]['y']&&_0x5cb08b['left']-0x3<=this[_0x4f22('0x16')]['x']&&_0x5cb08b[_0x4f22('0xe4')]+0x3>=this[_0x4f22('0x16')]['x'])||_0x219456[0x0];}}}),this[_0x4f22('0xa4')][_0x4f22('0x65')](_0x4f22('0xd5')));}),this['on'](_0x4f22('0x67'),(_0x200318,_0x262213,_0x27259a,_0x475618)=>{this['activeView']=_0x27259a?this[_0x4f22('0xb2')](_0x27259a):null,this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x7c')](()=>{const _0x68459e=this[_0x4f22('0x6c')][_0x4f22('0xb7')];_0x475618&&(_0x475618[_0x4f22('0x120')][_0x4f22('0xc0')]?_0x68459e[_0x4f22('0x1f')][_0x4f22('0x7c')](_0x5ebd04=>{_0x5ebd04[_0x4f22('0x110')](_0x4f22('0x10e'),_0x68459e['view'][_0x4f22('0x106')]['getRoot'](_0x475618[_0x4f22('0x12')]));}):_0x68459e[_0x4f22('0x9b')](_0x4f22('0x68')+_0x475618['id'])),_0x27259a&&(_0x27259a[_0x4f22('0x120')]['isOnRoot']?_0x68459e['view'][_0x4f22('0x7c')](_0x46ca9e=>{_0x46ca9e[_0x4f22('0xfe')](_0x4f22('0x10e'),_0x68459e[_0x4f22('0x1f')][_0x4f22('0x106')]['getRoot'](_0x27259a[_0x4f22('0x12')]));}):_0x68459e[_0x4f22('0x9b')]('revision:'+_0x27259a['id']));});}),this[_0x4f22('0xbc')](this[_0x4f22('0x6c')][_0x4f22('0xb7')]['view'][_0x4f22('0x106')],_0x4f22('0xa8'),(_0x2d11af,_0x1c0820)=>{if(this[_0x4f22('0x10f')])return;const _0x392171=this[_0x4f22('0xb4')](_0x1c0820[_0x4f22('0x8c')]),_0x58e69c=this[_0x4f22('0x22')][_0x4f22('0x10c')](_0x392171);_0x58e69c?(this[_0x4f22('0x16')]={'x':_0x1c0820[_0x4f22('0x59')]['x'],'y':_0x1c0820[_0x4f22('0x59')]['y']},this['activeView']=this[_0x4f22('0xb2')](_0x58e69c)):(this[_0x4f22('0x16')]=null,this[_0x4f22('0x62')]=null);}),this[_0x4f22('0xbc')](this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')],_0x4f22('0x3f'),(_0x5daa67,_0x7c1602)=>{const _0x1ba3c0=this[_0x4f22('0xb4')](_0x7c1602[_0x4f22('0x8c')]),_0x27c96c=this['_changeIdToChange']['get'](_0x1ba3c0);_0x27c96c?(this[_0x4f22('0x16')]={'x':_0x7c1602[_0x4f22('0x59')]['x'],'y':_0x7c1602[_0x4f22('0x59')]['y']},_0x27c96c===this[_0x4f22('0x10f')]?this['_balloon']['updatePosition']():this[_0x4f22('0x10f')]=_0x27c96c):(this[_0x4f22('0x16')]=null,this[_0x4f22('0x10f')]=null);});}[_0x4f22('0xb4')](_0x2188a8){do{const _0x28a4aa=_0x2188a8[_0x4f22('0x7f')](_0x4f22('0x41'));if(_0x28a4aa)return _0x28a4aa;_0x2188a8=_0x2188a8[_0x4f22('0x21')];}while(_0x2188a8);return null;}[_0x4f22('0x8f')](){this['editor'][_0x4f22('0xe6')][_0x4f22('0x7c')](_0x4ee7b0=>{for(const _0x1c1b17 of this[_0x4f22('0x6c')]['model'][_0x4f22('0x14')])_0x4ee7b0[_0x4f22('0xb0')](_0x1c1b17);});}}function Z(_0x1f8614,_0x47352e){return(_0x5bfb10,_0xedceb4,_0x5258dd)=>{if(!_0x5258dd[_0x4f22('0x124')]['test'](_0xedceb4['markerRange'],_0x5bfb10[_0x4f22('0xa5')]))return;const _0xf07e36=_0xedceb4[_0x4f22('0x36')][_0x4f22('0xd8')](),_0x2cd068=_0xedceb4['markerRange'][_0x4f22('0xa0')],_0x20eebf=_0x1f8614[_0x4f22('0xe6')][_0x4f22('0x104')];let _0x1a8885=null,_0x5a6777=null,_0x597c81=!0x1,_0x1a1008=!0x1;for(const _0x38efcc of _0xf07e36){const _0x5a35bc=_0x38efcc[_0x4f22('0x9d')];_0x597c81=_0x597c81||_0x20eebf[_0x4f22('0xfd')](_0x5a35bc);const _0x3924a2=_0x5258dd[_0x4f22('0xa2')][_0x4f22('0xfa')](_0x5a35bc);if(_0x3924a2&&_0x3924a2[_0x4f22('0x86')](_0x4f22('0x99')))return;_0x4f22('0xad')==_0x38efcc[_0x4f22('0x43')]&&(_0x20eebf[_0x4f22('0x6d')](_0x5a35bc)&&!_0x20eebf['isLimit'](_0x5a35bc)&&(_0x5a35bc[_0x4f22('0x46')]||_0x2cd068[_0x4f22('0xcd')]?_0x1a8885&&_0x1a8885[_0x4f22('0x21')]==_0x5a35bc||(_0x1a8885=_0x5a35bc,_0x46f242(_0x38efcc['previousPosition']),_0x1a1008=!0x0):_0x5a6777=_0x5a6777||_0x38efcc[_0x4f22('0x73')]));}function _0x46f242(_0x141311){const _0x578ab6=_0x5258dd[_0x4f22('0xa2')][_0x4f22('0xbb')](_0x141311),_0x3b3e3b=_0x5258dd[_0x4f22('0x118')]['createUIElement'](_0x4f22('0x49'),{'class':_0x4f22('0x28')+_0x47352e});_0x5258dd[_0x4f22('0x118')][_0x4f22('0x50')](_0x578ab6,_0x3b3e3b),_0x5258dd['mapper'][_0x4f22('0x54')](_0x3b3e3b,_0xedceb4[_0x4f22('0x6f')]);}_0x597c81||_0x1a1008||!_0x5a6777||_0x46f242(_0x5a6777);};}export class RestoreRevisionCommand extends _0x35688b{constructor(_0xf403fc){super(_0xf403fc);const _0x2925c4=_0xf403fc[_0x4f22('0xc1')]['get'](d);this['affectsData']=!0x1,this[_0x4f22('0xbc')](_0x2925c4,_0x4f22('0x98'),()=>this[_0x4f22('0x101')]()),this['listenTo'](_0x2925c4,_0x4f22('0x70'),()=>this[_0x4f22('0x101')]());}[_0x4f22('0xf3')](){const _0x50c39a=this[_0x4f22('0x6c')],_0x36b7a1=_0x50c39a[_0x4f22('0xc1')]['get'](d),_0xd4d6ec=_0x36b7a1[_0x4f22('0xea')]?_0x36b7a1[_0x4f22('0xce')][_0x4f22('0xde')]:null;_0x50c39a[_0x4f22('0x19')]['get'](_0x4f22('0xf8'))['restoreRevisionCallback'](_0xd4d6ec);}[_0x4f22('0x101')](){const {isReady:_0x26703d,isEnabled:_0x598af4}=this[_0x4f22('0x6c')][_0x4f22('0xc1')][_0x4f22('0x10c')](d);this[_0x4f22('0x8a')]=_0x26703d&&_0x598af4;}}export class ShowChangeCommand extends _0x35688b{constructor(_0x486481,{direction:_0x2d65b9}){super(_0x486481);const _0x5a308d=_0x486481[_0x4f22('0xc1')][_0x4f22('0x10c')](d);this['affectsData']=!0x1,this[_0x4f22('0xff')]=_0x4f22('0x2e')===_0x2d65b9?0x1:-0x1,this['listenTo'](_0x5a308d,_0x4f22('0x98'),()=>this[_0x4f22('0x101')]()),this[_0x4f22('0xbc')](_0x5a308d,_0x4f22('0x70'),()=>this[_0x4f22('0x101')]());}[_0x4f22('0xf3')](){const _0x2b3b29=this[_0x4f22('0x6c')],_0x555b70=_0x2b3b29[_0x4f22('0xc1')][_0x4f22('0x10c')](d),{isNavigationMode:_0x1f7ac1,currentChangeNumber:_0xfe4bcc}=_0x555b70;let _0x17b714;if(_0x555b70['activeChange']=_0x1f7ac1?_0x555b70[_0x4f22('0xce')]['changes'][_0x4f22('0x10c')](_0xfe4bcc+this['_step']):_0x555b70[_0x4f22('0xce')][_0x4f22('0xda')][_0x4f22('0xe9')],_0x555b70[_0x4f22('0x10f')][_0x4f22('0x120')][_0x4f22('0xc0')])_0x17b714=_0x2b3b29[_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0xae')](_0x555b70[_0x4f22('0x10f')][_0x4f22('0x12')]);else{const _0x2c89f6=_0x2b3b29[_0x4f22('0xe6')][_0x4f22('0x14')][_0x4f22('0x10c')](_0x4f22('0x68')+_0x555b70[_0x4f22('0x10f')]['id']);_0x17b714=_0x313195(_0x2b3b29['editing'],_0x2c89f6);}_0x3c451b({'target':_0x17b714,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x59fb4c,currentChangeNumber:_0x2544c7,numberOfChanges:_0x3f129b,isReady:_0x1bda5f,isEnabled:_0x34e593}=this[_0x4f22('0x6c')][_0x4f22('0xc1')][_0x4f22('0x10c')](d);this[_0x4f22('0x8a')]=!!(_0x34e593&&_0x1bda5f&&_0x3f129b)&&(!_0x59fb4c||(0x1===this[_0x4f22('0xff')]?_0x2544c7<_0x3f129b-0x1:_0x2544c7>0x0));}}
|
|
23
|
+
const _0x172e=['diffData','_step','mapper','getIndex','_revisions','domEvent','_setChanges','highest','oldRevisionId','listenTo','_setConversion','removeAttribute','type','has','getDomRoot','enableReadOnlyMode','getAttribute','revisionHistoryAttachChange','vid_end','commands','ck-revision-history-root-add','createRange','softBreak','stop','restoreRevisionCallback','bottom','vid','clear','left','comment','end','isInline','currentChangeNumber','code','markerNameToElements','isRemoveSuggestion','showNextChange','isIncorrect','detachRoot','removeMarker:revision','config','adapter','getClientRects','setAttribute','affectsData','revision-viewer','revisionHistoryLabel','markersEnd','ck-suggestion-preview-marker','revision-end','_markSuggestions','isAtEnd','data','data-change-id','revision-start','-new','useFillerType','_sortAndFilterDiffChanges','mouseover','change:activeChange','wrap','createAttributeElement','getAttributes','activeView','_getDiff','upcast','_findChangeIdFromDomTarget','get','getItems','processor','getRootNames','index','toData','elementEnd','all','editor','markers','marked','getWalker','_getRevisionsRange','isEqual','userId','mapViewToDom','_setDistance','_getViewForChange','isCollapsed','element:pre','markerName','range','ck-suggestion-marker--active','bindElementToMarker','writer','first','ck-suggestion-marker-','startsWith','_activeViewTarget','dataDowncast','isLimit','change:activeView','RevisionViewer','includes','createRangeIn','findIndex','level','isAddSuggestion','isBlock','insert','ck-revision-history-root--active','concat','consumable','getRevisionData','element','_removeMissingPairs','isReady','markersStart','isOnRoot','change:isReady','reconvertMarker','distance','delete','addRevision','maxOffset','addMarker:revision','isAttached','splice','object','_makeTape','return','attributes','startIndex','sort','_markInsertions','remove','span','set','_markMarkers','name','revision-suggestion','editingDowncast','isEnabled','loadRevisionData','from','forward','addMarker:revision-suggestion:insertion','plugins','attachChange','toViewElement','compare','document','execute','add','ck-editor__editable__overlay','toModel','isAdded','ck-revision-history-root-','_joinTapes','forceDisabled','isObject','markerToHighlight','getRevision','refresh','isSuggestion','RevisionsRepository','item','backward','pairId','insertions','string','isContent','suggestion:','getRevisionRootsAttributes','rootName','locale','_getChangeFromId','addRevisionData','_refreshStartEndIndex','model','suggestion','low','enqueueChange','updatePosition','mousedown','authors','_balloon','WidgetToolbarRepository','removeMarker:revision-suggestion','ck-revision-history-root-remove','insertion','editing','showStack','_processTape','changeId','repository','uiElement','_removeRevisionMarkers','createUIElement','isBefore','pop','getChild','keys','_initInteractions','data-revision-','destroy','_update','newRevisionId','values','getCustomProperty','find','push','done','markerRange','_changeView','revision:','revision-suggestion:','diff','getRoot','test','change:numberOfChanges','start','_cleanMarkers','nextPosition','target','_makeModelFromViewString','previousPosition','isRemoved','top','consume','ck-suggestion-marker-split','changes','forEach','createPositionFromPath','dataToMarker','shift','catch','nextSibling','downcastDispatcher','collaboration.channelId','_removeUnsupportedChanges','toViewPosition','viewItem','high','_changeIdToChange','removeClass','nodeAfter','attributesAfter','change:isEnabled','activeChange','markerToData','_cleanUp','bind','then','_appendChild','text','modelRange','view','_fixObsoleteTags','resolve','endIndex','filter','createPositionBefore','addClass','_makeModelFromTape','change','ck-suggestion-preview-marker-','elementToAttribute','deletions','indexOf','split','revision-comment:','for','map','_markMismatchedRemovedTags','elementStart','next','schema','toViewRange','isAtStart','hasClass','length','pluginName','unshift','_threeWayMerge','parent','side','observeMarkers','deletion','default','revision','roots','_data','merge','children','abs','isAfter','_getViewObj','vid_start','conversion','createRevision'];(function(_0x497d0f,_0x172ec7){const _0x499607=function(_0xaacc5c){while(--_0xaacc5c){_0x497d0f['push'](_0x497d0f['shift']());}};_0x499607(++_0x172ec7);}(_0x172e,0x198));const _0x4996=function(_0x497d0f,_0x172ec7){_0x497d0f=_0x497d0f-0x0;let _0x499607=_0x172e[_0x497d0f];return _0x499607;};import{Plugin as _0x447ee7,Command as _0x375e2b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x22828b}from'ckeditor5/src/utils';import{ContextualBalloon as _0x211c45}from'ckeditor5/src/ui';import{DocumentFragment as _0x43670e,Element as _0x4eafb8,Text as _0x1bf5df,ViewDocumentFragment as _0x4b1689,ViewText as _0x3cc44a,ViewElement as _0x138663,ViewContainerElement as _0xb281a4,ViewAttributeElement as _0x2387d8,ViewEmptyElement as _0x3e6581,ViewRawElement as _0x1ae8d1,ViewUIElement as _0x45f46}from'ckeditor5/src/engine';import{Users as _0x17773b,getMarkerDomElement as _0x39ac91}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b3fd3 from'./ui/revisionviewer/changedetailsview';import _0x2b1d2f from'./revisionsrepository';import _0x573f15 from'./changeitem';import{default as _0x5bd5b3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x46bcdc}from'lodash-es';const tt={'c':_0xb281a4,'a':_0x2387d8,'e':_0x3e6581,'r':_0x1ae8d1,'u':_0x45f46};export default class d extends _0x447ee7{static get[_0x4996('0xa9')](){return _0x4996('0x11f');}static get['requires'](){return[_0x17773b,_0x211c45,_0x2b1d2f];}constructor(_0x56f5c9){super(_0x56f5c9),this[_0x4996('0x52')]=this['editor'][_0x4996('0x22')]['get'](_0x4996('0x34')),this[_0x4996('0x18')](_0x4996('0x88'),null),this['set'](_0x4996('0xfb'),null),this[_0x4996('0x11b')]=null,this[_0x4996('0x18')](_0x4996('0x68'),null),this[_0x4996('0x18')]('isReady',!0x1),this[_0x4996('0x18')](_0x4996('0x1d'),!0x0),this['on'](_0x4996('0x87'),(_0x31a728,_0x46bfd8,_0x1a5c74)=>{this[_0x4996('0x88')]=null,this[_0x4996('0xfb')]=null,this['editor'][_0x4996('0x4e')][_0x4996('0x90')][_0x4996('0x98')](_0x237610=>{for(const _0x945cc5 of this[_0x4996('0x107')]['editing'][_0x4996('0x90')][_0x4996('0x26')][_0x4996('0xb2')])_0x1a5c74?_0x237610[_0x4996('0x84')](_0x4996('0x29'),_0x945cc5):_0x237610[_0x4996('0x96')](_0x4996('0x29'),_0x945cc5);});}),this['bind']('isNavigationMode')['to'](this,_0x4996('0x88'),_0x957ea4=>null!==_0x957ea4),this[_0x4996('0x8b')](_0x4996('0xdc'))['to'](this,_0x4996('0x3'),this,_0x4996('0x68'),this,_0x4996('0x88'),(_0x31a697,_0x2cdc2c,_0x29fec6)=>_0x31a697&&_0x29fec6?_0x2cdc2c[_0x4996('0x76')][_0x4996('0xbf')](_0x29fec6):0x0),this[_0x4996('0x8b')]('numberOfChanges')['to'](this,_0x4996('0x3'),this,_0x4996('0x68'),(_0x3be91a,_0x31b698)=>_0x3be91a?_0x31b698[_0x4996('0x76')][_0x4996('0xa8')]:0x0),this[_0x4996('0x65')]=null,this['_changeIdToChange']=new Map(),this[_0x4996('0xe5')]=null,this[_0x4996('0x49')]=this['editor'][_0x4996('0x22')][_0x4996('0xff')](_0x211c45);}['init'](){const _0x416a6c=this[_0x4996('0x107')],_0x555698=new ShowChangeCommand(_0x416a6c,{'direction':_0x4996('0x36')}),_0xab7801=new ShowChangeCommand(_0x416a6c,{'direction':_0x4996('0x20')});(_0x416a6c[_0x4996('0xcf')][_0x4996('0x28')]('showPreviousChange',_0x555698),_0x416a6c[_0x4996('0xcf')][_0x4996('0x28')](_0x4996('0xe0'),_0xab7801),_0x416a6c[_0x4996('0xcf')]['add']('restoreRevision',new RestoreRevisionCommand(_0x416a6c)),this['on'](_0x4996('0x6b'),()=>{_0x555698[_0x4996('0x32')](),_0xab7801[_0x4996('0x32')]();}),this['_setConversion'](),this[_0x4996('0x5a')](),_0x416a6c[_0x4996('0xcb')](_0x4996('0xe9')),_0x416a6c[_0x4996('0x22')][_0x4996('0xc9')](_0x4996('0x4a')))&&_0x416a6c['plugins'][_0x4996('0xff')](_0x4996('0x4a'))[_0x4996('0x2e')](_0x4996('0xe9'));}async[_0x4996('0x0')](_0x93d9){await this['loadRevisionData'](_0x93d9);const _0x19d4ba={};for(const _0x4ab873 in _0x93d9[_0x4996('0xbc')]){if(_0x93d9[_0x4996('0xbc')][_0x4ab873][_0x4996('0x23')]&&!_0x93d9[_0x4996('0xbc')][_0x4ab873][_0x4996('0x23')]['isAttached'])continue;const _0x3f493d=this[_0x4996('0x54')](JSON['parse'](_0x93d9[_0x4996('0xbc')][_0x4ab873][_0x4996('0x38')])),_0x4a9a81=this[_0x4996('0x107')]['editing'][_0x4996('0x90')][_0x4996('0x26')],_0x539c9b=new _0x4b1689(_0x4a9a81,_0x3f493d['map'](_0x14cf21=>this['_getViewObj'](_0x14cf21)));this[_0x4996('0x107')]['data'][_0x4996('0x101')][_0x4996('0xf4')](_0x4996('0x109')),_0x19d4ba[_0x4ab873]=this[_0x4996('0x107')]['data'][_0x4996('0x101')][_0x4996('0x104')](_0x539c9b),this['editor'][_0x4996('0xf0')]['processor'][_0x4996('0xf4')](_0x4996('0xb0'));}return _0x19d4ba;}async[_0x4996('0x3c')](_0x122d97){await this[_0x4996('0x1e')](_0x122d97);const _0x580716={};for(const _0x518f37 in _0x122d97[_0x4996('0xbc')])_0x122d97[_0x4996('0xbc')][_0x518f37][_0x4996('0x23')]&&!_0x122d97[_0x4996('0xbc')][_0x518f37]['attachChange']['isAttached']||(_0x580716[_0x518f37]=_0x122d97[_0x4996('0xbc')][_0x518f37][_0x4996('0x86')]||{});return _0x580716;}[_0x4996('0x54')](_0x4bdfd4){return(_0x4bdfd4=_0x4bdfd4[_0x4996('0x94')](_0x452aee=>!_0x452aee['name']||_0x4996('0xf2')!==_0x452aee[_0x4996('0x1a')]&&_0x4996('0xed')!==_0x452aee[_0x4996('0x1a')]))['forEach'](_0x159f96=>{_0x4996('0x39')!=typeof _0x159f96&&(_0x159f96[_0x4996('0xb5')]=this[_0x4996('0x54')](_0x159f96['children']),_0x159f96[_0x4996('0x12')]=_0x159f96[_0x4996('0x12')][_0x4996('0x94')](_0x310be5=>!_0x310be5[0x0][_0x4996('0x11a')](_0x4996('0x5b'))));}),_0x4bdfd4;}async[_0x4996('0x25')](_0x376680,_0x182a76,_0x3e0b21=!0x1){if(!this[_0x4996('0x1d')])return;const _0x35a52f=this['diff'],_0x19225d=this[_0x4996('0x52')],_0x17f7f4='string'==typeof _0x376680?_0x19225d['getRevision'](_0x376680):_0x376680,_0x420497=_0x4996('0x39')==typeof _0x182a76?_0x19225d[_0x4996('0x31')](_0x182a76):_0x182a76,_0x4498e6=_0x17f7f4['id'],_0xc1c071=_0x420497?_0x420497['id']:null;if(!_0x3e0b21&&this[_0x4996('0x68')]&&this['diff'][_0x4996('0x5e')]===_0x4498e6&&this[_0x4996('0x68')][_0x4996('0xc4')]===_0xc1c071)return Promise[_0x4996('0x92')]();this['isReady']=!0x1,this[_0x4996('0xfb')]=null,this[_0x4996('0x88')]=null,this['diff']=new _0x5bd5b3(_0x4498e6,_0xc1c071);const _0x1744f0=this[_0x4996('0x10b')](_0x17f7f4,_0x420497,!0x0)['map'](_0x432032=>this[_0x4996('0x1e')](_0x432032));return _0x1744f0['push'](new Promise(_0x5516b8=>{setTimeout(_0x5516b8,0x14);})),Promise[_0x4996('0x106')](_0x1744f0)[_0x4996('0x8c')](()=>{if(!this[_0x4996('0x1d')])return;this[_0x4996('0x8a')]();const _0x2d97cc=this[_0x4996('0xfc')](_0x4498e6,_0xc1c071);for(const _0x20162b of _0x2d97cc[_0x4996('0x76')])this[_0x4996('0x83')][_0x4996('0x18')](_0x20162b['id'],_0x20162b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x452f48=>{for(const _0x4c60e5 of this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0x26')][_0x4996('0x102')]())_0x452f48[_0x4996('0xe2')](_0x4c60e5);for(const _0x107dd8 of Object['keys'](_0x2d97cc[_0x4996('0x42')])){const _0x3733e0=_0x452f48['addRoot'](_0x107dd8);for(const _0x188f97 of Object[_0x4996('0x59')](_0x2d97cc[_0x4996('0x12')][_0x107dd8]))_0x452f48[_0x4996('0xe7')](_0x188f97,_0x2d97cc[_0x4996('0x12')][_0x107dd8][_0x188f97],_0x3733e0);_0x452f48[_0x4996('0x126')](_0x2d97cc[_0x4996('0x42')][_0x107dd8],_0x3733e0,0x0);}}),this['diff'][_0x4996('0xc2')](this[_0x4996('0xf5')](_0x2d97cc[_0x4996('0x76')])),this[_0x4996('0x3')]=!0x0;})[_0x4996('0x7b')](_0x26f0b1=>{console['error'](_0x26f0b1),this[_0x4996('0x8a')](),_0x35a52f&&(this[_0x4996('0x68')]=_0x35a52f),this[_0x4996('0x3')]=!0x0;});}[_0x4996('0x40')](_0x1f922e,_0x235270){const _0x407527=this[_0x4996('0x52')][_0x4996('0xbb')](_0x1f922e);return _0x407527['on'](_0x4996('0x5d'),(_0x2836a1,_0x32dfa1,_0x4e05d6)=>_0x235270(_0x32dfa1,_0x4e05d6,_0x407527)),this['repository'][_0x4996('0xa')](_0x407527),_0x407527;}['loadRevisionData'](_0x557384){if(!_0x557384||_0x557384[_0x4996('0xbc')])return Promise[_0x4996('0x92')]();{const _0x5c39f6=this[_0x4996('0x107')]['config']['get'](_0x4996('0x7e'));return this[_0x4996('0xe5')]['getRevision']({'channelId':_0x5c39f6,'revisionId':_0x557384['id']})['then'](_0x225af4=>{_0x557384[_0x4996('0x5d')]({'diffData':_0x225af4[_0x4996('0xbc')]},!0x0);});}}[_0x4996('0x8a')](){this[_0x4996('0x88')]=null,this[_0x4996('0x6d')](),this[_0x4996('0x65')]&&this[_0x4996('0x65')][_0x4996('0x5c')](),this[_0x4996('0x65')]=null,this[_0x4996('0x83')][_0x4996('0xd7')](),this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0x45')]({'isUndoable':!0x1},_0x439e39=>{for(const _0x1f873d of this[_0x4996('0x107')]['model'][_0x4996('0x26')][_0x4996('0x102')]())_0x439e39[_0x4996('0xe2')](_0x1f873d);});}[_0x4996('0xf5')](_0x9e1065){const _0x30cb65=[],_0x3b1617=new Map();for(const _0x258f87 of this[_0x4996('0x107')][_0x4996('0x42')]['document'][_0x4996('0x102')]()){const _0x7b11b4=this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x90')][_0x4996('0xca')](_0x258f87);if(!_0x7b11b4)continue;const _0x46c8a8=_0x7b11b4[_0x4996('0xe6')]()[_0x4996('0x35')](0x0);_0x46c8a8&&(_0x30cb65[_0x4996('0x62')](_0x258f87),_0x3b1617[_0x4996('0x18')](_0x258f87,_0x46c8a8));}return _0x30cb65[_0x4996('0x14')]((_0x57a7e4,_0x1d8d55)=>{const _0x553c35=_0x3b1617[_0x4996('0xff')](_0x57a7e4),_0x389ddc=_0x3b1617['get'](_0x1d8d55);return _0x553c35['y']-_0x389ddc['y']||_0x553c35['x']-_0x389ddc['x'];}),(_0x9e1065=_0x9e1065['filter'](_0x441a83=>_0x30cb65[_0x4996('0x120')](_0x441a83[_0x4996('0x3d')])))[_0x4996('0x14')]((_0x28ef86,_0x4790a6)=>_0x30cb65['indexOf'](_0x28ef86[_0x4996('0x3d')])-_0x30cb65[_0x4996('0x9c')](_0x4790a6['rootName'])),_0x9e1065;}['_makeTape'](_0x18c5ab){const _0x58db8d=Array[_0x4996('0x1f')](_0x18c5ab[_0x4996('0x108')])[_0x4996('0x94')](([_0x5a80ea,_0x2861f6])=>_0x5a80ea[_0x4996('0x11a')]('revision:')&&!_0x2861f6[_0x4996('0x111')]),_0x385e98=Array[_0x4996('0x1f')](this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0x121')](_0x18c5ab)[_0x4996('0x10a')]({'singleCharacters':!0x0}));if(0x0!=_0x58db8d[_0x4996('0xa8')])for(const _0x2733cf of _0x385e98){const [_0x4389a6,_0x209695]=_0x58db8d[0x0],[,_0x41f68c,_0x58c1cb]=_0x4389a6[_0x4996('0x9d')](':');if(_0x209695[_0x4996('0xda')][_0x4996('0x10c')](_0x2733cf[_0x4996('0x6e')])&&_0x58db8d['shift'](),(_0x2733cf['previousPosition']['isEqual'](_0x209695[_0x4996('0x6c')])||_0x2733cf['previousPosition'][_0x4996('0xb7')](_0x209695[_0x4996('0x6c')]))&&('insertion'==_0x41f68c?_0x2733cf[_0x4996('0x2b')]={'userId':_0x58c1cb}:_0x4996('0xaf')==_0x41f68c&&(_0x2733cf[_0x4996('0x72')]={'userId':_0x58c1cb})),0x0==_0x58db8d[_0x4996('0xa8')])break;}return _0x385e98;}[_0x4996('0x41')](_0xddeba1){const _0x3215e4=new Map();for(let _0x23c578=0x0;_0x23c578<_0xddeba1['length'];_0x23c578++)_0x4996('0x8e')===_0xddeba1[_0x23c578][_0x4996('0xc8')]?(_0xddeba1[_0x23c578]['item'][_0x4996('0x13')]=_0x23c578,_0xddeba1[_0x23c578][_0x4996('0x35')][_0x4996('0x93')]=_0x23c578):(_0x4996('0xa2')===_0xddeba1[_0x23c578][_0x4996('0xc8')]?_0xddeba1[_0x23c578][_0x4996('0x35')][_0x4996('0x13')]=_0x23c578:'elementEnd'===_0xddeba1[_0x23c578][_0x4996('0xc8')]&&(_0xddeba1[_0x23c578]['item'][_0x4996('0x93')]=_0x23c578),_0x3215e4['set'](_0xddeba1[_0x23c578]['id'],_0x23c578));for(const _0x53f574 of _0x3215e4[_0x4996('0x5f')]())'elementStart'===_0xddeba1[_0x53f574][_0x4996('0xc8')]?_0xddeba1[_0x53f574][_0x4996('0x35')][_0x4996('0x93')]=_0x3215e4['get'](_0xddeba1[_0x53f574][_0x4996('0x37')]):_0x4996('0x105')===_0xddeba1[_0x53f574]['type']&&(_0xddeba1[_0x53f574][_0x4996('0x35')][_0x4996('0x13')]=_0x3215e4[_0x4996('0xff')](_0xddeba1[_0x53f574]['pairId']));}[_0x4996('0x50')](_0x10b7bc){for(let _0x52c23d=0x0;_0x52c23d<_0x10b7bc['length'];_0x52c23d++){if(_0x4996('0xa2')===_0x10b7bc[_0x52c23d]['type'])_0x10b7bc[_0x52c23d][_0x4996('0x35')][_0x4996('0x13')]=_0x52c23d;else{if(_0x4996('0x105')===_0x10b7bc[_0x52c23d]['type']){_0x10b7bc[_0x52c23d][_0x4996('0x35')][_0x4996('0x93')]=_0x52c23d;const _0x2a5b19=_0x10b7bc[_0x52c23d]['item'][_0x4996('0x13')];_0x10b7bc[_0x2a5b19][_0x4996('0x37')]=_0x10b7bc[_0x52c23d]['id'],_0x10b7bc[_0x52c23d][_0x4996('0x37')]=_0x10b7bc[_0x2a5b19]['id'];}else _0x10b7bc[_0x52c23d][_0x4996('0x35')]['startIndex']=_0x52c23d,_0x10b7bc[_0x52c23d][_0x4996('0x35')][_0x4996('0x93')]=_0x52c23d,_0x10b7bc[_0x52c23d][_0x4996('0x37')]=null;}_0x10b7bc[_0x52c23d][_0x4996('0x4')]||(_0x10b7bc[_0x52c23d][_0x4996('0x4')]=[],_0x10b7bc[_0x52c23d][_0x4996('0xeb')]=[]);}}['_markInsertions'](_0x42f531,_0x351d92){const _0x222abf=_0x42f531['filter'](_0x52e368=>!_0x52e368[_0x4996('0x2b')]);for(let _0x147016=0x0;_0x147016<_0x351d92[_0x4996('0xa8')];_0x147016++)_0x351d92[_0x147016][_0x4996('0x2b')]&&(_0x222abf[_0x147016][_0x4996('0x2b')]=_0x351d92[_0x147016][_0x4996('0x2b')]);}[_0x4996('0x70')](_0x3141be){const _0x1208f9=JSON['parse'](_0x3141be),_0x3d5ba3=this['editor']['editing'][_0x4996('0x90')][_0x4996('0x26')],_0x445009=new _0x4b1689(_0x3d5ba3,_0x1208f9[_0x4996('0xa0')](_0x3b6752=>this['_getViewObj'](_0x3b6752)));return this[_0x4996('0x107')]['data'][_0x4996('0x2a')](_0x445009);}[_0x4996('0xb8')](_0x2b8614){const _0x15033e=this[_0x4996('0x107')][_0x4996('0x4e')]['view'][_0x4996('0x26')];if(_0x4996('0x39')==typeof _0x2b8614)return new _0x3cc44a(_0x15033e,_0x2b8614);{const _0x507529=_0x2b8614[_0x4996('0xb5')]['map'](_0x1be890=>this['_getViewObj'](_0x1be890));return new(tt[_0x2b8614[(_0x4996('0xc8'))]]||_0x138663)(_0x15033e,_0x2b8614[_0x4996('0x1a')],_0x2b8614[_0x4996('0x12')],_0x507529);}}[_0x4996('0xfc')](_0x3f2be1,_0x1179de=null){const _0x13acc0=this[_0x4996('0x52')]['getRevision'](_0x3f2be1),_0x48e270=_0x1179de?this[_0x4996('0x52')][_0x4996('0x31')](_0x1179de):null,_0x2d03f0=this[_0x4996('0x10b')](_0x13acc0,_0x48e270),_0x3e55f1=_0x2d03f0[_0x2d03f0[_0x4996('0xa8')]-0x1],_0x37507a=new Map(),_0x186ce3={'model':{},'attributes':{},'changes':[]},_0x1b0443=new Set(),_0x3105c8=new Map();for(let _0x3bb1e2=_0x2d03f0[_0x4996('0xa8')]-0x1;_0x3bb1e2>=0x0;_0x3bb1e2--){const _0xd6321d=_0x2d03f0[_0x3bb1e2];for(const _0x2424f6 of Object[_0x4996('0x59')](_0xd6321d[_0x4996('0xbc')]))if(_0xd6321d[_0x4996('0xbc')][_0x2424f6][_0x4996('0x23')]){const _0x1dda61=_0xd6321d[_0x4996('0xbc')][_0x2424f6][_0x4996('0x23')];_0x1dda61[_0x4996('0xd')]?(_0x1b0443[_0x4996('0x28')](_0x2424f6),_0x3105c8[_0x4996('0xc9')](_0x2424f6)&&_0x3105c8['get'](_0x2424f6)[_0x4996('0x10d')]==_0x1dda61[_0x4996('0x10d')]?_0x3105c8['delete'](_0x2424f6):_0x3105c8['set'](_0x2424f6,_0x1dda61)):_0x3105c8[_0x4996('0xc9')](_0x2424f6)?(_0x1b0443[_0x4996('0x9')](_0x2424f6),_0x3105c8[_0x4996('0x9')](_0x2424f6)):(_0x1b0443['add'](_0x2424f6),_0x3105c8[_0x4996('0x18')](_0x2424f6,_0x1dda61));}else _0x1b0443[_0x4996('0x28')](_0x2424f6);}for(const _0x50618a of _0x1b0443){const _0x2c5049=_0x3105c8['has'](_0x50618a)&&!_0x3105c8[_0x4996('0xff')](_0x50618a)[_0x4996('0xd')];let _0x402304=_0x2c5049?_0x2d03f0[_0x4996('0xa8')]-0x1:0x0;const _0x194435=_0x2c5049?-0x1:0x1;for(;_0x2d03f0[_0x402304];){const _0x27b9c4=_0x2d03f0[_0x402304];if(_0x27b9c4[_0x4996('0xbc')][_0x50618a]){const _0x4da9c8=_0x2c5049?_0x27b9c4[_0x4996('0xbc')][_0x50618a]['attributesBefore']:_0x27b9c4[_0x4996('0xbc')][_0x50618a]['attributesAfter'];_0x186ce3[_0x4996('0x12')][_0x50618a]=_0x4da9c8?_0x46bcdc(_0x4da9c8):{};break;}_0x402304+=_0x194435;}}for(const _0x454424 of _0x2d03f0){_0x454424[_0x4996('0x42')]={};for(const _0xd5f572 of _0x454424[_0x4996('0x48')])_0x37507a[_0x4996('0x18')](_0xd5f572['id'],_0xd5f572);for(const _0x3d6746 of _0x1b0443){const _0x421656=_0x454424[_0x4996('0xbc')][_0x3d6746]?_0x454424[_0x4996('0xbc')][_0x3d6746][_0x4996('0x38')]:'[]',_0x154edf=_0x454424[_0x4996('0xbc')][_0x3d6746]?_0x454424[_0x4996('0xbc')][_0x3d6746][_0x4996('0x9b')]:'[]';_0x454424['model'][_0x3d6746]={'insertions':this['_makeModelFromViewString'](_0x421656),'deletions':this['_makeModelFromViewString'](_0x154edf)};}}for(const _0x45bb8a of _0x1b0443){let _0xce9be2=null,_0x360613=0x0;const _0x4bc77c=new Map(Array[_0x4996('0x1f')](_0x13acc0[_0x4996('0x42')][_0x45bb8a][_0x4996('0x38')]['markers'])['filter'](([_0x3da2cc])=>!_0x3da2cc[_0x4996('0x11a')](_0x4996('0x66'))));let _0x127114=0x0;for(const _0x210cdd of _0x2d03f0){const _0x5365ac=this['_makeTape'](_0x210cdd[_0x4996('0x42')][_0x45bb8a][_0x4996('0x38')]);_0x210cdd==_0x13acc0?(_0xce9be2=_0x5365ac,_0x360613=_0xce9be2[_0x4996('0xa8')],_0xce9be2[_0x4996('0x77')](_0x386f4c=>{_0x386f4c['id']=_0x127114++;}),this[_0x4996('0x50')](_0xce9be2)):this[_0x4996('0x15')](_0xce9be2,_0x5365ac);const _0x51d5be=_0xce9be2[_0x4996('0x94')](_0x5aeb27=>!_0x5aeb27[_0x4996('0x2b')])[_0x4996('0xa0')](_0x2936eb=>_0x2936eb['id']);let _0x534c34=0x0;const _0x20cd40=this[_0x4996('0x10')](_0x210cdd['model'][_0x45bb8a]['deletions']);_0x20cd40['forEach'](_0xeddd3b=>{_0xeddd3b[_0x4996('0x72')]?_0xeddd3b['id']=_0x360613++:_0xeddd3b['id']=_0x51d5be[_0x534c34++];}),this[_0x4996('0x50')](_0x20cd40),this[_0x4996('0x10f')](_0xce9be2,_0x4996('0x2b')),this[_0x4996('0x10f')](_0x20cd40,_0x4996('0x72')),_0x210cdd==_0x13acc0&&this[_0x4996('0x19')](_0xce9be2,_0x4bc77c),_0xce9be2=this[_0x4996('0x2d')](_0xce9be2,_0x20cd40),this[_0x4996('0x41')](_0xce9be2),this[_0x4996('0x10f')](_0xce9be2,'isRemoved');}_0xce9be2=_0xce9be2[_0x4996('0x94')](_0x5ac3db=>!(_0x5ac3db[_0x4996('0x2b')]&&_0x5ac3db[_0x4996('0x72')]));const _0x450ce1=new Map(_0x3e55f1[_0x4996('0x42')][_0x45bb8a][_0x4996('0x9b')]['markers']),_0x22ab46=new Set(_0x4bc77c[_0x4996('0x59')]());for(const _0x2ad987 of _0x450ce1[_0x4996('0x59')]())_0x22ab46['delete'](_0x2ad987);this[_0x4996('0xee')](_0xce9be2,_0x22ab46),this[_0x4996('0x91')](_0xce9be2),_0xce9be2=this[_0x4996('0x2')](_0xce9be2),_0xce9be2=this[_0x4996('0xa1')](_0xce9be2),_0xce9be2=this['_removeUnsupportedChanges'](_0xce9be2);const {root:_0x32b4f9,changes:_0x596efe}=this['_makeModelFromTape'](_0xce9be2,_0x37507a,_0x45bb8a);_0x186ce3[_0x4996('0x42')][_0x45bb8a]=_0x32b4f9;const _0x37e88b=_0x3105c8[_0x4996('0xff')](_0x45bb8a);if(_0x37e88b){const _0x3fa3c1=_0x37507a[_0x4996('0xff')](_0x37e88b['userId']),_0x166d71=new _0x573f15({'author':_0x3fa3c1,'type':_0x37e88b[_0x4996('0xd')]?_0x4996('0x28'):_0x4996('0x16'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x45bb8a});_0x596efe[_0x4996('0xaa')](_0x166d71),_0x186ce3[_0x4996('0x12')][_0x45bb8a][_0x4996('0xcd')]=_0x166d71['id'];}_0x186ce3[_0x4996('0x76')]=_0x186ce3[_0x4996('0x76')][_0x4996('0x128')](_0x596efe);}return _0x186ce3;}[_0x4996('0x19')](_0x4db8a9,_0x11479b){for(let _0xd1276e=0x0;_0xd1276e<_0x4db8a9['length'];_0xd1276e++)for(const [_0x25ad34,_0x8158d3]of _0x11479b)_0x8158d3[_0x4996('0x6c')][_0x4996('0x10c')](_0x4db8a9[_0xd1276e][_0x4996('0x71')])&&_0x4db8a9[_0xd1276e][_0x4996('0x4')][_0x4996('0x62')](_0x25ad34),_0x8158d3['end'][_0x4996('0x10c')](_0x4db8a9[_0xd1276e][_0x4996('0x6e')])&&_0x4db8a9[_0xd1276e][_0x4996('0xeb')][_0x4996('0x62')](_0x25ad34);}[_0x4996('0x2d')](_0x1d9923,_0x36478e){let _0x84f47b=[],_0x1dbb84=0x0,_0x4861db=0x0;for(;_0x1dbb84<_0x1d9923[_0x4996('0xa8')]||_0x4861db<_0x36478e[_0x4996('0xa8')];){const _0x23f766=_0x1d9923[_0x1dbb84]||{},_0x5589f=_0x36478e[_0x4861db]||{};if(_0x23f766['id']==_0x5589f['id'])_0x1dbb84++,_0x4861db++,_0x84f47b[_0x4996('0x62')](_0x23f766);else{if(_0x5589f[_0x4996('0x72')]&&_0x23f766['isAdded']){const {commonTape:_0x48c4f9,iEnd:_0x358fd5,jEnd:_0x5f15a4}=this[_0x4996('0xab')](_0x1d9923,_0x1dbb84,_0x36478e,_0x4861db);_0x84f47b=_0x84f47b[_0x4996('0x128')](_0x48c4f9),_0x1dbb84=_0x358fd5,_0x4861db=_0x5f15a4;}else _0x5589f['isRemoved']?(_0x4861db++,_0x84f47b[_0x4996('0x62')](_0x5589f)):(_0x1dbb84++,_0x84f47b[_0x4996('0x62')](_0x23f766));}}return _0x84f47b;}[_0x4996('0xee')](_0x37889e,_0x441c14){const _0x7266b0=[];for(let _0x548c9a=0x0;_0x548c9a<_0x37889e['length'];_0x548c9a++){for(let _0x5e8dba=0x0;_0x5e8dba<_0x37889e[_0x548c9a][_0x4996('0x4')][_0x4996('0xa8')];_0x5e8dba++){const _0x26db00=_0x37889e[_0x548c9a][_0x4996('0x4')][_0x5e8dba];if(!_0x441c14['has'](_0x26db00))continue;const {group:_0x2f2e28,type:_0x205231,authorId:_0x359012}=_0x1999dd(_0x26db00);_0x4996('0x1b')!=_0x2f2e28||'insertion'!=_0x205231&&'deletion'!=_0x205231||(_0x7266b0[_0x4996('0xaa')]({'type':_0x205231,'name':_0x26db00,'userId':_0x359012}),_0x37889e[_0x548c9a][_0x4996('0x4')][_0x4996('0xe')](_0x5e8dba,0x1),_0x5e8dba--);}_0x1a522a(_0x37889e[_0x548c9a]);for(let _0x3f35d9=0x0;_0x3f35d9<_0x37889e[_0x548c9a][_0x4996('0xeb')][_0x4996('0xa8')];_0x3f35d9++){const _0x430c=_0x37889e[_0x548c9a][_0x4996('0xeb')][_0x3f35d9];if(!_0x441c14['has'](_0x430c))continue;const {group:_0x1c57ff,type:_0x51bb8e}=_0x1999dd(_0x430c);if(_0x4996('0x1b')!=_0x1c57ff||_0x4996('0x4d')!=_0x51bb8e&&'deletion'!=_0x51bb8e)continue;_0x37889e[_0x548c9a]['markersEnd']['splice'](_0x3f35d9,0x1),_0x3f35d9--;const _0x28962a=_0x7266b0[_0x4996('0x122')](_0x500ad4=>_0x500ad4[_0x4996('0x1a')]==_0x430c);_0x28962a>-0x1&&_0x7266b0[_0x4996('0xe')](_0x28962a,0x1);}}function _0x1999dd(_0x3ee052){const _0x457ba3=_0x3ee052[_0x4996('0x9d')](':');return{'group':_0x457ba3[0x0],'type':_0x457ba3[0x1],'subType':_0x457ba3[_0x4996('0xa8')]>=0x5?_0x457ba3[0x2]:null,'id':_0x457ba3[_0x4996('0xa8')]<0x5?_0x457ba3[0x2]:_0x457ba3[0x3],'authorId':_0x457ba3[_0x4996('0xa8')]<0x5?_0x457ba3[0x3]:_0x457ba3[0x4],'markerCount':0x6==_0x457ba3['length']?_0x457ba3[0x5]:null};}function _0x1a522a(_0xc65031){for(let _0x1b7dd2=0x0;_0x1b7dd2<_0x7266b0[_0x4996('0xa8')];_0x1b7dd2++){if(_0xc65031[_0x4996('0x2b')]&&_0x4996('0x4d')==_0x7266b0[_0x1b7dd2][_0x4996('0xc8')])return _0xc65031[_0x4996('0x124')]=_0x7266b0[_0x1b7dd2],void delete _0xc65031[_0x4996('0x2b')];if(!_0xc65031['isAdded']&&!_0xc65031['isRemoved']&&_0x4996('0xaf')==_0x7266b0[_0x1b7dd2]['type'])return void(_0xc65031[_0x4996('0xdf')]=_0x7266b0[_0x1b7dd2]);}}}[_0x4996('0x10f')](_0x565e28,_0x18c9b6){let _0x1b412a=0x0,_0x48bf02=!0x1;const _0x547b9c=new Map();for(const _0x451088 of _0x565e28)_0x451088[_0x18c9b6]?_0x48bf02&&(_0x1b412a++,_0x48bf02=!0x1):(_0x1b412a++,_0x48bf02=!0x0),_0x547b9c['set'](_0x451088['id'],_0x1b412a);for(let _0x38e383=0x0;_0x38e383<_0x565e28['length'];_0x38e383++){if(_0x4996('0x72')==_0x18c9b6&&_0x565e28[_0x38e383][_0x4996('0x2b')]||_0x4996('0x2b')==_0x18c9b6&&_0x565e28[_0x38e383][_0x4996('0x72')])continue;if(_0x4996('0x8e')==_0x565e28[_0x38e383]['type']){_0x565e28[_0x38e383][_0x4996('0x8')]=0x0;continue;}const _0x20ce3d=_0x547b9c[_0x4996('0xff')](_0x565e28[_0x38e383]['pairId']),_0x5de3f1=_0x547b9c[_0x4996('0xff')](_0x565e28[_0x38e383]['id']);_0x565e28[_0x38e383][_0x4996('0x8')]=_0x20ce3d-_0x5de3f1;}}[_0x4996('0x10b')](_0x3def15,_0x559606,_0x1c0330=!0x1){const _0x3330bf=[];let _0x581eb7=this[_0x4996('0x52')][_0x4996('0xbf')](_0x3def15),_0x57f02c=this[_0x4996('0x52')]['getIndex'](_0x559606);for(-0x1==_0x57f02c&&(_0x57f02c=this[_0x4996('0x52')][_0x4996('0xc0')]['length'],_0x1c0330=!0x1);_0x581eb7<_0x57f02c;)_0x3330bf[_0x4996('0x62')](this[_0x4996('0x52')]['getRevision'](_0x581eb7)),_0x581eb7++;return _0x1c0330&&_0x3330bf['push'](this[_0x4996('0x52')]['getRevision'](_0x581eb7)),_0x3330bf;}[_0x4996('0xab')](_0x5acbcb,_0x2ebf1e,_0x55ca1c,_0x11b503){const _0x2792dd=this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0xa4')];let _0x2129f7=_0x2ebf1e;for(;_0x5acbcb[_0x2129f7]&&_0x5acbcb[_0x2129f7][_0x4996('0x2b')];)_0x2129f7++;let _0x256a41=_0x11b503;for(;_0x55ca1c[_0x256a41]&&_0x55ca1c[_0x256a41]['isRemoved'];)_0x256a41++;_0x134382(_0x5acbcb,_0x2ebf1e,_0x2129f7),_0x134382(_0x55ca1c,_0x11b503,_0x256a41);const _0x52899f=_0x55ca1c['slice'](_0x11b503,_0x256a41)['concat'](_0x5acbcb['slice'](_0x2ebf1e,_0x2129f7));return _0x52899f['sort']((_0x3bfa7d,_0x1b219f)=>_0x3bfa7d[_0x4996('0xad')]!=_0x1b219f[_0x4996('0xad')]?_0x3bfa7d[_0x4996('0xad')]-_0x1b219f['side']:_0x3bfa7d[_0x4996('0x123')]!=_0x1b219f[_0x4996('0x123')]?_0x3bfa7d['level']-_0x1b219f[_0x4996('0x123')]:_0x3bfa7d[_0x4996('0x8')]!=_0x1b219f[_0x4996('0x8')]?_0x1b219f[_0x4996('0x8')]-_0x3bfa7d[_0x4996('0x8')]:!!_0x3bfa7d[_0x4996('0x2b')]!=!!_0x1b219f[_0x4996('0x2b')]?-0x1==_0x3bfa7d[_0x4996('0xad')]||0x0==_0x3bfa7d[_0x4996('0xad')]?_0x3bfa7d[_0x4996('0x2b')]?-0x1:0x1:_0x3bfa7d['isAdded']?0x1:-0x1:_0x3bfa7d[_0x4996('0x103')]-_0x1b219f[_0x4996('0x103')]),{'commonTape':_0x52899f,'iEnd':_0x2129f7,'jEnd':_0x256a41};function _0x134382(_0x2ce72c,_0x42ab98,_0x338b27){let _0x4ad5cd=-0x1,_0x2c6277=Number['POSITIVE_INFINITY'],_0x3c7a72=!0x0;for(let _0x541c86=_0x42ab98;_0x541c86<_0x338b27;_0x541c86++)if(_0x2792dd[_0x4996('0xdb')](_0x2ce72c[_0x541c86][_0x4996('0x35')])||(_0x3c7a72=!0x1),_0x2ce72c[_0x541c86]['item']['startIndex']<_0x42ab98&&(_0x4ad5cd=_0x541c86),_0x2ce72c[_0x541c86][_0x4996('0x35')][_0x4996('0x93')]>=_0x338b27){_0x2c6277=_0x541c86;break;}_0x3c7a72&&(_0x4ad5cd=_0x338b27-0x1);for(let _0x249103=_0x42ab98;_0x249103<_0x338b27;_0x249103++)_0x2ce72c[_0x249103][_0x4996('0xad')]=_0x249103<=_0x4ad5cd?-0x1:_0x249103<_0x2c6277?0x0:0x1,_0x2ce72c[_0x249103][_0x4996('0x103')]=_0x249103;let _0x338087=0x0;for(let _0x7a122a=_0x42ab98;_0x7a122a<=_0x4ad5cd;_0x7a122a++)0x0==_0x2ce72c[_0x7a122a]['distance']?_0x2ce72c[_0x7a122a][_0x4996('0x123')]=_0x338087:(_0x338087++,_0x2ce72c[_0x7a122a]['level']=_0x338087,_0x338087++);for(let _0x575b8b=_0x42ab98;_0x575b8b<_0x338b27;_0x575b8b++)0x0==_0x2ce72c[_0x575b8b]['side']&&(_0x2ce72c[_0x575b8b]['level']=_0x338087);_0x338087=0x0;for(let _0x34797a=_0x338b27-0x1;_0x34797a>=_0x2c6277;_0x34797a--)0x0==_0x2ce72c[_0x34797a][_0x4996('0x8')]?_0x2ce72c[_0x34797a]['level']=_0x338087:(_0x338087--,_0x2ce72c[_0x34797a][_0x4996('0x123')]=_0x338087,_0x338087--);}}[_0x4996('0x91')](_0x2fdc3f){const _0x55d520=new Map(),_0x484e09=this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0xa4')];for(let _0x424236=0x1;_0x424236<_0x2fdc3f['length'];_0x424236++){let _0x4bf9c3,_0x233b63,_0x14bb04;const _0x1e4c22=_0x2fdc3f[_0x424236],_0x100149=_0x2fdc3f[_0x424236-0x1];if(_0x4996('0x8e')==_0x1e4c22['type'])continue;if(_0x1e4c22[_0x4996('0xc8')]!=_0x100149[_0x4996('0xc8')])continue;if(!_0x484e09[_0x4996('0x125')](_0x100149[_0x4996('0x35')])||_0x484e09['isLimit'](_0x100149[_0x4996('0x35')]))continue;if(!_0x484e09[_0x4996('0x125')](_0x1e4c22[_0x4996('0x35')])||_0x484e09[_0x4996('0x11d')](_0x1e4c22[_0x4996('0x35')]))continue;if((_0x2fdc3f[_0x424236][_0x4996('0x2b')]||_0x2fdc3f[_0x424236][_0x4996('0x124')])&&_0x2fdc3f[_0x424236-0x1][_0x4996('0x72')])_0x4bf9c3=_0x2fdc3f[_0x424236],_0x233b63=_0x2fdc3f[_0x424236-0x1],_0x14bb04=_0x424236-0x1;else{if(!_0x2fdc3f[_0x424236][_0x4996('0x72')]||!_0x2fdc3f[_0x424236-0x1][_0x4996('0x2b')]&&!_0x2fdc3f[_0x424236-0x1][_0x4996('0x124')])continue;_0x4bf9c3=_0x2fdc3f[_0x424236-0x1],_0x233b63=_0x2fdc3f[_0x424236],_0x14bb04=_0x424236;}const _0xbaadd=_0x4bf9c3['level']==_0x233b63[_0x4996('0x123')],_0x1fe9aa=Math[_0x4996('0xb6')](_0x4bf9c3[_0x4996('0x123')])<Math[_0x4996('0xb6')](_0x233b63[_0x4996('0x123')])&&0x0==_0x233b63[_0x4996('0x8')];(_0xbaadd||_0x1fe9aa)&&(_0x55d520[_0x4996('0x18')](_0x233b63['id'],_0x4bf9c3['id']),_0x2fdc3f['splice'](_0x14bb04,0x1),_0x424236--,_0x4bf9c3[_0x4996('0x2b')]=!0x1);}for(let _0x50e6a7=0x0;_0x50e6a7<_0x2fdc3f['length'];_0x50e6a7++)_0x55d520[_0x4996('0xc9')](_0x2fdc3f[_0x50e6a7][_0x4996('0x37')])&&(_0x2fdc3f[_0x50e6a7]['pairId']=_0x55d520['get'](_0x2fdc3f[_0x50e6a7]['pairId']));}[_0x4996('0x2')](_0x2673d1){const _0x2c48dc=new Set(_0x2673d1['map'](_0xa376a4=>_0xa376a4['id']));for(let _0x5146ea=0x0;_0x5146ea<_0x2673d1[_0x4996('0xa8')];_0x5146ea++)_0x2c48dc[_0x4996('0xc9')](_0x2673d1[_0x5146ea]['pairId'])||0x0==_0x2673d1[_0x5146ea][_0x4996('0x8')]||(_0x2673d1[_0x5146ea][_0x4996('0xe1')]=!0x0);return _0x2673d1['filter'](_0xe59bc2=>!_0xe59bc2['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3e258b){const _0x2dddd4=new Set();for(let _0x3cff64=0x0;_0x3cff64<_0x3e258b['length'];_0x3cff64++){if(_0x2dddd4[_0x4996('0xc9')](_0x3e258b[_0x3cff64]['id'])&&_0x3e258b[_0x3cff64][_0x4996('0x72')]&&(_0x3e258b[_0x3cff64][_0x4996('0xe1')]=!0x0),_0x3e258b[_0x3cff64][_0x4996('0xe1')])continue;if(0x0==_0x3e258b[_0x3cff64][_0x4996('0x8')])continue;if(_0x4996('0xa2')!=_0x3e258b[_0x3cff64][_0x4996('0xc8')])continue;if(null==_0x3e258b[_0x3cff64][_0x4996('0x37')])continue;let _0x1f6ff0=_0x3cff64+0x1,_0x2183b6=0x0;for(;_0x3e258b[_0x1f6ff0]['id']!=_0x3e258b[_0x3cff64][_0x4996('0x37')];)_0x4996('0xa2')==_0x3e258b[_0x1f6ff0][_0x4996('0xc8')]?_0x2183b6++:'elementEnd'==_0x3e258b[_0x1f6ff0][_0x4996('0xc8')]&&_0x2183b6--,_0x1f6ff0++;if(0x0!=_0x2183b6){if(_0x3e258b[_0x3cff64][_0x4996('0x72')])_0x3e258b[_0x3cff64][_0x4996('0xe1')]=!0x0;else for(;_0x1f6ff0!=_0x3cff64;)_0x3e258b[_0x1f6ff0][_0x4996('0x72')]&&0x0!=_0x3e258b[_0x1f6ff0][_0x4996('0x8')]&&(_0x3e258b[_0x1f6ff0][_0x4996('0xe1')]=!0x0,_0x2dddd4[_0x4996('0x28')](_0x3e258b[_0x1f6ff0][_0x4996('0x37')])),_0x1f6ff0--;}}return _0x3e258b[_0x4996('0x94')](_0x3b849e=>!_0x3b849e['isIncorrect']);}[_0x4996('0x7f')](_0x24d91f){const _0x671a85=this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0xa4')];for(let _0x2f698f=0x0;_0x2f698f<_0x24d91f[_0x4996('0xa8')];_0x2f698f++){if(!(_0x24d91f[_0x2f698f]['isAdded']||_0x24d91f[_0x2f698f][_0x4996('0x124')]||_0x24d91f[_0x2f698f][_0x4996('0x72')]||_0x24d91f[_0x2f698f][_0x4996('0xdf')]))continue;if(0x0==_0x24d91f[_0x2f698f]['distance'])continue;const _0x3974ae=_0x24d91f[_0x2f698f][_0x4996('0x35')];_0x671a85[_0x4996('0x125')](_0x3974ae)||_0x671a85[_0x4996('0x11d')](_0x3974ae)||(_0x24d91f[_0x2f698f]['isAdded']&&delete _0x24d91f[_0x2f698f]['isAdded'],_0x24d91f[_0x2f698f][_0x4996('0x124')]&&delete _0x24d91f[_0x2f698f][_0x4996('0x124')],_0x24d91f[_0x2f698f][_0x4996('0xdf')]&&delete _0x24d91f[_0x2f698f]['isRemoveSuggestion'],_0x24d91f[_0x2f698f][_0x4996('0x72')]&&(_0x24d91f[_0x2f698f][_0x4996('0xe1')]=!0x0));}return _0x24d91f[_0x4996('0x94')](_0x4f44a7=>!_0x4f44a7[_0x4996('0xe1')]);}[_0x4996('0x97')](_0x2a38cf,_0x3dbb65,_0x483624){const _0x134f58=new _0x43670e(),_0x14fc6b=[],_0x1767f9=new Map(),_0x558249=this[_0x4996('0x107')][_0x4996('0x42')],_0x25bdd5=_0x558249[_0x4996('0xa4')],_0x19f8bf=[_0x134f58],_0x59822c={},_0x5508d6={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x48a426=null;const _0x5179d6=[0x0];for(let _0x3953fd=0x0;_0x3953fd<_0x2a38cf[_0x4996('0xa8')];_0x3953fd++){let _0xbaad94,_0x491cbe;if(_0x4996('0xa2')===_0x2a38cf[_0x3953fd][_0x4996('0xc8')]){_0xbaad94=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6);const _0x1bdbc1=new _0x4eafb8(_0x2a38cf[_0x3953fd][_0x4996('0x35')][_0x4996('0x1a')],_0x2a38cf[_0x3953fd][_0x4996('0x35')]['getAttributes']());_0x19f8bf[0x0][_0x4996('0x8d')](_0x1bdbc1),_0x5179d6['push'](0x0),_0x19f8bf['unshift'](_0x1bdbc1),_0x491cbe=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6),_0x48a426=null;}else{if('elementEnd'===_0x2a38cf[_0x3953fd][_0x4996('0xc8')])_0x19f8bf[_0x4996('0x7a')](),_0xbaad94=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6),_0x5179d6[_0x4996('0x57')](),_0x5179d6[_0x5179d6['length']-0x1]++,_0x491cbe=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6),_0x48a426=null;else{if(_0xbaad94=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6),_0x48a426&&_0x16709f(_0x48a426,_0x2a38cf[_0x3953fd][_0x4996('0x35')]))_0x48a426[_0x4996('0xb3')]+=_0x2a38cf[_0x3953fd][_0x4996('0x35')][_0x4996('0xf0')];else{const _0x2d0ebf=new _0x1bf5df(_0x2a38cf[_0x3953fd][_0x4996('0x35')][_0x4996('0xf0')],_0x2a38cf[_0x3953fd][_0x4996('0x35')][_0x4996('0xfa')]());_0x19f8bf[0x0][_0x4996('0x8d')](_0x2d0ebf),_0x48a426=_0x2d0ebf;}_0x5179d6[_0x5179d6['length']-0x1]+=_0x2a38cf[_0x3953fd]['item']['offsetSize'],_0x491cbe=_0x558249[_0x4996('0x78')](_0x134f58,_0x5179d6);}}for(const _0xb0b76c of _0x2a38cf[_0x3953fd][_0x4996('0x4')])_0x1767f9['set'](_0xb0b76c,{'start':_0xbaad94,'end':null});_0x407e2c('isRemoveSuggestion',_0x3953fd,_0xbaad94,_0x491cbe),_0x407e2c(_0x4996('0x124'),_0x3953fd,_0xbaad94,_0x491cbe),_0x407e2c(_0x4996('0x72'),_0x3953fd,_0xbaad94,_0x491cbe),_0x407e2c(_0x4996('0x2b'),_0x3953fd,_0xbaad94,_0x491cbe);for(const _0x19d683 of _0x2a38cf[_0x3953fd]['markersEnd']){_0x1767f9['get'](_0x19d683)['end']=_0x491cbe;}}for(const [_0x295560,_0x8958f8]of _0x1767f9){const _0x688da4=this[_0x4996('0x107')][_0x4996('0x42')]['createRange'](_0x8958f8['start'],_0x8958f8['end']);_0x134f58[_0x4996('0x108')]['set'](_0x295560,_0x688da4);}return _0x14fc6b[_0x4996('0x14')]((_0x102934,_0x37af19)=>{const _0x4afc67=_0x134f58[_0x4996('0x108')][_0x4996('0xff')](_0x4996('0x66')+_0x102934['id']),_0x140624=_0x134f58[_0x4996('0x108')][_0x4996('0xff')](_0x4996('0x66')+_0x37af19['id']);return _0x4afc67['start'][_0x4996('0x56')](_0x140624[_0x4996('0x6c')])?-0x1:_0x4afc67[_0x4996('0x6c')][_0x4996('0xb7')](_0x140624['start'])?0x1:_0x4afc67[_0x4996('0xda')][_0x4996('0x56')](_0x140624[_0x4996('0xda')])?-0x1:_0x4afc67[_0x4996('0xda')][_0x4996('0xb7')](_0x140624[_0x4996('0xda')])?0x1:_0x4996('0x28')===_0x102934[_0x4996('0xc8')]?-0x1:0x1;}),{'root':_0x134f58,'changes':_0x14fc6b};function _0x407e2c(_0x443cc4,_0x241767,_0xae83d0,_0x333268){const _0x1f8359=!!_0x2a38cf[_0x241767][_0x443cc4],_0x133351=_0x1f8359?_0x2a38cf[_0x241767][_0x443cc4][_0x4996('0x10d')]:null,_0x4eef5b=_0x241767===_0x2a38cf[_0x4996('0xa8')]-0x1,_0x44bee9=_0x5508d6[_0x443cc4][0x0],_0x27d591=_0x25bdd5[_0x4996('0x2f')](_0x2a38cf[_0x241767][_0x4996('0x35')]);!_0x59822c[_0x443cc4]&&_0x1f8359?_0x59822c[_0x443cc4]={'start':_0xae83d0,'tapeItem':_0x2a38cf[_0x241767],'userId':_0x133351,'type':_0x443cc4}:_0x59822c[_0x443cc4]&&!_0x1f8359?(_0x59822c[_0x443cc4][_0x4996('0xda')]=_0xae83d0,_0x27cb3d(_0x59822c[_0x443cc4]),_0x59822c[_0x443cc4]=null):_0x59822c[_0x443cc4]&&_0x1f8359&&_0x59822c[_0x443cc4][_0x4996('0x10d')]!==_0x133351&&(_0x59822c[_0x443cc4][_0x4996('0xda')]=_0xae83d0,_0x44bee9&&_0x44bee9[_0x4996('0x10d')]===_0x59822c[_0x443cc4][_0x4996('0x10d')]||_0x27cb3d(_0x59822c[_0x443cc4]),_0x59822c[_0x443cc4]={'start':_0xae83d0,'tapeItem':_0x2a38cf[_0x241767],'userId':_0x133351,'type':_0x443cc4}),_0x59822c[_0x443cc4]&&_0x27d591&&(_0x4996('0xa2')!==_0x2a38cf[_0x241767]['type']||_0x44bee9&&_0x44bee9['userId']===_0x133351||_0x5508d6[_0x443cc4][_0x4996('0xaa')]({'userId':_0x133351,'object':_0x2a38cf[_0x241767][_0x4996('0x35')],'change':_0x59822c[_0x443cc4]}),_0x4996('0x105')===_0x2a38cf[_0x241767]['type']&&_0x44bee9&&_0x44bee9[_0x4996('0xf')]===_0x2a38cf[_0x241767]['item']&&(_0x5508d6[_0x443cc4][_0x4996('0x7a')](),_0x59822c[_0x443cc4]=_0x44bee9[_0x4996('0x98')])),_0x59822c[_0x443cc4]&&_0x4eef5b&&(_0x59822c[_0x443cc4]['end']=_0x333268,_0x27cb3d(_0x59822c[_0x443cc4]),_0x59822c[_0x443cc4]=null);}function _0x27cb3d({start:_0x2c6343,end:_0xc9583d,tapeItem:_0x365ccc,userId:_0x53899e,type:_0x166e3d}){const _0x24475d=_0x365ccc[_0x4996('0x35')],_0x51ef97=_0x558249[_0x4996('0xa4')][_0x4996('0x125')](_0x24475d)&&!_0x558249[_0x4996('0xa4')][_0x4996('0x11d')](_0x24475d),_0xe27ec7=_0x2c6343['nodeAfter']==_0xc9583d['parent']&&_0xc9583d[_0x4996('0xa6')];if(_0x51ef97&&_0xe27ec7)return;const _0x2019e5=_0x558249[_0x4996('0xd1')](_0x2c6343,_0xc9583d),_0x54b3e5=_0x3dbb65[_0x4996('0xff')](_0x53899e),_0x2563d7=new _0x573f15({'author':_0x54b3e5,'type':_0x4996('0x2b')==_0x166e3d||_0x4996('0x124')==_0x166e3d?'add':_0x4996('0x16'),'data':{'isSuggestion':_0x4996('0x124')==_0x166e3d||_0x4996('0xdf')==_0x166e3d},'createdAt':new Date(),'rootName':_0x483624});_0x14fc6b['push'](_0x2563d7),_0x134f58[_0x4996('0x108')][_0x4996('0x18')](_0x4996('0x66')+_0x2563d7['id'],_0x2019e5);}function _0x16709f(_0x12d005,_0x1287fe){const _0x336e75=_0x12d005[_0x4996('0xfa')](),_0x3f4f6a=_0x1287fe[_0x4996('0xfa')]();for(const _0x13889e of _0x336e75){if(_0x13889e[0x1]!==_0x1287fe[_0x4996('0xcc')](_0x13889e[0x0]))return!0x1;_0x3f4f6a[_0x4996('0xa3')]();}return _0x3f4f6a['next']()[_0x4996('0x63')];}}[_0x4996('0xc6')](){this['editor'][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0xfd'))[_0x4996('0x79')]({'view':_0x4996('0xb1')}),this[_0x4996('0x107')][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0x1c'))[_0x4996('0x30')]({'model':'revision','view':_0xaaac90=>{const _0x30e8cf=_0xaaac90['markerName'][_0x4996('0x9d')](':')[0x1],_0x1ded71=this['_getChangeFromId'](_0x30e8cf);if(!_0x1ded71)return null;const _0x4a9262=_0x4996('0x28')==_0x1ded71[_0x4996('0xc8')]?'insertion':_0x4996('0xaf'),_0x5a248a=['ck-suggestion-marker',_0x4996('0x119')+_0x4a9262];return _0x1ded71[_0x4996('0xf0')]['isSuggestion']&&_0x5a248a[_0x4996('0x62')](_0x4996('0x119')+_0x4a9262+'-new'),this[_0x4996('0x88')]==_0x1ded71&&_0x5a248a['push']('ck-suggestion-marker--active'),{'classes':_0x5a248a,'attributes':{'data-change-id':_0x30e8cf}};}}),this[_0x4996('0x107')]['conversion']['for'](_0x4996('0xfd'))[_0x4996('0x28')](_0x4b6e1f=>{_0x4b6e1f['on'](_0x4996('0x112'),(_0x30e327,_0x3c1e63,_0x32b79a)=>{const _0x4f3b09=_0x3c1e63[_0x4996('0x81')][_0x4996('0x58')](0x0);if(!_0x4f3b09||!_0x4f3b09['is'](_0x4996('0x1'),_0x4996('0xdd')))return;if(!_0x32b79a[_0x4996('0x129')][_0x4996('0x74')](_0x4f3b09,{'attributes':[_0x4996('0xb9'),_0x4996('0xce')]}))return;const _0x4edb74=_0x3c1e63[_0x4996('0x8f')][_0x4996('0x6c')][_0x4996('0x85')];_0x32b79a[_0x4996('0x117')][_0x4996('0xe7')](_0x4996('0xb9'),_0x4f3b09[_0x4996('0xcc')]('vid_start'),_0x4edb74),_0x32b79a[_0x4996('0x117')][_0x4996('0xe7')]('vid_end',_0x4f3b09[_0x4996('0xcc')]('vid_end'),_0x4edb74);},{'priority':_0x4996('0x44')});}),this[_0x4996('0x107')][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0xfd'))['add'](_0x12ad5b=>{_0x12ad5b['on']('element',(_0x24fcc8,_0x4f37ae,_0x2da74e)=>{if(!_0x2da74e[_0x4996('0x129')][_0x4996('0x74')](_0x4f37ae[_0x4996('0x81')],{'attributes':[_0x4996('0xb9'),_0x4996('0xce')]}))return;if(_0x4f37ae[_0x4996('0x8f')][_0x4996('0x111')])return;const _0x30d380=_0x4f37ae[_0x4996('0x8f')][_0x4996('0x6c')]['nodeAfter'];_0x30d380['hasAttribute'](_0x4996('0xb9'))||_0x30d380['hasAttribute'](_0x4996('0xd6'))||(_0x2da74e[_0x4996('0x117')]['setAttribute'](_0x4996('0xb9'),_0x4f37ae['viewItem']['getAttribute'](_0x4996('0xb9')),_0x30d380),_0x2da74e[_0x4996('0x117')][_0x4996('0xe7')](_0x4996('0xce'),_0x4f37ae[_0x4996('0x81')]['getAttribute']('vid_end'),_0x30d380));},{'priority':'low'});}),this[_0x4996('0x107')]['conversion'][_0x4996('0x9f')](_0x4996('0xfd'))[_0x4996('0x9a')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x4996('0xd6'),'value':_0x3ade5c=>_0x3ade5c[_0x4996('0xcc')](_0x4996('0xd6'))}}),this['editor'][_0x4996('0x42')]['schema']['on']('checkAttribute',(_0x1b62ba,[,_0x123015])=>{['vid_start',_0x4996('0xce'),_0x4996('0xd6')]['includes'](_0x123015)&&(_0x1b62ba[_0x4996('0x11')]=!0x0,_0x1b62ba[_0x4996('0xd3')]());},{'priority':_0x4996('0xc3')}),this[_0x4996('0x107')]['conversion']['for'](_0x4996('0x11c'))[_0x4996('0x28')](_0x2f3994=>{_0x2f3994['on']('attribute:vid',(_0x58feba,_0x4065e2,_0x4df7ea)=>{if('\x20'!=_0x4065e2[_0x4996('0x35')][_0x4996('0xf0')]||_0x4065e2[_0x4996('0x35')]['parent'][_0x4996('0xb')]>0x1)return;if(!_0x4df7ea[_0x4996('0x129')][_0x4996('0x74')](_0x4065e2['item'],_0x58feba[_0x4996('0x1a')]))return;const _0x463b2d=_0x4df7ea[_0x4996('0x117')],_0x786d17=_0x4df7ea[_0x4996('0xbe')][_0x4996('0xa5')](_0x4065e2[_0x4996('0x114')]);_0x463b2d[_0x4996('0xf8')](_0x786d17,_0x463b2d[_0x4996('0xf9')](_0x4996('0x17')));});}),this['editor'][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0x11c'))[_0x4996('0x89')]({'model':_0x4996('0xb1')}),this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x7d')]['on']('addMarker:revision',function(_0x2294d2){const _0x4f4025=_0x2294d2['plugins']['get'](_0x4996('0x11f'));return(_0x3add7e,_0x2061b4,_0x4d7c2d)=>{const _0x5d9a01=_0x2061b4[_0x4996('0x113')]['split'](':')[0x1],_0x1e11ee=_0x4f4025[_0x4996('0x3f')](_0x5d9a01);if(!_0x1e11ee)return null;const _0x15ed36=_0x4996('0x28')==_0x1e11ee[_0x4996('0xc8')]?_0x4996('0x9d'):'merge';if(!_0x4d7c2d[_0x4996('0x129')][_0x4996('0x6a')](_0x2061b4[_0x4996('0x64')],_0x3add7e['name']))return;const _0xae39f5=_0x2061b4[_0x4996('0x64')][_0x4996('0x10a')](),_0x4afb7d=_0x2061b4['markerRange'][_0x4996('0x6c')],_0x37406e=_0x2294d2[_0x4996('0x42')][_0x4996('0xa4')];let _0x4a4825=null,_0x557203=null,_0x2f2f99=!0x1,_0x331f8b=!0x1;for(const _0x2e1d9e of _0xae39f5){const _0x49a732=_0x2e1d9e[_0x4996('0x35')];_0x2f2f99=_0x2f2f99||_0x37406e[_0x4996('0x3a')](_0x49a732);const _0x9c93ec=_0x4d7c2d['mapper'][_0x4996('0x24')](_0x49a732);if(_0x9c93ec&&_0x9c93ec[_0x4996('0x60')]('addHighlight'))return;_0x4996('0x105')==_0x2e1d9e[_0x4996('0xc8')]&&(_0x37406e[_0x4996('0x125')](_0x49a732)&&!_0x37406e[_0x4996('0x11d')](_0x49a732)&&(_0x49a732[_0x4996('0x7c')]||_0x4afb7d[_0x4996('0xef')]?_0x4a4825&&_0x4a4825['parent']==_0x49a732||(_0x4a4825=_0x49a732,_0x5144a6(_0x2e1d9e['previousPosition']),_0x331f8b=!0x0):_0x557203=_0x557203||_0x2e1d9e[_0x4996('0x71')]));}function _0x5144a6(_0x3d4801){const _0x27f4d2=_0x4d7c2d[_0x4996('0x117')][_0x4996('0x55')]('span',{'class':'ck-suggestion-marker-'+_0x15ed36}),_0x1d3361=_0x4d7c2d[_0x4996('0xbe')]['toViewPosition'](_0x3d4801);_0x1e11ee[_0x4996('0xf0')][_0x4996('0x33')]&&_0x4d7c2d[_0x4996('0x117')][_0x4996('0x96')](_0x4996('0x119')+_0x15ed36+_0x4996('0xf3'),_0x27f4d2),_0x4f4025['activeChange']==_0x1e11ee&&_0x4d7c2d[_0x4996('0x117')][_0x4996('0x96')](_0x4996('0x115'),_0x27f4d2),_0x4d7c2d[_0x4996('0x117')][_0x4996('0x126')](_0x1d3361,_0x27f4d2),_0x4d7c2d['mapper'][_0x4996('0x116')](_0x27f4d2,_0x2061b4['markerName']);}_0x2f2f99||_0x331f8b||!_0x557203||_0x5144a6(_0x557203);};}(this['editor']),{'priority':_0x4996('0x82')}),this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x7d')]['on'](_0x4996('0xe3'),(_0x1cad56,_0x2d771a,_0x467271)=>{const _0x36a11a=_0x467271[_0x4996('0xbe')]['markerNameToElements'](_0x2d771a[_0x4996('0x113')]);if(_0x36a11a)for(const _0x14f681 of _0x36a11a)(_0x14f681[_0x4996('0xa7')](_0x4996('0x75'))||_0x14f681[_0x4996('0xa7')]('ck-suggestion-marker-merge'))&&(_0x467271[_0x4996('0xbe')]['unbindElementFromMarkerName'](_0x14f681,_0x2d771a[_0x4996('0x113')]),_0x467271[_0x4996('0x117')][_0x4996('0x16')](_0x14f681));},{'priority':'high'}),this['editor'][_0x4996('0x4e')][_0x4996('0x7d')]['on'](_0x4996('0xc'),(_0x487787,_0x4e40e1,_0x466842)=>{const _0x4d94ba=_0x4e40e1[_0x4996('0x113')][_0x4996('0x9d')](':')[0x1],_0x22d636=this[_0x4996('0x3f')](_0x4d94ba);if(!_0x22d636)return null;const _0x53ba94='add'==_0x22d636[_0x4996('0xc8')]?_0x4996('0x9d'):_0x4996('0xb4');if(_0x466842[_0x4996('0x129')][_0x4996('0x6a')](_0x4e40e1['markerRange'],_0x487787['name']))for(const _0xb53d6c of _0x4e40e1[_0x4996('0x64')][_0x4996('0x100')]()){if(!_0xb53d6c['is'](_0x4996('0x1'),_0x4996('0xd2')))continue;const _0x2f8cb0=_0x466842['writer'][_0x4996('0x55')]('span',{'class':'ck-suggestion-marker-'+_0x53ba94}),_0x5de4df=_0x466842['mapper'][_0x4996('0x80')](this[_0x4996('0x107')]['model'][_0x4996('0x95')](_0xb53d6c));_0x22d636[_0x4996('0xf0')][_0x4996('0x33')]&&_0x466842['writer'][_0x4996('0x96')](_0x4996('0x119')+_0x53ba94+'-new',_0x2f8cb0),this['activeChange']==_0x22d636&&_0x466842[_0x4996('0x117')][_0x4996('0x96')](_0x4996('0x115'),_0x2f8cb0),_0x466842[_0x4996('0x117')][_0x4996('0x126')](_0x5de4df,_0x2f8cb0),_0x466842[_0x4996('0xbe')][_0x4996('0x116')](_0x2f8cb0,_0x4e40e1[_0x4996('0x113')]);}},{'priority':_0x4996('0x82')}),this['editor']['model']['document']['on'](_0x4996('0x98'),()=>{this['editor']['editing'][_0x4996('0x90')][_0x4996('0x98')](_0x54bbd9=>{for(const _0x521a96 of this[_0x4996('0x107')]['model']['document'][_0x4996('0x102')]()){const _0x148ea9=this['editor']['model'][_0x4996('0x26')][_0x4996('0x69')](_0x521a96),_0x24a9be=this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x90')]['document'][_0x4996('0x69')](_0x521a96);if(_0x24a9be){const _0x128c72=_0x148ea9[_0x4996('0xcc')](_0x4996('0xcd'));if(_0x54bbd9[_0x4996('0xc7')](_0x4996('0xf1'),_0x24a9be),_0x54bbd9[_0x4996('0x84')](_0x4996('0xd0'),_0x24a9be),_0x54bbd9['removeClass'](_0x4996('0x4c'),_0x24a9be),_0x54bbd9['removeClass']('ck-revision-history-root--active',_0x24a9be),_0x128c72){const _0x12a609=this[_0x4996('0x3f')](_0x128c72);if(!_0x12a609)return null;_0x54bbd9['setAttribute']('data-change-id',_0x128c72,_0x24a9be),_0x54bbd9[_0x4996('0x96')](_0x4996('0x2c')+_0x12a609[_0x4996('0xc8')],_0x24a9be),this[_0x4996('0x88')]==_0x12a609&&_0x54bbd9[_0x4996('0x96')](_0x4996('0x127'),_0x24a9be);}}}});}),this[_0x4996('0x107')][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0xfd'))['dataToMarker']({'view':_0x4996('0xd9'),'model':_0x1ce299=>_0x4996('0x9e')+_0x1ce299,'converterPriority':_0x4996('0xc3')}),this['editor'][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0xfd'))[_0x4996('0x79')]({'view':_0x4996('0x43'),'model':_0x4505a3=>_0x4996('0x67')+_0x4505a3,'converterPriority':'highest'}),this[_0x4996('0x107')][_0x4996('0xba')][_0x4996('0x9f')](_0x4996('0x11c'))[_0x4996('0x89')]({'model':_0x4996('0x1b'),'view':_0x3ff6ff=>({'name':_0x4996('0x3b')+_0x3ff6ff,'group':_0x4996('0x1b')}),'converterPriority':_0x4996('0xc3')}),this[_0x4996('0x107')][_0x4996('0xba')][_0x4996('0x9f')]('editingDowncast')['markerToHighlight']({'model':_0x4996('0x1b'),'view':_0x3b7210=>{const _0x40e802=_0x3b7210[_0x4996('0x113')][_0x4996('0x9d')](':')[0x1];return _0x4996('0x4d')!=_0x40e802&&_0x4996('0xaf')!=_0x40e802?null:{'classes':[_0x4996('0xec'),_0x4996('0x99')+_0x40e802]};}}),this['editor'][_0x4996('0x4e')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this[_0x4996('0x107')],_0x4996('0xb4')),{'priority':_0x4996('0x82')}),this[_0x4996('0x107')][_0x4996('0x4e')]['downcastDispatcher']['on'](_0x4996('0x21'),et(this['editor'],_0x4996('0x9d')),{'priority':_0x4996('0x82')}),this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x7d')]['on'](_0x4996('0x4b'),(_0x97a53d,_0x3cd93a,_0x3fc0df)=>{const _0x2a8d1c=_0x3fc0df['mapper']['markerNameToElements'](_0x3cd93a[_0x4996('0x113')]);if(_0x2a8d1c)for(const _0x2e84c2 of _0x2a8d1c)_0x2e84c2['is'](_0x4996('0x53'))&&(_0x3fc0df[_0x4996('0xbe')]['unbindElementFromMarkerName'](_0x2e84c2,_0x3cd93a[_0x4996('0x113')]),_0x3fc0df['writer'][_0x4996('0x16')](_0x2e84c2));},{'priority':'high'});}[_0x4996('0x3f')](_0xe1cafa){return this['_changeIdToChange'][_0x4996('0xff')](_0xe1cafa);}[_0x4996('0x110')](_0x152324){return this[_0x4996('0x65')]&&this[_0x4996('0x65')][_0x4996('0x5c')](),this[_0x4996('0x65')]=new _0x2b3fd3(this[_0x4996('0x107')][_0x4996('0x3e')],_0x152324),this[_0x4996('0x65')];}[_0x4996('0x5a')](){this['editor']['model'][_0x4996('0x26')]['selection'][_0x4996('0xae')](_0x4996('0xb1')),this['on'](_0x4996('0x11e'),(_0x31fddd,_0x284850,_0x3f9993,_0x41f1ad)=>{_0x41f1ad&&this[_0x4996('0x49')]['remove'](_0x41f1ad),_0x3f9993&&(this[_0x4996('0x49')][_0x4996('0x28')]({'view':_0x3f9993,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4ac11f=this[_0x4996('0x107')][_0x4996('0x4e')],_0x6956e3=this[_0x4996('0x3f')](_0x3f9993['changeId']);let _0x31bf44;if(_0x6956e3[_0x4996('0xf0')][_0x4996('0x5')]){const _0x366d80=_0x4ac11f[_0x4996('0x90')]['getDomRoot'](_0x6956e3[_0x4996('0x3d')]);_0x31bf44=Array[_0x4996('0x1f')](_0x366d80['getClientRects']());}else{const _0x67effd=this[_0x4996('0x107')][_0x4996('0x42')][_0x4996('0x108')]['get'](_0x4996('0x66')+_0x3f9993[_0x4996('0x51')]);_0x31bf44=Array[_0x4996('0x1f')](_0x4ac11f[_0x4996('0xbe')][_0x4996('0xde')](_0x67effd['name']))[_0x4996('0xa0')](_0x24875e=>_0x4ac11f[_0x4996('0x90')]['domConverter'][_0x4996('0x10e')](_0x24875e))[_0x4996('0xa0')](_0x4bf764=>Array[_0x4996('0x1f')](_0x4bf764['getClientRects']()))['flat']();}if(!this[_0x4996('0x11b')])return _0x31bf44[0x0];return _0x31bf44[_0x4996('0x61')](_0x4339fb=>_0x4339fb[_0x4996('0x73')]-0x3<=this[_0x4996('0x11b')]['y']&&_0x4339fb[_0x4996('0xd5')]+0x3>=this[_0x4996('0x11b')]['y']&&_0x4339fb[_0x4996('0xd8')]-0x3<=this[_0x4996('0x11b')]['x']&&_0x4339fb['right']+0x3>=this[_0x4996('0x11b')]['x'])||_0x31bf44[0x0];}}}),this[_0x4996('0x49')][_0x4996('0x4f')](_0x4996('0xea')));}),this['on'](_0x4996('0xf7'),(_0x3595f8,_0x4ea212,_0x1ad101,_0x542e4d)=>{this[_0x4996('0xfb')]=_0x1ad101?this[_0x4996('0x110')](_0x1ad101):null,this[_0x4996('0x107')]['model'][_0x4996('0x98')](()=>{const _0x38b71b=this['editor'][_0x4996('0x4e')];_0x542e4d&&(_0x542e4d[_0x4996('0xf0')][_0x4996('0x5')]?_0x38b71b['view'][_0x4996('0x98')](_0xda2628=>{_0xda2628['removeClass'](_0x4996('0x127'),_0x38b71b[_0x4996('0x90')][_0x4996('0x26')][_0x4996('0x69')](_0x542e4d[_0x4996('0x3d')]));}):_0x38b71b[_0x4996('0x7')](_0x4996('0x66')+_0x542e4d['id'])),_0x1ad101&&(_0x1ad101[_0x4996('0xf0')][_0x4996('0x5')]?_0x38b71b[_0x4996('0x90')]['change'](_0x4dcaaa=>{_0x4dcaaa[_0x4996('0x96')](_0x4996('0x127'),_0x38b71b[_0x4996('0x90')][_0x4996('0x26')][_0x4996('0x69')](_0x1ad101['rootName']));}):_0x38b71b['reconvertMarker'](_0x4996('0x66')+_0x1ad101['id']));});}),this['listenTo'](this[_0x4996('0x107')][_0x4996('0x4e')][_0x4996('0x90')][_0x4996('0x26')],_0x4996('0xf6'),(_0x1d94dc,_0x502b35)=>{if(this['activeChange'])return;const _0x5428b3=this['_findChangeIdFromDomTarget'](_0x502b35[_0x4996('0x6f')]),_0x1c12fe=this[_0x4996('0x83')][_0x4996('0xff')](_0x5428b3);_0x1c12fe?(this[_0x4996('0x11b')]={'x':_0x502b35[_0x4996('0xc1')]['x'],'y':_0x502b35[_0x4996('0xc1')]['y']},this['activeView']=this[_0x4996('0x110')](_0x1c12fe)):(this[_0x4996('0x11b')]=null,this[_0x4996('0xfb')]=null);}),this['listenTo'](this['editor']['editing'][_0x4996('0x90')][_0x4996('0x26')],_0x4996('0x47'),(_0xd4b789,_0x901955)=>{const _0x317b0c=this[_0x4996('0xfe')](_0x901955[_0x4996('0x6f')]),_0x21c56f=this[_0x4996('0x83')]['get'](_0x317b0c);_0x21c56f?(this['_activeViewTarget']={'x':_0x901955['domEvent']['x'],'y':_0x901955[_0x4996('0xc1')]['y']},_0x21c56f===this[_0x4996('0x88')]?this[_0x4996('0x49')][_0x4996('0x46')]():this[_0x4996('0x88')]=_0x21c56f):(this['_activeViewTarget']=null,this[_0x4996('0x88')]=null);});}[_0x4996('0xfe')](_0x106eca){do{const _0x980d7a=_0x106eca[_0x4996('0xcc')](_0x4996('0xf1'));if(_0x980d7a)return _0x980d7a;_0x106eca=_0x106eca['parent'];}while(_0x106eca);return null;}['_cleanMarkers'](){this[_0x4996('0x107')][_0x4996('0x42')]['change'](_0x25c634=>{for(const _0x25f5fd of this['editor']['model'][_0x4996('0x108')])_0x25c634['removeMarker'](_0x25f5fd);});}}function et(_0x1553f9,_0x2e7374){return(_0x5068ac,_0x3b701f,_0x4abeaa)=>{if(!_0x4abeaa[_0x4996('0x129')][_0x4996('0x6a')](_0x3b701f['markerRange'],_0x5068ac['name']))return;const _0x505768=_0x3b701f['markerRange'][_0x4996('0x10a')](),_0xe7761a=_0x3b701f[_0x4996('0x64')][_0x4996('0x6c')],_0x19ed3c=_0x1553f9[_0x4996('0x42')][_0x4996('0xa4')];let _0x28ed83=null,_0xd5d8=null,_0x550054=!0x1,_0x2df797=!0x1;for(const _0x31d757 of _0x505768){const _0x5cd01f=_0x31d757[_0x4996('0x35')];_0x550054=_0x550054||_0x19ed3c[_0x4996('0x3a')](_0x5cd01f);const _0x1ddfc7=_0x4abeaa[_0x4996('0xbe')][_0x4996('0x24')](_0x5cd01f);if(_0x1ddfc7&&_0x1ddfc7[_0x4996('0x60')]('addHighlight'))return;_0x4996('0x105')==_0x31d757['type']&&(_0x19ed3c['isBlock'](_0x5cd01f)&&!_0x19ed3c[_0x4996('0x11d')](_0x5cd01f)&&(_0x5cd01f['nextSibling']||_0xe7761a[_0x4996('0xef')]?_0x28ed83&&_0x28ed83[_0x4996('0xac')]==_0x5cd01f||(_0x28ed83=_0x5cd01f,_0x476355(_0x31d757[_0x4996('0x71')]),_0x2df797=!0x0):_0xd5d8=_0xd5d8||_0x31d757['previousPosition']));}function _0x476355(_0x3c8310){const _0x2e5b9e=_0x4abeaa[_0x4996('0xbe')][_0x4996('0x80')](_0x3c8310),_0x4c0347=_0x4abeaa[_0x4996('0x117')][_0x4996('0x55')]('span',{'class':_0x4996('0x99')+_0x2e7374});_0x4abeaa[_0x4996('0x117')][_0x4996('0x126')](_0x2e5b9e,_0x4c0347),_0x4abeaa[_0x4996('0xbe')][_0x4996('0x116')](_0x4c0347,_0x3b701f[_0x4996('0x113')]);}_0x550054||_0x2df797||!_0xd5d8||_0x476355(_0xd5d8);};}export class RestoreRevisionCommand extends _0x375e2b{constructor(_0x47b40f){super(_0x47b40f);const _0x5f19a1=_0x47b40f[_0x4996('0x22')]['get'](d);this[_0x4996('0xe8')]=!0x1,this[_0x4996('0xc5')](_0x5f19a1,_0x4996('0x6'),()=>this[_0x4996('0x32')]()),this[_0x4996('0xc5')](_0x5f19a1,'change:isEnabled',()=>this[_0x4996('0x32')]());}[_0x4996('0x27')](){const _0x265d35=this[_0x4996('0x107')],_0x18e3d2=_0x265d35[_0x4996('0x22')]['get'](d),_0x1af1cc=_0x18e3d2['isReady']?_0x18e3d2[_0x4996('0x68')][_0x4996('0x5e')]:null;_0x265d35[_0x4996('0xe4')][_0x4996('0xff')]('revisionHistory')[_0x4996('0xd4')](_0x1af1cc);}[_0x4996('0x32')](){const {isReady:_0xe6be93,isEnabled:_0x32a4dd}=this[_0x4996('0x107')]['plugins']['get'](d);this['isEnabled']=_0xe6be93&&_0x32a4dd;}}export class ShowChangeCommand extends _0x375e2b{constructor(_0x404f36,{direction:_0x4466fa}){super(_0x404f36);const _0x452d92=_0x404f36['plugins']['get'](d);this[_0x4996('0xe8')]=!0x1,this[_0x4996('0xbd')]=_0x4996('0x20')===_0x4466fa?0x1:-0x1,this[_0x4996('0xc5')](_0x452d92,_0x4996('0x6'),()=>this[_0x4996('0x32')]()),this[_0x4996('0xc5')](_0x452d92,_0x4996('0x87'),()=>this[_0x4996('0x32')]());}['execute'](){const _0x1eecec=this[_0x4996('0x107')],_0x3009e4=_0x1eecec['plugins'][_0x4996('0xff')](d),{isNavigationMode:_0xf0b98a,currentChangeNumber:_0x5786c1}=_0x3009e4;let _0x1a05bc;if(_0x3009e4['activeChange']=_0xf0b98a?_0x3009e4[_0x4996('0x68')][_0x4996('0x76')][_0x4996('0xff')](_0x5786c1+this[_0x4996('0xbd')]):_0x3009e4[_0x4996('0x68')]['changes'][_0x4996('0x118')],_0x3009e4[_0x4996('0x88')][_0x4996('0xf0')]['isOnRoot'])_0x1a05bc=_0x1eecec[_0x4996('0x4e')][_0x4996('0x90')][_0x4996('0xca')](_0x3009e4['activeChange'][_0x4996('0x3d')]);else{const _0x4c178c=_0x1eecec[_0x4996('0x42')][_0x4996('0x108')][_0x4996('0xff')](_0x4996('0x66')+_0x3009e4[_0x4996('0x88')]['id']);_0x1a05bc=_0x39ac91(_0x1eecec[_0x4996('0x4e')],_0x4c178c);}_0x22828b({'target':_0x1a05bc,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ec865,currentChangeNumber:_0x3d0645,numberOfChanges:_0x591774,isReady:_0x335cc7,isEnabled:_0x3c00d9}=this[_0x4996('0x107')][_0x4996('0x22')]['get'](d);this['isEnabled']=!!(_0x3c00d9&&_0x335cc7&&_0x591774)&&(!_0x4ec865||(0x1===this[_0x4996('0xbd')]?_0x3d0645<_0x591774-0x1:_0x3d0645>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x235a=['buttonView','Show\x20more\x20items','items','execute','add','map','first','name','Compare\x20against\x20selected','model','ck-revision-history-sidebar__revision__actions','isOpen','_action','bind','action','extendTemplate','listView','threeVerticalDots','stopPropagation','source','function','listenTo','panelPosition','locale','class','isEnabled','isActionsDropdownOpen','button'];(function(_0x58fa6b,_0x235ad5){const _0x10b967=function(_0x49efd7){while(--_0x49efd7){_0x58fa6b['push'](_0x58fa6b['shift']());}};_0x10b967(++_0x235ad5);}(_0x235a,0x1da));const _0x10b9=function(_0x58fa6b,_0x235ad5){_0x58fa6b=_0x58fa6b-0x0;let _0x10b967=_0x235a[_0x58fa6b];return _0x10b967;};import{Collection as _0x2aeff4}from'ckeditor5/src/utils';import{icons as _0x4123ed}from'ckeditor5/src/core';import{Model as _0x27d544,addListToDropdown as _0x513cf9,createDropdown as _0x5bb170}from'ckeditor5/src/ui';import{getTranslation as _0x37b6c5}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2b1ad5,_0x43b5a4){const _0x23c863=_0x2b1ad5['bindTemplate'],_0x1393d4=_0x2b1ad5[_0x10b9('0x19')],_0x5a824c=_0x5bb170(_0x1393d4);_0x5a824c[_0x10b9('0x18')]='sw';const _0x1746bd=function(_0x5ae4b0,_0x4a86dd){const _0x2759e8=function(_0x210ad3,_0x275bfd){const _0x3a12c9=_0x210ad3[_0x10b9('0x19')],_0x593fdc={'Compare\x20against\x20selected':_0x37b6c5(_0x3a12c9,_0x10b9('0xa')),'Name\x20this\x20revision':_0x37b6c5(_0x3a12c9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x37b6c5(_0x3a12c9,'Restore\x20this\x20revision')};return _0x275bfd[_0x10b9('0x7')](_0x2dc033=>{const _0x4bc9e3=_0x593fdc[_0x2dc033['name']];return _0x4bc9e3&&_0x4bc9e3!==_0x2dc033[_0x10b9('0x9')]&&(_0x2dc033[_0x10b9('0x9')]=_0x4bc9e3),_0x2dc033;});}(_0x5ae4b0,_0x4a86dd),_0x1d7830=new _0x2aeff4();for(const _0x2b7102 of _0x2759e8){const _0x2a7e54={'type':_0x10b9('0x1'),'model':new _0x27d544({'label':_0x2b7102[_0x10b9('0x9')],'class':_0x2b7102[_0x10b9('0x1a')],'withText':!0x0,'_action':_0x2b7102[_0x10b9('0x10')]})};_0x2a7e54[_0x10b9('0xb')][_0x10b9('0xf')](_0x10b9('0x1b'))['to'](_0x5ae4b0,_0x10b9('0x0'),_0x3d6563=>_0x10b9('0x16')!=typeof _0x2b7102[_0x10b9('0x1b')]||(!_0x3d6563||_0x2b7102[_0x10b9('0x1b')](_0x5ae4b0))),_0x1d7830[_0x10b9('0x6')](_0x2a7e54);}return _0x1d7830;}(_0x2b1ad5,_0x43b5a4);return _0x2b1ad5[_0x10b9('0xf')](_0x10b9('0x0'))['to'](_0x5a824c,_0x10b9('0xd')),_0x5a824c[_0x10b9('0x2')]['set']({'label':_0x37b6c5(_0x1393d4,_0x10b9('0x3')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4123ed[_0x10b9('0x13')]}),_0x5a824c[_0x10b9('0x11')]({'attributes':{'class':[_0x10b9('0xc'),_0x23c863['if'](_0x10b9('0x0'),'ck-on')]},'on':{'click':_0x23c863['to'](_0x2c2f7d=>_0x2c2f7d[_0x10b9('0x14')]())}}),_0x5a824c['on'](_0x10b9('0x5'),_0x5c97f1=>{_0x2b1ad5['isReady']&&_0x10b9('0x16')==typeof _0x5c97f1[_0x10b9('0x15')]['_action']&&_0x5c97f1['source'][_0x10b9('0xe')](_0x2b1ad5);}),_0x513cf9(_0x5a824c,_0x1746bd),_0x5a824c[_0x10b9('0x17')](_0x2b1ad5,'change:isActionsDropdownOpen',(_0x1f448e,_0x508572,_0xe18436)=>{if(_0xe18436)for(const _0xddf954 of _0x5a824c[_0x10b9('0x12')][_0x10b9('0x4')]){const _0xe883c0=_0xddf954['children'][_0x10b9('0x8')],_0x4e4541=_0x43b5a4['find'](_0x23507b=>_0x23507b[_0x10b9('0x10')]===_0xe883c0[_0x10b9('0xe')])['isVisible'];_0xddf954['isVisible']=void 0x0===_0x4e4541||_0x4e4541(_0x2b1ad5);}}),_0x5a824c;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c2c=['Revision\x20author','span','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','setTemplate'];(function(_0x548fe6,_0x2c2cd8){const _0x32f68d=function(_0x3ddb38){while(--_0x3ddb38){_0x548fe6['push'](_0x548fe6['shift']());}};_0x32f68d(++_0x2c2cd8);}(_0x2c2c,0x1c7));const _0x32f6=function(_0x548fe6,_0x2c2cd8){_0x548fe6=_0x548fe6-0x0;let _0x32f68d=_0x2c2c[_0x548fe6];return _0x32f68d;};import{View as _0x84a523,IconView as _0xf274e5}from'ckeditor5/src/ui';import{getTranslation as _0x14cf1a}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x20cd72 from'../../../theme/icons/user.svg';export default class ti extends _0x84a523{constructor(_0x5e857f,_0x5a386c,_0x141be0){super(_0x5e857f);const _0x584ccf=new _0xf274e5();_0x584ccf['set']({'content':_0x20cd72,'viewBox':_0x32f6('0x2')});const _0xd877f2=['ck',_0x32f6('0x5')];_0x141be0&&_0xd877f2['push'](_0x32f6('0x3'));const _0x324a28=[{'tag':_0x32f6('0x1'),'attributes':{'class':['ck',_0x32f6('0x4')],'title':_0x14cf1a(_0x5e857f,_0x141be0?'Revision\x20creator':_0x32f6('0x0'))},'children':[_0x584ccf,_0x5a386c['name']]}];this[_0x32f6('0x6')]({'tag':'li','attributes':{'class':_0xd877f2},'children':_0x324a28});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4d6a=['ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate'];(function(_0x4d8f8d,_0x4d6a77){var _0x227326=function(_0x69b734){while(--_0x69b734){_0x4d8f8d['push'](_0x4d8f8d['shift']());}};_0x227326(++_0x4d6a77);}(_0x4d6a,0x1aa));var _0x2273=function(_0x4d8f8d,_0x4d6a77){_0x4d8f8d=_0x4d8f8d-0x0;var _0x227326=_0x4d6a[_0x4d8f8d];return _0x227326;};import{LabeledFieldView as _0x37a858}from'ckeditor5/src/ui';import{getTranslation as _0x5123b8}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x37a858{constructor(_0x401756,_0x5f3c99){super(_0x401756,_0x5f3c99),this['set']({'label':_0x5123b8(_0x401756,_0x2273('0x1'))}),this[_0x2273('0x2')]({'tag':'span','attributes':{'class':[_0x2273('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d2b=['ck-reset','fire','highlight','setTemplate','isHighlighted','value','div','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','select','ck-revision-history-sidebar__revision__date','listenTo','creator','name','ck-disabled','map','change','isSelected','from','set','_createdAtFormatted','220','createdAt','ck-revision-history-sidebar__actions_dropdown_open','revisionNameView','length','isReady','closest','_revision','isEnabled','authors','revisionActionsView','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision','.ck-thread__remove-confirm','bindTemplate','bind','isActionsDropdownOpen','filter','extendTemplate','placeholder','render','unshift','fieldView','deselect','ck-revision-history-sidebar__revision-wrapper','span','unhighlight'];(function(_0x4cd3e3,_0x5d2b4c){const _0x1fbc4e=function(_0x1a2dd2){while(--_0x1a2dd2){_0x4cd3e3['push'](_0x4cd3e3['shift']());}};_0x1fbc4e(++_0x5d2b4c);}(_0x5d2b,0x1a7));const _0x1fbc=function(_0x4cd3e3,_0x5d2b4c){_0x4cd3e3=_0x4cd3e3-0x0;let _0x1fbc4e=_0x5d2b[_0x4cd3e3];return _0x1fbc4e;};import{View as _0x14827e,createLabeledInputText as _0x579879}from'ckeditor5/src/ui';import{ConfirmMixin as _0x29c859}from'ckeditor5-collaboration/src/collaboration-core';import _0x17b390 from'./revisionnameview';import _0x1d5ba5 from'./revisionauthorview';import{dateToPrettyFormat as _0x3c7fee}from'./utils';import{createActionsDropdownView as _0x283df6}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x29c859(_0x14827e){constructor(_0x158aa1,_0x327cfa,_0xd2b389){super(_0x158aa1);const _0x5026ab=this[_0x1fbc('0x22')],_0x38cb9e=function(_0x4fb828,_0x2d033d){const _0x19e20c=Array[_0x1fbc('0x11')](_0x2d033d[_0x1fbc('0x1d')])[_0x1fbc('0x25')](_0xbd1095=>_0xbd1095!=_0x2d033d[_0x1fbc('0xb')]);return _0x2d033d[_0x1fbc('0xb')]&&_0x19e20c[_0x1fbc('0x29')](_0x2d033d[_0x1fbc('0xb')]),_0x19e20c[_0x1fbc('0xe')](_0x2e8888=>new _0x1d5ba5(_0x4fb828,_0x2e8888,_0x2e8888==_0x2d033d['creator']));}(_0x158aa1,_0x327cfa);this['id']=_0x327cfa['id'],this[_0x1fbc('0x1b')]=_0x327cfa,this[_0x1fbc('0x23')](_0x1fbc('0xc'),'createdAt')['to'](_0x327cfa),this[_0x1fbc('0x23')](_0x1fbc('0x13'))['to'](this,_0x1fbc('0x15'),_0x3a1799=>_0x3a1799?_0x3c7fee(_0x158aa1['uiLanguage'],_0x3a1799):void 0x0),this['set'](_0x1fbc('0x10'),!0x1),this['set'](_0x1fbc('0x4'),!0x1),this[_0x1fbc('0x12')](_0x1fbc('0x24'),!0x1),this[_0x1fbc('0x12')](_0x1fbc('0x19'),!0x1),this['set'](_0x1fbc('0x1c'),!0x1),this[_0x1fbc('0x17')]=new _0x17b390(_0x158aa1,_0x579879),this['revisionNameView'][_0x1fbc('0x2a')][_0x1fbc('0x26')]({'attributes':{'maxlength':_0x1fbc('0x14')}}),this[_0x1fbc('0x17')]['fieldView']['bind'](_0x1fbc('0x5'),_0x1fbc('0x27'))['to'](this,_0x1fbc('0xc'),_0x1fbc('0x13')),this[_0x1fbc('0x17')][_0x1fbc('0x23')](_0x1fbc('0x1c'))['to'](this,_0x1fbc('0x10'),this,_0x1fbc('0x1c'),(_0x24bed4,_0x3c9b27)=>_0x24bed4&&_0x3c9b27),this[_0x1fbc('0x1e')]=_0xd2b389&&_0xd2b389[_0x1fbc('0x18')]?_0x283df6(this,_0xd2b389):'',this['revisionActionsView']&&this[_0x1fbc('0x1e')]['bind']('isEnabled')['to'](this),this[_0x1fbc('0x3')]({'tag':'div','attributes':{'class':['ck',_0x1fbc('0x0'),_0x1fbc('0x2c'),_0x5026ab['if']('isConfirm',_0x1fbc('0x7'))]},'children':[{'tag':_0x1fbc('0x6'),'attributes':{'class':['ck',_0x1fbc('0x0'),_0x1fbc('0x20'),_0x5026ab['if'](_0x1fbc('0x1c'),_0x1fbc('0xd'),_0x540e48=>!_0x540e48),_0x5026ab['if'](_0x1fbc('0x10'),_0x1fbc('0x1f')),_0x5026ab['if'](_0x1fbc('0x4'),'ck-revision-history-sidebar__revision_highlighted'),_0x5026ab['if']('isActionsDropdownOpen',_0x1fbc('0x16'))]},'children':[this[_0x1fbc('0x17')],{'tag':_0x1fbc('0x2d'),'attributes':{'class':['ck',_0x1fbc('0x9')]},'children':[{'text':_0x5026ab['to'](_0x1fbc('0x13'))}]},{'tag':_0x1fbc('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x38cb9e}]},this[_0x1fbc('0x1e')]],'on':{'click':_0x5026ab['to'](_0x9ca6b4=>{_0x9ca6b4['srcElement'][_0x1fbc('0x1a')](_0x1fbc('0x21'))||this[_0x1fbc('0x19')]&&this[_0x1fbc('0x1c')]&&this[_0x1fbc('0x1')](_0x1fbc('0x8'),{'id':this['id']});})}}]});}['render'](){super[_0x1fbc('0x28')]();const _0x115be7=this[_0x1fbc('0x17')]['fieldView']['element'];this[_0x1fbc('0xa')](_0x115be7,_0x1fbc('0xf'),()=>{this['fire']('setName',{'id':this['id'],'name':_0x115be7[_0x1fbc('0x5')]});});}[_0x1fbc('0x8')](){this[_0x1fbc('0x10')]=!0x0;}[_0x1fbc('0x2b')](){this[_0x1fbc('0x10')]=!0x1;}[_0x1fbc('0x2')](){this[_0x1fbc('0x4')]=!0x0;}[_0x1fbc('0x2e')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34bf=['button','click','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','true','toggle','span','isVisible','setTemplate','set','_isCollapsed'];(function(_0x39ae08,_0x34bf65){const _0x13cd29=function(_0x3d17e3){while(--_0x3d17e3){_0x39ae08['push'](_0x39ae08['shift']());}};_0x13cd29(++_0x34bf65);}(_0x34bf,0x156));const _0x13cd=function(_0x39ae08,_0x34bf65){_0x39ae08=_0x39ae08-0x0;let _0x13cd29=_0x34bf[_0x39ae08];return _0x13cd29;};import{View as _0x25d07c}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x25d07c{constructor(_0x2199eb){super(_0x2199eb);const _0x2f37d8=this['bindTemplate'];this[_0x13cd('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x13cd('0x7')]({'tag':_0x13cd('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x2f37d8['if'](_0x13cd('0x6'),'ck-hidden',_0x2341cb=>!_0x2341cb),_0x2f37d8['if'](_0x13cd('0x9'),_0x13cd('0x2'))],'role':_0x13cd('0xa'),'aria-pressed':_0x2f37d8['to'](_0x13cd('0x9'),_0x299339=>_0x299339?_0x13cd('0x1'):_0x13cd('0x3'))},'children':[{'tag':_0x13cd('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x2f37d8['to'](_0x13cd('0x0'))}});}[_0x13cd('0x4')](){this[_0x13cd('0x9')]=!this[_0x13cd('0x9')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1130=['setTemplate','ck-revision-history-sidebar__revision','div','bind','set','_parentRevisionId','bindTemplate','createdAt','isSelected','deselect','ck-revision-history-sidebar__revision-authors','select','creator','fire','ck-reset','uiLanguage','ck-revision-history-sidebar__revision_selected'];(function(_0x197b4a,_0x113087){const _0x4f5817=function(_0x6d520){while(--_0x6d520){_0x197b4a['push'](_0x197b4a['shift']());}};_0x4f5817(++_0x113087);}(_0x1130,0xcf));const _0x4f58=function(_0x197b4a,_0x113087){_0x197b4a=_0x197b4a-0x0;let _0x4f5817=_0x1130[_0x197b4a];return _0x4f5817;};import{View as _0x42198b}from'ckeditor5/src/ui';import _0x2a6bb6 from'./revisionauthorview';import{dateToPrettyFormat as _0x523662}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x42198b{constructor(_0x2c4a1f,_0x385432,_0x44cb23){super(_0x2c4a1f);const _0x210029=this[_0x4f58('0x3')];this['id']=_0x385432['id'],this[_0x4f58('0x0')](_0x4f58('0x4'))['to'](_0x385432),this[_0x4f58('0x1')](_0x4f58('0x5'),!0x1),this[_0x4f58('0x0')]('_createdAtFormatted')['to'](this,_0x4f58('0x4'),_0x4b5b0f=>_0x4b5b0f?_0x523662(_0x2c4a1f[_0x4f58('0xc')],_0x4b5b0f):void 0x0),this[_0x4f58('0x2')]=_0x44cb23,this[_0x4f58('0xe')]({'tag':_0x4f58('0x10'),'attributes':{'class':['ck',_0x4f58('0xb'),_0x4f58('0xf'),'ck-revision-history-sidebar__subrevision',_0x210029['if'](_0x4f58('0x5'),_0x4f58('0xd'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x210029['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x4f58('0x7')]},'children':[new _0x2a6bb6(_0x2c4a1f,_0x385432[_0x4f58('0x9')],!0x0)]}],'on':{'click':_0x210029['to'](this[_0x4f58('0x8')][_0x4f58('0x0')](this))}});}[_0x4f58('0x8')](){this[_0x4f58('0x5')]=!0x0,this[_0x4f58('0xa')](_0x4f58('0x8'),{'parentId':this[_0x4f58('0x2')]});}[_0x4f58('0x6')](){this[_0x4f58('0x5')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4164=['toLocaleDateString','numeric','toLocaleTimeString'];(function(_0x50cb10,_0x4164dd){var _0xc0a3f6=function(_0x50ddfd){while(--_0x50ddfd){_0x50cb10['push'](_0x50cb10['shift']());}};_0xc0a3f6(++_0x4164dd);}(_0x4164,0x1b7));var _0xc0a3=function(_0x50cb10,_0x4164dd){_0x50cb10=_0x50cb10-0x0;var _0xc0a3f6=_0x4164[_0x50cb10];return _0xc0a3f6;};export function dateToPrettyFormat(_0x4218f4,_0x5afe92){return _0x5afe92[_0xc0a3('0x2')](_0x4218f4,{'month':'long','day':_0xc0a3('0x0')})+',\x20'+_0x5afe92[_0xc0a3('0x1')](_0x4218f4,{'hour':_0xc0a3('0x0'),'minute':_0xc0a3('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2876=['arrowright','_focusables','value','ck-button-cancel','fieldView','_createButton','set','220','cancelButtonView','add','_focusCycler','ck-revision-history-save-revision-form','_createRevisionNameInput','tab','delegate','setTemplate','arrowdown','locale','Save','arrowleft','extendTemplate','forEach','focusTracker','form','revisionName','element','trim','keystrokes','shift\x20+\x20tab','saveButtonView','ck-responsive-form','type','input','focus','revisionNameInputView','render','submit','revisionNameInputValue','focusFirst','listenTo','cancel','ck-button-save'];(function(_0x109280,_0x287678){const _0x30d8db=function(_0x20cdec){while(--_0x20cdec){_0x109280['push'](_0x109280['shift']());}};_0x30d8db(++_0x287678);}(_0x2876,0xa9));const _0x30d8=function(_0x109280,_0x287678){_0x109280=_0x109280-0x0;let _0x30d8db=_0x2876[_0x109280];return _0x30d8db;};import{icons as _0x19cf37}from'ckeditor5/src/core';import{ButtonView as _0x5ba056,FocusCycler as _0x4a92df,LabeledFieldView as _0x158547,View as _0x10d48b,ViewCollection as _0x38d01a,createLabeledInputText as _0x1472eb,injectCssTransitionDisabler as _0x1fa969,submitHandler as _0x440d35}from'ckeditor5/src/ui';import{FocusTracker as _0x342146,KeystrokeHandler as _0x3a3ea5}from'ckeditor5/src/utils';import{getTranslation as _0x49c9af}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x10d48b{constructor(_0x3c74da){super(_0x3c74da),this[_0x30d8('0x15')]=new _0x342146(),this['keystrokes']=new _0x3a3ea5(),this[_0x30d8('0x5')](_0x30d8('0x24'),''),this[_0x30d8('0x21')]=this[_0x30d8('0xb')](),this[_0x30d8('0x1c')]=this[_0x30d8('0x4')](_0x49c9af(_0x3c74da,_0x30d8('0x11')),_0x19cf37['check'],_0x30d8('0x28')),this[_0x30d8('0x1c')][_0x30d8('0x1e')]=_0x30d8('0x23'),this[_0x30d8('0x7')]=this['_createButton'](_0x49c9af(_0x3c74da,'Cancel'),_0x19cf37[_0x30d8('0x27')],_0x30d8('0x2'),_0x30d8('0x27')),this[_0x30d8('0x0')]=new _0x38d01a(),this[_0x30d8('0x9')]=new _0x4a92df({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x30d8('0x1b'),'focusNext':_0x30d8('0xc')}}),this[_0x30d8('0xe')]({'tag':_0x30d8('0x16'),'attributes':{'class':['ck',_0x30d8('0xa'),_0x30d8('0x1d')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x30d8('0x1c')],this[_0x30d8('0x7')]]}),_0x1fa969(this);}[_0x30d8('0x22')](){super[_0x30d8('0x22')](),_0x440d35({'view':this}),([this[_0x30d8('0x21')],this[_0x30d8('0x1c')],this[_0x30d8('0x7')]][_0x30d8('0x14')](_0xb6ef3d=>{this[_0x30d8('0x0')][_0x30d8('0x8')](_0xb6ef3d),this[_0x30d8('0x15')][_0x30d8('0x8')](_0xb6ef3d['element']);}),this['keystrokes'][_0x30d8('0x26')](this[_0x30d8('0x18')]));const _0x3c759a=_0x59876e=>_0x59876e['stopPropagation']();this[_0x30d8('0x1a')]['set'](_0x30d8('0x29'),_0x3c759a),this[_0x30d8('0x1a')][_0x30d8('0x5')](_0x30d8('0x12'),_0x3c759a),this[_0x30d8('0x1a')]['set']('arrowup',_0x3c759a),this[_0x30d8('0x1a')][_0x30d8('0x5')](_0x30d8('0xf'),_0x3c759a);}[_0x30d8('0x20')](){this[_0x30d8('0x9')][_0x30d8('0x25')]();}get[_0x30d8('0x17')](){return this[_0x30d8('0x21')]['fieldView'][_0x30d8('0x18')][_0x30d8('0x1')][_0x30d8('0x19')]();}set[_0x30d8('0x17')](_0x352ae0){this[_0x30d8('0x21')][_0x30d8('0x3')][_0x30d8('0x18')][_0x30d8('0x1')]=_0x352ae0[_0x30d8('0x19')]();}['reset'](){this[_0x30d8('0x21')][_0x30d8('0x3')]['element'][_0x30d8('0x1')]='';}[_0x30d8('0xb')](){const _0x2dae06=new _0x158547(this[_0x30d8('0x10')],_0x1472eb),_0x41980c=_0x2dae06['fieldView'];return _0x41980c[_0x30d8('0x13')]({'attributes':{'maxlength':_0x30d8('0x6')}}),_0x2dae06['label']=_0x49c9af(this['locale'],'Name\x20of\x20the\x20revision\x20(optional)'),_0x41980c['on'](_0x30d8('0x1f'),()=>{this[_0x30d8('0x24')]=_0x41980c[_0x30d8('0x18')]['value'][_0x30d8('0x19')]();}),_0x2dae06;}[_0x30d8('0x4')](_0x93a23a,_0x3dc6e6,_0x709345,_0x558497){const _0x268db5=new _0x5ba056(this[_0x30d8('0x10')]);return _0x268db5[_0x30d8('0x5')]({'label':_0x93a23a,'icon':_0x3dc6e6,'tooltip':!0x0}),_0x268db5['extendTemplate']({'attributes':{'class':_0x709345}}),_0x558497&&_0x268db5[_0x30d8('0xd')]('execute')['to'](this,_0x558497),_0x268db5;}}
|