@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231029.0 → 0.0.0-nightly-20231031.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 _0x1bd0=['RevisionViewer','mousedown','_appendChild','pairId','isBlock','markerNameToElements','concat','insertion','ck-suggestion-marker','span','markerToData','indexOf','revision-start','_markInsertions','_data','right','isObject','createPositionBefore','updatePosition','attributes','elementStart','parse','createRange','toViewPosition','side','ck-editor__editable__overlay','consume','isAttached','_makeModelFromTape','element','_setConversion','roots','_setDistance','createAttributeElement','removeAttribute','_setChanges','getCustomProperty','_processTape','addMarker:revision-suggestion:deletion','vid','_cleanMarkers','_getDiff','string','diff','vid_end','isReady','nodeAfter','children','reconvertMarker','code','_changeIdToChange','index','checkAttribute','editingDowncast','then','deletion','_cleanUp','toModel','_joinTapes','_refreshStartEndIndex','markerRange','sort','showStack','_getViewObj','split','listenTo','splice','target','hasAttribute','values','_removeUnsupportedChanges','isNavigationMode','ck-suggestion-preview-marker','start','processor','revision:','markersEnd','dataToMarker','ck-suggestion-marker--active','getRevision','viewItem','isRemoved','mapper','length','done','activeChange','getIndex','keys','nextPosition','activeView','element:pre','toViewRange','revision-suggestion','isEnabled','isAfter','model','revisionHistoryAttachChange','isCollapsed','range','isIncorrect','removeClass','repository','isEqual','elementToAttribute','addHighlight','oldRevisionId','get','data-revision-','type','domEvent','addMarker:revision-suggestion:insertion','refresh','change:activeChange','RevisionsRepository','from','view','_balloon','changeId','merge','dataDowncast','setAttribute','POSITIVE_INFINITY','adapter','editor','diffData','_getRevisionsRange','revision-suggestion:','stop','error','addRoot','isAddSuggestion','_removeMissingPairs','flat','init','ck-revision-history-root--active','maxOffset','revision-viewer','_findChangeIdFromDomTarget','isAdded','-new','next','name','startIndex','newRevisionId','map','getClientRects','_update','getRoot','getRootNames','addRevision','delete','compare','change:isReady','return','insert','nextSibling','top','ck-suggestion-preview-marker-','enableReadOnlyMode','high','elementEnd','data-change-id','pluginName','abs','enqueueChange','collaboration.channelId','unshift','revision-end','conversion','useFillerType','schema','attributesAfter','backward','WidgetToolbarRepository','has','offsetSize','getWalker','text','change','distance','isBefore','upcast','isAtStart','numberOfChanges','data','revisionHistoryLabel','modelRange','revision-comment:','_markMismatchedRemovedTags','createPositionFromPath','detachRoot','userId','revision','_removeRevisionMarkers','_getViewForChange','isOnRoot','end','unbindElementFromMarkerName','_makeModelFromViewString','bottom','object','ck-suggestion-marker-merge','change:activeView','writer','filter','_fixObsoleteTags','downcastDispatcher','bindElementToMarker','ck-suggestion-marker-','isSuggestion','removeMarker:revision-suggestion','isLimit','consumable','previousPosition','removeMarker:revision','getRevisionRootsAttributes','document','plugins','destroy','_markMarkers','forward','_markSuggestions','loadRevisionData','commands','getChild','suggestion:','attachChange','rootName','ck-revision-history-root-remove','attributesBefore','level','observeMarkers','forEach','highest','changes','getItems','toViewElement','_initInteractions','addMarker:revision','item','set','default','first','resolve','getAttributes','add','isRemoveSuggestion','findIndex','toData','_activeViewTarget','editing','getDomRoot','markerToHighlight','all','uiElement','getRevisionData','_step','createRangeIn','createRevision','catch','softBreak','createUIElement','parent','config','addClass','markerName','low','remove','selection','_revisions','_threeWayMerge','requires','showPreviousChange','_changeView','mapViewToDom','bind','showNextChange','hasClass','ck-revision-history-root-add','forceDisabled','markersStart','vid_start','comment','test','ck-revision-history-root-','change:isEnabled','_getChangeFromId','deletions','markers','restoreRevisionCallback','affectsData','for','ck-suggestion-marker-split','insertions','revisionHistory','push','getAttribute','shift','endIndex','authors','execute','change:numberOfChanges'];(function(_0x422878,_0x1bd0c3){const _0x5eb61f=function(_0x5f08ac){while(--_0x5f08ac){_0x422878['push'](_0x422878['shift']());}};_0x5eb61f(++_0x1bd0c3);}(_0x1bd0,0x17a));const _0x5eb6=function(_0x422878,_0x1bd0c3){_0x422878=_0x422878-0x0;let _0x5eb61f=_0x1bd0[_0x422878];return _0x5eb61f;};import{Plugin as _0x5325cf,Command as _0x17001f}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x198d78}from'ckeditor5/src/utils';import{ContextualBalloon as _0x115b34}from'ckeditor5/src/ui';import{DocumentFragment as _0x308b28,Element as _0x1f2448,Text as _0x37f40e,ViewDocumentFragment as _0x610417,ViewText as _0x2c4a06,ViewElement as _0x38a0de,ViewContainerElement as _0x4517ed,ViewAttributeElement as _0x5bce6e,ViewEmptyElement as _0x436934,ViewRawElement as _0x221a2f,ViewUIElement as _0x19a2f1}from'ckeditor5/src/engine';import{Users as _0x8f1fcd,getMarkerDomElement as _0x363016}from'ckeditor5-collaboration/src/collaboration-core';import _0x1eabbc from'./ui/revisionviewer/changedetailsview';import _0x5dd569 from'./revisionsrepository';import _0x3aa243 from'./changeitem';import{default as _0x5c35d8}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x1e9154}from'lodash-es';const tt={'c':_0x4517ed,'a':_0x5bce6e,'e':_0x436934,'r':_0x221a2f,'u':_0x19a2f1};export default class d extends _0x5325cf{static get[_0x5eb6('0x56')](){return _0x5eb6('0xe2');}static get[_0x5eb6('0xc3')](){return[_0x8f1fcd,_0x115b34,_0x5dd569];}constructor(_0x322440){super(_0x322440),this[_0x5eb6('0x19')]=this[_0x5eb6('0x2f')]['plugins']['get'](_0x5eb6('0x25')),this['set'](_0x5eb6('0x9'),null),this[_0x5eb6('0xa4')]('activeView',null),this['_activeViewTarget']=null,this[_0x5eb6('0xa4')](_0x5eb6('0x10d'),null),this[_0x5eb6('0xa4')](_0x5eb6('0x10f'),!0x1),this[_0x5eb6('0xa4')](_0x5eb6('0x11'),!0x0),this['on'](_0x5eb6('0xd1'),(_0x215f5b,_0x494b19,_0x43ba04)=>{this[_0x5eb6('0x9')]=null,this[_0x5eb6('0xd')]=null,this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')]['change'](_0x59e679=>{for(const _0x17b7e0 of this[_0x5eb6('0x2f')][_0x5eb6('0xae')]['view'][_0x5eb6('0x8c')][_0x5eb6('0x101')])_0x43ba04?_0x59e679['removeClass'](_0x5eb6('0xfb'),_0x17b7e0):_0x59e679[_0x5eb6('0xbc')](_0x5eb6('0xfb'),_0x17b7e0);});}),this[_0x5eb6('0xc7')](_0x5eb6('0x129'))['to'](this,'activeChange',_0x3a215b=>null!==_0x3a215b),this['bind']('currentChangeNumber')['to'](this,_0x5eb6('0x10f'),this,_0x5eb6('0x10d'),this,_0x5eb6('0x9'),(_0x3fc651,_0x3d25b9,_0x270701)=>_0x3fc651&&_0x270701?_0x3d25b9[_0x5eb6('0x9e')][_0x5eb6('0xa')](_0x270701):0x0),this['bind'](_0x5eb6('0x6b'))['to'](this,_0x5eb6('0x10f'),this,_0x5eb6('0x10d'),(_0x1795be,_0x11c764)=>_0x1795be?_0x11c764[_0x5eb6('0x9e')][_0x5eb6('0x7')]:0x0),this[_0x5eb6('0xc5')]=null,this[_0x5eb6('0x114')]=new Map(),this[_0x5eb6('0x2e')]=null,this['_balloon']=this[_0x5eb6('0x2f')][_0x5eb6('0x8d')][_0x5eb6('0x1e')](_0x115b34);}[_0x5eb6('0x39')](){const _0x1a8bf5=this['editor'],_0x37699b=new ShowChangeCommand(_0x1a8bf5,{'direction':_0x5eb6('0x60')}),_0x31c1dd=new ShowChangeCommand(_0x1a8bf5,{'direction':_0x5eb6('0x90')});(_0x1a8bf5[_0x5eb6('0x93')][_0x5eb6('0xa9')](_0x5eb6('0xc4'),_0x37699b),_0x1a8bf5[_0x5eb6('0x93')][_0x5eb6('0xa9')](_0x5eb6('0xc8'),_0x31c1dd),_0x1a8bf5[_0x5eb6('0x93')]['add']('restoreRevision',new RestoreRevisionCommand(_0x1a8bf5)),this['on'](_0x5eb6('0xe1'),()=>{_0x37699b[_0x5eb6('0x23')](),_0x31c1dd[_0x5eb6('0x23')]();}),this[_0x5eb6('0x100')](),this[_0x5eb6('0xa1')](),_0x1a8bf5[_0x5eb6('0x52')]('revision-viewer'),_0x1a8bf5[_0x5eb6('0x8d')][_0x5eb6('0x62')]('WidgetToolbarRepository'))&&_0x1a8bf5['plugins']['get'](_0x5eb6('0x61'))[_0x5eb6('0xcb')](_0x5eb6('0x3c'));}async[_0x5eb6('0xb3')](_0x39950c){await this[_0x5eb6('0x92')](_0x39950c);const _0x43a226={};for(const _0x1464cb in _0x39950c[_0x5eb6('0x30')]){if(_0x39950c[_0x5eb6('0x30')][_0x1464cb][_0x5eb6('0x96')]&&!_0x39950c[_0x5eb6('0x30')][_0x1464cb]['attachChange'][_0x5eb6('0xfd')])continue;const _0x58193e=this[_0x5eb6('0x75')](JSON[_0x5eb6('0xf7')](_0x39950c['diffData'][_0x1464cb][_0x5eb6('0xd9')])),_0x381de1=this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')][_0x5eb6('0x8c')],_0x51e6af=new _0x610417(_0x381de1,_0x58193e['map'](_0x1f4f38=>this[_0x5eb6('0x121')](_0x1f4f38)));this[_0x5eb6('0x2f')][_0x5eb6('0x6c')][_0x5eb6('0x12c')][_0x5eb6('0x5d')]('marked'),_0x43a226[_0x1464cb]=this[_0x5eb6('0x2f')][_0x5eb6('0x6c')][_0x5eb6('0x12c')][_0x5eb6('0xac')](_0x51e6af),this['editor'][_0x5eb6('0x6c')][_0x5eb6('0x12c')][_0x5eb6('0x5d')](_0x5eb6('0xa5'));}return _0x43a226;}async[_0x5eb6('0x8b')](_0x1aac4e){await this['loadRevisionData'](_0x1aac4e);const _0x1eee50={};for(const _0x4ed9e6 in _0x1aac4e[_0x5eb6('0x30')])_0x1aac4e[_0x5eb6('0x30')][_0x4ed9e6][_0x5eb6('0x96')]&&!_0x1aac4e['diffData'][_0x4ed9e6][_0x5eb6('0x96')][_0x5eb6('0xfd')]||(_0x1eee50[_0x4ed9e6]=_0x1aac4e[_0x5eb6('0x30')][_0x4ed9e6]['attributesAfter']||{});return _0x1eee50;}[_0x5eb6('0x75')](_0x1b4776){return(_0x1b4776=_0x1b4776[_0x5eb6('0x80')](_0x217612=>!_0x217612[_0x5eb6('0x41')]||_0x5eb6('0xee')!==_0x217612[_0x5eb6('0x41')]&&_0x5eb6('0x5b')!==_0x217612[_0x5eb6('0x41')]))[_0x5eb6('0x9c')](_0x116955=>{_0x5eb6('0x10c')!=typeof _0x116955&&(_0x116955[_0x5eb6('0x111')]=this['_removeRevisionMarkers'](_0x116955['children']),_0x116955['attributes']=_0x116955[_0x5eb6('0xf5')]['filter'](_0x55df42=>!_0x55df42[0x0]['startsWith'](_0x5eb6('0x1f'))));}),_0x1b4776;}async[_0x5eb6('0x4b')](_0x10f0ef,_0x11e57f,_0x265f82=!0x1){if(!this[_0x5eb6('0x11')])return;const _0x32f6f4=this[_0x5eb6('0x10d')],_0x1d2dc0=this[_0x5eb6('0x19')],_0x437f75=_0x5eb6('0x10c')==typeof _0x10f0ef?_0x1d2dc0['getRevision'](_0x10f0ef):_0x10f0ef,_0x2e22e9=_0x5eb6('0x10c')==typeof _0x11e57f?_0x1d2dc0[_0x5eb6('0x3')](_0x11e57f):_0x11e57f,_0x5a8846=_0x437f75['id'],_0x1adf85=_0x2e22e9?_0x2e22e9['id']:null;if(!_0x265f82&&this[_0x5eb6('0x10d')]&&this[_0x5eb6('0x10d')][_0x5eb6('0x43')]===_0x5a8846&&this[_0x5eb6('0x10d')][_0x5eb6('0x1d')]===_0x1adf85)return Promise['resolve']();this[_0x5eb6('0x10f')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x5eb6('0x10d')]=new _0x5c35d8(_0x5a8846,_0x1adf85);const _0x4a926f=this[_0x5eb6('0x31')](_0x437f75,_0x2e22e9,!0x0)[_0x5eb6('0x44')](_0x495f4f=>this['loadRevisionData'](_0x495f4f));return _0x4a926f['push'](new Promise(_0x358b7e=>{setTimeout(_0x358b7e,0x14);})),Promise[_0x5eb6('0xb1')](_0x4a926f)[_0x5eb6('0x118')](()=>{if(!this[_0x5eb6('0x11')])return;this[_0x5eb6('0x11a')]();const _0x3aa94f=this[_0x5eb6('0x10b')](_0x5a8846,_0x1adf85);for(const _0x30b4ff of _0x3aa94f['changes'])this[_0x5eb6('0x114')][_0x5eb6('0xa4')](_0x30b4ff['id'],_0x30b4ff);this['editor'][_0x5eb6('0x13')][_0x5eb6('0x58')]({'isUndoable':!0x1},_0x47e2d=>{for(const _0x3b2019 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')]['document'][_0x5eb6('0x48')]())_0x47e2d[_0x5eb6('0x72')](_0x3b2019);for(const _0x3443d6 of Object[_0x5eb6('0xb')](_0x3aa94f[_0x5eb6('0x13')])){const _0x455243=_0x47e2d[_0x5eb6('0x35')](_0x3443d6);for(const _0x4fcb8a of Object[_0x5eb6('0xb')](_0x3aa94f[_0x5eb6('0xf5')][_0x3443d6]))_0x47e2d[_0x5eb6('0x2c')](_0x4fcb8a,_0x3aa94f[_0x5eb6('0xf5')][_0x3443d6][_0x4fcb8a],_0x455243);_0x47e2d[_0x5eb6('0x4e')](_0x3aa94f[_0x5eb6('0x13')][_0x3443d6],_0x455243,0x0);}}),this[_0x5eb6('0x10d')][_0x5eb6('0x105')](this['_sortAndFilterDiffChanges'](_0x3aa94f['changes'])),this[_0x5eb6('0x10f')]=!0x0;})[_0x5eb6('0xb7')](_0x5116fa=>{console[_0x5eb6('0x34')](_0x5116fa),this[_0x5eb6('0x11a')](),_0x32f6f4&&(this[_0x5eb6('0x10d')]=_0x32f6f4),this[_0x5eb6('0x10f')]=!0x0;});}['addRevisionData'](_0x1e3fbe,_0x29651a){const _0x3ceb74=this['repository'][_0x5eb6('0xb6')](_0x1e3fbe);return _0x3ceb74['on'](_0x5eb6('0x46'),(_0x320bd2,_0x4157d8,_0x1c959a)=>_0x29651a(_0x4157d8,_0x1c959a,_0x3ceb74)),this[_0x5eb6('0x19')][_0x5eb6('0x49')](_0x3ceb74),_0x3ceb74;}[_0x5eb6('0x92')](_0x8d9440){if(!_0x8d9440||_0x8d9440[_0x5eb6('0x30')])return Promise[_0x5eb6('0xa7')]();{const _0xd22013=this[_0x5eb6('0x2f')][_0x5eb6('0xbb')][_0x5eb6('0x1e')](_0x5eb6('0x59'));return this[_0x5eb6('0x2e')][_0x5eb6('0x3')]({'channelId':_0xd22013,'revisionId':_0x8d9440['id']})[_0x5eb6('0x118')](_0x166aa3=>{_0x8d9440[_0x5eb6('0x46')]({'diffData':_0x166aa3[_0x5eb6('0x30')]},!0x0);});}}[_0x5eb6('0x11a')](){this[_0x5eb6('0x9')]=null,this[_0x5eb6('0x10a')](),this['_changeView']&&this[_0x5eb6('0xc5')][_0x5eb6('0x8e')](),this[_0x5eb6('0xc5')]=null,this['_changeIdToChange']['clear'](),this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x58')]({'isUndoable':!0x1},_0x59f786=>{for(const _0x38d877 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0x48')]())_0x59f786[_0x5eb6('0x72')](_0x38d877);});}['_sortAndFilterDiffChanges'](_0x2b25c0){const _0xd61820=[],_0x3567b9=new Map();for(const _0xad7a47 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')]['document'][_0x5eb6('0x48')]()){const _0x3aa867=this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x27')]['getDomRoot'](_0xad7a47);if(!_0x3aa867)continue;const _0x213e52=_0x3aa867['getClientRects']()['item'](0x0);_0x213e52&&(_0xd61820[_0x5eb6('0xdb')](_0xad7a47),_0x3567b9[_0x5eb6('0xa4')](_0xad7a47,_0x213e52));}return _0xd61820['sort']((_0x31429d,_0x200fd0)=>{const _0x415488=_0x3567b9['get'](_0x31429d),_0x27cc36=_0x3567b9[_0x5eb6('0x1e')](_0x200fd0);return _0x415488['y']-_0x27cc36['y']||_0x415488['x']-_0x27cc36['x'];}),(_0x2b25c0=_0x2b25c0[_0x5eb6('0x80')](_0x153f6e=>_0xd61820['includes'](_0x153f6e[_0x5eb6('0x97')])))[_0x5eb6('0x11f')]((_0x28c1c5,_0x32aff4)=>_0xd61820['indexOf'](_0x28c1c5[_0x5eb6('0x97')])-_0xd61820[_0x5eb6('0xed')](_0x32aff4[_0x5eb6('0x97')])),_0x2b25c0;}['_makeTape'](_0x18461b){const _0x128f12=Array[_0x5eb6('0x26')](_0x18461b[_0x5eb6('0xd4')])[_0x5eb6('0x80')](([_0x3a50bd,_0x2930aa])=>_0x3a50bd['startsWith'](_0x5eb6('0x12d'))&&!_0x2930aa[_0x5eb6('0x15')]),_0x42e9af=Array[_0x5eb6('0x26')](this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0xb5')](_0x18461b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x128f12[_0x5eb6('0x7')])for(const _0x492a35 of _0x42e9af){const [_0x34db0b,_0x3e100e]=_0x128f12[0x0],[,_0x392fe9,_0xfd81d4]=_0x34db0b[_0x5eb6('0x122')](':');if(_0x3e100e[_0x5eb6('0x78')][_0x5eb6('0x1a')](_0x492a35[_0x5eb6('0xc')])&&_0x128f12[_0x5eb6('0xdd')](),(_0x492a35[_0x5eb6('0x89')][_0x5eb6('0x1a')](_0x3e100e[_0x5eb6('0x12b')])||_0x492a35[_0x5eb6('0x89')]['isAfter'](_0x3e100e[_0x5eb6('0x12b')]))&&(_0x5eb6('0xe9')==_0x392fe9?_0x492a35[_0x5eb6('0x3e')]={'userId':_0xfd81d4}:_0x5eb6('0x119')==_0x392fe9&&(_0x492a35[_0x5eb6('0x5')]={'userId':_0xfd81d4})),0x0==_0x128f12['length'])break;}return _0x42e9af;}['_refreshStartEndIndex'](_0x596c5e){const _0x3be66b=new Map();for(let _0x876b4e=0x0;_0x876b4e<_0x596c5e[_0x5eb6('0x7')];_0x876b4e++)_0x5eb6('0x65')===_0x596c5e[_0x876b4e]['type']?(_0x596c5e[_0x876b4e]['item'][_0x5eb6('0x42')]=_0x876b4e,_0x596c5e[_0x876b4e][_0x5eb6('0xa3')]['endIndex']=_0x876b4e):(_0x5eb6('0xf6')===_0x596c5e[_0x876b4e][_0x5eb6('0x20')]?_0x596c5e[_0x876b4e][_0x5eb6('0xa3')][_0x5eb6('0x42')]=_0x876b4e:'elementEnd'===_0x596c5e[_0x876b4e][_0x5eb6('0x20')]&&(_0x596c5e[_0x876b4e][_0x5eb6('0xa3')][_0x5eb6('0xde')]=_0x876b4e),_0x3be66b[_0x5eb6('0xa4')](_0x596c5e[_0x876b4e]['id'],_0x876b4e));for(const _0x320ce5 of _0x3be66b[_0x5eb6('0x127')]())_0x5eb6('0xf6')===_0x596c5e[_0x320ce5][_0x5eb6('0x20')]?_0x596c5e[_0x320ce5][_0x5eb6('0xa3')][_0x5eb6('0xde')]=_0x3be66b[_0x5eb6('0x1e')](_0x596c5e[_0x320ce5][_0x5eb6('0xe5')]):_0x5eb6('0x54')===_0x596c5e[_0x320ce5][_0x5eb6('0x20')]&&(_0x596c5e[_0x320ce5][_0x5eb6('0xa3')]['startIndex']=_0x3be66b[_0x5eb6('0x1e')](_0x596c5e[_0x320ce5][_0x5eb6('0xe5')]));}[_0x5eb6('0x107')](_0x36c76b){for(let _0x5d1b6a=0x0;_0x5d1b6a<_0x36c76b[_0x5eb6('0x7')];_0x5d1b6a++){if('elementStart'===_0x36c76b[_0x5d1b6a]['type'])_0x36c76b[_0x5d1b6a][_0x5eb6('0xa3')][_0x5eb6('0x42')]=_0x5d1b6a;else{if(_0x5eb6('0x54')===_0x36c76b[_0x5d1b6a]['type']){_0x36c76b[_0x5d1b6a]['item'][_0x5eb6('0xde')]=_0x5d1b6a;const _0x133555=_0x36c76b[_0x5d1b6a]['item'][_0x5eb6('0x42')];_0x36c76b[_0x133555][_0x5eb6('0xe5')]=_0x36c76b[_0x5d1b6a]['id'],_0x36c76b[_0x5d1b6a][_0x5eb6('0xe5')]=_0x36c76b[_0x133555]['id'];}else _0x36c76b[_0x5d1b6a][_0x5eb6('0xa3')]['startIndex']=_0x5d1b6a,_0x36c76b[_0x5d1b6a]['item']['endIndex']=_0x5d1b6a,_0x36c76b[_0x5d1b6a][_0x5eb6('0xe5')]=null;}_0x36c76b[_0x5d1b6a][_0x5eb6('0xcc')]||(_0x36c76b[_0x5d1b6a][_0x5eb6('0xcc')]=[],_0x36c76b[_0x5d1b6a][_0x5eb6('0x0')]=[]);}}[_0x5eb6('0xef')](_0x4b5996,_0x2c61da){const _0x31ce8f=_0x4b5996['filter'](_0x4d00b6=>!_0x4d00b6[_0x5eb6('0x3e')]);for(let _0x3e520a=0x0;_0x3e520a<_0x2c61da[_0x5eb6('0x7')];_0x3e520a++)_0x2c61da[_0x3e520a]['isAdded']&&(_0x31ce8f[_0x3e520a][_0x5eb6('0x3e')]=_0x2c61da[_0x3e520a][_0x5eb6('0x3e')]);}[_0x5eb6('0x7a')](_0x59bdd0){const _0x17be8d=JSON[_0x5eb6('0xf7')](_0x59bdd0),_0x161eb4=this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')]['document'],_0x3c095a=new _0x610417(_0x161eb4,_0x17be8d[_0x5eb6('0x44')](_0x1db797=>this[_0x5eb6('0x121')](_0x1db797)));return this['editor'][_0x5eb6('0x6c')][_0x5eb6('0x11b')](_0x3c095a);}[_0x5eb6('0x121')](_0x36e2c4){const _0x1e1cba=this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x27')]['document'];if('string'==typeof _0x36e2c4)return new _0x2c4a06(_0x1e1cba,_0x36e2c4);{const _0x269ce9=_0x36e2c4[_0x5eb6('0x111')][_0x5eb6('0x44')](_0x2412d1=>this[_0x5eb6('0x121')](_0x2412d1));return new(tt[_0x36e2c4[(_0x5eb6('0x20'))]]||_0x38a0de)(_0x1e1cba,_0x36e2c4[_0x5eb6('0x41')],_0x36e2c4['attributes'],_0x269ce9);}}['_getDiff'](_0x33e521,_0x688d9f=null){const _0xe32621=this['repository'][_0x5eb6('0x3')](_0x33e521),_0x2642a9=_0x688d9f?this[_0x5eb6('0x19')]['getRevision'](_0x688d9f):null,_0x353873=this[_0x5eb6('0x31')](_0xe32621,_0x2642a9),_0x463844=_0x353873[_0x353873[_0x5eb6('0x7')]-0x1],_0x5f2b84=new Map(),_0x57cc6e={'model':{},'attributes':{},'changes':[]},_0x3f04da=new Set(),_0x246d50=new Map();for(let _0x4eb9ce=_0x353873[_0x5eb6('0x7')]-0x1;_0x4eb9ce>=0x0;_0x4eb9ce--){const _0x5b5454=_0x353873[_0x4eb9ce];for(const _0x507748 of Object['keys'](_0x5b5454[_0x5eb6('0x30')]))if(_0x5b5454[_0x5eb6('0x30')][_0x507748]['attachChange']){const _0x551f84=_0x5b5454['diffData'][_0x507748]['attachChange'];_0x551f84[_0x5eb6('0xfd')]?(_0x3f04da['add'](_0x507748),_0x246d50['has'](_0x507748)&&_0x246d50[_0x5eb6('0x1e')](_0x507748)[_0x5eb6('0x73')]==_0x551f84[_0x5eb6('0x73')]?_0x246d50[_0x5eb6('0x4a')](_0x507748):_0x246d50['set'](_0x507748,_0x551f84)):_0x246d50[_0x5eb6('0x62')](_0x507748)?(_0x3f04da[_0x5eb6('0x4a')](_0x507748),_0x246d50[_0x5eb6('0x4a')](_0x507748)):(_0x3f04da[_0x5eb6('0xa9')](_0x507748),_0x246d50[_0x5eb6('0xa4')](_0x507748,_0x551f84));}else _0x3f04da[_0x5eb6('0xa9')](_0x507748);}for(const _0x4500b0 of _0x3f04da){const _0x561657=_0x246d50['has'](_0x4500b0)&&!_0x246d50[_0x5eb6('0x1e')](_0x4500b0)[_0x5eb6('0xfd')];let _0x11915c=_0x561657?_0x353873[_0x5eb6('0x7')]-0x1:0x0;const _0x4b269c=_0x561657?-0x1:0x1;for(;_0x353873[_0x11915c];){const _0xee37a4=_0x353873[_0x11915c];if(_0xee37a4[_0x5eb6('0x30')][_0x4500b0]){const _0x521fd8=_0x561657?_0xee37a4[_0x5eb6('0x30')][_0x4500b0][_0x5eb6('0x99')]:_0xee37a4[_0x5eb6('0x30')][_0x4500b0][_0x5eb6('0x5f')];_0x57cc6e[_0x5eb6('0xf5')][_0x4500b0]=_0x521fd8?_0x1e9154(_0x521fd8):{};break;}_0x11915c+=_0x4b269c;}}for(const _0x456f50 of _0x353873){_0x456f50[_0x5eb6('0x13')]={};for(const _0x2534bb of _0x456f50[_0x5eb6('0xdf')])_0x5f2b84[_0x5eb6('0xa4')](_0x2534bb['id'],_0x2534bb);for(const _0x4edf48 of _0x3f04da){const _0x4d8c76=_0x456f50[_0x5eb6('0x30')][_0x4edf48]?_0x456f50[_0x5eb6('0x30')][_0x4edf48][_0x5eb6('0xd9')]:'[]',_0x2dc382=_0x456f50[_0x5eb6('0x30')][_0x4edf48]?_0x456f50['diffData'][_0x4edf48]['deletions']:'[]';_0x456f50[_0x5eb6('0x13')][_0x4edf48]={'insertions':this[_0x5eb6('0x7a')](_0x4d8c76),'deletions':this[_0x5eb6('0x7a')](_0x2dc382)};}}for(const _0x2bafb2 of _0x3f04da){let _0x46082d=null,_0x26cf5b=0x0;const _0x4cb9b3=new Map(Array[_0x5eb6('0x26')](_0xe32621[_0x5eb6('0x13')][_0x2bafb2][_0x5eb6('0xd9')][_0x5eb6('0xd4')])['filter'](([_0x38d6f0])=>!_0x38d6f0['startsWith'](_0x5eb6('0x12d'))));let _0x45cbca=0x0;for(const _0x4625ce of _0x353873){const _0x111274=this['_makeTape'](_0x4625ce[_0x5eb6('0x13')][_0x2bafb2][_0x5eb6('0xd9')]);_0x4625ce==_0xe32621?(_0x46082d=_0x111274,_0x26cf5b=_0x46082d[_0x5eb6('0x7')],_0x46082d[_0x5eb6('0x9c')](_0x224e81=>{_0x224e81['id']=_0x45cbca++;}),this['_processTape'](_0x46082d)):this['_markInsertions'](_0x46082d,_0x111274);const _0x230733=_0x46082d[_0x5eb6('0x80')](_0x1a88d6=>!_0x1a88d6[_0x5eb6('0x3e')])[_0x5eb6('0x44')](_0x204a34=>_0x204a34['id']);let _0x1c0c41=0x0;const _0x4bed33=this['_makeTape'](_0x4625ce[_0x5eb6('0x13')][_0x2bafb2][_0x5eb6('0xd3')]);_0x4bed33[_0x5eb6('0x9c')](_0x26ed10=>{_0x26ed10[_0x5eb6('0x5')]?_0x26ed10['id']=_0x26cf5b++:_0x26ed10['id']=_0x230733[_0x1c0c41++];}),this[_0x5eb6('0x107')](_0x4bed33),this[_0x5eb6('0x102')](_0x46082d,_0x5eb6('0x3e')),this[_0x5eb6('0x102')](_0x4bed33,'isRemoved'),_0x4625ce==_0xe32621&&this['_markMarkers'](_0x46082d,_0x4cb9b3),_0x46082d=this[_0x5eb6('0x11c')](_0x46082d,_0x4bed33),this[_0x5eb6('0x11d')](_0x46082d),this[_0x5eb6('0x102')](_0x46082d,'isRemoved');}_0x46082d=_0x46082d[_0x5eb6('0x80')](_0x2b86c8=>!(_0x2b86c8[_0x5eb6('0x3e')]&&_0x2b86c8[_0x5eb6('0x5')]));const _0x1fe20a=new Map(_0x463844[_0x5eb6('0x13')][_0x2bafb2]['deletions'][_0x5eb6('0xd4')]),_0xd2423c=new Set(_0x4cb9b3[_0x5eb6('0xb')]());for(const _0x3647ac of _0x1fe20a['keys']())_0xd2423c[_0x5eb6('0x4a')](_0x3647ac);this[_0x5eb6('0x91')](_0x46082d,_0xd2423c),this[_0x5eb6('0x81')](_0x46082d),_0x46082d=this[_0x5eb6('0x37')](_0x46082d),_0x46082d=this['_markMismatchedRemovedTags'](_0x46082d),_0x46082d=this['_removeUnsupportedChanges'](_0x46082d);const {root:_0x229dfa,changes:_0x515260}=this[_0x5eb6('0xfe')](_0x46082d,_0x5f2b84,_0x2bafb2);_0x57cc6e[_0x5eb6('0x13')][_0x2bafb2]=_0x229dfa;const _0x5776fc=_0x246d50['get'](_0x2bafb2);if(_0x5776fc){const _0x399816=_0x5f2b84[_0x5eb6('0x1e')](_0x5776fc[_0x5eb6('0x73')]),_0x45b917=new _0x3aa243({'author':_0x399816,'type':_0x5776fc[_0x5eb6('0xfd')]?_0x5eb6('0xa9'):_0x5eb6('0xbf'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2bafb2});_0x515260['unshift'](_0x45b917),_0x57cc6e[_0x5eb6('0xf5')][_0x2bafb2][_0x5eb6('0x14')]=_0x45b917['id'];}_0x57cc6e[_0x5eb6('0x9e')]=_0x57cc6e[_0x5eb6('0x9e')][_0x5eb6('0xe8')](_0x515260);}return _0x57cc6e;}[_0x5eb6('0x8f')](_0x10582a,_0x4693ea){for(let _0x50b3fe=0x0;_0x50b3fe<_0x10582a[_0x5eb6('0x7')];_0x50b3fe++)for(const [_0x156718,_0x4204ed]of _0x4693ea)_0x4204ed[_0x5eb6('0x12b')][_0x5eb6('0x1a')](_0x10582a[_0x50b3fe]['previousPosition'])&&_0x10582a[_0x50b3fe][_0x5eb6('0xcc')][_0x5eb6('0xdb')](_0x156718),_0x4204ed[_0x5eb6('0x78')][_0x5eb6('0x1a')](_0x10582a[_0x50b3fe][_0x5eb6('0xc')])&&_0x10582a[_0x50b3fe]['markersEnd']['push'](_0x156718);}[_0x5eb6('0x11c')](_0x1a06db,_0x25b623){let _0x56739b=[],_0x201dfb=0x0,_0x2ea9fa=0x0;for(;_0x201dfb<_0x1a06db[_0x5eb6('0x7')]||_0x2ea9fa<_0x25b623[_0x5eb6('0x7')];){const _0x32cf4e=_0x1a06db[_0x201dfb]||{},_0x19fc1f=_0x25b623[_0x2ea9fa]||{};if(_0x32cf4e['id']==_0x19fc1f['id'])_0x201dfb++,_0x2ea9fa++,_0x56739b['push'](_0x32cf4e);else{if(_0x19fc1f['isRemoved']&&_0x32cf4e[_0x5eb6('0x3e')]){const {commonTape:_0x212b39,iEnd:_0x14a778,jEnd:_0x4784cf}=this['_threeWayMerge'](_0x1a06db,_0x201dfb,_0x25b623,_0x2ea9fa);_0x56739b=_0x56739b[_0x5eb6('0xe8')](_0x212b39),_0x201dfb=_0x14a778,_0x2ea9fa=_0x4784cf;}else _0x19fc1f[_0x5eb6('0x5')]?(_0x2ea9fa++,_0x56739b[_0x5eb6('0xdb')](_0x19fc1f)):(_0x201dfb++,_0x56739b['push'](_0x32cf4e));}}return _0x56739b;}['_markSuggestions'](_0x407023,_0x55c4c7){const _0x24090d=[];for(let _0x35f5ec=0x0;_0x35f5ec<_0x407023[_0x5eb6('0x7')];_0x35f5ec++){for(let _0x54469a=0x0;_0x54469a<_0x407023[_0x35f5ec]['markersStart'][_0x5eb6('0x7')];_0x54469a++){const _0x5bbb0c=_0x407023[_0x35f5ec][_0x5eb6('0xcc')][_0x54469a];if(!_0x55c4c7[_0x5eb6('0x62')](_0x5bbb0c))continue;const {group:_0x27ac76,type:_0x40a70a,authorId:_0x30909d}=_0x207282(_0x5bbb0c);_0x5eb6('0x10')!=_0x27ac76||_0x5eb6('0xe9')!=_0x40a70a&&_0x5eb6('0x119')!=_0x40a70a||(_0x24090d['unshift']({'type':_0x40a70a,'name':_0x5bbb0c,'userId':_0x30909d}),_0x407023[_0x35f5ec][_0x5eb6('0xcc')][_0x5eb6('0x124')](_0x54469a,0x1),_0x54469a--);}_0xb6ccee(_0x407023[_0x35f5ec]);for(let _0x3320be=0x0;_0x3320be<_0x407023[_0x35f5ec]['markersEnd'][_0x5eb6('0x7')];_0x3320be++){const _0x3fa3ff=_0x407023[_0x35f5ec][_0x5eb6('0x0')][_0x3320be];if(!_0x55c4c7[_0x5eb6('0x62')](_0x3fa3ff))continue;const {group:_0x513ed8,type:_0x1bcd1a}=_0x207282(_0x3fa3ff);if('revision-suggestion'!=_0x513ed8||_0x5eb6('0xe9')!=_0x1bcd1a&&_0x5eb6('0x119')!=_0x1bcd1a)continue;_0x407023[_0x35f5ec][_0x5eb6('0x0')][_0x5eb6('0x124')](_0x3320be,0x1),_0x3320be--;const _0x5b0cfd=_0x24090d[_0x5eb6('0xab')](_0x426d0d=>_0x426d0d['name']==_0x3fa3ff);_0x5b0cfd>-0x1&&_0x24090d[_0x5eb6('0x124')](_0x5b0cfd,0x1);}}function _0x207282(_0x449246){const _0x457548=_0x449246[_0x5eb6('0x122')](':');return{'group':_0x457548[0x0],'type':_0x457548[0x1],'subType':_0x457548[_0x5eb6('0x7')]>=0x5?_0x457548[0x2]:null,'id':_0x457548[_0x5eb6('0x7')]<0x5?_0x457548[0x2]:_0x457548[0x3],'authorId':_0x457548[_0x5eb6('0x7')]<0x5?_0x457548[0x3]:_0x457548[0x4],'markerCount':0x6==_0x457548[_0x5eb6('0x7')]?_0x457548[0x5]:null};}function _0xb6ccee(_0x1cd24b){for(let _0x1ccf06=0x0;_0x1ccf06<_0x24090d['length'];_0x1ccf06++){if(_0x1cd24b[_0x5eb6('0x3e')]&&_0x5eb6('0xe9')==_0x24090d[_0x1ccf06][_0x5eb6('0x20')])return _0x1cd24b[_0x5eb6('0x36')]=_0x24090d[_0x1ccf06],void delete _0x1cd24b[_0x5eb6('0x3e')];if(!_0x1cd24b[_0x5eb6('0x3e')]&&!_0x1cd24b[_0x5eb6('0x5')]&&_0x5eb6('0x119')==_0x24090d[_0x1ccf06][_0x5eb6('0x20')])return void(_0x1cd24b[_0x5eb6('0xaa')]=_0x24090d[_0x1ccf06]);}}}['_setDistance'](_0x32a33b,_0x555f34){let _0x509b92=0x0,_0x31ac7c=!0x1;const _0x18d32e=new Map();for(const _0x28ed47 of _0x32a33b)_0x28ed47[_0x555f34]?_0x31ac7c&&(_0x509b92++,_0x31ac7c=!0x1):(_0x509b92++,_0x31ac7c=!0x0),_0x18d32e[_0x5eb6('0xa4')](_0x28ed47['id'],_0x509b92);for(let _0x403189=0x0;_0x403189<_0x32a33b[_0x5eb6('0x7')];_0x403189++){if(_0x5eb6('0x5')==_0x555f34&&_0x32a33b[_0x403189]['isAdded']||_0x5eb6('0x3e')==_0x555f34&&_0x32a33b[_0x403189][_0x5eb6('0x5')])continue;if('text'==_0x32a33b[_0x403189][_0x5eb6('0x20')]){_0x32a33b[_0x403189][_0x5eb6('0x67')]=0x0;continue;}const _0x18f270=_0x18d32e[_0x5eb6('0x1e')](_0x32a33b[_0x403189][_0x5eb6('0xe5')]),_0x52a492=_0x18d32e[_0x5eb6('0x1e')](_0x32a33b[_0x403189]['id']);_0x32a33b[_0x403189][_0x5eb6('0x67')]=_0x18f270-_0x52a492;}}[_0x5eb6('0x31')](_0x30cd25,_0x23073e,_0x42846d=!0x1){const _0x57cbd6=[];let _0x5e3d73=this[_0x5eb6('0x19')][_0x5eb6('0xa')](_0x30cd25),_0x524ad8=this['repository'][_0x5eb6('0xa')](_0x23073e);for(-0x1==_0x524ad8&&(_0x524ad8=this[_0x5eb6('0x19')][_0x5eb6('0xc1')][_0x5eb6('0x7')],_0x42846d=!0x1);_0x5e3d73<_0x524ad8;)_0x57cbd6[_0x5eb6('0xdb')](this[_0x5eb6('0x19')][_0x5eb6('0x3')](_0x5e3d73)),_0x5e3d73++;return _0x42846d&&_0x57cbd6[_0x5eb6('0xdb')](this[_0x5eb6('0x19')][_0x5eb6('0x3')](_0x5e3d73)),_0x57cbd6;}[_0x5eb6('0xc2')](_0x20c4a2,_0x23053b,_0x1ea177,_0x346c4a){const _0x35d099=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x5e')];let _0x3c4202=_0x23053b;for(;_0x20c4a2[_0x3c4202]&&_0x20c4a2[_0x3c4202][_0x5eb6('0x3e')];)_0x3c4202++;let _0x82a0d1=_0x346c4a;for(;_0x1ea177[_0x82a0d1]&&_0x1ea177[_0x82a0d1]['isRemoved'];)_0x82a0d1++;_0x3b5755(_0x20c4a2,_0x23053b,_0x3c4202),_0x3b5755(_0x1ea177,_0x346c4a,_0x82a0d1);const _0x5f462b=_0x1ea177['slice'](_0x346c4a,_0x82a0d1)[_0x5eb6('0xe8')](_0x20c4a2['slice'](_0x23053b,_0x3c4202));return _0x5f462b[_0x5eb6('0x11f')]((_0x376430,_0x1c1c57)=>_0x376430[_0x5eb6('0xfa')]!=_0x1c1c57['side']?_0x376430[_0x5eb6('0xfa')]-_0x1c1c57['side']:_0x376430[_0x5eb6('0x9a')]!=_0x1c1c57[_0x5eb6('0x9a')]?_0x376430[_0x5eb6('0x9a')]-_0x1c1c57[_0x5eb6('0x9a')]:_0x376430[_0x5eb6('0x67')]!=_0x1c1c57[_0x5eb6('0x67')]?_0x1c1c57[_0x5eb6('0x67')]-_0x376430[_0x5eb6('0x67')]:!!_0x376430[_0x5eb6('0x3e')]!=!!_0x1c1c57[_0x5eb6('0x3e')]?-0x1==_0x376430[_0x5eb6('0xfa')]||0x0==_0x376430['side']?_0x376430['isAdded']?-0x1:0x1:_0x376430[_0x5eb6('0x3e')]?0x1:-0x1:_0x376430[_0x5eb6('0x115')]-_0x1c1c57[_0x5eb6('0x115')]),{'commonTape':_0x5f462b,'iEnd':_0x3c4202,'jEnd':_0x82a0d1};function _0x3b5755(_0x2cb4f4,_0x11dec8,_0x41c915){let _0x15c171=-0x1,_0x4b32cb=Number[_0x5eb6('0x2d')],_0x11e9fc=!0x0;for(let _0x136120=_0x11dec8;_0x136120<_0x41c915;_0x136120++)if(_0x35d099['isInline'](_0x2cb4f4[_0x136120][_0x5eb6('0xa3')])||(_0x11e9fc=!0x1),_0x2cb4f4[_0x136120][_0x5eb6('0xa3')][_0x5eb6('0x42')]<_0x11dec8&&(_0x15c171=_0x136120),_0x2cb4f4[_0x136120]['item'][_0x5eb6('0xde')]>=_0x41c915){_0x4b32cb=_0x136120;break;}_0x11e9fc&&(_0x15c171=_0x41c915-0x1);for(let _0xc1c5d0=_0x11dec8;_0xc1c5d0<_0x41c915;_0xc1c5d0++)_0x2cb4f4[_0xc1c5d0][_0x5eb6('0xfa')]=_0xc1c5d0<=_0x15c171?-0x1:_0xc1c5d0<_0x4b32cb?0x0:0x1,_0x2cb4f4[_0xc1c5d0]['index']=_0xc1c5d0;let _0x5a9fc1=0x0;for(let _0x2b256c=_0x11dec8;_0x2b256c<=_0x15c171;_0x2b256c++)0x0==_0x2cb4f4[_0x2b256c][_0x5eb6('0x67')]?_0x2cb4f4[_0x2b256c][_0x5eb6('0x9a')]=_0x5a9fc1:(_0x5a9fc1++,_0x2cb4f4[_0x2b256c]['level']=_0x5a9fc1,_0x5a9fc1++);for(let _0x3a1a88=_0x11dec8;_0x3a1a88<_0x41c915;_0x3a1a88++)0x0==_0x2cb4f4[_0x3a1a88][_0x5eb6('0xfa')]&&(_0x2cb4f4[_0x3a1a88][_0x5eb6('0x9a')]=_0x5a9fc1);_0x5a9fc1=0x0;for(let _0x55ba39=_0x41c915-0x1;_0x55ba39>=_0x4b32cb;_0x55ba39--)0x0==_0x2cb4f4[_0x55ba39][_0x5eb6('0x67')]?_0x2cb4f4[_0x55ba39][_0x5eb6('0x9a')]=_0x5a9fc1:(_0x5a9fc1--,_0x2cb4f4[_0x55ba39][_0x5eb6('0x9a')]=_0x5a9fc1,_0x5a9fc1--);}}[_0x5eb6('0x81')](_0x1039b1){const _0x565c6d=new Map(),_0x4fa8fc=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x5e')];for(let _0x4ffad8=0x1;_0x4ffad8<_0x1039b1['length'];_0x4ffad8++){let _0x432a95,_0x10cd37,_0x2ccd60;const _0x5148b4=_0x1039b1[_0x4ffad8],_0x5ca5c7=_0x1039b1[_0x4ffad8-0x1];if(_0x5eb6('0x65')==_0x5148b4['type'])continue;if(_0x5148b4[_0x5eb6('0x20')]!=_0x5ca5c7[_0x5eb6('0x20')])continue;if(!_0x4fa8fc[_0x5eb6('0xe6')](_0x5ca5c7[_0x5eb6('0xa3')])||_0x4fa8fc['isLimit'](_0x5ca5c7['item']))continue;if(!_0x4fa8fc[_0x5eb6('0xe6')](_0x5148b4['item'])||_0x4fa8fc[_0x5eb6('0x87')](_0x5148b4[_0x5eb6('0xa3')]))continue;if((_0x1039b1[_0x4ffad8][_0x5eb6('0x3e')]||_0x1039b1[_0x4ffad8]['isAddSuggestion'])&&_0x1039b1[_0x4ffad8-0x1][_0x5eb6('0x5')])_0x432a95=_0x1039b1[_0x4ffad8],_0x10cd37=_0x1039b1[_0x4ffad8-0x1],_0x2ccd60=_0x4ffad8-0x1;else{if(!_0x1039b1[_0x4ffad8][_0x5eb6('0x5')]||!_0x1039b1[_0x4ffad8-0x1][_0x5eb6('0x3e')]&&!_0x1039b1[_0x4ffad8-0x1][_0x5eb6('0x36')])continue;_0x432a95=_0x1039b1[_0x4ffad8-0x1],_0x10cd37=_0x1039b1[_0x4ffad8],_0x2ccd60=_0x4ffad8;}const _0x5d3b82=_0x432a95['level']==_0x10cd37[_0x5eb6('0x9a')],_0xa896c9=Math[_0x5eb6('0x57')](_0x432a95[_0x5eb6('0x9a')])<Math[_0x5eb6('0x57')](_0x10cd37[_0x5eb6('0x9a')])&&0x0==_0x10cd37[_0x5eb6('0x67')];(_0x5d3b82||_0xa896c9)&&(_0x565c6d[_0x5eb6('0xa4')](_0x10cd37['id'],_0x432a95['id']),_0x1039b1['splice'](_0x2ccd60,0x1),_0x4ffad8--,_0x432a95[_0x5eb6('0x3e')]=!0x1);}for(let _0x112889=0x0;_0x112889<_0x1039b1[_0x5eb6('0x7')];_0x112889++)_0x565c6d[_0x5eb6('0x62')](_0x1039b1[_0x112889][_0x5eb6('0xe5')])&&(_0x1039b1[_0x112889][_0x5eb6('0xe5')]=_0x565c6d['get'](_0x1039b1[_0x112889][_0x5eb6('0xe5')]));}[_0x5eb6('0x37')](_0x330b97){const _0x194678=new Set(_0x330b97['map'](_0x3d82e3=>_0x3d82e3['id']));for(let _0x4f1c27=0x0;_0x4f1c27<_0x330b97[_0x5eb6('0x7')];_0x4f1c27++)_0x194678[_0x5eb6('0x62')](_0x330b97[_0x4f1c27][_0x5eb6('0xe5')])||0x0==_0x330b97[_0x4f1c27]['distance']||(_0x330b97[_0x4f1c27][_0x5eb6('0x17')]=!0x0);return _0x330b97[_0x5eb6('0x80')](_0x42981f=>!_0x42981f[_0x5eb6('0x17')]);}[_0x5eb6('0x70')](_0x19f2db){const _0x1dd459=new Set();for(let _0x1cb562=0x0;_0x1cb562<_0x19f2db[_0x5eb6('0x7')];_0x1cb562++){if(_0x1dd459['has'](_0x19f2db[_0x1cb562]['id'])&&_0x19f2db[_0x1cb562][_0x5eb6('0x5')]&&(_0x19f2db[_0x1cb562][_0x5eb6('0x17')]=!0x0),_0x19f2db[_0x1cb562][_0x5eb6('0x17')])continue;if(0x0==_0x19f2db[_0x1cb562]['distance'])continue;if('elementStart'!=_0x19f2db[_0x1cb562][_0x5eb6('0x20')])continue;if(null==_0x19f2db[_0x1cb562][_0x5eb6('0xe5')])continue;let _0x4a1418=_0x1cb562+0x1,_0x4fd6cc=0x0;for(;_0x19f2db[_0x4a1418]['id']!=_0x19f2db[_0x1cb562][_0x5eb6('0xe5')];)_0x5eb6('0xf6')==_0x19f2db[_0x4a1418][_0x5eb6('0x20')]?_0x4fd6cc++:_0x5eb6('0x54')==_0x19f2db[_0x4a1418][_0x5eb6('0x20')]&&_0x4fd6cc--,_0x4a1418++;if(0x0!=_0x4fd6cc){if(_0x19f2db[_0x1cb562]['isRemoved'])_0x19f2db[_0x1cb562]['isIncorrect']=!0x0;else for(;_0x4a1418!=_0x1cb562;)_0x19f2db[_0x4a1418][_0x5eb6('0x5')]&&0x0!=_0x19f2db[_0x4a1418][_0x5eb6('0x67')]&&(_0x19f2db[_0x4a1418][_0x5eb6('0x17')]=!0x0,_0x1dd459[_0x5eb6('0xa9')](_0x19f2db[_0x4a1418][_0x5eb6('0xe5')])),_0x4a1418--;}}return _0x19f2db[_0x5eb6('0x80')](_0x16731a=>!_0x16731a['isIncorrect']);}[_0x5eb6('0x128')](_0x477c13){const _0x26a772=this['editor'][_0x5eb6('0x13')][_0x5eb6('0x5e')];for(let _0x1c1066=0x0;_0x1c1066<_0x477c13[_0x5eb6('0x7')];_0x1c1066++){if(!(_0x477c13[_0x1c1066][_0x5eb6('0x3e')]||_0x477c13[_0x1c1066]['isAddSuggestion']||_0x477c13[_0x1c1066][_0x5eb6('0x5')]||_0x477c13[_0x1c1066]['isRemoveSuggestion']))continue;if(0x0==_0x477c13[_0x1c1066]['distance'])continue;const _0x20f131=_0x477c13[_0x1c1066][_0x5eb6('0xa3')];_0x26a772[_0x5eb6('0xe6')](_0x20f131)||_0x26a772[_0x5eb6('0x87')](_0x20f131)||(_0x477c13[_0x1c1066][_0x5eb6('0x3e')]&&delete _0x477c13[_0x1c1066][_0x5eb6('0x3e')],_0x477c13[_0x1c1066]['isAddSuggestion']&&delete _0x477c13[_0x1c1066][_0x5eb6('0x36')],_0x477c13[_0x1c1066]['isRemoveSuggestion']&&delete _0x477c13[_0x1c1066][_0x5eb6('0xaa')],_0x477c13[_0x1c1066]['isRemoved']&&(_0x477c13[_0x1c1066][_0x5eb6('0x17')]=!0x0));}return _0x477c13[_0x5eb6('0x80')](_0x3dbb1b=>!_0x3dbb1b[_0x5eb6('0x17')]);}[_0x5eb6('0xfe')](_0x4e84b8,_0x2868d8,_0x3fe42a){const _0x40380e=new _0x308b28(),_0x220fd3=[],_0x2ffee6=new Map(),_0x77503f=this[_0x5eb6('0x2f')][_0x5eb6('0x13')],_0x4e2955=_0x77503f[_0x5eb6('0x5e')],_0xfeb55d=[_0x40380e],_0x407862={},_0x404af4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2ad4d4=null;const _0x22390e=[0x0];for(let _0x167cdc=0x0;_0x167cdc<_0x4e84b8[_0x5eb6('0x7')];_0x167cdc++){let _0x32dfee,_0xd8d401;if(_0x5eb6('0xf6')===_0x4e84b8[_0x167cdc][_0x5eb6('0x20')]){_0x32dfee=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e);const _0x40ada5=new _0x1f2448(_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x41')],_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0xa8')]());_0xfeb55d[0x0]['_appendChild'](_0x40ada5),_0x22390e[_0x5eb6('0xdb')](0x0),_0xfeb55d[_0x5eb6('0x5a')](_0x40ada5),_0xd8d401=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x2ad4d4=null;}else{if(_0x5eb6('0x54')===_0x4e84b8[_0x167cdc][_0x5eb6('0x20')])_0xfeb55d['shift'](),_0x32dfee=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x22390e['pop'](),_0x22390e[_0x22390e[_0x5eb6('0x7')]-0x1]++,_0xd8d401=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x2ad4d4=null;else{if(_0x32dfee=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x2ad4d4&&_0x1b5763(_0x2ad4d4,_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')]))_0x2ad4d4[_0x5eb6('0xf0')]+=_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x6c')];else{const _0x449f74=new _0x37f40e(_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x6c')],_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')]['getAttributes']());_0xfeb55d[0x0][_0x5eb6('0xe4')](_0x449f74),_0x2ad4d4=_0x449f74;}_0x22390e[_0x22390e[_0x5eb6('0x7')]-0x1]+=_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x63')],_0xd8d401=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e);}}for(const _0x3b4e1d of _0x4e84b8[_0x167cdc][_0x5eb6('0xcc')])_0x2ffee6[_0x5eb6('0xa4')](_0x3b4e1d,{'start':_0x32dfee,'end':null});_0xb1c0af('isRemoveSuggestion',_0x167cdc,_0x32dfee,_0xd8d401),_0xb1c0af(_0x5eb6('0x36'),_0x167cdc,_0x32dfee,_0xd8d401),_0xb1c0af(_0x5eb6('0x5'),_0x167cdc,_0x32dfee,_0xd8d401),_0xb1c0af(_0x5eb6('0x3e'),_0x167cdc,_0x32dfee,_0xd8d401);for(const _0xfd755 of _0x4e84b8[_0x167cdc]['markersEnd']){_0x2ffee6[_0x5eb6('0x1e')](_0xfd755)[_0x5eb6('0x78')]=_0xd8d401;}}for(const [_0x49c2b4,_0x47bb7a]of _0x2ffee6){const _0x1a72ce=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0xf8')](_0x47bb7a[_0x5eb6('0x12b')],_0x47bb7a['end']);_0x40380e[_0x5eb6('0xd4')][_0x5eb6('0xa4')](_0x49c2b4,_0x1a72ce);}return _0x220fd3[_0x5eb6('0x11f')]((_0x44b981,_0x697075)=>{const _0x2b12ef=_0x40380e[_0x5eb6('0xd4')]['get']('revision:'+_0x44b981['id']),_0xb0767b=_0x40380e[_0x5eb6('0xd4')]['get'](_0x5eb6('0x12d')+_0x697075['id']);return _0x2b12ef['start'][_0x5eb6('0x68')](_0xb0767b[_0x5eb6('0x12b')])?-0x1:_0x2b12ef['start'][_0x5eb6('0x12')](_0xb0767b['start'])?0x1:_0x2b12ef['end'][_0x5eb6('0x68')](_0xb0767b[_0x5eb6('0x78')])?-0x1:_0x2b12ef['end'][_0x5eb6('0x12')](_0xb0767b[_0x5eb6('0x78')])?0x1:_0x5eb6('0xa9')===_0x44b981[_0x5eb6('0x20')]?-0x1:0x1;}),{'root':_0x40380e,'changes':_0x220fd3};function _0xb1c0af(_0x1064d9,_0x2c7aaa,_0x4c28c1,_0x56e4a0){const _0x5e3efc=!!_0x4e84b8[_0x2c7aaa][_0x1064d9],_0x55af0a=_0x5e3efc?_0x4e84b8[_0x2c7aaa][_0x1064d9][_0x5eb6('0x73')]:null,_0xe27f57=_0x2c7aaa===_0x4e84b8[_0x5eb6('0x7')]-0x1,_0x2e50d2=_0x404af4[_0x1064d9][0x0],_0x3a7142=_0x4e2955[_0x5eb6('0xf2')](_0x4e84b8[_0x2c7aaa][_0x5eb6('0xa3')]);!_0x407862[_0x1064d9]&&_0x5e3efc?_0x407862[_0x1064d9]={'start':_0x4c28c1,'tapeItem':_0x4e84b8[_0x2c7aaa],'userId':_0x55af0a,'type':_0x1064d9}:_0x407862[_0x1064d9]&&!_0x5e3efc?(_0x407862[_0x1064d9][_0x5eb6('0x78')]=_0x4c28c1,_0x48d9cc(_0x407862[_0x1064d9]),_0x407862[_0x1064d9]=null):_0x407862[_0x1064d9]&&_0x5e3efc&&_0x407862[_0x1064d9][_0x5eb6('0x73')]!==_0x55af0a&&(_0x407862[_0x1064d9]['end']=_0x4c28c1,_0x2e50d2&&_0x2e50d2[_0x5eb6('0x73')]===_0x407862[_0x1064d9][_0x5eb6('0x73')]||_0x48d9cc(_0x407862[_0x1064d9]),_0x407862[_0x1064d9]={'start':_0x4c28c1,'tapeItem':_0x4e84b8[_0x2c7aaa],'userId':_0x55af0a,'type':_0x1064d9}),_0x407862[_0x1064d9]&&_0x3a7142&&(_0x5eb6('0xf6')!==_0x4e84b8[_0x2c7aaa][_0x5eb6('0x20')]||_0x2e50d2&&_0x2e50d2['userId']===_0x55af0a||_0x404af4[_0x1064d9][_0x5eb6('0x5a')]({'userId':_0x55af0a,'object':_0x4e84b8[_0x2c7aaa][_0x5eb6('0xa3')],'change':_0x407862[_0x1064d9]}),_0x5eb6('0x54')===_0x4e84b8[_0x2c7aaa][_0x5eb6('0x20')]&&_0x2e50d2&&_0x2e50d2[_0x5eb6('0x7c')]===_0x4e84b8[_0x2c7aaa][_0x5eb6('0xa3')]&&(_0x404af4[_0x1064d9]['shift'](),_0x407862[_0x1064d9]=_0x2e50d2[_0x5eb6('0x66')])),_0x407862[_0x1064d9]&&_0xe27f57&&(_0x407862[_0x1064d9]['end']=_0x56e4a0,_0x48d9cc(_0x407862[_0x1064d9]),_0x407862[_0x1064d9]=null);}function _0x48d9cc({start:_0x3c70ef,end:_0x49756f,tapeItem:_0x528d67,userId:_0x263540,type:_0x3801ef}){const _0x86c068=_0x528d67[_0x5eb6('0xa3')],_0x25c4ee=_0x77503f[_0x5eb6('0x5e')][_0x5eb6('0xe6')](_0x86c068)&&!_0x77503f['schema'][_0x5eb6('0x87')](_0x86c068),_0xe8b2b1=_0x3c70ef[_0x5eb6('0x110')]==_0x49756f['parent']&&_0x49756f[_0x5eb6('0x6a')];if(_0x25c4ee&&_0xe8b2b1)return;const _0x11f2f4=_0x77503f[_0x5eb6('0xf8')](_0x3c70ef,_0x49756f),_0x516bf5=_0x2868d8['get'](_0x263540),_0x2074ff=new _0x3aa243({'author':_0x516bf5,'type':_0x5eb6('0x3e')==_0x3801ef||_0x5eb6('0x36')==_0x3801ef?_0x5eb6('0xa9'):_0x5eb6('0xbf'),'data':{'isSuggestion':_0x5eb6('0x36')==_0x3801ef||_0x5eb6('0xaa')==_0x3801ef},'createdAt':new Date(),'rootName':_0x3fe42a});_0x220fd3[_0x5eb6('0xdb')](_0x2074ff),_0x40380e[_0x5eb6('0xd4')][_0x5eb6('0xa4')](_0x5eb6('0x12d')+_0x2074ff['id'],_0x11f2f4);}function _0x1b5763(_0x38f9fb,_0x2ab526){const _0x357e3d=_0x38f9fb['getAttributes'](),_0x139399=_0x2ab526['getAttributes']();for(const _0xc2a57f of _0x357e3d){if(_0xc2a57f[0x1]!==_0x2ab526[_0x5eb6('0xdc')](_0xc2a57f[0x0]))return!0x1;_0x139399[_0x5eb6('0x40')]();}return _0x139399['next']()[_0x5eb6('0x8')];}}[_0x5eb6('0x100')](){this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x69'))[_0x5eb6('0x1')]({'view':_0x5eb6('0x74')}),this[_0x5eb6('0x2f')]['conversion'][_0x5eb6('0xd7')]('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4ca1ff=>{const _0x13b747=_0x4ca1ff[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1],_0x5ab106=this['_getChangeFromId'](_0x13b747);if(!_0x5ab106)return null;const _0x18f127=_0x5eb6('0xa9')==_0x5ab106[_0x5eb6('0x20')]?'insertion':_0x5eb6('0x119'),_0x351389=[_0x5eb6('0xea'),_0x5eb6('0x84')+_0x18f127];return _0x5ab106[_0x5eb6('0x6c')]['isSuggestion']&&_0x351389[_0x5eb6('0xdb')](_0x5eb6('0x84')+_0x18f127+_0x5eb6('0x3f')),this[_0x5eb6('0x9')]==_0x5ab106&&_0x351389[_0x5eb6('0xdb')]('ck-suggestion-marker--active'),{'classes':_0x351389,'attributes':{'data-change-id':_0x13b747}};}}),this[_0x5eb6('0x2f')]['conversion'][_0x5eb6('0xd7')]('upcast')[_0x5eb6('0xa9')](_0x203b11=>{_0x203b11['on'](_0x5eb6('0xe'),(_0x58ed39,_0x5f002e,_0xa9837d)=>{const _0x41efb4=_0x5f002e['viewItem'][_0x5eb6('0x94')](0x0);if(!_0x41efb4||!_0x41efb4['is'](_0x5eb6('0xff'),_0x5eb6('0x113')))return;if(!_0xa9837d[_0x5eb6('0x88')][_0x5eb6('0xfc')](_0x41efb4,{'attributes':[_0x5eb6('0xcd'),_0x5eb6('0x10e')]}))return;const _0x390583=_0x5f002e['modelRange'][_0x5eb6('0x12b')]['nodeAfter'];_0xa9837d[_0x5eb6('0x7f')][_0x5eb6('0x2c')](_0x5eb6('0xcd'),_0x41efb4[_0x5eb6('0xdc')](_0x5eb6('0xcd')),_0x390583),_0xa9837d[_0x5eb6('0x7f')][_0x5eb6('0x2c')]('vid_end',_0x41efb4[_0x5eb6('0xdc')](_0x5eb6('0x10e')),_0x390583);},{'priority':_0x5eb6('0xbe')});}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')]('upcast')[_0x5eb6('0xa9')](_0x47ad6e=>{_0x47ad6e['on'](_0x5eb6('0xff'),(_0x29afe3,_0x5b81e5,_0x361f6d)=>{if(!_0x361f6d[_0x5eb6('0x88')][_0x5eb6('0xfc')](_0x5b81e5[_0x5eb6('0x4')],{'attributes':[_0x5eb6('0xcd'),_0x5eb6('0x10e')]}))return;if(_0x5b81e5['modelRange'][_0x5eb6('0x15')])return;const _0x508765=_0x5b81e5[_0x5eb6('0x6e')][_0x5eb6('0x12b')]['nodeAfter'];_0x508765[_0x5eb6('0x126')](_0x5eb6('0xcd'))||_0x508765[_0x5eb6('0x126')](_0x5eb6('0x109'))||(_0x361f6d['writer'][_0x5eb6('0x2c')](_0x5eb6('0xcd'),_0x5b81e5[_0x5eb6('0x4')]['getAttribute'](_0x5eb6('0xcd')),_0x508765),_0x361f6d[_0x5eb6('0x7f')][_0x5eb6('0x2c')](_0x5eb6('0x10e'),_0x5b81e5[_0x5eb6('0x4')]['getAttribute']('vid_end'),_0x508765));},{'priority':'low'});}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x69'))[_0x5eb6('0x1b')]({'view':{'name':_0x5eb6('0xeb'),'attributes':{'vid':!0x0}},'model':{'key':_0x5eb6('0x109'),'value':_0x44fa32=>_0x44fa32[_0x5eb6('0xdc')](_0x5eb6('0x109'))}}),this[_0x5eb6('0x2f')]['model']['schema']['on'](_0x5eb6('0x116'),(_0x5806b8,[,_0x103c7b])=>{['vid_start','vid_end',_0x5eb6('0x109')]['includes'](_0x103c7b)&&(_0x5806b8[_0x5eb6('0x4d')]=!0x0,_0x5806b8[_0x5eb6('0x33')]());},{'priority':_0x5eb6('0x9d')}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x2b'))['add'](_0x3a701b=>{_0x3a701b['on']('attribute:vid',(_0x1450fc,_0x54ab5a,_0x399218)=>{if('\x20'!=_0x54ab5a[_0x5eb6('0xa3')][_0x5eb6('0x6c')]||_0x54ab5a['item'][_0x5eb6('0xba')][_0x5eb6('0x3b')]>0x1)return;if(!_0x399218[_0x5eb6('0x88')][_0x5eb6('0xfc')](_0x54ab5a['item'],_0x1450fc[_0x5eb6('0x41')]))return;const _0x5843f4=_0x399218['writer'],_0x5a110c=_0x399218['mapper'][_0x5eb6('0xf')](_0x54ab5a[_0x5eb6('0x16')]);_0x5843f4['wrap'](_0x5a110c,_0x5843f4[_0x5eb6('0x103')](_0x5eb6('0xeb')));});}),this[_0x5eb6('0x2f')]['conversion'][_0x5eb6('0xd7')](_0x5eb6('0x2b'))[_0x5eb6('0xec')]({'model':_0x5eb6('0x74')}),this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x82')]['on'](_0x5eb6('0xa2'),function(_0x1a278f){const _0x1b4f04=_0x1a278f[_0x5eb6('0x8d')]['get'](_0x5eb6('0xe2'));return(_0x547b42,_0x25cb68,_0x3d7cbb)=>{const _0x312117=_0x25cb68[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1],_0x10651b=_0x1b4f04[_0x5eb6('0xd2')](_0x312117);if(!_0x10651b)return null;const _0xbaab25=_0x5eb6('0xa9')==_0x10651b[_0x5eb6('0x20')]?_0x5eb6('0x122'):'merge';if(!_0x3d7cbb[_0x5eb6('0x88')]['test'](_0x25cb68[_0x5eb6('0x11e')],_0x547b42['name']))return;const _0xb67b50=_0x25cb68[_0x5eb6('0x11e')][_0x5eb6('0x64')](),_0x2ba7c5=_0x25cb68[_0x5eb6('0x11e')][_0x5eb6('0x12b')],_0x535b9b=_0x1a278f[_0x5eb6('0x13')]['schema'];let _0x3a540b=null,_0x317eef=null,_0x5f55a0=!0x1,_0x496930=!0x1;for(const _0x2ace03 of _0xb67b50){const _0x1bc84c=_0x2ace03[_0x5eb6('0xa3')];_0x5f55a0=_0x5f55a0||_0x535b9b['isContent'](_0x1bc84c);const _0x5f5056=_0x3d7cbb['mapper'][_0x5eb6('0xa0')](_0x1bc84c);if(_0x5f5056&&_0x5f5056[_0x5eb6('0x106')](_0x5eb6('0x1c')))return;_0x5eb6('0x54')==_0x2ace03[_0x5eb6('0x20')]&&(_0x535b9b[_0x5eb6('0xe6')](_0x1bc84c)&&!_0x535b9b[_0x5eb6('0x87')](_0x1bc84c)&&(_0x1bc84c[_0x5eb6('0x4f')]||_0x2ba7c5['isAtEnd']?_0x3a540b&&_0x3a540b[_0x5eb6('0xba')]==_0x1bc84c||(_0x3a540b=_0x1bc84c,_0x1ea543(_0x2ace03[_0x5eb6('0x89')]),_0x496930=!0x0):_0x317eef=_0x317eef||_0x2ace03['previousPosition']));}function _0x1ea543(_0x58aa22){const _0x2bf934=_0x3d7cbb[_0x5eb6('0x7f')][_0x5eb6('0xb9')](_0x5eb6('0xeb'),{'class':_0x5eb6('0x84')+_0xbaab25}),_0x305f7b=_0x3d7cbb['mapper']['toViewPosition'](_0x58aa22);_0x10651b[_0x5eb6('0x6c')]['isSuggestion']&&_0x3d7cbb['writer']['addClass'](_0x5eb6('0x84')+_0xbaab25+_0x5eb6('0x3f'),_0x2bf934),_0x1b4f04[_0x5eb6('0x9')]==_0x10651b&&_0x3d7cbb[_0x5eb6('0x7f')][_0x5eb6('0xbc')](_0x5eb6('0x2'),_0x2bf934),_0x3d7cbb[_0x5eb6('0x7f')][_0x5eb6('0x4e')](_0x305f7b,_0x2bf934),_0x3d7cbb['mapper']['bindElementToMarker'](_0x2bf934,_0x25cb68['markerName']);}_0x5f55a0||_0x496930||!_0x317eef||_0x1ea543(_0x317eef);};}(this[_0x5eb6('0x2f')]),{'priority':'high'}),this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x82')]['on'](_0x5eb6('0x8a'),(_0x2f6531,_0x5dd970,_0x1d6728)=>{const _0x160a9c=_0x1d6728[_0x5eb6('0x6')][_0x5eb6('0xe7')](_0x5dd970[_0x5eb6('0xbd')]);if(_0x160a9c)for(const _0x5b9b99 of _0x160a9c)(_0x5b9b99[_0x5eb6('0xc9')](_0x5eb6('0xd8'))||_0x5b9b99[_0x5eb6('0xc9')](_0x5eb6('0x7d')))&&(_0x1d6728[_0x5eb6('0x6')][_0x5eb6('0x79')](_0x5b9b99,_0x5dd970[_0x5eb6('0xbd')]),_0x1d6728[_0x5eb6('0x7f')]['remove'](_0x5b9b99));},{'priority':_0x5eb6('0x53')}),this[_0x5eb6('0x2f')][_0x5eb6('0xae')]['downcastDispatcher']['on'](_0x5eb6('0xa2'),(_0x366533,_0x3f7f3e,_0x112c91)=>{const _0x5aec27=_0x3f7f3e[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1],_0x263be2=this[_0x5eb6('0xd2')](_0x5aec27);if(!_0x263be2)return null;const _0xc236dc=_0x5eb6('0xa9')==_0x263be2[_0x5eb6('0x20')]?_0x5eb6('0x122'):_0x5eb6('0x2a');if(_0x112c91['consumable'][_0x5eb6('0xcf')](_0x3f7f3e[_0x5eb6('0x11e')],_0x366533[_0x5eb6('0x41')]))for(const _0x1908eb of _0x3f7f3e['markerRange'][_0x5eb6('0x9f')]()){if(!_0x1908eb['is'](_0x5eb6('0xff'),_0x5eb6('0xb8')))continue;const _0x215fb2=_0x112c91[_0x5eb6('0x7f')][_0x5eb6('0xb9')](_0x5eb6('0xeb'),{'class':_0x5eb6('0x84')+_0xc236dc}),_0x2fed7c=_0x112c91['mapper'][_0x5eb6('0xf9')](this[_0x5eb6('0x2f')]['model'][_0x5eb6('0xf3')](_0x1908eb));_0x263be2[_0x5eb6('0x6c')][_0x5eb6('0x85')]&&_0x112c91[_0x5eb6('0x7f')]['addClass'](_0x5eb6('0x84')+_0xc236dc+_0x5eb6('0x3f'),_0x215fb2),this['activeChange']==_0x263be2&&_0x112c91[_0x5eb6('0x7f')][_0x5eb6('0xbc')]('ck-suggestion-marker--active',_0x215fb2),_0x112c91[_0x5eb6('0x7f')]['insert'](_0x2fed7c,_0x215fb2),_0x112c91[_0x5eb6('0x6')][_0x5eb6('0x83')](_0x215fb2,_0x3f7f3e['markerName']);}},{'priority':'high'}),this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')]['on'](_0x5eb6('0x66'),()=>{this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x27')][_0x5eb6('0x66')](_0x541fee=>{for(const _0x129043 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0x48')]()){const _0x5ba5e1=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0x47')](_0x129043),_0x7d588c=this['editor'][_0x5eb6('0xae')][_0x5eb6('0x27')]['document'][_0x5eb6('0x47')](_0x129043);if(_0x7d588c){const _0xa6cff3=_0x5ba5e1[_0x5eb6('0xdc')](_0x5eb6('0x14'));if(_0x541fee[_0x5eb6('0x104')](_0x5eb6('0x55'),_0x7d588c),_0x541fee['removeClass'](_0x5eb6('0xca'),_0x7d588c),_0x541fee['removeClass'](_0x5eb6('0x98'),_0x7d588c),_0x541fee[_0x5eb6('0x18')](_0x5eb6('0x3a'),_0x7d588c),_0xa6cff3){const _0x35da2e=this[_0x5eb6('0xd2')](_0xa6cff3);if(!_0x35da2e)return null;_0x541fee[_0x5eb6('0x2c')](_0x5eb6('0x55'),_0xa6cff3,_0x7d588c),_0x541fee[_0x5eb6('0xbc')](_0x5eb6('0xd0')+_0x35da2e[_0x5eb6('0x20')],_0x7d588c),this[_0x5eb6('0x9')]==_0x35da2e&&_0x541fee[_0x5eb6('0xbc')]('ck-revision-history-root--active',_0x7d588c);}}}});}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x69'))[_0x5eb6('0x1')]({'view':_0x5eb6('0xce'),'model':_0x1f2555=>_0x5eb6('0x6f')+_0x1f2555,'converterPriority':_0x5eb6('0x9d')}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')]['for']('upcast')[_0x5eb6('0x1')]({'view':'suggestion','model':_0x1d4ffa=>_0x5eb6('0x32')+_0x1d4ffa,'converterPriority':'highest'}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')]('dataDowncast')[_0x5eb6('0xec')]({'model':_0x5eb6('0x10'),'view':_0x41d11e=>({'name':_0x5eb6('0x95')+_0x41d11e,'group':_0x5eb6('0x10')}),'converterPriority':_0x5eb6('0x9d')}),this['editor'][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x117'))[_0x5eb6('0xb0')]({'model':'revision-suggestion','view':_0xa787de=>{const _0x2553c4=_0xa787de[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1];return _0x5eb6('0xe9')!=_0x2553c4&&_0x5eb6('0x119')!=_0x2553c4?null:{'classes':[_0x5eb6('0x12a'),_0x5eb6('0x51')+_0x2553c4]};}}),this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x82')]['on'](_0x5eb6('0x108'),et(this['editor'],_0x5eb6('0x2a')),{'priority':'high'}),this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x82')]['on'](_0x5eb6('0x22'),et(this[_0x5eb6('0x2f')],_0x5eb6('0x122')),{'priority':_0x5eb6('0x53')}),this['editor']['editing'][_0x5eb6('0x82')]['on'](_0x5eb6('0x86'),(_0x28f3ce,_0xc32aa6,_0xc1aae0)=>{const _0x3fa7a1=_0xc1aae0[_0x5eb6('0x6')][_0x5eb6('0xe7')](_0xc32aa6[_0x5eb6('0xbd')]);if(_0x3fa7a1)for(const _0x16fbac of _0x3fa7a1)_0x16fbac['is'](_0x5eb6('0xb2'))&&(_0xc1aae0[_0x5eb6('0x6')][_0x5eb6('0x79')](_0x16fbac,_0xc32aa6[_0x5eb6('0xbd')]),_0xc1aae0['writer']['remove'](_0x16fbac));},{'priority':_0x5eb6('0x53')});}[_0x5eb6('0xd2')](_0x2292a1){return this[_0x5eb6('0x114')][_0x5eb6('0x1e')](_0x2292a1);}['_getViewForChange'](_0x4dfc48){return this['_changeView']&&this[_0x5eb6('0xc5')][_0x5eb6('0x8e')](),this[_0x5eb6('0xc5')]=new _0x1eabbc(this['editor']['locale'],_0x4dfc48),this[_0x5eb6('0xc5')];}[_0x5eb6('0xa1')](){this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0xc0')][_0x5eb6('0x9b')](_0x5eb6('0x74')),this['on'](_0x5eb6('0x7e'),(_0x3eceee,_0x1cfefe,_0x258519,_0x4456b1)=>{_0x4456b1&&this[_0x5eb6('0x28')][_0x5eb6('0xbf')](_0x4456b1),_0x258519&&(this['_balloon'][_0x5eb6('0xa9')]({'view':_0x258519,'stackId':_0x5eb6('0x6d'),'position':{'target':()=>{const _0xcb53e6=this[_0x5eb6('0x2f')]['editing'],_0x4e8751=this['_getChangeFromId'](_0x258519[_0x5eb6('0x29')]);let _0x2de0a8;if(_0x4e8751['data']['isOnRoot']){const _0x1027f4=_0xcb53e6[_0x5eb6('0x27')][_0x5eb6('0xaf')](_0x4e8751[_0x5eb6('0x97')]);_0x2de0a8=Array[_0x5eb6('0x26')](_0x1027f4[_0x5eb6('0x45')]());}else{const _0x39250f=this['editor']['model'][_0x5eb6('0xd4')][_0x5eb6('0x1e')](_0x5eb6('0x12d')+_0x258519[_0x5eb6('0x29')]);_0x2de0a8=Array[_0x5eb6('0x26')](_0xcb53e6[_0x5eb6('0x6')][_0x5eb6('0xe7')](_0x39250f[_0x5eb6('0x41')]))[_0x5eb6('0x44')](_0x2d5740=>_0xcb53e6[_0x5eb6('0x27')]['domConverter'][_0x5eb6('0xc6')](_0x2d5740))[_0x5eb6('0x44')](_0x3c0dd8=>Array[_0x5eb6('0x26')](_0x3c0dd8[_0x5eb6('0x45')]()))[_0x5eb6('0x38')]();}if(!this[_0x5eb6('0xad')])return _0x2de0a8[0x0];return _0x2de0a8['find'](_0x7e75f1=>_0x7e75f1[_0x5eb6('0x50')]-0x3<=this[_0x5eb6('0xad')]['y']&&_0x7e75f1[_0x5eb6('0x7b')]+0x3>=this[_0x5eb6('0xad')]['y']&&_0x7e75f1['left']-0x3<=this['_activeViewTarget']['x']&&_0x7e75f1[_0x5eb6('0xf1')]+0x3>=this[_0x5eb6('0xad')]['x'])||_0x2de0a8[0x0];}}}),this[_0x5eb6('0x28')][_0x5eb6('0x120')]('revisionHistoryLabel'));}),this['on'](_0x5eb6('0x24'),(_0x24edff,_0x2922ac,_0x23d57e,_0x3b0c5a)=>{this[_0x5eb6('0xd')]=_0x23d57e?this['_getViewForChange'](_0x23d57e):null,this['editor'][_0x5eb6('0x13')]['change'](()=>{const _0x48fcc4=this[_0x5eb6('0x2f')]['editing'];_0x3b0c5a&&(_0x3b0c5a[_0x5eb6('0x6c')]['isOnRoot']?_0x48fcc4[_0x5eb6('0x27')][_0x5eb6('0x66')](_0x1063f2=>{_0x1063f2['removeClass'](_0x5eb6('0x3a'),_0x48fcc4['view'][_0x5eb6('0x8c')][_0x5eb6('0x47')](_0x3b0c5a['rootName']));}):_0x48fcc4['reconvertMarker']('revision:'+_0x3b0c5a['id'])),_0x23d57e&&(_0x23d57e[_0x5eb6('0x6c')][_0x5eb6('0x77')]?_0x48fcc4[_0x5eb6('0x27')][_0x5eb6('0x66')](_0x3e37b2=>{_0x3e37b2[_0x5eb6('0xbc')](_0x5eb6('0x3a'),_0x48fcc4['view'][_0x5eb6('0x8c')][_0x5eb6('0x47')](_0x23d57e['rootName']));}):_0x48fcc4[_0x5eb6('0x112')](_0x5eb6('0x12d')+_0x23d57e['id']));});}),this[_0x5eb6('0x123')](this[_0x5eb6('0x2f')]['editing']['view'][_0x5eb6('0x8c')],'mouseover',(_0x344678,_0x306952)=>{if(this[_0x5eb6('0x9')])return;const _0x29fcc9=this[_0x5eb6('0x3d')](_0x306952[_0x5eb6('0x125')]),_0x3e0316=this[_0x5eb6('0x114')][_0x5eb6('0x1e')](_0x29fcc9);_0x3e0316?(this[_0x5eb6('0xad')]={'x':_0x306952[_0x5eb6('0x21')]['x'],'y':_0x306952[_0x5eb6('0x21')]['y']},this['activeView']=this[_0x5eb6('0x76')](_0x3e0316)):(this[_0x5eb6('0xad')]=null,this[_0x5eb6('0xd')]=null);}),this[_0x5eb6('0x123')](this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')][_0x5eb6('0x8c')],_0x5eb6('0xe3'),(_0x4ba545,_0x10520d)=>{const _0x4b25c7=this['_findChangeIdFromDomTarget'](_0x10520d[_0x5eb6('0x125')]),_0x2304e0=this[_0x5eb6('0x114')][_0x5eb6('0x1e')](_0x4b25c7);_0x2304e0?(this[_0x5eb6('0xad')]={'x':_0x10520d[_0x5eb6('0x21')]['x'],'y':_0x10520d[_0x5eb6('0x21')]['y']},_0x2304e0===this[_0x5eb6('0x9')]?this[_0x5eb6('0x28')][_0x5eb6('0xf4')]():this[_0x5eb6('0x9')]=_0x2304e0):(this['_activeViewTarget']=null,this[_0x5eb6('0x9')]=null);});}[_0x5eb6('0x3d')](_0x92c9f6){do{const _0x1f583f=_0x92c9f6[_0x5eb6('0xdc')](_0x5eb6('0x55'));if(_0x1f583f)return _0x1f583f;_0x92c9f6=_0x92c9f6[_0x5eb6('0xba')];}while(_0x92c9f6);return null;}[_0x5eb6('0x10a')](){this[_0x5eb6('0x2f')]['model']['change'](_0x124a85=>{for(const _0x28a26c of this[_0x5eb6('0x2f')]['model'][_0x5eb6('0xd4')])_0x124a85['removeMarker'](_0x28a26c);});}}function et(_0x183d7c,_0x36a887){return(_0x32c116,_0x4145c8,_0x92cafa)=>{if(!_0x92cafa[_0x5eb6('0x88')][_0x5eb6('0xcf')](_0x4145c8[_0x5eb6('0x11e')],_0x32c116[_0x5eb6('0x41')]))return;const _0x5a992f=_0x4145c8['markerRange'][_0x5eb6('0x64')](),_0x5344c5=_0x4145c8['markerRange'][_0x5eb6('0x12b')],_0x4a5a7a=_0x183d7c[_0x5eb6('0x13')][_0x5eb6('0x5e')];let _0x49e455=null,_0x2d68ca=null,_0x5dce2f=!0x1,_0x52f226=!0x1;for(const _0x529a89 of _0x5a992f){const _0x2c4eb0=_0x529a89[_0x5eb6('0xa3')];_0x5dce2f=_0x5dce2f||_0x4a5a7a['isContent'](_0x2c4eb0);const _0x2946f5=_0x92cafa['mapper'][_0x5eb6('0xa0')](_0x2c4eb0);if(_0x2946f5&&_0x2946f5[_0x5eb6('0x106')](_0x5eb6('0x1c')))return;_0x5eb6('0x54')==_0x529a89[_0x5eb6('0x20')]&&(_0x4a5a7a[_0x5eb6('0xe6')](_0x2c4eb0)&&!_0x4a5a7a['isLimit'](_0x2c4eb0)&&(_0x2c4eb0[_0x5eb6('0x4f')]||_0x5344c5['isAtEnd']?_0x49e455&&_0x49e455[_0x5eb6('0xba')]==_0x2c4eb0||(_0x49e455=_0x2c4eb0,_0x13b497(_0x529a89[_0x5eb6('0x89')]),_0x52f226=!0x0):_0x2d68ca=_0x2d68ca||_0x529a89[_0x5eb6('0x89')]));}function _0x13b497(_0x58d324){const _0x47c23b=_0x92cafa['mapper'][_0x5eb6('0xf9')](_0x58d324),_0x337507=_0x92cafa[_0x5eb6('0x7f')][_0x5eb6('0xb9')](_0x5eb6('0xeb'),{'class':_0x5eb6('0x51')+_0x36a887});_0x92cafa['writer']['insert'](_0x47c23b,_0x337507),_0x92cafa['mapper'][_0x5eb6('0x83')](_0x337507,_0x4145c8['markerName']);}_0x5dce2f||_0x52f226||!_0x2d68ca||_0x13b497(_0x2d68ca);};}export class RestoreRevisionCommand extends _0x17001f{constructor(_0x5a0156){super(_0x5a0156);const _0x5e6bb5=_0x5a0156[_0x5eb6('0x8d')][_0x5eb6('0x1e')](d);this[_0x5eb6('0xd6')]=!0x1,this[_0x5eb6('0x123')](_0x5e6bb5,'change:isReady',()=>this[_0x5eb6('0x23')]()),this[_0x5eb6('0x123')](_0x5e6bb5,_0x5eb6('0xd1'),()=>this[_0x5eb6('0x23')]());}[_0x5eb6('0xe0')](){const _0x4ad96f=this[_0x5eb6('0x2f')],_0x42e277=_0x4ad96f['plugins']['get'](d),_0x2dce8e=_0x42e277[_0x5eb6('0x10f')]?_0x42e277[_0x5eb6('0x10d')][_0x5eb6('0x43')]:null;_0x4ad96f[_0x5eb6('0xbb')][_0x5eb6('0x1e')](_0x5eb6('0xda'))[_0x5eb6('0xd5')](_0x2dce8e);}[_0x5eb6('0x23')](){const {isReady:_0x25e11c,isEnabled:_0x11d0c7}=this[_0x5eb6('0x2f')]['plugins'][_0x5eb6('0x1e')](d);this['isEnabled']=_0x25e11c&&_0x11d0c7;}}export class ShowChangeCommand extends _0x17001f{constructor(_0x24ebbb,{direction:_0x50319a}){super(_0x24ebbb);const _0x117710=_0x24ebbb[_0x5eb6('0x8d')]['get'](d);this[_0x5eb6('0xd6')]=!0x1,this[_0x5eb6('0xb4')]='forward'===_0x50319a?0x1:-0x1,this[_0x5eb6('0x123')](_0x117710,_0x5eb6('0x4c'),()=>this['refresh']()),this[_0x5eb6('0x123')](_0x117710,'change:isEnabled',()=>this[_0x5eb6('0x23')]()),this[_0x5eb6('0x123')](_0x117710,_0x5eb6('0x24'),()=>this[_0x5eb6('0x23')]());}['execute'](){const _0x25344d=this[_0x5eb6('0x2f')],_0x2790e2=_0x25344d[_0x5eb6('0x8d')][_0x5eb6('0x1e')](d),{isNavigationMode:_0x1ca4c5,currentChangeNumber:_0x3fb777}=_0x2790e2;let _0x539e96;if(_0x2790e2['activeChange']=_0x1ca4c5?_0x2790e2['diff']['changes']['get'](_0x3fb777+this['_step']):_0x2790e2[_0x5eb6('0x10d')]['changes'][_0x5eb6('0xa6')],_0x2790e2[_0x5eb6('0x9')][_0x5eb6('0x6c')][_0x5eb6('0x77')])_0x539e96=_0x25344d[_0x5eb6('0xae')][_0x5eb6('0x27')][_0x5eb6('0xaf')](_0x2790e2[_0x5eb6('0x9')][_0x5eb6('0x97')]);else{const _0xaf12cc=_0x25344d[_0x5eb6('0x13')][_0x5eb6('0xd4')][_0x5eb6('0x1e')](_0x5eb6('0x12d')+_0x2790e2[_0x5eb6('0x9')]['id']);_0x539e96=_0x363016(_0x25344d[_0x5eb6('0xae')],_0xaf12cc);}_0x198d78({'target':_0x539e96,'viewportOffset':0x28});}[_0x5eb6('0x23')](){const {isNavigationMode:_0x3929fb,currentChangeNumber:_0x1daf78,numberOfChanges:_0x4658f7,isReady:_0xb6f8c6,isEnabled:_0x12d948}=this['editor']['plugins'][_0x5eb6('0x1e')](d);this[_0x5eb6('0x11')]=!!(_0x12d948&&_0xb6f8c6&&_0x4658f7)&&(!_0x3929fb||(0x1===this['_step']?_0x1daf78<_0x4658f7-0x1:_0x1daf78>0x0));}}
|
|
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));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39de=['ck-revision-history-sidebar__revision__actions','Restore\x20this\x20revision','isActionsDropdownOpen','isOpen','bind','children','add','panelPosition','function','name','buttonView','locale','source','action','listenTo','set','isEnabled','Show\x20more\x20items','class','find','Compare\x20against\x20selected','extendTemplate','change:isActionsDropdownOpen','_action','isVisible','map','Name\x20this\x20revision','stopPropagation','items','bindTemplate','first','ck-on','isReady'];(function(_0x2ea672,_0x39dee6){const _0x51a9a6=function(_0x34482c){while(--_0x34482c){_0x2ea672['push'](_0x2ea672['shift']());}};_0x51a9a6(++_0x39dee6);}(_0x39de,0x128));const _0x51a9=function(_0x2ea672,_0x39dee6){_0x2ea672=_0x2ea672-0x0;let _0x51a9a6=_0x39de[_0x2ea672];return _0x51a9a6;};import{Collection as _0x5c99fa}from'ckeditor5/src/utils';import{icons as _0xde46af}from'ckeditor5/src/core';import{Model as _0x3bf2d7,addListToDropdown as _0x506c7c,createDropdown as _0x3712a3}from'ckeditor5/src/ui';import{getTranslation as _0x274771}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xfbcee4,_0x1a275d){const _0x44cde4=_0xfbcee4[_0x51a9('0x1e')],_0xf20e55=_0xfbcee4[_0x51a9('0xc')],_0x427818=_0x3712a3(_0xf20e55);_0x427818[_0x51a9('0x8')]='sw';const _0x1e4ffe=function(_0x25b4de,_0x30bf04){const _0x1f7892=function(_0x1b8c99,_0x1d531d){const _0x5a0af6=_0x1b8c99[_0x51a9('0xc')],_0x22b419={'Compare\x20against\x20selected':_0x274771(_0x5a0af6,_0x51a9('0x15')),'Name\x20this\x20revision':_0x274771(_0x5a0af6,_0x51a9('0x1b')),'Restore\x20this\x20revision':_0x274771(_0x5a0af6,_0x51a9('0x2'))};return _0x1d531d[_0x51a9('0x1a')](_0x235e81=>{const _0x42b635=_0x22b419[_0x235e81[_0x51a9('0xa')]];return _0x42b635&&_0x42b635!==_0x235e81[_0x51a9('0xa')]&&(_0x235e81['name']=_0x42b635),_0x235e81;});}(_0x25b4de,_0x30bf04),_0x449015=new _0x5c99fa();for(const _0x4b2a90 of _0x1f7892){const _0x2bec7c={'type':'button','model':new _0x3bf2d7({'label':_0x4b2a90[_0x51a9('0xa')],'class':_0x4b2a90[_0x51a9('0x13')],'withText':!0x0,'_action':_0x4b2a90['action']})};_0x2bec7c['model'][_0x51a9('0x5')](_0x51a9('0x11'))['to'](_0x25b4de,_0x51a9('0x3'),_0x2f6e34=>_0x51a9('0x9')!=typeof _0x4b2a90[_0x51a9('0x11')]||(!_0x2f6e34||_0x4b2a90[_0x51a9('0x11')](_0x25b4de))),_0x449015[_0x51a9('0x7')](_0x2bec7c);}return _0x449015;}(_0xfbcee4,_0x1a275d);return _0xfbcee4[_0x51a9('0x5')](_0x51a9('0x3'))['to'](_0x427818,_0x51a9('0x4')),_0x427818[_0x51a9('0xb')][_0x51a9('0x10')]({'label':_0x274771(_0xf20e55,_0x51a9('0x12')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xde46af['threeVerticalDots']}),_0x427818[_0x51a9('0x16')]({'attributes':{'class':[_0x51a9('0x1'),_0x44cde4['if'](_0x51a9('0x3'),_0x51a9('0x20'))]},'on':{'click':_0x44cde4['to'](_0x451110=>_0x451110[_0x51a9('0x1c')]())}}),_0x427818['on']('execute',_0xe7790f=>{_0xfbcee4[_0x51a9('0x0')]&&_0x51a9('0x9')==typeof _0xe7790f[_0x51a9('0xd')][_0x51a9('0x18')]&&_0xe7790f[_0x51a9('0xd')][_0x51a9('0x18')](_0xfbcee4);}),_0x506c7c(_0x427818,_0x1e4ffe),_0x427818[_0x51a9('0xf')](_0xfbcee4,_0x51a9('0x17'),(_0xc26746,_0x286cfb,_0xe6be52)=>{if(_0xe6be52)for(const _0x3b7dd2 of _0x427818['listView'][_0x51a9('0x1d')]){const _0x467c8d=_0x3b7dd2[_0x51a9('0x6')][_0x51a9('0x1f')],_0x5b57ad=_0x1a275d[_0x51a9('0x14')](_0x26d382=>_0x26d382[_0x51a9('0xe')]===_0x467c8d[_0x51a9('0x18')])['isVisible'];_0x3b7dd2[_0x51a9('0x19')]=void 0x0===_0x5b57ad||_0x5b57ad(_0xfbcee4);}}),_0x427818;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bfe=['set','Revision\x20creator','span','name','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author_creator','push'];(function(_0x5e4808,_0x4bfe31){const _0x51b5fb=function(_0xe88b24){while(--_0xe88b24){_0x5e4808['push'](_0x5e4808['shift']());}};_0x51b5fb(++_0x4bfe31);}(_0x4bfe,0x1f0));const _0x51b5=function(_0x5e4808,_0x4bfe31){_0x5e4808=_0x5e4808-0x0;let _0x51b5fb=_0x4bfe[_0x5e4808];return _0x51b5fb;};import{View as _0x267233,IconView as _0x1a6b89}from'ckeditor5/src/ui';import{getTranslation as _0x9015f9}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x262c70 from'../../../theme/icons/user.svg';export default class ti extends _0x267233{constructor(_0x1cd1a7,_0x514427,_0x30d6f2){super(_0x1cd1a7);const _0x4880d8=new _0x1a6b89();_0x4880d8[_0x51b5('0x0')]({'content':_0x262c70,'viewBox':'0\x200\x2011\x2010'});const _0x5a0468=['ck',_0x51b5('0x4')];_0x30d6f2&&_0x5a0468[_0x51b5('0x7')](_0x51b5('0x6'));const _0x406a2c=[{'tag':_0x51b5('0x2'),'attributes':{'class':['ck',_0x51b5('0x5')],'title':_0x9015f9(_0x1cd1a7,_0x30d6f2?_0x51b5('0x1'):'Revision\x20author')},'children':[_0x4880d8,_0x514427[_0x51b5('0x3')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5a0468},'children':_0x406a2c});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c04=['Revision\x20name','span','set','ck-revision-history-sidebar__revision-name','extendTemplate'];(function(_0xeeec7e,_0x5c048e){var _0x43a1f2=function(_0x27b60a){while(--_0x27b60a){_0xeeec7e['push'](_0xeeec7e['shift']());}};_0x43a1f2(++_0x5c048e);}(_0x5c04,0xa2));var _0x43a1=function(_0xeeec7e,_0x5c048e){_0xeeec7e=_0xeeec7e-0x0;var _0x43a1f2=_0x5c04[_0xeeec7e];return _0x43a1f2;};import{LabeledFieldView as _0x34684f}from'ckeditor5/src/ui';import{getTranslation as _0x414993}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x34684f{constructor(_0x81d271,_0x5f5a16){super(_0x81d271,_0x5f5a16),this[_0x43a1('0x0')]({'label':_0x414993(_0x81d271,_0x43a1('0x3'))}),this[_0x43a1('0x2')]({'tag':_0x43a1('0x4'),'attributes':{'class':[_0x43a1('0x1')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5900=['ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isEnabled','closest','filter','220','creator','authors','ck-disabled','listenTo','ck-reset','ck-revision-history-sidebar__actions_dropdown_open','revisionActionsView','.ck-thread__remove-confirm','highlight','bindTemplate','render','unshift','set','setTemplate','span','map','unhighlight','deselect','extendTemplate','value','placeholder','uiLanguage','revisionNameView','select','length','isSelected','createdAt','fire','ck-revision-history-sidebar__revision_highlighted','isHighlighted','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision__date','srcElement','isReady','name','isActionsDropdownOpen','_createdAtFormatted','ck-revision-history-sidebar__revision-authors','isConfirm','div','fieldView','bind','ck-revision-history-sidebar__revision'];(function(_0x9d0163,_0x5900b7){const _0x2670a2=function(_0x35ef08){while(--_0x35ef08){_0x9d0163['push'](_0x9d0163['shift']());}};_0x2670a2(++_0x5900b7);}(_0x5900,0x8d));const _0x2670=function(_0x9d0163,_0x5900b7){_0x9d0163=_0x9d0163-0x0;let _0x2670a2=_0x5900[_0x9d0163];return _0x2670a2;};import{View as _0x4671db,createLabeledInputText as _0xd57b7f}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4b45b9}from'ckeditor5-collaboration/src/collaboration-core';import _0x156799 from'./revisionnameview';import _0x4edd4c from'./revisionauthorview';import{dateToPrettyFormat as _0x159b86}from'./utils';import{createActionsDropdownView as _0x56a0f7}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4b45b9(_0x4671db){constructor(_0x4c7fe3,_0x3566a2,_0x1daccd){super(_0x4c7fe3);const _0x407d4d=this[_0x2670('0x11')],_0x508978=function(_0x118560,_0x1a47b8){const _0x44bc19=Array['from'](_0x1a47b8[_0x2670('0x9')])[_0x2670('0x6')](_0x532ea8=>_0x532ea8!=_0x1a47b8[_0x2670('0x8')]);return _0x1a47b8[_0x2670('0x8')]&&_0x44bc19[_0x2670('0x13')](_0x1a47b8[_0x2670('0x8')]),_0x44bc19[_0x2670('0x17')](_0x38c7d0=>new _0x4edd4c(_0x118560,_0x38c7d0,_0x38c7d0==_0x1a47b8[_0x2670('0x8')]));}(_0x4c7fe3,_0x3566a2);this['id']=_0x3566a2['id'],this['_revision']=_0x3566a2,this['bind'](_0x2670('0x2a'),_0x2670('0x22'))['to'](_0x3566a2),this['bind'](_0x2670('0x2c'))['to'](this,_0x2670('0x22'),_0x200137=>_0x200137?_0x159b86(_0x4c7fe3[_0x2670('0x1d')],_0x200137):void 0x0),this[_0x2670('0x14')]('isSelected',!0x1),this[_0x2670('0x14')](_0x2670('0x25'),!0x1),this[_0x2670('0x14')](_0x2670('0x2b'),!0x1),this[_0x2670('0x14')](_0x2670('0x29'),!0x1),this[_0x2670('0x14')](_0x2670('0x4'),!0x1),this[_0x2670('0x1e')]=new _0x156799(_0x4c7fe3,_0xd57b7f),this[_0x2670('0x1e')][_0x2670('0x0')][_0x2670('0x1a')]({'attributes':{'maxlength':_0x2670('0x7')}}),this[_0x2670('0x1e')][_0x2670('0x0')][_0x2670('0x1')](_0x2670('0x1b'),_0x2670('0x1c'))['to'](this,_0x2670('0x2a'),_0x2670('0x2c')),this['revisionNameView'][_0x2670('0x1')](_0x2670('0x4'))['to'](this,_0x2670('0x21'),this,'isEnabled',(_0x249454,_0x168a71)=>_0x249454&&_0x168a71),this[_0x2670('0xe')]=_0x1daccd&&_0x1daccd[_0x2670('0x20')]?_0x56a0f7(this,_0x1daccd):'',this[_0x2670('0xe')]&&this[_0x2670('0xe')][_0x2670('0x1')](_0x2670('0x4'))['to'](this),this[_0x2670('0x15')]({'tag':_0x2670('0x2f'),'attributes':{'class':['ck',_0x2670('0xc'),'ck-revision-history-sidebar__revision-wrapper',_0x407d4d['if'](_0x2670('0x2e'),_0x2670('0x3'))]},'children':[{'tag':_0x2670('0x2f'),'attributes':{'class':['ck',_0x2670('0xc'),_0x2670('0x2'),_0x407d4d['if'](_0x2670('0x4'),_0x2670('0xa'),_0x4c1513=>!_0x4c1513),_0x407d4d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x407d4d['if']('isHighlighted',_0x2670('0x24')),_0x407d4d['if'](_0x2670('0x2b'),_0x2670('0xd'))]},'children':[this['revisionNameView'],{'tag':_0x2670('0x16'),'attributes':{'class':['ck',_0x2670('0x27')]},'children':[{'text':_0x407d4d['to']('_createdAtFormatted')}]},{'tag':_0x2670('0x2f'),'attributes':{'class':['ck',_0x2670('0x26')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2670('0x2d')]},'children':_0x508978}]},this['revisionActionsView']],'on':{'click':_0x407d4d['to'](_0x7d8c34=>{_0x7d8c34[_0x2670('0x28')][_0x2670('0x5')](_0x2670('0xf'))||this['isReady']&&this[_0x2670('0x4')]&&this[_0x2670('0x23')](_0x2670('0x1f'),{'id':this['id']});})}}]});}[_0x2670('0x12')](){super[_0x2670('0x12')]();const _0xfc7914=this[_0x2670('0x1e')][_0x2670('0x0')]['element'];this[_0x2670('0xb')](_0xfc7914,'change',()=>{this[_0x2670('0x23')]('setName',{'id':this['id'],'name':_0xfc7914[_0x2670('0x1b')]});});}[_0x2670('0x1f')](){this['isSelected']=!0x0;}[_0x2670('0x19')](){this[_0x2670('0x21')]=!0x1;}[_0x2670('0x10')](){this[_0x2670('0x25')]=!0x0;}[_0x2670('0x18')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3934=['bindTemplate','ck-revision-history-sidebar__subrevision-collapser','false','toggle','setTemplate','isVisible','button','ck-hidden','set','click','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner','span','_isCollapsed'];(function(_0x5e1511,_0x39346a){const _0xe1fb73=function(_0x13a0b7){while(--_0x13a0b7){_0x5e1511['push'](_0x5e1511['shift']());}};_0xe1fb73(++_0x39346a);}(_0x3934,0x1ef));const _0xe1fb=function(_0x5e1511,_0x39346a){_0x5e1511=_0x5e1511-0x0;let _0xe1fb73=_0x3934[_0x5e1511];return _0xe1fb73;};import{View as _0x1cab34}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x1cab34{constructor(_0x5143f3){super(_0x5143f3);const _0x3e4557=this[_0xe1fb('0x9')];this[_0xe1fb('0x3')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xe1fb('0xd')]({'tag':_0xe1fb('0x7'),'attributes':{'class':['ck',_0xe1fb('0xa'),_0x3e4557['if'](_0xe1fb('0x0'),_0xe1fb('0x2'),_0x50f38c=>!_0x50f38c),_0x3e4557['if'](_0xe1fb('0x8'),_0xe1fb('0x5'))],'role':_0xe1fb('0x1'),'aria-pressed':_0x3e4557['to'](_0xe1fb('0x8'),_0x4bee66=>_0x4bee66?_0xe1fb('0xb'):'true')},'children':[{'tag':_0xe1fb('0x7'),'attributes':{'class':['ck',_0xe1fb('0x6')]}}],'on':{'click':_0x3e4557['to'](_0xe1fb('0x4'))}});}[_0xe1fb('0xc')](){this[_0xe1fb('0x8')]=!this[_0xe1fb('0x8')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bb9=['bindTemplate','createdAt','select','_parentRevisionId','span','ck-revision-history-sidebar__revision-authors','bind','ck-revision-history-sidebar__revision','isSelected','div','deselect','ck-revision-history-sidebar__subrevision','creator','ck-reset','uiLanguage','setTemplate','set'];(function(_0x2ba2f6,_0x3bb977){const _0x1a46df=function(_0x554f34){while(--_0x554f34){_0x2ba2f6['push'](_0x2ba2f6['shift']());}};_0x1a46df(++_0x3bb977);}(_0x3bb9,0x11b));const _0x1a46=function(_0x2ba2f6,_0x3bb977){_0x2ba2f6=_0x2ba2f6-0x0;let _0x1a46df=_0x3bb9[_0x2ba2f6];return _0x1a46df;};import{View as _0x510971}from'ckeditor5/src/ui';import _0x223829 from'./revisionauthorview';import{dateToPrettyFormat as _0x27b382}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x510971{constructor(_0x2aa0a7,_0x12520e,_0x4592dd){super(_0x2aa0a7);const _0x7d32f9=this[_0x1a46('0x6')];this['id']=_0x12520e['id'],this['bind'](_0x1a46('0x7'))['to'](_0x12520e),this[_0x1a46('0x5')](_0x1a46('0xe'),!0x1),this[_0x1a46('0xc')]('_createdAtFormatted')['to'](this,'createdAt',_0x477e9d=>_0x477e9d?_0x27b382(_0x2aa0a7[_0x1a46('0x3')],_0x477e9d):void 0x0),this['_parentRevisionId']=_0x4592dd,this[_0x1a46('0x4')]({'tag':_0x1a46('0xf'),'attributes':{'class':['ck',_0x1a46('0x2'),_0x1a46('0xd'),_0x1a46('0x0'),_0x7d32f9['if'](_0x1a46('0xe'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1a46('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x7d32f9['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x1a46('0xb')]},'children':[new _0x223829(_0x2aa0a7,_0x12520e[_0x1a46('0x1')],!0x0)]}],'on':{'click':_0x7d32f9['to'](this[_0x1a46('0x8')]['bind'](this))}});}['select'](){this[_0x1a46('0xe')]=!0x0,this['fire'](_0x1a46('0x8'),{'parentId':this[_0x1a46('0x9')]});}[_0x1a46('0x10')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xa215=['long','toLocaleDateString','numeric'];(function(_0x4aaf93,_0xa21506){var _0x23776a=function(_0x4cc677){while(--_0x4cc677){_0x4aaf93['push'](_0x4aaf93['shift']());}};_0x23776a(++_0xa21506);}(_0xa215,0x19e));var _0x2377=function(_0x4aaf93,_0xa21506){_0x4aaf93=_0x4aaf93-0x0;var _0x23776a=_0xa215[_0x4aaf93];return _0x23776a;};export function dateToPrettyFormat(_0x4e222a,_0x20234d){return _0x20234d[_0x2377('0x1')](_0x4e222a,{'month':_0x2377('0x0'),'day':_0x2377('0x2')})+',\x20'+_0x20234d['toLocaleTimeString'](_0x4e222a,{'hour':_0x2377('0x2'),'minute':'numeric'});}
|