@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231212.0 → 0.0.0-nightly-20231214.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4330=['marked','isEqual','type','diffData','from','return','first','_getChangeFromId','adapter','addMarker:revision','_makeModelFromViewString','abs','revisionHistoryAttachChange','unbindElementFromMarkerName','span','refresh','revision-comment:','insertions','elementEnd','delete','next','change:numberOfChanges','loadRevisionData','model','_getViewObj','restoreRevisionCallback','_data','code','deletions','ck-suggestion-preview-marker','execute','length','vid_end','_removeMissingPairs','toViewRange','isAtEnd','getAttribute','getRevision','consumable','slice','createRange','addRoot','indexOf','_appendChild','pluginName','hasAttribute','ck-suggestion-preview-marker-','vid','getWalker','useFillerType','_sortAndFilterDiffChanges','repository','editing','isOnRoot','data','markerToData','plugins','revisionHistoryLabel','editingDowncast','isLimit','previousPosition','setAttribute','markerName','isCollapsed','parse','isAddSuggestion','nextPosition','_setConversion','comment','ck-revision-history-root-add','updatePosition','attributes','consume','roots','showNextChange','revision-suggestion','top','getDomRoot','WidgetToolbarRepository','_makeTape','isReady','RevisionsRepository','isEnabled','bind','getClientRects','dataToMarker','done','_update','_markMismatchedRemovedTags','toViewPosition','insert','getAttributes','wrap','vid_start','data-revision-','startsWith','element','has','change:activeChange','get','numberOfChanges','schema','markerNameToElements','children','side','currentChangeNumber','_setDistance','ck-suggestion-marker-merge','toModel','revision','_findChangeIdFromDomTarget','elementStart','markersEnd','data-change-id','removeMarker','init','bindElementToMarker','_step','nextSibling','upcast','_changeView','pairId','find','isNavigationMode','createPositionFromPath','then','ck-revision-history-root-','isSuggestion','resolve','split','ck-suggestion-marker','_activeViewTarget','affectsData','name','_removeRevisionMarkers','observeMarkers','item','domEvent','findIndex','catch','merge','isBlock','mousedown','level','addRevisionData','view','_changeIdToChange','showStack','_cleanUp','enqueueChange','getCustomProperty','change:isEnabled','isRemoveSuggestion','startIndex','right','low','_cleanMarkers','listenTo','authors','_getDiff','endIndex','getRootNames','includes','markerToHighlight','removeAttribute','string','splice','flat','ck-revision-history-root--active','isIncorrect','getItems','test','revision-viewer','high','enableReadOnlyMode','end','element:pre','hasClass','createRevision','reconvertMarker','revisionHistory','isRemoved','concat','_threeWayMerge','highest','markers','writer','nodeAfter','add','_markInsertions','createPositionBefore','text','conversion','viewItem','getRevisionData','newRevisionId','ck-revision-history-root-remove','isAdded','default','map','_getViewForChange','isInline','_balloon','_markMarkers','createUIElement','suggestion:','revision-suggestion:','attachChange','_revisions','suggestion','error','_removeUnsupportedChanges','isAttached','isAfter','keys','_initInteractions','toViewElement','downcastDispatcher','_markSuggestions','start','rootName','markersStart','_fixObsoleteTags','unshift','editor','parent','createAttributeElement','deletion','attributesBefore','detachRoot','commands','attributesAfter','changeId','_makeModelFromTape','modelRange','remove','addHighlight','POSITIVE_INFINITY','userId','config','ck-suggestion-marker-','shift','softBreak','getChild','change','_processTape','domConverter','all','mapper','_refreshStartEndIndex','for','compare','index','selection','revision:','forEach','addClass','getRoot','push','requires','dataDowncast','getRevisionRootsAttributes','restoreRevision','locale','activeView','-new','distance','removeClass','processor','ck-suggestion-marker--active','activeChange','diff','left','getIndex','changes','insertion','_getRevisionsRange','mapViewToDom','markerRange','sort','uiElement','values','filter','isBefore','ck-suggestion-marker-split','isContent','destroy','isObject','set','RevisionViewer','forward','object','document','_joinTapes'];(function(_0x442dba,_0x433013){const _0x5e1004=function(_0x2c7281){while(--_0x2c7281){_0x442dba['push'](_0x442dba['shift']());}};_0x5e1004(++_0x433013);}(_0x4330,0x75));const _0x5e10=function(_0x442dba,_0x433013){_0x442dba=_0x442dba-0x0;let _0x5e1004=_0x4330[_0x442dba];return _0x5e1004;};import{Plugin as _0x3a5cf0,Command as _0x8477e}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2eed88}from'ckeditor5/src/utils';import{ContextualBalloon as _0x544dfd}from'ckeditor5/src/ui';import{DocumentFragment as _0x348e46,Element as _0x1ec88f,Text as _0xacc02e,ViewDocumentFragment as _0x2143ed,ViewText as _0x1b3618,ViewElement as _0x5958f6,ViewContainerElement as _0xee5be8,ViewAttributeElement as _0x572a50,ViewEmptyElement as _0x1bb757,ViewRawElement as _0x499d1a,ViewUIElement as _0x15c9fc}from'ckeditor5/src/engine';import{Users as _0x2df963,getMarkerDomElement as _0x4ee3ac}from'ckeditor5-collaboration/src/collaboration-core';import _0x37931b from'./ui/revisionviewer/changedetailsview';import _0x2d2da6 from'./revisionsrepository';import _0x4530f3 from'./changeitem';import{default as _0x259645}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x2910fc}from'lodash-es';const tt={'c':_0xee5be8,'a':_0x572a50,'e':_0x1bb757,'r':_0x499d1a,'u':_0x15c9fc};export default class d extends _0x3a5cf0{static get[_0x5e10('0xdd')](){return'RevisionViewer';}static get[_0x5e10('0x8e')](){return[_0x2df963,_0x544dfd,_0x2d2da6];}constructor(_0x13d36f){super(_0x13d36f),this[_0x5e10('0xe4')]=this[_0x5e10('0x6b')]['plugins'][_0x5e10('0x114')](_0x5e10('0x102')),this['set'](_0x5e10('0x99'),null),this[_0x5e10('0xab')](_0x5e10('0x93'),null),this[_0x5e10('0xe')]=null,this[_0x5e10('0xab')](_0x5e10('0x9a'),null),this['set'](_0x5e10('0x101'),!0x1),this[_0x5e10('0xab')](_0x5e10('0x103'),!0x0),this['on']('change:isEnabled',(_0x281810,_0x5f4b81,_0x45a614)=>{this[_0x5e10('0x99')]=null,this['activeView']=null,this['editor'][_0x5e10('0xe5')]['view']['change'](_0x4cf06d=>{for(const _0x14f085 of this[_0x5e10('0x6b')][_0x5e10('0xe5')][_0x5e10('0x1c')]['document'][_0x5e10('0xfa')])_0x45a614?_0x4cf06d[_0x5e10('0x96')]('ck-editor__editable__overlay',_0x14f085):_0x4cf06d[_0x5e10('0x8b')]('ck-editor__editable__overlay',_0x14f085);});}),this['bind'](_0x5e10('0x6'))['to'](this,'activeChange',_0x92cbcb=>null!==_0x92cbcb),this['bind'](_0x5e10('0x11a'))['to'](this,_0x5e10('0x101'),this,_0x5e10('0x9a'),this,_0x5e10('0x99'),(_0xea9f6e,_0x1275f1,_0x5dbd05)=>_0xea9f6e&&_0x5dbd05?_0x1275f1[_0x5e10('0x9d')][_0x5e10('0x9c')](_0x5dbd05):0x0),this[_0x5e10('0x104')](_0x5e10('0x115'))['to'](this,_0x5e10('0x101'),this,'diff',(_0x3c9c24,_0x171899)=>_0x3c9c24?_0x171899[_0x5e10('0x9d')][_0x5e10('0xd0')]:0x0),this[_0x5e10('0x3')]=null,this[_0x5e10('0x1d')]=new Map(),this[_0x5e10('0xb9')]=null,this[_0x5e10('0x55')]=this[_0x5e10('0x6b')][_0x5e10('0xe9')][_0x5e10('0x114')](_0x544dfd);}[_0x5e10('0x124')](){const _0x3cc8a1=this[_0x5e10('0x6b')],_0xdeae75=new ShowChangeCommand(_0x3cc8a1,{'direction':'backward'}),_0x19d482=new ShowChangeCommand(_0x3cc8a1,{'direction':_0x5e10('0xad')});(_0x3cc8a1['commands'][_0x5e10('0x47')]('showPreviousChange',_0xdeae75),_0x3cc8a1[_0x5e10('0x71')]['add'](_0x5e10('0xfb'),_0x19d482),_0x3cc8a1[_0x5e10('0x71')][_0x5e10('0x47')](_0x5e10('0x91'),new RestoreRevisionCommand(_0x3cc8a1)),this['on'](_0x5e10('0xc6'),()=>{_0xdeae75[_0x5e10('0xc0')](),_0x19d482[_0x5e10('0xc0')]();}),this[_0x5e10('0xf4')](),this[_0x5e10('0x62')](),_0x3cc8a1[_0x5e10('0x39')]('revision-viewer'),_0x3cc8a1['plugins'][_0x5e10('0x112')](_0x5e10('0xff')))&&_0x3cc8a1[_0x5e10('0xe9')][_0x5e10('0x114')](_0x5e10('0xff'))['forceDisabled'](_0x5e10('0x37'));}async[_0x5e10('0x4d')](_0x53d280){await this[_0x5e10('0xc7')](_0x53d280);const _0xacbd17={};for(const _0x5b3f3c in _0x53d280[_0x5e10('0xb4')]){if(_0x53d280[_0x5e10('0xb4')][_0x5b3f3c][_0x5e10('0x5a')]&&!_0x53d280['diffData'][_0x5b3f3c]['attachChange'][_0x5e10('0x5f')])continue;const _0x5f3dc9=this['_removeRevisionMarkers'](JSON[_0x5e10('0xf1')](_0x53d280[_0x5e10('0xb4')][_0x5b3f3c][_0x5e10('0xc2')])),_0x362d24=this['editor'][_0x5e10('0xe5')][_0x5e10('0x1c')][_0x5e10('0xaf')],_0x50bcf5=new _0x2143ed(_0x362d24,_0x5f3dc9[_0x5e10('0x52')](_0x360075=>this[_0x5e10('0xc9')](_0x360075)));this[_0x5e10('0x6b')][_0x5e10('0xe7')][_0x5e10('0x97')][_0x5e10('0xe2')](_0x5e10('0xb1')),_0xacbd17[_0x5b3f3c]=this[_0x5e10('0x6b')]['data'][_0x5e10('0x97')]['toData'](_0x50bcf5),this[_0x5e10('0x6b')][_0x5e10('0xe7')][_0x5e10('0x97')]['useFillerType'](_0x5e10('0x51'));}return _0xacbd17;}async[_0x5e10('0x90')](_0x3ce9b8){await this[_0x5e10('0xc7')](_0x3ce9b8);const _0x4a5964={};for(const _0x1bc433 in _0x3ce9b8[_0x5e10('0xb4')])_0x3ce9b8[_0x5e10('0xb4')][_0x1bc433][_0x5e10('0x5a')]&&!_0x3ce9b8['diffData'][_0x1bc433][_0x5e10('0x5a')][_0x5e10('0x5f')]||(_0x4a5964[_0x1bc433]=_0x3ce9b8['diffData'][_0x1bc433][_0x5e10('0x72')]||{});return _0x4a5964;}['_removeRevisionMarkers'](_0x3e5322){return(_0x3e5322=_0x3e5322[_0x5e10('0xa5')](_0x1fd094=>!_0x1fd094[_0x5e10('0x10')]||'revision-start'!==_0x1fd094[_0x5e10('0x10')]&&'revision-end'!==_0x1fd094[_0x5e10('0x10')]))[_0x5e10('0x8a')](_0x3c4a11=>{_0x5e10('0x30')!=typeof _0x3c4a11&&(_0x3c4a11['children']=this[_0x5e10('0x11')](_0x3c4a11[_0x5e10('0x118')]),_0x3c4a11['attributes']=_0x3c4a11[_0x5e10('0xf8')][_0x5e10('0xa5')](_0x2e3c2a=>!_0x2e3c2a[0x0]['startsWith'](_0x5e10('0x10f'))));}),_0x3e5322;}async[_0x5e10('0x86')](_0x70b75e,_0xfb8b2b,_0x58f690=!0x1){if(!this[_0x5e10('0x103')])return;const _0x5a0abb=this[_0x5e10('0x9a')],_0x2cbdcf=this[_0x5e10('0xe4')],_0x1c843c=_0x5e10('0x30')==typeof _0x70b75e?_0x2cbdcf[_0x5e10('0xd6')](_0x70b75e):_0x70b75e,_0x310362=_0x5e10('0x30')==typeof _0xfb8b2b?_0x2cbdcf[_0x5e10('0xd6')](_0xfb8b2b):_0xfb8b2b,_0x2279bd=_0x1c843c['id'],_0x502628=_0x310362?_0x310362['id']:null;if(!_0x58f690&&this[_0x5e10('0x9a')]&&this[_0x5e10('0x9a')][_0x5e10('0x4e')]===_0x2279bd&&this[_0x5e10('0x9a')]['oldRevisionId']===_0x502628)return Promise[_0x5e10('0xb')]();this[_0x5e10('0x101')]=!0x1,this[_0x5e10('0x93')]=null,this[_0x5e10('0x99')]=null,this[_0x5e10('0x9a')]=new _0x259645(_0x2279bd,_0x502628);const _0x35afe1=this[_0x5e10('0x9f')](_0x1c843c,_0x310362,!0x0)[_0x5e10('0x52')](_0x5ed1af=>this[_0x5e10('0xc7')](_0x5ed1af));return _0x35afe1['push'](new Promise(_0x4f8f69=>{setTimeout(_0x4f8f69,0x14);})),Promise[_0x5e10('0x82')](_0x35afe1)[_0x5e10('0x8')](()=>{if(!this['isEnabled'])return;this[_0x5e10('0x1f')]();const _0x3f1178=this[_0x5e10('0x2a')](_0x2279bd,_0x502628);for(const _0x4dba91 of _0x3f1178[_0x5e10('0x9d')])this[_0x5e10('0x1d')][_0x5e10('0xab')](_0x4dba91['id'],_0x4dba91);this[_0x5e10('0x6b')]['model']['enqueueChange']({'isUndoable':!0x1},_0x26c375=>{for(const _0x5a522a of this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')][_0x5e10('0x2c')]())_0x26c375['detachRoot'](_0x5a522a);for(const _0x1c64a7 of Object[_0x5e10('0x61')](_0x3f1178['model'])){const _0x33131a=_0x26c375[_0x5e10('0xda')](_0x1c64a7);for(const _0x2e6e48 of Object['keys'](_0x3f1178[_0x5e10('0xf8')][_0x1c64a7]))_0x26c375[_0x5e10('0xee')](_0x2e6e48,_0x3f1178['attributes'][_0x1c64a7][_0x2e6e48],_0x33131a);_0x26c375[_0x5e10('0x10b')](_0x3f1178[_0x5e10('0xc8')][_0x1c64a7],_0x33131a,0x0);}}),this['diff']['_setChanges'](this[_0x5e10('0xe3')](_0x3f1178[_0x5e10('0x9d')])),this[_0x5e10('0x101')]=!0x0;})[_0x5e10('0x16')](_0x3d37f7=>{console[_0x5e10('0x5d')](_0x3d37f7),this[_0x5e10('0x1f')](),_0x5a0abb&&(this[_0x5e10('0x9a')]=_0x5a0abb),this[_0x5e10('0x101')]=!0x0;});}[_0x5e10('0x1b')](_0x2bbd68,_0xee3dc2){const _0x3fe40a=this[_0x5e10('0xe4')][_0x5e10('0x3d')](_0x2bbd68);return _0x3fe40a['on'](_0x5e10('0x108'),(_0x5c7e89,_0x2e065a,_0x177021)=>_0xee3dc2(_0x2e065a,_0x177021,_0x3fe40a)),this[_0x5e10('0xe4')]['addRevision'](_0x3fe40a),_0x3fe40a;}[_0x5e10('0xc7')](_0x2cec76){if(!_0x2cec76||_0x2cec76[_0x5e10('0xb4')])return Promise[_0x5e10('0xb')]();{const _0x2b0bf3=this[_0x5e10('0x6b')][_0x5e10('0x7a')][_0x5e10('0x114')]('collaboration.channelId');return this[_0x5e10('0xb9')][_0x5e10('0xd6')]({'channelId':_0x2b0bf3,'revisionId':_0x2cec76['id']})[_0x5e10('0x8')](_0x4a4247=>{_0x2cec76[_0x5e10('0x108')]({'diffData':_0x4a4247[_0x5e10('0xb4')]},!0x0);});}}[_0x5e10('0x1f')](){this[_0x5e10('0x99')]=null,this[_0x5e10('0x27')](),this[_0x5e10('0x3')]&&this['_changeView'][_0x5e10('0xa9')](),this[_0x5e10('0x3')]=null,this[_0x5e10('0x1d')]['clear'](),this['editor']['model'][_0x5e10('0x20')]({'isUndoable':!0x1},_0x4688e3=>{for(const _0x1ba38e of this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')][_0x5e10('0x2c')]())_0x4688e3[_0x5e10('0x70')](_0x1ba38e);});}['_sortAndFilterDiffChanges'](_0x47d5d0){const _0x563be8=[],_0x3bd9dc=new Map();for(const _0x370328 of this['editor']['model'][_0x5e10('0xaf')][_0x5e10('0x2c')]()){const _0x4947cd=this[_0x5e10('0x6b')][_0x5e10('0xe5')][_0x5e10('0x1c')][_0x5e10('0xfe')](_0x370328);if(!_0x4947cd)continue;const _0x3ca160=_0x4947cd['getClientRects']()[_0x5e10('0x13')](0x0);_0x3ca160&&(_0x563be8[_0x5e10('0x8d')](_0x370328),_0x3bd9dc['set'](_0x370328,_0x3ca160));}return _0x563be8[_0x5e10('0xa2')]((_0x3daae2,_0x5ca3f0)=>{const _0x25e746=_0x3bd9dc['get'](_0x3daae2),_0x17bb9d=_0x3bd9dc[_0x5e10('0x114')](_0x5ca3f0);return _0x25e746['y']-_0x17bb9d['y']||_0x25e746['x']-_0x17bb9d['x'];}),(_0x47d5d0=_0x47d5d0['filter'](_0x22f556=>_0x563be8[_0x5e10('0x2d')](_0x22f556[_0x5e10('0x67')])))['sort']((_0x150dcd,_0x293e77)=>_0x563be8[_0x5e10('0xdb')](_0x150dcd['rootName'])-_0x563be8['indexOf'](_0x293e77[_0x5e10('0x67')])),_0x47d5d0;}['_makeTape'](_0x134e4e){const _0x305c35=Array[_0x5e10('0xb5')](_0x134e4e[_0x5e10('0x44')])[_0x5e10('0xa5')](([_0x6d1b02,_0x43e056])=>_0x6d1b02[_0x5e10('0x110')](_0x5e10('0x89'))&&!_0x43e056['isCollapsed']),_0x581023=Array[_0x5e10('0xb5')](this[_0x5e10('0x6b')][_0x5e10('0xc8')]['createRangeIn'](_0x134e4e)[_0x5e10('0xe1')]({'singleCharacters':!0x0}));if(0x0!=_0x305c35[_0x5e10('0xd0')])for(const _0x62d83d of _0x581023){const [_0x17dc3f,_0x34f222]=_0x305c35[0x0],[,_0x390ef5,_0x39dca7]=_0x17dc3f[_0x5e10('0xc')](':');if(_0x34f222[_0x5e10('0x3a')]['isEqual'](_0x62d83d[_0x5e10('0xf3')])&&_0x305c35[_0x5e10('0x7c')](),(_0x62d83d[_0x5e10('0xed')][_0x5e10('0xb2')](_0x34f222[_0x5e10('0x66')])||_0x62d83d['previousPosition']['isAfter'](_0x34f222[_0x5e10('0x66')]))&&(_0x5e10('0x9e')==_0x390ef5?_0x62d83d[_0x5e10('0x50')]={'userId':_0x39dca7}:'deletion'==_0x390ef5&&(_0x62d83d['isRemoved']={'userId':_0x39dca7})),0x0==_0x305c35['length'])break;}return _0x581023;}[_0x5e10('0x84')](_0x583c3a){const _0x13f0bf=new Map();for(let _0x2dd7c7=0x0;_0x2dd7c7<_0x583c3a[_0x5e10('0xd0')];_0x2dd7c7++)'text'===_0x583c3a[_0x2dd7c7][_0x5e10('0xb3')]?(_0x583c3a[_0x2dd7c7][_0x5e10('0x13')][_0x5e10('0x24')]=_0x2dd7c7,_0x583c3a[_0x2dd7c7][_0x5e10('0x13')]['endIndex']=_0x2dd7c7):(_0x5e10('0x120')===_0x583c3a[_0x2dd7c7][_0x5e10('0xb3')]?_0x583c3a[_0x2dd7c7][_0x5e10('0x13')]['startIndex']=_0x2dd7c7:_0x5e10('0xc3')===_0x583c3a[_0x2dd7c7][_0x5e10('0xb3')]&&(_0x583c3a[_0x2dd7c7][_0x5e10('0x13')][_0x5e10('0x2b')]=_0x2dd7c7),_0x13f0bf[_0x5e10('0xab')](_0x583c3a[_0x2dd7c7]['id'],_0x2dd7c7));for(const _0x2ee831 of _0x13f0bf[_0x5e10('0xa4')]())'elementStart'===_0x583c3a[_0x2ee831][_0x5e10('0xb3')]?_0x583c3a[_0x2ee831]['item'][_0x5e10('0x2b')]=_0x13f0bf[_0x5e10('0x114')](_0x583c3a[_0x2ee831][_0x5e10('0x4')]):'elementEnd'===_0x583c3a[_0x2ee831]['type']&&(_0x583c3a[_0x2ee831]['item'][_0x5e10('0x24')]=_0x13f0bf['get'](_0x583c3a[_0x2ee831]['pairId']));}[_0x5e10('0x80')](_0x3242b5){for(let _0x3da20c=0x0;_0x3da20c<_0x3242b5[_0x5e10('0xd0')];_0x3da20c++){if(_0x5e10('0x120')===_0x3242b5[_0x3da20c][_0x5e10('0xb3')])_0x3242b5[_0x3da20c][_0x5e10('0x13')][_0x5e10('0x24')]=_0x3da20c;else{if(_0x5e10('0xc3')===_0x3242b5[_0x3da20c][_0x5e10('0xb3')]){_0x3242b5[_0x3da20c]['item']['endIndex']=_0x3da20c;const _0x387e2d=_0x3242b5[_0x3da20c][_0x5e10('0x13')][_0x5e10('0x24')];_0x3242b5[_0x387e2d][_0x5e10('0x4')]=_0x3242b5[_0x3da20c]['id'],_0x3242b5[_0x3da20c][_0x5e10('0x4')]=_0x3242b5[_0x387e2d]['id'];}else _0x3242b5[_0x3da20c][_0x5e10('0x13')]['startIndex']=_0x3da20c,_0x3242b5[_0x3da20c][_0x5e10('0x13')][_0x5e10('0x2b')]=_0x3da20c,_0x3242b5[_0x3da20c][_0x5e10('0x4')]=null;}_0x3242b5[_0x3da20c][_0x5e10('0x68')]||(_0x3242b5[_0x3da20c][_0x5e10('0x68')]=[],_0x3242b5[_0x3da20c][_0x5e10('0x121')]=[]);}}[_0x5e10('0x48')](_0xccbd30,_0x2b0671){const _0x1ae990=_0xccbd30[_0x5e10('0xa5')](_0x387ffa=>!_0x387ffa[_0x5e10('0x50')]);for(let _0x17cc35=0x0;_0x17cc35<_0x2b0671[_0x5e10('0xd0')];_0x17cc35++)_0x2b0671[_0x17cc35][_0x5e10('0x50')]&&(_0x1ae990[_0x17cc35][_0x5e10('0x50')]=_0x2b0671[_0x17cc35]['isAdded']);}[_0x5e10('0xbb')](_0x18807e){const _0x94f28b=JSON[_0x5e10('0xf1')](_0x18807e),_0x397e7d=this[_0x5e10('0x6b')][_0x5e10('0xe5')]['view'][_0x5e10('0xaf')],_0xdc1f6c=new _0x2143ed(_0x397e7d,_0x94f28b[_0x5e10('0x52')](_0x341707=>this[_0x5e10('0xc9')](_0x341707)));return this['editor'][_0x5e10('0xe7')][_0x5e10('0x11d')](_0xdc1f6c);}[_0x5e10('0xc9')](_0x495bf1){const _0x30cd01=this[_0x5e10('0x6b')][_0x5e10('0xe5')]['view'][_0x5e10('0xaf')];if(_0x5e10('0x30')==typeof _0x495bf1)return new _0x1b3618(_0x30cd01,_0x495bf1);{const _0x584ec7=_0x495bf1[_0x5e10('0x118')][_0x5e10('0x52')](_0x244057=>this['_getViewObj'](_0x244057));return new(tt[_0x495bf1[(_0x5e10('0xb3'))]]||_0x5958f6)(_0x30cd01,_0x495bf1['name'],_0x495bf1[_0x5e10('0xf8')],_0x584ec7);}}[_0x5e10('0x2a')](_0x16c803,_0xa2b5ad=null){const _0x529643=this[_0x5e10('0xe4')][_0x5e10('0xd6')](_0x16c803),_0x44c0bc=_0xa2b5ad?this['repository'][_0x5e10('0xd6')](_0xa2b5ad):null,_0x84753a=this[_0x5e10('0x9f')](_0x529643,_0x44c0bc),_0x1c1fd8=_0x84753a[_0x84753a[_0x5e10('0xd0')]-0x1],_0x330dc5=new Map(),_0x3af148={'model':{},'attributes':{},'changes':[]},_0x35af7e=new Set(),_0x182e04=new Map();for(let _0x58bf00=_0x84753a[_0x5e10('0xd0')]-0x1;_0x58bf00>=0x0;_0x58bf00--){const _0x14722f=_0x84753a[_0x58bf00];for(const _0x349f0c of Object[_0x5e10('0x61')](_0x14722f[_0x5e10('0xb4')]))if(_0x14722f[_0x5e10('0xb4')][_0x349f0c][_0x5e10('0x5a')]){const _0x428530=_0x14722f[_0x5e10('0xb4')][_0x349f0c][_0x5e10('0x5a')];_0x428530['isAttached']?(_0x35af7e[_0x5e10('0x47')](_0x349f0c),_0x182e04[_0x5e10('0x112')](_0x349f0c)&&_0x182e04[_0x5e10('0x114')](_0x349f0c)['userId']==_0x428530[_0x5e10('0x79')]?_0x182e04[_0x5e10('0xc4')](_0x349f0c):_0x182e04['set'](_0x349f0c,_0x428530)):_0x182e04['has'](_0x349f0c)?(_0x35af7e[_0x5e10('0xc4')](_0x349f0c),_0x182e04['delete'](_0x349f0c)):(_0x35af7e[_0x5e10('0x47')](_0x349f0c),_0x182e04['set'](_0x349f0c,_0x428530));}else _0x35af7e[_0x5e10('0x47')](_0x349f0c);}for(const _0x334a86 of _0x35af7e){const _0x5a176f=_0x182e04[_0x5e10('0x112')](_0x334a86)&&!_0x182e04['get'](_0x334a86)[_0x5e10('0x5f')];let _0x2eac12=_0x5a176f?_0x84753a[_0x5e10('0xd0')]-0x1:0x0;const _0x5801a8=_0x5a176f?-0x1:0x1;for(;_0x84753a[_0x2eac12];){const _0x4e7a37=_0x84753a[_0x2eac12];if(_0x4e7a37[_0x5e10('0xb4')][_0x334a86]){const _0x448b01=_0x5a176f?_0x4e7a37[_0x5e10('0xb4')][_0x334a86][_0x5e10('0x6f')]:_0x4e7a37[_0x5e10('0xb4')][_0x334a86][_0x5e10('0x72')];_0x3af148[_0x5e10('0xf8')][_0x334a86]=_0x448b01?_0x2910fc(_0x448b01):{};break;}_0x2eac12+=_0x5801a8;}}for(const _0x366b92 of _0x84753a){_0x366b92[_0x5e10('0xc8')]={};for(const _0x4b561c of _0x366b92[_0x5e10('0x29')])_0x330dc5['set'](_0x4b561c['id'],_0x4b561c);for(const _0x26cb8d of _0x35af7e){const _0x16f404=_0x366b92[_0x5e10('0xb4')][_0x26cb8d]?_0x366b92[_0x5e10('0xb4')][_0x26cb8d][_0x5e10('0xc2')]:'[]',_0x193192=_0x366b92[_0x5e10('0xb4')][_0x26cb8d]?_0x366b92[_0x5e10('0xb4')][_0x26cb8d][_0x5e10('0xcd')]:'[]';_0x366b92['model'][_0x26cb8d]={'insertions':this[_0x5e10('0xbb')](_0x16f404),'deletions':this[_0x5e10('0xbb')](_0x193192)};}}for(const _0x1b8922 of _0x35af7e){let _0x18dcbd=null,_0x2ac253=0x0;const _0x372c49=new Map(Array[_0x5e10('0xb5')](_0x529643['model'][_0x1b8922][_0x5e10('0xc2')][_0x5e10('0x44')])['filter'](([_0xf085ac])=>!_0xf085ac[_0x5e10('0x110')]('revision:')));let _0x45e482=0x0;for(const _0x819287 of _0x84753a){const _0x3ac3b4=this[_0x5e10('0x100')](_0x819287[_0x5e10('0xc8')][_0x1b8922][_0x5e10('0xc2')]);_0x819287==_0x529643?(_0x18dcbd=_0x3ac3b4,_0x2ac253=_0x18dcbd[_0x5e10('0xd0')],_0x18dcbd[_0x5e10('0x8a')](_0x487285=>{_0x487285['id']=_0x45e482++;}),this[_0x5e10('0x80')](_0x18dcbd)):this['_markInsertions'](_0x18dcbd,_0x3ac3b4);const _0x5b5fc9=_0x18dcbd[_0x5e10('0xa5')](_0x35f21e=>!_0x35f21e[_0x5e10('0x50')])[_0x5e10('0x52')](_0x5ed466=>_0x5ed466['id']);let _0x4f0aca=0x0;const _0x893e8a=this[_0x5e10('0x100')](_0x819287[_0x5e10('0xc8')][_0x1b8922][_0x5e10('0xcd')]);_0x893e8a[_0x5e10('0x8a')](_0x311f07=>{_0x311f07[_0x5e10('0x40')]?_0x311f07['id']=_0x2ac253++:_0x311f07['id']=_0x5b5fc9[_0x4f0aca++];}),this[_0x5e10('0x80')](_0x893e8a),this['_setDistance'](_0x18dcbd,_0x5e10('0x50')),this[_0x5e10('0x11b')](_0x893e8a,_0x5e10('0x40')),_0x819287==_0x529643&&this[_0x5e10('0x56')](_0x18dcbd,_0x372c49),_0x18dcbd=this[_0x5e10('0xb0')](_0x18dcbd,_0x893e8a),this[_0x5e10('0x84')](_0x18dcbd),this['_setDistance'](_0x18dcbd,_0x5e10('0x40'));}_0x18dcbd=_0x18dcbd[_0x5e10('0xa5')](_0x51c4f8=>!(_0x51c4f8[_0x5e10('0x50')]&&_0x51c4f8['isRemoved']));const _0x35e658=new Map(_0x1c1fd8[_0x5e10('0xc8')][_0x1b8922][_0x5e10('0xcd')]['markers']),_0x1ced09=new Set(_0x372c49[_0x5e10('0x61')]());for(const _0xb4b973 of _0x35e658[_0x5e10('0x61')]())_0x1ced09[_0x5e10('0xc4')](_0xb4b973);this[_0x5e10('0x65')](_0x18dcbd,_0x1ced09),this[_0x5e10('0x69')](_0x18dcbd),_0x18dcbd=this[_0x5e10('0xd2')](_0x18dcbd),_0x18dcbd=this[_0x5e10('0x109')](_0x18dcbd),_0x18dcbd=this[_0x5e10('0x5e')](_0x18dcbd);const {root:_0x20a50c,changes:_0x18cbe5}=this[_0x5e10('0x74')](_0x18dcbd,_0x330dc5,_0x1b8922);_0x3af148['model'][_0x1b8922]=_0x20a50c;const _0x422838=_0x182e04[_0x5e10('0x114')](_0x1b8922);if(_0x422838){const _0x4b2f74=_0x330dc5[_0x5e10('0x114')](_0x422838[_0x5e10('0x79')]),_0x159436=new _0x4530f3({'author':_0x4b2f74,'type':_0x422838[_0x5e10('0x5f')]?_0x5e10('0x47'):_0x5e10('0x76'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1b8922});_0x18cbe5[_0x5e10('0x6a')](_0x159436),_0x3af148[_0x5e10('0xf8')][_0x1b8922]['revisionHistoryAttachChange']=_0x159436['id'];}_0x3af148[_0x5e10('0x9d')]=_0x3af148[_0x5e10('0x9d')]['concat'](_0x18cbe5);}return _0x3af148;}[_0x5e10('0x56')](_0xf99040,_0x438b40){for(let _0x4f4e47=0x0;_0x4f4e47<_0xf99040[_0x5e10('0xd0')];_0x4f4e47++)for(const [_0x40f314,_0x547bf4]of _0x438b40)_0x547bf4[_0x5e10('0x66')][_0x5e10('0xb2')](_0xf99040[_0x4f4e47]['previousPosition'])&&_0xf99040[_0x4f4e47]['markersStart'][_0x5e10('0x8d')](_0x40f314),_0x547bf4['end']['isEqual'](_0xf99040[_0x4f4e47][_0x5e10('0xf3')])&&_0xf99040[_0x4f4e47][_0x5e10('0x121')][_0x5e10('0x8d')](_0x40f314);}[_0x5e10('0xb0')](_0x3d0a0e,_0x2179eb){let _0x4b3d2a=[],_0x6206e7=0x0,_0x2e43ea=0x0;for(;_0x6206e7<_0x3d0a0e['length']||_0x2e43ea<_0x2179eb[_0x5e10('0xd0')];){const _0x10bddf=_0x3d0a0e[_0x6206e7]||{},_0x262d78=_0x2179eb[_0x2e43ea]||{};if(_0x10bddf['id']==_0x262d78['id'])_0x6206e7++,_0x2e43ea++,_0x4b3d2a['push'](_0x10bddf);else{if(_0x262d78[_0x5e10('0x40')]&&_0x10bddf[_0x5e10('0x50')]){const {commonTape:_0x9f837a,iEnd:_0x4aa295,jEnd:_0x3db208}=this[_0x5e10('0x42')](_0x3d0a0e,_0x6206e7,_0x2179eb,_0x2e43ea);_0x4b3d2a=_0x4b3d2a[_0x5e10('0x41')](_0x9f837a),_0x6206e7=_0x4aa295,_0x2e43ea=_0x3db208;}else _0x262d78[_0x5e10('0x40')]?(_0x2e43ea++,_0x4b3d2a[_0x5e10('0x8d')](_0x262d78)):(_0x6206e7++,_0x4b3d2a[_0x5e10('0x8d')](_0x10bddf));}}return _0x4b3d2a;}[_0x5e10('0x65')](_0x3bfc1a,_0x5db291){const _0x1a3f1a=[];for(let _0x2779b6=0x0;_0x2779b6<_0x3bfc1a['length'];_0x2779b6++){for(let _0x49cbb0=0x0;_0x49cbb0<_0x3bfc1a[_0x2779b6][_0x5e10('0x68')][_0x5e10('0xd0')];_0x49cbb0++){const _0xfddbf0=_0x3bfc1a[_0x2779b6][_0x5e10('0x68')][_0x49cbb0];if(!_0x5db291[_0x5e10('0x112')](_0xfddbf0))continue;const {group:_0x504f51,type:_0x59701,authorId:_0x1e3388}=_0x4fd6d0(_0xfddbf0);_0x5e10('0xfc')!=_0x504f51||_0x5e10('0x9e')!=_0x59701&&_0x5e10('0x6e')!=_0x59701||(_0x1a3f1a[_0x5e10('0x6a')]({'type':_0x59701,'name':_0xfddbf0,'userId':_0x1e3388}),_0x3bfc1a[_0x2779b6][_0x5e10('0x68')][_0x5e10('0x31')](_0x49cbb0,0x1),_0x49cbb0--);}_0x15bc5e(_0x3bfc1a[_0x2779b6]);for(let _0x1617d8=0x0;_0x1617d8<_0x3bfc1a[_0x2779b6][_0x5e10('0x121')][_0x5e10('0xd0')];_0x1617d8++){const _0x11e1f5=_0x3bfc1a[_0x2779b6][_0x5e10('0x121')][_0x1617d8];if(!_0x5db291[_0x5e10('0x112')](_0x11e1f5))continue;const {group:_0x21b6c6,type:_0x200af9}=_0x4fd6d0(_0x11e1f5);if(_0x5e10('0xfc')!=_0x21b6c6||_0x5e10('0x9e')!=_0x200af9&&_0x5e10('0x6e')!=_0x200af9)continue;_0x3bfc1a[_0x2779b6][_0x5e10('0x121')][_0x5e10('0x31')](_0x1617d8,0x1),_0x1617d8--;const _0xfd9a72=_0x1a3f1a[_0x5e10('0x15')](_0x48a2f1=>_0x48a2f1[_0x5e10('0x10')]==_0x11e1f5);_0xfd9a72>-0x1&&_0x1a3f1a['splice'](_0xfd9a72,0x1);}}function _0x4fd6d0(_0x581e27){const _0x9274a8=_0x581e27[_0x5e10('0xc')](':');return{'group':_0x9274a8[0x0],'type':_0x9274a8[0x1],'subType':_0x9274a8[_0x5e10('0xd0')]>=0x5?_0x9274a8[0x2]:null,'id':_0x9274a8[_0x5e10('0xd0')]<0x5?_0x9274a8[0x2]:_0x9274a8[0x3],'authorId':_0x9274a8[_0x5e10('0xd0')]<0x5?_0x9274a8[0x3]:_0x9274a8[0x4],'markerCount':0x6==_0x9274a8[_0x5e10('0xd0')]?_0x9274a8[0x5]:null};}function _0x15bc5e(_0x2a922e){for(let _0x229902=0x0;_0x229902<_0x1a3f1a['length'];_0x229902++){if(_0x2a922e[_0x5e10('0x50')]&&_0x5e10('0x9e')==_0x1a3f1a[_0x229902][_0x5e10('0xb3')])return _0x2a922e[_0x5e10('0xf2')]=_0x1a3f1a[_0x229902],void delete _0x2a922e[_0x5e10('0x50')];if(!_0x2a922e[_0x5e10('0x50')]&&!_0x2a922e[_0x5e10('0x40')]&&_0x5e10('0x6e')==_0x1a3f1a[_0x229902][_0x5e10('0xb3')])return void(_0x2a922e['isRemoveSuggestion']=_0x1a3f1a[_0x229902]);}}}[_0x5e10('0x11b')](_0x46c310,_0x50397d){let _0x188dff=0x0,_0x303426=!0x1;const _0x5a6ab9=new Map();for(const _0x533fe0 of _0x46c310)_0x533fe0[_0x50397d]?_0x303426&&(_0x188dff++,_0x303426=!0x1):(_0x188dff++,_0x303426=!0x0),_0x5a6ab9[_0x5e10('0xab')](_0x533fe0['id'],_0x188dff);for(let _0x165b69=0x0;_0x165b69<_0x46c310['length'];_0x165b69++){if(_0x5e10('0x40')==_0x50397d&&_0x46c310[_0x165b69][_0x5e10('0x50')]||_0x5e10('0x50')==_0x50397d&&_0x46c310[_0x165b69][_0x5e10('0x40')])continue;if(_0x5e10('0x4a')==_0x46c310[_0x165b69][_0x5e10('0xb3')]){_0x46c310[_0x165b69]['distance']=0x0;continue;}const _0x59d2d2=_0x5a6ab9[_0x5e10('0x114')](_0x46c310[_0x165b69][_0x5e10('0x4')]),_0x185719=_0x5a6ab9[_0x5e10('0x114')](_0x46c310[_0x165b69]['id']);_0x46c310[_0x165b69][_0x5e10('0x95')]=_0x59d2d2-_0x185719;}}[_0x5e10('0x9f')](_0x5eaea4,_0x4dc08b,_0x341434=!0x1){const _0x4c2108=[];let _0x4c2176=this[_0x5e10('0xe4')][_0x5e10('0x9c')](_0x5eaea4),_0x3fcba8=this['repository']['getIndex'](_0x4dc08b);for(-0x1==_0x3fcba8&&(_0x3fcba8=this[_0x5e10('0xe4')][_0x5e10('0x5b')][_0x5e10('0xd0')],_0x341434=!0x1);_0x4c2176<_0x3fcba8;)_0x4c2108['push'](this['repository'][_0x5e10('0xd6')](_0x4c2176)),_0x4c2176++;return _0x341434&&_0x4c2108[_0x5e10('0x8d')](this['repository']['getRevision'](_0x4c2176)),_0x4c2108;}[_0x5e10('0x42')](_0x3b6794,_0x28703f,_0x36a602,_0x4eec6c){const _0x890662=this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x116')];let _0x26fa9a=_0x28703f;for(;_0x3b6794[_0x26fa9a]&&_0x3b6794[_0x26fa9a]['isAdded'];)_0x26fa9a++;let _0x3bd241=_0x4eec6c;for(;_0x36a602[_0x3bd241]&&_0x36a602[_0x3bd241][_0x5e10('0x40')];)_0x3bd241++;_0x17992d(_0x3b6794,_0x28703f,_0x26fa9a),_0x17992d(_0x36a602,_0x4eec6c,_0x3bd241);const _0x48d8a0=_0x36a602[_0x5e10('0xd8')](_0x4eec6c,_0x3bd241)['concat'](_0x3b6794[_0x5e10('0xd8')](_0x28703f,_0x26fa9a));return _0x48d8a0[_0x5e10('0xa2')]((_0x36802c,_0x5904e0)=>_0x36802c[_0x5e10('0x119')]!=_0x5904e0[_0x5e10('0x119')]?_0x36802c[_0x5e10('0x119')]-_0x5904e0[_0x5e10('0x119')]:_0x36802c['level']!=_0x5904e0['level']?_0x36802c[_0x5e10('0x1a')]-_0x5904e0[_0x5e10('0x1a')]:_0x36802c[_0x5e10('0x95')]!=_0x5904e0['distance']?_0x5904e0[_0x5e10('0x95')]-_0x36802c[_0x5e10('0x95')]:!!_0x36802c['isAdded']!=!!_0x5904e0[_0x5e10('0x50')]?-0x1==_0x36802c[_0x5e10('0x119')]||0x0==_0x36802c[_0x5e10('0x119')]?_0x36802c[_0x5e10('0x50')]?-0x1:0x1:_0x36802c[_0x5e10('0x50')]?0x1:-0x1:_0x36802c[_0x5e10('0x87')]-_0x5904e0[_0x5e10('0x87')]),{'commonTape':_0x48d8a0,'iEnd':_0x26fa9a,'jEnd':_0x3bd241};function _0x17992d(_0x4ac004,_0x12379d,_0xe17a28){let _0x4c4e5e=-0x1,_0x30f6b7=Number[_0x5e10('0x78')],_0x5a17cc=!0x0;for(let _0x3f5e7a=_0x12379d;_0x3f5e7a<_0xe17a28;_0x3f5e7a++)if(_0x890662[_0x5e10('0x54')](_0x4ac004[_0x3f5e7a][_0x5e10('0x13')])||(_0x5a17cc=!0x1),_0x4ac004[_0x3f5e7a][_0x5e10('0x13')][_0x5e10('0x24')]<_0x12379d&&(_0x4c4e5e=_0x3f5e7a),_0x4ac004[_0x3f5e7a][_0x5e10('0x13')][_0x5e10('0x2b')]>=_0xe17a28){_0x30f6b7=_0x3f5e7a;break;}_0x5a17cc&&(_0x4c4e5e=_0xe17a28-0x1);for(let _0x70a6a=_0x12379d;_0x70a6a<_0xe17a28;_0x70a6a++)_0x4ac004[_0x70a6a][_0x5e10('0x119')]=_0x70a6a<=_0x4c4e5e?-0x1:_0x70a6a<_0x30f6b7?0x0:0x1,_0x4ac004[_0x70a6a]['index']=_0x70a6a;let _0x27547d=0x0;for(let _0x30c3d6=_0x12379d;_0x30c3d6<=_0x4c4e5e;_0x30c3d6++)0x0==_0x4ac004[_0x30c3d6][_0x5e10('0x95')]?_0x4ac004[_0x30c3d6]['level']=_0x27547d:(_0x27547d++,_0x4ac004[_0x30c3d6]['level']=_0x27547d,_0x27547d++);for(let _0x54d7ae=_0x12379d;_0x54d7ae<_0xe17a28;_0x54d7ae++)0x0==_0x4ac004[_0x54d7ae][_0x5e10('0x119')]&&(_0x4ac004[_0x54d7ae][_0x5e10('0x1a')]=_0x27547d);_0x27547d=0x0;for(let _0xe2a4e2=_0xe17a28-0x1;_0xe2a4e2>=_0x30f6b7;_0xe2a4e2--)0x0==_0x4ac004[_0xe2a4e2][_0x5e10('0x95')]?_0x4ac004[_0xe2a4e2]['level']=_0x27547d:(_0x27547d--,_0x4ac004[_0xe2a4e2][_0x5e10('0x1a')]=_0x27547d,_0x27547d--);}}['_fixObsoleteTags'](_0x5e50f7){const _0x566be8=new Map(),_0x4d29bf=this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x116')];for(let _0x501a8a=0x1;_0x501a8a<_0x5e50f7['length'];_0x501a8a++){let _0x52499f,_0x260ce7,_0xa1a693;const _0x22de14=_0x5e50f7[_0x501a8a],_0x171fe8=_0x5e50f7[_0x501a8a-0x1];if(_0x5e10('0x4a')==_0x22de14[_0x5e10('0xb3')])continue;if(_0x22de14[_0x5e10('0xb3')]!=_0x171fe8[_0x5e10('0xb3')])continue;if(!_0x4d29bf['isBlock'](_0x171fe8[_0x5e10('0x13')])||_0x4d29bf[_0x5e10('0xec')](_0x171fe8['item']))continue;if(!_0x4d29bf['isBlock'](_0x22de14[_0x5e10('0x13')])||_0x4d29bf[_0x5e10('0xec')](_0x22de14[_0x5e10('0x13')]))continue;if((_0x5e50f7[_0x501a8a][_0x5e10('0x50')]||_0x5e50f7[_0x501a8a][_0x5e10('0xf2')])&&_0x5e50f7[_0x501a8a-0x1]['isRemoved'])_0x52499f=_0x5e50f7[_0x501a8a],_0x260ce7=_0x5e50f7[_0x501a8a-0x1],_0xa1a693=_0x501a8a-0x1;else{if(!_0x5e50f7[_0x501a8a][_0x5e10('0x40')]||!_0x5e50f7[_0x501a8a-0x1][_0x5e10('0x50')]&&!_0x5e50f7[_0x501a8a-0x1]['isAddSuggestion'])continue;_0x52499f=_0x5e50f7[_0x501a8a-0x1],_0x260ce7=_0x5e50f7[_0x501a8a],_0xa1a693=_0x501a8a;}const _0x5d726f=_0x52499f['level']==_0x260ce7[_0x5e10('0x1a')],_0x5673bf=Math['abs'](_0x52499f[_0x5e10('0x1a')])<Math[_0x5e10('0xbc')](_0x260ce7[_0x5e10('0x1a')])&&0x0==_0x260ce7[_0x5e10('0x95')];(_0x5d726f||_0x5673bf)&&(_0x566be8[_0x5e10('0xab')](_0x260ce7['id'],_0x52499f['id']),_0x5e50f7['splice'](_0xa1a693,0x1),_0x501a8a--,_0x52499f[_0x5e10('0x50')]=!0x1);}for(let _0x5b1245=0x0;_0x5b1245<_0x5e50f7[_0x5e10('0xd0')];_0x5b1245++)_0x566be8[_0x5e10('0x112')](_0x5e50f7[_0x5b1245][_0x5e10('0x4')])&&(_0x5e50f7[_0x5b1245]['pairId']=_0x566be8[_0x5e10('0x114')](_0x5e50f7[_0x5b1245][_0x5e10('0x4')]));}['_removeMissingPairs'](_0x3b4563){const _0x5e8bcf=new Set(_0x3b4563[_0x5e10('0x52')](_0x30e9ad=>_0x30e9ad['id']));for(let _0x558d74=0x0;_0x558d74<_0x3b4563[_0x5e10('0xd0')];_0x558d74++)_0x5e8bcf[_0x5e10('0x112')](_0x3b4563[_0x558d74][_0x5e10('0x4')])||0x0==_0x3b4563[_0x558d74][_0x5e10('0x95')]||(_0x3b4563[_0x558d74][_0x5e10('0x34')]=!0x0);return _0x3b4563['filter'](_0x356597=>!_0x356597[_0x5e10('0x34')]);}[_0x5e10('0x109')](_0x1e24da){const _0x1ca053=new Set();for(let _0x5556d9=0x0;_0x5556d9<_0x1e24da[_0x5e10('0xd0')];_0x5556d9++){if(_0x1ca053[_0x5e10('0x112')](_0x1e24da[_0x5556d9]['id'])&&_0x1e24da[_0x5556d9]['isRemoved']&&(_0x1e24da[_0x5556d9][_0x5e10('0x34')]=!0x0),_0x1e24da[_0x5556d9]['isIncorrect'])continue;if(0x0==_0x1e24da[_0x5556d9][_0x5e10('0x95')])continue;if(_0x5e10('0x120')!=_0x1e24da[_0x5556d9][_0x5e10('0xb3')])continue;if(null==_0x1e24da[_0x5556d9]['pairId'])continue;let _0x2aaf24=_0x5556d9+0x1,_0x82f996=0x0;for(;_0x1e24da[_0x2aaf24]['id']!=_0x1e24da[_0x5556d9][_0x5e10('0x4')];)_0x5e10('0x120')==_0x1e24da[_0x2aaf24][_0x5e10('0xb3')]?_0x82f996++:_0x5e10('0xc3')==_0x1e24da[_0x2aaf24][_0x5e10('0xb3')]&&_0x82f996--,_0x2aaf24++;if(0x0!=_0x82f996){if(_0x1e24da[_0x5556d9]['isRemoved'])_0x1e24da[_0x5556d9][_0x5e10('0x34')]=!0x0;else for(;_0x2aaf24!=_0x5556d9;)_0x1e24da[_0x2aaf24][_0x5e10('0x40')]&&0x0!=_0x1e24da[_0x2aaf24]['distance']&&(_0x1e24da[_0x2aaf24][_0x5e10('0x34')]=!0x0,_0x1ca053[_0x5e10('0x47')](_0x1e24da[_0x2aaf24]['pairId'])),_0x2aaf24--;}}return _0x1e24da[_0x5e10('0xa5')](_0x24aaee=>!_0x24aaee[_0x5e10('0x34')]);}['_removeUnsupportedChanges'](_0x256da4){const _0x6019af=this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x116')];for(let _0xbacac0=0x0;_0xbacac0<_0x256da4[_0x5e10('0xd0')];_0xbacac0++){if(!(_0x256da4[_0xbacac0][_0x5e10('0x50')]||_0x256da4[_0xbacac0][_0x5e10('0xf2')]||_0x256da4[_0xbacac0][_0x5e10('0x40')]||_0x256da4[_0xbacac0][_0x5e10('0x23')]))continue;if(0x0==_0x256da4[_0xbacac0][_0x5e10('0x95')])continue;const _0x492523=_0x256da4[_0xbacac0][_0x5e10('0x13')];_0x6019af[_0x5e10('0x18')](_0x492523)||_0x6019af['isLimit'](_0x492523)||(_0x256da4[_0xbacac0][_0x5e10('0x50')]&&delete _0x256da4[_0xbacac0][_0x5e10('0x50')],_0x256da4[_0xbacac0]['isAddSuggestion']&&delete _0x256da4[_0xbacac0][_0x5e10('0xf2')],_0x256da4[_0xbacac0]['isRemoveSuggestion']&&delete _0x256da4[_0xbacac0][_0x5e10('0x23')],_0x256da4[_0xbacac0][_0x5e10('0x40')]&&(_0x256da4[_0xbacac0][_0x5e10('0x34')]=!0x0));}return _0x256da4[_0x5e10('0xa5')](_0x12ab26=>!_0x12ab26[_0x5e10('0x34')]);}[_0x5e10('0x74')](_0x53ed5f,_0x2a3b65,_0x705fd7){const _0x3c61e5=new _0x348e46(),_0x2c6b7b=[],_0x316b05=new Map(),_0x104b03=this['editor'][_0x5e10('0xc8')],_0x5d2431=_0x104b03[_0x5e10('0x116')],_0x747e77=[_0x3c61e5],_0x3f46d8={},_0xe32f05={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa30936=null;const _0x131632=[0x0];for(let _0x4bacbc=0x0;_0x4bacbc<_0x53ed5f['length'];_0x4bacbc++){let _0x23d119,_0x53d339;if(_0x5e10('0x120')===_0x53ed5f[_0x4bacbc]['type']){_0x23d119=_0x104b03[_0x5e10('0x7')](_0x3c61e5,_0x131632);const _0x4abc17=new _0x1ec88f(_0x53ed5f[_0x4bacbc]['item'][_0x5e10('0x10')],_0x53ed5f[_0x4bacbc][_0x5e10('0x13')][_0x5e10('0x10c')]());_0x747e77[0x0][_0x5e10('0xdc')](_0x4abc17),_0x131632['push'](0x0),_0x747e77[_0x5e10('0x6a')](_0x4abc17),_0x53d339=_0x104b03[_0x5e10('0x7')](_0x3c61e5,_0x131632),_0xa30936=null;}else{if('elementEnd'===_0x53ed5f[_0x4bacbc][_0x5e10('0xb3')])_0x747e77[_0x5e10('0x7c')](),_0x23d119=_0x104b03['createPositionFromPath'](_0x3c61e5,_0x131632),_0x131632['pop'](),_0x131632[_0x131632[_0x5e10('0xd0')]-0x1]++,_0x53d339=_0x104b03['createPositionFromPath'](_0x3c61e5,_0x131632),_0xa30936=null;else{if(_0x23d119=_0x104b03[_0x5e10('0x7')](_0x3c61e5,_0x131632),_0xa30936&&_0x266f2f(_0xa30936,_0x53ed5f[_0x4bacbc][_0x5e10('0x13')]))_0xa30936[_0x5e10('0xcb')]+=_0x53ed5f[_0x4bacbc]['item'][_0x5e10('0xe7')];else{const _0x34b319=new _0xacc02e(_0x53ed5f[_0x4bacbc][_0x5e10('0x13')]['data'],_0x53ed5f[_0x4bacbc][_0x5e10('0x13')][_0x5e10('0x10c')]());_0x747e77[0x0]['_appendChild'](_0x34b319),_0xa30936=_0x34b319;}_0x131632[_0x131632[_0x5e10('0xd0')]-0x1]+=_0x53ed5f[_0x4bacbc][_0x5e10('0x13')]['offsetSize'],_0x53d339=_0x104b03[_0x5e10('0x7')](_0x3c61e5,_0x131632);}}for(const _0x43fa69 of _0x53ed5f[_0x4bacbc][_0x5e10('0x68')])_0x316b05[_0x5e10('0xab')](_0x43fa69,{'start':_0x23d119,'end':null});_0x2747fe(_0x5e10('0x23'),_0x4bacbc,_0x23d119,_0x53d339),_0x2747fe(_0x5e10('0xf2'),_0x4bacbc,_0x23d119,_0x53d339),_0x2747fe(_0x5e10('0x40'),_0x4bacbc,_0x23d119,_0x53d339),_0x2747fe(_0x5e10('0x50'),_0x4bacbc,_0x23d119,_0x53d339);for(const _0xc49a1d of _0x53ed5f[_0x4bacbc][_0x5e10('0x121')]){_0x316b05[_0x5e10('0x114')](_0xc49a1d)['end']=_0x53d339;}}for(const [_0x167042,_0x947edb]of _0x316b05){const _0x22f8f0=this[_0x5e10('0x6b')][_0x5e10('0xc8')]['createRange'](_0x947edb['start'],_0x947edb[_0x5e10('0x3a')]);_0x3c61e5['markers'][_0x5e10('0xab')](_0x167042,_0x22f8f0);}return _0x2c6b7b['sort']((_0x4fd05d,_0x4f01d1)=>{const _0x57bbc3=_0x3c61e5[_0x5e10('0x44')]['get'](_0x5e10('0x89')+_0x4fd05d['id']),_0x3eb938=_0x3c61e5[_0x5e10('0x44')]['get'](_0x5e10('0x89')+_0x4f01d1['id']);return _0x57bbc3[_0x5e10('0x66')][_0x5e10('0xa6')](_0x3eb938[_0x5e10('0x66')])?-0x1:_0x57bbc3['start'][_0x5e10('0x60')](_0x3eb938[_0x5e10('0x66')])?0x1:_0x57bbc3[_0x5e10('0x3a')][_0x5e10('0xa6')](_0x3eb938[_0x5e10('0x3a')])?-0x1:_0x57bbc3[_0x5e10('0x3a')][_0x5e10('0x60')](_0x3eb938[_0x5e10('0x3a')])?0x1:_0x5e10('0x47')===_0x4fd05d[_0x5e10('0xb3')]?-0x1:0x1;}),{'root':_0x3c61e5,'changes':_0x2c6b7b};function _0x2747fe(_0x1089e2,_0x40172c,_0x1410f5,_0x561811){const _0x171adc=!!_0x53ed5f[_0x40172c][_0x1089e2],_0x5c55c4=_0x171adc?_0x53ed5f[_0x40172c][_0x1089e2][_0x5e10('0x79')]:null,_0x5d0c65=_0x40172c===_0x53ed5f[_0x5e10('0xd0')]-0x1,_0xd9247a=_0xe32f05[_0x1089e2][0x0],_0x3d7d28=_0x5d2431[_0x5e10('0xaa')](_0x53ed5f[_0x40172c][_0x5e10('0x13')]);!_0x3f46d8[_0x1089e2]&&_0x171adc?_0x3f46d8[_0x1089e2]={'start':_0x1410f5,'tapeItem':_0x53ed5f[_0x40172c],'userId':_0x5c55c4,'type':_0x1089e2}:_0x3f46d8[_0x1089e2]&&!_0x171adc?(_0x3f46d8[_0x1089e2][_0x5e10('0x3a')]=_0x1410f5,_0x3fe604(_0x3f46d8[_0x1089e2]),_0x3f46d8[_0x1089e2]=null):_0x3f46d8[_0x1089e2]&&_0x171adc&&_0x3f46d8[_0x1089e2][_0x5e10('0x79')]!==_0x5c55c4&&(_0x3f46d8[_0x1089e2][_0x5e10('0x3a')]=_0x1410f5,_0xd9247a&&_0xd9247a[_0x5e10('0x79')]===_0x3f46d8[_0x1089e2][_0x5e10('0x79')]||_0x3fe604(_0x3f46d8[_0x1089e2]),_0x3f46d8[_0x1089e2]={'start':_0x1410f5,'tapeItem':_0x53ed5f[_0x40172c],'userId':_0x5c55c4,'type':_0x1089e2}),_0x3f46d8[_0x1089e2]&&_0x3d7d28&&(_0x5e10('0x120')!==_0x53ed5f[_0x40172c]['type']||_0xd9247a&&_0xd9247a[_0x5e10('0x79')]===_0x5c55c4||_0xe32f05[_0x1089e2][_0x5e10('0x6a')]({'userId':_0x5c55c4,'object':_0x53ed5f[_0x40172c][_0x5e10('0x13')],'change':_0x3f46d8[_0x1089e2]}),_0x5e10('0xc3')===_0x53ed5f[_0x40172c]['type']&&_0xd9247a&&_0xd9247a[_0x5e10('0xae')]===_0x53ed5f[_0x40172c][_0x5e10('0x13')]&&(_0xe32f05[_0x1089e2]['shift'](),_0x3f46d8[_0x1089e2]=_0xd9247a[_0x5e10('0x7f')])),_0x3f46d8[_0x1089e2]&&_0x5d0c65&&(_0x3f46d8[_0x1089e2]['end']=_0x561811,_0x3fe604(_0x3f46d8[_0x1089e2]),_0x3f46d8[_0x1089e2]=null);}function _0x3fe604({start:_0x4033e4,end:_0x2e6d7a,tapeItem:_0x527215,userId:_0x48fd51,type:_0x349e38}){const _0x119367=_0x527215[_0x5e10('0x13')],_0x51797c=_0x104b03[_0x5e10('0x116')][_0x5e10('0x18')](_0x119367)&&!_0x104b03[_0x5e10('0x116')][_0x5e10('0xec')](_0x119367),_0x5ddc24=_0x4033e4[_0x5e10('0x46')]==_0x2e6d7a['parent']&&_0x2e6d7a['isAtStart'];if(_0x51797c&&_0x5ddc24)return;const _0x41f407=_0x104b03[_0x5e10('0xd9')](_0x4033e4,_0x2e6d7a),_0x2d80cd=_0x2a3b65[_0x5e10('0x114')](_0x48fd51),_0x3ab5cb=new _0x4530f3({'author':_0x2d80cd,'type':'isAdded'==_0x349e38||_0x5e10('0xf2')==_0x349e38?_0x5e10('0x47'):_0x5e10('0x76'),'data':{'isSuggestion':_0x5e10('0xf2')==_0x349e38||_0x5e10('0x23')==_0x349e38},'createdAt':new Date(),'rootName':_0x705fd7});_0x2c6b7b['push'](_0x3ab5cb),_0x3c61e5[_0x5e10('0x44')][_0x5e10('0xab')](_0x5e10('0x89')+_0x3ab5cb['id'],_0x41f407);}function _0x266f2f(_0x388f59,_0x1f9dcf){const _0x50b850=_0x388f59[_0x5e10('0x10c')](),_0xbaaec2=_0x1f9dcf[_0x5e10('0x10c')]();for(const _0x2fdf75 of _0x50b850){if(_0x2fdf75[0x1]!==_0x1f9dcf['getAttribute'](_0x2fdf75[0x0]))return!0x1;_0xbaaec2[_0x5e10('0xc5')]();}return _0xbaaec2[_0x5e10('0xc5')]()[_0x5e10('0x107')];}}[_0x5e10('0xf4')](){this[_0x5e10('0x6b')][_0x5e10('0x4b')][_0x5e10('0x85')](_0x5e10('0x2'))[_0x5e10('0x106')]({'view':_0x5e10('0x11e')}),this['editor'][_0x5e10('0x4b')][_0x5e10('0x85')](_0x5e10('0xeb'))[_0x5e10('0x2e')]({'model':_0x5e10('0x11e'),'view':_0x197446=>{const _0x5bba3e=_0x197446[_0x5e10('0xef')][_0x5e10('0xc')](':')[0x1],_0x5829bf=this['_getChangeFromId'](_0x5bba3e);if(!_0x5829bf)return null;const _0x404014='add'==_0x5829bf[_0x5e10('0xb3')]?_0x5e10('0x9e'):_0x5e10('0x6e'),_0x1de2c8=[_0x5e10('0xd'),_0x5e10('0x7b')+_0x404014];return _0x5829bf[_0x5e10('0xe7')][_0x5e10('0xa')]&&_0x1de2c8[_0x5e10('0x8d')](_0x5e10('0x7b')+_0x404014+_0x5e10('0x94')),this['activeChange']==_0x5829bf&&_0x1de2c8['push']('ck-suggestion-marker--active'),{'classes':_0x1de2c8,'attributes':{'data-change-id':_0x5bba3e}};}}),this[_0x5e10('0x6b')][_0x5e10('0x4b')]['for'](_0x5e10('0x2'))[_0x5e10('0x47')](_0x1dcf16=>{_0x1dcf16['on'](_0x5e10('0x3b'),(_0x839eb1,_0x2be135,_0x119795)=>{const _0x55f711=_0x2be135[_0x5e10('0x4c')][_0x5e10('0x7e')](0x0);if(!_0x55f711||!_0x55f711['is']('element',_0x5e10('0xcc')))return;if(!_0x119795['consumable'][_0x5e10('0xf9')](_0x55f711,{'attributes':[_0x5e10('0x10e'),_0x5e10('0xd1')]}))return;const _0x2f3943=_0x2be135['modelRange']['start'][_0x5e10('0x46')];_0x119795['writer'][_0x5e10('0xee')]('vid_start',_0x55f711['getAttribute'](_0x5e10('0x10e')),_0x2f3943),_0x119795[_0x5e10('0x45')][_0x5e10('0xee')](_0x5e10('0xd1'),_0x55f711[_0x5e10('0xd5')](_0x5e10('0xd1')),_0x2f3943);},{'priority':_0x5e10('0x26')});}),this[_0x5e10('0x6b')][_0x5e10('0x4b')]['for'](_0x5e10('0x2'))[_0x5e10('0x47')](_0x437ecd=>{_0x437ecd['on'](_0x5e10('0x111'),(_0x1eedd6,_0x5db50c,_0x33046)=>{if(!_0x33046[_0x5e10('0xd7')][_0x5e10('0xf9')](_0x5db50c['viewItem'],{'attributes':[_0x5e10('0x10e'),_0x5e10('0xd1')]}))return;if(_0x5db50c[_0x5e10('0x75')][_0x5e10('0xf0')])return;const _0xfc7a38=_0x5db50c[_0x5e10('0x75')][_0x5e10('0x66')][_0x5e10('0x46')];_0xfc7a38['hasAttribute'](_0x5e10('0x10e'))||_0xfc7a38[_0x5e10('0xde')](_0x5e10('0xe0'))||(_0x33046[_0x5e10('0x45')][_0x5e10('0xee')](_0x5e10('0x10e'),_0x5db50c[_0x5e10('0x4c')][_0x5e10('0xd5')](_0x5e10('0x10e')),_0xfc7a38),_0x33046[_0x5e10('0x45')]['setAttribute']('vid_end',_0x5db50c[_0x5e10('0x4c')][_0x5e10('0xd5')](_0x5e10('0xd1')),_0xfc7a38));},{'priority':_0x5e10('0x26')});}),this['editor']['conversion'][_0x5e10('0x85')](_0x5e10('0x2'))['elementToAttribute']({'view':{'name':_0x5e10('0xbf'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x988067=>_0x988067[_0x5e10('0xd5')]('vid')}}),this[_0x5e10('0x6b')]['model'][_0x5e10('0x116')]['on']('checkAttribute',(_0x41b1d7,[,_0x4d17cc])=>{[_0x5e10('0x10e'),_0x5e10('0xd1'),_0x5e10('0xe0')][_0x5e10('0x2d')](_0x4d17cc)&&(_0x41b1d7[_0x5e10('0xb6')]=!0x0,_0x41b1d7['stop']());},{'priority':'highest'}),this[_0x5e10('0x6b')][_0x5e10('0x4b')][_0x5e10('0x85')](_0x5e10('0x8f'))[_0x5e10('0x47')](_0x429a89=>{_0x429a89['on']('attribute:vid',(_0x582540,_0x2e6c5a,_0x4c3eea)=>{if('\x20'!=_0x2e6c5a['item'][_0x5e10('0xe7')]||_0x2e6c5a[_0x5e10('0x13')][_0x5e10('0x6c')]['maxOffset']>0x1)return;if(!_0x4c3eea['consumable'][_0x5e10('0xf9')](_0x2e6c5a[_0x5e10('0x13')],_0x582540['name']))return;const _0x35a8fa=_0x4c3eea[_0x5e10('0x45')],_0x387756=_0x4c3eea[_0x5e10('0x83')][_0x5e10('0xd3')](_0x2e6c5a['range']);_0x35a8fa[_0x5e10('0x10d')](_0x387756,_0x35a8fa[_0x5e10('0x6d')](_0x5e10('0xbf')));});}),this[_0x5e10('0x6b')][_0x5e10('0x4b')]['for'](_0x5e10('0x8f'))[_0x5e10('0xe8')]({'model':'revision'}),this['editor'][_0x5e10('0xe5')][_0x5e10('0x64')]['on'](_0x5e10('0xba'),function(_0x3fb490){const _0xa75515=_0x3fb490[_0x5e10('0xe9')]['get'](_0x5e10('0xac'));return(_0x28a1ce,_0x4de343,_0xcfad95)=>{const _0x1131cc=_0x4de343['markerName'][_0x5e10('0xc')](':')[0x1],_0x1f5e9e=_0xa75515[_0x5e10('0xb8')](_0x1131cc);if(!_0x1f5e9e)return null;const _0x5ba531=_0x5e10('0x47')==_0x1f5e9e[_0x5e10('0xb3')]?'split':'merge';if(!_0xcfad95[_0x5e10('0xd7')][_0x5e10('0x36')](_0x4de343[_0x5e10('0xa1')],_0x28a1ce['name']))return;const _0x1c08a5=_0x4de343[_0x5e10('0xa1')]['getWalker'](),_0x30678b=_0x4de343[_0x5e10('0xa1')][_0x5e10('0x66')],_0x117ff7=_0x3fb490[_0x5e10('0xc8')][_0x5e10('0x116')];let _0x1098e0=null,_0xff71cf=null,_0x1aa0e6=!0x1,_0x229a50=!0x1;for(const _0x2fee97 of _0x1c08a5){const _0xe40205=_0x2fee97[_0x5e10('0x13')];_0x1aa0e6=_0x1aa0e6||_0x117ff7['isContent'](_0xe40205);const _0x23f24e=_0xcfad95[_0x5e10('0x83')][_0x5e10('0x63')](_0xe40205);if(_0x23f24e&&_0x23f24e[_0x5e10('0x21')](_0x5e10('0x77')))return;'elementEnd'==_0x2fee97['type']&&(_0x117ff7[_0x5e10('0x18')](_0xe40205)&&!_0x117ff7[_0x5e10('0xec')](_0xe40205)&&(_0xe40205[_0x5e10('0x1')]||_0x30678b[_0x5e10('0xd4')]?_0x1098e0&&_0x1098e0['parent']==_0xe40205||(_0x1098e0=_0xe40205,_0x4f83c9(_0x2fee97[_0x5e10('0xed')]),_0x229a50=!0x0):_0xff71cf=_0xff71cf||_0x2fee97[_0x5e10('0xed')]));}function _0x4f83c9(_0x309430){const _0x16ae6d=_0xcfad95['writer']['createUIElement'](_0x5e10('0xbf'),{'class':'ck-suggestion-marker-'+_0x5ba531}),_0x74ca8e=_0xcfad95['mapper'][_0x5e10('0x10a')](_0x309430);_0x1f5e9e[_0x5e10('0xe7')][_0x5e10('0xa')]&&_0xcfad95[_0x5e10('0x45')][_0x5e10('0x8b')](_0x5e10('0x7b')+_0x5ba531+'-new',_0x16ae6d),_0xa75515[_0x5e10('0x99')]==_0x1f5e9e&&_0xcfad95[_0x5e10('0x45')][_0x5e10('0x8b')](_0x5e10('0x98'),_0x16ae6d),_0xcfad95['writer'][_0x5e10('0x10b')](_0x74ca8e,_0x16ae6d),_0xcfad95['mapper']['bindElementToMarker'](_0x16ae6d,_0x4de343['markerName']);}_0x1aa0e6||_0x229a50||!_0xff71cf||_0x4f83c9(_0xff71cf);};}(this[_0x5e10('0x6b')]),{'priority':_0x5e10('0x38')}),this[_0x5e10('0x6b')][_0x5e10('0xe5')][_0x5e10('0x64')]['on']('removeMarker:revision',(_0x12fe64,_0x354732,_0x20966a)=>{const _0xf63fd0=_0x20966a[_0x5e10('0x83')][_0x5e10('0x117')](_0x354732[_0x5e10('0xef')]);if(_0xf63fd0)for(const _0x5e4fc9 of _0xf63fd0)(_0x5e4fc9['hasClass'](_0x5e10('0xa7'))||_0x5e4fc9[_0x5e10('0x3c')](_0x5e10('0x11c')))&&(_0x20966a[_0x5e10('0x83')][_0x5e10('0xbe')](_0x5e4fc9,_0x354732[_0x5e10('0xef')]),_0x20966a[_0x5e10('0x45')][_0x5e10('0x76')](_0x5e4fc9));},{'priority':_0x5e10('0x38')}),this[_0x5e10('0x6b')]['editing'][_0x5e10('0x64')]['on'](_0x5e10('0xba'),(_0x2c4d9d,_0x38231f,_0x4f02fb)=>{const _0x43835c=_0x38231f['markerName']['split'](':')[0x1],_0x203b6d=this[_0x5e10('0xb8')](_0x43835c);if(!_0x203b6d)return null;const _0x3e018f='add'==_0x203b6d[_0x5e10('0xb3')]?_0x5e10('0xc'):_0x5e10('0x17');if(_0x4f02fb[_0x5e10('0xd7')][_0x5e10('0x36')](_0x38231f[_0x5e10('0xa1')],_0x2c4d9d['name']))for(const _0x3a93ce of _0x38231f[_0x5e10('0xa1')][_0x5e10('0x35')]()){if(!_0x3a93ce['is'](_0x5e10('0x111'),_0x5e10('0x7d')))continue;const _0x129879=_0x4f02fb[_0x5e10('0x45')]['createUIElement']('span',{'class':_0x5e10('0x7b')+_0x3e018f}),_0x2030f7=_0x4f02fb['mapper'][_0x5e10('0x10a')](this['editor'][_0x5e10('0xc8')][_0x5e10('0x49')](_0x3a93ce));_0x203b6d[_0x5e10('0xe7')][_0x5e10('0xa')]&&_0x4f02fb[_0x5e10('0x45')][_0x5e10('0x8b')](_0x5e10('0x7b')+_0x3e018f+_0x5e10('0x94'),_0x129879),this['activeChange']==_0x203b6d&&_0x4f02fb[_0x5e10('0x45')][_0x5e10('0x8b')](_0x5e10('0x98'),_0x129879),_0x4f02fb[_0x5e10('0x45')]['insert'](_0x2030f7,_0x129879),_0x4f02fb[_0x5e10('0x83')][_0x5e10('0x125')](_0x129879,_0x38231f[_0x5e10('0xef')]);}},{'priority':_0x5e10('0x38')}),this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')]['on'](_0x5e10('0x7f'),()=>{this[_0x5e10('0x6b')][_0x5e10('0xe5')]['view'][_0x5e10('0x7f')](_0x319362=>{for(const _0x2d7f41 of this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')]['getRootNames']()){const _0x9b8278=this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')][_0x5e10('0x8c')](_0x2d7f41),_0xed523d=this[_0x5e10('0x6b')]['editing']['view']['document'][_0x5e10('0x8c')](_0x2d7f41);if(_0xed523d){const _0x1c19a1=_0x9b8278[_0x5e10('0xd5')](_0x5e10('0xbd'));if(_0x319362[_0x5e10('0x2f')](_0x5e10('0x122'),_0xed523d),_0x319362[_0x5e10('0x96')](_0x5e10('0xf6'),_0xed523d),_0x319362['removeClass'](_0x5e10('0x4f'),_0xed523d),_0x319362['removeClass'](_0x5e10('0x33'),_0xed523d),_0x1c19a1){const _0x11c143=this['_getChangeFromId'](_0x1c19a1);if(!_0x11c143)return null;_0x319362['setAttribute']('data-change-id',_0x1c19a1,_0xed523d),_0x319362['addClass'](_0x5e10('0x9')+_0x11c143['type'],_0xed523d),this[_0x5e10('0x99')]==_0x11c143&&_0x319362[_0x5e10('0x8b')](_0x5e10('0x33'),_0xed523d);}}}});}),this[_0x5e10('0x6b')][_0x5e10('0x4b')][_0x5e10('0x85')](_0x5e10('0x2'))[_0x5e10('0x106')]({'view':_0x5e10('0xf5'),'model':_0x3d5b79=>_0x5e10('0xc1')+_0x3d5b79,'converterPriority':_0x5e10('0x43')}),this[_0x5e10('0x6b')][_0x5e10('0x4b')][_0x5e10('0x85')]('upcast')[_0x5e10('0x106')]({'view':_0x5e10('0x5c'),'model':_0x22f68b=>_0x5e10('0x59')+_0x22f68b,'converterPriority':_0x5e10('0x43')}),this['editor']['conversion'][_0x5e10('0x85')](_0x5e10('0x8f'))['markerToData']({'model':_0x5e10('0xfc'),'view':_0x3c2c6e=>({'name':_0x5e10('0x58')+_0x3c2c6e,'group':_0x5e10('0xfc')}),'converterPriority':'highest'}),this[_0x5e10('0x6b')]['conversion'][_0x5e10('0x85')](_0x5e10('0xeb'))[_0x5e10('0x2e')]({'model':_0x5e10('0xfc'),'view':_0x52286c=>{const _0x5ee608=_0x52286c[_0x5e10('0xef')][_0x5e10('0xc')](':')[0x1];return _0x5e10('0x9e')!=_0x5ee608&&_0x5e10('0x6e')!=_0x5ee608?null:{'classes':[_0x5e10('0xce'),_0x5e10('0xdf')+_0x5ee608]};}}),this[_0x5e10('0x6b')]['editing'][_0x5e10('0x64')]['on']('addMarker:revision-suggestion:deletion',et(this['editor'],_0x5e10('0x17')),{'priority':'high'}),this[_0x5e10('0x6b')][_0x5e10('0xe5')][_0x5e10('0x64')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x5e10('0x6b')],'split'),{'priority':_0x5e10('0x38')}),this[_0x5e10('0x6b')]['editing'][_0x5e10('0x64')]['on']('removeMarker:revision-suggestion',(_0x2d90c5,_0x250878,_0x32cf2f)=>{const _0x5a03af=_0x32cf2f[_0x5e10('0x83')][_0x5e10('0x117')](_0x250878[_0x5e10('0xef')]);if(_0x5a03af)for(const _0x51c0a8 of _0x5a03af)_0x51c0a8['is'](_0x5e10('0xa3'))&&(_0x32cf2f[_0x5e10('0x83')][_0x5e10('0xbe')](_0x51c0a8,_0x250878[_0x5e10('0xef')]),_0x32cf2f[_0x5e10('0x45')][_0x5e10('0x76')](_0x51c0a8));},{'priority':_0x5e10('0x38')});}[_0x5e10('0xb8')](_0x4d7a59){return this[_0x5e10('0x1d')]['get'](_0x4d7a59);}[_0x5e10('0x53')](_0x406699){return this['_changeView']&&this[_0x5e10('0x3')]['destroy'](),this[_0x5e10('0x3')]=new _0x37931b(this[_0x5e10('0x6b')][_0x5e10('0x92')],_0x406699),this[_0x5e10('0x3')];}['_initInteractions'](){this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')][_0x5e10('0x88')][_0x5e10('0x12')](_0x5e10('0x11e')),this['on']('change:activeView',(_0x178083,_0x2ea37d,_0xab4400,_0x4b9dcb)=>{_0x4b9dcb&&this[_0x5e10('0x55')][_0x5e10('0x76')](_0x4b9dcb),_0xab4400&&(this['_balloon']['add']({'view':_0xab4400,'stackId':_0x5e10('0xea'),'position':{'target':()=>{const _0x472d95=this[_0x5e10('0x6b')][_0x5e10('0xe5')],_0x51c511=this[_0x5e10('0xb8')](_0xab4400[_0x5e10('0x73')]);let _0x10e7c8;if(_0x51c511[_0x5e10('0xe7')][_0x5e10('0xe6')]){const _0x4e06cf=_0x472d95[_0x5e10('0x1c')][_0x5e10('0xfe')](_0x51c511['rootName']);_0x10e7c8=Array[_0x5e10('0xb5')](_0x4e06cf[_0x5e10('0x105')]());}else{const _0x5dfe41=this[_0x5e10('0x6b')][_0x5e10('0xc8')]['markers']['get']('revision:'+_0xab4400[_0x5e10('0x73')]);_0x10e7c8=Array['from'](_0x472d95[_0x5e10('0x83')][_0x5e10('0x117')](_0x5dfe41[_0x5e10('0x10')]))[_0x5e10('0x52')](_0x38b907=>_0x472d95[_0x5e10('0x1c')][_0x5e10('0x81')][_0x5e10('0xa0')](_0x38b907))[_0x5e10('0x52')](_0x3119df=>Array[_0x5e10('0xb5')](_0x3119df[_0x5e10('0x105')]()))[_0x5e10('0x32')]();}if(!this[_0x5e10('0xe')])return _0x10e7c8[0x0];return _0x10e7c8[_0x5e10('0x5')](_0x4afd9c=>_0x4afd9c[_0x5e10('0xfd')]-0x3<=this[_0x5e10('0xe')]['y']&&_0x4afd9c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4afd9c[_0x5e10('0x9b')]-0x3<=this['_activeViewTarget']['x']&&_0x4afd9c[_0x5e10('0x25')]+0x3>=this[_0x5e10('0xe')]['x'])||_0x10e7c8[0x0];}}}),this[_0x5e10('0x55')][_0x5e10('0x1e')](_0x5e10('0xea')));}),this['on'](_0x5e10('0x113'),(_0x44f085,_0x12cbae,_0x5a6b07,_0x1ef48d)=>{this[_0x5e10('0x93')]=_0x5a6b07?this[_0x5e10('0x53')](_0x5a6b07):null,this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x7f')](()=>{const _0x2c7890=this[_0x5e10('0x6b')][_0x5e10('0xe5')];_0x1ef48d&&(_0x1ef48d[_0x5e10('0xe7')]['isOnRoot']?_0x2c7890[_0x5e10('0x1c')][_0x5e10('0x7f')](_0x592c19=>{_0x592c19[_0x5e10('0x96')](_0x5e10('0x33'),_0x2c7890[_0x5e10('0x1c')][_0x5e10('0xaf')][_0x5e10('0x8c')](_0x1ef48d[_0x5e10('0x67')]));}):_0x2c7890[_0x5e10('0x3e')]('revision:'+_0x1ef48d['id'])),_0x5a6b07&&(_0x5a6b07['data'][_0x5e10('0xe6')]?_0x2c7890[_0x5e10('0x1c')]['change'](_0x3b19d9=>{_0x3b19d9[_0x5e10('0x8b')](_0x5e10('0x33'),_0x2c7890[_0x5e10('0x1c')][_0x5e10('0xaf')][_0x5e10('0x8c')](_0x5a6b07[_0x5e10('0x67')]));}):_0x2c7890[_0x5e10('0x3e')](_0x5e10('0x89')+_0x5a6b07['id']));});}),this[_0x5e10('0x28')](this[_0x5e10('0x6b')][_0x5e10('0xe5')]['view'][_0x5e10('0xaf')],'mouseover',(_0x75410f,_0x3c1b66)=>{if(this['activeChange'])return;const _0x360c99=this[_0x5e10('0x11f')](_0x3c1b66['target']),_0x132d22=this['_changeIdToChange'][_0x5e10('0x114')](_0x360c99);_0x132d22?(this['_activeViewTarget']={'x':_0x3c1b66[_0x5e10('0x14')]['x'],'y':_0x3c1b66[_0x5e10('0x14')]['y']},this[_0x5e10('0x93')]=this['_getViewForChange'](_0x132d22)):(this['_activeViewTarget']=null,this[_0x5e10('0x93')]=null);}),this[_0x5e10('0x28')](this[_0x5e10('0x6b')][_0x5e10('0xe5')][_0x5e10('0x1c')][_0x5e10('0xaf')],_0x5e10('0x19'),(_0x341ad2,_0x8a688)=>{const _0x965c8b=this[_0x5e10('0x11f')](_0x8a688['target']),_0x44821a=this['_changeIdToChange'][_0x5e10('0x114')](_0x965c8b);_0x44821a?(this['_activeViewTarget']={'x':_0x8a688[_0x5e10('0x14')]['x'],'y':_0x8a688[_0x5e10('0x14')]['y']},_0x44821a===this[_0x5e10('0x99')]?this[_0x5e10('0x55')][_0x5e10('0xf7')]():this['activeChange']=_0x44821a):(this['_activeViewTarget']=null,this[_0x5e10('0x99')]=null);});}[_0x5e10('0x11f')](_0x22930f){do{const _0x5e4724=_0x22930f[_0x5e10('0xd5')]('data-change-id');if(_0x5e4724)return _0x5e4724;_0x22930f=_0x22930f[_0x5e10('0x6c')];}while(_0x22930f);return null;}[_0x5e10('0x27')](){this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x7f')](_0x3bc841=>{for(const _0xfca30a of this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x44')])_0x3bc841[_0x5e10('0x123')](_0xfca30a);});}}function et(_0xe2cf8d,_0x8dc1de){return(_0x580c4a,_0xff3080,_0x20b9c8)=>{if(!_0x20b9c8[_0x5e10('0xd7')][_0x5e10('0x36')](_0xff3080[_0x5e10('0xa1')],_0x580c4a[_0x5e10('0x10')]))return;const _0x140c7d=_0xff3080[_0x5e10('0xa1')][_0x5e10('0xe1')](),_0xc0b715=_0xff3080[_0x5e10('0xa1')][_0x5e10('0x66')],_0x1ba574=_0xe2cf8d['model'][_0x5e10('0x116')];let _0x70d31a=null,_0x4d302f=null,_0xeeb23f=!0x1,_0x23006d=!0x1;for(const _0x113e7f of _0x140c7d){const _0x5d1cd1=_0x113e7f['item'];_0xeeb23f=_0xeeb23f||_0x1ba574[_0x5e10('0xa8')](_0x5d1cd1);const _0x3cf4f9=_0x20b9c8[_0x5e10('0x83')][_0x5e10('0x63')](_0x5d1cd1);if(_0x3cf4f9&&_0x3cf4f9['getCustomProperty'](_0x5e10('0x77')))return;_0x5e10('0xc3')==_0x113e7f[_0x5e10('0xb3')]&&(_0x1ba574['isBlock'](_0x5d1cd1)&&!_0x1ba574[_0x5e10('0xec')](_0x5d1cd1)&&(_0x5d1cd1[_0x5e10('0x1')]||_0xc0b715[_0x5e10('0xd4')]?_0x70d31a&&_0x70d31a['parent']==_0x5d1cd1||(_0x70d31a=_0x5d1cd1,_0x122898(_0x113e7f[_0x5e10('0xed')]),_0x23006d=!0x0):_0x4d302f=_0x4d302f||_0x113e7f[_0x5e10('0xed')]));}function _0x122898(_0x4d82c4){const _0x1022b6=_0x20b9c8[_0x5e10('0x83')][_0x5e10('0x10a')](_0x4d82c4),_0x17f4a5=_0x20b9c8[_0x5e10('0x45')][_0x5e10('0x57')](_0x5e10('0xbf'),{'class':'ck-suggestion-preview-marker-'+_0x8dc1de});_0x20b9c8[_0x5e10('0x45')][_0x5e10('0x10b')](_0x1022b6,_0x17f4a5),_0x20b9c8[_0x5e10('0x83')][_0x5e10('0x125')](_0x17f4a5,_0xff3080['markerName']);}_0xeeb23f||_0x23006d||!_0x4d302f||_0x122898(_0x4d302f);};}export class RestoreRevisionCommand extends _0x8477e{constructor(_0x57ea13){super(_0x57ea13);const _0x489080=_0x57ea13[_0x5e10('0xe9')][_0x5e10('0x114')](d);this[_0x5e10('0xf')]=!0x1,this[_0x5e10('0x28')](_0x489080,'change:isReady',()=>this[_0x5e10('0xc0')]()),this[_0x5e10('0x28')](_0x489080,_0x5e10('0x22'),()=>this[_0x5e10('0xc0')]());}[_0x5e10('0xcf')](){const _0x24ab1a=this[_0x5e10('0x6b')],_0x32aafd=_0x24ab1a[_0x5e10('0xe9')][_0x5e10('0x114')](d),_0x4ebdca=_0x32aafd[_0x5e10('0x101')]?_0x32aafd[_0x5e10('0x9a')][_0x5e10('0x4e')]:null;_0x24ab1a[_0x5e10('0x7a')][_0x5e10('0x114')](_0x5e10('0x3f'))[_0x5e10('0xca')](_0x4ebdca);}[_0x5e10('0xc0')](){const {isReady:_0x4daeb7,isEnabled:_0x285d8f}=this[_0x5e10('0x6b')]['plugins'][_0x5e10('0x114')](d);this[_0x5e10('0x103')]=_0x4daeb7&&_0x285d8f;}}export class ShowChangeCommand extends _0x8477e{constructor(_0x4f5988,{direction:_0x48b558}){super(_0x4f5988);const _0x2b3548=_0x4f5988[_0x5e10('0xe9')][_0x5e10('0x114')](d);this['affectsData']=!0x1,this[_0x5e10('0x0')]=_0x5e10('0xad')===_0x48b558?0x1:-0x1,this[_0x5e10('0x28')](_0x2b3548,'change:isReady',()=>this[_0x5e10('0xc0')]()),this['listenTo'](_0x2b3548,_0x5e10('0x22'),()=>this['refresh']()),this[_0x5e10('0x28')](_0x2b3548,_0x5e10('0x113'),()=>this[_0x5e10('0xc0')]());}[_0x5e10('0xcf')](){const _0x18be79=this['editor'],_0x15712d=_0x18be79[_0x5e10('0xe9')][_0x5e10('0x114')](d),{isNavigationMode:_0x32c250,currentChangeNumber:_0x283784}=_0x15712d;let _0x3af52e;if(_0x15712d[_0x5e10('0x99')]=_0x32c250?_0x15712d[_0x5e10('0x9a')][_0x5e10('0x9d')][_0x5e10('0x114')](_0x283784+this['_step']):_0x15712d[_0x5e10('0x9a')][_0x5e10('0x9d')][_0x5e10('0xb7')],_0x15712d[_0x5e10('0x99')][_0x5e10('0xe7')][_0x5e10('0xe6')])_0x3af52e=_0x18be79['editing'][_0x5e10('0x1c')][_0x5e10('0xfe')](_0x15712d[_0x5e10('0x99')][_0x5e10('0x67')]);else{const _0x3ec1af=_0x18be79[_0x5e10('0xc8')][_0x5e10('0x44')]['get'](_0x5e10('0x89')+_0x15712d[_0x5e10('0x99')]['id']);_0x3af52e=_0x4ee3ac(_0x18be79[_0x5e10('0xe5')],_0x3ec1af);}_0x2eed88({'target':_0x3af52e,'viewportOffset':0x28});}[_0x5e10('0xc0')](){const {isNavigationMode:_0x3d4274,currentChangeNumber:_0x3517ae,numberOfChanges:_0x157ca4,isReady:_0x41ea46,isEnabled:_0x5181df}=this['editor'][_0x5e10('0xe9')][_0x5e10('0x114')](d);this[_0x5e10('0x103')]=!!(_0x5181df&&_0x41ea46&&_0x157ca4)&&(!_0x3d4274||(0x1===this[_0x5e10('0x0')]?_0x3517ae<_0x157ca4-0x1:_0x3517ae>0x0));}}
|
|
23
|
+
const _0x27ab=['target','index','isInline','revision-viewer','ck-revision-history-root-','offsetSize','nextSibling','addMarker:revision-suggestion:insertion','createAttributeElement','concat','markersEnd','config','_data','nodeAfter','isAddSuggestion','_cleanUp','getAttributes','_revisions','adapter','authors','startIndex','toData','ck-suggestion-marker--active','execute','bottom','error','_cleanMarkers','_makeTape','oldRevisionId','insert','addClass','-new','for','data-change-id','setAttribute','vid','deletion','activeChange','requires','diff','currentChangeNumber','updatePosition','keys','level','viewItem','left','observeMarkers','useFillerType','includes','processor','ck-revision-history-root-add','commands','unshift','showNextChange','createPositionFromPath','first','_findChangeIdFromDomTarget','elementToAttribute','isBlock','pop','data','hasClass','findIndex','clear','forEach','downcastDispatcher','revision-suggestion:','vid_end','previousPosition','rootName','ck-revision-history-root--active','_getChangeFromId','RevisionViewer','repository','toViewElement','_getDiff','_refreshStartEndIndex','_changeIdToChange','ck-suggestion-preview-marker-','_getRevisionsRange','bindElementToMarker','length','checkAttribute','change:isEnabled','_activeViewTarget','markerName','_markSuggestions','_removeUnsupportedChanges','attributesAfter','from','isContent','getRevision','distance','then','getIndex','attachChange','sort','slice','forceDisabled','upcast','remove','pairId','elementEnd','text','createUIElement','item','unbindElementFromMarkerName','markerToHighlight','ck-editor__editable__overlay','editor','data-revision-','indexOf','createRevision','insertions','change:activeView','deletions','children','range','mapper','revision:','backward','wrap','_balloon','toViewPosition','change:numberOfChanges','numberOfChanges','_initInteractions','_getViewObj','removeClass','object','nextPosition','_processTape','addMarker:revision-suggestion:deletion','enqueueChange','addRevisionData','elementStart','abs','ck-suggestion-marker-split','compare','isIncorrect','softBreak','_getViewForChange','reconvertMarker','test','change','markerRange','getItems','ck-suggestion-preview-marker','getDomRoot','isAtStart','all','addRoot','bind','_makeModelFromTape','diffData','refresh','revision','_step','span','consumable','isRemoved','delete','getRootNames','uiElement','isObject','document','removeMarker:revision','editing','loadRevisionData','toModel','filter','_threeWayMerge','high','addMarker:revision','revisionHistoryLabel','highest','detachRoot','userId','element','low','revision-start','createRange','isAfter','plugins','listenTo','addRevision','markerNameToElements','right','schema','name','hasAttribute','showPreviousChange','getChild','collaboration.channelId','_removeMissingPairs','maxOffset','dataDowncast','restoreRevision','_markMismatchedRemovedTags','parse','revision-suggestion','string','attributes','modelRange','top','model','change:isReady','getRoot','isLimit','markers','get','insertion','_removeRevisionMarkers','isSuggestion','isAttached','conversion','isEqual','_update','pluginName','parent','removeMarker:revision-suggestion','isOnRoot','map','newRevisionId','locale','vid_start','start','getWalker','next','createRangeIn','flat','_setChanges','_setDistance','writer','getClientRects','split','view','markerToData','side','stop','isCollapsed','destroy','element:pre','resolve','mouseover','revision-comment:','revision-end','_joinTapes','isRemoveSuggestion','end','consume','_sortAndFilterDiffChanges','isReady','getAttribute','changeId','markersStart','forward','isAtEnd','shift','_setConversion','mapViewToDom','ck-suggestion-marker-','_markInsertions','revisionHistoryAttachChange','attributesBefore','endIndex','isAdded','change:activeChange','has','activeView','getCustomProperty','attribute:vid','WidgetToolbarRepository','enableReadOnlyMode','type','add','domEvent','push','createPositionBefore','_markMarkers','startsWith','merge','return','isEnabled','set','changes','_fixObsoleteTags','_makeModelFromViewString','getRevisionData','_changeView','affectsData','dataToMarker','splice'];(function(_0x305b3b,_0x27ab27){const _0x20221b=function(_0x18f338){while(--_0x18f338){_0x305b3b['push'](_0x305b3b['shift']());}};_0x20221b(++_0x27ab27);}(_0x27ab,0x12f));const _0x2022=function(_0x305b3b,_0x27ab27){_0x305b3b=_0x305b3b-0x0;let _0x20221b=_0x27ab[_0x305b3b];return _0x20221b;};import{Plugin as _0x2cc1f8,Command as _0x356bbb}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5ce67b}from'ckeditor5/src/utils';import{ContextualBalloon as _0x390cce}from'ckeditor5/src/ui';import{DocumentFragment as _0x197c08,Element as _0x479e62,Text as _0x5fa407,ViewDocumentFragment as _0x4b1a00,ViewText as _0x4a8b84,ViewElement as _0x3d4192,ViewContainerElement as _0x5d522a,ViewAttributeElement as _0x12e6ca,ViewEmptyElement as _0x29a267,ViewRawElement as _0xc3ef03,ViewUIElement as _0x1855af}from'ckeditor5/src/engine';import{Users as _0x101cf8,getMarkerDomElement as _0x842571}from'ckeditor5-collaboration/src/collaboration-core';import _0x1beb22 from'./ui/revisionviewer/changedetailsview';import _0x25ac15 from'./revisionsrepository';import _0x130e94 from'./changeitem';import{default as _0x220120}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x247f68}from'lodash-es';const tt={'c':_0x5d522a,'a':_0x12e6ca,'e':_0x29a267,'r':_0xc3ef03,'u':_0x1855af};export default class d extends _0x2cc1f8{static get[_0x2022('0xd0')](){return _0x2022('0x3e');}static get[_0x2022('0x1c')](){return[_0x101cf8,_0x390cce,_0x25ac15];}constructor(_0x171c6b){super(_0x171c6b),this['repository']=this[_0x2022('0x63')][_0x2022('0xad')]['get']('RevisionsRepository'),this['set'](_0x2022('0x1b'),null),this[_0x2022('0x112')](_0x2022('0x103'),null),this[_0x2022('0x4a')]=null,this['set'](_0x2022('0x1d'),null),this['set'](_0x2022('0xf2'),!0x1),this[_0x2022('0x112')](_0x2022('0x111'),!0x0),this['on'](_0x2022('0x49'),(_0x55b608,_0x327b4f,_0x2c1b39)=>{this['activeChange']=null,this[_0x2022('0x103')]=null,this['editor'][_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x86')](_0x12a718=>{for(const _0x1d361a of this['editor']['editing']['view'][_0x2022('0x9b')]['roots'])_0x2c1b39?_0x12a718[_0x2022('0x76')](_0x2022('0x62'),_0x1d361a):_0x12a718[_0x2022('0x14')](_0x2022('0x62'),_0x1d361a);});}),this[_0x2022('0x8e')]('isNavigationMode')['to'](this,'activeChange',_0x4a6652=>null!==_0x4a6652),this[_0x2022('0x8e')](_0x2022('0x1e'))['to'](this,_0x2022('0xf2'),this,_0x2022('0x1d'),this,_0x2022('0x1b'),(_0x293a3e,_0x54c80f,_0x44a4d7)=>_0x293a3e&&_0x44a4d7?_0x54c80f[_0x2022('0x113')][_0x2022('0x54')](_0x44a4d7):0x0),this[_0x2022('0x8e')](_0x2022('0x73'))['to'](this,_0x2022('0xf2'),this,'diff',(_0x3e0046,_0x52a5f8)=>_0x3e0046?_0x52a5f8[_0x2022('0x113')][_0x2022('0x47')]:0x0),this['_changeView']=null,this[_0x2022('0x43')]=new Map(),this[_0x2022('0x8')]=null,this[_0x2022('0x70')]=this[_0x2022('0x63')][_0x2022('0xad')][_0x2022('0xc8')](_0x390cce);}['init'](){const _0x1db915=this[_0x2022('0x63')],_0x167ece=new ShowChangeCommand(_0x1db915,{'direction':_0x2022('0x6e')}),_0x2f1645=new ShowChangeCommand(_0x1db915,{'direction':_0x2022('0xf6')});(_0x1db915[_0x2022('0x29')][_0x2022('0x109')](_0x2022('0xb5'),_0x167ece),_0x1db915[_0x2022('0x29')][_0x2022('0x109')](_0x2022('0x2b'),_0x2f1645),_0x1db915[_0x2022('0x29')][_0x2022('0x109')](_0x2022('0xbb'),new RestoreRevisionCommand(_0x1db915)),this['on'](_0x2022('0x72'),()=>{_0x167ece[_0x2022('0x91')](),_0x2f1645[_0x2022('0x91')]();}),this[_0x2022('0xf9')](),this[_0x2022('0x74')](),_0x1db915[_0x2022('0x107')](_0x2022('0x11e')),_0x1db915['plugins'][_0x2022('0x102')](_0x2022('0x106')))&&_0x1db915[_0x2022('0xad')][_0x2022('0xc8')](_0x2022('0x106'))[_0x2022('0x58')](_0x2022('0x11e'));}async[_0x2022('0x116')](_0x84db4d){await this[_0x2022('0x9e')](_0x84db4d);const _0x572da3={};for(const _0x1bf031 in _0x84db4d[_0x2022('0x90')]){if(_0x84db4d[_0x2022('0x90')][_0x1bf031][_0x2022('0x55')]&&!_0x84db4d['diffData'][_0x1bf031]['attachChange'][_0x2022('0xcc')])continue;const _0x59b301=this[_0x2022('0xca')](JSON[_0x2022('0xbd')](_0x84db4d[_0x2022('0x90')][_0x1bf031][_0x2022('0x67')])),_0x38ae31=this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0xe2')]['document'],_0x3ca9de=new _0x4b1a00(_0x38ae31,_0x59b301[_0x2022('0xd4')](_0x3d4958=>this[_0x2022('0x75')](_0x3d4958)));this[_0x2022('0x63')]['data'][_0x2022('0x27')][_0x2022('0x25')]('marked'),_0x572da3[_0x1bf031]=this[_0x2022('0x63')][_0x2022('0x32')]['processor'][_0x2022('0xb')](_0x3ca9de),this[_0x2022('0x63')][_0x2022('0x32')]['processor'][_0x2022('0x25')]('default');}return _0x572da3;}async['getRevisionRootsAttributes'](_0x11780a){await this[_0x2022('0x9e')](_0x11780a);const _0x3918d7={};for(const _0x5adfeb in _0x11780a[_0x2022('0x90')])_0x11780a[_0x2022('0x90')][_0x5adfeb][_0x2022('0x55')]&&!_0x11780a[_0x2022('0x90')][_0x5adfeb][_0x2022('0x55')][_0x2022('0xcc')]||(_0x3918d7[_0x5adfeb]=_0x11780a['diffData'][_0x5adfeb]['attributesAfter']||{});return _0x3918d7;}['_removeRevisionMarkers'](_0x3fc7e1){return(_0x3fc7e1=_0x3fc7e1[_0x2022('0xa0')](_0x5ac409=>!_0x5ac409[_0x2022('0xb3')]||_0x2022('0xaa')!==_0x5ac409['name']&&_0x2022('0xec')!==_0x5ac409[_0x2022('0xb3')]))[_0x2022('0x36')](_0x3add74=>{_0x2022('0xbf')!=typeof _0x3add74&&(_0x3add74[_0x2022('0x6a')]=this[_0x2022('0xca')](_0x3add74['children']),_0x3add74[_0x2022('0xc0')]=_0x3add74[_0x2022('0xc0')]['filter'](_0xe5c93e=>!_0xe5c93e[0x0][_0x2022('0x10e')](_0x2022('0x64'))));}),_0x3fc7e1;}async[_0x2022('0x80')](_0x1e251f,_0x4c4ada,_0x20b634=!0x1){if(!this['isEnabled'])return;const _0x3c1653=this[_0x2022('0x1d')],_0x71a32b=this['repository'],_0x398793='string'==typeof _0x1e251f?_0x71a32b[_0x2022('0x51')](_0x1e251f):_0x1e251f,_0x15efb8=_0x2022('0xbf')==typeof _0x4c4ada?_0x71a32b[_0x2022('0x51')](_0x4c4ada):_0x4c4ada,_0x1d8f9f=_0x398793['id'],_0x35742a=_0x15efb8?_0x15efb8['id']:null;if(!_0x20b634&&this[_0x2022('0x1d')]&&this['diff'][_0x2022('0xd5')]===_0x1d8f9f&&this[_0x2022('0x1d')][_0x2022('0x12')]===_0x35742a)return Promise[_0x2022('0xe9')]();this['isReady']=!0x1,this[_0x2022('0x103')]=null,this[_0x2022('0x1b')]=null,this['diff']=new _0x220120(_0x1d8f9f,_0x35742a);const _0xc21473=this[_0x2022('0x45')](_0x398793,_0x15efb8,!0x0)[_0x2022('0xd4')](_0x3a8b53=>this[_0x2022('0x9e')](_0x3a8b53));return _0xc21473[_0x2022('0x10b')](new Promise(_0x3ebf9f=>{setTimeout(_0x3ebf9f,0x14);})),Promise[_0x2022('0x8c')](_0xc21473)[_0x2022('0x53')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x47c5e3=this[_0x2022('0x41')](_0x1d8f9f,_0x35742a);for(const _0x232a5b of _0x47c5e3[_0x2022('0x113')])this[_0x2022('0x43')][_0x2022('0x112')](_0x232a5b['id'],_0x232a5b);this['editor'][_0x2022('0xc3')][_0x2022('0x7b')]({'isUndoable':!0x1},_0x35d9c8=>{for(const _0x445a98 of this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0x98')]())_0x35d9c8[_0x2022('0xa6')](_0x445a98);for(const _0x46af89 of Object[_0x2022('0x20')](_0x47c5e3['model'])){const _0x194804=_0x35d9c8[_0x2022('0x8d')](_0x46af89);for(const _0x1e6e21 of Object['keys'](_0x47c5e3['attributes'][_0x46af89]))_0x35d9c8[_0x2022('0x18')](_0x1e6e21,_0x47c5e3[_0x2022('0xc0')][_0x46af89][_0x1e6e21],_0x194804);_0x35d9c8[_0x2022('0x13')](_0x47c5e3['model'][_0x46af89],_0x194804,0x0);}}),this[_0x2022('0x1d')][_0x2022('0xdd')](this[_0x2022('0xf1')](_0x47c5e3[_0x2022('0x113')])),this[_0x2022('0xf2')]=!0x0;})['catch'](_0x2268e6=>{console[_0x2022('0xf')](_0x2268e6),this['_cleanUp'](),_0x3c1653&&(this[_0x2022('0x1d')]=_0x3c1653),this['isReady']=!0x0;});}[_0x2022('0x7c')](_0x5774af,_0x1d2810){const _0x593db8=this[_0x2022('0x3f')][_0x2022('0x66')](_0x5774af);return _0x593db8['on'](_0x2022('0xcf'),(_0x31c0a8,_0x150419,_0x565456)=>_0x1d2810(_0x150419,_0x565456,_0x593db8)),this[_0x2022('0x3f')][_0x2022('0xaf')](_0x593db8),_0x593db8;}['loadRevisionData'](_0x163164){if(!_0x163164||_0x163164[_0x2022('0x90')])return Promise[_0x2022('0xe9')]();{const _0xfb1f6d=this[_0x2022('0x63')]['config'][_0x2022('0xc8')](_0x2022('0xb7'));return this[_0x2022('0x8')]['getRevision']({'channelId':_0xfb1f6d,'revisionId':_0x163164['id']})[_0x2022('0x53')](_0x5881be=>{_0x163164[_0x2022('0xcf')]({'diffData':_0x5881be[_0x2022('0x90')]},!0x0);});}}[_0x2022('0x5')](){this[_0x2022('0x1b')]=null,this['_cleanMarkers'](),this[_0x2022('0x117')]&&this['_changeView'][_0x2022('0xe7')](),this['_changeView']=null,this[_0x2022('0x43')][_0x2022('0x35')](),this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x7b')]({'isUndoable':!0x1},_0x307f85=>{for(const _0x12838b of this['editor'][_0x2022('0xc3')]['document'][_0x2022('0x98')]())_0x307f85[_0x2022('0xa6')](_0x12838b);});}[_0x2022('0xf1')](_0x29069b){const _0x39b404=[],_0x41fb88=new Map();for(const _0xcb5d07 of this['editor'][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0x98')]()){const _0x22f199=this['editor'][_0x2022('0x9d')][_0x2022('0xe2')]['getDomRoot'](_0xcb5d07);if(!_0x22f199)continue;const _0x24661c=_0x22f199[_0x2022('0xe0')]()[_0x2022('0x5f')](0x0);_0x24661c&&(_0x39b404['push'](_0xcb5d07),_0x41fb88[_0x2022('0x112')](_0xcb5d07,_0x24661c));}return _0x39b404[_0x2022('0x56')]((_0x9d0725,_0x394bf7)=>{const _0x267e8b=_0x41fb88[_0x2022('0xc8')](_0x9d0725),_0x32c2bd=_0x41fb88['get'](_0x394bf7);return _0x267e8b['y']-_0x32c2bd['y']||_0x267e8b['x']-_0x32c2bd['x'];}),(_0x29069b=_0x29069b['filter'](_0x1cdec4=>_0x39b404['includes'](_0x1cdec4['rootName'])))['sort']((_0x2cd9e2,_0x82f8fa)=>_0x39b404[_0x2022('0x65')](_0x2cd9e2['rootName'])-_0x39b404['indexOf'](_0x82f8fa[_0x2022('0x3b')])),_0x29069b;}[_0x2022('0x11')](_0x46e2ba){const _0x2a7a76=Array[_0x2022('0x4f')](_0x46e2ba[_0x2022('0xc7')])[_0x2022('0xa0')](([_0xc98a90,_0x2af25e])=>_0xc98a90[_0x2022('0x10e')]('revision:')&&!_0x2af25e['isCollapsed']),_0x99b9e=Array[_0x2022('0x4f')](this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xdb')](_0x46e2ba)[_0x2022('0xd9')]({'singleCharacters':!0x0}));if(0x0!=_0x2a7a76[_0x2022('0x47')])for(const _0x1a4edc of _0x99b9e){const [_0x488a1c,_0x2db063]=_0x2a7a76[0x0],[,_0x539ae9,_0x2ee097]=_0x488a1c[_0x2022('0xe1')](':');if(_0x2db063['end'][_0x2022('0xce')](_0x1a4edc[_0x2022('0x78')])&&_0x2a7a76[_0x2022('0xf8')](),(_0x1a4edc['previousPosition'][_0x2022('0xce')](_0x2db063[_0x2022('0xd8')])||_0x1a4edc[_0x2022('0x3a')][_0x2022('0xac')](_0x2db063['start']))&&('insertion'==_0x539ae9?_0x1a4edc[_0x2022('0x100')]={'userId':_0x2ee097}:_0x2022('0x1a')==_0x539ae9&&(_0x1a4edc[_0x2022('0x96')]={'userId':_0x2ee097})),0x0==_0x2a7a76[_0x2022('0x47')])break;}return _0x99b9e;}[_0x2022('0x42')](_0x384ddc){const _0x46786c=new Map();for(let _0x3c0143=0x0;_0x3c0143<_0x384ddc[_0x2022('0x47')];_0x3c0143++)'text'===_0x384ddc[_0x3c0143][_0x2022('0x108')]?(_0x384ddc[_0x3c0143][_0x2022('0x5f')]['startIndex']=_0x3c0143,_0x384ddc[_0x3c0143]['item'][_0x2022('0xff')]=_0x3c0143):('elementStart'===_0x384ddc[_0x3c0143][_0x2022('0x108')]?_0x384ddc[_0x3c0143][_0x2022('0x5f')][_0x2022('0xa')]=_0x3c0143:_0x2022('0x5c')===_0x384ddc[_0x3c0143]['type']&&(_0x384ddc[_0x3c0143]['item'][_0x2022('0xff')]=_0x3c0143),_0x46786c[_0x2022('0x112')](_0x384ddc[_0x3c0143]['id'],_0x3c0143));for(const _0x3db377 of _0x46786c['values']())_0x2022('0x7d')===_0x384ddc[_0x3db377][_0x2022('0x108')]?_0x384ddc[_0x3db377]['item'][_0x2022('0xff')]=_0x46786c['get'](_0x384ddc[_0x3db377][_0x2022('0x5b')]):_0x2022('0x5c')===_0x384ddc[_0x3db377][_0x2022('0x108')]&&(_0x384ddc[_0x3db377]['item'][_0x2022('0xa')]=_0x46786c[_0x2022('0xc8')](_0x384ddc[_0x3db377][_0x2022('0x5b')]));}[_0x2022('0x79')](_0x4fa05c){for(let _0x6b896e=0x0;_0x6b896e<_0x4fa05c[_0x2022('0x47')];_0x6b896e++){if(_0x2022('0x7d')===_0x4fa05c[_0x6b896e][_0x2022('0x108')])_0x4fa05c[_0x6b896e][_0x2022('0x5f')]['startIndex']=_0x6b896e;else{if(_0x2022('0x5c')===_0x4fa05c[_0x6b896e]['type']){_0x4fa05c[_0x6b896e][_0x2022('0x5f')][_0x2022('0xff')]=_0x6b896e;const _0x32d80e=_0x4fa05c[_0x6b896e][_0x2022('0x5f')][_0x2022('0xa')];_0x4fa05c[_0x32d80e][_0x2022('0x5b')]=_0x4fa05c[_0x6b896e]['id'],_0x4fa05c[_0x6b896e]['pairId']=_0x4fa05c[_0x32d80e]['id'];}else _0x4fa05c[_0x6b896e][_0x2022('0x5f')][_0x2022('0xa')]=_0x6b896e,_0x4fa05c[_0x6b896e][_0x2022('0x5f')]['endIndex']=_0x6b896e,_0x4fa05c[_0x6b896e][_0x2022('0x5b')]=null;}_0x4fa05c[_0x6b896e][_0x2022('0xf5')]||(_0x4fa05c[_0x6b896e][_0x2022('0xf5')]=[],_0x4fa05c[_0x6b896e]['markersEnd']=[]);}}[_0x2022('0xfc')](_0x365d6a,_0x2a21bd){const _0x1c6af6=_0x365d6a[_0x2022('0xa0')](_0x5ec798=>!_0x5ec798[_0x2022('0x100')]);for(let _0x4866d6=0x0;_0x4866d6<_0x2a21bd[_0x2022('0x47')];_0x4866d6++)_0x2a21bd[_0x4866d6][_0x2022('0x100')]&&(_0x1c6af6[_0x4866d6][_0x2022('0x100')]=_0x2a21bd[_0x4866d6][_0x2022('0x100')]);}[_0x2022('0x115')](_0x364dd3){const _0x191456=JSON['parse'](_0x364dd3),_0x20fe3b=this[_0x2022('0x63')]['editing'][_0x2022('0xe2')][_0x2022('0x9b')],_0x521a7c=new _0x4b1a00(_0x20fe3b,_0x191456[_0x2022('0xd4')](_0x536d05=>this[_0x2022('0x75')](_0x536d05)));return this[_0x2022('0x63')][_0x2022('0x32')][_0x2022('0x9f')](_0x521a7c);}[_0x2022('0x75')](_0x3510a4){const _0x6d049e=this[_0x2022('0x63')][_0x2022('0x9d')]['view'][_0x2022('0x9b')];if(_0x2022('0xbf')==typeof _0x3510a4)return new _0x4a8b84(_0x6d049e,_0x3510a4);{const _0x3baa23=_0x3510a4[_0x2022('0x6a')]['map'](_0x50a6ae=>this[_0x2022('0x75')](_0x50a6ae));return new(tt[_0x3510a4['type']]||_0x3d4192)(_0x6d049e,_0x3510a4['name'],_0x3510a4[_0x2022('0xc0')],_0x3baa23);}}[_0x2022('0x41')](_0x2c7e09,_0x435718=null){const _0x57a2b0=this[_0x2022('0x3f')]['getRevision'](_0x2c7e09),_0x516685=_0x435718?this[_0x2022('0x3f')]['getRevision'](_0x435718):null,_0x3fbffc=this[_0x2022('0x45')](_0x57a2b0,_0x516685),_0xdd12d9=_0x3fbffc[_0x3fbffc[_0x2022('0x47')]-0x1],_0x50de58=new Map(),_0x30b676={'model':{},'attributes':{},'changes':[]},_0x394da8=new Set(),_0x55e998=new Map();for(let _0x4c93dc=_0x3fbffc[_0x2022('0x47')]-0x1;_0x4c93dc>=0x0;_0x4c93dc--){const _0xe0a4e1=_0x3fbffc[_0x4c93dc];for(const _0x2250f6 of Object[_0x2022('0x20')](_0xe0a4e1[_0x2022('0x90')]))if(_0xe0a4e1[_0x2022('0x90')][_0x2250f6]['attachChange']){const _0x3e80d5=_0xe0a4e1[_0x2022('0x90')][_0x2250f6][_0x2022('0x55')];_0x3e80d5[_0x2022('0xcc')]?(_0x394da8['add'](_0x2250f6),_0x55e998['has'](_0x2250f6)&&_0x55e998[_0x2022('0xc8')](_0x2250f6)['userId']==_0x3e80d5['userId']?_0x55e998['delete'](_0x2250f6):_0x55e998[_0x2022('0x112')](_0x2250f6,_0x3e80d5)):_0x55e998['has'](_0x2250f6)?(_0x394da8[_0x2022('0x97')](_0x2250f6),_0x55e998[_0x2022('0x97')](_0x2250f6)):(_0x394da8[_0x2022('0x109')](_0x2250f6),_0x55e998['set'](_0x2250f6,_0x3e80d5));}else _0x394da8[_0x2022('0x109')](_0x2250f6);}for(const _0x5f4bc1 of _0x394da8){const _0x128c8c=_0x55e998['has'](_0x5f4bc1)&&!_0x55e998[_0x2022('0xc8')](_0x5f4bc1)[_0x2022('0xcc')];let _0x354d9d=_0x128c8c?_0x3fbffc['length']-0x1:0x0;const _0xbf720d=_0x128c8c?-0x1:0x1;for(;_0x3fbffc[_0x354d9d];){const _0x494b19=_0x3fbffc[_0x354d9d];if(_0x494b19[_0x2022('0x90')][_0x5f4bc1]){const _0x58e7c2=_0x128c8c?_0x494b19[_0x2022('0x90')][_0x5f4bc1][_0x2022('0xfe')]:_0x494b19['diffData'][_0x5f4bc1][_0x2022('0x4e')];_0x30b676[_0x2022('0xc0')][_0x5f4bc1]=_0x58e7c2?_0x247f68(_0x58e7c2):{};break;}_0x354d9d+=_0xbf720d;}}for(const _0x5d3d1d of _0x3fbffc){_0x5d3d1d[_0x2022('0xc3')]={};for(const _0x593224 of _0x5d3d1d[_0x2022('0x9')])_0x50de58[_0x2022('0x112')](_0x593224['id'],_0x593224);for(const _0x1f9844 of _0x394da8){const _0x5b6f6f=_0x5d3d1d[_0x2022('0x90')][_0x1f9844]?_0x5d3d1d[_0x2022('0x90')][_0x1f9844][_0x2022('0x67')]:'[]',_0x5030a4=_0x5d3d1d[_0x2022('0x90')][_0x1f9844]?_0x5d3d1d[_0x2022('0x90')][_0x1f9844][_0x2022('0x69')]:'[]';_0x5d3d1d['model'][_0x1f9844]={'insertions':this[_0x2022('0x115')](_0x5b6f6f),'deletions':this[_0x2022('0x115')](_0x5030a4)};}}for(const _0xc35daf of _0x394da8){let _0x493002=null,_0x2aec75=0x0;const _0x3d868b=new Map(Array['from'](_0x57a2b0[_0x2022('0xc3')][_0xc35daf][_0x2022('0x67')][_0x2022('0xc7')])[_0x2022('0xa0')](([_0x473a40])=>!_0x473a40[_0x2022('0x10e')]('revision:')));let _0x1a66bf=0x0;for(const _0x4d1d5f of _0x3fbffc){const _0xc308c5=this['_makeTape'](_0x4d1d5f['model'][_0xc35daf][_0x2022('0x67')]);_0x4d1d5f==_0x57a2b0?(_0x493002=_0xc308c5,_0x2aec75=_0x493002[_0x2022('0x47')],_0x493002[_0x2022('0x36')](_0x391173=>{_0x391173['id']=_0x1a66bf++;}),this[_0x2022('0x79')](_0x493002)):this['_markInsertions'](_0x493002,_0xc308c5);const _0x395a2f=_0x493002[_0x2022('0xa0')](_0x5207f5=>!_0x5207f5[_0x2022('0x100')])['map'](_0x1f8fb2=>_0x1f8fb2['id']);let _0x230c18=0x0;const _0x43914c=this['_makeTape'](_0x4d1d5f[_0x2022('0xc3')][_0xc35daf][_0x2022('0x69')]);_0x43914c[_0x2022('0x36')](_0x5ab177=>{_0x5ab177[_0x2022('0x96')]?_0x5ab177['id']=_0x2aec75++:_0x5ab177['id']=_0x395a2f[_0x230c18++];}),this[_0x2022('0x79')](_0x43914c),this[_0x2022('0xde')](_0x493002,_0x2022('0x100')),this[_0x2022('0xde')](_0x43914c,_0x2022('0x96')),_0x4d1d5f==_0x57a2b0&&this[_0x2022('0x10d')](_0x493002,_0x3d868b),_0x493002=this[_0x2022('0xed')](_0x493002,_0x43914c),this[_0x2022('0x42')](_0x493002),this['_setDistance'](_0x493002,'isRemoved');}_0x493002=_0x493002[_0x2022('0xa0')](_0x4b60ed=>!(_0x4b60ed['isAdded']&&_0x4b60ed[_0x2022('0x96')]));const _0x39938d=new Map(_0xdd12d9[_0x2022('0xc3')][_0xc35daf]['deletions']['markers']),_0x121b14=new Set(_0x3d868b[_0x2022('0x20')]());for(const _0x3ef6cf of _0x39938d['keys']())_0x121b14[_0x2022('0x97')](_0x3ef6cf);this[_0x2022('0x4c')](_0x493002,_0x121b14),this[_0x2022('0x114')](_0x493002),_0x493002=this[_0x2022('0xb8')](_0x493002),_0x493002=this['_markMismatchedRemovedTags'](_0x493002),_0x493002=this['_removeUnsupportedChanges'](_0x493002);const {root:_0x3fd51b,changes:_0x47bade}=this[_0x2022('0x8f')](_0x493002,_0x50de58,_0xc35daf);_0x30b676[_0x2022('0xc3')][_0xc35daf]=_0x3fd51b;const _0x51495a=_0x55e998['get'](_0xc35daf);if(_0x51495a){const _0x29b6bc=_0x50de58[_0x2022('0xc8')](_0x51495a[_0x2022('0xa7')]),_0x1233af=new _0x130e94({'author':_0x29b6bc,'type':_0x51495a[_0x2022('0xcc')]?_0x2022('0x109'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xc35daf});_0x47bade[_0x2022('0x2a')](_0x1233af),_0x30b676[_0x2022('0xc0')][_0xc35daf][_0x2022('0xfd')]=_0x1233af['id'];}_0x30b676['changes']=_0x30b676[_0x2022('0x113')][_0x2022('0x124')](_0x47bade);}return _0x30b676;}[_0x2022('0x10d')](_0x479b8f,_0x1d9949){for(let _0x4b304c=0x0;_0x4b304c<_0x479b8f['length'];_0x4b304c++)for(const [_0x19aa9d,_0x43eb03]of _0x1d9949)_0x43eb03['start'][_0x2022('0xce')](_0x479b8f[_0x4b304c][_0x2022('0x3a')])&&_0x479b8f[_0x4b304c][_0x2022('0xf5')][_0x2022('0x10b')](_0x19aa9d),_0x43eb03[_0x2022('0xef')][_0x2022('0xce')](_0x479b8f[_0x4b304c][_0x2022('0x78')])&&_0x479b8f[_0x4b304c]['markersEnd'][_0x2022('0x10b')](_0x19aa9d);}[_0x2022('0xed')](_0x1eb268,_0x133ad6){let _0x4b1c89=[],_0x52c847=0x0,_0x105a39=0x0;for(;_0x52c847<_0x1eb268['length']||_0x105a39<_0x133ad6[_0x2022('0x47')];){const _0x492e3a=_0x1eb268[_0x52c847]||{},_0x536731=_0x133ad6[_0x105a39]||{};if(_0x492e3a['id']==_0x536731['id'])_0x52c847++,_0x105a39++,_0x4b1c89[_0x2022('0x10b')](_0x492e3a);else{if(_0x536731[_0x2022('0x96')]&&_0x492e3a[_0x2022('0x100')]){const {commonTape:_0x640173,iEnd:_0x3a815d,jEnd:_0x3cc7d0}=this[_0x2022('0xa1')](_0x1eb268,_0x52c847,_0x133ad6,_0x105a39);_0x4b1c89=_0x4b1c89[_0x2022('0x124')](_0x640173),_0x52c847=_0x3a815d,_0x105a39=_0x3cc7d0;}else _0x536731[_0x2022('0x96')]?(_0x105a39++,_0x4b1c89[_0x2022('0x10b')](_0x536731)):(_0x52c847++,_0x4b1c89['push'](_0x492e3a));}}return _0x4b1c89;}[_0x2022('0x4c')](_0x3f2374,_0x4b58c2){const _0x59337c=[];for(let _0x4aa450=0x0;_0x4aa450<_0x3f2374[_0x2022('0x47')];_0x4aa450++){for(let _0x4ce8e1=0x0;_0x4ce8e1<_0x3f2374[_0x4aa450]['markersStart'][_0x2022('0x47')];_0x4ce8e1++){const _0x593cec=_0x3f2374[_0x4aa450][_0x2022('0xf5')][_0x4ce8e1];if(!_0x4b58c2[_0x2022('0x102')](_0x593cec))continue;const {group:_0x52c1ed,type:_0x1630ae,authorId:_0x14239e}=_0x1d81ca(_0x593cec);_0x2022('0xbe')!=_0x52c1ed||'insertion'!=_0x1630ae&&_0x2022('0x1a')!=_0x1630ae||(_0x59337c[_0x2022('0x2a')]({'type':_0x1630ae,'name':_0x593cec,'userId':_0x14239e}),_0x3f2374[_0x4aa450][_0x2022('0xf5')][_0x2022('0x11a')](_0x4ce8e1,0x1),_0x4ce8e1--);}_0x200e0f(_0x3f2374[_0x4aa450]);for(let _0x382f49=0x0;_0x382f49<_0x3f2374[_0x4aa450][_0x2022('0x0')][_0x2022('0x47')];_0x382f49++){const _0x3e269a=_0x3f2374[_0x4aa450][_0x2022('0x0')][_0x382f49];if(!_0x4b58c2[_0x2022('0x102')](_0x3e269a))continue;const {group:_0x333cf3,type:_0xf19db1}=_0x1d81ca(_0x3e269a);if(_0x2022('0xbe')!=_0x333cf3||_0x2022('0xc9')!=_0xf19db1&&'deletion'!=_0xf19db1)continue;_0x3f2374[_0x4aa450][_0x2022('0x0')][_0x2022('0x11a')](_0x382f49,0x1),_0x382f49--;const _0x2d329a=_0x59337c[_0x2022('0x34')](_0x5022bd=>_0x5022bd[_0x2022('0xb3')]==_0x3e269a);_0x2d329a>-0x1&&_0x59337c[_0x2022('0x11a')](_0x2d329a,0x1);}}function _0x1d81ca(_0x94622f){const _0x27bd4d=_0x94622f['split'](':');return{'group':_0x27bd4d[0x0],'type':_0x27bd4d[0x1],'subType':_0x27bd4d[_0x2022('0x47')]>=0x5?_0x27bd4d[0x2]:null,'id':_0x27bd4d['length']<0x5?_0x27bd4d[0x2]:_0x27bd4d[0x3],'authorId':_0x27bd4d['length']<0x5?_0x27bd4d[0x3]:_0x27bd4d[0x4],'markerCount':0x6==_0x27bd4d[_0x2022('0x47')]?_0x27bd4d[0x5]:null};}function _0x200e0f(_0x2ab715){for(let _0xc9b7e5=0x0;_0xc9b7e5<_0x59337c['length'];_0xc9b7e5++){if(_0x2ab715[_0x2022('0x100')]&&_0x2022('0xc9')==_0x59337c[_0xc9b7e5][_0x2022('0x108')])return _0x2ab715[_0x2022('0x4')]=_0x59337c[_0xc9b7e5],void delete _0x2ab715[_0x2022('0x100')];if(!_0x2ab715['isAdded']&&!_0x2ab715[_0x2022('0x96')]&&'deletion'==_0x59337c[_0xc9b7e5][_0x2022('0x108')])return void(_0x2ab715['isRemoveSuggestion']=_0x59337c[_0xc9b7e5]);}}}[_0x2022('0xde')](_0x14a536,_0xe31ce4){let _0x4fe744=0x0,_0xe843c0=!0x1;const _0x366cae=new Map();for(const _0x5693d2 of _0x14a536)_0x5693d2[_0xe31ce4]?_0xe843c0&&(_0x4fe744++,_0xe843c0=!0x1):(_0x4fe744++,_0xe843c0=!0x0),_0x366cae[_0x2022('0x112')](_0x5693d2['id'],_0x4fe744);for(let _0x3dab9f=0x0;_0x3dab9f<_0x14a536['length'];_0x3dab9f++){if(_0x2022('0x96')==_0xe31ce4&&_0x14a536[_0x3dab9f][_0x2022('0x100')]||_0x2022('0x100')==_0xe31ce4&&_0x14a536[_0x3dab9f]['isRemoved'])continue;if(_0x2022('0x5d')==_0x14a536[_0x3dab9f][_0x2022('0x108')]){_0x14a536[_0x3dab9f]['distance']=0x0;continue;}const _0x1f3070=_0x366cae[_0x2022('0xc8')](_0x14a536[_0x3dab9f][_0x2022('0x5b')]),_0x5b8f56=_0x366cae[_0x2022('0xc8')](_0x14a536[_0x3dab9f]['id']);_0x14a536[_0x3dab9f]['distance']=_0x1f3070-_0x5b8f56;}}[_0x2022('0x45')](_0x39be3d,_0x45a4cc,_0x4025a1=!0x1){const _0x486860=[];let _0x18541b=this['repository'][_0x2022('0x54')](_0x39be3d),_0x4e1968=this[_0x2022('0x3f')][_0x2022('0x54')](_0x45a4cc);for(-0x1==_0x4e1968&&(_0x4e1968=this[_0x2022('0x3f')][_0x2022('0x7')][_0x2022('0x47')],_0x4025a1=!0x1);_0x18541b<_0x4e1968;)_0x486860['push'](this[_0x2022('0x3f')][_0x2022('0x51')](_0x18541b)),_0x18541b++;return _0x4025a1&&_0x486860[_0x2022('0x10b')](this['repository'][_0x2022('0x51')](_0x18541b)),_0x486860;}[_0x2022('0xa1')](_0x329d95,_0x46f90e,_0x4a3734,_0x2bd7f7){const _0x3d60b1=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xb2')];let _0x3c5307=_0x46f90e;for(;_0x329d95[_0x3c5307]&&_0x329d95[_0x3c5307][_0x2022('0x100')];)_0x3c5307++;let _0x35b17e=_0x2bd7f7;for(;_0x4a3734[_0x35b17e]&&_0x4a3734[_0x35b17e][_0x2022('0x96')];)_0x35b17e++;_0x20f57d(_0x329d95,_0x46f90e,_0x3c5307),_0x20f57d(_0x4a3734,_0x2bd7f7,_0x35b17e);const _0xc45c3f=_0x4a3734[_0x2022('0x57')](_0x2bd7f7,_0x35b17e)['concat'](_0x329d95[_0x2022('0x57')](_0x46f90e,_0x3c5307));return _0xc45c3f['sort']((_0x233a1c,_0x56a4a5)=>_0x233a1c[_0x2022('0xe4')]!=_0x56a4a5[_0x2022('0xe4')]?_0x233a1c[_0x2022('0xe4')]-_0x56a4a5[_0x2022('0xe4')]:_0x233a1c['level']!=_0x56a4a5[_0x2022('0x21')]?_0x233a1c[_0x2022('0x21')]-_0x56a4a5[_0x2022('0x21')]:_0x233a1c['distance']!=_0x56a4a5[_0x2022('0x52')]?_0x56a4a5[_0x2022('0x52')]-_0x233a1c[_0x2022('0x52')]:!!_0x233a1c[_0x2022('0x100')]!=!!_0x56a4a5[_0x2022('0x100')]?-0x1==_0x233a1c[_0x2022('0xe4')]||0x0==_0x233a1c['side']?_0x233a1c[_0x2022('0x100')]?-0x1:0x1:_0x233a1c[_0x2022('0x100')]?0x1:-0x1:_0x233a1c['index']-_0x56a4a5[_0x2022('0x11c')]),{'commonTape':_0xc45c3f,'iEnd':_0x3c5307,'jEnd':_0x35b17e};function _0x20f57d(_0x4e6a44,_0x277a57,_0x521d17){let _0x4edf02=-0x1,_0xf7e2e2=Number['POSITIVE_INFINITY'],_0x482a91=!0x0;for(let _0x74f5b8=_0x277a57;_0x74f5b8<_0x521d17;_0x74f5b8++)if(_0x3d60b1[_0x2022('0x11d')](_0x4e6a44[_0x74f5b8][_0x2022('0x5f')])||(_0x482a91=!0x1),_0x4e6a44[_0x74f5b8][_0x2022('0x5f')][_0x2022('0xa')]<_0x277a57&&(_0x4edf02=_0x74f5b8),_0x4e6a44[_0x74f5b8][_0x2022('0x5f')][_0x2022('0xff')]>=_0x521d17){_0xf7e2e2=_0x74f5b8;break;}_0x482a91&&(_0x4edf02=_0x521d17-0x1);for(let _0x1c2137=_0x277a57;_0x1c2137<_0x521d17;_0x1c2137++)_0x4e6a44[_0x1c2137][_0x2022('0xe4')]=_0x1c2137<=_0x4edf02?-0x1:_0x1c2137<_0xf7e2e2?0x0:0x1,_0x4e6a44[_0x1c2137][_0x2022('0x11c')]=_0x1c2137;let _0x49f7c4=0x0;for(let _0x42cc3d=_0x277a57;_0x42cc3d<=_0x4edf02;_0x42cc3d++)0x0==_0x4e6a44[_0x42cc3d][_0x2022('0x52')]?_0x4e6a44[_0x42cc3d]['level']=_0x49f7c4:(_0x49f7c4++,_0x4e6a44[_0x42cc3d]['level']=_0x49f7c4,_0x49f7c4++);for(let _0x194d25=_0x277a57;_0x194d25<_0x521d17;_0x194d25++)0x0==_0x4e6a44[_0x194d25]['side']&&(_0x4e6a44[_0x194d25]['level']=_0x49f7c4);_0x49f7c4=0x0;for(let _0x2d5083=_0x521d17-0x1;_0x2d5083>=_0xf7e2e2;_0x2d5083--)0x0==_0x4e6a44[_0x2d5083][_0x2022('0x52')]?_0x4e6a44[_0x2d5083][_0x2022('0x21')]=_0x49f7c4:(_0x49f7c4--,_0x4e6a44[_0x2d5083][_0x2022('0x21')]=_0x49f7c4,_0x49f7c4--);}}[_0x2022('0x114')](_0xbabd7e){const _0x47b58d=new Map(),_0x4f9bab=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xb2')];for(let _0x17b9df=0x1;_0x17b9df<_0xbabd7e[_0x2022('0x47')];_0x17b9df++){let _0xc39626,_0x58bf24,_0xf642bb;const _0x2e8a80=_0xbabd7e[_0x17b9df],_0x516655=_0xbabd7e[_0x17b9df-0x1];if(_0x2022('0x5d')==_0x2e8a80[_0x2022('0x108')])continue;if(_0x2e8a80['type']!=_0x516655[_0x2022('0x108')])continue;if(!_0x4f9bab[_0x2022('0x30')](_0x516655[_0x2022('0x5f')])||_0x4f9bab['isLimit'](_0x516655[_0x2022('0x5f')]))continue;if(!_0x4f9bab[_0x2022('0x30')](_0x2e8a80[_0x2022('0x5f')])||_0x4f9bab[_0x2022('0xc6')](_0x2e8a80[_0x2022('0x5f')]))continue;if((_0xbabd7e[_0x17b9df]['isAdded']||_0xbabd7e[_0x17b9df][_0x2022('0x4')])&&_0xbabd7e[_0x17b9df-0x1]['isRemoved'])_0xc39626=_0xbabd7e[_0x17b9df],_0x58bf24=_0xbabd7e[_0x17b9df-0x1],_0xf642bb=_0x17b9df-0x1;else{if(!_0xbabd7e[_0x17b9df][_0x2022('0x96')]||!_0xbabd7e[_0x17b9df-0x1][_0x2022('0x100')]&&!_0xbabd7e[_0x17b9df-0x1][_0x2022('0x4')])continue;_0xc39626=_0xbabd7e[_0x17b9df-0x1],_0x58bf24=_0xbabd7e[_0x17b9df],_0xf642bb=_0x17b9df;}const _0x3bc156=_0xc39626[_0x2022('0x21')]==_0x58bf24[_0x2022('0x21')],_0x5597bb=Math[_0x2022('0x7e')](_0xc39626[_0x2022('0x21')])<Math[_0x2022('0x7e')](_0x58bf24[_0x2022('0x21')])&&0x0==_0x58bf24[_0x2022('0x52')];(_0x3bc156||_0x5597bb)&&(_0x47b58d[_0x2022('0x112')](_0x58bf24['id'],_0xc39626['id']),_0xbabd7e[_0x2022('0x11a')](_0xf642bb,0x1),_0x17b9df--,_0xc39626[_0x2022('0x100')]=!0x1);}for(let _0x3a1266=0x0;_0x3a1266<_0xbabd7e[_0x2022('0x47')];_0x3a1266++)_0x47b58d[_0x2022('0x102')](_0xbabd7e[_0x3a1266][_0x2022('0x5b')])&&(_0xbabd7e[_0x3a1266]['pairId']=_0x47b58d[_0x2022('0xc8')](_0xbabd7e[_0x3a1266][_0x2022('0x5b')]));}[_0x2022('0xb8')](_0x1ec699){const _0xfc68b=new Set(_0x1ec699[_0x2022('0xd4')](_0x30cc2f=>_0x30cc2f['id']));for(let _0x109b37=0x0;_0x109b37<_0x1ec699['length'];_0x109b37++)_0xfc68b[_0x2022('0x102')](_0x1ec699[_0x109b37][_0x2022('0x5b')])||0x0==_0x1ec699[_0x109b37][_0x2022('0x52')]||(_0x1ec699[_0x109b37][_0x2022('0x81')]=!0x0);return _0x1ec699[_0x2022('0xa0')](_0x4486ea=>!_0x4486ea[_0x2022('0x81')]);}[_0x2022('0xbc')](_0x8cf395){const _0x1a6a02=new Set();for(let _0x199c10=0x0;_0x199c10<_0x8cf395[_0x2022('0x47')];_0x199c10++){if(_0x1a6a02['has'](_0x8cf395[_0x199c10]['id'])&&_0x8cf395[_0x199c10][_0x2022('0x96')]&&(_0x8cf395[_0x199c10]['isIncorrect']=!0x0),_0x8cf395[_0x199c10][_0x2022('0x81')])continue;if(0x0==_0x8cf395[_0x199c10][_0x2022('0x52')])continue;if('elementStart'!=_0x8cf395[_0x199c10][_0x2022('0x108')])continue;if(null==_0x8cf395[_0x199c10][_0x2022('0x5b')])continue;let _0xee37d5=_0x199c10+0x1,_0x4f0753=0x0;for(;_0x8cf395[_0xee37d5]['id']!=_0x8cf395[_0x199c10][_0x2022('0x5b')];)'elementStart'==_0x8cf395[_0xee37d5][_0x2022('0x108')]?_0x4f0753++:_0x2022('0x5c')==_0x8cf395[_0xee37d5][_0x2022('0x108')]&&_0x4f0753--,_0xee37d5++;if(0x0!=_0x4f0753){if(_0x8cf395[_0x199c10][_0x2022('0x96')])_0x8cf395[_0x199c10]['isIncorrect']=!0x0;else for(;_0xee37d5!=_0x199c10;)_0x8cf395[_0xee37d5][_0x2022('0x96')]&&0x0!=_0x8cf395[_0xee37d5][_0x2022('0x52')]&&(_0x8cf395[_0xee37d5][_0x2022('0x81')]=!0x0,_0x1a6a02[_0x2022('0x109')](_0x8cf395[_0xee37d5]['pairId'])),_0xee37d5--;}}return _0x8cf395[_0x2022('0xa0')](_0x1ad6f0=>!_0x1ad6f0['isIncorrect']);}[_0x2022('0x4d')](_0x3c6099){const _0x298e9c=this[_0x2022('0x63')][_0x2022('0xc3')]['schema'];for(let _0xb083d8=0x0;_0xb083d8<_0x3c6099[_0x2022('0x47')];_0xb083d8++){if(!(_0x3c6099[_0xb083d8][_0x2022('0x100')]||_0x3c6099[_0xb083d8][_0x2022('0x4')]||_0x3c6099[_0xb083d8][_0x2022('0x96')]||_0x3c6099[_0xb083d8][_0x2022('0xee')]))continue;if(0x0==_0x3c6099[_0xb083d8][_0x2022('0x52')])continue;const _0x29fd5b=_0x3c6099[_0xb083d8]['item'];_0x298e9c[_0x2022('0x30')](_0x29fd5b)||_0x298e9c[_0x2022('0xc6')](_0x29fd5b)||(_0x3c6099[_0xb083d8]['isAdded']&&delete _0x3c6099[_0xb083d8][_0x2022('0x100')],_0x3c6099[_0xb083d8][_0x2022('0x4')]&&delete _0x3c6099[_0xb083d8][_0x2022('0x4')],_0x3c6099[_0xb083d8][_0x2022('0xee')]&&delete _0x3c6099[_0xb083d8][_0x2022('0xee')],_0x3c6099[_0xb083d8][_0x2022('0x96')]&&(_0x3c6099[_0xb083d8][_0x2022('0x81')]=!0x0));}return _0x3c6099[_0x2022('0xa0')](_0x25c82a=>!_0x25c82a[_0x2022('0x81')]);}[_0x2022('0x8f')](_0x3e3acf,_0x1f410b,_0x40c9d6){const _0x23b2ca=new _0x197c08(),_0x300564=[],_0x242814=new Map(),_0x127d99=this[_0x2022('0x63')]['model'],_0x4236aa=_0x127d99[_0x2022('0xb2')],_0x145d73=[_0x23b2ca],_0x315cb2={},_0x59592b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x347733=null;const _0x117f33=[0x0];for(let _0x1aa575=0x0;_0x1aa575<_0x3e3acf['length'];_0x1aa575++){let _0x25b5e7,_0x21c44c;if(_0x2022('0x7d')===_0x3e3acf[_0x1aa575][_0x2022('0x108')]){_0x25b5e7=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33);const _0x33607d=new _0x479e62(_0x3e3acf[_0x1aa575]['item']['name'],_0x3e3acf[_0x1aa575][_0x2022('0x5f')][_0x2022('0x6')]());_0x145d73[0x0]['_appendChild'](_0x33607d),_0x117f33[_0x2022('0x10b')](0x0),_0x145d73[_0x2022('0x2a')](_0x33607d),_0x21c44c=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x347733=null;}else{if('elementEnd'===_0x3e3acf[_0x1aa575][_0x2022('0x108')])_0x145d73[_0x2022('0xf8')](),_0x25b5e7=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x117f33[_0x2022('0x31')](),_0x117f33[_0x117f33['length']-0x1]++,_0x21c44c=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x347733=null;else{if(_0x25b5e7=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x347733&&_0x4ea275(_0x347733,_0x3e3acf[_0x1aa575][_0x2022('0x5f')]))_0x347733[_0x2022('0x2')]+=_0x3e3acf[_0x1aa575][_0x2022('0x5f')]['data'];else{const _0x11062f=new _0x5fa407(_0x3e3acf[_0x1aa575]['item']['data'],_0x3e3acf[_0x1aa575][_0x2022('0x5f')][_0x2022('0x6')]());_0x145d73[0x0]['_appendChild'](_0x11062f),_0x347733=_0x11062f;}_0x117f33[_0x117f33[_0x2022('0x47')]-0x1]+=_0x3e3acf[_0x1aa575][_0x2022('0x5f')][_0x2022('0x120')],_0x21c44c=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33);}}for(const _0x3ec486 of _0x3e3acf[_0x1aa575][_0x2022('0xf5')])_0x242814['set'](_0x3ec486,{'start':_0x25b5e7,'end':null});_0xc07ad1(_0x2022('0xee'),_0x1aa575,_0x25b5e7,_0x21c44c),_0xc07ad1('isAddSuggestion',_0x1aa575,_0x25b5e7,_0x21c44c),_0xc07ad1(_0x2022('0x96'),_0x1aa575,_0x25b5e7,_0x21c44c),_0xc07ad1('isAdded',_0x1aa575,_0x25b5e7,_0x21c44c);for(const _0x55b576 of _0x3e3acf[_0x1aa575][_0x2022('0x0')]){_0x242814[_0x2022('0xc8')](_0x55b576)[_0x2022('0xef')]=_0x21c44c;}}for(const [_0x1684d7,_0x2a037d]of _0x242814){const _0x293a7d=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xab')](_0x2a037d[_0x2022('0xd8')],_0x2a037d[_0x2022('0xef')]);_0x23b2ca[_0x2022('0xc7')]['set'](_0x1684d7,_0x293a7d);}return _0x300564['sort']((_0x71b1f,_0x5de845)=>{const _0x57a181=_0x23b2ca[_0x2022('0xc7')][_0x2022('0xc8')]('revision:'+_0x71b1f['id']),_0x1b6c31=_0x23b2ca[_0x2022('0xc7')][_0x2022('0xc8')](_0x2022('0x6d')+_0x5de845['id']);return _0x57a181[_0x2022('0xd8')]['isBefore'](_0x1b6c31['start'])?-0x1:_0x57a181[_0x2022('0xd8')][_0x2022('0xac')](_0x1b6c31[_0x2022('0xd8')])?0x1:_0x57a181[_0x2022('0xef')]['isBefore'](_0x1b6c31[_0x2022('0xef')])?-0x1:_0x57a181[_0x2022('0xef')][_0x2022('0xac')](_0x1b6c31[_0x2022('0xef')])?0x1:_0x2022('0x109')===_0x71b1f[_0x2022('0x108')]?-0x1:0x1;}),{'root':_0x23b2ca,'changes':_0x300564};function _0xc07ad1(_0x1f9a7b,_0x30c82e,_0x3495ee,_0x5eea2e){const _0x1825b6=!!_0x3e3acf[_0x30c82e][_0x1f9a7b],_0x2ac324=_0x1825b6?_0x3e3acf[_0x30c82e][_0x1f9a7b][_0x2022('0xa7')]:null,_0x6d314c=_0x30c82e===_0x3e3acf[_0x2022('0x47')]-0x1,_0x46d0f6=_0x59592b[_0x1f9a7b][0x0],_0x1f14d4=_0x4236aa[_0x2022('0x9a')](_0x3e3acf[_0x30c82e][_0x2022('0x5f')]);!_0x315cb2[_0x1f9a7b]&&_0x1825b6?_0x315cb2[_0x1f9a7b]={'start':_0x3495ee,'tapeItem':_0x3e3acf[_0x30c82e],'userId':_0x2ac324,'type':_0x1f9a7b}:_0x315cb2[_0x1f9a7b]&&!_0x1825b6?(_0x315cb2[_0x1f9a7b][_0x2022('0xef')]=_0x3495ee,_0x487749(_0x315cb2[_0x1f9a7b]),_0x315cb2[_0x1f9a7b]=null):_0x315cb2[_0x1f9a7b]&&_0x1825b6&&_0x315cb2[_0x1f9a7b]['userId']!==_0x2ac324&&(_0x315cb2[_0x1f9a7b]['end']=_0x3495ee,_0x46d0f6&&_0x46d0f6[_0x2022('0xa7')]===_0x315cb2[_0x1f9a7b][_0x2022('0xa7')]||_0x487749(_0x315cb2[_0x1f9a7b]),_0x315cb2[_0x1f9a7b]={'start':_0x3495ee,'tapeItem':_0x3e3acf[_0x30c82e],'userId':_0x2ac324,'type':_0x1f9a7b}),_0x315cb2[_0x1f9a7b]&&_0x1f14d4&&(_0x2022('0x7d')!==_0x3e3acf[_0x30c82e][_0x2022('0x108')]||_0x46d0f6&&_0x46d0f6['userId']===_0x2ac324||_0x59592b[_0x1f9a7b][_0x2022('0x2a')]({'userId':_0x2ac324,'object':_0x3e3acf[_0x30c82e]['item'],'change':_0x315cb2[_0x1f9a7b]}),_0x2022('0x5c')===_0x3e3acf[_0x30c82e][_0x2022('0x108')]&&_0x46d0f6&&_0x46d0f6[_0x2022('0x77')]===_0x3e3acf[_0x30c82e][_0x2022('0x5f')]&&(_0x59592b[_0x1f9a7b][_0x2022('0xf8')](),_0x315cb2[_0x1f9a7b]=_0x46d0f6[_0x2022('0x86')])),_0x315cb2[_0x1f9a7b]&&_0x6d314c&&(_0x315cb2[_0x1f9a7b][_0x2022('0xef')]=_0x5eea2e,_0x487749(_0x315cb2[_0x1f9a7b]),_0x315cb2[_0x1f9a7b]=null);}function _0x487749({start:_0x418bc8,end:_0x14ae73,tapeItem:_0x1c8347,userId:_0xd1921a,type:_0xe765c6}){const _0x20bec9=_0x1c8347['item'],_0xd0f9b7=_0x127d99[_0x2022('0xb2')][_0x2022('0x30')](_0x20bec9)&&!_0x127d99[_0x2022('0xb2')][_0x2022('0xc6')](_0x20bec9),_0x41ffe9=_0x418bc8[_0x2022('0x3')]==_0x14ae73['parent']&&_0x14ae73[_0x2022('0x8b')];if(_0xd0f9b7&&_0x41ffe9)return;const _0x3393ee=_0x127d99[_0x2022('0xab')](_0x418bc8,_0x14ae73),_0x281179=_0x1f410b[_0x2022('0xc8')](_0xd1921a),_0x913b85=new _0x130e94({'author':_0x281179,'type':_0x2022('0x100')==_0xe765c6||_0x2022('0x4')==_0xe765c6?_0x2022('0x109'):_0x2022('0x5a'),'data':{'isSuggestion':_0x2022('0x4')==_0xe765c6||_0x2022('0xee')==_0xe765c6},'createdAt':new Date(),'rootName':_0x40c9d6});_0x300564[_0x2022('0x10b')](_0x913b85),_0x23b2ca[_0x2022('0xc7')][_0x2022('0x112')](_0x2022('0x6d')+_0x913b85['id'],_0x3393ee);}function _0x4ea275(_0x235d4c,_0x141f32){const _0x4aac81=_0x235d4c[_0x2022('0x6')](),_0x2118b7=_0x141f32[_0x2022('0x6')]();for(const _0x1569a0 of _0x4aac81){if(_0x1569a0[0x1]!==_0x141f32['getAttribute'](_0x1569a0[0x0]))return!0x1;_0x2118b7[_0x2022('0xda')]();}return _0x2118b7['next']()['done'];}}[_0x2022('0xf9')](){this[_0x2022('0x63')]['conversion'][_0x2022('0x16')](_0x2022('0x59'))['dataToMarker']({'view':_0x2022('0x92')}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('editingDowncast')[_0x2022('0x61')]({'model':_0x2022('0x92'),'view':_0x52f2fd=>{const _0x29a840=_0x52f2fd[_0x2022('0x4b')]['split'](':')[0x1],_0x36e783=this[_0x2022('0x3d')](_0x29a840);if(!_0x36e783)return null;const _0x283840=_0x2022('0x109')==_0x36e783[_0x2022('0x108')]?_0x2022('0xc9'):'deletion',_0x39ac31=['ck-suggestion-marker',_0x2022('0xfb')+_0x283840];return _0x36e783[_0x2022('0x32')][_0x2022('0xcb')]&&_0x39ac31[_0x2022('0x10b')]('ck-suggestion-marker-'+_0x283840+_0x2022('0x15')),this[_0x2022('0x1b')]==_0x36e783&&_0x39ac31['push'](_0x2022('0xc')),{'classes':_0x39ac31,'attributes':{'data-change-id':_0x29a840}};}}),this[_0x2022('0x63')][_0x2022('0xcd')]['for']('upcast')[_0x2022('0x109')](_0x3d1329=>{_0x3d1329['on'](_0x2022('0xe8'),(_0x4552bd,_0x627a19,_0x3b89b1)=>{const _0x44d098=_0x627a19['viewItem'][_0x2022('0xb6')](0x0);if(!_0x44d098||!_0x44d098['is'](_0x2022('0xa8'),'code'))return;if(!_0x3b89b1[_0x2022('0x95')][_0x2022('0xf0')](_0x44d098,{'attributes':[_0x2022('0xd7'),_0x2022('0x39')]}))return;const _0x1361e6=_0x627a19[_0x2022('0xc1')][_0x2022('0xd8')]['nodeAfter'];_0x3b89b1[_0x2022('0xdf')][_0x2022('0x18')](_0x2022('0xd7'),_0x44d098['getAttribute'](_0x2022('0xd7')),_0x1361e6),_0x3b89b1[_0x2022('0xdf')]['setAttribute']('vid_end',_0x44d098[_0x2022('0xf3')](_0x2022('0x39')),_0x1361e6);},{'priority':_0x2022('0xa9')});}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('upcast')['add'](_0x5d5ecb=>{_0x5d5ecb['on']('element',(_0x3aabd8,_0x4e51c9,_0x327369)=>{if(!_0x327369[_0x2022('0x95')][_0x2022('0xf0')](_0x4e51c9[_0x2022('0x22')],{'attributes':[_0x2022('0xd7'),'vid_end']}))return;if(_0x4e51c9[_0x2022('0xc1')][_0x2022('0xe6')])return;const _0x782940=_0x4e51c9[_0x2022('0xc1')][_0x2022('0xd8')]['nodeAfter'];_0x782940['hasAttribute'](_0x2022('0xd7'))||_0x782940[_0x2022('0xb4')](_0x2022('0x19'))||(_0x327369[_0x2022('0xdf')]['setAttribute'](_0x2022('0xd7'),_0x4e51c9['viewItem'][_0x2022('0xf3')](_0x2022('0xd7')),_0x782940),_0x327369[_0x2022('0xdf')][_0x2022('0x18')](_0x2022('0x39'),_0x4e51c9[_0x2022('0x22')][_0x2022('0xf3')]('vid_end'),_0x782940));},{'priority':_0x2022('0xa9')});}),this[_0x2022('0x63')]['conversion'][_0x2022('0x16')](_0x2022('0x59'))[_0x2022('0x2f')]({'view':{'name':_0x2022('0x94'),'attributes':{'vid':!0x0}},'model':{'key':_0x2022('0x19'),'value':_0x228b94=>_0x228b94[_0x2022('0xf3')](_0x2022('0x19'))}}),this[_0x2022('0x63')]['model']['schema']['on'](_0x2022('0x48'),(_0x2d84b8,[,_0x17526f])=>{[_0x2022('0xd7'),_0x2022('0x39'),_0x2022('0x19')][_0x2022('0x26')](_0x17526f)&&(_0x2d84b8[_0x2022('0x110')]=!0x0,_0x2d84b8[_0x2022('0xe5')]());},{'priority':_0x2022('0xa5')}),this[_0x2022('0x63')][_0x2022('0xcd')]['for'](_0x2022('0xba'))[_0x2022('0x109')](_0x5886d3=>{_0x5886d3['on'](_0x2022('0x105'),(_0x3d3009,_0xd9946e,_0x5267ea)=>{if('\x20'!=_0xd9946e[_0x2022('0x5f')][_0x2022('0x32')]||_0xd9946e[_0x2022('0x5f')]['parent'][_0x2022('0xb9')]>0x1)return;if(!_0x5267ea[_0x2022('0x95')]['consume'](_0xd9946e[_0x2022('0x5f')],_0x3d3009['name']))return;const _0x65238=_0x5267ea[_0x2022('0xdf')],_0x151324=_0x5267ea[_0x2022('0x6c')]['toViewRange'](_0xd9946e[_0x2022('0x6b')]);_0x65238[_0x2022('0x6f')](_0x151324,_0x65238[_0x2022('0x123')]('span'));});}),this[_0x2022('0x63')]['conversion'][_0x2022('0x16')](_0x2022('0xba'))[_0x2022('0xe3')]({'model':_0x2022('0x92')}),this[_0x2022('0x63')][_0x2022('0x9d')]['downcastDispatcher']['on']('addMarker:revision',function(_0x2cde7){const _0x4da292=_0x2cde7['plugins'][_0x2022('0xc8')](_0x2022('0x3e'));return(_0xb9399c,_0x8986d9,_0x17dc57)=>{const _0x11b036=_0x8986d9['markerName'][_0x2022('0xe1')](':')[0x1],_0x46f3c9=_0x4da292[_0x2022('0x3d')](_0x11b036);if(!_0x46f3c9)return null;const _0x4df02c=_0x2022('0x109')==_0x46f3c9[_0x2022('0x108')]?_0x2022('0xe1'):_0x2022('0x10f');if(!_0x17dc57[_0x2022('0x95')][_0x2022('0x85')](_0x8986d9['markerRange'],_0xb9399c[_0x2022('0xb3')]))return;const _0x18d3ba=_0x8986d9[_0x2022('0x87')][_0x2022('0xd9')](),_0x10b70c=_0x8986d9[_0x2022('0x87')][_0x2022('0xd8')],_0x14eef4=_0x2cde7[_0x2022('0xc3')][_0x2022('0xb2')];let _0x445f6d=null,_0x1027ef=null,_0x5759be=!0x1,_0x328a68=!0x1;for(const _0x541173 of _0x18d3ba){const _0x1036b5=_0x541173[_0x2022('0x5f')];_0x5759be=_0x5759be||_0x14eef4[_0x2022('0x50')](_0x1036b5);const _0x83a958=_0x17dc57['mapper'][_0x2022('0x40')](_0x1036b5);if(_0x83a958&&_0x83a958[_0x2022('0x104')]('addHighlight'))return;_0x2022('0x5c')==_0x541173[_0x2022('0x108')]&&(_0x14eef4[_0x2022('0x30')](_0x1036b5)&&!_0x14eef4[_0x2022('0xc6')](_0x1036b5)&&(_0x1036b5[_0x2022('0x121')]||_0x10b70c[_0x2022('0xf7')]?_0x445f6d&&_0x445f6d[_0x2022('0xd1')]==_0x1036b5||(_0x445f6d=_0x1036b5,_0x1b3f37(_0x541173[_0x2022('0x3a')]),_0x328a68=!0x0):_0x1027ef=_0x1027ef||_0x541173[_0x2022('0x3a')]));}function _0x1b3f37(_0x3b8ab0){const _0x64c73=_0x17dc57[_0x2022('0xdf')][_0x2022('0x5e')](_0x2022('0x94'),{'class':_0x2022('0xfb')+_0x4df02c}),_0x21d919=_0x17dc57[_0x2022('0x6c')][_0x2022('0x71')](_0x3b8ab0);_0x46f3c9[_0x2022('0x32')]['isSuggestion']&&_0x17dc57[_0x2022('0xdf')][_0x2022('0x14')]('ck-suggestion-marker-'+_0x4df02c+_0x2022('0x15'),_0x64c73),_0x4da292[_0x2022('0x1b')]==_0x46f3c9&&_0x17dc57[_0x2022('0xdf')][_0x2022('0x14')]('ck-suggestion-marker--active',_0x64c73),_0x17dc57[_0x2022('0xdf')][_0x2022('0x13')](_0x21d919,_0x64c73),_0x17dc57[_0x2022('0x6c')][_0x2022('0x46')](_0x64c73,_0x8986d9[_0x2022('0x4b')]);}_0x5759be||_0x328a68||!_0x1027ef||_0x1b3f37(_0x1027ef);};}(this[_0x2022('0x63')]),{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')]['editing'][_0x2022('0x37')]['on'](_0x2022('0x9c'),(_0x1d370c,_0xd2209e,_0x194f79)=>{const _0x1cb40f=_0x194f79[_0x2022('0x6c')][_0x2022('0xb0')](_0xd2209e[_0x2022('0x4b')]);if(_0x1cb40f)for(const _0x13ab47 of _0x1cb40f)(_0x13ab47[_0x2022('0x33')](_0x2022('0x7f'))||_0x13ab47[_0x2022('0x33')]('ck-suggestion-marker-merge'))&&(_0x194f79[_0x2022('0x6c')]['unbindElementFromMarkerName'](_0x13ab47,_0xd2209e['markerName']),_0x194f79[_0x2022('0xdf')][_0x2022('0x5a')](_0x13ab47));},{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0x9d')]['downcastDispatcher']['on'](_0x2022('0xa3'),(_0x7c49d0,_0x58e1d0,_0x2b4228)=>{const _0x168d97=_0x58e1d0['markerName'][_0x2022('0xe1')](':')[0x1],_0x144bc4=this[_0x2022('0x3d')](_0x168d97);if(!_0x144bc4)return null;const _0x159bca=_0x2022('0x109')==_0x144bc4[_0x2022('0x108')]?_0x2022('0xe1'):'merge';if(_0x2b4228[_0x2022('0x95')][_0x2022('0x85')](_0x58e1d0['markerRange'],_0x7c49d0[_0x2022('0xb3')]))for(const _0x2d86aa of _0x58e1d0['markerRange'][_0x2022('0x88')]()){if(!_0x2d86aa['is'](_0x2022('0xa8'),_0x2022('0x82')))continue;const _0x2402c8=_0x2b4228['writer'][_0x2022('0x5e')](_0x2022('0x94'),{'class':_0x2022('0xfb')+_0x159bca}),_0x534440=_0x2b4228[_0x2022('0x6c')][_0x2022('0x71')](this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x10c')](_0x2d86aa));_0x144bc4[_0x2022('0x32')][_0x2022('0xcb')]&&_0x2b4228[_0x2022('0xdf')][_0x2022('0x14')](_0x2022('0xfb')+_0x159bca+_0x2022('0x15'),_0x2402c8),this[_0x2022('0x1b')]==_0x144bc4&&_0x2b4228[_0x2022('0xdf')]['addClass'](_0x2022('0xc'),_0x2402c8),_0x2b4228[_0x2022('0xdf')][_0x2022('0x13')](_0x534440,_0x2402c8),_0x2b4228[_0x2022('0x6c')]['bindElementToMarker'](_0x2402c8,_0x58e1d0[_0x2022('0x4b')]);}},{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')]['on']('change',()=>{this[_0x2022('0x63')][_0x2022('0x9d')]['view'][_0x2022('0x86')](_0x5797ce=>{for(const _0x21d440 of this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0x98')]()){const _0x4b9dfa=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0xc5')](_0x21d440),_0x6a7e01=this['editor'][_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x9b')]['getRoot'](_0x21d440);if(_0x6a7e01){const _0x2a1bec=_0x4b9dfa['getAttribute'](_0x2022('0xfd'));if(_0x5797ce['removeAttribute'](_0x2022('0x17'),_0x6a7e01),_0x5797ce[_0x2022('0x76')](_0x2022('0x28'),_0x6a7e01),_0x5797ce[_0x2022('0x76')]('ck-revision-history-root-remove',_0x6a7e01),_0x5797ce[_0x2022('0x76')](_0x2022('0x3c'),_0x6a7e01),_0x2a1bec){const _0x3f75d3=this[_0x2022('0x3d')](_0x2a1bec);if(!_0x3f75d3)return null;_0x5797ce[_0x2022('0x18')](_0x2022('0x17'),_0x2a1bec,_0x6a7e01),_0x5797ce['addClass'](_0x2022('0x11f')+_0x3f75d3[_0x2022('0x108')],_0x6a7e01),this[_0x2022('0x1b')]==_0x3f75d3&&_0x5797ce[_0x2022('0x14')](_0x2022('0x3c'),_0x6a7e01);}}}});}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')](_0x2022('0x59'))[_0x2022('0x119')]({'view':'comment','model':_0xd12ed9=>_0x2022('0xeb')+_0xd12ed9,'converterPriority':'highest'}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('upcast')[_0x2022('0x119')]({'view':'suggestion','model':_0x3af11a=>_0x2022('0x38')+_0x3af11a,'converterPriority':_0x2022('0xa5')}),this[_0x2022('0x63')][_0x2022('0xcd')]['for']('dataDowncast')[_0x2022('0xe3')]({'model':'revision-suggestion','view':_0x510049=>({'name':'suggestion:'+_0x510049,'group':_0x2022('0xbe')}),'converterPriority':_0x2022('0xa5')}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('editingDowncast')[_0x2022('0x61')]({'model':_0x2022('0xbe'),'view':_0x14783b=>{const _0x1eaaba=_0x14783b['markerName'][_0x2022('0xe1')](':')[0x1];return _0x2022('0xc9')!=_0x1eaaba&&_0x2022('0x1a')!=_0x1eaaba?null:{'classes':[_0x2022('0x89'),_0x2022('0x44')+_0x1eaaba]};}}),this['editor'][_0x2022('0x9d')][_0x2022('0x37')]['on'](_0x2022('0x7a'),et(this[_0x2022('0x63')],_0x2022('0x10f')),{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0x37')]['on'](_0x2022('0x122'),et(this[_0x2022('0x63')],_0x2022('0xe1')),{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0x37')]['on'](_0x2022('0xd2'),(_0x3fa606,_0x2ab38a,_0x27dede)=>{const _0x4bc2da=_0x27dede[_0x2022('0x6c')][_0x2022('0xb0')](_0x2ab38a[_0x2022('0x4b')]);if(_0x4bc2da)for(const _0x39d22b of _0x4bc2da)_0x39d22b['is'](_0x2022('0x99'))&&(_0x27dede['mapper'][_0x2022('0x60')](_0x39d22b,_0x2ab38a[_0x2022('0x4b')]),_0x27dede[_0x2022('0xdf')][_0x2022('0x5a')](_0x39d22b));},{'priority':_0x2022('0xa2')});}[_0x2022('0x3d')](_0x3f2752){return this[_0x2022('0x43')][_0x2022('0xc8')](_0x3f2752);}[_0x2022('0x83')](_0x398f0d){return this[_0x2022('0x117')]&&this[_0x2022('0x117')]['destroy'](),this['_changeView']=new _0x1beb22(this['editor'][_0x2022('0xd6')],_0x398f0d),this[_0x2022('0x117')];}['_initInteractions'](){this['editor'][_0x2022('0xc3')][_0x2022('0x9b')]['selection'][_0x2022('0x24')](_0x2022('0x92')),this['on'](_0x2022('0x68'),(_0x54b171,_0x200d6f,_0x4abebb,_0x2869e7)=>{_0x2869e7&&this[_0x2022('0x70')][_0x2022('0x5a')](_0x2869e7),_0x4abebb&&(this[_0x2022('0x70')]['add']({'view':_0x4abebb,'stackId':_0x2022('0xa4'),'position':{'target':()=>{const _0x55ce82=this[_0x2022('0x63')][_0x2022('0x9d')],_0x1f2de6=this[_0x2022('0x3d')](_0x4abebb[_0x2022('0xf4')]);let _0x1d1859;if(_0x1f2de6[_0x2022('0x32')][_0x2022('0xd3')]){const _0x55ec03=_0x55ce82['view']['getDomRoot'](_0x1f2de6[_0x2022('0x3b')]);_0x1d1859=Array[_0x2022('0x4f')](_0x55ec03['getClientRects']());}else{const _0x5b7d74=this[_0x2022('0x63')][_0x2022('0xc3')]['markers'][_0x2022('0xc8')](_0x2022('0x6d')+_0x4abebb[_0x2022('0xf4')]);_0x1d1859=Array[_0x2022('0x4f')](_0x55ce82[_0x2022('0x6c')]['markerNameToElements'](_0x5b7d74[_0x2022('0xb3')]))[_0x2022('0xd4')](_0x48614c=>_0x55ce82[_0x2022('0xe2')]['domConverter'][_0x2022('0xfa')](_0x48614c))['map'](_0x13a81a=>Array[_0x2022('0x4f')](_0x13a81a[_0x2022('0xe0')]()))[_0x2022('0xdc')]();}if(!this[_0x2022('0x4a')])return _0x1d1859[0x0];return _0x1d1859['find'](_0x4575b6=>_0x4575b6[_0x2022('0xc2')]-0x3<=this[_0x2022('0x4a')]['y']&&_0x4575b6[_0x2022('0xe')]+0x3>=this[_0x2022('0x4a')]['y']&&_0x4575b6[_0x2022('0x23')]-0x3<=this[_0x2022('0x4a')]['x']&&_0x4575b6[_0x2022('0xb1')]+0x3>=this[_0x2022('0x4a')]['x'])||_0x1d1859[0x0];}}}),this[_0x2022('0x70')]['showStack'](_0x2022('0xa4')));}),this['on'](_0x2022('0x101'),(_0x3adf4a,_0x146452,_0x10b536,_0x23228f)=>{this['activeView']=_0x10b536?this[_0x2022('0x83')](_0x10b536):null,this[_0x2022('0x63')]['model'][_0x2022('0x86')](()=>{const _0x15bef5=this['editor'][_0x2022('0x9d')];_0x23228f&&(_0x23228f[_0x2022('0x32')][_0x2022('0xd3')]?_0x15bef5['view']['change'](_0x1297c9=>{_0x1297c9[_0x2022('0x76')](_0x2022('0x3c'),_0x15bef5['view'][_0x2022('0x9b')]['getRoot'](_0x23228f[_0x2022('0x3b')]));}):_0x15bef5[_0x2022('0x84')]('revision:'+_0x23228f['id'])),_0x10b536&&(_0x10b536[_0x2022('0x32')][_0x2022('0xd3')]?_0x15bef5['view'][_0x2022('0x86')](_0x40c289=>{_0x40c289[_0x2022('0x14')]('ck-revision-history-root--active',_0x15bef5[_0x2022('0xe2')][_0x2022('0x9b')]['getRoot'](_0x10b536[_0x2022('0x3b')]));}):_0x15bef5[_0x2022('0x84')](_0x2022('0x6d')+_0x10b536['id']));});}),this[_0x2022('0xae')](this['editor'][_0x2022('0x9d')]['view']['document'],_0x2022('0xea'),(_0x2b4d3b,_0x25f811)=>{if(this[_0x2022('0x1b')])return;const _0x52f5a8=this[_0x2022('0x2e')](_0x25f811[_0x2022('0x11b')]),_0x11d813=this[_0x2022('0x43')][_0x2022('0xc8')](_0x52f5a8);_0x11d813?(this[_0x2022('0x4a')]={'x':_0x25f811[_0x2022('0x10a')]['x'],'y':_0x25f811[_0x2022('0x10a')]['y']},this[_0x2022('0x103')]=this['_getViewForChange'](_0x11d813)):(this[_0x2022('0x4a')]=null,this[_0x2022('0x103')]=null);}),this[_0x2022('0xae')](this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x9b')],'mousedown',(_0x40129b,_0x3e9a78)=>{const _0x3f96a5=this[_0x2022('0x2e')](_0x3e9a78['target']),_0x421e9b=this['_changeIdToChange']['get'](_0x3f96a5);_0x421e9b?(this[_0x2022('0x4a')]={'x':_0x3e9a78[_0x2022('0x10a')]['x'],'y':_0x3e9a78[_0x2022('0x10a')]['y']},_0x421e9b===this[_0x2022('0x1b')]?this['_balloon'][_0x2022('0x1f')]():this[_0x2022('0x1b')]=_0x421e9b):(this[_0x2022('0x4a')]=null,this[_0x2022('0x1b')]=null);});}[_0x2022('0x2e')](_0x1d4699){do{const _0x1baa19=_0x1d4699['getAttribute'](_0x2022('0x17'));if(_0x1baa19)return _0x1baa19;_0x1d4699=_0x1d4699['parent'];}while(_0x1d4699);return null;}[_0x2022('0x10')](){this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x86')](_0x264906=>{for(const _0x467b4b of this['editor']['model'][_0x2022('0xc7')])_0x264906['removeMarker'](_0x467b4b);});}}function et(_0xdd5a9a,_0x4c66c9){return(_0x242300,_0x5f0041,_0x13a9d2)=>{if(!_0x13a9d2[_0x2022('0x95')][_0x2022('0x85')](_0x5f0041[_0x2022('0x87')],_0x242300[_0x2022('0xb3')]))return;const _0xf2a766=_0x5f0041[_0x2022('0x87')][_0x2022('0xd9')](),_0x3b3301=_0x5f0041[_0x2022('0x87')][_0x2022('0xd8')],_0x1cfc9a=_0xdd5a9a[_0x2022('0xc3')][_0x2022('0xb2')];let _0x33b74f=null,_0x17f63d=null,_0x2dc9ef=!0x1,_0x4bfa0b=!0x1;for(const _0x5108a0 of _0xf2a766){const _0x561a93=_0x5108a0[_0x2022('0x5f')];_0x2dc9ef=_0x2dc9ef||_0x1cfc9a['isContent'](_0x561a93);const _0x296da4=_0x13a9d2[_0x2022('0x6c')][_0x2022('0x40')](_0x561a93);if(_0x296da4&&_0x296da4['getCustomProperty']('addHighlight'))return;_0x2022('0x5c')==_0x5108a0['type']&&(_0x1cfc9a[_0x2022('0x30')](_0x561a93)&&!_0x1cfc9a['isLimit'](_0x561a93)&&(_0x561a93[_0x2022('0x121')]||_0x3b3301[_0x2022('0xf7')]?_0x33b74f&&_0x33b74f['parent']==_0x561a93||(_0x33b74f=_0x561a93,_0x339645(_0x5108a0['previousPosition']),_0x4bfa0b=!0x0):_0x17f63d=_0x17f63d||_0x5108a0[_0x2022('0x3a')]));}function _0x339645(_0x4c19d1){const _0x4a1852=_0x13a9d2[_0x2022('0x6c')]['toViewPosition'](_0x4c19d1),_0x14a716=_0x13a9d2[_0x2022('0xdf')][_0x2022('0x5e')](_0x2022('0x94'),{'class':_0x2022('0x44')+_0x4c66c9});_0x13a9d2[_0x2022('0xdf')]['insert'](_0x4a1852,_0x14a716),_0x13a9d2['mapper'][_0x2022('0x46')](_0x14a716,_0x5f0041[_0x2022('0x4b')]);}_0x2dc9ef||_0x4bfa0b||!_0x17f63d||_0x339645(_0x17f63d);};}export class RestoreRevisionCommand extends _0x356bbb{constructor(_0x43147c){super(_0x43147c);const _0x1217df=_0x43147c['plugins'][_0x2022('0xc8')](d);this[_0x2022('0x118')]=!0x1,this['listenTo'](_0x1217df,_0x2022('0xc4'),()=>this[_0x2022('0x91')]()),this[_0x2022('0xae')](_0x1217df,_0x2022('0x49'),()=>this[_0x2022('0x91')]());}['execute'](){const _0x3c66ab=this[_0x2022('0x63')],_0x26f447=_0x3c66ab[_0x2022('0xad')][_0x2022('0xc8')](d),_0x1ee7cd=_0x26f447[_0x2022('0xf2')]?_0x26f447[_0x2022('0x1d')][_0x2022('0xd5')]:null;_0x3c66ab[_0x2022('0x1')][_0x2022('0xc8')]('revisionHistory')['restoreRevisionCallback'](_0x1ee7cd);}[_0x2022('0x91')](){const {isReady:_0x3b493f,isEnabled:_0x1949da}=this['editor'][_0x2022('0xad')][_0x2022('0xc8')](d);this[_0x2022('0x111')]=_0x3b493f&&_0x1949da;}}export class ShowChangeCommand extends _0x356bbb{constructor(_0xb37ca8,{direction:_0x5ee352}){super(_0xb37ca8);const _0x43d360=_0xb37ca8[_0x2022('0xad')][_0x2022('0xc8')](d);this[_0x2022('0x118')]=!0x1,this[_0x2022('0x93')]=_0x2022('0xf6')===_0x5ee352?0x1:-0x1,this[_0x2022('0xae')](_0x43d360,_0x2022('0xc4'),()=>this['refresh']()),this['listenTo'](_0x43d360,'change:isEnabled',()=>this[_0x2022('0x91')]()),this[_0x2022('0xae')](_0x43d360,_0x2022('0x101'),()=>this[_0x2022('0x91')]());}[_0x2022('0xd')](){const _0x1d3358=this[_0x2022('0x63')],_0x189b72=_0x1d3358[_0x2022('0xad')][_0x2022('0xc8')](d),{isNavigationMode:_0x3a93e0,currentChangeNumber:_0x1a35a}=_0x189b72;let _0x8e3ba0;if(_0x189b72[_0x2022('0x1b')]=_0x3a93e0?_0x189b72[_0x2022('0x1d')][_0x2022('0x113')][_0x2022('0xc8')](_0x1a35a+this['_step']):_0x189b72['diff'][_0x2022('0x113')][_0x2022('0x2d')],_0x189b72[_0x2022('0x1b')][_0x2022('0x32')][_0x2022('0xd3')])_0x8e3ba0=_0x1d3358[_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x8a')](_0x189b72[_0x2022('0x1b')][_0x2022('0x3b')]);else{const _0x17f3eb=_0x1d3358[_0x2022('0xc3')][_0x2022('0xc7')]['get']('revision:'+_0x189b72['activeChange']['id']);_0x8e3ba0=_0x842571(_0x1d3358[_0x2022('0x9d')],_0x17f3eb);}_0x5ce67b({'target':_0x8e3ba0,'viewportOffset':0x28});}[_0x2022('0x91')](){const {isNavigationMode:_0x1045f2,currentChangeNumber:_0x2453a2,numberOfChanges:_0x1cd02a,isReady:_0x231c67,isEnabled:_0x5e144c}=this['editor'][_0x2022('0xad')]['get'](d);this['isEnabled']=!!(_0x5e144c&&_0x231c67&&_0x1cd02a)&&(!_0x1045f2||(0x1===this['_step']?_0x2453a2<_0x1cd02a-0x1:_0x2453a2>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cf5=['Name\x20this\x20revision','isVisible','name','isActionsDropdownOpen','source','items','bind','ck-on','isEnabled','Restore\x20this\x20revision','execute','first','function','ck-revision-history-sidebar__revision__actions','isOpen','change:isActionsDropdownOpen','extendTemplate','stopPropagation','children','add','action','bindTemplate','_action','locale','Show\x20more\x20items'];(function(_0x2fefd3,_0x4cf5f2){const _0x23557f=function(_0x4659ce){while(--_0x4659ce){_0x2fefd3['push'](_0x2fefd3['shift']());}};_0x23557f(++_0x4cf5f2);}(_0x4cf5,0x70));const _0x2355=function(_0x2fefd3,_0x4cf5f2){_0x2fefd3=_0x2fefd3-0x0;let _0x23557f=_0x4cf5[_0x2fefd3];return _0x23557f;};import{Collection as _0x6aa23d}from'ckeditor5/src/utils';import{icons as _0x1ab18c}from'ckeditor5/src/core';import{Model as _0xd64452,addListToDropdown as _0x4dc229,createDropdown as _0x40fcf4}from'ckeditor5/src/ui';import{getTranslation as _0x20178b}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x42e5bd,_0x53ac98){const _0x1acadf=_0x42e5bd[_0x2355('0x9')],_0x32d368=_0x42e5bd[_0x2355('0xb')],_0x40d4ca=_0x40fcf4(_0x32d368);_0x40d4ca['panelPosition']='sw';const _0x5b11f2=function(_0xd842aa,_0x200800){const _0x56d9fd=function(_0xe72b72,_0x1b2eff){const _0x20e3ef=_0xe72b72[_0x2355('0xb')],_0x5dde1e={'Compare\x20against\x20selected':_0x20178b(_0x20e3ef,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x20178b(_0x20e3ef,_0x2355('0xd')),'Restore\x20this\x20revision':_0x20178b(_0x20e3ef,_0x2355('0x16'))};return _0x1b2eff['map'](_0x9cf2cc=>{const _0x3cf0af=_0x5dde1e[_0x9cf2cc['name']];return _0x3cf0af&&_0x3cf0af!==_0x9cf2cc[_0x2355('0xf')]&&(_0x9cf2cc[_0x2355('0xf')]=_0x3cf0af),_0x9cf2cc;});}(_0xd842aa,_0x200800),_0x4bc598=new _0x6aa23d();for(const _0x53c0e0 of _0x56d9fd){const _0x2a4cbe={'type':'button','model':new _0xd64452({'label':_0x53c0e0['name'],'class':_0x53c0e0['class'],'withText':!0x0,'_action':_0x53c0e0['action']})};_0x2a4cbe['model'][_0x2355('0x13')](_0x2355('0x15'))['to'](_0xd842aa,_0x2355('0x10'),_0x2544dd=>_0x2355('0x0')!=typeof _0x53c0e0['isEnabled']||(!_0x2544dd||_0x53c0e0[_0x2355('0x15')](_0xd842aa))),_0x4bc598[_0x2355('0x7')](_0x2a4cbe);}return _0x4bc598;}(_0x42e5bd,_0x53ac98);return _0x42e5bd[_0x2355('0x13')](_0x2355('0x10'))['to'](_0x40d4ca,_0x2355('0x2')),_0x40d4ca['buttonView']['set']({'label':_0x20178b(_0x32d368,_0x2355('0xc')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ab18c['threeVerticalDots']}),_0x40d4ca[_0x2355('0x4')]({'attributes':{'class':[_0x2355('0x1'),_0x1acadf['if'](_0x2355('0x10'),_0x2355('0x14'))]},'on':{'click':_0x1acadf['to'](_0xdb0b61=>_0xdb0b61[_0x2355('0x5')]())}}),_0x40d4ca['on'](_0x2355('0x17'),_0x3254a7=>{_0x42e5bd['isReady']&&'function'==typeof _0x3254a7['source'][_0x2355('0xa')]&&_0x3254a7[_0x2355('0x11')]['_action'](_0x42e5bd);}),_0x4dc229(_0x40d4ca,_0x5b11f2),_0x40d4ca['listenTo'](_0x42e5bd,_0x2355('0x3'),(_0x100ba6,_0x541c21,_0x34f649)=>{if(_0x34f649)for(const _0x27dee5 of _0x40d4ca['listView'][_0x2355('0x12')]){const _0x449a17=_0x27dee5[_0x2355('0x6')][_0x2355('0x18')],_0x57fc52=_0x53ac98['find'](_0x35059b=>_0x35059b[_0x2355('0x8')]===_0x449a17['_action'])[_0x2355('0xe')];_0x27dee5[_0x2355('0xe')]=void 0x0===_0x57fc52||_0x57fc52(_0x42e5bd);}}),_0x40d4ca;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a98=['Revision\x20creator','ck-revision-history-sidebar__revision-author__name','set','setTemplate','name','push','span','ck-revision-history-sidebar__revision-author_creator','Revision\x20author','0\x200\x2011\x2010'];(function(_0x1449e6,_0x2a989b){const _0x23c840=function(_0x136228){while(--_0x136228){_0x1449e6['push'](_0x1449e6['shift']());}};_0x23c840(++_0x2a989b);}(_0x2a98,0xb9));const _0x23c8=function(_0x1449e6,_0x2a989b){_0x1449e6=_0x1449e6-0x0;let _0x23c840=_0x2a98[_0x1449e6];return _0x23c840;};import{View as _0x2b4ae8,IconView as _0x312638}from'ckeditor5/src/ui';import{getTranslation as _0x15aba6}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x235a1e from'../../../theme/icons/user.svg';export default class ti extends _0x2b4ae8{constructor(_0x417c94,_0x3b7a95,_0x1e2fc6){super(_0x417c94);const _0x519f92=new _0x312638();_0x519f92[_0x23c8('0x7')]({'content':_0x235a1e,'viewBox':_0x23c8('0x4')});const _0x188d28=['ck','ck-revision-history-sidebar__revision-author'];_0x1e2fc6&&_0x188d28[_0x23c8('0x0')](_0x23c8('0x2'));const _0xe402dc=[{'tag':_0x23c8('0x1'),'attributes':{'class':['ck',_0x23c8('0x6')],'title':_0x15aba6(_0x417c94,_0x1e2fc6?_0x23c8('0x5'):_0x23c8('0x3'))},'children':[_0x519f92,_0x3b7a95[_0x23c8('0x9')]]}];this[_0x23c8('0x8')]({'tag':'li','attributes':{'class':_0x188d28},'children':_0xe402dc});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x22d4=['Revision\x20name','ck-revision-history-sidebar__revision-name','extendTemplate','span'];(function(_0x4eccc7,_0x22d40c){var _0x14027c=function(_0x40c550){while(--_0x40c550){_0x4eccc7['push'](_0x4eccc7['shift']());}};_0x14027c(++_0x22d40c);}(_0x22d4,0x1af));var _0x1402=function(_0x4eccc7,_0x22d40c){_0x4eccc7=_0x4eccc7-0x0;var _0x14027c=_0x22d4[_0x4eccc7];return _0x14027c;};import{LabeledFieldView as _0x15ba9b}from'ckeditor5/src/ui';import{getTranslation as _0x1ffaa5}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x15ba9b{constructor(_0x4745b2,_0x5722f2){super(_0x4745b2,_0x5722f2),this['set']({'label':_0x1ffaa5(_0x4745b2,_0x1402('0x1'))}),this[_0x1402('0x3')]({'tag':_0x1402('0x0'),'attributes':{'class':[_0x1402('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45fe=['ck-disabled','bind','isEnabled','div','srcElement','extendTemplate','ck-reset','listenTo','fieldView','value','ck-revision-history-sidebar__actions_dropdown_open','fire','isActionsDropdownOpen','ck-revision-history-sidebar__revision__date','span','isSelected','ck-revision-history-sidebar__revision_selected','setTemplate','bindTemplate','set','render','unshift','select','authors','ck-revision-history-sidebar__revision_highlighted','deselect','length','closest','placeholder','setName','_revision','element','revisionActionsView','ck-revision-history-sidebar__revision-authors','revisionNameView','.ck-thread__remove-confirm','isConfirm','isReady','_createdAtFormatted','creator','ck-revision-history-sidebar__revision__controls-wrapper','isHighlighted','map','220','name','createdAt','from','unhighlight'];(function(_0x106028,_0x45fe57){const _0x138905=function(_0x259b10){while(--_0x259b10){_0x106028['push'](_0x106028['shift']());}};_0x138905(++_0x45fe57);}(_0x45fe,0xa8));const _0x1389=function(_0x106028,_0x45fe57){_0x106028=_0x106028-0x0;let _0x138905=_0x45fe[_0x106028];return _0x138905;};import{View as _0x2fd9ba,createLabeledInputText as _0x40b507}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4a79d3}from'ckeditor5-collaboration/src/collaboration-core';import _0x4c3411 from'./revisionnameview';import _0xc4b4d3 from'./revisionauthorview';import{dateToPrettyFormat as _0x3bc51f}from'./utils';import{createActionsDropdownView as _0x329c2b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4a79d3(_0x2fd9ba){constructor(_0xd67df,_0xe756d8,_0x1542f4){super(_0xd67df);const _0x16f5e9=this[_0x1389('0x2a')],_0x32771c=function(_0x33ae45,_0x544e90){const _0x37d9c7=Array[_0x1389('0x16')](_0x544e90[_0x1389('0x2f')])['filter'](_0x2bd435=>_0x2bd435!=_0x544e90[_0x1389('0xf')]);return _0x544e90[_0x1389('0xf')]&&_0x37d9c7[_0x1389('0x2d')](_0x544e90[_0x1389('0xf')]),_0x37d9c7[_0x1389('0x12')](_0x5ed717=>new _0xc4b4d3(_0x33ae45,_0x5ed717,_0x5ed717==_0x544e90[_0x1389('0xf')]));}(_0xd67df,_0xe756d8);this['id']=_0xe756d8['id'],this[_0x1389('0x6')]=_0xe756d8,this[_0x1389('0x19')](_0x1389('0x14'),_0x1389('0x15'))['to'](_0xe756d8),this[_0x1389('0x19')](_0x1389('0xe'))['to'](this,_0x1389('0x15'),_0x31b363=>_0x31b363?_0x3bc51f(_0xd67df['uiLanguage'],_0x31b363):void 0x0),this[_0x1389('0x2b')](_0x1389('0x27'),!0x1),this[_0x1389('0x2b')](_0x1389('0x11'),!0x1),this[_0x1389('0x2b')](_0x1389('0x24'),!0x1),this[_0x1389('0x2b')](_0x1389('0xd'),!0x1),this[_0x1389('0x2b')](_0x1389('0x1a'),!0x1),this['revisionNameView']=new _0x4c3411(_0xd67df,_0x40b507),this['revisionNameView'][_0x1389('0x20')][_0x1389('0x1d')]({'attributes':{'maxlength':_0x1389('0x13')}}),this[_0x1389('0xa')][_0x1389('0x20')]['bind'](_0x1389('0x21'),_0x1389('0x4'))['to'](this,_0x1389('0x14'),_0x1389('0xe')),this[_0x1389('0xa')][_0x1389('0x19')](_0x1389('0x1a'))['to'](this,_0x1389('0x27'),this,'isEnabled',(_0x52d722,_0x31cc2f)=>_0x52d722&&_0x31cc2f),this['revisionActionsView']=_0x1542f4&&_0x1542f4[_0x1389('0x2')]?_0x329c2b(this,_0x1542f4):'',this['revisionActionsView']&&this[_0x1389('0x8')][_0x1389('0x19')](_0x1389('0x1a'))['to'](this),this[_0x1389('0x29')]({'tag':_0x1389('0x1b'),'attributes':{'class':['ck',_0x1389('0x1e'),'ck-revision-history-sidebar__revision-wrapper',_0x16f5e9['if'](_0x1389('0xc'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x1389('0x1b'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x16f5e9['if'](_0x1389('0x1a'),_0x1389('0x18'),_0x357adc=>!_0x357adc),_0x16f5e9['if']('isSelected',_0x1389('0x28')),_0x16f5e9['if'](_0x1389('0x11'),_0x1389('0x0')),_0x16f5e9['if']('isActionsDropdownOpen',_0x1389('0x22'))]},'children':[this[_0x1389('0xa')],{'tag':_0x1389('0x26'),'attributes':{'class':['ck',_0x1389('0x25')]},'children':[{'text':_0x16f5e9['to'](_0x1389('0xe'))}]},{'tag':'div','attributes':{'class':['ck',_0x1389('0x10')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1389('0x9')]},'children':_0x32771c}]},this[_0x1389('0x8')]],'on':{'click':_0x16f5e9['to'](_0x5e353c=>{_0x5e353c[_0x1389('0x1c')][_0x1389('0x3')](_0x1389('0xb'))||this[_0x1389('0xd')]&&this[_0x1389('0x1a')]&&this[_0x1389('0x23')](_0x1389('0x2e'),{'id':this['id']});})}}]});}[_0x1389('0x2c')](){super[_0x1389('0x2c')]();const _0xd5c0bf=this[_0x1389('0xa')]['fieldView'][_0x1389('0x7')];this[_0x1389('0x1f')](_0xd5c0bf,'change',()=>{this[_0x1389('0x23')](_0x1389('0x5'),{'id':this['id'],'name':_0xd5c0bf[_0x1389('0x21')]});});}[_0x1389('0x2e')](){this[_0x1389('0x27')]=!0x0;}[_0x1389('0x1')](){this['isSelected']=!0x1;}['highlight'](){this[_0x1389('0x11')]=!0x0;}[_0x1389('0x17')](){this[_0x1389('0x11')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ec6=['false','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','bindTemplate','click','toggle','isVisible','set','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner','button'];(function(_0x299d4d,_0x4ec6a9){const _0xbf3a71=function(_0x136960){while(--_0x136960){_0x299d4d['push'](_0x299d4d['shift']());}};_0xbf3a71(++_0x4ec6a9);}(_0x4ec6,0x112));const _0xbf3a=function(_0x299d4d,_0x4ec6a9){_0x299d4d=_0x299d4d-0x0;let _0xbf3a71=_0x4ec6[_0x299d4d];return _0xbf3a71;};import{View as _0x3c54ed}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x3c54ed{constructor(_0x39befb){super(_0x39befb);const _0x50ba65=this[_0xbf3a('0x4')];this[_0xbf3a('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0xbf3a('0x2'),_0x50ba65['if'](_0xbf3a('0x7'),'ck-hidden',_0x12ba0c=>!_0x12ba0c),_0x50ba65['if'](_0xbf3a('0x3'),_0xbf3a('0x9'))],'role':_0xbf3a('0x0'),'aria-pressed':_0x50ba65['to'](_0xbf3a('0x3'),_0x48e443=>_0x48e443?_0xbf3a('0x1'):'true')},'children':[{'tag':'span','attributes':{'class':['ck',_0xbf3a('0xa')]}}],'on':{'click':_0x50ba65['to'](_0xbf3a('0x5'))}});}[_0xbf3a('0x6')](){this[_0xbf3a('0x3')]=!this[_0xbf3a('0x3')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5cec=['set','isSelected','select','bindTemplate','deselect','ck-revision-history-sidebar__revision-authors','bind','span','ck-revision-history-sidebar__revision__date','createdAt','creator','_createdAtFormatted','_parentRevisionId','ck-revision-history-sidebar__subrevision'];(function(_0x2ebcaf,_0x5cec9b){const _0x481313=function(_0xb86c56){while(--_0xb86c56){_0x2ebcaf['push'](_0x2ebcaf['shift']());}};_0x481313(++_0x5cec9b);}(_0x5cec,0x128));const _0x4813=function(_0x2ebcaf,_0x5cec9b){_0x2ebcaf=_0x2ebcaf-0x0;let _0x481313=_0x5cec[_0x2ebcaf];return _0x481313;};import{View as _0x218561}from'ckeditor5/src/ui';import _0x139844 from'./revisionauthorview';import{dateToPrettyFormat as _0xb17c46}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x218561{constructor(_0x30ad5f,_0xe94ec0,_0x1d4393){super(_0x30ad5f);const _0x1d1713=this[_0x4813('0x1')];this['id']=_0xe94ec0['id'],this[_0x4813('0x4')](_0x4813('0x7'))['to'](_0xe94ec0),this[_0x4813('0xc')](_0x4813('0xd'),!0x1),this[_0x4813('0x4')](_0x4813('0x9'))['to'](this,_0x4813('0x7'),_0x289a5d=>_0x289a5d?_0xb17c46(_0x30ad5f['uiLanguage'],_0x289a5d):void 0x0),this[_0x4813('0xa')]=_0x1d4393,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4813('0xb'),_0x1d1713['if'](_0x4813('0xd'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x4813('0x5'),'attributes':{'class':['ck',_0x4813('0x6')]},'children':[{'text':_0x1d1713['to'](_0x4813('0x9'))}]},{'tag':'ul','attributes':{'class':['ck',_0x4813('0x3')]},'children':[new _0x139844(_0x30ad5f,_0xe94ec0[_0x4813('0x8')],!0x0)]}],'on':{'click':_0x1d1713['to'](this['select'][_0x4813('0x4')](this))}});}['select'](){this['isSelected']=!0x0,this['fire'](_0x4813('0x0'),{'parentId':this['_parentRevisionId']});}[_0x4813('0x2')](){this[_0x4813('0xd')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2694=['numeric','toLocaleDateString','toLocaleTimeString','long'];(function(_0x19e0ba,_0x26948f){var _0x5c6de8=function(_0x59d47a){while(--_0x59d47a){_0x19e0ba['push'](_0x19e0ba['shift']());}};_0x5c6de8(++_0x26948f);}(_0x2694,0xd0));var _0x5c6d=function(_0x19e0ba,_0x26948f){_0x19e0ba=_0x19e0ba-0x0;var _0x5c6de8=_0x2694[_0x19e0ba];return _0x5c6de8;};export function dateToPrettyFormat(_0x234446,_0x14dfd6){return _0x14dfd6[_0x5c6d('0x1')](_0x234446,{'month':_0x5c6d('0x3'),'day':'numeric'})+',\x20'+_0x14dfd6[_0x5c6d('0x2')](_0x234446,{'hour':_0x5c6d('0x0'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x139c=['element','tab','execute','value','ck-revision-history-save-revision-form','shift\x20+\x20tab','check','add','cancelButtonView','set','focusTracker','revisionName','trim','revisionNameInputView','setTemplate','forEach','cancel','keystrokes','Cancel','saveButtonView','fieldView','locale','render','label','reset','listenTo','ck-responsive-form','_focusCycler','ck-button-cancel','_focusables','submit','extendTemplate','220','_createButton','arrowleft','arrowright','revisionNameInputValue','focusFirst','arrowdown','arrowup','focus'];(function(_0x2e8147,_0x139c15){const _0x13867e=function(_0x132777){while(--_0x132777){_0x2e8147['push'](_0x2e8147['shift']());}};_0x13867e(++_0x139c15);}(_0x139c,0x127));const _0x1386=function(_0x2e8147,_0x139c15){_0x2e8147=_0x2e8147-0x0;let _0x13867e=_0x139c[_0x2e8147];return _0x13867e;};import{icons as _0x960af1}from'ckeditor5/src/core';import{ButtonView as _0x41d5ee,FocusCycler as _0x539798,LabeledFieldView as _0x24cc26,View as _0x2f5ad2,ViewCollection as _0x46dca3,createLabeledInputText as _0x537c5f,injectCssTransitionDisabler as _0x514e28,submitHandler as _0x801fdc}from'ckeditor5/src/ui';import{FocusTracker as _0x5ecded,KeystrokeHandler as _0x399290}from'ckeditor5/src/utils';import{getTranslation as _0x5ba461}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2f5ad2{constructor(_0x311a90){super(_0x311a90),this['focusTracker']=new _0x5ecded(),this['keystrokes']=new _0x399290(),this['set'](_0x1386('0x1c'),''),this[_0x1386('0x5')]=this['_createRevisionNameInput'](),this[_0x1386('0xb')]=this[_0x1386('0x19')](_0x5ba461(_0x311a90,'Save'),_0x960af1[_0x1386('0x27')],'ck-button-save'),this[_0x1386('0xb')]['type']=_0x1386('0x16'),this[_0x1386('0x0')]=this[_0x1386('0x19')](_0x5ba461(_0x311a90,_0x1386('0xa')),_0x960af1[_0x1386('0x8')],_0x1386('0x14'),'cancel'),this[_0x1386('0x15')]=new _0x46dca3(),this['_focusCycler']=new _0x539798({'focusables':this[_0x1386('0x15')],'focusTracker':this[_0x1386('0x2')],'keystrokeHandler':this[_0x1386('0x9')],'actions':{'focusPrevious':_0x1386('0x26'),'focusNext':_0x1386('0x22')}}),this[_0x1386('0x6')]({'tag':'form','attributes':{'class':['ck',_0x1386('0x25'),_0x1386('0x12')],'tabindex':'-1'},'children':[this[_0x1386('0x5')],this[_0x1386('0xb')],this['cancelButtonView']]}),_0x514e28(this);}[_0x1386('0xe')](){super[_0x1386('0xe')](),_0x801fdc({'view':this}),([this[_0x1386('0x5')],this['saveButtonView'],this[_0x1386('0x0')]][_0x1386('0x7')](_0x5c1b44=>{this['_focusables'][_0x1386('0x28')](_0x5c1b44),this[_0x1386('0x2')][_0x1386('0x28')](_0x5c1b44[_0x1386('0x21')]);}),this[_0x1386('0x9')][_0x1386('0x11')](this[_0x1386('0x21')]));const _0x3ec1e5=_0x4f1227=>_0x4f1227['stopPropagation']();this[_0x1386('0x9')][_0x1386('0x1')](_0x1386('0x1b'),_0x3ec1e5),this[_0x1386('0x9')]['set'](_0x1386('0x1a'),_0x3ec1e5),this[_0x1386('0x9')]['set'](_0x1386('0x1f'),_0x3ec1e5),this[_0x1386('0x9')][_0x1386('0x1')](_0x1386('0x1e'),_0x3ec1e5);}[_0x1386('0x20')](){this[_0x1386('0x13')][_0x1386('0x1d')]();}get['revisionName'](){return this[_0x1386('0x5')][_0x1386('0xc')]['element'][_0x1386('0x24')][_0x1386('0x4')]();}set[_0x1386('0x3')](_0x4995c5){this[_0x1386('0x5')][_0x1386('0xc')][_0x1386('0x21')]['value']=_0x4995c5[_0x1386('0x4')]();}[_0x1386('0x10')](){this[_0x1386('0x5')][_0x1386('0xc')][_0x1386('0x21')]['value']='';}['_createRevisionNameInput'](){const _0x4475ed=new _0x24cc26(this[_0x1386('0xd')],_0x537c5f),_0x40a6c9=_0x4475ed['fieldView'];return _0x40a6c9[_0x1386('0x17')]({'attributes':{'maxlength':_0x1386('0x18')}}),_0x4475ed[_0x1386('0xf')]=_0x5ba461(this[_0x1386('0xd')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x40a6c9['on']('input',()=>{this['revisionNameInputValue']=_0x40a6c9[_0x1386('0x21')][_0x1386('0x24')][_0x1386('0x4')]();}),_0x4475ed;}[_0x1386('0x19')](_0x336099,_0x4c217f,_0x40cbb6,_0x5c2b85){const _0x2fee4f=new _0x41d5ee(this['locale']);return _0x2fee4f[_0x1386('0x1')]({'label':_0x336099,'icon':_0x4c217f,'tooltip':!0x0}),_0x2fee4f[_0x1386('0x17')]({'attributes':{'class':_0x40cbb6}}),_0x5c2b85&&_0x2fee4f['delegate'](_0x1386('0x23'))['to'](this,_0x5c2b85),_0x2fee4f;}}
|