@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240123.0 → 0.0.0-nightly-20240125.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +5 -5
- 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 _0x274e=['deletions','showStack','toViewPosition','restoreRevisionCallback','parent','consume','activeView','from','-new','change:isEnabled','editor','loadRevisionData','_sortAndFilterDiffChanges','RevisionViewer','editing','addMarker:revision','vid_end','abs','all','return','_getViewForChange','requires','_refreshStartEndIndex','_processTape','find','changeId','destroy','data','isInline','nodeAfter','maxOffset','setAttribute','nextPosition','isReady','distance','isAtEnd','isIncorrect','vid_start','sort','upcast','isObject','domConverter','highest','_removeRevisionMarkers','splice','repository','toViewRange','getRoot','length','ck-revision-history-root-add','hasAttribute','selection','editingDowncast','isEqual','isContent','left','activeChange','addClass','unbindElementFromMarkerName','element','consumable','mapViewToDom','addMarker:revision-suggestion:insertion','_getChangeFromId','attachChange','conversion','showNextChange','RevisionsRepository','_markInsertions','getRevisionData','modelRange','markerNameToElements','ck-suggestion-marker','revision-suggestion','observeMarkers','refresh','suggestion','done','shift','mousedown','createPositionFromPath','startsWith','removeClass','_balloon','toData','currentChangeNumber','_revisions','map','has','ck-suggestion-marker--active','_changeView','updatePosition','ck-suggestion-marker-split','dataToMarker','numberOfChanges','markerToData','plugins','next','listenTo','isLimit','insert','_joinTapes','isNavigationMode','get','userId','createAttributeElement','isSuggestion','resolve','viewItem','isAfter','getChild','change','_getViewObj','item','delete','config','add','WidgetToolbarRepository','_markSuggestions','merge','for','view','side','_activeViewTarget','insertions','markerRange','getCustomProperty','ck-editor__editable__overlay','oldRevisionId','isRemoved','pairId','findIndex','isBlock','change:numberOfChanges','concat','affectsData','forceDisabled','ck-suggestion-marker-','change:activeView','mouseover','isBefore','string','name','isRemoveSuggestion','stop','comment','start','_removeMissingPairs','vid','document','type','toViewElement','_step','compare','mapper','authors','enableReadOnlyMode','flat','addRoot','diffData','nextSibling','children','markersStart','ck-revision-history-root-remove','wrap','_setConversion','writer','isAdded','_makeModelFromTape','addRevision','markers','revisionHistoryAttachChange','isEnabled','ck-revision-history-root-','_changeIdToChange','getRevisionRootsAttributes','deletion','getIndex','then','keys','getDomRoot','change:activeChange','isAttached','isCollapsed','bottom','revision-comment:','indexOf','init','level','low','getClientRects','endIndex','revision','getWalker','useFillerType','error','hasClass','model','attributes','domEvent','ck-revision-history-root--active','elementEnd','createUIElement','ck-suggestion-marker-merge','adapter','ck-suggestion-preview-marker-','removeMarker','_initInteractions','offsetSize','code','markerName','getAttribute','addHighlight','target','text','end','revisionHistoryLabel','forward','downcastDispatcher','getItems','set','showPreviousChange','_cleanUp','createRangeIn','includes','element:pre','rootName','push','startIndex','commands','addMarker:revision-suggestion:deletion','_setDistance','_findChangeIdFromDomTarget','_threeWayMerge','bind','_cleanMarkers','getRevision','isAddSuggestion','split','_getDiff','index','bindElementToMarker','addRevisionData','revision-suggestion:','unshift','data-change-id','span','isOnRoot','getRootNames','markersEnd','execute','_markMarkers','test','catch','locale','high','schema','clear','_makeTape','elementStart','_removeUnsupportedChanges','parse','attributesAfter','restoreRevision','dataDowncast','createPositionBefore','attribute:vid','values','reconvertMarker','filter','_appendChild','getAttributes','revision:','collaboration.channelId','_fixObsoleteTags','object','slice','right','remove','diff','enqueueChange','suggestion:','first','createRange','removeMarker:revision','revision-viewer','changes','previousPosition','_update','processor','revision-start','forEach','createRevision','detachRoot','uiElement','change:isReady','range','insertion','_markMismatchedRemovedTags','backward'];(function(_0x2ea8bd,_0x274e13){const _0x38d6be=function(_0x4fdd2f){while(--_0x4fdd2f){_0x2ea8bd['push'](_0x2ea8bd['shift']());}};_0x38d6be(++_0x274e13);}(_0x274e,0x70));const _0x38d6=function(_0x2ea8bd,_0x274e13){_0x2ea8bd=_0x2ea8bd-0x0;let _0x38d6be=_0x274e[_0x2ea8bd];return _0x38d6be;};import{Plugin as _0x21aad1,Command as _0x54dece}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x49236b}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x5b7b6d}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x138eb4,Element as _0xe8e4b0,Text as _0x56afd7,ViewDocumentFragment as _0x58b92d,ViewText as _0x21c16c,ViewElement as _0x2aa025,ViewContainerElement as _0x20e9f0,ViewAttributeElement as _0xa24bdd,ViewEmptyElement as _0x3465a4,ViewRawElement as _0x1374d2,ViewUIElement as _0x586148}from'ckeditor5/src/engine.js';import{Users as _0xaeb83d,getMarkerDomElement as _0x57de97}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x9942fd from'./ui/revisionviewer/changedetailsview.js';import _0x266224 from'./revisionsrepository.js';import _0x1006d4 from'./changeitem.js';import{default as _0x163332}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x427977}from'lodash-es';const tt={'c':_0x20e9f0,'a':_0xa24bdd,'e':_0x3465a4,'r':_0x1374d2,'u':_0x586148};export default class d extends _0x21aad1{static get['pluginName'](){return'RevisionViewer';}static get[_0x38d6('0xd1')](){return[_0xaeb83d,_0x5b7b6d,_0x266224];}constructor(_0x46bc6f){super(_0x46bc6f),this['repository']=this[_0x38d6('0xc6')]['plugins']['get'](_0x38d6('0xff')),this[_0x38d6('0x6c')](_0x38d6('0xf4'),null),this[_0x38d6('0x6c')]('activeView',null),this[_0x38d6('0xb')]=null,this[_0x38d6('0x6c')]('diff',null),this[_0x38d6('0x6c')](_0x38d6('0xdd'),!0x1),this[_0x38d6('0x6c')](_0x38d6('0x3c'),!0x0),this['on']('change:isEnabled',(_0x22d794,_0x2bbfa9,_0x539fa6)=>{this[_0x38d6('0xf4')]=null,this[_0x38d6('0xc2')]=null,this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x12b')](_0x383078=>{for(const _0x3b4fa6 of this['editor'][_0x38d6('0xca')]['view'][_0x38d6('0x25')]['roots'])_0x539fa6?_0x383078[_0x38d6('0x10e')](_0x38d6('0xf'),_0x3b4fa6):_0x383078[_0x38d6('0xf5')](_0x38d6('0xf'),_0x3b4fa6);});}),this[_0x38d6('0x7a')](_0x38d6('0x122'))['to'](this,_0x38d6('0xf4'),_0x137243=>null!==_0x137243),this['bind'](_0x38d6('0x111'))['to'](this,_0x38d6('0xdd'),this,_0x38d6('0xa7'),this,'activeChange',(_0x510aa4,_0x56fbf9,_0x485e37)=>_0x510aa4&&_0x485e37?_0x56fbf9['changes'][_0x38d6('0x41')](_0x485e37):0x0),this[_0x38d6('0x7a')](_0x38d6('0x11a'))['to'](this,'isReady',this,_0x38d6('0xa7'),(_0x287ca0,_0x55b2f6)=>_0x287ca0?_0x55b2f6['changes'][_0x38d6('0xec')]:0x0),this[_0x38d6('0x116')]=null,this[_0x38d6('0x3e')]=new Map(),this[_0x38d6('0x5c')]=null,this[_0x38d6('0x10f')]=this[_0x38d6('0xc6')][_0x38d6('0x11c')][_0x38d6('0x123')](_0x5b7b6d);}[_0x38d6('0x4b')](){const _0x4d708e=this[_0x38d6('0xc6')],_0x4c3967=new ShowChangeCommand(_0x4d708e,{'direction':_0x38d6('0xbb')}),_0x4626ed=new ShowChangeCommand(_0x4d708e,{'direction':_0x38d6('0x69')});(_0x4d708e[_0x38d6('0x75')][_0x38d6('0x4')](_0x38d6('0x6d'),_0x4c3967),_0x4d708e[_0x38d6('0x75')]['add'](_0x38d6('0xfe'),_0x4626ed),_0x4d708e[_0x38d6('0x75')][_0x38d6('0x4')](_0x38d6('0x97'),new RestoreRevisionCommand(_0x4d708e)),this['on'](_0x38d6('0x15'),()=>{_0x4c3967[_0x38d6('0x107')](),_0x4626ed['refresh']();}),this[_0x38d6('0x35')](),this['_initInteractions'](),_0x4d708e[_0x38d6('0x2c')](_0x38d6('0xad')),_0x4d708e[_0x38d6('0x11c')][_0x38d6('0x114')](_0x38d6('0x5')))&&_0x4d708e[_0x38d6('0x11c')][_0x38d6('0x123')](_0x38d6('0x5'))[_0x38d6('0x18')](_0x38d6('0xad'));}async[_0x38d6('0x101')](_0x1e42a9){await this['loadRevisionData'](_0x1e42a9);const _0x510a31={};for(const _0x244a21 in _0x1e42a9[_0x38d6('0x2f')]){if(_0x1e42a9[_0x38d6('0x2f')][_0x244a21]['attachChange']&&!_0x1e42a9[_0x38d6('0x2f')][_0x244a21][_0x38d6('0xfc')][_0x38d6('0x46')])continue;const _0x5bed2a=this[_0x38d6('0xe7')](JSON[_0x38d6('0x95')](_0x1e42a9[_0x38d6('0x2f')][_0x244a21]['insertions'])),_0x1f2343=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x25')],_0x2ef64a=new _0x58b92d(_0x1f2343,_0x5bed2a['map'](_0x28cbba=>this['_getViewObj'](_0x28cbba)));this[_0x38d6('0xc6')][_0x38d6('0xd7')][_0x38d6('0xb1')][_0x38d6('0x52')]('marked'),_0x510a31[_0x244a21]=this[_0x38d6('0xc6')][_0x38d6('0xd7')][_0x38d6('0xb1')][_0x38d6('0x110')](_0x2ef64a),this[_0x38d6('0xc6')][_0x38d6('0xd7')][_0x38d6('0xb1')][_0x38d6('0x52')]('default');}return _0x510a31;}async[_0x38d6('0x3f')](_0x9fad62){await this['loadRevisionData'](_0x9fad62);const _0x480d94={};for(const _0x3c01f7 in _0x9fad62[_0x38d6('0x2f')])_0x9fad62[_0x38d6('0x2f')][_0x3c01f7][_0x38d6('0xfc')]&&!_0x9fad62[_0x38d6('0x2f')][_0x3c01f7][_0x38d6('0xfc')]['isAttached']||(_0x480d94[_0x3c01f7]=_0x9fad62[_0x38d6('0x2f')][_0x3c01f7][_0x38d6('0x96')]||{});return _0x480d94;}[_0x38d6('0xe7')](_0x4a1cf0){return(_0x4a1cf0=_0x4a1cf0[_0x38d6('0x9d')](_0xb00f9=>!_0xb00f9['name']||_0x38d6('0xb2')!==_0xb00f9[_0x38d6('0x1e')]&&'revision-end'!==_0xb00f9[_0x38d6('0x1e')]))['forEach'](_0x456dba=>{_0x38d6('0x1d')!=typeof _0x456dba&&(_0x456dba[_0x38d6('0x31')]=this['_removeRevisionMarkers'](_0x456dba['children']),_0x456dba[_0x38d6('0x56')]=_0x456dba[_0x38d6('0x56')][_0x38d6('0x9d')](_0x5b27b4=>!_0x5b27b4[0x0]['startsWith']('data-revision-')));}),_0x4a1cf0;}async[_0x38d6('0x29')](_0x3e4344,_0x353a33,_0x18fc2f=!0x1){if(!this['isEnabled'])return;const _0x1223fa=this[_0x38d6('0xa7')],_0x28fa7d=this[_0x38d6('0xe9')],_0x2a4a7a=_0x38d6('0x1d')==typeof _0x3e4344?_0x28fa7d[_0x38d6('0x7c')](_0x3e4344):_0x3e4344,_0x2bb524=_0x38d6('0x1d')==typeof _0x353a33?_0x28fa7d[_0x38d6('0x7c')](_0x353a33):_0x353a33,_0x2859d9=_0x2a4a7a['id'],_0x3cda81=_0x2bb524?_0x2bb524['id']:null;if(!_0x18fc2f&&this[_0x38d6('0xa7')]&&this[_0x38d6('0xa7')]['newRevisionId']===_0x2859d9&&this[_0x38d6('0xa7')][_0x38d6('0x10')]===_0x3cda81)return Promise[_0x38d6('0x127')]();this[_0x38d6('0xdd')]=!0x1,this[_0x38d6('0xc2')]=null,this[_0x38d6('0xf4')]=null,this[_0x38d6('0xa7')]=new _0x163332(_0x2859d9,_0x3cda81);const _0x3265a8=this['_getRevisionsRange'](_0x2a4a7a,_0x2bb524,!0x0)[_0x38d6('0x113')](_0xc22796=>this[_0x38d6('0xc7')](_0xc22796));return _0x3265a8['push'](new Promise(_0x243903=>{setTimeout(_0x243903,0x14);})),Promise[_0x38d6('0xce')](_0x3265a8)['then'](()=>{if(!this['isEnabled'])return;this[_0x38d6('0x6e')]();const _0x3e1392=this['_getDiff'](_0x2859d9,_0x3cda81);for(const _0x54d8bf of _0x3e1392[_0x38d6('0xae')])this[_0x38d6('0x3e')][_0x38d6('0x6c')](_0x54d8bf['id'],_0x54d8bf);this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0xa8')]({'isUndoable':!0x1},_0x526676=>{for(const _0x186846 of this['editor'][_0x38d6('0x55')]['document']['getRootNames']())_0x526676[_0x38d6('0xb5')](_0x186846);for(const _0x3a8a08 of Object[_0x38d6('0x43')](_0x3e1392[_0x38d6('0x55')])){const _0x18a8af=_0x526676[_0x38d6('0x2e')](_0x3a8a08);for(const _0x1b63fb of Object[_0x38d6('0x43')](_0x3e1392[_0x38d6('0x56')][_0x3a8a08]))_0x526676['setAttribute'](_0x1b63fb,_0x3e1392[_0x38d6('0x56')][_0x3a8a08][_0x1b63fb],_0x18a8af);_0x526676[_0x38d6('0x120')](_0x3e1392['model'][_0x3a8a08],_0x18a8af,0x0);}}),this[_0x38d6('0xa7')]['_setChanges'](this[_0x38d6('0xc8')](_0x3e1392[_0x38d6('0xae')])),this['isReady']=!0x0;})[_0x38d6('0x8d')](_0x36e7f6=>{console[_0x38d6('0x53')](_0x36e7f6),this[_0x38d6('0x6e')](),_0x1223fa&&(this[_0x38d6('0xa7')]=_0x1223fa),this[_0x38d6('0xdd')]=!0x0;});}[_0x38d6('0x82')](_0x545ef4,_0x5bd979){const _0x27fc21=this[_0x38d6('0xe9')][_0x38d6('0xb4')](_0x545ef4);return _0x27fc21['on'](_0x38d6('0xb0'),(_0x45f9a8,_0x50089e,_0x27c7af)=>_0x5bd979(_0x50089e,_0x27c7af,_0x27fc21)),this[_0x38d6('0xe9')][_0x38d6('0x39')](_0x27fc21),_0x27fc21;}[_0x38d6('0xc7')](_0x57454){if(!_0x57454||_0x57454[_0x38d6('0x2f')])return Promise[_0x38d6('0x127')]();{const _0x45aced=this[_0x38d6('0xc6')][_0x38d6('0x3')][_0x38d6('0x123')](_0x38d6('0xa1'));return this[_0x38d6('0x5c')][_0x38d6('0x7c')]({'channelId':_0x45aced,'revisionId':_0x57454['id']})[_0x38d6('0x42')](_0x794697=>{_0x57454['_update']({'diffData':_0x794697[_0x38d6('0x2f')]},!0x0);});}}['_cleanUp'](){this[_0x38d6('0xf4')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x38d6('0x116')]['destroy'](),this[_0x38d6('0x116')]=null,this['_changeIdToChange'][_0x38d6('0x91')](),this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0xa8')]({'isUndoable':!0x1},_0x6cca75=>{for(const _0x333bf1 of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')][_0x38d6('0x88')]())_0x6cca75[_0x38d6('0xb5')](_0x333bf1);});}[_0x38d6('0xc8')](_0x3b8ce5){const _0x47a557=[],_0x38edc8=new Map();for(const _0x3ab14b of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')]['getRootNames']()){const _0x7a50b5=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x44')](_0x3ab14b);if(!_0x7a50b5)continue;const _0x5dcd46=_0x7a50b5[_0x38d6('0x4e')]()[_0x38d6('0x1')](0x0);_0x5dcd46&&(_0x47a557['push'](_0x3ab14b),_0x38edc8['set'](_0x3ab14b,_0x5dcd46));}return _0x47a557[_0x38d6('0xe2')]((_0x3fdfa7,_0x29473b)=>{const _0x226f69=_0x38edc8['get'](_0x3fdfa7),_0x11eae9=_0x38edc8[_0x38d6('0x123')](_0x29473b);return _0x226f69['y']-_0x11eae9['y']||_0x226f69['x']-_0x11eae9['x'];}),(_0x3b8ce5=_0x3b8ce5['filter'](_0x2a6bf4=>_0x47a557[_0x38d6('0x70')](_0x2a6bf4['rootName'])))[_0x38d6('0xe2')]((_0x21ee9f,_0x141442)=>_0x47a557[_0x38d6('0x4a')](_0x21ee9f[_0x38d6('0x72')])-_0x47a557[_0x38d6('0x4a')](_0x141442[_0x38d6('0x72')])),_0x3b8ce5;}['_makeTape'](_0x547b84){const _0x104e6e=Array[_0x38d6('0xc3')](_0x547b84[_0x38d6('0x3a')])[_0x38d6('0x9d')](([_0x594d35,_0x19e4f8])=>_0x594d35['startsWith'](_0x38d6('0xa0'))&&!_0x19e4f8[_0x38d6('0x47')]),_0x49a613=Array['from'](this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x6f')](_0x547b84)[_0x38d6('0x51')]({'singleCharacters':!0x0}));if(0x0!=_0x104e6e['length'])for(const _0x4a0c77 of _0x49a613){const [_0x510b1b,_0x51050c]=_0x104e6e[0x0],[,_0xac87e8,_0x156b3c]=_0x510b1b[_0x38d6('0x7e')](':');if(_0x51050c[_0x38d6('0x67')]['isEqual'](_0x4a0c77[_0x38d6('0xdc')])&&_0x104e6e[_0x38d6('0x10a')](),(_0x4a0c77[_0x38d6('0xaf')][_0x38d6('0xf1')](_0x51050c[_0x38d6('0x22')])||_0x4a0c77[_0x38d6('0xaf')][_0x38d6('0x129')](_0x51050c['start']))&&('insertion'==_0xac87e8?_0x4a0c77[_0x38d6('0x37')]={'userId':_0x156b3c}:'deletion'==_0xac87e8&&(_0x4a0c77[_0x38d6('0x11')]={'userId':_0x156b3c})),0x0==_0x104e6e[_0x38d6('0xec')])break;}return _0x49a613;}[_0x38d6('0xd2')](_0x56f713){const _0x3c8a2d=new Map();for(let _0x41f0f7=0x0;_0x41f0f7<_0x56f713[_0x38d6('0xec')];_0x41f0f7++)_0x38d6('0x66')===_0x56f713[_0x41f0f7][_0x38d6('0x26')]?(_0x56f713[_0x41f0f7][_0x38d6('0x1')][_0x38d6('0x74')]=_0x41f0f7,_0x56f713[_0x41f0f7]['item']['endIndex']=_0x41f0f7):(_0x38d6('0x93')===_0x56f713[_0x41f0f7][_0x38d6('0x26')]?_0x56f713[_0x41f0f7][_0x38d6('0x1')][_0x38d6('0x74')]=_0x41f0f7:_0x38d6('0x59')===_0x56f713[_0x41f0f7][_0x38d6('0x26')]&&(_0x56f713[_0x41f0f7]['item'][_0x38d6('0x4f')]=_0x41f0f7),_0x3c8a2d['set'](_0x56f713[_0x41f0f7]['id'],_0x41f0f7));for(const _0x11b33a of _0x3c8a2d[_0x38d6('0x9b')]())_0x38d6('0x93')===_0x56f713[_0x11b33a][_0x38d6('0x26')]?_0x56f713[_0x11b33a][_0x38d6('0x1')][_0x38d6('0x4f')]=_0x3c8a2d[_0x38d6('0x123')](_0x56f713[_0x11b33a]['pairId']):_0x38d6('0x59')===_0x56f713[_0x11b33a][_0x38d6('0x26')]&&(_0x56f713[_0x11b33a]['item']['startIndex']=_0x3c8a2d['get'](_0x56f713[_0x11b33a][_0x38d6('0x12')]));}['_processTape'](_0x10381a){for(let _0x4b2dfb=0x0;_0x4b2dfb<_0x10381a[_0x38d6('0xec')];_0x4b2dfb++){if(_0x38d6('0x93')===_0x10381a[_0x4b2dfb]['type'])_0x10381a[_0x4b2dfb]['item'][_0x38d6('0x74')]=_0x4b2dfb;else{if(_0x38d6('0x59')===_0x10381a[_0x4b2dfb][_0x38d6('0x26')]){_0x10381a[_0x4b2dfb]['item'][_0x38d6('0x4f')]=_0x4b2dfb;const _0x23aea5=_0x10381a[_0x4b2dfb]['item']['startIndex'];_0x10381a[_0x23aea5][_0x38d6('0x12')]=_0x10381a[_0x4b2dfb]['id'],_0x10381a[_0x4b2dfb][_0x38d6('0x12')]=_0x10381a[_0x23aea5]['id'];}else _0x10381a[_0x4b2dfb][_0x38d6('0x1')]['startIndex']=_0x4b2dfb,_0x10381a[_0x4b2dfb][_0x38d6('0x1')][_0x38d6('0x4f')]=_0x4b2dfb,_0x10381a[_0x4b2dfb][_0x38d6('0x12')]=null;}_0x10381a[_0x4b2dfb][_0x38d6('0x32')]||(_0x10381a[_0x4b2dfb][_0x38d6('0x32')]=[],_0x10381a[_0x4b2dfb][_0x38d6('0x89')]=[]);}}[_0x38d6('0x100')](_0x2c9a42,_0x490412){const _0x1852de=_0x2c9a42[_0x38d6('0x9d')](_0x14f0a4=>!_0x14f0a4[_0x38d6('0x37')]);for(let _0x1679b4=0x0;_0x1679b4<_0x490412[_0x38d6('0xec')];_0x1679b4++)_0x490412[_0x1679b4][_0x38d6('0x37')]&&(_0x1852de[_0x1679b4]['isAdded']=_0x490412[_0x1679b4]['isAdded']);}['_makeModelFromViewString'](_0x5c54c4){const _0x57188f=JSON[_0x38d6('0x95')](_0x5c54c4),_0x132607=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x25')],_0x453e3e=new _0x58b92d(_0x132607,_0x57188f['map'](_0xb8a15f=>this[_0x38d6('0x0')](_0xb8a15f)));return this[_0x38d6('0xc6')][_0x38d6('0xd7')]['toModel'](_0x453e3e);}['_getViewObj'](_0x344996){const _0x561149=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')]['document'];if(_0x38d6('0x1d')==typeof _0x344996)return new _0x21c16c(_0x561149,_0x344996);{const _0xf2220c=_0x344996[_0x38d6('0x31')]['map'](_0x1c3a11=>this[_0x38d6('0x0')](_0x1c3a11));return new(tt[_0x344996['type']]||_0x2aa025)(_0x561149,_0x344996['name'],_0x344996[_0x38d6('0x56')],_0xf2220c);}}[_0x38d6('0x7f')](_0x2cbcf3,_0x5b0f4a=null){const _0x59303f=this[_0x38d6('0xe9')][_0x38d6('0x7c')](_0x2cbcf3),_0x451763=_0x5b0f4a?this['repository'][_0x38d6('0x7c')](_0x5b0f4a):null,_0xc4a5b9=this['_getRevisionsRange'](_0x59303f,_0x451763),_0x2d6d60=_0xc4a5b9[_0xc4a5b9[_0x38d6('0xec')]-0x1],_0xed8e76=new Map(),_0x35cf36={'model':{},'attributes':{},'changes':[]},_0x470f46=new Set(),_0x17028b=new Map();for(let _0x4a1e0f=_0xc4a5b9['length']-0x1;_0x4a1e0f>=0x0;_0x4a1e0f--){const _0x2d3795=_0xc4a5b9[_0x4a1e0f];for(const _0x5a9fb5 of Object[_0x38d6('0x43')](_0x2d3795[_0x38d6('0x2f')]))if(_0x2d3795['diffData'][_0x5a9fb5][_0x38d6('0xfc')]){const _0x33edb4=_0x2d3795[_0x38d6('0x2f')][_0x5a9fb5][_0x38d6('0xfc')];_0x33edb4[_0x38d6('0x46')]?(_0x470f46['add'](_0x5a9fb5),_0x17028b['has'](_0x5a9fb5)&&_0x17028b['get'](_0x5a9fb5)[_0x38d6('0x124')]==_0x33edb4[_0x38d6('0x124')]?_0x17028b[_0x38d6('0x2')](_0x5a9fb5):_0x17028b[_0x38d6('0x6c')](_0x5a9fb5,_0x33edb4)):_0x17028b[_0x38d6('0x114')](_0x5a9fb5)?(_0x470f46[_0x38d6('0x2')](_0x5a9fb5),_0x17028b['delete'](_0x5a9fb5)):(_0x470f46[_0x38d6('0x4')](_0x5a9fb5),_0x17028b[_0x38d6('0x6c')](_0x5a9fb5,_0x33edb4));}else _0x470f46[_0x38d6('0x4')](_0x5a9fb5);}for(const _0x4b81d9 of _0x470f46){const _0x1a237c=_0x17028b[_0x38d6('0x114')](_0x4b81d9)&&!_0x17028b['get'](_0x4b81d9)[_0x38d6('0x46')];let _0xa9dda8=_0x1a237c?_0xc4a5b9[_0x38d6('0xec')]-0x1:0x0;const _0x1e3d5b=_0x1a237c?-0x1:0x1;for(;_0xc4a5b9[_0xa9dda8];){const _0xe83a05=_0xc4a5b9[_0xa9dda8];if(_0xe83a05['diffData'][_0x4b81d9]){const _0x52e5df=_0x1a237c?_0xe83a05[_0x38d6('0x2f')][_0x4b81d9]['attributesBefore']:_0xe83a05[_0x38d6('0x2f')][_0x4b81d9][_0x38d6('0x96')];_0x35cf36[_0x38d6('0x56')][_0x4b81d9]=_0x52e5df?_0x427977(_0x52e5df):{};break;}_0xa9dda8+=_0x1e3d5b;}}for(const _0x4e3b80 of _0xc4a5b9){_0x4e3b80[_0x38d6('0x55')]={};for(const _0x21fe56 of _0x4e3b80[_0x38d6('0x2b')])_0xed8e76[_0x38d6('0x6c')](_0x21fe56['id'],_0x21fe56);for(const _0xb678dd of _0x470f46){const _0x5a2c3a=_0x4e3b80[_0x38d6('0x2f')][_0xb678dd]?_0x4e3b80[_0x38d6('0x2f')][_0xb678dd][_0x38d6('0xc')]:'[]',_0x37f105=_0x4e3b80[_0x38d6('0x2f')][_0xb678dd]?_0x4e3b80[_0x38d6('0x2f')][_0xb678dd][_0x38d6('0xbc')]:'[]';_0x4e3b80[_0x38d6('0x55')][_0xb678dd]={'insertions':this['_makeModelFromViewString'](_0x5a2c3a),'deletions':this['_makeModelFromViewString'](_0x37f105)};}}for(const _0xa9c47d of _0x470f46){let _0x22ec12=null,_0x10aedf=0x0;const _0x3ac996=new Map(Array['from'](_0x59303f[_0x38d6('0x55')][_0xa9c47d][_0x38d6('0xc')][_0x38d6('0x3a')])[_0x38d6('0x9d')](([_0x34c474])=>!_0x34c474[_0x38d6('0x10d')](_0x38d6('0xa0'))));let _0x519089=0x0;for(const _0x427c5e of _0xc4a5b9){const _0x4b1886=this[_0x38d6('0x92')](_0x427c5e[_0x38d6('0x55')][_0xa9c47d]['insertions']);_0x427c5e==_0x59303f?(_0x22ec12=_0x4b1886,_0x10aedf=_0x22ec12[_0x38d6('0xec')],_0x22ec12[_0x38d6('0xb3')](_0x2bb7ed=>{_0x2bb7ed['id']=_0x519089++;}),this[_0x38d6('0xd3')](_0x22ec12)):this['_markInsertions'](_0x22ec12,_0x4b1886);const _0x42e63f=_0x22ec12[_0x38d6('0x9d')](_0x1e8240=>!_0x1e8240[_0x38d6('0x37')])[_0x38d6('0x113')](_0x5f4fd6=>_0x5f4fd6['id']);let _0x26db7c=0x0;const _0x75b508=this[_0x38d6('0x92')](_0x427c5e[_0x38d6('0x55')][_0xa9c47d][_0x38d6('0xbc')]);_0x75b508[_0x38d6('0xb3')](_0x3d33ff=>{_0x3d33ff[_0x38d6('0x11')]?_0x3d33ff['id']=_0x10aedf++:_0x3d33ff['id']=_0x42e63f[_0x26db7c++];}),this[_0x38d6('0xd3')](_0x75b508),this[_0x38d6('0x77')](_0x22ec12,_0x38d6('0x37')),this[_0x38d6('0x77')](_0x75b508,_0x38d6('0x11')),_0x427c5e==_0x59303f&&this[_0x38d6('0x8b')](_0x22ec12,_0x3ac996),_0x22ec12=this[_0x38d6('0x121')](_0x22ec12,_0x75b508),this['_refreshStartEndIndex'](_0x22ec12),this[_0x38d6('0x77')](_0x22ec12,_0x38d6('0x11'));}_0x22ec12=_0x22ec12[_0x38d6('0x9d')](_0x517906=>!(_0x517906[_0x38d6('0x37')]&&_0x517906['isRemoved']));const _0x3805c1=new Map(_0x2d6d60['model'][_0xa9c47d][_0x38d6('0xbc')][_0x38d6('0x3a')]),_0x231dfc=new Set(_0x3ac996[_0x38d6('0x43')]());for(const _0x509fc2 of _0x3805c1[_0x38d6('0x43')]())_0x231dfc[_0x38d6('0x2')](_0x509fc2);this[_0x38d6('0x6')](_0x22ec12,_0x231dfc),this[_0x38d6('0xa2')](_0x22ec12),_0x22ec12=this[_0x38d6('0x23')](_0x22ec12),_0x22ec12=this[_0x38d6('0xba')](_0x22ec12),_0x22ec12=this['_removeUnsupportedChanges'](_0x22ec12);const {root:_0x575b01,changes:_0x3f1f21}=this[_0x38d6('0x38')](_0x22ec12,_0xed8e76,_0xa9c47d);_0x35cf36[_0x38d6('0x55')][_0xa9c47d]=_0x575b01;const _0x49967c=_0x17028b[_0x38d6('0x123')](_0xa9c47d);if(_0x49967c){const _0x216068=_0xed8e76['get'](_0x49967c['userId']),_0x582bc3=new _0x1006d4({'author':_0x216068,'type':_0x49967c[_0x38d6('0x46')]?_0x38d6('0x4'):_0x38d6('0xa6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xa9c47d});_0x3f1f21[_0x38d6('0x84')](_0x582bc3),_0x35cf36[_0x38d6('0x56')][_0xa9c47d][_0x38d6('0x3b')]=_0x582bc3['id'];}_0x35cf36['changes']=_0x35cf36['changes'][_0x38d6('0x16')](_0x3f1f21);}return _0x35cf36;}[_0x38d6('0x8b')](_0x59ad97,_0x45ae01){for(let _0x504153=0x0;_0x504153<_0x59ad97[_0x38d6('0xec')];_0x504153++)for(const [_0x16ad83,_0x32f49d]of _0x45ae01)_0x32f49d[_0x38d6('0x22')][_0x38d6('0xf1')](_0x59ad97[_0x504153]['previousPosition'])&&_0x59ad97[_0x504153][_0x38d6('0x32')]['push'](_0x16ad83),_0x32f49d['end'][_0x38d6('0xf1')](_0x59ad97[_0x504153][_0x38d6('0xdc')])&&_0x59ad97[_0x504153][_0x38d6('0x89')][_0x38d6('0x73')](_0x16ad83);}['_joinTapes'](_0x561a66,_0x53fb94){let _0x2dccfc=[],_0x132217=0x0,_0x4daa7b=0x0;for(;_0x132217<_0x561a66[_0x38d6('0xec')]||_0x4daa7b<_0x53fb94[_0x38d6('0xec')];){const _0xcb73f5=_0x561a66[_0x132217]||{},_0x3f8cfb=_0x53fb94[_0x4daa7b]||{};if(_0xcb73f5['id']==_0x3f8cfb['id'])_0x132217++,_0x4daa7b++,_0x2dccfc['push'](_0xcb73f5);else{if(_0x3f8cfb[_0x38d6('0x11')]&&_0xcb73f5['isAdded']){const {commonTape:_0x10c2ba,iEnd:_0x2a3508,jEnd:_0xbfff78}=this[_0x38d6('0x79')](_0x561a66,_0x132217,_0x53fb94,_0x4daa7b);_0x2dccfc=_0x2dccfc[_0x38d6('0x16')](_0x10c2ba),_0x132217=_0x2a3508,_0x4daa7b=_0xbfff78;}else _0x3f8cfb[_0x38d6('0x11')]?(_0x4daa7b++,_0x2dccfc[_0x38d6('0x73')](_0x3f8cfb)):(_0x132217++,_0x2dccfc[_0x38d6('0x73')](_0xcb73f5));}}return _0x2dccfc;}[_0x38d6('0x6')](_0x2e92fd,_0x5b74a9){const _0x157d50=[];for(let _0x32afe2=0x0;_0x32afe2<_0x2e92fd[_0x38d6('0xec')];_0x32afe2++){for(let _0x5489de=0x0;_0x5489de<_0x2e92fd[_0x32afe2][_0x38d6('0x32')][_0x38d6('0xec')];_0x5489de++){const _0x3f4c74=_0x2e92fd[_0x32afe2][_0x38d6('0x32')][_0x5489de];if(!_0x5b74a9[_0x38d6('0x114')](_0x3f4c74))continue;const {group:_0x59395e,type:_0xf05394,authorId:_0x56f54}=_0x45b15e(_0x3f4c74);_0x38d6('0x105')!=_0x59395e||'insertion'!=_0xf05394&&_0x38d6('0x40')!=_0xf05394||(_0x157d50[_0x38d6('0x84')]({'type':_0xf05394,'name':_0x3f4c74,'userId':_0x56f54}),_0x2e92fd[_0x32afe2][_0x38d6('0x32')][_0x38d6('0xe8')](_0x5489de,0x1),_0x5489de--);}_0x5cc789(_0x2e92fd[_0x32afe2]);for(let _0x132c3a=0x0;_0x132c3a<_0x2e92fd[_0x32afe2][_0x38d6('0x89')][_0x38d6('0xec')];_0x132c3a++){const _0x20f1c2=_0x2e92fd[_0x32afe2]['markersEnd'][_0x132c3a];if(!_0x5b74a9['has'](_0x20f1c2))continue;const {group:_0x44ab32,type:_0xfc706d}=_0x45b15e(_0x20f1c2);if(_0x38d6('0x105')!=_0x44ab32||_0x38d6('0xb9')!=_0xfc706d&&'deletion'!=_0xfc706d)continue;_0x2e92fd[_0x32afe2][_0x38d6('0x89')][_0x38d6('0xe8')](_0x132c3a,0x1),_0x132c3a--;const _0x3c3ed8=_0x157d50[_0x38d6('0x13')](_0x194ecc=>_0x194ecc['name']==_0x20f1c2);_0x3c3ed8>-0x1&&_0x157d50[_0x38d6('0xe8')](_0x3c3ed8,0x1);}}function _0x45b15e(_0x1ed90a){const _0x1d0502=_0x1ed90a[_0x38d6('0x7e')](':');return{'group':_0x1d0502[0x0],'type':_0x1d0502[0x1],'subType':_0x1d0502[_0x38d6('0xec')]>=0x5?_0x1d0502[0x2]:null,'id':_0x1d0502[_0x38d6('0xec')]<0x5?_0x1d0502[0x2]:_0x1d0502[0x3],'authorId':_0x1d0502[_0x38d6('0xec')]<0x5?_0x1d0502[0x3]:_0x1d0502[0x4],'markerCount':0x6==_0x1d0502[_0x38d6('0xec')]?_0x1d0502[0x5]:null};}function _0x5cc789(_0x342fb5){for(let _0x196928=0x0;_0x196928<_0x157d50[_0x38d6('0xec')];_0x196928++){if(_0x342fb5[_0x38d6('0x37')]&&_0x38d6('0xb9')==_0x157d50[_0x196928][_0x38d6('0x26')])return _0x342fb5[_0x38d6('0x7d')]=_0x157d50[_0x196928],void delete _0x342fb5[_0x38d6('0x37')];if(!_0x342fb5[_0x38d6('0x37')]&&!_0x342fb5[_0x38d6('0x11')]&&_0x38d6('0x40')==_0x157d50[_0x196928]['type'])return void(_0x342fb5[_0x38d6('0x1f')]=_0x157d50[_0x196928]);}}}[_0x38d6('0x77')](_0x52fa28,_0x4131a1){let _0x2de451=0x0,_0x395068=!0x1;const _0x1f6dbe=new Map();for(const _0x3f4c2b of _0x52fa28)_0x3f4c2b[_0x4131a1]?_0x395068&&(_0x2de451++,_0x395068=!0x1):(_0x2de451++,_0x395068=!0x0),_0x1f6dbe[_0x38d6('0x6c')](_0x3f4c2b['id'],_0x2de451);for(let _0x2f6221=0x0;_0x2f6221<_0x52fa28['length'];_0x2f6221++){if('isRemoved'==_0x4131a1&&_0x52fa28[_0x2f6221][_0x38d6('0x37')]||_0x38d6('0x37')==_0x4131a1&&_0x52fa28[_0x2f6221][_0x38d6('0x11')])continue;if('text'==_0x52fa28[_0x2f6221][_0x38d6('0x26')]){_0x52fa28[_0x2f6221][_0x38d6('0xde')]=0x0;continue;}const _0x24ee3e=_0x1f6dbe[_0x38d6('0x123')](_0x52fa28[_0x2f6221][_0x38d6('0x12')]),_0x499b97=_0x1f6dbe['get'](_0x52fa28[_0x2f6221]['id']);_0x52fa28[_0x2f6221]['distance']=_0x24ee3e-_0x499b97;}}['_getRevisionsRange'](_0x3103c3,_0x52c1de,_0x2b9428=!0x1){const _0x2f723e=[];let _0x333b0c=this['repository'][_0x38d6('0x41')](_0x3103c3),_0x316ad2=this[_0x38d6('0xe9')]['getIndex'](_0x52c1de);for(-0x1==_0x316ad2&&(_0x316ad2=this[_0x38d6('0xe9')][_0x38d6('0x112')]['length'],_0x2b9428=!0x1);_0x333b0c<_0x316ad2;)_0x2f723e[_0x38d6('0x73')](this[_0x38d6('0xe9')][_0x38d6('0x7c')](_0x333b0c)),_0x333b0c++;return _0x2b9428&&_0x2f723e[_0x38d6('0x73')](this[_0x38d6('0xe9')]['getRevision'](_0x333b0c)),_0x2f723e;}[_0x38d6('0x79')](_0x490fb8,_0x498e0d,_0x344c41,_0x30cad6){const _0x58a146=this[_0x38d6('0xc6')][_0x38d6('0x55')]['schema'];let _0x218131=_0x498e0d;for(;_0x490fb8[_0x218131]&&_0x490fb8[_0x218131][_0x38d6('0x37')];)_0x218131++;let _0x113158=_0x30cad6;for(;_0x344c41[_0x113158]&&_0x344c41[_0x113158][_0x38d6('0x11')];)_0x113158++;_0x195dc5(_0x490fb8,_0x498e0d,_0x218131),_0x195dc5(_0x344c41,_0x30cad6,_0x113158);const _0x11ea9f=_0x344c41[_0x38d6('0xa4')](_0x30cad6,_0x113158)[_0x38d6('0x16')](_0x490fb8['slice'](_0x498e0d,_0x218131));return _0x11ea9f['sort']((_0x4cefd0,_0x55f0bf)=>_0x4cefd0['side']!=_0x55f0bf[_0x38d6('0xa')]?_0x4cefd0[_0x38d6('0xa')]-_0x55f0bf[_0x38d6('0xa')]:_0x4cefd0[_0x38d6('0x4c')]!=_0x55f0bf['level']?_0x4cefd0[_0x38d6('0x4c')]-_0x55f0bf[_0x38d6('0x4c')]:_0x4cefd0[_0x38d6('0xde')]!=_0x55f0bf[_0x38d6('0xde')]?_0x55f0bf['distance']-_0x4cefd0[_0x38d6('0xde')]:!!_0x4cefd0[_0x38d6('0x37')]!=!!_0x55f0bf[_0x38d6('0x37')]?-0x1==_0x4cefd0[_0x38d6('0xa')]||0x0==_0x4cefd0[_0x38d6('0xa')]?_0x4cefd0[_0x38d6('0x37')]?-0x1:0x1:_0x4cefd0[_0x38d6('0x37')]?0x1:-0x1:_0x4cefd0[_0x38d6('0x80')]-_0x55f0bf['index']),{'commonTape':_0x11ea9f,'iEnd':_0x218131,'jEnd':_0x113158};function _0x195dc5(_0x1b5283,_0x2e8b63,_0x15e744){let _0x5d9db9=-0x1,_0x363494=Number['POSITIVE_INFINITY'],_0x5bbfc3=!0x0;for(let _0xfb0201=_0x2e8b63;_0xfb0201<_0x15e744;_0xfb0201++)if(_0x58a146[_0x38d6('0xd8')](_0x1b5283[_0xfb0201][_0x38d6('0x1')])||(_0x5bbfc3=!0x1),_0x1b5283[_0xfb0201][_0x38d6('0x1')][_0x38d6('0x74')]<_0x2e8b63&&(_0x5d9db9=_0xfb0201),_0x1b5283[_0xfb0201][_0x38d6('0x1')]['endIndex']>=_0x15e744){_0x363494=_0xfb0201;break;}_0x5bbfc3&&(_0x5d9db9=_0x15e744-0x1);for(let _0x5407e3=_0x2e8b63;_0x5407e3<_0x15e744;_0x5407e3++)_0x1b5283[_0x5407e3][_0x38d6('0xa')]=_0x5407e3<=_0x5d9db9?-0x1:_0x5407e3<_0x363494?0x0:0x1,_0x1b5283[_0x5407e3][_0x38d6('0x80')]=_0x5407e3;let _0x3fcf64=0x0;for(let _0x1a5d87=_0x2e8b63;_0x1a5d87<=_0x5d9db9;_0x1a5d87++)0x0==_0x1b5283[_0x1a5d87][_0x38d6('0xde')]?_0x1b5283[_0x1a5d87][_0x38d6('0x4c')]=_0x3fcf64:(_0x3fcf64++,_0x1b5283[_0x1a5d87][_0x38d6('0x4c')]=_0x3fcf64,_0x3fcf64++);for(let _0x20ce72=_0x2e8b63;_0x20ce72<_0x15e744;_0x20ce72++)0x0==_0x1b5283[_0x20ce72][_0x38d6('0xa')]&&(_0x1b5283[_0x20ce72]['level']=_0x3fcf64);_0x3fcf64=0x0;for(let _0x284566=_0x15e744-0x1;_0x284566>=_0x363494;_0x284566--)0x0==_0x1b5283[_0x284566]['distance']?_0x1b5283[_0x284566]['level']=_0x3fcf64:(_0x3fcf64--,_0x1b5283[_0x284566][_0x38d6('0x4c')]=_0x3fcf64,_0x3fcf64--);}}[_0x38d6('0xa2')](_0xe43d32){const _0x585d4e=new Map(),_0x2ede09=this['editor']['model'][_0x38d6('0x90')];for(let _0x506971=0x1;_0x506971<_0xe43d32[_0x38d6('0xec')];_0x506971++){let _0x1957ea,_0x31d8a6,_0x43bd26;const _0x3eb691=_0xe43d32[_0x506971],_0x23207c=_0xe43d32[_0x506971-0x1];if('text'==_0x3eb691[_0x38d6('0x26')])continue;if(_0x3eb691[_0x38d6('0x26')]!=_0x23207c[_0x38d6('0x26')])continue;if(!_0x2ede09[_0x38d6('0x14')](_0x23207c[_0x38d6('0x1')])||_0x2ede09['isLimit'](_0x23207c[_0x38d6('0x1')]))continue;if(!_0x2ede09[_0x38d6('0x14')](_0x3eb691[_0x38d6('0x1')])||_0x2ede09[_0x38d6('0x11f')](_0x3eb691['item']))continue;if((_0xe43d32[_0x506971][_0x38d6('0x37')]||_0xe43d32[_0x506971][_0x38d6('0x7d')])&&_0xe43d32[_0x506971-0x1]['isRemoved'])_0x1957ea=_0xe43d32[_0x506971],_0x31d8a6=_0xe43d32[_0x506971-0x1],_0x43bd26=_0x506971-0x1;else{if(!_0xe43d32[_0x506971][_0x38d6('0x11')]||!_0xe43d32[_0x506971-0x1][_0x38d6('0x37')]&&!_0xe43d32[_0x506971-0x1][_0x38d6('0x7d')])continue;_0x1957ea=_0xe43d32[_0x506971-0x1],_0x31d8a6=_0xe43d32[_0x506971],_0x43bd26=_0x506971;}const _0x229b1c=_0x1957ea[_0x38d6('0x4c')]==_0x31d8a6[_0x38d6('0x4c')],_0x15692d=Math[_0x38d6('0xcd')](_0x1957ea[_0x38d6('0x4c')])<Math[_0x38d6('0xcd')](_0x31d8a6[_0x38d6('0x4c')])&&0x0==_0x31d8a6[_0x38d6('0xde')];(_0x229b1c||_0x15692d)&&(_0x585d4e[_0x38d6('0x6c')](_0x31d8a6['id'],_0x1957ea['id']),_0xe43d32[_0x38d6('0xe8')](_0x43bd26,0x1),_0x506971--,_0x1957ea[_0x38d6('0x37')]=!0x1);}for(let _0x1c7749=0x0;_0x1c7749<_0xe43d32['length'];_0x1c7749++)_0x585d4e[_0x38d6('0x114')](_0xe43d32[_0x1c7749]['pairId'])&&(_0xe43d32[_0x1c7749][_0x38d6('0x12')]=_0x585d4e['get'](_0xe43d32[_0x1c7749][_0x38d6('0x12')]));}[_0x38d6('0x23')](_0x5ed5a8){const _0x5ab91e=new Set(_0x5ed5a8[_0x38d6('0x113')](_0x4b98ce=>_0x4b98ce['id']));for(let _0x4cf114=0x0;_0x4cf114<_0x5ed5a8[_0x38d6('0xec')];_0x4cf114++)_0x5ab91e[_0x38d6('0x114')](_0x5ed5a8[_0x4cf114][_0x38d6('0x12')])||0x0==_0x5ed5a8[_0x4cf114][_0x38d6('0xde')]||(_0x5ed5a8[_0x4cf114]['isIncorrect']=!0x0);return _0x5ed5a8['filter'](_0x559575=>!_0x559575[_0x38d6('0xe0')]);}['_markMismatchedRemovedTags'](_0x217abc){const _0x38febd=new Set();for(let _0x512ba3=0x0;_0x512ba3<_0x217abc[_0x38d6('0xec')];_0x512ba3++){if(_0x38febd[_0x38d6('0x114')](_0x217abc[_0x512ba3]['id'])&&_0x217abc[_0x512ba3]['isRemoved']&&(_0x217abc[_0x512ba3][_0x38d6('0xe0')]=!0x0),_0x217abc[_0x512ba3][_0x38d6('0xe0')])continue;if(0x0==_0x217abc[_0x512ba3][_0x38d6('0xde')])continue;if('elementStart'!=_0x217abc[_0x512ba3][_0x38d6('0x26')])continue;if(null==_0x217abc[_0x512ba3][_0x38d6('0x12')])continue;let _0x5a8602=_0x512ba3+0x1,_0x2b63ad=0x0;for(;_0x217abc[_0x5a8602]['id']!=_0x217abc[_0x512ba3][_0x38d6('0x12')];)'elementStart'==_0x217abc[_0x5a8602][_0x38d6('0x26')]?_0x2b63ad++:_0x38d6('0x59')==_0x217abc[_0x5a8602][_0x38d6('0x26')]&&_0x2b63ad--,_0x5a8602++;if(0x0!=_0x2b63ad){if(_0x217abc[_0x512ba3][_0x38d6('0x11')])_0x217abc[_0x512ba3][_0x38d6('0xe0')]=!0x0;else for(;_0x5a8602!=_0x512ba3;)_0x217abc[_0x5a8602][_0x38d6('0x11')]&&0x0!=_0x217abc[_0x5a8602][_0x38d6('0xde')]&&(_0x217abc[_0x5a8602][_0x38d6('0xe0')]=!0x0,_0x38febd['add'](_0x217abc[_0x5a8602][_0x38d6('0x12')])),_0x5a8602--;}}return _0x217abc[_0x38d6('0x9d')](_0xeb95e8=>!_0xeb95e8[_0x38d6('0xe0')]);}[_0x38d6('0x94')](_0x5ae6c1){const _0x33ae9f=this['editor'][_0x38d6('0x55')]['schema'];for(let _0x49a806=0x0;_0x49a806<_0x5ae6c1[_0x38d6('0xec')];_0x49a806++){if(!(_0x5ae6c1[_0x49a806][_0x38d6('0x37')]||_0x5ae6c1[_0x49a806][_0x38d6('0x7d')]||_0x5ae6c1[_0x49a806][_0x38d6('0x11')]||_0x5ae6c1[_0x49a806]['isRemoveSuggestion']))continue;if(0x0==_0x5ae6c1[_0x49a806]['distance'])continue;const _0x4e3c27=_0x5ae6c1[_0x49a806][_0x38d6('0x1')];_0x33ae9f[_0x38d6('0x14')](_0x4e3c27)||_0x33ae9f[_0x38d6('0x11f')](_0x4e3c27)||(_0x5ae6c1[_0x49a806][_0x38d6('0x37')]&&delete _0x5ae6c1[_0x49a806][_0x38d6('0x37')],_0x5ae6c1[_0x49a806]['isAddSuggestion']&&delete _0x5ae6c1[_0x49a806][_0x38d6('0x7d')],_0x5ae6c1[_0x49a806][_0x38d6('0x1f')]&&delete _0x5ae6c1[_0x49a806]['isRemoveSuggestion'],_0x5ae6c1[_0x49a806][_0x38d6('0x11')]&&(_0x5ae6c1[_0x49a806][_0x38d6('0xe0')]=!0x0));}return _0x5ae6c1['filter'](_0x128fe3=>!_0x128fe3[_0x38d6('0xe0')]);}[_0x38d6('0x38')](_0x4b9e4b,_0x222cc9,_0xcb0a83){const _0x11475c=new _0x138eb4(),_0x291790=[],_0x592244=new Map(),_0x199c7a=this[_0x38d6('0xc6')]['model'],_0x2bd1cd=_0x199c7a[_0x38d6('0x90')],_0x4aa793=[_0x11475c],_0x1af3e1={},_0x377c27={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1ca0fb=null;const _0x391ddb=[0x0];for(let _0x2e5989=0x0;_0x2e5989<_0x4b9e4b[_0x38d6('0xec')];_0x2e5989++){let _0x52bb7a,_0x4d4009;if(_0x38d6('0x93')===_0x4b9e4b[_0x2e5989][_0x38d6('0x26')]){_0x52bb7a=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb);const _0x2af1cf=new _0xe8e4b0(_0x4b9e4b[_0x2e5989][_0x38d6('0x1')][_0x38d6('0x1e')],_0x4b9e4b[_0x2e5989]['item'][_0x38d6('0x9f')]());_0x4aa793[0x0]['_appendChild'](_0x2af1cf),_0x391ddb[_0x38d6('0x73')](0x0),_0x4aa793[_0x38d6('0x84')](_0x2af1cf),_0x4d4009=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x1ca0fb=null;}else{if('elementEnd'===_0x4b9e4b[_0x2e5989]['type'])_0x4aa793[_0x38d6('0x10a')](),_0x52bb7a=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x391ddb['pop'](),_0x391ddb[_0x391ddb[_0x38d6('0xec')]-0x1]++,_0x4d4009=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x1ca0fb=null;else{if(_0x52bb7a=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb),_0x1ca0fb&&_0x579b89(_0x1ca0fb,_0x4b9e4b[_0x2e5989][_0x38d6('0x1')]))_0x1ca0fb['_data']+=_0x4b9e4b[_0x2e5989][_0x38d6('0x1')]['data'];else{const _0x608c77=new _0x56afd7(_0x4b9e4b[_0x2e5989]['item'][_0x38d6('0xd7')],_0x4b9e4b[_0x2e5989][_0x38d6('0x1')]['getAttributes']());_0x4aa793[0x0][_0x38d6('0x9e')](_0x608c77),_0x1ca0fb=_0x608c77;}_0x391ddb[_0x391ddb[_0x38d6('0xec')]-0x1]+=_0x4b9e4b[_0x2e5989][_0x38d6('0x1')][_0x38d6('0x60')],_0x4d4009=_0x199c7a[_0x38d6('0x10c')](_0x11475c,_0x391ddb);}}for(const _0x185a3a of _0x4b9e4b[_0x2e5989][_0x38d6('0x32')])_0x592244[_0x38d6('0x6c')](_0x185a3a,{'start':_0x52bb7a,'end':null});_0x13d833(_0x38d6('0x1f'),_0x2e5989,_0x52bb7a,_0x4d4009),_0x13d833(_0x38d6('0x7d'),_0x2e5989,_0x52bb7a,_0x4d4009),_0x13d833(_0x38d6('0x11'),_0x2e5989,_0x52bb7a,_0x4d4009),_0x13d833(_0x38d6('0x37'),_0x2e5989,_0x52bb7a,_0x4d4009);for(const _0x2a1b11 of _0x4b9e4b[_0x2e5989][_0x38d6('0x89')]){_0x592244[_0x38d6('0x123')](_0x2a1b11)[_0x38d6('0x67')]=_0x4d4009;}}for(const [_0x133151,_0x2c8426]of _0x592244){const _0x26e7d7=this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0xab')](_0x2c8426[_0x38d6('0x22')],_0x2c8426['end']);_0x11475c[_0x38d6('0x3a')]['set'](_0x133151,_0x26e7d7);}return _0x291790['sort']((_0x294d4b,_0x43836e)=>{const _0x45aa5c=_0x11475c['markers']['get'](_0x38d6('0xa0')+_0x294d4b['id']),_0xb51bd2=_0x11475c[_0x38d6('0x3a')][_0x38d6('0x123')]('revision:'+_0x43836e['id']);return _0x45aa5c[_0x38d6('0x22')][_0x38d6('0x1c')](_0xb51bd2[_0x38d6('0x22')])?-0x1:_0x45aa5c['start']['isAfter'](_0xb51bd2[_0x38d6('0x22')])?0x1:_0x45aa5c[_0x38d6('0x67')][_0x38d6('0x1c')](_0xb51bd2[_0x38d6('0x67')])?-0x1:_0x45aa5c['end']['isAfter'](_0xb51bd2[_0x38d6('0x67')])?0x1:_0x38d6('0x4')===_0x294d4b[_0x38d6('0x26')]?-0x1:0x1;}),{'root':_0x11475c,'changes':_0x291790};function _0x13d833(_0x2a3277,_0x37fda0,_0x3e4c5f,_0x295eeb){const _0x558100=!!_0x4b9e4b[_0x37fda0][_0x2a3277],_0xef78a0=_0x558100?_0x4b9e4b[_0x37fda0][_0x2a3277][_0x38d6('0x124')]:null,_0xc7a8b1=_0x37fda0===_0x4b9e4b[_0x38d6('0xec')]-0x1,_0xa6bd77=_0x377c27[_0x2a3277][0x0],_0x5592af=_0x2bd1cd[_0x38d6('0xe4')](_0x4b9e4b[_0x37fda0][_0x38d6('0x1')]);!_0x1af3e1[_0x2a3277]&&_0x558100?_0x1af3e1[_0x2a3277]={'start':_0x3e4c5f,'tapeItem':_0x4b9e4b[_0x37fda0],'userId':_0xef78a0,'type':_0x2a3277}:_0x1af3e1[_0x2a3277]&&!_0x558100?(_0x1af3e1[_0x2a3277][_0x38d6('0x67')]=_0x3e4c5f,_0x6c5c39(_0x1af3e1[_0x2a3277]),_0x1af3e1[_0x2a3277]=null):_0x1af3e1[_0x2a3277]&&_0x558100&&_0x1af3e1[_0x2a3277]['userId']!==_0xef78a0&&(_0x1af3e1[_0x2a3277][_0x38d6('0x67')]=_0x3e4c5f,_0xa6bd77&&_0xa6bd77[_0x38d6('0x124')]===_0x1af3e1[_0x2a3277]['userId']||_0x6c5c39(_0x1af3e1[_0x2a3277]),_0x1af3e1[_0x2a3277]={'start':_0x3e4c5f,'tapeItem':_0x4b9e4b[_0x37fda0],'userId':_0xef78a0,'type':_0x2a3277}),_0x1af3e1[_0x2a3277]&&_0x5592af&&(_0x38d6('0x93')!==_0x4b9e4b[_0x37fda0][_0x38d6('0x26')]||_0xa6bd77&&_0xa6bd77['userId']===_0xef78a0||_0x377c27[_0x2a3277][_0x38d6('0x84')]({'userId':_0xef78a0,'object':_0x4b9e4b[_0x37fda0]['item'],'change':_0x1af3e1[_0x2a3277]}),_0x38d6('0x59')===_0x4b9e4b[_0x37fda0][_0x38d6('0x26')]&&_0xa6bd77&&_0xa6bd77[_0x38d6('0xa3')]===_0x4b9e4b[_0x37fda0][_0x38d6('0x1')]&&(_0x377c27[_0x2a3277][_0x38d6('0x10a')](),_0x1af3e1[_0x2a3277]=_0xa6bd77[_0x38d6('0x12b')])),_0x1af3e1[_0x2a3277]&&_0xc7a8b1&&(_0x1af3e1[_0x2a3277]['end']=_0x295eeb,_0x6c5c39(_0x1af3e1[_0x2a3277]),_0x1af3e1[_0x2a3277]=null);}function _0x6c5c39({start:_0xb0df54,end:_0x482603,tapeItem:_0x5a49bb,userId:_0x5c3dd8,type:_0x3c4c55}){const _0x547172=_0x5a49bb[_0x38d6('0x1')],_0x30e169=_0x199c7a[_0x38d6('0x90')]['isBlock'](_0x547172)&&!_0x199c7a[_0x38d6('0x90')]['isLimit'](_0x547172),_0x278d89=_0xb0df54['nodeAfter']==_0x482603['parent']&&_0x482603['isAtStart'];if(_0x30e169&&_0x278d89)return;const _0x381289=_0x199c7a['createRange'](_0xb0df54,_0x482603),_0x2cf9c4=_0x222cc9[_0x38d6('0x123')](_0x5c3dd8),_0x388227=new _0x1006d4({'author':_0x2cf9c4,'type':_0x38d6('0x37')==_0x3c4c55||_0x38d6('0x7d')==_0x3c4c55?'add':_0x38d6('0xa6'),'data':{'isSuggestion':_0x38d6('0x7d')==_0x3c4c55||_0x38d6('0x1f')==_0x3c4c55},'createdAt':new Date(),'rootName':_0xcb0a83});_0x291790[_0x38d6('0x73')](_0x388227),_0x11475c[_0x38d6('0x3a')]['set'](_0x38d6('0xa0')+_0x388227['id'],_0x381289);}function _0x579b89(_0x4ff532,_0x5cffe6){const _0x5c440c=_0x4ff532[_0x38d6('0x9f')](),_0x181a55=_0x5cffe6[_0x38d6('0x9f')]();for(const _0x3f5bdc of _0x5c440c){if(_0x3f5bdc[0x1]!==_0x5cffe6[_0x38d6('0x63')](_0x3f5bdc[0x0]))return!0x1;_0x181a55[_0x38d6('0x11d')]();}return _0x181a55['next']()[_0x38d6('0x109')];}}['_setConversion'](){this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0xe3'))['dataToMarker']({'view':'revision'}),this['editor'][_0x38d6('0xfd')][_0x38d6('0x8')]('editingDowncast')['markerToHighlight']({'model':_0x38d6('0x50'),'view':_0x38aebf=>{const _0x540a42=_0x38aebf[_0x38d6('0x62')]['split'](':')[0x1],_0x1ec958=this[_0x38d6('0xfb')](_0x540a42);if(!_0x1ec958)return null;const _0x442123='add'==_0x1ec958['type']?_0x38d6('0xb9'):'deletion',_0x3956bd=[_0x38d6('0x104'),'ck-suggestion-marker-'+_0x442123];return _0x1ec958[_0x38d6('0xd7')][_0x38d6('0x126')]&&_0x3956bd[_0x38d6('0x73')](_0x38d6('0x19')+_0x442123+'-new'),this[_0x38d6('0xf4')]==_0x1ec958&&_0x3956bd[_0x38d6('0x73')]('ck-suggestion-marker--active'),{'classes':_0x3956bd,'attributes':{'data-change-id':_0x540a42}};}}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')]('upcast')[_0x38d6('0x4')](_0x37ee22=>{_0x37ee22['on'](_0x38d6('0x71'),(_0x2e3c3a,_0x56a25f,_0x205a86)=>{const _0xea07d3=_0x56a25f['viewItem'][_0x38d6('0x12a')](0x0);if(!_0xea07d3||!_0xea07d3['is'](_0x38d6('0xf7'),_0x38d6('0x61')))return;if(!_0x205a86[_0x38d6('0xf8')][_0x38d6('0xc1')](_0xea07d3,{'attributes':[_0x38d6('0xe1'),_0x38d6('0xcc')]}))return;const _0x39cad9=_0x56a25f['modelRange']['start']['nodeAfter'];_0x205a86[_0x38d6('0x36')]['setAttribute'](_0x38d6('0xe1'),_0xea07d3['getAttribute'](_0x38d6('0xe1')),_0x39cad9),_0x205a86[_0x38d6('0x36')][_0x38d6('0xdb')](_0x38d6('0xcc'),_0xea07d3[_0x38d6('0x63')](_0x38d6('0xcc')),_0x39cad9);},{'priority':_0x38d6('0x4d')});}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')]('upcast')[_0x38d6('0x4')](_0x5cf491=>{_0x5cf491['on'](_0x38d6('0xf7'),(_0x42f8ba,_0x4d67c7,_0x1284d6)=>{if(!_0x1284d6[_0x38d6('0xf8')][_0x38d6('0xc1')](_0x4d67c7['viewItem'],{'attributes':[_0x38d6('0xe1'),_0x38d6('0xcc')]}))return;if(_0x4d67c7[_0x38d6('0x102')][_0x38d6('0x47')])return;const _0x536e62=_0x4d67c7[_0x38d6('0x102')][_0x38d6('0x22')][_0x38d6('0xd9')];_0x536e62[_0x38d6('0xee')]('vid_start')||_0x536e62[_0x38d6('0xee')](_0x38d6('0x24'))||(_0x1284d6[_0x38d6('0x36')][_0x38d6('0xdb')](_0x38d6('0xe1'),_0x4d67c7[_0x38d6('0x128')][_0x38d6('0x63')](_0x38d6('0xe1')),_0x536e62),_0x1284d6[_0x38d6('0x36')]['setAttribute'](_0x38d6('0xcc'),_0x4d67c7['viewItem'][_0x38d6('0x63')](_0x38d6('0xcc')),_0x536e62));},{'priority':_0x38d6('0x4d')});}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0xe3'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xf5f2c4=>_0xf5f2c4[_0x38d6('0x63')]('vid')}}),this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x90')]['on']('checkAttribute',(_0x5b3eee,[,_0x435a58])=>{[_0x38d6('0xe1'),_0x38d6('0xcc'),_0x38d6('0x24')][_0x38d6('0x70')](_0x435a58)&&(_0x5b3eee[_0x38d6('0xcf')]=!0x0,_0x5b3eee[_0x38d6('0x20')]());},{'priority':_0x38d6('0xe6')}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0x98'))[_0x38d6('0x4')](_0x5719df=>{_0x5719df['on'](_0x38d6('0x9a'),(_0x1fdb9d,_0x1f03ce,_0x542326)=>{if('\x20'!=_0x1f03ce[_0x38d6('0x1')]['data']||_0x1f03ce[_0x38d6('0x1')]['parent'][_0x38d6('0xda')]>0x1)return;if(!_0x542326[_0x38d6('0xf8')][_0x38d6('0xc1')](_0x1f03ce[_0x38d6('0x1')],_0x1fdb9d[_0x38d6('0x1e')]))return;const _0x4ab97a=_0x542326[_0x38d6('0x36')],_0x469c80=_0x542326[_0x38d6('0x2a')][_0x38d6('0xea')](_0x1f03ce[_0x38d6('0xb8')]);_0x4ab97a[_0x38d6('0x34')](_0x469c80,_0x4ab97a[_0x38d6('0x125')](_0x38d6('0x86')));});}),this['editor'][_0x38d6('0xfd')]['for'](_0x38d6('0x98'))[_0x38d6('0x11b')]({'model':_0x38d6('0x50')}),this['editor']['editing'][_0x38d6('0x6a')]['on'](_0x38d6('0xcb'),function(_0x26b20d){const _0x53ccee=_0x26b20d[_0x38d6('0x11c')][_0x38d6('0x123')](_0x38d6('0xc9'));return(_0x1282d1,_0x43d5fb,_0x2a632e)=>{const _0x525d45=_0x43d5fb[_0x38d6('0x62')][_0x38d6('0x7e')](':')[0x1],_0x2edd82=_0x53ccee[_0x38d6('0xfb')](_0x525d45);if(!_0x2edd82)return null;const _0x533e4c=_0x38d6('0x4')==_0x2edd82[_0x38d6('0x26')]?_0x38d6('0x7e'):_0x38d6('0x7');if(!_0x2a632e[_0x38d6('0xf8')][_0x38d6('0x8c')](_0x43d5fb[_0x38d6('0xd')],_0x1282d1[_0x38d6('0x1e')]))return;const _0x5b4b61=_0x43d5fb[_0x38d6('0xd')]['getWalker'](),_0x19f60b=_0x43d5fb[_0x38d6('0xd')][_0x38d6('0x22')],_0x19ec3f=_0x26b20d[_0x38d6('0x55')]['schema'];let _0x1265b0=null,_0x471de9=null,_0x5b4068=!0x1,_0x147946=!0x1;for(const _0x50aa69 of _0x5b4b61){const _0xe44f3b=_0x50aa69['item'];_0x5b4068=_0x5b4068||_0x19ec3f[_0x38d6('0xf2')](_0xe44f3b);const _0x38a098=_0x2a632e[_0x38d6('0x2a')][_0x38d6('0x27')](_0xe44f3b);if(_0x38a098&&_0x38a098[_0x38d6('0xe')](_0x38d6('0x64')))return;_0x38d6('0x59')==_0x50aa69[_0x38d6('0x26')]&&(_0x19ec3f[_0x38d6('0x14')](_0xe44f3b)&&!_0x19ec3f[_0x38d6('0x11f')](_0xe44f3b)&&(_0xe44f3b[_0x38d6('0x30')]||_0x19f60b[_0x38d6('0xdf')]?_0x1265b0&&_0x1265b0['parent']==_0xe44f3b||(_0x1265b0=_0xe44f3b,_0x795fae(_0x50aa69['previousPosition']),_0x147946=!0x0):_0x471de9=_0x471de9||_0x50aa69[_0x38d6('0xaf')]));}function _0x795fae(_0x16752c){const _0x498b4f=_0x2a632e['writer'][_0x38d6('0x5a')](_0x38d6('0x86'),{'class':_0x38d6('0x19')+_0x533e4c}),_0x4a71b2=_0x2a632e['mapper'][_0x38d6('0xbe')](_0x16752c);_0x2edd82[_0x38d6('0xd7')]['isSuggestion']&&_0x2a632e[_0x38d6('0x36')]['addClass'](_0x38d6('0x19')+_0x533e4c+_0x38d6('0xc4'),_0x498b4f),_0x53ccee[_0x38d6('0xf4')]==_0x2edd82&&_0x2a632e['writer'][_0x38d6('0xf5')](_0x38d6('0x115'),_0x498b4f),_0x2a632e[_0x38d6('0x36')][_0x38d6('0x120')](_0x4a71b2,_0x498b4f),_0x2a632e[_0x38d6('0x2a')]['bindElementToMarker'](_0x498b4f,_0x43d5fb[_0x38d6('0x62')]);}_0x5b4068||_0x147946||!_0x471de9||_0x795fae(_0x471de9);};}(this[_0x38d6('0xc6')]),{'priority':_0x38d6('0x8f')}),this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0xac'),(_0x3b33b0,_0xd1b889,_0x3132c0)=>{const _0x57470e=_0x3132c0['mapper'][_0x38d6('0x103')](_0xd1b889[_0x38d6('0x62')]);if(_0x57470e)for(const _0x49bed4 of _0x57470e)(_0x49bed4[_0x38d6('0x54')](_0x38d6('0x118'))||_0x49bed4['hasClass'](_0x38d6('0x5b')))&&(_0x3132c0[_0x38d6('0x2a')][_0x38d6('0xf6')](_0x49bed4,_0xd1b889[_0x38d6('0x62')]),_0x3132c0[_0x38d6('0x36')][_0x38d6('0xa6')](_0x49bed4));},{'priority':_0x38d6('0x8f')}),this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0xcb'),(_0x2cf62e,_0x4b33a7,_0x54f488)=>{const _0x28ea2f=_0x4b33a7[_0x38d6('0x62')][_0x38d6('0x7e')](':')[0x1],_0x211f31=this['_getChangeFromId'](_0x28ea2f);if(!_0x211f31)return null;const _0x594e5b=_0x38d6('0x4')==_0x211f31[_0x38d6('0x26')]?_0x38d6('0x7e'):_0x38d6('0x7');if(_0x54f488['consumable']['test'](_0x4b33a7[_0x38d6('0xd')],_0x2cf62e[_0x38d6('0x1e')]))for(const _0x51e0f1 of _0x4b33a7[_0x38d6('0xd')][_0x38d6('0x6b')]()){if(!_0x51e0f1['is'](_0x38d6('0xf7'),'softBreak'))continue;const _0x48a309=_0x54f488[_0x38d6('0x36')][_0x38d6('0x5a')](_0x38d6('0x86'),{'class':_0x38d6('0x19')+_0x594e5b}),_0x36ee64=_0x54f488[_0x38d6('0x2a')][_0x38d6('0xbe')](this['editor'][_0x38d6('0x55')][_0x38d6('0x99')](_0x51e0f1));_0x211f31['data']['isSuggestion']&&_0x54f488[_0x38d6('0x36')][_0x38d6('0xf5')](_0x38d6('0x19')+_0x594e5b+'-new',_0x48a309),this[_0x38d6('0xf4')]==_0x211f31&&_0x54f488[_0x38d6('0x36')]['addClass']('ck-suggestion-marker--active',_0x48a309),_0x54f488[_0x38d6('0x36')][_0x38d6('0x120')](_0x36ee64,_0x48a309),_0x54f488[_0x38d6('0x2a')][_0x38d6('0x81')](_0x48a309,_0x4b33a7['markerName']);}},{'priority':_0x38d6('0x8f')}),this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')]['on']('change',()=>{this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x12b')](_0x55f9f0=>{for(const _0x1644dd of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')][_0x38d6('0x88')]()){const _0x35c830=this[_0x38d6('0xc6')][_0x38d6('0x55')]['document'][_0x38d6('0xeb')](_0x1644dd),_0x4b6ffd=this[_0x38d6('0xc6')][_0x38d6('0xca')][_0x38d6('0x9')][_0x38d6('0x25')][_0x38d6('0xeb')](_0x1644dd);if(_0x4b6ffd){const _0x74cf2c=_0x35c830['getAttribute'](_0x38d6('0x3b'));if(_0x55f9f0['removeAttribute'](_0x38d6('0x85'),_0x4b6ffd),_0x55f9f0[_0x38d6('0x10e')](_0x38d6('0xed'),_0x4b6ffd),_0x55f9f0[_0x38d6('0x10e')](_0x38d6('0x33'),_0x4b6ffd),_0x55f9f0[_0x38d6('0x10e')](_0x38d6('0x58'),_0x4b6ffd),_0x74cf2c){const _0x10f4e5=this[_0x38d6('0xfb')](_0x74cf2c);if(!_0x10f4e5)return null;_0x55f9f0[_0x38d6('0xdb')](_0x38d6('0x85'),_0x74cf2c,_0x4b6ffd),_0x55f9f0[_0x38d6('0xf5')](_0x38d6('0x3d')+_0x10f4e5[_0x38d6('0x26')],_0x4b6ffd),this[_0x38d6('0xf4')]==_0x10f4e5&&_0x55f9f0[_0x38d6('0xf5')]('ck-revision-history-root--active',_0x4b6ffd);}}}});}),this[_0x38d6('0xc6')][_0x38d6('0xfd')]['for'](_0x38d6('0xe3'))[_0x38d6('0x119')]({'view':_0x38d6('0x21'),'model':_0x16fc8c=>_0x38d6('0x49')+_0x16fc8c,'converterPriority':_0x38d6('0xe6')}),this[_0x38d6('0xc6')][_0x38d6('0xfd')]['for'](_0x38d6('0xe3'))[_0x38d6('0x119')]({'view':_0x38d6('0x108'),'model':_0x355a61=>_0x38d6('0x83')+_0x355a61,'converterPriority':_0x38d6('0xe6')}),this['editor']['conversion'][_0x38d6('0x8')](_0x38d6('0x98'))[_0x38d6('0x11b')]({'model':_0x38d6('0x105'),'view':_0x43ac4e=>({'name':_0x38d6('0xa9')+_0x43ac4e,'group':_0x38d6('0x105')}),'converterPriority':_0x38d6('0xe6')}),this[_0x38d6('0xc6')][_0x38d6('0xfd')][_0x38d6('0x8')](_0x38d6('0xf0'))['markerToHighlight']({'model':_0x38d6('0x105'),'view':_0x92f050=>{const _0x355f15=_0x92f050['markerName'][_0x38d6('0x7e')](':')[0x1];return'insertion'!=_0x355f15&&_0x38d6('0x40')!=_0x355f15?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x355f15]};}}),this['editor'][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0x76'),et(this[_0x38d6('0xc6')],_0x38d6('0x7')),{'priority':'high'}),this['editor'][_0x38d6('0xca')][_0x38d6('0x6a')]['on'](_0x38d6('0xfa'),et(this[_0x38d6('0xc6')],_0x38d6('0x7e')),{'priority':'high'}),this['editor'][_0x38d6('0xca')][_0x38d6('0x6a')]['on']('removeMarker:revision-suggestion',(_0x418a24,_0x2abfe0,_0x279ccc)=>{const _0x41000b=_0x279ccc[_0x38d6('0x2a')][_0x38d6('0x103')](_0x2abfe0['markerName']);if(_0x41000b)for(const _0x34c3a7 of _0x41000b)_0x34c3a7['is'](_0x38d6('0xb6'))&&(_0x279ccc[_0x38d6('0x2a')]['unbindElementFromMarkerName'](_0x34c3a7,_0x2abfe0[_0x38d6('0x62')]),_0x279ccc[_0x38d6('0x36')][_0x38d6('0xa6')](_0x34c3a7));},{'priority':'high'});}[_0x38d6('0xfb')](_0x10fd3e){return this[_0x38d6('0x3e')][_0x38d6('0x123')](_0x10fd3e);}[_0x38d6('0xd0')](_0x3987a1){return this['_changeView']&&this[_0x38d6('0x116')][_0x38d6('0xd6')](),this[_0x38d6('0x116')]=new _0x9942fd(this[_0x38d6('0xc6')][_0x38d6('0x8e')],_0x3987a1),this[_0x38d6('0x116')];}[_0x38d6('0x5f')](){this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x25')][_0x38d6('0xef')][_0x38d6('0x106')](_0x38d6('0x50')),this['on'](_0x38d6('0x1a'),(_0x37b1b2,_0x6ee4c2,_0x5a150b,_0x310736)=>{_0x310736&&this[_0x38d6('0x10f')][_0x38d6('0xa6')](_0x310736),_0x5a150b&&(this[_0x38d6('0x10f')][_0x38d6('0x4')]({'view':_0x5a150b,'stackId':_0x38d6('0x68'),'position':{'target':()=>{const _0x1637c6=this[_0x38d6('0xc6')][_0x38d6('0xca')],_0x1dc78e=this['_getChangeFromId'](_0x5a150b[_0x38d6('0xd5')]);let _0x48fce1;if(_0x1dc78e['data']['isOnRoot']){const _0x27a9e4=_0x1637c6['view'][_0x38d6('0x44')](_0x1dc78e[_0x38d6('0x72')]);_0x48fce1=Array[_0x38d6('0xc3')](_0x27a9e4[_0x38d6('0x4e')]());}else{const _0xb39524=this[_0x38d6('0xc6')]['model']['markers'][_0x38d6('0x123')](_0x38d6('0xa0')+_0x5a150b[_0x38d6('0xd5')]);_0x48fce1=Array[_0x38d6('0xc3')](_0x1637c6[_0x38d6('0x2a')][_0x38d6('0x103')](_0xb39524[_0x38d6('0x1e')]))[_0x38d6('0x113')](_0x45a6e3=>_0x1637c6[_0x38d6('0x9')][_0x38d6('0xe5')][_0x38d6('0xf9')](_0x45a6e3))['map'](_0x150be5=>Array[_0x38d6('0xc3')](_0x150be5[_0x38d6('0x4e')]()))[_0x38d6('0x2d')]();}if(!this[_0x38d6('0xb')])return _0x48fce1[0x0];return _0x48fce1[_0x38d6('0xd4')](_0x2e26d6=>_0x2e26d6['top']-0x3<=this[_0x38d6('0xb')]['y']&&_0x2e26d6[_0x38d6('0x48')]+0x3>=this[_0x38d6('0xb')]['y']&&_0x2e26d6[_0x38d6('0xf3')]-0x3<=this[_0x38d6('0xb')]['x']&&_0x2e26d6[_0x38d6('0xa5')]+0x3>=this[_0x38d6('0xb')]['x'])||_0x48fce1[0x0];}}}),this['_balloon'][_0x38d6('0xbd')](_0x38d6('0x68')));}),this['on'](_0x38d6('0x45'),(_0x4ddb6b,_0x620b7f,_0x403b28,_0xefbbdc)=>{this[_0x38d6('0xc2')]=_0x403b28?this[_0x38d6('0xd0')](_0x403b28):null,this['editor'][_0x38d6('0x55')][_0x38d6('0x12b')](()=>{const _0x3ad2bf=this['editor'][_0x38d6('0xca')];_0xefbbdc&&(_0xefbbdc[_0x38d6('0xd7')][_0x38d6('0x87')]?_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x12b')](_0x554b71=>{_0x554b71['removeClass'](_0x38d6('0x58'),_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x25')]['getRoot'](_0xefbbdc[_0x38d6('0x72')]));}):_0x3ad2bf[_0x38d6('0x9c')]('revision:'+_0xefbbdc['id'])),_0x403b28&&(_0x403b28[_0x38d6('0xd7')][_0x38d6('0x87')]?_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x12b')](_0x3450fc=>{_0x3450fc[_0x38d6('0xf5')]('ck-revision-history-root--active',_0x3ad2bf[_0x38d6('0x9')][_0x38d6('0x25')][_0x38d6('0xeb')](_0x403b28[_0x38d6('0x72')]));}):_0x3ad2bf[_0x38d6('0x9c')](_0x38d6('0xa0')+_0x403b28['id']));});}),this[_0x38d6('0x11e')](this['editor'][_0x38d6('0xca')][_0x38d6('0x9')]['document'],_0x38d6('0x1b'),(_0x42a98b,_0x486638)=>{if(this['activeChange'])return;const _0x22e919=this[_0x38d6('0x78')](_0x486638[_0x38d6('0x65')]),_0x2c8899=this['_changeIdToChange'][_0x38d6('0x123')](_0x22e919);_0x2c8899?(this[_0x38d6('0xb')]={'x':_0x486638[_0x38d6('0x57')]['x'],'y':_0x486638[_0x38d6('0x57')]['y']},this[_0x38d6('0xc2')]=this['_getViewForChange'](_0x2c8899)):(this[_0x38d6('0xb')]=null,this[_0x38d6('0xc2')]=null);}),this[_0x38d6('0x11e')](this[_0x38d6('0xc6')]['editing'][_0x38d6('0x9')][_0x38d6('0x25')],_0x38d6('0x10b'),(_0x111499,_0x63275b)=>{const _0x248e5b=this['_findChangeIdFromDomTarget'](_0x63275b[_0x38d6('0x65')]),_0x3ad38d=this[_0x38d6('0x3e')][_0x38d6('0x123')](_0x248e5b);_0x3ad38d?(this[_0x38d6('0xb')]={'x':_0x63275b[_0x38d6('0x57')]['x'],'y':_0x63275b[_0x38d6('0x57')]['y']},_0x3ad38d===this[_0x38d6('0xf4')]?this[_0x38d6('0x10f')][_0x38d6('0x117')]():this[_0x38d6('0xf4')]=_0x3ad38d):(this['_activeViewTarget']=null,this[_0x38d6('0xf4')]=null);});}['_findChangeIdFromDomTarget'](_0x5dcb4a){do{const _0x1c513f=_0x5dcb4a[_0x38d6('0x63')]('data-change-id');if(_0x1c513f)return _0x1c513f;_0x5dcb4a=_0x5dcb4a[_0x38d6('0xc0')];}while(_0x5dcb4a);return null;}[_0x38d6('0x7b')](){this[_0x38d6('0xc6')]['model']['change'](_0x1407dc=>{for(const _0x1c599c of this[_0x38d6('0xc6')][_0x38d6('0x55')][_0x38d6('0x3a')])_0x1407dc[_0x38d6('0x5e')](_0x1c599c);});}}function et(_0x2bd9c9,_0x3806c6){return(_0x3f40e6,_0x34d700,_0x12bc2f)=>{if(!_0x12bc2f[_0x38d6('0xf8')][_0x38d6('0x8c')](_0x34d700[_0x38d6('0xd')],_0x3f40e6[_0x38d6('0x1e')]))return;const _0x5d9587=_0x34d700[_0x38d6('0xd')][_0x38d6('0x51')](),_0x5625b3=_0x34d700['markerRange'][_0x38d6('0x22')],_0x36455e=_0x2bd9c9[_0x38d6('0x55')][_0x38d6('0x90')];let _0x4d4b5f=null,_0x9b55d=null,_0x1aeae0=!0x1,_0xd5266=!0x1;for(const _0x2ee411 of _0x5d9587){const _0x1bd173=_0x2ee411[_0x38d6('0x1')];_0x1aeae0=_0x1aeae0||_0x36455e['isContent'](_0x1bd173);const _0x53a543=_0x12bc2f[_0x38d6('0x2a')]['toViewElement'](_0x1bd173);if(_0x53a543&&_0x53a543[_0x38d6('0xe')]('addHighlight'))return;'elementEnd'==_0x2ee411['type']&&(_0x36455e[_0x38d6('0x14')](_0x1bd173)&&!_0x36455e['isLimit'](_0x1bd173)&&(_0x1bd173[_0x38d6('0x30')]||_0x5625b3[_0x38d6('0xdf')]?_0x4d4b5f&&_0x4d4b5f[_0x38d6('0xc0')]==_0x1bd173||(_0x4d4b5f=_0x1bd173,_0x3bd1ac(_0x2ee411[_0x38d6('0xaf')]),_0xd5266=!0x0):_0x9b55d=_0x9b55d||_0x2ee411[_0x38d6('0xaf')]));}function _0x3bd1ac(_0x373da0){const _0x4deb5d=_0x12bc2f[_0x38d6('0x2a')][_0x38d6('0xbe')](_0x373da0),_0x2be293=_0x12bc2f[_0x38d6('0x36')]['createUIElement'](_0x38d6('0x86'),{'class':_0x38d6('0x5d')+_0x3806c6});_0x12bc2f[_0x38d6('0x36')][_0x38d6('0x120')](_0x4deb5d,_0x2be293),_0x12bc2f['mapper'][_0x38d6('0x81')](_0x2be293,_0x34d700['markerName']);}_0x1aeae0||_0xd5266||!_0x9b55d||_0x3bd1ac(_0x9b55d);};}export class RestoreRevisionCommand extends _0x54dece{constructor(_0x1b1d66){super(_0x1b1d66);const _0x51ab3a=_0x1b1d66[_0x38d6('0x11c')]['get'](d);this[_0x38d6('0x17')]=!0x1,this[_0x38d6('0x11e')](_0x51ab3a,_0x38d6('0xb7'),()=>this[_0x38d6('0x107')]()),this['listenTo'](_0x51ab3a,'change:isEnabled',()=>this[_0x38d6('0x107')]());}['execute'](){const _0x3079d0=this[_0x38d6('0xc6')],_0x366b25=_0x3079d0['plugins']['get'](d),_0xc03be6=_0x366b25[_0x38d6('0xdd')]?_0x366b25[_0x38d6('0xa7')]['newRevisionId']:null;_0x3079d0[_0x38d6('0x3')]['get']('revisionHistory')[_0x38d6('0xbf')](_0xc03be6);}[_0x38d6('0x107')](){const {isReady:_0x2f861a,isEnabled:_0x359cb2}=this['editor'][_0x38d6('0x11c')][_0x38d6('0x123')](d);this[_0x38d6('0x3c')]=_0x2f861a&&_0x359cb2;}}export class ShowChangeCommand extends _0x54dece{constructor(_0x415e16,{direction:_0x4488c1}){super(_0x415e16);const _0x2c5222=_0x415e16['plugins']['get'](d);this[_0x38d6('0x17')]=!0x1,this['_step']='forward'===_0x4488c1?0x1:-0x1,this['listenTo'](_0x2c5222,_0x38d6('0xb7'),()=>this['refresh']()),this[_0x38d6('0x11e')](_0x2c5222,_0x38d6('0xc5'),()=>this[_0x38d6('0x107')]()),this['listenTo'](_0x2c5222,_0x38d6('0x45'),()=>this[_0x38d6('0x107')]());}[_0x38d6('0x8a')](){const _0x50752e=this[_0x38d6('0xc6')],_0x358c72=_0x50752e[_0x38d6('0x11c')]['get'](d),{isNavigationMode:_0xce8d28,currentChangeNumber:_0x6a2785}=_0x358c72;let _0x3eeb48;if(_0x358c72[_0x38d6('0xf4')]=_0xce8d28?_0x358c72[_0x38d6('0xa7')][_0x38d6('0xae')][_0x38d6('0x123')](_0x6a2785+this[_0x38d6('0x28')]):_0x358c72[_0x38d6('0xa7')][_0x38d6('0xae')][_0x38d6('0xaa')],_0x358c72[_0x38d6('0xf4')]['data'][_0x38d6('0x87')])_0x3eeb48=_0x50752e['editing'][_0x38d6('0x9')][_0x38d6('0x44')](_0x358c72[_0x38d6('0xf4')][_0x38d6('0x72')]);else{const _0x400c8f=_0x50752e[_0x38d6('0x55')][_0x38d6('0x3a')][_0x38d6('0x123')](_0x38d6('0xa0')+_0x358c72[_0x38d6('0xf4')]['id']);_0x3eeb48=_0x57de97(_0x50752e[_0x38d6('0xca')],_0x400c8f);}_0x49236b({'target':_0x3eeb48,'viewportOffset':0x28});}[_0x38d6('0x107')](){const {isNavigationMode:_0x2c19ca,currentChangeNumber:_0x443242,numberOfChanges:_0x22bb87,isReady:_0x3df6fa,isEnabled:_0x22e618}=this[_0x38d6('0xc6')][_0x38d6('0x11c')][_0x38d6('0x123')](d);this[_0x38d6('0x3c')]=!!(_0x22e618&&_0x3df6fa&&_0x22bb87)&&(!_0x2c19ca||(0x1===this['_step']?_0x443242<_0x22bb87-0x1:_0x443242>0x0));}}
|
|
23
|
+
const _0x2673=['detachRoot','newRevisionId','vid_start','level','isLimit','split','clear','authors','_data','insert','isEqual','pop','getIndex','removeAttribute','return','getDomRoot','hasClass','dataDowncast','from','listenTo','ck-revision-history-root-add','_changeIdToChange','init','highest','_appendChild','top','_removeMissingPairs','plugins','domConverter','createUIElement','start','change:activeChange','markerToData','resolve','remove','bottom','isSuggestion','change:isEnabled','modelRange','checkAttribute','affectsData','_update','isOnRoot','requires','processor','_markSuggestions','upcast','_markMismatchedRemovedTags','ck-editor__editable__overlay','enableReadOnlyMode','createRange','conversion','indexOf','revision-suggestion','range','_sortAndFilterDiffChanges','endIndex','RevisionsRepository','toData','downcastDispatcher','isEnabled','getItems','change:numberOfChanges','side','vid','ck-suggestion-marker--active','numberOfChanges','hasAttribute','removeMarker:revision-suggestion','delete','repository','getAttribute','has','enqueueChange','revision','isCollapsed','_cleanUp','forceDisabled','domEvent','revision-suggestion:','index','addMarker:revision','roots','toViewPosition','distance','_getViewObj','high','marked','editingDowncast','viewItem','then','useFillerType','isAfter','mouseover','model','for','done','_getRevisionsRange','splice','isNavigationMode','userId','shift','vid_end','unshift','_makeModelFromTape','uiElement','refresh','get','isIncorrect','removeMarker:revision','revisionHistoryAttachChange','next','rootName','isRemoveSuggestion','consume','sort','_findChangeIdFromDomTarget','code','getAttributes','restoreRevision','getRootNames','suggestion:','dataToMarker','isReady','change:activeView','ck-suggestion-marker-','_setDistance','ck-suggestion-marker-merge','getClientRects','activeView','forward','addRevisionData','execute','nodeAfter','isBlock','parse','insertion','nextSibling','startsWith','_processTape','target','mapper','-new','map','addHighlight','consumable','locale','markerName','_fixObsoleteTags','isAtStart','forEach','children','attachChange','isAddSuggestion','_step','elementEnd','toViewRange','changeId','commands','elementToAttribute','config','isContent','startIndex','document','markerNameToElements','_makeTape','markerRange','observeMarkers','abs','toViewElement','getRevisionData','_activeViewTarget','push','keys','data-revision-','set','removeClass','softBreak','parent','attributesBefore','activeChange','bindElementToMarker','length','slice','addMarker:revision-suggestion:deletion','error','test','markersStart','addRoot','toModel','elementStart','_refreshStartEndIndex','markersEnd','find','attributes','first','item','nextPosition','_balloon','restoreRevisionCallback','reconvertMarker','suggestion','setAttribute','ck-revision-history-root--active','createAttributeElement','data-change-id','schema','data','isAdded','name','adapter','maxOffset','_cleanMarkers','isRemoved','isAttached','WidgetToolbarRepository','concat','attribute:vid','changes','all','revision-start','_removeUnsupportedChanges','ck-revision-history-root-remove','getWalker','writer','deletion','_changeView','wrap','revision-end','markerToHighlight','string','editing','ck-suggestion-preview-marker','showPreviousChange','removeMarker','_getViewForChange','pairId','revisionHistoryLabel','compare','getChild','getCustomProperty','destroy','merge','left','offsetSize','catch','insertions','RevisionViewer','editor','createPositionFromPath','createRevision','mapViewToDom','ck-suggestion-marker-split','diffData','getRoot','showNextChange','filter','addClass','view','collaboration.channelId','change','getRevision','markers','_removeRevisionMarkers','bind','revision-comment:','element','revisionHistory','_getChangeFromId','diff','addMarker:revision-suggestion:insertion','isInline','type','_setChanges','span','default','_markInsertions','_markMarkers','pluginName','add','loadRevisionData','previousPosition','revision-viewer','end','includes','_makeModelFromViewString','revision:'];(function(_0x497ee5,_0x26739c){const _0x52792a=function(_0x171923){while(--_0x171923){_0x497ee5['push'](_0x497ee5['shift']());}};_0x52792a(++_0x26739c);}(_0x2673,0x199));const _0x5279=function(_0x497ee5,_0x26739c){_0x497ee5=_0x497ee5-0x0;let _0x52792a=_0x2673[_0x497ee5];return _0x52792a;};import{Plugin as _0x56fb61,Command as _0x113455}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x33d52d}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x26fbf5}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x365d5e,Element as _0x35edab,Text as _0x332f37,ViewDocumentFragment as _0xa4eac6,ViewText as _0x2f792b,ViewElement as _0x4f4a84,ViewContainerElement as _0x28f750,ViewAttributeElement as _0x38ca71,ViewEmptyElement as _0x1d563d,ViewRawElement as _0x106bf2,ViewUIElement as _0x1cd42d}from'ckeditor5/src/engine.js';import{Users as _0x587a05,getMarkerDomElement as _0x3a8ef3}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x45e674 from'./ui/revisionviewer/changedetailsview.js';import _0x2460fd from'./revisionsrepository.js';import _0xf556c2 from'./changeitem.js';import{default as _0x57c75d}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x29b2d5}from'lodash-es';const tt={'c':_0x28f750,'a':_0x38ca71,'e':_0x1d563d,'r':_0x106bf2,'u':_0x1cd42d};export default class d extends _0x56fb61{static get[_0x5279('0x9c')](){return _0x5279('0x7d');}static get[_0x5279('0xd0')](){return[_0x587a05,_0x26fbf5,_0x2460fd];}constructor(_0x6e388){super(_0x6e388),this[_0x5279('0xeb')]=this['editor']['plugins'][_0x5279('0x110')](_0x5279('0xde')),this[_0x5279('0x35')](_0x5279('0x3a'),null),this[_0x5279('0x35')](_0x5279('0x7'),null),this['_activeViewTarget']=null,this['set'](_0x5279('0x93'),null),this[_0x5279('0x35')](_0x5279('0x1'),!0x1),this[_0x5279('0x35')](_0x5279('0xe1'),!0x0),this['on'](_0x5279('0xca'),(_0x34d5af,_0x3e5db4,_0x363eeb)=>{this[_0x5279('0x3a')]=null,this[_0x5279('0x7')]=null,this[_0x5279('0x7e')][_0x5279('0x6d')]['view']['change'](_0x329c84=>{for(const _0x5074ae of this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0x29')][_0x5279('0xf7')])_0x363eeb?_0x329c84[_0x5279('0x36')](_0x5279('0xd5'),_0x5074ae):_0x329c84['addClass'](_0x5279('0xd5'),_0x5074ae);});}),this[_0x5279('0x8e')](_0x5279('0x108'))['to'](this,'activeChange',_0x3cbe9f=>null!==_0x3cbe9f),this[_0x5279('0x8e')]('currentChangeNumber')['to'](this,'isReady',this,'diff',this,_0x5279('0x3a'),(_0x435511,_0x3c1b4a,_0xd39f73)=>_0x435511&&_0xd39f73?_0x3c1b4a[_0x5279('0x60')][_0x5279('0xb1')](_0xd39f73):0x0),this['bind'](_0x5279('0xe7'))['to'](this,_0x5279('0x1'),this,_0x5279('0x93'),(_0x17a1a3,_0x6a60c8)=>_0x17a1a3?_0x6a60c8['changes'][_0x5279('0x3c')]:0x0),this[_0x5279('0x68')]=null,this[_0x5279('0xba')]=new Map(),this[_0x5279('0x58')]=null,this['_balloon']=this[_0x5279('0x7e')][_0x5279('0xc0')][_0x5279('0x110')](_0x26fbf5);}[_0x5279('0xbb')](){const _0x23bcb4=this['editor'],_0x26602b=new ShowChangeCommand(_0x23bcb4,{'direction':'backward'}),_0x280631=new ShowChangeCommand(_0x23bcb4,{'direction':_0x5279('0x8')});(_0x23bcb4[_0x5279('0x24')]['add'](_0x5279('0x6f'),_0x26602b),_0x23bcb4[_0x5279('0x24')][_0x5279('0x9d')](_0x5279('0x85'),_0x280631),_0x23bcb4[_0x5279('0x24')]['add'](_0x5279('0x11c'),new RestoreRevisionCommand(_0x23bcb4)),this['on'](_0x5279('0xe3'),()=>{_0x26602b[_0x5279('0x10f')](),_0x280631[_0x5279('0x10f')]();}),this['_setConversion'](),this['_initInteractions'](),_0x23bcb4[_0x5279('0xd6')](_0x5279('0xa0')),_0x23bcb4['plugins'][_0x5279('0xed')](_0x5279('0x5d')))&&_0x23bcb4['plugins'][_0x5279('0x110')]('WidgetToolbarRepository')[_0x5279('0xf2')]('revision-viewer');}async[_0x5279('0x30')](_0x27ac38){await this[_0x5279('0x9e')](_0x27ac38);const _0x555a89={};for(const _0x167d35 in _0x27ac38[_0x5279('0x83')]){if(_0x27ac38[_0x5279('0x83')][_0x167d35]['attachChange']&&!_0x27ac38['diffData'][_0x167d35][_0x5279('0x1e')]['isAttached'])continue;const _0x3b286d=this[_0x5279('0x8d')](JSON[_0x5279('0xd')](_0x27ac38['diffData'][_0x167d35][_0x5279('0x7c')])),_0x26bd49=this[_0x5279('0x7e')][_0x5279('0x6d')]['view'][_0x5279('0x29')],_0x3e08a4=new _0xa4eac6(_0x26bd49,_0x3b286d['map'](_0x259aa2=>this[_0x5279('0xfa')](_0x259aa2)));this['editor'][_0x5279('0x55')][_0x5279('0xd1')][_0x5279('0x100')](_0x5279('0xfc')),_0x555a89[_0x167d35]=this[_0x5279('0x7e')][_0x5279('0x55')][_0x5279('0xd1')][_0x5279('0xdf')](_0x3e08a4),this[_0x5279('0x7e')][_0x5279('0x55')]['processor'][_0x5279('0x100')](_0x5279('0x99'));}return _0x555a89;}async['getRevisionRootsAttributes'](_0x35e997){await this[_0x5279('0x9e')](_0x35e997);const _0x59e996={};for(const _0x21e3bd in _0x35e997['diffData'])_0x35e997['diffData'][_0x21e3bd][_0x5279('0x1e')]&&!_0x35e997[_0x5279('0x83')][_0x21e3bd]['attachChange'][_0x5279('0x5c')]||(_0x59e996[_0x21e3bd]=_0x35e997[_0x5279('0x83')][_0x21e3bd]['attributesAfter']||{});return _0x59e996;}[_0x5279('0x8d')](_0x1aa001){return(_0x1aa001=_0x1aa001[_0x5279('0x86')](_0x3ce1c5=>!_0x3ce1c5[_0x5279('0x57')]||_0x5279('0x62')!==_0x3ce1c5['name']&&_0x5279('0x6a')!==_0x3ce1c5[_0x5279('0x57')]))['forEach'](_0x38d987=>{_0x5279('0x6c')!=typeof _0x38d987&&(_0x38d987[_0x5279('0x1d')]=this[_0x5279('0x8d')](_0x38d987['children']),_0x38d987[_0x5279('0x48')]=_0x38d987[_0x5279('0x48')][_0x5279('0x86')](_0x520ec6=>!_0x520ec6[0x0][_0x5279('0x10')](_0x5279('0x34'))));}),_0x1aa001;}async[_0x5279('0x74')](_0x4c0282,_0xabd852,_0x4c90f4=!0x1){if(!this[_0x5279('0xe1')])return;const _0x1fd572=this['diff'],_0x4a3d3d=this[_0x5279('0xeb')],_0x1788c0=_0x5279('0x6c')==typeof _0x4c0282?_0x4a3d3d[_0x5279('0x8b')](_0x4c0282):_0x4c0282,_0x4c6985=_0x5279('0x6c')==typeof _0xabd852?_0x4a3d3d[_0x5279('0x8b')](_0xabd852):_0xabd852,_0x2377b3=_0x1788c0['id'],_0x53593b=_0x4c6985?_0x4c6985['id']:null;if(!_0x4c90f4&&this[_0x5279('0x93')]&&this[_0x5279('0x93')][_0x5279('0xa6')]===_0x2377b3&&this[_0x5279('0x93')]['oldRevisionId']===_0x53593b)return Promise[_0x5279('0xc6')]();this[_0x5279('0x1')]=!0x1,this[_0x5279('0x7')]=null,this['activeChange']=null,this[_0x5279('0x93')]=new _0x57c75d(_0x2377b3,_0x53593b);const _0x3e91df=this[_0x5279('0x106')](_0x1788c0,_0x4c6985,!0x0)[_0x5279('0x15')](_0x1bf226=>this[_0x5279('0x9e')](_0x1bf226));return _0x3e91df[_0x5279('0x32')](new Promise(_0x4debf8=>{setTimeout(_0x4debf8,0x14);})),Promise[_0x5279('0x61')](_0x3e91df)[_0x5279('0xff')](()=>{if(!this['isEnabled'])return;this[_0x5279('0xf1')]();const _0x2c51a7=this['_getDiff'](_0x2377b3,_0x53593b);for(const _0x477a43 of _0x2c51a7[_0x5279('0x60')])this[_0x5279('0xba')][_0x5279('0x35')](_0x477a43['id'],_0x477a43);this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0xee')]({'isUndoable':!0x1},_0x520a29=>{for(const _0x17b12d of this['editor'][_0x5279('0x103')][_0x5279('0x29')][_0x5279('0x11d')]())_0x520a29['detachRoot'](_0x17b12d);for(const _0x224d57 of Object[_0x5279('0x33')](_0x2c51a7[_0x5279('0x103')])){const _0x22ccd4=_0x520a29[_0x5279('0x42')](_0x224d57);for(const _0x49049f of Object[_0x5279('0x33')](_0x2c51a7['attributes'][_0x224d57]))_0x520a29['setAttribute'](_0x49049f,_0x2c51a7[_0x5279('0x48')][_0x224d57][_0x49049f],_0x22ccd4);_0x520a29[_0x5279('0xae')](_0x2c51a7[_0x5279('0x103')][_0x224d57],_0x22ccd4,0x0);}}),this['diff'][_0x5279('0x97')](this[_0x5279('0xdc')](_0x2c51a7['changes'])),this[_0x5279('0x1')]=!0x0;})[_0x5279('0x7b')](_0x167fae=>{console[_0x5279('0x3f')](_0x167fae),this['_cleanUp'](),_0x1fd572&&(this[_0x5279('0x93')]=_0x1fd572),this[_0x5279('0x1')]=!0x0;});}[_0x5279('0x9')](_0x4d7d97,_0xb986d4){const _0x4754db=this[_0x5279('0xeb')][_0x5279('0x80')](_0x4d7d97);return _0x4754db['on'](_0x5279('0xce'),(_0x404058,_0x2e57e7,_0x415439)=>_0xb986d4(_0x2e57e7,_0x415439,_0x4754db)),this[_0x5279('0xeb')]['addRevision'](_0x4754db),_0x4754db;}[_0x5279('0x9e')](_0x1f1a5f){if(!_0x1f1a5f||_0x1f1a5f[_0x5279('0x83')])return Promise[_0x5279('0xc6')]();{const _0x26139d=this[_0x5279('0x7e')]['config'][_0x5279('0x110')](_0x5279('0x89'));return this[_0x5279('0x58')]['getRevision']({'channelId':_0x26139d,'revisionId':_0x1f1a5f['id']})['then'](_0x2d7658=>{_0x1f1a5f['_update']({'diffData':_0x2d7658[_0x5279('0x83')]},!0x0);});}}['_cleanUp'](){this[_0x5279('0x3a')]=null,this[_0x5279('0x5a')](),this[_0x5279('0x68')]&&this[_0x5279('0x68')][_0x5279('0x77')](),this[_0x5279('0x68')]=null,this['_changeIdToChange'][_0x5279('0xab')](),this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0xee')]({'isUndoable':!0x1},_0x368bcb=>{for(const _0x5c3df7 of this[_0x5279('0x7e')]['model'][_0x5279('0x29')][_0x5279('0x11d')]())_0x368bcb[_0x5279('0xa5')](_0x5c3df7);});}['_sortAndFilterDiffChanges'](_0x4a3eaa){const _0x1c4681=[],_0x4b5637=new Map();for(const _0xf41587 of this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x29')][_0x5279('0x11d')]()){const _0x4647b1=this['editor'][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0xb4')](_0xf41587);if(!_0x4647b1)continue;const _0x2fd3f0=_0x4647b1['getClientRects']()[_0x5279('0x4a')](0x0);_0x2fd3f0&&(_0x1c4681[_0x5279('0x32')](_0xf41587),_0x4b5637['set'](_0xf41587,_0x2fd3f0));}return _0x1c4681[_0x5279('0x118')]((_0x2600c2,_0x2909f1)=>{const _0x2bcba1=_0x4b5637['get'](_0x2600c2),_0x80a5f=_0x4b5637[_0x5279('0x110')](_0x2909f1);return _0x2bcba1['y']-_0x80a5f['y']||_0x2bcba1['x']-_0x80a5f['x'];}),(_0x4a3eaa=_0x4a3eaa['filter'](_0x1e895b=>_0x1c4681[_0x5279('0xa2')](_0x1e895b[_0x5279('0x115')])))[_0x5279('0x118')]((_0xd5944,_0x36899d)=>_0x1c4681[_0x5279('0xd9')](_0xd5944[_0x5279('0x115')])-_0x1c4681[_0x5279('0xd9')](_0x36899d[_0x5279('0x115')])),_0x4a3eaa;}[_0x5279('0x2b')](_0xcc0862){const _0xc2d75=Array['from'](_0xcc0862[_0x5279('0x8c')])['filter'](([_0x4be03b,_0x150ac9])=>_0x4be03b[_0x5279('0x10')](_0x5279('0xa4'))&&!_0x150ac9[_0x5279('0xf0')]),_0x2480e1=Array['from'](this[_0x5279('0x7e')][_0x5279('0x103')]['createRangeIn'](_0xcc0862)[_0x5279('0x65')]({'singleCharacters':!0x0}));if(0x0!=_0xc2d75['length'])for(const _0x3a0d04 of _0x2480e1){const [_0x2b5262,_0x535c27]=_0xc2d75[0x0],[,_0x142ba1,_0x4d0d89]=_0x2b5262[_0x5279('0xaa')](':');if(_0x535c27['end'][_0x5279('0xaf')](_0x3a0d04[_0x5279('0x4b')])&&_0xc2d75[_0x5279('0x10a')](),(_0x3a0d04['previousPosition']['isEqual'](_0x535c27[_0x5279('0xc3')])||_0x3a0d04['previousPosition'][_0x5279('0x101')](_0x535c27[_0x5279('0xc3')]))&&(_0x5279('0xe')==_0x142ba1?_0x3a0d04[_0x5279('0x56')]={'userId':_0x4d0d89}:_0x5279('0x67')==_0x142ba1&&(_0x3a0d04['isRemoved']={'userId':_0x4d0d89})),0x0==_0xc2d75[_0x5279('0x3c')])break;}return _0x2480e1;}[_0x5279('0x45')](_0x369503){const _0xa6ef85=new Map();for(let _0x3cb7a2=0x0;_0x3cb7a2<_0x369503[_0x5279('0x3c')];_0x3cb7a2++)'text'===_0x369503[_0x3cb7a2][_0x5279('0x96')]?(_0x369503[_0x3cb7a2][_0x5279('0x4a')][_0x5279('0x28')]=_0x3cb7a2,_0x369503[_0x3cb7a2][_0x5279('0x4a')][_0x5279('0xdd')]=_0x3cb7a2):(_0x5279('0x44')===_0x369503[_0x3cb7a2][_0x5279('0x96')]?_0x369503[_0x3cb7a2][_0x5279('0x4a')]['startIndex']=_0x3cb7a2:'elementEnd'===_0x369503[_0x3cb7a2][_0x5279('0x96')]&&(_0x369503[_0x3cb7a2]['item'][_0x5279('0xdd')]=_0x3cb7a2),_0xa6ef85['set'](_0x369503[_0x3cb7a2]['id'],_0x3cb7a2));for(const _0x429c56 of _0xa6ef85['values']())'elementStart'===_0x369503[_0x429c56][_0x5279('0x96')]?_0x369503[_0x429c56][_0x5279('0x4a')][_0x5279('0xdd')]=_0xa6ef85[_0x5279('0x110')](_0x369503[_0x429c56][_0x5279('0x72')]):'elementEnd'===_0x369503[_0x429c56][_0x5279('0x96')]&&(_0x369503[_0x429c56]['item'][_0x5279('0x28')]=_0xa6ef85[_0x5279('0x110')](_0x369503[_0x429c56][_0x5279('0x72')]));}['_processTape'](_0x31ceb2){for(let _0x8741b0=0x0;_0x8741b0<_0x31ceb2[_0x5279('0x3c')];_0x8741b0++){if('elementStart'===_0x31ceb2[_0x8741b0][_0x5279('0x96')])_0x31ceb2[_0x8741b0][_0x5279('0x4a')]['startIndex']=_0x8741b0;else{if(_0x5279('0x21')===_0x31ceb2[_0x8741b0]['type']){_0x31ceb2[_0x8741b0][_0x5279('0x4a')][_0x5279('0xdd')]=_0x8741b0;const _0x2454f9=_0x31ceb2[_0x8741b0]['item'][_0x5279('0x28')];_0x31ceb2[_0x2454f9][_0x5279('0x72')]=_0x31ceb2[_0x8741b0]['id'],_0x31ceb2[_0x8741b0][_0x5279('0x72')]=_0x31ceb2[_0x2454f9]['id'];}else _0x31ceb2[_0x8741b0]['item']['startIndex']=_0x8741b0,_0x31ceb2[_0x8741b0][_0x5279('0x4a')][_0x5279('0xdd')]=_0x8741b0,_0x31ceb2[_0x8741b0][_0x5279('0x72')]=null;}_0x31ceb2[_0x8741b0][_0x5279('0x41')]||(_0x31ceb2[_0x8741b0]['markersStart']=[],_0x31ceb2[_0x8741b0][_0x5279('0x46')]=[]);}}[_0x5279('0x9a')](_0x170f0b,_0x588f37){const _0xe3feae=_0x170f0b['filter'](_0x32d6f0=>!_0x32d6f0[_0x5279('0x56')]);for(let _0x45cd25=0x0;_0x45cd25<_0x588f37[_0x5279('0x3c')];_0x45cd25++)_0x588f37[_0x45cd25]['isAdded']&&(_0xe3feae[_0x45cd25][_0x5279('0x56')]=_0x588f37[_0x45cd25][_0x5279('0x56')]);}[_0x5279('0xa3')](_0x556879){const _0x1424cb=JSON[_0x5279('0xd')](_0x556879),_0x258761=this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0x29')],_0x5a4806=new _0xa4eac6(_0x258761,_0x1424cb[_0x5279('0x15')](_0x24181d=>this[_0x5279('0xfa')](_0x24181d)));return this[_0x5279('0x7e')][_0x5279('0x55')][_0x5279('0x43')](_0x5a4806);}['_getViewObj'](_0x1eaca1){const _0x1fcd58=this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0x29')];if('string'==typeof _0x1eaca1)return new _0x2f792b(_0x1fcd58,_0x1eaca1);{const _0x8a990=_0x1eaca1['children'][_0x5279('0x15')](_0x710d90=>this[_0x5279('0xfa')](_0x710d90));return new(tt[_0x1eaca1[(_0x5279('0x96'))]]||_0x4f4a84)(_0x1fcd58,_0x1eaca1['name'],_0x1eaca1['attributes'],_0x8a990);}}['_getDiff'](_0x2bb413,_0x356b33=null){const _0x26ca78=this[_0x5279('0xeb')][_0x5279('0x8b')](_0x2bb413),_0xb0e5c9=_0x356b33?this[_0x5279('0xeb')][_0x5279('0x8b')](_0x356b33):null,_0x6f2690=this[_0x5279('0x106')](_0x26ca78,_0xb0e5c9),_0xf1b189=_0x6f2690[_0x6f2690[_0x5279('0x3c')]-0x1],_0x339063=new Map(),_0x561a0c={'model':{},'attributes':{},'changes':[]},_0x3b8a60=new Set(),_0x54f767=new Map();for(let _0x3aa033=_0x6f2690['length']-0x1;_0x3aa033>=0x0;_0x3aa033--){const _0xbdfcb2=_0x6f2690[_0x3aa033];for(const _0x49d06b of Object['keys'](_0xbdfcb2[_0x5279('0x83')]))if(_0xbdfcb2[_0x5279('0x83')][_0x49d06b]['attachChange']){const _0x3e2545=_0xbdfcb2[_0x5279('0x83')][_0x49d06b][_0x5279('0x1e')];_0x3e2545[_0x5279('0x5c')]?(_0x3b8a60[_0x5279('0x9d')](_0x49d06b),_0x54f767['has'](_0x49d06b)&&_0x54f767['get'](_0x49d06b)[_0x5279('0x109')]==_0x3e2545[_0x5279('0x109')]?_0x54f767['delete'](_0x49d06b):_0x54f767[_0x5279('0x35')](_0x49d06b,_0x3e2545)):_0x54f767[_0x5279('0xed')](_0x49d06b)?(_0x3b8a60[_0x5279('0xea')](_0x49d06b),_0x54f767[_0x5279('0xea')](_0x49d06b)):(_0x3b8a60[_0x5279('0x9d')](_0x49d06b),_0x54f767['set'](_0x49d06b,_0x3e2545));}else _0x3b8a60[_0x5279('0x9d')](_0x49d06b);}for(const _0x2b890e of _0x3b8a60){const _0x5d41d0=_0x54f767['has'](_0x2b890e)&&!_0x54f767[_0x5279('0x110')](_0x2b890e)[_0x5279('0x5c')];let _0xdf6fe2=_0x5d41d0?_0x6f2690[_0x5279('0x3c')]-0x1:0x0;const _0x14ec4c=_0x5d41d0?-0x1:0x1;for(;_0x6f2690[_0xdf6fe2];){const _0x4495f2=_0x6f2690[_0xdf6fe2];if(_0x4495f2[_0x5279('0x83')][_0x2b890e]){const _0x4e947e=_0x5d41d0?_0x4495f2['diffData'][_0x2b890e][_0x5279('0x39')]:_0x4495f2[_0x5279('0x83')][_0x2b890e]['attributesAfter'];_0x561a0c[_0x5279('0x48')][_0x2b890e]=_0x4e947e?_0x29b2d5(_0x4e947e):{};break;}_0xdf6fe2+=_0x14ec4c;}}for(const _0x3b04e5 of _0x6f2690){_0x3b04e5[_0x5279('0x103')]={};for(const _0x499e09 of _0x3b04e5[_0x5279('0xac')])_0x339063[_0x5279('0x35')](_0x499e09['id'],_0x499e09);for(const _0x240aa7 of _0x3b8a60){const _0x5a19b7=_0x3b04e5[_0x5279('0x83')][_0x240aa7]?_0x3b04e5[_0x5279('0x83')][_0x240aa7]['insertions']:'[]',_0x2f048b=_0x3b04e5[_0x5279('0x83')][_0x240aa7]?_0x3b04e5['diffData'][_0x240aa7]['deletions']:'[]';_0x3b04e5[_0x5279('0x103')][_0x240aa7]={'insertions':this[_0x5279('0xa3')](_0x5a19b7),'deletions':this['_makeModelFromViewString'](_0x2f048b)};}}for(const _0x631898 of _0x3b8a60){let _0x52e733=null,_0x1f389d=0x0;const _0x5b1c80=new Map(Array[_0x5279('0xb7')](_0x26ca78['model'][_0x631898][_0x5279('0x7c')][_0x5279('0x8c')])[_0x5279('0x86')](([_0x2e59a2])=>!_0x2e59a2[_0x5279('0x10')](_0x5279('0xa4'))));let _0x65dad2=0x0;for(const _0x65043f of _0x6f2690){const _0x32c248=this[_0x5279('0x2b')](_0x65043f[_0x5279('0x103')][_0x631898][_0x5279('0x7c')]);_0x65043f==_0x26ca78?(_0x52e733=_0x32c248,_0x1f389d=_0x52e733[_0x5279('0x3c')],_0x52e733['forEach'](_0x133849=>{_0x133849['id']=_0x65dad2++;}),this[_0x5279('0x11')](_0x52e733)):this[_0x5279('0x9a')](_0x52e733,_0x32c248);const _0x102240=_0x52e733[_0x5279('0x86')](_0x197b9e=>!_0x197b9e[_0x5279('0x56')])[_0x5279('0x15')](_0x1ddd83=>_0x1ddd83['id']);let _0x3840c6=0x0;const _0x3d1d05=this['_makeTape'](_0x65043f[_0x5279('0x103')][_0x631898]['deletions']);_0x3d1d05[_0x5279('0x1c')](_0x2bcdd4=>{_0x2bcdd4[_0x5279('0x5b')]?_0x2bcdd4['id']=_0x1f389d++:_0x2bcdd4['id']=_0x102240[_0x3840c6++];}),this[_0x5279('0x11')](_0x3d1d05),this[_0x5279('0x4')](_0x52e733,'isAdded'),this[_0x5279('0x4')](_0x3d1d05,_0x5279('0x5b')),_0x65043f==_0x26ca78&&this['_markMarkers'](_0x52e733,_0x5b1c80),_0x52e733=this['_joinTapes'](_0x52e733,_0x3d1d05),this[_0x5279('0x45')](_0x52e733),this[_0x5279('0x4')](_0x52e733,_0x5279('0x5b'));}_0x52e733=_0x52e733[_0x5279('0x86')](_0x43a1e5=>!(_0x43a1e5['isAdded']&&_0x43a1e5[_0x5279('0x5b')]));const _0x43e59b=new Map(_0xf1b189[_0x5279('0x103')][_0x631898]['deletions'][_0x5279('0x8c')]),_0x4bf456=new Set(_0x5b1c80[_0x5279('0x33')]());for(const _0x3f5e5b of _0x43e59b[_0x5279('0x33')]())_0x4bf456[_0x5279('0xea')](_0x3f5e5b);this['_markSuggestions'](_0x52e733,_0x4bf456),this[_0x5279('0x1a')](_0x52e733),_0x52e733=this[_0x5279('0xbf')](_0x52e733),_0x52e733=this[_0x5279('0xd4')](_0x52e733),_0x52e733=this['_removeUnsupportedChanges'](_0x52e733);const {root:_0x273c90,changes:_0x29d2a2}=this[_0x5279('0x10d')](_0x52e733,_0x339063,_0x631898);_0x561a0c[_0x5279('0x103')][_0x631898]=_0x273c90;const _0x4b93b4=_0x54f767[_0x5279('0x110')](_0x631898);if(_0x4b93b4){const _0x20698e=_0x339063[_0x5279('0x110')](_0x4b93b4[_0x5279('0x109')]),_0x1cf1b0=new _0xf556c2({'author':_0x20698e,'type':_0x4b93b4[_0x5279('0x5c')]?_0x5279('0x9d'):_0x5279('0xc7'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x631898});_0x29d2a2[_0x5279('0x10c')](_0x1cf1b0),_0x561a0c['attributes'][_0x631898][_0x5279('0x113')]=_0x1cf1b0['id'];}_0x561a0c['changes']=_0x561a0c[_0x5279('0x60')][_0x5279('0x5e')](_0x29d2a2);}return _0x561a0c;}[_0x5279('0x9b')](_0x41b5da,_0x56a6f9){for(let _0x2f57c1=0x0;_0x2f57c1<_0x41b5da[_0x5279('0x3c')];_0x2f57c1++)for(const [_0x1b5be7,_0x3c8079]of _0x56a6f9)_0x3c8079[_0x5279('0xc3')][_0x5279('0xaf')](_0x41b5da[_0x2f57c1][_0x5279('0x9f')])&&_0x41b5da[_0x2f57c1][_0x5279('0x41')]['push'](_0x1b5be7),_0x3c8079[_0x5279('0xa1')][_0x5279('0xaf')](_0x41b5da[_0x2f57c1][_0x5279('0x4b')])&&_0x41b5da[_0x2f57c1][_0x5279('0x46')][_0x5279('0x32')](_0x1b5be7);}['_joinTapes'](_0x5e9f2b,_0x20179e){let _0x355ef9=[],_0x54bac0=0x0,_0x41f098=0x0;for(;_0x54bac0<_0x5e9f2b[_0x5279('0x3c')]||_0x41f098<_0x20179e['length'];){const _0x2e1018=_0x5e9f2b[_0x54bac0]||{},_0x5b4fb4=_0x20179e[_0x41f098]||{};if(_0x2e1018['id']==_0x5b4fb4['id'])_0x54bac0++,_0x41f098++,_0x355ef9[_0x5279('0x32')](_0x2e1018);else{if(_0x5b4fb4['isRemoved']&&_0x2e1018[_0x5279('0x56')]){const {commonTape:_0x26bbc4,iEnd:_0x1b3d89,jEnd:_0x563370}=this['_threeWayMerge'](_0x5e9f2b,_0x54bac0,_0x20179e,_0x41f098);_0x355ef9=_0x355ef9[_0x5279('0x5e')](_0x26bbc4),_0x54bac0=_0x1b3d89,_0x41f098=_0x563370;}else _0x5b4fb4[_0x5279('0x5b')]?(_0x41f098++,_0x355ef9[_0x5279('0x32')](_0x5b4fb4)):(_0x54bac0++,_0x355ef9[_0x5279('0x32')](_0x2e1018));}}return _0x355ef9;}[_0x5279('0xd2')](_0x48b400,_0x1d76df){const _0x177b60=[];for(let _0x229f33=0x0;_0x229f33<_0x48b400[_0x5279('0x3c')];_0x229f33++){for(let _0x1119ef=0x0;_0x1119ef<_0x48b400[_0x229f33]['markersStart']['length'];_0x1119ef++){const _0x4230aa=_0x48b400[_0x229f33][_0x5279('0x41')][_0x1119ef];if(!_0x1d76df[_0x5279('0xed')](_0x4230aa))continue;const {group:_0xf3c31f,type:_0x258a44,authorId:_0x2e72dc}=_0x17c444(_0x4230aa);'revision-suggestion'!=_0xf3c31f||_0x5279('0xe')!=_0x258a44&&_0x5279('0x67')!=_0x258a44||(_0x177b60[_0x5279('0x10c')]({'type':_0x258a44,'name':_0x4230aa,'userId':_0x2e72dc}),_0x48b400[_0x229f33][_0x5279('0x41')][_0x5279('0x107')](_0x1119ef,0x1),_0x1119ef--);}_0x13f4bc(_0x48b400[_0x229f33]);for(let _0x2d44bc=0x0;_0x2d44bc<_0x48b400[_0x229f33][_0x5279('0x46')][_0x5279('0x3c')];_0x2d44bc++){const _0x815cb6=_0x48b400[_0x229f33][_0x5279('0x46')][_0x2d44bc];if(!_0x1d76df[_0x5279('0xed')](_0x815cb6))continue;const {group:_0x5c0cd6,type:_0x3dcffe}=_0x17c444(_0x815cb6);if(_0x5279('0xda')!=_0x5c0cd6||_0x5279('0xe')!=_0x3dcffe&&_0x5279('0x67')!=_0x3dcffe)continue;_0x48b400[_0x229f33][_0x5279('0x46')][_0x5279('0x107')](_0x2d44bc,0x1),_0x2d44bc--;const _0x8f8579=_0x177b60['findIndex'](_0x52cbda=>_0x52cbda['name']==_0x815cb6);_0x8f8579>-0x1&&_0x177b60[_0x5279('0x107')](_0x8f8579,0x1);}}function _0x17c444(_0x4934ce){const _0x2c859b=_0x4934ce[_0x5279('0xaa')](':');return{'group':_0x2c859b[0x0],'type':_0x2c859b[0x1],'subType':_0x2c859b[_0x5279('0x3c')]>=0x5?_0x2c859b[0x2]:null,'id':_0x2c859b['length']<0x5?_0x2c859b[0x2]:_0x2c859b[0x3],'authorId':_0x2c859b[_0x5279('0x3c')]<0x5?_0x2c859b[0x3]:_0x2c859b[0x4],'markerCount':0x6==_0x2c859b[_0x5279('0x3c')]?_0x2c859b[0x5]:null};}function _0x13f4bc(_0x5109dd){for(let _0x46c9ca=0x0;_0x46c9ca<_0x177b60[_0x5279('0x3c')];_0x46c9ca++){if(_0x5109dd[_0x5279('0x56')]&&'insertion'==_0x177b60[_0x46c9ca]['type'])return _0x5109dd[_0x5279('0x1f')]=_0x177b60[_0x46c9ca],void delete _0x5109dd[_0x5279('0x56')];if(!_0x5109dd[_0x5279('0x56')]&&!_0x5109dd[_0x5279('0x5b')]&&_0x5279('0x67')==_0x177b60[_0x46c9ca][_0x5279('0x96')])return void(_0x5109dd['isRemoveSuggestion']=_0x177b60[_0x46c9ca]);}}}[_0x5279('0x4')](_0x246a2d,_0x1f34ff){let _0x2e24bb=0x0,_0x49a2be=!0x1;const _0x13b88f=new Map();for(const _0x44c09f of _0x246a2d)_0x44c09f[_0x1f34ff]?_0x49a2be&&(_0x2e24bb++,_0x49a2be=!0x1):(_0x2e24bb++,_0x49a2be=!0x0),_0x13b88f['set'](_0x44c09f['id'],_0x2e24bb);for(let _0x5446b4=0x0;_0x5446b4<_0x246a2d[_0x5279('0x3c')];_0x5446b4++){if(_0x5279('0x5b')==_0x1f34ff&&_0x246a2d[_0x5446b4]['isAdded']||'isAdded'==_0x1f34ff&&_0x246a2d[_0x5446b4][_0x5279('0x5b')])continue;if('text'==_0x246a2d[_0x5446b4][_0x5279('0x96')]){_0x246a2d[_0x5446b4]['distance']=0x0;continue;}const _0x5a968e=_0x13b88f[_0x5279('0x110')](_0x246a2d[_0x5446b4][_0x5279('0x72')]),_0x2d680c=_0x13b88f[_0x5279('0x110')](_0x246a2d[_0x5446b4]['id']);_0x246a2d[_0x5446b4][_0x5279('0xf9')]=_0x5a968e-_0x2d680c;}}['_getRevisionsRange'](_0x5b36c9,_0x20668c,_0x278a45=!0x1){const _0x27a785=[];let _0x146f12=this[_0x5279('0xeb')][_0x5279('0xb1')](_0x5b36c9),_0x2aea1b=this[_0x5279('0xeb')][_0x5279('0xb1')](_0x20668c);for(-0x1==_0x2aea1b&&(_0x2aea1b=this[_0x5279('0xeb')]['_revisions'][_0x5279('0x3c')],_0x278a45=!0x1);_0x146f12<_0x2aea1b;)_0x27a785[_0x5279('0x32')](this['repository'][_0x5279('0x8b')](_0x146f12)),_0x146f12++;return _0x278a45&&_0x27a785[_0x5279('0x32')](this['repository'][_0x5279('0x8b')](_0x146f12)),_0x27a785;}['_threeWayMerge'](_0xba28af,_0x3e169a,_0x5b19e0,_0x1ebbc0){const _0x1007ef=this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x54')];let _0x7f94e9=_0x3e169a;for(;_0xba28af[_0x7f94e9]&&_0xba28af[_0x7f94e9][_0x5279('0x56')];)_0x7f94e9++;let _0x3697d8=_0x1ebbc0;for(;_0x5b19e0[_0x3697d8]&&_0x5b19e0[_0x3697d8][_0x5279('0x5b')];)_0x3697d8++;_0x5b7333(_0xba28af,_0x3e169a,_0x7f94e9),_0x5b7333(_0x5b19e0,_0x1ebbc0,_0x3697d8);const _0x288588=_0x5b19e0[_0x5279('0x3d')](_0x1ebbc0,_0x3697d8)[_0x5279('0x5e')](_0xba28af[_0x5279('0x3d')](_0x3e169a,_0x7f94e9));return _0x288588[_0x5279('0x118')]((_0x2f1bd9,_0x35599c)=>_0x2f1bd9['side']!=_0x35599c[_0x5279('0xe4')]?_0x2f1bd9[_0x5279('0xe4')]-_0x35599c[_0x5279('0xe4')]:_0x2f1bd9['level']!=_0x35599c[_0x5279('0xa8')]?_0x2f1bd9[_0x5279('0xa8')]-_0x35599c['level']:_0x2f1bd9[_0x5279('0xf9')]!=_0x35599c['distance']?_0x35599c[_0x5279('0xf9')]-_0x2f1bd9['distance']:!!_0x2f1bd9['isAdded']!=!!_0x35599c['isAdded']?-0x1==_0x2f1bd9['side']||0x0==_0x2f1bd9[_0x5279('0xe4')]?_0x2f1bd9['isAdded']?-0x1:0x1:_0x2f1bd9['isAdded']?0x1:-0x1:_0x2f1bd9[_0x5279('0xf5')]-_0x35599c['index']),{'commonTape':_0x288588,'iEnd':_0x7f94e9,'jEnd':_0x3697d8};function _0x5b7333(_0x174c09,_0x3dbed4,_0x52ccc8){let _0x258bea=-0x1,_0x5af724=Number['POSITIVE_INFINITY'],_0x449017=!0x0;for(let _0x46362d=_0x3dbed4;_0x46362d<_0x52ccc8;_0x46362d++)if(_0x1007ef[_0x5279('0x95')](_0x174c09[_0x46362d][_0x5279('0x4a')])||(_0x449017=!0x1),_0x174c09[_0x46362d][_0x5279('0x4a')][_0x5279('0x28')]<_0x3dbed4&&(_0x258bea=_0x46362d),_0x174c09[_0x46362d][_0x5279('0x4a')][_0x5279('0xdd')]>=_0x52ccc8){_0x5af724=_0x46362d;break;}_0x449017&&(_0x258bea=_0x52ccc8-0x1);for(let _0x4a2e81=_0x3dbed4;_0x4a2e81<_0x52ccc8;_0x4a2e81++)_0x174c09[_0x4a2e81][_0x5279('0xe4')]=_0x4a2e81<=_0x258bea?-0x1:_0x4a2e81<_0x5af724?0x0:0x1,_0x174c09[_0x4a2e81][_0x5279('0xf5')]=_0x4a2e81;let _0x43eae5=0x0;for(let _0x475121=_0x3dbed4;_0x475121<=_0x258bea;_0x475121++)0x0==_0x174c09[_0x475121]['distance']?_0x174c09[_0x475121][_0x5279('0xa8')]=_0x43eae5:(_0x43eae5++,_0x174c09[_0x475121][_0x5279('0xa8')]=_0x43eae5,_0x43eae5++);for(let _0x2aedc6=_0x3dbed4;_0x2aedc6<_0x52ccc8;_0x2aedc6++)0x0==_0x174c09[_0x2aedc6][_0x5279('0xe4')]&&(_0x174c09[_0x2aedc6][_0x5279('0xa8')]=_0x43eae5);_0x43eae5=0x0;for(let _0x58fa0a=_0x52ccc8-0x1;_0x58fa0a>=_0x5af724;_0x58fa0a--)0x0==_0x174c09[_0x58fa0a][_0x5279('0xf9')]?_0x174c09[_0x58fa0a][_0x5279('0xa8')]=_0x43eae5:(_0x43eae5--,_0x174c09[_0x58fa0a][_0x5279('0xa8')]=_0x43eae5,_0x43eae5--);}}['_fixObsoleteTags'](_0x39e664){const _0x211dc1=new Map(),_0x41601e=this['editor']['model']['schema'];for(let _0x56d9e0=0x1;_0x56d9e0<_0x39e664['length'];_0x56d9e0++){let _0x44be74,_0x2fbaab,_0x261d1d;const _0x361f08=_0x39e664[_0x56d9e0],_0xce6806=_0x39e664[_0x56d9e0-0x1];if('text'==_0x361f08['type'])continue;if(_0x361f08[_0x5279('0x96')]!=_0xce6806[_0x5279('0x96')])continue;if(!_0x41601e[_0x5279('0xc')](_0xce6806[_0x5279('0x4a')])||_0x41601e[_0x5279('0xa9')](_0xce6806['item']))continue;if(!_0x41601e[_0x5279('0xc')](_0x361f08[_0x5279('0x4a')])||_0x41601e[_0x5279('0xa9')](_0x361f08[_0x5279('0x4a')]))continue;if((_0x39e664[_0x56d9e0][_0x5279('0x56')]||_0x39e664[_0x56d9e0][_0x5279('0x1f')])&&_0x39e664[_0x56d9e0-0x1][_0x5279('0x5b')])_0x44be74=_0x39e664[_0x56d9e0],_0x2fbaab=_0x39e664[_0x56d9e0-0x1],_0x261d1d=_0x56d9e0-0x1;else{if(!_0x39e664[_0x56d9e0]['isRemoved']||!_0x39e664[_0x56d9e0-0x1][_0x5279('0x56')]&&!_0x39e664[_0x56d9e0-0x1][_0x5279('0x1f')])continue;_0x44be74=_0x39e664[_0x56d9e0-0x1],_0x2fbaab=_0x39e664[_0x56d9e0],_0x261d1d=_0x56d9e0;}const _0x231c57=_0x44be74['level']==_0x2fbaab[_0x5279('0xa8')],_0x238b49=Math[_0x5279('0x2e')](_0x44be74[_0x5279('0xa8')])<Math[_0x5279('0x2e')](_0x2fbaab[_0x5279('0xa8')])&&0x0==_0x2fbaab['distance'];(_0x231c57||_0x238b49)&&(_0x211dc1['set'](_0x2fbaab['id'],_0x44be74['id']),_0x39e664['splice'](_0x261d1d,0x1),_0x56d9e0--,_0x44be74[_0x5279('0x56')]=!0x1);}for(let _0x535728=0x0;_0x535728<_0x39e664[_0x5279('0x3c')];_0x535728++)_0x211dc1[_0x5279('0xed')](_0x39e664[_0x535728][_0x5279('0x72')])&&(_0x39e664[_0x535728][_0x5279('0x72')]=_0x211dc1[_0x5279('0x110')](_0x39e664[_0x535728][_0x5279('0x72')]));}[_0x5279('0xbf')](_0x25610f){const _0x129f35=new Set(_0x25610f['map'](_0xe7e8b4=>_0xe7e8b4['id']));for(let _0x54e283=0x0;_0x54e283<_0x25610f[_0x5279('0x3c')];_0x54e283++)_0x129f35[_0x5279('0xed')](_0x25610f[_0x54e283][_0x5279('0x72')])||0x0==_0x25610f[_0x54e283]['distance']||(_0x25610f[_0x54e283][_0x5279('0x111')]=!0x0);return _0x25610f[_0x5279('0x86')](_0x357a07=>!_0x357a07[_0x5279('0x111')]);}[_0x5279('0xd4')](_0x5daeca){const _0x580653=new Set();for(let _0xb03684=0x0;_0xb03684<_0x5daeca[_0x5279('0x3c')];_0xb03684++){if(_0x580653[_0x5279('0xed')](_0x5daeca[_0xb03684]['id'])&&_0x5daeca[_0xb03684][_0x5279('0x5b')]&&(_0x5daeca[_0xb03684][_0x5279('0x111')]=!0x0),_0x5daeca[_0xb03684][_0x5279('0x111')])continue;if(0x0==_0x5daeca[_0xb03684][_0x5279('0xf9')])continue;if(_0x5279('0x44')!=_0x5daeca[_0xb03684][_0x5279('0x96')])continue;if(null==_0x5daeca[_0xb03684]['pairId'])continue;let _0x5a5286=_0xb03684+0x1,_0x401240=0x0;for(;_0x5daeca[_0x5a5286]['id']!=_0x5daeca[_0xb03684][_0x5279('0x72')];)_0x5279('0x44')==_0x5daeca[_0x5a5286][_0x5279('0x96')]?_0x401240++:'elementEnd'==_0x5daeca[_0x5a5286][_0x5279('0x96')]&&_0x401240--,_0x5a5286++;if(0x0!=_0x401240){if(_0x5daeca[_0xb03684][_0x5279('0x5b')])_0x5daeca[_0xb03684][_0x5279('0x111')]=!0x0;else for(;_0x5a5286!=_0xb03684;)_0x5daeca[_0x5a5286][_0x5279('0x5b')]&&0x0!=_0x5daeca[_0x5a5286][_0x5279('0xf9')]&&(_0x5daeca[_0x5a5286][_0x5279('0x111')]=!0x0,_0x580653[_0x5279('0x9d')](_0x5daeca[_0x5a5286]['pairId'])),_0x5a5286--;}}return _0x5daeca[_0x5279('0x86')](_0x2a0468=>!_0x2a0468[_0x5279('0x111')]);}[_0x5279('0x63')](_0x9ef5){const _0x313e52=this[_0x5279('0x7e')]['model'][_0x5279('0x54')];for(let _0x135fc2=0x0;_0x135fc2<_0x9ef5[_0x5279('0x3c')];_0x135fc2++){if(!(_0x9ef5[_0x135fc2]['isAdded']||_0x9ef5[_0x135fc2][_0x5279('0x1f')]||_0x9ef5[_0x135fc2]['isRemoved']||_0x9ef5[_0x135fc2][_0x5279('0x116')]))continue;if(0x0==_0x9ef5[_0x135fc2][_0x5279('0xf9')])continue;const _0x3cfb49=_0x9ef5[_0x135fc2][_0x5279('0x4a')];_0x313e52[_0x5279('0xc')](_0x3cfb49)||_0x313e52['isLimit'](_0x3cfb49)||(_0x9ef5[_0x135fc2]['isAdded']&&delete _0x9ef5[_0x135fc2]['isAdded'],_0x9ef5[_0x135fc2][_0x5279('0x1f')]&&delete _0x9ef5[_0x135fc2][_0x5279('0x1f')],_0x9ef5[_0x135fc2][_0x5279('0x116')]&&delete _0x9ef5[_0x135fc2][_0x5279('0x116')],_0x9ef5[_0x135fc2][_0x5279('0x5b')]&&(_0x9ef5[_0x135fc2]['isIncorrect']=!0x0));}return _0x9ef5['filter'](_0x34e552=>!_0x34e552['isIncorrect']);}[_0x5279('0x10d')](_0x5a89c2,_0x5bcc03,_0x3c387f){const _0x489d28=new _0x365d5e(),_0x10c9d1=[],_0x3f1601=new Map(),_0x3a597f=this[_0x5279('0x7e')][_0x5279('0x103')],_0x5ac13a=_0x3a597f['schema'],_0x5417d7=[_0x489d28],_0x3f0a8c={},_0x1ac4db={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x63bf92=null;const _0x176c27=[0x0];for(let _0x3314bb=0x0;_0x3314bb<_0x5a89c2[_0x5279('0x3c')];_0x3314bb++){let _0x285b46,_0x156708;if(_0x5279('0x44')===_0x5a89c2[_0x3314bb]['type']){_0x285b46=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27);const _0x14318b=new _0x35edab(_0x5a89c2[_0x3314bb][_0x5279('0x4a')]['name'],_0x5a89c2[_0x3314bb][_0x5279('0x4a')][_0x5279('0x11b')]());_0x5417d7[0x0][_0x5279('0xbd')](_0x14318b),_0x176c27['push'](0x0),_0x5417d7[_0x5279('0x10c')](_0x14318b),_0x156708=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27),_0x63bf92=null;}else{if(_0x5279('0x21')===_0x5a89c2[_0x3314bb][_0x5279('0x96')])_0x5417d7[_0x5279('0x10a')](),_0x285b46=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27),_0x176c27[_0x5279('0xb0')](),_0x176c27[_0x176c27[_0x5279('0x3c')]-0x1]++,_0x156708=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27),_0x63bf92=null;else{if(_0x285b46=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27),_0x63bf92&&_0x5ce200(_0x63bf92,_0x5a89c2[_0x3314bb][_0x5279('0x4a')]))_0x63bf92[_0x5279('0xad')]+=_0x5a89c2[_0x3314bb][_0x5279('0x4a')][_0x5279('0x55')];else{const _0x491da3=new _0x332f37(_0x5a89c2[_0x3314bb][_0x5279('0x4a')][_0x5279('0x55')],_0x5a89c2[_0x3314bb][_0x5279('0x4a')][_0x5279('0x11b')]());_0x5417d7[0x0]['_appendChild'](_0x491da3),_0x63bf92=_0x491da3;}_0x176c27[_0x176c27[_0x5279('0x3c')]-0x1]+=_0x5a89c2[_0x3314bb][_0x5279('0x4a')][_0x5279('0x7a')],_0x156708=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27);}}for(const _0x152614 of _0x5a89c2[_0x3314bb][_0x5279('0x41')])_0x3f1601[_0x5279('0x35')](_0x152614,{'start':_0x285b46,'end':null});_0x3905d1('isRemoveSuggestion',_0x3314bb,_0x285b46,_0x156708),_0x3905d1(_0x5279('0x1f'),_0x3314bb,_0x285b46,_0x156708),_0x3905d1(_0x5279('0x5b'),_0x3314bb,_0x285b46,_0x156708),_0x3905d1(_0x5279('0x56'),_0x3314bb,_0x285b46,_0x156708);for(const _0x573bf7 of _0x5a89c2[_0x3314bb][_0x5279('0x46')]){_0x3f1601['get'](_0x573bf7)[_0x5279('0xa1')]=_0x156708;}}for(const [_0x32dd6c,_0x325fe5]of _0x3f1601){const _0x44a19c=this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0xd7')](_0x325fe5[_0x5279('0xc3')],_0x325fe5[_0x5279('0xa1')]);_0x489d28[_0x5279('0x8c')][_0x5279('0x35')](_0x32dd6c,_0x44a19c);}return _0x10c9d1[_0x5279('0x118')]((_0x36caa8,_0x30dff7)=>{const _0x4ccdb8=_0x489d28[_0x5279('0x8c')][_0x5279('0x110')](_0x5279('0xa4')+_0x36caa8['id']),_0x31ef48=_0x489d28[_0x5279('0x8c')]['get'](_0x5279('0xa4')+_0x30dff7['id']);return _0x4ccdb8[_0x5279('0xc3')]['isBefore'](_0x31ef48[_0x5279('0xc3')])?-0x1:_0x4ccdb8['start'][_0x5279('0x101')](_0x31ef48[_0x5279('0xc3')])?0x1:_0x4ccdb8[_0x5279('0xa1')]['isBefore'](_0x31ef48[_0x5279('0xa1')])?-0x1:_0x4ccdb8[_0x5279('0xa1')][_0x5279('0x101')](_0x31ef48[_0x5279('0xa1')])?0x1:_0x5279('0x9d')===_0x36caa8['type']?-0x1:0x1;}),{'root':_0x489d28,'changes':_0x10c9d1};function _0x3905d1(_0x295581,_0x3d3ce5,_0x1310b1,_0x1182aa){const _0x11ff59=!!_0x5a89c2[_0x3d3ce5][_0x295581],_0x50a92a=_0x11ff59?_0x5a89c2[_0x3d3ce5][_0x295581]['userId']:null,_0xd50689=_0x3d3ce5===_0x5a89c2['length']-0x1,_0x505fc5=_0x1ac4db[_0x295581][0x0],_0x2fae60=_0x5ac13a['isObject'](_0x5a89c2[_0x3d3ce5]['item']);!_0x3f0a8c[_0x295581]&&_0x11ff59?_0x3f0a8c[_0x295581]={'start':_0x1310b1,'tapeItem':_0x5a89c2[_0x3d3ce5],'userId':_0x50a92a,'type':_0x295581}:_0x3f0a8c[_0x295581]&&!_0x11ff59?(_0x3f0a8c[_0x295581]['end']=_0x1310b1,_0x439219(_0x3f0a8c[_0x295581]),_0x3f0a8c[_0x295581]=null):_0x3f0a8c[_0x295581]&&_0x11ff59&&_0x3f0a8c[_0x295581]['userId']!==_0x50a92a&&(_0x3f0a8c[_0x295581]['end']=_0x1310b1,_0x505fc5&&_0x505fc5[_0x5279('0x109')]===_0x3f0a8c[_0x295581]['userId']||_0x439219(_0x3f0a8c[_0x295581]),_0x3f0a8c[_0x295581]={'start':_0x1310b1,'tapeItem':_0x5a89c2[_0x3d3ce5],'userId':_0x50a92a,'type':_0x295581}),_0x3f0a8c[_0x295581]&&_0x2fae60&&('elementStart'!==_0x5a89c2[_0x3d3ce5][_0x5279('0x96')]||_0x505fc5&&_0x505fc5[_0x5279('0x109')]===_0x50a92a||_0x1ac4db[_0x295581][_0x5279('0x10c')]({'userId':_0x50a92a,'object':_0x5a89c2[_0x3d3ce5][_0x5279('0x4a')],'change':_0x3f0a8c[_0x295581]}),_0x5279('0x21')===_0x5a89c2[_0x3d3ce5][_0x5279('0x96')]&&_0x505fc5&&_0x505fc5['object']===_0x5a89c2[_0x3d3ce5]['item']&&(_0x1ac4db[_0x295581]['shift'](),_0x3f0a8c[_0x295581]=_0x505fc5[_0x5279('0x8a')])),_0x3f0a8c[_0x295581]&&_0xd50689&&(_0x3f0a8c[_0x295581]['end']=_0x1182aa,_0x439219(_0x3f0a8c[_0x295581]),_0x3f0a8c[_0x295581]=null);}function _0x439219({start:_0x2a12cc,end:_0x23034e,tapeItem:_0x574503,userId:_0x483152,type:_0x5622d2}){const _0xa00060=_0x574503[_0x5279('0x4a')],_0x4ecf09=_0x3a597f[_0x5279('0x54')][_0x5279('0xc')](_0xa00060)&&!_0x3a597f[_0x5279('0x54')][_0x5279('0xa9')](_0xa00060),_0x433241=_0x2a12cc[_0x5279('0xb')]==_0x23034e[_0x5279('0x38')]&&_0x23034e[_0x5279('0x1b')];if(_0x4ecf09&&_0x433241)return;const _0xeac7a3=_0x3a597f[_0x5279('0xd7')](_0x2a12cc,_0x23034e),_0x5c8f94=_0x5bcc03[_0x5279('0x110')](_0x483152),_0x2f90b5=new _0xf556c2({'author':_0x5c8f94,'type':_0x5279('0x56')==_0x5622d2||_0x5279('0x1f')==_0x5622d2?_0x5279('0x9d'):_0x5279('0xc7'),'data':{'isSuggestion':_0x5279('0x1f')==_0x5622d2||_0x5279('0x116')==_0x5622d2},'createdAt':new Date(),'rootName':_0x3c387f});_0x10c9d1[_0x5279('0x32')](_0x2f90b5),_0x489d28[_0x5279('0x8c')]['set'](_0x5279('0xa4')+_0x2f90b5['id'],_0xeac7a3);}function _0x5ce200(_0x13d1c5,_0x4fcb96){const _0x12a004=_0x13d1c5['getAttributes'](),_0x1853a6=_0x4fcb96[_0x5279('0x11b')]();for(const _0x29b6a3 of _0x12a004){if(_0x29b6a3[0x1]!==_0x4fcb96[_0x5279('0xec')](_0x29b6a3[0x0]))return!0x1;_0x1853a6[_0x5279('0x114')]();}return _0x1853a6[_0x5279('0x114')]()[_0x5279('0x105')];}}['_setConversion'](){this[_0x5279('0x7e')]['conversion'][_0x5279('0x104')]('upcast')[_0x5279('0x0')]({'view':_0x5279('0xef')}),this[_0x5279('0x7e')]['conversion'][_0x5279('0x104')](_0x5279('0xfd'))[_0x5279('0x6b')]({'model':_0x5279('0xef'),'view':_0x234fd3=>{const _0x590ad6=_0x234fd3['markerName']['split'](':')[0x1],_0x2b2ddf=this[_0x5279('0x92')](_0x590ad6);if(!_0x2b2ddf)return null;const _0x495540=_0x5279('0x9d')==_0x2b2ddf[_0x5279('0x96')]?_0x5279('0xe'):_0x5279('0x67'),_0x565653=['ck-suggestion-marker',_0x5279('0x3')+_0x495540];return _0x2b2ddf[_0x5279('0x55')][_0x5279('0xc9')]&&_0x565653[_0x5279('0x32')](_0x5279('0x3')+_0x495540+_0x5279('0x14')),this[_0x5279('0x3a')]==_0x2b2ddf&&_0x565653[_0x5279('0x32')](_0x5279('0xe6')),{'classes':_0x565653,'attributes':{'data-change-id':_0x590ad6}};}}),this[_0x5279('0x7e')][_0x5279('0xd8')][_0x5279('0x104')](_0x5279('0xd3'))[_0x5279('0x9d')](_0x571694=>{_0x571694['on']('element:pre',(_0x5a64f4,_0x51197f,_0x86d54a)=>{const _0x19116f=_0x51197f['viewItem'][_0x5279('0x75')](0x0);if(!_0x19116f||!_0x19116f['is'](_0x5279('0x90'),_0x5279('0x11a')))return;if(!_0x86d54a['consumable'][_0x5279('0x117')](_0x19116f,{'attributes':[_0x5279('0xa7'),_0x5279('0x10b')]}))return;const _0x65e12b=_0x51197f[_0x5279('0xcb')][_0x5279('0xc3')][_0x5279('0xb')];_0x86d54a[_0x5279('0x66')]['setAttribute']('vid_start',_0x19116f['getAttribute'](_0x5279('0xa7')),_0x65e12b),_0x86d54a[_0x5279('0x66')][_0x5279('0x50')](_0x5279('0x10b'),_0x19116f[_0x5279('0xec')](_0x5279('0x10b')),_0x65e12b);},{'priority':'low'});}),this[_0x5279('0x7e')][_0x5279('0xd8')][_0x5279('0x104')]('upcast')['add'](_0x15f095=>{_0x15f095['on'](_0x5279('0x90'),(_0x1d95dd,_0x4d2477,_0x243c29)=>{if(!_0x243c29[_0x5279('0x17')]['consume'](_0x4d2477[_0x5279('0xfe')],{'attributes':['vid_start','vid_end']}))return;if(_0x4d2477['modelRange'][_0x5279('0xf0')])return;const _0x156486=_0x4d2477['modelRange']['start'][_0x5279('0xb')];_0x156486['hasAttribute'](_0x5279('0xa7'))||_0x156486[_0x5279('0xe8')](_0x5279('0xe5'))||(_0x243c29[_0x5279('0x66')]['setAttribute'](_0x5279('0xa7'),_0x4d2477[_0x5279('0xfe')][_0x5279('0xec')]('vid_start'),_0x156486),_0x243c29[_0x5279('0x66')][_0x5279('0x50')](_0x5279('0x10b'),_0x4d2477[_0x5279('0xfe')]['getAttribute']('vid_end'),_0x156486));},{'priority':'low'});}),this[_0x5279('0x7e')][_0x5279('0xd8')]['for'](_0x5279('0xd3'))[_0x5279('0x25')]({'view':{'name':_0x5279('0x98'),'attributes':{'vid':!0x0}},'model':{'key':_0x5279('0xe5'),'value':_0x2b4b93=>_0x2b4b93[_0x5279('0xec')](_0x5279('0xe5'))}}),this[_0x5279('0x7e')][_0x5279('0x103')]['schema']['on'](_0x5279('0xcc'),(_0x44dcaf,[,_0x5b698e])=>{[_0x5279('0xa7'),_0x5279('0x10b'),_0x5279('0xe5')][_0x5279('0xa2')](_0x5b698e)&&(_0x44dcaf[_0x5279('0xb3')]=!0x0,_0x44dcaf['stop']());},{'priority':_0x5279('0xbc')}),this[_0x5279('0x7e')]['conversion'][_0x5279('0x104')](_0x5279('0xb6'))['add'](_0x3ce84b=>{_0x3ce84b['on'](_0x5279('0x5f'),(_0x2d1fcf,_0x171efd,_0x446e78)=>{if('\x20'!=_0x171efd['item']['data']||_0x171efd[_0x5279('0x4a')][_0x5279('0x38')][_0x5279('0x59')]>0x1)return;if(!_0x446e78[_0x5279('0x17')][_0x5279('0x117')](_0x171efd[_0x5279('0x4a')],_0x2d1fcf[_0x5279('0x57')]))return;const _0x1bbfa9=_0x446e78[_0x5279('0x66')],_0x4c34d0=_0x446e78[_0x5279('0x13')][_0x5279('0x22')](_0x171efd[_0x5279('0xdb')]);_0x1bbfa9[_0x5279('0x69')](_0x4c34d0,_0x1bbfa9[_0x5279('0x52')](_0x5279('0x98')));});}),this['editor'][_0x5279('0xd8')][_0x5279('0x104')](_0x5279('0xb6'))['markerToData']({'model':_0x5279('0xef')}),this[_0x5279('0x7e')]['editing'][_0x5279('0xe0')]['on'](_0x5279('0xf6'),function(_0x1bf3b2){const _0x3f5b2e=_0x1bf3b2[_0x5279('0xc0')][_0x5279('0x110')]('RevisionViewer');return(_0x15ae80,_0xdb29b4,_0x210db7)=>{const _0x1c58f9=_0xdb29b4['markerName']['split'](':')[0x1],_0x1221b5=_0x3f5b2e['_getChangeFromId'](_0x1c58f9);if(!_0x1221b5)return null;const _0x40e98a=_0x5279('0x9d')==_0x1221b5[_0x5279('0x96')]?_0x5279('0xaa'):_0x5279('0x78');if(!_0x210db7[_0x5279('0x17')][_0x5279('0x40')](_0xdb29b4[_0x5279('0x2c')],_0x15ae80['name']))return;const _0x2ac009=_0xdb29b4['markerRange'][_0x5279('0x65')](),_0x3e43ce=_0xdb29b4[_0x5279('0x2c')][_0x5279('0xc3')],_0x3498eb=_0x1bf3b2[_0x5279('0x103')][_0x5279('0x54')];let _0x43cef7=null,_0x409c76=null,_0x30b270=!0x1,_0x5c2962=!0x1;for(const _0x564458 of _0x2ac009){const _0x45b634=_0x564458[_0x5279('0x4a')];_0x30b270=_0x30b270||_0x3498eb[_0x5279('0x27')](_0x45b634);const _0x474a71=_0x210db7[_0x5279('0x13')][_0x5279('0x2f')](_0x45b634);if(_0x474a71&&_0x474a71[_0x5279('0x76')](_0x5279('0x16')))return;_0x5279('0x21')==_0x564458[_0x5279('0x96')]&&(_0x3498eb[_0x5279('0xc')](_0x45b634)&&!_0x3498eb[_0x5279('0xa9')](_0x45b634)&&(_0x45b634[_0x5279('0xf')]||_0x3e43ce['isAtEnd']?_0x43cef7&&_0x43cef7[_0x5279('0x38')]==_0x45b634||(_0x43cef7=_0x45b634,_0x363d75(_0x564458[_0x5279('0x9f')]),_0x5c2962=!0x0):_0x409c76=_0x409c76||_0x564458[_0x5279('0x9f')]));}function _0x363d75(_0x2461ee){const _0x32115f=_0x210db7[_0x5279('0x66')]['createUIElement'](_0x5279('0x98'),{'class':'ck-suggestion-marker-'+_0x40e98a}),_0x184e03=_0x210db7['mapper'][_0x5279('0xf8')](_0x2461ee);_0x1221b5['data'][_0x5279('0xc9')]&&_0x210db7[_0x5279('0x66')]['addClass'](_0x5279('0x3')+_0x40e98a+_0x5279('0x14'),_0x32115f),_0x3f5b2e['activeChange']==_0x1221b5&&_0x210db7[_0x5279('0x66')][_0x5279('0x87')](_0x5279('0xe6'),_0x32115f),_0x210db7[_0x5279('0x66')][_0x5279('0xae')](_0x184e03,_0x32115f),_0x210db7['mapper'][_0x5279('0x3b')](_0x32115f,_0xdb29b4['markerName']);}_0x30b270||_0x5c2962||!_0x409c76||_0x363d75(_0x409c76);};}(this[_0x5279('0x7e')]),{'priority':_0x5279('0xfb')}),this[_0x5279('0x7e')][_0x5279('0x6d')]['downcastDispatcher']['on'](_0x5279('0x112'),(_0x58f71f,_0x50e508,_0x38f22d)=>{const _0x2009d4=_0x38f22d['mapper'][_0x5279('0x2a')](_0x50e508[_0x5279('0x19')]);if(_0x2009d4)for(const _0x5846c9 of _0x2009d4)(_0x5846c9[_0x5279('0xb5')](_0x5279('0x82'))||_0x5846c9[_0x5279('0xb5')](_0x5279('0x5')))&&(_0x38f22d['mapper']['unbindElementFromMarkerName'](_0x5846c9,_0x50e508[_0x5279('0x19')]),_0x38f22d[_0x5279('0x66')]['remove'](_0x5846c9));},{'priority':'high'}),this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0xe0')]['on'](_0x5279('0xf6'),(_0x299b59,_0x50e51f,_0x530082)=>{const _0x473db2=_0x50e51f[_0x5279('0x19')][_0x5279('0xaa')](':')[0x1],_0x2b8c77=this[_0x5279('0x92')](_0x473db2);if(!_0x2b8c77)return null;const _0x3e9dbe=_0x5279('0x9d')==_0x2b8c77[_0x5279('0x96')]?_0x5279('0xaa'):_0x5279('0x78');if(_0x530082['consumable'][_0x5279('0x40')](_0x50e51f[_0x5279('0x2c')],_0x299b59['name']))for(const _0x19a119 of _0x50e51f[_0x5279('0x2c')][_0x5279('0xe2')]()){if(!_0x19a119['is']('element',_0x5279('0x37')))continue;const _0x34323e=_0x530082[_0x5279('0x66')][_0x5279('0xc2')](_0x5279('0x98'),{'class':_0x5279('0x3')+_0x3e9dbe}),_0x1679b9=_0x530082[_0x5279('0x13')][_0x5279('0xf8')](this[_0x5279('0x7e')][_0x5279('0x103')]['createPositionBefore'](_0x19a119));_0x2b8c77[_0x5279('0x55')][_0x5279('0xc9')]&&_0x530082[_0x5279('0x66')]['addClass'](_0x5279('0x3')+_0x3e9dbe+_0x5279('0x14'),_0x34323e),this[_0x5279('0x3a')]==_0x2b8c77&&_0x530082[_0x5279('0x66')][_0x5279('0x87')](_0x5279('0xe6'),_0x34323e),_0x530082[_0x5279('0x66')][_0x5279('0xae')](_0x1679b9,_0x34323e),_0x530082['mapper']['bindElementToMarker'](_0x34323e,_0x50e51f[_0x5279('0x19')]);}},{'priority':_0x5279('0xfb')}),this[_0x5279('0x7e')][_0x5279('0x103')]['document']['on'](_0x5279('0x8a'),()=>{this['editor']['editing']['view'][_0x5279('0x8a')](_0x1aa930=>{for(const _0x340d4e of this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x29')][_0x5279('0x11d')]()){const _0x5d3775=this[_0x5279('0x7e')][_0x5279('0x103')]['document']['getRoot'](_0x340d4e),_0x14457f=this[_0x5279('0x7e')][_0x5279('0x6d')]['view']['document'][_0x5279('0x84')](_0x340d4e);if(_0x14457f){const _0x2f10ad=_0x5d3775[_0x5279('0xec')]('revisionHistoryAttachChange');if(_0x1aa930[_0x5279('0xb2')]('data-change-id',_0x14457f),_0x1aa930[_0x5279('0x36')](_0x5279('0xb9'),_0x14457f),_0x1aa930[_0x5279('0x36')](_0x5279('0x64'),_0x14457f),_0x1aa930[_0x5279('0x36')](_0x5279('0x51'),_0x14457f),_0x2f10ad){const _0x12855d=this[_0x5279('0x92')](_0x2f10ad);if(!_0x12855d)return null;_0x1aa930[_0x5279('0x50')](_0x5279('0x53'),_0x2f10ad,_0x14457f),_0x1aa930[_0x5279('0x87')]('ck-revision-history-root-'+_0x12855d[_0x5279('0x96')],_0x14457f),this[_0x5279('0x3a')]==_0x12855d&&_0x1aa930[_0x5279('0x87')](_0x5279('0x51'),_0x14457f);}}}});}),this[_0x5279('0x7e')]['conversion'][_0x5279('0x104')](_0x5279('0xd3'))[_0x5279('0x0')]({'view':'comment','model':_0x3b75b0=>_0x5279('0x8f')+_0x3b75b0,'converterPriority':_0x5279('0xbc')}),this[_0x5279('0x7e')][_0x5279('0xd8')][_0x5279('0x104')]('upcast')[_0x5279('0x0')]({'view':_0x5279('0x4f'),'model':_0x562d3d=>_0x5279('0xf4')+_0x562d3d,'converterPriority':'highest'}),this[_0x5279('0x7e')][_0x5279('0xd8')][_0x5279('0x104')](_0x5279('0xb6'))[_0x5279('0xc5')]({'model':_0x5279('0xda'),'view':_0x362a54=>({'name':_0x5279('0x11e')+_0x362a54,'group':_0x5279('0xda')}),'converterPriority':_0x5279('0xbc')}),this[_0x5279('0x7e')][_0x5279('0xd8')][_0x5279('0x104')](_0x5279('0xfd'))[_0x5279('0x6b')]({'model':_0x5279('0xda'),'view':_0x4523f7=>{const _0xa0c44e=_0x4523f7[_0x5279('0x19')][_0x5279('0xaa')](':')[0x1];return _0x5279('0xe')!=_0xa0c44e&&_0x5279('0x67')!=_0xa0c44e?null:{'classes':[_0x5279('0x6e'),'ck-suggestion-preview-marker-'+_0xa0c44e]};}}),this[_0x5279('0x7e')]['editing'][_0x5279('0xe0')]['on'](_0x5279('0x3e'),et(this[_0x5279('0x7e')],'merge'),{'priority':_0x5279('0xfb')}),this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0xe0')]['on'](_0x5279('0x94'),et(this['editor'],_0x5279('0xaa')),{'priority':_0x5279('0xfb')}),this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0xe0')]['on'](_0x5279('0xe9'),(_0x359a10,_0x2631e6,_0x3fe986)=>{const _0x3aa4f6=_0x3fe986[_0x5279('0x13')][_0x5279('0x2a')](_0x2631e6[_0x5279('0x19')]);if(_0x3aa4f6)for(const _0x5d0a46 of _0x3aa4f6)_0x5d0a46['is'](_0x5279('0x10e'))&&(_0x3fe986['mapper']['unbindElementFromMarkerName'](_0x5d0a46,_0x2631e6[_0x5279('0x19')]),_0x3fe986[_0x5279('0x66')][_0x5279('0xc7')](_0x5d0a46));},{'priority':_0x5279('0xfb')});}['_getChangeFromId'](_0x49e78b){return this[_0x5279('0xba')][_0x5279('0x110')](_0x49e78b);}[_0x5279('0x71')](_0x518241){return this[_0x5279('0x68')]&&this[_0x5279('0x68')][_0x5279('0x77')](),this[_0x5279('0x68')]=new _0x45e674(this['editor'][_0x5279('0x18')],_0x518241),this[_0x5279('0x68')];}['_initInteractions'](){this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x29')]['selection'][_0x5279('0x2d')](_0x5279('0xef')),this['on'](_0x5279('0x2'),(_0x138a4e,_0x4b4506,_0x1aab2a,_0x5bffcb)=>{_0x5bffcb&&this[_0x5279('0x4c')][_0x5279('0xc7')](_0x5bffcb),_0x1aab2a&&(this[_0x5279('0x4c')]['add']({'view':_0x1aab2a,'stackId':_0x5279('0x73'),'position':{'target':()=>{const _0xbfed97=this[_0x5279('0x7e')][_0x5279('0x6d')],_0x32cf76=this[_0x5279('0x92')](_0x1aab2a[_0x5279('0x23')]);let _0x5c91c5;if(_0x32cf76['data'][_0x5279('0xcf')]){const _0x268d46=_0xbfed97['view']['getDomRoot'](_0x32cf76[_0x5279('0x115')]);_0x5c91c5=Array[_0x5279('0xb7')](_0x268d46[_0x5279('0x6')]());}else{const _0x29c7f4=this[_0x5279('0x7e')]['model'][_0x5279('0x8c')][_0x5279('0x110')]('revision:'+_0x1aab2a[_0x5279('0x23')]);_0x5c91c5=Array[_0x5279('0xb7')](_0xbfed97[_0x5279('0x13')][_0x5279('0x2a')](_0x29c7f4['name']))[_0x5279('0x15')](_0x4c7f04=>_0xbfed97[_0x5279('0x88')][_0x5279('0xc1')][_0x5279('0x81')](_0x4c7f04))[_0x5279('0x15')](_0x4db93f=>Array[_0x5279('0xb7')](_0x4db93f[_0x5279('0x6')]()))['flat']();}if(!this['_activeViewTarget'])return _0x5c91c5[0x0];return _0x5c91c5[_0x5279('0x47')](_0x34a7b0=>_0x34a7b0[_0x5279('0xbe')]-0x3<=this['_activeViewTarget']['y']&&_0x34a7b0[_0x5279('0xc8')]+0x3>=this[_0x5279('0x31')]['y']&&_0x34a7b0[_0x5279('0x79')]-0x3<=this['_activeViewTarget']['x']&&_0x34a7b0['right']+0x3>=this[_0x5279('0x31')]['x'])||_0x5c91c5[0x0];}}}),this[_0x5279('0x4c')]['showStack'](_0x5279('0x73')));}),this['on']('change:activeChange',(_0x10e595,_0xa33646,_0x4446f9,_0x4232ca)=>{this[_0x5279('0x7')]=_0x4446f9?this[_0x5279('0x71')](_0x4446f9):null,this['editor']['model']['change'](()=>{const _0x4f1c9f=this['editor'][_0x5279('0x6d')];_0x4232ca&&(_0x4232ca[_0x5279('0x55')][_0x5279('0xcf')]?_0x4f1c9f['view'][_0x5279('0x8a')](_0xb928f8=>{_0xb928f8[_0x5279('0x36')](_0x5279('0x51'),_0x4f1c9f[_0x5279('0x88')][_0x5279('0x29')][_0x5279('0x84')](_0x4232ca['rootName']));}):_0x4f1c9f[_0x5279('0x4e')](_0x5279('0xa4')+_0x4232ca['id'])),_0x4446f9&&(_0x4446f9['data'][_0x5279('0xcf')]?_0x4f1c9f['view'][_0x5279('0x8a')](_0x57d2de=>{_0x57d2de[_0x5279('0x87')](_0x5279('0x51'),_0x4f1c9f[_0x5279('0x88')][_0x5279('0x29')][_0x5279('0x84')](_0x4446f9[_0x5279('0x115')]));}):_0x4f1c9f[_0x5279('0x4e')]('revision:'+_0x4446f9['id']));});}),this['listenTo'](this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0x29')],_0x5279('0x102'),(_0x50f17c,_0x4f8d0e)=>{if(this[_0x5279('0x3a')])return;const _0x8dba29=this[_0x5279('0x119')](_0x4f8d0e[_0x5279('0x12')]),_0x184c31=this[_0x5279('0xba')]['get'](_0x8dba29);_0x184c31?(this[_0x5279('0x31')]={'x':_0x4f8d0e['domEvent']['x'],'y':_0x4f8d0e[_0x5279('0xf3')]['y']},this[_0x5279('0x7')]=this[_0x5279('0x71')](_0x184c31)):(this[_0x5279('0x31')]=null,this['activeView']=null);}),this[_0x5279('0xb8')](this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0x29')],'mousedown',(_0x444cef,_0x4e65bc)=>{const _0x3e6f1f=this[_0x5279('0x119')](_0x4e65bc[_0x5279('0x12')]),_0x5220e3=this[_0x5279('0xba')][_0x5279('0x110')](_0x3e6f1f);_0x5220e3?(this['_activeViewTarget']={'x':_0x4e65bc['domEvent']['x'],'y':_0x4e65bc[_0x5279('0xf3')]['y']},_0x5220e3===this[_0x5279('0x3a')]?this[_0x5279('0x4c')]['updatePosition']():this['activeChange']=_0x5220e3):(this[_0x5279('0x31')]=null,this[_0x5279('0x3a')]=null);});}[_0x5279('0x119')](_0x5bb94f){do{const _0x26f816=_0x5bb94f[_0x5279('0xec')](_0x5279('0x53'));if(_0x26f816)return _0x26f816;_0x5bb94f=_0x5bb94f[_0x5279('0x38')];}while(_0x5bb94f);return null;}[_0x5279('0x5a')](){this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x8a')](_0x25f986=>{for(const _0x481b8e of this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x8c')])_0x25f986[_0x5279('0x70')](_0x481b8e);});}}function et(_0x333d54,_0x55ace6){return(_0x11a52f,_0x463866,_0x3f86b1)=>{if(!_0x3f86b1[_0x5279('0x17')][_0x5279('0x40')](_0x463866[_0x5279('0x2c')],_0x11a52f[_0x5279('0x57')]))return;const _0x4ba212=_0x463866[_0x5279('0x2c')][_0x5279('0x65')](),_0xc8e8c6=_0x463866[_0x5279('0x2c')][_0x5279('0xc3')],_0x328a9f=_0x333d54[_0x5279('0x103')][_0x5279('0x54')];let _0x588c99=null,_0x46df6f=null,_0x296a8f=!0x1,_0x1fc028=!0x1;for(const _0x52871c of _0x4ba212){const _0x4ade6c=_0x52871c[_0x5279('0x4a')];_0x296a8f=_0x296a8f||_0x328a9f[_0x5279('0x27')](_0x4ade6c);const _0x2a44f5=_0x3f86b1['mapper']['toViewElement'](_0x4ade6c);if(_0x2a44f5&&_0x2a44f5[_0x5279('0x76')](_0x5279('0x16')))return;_0x5279('0x21')==_0x52871c['type']&&(_0x328a9f[_0x5279('0xc')](_0x4ade6c)&&!_0x328a9f[_0x5279('0xa9')](_0x4ade6c)&&(_0x4ade6c['nextSibling']||_0xc8e8c6['isAtEnd']?_0x588c99&&_0x588c99['parent']==_0x4ade6c||(_0x588c99=_0x4ade6c,_0x5b7122(_0x52871c[_0x5279('0x9f')]),_0x1fc028=!0x0):_0x46df6f=_0x46df6f||_0x52871c[_0x5279('0x9f')]));}function _0x5b7122(_0x873add){const _0x141245=_0x3f86b1[_0x5279('0x13')][_0x5279('0xf8')](_0x873add),_0x37e8fd=_0x3f86b1[_0x5279('0x66')][_0x5279('0xc2')]('span',{'class':'ck-suggestion-preview-marker-'+_0x55ace6});_0x3f86b1[_0x5279('0x66')]['insert'](_0x141245,_0x37e8fd),_0x3f86b1[_0x5279('0x13')]['bindElementToMarker'](_0x37e8fd,_0x463866['markerName']);}_0x296a8f||_0x1fc028||!_0x46df6f||_0x5b7122(_0x46df6f);};}export class RestoreRevisionCommand extends _0x113455{constructor(_0x2bf595){super(_0x2bf595);const _0x28e45f=_0x2bf595[_0x5279('0xc0')][_0x5279('0x110')](d);this[_0x5279('0xcd')]=!0x1,this[_0x5279('0xb8')](_0x28e45f,'change:isReady',()=>this[_0x5279('0x10f')]()),this['listenTo'](_0x28e45f,_0x5279('0xca'),()=>this[_0x5279('0x10f')]());}[_0x5279('0xa')](){const _0x752383=this[_0x5279('0x7e')],_0x5162a3=_0x752383[_0x5279('0xc0')][_0x5279('0x110')](d),_0x5a5056=_0x5162a3['isReady']?_0x5162a3[_0x5279('0x93')][_0x5279('0xa6')]:null;_0x752383[_0x5279('0x26')][_0x5279('0x110')](_0x5279('0x91'))[_0x5279('0x4d')](_0x5a5056);}[_0x5279('0x10f')](){const {isReady:_0x1f8c73,isEnabled:_0x17bba3}=this['editor']['plugins'][_0x5279('0x110')](d);this[_0x5279('0xe1')]=_0x1f8c73&&_0x17bba3;}}export class ShowChangeCommand extends _0x113455{constructor(_0x5846ae,{direction:_0x3f530a}){super(_0x5846ae);const _0x5957c8=_0x5846ae[_0x5279('0xc0')][_0x5279('0x110')](d);this['affectsData']=!0x1,this[_0x5279('0x20')]=_0x5279('0x8')===_0x3f530a?0x1:-0x1,this[_0x5279('0xb8')](_0x5957c8,'change:isReady',()=>this[_0x5279('0x10f')]()),this[_0x5279('0xb8')](_0x5957c8,_0x5279('0xca'),()=>this[_0x5279('0x10f')]()),this[_0x5279('0xb8')](_0x5957c8,_0x5279('0xc4'),()=>this['refresh']());}[_0x5279('0xa')](){const _0x3cd6eb=this['editor'],_0x28c31d=_0x3cd6eb[_0x5279('0xc0')]['get'](d),{isNavigationMode:_0x580e6c,currentChangeNumber:_0x14e528}=_0x28c31d;let _0xdfdbde;if(_0x28c31d[_0x5279('0x3a')]=_0x580e6c?_0x28c31d[_0x5279('0x93')][_0x5279('0x60')]['get'](_0x14e528+this['_step']):_0x28c31d[_0x5279('0x93')][_0x5279('0x60')][_0x5279('0x49')],_0x28c31d['activeChange']['data'][_0x5279('0xcf')])_0xdfdbde=_0x3cd6eb['editing']['view']['getDomRoot'](_0x28c31d[_0x5279('0x3a')][_0x5279('0x115')]);else{const _0x3e08df=_0x3cd6eb['model'][_0x5279('0x8c')][_0x5279('0x110')]('revision:'+_0x28c31d[_0x5279('0x3a')]['id']);_0xdfdbde=_0x3a8ef3(_0x3cd6eb[_0x5279('0x6d')],_0x3e08df);}_0x33d52d({'target':_0xdfdbde,'viewportOffset':0x28});}[_0x5279('0x10f')](){const {isNavigationMode:_0x10ab2b,currentChangeNumber:_0x1db553,numberOfChanges:_0x40a2b4,isReady:_0x5044bd,isEnabled:_0x89b821}=this['editor'][_0x5279('0xc0')][_0x5279('0x110')](d);this[_0x5279('0xe1')]=!!(_0x89b821&&_0x5044bd&&_0x40a2b4)&&(!_0x10ab2b||(0x1===this[_0x5279('0x20')]?_0x1db553<_0x40a2b4-0x1:_0x1db553>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30f0=['buttonView','threeVerticalDots','_action','bind','ck-revision-history-sidebar__revision__actions','source','change:isActionsDropdownOpen','Show\x20more\x20items','class','action','map','model','first','extendTemplate','isActionsDropdownOpen','set','locale','children','execute','isEnabled','Restore\x20this\x20revision','listView','Name\x20this\x20revision','isReady','name','function','bindTemplate','find','stopPropagation','Compare\x20against\x20selected','ck-on'];(function(_0x36f35e,_0x30f04b){const _0x36a8ac=function(_0x508df7){while(--_0x508df7){_0x36f35e['push'](_0x36f35e['shift']());}};_0x36a8ac(++_0x30f04b);}(_0x30f0,0x14b));const _0x36a8=function(_0x36f35e,_0x30f04b){_0x36f35e=_0x36f35e-0x0;let _0x36a8ac=_0x30f0[_0x36f35e];return _0x36a8ac;};import{Collection as _0xcf07be}from'ckeditor5/src/utils.js';import{icons as _0x5281f1}from'ckeditor5/src/core.js';import{ViewModel as _0x24edd0,addListToDropdown as _0x47c885,createDropdown as _0x2e09e1}from'ckeditor5/src/ui.js';import{getTranslation as _0x209084}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x100be3,_0x103589){const _0x50f7b2=_0x100be3[_0x36a8('0x5')],_0x296171=_0x100be3[_0x36a8('0x1a')],_0x224915=_0x2e09e1(_0x296171);_0x224915['panelPosition']='sw';const _0x3d6165=function(_0x6306c0,_0x40f61e){const _0xcf394b=function(_0x22611d,_0x5c9d34){const _0x1fb8fa=_0x22611d[_0x36a8('0x1a')],_0x1fe54c={'Compare\x20against\x20selected':_0x209084(_0x1fb8fa,_0x36a8('0x8')),'Name\x20this\x20revision':_0x209084(_0x1fb8fa,_0x36a8('0x1')),'Restore\x20this\x20revision':_0x209084(_0x1fb8fa,_0x36a8('0x1e'))};return _0x5c9d34[_0x36a8('0x14')](_0x4f15cb=>{const _0x3c3569=_0x1fe54c[_0x4f15cb['name']];return _0x3c3569&&_0x3c3569!==_0x4f15cb['name']&&(_0x4f15cb[_0x36a8('0x3')]=_0x3c3569),_0x4f15cb;});}(_0x6306c0,_0x40f61e),_0xffe394=new _0xcf07be();for(const _0xa466ca of _0xcf394b){const _0x7af554={'type':'button','model':new _0x24edd0({'label':_0xa466ca[_0x36a8('0x3')],'class':_0xa466ca[_0x36a8('0x12')],'withText':!0x0,'_action':_0xa466ca[_0x36a8('0x13')]})};_0x7af554[_0x36a8('0x15')][_0x36a8('0xd')]('isEnabled')['to'](_0x6306c0,_0x36a8('0x18'),_0xa3322a=>_0x36a8('0x4')!=typeof _0xa466ca[_0x36a8('0x1d')]||(!_0xa3322a||_0xa466ca[_0x36a8('0x1d')](_0x6306c0))),_0xffe394['add'](_0x7af554);}return _0xffe394;}(_0x100be3,_0x103589);return _0x100be3[_0x36a8('0xd')](_0x36a8('0x18'))['to'](_0x224915,'isOpen'),_0x224915[_0x36a8('0xa')][_0x36a8('0x19')]({'label':_0x209084(_0x296171,_0x36a8('0x11')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5281f1[_0x36a8('0xb')]}),_0x224915[_0x36a8('0x17')]({'attributes':{'class':[_0x36a8('0xe'),_0x50f7b2['if'](_0x36a8('0x18'),_0x36a8('0x9'))]},'on':{'click':_0x50f7b2['to'](_0xe5674f=>_0xe5674f[_0x36a8('0x7')]())}}),_0x224915['on'](_0x36a8('0x1c'),_0x1f23bb=>{_0x100be3[_0x36a8('0x2')]&&'function'==typeof _0x1f23bb[_0x36a8('0xf')]['_action']&&_0x1f23bb[_0x36a8('0xf')][_0x36a8('0xc')](_0x100be3);}),_0x47c885(_0x224915,_0x3d6165),_0x224915['listenTo'](_0x100be3,_0x36a8('0x10'),(_0x1f09e1,_0xb42e,_0x5dca74)=>{if(_0x5dca74)for(const _0x25418a of _0x224915[_0x36a8('0x0')]['items']){const _0xa7b5ba=_0x25418a[_0x36a8('0x1b')][_0x36a8('0x16')],_0x913166=_0x103589[_0x36a8('0x6')](_0x42365e=>_0x42365e['action']===_0xa7b5ba[_0x36a8('0xc')])['isVisible'];_0x25418a['isVisible']=void 0x0===_0x913166||_0x913166(_0x100be3);}}),_0x224915;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22b7=['Revision\x20creator','setTemplate','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name','set','0\x200\x2011\x2010','span','name','ck-revision-history-sidebar__revision-author_creator'];(function(_0x494eac,_0x22b751){const _0x297d8b=function(_0x4287c4){while(--_0x4287c4){_0x494eac['push'](_0x494eac['shift']());}};_0x297d8b(++_0x22b751);}(_0x22b7,0x198));const _0x297d=function(_0x494eac,_0x22b751){_0x494eac=_0x494eac-0x0;let _0x297d8b=_0x22b7[_0x494eac];return _0x297d8b;};import{View as _0x259048,IconView as _0x124e0d}from'ckeditor5/src/ui.js';import{getTranslation as _0x5c5607}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x61983b from'../../../theme/icons/user.svg';export default class ti extends _0x259048{constructor(_0x2364ff,_0x29eb83,_0x2a3d7d){super(_0x2364ff);const _0x34e884=new _0x124e0d();_0x34e884[_0x297d('0x1')]({'content':_0x61983b,'viewBox':_0x297d('0x2')});const _0x2894aa=['ck',_0x297d('0x8')];_0x2a3d7d&&_0x2894aa['push'](_0x297d('0x5'));const _0x5d6902=[{'tag':_0x297d('0x3'),'attributes':{'class':['ck',_0x297d('0x0')],'title':_0x5c5607(_0x2364ff,_0x2a3d7d?_0x297d('0x6'):'Revision\x20author')},'children':[_0x34e884,_0x29eb83[_0x297d('0x4')]]}];this[_0x297d('0x7')]({'tag':'li','attributes':{'class':_0x2894aa},'children':_0x5d6902});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x563a=['set','extendTemplate','ck-revision-history-sidebar__revision-name','span'];(function(_0x487729,_0x563a3b){var _0x5370e6=function(_0x32a490){while(--_0x32a490){_0x487729['push'](_0x487729['shift']());}};_0x5370e6(++_0x563a3b);}(_0x563a,0x194));var _0x5370=function(_0x487729,_0x563a3b){_0x487729=_0x487729-0x0;var _0x5370e6=_0x563a[_0x487729];return _0x5370e6;};import{LabeledFieldView as _0x3950e8}from'ckeditor5/src/ui.js';import{getTranslation as _0x30c83f}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x3950e8{constructor(_0x2d8ace,_0x3e951e){super(_0x2d8ace,_0x3e951e),this[_0x5370('0x0')]({'label':_0x30c83f(_0x2d8ace,'Revision\x20name')}),this[_0x5370('0x1')]({'tag':_0x5370('0x3'),'attributes':{'class':[_0x5370('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa020=['span','unshift','createdAt','deselect','ck-revision-history-sidebar__revision__date','set','div','ck-revision-history-sidebar__revision-wrapper','isEnabled','value','revisionNameView','extendTemplate','render','setTemplate','.ck-thread__remove-confirm','highlight','isReady','map','isSelected','bind','ck-revision-history-sidebar__actions_dropdown_open','uiLanguage','change','listenTo','creator','ck-reset','closest','ck-revision-history-sidebar__revision_selected','name','select','fieldView','isHighlighted','placeholder','element','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','authors','_revision','ck-revision-history-sidebar__revision-authors','revisionActionsView','fire','isActionsDropdownOpen','_createdAtFormatted','from','ck-revision-history-sidebar__revision__controls-wrapper','filter'];(function(_0x4946b9,_0xa02018){const _0x4ec2fa=function(_0x1f3de8){while(--_0x1f3de8){_0x4946b9['push'](_0x4946b9['shift']());}};_0x4ec2fa(++_0xa02018);}(_0xa020,0x198));const _0x4ec2=function(_0x4946b9,_0xa02018){_0x4946b9=_0x4946b9-0x0;let _0x4ec2fa=_0xa020[_0x4946b9];return _0x4ec2fa;};import{View as _0xa9cac3,createLabeledInputText as _0x2e5bb5}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x44d44e}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x49eec0 from'./revisionnameview.js';import _0x41c299 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x2ecd83}from'./utils.js';import{createActionsDropdownView as _0x43461e}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x44d44e(_0xa9cac3){constructor(_0x3751d1,_0x5ae914,_0x5d2327){super(_0x3751d1);const _0xa87f93=this['bindTemplate'],_0x1391ca=function(_0x36a618,_0x4f569e){const _0x4e38f5=Array[_0x4ec2('0x27')](_0x4f569e[_0x4ec2('0x20')])[_0x4ec2('0x29')](_0x3dfc4d=>_0x3dfc4d!=_0x4f569e['creator']);return _0x4f569e[_0x4ec2('0x15')]&&_0x4e38f5[_0x4ec2('0x2b')](_0x4f569e['creator']),_0x4e38f5[_0x4ec2('0xe')](_0x1e6195=>new _0x41c299(_0x36a618,_0x1e6195,_0x1e6195==_0x4f569e[_0x4ec2('0x15')]));}(_0x3751d1,_0x5ae914);this['id']=_0x5ae914['id'],this[_0x4ec2('0x21')]=_0x5ae914,this[_0x4ec2('0x10')](_0x4ec2('0x19'),_0x4ec2('0x2c'))['to'](_0x5ae914),this[_0x4ec2('0x10')]('_createdAtFormatted')['to'](this,'createdAt',_0x210220=>_0x210220?_0x2ecd83(_0x3751d1[_0x4ec2('0x12')],_0x210220):void 0x0),this['set'](_0x4ec2('0xf'),!0x1),this['set'](_0x4ec2('0x1c'),!0x1),this[_0x4ec2('0x2')]('isActionsDropdownOpen',!0x1),this[_0x4ec2('0x2')](_0x4ec2('0xd'),!0x1),this[_0x4ec2('0x2')]('isEnabled',!0x1),this[_0x4ec2('0x7')]=new _0x49eec0(_0x3751d1,_0x2e5bb5),this['revisionNameView'][_0x4ec2('0x1b')][_0x4ec2('0x8')]({'attributes':{'maxlength':'220'}}),this[_0x4ec2('0x7')][_0x4ec2('0x1b')][_0x4ec2('0x10')]('value',_0x4ec2('0x1d'))['to'](this,'name',_0x4ec2('0x26')),this['revisionNameView']['bind'](_0x4ec2('0x5'))['to'](this,'isSelected',this,'isEnabled',(_0x21c26d,_0x8bb47d)=>_0x21c26d&&_0x8bb47d),this[_0x4ec2('0x23')]=_0x5d2327&&_0x5d2327['length']?_0x43461e(this,_0x5d2327):'',this[_0x4ec2('0x23')]&&this['revisionActionsView']['bind'](_0x4ec2('0x5'))['to'](this),this[_0x4ec2('0xa')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x4ec2('0x4'),_0xa87f93['if']('isConfirm',_0x4ec2('0x1f'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x4ec2('0x16'),'ck-revision-history-sidebar__revision',_0xa87f93['if'](_0x4ec2('0x5'),'ck-disabled',_0x5a2871=>!_0x5a2871),_0xa87f93['if']('isSelected',_0x4ec2('0x18')),_0xa87f93['if'](_0x4ec2('0x1c'),'ck-revision-history-sidebar__revision_highlighted'),_0xa87f93['if'](_0x4ec2('0x25'),_0x4ec2('0x11'))]},'children':[this[_0x4ec2('0x7')],{'tag':_0x4ec2('0x2a'),'attributes':{'class':['ck',_0x4ec2('0x1')]},'children':[{'text':_0xa87f93['to'](_0x4ec2('0x26'))}]},{'tag':_0x4ec2('0x3'),'attributes':{'class':['ck',_0x4ec2('0x28')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4ec2('0x22')]},'children':_0x1391ca}]},this[_0x4ec2('0x23')]],'on':{'click':_0xa87f93['to'](_0x3c300f=>{_0x3c300f['srcElement'][_0x4ec2('0x17')](_0x4ec2('0xb'))||this[_0x4ec2('0xd')]&&this['isEnabled']&&this[_0x4ec2('0x24')]('select',{'id':this['id']});})}}]});}[_0x4ec2('0x9')](){super[_0x4ec2('0x9')]();const _0x28da67=this[_0x4ec2('0x7')][_0x4ec2('0x1b')][_0x4ec2('0x1e')];this[_0x4ec2('0x14')](_0x28da67,_0x4ec2('0x13'),()=>{this[_0x4ec2('0x24')]('setName',{'id':this['id'],'name':_0x28da67[_0x4ec2('0x6')]});});}[_0x4ec2('0x1a')](){this[_0x4ec2('0xf')]=!0x0;}[_0x4ec2('0x0')](){this[_0x4ec2('0xf')]=!0x1;}[_0x4ec2('0xc')](){this[_0x4ec2('0x1c')]=!0x0;}['unhighlight'](){this[_0x4ec2('0x1c')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8475=['ck-revision-history-sidebar__subrevision-collapser_collapsed','isVisible','bindTemplate','true','span','button','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','set','false','setTemplate'];(function(_0x550d43,_0x847586){const _0x5005eb=function(_0x2006ca){while(--_0x2006ca){_0x550d43['push'](_0x550d43['shift']());}};_0x5005eb(++_0x847586);}(_0x8475,0x1c9));const _0x5005=function(_0x550d43,_0x847586){_0x550d43=_0x550d43-0x0;let _0x5005eb=_0x8475[_0x550d43];return _0x5005eb;};import{View as _0x2accf3}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2accf3{constructor(_0x434fee){super(_0x434fee);const _0x1e49d8=this[_0x5005('0x7')];this[_0x5005('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5005('0x4')]({'tag':_0x5005('0x9'),'attributes':{'class':['ck',_0x5005('0x1'),_0x1e49d8['if'](_0x5005('0x6'),'ck-hidden',_0x5f4132=>!_0x5f4132),_0x1e49d8['if'](_0x5005('0x0'),_0x5005('0x5'))],'role':_0x5005('0xa'),'aria-pressed':_0x1e49d8['to'](_0x5005('0x0'),_0x276703=>_0x276703?_0x5005('0x3'):_0x5005('0x8'))},'children':[{'tag':_0x5005('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x1e49d8['to']('click')}});}['toggle'](){this['_isCollapsed']=!this[_0x5005('0x0')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a9a=['uiLanguage','bindTemplate','ck-revision-history-sidebar__revision-authors','setTemplate','creator','isSelected','ck-revision-history-sidebar__revision','fire','bind','div','span','ck-revision-history-sidebar__subrevision','_parentRevisionId','select','_createdAtFormatted','ck-revision-history-sidebar__revision__date'];(function(_0x4ac17f,_0x2a9a43){const _0x125650=function(_0x5293a8){while(--_0x5293a8){_0x4ac17f['push'](_0x4ac17f['shift']());}};_0x125650(++_0x2a9a43);}(_0x2a9a,0x19e));const _0x1256=function(_0x4ac17f,_0x2a9a43){_0x4ac17f=_0x4ac17f-0x0;let _0x125650=_0x2a9a[_0x4ac17f];return _0x125650;};import{View as _0x1488e0}from'ckeditor5/src/ui.js';import _0x3ce396 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x3d2a1f}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x1488e0{constructor(_0x3452d7,_0xb29e43,_0x495a46){super(_0x3452d7);const _0x4529bd=this[_0x1256('0x3')];this['id']=_0xb29e43['id'],this['bind']('createdAt')['to'](_0xb29e43),this['set'](_0x1256('0x7'),!0x1),this[_0x1256('0xa')](_0x1256('0x0'))['to'](this,'createdAt',_0x5393b2=>_0x5393b2?_0x3d2a1f(_0x3452d7[_0x1256('0x2')],_0x5393b2):void 0x0),this[_0x1256('0xe')]=_0x495a46,this[_0x1256('0x5')]({'tag':_0x1256('0xb'),'attributes':{'class':['ck','ck-reset',_0x1256('0x8'),_0x1256('0xd'),_0x4529bd['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1256('0xc'),'attributes':{'class':['ck',_0x1256('0x1')]},'children':[{'text':_0x4529bd['to'](_0x1256('0x0'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1256('0x4')]},'children':[new _0x3ce396(_0x3452d7,_0xb29e43[_0x1256('0x6')],!0x0)]}],'on':{'click':_0x4529bd['to'](this[_0x1256('0xf')][_0x1256('0xa')](this))}});}[_0x1256('0xf')](){this[_0x1256('0x7')]=!0x0,this[_0x1256('0x9')](_0x1256('0xf'),{'parentId':this['_parentRevisionId']});}['deselect'](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2b00=['long','numeric'];(function(_0x458114,_0x2b007f){var _0x117bc1=function(_0x2911f6){while(--_0x2911f6){_0x458114['push'](_0x458114['shift']());}};_0x117bc1(++_0x2b007f);}(_0x2b00,0x188));var _0x117b=function(_0x458114,_0x2b007f){_0x458114=_0x458114-0x0;var _0x117bc1=_0x2b00[_0x458114];return _0x117bc1;};export function dateToPrettyFormat(_0xc3d7bf,_0x13987a){return _0x13987a['toLocaleDateString'](_0xc3d7bf,{'month':_0x117b('0x0'),'day':'numeric'})+',\x20'+_0x13987a['toLocaleTimeString'](_0xc3d7bf,{'hour':_0x117b('0x1'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55ec=['trim','_focusCycler','keystrokes','focusFirst','forEach','shift\x20+\x20tab','saveButtonView','type','tab','set','listenTo','cancelButtonView','setTemplate','delegate','fieldView','Cancel','_createButton','revisionNameInputView','cancel','check','extendTemplate','revisionName','focus','add','Name\x20of\x20the\x20revision\x20(optional)','locale','focusTracker','execute','Save','ck-button-cancel','element','_createRevisionNameInput','value','arrowdown','label','arrowup','revisionNameInputValue','reset','render','_focusables'];(function(_0x3f3f94,_0x55ec5c){const _0x437063=function(_0x5bda73){while(--_0x5bda73){_0x3f3f94['push'](_0x3f3f94['shift']());}};_0x437063(++_0x55ec5c);}(_0x55ec,0x74));const _0x4370=function(_0x3f3f94,_0x55ec5c){_0x3f3f94=_0x3f3f94-0x0;let _0x437063=_0x55ec[_0x3f3f94];return _0x437063;};import{icons as _0x5d62bc}from'ckeditor5/src/core.js';import{ButtonView as _0x2139e0,FocusCycler as _0x262029,LabeledFieldView as _0x290a83,View as _0x3295bc,ViewCollection as _0x2274a1,createLabeledInputText as _0x5e84a0,injectCssTransitionDisabler as _0x41148d,submitHandler as _0x417f2b}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3391fc,KeystrokeHandler as _0xb84fda}from'ckeditor5/src/utils.js';import{getTranslation as _0xd5f15}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x3295bc{constructor(_0x2468ff){super(_0x2468ff),this[_0x4370('0x1e')]=new _0x3391fc(),this[_0x4370('0x6')]=new _0xb84fda(),this[_0x4370('0xd')](_0x4370('0x0'),''),this[_0x4370('0x15')]=this[_0x4370('0x23')](),this[_0x4370('0xa')]=this[_0x4370('0x14')](_0xd5f15(_0x2468ff,_0x4370('0x20')),_0x5d62bc[_0x4370('0x17')],'ck-button-save'),this['saveButtonView'][_0x4370('0xb')]='submit',this[_0x4370('0xf')]=this['_createButton'](_0xd5f15(_0x2468ff,_0x4370('0x13')),_0x5d62bc[_0x4370('0x16')],_0x4370('0x21'),_0x4370('0x16')),this[_0x4370('0x3')]=new _0x2274a1(),this[_0x4370('0x5')]=new _0x262029({'focusables':this[_0x4370('0x3')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x4370('0x6')],'actions':{'focusPrevious':_0x4370('0x9'),'focusNext':_0x4370('0xc')}}),this[_0x4370('0x10')]({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x4370('0xa')],this[_0x4370('0xf')]]}),_0x41148d(this);}[_0x4370('0x2')](){super['render'](),_0x417f2b({'view':this}),([this[_0x4370('0x15')],this['saveButtonView'],this[_0x4370('0xf')]][_0x4370('0x8')](_0x4e4497=>{this[_0x4370('0x3')][_0x4370('0x1b')](_0x4e4497),this['focusTracker'][_0x4370('0x1b')](_0x4e4497[_0x4370('0x22')]);}),this[_0x4370('0x6')][_0x4370('0xe')](this[_0x4370('0x22')]));const _0x533c48=_0x38ce03=>_0x38ce03['stopPropagation']();this[_0x4370('0x6')][_0x4370('0xd')]('arrowright',_0x533c48),this[_0x4370('0x6')][_0x4370('0xd')]('arrowleft',_0x533c48),this[_0x4370('0x6')]['set'](_0x4370('0x27'),_0x533c48),this[_0x4370('0x6')][_0x4370('0xd')](_0x4370('0x25'),_0x533c48);}[_0x4370('0x1a')](){this[_0x4370('0x5')][_0x4370('0x7')]();}get[_0x4370('0x19')](){return this['revisionNameInputView'][_0x4370('0x12')][_0x4370('0x22')][_0x4370('0x24')][_0x4370('0x4')]();}set['revisionName'](_0x129820){this[_0x4370('0x15')][_0x4370('0x12')][_0x4370('0x22')][_0x4370('0x24')]=_0x129820[_0x4370('0x4')]();}[_0x4370('0x1')](){this['revisionNameInputView'][_0x4370('0x12')][_0x4370('0x22')][_0x4370('0x24')]='';}[_0x4370('0x23')](){const _0x37620c=new _0x290a83(this[_0x4370('0x1d')],_0x5e84a0),_0x25bf7b=_0x37620c[_0x4370('0x12')];return _0x25bf7b['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x37620c[_0x4370('0x26')]=_0xd5f15(this[_0x4370('0x1d')],_0x4370('0x1c')),_0x25bf7b['on']('input',()=>{this[_0x4370('0x0')]=_0x25bf7b[_0x4370('0x22')][_0x4370('0x24')][_0x4370('0x4')]();}),_0x37620c;}['_createButton'](_0x3fdcb7,_0x35c851,_0x15252c,_0x51b067){const _0x107733=new _0x2139e0(this[_0x4370('0x1d')]);return _0x107733['set']({'label':_0x3fdcb7,'icon':_0x35c851,'tooltip':!0x0}),_0x107733[_0x4370('0x18')]({'attributes':{'class':_0x15252c}}),_0x51b067&&_0x107733[_0x4370('0x11')](_0x4370('0x1f'))['to'](this,_0x51b067),_0x107733;}}
|