@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231023.0 → 0.0.0-nightly-20231025.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 _0x4b12=['downcastDispatcher','diff','revision-suggestion','first','mapper','isSuggestion','editingDowncast','schema','_processTape','set','isRemoved','name','_step','all','changes','clear','isBefore','createRangeIn','upcast','destroy','addRevisionData','ck-revision-history-root-','ck-suggestion-marker-split','activeView','RevisionViewer','createUIElement','markers','_getViewForChange','text','_sortAndFilterDiffChanges','getRevision','writer','_findChangeIdFromDomTarget','bottom','_getChangeFromId','toData','has','for','type','elementEnd','removeMarker:revision-suggestion','POSITIVE_INFINITY','isAttached','_balloon','_markMarkers','hasAttribute','concat','dataToMarker','test','_markMismatchedRemovedTags','backward','getCustomProperty','reconvertMarker','get','_getRevisionsRange','findIndex','deletion','repository','domEvent','isAtStart','ck-revision-history-root-add','string','keys','getRoot','data-revision-','comment','done','isCollapsed','setAttribute','split','hasClass','processor','_makeModelFromViewString','listenTo','startsWith','markerNameToElements','_markInsertions','_setConversion','newRevisionId','createPositionFromPath','add','revision-end','dataDowncast','change:isEnabled','bind','indexOf','consume','ck-suggestion-marker-','shift','_fixObsoleteTags','isIncorrect','attribute:vid','_removeRevisionMarkers','editor','detachRoot','showStack','vid','unbindElementFromMarkerName','change:numberOfChanges','isAtEnd','rootName','bindElementToMarker','getRevisionRootsAttributes','isEnabled','revision-viewer','abs','revisionHistoryLabel','updatePosition','unshift','index','diffData','softBreak','values','range','merge','numberOfChanges','markersStart','error','userId','sort','ck-suggestion-marker','_cleanMarkers','config','isRemoveSuggestion','getChild','offsetSize','WidgetToolbarRepository','isObject','length','editing','_threeWayMerge','getAttribute','ck-suggestion-marker-merge','toModel','authors','_getViewObj','getAttributes','element','addMarker:revision-suggestion:insertion','isContent','_setChanges','isNavigationMode','addClass','ck-suggestion-marker--active','viewItem','filter','loadRevisionData','markerToData','vid_end','forward','nextSibling','_setDistance','addMarker:revision','_markSuggestions','next','revisionHistoryAttachChange','ck-editor__editable__overlay','children','revision:','push','_changeIdToChange','return','startIndex','revision-comment:','endIndex','target','markerName','elementToAttribute','useFillerType','change','forceDisabled','deletions','left','remove','_activeViewTarget','enableReadOnlyMode','_removeUnsupportedChanges','commands','pop','isReady','consumable','insert','marked','vid_start','document','side','restoreRevisionCallback','distance','revision-start','_refreshStartEndIndex','toViewElement','createRange','default','attributes','data','_update','from','code','addHighlight','parent','getClientRects','high','end','wrap','maxOffset','change:isReady','then','isAddSuggestion','suggestion','getWalker','delete','right','removeMarker','map','_makeTape','item','addRoot','_makeModelFromTape','isEqual','parse','low','mapViewToDom','_getDiff','forEach','compare','showNextChange','pairId','createAttributeElement','modelRange','view','locale','insertions','init','splice','attachChange','conversion','_cleanUp','execute','affectsData','start','pluginName','isOnRoot','getRootNames','previousPosition','elementStart','_changeView','getIndex','change:activeChange','-new','removeClass','refresh','_joinTapes','activeChange','nextPosition','markersEnd','currentChangeNumber','data-change-id','includes','_removeMissingPairs','level','markerToHighlight','toViewPosition','requires','insertion','isAdded','revision','isAfter','roots','ck-suggestion-preview-marker-','resolve','attributesBefore','highest','getDomRoot','enqueueChange','ck-revision-history-root--active','isLimit','isBlock','find','markerRange','model','slice','removeAttribute','plugins','addMarker:revision-suggestion:deletion','span'];(function(_0x44c060,_0x4b125a){const _0x406698=function(_0xc379bd){while(--_0xc379bd){_0x44c060['push'](_0x44c060['shift']());}};_0x406698(++_0x4b125a);}(_0x4b12,0x185));const _0x4066=function(_0x44c060,_0x4b125a){_0x44c060=_0x44c060-0x0;let _0x406698=_0x4b12[_0x44c060];return _0x406698;};import{Plugin as _0x35ab16,Command as _0x5dfb1c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x102840}from'ckeditor5/src/utils';import{ContextualBalloon as _0x3d4910}from'ckeditor5/src/ui';import{DocumentFragment as _0x11b0d7,Element as _0x10cc25,Text as _0x1f52a6,ViewDocumentFragment as _0x184fc5,ViewText as _0x555435,ViewElement as _0x523df2,ViewContainerElement as _0x39ad77,ViewAttributeElement as _0x52a953,ViewEmptyElement as _0x2e8728,ViewRawElement as _0x1a0965,ViewUIElement as _0x1ca1d8}from'ckeditor5/src/engine';import{Users as _0x310f84,getMarkerDomElement as _0x198c25}from'ckeditor5-collaboration/src/collaboration-core';import _0x2dd857 from'./ui/revisionviewer/changedetailsview';import _0x34d53f from'./revisionsrepository';import _0x149bf1 from'./changeitem';import{default as _0x2a6e4a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4bfe03}from'lodash-es';const tt={'c':_0x39ad77,'a':_0x52a953,'e':_0x2e8728,'r':_0x1a0965,'u':_0x1ca1d8};export default class d extends _0x35ab16{static get[_0x4066('0x88')](){return _0x4066('0xcd');}static get[_0x4066('0x9e')](){return[_0x310f84,_0x3d4910,_0x34d53f];}constructor(_0x433443){super(_0x433443),this[_0x4066('0xee')]=this['editor'][_0x4066('0xb2')][_0x4066('0xea')]('RevisionsRepository'),this[_0x4066('0xbe')](_0x4066('0x94'),null),this[_0x4066('0xbe')]('activeView',null),this[_0x4066('0x46')]=null,this[_0x4066('0xbe')](_0x4066('0xb6'),null),this[_0x4066('0xbe')]('isReady',!0x1),this['set'](_0x4066('0x11c'),!0x0),this['on']('change:isEnabled',(_0x26e2d5,_0x1c53e8,_0x245e55)=>{this[_0x4066('0x94')]=null,this[_0x4066('0xcc')]=null,this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0x7d')][_0x4066('0x41')](_0x252e9d=>{for(const _0x9717ed of this[_0x4066('0x112')]['editing']['view'][_0x4066('0x50')][_0x4066('0xa3')])_0x245e55?_0x252e9d[_0x4066('0x91')](_0x4066('0x34'),_0x9717ed):_0x252e9d[_0x4066('0x26')](_0x4066('0x34'),_0x9717ed);});}),this[_0x4066('0x109')](_0x4066('0x25'))['to'](this,_0x4066('0x94'),_0xe04f5c=>null!==_0xe04f5c),this[_0x4066('0x109')](_0x4066('0x97'))['to'](this,'isReady',this,_0x4066('0xb6'),this,_0x4066('0x94'),(_0x2ed15a,_0x13cfc5,_0x81aa67)=>_0x2ed15a&&_0x81aa67?_0x13cfc5['changes']['getIndex'](_0x81aa67):0x0),this[_0x4066('0x109')](_0x4066('0xb'))['to'](this,_0x4066('0x4b'),this,_0x4066('0xb6'),(_0xfaff4f,_0x394afe)=>_0xfaff4f?_0x394afe[_0x4066('0xc3')][_0x4066('0x18')]:0x0),this['_changeView']=null,this[_0x4066('0x38')]=new Map(),this['adapter']=null,this[_0x4066('0xe0')]=this['editor']['plugins'][_0x4066('0xea')](_0x3d4910);}[_0x4066('0x80')](){const _0x4ce914=this[_0x4066('0x112')],_0x294c03=new ShowChangeCommand(_0x4ce914,{'direction':_0x4066('0xe7')}),_0x1cb62a=new ShowChangeCommand(_0x4ce914,{'direction':_0x4066('0x2d')});(_0x4ce914['commands'][_0x4066('0x105')]('showPreviousChange',_0x294c03),_0x4ce914[_0x4066('0x49')][_0x4066('0x105')](_0x4066('0x79'),_0x1cb62a),_0x4ce914['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x4ce914)),this['on'](_0x4066('0x117'),()=>{_0x294c03[_0x4066('0x92')](),_0x1cb62a[_0x4066('0x92')]();}),this[_0x4066('0x102')](),this['_initInteractions'](),_0x4ce914[_0x4066('0x47')]('revision-viewer'),_0x4ce914[_0x4066('0xb2')][_0x4066('0xd9')](_0x4066('0x16')))&&_0x4ce914[_0x4066('0xb2')][_0x4066('0xea')]('WidgetToolbarRepository')[_0x4066('0x42')](_0x4066('0x0'));}async['getRevisionData'](_0x5f561a){await this[_0x4066('0x2a')](_0x5f561a);const _0x513f68={};for(const _0x2b44aa in _0x5f561a[_0x4066('0x6')]){if(_0x5f561a[_0x4066('0x6')][_0x2b44aa][_0x4066('0x82')]&&!_0x5f561a[_0x4066('0x6')][_0x2b44aa]['attachChange'][_0x4066('0xdf')])continue;const _0x524b99=this[_0x4066('0x111')](JSON[_0x4066('0x73')](_0x5f561a[_0x4066('0x6')][_0x2b44aa][_0x4066('0x7f')])),_0xb8ffa4=this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0x7d')][_0x4066('0x50')],_0x2af530=new _0x184fc5(_0xb8ffa4,_0x524b99[_0x4066('0x6d')](_0x49a784=>this[_0x4066('0x1f')](_0x49a784)));this[_0x4066('0x112')][_0x4066('0x5a')][_0x4066('0xfc')][_0x4066('0x40')](_0x4066('0x4e')),_0x513f68[_0x2b44aa]=this[_0x4066('0x112')]['data'][_0x4066('0xfc')][_0x4066('0xd8')](_0x2af530),this[_0x4066('0x112')][_0x4066('0x5a')][_0x4066('0xfc')][_0x4066('0x40')](_0x4066('0x58'));}return _0x513f68;}async[_0x4066('0x11b')](_0x21aee9){await this['loadRevisionData'](_0x21aee9);const _0x21d4fc={};for(const _0x1431e4 in _0x21aee9['diffData'])_0x21aee9[_0x4066('0x6')][_0x1431e4][_0x4066('0x82')]&&!_0x21aee9[_0x4066('0x6')][_0x1431e4]['attachChange']['isAttached']||(_0x21d4fc[_0x1431e4]=_0x21aee9[_0x4066('0x6')][_0x1431e4]['attributesAfter']||{});return _0x21d4fc;}[_0x4066('0x111')](_0x59b477){return(_0x59b477=_0x59b477[_0x4066('0x29')](_0x33c0c3=>!_0x33c0c3['name']||_0x4066('0x54')!==_0x33c0c3[_0x4066('0xc0')]&&_0x4066('0x106')!==_0x33c0c3[_0x4066('0xc0')]))[_0x4066('0x77')](_0x25925b=>{_0x4066('0xf2')!=typeof _0x25925b&&(_0x25925b[_0x4066('0x35')]=this[_0x4066('0x111')](_0x25925b[_0x4066('0x35')]),_0x25925b[_0x4066('0x59')]=_0x25925b[_0x4066('0x59')]['filter'](_0x9897da=>!_0x9897da[0x0][_0x4066('0xff')](_0x4066('0xf5'))));}),_0x59b477;}async[_0x4066('0x78')](_0x8bc2b3,_0x12957c,_0x57a222=!0x1){if(!this[_0x4066('0x11c')])return;const _0x2a108f=this[_0x4066('0xb6')],_0xb0575b=this['repository'],_0x25508e=_0x4066('0xf2')==typeof _0x8bc2b3?_0xb0575b[_0x4066('0xd3')](_0x8bc2b3):_0x8bc2b3,_0x17359=_0x4066('0xf2')==typeof _0x12957c?_0xb0575b[_0x4066('0xd3')](_0x12957c):_0x12957c,_0x535d68=_0x25508e['id'],_0x568832=_0x17359?_0x17359['id']:null;if(!_0x57a222&&this[_0x4066('0xb6')]&&this[_0x4066('0xb6')][_0x4066('0x103')]===_0x535d68&&this['diff']['oldRevisionId']===_0x568832)return Promise[_0x4066('0xa5')]();this[_0x4066('0x4b')]=!0x1,this[_0x4066('0xcc')]=null,this[_0x4066('0x94')]=null,this[_0x4066('0xb6')]=new _0x2a6e4a(_0x535d68,_0x568832);const _0x2fd6e1=this[_0x4066('0xeb')](_0x25508e,_0x17359,!0x0)['map'](_0x165ad3=>this[_0x4066('0x2a')](_0x165ad3));return _0x2fd6e1[_0x4066('0x37')](new Promise(_0x4bddae=>{setTimeout(_0x4bddae,0x14);})),Promise[_0x4066('0xc2')](_0x2fd6e1)['then'](()=>{if(!this[_0x4066('0x11c')])return;this['_cleanUp']();const _0x557cfa=this['_getDiff'](_0x535d68,_0x568832);for(const _0x582b11 of _0x557cfa[_0x4066('0xc3')])this['_changeIdToChange'][_0x4066('0xbe')](_0x582b11['id'],_0x582b11);this[_0x4066('0x112')][_0x4066('0xaf')]['enqueueChange']({'isUndoable':!0x1},_0x4d4a10=>{for(const _0x359930 of this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x50')][_0x4066('0x8a')]())_0x4d4a10[_0x4066('0x113')](_0x359930);for(const _0x158dee of Object[_0x4066('0xf3')](_0x557cfa[_0x4066('0xaf')])){const _0x4c013d=_0x4d4a10[_0x4066('0x70')](_0x158dee);for(const _0x588835 of Object['keys'](_0x557cfa['attributes'][_0x158dee]))_0x4d4a10[_0x4066('0xf9')](_0x588835,_0x557cfa[_0x4066('0x59')][_0x158dee][_0x588835],_0x4c013d);_0x4d4a10[_0x4066('0x4d')](_0x557cfa[_0x4066('0xaf')][_0x158dee],_0x4c013d,0x0);}}),this[_0x4066('0xb6')][_0x4066('0x24')](this[_0x4066('0xd2')](_0x557cfa[_0x4066('0xc3')])),this[_0x4066('0x4b')]=!0x0;})['catch'](_0x4b1251=>{console[_0x4066('0xd')](_0x4b1251),this[_0x4066('0x84')](),_0x2a108f&&(this[_0x4066('0xb6')]=_0x2a108f),this[_0x4066('0x4b')]=!0x0;});}[_0x4066('0xc9')](_0xf09aa,_0x2dbe07){const _0x5803c2=this[_0x4066('0xee')]['createRevision'](_0xf09aa);return _0x5803c2['on'](_0x4066('0x5b'),(_0x62e58,_0x178b92,_0x131067)=>_0x2dbe07(_0x178b92,_0x131067,_0x5803c2)),this[_0x4066('0xee')]['addRevision'](_0x5803c2),_0x5803c2;}[_0x4066('0x2a')](_0x50b7cc){if(!_0x50b7cc||_0x50b7cc[_0x4066('0x6')])return Promise[_0x4066('0xa5')]();{const _0x51203f=this[_0x4066('0x112')]['config'][_0x4066('0xea')]('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x51203f,'revisionId':_0x50b7cc['id']})[_0x4066('0x66')](_0x5d938a=>{_0x50b7cc[_0x4066('0x5b')]({'diffData':_0x5d938a[_0x4066('0x6')]},!0x0);});}}[_0x4066('0x84')](){this[_0x4066('0x94')]=null,this[_0x4066('0x11')](),this['_changeView']&&this['_changeView'][_0x4066('0xc8')](),this[_0x4066('0x8d')]=null,this[_0x4066('0x38')][_0x4066('0xc4')](),this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xa9')]({'isUndoable':!0x1},_0x256a3c=>{for(const _0x5e89aa of this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x50')][_0x4066('0x8a')]())_0x256a3c[_0x4066('0x113')](_0x5e89aa);});}['_sortAndFilterDiffChanges'](_0x263ff4){const _0x43d239=[],_0xc3af41=new Map();for(const _0x326728 of this['editor'][_0x4066('0xaf')]['document'][_0x4066('0x8a')]()){const _0x11bcb3=this[_0x4066('0x112')]['editing'][_0x4066('0x7d')][_0x4066('0xa8')](_0x326728);if(!_0x11bcb3)continue;const _0x23ef32=_0x11bcb3[_0x4066('0x60')]()[_0x4066('0x6f')](0x0);_0x23ef32&&(_0x43d239[_0x4066('0x37')](_0x326728),_0xc3af41['set'](_0x326728,_0x23ef32));}return _0x43d239['sort']((_0x5e01b4,_0x3f51a3)=>{const _0x36aba1=_0xc3af41[_0x4066('0xea')](_0x5e01b4),_0x11e3d8=_0xc3af41[_0x4066('0xea')](_0x3f51a3);return _0x36aba1['y']-_0x11e3d8['y']||_0x36aba1['x']-_0x11e3d8['x'];}),(_0x263ff4=_0x263ff4['filter'](_0xe11207=>_0x43d239[_0x4066('0x99')](_0xe11207['rootName'])))[_0x4066('0xf')]((_0x459735,_0x52f6ef)=>_0x43d239[_0x4066('0x10a')](_0x459735[_0x4066('0x119')])-_0x43d239[_0x4066('0x10a')](_0x52f6ef[_0x4066('0x119')])),_0x263ff4;}[_0x4066('0x6e')](_0x5637ce){const _0x220d6b=Array['from'](_0x5637ce[_0x4066('0xcf')])[_0x4066('0x29')](([_0x57c96d,_0x361e79])=>_0x57c96d[_0x4066('0xff')]('revision:')&&!_0x361e79['isCollapsed']),_0x4ecf14=Array['from'](this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xc6')](_0x5637ce)[_0x4066('0x69')]({'singleCharacters':!0x0}));if(0x0!=_0x220d6b['length'])for(const _0x206971 of _0x4ecf14){const [_0x4478a6,_0x36e973]=_0x220d6b[0x0],[,_0x586b69,_0x559565]=_0x4478a6[_0x4066('0xfa')](':');if(_0x36e973['end']['isEqual'](_0x206971[_0x4066('0x95')])&&_0x220d6b[_0x4066('0x10d')](),(_0x206971['previousPosition'][_0x4066('0x72')](_0x36e973[_0x4066('0x87')])||_0x206971[_0x4066('0x8b')][_0x4066('0xa2')](_0x36e973[_0x4066('0x87')]))&&(_0x4066('0x9f')==_0x586b69?_0x206971[_0x4066('0xa0')]={'userId':_0x559565}:_0x4066('0xed')==_0x586b69&&(_0x206971['isRemoved']={'userId':_0x559565})),0x0==_0x220d6b[_0x4066('0x18')])break;}return _0x4ecf14;}['_refreshStartEndIndex'](_0xb8d74b){const _0x4d9727=new Map();for(let _0x53cc64=0x0;_0x53cc64<_0xb8d74b[_0x4066('0x18')];_0x53cc64++)_0x4066('0xd1')===_0xb8d74b[_0x53cc64]['type']?(_0xb8d74b[_0x53cc64]['item']['startIndex']=_0x53cc64,_0xb8d74b[_0x53cc64][_0x4066('0x6f')][_0x4066('0x3c')]=_0x53cc64):(_0x4066('0x8c')===_0xb8d74b[_0x53cc64][_0x4066('0xdb')]?_0xb8d74b[_0x53cc64][_0x4066('0x6f')]['startIndex']=_0x53cc64:_0x4066('0xdc')===_0xb8d74b[_0x53cc64]['type']&&(_0xb8d74b[_0x53cc64][_0x4066('0x6f')][_0x4066('0x3c')]=_0x53cc64),_0x4d9727[_0x4066('0xbe')](_0xb8d74b[_0x53cc64]['id'],_0x53cc64));for(const _0x34fea2 of _0x4d9727[_0x4066('0x8')]())_0x4066('0x8c')===_0xb8d74b[_0x34fea2]['type']?_0xb8d74b[_0x34fea2]['item']['endIndex']=_0x4d9727['get'](_0xb8d74b[_0x34fea2][_0x4066('0x7a')]):_0x4066('0xdc')===_0xb8d74b[_0x34fea2][_0x4066('0xdb')]&&(_0xb8d74b[_0x34fea2][_0x4066('0x6f')][_0x4066('0x3a')]=_0x4d9727[_0x4066('0xea')](_0xb8d74b[_0x34fea2][_0x4066('0x7a')]));}[_0x4066('0xbd')](_0x5c25dc){for(let _0xe35d15=0x0;_0xe35d15<_0x5c25dc[_0x4066('0x18')];_0xe35d15++){if(_0x4066('0x8c')===_0x5c25dc[_0xe35d15][_0x4066('0xdb')])_0x5c25dc[_0xe35d15]['item'][_0x4066('0x3a')]=_0xe35d15;else{if('elementEnd'===_0x5c25dc[_0xe35d15][_0x4066('0xdb')]){_0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3c')]=_0xe35d15;const _0x14f7c4=_0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3a')];_0x5c25dc[_0x14f7c4][_0x4066('0x7a')]=_0x5c25dc[_0xe35d15]['id'],_0x5c25dc[_0xe35d15][_0x4066('0x7a')]=_0x5c25dc[_0x14f7c4]['id'];}else _0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3a')]=_0xe35d15,_0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3c')]=_0xe35d15,_0x5c25dc[_0xe35d15][_0x4066('0x7a')]=null;}_0x5c25dc[_0xe35d15][_0x4066('0xc')]||(_0x5c25dc[_0xe35d15]['markersStart']=[],_0x5c25dc[_0xe35d15][_0x4066('0x96')]=[]);}}[_0x4066('0x101')](_0x1c10fe,_0x595190){const _0x64d1c=_0x1c10fe['filter'](_0x2f066a=>!_0x2f066a['isAdded']);for(let _0x52b1a1=0x0;_0x52b1a1<_0x595190[_0x4066('0x18')];_0x52b1a1++)_0x595190[_0x52b1a1]['isAdded']&&(_0x64d1c[_0x52b1a1][_0x4066('0xa0')]=_0x595190[_0x52b1a1][_0x4066('0xa0')]);}[_0x4066('0xfd')](_0x295526){const _0x2bd946=JSON[_0x4066('0x73')](_0x295526),_0x2d423a=this[_0x4066('0x112')][_0x4066('0x19')]['view'][_0x4066('0x50')],_0x3025db=new _0x184fc5(_0x2d423a,_0x2bd946[_0x4066('0x6d')](_0x5eeace=>this[_0x4066('0x1f')](_0x5eeace)));return this['editor'][_0x4066('0x5a')][_0x4066('0x1d')](_0x3025db);}[_0x4066('0x1f')](_0x41cf62){const _0x291dde=this[_0x4066('0x112')][_0x4066('0x19')]['view'][_0x4066('0x50')];if(_0x4066('0xf2')==typeof _0x41cf62)return new _0x555435(_0x291dde,_0x41cf62);{const _0x19d70f=_0x41cf62[_0x4066('0x35')]['map'](_0x29d8d2=>this[_0x4066('0x1f')](_0x29d8d2));return new(tt[_0x41cf62[(_0x4066('0xdb'))]]||_0x523df2)(_0x291dde,_0x41cf62[_0x4066('0xc0')],_0x41cf62[_0x4066('0x59')],_0x19d70f);}}[_0x4066('0x76')](_0x1f8932,_0x293352=null){const _0x5d3fc8=this[_0x4066('0xee')][_0x4066('0xd3')](_0x1f8932),_0x4872f7=_0x293352?this[_0x4066('0xee')][_0x4066('0xd3')](_0x293352):null,_0x2ff6a2=this['_getRevisionsRange'](_0x5d3fc8,_0x4872f7),_0x165544=_0x2ff6a2[_0x2ff6a2[_0x4066('0x18')]-0x1],_0x16183a=new Map(),_0xc3b30a={'model':{},'attributes':{},'changes':[]},_0x27f5f6=new Set(),_0x2a0c41=new Map();for(let _0x6c1e4a=_0x2ff6a2['length']-0x1;_0x6c1e4a>=0x0;_0x6c1e4a--){const _0x3147af=_0x2ff6a2[_0x6c1e4a];for(const _0xe34f7 of Object[_0x4066('0xf3')](_0x3147af[_0x4066('0x6')]))if(_0x3147af[_0x4066('0x6')][_0xe34f7][_0x4066('0x82')]){const _0xde39e5=_0x3147af[_0x4066('0x6')][_0xe34f7]['attachChange'];_0xde39e5[_0x4066('0xdf')]?(_0x27f5f6[_0x4066('0x105')](_0xe34f7),_0x2a0c41[_0x4066('0xd9')](_0xe34f7)&&_0x2a0c41[_0x4066('0xea')](_0xe34f7)['userId']==_0xde39e5[_0x4066('0xe')]?_0x2a0c41[_0x4066('0x6a')](_0xe34f7):_0x2a0c41[_0x4066('0xbe')](_0xe34f7,_0xde39e5)):_0x2a0c41[_0x4066('0xd9')](_0xe34f7)?(_0x27f5f6[_0x4066('0x6a')](_0xe34f7),_0x2a0c41['delete'](_0xe34f7)):(_0x27f5f6[_0x4066('0x105')](_0xe34f7),_0x2a0c41[_0x4066('0xbe')](_0xe34f7,_0xde39e5));}else _0x27f5f6[_0x4066('0x105')](_0xe34f7);}for(const _0x3a32a7 of _0x27f5f6){const _0x22ee39=_0x2a0c41[_0x4066('0xd9')](_0x3a32a7)&&!_0x2a0c41[_0x4066('0xea')](_0x3a32a7)[_0x4066('0xdf')];let _0x54abe2=_0x22ee39?_0x2ff6a2[_0x4066('0x18')]-0x1:0x0;const _0x5362be=_0x22ee39?-0x1:0x1;for(;_0x2ff6a2[_0x54abe2];){const _0x5a4188=_0x2ff6a2[_0x54abe2];if(_0x5a4188[_0x4066('0x6')][_0x3a32a7]){const _0x218deb=_0x22ee39?_0x5a4188[_0x4066('0x6')][_0x3a32a7][_0x4066('0xa6')]:_0x5a4188[_0x4066('0x6')][_0x3a32a7]['attributesAfter'];_0xc3b30a[_0x4066('0x59')][_0x3a32a7]=_0x218deb?_0x4bfe03(_0x218deb):{};break;}_0x54abe2+=_0x5362be;}}for(const _0x943638 of _0x2ff6a2){_0x943638['model']={};for(const _0x7a697e of _0x943638[_0x4066('0x1e')])_0x16183a['set'](_0x7a697e['id'],_0x7a697e);for(const _0x59c733 of _0x27f5f6){const _0x3d5ee3=_0x943638[_0x4066('0x6')][_0x59c733]?_0x943638[_0x4066('0x6')][_0x59c733]['insertions']:'[]',_0x55fcd3=_0x943638[_0x4066('0x6')][_0x59c733]?_0x943638['diffData'][_0x59c733][_0x4066('0x43')]:'[]';_0x943638[_0x4066('0xaf')][_0x59c733]={'insertions':this[_0x4066('0xfd')](_0x3d5ee3),'deletions':this[_0x4066('0xfd')](_0x55fcd3)};}}for(const _0x11acaf of _0x27f5f6){let _0xa077a2=null,_0x2de2b9=0x0;const _0x337dce=new Map(Array['from'](_0x5d3fc8[_0x4066('0xaf')][_0x11acaf][_0x4066('0x7f')][_0x4066('0xcf')])[_0x4066('0x29')](([_0x366051])=>!_0x366051[_0x4066('0xff')](_0x4066('0x36'))));let _0x173c93=0x0;for(const _0x257b39 of _0x2ff6a2){const _0x5cb9bd=this[_0x4066('0x6e')](_0x257b39[_0x4066('0xaf')][_0x11acaf]['insertions']);_0x257b39==_0x5d3fc8?(_0xa077a2=_0x5cb9bd,_0x2de2b9=_0xa077a2['length'],_0xa077a2['forEach'](_0x25bda4=>{_0x25bda4['id']=_0x173c93++;}),this['_processTape'](_0xa077a2)):this[_0x4066('0x101')](_0xa077a2,_0x5cb9bd);const _0x51cb6f=_0xa077a2[_0x4066('0x29')](_0x432499=>!_0x432499[_0x4066('0xa0')])[_0x4066('0x6d')](_0x1a2f54=>_0x1a2f54['id']);let _0x1b3df3=0x0;const _0x39d51a=this[_0x4066('0x6e')](_0x257b39[_0x4066('0xaf')][_0x11acaf]['deletions']);_0x39d51a[_0x4066('0x77')](_0x3b7529=>{_0x3b7529[_0x4066('0xbf')]?_0x3b7529['id']=_0x2de2b9++:_0x3b7529['id']=_0x51cb6f[_0x1b3df3++];}),this[_0x4066('0xbd')](_0x39d51a),this[_0x4066('0x2f')](_0xa077a2,_0x4066('0xa0')),this[_0x4066('0x2f')](_0x39d51a,'isRemoved'),_0x257b39==_0x5d3fc8&&this[_0x4066('0xe1')](_0xa077a2,_0x337dce),_0xa077a2=this[_0x4066('0x93')](_0xa077a2,_0x39d51a),this[_0x4066('0x55')](_0xa077a2),this[_0x4066('0x2f')](_0xa077a2,_0x4066('0xbf'));}_0xa077a2=_0xa077a2[_0x4066('0x29')](_0x44b162=>!(_0x44b162['isAdded']&&_0x44b162[_0x4066('0xbf')]));const _0x6b24dc=new Map(_0x165544[_0x4066('0xaf')][_0x11acaf]['deletions'][_0x4066('0xcf')]),_0x482e2e=new Set(_0x337dce['keys']());for(const _0x3e5933 of _0x6b24dc[_0x4066('0xf3')]())_0x482e2e['delete'](_0x3e5933);this[_0x4066('0x31')](_0xa077a2,_0x482e2e),this[_0x4066('0x10e')](_0xa077a2),_0xa077a2=this[_0x4066('0x9a')](_0xa077a2),_0xa077a2=this['_markMismatchedRemovedTags'](_0xa077a2),_0xa077a2=this[_0x4066('0x48')](_0xa077a2);const {root:_0x59f7b1,changes:_0x515a96}=this[_0x4066('0x71')](_0xa077a2,_0x16183a,_0x11acaf);_0xc3b30a[_0x4066('0xaf')][_0x11acaf]=_0x59f7b1;const _0x3bd45a=_0x2a0c41['get'](_0x11acaf);if(_0x3bd45a){const _0x2e2d1f=_0x16183a[_0x4066('0xea')](_0x3bd45a[_0x4066('0xe')]),_0xfa9aa3=new _0x149bf1({'author':_0x2e2d1f,'type':_0x3bd45a[_0x4066('0xdf')]?_0x4066('0x105'):_0x4066('0x45'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x11acaf});_0x515a96[_0x4066('0x4')](_0xfa9aa3),_0xc3b30a['attributes'][_0x11acaf][_0x4066('0x33')]=_0xfa9aa3['id'];}_0xc3b30a[_0x4066('0xc3')]=_0xc3b30a[_0x4066('0xc3')][_0x4066('0xe3')](_0x515a96);}return _0xc3b30a;}['_markMarkers'](_0x3d3ddb,_0x4cf4aa){for(let _0x4f5ca5=0x0;_0x4f5ca5<_0x3d3ddb[_0x4066('0x18')];_0x4f5ca5++)for(const [_0x54a1ef,_0xadd660]of _0x4cf4aa)_0xadd660[_0x4066('0x87')]['isEqual'](_0x3d3ddb[_0x4f5ca5][_0x4066('0x8b')])&&_0x3d3ddb[_0x4f5ca5][_0x4066('0xc')][_0x4066('0x37')](_0x54a1ef),_0xadd660['end'][_0x4066('0x72')](_0x3d3ddb[_0x4f5ca5][_0x4066('0x95')])&&_0x3d3ddb[_0x4f5ca5][_0x4066('0x96')][_0x4066('0x37')](_0x54a1ef);}[_0x4066('0x93')](_0x2dc3a1,_0x1cf9b7){let _0x2c6da2=[],_0x107cbd=0x0,_0x534d3c=0x0;for(;_0x107cbd<_0x2dc3a1[_0x4066('0x18')]||_0x534d3c<_0x1cf9b7[_0x4066('0x18')];){const _0x1c6dcb=_0x2dc3a1[_0x107cbd]||{},_0x41b9e1=_0x1cf9b7[_0x534d3c]||{};if(_0x1c6dcb['id']==_0x41b9e1['id'])_0x107cbd++,_0x534d3c++,_0x2c6da2[_0x4066('0x37')](_0x1c6dcb);else{if(_0x41b9e1[_0x4066('0xbf')]&&_0x1c6dcb['isAdded']){const {commonTape:_0xaf416c,iEnd:_0x508611,jEnd:_0x4ba309}=this[_0x4066('0x1a')](_0x2dc3a1,_0x107cbd,_0x1cf9b7,_0x534d3c);_0x2c6da2=_0x2c6da2['concat'](_0xaf416c),_0x107cbd=_0x508611,_0x534d3c=_0x4ba309;}else _0x41b9e1['isRemoved']?(_0x534d3c++,_0x2c6da2['push'](_0x41b9e1)):(_0x107cbd++,_0x2c6da2[_0x4066('0x37')](_0x1c6dcb));}}return _0x2c6da2;}[_0x4066('0x31')](_0x24d65b,_0xa01057){const _0x1386bd=[];for(let _0x2004a8=0x0;_0x2004a8<_0x24d65b[_0x4066('0x18')];_0x2004a8++){for(let _0x4cdd54=0x0;_0x4cdd54<_0x24d65b[_0x2004a8][_0x4066('0xc')][_0x4066('0x18')];_0x4cdd54++){const _0x4e46bd=_0x24d65b[_0x2004a8][_0x4066('0xc')][_0x4cdd54];if(!_0xa01057[_0x4066('0xd9')](_0x4e46bd))continue;const {group:_0x478f1b,type:_0x4eea28,authorId:_0x376f95}=_0x3bb3e6(_0x4e46bd);'revision-suggestion'!=_0x478f1b||_0x4066('0x9f')!=_0x4eea28&&'deletion'!=_0x4eea28||(_0x1386bd[_0x4066('0x4')]({'type':_0x4eea28,'name':_0x4e46bd,'userId':_0x376f95}),_0x24d65b[_0x2004a8][_0x4066('0xc')][_0x4066('0x81')](_0x4cdd54,0x1),_0x4cdd54--);}_0x396424(_0x24d65b[_0x2004a8]);for(let _0x387226=0x0;_0x387226<_0x24d65b[_0x2004a8][_0x4066('0x96')]['length'];_0x387226++){const _0x29c811=_0x24d65b[_0x2004a8]['markersEnd'][_0x387226];if(!_0xa01057[_0x4066('0xd9')](_0x29c811))continue;const {group:_0xfc73be,type:_0x49d9b6}=_0x3bb3e6(_0x29c811);if(_0x4066('0xb7')!=_0xfc73be||'insertion'!=_0x49d9b6&&_0x4066('0xed')!=_0x49d9b6)continue;_0x24d65b[_0x2004a8][_0x4066('0x96')][_0x4066('0x81')](_0x387226,0x1),_0x387226--;const _0x5c1cc0=_0x1386bd[_0x4066('0xec')](_0x5362dc=>_0x5362dc[_0x4066('0xc0')]==_0x29c811);_0x5c1cc0>-0x1&&_0x1386bd[_0x4066('0x81')](_0x5c1cc0,0x1);}}function _0x3bb3e6(_0x564bb2){const _0x522f0d=_0x564bb2[_0x4066('0xfa')](':');return{'group':_0x522f0d[0x0],'type':_0x522f0d[0x1],'subType':_0x522f0d['length']>=0x5?_0x522f0d[0x2]:null,'id':_0x522f0d[_0x4066('0x18')]<0x5?_0x522f0d[0x2]:_0x522f0d[0x3],'authorId':_0x522f0d[_0x4066('0x18')]<0x5?_0x522f0d[0x3]:_0x522f0d[0x4],'markerCount':0x6==_0x522f0d[_0x4066('0x18')]?_0x522f0d[0x5]:null};}function _0x396424(_0x291c14){for(let _0xb302fb=0x0;_0xb302fb<_0x1386bd[_0x4066('0x18')];_0xb302fb++){if(_0x291c14[_0x4066('0xa0')]&&_0x4066('0x9f')==_0x1386bd[_0xb302fb]['type'])return _0x291c14[_0x4066('0x67')]=_0x1386bd[_0xb302fb],void delete _0x291c14[_0x4066('0xa0')];if(!_0x291c14[_0x4066('0xa0')]&&!_0x291c14[_0x4066('0xbf')]&&_0x4066('0xed')==_0x1386bd[_0xb302fb][_0x4066('0xdb')])return void(_0x291c14[_0x4066('0x13')]=_0x1386bd[_0xb302fb]);}}}[_0x4066('0x2f')](_0x1301ff,_0x1e6ea2){let _0x3fda0b=0x0,_0x10d0b4=!0x1;const _0x1df541=new Map();for(const _0x3fd778 of _0x1301ff)_0x3fd778[_0x1e6ea2]?_0x10d0b4&&(_0x3fda0b++,_0x10d0b4=!0x1):(_0x3fda0b++,_0x10d0b4=!0x0),_0x1df541[_0x4066('0xbe')](_0x3fd778['id'],_0x3fda0b);for(let _0x3fd3a1=0x0;_0x3fd3a1<_0x1301ff[_0x4066('0x18')];_0x3fd3a1++){if(_0x4066('0xbf')==_0x1e6ea2&&_0x1301ff[_0x3fd3a1][_0x4066('0xa0')]||_0x4066('0xa0')==_0x1e6ea2&&_0x1301ff[_0x3fd3a1][_0x4066('0xbf')])continue;if(_0x4066('0xd1')==_0x1301ff[_0x3fd3a1][_0x4066('0xdb')]){_0x1301ff[_0x3fd3a1][_0x4066('0x53')]=0x0;continue;}const _0x19e7d8=_0x1df541[_0x4066('0xea')](_0x1301ff[_0x3fd3a1]['pairId']),_0x40bc47=_0x1df541[_0x4066('0xea')](_0x1301ff[_0x3fd3a1]['id']);_0x1301ff[_0x3fd3a1][_0x4066('0x53')]=_0x19e7d8-_0x40bc47;}}[_0x4066('0xeb')](_0x4aa693,_0xbe4b1,_0x59f4a6=!0x1){const _0x1e3b72=[];let _0x3205af=this[_0x4066('0xee')]['getIndex'](_0x4aa693),_0x3e9457=this[_0x4066('0xee')][_0x4066('0x8e')](_0xbe4b1);for(-0x1==_0x3e9457&&(_0x3e9457=this['repository']['_revisions'][_0x4066('0x18')],_0x59f4a6=!0x1);_0x3205af<_0x3e9457;)_0x1e3b72[_0x4066('0x37')](this[_0x4066('0xee')][_0x4066('0xd3')](_0x3205af)),_0x3205af++;return _0x59f4a6&&_0x1e3b72['push'](this[_0x4066('0xee')][_0x4066('0xd3')](_0x3205af)),_0x1e3b72;}[_0x4066('0x1a')](_0x295f4d,_0x192440,_0x34fff0,_0x487d48){const _0x2f0213=this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xbc')];let _0xd4b0c=_0x192440;for(;_0x295f4d[_0xd4b0c]&&_0x295f4d[_0xd4b0c][_0x4066('0xa0')];)_0xd4b0c++;let _0x3f3191=_0x487d48;for(;_0x34fff0[_0x3f3191]&&_0x34fff0[_0x3f3191][_0x4066('0xbf')];)_0x3f3191++;_0xb2af31(_0x295f4d,_0x192440,_0xd4b0c),_0xb2af31(_0x34fff0,_0x487d48,_0x3f3191);const _0x3ebc93=_0x34fff0['slice'](_0x487d48,_0x3f3191)[_0x4066('0xe3')](_0x295f4d[_0x4066('0xb0')](_0x192440,_0xd4b0c));return _0x3ebc93['sort']((_0x321444,_0x51d21e)=>_0x321444['side']!=_0x51d21e[_0x4066('0x51')]?_0x321444[_0x4066('0x51')]-_0x51d21e[_0x4066('0x51')]:_0x321444[_0x4066('0x9b')]!=_0x51d21e[_0x4066('0x9b')]?_0x321444[_0x4066('0x9b')]-_0x51d21e[_0x4066('0x9b')]:_0x321444[_0x4066('0x53')]!=_0x51d21e['distance']?_0x51d21e[_0x4066('0x53')]-_0x321444[_0x4066('0x53')]:!!_0x321444['isAdded']!=!!_0x51d21e['isAdded']?-0x1==_0x321444[_0x4066('0x51')]||0x0==_0x321444['side']?_0x321444[_0x4066('0xa0')]?-0x1:0x1:_0x321444[_0x4066('0xa0')]?0x1:-0x1:_0x321444[_0x4066('0x5')]-_0x51d21e[_0x4066('0x5')]),{'commonTape':_0x3ebc93,'iEnd':_0xd4b0c,'jEnd':_0x3f3191};function _0xb2af31(_0xcfa044,_0x497586,_0x6b31b7){let _0x1aeaf0=-0x1,_0xd9e602=Number[_0x4066('0xde')],_0x49ed28=!0x0;for(let _0x2abfb7=_0x497586;_0x2abfb7<_0x6b31b7;_0x2abfb7++)if(_0x2f0213['isInline'](_0xcfa044[_0x2abfb7][_0x4066('0x6f')])||(_0x49ed28=!0x1),_0xcfa044[_0x2abfb7][_0x4066('0x6f')]['startIndex']<_0x497586&&(_0x1aeaf0=_0x2abfb7),_0xcfa044[_0x2abfb7][_0x4066('0x6f')]['endIndex']>=_0x6b31b7){_0xd9e602=_0x2abfb7;break;}_0x49ed28&&(_0x1aeaf0=_0x6b31b7-0x1);for(let _0x4d0479=_0x497586;_0x4d0479<_0x6b31b7;_0x4d0479++)_0xcfa044[_0x4d0479][_0x4066('0x51')]=_0x4d0479<=_0x1aeaf0?-0x1:_0x4d0479<_0xd9e602?0x0:0x1,_0xcfa044[_0x4d0479][_0x4066('0x5')]=_0x4d0479;let _0x2342fc=0x0;for(let _0x5ecfab=_0x497586;_0x5ecfab<=_0x1aeaf0;_0x5ecfab++)0x0==_0xcfa044[_0x5ecfab][_0x4066('0x53')]?_0xcfa044[_0x5ecfab][_0x4066('0x9b')]=_0x2342fc:(_0x2342fc++,_0xcfa044[_0x5ecfab][_0x4066('0x9b')]=_0x2342fc,_0x2342fc++);for(let _0x19f098=_0x497586;_0x19f098<_0x6b31b7;_0x19f098++)0x0==_0xcfa044[_0x19f098]['side']&&(_0xcfa044[_0x19f098][_0x4066('0x9b')]=_0x2342fc);_0x2342fc=0x0;for(let _0xd4f9ac=_0x6b31b7-0x1;_0xd4f9ac>=_0xd9e602;_0xd4f9ac--)0x0==_0xcfa044[_0xd4f9ac][_0x4066('0x53')]?_0xcfa044[_0xd4f9ac][_0x4066('0x9b')]=_0x2342fc:(_0x2342fc--,_0xcfa044[_0xd4f9ac][_0x4066('0x9b')]=_0x2342fc,_0x2342fc--);}}[_0x4066('0x10e')](_0x90a844){const _0x59cf0b=new Map(),_0x372e20=this[_0x4066('0x112')]['model']['schema'];for(let _0x149f36=0x1;_0x149f36<_0x90a844[_0x4066('0x18')];_0x149f36++){let _0x4dcf67,_0x1b8242,_0x302bcd;const _0x305406=_0x90a844[_0x149f36],_0x57879b=_0x90a844[_0x149f36-0x1];if(_0x4066('0xd1')==_0x305406[_0x4066('0xdb')])continue;if(_0x305406[_0x4066('0xdb')]!=_0x57879b[_0x4066('0xdb')])continue;if(!_0x372e20['isBlock'](_0x57879b[_0x4066('0x6f')])||_0x372e20['isLimit'](_0x57879b['item']))continue;if(!_0x372e20[_0x4066('0xac')](_0x305406[_0x4066('0x6f')])||_0x372e20[_0x4066('0xab')](_0x305406['item']))continue;if((_0x90a844[_0x149f36][_0x4066('0xa0')]||_0x90a844[_0x149f36]['isAddSuggestion'])&&_0x90a844[_0x149f36-0x1]['isRemoved'])_0x4dcf67=_0x90a844[_0x149f36],_0x1b8242=_0x90a844[_0x149f36-0x1],_0x302bcd=_0x149f36-0x1;else{if(!_0x90a844[_0x149f36][_0x4066('0xbf')]||!_0x90a844[_0x149f36-0x1]['isAdded']&&!_0x90a844[_0x149f36-0x1][_0x4066('0x67')])continue;_0x4dcf67=_0x90a844[_0x149f36-0x1],_0x1b8242=_0x90a844[_0x149f36],_0x302bcd=_0x149f36;}const _0x3b33ee=_0x4dcf67['level']==_0x1b8242[_0x4066('0x9b')],_0x205052=Math['abs'](_0x4dcf67['level'])<Math[_0x4066('0x1')](_0x1b8242['level'])&&0x0==_0x1b8242[_0x4066('0x53')];(_0x3b33ee||_0x205052)&&(_0x59cf0b['set'](_0x1b8242['id'],_0x4dcf67['id']),_0x90a844[_0x4066('0x81')](_0x302bcd,0x1),_0x149f36--,_0x4dcf67[_0x4066('0xa0')]=!0x1);}for(let _0x2926ab=0x0;_0x2926ab<_0x90a844[_0x4066('0x18')];_0x2926ab++)_0x59cf0b['has'](_0x90a844[_0x2926ab][_0x4066('0x7a')])&&(_0x90a844[_0x2926ab]['pairId']=_0x59cf0b[_0x4066('0xea')](_0x90a844[_0x2926ab]['pairId']));}[_0x4066('0x9a')](_0x4c182b){const _0x143f43=new Set(_0x4c182b[_0x4066('0x6d')](_0x2cde7a=>_0x2cde7a['id']));for(let _0x38c78b=0x0;_0x38c78b<_0x4c182b[_0x4066('0x18')];_0x38c78b++)_0x143f43[_0x4066('0xd9')](_0x4c182b[_0x38c78b][_0x4066('0x7a')])||0x0==_0x4c182b[_0x38c78b][_0x4066('0x53')]||(_0x4c182b[_0x38c78b][_0x4066('0x10f')]=!0x0);return _0x4c182b[_0x4066('0x29')](_0x4ee3db=>!_0x4ee3db[_0x4066('0x10f')]);}[_0x4066('0xe6')](_0x3c0598){const _0x260155=new Set();for(let _0x279199=0x0;_0x279199<_0x3c0598['length'];_0x279199++){if(_0x260155[_0x4066('0xd9')](_0x3c0598[_0x279199]['id'])&&_0x3c0598[_0x279199][_0x4066('0xbf')]&&(_0x3c0598[_0x279199]['isIncorrect']=!0x0),_0x3c0598[_0x279199][_0x4066('0x10f')])continue;if(0x0==_0x3c0598[_0x279199][_0x4066('0x53')])continue;if('elementStart'!=_0x3c0598[_0x279199][_0x4066('0xdb')])continue;if(null==_0x3c0598[_0x279199][_0x4066('0x7a')])continue;let _0x2f0308=_0x279199+0x1,_0x200f85=0x0;for(;_0x3c0598[_0x2f0308]['id']!=_0x3c0598[_0x279199][_0x4066('0x7a')];)_0x4066('0x8c')==_0x3c0598[_0x2f0308][_0x4066('0xdb')]?_0x200f85++:_0x4066('0xdc')==_0x3c0598[_0x2f0308][_0x4066('0xdb')]&&_0x200f85--,_0x2f0308++;if(0x0!=_0x200f85){if(_0x3c0598[_0x279199]['isRemoved'])_0x3c0598[_0x279199][_0x4066('0x10f')]=!0x0;else for(;_0x2f0308!=_0x279199;)_0x3c0598[_0x2f0308][_0x4066('0xbf')]&&0x0!=_0x3c0598[_0x2f0308][_0x4066('0x53')]&&(_0x3c0598[_0x2f0308][_0x4066('0x10f')]=!0x0,_0x260155['add'](_0x3c0598[_0x2f0308][_0x4066('0x7a')])),_0x2f0308--;}}return _0x3c0598['filter'](_0x161180=>!_0x161180[_0x4066('0x10f')]);}[_0x4066('0x48')](_0x11ecaf){const _0x424fdf=this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xbc')];for(let _0x4d8d4b=0x0;_0x4d8d4b<_0x11ecaf['length'];_0x4d8d4b++){if(!(_0x11ecaf[_0x4d8d4b][_0x4066('0xa0')]||_0x11ecaf[_0x4d8d4b][_0x4066('0x67')]||_0x11ecaf[_0x4d8d4b][_0x4066('0xbf')]||_0x11ecaf[_0x4d8d4b]['isRemoveSuggestion']))continue;if(0x0==_0x11ecaf[_0x4d8d4b][_0x4066('0x53')])continue;const _0x9c4774=_0x11ecaf[_0x4d8d4b]['item'];_0x424fdf[_0x4066('0xac')](_0x9c4774)||_0x424fdf[_0x4066('0xab')](_0x9c4774)||(_0x11ecaf[_0x4d8d4b][_0x4066('0xa0')]&&delete _0x11ecaf[_0x4d8d4b][_0x4066('0xa0')],_0x11ecaf[_0x4d8d4b][_0x4066('0x67')]&&delete _0x11ecaf[_0x4d8d4b][_0x4066('0x67')],_0x11ecaf[_0x4d8d4b]['isRemoveSuggestion']&&delete _0x11ecaf[_0x4d8d4b][_0x4066('0x13')],_0x11ecaf[_0x4d8d4b][_0x4066('0xbf')]&&(_0x11ecaf[_0x4d8d4b][_0x4066('0x10f')]=!0x0));}return _0x11ecaf[_0x4066('0x29')](_0x53518b=>!_0x53518b[_0x4066('0x10f')]);}['_makeModelFromTape'](_0x584a89,_0x304b1b,_0x5467fb){const _0x3e08ed=new _0x11b0d7(),_0x40748a=[],_0x54a92f=new Map(),_0x1923be=this['editor'][_0x4066('0xaf')],_0x121d83=_0x1923be['schema'],_0xc4f063=[_0x3e08ed],_0xb6050b={},_0x38ea3b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x504035=null;const _0x3db317=[0x0];for(let _0x47fe78=0x0;_0x47fe78<_0x584a89['length'];_0x47fe78++){let _0x3face6,_0x49183e;if(_0x4066('0x8c')===_0x584a89[_0x47fe78][_0x4066('0xdb')]){_0x3face6=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317);const _0x31f158=new _0x10cc25(_0x584a89[_0x47fe78]['item'][_0x4066('0xc0')],_0x584a89[_0x47fe78][_0x4066('0x6f')][_0x4066('0x20')]());_0xc4f063[0x0]['_appendChild'](_0x31f158),_0x3db317[_0x4066('0x37')](0x0),_0xc4f063[_0x4066('0x4')](_0x31f158),_0x49183e=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317),_0x504035=null;}else{if(_0x4066('0xdc')===_0x584a89[_0x47fe78]['type'])_0xc4f063['shift'](),_0x3face6=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317),_0x3db317[_0x4066('0x4a')](),_0x3db317[_0x3db317[_0x4066('0x18')]-0x1]++,_0x49183e=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317),_0x504035=null;else{if(_0x3face6=_0x1923be['createPositionFromPath'](_0x3e08ed,_0x3db317),_0x504035&&_0x122159(_0x504035,_0x584a89[_0x47fe78]['item']))_0x504035['_data']+=_0x584a89[_0x47fe78]['item']['data'];else{const _0x73c4f7=new _0x1f52a6(_0x584a89[_0x47fe78][_0x4066('0x6f')][_0x4066('0x5a')],_0x584a89[_0x47fe78]['item'][_0x4066('0x20')]());_0xc4f063[0x0]['_appendChild'](_0x73c4f7),_0x504035=_0x73c4f7;}_0x3db317[_0x3db317[_0x4066('0x18')]-0x1]+=_0x584a89[_0x47fe78][_0x4066('0x6f')][_0x4066('0x15')],_0x49183e=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317);}}for(const _0x5d1344 of _0x584a89[_0x47fe78]['markersStart'])_0x54a92f[_0x4066('0xbe')](_0x5d1344,{'start':_0x3face6,'end':null});_0x51b106(_0x4066('0x13'),_0x47fe78,_0x3face6,_0x49183e),_0x51b106(_0x4066('0x67'),_0x47fe78,_0x3face6,_0x49183e),_0x51b106(_0x4066('0xbf'),_0x47fe78,_0x3face6,_0x49183e),_0x51b106(_0x4066('0xa0'),_0x47fe78,_0x3face6,_0x49183e);for(const _0x19cdcf of _0x584a89[_0x47fe78]['markersEnd']){_0x54a92f['get'](_0x19cdcf)[_0x4066('0x62')]=_0x49183e;}}for(const [_0x4ccca3,_0x1dad51]of _0x54a92f){const _0x2b3e47=this['editor'][_0x4066('0xaf')][_0x4066('0x57')](_0x1dad51[_0x4066('0x87')],_0x1dad51[_0x4066('0x62')]);_0x3e08ed[_0x4066('0xcf')]['set'](_0x4ccca3,_0x2b3e47);}return _0x40748a[_0x4066('0xf')]((_0x569257,_0x1254a2)=>{const _0x3fd63d=_0x3e08ed[_0x4066('0xcf')][_0x4066('0xea')](_0x4066('0x36')+_0x569257['id']),_0x4ba917=_0x3e08ed['markers'][_0x4066('0xea')](_0x4066('0x36')+_0x1254a2['id']);return _0x3fd63d[_0x4066('0x87')][_0x4066('0xc5')](_0x4ba917[_0x4066('0x87')])?-0x1:_0x3fd63d[_0x4066('0x87')][_0x4066('0xa2')](_0x4ba917[_0x4066('0x87')])?0x1:_0x3fd63d[_0x4066('0x62')][_0x4066('0xc5')](_0x4ba917[_0x4066('0x62')])?-0x1:_0x3fd63d[_0x4066('0x62')][_0x4066('0xa2')](_0x4ba917[_0x4066('0x62')])?0x1:_0x4066('0x105')===_0x569257['type']?-0x1:0x1;}),{'root':_0x3e08ed,'changes':_0x40748a};function _0x51b106(_0x1d3567,_0x2e5ea2,_0x28083e,_0x19434a){const _0x364b9d=!!_0x584a89[_0x2e5ea2][_0x1d3567],_0x3ec191=_0x364b9d?_0x584a89[_0x2e5ea2][_0x1d3567][_0x4066('0xe')]:null,_0x1c3e96=_0x2e5ea2===_0x584a89[_0x4066('0x18')]-0x1,_0x555e49=_0x38ea3b[_0x1d3567][0x0],_0x10f9b3=_0x121d83[_0x4066('0x17')](_0x584a89[_0x2e5ea2][_0x4066('0x6f')]);!_0xb6050b[_0x1d3567]&&_0x364b9d?_0xb6050b[_0x1d3567]={'start':_0x28083e,'tapeItem':_0x584a89[_0x2e5ea2],'userId':_0x3ec191,'type':_0x1d3567}:_0xb6050b[_0x1d3567]&&!_0x364b9d?(_0xb6050b[_0x1d3567][_0x4066('0x62')]=_0x28083e,_0x4e0341(_0xb6050b[_0x1d3567]),_0xb6050b[_0x1d3567]=null):_0xb6050b[_0x1d3567]&&_0x364b9d&&_0xb6050b[_0x1d3567][_0x4066('0xe')]!==_0x3ec191&&(_0xb6050b[_0x1d3567][_0x4066('0x62')]=_0x28083e,_0x555e49&&_0x555e49[_0x4066('0xe')]===_0xb6050b[_0x1d3567]['userId']||_0x4e0341(_0xb6050b[_0x1d3567]),_0xb6050b[_0x1d3567]={'start':_0x28083e,'tapeItem':_0x584a89[_0x2e5ea2],'userId':_0x3ec191,'type':_0x1d3567}),_0xb6050b[_0x1d3567]&&_0x10f9b3&&('elementStart'!==_0x584a89[_0x2e5ea2][_0x4066('0xdb')]||_0x555e49&&_0x555e49[_0x4066('0xe')]===_0x3ec191||_0x38ea3b[_0x1d3567][_0x4066('0x4')]({'userId':_0x3ec191,'object':_0x584a89[_0x2e5ea2]['item'],'change':_0xb6050b[_0x1d3567]}),'elementEnd'===_0x584a89[_0x2e5ea2]['type']&&_0x555e49&&_0x555e49['object']===_0x584a89[_0x2e5ea2][_0x4066('0x6f')]&&(_0x38ea3b[_0x1d3567][_0x4066('0x10d')](),_0xb6050b[_0x1d3567]=_0x555e49[_0x4066('0x41')])),_0xb6050b[_0x1d3567]&&_0x1c3e96&&(_0xb6050b[_0x1d3567][_0x4066('0x62')]=_0x19434a,_0x4e0341(_0xb6050b[_0x1d3567]),_0xb6050b[_0x1d3567]=null);}function _0x4e0341({start:_0x20cb0d,end:_0x669ce1,tapeItem:_0x3313b3,userId:_0x5571da,type:_0x31356a}){const _0x18091a=_0x3313b3[_0x4066('0x6f')],_0x384d77=_0x1923be[_0x4066('0xbc')][_0x4066('0xac')](_0x18091a)&&!_0x1923be[_0x4066('0xbc')][_0x4066('0xab')](_0x18091a),_0x68ae40=_0x20cb0d['nodeAfter']==_0x669ce1[_0x4066('0x5f')]&&_0x669ce1[_0x4066('0xf0')];if(_0x384d77&&_0x68ae40)return;const _0xec12b0=_0x1923be[_0x4066('0x57')](_0x20cb0d,_0x669ce1),_0x5a22bb=_0x304b1b['get'](_0x5571da),_0x2e27b5=new _0x149bf1({'author':_0x5a22bb,'type':_0x4066('0xa0')==_0x31356a||_0x4066('0x67')==_0x31356a?'add':_0x4066('0x45'),'data':{'isSuggestion':_0x4066('0x67')==_0x31356a||'isRemoveSuggestion'==_0x31356a},'createdAt':new Date(),'rootName':_0x5467fb});_0x40748a['push'](_0x2e27b5),_0x3e08ed[_0x4066('0xcf')][_0x4066('0xbe')]('revision:'+_0x2e27b5['id'],_0xec12b0);}function _0x122159(_0x4d4b6f,_0x10882c){const _0x3cc7ec=_0x4d4b6f['getAttributes'](),_0x54e978=_0x10882c[_0x4066('0x20')]();for(const _0xe5d0a8 of _0x3cc7ec){if(_0xe5d0a8[0x1]!==_0x10882c[_0x4066('0x1b')](_0xe5d0a8[0x0]))return!0x1;_0x54e978[_0x4066('0x32')]();}return _0x54e978['next']()[_0x4066('0xf7')];}}[_0x4066('0x102')](){this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0xe4')]({'view':_0x4066('0xa1')}),this['editor']['conversion'][_0x4066('0xda')]('editingDowncast')[_0x4066('0x9c')]({'model':_0x4066('0xa1'),'view':_0x19e217=>{const _0x22ffe1=_0x19e217['markerName'][_0x4066('0xfa')](':')[0x1],_0x3ec420=this['_getChangeFromId'](_0x22ffe1);if(!_0x3ec420)return null;const _0x3c88ad=_0x4066('0x105')==_0x3ec420[_0x4066('0xdb')]?_0x4066('0x9f'):'deletion',_0x3224cd=[_0x4066('0x10'),_0x4066('0x10c')+_0x3c88ad];return _0x3ec420[_0x4066('0x5a')][_0x4066('0xba')]&&_0x3224cd[_0x4066('0x37')](_0x4066('0x10c')+_0x3c88ad+_0x4066('0x90')),this[_0x4066('0x94')]==_0x3ec420&&_0x3224cd[_0x4066('0x37')](_0x4066('0x27')),{'classes':_0x3224cd,'attributes':{'data-change-id':_0x22ffe1}};}}),this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0x105')](_0x15493f=>{_0x15493f['on']('element:pre',(_0x4d5624,_0x77ddc1,_0x33019b)=>{const _0x1d1d99=_0x77ddc1[_0x4066('0x28')][_0x4066('0x14')](0x0);if(!_0x1d1d99||!_0x1d1d99['is'](_0x4066('0x21'),_0x4066('0x5d')))return;if(!_0x33019b[_0x4066('0x4c')][_0x4066('0x10b')](_0x1d1d99,{'attributes':[_0x4066('0x4f'),'vid_end']}))return;const _0x1c3b0e=_0x77ddc1[_0x4066('0x7c')]['start']['nodeAfter'];_0x33019b[_0x4066('0xd4')][_0x4066('0xf9')]('vid_start',_0x1d1d99[_0x4066('0x1b')]('vid_start'),_0x1c3b0e),_0x33019b[_0x4066('0xd4')][_0x4066('0xf9')](_0x4066('0x2c'),_0x1d1d99['getAttribute'](_0x4066('0x2c')),_0x1c3b0e);},{'priority':_0x4066('0x74')});}),this['editor']['conversion']['for'](_0x4066('0xc7'))['add'](_0x25d703=>{_0x25d703['on'](_0x4066('0x21'),(_0x34c9e1,_0x5306f2,_0x3b714e)=>{if(!_0x3b714e[_0x4066('0x4c')][_0x4066('0x10b')](_0x5306f2[_0x4066('0x28')],{'attributes':['vid_start',_0x4066('0x2c')]}))return;if(_0x5306f2[_0x4066('0x7c')][_0x4066('0xf8')])return;const _0x4b1d78=_0x5306f2[_0x4066('0x7c')]['start']['nodeAfter'];_0x4b1d78[_0x4066('0xe2')]('vid_start')||_0x4b1d78['hasAttribute'](_0x4066('0x115'))||(_0x3b714e[_0x4066('0xd4')][_0x4066('0xf9')](_0x4066('0x4f'),_0x5306f2[_0x4066('0x28')][_0x4066('0x1b')](_0x4066('0x4f')),_0x4b1d78),_0x3b714e[_0x4066('0xd4')][_0x4066('0xf9')]('vid_end',_0x5306f2[_0x4066('0x28')]['getAttribute'](_0x4066('0x2c')),_0x4b1d78));},{'priority':_0x4066('0x74')});}),this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')]('upcast')[_0x4066('0x3f')]({'view':{'name':_0x4066('0xb4'),'attributes':{'vid':!0x0}},'model':{'key':_0x4066('0x115'),'value':_0x352467=>_0x352467[_0x4066('0x1b')](_0x4066('0x115'))}}),this['editor'][_0x4066('0xaf')][_0x4066('0xbc')]['on']('checkAttribute',(_0x12288a,[,_0x4bf9ff])=>{[_0x4066('0x4f'),_0x4066('0x2c'),_0x4066('0x115')][_0x4066('0x99')](_0x4bf9ff)&&(_0x12288a[_0x4066('0x39')]=!0x0,_0x12288a['stop']());},{'priority':'highest'}),this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')](_0x4066('0x107'))['add'](_0x5c6327=>{_0x5c6327['on'](_0x4066('0x110'),(_0x51d46a,_0x2d65d4,_0x27e270)=>{if('\x20'!=_0x2d65d4['item'][_0x4066('0x5a')]||_0x2d65d4['item'][_0x4066('0x5f')][_0x4066('0x64')]>0x1)return;if(!_0x27e270[_0x4066('0x4c')][_0x4066('0x10b')](_0x2d65d4['item'],_0x51d46a['name']))return;const _0x41f8e7=_0x27e270[_0x4066('0xd4')],_0x4f1920=_0x27e270[_0x4066('0xb9')]['toViewRange'](_0x2d65d4[_0x4066('0x9')]);_0x41f8e7[_0x4066('0x63')](_0x4f1920,_0x41f8e7[_0x4066('0x7b')](_0x4066('0xb4')));});}),this['editor'][_0x4066('0x83')]['for'](_0x4066('0x107'))['markerToData']({'model':_0x4066('0xa1')}),this[_0x4066('0x112')]['editing'][_0x4066('0xb5')]['on'](_0x4066('0x30'),function(_0x320c32){const _0x465e84=_0x320c32['plugins'][_0x4066('0xea')](_0x4066('0xcd'));return(_0x36434f,_0xbc8c03,_0x4645a8)=>{const _0x5d10a1=_0xbc8c03[_0x4066('0x3e')][_0x4066('0xfa')](':')[0x1],_0x18015b=_0x465e84[_0x4066('0xd7')](_0x5d10a1);if(!_0x18015b)return null;const _0x5a24bb=_0x4066('0x105')==_0x18015b[_0x4066('0xdb')]?_0x4066('0xfa'):_0x4066('0xa');if(!_0x4645a8['consumable'][_0x4066('0xe5')](_0xbc8c03[_0x4066('0xae')],_0x36434f['name']))return;const _0x7be93b=_0xbc8c03['markerRange'][_0x4066('0x69')](),_0x931289=_0xbc8c03[_0x4066('0xae')][_0x4066('0x87')],_0xeed5fb=_0x320c32[_0x4066('0xaf')][_0x4066('0xbc')];let _0x5cd66f=null,_0x2c8597=null,_0x3057d8=!0x1,_0x346e5d=!0x1;for(const _0x2bd28e of _0x7be93b){const _0x39a6ed=_0x2bd28e[_0x4066('0x6f')];_0x3057d8=_0x3057d8||_0xeed5fb[_0x4066('0x23')](_0x39a6ed);const _0x4f8bd0=_0x4645a8['mapper'][_0x4066('0x56')](_0x39a6ed);if(_0x4f8bd0&&_0x4f8bd0[_0x4066('0xe8')](_0x4066('0x5e')))return;_0x4066('0xdc')==_0x2bd28e[_0x4066('0xdb')]&&(_0xeed5fb['isBlock'](_0x39a6ed)&&!_0xeed5fb[_0x4066('0xab')](_0x39a6ed)&&(_0x39a6ed[_0x4066('0x2e')]||_0x931289[_0x4066('0x118')]?_0x5cd66f&&_0x5cd66f['parent']==_0x39a6ed||(_0x5cd66f=_0x39a6ed,_0x1bcfa3(_0x2bd28e['previousPosition']),_0x346e5d=!0x0):_0x2c8597=_0x2c8597||_0x2bd28e[_0x4066('0x8b')]));}function _0x1bcfa3(_0x16a6e5){const _0x5fbb20=_0x4645a8['writer'][_0x4066('0xce')](_0x4066('0xb4'),{'class':_0x4066('0x10c')+_0x5a24bb}),_0x1c9ea7=_0x4645a8[_0x4066('0xb9')][_0x4066('0x9d')](_0x16a6e5);_0x18015b[_0x4066('0x5a')][_0x4066('0xba')]&&_0x4645a8[_0x4066('0xd4')]['addClass'](_0x4066('0x10c')+_0x5a24bb+_0x4066('0x90'),_0x5fbb20),_0x465e84[_0x4066('0x94')]==_0x18015b&&_0x4645a8[_0x4066('0xd4')][_0x4066('0x26')](_0x4066('0x27'),_0x5fbb20),_0x4645a8[_0x4066('0xd4')][_0x4066('0x4d')](_0x1c9ea7,_0x5fbb20),_0x4645a8[_0x4066('0xb9')][_0x4066('0x11a')](_0x5fbb20,_0xbc8c03[_0x4066('0x3e')]);}_0x3057d8||_0x346e5d||!_0x2c8597||_0x1bcfa3(_0x2c8597);};}(this[_0x4066('0x112')]),{'priority':_0x4066('0x61')}),this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0xb5')]['on']('removeMarker:revision',(_0x4849d3,_0x1eeb8f,_0xc1c0fb)=>{const _0x221e3d=_0xc1c0fb[_0x4066('0xb9')][_0x4066('0x100')](_0x1eeb8f[_0x4066('0x3e')]);if(_0x221e3d)for(const _0x7de5c6 of _0x221e3d)(_0x7de5c6[_0x4066('0xfb')](_0x4066('0xcb'))||_0x7de5c6[_0x4066('0xfb')](_0x4066('0x1c')))&&(_0xc1c0fb[_0x4066('0xb9')][_0x4066('0x116')](_0x7de5c6,_0x1eeb8f[_0x4066('0x3e')]),_0xc1c0fb[_0x4066('0xd4')][_0x4066('0x45')](_0x7de5c6));},{'priority':_0x4066('0x61')}),this['editor'][_0x4066('0x19')]['downcastDispatcher']['on']('addMarker:revision',(_0x4d9c21,_0x490d11,_0x35c06b)=>{const _0x48a0f8=_0x490d11[_0x4066('0x3e')][_0x4066('0xfa')](':')[0x1],_0xfa17a9=this[_0x4066('0xd7')](_0x48a0f8);if(!_0xfa17a9)return null;const _0x5aa55a=_0x4066('0x105')==_0xfa17a9['type']?_0x4066('0xfa'):'merge';if(_0x35c06b[_0x4066('0x4c')]['test'](_0x490d11[_0x4066('0xae')],_0x4d9c21[_0x4066('0xc0')]))for(const _0x38e132 of _0x490d11[_0x4066('0xae')]['getItems']()){if(!_0x38e132['is']('element',_0x4066('0x7')))continue;const _0x4fa85c=_0x35c06b['writer'][_0x4066('0xce')](_0x4066('0xb4'),{'class':_0x4066('0x10c')+_0x5aa55a}),_0xf49d00=_0x35c06b[_0x4066('0xb9')][_0x4066('0x9d')](this[_0x4066('0x112')][_0x4066('0xaf')]['createPositionBefore'](_0x38e132));_0xfa17a9[_0x4066('0x5a')][_0x4066('0xba')]&&_0x35c06b[_0x4066('0xd4')]['addClass'](_0x4066('0x10c')+_0x5aa55a+_0x4066('0x90'),_0x4fa85c),this['activeChange']==_0xfa17a9&&_0x35c06b[_0x4066('0xd4')][_0x4066('0x26')](_0x4066('0x27'),_0x4fa85c),_0x35c06b[_0x4066('0xd4')]['insert'](_0xf49d00,_0x4fa85c),_0x35c06b[_0x4066('0xb9')][_0x4066('0x11a')](_0x4fa85c,_0x490d11[_0x4066('0x3e')]);}},{'priority':_0x4066('0x61')}),this[_0x4066('0x112')]['model'][_0x4066('0x50')]['on'](_0x4066('0x41'),()=>{this[_0x4066('0x112')]['editing'][_0x4066('0x7d')]['change'](_0x1e217c=>{for(const _0x1740aa of this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x50')][_0x4066('0x8a')]()){const _0x41ddf3=this['editor']['model'][_0x4066('0x50')][_0x4066('0xf4')](_0x1740aa),_0x15d323=this[_0x4066('0x112')][_0x4066('0x19')]['view'][_0x4066('0x50')][_0x4066('0xf4')](_0x1740aa);if(_0x15d323){const _0x2fcf28=_0x41ddf3[_0x4066('0x1b')](_0x4066('0x33'));if(_0x1e217c[_0x4066('0xb1')](_0x4066('0x98'),_0x15d323),_0x1e217c['removeClass'](_0x4066('0xf1'),_0x15d323),_0x1e217c[_0x4066('0x91')]('ck-revision-history-root-remove',_0x15d323),_0x1e217c[_0x4066('0x91')](_0x4066('0xaa'),_0x15d323),_0x2fcf28){const _0x19a2a6=this['_getChangeFromId'](_0x2fcf28);if(!_0x19a2a6)return null;_0x1e217c[_0x4066('0xf9')]('data-change-id',_0x2fcf28,_0x15d323),_0x1e217c[_0x4066('0x26')](_0x4066('0xca')+_0x19a2a6[_0x4066('0xdb')],_0x15d323),this[_0x4066('0x94')]==_0x19a2a6&&_0x1e217c['addClass'](_0x4066('0xaa'),_0x15d323);}}}});}),this[_0x4066('0x112')]['conversion'][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0xe4')]({'view':_0x4066('0xf6'),'model':_0x36402a=>_0x4066('0x3b')+_0x36402a,'converterPriority':_0x4066('0xa7')}),this[_0x4066('0x112')]['conversion'][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0xe4')]({'view':_0x4066('0x68'),'model':_0x401dba=>'revision-suggestion:'+_0x401dba,'converterPriority':_0x4066('0xa7')}),this[_0x4066('0x112')]['conversion'][_0x4066('0xda')](_0x4066('0x107'))[_0x4066('0x2b')]({'model':'revision-suggestion','view':_0x1828af=>({'name':'suggestion:'+_0x1828af,'group':_0x4066('0xb7')}),'converterPriority':_0x4066('0xa7')}),this['editor'][_0x4066('0x83')]['for'](_0x4066('0xbb'))[_0x4066('0x9c')]({'model':_0x4066('0xb7'),'view':_0x4f81c3=>{const _0x1b0bf0=_0x4f81c3[_0x4066('0x3e')][_0x4066('0xfa')](':')[0x1];return'insertion'!=_0x1b0bf0&&_0x4066('0xed')!=_0x1b0bf0?null:{'classes':['ck-suggestion-preview-marker',_0x4066('0xa4')+_0x1b0bf0]};}}),this[_0x4066('0x112')][_0x4066('0x19')]['downcastDispatcher']['on'](_0x4066('0xb3'),et(this[_0x4066('0x112')],_0x4066('0xa')),{'priority':_0x4066('0x61')}),this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0xb5')]['on'](_0x4066('0x22'),et(this[_0x4066('0x112')],_0x4066('0xfa')),{'priority':_0x4066('0x61')}),this[_0x4066('0x112')]['editing'][_0x4066('0xb5')]['on'](_0x4066('0xdd'),(_0x30184c,_0x2ab622,_0x2ee347)=>{const _0x59db87=_0x2ee347['mapper'][_0x4066('0x100')](_0x2ab622['markerName']);if(_0x59db87)for(const _0x13f025 of _0x59db87)_0x13f025['is']('uiElement')&&(_0x2ee347['mapper']['unbindElementFromMarkerName'](_0x13f025,_0x2ab622[_0x4066('0x3e')]),_0x2ee347[_0x4066('0xd4')][_0x4066('0x45')](_0x13f025));},{'priority':_0x4066('0x61')});}[_0x4066('0xd7')](_0x2623ad){return this['_changeIdToChange'][_0x4066('0xea')](_0x2623ad);}[_0x4066('0xd0')](_0x21d47d){return this['_changeView']&&this[_0x4066('0x8d')][_0x4066('0xc8')](),this[_0x4066('0x8d')]=new _0x2dd857(this[_0x4066('0x112')][_0x4066('0x7e')],_0x21d47d),this[_0x4066('0x8d')];}['_initInteractions'](){this[_0x4066('0x112')][_0x4066('0xaf')]['document']['selection']['observeMarkers'](_0x4066('0xa1')),this['on']('change:activeView',(_0x16cc87,_0x3f01ce,_0x4ede96,_0x1e30e6)=>{_0x1e30e6&&this['_balloon'][_0x4066('0x45')](_0x1e30e6),_0x4ede96&&(this['_balloon'][_0x4066('0x105')]({'view':_0x4ede96,'stackId':_0x4066('0x2'),'position':{'target':()=>{const _0x45b219=this[_0x4066('0x112')][_0x4066('0x19')],_0x3efb64=this['_getChangeFromId'](_0x4ede96['changeId']);let _0x1fb41b;if(_0x3efb64['data'][_0x4066('0x89')]){const _0x477bc6=_0x45b219[_0x4066('0x7d')]['getDomRoot'](_0x3efb64[_0x4066('0x119')]);_0x1fb41b=Array['from'](_0x477bc6['getClientRects']());}else{const _0x311a8c=this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xcf')][_0x4066('0xea')](_0x4066('0x36')+_0x4ede96['changeId']);_0x1fb41b=Array[_0x4066('0x5c')](_0x45b219[_0x4066('0xb9')][_0x4066('0x100')](_0x311a8c[_0x4066('0xc0')]))['map'](_0x2cce23=>_0x45b219['view']['domConverter'][_0x4066('0x75')](_0x2cce23))[_0x4066('0x6d')](_0x4daa74=>Array[_0x4066('0x5c')](_0x4daa74[_0x4066('0x60')]()))['flat']();}if(!this['_activeViewTarget'])return _0x1fb41b[0x0];return _0x1fb41b[_0x4066('0xad')](_0x137a29=>_0x137a29['top']-0x3<=this['_activeViewTarget']['y']&&_0x137a29[_0x4066('0xd6')]+0x3>=this[_0x4066('0x46')]['y']&&_0x137a29[_0x4066('0x44')]-0x3<=this[_0x4066('0x46')]['x']&&_0x137a29[_0x4066('0x6b')]+0x3>=this[_0x4066('0x46')]['x'])||_0x1fb41b[0x0];}}}),this['_balloon'][_0x4066('0x114')](_0x4066('0x2')));}),this['on'](_0x4066('0x8f'),(_0x3d1ba2,_0x1012c6,_0x5d51b8,_0x509817)=>{this[_0x4066('0xcc')]=_0x5d51b8?this[_0x4066('0xd0')](_0x5d51b8):null,this[_0x4066('0x112')]['model'][_0x4066('0x41')](()=>{const _0x5fbaac=this[_0x4066('0x112')][_0x4066('0x19')];_0x509817&&(_0x509817[_0x4066('0x5a')]['isOnRoot']?_0x5fbaac[_0x4066('0x7d')][_0x4066('0x41')](_0x261fe9=>{_0x261fe9[_0x4066('0x91')](_0x4066('0xaa'),_0x5fbaac[_0x4066('0x7d')]['document'][_0x4066('0xf4')](_0x509817[_0x4066('0x119')]));}):_0x5fbaac[_0x4066('0xe9')](_0x4066('0x36')+_0x509817['id'])),_0x5d51b8&&(_0x5d51b8[_0x4066('0x5a')][_0x4066('0x89')]?_0x5fbaac[_0x4066('0x7d')][_0x4066('0x41')](_0x359c47=>{_0x359c47[_0x4066('0x26')](_0x4066('0xaa'),_0x5fbaac['view']['document'][_0x4066('0xf4')](_0x5d51b8[_0x4066('0x119')]));}):_0x5fbaac[_0x4066('0xe9')](_0x4066('0x36')+_0x5d51b8['id']));});}),this[_0x4066('0xfe')](this[_0x4066('0x112')]['editing'][_0x4066('0x7d')][_0x4066('0x50')],'mouseover',(_0x535109,_0xdd42e0)=>{if(this['activeChange'])return;const _0x273b2d=this['_findChangeIdFromDomTarget'](_0xdd42e0[_0x4066('0x3d')]),_0x30094d=this['_changeIdToChange'][_0x4066('0xea')](_0x273b2d);_0x30094d?(this['_activeViewTarget']={'x':_0xdd42e0['domEvent']['x'],'y':_0xdd42e0[_0x4066('0xef')]['y']},this[_0x4066('0xcc')]=this[_0x4066('0xd0')](_0x30094d)):(this[_0x4066('0x46')]=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing'][_0x4066('0x7d')][_0x4066('0x50')],'mousedown',(_0x8e975e,_0x50a634)=>{const _0x5c2da2=this['_findChangeIdFromDomTarget'](_0x50a634[_0x4066('0x3d')]),_0x48c0a3=this[_0x4066('0x38')][_0x4066('0xea')](_0x5c2da2);_0x48c0a3?(this[_0x4066('0x46')]={'x':_0x50a634[_0x4066('0xef')]['x'],'y':_0x50a634[_0x4066('0xef')]['y']},_0x48c0a3===this[_0x4066('0x94')]?this[_0x4066('0xe0')][_0x4066('0x3')]():this['activeChange']=_0x48c0a3):(this[_0x4066('0x46')]=null,this[_0x4066('0x94')]=null);});}[_0x4066('0xd5')](_0x408374){do{const _0x191e24=_0x408374['getAttribute']('data-change-id');if(_0x191e24)return _0x191e24;_0x408374=_0x408374[_0x4066('0x5f')];}while(_0x408374);return null;}[_0x4066('0x11')](){this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x41')](_0x594565=>{for(const _0x40cdb8 of this['editor'][_0x4066('0xaf')][_0x4066('0xcf')])_0x594565[_0x4066('0x6c')](_0x40cdb8);});}}function et(_0x2e0935,_0x25ef8c){return(_0x516088,_0x243bb2,_0x1b4f54)=>{if(!_0x1b4f54[_0x4066('0x4c')][_0x4066('0xe5')](_0x243bb2['markerRange'],_0x516088['name']))return;const _0x4149b6=_0x243bb2['markerRange'][_0x4066('0x69')](),_0x367fab=_0x243bb2['markerRange']['start'],_0x15f10d=_0x2e0935[_0x4066('0xaf')][_0x4066('0xbc')];let _0x252bcc=null,_0x596567=null,_0x8108dd=!0x1,_0x8e6bf4=!0x1;for(const _0x4d1157 of _0x4149b6){const _0x29dbf9=_0x4d1157['item'];_0x8108dd=_0x8108dd||_0x15f10d[_0x4066('0x23')](_0x29dbf9);const _0x104139=_0x1b4f54[_0x4066('0xb9')][_0x4066('0x56')](_0x29dbf9);if(_0x104139&&_0x104139[_0x4066('0xe8')]('addHighlight'))return;_0x4066('0xdc')==_0x4d1157['type']&&(_0x15f10d[_0x4066('0xac')](_0x29dbf9)&&!_0x15f10d[_0x4066('0xab')](_0x29dbf9)&&(_0x29dbf9[_0x4066('0x2e')]||_0x367fab['isAtEnd']?_0x252bcc&&_0x252bcc[_0x4066('0x5f')]==_0x29dbf9||(_0x252bcc=_0x29dbf9,_0x1d31a3(_0x4d1157[_0x4066('0x8b')]),_0x8e6bf4=!0x0):_0x596567=_0x596567||_0x4d1157[_0x4066('0x8b')]));}function _0x1d31a3(_0x4d5127){const _0x26ed96=_0x1b4f54['mapper']['toViewPosition'](_0x4d5127),_0x343191=_0x1b4f54['writer'][_0x4066('0xce')](_0x4066('0xb4'),{'class':'ck-suggestion-preview-marker-'+_0x25ef8c});_0x1b4f54['writer'][_0x4066('0x4d')](_0x26ed96,_0x343191),_0x1b4f54['mapper'][_0x4066('0x11a')](_0x343191,_0x243bb2[_0x4066('0x3e')]);}_0x8108dd||_0x8e6bf4||!_0x596567||_0x1d31a3(_0x596567);};}export class RestoreRevisionCommand extends _0x5dfb1c{constructor(_0x2e9701){super(_0x2e9701);const _0x319504=_0x2e9701[_0x4066('0xb2')][_0x4066('0xea')](d);this[_0x4066('0x86')]=!0x1,this['listenTo'](_0x319504,_0x4066('0x65'),()=>this['refresh']()),this[_0x4066('0xfe')](_0x319504,_0x4066('0x108'),()=>this[_0x4066('0x92')]());}['execute'](){const _0x5839a9=this['editor'],_0xb6b6fd=_0x5839a9[_0x4066('0xb2')][_0x4066('0xea')](d),_0x28e0d6=_0xb6b6fd[_0x4066('0x4b')]?_0xb6b6fd['diff']['newRevisionId']:null;_0x5839a9[_0x4066('0x12')][_0x4066('0xea')]('revisionHistory')[_0x4066('0x52')](_0x28e0d6);}[_0x4066('0x92')](){const {isReady:_0x359bc7,isEnabled:_0x56664c}=this[_0x4066('0x112')]['plugins'][_0x4066('0xea')](d);this[_0x4066('0x11c')]=_0x359bc7&&_0x56664c;}}export class ShowChangeCommand extends _0x5dfb1c{constructor(_0x19e842,{direction:_0x3588a4}){super(_0x19e842);const _0x1801f9=_0x19e842[_0x4066('0xb2')][_0x4066('0xea')](d);this[_0x4066('0x86')]=!0x1,this[_0x4066('0xc1')]='forward'===_0x3588a4?0x1:-0x1,this[_0x4066('0xfe')](_0x1801f9,'change:isReady',()=>this[_0x4066('0x92')]()),this[_0x4066('0xfe')](_0x1801f9,'change:isEnabled',()=>this[_0x4066('0x92')]()),this[_0x4066('0xfe')](_0x1801f9,'change:activeChange',()=>this[_0x4066('0x92')]());}[_0x4066('0x85')](){const _0x1d8787=this['editor'],_0x49f0ff=_0x1d8787[_0x4066('0xb2')]['get'](d),{isNavigationMode:_0x25c10e,currentChangeNumber:_0x461335}=_0x49f0ff;let _0x39d577;if(_0x49f0ff[_0x4066('0x94')]=_0x25c10e?_0x49f0ff[_0x4066('0xb6')][_0x4066('0xc3')][_0x4066('0xea')](_0x461335+this[_0x4066('0xc1')]):_0x49f0ff['diff'][_0x4066('0xc3')][_0x4066('0xb8')],_0x49f0ff[_0x4066('0x94')][_0x4066('0x5a')][_0x4066('0x89')])_0x39d577=_0x1d8787['editing'][_0x4066('0x7d')][_0x4066('0xa8')](_0x49f0ff[_0x4066('0x94')][_0x4066('0x119')]);else{const _0xd261fb=_0x1d8787[_0x4066('0xaf')]['markers'][_0x4066('0xea')](_0x4066('0x36')+_0x49f0ff[_0x4066('0x94')]['id']);_0x39d577=_0x198c25(_0x1d8787[_0x4066('0x19')],_0xd261fb);}_0x102840({'target':_0x39d577,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2153e8,currentChangeNumber:_0x1b8ab3,numberOfChanges:_0x568f94,isReady:_0x129aa7,isEnabled:_0xd36a46}=this[_0x4066('0x112')]['plugins'][_0x4066('0xea')](d);this['isEnabled']=!!(_0xd36a46&&_0x129aa7&&_0x568f94)&&(!_0x2153e8||(0x1===this[_0x4066('0xc1')]?_0x1b8ab3<_0x568f94-0x1:_0x1b8ab3>0x0));}}
|
|
23
|
+
const _0x1fdd=['isAtStart','getDomRoot','markerName','splice','addMarker:revision','top','attachChange','ck-suggestion-marker-','revisionHistoryAttachChange','bindElementToMarker','isOnRoot','revision:','default','getRoot','WidgetToolbarRepository','elementEnd','compare','removeMarker:revision','toViewPosition','init','_getViewForChange','name','get','type','selection','processor','setAttribute','pairId','markersStart','softBreak','_findChangeIdFromDomTarget','has','viewItem','high','next','rootName','_markMarkers','isAtEnd','nodeAfter','sort','for','merge','elementStart','deletions','markerToHighlight','code','_appendChild','findIndex','return','isAttached','downcastDispatcher','parent','low','data-revision-','resolve','markersEnd','refresh','revision-viewer','document','getIndex','isEnabled','getAttributes','ck-suggestion-preview-marker-','toModel','ck-suggestion-marker--active','createUIElement','getWalker','add','restoreRevisionCallback','index','startIndex','isReady','addMarker:revision-suggestion:deletion','_threeWayMerge','isAdded','nextPosition','_activeViewTarget','start','forEach','revision-suggestion','dataDowncast','modelRange','attributes','element','_fixObsoleteTags','markerNameToElements','vid_end','shift','collaboration.channelId','suggestion','revisionHistory','getRevisionData','locale','_initInteractions','_joinTapes','view','getClientRects','revision','insertions','data','offsetSize','startsWith','test','vid_start','highest','createRange','activeChange','ck-editor__editable__overlay','getRootNames','removeAttribute','_balloon','revision-suggestion:','attributesAfter','attributesBefore','upcast','_processTape','enableReadOnlyMode','showPreviousChange','editing','includes','find','enqueueChange','hasClass','unshift','requires','repository','config','diff','_update','indexOf','RevisionsRepository','isAfter','activeView','isObject','schema','ck-suggestion-preview-marker','side','writer','domConverter','isSuggestion','hasAttribute','getItems','conversion','roots','isCollapsed','plugins','mouseover','commands','addRoot','forward','_makeModelFromTape','userId','change:isReady','pop','_changeView','change:numberOfChanges','data-change-id','isRemoved','ck-suggestion-marker','filter','addRevision','ck-revision-history-root-','endIndex','numberOfChanges','_removeMissingPairs','vid','newRevisionId','change:isEnabled','all','restoreRevision','RevisionViewer','end','change:activeView','consume','insert','-new','deletion','set','left','pluginName','getAttribute','_cleanUp','values','detachRoot','diffData','parse','_markSuggestions','revisionHistoryLabel','dataToMarker','ck-revision-history-root-remove','changeId','destroy','observeMarkers','previousPosition','comment','removeMarker','ck-revision-history-root--active','addRevisionData','push','abs','remove','ck-suggestion-marker-split','uiElement','_getChangeFromId','distance','_getRevisionsRange','slice','addHighlight','domEvent','_makeModelFromViewString','toViewRange','listenTo','getChild','useFillerType','_sortAndFilterDiffChanges','concat','toViewElement','isIncorrect','split','insertion','bottom','consumable','affectsData','createRevision','isAddSuggestion','clear','createRangeIn','from','_getViewObj','addMarker:revision-suggestion:insertion','isBlock','children','span','isBefore','revision-start','isInline','_step','_makeTape','_cleanMarkers','change','changes','length','oldRevisionId','editor','element:pre','target','markers','map','string','isNavigationMode','_markMismatchedRemovedTags','model','isRemoveSuggestion','keys','change:activeChange','markerRange','item','loadRevisionData','bind','removeClass','ck-suggestion-marker-merge','isLimit','maxOffset','right','isEqual','_data','_changeIdToChange','then','ck-revision-history-root-add','showStack','object','getRevision','updatePosition','createPositionFromPath','_removeRevisionMarkers','_markInsertions','addClass','_refreshStartEndIndex','attribute:vid','unbindElementFromMarkerName','text','_setConversion','mapper','_setDistance','editingDowncast','delete','POSITIVE_INFINITY','level','getCustomProperty','execute'];(function(_0xcefda0,_0x1fdd56){const _0x33f161=function(_0x50b829){while(--_0x50b829){_0xcefda0['push'](_0xcefda0['shift']());}};_0x33f161(++_0x1fdd56);}(_0x1fdd,0x9a));const _0x33f1=function(_0xcefda0,_0x1fdd56){_0xcefda0=_0xcefda0-0x0;let _0x33f161=_0x1fdd[_0xcefda0];return _0x33f161;};import{Plugin as _0x24f069,Command as _0x107b05}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x8dd2d4}from'ckeditor5/src/utils';import{ContextualBalloon as _0x54483e}from'ckeditor5/src/ui';import{DocumentFragment as _0x1c3171,Element as _0x5d6db1,Text as _0x5769c8,ViewDocumentFragment as _0x109958,ViewText as _0x376055,ViewElement as _0xe18029,ViewContainerElement as _0x3266c5,ViewAttributeElement as _0x40a043,ViewEmptyElement as _0x160dbd,ViewRawElement as _0x5db49f,ViewUIElement as _0x2cb7e}from'ckeditor5/src/engine';import{Users as _0x5541f0,getMarkerDomElement as _0x536dce}from'ckeditor5-collaboration/src/collaboration-core';import _0x4d9298 from'./ui/revisionviewer/changedetailsview';import _0x3d900f from'./revisionsrepository';import _0x530a17 from'./changeitem';import{default as _0xd12df4}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x534c74}from'lodash-es';const tt={'c':_0x3266c5,'a':_0x40a043,'e':_0x160dbd,'r':_0x5db49f,'u':_0x2cb7e};export default class d extends _0x24f069{static get[_0x33f1('0x19')](){return _0x33f1('0x10');}static get[_0x33f1('0x104')](){return[_0x5541f0,_0x54483e,_0x3d900f];}constructor(_0x22ffc4){super(_0x22ffc4),this[_0x33f1('0x105')]=this[_0x33f1('0x59')][_0x33f1('0x119')][_0x33f1('0x9e')](_0x33f1('0x10a')),this[_0x33f1('0x17')](_0x33f1('0xf2'),null),this['set'](_0x33f1('0x10c'),null),this[_0x33f1('0xd4')]=null,this[_0x33f1('0x17')](_0x33f1('0x107'),null),this['set'](_0x33f1('0xcf'),!0x1),this[_0x33f1('0x17')](_0x33f1('0xc4'),!0x0),this['on'](_0x33f1('0xd'),(_0x218253,_0x212ed2,_0xf49461)=>{this[_0x33f1('0xf2')]=null,this['activeView']=null,this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0x55')](_0x111e85=>{for(const _0x5cdf58 of this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0xc2')][_0x33f1('0x117')])_0xf49461?_0x111e85[_0x33f1('0x69')](_0x33f1('0xf3'),_0x5cdf58):_0x111e85['addClass'](_0x33f1('0xf3'),_0x5cdf58);});}),this[_0x33f1('0x68')](_0x33f1('0x5f'))['to'](this,'activeChange',_0x5b210e=>null!==_0x5b210e),this['bind']('currentChangeNumber')['to'](this,_0x33f1('0xcf'),this,'diff',this,_0x33f1('0xf2'),(_0x414768,_0x376272,_0x9e1464)=>_0x414768&&_0x9e1464?_0x376272[_0x33f1('0x56')]['getIndex'](_0x9e1464):0x0),this[_0x33f1('0x68')](_0x33f1('0x9'))['to'](this,'isReady',this,'diff',(_0x4d2d52,_0x3af790)=>_0x4d2d52?_0x3af790['changes'][_0x33f1('0x57')]:0x0),this[_0x33f1('0x0')]=null,this[_0x33f1('0x70')]=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins'][_0x33f1('0x9e')](_0x54483e);}[_0x33f1('0x9b')](){const _0x742f95=this[_0x33f1('0x59')],_0x293f22=new ShowChangeCommand(_0x742f95,{'direction':'backward'}),_0x5632ba=new ShowChangeCommand(_0x742f95,{'direction':_0x33f1('0x11d')});(_0x742f95[_0x33f1('0x11b')][_0x33f1('0xcb')](_0x33f1('0xfd'),_0x293f22),_0x742f95[_0x33f1('0x11b')][_0x33f1('0xcb')]('showNextChange',_0x5632ba),_0x742f95[_0x33f1('0x11b')][_0x33f1('0xcb')](_0x33f1('0xf'),new RestoreRevisionCommand(_0x742f95)),this['on'](_0x33f1('0x1'),()=>{_0x293f22[_0x33f1('0xc0')](),_0x5632ba[_0x33f1('0xc0')]();}),this[_0x33f1('0x7f')](),this[_0x33f1('0xe5')](),_0x742f95[_0x33f1('0xfc')]('revision-viewer'),_0x742f95['plugins'][_0x33f1('0xa7')](_0x33f1('0x96')))&&_0x742f95[_0x33f1('0x119')]['get']('WidgetToolbarRepository')['forceDisabled'](_0x33f1('0xc1'));}async[_0x33f1('0xe3')](_0x3ed1b7){await this[_0x33f1('0x67')](_0x3ed1b7);const _0x3448a1={};for(const _0x29f0ec in _0x3ed1b7[_0x33f1('0x1e')]){if(_0x3ed1b7[_0x33f1('0x1e')][_0x29f0ec]['attachChange']&&!_0x3ed1b7[_0x33f1('0x1e')][_0x29f0ec][_0x33f1('0x8e')][_0x33f1('0xb9')])continue;const _0x4582fe=this[_0x33f1('0x78')](JSON[_0x33f1('0x1f')](_0x3ed1b7[_0x33f1('0x1e')][_0x29f0ec]['insertions'])),_0x5c1a7b=this['editor']['editing'][_0x33f1('0xe7')][_0x33f1('0xc2')],_0x5bb3d3=new _0x109958(_0x5c1a7b,_0x4582fe[_0x33f1('0x5d')](_0x4e3e92=>this[_0x33f1('0x4a')](_0x4e3e92)));this['editor'][_0x33f1('0xeb')][_0x33f1('0xa1')][_0x33f1('0x3b')]('marked'),_0x3448a1[_0x29f0ec]=this['editor']['data'][_0x33f1('0xa1')]['toData'](_0x5bb3d3),this['editor'][_0x33f1('0xeb')][_0x33f1('0xa1')]['useFillerType'](_0x33f1('0x94'));}return _0x3448a1;}async['getRevisionRootsAttributes'](_0x47e4d9){await this[_0x33f1('0x67')](_0x47e4d9);const _0x1652e5={};for(const _0x405715 in _0x47e4d9['diffData'])_0x47e4d9['diffData'][_0x405715][_0x33f1('0x8e')]&&!_0x47e4d9['diffData'][_0x405715][_0x33f1('0x8e')][_0x33f1('0xb9')]||(_0x1652e5[_0x405715]=_0x47e4d9[_0x33f1('0x1e')][_0x405715][_0x33f1('0xf8')]||{});return _0x1652e5;}[_0x33f1('0x78')](_0x171851){return(_0x171851=_0x171851[_0x33f1('0x5')](_0x19da9f=>!_0x19da9f['name']||_0x33f1('0x50')!==_0x19da9f['name']&&'revision-end'!==_0x19da9f[_0x33f1('0x9d')]))[_0x33f1('0xd6')](_0x2ec92f=>{'string'!=typeof _0x2ec92f&&(_0x2ec92f[_0x33f1('0x4d')]=this['_removeRevisionMarkers'](_0x2ec92f[_0x33f1('0x4d')]),_0x2ec92f[_0x33f1('0xda')]=_0x2ec92f[_0x33f1('0xda')][_0x33f1('0x5')](_0x102d77=>!_0x102d77[0x0][_0x33f1('0xed')](_0x33f1('0xbd'))));}),_0x171851;}async[_0x33f1('0x98')](_0x5b45ef,_0x53ab25,_0x46338f=!0x1){if(!this[_0x33f1('0xc4')])return;const _0x3f9d74=this['diff'],_0x3ba86f=this['repository'],_0x5da768='string'==typeof _0x5b45ef?_0x3ba86f[_0x33f1('0x75')](_0x5b45ef):_0x5b45ef,_0x2edb8b='string'==typeof _0x53ab25?_0x3ba86f[_0x33f1('0x75')](_0x53ab25):_0x53ab25,_0x5a086f=_0x5da768['id'],_0x42097e=_0x2edb8b?_0x2edb8b['id']:null;if(!_0x46338f&&this['diff']&&this[_0x33f1('0x107')][_0x33f1('0xc')]===_0x5a086f&&this['diff'][_0x33f1('0x58')]===_0x42097e)return Promise[_0x33f1('0xbe')]();this[_0x33f1('0xcf')]=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new _0xd12df4(_0x5a086f,_0x42097e);const _0x1f6c67=this[_0x33f1('0x33')](_0x5da768,_0x2edb8b,!0x0)[_0x33f1('0x5d')](_0x4a4fdc=>this[_0x33f1('0x67')](_0x4a4fdc));return _0x1f6c67[_0x33f1('0x2c')](new Promise(_0x51b310=>{setTimeout(_0x51b310,0x14);})),Promise[_0x33f1('0xe')](_0x1f6c67)[_0x33f1('0x71')](()=>{if(!this['isEnabled'])return;this[_0x33f1('0x1b')]();const _0x848a3=this['_getDiff'](_0x5a086f,_0x42097e);for(const _0x219d86 of _0x848a3[_0x33f1('0x56')])this[_0x33f1('0x70')][_0x33f1('0x17')](_0x219d86['id'],_0x219d86);this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x101')]({'isUndoable':!0x1},_0x25e7bf=>{for(const _0x2edf4c of this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0xc2')]['getRootNames']())_0x25e7bf[_0x33f1('0x1d')](_0x2edf4c);for(const _0x4256ca of Object['keys'](_0x848a3[_0x33f1('0x61')])){const _0xf0ad57=_0x25e7bf[_0x33f1('0x11c')](_0x4256ca);for(const _0xeac55e of Object['keys'](_0x848a3[_0x33f1('0xda')][_0x4256ca]))_0x25e7bf[_0x33f1('0xa2')](_0xeac55e,_0x848a3['attributes'][_0x4256ca][_0xeac55e],_0xf0ad57);_0x25e7bf['insert'](_0x848a3[_0x33f1('0x61')][_0x4256ca],_0xf0ad57,0x0);}}),this[_0x33f1('0x107')]['_setChanges'](this[_0x33f1('0x3c')](_0x848a3['changes'])),this[_0x33f1('0xcf')]=!0x0;})['catch'](_0x4e1654=>{console['error'](_0x4e1654),this[_0x33f1('0x1b')](),_0x3f9d74&&(this[_0x33f1('0x107')]=_0x3f9d74),this['isReady']=!0x0;});}[_0x33f1('0x2b')](_0x1f8197,_0xe8814){const _0x463142=this[_0x33f1('0x105')][_0x33f1('0x45')](_0x1f8197);return _0x463142['on'](_0x33f1('0x108'),(_0x4ba0e4,_0x59ce65,_0x437df8)=>_0xe8814(_0x59ce65,_0x437df8,_0x463142)),this[_0x33f1('0x105')][_0x33f1('0x6')](_0x463142),_0x463142;}['loadRevisionData'](_0x32f5b5){if(!_0x32f5b5||_0x32f5b5[_0x33f1('0x1e')])return Promise['resolve']();{const _0x4786d0=this['editor'][_0x33f1('0x106')][_0x33f1('0x9e')](_0x33f1('0xe0'));return this['adapter'][_0x33f1('0x75')]({'channelId':_0x4786d0,'revisionId':_0x32f5b5['id']})[_0x33f1('0x71')](_0x3f52ce=>{_0x32f5b5[_0x33f1('0x108')]({'diffData':_0x3f52ce[_0x33f1('0x1e')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x33f1('0x54')](),this[_0x33f1('0x0')]&&this[_0x33f1('0x0')][_0x33f1('0x25')](),this[_0x33f1('0x0')]=null,this[_0x33f1('0x70')][_0x33f1('0x47')](),this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x101')]({'isUndoable':!0x1},_0x380f0=>{for(const _0xfda1b3 of this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0xc2')][_0x33f1('0xf4')]())_0x380f0[_0x33f1('0x1d')](_0xfda1b3);});}[_0x33f1('0x3c')](_0x1400d2){const _0x4d77a5=[],_0xefa965=new Map();for(const _0x3c79d4 of this[_0x33f1('0x59')]['model'][_0x33f1('0xc2')][_0x33f1('0xf4')]()){const _0x1ba4d7=this[_0x33f1('0x59')]['editing']['view']['getDomRoot'](_0x3c79d4);if(!_0x1ba4d7)continue;const _0x35e219=_0x1ba4d7[_0x33f1('0xe8')]()[_0x33f1('0x66')](0x0);_0x35e219&&(_0x4d77a5['push'](_0x3c79d4),_0xefa965[_0x33f1('0x17')](_0x3c79d4,_0x35e219));}return _0x4d77a5[_0x33f1('0xaf')]((_0x1836f5,_0x8e2907)=>{const _0xcee57c=_0xefa965[_0x33f1('0x9e')](_0x1836f5),_0x63ef81=_0xefa965[_0x33f1('0x9e')](_0x8e2907);return _0xcee57c['y']-_0x63ef81['y']||_0xcee57c['x']-_0x63ef81['x'];}),(_0x1400d2=_0x1400d2[_0x33f1('0x5')](_0xa7fb0c=>_0x4d77a5[_0x33f1('0xff')](_0xa7fb0c[_0x33f1('0xab')])))[_0x33f1('0xaf')]((_0x98661c,_0x3709b5)=>_0x4d77a5[_0x33f1('0x109')](_0x98661c['rootName'])-_0x4d77a5['indexOf'](_0x3709b5[_0x33f1('0xab')])),_0x1400d2;}['_makeTape'](_0x4a1b5b){const _0x99a89c=Array['from'](_0x4a1b5b[_0x33f1('0x5c')])[_0x33f1('0x5')](([_0x5a91f6,_0x29e76e])=>_0x5a91f6[_0x33f1('0xed')](_0x33f1('0x93'))&&!_0x29e76e[_0x33f1('0x118')]),_0x2c84f0=Array[_0x33f1('0x49')](this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x48')](_0x4a1b5b)[_0x33f1('0xca')]({'singleCharacters':!0x0}));if(0x0!=_0x99a89c[_0x33f1('0x57')])for(const _0x299bb7 of _0x2c84f0){const [_0x1f28ca,_0x5d25af]=_0x99a89c[0x0],[,_0x514df3,_0x3a90f7]=_0x1f28ca['split'](':');if(_0x5d25af[_0x33f1('0x11')][_0x33f1('0x6e')](_0x299bb7[_0x33f1('0xd3')])&&_0x99a89c[_0x33f1('0xdf')](),(_0x299bb7['previousPosition']['isEqual'](_0x5d25af[_0x33f1('0xd5')])||_0x299bb7['previousPosition'][_0x33f1('0x10b')](_0x5d25af[_0x33f1('0xd5')]))&&(_0x33f1('0x41')==_0x514df3?_0x299bb7[_0x33f1('0xd2')]={'userId':_0x3a90f7}:_0x33f1('0x16')==_0x514df3&&(_0x299bb7[_0x33f1('0x3')]={'userId':_0x3a90f7})),0x0==_0x99a89c[_0x33f1('0x57')])break;}return _0x2c84f0;}[_0x33f1('0x7b')](_0x3ae93d){const _0x1fc873=new Map();for(let _0x585a95=0x0;_0x585a95<_0x3ae93d['length'];_0x585a95++)_0x33f1('0x7e')===_0x3ae93d[_0x585a95][_0x33f1('0x9f')]?(_0x3ae93d[_0x585a95][_0x33f1('0x66')][_0x33f1('0xce')]=_0x585a95,_0x3ae93d[_0x585a95][_0x33f1('0x66')][_0x33f1('0x8')]=_0x585a95):('elementStart'===_0x3ae93d[_0x585a95][_0x33f1('0x9f')]?_0x3ae93d[_0x585a95][_0x33f1('0x66')][_0x33f1('0xce')]=_0x585a95:_0x33f1('0x97')===_0x3ae93d[_0x585a95][_0x33f1('0x9f')]&&(_0x3ae93d[_0x585a95][_0x33f1('0x66')][_0x33f1('0x8')]=_0x585a95),_0x1fc873['set'](_0x3ae93d[_0x585a95]['id'],_0x585a95));for(const _0x56fc02 of _0x1fc873[_0x33f1('0x1c')]())_0x33f1('0xb2')===_0x3ae93d[_0x56fc02]['type']?_0x3ae93d[_0x56fc02][_0x33f1('0x66')][_0x33f1('0x8')]=_0x1fc873[_0x33f1('0x9e')](_0x3ae93d[_0x56fc02][_0x33f1('0xa3')]):_0x33f1('0x97')===_0x3ae93d[_0x56fc02][_0x33f1('0x9f')]&&(_0x3ae93d[_0x56fc02][_0x33f1('0x66')][_0x33f1('0xce')]=_0x1fc873[_0x33f1('0x9e')](_0x3ae93d[_0x56fc02][_0x33f1('0xa3')]));}[_0x33f1('0xfb')](_0xfa441f){for(let _0x455570=0x0;_0x455570<_0xfa441f[_0x33f1('0x57')];_0x455570++){if('elementStart'===_0xfa441f[_0x455570][_0x33f1('0x9f')])_0xfa441f[_0x455570]['item'][_0x33f1('0xce')]=_0x455570;else{if(_0x33f1('0x97')===_0xfa441f[_0x455570][_0x33f1('0x9f')]){_0xfa441f[_0x455570][_0x33f1('0x66')][_0x33f1('0x8')]=_0x455570;const _0x1dd6d2=_0xfa441f[_0x455570][_0x33f1('0x66')][_0x33f1('0xce')];_0xfa441f[_0x1dd6d2]['pairId']=_0xfa441f[_0x455570]['id'],_0xfa441f[_0x455570][_0x33f1('0xa3')]=_0xfa441f[_0x1dd6d2]['id'];}else _0xfa441f[_0x455570][_0x33f1('0x66')][_0x33f1('0xce')]=_0x455570,_0xfa441f[_0x455570][_0x33f1('0x66')][_0x33f1('0x8')]=_0x455570,_0xfa441f[_0x455570][_0x33f1('0xa3')]=null;}_0xfa441f[_0x455570][_0x33f1('0xa4')]||(_0xfa441f[_0x455570][_0x33f1('0xa4')]=[],_0xfa441f[_0x455570][_0x33f1('0xbf')]=[]);}}[_0x33f1('0x79')](_0x232cb2,_0xef4469){const _0x135a29=_0x232cb2[_0x33f1('0x5')](_0x5596fa=>!_0x5596fa[_0x33f1('0xd2')]);for(let _0x54e513=0x0;_0x54e513<_0xef4469[_0x33f1('0x57')];_0x54e513++)_0xef4469[_0x54e513]['isAdded']&&(_0x135a29[_0x54e513][_0x33f1('0xd2')]=_0xef4469[_0x54e513][_0x33f1('0xd2')]);}[_0x33f1('0x37')](_0x170255){const _0xd07a3b=JSON[_0x33f1('0x1f')](_0x170255),_0x4e913e=this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0xc2')],_0xdaaf17=new _0x109958(_0x4e913e,_0xd07a3b[_0x33f1('0x5d')](_0x17ffe4=>this['_getViewObj'](_0x17ffe4)));return this['editor']['data'][_0x33f1('0xc7')](_0xdaaf17);}[_0x33f1('0x4a')](_0x18feda){const _0x2c2be7=this['editor'][_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0xc2')];if(_0x33f1('0x5e')==typeof _0x18feda)return new _0x376055(_0x2c2be7,_0x18feda);{const _0x3311d7=_0x18feda[_0x33f1('0x4d')][_0x33f1('0x5d')](_0x312fce=>this[_0x33f1('0x4a')](_0x312fce));return new(tt[_0x18feda[(_0x33f1('0x9f'))]]||_0xe18029)(_0x2c2be7,_0x18feda[_0x33f1('0x9d')],_0x18feda[_0x33f1('0xda')],_0x3311d7);}}['_getDiff'](_0x468213,_0x31a9eb=null){const _0x1fde22=this['repository']['getRevision'](_0x468213),_0x353597=_0x31a9eb?this[_0x33f1('0x105')]['getRevision'](_0x31a9eb):null,_0x4631c1=this[_0x33f1('0x33')](_0x1fde22,_0x353597),_0x95a04c=_0x4631c1[_0x4631c1[_0x33f1('0x57')]-0x1],_0x3a0219=new Map(),_0x35c639={'model':{},'attributes':{},'changes':[]},_0x123405=new Set(),_0x45d2d9=new Map();for(let _0x40bea9=_0x4631c1[_0x33f1('0x57')]-0x1;_0x40bea9>=0x0;_0x40bea9--){const _0x4291ba=_0x4631c1[_0x40bea9];for(const _0x79ed17 of Object[_0x33f1('0x63')](_0x4291ba[_0x33f1('0x1e')]))if(_0x4291ba['diffData'][_0x79ed17][_0x33f1('0x8e')]){const _0x11ca56=_0x4291ba[_0x33f1('0x1e')][_0x79ed17][_0x33f1('0x8e')];_0x11ca56['isAttached']?(_0x123405[_0x33f1('0xcb')](_0x79ed17),_0x45d2d9[_0x33f1('0xa7')](_0x79ed17)&&_0x45d2d9[_0x33f1('0x9e')](_0x79ed17)[_0x33f1('0x11f')]==_0x11ca56['userId']?_0x45d2d9['delete'](_0x79ed17):_0x45d2d9['set'](_0x79ed17,_0x11ca56)):_0x45d2d9[_0x33f1('0xa7')](_0x79ed17)?(_0x123405[_0x33f1('0x83')](_0x79ed17),_0x45d2d9[_0x33f1('0x83')](_0x79ed17)):(_0x123405[_0x33f1('0xcb')](_0x79ed17),_0x45d2d9[_0x33f1('0x17')](_0x79ed17,_0x11ca56));}else _0x123405[_0x33f1('0xcb')](_0x79ed17);}for(const _0x38151c of _0x123405){const _0x17023d=_0x45d2d9[_0x33f1('0xa7')](_0x38151c)&&!_0x45d2d9[_0x33f1('0x9e')](_0x38151c)[_0x33f1('0xb9')];let _0xe82460=_0x17023d?_0x4631c1[_0x33f1('0x57')]-0x1:0x0;const _0x97c228=_0x17023d?-0x1:0x1;for(;_0x4631c1[_0xe82460];){const _0x336374=_0x4631c1[_0xe82460];if(_0x336374[_0x33f1('0x1e')][_0x38151c]){const _0x1cef27=_0x17023d?_0x336374['diffData'][_0x38151c][_0x33f1('0xf9')]:_0x336374[_0x33f1('0x1e')][_0x38151c][_0x33f1('0xf8')];_0x35c639[_0x33f1('0xda')][_0x38151c]=_0x1cef27?_0x534c74(_0x1cef27):{};break;}_0xe82460+=_0x97c228;}}for(const _0x76aa4c of _0x4631c1){_0x76aa4c[_0x33f1('0x61')]={};for(const _0x4e0d87 of _0x76aa4c['authors'])_0x3a0219[_0x33f1('0x17')](_0x4e0d87['id'],_0x4e0d87);for(const _0x382d3b of _0x123405){const _0x431f42=_0x76aa4c['diffData'][_0x382d3b]?_0x76aa4c[_0x33f1('0x1e')][_0x382d3b][_0x33f1('0xea')]:'[]',_0x4b1b2d=_0x76aa4c['diffData'][_0x382d3b]?_0x76aa4c[_0x33f1('0x1e')][_0x382d3b]['deletions']:'[]';_0x76aa4c[_0x33f1('0x61')][_0x382d3b]={'insertions':this[_0x33f1('0x37')](_0x431f42),'deletions':this[_0x33f1('0x37')](_0x4b1b2d)};}}for(const _0x188564 of _0x123405){let _0x8fe3eb=null,_0x49e697=0x0;const _0x30a016=new Map(Array[_0x33f1('0x49')](_0x1fde22[_0x33f1('0x61')][_0x188564][_0x33f1('0xea')]['markers'])[_0x33f1('0x5')](([_0x5bf873])=>!_0x5bf873['startsWith'](_0x33f1('0x93'))));let _0x2b6557=0x0;for(const _0x30dcb3 of _0x4631c1){const _0x2d9ead=this['_makeTape'](_0x30dcb3['model'][_0x188564][_0x33f1('0xea')]);_0x30dcb3==_0x1fde22?(_0x8fe3eb=_0x2d9ead,_0x49e697=_0x8fe3eb[_0x33f1('0x57')],_0x8fe3eb[_0x33f1('0xd6')](_0x6461cb=>{_0x6461cb['id']=_0x2b6557++;}),this[_0x33f1('0xfb')](_0x8fe3eb)):this['_markInsertions'](_0x8fe3eb,_0x2d9ead);const _0x1893dc=_0x8fe3eb['filter'](_0x420822=>!_0x420822[_0x33f1('0xd2')])[_0x33f1('0x5d')](_0xf9704e=>_0xf9704e['id']);let _0x28562d=0x0;const _0x244d97=this[_0x33f1('0x53')](_0x30dcb3[_0x33f1('0x61')][_0x188564][_0x33f1('0xb3')]);_0x244d97['forEach'](_0x3107a1=>{_0x3107a1['isRemoved']?_0x3107a1['id']=_0x49e697++:_0x3107a1['id']=_0x1893dc[_0x28562d++];}),this[_0x33f1('0xfb')](_0x244d97),this[_0x33f1('0x81')](_0x8fe3eb,_0x33f1('0xd2')),this['_setDistance'](_0x244d97,_0x33f1('0x3')),_0x30dcb3==_0x1fde22&&this['_markMarkers'](_0x8fe3eb,_0x30a016),_0x8fe3eb=this[_0x33f1('0xe6')](_0x8fe3eb,_0x244d97),this['_refreshStartEndIndex'](_0x8fe3eb),this[_0x33f1('0x81')](_0x8fe3eb,_0x33f1('0x3'));}_0x8fe3eb=_0x8fe3eb[_0x33f1('0x5')](_0x54c25b=>!(_0x54c25b[_0x33f1('0xd2')]&&_0x54c25b['isRemoved']));const _0x1ab255=new Map(_0x95a04c[_0x33f1('0x61')][_0x188564]['deletions'][_0x33f1('0x5c')]),_0x41e44c=new Set(_0x30a016[_0x33f1('0x63')]());for(const _0x54e216 of _0x1ab255[_0x33f1('0x63')]())_0x41e44c['delete'](_0x54e216);this[_0x33f1('0x20')](_0x8fe3eb,_0x41e44c),this[_0x33f1('0xdc')](_0x8fe3eb),_0x8fe3eb=this['_removeMissingPairs'](_0x8fe3eb),_0x8fe3eb=this['_markMismatchedRemovedTags'](_0x8fe3eb),_0x8fe3eb=this['_removeUnsupportedChanges'](_0x8fe3eb);const {root:_0x348584,changes:_0x490a74}=this[_0x33f1('0x11e')](_0x8fe3eb,_0x3a0219,_0x188564);_0x35c639[_0x33f1('0x61')][_0x188564]=_0x348584;const _0x1c2632=_0x45d2d9[_0x33f1('0x9e')](_0x188564);if(_0x1c2632){const _0x3a4566=_0x3a0219[_0x33f1('0x9e')](_0x1c2632[_0x33f1('0x11f')]),_0x285ccf=new _0x530a17({'author':_0x3a4566,'type':_0x1c2632[_0x33f1('0xb9')]?_0x33f1('0xcb'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x188564});_0x490a74[_0x33f1('0x103')](_0x285ccf),_0x35c639[_0x33f1('0xda')][_0x188564][_0x33f1('0x90')]=_0x285ccf['id'];}_0x35c639['changes']=_0x35c639[_0x33f1('0x56')][_0x33f1('0x3d')](_0x490a74);}return _0x35c639;}[_0x33f1('0xac')](_0xf8059b,_0xf925b8){for(let _0x409816=0x0;_0x409816<_0xf8059b[_0x33f1('0x57')];_0x409816++)for(const [_0x436433,_0x5e5a64]of _0xf925b8)_0x5e5a64['start'][_0x33f1('0x6e')](_0xf8059b[_0x409816]['previousPosition'])&&_0xf8059b[_0x409816][_0x33f1('0xa4')][_0x33f1('0x2c')](_0x436433),_0x5e5a64['end'][_0x33f1('0x6e')](_0xf8059b[_0x409816]['nextPosition'])&&_0xf8059b[_0x409816][_0x33f1('0xbf')]['push'](_0x436433);}[_0x33f1('0xe6')](_0x2147f2,_0x4d00cd){let _0x4ccee5=[],_0x501db8=0x0,_0x5de040=0x0;for(;_0x501db8<_0x2147f2[_0x33f1('0x57')]||_0x5de040<_0x4d00cd['length'];){const _0x4ec3a2=_0x2147f2[_0x501db8]||{},_0x10c884=_0x4d00cd[_0x5de040]||{};if(_0x4ec3a2['id']==_0x10c884['id'])_0x501db8++,_0x5de040++,_0x4ccee5[_0x33f1('0x2c')](_0x4ec3a2);else{if(_0x10c884[_0x33f1('0x3')]&&_0x4ec3a2['isAdded']){const {commonTape:_0x5f029a,iEnd:_0x1f6ac9,jEnd:_0x5e4a24}=this[_0x33f1('0xd1')](_0x2147f2,_0x501db8,_0x4d00cd,_0x5de040);_0x4ccee5=_0x4ccee5[_0x33f1('0x3d')](_0x5f029a),_0x501db8=_0x1f6ac9,_0x5de040=_0x5e4a24;}else _0x10c884[_0x33f1('0x3')]?(_0x5de040++,_0x4ccee5[_0x33f1('0x2c')](_0x10c884)):(_0x501db8++,_0x4ccee5[_0x33f1('0x2c')](_0x4ec3a2));}}return _0x4ccee5;}[_0x33f1('0x20')](_0x2deb27,_0x491e63){const _0x1f59cc=[];for(let _0x202faa=0x0;_0x202faa<_0x2deb27['length'];_0x202faa++){for(let _0x1a0e61=0x0;_0x1a0e61<_0x2deb27[_0x202faa]['markersStart']['length'];_0x1a0e61++){const _0x225aee=_0x2deb27[_0x202faa][_0x33f1('0xa4')][_0x1a0e61];if(!_0x491e63[_0x33f1('0xa7')](_0x225aee))continue;const {group:_0x3a7bf1,type:_0x30bac4,authorId:_0x2cb867}=_0x534999(_0x225aee);_0x33f1('0xd7')!=_0x3a7bf1||_0x33f1('0x41')!=_0x30bac4&&_0x33f1('0x16')!=_0x30bac4||(_0x1f59cc[_0x33f1('0x103')]({'type':_0x30bac4,'name':_0x225aee,'userId':_0x2cb867}),_0x2deb27[_0x202faa][_0x33f1('0xa4')]['splice'](_0x1a0e61,0x1),_0x1a0e61--);}_0x4b8b32(_0x2deb27[_0x202faa]);for(let _0x4388d5=0x0;_0x4388d5<_0x2deb27[_0x202faa][_0x33f1('0xbf')][_0x33f1('0x57')];_0x4388d5++){const _0x1b7f6c=_0x2deb27[_0x202faa][_0x33f1('0xbf')][_0x4388d5];if(!_0x491e63[_0x33f1('0xa7')](_0x1b7f6c))continue;const {group:_0x40ca71,type:_0x355129}=_0x534999(_0x1b7f6c);if(_0x33f1('0xd7')!=_0x40ca71||_0x33f1('0x41')!=_0x355129&&_0x33f1('0x16')!=_0x355129)continue;_0x2deb27[_0x202faa][_0x33f1('0xbf')][_0x33f1('0x8b')](_0x4388d5,0x1),_0x4388d5--;const _0x2b10f2=_0x1f59cc[_0x33f1('0xb7')](_0x868196=>_0x868196[_0x33f1('0x9d')]==_0x1b7f6c);_0x2b10f2>-0x1&&_0x1f59cc[_0x33f1('0x8b')](_0x2b10f2,0x1);}}function _0x534999(_0x389a11){const _0x5e72e3=_0x389a11[_0x33f1('0x40')](':');return{'group':_0x5e72e3[0x0],'type':_0x5e72e3[0x1],'subType':_0x5e72e3['length']>=0x5?_0x5e72e3[0x2]:null,'id':_0x5e72e3[_0x33f1('0x57')]<0x5?_0x5e72e3[0x2]:_0x5e72e3[0x3],'authorId':_0x5e72e3[_0x33f1('0x57')]<0x5?_0x5e72e3[0x3]:_0x5e72e3[0x4],'markerCount':0x6==_0x5e72e3[_0x33f1('0x57')]?_0x5e72e3[0x5]:null};}function _0x4b8b32(_0x35af30){for(let _0x4bb004=0x0;_0x4bb004<_0x1f59cc['length'];_0x4bb004++){if(_0x35af30[_0x33f1('0xd2')]&&_0x33f1('0x41')==_0x1f59cc[_0x4bb004][_0x33f1('0x9f')])return _0x35af30[_0x33f1('0x46')]=_0x1f59cc[_0x4bb004],void delete _0x35af30[_0x33f1('0xd2')];if(!_0x35af30['isAdded']&&!_0x35af30['isRemoved']&&_0x33f1('0x16')==_0x1f59cc[_0x4bb004][_0x33f1('0x9f')])return void(_0x35af30[_0x33f1('0x62')]=_0x1f59cc[_0x4bb004]);}}}[_0x33f1('0x81')](_0x5e88be,_0x2b65c3){let _0x3b1bbf=0x0,_0x440da7=!0x1;const _0xfeb72f=new Map();for(const _0x537e56 of _0x5e88be)_0x537e56[_0x2b65c3]?_0x440da7&&(_0x3b1bbf++,_0x440da7=!0x1):(_0x3b1bbf++,_0x440da7=!0x0),_0xfeb72f[_0x33f1('0x17')](_0x537e56['id'],_0x3b1bbf);for(let _0xe99176=0x0;_0xe99176<_0x5e88be[_0x33f1('0x57')];_0xe99176++){if(_0x33f1('0x3')==_0x2b65c3&&_0x5e88be[_0xe99176][_0x33f1('0xd2')]||_0x33f1('0xd2')==_0x2b65c3&&_0x5e88be[_0xe99176][_0x33f1('0x3')])continue;if(_0x33f1('0x7e')==_0x5e88be[_0xe99176][_0x33f1('0x9f')]){_0x5e88be[_0xe99176][_0x33f1('0x32')]=0x0;continue;}const _0x55ecaf=_0xfeb72f[_0x33f1('0x9e')](_0x5e88be[_0xe99176][_0x33f1('0xa3')]),_0x197af9=_0xfeb72f[_0x33f1('0x9e')](_0x5e88be[_0xe99176]['id']);_0x5e88be[_0xe99176][_0x33f1('0x32')]=_0x55ecaf-_0x197af9;}}['_getRevisionsRange'](_0x36ff0,_0x1b629a,_0x5d8b4c=!0x1){const _0x4724b4=[];let _0x23a9ef=this[_0x33f1('0x105')][_0x33f1('0xc3')](_0x36ff0),_0x564394=this[_0x33f1('0x105')][_0x33f1('0xc3')](_0x1b629a);for(-0x1==_0x564394&&(_0x564394=this[_0x33f1('0x105')]['_revisions'][_0x33f1('0x57')],_0x5d8b4c=!0x1);_0x23a9ef<_0x564394;)_0x4724b4[_0x33f1('0x2c')](this['repository'][_0x33f1('0x75')](_0x23a9ef)),_0x23a9ef++;return _0x5d8b4c&&_0x4724b4[_0x33f1('0x2c')](this[_0x33f1('0x105')][_0x33f1('0x75')](_0x23a9ef)),_0x4724b4;}[_0x33f1('0xd1')](_0x554f77,_0x4a7cf6,_0x299df7,_0x2cf5eb){const _0x31de0a=this[_0x33f1('0x59')]['model'][_0x33f1('0x10e')];let _0x358788=_0x4a7cf6;for(;_0x554f77[_0x358788]&&_0x554f77[_0x358788]['isAdded'];)_0x358788++;let _0x2a49fe=_0x2cf5eb;for(;_0x299df7[_0x2a49fe]&&_0x299df7[_0x2a49fe]['isRemoved'];)_0x2a49fe++;_0x52f4f3(_0x554f77,_0x4a7cf6,_0x358788),_0x52f4f3(_0x299df7,_0x2cf5eb,_0x2a49fe);const _0x11a732=_0x299df7[_0x33f1('0x34')](_0x2cf5eb,_0x2a49fe)['concat'](_0x554f77[_0x33f1('0x34')](_0x4a7cf6,_0x358788));return _0x11a732['sort']((_0x1ec614,_0x38a611)=>_0x1ec614[_0x33f1('0x110')]!=_0x38a611[_0x33f1('0x110')]?_0x1ec614[_0x33f1('0x110')]-_0x38a611[_0x33f1('0x110')]:_0x1ec614[_0x33f1('0x85')]!=_0x38a611[_0x33f1('0x85')]?_0x1ec614['level']-_0x38a611[_0x33f1('0x85')]:_0x1ec614[_0x33f1('0x32')]!=_0x38a611[_0x33f1('0x32')]?_0x38a611[_0x33f1('0x32')]-_0x1ec614['distance']:!!_0x1ec614[_0x33f1('0xd2')]!=!!_0x38a611[_0x33f1('0xd2')]?-0x1==_0x1ec614['side']||0x0==_0x1ec614[_0x33f1('0x110')]?_0x1ec614[_0x33f1('0xd2')]?-0x1:0x1:_0x1ec614[_0x33f1('0xd2')]?0x1:-0x1:_0x1ec614[_0x33f1('0xcd')]-_0x38a611['index']),{'commonTape':_0x11a732,'iEnd':_0x358788,'jEnd':_0x2a49fe};function _0x52f4f3(_0xf33e35,_0x5c5c88,_0x3e5548){let _0x1eb31b=-0x1,_0x16b929=Number[_0x33f1('0x84')],_0x6ce896=!0x0;for(let _0x2f4c52=_0x5c5c88;_0x2f4c52<_0x3e5548;_0x2f4c52++)if(_0x31de0a[_0x33f1('0x51')](_0xf33e35[_0x2f4c52]['item'])||(_0x6ce896=!0x1),_0xf33e35[_0x2f4c52][_0x33f1('0x66')][_0x33f1('0xce')]<_0x5c5c88&&(_0x1eb31b=_0x2f4c52),_0xf33e35[_0x2f4c52][_0x33f1('0x66')][_0x33f1('0x8')]>=_0x3e5548){_0x16b929=_0x2f4c52;break;}_0x6ce896&&(_0x1eb31b=_0x3e5548-0x1);for(let _0x1169a0=_0x5c5c88;_0x1169a0<_0x3e5548;_0x1169a0++)_0xf33e35[_0x1169a0][_0x33f1('0x110')]=_0x1169a0<=_0x1eb31b?-0x1:_0x1169a0<_0x16b929?0x0:0x1,_0xf33e35[_0x1169a0]['index']=_0x1169a0;let _0x580fec=0x0;for(let _0x5a7d9e=_0x5c5c88;_0x5a7d9e<=_0x1eb31b;_0x5a7d9e++)0x0==_0xf33e35[_0x5a7d9e]['distance']?_0xf33e35[_0x5a7d9e][_0x33f1('0x85')]=_0x580fec:(_0x580fec++,_0xf33e35[_0x5a7d9e]['level']=_0x580fec,_0x580fec++);for(let _0x5e1c92=_0x5c5c88;_0x5e1c92<_0x3e5548;_0x5e1c92++)0x0==_0xf33e35[_0x5e1c92][_0x33f1('0x110')]&&(_0xf33e35[_0x5e1c92][_0x33f1('0x85')]=_0x580fec);_0x580fec=0x0;for(let _0x36a336=_0x3e5548-0x1;_0x36a336>=_0x16b929;_0x36a336--)0x0==_0xf33e35[_0x36a336][_0x33f1('0x32')]?_0xf33e35[_0x36a336][_0x33f1('0x85')]=_0x580fec:(_0x580fec--,_0xf33e35[_0x36a336]['level']=_0x580fec,_0x580fec--);}}[_0x33f1('0xdc')](_0x536a35){const _0x40f48d=new Map(),_0x1da67e=this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x10e')];for(let _0x19f670=0x1;_0x19f670<_0x536a35[_0x33f1('0x57')];_0x19f670++){let _0x2a8c82,_0x3bf8dd,_0x555526;const _0x4fb290=_0x536a35[_0x19f670],_0x5c1685=_0x536a35[_0x19f670-0x1];if(_0x33f1('0x7e')==_0x4fb290[_0x33f1('0x9f')])continue;if(_0x4fb290[_0x33f1('0x9f')]!=_0x5c1685['type'])continue;if(!_0x1da67e[_0x33f1('0x4c')](_0x5c1685[_0x33f1('0x66')])||_0x1da67e[_0x33f1('0x6b')](_0x5c1685['item']))continue;if(!_0x1da67e[_0x33f1('0x4c')](_0x4fb290[_0x33f1('0x66')])||_0x1da67e['isLimit'](_0x4fb290[_0x33f1('0x66')]))continue;if((_0x536a35[_0x19f670][_0x33f1('0xd2')]||_0x536a35[_0x19f670][_0x33f1('0x46')])&&_0x536a35[_0x19f670-0x1][_0x33f1('0x3')])_0x2a8c82=_0x536a35[_0x19f670],_0x3bf8dd=_0x536a35[_0x19f670-0x1],_0x555526=_0x19f670-0x1;else{if(!_0x536a35[_0x19f670][_0x33f1('0x3')]||!_0x536a35[_0x19f670-0x1][_0x33f1('0xd2')]&&!_0x536a35[_0x19f670-0x1][_0x33f1('0x46')])continue;_0x2a8c82=_0x536a35[_0x19f670-0x1],_0x3bf8dd=_0x536a35[_0x19f670],_0x555526=_0x19f670;}const _0x2f2249=_0x2a8c82[_0x33f1('0x85')]==_0x3bf8dd[_0x33f1('0x85')],_0x27fa6a=Math['abs'](_0x2a8c82[_0x33f1('0x85')])<Math[_0x33f1('0x2d')](_0x3bf8dd[_0x33f1('0x85')])&&0x0==_0x3bf8dd[_0x33f1('0x32')];(_0x2f2249||_0x27fa6a)&&(_0x40f48d[_0x33f1('0x17')](_0x3bf8dd['id'],_0x2a8c82['id']),_0x536a35['splice'](_0x555526,0x1),_0x19f670--,_0x2a8c82[_0x33f1('0xd2')]=!0x1);}for(let _0x550a8f=0x0;_0x550a8f<_0x536a35['length'];_0x550a8f++)_0x40f48d[_0x33f1('0xa7')](_0x536a35[_0x550a8f]['pairId'])&&(_0x536a35[_0x550a8f][_0x33f1('0xa3')]=_0x40f48d['get'](_0x536a35[_0x550a8f]['pairId']));}[_0x33f1('0xa')](_0x3bae7a){const _0x16bd30=new Set(_0x3bae7a['map'](_0x36761d=>_0x36761d['id']));for(let _0x5e1e78=0x0;_0x5e1e78<_0x3bae7a[_0x33f1('0x57')];_0x5e1e78++)_0x16bd30[_0x33f1('0xa7')](_0x3bae7a[_0x5e1e78]['pairId'])||0x0==_0x3bae7a[_0x5e1e78][_0x33f1('0x32')]||(_0x3bae7a[_0x5e1e78][_0x33f1('0x3f')]=!0x0);return _0x3bae7a['filter'](_0x25e7e1=>!_0x25e7e1[_0x33f1('0x3f')]);}[_0x33f1('0x60')](_0x1f7e3b){const _0x557999=new Set();for(let _0x20424e=0x0;_0x20424e<_0x1f7e3b[_0x33f1('0x57')];_0x20424e++){if(_0x557999['has'](_0x1f7e3b[_0x20424e]['id'])&&_0x1f7e3b[_0x20424e]['isRemoved']&&(_0x1f7e3b[_0x20424e][_0x33f1('0x3f')]=!0x0),_0x1f7e3b[_0x20424e]['isIncorrect'])continue;if(0x0==_0x1f7e3b[_0x20424e][_0x33f1('0x32')])continue;if(_0x33f1('0xb2')!=_0x1f7e3b[_0x20424e]['type'])continue;if(null==_0x1f7e3b[_0x20424e][_0x33f1('0xa3')])continue;let _0x220eb0=_0x20424e+0x1,_0x31a88a=0x0;for(;_0x1f7e3b[_0x220eb0]['id']!=_0x1f7e3b[_0x20424e]['pairId'];)'elementStart'==_0x1f7e3b[_0x220eb0][_0x33f1('0x9f')]?_0x31a88a++:_0x33f1('0x97')==_0x1f7e3b[_0x220eb0][_0x33f1('0x9f')]&&_0x31a88a--,_0x220eb0++;if(0x0!=_0x31a88a){if(_0x1f7e3b[_0x20424e][_0x33f1('0x3')])_0x1f7e3b[_0x20424e][_0x33f1('0x3f')]=!0x0;else for(;_0x220eb0!=_0x20424e;)_0x1f7e3b[_0x220eb0][_0x33f1('0x3')]&&0x0!=_0x1f7e3b[_0x220eb0][_0x33f1('0x32')]&&(_0x1f7e3b[_0x220eb0][_0x33f1('0x3f')]=!0x0,_0x557999[_0x33f1('0xcb')](_0x1f7e3b[_0x220eb0][_0x33f1('0xa3')])),_0x220eb0--;}}return _0x1f7e3b[_0x33f1('0x5')](_0x668422=>!_0x668422['isIncorrect']);}['_removeUnsupportedChanges'](_0x47694a){const _0x867880=this['editor']['model'][_0x33f1('0x10e')];for(let _0x40dd3f=0x0;_0x40dd3f<_0x47694a['length'];_0x40dd3f++){if(!(_0x47694a[_0x40dd3f][_0x33f1('0xd2')]||_0x47694a[_0x40dd3f][_0x33f1('0x46')]||_0x47694a[_0x40dd3f][_0x33f1('0x3')]||_0x47694a[_0x40dd3f]['isRemoveSuggestion']))continue;if(0x0==_0x47694a[_0x40dd3f][_0x33f1('0x32')])continue;const _0xa65fbb=_0x47694a[_0x40dd3f][_0x33f1('0x66')];_0x867880[_0x33f1('0x4c')](_0xa65fbb)||_0x867880[_0x33f1('0x6b')](_0xa65fbb)||(_0x47694a[_0x40dd3f]['isAdded']&&delete _0x47694a[_0x40dd3f][_0x33f1('0xd2')],_0x47694a[_0x40dd3f]['isAddSuggestion']&&delete _0x47694a[_0x40dd3f][_0x33f1('0x46')],_0x47694a[_0x40dd3f][_0x33f1('0x62')]&&delete _0x47694a[_0x40dd3f][_0x33f1('0x62')],_0x47694a[_0x40dd3f][_0x33f1('0x3')]&&(_0x47694a[_0x40dd3f]['isIncorrect']=!0x0));}return _0x47694a[_0x33f1('0x5')](_0x2df924=>!_0x2df924[_0x33f1('0x3f')]);}['_makeModelFromTape'](_0x2c410b,_0x2d2650,_0x59f4f7){const _0x50c8e6=new _0x1c3171(),_0x152140=[],_0x330c1d=new Map(),_0x4d5a25=this[_0x33f1('0x59')][_0x33f1('0x61')],_0xdaa1e9=_0x4d5a25[_0x33f1('0x10e')],_0x31c116=[_0x50c8e6],_0x21f3f7={},_0x238f2c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x33016b=null;const _0x2e0559=[0x0];for(let _0x16552c=0x0;_0x16552c<_0x2c410b[_0x33f1('0x57')];_0x16552c++){let _0x1bfade,_0x2c0b73;if(_0x33f1('0xb2')===_0x2c410b[_0x16552c][_0x33f1('0x9f')]){_0x1bfade=_0x4d5a25[_0x33f1('0x77')](_0x50c8e6,_0x2e0559);const _0x358f48=new _0x5d6db1(_0x2c410b[_0x16552c][_0x33f1('0x66')][_0x33f1('0x9d')],_0x2c410b[_0x16552c][_0x33f1('0x66')][_0x33f1('0xc5')]());_0x31c116[0x0][_0x33f1('0xb6')](_0x358f48),_0x2e0559[_0x33f1('0x2c')](0x0),_0x31c116[_0x33f1('0x103')](_0x358f48),_0x2c0b73=_0x4d5a25['createPositionFromPath'](_0x50c8e6,_0x2e0559),_0x33016b=null;}else{if(_0x33f1('0x97')===_0x2c410b[_0x16552c]['type'])_0x31c116[_0x33f1('0xdf')](),_0x1bfade=_0x4d5a25[_0x33f1('0x77')](_0x50c8e6,_0x2e0559),_0x2e0559[_0x33f1('0x121')](),_0x2e0559[_0x2e0559['length']-0x1]++,_0x2c0b73=_0x4d5a25[_0x33f1('0x77')](_0x50c8e6,_0x2e0559),_0x33016b=null;else{if(_0x1bfade=_0x4d5a25['createPositionFromPath'](_0x50c8e6,_0x2e0559),_0x33016b&&_0x556a09(_0x33016b,_0x2c410b[_0x16552c][_0x33f1('0x66')]))_0x33016b[_0x33f1('0x6f')]+=_0x2c410b[_0x16552c][_0x33f1('0x66')][_0x33f1('0xeb')];else{const _0x5d7af9=new _0x5769c8(_0x2c410b[_0x16552c]['item'][_0x33f1('0xeb')],_0x2c410b[_0x16552c][_0x33f1('0x66')][_0x33f1('0xc5')]());_0x31c116[0x0][_0x33f1('0xb6')](_0x5d7af9),_0x33016b=_0x5d7af9;}_0x2e0559[_0x2e0559[_0x33f1('0x57')]-0x1]+=_0x2c410b[_0x16552c]['item'][_0x33f1('0xec')],_0x2c0b73=_0x4d5a25['createPositionFromPath'](_0x50c8e6,_0x2e0559);}}for(const _0x21560c of _0x2c410b[_0x16552c][_0x33f1('0xa4')])_0x330c1d['set'](_0x21560c,{'start':_0x1bfade,'end':null});_0x1eac05('isRemoveSuggestion',_0x16552c,_0x1bfade,_0x2c0b73),_0x1eac05(_0x33f1('0x46'),_0x16552c,_0x1bfade,_0x2c0b73),_0x1eac05('isRemoved',_0x16552c,_0x1bfade,_0x2c0b73),_0x1eac05(_0x33f1('0xd2'),_0x16552c,_0x1bfade,_0x2c0b73);for(const _0x433b69 of _0x2c410b[_0x16552c]['markersEnd']){_0x330c1d[_0x33f1('0x9e')](_0x433b69)['end']=_0x2c0b73;}}for(const [_0x5d652e,_0x1b3f62]of _0x330c1d){const _0x4469eb=this['editor'][_0x33f1('0x61')][_0x33f1('0xf1')](_0x1b3f62[_0x33f1('0xd5')],_0x1b3f62[_0x33f1('0x11')]);_0x50c8e6['markers'][_0x33f1('0x17')](_0x5d652e,_0x4469eb);}return _0x152140[_0x33f1('0xaf')]((_0x3c9fde,_0x47db54)=>{const _0x48eb15=_0x50c8e6[_0x33f1('0x5c')][_0x33f1('0x9e')](_0x33f1('0x93')+_0x3c9fde['id']),_0x156b2a=_0x50c8e6[_0x33f1('0x5c')][_0x33f1('0x9e')](_0x33f1('0x93')+_0x47db54['id']);return _0x48eb15[_0x33f1('0xd5')][_0x33f1('0x4f')](_0x156b2a['start'])?-0x1:_0x48eb15[_0x33f1('0xd5')][_0x33f1('0x10b')](_0x156b2a[_0x33f1('0xd5')])?0x1:_0x48eb15[_0x33f1('0x11')]['isBefore'](_0x156b2a[_0x33f1('0x11')])?-0x1:_0x48eb15['end'][_0x33f1('0x10b')](_0x156b2a[_0x33f1('0x11')])?0x1:'add'===_0x3c9fde[_0x33f1('0x9f')]?-0x1:0x1;}),{'root':_0x50c8e6,'changes':_0x152140};function _0x1eac05(_0x204353,_0x5bb937,_0x1427b7,_0x1d0b10){const _0x4695c1=!!_0x2c410b[_0x5bb937][_0x204353],_0x5a8bc3=_0x4695c1?_0x2c410b[_0x5bb937][_0x204353]['userId']:null,_0x22ee40=_0x5bb937===_0x2c410b[_0x33f1('0x57')]-0x1,_0x2dfde1=_0x238f2c[_0x204353][0x0],_0x44cb83=_0xdaa1e9[_0x33f1('0x10d')](_0x2c410b[_0x5bb937][_0x33f1('0x66')]);!_0x21f3f7[_0x204353]&&_0x4695c1?_0x21f3f7[_0x204353]={'start':_0x1427b7,'tapeItem':_0x2c410b[_0x5bb937],'userId':_0x5a8bc3,'type':_0x204353}:_0x21f3f7[_0x204353]&&!_0x4695c1?(_0x21f3f7[_0x204353][_0x33f1('0x11')]=_0x1427b7,_0x3b56fc(_0x21f3f7[_0x204353]),_0x21f3f7[_0x204353]=null):_0x21f3f7[_0x204353]&&_0x4695c1&&_0x21f3f7[_0x204353][_0x33f1('0x11f')]!==_0x5a8bc3&&(_0x21f3f7[_0x204353][_0x33f1('0x11')]=_0x1427b7,_0x2dfde1&&_0x2dfde1['userId']===_0x21f3f7[_0x204353][_0x33f1('0x11f')]||_0x3b56fc(_0x21f3f7[_0x204353]),_0x21f3f7[_0x204353]={'start':_0x1427b7,'tapeItem':_0x2c410b[_0x5bb937],'userId':_0x5a8bc3,'type':_0x204353}),_0x21f3f7[_0x204353]&&_0x44cb83&&(_0x33f1('0xb2')!==_0x2c410b[_0x5bb937][_0x33f1('0x9f')]||_0x2dfde1&&_0x2dfde1[_0x33f1('0x11f')]===_0x5a8bc3||_0x238f2c[_0x204353][_0x33f1('0x103')]({'userId':_0x5a8bc3,'object':_0x2c410b[_0x5bb937][_0x33f1('0x66')],'change':_0x21f3f7[_0x204353]}),_0x33f1('0x97')===_0x2c410b[_0x5bb937]['type']&&_0x2dfde1&&_0x2dfde1[_0x33f1('0x74')]===_0x2c410b[_0x5bb937][_0x33f1('0x66')]&&(_0x238f2c[_0x204353][_0x33f1('0xdf')](),_0x21f3f7[_0x204353]=_0x2dfde1[_0x33f1('0x55')])),_0x21f3f7[_0x204353]&&_0x22ee40&&(_0x21f3f7[_0x204353][_0x33f1('0x11')]=_0x1d0b10,_0x3b56fc(_0x21f3f7[_0x204353]),_0x21f3f7[_0x204353]=null);}function _0x3b56fc({start:_0x1444df,end:_0x5c1feb,tapeItem:_0x1bfbec,userId:_0x33ba39,type:_0x562492}){const _0xba256d=_0x1bfbec[_0x33f1('0x66')],_0x5f3959=_0x4d5a25[_0x33f1('0x10e')][_0x33f1('0x4c')](_0xba256d)&&!_0x4d5a25[_0x33f1('0x10e')][_0x33f1('0x6b')](_0xba256d),_0x435ab9=_0x1444df[_0x33f1('0xae')]==_0x5c1feb['parent']&&_0x5c1feb[_0x33f1('0x88')];if(_0x5f3959&&_0x435ab9)return;const _0x26f5cb=_0x4d5a25[_0x33f1('0xf1')](_0x1444df,_0x5c1feb),_0x3e5487=_0x2d2650[_0x33f1('0x9e')](_0x33ba39),_0x38d3c6=new _0x530a17({'author':_0x3e5487,'type':_0x33f1('0xd2')==_0x562492||_0x33f1('0x46')==_0x562492?_0x33f1('0xcb'):_0x33f1('0x2e'),'data':{'isSuggestion':_0x33f1('0x46')==_0x562492||'isRemoveSuggestion'==_0x562492},'createdAt':new Date(),'rootName':_0x59f4f7});_0x152140['push'](_0x38d3c6),_0x50c8e6[_0x33f1('0x5c')][_0x33f1('0x17')]('revision:'+_0x38d3c6['id'],_0x26f5cb);}function _0x556a09(_0x40f28a,_0x20cef9){const _0x37cdc3=_0x40f28a[_0x33f1('0xc5')](),_0x303c34=_0x20cef9['getAttributes']();for(const _0x498963 of _0x37cdc3){if(_0x498963[0x1]!==_0x20cef9[_0x33f1('0x1a')](_0x498963[0x0]))return!0x1;_0x303c34[_0x33f1('0xaa')]();}return _0x303c34[_0x33f1('0xaa')]()['done'];}}[_0x33f1('0x7f')](){this[_0x33f1('0x59')][_0x33f1('0x116')]['for'](_0x33f1('0xfa'))[_0x33f1('0x22')]({'view':_0x33f1('0xe9')}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0x82'))['markerToHighlight']({'model':_0x33f1('0xe9'),'view':_0x5191f4=>{const _0x5ef2b2=_0x5191f4[_0x33f1('0x8a')][_0x33f1('0x40')](':')[0x1],_0x2895a9=this[_0x33f1('0x31')](_0x5ef2b2);if(!_0x2895a9)return null;const _0x4d6237=_0x33f1('0xcb')==_0x2895a9[_0x33f1('0x9f')]?_0x33f1('0x41'):_0x33f1('0x16'),_0x559a98=[_0x33f1('0x4'),'ck-suggestion-marker-'+_0x4d6237];return _0x2895a9['data'][_0x33f1('0x113')]&&_0x559a98[_0x33f1('0x2c')](_0x33f1('0x8f')+_0x4d6237+_0x33f1('0x15')),this['activeChange']==_0x2895a9&&_0x559a98[_0x33f1('0x2c')]('ck-suggestion-marker--active'),{'classes':_0x559a98,'attributes':{'data-change-id':_0x5ef2b2}};}}),this['editor']['conversion'][_0x33f1('0xb0')]('upcast')[_0x33f1('0xcb')](_0xe99711=>{_0xe99711['on'](_0x33f1('0x5a'),(_0x2af955,_0x2833d0,_0x4d5a89)=>{const _0x96979b=_0x2833d0[_0x33f1('0xa8')][_0x33f1('0x3a')](0x0);if(!_0x96979b||!_0x96979b['is'](_0x33f1('0xdb'),_0x33f1('0xb5')))return;if(!_0x4d5a89[_0x33f1('0x43')][_0x33f1('0x13')](_0x96979b,{'attributes':[_0x33f1('0xef'),_0x33f1('0xde')]}))return;const _0x2c618f=_0x2833d0[_0x33f1('0xd9')][_0x33f1('0xd5')][_0x33f1('0xae')];_0x4d5a89['writer']['setAttribute']('vid_start',_0x96979b[_0x33f1('0x1a')](_0x33f1('0xef')),_0x2c618f),_0x4d5a89[_0x33f1('0x111')][_0x33f1('0xa2')](_0x33f1('0xde'),_0x96979b[_0x33f1('0x1a')]('vid_end'),_0x2c618f);},{'priority':_0x33f1('0xbc')});}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xfa'))['add'](_0x5f05cd=>{_0x5f05cd['on'](_0x33f1('0xdb'),(_0x4df8d5,_0x3b2d5d,_0x529a02)=>{if(!_0x529a02[_0x33f1('0x43')][_0x33f1('0x13')](_0x3b2d5d[_0x33f1('0xa8')],{'attributes':[_0x33f1('0xef'),'vid_end']}))return;if(_0x3b2d5d[_0x33f1('0xd9')][_0x33f1('0x118')])return;const _0x3f6580=_0x3b2d5d[_0x33f1('0xd9')]['start'][_0x33f1('0xae')];_0x3f6580[_0x33f1('0x114')]('vid_start')||_0x3f6580[_0x33f1('0x114')]('vid')||(_0x529a02[_0x33f1('0x111')][_0x33f1('0xa2')]('vid_start',_0x3b2d5d[_0x33f1('0xa8')][_0x33f1('0x1a')]('vid_start'),_0x3f6580),_0x529a02[_0x33f1('0x111')][_0x33f1('0xa2')]('vid_end',_0x3b2d5d['viewItem'][_0x33f1('0x1a')](_0x33f1('0xde')),_0x3f6580));},{'priority':'low'});}),this[_0x33f1('0x59')][_0x33f1('0x116')]['for']('upcast')['elementToAttribute']({'view':{'name':_0x33f1('0x4e'),'attributes':{'vid':!0x0}},'model':{'key':_0x33f1('0xb'),'value':_0x547ab3=>_0x547ab3['getAttribute'](_0x33f1('0xb'))}}),this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x10e')]['on']('checkAttribute',(_0x461ec2,[,_0x57d4f1])=>{['vid_start',_0x33f1('0xde'),'vid']['includes'](_0x57d4f1)&&(_0x461ec2[_0x33f1('0xb8')]=!0x0,_0x461ec2['stop']());},{'priority':_0x33f1('0xf0')}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xd8'))[_0x33f1('0xcb')](_0x403b11=>{_0x403b11['on'](_0x33f1('0x7c'),(_0x27ef56,_0x3f802f,_0x53a7c5)=>{if('\x20'!=_0x3f802f[_0x33f1('0x66')][_0x33f1('0xeb')]||_0x3f802f[_0x33f1('0x66')][_0x33f1('0xbb')][_0x33f1('0x6c')]>0x1)return;if(!_0x53a7c5[_0x33f1('0x43')][_0x33f1('0x13')](_0x3f802f[_0x33f1('0x66')],_0x27ef56[_0x33f1('0x9d')]))return;const _0x3f3248=_0x53a7c5[_0x33f1('0x111')],_0x1d4a6a=_0x53a7c5[_0x33f1('0x80')][_0x33f1('0x38')](_0x3f802f['range']);_0x3f3248['wrap'](_0x1d4a6a,_0x3f3248['createAttributeElement'](_0x33f1('0x4e')));});}),this['editor'][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xd8'))['markerToData']({'model':_0x33f1('0xe9')}),this[_0x33f1('0x59')]['editing'][_0x33f1('0xba')]['on'](_0x33f1('0x8c'),function(_0x2645dd){const _0x5dab52=_0x2645dd[_0x33f1('0x119')][_0x33f1('0x9e')](_0x33f1('0x10'));return(_0x2d4ce7,_0x23c6b9,_0x1abd10)=>{const _0x5aabdb=_0x23c6b9['markerName']['split'](':')[0x1],_0x352f07=_0x5dab52[_0x33f1('0x31')](_0x5aabdb);if(!_0x352f07)return null;const _0x307dde='add'==_0x352f07[_0x33f1('0x9f')]?_0x33f1('0x40'):_0x33f1('0xb1');if(!_0x1abd10[_0x33f1('0x43')][_0x33f1('0xee')](_0x23c6b9[_0x33f1('0x65')],_0x2d4ce7[_0x33f1('0x9d')]))return;const _0x481cf1=_0x23c6b9[_0x33f1('0x65')][_0x33f1('0xca')](),_0x47ad1a=_0x23c6b9['markerRange'][_0x33f1('0xd5')],_0x25c737=_0x2645dd[_0x33f1('0x61')][_0x33f1('0x10e')];let _0x30af56=null,_0x588aab=null,_0x40f8fd=!0x1,_0xadbc0c=!0x1;for(const _0x4eb011 of _0x481cf1){const _0x1fa850=_0x4eb011[_0x33f1('0x66')];_0x40f8fd=_0x40f8fd||_0x25c737['isContent'](_0x1fa850);const _0x3b604a=_0x1abd10['mapper'][_0x33f1('0x3e')](_0x1fa850);if(_0x3b604a&&_0x3b604a[_0x33f1('0x86')]('addHighlight'))return;_0x33f1('0x97')==_0x4eb011['type']&&(_0x25c737[_0x33f1('0x4c')](_0x1fa850)&&!_0x25c737['isLimit'](_0x1fa850)&&(_0x1fa850['nextSibling']||_0x47ad1a['isAtEnd']?_0x30af56&&_0x30af56[_0x33f1('0xbb')]==_0x1fa850||(_0x30af56=_0x1fa850,_0x3528a1(_0x4eb011[_0x33f1('0x27')]),_0xadbc0c=!0x0):_0x588aab=_0x588aab||_0x4eb011[_0x33f1('0x27')]));}function _0x3528a1(_0x487a30){const _0x1c22f4=_0x1abd10[_0x33f1('0x111')][_0x33f1('0xc9')]('span',{'class':_0x33f1('0x8f')+_0x307dde}),_0x175b72=_0x1abd10[_0x33f1('0x80')]['toViewPosition'](_0x487a30);_0x352f07[_0x33f1('0xeb')][_0x33f1('0x113')]&&_0x1abd10[_0x33f1('0x111')][_0x33f1('0x7a')](_0x33f1('0x8f')+_0x307dde+_0x33f1('0x15'),_0x1c22f4),_0x5dab52[_0x33f1('0xf2')]==_0x352f07&&_0x1abd10[_0x33f1('0x111')][_0x33f1('0x7a')](_0x33f1('0xc8'),_0x1c22f4),_0x1abd10[_0x33f1('0x111')][_0x33f1('0x14')](_0x175b72,_0x1c22f4),_0x1abd10[_0x33f1('0x80')]['bindElementToMarker'](_0x1c22f4,_0x23c6b9[_0x33f1('0x8a')]);}_0x40f8fd||_0xadbc0c||!_0x588aab||_0x3528a1(_0x588aab);};}(this['editor']),{'priority':_0x33f1('0xa9')}),this[_0x33f1('0x59')][_0x33f1('0xfe')]['downcastDispatcher']['on'](_0x33f1('0x99'),(_0x46f28f,_0x1370a8,_0x5e994e)=>{const _0x1a8d1e=_0x5e994e[_0x33f1('0x80')]['markerNameToElements'](_0x1370a8[_0x33f1('0x8a')]);if(_0x1a8d1e)for(const _0x31ba58 of _0x1a8d1e)(_0x31ba58[_0x33f1('0x102')](_0x33f1('0x2f'))||_0x31ba58[_0x33f1('0x102')](_0x33f1('0x6a')))&&(_0x5e994e[_0x33f1('0x80')]['unbindElementFromMarkerName'](_0x31ba58,_0x1370a8[_0x33f1('0x8a')]),_0x5e994e[_0x33f1('0x111')][_0x33f1('0x2e')](_0x31ba58));},{'priority':_0x33f1('0xa9')}),this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xba')]['on'](_0x33f1('0x8c'),(_0xa9cfcc,_0x3480f0,_0x291784)=>{const _0x1bfe28=_0x3480f0[_0x33f1('0x8a')]['split'](':')[0x1],_0xde8351=this[_0x33f1('0x31')](_0x1bfe28);if(!_0xde8351)return null;const _0x19d2ce=_0x33f1('0xcb')==_0xde8351['type']?_0x33f1('0x40'):_0x33f1('0xb1');if(_0x291784[_0x33f1('0x43')][_0x33f1('0xee')](_0x3480f0[_0x33f1('0x65')],_0xa9cfcc['name']))for(const _0x46be29 of _0x3480f0[_0x33f1('0x65')][_0x33f1('0x115')]()){if(!_0x46be29['is']('element',_0x33f1('0xa5')))continue;const _0x405e24=_0x291784[_0x33f1('0x111')][_0x33f1('0xc9')]('span',{'class':'ck-suggestion-marker-'+_0x19d2ce}),_0x23bcce=_0x291784[_0x33f1('0x80')][_0x33f1('0x9a')](this[_0x33f1('0x59')][_0x33f1('0x61')]['createPositionBefore'](_0x46be29));_0xde8351['data']['isSuggestion']&&_0x291784[_0x33f1('0x111')][_0x33f1('0x7a')](_0x33f1('0x8f')+_0x19d2ce+_0x33f1('0x15'),_0x405e24),this[_0x33f1('0xf2')]==_0xde8351&&_0x291784[_0x33f1('0x111')][_0x33f1('0x7a')](_0x33f1('0xc8'),_0x405e24),_0x291784[_0x33f1('0x111')][_0x33f1('0x14')](_0x23bcce,_0x405e24),_0x291784[_0x33f1('0x80')][_0x33f1('0x91')](_0x405e24,_0x3480f0[_0x33f1('0x8a')]);}},{'priority':_0x33f1('0xa9')}),this['editor'][_0x33f1('0x61')][_0x33f1('0xc2')]['on']('change',()=>{this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0x55')](_0x541e8f=>{for(const _0x27a73d of this[_0x33f1('0x59')]['model']['document'][_0x33f1('0xf4')]()){const _0x6dd381=this[_0x33f1('0x59')]['model']['document'][_0x33f1('0x95')](_0x27a73d),_0x1ebbac=this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')]['document'][_0x33f1('0x95')](_0x27a73d);if(_0x1ebbac){const _0x4618df=_0x6dd381[_0x33f1('0x1a')](_0x33f1('0x90'));if(_0x541e8f[_0x33f1('0xf5')](_0x33f1('0x2'),_0x1ebbac),_0x541e8f[_0x33f1('0x69')](_0x33f1('0x72'),_0x1ebbac),_0x541e8f[_0x33f1('0x69')](_0x33f1('0x23'),_0x1ebbac),_0x541e8f[_0x33f1('0x69')]('ck-revision-history-root--active',_0x1ebbac),_0x4618df){const _0x28737e=this[_0x33f1('0x31')](_0x4618df);if(!_0x28737e)return null;_0x541e8f[_0x33f1('0xa2')](_0x33f1('0x2'),_0x4618df,_0x1ebbac),_0x541e8f[_0x33f1('0x7a')](_0x33f1('0x7')+_0x28737e[_0x33f1('0x9f')],_0x1ebbac),this[_0x33f1('0xf2')]==_0x28737e&&_0x541e8f[_0x33f1('0x7a')](_0x33f1('0x2a'),_0x1ebbac);}}}});}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xfa'))[_0x33f1('0x22')]({'view':_0x33f1('0x28'),'model':_0x2e693e=>'revision-comment:'+_0x2e693e,'converterPriority':_0x33f1('0xf0')}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xfa'))[_0x33f1('0x22')]({'view':_0x33f1('0xe1'),'model':_0x4218ef=>_0x33f1('0xf7')+_0x4218ef,'converterPriority':_0x33f1('0xf0')}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xd8'))['markerToData']({'model':_0x33f1('0xd7'),'view':_0x1dfbad=>({'name':'suggestion:'+_0x1dfbad,'group':'revision-suggestion'}),'converterPriority':_0x33f1('0xf0')}),this[_0x33f1('0x59')]['conversion'][_0x33f1('0xb0')]('editingDowncast')[_0x33f1('0xb4')]({'model':_0x33f1('0xd7'),'view':_0x304883=>{const _0x3f53fc=_0x304883[_0x33f1('0x8a')][_0x33f1('0x40')](':')[0x1];return'insertion'!=_0x3f53fc&&_0x33f1('0x16')!=_0x3f53fc?null:{'classes':[_0x33f1('0x10f'),'ck-suggestion-preview-marker-'+_0x3f53fc]};}}),this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xba')]['on'](_0x33f1('0xd0'),et(this[_0x33f1('0x59')],_0x33f1('0xb1')),{'priority':_0x33f1('0xa9')}),this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xba')]['on'](_0x33f1('0x4b'),et(this[_0x33f1('0x59')],'split'),{'priority':_0x33f1('0xa9')}),this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xba')]['on']('removeMarker:revision-suggestion',(_0x585bcf,_0x33e439,_0x141f47)=>{const _0x3e844a=_0x141f47['mapper'][_0x33f1('0xdd')](_0x33e439['markerName']);if(_0x3e844a)for(const _0x5f492e of _0x3e844a)_0x5f492e['is'](_0x33f1('0x30'))&&(_0x141f47['mapper'][_0x33f1('0x7d')](_0x5f492e,_0x33e439[_0x33f1('0x8a')]),_0x141f47[_0x33f1('0x111')][_0x33f1('0x2e')](_0x5f492e));},{'priority':'high'});}[_0x33f1('0x31')](_0x2ac1d5){return this['_changeIdToChange']['get'](_0x2ac1d5);}['_getViewForChange'](_0x3018c4){return this[_0x33f1('0x0')]&&this[_0x33f1('0x0')][_0x33f1('0x25')](),this[_0x33f1('0x0')]=new _0x4d9298(this[_0x33f1('0x59')][_0x33f1('0xe4')],_0x3018c4),this[_0x33f1('0x0')];}[_0x33f1('0xe5')](){this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0xc2')][_0x33f1('0xa0')][_0x33f1('0x26')](_0x33f1('0xe9')),this['on'](_0x33f1('0x12'),(_0x125a4c,_0x20f659,_0x57aedf,_0x195f5d)=>{_0x195f5d&&this['_balloon'][_0x33f1('0x2e')](_0x195f5d),_0x57aedf&&(this['_balloon']['add']({'view':_0x57aedf,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x55fb2b=this[_0x33f1('0x59')]['editing'],_0x214822=this['_getChangeFromId'](_0x57aedf[_0x33f1('0x24')]);let _0x13e26e;if(_0x214822[_0x33f1('0xeb')][_0x33f1('0x92')]){const _0x56e4ad=_0x55fb2b['view'][_0x33f1('0x89')](_0x214822[_0x33f1('0xab')]);_0x13e26e=Array[_0x33f1('0x49')](_0x56e4ad[_0x33f1('0xe8')]());}else{const _0x2beb09=this['editor'][_0x33f1('0x61')][_0x33f1('0x5c')][_0x33f1('0x9e')]('revision:'+_0x57aedf[_0x33f1('0x24')]);_0x13e26e=Array[_0x33f1('0x49')](_0x55fb2b[_0x33f1('0x80')][_0x33f1('0xdd')](_0x2beb09[_0x33f1('0x9d')]))[_0x33f1('0x5d')](_0x461b48=>_0x55fb2b[_0x33f1('0xe7')][_0x33f1('0x112')]['mapViewToDom'](_0x461b48))[_0x33f1('0x5d')](_0x22c0ba=>Array[_0x33f1('0x49')](_0x22c0ba['getClientRects']()))['flat']();}if(!this[_0x33f1('0xd4')])return _0x13e26e[0x0];return _0x13e26e[_0x33f1('0x100')](_0x5c4478=>_0x5c4478[_0x33f1('0x8d')]-0x3<=this[_0x33f1('0xd4')]['y']&&_0x5c4478[_0x33f1('0x42')]+0x3>=this['_activeViewTarget']['y']&&_0x5c4478[_0x33f1('0x18')]-0x3<=this[_0x33f1('0xd4')]['x']&&_0x5c4478[_0x33f1('0x6d')]+0x3>=this[_0x33f1('0xd4')]['x'])||_0x13e26e[0x0];}}}),this[_0x33f1('0xf6')][_0x33f1('0x73')](_0x33f1('0x21')));}),this['on'](_0x33f1('0x64'),(_0x210d79,_0x35c013,_0x4fb4ee,_0x3a91da)=>{this[_0x33f1('0x10c')]=_0x4fb4ee?this[_0x33f1('0x9c')](_0x4fb4ee):null,this[_0x33f1('0x59')]['model'][_0x33f1('0x55')](()=>{const _0x3252f1=this['editor'][_0x33f1('0xfe')];_0x3a91da&&(_0x3a91da[_0x33f1('0xeb')][_0x33f1('0x92')]?_0x3252f1[_0x33f1('0xe7')][_0x33f1('0x55')](_0x3a84e9=>{_0x3a84e9[_0x33f1('0x69')](_0x33f1('0x2a'),_0x3252f1[_0x33f1('0xe7')][_0x33f1('0xc2')][_0x33f1('0x95')](_0x3a91da[_0x33f1('0xab')]));}):_0x3252f1['reconvertMarker'](_0x33f1('0x93')+_0x3a91da['id'])),_0x4fb4ee&&(_0x4fb4ee[_0x33f1('0xeb')][_0x33f1('0x92')]?_0x3252f1[_0x33f1('0xe7')][_0x33f1('0x55')](_0xc9c3bc=>{_0xc9c3bc[_0x33f1('0x7a')](_0x33f1('0x2a'),_0x3252f1[_0x33f1('0xe7')][_0x33f1('0xc2')][_0x33f1('0x95')](_0x4fb4ee[_0x33f1('0xab')]));}):_0x3252f1['reconvertMarker'](_0x33f1('0x93')+_0x4fb4ee['id']));});}),this[_0x33f1('0x39')](this[_0x33f1('0x59')][_0x33f1('0xfe')]['view'][_0x33f1('0xc2')],_0x33f1('0x11a'),(_0x276d53,_0x835343)=>{if(this[_0x33f1('0xf2')])return;const _0x22a1a9=this[_0x33f1('0xa6')](_0x835343[_0x33f1('0x5b')]),_0x49795a=this['_changeIdToChange'][_0x33f1('0x9e')](_0x22a1a9);_0x49795a?(this[_0x33f1('0xd4')]={'x':_0x835343['domEvent']['x'],'y':_0x835343['domEvent']['y']},this['activeView']=this[_0x33f1('0x9c')](_0x49795a)):(this['_activeViewTarget']=null,this[_0x33f1('0x10c')]=null);}),this[_0x33f1('0x39')](this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')]['document'],'mousedown',(_0x260ab0,_0x590b28)=>{const _0x2e9dea=this[_0x33f1('0xa6')](_0x590b28[_0x33f1('0x5b')]),_0x1b100c=this[_0x33f1('0x70')][_0x33f1('0x9e')](_0x2e9dea);_0x1b100c?(this[_0x33f1('0xd4')]={'x':_0x590b28[_0x33f1('0x36')]['x'],'y':_0x590b28[_0x33f1('0x36')]['y']},_0x1b100c===this[_0x33f1('0xf2')]?this[_0x33f1('0xf6')][_0x33f1('0x76')]():this['activeChange']=_0x1b100c):(this['_activeViewTarget']=null,this[_0x33f1('0xf2')]=null);});}[_0x33f1('0xa6')](_0x73cc6f){do{const _0x3913b1=_0x73cc6f['getAttribute'](_0x33f1('0x2'));if(_0x3913b1)return _0x3913b1;_0x73cc6f=_0x73cc6f[_0x33f1('0xbb')];}while(_0x73cc6f);return null;}[_0x33f1('0x54')](){this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x55')](_0x39d89f=>{for(const _0x22f241 of this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x5c')])_0x39d89f[_0x33f1('0x29')](_0x22f241);});}}function et(_0x4faeef,_0x5377b6){return(_0x1d05d6,_0x40801b,_0x43c278)=>{if(!_0x43c278[_0x33f1('0x43')][_0x33f1('0xee')](_0x40801b[_0x33f1('0x65')],_0x1d05d6['name']))return;const _0x23db51=_0x40801b['markerRange'][_0x33f1('0xca')](),_0x197fad=_0x40801b[_0x33f1('0x65')][_0x33f1('0xd5')],_0x2f5dab=_0x4faeef[_0x33f1('0x61')][_0x33f1('0x10e')];let _0x473300=null,_0x1f3fc9=null,_0x481052=!0x1,_0x4f3c77=!0x1;for(const _0x134c21 of _0x23db51){const _0x551916=_0x134c21[_0x33f1('0x66')];_0x481052=_0x481052||_0x2f5dab['isContent'](_0x551916);const _0xf43b48=_0x43c278[_0x33f1('0x80')][_0x33f1('0x3e')](_0x551916);if(_0xf43b48&&_0xf43b48[_0x33f1('0x86')](_0x33f1('0x35')))return;_0x33f1('0x97')==_0x134c21['type']&&(_0x2f5dab[_0x33f1('0x4c')](_0x551916)&&!_0x2f5dab[_0x33f1('0x6b')](_0x551916)&&(_0x551916['nextSibling']||_0x197fad[_0x33f1('0xad')]?_0x473300&&_0x473300[_0x33f1('0xbb')]==_0x551916||(_0x473300=_0x551916,_0x5cb176(_0x134c21[_0x33f1('0x27')]),_0x4f3c77=!0x0):_0x1f3fc9=_0x1f3fc9||_0x134c21['previousPosition']));}function _0x5cb176(_0x34c668){const _0x5253dd=_0x43c278[_0x33f1('0x80')][_0x33f1('0x9a')](_0x34c668),_0x8b518e=_0x43c278[_0x33f1('0x111')]['createUIElement'](_0x33f1('0x4e'),{'class':_0x33f1('0xc6')+_0x5377b6});_0x43c278['writer'][_0x33f1('0x14')](_0x5253dd,_0x8b518e),_0x43c278['mapper'][_0x33f1('0x91')](_0x8b518e,_0x40801b[_0x33f1('0x8a')]);}_0x481052||_0x4f3c77||!_0x1f3fc9||_0x5cb176(_0x1f3fc9);};}export class RestoreRevisionCommand extends _0x107b05{constructor(_0x358567){super(_0x358567);const _0x32467f=_0x358567[_0x33f1('0x119')]['get'](d);this[_0x33f1('0x44')]=!0x1,this['listenTo'](_0x32467f,_0x33f1('0x120'),()=>this[_0x33f1('0xc0')]()),this[_0x33f1('0x39')](_0x32467f,_0x33f1('0xd'),()=>this[_0x33f1('0xc0')]());}[_0x33f1('0x87')](){const _0xd7339f=this[_0x33f1('0x59')],_0x3bb819=_0xd7339f[_0x33f1('0x119')]['get'](d),_0x5205dc=_0x3bb819[_0x33f1('0xcf')]?_0x3bb819[_0x33f1('0x107')][_0x33f1('0xc')]:null;_0xd7339f[_0x33f1('0x106')][_0x33f1('0x9e')](_0x33f1('0xe2'))[_0x33f1('0xcc')](_0x5205dc);}[_0x33f1('0xc0')](){const {isReady:_0x286457,isEnabled:_0x40cb57}=this[_0x33f1('0x59')][_0x33f1('0x119')]['get'](d);this[_0x33f1('0xc4')]=_0x286457&&_0x40cb57;}}export class ShowChangeCommand extends _0x107b05{constructor(_0x5edb26,{direction:_0x22d4fb}){super(_0x5edb26);const _0xc1e8ee=_0x5edb26[_0x33f1('0x119')][_0x33f1('0x9e')](d);this['affectsData']=!0x1,this['_step']=_0x33f1('0x11d')===_0x22d4fb?0x1:-0x1,this[_0x33f1('0x39')](_0xc1e8ee,_0x33f1('0x120'),()=>this['refresh']()),this[_0x33f1('0x39')](_0xc1e8ee,_0x33f1('0xd'),()=>this[_0x33f1('0xc0')]()),this[_0x33f1('0x39')](_0xc1e8ee,_0x33f1('0x64'),()=>this[_0x33f1('0xc0')]());}[_0x33f1('0x87')](){const _0x1bc5a2=this['editor'],_0x12d484=_0x1bc5a2[_0x33f1('0x119')]['get'](d),{isNavigationMode:_0x2e8129,currentChangeNumber:_0x303a41}=_0x12d484;let _0x4641d4;if(_0x12d484['activeChange']=_0x2e8129?_0x12d484[_0x33f1('0x107')]['changes']['get'](_0x303a41+this['_step']):_0x12d484[_0x33f1('0x107')][_0x33f1('0x56')]['first'],_0x12d484['activeChange']['data'][_0x33f1('0x92')])_0x4641d4=_0x1bc5a2[_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0x89')](_0x12d484[_0x33f1('0xf2')]['rootName']);else{const _0x45b437=_0x1bc5a2[_0x33f1('0x61')]['markers'][_0x33f1('0x9e')](_0x33f1('0x93')+_0x12d484[_0x33f1('0xf2')]['id']);_0x4641d4=_0x536dce(_0x1bc5a2[_0x33f1('0xfe')],_0x45b437);}_0x8dd2d4({'target':_0x4641d4,'viewportOffset':0x28});}[_0x33f1('0xc0')](){const {isNavigationMode:_0x5d8612,currentChangeNumber:_0x1afcc8,numberOfChanges:_0x56dbf0,isReady:_0xeeb9b7,isEnabled:_0x4762c8}=this['editor'][_0x33f1('0x119')][_0x33f1('0x9e')](d);this['isEnabled']=!!(_0x4762c8&&_0xeeb9b7&&_0x56dbf0)&&(!_0x5d8612||(0x1===this[_0x33f1('0x52')]?_0x1afcc8<_0x56dbf0-0x1:_0x1afcc8>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b2d=['model','ck-revision-history-sidebar__revision__actions','isOpen','isVisible','source','isActionsDropdownOpen','map','buttonView','action','listenTo','listView','items','_action','bind','function','button','ck-on','bindTemplate','name','Name\x20this\x20revision','threeVerticalDots','isEnabled','locale','panelPosition','Compare\x20against\x20selected','set','change:isActionsDropdownOpen','Show\x20more\x20items','first','Restore\x20this\x20revision'];(function(_0x4ceebe,_0x4b2dc2){const _0x2ca244=function(_0x175d6a){while(--_0x175d6a){_0x4ceebe['push'](_0x4ceebe['shift']());}};_0x2ca244(++_0x4b2dc2);}(_0x4b2d,0x1a7));const _0x2ca2=function(_0x4ceebe,_0x4b2dc2){_0x4ceebe=_0x4ceebe-0x0;let _0x2ca244=_0x4b2d[_0x4ceebe];return _0x2ca244;};import{Collection as _0xdc07e5}from'ckeditor5/src/utils';import{icons as _0x520472}from'ckeditor5/src/core';import{Model as _0x4d852b,addListToDropdown as _0x337dc7,createDropdown as _0xf12eaa}from'ckeditor5/src/ui';import{getTranslation as _0x1e9a7d}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x490693,_0x67dbd1){const _0x6037fb=_0x490693[_0x2ca2('0xe')],_0x459a20=_0x490693[_0x2ca2('0x13')],_0x616b6d=_0xf12eaa(_0x459a20);_0x616b6d[_0x2ca2('0x14')]='sw';const _0x50ca68=function(_0x2fcaa1,_0x539523){const _0x452f0c=function(_0x3da13b,_0x9aece7){const _0xf7eb42=_0x3da13b[_0x2ca2('0x13')],_0x1ecc25={'Compare\x20against\x20selected':_0x1e9a7d(_0xf7eb42,_0x2ca2('0x15')),'Name\x20this\x20revision':_0x1e9a7d(_0xf7eb42,_0x2ca2('0x10')),'Restore\x20this\x20revision':_0x1e9a7d(_0xf7eb42,_0x2ca2('0x1a'))};return _0x9aece7[_0x2ca2('0x3')](_0x2e3421=>{const _0x36c1d1=_0x1ecc25[_0x2e3421[_0x2ca2('0xf')]];return _0x36c1d1&&_0x36c1d1!==_0x2e3421[_0x2ca2('0xf')]&&(_0x2e3421[_0x2ca2('0xf')]=_0x36c1d1),_0x2e3421;});}(_0x2fcaa1,_0x539523),_0x1d07c0=new _0xdc07e5();for(const _0x57a6c8 of _0x452f0c){const _0x4d2ed7={'type':_0x2ca2('0xc'),'model':new _0x4d852b({'label':_0x57a6c8[_0x2ca2('0xf')],'class':_0x57a6c8['class'],'withText':!0x0,'_action':_0x57a6c8[_0x2ca2('0x5')]})};_0x4d2ed7[_0x2ca2('0x1b')]['bind']('isEnabled')['to'](_0x2fcaa1,_0x2ca2('0x2'),_0xbdb408=>_0x2ca2('0xb')!=typeof _0x57a6c8[_0x2ca2('0x12')]||(!_0xbdb408||_0x57a6c8[_0x2ca2('0x12')](_0x2fcaa1))),_0x1d07c0['add'](_0x4d2ed7);}return _0x1d07c0;}(_0x490693,_0x67dbd1);return _0x490693[_0x2ca2('0xa')](_0x2ca2('0x2'))['to'](_0x616b6d,_0x2ca2('0x1d')),_0x616b6d[_0x2ca2('0x4')][_0x2ca2('0x16')]({'label':_0x1e9a7d(_0x459a20,_0x2ca2('0x18')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x520472[_0x2ca2('0x11')]}),_0x616b6d['extendTemplate']({'attributes':{'class':[_0x2ca2('0x1c'),_0x6037fb['if'](_0x2ca2('0x2'),_0x2ca2('0xd'))]},'on':{'click':_0x6037fb['to'](_0x15971b=>_0x15971b['stopPropagation']())}}),_0x616b6d['on']('execute',_0x414d36=>{_0x490693['isReady']&&_0x2ca2('0xb')==typeof _0x414d36[_0x2ca2('0x1')]['_action']&&_0x414d36[_0x2ca2('0x1')][_0x2ca2('0x9')](_0x490693);}),_0x337dc7(_0x616b6d,_0x50ca68),_0x616b6d[_0x2ca2('0x6')](_0x490693,_0x2ca2('0x17'),(_0x4eb592,_0x1fe41b,_0x1f1a3d)=>{if(_0x1f1a3d)for(const _0x561fc0 of _0x616b6d[_0x2ca2('0x7')][_0x2ca2('0x8')]){const _0xe3422b=_0x561fc0['children'][_0x2ca2('0x19')],_0x4affdf=_0x67dbd1['find'](_0x5186e4=>_0x5186e4[_0x2ca2('0x5')]===_0xe3422b[_0x2ca2('0x9')])[_0x2ca2('0x0')];_0x561fc0['isVisible']=void 0x0===_0x4affdf||_0x4affdf(_0x490693);}}),_0x616b6d;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50d9=['setTemplate','push','set','ck-revision-history-sidebar__revision-author','name','Revision\x20creator','ck-revision-history-sidebar__revision-author_creator','span'];(function(_0x2b2b2d,_0x50d99c){const _0x7e790a=function(_0x3a5104){while(--_0x3a5104){_0x2b2b2d['push'](_0x2b2b2d['shift']());}};_0x7e790a(++_0x50d99c);}(_0x50d9,0x119));const _0x7e79=function(_0x2b2b2d,_0x50d99c){_0x2b2b2d=_0x2b2b2d-0x0;let _0x7e790a=_0x50d9[_0x2b2b2d];return _0x7e790a;};import{View as _0x2e408b,IconView as _0xcb8e39}from'ckeditor5/src/ui';import{getTranslation as _0x37d7e7}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x14a58e from'../../../theme/icons/user.svg';export default class ti extends _0x2e408b{constructor(_0x3a222d,_0x4c58cf,_0x53f893){super(_0x3a222d);const _0x42976a=new _0xcb8e39();_0x42976a[_0x7e79('0x1')]({'content':_0x14a58e,'viewBox':'0\x200\x2011\x2010'});const _0x9bb117=['ck',_0x7e79('0x2')];_0x53f893&&_0x9bb117[_0x7e79('0x0')](_0x7e79('0x5'));const _0x222640=[{'tag':_0x7e79('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x37d7e7(_0x3a222d,_0x53f893?_0x7e79('0x4'):'Revision\x20author')},'children':[_0x42976a,_0x4c58cf[_0x7e79('0x3')]]}];this[_0x7e79('0x7')]({'tag':'li','attributes':{'class':_0x9bb117},'children':_0x222640});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5be0=['extendTemplate','ck-revision-history-sidebar__revision-name','Revision\x20name','span'];(function(_0x40a500,_0x5be0d0){var _0x24a2fd=function(_0x1a64ae){while(--_0x1a64ae){_0x40a500['push'](_0x40a500['shift']());}};_0x24a2fd(++_0x5be0d0);}(_0x5be0,0x173));var _0x24a2=function(_0x40a500,_0x5be0d0){_0x40a500=_0x40a500-0x0;var _0x24a2fd=_0x5be0[_0x40a500];return _0x24a2fd;};import{LabeledFieldView as _0x415384}from'ckeditor5/src/ui';import{getTranslation as _0x4b02c1}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x415384{constructor(_0x170d06,_0x55a141){super(_0x170d06,_0x55a141),this['set']({'label':_0x4b02c1(_0x170d06,_0x24a2('0x3'))}),this[_0x24a2('0x1')]({'tag':_0x24a2('0x0'),'attributes':{'class':[_0x24a2('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12cc=['change','setName','ck-revision-history-sidebar__actions_dropdown_open','highlight','fire','_revision','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','createdAt','setTemplate','listenTo','fieldView','set','ck-revision-history-sidebar__revision-authors','filter','from','isHighlighted','unhighlight','isEnabled','isSelected','revisionActionsView','ck-disabled','ck-reset','ck-revision-history-sidebar__revision__date','creator','.ck-thread__remove-confirm','_createdAtFormatted','uiLanguage','isActionsDropdownOpen','length','bind','220','ck-revision-history-sidebar__revision_highlighted','authors','select','isConfirm','element','div','closest','value','name','bindTemplate','srcElement','map','ck-revision-history-sidebar__revision','revisionNameView','isReady','render'];(function(_0x7dfe27,_0x12cc4e){const _0x5cf5da=function(_0xaf2a3c){while(--_0xaf2a3c){_0x7dfe27['push'](_0x7dfe27['shift']());}};_0x5cf5da(++_0x12cc4e);}(_0x12cc,0x85));const _0x5cf5=function(_0x7dfe27,_0x12cc4e){_0x7dfe27=_0x7dfe27-0x0;let _0x5cf5da=_0x12cc[_0x7dfe27];return _0x5cf5da;};import{View as _0x5a00d8,createLabeledInputText as _0x1492f1}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4c15d5}from'ckeditor5-collaboration/src/collaboration-core';import _0x2fe291 from'./revisionnameview';import _0x35a10b from'./revisionauthorview';import{dateToPrettyFormat as _0x3b99fa}from'./utils';import{createActionsDropdownView as _0x14d21d}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4c15d5(_0x5a00d8){constructor(_0x5e0fad,_0x4080c9,_0x58eb7c){super(_0x5e0fad);const _0x421399=this[_0x5cf5('0x1')],_0x17e673=function(_0x269d75,_0x15a007){const _0x56060=Array[_0x5cf5('0x16')](_0x15a007[_0x5cf5('0x28')])[_0x5cf5('0x15')](_0x3c4989=>_0x3c4989!=_0x15a007['creator']);return _0x15a007['creator']&&_0x56060['unshift'](_0x15a007[_0x5cf5('0x1f')]),_0x56060[_0x5cf5('0x3')](_0x511db9=>new _0x35a10b(_0x269d75,_0x511db9,_0x511db9==_0x15a007['creator']));}(_0x5e0fad,_0x4080c9);this['id']=_0x4080c9['id'],this[_0x5cf5('0xd')]=_0x4080c9,this['bind'](_0x5cf5('0x0'),_0x5cf5('0xf'))['to'](_0x4080c9),this['bind'](_0x5cf5('0x21'))['to'](this,'createdAt',_0x5b0239=>_0x5b0239?_0x3b99fa(_0x5e0fad[_0x5cf5('0x22')],_0x5b0239):void 0x0),this[_0x5cf5('0x13')](_0x5cf5('0x1a'),!0x1),this[_0x5cf5('0x13')](_0x5cf5('0x17'),!0x1),this[_0x5cf5('0x13')](_0x5cf5('0x23'),!0x1),this[_0x5cf5('0x13')](_0x5cf5('0x6'),!0x1),this[_0x5cf5('0x13')](_0x5cf5('0x19'),!0x1),this[_0x5cf5('0x5')]=new _0x2fe291(_0x5e0fad,_0x1492f1),this[_0x5cf5('0x5')][_0x5cf5('0x12')]['extendTemplate']({'attributes':{'maxlength':_0x5cf5('0x26')}}),this[_0x5cf5('0x5')][_0x5cf5('0x12')][_0x5cf5('0x25')](_0x5cf5('0x2e'),'placeholder')['to'](this,_0x5cf5('0x0'),_0x5cf5('0x21')),this[_0x5cf5('0x5')]['bind']('isEnabled')['to'](this,_0x5cf5('0x1a'),this,'isEnabled',(_0x16797f,_0x4808e0)=>_0x16797f&&_0x4808e0),this['revisionActionsView']=_0x58eb7c&&_0x58eb7c[_0x5cf5('0x24')]?_0x14d21d(this,_0x58eb7c):'',this['revisionActionsView']&&this[_0x5cf5('0x1b')][_0x5cf5('0x25')](_0x5cf5('0x19'))['to'](this),this[_0x5cf5('0x10')]({'tag':_0x5cf5('0x2c'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x421399['if'](_0x5cf5('0x2a'),_0x5cf5('0xe'))]},'children':[{'tag':_0x5cf5('0x2c'),'attributes':{'class':['ck',_0x5cf5('0x1d'),_0x5cf5('0x4'),_0x421399['if'](_0x5cf5('0x19'),_0x5cf5('0x1c'),_0x1a6b45=>!_0x1a6b45),_0x421399['if'](_0x5cf5('0x1a'),'ck-revision-history-sidebar__revision_selected'),_0x421399['if']('isHighlighted',_0x5cf5('0x27')),_0x421399['if'](_0x5cf5('0x23'),_0x5cf5('0xa'))]},'children':[this[_0x5cf5('0x5')],{'tag':'span','attributes':{'class':['ck',_0x5cf5('0x1e')]},'children':[{'text':_0x421399['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5cf5('0x14')]},'children':_0x17e673}]},this[_0x5cf5('0x1b')]],'on':{'click':_0x421399['to'](_0x4b0619=>{_0x4b0619[_0x5cf5('0x2')][_0x5cf5('0x2d')](_0x5cf5('0x20'))||this['isReady']&&this[_0x5cf5('0x19')]&&this[_0x5cf5('0xc')](_0x5cf5('0x29'),{'id':this['id']});})}}]});}[_0x5cf5('0x7')](){super[_0x5cf5('0x7')]();const _0x49abcf=this[_0x5cf5('0x5')][_0x5cf5('0x12')][_0x5cf5('0x2b')];this[_0x5cf5('0x11')](_0x49abcf,_0x5cf5('0x8'),()=>{this['fire'](_0x5cf5('0x9'),{'id':this['id'],'name':_0x49abcf[_0x5cf5('0x2e')]});});}[_0x5cf5('0x29')](){this[_0x5cf5('0x1a')]=!0x0;}['deselect'](){this[_0x5cf5('0x1a')]=!0x1;}[_0x5cf5('0xb')](){this['isHighlighted']=!0x0;}[_0x5cf5('0x18')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x64e8=['ck-hidden','span','button','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','false','_isCollapsed','set','toggle','setTemplate'];(function(_0x3e7cd2,_0x64e8d4){const _0x2c137a=function(_0x503a13){while(--_0x503a13){_0x3e7cd2['push'](_0x3e7cd2['shift']());}};_0x2c137a(++_0x64e8d4);}(_0x64e8,0x16a));const _0x2c13=function(_0x3e7cd2,_0x64e8d4){_0x3e7cd2=_0x3e7cd2-0x0;let _0x2c137a=_0x64e8[_0x3e7cd2];return _0x2c137a;};import{View as _0x36e3ed}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x36e3ed{constructor(_0x1a26c6){super(_0x1a26c6);const _0x1008f8=this[_0x2c13('0x5')];this[_0x2c13('0x9')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2c13('0x0')]({'tag':_0x2c13('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x1008f8['if']('isVisible',_0x2c13('0x1'),_0x1d60e2=>!_0x1d60e2),_0x1008f8['if'](_0x2c13('0x8'),_0x2c13('0x6'))],'role':_0x2c13('0x3'),'aria-pressed':_0x1008f8['to']('_isCollapsed',_0x50be47=>_0x50be47?_0x2c13('0x7'):'true')},'children':[{'tag':'span','attributes':{'class':['ck',_0x2c13('0x4')]}}],'on':{'click':_0x1008f8['to']('click')}});}[_0x2c13('0xa')](){this[_0x2c13('0x8')]=!this[_0x2c13('0x8')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55ad=['creator','fire','span','set','isSelected','ck-revision-history-sidebar__subrevision','setTemplate','select','_parentRevisionId','ck-reset','bindTemplate','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','createdAt','_createdAtFormatted','div','bind'];(function(_0x4ef558,_0x55ad11){const _0x1875cd=function(_0x440329){while(--_0x440329){_0x4ef558['push'](_0x4ef558['shift']());}};_0x1875cd(++_0x55ad11);}(_0x55ad,0x1af));const _0x1875=function(_0x4ef558,_0x55ad11){_0x4ef558=_0x4ef558-0x0;let _0x1875cd=_0x55ad[_0x4ef558];return _0x1875cd;};import{View as _0x236c1a}from'ckeditor5/src/ui';import _0x1e680e from'./revisionauthorview';import{dateToPrettyFormat as _0x167e83}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x236c1a{constructor(_0xc74dd7,_0x2de55f,_0x5b866b){super(_0xc74dd7);const _0x905d90=this[_0x1875('0x10')];this['id']=_0x2de55f['id'],this[_0x1875('0x5')](_0x1875('0x2'))['to'](_0x2de55f),this[_0x1875('0x9')](_0x1875('0xa'),!0x1),this[_0x1875('0x5')](_0x1875('0x3'))['to'](this,_0x1875('0x2'),_0x4087a5=>_0x4087a5?_0x167e83(_0xc74dd7['uiLanguage'],_0x4087a5):void 0x0),this[_0x1875('0xe')]=_0x5b866b,this[_0x1875('0xc')]({'tag':_0x1875('0x4'),'attributes':{'class':['ck',_0x1875('0xf'),_0x1875('0x0'),_0x1875('0xb'),_0x905d90['if'](_0x1875('0xa'),_0x1875('0x12'))]},'children':[{'tag':_0x1875('0x8'),'attributes':{'class':['ck',_0x1875('0x11')]},'children':[{'text':_0x905d90['to'](_0x1875('0x3'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1875('0x1')]},'children':[new _0x1e680e(_0xc74dd7,_0x2de55f[_0x1875('0x6')],!0x0)]}],'on':{'click':_0x905d90['to'](this[_0x1875('0xd')]['bind'](this))}});}[_0x1875('0xd')](){this[_0x1875('0xa')]=!0x0,this[_0x1875('0x7')](_0x1875('0xd'),{'parentId':this[_0x1875('0xe')]});}['deselect'](){this[_0x1875('0xa')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xa394=['toLocaleTimeString','numeric','long'];(function(_0x1c3b6d,_0xa39442){var _0x3a1659=function(_0x41891d){while(--_0x41891d){_0x1c3b6d['push'](_0x1c3b6d['shift']());}};_0x3a1659(++_0xa39442);}(_0xa394,0xda));var _0x3a16=function(_0x1c3b6d,_0xa39442){_0x1c3b6d=_0x1c3b6d-0x0;var _0x3a1659=_0xa394[_0x1c3b6d];return _0x3a1659;};export function dateToPrettyFormat(_0x223f3f,_0xf5670c){return _0xf5670c['toLocaleDateString'](_0x223f3f,{'month':_0x3a16('0x0'),'day':_0x3a16('0x2')})+',\x20'+_0xf5670c[_0x3a16('0x1')](_0x223f3f,{'hour':_0x3a16('0x2'),'minute':_0x3a16('0x2')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6777=['revisionName','add','extendTemplate','fieldView','check','type','_focusCycler','element','form','_createButton','_createRevisionNameInput','setTemplate','focusTracker','locale','trim','label','arrowright','submit','_focusables','ck-revision-history-save-revision-form','execute','Cancel','stopPropagation','keystrokes','revisionNameInputView','Name\x20of\x20the\x20revision\x20(optional)','ck-button-cancel','focusFirst','input','render','revisionNameInputValue','focus','forEach','set','cancel','saveButtonView','value','reset','ck-button-save'];(function(_0x2cadb0,_0x677797){const _0x3ee88f=function(_0x3721a3){while(--_0x3721a3){_0x2cadb0['push'](_0x2cadb0['shift']());}};_0x3ee88f(++_0x677797);}(_0x6777,0x11f));const _0x3ee8=function(_0x2cadb0,_0x677797){_0x2cadb0=_0x2cadb0-0x0;let _0x3ee88f=_0x6777[_0x2cadb0];return _0x3ee88f;};import{icons as _0x228c47}from'ckeditor5/src/core';import{ButtonView as _0x37358a,FocusCycler as _0x4b81e0,LabeledFieldView as _0x5a0c43,View as _0x25058b,ViewCollection as _0x40ff74,createLabeledInputText as _0x554256,injectCssTransitionDisabler as _0x4cd199,submitHandler as _0x2f0c8a}from'ckeditor5/src/ui';import{FocusTracker as _0x563e83,KeystrokeHandler as _0x22a686}from'ckeditor5/src/utils';import{getTranslation as _0x50fa9d}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x25058b{constructor(_0x792c85){super(_0x792c85),this[_0x3ee8('0x25')]=new _0x563e83(),this[_0x3ee8('0x9')]=new _0x22a686(),this[_0x3ee8('0x13')](_0x3ee8('0x10'),''),this[_0x3ee8('0xa')]=this[_0x3ee8('0x23')](),this[_0x3ee8('0x15')]=this['_createButton'](_0x50fa9d(_0x792c85,'Save'),_0x228c47[_0x3ee8('0x1d')],_0x3ee8('0x18')),this[_0x3ee8('0x15')][_0x3ee8('0x1e')]=_0x3ee8('0x3'),this['cancelButtonView']=this[_0x3ee8('0x22')](_0x50fa9d(_0x792c85,_0x3ee8('0x7')),_0x228c47['cancel'],_0x3ee8('0xc'),_0x3ee8('0x14')),this[_0x3ee8('0x4')]=new _0x40ff74(),this[_0x3ee8('0x1f')]=new _0x4b81e0({'focusables':this[_0x3ee8('0x4')],'focusTracker':this[_0x3ee8('0x25')],'keystrokeHandler':this[_0x3ee8('0x9')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this[_0x3ee8('0x24')]({'tag':_0x3ee8('0x21'),'attributes':{'class':['ck',_0x3ee8('0x5'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x3ee8('0xa')],this[_0x3ee8('0x15')],this['cancelButtonView']]}),_0x4cd199(this);}[_0x3ee8('0xf')](){super[_0x3ee8('0xf')](),_0x2f0c8a({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']][_0x3ee8('0x12')](_0x3f3658=>{this['_focusables'][_0x3ee8('0x1a')](_0x3f3658),this['focusTracker'][_0x3ee8('0x1a')](_0x3f3658[_0x3ee8('0x20')]);}),this[_0x3ee8('0x9')]['listenTo'](this['element']));const _0x129cf7=_0x318a08=>_0x318a08[_0x3ee8('0x8')]();this[_0x3ee8('0x9')][_0x3ee8('0x13')](_0x3ee8('0x2'),_0x129cf7),this[_0x3ee8('0x9')][_0x3ee8('0x13')]('arrowleft',_0x129cf7),this['keystrokes']['set']('arrowup',_0x129cf7),this[_0x3ee8('0x9')]['set']('arrowdown',_0x129cf7);}[_0x3ee8('0x11')](){this[_0x3ee8('0x1f')][_0x3ee8('0xd')]();}get[_0x3ee8('0x19')](){return this['revisionNameInputView'][_0x3ee8('0x1c')]['element']['value'][_0x3ee8('0x0')]();}set[_0x3ee8('0x19')](_0x22752c){this[_0x3ee8('0xa')]['fieldView'][_0x3ee8('0x20')][_0x3ee8('0x16')]=_0x22752c['trim']();}[_0x3ee8('0x17')](){this[_0x3ee8('0xa')][_0x3ee8('0x1c')][_0x3ee8('0x20')][_0x3ee8('0x16')]='';}[_0x3ee8('0x23')](){const _0x58e06d=new _0x5a0c43(this[_0x3ee8('0x26')],_0x554256),_0x58b84f=_0x58e06d[_0x3ee8('0x1c')];return _0x58b84f[_0x3ee8('0x1b')]({'attributes':{'maxlength':'220'}}),_0x58e06d[_0x3ee8('0x1')]=_0x50fa9d(this[_0x3ee8('0x26')],_0x3ee8('0xb')),_0x58b84f['on'](_0x3ee8('0xe'),()=>{this[_0x3ee8('0x10')]=_0x58b84f[_0x3ee8('0x20')][_0x3ee8('0x16')][_0x3ee8('0x0')]();}),_0x58e06d;}['_createButton'](_0x5230e1,_0x55b1cf,_0x37120f,_0x5bbe41){const _0x4812da=new _0x37358a(this[_0x3ee8('0x26')]);return _0x4812da[_0x3ee8('0x13')]({'label':_0x5230e1,'icon':_0x55b1cf,'tooltip':!0x0}),_0x4812da[_0x3ee8('0x1b')]({'attributes':{'class':_0x37120f}}),_0x5bbe41&&_0x4812da['delegate'](_0x3ee8('0x6'))['to'](this,_0x5bbe41),_0x4812da;}}
|