@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230727.0 → 0.0.0-nightly-20230729.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 _0x47bb=['init','catch','backward','attachChange','currentChangeNumber','slice','target','isAdded','upcast','_getViewObj','then','isOnRoot','unbindElementFromMarkerName','change:isReady','first','collaboration.channelId','_removeRevisionMarkers','execute','isAttached','showStack','revisionHistoryAttachChange','type','name','elementStart','from','_setConversion','resolve','markersEnd','getClientRects','isInline','_cleanUp','_makeModelFromTape','repository','revision-end','getItems','clear','ck-suggestion-preview-marker-','markerNameToElements','suggestion','getAttribute','isLimit','nextPosition','length','createRevision','default','hasClass','vid','isIncorrect','reconvertMarker','isRemoved','getRoot','wrap','change:isEnabled','indexOf','forceDisabled','_getDiff','data-change-id','markerRange','markers','addMarker:revision-suggestion:deletion','loadRevisionData','model','roots','getRevision','has','getRevisionData','parse','RevisionsRepository','isCollapsed','newRevisionId','insertions','revisionHistory','commands','ck-revision-history-root-remove','document','_removeMissingPairs','startIndex','isEnabled','listenTo','split','POSITIVE_INFINITY','selection','_refreshStartEndIndex','marked','_fixObsoleteTags','code','change:activeView','deletion','refresh','ck-suggestion-marker-merge','concat','ck-revision-history-root-','vid_start','revision:','writer','rootName','element:pre','removeMarker:revision','ck-revision-history-root--active','index','map','_getViewForChange','start','comment','checkAttribute','_initInteractions','mapViewToDom','changeId','next','addRoot','markerToData','isAtStart','getIndex','restoreRevisionCallback','ck-suggestion-marker-split','suggestion:','elementEnd','_balloon','markerToHighlight','domEvent','schema','softBreak','span','bottom','hasAttribute','string','addMarker:revision-suggestion:insertion','RevisionViewer','distance','_joinTapes','attributesAfter','bindElementToMarker','isSuggestion','editingDowncast','_changeView','left','_getChangeFromId','view','_markMarkers','push','enableReadOnlyMode','getCustomProperty','values','activeChange','ck-editor__editable__overlay','conversion','compare','return','diff','splice','_activeViewTarget','change','createUIElement','activeView','element','getRootNames','toViewRange','forEach','_makeModelFromViewString','createRangeIn','deletions','unshift','useFillerType','for','bind','destroy','_markInsertions','delete','revision-suggestion','changes','mapper','getDomRoot','isEqual','end','dataToMarker','modelRange','merge','_changeIdToChange','_sortAndFilterDiffChanges','error','authors','nextSibling','getAttributes','side','affectsData','isRemoveSuggestion','_markMismatchedRemovedTags','filter','elementToAttribute','_revisions','object','ck-suggestion-preview-marker','level','revision-viewer','attributesBefore','previousPosition','_processTape','flat','children','shift','_markSuggestions','plugins','_makeTape','vid_end','low','isAtEnd','test','ck-revision-history-root-add','addHighlight','diffData','keys','item','oldRevisionId','stop','editing','showNextChange','domConverter','find','_cleanMarkers','toViewPosition','createPositionFromPath','endIndex','isBefore','forward','_data','top','getWalker','processor','removeClass','editor','parent','isNavigationMode','text','_setChanges','markerName','revisionHistoryLabel','nodeAfter','isContent','detachRoot','pluginName','addClass','change:numberOfChanges','_getRevisionsRange','ck-suggestion-marker-','startsWith','WidgetToolbarRepository','updatePosition','consume','createRange','revision-start','attributes','ck-suggestion-marker','isBlock','enqueueChange','addMarker:revision','get','downcastDispatcher','offsetSize','ck-suggestion-marker--active','toData','insertion','revision-comment:','revision-suggestion:','_step','pairId','maxOffset','isAddSuggestion','range','set','createPositionBefore','high','change:activeChange','observeMarkers','remove','_threeWayMerge','removeMarker','revision','-new','adapter','consumable','_findChangeIdFromDomTarget','addRevisionData','_appendChild','setAttribute','data','viewItem','isReady','requires','insert','_setDistance','highest','add','isAfter','markersStart','data-revision-','userId','_removeUnsupportedChanges'];(function(_0xa1aff0,_0x47bb4a){const _0x239282=function(_0x468c33){while(--_0x468c33){_0xa1aff0['push'](_0xa1aff0['shift']());}};_0x239282(++_0x47bb4a);}(_0x47bb,0x8e));const _0x2392=function(_0xa1aff0,_0x47bb4a){_0xa1aff0=_0xa1aff0-0x0;let _0x239282=_0x47bb[_0xa1aff0];return _0x239282;};import{Plugin as _0x586446,Command as _0x8052de}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2308d8}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5a7b5a}from'ckeditor5/src/ui';import{DocumentFragment as _0x1f4460,Element as _0x44f8ba,Text as _0x1ca042,ViewDocumentFragment as _0x355a18,ViewText as _0x108cb4,ViewElement as _0x2fa17a,ViewContainerElement as _0x341990,ViewAttributeElement as _0x40bf16,ViewEmptyElement as _0x1aae64,ViewRawElement as _0x57dfb4,ViewUIElement as _0x4c1d67}from'ckeditor5/src/engine';import{Users as _0x1d024f,getMarkerDomElement as _0x1381fb}from'ckeditor5-collaboration/src/collaboration-core';import _0x4dc050 from'./ui/revisionviewer/changedetailsview';import _0x53f95a from'./revisionsrepository';import _0x3dbf17 from'./changeitem';import{default as _0x3b9ed5}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3d7b75}from'lodash-es';const tt={'c':_0x341990,'a':_0x40bf16,'e':_0x1aae64,'r':_0x57dfb4,'u':_0x4c1d67};export default class d extends _0x586446{static get[_0x2392('0x61')](){return _0x2392('0x11a');}static get[_0x2392('0x91')](){return[_0x1d024f,_0x5a7b5a,_0x53f95a];}constructor(_0x271907){super(_0x271907),this[_0x2392('0xbb')]=this[_0x2392('0x57')]['plugins'][_0x2392('0x71')](_0x2392('0xde')),this[_0x2392('0x7e')](_0x2392('0x1'),null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set'](_0x2392('0x6'),null),this[_0x2392('0x7e')](_0x2392('0x90'),!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2fc13d,_0x2718b5,_0x1ad024)=>{this['activeChange']=null,this[_0x2392('0xb')]=null,this[_0x2392('0x57')]['editing'][_0x2392('0x124')][_0x2392('0x9')](_0x226b1c=>{for(const _0x5dda89 of this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0xe5')][_0x2392('0xd9')])_0x1ad024?_0x226b1c['removeClass'](_0x2392('0x2'),_0x5dda89):_0x226b1c[_0x2392('0x62')]('ck-editor__editable__overlay',_0x5dda89);});}),this[_0x2392('0x16')](_0x2392('0x59'))['to'](this,'activeChange',_0x326dba=>null!==_0x326dba),this[_0x2392('0x16')](_0x2392('0x9f'))['to'](this,_0x2392('0x90'),this,_0x2392('0x6'),this,_0x2392('0x1'),(_0x2e99c0,_0x4966c4,_0x14128e)=>_0x2e99c0&&_0x14128e?_0x4966c4['changes'][_0x2392('0x10b')](_0x14128e):0x0),this['bind']('numberOfChanges')['to'](this,_0x2392('0x90'),this,'diff',(_0x2d4a43,_0x44be3b)=>_0x2d4a43?_0x44be3b[_0x2392('0x1b')][_0x2392('0xc5')]:0x0),this[_0x2392('0x121')]=null,this[_0x2392('0x23')]=new Map(),this['adapter']=null,this[_0x2392('0x110')]=this[_0x2392('0x57')][_0x2392('0x3b')][_0x2392('0x71')](_0x5a7b5a);}[_0x2392('0x9b')](){const _0x3a5e7a=this[_0x2392('0x57')],_0x548ea5=new ShowChangeCommand(_0x3a5e7a,{'direction':_0x2392('0x9d')}),_0x595155=new ShowChangeCommand(_0x3a5e7a,{'direction':_0x2392('0x51')});(_0x3a5e7a[_0x2392('0xe3')]['add']('showPreviousChange',_0x548ea5),_0x3a5e7a[_0x2392('0xe3')][_0x2392('0x95')](_0x2392('0x49'),_0x595155),_0x3a5e7a['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x3a5e7a)),this['on'](_0x2392('0x63'),()=>{_0x548ea5[_0x2392('0xf3')](),_0x595155[_0x2392('0xf3')]();}),this[_0x2392('0xb4')](),this[_0x2392('0x104')](),_0x3a5e7a[_0x2392('0x127')]('revision-viewer'),_0x3a5e7a[_0x2392('0x3b')][_0x2392('0xdb')](_0x2392('0x67')))&&_0x3a5e7a[_0x2392('0x3b')][_0x2392('0x71')](_0x2392('0x67'))[_0x2392('0xd1')](_0x2392('0x33'));}async[_0x2392('0xdc')](_0x99d71d){await this['loadRevisionData'](_0x99d71d);const _0x1cdcbc={};for(const _0x2806e9 in _0x99d71d['diffData']){if(_0x99d71d['diffData'][_0x2806e9][_0x2392('0x9e')]&&!_0x99d71d[_0x2392('0x43')][_0x2806e9][_0x2392('0x9e')][_0x2392('0xad')])continue;const _0x2acd69=this[_0x2392('0xab')](JSON[_0x2392('0xdd')](_0x99d71d[_0x2392('0x43')][_0x2806e9][_0x2392('0xe1')])),_0x111c25=this[_0x2392('0x57')]['editing']['view']['document'],_0x5b214a=new _0x355a18(_0x111c25,_0x2acd69[_0x2392('0xff')](_0x4990e2=>this[_0x2392('0xa4')](_0x4990e2)));this[_0x2392('0x57')][_0x2392('0x8e')][_0x2392('0x55')][_0x2392('0x14')](_0x2392('0xee')),_0x1cdcbc[_0x2806e9]=this[_0x2392('0x57')]['data'][_0x2392('0x55')][_0x2392('0x75')](_0x5b214a),this[_0x2392('0x57')]['data'][_0x2392('0x55')]['useFillerType'](_0x2392('0xc7'));}return _0x1cdcbc;}async['getRevisionRootsAttributes'](_0x1f3da1){await this[_0x2392('0xd7')](_0x1f3da1);const _0x3fd5e5={};for(const _0x267797 in _0x1f3da1['diffData'])_0x1f3da1[_0x2392('0x43')][_0x267797]['attachChange']&&!_0x1f3da1['diffData'][_0x267797][_0x2392('0x9e')][_0x2392('0xad')]||(_0x3fd5e5[_0x267797]=_0x1f3da1['diffData'][_0x267797][_0x2392('0x11d')]||{});return _0x3fd5e5;}[_0x2392('0xab')](_0x4682d2){return(_0x4682d2=_0x4682d2[_0x2392('0x2d')](_0x39cab1=>!_0x39cab1[_0x2392('0xb1')]||_0x2392('0x6b')!==_0x39cab1[_0x2392('0xb1')]&&_0x2392('0xbc')!==_0x39cab1[_0x2392('0xb1')]))[_0x2392('0xf')](_0x474f92=>{'string'!=typeof _0x474f92&&(_0x474f92[_0x2392('0x38')]=this[_0x2392('0xab')](_0x474f92['children']),_0x474f92[_0x2392('0x6c')]=_0x474f92[_0x2392('0x6c')][_0x2392('0x2d')](_0x54ed90=>!_0x54ed90[0x0][_0x2392('0x66')](_0x2392('0x98'))));}),_0x4682d2;}async[_0x2392('0x4')](_0x4f904c,_0x6cc531,_0xb5fc88=!0x1){if(!this['isEnabled'])return;const _0x183333=this[_0x2392('0x6')],_0x4b407b=this['repository'],_0x12967d=_0x2392('0x118')==typeof _0x4f904c?_0x4b407b[_0x2392('0xda')](_0x4f904c):_0x4f904c,_0x21050b=_0x2392('0x118')==typeof _0x6cc531?_0x4b407b['getRevision'](_0x6cc531):_0x6cc531,_0x24542e=_0x12967d['id'],_0x10f261=_0x21050b?_0x21050b['id']:null;if(!_0xb5fc88&&this[_0x2392('0x6')]&&this['diff'][_0x2392('0xe0')]===_0x24542e&&this['diff'][_0x2392('0x46')]===_0x10f261)return Promise['resolve']();this[_0x2392('0x90')]=!0x1,this[_0x2392('0xb')]=null,this[_0x2392('0x1')]=null,this[_0x2392('0x6')]=new _0x3b9ed5(_0x24542e,_0x10f261);const _0x5067a5=this[_0x2392('0x64')](_0x12967d,_0x21050b,!0x0)[_0x2392('0xff')](_0x209600=>this[_0x2392('0xd7')](_0x209600));return _0x5067a5['push'](new Promise(_0x1a2cdf=>{setTimeout(_0x1a2cdf,0x14);})),Promise['all'](_0x5067a5)[_0x2392('0xa5')](()=>{if(!this[_0x2392('0xe8')])return;this[_0x2392('0xb9')]();const _0x467a27=this[_0x2392('0xd2')](_0x24542e,_0x10f261);for(const _0x542daa of _0x467a27[_0x2392('0x1b')])this['_changeIdToChange'][_0x2392('0x7e')](_0x542daa['id'],_0x542daa);this[_0x2392('0x57')]['model'][_0x2392('0x6f')]({'isUndoable':!0x1},_0x521ced=>{for(const _0x324fc5 of this[_0x2392('0x57')][_0x2392('0xd8')]['document'][_0x2392('0xd')]())_0x521ced[_0x2392('0x60')](_0x324fc5);for(const _0x1088f0 of Object[_0x2392('0x44')](_0x467a27['model'])){const _0xe1c7ff=_0x521ced[_0x2392('0x108')](_0x1088f0);for(const _0x2fe5a4 of Object[_0x2392('0x44')](_0x467a27[_0x2392('0x6c')][_0x1088f0]))_0x521ced[_0x2392('0x8d')](_0x2fe5a4,_0x467a27[_0x2392('0x6c')][_0x1088f0][_0x2fe5a4],_0xe1c7ff);_0x521ced[_0x2392('0x92')](_0x467a27['model'][_0x1088f0],_0xe1c7ff,0x0);}}),this[_0x2392('0x6')][_0x2392('0x5b')](this['_sortAndFilterDiffChanges'](_0x467a27[_0x2392('0x1b')])),this[_0x2392('0x90')]=!0x0;})[_0x2392('0x9c')](_0x2f48ef=>{console[_0x2392('0x25')](_0x2f48ef),this['_cleanUp'](),_0x183333&&(this[_0x2392('0x6')]=_0x183333),this[_0x2392('0x90')]=!0x0;});}[_0x2392('0x8b')](_0x56e574,_0x5bbb95){const _0x475ead=this[_0x2392('0xbb')][_0x2392('0xc6')](_0x56e574);return _0x475ead['on']('_update',(_0x4e3b7a,_0xe34a4a,_0x502a29)=>_0x5bbb95(_0xe34a4a,_0x502a29,_0x475ead)),this[_0x2392('0xbb')]['addRevision'](_0x475ead),_0x475ead;}[_0x2392('0xd7')](_0x57b47b){if(!_0x57b47b||_0x57b47b[_0x2392('0x43')])return Promise[_0x2392('0xb5')]();{const _0x5443d3=this[_0x2392('0x57')]['config'][_0x2392('0x71')](_0x2392('0xaa'));return this[_0x2392('0x88')]['getRevision']({'channelId':_0x5443d3,'revisionId':_0x57b47b['id']})[_0x2392('0xa5')](_0x46e05e=>{_0x57b47b['_update']({'diffData':_0x46e05e[_0x2392('0x43')]},!0x0);});}}[_0x2392('0xb9')](){this[_0x2392('0x1')]=null,this[_0x2392('0x4c')](),this[_0x2392('0x121')]&&this[_0x2392('0x121')][_0x2392('0x17')](),this[_0x2392('0x121')]=null,this['_changeIdToChange'][_0x2392('0xbe')](),this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x6f')]({'isUndoable':!0x1},_0x5de8a6=>{for(const _0x2a72e8 of this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0xe5')]['getRootNames']())_0x5de8a6['detachRoot'](_0x2a72e8);});}[_0x2392('0x24')](_0x255c5a){const _0x32e66c=[],_0x4bcaed=new Map();for(const _0x49e665 of this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0xe5')]['getRootNames']()){const _0x5ab333=this['editor'][_0x2392('0x48')][_0x2392('0x124')]['getDomRoot'](_0x49e665);if(!_0x5ab333)continue;const _0x5962ea=_0x5ab333['getClientRects']()[_0x2392('0x45')](0x0);_0x5962ea&&(_0x32e66c[_0x2392('0x126')](_0x49e665),_0x4bcaed[_0x2392('0x7e')](_0x49e665,_0x5962ea));}return _0x32e66c['sort']((_0x2150e3,_0x25c27e)=>{const _0x1c73cb=_0x4bcaed[_0x2392('0x71')](_0x2150e3),_0x1a8df3=_0x4bcaed[_0x2392('0x71')](_0x25c27e);return _0x1c73cb['y']-_0x1a8df3['y']||_0x1c73cb['x']-_0x1a8df3['x'];}),(_0x255c5a=_0x255c5a[_0x2392('0x2d')](_0x349936=>_0x32e66c['includes'](_0x349936[_0x2392('0xfa')])))['sort']((_0x213e13,_0x5eef7c)=>_0x32e66c[_0x2392('0xd0')](_0x213e13[_0x2392('0xfa')])-_0x32e66c['indexOf'](_0x5eef7c[_0x2392('0xfa')])),_0x255c5a;}[_0x2392('0x3c')](_0x1318c5){const _0x538bc0=Array[_0x2392('0xb3')](_0x1318c5[_0x2392('0xd5')])['filter'](([_0x189c3b,_0x5f48a4])=>_0x189c3b[_0x2392('0x66')](_0x2392('0xf8'))&&!_0x5f48a4[_0x2392('0xdf')]),_0x191186=Array[_0x2392('0xb3')](this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x11')](_0x1318c5)[_0x2392('0x54')]({'singleCharacters':!0x0}));if(0x0!=_0x538bc0[_0x2392('0xc5')])for(const _0x2be57d of _0x191186){const [_0x34fb36,_0x5a849e]=_0x538bc0[0x0],[,_0x3d86b2,_0x488900]=_0x34fb36[_0x2392('0xea')](':');if(_0x5a849e[_0x2392('0x1f')][_0x2392('0x1e')](_0x2be57d[_0x2392('0xc4')])&&_0x538bc0[_0x2392('0x39')](),(_0x2be57d[_0x2392('0x35')][_0x2392('0x1e')](_0x5a849e['start'])||_0x2be57d[_0x2392('0x35')][_0x2392('0x96')](_0x5a849e[_0x2392('0x101')]))&&('insertion'==_0x3d86b2?_0x2be57d['isAdded']={'userId':_0x488900}:_0x2392('0xf2')==_0x3d86b2&&(_0x2be57d[_0x2392('0xcc')]={'userId':_0x488900})),0x0==_0x538bc0[_0x2392('0xc5')])break;}return _0x191186;}['_refreshStartEndIndex'](_0x4d5b91){const _0x13b7a2=new Map();for(let _0x1027b4=0x0;_0x1027b4<_0x4d5b91[_0x2392('0xc5')];_0x1027b4++)_0x2392('0x5a')===_0x4d5b91[_0x1027b4][_0x2392('0xb0')]?(_0x4d5b91[_0x1027b4]['item'][_0x2392('0xe7')]=_0x1027b4,_0x4d5b91[_0x1027b4]['item'][_0x2392('0x4f')]=_0x1027b4):(_0x2392('0xb2')===_0x4d5b91[_0x1027b4][_0x2392('0xb0')]?_0x4d5b91[_0x1027b4][_0x2392('0x45')][_0x2392('0xe7')]=_0x1027b4:'elementEnd'===_0x4d5b91[_0x1027b4][_0x2392('0xb0')]&&(_0x4d5b91[_0x1027b4][_0x2392('0x45')][_0x2392('0x4f')]=_0x1027b4),_0x13b7a2[_0x2392('0x7e')](_0x4d5b91[_0x1027b4]['id'],_0x1027b4));for(const _0x223627 of _0x13b7a2[_0x2392('0x0')]())'elementStart'===_0x4d5b91[_0x223627][_0x2392('0xb0')]?_0x4d5b91[_0x223627][_0x2392('0x45')][_0x2392('0x4f')]=_0x13b7a2[_0x2392('0x71')](_0x4d5b91[_0x223627][_0x2392('0x7a')]):_0x2392('0x10f')===_0x4d5b91[_0x223627][_0x2392('0xb0')]&&(_0x4d5b91[_0x223627][_0x2392('0x45')][_0x2392('0xe7')]=_0x13b7a2[_0x2392('0x71')](_0x4d5b91[_0x223627][_0x2392('0x7a')]));}[_0x2392('0x36')](_0x1b6b7c){for(let _0x5a0c0c=0x0;_0x5a0c0c<_0x1b6b7c[_0x2392('0xc5')];_0x5a0c0c++){if('elementStart'===_0x1b6b7c[_0x5a0c0c][_0x2392('0xb0')])_0x1b6b7c[_0x5a0c0c][_0x2392('0x45')]['startIndex']=_0x5a0c0c;else{if(_0x2392('0x10f')===_0x1b6b7c[_0x5a0c0c]['type']){_0x1b6b7c[_0x5a0c0c][_0x2392('0x45')][_0x2392('0x4f')]=_0x5a0c0c;const _0x27939a=_0x1b6b7c[_0x5a0c0c][_0x2392('0x45')]['startIndex'];_0x1b6b7c[_0x27939a][_0x2392('0x7a')]=_0x1b6b7c[_0x5a0c0c]['id'],_0x1b6b7c[_0x5a0c0c][_0x2392('0x7a')]=_0x1b6b7c[_0x27939a]['id'];}else _0x1b6b7c[_0x5a0c0c][_0x2392('0x45')][_0x2392('0xe7')]=_0x5a0c0c,_0x1b6b7c[_0x5a0c0c][_0x2392('0x45')]['endIndex']=_0x5a0c0c,_0x1b6b7c[_0x5a0c0c][_0x2392('0x7a')]=null;}_0x1b6b7c[_0x5a0c0c][_0x2392('0x97')]||(_0x1b6b7c[_0x5a0c0c][_0x2392('0x97')]=[],_0x1b6b7c[_0x5a0c0c][_0x2392('0xb6')]=[]);}}['_markInsertions'](_0x556384,_0x217dff){const _0x5aff01=_0x556384['filter'](_0x3b74a2=>!_0x3b74a2[_0x2392('0xa2')]);for(let _0x3c98cc=0x0;_0x3c98cc<_0x217dff[_0x2392('0xc5')];_0x3c98cc++)_0x217dff[_0x3c98cc][_0x2392('0xa2')]&&(_0x5aff01[_0x3c98cc][_0x2392('0xa2')]=_0x217dff[_0x3c98cc]['isAdded']);}['_makeModelFromViewString'](_0x59758d){const _0x448d90=JSON['parse'](_0x59758d),_0x5d5984=this['editor'][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0xe5')],_0x39b277=new _0x355a18(_0x5d5984,_0x448d90[_0x2392('0xff')](_0x71ff6e=>this[_0x2392('0xa4')](_0x71ff6e)));return this[_0x2392('0x57')]['data']['toModel'](_0x39b277);}['_getViewObj'](_0x5a79dd){const _0x34a62b=this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0xe5')];if('string'==typeof _0x5a79dd)return new _0x108cb4(_0x34a62b,_0x5a79dd);{const _0x4d184c=_0x5a79dd[_0x2392('0x38')][_0x2392('0xff')](_0x100f74=>this['_getViewObj'](_0x100f74));return new(tt[_0x5a79dd[(_0x2392('0xb0'))]]||_0x2fa17a)(_0x34a62b,_0x5a79dd[_0x2392('0xb1')],_0x5a79dd['attributes'],_0x4d184c);}}['_getDiff'](_0x5f1b49,_0x15ea34=null){const _0xd46063=this['repository'][_0x2392('0xda')](_0x5f1b49),_0x246adb=_0x15ea34?this[_0x2392('0xbb')][_0x2392('0xda')](_0x15ea34):null,_0x21ed6f=this[_0x2392('0x64')](_0xd46063,_0x246adb),_0x3fc6f0=_0x21ed6f[_0x21ed6f[_0x2392('0xc5')]-0x1],_0x3795b1=new Map(),_0x302949={'model':{},'attributes':{},'changes':[]},_0x2a1f85=new Set(),_0x21ec88=new Map();for(let _0x3eb759=_0x21ed6f[_0x2392('0xc5')]-0x1;_0x3eb759>=0x0;_0x3eb759--){const _0xd696b4=_0x21ed6f[_0x3eb759];for(const _0x41a37c of Object['keys'](_0xd696b4['diffData']))if(_0xd696b4[_0x2392('0x43')][_0x41a37c][_0x2392('0x9e')]){const _0x4e4233=_0xd696b4['diffData'][_0x41a37c]['attachChange'];_0x4e4233[_0x2392('0xad')]?(_0x2a1f85[_0x2392('0x95')](_0x41a37c),_0x21ec88[_0x2392('0xdb')](_0x41a37c)&&_0x21ec88[_0x2392('0x71')](_0x41a37c)[_0x2392('0x99')]==_0x4e4233[_0x2392('0x99')]?_0x21ec88[_0x2392('0x19')](_0x41a37c):_0x21ec88[_0x2392('0x7e')](_0x41a37c,_0x4e4233)):_0x21ec88[_0x2392('0xdb')](_0x41a37c)?(_0x2a1f85['delete'](_0x41a37c),_0x21ec88[_0x2392('0x19')](_0x41a37c)):(_0x2a1f85['add'](_0x41a37c),_0x21ec88[_0x2392('0x7e')](_0x41a37c,_0x4e4233));}else _0x2a1f85[_0x2392('0x95')](_0x41a37c);}for(const _0x4577c2 of _0x2a1f85){const _0x223ee8=_0x21ec88[_0x2392('0xdb')](_0x4577c2)&&!_0x21ec88[_0x2392('0x71')](_0x4577c2)[_0x2392('0xad')];let _0x1c3617=_0x223ee8?_0x21ed6f[_0x2392('0xc5')]-0x1:0x0;const _0x520c90=_0x223ee8?-0x1:0x1;for(;_0x21ed6f[_0x1c3617];){const _0x3300cb=_0x21ed6f[_0x1c3617];if(_0x3300cb[_0x2392('0x43')][_0x4577c2]){const _0x15e991=_0x223ee8?_0x3300cb['diffData'][_0x4577c2][_0x2392('0x34')]:_0x3300cb[_0x2392('0x43')][_0x4577c2][_0x2392('0x11d')];_0x302949[_0x2392('0x6c')][_0x4577c2]=_0x15e991?_0x3d7b75(_0x15e991):{};break;}_0x1c3617+=_0x520c90;}}for(const _0x2681a of _0x21ed6f){_0x2681a['model']={};for(const _0x3ccd54 of _0x2681a[_0x2392('0x26')])_0x3795b1[_0x2392('0x7e')](_0x3ccd54['id'],_0x3ccd54);for(const _0x110bed of _0x2a1f85){const _0x51ed0a=_0x2681a[_0x2392('0x43')][_0x110bed]?_0x2681a['diffData'][_0x110bed][_0x2392('0xe1')]:'[]',_0x577dc0=_0x2681a['diffData'][_0x110bed]?_0x2681a[_0x2392('0x43')][_0x110bed][_0x2392('0x12')]:'[]';_0x2681a[_0x2392('0xd8')][_0x110bed]={'insertions':this['_makeModelFromViewString'](_0x51ed0a),'deletions':this[_0x2392('0x10')](_0x577dc0)};}}for(const _0x66674e of _0x2a1f85){let _0x5a874e=null,_0x325525=0x0;const _0x2f4cf7=new Map(Array['from'](_0xd46063['model'][_0x66674e]['insertions'][_0x2392('0xd5')])[_0x2392('0x2d')](([_0x4db6ca])=>!_0x4db6ca['startsWith']('revision:')));let _0xcc5ea=0x0;for(const _0x247497 of _0x21ed6f){const _0x3e9d89=this[_0x2392('0x3c')](_0x247497[_0x2392('0xd8')][_0x66674e][_0x2392('0xe1')]);_0x247497==_0xd46063?(_0x5a874e=_0x3e9d89,_0x325525=_0x5a874e[_0x2392('0xc5')],_0x5a874e[_0x2392('0xf')](_0x230e10=>{_0x230e10['id']=_0xcc5ea++;}),this[_0x2392('0x36')](_0x5a874e)):this[_0x2392('0x18')](_0x5a874e,_0x3e9d89);const _0x419e13=_0x5a874e[_0x2392('0x2d')](_0x5b1fe9=>!_0x5b1fe9[_0x2392('0xa2')])[_0x2392('0xff')](_0x2a821f=>_0x2a821f['id']);let _0x9fa8ce=0x0;const _0xd2a8b5=this[_0x2392('0x3c')](_0x247497['model'][_0x66674e][_0x2392('0x12')]);_0xd2a8b5['forEach'](_0x2a7bae=>{_0x2a7bae[_0x2392('0xcc')]?_0x2a7bae['id']=_0x325525++:_0x2a7bae['id']=_0x419e13[_0x9fa8ce++];}),this['_processTape'](_0xd2a8b5),this['_setDistance'](_0x5a874e,_0x2392('0xa2')),this[_0x2392('0x93')](_0xd2a8b5,_0x2392('0xcc')),_0x247497==_0xd46063&&this[_0x2392('0x125')](_0x5a874e,_0x2f4cf7),_0x5a874e=this[_0x2392('0x11c')](_0x5a874e,_0xd2a8b5),this[_0x2392('0xed')](_0x5a874e),this['_setDistance'](_0x5a874e,_0x2392('0xcc'));}_0x5a874e=_0x5a874e[_0x2392('0x2d')](_0x590de3=>!(_0x590de3[_0x2392('0xa2')]&&_0x590de3[_0x2392('0xcc')]));const _0x1895f8=new Map(_0x3fc6f0[_0x2392('0xd8')][_0x66674e][_0x2392('0x12')][_0x2392('0xd5')]),_0x32054e=new Set(_0x2f4cf7[_0x2392('0x44')]());for(const _0x2b8a7e of _0x1895f8['keys']())_0x32054e[_0x2392('0x19')](_0x2b8a7e);this[_0x2392('0x3a')](_0x5a874e,_0x32054e),this[_0x2392('0xef')](_0x5a874e),_0x5a874e=this[_0x2392('0xe6')](_0x5a874e),_0x5a874e=this[_0x2392('0x2c')](_0x5a874e),_0x5a874e=this[_0x2392('0x9a')](_0x5a874e);const {root:_0x3aaac0,changes:_0x153609}=this[_0x2392('0xba')](_0x5a874e,_0x3795b1,_0x66674e);_0x302949[_0x2392('0xd8')][_0x66674e]=_0x3aaac0;const _0x59f961=_0x21ec88['get'](_0x66674e);if(_0x59f961){const _0x5e2b34=_0x3795b1[_0x2392('0x71')](_0x59f961[_0x2392('0x99')]),_0x3f6abc=new _0x3dbf17({'author':_0x5e2b34,'type':_0x59f961['isAttached']?_0x2392('0x95'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x66674e});_0x153609['unshift'](_0x3f6abc),_0x302949['attributes'][_0x66674e]['revisionHistoryAttachChange']=_0x3f6abc['id'];}_0x302949['changes']=_0x302949[_0x2392('0x1b')][_0x2392('0xf5')](_0x153609);}return _0x302949;}['_markMarkers'](_0x3a9ab8,_0x71d99c){for(let _0x36b1d4=0x0;_0x36b1d4<_0x3a9ab8[_0x2392('0xc5')];_0x36b1d4++)for(const [_0x1c0b91,_0x5ec535]of _0x71d99c)_0x5ec535['start'][_0x2392('0x1e')](_0x3a9ab8[_0x36b1d4][_0x2392('0x35')])&&_0x3a9ab8[_0x36b1d4][_0x2392('0x97')][_0x2392('0x126')](_0x1c0b91),_0x5ec535[_0x2392('0x1f')][_0x2392('0x1e')](_0x3a9ab8[_0x36b1d4][_0x2392('0xc4')])&&_0x3a9ab8[_0x36b1d4]['markersEnd'][_0x2392('0x126')](_0x1c0b91);}[_0x2392('0x11c')](_0x58fe00,_0xacf842){let _0x43b322=[],_0x59fbdc=0x0,_0x16fbad=0x0;for(;_0x59fbdc<_0x58fe00[_0x2392('0xc5')]||_0x16fbad<_0xacf842[_0x2392('0xc5')];){const _0xa80fed=_0x58fe00[_0x59fbdc]||{},_0x338900=_0xacf842[_0x16fbad]||{};if(_0xa80fed['id']==_0x338900['id'])_0x59fbdc++,_0x16fbad++,_0x43b322[_0x2392('0x126')](_0xa80fed);else{if(_0x338900['isRemoved']&&_0xa80fed[_0x2392('0xa2')]){const {commonTape:_0x16cfaa,iEnd:_0x48d54f,jEnd:_0x46bc4d}=this[_0x2392('0x84')](_0x58fe00,_0x59fbdc,_0xacf842,_0x16fbad);_0x43b322=_0x43b322[_0x2392('0xf5')](_0x16cfaa),_0x59fbdc=_0x48d54f,_0x16fbad=_0x46bc4d;}else _0x338900[_0x2392('0xcc')]?(_0x16fbad++,_0x43b322[_0x2392('0x126')](_0x338900)):(_0x59fbdc++,_0x43b322['push'](_0xa80fed));}}return _0x43b322;}['_markSuggestions'](_0x8a5a62,_0x4d3de2){const _0x204efb=[];for(let _0xfd2219=0x0;_0xfd2219<_0x8a5a62[_0x2392('0xc5')];_0xfd2219++){for(let _0x56852b=0x0;_0x56852b<_0x8a5a62[_0xfd2219][_0x2392('0x97')][_0x2392('0xc5')];_0x56852b++){const _0x4043c3=_0x8a5a62[_0xfd2219]['markersStart'][_0x56852b];if(!_0x4d3de2['has'](_0x4043c3))continue;const {group:_0x93b1df,type:_0x5580a2,authorId:_0xd9d302}=_0x4cd6ad(_0x4043c3);'revision-suggestion'!=_0x93b1df||_0x2392('0x76')!=_0x5580a2&&_0x2392('0xf2')!=_0x5580a2||(_0x204efb[_0x2392('0x13')]({'type':_0x5580a2,'name':_0x4043c3,'userId':_0xd9d302}),_0x8a5a62[_0xfd2219][_0x2392('0x97')][_0x2392('0x7')](_0x56852b,0x1),_0x56852b--);}_0x9c9a35(_0x8a5a62[_0xfd2219]);for(let _0x4c656f=0x0;_0x4c656f<_0x8a5a62[_0xfd2219][_0x2392('0xb6')][_0x2392('0xc5')];_0x4c656f++){const _0x11ad07=_0x8a5a62[_0xfd2219][_0x2392('0xb6')][_0x4c656f];if(!_0x4d3de2[_0x2392('0xdb')](_0x11ad07))continue;const {group:_0x396ed0,type:_0x24f048}=_0x4cd6ad(_0x11ad07);if(_0x2392('0x1a')!=_0x396ed0||'insertion'!=_0x24f048&&_0x2392('0xf2')!=_0x24f048)continue;_0x8a5a62[_0xfd2219][_0x2392('0xb6')][_0x2392('0x7')](_0x4c656f,0x1),_0x4c656f--;const _0x8253ef=_0x204efb['findIndex'](_0xa0f435=>_0xa0f435[_0x2392('0xb1')]==_0x11ad07);_0x8253ef>-0x1&&_0x204efb[_0x2392('0x7')](_0x8253ef,0x1);}}function _0x4cd6ad(_0x5c4772){const _0x5454af=_0x5c4772['split'](':');return{'group':_0x5454af[0x0],'type':_0x5454af[0x1],'subType':_0x5454af[_0x2392('0xc5')]>=0x5?_0x5454af[0x2]:null,'id':_0x5454af[_0x2392('0xc5')]<0x5?_0x5454af[0x2]:_0x5454af[0x3],'authorId':_0x5454af['length']<0x5?_0x5454af[0x3]:_0x5454af[0x4],'markerCount':0x6==_0x5454af[_0x2392('0xc5')]?_0x5454af[0x5]:null};}function _0x9c9a35(_0xf666ce){for(let _0x966843=0x0;_0x966843<_0x204efb[_0x2392('0xc5')];_0x966843++){if(_0xf666ce[_0x2392('0xa2')]&&_0x2392('0x76')==_0x204efb[_0x966843][_0x2392('0xb0')])return _0xf666ce[_0x2392('0x7c')]=_0x204efb[_0x966843],void delete _0xf666ce['isAdded'];if(!_0xf666ce[_0x2392('0xa2')]&&!_0xf666ce['isRemoved']&&_0x2392('0xf2')==_0x204efb[_0x966843][_0x2392('0xb0')])return void(_0xf666ce[_0x2392('0x2b')]=_0x204efb[_0x966843]);}}}[_0x2392('0x93')](_0x2c9afe,_0x9a528c){let _0x166043=0x0,_0x4762bb=!0x1;const _0x5b1e4f=new Map();for(const _0x19d2db of _0x2c9afe)_0x19d2db[_0x9a528c]?_0x4762bb&&(_0x166043++,_0x4762bb=!0x1):(_0x166043++,_0x4762bb=!0x0),_0x5b1e4f['set'](_0x19d2db['id'],_0x166043);for(let _0x349c57=0x0;_0x349c57<_0x2c9afe['length'];_0x349c57++){if(_0x2392('0xcc')==_0x9a528c&&_0x2c9afe[_0x349c57][_0x2392('0xa2')]||'isAdded'==_0x9a528c&&_0x2c9afe[_0x349c57][_0x2392('0xcc')])continue;if(_0x2392('0x5a')==_0x2c9afe[_0x349c57][_0x2392('0xb0')]){_0x2c9afe[_0x349c57]['distance']=0x0;continue;}const _0x481749=_0x5b1e4f[_0x2392('0x71')](_0x2c9afe[_0x349c57][_0x2392('0x7a')]),_0xaa9b04=_0x5b1e4f[_0x2392('0x71')](_0x2c9afe[_0x349c57]['id']);_0x2c9afe[_0x349c57][_0x2392('0x11b')]=_0x481749-_0xaa9b04;}}['_getRevisionsRange'](_0x2f0fba,_0x441f7a,_0x282e64=!0x1){const _0x3ce07d=[];let _0x509714=this['repository'][_0x2392('0x10b')](_0x2f0fba),_0xca2484=this[_0x2392('0xbb')]['getIndex'](_0x441f7a);for(-0x1==_0xca2484&&(_0xca2484=this[_0x2392('0xbb')][_0x2392('0x2f')][_0x2392('0xc5')],_0x282e64=!0x1);_0x509714<_0xca2484;)_0x3ce07d['push'](this[_0x2392('0xbb')]['getRevision'](_0x509714)),_0x509714++;return _0x282e64&&_0x3ce07d['push'](this['repository'][_0x2392('0xda')](_0x509714)),_0x3ce07d;}[_0x2392('0x84')](_0x202921,_0x38292a,_0x53dc6b,_0x215c06){const _0x38f235=this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x113')];let _0xc96087=_0x38292a;for(;_0x202921[_0xc96087]&&_0x202921[_0xc96087][_0x2392('0xa2')];)_0xc96087++;let _0x3318b9=_0x215c06;for(;_0x53dc6b[_0x3318b9]&&_0x53dc6b[_0x3318b9][_0x2392('0xcc')];)_0x3318b9++;_0x560781(_0x202921,_0x38292a,_0xc96087),_0x560781(_0x53dc6b,_0x215c06,_0x3318b9);const _0x1ca327=_0x53dc6b['slice'](_0x215c06,_0x3318b9)['concat'](_0x202921[_0x2392('0xa0')](_0x38292a,_0xc96087));return _0x1ca327['sort']((_0x2c257f,_0x90a783)=>_0x2c257f['side']!=_0x90a783[_0x2392('0x29')]?_0x2c257f[_0x2392('0x29')]-_0x90a783[_0x2392('0x29')]:_0x2c257f[_0x2392('0x32')]!=_0x90a783[_0x2392('0x32')]?_0x2c257f[_0x2392('0x32')]-_0x90a783[_0x2392('0x32')]:_0x2c257f[_0x2392('0x11b')]!=_0x90a783[_0x2392('0x11b')]?_0x90a783['distance']-_0x2c257f[_0x2392('0x11b')]:!!_0x2c257f['isAdded']!=!!_0x90a783[_0x2392('0xa2')]?-0x1==_0x2c257f[_0x2392('0x29')]||0x0==_0x2c257f['side']?_0x2c257f[_0x2392('0xa2')]?-0x1:0x1:_0x2c257f[_0x2392('0xa2')]?0x1:-0x1:_0x2c257f[_0x2392('0xfe')]-_0x90a783[_0x2392('0xfe')]),{'commonTape':_0x1ca327,'iEnd':_0xc96087,'jEnd':_0x3318b9};function _0x560781(_0x37cafa,_0x5a5a9d,_0x169285){let _0x188141=-0x1,_0x1f3dbf=Number[_0x2392('0xeb')],_0x44b44f=!0x0;for(let _0x2b23b0=_0x5a5a9d;_0x2b23b0<_0x169285;_0x2b23b0++)if(_0x38f235[_0x2392('0xb8')](_0x37cafa[_0x2b23b0][_0x2392('0x45')])||(_0x44b44f=!0x1),_0x37cafa[_0x2b23b0][_0x2392('0x45')]['startIndex']<_0x5a5a9d&&(_0x188141=_0x2b23b0),_0x37cafa[_0x2b23b0]['item']['endIndex']>=_0x169285){_0x1f3dbf=_0x2b23b0;break;}_0x44b44f&&(_0x188141=_0x169285-0x1);for(let _0x9d70b7=_0x5a5a9d;_0x9d70b7<_0x169285;_0x9d70b7++)_0x37cafa[_0x9d70b7][_0x2392('0x29')]=_0x9d70b7<=_0x188141?-0x1:_0x9d70b7<_0x1f3dbf?0x0:0x1,_0x37cafa[_0x9d70b7][_0x2392('0xfe')]=_0x9d70b7;let _0x229261=0x0;for(let _0x167741=_0x5a5a9d;_0x167741<=_0x188141;_0x167741++)0x0==_0x37cafa[_0x167741]['distance']?_0x37cafa[_0x167741][_0x2392('0x32')]=_0x229261:(_0x229261++,_0x37cafa[_0x167741][_0x2392('0x32')]=_0x229261,_0x229261++);for(let _0x20c61f=_0x5a5a9d;_0x20c61f<_0x169285;_0x20c61f++)0x0==_0x37cafa[_0x20c61f][_0x2392('0x29')]&&(_0x37cafa[_0x20c61f][_0x2392('0x32')]=_0x229261);_0x229261=0x0;for(let _0x9ca244=_0x169285-0x1;_0x9ca244>=_0x1f3dbf;_0x9ca244--)0x0==_0x37cafa[_0x9ca244]['distance']?_0x37cafa[_0x9ca244][_0x2392('0x32')]=_0x229261:(_0x229261--,_0x37cafa[_0x9ca244][_0x2392('0x32')]=_0x229261,_0x229261--);}}[_0x2392('0xef')](_0x3b460b){const _0x540e8e=new Map(),_0x4de0d4=this[_0x2392('0x57')][_0x2392('0xd8')]['schema'];for(let _0x45f290=0x1;_0x45f290<_0x3b460b[_0x2392('0xc5')];_0x45f290++){let _0x34709a,_0x59e935,_0x16fa1c;const _0x4cd2cd=_0x3b460b[_0x45f290],_0x56076e=_0x3b460b[_0x45f290-0x1];if('text'==_0x4cd2cd[_0x2392('0xb0')])continue;if(_0x4cd2cd[_0x2392('0xb0')]!=_0x56076e[_0x2392('0xb0')])continue;if(!_0x4de0d4[_0x2392('0x6e')](_0x56076e['item'])||_0x4de0d4[_0x2392('0xc3')](_0x56076e[_0x2392('0x45')]))continue;if(!_0x4de0d4['isBlock'](_0x4cd2cd[_0x2392('0x45')])||_0x4de0d4['isLimit'](_0x4cd2cd['item']))continue;if((_0x3b460b[_0x45f290][_0x2392('0xa2')]||_0x3b460b[_0x45f290][_0x2392('0x7c')])&&_0x3b460b[_0x45f290-0x1][_0x2392('0xcc')])_0x34709a=_0x3b460b[_0x45f290],_0x59e935=_0x3b460b[_0x45f290-0x1],_0x16fa1c=_0x45f290-0x1;else{if(!_0x3b460b[_0x45f290]['isRemoved']||!_0x3b460b[_0x45f290-0x1][_0x2392('0xa2')]&&!_0x3b460b[_0x45f290-0x1][_0x2392('0x7c')])continue;_0x34709a=_0x3b460b[_0x45f290-0x1],_0x59e935=_0x3b460b[_0x45f290],_0x16fa1c=_0x45f290;}const _0x3caa63=_0x34709a[_0x2392('0x32')]==_0x59e935[_0x2392('0x32')],_0x17162a=Math['abs'](_0x34709a['level'])<Math['abs'](_0x59e935[_0x2392('0x32')])&&0x0==_0x59e935[_0x2392('0x11b')];(_0x3caa63||_0x17162a)&&(_0x540e8e[_0x2392('0x7e')](_0x59e935['id'],_0x34709a['id']),_0x3b460b[_0x2392('0x7')](_0x16fa1c,0x1),_0x45f290--,_0x34709a[_0x2392('0xa2')]=!0x1);}for(let _0x58fbc9=0x0;_0x58fbc9<_0x3b460b[_0x2392('0xc5')];_0x58fbc9++)_0x540e8e[_0x2392('0xdb')](_0x3b460b[_0x58fbc9]['pairId'])&&(_0x3b460b[_0x58fbc9]['pairId']=_0x540e8e['get'](_0x3b460b[_0x58fbc9]['pairId']));}['_removeMissingPairs'](_0x3372d8){const _0x3769d6=new Set(_0x3372d8['map'](_0x42912a=>_0x42912a['id']));for(let _0x3fb5f9=0x0;_0x3fb5f9<_0x3372d8[_0x2392('0xc5')];_0x3fb5f9++)_0x3769d6[_0x2392('0xdb')](_0x3372d8[_0x3fb5f9]['pairId'])||0x0==_0x3372d8[_0x3fb5f9][_0x2392('0x11b')]||(_0x3372d8[_0x3fb5f9]['isIncorrect']=!0x0);return _0x3372d8[_0x2392('0x2d')](_0x527f16=>!_0x527f16[_0x2392('0xca')]);}[_0x2392('0x2c')](_0x30a30f){const _0x46456e=new Set();for(let _0x2449fb=0x0;_0x2449fb<_0x30a30f['length'];_0x2449fb++){if(_0x46456e[_0x2392('0xdb')](_0x30a30f[_0x2449fb]['id'])&&_0x30a30f[_0x2449fb][_0x2392('0xcc')]&&(_0x30a30f[_0x2449fb]['isIncorrect']=!0x0),_0x30a30f[_0x2449fb]['isIncorrect'])continue;if(0x0==_0x30a30f[_0x2449fb][_0x2392('0x11b')])continue;if(_0x2392('0xb2')!=_0x30a30f[_0x2449fb]['type'])continue;if(null==_0x30a30f[_0x2449fb]['pairId'])continue;let _0x212255=_0x2449fb+0x1,_0x2ff5c7=0x0;for(;_0x30a30f[_0x212255]['id']!=_0x30a30f[_0x2449fb][_0x2392('0x7a')];)_0x2392('0xb2')==_0x30a30f[_0x212255][_0x2392('0xb0')]?_0x2ff5c7++:_0x2392('0x10f')==_0x30a30f[_0x212255]['type']&&_0x2ff5c7--,_0x212255++;if(0x0!=_0x2ff5c7){if(_0x30a30f[_0x2449fb][_0x2392('0xcc')])_0x30a30f[_0x2449fb]['isIncorrect']=!0x0;else for(;_0x212255!=_0x2449fb;)_0x30a30f[_0x212255]['isRemoved']&&0x0!=_0x30a30f[_0x212255]['distance']&&(_0x30a30f[_0x212255]['isIncorrect']=!0x0,_0x46456e['add'](_0x30a30f[_0x212255][_0x2392('0x7a')])),_0x212255--;}}return _0x30a30f[_0x2392('0x2d')](_0x469858=>!_0x469858[_0x2392('0xca')]);}[_0x2392('0x9a')](_0xecfc66){const _0x19316b=this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x113')];for(let _0x397d23=0x0;_0x397d23<_0xecfc66[_0x2392('0xc5')];_0x397d23++){if(!(_0xecfc66[_0x397d23][_0x2392('0xa2')]||_0xecfc66[_0x397d23][_0x2392('0x7c')]||_0xecfc66[_0x397d23]['isRemoved']||_0xecfc66[_0x397d23]['isRemoveSuggestion']))continue;if(0x0==_0xecfc66[_0x397d23][_0x2392('0x11b')])continue;const _0x3f96c4=_0xecfc66[_0x397d23][_0x2392('0x45')];_0x19316b[_0x2392('0x6e')](_0x3f96c4)||_0x19316b['isLimit'](_0x3f96c4)||(_0xecfc66[_0x397d23][_0x2392('0xa2')]&&delete _0xecfc66[_0x397d23][_0x2392('0xa2')],_0xecfc66[_0x397d23][_0x2392('0x7c')]&&delete _0xecfc66[_0x397d23][_0x2392('0x7c')],_0xecfc66[_0x397d23][_0x2392('0x2b')]&&delete _0xecfc66[_0x397d23][_0x2392('0x2b')],_0xecfc66[_0x397d23][_0x2392('0xcc')]&&(_0xecfc66[_0x397d23][_0x2392('0xca')]=!0x0));}return _0xecfc66[_0x2392('0x2d')](_0x50c709=>!_0x50c709[_0x2392('0xca')]);}[_0x2392('0xba')](_0x1d4239,_0x678914,_0x2e5a3c){const _0x2023ea=new _0x1f4460(),_0x495ad5=[],_0x2ebd78=new Map(),_0x381b2a=this[_0x2392('0x57')]['model'],_0x26dc0e=_0x381b2a[_0x2392('0x113')],_0x421f21=[_0x2023ea],_0x45d865={},_0x2b6775={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa6bd42=null;const _0x24ec92=[0x0];for(let _0x5ec917=0x0;_0x5ec917<_0x1d4239['length'];_0x5ec917++){let _0x307d16,_0xf58e79;if('elementStart'===_0x1d4239[_0x5ec917][_0x2392('0xb0')]){_0x307d16=_0x381b2a['createPositionFromPath'](_0x2023ea,_0x24ec92);const _0x15b8bd=new _0x44f8ba(_0x1d4239[_0x5ec917][_0x2392('0x45')][_0x2392('0xb1')],_0x1d4239[_0x5ec917][_0x2392('0x45')][_0x2392('0x28')]());_0x421f21[0x0]['_appendChild'](_0x15b8bd),_0x24ec92[_0x2392('0x126')](0x0),_0x421f21['unshift'](_0x15b8bd),_0xf58e79=_0x381b2a[_0x2392('0x4e')](_0x2023ea,_0x24ec92),_0xa6bd42=null;}else{if('elementEnd'===_0x1d4239[_0x5ec917][_0x2392('0xb0')])_0x421f21[_0x2392('0x39')](),_0x307d16=_0x381b2a[_0x2392('0x4e')](_0x2023ea,_0x24ec92),_0x24ec92['pop'](),_0x24ec92[_0x24ec92[_0x2392('0xc5')]-0x1]++,_0xf58e79=_0x381b2a[_0x2392('0x4e')](_0x2023ea,_0x24ec92),_0xa6bd42=null;else{if(_0x307d16=_0x381b2a[_0x2392('0x4e')](_0x2023ea,_0x24ec92),_0xa6bd42&&_0x418d2c(_0xa6bd42,_0x1d4239[_0x5ec917][_0x2392('0x45')]))_0xa6bd42[_0x2392('0x52')]+=_0x1d4239[_0x5ec917][_0x2392('0x45')][_0x2392('0x8e')];else{const _0x20363f=new _0x1ca042(_0x1d4239[_0x5ec917]['item'][_0x2392('0x8e')],_0x1d4239[_0x5ec917]['item']['getAttributes']());_0x421f21[0x0][_0x2392('0x8c')](_0x20363f),_0xa6bd42=_0x20363f;}_0x24ec92[_0x24ec92[_0x2392('0xc5')]-0x1]+=_0x1d4239[_0x5ec917][_0x2392('0x45')][_0x2392('0x73')],_0xf58e79=_0x381b2a[_0x2392('0x4e')](_0x2023ea,_0x24ec92);}}for(const _0x7984d5 of _0x1d4239[_0x5ec917][_0x2392('0x97')])_0x2ebd78['set'](_0x7984d5,{'start':_0x307d16,'end':null});_0x3ddce2(_0x2392('0x2b'),_0x5ec917,_0x307d16,_0xf58e79),_0x3ddce2(_0x2392('0x7c'),_0x5ec917,_0x307d16,_0xf58e79),_0x3ddce2(_0x2392('0xcc'),_0x5ec917,_0x307d16,_0xf58e79),_0x3ddce2(_0x2392('0xa2'),_0x5ec917,_0x307d16,_0xf58e79);for(const _0x2cc833 of _0x1d4239[_0x5ec917][_0x2392('0xb6')]){_0x2ebd78['get'](_0x2cc833)[_0x2392('0x1f')]=_0xf58e79;}}for(const [_0x5ddb41,_0x4cd2ea]of _0x2ebd78){const _0x1c0980=this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x6a')](_0x4cd2ea[_0x2392('0x101')],_0x4cd2ea[_0x2392('0x1f')]);_0x2023ea[_0x2392('0xd5')][_0x2392('0x7e')](_0x5ddb41,_0x1c0980);}return _0x495ad5['sort']((_0xa58f5f,_0x8d4957)=>{const _0x5b7d18=_0x2023ea[_0x2392('0xd5')][_0x2392('0x71')](_0x2392('0xf8')+_0xa58f5f['id']),_0x22fae7=_0x2023ea[_0x2392('0xd5')][_0x2392('0x71')]('revision:'+_0x8d4957['id']);return _0x5b7d18[_0x2392('0x101')][_0x2392('0x50')](_0x22fae7[_0x2392('0x101')])?-0x1:_0x5b7d18[_0x2392('0x101')][_0x2392('0x96')](_0x22fae7[_0x2392('0x101')])?0x1:_0x5b7d18[_0x2392('0x1f')][_0x2392('0x50')](_0x22fae7[_0x2392('0x1f')])?-0x1:_0x5b7d18[_0x2392('0x1f')][_0x2392('0x96')](_0x22fae7[_0x2392('0x1f')])?0x1:'add'===_0xa58f5f[_0x2392('0xb0')]?-0x1:0x1;}),{'root':_0x2023ea,'changes':_0x495ad5};function _0x3ddce2(_0x192d73,_0x1ad95c,_0x1bd9cd,_0x54f2bd){const _0x36a8fc=!!_0x1d4239[_0x1ad95c][_0x192d73],_0x40b676=_0x36a8fc?_0x1d4239[_0x1ad95c][_0x192d73][_0x2392('0x99')]:null,_0x2ec987=_0x1ad95c===_0x1d4239[_0x2392('0xc5')]-0x1,_0x3f985a=_0x2b6775[_0x192d73][0x0],_0x3928c5=_0x26dc0e['isObject'](_0x1d4239[_0x1ad95c][_0x2392('0x45')]);!_0x45d865[_0x192d73]&&_0x36a8fc?_0x45d865[_0x192d73]={'start':_0x1bd9cd,'tapeItem':_0x1d4239[_0x1ad95c],'userId':_0x40b676,'type':_0x192d73}:_0x45d865[_0x192d73]&&!_0x36a8fc?(_0x45d865[_0x192d73]['end']=_0x1bd9cd,_0x497229(_0x45d865[_0x192d73]),_0x45d865[_0x192d73]=null):_0x45d865[_0x192d73]&&_0x36a8fc&&_0x45d865[_0x192d73][_0x2392('0x99')]!==_0x40b676&&(_0x45d865[_0x192d73][_0x2392('0x1f')]=_0x1bd9cd,_0x3f985a&&_0x3f985a[_0x2392('0x99')]===_0x45d865[_0x192d73]['userId']||_0x497229(_0x45d865[_0x192d73]),_0x45d865[_0x192d73]={'start':_0x1bd9cd,'tapeItem':_0x1d4239[_0x1ad95c],'userId':_0x40b676,'type':_0x192d73}),_0x45d865[_0x192d73]&&_0x3928c5&&('elementStart'!==_0x1d4239[_0x1ad95c][_0x2392('0xb0')]||_0x3f985a&&_0x3f985a[_0x2392('0x99')]===_0x40b676||_0x2b6775[_0x192d73][_0x2392('0x13')]({'userId':_0x40b676,'object':_0x1d4239[_0x1ad95c]['item'],'change':_0x45d865[_0x192d73]}),_0x2392('0x10f')===_0x1d4239[_0x1ad95c][_0x2392('0xb0')]&&_0x3f985a&&_0x3f985a[_0x2392('0x30')]===_0x1d4239[_0x1ad95c][_0x2392('0x45')]&&(_0x2b6775[_0x192d73]['shift'](),_0x45d865[_0x192d73]=_0x3f985a[_0x2392('0x9')])),_0x45d865[_0x192d73]&&_0x2ec987&&(_0x45d865[_0x192d73]['end']=_0x54f2bd,_0x497229(_0x45d865[_0x192d73]),_0x45d865[_0x192d73]=null);}function _0x497229({start:_0x460f2e,end:_0xd4b550,tapeItem:_0x5f4cff,userId:_0x44d6d4,type:_0x44c756}){const _0x430366=_0x5f4cff[_0x2392('0x45')],_0x349320=_0x381b2a[_0x2392('0x113')][_0x2392('0x6e')](_0x430366)&&!_0x381b2a[_0x2392('0x113')][_0x2392('0xc3')](_0x430366),_0x2f34d5=_0x460f2e['nodeAfter']==_0xd4b550['parent']&&_0xd4b550[_0x2392('0x10a')];if(_0x349320&&_0x2f34d5)return;const _0x19c518=_0x381b2a[_0x2392('0x6a')](_0x460f2e,_0xd4b550),_0x205cc6=_0x678914[_0x2392('0x71')](_0x44d6d4),_0x20be65=new _0x3dbf17({'author':_0x205cc6,'type':_0x2392('0xa2')==_0x44c756||_0x2392('0x7c')==_0x44c756?'add':_0x2392('0x83'),'data':{'isSuggestion':'isAddSuggestion'==_0x44c756||_0x2392('0x2b')==_0x44c756},'createdAt':new Date(),'rootName':_0x2e5a3c});_0x495ad5['push'](_0x20be65),_0x2023ea[_0x2392('0xd5')][_0x2392('0x7e')]('revision:'+_0x20be65['id'],_0x19c518);}function _0x418d2c(_0x49cf16,_0x157e1d){const _0x224dc8=_0x49cf16[_0x2392('0x28')](),_0x1ec8b1=_0x157e1d[_0x2392('0x28')]();for(const _0x334281 of _0x224dc8){if(_0x334281[0x1]!==_0x157e1d['getAttribute'](_0x334281[0x0]))return!0x1;_0x1ec8b1[_0x2392('0x107')]();}return _0x1ec8b1[_0x2392('0x107')]()['done'];}}[_0x2392('0xb4')](){this['editor'][_0x2392('0x3')][_0x2392('0x15')](_0x2392('0xa3'))['dataToMarker']({'view':_0x2392('0x86')}),this['editor'][_0x2392('0x3')]['for'](_0x2392('0x120'))[_0x2392('0x111')]({'model':_0x2392('0x86'),'view':_0x21799f=>{const _0x555562=_0x21799f['markerName'][_0x2392('0xea')](':')[0x1],_0x23c3da=this[_0x2392('0x123')](_0x555562);if(!_0x23c3da)return null;const _0x55481a=_0x2392('0x95')==_0x23c3da['type']?_0x2392('0x76'):_0x2392('0xf2'),_0x374fc6=[_0x2392('0x6d'),_0x2392('0x65')+_0x55481a];return _0x23c3da['data']['isSuggestion']&&_0x374fc6[_0x2392('0x126')](_0x2392('0x65')+_0x55481a+_0x2392('0x87')),this[_0x2392('0x1')]==_0x23c3da&&_0x374fc6[_0x2392('0x126')](_0x2392('0x74')),{'classes':_0x374fc6,'attributes':{'data-change-id':_0x555562}};}}),this[_0x2392('0x57')][_0x2392('0x3')][_0x2392('0x15')]('upcast')[_0x2392('0x95')](_0x2ae980=>{_0x2ae980['on'](_0x2392('0xfb'),(_0x443a55,_0x5f67c8,_0x1c9397)=>{const _0x5e792e=_0x5f67c8[_0x2392('0x8f')]['getChild'](0x0);if(!_0x5e792e||!_0x5e792e['is'](_0x2392('0xc'),_0x2392('0xf0')))return;if(!_0x1c9397[_0x2392('0x89')][_0x2392('0x69')](_0x5e792e,{'attributes':[_0x2392('0xf7'),_0x2392('0x3d')]}))return;const _0x425d17=_0x5f67c8['modelRange']['start']['nodeAfter'];_0x1c9397[_0x2392('0xf9')][_0x2392('0x8d')](_0x2392('0xf7'),_0x5e792e[_0x2392('0xc2')]('vid_start'),_0x425d17),_0x1c9397['writer']['setAttribute'](_0x2392('0x3d'),_0x5e792e[_0x2392('0xc2')](_0x2392('0x3d')),_0x425d17);},{'priority':_0x2392('0x3e')});}),this[_0x2392('0x57')][_0x2392('0x3')][_0x2392('0x15')](_0x2392('0xa3'))[_0x2392('0x95')](_0x843a96=>{_0x843a96['on'](_0x2392('0xc'),(_0x1421b6,_0x43931d,_0x13ee05)=>{if(!_0x13ee05['consumable'][_0x2392('0x69')](_0x43931d[_0x2392('0x8f')],{'attributes':[_0x2392('0xf7'),_0x2392('0x3d')]}))return;if(_0x43931d[_0x2392('0x21')][_0x2392('0xdf')])return;const _0x11180a=_0x43931d[_0x2392('0x21')][_0x2392('0x101')][_0x2392('0x5e')];_0x11180a[_0x2392('0x117')](_0x2392('0xf7'))||_0x11180a[_0x2392('0x117')]('vid')||(_0x13ee05['writer']['setAttribute'](_0x2392('0xf7'),_0x43931d[_0x2392('0x8f')]['getAttribute'](_0x2392('0xf7')),_0x11180a),_0x13ee05['writer'][_0x2392('0x8d')]('vid_end',_0x43931d[_0x2392('0x8f')][_0x2392('0xc2')](_0x2392('0x3d')),_0x11180a));},{'priority':_0x2392('0x3e')});}),this[_0x2392('0x57')]['conversion'][_0x2392('0x15')]('upcast')[_0x2392('0x2e')]({'view':{'name':_0x2392('0x115'),'attributes':{'vid':!0x0}},'model':{'key':_0x2392('0xc9'),'value':_0x2f864b=>_0x2f864b['getAttribute'](_0x2392('0xc9'))}}),this[_0x2392('0x57')][_0x2392('0xd8')]['schema']['on'](_0x2392('0x103'),(_0x363cf2,[,_0x45b83e])=>{[_0x2392('0xf7'),_0x2392('0x3d'),_0x2392('0xc9')]['includes'](_0x45b83e)&&(_0x363cf2[_0x2392('0x5')]=!0x0,_0x363cf2[_0x2392('0x47')]());},{'priority':_0x2392('0x94')}),this[_0x2392('0x57')][_0x2392('0x3')][_0x2392('0x15')]('dataDowncast')['add'](_0x1fde0f=>{_0x1fde0f['on']('attribute:vid',(_0x428bf5,_0x39a5c1,_0x368035)=>{if('\x20'!=_0x39a5c1[_0x2392('0x45')][_0x2392('0x8e')]||_0x39a5c1[_0x2392('0x45')][_0x2392('0x58')][_0x2392('0x7b')]>0x1)return;if(!_0x368035[_0x2392('0x89')][_0x2392('0x69')](_0x39a5c1[_0x2392('0x45')],_0x428bf5[_0x2392('0xb1')]))return;const _0x4b0a27=_0x368035[_0x2392('0xf9')],_0x4b47c8=_0x368035[_0x2392('0x1c')][_0x2392('0xe')](_0x39a5c1[_0x2392('0x7d')]);_0x4b0a27[_0x2392('0xce')](_0x4b47c8,_0x4b0a27['createAttributeElement'](_0x2392('0x115')));});}),this[_0x2392('0x57')][_0x2392('0x3')]['for']('dataDowncast')['markerToData']({'model':_0x2392('0x86')}),this[_0x2392('0x57')]['editing'][_0x2392('0x72')]['on'](_0x2392('0x70'),function(_0x5dff8f){const _0x56fcdb=_0x5dff8f[_0x2392('0x3b')][_0x2392('0x71')](_0x2392('0x11a'));return(_0xac0501,_0x129cf4,_0x499ae3)=>{const _0x4b31c1=_0x129cf4['markerName'][_0x2392('0xea')](':')[0x1],_0x442c14=_0x56fcdb['_getChangeFromId'](_0x4b31c1);if(!_0x442c14)return null;const _0x28b5c8=_0x2392('0x95')==_0x442c14[_0x2392('0xb0')]?'split':'merge';if(!_0x499ae3[_0x2392('0x89')][_0x2392('0x40')](_0x129cf4['markerRange'],_0xac0501[_0x2392('0xb1')]))return;const _0x467ad3=_0x129cf4[_0x2392('0xd4')][_0x2392('0x54')](),_0x53cc91=_0x129cf4[_0x2392('0xd4')]['start'],_0x545204=_0x5dff8f['model'][_0x2392('0x113')];let _0x30dc04=null,_0x58609b=null,_0x5d6dad=!0x1,_0x34f794=!0x1;for(const _0x2892bf of _0x467ad3){const _0x1f4397=_0x2892bf['item'];_0x5d6dad=_0x5d6dad||_0x545204[_0x2392('0x5f')](_0x1f4397);const _0x557364=_0x499ae3[_0x2392('0x1c')]['toViewElement'](_0x1f4397);if(_0x557364&&_0x557364[_0x2392('0x128')](_0x2392('0x42')))return;_0x2392('0x10f')==_0x2892bf[_0x2392('0xb0')]&&(_0x545204[_0x2392('0x6e')](_0x1f4397)&&!_0x545204['isLimit'](_0x1f4397)&&(_0x1f4397[_0x2392('0x27')]||_0x53cc91[_0x2392('0x3f')]?_0x30dc04&&_0x30dc04[_0x2392('0x58')]==_0x1f4397||(_0x30dc04=_0x1f4397,_0x47fa7f(_0x2892bf[_0x2392('0x35')]),_0x34f794=!0x0):_0x58609b=_0x58609b||_0x2892bf[_0x2392('0x35')]));}function _0x47fa7f(_0x444e17){const _0x140649=_0x499ae3[_0x2392('0xf9')][_0x2392('0xa')]('span',{'class':_0x2392('0x65')+_0x28b5c8}),_0x115557=_0x499ae3[_0x2392('0x1c')][_0x2392('0x4d')](_0x444e17);_0x442c14[_0x2392('0x8e')]['isSuggestion']&&_0x499ae3[_0x2392('0xf9')][_0x2392('0x62')](_0x2392('0x65')+_0x28b5c8+_0x2392('0x87'),_0x140649),_0x56fcdb[_0x2392('0x1')]==_0x442c14&&_0x499ae3[_0x2392('0xf9')][_0x2392('0x62')]('ck-suggestion-marker--active',_0x140649),_0x499ae3[_0x2392('0xf9')]['insert'](_0x115557,_0x140649),_0x499ae3[_0x2392('0x1c')]['bindElementToMarker'](_0x140649,_0x129cf4['markerName']);}_0x5d6dad||_0x34f794||!_0x58609b||_0x47fa7f(_0x58609b);};}(this[_0x2392('0x57')]),{'priority':_0x2392('0x80')}),this[_0x2392('0x57')][_0x2392('0x48')]['downcastDispatcher']['on'](_0x2392('0xfc'),(_0x565b68,_0x33f13b,_0x3b984c)=>{const _0x15e897=_0x3b984c[_0x2392('0x1c')]['markerNameToElements'](_0x33f13b[_0x2392('0x5c')]);if(_0x15e897)for(const _0x897d1f of _0x15e897)(_0x897d1f[_0x2392('0xc8')](_0x2392('0x10d'))||_0x897d1f[_0x2392('0xc8')](_0x2392('0xf4')))&&(_0x3b984c[_0x2392('0x1c')][_0x2392('0xa7')](_0x897d1f,_0x33f13b['markerName']),_0x3b984c[_0x2392('0xf9')][_0x2392('0x83')](_0x897d1f));},{'priority':_0x2392('0x80')}),this['editor'][_0x2392('0x48')][_0x2392('0x72')]['on'](_0x2392('0x70'),(_0x5991ac,_0x1e9b89,_0x433da4)=>{const _0x264251=_0x1e9b89[_0x2392('0x5c')][_0x2392('0xea')](':')[0x1],_0x55556a=this[_0x2392('0x123')](_0x264251);if(!_0x55556a)return null;const _0x2b1266=_0x2392('0x95')==_0x55556a[_0x2392('0xb0')]?_0x2392('0xea'):_0x2392('0x22');if(_0x433da4['consumable'][_0x2392('0x40')](_0x1e9b89[_0x2392('0xd4')],_0x5991ac[_0x2392('0xb1')]))for(const _0x3bf034 of _0x1e9b89[_0x2392('0xd4')][_0x2392('0xbd')]()){if(!_0x3bf034['is'](_0x2392('0xc'),_0x2392('0x114')))continue;const _0x2ee8b1=_0x433da4[_0x2392('0xf9')]['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b1266}),_0x471018=_0x433da4[_0x2392('0x1c')][_0x2392('0x4d')](this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x7f')](_0x3bf034));_0x55556a['data'][_0x2392('0x11f')]&&_0x433da4[_0x2392('0xf9')][_0x2392('0x62')](_0x2392('0x65')+_0x2b1266+'-new',_0x2ee8b1),this[_0x2392('0x1')]==_0x55556a&&_0x433da4[_0x2392('0xf9')][_0x2392('0x62')]('ck-suggestion-marker--active',_0x2ee8b1),_0x433da4[_0x2392('0xf9')]['insert'](_0x471018,_0x2ee8b1),_0x433da4[_0x2392('0x1c')][_0x2392('0x11e')](_0x2ee8b1,_0x1e9b89[_0x2392('0x5c')]);}},{'priority':'high'}),this[_0x2392('0x57')][_0x2392('0xd8')]['document']['on'](_0x2392('0x9'),()=>{this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0x9')](_0x3a7026=>{for(const _0x4083f7 of this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0xe5')][_0x2392('0xd')]()){const _0x4e578c=this['editor'][_0x2392('0xd8')][_0x2392('0xe5')][_0x2392('0xcd')](_0x4083f7),_0x5ed123=this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0xe5')][_0x2392('0xcd')](_0x4083f7);if(_0x5ed123){const _0x3f378c=_0x4e578c['getAttribute'](_0x2392('0xaf'));if(_0x3a7026['removeAttribute']('data-change-id',_0x5ed123),_0x3a7026[_0x2392('0x56')](_0x2392('0x41'),_0x5ed123),_0x3a7026[_0x2392('0x56')](_0x2392('0xe4'),_0x5ed123),_0x3a7026[_0x2392('0x56')]('ck-revision-history-root--active',_0x5ed123),_0x3f378c){const _0x17b9e8=this['_getChangeFromId'](_0x3f378c);if(!_0x17b9e8)return null;_0x3a7026[_0x2392('0x8d')](_0x2392('0xd3'),_0x3f378c,_0x5ed123),_0x3a7026[_0x2392('0x62')](_0x2392('0xf6')+_0x17b9e8['type'],_0x5ed123),this['activeChange']==_0x17b9e8&&_0x3a7026['addClass'](_0x2392('0xfd'),_0x5ed123);}}}});}),this[_0x2392('0x57')][_0x2392('0x3')][_0x2392('0x15')]('upcast')[_0x2392('0x20')]({'view':_0x2392('0x102'),'model':_0x1b3ce6=>_0x2392('0x77')+_0x1b3ce6,'converterPriority':_0x2392('0x94')}),this[_0x2392('0x57')]['conversion'][_0x2392('0x15')](_0x2392('0xa3'))[_0x2392('0x20')]({'view':_0x2392('0xc1'),'model':_0x55149d=>_0x2392('0x78')+_0x55149d,'converterPriority':'highest'}),this[_0x2392('0x57')][_0x2392('0x3')]['for']('dataDowncast')[_0x2392('0x109')]({'model':_0x2392('0x1a'),'view':_0x5d28e7=>({'name':_0x2392('0x10e')+_0x5d28e7,'group':_0x2392('0x1a')}),'converterPriority':'highest'}),this['editor'][_0x2392('0x3')][_0x2392('0x15')](_0x2392('0x120'))[_0x2392('0x111')]({'model':_0x2392('0x1a'),'view':_0xce7117=>{const _0x2347dd=_0xce7117['markerName']['split'](':')[0x1];return _0x2392('0x76')!=_0x2347dd&&_0x2392('0xf2')!=_0x2347dd?null:{'classes':[_0x2392('0x31'),_0x2392('0xbf')+_0x2347dd]};}}),this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x72')]['on'](_0x2392('0xd6'),et(this['editor'],_0x2392('0x22')),{'priority':'high'}),this[_0x2392('0x57')][_0x2392('0x48')]['downcastDispatcher']['on'](_0x2392('0x119'),et(this[_0x2392('0x57')],'split'),{'priority':'high'}),this['editor'][_0x2392('0x48')][_0x2392('0x72')]['on']('removeMarker:revision-suggestion',(_0x33b8f5,_0x1fd436,_0x543811)=>{const _0x4525f0=_0x543811['mapper'][_0x2392('0xc0')](_0x1fd436['markerName']);if(_0x4525f0)for(const _0x34bd08 of _0x4525f0)_0x34bd08['is']('uiElement')&&(_0x543811[_0x2392('0x1c')]['unbindElementFromMarkerName'](_0x34bd08,_0x1fd436[_0x2392('0x5c')]),_0x543811[_0x2392('0xf9')][_0x2392('0x83')](_0x34bd08));},{'priority':_0x2392('0x80')});}['_getChangeFromId'](_0x2aa665){return this[_0x2392('0x23')][_0x2392('0x71')](_0x2aa665);}['_getViewForChange'](_0x395234){return this[_0x2392('0x121')]&&this[_0x2392('0x121')][_0x2392('0x17')](),this['_changeView']=new _0x4dc050(this[_0x2392('0x57')]['locale'],_0x395234),this[_0x2392('0x121')];}[_0x2392('0x104')](){this[_0x2392('0x57')]['model'][_0x2392('0xe5')][_0x2392('0xec')][_0x2392('0x82')]('revision'),this['on'](_0x2392('0xf1'),(_0x2b56f0,_0x76ed13,_0xfb377a,_0x5cc1e8)=>{_0x5cc1e8&&this['_balloon'][_0x2392('0x83')](_0x5cc1e8),_0xfb377a&&(this['_balloon']['add']({'view':_0xfb377a,'stackId':_0x2392('0x5d'),'position':{'target':()=>{const _0x86fea7=this[_0x2392('0x57')][_0x2392('0x48')],_0x404007=this[_0x2392('0x123')](_0xfb377a[_0x2392('0x106')]);let _0x73da68;if(_0x404007[_0x2392('0x8e')][_0x2392('0xa6')]){const _0x4ee643=_0x86fea7['view'][_0x2392('0x1d')](_0x404007[_0x2392('0xfa')]);_0x73da68=Array[_0x2392('0xb3')](_0x4ee643[_0x2392('0xb7')]());}else{const _0x56ae40=this[_0x2392('0x57')]['model'][_0x2392('0xd5')]['get'](_0x2392('0xf8')+_0xfb377a[_0x2392('0x106')]);_0x73da68=Array[_0x2392('0xb3')](_0x86fea7['mapper'][_0x2392('0xc0')](_0x56ae40[_0x2392('0xb1')]))[_0x2392('0xff')](_0x451b71=>_0x86fea7['view'][_0x2392('0x4a')][_0x2392('0x105')](_0x451b71))['map'](_0x5d36d1=>Array[_0x2392('0xb3')](_0x5d36d1['getClientRects']()))[_0x2392('0x37')]();}if(!this[_0x2392('0x8')])return _0x73da68[0x0];return _0x73da68[_0x2392('0x4b')](_0x2f8f18=>_0x2f8f18[_0x2392('0x53')]-0x3<=this[_0x2392('0x8')]['y']&&_0x2f8f18[_0x2392('0x116')]+0x3>=this['_activeViewTarget']['y']&&_0x2f8f18[_0x2392('0x122')]-0x3<=this[_0x2392('0x8')]['x']&&_0x2f8f18['right']+0x3>=this[_0x2392('0x8')]['x'])||_0x73da68[0x0];}}}),this['_balloon'][_0x2392('0xae')](_0x2392('0x5d')));}),this['on'](_0x2392('0x81'),(_0x1761a9,_0x5c6dcf,_0xe43083,_0x44ec5d)=>{this[_0x2392('0xb')]=_0xe43083?this[_0x2392('0x100')](_0xe43083):null,this[_0x2392('0x57')][_0x2392('0xd8')]['change'](()=>{const _0x145c81=this[_0x2392('0x57')][_0x2392('0x48')];_0x44ec5d&&(_0x44ec5d[_0x2392('0x8e')]['isOnRoot']?_0x145c81['view'][_0x2392('0x9')](_0x430220=>{_0x430220[_0x2392('0x56')](_0x2392('0xfd'),_0x145c81['view'][_0x2392('0xe5')][_0x2392('0xcd')](_0x44ec5d[_0x2392('0xfa')]));}):_0x145c81[_0x2392('0xcb')](_0x2392('0xf8')+_0x44ec5d['id'])),_0xe43083&&(_0xe43083[_0x2392('0x8e')][_0x2392('0xa6')]?_0x145c81[_0x2392('0x124')]['change'](_0x579f4b=>{_0x579f4b[_0x2392('0x62')](_0x2392('0xfd'),_0x145c81[_0x2392('0x124')][_0x2392('0xe5')][_0x2392('0xcd')](_0xe43083[_0x2392('0xfa')]));}):_0x145c81[_0x2392('0xcb')](_0x2392('0xf8')+_0xe43083['id']));});}),this[_0x2392('0xe9')](this[_0x2392('0x57')]['editing'][_0x2392('0x124')][_0x2392('0xe5')],'mouseover',(_0x356706,_0x450d55)=>{if(this[_0x2392('0x1')])return;const _0x12036b=this[_0x2392('0x8a')](_0x450d55[_0x2392('0xa1')]),_0x39cdcc=this['_changeIdToChange'][_0x2392('0x71')](_0x12036b);_0x39cdcc?(this[_0x2392('0x8')]={'x':_0x450d55[_0x2392('0x112')]['x'],'y':_0x450d55[_0x2392('0x112')]['y']},this[_0x2392('0xb')]=this[_0x2392('0x100')](_0x39cdcc)):(this[_0x2392('0x8')]=null,this[_0x2392('0xb')]=null);}),this[_0x2392('0xe9')](this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0xe5')],'mousedown',(_0x4b9326,_0x373312)=>{const _0xa60e4f=this[_0x2392('0x8a')](_0x373312[_0x2392('0xa1')]),_0x3290ef=this[_0x2392('0x23')][_0x2392('0x71')](_0xa60e4f);_0x3290ef?(this[_0x2392('0x8')]={'x':_0x373312[_0x2392('0x112')]['x'],'y':_0x373312[_0x2392('0x112')]['y']},_0x3290ef===this[_0x2392('0x1')]?this[_0x2392('0x110')][_0x2392('0x68')]():this[_0x2392('0x1')]=_0x3290ef):(this[_0x2392('0x8')]=null,this[_0x2392('0x1')]=null);});}[_0x2392('0x8a')](_0x512e84){do{const _0x9234cc=_0x512e84[_0x2392('0xc2')](_0x2392('0xd3'));if(_0x9234cc)return _0x9234cc;_0x512e84=_0x512e84[_0x2392('0x58')];}while(_0x512e84);return null;}[_0x2392('0x4c')](){this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x9')](_0x1be1f0=>{for(const _0x15a086 of this[_0x2392('0x57')][_0x2392('0xd8')]['markers'])_0x1be1f0[_0x2392('0x85')](_0x15a086);});}}function et(_0x2adf55,_0x5cf781){return(_0x3f5a7a,_0xdc9f8e,_0x469cbc)=>{if(!_0x469cbc[_0x2392('0x89')][_0x2392('0x40')](_0xdc9f8e[_0x2392('0xd4')],_0x3f5a7a[_0x2392('0xb1')]))return;const _0x19c591=_0xdc9f8e['markerRange'][_0x2392('0x54')](),_0x41810e=_0xdc9f8e[_0x2392('0xd4')][_0x2392('0x101')],_0x5dabdd=_0x2adf55[_0x2392('0xd8')][_0x2392('0x113')];let _0x1d9f54=null,_0x1863a5=null,_0x261951=!0x1,_0x3d74a1=!0x1;for(const _0x271605 of _0x19c591){const _0x3ab95f=_0x271605[_0x2392('0x45')];_0x261951=_0x261951||_0x5dabdd[_0x2392('0x5f')](_0x3ab95f);const _0x392a1e=_0x469cbc['mapper']['toViewElement'](_0x3ab95f);if(_0x392a1e&&_0x392a1e[_0x2392('0x128')](_0x2392('0x42')))return;_0x2392('0x10f')==_0x271605[_0x2392('0xb0')]&&(_0x5dabdd['isBlock'](_0x3ab95f)&&!_0x5dabdd[_0x2392('0xc3')](_0x3ab95f)&&(_0x3ab95f[_0x2392('0x27')]||_0x41810e[_0x2392('0x3f')]?_0x1d9f54&&_0x1d9f54[_0x2392('0x58')]==_0x3ab95f||(_0x1d9f54=_0x3ab95f,_0x102663(_0x271605[_0x2392('0x35')]),_0x3d74a1=!0x0):_0x1863a5=_0x1863a5||_0x271605[_0x2392('0x35')]));}function _0x102663(_0x25480e){const _0x4a5953=_0x469cbc[_0x2392('0x1c')][_0x2392('0x4d')](_0x25480e),_0x3c82fe=_0x469cbc['writer'][_0x2392('0xa')](_0x2392('0x115'),{'class':'ck-suggestion-preview-marker-'+_0x5cf781});_0x469cbc[_0x2392('0xf9')][_0x2392('0x92')](_0x4a5953,_0x3c82fe),_0x469cbc[_0x2392('0x1c')][_0x2392('0x11e')](_0x3c82fe,_0xdc9f8e[_0x2392('0x5c')]);}_0x261951||_0x3d74a1||!_0x1863a5||_0x102663(_0x1863a5);};}export class RestoreRevisionCommand extends _0x8052de{constructor(_0x180704){super(_0x180704);const _0x5b9c6a=_0x180704[_0x2392('0x3b')][_0x2392('0x71')](d);this[_0x2392('0x2a')]=!0x1,this[_0x2392('0xe9')](_0x5b9c6a,'change:isReady',()=>this[_0x2392('0xf3')]()),this[_0x2392('0xe9')](_0x5b9c6a,_0x2392('0xcf'),()=>this['refresh']());}[_0x2392('0xac')](){const _0x5b4fe9=this[_0x2392('0x57')],_0x16d568=_0x5b4fe9['plugins'][_0x2392('0x71')](d),_0x2ea4c7=_0x16d568[_0x2392('0x90')]?_0x16d568[_0x2392('0x6')][_0x2392('0xe0')]:null;_0x5b4fe9['config'][_0x2392('0x71')](_0x2392('0xe2'))[_0x2392('0x10c')](_0x2ea4c7);}[_0x2392('0xf3')](){const {isReady:_0x5adb58,isEnabled:_0x56a352}=this[_0x2392('0x57')][_0x2392('0x3b')][_0x2392('0x71')](d);this['isEnabled']=_0x5adb58&&_0x56a352;}}export class ShowChangeCommand extends _0x8052de{constructor(_0x463eac,{direction:_0x3e5797}){super(_0x463eac);const _0xbbef6b=_0x463eac[_0x2392('0x3b')][_0x2392('0x71')](d);this[_0x2392('0x2a')]=!0x1,this[_0x2392('0x79')]=_0x2392('0x51')===_0x3e5797?0x1:-0x1,this[_0x2392('0xe9')](_0xbbef6b,_0x2392('0xa8'),()=>this[_0x2392('0xf3')]()),this[_0x2392('0xe9')](_0xbbef6b,_0x2392('0xcf'),()=>this['refresh']()),this[_0x2392('0xe9')](_0xbbef6b,_0x2392('0x81'),()=>this[_0x2392('0xf3')]());}[_0x2392('0xac')](){const _0xd46cdf=this[_0x2392('0x57')],_0x14b23f=_0xd46cdf[_0x2392('0x3b')][_0x2392('0x71')](d),{isNavigationMode:_0xc9ae0a,currentChangeNumber:_0x32520c}=_0x14b23f;let _0x2c72df;if(_0x14b23f['activeChange']=_0xc9ae0a?_0x14b23f[_0x2392('0x6')][_0x2392('0x1b')][_0x2392('0x71')](_0x32520c+this[_0x2392('0x79')]):_0x14b23f[_0x2392('0x6')][_0x2392('0x1b')][_0x2392('0xa9')],_0x14b23f[_0x2392('0x1')][_0x2392('0x8e')][_0x2392('0xa6')])_0x2c72df=_0xd46cdf['editing'][_0x2392('0x124')]['getDomRoot'](_0x14b23f['activeChange'][_0x2392('0xfa')]);else{const _0x1a0a1f=_0xd46cdf[_0x2392('0xd8')][_0x2392('0xd5')]['get'](_0x2392('0xf8')+_0x14b23f[_0x2392('0x1')]['id']);_0x2c72df=_0x1381fb(_0xd46cdf['editing'],_0x1a0a1f);}_0x2308d8({'target':_0x2c72df,'viewportOffset':0x28});}[_0x2392('0xf3')](){const {isNavigationMode:_0x18c4dd,currentChangeNumber:_0x3a6a02,numberOfChanges:_0x389e0f,isReady:_0x51c91e,isEnabled:_0x102ef9}=this['editor'][_0x2392('0x3b')][_0x2392('0x71')](d);this['isEnabled']=!!(_0x102ef9&&_0x51c91e&&_0x389e0f)&&(!_0x18c4dd||(0x1===this['_step']?_0x3a6a02<_0x389e0f-0x1:_0x3a6a02>0x0));}}
|
|
23
|
+
const _0x1b98=['RevisionsRepository','revision-suggestion','isIncorrect','locale','createUIElement','getRoot','oldRevisionId','editor','getRevisionRootsAttributes','loadRevisionData','addRoot','schema','getChild','_appendChild','domConverter','_sortAndFilterDiffChanges','element','requires','dataDowncast','_getChangeFromId','parent','attachChange','highest','revision:','revision-viewer','getAttributes','vid_end','target','markerToData','suggestion','currentChangeNumber','forceDisabled','isLimit','split','toData','_changeIdToChange','createRangeIn','name','removeClass','createPositionBefore','view','low','checkAttribute','WidgetToolbarRepository','viewItem','isAdded','toViewRange','_revisions','mapper','values','map','bind','push','_removeRevisionMarkers','markerName','POSITIVE_INFINITY','span','deletion','clear','processor','object','diffData','toViewElement','right','keys','isNavigationMode','getClientRects','_markMarkers','top','ck-editor__editable__overlay','suggestion:','mouseover','_joinTapes','attribute:vid','_setConversion','revisionHistoryLabel','authors','config','resolve','_processTape','enableReadOnlyMode','delete','remove','collaboration.channelId','change:numberOfChanges','createRange','plugins','isObject','removeMarker','addMarker:revision-suggestion:deletion','ck-suggestion-marker--active','ck-suggestion-preview-marker','data-change-id','numberOfChanges','addRevisionData','then','ck-revision-history-root--active','high','revisionHistoryAttachChange','isSuggestion','_makeTape','selection','left','activeChange','slice','elementToAttribute','isCollapsed','observeMarkers','distance','markerToHighlight','init','bindElementToMarker','get','ck-revision-history-root-add','destroy','ck-suggestion-marker','downcastDispatcher','abs','forEach','marked','_findChangeIdFromDomTarget','useFillerType','editingDowncast','merge','consumable','ck-suggestion-preview-marker-','stop','maxOffset','forward','document','splice','removeAttribute','type','revision-end','text','_cleanUp','_fixObsoleteTags','has','item','changes','markerRange','enqueueChange','restoreRevisionCallback','end','deletions','toViewPosition','add','length','model','change:activeView','diff','findIndex','execute','_getViewForChange','refresh','_getDiff','_markMismatchedRemovedTags','startIndex','isAddSuggestion','revision','mapViewToDom','_setChanges','sort','createPositionFromPath','change:activeChange','isInline','unshift','markersEnd','addClass','repository','_getViewObj','error','detachRoot','getDomRoot','activeView','level','revision-start','isAfter','_refreshStartEndIndex','flat','set','vid_start','_markSuggestions','side','addMarker:revision','_markInsertions','insert','isRemoveSuggestion','_removeMissingPairs','toModel','rootName','isAtEnd','change:isReady','data','parse','isRemoved','_removeUnsupportedChanges','dataToMarker','showPreviousChange','getWalker','updatePosition','wrap','attributesAfter','getAttribute','backward','for','indexOf','addHighlight','setAttribute','listenTo','ck-revision-history-root-remove','hasAttribute','elementEnd','isEnabled','getRootNames','editing','pairId','isAtStart','start','elementStart','writer','element:pre','nodeAfter','domEvent','markers','getCustomProperty','_balloon','restoreRevision','_changeView','isBlock','attributes','insertion','consume','isOnRoot','createRevision','_getRevisionsRange','revision-suggestion:','unbindElementFromMarkerName','offsetSize','upcast','revisionHistory','hasClass','modelRange','isAttached','_makeModelFromViewString','pop','test','getRevision','_step','_setDistance','shift','affectsData','all','next','isEqual','conversion','_cleanMarkers','_activeViewTarget','uiElement','isBefore','filter','reconvertMarker','_update','commands','previousPosition','isContent','children','markerNameToElements','range','_threeWayMerge','endIndex','nextPosition','roots','isReady','removeMarker:revision-suggestion','comment','insertions','getRevisionData','RevisionViewer','_makeModelFromTape','markersStart','first','bottom','string','adapter','userId','index','_initInteractions','concat','from','vid','getIndex','ck-suggestion-marker-','createAttributeElement','nextSibling','startsWith','change','done','showStack'];(function(_0x5ab105,_0x1b98f8){const _0x353521=function(_0x15efb5){while(--_0x15efb5){_0x5ab105['push'](_0x5ab105['shift']());}};_0x353521(++_0x1b98f8);}(_0x1b98,0x1e1));const _0x3535=function(_0x5ab105,_0x1b98f8){_0x5ab105=_0x5ab105-0x0;let _0x353521=_0x1b98[_0x5ab105];return _0x353521;};import{Plugin as _0x4dae84,Command as _0xd63f90}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x526bc7}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2c57d4}from'ckeditor5/src/ui';import{DocumentFragment as _0x43f879,Element as _0x52a395,Text as _0x4153f7,ViewDocumentFragment as _0x128678,ViewText as _0xf590a8,ViewElement as _0x575a40,ViewContainerElement as _0x121912,ViewAttributeElement as _0x469fe1,ViewEmptyElement as _0x427f73,ViewRawElement as _0x585484,ViewUIElement as _0x38d3ae}from'ckeditor5/src/engine';import{Users as _0x2cf9dc,getMarkerDomElement as _0x19e99f}from'ckeditor5-collaboration/src/collaboration-core';import _0x5a955c from'./ui/revisionviewer/changedetailsview';import _0x444e61 from'./revisionsrepository';import _0x324807 from'./changeitem';import{default as _0x31ecd5}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x21ea20}from'lodash-es';const tt={'c':_0x121912,'a':_0x469fe1,'e':_0x427f73,'r':_0x585484,'u':_0x38d3ae};export default class d extends _0x4dae84{static get['pluginName'](){return _0x3535('0x60');}static get[_0x3535('0x86')](){return[_0x2cf9dc,_0x2c57d4,_0x444e61];}constructor(_0x352858){super(_0x352858),this['repository']=this[_0x3535('0x7c')][_0x3535('0xcb')]['get'](_0x3535('0x75')),this[_0x3535('0x129')](_0x3535('0xdc'),null),this[_0x3535('0x129')]('activeView',null),this['_activeViewTarget']=null,this[_0x3535('0x129')](_0x3535('0x10b'),null),this[_0x3535('0x129')](_0x3535('0x5b'),!0x1),this[_0x3535('0x129')](_0x3535('0x1f'),!0x0),this['on']('change:isEnabled',(_0x49ceb5,_0x512ec1,_0x903f08)=>{this['activeChange']=null,this[_0x3535('0x123')]=null,this['editor']['editing'][_0x3535('0x9d')][_0x3535('0x72')](_0xed06e4=>{for(const _0x3a3224 of this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0xf6')][_0x3535('0x5a')])_0x903f08?_0xed06e4[_0x3535('0x9b')](_0x3535('0xba'),_0x3a3224):_0xed06e4[_0x3535('0x11d')](_0x3535('0xba'),_0x3a3224);});}),this[_0x3535('0xa8')](_0x3535('0xb6'))['to'](this,_0x3535('0xdc'),_0x30bc18=>null!==_0x30bc18),this['bind'](_0x3535('0x93'))['to'](this,_0x3535('0x5b'),this,_0x3535('0x10b'),this,_0x3535('0xdc'),(_0x91b2ce,_0x360ac3,_0x24cf4c)=>_0x91b2ce&&_0x24cf4c?_0x360ac3[_0x3535('0x100')][_0x3535('0x6d')](_0x24cf4c):0x0),this[_0x3535('0xa8')](_0x3535('0xd2'))['to'](this,_0x3535('0x5b'),this,_0x3535('0x10b'),(_0x1c369c,_0x5f120a)=>_0x1c369c?_0x5f120a[_0x3535('0x100')][_0x3535('0x108')]:0x0),this['_changeView']=null,this[_0x3535('0x98')]=new Map(),this[_0x3535('0x66')]=null,this[_0x3535('0x2c')]=this[_0x3535('0x7c')][_0x3535('0xcb')]['get'](_0x2c57d4);}[_0x3535('0xe3')](){const _0x1f75c2=this['editor'],_0x2a1f6b=new ShowChangeCommand(_0x1f75c2,{'direction':_0x3535('0x16')}),_0x3fc862=new ShowChangeCommand(_0x1f75c2,{'direction':_0x3535('0xf5')});(_0x1f75c2[_0x3535('0x51')][_0x3535('0x107')](_0x3535('0x10'),_0x2a1f6b),_0x1f75c2[_0x3535('0x51')][_0x3535('0x107')]('showNextChange',_0x3fc862),_0x1f75c2[_0x3535('0x51')][_0x3535('0x107')](_0x3535('0x2d'),new RestoreRevisionCommand(_0x1f75c2)),this['on'](_0x3535('0xc9'),()=>{_0x2a1f6b['refresh'](),_0x3fc862[_0x3535('0x10f')]();}),this['_setConversion'](),this[_0x3535('0x69')](),_0x1f75c2[_0x3535('0xc5')](_0x3535('0x8d')),_0x1f75c2[_0x3535('0xcb')]['has'](_0x3535('0xa0')))&&_0x1f75c2[_0x3535('0xcb')][_0x3535('0xe5')](_0x3535('0xa0'))[_0x3535('0x94')]('revision-viewer');}async[_0x3535('0x5f')](_0x552683){await this[_0x3535('0x7e')](_0x552683);const _0x7b59a3={};for(const _0x35bc0e in _0x552683['diffData']){if(_0x552683[_0x3535('0xb2')][_0x35bc0e][_0x3535('0x8a')]&&!_0x552683['diffData'][_0x35bc0e][_0x3535('0x8a')][_0x3535('0x3d')])continue;const _0xf23434=this[_0x3535('0xaa')](JSON[_0x3535('0xc')](_0x552683[_0x3535('0xb2')][_0x35bc0e][_0x3535('0x5e')])),_0x4bbac6=this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')]['document'],_0x2a4961=new _0x128678(_0x4bbac6,_0xf23434[_0x3535('0xa7')](_0x1ac8df=>this[_0x3535('0x11f')](_0x1ac8df)));this[_0x3535('0x7c')][_0x3535('0xb')]['processor'][_0x3535('0xee')](_0x3535('0xec')),_0x7b59a3[_0x35bc0e]=this['editor'][_0x3535('0xb')][_0x3535('0xb0')][_0x3535('0x97')](_0x2a4961),this[_0x3535('0x7c')][_0x3535('0xb')][_0x3535('0xb0')][_0x3535('0xee')]('default');}return _0x7b59a3;}async[_0x3535('0x7d')](_0x594038){await this['loadRevisionData'](_0x594038);const _0x2d58ac={};for(const _0x4e96e7 in _0x594038[_0x3535('0xb2')])_0x594038[_0x3535('0xb2')][_0x4e96e7]['attachChange']&&!_0x594038[_0x3535('0xb2')][_0x4e96e7][_0x3535('0x8a')][_0x3535('0x3d')]||(_0x2d58ac[_0x4e96e7]=_0x594038[_0x3535('0xb2')][_0x4e96e7][_0x3535('0x14')]||{});return _0x2d58ac;}['_removeRevisionMarkers'](_0x1bf4c2){return(_0x1bf4c2=_0x1bf4c2[_0x3535('0x4e')](_0x3fa8b1=>!_0x3fa8b1[_0x3535('0x9a')]||_0x3535('0x125')!==_0x3fa8b1[_0x3535('0x9a')]&&_0x3535('0xfa')!==_0x3fa8b1[_0x3535('0x9a')]))[_0x3535('0xeb')](_0x46ef73=>{_0x3535('0x65')!=typeof _0x46ef73&&(_0x46ef73['children']=this[_0x3535('0xaa')](_0x46ef73[_0x3535('0x54')]),_0x46ef73[_0x3535('0x30')]=_0x46ef73['attributes']['filter'](_0x52481e=>!_0x52481e[0x0][_0x3535('0x71')]('data-revision-')));}),_0x1bf4c2;}async['compare'](_0x58db67,_0x70e54f,_0x36ac14=!0x1){if(!this[_0x3535('0x1f')])return;const _0x903a4=this[_0x3535('0x10b')],_0x3074b2=this[_0x3535('0x11e')],_0x5ca2a8='string'==typeof _0x58db67?_0x3074b2[_0x3535('0x41')](_0x58db67):_0x58db67,_0x108bce=_0x3535('0x65')==typeof _0x70e54f?_0x3074b2[_0x3535('0x41')](_0x70e54f):_0x70e54f,_0x5c8983=_0x5ca2a8['id'],_0x1457e7=_0x108bce?_0x108bce['id']:null;if(!_0x36ac14&&this[_0x3535('0x10b')]&&this[_0x3535('0x10b')]['newRevisionId']===_0x5c8983&&this[_0x3535('0x10b')][_0x3535('0x7b')]===_0x1457e7)return Promise[_0x3535('0xc3')]();this[_0x3535('0x5b')]=!0x1,this[_0x3535('0x123')]=null,this[_0x3535('0xdc')]=null,this[_0x3535('0x10b')]=new _0x31ecd5(_0x5c8983,_0x1457e7);const _0x45bddb=this['_getRevisionsRange'](_0x5ca2a8,_0x108bce,!0x0)[_0x3535('0xa7')](_0x2c307f=>this['loadRevisionData'](_0x2c307f));return _0x45bddb[_0x3535('0xa9')](new Promise(_0x5bee8a=>{setTimeout(_0x5bee8a,0x14);})),Promise[_0x3535('0x46')](_0x45bddb)['then'](()=>{if(!this[_0x3535('0x1f')])return;this[_0x3535('0xfc')]();const _0x322a02=this[_0x3535('0x110')](_0x5c8983,_0x1457e7);for(const _0x41b861 of _0x322a02[_0x3535('0x100')])this['_changeIdToChange']['set'](_0x41b861['id'],_0x41b861);this[_0x3535('0x7c')][_0x3535('0x109')][_0x3535('0x102')]({'isUndoable':!0x1},_0x34cfec=>{for(const _0x2eb59e of this[_0x3535('0x7c')][_0x3535('0x109')][_0x3535('0xf6')][_0x3535('0x20')]())_0x34cfec[_0x3535('0x121')](_0x2eb59e);for(const _0x3dcf79 of Object['keys'](_0x322a02[_0x3535('0x109')])){const _0x1c51aa=_0x34cfec[_0x3535('0x7f')](_0x3dcf79);for(const _0x26b20d of Object['keys'](_0x322a02[_0x3535('0x30')][_0x3dcf79]))_0x34cfec[_0x3535('0x1a')](_0x26b20d,_0x322a02['attributes'][_0x3dcf79][_0x26b20d],_0x1c51aa);_0x34cfec[_0x3535('0x4')](_0x322a02[_0x3535('0x109')][_0x3dcf79],_0x1c51aa,0x0);}}),this['diff'][_0x3535('0x116')](this[_0x3535('0x84')](_0x322a02['changes'])),this[_0x3535('0x5b')]=!0x0;})['catch'](_0x123cb0=>{console[_0x3535('0x120')](_0x123cb0),this[_0x3535('0xfc')](),_0x903a4&&(this[_0x3535('0x10b')]=_0x903a4),this[_0x3535('0x5b')]=!0x0;});}[_0x3535('0xd3')](_0x45dd2e,_0x4a0ec2){const _0x71ec47=this[_0x3535('0x11e')][_0x3535('0x34')](_0x45dd2e);return _0x71ec47['on']('_update',(_0xf7442c,_0x23397a,_0x4a47a9)=>_0x4a0ec2(_0x23397a,_0x4a47a9,_0x71ec47)),this[_0x3535('0x11e')]['addRevision'](_0x71ec47),_0x71ec47;}[_0x3535('0x7e')](_0xb86bc6){if(!_0xb86bc6||_0xb86bc6[_0x3535('0xb2')])return Promise['resolve']();{const _0x281b30=this[_0x3535('0x7c')]['config']['get'](_0x3535('0xc8'));return this[_0x3535('0x66')][_0x3535('0x41')]({'channelId':_0x281b30,'revisionId':_0xb86bc6['id']})[_0x3535('0xd4')](_0x213d8d=>{_0xb86bc6[_0x3535('0x50')]({'diffData':_0x213d8d[_0x3535('0xb2')]},!0x0);});}}[_0x3535('0xfc')](){this[_0x3535('0xdc')]=null,this[_0x3535('0x4a')](),this[_0x3535('0x2e')]&&this['_changeView']['destroy'](),this['_changeView']=null,this[_0x3535('0x98')][_0x3535('0xaf')](),this[_0x3535('0x7c')]['model']['enqueueChange']({'isUndoable':!0x1},_0x52d784=>{for(const _0x4b6456 of this[_0x3535('0x7c')][_0x3535('0x109')]['document'][_0x3535('0x20')]())_0x52d784[_0x3535('0x121')](_0x4b6456);});}[_0x3535('0x84')](_0x5d2780){const _0x490038=[],_0x27290c=new Map();for(const _0x37ad06 of this['editor'][_0x3535('0x109')][_0x3535('0xf6')][_0x3535('0x20')]()){const _0x657759=this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0x122')](_0x37ad06);if(!_0x657759)continue;const _0x436444=_0x657759[_0x3535('0xb7')]()[_0x3535('0xff')](0x0);_0x436444&&(_0x490038['push'](_0x37ad06),_0x27290c[_0x3535('0x129')](_0x37ad06,_0x436444));}return _0x490038['sort']((_0x3bd676,_0x10e1d6)=>{const _0x3b3b9a=_0x27290c[_0x3535('0xe5')](_0x3bd676),_0xff7de3=_0x27290c['get'](_0x10e1d6);return _0x3b3b9a['y']-_0xff7de3['y']||_0x3b3b9a['x']-_0xff7de3['x'];}),(_0x5d2780=_0x5d2780[_0x3535('0x4e')](_0x178c70=>_0x490038['includes'](_0x178c70[_0x3535('0x8')])))[_0x3535('0x117')]((_0xcbeb04,_0x5ceacd)=>_0x490038[_0x3535('0x18')](_0xcbeb04[_0x3535('0x8')])-_0x490038[_0x3535('0x18')](_0x5ceacd['rootName'])),_0x5d2780;}[_0x3535('0xd9')](_0x8662dd){const _0x2c53f5=Array['from'](_0x8662dd[_0x3535('0x2a')])[_0x3535('0x4e')](([_0x1e758a,_0x3dbc0f])=>_0x1e758a[_0x3535('0x71')](_0x3535('0x8c'))&&!_0x3dbc0f[_0x3535('0xdf')]),_0xa80bbe=Array[_0x3535('0x6b')](this[_0x3535('0x7c')]['model'][_0x3535('0x99')](_0x8662dd)[_0x3535('0x11')]({'singleCharacters':!0x0}));if(0x0!=_0x2c53f5[_0x3535('0x108')])for(const _0x133549 of _0xa80bbe){const [_0x270bd3,_0x49aa04]=_0x2c53f5[0x0],[,_0x3c0c2b,_0x2ae294]=_0x270bd3['split'](':');if(_0x49aa04[_0x3535('0x104')][_0x3535('0x48')](_0x133549[_0x3535('0x59')])&&_0x2c53f5[_0x3535('0x44')](),(_0x133549[_0x3535('0x52')][_0x3535('0x48')](_0x49aa04[_0x3535('0x24')])||_0x133549['previousPosition'][_0x3535('0x126')](_0x49aa04[_0x3535('0x24')]))&&(_0x3535('0x31')==_0x3c0c2b?_0x133549[_0x3535('0xa2')]={'userId':_0x2ae294}:'deletion'==_0x3c0c2b&&(_0x133549['isRemoved']={'userId':_0x2ae294})),0x0==_0x2c53f5[_0x3535('0x108')])break;}return _0xa80bbe;}['_refreshStartEndIndex'](_0x53a9e5){const _0x75859d=new Map();for(let _0x5314a6=0x0;_0x5314a6<_0x53a9e5[_0x3535('0x108')];_0x5314a6++)_0x3535('0xfb')===_0x53a9e5[_0x5314a6][_0x3535('0xf9')]?(_0x53a9e5[_0x5314a6][_0x3535('0xff')][_0x3535('0x112')]=_0x5314a6,_0x53a9e5[_0x5314a6]['item'][_0x3535('0x58')]=_0x5314a6):(_0x3535('0x25')===_0x53a9e5[_0x5314a6][_0x3535('0xf9')]?_0x53a9e5[_0x5314a6][_0x3535('0xff')][_0x3535('0x112')]=_0x5314a6:_0x3535('0x1e')===_0x53a9e5[_0x5314a6][_0x3535('0xf9')]&&(_0x53a9e5[_0x5314a6]['item'][_0x3535('0x58')]=_0x5314a6),_0x75859d[_0x3535('0x129')](_0x53a9e5[_0x5314a6]['id'],_0x5314a6));for(const _0x3c1f5e of _0x75859d[_0x3535('0xa6')]())_0x3535('0x25')===_0x53a9e5[_0x3c1f5e]['type']?_0x53a9e5[_0x3c1f5e][_0x3535('0xff')][_0x3535('0x58')]=_0x75859d[_0x3535('0xe5')](_0x53a9e5[_0x3c1f5e]['pairId']):'elementEnd'===_0x53a9e5[_0x3c1f5e][_0x3535('0xf9')]&&(_0x53a9e5[_0x3c1f5e][_0x3535('0xff')][_0x3535('0x112')]=_0x75859d['get'](_0x53a9e5[_0x3c1f5e][_0x3535('0x22')]));}[_0x3535('0xc4')](_0x404626){for(let _0x10806b=0x0;_0x10806b<_0x404626[_0x3535('0x108')];_0x10806b++){if(_0x3535('0x25')===_0x404626[_0x10806b][_0x3535('0xf9')])_0x404626[_0x10806b][_0x3535('0xff')]['startIndex']=_0x10806b;else{if('elementEnd'===_0x404626[_0x10806b][_0x3535('0xf9')]){_0x404626[_0x10806b][_0x3535('0xff')][_0x3535('0x58')]=_0x10806b;const _0x5f28fb=_0x404626[_0x10806b]['item'][_0x3535('0x112')];_0x404626[_0x5f28fb][_0x3535('0x22')]=_0x404626[_0x10806b]['id'],_0x404626[_0x10806b][_0x3535('0x22')]=_0x404626[_0x5f28fb]['id'];}else _0x404626[_0x10806b][_0x3535('0xff')]['startIndex']=_0x10806b,_0x404626[_0x10806b][_0x3535('0xff')][_0x3535('0x58')]=_0x10806b,_0x404626[_0x10806b][_0x3535('0x22')]=null;}_0x404626[_0x10806b]['markersStart']||(_0x404626[_0x10806b][_0x3535('0x62')]=[],_0x404626[_0x10806b][_0x3535('0x11c')]=[]);}}[_0x3535('0x3')](_0x5ef072,_0x19b69c){const _0x41a0f4=_0x5ef072['filter'](_0x42ad96=>!_0x42ad96[_0x3535('0xa2')]);for(let _0x826e4=0x0;_0x826e4<_0x19b69c['length'];_0x826e4++)_0x19b69c[_0x826e4][_0x3535('0xa2')]&&(_0x41a0f4[_0x826e4]['isAdded']=_0x19b69c[_0x826e4][_0x3535('0xa2')]);}[_0x3535('0x3e')](_0x1a7cf0){const _0x7d4e88=JSON[_0x3535('0xc')](_0x1a7cf0),_0x9bbad5=this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0xf6')],_0x2c4bba=new _0x128678(_0x9bbad5,_0x7d4e88[_0x3535('0xa7')](_0x7d3270=>this[_0x3535('0x11f')](_0x7d3270)));return this[_0x3535('0x7c')][_0x3535('0xb')][_0x3535('0x7')](_0x2c4bba);}['_getViewObj'](_0x5524c8){const _0x4c3ee6=this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0xf6')];if(_0x3535('0x65')==typeof _0x5524c8)return new _0xf590a8(_0x4c3ee6,_0x5524c8);{const _0x3eb020=_0x5524c8[_0x3535('0x54')][_0x3535('0xa7')](_0x1967be=>this[_0x3535('0x11f')](_0x1967be));return new(tt[_0x5524c8[(_0x3535('0xf9'))]]||_0x575a40)(_0x4c3ee6,_0x5524c8[_0x3535('0x9a')],_0x5524c8[_0x3535('0x30')],_0x3eb020);}}[_0x3535('0x110')](_0x57f280,_0x35780d=null){const _0x4d9ebf=this[_0x3535('0x11e')][_0x3535('0x41')](_0x57f280),_0x8fe6b=_0x35780d?this[_0x3535('0x11e')][_0x3535('0x41')](_0x35780d):null,_0x54a6db=this['_getRevisionsRange'](_0x4d9ebf,_0x8fe6b),_0x26761a=_0x54a6db[_0x54a6db[_0x3535('0x108')]-0x1],_0x35e4b8=new Map(),_0x9aa19={'model':{},'attributes':{},'changes':[]},_0x582f7c=new Set(),_0x142b6d=new Map();for(let _0x530d04=_0x54a6db['length']-0x1;_0x530d04>=0x0;_0x530d04--){const _0x5ed90b=_0x54a6db[_0x530d04];for(const _0x4942f8 of Object[_0x3535('0xb5')](_0x5ed90b[_0x3535('0xb2')]))if(_0x5ed90b['diffData'][_0x4942f8][_0x3535('0x8a')]){const _0x49d249=_0x5ed90b[_0x3535('0xb2')][_0x4942f8]['attachChange'];_0x49d249[_0x3535('0x3d')]?(_0x582f7c[_0x3535('0x107')](_0x4942f8),_0x142b6d[_0x3535('0xfe')](_0x4942f8)&&_0x142b6d['get'](_0x4942f8)[_0x3535('0x67')]==_0x49d249[_0x3535('0x67')]?_0x142b6d[_0x3535('0xc6')](_0x4942f8):_0x142b6d['set'](_0x4942f8,_0x49d249)):_0x142b6d['has'](_0x4942f8)?(_0x582f7c[_0x3535('0xc6')](_0x4942f8),_0x142b6d[_0x3535('0xc6')](_0x4942f8)):(_0x582f7c[_0x3535('0x107')](_0x4942f8),_0x142b6d[_0x3535('0x129')](_0x4942f8,_0x49d249));}else _0x582f7c[_0x3535('0x107')](_0x4942f8);}for(const _0x223af4 of _0x582f7c){const _0x25dc91=_0x142b6d[_0x3535('0xfe')](_0x223af4)&&!_0x142b6d[_0x3535('0xe5')](_0x223af4)['isAttached'];let _0x59359d=_0x25dc91?_0x54a6db[_0x3535('0x108')]-0x1:0x0;const _0x5b2dee=_0x25dc91?-0x1:0x1;for(;_0x54a6db[_0x59359d];){const _0xb21fd3=_0x54a6db[_0x59359d];if(_0xb21fd3[_0x3535('0xb2')][_0x223af4]){const _0x3f1009=_0x25dc91?_0xb21fd3['diffData'][_0x223af4]['attributesBefore']:_0xb21fd3[_0x3535('0xb2')][_0x223af4]['attributesAfter'];_0x9aa19[_0x3535('0x30')][_0x223af4]=_0x3f1009?_0x21ea20(_0x3f1009):{};break;}_0x59359d+=_0x5b2dee;}}for(const _0x438086 of _0x54a6db){_0x438086['model']={};for(const _0x287ed3 of _0x438086[_0x3535('0xc1')])_0x35e4b8['set'](_0x287ed3['id'],_0x287ed3);for(const _0x18f0dc of _0x582f7c){const _0x3cbb8c=_0x438086[_0x3535('0xb2')][_0x18f0dc]?_0x438086[_0x3535('0xb2')][_0x18f0dc][_0x3535('0x5e')]:'[]',_0x5618e1=_0x438086['diffData'][_0x18f0dc]?_0x438086[_0x3535('0xb2')][_0x18f0dc][_0x3535('0x105')]:'[]';_0x438086[_0x3535('0x109')][_0x18f0dc]={'insertions':this[_0x3535('0x3e')](_0x3cbb8c),'deletions':this[_0x3535('0x3e')](_0x5618e1)};}}for(const _0x1c6f48 of _0x582f7c){let _0x133acc=null,_0x2e0ea3=0x0;const _0x2fc4ee=new Map(Array[_0x3535('0x6b')](_0x4d9ebf[_0x3535('0x109')][_0x1c6f48][_0x3535('0x5e')]['markers'])[_0x3535('0x4e')](([_0x77ba1f])=>!_0x77ba1f[_0x3535('0x71')](_0x3535('0x8c'))));let _0xe6a7bf=0x0;for(const _0x598ac6 of _0x54a6db){const _0x5c103a=this[_0x3535('0xd9')](_0x598ac6[_0x3535('0x109')][_0x1c6f48][_0x3535('0x5e')]);_0x598ac6==_0x4d9ebf?(_0x133acc=_0x5c103a,_0x2e0ea3=_0x133acc[_0x3535('0x108')],_0x133acc[_0x3535('0xeb')](_0x24c667=>{_0x24c667['id']=_0xe6a7bf++;}),this[_0x3535('0xc4')](_0x133acc)):this[_0x3535('0x3')](_0x133acc,_0x5c103a);const _0x48e8e=_0x133acc[_0x3535('0x4e')](_0x3a277d=>!_0x3a277d[_0x3535('0xa2')])[_0x3535('0xa7')](_0x148c5d=>_0x148c5d['id']);let _0x3fc643=0x0;const _0x1d5156=this['_makeTape'](_0x598ac6[_0x3535('0x109')][_0x1c6f48][_0x3535('0x105')]);_0x1d5156[_0x3535('0xeb')](_0x9dfd9c=>{_0x9dfd9c['isRemoved']?_0x9dfd9c['id']=_0x2e0ea3++:_0x9dfd9c['id']=_0x48e8e[_0x3fc643++];}),this[_0x3535('0xc4')](_0x1d5156),this[_0x3535('0x43')](_0x133acc,_0x3535('0xa2')),this[_0x3535('0x43')](_0x1d5156,_0x3535('0xd')),_0x598ac6==_0x4d9ebf&&this['_markMarkers'](_0x133acc,_0x2fc4ee),_0x133acc=this[_0x3535('0xbd')](_0x133acc,_0x1d5156),this[_0x3535('0x127')](_0x133acc),this[_0x3535('0x43')](_0x133acc,_0x3535('0xd'));}_0x133acc=_0x133acc[_0x3535('0x4e')](_0x7f4b18=>!(_0x7f4b18[_0x3535('0xa2')]&&_0x7f4b18['isRemoved']));const _0x5d7446=new Map(_0x26761a[_0x3535('0x109')][_0x1c6f48][_0x3535('0x105')][_0x3535('0x2a')]),_0x59e9ba=new Set(_0x2fc4ee['keys']());for(const _0x267036 of _0x5d7446['keys']())_0x59e9ba[_0x3535('0xc6')](_0x267036);this['_markSuggestions'](_0x133acc,_0x59e9ba),this[_0x3535('0xfd')](_0x133acc),_0x133acc=this[_0x3535('0x6')](_0x133acc),_0x133acc=this['_markMismatchedRemovedTags'](_0x133acc),_0x133acc=this[_0x3535('0xe')](_0x133acc);const {root:_0x3ee7af,changes:_0x3cfac3}=this[_0x3535('0x61')](_0x133acc,_0x35e4b8,_0x1c6f48);_0x9aa19[_0x3535('0x109')][_0x1c6f48]=_0x3ee7af;const _0x595e7f=_0x142b6d[_0x3535('0xe5')](_0x1c6f48);if(_0x595e7f){const _0x243fe2=_0x35e4b8[_0x3535('0xe5')](_0x595e7f[_0x3535('0x67')]),_0x1bdffd=new _0x324807({'author':_0x243fe2,'type':_0x595e7f[_0x3535('0x3d')]?'add':_0x3535('0xc7'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1c6f48});_0x3cfac3['unshift'](_0x1bdffd),_0x9aa19[_0x3535('0x30')][_0x1c6f48][_0x3535('0xd7')]=_0x1bdffd['id'];}_0x9aa19['changes']=_0x9aa19[_0x3535('0x100')][_0x3535('0x6a')](_0x3cfac3);}return _0x9aa19;}[_0x3535('0xb8')](_0x2f3024,_0x409afc){for(let _0x2fb869=0x0;_0x2fb869<_0x2f3024[_0x3535('0x108')];_0x2fb869++)for(const [_0x1db608,_0x15f408]of _0x409afc)_0x15f408[_0x3535('0x24')][_0x3535('0x48')](_0x2f3024[_0x2fb869][_0x3535('0x52')])&&_0x2f3024[_0x2fb869][_0x3535('0x62')][_0x3535('0xa9')](_0x1db608),_0x15f408[_0x3535('0x104')][_0x3535('0x48')](_0x2f3024[_0x2fb869]['nextPosition'])&&_0x2f3024[_0x2fb869][_0x3535('0x11c')][_0x3535('0xa9')](_0x1db608);}[_0x3535('0xbd')](_0x17b4d8,_0x4a3ab8){let _0x1f9e89=[],_0x2e0996=0x0,_0x5ee555=0x0;for(;_0x2e0996<_0x17b4d8['length']||_0x5ee555<_0x4a3ab8[_0x3535('0x108')];){const _0x1a8f7c=_0x17b4d8[_0x2e0996]||{},_0x12f9e6=_0x4a3ab8[_0x5ee555]||{};if(_0x1a8f7c['id']==_0x12f9e6['id'])_0x2e0996++,_0x5ee555++,_0x1f9e89[_0x3535('0xa9')](_0x1a8f7c);else{if(_0x12f9e6[_0x3535('0xd')]&&_0x1a8f7c['isAdded']){const {commonTape:_0xe2b03f,iEnd:_0x15ede6,jEnd:_0x41aa43}=this[_0x3535('0x57')](_0x17b4d8,_0x2e0996,_0x4a3ab8,_0x5ee555);_0x1f9e89=_0x1f9e89[_0x3535('0x6a')](_0xe2b03f),_0x2e0996=_0x15ede6,_0x5ee555=_0x41aa43;}else _0x12f9e6['isRemoved']?(_0x5ee555++,_0x1f9e89['push'](_0x12f9e6)):(_0x2e0996++,_0x1f9e89[_0x3535('0xa9')](_0x1a8f7c));}}return _0x1f9e89;}[_0x3535('0x0')](_0x220d5e,_0x3b5f18){const _0x34f8c6=[];for(let _0xc67aaa=0x0;_0xc67aaa<_0x220d5e[_0x3535('0x108')];_0xc67aaa++){for(let _0x599091=0x0;_0x599091<_0x220d5e[_0xc67aaa][_0x3535('0x62')]['length'];_0x599091++){const _0x188156=_0x220d5e[_0xc67aaa][_0x3535('0x62')][_0x599091];if(!_0x3b5f18['has'](_0x188156))continue;const {group:_0xd8159,type:_0x531861,authorId:_0x271bd2}=_0x47408f(_0x188156);_0x3535('0x76')!=_0xd8159||_0x3535('0x31')!=_0x531861&&_0x3535('0xae')!=_0x531861||(_0x34f8c6[_0x3535('0x11b')]({'type':_0x531861,'name':_0x188156,'userId':_0x271bd2}),_0x220d5e[_0xc67aaa]['markersStart'][_0x3535('0xf7')](_0x599091,0x1),_0x599091--);}_0x123c14(_0x220d5e[_0xc67aaa]);for(let _0x232c25=0x0;_0x232c25<_0x220d5e[_0xc67aaa]['markersEnd'][_0x3535('0x108')];_0x232c25++){const _0x43eb09=_0x220d5e[_0xc67aaa][_0x3535('0x11c')][_0x232c25];if(!_0x3b5f18[_0x3535('0xfe')](_0x43eb09))continue;const {group:_0x394f4e,type:_0x15558e}=_0x47408f(_0x43eb09);if(_0x3535('0x76')!=_0x394f4e||_0x3535('0x31')!=_0x15558e&&_0x3535('0xae')!=_0x15558e)continue;_0x220d5e[_0xc67aaa][_0x3535('0x11c')][_0x3535('0xf7')](_0x232c25,0x1),_0x232c25--;const _0x30bb83=_0x34f8c6[_0x3535('0x10c')](_0x31eb81=>_0x31eb81['name']==_0x43eb09);_0x30bb83>-0x1&&_0x34f8c6[_0x3535('0xf7')](_0x30bb83,0x1);}}function _0x47408f(_0x2d9495){const _0x3f04ec=_0x2d9495['split'](':');return{'group':_0x3f04ec[0x0],'type':_0x3f04ec[0x1],'subType':_0x3f04ec[_0x3535('0x108')]>=0x5?_0x3f04ec[0x2]:null,'id':_0x3f04ec[_0x3535('0x108')]<0x5?_0x3f04ec[0x2]:_0x3f04ec[0x3],'authorId':_0x3f04ec[_0x3535('0x108')]<0x5?_0x3f04ec[0x3]:_0x3f04ec[0x4],'markerCount':0x6==_0x3f04ec[_0x3535('0x108')]?_0x3f04ec[0x5]:null};}function _0x123c14(_0xbca0c5){for(let _0x526aaa=0x0;_0x526aaa<_0x34f8c6['length'];_0x526aaa++){if(_0xbca0c5[_0x3535('0xa2')]&&_0x3535('0x31')==_0x34f8c6[_0x526aaa][_0x3535('0xf9')])return _0xbca0c5['isAddSuggestion']=_0x34f8c6[_0x526aaa],void delete _0xbca0c5[_0x3535('0xa2')];if(!_0xbca0c5[_0x3535('0xa2')]&&!_0xbca0c5['isRemoved']&&'deletion'==_0x34f8c6[_0x526aaa][_0x3535('0xf9')])return void(_0xbca0c5[_0x3535('0x5')]=_0x34f8c6[_0x526aaa]);}}}[_0x3535('0x43')](_0x1679c9,_0x2bef37){let _0x35fe1d=0x0,_0x5218ce=!0x1;const _0x5867f8=new Map();for(const _0x1f0e79 of _0x1679c9)_0x1f0e79[_0x2bef37]?_0x5218ce&&(_0x35fe1d++,_0x5218ce=!0x1):(_0x35fe1d++,_0x5218ce=!0x0),_0x5867f8['set'](_0x1f0e79['id'],_0x35fe1d);for(let _0x449451=0x0;_0x449451<_0x1679c9['length'];_0x449451++){if('isRemoved'==_0x2bef37&&_0x1679c9[_0x449451]['isAdded']||_0x3535('0xa2')==_0x2bef37&&_0x1679c9[_0x449451][_0x3535('0xd')])continue;if('text'==_0x1679c9[_0x449451]['type']){_0x1679c9[_0x449451][_0x3535('0xe1')]=0x0;continue;}const _0x418d70=_0x5867f8[_0x3535('0xe5')](_0x1679c9[_0x449451][_0x3535('0x22')]),_0x903900=_0x5867f8['get'](_0x1679c9[_0x449451]['id']);_0x1679c9[_0x449451][_0x3535('0xe1')]=_0x418d70-_0x903900;}}[_0x3535('0x35')](_0x3003ca,_0x1c634a,_0x1d8d07=!0x1){const _0x358a46=[];let _0x37d3a3=this['repository'][_0x3535('0x6d')](_0x3003ca),_0x59a902=this[_0x3535('0x11e')][_0x3535('0x6d')](_0x1c634a);for(-0x1==_0x59a902&&(_0x59a902=this[_0x3535('0x11e')][_0x3535('0xa4')][_0x3535('0x108')],_0x1d8d07=!0x1);_0x37d3a3<_0x59a902;)_0x358a46[_0x3535('0xa9')](this[_0x3535('0x11e')]['getRevision'](_0x37d3a3)),_0x37d3a3++;return _0x1d8d07&&_0x358a46[_0x3535('0xa9')](this[_0x3535('0x11e')][_0x3535('0x41')](_0x37d3a3)),_0x358a46;}[_0x3535('0x57')](_0x351a23,_0x25770c,_0x131a5f,_0x2c9bc0){const _0x380ce1=this[_0x3535('0x7c')][_0x3535('0x109')]['schema'];let _0xc014dd=_0x25770c;for(;_0x351a23[_0xc014dd]&&_0x351a23[_0xc014dd][_0x3535('0xa2')];)_0xc014dd++;let _0x3a51f1=_0x2c9bc0;for(;_0x131a5f[_0x3a51f1]&&_0x131a5f[_0x3a51f1][_0x3535('0xd')];)_0x3a51f1++;_0x2b8c23(_0x351a23,_0x25770c,_0xc014dd),_0x2b8c23(_0x131a5f,_0x2c9bc0,_0x3a51f1);const _0x3e6614=_0x131a5f[_0x3535('0xdd')](_0x2c9bc0,_0x3a51f1)['concat'](_0x351a23[_0x3535('0xdd')](_0x25770c,_0xc014dd));return _0x3e6614[_0x3535('0x117')]((_0x35c1af,_0x19eb87)=>_0x35c1af[_0x3535('0x1')]!=_0x19eb87[_0x3535('0x1')]?_0x35c1af[_0x3535('0x1')]-_0x19eb87[_0x3535('0x1')]:_0x35c1af[_0x3535('0x124')]!=_0x19eb87['level']?_0x35c1af[_0x3535('0x124')]-_0x19eb87[_0x3535('0x124')]:_0x35c1af[_0x3535('0xe1')]!=_0x19eb87[_0x3535('0xe1')]?_0x19eb87[_0x3535('0xe1')]-_0x35c1af['distance']:!!_0x35c1af['isAdded']!=!!_0x19eb87[_0x3535('0xa2')]?-0x1==_0x35c1af[_0x3535('0x1')]||0x0==_0x35c1af[_0x3535('0x1')]?_0x35c1af['isAdded']?-0x1:0x1:_0x35c1af[_0x3535('0xa2')]?0x1:-0x1:_0x35c1af['index']-_0x19eb87[_0x3535('0x68')]),{'commonTape':_0x3e6614,'iEnd':_0xc014dd,'jEnd':_0x3a51f1};function _0x2b8c23(_0x165477,_0x56a5c9,_0x3773b9){let _0x52dfe2=-0x1,_0x162c24=Number[_0x3535('0xac')],_0x95c9c0=!0x0;for(let _0x2e6f9f=_0x56a5c9;_0x2e6f9f<_0x3773b9;_0x2e6f9f++)if(_0x380ce1[_0x3535('0x11a')](_0x165477[_0x2e6f9f]['item'])||(_0x95c9c0=!0x1),_0x165477[_0x2e6f9f]['item']['startIndex']<_0x56a5c9&&(_0x52dfe2=_0x2e6f9f),_0x165477[_0x2e6f9f]['item'][_0x3535('0x58')]>=_0x3773b9){_0x162c24=_0x2e6f9f;break;}_0x95c9c0&&(_0x52dfe2=_0x3773b9-0x1);for(let _0x2a59fa=_0x56a5c9;_0x2a59fa<_0x3773b9;_0x2a59fa++)_0x165477[_0x2a59fa][_0x3535('0x1')]=_0x2a59fa<=_0x52dfe2?-0x1:_0x2a59fa<_0x162c24?0x0:0x1,_0x165477[_0x2a59fa]['index']=_0x2a59fa;let _0x4cf5dc=0x0;for(let _0x56d0f5=_0x56a5c9;_0x56d0f5<=_0x52dfe2;_0x56d0f5++)0x0==_0x165477[_0x56d0f5][_0x3535('0xe1')]?_0x165477[_0x56d0f5]['level']=_0x4cf5dc:(_0x4cf5dc++,_0x165477[_0x56d0f5]['level']=_0x4cf5dc,_0x4cf5dc++);for(let _0x574abf=_0x56a5c9;_0x574abf<_0x3773b9;_0x574abf++)0x0==_0x165477[_0x574abf]['side']&&(_0x165477[_0x574abf][_0x3535('0x124')]=_0x4cf5dc);_0x4cf5dc=0x0;for(let _0x3e47bb=_0x3773b9-0x1;_0x3e47bb>=_0x162c24;_0x3e47bb--)0x0==_0x165477[_0x3e47bb][_0x3535('0xe1')]?_0x165477[_0x3e47bb][_0x3535('0x124')]=_0x4cf5dc:(_0x4cf5dc--,_0x165477[_0x3e47bb]['level']=_0x4cf5dc,_0x4cf5dc--);}}[_0x3535('0xfd')](_0x38b34d){const _0x57c62e=new Map(),_0x32de59=this[_0x3535('0x7c')][_0x3535('0x109')]['schema'];for(let _0x2b99cd=0x1;_0x2b99cd<_0x38b34d[_0x3535('0x108')];_0x2b99cd++){let _0xc880c3,_0x294c43,_0x7211cb;const _0x909547=_0x38b34d[_0x2b99cd],_0x4a0d4f=_0x38b34d[_0x2b99cd-0x1];if('text'==_0x909547[_0x3535('0xf9')])continue;if(_0x909547[_0x3535('0xf9')]!=_0x4a0d4f[_0x3535('0xf9')])continue;if(!_0x32de59['isBlock'](_0x4a0d4f[_0x3535('0xff')])||_0x32de59[_0x3535('0x95')](_0x4a0d4f['item']))continue;if(!_0x32de59[_0x3535('0x2f')](_0x909547[_0x3535('0xff')])||_0x32de59[_0x3535('0x95')](_0x909547[_0x3535('0xff')]))continue;if((_0x38b34d[_0x2b99cd][_0x3535('0xa2')]||_0x38b34d[_0x2b99cd][_0x3535('0x113')])&&_0x38b34d[_0x2b99cd-0x1][_0x3535('0xd')])_0xc880c3=_0x38b34d[_0x2b99cd],_0x294c43=_0x38b34d[_0x2b99cd-0x1],_0x7211cb=_0x2b99cd-0x1;else{if(!_0x38b34d[_0x2b99cd][_0x3535('0xd')]||!_0x38b34d[_0x2b99cd-0x1]['isAdded']&&!_0x38b34d[_0x2b99cd-0x1][_0x3535('0x113')])continue;_0xc880c3=_0x38b34d[_0x2b99cd-0x1],_0x294c43=_0x38b34d[_0x2b99cd],_0x7211cb=_0x2b99cd;}const _0x11ac91=_0xc880c3[_0x3535('0x124')]==_0x294c43[_0x3535('0x124')],_0x5bb11e=Math['abs'](_0xc880c3[_0x3535('0x124')])<Math[_0x3535('0xea')](_0x294c43['level'])&&0x0==_0x294c43[_0x3535('0xe1')];(_0x11ac91||_0x5bb11e)&&(_0x57c62e[_0x3535('0x129')](_0x294c43['id'],_0xc880c3['id']),_0x38b34d[_0x3535('0xf7')](_0x7211cb,0x1),_0x2b99cd--,_0xc880c3[_0x3535('0xa2')]=!0x1);}for(let _0x419223=0x0;_0x419223<_0x38b34d[_0x3535('0x108')];_0x419223++)_0x57c62e[_0x3535('0xfe')](_0x38b34d[_0x419223][_0x3535('0x22')])&&(_0x38b34d[_0x419223][_0x3535('0x22')]=_0x57c62e[_0x3535('0xe5')](_0x38b34d[_0x419223][_0x3535('0x22')]));}[_0x3535('0x6')](_0x2654d4){const _0x10424e=new Set(_0x2654d4[_0x3535('0xa7')](_0x2b81c8=>_0x2b81c8['id']));for(let _0x529050=0x0;_0x529050<_0x2654d4['length'];_0x529050++)_0x10424e[_0x3535('0xfe')](_0x2654d4[_0x529050][_0x3535('0x22')])||0x0==_0x2654d4[_0x529050]['distance']||(_0x2654d4[_0x529050]['isIncorrect']=!0x0);return _0x2654d4[_0x3535('0x4e')](_0x5564e4=>!_0x5564e4[_0x3535('0x77')]);}[_0x3535('0x111')](_0x529e11){const _0x2edda7=new Set();for(let _0x2d8bde=0x0;_0x2d8bde<_0x529e11[_0x3535('0x108')];_0x2d8bde++){if(_0x2edda7[_0x3535('0xfe')](_0x529e11[_0x2d8bde]['id'])&&_0x529e11[_0x2d8bde]['isRemoved']&&(_0x529e11[_0x2d8bde][_0x3535('0x77')]=!0x0),_0x529e11[_0x2d8bde][_0x3535('0x77')])continue;if(0x0==_0x529e11[_0x2d8bde][_0x3535('0xe1')])continue;if(_0x3535('0x25')!=_0x529e11[_0x2d8bde][_0x3535('0xf9')])continue;if(null==_0x529e11[_0x2d8bde][_0x3535('0x22')])continue;let _0x2ddf1e=_0x2d8bde+0x1,_0x5f1c26=0x0;for(;_0x529e11[_0x2ddf1e]['id']!=_0x529e11[_0x2d8bde][_0x3535('0x22')];)_0x3535('0x25')==_0x529e11[_0x2ddf1e][_0x3535('0xf9')]?_0x5f1c26++:_0x3535('0x1e')==_0x529e11[_0x2ddf1e]['type']&&_0x5f1c26--,_0x2ddf1e++;if(0x0!=_0x5f1c26){if(_0x529e11[_0x2d8bde][_0x3535('0xd')])_0x529e11[_0x2d8bde][_0x3535('0x77')]=!0x0;else for(;_0x2ddf1e!=_0x2d8bde;)_0x529e11[_0x2ddf1e][_0x3535('0xd')]&&0x0!=_0x529e11[_0x2ddf1e][_0x3535('0xe1')]&&(_0x529e11[_0x2ddf1e][_0x3535('0x77')]=!0x0,_0x2edda7[_0x3535('0x107')](_0x529e11[_0x2ddf1e]['pairId'])),_0x2ddf1e--;}}return _0x529e11['filter'](_0x46280d=>!_0x46280d['isIncorrect']);}[_0x3535('0xe')](_0x551031){const _0x5c4a74=this[_0x3535('0x7c')][_0x3535('0x109')]['schema'];for(let _0x3ba92f=0x0;_0x3ba92f<_0x551031[_0x3535('0x108')];_0x3ba92f++){if(!(_0x551031[_0x3ba92f]['isAdded']||_0x551031[_0x3ba92f][_0x3535('0x113')]||_0x551031[_0x3ba92f][_0x3535('0xd')]||_0x551031[_0x3ba92f][_0x3535('0x5')]))continue;if(0x0==_0x551031[_0x3ba92f][_0x3535('0xe1')])continue;const _0x44f6f5=_0x551031[_0x3ba92f][_0x3535('0xff')];_0x5c4a74[_0x3535('0x2f')](_0x44f6f5)||_0x5c4a74['isLimit'](_0x44f6f5)||(_0x551031[_0x3ba92f][_0x3535('0xa2')]&&delete _0x551031[_0x3ba92f][_0x3535('0xa2')],_0x551031[_0x3ba92f][_0x3535('0x113')]&&delete _0x551031[_0x3ba92f][_0x3535('0x113')],_0x551031[_0x3ba92f][_0x3535('0x5')]&&delete _0x551031[_0x3ba92f][_0x3535('0x5')],_0x551031[_0x3ba92f]['isRemoved']&&(_0x551031[_0x3ba92f][_0x3535('0x77')]=!0x0));}return _0x551031[_0x3535('0x4e')](_0x4553fb=>!_0x4553fb['isIncorrect']);}['_makeModelFromTape'](_0x431ec5,_0xdc31ae,_0x1e25c0){const _0x504e24=new _0x43f879(),_0x3f0d7e=[],_0x1935fc=new Map(),_0xc2c910=this['editor'][_0x3535('0x109')],_0x58b752=_0xc2c910['schema'],_0x57ccf8=[_0x504e24],_0x1d8b8={},_0x1bfde1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4fb679=null;const _0x41431a=[0x0];for(let _0x31af3c=0x0;_0x31af3c<_0x431ec5['length'];_0x31af3c++){let _0x594969,_0x24dfcd;if(_0x3535('0x25')===_0x431ec5[_0x31af3c][_0x3535('0xf9')]){_0x594969=_0xc2c910[_0x3535('0x118')](_0x504e24,_0x41431a);const _0x15706b=new _0x52a395(_0x431ec5[_0x31af3c][_0x3535('0xff')][_0x3535('0x9a')],_0x431ec5[_0x31af3c][_0x3535('0xff')][_0x3535('0x8e')]());_0x57ccf8[0x0][_0x3535('0x82')](_0x15706b),_0x41431a[_0x3535('0xa9')](0x0),_0x57ccf8[_0x3535('0x11b')](_0x15706b),_0x24dfcd=_0xc2c910[_0x3535('0x118')](_0x504e24,_0x41431a),_0x4fb679=null;}else{if(_0x3535('0x1e')===_0x431ec5[_0x31af3c][_0x3535('0xf9')])_0x57ccf8[_0x3535('0x44')](),_0x594969=_0xc2c910[_0x3535('0x118')](_0x504e24,_0x41431a),_0x41431a[_0x3535('0x3f')](),_0x41431a[_0x41431a[_0x3535('0x108')]-0x1]++,_0x24dfcd=_0xc2c910[_0x3535('0x118')](_0x504e24,_0x41431a),_0x4fb679=null;else{if(_0x594969=_0xc2c910[_0x3535('0x118')](_0x504e24,_0x41431a),_0x4fb679&&_0x562bc9(_0x4fb679,_0x431ec5[_0x31af3c]['item']))_0x4fb679['_data']+=_0x431ec5[_0x31af3c][_0x3535('0xff')][_0x3535('0xb')];else{const _0x35b438=new _0x4153f7(_0x431ec5[_0x31af3c][_0x3535('0xff')][_0x3535('0xb')],_0x431ec5[_0x31af3c][_0x3535('0xff')]['getAttributes']());_0x57ccf8[0x0]['_appendChild'](_0x35b438),_0x4fb679=_0x35b438;}_0x41431a[_0x41431a[_0x3535('0x108')]-0x1]+=_0x431ec5[_0x31af3c][_0x3535('0xff')][_0x3535('0x38')],_0x24dfcd=_0xc2c910['createPositionFromPath'](_0x504e24,_0x41431a);}}for(const _0x2301c1 of _0x431ec5[_0x31af3c][_0x3535('0x62')])_0x1935fc['set'](_0x2301c1,{'start':_0x594969,'end':null});_0xaf49ea(_0x3535('0x5'),_0x31af3c,_0x594969,_0x24dfcd),_0xaf49ea(_0x3535('0x113'),_0x31af3c,_0x594969,_0x24dfcd),_0xaf49ea(_0x3535('0xd'),_0x31af3c,_0x594969,_0x24dfcd),_0xaf49ea(_0x3535('0xa2'),_0x31af3c,_0x594969,_0x24dfcd);for(const _0x22c865 of _0x431ec5[_0x31af3c]['markersEnd']){_0x1935fc['get'](_0x22c865)['end']=_0x24dfcd;}}for(const [_0x28e174,_0x3698a9]of _0x1935fc){const _0x3aba6d=this[_0x3535('0x7c')][_0x3535('0x109')][_0x3535('0xca')](_0x3698a9[_0x3535('0x24')],_0x3698a9[_0x3535('0x104')]);_0x504e24[_0x3535('0x2a')][_0x3535('0x129')](_0x28e174,_0x3aba6d);}return _0x3f0d7e['sort']((_0x1ad81a,_0x53dd13)=>{const _0x257c8c=_0x504e24[_0x3535('0x2a')]['get']('revision:'+_0x1ad81a['id']),_0x311469=_0x504e24['markers'][_0x3535('0xe5')](_0x3535('0x8c')+_0x53dd13['id']);return _0x257c8c['start']['isBefore'](_0x311469[_0x3535('0x24')])?-0x1:_0x257c8c[_0x3535('0x24')][_0x3535('0x126')](_0x311469['start'])?0x1:_0x257c8c[_0x3535('0x104')][_0x3535('0x4d')](_0x311469[_0x3535('0x104')])?-0x1:_0x257c8c[_0x3535('0x104')][_0x3535('0x126')](_0x311469[_0x3535('0x104')])?0x1:_0x3535('0x107')===_0x1ad81a[_0x3535('0xf9')]?-0x1:0x1;}),{'root':_0x504e24,'changes':_0x3f0d7e};function _0xaf49ea(_0x4d7793,_0x11d690,_0x560aa6,_0x10e082){const _0x23b38b=!!_0x431ec5[_0x11d690][_0x4d7793],_0x3f94ea=_0x23b38b?_0x431ec5[_0x11d690][_0x4d7793][_0x3535('0x67')]:null,_0x4464fe=_0x11d690===_0x431ec5[_0x3535('0x108')]-0x1,_0x3e6a75=_0x1bfde1[_0x4d7793][0x0],_0x3dce61=_0x58b752[_0x3535('0xcc')](_0x431ec5[_0x11d690]['item']);!_0x1d8b8[_0x4d7793]&&_0x23b38b?_0x1d8b8[_0x4d7793]={'start':_0x560aa6,'tapeItem':_0x431ec5[_0x11d690],'userId':_0x3f94ea,'type':_0x4d7793}:_0x1d8b8[_0x4d7793]&&!_0x23b38b?(_0x1d8b8[_0x4d7793]['end']=_0x560aa6,_0xc394ee(_0x1d8b8[_0x4d7793]),_0x1d8b8[_0x4d7793]=null):_0x1d8b8[_0x4d7793]&&_0x23b38b&&_0x1d8b8[_0x4d7793]['userId']!==_0x3f94ea&&(_0x1d8b8[_0x4d7793][_0x3535('0x104')]=_0x560aa6,_0x3e6a75&&_0x3e6a75[_0x3535('0x67')]===_0x1d8b8[_0x4d7793][_0x3535('0x67')]||_0xc394ee(_0x1d8b8[_0x4d7793]),_0x1d8b8[_0x4d7793]={'start':_0x560aa6,'tapeItem':_0x431ec5[_0x11d690],'userId':_0x3f94ea,'type':_0x4d7793}),_0x1d8b8[_0x4d7793]&&_0x3dce61&&(_0x3535('0x25')!==_0x431ec5[_0x11d690]['type']||_0x3e6a75&&_0x3e6a75[_0x3535('0x67')]===_0x3f94ea||_0x1bfde1[_0x4d7793][_0x3535('0x11b')]({'userId':_0x3f94ea,'object':_0x431ec5[_0x11d690][_0x3535('0xff')],'change':_0x1d8b8[_0x4d7793]}),'elementEnd'===_0x431ec5[_0x11d690][_0x3535('0xf9')]&&_0x3e6a75&&_0x3e6a75[_0x3535('0xb1')]===_0x431ec5[_0x11d690][_0x3535('0xff')]&&(_0x1bfde1[_0x4d7793][_0x3535('0x44')](),_0x1d8b8[_0x4d7793]=_0x3e6a75[_0x3535('0x72')])),_0x1d8b8[_0x4d7793]&&_0x4464fe&&(_0x1d8b8[_0x4d7793][_0x3535('0x104')]=_0x10e082,_0xc394ee(_0x1d8b8[_0x4d7793]),_0x1d8b8[_0x4d7793]=null);}function _0xc394ee({start:_0x21f5f8,end:_0x59ad8b,tapeItem:_0x346fbf,userId:_0x3f0d7b,type:_0x36dbe9}){const _0x30e314=_0x346fbf['item'],_0x424cfa=_0xc2c910[_0x3535('0x80')][_0x3535('0x2f')](_0x30e314)&&!_0xc2c910[_0x3535('0x80')][_0x3535('0x95')](_0x30e314),_0x4fdd3d=_0x21f5f8[_0x3535('0x28')]==_0x59ad8b[_0x3535('0x89')]&&_0x59ad8b[_0x3535('0x23')];if(_0x424cfa&&_0x4fdd3d)return;const _0x22600c=_0xc2c910[_0x3535('0xca')](_0x21f5f8,_0x59ad8b),_0x2e40ff=_0xdc31ae[_0x3535('0xe5')](_0x3f0d7b),_0x10767b=new _0x324807({'author':_0x2e40ff,'type':'isAdded'==_0x36dbe9||'isAddSuggestion'==_0x36dbe9?_0x3535('0x107'):_0x3535('0xc7'),'data':{'isSuggestion':_0x3535('0x113')==_0x36dbe9||_0x3535('0x5')==_0x36dbe9},'createdAt':new Date(),'rootName':_0x1e25c0});_0x3f0d7e[_0x3535('0xa9')](_0x10767b),_0x504e24['markers'][_0x3535('0x129')]('revision:'+_0x10767b['id'],_0x22600c);}function _0x562bc9(_0x233f73,_0x1fe449){const _0x15aae0=_0x233f73[_0x3535('0x8e')](),_0x540513=_0x1fe449[_0x3535('0x8e')]();for(const _0x1e10eb of _0x15aae0){if(_0x1e10eb[0x1]!==_0x1fe449[_0x3535('0x15')](_0x1e10eb[0x0]))return!0x1;_0x540513[_0x3535('0x47')]();}return _0x540513['next']()[_0x3535('0x73')];}}[_0x3535('0xbf')](){this[_0x3535('0x7c')]['conversion']['for'](_0x3535('0x39'))[_0x3535('0xf')]({'view':_0x3535('0x114')}),this[_0x3535('0x7c')][_0x3535('0x49')]['for']('editingDowncast')[_0x3535('0xe2')]({'model':_0x3535('0x114'),'view':_0x418fa8=>{const _0x44a747=_0x418fa8[_0x3535('0xab')][_0x3535('0x96')](':')[0x1],_0x29d5c0=this[_0x3535('0x88')](_0x44a747);if(!_0x29d5c0)return null;const _0x39629b=_0x3535('0x107')==_0x29d5c0[_0x3535('0xf9')]?'insertion':'deletion',_0x56c673=[_0x3535('0xe8'),_0x3535('0x6e')+_0x39629b];return _0x29d5c0[_0x3535('0xb')][_0x3535('0xd8')]&&_0x56c673[_0x3535('0xa9')](_0x3535('0x6e')+_0x39629b+'-new'),this[_0x3535('0xdc')]==_0x29d5c0&&_0x56c673['push']('ck-suggestion-marker--active'),{'classes':_0x56c673,'attributes':{'data-change-id':_0x44a747}};}}),this['editor'][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x39'))['add'](_0x3cab58=>{_0x3cab58['on'](_0x3535('0x27'),(_0x1d2362,_0x51815f,_0x540945)=>{const _0x3e5587=_0x51815f[_0x3535('0xa1')][_0x3535('0x81')](0x0);if(!_0x3e5587||!_0x3e5587['is'](_0x3535('0x85'),'code'))return;if(!_0x540945[_0x3535('0xf1')][_0x3535('0x32')](_0x3e5587,{'attributes':[_0x3535('0x12a'),_0x3535('0x8f')]}))return;const _0x528520=_0x51815f[_0x3535('0x3c')]['start'][_0x3535('0x28')];_0x540945['writer'][_0x3535('0x1a')](_0x3535('0x12a'),_0x3e5587[_0x3535('0x15')]('vid_start'),_0x528520),_0x540945[_0x3535('0x26')][_0x3535('0x1a')](_0x3535('0x8f'),_0x3e5587[_0x3535('0x15')](_0x3535('0x8f')),_0x528520);},{'priority':'low'});}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x39'))[_0x3535('0x107')](_0x53df93=>{_0x53df93['on']('element',(_0x20556d,_0x5f0426,_0x3892c5)=>{if(!_0x3892c5['consumable']['consume'](_0x5f0426[_0x3535('0xa1')],{'attributes':[_0x3535('0x12a'),'vid_end']}))return;if(_0x5f0426[_0x3535('0x3c')]['isCollapsed'])return;const _0x56e794=_0x5f0426['modelRange'][_0x3535('0x24')]['nodeAfter'];_0x56e794[_0x3535('0x1d')](_0x3535('0x12a'))||_0x56e794['hasAttribute'](_0x3535('0x6c'))||(_0x3892c5[_0x3535('0x26')][_0x3535('0x1a')](_0x3535('0x12a'),_0x5f0426[_0x3535('0xa1')]['getAttribute'](_0x3535('0x12a')),_0x56e794),_0x3892c5[_0x3535('0x26')][_0x3535('0x1a')]('vid_end',_0x5f0426['viewItem'][_0x3535('0x15')]('vid_end'),_0x56e794));},{'priority':_0x3535('0x9e')});}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x39'))[_0x3535('0xde')]({'view':{'name':_0x3535('0xad'),'attributes':{'vid':!0x0}},'model':{'key':_0x3535('0x6c'),'value':_0x284239=>_0x284239[_0x3535('0x15')](_0x3535('0x6c'))}}),this[_0x3535('0x7c')]['model'][_0x3535('0x80')]['on'](_0x3535('0x9f'),(_0x4d517d,[,_0x2c958d])=>{[_0x3535('0x12a'),_0x3535('0x8f'),_0x3535('0x6c')]['includes'](_0x2c958d)&&(_0x4d517d['return']=!0x0,_0x4d517d[_0x3535('0xf3')]());},{'priority':_0x3535('0x8b')}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')]('dataDowncast')[_0x3535('0x107')](_0x540a1c=>{_0x540a1c['on'](_0x3535('0xbe'),(_0xa0a524,_0x435d3d,_0x8faf70)=>{if('\x20'!=_0x435d3d[_0x3535('0xff')][_0x3535('0xb')]||_0x435d3d[_0x3535('0xff')][_0x3535('0x89')][_0x3535('0xf4')]>0x1)return;if(!_0x8faf70[_0x3535('0xf1')]['consume'](_0x435d3d[_0x3535('0xff')],_0xa0a524[_0x3535('0x9a')]))return;const _0x4ea95e=_0x8faf70[_0x3535('0x26')],_0x214aaa=_0x8faf70['mapper'][_0x3535('0xa3')](_0x435d3d[_0x3535('0x56')]);_0x4ea95e[_0x3535('0x13')](_0x214aaa,_0x4ea95e[_0x3535('0x6f')](_0x3535('0xad')));});}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')]('dataDowncast')[_0x3535('0x91')]({'model':'revision'}),this[_0x3535('0x7c')][_0x3535('0x21')]['downcastDispatcher']['on'](_0x3535('0x2'),function(_0x8b6e4c){const _0x5a521f=_0x8b6e4c[_0x3535('0xcb')][_0x3535('0xe5')](_0x3535('0x60'));return(_0x20683d,_0x51fd7a,_0x46e46d)=>{const _0x239770=_0x51fd7a[_0x3535('0xab')][_0x3535('0x96')](':')[0x1],_0x40d02e=_0x5a521f['_getChangeFromId'](_0x239770);if(!_0x40d02e)return null;const _0x255140=_0x3535('0x107')==_0x40d02e[_0x3535('0xf9')]?'split':_0x3535('0xf0');if(!_0x46e46d[_0x3535('0xf1')][_0x3535('0x40')](_0x51fd7a[_0x3535('0x101')],_0x20683d['name']))return;const _0x1f526f=_0x51fd7a['markerRange']['getWalker'](),_0x58966=_0x51fd7a['markerRange'][_0x3535('0x24')],_0x53fd95=_0x8b6e4c[_0x3535('0x109')]['schema'];let _0xa8fa56=null,_0xc5c755=null,_0x449aa8=!0x1,_0x291078=!0x1;for(const _0xba4d3f of _0x1f526f){const _0x4499f0=_0xba4d3f[_0x3535('0xff')];_0x449aa8=_0x449aa8||_0x53fd95['isContent'](_0x4499f0);const _0x565337=_0x46e46d['mapper']['toViewElement'](_0x4499f0);if(_0x565337&&_0x565337[_0x3535('0x2b')](_0x3535('0x19')))return;_0x3535('0x1e')==_0xba4d3f[_0x3535('0xf9')]&&(_0x53fd95[_0x3535('0x2f')](_0x4499f0)&&!_0x53fd95['isLimit'](_0x4499f0)&&(_0x4499f0[_0x3535('0x70')]||_0x58966[_0x3535('0x9')]?_0xa8fa56&&_0xa8fa56['parent']==_0x4499f0||(_0xa8fa56=_0x4499f0,_0x1fda89(_0xba4d3f[_0x3535('0x52')]),_0x291078=!0x0):_0xc5c755=_0xc5c755||_0xba4d3f[_0x3535('0x52')]));}function _0x1fda89(_0x385930){const _0x1129a3=_0x46e46d[_0x3535('0x26')][_0x3535('0x79')](_0x3535('0xad'),{'class':'ck-suggestion-marker-'+_0x255140}),_0x2c8bf8=_0x46e46d[_0x3535('0xa5')]['toViewPosition'](_0x385930);_0x40d02e['data']['isSuggestion']&&_0x46e46d['writer']['addClass'](_0x3535('0x6e')+_0x255140+'-new',_0x1129a3),_0x5a521f[_0x3535('0xdc')]==_0x40d02e&&_0x46e46d[_0x3535('0x26')]['addClass'](_0x3535('0xcf'),_0x1129a3),_0x46e46d['writer'][_0x3535('0x4')](_0x2c8bf8,_0x1129a3),_0x46e46d[_0x3535('0xa5')][_0x3535('0xe4')](_0x1129a3,_0x51fd7a['markerName']);}_0x449aa8||_0x291078||!_0xc5c755||_0x1fda89(_0xc5c755);};}(this[_0x3535('0x7c')]),{'priority':_0x3535('0xd6')}),this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0xe9')]['on']('removeMarker:revision',(_0x55cd59,_0xff665f,_0x8fbf8a)=>{const _0x4237e0=_0x8fbf8a['mapper'][_0x3535('0x55')](_0xff665f[_0x3535('0xab')]);if(_0x4237e0)for(const _0x1502b7 of _0x4237e0)(_0x1502b7[_0x3535('0x3b')]('ck-suggestion-marker-split')||_0x1502b7[_0x3535('0x3b')]('ck-suggestion-marker-merge'))&&(_0x8fbf8a[_0x3535('0xa5')][_0x3535('0x37')](_0x1502b7,_0xff665f[_0x3535('0xab')]),_0x8fbf8a['writer'][_0x3535('0xc7')](_0x1502b7));},{'priority':_0x3535('0xd6')}),this['editor'][_0x3535('0x21')][_0x3535('0xe9')]['on'](_0x3535('0x2'),(_0x338294,_0x55cdb1,_0x3eecf6)=>{const _0x15a3f2=_0x55cdb1['markerName'][_0x3535('0x96')](':')[0x1],_0x3f128b=this['_getChangeFromId'](_0x15a3f2);if(!_0x3f128b)return null;const _0x150cc0='add'==_0x3f128b[_0x3535('0xf9')]?_0x3535('0x96'):_0x3535('0xf0');if(_0x3eecf6[_0x3535('0xf1')][_0x3535('0x40')](_0x55cdb1[_0x3535('0x101')],_0x338294[_0x3535('0x9a')]))for(const _0x594a60 of _0x55cdb1[_0x3535('0x101')]['getItems']()){if(!_0x594a60['is'](_0x3535('0x85'),'softBreak'))continue;const _0x31232a=_0x3eecf6['writer'][_0x3535('0x79')](_0x3535('0xad'),{'class':_0x3535('0x6e')+_0x150cc0}),_0x549c98=_0x3eecf6[_0x3535('0xa5')][_0x3535('0x106')](this[_0x3535('0x7c')]['model'][_0x3535('0x9c')](_0x594a60));_0x3f128b[_0x3535('0xb')][_0x3535('0xd8')]&&_0x3eecf6[_0x3535('0x26')]['addClass'](_0x3535('0x6e')+_0x150cc0+'-new',_0x31232a),this[_0x3535('0xdc')]==_0x3f128b&&_0x3eecf6[_0x3535('0x26')]['addClass'](_0x3535('0xcf'),_0x31232a),_0x3eecf6[_0x3535('0x26')]['insert'](_0x549c98,_0x31232a),_0x3eecf6[_0x3535('0xa5')][_0x3535('0xe4')](_0x31232a,_0x55cdb1[_0x3535('0xab')]);}},{'priority':_0x3535('0xd6')}),this[_0x3535('0x7c')]['model'][_0x3535('0xf6')]['on'](_0x3535('0x72'),()=>{this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0x72')](_0x310414=>{for(const _0x4b2105 of this[_0x3535('0x7c')]['model']['document'][_0x3535('0x20')]()){const _0x27079e=this[_0x3535('0x7c')]['model'][_0x3535('0xf6')]['getRoot'](_0x4b2105),_0x2fea83=this['editor'][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0xf6')][_0x3535('0x7a')](_0x4b2105);if(_0x2fea83){const _0x3add50=_0x27079e[_0x3535('0x15')](_0x3535('0xd7'));if(_0x310414[_0x3535('0xf8')]('data-change-id',_0x2fea83),_0x310414['removeClass'](_0x3535('0xe6'),_0x2fea83),_0x310414[_0x3535('0x9b')](_0x3535('0x1c'),_0x2fea83),_0x310414[_0x3535('0x9b')](_0x3535('0xd5'),_0x2fea83),_0x3add50){const _0x26e34e=this['_getChangeFromId'](_0x3add50);if(!_0x26e34e)return null;_0x310414[_0x3535('0x1a')](_0x3535('0xd1'),_0x3add50,_0x2fea83),_0x310414[_0x3535('0x11d')]('ck-revision-history-root-'+_0x26e34e[_0x3535('0xf9')],_0x2fea83),this[_0x3535('0xdc')]==_0x26e34e&&_0x310414['addClass'](_0x3535('0xd5'),_0x2fea83);}}}});}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x39'))[_0x3535('0xf')]({'view':_0x3535('0x5d'),'model':_0x3fd1bd=>'revision-comment:'+_0x3fd1bd,'converterPriority':_0x3535('0x8b')}),this['editor'][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x39'))[_0x3535('0xf')]({'view':_0x3535('0x92'),'model':_0x2c28ad=>_0x3535('0x36')+_0x2c28ad,'converterPriority':_0x3535('0x8b')}),this[_0x3535('0x7c')][_0x3535('0x49')][_0x3535('0x17')](_0x3535('0x87'))[_0x3535('0x91')]({'model':_0x3535('0x76'),'view':_0x4ee596=>({'name':_0x3535('0xbb')+_0x4ee596,'group':_0x3535('0x76')}),'converterPriority':_0x3535('0x8b')}),this[_0x3535('0x7c')]['conversion'][_0x3535('0x17')](_0x3535('0xef'))[_0x3535('0xe2')]({'model':_0x3535('0x76'),'view':_0x4aad79=>{const _0x1b612a=_0x4aad79[_0x3535('0xab')][_0x3535('0x96')](':')[0x1];return _0x3535('0x31')!=_0x1b612a&&_0x3535('0xae')!=_0x1b612a?null:{'classes':[_0x3535('0xd0'),_0x3535('0xf2')+_0x1b612a]};}}),this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0xe9')]['on'](_0x3535('0xce'),et(this[_0x3535('0x7c')],_0x3535('0xf0')),{'priority':_0x3535('0xd6')}),this[_0x3535('0x7c')]['editing'][_0x3535('0xe9')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x3535('0x7c')],'split'),{'priority':_0x3535('0xd6')}),this[_0x3535('0x7c')][_0x3535('0x21')][_0x3535('0xe9')]['on'](_0x3535('0x5c'),(_0xb0e446,_0x424d29,_0x3951ea)=>{const _0x4e6592=_0x3951ea['mapper'][_0x3535('0x55')](_0x424d29[_0x3535('0xab')]);if(_0x4e6592)for(const _0x1c0430 of _0x4e6592)_0x1c0430['is'](_0x3535('0x4c'))&&(_0x3951ea[_0x3535('0xa5')][_0x3535('0x37')](_0x1c0430,_0x424d29[_0x3535('0xab')]),_0x3951ea[_0x3535('0x26')]['remove'](_0x1c0430));},{'priority':_0x3535('0xd6')});}['_getChangeFromId'](_0xcded57){return this[_0x3535('0x98')][_0x3535('0xe5')](_0xcded57);}[_0x3535('0x10e')](_0x4d3d1f){return this['_changeView']&&this[_0x3535('0x2e')][_0x3535('0xe7')](),this[_0x3535('0x2e')]=new _0x5a955c(this['editor'][_0x3535('0x78')],_0x4d3d1f),this[_0x3535('0x2e')];}[_0x3535('0x69')](){this[_0x3535('0x7c')][_0x3535('0x109')][_0x3535('0xf6')][_0x3535('0xda')][_0x3535('0xe0')](_0x3535('0x114')),this['on'](_0x3535('0x10a'),(_0x1a8677,_0x4dadad,_0x4a40ab,_0x2b18ba)=>{_0x2b18ba&&this[_0x3535('0x2c')][_0x3535('0xc7')](_0x2b18ba),_0x4a40ab&&(this['_balloon'][_0x3535('0x107')]({'view':_0x4a40ab,'stackId':_0x3535('0xc0'),'position':{'target':()=>{const _0x2158fb=this[_0x3535('0x7c')][_0x3535('0x21')],_0x9d32b8=this[_0x3535('0x88')](_0x4a40ab['changeId']);let _0x1921c2;if(_0x9d32b8['data'][_0x3535('0x33')]){const _0x14e845=_0x2158fb[_0x3535('0x9d')][_0x3535('0x122')](_0x9d32b8[_0x3535('0x8')]);_0x1921c2=Array[_0x3535('0x6b')](_0x14e845[_0x3535('0xb7')]());}else{const _0xdd392d=this[_0x3535('0x7c')][_0x3535('0x109')][_0x3535('0x2a')][_0x3535('0xe5')]('revision:'+_0x4a40ab['changeId']);_0x1921c2=Array[_0x3535('0x6b')](_0x2158fb[_0x3535('0xa5')][_0x3535('0x55')](_0xdd392d['name']))[_0x3535('0xa7')](_0x7a37f9=>_0x2158fb['view'][_0x3535('0x83')][_0x3535('0x115')](_0x7a37f9))[_0x3535('0xa7')](_0x59865f=>Array[_0x3535('0x6b')](_0x59865f[_0x3535('0xb7')]()))[_0x3535('0x128')]();}if(!this['_activeViewTarget'])return _0x1921c2[0x0];return _0x1921c2['find'](_0xc54c8=>_0xc54c8[_0x3535('0xb9')]-0x3<=this[_0x3535('0x4b')]['y']&&_0xc54c8[_0x3535('0x64')]+0x3>=this[_0x3535('0x4b')]['y']&&_0xc54c8[_0x3535('0xdb')]-0x3<=this['_activeViewTarget']['x']&&_0xc54c8[_0x3535('0xb4')]+0x3>=this[_0x3535('0x4b')]['x'])||_0x1921c2[0x0];}}}),this[_0x3535('0x2c')][_0x3535('0x74')](_0x3535('0xc0')));}),this['on'](_0x3535('0x119'),(_0x4d3ecc,_0x11427f,_0x125676,_0xc25401)=>{this[_0x3535('0x123')]=_0x125676?this['_getViewForChange'](_0x125676):null,this['editor'][_0x3535('0x109')]['change'](()=>{const _0x53c0ca=this[_0x3535('0x7c')]['editing'];_0xc25401&&(_0xc25401['data'][_0x3535('0x33')]?_0x53c0ca[_0x3535('0x9d')]['change'](_0x515c33=>{_0x515c33['removeClass']('ck-revision-history-root--active',_0x53c0ca[_0x3535('0x9d')][_0x3535('0xf6')][_0x3535('0x7a')](_0xc25401[_0x3535('0x8')]));}):_0x53c0ca[_0x3535('0x4f')](_0x3535('0x8c')+_0xc25401['id'])),_0x125676&&(_0x125676['data'][_0x3535('0x33')]?_0x53c0ca[_0x3535('0x9d')][_0x3535('0x72')](_0x2f2eab=>{_0x2f2eab[_0x3535('0x11d')](_0x3535('0xd5'),_0x53c0ca[_0x3535('0x9d')][_0x3535('0xf6')]['getRoot'](_0x125676[_0x3535('0x8')]));}):_0x53c0ca[_0x3535('0x4f')]('revision:'+_0x125676['id']));});}),this[_0x3535('0x1b')](this[_0x3535('0x7c')]['editing'][_0x3535('0x9d')][_0x3535('0xf6')],_0x3535('0xbc'),(_0x1ab837,_0x5e984d)=>{if(this[_0x3535('0xdc')])return;const _0x572105=this[_0x3535('0xed')](_0x5e984d[_0x3535('0x90')]),_0x10b271=this[_0x3535('0x98')][_0x3535('0xe5')](_0x572105);_0x10b271?(this['_activeViewTarget']={'x':_0x5e984d[_0x3535('0x29')]['x'],'y':_0x5e984d[_0x3535('0x29')]['y']},this[_0x3535('0x123')]=this[_0x3535('0x10e')](_0x10b271)):(this[_0x3535('0x4b')]=null,this[_0x3535('0x123')]=null);}),this[_0x3535('0x1b')](this['editor'][_0x3535('0x21')][_0x3535('0x9d')][_0x3535('0xf6')],'mousedown',(_0x5827da,_0xb12ea3)=>{const _0x1a17e3=this['_findChangeIdFromDomTarget'](_0xb12ea3['target']),_0x53c6bf=this[_0x3535('0x98')]['get'](_0x1a17e3);_0x53c6bf?(this['_activeViewTarget']={'x':_0xb12ea3[_0x3535('0x29')]['x'],'y':_0xb12ea3[_0x3535('0x29')]['y']},_0x53c6bf===this[_0x3535('0xdc')]?this['_balloon'][_0x3535('0x12')]():this[_0x3535('0xdc')]=_0x53c6bf):(this[_0x3535('0x4b')]=null,this[_0x3535('0xdc')]=null);});}[_0x3535('0xed')](_0x378c10){do{const _0x5e823a=_0x378c10['getAttribute']('data-change-id');if(_0x5e823a)return _0x5e823a;_0x378c10=_0x378c10['parent'];}while(_0x378c10);return null;}['_cleanMarkers'](){this['editor'][_0x3535('0x109')][_0x3535('0x72')](_0x402609=>{for(const _0x2b8eac of this[_0x3535('0x7c')]['model'][_0x3535('0x2a')])_0x402609[_0x3535('0xcd')](_0x2b8eac);});}}function et(_0x4d0003,_0x2538a6){return(_0x3104a7,_0x1601c3,_0x1acac9)=>{if(!_0x1acac9[_0x3535('0xf1')]['test'](_0x1601c3[_0x3535('0x101')],_0x3104a7[_0x3535('0x9a')]))return;const _0x1328e0=_0x1601c3['markerRange'][_0x3535('0x11')](),_0x34c2e7=_0x1601c3[_0x3535('0x101')][_0x3535('0x24')],_0x2c1c1b=_0x4d0003[_0x3535('0x109')][_0x3535('0x80')];let _0x5a1de9=null,_0x3d67d1=null,_0x462b01=!0x1,_0x3a43ac=!0x1;for(const _0x5cad33 of _0x1328e0){const _0x4d6eb6=_0x5cad33[_0x3535('0xff')];_0x462b01=_0x462b01||_0x2c1c1b[_0x3535('0x53')](_0x4d6eb6);const _0x589d67=_0x1acac9[_0x3535('0xa5')][_0x3535('0xb3')](_0x4d6eb6);if(_0x589d67&&_0x589d67['getCustomProperty'](_0x3535('0x19')))return;'elementEnd'==_0x5cad33[_0x3535('0xf9')]&&(_0x2c1c1b[_0x3535('0x2f')](_0x4d6eb6)&&!_0x2c1c1b['isLimit'](_0x4d6eb6)&&(_0x4d6eb6[_0x3535('0x70')]||_0x34c2e7[_0x3535('0x9')]?_0x5a1de9&&_0x5a1de9[_0x3535('0x89')]==_0x4d6eb6||(_0x5a1de9=_0x4d6eb6,_0x28e2ac(_0x5cad33['previousPosition']),_0x3a43ac=!0x0):_0x3d67d1=_0x3d67d1||_0x5cad33[_0x3535('0x52')]));}function _0x28e2ac(_0xa51ff6){const _0x290aff=_0x1acac9[_0x3535('0xa5')]['toViewPosition'](_0xa51ff6),_0x42429e=_0x1acac9['writer'][_0x3535('0x79')](_0x3535('0xad'),{'class':_0x3535('0xf2')+_0x2538a6});_0x1acac9[_0x3535('0x26')]['insert'](_0x290aff,_0x42429e),_0x1acac9['mapper'][_0x3535('0xe4')](_0x42429e,_0x1601c3['markerName']);}_0x462b01||_0x3a43ac||!_0x3d67d1||_0x28e2ac(_0x3d67d1);};}export class RestoreRevisionCommand extends _0xd63f90{constructor(_0x55d977){super(_0x55d977);const _0x3565ee=_0x55d977[_0x3535('0xcb')][_0x3535('0xe5')](d);this[_0x3535('0x45')]=!0x1,this[_0x3535('0x1b')](_0x3565ee,_0x3535('0xa'),()=>this[_0x3535('0x10f')]()),this[_0x3535('0x1b')](_0x3565ee,'change:isEnabled',()=>this[_0x3535('0x10f')]());}[_0x3535('0x10d')](){const _0x4be537=this[_0x3535('0x7c')],_0x676091=_0x4be537[_0x3535('0xcb')]['get'](d),_0x5ca063=_0x676091[_0x3535('0x5b')]?_0x676091[_0x3535('0x10b')]['newRevisionId']:null;_0x4be537[_0x3535('0xc2')][_0x3535('0xe5')](_0x3535('0x3a'))[_0x3535('0x103')](_0x5ca063);}['refresh'](){const {isReady:_0x277fc5,isEnabled:_0x256c36}=this[_0x3535('0x7c')][_0x3535('0xcb')][_0x3535('0xe5')](d);this[_0x3535('0x1f')]=_0x277fc5&&_0x256c36;}}export class ShowChangeCommand extends _0xd63f90{constructor(_0x46d430,{direction:_0x8f9c37}){super(_0x46d430);const _0x5acf5c=_0x46d430[_0x3535('0xcb')][_0x3535('0xe5')](d);this['affectsData']=!0x1,this[_0x3535('0x42')]=_0x3535('0xf5')===_0x8f9c37?0x1:-0x1,this[_0x3535('0x1b')](_0x5acf5c,_0x3535('0xa'),()=>this[_0x3535('0x10f')]()),this['listenTo'](_0x5acf5c,'change:isEnabled',()=>this[_0x3535('0x10f')]()),this[_0x3535('0x1b')](_0x5acf5c,_0x3535('0x119'),()=>this[_0x3535('0x10f')]());}['execute'](){const _0x2ed63f=this[_0x3535('0x7c')],_0x23347a=_0x2ed63f[_0x3535('0xcb')][_0x3535('0xe5')](d),{isNavigationMode:_0x1f7cac,currentChangeNumber:_0x3e1d94}=_0x23347a;let _0x4348c6;if(_0x23347a['activeChange']=_0x1f7cac?_0x23347a['diff'][_0x3535('0x100')][_0x3535('0xe5')](_0x3e1d94+this[_0x3535('0x42')]):_0x23347a[_0x3535('0x10b')][_0x3535('0x100')][_0x3535('0x63')],_0x23347a['activeChange'][_0x3535('0xb')]['isOnRoot'])_0x4348c6=_0x2ed63f['editing'][_0x3535('0x9d')][_0x3535('0x122')](_0x23347a[_0x3535('0xdc')][_0x3535('0x8')]);else{const _0x33dc4c=_0x2ed63f[_0x3535('0x109')][_0x3535('0x2a')]['get'](_0x3535('0x8c')+_0x23347a[_0x3535('0xdc')]['id']);_0x4348c6=_0x19e99f(_0x2ed63f['editing'],_0x33dc4c);}_0x526bc7({'target':_0x4348c6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2d5ae2,currentChangeNumber:_0x151a08,numberOfChanges:_0x33e9de,isReady:_0x451998,isEnabled:_0x1bb8a2}=this[_0x3535('0x7c')][_0x3535('0xcb')][_0x3535('0xe5')](d);this[_0x3535('0x1f')]=!!(_0x1bb8a2&&_0x451998&&_0x33e9de)&&(!_0x2d5ae2||(0x1===this[_0x3535('0x42')]?_0x151a08<_0x33e9de-0x1:_0x151a08>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ddc=['isEnabled','set','_action','isActionsDropdownOpen','find','Name\x20this\x20revision','locale','action','buttonView','Show\x20more\x20items','model','add','stopPropagation','isVisible','map','bind','execute','function','Compare\x20against\x20selected','extendTemplate','isOpen','children','listenTo','items','ck-on','name','source'];(function(_0x127f10,_0x5ddcf4){const _0xd59c12=function(_0x27ef6c){while(--_0x27ef6c){_0x127f10['push'](_0x127f10['shift']());}};_0xd59c12(++_0x5ddcf4);}(_0x5ddc,0xb1));const _0xd59c=function(_0x127f10,_0x5ddcf4){_0x127f10=_0x127f10-0x0;let _0xd59c12=_0x5ddc[_0x127f10];return _0xd59c12;};import{Collection as _0x209fae}from'ckeditor5/src/utils';import{icons as _0x45d65b}from'ckeditor5/src/core';import{Model as _0x42005b,addListToDropdown as _0x51784b,createDropdown as _0x54cc92}from'ckeditor5/src/ui';import{getTranslation as _0x404330}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x53c2af,_0x42dfaa){const _0x5f3aaa=_0x53c2af['bindTemplate'],_0x2082ef=_0x53c2af[_0xd59c('0x12')],_0x417297=_0x54cc92(_0x2082ef);_0x417297['panelPosition']='sw';const _0x5b1165=function(_0x765917,_0x408a00){const _0x43dbcd=function(_0x4f83e0,_0x49dfad){const _0x2a83a6=_0x4f83e0[_0xd59c('0x12')],_0x16c520={'Compare\x20against\x20selected':_0x404330(_0x2a83a6,_0xd59c('0x3')),'Name\x20this\x20revision':_0x404330(_0x2a83a6,_0xd59c('0x11')),'Restore\x20this\x20revision':_0x404330(_0x2a83a6,'Restore\x20this\x20revision')};return _0x49dfad[_0xd59c('0x1a')](_0x13e59d=>{const _0x536032=_0x16c520[_0x13e59d[_0xd59c('0xa')]];return _0x536032&&_0x536032!==_0x13e59d['name']&&(_0x13e59d['name']=_0x536032),_0x13e59d;});}(_0x765917,_0x408a00),_0x32f5a6=new _0x209fae();for(const _0x581f05 of _0x43dbcd){const _0x4d1ac1={'type':'button','model':new _0x42005b({'label':_0x581f05[_0xd59c('0xa')],'class':_0x581f05['class'],'withText':!0x0,'_action':_0x581f05[_0xd59c('0x13')]})};_0x4d1ac1[_0xd59c('0x16')][_0xd59c('0x0')](_0xd59c('0xc'))['to'](_0x765917,_0xd59c('0xf'),_0x2a0781=>_0xd59c('0x2')!=typeof _0x581f05[_0xd59c('0xc')]||(!_0x2a0781||_0x581f05[_0xd59c('0xc')](_0x765917))),_0x32f5a6[_0xd59c('0x17')](_0x4d1ac1);}return _0x32f5a6;}(_0x53c2af,_0x42dfaa);return _0x53c2af[_0xd59c('0x0')](_0xd59c('0xf'))['to'](_0x417297,_0xd59c('0x5')),_0x417297[_0xd59c('0x14')][_0xd59c('0xd')]({'label':_0x404330(_0x2082ef,_0xd59c('0x15')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x45d65b['threeVerticalDots']}),_0x417297[_0xd59c('0x4')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5f3aaa['if'](_0xd59c('0xf'),_0xd59c('0x9'))]},'on':{'click':_0x5f3aaa['to'](_0x41cbf0=>_0x41cbf0[_0xd59c('0x18')]())}}),_0x417297['on'](_0xd59c('0x1'),_0x4e594b=>{_0x53c2af['isReady']&&'function'==typeof _0x4e594b[_0xd59c('0xb')][_0xd59c('0xe')]&&_0x4e594b[_0xd59c('0xb')][_0xd59c('0xe')](_0x53c2af);}),_0x51784b(_0x417297,_0x5b1165),_0x417297[_0xd59c('0x7')](_0x53c2af,'change:isActionsDropdownOpen',(_0x38ec7e,_0x7ec227,_0x4e278f)=>{if(_0x4e278f)for(const _0xaaf5bf of _0x417297['listView'][_0xd59c('0x8')]){const _0x41e361=_0xaaf5bf[_0xd59c('0x6')]['first'],_0x88853f=_0x42dfaa[_0xd59c('0x10')](_0x2cbdaf=>_0x2cbdaf['action']===_0x41e361[_0xd59c('0xe')])[_0xd59c('0x19')];_0xaaf5bf[_0xd59c('0x19')]=void 0x0===_0x88853f||_0x88853f(_0x53c2af);}}),_0x417297;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37c5=['ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','push','span','Revision\x20author','setTemplate','name','ck-revision-history-sidebar__revision-author__name'];(function(_0x19c3d5,_0x37c53e){const _0x1845c8=function(_0x98f303){while(--_0x98f303){_0x19c3d5['push'](_0x19c3d5['shift']());}};_0x1845c8(++_0x37c53e);}(_0x37c5,0xd0));const _0x1845=function(_0x19c3d5,_0x37c53e){_0x19c3d5=_0x19c3d5-0x0;let _0x1845c8=_0x37c5[_0x19c3d5];return _0x1845c8;};import{View as _0x49eda6,IconView as _0x3882a2}from'ckeditor5/src/ui';import{getTranslation as _0x4a316f}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0xaff7b1 from'../../../theme/icons/user.svg';export default class ti extends _0x49eda6{constructor(_0x8838e2,_0x43cbd1,_0x52c276){super(_0x8838e2);const _0x4859bf=new _0x3882a2();_0x4859bf['set']({'content':_0xaff7b1,'viewBox':'0\x200\x2011\x2010'});const _0x58d8b6=['ck',_0x1845('0x0')];_0x52c276&&_0x58d8b6[_0x1845('0x2')](_0x1845('0x1'));const _0x144bc6=[{'tag':_0x1845('0x3'),'attributes':{'class':['ck',_0x1845('0x7')],'title':_0x4a316f(_0x8838e2,_0x52c276?'Revision\x20creator':_0x1845('0x4'))},'children':[_0x4859bf,_0x43cbd1[_0x1845('0x6')]]}];this[_0x1845('0x5')]({'tag':'li','attributes':{'class':_0x58d8b6},'children':_0x144bc6});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1f77=['Revision\x20name','set','ck-revision-history-sidebar__revision-name'];(function(_0x56893f,_0x1f7736){var _0x261d8e=function(_0x455b8e){while(--_0x455b8e){_0x56893f['push'](_0x56893f['shift']());}};_0x261d8e(++_0x1f7736);}(_0x1f77,0x1cf));var _0x261d=function(_0x56893f,_0x1f7736){_0x56893f=_0x56893f-0x0;var _0x261d8e=_0x1f77[_0x56893f];return _0x261d8e;};import{LabeledFieldView as _0x4a99af}from'ckeditor5/src/ui';import{getTranslation as _0x211729}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x4a99af{constructor(_0x576e27,_0x24642b){super(_0x576e27,_0x24642b),this[_0x261d('0x0')]({'label':_0x211729(_0x576e27,_0x261d('0x2'))}),this['extendTemplate']({'tag':'span','attributes':{'class':[_0x261d('0x1')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58db=['span','creator','ck-reset','bind','220','filter','closest','extendTemplate','name','revisionActionsView','authors','isConfirm','uiLanguage','isActionsDropdownOpen','unhighlight','fieldView','setName','srcElement','element','map','ck-revision-history-sidebar__revision_selected','render','isSelected','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','createdAt','placeholder','_createdAtFormatted','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision','div','unshift','bindTemplate','deselect','fire','isEnabled','set','revisionNameView','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision_highlighted','highlight','value','isHighlighted','length','listenTo'];(function(_0x12303c,_0x58db2f){const _0x2de16d=function(_0x3e6ffa){while(--_0x3e6ffa){_0x12303c['push'](_0x12303c['shift']());}};_0x2de16d(++_0x58db2f);}(_0x58db,0xb0));const _0x2de1=function(_0x12303c,_0x58db2f){_0x12303c=_0x12303c-0x0;let _0x2de16d=_0x58db[_0x12303c];return _0x2de16d;};import{View as _0x154b50,createLabeledInputText as _0xfbeaac}from'ckeditor5/src/ui';import{ConfirmMixin as _0x241e67}from'ckeditor5-collaboration/src/collaboration-core';import _0x8b4d76 from'./revisionnameview';import _0x50e813 from'./revisionauthorview';import{dateToPrettyFormat as _0x4aeb63}from'./utils';import{createActionsDropdownView as _0x31d8c6}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x241e67(_0x154b50){constructor(_0x4b500f,_0x4a8d1c,_0x58f276){super(_0x4b500f);const _0x252332=this[_0x2de1('0x29')],_0x7a5ae6=function(_0x11aef8,_0x49310b){const _0x4efa2e=Array['from'](_0x49310b[_0x2de1('0x12')])[_0x2de1('0xd')](_0x1c78f3=>_0x1c78f3!=_0x49310b[_0x2de1('0x9')]);return _0x49310b[_0x2de1('0x9')]&&_0x4efa2e[_0x2de1('0x28')](_0x49310b[_0x2de1('0x9')]),_0x4efa2e[_0x2de1('0x1b')](_0x1e1e78=>new _0x50e813(_0x11aef8,_0x1e1e78,_0x1e1e78==_0x49310b[_0x2de1('0x9')]));}(_0x4b500f,_0x4a8d1c);this['id']=_0x4a8d1c['id'],this['_revision']=_0x4a8d1c,this[_0x2de1('0xb')](_0x2de1('0x10'),_0x2de1('0x22'))['to'](_0x4a8d1c),this[_0x2de1('0xb')](_0x2de1('0x24'))['to'](this,'createdAt',_0x451d05=>_0x451d05?_0x4aeb63(_0x4b500f[_0x2de1('0x14')],_0x451d05):void 0x0),this['set']('isSelected',!0x1),this[_0x2de1('0x2d')]('isHighlighted',!0x1),this[_0x2de1('0x2d')](_0x2de1('0x15'),!0x1),this[_0x2de1('0x2d')]('isReady',!0x1),this['set'](_0x2de1('0x2c'),!0x1),this['revisionNameView']=new _0x8b4d76(_0x4b500f,_0xfbeaac),this[_0x2de1('0x0')][_0x2de1('0x17')][_0x2de1('0xf')]({'attributes':{'maxlength':_0x2de1('0xc')}}),this[_0x2de1('0x0')]['fieldView']['bind'](_0x2de1('0x4'),_0x2de1('0x23'))['to'](this,_0x2de1('0x10'),_0x2de1('0x24')),this['revisionNameView'][_0x2de1('0xb')](_0x2de1('0x2c'))['to'](this,_0x2de1('0x1e'),this,_0x2de1('0x2c'),(_0x401abe,_0x1905b3)=>_0x401abe&&_0x1905b3),this['revisionActionsView']=_0x58f276&&_0x58f276[_0x2de1('0x6')]?_0x31d8c6(this,_0x58f276):'',this[_0x2de1('0x11')]&&this['revisionActionsView'][_0x2de1('0xb')](_0x2de1('0x2c'))['to'](this),this['setTemplate']({'tag':_0x2de1('0x27'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x252332['if'](_0x2de1('0x13'),_0x2de1('0x21'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x2de1('0xa'),_0x2de1('0x26'),_0x252332['if'](_0x2de1('0x2c'),'ck-disabled',_0x53e742=>!_0x53e742),_0x252332['if'](_0x2de1('0x1e'),_0x2de1('0x1c')),_0x252332['if'](_0x2de1('0x5'),_0x2de1('0x2')),_0x252332['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x2de1('0x0')],{'tag':_0x2de1('0x8'),'attributes':{'class':['ck',_0x2de1('0x20')]},'children':[{'text':_0x252332['to']('_createdAtFormatted')}]},{'tag':_0x2de1('0x27'),'attributes':{'class':['ck',_0x2de1('0x1')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2de1('0x1f')]},'children':_0x7a5ae6}]},this['revisionActionsView']],'on':{'click':_0x252332['to'](_0x523a15=>{_0x523a15[_0x2de1('0x19')][_0x2de1('0xe')](_0x2de1('0x25'))||this['isReady']&&this[_0x2de1('0x2c')]&&this[_0x2de1('0x2b')]('select',{'id':this['id']});})}}]});}[_0x2de1('0x1d')](){super[_0x2de1('0x1d')]();const _0x2964a4=this[_0x2de1('0x0')][_0x2de1('0x17')][_0x2de1('0x1a')];this[_0x2de1('0x7')](_0x2964a4,'change',()=>{this[_0x2de1('0x2b')](_0x2de1('0x18'),{'id':this['id'],'name':_0x2964a4['value']});});}['select'](){this[_0x2de1('0x1e')]=!0x0;}[_0x2de1('0x2a')](){this['isSelected']=!0x1;}[_0x2de1('0x3')](){this[_0x2de1('0x5')]=!0x0;}[_0x2de1('0x16')](){this[_0x2de1('0x5')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d43=['setTemplate','toggle','ck-revision-history-sidebar__subrevision-collapser_collapsed','_isCollapsed','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','click','ck-revision-history-sidebar__subrevision-collapser','span','button','ck-hidden'];(function(_0x130af4,_0x2d43cd){const _0x4b13ef=function(_0x23bf53){while(--_0x23bf53){_0x130af4['push'](_0x130af4['shift']());}};_0x4b13ef(++_0x2d43cd);}(_0x2d43,0xb4));const _0x4b13=function(_0x130af4,_0x2d43cd){_0x130af4=_0x130af4-0x0;let _0x4b13ef=_0x2d43[_0x130af4];return _0x4b13ef;};import{View as _0x3e7bbb}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x3e7bbb{constructor(_0x24051b){super(_0x24051b);const _0x3a5d0a=this[_0x4b13('0x6')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4b13('0x0')]({'tag':_0x4b13('0x9'),'attributes':{'class':['ck',_0x4b13('0x8'),_0x3a5d0a['if'](_0x4b13('0x4'),_0x4b13('0xb'),_0x1740a4=>!_0x1740a4),_0x3a5d0a['if'](_0x4b13('0x3'),_0x4b13('0x2'))],'role':_0x4b13('0xa'),'aria-pressed':_0x3a5d0a['to'](_0x4b13('0x3'),_0xe71614=>_0xe71614?'false':'true')},'children':[{'tag':_0x4b13('0x9'),'attributes':{'class':['ck',_0x4b13('0x5')]}}],'on':{'click':_0x3a5d0a['to'](_0x4b13('0x7'))}});}[_0x4b13('0x1')](){this[_0x4b13('0x3')]=!this[_0x4b13('0x3')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x148e=['creator','createdAt','span','uiLanguage','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__subrevision','set','deselect','isSelected','ck-reset','bindTemplate','ck-revision-history-sidebar__revision','select','fire','bind','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-authors','_createdAtFormatted','_parentRevisionId','setTemplate'];(function(_0x3171ae,_0x148e39){const _0x2f91da=function(_0x2d810a){while(--_0x2d810a){_0x3171ae['push'](_0x3171ae['shift']());}};_0x2f91da(++_0x148e39);}(_0x148e,0x133));const _0x2f91=function(_0x3171ae,_0x148e39){_0x3171ae=_0x3171ae-0x0;let _0x2f91da=_0x148e[_0x3171ae];return _0x2f91da;};import{View as _0x235159}from'ckeditor5/src/ui';import _0x2f4d31 from'./revisionauthorview';import{dateToPrettyFormat as _0x17805d}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x235159{constructor(_0x2560de,_0x5ca1b7,_0x450b4a){super(_0x2560de);const _0x38e11c=this[_0x2f91('0x3')];this['id']=_0x5ca1b7['id'],this['bind'](_0x2f91('0xe'))['to'](_0x5ca1b7),this[_0x2f91('0x13')](_0x2f91('0x1'),!0x1),this[_0x2f91('0x7')]('_createdAtFormatted')['to'](this,_0x2f91('0xe'),_0x1a6ac5=>_0x1a6ac5?_0x17805d(_0x2560de[_0x2f91('0x10')],_0x1a6ac5):void 0x0),this[_0x2f91('0xb')]=_0x450b4a,this[_0x2f91('0xc')]({'tag':'div','attributes':{'class':['ck',_0x2f91('0x2'),_0x2f91('0x4'),_0x2f91('0x12'),_0x38e11c['if'](_0x2f91('0x1'),_0x2f91('0x8'))]},'children':[{'tag':_0x2f91('0xf'),'attributes':{'class':['ck',_0x2f91('0x11')]},'children':[{'text':_0x38e11c['to'](_0x2f91('0xa'))}]},{'tag':'ul','attributes':{'class':['ck',_0x2f91('0x9')]},'children':[new _0x2f4d31(_0x2560de,_0x5ca1b7[_0x2f91('0xd')],!0x0)]}],'on':{'click':_0x38e11c['to'](this['select'][_0x2f91('0x7')](this))}});}[_0x2f91('0x5')](){this['isSelected']=!0x0,this[_0x2f91('0x6')](_0x2f91('0x5'),{'parentId':this[_0x2f91('0xb')]});}[_0x2f91('0x0')](){this[_0x2f91('0x1')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3236=['numeric','long','toLocaleTimeString','toLocaleDateString'];(function(_0x417d2d,_0x323652){var _0x1ba839=function(_0x1b4edc){while(--_0x1b4edc){_0x417d2d['push'](_0x417d2d['shift']());}};_0x1ba839(++_0x323652);}(_0x3236,0x177));var _0x1ba8=function(_0x417d2d,_0x323652){_0x417d2d=_0x417d2d-0x0;var _0x1ba839=_0x3236[_0x417d2d];return _0x1ba839;};export function dateToPrettyFormat(_0x108158,_0x4cc43a){return _0x4cc43a[_0x1ba8('0x0')](_0x108158,{'month':_0x1ba8('0x2'),'day':'numeric'})+',\x20'+_0x4cc43a[_0x1ba8('0x3')](_0x108158,{'hour':_0x1ba8('0x1'),'minute':_0x1ba8('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x444c=['revisionNameInputView','add','stopPropagation','tab','_createButton','ck-responsive-form','extendTemplate','cancel','check','revisionNameInputValue','render','execute','shift\x20+\x20tab','listenTo','ck-button-save','220','forEach','_focusCycler','reset','element','label','saveButtonView','_focusables','input','set','type','value','focusTracker','ck-button-cancel','Cancel','cancelButtonView','trim','arrowright','setTemplate','locale','revisionName','_createRevisionNameInput','arrowleft','fieldView','keystrokes'];(function(_0x2f86d2,_0x444c5f){const _0xc7f924=function(_0x2a3439){while(--_0x2a3439){_0x2f86d2['push'](_0x2f86d2['shift']());}};_0xc7f924(++_0x444c5f);}(_0x444c,0x12b));const _0xc7f9=function(_0x2f86d2,_0x444c5f){_0x2f86d2=_0x2f86d2-0x0;let _0xc7f924=_0x444c[_0x2f86d2];return _0xc7f924;};import{icons as _0x367dd8}from'ckeditor5/src/core';import{ButtonView as _0x1491e1,FocusCycler as _0x12e3db,LabeledFieldView as _0x51a4e0,View as _0x328413,ViewCollection as _0x23690a,createLabeledInputText as _0x1063f3,injectCssTransitionDisabler as _0x59c4e0,submitHandler as _0x10eb0}from'ckeditor5/src/ui';import{FocusTracker as _0x375b5c,KeystrokeHandler as _0x84d8c7}from'ckeditor5/src/utils';import{getTranslation as _0x4e0a4a}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x328413{constructor(_0x1a05fb){super(_0x1a05fb),this[_0xc7f9('0x8')]=new _0x375b5c(),this[_0xc7f9('0x14')]=new _0x84d8c7(),this[_0xc7f9('0x5')](_0xc7f9('0x1e'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this['saveButtonView']=this[_0xc7f9('0x19')](_0x4e0a4a(_0x1a05fb,'Save'),_0x367dd8[_0xc7f9('0x1d')],_0xc7f9('0x23')),this[_0xc7f9('0x2')][_0xc7f9('0x6')]='submit',this[_0xc7f9('0xb')]=this[_0xc7f9('0x19')](_0x4e0a4a(_0x1a05fb,_0xc7f9('0xa')),_0x367dd8[_0xc7f9('0x1c')],_0xc7f9('0x9'),'cancel'),this['_focusables']=new _0x23690a(),this[_0xc7f9('0x26')]=new _0x12e3db({'focusables':this[_0xc7f9('0x3')],'focusTracker':this[_0xc7f9('0x8')],'keystrokeHandler':this[_0xc7f9('0x14')],'actions':{'focusPrevious':_0xc7f9('0x21'),'focusNext':_0xc7f9('0x18')}}),this[_0xc7f9('0xe')]({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form',_0xc7f9('0x1a')],'tabindex':'-1'},'children':[this[_0xc7f9('0x15')],this['saveButtonView'],this[_0xc7f9('0xb')]]}),_0x59c4e0(this);}[_0xc7f9('0x1f')](){super[_0xc7f9('0x1f')](),_0x10eb0({'view':this}),([this[_0xc7f9('0x15')],this[_0xc7f9('0x2')],this[_0xc7f9('0xb')]][_0xc7f9('0x25')](_0x2d6957=>{this[_0xc7f9('0x3')][_0xc7f9('0x16')](_0x2d6957),this[_0xc7f9('0x8')]['add'](_0x2d6957['element']);}),this[_0xc7f9('0x14')][_0xc7f9('0x22')](this[_0xc7f9('0x0')]));const _0x243915=_0x20916e=>_0x20916e[_0xc7f9('0x17')]();this[_0xc7f9('0x14')][_0xc7f9('0x5')](_0xc7f9('0xd'),_0x243915),this[_0xc7f9('0x14')]['set'](_0xc7f9('0x12'),_0x243915),this[_0xc7f9('0x14')][_0xc7f9('0x5')]('arrowup',_0x243915),this[_0xc7f9('0x14')][_0xc7f9('0x5')]('arrowdown',_0x243915);}['focus'](){this[_0xc7f9('0x26')]['focusFirst']();}get[_0xc7f9('0x10')](){return this[_0xc7f9('0x15')][_0xc7f9('0x13')][_0xc7f9('0x0')]['value']['trim']();}set[_0xc7f9('0x10')](_0x434dd6){this[_0xc7f9('0x15')][_0xc7f9('0x13')]['element'][_0xc7f9('0x7')]=_0x434dd6['trim']();}[_0xc7f9('0x27')](){this[_0xc7f9('0x15')][_0xc7f9('0x13')][_0xc7f9('0x0')][_0xc7f9('0x7')]='';}[_0xc7f9('0x11')](){const _0x304453=new _0x51a4e0(this[_0xc7f9('0xf')],_0x1063f3),_0x1b87d3=_0x304453[_0xc7f9('0x13')];return _0x1b87d3[_0xc7f9('0x1b')]({'attributes':{'maxlength':_0xc7f9('0x24')}}),_0x304453[_0xc7f9('0x1')]=_0x4e0a4a(this['locale'],'Name\x20of\x20the\x20revision\x20(optional)'),_0x1b87d3['on'](_0xc7f9('0x4'),()=>{this[_0xc7f9('0x1e')]=_0x1b87d3[_0xc7f9('0x0')][_0xc7f9('0x7')][_0xc7f9('0xc')]();}),_0x304453;}[_0xc7f9('0x19')](_0x429f33,_0xcbd6e,_0x2157ec,_0x3f9f91){const _0x1c898a=new _0x1491e1(this[_0xc7f9('0xf')]);return _0x1c898a[_0xc7f9('0x5')]({'label':_0x429f33,'icon':_0xcbd6e,'tooltip':!0x0}),_0x1c898a[_0xc7f9('0x1b')]({'attributes':{'class':_0x2157ec}}),_0x3f9f91&&_0x1c898a['delegate'](_0xc7f9('0x20'))['to'](this,_0x3f9f91),_0x1c898a;}}
|