@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231128.0 → 0.0.0-nightly-20231130.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/README.md +1 -1
- 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 _0x224c=['markerRange','forward','WidgetToolbarRepository','commands','split','deletions','editing','revision','upcast','startsWith','elementStart','getRevisionRootsAttributes','softBreak','view','config','_getChangeFromId','revisionHistoryAttachChange','_initInteractions','filter','uiElement','insert','adapter','locale','diff','pluginName','all','createRange','schema','toModel','isBefore','side','abs','change:activeView','RevisionViewer','getAttribute','showStack','getCustomProperty','consume','bind','getWalker','-new','data','vid_end','isEnabled','_markInsertions','processor','removeAttribute','_getDiff','addRevision','keys','parent','roots','isSuggestion','detachRoot','revisionHistoryLabel','_cleanUp','level','shift','isIncorrect','attributesAfter','hasClass','toData','_changeView','isReady','catch','right','isInline','_fixObsoleteTags','affectsData','values','_update','removeMarker','first','mousedown','concat','revision-suggestion:','left','getAttributes','dataToMarker','toViewRange','_removeUnsupportedChanges','ck-editor__editable__overlay','listenTo','rootName','consumable','includes','_getViewForChange','revision-suggestion','push','_getRevisionsRange','from','_sortAndFilterDiffChanges','isLimit','data-revision-','isRemoved','_activeViewTarget','authors','markerToData','suggestion','isAfter','activeView','children','loadRevisionData','highest','forceDisabled','editor','model','markerNameToElements','map','addClass','numberOfChanges','item','document','remove','change:activeChange','change','newRevisionId','for','removeClass','markers','insertion','_markMismatchedRemovedTags','ck-suggestion-preview-marker','isCollapsed','merge','change:isReady','_makeModelFromViewString','domConverter','repository','has','name','isOnRoot','revision:','_balloon','isObject','viewItem','getRoot','nextSibling','restoreRevisionCallback','_removeMissingPairs','unbindElementFromMarkerName','pop','ck-revision-history-root-add','top','isAtEnd','marked','_makeModelFromTape','changes','delete','pairId','_setDistance','then','ck-revision-history-root--active','offsetSize','currentChangeNumber','span','flat','getChild','execute','addMarker:revision-suggestion:insertion','add','reconvertMarker','element:pre','done','_getViewObj','endIndex','range','init','addMarker:revision-suggestion:deletion','useFillerType','enableReadOnlyMode','wrap','low','test','_appendChild','next','deletion','createAttributeElement','maxOffset','addMarker:revision','destroy','editingDowncast','createPositionFromPath','high','activeChange','change:isEnabled','getDomRoot','_processTape','suggestion:','downcastDispatcher','data-change-id','removeMarker:revision','diffData','findIndex','get','isEqual','domEvent','vid','comment','string','elementEnd','attachChange','revisionHistory','addRevisionData','ck-suggestion-marker-merge','return','startIndex','enqueueChange','showNextChange','refresh','_threeWayMerge','ck-suggestion-marker--active','addHighlight','selection','splice','error','attributesBefore','getIndex','restoreRevision','type','getRootNames','default','_setConversion','forEach','_cleanMarkers','mapper','conversion','markerToHighlight','ck-suggestion-marker-','isAdded','RevisionsRepository','sort','previousPosition','createUIElement','userId','modelRange','insertions','_makeTape','end','markerName','getRevisionData','vid_start','start','toViewPosition','_refreshStartEndIndex','isAtStart','bindElementToMarker','getClientRects','markersStart','attributes','ck-suggestion-preview-marker-','POSITIVE_INFINITY','_changeIdToChange','length','distance','isAddSuggestion','find','isRemoveSuggestion','unshift','_step','plugins','indexOf','isBlock','revision-viewer','compare','getRevision','resolve','collaboration.channelId','_setChanges','text','slice','markersEnd','revision-comment:','set','parse','showPreviousChange','object','toViewElement','updatePosition','_findChangeIdFromDomTarget','hasAttribute','writer','mapViewToDom','ck-revision-history-root-remove','isAttached','nextPosition','_joinTapes','addRoot','target','nodeAfter','index','_markSuggestions','_removeRevisionMarkers','element','setAttribute'];(function(_0x42e2c7,_0x224c4a){const _0x3c13bb=function(_0xf3dccb){while(--_0xf3dccb){_0x42e2c7['push'](_0x42e2c7['shift']());}};_0x3c13bb(++_0x224c4a);}(_0x224c,0x75));const _0x3c13=function(_0x42e2c7,_0x224c4a){_0x42e2c7=_0x42e2c7-0x0;let _0x3c13bb=_0x224c[_0x42e2c7];return _0x3c13bb;};import{Plugin as _0x2b7b9c,Command as _0x17e90c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x28c5c9}from'ckeditor5/src/utils';import{ContextualBalloon as _0xad9068}from'ckeditor5/src/ui';import{DocumentFragment as _0x357518,Element as _0x5020ed,Text as _0x57709f,ViewDocumentFragment as _0x2c2406,ViewText as _0x3435c4,ViewElement as _0x32fc8b,ViewContainerElement as _0x262a4d,ViewAttributeElement as _0x5b5a6f,ViewEmptyElement as _0x54d03b,ViewRawElement as _0x5b0b42,ViewUIElement as _0x18498a}from'ckeditor5/src/engine';import{Users as _0x1b6f7a,getMarkerDomElement as _0x382f5c}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e0073 from'./ui/revisionviewer/changedetailsview';import _0x138e4c from'./revisionsrepository';import _0x164e19 from'./changeitem';import{default as _0x2883e3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3c5713}from'lodash-es';const tt={'c':_0x262a4d,'a':_0x5b5a6f,'e':_0x54d03b,'r':_0x5b0b42,'u':_0x18498a};export default class d extends _0x2b7b9c{static get[_0x3c13('0xca')](){return'RevisionViewer';}static get['requires'](){return[_0x1b6f7a,_0xad9068,_0x138e4c];}constructor(_0x4b570a){super(_0x4b570a),this[_0x3c13('0xb')]=this['editor'][_0x3c13('0x8f')][_0x3c13('0x4d')](_0x3c13('0x71')),this[_0x3c13('0x9c')](_0x3c13('0x43'),null),this[_0x3c13('0x9c')](_0x3c13('0x116'),null),this[_0x3c13('0x111')]=null,this['set'](_0x3c13('0xc9'),null),this[_0x3c13('0x9c')]('isReady',!0x1),this[_0x3c13('0x9c')](_0x3c13('0xdd'),!0x0),this['on'](_0x3c13('0x44'),(_0x5a7d3a,_0xdabdb,_0x314b52)=>{this[_0x3c13('0x43')]=null,this[_0x3c13('0x116')]=null,this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')]['change'](_0x1bc516=>{for(const _0x2acca7 of this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')][_0x3c13('0xe5')])_0x314b52?_0x1bc516[_0x3c13('0x1')](_0x3c13('0x103'),_0x2acca7):_0x1bc516[_0x3c13('0x11f')](_0x3c13('0x103'),_0x2acca7);});}),this['bind']('isNavigationMode')['to'](this,_0x3c13('0x43'),_0x28b021=>null!==_0x28b021),this[_0x3c13('0xd8')](_0x3c13('0x25'))['to'](this,_0x3c13('0xf1'),this,_0x3c13('0xc9'),this,_0x3c13('0x43'),(_0x1d3066,_0x30a716,_0x50c724)=>_0x1d3066&&_0x50c724?_0x30a716['changes'][_0x3c13('0x64')](_0x50c724):0x0),this[_0x3c13('0xd8')](_0x3c13('0x120'))['to'](this,_0x3c13('0xf1'),this,_0x3c13('0xc9'),(_0x1bafad,_0x322317)=>_0x1bafad?_0x322317[_0x3c13('0x1e')][_0x3c13('0x88')]:0x0),this['_changeView']=null,this[_0x3c13('0x87')]=new Map(),this['adapter']=null,this[_0x3c13('0x10')]=this[_0x3c13('0x11b')][_0x3c13('0x8f')][_0x3c13('0x4d')](_0xad9068);}[_0x3c13('0x32')](){const _0x237ed1=this[_0x3c13('0x11b')],_0x1f04d1=new ShowChangeCommand(_0x237ed1,{'direction':'backward'}),_0x35b211=new ShowChangeCommand(_0x237ed1,{'direction':'forward'});(_0x237ed1['commands'][_0x3c13('0x2b')](_0x3c13('0x9e'),_0x1f04d1),_0x237ed1[_0x3c13('0xb5')][_0x3c13('0x2b')](_0x3c13('0x5b'),_0x35b211),_0x237ed1[_0x3c13('0xb5')][_0x3c13('0x2b')](_0x3c13('0x65'),new RestoreRevisionCommand(_0x237ed1)),this['on']('change:numberOfChanges',()=>{_0x1f04d1[_0x3c13('0x5c')](),_0x35b211[_0x3c13('0x5c')]();}),this[_0x3c13('0x69')](),this[_0x3c13('0xc3')](),_0x237ed1[_0x3c13('0x35')](_0x3c13('0x92')),_0x237ed1[_0x3c13('0x8f')][_0x3c13('0xc')](_0x3c13('0xb4')))&&_0x237ed1[_0x3c13('0x8f')]['get']('WidgetToolbarRepository')[_0x3c13('0x11a')](_0x3c13('0x92'));}async[_0x3c13('0x7b')](_0x3b6090){await this['loadRevisionData'](_0x3b6090);const _0x37a73b={};for(const _0x138500 in _0x3b6090[_0x3c13('0x4b')]){if(_0x3b6090[_0x3c13('0x4b')][_0x138500][_0x3c13('0x54')]&&!_0x3b6090['diffData'][_0x138500]['attachChange'][_0x3c13('0xa7')])continue;const _0xa1bf1a=this[_0x3c13('0xaf')](JSON[_0x3c13('0x9d')](_0x3b6090['diffData'][_0x138500][_0x3c13('0x77')])),_0x1e5298=this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')],_0x2f5d1a=new _0x2c2406(_0x1e5298,_0xa1bf1a[_0x3c13('0x11e')](_0x499c26=>this['_getViewObj'](_0x499c26)));this[_0x3c13('0x11b')][_0x3c13('0xdb')][_0x3c13('0xdf')][_0x3c13('0x34')](_0x3c13('0x1c')),_0x37a73b[_0x138500]=this[_0x3c13('0x11b')][_0x3c13('0xdb')][_0x3c13('0xdf')][_0x3c13('0xef')](_0x2f5d1a),this['editor'][_0x3c13('0xdb')][_0x3c13('0xdf')]['useFillerType'](_0x3c13('0x68'));}return _0x37a73b;}async[_0x3c13('0xbd')](_0x57a5e8){await this[_0x3c13('0x118')](_0x57a5e8);const _0x13e190={};for(const _0x717d5e in _0x57a5e8['diffData'])_0x57a5e8[_0x3c13('0x4b')][_0x717d5e]['attachChange']&&!_0x57a5e8['diffData'][_0x717d5e][_0x3c13('0x54')][_0x3c13('0xa7')]||(_0x13e190[_0x717d5e]=_0x57a5e8[_0x3c13('0x4b')][_0x717d5e]['attributesAfter']||{});return _0x13e190;}[_0x3c13('0xaf')](_0x55ee3a){return(_0x55ee3a=_0x55ee3a[_0x3c13('0xc4')](_0x51d19e=>!_0x51d19e['name']||'revision-start'!==_0x51d19e[_0x3c13('0xd')]&&'revision-end'!==_0x51d19e[_0x3c13('0xd')]))[_0x3c13('0x6a')](_0x5c3c1e=>{'string'!=typeof _0x5c3c1e&&(_0x5c3c1e[_0x3c13('0x117')]=this[_0x3c13('0xaf')](_0x5c3c1e['children']),_0x5c3c1e[_0x3c13('0x84')]=_0x5c3c1e['attributes'][_0x3c13('0xc4')](_0x42bf69=>!_0x42bf69[0x0]['startsWith'](_0x3c13('0x10f'))));}),_0x55ee3a;}async[_0x3c13('0x93')](_0x373903,_0x48318d,_0x1a69f6=!0x1){if(!this[_0x3c13('0xdd')])return;const _0x442266=this[_0x3c13('0xc9')],_0x50e2f1=this['repository'],_0x33bb61=_0x3c13('0x52')==typeof _0x373903?_0x50e2f1[_0x3c13('0x94')](_0x373903):_0x373903,_0x22b82b=_0x3c13('0x52')==typeof _0x48318d?_0x50e2f1['getRevision'](_0x48318d):_0x48318d,_0x5d000d=_0x33bb61['id'],_0x4942eb=_0x22b82b?_0x22b82b['id']:null;if(!_0x1a69f6&&this['diff']&&this['diff'][_0x3c13('0x126')]===_0x5d000d&&this[_0x3c13('0xc9')]['oldRevisionId']===_0x4942eb)return Promise['resolve']();this[_0x3c13('0xf1')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x3c13('0xc9')]=new _0x2883e3(_0x5d000d,_0x4942eb);const _0x30dcf5=this[_0x3c13('0x10b')](_0x33bb61,_0x22b82b,!0x0)[_0x3c13('0x11e')](_0x2a6b07=>this[_0x3c13('0x118')](_0x2a6b07));return _0x30dcf5[_0x3c13('0x10a')](new Promise(_0x271bd0=>{setTimeout(_0x271bd0,0x14);})),Promise[_0x3c13('0xcb')](_0x30dcf5)[_0x3c13('0x22')](()=>{if(!this[_0x3c13('0xdd')])return;this['_cleanUp']();const _0x29d221=this[_0x3c13('0xe1')](_0x5d000d,_0x4942eb);for(const _0x295da0 of _0x29d221[_0x3c13('0x1e')])this[_0x3c13('0x87')]['set'](_0x295da0['id'],_0x295da0);this[_0x3c13('0x11b')][_0x3c13('0x11c')]['enqueueChange']({'isUndoable':!0x1},_0x5bfe25=>{for(const _0x62564d of this['editor'][_0x3c13('0x11c')]['document'][_0x3c13('0x67')]())_0x5bfe25[_0x3c13('0xe7')](_0x62564d);for(const _0x14c790 of Object[_0x3c13('0xe3')](_0x29d221[_0x3c13('0x11c')])){const _0x13f125=_0x5bfe25[_0x3c13('0xaa')](_0x14c790);for(const _0x3c329f of Object['keys'](_0x29d221['attributes'][_0x14c790]))_0x5bfe25[_0x3c13('0xb1')](_0x3c329f,_0x29d221[_0x3c13('0x84')][_0x14c790][_0x3c329f],_0x13f125);_0x5bfe25[_0x3c13('0xc6')](_0x29d221[_0x3c13('0x11c')][_0x14c790],_0x13f125,0x0);}}),this['diff'][_0x3c13('0x97')](this['_sortAndFilterDiffChanges'](_0x29d221['changes'])),this[_0x3c13('0xf1')]=!0x0;})[_0x3c13('0xf2')](_0xfd7014=>{console[_0x3c13('0x62')](_0xfd7014),this[_0x3c13('0xe9')](),_0x442266&&(this[_0x3c13('0xc9')]=_0x442266),this[_0x3c13('0xf1')]=!0x0;});}[_0x3c13('0x56')](_0x1068c4,_0x314dd2){const _0x19bb72=this[_0x3c13('0xb')]['createRevision'](_0x1068c4);return _0x19bb72['on'](_0x3c13('0xf8'),(_0x3b0bf6,_0x781bf9,_0x381467)=>_0x314dd2(_0x781bf9,_0x381467,_0x19bb72)),this['repository'][_0x3c13('0xe2')](_0x19bb72),_0x19bb72;}[_0x3c13('0x118')](_0xc3bc8a){if(!_0xc3bc8a||_0xc3bc8a['diffData'])return Promise[_0x3c13('0x95')]();{const _0x345bec=this['editor'][_0x3c13('0xc0')][_0x3c13('0x4d')](_0x3c13('0x96'));return this[_0x3c13('0xc7')][_0x3c13('0x94')]({'channelId':_0x345bec,'revisionId':_0xc3bc8a['id']})[_0x3c13('0x22')](_0x523ff1=>{_0xc3bc8a[_0x3c13('0xf8')]({'diffData':_0x523ff1[_0x3c13('0x4b')]},!0x0);});}}[_0x3c13('0xe9')](){this[_0x3c13('0x43')]=null,this[_0x3c13('0x6b')](),this[_0x3c13('0xf0')]&&this[_0x3c13('0xf0')][_0x3c13('0x3f')](),this[_0x3c13('0xf0')]=null,this[_0x3c13('0x87')]['clear'](),this[_0x3c13('0x11b')][_0x3c13('0x11c')][_0x3c13('0x5a')]({'isUndoable':!0x1},_0x596734=>{for(const _0x487ed1 of this['editor'][_0x3c13('0x11c')]['document'][_0x3c13('0x67')]())_0x596734[_0x3c13('0xe7')](_0x487ed1);});}[_0x3c13('0x10d')](_0x24e7c7){const _0x361964=[],_0x110c17=new Map();for(const _0x24bb1e of this[_0x3c13('0x11b')]['model'][_0x3c13('0x122')]['getRootNames']()){const _0x32c770=this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x45')](_0x24bb1e);if(!_0x32c770)continue;const _0x1483a4=_0x32c770[_0x3c13('0x82')]()['item'](0x0);_0x1483a4&&(_0x361964[_0x3c13('0x10a')](_0x24bb1e),_0x110c17[_0x3c13('0x9c')](_0x24bb1e,_0x1483a4));}return _0x361964[_0x3c13('0x72')]((_0x4625a9,_0x2fe2b9)=>{const _0x40ce18=_0x110c17['get'](_0x4625a9),_0x2e906c=_0x110c17[_0x3c13('0x4d')](_0x2fe2b9);return _0x40ce18['y']-_0x2e906c['y']||_0x40ce18['x']-_0x2e906c['x'];}),(_0x24e7c7=_0x24e7c7[_0x3c13('0xc4')](_0x387857=>_0x361964[_0x3c13('0x107')](_0x387857[_0x3c13('0x105')])))[_0x3c13('0x72')]((_0xa7ce14,_0x2c3ea0)=>_0x361964[_0x3c13('0x90')](_0xa7ce14[_0x3c13('0x105')])-_0x361964[_0x3c13('0x90')](_0x2c3ea0[_0x3c13('0x105')])),_0x24e7c7;}[_0x3c13('0x78')](_0x67ba2b){const _0x3390a9=Array['from'](_0x67ba2b[_0x3c13('0x2')])[_0x3c13('0xc4')](([_0x29b32d,_0x2b7b39])=>_0x29b32d[_0x3c13('0xbb')](_0x3c13('0xf'))&&!_0x2b7b39[_0x3c13('0x6')]),_0x3870b0=Array['from'](this[_0x3c13('0x11b')]['model']['createRangeIn'](_0x67ba2b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3390a9[_0x3c13('0x88')])for(const _0x4c8172 of _0x3870b0){const [_0x56448e,_0x1e9591]=_0x3390a9[0x0],[,_0x45771f,_0x28fb2d]=_0x56448e[_0x3c13('0xb6')](':');if(_0x1e9591[_0x3c13('0x79')][_0x3c13('0x4e')](_0x4c8172[_0x3c13('0xa8')])&&_0x3390a9[_0x3c13('0xeb')](),(_0x4c8172[_0x3c13('0x73')][_0x3c13('0x4e')](_0x1e9591[_0x3c13('0x7d')])||_0x4c8172[_0x3c13('0x73')][_0x3c13('0x115')](_0x1e9591[_0x3c13('0x7d')]))&&(_0x3c13('0x3')==_0x45771f?_0x4c8172[_0x3c13('0x70')]={'userId':_0x28fb2d}:_0x3c13('0x3b')==_0x45771f&&(_0x4c8172[_0x3c13('0x110')]={'userId':_0x28fb2d})),0x0==_0x3390a9[_0x3c13('0x88')])break;}return _0x3870b0;}[_0x3c13('0x7f')](_0x3069c6){const _0x512c3e=new Map();for(let _0x4707a9=0x0;_0x4707a9<_0x3069c6[_0x3c13('0x88')];_0x4707a9++)_0x3c13('0x98')===_0x3069c6[_0x4707a9][_0x3c13('0x66')]?(_0x3069c6[_0x4707a9]['item'][_0x3c13('0x59')]=_0x4707a9,_0x3069c6[_0x4707a9]['item'][_0x3c13('0x30')]=_0x4707a9):(_0x3c13('0xbc')===_0x3069c6[_0x4707a9][_0x3c13('0x66')]?_0x3069c6[_0x4707a9][_0x3c13('0x121')][_0x3c13('0x59')]=_0x4707a9:_0x3c13('0x53')===_0x3069c6[_0x4707a9][_0x3c13('0x66')]&&(_0x3069c6[_0x4707a9]['item']['endIndex']=_0x4707a9),_0x512c3e['set'](_0x3069c6[_0x4707a9]['id'],_0x4707a9));for(const _0x10fda3 of _0x512c3e[_0x3c13('0xf7')]())_0x3c13('0xbc')===_0x3069c6[_0x10fda3][_0x3c13('0x66')]?_0x3069c6[_0x10fda3][_0x3c13('0x121')][_0x3c13('0x30')]=_0x512c3e[_0x3c13('0x4d')](_0x3069c6[_0x10fda3][_0x3c13('0x20')]):_0x3c13('0x53')===_0x3069c6[_0x10fda3][_0x3c13('0x66')]&&(_0x3069c6[_0x10fda3]['item'][_0x3c13('0x59')]=_0x512c3e[_0x3c13('0x4d')](_0x3069c6[_0x10fda3][_0x3c13('0x20')]));}['_processTape'](_0x4a8fd9){for(let _0x49357a=0x0;_0x49357a<_0x4a8fd9['length'];_0x49357a++){if(_0x3c13('0xbc')===_0x4a8fd9[_0x49357a][_0x3c13('0x66')])_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x59')]=_0x49357a;else{if(_0x3c13('0x53')===_0x4a8fd9[_0x49357a][_0x3c13('0x66')]){_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x30')]=_0x49357a;const _0x2d4b10=_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x59')];_0x4a8fd9[_0x2d4b10]['pairId']=_0x4a8fd9[_0x49357a]['id'],_0x4a8fd9[_0x49357a][_0x3c13('0x20')]=_0x4a8fd9[_0x2d4b10]['id'];}else _0x4a8fd9[_0x49357a][_0x3c13('0x121')]['startIndex']=_0x49357a,_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x30')]=_0x49357a,_0x4a8fd9[_0x49357a][_0x3c13('0x20')]=null;}_0x4a8fd9[_0x49357a]['markersStart']||(_0x4a8fd9[_0x49357a]['markersStart']=[],_0x4a8fd9[_0x49357a]['markersEnd']=[]);}}[_0x3c13('0xde')](_0x4175be,_0x3f2db9){const _0x28038c=_0x4175be['filter'](_0xce6815=>!_0xce6815['isAdded']);for(let _0x576cba=0x0;_0x576cba<_0x3f2db9['length'];_0x576cba++)_0x3f2db9[_0x576cba][_0x3c13('0x70')]&&(_0x28038c[_0x576cba][_0x3c13('0x70')]=_0x3f2db9[_0x576cba][_0x3c13('0x70')]);}[_0x3c13('0x9')](_0x226584){const _0xfdb589=JSON[_0x3c13('0x9d')](_0x226584),_0x2146a3=this['editor'][_0x3c13('0xb8')]['view'][_0x3c13('0x122')],_0x197492=new _0x2c2406(_0x2146a3,_0xfdb589[_0x3c13('0x11e')](_0x25cab3=>this[_0x3c13('0x2f')](_0x25cab3)));return this[_0x3c13('0x11b')]['data'][_0x3c13('0xce')](_0x197492);}[_0x3c13('0x2f')](_0x5bfb27){const _0x1708f3=this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')];if(_0x3c13('0x52')==typeof _0x5bfb27)return new _0x3435c4(_0x1708f3,_0x5bfb27);{const _0x4f92dc=_0x5bfb27[_0x3c13('0x117')]['map'](_0x3900f3=>this[_0x3c13('0x2f')](_0x3900f3));return new(tt[_0x5bfb27[(_0x3c13('0x66'))]]||_0x32fc8b)(_0x1708f3,_0x5bfb27[_0x3c13('0xd')],_0x5bfb27[_0x3c13('0x84')],_0x4f92dc);}}['_getDiff'](_0x2290ed,_0x5d138b=null){const _0x51adf8=this['repository'][_0x3c13('0x94')](_0x2290ed),_0x4faf85=_0x5d138b?this['repository'][_0x3c13('0x94')](_0x5d138b):null,_0x310d8d=this[_0x3c13('0x10b')](_0x51adf8,_0x4faf85),_0x340a2a=_0x310d8d[_0x310d8d[_0x3c13('0x88')]-0x1],_0x2685f1=new Map(),_0x411d3f={'model':{},'attributes':{},'changes':[]},_0x27bf96=new Set(),_0x12f1c9=new Map();for(let _0xf0ed9c=_0x310d8d[_0x3c13('0x88')]-0x1;_0xf0ed9c>=0x0;_0xf0ed9c--){const _0x45c6b2=_0x310d8d[_0xf0ed9c];for(const _0x4bf650 of Object['keys'](_0x45c6b2['diffData']))if(_0x45c6b2[_0x3c13('0x4b')][_0x4bf650][_0x3c13('0x54')]){const _0x7e676f=_0x45c6b2[_0x3c13('0x4b')][_0x4bf650][_0x3c13('0x54')];_0x7e676f[_0x3c13('0xa7')]?(_0x27bf96[_0x3c13('0x2b')](_0x4bf650),_0x12f1c9[_0x3c13('0xc')](_0x4bf650)&&_0x12f1c9[_0x3c13('0x4d')](_0x4bf650)[_0x3c13('0x75')]==_0x7e676f[_0x3c13('0x75')]?_0x12f1c9['delete'](_0x4bf650):_0x12f1c9[_0x3c13('0x9c')](_0x4bf650,_0x7e676f)):_0x12f1c9['has'](_0x4bf650)?(_0x27bf96[_0x3c13('0x1f')](_0x4bf650),_0x12f1c9['delete'](_0x4bf650)):(_0x27bf96[_0x3c13('0x2b')](_0x4bf650),_0x12f1c9[_0x3c13('0x9c')](_0x4bf650,_0x7e676f));}else _0x27bf96[_0x3c13('0x2b')](_0x4bf650);}for(const _0x40687e of _0x27bf96){const _0x3035ec=_0x12f1c9[_0x3c13('0xc')](_0x40687e)&&!_0x12f1c9[_0x3c13('0x4d')](_0x40687e)[_0x3c13('0xa7')];let _0xa0e7fe=_0x3035ec?_0x310d8d[_0x3c13('0x88')]-0x1:0x0;const _0x585513=_0x3035ec?-0x1:0x1;for(;_0x310d8d[_0xa0e7fe];){const _0x1b02ec=_0x310d8d[_0xa0e7fe];if(_0x1b02ec[_0x3c13('0x4b')][_0x40687e]){const _0x1da8ef=_0x3035ec?_0x1b02ec[_0x3c13('0x4b')][_0x40687e][_0x3c13('0x63')]:_0x1b02ec[_0x3c13('0x4b')][_0x40687e][_0x3c13('0xed')];_0x411d3f[_0x3c13('0x84')][_0x40687e]=_0x1da8ef?_0x3c5713(_0x1da8ef):{};break;}_0xa0e7fe+=_0x585513;}}for(const _0x2b84e6 of _0x310d8d){_0x2b84e6[_0x3c13('0x11c')]={};for(const _0x5024f6 of _0x2b84e6[_0x3c13('0x112')])_0x2685f1[_0x3c13('0x9c')](_0x5024f6['id'],_0x5024f6);for(const _0x11fae6 of _0x27bf96){const _0x667348=_0x2b84e6[_0x3c13('0x4b')][_0x11fae6]?_0x2b84e6[_0x3c13('0x4b')][_0x11fae6][_0x3c13('0x77')]:'[]',_0x258af4=_0x2b84e6[_0x3c13('0x4b')][_0x11fae6]?_0x2b84e6['diffData'][_0x11fae6]['deletions']:'[]';_0x2b84e6[_0x3c13('0x11c')][_0x11fae6]={'insertions':this[_0x3c13('0x9')](_0x667348),'deletions':this[_0x3c13('0x9')](_0x258af4)};}}for(const _0x58b263 of _0x27bf96){let _0x8cc95=null,_0x2b6e4d=0x0;const _0x3ce9c4=new Map(Array[_0x3c13('0x10c')](_0x51adf8[_0x3c13('0x11c')][_0x58b263][_0x3c13('0x77')]['markers'])[_0x3c13('0xc4')](([_0xdd332e])=>!_0xdd332e[_0x3c13('0xbb')](_0x3c13('0xf'))));let _0x114c49=0x0;for(const _0x5dc1e8 of _0x310d8d){const _0x108ad8=this[_0x3c13('0x78')](_0x5dc1e8[_0x3c13('0x11c')][_0x58b263][_0x3c13('0x77')]);_0x5dc1e8==_0x51adf8?(_0x8cc95=_0x108ad8,_0x2b6e4d=_0x8cc95[_0x3c13('0x88')],_0x8cc95[_0x3c13('0x6a')](_0x59218f=>{_0x59218f['id']=_0x114c49++;}),this['_processTape'](_0x8cc95)):this[_0x3c13('0xde')](_0x8cc95,_0x108ad8);const _0x384be9=_0x8cc95['filter'](_0x5c2058=>!_0x5c2058[_0x3c13('0x70')])[_0x3c13('0x11e')](_0xacce24=>_0xacce24['id']);let _0x5add90=0x0;const _0x2d3a8b=this[_0x3c13('0x78')](_0x5dc1e8['model'][_0x58b263][_0x3c13('0xb7')]);_0x2d3a8b[_0x3c13('0x6a')](_0x195518=>{_0x195518[_0x3c13('0x110')]?_0x195518['id']=_0x2b6e4d++:_0x195518['id']=_0x384be9[_0x5add90++];}),this[_0x3c13('0x46')](_0x2d3a8b),this['_setDistance'](_0x8cc95,'isAdded'),this[_0x3c13('0x21')](_0x2d3a8b,_0x3c13('0x110')),_0x5dc1e8==_0x51adf8&&this['_markMarkers'](_0x8cc95,_0x3ce9c4),_0x8cc95=this[_0x3c13('0xa9')](_0x8cc95,_0x2d3a8b),this[_0x3c13('0x7f')](_0x8cc95),this[_0x3c13('0x21')](_0x8cc95,_0x3c13('0x110'));}_0x8cc95=_0x8cc95[_0x3c13('0xc4')](_0x3f8332=>!(_0x3f8332[_0x3c13('0x70')]&&_0x3f8332[_0x3c13('0x110')]));const _0xf883f0=new Map(_0x340a2a['model'][_0x58b263]['deletions'][_0x3c13('0x2')]),_0x387679=new Set(_0x3ce9c4['keys']());for(const _0x422660 of _0xf883f0[_0x3c13('0xe3')]())_0x387679[_0x3c13('0x1f')](_0x422660);this[_0x3c13('0xae')](_0x8cc95,_0x387679),this['_fixObsoleteTags'](_0x8cc95),_0x8cc95=this[_0x3c13('0x16')](_0x8cc95),_0x8cc95=this[_0x3c13('0x4')](_0x8cc95),_0x8cc95=this[_0x3c13('0x102')](_0x8cc95);const {root:_0x545f22,changes:_0x3ef82d}=this[_0x3c13('0x1d')](_0x8cc95,_0x2685f1,_0x58b263);_0x411d3f[_0x3c13('0x11c')][_0x58b263]=_0x545f22;const _0x5089e0=_0x12f1c9[_0x3c13('0x4d')](_0x58b263);if(_0x5089e0){const _0x3bccfb=_0x2685f1[_0x3c13('0x4d')](_0x5089e0['userId']),_0x772063=new _0x164e19({'author':_0x3bccfb,'type':_0x5089e0['isAttached']?'add':_0x3c13('0x123'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x58b263});_0x3ef82d[_0x3c13('0x8d')](_0x772063),_0x411d3f['attributes'][_0x58b263][_0x3c13('0xc2')]=_0x772063['id'];}_0x411d3f['changes']=_0x411d3f[_0x3c13('0x1e')][_0x3c13('0xfc')](_0x3ef82d);}return _0x411d3f;}['_markMarkers'](_0x524302,_0x572924){for(let _0xab04a8=0x0;_0xab04a8<_0x524302['length'];_0xab04a8++)for(const [_0x32296c,_0x356d57]of _0x572924)_0x356d57[_0x3c13('0x7d')][_0x3c13('0x4e')](_0x524302[_0xab04a8][_0x3c13('0x73')])&&_0x524302[_0xab04a8][_0x3c13('0x83')]['push'](_0x32296c),_0x356d57['end'][_0x3c13('0x4e')](_0x524302[_0xab04a8][_0x3c13('0xa8')])&&_0x524302[_0xab04a8]['markersEnd'][_0x3c13('0x10a')](_0x32296c);}[_0x3c13('0xa9')](_0xab8bd0,_0x48185a){let _0x2fb85d=[],_0x156df9=0x0,_0x4a9560=0x0;for(;_0x156df9<_0xab8bd0['length']||_0x4a9560<_0x48185a[_0x3c13('0x88')];){const _0x5003ee=_0xab8bd0[_0x156df9]||{},_0x27c43d=_0x48185a[_0x4a9560]||{};if(_0x5003ee['id']==_0x27c43d['id'])_0x156df9++,_0x4a9560++,_0x2fb85d[_0x3c13('0x10a')](_0x5003ee);else{if(_0x27c43d[_0x3c13('0x110')]&&_0x5003ee[_0x3c13('0x70')]){const {commonTape:_0x2b2372,iEnd:_0x436faf,jEnd:_0x8a3324}=this['_threeWayMerge'](_0xab8bd0,_0x156df9,_0x48185a,_0x4a9560);_0x2fb85d=_0x2fb85d[_0x3c13('0xfc')](_0x2b2372),_0x156df9=_0x436faf,_0x4a9560=_0x8a3324;}else _0x27c43d[_0x3c13('0x110')]?(_0x4a9560++,_0x2fb85d['push'](_0x27c43d)):(_0x156df9++,_0x2fb85d['push'](_0x5003ee));}}return _0x2fb85d;}[_0x3c13('0xae')](_0x2683cb,_0x409f31){const _0x4f8319=[];for(let _0x256ce2=0x0;_0x256ce2<_0x2683cb['length'];_0x256ce2++){for(let _0x110570=0x0;_0x110570<_0x2683cb[_0x256ce2][_0x3c13('0x83')][_0x3c13('0x88')];_0x110570++){const _0x4770e5=_0x2683cb[_0x256ce2]['markersStart'][_0x110570];if(!_0x409f31[_0x3c13('0xc')](_0x4770e5))continue;const {group:_0x50de9c,type:_0x577c47,authorId:_0x175dfe}=_0x54daf3(_0x4770e5);_0x3c13('0x109')!=_0x50de9c||_0x3c13('0x3')!=_0x577c47&&_0x3c13('0x3b')!=_0x577c47||(_0x4f8319['unshift']({'type':_0x577c47,'name':_0x4770e5,'userId':_0x175dfe}),_0x2683cb[_0x256ce2]['markersStart'][_0x3c13('0x61')](_0x110570,0x1),_0x110570--);}_0x31f2f6(_0x2683cb[_0x256ce2]);for(let _0x6fa875=0x0;_0x6fa875<_0x2683cb[_0x256ce2][_0x3c13('0x9a')][_0x3c13('0x88')];_0x6fa875++){const _0x3c2058=_0x2683cb[_0x256ce2][_0x3c13('0x9a')][_0x6fa875];if(!_0x409f31[_0x3c13('0xc')](_0x3c2058))continue;const {group:_0x32a2e0,type:_0x1fe9ef}=_0x54daf3(_0x3c2058);if('revision-suggestion'!=_0x32a2e0||_0x3c13('0x3')!=_0x1fe9ef&&_0x3c13('0x3b')!=_0x1fe9ef)continue;_0x2683cb[_0x256ce2][_0x3c13('0x9a')][_0x3c13('0x61')](_0x6fa875,0x1),_0x6fa875--;const _0x566506=_0x4f8319[_0x3c13('0x4c')](_0x364e36=>_0x364e36[_0x3c13('0xd')]==_0x3c2058);_0x566506>-0x1&&_0x4f8319['splice'](_0x566506,0x1);}}function _0x54daf3(_0xef81fb){const _0x1332ab=_0xef81fb['split'](':');return{'group':_0x1332ab[0x0],'type':_0x1332ab[0x1],'subType':_0x1332ab['length']>=0x5?_0x1332ab[0x2]:null,'id':_0x1332ab['length']<0x5?_0x1332ab[0x2]:_0x1332ab[0x3],'authorId':_0x1332ab[_0x3c13('0x88')]<0x5?_0x1332ab[0x3]:_0x1332ab[0x4],'markerCount':0x6==_0x1332ab[_0x3c13('0x88')]?_0x1332ab[0x5]:null};}function _0x31f2f6(_0x34a75c){for(let _0x201f52=0x0;_0x201f52<_0x4f8319[_0x3c13('0x88')];_0x201f52++){if(_0x34a75c[_0x3c13('0x70')]&&'insertion'==_0x4f8319[_0x201f52][_0x3c13('0x66')])return _0x34a75c[_0x3c13('0x8a')]=_0x4f8319[_0x201f52],void delete _0x34a75c[_0x3c13('0x70')];if(!_0x34a75c[_0x3c13('0x70')]&&!_0x34a75c['isRemoved']&&'deletion'==_0x4f8319[_0x201f52][_0x3c13('0x66')])return void(_0x34a75c[_0x3c13('0x8c')]=_0x4f8319[_0x201f52]);}}}['_setDistance'](_0x37ef8c,_0x2a3542){let _0x106750=0x0,_0x732499=!0x1;const _0x223da2=new Map();for(const _0x212ca7 of _0x37ef8c)_0x212ca7[_0x2a3542]?_0x732499&&(_0x106750++,_0x732499=!0x1):(_0x106750++,_0x732499=!0x0),_0x223da2['set'](_0x212ca7['id'],_0x106750);for(let _0x2a534e=0x0;_0x2a534e<_0x37ef8c[_0x3c13('0x88')];_0x2a534e++){if(_0x3c13('0x110')==_0x2a3542&&_0x37ef8c[_0x2a534e][_0x3c13('0x70')]||'isAdded'==_0x2a3542&&_0x37ef8c[_0x2a534e][_0x3c13('0x110')])continue;if('text'==_0x37ef8c[_0x2a534e][_0x3c13('0x66')]){_0x37ef8c[_0x2a534e][_0x3c13('0x89')]=0x0;continue;}const _0x4fa4cd=_0x223da2[_0x3c13('0x4d')](_0x37ef8c[_0x2a534e]['pairId']),_0x3f2709=_0x223da2['get'](_0x37ef8c[_0x2a534e]['id']);_0x37ef8c[_0x2a534e][_0x3c13('0x89')]=_0x4fa4cd-_0x3f2709;}}[_0x3c13('0x10b')](_0x81a6f6,_0x4cc760,_0x29e189=!0x1){const _0xb4793=[];let _0x54a2fd=this[_0x3c13('0xb')][_0x3c13('0x64')](_0x81a6f6),_0x29fd0c=this[_0x3c13('0xb')][_0x3c13('0x64')](_0x4cc760);for(-0x1==_0x29fd0c&&(_0x29fd0c=this[_0x3c13('0xb')]['_revisions']['length'],_0x29e189=!0x1);_0x54a2fd<_0x29fd0c;)_0xb4793[_0x3c13('0x10a')](this['repository']['getRevision'](_0x54a2fd)),_0x54a2fd++;return _0x29e189&&_0xb4793[_0x3c13('0x10a')](this[_0x3c13('0xb')][_0x3c13('0x94')](_0x54a2fd)),_0xb4793;}[_0x3c13('0x5d')](_0x5d1323,_0x5625ec,_0x23f992,_0xec1c26){const _0xe234d3=this[_0x3c13('0x11b')]['model'][_0x3c13('0xcd')];let _0x55e9d4=_0x5625ec;for(;_0x5d1323[_0x55e9d4]&&_0x5d1323[_0x55e9d4][_0x3c13('0x70')];)_0x55e9d4++;let _0x1215bd=_0xec1c26;for(;_0x23f992[_0x1215bd]&&_0x23f992[_0x1215bd][_0x3c13('0x110')];)_0x1215bd++;_0x2a7497(_0x5d1323,_0x5625ec,_0x55e9d4),_0x2a7497(_0x23f992,_0xec1c26,_0x1215bd);const _0x3a0751=_0x23f992[_0x3c13('0x99')](_0xec1c26,_0x1215bd)[_0x3c13('0xfc')](_0x5d1323[_0x3c13('0x99')](_0x5625ec,_0x55e9d4));return _0x3a0751['sort']((_0x900d5,_0x5d73c5)=>_0x900d5[_0x3c13('0xd0')]!=_0x5d73c5[_0x3c13('0xd0')]?_0x900d5[_0x3c13('0xd0')]-_0x5d73c5['side']:_0x900d5[_0x3c13('0xea')]!=_0x5d73c5[_0x3c13('0xea')]?_0x900d5[_0x3c13('0xea')]-_0x5d73c5[_0x3c13('0xea')]:_0x900d5[_0x3c13('0x89')]!=_0x5d73c5[_0x3c13('0x89')]?_0x5d73c5[_0x3c13('0x89')]-_0x900d5['distance']:!!_0x900d5[_0x3c13('0x70')]!=!!_0x5d73c5['isAdded']?-0x1==_0x900d5['side']||0x0==_0x900d5['side']?_0x900d5['isAdded']?-0x1:0x1:_0x900d5['isAdded']?0x1:-0x1:_0x900d5[_0x3c13('0xad')]-_0x5d73c5[_0x3c13('0xad')]),{'commonTape':_0x3a0751,'iEnd':_0x55e9d4,'jEnd':_0x1215bd};function _0x2a7497(_0x3a031a,_0x49c0bb,_0x169ca9){let _0x103ba4=-0x1,_0x55504d=Number[_0x3c13('0x86')],_0x79d3ae=!0x0;for(let _0xe6d132=_0x49c0bb;_0xe6d132<_0x169ca9;_0xe6d132++)if(_0xe234d3[_0x3c13('0xf4')](_0x3a031a[_0xe6d132]['item'])||(_0x79d3ae=!0x1),_0x3a031a[_0xe6d132]['item']['startIndex']<_0x49c0bb&&(_0x103ba4=_0xe6d132),_0x3a031a[_0xe6d132]['item'][_0x3c13('0x30')]>=_0x169ca9){_0x55504d=_0xe6d132;break;}_0x79d3ae&&(_0x103ba4=_0x169ca9-0x1);for(let _0x50a084=_0x49c0bb;_0x50a084<_0x169ca9;_0x50a084++)_0x3a031a[_0x50a084][_0x3c13('0xd0')]=_0x50a084<=_0x103ba4?-0x1:_0x50a084<_0x55504d?0x0:0x1,_0x3a031a[_0x50a084]['index']=_0x50a084;let _0x33458=0x0;for(let _0x561850=_0x49c0bb;_0x561850<=_0x103ba4;_0x561850++)0x0==_0x3a031a[_0x561850]['distance']?_0x3a031a[_0x561850][_0x3c13('0xea')]=_0x33458:(_0x33458++,_0x3a031a[_0x561850]['level']=_0x33458,_0x33458++);for(let _0x4f916e=_0x49c0bb;_0x4f916e<_0x169ca9;_0x4f916e++)0x0==_0x3a031a[_0x4f916e][_0x3c13('0xd0')]&&(_0x3a031a[_0x4f916e]['level']=_0x33458);_0x33458=0x0;for(let _0x14f0e2=_0x169ca9-0x1;_0x14f0e2>=_0x55504d;_0x14f0e2--)0x0==_0x3a031a[_0x14f0e2]['distance']?_0x3a031a[_0x14f0e2]['level']=_0x33458:(_0x33458--,_0x3a031a[_0x14f0e2]['level']=_0x33458,_0x33458--);}}[_0x3c13('0xf5')](_0xf3d06e){const _0x1a60ed=new Map(),_0x54c779=this[_0x3c13('0x11b')]['model'][_0x3c13('0xcd')];for(let _0x2e7ce5=0x1;_0x2e7ce5<_0xf3d06e[_0x3c13('0x88')];_0x2e7ce5++){let _0x12f644,_0x5277ed,_0x2652a8;const _0x32c975=_0xf3d06e[_0x2e7ce5],_0x5bb404=_0xf3d06e[_0x2e7ce5-0x1];if('text'==_0x32c975[_0x3c13('0x66')])continue;if(_0x32c975[_0x3c13('0x66')]!=_0x5bb404[_0x3c13('0x66')])continue;if(!_0x54c779[_0x3c13('0x91')](_0x5bb404[_0x3c13('0x121')])||_0x54c779['isLimit'](_0x5bb404['item']))continue;if(!_0x54c779[_0x3c13('0x91')](_0x32c975[_0x3c13('0x121')])||_0x54c779[_0x3c13('0x10e')](_0x32c975['item']))continue;if((_0xf3d06e[_0x2e7ce5][_0x3c13('0x70')]||_0xf3d06e[_0x2e7ce5]['isAddSuggestion'])&&_0xf3d06e[_0x2e7ce5-0x1][_0x3c13('0x110')])_0x12f644=_0xf3d06e[_0x2e7ce5],_0x5277ed=_0xf3d06e[_0x2e7ce5-0x1],_0x2652a8=_0x2e7ce5-0x1;else{if(!_0xf3d06e[_0x2e7ce5][_0x3c13('0x110')]||!_0xf3d06e[_0x2e7ce5-0x1][_0x3c13('0x70')]&&!_0xf3d06e[_0x2e7ce5-0x1][_0x3c13('0x8a')])continue;_0x12f644=_0xf3d06e[_0x2e7ce5-0x1],_0x5277ed=_0xf3d06e[_0x2e7ce5],_0x2652a8=_0x2e7ce5;}const _0x15494b=_0x12f644[_0x3c13('0xea')]==_0x5277ed[_0x3c13('0xea')],_0x101c5b=Math[_0x3c13('0xd1')](_0x12f644['level'])<Math[_0x3c13('0xd1')](_0x5277ed[_0x3c13('0xea')])&&0x0==_0x5277ed[_0x3c13('0x89')];(_0x15494b||_0x101c5b)&&(_0x1a60ed[_0x3c13('0x9c')](_0x5277ed['id'],_0x12f644['id']),_0xf3d06e['splice'](_0x2652a8,0x1),_0x2e7ce5--,_0x12f644[_0x3c13('0x70')]=!0x1);}for(let _0x196ae7=0x0;_0x196ae7<_0xf3d06e[_0x3c13('0x88')];_0x196ae7++)_0x1a60ed[_0x3c13('0xc')](_0xf3d06e[_0x196ae7]['pairId'])&&(_0xf3d06e[_0x196ae7]['pairId']=_0x1a60ed['get'](_0xf3d06e[_0x196ae7][_0x3c13('0x20')]));}[_0x3c13('0x16')](_0xa13d98){const _0x3fdc26=new Set(_0xa13d98[_0x3c13('0x11e')](_0x4151fd=>_0x4151fd['id']));for(let _0x591a19=0x0;_0x591a19<_0xa13d98[_0x3c13('0x88')];_0x591a19++)_0x3fdc26[_0x3c13('0xc')](_0xa13d98[_0x591a19][_0x3c13('0x20')])||0x0==_0xa13d98[_0x591a19][_0x3c13('0x89')]||(_0xa13d98[_0x591a19]['isIncorrect']=!0x0);return _0xa13d98[_0x3c13('0xc4')](_0x36b8d6=>!_0x36b8d6['isIncorrect']);}[_0x3c13('0x4')](_0x1f3c8a){const _0x49e38a=new Set();for(let _0x3cc39c=0x0;_0x3cc39c<_0x1f3c8a[_0x3c13('0x88')];_0x3cc39c++){if(_0x49e38a[_0x3c13('0xc')](_0x1f3c8a[_0x3cc39c]['id'])&&_0x1f3c8a[_0x3cc39c]['isRemoved']&&(_0x1f3c8a[_0x3cc39c][_0x3c13('0xec')]=!0x0),_0x1f3c8a[_0x3cc39c]['isIncorrect'])continue;if(0x0==_0x1f3c8a[_0x3cc39c][_0x3c13('0x89')])continue;if(_0x3c13('0xbc')!=_0x1f3c8a[_0x3cc39c][_0x3c13('0x66')])continue;if(null==_0x1f3c8a[_0x3cc39c][_0x3c13('0x20')])continue;let _0x2aaa5b=_0x3cc39c+0x1,_0x248ff3=0x0;for(;_0x1f3c8a[_0x2aaa5b]['id']!=_0x1f3c8a[_0x3cc39c][_0x3c13('0x20')];)_0x3c13('0xbc')==_0x1f3c8a[_0x2aaa5b][_0x3c13('0x66')]?_0x248ff3++:_0x3c13('0x53')==_0x1f3c8a[_0x2aaa5b]['type']&&_0x248ff3--,_0x2aaa5b++;if(0x0!=_0x248ff3){if(_0x1f3c8a[_0x3cc39c]['isRemoved'])_0x1f3c8a[_0x3cc39c][_0x3c13('0xec')]=!0x0;else for(;_0x2aaa5b!=_0x3cc39c;)_0x1f3c8a[_0x2aaa5b][_0x3c13('0x110')]&&0x0!=_0x1f3c8a[_0x2aaa5b][_0x3c13('0x89')]&&(_0x1f3c8a[_0x2aaa5b][_0x3c13('0xec')]=!0x0,_0x49e38a[_0x3c13('0x2b')](_0x1f3c8a[_0x2aaa5b][_0x3c13('0x20')])),_0x2aaa5b--;}}return _0x1f3c8a[_0x3c13('0xc4')](_0x2d7546=>!_0x2d7546['isIncorrect']);}[_0x3c13('0x102')](_0x524f55){const _0x30b72e=this['editor'][_0x3c13('0x11c')][_0x3c13('0xcd')];for(let _0x5ba0d1=0x0;_0x5ba0d1<_0x524f55[_0x3c13('0x88')];_0x5ba0d1++){if(!(_0x524f55[_0x5ba0d1][_0x3c13('0x70')]||_0x524f55[_0x5ba0d1][_0x3c13('0x8a')]||_0x524f55[_0x5ba0d1][_0x3c13('0x110')]||_0x524f55[_0x5ba0d1][_0x3c13('0x8c')]))continue;if(0x0==_0x524f55[_0x5ba0d1]['distance'])continue;const _0x1c50d0=_0x524f55[_0x5ba0d1]['item'];_0x30b72e['isBlock'](_0x1c50d0)||_0x30b72e['isLimit'](_0x1c50d0)||(_0x524f55[_0x5ba0d1]['isAdded']&&delete _0x524f55[_0x5ba0d1]['isAdded'],_0x524f55[_0x5ba0d1][_0x3c13('0x8a')]&&delete _0x524f55[_0x5ba0d1]['isAddSuggestion'],_0x524f55[_0x5ba0d1][_0x3c13('0x8c')]&&delete _0x524f55[_0x5ba0d1]['isRemoveSuggestion'],_0x524f55[_0x5ba0d1][_0x3c13('0x110')]&&(_0x524f55[_0x5ba0d1][_0x3c13('0xec')]=!0x0));}return _0x524f55[_0x3c13('0xc4')](_0x408795=>!_0x408795[_0x3c13('0xec')]);}[_0x3c13('0x1d')](_0x214641,_0x390b9a,_0x79f2bb){const _0x2bea07=new _0x357518(),_0xdb1296=[],_0x39d725=new Map(),_0x36237b=this['editor']['model'],_0xcfef43=_0x36237b[_0x3c13('0xcd')],_0x31b189=[_0x2bea07],_0x28d500={},_0x502170={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e8978=null;const _0x1ad802=[0x0];for(let _0x1fc11a=0x0;_0x1fc11a<_0x214641[_0x3c13('0x88')];_0x1fc11a++){let _0x12db9e,_0x1491ab;if(_0x3c13('0xbc')===_0x214641[_0x1fc11a][_0x3c13('0x66')]){_0x12db9e=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802);const _0x438c87=new _0x5020ed(_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0xd')],_0x214641[_0x1fc11a][_0x3c13('0x121')]['getAttributes']());_0x31b189[0x0][_0x3c13('0x39')](_0x438c87),_0x1ad802[_0x3c13('0x10a')](0x0),_0x31b189[_0x3c13('0x8d')](_0x438c87),_0x1491ab=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802),_0x5e8978=null;}else{if(_0x3c13('0x53')===_0x214641[_0x1fc11a][_0x3c13('0x66')])_0x31b189[_0x3c13('0xeb')](),_0x12db9e=_0x36237b['createPositionFromPath'](_0x2bea07,_0x1ad802),_0x1ad802[_0x3c13('0x18')](),_0x1ad802[_0x1ad802['length']-0x1]++,_0x1491ab=_0x36237b['createPositionFromPath'](_0x2bea07,_0x1ad802),_0x5e8978=null;else{if(_0x12db9e=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802),_0x5e8978&&_0x68f84d(_0x5e8978,_0x214641[_0x1fc11a]['item']))_0x5e8978['_data']+=_0x214641[_0x1fc11a]['item']['data'];else{const _0x5b276f=new _0x57709f(_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0xdb')],_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0xff')]());_0x31b189[0x0][_0x3c13('0x39')](_0x5b276f),_0x5e8978=_0x5b276f;}_0x1ad802[_0x1ad802[_0x3c13('0x88')]-0x1]+=_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0x24')],_0x1491ab=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802);}}for(const _0x294232 of _0x214641[_0x1fc11a][_0x3c13('0x83')])_0x39d725['set'](_0x294232,{'start':_0x12db9e,'end':null});_0x499905(_0x3c13('0x8c'),_0x1fc11a,_0x12db9e,_0x1491ab),_0x499905(_0x3c13('0x8a'),_0x1fc11a,_0x12db9e,_0x1491ab),_0x499905(_0x3c13('0x110'),_0x1fc11a,_0x12db9e,_0x1491ab),_0x499905(_0x3c13('0x70'),_0x1fc11a,_0x12db9e,_0x1491ab);for(const _0x24586f of _0x214641[_0x1fc11a][_0x3c13('0x9a')]){_0x39d725['get'](_0x24586f)[_0x3c13('0x79')]=_0x1491ab;}}for(const [_0x5d290f,_0x47f17d]of _0x39d725){const _0x5ce116=this[_0x3c13('0x11b')][_0x3c13('0x11c')][_0x3c13('0xcc')](_0x47f17d[_0x3c13('0x7d')],_0x47f17d[_0x3c13('0x79')]);_0x2bea07[_0x3c13('0x2')][_0x3c13('0x9c')](_0x5d290f,_0x5ce116);}return _0xdb1296[_0x3c13('0x72')]((_0x1ffab0,_0x1a776d)=>{const _0x3d7fa4=_0x2bea07[_0x3c13('0x2')]['get'](_0x3c13('0xf')+_0x1ffab0['id']),_0x37dd44=_0x2bea07[_0x3c13('0x2')][_0x3c13('0x4d')](_0x3c13('0xf')+_0x1a776d['id']);return _0x3d7fa4[_0x3c13('0x7d')][_0x3c13('0xcf')](_0x37dd44[_0x3c13('0x7d')])?-0x1:_0x3d7fa4[_0x3c13('0x7d')][_0x3c13('0x115')](_0x37dd44[_0x3c13('0x7d')])?0x1:_0x3d7fa4[_0x3c13('0x79')][_0x3c13('0xcf')](_0x37dd44['end'])?-0x1:_0x3d7fa4['end'][_0x3c13('0x115')](_0x37dd44[_0x3c13('0x79')])?0x1:'add'===_0x1ffab0[_0x3c13('0x66')]?-0x1:0x1;}),{'root':_0x2bea07,'changes':_0xdb1296};function _0x499905(_0x171568,_0x4da63b,_0x1ca7a0,_0x491aae){const _0x15d460=!!_0x214641[_0x4da63b][_0x171568],_0x59ced9=_0x15d460?_0x214641[_0x4da63b][_0x171568][_0x3c13('0x75')]:null,_0x27ac00=_0x4da63b===_0x214641[_0x3c13('0x88')]-0x1,_0x392551=_0x502170[_0x171568][0x0],_0x4d7a32=_0xcfef43[_0x3c13('0x11')](_0x214641[_0x4da63b][_0x3c13('0x121')]);!_0x28d500[_0x171568]&&_0x15d460?_0x28d500[_0x171568]={'start':_0x1ca7a0,'tapeItem':_0x214641[_0x4da63b],'userId':_0x59ced9,'type':_0x171568}:_0x28d500[_0x171568]&&!_0x15d460?(_0x28d500[_0x171568]['end']=_0x1ca7a0,_0x23a990(_0x28d500[_0x171568]),_0x28d500[_0x171568]=null):_0x28d500[_0x171568]&&_0x15d460&&_0x28d500[_0x171568][_0x3c13('0x75')]!==_0x59ced9&&(_0x28d500[_0x171568][_0x3c13('0x79')]=_0x1ca7a0,_0x392551&&_0x392551[_0x3c13('0x75')]===_0x28d500[_0x171568]['userId']||_0x23a990(_0x28d500[_0x171568]),_0x28d500[_0x171568]={'start':_0x1ca7a0,'tapeItem':_0x214641[_0x4da63b],'userId':_0x59ced9,'type':_0x171568}),_0x28d500[_0x171568]&&_0x4d7a32&&('elementStart'!==_0x214641[_0x4da63b][_0x3c13('0x66')]||_0x392551&&_0x392551[_0x3c13('0x75')]===_0x59ced9||_0x502170[_0x171568][_0x3c13('0x8d')]({'userId':_0x59ced9,'object':_0x214641[_0x4da63b][_0x3c13('0x121')],'change':_0x28d500[_0x171568]}),_0x3c13('0x53')===_0x214641[_0x4da63b][_0x3c13('0x66')]&&_0x392551&&_0x392551[_0x3c13('0x9f')]===_0x214641[_0x4da63b][_0x3c13('0x121')]&&(_0x502170[_0x171568][_0x3c13('0xeb')](),_0x28d500[_0x171568]=_0x392551[_0x3c13('0x125')])),_0x28d500[_0x171568]&&_0x27ac00&&(_0x28d500[_0x171568][_0x3c13('0x79')]=_0x491aae,_0x23a990(_0x28d500[_0x171568]),_0x28d500[_0x171568]=null);}function _0x23a990({start:_0xa29ba2,end:_0x1003e3,tapeItem:_0xd89442,userId:_0x4e455f,type:_0x403f39}){const _0x1aaee0=_0xd89442[_0x3c13('0x121')],_0x36a870=_0x36237b['schema'][_0x3c13('0x91')](_0x1aaee0)&&!_0x36237b[_0x3c13('0xcd')][_0x3c13('0x10e')](_0x1aaee0),_0x5e08eb=_0xa29ba2[_0x3c13('0xac')]==_0x1003e3[_0x3c13('0xe4')]&&_0x1003e3[_0x3c13('0x80')];if(_0x36a870&&_0x5e08eb)return;const _0x381378=_0x36237b[_0x3c13('0xcc')](_0xa29ba2,_0x1003e3),_0x39c276=_0x390b9a['get'](_0x4e455f),_0x92de53=new _0x164e19({'author':_0x39c276,'type':_0x3c13('0x70')==_0x403f39||_0x3c13('0x8a')==_0x403f39?'add':_0x3c13('0x123'),'data':{'isSuggestion':_0x3c13('0x8a')==_0x403f39||_0x3c13('0x8c')==_0x403f39},'createdAt':new Date(),'rootName':_0x79f2bb});_0xdb1296[_0x3c13('0x10a')](_0x92de53),_0x2bea07[_0x3c13('0x2')][_0x3c13('0x9c')](_0x3c13('0xf')+_0x92de53['id'],_0x381378);}function _0x68f84d(_0x4c082f,_0x41c5b9){const _0x3b306c=_0x4c082f[_0x3c13('0xff')](),_0x2d0c64=_0x41c5b9[_0x3c13('0xff')]();for(const _0x343001 of _0x3b306c){if(_0x343001[0x1]!==_0x41c5b9[_0x3c13('0xd4')](_0x343001[0x0]))return!0x1;_0x2d0c64[_0x3c13('0x3a')]();}return _0x2d0c64[_0x3c13('0x3a')]()[_0x3c13('0x2e')];}}[_0x3c13('0x69')](){this[_0x3c13('0x11b')]['conversion']['for'](_0x3c13('0xba'))['dataToMarker']({'view':'revision'}),this[_0x3c13('0x11b')][_0x3c13('0x6d')]['for']('editingDowncast')[_0x3c13('0x6e')]({'model':'revision','view':_0x3adeb8=>{const _0x2cda8b=_0x3adeb8['markerName']['split'](':')[0x1],_0x5a190e=this[_0x3c13('0xc1')](_0x2cda8b);if(!_0x5a190e)return null;const _0x10b133=_0x3c13('0x2b')==_0x5a190e[_0x3c13('0x66')]?_0x3c13('0x3'):_0x3c13('0x3b'),_0x5acd29=['ck-suggestion-marker',_0x3c13('0x6f')+_0x10b133];return _0x5a190e[_0x3c13('0xdb')][_0x3c13('0xe6')]&&_0x5acd29['push'](_0x3c13('0x6f')+_0x10b133+_0x3c13('0xda')),this[_0x3c13('0x43')]==_0x5a190e&&_0x5acd29[_0x3c13('0x10a')](_0x3c13('0x5e')),{'classes':_0x5acd29,'attributes':{'data-change-id':_0x2cda8b}};}}),this[_0x3c13('0x11b')][_0x3c13('0x6d')][_0x3c13('0x0')](_0x3c13('0xba'))[_0x3c13('0x2b')](_0x3a33e1=>{_0x3a33e1['on'](_0x3c13('0x2d'),(_0x482e24,_0x5ccf94,_0x53130e)=>{const _0x4306bd=_0x5ccf94[_0x3c13('0x12')][_0x3c13('0x28')](0x0);if(!_0x4306bd||!_0x4306bd['is']('element','code'))return;if(!_0x53130e[_0x3c13('0x106')][_0x3c13('0xd7')](_0x4306bd,{'attributes':[_0x3c13('0x7c'),_0x3c13('0xdc')]}))return;const _0x35d4af=_0x5ccf94['modelRange'][_0x3c13('0x7d')]['nodeAfter'];_0x53130e[_0x3c13('0xa4')][_0x3c13('0xb1')](_0x3c13('0x7c'),_0x4306bd[_0x3c13('0xd4')]('vid_start'),_0x35d4af),_0x53130e[_0x3c13('0xa4')]['setAttribute']('vid_end',_0x4306bd[_0x3c13('0xd4')](_0x3c13('0xdc')),_0x35d4af);},{'priority':_0x3c13('0x37')});}),this['editor'][_0x3c13('0x6d')][_0x3c13('0x0')](_0x3c13('0xba'))[_0x3c13('0x2b')](_0x27df71=>{_0x27df71['on'](_0x3c13('0xb0'),(_0x4d871f,_0xf42f27,_0xc962fa)=>{if(!_0xc962fa[_0x3c13('0x106')][_0x3c13('0xd7')](_0xf42f27[_0x3c13('0x12')],{'attributes':[_0x3c13('0x7c'),_0x3c13('0xdc')]}))return;if(_0xf42f27[_0x3c13('0x76')]['isCollapsed'])return;const _0x1583f0=_0xf42f27[_0x3c13('0x76')][_0x3c13('0x7d')][_0x3c13('0xac')];_0x1583f0[_0x3c13('0xa3')](_0x3c13('0x7c'))||_0x1583f0['hasAttribute'](_0x3c13('0x50'))||(_0xc962fa[_0x3c13('0xa4')][_0x3c13('0xb1')](_0x3c13('0x7c'),_0xf42f27[_0x3c13('0x12')][_0x3c13('0xd4')](_0x3c13('0x7c')),_0x1583f0),_0xc962fa['writer'][_0x3c13('0xb1')](_0x3c13('0xdc'),_0xf42f27['viewItem'][_0x3c13('0xd4')]('vid_end'),_0x1583f0));},{'priority':'low'});}),this['editor'][_0x3c13('0x6d')]['for'](_0x3c13('0xba'))['elementToAttribute']({'view':{'name':_0x3c13('0x26'),'attributes':{'vid':!0x0}},'model':{'key':_0x3c13('0x50'),'value':_0x1850c4=>_0x1850c4[_0x3c13('0xd4')](_0x3c13('0x50'))}}),this[_0x3c13('0x11b')]['model'][_0x3c13('0xcd')]['on']('checkAttribute',(_0x4279bf,[,_0x2819cb])=>{[_0x3c13('0x7c'),_0x3c13('0xdc'),'vid']['includes'](_0x2819cb)&&(_0x4279bf[_0x3c13('0x58')]=!0x0,_0x4279bf['stop']());},{'priority':_0x3c13('0x119')}),this['editor']['conversion'][_0x3c13('0x0')]('dataDowncast')[_0x3c13('0x2b')](_0x27d7b9=>{_0x27d7b9['on']('attribute:vid',(_0x30b35f,_0x2b85ec,_0x27c2b9)=>{if('\x20'!=_0x2b85ec[_0x3c13('0x121')][_0x3c13('0xdb')]||_0x2b85ec[_0x3c13('0x121')][_0x3c13('0xe4')][_0x3c13('0x3d')]>0x1)return;if(!_0x27c2b9[_0x3c13('0x106')][_0x3c13('0xd7')](_0x2b85ec['item'],_0x30b35f[_0x3c13('0xd')]))return;const _0x46259d=_0x27c2b9[_0x3c13('0xa4')],_0x194ff7=_0x27c2b9[_0x3c13('0x6c')][_0x3c13('0x101')](_0x2b85ec[_0x3c13('0x31')]);_0x46259d[_0x3c13('0x36')](_0x194ff7,_0x46259d[_0x3c13('0x3c')](_0x3c13('0x26')));});}),this[_0x3c13('0x11b')]['conversion'][_0x3c13('0x0')]('dataDowncast')[_0x3c13('0x113')]({'model':_0x3c13('0xb9')}),this['editor']['editing'][_0x3c13('0x48')]['on'](_0x3c13('0x3e'),function(_0x81c7f7){const _0x5f05e5=_0x81c7f7[_0x3c13('0x8f')]['get'](_0x3c13('0xd3'));return(_0x28ba29,_0x26396e,_0x29efc9)=>{const _0x2abb92=_0x26396e[_0x3c13('0x7a')][_0x3c13('0xb6')](':')[0x1],_0x563404=_0x5f05e5[_0x3c13('0xc1')](_0x2abb92);if(!_0x563404)return null;const _0x2b9fa4='add'==_0x563404['type']?'split':_0x3c13('0x7');if(!_0x29efc9[_0x3c13('0x106')][_0x3c13('0x38')](_0x26396e[_0x3c13('0xb2')],_0x28ba29[_0x3c13('0xd')]))return;const _0x285456=_0x26396e[_0x3c13('0xb2')][_0x3c13('0xd9')](),_0x34067b=_0x26396e[_0x3c13('0xb2')][_0x3c13('0x7d')],_0x2412c5=_0x81c7f7[_0x3c13('0x11c')][_0x3c13('0xcd')];let _0x5ee645=null,_0xee736a=null,_0x68472a=!0x1,_0x31a5cb=!0x1;for(const _0x47baaa of _0x285456){const _0x2e9317=_0x47baaa['item'];_0x68472a=_0x68472a||_0x2412c5['isContent'](_0x2e9317);const _0x182c37=_0x29efc9[_0x3c13('0x6c')][_0x3c13('0xa0')](_0x2e9317);if(_0x182c37&&_0x182c37[_0x3c13('0xd6')]('addHighlight'))return;_0x3c13('0x53')==_0x47baaa[_0x3c13('0x66')]&&(_0x2412c5[_0x3c13('0x91')](_0x2e9317)&&!_0x2412c5[_0x3c13('0x10e')](_0x2e9317)&&(_0x2e9317[_0x3c13('0x14')]||_0x34067b[_0x3c13('0x1b')]?_0x5ee645&&_0x5ee645[_0x3c13('0xe4')]==_0x2e9317||(_0x5ee645=_0x2e9317,_0x5e58cd(_0x47baaa['previousPosition']),_0x31a5cb=!0x0):_0xee736a=_0xee736a||_0x47baaa[_0x3c13('0x73')]));}function _0x5e58cd(_0x1a27ac){const _0x50b15a=_0x29efc9[_0x3c13('0xa4')][_0x3c13('0x74')]('span',{'class':_0x3c13('0x6f')+_0x2b9fa4}),_0x47d512=_0x29efc9['mapper'][_0x3c13('0x7e')](_0x1a27ac);_0x563404['data'][_0x3c13('0xe6')]&&_0x29efc9[_0x3c13('0xa4')][_0x3c13('0x11f')](_0x3c13('0x6f')+_0x2b9fa4+'-new',_0x50b15a),_0x5f05e5['activeChange']==_0x563404&&_0x29efc9[_0x3c13('0xa4')][_0x3c13('0x11f')]('ck-suggestion-marker--active',_0x50b15a),_0x29efc9['writer'][_0x3c13('0xc6')](_0x47d512,_0x50b15a),_0x29efc9['mapper'][_0x3c13('0x81')](_0x50b15a,_0x26396e[_0x3c13('0x7a')]);}_0x68472a||_0x31a5cb||!_0xee736a||_0x5e58cd(_0xee736a);};}(this[_0x3c13('0x11b')]),{'priority':_0x3c13('0x42')}),this['editor'][_0x3c13('0xb8')]['downcastDispatcher']['on'](_0x3c13('0x4a'),(_0x35ddb2,_0x4791fb,_0x350e8f)=>{const _0x28f4a1=_0x350e8f[_0x3c13('0x6c')][_0x3c13('0x11d')](_0x4791fb[_0x3c13('0x7a')]);if(_0x28f4a1)for(const _0xb1ab8a of _0x28f4a1)(_0xb1ab8a[_0x3c13('0xee')]('ck-suggestion-marker-split')||_0xb1ab8a[_0x3c13('0xee')](_0x3c13('0x57')))&&(_0x350e8f[_0x3c13('0x6c')][_0x3c13('0x17')](_0xb1ab8a,_0x4791fb[_0x3c13('0x7a')]),_0x350e8f[_0x3c13('0xa4')][_0x3c13('0x123')](_0xb1ab8a));},{'priority':_0x3c13('0x42')}),this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0x48')]['on']('addMarker:revision',(_0x3864a3,_0x58d043,_0x5bd1f5)=>{const _0x3470cf=_0x58d043[_0x3c13('0x7a')][_0x3c13('0xb6')](':')[0x1],_0x56e8b6=this[_0x3c13('0xc1')](_0x3470cf);if(!_0x56e8b6)return null;const _0x17a961=_0x3c13('0x2b')==_0x56e8b6['type']?'split':_0x3c13('0x7');if(_0x5bd1f5['consumable'][_0x3c13('0x38')](_0x58d043[_0x3c13('0xb2')],_0x3864a3[_0x3c13('0xd')]))for(const _0x5c6026 of _0x58d043[_0x3c13('0xb2')]['getItems']()){if(!_0x5c6026['is']('element',_0x3c13('0xbe')))continue;const _0x3eab0c=_0x5bd1f5[_0x3c13('0xa4')][_0x3c13('0x74')](_0x3c13('0x26'),{'class':_0x3c13('0x6f')+_0x17a961}),_0x443c17=_0x5bd1f5[_0x3c13('0x6c')][_0x3c13('0x7e')](this[_0x3c13('0x11b')][_0x3c13('0x11c')]['createPositionBefore'](_0x5c6026));_0x56e8b6[_0x3c13('0xdb')][_0x3c13('0xe6')]&&_0x5bd1f5[_0x3c13('0xa4')][_0x3c13('0x11f')](_0x3c13('0x6f')+_0x17a961+_0x3c13('0xda'),_0x3eab0c),this['activeChange']==_0x56e8b6&&_0x5bd1f5[_0x3c13('0xa4')][_0x3c13('0x11f')](_0x3c13('0x5e'),_0x3eab0c),_0x5bd1f5[_0x3c13('0xa4')]['insert'](_0x443c17,_0x3eab0c),_0x5bd1f5['mapper'][_0x3c13('0x81')](_0x3eab0c,_0x58d043[_0x3c13('0x7a')]);}},{'priority':'high'}),this['editor'][_0x3c13('0x11c')][_0x3c13('0x122')]['on'](_0x3c13('0x125'),()=>{this[_0x3c13('0x11b')]['editing'][_0x3c13('0xbf')][_0x3c13('0x125')](_0x43168d=>{for(const _0x19bd8d of this[_0x3c13('0x11b')][_0x3c13('0x11c')]['document'][_0x3c13('0x67')]()){const _0x2535c5=this['editor'][_0x3c13('0x11c')][_0x3c13('0x122')][_0x3c13('0x13')](_0x19bd8d),_0x1d06f5=this[_0x3c13('0x11b')]['editing'][_0x3c13('0xbf')][_0x3c13('0x122')]['getRoot'](_0x19bd8d);if(_0x1d06f5){const _0x58c009=_0x2535c5['getAttribute']('revisionHistoryAttachChange');if(_0x43168d[_0x3c13('0xe0')](_0x3c13('0x49'),_0x1d06f5),_0x43168d[_0x3c13('0x1')](_0x3c13('0x19'),_0x1d06f5),_0x43168d[_0x3c13('0x1')](_0x3c13('0xa6'),_0x1d06f5),_0x43168d[_0x3c13('0x1')](_0x3c13('0x23'),_0x1d06f5),_0x58c009){const _0x35faec=this[_0x3c13('0xc1')](_0x58c009);if(!_0x35faec)return null;_0x43168d['setAttribute'](_0x3c13('0x49'),_0x58c009,_0x1d06f5),_0x43168d[_0x3c13('0x11f')]('ck-revision-history-root-'+_0x35faec['type'],_0x1d06f5),this['activeChange']==_0x35faec&&_0x43168d[_0x3c13('0x11f')](_0x3c13('0x23'),_0x1d06f5);}}}});}),this[_0x3c13('0x11b')][_0x3c13('0x6d')]['for'](_0x3c13('0xba'))[_0x3c13('0x100')]({'view':_0x3c13('0x51'),'model':_0x25d48b=>_0x3c13('0x9b')+_0x25d48b,'converterPriority':_0x3c13('0x119')}),this[_0x3c13('0x11b')][_0x3c13('0x6d')][_0x3c13('0x0')](_0x3c13('0xba'))[_0x3c13('0x100')]({'view':_0x3c13('0x114'),'model':_0x10e036=>_0x3c13('0xfd')+_0x10e036,'converterPriority':_0x3c13('0x119')}),this[_0x3c13('0x11b')][_0x3c13('0x6d')][_0x3c13('0x0')]('dataDowncast')[_0x3c13('0x113')]({'model':'revision-suggestion','view':_0x24ecbb=>({'name':_0x3c13('0x47')+_0x24ecbb,'group':_0x3c13('0x109')}),'converterPriority':_0x3c13('0x119')}),this[_0x3c13('0x11b')]['conversion'][_0x3c13('0x0')](_0x3c13('0x40'))[_0x3c13('0x6e')]({'model':_0x3c13('0x109'),'view':_0x40a3e8=>{const _0x2597b5=_0x40a3e8[_0x3c13('0x7a')][_0x3c13('0xb6')](':')[0x1];return _0x3c13('0x3')!=_0x2597b5&&_0x3c13('0x3b')!=_0x2597b5?null:{'classes':[_0x3c13('0x5'),_0x3c13('0x85')+_0x2597b5]};}}),this['editor'][_0x3c13('0xb8')][_0x3c13('0x48')]['on'](_0x3c13('0x33'),et(this['editor'],'merge'),{'priority':_0x3c13('0x42')}),this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0x48')]['on'](_0x3c13('0x2a'),et(this[_0x3c13('0x11b')],_0x3c13('0xb6')),{'priority':_0x3c13('0x42')}),this['editor'][_0x3c13('0xb8')][_0x3c13('0x48')]['on']('removeMarker:revision-suggestion',(_0x51ebc1,_0x4f3f45,_0x1ee657)=>{const _0x527555=_0x1ee657[_0x3c13('0x6c')][_0x3c13('0x11d')](_0x4f3f45[_0x3c13('0x7a')]);if(_0x527555)for(const _0x1f0c3f of _0x527555)_0x1f0c3f['is'](_0x3c13('0xc5'))&&(_0x1ee657[_0x3c13('0x6c')]['unbindElementFromMarkerName'](_0x1f0c3f,_0x4f3f45[_0x3c13('0x7a')]),_0x1ee657['writer'][_0x3c13('0x123')](_0x1f0c3f));},{'priority':_0x3c13('0x42')});}[_0x3c13('0xc1')](_0x304c98){return this[_0x3c13('0x87')][_0x3c13('0x4d')](_0x304c98);}[_0x3c13('0x108')](_0x25de2d){return this[_0x3c13('0xf0')]&&this['_changeView']['destroy'](),this['_changeView']=new _0x5e0073(this[_0x3c13('0x11b')][_0x3c13('0xc8')],_0x25de2d),this[_0x3c13('0xf0')];}['_initInteractions'](){this['editor']['model']['document'][_0x3c13('0x60')]['observeMarkers']('revision'),this['on'](_0x3c13('0xd2'),(_0x249fb4,_0x390c82,_0x5d5805,_0x3e3e35)=>{_0x3e3e35&&this[_0x3c13('0x10')]['remove'](_0x3e3e35),_0x5d5805&&(this[_0x3c13('0x10')]['add']({'view':_0x5d5805,'stackId':_0x3c13('0xe8'),'position':{'target':()=>{const _0x3024a6=this[_0x3c13('0x11b')]['editing'],_0x44262b=this[_0x3c13('0xc1')](_0x5d5805['changeId']);let _0x43a1f6;if(_0x44262b['data']['isOnRoot']){const _0x41d7c8=_0x3024a6[_0x3c13('0xbf')]['getDomRoot'](_0x44262b['rootName']);_0x43a1f6=Array['from'](_0x41d7c8[_0x3c13('0x82')]());}else{const _0x4aa37e=this[_0x3c13('0x11b')][_0x3c13('0x11c')][_0x3c13('0x2')]['get'](_0x3c13('0xf')+_0x5d5805['changeId']);_0x43a1f6=Array[_0x3c13('0x10c')](_0x3024a6[_0x3c13('0x6c')][_0x3c13('0x11d')](_0x4aa37e[_0x3c13('0xd')]))[_0x3c13('0x11e')](_0x1ac96b=>_0x3024a6[_0x3c13('0xbf')][_0x3c13('0xa')][_0x3c13('0xa5')](_0x1ac96b))[_0x3c13('0x11e')](_0x3ed27c=>Array[_0x3c13('0x10c')](_0x3ed27c[_0x3c13('0x82')]()))[_0x3c13('0x27')]();}if(!this[_0x3c13('0x111')])return _0x43a1f6[0x0];return _0x43a1f6[_0x3c13('0x8b')](_0x7ba2f3=>_0x7ba2f3[_0x3c13('0x1a')]-0x3<=this[_0x3c13('0x111')]['y']&&_0x7ba2f3['bottom']+0x3>=this[_0x3c13('0x111')]['y']&&_0x7ba2f3[_0x3c13('0xfe')]-0x3<=this['_activeViewTarget']['x']&&_0x7ba2f3[_0x3c13('0xf3')]+0x3>=this['_activeViewTarget']['x'])||_0x43a1f6[0x0];}}}),this['_balloon'][_0x3c13('0xd5')](_0x3c13('0xe8')));}),this['on'](_0x3c13('0x124'),(_0x42223a,_0x25a403,_0x1f9ebf,_0x8f3801)=>{this[_0x3c13('0x116')]=_0x1f9ebf?this[_0x3c13('0x108')](_0x1f9ebf):null,this[_0x3c13('0x11b')]['model'][_0x3c13('0x125')](()=>{const _0x4133aa=this['editor'][_0x3c13('0xb8')];_0x8f3801&&(_0x8f3801[_0x3c13('0xdb')]['isOnRoot']?_0x4133aa[_0x3c13('0xbf')][_0x3c13('0x125')](_0xcadcfd=>{_0xcadcfd[_0x3c13('0x1')](_0x3c13('0x23'),_0x4133aa[_0x3c13('0xbf')][_0x3c13('0x122')][_0x3c13('0x13')](_0x8f3801[_0x3c13('0x105')]));}):_0x4133aa[_0x3c13('0x2c')](_0x3c13('0xf')+_0x8f3801['id'])),_0x1f9ebf&&(_0x1f9ebf[_0x3c13('0xdb')][_0x3c13('0xe')]?_0x4133aa[_0x3c13('0xbf')]['change'](_0x512073=>{_0x512073[_0x3c13('0x11f')]('ck-revision-history-root--active',_0x4133aa[_0x3c13('0xbf')][_0x3c13('0x122')][_0x3c13('0x13')](_0x1f9ebf[_0x3c13('0x105')]));}):_0x4133aa[_0x3c13('0x2c')](_0x3c13('0xf')+_0x1f9ebf['id']));});}),this[_0x3c13('0x104')](this['editor'][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')],'mouseover',(_0xe15403,_0x1af41b)=>{if(this['activeChange'])return;const _0x520b09=this[_0x3c13('0xa2')](_0x1af41b[_0x3c13('0xab')]),_0x19826c=this[_0x3c13('0x87')][_0x3c13('0x4d')](_0x520b09);_0x19826c?(this['_activeViewTarget']={'x':_0x1af41b[_0x3c13('0x4f')]['x'],'y':_0x1af41b['domEvent']['y']},this[_0x3c13('0x116')]=this['_getViewForChange'](_0x19826c)):(this[_0x3c13('0x111')]=null,this[_0x3c13('0x116')]=null);}),this['listenTo'](this['editor'][_0x3c13('0xb8')]['view'][_0x3c13('0x122')],_0x3c13('0xfb'),(_0x1487d0,_0x137bcf)=>{const _0x5e45f4=this[_0x3c13('0xa2')](_0x137bcf[_0x3c13('0xab')]),_0x1fc0cd=this['_changeIdToChange'][_0x3c13('0x4d')](_0x5e45f4);_0x1fc0cd?(this[_0x3c13('0x111')]={'x':_0x137bcf[_0x3c13('0x4f')]['x'],'y':_0x137bcf[_0x3c13('0x4f')]['y']},_0x1fc0cd===this[_0x3c13('0x43')]?this[_0x3c13('0x10')][_0x3c13('0xa1')]():this[_0x3c13('0x43')]=_0x1fc0cd):(this['_activeViewTarget']=null,this[_0x3c13('0x43')]=null);});}[_0x3c13('0xa2')](_0x21068a){do{const _0x2364c6=_0x21068a[_0x3c13('0xd4')]('data-change-id');if(_0x2364c6)return _0x2364c6;_0x21068a=_0x21068a[_0x3c13('0xe4')];}while(_0x21068a);return null;}[_0x3c13('0x6b')](){this[_0x3c13('0x11b')][_0x3c13('0x11c')]['change'](_0x3d9f30=>{for(const _0x5b7112 of this[_0x3c13('0x11b')][_0x3c13('0x11c')]['markers'])_0x3d9f30[_0x3c13('0xf9')](_0x5b7112);});}}function et(_0x1eddad,_0x8712f4){return(_0x3d12dc,_0x3989a5,_0x5edef3)=>{if(!_0x5edef3[_0x3c13('0x106')][_0x3c13('0x38')](_0x3989a5[_0x3c13('0xb2')],_0x3d12dc[_0x3c13('0xd')]))return;const _0x2a5ecb=_0x3989a5[_0x3c13('0xb2')][_0x3c13('0xd9')](),_0x369b49=_0x3989a5[_0x3c13('0xb2')][_0x3c13('0x7d')],_0x1ffe55=_0x1eddad[_0x3c13('0x11c')][_0x3c13('0xcd')];let _0x32282b=null,_0x5002b9=null,_0x2573cd=!0x1,_0x361da0=!0x1;for(const _0x2284dd of _0x2a5ecb){const _0x3d5e74=_0x2284dd[_0x3c13('0x121')];_0x2573cd=_0x2573cd||_0x1ffe55['isContent'](_0x3d5e74);const _0x4db8b3=_0x5edef3['mapper']['toViewElement'](_0x3d5e74);if(_0x4db8b3&&_0x4db8b3[_0x3c13('0xd6')](_0x3c13('0x5f')))return;_0x3c13('0x53')==_0x2284dd[_0x3c13('0x66')]&&(_0x1ffe55[_0x3c13('0x91')](_0x3d5e74)&&!_0x1ffe55[_0x3c13('0x10e')](_0x3d5e74)&&(_0x3d5e74[_0x3c13('0x14')]||_0x369b49[_0x3c13('0x1b')]?_0x32282b&&_0x32282b[_0x3c13('0xe4')]==_0x3d5e74||(_0x32282b=_0x3d5e74,_0x82fb58(_0x2284dd['previousPosition']),_0x361da0=!0x0):_0x5002b9=_0x5002b9||_0x2284dd[_0x3c13('0x73')]));}function _0x82fb58(_0x1dfa68){const _0x3e86f6=_0x5edef3['mapper']['toViewPosition'](_0x1dfa68),_0x521b6a=_0x5edef3[_0x3c13('0xa4')]['createUIElement'](_0x3c13('0x26'),{'class':_0x3c13('0x85')+_0x8712f4});_0x5edef3[_0x3c13('0xa4')][_0x3c13('0xc6')](_0x3e86f6,_0x521b6a),_0x5edef3[_0x3c13('0x6c')][_0x3c13('0x81')](_0x521b6a,_0x3989a5[_0x3c13('0x7a')]);}_0x2573cd||_0x361da0||!_0x5002b9||_0x82fb58(_0x5002b9);};}export class RestoreRevisionCommand extends _0x17e90c{constructor(_0x4a9ee8){super(_0x4a9ee8);const _0x221c44=_0x4a9ee8['plugins'][_0x3c13('0x4d')](d);this[_0x3c13('0xf6')]=!0x1,this[_0x3c13('0x104')](_0x221c44,_0x3c13('0x8'),()=>this[_0x3c13('0x5c')]()),this[_0x3c13('0x104')](_0x221c44,_0x3c13('0x44'),()=>this['refresh']());}['execute'](){const _0x18d566=this[_0x3c13('0x11b')],_0x5386c8=_0x18d566['plugins'][_0x3c13('0x4d')](d),_0x13be75=_0x5386c8[_0x3c13('0xf1')]?_0x5386c8[_0x3c13('0xc9')][_0x3c13('0x126')]:null;_0x18d566['config'][_0x3c13('0x4d')](_0x3c13('0x55'))[_0x3c13('0x15')](_0x13be75);}['refresh'](){const {isReady:_0x304179,isEnabled:_0x3d4c80}=this[_0x3c13('0x11b')][_0x3c13('0x8f')][_0x3c13('0x4d')](d);this[_0x3c13('0xdd')]=_0x304179&&_0x3d4c80;}}export class ShowChangeCommand extends _0x17e90c{constructor(_0x4b4be4,{direction:_0xd5f69b}){super(_0x4b4be4);const _0x57877b=_0x4b4be4[_0x3c13('0x8f')][_0x3c13('0x4d')](d);this[_0x3c13('0xf6')]=!0x1,this[_0x3c13('0x8e')]=_0x3c13('0xb3')===_0xd5f69b?0x1:-0x1,this[_0x3c13('0x104')](_0x57877b,_0x3c13('0x8'),()=>this[_0x3c13('0x5c')]()),this[_0x3c13('0x104')](_0x57877b,_0x3c13('0x44'),()=>this['refresh']()),this[_0x3c13('0x104')](_0x57877b,'change:activeChange',()=>this[_0x3c13('0x5c')]());}[_0x3c13('0x29')](){const _0x3f7c6d=this[_0x3c13('0x11b')],_0x4f8cc8=_0x3f7c6d[_0x3c13('0x8f')]['get'](d),{isNavigationMode:_0x4efb16,currentChangeNumber:_0x3bb0a6}=_0x4f8cc8;let _0x4dbc87;if(_0x4f8cc8[_0x3c13('0x43')]=_0x4efb16?_0x4f8cc8['diff']['changes']['get'](_0x3bb0a6+this[_0x3c13('0x8e')]):_0x4f8cc8['diff'][_0x3c13('0x1e')][_0x3c13('0xfa')],_0x4f8cc8[_0x3c13('0x43')]['data'][_0x3c13('0xe')])_0x4dbc87=_0x3f7c6d['editing']['view']['getDomRoot'](_0x4f8cc8['activeChange'][_0x3c13('0x105')]);else{const _0x1aae45=_0x3f7c6d[_0x3c13('0x11c')][_0x3c13('0x2')][_0x3c13('0x4d')](_0x3c13('0xf')+_0x4f8cc8[_0x3c13('0x43')]['id']);_0x4dbc87=_0x382f5c(_0x3f7c6d[_0x3c13('0xb8')],_0x1aae45);}_0x28c5c9({'target':_0x4dbc87,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x350318,currentChangeNumber:_0x4c8014,numberOfChanges:_0x4f8fc2,isReady:_0x464224,isEnabled:_0x509158}=this[_0x3c13('0x11b')]['plugins'][_0x3c13('0x4d')](d);this[_0x3c13('0xdd')]=!!(_0x509158&&_0x464224&&_0x4f8fc2)&&(!_0x350318||(0x1===this['_step']?_0x4c8014<_0x4f8fc2-0x1:_0x4c8014>0x0));}}
|
|
23
|
+
const _0x43f9=['ck-suggestion-marker-split','wrap','detachRoot','document','revision-start','markerToData','isObject','restoreRevision','offsetSize','numberOfChanges','comment','first','restoreRevisionCallback','side','end','vid','POSITIVE_INFINITY','endIndex','_cleanMarkers','isSuggestion','isRemoved','-new','_markInsertions','bind','setAttribute','conversion','mouseover','_setChanges','high','vid_end','push','processor','ck-revision-history-root-','isIncorrect','code','_changeView','change','isEnabled','selection','observeMarkers','markers','test','_threeWayMerge','editingDowncast','addRevisionData','distance','insert','map','_sortAndFilterDiffChanges','default','_makeTape','_appendChild','_cleanUp','clear','parse','ck-revision-history-root-remove','getRevision','getRevisionData','newRevisionId','top','toViewElement','markerNameToElements','oldRevisionId','_removeRevisionMarkers','createPositionFromPath','parent','downcastDispatcher','pop','hasAttribute','rootName','toViewRange','revision-suggestion','right','forEach','isAddSuggestion','getDomRoot','error','getRootNames','_activeViewTarget','change:activeView','vid_start','commands','bindElementToMarker','repository','filter','getAttribute','listenTo','_setDistance','low','uiElement','text','upcast','abs','range','_removeUnsupportedChanges','merge','length','model','_changeIdToChange','requires','from','_processTape','isOnRoot','change:isReady','getIndex','dataDowncast','removeMarker:revision-suggestion','isContent','delete','compare','getCustomProperty','WidgetToolbarRepository','plugins','item','ck-editor__editable__overlay','unbindElementFromMarkerName','change:isEnabled','toModel','element','deletion','addMarker:revision','changes','markersEnd','getClientRects','data-revision-','add','_initInteractions','markerRange','addRevision','toViewPosition','nextSibling','revision','attributes','target','createPositionBefore','revision:','ck-suggestion-preview-marker-','nextPosition','activeChange','ck-revision-history-root-add','isBlock','showPreviousChange','execute','keys','has','refresh','markerToHighlight','writer','mapper','_markMarkers','_getRevisionsRange','config','ck-revision-history-root--active','data','removeClass','affectsData','isNavigationMode','RevisionViewer','shift','markerName','toData','left','addClass','revision-viewer','slice','removeMarker','_makeModelFromTape','_update','schema','splice','pairId','diff','nodeAfter','consume','change:activeChange','dataToMarker','startsWith','ck-suggestion-marker','get','revision-comment:','return','suggestion','split','deletions','attributesAfter','indexOf','_findChangeIdFromDomTarget','_markSuggestions','enableReadOnlyMode','consumable','_joinTapes','editor','ck-suggestion-marker-','isAdded','domEvent','suggestion:','stop','isAttached','isBefore','isInline','ck-suggestion-marker--active','then','view','getAttributes','_data','pluginName','_balloon','roots','authors','activeView','_removeMissingPairs','diffData','useFillerType','isReady','isRemoveSuggestion','userId','isAfter','modelRange','addMarker:revision-suggestion:insertion','previousPosition','editing','level','index','highest','_fixObsoleteTags','name','_getViewObj','insertion','start','remove','type','children','data-change-id','marked','enqueueChange','concat','locale','ck-suggestion-marker-merge','attachChange','startIndex','_step','elementStart','sort','getRevisionRootsAttributes','ck-suggestion-preview-marker','isCollapsed','set','catch','markersStart','reconvertMarker','createRange','createUIElement','getWalker','viewItem','next','createRangeIn','includes','_getViewForChange','hasClass','revisionHistoryLabel','for','isEqual','elementEnd','isAtEnd','changeId','collaboration.channelId','_getChangeFromId','string','removeAttribute','_makeModelFromViewString','revisionHistoryAttachChange','revision-suggestion:','span','insertions','getRoot','loadRevisionData','resolve','unshift','isLimit','_setConversion'];(function(_0x5dd3e1,_0x43f97e){const _0x1a1228=function(_0x317d25){while(--_0x317d25){_0x5dd3e1['push'](_0x5dd3e1['shift']());}};_0x1a1228(++_0x43f97e);}(_0x43f9,0x1ee));const _0x1a12=function(_0x5dd3e1,_0x43f97e){_0x5dd3e1=_0x5dd3e1-0x0;let _0x1a1228=_0x43f9[_0x5dd3e1];return _0x1a1228;};import{Plugin as _0x666af2,Command as _0x451d39}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1af848}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1361b8}from'ckeditor5/src/ui';import{DocumentFragment as _0x39a483,Element as _0x5ba4f1,Text as _0x349258,ViewDocumentFragment as _0x47c118,ViewText as _0x26a283,ViewElement as _0x875c5,ViewContainerElement as _0x4afecf,ViewAttributeElement as _0x503843,ViewEmptyElement as _0x22c04e,ViewRawElement as _0x3e63cc,ViewUIElement as _0x27080b}from'ckeditor5/src/engine';import{Users as _0x251a2c,getMarkerDomElement as _0xf9def3}from'ckeditor5-collaboration/src/collaboration-core';import _0x13f4d1 from'./ui/revisionviewer/changedetailsview';import _0xbd3700 from'./revisionsrepository';import _0xb8debd from'./changeitem';import{default as _0x919ab}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x88bf2}from'lodash-es';const tt={'c':_0x4afecf,'a':_0x503843,'e':_0x22c04e,'r':_0x3e63cc,'u':_0x27080b};export default class d extends _0x666af2{static get[_0x1a12('0x10f')](){return _0x1a12('0xdf');}static get[_0x1a12('0xa5')](){return[_0x251a2c,_0x1361b8,_0xbd3700];}constructor(_0x68c678){super(_0x68c678),this[_0x1a12('0x95')]=this[_0x1a12('0x101')]['plugins'][_0x1a12('0xf4')]('RevisionsRepository'),this['set'](_0x1a12('0xcc'),null),this[_0x1a12('0x20')]('activeView',null),this[_0x1a12('0x90')]=null,this[_0x1a12('0x20')](_0x1a12('0xed'),null),this[_0x1a12('0x20')](_0x1a12('0x117'),!0x1),this[_0x1a12('0x20')](_0x1a12('0x67'),!0x0),this['on'](_0x1a12('0xb6'),(_0x176fd9,_0x31631d,_0x3558d0)=>{this[_0x1a12('0xcc')]=null,this[_0x1a12('0x113')]=null,this[_0x1a12('0x101')]['editing'][_0x1a12('0x10c')][_0x1a12('0x66')](_0x12417c=>{for(const _0x1cd8d6 of this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x10c')][_0x1a12('0x45')][_0x1a12('0x111')])_0x3558d0?_0x12417c['removeClass'](_0x1a12('0xb4'),_0x1cd8d6):_0x12417c[_0x1a12('0xe4')](_0x1a12('0xb4'),_0x1cd8d6);});}),this['bind'](_0x1a12('0xde'))['to'](this,_0x1a12('0xcc'),_0x45f5b3=>null!==_0x45f5b3),this[_0x1a12('0x59')]('currentChangeNumber')['to'](this,_0x1a12('0x117'),this,'diff',this,_0x1a12('0xcc'),(_0x34bbe2,_0x506b8d,_0x54887e)=>_0x34bbe2&&_0x54887e?_0x506b8d['changes'][_0x1a12('0xaa')](_0x54887e):0x0),this[_0x1a12('0x59')](_0x1a12('0x4b'))['to'](this,_0x1a12('0x117'),this,_0x1a12('0xed'),(_0x3609c0,_0x324cdc)=>_0x3609c0?_0x324cdc[_0x1a12('0xbb')]['length']:0x0),this['_changeView']=null,this[_0x1a12('0xa4')]=new Map(),this['adapter']=null,this['_balloon']=this[_0x1a12('0x101')]['plugins'][_0x1a12('0xf4')](_0x1361b8);}['init'](){const _0x580b7f=this[_0x1a12('0x101')],_0x17f2e3=new ShowChangeCommand(_0x580b7f,{'direction':'backward'}),_0x1ba526=new ShowChangeCommand(_0x580b7f,{'direction':'forward'});(_0x580b7f[_0x1a12('0x93')]['add'](_0x1a12('0xcf'),_0x17f2e3),_0x580b7f[_0x1a12('0x93')]['add']('showNextChange',_0x1ba526),_0x580b7f['commands'][_0x1a12('0xbf')](_0x1a12('0x49'),new RestoreRevisionCommand(_0x580b7f)),this['on']('change:numberOfChanges',()=>{_0x17f2e3[_0x1a12('0xd3')](),_0x1ba526['refresh']();}),this[_0x1a12('0x41')](),this[_0x1a12('0xc0')](),_0x580b7f[_0x1a12('0xfe')](_0x1a12('0xe5')),_0x580b7f[_0x1a12('0xb2')][_0x1a12('0xd2')](_0x1a12('0xb1')))&&_0x580b7f[_0x1a12('0xb2')][_0x1a12('0xf4')]('WidgetToolbarRepository')['forceDisabled'](_0x1a12('0xe5'));}async[_0x1a12('0x7b')](_0x21dac2){await this[_0x1a12('0x3d')](_0x21dac2);const _0x425360={};for(const _0x1e72d5 in _0x21dac2['diffData']){if(_0x21dac2[_0x1a12('0x115')][_0x1e72d5][_0x1a12('0x18')]&&!_0x21dac2[_0x1a12('0x115')][_0x1e72d5][_0x1a12('0x18')][_0x1a12('0x107')])continue;const _0x38d6b1=this[_0x1a12('0x81')](JSON[_0x1a12('0x78')](_0x21dac2[_0x1a12('0x115')][_0x1e72d5]['insertions'])),_0x12ef7c=this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x10c')][_0x1a12('0x45')],_0x1b0a5f=new _0x47c118(_0x12ef7c,_0x38d6b1[_0x1a12('0x71')](_0x3c3e3f=>this['_getViewObj'](_0x3c3e3f)));this['editor'][_0x1a12('0xdb')]['processor']['useFillerType'](_0x1a12('0x13')),_0x425360[_0x1e72d5]=this[_0x1a12('0x101')][_0x1a12('0xdb')][_0x1a12('0x61')][_0x1a12('0xe2')](_0x1b0a5f),this[_0x1a12('0x101')][_0x1a12('0xdb')]['processor'][_0x1a12('0x116')](_0x1a12('0x73'));}return _0x425360;}async[_0x1a12('0x1d')](_0xbf9d1c){await this[_0x1a12('0x3d')](_0xbf9d1c);const _0x25b400={};for(const _0x2dcc0f in _0xbf9d1c['diffData'])_0xbf9d1c[_0x1a12('0x115')][_0x2dcc0f]['attachChange']&&!_0xbf9d1c[_0x1a12('0x115')][_0x2dcc0f][_0x1a12('0x18')][_0x1a12('0x107')]||(_0x25b400[_0x2dcc0f]=_0xbf9d1c[_0x1a12('0x115')][_0x2dcc0f][_0x1a12('0xfa')]||{});return _0x25b400;}[_0x1a12('0x81')](_0x5425b0){return(_0x5425b0=_0x5425b0[_0x1a12('0x96')](_0x50c6c3=>!_0x50c6c3['name']||_0x1a12('0x46')!==_0x50c6c3[_0x1a12('0xb')]&&'revision-end'!==_0x50c6c3['name']))[_0x1a12('0x8b')](_0x537be7=>{'string'!=typeof _0x537be7&&(_0x537be7[_0x1a12('0x11')]=this[_0x1a12('0x81')](_0x537be7['children']),_0x537be7[_0x1a12('0xc6')]=_0x537be7[_0x1a12('0xc6')][_0x1a12('0x96')](_0x1ea956=>!_0x1ea956[0x0][_0x1a12('0xf2')](_0x1a12('0xbe'))));}),_0x5425b0;}async[_0x1a12('0xaf')](_0x4b64cd,_0x4f04a7,_0x432615=!0x1){if(!this[_0x1a12('0x67')])return;const _0x43be5e=this[_0x1a12('0xed')],_0x5d7b1b=this[_0x1a12('0x95')],_0x20e22b='string'==typeof _0x4b64cd?_0x5d7b1b[_0x1a12('0x7a')](_0x4b64cd):_0x4b64cd,_0x51d9b3='string'==typeof _0x4f04a7?_0x5d7b1b['getRevision'](_0x4f04a7):_0x4f04a7,_0x409ac0=_0x20e22b['id'],_0x4a0d33=_0x51d9b3?_0x51d9b3['id']:null;if(!_0x432615&&this[_0x1a12('0xed')]&&this[_0x1a12('0xed')][_0x1a12('0x7c')]===_0x409ac0&&this['diff'][_0x1a12('0x80')]===_0x4a0d33)return Promise[_0x1a12('0x3e')]();this['isReady']=!0x1,this['activeView']=null,this[_0x1a12('0xcc')]=null,this['diff']=new _0x919ab(_0x409ac0,_0x4a0d33);const _0x582ca3=this['_getRevisionsRange'](_0x20e22b,_0x51d9b3,!0x0)[_0x1a12('0x71')](_0x472bba=>this[_0x1a12('0x3d')](_0x472bba));return _0x582ca3[_0x1a12('0x60')](new Promise(_0x240fe3=>{setTimeout(_0x240fe3,0x14);})),Promise['all'](_0x582ca3)['then'](()=>{if(!this[_0x1a12('0x67')])return;this[_0x1a12('0x76')]();const _0x2d03c3=this['_getDiff'](_0x409ac0,_0x4a0d33);for(const _0x579a00 of _0x2d03c3[_0x1a12('0xbb')])this[_0x1a12('0xa4')][_0x1a12('0x20')](_0x579a00['id'],_0x579a00);this[_0x1a12('0x101')][_0x1a12('0xa3')]['enqueueChange']({'isUndoable':!0x1},_0x4eea52=>{for(const _0x3c73ba of this['editor'][_0x1a12('0xa3')]['document']['getRootNames']())_0x4eea52[_0x1a12('0x44')](_0x3c73ba);for(const _0x59b728 of Object['keys'](_0x2d03c3[_0x1a12('0xa3')])){const _0x2c491e=_0x4eea52['addRoot'](_0x59b728);for(const _0x443c0c of Object[_0x1a12('0xd1')](_0x2d03c3[_0x1a12('0xc6')][_0x59b728]))_0x4eea52[_0x1a12('0x5a')](_0x443c0c,_0x2d03c3['attributes'][_0x59b728][_0x443c0c],_0x2c491e);_0x4eea52['insert'](_0x2d03c3[_0x1a12('0xa3')][_0x59b728],_0x2c491e,0x0);}}),this[_0x1a12('0xed')][_0x1a12('0x5d')](this[_0x1a12('0x72')](_0x2d03c3[_0x1a12('0xbb')])),this[_0x1a12('0x117')]=!0x0;})[_0x1a12('0x21')](_0x2abd5c=>{console[_0x1a12('0x8e')](_0x2abd5c),this[_0x1a12('0x76')](),_0x43be5e&&(this[_0x1a12('0xed')]=_0x43be5e),this[_0x1a12('0x117')]=!0x0;});}[_0x1a12('0x6e')](_0x5e0f72,_0x16071f){const _0x4b15c7=this['repository']['createRevision'](_0x5e0f72);return _0x4b15c7['on'](_0x1a12('0xe9'),(_0x5e3b21,_0x1f7f01,_0x33317a)=>_0x16071f(_0x1f7f01,_0x33317a,_0x4b15c7)),this[_0x1a12('0x95')][_0x1a12('0xc2')](_0x4b15c7),_0x4b15c7;}[_0x1a12('0x3d')](_0x252d1a){if(!_0x252d1a||_0x252d1a[_0x1a12('0x115')])return Promise['resolve']();{const _0x41ceec=this[_0x1a12('0x101')]['config'][_0x1a12('0xf4')](_0x1a12('0x33'));return this['adapter'][_0x1a12('0x7a')]({'channelId':_0x41ceec,'revisionId':_0x252d1a['id']})[_0x1a12('0x10b')](_0x18f1ab=>{_0x252d1a[_0x1a12('0xe9')]({'diffData':_0x18f1ab[_0x1a12('0x115')]},!0x0);});}}[_0x1a12('0x76')](){this[_0x1a12('0xcc')]=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this[_0x1a12('0x65')]=null,this['_changeIdToChange'][_0x1a12('0x77')](),this[_0x1a12('0x101')]['model'][_0x1a12('0x14')]({'isUndoable':!0x1},_0x118ec7=>{for(const _0x2bd432 of this[_0x1a12('0x101')]['model'][_0x1a12('0x45')][_0x1a12('0x8f')]())_0x118ec7['detachRoot'](_0x2bd432);});}[_0x1a12('0x72')](_0x3ae07d){const _0x49efca=[],_0x50a01b=new Map();for(const _0x4ce4f9 of this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0x45')]['getRootNames']()){const _0x2ae9f3=this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x10c')][_0x1a12('0x8d')](_0x4ce4f9);if(!_0x2ae9f3)continue;const _0x5b0df9=_0x2ae9f3[_0x1a12('0xbd')]()['item'](0x0);_0x5b0df9&&(_0x49efca[_0x1a12('0x60')](_0x4ce4f9),_0x50a01b['set'](_0x4ce4f9,_0x5b0df9));}return _0x49efca[_0x1a12('0x1c')]((_0x4b6bf7,_0x5215c2)=>{const _0xecb36c=_0x50a01b[_0x1a12('0xf4')](_0x4b6bf7),_0x132411=_0x50a01b[_0x1a12('0xf4')](_0x5215c2);return _0xecb36c['y']-_0x132411['y']||_0xecb36c['x']-_0x132411['x'];}),(_0x3ae07d=_0x3ae07d[_0x1a12('0x96')](_0x346318=>_0x49efca['includes'](_0x346318['rootName'])))[_0x1a12('0x1c')]((_0x2f2ee0,_0x498916)=>_0x49efca[_0x1a12('0xfb')](_0x2f2ee0['rootName'])-_0x49efca[_0x1a12('0xfb')](_0x498916[_0x1a12('0x87')])),_0x3ae07d;}[_0x1a12('0x74')](_0x280ff1){const _0xb152ff=Array['from'](_0x280ff1[_0x1a12('0x6a')])['filter'](([_0x3c7953,_0x46d4c9])=>_0x3c7953['startsWith'](_0x1a12('0xc9'))&&!_0x46d4c9['isCollapsed']),_0x108964=Array[_0x1a12('0xa6')](this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0x29')](_0x280ff1)[_0x1a12('0x26')]({'singleCharacters':!0x0}));if(0x0!=_0xb152ff[_0x1a12('0xa2')])for(const _0x562d30 of _0x108964){const [_0x56563e,_0x620e6d]=_0xb152ff[0x0],[,_0x15eb5e,_0x1cf7e2]=_0x56563e[_0x1a12('0xf8')](':');if(_0x620e6d[_0x1a12('0x50')][_0x1a12('0x2f')](_0x562d30[_0x1a12('0xcb')])&&_0xb152ff[_0x1a12('0xe0')](),(_0x562d30[_0x1a12('0x5')][_0x1a12('0x2f')](_0x620e6d[_0x1a12('0xe')])||_0x562d30['previousPosition'][_0x1a12('0x2')](_0x620e6d[_0x1a12('0xe')]))&&(_0x1a12('0xd')==_0x15eb5e?_0x562d30['isAdded']={'userId':_0x1cf7e2}:_0x1a12('0xb9')==_0x15eb5e&&(_0x562d30['isRemoved']={'userId':_0x1cf7e2})),0x0==_0xb152ff[_0x1a12('0xa2')])break;}return _0x108964;}['_refreshStartEndIndex'](_0x3b1ff2){const _0x4c2fc4=new Map();for(let _0x3a2644=0x0;_0x3a2644<_0x3b1ff2[_0x1a12('0xa2')];_0x3a2644++)_0x1a12('0x9c')===_0x3b1ff2[_0x3a2644][_0x1a12('0x10')]?(_0x3b1ff2[_0x3a2644][_0x1a12('0xb3')][_0x1a12('0x19')]=_0x3a2644,_0x3b1ff2[_0x3a2644][_0x1a12('0xb3')][_0x1a12('0x53')]=_0x3a2644):(_0x1a12('0x1b')===_0x3b1ff2[_0x3a2644][_0x1a12('0x10')]?_0x3b1ff2[_0x3a2644][_0x1a12('0xb3')]['startIndex']=_0x3a2644:_0x1a12('0x30')===_0x3b1ff2[_0x3a2644][_0x1a12('0x10')]&&(_0x3b1ff2[_0x3a2644][_0x1a12('0xb3')][_0x1a12('0x53')]=_0x3a2644),_0x4c2fc4[_0x1a12('0x20')](_0x3b1ff2[_0x3a2644]['id'],_0x3a2644));for(const _0x222c3 of _0x4c2fc4['values']())_0x1a12('0x1b')===_0x3b1ff2[_0x222c3][_0x1a12('0x10')]?_0x3b1ff2[_0x222c3][_0x1a12('0xb3')][_0x1a12('0x53')]=_0x4c2fc4[_0x1a12('0xf4')](_0x3b1ff2[_0x222c3][_0x1a12('0xec')]):_0x1a12('0x30')===_0x3b1ff2[_0x222c3][_0x1a12('0x10')]&&(_0x3b1ff2[_0x222c3][_0x1a12('0xb3')][_0x1a12('0x19')]=_0x4c2fc4[_0x1a12('0xf4')](_0x3b1ff2[_0x222c3]['pairId']));}[_0x1a12('0xa7')](_0x5dc9ce){for(let _0x4a02d7=0x0;_0x4a02d7<_0x5dc9ce[_0x1a12('0xa2')];_0x4a02d7++){if(_0x1a12('0x1b')===_0x5dc9ce[_0x4a02d7]['type'])_0x5dc9ce[_0x4a02d7][_0x1a12('0xb3')]['startIndex']=_0x4a02d7;else{if(_0x1a12('0x30')===_0x5dc9ce[_0x4a02d7]['type']){_0x5dc9ce[_0x4a02d7][_0x1a12('0xb3')]['endIndex']=_0x4a02d7;const _0x355931=_0x5dc9ce[_0x4a02d7][_0x1a12('0xb3')][_0x1a12('0x19')];_0x5dc9ce[_0x355931][_0x1a12('0xec')]=_0x5dc9ce[_0x4a02d7]['id'],_0x5dc9ce[_0x4a02d7]['pairId']=_0x5dc9ce[_0x355931]['id'];}else _0x5dc9ce[_0x4a02d7][_0x1a12('0xb3')][_0x1a12('0x19')]=_0x4a02d7,_0x5dc9ce[_0x4a02d7][_0x1a12('0xb3')][_0x1a12('0x53')]=_0x4a02d7,_0x5dc9ce[_0x4a02d7][_0x1a12('0xec')]=null;}_0x5dc9ce[_0x4a02d7][_0x1a12('0x22')]||(_0x5dc9ce[_0x4a02d7][_0x1a12('0x22')]=[],_0x5dc9ce[_0x4a02d7][_0x1a12('0xbc')]=[]);}}[_0x1a12('0x58')](_0x21f48d,_0x41376b){const _0x4510a8=_0x21f48d['filter'](_0x392fbd=>!_0x392fbd['isAdded']);for(let _0x3e0750=0x0;_0x3e0750<_0x41376b[_0x1a12('0xa2')];_0x3e0750++)_0x41376b[_0x3e0750][_0x1a12('0x103')]&&(_0x4510a8[_0x3e0750][_0x1a12('0x103')]=_0x41376b[_0x3e0750][_0x1a12('0x103')]);}[_0x1a12('0x37')](_0x4074b9){const _0x2ca01a=JSON[_0x1a12('0x78')](_0x4074b9),_0x17a9f4=this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x10c')][_0x1a12('0x45')],_0x3ca541=new _0x47c118(_0x17a9f4,_0x2ca01a[_0x1a12('0x71')](_0x28e037=>this[_0x1a12('0xc')](_0x28e037)));return this[_0x1a12('0x101')][_0x1a12('0xdb')][_0x1a12('0xb7')](_0x3ca541);}[_0x1a12('0xc')](_0x1cf457){const _0x2ec53c=this[_0x1a12('0x101')]['editing'][_0x1a12('0x10c')][_0x1a12('0x45')];if(_0x1a12('0x35')==typeof _0x1cf457)return new _0x26a283(_0x2ec53c,_0x1cf457);{const _0x453ff9=_0x1cf457[_0x1a12('0x11')][_0x1a12('0x71')](_0x4e7fa4=>this[_0x1a12('0xc')](_0x4e7fa4));return new(tt[_0x1cf457['type']]||_0x875c5)(_0x2ec53c,_0x1cf457['name'],_0x1cf457[_0x1a12('0xc6')],_0x453ff9);}}['_getDiff'](_0x4619af,_0x1107d9=null){const _0x5554b0=this[_0x1a12('0x95')]['getRevision'](_0x4619af),_0x5a4383=_0x1107d9?this[_0x1a12('0x95')]['getRevision'](_0x1107d9):null,_0x11aeca=this[_0x1a12('0xd8')](_0x5554b0,_0x5a4383),_0x33f8ee=_0x11aeca[_0x11aeca['length']-0x1],_0x5879b3=new Map(),_0x196d79={'model':{},'attributes':{},'changes':[]},_0x1ac6c5=new Set(),_0x535796=new Map();for(let _0x50cc37=_0x11aeca[_0x1a12('0xa2')]-0x1;_0x50cc37>=0x0;_0x50cc37--){const _0x33d015=_0x11aeca[_0x50cc37];for(const _0x13b26d of Object[_0x1a12('0xd1')](_0x33d015[_0x1a12('0x115')]))if(_0x33d015[_0x1a12('0x115')][_0x13b26d]['attachChange']){const _0xcac524=_0x33d015['diffData'][_0x13b26d][_0x1a12('0x18')];_0xcac524[_0x1a12('0x107')]?(_0x1ac6c5[_0x1a12('0xbf')](_0x13b26d),_0x535796[_0x1a12('0xd2')](_0x13b26d)&&_0x535796[_0x1a12('0xf4')](_0x13b26d)[_0x1a12('0x1')]==_0xcac524[_0x1a12('0x1')]?_0x535796[_0x1a12('0xae')](_0x13b26d):_0x535796['set'](_0x13b26d,_0xcac524)):_0x535796[_0x1a12('0xd2')](_0x13b26d)?(_0x1ac6c5[_0x1a12('0xae')](_0x13b26d),_0x535796[_0x1a12('0xae')](_0x13b26d)):(_0x1ac6c5[_0x1a12('0xbf')](_0x13b26d),_0x535796['set'](_0x13b26d,_0xcac524));}else _0x1ac6c5[_0x1a12('0xbf')](_0x13b26d);}for(const _0x511e62 of _0x1ac6c5){const _0x51f0ab=_0x535796[_0x1a12('0xd2')](_0x511e62)&&!_0x535796['get'](_0x511e62)[_0x1a12('0x107')];let _0x4a4f06=_0x51f0ab?_0x11aeca[_0x1a12('0xa2')]-0x1:0x0;const _0x5651b3=_0x51f0ab?-0x1:0x1;for(;_0x11aeca[_0x4a4f06];){const _0x5a9e3a=_0x11aeca[_0x4a4f06];if(_0x5a9e3a[_0x1a12('0x115')][_0x511e62]){const _0x1fe6e1=_0x51f0ab?_0x5a9e3a['diffData'][_0x511e62]['attributesBefore']:_0x5a9e3a[_0x1a12('0x115')][_0x511e62][_0x1a12('0xfa')];_0x196d79['attributes'][_0x511e62]=_0x1fe6e1?_0x88bf2(_0x1fe6e1):{};break;}_0x4a4f06+=_0x5651b3;}}for(const _0x348c6d of _0x11aeca){_0x348c6d[_0x1a12('0xa3')]={};for(const _0xb92b58 of _0x348c6d[_0x1a12('0x112')])_0x5879b3[_0x1a12('0x20')](_0xb92b58['id'],_0xb92b58);for(const _0x211872 of _0x1ac6c5){const _0x481230=_0x348c6d['diffData'][_0x211872]?_0x348c6d[_0x1a12('0x115')][_0x211872][_0x1a12('0x3b')]:'[]',_0x383436=_0x348c6d[_0x1a12('0x115')][_0x211872]?_0x348c6d['diffData'][_0x211872][_0x1a12('0xf9')]:'[]';_0x348c6d[_0x1a12('0xa3')][_0x211872]={'insertions':this['_makeModelFromViewString'](_0x481230),'deletions':this[_0x1a12('0x37')](_0x383436)};}}for(const _0x1d2b5b of _0x1ac6c5){let _0x37a44d=null,_0x2cd570=0x0;const _0x22d632=new Map(Array[_0x1a12('0xa6')](_0x5554b0['model'][_0x1d2b5b][_0x1a12('0x3b')][_0x1a12('0x6a')])[_0x1a12('0x96')](([_0x2c976a])=>!_0x2c976a[_0x1a12('0xf2')]('revision:')));let _0x5874b7=0x0;for(const _0x45bcfb of _0x11aeca){const _0x6bb7dd=this[_0x1a12('0x74')](_0x45bcfb[_0x1a12('0xa3')][_0x1d2b5b]['insertions']);_0x45bcfb==_0x5554b0?(_0x37a44d=_0x6bb7dd,_0x2cd570=_0x37a44d[_0x1a12('0xa2')],_0x37a44d[_0x1a12('0x8b')](_0x5312fa=>{_0x5312fa['id']=_0x5874b7++;}),this[_0x1a12('0xa7')](_0x37a44d)):this['_markInsertions'](_0x37a44d,_0x6bb7dd);const _0x208ab4=_0x37a44d[_0x1a12('0x96')](_0x2c1ce2=>!_0x2c1ce2[_0x1a12('0x103')])[_0x1a12('0x71')](_0x209e29=>_0x209e29['id']);let _0x3bee28=0x0;const _0x3db66c=this[_0x1a12('0x74')](_0x45bcfb[_0x1a12('0xa3')][_0x1d2b5b][_0x1a12('0xf9')]);_0x3db66c[_0x1a12('0x8b')](_0x2a1ccd=>{_0x2a1ccd[_0x1a12('0x56')]?_0x2a1ccd['id']=_0x2cd570++:_0x2a1ccd['id']=_0x208ab4[_0x3bee28++];}),this['_processTape'](_0x3db66c),this[_0x1a12('0x99')](_0x37a44d,_0x1a12('0x103')),this[_0x1a12('0x99')](_0x3db66c,_0x1a12('0x56')),_0x45bcfb==_0x5554b0&&this[_0x1a12('0xd7')](_0x37a44d,_0x22d632),_0x37a44d=this['_joinTapes'](_0x37a44d,_0x3db66c),this['_refreshStartEndIndex'](_0x37a44d),this[_0x1a12('0x99')](_0x37a44d,_0x1a12('0x56'));}_0x37a44d=_0x37a44d[_0x1a12('0x96')](_0x393a65=>!(_0x393a65['isAdded']&&_0x393a65[_0x1a12('0x56')]));const _0x48d158=new Map(_0x33f8ee[_0x1a12('0xa3')][_0x1d2b5b][_0x1a12('0xf9')][_0x1a12('0x6a')]),_0x4fe1bc=new Set(_0x22d632[_0x1a12('0xd1')]());for(const _0x1cf04d of _0x48d158[_0x1a12('0xd1')]())_0x4fe1bc[_0x1a12('0xae')](_0x1cf04d);this[_0x1a12('0xfd')](_0x37a44d,_0x4fe1bc),this[_0x1a12('0xa')](_0x37a44d),_0x37a44d=this[_0x1a12('0x114')](_0x37a44d),_0x37a44d=this['_markMismatchedRemovedTags'](_0x37a44d),_0x37a44d=this[_0x1a12('0xa0')](_0x37a44d);const {root:_0x255435,changes:_0x3e73d4}=this['_makeModelFromTape'](_0x37a44d,_0x5879b3,_0x1d2b5b);_0x196d79['model'][_0x1d2b5b]=_0x255435;const _0x2a359e=_0x535796['get'](_0x1d2b5b);if(_0x2a359e){const _0x28d418=_0x5879b3['get'](_0x2a359e['userId']),_0x1916ba=new _0xb8debd({'author':_0x28d418,'type':_0x2a359e[_0x1a12('0x107')]?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1d2b5b});_0x3e73d4[_0x1a12('0x3f')](_0x1916ba),_0x196d79['attributes'][_0x1d2b5b][_0x1a12('0x38')]=_0x1916ba['id'];}_0x196d79[_0x1a12('0xbb')]=_0x196d79[_0x1a12('0xbb')]['concat'](_0x3e73d4);}return _0x196d79;}['_markMarkers'](_0x3791fb,_0x10f33b){for(let _0x5e4541=0x0;_0x5e4541<_0x3791fb['length'];_0x5e4541++)for(const [_0x1aa7ed,_0x1fbafe]of _0x10f33b)_0x1fbafe[_0x1a12('0xe')]['isEqual'](_0x3791fb[_0x5e4541][_0x1a12('0x5')])&&_0x3791fb[_0x5e4541][_0x1a12('0x22')]['push'](_0x1aa7ed),_0x1fbafe[_0x1a12('0x50')][_0x1a12('0x2f')](_0x3791fb[_0x5e4541][_0x1a12('0xcb')])&&_0x3791fb[_0x5e4541][_0x1a12('0xbc')][_0x1a12('0x60')](_0x1aa7ed);}[_0x1a12('0x100')](_0x2ca2e2,_0x3754dc){let _0xb20f5a=[],_0x3ae6c1=0x0,_0x3dbdf9=0x0;for(;_0x3ae6c1<_0x2ca2e2[_0x1a12('0xa2')]||_0x3dbdf9<_0x3754dc[_0x1a12('0xa2')];){const _0x348f23=_0x2ca2e2[_0x3ae6c1]||{},_0x528fce=_0x3754dc[_0x3dbdf9]||{};if(_0x348f23['id']==_0x528fce['id'])_0x3ae6c1++,_0x3dbdf9++,_0xb20f5a[_0x1a12('0x60')](_0x348f23);else{if(_0x528fce[_0x1a12('0x56')]&&_0x348f23['isAdded']){const {commonTape:_0x25839f,iEnd:_0x48f643,jEnd:_0x460a73}=this[_0x1a12('0x6c')](_0x2ca2e2,_0x3ae6c1,_0x3754dc,_0x3dbdf9);_0xb20f5a=_0xb20f5a['concat'](_0x25839f),_0x3ae6c1=_0x48f643,_0x3dbdf9=_0x460a73;}else _0x528fce[_0x1a12('0x56')]?(_0x3dbdf9++,_0xb20f5a[_0x1a12('0x60')](_0x528fce)):(_0x3ae6c1++,_0xb20f5a[_0x1a12('0x60')](_0x348f23));}}return _0xb20f5a;}['_markSuggestions'](_0x51347c,_0x349a84){const _0x54aa03=[];for(let _0x58de0f=0x0;_0x58de0f<_0x51347c[_0x1a12('0xa2')];_0x58de0f++){for(let _0x16bb5e=0x0;_0x16bb5e<_0x51347c[_0x58de0f][_0x1a12('0x22')][_0x1a12('0xa2')];_0x16bb5e++){const _0x4b436f=_0x51347c[_0x58de0f][_0x1a12('0x22')][_0x16bb5e];if(!_0x349a84['has'](_0x4b436f))continue;const {group:_0x42535a,type:_0x256a49,authorId:_0x8f3211}=_0x2459fc(_0x4b436f);_0x1a12('0x89')!=_0x42535a||_0x1a12('0xd')!=_0x256a49&&_0x1a12('0xb9')!=_0x256a49||(_0x54aa03[_0x1a12('0x3f')]({'type':_0x256a49,'name':_0x4b436f,'userId':_0x8f3211}),_0x51347c[_0x58de0f][_0x1a12('0x22')][_0x1a12('0xeb')](_0x16bb5e,0x1),_0x16bb5e--);}_0x27afa7(_0x51347c[_0x58de0f]);for(let _0x3bef0b=0x0;_0x3bef0b<_0x51347c[_0x58de0f]['markersEnd'][_0x1a12('0xa2')];_0x3bef0b++){const _0x1bb6f9=_0x51347c[_0x58de0f][_0x1a12('0xbc')][_0x3bef0b];if(!_0x349a84[_0x1a12('0xd2')](_0x1bb6f9))continue;const {group:_0x5e31c0,type:_0x3e6c80}=_0x2459fc(_0x1bb6f9);if(_0x1a12('0x89')!=_0x5e31c0||_0x1a12('0xd')!=_0x3e6c80&&_0x1a12('0xb9')!=_0x3e6c80)continue;_0x51347c[_0x58de0f]['markersEnd'][_0x1a12('0xeb')](_0x3bef0b,0x1),_0x3bef0b--;const _0x324c03=_0x54aa03['findIndex'](_0x37c664=>_0x37c664['name']==_0x1bb6f9);_0x324c03>-0x1&&_0x54aa03[_0x1a12('0xeb')](_0x324c03,0x1);}}function _0x2459fc(_0x296079){const _0x18ad86=_0x296079['split'](':');return{'group':_0x18ad86[0x0],'type':_0x18ad86[0x1],'subType':_0x18ad86[_0x1a12('0xa2')]>=0x5?_0x18ad86[0x2]:null,'id':_0x18ad86[_0x1a12('0xa2')]<0x5?_0x18ad86[0x2]:_0x18ad86[0x3],'authorId':_0x18ad86[_0x1a12('0xa2')]<0x5?_0x18ad86[0x3]:_0x18ad86[0x4],'markerCount':0x6==_0x18ad86[_0x1a12('0xa2')]?_0x18ad86[0x5]:null};}function _0x27afa7(_0x2adeaf){for(let _0x38e902=0x0;_0x38e902<_0x54aa03[_0x1a12('0xa2')];_0x38e902++){if(_0x2adeaf['isAdded']&&'insertion'==_0x54aa03[_0x38e902]['type'])return _0x2adeaf[_0x1a12('0x8c')]=_0x54aa03[_0x38e902],void delete _0x2adeaf[_0x1a12('0x103')];if(!_0x2adeaf[_0x1a12('0x103')]&&!_0x2adeaf[_0x1a12('0x56')]&&'deletion'==_0x54aa03[_0x38e902][_0x1a12('0x10')])return void(_0x2adeaf[_0x1a12('0x0')]=_0x54aa03[_0x38e902]);}}}[_0x1a12('0x99')](_0x5edd38,_0xd56a5d){let _0x368ec0=0x0,_0x4d6937=!0x1;const _0x4f7188=new Map();for(const _0x2ff5d9 of _0x5edd38)_0x2ff5d9[_0xd56a5d]?_0x4d6937&&(_0x368ec0++,_0x4d6937=!0x1):(_0x368ec0++,_0x4d6937=!0x0),_0x4f7188[_0x1a12('0x20')](_0x2ff5d9['id'],_0x368ec0);for(let _0x178745=0x0;_0x178745<_0x5edd38[_0x1a12('0xa2')];_0x178745++){if(_0x1a12('0x56')==_0xd56a5d&&_0x5edd38[_0x178745]['isAdded']||_0x1a12('0x103')==_0xd56a5d&&_0x5edd38[_0x178745]['isRemoved'])continue;if(_0x1a12('0x9c')==_0x5edd38[_0x178745]['type']){_0x5edd38[_0x178745][_0x1a12('0x6f')]=0x0;continue;}const _0x177a27=_0x4f7188[_0x1a12('0xf4')](_0x5edd38[_0x178745][_0x1a12('0xec')]),_0x414bdc=_0x4f7188[_0x1a12('0xf4')](_0x5edd38[_0x178745]['id']);_0x5edd38[_0x178745][_0x1a12('0x6f')]=_0x177a27-_0x414bdc;}}[_0x1a12('0xd8')](_0x5a3aa0,_0x321383,_0x53672e=!0x1){const _0x3ead06=[];let _0x464444=this['repository']['getIndex'](_0x5a3aa0),_0x3f625b=this['repository'][_0x1a12('0xaa')](_0x321383);for(-0x1==_0x3f625b&&(_0x3f625b=this[_0x1a12('0x95')]['_revisions'][_0x1a12('0xa2')],_0x53672e=!0x1);_0x464444<_0x3f625b;)_0x3ead06[_0x1a12('0x60')](this['repository'][_0x1a12('0x7a')](_0x464444)),_0x464444++;return _0x53672e&&_0x3ead06[_0x1a12('0x60')](this[_0x1a12('0x95')]['getRevision'](_0x464444)),_0x3ead06;}[_0x1a12('0x6c')](_0x5fb285,_0x15d242,_0x271c8e,_0x58aa3a){const _0x408b4e=this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0xea')];let _0x5cfd6d=_0x15d242;for(;_0x5fb285[_0x5cfd6d]&&_0x5fb285[_0x5cfd6d][_0x1a12('0x103')];)_0x5cfd6d++;let _0x3801f0=_0x58aa3a;for(;_0x271c8e[_0x3801f0]&&_0x271c8e[_0x3801f0][_0x1a12('0x56')];)_0x3801f0++;_0x38aba7(_0x5fb285,_0x15d242,_0x5cfd6d),_0x38aba7(_0x271c8e,_0x58aa3a,_0x3801f0);const _0x1287c6=_0x271c8e[_0x1a12('0xe6')](_0x58aa3a,_0x3801f0)[_0x1a12('0x15')](_0x5fb285['slice'](_0x15d242,_0x5cfd6d));return _0x1287c6[_0x1a12('0x1c')]((_0x2ef5f0,_0xb81618)=>_0x2ef5f0[_0x1a12('0x4f')]!=_0xb81618[_0x1a12('0x4f')]?_0x2ef5f0['side']-_0xb81618[_0x1a12('0x4f')]:_0x2ef5f0[_0x1a12('0x7')]!=_0xb81618[_0x1a12('0x7')]?_0x2ef5f0[_0x1a12('0x7')]-_0xb81618[_0x1a12('0x7')]:_0x2ef5f0[_0x1a12('0x6f')]!=_0xb81618['distance']?_0xb81618[_0x1a12('0x6f')]-_0x2ef5f0[_0x1a12('0x6f')]:!!_0x2ef5f0['isAdded']!=!!_0xb81618['isAdded']?-0x1==_0x2ef5f0['side']||0x0==_0x2ef5f0[_0x1a12('0x4f')]?_0x2ef5f0[_0x1a12('0x103')]?-0x1:0x1:_0x2ef5f0[_0x1a12('0x103')]?0x1:-0x1:_0x2ef5f0[_0x1a12('0x8')]-_0xb81618['index']),{'commonTape':_0x1287c6,'iEnd':_0x5cfd6d,'jEnd':_0x3801f0};function _0x38aba7(_0x35bb8f,_0x33b3f0,_0x1b3ac0){let _0x238e6e=-0x1,_0xec6ad6=Number[_0x1a12('0x52')],_0x1b8139=!0x0;for(let _0x284051=_0x33b3f0;_0x284051<_0x1b3ac0;_0x284051++)if(_0x408b4e[_0x1a12('0x109')](_0x35bb8f[_0x284051][_0x1a12('0xb3')])||(_0x1b8139=!0x1),_0x35bb8f[_0x284051]['item']['startIndex']<_0x33b3f0&&(_0x238e6e=_0x284051),_0x35bb8f[_0x284051][_0x1a12('0xb3')][_0x1a12('0x53')]>=_0x1b3ac0){_0xec6ad6=_0x284051;break;}_0x1b8139&&(_0x238e6e=_0x1b3ac0-0x1);for(let _0x2a9a28=_0x33b3f0;_0x2a9a28<_0x1b3ac0;_0x2a9a28++)_0x35bb8f[_0x2a9a28][_0x1a12('0x4f')]=_0x2a9a28<=_0x238e6e?-0x1:_0x2a9a28<_0xec6ad6?0x0:0x1,_0x35bb8f[_0x2a9a28][_0x1a12('0x8')]=_0x2a9a28;let _0x2babf4=0x0;for(let _0x1d6664=_0x33b3f0;_0x1d6664<=_0x238e6e;_0x1d6664++)0x0==_0x35bb8f[_0x1d6664][_0x1a12('0x6f')]?_0x35bb8f[_0x1d6664][_0x1a12('0x7')]=_0x2babf4:(_0x2babf4++,_0x35bb8f[_0x1d6664][_0x1a12('0x7')]=_0x2babf4,_0x2babf4++);for(let _0x450552=_0x33b3f0;_0x450552<_0x1b3ac0;_0x450552++)0x0==_0x35bb8f[_0x450552]['side']&&(_0x35bb8f[_0x450552][_0x1a12('0x7')]=_0x2babf4);_0x2babf4=0x0;for(let _0x283538=_0x1b3ac0-0x1;_0x283538>=_0xec6ad6;_0x283538--)0x0==_0x35bb8f[_0x283538][_0x1a12('0x6f')]?_0x35bb8f[_0x283538]['level']=_0x2babf4:(_0x2babf4--,_0x35bb8f[_0x283538][_0x1a12('0x7')]=_0x2babf4,_0x2babf4--);}}['_fixObsoleteTags'](_0x410277){const _0x1ca9d5=new Map(),_0x5e496e=this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0xea')];for(let _0xeea559=0x1;_0xeea559<_0x410277[_0x1a12('0xa2')];_0xeea559++){let _0x498a24,_0x1714a3,_0x1e3d9a;const _0x57d41f=_0x410277[_0xeea559],_0x533242=_0x410277[_0xeea559-0x1];if(_0x1a12('0x9c')==_0x57d41f[_0x1a12('0x10')])continue;if(_0x57d41f[_0x1a12('0x10')]!=_0x533242[_0x1a12('0x10')])continue;if(!_0x5e496e[_0x1a12('0xce')](_0x533242[_0x1a12('0xb3')])||_0x5e496e[_0x1a12('0x40')](_0x533242[_0x1a12('0xb3')]))continue;if(!_0x5e496e['isBlock'](_0x57d41f[_0x1a12('0xb3')])||_0x5e496e[_0x1a12('0x40')](_0x57d41f[_0x1a12('0xb3')]))continue;if((_0x410277[_0xeea559]['isAdded']||_0x410277[_0xeea559][_0x1a12('0x8c')])&&_0x410277[_0xeea559-0x1]['isRemoved'])_0x498a24=_0x410277[_0xeea559],_0x1714a3=_0x410277[_0xeea559-0x1],_0x1e3d9a=_0xeea559-0x1;else{if(!_0x410277[_0xeea559][_0x1a12('0x56')]||!_0x410277[_0xeea559-0x1]['isAdded']&&!_0x410277[_0xeea559-0x1][_0x1a12('0x8c')])continue;_0x498a24=_0x410277[_0xeea559-0x1],_0x1714a3=_0x410277[_0xeea559],_0x1e3d9a=_0xeea559;}const _0x3d1124=_0x498a24[_0x1a12('0x7')]==_0x1714a3[_0x1a12('0x7')],_0x315b69=Math[_0x1a12('0x9e')](_0x498a24[_0x1a12('0x7')])<Math[_0x1a12('0x9e')](_0x1714a3[_0x1a12('0x7')])&&0x0==_0x1714a3[_0x1a12('0x6f')];(_0x3d1124||_0x315b69)&&(_0x1ca9d5[_0x1a12('0x20')](_0x1714a3['id'],_0x498a24['id']),_0x410277[_0x1a12('0xeb')](_0x1e3d9a,0x1),_0xeea559--,_0x498a24['isAdded']=!0x1);}for(let _0x27c3d2=0x0;_0x27c3d2<_0x410277['length'];_0x27c3d2++)_0x1ca9d5[_0x1a12('0xd2')](_0x410277[_0x27c3d2][_0x1a12('0xec')])&&(_0x410277[_0x27c3d2][_0x1a12('0xec')]=_0x1ca9d5[_0x1a12('0xf4')](_0x410277[_0x27c3d2]['pairId']));}[_0x1a12('0x114')](_0x12495c){const _0x4cb78d=new Set(_0x12495c['map'](_0x1bc9b4=>_0x1bc9b4['id']));for(let _0x3d9ace=0x0;_0x3d9ace<_0x12495c[_0x1a12('0xa2')];_0x3d9ace++)_0x4cb78d[_0x1a12('0xd2')](_0x12495c[_0x3d9ace][_0x1a12('0xec')])||0x0==_0x12495c[_0x3d9ace][_0x1a12('0x6f')]||(_0x12495c[_0x3d9ace][_0x1a12('0x63')]=!0x0);return _0x12495c[_0x1a12('0x96')](_0x589d56=>!_0x589d56[_0x1a12('0x63')]);}['_markMismatchedRemovedTags'](_0xf88952){const _0x212f89=new Set();for(let _0x385c7f=0x0;_0x385c7f<_0xf88952[_0x1a12('0xa2')];_0x385c7f++){if(_0x212f89[_0x1a12('0xd2')](_0xf88952[_0x385c7f]['id'])&&_0xf88952[_0x385c7f][_0x1a12('0x56')]&&(_0xf88952[_0x385c7f][_0x1a12('0x63')]=!0x0),_0xf88952[_0x385c7f][_0x1a12('0x63')])continue;if(0x0==_0xf88952[_0x385c7f][_0x1a12('0x6f')])continue;if(_0x1a12('0x1b')!=_0xf88952[_0x385c7f][_0x1a12('0x10')])continue;if(null==_0xf88952[_0x385c7f]['pairId'])continue;let _0x23c799=_0x385c7f+0x1,_0x34c7d0=0x0;for(;_0xf88952[_0x23c799]['id']!=_0xf88952[_0x385c7f]['pairId'];)_0x1a12('0x1b')==_0xf88952[_0x23c799]['type']?_0x34c7d0++:_0x1a12('0x30')==_0xf88952[_0x23c799]['type']&&_0x34c7d0--,_0x23c799++;if(0x0!=_0x34c7d0){if(_0xf88952[_0x385c7f][_0x1a12('0x56')])_0xf88952[_0x385c7f][_0x1a12('0x63')]=!0x0;else for(;_0x23c799!=_0x385c7f;)_0xf88952[_0x23c799][_0x1a12('0x56')]&&0x0!=_0xf88952[_0x23c799][_0x1a12('0x6f')]&&(_0xf88952[_0x23c799][_0x1a12('0x63')]=!0x0,_0x212f89[_0x1a12('0xbf')](_0xf88952[_0x23c799][_0x1a12('0xec')])),_0x23c799--;}}return _0xf88952['filter'](_0x5369a3=>!_0x5369a3[_0x1a12('0x63')]);}['_removeUnsupportedChanges'](_0x46b323){const _0xb9db3d=this['editor'][_0x1a12('0xa3')]['schema'];for(let _0x351016=0x0;_0x351016<_0x46b323[_0x1a12('0xa2')];_0x351016++){if(!(_0x46b323[_0x351016]['isAdded']||_0x46b323[_0x351016][_0x1a12('0x8c')]||_0x46b323[_0x351016][_0x1a12('0x56')]||_0x46b323[_0x351016]['isRemoveSuggestion']))continue;if(0x0==_0x46b323[_0x351016][_0x1a12('0x6f')])continue;const _0x133e0f=_0x46b323[_0x351016][_0x1a12('0xb3')];_0xb9db3d[_0x1a12('0xce')](_0x133e0f)||_0xb9db3d[_0x1a12('0x40')](_0x133e0f)||(_0x46b323[_0x351016][_0x1a12('0x103')]&&delete _0x46b323[_0x351016]['isAdded'],_0x46b323[_0x351016][_0x1a12('0x8c')]&&delete _0x46b323[_0x351016][_0x1a12('0x8c')],_0x46b323[_0x351016][_0x1a12('0x0')]&&delete _0x46b323[_0x351016][_0x1a12('0x0')],_0x46b323[_0x351016][_0x1a12('0x56')]&&(_0x46b323[_0x351016][_0x1a12('0x63')]=!0x0));}return _0x46b323[_0x1a12('0x96')](_0x16f2ab=>!_0x16f2ab[_0x1a12('0x63')]);}[_0x1a12('0xe8')](_0x6dd221,_0x3adeca,_0x40f9e7){const _0x5e638d=new _0x39a483(),_0x137e64=[],_0x51f0fa=new Map(),_0x4e48d8=this['editor'][_0x1a12('0xa3')],_0x23f6cf=_0x4e48d8[_0x1a12('0xea')],_0x1a385f=[_0x5e638d],_0x4ce115={},_0x30b171={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4ab238=null;const _0xbd47d9=[0x0];for(let _0x59abb5=0x0;_0x59abb5<_0x6dd221[_0x1a12('0xa2')];_0x59abb5++){let _0x13f915,_0x5ed8fd;if(_0x1a12('0x1b')===_0x6dd221[_0x59abb5][_0x1a12('0x10')]){_0x13f915=_0x4e48d8[_0x1a12('0x82')](_0x5e638d,_0xbd47d9);const _0x26e5c0=new _0x5ba4f1(_0x6dd221[_0x59abb5]['item'][_0x1a12('0xb')],_0x6dd221[_0x59abb5][_0x1a12('0xb3')]['getAttributes']());_0x1a385f[0x0]['_appendChild'](_0x26e5c0),_0xbd47d9['push'](0x0),_0x1a385f[_0x1a12('0x3f')](_0x26e5c0),_0x5ed8fd=_0x4e48d8['createPositionFromPath'](_0x5e638d,_0xbd47d9),_0x4ab238=null;}else{if('elementEnd'===_0x6dd221[_0x59abb5][_0x1a12('0x10')])_0x1a385f['shift'](),_0x13f915=_0x4e48d8['createPositionFromPath'](_0x5e638d,_0xbd47d9),_0xbd47d9[_0x1a12('0x85')](),_0xbd47d9[_0xbd47d9[_0x1a12('0xa2')]-0x1]++,_0x5ed8fd=_0x4e48d8['createPositionFromPath'](_0x5e638d,_0xbd47d9),_0x4ab238=null;else{if(_0x13f915=_0x4e48d8[_0x1a12('0x82')](_0x5e638d,_0xbd47d9),_0x4ab238&&_0x1565dd(_0x4ab238,_0x6dd221[_0x59abb5][_0x1a12('0xb3')]))_0x4ab238[_0x1a12('0x10e')]+=_0x6dd221[_0x59abb5][_0x1a12('0xb3')][_0x1a12('0xdb')];else{const _0x320c1a=new _0x349258(_0x6dd221[_0x59abb5][_0x1a12('0xb3')][_0x1a12('0xdb')],_0x6dd221[_0x59abb5][_0x1a12('0xb3')][_0x1a12('0x10d')]());_0x1a385f[0x0][_0x1a12('0x75')](_0x320c1a),_0x4ab238=_0x320c1a;}_0xbd47d9[_0xbd47d9[_0x1a12('0xa2')]-0x1]+=_0x6dd221[_0x59abb5][_0x1a12('0xb3')][_0x1a12('0x4a')],_0x5ed8fd=_0x4e48d8[_0x1a12('0x82')](_0x5e638d,_0xbd47d9);}}for(const _0xc7e5c of _0x6dd221[_0x59abb5]['markersStart'])_0x51f0fa[_0x1a12('0x20')](_0xc7e5c,{'start':_0x13f915,'end':null});_0x293a5a(_0x1a12('0x0'),_0x59abb5,_0x13f915,_0x5ed8fd),_0x293a5a(_0x1a12('0x8c'),_0x59abb5,_0x13f915,_0x5ed8fd),_0x293a5a(_0x1a12('0x56'),_0x59abb5,_0x13f915,_0x5ed8fd),_0x293a5a(_0x1a12('0x103'),_0x59abb5,_0x13f915,_0x5ed8fd);for(const _0x327fe4 of _0x6dd221[_0x59abb5]['markersEnd']){_0x51f0fa[_0x1a12('0xf4')](_0x327fe4)[_0x1a12('0x50')]=_0x5ed8fd;}}for(const [_0x5b46cc,_0xafa05f]of _0x51f0fa){const _0x12a63e=this['editor'][_0x1a12('0xa3')][_0x1a12('0x24')](_0xafa05f['start'],_0xafa05f[_0x1a12('0x50')]);_0x5e638d['markers'][_0x1a12('0x20')](_0x5b46cc,_0x12a63e);}return _0x137e64[_0x1a12('0x1c')]((_0x467500,_0x5a34ae)=>{const _0x37b038=_0x5e638d[_0x1a12('0x6a')][_0x1a12('0xf4')](_0x1a12('0xc9')+_0x467500['id']),_0x6464c=_0x5e638d[_0x1a12('0x6a')][_0x1a12('0xf4')]('revision:'+_0x5a34ae['id']);return _0x37b038[_0x1a12('0xe')]['isBefore'](_0x6464c[_0x1a12('0xe')])?-0x1:_0x37b038[_0x1a12('0xe')][_0x1a12('0x2')](_0x6464c[_0x1a12('0xe')])?0x1:_0x37b038['end'][_0x1a12('0x108')](_0x6464c[_0x1a12('0x50')])?-0x1:_0x37b038[_0x1a12('0x50')][_0x1a12('0x2')](_0x6464c[_0x1a12('0x50')])?0x1:'add'===_0x467500[_0x1a12('0x10')]?-0x1:0x1;}),{'root':_0x5e638d,'changes':_0x137e64};function _0x293a5a(_0xa97983,_0x350902,_0x310ab4,_0x3fbb4){const _0x4eac0f=!!_0x6dd221[_0x350902][_0xa97983],_0x1de942=_0x4eac0f?_0x6dd221[_0x350902][_0xa97983][_0x1a12('0x1')]:null,_0x58ef56=_0x350902===_0x6dd221['length']-0x1,_0x1b94f2=_0x30b171[_0xa97983][0x0],_0x5519cf=_0x23f6cf[_0x1a12('0x48')](_0x6dd221[_0x350902][_0x1a12('0xb3')]);!_0x4ce115[_0xa97983]&&_0x4eac0f?_0x4ce115[_0xa97983]={'start':_0x310ab4,'tapeItem':_0x6dd221[_0x350902],'userId':_0x1de942,'type':_0xa97983}:_0x4ce115[_0xa97983]&&!_0x4eac0f?(_0x4ce115[_0xa97983][_0x1a12('0x50')]=_0x310ab4,_0x3c8dea(_0x4ce115[_0xa97983]),_0x4ce115[_0xa97983]=null):_0x4ce115[_0xa97983]&&_0x4eac0f&&_0x4ce115[_0xa97983][_0x1a12('0x1')]!==_0x1de942&&(_0x4ce115[_0xa97983][_0x1a12('0x50')]=_0x310ab4,_0x1b94f2&&_0x1b94f2[_0x1a12('0x1')]===_0x4ce115[_0xa97983][_0x1a12('0x1')]||_0x3c8dea(_0x4ce115[_0xa97983]),_0x4ce115[_0xa97983]={'start':_0x310ab4,'tapeItem':_0x6dd221[_0x350902],'userId':_0x1de942,'type':_0xa97983}),_0x4ce115[_0xa97983]&&_0x5519cf&&(_0x1a12('0x1b')!==_0x6dd221[_0x350902]['type']||_0x1b94f2&&_0x1b94f2['userId']===_0x1de942||_0x30b171[_0xa97983][_0x1a12('0x3f')]({'userId':_0x1de942,'object':_0x6dd221[_0x350902][_0x1a12('0xb3')],'change':_0x4ce115[_0xa97983]}),'elementEnd'===_0x6dd221[_0x350902]['type']&&_0x1b94f2&&_0x1b94f2['object']===_0x6dd221[_0x350902]['item']&&(_0x30b171[_0xa97983][_0x1a12('0xe0')](),_0x4ce115[_0xa97983]=_0x1b94f2[_0x1a12('0x66')])),_0x4ce115[_0xa97983]&&_0x58ef56&&(_0x4ce115[_0xa97983][_0x1a12('0x50')]=_0x3fbb4,_0x3c8dea(_0x4ce115[_0xa97983]),_0x4ce115[_0xa97983]=null);}function _0x3c8dea({start:_0x15c211,end:_0x3de60b,tapeItem:_0x44bb2e,userId:_0x7aca9b,type:_0x5874bc}){const _0x5be0e4=_0x44bb2e['item'],_0x5e66ab=_0x4e48d8[_0x1a12('0xea')]['isBlock'](_0x5be0e4)&&!_0x4e48d8[_0x1a12('0xea')][_0x1a12('0x40')](_0x5be0e4),_0x3deab9=_0x15c211['nodeAfter']==_0x3de60b[_0x1a12('0x83')]&&_0x3de60b['isAtStart'];if(_0x5e66ab&&_0x3deab9)return;const _0x13a829=_0x4e48d8[_0x1a12('0x24')](_0x15c211,_0x3de60b),_0x5f02ee=_0x3adeca[_0x1a12('0xf4')](_0x7aca9b),_0x3eb5d0=new _0xb8debd({'author':_0x5f02ee,'type':_0x1a12('0x103')==_0x5874bc||_0x1a12('0x8c')==_0x5874bc?'add':_0x1a12('0xf'),'data':{'isSuggestion':_0x1a12('0x8c')==_0x5874bc||'isRemoveSuggestion'==_0x5874bc},'createdAt':new Date(),'rootName':_0x40f9e7});_0x137e64['push'](_0x3eb5d0),_0x5e638d[_0x1a12('0x6a')][_0x1a12('0x20')](_0x1a12('0xc9')+_0x3eb5d0['id'],_0x13a829);}function _0x1565dd(_0x4ab141,_0x362786){const _0x502805=_0x4ab141[_0x1a12('0x10d')](),_0xdcc8e4=_0x362786[_0x1a12('0x10d')]();for(const _0x4cc2ff of _0x502805){if(_0x4cc2ff[0x1]!==_0x362786['getAttribute'](_0x4cc2ff[0x0]))return!0x1;_0xdcc8e4[_0x1a12('0x28')]();}return _0xdcc8e4[_0x1a12('0x28')]()['done'];}}[_0x1a12('0x41')](){this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0x9d'))[_0x1a12('0xf1')]({'view':_0x1a12('0xc5')}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0x6d'))[_0x1a12('0xd4')]({'model':'revision','view':_0xeafc59=>{const _0x3527f8=_0xeafc59[_0x1a12('0xe1')]['split'](':')[0x1],_0xfff582=this[_0x1a12('0x34')](_0x3527f8);if(!_0xfff582)return null;const _0x1353f='add'==_0xfff582[_0x1a12('0x10')]?_0x1a12('0xd'):'deletion',_0x17e291=[_0x1a12('0xf3'),_0x1a12('0x102')+_0x1353f];return _0xfff582[_0x1a12('0xdb')][_0x1a12('0x55')]&&_0x17e291['push'](_0x1a12('0x102')+_0x1353f+_0x1a12('0x57')),this[_0x1a12('0xcc')]==_0xfff582&&_0x17e291['push']('ck-suggestion-marker--active'),{'classes':_0x17e291,'attributes':{'data-change-id':_0x3527f8}};}}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')]('upcast')[_0x1a12('0xbf')](_0xd04920=>{_0xd04920['on']('element:pre',(_0x4b36e2,_0x21f7c1,_0x356d1b)=>{const _0x530dcf=_0x21f7c1[_0x1a12('0x27')]['getChild'](0x0);if(!_0x530dcf||!_0x530dcf['is'](_0x1a12('0xb8'),_0x1a12('0x64')))return;if(!_0x356d1b[_0x1a12('0xff')][_0x1a12('0xef')](_0x530dcf,{'attributes':[_0x1a12('0x92'),_0x1a12('0x5f')]}))return;const _0x35abdd=_0x21f7c1[_0x1a12('0x3')][_0x1a12('0xe')]['nodeAfter'];_0x356d1b[_0x1a12('0xd5')][_0x1a12('0x5a')]('vid_start',_0x530dcf[_0x1a12('0x97')]('vid_start'),_0x35abdd),_0x356d1b[_0x1a12('0xd5')][_0x1a12('0x5a')](_0x1a12('0x5f'),_0x530dcf['getAttribute'](_0x1a12('0x5f')),_0x35abdd);},{'priority':_0x1a12('0x9a')});}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0x9d'))[_0x1a12('0xbf')](_0x219a73=>{_0x219a73['on']('element',(_0x4d6255,_0x2e89e2,_0x362fcb)=>{if(!_0x362fcb['consumable']['consume'](_0x2e89e2[_0x1a12('0x27')],{'attributes':['vid_start','vid_end']}))return;if(_0x2e89e2[_0x1a12('0x3')][_0x1a12('0x1f')])return;const _0x1f7444=_0x2e89e2[_0x1a12('0x3')][_0x1a12('0xe')][_0x1a12('0xee')];_0x1f7444[_0x1a12('0x86')](_0x1a12('0x92'))||_0x1f7444[_0x1a12('0x86')]('vid')||(_0x362fcb[_0x1a12('0xd5')]['setAttribute'](_0x1a12('0x92'),_0x2e89e2['viewItem'][_0x1a12('0x97')]('vid_start'),_0x1f7444),_0x362fcb['writer'][_0x1a12('0x5a')](_0x1a12('0x5f'),_0x2e89e2[_0x1a12('0x27')][_0x1a12('0x97')](_0x1a12('0x5f')),_0x1f7444));},{'priority':_0x1a12('0x9a')});}),this[_0x1a12('0x101')]['conversion'][_0x1a12('0x2e')](_0x1a12('0x9d'))['elementToAttribute']({'view':{'name':_0x1a12('0x3a'),'attributes':{'vid':!0x0}},'model':{'key':_0x1a12('0x51'),'value':_0x2f3cf6=>_0x2f3cf6[_0x1a12('0x97')](_0x1a12('0x51'))}}),this[_0x1a12('0x101')][_0x1a12('0xa3')]['schema']['on']('checkAttribute',(_0x228ae2,[,_0x3a72b8])=>{['vid_start',_0x1a12('0x5f'),_0x1a12('0x51')][_0x1a12('0x2a')](_0x3a72b8)&&(_0x228ae2[_0x1a12('0xf6')]=!0x0,_0x228ae2[_0x1a12('0x106')]());},{'priority':'highest'}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0xab'))['add'](_0x4a651e=>{_0x4a651e['on']('attribute:vid',(_0xea1b6e,_0xda2d6d,_0x75122c)=>{if('\x20'!=_0xda2d6d[_0x1a12('0xb3')]['data']||_0xda2d6d[_0x1a12('0xb3')][_0x1a12('0x83')]['maxOffset']>0x1)return;if(!_0x75122c[_0x1a12('0xff')][_0x1a12('0xef')](_0xda2d6d[_0x1a12('0xb3')],_0xea1b6e[_0x1a12('0xb')]))return;const _0x37edef=_0x75122c[_0x1a12('0xd5')],_0x338550=_0x75122c['mapper'][_0x1a12('0x88')](_0xda2d6d[_0x1a12('0x9f')]);_0x37edef[_0x1a12('0x43')](_0x338550,_0x37edef['createAttributeElement'](_0x1a12('0x3a')));});}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0xab'))[_0x1a12('0x47')]({'model':_0x1a12('0xc5')}),this[_0x1a12('0x101')][_0x1a12('0x6')]['downcastDispatcher']['on'](_0x1a12('0xba'),function(_0x401bc1){const _0x1c690d=_0x401bc1['plugins'][_0x1a12('0xf4')]('RevisionViewer');return(_0xe3207e,_0x141584,_0x22aee9)=>{const _0x1e65ad=_0x141584[_0x1a12('0xe1')][_0x1a12('0xf8')](':')[0x1],_0x202657=_0x1c690d[_0x1a12('0x34')](_0x1e65ad);if(!_0x202657)return null;const _0x3f74fb=_0x1a12('0xbf')==_0x202657[_0x1a12('0x10')]?'split':_0x1a12('0xa1');if(!_0x22aee9[_0x1a12('0xff')][_0x1a12('0x6b')](_0x141584[_0x1a12('0xc1')],_0xe3207e['name']))return;const _0x5e3d79=_0x141584[_0x1a12('0xc1')]['getWalker'](),_0x2c325c=_0x141584[_0x1a12('0xc1')][_0x1a12('0xe')],_0x428c3e=_0x401bc1[_0x1a12('0xa3')]['schema'];let _0x1085c8=null,_0x3ab017=null,_0xe9c08c=!0x1,_0x19057d=!0x1;for(const _0x16c0ae of _0x5e3d79){const _0x3f540b=_0x16c0ae['item'];_0xe9c08c=_0xe9c08c||_0x428c3e[_0x1a12('0xad')](_0x3f540b);const _0x476bbe=_0x22aee9['mapper'][_0x1a12('0x7e')](_0x3f540b);if(_0x476bbe&&_0x476bbe[_0x1a12('0xb0')]('addHighlight'))return;_0x1a12('0x30')==_0x16c0ae[_0x1a12('0x10')]&&(_0x428c3e[_0x1a12('0xce')](_0x3f540b)&&!_0x428c3e[_0x1a12('0x40')](_0x3f540b)&&(_0x3f540b[_0x1a12('0xc4')]||_0x2c325c['isAtEnd']?_0x1085c8&&_0x1085c8[_0x1a12('0x83')]==_0x3f540b||(_0x1085c8=_0x3f540b,_0x536f97(_0x16c0ae['previousPosition']),_0x19057d=!0x0):_0x3ab017=_0x3ab017||_0x16c0ae[_0x1a12('0x5')]));}function _0x536f97(_0x284a40){const _0x554f0=_0x22aee9[_0x1a12('0xd5')][_0x1a12('0x25')](_0x1a12('0x3a'),{'class':_0x1a12('0x102')+_0x3f74fb}),_0x2b6ee3=_0x22aee9[_0x1a12('0xd6')][_0x1a12('0xc3')](_0x284a40);_0x202657['data'][_0x1a12('0x55')]&&_0x22aee9['writer'][_0x1a12('0xe4')](_0x1a12('0x102')+_0x3f74fb+_0x1a12('0x57'),_0x554f0),_0x1c690d[_0x1a12('0xcc')]==_0x202657&&_0x22aee9[_0x1a12('0xd5')][_0x1a12('0xe4')](_0x1a12('0x10a'),_0x554f0),_0x22aee9[_0x1a12('0xd5')][_0x1a12('0x70')](_0x2b6ee3,_0x554f0),_0x22aee9[_0x1a12('0xd6')]['bindElementToMarker'](_0x554f0,_0x141584[_0x1a12('0xe1')]);}_0xe9c08c||_0x19057d||!_0x3ab017||_0x536f97(_0x3ab017);};}(this[_0x1a12('0x101')]),{'priority':'high'}),this['editor'][_0x1a12('0x6')]['downcastDispatcher']['on']('removeMarker:revision',(_0xaeaa4d,_0xaa6be,_0x3bc941)=>{const _0x25dc64=_0x3bc941[_0x1a12('0xd6')][_0x1a12('0x7f')](_0xaa6be[_0x1a12('0xe1')]);if(_0x25dc64)for(const _0x1c2d53 of _0x25dc64)(_0x1c2d53[_0x1a12('0x2c')](_0x1a12('0x42'))||_0x1c2d53[_0x1a12('0x2c')](_0x1a12('0x17')))&&(_0x3bc941[_0x1a12('0xd6')][_0x1a12('0xb5')](_0x1c2d53,_0xaa6be['markerName']),_0x3bc941['writer']['remove'](_0x1c2d53));},{'priority':_0x1a12('0x5e')}),this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x84')]['on'](_0x1a12('0xba'),(_0xd70def,_0x4253eb,_0x12dcd8)=>{const _0x18a551=_0x4253eb[_0x1a12('0xe1')][_0x1a12('0xf8')](':')[0x1],_0x9524bc=this['_getChangeFromId'](_0x18a551);if(!_0x9524bc)return null;const _0x1ee267=_0x1a12('0xbf')==_0x9524bc[_0x1a12('0x10')]?_0x1a12('0xf8'):'merge';if(_0x12dcd8[_0x1a12('0xff')]['test'](_0x4253eb[_0x1a12('0xc1')],_0xd70def[_0x1a12('0xb')]))for(const _0x5ef114 of _0x4253eb[_0x1a12('0xc1')]['getItems']()){if(!_0x5ef114['is'](_0x1a12('0xb8'),'softBreak'))continue;const _0x301439=_0x12dcd8[_0x1a12('0xd5')][_0x1a12('0x25')](_0x1a12('0x3a'),{'class':_0x1a12('0x102')+_0x1ee267}),_0x2613d1=_0x12dcd8[_0x1a12('0xd6')][_0x1a12('0xc3')](this['editor'][_0x1a12('0xa3')][_0x1a12('0xc8')](_0x5ef114));_0x9524bc[_0x1a12('0xdb')]['isSuggestion']&&_0x12dcd8[_0x1a12('0xd5')][_0x1a12('0xe4')](_0x1a12('0x102')+_0x1ee267+_0x1a12('0x57'),_0x301439),this[_0x1a12('0xcc')]==_0x9524bc&&_0x12dcd8[_0x1a12('0xd5')][_0x1a12('0xe4')](_0x1a12('0x10a'),_0x301439),_0x12dcd8[_0x1a12('0xd5')][_0x1a12('0x70')](_0x2613d1,_0x301439),_0x12dcd8[_0x1a12('0xd6')][_0x1a12('0x94')](_0x301439,_0x4253eb[_0x1a12('0xe1')]);}},{'priority':'high'}),this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0x45')]['on'](_0x1a12('0x66'),()=>{this['editor']['editing']['view'][_0x1a12('0x66')](_0x1900ba=>{for(const _0x137222 of this[_0x1a12('0x101')]['model'][_0x1a12('0x45')][_0x1a12('0x8f')]()){const _0x1ac8e4=this[_0x1a12('0x101')][_0x1a12('0xa3')]['document'][_0x1a12('0x3c')](_0x137222),_0xcc01e3=this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x10c')]['document'][_0x1a12('0x3c')](_0x137222);if(_0xcc01e3){const _0x3bcdc2=_0x1ac8e4[_0x1a12('0x97')](_0x1a12('0x38'));if(_0x1900ba[_0x1a12('0x36')](_0x1a12('0x12'),_0xcc01e3),_0x1900ba['removeClass'](_0x1a12('0xcd'),_0xcc01e3),_0x1900ba[_0x1a12('0xdc')](_0x1a12('0x79'),_0xcc01e3),_0x1900ba[_0x1a12('0xdc')](_0x1a12('0xda'),_0xcc01e3),_0x3bcdc2){const _0x248520=this[_0x1a12('0x34')](_0x3bcdc2);if(!_0x248520)return null;_0x1900ba[_0x1a12('0x5a')]('data-change-id',_0x3bcdc2,_0xcc01e3),_0x1900ba[_0x1a12('0xe4')](_0x1a12('0x62')+_0x248520[_0x1a12('0x10')],_0xcc01e3),this[_0x1a12('0xcc')]==_0x248520&&_0x1900ba[_0x1a12('0xe4')]('ck-revision-history-root--active',_0xcc01e3);}}}});}),this[_0x1a12('0x101')][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0x9d'))[_0x1a12('0xf1')]({'view':_0x1a12('0x4c'),'model':_0x545191=>_0x1a12('0xf5')+_0x545191,'converterPriority':'highest'}),this['editor'][_0x1a12('0x5b')][_0x1a12('0x2e')](_0x1a12('0x9d'))[_0x1a12('0xf1')]({'view':_0x1a12('0xf7'),'model':_0x2dde52=>_0x1a12('0x39')+_0x2dde52,'converterPriority':_0x1a12('0x9')}),this['editor'][_0x1a12('0x5b')]['for'](_0x1a12('0xab'))[_0x1a12('0x47')]({'model':'revision-suggestion','view':_0x398cd5=>({'name':_0x1a12('0x105')+_0x398cd5,'group':_0x1a12('0x89')}),'converterPriority':'highest'}),this['editor'][_0x1a12('0x5b')]['for'](_0x1a12('0x6d'))[_0x1a12('0xd4')]({'model':_0x1a12('0x89'),'view':_0x36cd9e=>{const _0x446ee4=_0x36cd9e[_0x1a12('0xe1')][_0x1a12('0xf8')](':')[0x1];return _0x1a12('0xd')!=_0x446ee4&&_0x1a12('0xb9')!=_0x446ee4?null:{'classes':[_0x1a12('0x1e'),_0x1a12('0xca')+_0x446ee4]};}}),this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x84')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x1a12('0x101')],_0x1a12('0xa1')),{'priority':_0x1a12('0x5e')}),this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x84')]['on'](_0x1a12('0x4'),et(this[_0x1a12('0x101')],_0x1a12('0xf8')),{'priority':_0x1a12('0x5e')}),this[_0x1a12('0x101')][_0x1a12('0x6')][_0x1a12('0x84')]['on'](_0x1a12('0xac'),(_0x316fcb,_0x3e2618,_0xf49af3)=>{const _0x2050e2=_0xf49af3['mapper'][_0x1a12('0x7f')](_0x3e2618[_0x1a12('0xe1')]);if(_0x2050e2)for(const _0x30aa51 of _0x2050e2)_0x30aa51['is'](_0x1a12('0x9b'))&&(_0xf49af3[_0x1a12('0xd6')][_0x1a12('0xb5')](_0x30aa51,_0x3e2618[_0x1a12('0xe1')]),_0xf49af3[_0x1a12('0xd5')][_0x1a12('0xf')](_0x30aa51));},{'priority':_0x1a12('0x5e')});}[_0x1a12('0x34')](_0x42852e){return this[_0x1a12('0xa4')]['get'](_0x42852e);}[_0x1a12('0x2b')](_0x3a33c1){return this[_0x1a12('0x65')]&&this[_0x1a12('0x65')]['destroy'](),this[_0x1a12('0x65')]=new _0x13f4d1(this['editor'][_0x1a12('0x16')],_0x3a33c1),this[_0x1a12('0x65')];}['_initInteractions'](){this[_0x1a12('0x101')][_0x1a12('0xa3')]['document'][_0x1a12('0x68')][_0x1a12('0x69')](_0x1a12('0xc5')),this['on'](_0x1a12('0x91'),(_0x319907,_0x1b4a46,_0x26678c,_0x1107e3)=>{_0x1107e3&&this['_balloon'][_0x1a12('0xf')](_0x1107e3),_0x26678c&&(this[_0x1a12('0x110')][_0x1a12('0xbf')]({'view':_0x26678c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x289163=this['editor'][_0x1a12('0x6')],_0x5dc65c=this['_getChangeFromId'](_0x26678c[_0x1a12('0x32')]);let _0x1a5a4d;if(_0x5dc65c['data'][_0x1a12('0xa8')]){const _0x188c1f=_0x289163[_0x1a12('0x10c')][_0x1a12('0x8d')](_0x5dc65c[_0x1a12('0x87')]);_0x1a5a4d=Array[_0x1a12('0xa6')](_0x188c1f['getClientRects']());}else{const _0x401a14=this['editor'][_0x1a12('0xa3')][_0x1a12('0x6a')]['get']('revision:'+_0x26678c['changeId']);_0x1a5a4d=Array[_0x1a12('0xa6')](_0x289163[_0x1a12('0xd6')][_0x1a12('0x7f')](_0x401a14[_0x1a12('0xb')]))[_0x1a12('0x71')](_0x4383ea=>_0x289163[_0x1a12('0x10c')]['domConverter']['mapViewToDom'](_0x4383ea))['map'](_0x270254=>Array[_0x1a12('0xa6')](_0x270254[_0x1a12('0xbd')]()))['flat']();}if(!this['_activeViewTarget'])return _0x1a5a4d[0x0];return _0x1a5a4d['find'](_0x1ea07c=>_0x1ea07c[_0x1a12('0x7d')]-0x3<=this[_0x1a12('0x90')]['y']&&_0x1ea07c['bottom']+0x3>=this[_0x1a12('0x90')]['y']&&_0x1ea07c[_0x1a12('0xe3')]-0x3<=this[_0x1a12('0x90')]['x']&&_0x1ea07c[_0x1a12('0x8a')]+0x3>=this[_0x1a12('0x90')]['x'])||_0x1a5a4d[0x0];}}}),this[_0x1a12('0x110')]['showStack'](_0x1a12('0x2d')));}),this['on']('change:activeChange',(_0x26cb88,_0x35b30f,_0x145dcd,_0x27d4cd)=>{this[_0x1a12('0x113')]=_0x145dcd?this['_getViewForChange'](_0x145dcd):null,this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0x66')](()=>{const _0x33e8e3=this['editor'][_0x1a12('0x6')];_0x27d4cd&&(_0x27d4cd[_0x1a12('0xdb')][_0x1a12('0xa8')]?_0x33e8e3[_0x1a12('0x10c')]['change'](_0x3b24c9=>{_0x3b24c9['removeClass'](_0x1a12('0xda'),_0x33e8e3[_0x1a12('0x10c')]['document'][_0x1a12('0x3c')](_0x27d4cd[_0x1a12('0x87')]));}):_0x33e8e3[_0x1a12('0x23')](_0x1a12('0xc9')+_0x27d4cd['id'])),_0x145dcd&&(_0x145dcd[_0x1a12('0xdb')][_0x1a12('0xa8')]?_0x33e8e3['view'][_0x1a12('0x66')](_0x436b9c=>{_0x436b9c[_0x1a12('0xe4')]('ck-revision-history-root--active',_0x33e8e3[_0x1a12('0x10c')][_0x1a12('0x45')][_0x1a12('0x3c')](_0x145dcd[_0x1a12('0x87')]));}):_0x33e8e3[_0x1a12('0x23')](_0x1a12('0xc9')+_0x145dcd['id']));});}),this[_0x1a12('0x98')](this[_0x1a12('0x101')]['editing']['view'][_0x1a12('0x45')],_0x1a12('0x5c'),(_0x4cf596,_0x25211e)=>{if(this[_0x1a12('0xcc')])return;const _0x32fb16=this[_0x1a12('0xfc')](_0x25211e[_0x1a12('0xc7')]),_0x3e6a43=this[_0x1a12('0xa4')][_0x1a12('0xf4')](_0x32fb16);_0x3e6a43?(this[_0x1a12('0x90')]={'x':_0x25211e[_0x1a12('0x104')]['x'],'y':_0x25211e[_0x1a12('0x104')]['y']},this[_0x1a12('0x113')]=this[_0x1a12('0x2b')](_0x3e6a43)):(this[_0x1a12('0x90')]=null,this[_0x1a12('0x113')]=null);}),this[_0x1a12('0x98')](this[_0x1a12('0x101')]['editing'][_0x1a12('0x10c')][_0x1a12('0x45')],'mousedown',(_0x227f3d,_0xf4e8de)=>{const _0x10c31e=this['_findChangeIdFromDomTarget'](_0xf4e8de[_0x1a12('0xc7')]),_0x4579f5=this['_changeIdToChange'][_0x1a12('0xf4')](_0x10c31e);_0x4579f5?(this[_0x1a12('0x90')]={'x':_0xf4e8de[_0x1a12('0x104')]['x'],'y':_0xf4e8de[_0x1a12('0x104')]['y']},_0x4579f5===this[_0x1a12('0xcc')]?this[_0x1a12('0x110')]['updatePosition']():this[_0x1a12('0xcc')]=_0x4579f5):(this[_0x1a12('0x90')]=null,this[_0x1a12('0xcc')]=null);});}[_0x1a12('0xfc')](_0x4e90c2){do{const _0x15b657=_0x4e90c2[_0x1a12('0x97')](_0x1a12('0x12'));if(_0x15b657)return _0x15b657;_0x4e90c2=_0x4e90c2[_0x1a12('0x83')];}while(_0x4e90c2);return null;}[_0x1a12('0x54')](){this[_0x1a12('0x101')][_0x1a12('0xa3')][_0x1a12('0x66')](_0x3537d2=>{for(const _0x3bd8d3 of this['editor'][_0x1a12('0xa3')][_0x1a12('0x6a')])_0x3537d2[_0x1a12('0xe7')](_0x3bd8d3);});}}function et(_0x27bc5c,_0x5955dd){return(_0x37a104,_0x58fbe9,_0x5dae5c)=>{if(!_0x5dae5c[_0x1a12('0xff')]['test'](_0x58fbe9[_0x1a12('0xc1')],_0x37a104['name']))return;const _0x44617d=_0x58fbe9[_0x1a12('0xc1')]['getWalker'](),_0x443d99=_0x58fbe9['markerRange'][_0x1a12('0xe')],_0x29e7e8=_0x27bc5c[_0x1a12('0xa3')]['schema'];let _0xc3641=null,_0x1d8e40=null,_0x24e402=!0x1,_0x292654=!0x1;for(const _0x4a591a of _0x44617d){const _0x32b7e5=_0x4a591a[_0x1a12('0xb3')];_0x24e402=_0x24e402||_0x29e7e8['isContent'](_0x32b7e5);const _0x41cef1=_0x5dae5c[_0x1a12('0xd6')]['toViewElement'](_0x32b7e5);if(_0x41cef1&&_0x41cef1[_0x1a12('0xb0')]('addHighlight'))return;_0x1a12('0x30')==_0x4a591a['type']&&(_0x29e7e8[_0x1a12('0xce')](_0x32b7e5)&&!_0x29e7e8[_0x1a12('0x40')](_0x32b7e5)&&(_0x32b7e5[_0x1a12('0xc4')]||_0x443d99[_0x1a12('0x31')]?_0xc3641&&_0xc3641[_0x1a12('0x83')]==_0x32b7e5||(_0xc3641=_0x32b7e5,_0x34836a(_0x4a591a[_0x1a12('0x5')]),_0x292654=!0x0):_0x1d8e40=_0x1d8e40||_0x4a591a[_0x1a12('0x5')]));}function _0x34836a(_0xbacbcc){const _0x910614=_0x5dae5c['mapper'][_0x1a12('0xc3')](_0xbacbcc),_0x5f432b=_0x5dae5c[_0x1a12('0xd5')][_0x1a12('0x25')](_0x1a12('0x3a'),{'class':_0x1a12('0xca')+_0x5955dd});_0x5dae5c[_0x1a12('0xd5')]['insert'](_0x910614,_0x5f432b),_0x5dae5c[_0x1a12('0xd6')][_0x1a12('0x94')](_0x5f432b,_0x58fbe9[_0x1a12('0xe1')]);}_0x24e402||_0x292654||!_0x1d8e40||_0x34836a(_0x1d8e40);};}export class RestoreRevisionCommand extends _0x451d39{constructor(_0x6af5ac){super(_0x6af5ac);const _0xedeb05=_0x6af5ac[_0x1a12('0xb2')][_0x1a12('0xf4')](d);this[_0x1a12('0xdd')]=!0x1,this[_0x1a12('0x98')](_0xedeb05,_0x1a12('0xa9'),()=>this[_0x1a12('0xd3')]()),this[_0x1a12('0x98')](_0xedeb05,_0x1a12('0xb6'),()=>this['refresh']());}[_0x1a12('0xd0')](){const _0x350d0b=this[_0x1a12('0x101')],_0x341fc2=_0x350d0b[_0x1a12('0xb2')][_0x1a12('0xf4')](d),_0x2723c9=_0x341fc2['isReady']?_0x341fc2[_0x1a12('0xed')][_0x1a12('0x7c')]:null;_0x350d0b[_0x1a12('0xd9')][_0x1a12('0xf4')]('revisionHistory')[_0x1a12('0x4e')](_0x2723c9);}['refresh'](){const {isReady:_0x19f5c3,isEnabled:_0xbbcda1}=this['editor']['plugins'][_0x1a12('0xf4')](d);this[_0x1a12('0x67')]=_0x19f5c3&&_0xbbcda1;}}export class ShowChangeCommand extends _0x451d39{constructor(_0x28349e,{direction:_0x355db7}){super(_0x28349e);const _0x4c6cd3=_0x28349e[_0x1a12('0xb2')][_0x1a12('0xf4')](d);this[_0x1a12('0xdd')]=!0x1,this[_0x1a12('0x1a')]='forward'===_0x355db7?0x1:-0x1,this[_0x1a12('0x98')](_0x4c6cd3,_0x1a12('0xa9'),()=>this[_0x1a12('0xd3')]()),this[_0x1a12('0x98')](_0x4c6cd3,_0x1a12('0xb6'),()=>this[_0x1a12('0xd3')]()),this['listenTo'](_0x4c6cd3,_0x1a12('0xf0'),()=>this[_0x1a12('0xd3')]());}['execute'](){const _0x51528a=this[_0x1a12('0x101')],_0x4b2121=_0x51528a['plugins']['get'](d),{isNavigationMode:_0x475a1c,currentChangeNumber:_0x3e7e44}=_0x4b2121;let _0x580e17;if(_0x4b2121[_0x1a12('0xcc')]=_0x475a1c?_0x4b2121['diff']['changes'][_0x1a12('0xf4')](_0x3e7e44+this['_step']):_0x4b2121[_0x1a12('0xed')][_0x1a12('0xbb')][_0x1a12('0x4d')],_0x4b2121['activeChange'][_0x1a12('0xdb')][_0x1a12('0xa8')])_0x580e17=_0x51528a[_0x1a12('0x6')]['view'][_0x1a12('0x8d')](_0x4b2121['activeChange'][_0x1a12('0x87')]);else{const _0x177f94=_0x51528a[_0x1a12('0xa3')][_0x1a12('0x6a')][_0x1a12('0xf4')](_0x1a12('0xc9')+_0x4b2121['activeChange']['id']);_0x580e17=_0xf9def3(_0x51528a[_0x1a12('0x6')],_0x177f94);}_0x1af848({'target':_0x580e17,'viewportOffset':0x28});}[_0x1a12('0xd3')](){const {isNavigationMode:_0x46563a,currentChangeNumber:_0x5c9d1d,numberOfChanges:_0x480c9a,isReady:_0x9f1981,isEnabled:_0xb60a30}=this[_0x1a12('0x101')][_0x1a12('0xb2')][_0x1a12('0xf4')](d);this['isEnabled']=!!(_0xb60a30&&_0x9f1981&&_0x480c9a)&&(!_0x46563a||(0x1===this[_0x1a12('0x1a')]?_0x5c9d1d<_0x480c9a-0x1:_0x5c9d1d>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd75f=['execute','action','find','Name\x20this\x20revision','isActionsDropdownOpen','function','bind','extendTemplate','_action','source','first','ck-on','model','isReady','stopPropagation','listView','isEnabled','items','threeVerticalDots','children','Restore\x20this\x20revision','class','add','name','isVisible','isOpen','locale','button','change:isActionsDropdownOpen','buttonView','listenTo'];(function(_0x451f97,_0xd75fc2){const _0x50ed76=function(_0xf26774){while(--_0xf26774){_0x451f97['push'](_0x451f97['shift']());}};_0x50ed76(++_0xd75fc2);}(_0xd75f,0x186));const _0x50ed=function(_0x451f97,_0xd75fc2){_0x451f97=_0x451f97-0x0;let _0x50ed76=_0xd75f[_0x451f97];return _0x50ed76;};import{Collection as _0x3cdfb0}from'ckeditor5/src/utils';import{icons as _0x3d9e1e}from'ckeditor5/src/core';import{Model as _0x453aef,addListToDropdown as _0x1d51bb,createDropdown as _0x53f56b}from'ckeditor5/src/ui';import{getTranslation as _0xa5d3e4}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x29b662,_0x2ecd53){const _0x184c3d=_0x29b662['bindTemplate'],_0x29cbac=_0x29b662[_0x50ed('0x8')],_0x529078=_0x53f56b(_0x29cbac);_0x529078['panelPosition']='sw';const _0x266b19=function(_0x4a51c6,_0x4aaa3b){const _0xd658d=function(_0x3bbf84,_0x174fb1){const _0x3c0b56=_0x3bbf84[_0x50ed('0x8')],_0x2806ee={'Compare\x20against\x20selected':_0xa5d3e4(_0x3c0b56,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0xa5d3e4(_0x3c0b56,_0x50ed('0x10')),'Restore\x20this\x20revision':_0xa5d3e4(_0x3c0b56,_0x50ed('0x2'))};return _0x174fb1['map'](_0x59aeaf=>{const _0x428b55=_0x2806ee[_0x59aeaf[_0x50ed('0x5')]];return _0x428b55&&_0x428b55!==_0x59aeaf[_0x50ed('0x5')]&&(_0x59aeaf[_0x50ed('0x5')]=_0x428b55),_0x59aeaf;});}(_0x4a51c6,_0x4aaa3b),_0x526647=new _0x3cdfb0();for(const _0xebbec1 of _0xd658d){const _0x454a3a={'type':_0x50ed('0x9'),'model':new _0x453aef({'label':_0xebbec1[_0x50ed('0x5')],'class':_0xebbec1[_0x50ed('0x3')],'withText':!0x0,'_action':_0xebbec1[_0x50ed('0xe')]})};_0x454a3a[_0x50ed('0x19')]['bind'](_0x50ed('0x1d'))['to'](_0x4a51c6,_0x50ed('0x11'),_0x52dc0e=>_0x50ed('0x12')!=typeof _0xebbec1[_0x50ed('0x1d')]||(!_0x52dc0e||_0xebbec1[_0x50ed('0x1d')](_0x4a51c6))),_0x526647[_0x50ed('0x4')](_0x454a3a);}return _0x526647;}(_0x29b662,_0x2ecd53);return _0x29b662[_0x50ed('0x13')](_0x50ed('0x11'))['to'](_0x529078,_0x50ed('0x7')),_0x529078[_0x50ed('0xb')]['set']({'label':_0xa5d3e4(_0x29cbac,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3d9e1e[_0x50ed('0x0')]}),_0x529078[_0x50ed('0x14')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x184c3d['if']('isActionsDropdownOpen',_0x50ed('0x18'))]},'on':{'click':_0x184c3d['to'](_0x312e2c=>_0x312e2c[_0x50ed('0x1b')]())}}),_0x529078['on'](_0x50ed('0xd'),_0x49e05a=>{_0x29b662[_0x50ed('0x1a')]&&'function'==typeof _0x49e05a[_0x50ed('0x16')][_0x50ed('0x15')]&&_0x49e05a[_0x50ed('0x16')]['_action'](_0x29b662);}),_0x1d51bb(_0x529078,_0x266b19),_0x529078[_0x50ed('0xc')](_0x29b662,_0x50ed('0xa'),(_0x407e05,_0x52deaf,_0x434349)=>{if(_0x434349)for(const _0xd1e541 of _0x529078[_0x50ed('0x1c')][_0x50ed('0x1e')]){const _0x2222ac=_0xd1e541[_0x50ed('0x1')][_0x50ed('0x17')],_0x131ed0=_0x2ecd53[_0x50ed('0xf')](_0x518911=>_0x518911[_0x50ed('0xe')]===_0x2222ac[_0x50ed('0x15')])[_0x50ed('0x6')];_0xd1e541[_0x50ed('0x6')]=void 0x0===_0x131ed0||_0x131ed0(_0x29b662);}}),_0x529078;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1638=['set','setTemplate','Revision\x20creator','span','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name'];(function(_0x126cc8,_0x16381e){const _0x1586d9=function(_0xd3ffcf){while(--_0xd3ffcf){_0x126cc8['push'](_0x126cc8['shift']());}};_0x1586d9(++_0x16381e);}(_0x1638,0xb1));const _0x1586=function(_0x126cc8,_0x16381e){_0x126cc8=_0x126cc8-0x0;let _0x1586d9=_0x1638[_0x126cc8];return _0x1586d9;};import{View as _0x548a4e,IconView as _0x41a90d}from'ckeditor5/src/ui';import{getTranslation as _0x5135f1}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x3eb6aa from'../../../theme/icons/user.svg';export default class ti extends _0x548a4e{constructor(_0x521a7d,_0x3033e6,_0x24158a){super(_0x521a7d);const _0x4a77ef=new _0x41a90d();_0x4a77ef[_0x1586('0x5')]({'content':_0x3eb6aa,'viewBox':_0x1586('0x2')});const _0x33e07f=['ck',_0x1586('0x3')];_0x24158a&&_0x33e07f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3655f6=[{'tag':_0x1586('0x1'),'attributes':{'class':['ck',_0x1586('0x4')],'title':_0x5135f1(_0x521a7d,_0x24158a?_0x1586('0x0'):'Revision\x20author')},'children':[_0x4a77ef,_0x3033e6['name']]}];this[_0x1586('0x6')]({'tag':'li','attributes':{'class':_0x33e07f},'children':_0x3655f6});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x15d9=['span','set','extendTemplate','ck-revision-history-sidebar__revision-name','Revision\x20name'];(function(_0x452f00,_0x15d962){var _0x26e882=function(_0x24b2b8){while(--_0x24b2b8){_0x452f00['push'](_0x452f00['shift']());}};_0x26e882(++_0x15d962);}(_0x15d9,0x186));var _0x26e8=function(_0x452f00,_0x15d962){_0x452f00=_0x452f00-0x0;var _0x26e882=_0x15d9[_0x452f00];return _0x26e882;};import{LabeledFieldView as _0x5e0282}from'ckeditor5/src/ui';import{getTranslation as _0x820c72}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x5e0282{constructor(_0x429824,_0x3fd518){super(_0x429824,_0x3fd518),this[_0x26e8('0x1')]({'label':_0x820c72(_0x429824,_0x26e8('0x4'))}),this[_0x26e8('0x2')]({'tag':_0x26e8('0x0'),'attributes':{'class':[_0x26e8('0x3')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ed1=['ck-revision-history-sidebar__revision-authors','_createdAtFormatted','placeholder','element','revisionNameView','ck-revision-history-sidebar__revision','change','isHighlighted','extendTemplate','_revision','name','span','isEnabled','select','setTemplate','deselect','bind','set','ck-reset','bindTemplate','value','fieldView','unshift','ck-revision-history-sidebar__revision_highlighted','filter','isConfirm','listenTo','isActionsDropdownOpen','from','creator','div','authors','render','220','ck-revision-history-sidebar__revision__date','uiLanguage','isReady','length','srcElement','createdAt','revisionActionsView','fire','ck-disabled','map','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isSelected','highlight','setName'];(function(_0x57758e,_0x1ed1c9){const _0x51f288=function(_0x952505){while(--_0x952505){_0x57758e['push'](_0x57758e['shift']());}};_0x51f288(++_0x1ed1c9);}(_0x1ed1,0x1d3));const _0x51f2=function(_0x57758e,_0x1ed1c9){_0x57758e=_0x57758e-0x0;let _0x51f288=_0x1ed1[_0x57758e];return _0x51f288;};import{View as _0xf6e382,createLabeledInputText as _0x665a00}from'ckeditor5/src/ui';import{ConfirmMixin as _0xd97179}from'ckeditor5-collaboration/src/collaboration-core';import _0x2cf6a7 from'./revisionnameview';import _0x2bf827 from'./revisionauthorview';import{dateToPrettyFormat as _0x82aafb}from'./utils';import{createActionsDropdownView as _0x39f84b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0xd97179(_0xf6e382){constructor(_0x493904,_0x2fc94b,_0x3620fb){super(_0x493904);const _0x5b1687=this[_0x51f2('0x20')],_0x229723=function(_0x3c87f9,_0x335981){const _0x41cd81=Array[_0x51f2('0x29')](_0x335981[_0x51f2('0x2c')])[_0x51f2('0x25')](_0x13d9d0=>_0x13d9d0!=_0x335981[_0x51f2('0x2a')]);return _0x335981['creator']&&_0x41cd81[_0x51f2('0x23')](_0x335981['creator']),_0x41cd81[_0x51f2('0x8')](_0x206273=>new _0x2bf827(_0x3c87f9,_0x206273,_0x206273==_0x335981[_0x51f2('0x2a')]));}(_0x493904,_0x2fc94b);this['id']=_0x2fc94b['id'],this[_0x51f2('0x16')]=_0x2fc94b,this[_0x51f2('0x1d')](_0x51f2('0x17'),_0x51f2('0x4'))['to'](_0x2fc94b),this[_0x51f2('0x1d')](_0x51f2('0xe'))['to'](this,'createdAt',_0x27824a=>_0x27824a?_0x82aafb(_0x493904[_0x51f2('0x0')],_0x27824a):void 0x0),this[_0x51f2('0x1e')]('isSelected',!0x1),this[_0x51f2('0x1e')](_0x51f2('0x14'),!0x1),this[_0x51f2('0x1e')](_0x51f2('0x28'),!0x1),this[_0x51f2('0x1e')](_0x51f2('0x1'),!0x1),this[_0x51f2('0x1e')](_0x51f2('0x19'),!0x1),this[_0x51f2('0x11')]=new _0x2cf6a7(_0x493904,_0x665a00),this[_0x51f2('0x11')][_0x51f2('0x22')][_0x51f2('0x15')]({'attributes':{'maxlength':_0x51f2('0x2e')}}),this[_0x51f2('0x11')][_0x51f2('0x22')][_0x51f2('0x1d')](_0x51f2('0x21'),_0x51f2('0xf'))['to'](this,_0x51f2('0x17'),_0x51f2('0xe')),this[_0x51f2('0x11')][_0x51f2('0x1d')](_0x51f2('0x19'))['to'](this,_0x51f2('0xa'),this,'isEnabled',(_0x662532,_0x4685fd)=>_0x662532&&_0x4685fd),this['revisionActionsView']=_0x3620fb&&_0x3620fb[_0x51f2('0x2')]?_0x39f84b(this,_0x3620fb):'',this[_0x51f2('0x5')]&&this[_0x51f2('0x5')]['bind'](_0x51f2('0x19'))['to'](this),this[_0x51f2('0x1b')]({'tag':'div','attributes':{'class':['ck',_0x51f2('0x1f'),'ck-revision-history-sidebar__revision-wrapper',_0x5b1687['if'](_0x51f2('0x26'),_0x51f2('0x9'))]},'children':[{'tag':_0x51f2('0x2b'),'attributes':{'class':['ck',_0x51f2('0x1f'),_0x51f2('0x12'),_0x5b1687['if'](_0x51f2('0x19'),_0x51f2('0x7'),_0x1af811=>!_0x1af811),_0x5b1687['if'](_0x51f2('0xa'),'ck-revision-history-sidebar__revision_selected'),_0x5b1687['if']('isHighlighted',_0x51f2('0x24')),_0x5b1687['if'](_0x51f2('0x28'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x51f2('0x11')],{'tag':_0x51f2('0x18'),'attributes':{'class':['ck',_0x51f2('0x2f')]},'children':[{'text':_0x5b1687['to'](_0x51f2('0xe'))}]},{'tag':_0x51f2('0x2b'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x51f2('0xd')]},'children':_0x229723}]},this[_0x51f2('0x5')]],'on':{'click':_0x5b1687['to'](_0x5e42cf=>{_0x5e42cf[_0x51f2('0x3')]['closest']('.ck-thread__remove-confirm')||this[_0x51f2('0x1')]&&this[_0x51f2('0x19')]&&this[_0x51f2('0x6')](_0x51f2('0x1a'),{'id':this['id']});})}}]});}[_0x51f2('0x2d')](){super[_0x51f2('0x2d')]();const _0x54f817=this[_0x51f2('0x11')][_0x51f2('0x22')][_0x51f2('0x10')];this[_0x51f2('0x27')](_0x54f817,_0x51f2('0x13'),()=>{this[_0x51f2('0x6')](_0x51f2('0xc'),{'id':this['id'],'name':_0x54f817[_0x51f2('0x21')]});});}['select'](){this[_0x51f2('0xa')]=!0x0;}[_0x51f2('0x1c')](){this['isSelected']=!0x1;}[_0x51f2('0xb')](){this[_0x51f2('0x14')]=!0x0;}['unhighlight'](){this[_0x51f2('0x14')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3114=['ck-hidden','toggle','set','isVisible','setTemplate','span','true','ck-revision-history-sidebar__subrevision-collapser_collapsed','click','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser__inner'];(function(_0x54ad30,_0x311405){const _0x31d7de=function(_0x315ebe){while(--_0x315ebe){_0x54ad30['push'](_0x54ad30['shift']());}};_0x31d7de(++_0x311405);}(_0x3114,0x1c8));const _0x31d7=function(_0x54ad30,_0x311405){_0x54ad30=_0x54ad30-0x0;let _0x31d7de=_0x3114[_0x54ad30];return _0x31d7de;};import{View as _0x2ba305}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2ba305{constructor(_0x46e29e){super(_0x46e29e);const _0x5bd286=this['bindTemplate'];this[_0x31d7('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x31d7('0x4')]({'tag':_0x31d7('0x5'),'attributes':{'class':['ck',_0x31d7('0xa'),_0x5bd286['if'](_0x31d7('0x3'),_0x31d7('0x0'),_0x3a92a7=>!_0x3a92a7),_0x5bd286['if'](_0x31d7('0x9'),_0x31d7('0x7'))],'role':'button','aria-pressed':_0x5bd286['to']('_isCollapsed',_0x55f5f9=>_0x55f5f9?'false':_0x31d7('0x6'))},'children':[{'tag':_0x31d7('0x5'),'attributes':{'class':['ck',_0x31d7('0xb')]}}],'on':{'click':_0x5bd286['to'](_0x31d7('0x8'))}});}[_0x31d7('0x1')](){this[_0x31d7('0x9')]=!this['_isCollapsed'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c1e=['ck-revision-history-sidebar__revision','creator','setTemplate','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','_parentRevisionId','bind','deselect','select','ck-reset','uiLanguage','set','fire','span','isSelected','createdAt','ck-revision-history-sidebar__revision__date'];(function(_0x110084,_0x4c1e11){const _0x566ecc=function(_0x44a513){while(--_0x44a513){_0x110084['push'](_0x110084['shift']());}};_0x566ecc(++_0x4c1e11);}(_0x4c1e,0xab));const _0x566e=function(_0x110084,_0x4c1e11){_0x110084=_0x110084-0x0;let _0x566ecc=_0x4c1e[_0x110084];return _0x566ecc;};import{View as _0x41c185}from'ckeditor5/src/ui';import _0x75605b from'./revisionauthorview';import{dateToPrettyFormat as _0x4540c9}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x41c185{constructor(_0x31443d,_0x469694,_0x56731c){super(_0x31443d);const _0x248b26=this['bindTemplate'];this['id']=_0x469694['id'],this['bind'](_0x566e('0xe'))['to'](_0x469694),this[_0x566e('0xa')](_0x566e('0xd'),!0x1),this[_0x566e('0x5')]('_createdAtFormatted')['to'](this,_0x566e('0xe'),_0x3b8a2d=>_0x3b8a2d?_0x4540c9(_0x31443d[_0x566e('0x9')],_0x3b8a2d):void 0x0),this[_0x566e('0x4')]=_0x56731c,this[_0x566e('0x1')]({'tag':'div','attributes':{'class':['ck',_0x566e('0x8'),_0x566e('0x10'),'ck-revision-history-sidebar__subrevision',_0x248b26['if']('isSelected',_0x566e('0x3'))]},'children':[{'tag':_0x566e('0xc'),'attributes':{'class':['ck',_0x566e('0xf')]},'children':[{'text':_0x248b26['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x566e('0x2')]},'children':[new _0x75605b(_0x31443d,_0x469694[_0x566e('0x0')],!0x0)]}],'on':{'click':_0x248b26['to'](this[_0x566e('0x7')][_0x566e('0x5')](this))}});}[_0x566e('0x7')](){this[_0x566e('0xd')]=!0x0,this[_0x566e('0xb')](_0x566e('0x7'),{'parentId':this[_0x566e('0x4')]});}[_0x566e('0x6')](){this[_0x566e('0xd')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5690=['toLocaleTimeString','numeric','long','toLocaleDateString'];(function(_0x54bf8d,_0x569082){var _0x4d9528=function(_0x4a8fe7){while(--_0x4a8fe7){_0x54bf8d['push'](_0x54bf8d['shift']());}};_0x4d9528(++_0x569082);}(_0x5690,0x1c8));var _0x4d95=function(_0x54bf8d,_0x569082){_0x54bf8d=_0x54bf8d-0x0;var _0x4d9528=_0x5690[_0x54bf8d];return _0x4d9528;};export function dateToPrettyFormat(_0x3269ea,_0x2f8efe){return _0x2f8efe[_0x4d95('0x3')](_0x3269ea,{'month':_0x4d95('0x2'),'day':'numeric'})+',\x20'+_0x2f8efe[_0x4d95('0x0')](_0x3269ea,{'hour':_0x4d95('0x1'),'minute':_0x4d95('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xeac8=['revisionNameInputView','ck-responsive-form','locale','type','extendTemplate','arrowleft','Cancel','add','_focusCycler','focusFirst','Name\x20of\x20the\x20revision\x20(optional)','_createButton','Save','_focusables','value','keystrokes','input','focusTracker','ck-button-cancel','form','arrowdown','forEach','focus','fieldView','set','_createRevisionNameInput','submit','arrowup','ck-button-save','saveButtonView','reset','arrowright','check','revisionName','render','element','stopPropagation','label','trim','revisionNameInputValue','cancelButtonView'];(function(_0x282b4c,_0xeac874){const _0x4198a7=function(_0x3793b6){while(--_0x3793b6){_0x282b4c['push'](_0x282b4c['shift']());}};_0x4198a7(++_0xeac874);}(_0xeac8,0x10c));const _0x4198=function(_0x282b4c,_0xeac874){_0x282b4c=_0x282b4c-0x0;let _0x4198a7=_0xeac8[_0x282b4c];return _0x4198a7;};import{icons as _0x2dd3c2}from'ckeditor5/src/core';import{ButtonView as _0x5a1e0d,FocusCycler as _0x3ab011,LabeledFieldView as _0x3249b9,View as _0x5b7c74,ViewCollection as _0x298f7e,createLabeledInputText as _0x19b749,injectCssTransitionDisabler as _0x5cd4e2,submitHandler as _0xd78987}from'ckeditor5/src/ui';import{FocusTracker as _0x367cb8,KeystrokeHandler as _0x234dd2}from'ckeditor5/src/utils';import{getTranslation as _0x288e32}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5b7c74{constructor(_0x5bc0f5){super(_0x5bc0f5),this[_0x4198('0x24')]=new _0x367cb8(),this['keystrokes']=new _0x234dd2(),this['set'](_0x4198('0x11'),''),this[_0x4198('0x13')]=this[_0x4198('0x3')](),this['saveButtonView']=this['_createButton'](_0x288e32(_0x5bc0f5,_0x4198('0x1f')),_0x2dd3c2[_0x4198('0xa')],_0x4198('0x6')),this['saveButtonView'][_0x4198('0x16')]=_0x4198('0x4'),this[_0x4198('0x12')]=this[_0x4198('0x1e')](_0x288e32(_0x5bc0f5,_0x4198('0x19')),_0x2dd3c2['cancel'],_0x4198('0x25'),'cancel'),this[_0x4198('0x20')]=new _0x298f7e(),this['_focusCycler']=new _0x3ab011({'focusables':this['_focusables'],'focusTracker':this[_0x4198('0x24')],'keystrokeHandler':this[_0x4198('0x22')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['setTemplate']({'tag':_0x4198('0x26'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x4198('0x14')],'tabindex':'-1'},'children':[this[_0x4198('0x13')],this['saveButtonView'],this[_0x4198('0x12')]]}),_0x5cd4e2(this);}[_0x4198('0xc')](){super[_0x4198('0xc')](),_0xd78987({'view':this}),([this[_0x4198('0x13')],this[_0x4198('0x7')],this[_0x4198('0x12')]][_0x4198('0x28')](_0x2206df=>{this[_0x4198('0x20')][_0x4198('0x1a')](_0x2206df),this[_0x4198('0x24')]['add'](_0x2206df['element']);}),this[_0x4198('0x22')]['listenTo'](this[_0x4198('0xd')]));const _0x1cbe10=_0x245276=>_0x245276[_0x4198('0xe')]();this[_0x4198('0x22')][_0x4198('0x2')](_0x4198('0x9'),_0x1cbe10),this[_0x4198('0x22')][_0x4198('0x2')](_0x4198('0x18'),_0x1cbe10),this['keystrokes'][_0x4198('0x2')](_0x4198('0x5'),_0x1cbe10),this[_0x4198('0x22')][_0x4198('0x2')](_0x4198('0x27'),_0x1cbe10);}[_0x4198('0x0')](){this[_0x4198('0x1b')][_0x4198('0x1c')]();}get[_0x4198('0xb')](){return this[_0x4198('0x13')][_0x4198('0x1')][_0x4198('0xd')]['value'][_0x4198('0x10')]();}set['revisionName'](_0x5c1ae1){this[_0x4198('0x13')]['fieldView'][_0x4198('0xd')][_0x4198('0x21')]=_0x5c1ae1[_0x4198('0x10')]();}[_0x4198('0x8')](){this[_0x4198('0x13')]['fieldView']['element'][_0x4198('0x21')]='';}[_0x4198('0x3')](){const _0x3d10af=new _0x3249b9(this[_0x4198('0x15')],_0x19b749),_0x26c88b=_0x3d10af[_0x4198('0x1')];return _0x26c88b[_0x4198('0x17')]({'attributes':{'maxlength':'220'}}),_0x3d10af[_0x4198('0xf')]=_0x288e32(this['locale'],_0x4198('0x1d')),_0x26c88b['on'](_0x4198('0x23'),()=>{this[_0x4198('0x11')]=_0x26c88b['element'][_0x4198('0x21')]['trim']();}),_0x3d10af;}[_0x4198('0x1e')](_0x2ff035,_0x59ca6f,_0x27a368,_0x1eb8ba){const _0x427365=new _0x5a1e0d(this[_0x4198('0x15')]);return _0x427365[_0x4198('0x2')]({'label':_0x2ff035,'icon':_0x59ca6f,'tooltip':!0x0}),_0x427365[_0x4198('0x17')]({'attributes':{'class':_0x27a368}}),_0x1eb8ba&&_0x427365['delegate']('execute')['to'](this,_0x1eb8ba),_0x427365;}}
|