@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231031.0 → 0.0.0-nightly-20231101.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 _0x6022=['start','suggestion:','pluginName','consume','isContent','compare','bindElementToMarker','revision-start','isCollapsed','view','plugins','ck-revision-history-root-remove','consumable','delete','revision-end','_update','endIndex','selection','stop','domConverter','removeMarker','addMarker:revision-suggestion:insertion','_initInteractions','target','add','isOnRoot','getRevisionRootsAttributes','destroy','getDomRoot','isEnabled','done','modelRange','editing','ck-suggestion-marker--active','high','addRevision','attributesAfter','enqueueChange','_getChangeFromId','toData','nextPosition','activeChange','conversion','isRemoveSuggestion','change:isEnabled','isObject','-new','shift','markerNameToElements','_markMarkers','_processTape','isAtStart','length','restoreRevisionCallback','hasAttribute','repository','collaboration.channelId','vid','abs','_cleanUp','getWalker','_markMismatchedRemovedTags','clear','all','end','revision','diff','distance','low','getAttributes','getRevision','parent','affectsData','execute','_data','vid_start','isBefore','_removeMissingPairs','reconvertMarker','WidgetToolbarRepository','previousPosition','init','domEvent','elementStart','showNextChange','data','isAddSuggestion','get','name','bind','revision:','updatePosition','findIndex','setAttribute','_fixObsoleteTags','getClientRects','parse','map','authors','roots','elementToAttribute','from','highest','deletion','activeView','_setChanges','refresh','addMarker:revision-suggestion:deletion','_getDiff','change:numberOfChanges','data-change-id','createRangeIn','revision-viewer','createPositionBefore','startIndex','markerName','revisionHistoryAttachChange','getChild','_makeModelFromViewString','then','span','text','createPositionFromPath','getRootNames','string','remove','ck-suggestion-preview-marker-','push','sort','isEqual','isInline','mouseover','forEach','concat','addHighlight','isAtEnd','userId','toViewRange','commands','diffData','side','_changeView','flat','viewItem','mapper','isBlock','top','markerToData','addRoot','getRoot','isIncorrect','next','includes','nextSibling','createRevision','writer','_getViewForChange','adapter','item','changeId','markerRange','_cleanMarkers','left','slice','forceDisabled','locale','suggestion','children','change:activeView','forward','isAfter','_refreshStartEndIndex','useFillerType','enableReadOnlyMode','range','keys','_makeTape','_markInsertions','attributesBefore','revisionHistoryLabel','_sortAndFilterDiffChanges','filter','_changeIdToChange','_makeModelFromTape','level','getRevisionData','newRevisionId','model','comment','config','uiElement','processor','marked','pairId','createRange','type','_revisions','loadRevisionData','unbindElementFromMarkerName','_findChangeIdFromDomTarget','insertion','document','oldRevisionId','schema','_removeRevisionMarkers','attachChange','toViewPosition','_setConversion','deletions','ck-editor__editable__overlay','addClass','attributes','vid_end','default','ck-revision-history-root--active','dataDowncast','ck-suggestion-marker-split','RevisionViewer','createUIElement','getCustomProperty','toModel','return','getAttribute','test','code','index','resolve','_balloon','addRevisionData','removeMarker:revision-suggestion','softBreak','change','addMarker:revision','elementEnd','markerToHighlight','changes','wrap','set','catch','split','rootName','editor','splice','dataToMarker','getIndex','_markSuggestions','RevisionsRepository','revisionHistory','_threeWayMerge','showPreviousChange','isAttached','isLimit','_setDistance','_getViewObj','ck-suggestion-preview-marker','_activeViewTarget','toViewElement','editingDowncast','offsetSize','insertions','insert','upcast','isRemoved','error','_getRevisionsRange','markers','revision-suggestion','markersStart','isSuggestion','detachRoot','nodeAfter','markersEnd','startsWith','unshift','ck-revision-history-root-','_joinTapes','merge','removeClass','isAdded','first','ck-revision-history-root-add','isReady','POSITIVE_INFINITY','_step','change:activeChange','getItems','for','bottom','_appendChild','backward','restoreRevision','_removeUnsupportedChanges','downcastDispatcher','maxOffset','listenTo','isNavigationMode','pop','has','ck-suggestion-marker-'];(function(_0x5b2242,_0x602299){const _0x4fdcd6=function(_0x3e080c){while(--_0x3e080c){_0x5b2242['push'](_0x5b2242['shift']());}};_0x4fdcd6(++_0x602299);}(_0x6022,0x1e3));const _0x4fdc=function(_0x5b2242,_0x602299){_0x5b2242=_0x5b2242-0x0;let _0x4fdcd6=_0x6022[_0x5b2242];return _0x4fdcd6;};import{Plugin as _0x5e2e6f,Command as _0x27fe84}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2bdbf6}from'ckeditor5/src/utils';import{ContextualBalloon as _0x47e707}from'ckeditor5/src/ui';import{DocumentFragment as _0x49f962,Element as _0x2ef2e2,Text as _0xc1e2c4,ViewDocumentFragment as _0x1f8df6,ViewText as _0x5790d9,ViewElement as _0x36d1c7,ViewContainerElement as _0x1948eb,ViewAttributeElement as _0x449d21,ViewEmptyElement as _0x5090a3,ViewRawElement as _0x1b1709,ViewUIElement as _0x293900}from'ckeditor5/src/engine';import{Users as _0x5dbed2,getMarkerDomElement as _0xa79505}from'ckeditor5-collaboration/src/collaboration-core';import _0x36d1ad from'./ui/revisionviewer/changedetailsview';import _0x101b76 from'./revisionsrepository';import _0x578351 from'./changeitem';import{default as _0x31a7c5}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4f80a8}from'lodash-es';const tt={'c':_0x1948eb,'a':_0x449d21,'e':_0x5090a3,'r':_0x1b1709,'u':_0x293900};export default class d extends _0x5e2e6f{static get[_0x4fdc('0x75')](){return _0x4fdc('0x21');}static get['requires'](){return[_0x5dbed2,_0x47e707,_0x101b76];}constructor(_0x79e2cd){super(_0x79e2cd),this[_0x4fdc('0xaa')]=this[_0x4fdc('0x39')][_0x4fdc('0x7d')][_0x4fdc('0xca')](_0x4fdc('0x3e')),this['set'](_0x4fdc('0x9c'),null),this[_0x4fdc('0x35')](_0x4fdc('0xdb'),null),this[_0x4fdc('0x47')]=null,this[_0x4fdc('0x35')](_0x4fdc('0xb5'),null),this[_0x4fdc('0x35')](_0x4fdc('0x61'),!0x1),this[_0x4fdc('0x35')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5d72d2,_0xb3b678,_0x1a0bb3)=>{this[_0x4fdc('0x9c')]=null,this[_0x4fdc('0xdb')]=null,this[_0x4fdc('0x39')][_0x4fdc('0x93')]['view']['change'](_0x60e24b=>{for(const _0x2006e7 of this[_0x4fdc('0x39')][_0x4fdc('0x93')][_0x4fdc('0x7c')][_0x4fdc('0x11')][_0x4fdc('0xd6')])_0x1a0bb3?_0x60e24b['removeClass'](_0x4fdc('0x19'),_0x2006e7):_0x60e24b[_0x4fdc('0x1a')](_0x4fdc('0x19'),_0x2006e7);});}),this[_0x4fdc('0xcc')](_0x4fdc('0x6f'))['to'](this,'activeChange',_0x35c394=>null!==_0x35c394),this[_0x4fdc('0xcc')]('currentChangeNumber')['to'](this,_0x4fdc('0x61'),this,_0x4fdc('0xb5'),this,'activeChange',(_0x3c9504,_0x25b8a8,_0x15f57b)=>_0x3c9504&&_0x15f57b?_0x25b8a8[_0x4fdc('0x33')][_0x4fdc('0x3c')](_0x15f57b):0x0),this[_0x4fdc('0xcc')]('numberOfChanges')['to'](this,_0x4fdc('0x61'),this,_0x4fdc('0xb5'),(_0x38b53d,_0x37818b)=>_0x38b53d?_0x37818b[_0x4fdc('0x33')][_0x4fdc('0xa7')]:0x0),this[_0x4fdc('0x100')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this[_0x4fdc('0x2b')]=this[_0x4fdc('0x39')]['plugins']['get'](_0x47e707);}[_0x4fdc('0xc4')](){const _0x395a1d=this['editor'],_0x33e352=new ShowChangeCommand(_0x395a1d,{'direction':_0x4fdc('0x69')}),_0xa18672=new ShowChangeCommand(_0x395a1d,{'direction':_0x4fdc('0x11c')});(_0x395a1d[_0x4fdc('0xfd')][_0x4fdc('0x8b')](_0x4fdc('0x41'),_0x33e352),_0x395a1d[_0x4fdc('0xfd')][_0x4fdc('0x8b')](_0x4fdc('0xc7'),_0xa18672),_0x395a1d['commands'][_0x4fdc('0x8b')](_0x4fdc('0x6a'),new RestoreRevisionCommand(_0x395a1d)),this['on'](_0x4fdc('0xe0'),()=>{_0x33e352[_0x4fdc('0xdd')](),_0xa18672[_0x4fdc('0xdd')]();}),this[_0x4fdc('0x17')](),this[_0x4fdc('0x89')](),_0x395a1d[_0x4fdc('0x120')](_0x4fdc('0xe3')),_0x395a1d['plugins']['has'](_0x4fdc('0xc2')))&&_0x395a1d[_0x4fdc('0x7d')][_0x4fdc('0xca')](_0x4fdc('0xc2'))[_0x4fdc('0x117')](_0x4fdc('0xe3'));}async[_0x4fdc('0x1')](_0x4d9a27){await this['loadRevisionData'](_0x4d9a27);const _0x49a2e5={};for(const _0x55cb3c in _0x4d9a27[_0x4fdc('0xfe')]){if(_0x4d9a27[_0x4fdc('0xfe')][_0x55cb3c][_0x4fdc('0x15')]&&!_0x4d9a27['diffData'][_0x55cb3c][_0x4fdc('0x15')][_0x4fdc('0x42')])continue;const _0x3ac860=this[_0x4fdc('0x14')](JSON[_0x4fdc('0xd3')](_0x4d9a27[_0x4fdc('0xfe')][_0x55cb3c][_0x4fdc('0x4b')])),_0x5850b5=this['editor'][_0x4fdc('0x93')][_0x4fdc('0x7c')]['document'],_0x1f0991=new _0x1f8df6(_0x5850b5,_0x3ac860[_0x4fdc('0xd4')](_0x3ba45e=>this[_0x4fdc('0x45')](_0x3ba45e)));this['editor'][_0x4fdc('0xc8')][_0x4fdc('0x7')]['useFillerType'](_0x4fdc('0x8')),_0x49a2e5[_0x55cb3c]=this['editor'][_0x4fdc('0xc8')][_0x4fdc('0x7')][_0x4fdc('0x9a')](_0x1f0991),this[_0x4fdc('0x39')][_0x4fdc('0xc8')][_0x4fdc('0x7')][_0x4fdc('0x11f')](_0x4fdc('0x1d'));}return _0x49a2e5;}async[_0x4fdc('0x8d')](_0x5dfd85){await this['loadRevisionData'](_0x5dfd85);const _0x4536f9={};for(const _0x28fda9 in _0x5dfd85[_0x4fdc('0xfe')])_0x5dfd85[_0x4fdc('0xfe')][_0x28fda9][_0x4fdc('0x15')]&&!_0x5dfd85[_0x4fdc('0xfe')][_0x28fda9][_0x4fdc('0x15')][_0x4fdc('0x42')]||(_0x4536f9[_0x28fda9]=_0x5dfd85[_0x4fdc('0xfe')][_0x28fda9][_0x4fdc('0x97')]||{});return _0x4536f9;}[_0x4fdc('0x14')](_0x4f9f38){return(_0x4f9f38=_0x4f9f38['filter'](_0x327cca=>!_0x327cca[_0x4fdc('0xcb')]||_0x4fdc('0x7a')!==_0x327cca['name']&&_0x4fdc('0x81')!==_0x327cca['name']))[_0x4fdc('0xf7')](_0x2fa5a2=>{_0x4fdc('0xef')!=typeof _0x2fa5a2&&(_0x2fa5a2[_0x4fdc('0x11a')]=this[_0x4fdc('0x14')](_0x2fa5a2[_0x4fdc('0x11a')]),_0x2fa5a2['attributes']=_0x2fa5a2[_0x4fdc('0x1b')][_0x4fdc('0x128')](_0x12e077=>!_0x12e077[0x0][_0x4fdc('0x58')]('data-revision-')));}),_0x4f9f38;}async[_0x4fdc('0x78')](_0x1f9686,_0x40ed16,_0x2ee99f=!0x1){if(!this['isEnabled'])return;const _0x42642c=this[_0x4fdc('0xb5')],_0x45486e=this[_0x4fdc('0xaa')],_0x35ddf5=_0x4fdc('0xef')==typeof _0x1f9686?_0x45486e['getRevision'](_0x1f9686):_0x1f9686,_0x53ec9a=_0x4fdc('0xef')==typeof _0x40ed16?_0x45486e[_0x4fdc('0xb9')](_0x40ed16):_0x40ed16,_0xd271fe=_0x35ddf5['id'],_0x27ccb8=_0x53ec9a?_0x53ec9a['id']:null;if(!_0x2ee99f&&this[_0x4fdc('0xb5')]&&this[_0x4fdc('0xb5')][_0x4fdc('0x2')]===_0xd271fe&&this['diff'][_0x4fdc('0x12')]===_0x27ccb8)return Promise[_0x4fdc('0x2a')]();this[_0x4fdc('0x61')]=!0x1,this[_0x4fdc('0xdb')]=null,this['activeChange']=null,this[_0x4fdc('0xb5')]=new _0x31a7c5(_0xd271fe,_0x27ccb8);const _0x4ad73b=this[_0x4fdc('0x50')](_0x35ddf5,_0x53ec9a,!0x0)[_0x4fdc('0xd4')](_0x5e2522=>this['loadRevisionData'](_0x5e2522));return _0x4ad73b[_0x4fdc('0xf2')](new Promise(_0xb52c76=>{setTimeout(_0xb52c76,0x14);})),Promise[_0x4fdc('0xb2')](_0x4ad73b)[_0x4fdc('0xea')](()=>{if(!this[_0x4fdc('0x90')])return;this[_0x4fdc('0xae')]();const _0x4205fa=this['_getDiff'](_0xd271fe,_0x27ccb8);for(const _0x8c7832 of _0x4205fa['changes'])this[_0x4fdc('0x129')]['set'](_0x8c7832['id'],_0x8c7832);this['editor'][_0x4fdc('0x3')][_0x4fdc('0x98')]({'isUndoable':!0x1},_0x5b3e19=>{for(const _0xcc307f of this['editor']['model'][_0x4fdc('0x11')]['getRootNames']())_0x5b3e19[_0x4fdc('0x55')](_0xcc307f);for(const _0x363948 of Object[_0x4fdc('0x122')](_0x4205fa[_0x4fdc('0x3')])){const _0x1f473f=_0x5b3e19[_0x4fdc('0x107')](_0x363948);for(const _0x405d9f of Object['keys'](_0x4205fa[_0x4fdc('0x1b')][_0x363948]))_0x5b3e19[_0x4fdc('0xd0')](_0x405d9f,_0x4205fa[_0x4fdc('0x1b')][_0x363948][_0x405d9f],_0x1f473f);_0x5b3e19[_0x4fdc('0x4c')](_0x4205fa['model'][_0x363948],_0x1f473f,0x0);}}),this['diff'][_0x4fdc('0xdc')](this[_0x4fdc('0x127')](_0x4205fa[_0x4fdc('0x33')])),this[_0x4fdc('0x61')]=!0x0;})[_0x4fdc('0x36')](_0xf855a7=>{console[_0x4fdc('0x4f')](_0xf855a7),this['_cleanUp'](),_0x42642c&&(this[_0x4fdc('0xb5')]=_0x42642c),this[_0x4fdc('0x61')]=!0x0;});}[_0x4fdc('0x2c')](_0x4cbc0d,_0x250e49){const _0x494b75=this[_0x4fdc('0xaa')][_0x4fdc('0x10d')](_0x4cbc0d);return _0x494b75['on'](_0x4fdc('0x82'),(_0x61d9c7,_0x11e72a,_0x3f631b)=>_0x250e49(_0x11e72a,_0x3f631b,_0x494b75)),this[_0x4fdc('0xaa')][_0x4fdc('0x96')](_0x494b75),_0x494b75;}[_0x4fdc('0xd')](_0x148346){if(!_0x148346||_0x148346[_0x4fdc('0xfe')])return Promise[_0x4fdc('0x2a')]();{const _0x3288a9=this[_0x4fdc('0x39')][_0x4fdc('0x5')]['get'](_0x4fdc('0xab'));return this[_0x4fdc('0x110')][_0x4fdc('0xb9')]({'channelId':_0x3288a9,'revisionId':_0x148346['id']})[_0x4fdc('0xea')](_0x2dd2e3=>{_0x148346[_0x4fdc('0x82')]({'diffData':_0x2dd2e3[_0x4fdc('0xfe')]},!0x0);});}}[_0x4fdc('0xae')](){this['activeChange']=null,this[_0x4fdc('0x114')](),this['_changeView']&&this[_0x4fdc('0x100')][_0x4fdc('0x8e')](),this[_0x4fdc('0x100')]=null,this[_0x4fdc('0x129')][_0x4fdc('0xb1')](),this[_0x4fdc('0x39')][_0x4fdc('0x3')][_0x4fdc('0x98')]({'isUndoable':!0x1},_0xeba8d8=>{for(const _0x41ed40 of this[_0x4fdc('0x39')][_0x4fdc('0x3')]['document'][_0x4fdc('0xee')]())_0xeba8d8[_0x4fdc('0x55')](_0x41ed40);});}[_0x4fdc('0x127')](_0x16f65a){const _0x134022=[],_0x28bbc2=new Map();for(const _0x3cb0a7 of this[_0x4fdc('0x39')][_0x4fdc('0x3')][_0x4fdc('0x11')][_0x4fdc('0xee')]()){const _0x12f4dc=this[_0x4fdc('0x39')][_0x4fdc('0x93')]['view'][_0x4fdc('0x8f')](_0x3cb0a7);if(!_0x12f4dc)continue;const _0x3511ba=_0x12f4dc['getClientRects']()['item'](0x0);_0x3511ba&&(_0x134022[_0x4fdc('0xf2')](_0x3cb0a7),_0x28bbc2[_0x4fdc('0x35')](_0x3cb0a7,_0x3511ba));}return _0x134022[_0x4fdc('0xf3')]((_0x229069,_0x5eea0b)=>{const _0x2044a7=_0x28bbc2[_0x4fdc('0xca')](_0x229069),_0x502a86=_0x28bbc2['get'](_0x5eea0b);return _0x2044a7['y']-_0x502a86['y']||_0x2044a7['x']-_0x502a86['x'];}),(_0x16f65a=_0x16f65a[_0x4fdc('0x128')](_0x97068e=>_0x134022['includes'](_0x97068e['rootName'])))[_0x4fdc('0xf3')]((_0x26b25e,_0x6d4e8b)=>_0x134022['indexOf'](_0x26b25e['rootName'])-_0x134022['indexOf'](_0x6d4e8b[_0x4fdc('0x38')])),_0x16f65a;}['_makeTape'](_0x3d61fa){const _0x571d37=Array[_0x4fdc('0xd8')](_0x3d61fa[_0x4fdc('0x51')])[_0x4fdc('0x128')](([_0x2f6d28,_0x13685c])=>_0x2f6d28[_0x4fdc('0x58')](_0x4fdc('0xcd'))&&!_0x13685c[_0x4fdc('0x7b')]),_0x401d48=Array[_0x4fdc('0xd8')](this[_0x4fdc('0x39')][_0x4fdc('0x3')][_0x4fdc('0xe2')](_0x3d61fa)[_0x4fdc('0xaf')]({'singleCharacters':!0x0}));if(0x0!=_0x571d37[_0x4fdc('0xa7')])for(const _0x835d2f of _0x401d48){const [_0x1edb8f,_0x5a249e]=_0x571d37[0x0],[,_0xf6753a,_0x1c0e70]=_0x1edb8f[_0x4fdc('0x37')](':');if(_0x5a249e[_0x4fdc('0xb3')][_0x4fdc('0xf4')](_0x835d2f['nextPosition'])&&_0x571d37['shift'](),(_0x835d2f['previousPosition'][_0x4fdc('0xf4')](_0x5a249e[_0x4fdc('0x73')])||_0x835d2f[_0x4fdc('0xc3')][_0x4fdc('0x11d')](_0x5a249e['start']))&&(_0x4fdc('0x10')==_0xf6753a?_0x835d2f['isAdded']={'userId':_0x1c0e70}:'deletion'==_0xf6753a&&(_0x835d2f[_0x4fdc('0x4e')]={'userId':_0x1c0e70})),0x0==_0x571d37['length'])break;}return _0x401d48;}[_0x4fdc('0x11e')](_0x2af6cf){const _0x3b941e=new Map();for(let _0x6c0479=0x0;_0x6c0479<_0x2af6cf['length'];_0x6c0479++)'text'===_0x2af6cf[_0x6c0479][_0x4fdc('0xb')]?(_0x2af6cf[_0x6c0479][_0x4fdc('0x111')]['startIndex']=_0x6c0479,_0x2af6cf[_0x6c0479][_0x4fdc('0x111')][_0x4fdc('0x83')]=_0x6c0479):(_0x4fdc('0xc6')===_0x2af6cf[_0x6c0479]['type']?_0x2af6cf[_0x6c0479][_0x4fdc('0x111')][_0x4fdc('0xe5')]=_0x6c0479:_0x4fdc('0x31')===_0x2af6cf[_0x6c0479][_0x4fdc('0xb')]&&(_0x2af6cf[_0x6c0479][_0x4fdc('0x111')][_0x4fdc('0x83')]=_0x6c0479),_0x3b941e['set'](_0x2af6cf[_0x6c0479]['id'],_0x6c0479));for(const _0x1dcdfd of _0x3b941e['values']())_0x4fdc('0xc6')===_0x2af6cf[_0x1dcdfd][_0x4fdc('0xb')]?_0x2af6cf[_0x1dcdfd][_0x4fdc('0x111')][_0x4fdc('0x83')]=_0x3b941e[_0x4fdc('0xca')](_0x2af6cf[_0x1dcdfd][_0x4fdc('0x9')]):'elementEnd'===_0x2af6cf[_0x1dcdfd]['type']&&(_0x2af6cf[_0x1dcdfd]['item'][_0x4fdc('0xe5')]=_0x3b941e[_0x4fdc('0xca')](_0x2af6cf[_0x1dcdfd]['pairId']));}[_0x4fdc('0xa5')](_0x599570){for(let _0x572b06=0x0;_0x572b06<_0x599570[_0x4fdc('0xa7')];_0x572b06++){if(_0x4fdc('0xc6')===_0x599570[_0x572b06][_0x4fdc('0xb')])_0x599570[_0x572b06]['item']['startIndex']=_0x572b06;else{if(_0x4fdc('0x31')===_0x599570[_0x572b06][_0x4fdc('0xb')]){_0x599570[_0x572b06][_0x4fdc('0x111')][_0x4fdc('0x83')]=_0x572b06;const _0x40513a=_0x599570[_0x572b06][_0x4fdc('0x111')][_0x4fdc('0xe5')];_0x599570[_0x40513a][_0x4fdc('0x9')]=_0x599570[_0x572b06]['id'],_0x599570[_0x572b06]['pairId']=_0x599570[_0x40513a]['id'];}else _0x599570[_0x572b06][_0x4fdc('0x111')][_0x4fdc('0xe5')]=_0x572b06,_0x599570[_0x572b06]['item'][_0x4fdc('0x83')]=_0x572b06,_0x599570[_0x572b06]['pairId']=null;}_0x599570[_0x572b06][_0x4fdc('0x53')]||(_0x599570[_0x572b06][_0x4fdc('0x53')]=[],_0x599570[_0x572b06][_0x4fdc('0x57')]=[]);}}[_0x4fdc('0x124')](_0x349183,_0x15af30){const _0x594f78=_0x349183['filter'](_0x38446c=>!_0x38446c['isAdded']);for(let _0x4ef7cc=0x0;_0x4ef7cc<_0x15af30[_0x4fdc('0xa7')];_0x4ef7cc++)_0x15af30[_0x4ef7cc][_0x4fdc('0x5e')]&&(_0x594f78[_0x4ef7cc][_0x4fdc('0x5e')]=_0x15af30[_0x4ef7cc][_0x4fdc('0x5e')]);}['_makeModelFromViewString'](_0x49e445){const _0x238df5=JSON[_0x4fdc('0xd3')](_0x49e445),_0x48090b=this[_0x4fdc('0x39')][_0x4fdc('0x93')]['view']['document'],_0x3b435d=new _0x1f8df6(_0x48090b,_0x238df5['map'](_0x5bbdae=>this[_0x4fdc('0x45')](_0x5bbdae)));return this[_0x4fdc('0x39')]['data'][_0x4fdc('0x24')](_0x3b435d);}[_0x4fdc('0x45')](_0x24a6c0){const _0x5d3dfe=this[_0x4fdc('0x39')][_0x4fdc('0x93')][_0x4fdc('0x7c')]['document'];if('string'==typeof _0x24a6c0)return new _0x5790d9(_0x5d3dfe,_0x24a6c0);{const _0x32525e=_0x24a6c0[_0x4fdc('0x11a')][_0x4fdc('0xd4')](_0x523883=>this[_0x4fdc('0x45')](_0x523883));return new(tt[_0x24a6c0[(_0x4fdc('0xb'))]]||_0x36d1c7)(_0x5d3dfe,_0x24a6c0['name'],_0x24a6c0[_0x4fdc('0x1b')],_0x32525e);}}[_0x4fdc('0xdf')](_0x33e940,_0x47e241=null){const _0x3fc22e=this[_0x4fdc('0xaa')]['getRevision'](_0x33e940),_0x43b52f=_0x47e241?this['repository']['getRevision'](_0x47e241):null,_0xd83088=this[_0x4fdc('0x50')](_0x3fc22e,_0x43b52f),_0x54d6ac=_0xd83088[_0xd83088[_0x4fdc('0xa7')]-0x1],_0x4f0cc9=new Map(),_0x4ae565={'model':{},'attributes':{},'changes':[]},_0x354627=new Set(),_0x5d559=new Map();for(let _0x2dbfd7=_0xd83088[_0x4fdc('0xa7')]-0x1;_0x2dbfd7>=0x0;_0x2dbfd7--){const _0x4d97d5=_0xd83088[_0x2dbfd7];for(const _0x5d0ff8 of Object[_0x4fdc('0x122')](_0x4d97d5[_0x4fdc('0xfe')]))if(_0x4d97d5[_0x4fdc('0xfe')][_0x5d0ff8][_0x4fdc('0x15')]){const _0x4ca601=_0x4d97d5[_0x4fdc('0xfe')][_0x5d0ff8][_0x4fdc('0x15')];_0x4ca601[_0x4fdc('0x42')]?(_0x354627[_0x4fdc('0x8b')](_0x5d0ff8),_0x5d559['has'](_0x5d0ff8)&&_0x5d559['get'](_0x5d0ff8)['userId']==_0x4ca601[_0x4fdc('0xfb')]?_0x5d559[_0x4fdc('0x80')](_0x5d0ff8):_0x5d559[_0x4fdc('0x35')](_0x5d0ff8,_0x4ca601)):_0x5d559['has'](_0x5d0ff8)?(_0x354627[_0x4fdc('0x80')](_0x5d0ff8),_0x5d559[_0x4fdc('0x80')](_0x5d0ff8)):(_0x354627[_0x4fdc('0x8b')](_0x5d0ff8),_0x5d559[_0x4fdc('0x35')](_0x5d0ff8,_0x4ca601));}else _0x354627['add'](_0x5d0ff8);}for(const _0x4fe52d of _0x354627){const _0x8999f3=_0x5d559[_0x4fdc('0x71')](_0x4fe52d)&&!_0x5d559['get'](_0x4fe52d)['isAttached'];let _0x56e387=_0x8999f3?_0xd83088[_0x4fdc('0xa7')]-0x1:0x0;const _0x4870cd=_0x8999f3?-0x1:0x1;for(;_0xd83088[_0x56e387];){const _0xf8e776=_0xd83088[_0x56e387];if(_0xf8e776[_0x4fdc('0xfe')][_0x4fe52d]){const _0x7d31c1=_0x8999f3?_0xf8e776[_0x4fdc('0xfe')][_0x4fe52d][_0x4fdc('0x125')]:_0xf8e776[_0x4fdc('0xfe')][_0x4fe52d][_0x4fdc('0x97')];_0x4ae565[_0x4fdc('0x1b')][_0x4fe52d]=_0x7d31c1?_0x4f80a8(_0x7d31c1):{};break;}_0x56e387+=_0x4870cd;}}for(const _0xc7a272 of _0xd83088){_0xc7a272[_0x4fdc('0x3')]={};for(const _0x356657 of _0xc7a272[_0x4fdc('0xd5')])_0x4f0cc9['set'](_0x356657['id'],_0x356657);for(const _0x126568 of _0x354627){const _0x5a3bf6=_0xc7a272['diffData'][_0x126568]?_0xc7a272[_0x4fdc('0xfe')][_0x126568][_0x4fdc('0x4b')]:'[]',_0x20f169=_0xc7a272[_0x4fdc('0xfe')][_0x126568]?_0xc7a272[_0x4fdc('0xfe')][_0x126568][_0x4fdc('0x18')]:'[]';_0xc7a272[_0x4fdc('0x3')][_0x126568]={'insertions':this['_makeModelFromViewString'](_0x5a3bf6),'deletions':this[_0x4fdc('0xe9')](_0x20f169)};}}for(const _0x501b80 of _0x354627){let _0xc0a604=null,_0x49684e=0x0;const _0x178352=new Map(Array[_0x4fdc('0xd8')](_0x3fc22e['model'][_0x501b80][_0x4fdc('0x4b')]['markers'])['filter'](([_0x342250])=>!_0x342250['startsWith']('revision:')));let _0x37ba9b=0x0;for(const _0x251193 of _0xd83088){const _0x2b0bdd=this[_0x4fdc('0x123')](_0x251193[_0x4fdc('0x3')][_0x501b80]['insertions']);_0x251193==_0x3fc22e?(_0xc0a604=_0x2b0bdd,_0x49684e=_0xc0a604[_0x4fdc('0xa7')],_0xc0a604[_0x4fdc('0xf7')](_0x546fa0=>{_0x546fa0['id']=_0x37ba9b++;}),this[_0x4fdc('0xa5')](_0xc0a604)):this[_0x4fdc('0x124')](_0xc0a604,_0x2b0bdd);const _0x3ab076=_0xc0a604[_0x4fdc('0x128')](_0x1f5ea2=>!_0x1f5ea2[_0x4fdc('0x5e')])[_0x4fdc('0xd4')](_0x479747=>_0x479747['id']);let _0x53f107=0x0;const _0x523459=this[_0x4fdc('0x123')](_0x251193[_0x4fdc('0x3')][_0x501b80][_0x4fdc('0x18')]);_0x523459[_0x4fdc('0xf7')](_0x3d471f=>{_0x3d471f[_0x4fdc('0x4e')]?_0x3d471f['id']=_0x49684e++:_0x3d471f['id']=_0x3ab076[_0x53f107++];}),this[_0x4fdc('0xa5')](_0x523459),this[_0x4fdc('0x44')](_0xc0a604,_0x4fdc('0x5e')),this[_0x4fdc('0x44')](_0x523459,_0x4fdc('0x4e')),_0x251193==_0x3fc22e&&this['_markMarkers'](_0xc0a604,_0x178352),_0xc0a604=this[_0x4fdc('0x5b')](_0xc0a604,_0x523459),this[_0x4fdc('0x11e')](_0xc0a604),this[_0x4fdc('0x44')](_0xc0a604,_0x4fdc('0x4e'));}_0xc0a604=_0xc0a604[_0x4fdc('0x128')](_0x590cc4=>!(_0x590cc4['isAdded']&&_0x590cc4[_0x4fdc('0x4e')]));const _0x14d381=new Map(_0x54d6ac['model'][_0x501b80]['deletions'][_0x4fdc('0x51')]),_0x3b8d97=new Set(_0x178352[_0x4fdc('0x122')]());for(const _0x324646 of _0x14d381[_0x4fdc('0x122')]())_0x3b8d97[_0x4fdc('0x80')](_0x324646);this[_0x4fdc('0x3d')](_0xc0a604,_0x3b8d97),this[_0x4fdc('0xd1')](_0xc0a604),_0xc0a604=this[_0x4fdc('0xc0')](_0xc0a604),_0xc0a604=this[_0x4fdc('0xb0')](_0xc0a604),_0xc0a604=this[_0x4fdc('0x6b')](_0xc0a604);const {root:_0x45e84a,changes:_0x5436fe}=this[_0x4fdc('0x12a')](_0xc0a604,_0x4f0cc9,_0x501b80);_0x4ae565['model'][_0x501b80]=_0x45e84a;const _0x4c7b21=_0x5d559[_0x4fdc('0xca')](_0x501b80);if(_0x4c7b21){const _0x44db54=_0x4f0cc9['get'](_0x4c7b21[_0x4fdc('0xfb')]),_0x4f25d0=new _0x578351({'author':_0x44db54,'type':_0x4c7b21[_0x4fdc('0x42')]?_0x4fdc('0x8b'):_0x4fdc('0xf0'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x501b80});_0x5436fe[_0x4fdc('0x59')](_0x4f25d0),_0x4ae565['attributes'][_0x501b80]['revisionHistoryAttachChange']=_0x4f25d0['id'];}_0x4ae565['changes']=_0x4ae565['changes'][_0x4fdc('0xf8')](_0x5436fe);}return _0x4ae565;}[_0x4fdc('0xa4')](_0x372e5e,_0x1ffdcd){for(let _0x5010dd=0x0;_0x5010dd<_0x372e5e[_0x4fdc('0xa7')];_0x5010dd++)for(const [_0x189d6b,_0x1dfb07]of _0x1ffdcd)_0x1dfb07[_0x4fdc('0x73')][_0x4fdc('0xf4')](_0x372e5e[_0x5010dd][_0x4fdc('0xc3')])&&_0x372e5e[_0x5010dd][_0x4fdc('0x53')][_0x4fdc('0xf2')](_0x189d6b),_0x1dfb07['end']['isEqual'](_0x372e5e[_0x5010dd][_0x4fdc('0x9b')])&&_0x372e5e[_0x5010dd][_0x4fdc('0x57')][_0x4fdc('0xf2')](_0x189d6b);}[_0x4fdc('0x5b')](_0x184379,_0x584b59){let _0x37a0c3=[],_0x18fb5b=0x0,_0xe81923=0x0;for(;_0x18fb5b<_0x184379[_0x4fdc('0xa7')]||_0xe81923<_0x584b59[_0x4fdc('0xa7')];){const _0xc04711=_0x184379[_0x18fb5b]||{},_0xea8c06=_0x584b59[_0xe81923]||{};if(_0xc04711['id']==_0xea8c06['id'])_0x18fb5b++,_0xe81923++,_0x37a0c3[_0x4fdc('0xf2')](_0xc04711);else{if(_0xea8c06[_0x4fdc('0x4e')]&&_0xc04711['isAdded']){const {commonTape:_0x2b2a3f,iEnd:_0x580a17,jEnd:_0x565772}=this[_0x4fdc('0x40')](_0x184379,_0x18fb5b,_0x584b59,_0xe81923);_0x37a0c3=_0x37a0c3['concat'](_0x2b2a3f),_0x18fb5b=_0x580a17,_0xe81923=_0x565772;}else _0xea8c06['isRemoved']?(_0xe81923++,_0x37a0c3[_0x4fdc('0xf2')](_0xea8c06)):(_0x18fb5b++,_0x37a0c3[_0x4fdc('0xf2')](_0xc04711));}}return _0x37a0c3;}[_0x4fdc('0x3d')](_0x35d6f5,_0x7bf12){const _0x3b1525=[];for(let _0x39f888=0x0;_0x39f888<_0x35d6f5['length'];_0x39f888++){for(let _0x1c95ff=0x0;_0x1c95ff<_0x35d6f5[_0x39f888]['markersStart'][_0x4fdc('0xa7')];_0x1c95ff++){const _0x496e47=_0x35d6f5[_0x39f888]['markersStart'][_0x1c95ff];if(!_0x7bf12[_0x4fdc('0x71')](_0x496e47))continue;const {group:_0xc54a8e,type:_0x45c9fb,authorId:_0x109509}=_0xfedce8(_0x496e47);_0x4fdc('0x52')!=_0xc54a8e||_0x4fdc('0x10')!=_0x45c9fb&&_0x4fdc('0xda')!=_0x45c9fb||(_0x3b1525['unshift']({'type':_0x45c9fb,'name':_0x496e47,'userId':_0x109509}),_0x35d6f5[_0x39f888][_0x4fdc('0x53')][_0x4fdc('0x3a')](_0x1c95ff,0x1),_0x1c95ff--);}_0x4cfca2(_0x35d6f5[_0x39f888]);for(let _0x4ffb36=0x0;_0x4ffb36<_0x35d6f5[_0x39f888]['markersEnd'][_0x4fdc('0xa7')];_0x4ffb36++){const _0x3a1164=_0x35d6f5[_0x39f888][_0x4fdc('0x57')][_0x4ffb36];if(!_0x7bf12['has'](_0x3a1164))continue;const {group:_0x2f79d2,type:_0x276ba4}=_0xfedce8(_0x3a1164);if(_0x4fdc('0x52')!=_0x2f79d2||'insertion'!=_0x276ba4&&_0x4fdc('0xda')!=_0x276ba4)continue;_0x35d6f5[_0x39f888]['markersEnd'][_0x4fdc('0x3a')](_0x4ffb36,0x1),_0x4ffb36--;const _0x1afcf4=_0x3b1525[_0x4fdc('0xcf')](_0x5d863a=>_0x5d863a[_0x4fdc('0xcb')]==_0x3a1164);_0x1afcf4>-0x1&&_0x3b1525[_0x4fdc('0x3a')](_0x1afcf4,0x1);}}function _0xfedce8(_0x580b55){const _0x3447b9=_0x580b55['split'](':');return{'group':_0x3447b9[0x0],'type':_0x3447b9[0x1],'subType':_0x3447b9['length']>=0x5?_0x3447b9[0x2]:null,'id':_0x3447b9['length']<0x5?_0x3447b9[0x2]:_0x3447b9[0x3],'authorId':_0x3447b9[_0x4fdc('0xa7')]<0x5?_0x3447b9[0x3]:_0x3447b9[0x4],'markerCount':0x6==_0x3447b9[_0x4fdc('0xa7')]?_0x3447b9[0x5]:null};}function _0x4cfca2(_0x32dcf3){for(let _0x5c1700=0x0;_0x5c1700<_0x3b1525['length'];_0x5c1700++){if(_0x32dcf3[_0x4fdc('0x5e')]&&'insertion'==_0x3b1525[_0x5c1700][_0x4fdc('0xb')])return _0x32dcf3[_0x4fdc('0xc9')]=_0x3b1525[_0x5c1700],void delete _0x32dcf3[_0x4fdc('0x5e')];if(!_0x32dcf3['isAdded']&&!_0x32dcf3[_0x4fdc('0x4e')]&&_0x4fdc('0xda')==_0x3b1525[_0x5c1700]['type'])return void(_0x32dcf3['isRemoveSuggestion']=_0x3b1525[_0x5c1700]);}}}[_0x4fdc('0x44')](_0x10baa2,_0x54affc){let _0x5065d6=0x0,_0x46b467=!0x1;const _0x484aad=new Map();for(const _0x56dda0 of _0x10baa2)_0x56dda0[_0x54affc]?_0x46b467&&(_0x5065d6++,_0x46b467=!0x1):(_0x5065d6++,_0x46b467=!0x0),_0x484aad[_0x4fdc('0x35')](_0x56dda0['id'],_0x5065d6);for(let _0x5d9472=0x0;_0x5d9472<_0x10baa2[_0x4fdc('0xa7')];_0x5d9472++){if(_0x4fdc('0x4e')==_0x54affc&&_0x10baa2[_0x5d9472][_0x4fdc('0x5e')]||_0x4fdc('0x5e')==_0x54affc&&_0x10baa2[_0x5d9472][_0x4fdc('0x4e')])continue;if(_0x4fdc('0xec')==_0x10baa2[_0x5d9472]['type']){_0x10baa2[_0x5d9472]['distance']=0x0;continue;}const _0x10f94f=_0x484aad['get'](_0x10baa2[_0x5d9472]['pairId']),_0xd1a580=_0x484aad['get'](_0x10baa2[_0x5d9472]['id']);_0x10baa2[_0x5d9472][_0x4fdc('0xb6')]=_0x10f94f-_0xd1a580;}}['_getRevisionsRange'](_0x38b621,_0x5f1a90,_0x35a740=!0x1){const _0x2866a7=[];let _0x8eb370=this[_0x4fdc('0xaa')][_0x4fdc('0x3c')](_0x38b621),_0x30429f=this[_0x4fdc('0xaa')][_0x4fdc('0x3c')](_0x5f1a90);for(-0x1==_0x30429f&&(_0x30429f=this[_0x4fdc('0xaa')][_0x4fdc('0xc')][_0x4fdc('0xa7')],_0x35a740=!0x1);_0x8eb370<_0x30429f;)_0x2866a7[_0x4fdc('0xf2')](this[_0x4fdc('0xaa')]['getRevision'](_0x8eb370)),_0x8eb370++;return _0x35a740&&_0x2866a7[_0x4fdc('0xf2')](this[_0x4fdc('0xaa')][_0x4fdc('0xb9')](_0x8eb370)),_0x2866a7;}[_0x4fdc('0x40')](_0x203999,_0x5e99ce,_0x1a0bcf,_0x43e9a1){const _0x2393c3=this[_0x4fdc('0x39')][_0x4fdc('0x3')]['schema'];let _0x5197b3=_0x5e99ce;for(;_0x203999[_0x5197b3]&&_0x203999[_0x5197b3][_0x4fdc('0x5e')];)_0x5197b3++;let _0xe23b1d=_0x43e9a1;for(;_0x1a0bcf[_0xe23b1d]&&_0x1a0bcf[_0xe23b1d][_0x4fdc('0x4e')];)_0xe23b1d++;_0x4f2adb(_0x203999,_0x5e99ce,_0x5197b3),_0x4f2adb(_0x1a0bcf,_0x43e9a1,_0xe23b1d);const _0x43ecbe=_0x1a0bcf['slice'](_0x43e9a1,_0xe23b1d)[_0x4fdc('0xf8')](_0x203999[_0x4fdc('0x116')](_0x5e99ce,_0x5197b3));return _0x43ecbe[_0x4fdc('0xf3')]((_0x5ce27e,_0x283dc6)=>_0x5ce27e['side']!=_0x283dc6[_0x4fdc('0xff')]?_0x5ce27e[_0x4fdc('0xff')]-_0x283dc6[_0x4fdc('0xff')]:_0x5ce27e['level']!=_0x283dc6[_0x4fdc('0x0')]?_0x5ce27e[_0x4fdc('0x0')]-_0x283dc6[_0x4fdc('0x0')]:_0x5ce27e[_0x4fdc('0xb6')]!=_0x283dc6[_0x4fdc('0xb6')]?_0x283dc6[_0x4fdc('0xb6')]-_0x5ce27e[_0x4fdc('0xb6')]:!!_0x5ce27e['isAdded']!=!!_0x283dc6[_0x4fdc('0x5e')]?-0x1==_0x5ce27e[_0x4fdc('0xff')]||0x0==_0x5ce27e[_0x4fdc('0xff')]?_0x5ce27e['isAdded']?-0x1:0x1:_0x5ce27e[_0x4fdc('0x5e')]?0x1:-0x1:_0x5ce27e['index']-_0x283dc6[_0x4fdc('0x29')]),{'commonTape':_0x43ecbe,'iEnd':_0x5197b3,'jEnd':_0xe23b1d};function _0x4f2adb(_0x1476fa,_0x210fce,_0x503fa1){let _0x247dd8=-0x1,_0x1466b9=Number[_0x4fdc('0x62')],_0x4c0ffb=!0x0;for(let _0x2fb641=_0x210fce;_0x2fb641<_0x503fa1;_0x2fb641++)if(_0x2393c3[_0x4fdc('0xf5')](_0x1476fa[_0x2fb641][_0x4fdc('0x111')])||(_0x4c0ffb=!0x1),_0x1476fa[_0x2fb641][_0x4fdc('0x111')][_0x4fdc('0xe5')]<_0x210fce&&(_0x247dd8=_0x2fb641),_0x1476fa[_0x2fb641]['item']['endIndex']>=_0x503fa1){_0x1466b9=_0x2fb641;break;}_0x4c0ffb&&(_0x247dd8=_0x503fa1-0x1);for(let _0x236d16=_0x210fce;_0x236d16<_0x503fa1;_0x236d16++)_0x1476fa[_0x236d16][_0x4fdc('0xff')]=_0x236d16<=_0x247dd8?-0x1:_0x236d16<_0x1466b9?0x0:0x1,_0x1476fa[_0x236d16][_0x4fdc('0x29')]=_0x236d16;let _0x29db48=0x0;for(let _0x339bd6=_0x210fce;_0x339bd6<=_0x247dd8;_0x339bd6++)0x0==_0x1476fa[_0x339bd6][_0x4fdc('0xb6')]?_0x1476fa[_0x339bd6]['level']=_0x29db48:(_0x29db48++,_0x1476fa[_0x339bd6]['level']=_0x29db48,_0x29db48++);for(let _0x5f0a69=_0x210fce;_0x5f0a69<_0x503fa1;_0x5f0a69++)0x0==_0x1476fa[_0x5f0a69][_0x4fdc('0xff')]&&(_0x1476fa[_0x5f0a69]['level']=_0x29db48);_0x29db48=0x0;for(let _0x1dbc8a=_0x503fa1-0x1;_0x1dbc8a>=_0x1466b9;_0x1dbc8a--)0x0==_0x1476fa[_0x1dbc8a][_0x4fdc('0xb6')]?_0x1476fa[_0x1dbc8a][_0x4fdc('0x0')]=_0x29db48:(_0x29db48--,_0x1476fa[_0x1dbc8a][_0x4fdc('0x0')]=_0x29db48,_0x29db48--);}}[_0x4fdc('0xd1')](_0x21f792){const _0x670695=new Map(),_0x47d7f1=this[_0x4fdc('0x39')][_0x4fdc('0x3')]['schema'];for(let _0x53c8a3=0x1;_0x53c8a3<_0x21f792[_0x4fdc('0xa7')];_0x53c8a3++){let _0x52a38b,_0x2e93cb,_0x75fb12;const _0xcb4808=_0x21f792[_0x53c8a3],_0x113bd1=_0x21f792[_0x53c8a3-0x1];if(_0x4fdc('0xec')==_0xcb4808[_0x4fdc('0xb')])continue;if(_0xcb4808[_0x4fdc('0xb')]!=_0x113bd1[_0x4fdc('0xb')])continue;if(!_0x47d7f1[_0x4fdc('0x104')](_0x113bd1[_0x4fdc('0x111')])||_0x47d7f1['isLimit'](_0x113bd1[_0x4fdc('0x111')]))continue;if(!_0x47d7f1[_0x4fdc('0x104')](_0xcb4808[_0x4fdc('0x111')])||_0x47d7f1[_0x4fdc('0x43')](_0xcb4808[_0x4fdc('0x111')]))continue;if((_0x21f792[_0x53c8a3][_0x4fdc('0x5e')]||_0x21f792[_0x53c8a3][_0x4fdc('0xc9')])&&_0x21f792[_0x53c8a3-0x1][_0x4fdc('0x4e')])_0x52a38b=_0x21f792[_0x53c8a3],_0x2e93cb=_0x21f792[_0x53c8a3-0x1],_0x75fb12=_0x53c8a3-0x1;else{if(!_0x21f792[_0x53c8a3][_0x4fdc('0x4e')]||!_0x21f792[_0x53c8a3-0x1][_0x4fdc('0x5e')]&&!_0x21f792[_0x53c8a3-0x1][_0x4fdc('0xc9')])continue;_0x52a38b=_0x21f792[_0x53c8a3-0x1],_0x2e93cb=_0x21f792[_0x53c8a3],_0x75fb12=_0x53c8a3;}const _0x160033=_0x52a38b['level']==_0x2e93cb['level'],_0x1b4136=Math[_0x4fdc('0xad')](_0x52a38b[_0x4fdc('0x0')])<Math[_0x4fdc('0xad')](_0x2e93cb['level'])&&0x0==_0x2e93cb[_0x4fdc('0xb6')];(_0x160033||_0x1b4136)&&(_0x670695[_0x4fdc('0x35')](_0x2e93cb['id'],_0x52a38b['id']),_0x21f792[_0x4fdc('0x3a')](_0x75fb12,0x1),_0x53c8a3--,_0x52a38b[_0x4fdc('0x5e')]=!0x1);}for(let _0x4f1afa=0x0;_0x4f1afa<_0x21f792['length'];_0x4f1afa++)_0x670695['has'](_0x21f792[_0x4f1afa][_0x4fdc('0x9')])&&(_0x21f792[_0x4f1afa][_0x4fdc('0x9')]=_0x670695[_0x4fdc('0xca')](_0x21f792[_0x4f1afa]['pairId']));}[_0x4fdc('0xc0')](_0x1c7bbb){const _0x879942=new Set(_0x1c7bbb[_0x4fdc('0xd4')](_0x2054df=>_0x2054df['id']));for(let _0x274b7a=0x0;_0x274b7a<_0x1c7bbb[_0x4fdc('0xa7')];_0x274b7a++)_0x879942[_0x4fdc('0x71')](_0x1c7bbb[_0x274b7a][_0x4fdc('0x9')])||0x0==_0x1c7bbb[_0x274b7a][_0x4fdc('0xb6')]||(_0x1c7bbb[_0x274b7a][_0x4fdc('0x109')]=!0x0);return _0x1c7bbb['filter'](_0x261748=>!_0x261748[_0x4fdc('0x109')]);}[_0x4fdc('0xb0')](_0x3d1e25){const _0x1abef2=new Set();for(let _0x5b8cfa=0x0;_0x5b8cfa<_0x3d1e25[_0x4fdc('0xa7')];_0x5b8cfa++){if(_0x1abef2[_0x4fdc('0x71')](_0x3d1e25[_0x5b8cfa]['id'])&&_0x3d1e25[_0x5b8cfa][_0x4fdc('0x4e')]&&(_0x3d1e25[_0x5b8cfa][_0x4fdc('0x109')]=!0x0),_0x3d1e25[_0x5b8cfa][_0x4fdc('0x109')])continue;if(0x0==_0x3d1e25[_0x5b8cfa][_0x4fdc('0xb6')])continue;if(_0x4fdc('0xc6')!=_0x3d1e25[_0x5b8cfa]['type'])continue;if(null==_0x3d1e25[_0x5b8cfa][_0x4fdc('0x9')])continue;let _0x58df1c=_0x5b8cfa+0x1,_0x55d05e=0x0;for(;_0x3d1e25[_0x58df1c]['id']!=_0x3d1e25[_0x5b8cfa][_0x4fdc('0x9')];)_0x4fdc('0xc6')==_0x3d1e25[_0x58df1c]['type']?_0x55d05e++:'elementEnd'==_0x3d1e25[_0x58df1c][_0x4fdc('0xb')]&&_0x55d05e--,_0x58df1c++;if(0x0!=_0x55d05e){if(_0x3d1e25[_0x5b8cfa][_0x4fdc('0x4e')])_0x3d1e25[_0x5b8cfa][_0x4fdc('0x109')]=!0x0;else for(;_0x58df1c!=_0x5b8cfa;)_0x3d1e25[_0x58df1c][_0x4fdc('0x4e')]&&0x0!=_0x3d1e25[_0x58df1c][_0x4fdc('0xb6')]&&(_0x3d1e25[_0x58df1c][_0x4fdc('0x109')]=!0x0,_0x1abef2[_0x4fdc('0x8b')](_0x3d1e25[_0x58df1c]['pairId'])),_0x58df1c--;}}return _0x3d1e25[_0x4fdc('0x128')](_0x53fc17=>!_0x53fc17[_0x4fdc('0x109')]);}['_removeUnsupportedChanges'](_0x3b1e3e){const _0x5106e2=this[_0x4fdc('0x39')][_0x4fdc('0x3')][_0x4fdc('0x13')];for(let _0x16f643=0x0;_0x16f643<_0x3b1e3e[_0x4fdc('0xa7')];_0x16f643++){if(!(_0x3b1e3e[_0x16f643][_0x4fdc('0x5e')]||_0x3b1e3e[_0x16f643]['isAddSuggestion']||_0x3b1e3e[_0x16f643]['isRemoved']||_0x3b1e3e[_0x16f643][_0x4fdc('0x9e')]))continue;if(0x0==_0x3b1e3e[_0x16f643]['distance'])continue;const _0x4f1431=_0x3b1e3e[_0x16f643]['item'];_0x5106e2[_0x4fdc('0x104')](_0x4f1431)||_0x5106e2[_0x4fdc('0x43')](_0x4f1431)||(_0x3b1e3e[_0x16f643][_0x4fdc('0x5e')]&&delete _0x3b1e3e[_0x16f643][_0x4fdc('0x5e')],_0x3b1e3e[_0x16f643][_0x4fdc('0xc9')]&&delete _0x3b1e3e[_0x16f643][_0x4fdc('0xc9')],_0x3b1e3e[_0x16f643][_0x4fdc('0x9e')]&&delete _0x3b1e3e[_0x16f643][_0x4fdc('0x9e')],_0x3b1e3e[_0x16f643][_0x4fdc('0x4e')]&&(_0x3b1e3e[_0x16f643][_0x4fdc('0x109')]=!0x0));}return _0x3b1e3e[_0x4fdc('0x128')](_0x3d721a=>!_0x3d721a['isIncorrect']);}[_0x4fdc('0x12a')](_0x2cea45,_0xee05bb,_0xdc4267){const _0x56c148=new _0x49f962(),_0x12d27e=[],_0x41c04f=new Map(),_0x49b6b2=this[_0x4fdc('0x39')][_0x4fdc('0x3')],_0x40735d=_0x49b6b2['schema'],_0x2056fe=[_0x56c148],_0x3d0693={},_0x563fc8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1333e3=null;const _0x1e9e18=[0x0];for(let _0x51d80f=0x0;_0x51d80f<_0x2cea45['length'];_0x51d80f++){let _0x21d6e5,_0x57060c;if(_0x4fdc('0xc6')===_0x2cea45[_0x51d80f][_0x4fdc('0xb')]){_0x21d6e5=_0x49b6b2[_0x4fdc('0xed')](_0x56c148,_0x1e9e18);const _0x409ca5=new _0x2ef2e2(_0x2cea45[_0x51d80f][_0x4fdc('0x111')][_0x4fdc('0xcb')],_0x2cea45[_0x51d80f][_0x4fdc('0x111')][_0x4fdc('0xb8')]());_0x2056fe[0x0][_0x4fdc('0x68')](_0x409ca5),_0x1e9e18[_0x4fdc('0xf2')](0x0),_0x2056fe['unshift'](_0x409ca5),_0x57060c=_0x49b6b2[_0x4fdc('0xed')](_0x56c148,_0x1e9e18),_0x1333e3=null;}else{if('elementEnd'===_0x2cea45[_0x51d80f]['type'])_0x2056fe[_0x4fdc('0xa2')](),_0x21d6e5=_0x49b6b2[_0x4fdc('0xed')](_0x56c148,_0x1e9e18),_0x1e9e18[_0x4fdc('0x70')](),_0x1e9e18[_0x1e9e18[_0x4fdc('0xa7')]-0x1]++,_0x57060c=_0x49b6b2['createPositionFromPath'](_0x56c148,_0x1e9e18),_0x1333e3=null;else{if(_0x21d6e5=_0x49b6b2[_0x4fdc('0xed')](_0x56c148,_0x1e9e18),_0x1333e3&&_0xb2d566(_0x1333e3,_0x2cea45[_0x51d80f]['item']))_0x1333e3[_0x4fdc('0xbd')]+=_0x2cea45[_0x51d80f][_0x4fdc('0x111')][_0x4fdc('0xc8')];else{const _0x3c6a2a=new _0xc1e2c4(_0x2cea45[_0x51d80f][_0x4fdc('0x111')][_0x4fdc('0xc8')],_0x2cea45[_0x51d80f][_0x4fdc('0x111')][_0x4fdc('0xb8')]());_0x2056fe[0x0][_0x4fdc('0x68')](_0x3c6a2a),_0x1333e3=_0x3c6a2a;}_0x1e9e18[_0x1e9e18[_0x4fdc('0xa7')]-0x1]+=_0x2cea45[_0x51d80f]['item'][_0x4fdc('0x4a')],_0x57060c=_0x49b6b2['createPositionFromPath'](_0x56c148,_0x1e9e18);}}for(const _0x49a0fe of _0x2cea45[_0x51d80f]['markersStart'])_0x41c04f[_0x4fdc('0x35')](_0x49a0fe,{'start':_0x21d6e5,'end':null});_0x13b84c('isRemoveSuggestion',_0x51d80f,_0x21d6e5,_0x57060c),_0x13b84c(_0x4fdc('0xc9'),_0x51d80f,_0x21d6e5,_0x57060c),_0x13b84c('isRemoved',_0x51d80f,_0x21d6e5,_0x57060c),_0x13b84c(_0x4fdc('0x5e'),_0x51d80f,_0x21d6e5,_0x57060c);for(const _0x4b7be5 of _0x2cea45[_0x51d80f]['markersEnd']){_0x41c04f[_0x4fdc('0xca')](_0x4b7be5)[_0x4fdc('0xb3')]=_0x57060c;}}for(const [_0x1e2b56,_0x2a03ae]of _0x41c04f){const _0x325d6c=this[_0x4fdc('0x39')][_0x4fdc('0x3')][_0x4fdc('0xa')](_0x2a03ae[_0x4fdc('0x73')],_0x2a03ae[_0x4fdc('0xb3')]);_0x56c148['markers'][_0x4fdc('0x35')](_0x1e2b56,_0x325d6c);}return _0x12d27e[_0x4fdc('0xf3')]((_0x4dbe66,_0x286917)=>{const _0x20da52=_0x56c148['markers']['get'](_0x4fdc('0xcd')+_0x4dbe66['id']),_0x47db05=_0x56c148[_0x4fdc('0x51')][_0x4fdc('0xca')](_0x4fdc('0xcd')+_0x286917['id']);return _0x20da52[_0x4fdc('0x73')][_0x4fdc('0xbf')](_0x47db05[_0x4fdc('0x73')])?-0x1:_0x20da52[_0x4fdc('0x73')][_0x4fdc('0x11d')](_0x47db05[_0x4fdc('0x73')])?0x1:_0x20da52['end'][_0x4fdc('0xbf')](_0x47db05[_0x4fdc('0xb3')])?-0x1:_0x20da52['end'][_0x4fdc('0x11d')](_0x47db05['end'])?0x1:_0x4fdc('0x8b')===_0x4dbe66[_0x4fdc('0xb')]?-0x1:0x1;}),{'root':_0x56c148,'changes':_0x12d27e};function _0x13b84c(_0x4a6307,_0x1255b9,_0x477a42,_0x58c62f){const _0x128486=!!_0x2cea45[_0x1255b9][_0x4a6307],_0x2d4afd=_0x128486?_0x2cea45[_0x1255b9][_0x4a6307][_0x4fdc('0xfb')]:null,_0x37394d=_0x1255b9===_0x2cea45[_0x4fdc('0xa7')]-0x1,_0xda505d=_0x563fc8[_0x4a6307][0x0],_0x13f4c4=_0x40735d[_0x4fdc('0xa0')](_0x2cea45[_0x1255b9][_0x4fdc('0x111')]);!_0x3d0693[_0x4a6307]&&_0x128486?_0x3d0693[_0x4a6307]={'start':_0x477a42,'tapeItem':_0x2cea45[_0x1255b9],'userId':_0x2d4afd,'type':_0x4a6307}:_0x3d0693[_0x4a6307]&&!_0x128486?(_0x3d0693[_0x4a6307][_0x4fdc('0xb3')]=_0x477a42,_0x200973(_0x3d0693[_0x4a6307]),_0x3d0693[_0x4a6307]=null):_0x3d0693[_0x4a6307]&&_0x128486&&_0x3d0693[_0x4a6307][_0x4fdc('0xfb')]!==_0x2d4afd&&(_0x3d0693[_0x4a6307][_0x4fdc('0xb3')]=_0x477a42,_0xda505d&&_0xda505d['userId']===_0x3d0693[_0x4a6307]['userId']||_0x200973(_0x3d0693[_0x4a6307]),_0x3d0693[_0x4a6307]={'start':_0x477a42,'tapeItem':_0x2cea45[_0x1255b9],'userId':_0x2d4afd,'type':_0x4a6307}),_0x3d0693[_0x4a6307]&&_0x13f4c4&&(_0x4fdc('0xc6')!==_0x2cea45[_0x1255b9][_0x4fdc('0xb')]||_0xda505d&&_0xda505d[_0x4fdc('0xfb')]===_0x2d4afd||_0x563fc8[_0x4a6307][_0x4fdc('0x59')]({'userId':_0x2d4afd,'object':_0x2cea45[_0x1255b9]['item'],'change':_0x3d0693[_0x4a6307]}),_0x4fdc('0x31')===_0x2cea45[_0x1255b9][_0x4fdc('0xb')]&&_0xda505d&&_0xda505d['object']===_0x2cea45[_0x1255b9]['item']&&(_0x563fc8[_0x4a6307]['shift'](),_0x3d0693[_0x4a6307]=_0xda505d[_0x4fdc('0x2f')])),_0x3d0693[_0x4a6307]&&_0x37394d&&(_0x3d0693[_0x4a6307][_0x4fdc('0xb3')]=_0x58c62f,_0x200973(_0x3d0693[_0x4a6307]),_0x3d0693[_0x4a6307]=null);}function _0x200973({start:_0x360eac,end:_0x1bb904,tapeItem:_0x594c55,userId:_0x2e218b,type:_0x4ae362}){const _0x28c27c=_0x594c55[_0x4fdc('0x111')],_0x5d945d=_0x49b6b2[_0x4fdc('0x13')][_0x4fdc('0x104')](_0x28c27c)&&!_0x49b6b2[_0x4fdc('0x13')]['isLimit'](_0x28c27c),_0x57aae6=_0x360eac[_0x4fdc('0x56')]==_0x1bb904[_0x4fdc('0xba')]&&_0x1bb904[_0x4fdc('0xa6')];if(_0x5d945d&&_0x57aae6)return;const _0x3ad346=_0x49b6b2[_0x4fdc('0xa')](_0x360eac,_0x1bb904),_0x28b21a=_0xee05bb[_0x4fdc('0xca')](_0x2e218b),_0x124248=new _0x578351({'author':_0x28b21a,'type':'isAdded'==_0x4ae362||_0x4fdc('0xc9')==_0x4ae362?_0x4fdc('0x8b'):'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4ae362||_0x4fdc('0x9e')==_0x4ae362},'createdAt':new Date(),'rootName':_0xdc4267});_0x12d27e[_0x4fdc('0xf2')](_0x124248),_0x56c148[_0x4fdc('0x51')]['set'](_0x4fdc('0xcd')+_0x124248['id'],_0x3ad346);}function _0xb2d566(_0xbf345e,_0x96d2f2){const _0x2d5753=_0xbf345e[_0x4fdc('0xb8')](),_0x47fd3f=_0x96d2f2[_0x4fdc('0xb8')]();for(const _0x4a5340 of _0x2d5753){if(_0x4a5340[0x1]!==_0x96d2f2['getAttribute'](_0x4a5340[0x0]))return!0x1;_0x47fd3f[_0x4fdc('0x10a')]();}return _0x47fd3f[_0x4fdc('0x10a')]()[_0x4fdc('0x91')];}}[_0x4fdc('0x17')](){this[_0x4fdc('0x39')]['conversion'][_0x4fdc('0x66')](_0x4fdc('0x4d'))['dataToMarker']({'view':_0x4fdc('0xb4')}),this[_0x4fdc('0x39')]['conversion'][_0x4fdc('0x66')](_0x4fdc('0x49'))[_0x4fdc('0x32')]({'model':_0x4fdc('0xb4'),'view':_0x46e0a3=>{const _0x1b50f0=_0x46e0a3[_0x4fdc('0xe6')][_0x4fdc('0x37')](':')[0x1],_0x2b531f=this['_getChangeFromId'](_0x1b50f0);if(!_0x2b531f)return null;const _0x2bceb0=_0x4fdc('0x8b')==_0x2b531f[_0x4fdc('0xb')]?_0x4fdc('0x10'):'deletion',_0x4c1e5a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2bceb0];return _0x2b531f[_0x4fdc('0xc8')][_0x4fdc('0x54')]&&_0x4c1e5a[_0x4fdc('0xf2')](_0x4fdc('0x72')+_0x2bceb0+_0x4fdc('0xa1')),this[_0x4fdc('0x9c')]==_0x2b531f&&_0x4c1e5a[_0x4fdc('0xf2')]('ck-suggestion-marker--active'),{'classes':_0x4c1e5a,'attributes':{'data-change-id':_0x1b50f0}};}}),this['editor'][_0x4fdc('0x9d')][_0x4fdc('0x66')]('upcast')['add'](_0x391c3a=>{_0x391c3a['on']('element:pre',(_0x207914,_0x5352a8,_0x217c69)=>{const _0xfa1f47=_0x5352a8[_0x4fdc('0x102')][_0x4fdc('0xe8')](0x0);if(!_0xfa1f47||!_0xfa1f47['is']('element',_0x4fdc('0x28')))return;if(!_0x217c69[_0x4fdc('0x7f')][_0x4fdc('0x76')](_0xfa1f47,{'attributes':[_0x4fdc('0xbe'),_0x4fdc('0x1c')]}))return;const _0xebd450=_0x5352a8[_0x4fdc('0x92')][_0x4fdc('0x73')][_0x4fdc('0x56')];_0x217c69[_0x4fdc('0x10e')][_0x4fdc('0xd0')](_0x4fdc('0xbe'),_0xfa1f47[_0x4fdc('0x26')]('vid_start'),_0xebd450),_0x217c69[_0x4fdc('0x10e')][_0x4fdc('0xd0')](_0x4fdc('0x1c'),_0xfa1f47[_0x4fdc('0x26')](_0x4fdc('0x1c')),_0xebd450);},{'priority':_0x4fdc('0xb7')});}),this['editor'][_0x4fdc('0x9d')][_0x4fdc('0x66')](_0x4fdc('0x4d'))['add'](_0x2ba28b=>{_0x2ba28b['on']('element',(_0x4188eb,_0x4b6978,_0x389296)=>{if(!_0x389296['consumable'][_0x4fdc('0x76')](_0x4b6978[_0x4fdc('0x102')],{'attributes':[_0x4fdc('0xbe'),_0x4fdc('0x1c')]}))return;if(_0x4b6978[_0x4fdc('0x92')][_0x4fdc('0x7b')])return;const _0x5a6fd6=_0x4b6978[_0x4fdc('0x92')]['start'][_0x4fdc('0x56')];_0x5a6fd6['hasAttribute'](_0x4fdc('0xbe'))||_0x5a6fd6[_0x4fdc('0xa9')](_0x4fdc('0xac'))||(_0x389296[_0x4fdc('0x10e')][_0x4fdc('0xd0')]('vid_start',_0x4b6978[_0x4fdc('0x102')]['getAttribute'](_0x4fdc('0xbe')),_0x5a6fd6),_0x389296[_0x4fdc('0x10e')][_0x4fdc('0xd0')]('vid_end',_0x4b6978[_0x4fdc('0x102')][_0x4fdc('0x26')](_0x4fdc('0x1c')),_0x5a6fd6));},{'priority':'low'});}),this['editor'][_0x4fdc('0x9d')][_0x4fdc('0x66')](_0x4fdc('0x4d'))[_0x4fdc('0xd7')]({'view':{'name':_0x4fdc('0xeb'),'attributes':{'vid':!0x0}},'model':{'key':_0x4fdc('0xac'),'value':_0x5aa91b=>_0x5aa91b[_0x4fdc('0x26')](_0x4fdc('0xac'))}}),this['editor']['model'][_0x4fdc('0x13')]['on']('checkAttribute',(_0x3bbe4c,[,_0x5b87d1])=>{[_0x4fdc('0xbe'),_0x4fdc('0x1c'),'vid'][_0x4fdc('0x10b')](_0x5b87d1)&&(_0x3bbe4c[_0x4fdc('0x25')]=!0x0,_0x3bbe4c[_0x4fdc('0x85')]());},{'priority':_0x4fdc('0xd9')}),this[_0x4fdc('0x39')][_0x4fdc('0x9d')][_0x4fdc('0x66')](_0x4fdc('0x1f'))[_0x4fdc('0x8b')](_0x27557e=>{_0x27557e['on']('attribute:vid',(_0x330b15,_0xeb0f6a,_0x1cfaca)=>{if('\x20'!=_0xeb0f6a[_0x4fdc('0x111')][_0x4fdc('0xc8')]||_0xeb0f6a['item'][_0x4fdc('0xba')][_0x4fdc('0x6d')]>0x1)return;if(!_0x1cfaca['consumable'][_0x4fdc('0x76')](_0xeb0f6a['item'],_0x330b15['name']))return;const _0x5bcfd1=_0x1cfaca[_0x4fdc('0x10e')],_0x11895f=_0x1cfaca[_0x4fdc('0x103')][_0x4fdc('0xfc')](_0xeb0f6a[_0x4fdc('0x121')]);_0x5bcfd1[_0x4fdc('0x34')](_0x11895f,_0x5bcfd1['createAttributeElement'](_0x4fdc('0xeb')));});}),this[_0x4fdc('0x39')][_0x4fdc('0x9d')]['for'](_0x4fdc('0x1f'))[_0x4fdc('0x106')]({'model':_0x4fdc('0xb4')}),this[_0x4fdc('0x39')][_0x4fdc('0x93')][_0x4fdc('0x6c')]['on'](_0x4fdc('0x30'),function(_0x562953){const _0x39d196=_0x562953[_0x4fdc('0x7d')]['get'](_0x4fdc('0x21'));return(_0xca012a,_0x8b29c,_0x1dfe9d)=>{const _0x46f633=_0x8b29c['markerName'][_0x4fdc('0x37')](':')[0x1],_0x2618e9=_0x39d196['_getChangeFromId'](_0x46f633);if(!_0x2618e9)return null;const _0x4988f3=_0x4fdc('0x8b')==_0x2618e9['type']?'split':_0x4fdc('0x5c');if(!_0x1dfe9d[_0x4fdc('0x7f')][_0x4fdc('0x27')](_0x8b29c[_0x4fdc('0x113')],_0xca012a[_0x4fdc('0xcb')]))return;const _0x55f2d1=_0x8b29c[_0x4fdc('0x113')][_0x4fdc('0xaf')](),_0x252a6b=_0x8b29c['markerRange'][_0x4fdc('0x73')],_0x51bbae=_0x562953[_0x4fdc('0x3')][_0x4fdc('0x13')];let _0x4d6c3f=null,_0x29c69d=null,_0x310d36=!0x1,_0x24b524=!0x1;for(const _0x1016a4 of _0x55f2d1){const _0x38a505=_0x1016a4[_0x4fdc('0x111')];_0x310d36=_0x310d36||_0x51bbae[_0x4fdc('0x77')](_0x38a505);const _0x52650f=_0x1dfe9d[_0x4fdc('0x103')][_0x4fdc('0x48')](_0x38a505);if(_0x52650f&&_0x52650f[_0x4fdc('0x23')](_0x4fdc('0xf9')))return;_0x4fdc('0x31')==_0x1016a4[_0x4fdc('0xb')]&&(_0x51bbae[_0x4fdc('0x104')](_0x38a505)&&!_0x51bbae[_0x4fdc('0x43')](_0x38a505)&&(_0x38a505[_0x4fdc('0x10c')]||_0x252a6b[_0x4fdc('0xfa')]?_0x4d6c3f&&_0x4d6c3f[_0x4fdc('0xba')]==_0x38a505||(_0x4d6c3f=_0x38a505,_0x57bed0(_0x1016a4[_0x4fdc('0xc3')]),_0x24b524=!0x0):_0x29c69d=_0x29c69d||_0x1016a4[_0x4fdc('0xc3')]));}function _0x57bed0(_0x416bd5){const _0xe07ec1=_0x1dfe9d[_0x4fdc('0x10e')]['createUIElement'](_0x4fdc('0xeb'),{'class':_0x4fdc('0x72')+_0x4988f3}),_0x2b6760=_0x1dfe9d[_0x4fdc('0x103')]['toViewPosition'](_0x416bd5);_0x2618e9[_0x4fdc('0xc8')][_0x4fdc('0x54')]&&_0x1dfe9d[_0x4fdc('0x10e')][_0x4fdc('0x1a')](_0x4fdc('0x72')+_0x4988f3+_0x4fdc('0xa1'),_0xe07ec1),_0x39d196[_0x4fdc('0x9c')]==_0x2618e9&&_0x1dfe9d[_0x4fdc('0x10e')][_0x4fdc('0x1a')](_0x4fdc('0x94'),_0xe07ec1),_0x1dfe9d['writer'][_0x4fdc('0x4c')](_0x2b6760,_0xe07ec1),_0x1dfe9d[_0x4fdc('0x103')][_0x4fdc('0x79')](_0xe07ec1,_0x8b29c['markerName']);}_0x310d36||_0x24b524||!_0x29c69d||_0x57bed0(_0x29c69d);};}(this['editor']),{'priority':_0x4fdc('0x95')}),this[_0x4fdc('0x39')]['editing'][_0x4fdc('0x6c')]['on']('removeMarker:revision',(_0x188104,_0x158c9c,_0x3f6807)=>{const _0x5cacf9=_0x3f6807[_0x4fdc('0x103')][_0x4fdc('0xa3')](_0x158c9c[_0x4fdc('0xe6')]);if(_0x5cacf9)for(const _0x143495 of _0x5cacf9)(_0x143495['hasClass'](_0x4fdc('0x20'))||_0x143495['hasClass']('ck-suggestion-marker-merge'))&&(_0x3f6807[_0x4fdc('0x103')][_0x4fdc('0xe')](_0x143495,_0x158c9c[_0x4fdc('0xe6')]),_0x3f6807['writer'][_0x4fdc('0xf0')](_0x143495));},{'priority':_0x4fdc('0x95')}),this[_0x4fdc('0x39')][_0x4fdc('0x93')][_0x4fdc('0x6c')]['on']('addMarker:revision',(_0x4a928e,_0x48eb08,_0x5869b3)=>{const _0x2207b4=_0x48eb08[_0x4fdc('0xe6')][_0x4fdc('0x37')](':')[0x1],_0x2ea83f=this[_0x4fdc('0x99')](_0x2207b4);if(!_0x2ea83f)return null;const _0x30c62d=_0x4fdc('0x8b')==_0x2ea83f[_0x4fdc('0xb')]?_0x4fdc('0x37'):_0x4fdc('0x5c');if(_0x5869b3[_0x4fdc('0x7f')][_0x4fdc('0x27')](_0x48eb08['markerRange'],_0x4a928e['name']))for(const _0x59d82d of _0x48eb08[_0x4fdc('0x113')][_0x4fdc('0x65')]()){if(!_0x59d82d['is']('element',_0x4fdc('0x2e')))continue;const _0x23f911=_0x5869b3['writer'][_0x4fdc('0x22')]('span',{'class':_0x4fdc('0x72')+_0x30c62d}),_0x3234f6=_0x5869b3[_0x4fdc('0x103')][_0x4fdc('0x16')](this[_0x4fdc('0x39')]['model'][_0x4fdc('0xe4')](_0x59d82d));_0x2ea83f[_0x4fdc('0xc8')][_0x4fdc('0x54')]&&_0x5869b3['writer'][_0x4fdc('0x1a')]('ck-suggestion-marker-'+_0x30c62d+_0x4fdc('0xa1'),_0x23f911),this[_0x4fdc('0x9c')]==_0x2ea83f&&_0x5869b3[_0x4fdc('0x10e')][_0x4fdc('0x1a')](_0x4fdc('0x94'),_0x23f911),_0x5869b3['writer']['insert'](_0x3234f6,_0x23f911),_0x5869b3[_0x4fdc('0x103')][_0x4fdc('0x79')](_0x23f911,_0x48eb08[_0x4fdc('0xe6')]);}},{'priority':'high'}),this['editor']['model'][_0x4fdc('0x11')]['on']('change',()=>{this[_0x4fdc('0x39')]['editing'][_0x4fdc('0x7c')][_0x4fdc('0x2f')](_0x5e6c3b=>{for(const _0x3d1e97 of this[_0x4fdc('0x39')][_0x4fdc('0x3')]['document'][_0x4fdc('0xee')]()){const _0x363e67=this['editor'][_0x4fdc('0x3')][_0x4fdc('0x11')]['getRoot'](_0x3d1e97),_0x1a8141=this[_0x4fdc('0x39')][_0x4fdc('0x93')][_0x4fdc('0x7c')]['document'][_0x4fdc('0x108')](_0x3d1e97);if(_0x1a8141){const _0x562e40=_0x363e67['getAttribute'](_0x4fdc('0xe7'));if(_0x5e6c3b['removeAttribute'](_0x4fdc('0xe1'),_0x1a8141),_0x5e6c3b[_0x4fdc('0x5d')](_0x4fdc('0x60'),_0x1a8141),_0x5e6c3b[_0x4fdc('0x5d')](_0x4fdc('0x7e'),_0x1a8141),_0x5e6c3b[_0x4fdc('0x5d')]('ck-revision-history-root--active',_0x1a8141),_0x562e40){const _0x414e14=this[_0x4fdc('0x99')](_0x562e40);if(!_0x414e14)return null;_0x5e6c3b[_0x4fdc('0xd0')](_0x4fdc('0xe1'),_0x562e40,_0x1a8141),_0x5e6c3b[_0x4fdc('0x1a')](_0x4fdc('0x5a')+_0x414e14[_0x4fdc('0xb')],_0x1a8141),this[_0x4fdc('0x9c')]==_0x414e14&&_0x5e6c3b['addClass']('ck-revision-history-root--active',_0x1a8141);}}}});}),this[_0x4fdc('0x39')]['conversion'][_0x4fdc('0x66')](_0x4fdc('0x4d'))[_0x4fdc('0x3b')]({'view':_0x4fdc('0x4'),'model':_0x28c727=>'revision-comment:'+_0x28c727,'converterPriority':_0x4fdc('0xd9')}),this['editor']['conversion'][_0x4fdc('0x66')](_0x4fdc('0x4d'))[_0x4fdc('0x3b')]({'view':_0x4fdc('0x119'),'model':_0x76c549=>'revision-suggestion:'+_0x76c549,'converterPriority':_0x4fdc('0xd9')}),this['editor'][_0x4fdc('0x9d')][_0x4fdc('0x66')](_0x4fdc('0x1f'))['markerToData']({'model':_0x4fdc('0x52'),'view':_0x5f97d3=>({'name':_0x4fdc('0x74')+_0x5f97d3,'group':'revision-suggestion'}),'converterPriority':_0x4fdc('0xd9')}),this[_0x4fdc('0x39')]['conversion'][_0x4fdc('0x66')]('editingDowncast')[_0x4fdc('0x32')]({'model':'revision-suggestion','view':_0x401f07=>{const _0x751a6d=_0x401f07[_0x4fdc('0xe6')]['split'](':')[0x1];return'insertion'!=_0x751a6d&&_0x4fdc('0xda')!=_0x751a6d?null:{'classes':[_0x4fdc('0x46'),_0x4fdc('0xf1')+_0x751a6d]};}}),this[_0x4fdc('0x39')][_0x4fdc('0x93')]['downcastDispatcher']['on'](_0x4fdc('0xde'),et(this[_0x4fdc('0x39')],_0x4fdc('0x5c')),{'priority':_0x4fdc('0x95')}),this[_0x4fdc('0x39')][_0x4fdc('0x93')][_0x4fdc('0x6c')]['on'](_0x4fdc('0x88'),et(this[_0x4fdc('0x39')],_0x4fdc('0x37')),{'priority':_0x4fdc('0x95')}),this['editor'][_0x4fdc('0x93')][_0x4fdc('0x6c')]['on'](_0x4fdc('0x2d'),(_0x3919e5,_0x19bffb,_0x446eb1)=>{const _0x28d805=_0x446eb1[_0x4fdc('0x103')][_0x4fdc('0xa3')](_0x19bffb[_0x4fdc('0xe6')]);if(_0x28d805)for(const _0x2b631a of _0x28d805)_0x2b631a['is'](_0x4fdc('0x6'))&&(_0x446eb1[_0x4fdc('0x103')][_0x4fdc('0xe')](_0x2b631a,_0x19bffb['markerName']),_0x446eb1['writer']['remove'](_0x2b631a));},{'priority':'high'});}['_getChangeFromId'](_0x42bf10){return this[_0x4fdc('0x129')]['get'](_0x42bf10);}[_0x4fdc('0x10f')](_0x2e3d68){return this[_0x4fdc('0x100')]&&this[_0x4fdc('0x100')]['destroy'](),this['_changeView']=new _0x36d1ad(this[_0x4fdc('0x39')][_0x4fdc('0x118')],_0x2e3d68),this[_0x4fdc('0x100')];}[_0x4fdc('0x89')](){this[_0x4fdc('0x39')][_0x4fdc('0x3')]['document'][_0x4fdc('0x84')]['observeMarkers'](_0x4fdc('0xb4')),this['on'](_0x4fdc('0x11b'),(_0x5a0c47,_0x2f9aed,_0x32b92f,_0x14ab27)=>{_0x14ab27&&this[_0x4fdc('0x2b')]['remove'](_0x14ab27),_0x32b92f&&(this['_balloon'][_0x4fdc('0x8b')]({'view':_0x32b92f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1aa385=this[_0x4fdc('0x39')]['editing'],_0x26159b=this[_0x4fdc('0x99')](_0x32b92f[_0x4fdc('0x112')]);let _0x4445c5;if(_0x26159b[_0x4fdc('0xc8')]['isOnRoot']){const _0xca330f=_0x1aa385[_0x4fdc('0x7c')]['getDomRoot'](_0x26159b[_0x4fdc('0x38')]);_0x4445c5=Array[_0x4fdc('0xd8')](_0xca330f[_0x4fdc('0xd2')]());}else{const _0xc83adc=this['editor']['model'][_0x4fdc('0x51')][_0x4fdc('0xca')](_0x4fdc('0xcd')+_0x32b92f[_0x4fdc('0x112')]);_0x4445c5=Array[_0x4fdc('0xd8')](_0x1aa385['mapper'][_0x4fdc('0xa3')](_0xc83adc[_0x4fdc('0xcb')]))[_0x4fdc('0xd4')](_0x24d3b7=>_0x1aa385[_0x4fdc('0x7c')][_0x4fdc('0x86')]['mapViewToDom'](_0x24d3b7))['map'](_0x34c3cd=>Array[_0x4fdc('0xd8')](_0x34c3cd[_0x4fdc('0xd2')]()))[_0x4fdc('0x101')]();}if(!this['_activeViewTarget'])return _0x4445c5[0x0];return _0x4445c5['find'](_0x2869c4=>_0x2869c4[_0x4fdc('0x105')]-0x3<=this[_0x4fdc('0x47')]['y']&&_0x2869c4[_0x4fdc('0x67')]+0x3>=this[_0x4fdc('0x47')]['y']&&_0x2869c4[_0x4fdc('0x115')]-0x3<=this['_activeViewTarget']['x']&&_0x2869c4['right']+0x3>=this['_activeViewTarget']['x'])||_0x4445c5[0x0];}}}),this[_0x4fdc('0x2b')]['showStack'](_0x4fdc('0x126')));}),this['on'](_0x4fdc('0x64'),(_0x41c7e2,_0x4faca0,_0x27664b,_0x31b6f6)=>{this[_0x4fdc('0xdb')]=_0x27664b?this[_0x4fdc('0x10f')](_0x27664b):null,this[_0x4fdc('0x39')]['model']['change'](()=>{const _0x44b954=this[_0x4fdc('0x39')][_0x4fdc('0x93')];_0x31b6f6&&(_0x31b6f6[_0x4fdc('0xc8')][_0x4fdc('0x8c')]?_0x44b954['view'][_0x4fdc('0x2f')](_0x9449c9=>{_0x9449c9[_0x4fdc('0x5d')](_0x4fdc('0x1e'),_0x44b954[_0x4fdc('0x7c')][_0x4fdc('0x11')][_0x4fdc('0x108')](_0x31b6f6[_0x4fdc('0x38')]));}):_0x44b954[_0x4fdc('0xc1')](_0x4fdc('0xcd')+_0x31b6f6['id'])),_0x27664b&&(_0x27664b[_0x4fdc('0xc8')]['isOnRoot']?_0x44b954[_0x4fdc('0x7c')][_0x4fdc('0x2f')](_0x463114=>{_0x463114[_0x4fdc('0x1a')](_0x4fdc('0x1e'),_0x44b954[_0x4fdc('0x7c')][_0x4fdc('0x11')][_0x4fdc('0x108')](_0x27664b[_0x4fdc('0x38')]));}):_0x44b954['reconvertMarker'](_0x4fdc('0xcd')+_0x27664b['id']));});}),this[_0x4fdc('0x6e')](this['editor'][_0x4fdc('0x93')][_0x4fdc('0x7c')]['document'],_0x4fdc('0xf6'),(_0x30f73b,_0x58f667)=>{if(this[_0x4fdc('0x9c')])return;const _0x3fbd4a=this[_0x4fdc('0xf')](_0x58f667['target']),_0x371f10=this[_0x4fdc('0x129')][_0x4fdc('0xca')](_0x3fbd4a);_0x371f10?(this[_0x4fdc('0x47')]={'x':_0x58f667['domEvent']['x'],'y':_0x58f667[_0x4fdc('0xc5')]['y']},this['activeView']=this[_0x4fdc('0x10f')](_0x371f10)):(this[_0x4fdc('0x47')]=null,this['activeView']=null);}),this[_0x4fdc('0x6e')](this[_0x4fdc('0x39')]['editing'][_0x4fdc('0x7c')][_0x4fdc('0x11')],'mousedown',(_0x57cdfa,_0x5d61f0)=>{const _0x526222=this['_findChangeIdFromDomTarget'](_0x5d61f0[_0x4fdc('0x8a')]),_0x736ed=this['_changeIdToChange'][_0x4fdc('0xca')](_0x526222);_0x736ed?(this['_activeViewTarget']={'x':_0x5d61f0[_0x4fdc('0xc5')]['x'],'y':_0x5d61f0[_0x4fdc('0xc5')]['y']},_0x736ed===this['activeChange']?this[_0x4fdc('0x2b')][_0x4fdc('0xce')]():this[_0x4fdc('0x9c')]=_0x736ed):(this[_0x4fdc('0x47')]=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x55df80){do{const _0x304f19=_0x55df80[_0x4fdc('0x26')](_0x4fdc('0xe1'));if(_0x304f19)return _0x304f19;_0x55df80=_0x55df80['parent'];}while(_0x55df80);return null;}[_0x4fdc('0x114')](){this[_0x4fdc('0x39')][_0x4fdc('0x3')][_0x4fdc('0x2f')](_0x1af29d=>{for(const _0x534051 of this[_0x4fdc('0x39')][_0x4fdc('0x3')][_0x4fdc('0x51')])_0x1af29d[_0x4fdc('0x87')](_0x534051);});}}function et(_0x2846c5,_0xed7594){return(_0x3a21fd,_0x26a95a,_0x2c50fe)=>{if(!_0x2c50fe[_0x4fdc('0x7f')][_0x4fdc('0x27')](_0x26a95a[_0x4fdc('0x113')],_0x3a21fd[_0x4fdc('0xcb')]))return;const _0x388087=_0x26a95a['markerRange'][_0x4fdc('0xaf')](),_0x6d6ef9=_0x26a95a[_0x4fdc('0x113')][_0x4fdc('0x73')],_0x6f341=_0x2846c5[_0x4fdc('0x3')][_0x4fdc('0x13')];let _0x5c5cd0=null,_0x23882c=null,_0x203a1d=!0x1,_0x2ae7b4=!0x1;for(const _0x164a4a of _0x388087){const _0x2d7f9d=_0x164a4a['item'];_0x203a1d=_0x203a1d||_0x6f341[_0x4fdc('0x77')](_0x2d7f9d);const _0x3565ce=_0x2c50fe[_0x4fdc('0x103')][_0x4fdc('0x48')](_0x2d7f9d);if(_0x3565ce&&_0x3565ce['getCustomProperty'](_0x4fdc('0xf9')))return;_0x4fdc('0x31')==_0x164a4a[_0x4fdc('0xb')]&&(_0x6f341[_0x4fdc('0x104')](_0x2d7f9d)&&!_0x6f341[_0x4fdc('0x43')](_0x2d7f9d)&&(_0x2d7f9d[_0x4fdc('0x10c')]||_0x6d6ef9['isAtEnd']?_0x5c5cd0&&_0x5c5cd0[_0x4fdc('0xba')]==_0x2d7f9d||(_0x5c5cd0=_0x2d7f9d,_0x132450(_0x164a4a['previousPosition']),_0x2ae7b4=!0x0):_0x23882c=_0x23882c||_0x164a4a[_0x4fdc('0xc3')]));}function _0x132450(_0x3e59cb){const _0x44d880=_0x2c50fe[_0x4fdc('0x103')][_0x4fdc('0x16')](_0x3e59cb),_0x1cedb3=_0x2c50fe[_0x4fdc('0x10e')][_0x4fdc('0x22')](_0x4fdc('0xeb'),{'class':'ck-suggestion-preview-marker-'+_0xed7594});_0x2c50fe[_0x4fdc('0x10e')]['insert'](_0x44d880,_0x1cedb3),_0x2c50fe['mapper'][_0x4fdc('0x79')](_0x1cedb3,_0x26a95a[_0x4fdc('0xe6')]);}_0x203a1d||_0x2ae7b4||!_0x23882c||_0x132450(_0x23882c);};}export class RestoreRevisionCommand extends _0x27fe84{constructor(_0x5b52b4){super(_0x5b52b4);const _0x53ca5e=_0x5b52b4[_0x4fdc('0x7d')][_0x4fdc('0xca')](d);this['affectsData']=!0x1,this[_0x4fdc('0x6e')](_0x53ca5e,'change:isReady',()=>this[_0x4fdc('0xdd')]()),this[_0x4fdc('0x6e')](_0x53ca5e,_0x4fdc('0x9f'),()=>this[_0x4fdc('0xdd')]());}[_0x4fdc('0xbc')](){const _0x2f925d=this[_0x4fdc('0x39')],_0x4f4294=_0x2f925d[_0x4fdc('0x7d')]['get'](d),_0x603709=_0x4f4294['isReady']?_0x4f4294[_0x4fdc('0xb5')][_0x4fdc('0x2')]:null;_0x2f925d[_0x4fdc('0x5')][_0x4fdc('0xca')](_0x4fdc('0x3f'))[_0x4fdc('0xa8')](_0x603709);}[_0x4fdc('0xdd')](){const {isReady:_0x5802d4,isEnabled:_0x10b6ae}=this[_0x4fdc('0x39')]['plugins'][_0x4fdc('0xca')](d);this[_0x4fdc('0x90')]=_0x5802d4&&_0x10b6ae;}}export class ShowChangeCommand extends _0x27fe84{constructor(_0x428dfd,{direction:_0x242b81}){super(_0x428dfd);const _0x389706=_0x428dfd[_0x4fdc('0x7d')]['get'](d);this[_0x4fdc('0xbb')]=!0x1,this['_step']=_0x4fdc('0x11c')===_0x242b81?0x1:-0x1,this[_0x4fdc('0x6e')](_0x389706,'change:isReady',()=>this['refresh']()),this[_0x4fdc('0x6e')](_0x389706,_0x4fdc('0x9f'),()=>this[_0x4fdc('0xdd')]()),this[_0x4fdc('0x6e')](_0x389706,_0x4fdc('0x64'),()=>this['refresh']());}[_0x4fdc('0xbc')](){const _0x1878cb=this[_0x4fdc('0x39')],_0x3845e0=_0x1878cb[_0x4fdc('0x7d')][_0x4fdc('0xca')](d),{isNavigationMode:_0x5b30c4,currentChangeNumber:_0x193275}=_0x3845e0;let _0x2cfd9d;if(_0x3845e0[_0x4fdc('0x9c')]=_0x5b30c4?_0x3845e0[_0x4fdc('0xb5')][_0x4fdc('0x33')]['get'](_0x193275+this['_step']):_0x3845e0[_0x4fdc('0xb5')]['changes'][_0x4fdc('0x5f')],_0x3845e0['activeChange'][_0x4fdc('0xc8')]['isOnRoot'])_0x2cfd9d=_0x1878cb[_0x4fdc('0x93')][_0x4fdc('0x7c')][_0x4fdc('0x8f')](_0x3845e0[_0x4fdc('0x9c')][_0x4fdc('0x38')]);else{const _0x3ffe8e=_0x1878cb[_0x4fdc('0x3')][_0x4fdc('0x51')][_0x4fdc('0xca')](_0x4fdc('0xcd')+_0x3845e0['activeChange']['id']);_0x2cfd9d=_0xa79505(_0x1878cb['editing'],_0x3ffe8e);}_0x2bdbf6({'target':_0x2cfd9d,'viewportOffset':0x28});}[_0x4fdc('0xdd')](){const {isNavigationMode:_0x4fa98f,currentChangeNumber:_0x1ea7ea,numberOfChanges:_0x47f2af,isReady:_0x3bbfef,isEnabled:_0x4a9df9}=this[_0x4fdc('0x39')][_0x4fdc('0x7d')][_0x4fdc('0xca')](d);this['isEnabled']=!!(_0x4a9df9&&_0x3bbfef&&_0x47f2af)&&(!_0x4fa98f||(0x1===this[_0x4fdc('0x63')]?_0x1ea7ea<_0x47f2af-0x1:_0x1ea7ea>0x0));}}
|
|
23
|
+
const _0x49ed=['removeMarker','WidgetToolbarRepository','_cleanUp','diff','_setConversion','parent','revision-start','getWalker','unshift','createPositionBefore','_findChangeIdFromDomTarget','isLimit','-new','ck-suggestion-preview-marker-','changes','changeId','span','_removeUnsupportedChanges','view','shift','bindElementToMarker','isAtStart','loadRevisionData','toViewRange','isAtEnd','forEach','viewItem','useFillerType','collaboration.channelId','_markMismatchedRemovedTags','ck-revision-history-root--active','vid','end','isAttached','_cleanMarkers','setAttribute','splice','dataDowncast','addMarker:revision-suggestion:insertion','roots','set','addMarker:revision','revisionHistory','addRevision','addHighlight','catch','revision:','then','_makeModelFromTape','attributesAfter','default','children','locale','isOnRoot','upcast','getRevision','processor','change:activeView','nextSibling','isRemoveSuggestion','isReady','flat','wrap','revision-comment:','deletions','rootName','change','softBreak','distance','selection','isAdded','attachChange','schema','config','_changeIdToChange','detachRoot','endIndex','revision-suggestion','_removeMissingPairs','_getRevisionsRange','model','removeAttribute','backward','plugins','enqueueChange','editing','_markMarkers','ck-suggestion-marker','findIndex','showNextChange','_step','activeChange','createRevision','markersStart','removeMarker:revision','revisionHistoryAttachChange','error','marked','next','high','domEvent','_appendChild','_joinTapes','markerToHighlight','test','ck-revision-history-root-','level','delete','indexOf','showStack','numberOfChanges','bottom','resolve','_setChanges','ck-editor__editable__overlay','conversion','editingDowncast','insertions','createPositionFromPath','markerRange','low','addRoot','restoreRevision','_markInsertions','includes','oldRevisionId','isIncorrect','_removeRevisionMarkers','elementToAttribute','elementStart','pluginName','_getDiff','ck-suggestion-marker-split','string','from','markerName','ck-suggestion-marker--active','mapper','repository','element','init','document','isEnabled','modelRange','maxOffset','element:pre','RevisionViewer','suggestion:','isNavigationMode','change:isReady','_refreshStartEndIndex','uiElement','sort','editor','data-revision-','elementEnd','highest','listenTo','insertion','concat','ck-suggestion-marker-merge','getDomRoot','filter','newRevisionId','length','commands','isEqual','parse','ck-suggestion-preview-marker','vid_start','getRootNames','getAttribute','affectsData','right','isSuggestion','item','markerToData','showPreviousChange','_threeWayMerge','merge','isBefore','_activeViewTarget','execute','consume','remove','nextPosition','_update','createUIElement','range','attribute:vid','markersEnd','_getViewObj','_getChangeFromId','downcastDispatcher','_sortAndFilterDiffChanges','name','checkAttribute','left','get','reconvertMarker','start','data','_makeTape','getRoot','addClass','object','change:numberOfChanges','vid_end','startsWith','_markSuggestions','toModel','pairId','markers','ck-revision-history-root-add','adapter','ck-revision-history-root-remove','getClientRects','ck-suggestion-marker-','refresh','observeMarkers','removeMarker:revision-suggestion','_getViewForChange','has','_data','toViewPosition','_processTape','hasClass','forceDisabled','keys','bind','RevisionsRepository','type','map','isBlock','for','_initInteractions','getAttributes','dataToMarker','getIndex','hasAttribute','enableReadOnlyMode','target','isAddSuggestion','nodeAfter','createRangeIn','createRange','insert','_balloon','isCollapsed','startIndex','toViewElement','change:isEnabled','split','userId','toData','getCustomProperty','slice','text','getChild','activeView','side','code','isRemoved','offsetSize','destroy','add','previousPosition','addMarker:revision-suggestion:deletion','markerNameToElements','currentChangeNumber','_setDistance','diffData','revision-end','revision-viewer','top','compare','clear','revision','getRevisionRootsAttributes','_changeView','restoreRevisionCallback','_fixObsoleteTags','unbindElementFromMarkerName','abs','removeClass','_revisions','deletion','isAfter','index','isObject','attributes','revisionHistoryLabel','consumable','writer','data-change-id','push','revision-suggestion:'];(function(_0x189262,_0x49ed23){const _0xf120c6=function(_0x4017f1){while(--_0x4017f1){_0x189262['push'](_0x189262['shift']());}};_0xf120c6(++_0x49ed23);}(_0x49ed,0x6a));const _0xf120=function(_0x189262,_0x49ed23){_0x189262=_0x189262-0x0;let _0xf120c6=_0x49ed[_0x189262];return _0xf120c6;};import{Plugin as _0x2f68aa,Command as _0x3c975e}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3ffbc9}from'ckeditor5/src/utils';import{ContextualBalloon as _0x42c6be}from'ckeditor5/src/ui';import{DocumentFragment as _0x53359b,Element as _0x5d140e,Text as _0x57d44f,ViewDocumentFragment as _0x1df723,ViewText as _0x55826c,ViewElement as _0xc740e4,ViewContainerElement as _0x186255,ViewAttributeElement as _0x5f2ed2,ViewEmptyElement as _0x349638,ViewRawElement as _0x479f5d,ViewUIElement as _0x413bb0}from'ckeditor5/src/engine';import{Users as _0xe464f2,getMarkerDomElement as _0x511d68}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b76d4 from'./ui/revisionviewer/changedetailsview';import _0x2db0e2 from'./revisionsrepository';import _0x2ea2e6 from'./changeitem';import{default as _0x578411}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x473e16}from'lodash-es';const tt={'c':_0x186255,'a':_0x5f2ed2,'e':_0x349638,'r':_0x479f5d,'u':_0x413bb0};export default class d extends _0x2f68aa{static get[_0xf120('0x18')](){return _0xf120('0x28');}static get['requires'](){return[_0xe464f2,_0x42c6be,_0x2db0e2];}constructor(_0x3d142e){super(_0x3d142e),this[_0xf120('0x20')]=this['editor'][_0xf120('0x112')][_0xf120('0x5c')](_0xf120('0x7c')),this[_0xf120('0xe7')](_0xf120('0x11a'),null),this[_0xf120('0xe7')](_0xf120('0x99'),null),this[_0xf120('0x4b')]=null,this[_0xf120('0xe7')]('diff',null),this[_0xf120('0xe7')](_0xf120('0xfb'),!0x1),this['set'](_0xf120('0x24'),!0x0),this['on'](_0xf120('0x91'),(_0x1d5c12,_0x26215d,_0x3a3f64)=>{this[_0xf120('0x11a')]=null,this[_0xf120('0x99')]=null,this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x101')](_0x3bacc4=>{for(const _0x4f532a of this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0xd1')]['document'][_0xf120('0xe6')])_0x3a3f64?_0x3bacc4[_0xf120('0xb2')](_0xf120('0x8'),_0x4f532a):_0x3bacc4[_0xf120('0x62')](_0xf120('0x8'),_0x4f532a);});}),this[_0xf120('0x7b')](_0xf120('0x2a'))['to'](this,_0xf120('0x11a'),_0x5b4a5e=>null!==_0x5b4a5e),this[_0xf120('0x7b')](_0xf120('0xa3'))['to'](this,'isReady',this,_0xf120('0xc2'),this,'activeChange',(_0x420e8a,_0x1b4a78,_0x1d5248)=>_0x420e8a&&_0x1d5248?_0x1b4a78[_0xf120('0xcd')][_0xf120('0x84')](_0x1d5248):0x0),this[_0xf120('0x7b')](_0xf120('0x4'))['to'](this,'isReady',this,_0xf120('0xc2'),(_0x23240b,_0x4683e5)=>_0x23240b?_0x4683e5[_0xf120('0xcd')]['length']:0x0),this[_0xf120('0xad')]=null,this[_0xf120('0x109')]=new Map(),this[_0xf120('0x6c')]=null,this[_0xf120('0x8d')]=this[_0xf120('0x2f')][_0xf120('0x112')]['get'](_0x42c6be);}[_0xf120('0x22')](){const _0x330243=this[_0xf120('0x2f')],_0x15d202=new ShowChangeCommand(_0x330243,{'direction':_0xf120('0x111')}),_0x321e69=new ShowChangeCommand(_0x330243,{'direction':'forward'});(_0x330243[_0xf120('0x3b')]['add'](_0xf120('0x47'),_0x15d202),_0x330243[_0xf120('0x3b')][_0xf120('0x9f')](_0xf120('0x118'),_0x321e69),_0x330243[_0xf120('0x3b')][_0xf120('0x9f')](_0xf120('0x10'),new RestoreRevisionCommand(_0x330243)),this['on'](_0xf120('0x64'),()=>{_0x15d202[_0xf120('0x70')](),_0x321e69['refresh']();}),this[_0xf120('0xc3')](),this[_0xf120('0x81')](),_0x330243[_0xf120('0x86')]('revision-viewer'),_0x330243['plugins']['has'](_0xf120('0xc0')))&&_0x330243[_0xf120('0x112')][_0xf120('0x5c')](_0xf120('0xc0'))[_0xf120('0x79')](_0xf120('0xa7'));}async['getRevisionData'](_0x22ff42){await this[_0xf120('0xd5')](_0x22ff42);const _0x182103={};for(const _0x1fc975 in _0x22ff42[_0xf120('0xa5')]){if(_0x22ff42['diffData'][_0x1fc975][_0xf120('0x106')]&&!_0x22ff42[_0xf120('0xa5')][_0x1fc975][_0xf120('0x106')][_0xf120('0xe0')])continue;const _0x8b3b2c=this[_0xf120('0x15')](JSON[_0xf120('0x3d')](_0x22ff42['diffData'][_0x1fc975]['insertions'])),_0x2e91aa=this[_0xf120('0x2f')][_0xf120('0x114')]['view']['document'],_0x3dae12=new _0x1df723(_0x2e91aa,_0x8b3b2c[_0xf120('0x7e')](_0x23b4e4=>this[_0xf120('0x55')](_0x23b4e4)));this[_0xf120('0x2f')][_0xf120('0x5f')][_0xf120('0xf7')]['useFillerType'](_0xf120('0x120')),_0x182103[_0x1fc975]=this[_0xf120('0x2f')]['data'][_0xf120('0xf7')][_0xf120('0x94')](_0x3dae12),this[_0xf120('0x2f')][_0xf120('0x5f')][_0xf120('0xf7')][_0xf120('0xda')](_0xf120('0xf1'));}return _0x182103;}async[_0xf120('0xac')](_0x3668e0){await this[_0xf120('0xd5')](_0x3668e0);const _0xfe4e3d={};for(const _0x7e7e3 in _0x3668e0[_0xf120('0xa5')])_0x3668e0[_0xf120('0xa5')][_0x7e7e3][_0xf120('0x106')]&&!_0x3668e0['diffData'][_0x7e7e3][_0xf120('0x106')][_0xf120('0xe0')]||(_0xfe4e3d[_0x7e7e3]=_0x3668e0['diffData'][_0x7e7e3][_0xf120('0xf0')]||{});return _0xfe4e3d;}[_0xf120('0x15')](_0x1b1b4c){return(_0x1b1b4c=_0x1b1b4c[_0xf120('0x38')](_0x3ebe2a=>!_0x3ebe2a[_0xf120('0x59')]||_0xf120('0xc5')!==_0x3ebe2a[_0xf120('0x59')]&&_0xf120('0xa6')!==_0x3ebe2a[_0xf120('0x59')]))[_0xf120('0xd8')](_0x48a71a=>{'string'!=typeof _0x48a71a&&(_0x48a71a[_0xf120('0xf2')]=this['_removeRevisionMarkers'](_0x48a71a['children']),_0x48a71a['attributes']=_0x48a71a[_0xf120('0xb8')][_0xf120('0x38')](_0x30f1da=>!_0x30f1da[0x0]['startsWith'](_0xf120('0x30'))));}),_0x1b1b4c;}async[_0xf120('0xa9')](_0xf29883,_0x1cb1aa,_0x239a7e=!0x1){if(!this[_0xf120('0x24')])return;const _0x38fe0e=this[_0xf120('0xc2')],_0x5c9ace=this[_0xf120('0x20')],_0x5f1b31=_0xf120('0x1b')==typeof _0xf29883?_0x5c9ace[_0xf120('0xf6')](_0xf29883):_0xf29883,_0x1667c2=_0xf120('0x1b')==typeof _0x1cb1aa?_0x5c9ace[_0xf120('0xf6')](_0x1cb1aa):_0x1cb1aa,_0x3be5cb=_0x5f1b31['id'],_0x3258d3=_0x1667c2?_0x1667c2['id']:null;if(!_0x239a7e&&this[_0xf120('0xc2')]&&this['diff'][_0xf120('0x39')]===_0x3be5cb&&this[_0xf120('0xc2')][_0xf120('0x13')]===_0x3258d3)return Promise[_0xf120('0x6')]();this[_0xf120('0xfb')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0xf120('0xc2')]=new _0x578411(_0x3be5cb,_0x3258d3);const _0xa417fd=this[_0xf120('0x10e')](_0x5f1b31,_0x1667c2,!0x0)['map'](_0x3a98ce=>this[_0xf120('0xd5')](_0x3a98ce));return _0xa417fd[_0xf120('0xbd')](new Promise(_0x3ef857=>{setTimeout(_0x3ef857,0x14);})),Promise['all'](_0xa417fd)[_0xf120('0xee')](()=>{if(!this[_0xf120('0x24')])return;this['_cleanUp']();const _0x1f9522=this[_0xf120('0x19')](_0x3be5cb,_0x3258d3);for(const _0x2c067d of _0x1f9522['changes'])this[_0xf120('0x109')][_0xf120('0xe7')](_0x2c067d['id'],_0x2c067d);this[_0xf120('0x2f')]['model'][_0xf120('0x113')]({'isUndoable':!0x1},_0x5b2f99=>{for(const _0x3a5852 of this['editor']['model'][_0xf120('0x23')][_0xf120('0x40')]())_0x5b2f99['detachRoot'](_0x3a5852);for(const _0x1d9386 of Object[_0xf120('0x7a')](_0x1f9522[_0xf120('0x10f')])){const _0x2487ec=_0x5b2f99[_0xf120('0xf')](_0x1d9386);for(const _0xa7cd57 of Object[_0xf120('0x7a')](_0x1f9522[_0xf120('0xb8')][_0x1d9386]))_0x5b2f99[_0xf120('0xe2')](_0xa7cd57,_0x1f9522['attributes'][_0x1d9386][_0xa7cd57],_0x2487ec);_0x5b2f99[_0xf120('0x8c')](_0x1f9522[_0xf120('0x10f')][_0x1d9386],_0x2487ec,0x0);}}),this[_0xf120('0xc2')][_0xf120('0x7')](this[_0xf120('0x58')](_0x1f9522[_0xf120('0xcd')])),this[_0xf120('0xfb')]=!0x0;})[_0xf120('0xec')](_0x4532eb=>{console[_0xf120('0x11f')](_0x4532eb),this['_cleanUp'](),_0x38fe0e&&(this[_0xf120('0xc2')]=_0x38fe0e),this[_0xf120('0xfb')]=!0x0;});}['addRevisionData'](_0x245bf2,_0x5c6886){const _0x1eef60=this[_0xf120('0x20')][_0xf120('0x11b')](_0x245bf2);return _0x1eef60['on']('_update',(_0x19031c,_0x5596c1,_0x514058)=>_0x5c6886(_0x5596c1,_0x514058,_0x1eef60)),this[_0xf120('0x20')][_0xf120('0xea')](_0x1eef60),_0x1eef60;}[_0xf120('0xd5')](_0x46ae18){if(!_0x46ae18||_0x46ae18[_0xf120('0xa5')])return Promise[_0xf120('0x6')]();{const _0x52932a=this['editor'][_0xf120('0x108')][_0xf120('0x5c')](_0xf120('0xdb'));return this[_0xf120('0x6c')]['getRevision']({'channelId':_0x52932a,'revisionId':_0x46ae18['id']})[_0xf120('0xee')](_0x367868=>{_0x46ae18[_0xf120('0x50')]({'diffData':_0x367868[_0xf120('0xa5')]},!0x0);});}}[_0xf120('0xc1')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0xf120('0xad')]&&this[_0xf120('0xad')]['destroy'](),this[_0xf120('0xad')]=null,this[_0xf120('0x109')][_0xf120('0xaa')](),this[_0xf120('0x2f')][_0xf120('0x10f')]['enqueueChange']({'isUndoable':!0x1},_0x260717=>{for(const _0x385b6f of this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0x23')][_0xf120('0x40')]())_0x260717[_0xf120('0x10a')](_0x385b6f);});}[_0xf120('0x58')](_0x13bb78){const _0x1132ca=[],_0x184fcf=new Map();for(const _0x563098 of this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0x23')]['getRootNames']()){const _0x58c444=this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x37')](_0x563098);if(!_0x58c444)continue;const _0x1bd72f=_0x58c444['getClientRects']()['item'](0x0);_0x1bd72f&&(_0x1132ca[_0xf120('0xbd')](_0x563098),_0x184fcf['set'](_0x563098,_0x1bd72f));}return _0x1132ca[_0xf120('0x2e')]((_0x17ba38,_0x576562)=>{const _0x483401=_0x184fcf[_0xf120('0x5c')](_0x17ba38),_0x389e84=_0x184fcf[_0xf120('0x5c')](_0x576562);return _0x483401['y']-_0x389e84['y']||_0x483401['x']-_0x389e84['x'];}),(_0x13bb78=_0x13bb78['filter'](_0x1b2936=>_0x1132ca[_0xf120('0x12')](_0x1b2936[_0xf120('0x100')])))[_0xf120('0x2e')]((_0x432f4b,_0x43e128)=>_0x1132ca[_0xf120('0x2')](_0x432f4b[_0xf120('0x100')])-_0x1132ca[_0xf120('0x2')](_0x43e128[_0xf120('0x100')])),_0x13bb78;}[_0xf120('0x60')](_0x2eb8a9){const _0x38da59=Array[_0xf120('0x1c')](_0x2eb8a9[_0xf120('0x6a')])[_0xf120('0x38')](([_0xb96de4,_0x2b8701])=>_0xb96de4[_0xf120('0x66')](_0xf120('0xed'))&&!_0x2b8701[_0xf120('0x8e')]),_0x44bbbc=Array[_0xf120('0x1c')](this['editor'][_0xf120('0x10f')][_0xf120('0x8a')](_0x2eb8a9)[_0xf120('0xc6')]({'singleCharacters':!0x0}));if(0x0!=_0x38da59[_0xf120('0x3a')])for(const _0x11fa00 of _0x44bbbc){const [_0x44dde9,_0x5ed598]=_0x38da59[0x0],[,_0x48c922,_0x4b6125]=_0x44dde9[_0xf120('0x92')](':');if(_0x5ed598[_0xf120('0xdf')][_0xf120('0x3c')](_0x11fa00[_0xf120('0x4f')])&&_0x38da59['shift'](),(_0x11fa00[_0xf120('0xa0')][_0xf120('0x3c')](_0x5ed598[_0xf120('0x5e')])||_0x11fa00['previousPosition'][_0xf120('0xb5')](_0x5ed598[_0xf120('0x5e')]))&&('insertion'==_0x48c922?_0x11fa00[_0xf120('0x105')]={'userId':_0x4b6125}:_0xf120('0xb4')==_0x48c922&&(_0x11fa00['isRemoved']={'userId':_0x4b6125})),0x0==_0x38da59[_0xf120('0x3a')])break;}return _0x44bbbc;}['_refreshStartEndIndex'](_0x569ffe){const _0x2881f6=new Map();for(let _0x47e8ac=0x0;_0x47e8ac<_0x569ffe[_0xf120('0x3a')];_0x47e8ac++)_0xf120('0x97')===_0x569ffe[_0x47e8ac][_0xf120('0x7d')]?(_0x569ffe[_0x47e8ac]['item'][_0xf120('0x8f')]=_0x47e8ac,_0x569ffe[_0x47e8ac][_0xf120('0x45')][_0xf120('0x10b')]=_0x47e8ac):(_0xf120('0x17')===_0x569ffe[_0x47e8ac][_0xf120('0x7d')]?_0x569ffe[_0x47e8ac][_0xf120('0x45')][_0xf120('0x8f')]=_0x47e8ac:_0xf120('0x31')===_0x569ffe[_0x47e8ac][_0xf120('0x7d')]&&(_0x569ffe[_0x47e8ac]['item'][_0xf120('0x10b')]=_0x47e8ac),_0x2881f6['set'](_0x569ffe[_0x47e8ac]['id'],_0x47e8ac));for(const _0x568c32 of _0x2881f6['values']())_0xf120('0x17')===_0x569ffe[_0x568c32][_0xf120('0x7d')]?_0x569ffe[_0x568c32][_0xf120('0x45')]['endIndex']=_0x2881f6[_0xf120('0x5c')](_0x569ffe[_0x568c32][_0xf120('0x69')]):_0xf120('0x31')===_0x569ffe[_0x568c32][_0xf120('0x7d')]&&(_0x569ffe[_0x568c32][_0xf120('0x45')]['startIndex']=_0x2881f6[_0xf120('0x5c')](_0x569ffe[_0x568c32]['pairId']));}[_0xf120('0x77')](_0x26a90a){for(let _0x54a890=0x0;_0x54a890<_0x26a90a['length'];_0x54a890++){if(_0xf120('0x17')===_0x26a90a[_0x54a890][_0xf120('0x7d')])_0x26a90a[_0x54a890][_0xf120('0x45')][_0xf120('0x8f')]=_0x54a890;else{if('elementEnd'===_0x26a90a[_0x54a890]['type']){_0x26a90a[_0x54a890][_0xf120('0x45')][_0xf120('0x10b')]=_0x54a890;const _0x411781=_0x26a90a[_0x54a890][_0xf120('0x45')][_0xf120('0x8f')];_0x26a90a[_0x411781]['pairId']=_0x26a90a[_0x54a890]['id'],_0x26a90a[_0x54a890]['pairId']=_0x26a90a[_0x411781]['id'];}else _0x26a90a[_0x54a890][_0xf120('0x45')]['startIndex']=_0x54a890,_0x26a90a[_0x54a890]['item'][_0xf120('0x10b')]=_0x54a890,_0x26a90a[_0x54a890][_0xf120('0x69')]=null;}_0x26a90a[_0x54a890]['markersStart']||(_0x26a90a[_0x54a890][_0xf120('0x11c')]=[],_0x26a90a[_0x54a890][_0xf120('0x54')]=[]);}}[_0xf120('0x11')](_0x581302,_0x362f5c){const _0x41e368=_0x581302[_0xf120('0x38')](_0x5f3293=>!_0x5f3293[_0xf120('0x105')]);for(let _0x1857e8=0x0;_0x1857e8<_0x362f5c[_0xf120('0x3a')];_0x1857e8++)_0x362f5c[_0x1857e8]['isAdded']&&(_0x41e368[_0x1857e8][_0xf120('0x105')]=_0x362f5c[_0x1857e8][_0xf120('0x105')]);}['_makeModelFromViewString'](_0x3f89e9){const _0x54d3a1=JSON[_0xf120('0x3d')](_0x3f89e9),_0x3da477=this['editor'][_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x23')],_0x2f4573=new _0x1df723(_0x3da477,_0x54d3a1[_0xf120('0x7e')](_0x30bba4=>this[_0xf120('0x55')](_0x30bba4)));return this[_0xf120('0x2f')][_0xf120('0x5f')][_0xf120('0x68')](_0x2f4573);}['_getViewObj'](_0x2e5637){const _0x23aa56=this[_0xf120('0x2f')][_0xf120('0x114')]['view'][_0xf120('0x23')];if(_0xf120('0x1b')==typeof _0x2e5637)return new _0x55826c(_0x23aa56,_0x2e5637);{const _0x36511e=_0x2e5637[_0xf120('0xf2')][_0xf120('0x7e')](_0x1275b9=>this['_getViewObj'](_0x1275b9));return new(tt[_0x2e5637[(_0xf120('0x7d'))]]||_0xc740e4)(_0x23aa56,_0x2e5637[_0xf120('0x59')],_0x2e5637[_0xf120('0xb8')],_0x36511e);}}[_0xf120('0x19')](_0x327084,_0x2f24f1=null){const _0x16d781=this[_0xf120('0x20')]['getRevision'](_0x327084),_0x35bb62=_0x2f24f1?this[_0xf120('0x20')][_0xf120('0xf6')](_0x2f24f1):null,_0x4c5e36=this[_0xf120('0x10e')](_0x16d781,_0x35bb62),_0xce3238=_0x4c5e36[_0x4c5e36[_0xf120('0x3a')]-0x1],_0x4072c6=new Map(),_0x3e72d9={'model':{},'attributes':{},'changes':[]},_0x35c39f=new Set(),_0x430fb2=new Map();for(let _0x288d31=_0x4c5e36['length']-0x1;_0x288d31>=0x0;_0x288d31--){const _0x35adf9=_0x4c5e36[_0x288d31];for(const _0x27ec34 of Object[_0xf120('0x7a')](_0x35adf9[_0xf120('0xa5')]))if(_0x35adf9[_0xf120('0xa5')][_0x27ec34][_0xf120('0x106')]){const _0x1d2e39=_0x35adf9[_0xf120('0xa5')][_0x27ec34]['attachChange'];_0x1d2e39['isAttached']?(_0x35c39f[_0xf120('0x9f')](_0x27ec34),_0x430fb2[_0xf120('0x74')](_0x27ec34)&&_0x430fb2[_0xf120('0x5c')](_0x27ec34)[_0xf120('0x93')]==_0x1d2e39[_0xf120('0x93')]?_0x430fb2[_0xf120('0x1')](_0x27ec34):_0x430fb2[_0xf120('0xe7')](_0x27ec34,_0x1d2e39)):_0x430fb2[_0xf120('0x74')](_0x27ec34)?(_0x35c39f['delete'](_0x27ec34),_0x430fb2[_0xf120('0x1')](_0x27ec34)):(_0x35c39f[_0xf120('0x9f')](_0x27ec34),_0x430fb2[_0xf120('0xe7')](_0x27ec34,_0x1d2e39));}else _0x35c39f[_0xf120('0x9f')](_0x27ec34);}for(const _0x39ae1f of _0x35c39f){const _0x41f711=_0x430fb2['has'](_0x39ae1f)&&!_0x430fb2[_0xf120('0x5c')](_0x39ae1f)['isAttached'];let _0x45de3b=_0x41f711?_0x4c5e36[_0xf120('0x3a')]-0x1:0x0;const _0x2a2489=_0x41f711?-0x1:0x1;for(;_0x4c5e36[_0x45de3b];){const _0x271b18=_0x4c5e36[_0x45de3b];if(_0x271b18[_0xf120('0xa5')][_0x39ae1f]){const _0x17604b=_0x41f711?_0x271b18[_0xf120('0xa5')][_0x39ae1f]['attributesBefore']:_0x271b18[_0xf120('0xa5')][_0x39ae1f][_0xf120('0xf0')];_0x3e72d9[_0xf120('0xb8')][_0x39ae1f]=_0x17604b?_0x473e16(_0x17604b):{};break;}_0x45de3b+=_0x2a2489;}}for(const _0x321941 of _0x4c5e36){_0x321941[_0xf120('0x10f')]={};for(const _0x4b1afd of _0x321941['authors'])_0x4072c6['set'](_0x4b1afd['id'],_0x4b1afd);for(const _0x2fb298 of _0x35c39f){const _0x1d5643=_0x321941[_0xf120('0xa5')][_0x2fb298]?_0x321941[_0xf120('0xa5')][_0x2fb298][_0xf120('0xb')]:'[]',_0x4ef0d0=_0x321941[_0xf120('0xa5')][_0x2fb298]?_0x321941[_0xf120('0xa5')][_0x2fb298][_0xf120('0xff')]:'[]';_0x321941[_0xf120('0x10f')][_0x2fb298]={'insertions':this['_makeModelFromViewString'](_0x1d5643),'deletions':this['_makeModelFromViewString'](_0x4ef0d0)};}}for(const _0x3a84e1 of _0x35c39f){let _0x4dbebc=null,_0x2f817d=0x0;const _0x5a8ddb=new Map(Array[_0xf120('0x1c')](_0x16d781['model'][_0x3a84e1][_0xf120('0xb')]['markers'])['filter'](([_0x318e81])=>!_0x318e81[_0xf120('0x66')](_0xf120('0xed'))));let _0x54fd79=0x0;for(const _0x5991da of _0x4c5e36){const _0x30c045=this[_0xf120('0x60')](_0x5991da['model'][_0x3a84e1][_0xf120('0xb')]);_0x5991da==_0x16d781?(_0x4dbebc=_0x30c045,_0x2f817d=_0x4dbebc[_0xf120('0x3a')],_0x4dbebc[_0xf120('0xd8')](_0x44b4f5=>{_0x44b4f5['id']=_0x54fd79++;}),this['_processTape'](_0x4dbebc)):this[_0xf120('0x11')](_0x4dbebc,_0x30c045);const _0x4db565=_0x4dbebc[_0xf120('0x38')](_0x1cd6b5=>!_0x1cd6b5[_0xf120('0x105')])[_0xf120('0x7e')](_0x517a87=>_0x517a87['id']);let _0x41d80a=0x0;const _0x54ed0c=this[_0xf120('0x60')](_0x5991da[_0xf120('0x10f')][_0x3a84e1][_0xf120('0xff')]);_0x54ed0c[_0xf120('0xd8')](_0x2e27fa=>{_0x2e27fa[_0xf120('0x9c')]?_0x2e27fa['id']=_0x2f817d++:_0x2e27fa['id']=_0x4db565[_0x41d80a++];}),this[_0xf120('0x77')](_0x54ed0c),this[_0xf120('0xa4')](_0x4dbebc,_0xf120('0x105')),this[_0xf120('0xa4')](_0x54ed0c,'isRemoved'),_0x5991da==_0x16d781&&this[_0xf120('0x115')](_0x4dbebc,_0x5a8ddb),_0x4dbebc=this[_0xf120('0x125')](_0x4dbebc,_0x54ed0c),this[_0xf120('0x2c')](_0x4dbebc),this['_setDistance'](_0x4dbebc,_0xf120('0x9c'));}_0x4dbebc=_0x4dbebc['filter'](_0x55f57d=>!(_0x55f57d[_0xf120('0x105')]&&_0x55f57d[_0xf120('0x9c')]));const _0x18333f=new Map(_0xce3238['model'][_0x3a84e1]['deletions'][_0xf120('0x6a')]),_0x4d5dfc=new Set(_0x5a8ddb[_0xf120('0x7a')]());for(const _0x45b21 of _0x18333f['keys']())_0x4d5dfc[_0xf120('0x1')](_0x45b21);this[_0xf120('0x67')](_0x4dbebc,_0x4d5dfc),this[_0xf120('0xaf')](_0x4dbebc),_0x4dbebc=this[_0xf120('0x10d')](_0x4dbebc),_0x4dbebc=this[_0xf120('0xdc')](_0x4dbebc),_0x4dbebc=this[_0xf120('0xd0')](_0x4dbebc);const {root:_0x4faa34,changes:_0x5684c7}=this['_makeModelFromTape'](_0x4dbebc,_0x4072c6,_0x3a84e1);_0x3e72d9['model'][_0x3a84e1]=_0x4faa34;const _0xeebc6f=_0x430fb2['get'](_0x3a84e1);if(_0xeebc6f){const _0x559623=_0x4072c6['get'](_0xeebc6f['userId']),_0x1f6ff4=new _0x2ea2e6({'author':_0x559623,'type':_0xeebc6f[_0xf120('0xe0')]?_0xf120('0x9f'):_0xf120('0x4e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3a84e1});_0x5684c7[_0xf120('0xc7')](_0x1f6ff4),_0x3e72d9['attributes'][_0x3a84e1][_0xf120('0x11e')]=_0x1f6ff4['id'];}_0x3e72d9['changes']=_0x3e72d9[_0xf120('0xcd')]['concat'](_0x5684c7);}return _0x3e72d9;}['_markMarkers'](_0x24b14c,_0x9b023a){for(let _0x120eeb=0x0;_0x120eeb<_0x24b14c[_0xf120('0x3a')];_0x120eeb++)for(const [_0x43aa39,_0x38726a]of _0x9b023a)_0x38726a[_0xf120('0x5e')]['isEqual'](_0x24b14c[_0x120eeb]['previousPosition'])&&_0x24b14c[_0x120eeb]['markersStart'][_0xf120('0xbd')](_0x43aa39),_0x38726a[_0xf120('0xdf')]['isEqual'](_0x24b14c[_0x120eeb][_0xf120('0x4f')])&&_0x24b14c[_0x120eeb][_0xf120('0x54')][_0xf120('0xbd')](_0x43aa39);}[_0xf120('0x125')](_0xa044fb,_0x50236e){let _0xe41d78=[],_0x23e7c0=0x0,_0x2acc91=0x0;for(;_0x23e7c0<_0xa044fb['length']||_0x2acc91<_0x50236e[_0xf120('0x3a')];){const _0x5ab46e=_0xa044fb[_0x23e7c0]||{},_0x1f4c24=_0x50236e[_0x2acc91]||{};if(_0x5ab46e['id']==_0x1f4c24['id'])_0x23e7c0++,_0x2acc91++,_0xe41d78[_0xf120('0xbd')](_0x5ab46e);else{if(_0x1f4c24[_0xf120('0x9c')]&&_0x5ab46e['isAdded']){const {commonTape:_0x2a2a11,iEnd:_0x329bf5,jEnd:_0x16c283}=this[_0xf120('0x48')](_0xa044fb,_0x23e7c0,_0x50236e,_0x2acc91);_0xe41d78=_0xe41d78[_0xf120('0x35')](_0x2a2a11),_0x23e7c0=_0x329bf5,_0x2acc91=_0x16c283;}else _0x1f4c24[_0xf120('0x9c')]?(_0x2acc91++,_0xe41d78[_0xf120('0xbd')](_0x1f4c24)):(_0x23e7c0++,_0xe41d78[_0xf120('0xbd')](_0x5ab46e));}}return _0xe41d78;}['_markSuggestions'](_0x1b561c,_0x5b4a26){const _0x3520f0=[];for(let _0x438984=0x0;_0x438984<_0x1b561c[_0xf120('0x3a')];_0x438984++){for(let _0x391f90=0x0;_0x391f90<_0x1b561c[_0x438984][_0xf120('0x11c')]['length'];_0x391f90++){const _0x367650=_0x1b561c[_0x438984][_0xf120('0x11c')][_0x391f90];if(!_0x5b4a26['has'](_0x367650))continue;const {group:_0x46e220,type:_0xda20a3,authorId:_0x3b5572}=_0x16a8de(_0x367650);'revision-suggestion'!=_0x46e220||_0xf120('0x34')!=_0xda20a3&&'deletion'!=_0xda20a3||(_0x3520f0[_0xf120('0xc7')]({'type':_0xda20a3,'name':_0x367650,'userId':_0x3b5572}),_0x1b561c[_0x438984][_0xf120('0x11c')][_0xf120('0xe3')](_0x391f90,0x1),_0x391f90--);}_0x54b474(_0x1b561c[_0x438984]);for(let _0x2270da=0x0;_0x2270da<_0x1b561c[_0x438984][_0xf120('0x54')][_0xf120('0x3a')];_0x2270da++){const _0x5ddb6e=_0x1b561c[_0x438984][_0xf120('0x54')][_0x2270da];if(!_0x5b4a26['has'](_0x5ddb6e))continue;const {group:_0x1f83a4,type:_0x340f04}=_0x16a8de(_0x5ddb6e);if(_0xf120('0x10c')!=_0x1f83a4||_0xf120('0x34')!=_0x340f04&&_0xf120('0xb4')!=_0x340f04)continue;_0x1b561c[_0x438984][_0xf120('0x54')]['splice'](_0x2270da,0x1),_0x2270da--;const _0x2c3906=_0x3520f0[_0xf120('0x117')](_0x9dcdb=>_0x9dcdb['name']==_0x5ddb6e);_0x2c3906>-0x1&&_0x3520f0[_0xf120('0xe3')](_0x2c3906,0x1);}}function _0x16a8de(_0x5c69a5){const _0x3a2b14=_0x5c69a5['split'](':');return{'group':_0x3a2b14[0x0],'type':_0x3a2b14[0x1],'subType':_0x3a2b14[_0xf120('0x3a')]>=0x5?_0x3a2b14[0x2]:null,'id':_0x3a2b14[_0xf120('0x3a')]<0x5?_0x3a2b14[0x2]:_0x3a2b14[0x3],'authorId':_0x3a2b14[_0xf120('0x3a')]<0x5?_0x3a2b14[0x3]:_0x3a2b14[0x4],'markerCount':0x6==_0x3a2b14['length']?_0x3a2b14[0x5]:null};}function _0x54b474(_0x1f6f4c){for(let _0x179d2c=0x0;_0x179d2c<_0x3520f0[_0xf120('0x3a')];_0x179d2c++){if(_0x1f6f4c['isAdded']&&'insertion'==_0x3520f0[_0x179d2c]['type'])return _0x1f6f4c[_0xf120('0x88')]=_0x3520f0[_0x179d2c],void delete _0x1f6f4c[_0xf120('0x105')];if(!_0x1f6f4c[_0xf120('0x105')]&&!_0x1f6f4c[_0xf120('0x9c')]&&'deletion'==_0x3520f0[_0x179d2c][_0xf120('0x7d')])return void(_0x1f6f4c[_0xf120('0xfa')]=_0x3520f0[_0x179d2c]);}}}['_setDistance'](_0x23f435,_0x55322c){let _0x11544c=0x0,_0x27aac1=!0x1;const _0x420145=new Map();for(const _0x2d6f88 of _0x23f435)_0x2d6f88[_0x55322c]?_0x27aac1&&(_0x11544c++,_0x27aac1=!0x1):(_0x11544c++,_0x27aac1=!0x0),_0x420145['set'](_0x2d6f88['id'],_0x11544c);for(let _0x1157c0=0x0;_0x1157c0<_0x23f435[_0xf120('0x3a')];_0x1157c0++){if('isRemoved'==_0x55322c&&_0x23f435[_0x1157c0][_0xf120('0x105')]||_0xf120('0x105')==_0x55322c&&_0x23f435[_0x1157c0][_0xf120('0x9c')])continue;if(_0xf120('0x97')==_0x23f435[_0x1157c0][_0xf120('0x7d')]){_0x23f435[_0x1157c0][_0xf120('0x103')]=0x0;continue;}const _0x182952=_0x420145['get'](_0x23f435[_0x1157c0][_0xf120('0x69')]),_0x4cbb53=_0x420145['get'](_0x23f435[_0x1157c0]['id']);_0x23f435[_0x1157c0][_0xf120('0x103')]=_0x182952-_0x4cbb53;}}[_0xf120('0x10e')](_0x45d29d,_0x277fdc,_0x93fedd=!0x1){const _0x3af90a=[];let _0x37cf38=this[_0xf120('0x20')][_0xf120('0x84')](_0x45d29d),_0x169524=this[_0xf120('0x20')]['getIndex'](_0x277fdc);for(-0x1==_0x169524&&(_0x169524=this['repository'][_0xf120('0xb3')][_0xf120('0x3a')],_0x93fedd=!0x1);_0x37cf38<_0x169524;)_0x3af90a[_0xf120('0xbd')](this[_0xf120('0x20')][_0xf120('0xf6')](_0x37cf38)),_0x37cf38++;return _0x93fedd&&_0x3af90a[_0xf120('0xbd')](this[_0xf120('0x20')][_0xf120('0xf6')](_0x37cf38)),_0x3af90a;}[_0xf120('0x48')](_0x162159,_0x1cca80,_0x1d44fa,_0x339eef){const _0x1596d8=this[_0xf120('0x2f')]['model'][_0xf120('0x107')];let _0x57514e=_0x1cca80;for(;_0x162159[_0x57514e]&&_0x162159[_0x57514e][_0xf120('0x105')];)_0x57514e++;let _0x5cc2cd=_0x339eef;for(;_0x1d44fa[_0x5cc2cd]&&_0x1d44fa[_0x5cc2cd][_0xf120('0x9c')];)_0x5cc2cd++;_0x4dfb5e(_0x162159,_0x1cca80,_0x57514e),_0x4dfb5e(_0x1d44fa,_0x339eef,_0x5cc2cd);const _0x43dc5e=_0x1d44fa[_0xf120('0x96')](_0x339eef,_0x5cc2cd)['concat'](_0x162159[_0xf120('0x96')](_0x1cca80,_0x57514e));return _0x43dc5e[_0xf120('0x2e')]((_0xd56c14,_0x96d353)=>_0xd56c14[_0xf120('0x9a')]!=_0x96d353[_0xf120('0x9a')]?_0xd56c14[_0xf120('0x9a')]-_0x96d353[_0xf120('0x9a')]:_0xd56c14[_0xf120('0x0')]!=_0x96d353[_0xf120('0x0')]?_0xd56c14['level']-_0x96d353[_0xf120('0x0')]:_0xd56c14[_0xf120('0x103')]!=_0x96d353[_0xf120('0x103')]?_0x96d353[_0xf120('0x103')]-_0xd56c14[_0xf120('0x103')]:!!_0xd56c14[_0xf120('0x105')]!=!!_0x96d353[_0xf120('0x105')]?-0x1==_0xd56c14['side']||0x0==_0xd56c14['side']?_0xd56c14[_0xf120('0x105')]?-0x1:0x1:_0xd56c14[_0xf120('0x105')]?0x1:-0x1:_0xd56c14[_0xf120('0xb6')]-_0x96d353['index']),{'commonTape':_0x43dc5e,'iEnd':_0x57514e,'jEnd':_0x5cc2cd};function _0x4dfb5e(_0xa4fac7,_0x1c1987,_0x359fdc){let _0x5796a5=-0x1,_0x132eec=Number['POSITIVE_INFINITY'],_0x364ac9=!0x0;for(let _0x3f6cde=_0x1c1987;_0x3f6cde<_0x359fdc;_0x3f6cde++)if(_0x1596d8['isInline'](_0xa4fac7[_0x3f6cde][_0xf120('0x45')])||(_0x364ac9=!0x1),_0xa4fac7[_0x3f6cde][_0xf120('0x45')][_0xf120('0x8f')]<_0x1c1987&&(_0x5796a5=_0x3f6cde),_0xa4fac7[_0x3f6cde][_0xf120('0x45')][_0xf120('0x10b')]>=_0x359fdc){_0x132eec=_0x3f6cde;break;}_0x364ac9&&(_0x5796a5=_0x359fdc-0x1);for(let _0x5f48ac=_0x1c1987;_0x5f48ac<_0x359fdc;_0x5f48ac++)_0xa4fac7[_0x5f48ac][_0xf120('0x9a')]=_0x5f48ac<=_0x5796a5?-0x1:_0x5f48ac<_0x132eec?0x0:0x1,_0xa4fac7[_0x5f48ac][_0xf120('0xb6')]=_0x5f48ac;let _0x1ad37d=0x0;for(let _0x1468d9=_0x1c1987;_0x1468d9<=_0x5796a5;_0x1468d9++)0x0==_0xa4fac7[_0x1468d9]['distance']?_0xa4fac7[_0x1468d9][_0xf120('0x0')]=_0x1ad37d:(_0x1ad37d++,_0xa4fac7[_0x1468d9]['level']=_0x1ad37d,_0x1ad37d++);for(let _0xdb40b7=_0x1c1987;_0xdb40b7<_0x359fdc;_0xdb40b7++)0x0==_0xa4fac7[_0xdb40b7][_0xf120('0x9a')]&&(_0xa4fac7[_0xdb40b7][_0xf120('0x0')]=_0x1ad37d);_0x1ad37d=0x0;for(let _0x5b1101=_0x359fdc-0x1;_0x5b1101>=_0x132eec;_0x5b1101--)0x0==_0xa4fac7[_0x5b1101][_0xf120('0x103')]?_0xa4fac7[_0x5b1101][_0xf120('0x0')]=_0x1ad37d:(_0x1ad37d--,_0xa4fac7[_0x5b1101][_0xf120('0x0')]=_0x1ad37d,_0x1ad37d--);}}[_0xf120('0xaf')](_0x28aced){const _0x2b15c3=new Map(),_0x2ae338=this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0x107')];for(let _0x56e082=0x1;_0x56e082<_0x28aced['length'];_0x56e082++){let _0x998a99,_0x11e867,_0x24b283;const _0x492a9f=_0x28aced[_0x56e082],_0x2c0009=_0x28aced[_0x56e082-0x1];if(_0xf120('0x97')==_0x492a9f[_0xf120('0x7d')])continue;if(_0x492a9f['type']!=_0x2c0009['type'])continue;if(!_0x2ae338['isBlock'](_0x2c0009['item'])||_0x2ae338[_0xf120('0xca')](_0x2c0009[_0xf120('0x45')]))continue;if(!_0x2ae338['isBlock'](_0x492a9f[_0xf120('0x45')])||_0x2ae338[_0xf120('0xca')](_0x492a9f[_0xf120('0x45')]))continue;if((_0x28aced[_0x56e082][_0xf120('0x105')]||_0x28aced[_0x56e082]['isAddSuggestion'])&&_0x28aced[_0x56e082-0x1]['isRemoved'])_0x998a99=_0x28aced[_0x56e082],_0x11e867=_0x28aced[_0x56e082-0x1],_0x24b283=_0x56e082-0x1;else{if(!_0x28aced[_0x56e082]['isRemoved']||!_0x28aced[_0x56e082-0x1]['isAdded']&&!_0x28aced[_0x56e082-0x1]['isAddSuggestion'])continue;_0x998a99=_0x28aced[_0x56e082-0x1],_0x11e867=_0x28aced[_0x56e082],_0x24b283=_0x56e082;}const _0x224ad5=_0x998a99['level']==_0x11e867[_0xf120('0x0')],_0x4ac079=Math[_0xf120('0xb1')](_0x998a99[_0xf120('0x0')])<Math[_0xf120('0xb1')](_0x11e867['level'])&&0x0==_0x11e867[_0xf120('0x103')];(_0x224ad5||_0x4ac079)&&(_0x2b15c3['set'](_0x11e867['id'],_0x998a99['id']),_0x28aced[_0xf120('0xe3')](_0x24b283,0x1),_0x56e082--,_0x998a99['isAdded']=!0x1);}for(let _0x2664d9=0x0;_0x2664d9<_0x28aced['length'];_0x2664d9++)_0x2b15c3['has'](_0x28aced[_0x2664d9][_0xf120('0x69')])&&(_0x28aced[_0x2664d9][_0xf120('0x69')]=_0x2b15c3['get'](_0x28aced[_0x2664d9]['pairId']));}[_0xf120('0x10d')](_0xe1a7a4){const _0x19159d=new Set(_0xe1a7a4[_0xf120('0x7e')](_0x4bff23=>_0x4bff23['id']));for(let _0x143fa7=0x0;_0x143fa7<_0xe1a7a4[_0xf120('0x3a')];_0x143fa7++)_0x19159d[_0xf120('0x74')](_0xe1a7a4[_0x143fa7][_0xf120('0x69')])||0x0==_0xe1a7a4[_0x143fa7][_0xf120('0x103')]||(_0xe1a7a4[_0x143fa7][_0xf120('0x14')]=!0x0);return _0xe1a7a4[_0xf120('0x38')](_0x12edc5=>!_0x12edc5[_0xf120('0x14')]);}[_0xf120('0xdc')](_0x276934){const _0x255f77=new Set();for(let _0x59ed1a=0x0;_0x59ed1a<_0x276934['length'];_0x59ed1a++){if(_0x255f77[_0xf120('0x74')](_0x276934[_0x59ed1a]['id'])&&_0x276934[_0x59ed1a][_0xf120('0x9c')]&&(_0x276934[_0x59ed1a]['isIncorrect']=!0x0),_0x276934[_0x59ed1a][_0xf120('0x14')])continue;if(0x0==_0x276934[_0x59ed1a][_0xf120('0x103')])continue;if(_0xf120('0x17')!=_0x276934[_0x59ed1a][_0xf120('0x7d')])continue;if(null==_0x276934[_0x59ed1a]['pairId'])continue;let _0x3fc64c=_0x59ed1a+0x1,_0xaa6f64=0x0;for(;_0x276934[_0x3fc64c]['id']!=_0x276934[_0x59ed1a]['pairId'];)_0xf120('0x17')==_0x276934[_0x3fc64c][_0xf120('0x7d')]?_0xaa6f64++:_0xf120('0x31')==_0x276934[_0x3fc64c][_0xf120('0x7d')]&&_0xaa6f64--,_0x3fc64c++;if(0x0!=_0xaa6f64){if(_0x276934[_0x59ed1a][_0xf120('0x9c')])_0x276934[_0x59ed1a][_0xf120('0x14')]=!0x0;else for(;_0x3fc64c!=_0x59ed1a;)_0x276934[_0x3fc64c][_0xf120('0x9c')]&&0x0!=_0x276934[_0x3fc64c][_0xf120('0x103')]&&(_0x276934[_0x3fc64c]['isIncorrect']=!0x0,_0x255f77['add'](_0x276934[_0x3fc64c][_0xf120('0x69')])),_0x3fc64c--;}}return _0x276934[_0xf120('0x38')](_0xa188ec=>!_0xa188ec['isIncorrect']);}[_0xf120('0xd0')](_0x3df70d){const _0x2a513b=this[_0xf120('0x2f')][_0xf120('0x10f')]['schema'];for(let _0x1450b4=0x0;_0x1450b4<_0x3df70d[_0xf120('0x3a')];_0x1450b4++){if(!(_0x3df70d[_0x1450b4][_0xf120('0x105')]||_0x3df70d[_0x1450b4]['isAddSuggestion']||_0x3df70d[_0x1450b4][_0xf120('0x9c')]||_0x3df70d[_0x1450b4][_0xf120('0xfa')]))continue;if(0x0==_0x3df70d[_0x1450b4][_0xf120('0x103')])continue;const _0x10691b=_0x3df70d[_0x1450b4]['item'];_0x2a513b[_0xf120('0x7f')](_0x10691b)||_0x2a513b[_0xf120('0xca')](_0x10691b)||(_0x3df70d[_0x1450b4][_0xf120('0x105')]&&delete _0x3df70d[_0x1450b4][_0xf120('0x105')],_0x3df70d[_0x1450b4][_0xf120('0x88')]&&delete _0x3df70d[_0x1450b4][_0xf120('0x88')],_0x3df70d[_0x1450b4][_0xf120('0xfa')]&&delete _0x3df70d[_0x1450b4][_0xf120('0xfa')],_0x3df70d[_0x1450b4][_0xf120('0x9c')]&&(_0x3df70d[_0x1450b4]['isIncorrect']=!0x0));}return _0x3df70d[_0xf120('0x38')](_0x49c8ab=>!_0x49c8ab[_0xf120('0x14')]);}[_0xf120('0xef')](_0x1236a4,_0x485ea6,_0x5e57db){const _0x4741cd=new _0x53359b(),_0x435c16=[],_0x10ef43=new Map(),_0x256313=this[_0xf120('0x2f')]['model'],_0x1d46f7=_0x256313['schema'],_0x19d28b=[_0x4741cd],_0x413c9a={},_0x57d0cd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4ce793=null;const _0x4b2dda=[0x0];for(let _0x5b81ed=0x0;_0x5b81ed<_0x1236a4[_0xf120('0x3a')];_0x5b81ed++){let _0x9b353,_0x73ce7e;if(_0xf120('0x17')===_0x1236a4[_0x5b81ed]['type']){_0x9b353=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda);const _0x1b2129=new _0x5d140e(_0x1236a4[_0x5b81ed][_0xf120('0x45')][_0xf120('0x59')],_0x1236a4[_0x5b81ed]['item'][_0xf120('0x82')]());_0x19d28b[0x0][_0xf120('0x124')](_0x1b2129),_0x4b2dda[_0xf120('0xbd')](0x0),_0x19d28b['unshift'](_0x1b2129),_0x73ce7e=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda),_0x4ce793=null;}else{if('elementEnd'===_0x1236a4[_0x5b81ed][_0xf120('0x7d')])_0x19d28b[_0xf120('0xd2')](),_0x9b353=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda),_0x4b2dda['pop'](),_0x4b2dda[_0x4b2dda[_0xf120('0x3a')]-0x1]++,_0x73ce7e=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda),_0x4ce793=null;else{if(_0x9b353=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda),_0x4ce793&&_0x1bd1d8(_0x4ce793,_0x1236a4[_0x5b81ed][_0xf120('0x45')]))_0x4ce793[_0xf120('0x75')]+=_0x1236a4[_0x5b81ed]['item'][_0xf120('0x5f')];else{const _0xbc1251=new _0x57d44f(_0x1236a4[_0x5b81ed][_0xf120('0x45')][_0xf120('0x5f')],_0x1236a4[_0x5b81ed][_0xf120('0x45')][_0xf120('0x82')]());_0x19d28b[0x0][_0xf120('0x124')](_0xbc1251),_0x4ce793=_0xbc1251;}_0x4b2dda[_0x4b2dda[_0xf120('0x3a')]-0x1]+=_0x1236a4[_0x5b81ed]['item'][_0xf120('0x9d')],_0x73ce7e=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda);}}for(const _0x183fad of _0x1236a4[_0x5b81ed][_0xf120('0x11c')])_0x10ef43[_0xf120('0xe7')](_0x183fad,{'start':_0x9b353,'end':null});_0x26d661('isRemoveSuggestion',_0x5b81ed,_0x9b353,_0x73ce7e),_0x26d661(_0xf120('0x88'),_0x5b81ed,_0x9b353,_0x73ce7e),_0x26d661(_0xf120('0x9c'),_0x5b81ed,_0x9b353,_0x73ce7e),_0x26d661(_0xf120('0x105'),_0x5b81ed,_0x9b353,_0x73ce7e);for(const _0xb7aeed of _0x1236a4[_0x5b81ed][_0xf120('0x54')]){_0x10ef43['get'](_0xb7aeed)[_0xf120('0xdf')]=_0x73ce7e;}}for(const [_0x184123,_0x1589c2]of _0x10ef43){const _0x324c69=this['editor'][_0xf120('0x10f')][_0xf120('0x8b')](_0x1589c2[_0xf120('0x5e')],_0x1589c2[_0xf120('0xdf')]);_0x4741cd[_0xf120('0x6a')][_0xf120('0xe7')](_0x184123,_0x324c69);}return _0x435c16[_0xf120('0x2e')]((_0x1be874,_0x2aa234)=>{const _0x425ad9=_0x4741cd[_0xf120('0x6a')][_0xf120('0x5c')]('revision:'+_0x1be874['id']),_0x1903a1=_0x4741cd[_0xf120('0x6a')]['get']('revision:'+_0x2aa234['id']);return _0x425ad9[_0xf120('0x5e')][_0xf120('0x4a')](_0x1903a1[_0xf120('0x5e')])?-0x1:_0x425ad9[_0xf120('0x5e')][_0xf120('0xb5')](_0x1903a1[_0xf120('0x5e')])?0x1:_0x425ad9[_0xf120('0xdf')][_0xf120('0x4a')](_0x1903a1[_0xf120('0xdf')])?-0x1:_0x425ad9[_0xf120('0xdf')][_0xf120('0xb5')](_0x1903a1[_0xf120('0xdf')])?0x1:_0xf120('0x9f')===_0x1be874[_0xf120('0x7d')]?-0x1:0x1;}),{'root':_0x4741cd,'changes':_0x435c16};function _0x26d661(_0x1ded27,_0x291777,_0x11bc85,_0x5c83c6){const _0x184c4f=!!_0x1236a4[_0x291777][_0x1ded27],_0x1d051f=_0x184c4f?_0x1236a4[_0x291777][_0x1ded27][_0xf120('0x93')]:null,_0x3bbb18=_0x291777===_0x1236a4[_0xf120('0x3a')]-0x1,_0x4dacf9=_0x57d0cd[_0x1ded27][0x0],_0x45f264=_0x1d46f7[_0xf120('0xb7')](_0x1236a4[_0x291777]['item']);!_0x413c9a[_0x1ded27]&&_0x184c4f?_0x413c9a[_0x1ded27]={'start':_0x11bc85,'tapeItem':_0x1236a4[_0x291777],'userId':_0x1d051f,'type':_0x1ded27}:_0x413c9a[_0x1ded27]&&!_0x184c4f?(_0x413c9a[_0x1ded27][_0xf120('0xdf')]=_0x11bc85,_0x1b13d0(_0x413c9a[_0x1ded27]),_0x413c9a[_0x1ded27]=null):_0x413c9a[_0x1ded27]&&_0x184c4f&&_0x413c9a[_0x1ded27][_0xf120('0x93')]!==_0x1d051f&&(_0x413c9a[_0x1ded27]['end']=_0x11bc85,_0x4dacf9&&_0x4dacf9[_0xf120('0x93')]===_0x413c9a[_0x1ded27][_0xf120('0x93')]||_0x1b13d0(_0x413c9a[_0x1ded27]),_0x413c9a[_0x1ded27]={'start':_0x11bc85,'tapeItem':_0x1236a4[_0x291777],'userId':_0x1d051f,'type':_0x1ded27}),_0x413c9a[_0x1ded27]&&_0x45f264&&(_0xf120('0x17')!==_0x1236a4[_0x291777][_0xf120('0x7d')]||_0x4dacf9&&_0x4dacf9[_0xf120('0x93')]===_0x1d051f||_0x57d0cd[_0x1ded27][_0xf120('0xc7')]({'userId':_0x1d051f,'object':_0x1236a4[_0x291777][_0xf120('0x45')],'change':_0x413c9a[_0x1ded27]}),_0xf120('0x31')===_0x1236a4[_0x291777][_0xf120('0x7d')]&&_0x4dacf9&&_0x4dacf9[_0xf120('0x63')]===_0x1236a4[_0x291777][_0xf120('0x45')]&&(_0x57d0cd[_0x1ded27]['shift'](),_0x413c9a[_0x1ded27]=_0x4dacf9[_0xf120('0x101')])),_0x413c9a[_0x1ded27]&&_0x3bbb18&&(_0x413c9a[_0x1ded27][_0xf120('0xdf')]=_0x5c83c6,_0x1b13d0(_0x413c9a[_0x1ded27]),_0x413c9a[_0x1ded27]=null);}function _0x1b13d0({start:_0x2dff45,end:_0x6a5cd3,tapeItem:_0x350f05,userId:_0x364cd1,type:_0x43478a}){const _0xa9b04c=_0x350f05[_0xf120('0x45')],_0x3090bd=_0x256313[_0xf120('0x107')][_0xf120('0x7f')](_0xa9b04c)&&!_0x256313['schema'][_0xf120('0xca')](_0xa9b04c),_0x4c6716=_0x2dff45[_0xf120('0x89')]==_0x6a5cd3['parent']&&_0x6a5cd3[_0xf120('0xd4')];if(_0x3090bd&&_0x4c6716)return;const _0x6e54e2=_0x256313[_0xf120('0x8b')](_0x2dff45,_0x6a5cd3),_0x25b0e0=_0x485ea6[_0xf120('0x5c')](_0x364cd1),_0x5a5db6=new _0x2ea2e6({'author':_0x25b0e0,'type':_0xf120('0x105')==_0x43478a||_0xf120('0x88')==_0x43478a?_0xf120('0x9f'):_0xf120('0x4e'),'data':{'isSuggestion':_0xf120('0x88')==_0x43478a||_0xf120('0xfa')==_0x43478a},'createdAt':new Date(),'rootName':_0x5e57db});_0x435c16['push'](_0x5a5db6),_0x4741cd[_0xf120('0x6a')][_0xf120('0xe7')](_0xf120('0xed')+_0x5a5db6['id'],_0x6e54e2);}function _0x1bd1d8(_0x373aeb,_0x145633){const _0x246712=_0x373aeb['getAttributes'](),_0x5a9eec=_0x145633['getAttributes']();for(const _0x4043fe of _0x246712){if(_0x4043fe[0x1]!==_0x145633[_0xf120('0x41')](_0x4043fe[0x0]))return!0x1;_0x5a9eec[_0xf120('0x121')]();}return _0x5a9eec['next']()['done'];}}[_0xf120('0xc3')](){this[_0xf120('0x2f')][_0xf120('0x9')][_0xf120('0x80')](_0xf120('0xf5'))[_0xf120('0x83')]({'view':_0xf120('0xab')}),this[_0xf120('0x2f')][_0xf120('0x9')]['for']('editingDowncast')[_0xf120('0x126')]({'model':'revision','view':_0x3205cd=>{const _0x1bc55b=_0x3205cd[_0xf120('0x1d')][_0xf120('0x92')](':')[0x1],_0x3e53e0=this[_0xf120('0x56')](_0x1bc55b);if(!_0x3e53e0)return null;const _0x5141b4=_0xf120('0x9f')==_0x3e53e0[_0xf120('0x7d')]?'insertion':_0xf120('0xb4'),_0xed043=[_0xf120('0x116'),_0xf120('0x6f')+_0x5141b4];return _0x3e53e0[_0xf120('0x5f')][_0xf120('0x44')]&&_0xed043[_0xf120('0xbd')]('ck-suggestion-marker-'+_0x5141b4+_0xf120('0xcb')),this[_0xf120('0x11a')]==_0x3e53e0&&_0xed043[_0xf120('0xbd')](_0xf120('0x1e')),{'classes':_0xed043,'attributes':{'data-change-id':_0x1bc55b}};}}),this['editor']['conversion'][_0xf120('0x80')](_0xf120('0xf5'))[_0xf120('0x9f')](_0x31464a=>{_0x31464a['on'](_0xf120('0x27'),(_0x5e1817,_0x5738ee,_0x4784e7)=>{const _0x502f21=_0x5738ee['viewItem'][_0xf120('0x98')](0x0);if(!_0x502f21||!_0x502f21['is'](_0xf120('0x21'),_0xf120('0x9b')))return;if(!_0x4784e7['consumable']['consume'](_0x502f21,{'attributes':[_0xf120('0x3f'),_0xf120('0x65')]}))return;const _0x1834a7=_0x5738ee['modelRange'][_0xf120('0x5e')][_0xf120('0x89')];_0x4784e7['writer'][_0xf120('0xe2')](_0xf120('0x3f'),_0x502f21[_0xf120('0x41')](_0xf120('0x3f')),_0x1834a7),_0x4784e7[_0xf120('0xbb')][_0xf120('0xe2')](_0xf120('0x65'),_0x502f21[_0xf120('0x41')](_0xf120('0x65')),_0x1834a7);},{'priority':_0xf120('0xe')});}),this[_0xf120('0x2f')][_0xf120('0x9')][_0xf120('0x80')](_0xf120('0xf5'))[_0xf120('0x9f')](_0x302c3a=>{_0x302c3a['on']('element',(_0x51b384,_0x331d17,_0x1f318e)=>{if(!_0x1f318e[_0xf120('0xba')][_0xf120('0x4d')](_0x331d17[_0xf120('0xd9')],{'attributes':['vid_start','vid_end']}))return;if(_0x331d17['modelRange'][_0xf120('0x8e')])return;const _0x182d81=_0x331d17[_0xf120('0x25')][_0xf120('0x5e')][_0xf120('0x89')];_0x182d81[_0xf120('0x85')](_0xf120('0x3f'))||_0x182d81['hasAttribute']('vid')||(_0x1f318e[_0xf120('0xbb')][_0xf120('0xe2')]('vid_start',_0x331d17['viewItem']['getAttribute'](_0xf120('0x3f')),_0x182d81),_0x1f318e[_0xf120('0xbb')]['setAttribute']('vid_end',_0x331d17[_0xf120('0xd9')]['getAttribute'](_0xf120('0x65')),_0x182d81));},{'priority':'low'});}),this[_0xf120('0x2f')][_0xf120('0x9')]['for'](_0xf120('0xf5'))[_0xf120('0x16')]({'view':{'name':_0xf120('0xcf'),'attributes':{'vid':!0x0}},'model':{'key':_0xf120('0xde'),'value':_0x157f4a=>_0x157f4a[_0xf120('0x41')](_0xf120('0xde'))}}),this['editor'][_0xf120('0x10f')][_0xf120('0x107')]['on'](_0xf120('0x5a'),(_0x5beb19,[,_0x54096d])=>{[_0xf120('0x3f'),_0xf120('0x65'),_0xf120('0xde')][_0xf120('0x12')](_0x54096d)&&(_0x5beb19['return']=!0x0,_0x5beb19['stop']());},{'priority':_0xf120('0x32')}),this[_0xf120('0x2f')]['conversion']['for'](_0xf120('0xe4'))[_0xf120('0x9f')](_0x1ad68f=>{_0x1ad68f['on'](_0xf120('0x53'),(_0x39a18f,_0x713d29,_0x4919a0)=>{if('\x20'!=_0x713d29[_0xf120('0x45')][_0xf120('0x5f')]||_0x713d29['item']['parent'][_0xf120('0x26')]>0x1)return;if(!_0x4919a0[_0xf120('0xba')]['consume'](_0x713d29['item'],_0x39a18f[_0xf120('0x59')]))return;const _0x453dba=_0x4919a0['writer'],_0x5e141b=_0x4919a0[_0xf120('0x1f')][_0xf120('0xd6')](_0x713d29[_0xf120('0x52')]);_0x453dba[_0xf120('0xfd')](_0x5e141b,_0x453dba['createAttributeElement'](_0xf120('0xcf')));});}),this[_0xf120('0x2f')][_0xf120('0x9')]['for'](_0xf120('0xe4'))[_0xf120('0x46')]({'model':_0xf120('0xab')}),this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0x57')]['on'](_0xf120('0xe8'),function(_0xe16678){const _0x3dfe0f=_0xe16678[_0xf120('0x112')]['get']('RevisionViewer');return(_0x6eeb69,_0x8dcb8e,_0x1fb245)=>{const _0x2d9715=_0x8dcb8e['markerName'][_0xf120('0x92')](':')[0x1],_0x1177d1=_0x3dfe0f['_getChangeFromId'](_0x2d9715);if(!_0x1177d1)return null;const _0x414aa7=_0xf120('0x9f')==_0x1177d1[_0xf120('0x7d')]?_0xf120('0x92'):_0xf120('0x49');if(!_0x1fb245[_0xf120('0xba')][_0xf120('0x127')](_0x8dcb8e[_0xf120('0xd')],_0x6eeb69[_0xf120('0x59')]))return;const _0x55435c=_0x8dcb8e['markerRange'][_0xf120('0xc6')](),_0x5705b8=_0x8dcb8e[_0xf120('0xd')]['start'],_0x467878=_0xe16678['model'][_0xf120('0x107')];let _0x555fd6=null,_0x571873=null,_0x31d353=!0x1,_0x329d35=!0x1;for(const _0x5a2d1d of _0x55435c){const _0x21ad8f=_0x5a2d1d['item'];_0x31d353=_0x31d353||_0x467878['isContent'](_0x21ad8f);const _0x51e2e0=_0x1fb245['mapper'][_0xf120('0x90')](_0x21ad8f);if(_0x51e2e0&&_0x51e2e0[_0xf120('0x95')](_0xf120('0xeb')))return;_0xf120('0x31')==_0x5a2d1d[_0xf120('0x7d')]&&(_0x467878[_0xf120('0x7f')](_0x21ad8f)&&!_0x467878[_0xf120('0xca')](_0x21ad8f)&&(_0x21ad8f[_0xf120('0xf9')]||_0x5705b8[_0xf120('0xd7')]?_0x555fd6&&_0x555fd6['parent']==_0x21ad8f||(_0x555fd6=_0x21ad8f,_0x2ae88e(_0x5a2d1d[_0xf120('0xa0')]),_0x329d35=!0x0):_0x571873=_0x571873||_0x5a2d1d[_0xf120('0xa0')]));}function _0x2ae88e(_0x2b06e5){const _0x35e4ca=_0x1fb245['writer'][_0xf120('0x51')]('span',{'class':_0xf120('0x6f')+_0x414aa7}),_0x2ed5ae=_0x1fb245[_0xf120('0x1f')][_0xf120('0x76')](_0x2b06e5);_0x1177d1[_0xf120('0x5f')][_0xf120('0x44')]&&_0x1fb245[_0xf120('0xbb')][_0xf120('0x62')](_0xf120('0x6f')+_0x414aa7+'-new',_0x35e4ca),_0x3dfe0f[_0xf120('0x11a')]==_0x1177d1&&_0x1fb245[_0xf120('0xbb')][_0xf120('0x62')](_0xf120('0x1e'),_0x35e4ca),_0x1fb245[_0xf120('0xbb')][_0xf120('0x8c')](_0x2ed5ae,_0x35e4ca),_0x1fb245[_0xf120('0x1f')]['bindElementToMarker'](_0x35e4ca,_0x8dcb8e[_0xf120('0x1d')]);}_0x31d353||_0x329d35||!_0x571873||_0x2ae88e(_0x571873);};}(this[_0xf120('0x2f')]),{'priority':_0xf120('0x122')}),this[_0xf120('0x2f')]['editing']['downcastDispatcher']['on'](_0xf120('0x11d'),(_0xfa1583,_0xe50333,_0x582b46)=>{const _0xc4705b=_0x582b46[_0xf120('0x1f')]['markerNameToElements'](_0xe50333[_0xf120('0x1d')]);if(_0xc4705b)for(const _0x34befc of _0xc4705b)(_0x34befc[_0xf120('0x78')](_0xf120('0x1a'))||_0x34befc[_0xf120('0x78')](_0xf120('0x36')))&&(_0x582b46[_0xf120('0x1f')][_0xf120('0xb0')](_0x34befc,_0xe50333[_0xf120('0x1d')]),_0x582b46[_0xf120('0xbb')]['remove'](_0x34befc));},{'priority':_0xf120('0x122')}),this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0x57')]['on'](_0xf120('0xe8'),(_0x9cc2e5,_0x6aa416,_0x548c80)=>{const _0x516aa4=_0x6aa416['markerName'][_0xf120('0x92')](':')[0x1],_0x3ca814=this[_0xf120('0x56')](_0x516aa4);if(!_0x3ca814)return null;const _0x505060=_0xf120('0x9f')==_0x3ca814['type']?_0xf120('0x92'):'merge';if(_0x548c80['consumable']['test'](_0x6aa416['markerRange'],_0x9cc2e5[_0xf120('0x59')]))for(const _0x2e598f of _0x6aa416[_0xf120('0xd')]['getItems']()){if(!_0x2e598f['is']('element',_0xf120('0x102')))continue;const _0x415379=_0x548c80[_0xf120('0xbb')][_0xf120('0x51')](_0xf120('0xcf'),{'class':'ck-suggestion-marker-'+_0x505060}),_0x50cdee=_0x548c80[_0xf120('0x1f')]['toViewPosition'](this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0xc8')](_0x2e598f));_0x3ca814[_0xf120('0x5f')][_0xf120('0x44')]&&_0x548c80[_0xf120('0xbb')][_0xf120('0x62')](_0xf120('0x6f')+_0x505060+_0xf120('0xcb'),_0x415379),this[_0xf120('0x11a')]==_0x3ca814&&_0x548c80[_0xf120('0xbb')]['addClass'](_0xf120('0x1e'),_0x415379),_0x548c80['writer'][_0xf120('0x8c')](_0x50cdee,_0x415379),_0x548c80['mapper'][_0xf120('0xd3')](_0x415379,_0x6aa416[_0xf120('0x1d')]);}},{'priority':'high'}),this['editor'][_0xf120('0x10f')][_0xf120('0x23')]['on'](_0xf120('0x101'),()=>{this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x101')](_0x15a074=>{for(const _0x4e6505 of this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0x23')]['getRootNames']()){const _0x3f2a77=this['editor'][_0xf120('0x10f')][_0xf120('0x23')]['getRoot'](_0x4e6505),_0x443ad8=this[_0xf120('0x2f')][_0xf120('0x114')]['view'][_0xf120('0x23')][_0xf120('0x61')](_0x4e6505);if(_0x443ad8){const _0x25f7d9=_0x3f2a77[_0xf120('0x41')](_0xf120('0x11e'));if(_0x15a074[_0xf120('0x110')](_0xf120('0xbc'),_0x443ad8),_0x15a074[_0xf120('0xb2')](_0xf120('0x6b'),_0x443ad8),_0x15a074[_0xf120('0xb2')](_0xf120('0x6d'),_0x443ad8),_0x15a074[_0xf120('0xb2')](_0xf120('0xdd'),_0x443ad8),_0x25f7d9){const _0x1b61f6=this[_0xf120('0x56')](_0x25f7d9);if(!_0x1b61f6)return null;_0x15a074[_0xf120('0xe2')]('data-change-id',_0x25f7d9,_0x443ad8),_0x15a074[_0xf120('0x62')](_0xf120('0x128')+_0x1b61f6[_0xf120('0x7d')],_0x443ad8),this[_0xf120('0x11a')]==_0x1b61f6&&_0x15a074['addClass']('ck-revision-history-root--active',_0x443ad8);}}}});}),this[_0xf120('0x2f')][_0xf120('0x9')]['for']('upcast')[_0xf120('0x83')]({'view':'comment','model':_0x49244c=>_0xf120('0xfe')+_0x49244c,'converterPriority':_0xf120('0x32')}),this[_0xf120('0x2f')][_0xf120('0x9')][_0xf120('0x80')](_0xf120('0xf5'))[_0xf120('0x83')]({'view':'suggestion','model':_0x38b5ac=>_0xf120('0xbe')+_0x38b5ac,'converterPriority':_0xf120('0x32')}),this[_0xf120('0x2f')][_0xf120('0x9')][_0xf120('0x80')](_0xf120('0xe4'))[_0xf120('0x46')]({'model':_0xf120('0x10c'),'view':_0x1b24c2=>({'name':_0xf120('0x29')+_0x1b24c2,'group':_0xf120('0x10c')}),'converterPriority':_0xf120('0x32')}),this[_0xf120('0x2f')]['conversion'][_0xf120('0x80')](_0xf120('0xa'))[_0xf120('0x126')]({'model':_0xf120('0x10c'),'view':_0x24f9ed=>{const _0xf74639=_0x24f9ed['markerName'][_0xf120('0x92')](':')[0x1];return'insertion'!=_0xf74639&&_0xf120('0xb4')!=_0xf74639?null:{'classes':[_0xf120('0x3e'),_0xf120('0xcc')+_0xf74639]};}}),this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0x57')]['on'](_0xf120('0xa1'),et(this['editor'],'merge'),{'priority':_0xf120('0x122')}),this[_0xf120('0x2f')]['editing'][_0xf120('0x57')]['on'](_0xf120('0xe5'),et(this['editor'],'split'),{'priority':_0xf120('0x122')}),this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0x57')]['on'](_0xf120('0x72'),(_0x335f0d,_0x12a57f,_0x43db05)=>{const _0x1f80b9=_0x43db05[_0xf120('0x1f')][_0xf120('0xa2')](_0x12a57f[_0xf120('0x1d')]);if(_0x1f80b9)for(const _0x1bb0a3 of _0x1f80b9)_0x1bb0a3['is'](_0xf120('0x2d'))&&(_0x43db05['mapper'][_0xf120('0xb0')](_0x1bb0a3,_0x12a57f[_0xf120('0x1d')]),_0x43db05[_0xf120('0xbb')]['remove'](_0x1bb0a3));},{'priority':_0xf120('0x122')});}['_getChangeFromId'](_0x32be86){return this[_0xf120('0x109')][_0xf120('0x5c')](_0x32be86);}[_0xf120('0x73')](_0x25a71c){return this[_0xf120('0xad')]&&this['_changeView'][_0xf120('0x9e')](),this[_0xf120('0xad')]=new _0x2b76d4(this['editor'][_0xf120('0xf3')],_0x25a71c),this[_0xf120('0xad')];}[_0xf120('0x81')](){this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0x23')][_0xf120('0x104')][_0xf120('0x71')]('revision'),this['on'](_0xf120('0xf8'),(_0x44a45f,_0x2a68df,_0x480f55,_0x44c4e8)=>{_0x44c4e8&&this[_0xf120('0x8d')][_0xf120('0x4e')](_0x44c4e8),_0x480f55&&(this[_0xf120('0x8d')]['add']({'view':_0x480f55,'stackId':_0xf120('0xb9'),'position':{'target':()=>{const _0x37dd4f=this['editor'][_0xf120('0x114')],_0x402067=this[_0xf120('0x56')](_0x480f55[_0xf120('0xce')]);let _0x1156ad;if(_0x402067[_0xf120('0x5f')][_0xf120('0xf4')]){const _0x489f38=_0x37dd4f[_0xf120('0xd1')]['getDomRoot'](_0x402067[_0xf120('0x100')]);_0x1156ad=Array['from'](_0x489f38[_0xf120('0x6e')]());}else{const _0x124ece=this[_0xf120('0x2f')][_0xf120('0x10f')]['markers'][_0xf120('0x5c')](_0xf120('0xed')+_0x480f55[_0xf120('0xce')]);_0x1156ad=Array[_0xf120('0x1c')](_0x37dd4f['mapper']['markerNameToElements'](_0x124ece[_0xf120('0x59')]))[_0xf120('0x7e')](_0x34ff3d=>_0x37dd4f[_0xf120('0xd1')]['domConverter']['mapViewToDom'](_0x34ff3d))['map'](_0x3b4b55=>Array[_0xf120('0x1c')](_0x3b4b55[_0xf120('0x6e')]()))[_0xf120('0xfc')]();}if(!this['_activeViewTarget'])return _0x1156ad[0x0];return _0x1156ad['find'](_0x3b692d=>_0x3b692d[_0xf120('0xa8')]-0x3<=this['_activeViewTarget']['y']&&_0x3b692d[_0xf120('0x5')]+0x3>=this[_0xf120('0x4b')]['y']&&_0x3b692d[_0xf120('0x5b')]-0x3<=this[_0xf120('0x4b')]['x']&&_0x3b692d[_0xf120('0x43')]+0x3>=this[_0xf120('0x4b')]['x'])||_0x1156ad[0x0];}}}),this[_0xf120('0x8d')][_0xf120('0x3')](_0xf120('0xb9')));}),this['on']('change:activeChange',(_0x124053,_0x2e1786,_0x178671,_0x6d99e8)=>{this[_0xf120('0x99')]=_0x178671?this[_0xf120('0x73')](_0x178671):null,this['editor'][_0xf120('0x10f')][_0xf120('0x101')](()=>{const _0x236267=this[_0xf120('0x2f')][_0xf120('0x114')];_0x6d99e8&&(_0x6d99e8[_0xf120('0x5f')][_0xf120('0xf4')]?_0x236267[_0xf120('0xd1')][_0xf120('0x101')](_0x2ab19c=>{_0x2ab19c[_0xf120('0xb2')]('ck-revision-history-root--active',_0x236267[_0xf120('0xd1')]['document'][_0xf120('0x61')](_0x6d99e8[_0xf120('0x100')]));}):_0x236267[_0xf120('0x5d')]('revision:'+_0x6d99e8['id'])),_0x178671&&(_0x178671['data'][_0xf120('0xf4')]?_0x236267[_0xf120('0xd1')][_0xf120('0x101')](_0xa5460f=>{_0xa5460f[_0xf120('0x62')]('ck-revision-history-root--active',_0x236267[_0xf120('0xd1')][_0xf120('0x23')][_0xf120('0x61')](_0x178671[_0xf120('0x100')]));}):_0x236267[_0xf120('0x5d')](_0xf120('0xed')+_0x178671['id']));});}),this[_0xf120('0x33')](this['editor']['editing'][_0xf120('0xd1')][_0xf120('0x23')],'mouseover',(_0x3bd1d3,_0x34263b)=>{if(this[_0xf120('0x11a')])return;const _0x5ca4f6=this[_0xf120('0xc9')](_0x34263b[_0xf120('0x87')]),_0x9f16c3=this[_0xf120('0x109')]['get'](_0x5ca4f6);_0x9f16c3?(this[_0xf120('0x4b')]={'x':_0x34263b[_0xf120('0x123')]['x'],'y':_0x34263b[_0xf120('0x123')]['y']},this[_0xf120('0x99')]=this[_0xf120('0x73')](_0x9f16c3)):(this['_activeViewTarget']=null,this[_0xf120('0x99')]=null);}),this[_0xf120('0x33')](this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x23')],'mousedown',(_0x339b82,_0x3148da)=>{const _0x177895=this[_0xf120('0xc9')](_0x3148da[_0xf120('0x87')]),_0x4319c0=this[_0xf120('0x109')][_0xf120('0x5c')](_0x177895);_0x4319c0?(this[_0xf120('0x4b')]={'x':_0x3148da[_0xf120('0x123')]['x'],'y':_0x3148da[_0xf120('0x123')]['y']},_0x4319c0===this['activeChange']?this['_balloon']['updatePosition']():this[_0xf120('0x11a')]=_0x4319c0):(this[_0xf120('0x4b')]=null,this[_0xf120('0x11a')]=null);});}[_0xf120('0xc9')](_0x222eff){do{const _0x40323d=_0x222eff[_0xf120('0x41')](_0xf120('0xbc'));if(_0x40323d)return _0x40323d;_0x222eff=_0x222eff[_0xf120('0xc4')];}while(_0x222eff);return null;}[_0xf120('0xe1')](){this[_0xf120('0x2f')]['model'][_0xf120('0x101')](_0x485dad=>{for(const _0x1d83ae of this['editor'][_0xf120('0x10f')]['markers'])_0x485dad[_0xf120('0xbf')](_0x1d83ae);});}}function et(_0x3703ed,_0x20f753){return(_0x49695b,_0x27325c,_0x51509e)=>{if(!_0x51509e['consumable']['test'](_0x27325c[_0xf120('0xd')],_0x49695b['name']))return;const _0x307b49=_0x27325c['markerRange'][_0xf120('0xc6')](),_0x24bd83=_0x27325c['markerRange'][_0xf120('0x5e')],_0x548159=_0x3703ed[_0xf120('0x10f')][_0xf120('0x107')];let _0x1b6fcb=null,_0x7b53c9=null,_0x97db64=!0x1,_0x1b1a26=!0x1;for(const _0x149680 of _0x307b49){const _0x21ae50=_0x149680[_0xf120('0x45')];_0x97db64=_0x97db64||_0x548159['isContent'](_0x21ae50);const _0x5d2c60=_0x51509e[_0xf120('0x1f')][_0xf120('0x90')](_0x21ae50);if(_0x5d2c60&&_0x5d2c60[_0xf120('0x95')]('addHighlight'))return;_0xf120('0x31')==_0x149680[_0xf120('0x7d')]&&(_0x548159[_0xf120('0x7f')](_0x21ae50)&&!_0x548159['isLimit'](_0x21ae50)&&(_0x21ae50[_0xf120('0xf9')]||_0x24bd83['isAtEnd']?_0x1b6fcb&&_0x1b6fcb[_0xf120('0xc4')]==_0x21ae50||(_0x1b6fcb=_0x21ae50,_0x2215e0(_0x149680['previousPosition']),_0x1b1a26=!0x0):_0x7b53c9=_0x7b53c9||_0x149680[_0xf120('0xa0')]));}function _0x2215e0(_0x1dbcd6){const _0x162cdc=_0x51509e[_0xf120('0x1f')][_0xf120('0x76')](_0x1dbcd6),_0x3c8e40=_0x51509e[_0xf120('0xbb')][_0xf120('0x51')](_0xf120('0xcf'),{'class':_0xf120('0xcc')+_0x20f753});_0x51509e['writer'][_0xf120('0x8c')](_0x162cdc,_0x3c8e40),_0x51509e[_0xf120('0x1f')][_0xf120('0xd3')](_0x3c8e40,_0x27325c['markerName']);}_0x97db64||_0x1b1a26||!_0x7b53c9||_0x2215e0(_0x7b53c9);};}export class RestoreRevisionCommand extends _0x3c975e{constructor(_0x3795d6){super(_0x3795d6);const _0x58b6c5=_0x3795d6[_0xf120('0x112')][_0xf120('0x5c')](d);this[_0xf120('0x42')]=!0x1,this['listenTo'](_0x58b6c5,_0xf120('0x2b'),()=>this[_0xf120('0x70')]()),this['listenTo'](_0x58b6c5,_0xf120('0x91'),()=>this['refresh']());}[_0xf120('0x4c')](){const _0x1069a9=this[_0xf120('0x2f')],_0x295b15=_0x1069a9[_0xf120('0x112')]['get'](d),_0x2a296d=_0x295b15[_0xf120('0xfb')]?_0x295b15[_0xf120('0xc2')][_0xf120('0x39')]:null;_0x1069a9[_0xf120('0x108')][_0xf120('0x5c')](_0xf120('0xe9'))[_0xf120('0xae')](_0x2a296d);}[_0xf120('0x70')](){const {isReady:_0x4d024e,isEnabled:_0x53f696}=this[_0xf120('0x2f')][_0xf120('0x112')][_0xf120('0x5c')](d);this[_0xf120('0x24')]=_0x4d024e&&_0x53f696;}}export class ShowChangeCommand extends _0x3c975e{constructor(_0x37e10b,{direction:_0x48d705}){super(_0x37e10b);const _0x4445cc=_0x37e10b[_0xf120('0x112')][_0xf120('0x5c')](d);this[_0xf120('0x42')]=!0x1,this['_step']='forward'===_0x48d705?0x1:-0x1,this[_0xf120('0x33')](_0x4445cc,'change:isReady',()=>this[_0xf120('0x70')]()),this[_0xf120('0x33')](_0x4445cc,_0xf120('0x91'),()=>this[_0xf120('0x70')]()),this[_0xf120('0x33')](_0x4445cc,'change:activeChange',()=>this[_0xf120('0x70')]());}[_0xf120('0x4c')](){const _0x263d81=this[_0xf120('0x2f')],_0x41a292=_0x263d81['plugins'][_0xf120('0x5c')](d),{isNavigationMode:_0x57bbb7,currentChangeNumber:_0x1dd39a}=_0x41a292;let _0x2e416c;if(_0x41a292[_0xf120('0x11a')]=_0x57bbb7?_0x41a292[_0xf120('0xc2')][_0xf120('0xcd')]['get'](_0x1dd39a+this[_0xf120('0x119')]):_0x41a292[_0xf120('0xc2')][_0xf120('0xcd')]['first'],_0x41a292[_0xf120('0x11a')][_0xf120('0x5f')][_0xf120('0xf4')])_0x2e416c=_0x263d81[_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x37')](_0x41a292[_0xf120('0x11a')][_0xf120('0x100')]);else{const _0x2c94ff=_0x263d81[_0xf120('0x10f')][_0xf120('0x6a')][_0xf120('0x5c')](_0xf120('0xed')+_0x41a292[_0xf120('0x11a')]['id']);_0x2e416c=_0x511d68(_0x263d81[_0xf120('0x114')],_0x2c94ff);}_0x3ffbc9({'target':_0x2e416c,'viewportOffset':0x28});}[_0xf120('0x70')](){const {isNavigationMode:_0x1ea3c8,currentChangeNumber:_0x46ddd2,numberOfChanges:_0x262a9d,isReady:_0x520caa,isEnabled:_0x48d07f}=this[_0xf120('0x2f')][_0xf120('0x112')]['get'](d);this[_0xf120('0x24')]=!!(_0x48d07f&&_0x520caa&&_0x262a9d)&&(!_0x1ea3c8||(0x1===this[_0xf120('0x119')]?_0x46ddd2<_0x262a9d-0x1:_0x46ddd2>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2449=['isOpen','_action','source','bindTemplate','button','isReady','stopPropagation','model','map','execute','children','listenTo','locale','isVisible','isActionsDropdownOpen','threeVerticalDots','first','set','listView','add','function','Show\x20more\x20items','ck-on','Name\x20this\x20revision','panelPosition','action','isEnabled','bind','name','find'];(function(_0x59669f,_0x24496b){const _0x105afa=function(_0x5650ca){while(--_0x5650ca){_0x59669f['push'](_0x59669f['shift']());}};_0x105afa(++_0x24496b);}(_0x2449,0x1db));const _0x105a=function(_0x59669f,_0x24496b){_0x59669f=_0x59669f-0x0;let _0x105afa=_0x2449[_0x59669f];return _0x105afa;};import{Collection as _0x168ffb}from'ckeditor5/src/utils';import{icons as _0x59785d}from'ckeditor5/src/core';import{Model as _0x48cd1f,addListToDropdown as _0x4a1e26,createDropdown as _0x265942}from'ckeditor5/src/ui';import{getTranslation as _0x4c207d}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x24379f,_0x5ac4db){const _0x4cacd8=_0x24379f[_0x105a('0x8')],_0x5e6640=_0x24379f[_0x105a('0x11')],_0x2a6a69=_0x265942(_0x5e6640);_0x2a6a69[_0x105a('0x1d')]='sw';const _0x84bc30=function(_0x356b82,_0x3ab065){const _0x512c6f=function(_0x42c4c5,_0x24958b){const _0x333423=_0x42c4c5[_0x105a('0x11')],_0x204064={'Compare\x20against\x20selected':_0x4c207d(_0x333423,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x4c207d(_0x333423,_0x105a('0x1c')),'Restore\x20this\x20revision':_0x4c207d(_0x333423,'Restore\x20this\x20revision')};return _0x24958b[_0x105a('0xd')](_0x235b43=>{const _0x24219f=_0x204064[_0x235b43[_0x105a('0x3')]];return _0x24219f&&_0x24219f!==_0x235b43['name']&&(_0x235b43[_0x105a('0x3')]=_0x24219f),_0x235b43;});}(_0x356b82,_0x3ab065),_0x170206=new _0x168ffb();for(const _0x246ec3 of _0x512c6f){const _0x1482d={'type':_0x105a('0x9'),'model':new _0x48cd1f({'label':_0x246ec3[_0x105a('0x3')],'class':_0x246ec3['class'],'withText':!0x0,'_action':_0x246ec3[_0x105a('0x0')]})};_0x1482d[_0x105a('0xc')][_0x105a('0x2')]('isEnabled')['to'](_0x356b82,_0x105a('0x13'),_0x504964=>_0x105a('0x19')!=typeof _0x246ec3['isEnabled']||(!_0x504964||_0x246ec3[_0x105a('0x1')](_0x356b82))),_0x170206[_0x105a('0x18')](_0x1482d);}return _0x170206;}(_0x24379f,_0x5ac4db);return _0x24379f[_0x105a('0x2')](_0x105a('0x13'))['to'](_0x2a6a69,_0x105a('0x5')),_0x2a6a69['buttonView'][_0x105a('0x16')]({'label':_0x4c207d(_0x5e6640,_0x105a('0x1a')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x59785d[_0x105a('0x14')]}),_0x2a6a69['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4cacd8['if'](_0x105a('0x13'),_0x105a('0x1b'))]},'on':{'click':_0x4cacd8['to'](_0x542c4a=>_0x542c4a[_0x105a('0xb')]())}}),_0x2a6a69['on'](_0x105a('0xe'),_0x47251f=>{_0x24379f[_0x105a('0xa')]&&'function'==typeof _0x47251f[_0x105a('0x7')][_0x105a('0x6')]&&_0x47251f['source'][_0x105a('0x6')](_0x24379f);}),_0x4a1e26(_0x2a6a69,_0x84bc30),_0x2a6a69[_0x105a('0x10')](_0x24379f,'change:isActionsDropdownOpen',(_0x32ecc4,_0x514e93,_0x1179e1)=>{if(_0x1179e1)for(const _0x49dbdf of _0x2a6a69[_0x105a('0x17')]['items']){const _0x406e79=_0x49dbdf[_0x105a('0xf')][_0x105a('0x15')],_0x44403c=_0x5ac4db[_0x105a('0x4')](_0x5a010f=>_0x5a010f[_0x105a('0x0')]===_0x406e79[_0x105a('0x6')])[_0x105a('0x12')];_0x49dbdf['isVisible']=void 0x0===_0x44403c||_0x44403c(_0x24379f);}}),_0x2a6a69;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57b1=['Revision\x20creator','span','name','0\x200\x2011\x2010','set','Revision\x20author','setTemplate','ck-revision-history-sidebar__revision-author_creator'];(function(_0x3ed33c,_0x57b139){const _0x1de80b=function(_0x27f435){while(--_0x27f435){_0x3ed33c['push'](_0x3ed33c['shift']());}};_0x1de80b(++_0x57b139);}(_0x57b1,0x16c));const _0x1de8=function(_0x3ed33c,_0x57b139){_0x3ed33c=_0x3ed33c-0x0;let _0x1de80b=_0x57b1[_0x3ed33c];return _0x1de80b;};import{View as _0x3b3bcd,IconView as _0x4647e5}from'ckeditor5/src/ui';import{getTranslation as _0x23fc97}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1c3c7d from'../../../theme/icons/user.svg';export default class ti extends _0x3b3bcd{constructor(_0x1d992c,_0x2f21fc,_0x2db725){super(_0x1d992c);const _0x4eaf15=new _0x4647e5();_0x4eaf15[_0x1de8('0x0')]({'content':_0x1c3c7d,'viewBox':_0x1de8('0x7')});const _0x4e0ee9=['ck','ck-revision-history-sidebar__revision-author'];_0x2db725&&_0x4e0ee9['push'](_0x1de8('0x3'));const _0x473cf2=[{'tag':_0x1de8('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x23fc97(_0x1d992c,_0x2db725?_0x1de8('0x4'):_0x1de8('0x1'))},'children':[_0x4eaf15,_0x2f21fc[_0x1de8('0x6')]]}];this[_0x1de8('0x2')]({'tag':'li','attributes':{'class':_0x4e0ee9},'children':_0x473cf2});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1875=['ck-revision-history-sidebar__revision-name','extendTemplate','set','Revision\x20name'];(function(_0x313398,_0x187521){var _0x3c660f=function(_0x32f618){while(--_0x32f618){_0x313398['push'](_0x313398['shift']());}};_0x3c660f(++_0x187521);}(_0x1875,0x132));var _0x3c66=function(_0x313398,_0x187521){_0x313398=_0x313398-0x0;var _0x3c660f=_0x1875[_0x313398];return _0x3c660f;};import{LabeledFieldView as _0x45504a}from'ckeditor5/src/ui';import{getTranslation as _0x3a5207}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x45504a{constructor(_0x5973e7,_0x39b6c5){super(_0x5973e7,_0x39b6c5),this[_0x3c66('0x0')]({'label':_0x3a5207(_0x5973e7,_0x3c66('0x1'))}),this[_0x3c66('0x3')]({'tag':'span','attributes':{'class':[_0x3c66('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c96=['uiLanguage','revisionActionsView','revisionNameView','placeholder','deselect','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-wrapper','setName','isSelected','ck-reset','extendTemplate','srcElement','name','.ck-thread__remove-confirm','highlight','_revision','bindTemplate','map','ck-disabled','span','isConfirm','isEnabled','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision__controls-wrapper','unshift','unhighlight','isHighlighted','ck-revision-history-sidebar__actions_dropdown_open','listenTo','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','setTemplate','bind','ck-revision-history-sidebar__revision__date','220','filter','change','div','fire','ck-revision-history-sidebar__revision-authors','isActionsDropdownOpen','authors','createdAt','creator','fieldView','isReady','render','select','_createdAtFormatted','element','set','value','closest'];(function(_0x4d0a32,_0x3c96b9){const _0x5a4579=function(_0x14ceb9){while(--_0x14ceb9){_0x4d0a32['push'](_0x4d0a32['shift']());}};_0x5a4579(++_0x3c96b9);}(_0x3c96,0x1a7));const _0x5a45=function(_0x4d0a32,_0x3c96b9){_0x4d0a32=_0x4d0a32-0x0;let _0x5a4579=_0x3c96[_0x4d0a32];return _0x5a4579;};import{View as _0x3d7635,createLabeledInputText as _0x24258b}from'ckeditor5/src/ui';import{ConfirmMixin as _0x3ab3ff}from'ckeditor5-collaboration/src/collaboration-core';import _0xc5be36 from'./revisionnameview';import _0x352999 from'./revisionauthorview';import{dateToPrettyFormat as _0x454021}from'./utils';import{createActionsDropdownView as _0x163f77}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x3ab3ff(_0x3d7635){constructor(_0x2d683a,_0x75102d,_0x150675){super(_0x2d683a);const _0x745493=this[_0x5a45('0x9')],_0x5cfcd5=function(_0x1d33eb,_0x1c3fa6){const _0x55fcb6=Array['from'](_0x1c3fa6[_0x5a45('0x21')])[_0x5a45('0x1b')](_0x3f7ea9=>_0x3f7ea9!=_0x1c3fa6[_0x5a45('0x23')]);return _0x1c3fa6[_0x5a45('0x23')]&&_0x55fcb6[_0x5a45('0x11')](_0x1c3fa6[_0x5a45('0x23')]),_0x55fcb6[_0x5a45('0xa')](_0x88a680=>new _0x352999(_0x1d33eb,_0x88a680,_0x88a680==_0x1c3fa6[_0x5a45('0x23')]));}(_0x2d683a,_0x75102d);this['id']=_0x75102d['id'],this[_0x5a45('0x8')]=_0x75102d,this[_0x5a45('0x18')](_0x5a45('0x5'),'createdAt')['to'](_0x75102d),this[_0x5a45('0x18')](_0x5a45('0x28'))['to'](this,_0x5a45('0x22'),_0x380338=>_0x380338?_0x454021(_0x2d683a[_0x5a45('0x2d')],_0x380338):void 0x0),this[_0x5a45('0x2a')](_0x5a45('0x1'),!0x1),this['set'](_0x5a45('0x13'),!0x1),this['set'](_0x5a45('0x20'),!0x1),this[_0x5a45('0x2a')](_0x5a45('0x25'),!0x1),this[_0x5a45('0x2a')](_0x5a45('0xe'),!0x1),this[_0x5a45('0x2f')]=new _0xc5be36(_0x2d683a,_0x24258b),this[_0x5a45('0x2f')][_0x5a45('0x24')][_0x5a45('0x3')]({'attributes':{'maxlength':_0x5a45('0x1a')}}),this[_0x5a45('0x2f')]['fieldView'][_0x5a45('0x18')](_0x5a45('0x2b'),_0x5a45('0x30'))['to'](this,'name',_0x5a45('0x28')),this[_0x5a45('0x2f')]['bind'](_0x5a45('0xe'))['to'](this,_0x5a45('0x1'),this,_0x5a45('0xe'),(_0x2c88b9,_0x2f3113)=>_0x2c88b9&&_0x2f3113),this[_0x5a45('0x2e')]=_0x150675&&_0x150675['length']?_0x163f77(this,_0x150675):'',this[_0x5a45('0x2e')]&&this[_0x5a45('0x2e')][_0x5a45('0x18')]('isEnabled')['to'](this),this[_0x5a45('0x17')]({'tag':'div','attributes':{'class':['ck',_0x5a45('0x2'),_0x5a45('0x33'),_0x745493['if'](_0x5a45('0xd'),_0x5a45('0x16'))]},'children':[{'tag':_0x5a45('0x1d'),'attributes':{'class':['ck',_0x5a45('0x2'),'ck-revision-history-sidebar__revision',_0x745493['if'](_0x5a45('0xe'),_0x5a45('0xb'),_0x3786dd=>!_0x3786dd),_0x745493['if'](_0x5a45('0x1'),_0x5a45('0x32')),_0x745493['if'](_0x5a45('0x13'),_0x5a45('0xf')),_0x745493['if'](_0x5a45('0x20'),_0x5a45('0x14'))]},'children':[this['revisionNameView'],{'tag':_0x5a45('0xc'),'attributes':{'class':['ck',_0x5a45('0x19')]},'children':[{'text':_0x745493['to'](_0x5a45('0x28'))}]},{'tag':_0x5a45('0x1d'),'attributes':{'class':['ck',_0x5a45('0x10')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5a45('0x1f')]},'children':_0x5cfcd5}]},this[_0x5a45('0x2e')]],'on':{'click':_0x745493['to'](_0x3806aa=>{_0x3806aa[_0x5a45('0x4')][_0x5a45('0x2c')](_0x5a45('0x6'))||this[_0x5a45('0x25')]&&this[_0x5a45('0xe')]&&this[_0x5a45('0x1e')](_0x5a45('0x27'),{'id':this['id']});})}}]});}[_0x5a45('0x26')](){super[_0x5a45('0x26')]();const _0x15e3fc=this[_0x5a45('0x2f')][_0x5a45('0x24')][_0x5a45('0x29')];this[_0x5a45('0x15')](_0x15e3fc,_0x5a45('0x1c'),()=>{this['fire'](_0x5a45('0x0'),{'id':this['id'],'name':_0x15e3fc[_0x5a45('0x2b')]});});}[_0x5a45('0x27')](){this[_0x5a45('0x1')]=!0x0;}[_0x5a45('0x31')](){this[_0x5a45('0x1')]=!0x1;}[_0x5a45('0x7')](){this[_0x5a45('0x13')]=!0x0;}[_0x5a45('0x12')](){this[_0x5a45('0x13')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa717=['toggle','isVisible','bindTemplate','button','true','click','false','span','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','ck-hidden','ck-revision-history-sidebar__subrevision-collapser__inner'];(function(_0x28664c,_0xa717bb){const _0x552ce5=function(_0x1630ff){while(--_0x1630ff){_0x28664c['push'](_0x28664c['shift']());}};_0x552ce5(++_0xa717bb);}(_0xa717,0x10d));const _0x552c=function(_0x28664c,_0xa717bb){_0x28664c=_0x28664c-0x0;let _0x552ce5=_0xa717[_0x28664c];return _0x552ce5;};import{View as _0x424df1}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x424df1{constructor(_0x5f2815){super(_0x5f2815);const _0x4714c3=this[_0x552c('0x9')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x552c('0x4'),_0x4714c3['if'](_0x552c('0x8'),_0x552c('0x5'),_0x43f652=>!_0x43f652),_0x4714c3['if'](_0x552c('0x3'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x552c('0xa'),'aria-pressed':_0x4714c3['to'](_0x552c('0x3'),_0x3ac7fd=>_0x3ac7fd?_0x552c('0x1'):_0x552c('0xb'))},'children':[{'tag':_0x552c('0x2'),'attributes':{'class':['ck',_0x552c('0x6')]}}],'on':{'click':_0x4714c3['to'](_0x552c('0x0'))}});}[_0x552c('0x7')](){this[_0x552c('0x3')]=!this[_0x552c('0x3')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d62=['bindTemplate','isSelected','div','ck-revision-history-sidebar__revision','setTemplate','_parentRevisionId','fire','creator','select','_createdAtFormatted','bind','set','ck-reset','uiLanguage','ck-revision-history-sidebar__revision-authors','createdAt','deselect'];(function(_0x104fed,_0x5d620e){const _0xabadf0=function(_0xf1ff3e){while(--_0xf1ff3e){_0x104fed['push'](_0x104fed['shift']());}};_0xabadf0(++_0x5d620e);}(_0x5d62,0xa8));const _0xabad=function(_0x104fed,_0x5d620e){_0x104fed=_0x104fed-0x0;let _0xabadf0=_0x5d62[_0x104fed];return _0xabadf0;};import{View as _0x11343d}from'ckeditor5/src/ui';import _0x476843 from'./revisionauthorview';import{dateToPrettyFormat as _0x2db364}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x11343d{constructor(_0x389cbf,_0x30212e,_0x19b62f){super(_0x389cbf);const _0x2b493f=this[_0xabad('0x2')];this['id']=_0x30212e['id'],this[_0xabad('0xc')]('createdAt')['to'](_0x30212e),this[_0xabad('0xd')]('isSelected',!0x1),this[_0xabad('0xc')](_0xabad('0xb'))['to'](this,_0xabad('0x0'),_0x39fb0d=>_0x39fb0d?_0x2db364(_0x389cbf[_0xabad('0xf')],_0x39fb0d):void 0x0),this[_0xabad('0x7')]=_0x19b62f,this[_0xabad('0x6')]({'tag':_0xabad('0x4'),'attributes':{'class':['ck',_0xabad('0xe'),_0xabad('0x5'),'ck-revision-history-sidebar__subrevision',_0x2b493f['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x2b493f['to'](_0xabad('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0xabad('0x10')]},'children':[new _0x476843(_0x389cbf,_0x30212e[_0xabad('0x9')],!0x0)]}],'on':{'click':_0x2b493f['to'](this[_0xabad('0xa')][_0xabad('0xc')](this))}});}[_0xabad('0xa')](){this[_0xabad('0x3')]=!0x0,this[_0xabad('0x8')](_0xabad('0xa'),{'parentId':this['_parentRevisionId']});}[_0xabad('0x1')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2f87=['toLocaleTimeString','numeric','long'];(function(_0x591190,_0x2f8725){var _0x2483b1=function(_0x35925e){while(--_0x35925e){_0x591190['push'](_0x591190['shift']());}};_0x2483b1(++_0x2f8725);}(_0x2f87,0x1da));var _0x2483=function(_0x591190,_0x2f8725){_0x591190=_0x591190-0x0;var _0x2483b1=_0x2f87[_0x591190];return _0x2483b1;};export function dateToPrettyFormat(_0x6843d8,_0x1f2f7d){return _0x1f2f7d['toLocaleDateString'](_0x6843d8,{'month':_0x2483('0x2'),'day':'numeric'})+',\x20'+_0x1f2f7d[_0x2483('0x0')](_0x6843d8,{'hour':_0x2483('0x1'),'minute':_0x2483('0x1')});}
|