@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230817.0 → 0.0.0-nightly-20230818.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 _0x6956=['affectsData','_markInsertions','createUIElement','vid_end','isAtStart','schema','_makeModelFromViewString','getDomRoot','_getViewForChange','ck-editor__editable__overlay','high','wrap','maxOffset','getItems','bottom','markerName','elementEnd','previousPosition','span','_initInteractions','revision','comment','_joinTapes','change:activeView','changeId','uiElement','startsWith','editor','code','_getChangeFromId','parse','get','document','remove','diff','addMarker:revision','pop','changes','_removeUnsupportedChanges','children','revision-start','concat','addRevision','endIndex','addMarker:revision-suggestion:insertion','_setDistance','view','change:isEnabled','_activeViewTarget','dataToMarker','hasClass','ck-suggestion-marker-merge','has','removeClass','processor','object','isContent','enableReadOnlyMode','markersEnd','getCustomProperty','hasAttribute','deletion','flat','newRevisionId','removeAttribute','end','add','unshift','attributes','enqueueChange','_revisions','_findChangeIdFromDomTarget','attributesAfter','revisionHistoryAttachChange','insertion','distance','viewItem','stop','pairId','includes','vid_start','level','selection','string','_removeMissingPairs','ck-revision-history-root--active','checkAttribute','requires','toData','left','isObject','change:activeChange','backward','find','destroy','diffData','shift','_getDiff','activeView','merge','ck-suggestion-marker--active','_getRevisionsRange','push','mapper','authors','isSuggestion','_appendChild','getChild','isAttached','model','markerNameToElements','suggestion:','createPositionBefore','detachRoot','side','POSITIVE_INFINITY','_cleanMarkers','isRemoveSuggestion','observeMarkers','upcast','addClass','conversion','editing','insert','addHighlight','compare','bindElementToMarker','getAttributes','ck-suggestion-marker-','deletions','_markMarkers','insertions','consume','ck-suggestion-marker-split','done','_processTape','element','target','_fixObsoleteTags','mouseover','createRangeIn','set','nextPosition','element:pre','_changeIdToChange','execute','getIndex','then','refresh','plugins','resolve','isEnabled','unbindElementFromMarkerName','_step','isLimit','removeMarker','_changeView','addRoot','keys','ck-revision-history-root-add','consumable','createRange','vid','reconvertMarker','sort','map','attachChange','change:numberOfChanges','_markSuggestions','_data','getRootNames','_markMismatchedRemovedTags','_refreshStartEndIndex','revision-viewer','test','revision-suggestion:','collaboration.channelId','isRemoved','data','_sortAndFilterDiffChanges','findIndex','range','forward','dataDowncast','getRoot','useFillerType','abs','filter','_makeModelFromTape','isReady','ck-suggestion-preview-marker-','nodeAfter','pluginName','isEqual','index','revisionHistoryLabel','isAdded','activeChange','addRevisionData','markersStart','revision-suggestion','for','restoreRevisionCallback','ck-suggestion-preview-marker','getRevisionData','revision:','revision-end','getAttribute','oldRevisionId','nextSibling','rootName','editingDowncast','toViewElement','markers','splice','isAfter','change:isReady','next','item','RevisionsRepository','userId','loadRevisionData','change','forEach','isNavigationMode','getClientRects','values','highest','length','isAtEnd','createPositionFromPath','getWalker','writer','removeMarker:revision','config','locale','addMarker:revision-suggestion:deletion','modelRange','RevisionViewer','data-change-id','toViewPosition','_removeRevisionMarkers','isOnRoot','getRevision','repository','createRevision','_update','init','toModel','isBlock','type','_balloon','restoreRevision','removeMarker:revision-suggestion','return','domEvent','showPreviousChange','downcastDispatcher','elementStart','isIncorrect','delete','parent','isAddSuggestion','adapter','mousedown','bind','name','indexOf','split','from','listenTo','_makeTape','isBefore','commands','_threeWayMerge','_cleanUp','markerToHighlight','_getViewObj','setAttribute','markerRange','top','first','text','start','startIndex','low','-new'];(function(_0x4d09a3,_0x69563c){const _0x267beb=function(_0x45d053){while(--_0x45d053){_0x4d09a3['push'](_0x4d09a3['shift']());}};_0x267beb(++_0x69563c);}(_0x6956,0x1a7));const _0x267b=function(_0x4d09a3,_0x69563c){_0x4d09a3=_0x4d09a3-0x0;let _0x267beb=_0x6956[_0x4d09a3];return _0x267beb;};import{Plugin as _0xa80a6b,Command as _0x5a80bc}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1652f7}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4a6b9e}from'ckeditor5/src/ui';import{DocumentFragment as _0x1c11b1,Element as _0xed8376,Text as _0x3ac18b,ViewDocumentFragment as _0x117499,ViewText as _0x2aa88c,ViewElement as _0x20aae1,ViewContainerElement as _0x357f66,ViewAttributeElement as _0x5226dc,ViewEmptyElement as _0x3a1424,ViewRawElement as _0x4ff4e5,ViewUIElement as _0x5473a4}from'ckeditor5/src/engine';import{Users as _0xd46ddf,getMarkerDomElement as _0x2a84bb}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ad18f from'./ui/revisionviewer/changedetailsview';import _0x492079 from'./revisionsrepository';import _0x49afc5 from'./changeitem';import{default as _0x2b52d7}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x110515}from'lodash-es';const tt={'c':_0x357f66,'a':_0x5226dc,'e':_0x3a1424,'r':_0x4ff4e5,'u':_0x5473a4};export default class d extends _0xa80a6b{static get[_0x267b('0x38')](){return _0x267b('0x66');}static get[_0x267b('0xee')](){return[_0xd46ddf,_0x4a6b9e,_0x492079];}constructor(_0xc3aa5f){super(_0xc3aa5f),this[_0x267b('0x6c')]=this[_0x267b('0xb2')][_0x267b('0xd')][_0x267b('0xb6')](_0x267b('0x53')),this[_0x267b('0x5')](_0x267b('0x3d'),null),this['set'](_0x267b('0xf9'),null),this['_activeViewTarget']=null,this[_0x267b('0x5')]('diff',null),this['set']('isReady',!0x1),this[_0x267b('0x5')](_0x267b('0xf'),!0x0),this['on'](_0x267b('0xc6'),(_0x2fde82,_0x57968b,_0x315cb0)=>{this[_0x267b('0x3d')]=null,this[_0x267b('0xf9')]=null,this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')]['change'](_0x2de9fb=>{for(const _0x295686 of this['editor'][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0xb7')]['roots'])_0x315cb0?_0x2de9fb['removeClass'](_0x267b('0xa0'),_0x295686):_0x2de9fb[_0x267b('0x10f')](_0x267b('0xa0'),_0x295686);});}),this[_0x267b('0x81')](_0x267b('0x58'))['to'](this,_0x267b('0x3d'),_0xbb8e77=>null!==_0xbb8e77),this[_0x267b('0x81')]('currentChangeNumber')['to'](this,_0x267b('0x35'),this,_0x267b('0xb9'),this,'activeChange',(_0x4813b6,_0x5ad9b0,_0x1d8352)=>_0x4813b6&&_0x1d8352?_0x5ad9b0[_0x267b('0xbc')][_0x267b('0xa')](_0x1d8352):0x0),this['bind']('numberOfChanges')['to'](this,_0x267b('0x35'),this,'diff',(_0x49aec2,_0x5d1880)=>_0x49aec2?_0x5d1880[_0x267b('0xbc')][_0x267b('0x5c')]:0x0),this[_0x267b('0x14')]=null,this[_0x267b('0x8')]=new Map(),this['adapter']=null,this[_0x267b('0x73')]=this[_0x267b('0xb2')][_0x267b('0xd')][_0x267b('0xb6')](_0x4a6b9e);}[_0x267b('0x6f')](){const _0x176b86=this['editor'],_0x4c1b4d=new ShowChangeCommand(_0x176b86,{'direction':_0x267b('0xf3')}),_0x33e6df=new ShowChangeCommand(_0x176b86,{'direction':'forward'});(_0x176b86[_0x267b('0x89')][_0x267b('0xd9')](_0x267b('0x78'),_0x4c1b4d),_0x176b86['commands'][_0x267b('0xd9')]('showNextChange',_0x33e6df),_0x176b86['commands']['add'](_0x267b('0x74'),new RestoreRevisionCommand(_0x176b86)),this['on'](_0x267b('0x1f'),()=>{_0x4c1b4d[_0x267b('0xc')](),_0x33e6df['refresh']();}),this['_setConversion'](),this[_0x267b('0xaa')](),_0x176b86[_0x267b('0xd0')](_0x267b('0x25')),_0x176b86[_0x267b('0xd')][_0x267b('0xcb')]('WidgetToolbarRepository'))&&_0x176b86[_0x267b('0xd')]['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async[_0x267b('0x44')](_0x448dc5){await this[_0x267b('0x55')](_0x448dc5);const _0x724b34={};for(const _0x580998 in _0x448dc5['diffData']){if(_0x448dc5[_0x267b('0xf6')][_0x580998][_0x267b('0x1e')]&&!_0x448dc5[_0x267b('0xf6')][_0x580998]['attachChange']['isAttached'])continue;const _0x207f76=this[_0x267b('0x69')](JSON['parse'](_0x448dc5[_0x267b('0xf6')][_0x580998][_0x267b('0x11a')])),_0x159fb2=this[_0x267b('0xb2')]['editing'][_0x267b('0xc5')]['document'],_0x3b800e=new _0x117499(_0x159fb2,_0x207f76[_0x267b('0x1d')](_0x3a9b10=>this[_0x267b('0x8d')](_0x3a9b10)));this[_0x267b('0xb2')][_0x267b('0x2a')][_0x267b('0xcd')][_0x267b('0x31')]('marked'),_0x724b34[_0x580998]=this[_0x267b('0xb2')][_0x267b('0x2a')]['processor'][_0x267b('0xef')](_0x3b800e),this[_0x267b('0xb2')][_0x267b('0x2a')][_0x267b('0xcd')][_0x267b('0x31')]('default');}return _0x724b34;}async['getRevisionRootsAttributes'](_0x14df77){await this[_0x267b('0x55')](_0x14df77);const _0x318019={};for(const _0x53e52c in _0x14df77[_0x267b('0xf6')])_0x14df77[_0x267b('0xf6')][_0x53e52c][_0x267b('0x1e')]&&!_0x14df77[_0x267b('0xf6')][_0x53e52c][_0x267b('0x1e')][_0x267b('0x103')]||(_0x318019[_0x53e52c]=_0x14df77[_0x267b('0xf6')][_0x53e52c][_0x267b('0xdf')]||{});return _0x318019;}[_0x267b('0x69')](_0xaa524){return(_0xaa524=_0xaa524[_0x267b('0x33')](_0x5aadc5=>!_0x5aadc5['name']||_0x267b('0xbf')!==_0x5aadc5['name']&&_0x267b('0x46')!==_0x5aadc5[_0x267b('0x82')]))[_0x267b('0x57')](_0x41289b=>{_0x267b('0xea')!=typeof _0x41289b&&(_0x41289b[_0x267b('0xbe')]=this[_0x267b('0x69')](_0x41289b[_0x267b('0xbe')]),_0x41289b[_0x267b('0xdb')]=_0x41289b[_0x267b('0xdb')]['filter'](_0x4f2556=>!_0x4f2556[0x0][_0x267b('0xb1')]('data-revision-')));}),_0xaa524;}async[_0x267b('0x114')](_0x3a45d5,_0x4482de,_0x29d1e8=!0x1){if(!this[_0x267b('0xf')])return;const _0x1a067f=this[_0x267b('0xb9')],_0x52b911=this[_0x267b('0x6c')],_0x140f90=_0x267b('0xea')==typeof _0x3a45d5?_0x52b911[_0x267b('0x6b')](_0x3a45d5):_0x3a45d5,_0x142edd='string'==typeof _0x4482de?_0x52b911[_0x267b('0x6b')](_0x4482de):_0x4482de,_0x225720=_0x140f90['id'],_0x4c75aa=_0x142edd?_0x142edd['id']:null;if(!_0x29d1e8&&this[_0x267b('0xb9')]&&this[_0x267b('0xb9')][_0x267b('0xd6')]===_0x225720&&this[_0x267b('0xb9')][_0x267b('0x48')]===_0x4c75aa)return Promise['resolve']();this[_0x267b('0x35')]=!0x1,this[_0x267b('0xf9')]=null,this['activeChange']=null,this[_0x267b('0xb9')]=new _0x2b52d7(_0x225720,_0x4c75aa);const _0x32d2c4=this[_0x267b('0xfc')](_0x140f90,_0x142edd,!0x0)[_0x267b('0x1d')](_0x21f80e=>this[_0x267b('0x55')](_0x21f80e));return _0x32d2c4[_0x267b('0xfd')](new Promise(_0x187b0a=>{setTimeout(_0x187b0a,0x14);})),Promise['all'](_0x32d2c4)['then'](()=>{if(!this[_0x267b('0xf')])return;this['_cleanUp']();const _0x2bf6a2=this[_0x267b('0xf8')](_0x225720,_0x4c75aa);for(const _0x37a401 of _0x2bf6a2[_0x267b('0xbc')])this[_0x267b('0x8')][_0x267b('0x5')](_0x37a401['id'],_0x37a401);this[_0x267b('0xb2')][_0x267b('0x104')]['enqueueChange']({'isUndoable':!0x1},_0x2808c3=>{for(const _0x3c1f3b of this[_0x267b('0xb2')]['model'][_0x267b('0xb7')][_0x267b('0x22')]())_0x2808c3[_0x267b('0x108')](_0x3c1f3b);for(const _0x18de9c of Object['keys'](_0x2bf6a2[_0x267b('0x104')])){const _0x4fedd4=_0x2808c3[_0x267b('0x15')](_0x18de9c);for(const _0x278608 of Object[_0x267b('0x16')](_0x2bf6a2[_0x267b('0xdb')][_0x18de9c]))_0x2808c3[_0x267b('0x8e')](_0x278608,_0x2bf6a2[_0x267b('0xdb')][_0x18de9c][_0x278608],_0x4fedd4);_0x2808c3[_0x267b('0x112')](_0x2bf6a2[_0x267b('0x104')][_0x18de9c],_0x4fedd4,0x0);}}),this['diff']['_setChanges'](this[_0x267b('0x2b')](_0x2bf6a2['changes'])),this['isReady']=!0x0;})['catch'](_0x183a9b=>{console['error'](_0x183a9b),this[_0x267b('0x8b')](),_0x1a067f&&(this[_0x267b('0xb9')]=_0x1a067f),this[_0x267b('0x35')]=!0x0;});}[_0x267b('0x3e')](_0x4ca470,_0x47908c){const _0x5c8112=this[_0x267b('0x6c')][_0x267b('0x6d')](_0x4ca470);return _0x5c8112['on'](_0x267b('0x6e'),(_0xa18127,_0x4f3148,_0x2fd244)=>_0x47908c(_0x4f3148,_0x2fd244,_0x5c8112)),this[_0x267b('0x6c')][_0x267b('0xc1')](_0x5c8112),_0x5c8112;}[_0x267b('0x55')](_0x9a9aef){if(!_0x9a9aef||_0x9a9aef[_0x267b('0xf6')])return Promise[_0x267b('0xe')]();{const _0x2ef9a7=this['editor'][_0x267b('0x62')][_0x267b('0xb6')](_0x267b('0x28'));return this[_0x267b('0x7f')]['getRevision']({'channelId':_0x2ef9a7,'revisionId':_0x9a9aef['id']})[_0x267b('0xb')](_0x3af723=>{_0x9a9aef['_update']({'diffData':_0x3af723[_0x267b('0xf6')]},!0x0);});}}[_0x267b('0x8b')](){this[_0x267b('0x3d')]=null,this[_0x267b('0x10b')](),this['_changeView']&&this[_0x267b('0x14')]['destroy'](),this['_changeView']=null,this[_0x267b('0x8')]['clear'](),this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0xdc')]({'isUndoable':!0x1},_0x46aa7d=>{for(const _0x1f5daf of this[_0x267b('0xb2')][_0x267b('0x104')]['document'][_0x267b('0x22')]())_0x46aa7d[_0x267b('0x108')](_0x1f5daf);});}[_0x267b('0x2b')](_0x10ac35){const _0x3172bb=[],_0x119fa4=new Map();for(const _0x1e10af of this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0xb7')][_0x267b('0x22')]()){const _0x273530=this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0x9e')](_0x1e10af);if(!_0x273530)continue;const _0x55f91a=_0x273530[_0x267b('0x59')]()[_0x267b('0x52')](0x0);_0x55f91a&&(_0x3172bb[_0x267b('0xfd')](_0x1e10af),_0x119fa4[_0x267b('0x5')](_0x1e10af,_0x55f91a));}return _0x3172bb['sort']((_0x2c65f4,_0x361731)=>{const _0x5bc8c4=_0x119fa4[_0x267b('0xb6')](_0x2c65f4),_0x106b93=_0x119fa4[_0x267b('0xb6')](_0x361731);return _0x5bc8c4['y']-_0x106b93['y']||_0x5bc8c4['x']-_0x106b93['x'];}),(_0x10ac35=_0x10ac35[_0x267b('0x33')](_0xf229c8=>_0x3172bb[_0x267b('0xe6')](_0xf229c8[_0x267b('0x4a')])))[_0x267b('0x1c')]((_0x5b53db,_0x396793)=>_0x3172bb['indexOf'](_0x5b53db['rootName'])-_0x3172bb[_0x267b('0x83')](_0x396793[_0x267b('0x4a')])),_0x10ac35;}[_0x267b('0x87')](_0x34aedd){const _0x2afb06=Array[_0x267b('0x85')](_0x34aedd[_0x267b('0x4d')])[_0x267b('0x33')](([_0x12b153,_0x181b17])=>_0x12b153[_0x267b('0xb1')](_0x267b('0x45'))&&!_0x181b17['isCollapsed']),_0x33d500=Array[_0x267b('0x85')](this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x4')](_0x34aedd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2afb06[_0x267b('0x5c')])for(const _0x54f05e of _0x33d500){const [_0x30ac34,_0x4df397]=_0x2afb06[0x0],[,_0x1c8169,_0x5ddbdb]=_0x30ac34[_0x267b('0x84')](':');if(_0x4df397[_0x267b('0xd8')][_0x267b('0x39')](_0x54f05e[_0x267b('0x6')])&&_0x2afb06[_0x267b('0xf7')](),(_0x54f05e[_0x267b('0xa8')][_0x267b('0x39')](_0x4df397['start'])||_0x54f05e[_0x267b('0xa8')][_0x267b('0x4f')](_0x4df397[_0x267b('0x93')]))&&(_0x267b('0xe1')==_0x1c8169?_0x54f05e['isAdded']={'userId':_0x5ddbdb}:'deletion'==_0x1c8169&&(_0x54f05e[_0x267b('0x29')]={'userId':_0x5ddbdb})),0x0==_0x2afb06[_0x267b('0x5c')])break;}return _0x33d500;}[_0x267b('0x24')](_0x39b20c){const _0x1c281e=new Map();for(let _0x38a0ba=0x0;_0x38a0ba<_0x39b20c[_0x267b('0x5c')];_0x38a0ba++)_0x267b('0x92')===_0x39b20c[_0x38a0ba][_0x267b('0x72')]?(_0x39b20c[_0x38a0ba][_0x267b('0x52')][_0x267b('0x94')]=_0x38a0ba,_0x39b20c[_0x38a0ba][_0x267b('0x52')]['endIndex']=_0x38a0ba):(_0x267b('0x7a')===_0x39b20c[_0x38a0ba][_0x267b('0x72')]?_0x39b20c[_0x38a0ba][_0x267b('0x52')][_0x267b('0x94')]=_0x38a0ba:'elementEnd'===_0x39b20c[_0x38a0ba][_0x267b('0x72')]&&(_0x39b20c[_0x38a0ba][_0x267b('0x52')][_0x267b('0xc2')]=_0x38a0ba),_0x1c281e[_0x267b('0x5')](_0x39b20c[_0x38a0ba]['id'],_0x38a0ba));for(const _0x227742 of _0x1c281e[_0x267b('0x5a')]())_0x267b('0x7a')===_0x39b20c[_0x227742]['type']?_0x39b20c[_0x227742][_0x267b('0x52')][_0x267b('0xc2')]=_0x1c281e[_0x267b('0xb6')](_0x39b20c[_0x227742][_0x267b('0xe5')]):_0x267b('0xa7')===_0x39b20c[_0x227742][_0x267b('0x72')]&&(_0x39b20c[_0x227742][_0x267b('0x52')][_0x267b('0x94')]=_0x1c281e['get'](_0x39b20c[_0x227742][_0x267b('0xe5')]));}[_0x267b('0x11e')](_0x1ef287){for(let _0x5c8105=0x0;_0x5c8105<_0x1ef287[_0x267b('0x5c')];_0x5c8105++){if(_0x267b('0x7a')===_0x1ef287[_0x5c8105][_0x267b('0x72')])_0x1ef287[_0x5c8105]['item'][_0x267b('0x94')]=_0x5c8105;else{if(_0x267b('0xa7')===_0x1ef287[_0x5c8105][_0x267b('0x72')]){_0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0xc2')]=_0x5c8105;const _0x152470=_0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0x94')];_0x1ef287[_0x152470][_0x267b('0xe5')]=_0x1ef287[_0x5c8105]['id'],_0x1ef287[_0x5c8105]['pairId']=_0x1ef287[_0x152470]['id'];}else _0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0x94')]=_0x5c8105,_0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0xc2')]=_0x5c8105,_0x1ef287[_0x5c8105][_0x267b('0xe5')]=null;}_0x1ef287[_0x5c8105][_0x267b('0x3f')]||(_0x1ef287[_0x5c8105][_0x267b('0x3f')]=[],_0x1ef287[_0x5c8105][_0x267b('0xd1')]=[]);}}[_0x267b('0x98')](_0x495011,_0x44e9dc){const _0x1b8b78=_0x495011[_0x267b('0x33')](_0x52d4c2=>!_0x52d4c2[_0x267b('0x3c')]);for(let _0x18d8a4=0x0;_0x18d8a4<_0x44e9dc[_0x267b('0x5c')];_0x18d8a4++)_0x44e9dc[_0x18d8a4][_0x267b('0x3c')]&&(_0x1b8b78[_0x18d8a4][_0x267b('0x3c')]=_0x44e9dc[_0x18d8a4][_0x267b('0x3c')]);}[_0x267b('0x9d')](_0x3b60cd){const _0x198a43=JSON[_0x267b('0xb5')](_0x3b60cd),_0x4f556b=this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0xb7')],_0x14819f=new _0x117499(_0x4f556b,_0x198a43[_0x267b('0x1d')](_0x42f01a=>this['_getViewObj'](_0x42f01a)));return this[_0x267b('0xb2')][_0x267b('0x2a')][_0x267b('0x70')](_0x14819f);}[_0x267b('0x8d')](_0x5c7ff5){const _0x4b56f4=this[_0x267b('0xb2')][_0x267b('0x111')]['view'][_0x267b('0xb7')];if(_0x267b('0xea')==typeof _0x5c7ff5)return new _0x2aa88c(_0x4b56f4,_0x5c7ff5);{const _0x1125fa=_0x5c7ff5[_0x267b('0xbe')][_0x267b('0x1d')](_0x1fb9d2=>this[_0x267b('0x8d')](_0x1fb9d2));return new(tt[_0x5c7ff5[(_0x267b('0x72'))]]||_0x20aae1)(_0x4b56f4,_0x5c7ff5['name'],_0x5c7ff5[_0x267b('0xdb')],_0x1125fa);}}['_getDiff'](_0x43b347,_0x318141=null){const _0x1bdb35=this[_0x267b('0x6c')][_0x267b('0x6b')](_0x43b347),_0x2be058=_0x318141?this[_0x267b('0x6c')][_0x267b('0x6b')](_0x318141):null,_0x464baf=this['_getRevisionsRange'](_0x1bdb35,_0x2be058),_0x2c58a6=_0x464baf[_0x464baf['length']-0x1],_0x5dad88=new Map(),_0x248536={'model':{},'attributes':{},'changes':[]},_0x5e99c7=new Set(),_0x37f150=new Map();for(let _0x2d51be=_0x464baf['length']-0x1;_0x2d51be>=0x0;_0x2d51be--){const _0x13a257=_0x464baf[_0x2d51be];for(const _0x1a3734 of Object['keys'](_0x13a257['diffData']))if(_0x13a257[_0x267b('0xf6')][_0x1a3734][_0x267b('0x1e')]){const _0x1fcff2=_0x13a257[_0x267b('0xf6')][_0x1a3734][_0x267b('0x1e')];_0x1fcff2[_0x267b('0x103')]?(_0x5e99c7[_0x267b('0xd9')](_0x1a3734),_0x37f150[_0x267b('0xcb')](_0x1a3734)&&_0x37f150[_0x267b('0xb6')](_0x1a3734)[_0x267b('0x54')]==_0x1fcff2['userId']?_0x37f150[_0x267b('0x7c')](_0x1a3734):_0x37f150[_0x267b('0x5')](_0x1a3734,_0x1fcff2)):_0x37f150[_0x267b('0xcb')](_0x1a3734)?(_0x5e99c7[_0x267b('0x7c')](_0x1a3734),_0x37f150[_0x267b('0x7c')](_0x1a3734)):(_0x5e99c7[_0x267b('0xd9')](_0x1a3734),_0x37f150[_0x267b('0x5')](_0x1a3734,_0x1fcff2));}else _0x5e99c7[_0x267b('0xd9')](_0x1a3734);}for(const _0x3905bc of _0x5e99c7){const _0x3992c3=_0x37f150[_0x267b('0xcb')](_0x3905bc)&&!_0x37f150[_0x267b('0xb6')](_0x3905bc)[_0x267b('0x103')];let _0x18bd69=_0x3992c3?_0x464baf[_0x267b('0x5c')]-0x1:0x0;const _0x213908=_0x3992c3?-0x1:0x1;for(;_0x464baf[_0x18bd69];){const _0x32c4dc=_0x464baf[_0x18bd69];if(_0x32c4dc[_0x267b('0xf6')][_0x3905bc]){const _0x2c1f8c=_0x3992c3?_0x32c4dc[_0x267b('0xf6')][_0x3905bc]['attributesBefore']:_0x32c4dc[_0x267b('0xf6')][_0x3905bc]['attributesAfter'];_0x248536[_0x267b('0xdb')][_0x3905bc]=_0x2c1f8c?_0x110515(_0x2c1f8c):{};break;}_0x18bd69+=_0x213908;}}for(const _0x5a26c7 of _0x464baf){_0x5a26c7[_0x267b('0x104')]={};for(const _0x3e6d18 of _0x5a26c7[_0x267b('0xff')])_0x5dad88['set'](_0x3e6d18['id'],_0x3e6d18);for(const _0x468792 of _0x5e99c7){const _0x4595d4=_0x5a26c7[_0x267b('0xf6')][_0x468792]?_0x5a26c7[_0x267b('0xf6')][_0x468792]['insertions']:'[]',_0x14906f=_0x5a26c7[_0x267b('0xf6')][_0x468792]?_0x5a26c7[_0x267b('0xf6')][_0x468792][_0x267b('0x118')]:'[]';_0x5a26c7[_0x267b('0x104')][_0x468792]={'insertions':this['_makeModelFromViewString'](_0x4595d4),'deletions':this['_makeModelFromViewString'](_0x14906f)};}}for(const _0x1ade2b of _0x5e99c7){let _0x428b2e=null,_0x4bf4e9=0x0;const _0x33f59f=new Map(Array[_0x267b('0x85')](_0x1bdb35[_0x267b('0x104')][_0x1ade2b][_0x267b('0x11a')]['markers'])['filter'](([_0x55b8d1])=>!_0x55b8d1[_0x267b('0xb1')]('revision:')));let _0x1ec373=0x0;for(const _0x11d3dc of _0x464baf){const _0xc17588=this[_0x267b('0x87')](_0x11d3dc[_0x267b('0x104')][_0x1ade2b][_0x267b('0x11a')]);_0x11d3dc==_0x1bdb35?(_0x428b2e=_0xc17588,_0x4bf4e9=_0x428b2e[_0x267b('0x5c')],_0x428b2e[_0x267b('0x57')](_0x504646=>{_0x504646['id']=_0x1ec373++;}),this['_processTape'](_0x428b2e)):this['_markInsertions'](_0x428b2e,_0xc17588);const _0x442db3=_0x428b2e[_0x267b('0x33')](_0x9bcbe4=>!_0x9bcbe4[_0x267b('0x3c')])[_0x267b('0x1d')](_0x593ed8=>_0x593ed8['id']);let _0x4d9eb4=0x0;const _0x37c8aa=this[_0x267b('0x87')](_0x11d3dc['model'][_0x1ade2b][_0x267b('0x118')]);_0x37c8aa[_0x267b('0x57')](_0x113d71=>{_0x113d71[_0x267b('0x29')]?_0x113d71['id']=_0x4bf4e9++:_0x113d71['id']=_0x442db3[_0x4d9eb4++];}),this['_processTape'](_0x37c8aa),this[_0x267b('0xc4')](_0x428b2e,'isAdded'),this[_0x267b('0xc4')](_0x37c8aa,'isRemoved'),_0x11d3dc==_0x1bdb35&&this[_0x267b('0x119')](_0x428b2e,_0x33f59f),_0x428b2e=this[_0x267b('0xad')](_0x428b2e,_0x37c8aa),this[_0x267b('0x24')](_0x428b2e),this['_setDistance'](_0x428b2e,_0x267b('0x29'));}_0x428b2e=_0x428b2e[_0x267b('0x33')](_0x5d69a7=>!(_0x5d69a7[_0x267b('0x3c')]&&_0x5d69a7[_0x267b('0x29')]));const _0x487cc2=new Map(_0x2c58a6[_0x267b('0x104')][_0x1ade2b][_0x267b('0x118')]['markers']),_0x3f4893=new Set(_0x33f59f['keys']());for(const _0x45d6c7 of _0x487cc2['keys']())_0x3f4893[_0x267b('0x7c')](_0x45d6c7);this[_0x267b('0x20')](_0x428b2e,_0x3f4893),this[_0x267b('0x2')](_0x428b2e),_0x428b2e=this[_0x267b('0xeb')](_0x428b2e),_0x428b2e=this[_0x267b('0x23')](_0x428b2e),_0x428b2e=this[_0x267b('0xbd')](_0x428b2e);const {root:_0x10f98a,changes:_0x2340ec}=this[_0x267b('0x34')](_0x428b2e,_0x5dad88,_0x1ade2b);_0x248536[_0x267b('0x104')][_0x1ade2b]=_0x10f98a;const _0x837dbd=_0x37f150[_0x267b('0xb6')](_0x1ade2b);if(_0x837dbd){const _0x51ada7=_0x5dad88[_0x267b('0xb6')](_0x837dbd[_0x267b('0x54')]),_0x17316e=new _0x49afc5({'author':_0x51ada7,'type':_0x837dbd['isAttached']?_0x267b('0xd9'):_0x267b('0xb8'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1ade2b});_0x2340ec['unshift'](_0x17316e),_0x248536[_0x267b('0xdb')][_0x1ade2b][_0x267b('0xe0')]=_0x17316e['id'];}_0x248536[_0x267b('0xbc')]=_0x248536['changes'][_0x267b('0xc0')](_0x2340ec);}return _0x248536;}[_0x267b('0x119')](_0x10a48d,_0x265dc2){for(let _0x9808f=0x0;_0x9808f<_0x10a48d[_0x267b('0x5c')];_0x9808f++)for(const [_0x42783c,_0x58f537]of _0x265dc2)_0x58f537[_0x267b('0x93')][_0x267b('0x39')](_0x10a48d[_0x9808f][_0x267b('0xa8')])&&_0x10a48d[_0x9808f][_0x267b('0x3f')][_0x267b('0xfd')](_0x42783c),_0x58f537[_0x267b('0xd8')][_0x267b('0x39')](_0x10a48d[_0x9808f][_0x267b('0x6')])&&_0x10a48d[_0x9808f]['markersEnd'][_0x267b('0xfd')](_0x42783c);}[_0x267b('0xad')](_0x148778,_0x135ff3){let _0xf03df7=[],_0x271130=0x0,_0x46feb5=0x0;for(;_0x271130<_0x148778['length']||_0x46feb5<_0x135ff3[_0x267b('0x5c')];){const _0x2efc35=_0x148778[_0x271130]||{},_0x116bbe=_0x135ff3[_0x46feb5]||{};if(_0x2efc35['id']==_0x116bbe['id'])_0x271130++,_0x46feb5++,_0xf03df7[_0x267b('0xfd')](_0x2efc35);else{if(_0x116bbe[_0x267b('0x29')]&&_0x2efc35['isAdded']){const {commonTape:_0x42ba52,iEnd:_0x30a623,jEnd:_0x18b1a5}=this['_threeWayMerge'](_0x148778,_0x271130,_0x135ff3,_0x46feb5);_0xf03df7=_0xf03df7['concat'](_0x42ba52),_0x271130=_0x30a623,_0x46feb5=_0x18b1a5;}else _0x116bbe['isRemoved']?(_0x46feb5++,_0xf03df7[_0x267b('0xfd')](_0x116bbe)):(_0x271130++,_0xf03df7[_0x267b('0xfd')](_0x2efc35));}}return _0xf03df7;}['_markSuggestions'](_0x846d4f,_0xbdd470){const _0x376932=[];for(let _0x30a611=0x0;_0x30a611<_0x846d4f[_0x267b('0x5c')];_0x30a611++){for(let _0x77b9d1=0x0;_0x77b9d1<_0x846d4f[_0x30a611][_0x267b('0x3f')][_0x267b('0x5c')];_0x77b9d1++){const _0x5e602d=_0x846d4f[_0x30a611][_0x267b('0x3f')][_0x77b9d1];if(!_0xbdd470[_0x267b('0xcb')](_0x5e602d))continue;const {group:_0x1ac207,type:_0x22b82e,authorId:_0x1ae529}=_0x4341d4(_0x5e602d);'revision-suggestion'!=_0x1ac207||_0x267b('0xe1')!=_0x22b82e&&_0x267b('0xd4')!=_0x22b82e||(_0x376932[_0x267b('0xda')]({'type':_0x22b82e,'name':_0x5e602d,'userId':_0x1ae529}),_0x846d4f[_0x30a611][_0x267b('0x3f')][_0x267b('0x4e')](_0x77b9d1,0x1),_0x77b9d1--);}_0x2d2840(_0x846d4f[_0x30a611]);for(let _0x1e4972=0x0;_0x1e4972<_0x846d4f[_0x30a611][_0x267b('0xd1')][_0x267b('0x5c')];_0x1e4972++){const _0x425c01=_0x846d4f[_0x30a611][_0x267b('0xd1')][_0x1e4972];if(!_0xbdd470[_0x267b('0xcb')](_0x425c01))continue;const {group:_0x210a48,type:_0x3c5eee}=_0x4341d4(_0x425c01);if(_0x267b('0x40')!=_0x210a48||'insertion'!=_0x3c5eee&&_0x267b('0xd4')!=_0x3c5eee)continue;_0x846d4f[_0x30a611]['markersEnd']['splice'](_0x1e4972,0x1),_0x1e4972--;const _0x22c5c9=_0x376932[_0x267b('0x2c')](_0x2aefe5=>_0x2aefe5[_0x267b('0x82')]==_0x425c01);_0x22c5c9>-0x1&&_0x376932[_0x267b('0x4e')](_0x22c5c9,0x1);}}function _0x4341d4(_0x3e5132){const _0x1ab7ff=_0x3e5132[_0x267b('0x84')](':');return{'group':_0x1ab7ff[0x0],'type':_0x1ab7ff[0x1],'subType':_0x1ab7ff[_0x267b('0x5c')]>=0x5?_0x1ab7ff[0x2]:null,'id':_0x1ab7ff['length']<0x5?_0x1ab7ff[0x2]:_0x1ab7ff[0x3],'authorId':_0x1ab7ff[_0x267b('0x5c')]<0x5?_0x1ab7ff[0x3]:_0x1ab7ff[0x4],'markerCount':0x6==_0x1ab7ff[_0x267b('0x5c')]?_0x1ab7ff[0x5]:null};}function _0x2d2840(_0x456537){for(let _0xd93781=0x0;_0xd93781<_0x376932[_0x267b('0x5c')];_0xd93781++){if(_0x456537[_0x267b('0x3c')]&&_0x267b('0xe1')==_0x376932[_0xd93781][_0x267b('0x72')])return _0x456537[_0x267b('0x7e')]=_0x376932[_0xd93781],void delete _0x456537[_0x267b('0x3c')];if(!_0x456537['isAdded']&&!_0x456537['isRemoved']&&'deletion'==_0x376932[_0xd93781][_0x267b('0x72')])return void(_0x456537[_0x267b('0x10c')]=_0x376932[_0xd93781]);}}}['_setDistance'](_0x25f694,_0x4159b3){let _0xf914d1=0x0,_0x1eb19a=!0x1;const _0x3c06c9=new Map();for(const _0x2a6353 of _0x25f694)_0x2a6353[_0x4159b3]?_0x1eb19a&&(_0xf914d1++,_0x1eb19a=!0x1):(_0xf914d1++,_0x1eb19a=!0x0),_0x3c06c9[_0x267b('0x5')](_0x2a6353['id'],_0xf914d1);for(let _0x261d42=0x0;_0x261d42<_0x25f694['length'];_0x261d42++){if(_0x267b('0x29')==_0x4159b3&&_0x25f694[_0x261d42][_0x267b('0x3c')]||_0x267b('0x3c')==_0x4159b3&&_0x25f694[_0x261d42][_0x267b('0x29')])continue;if('text'==_0x25f694[_0x261d42][_0x267b('0x72')]){_0x25f694[_0x261d42][_0x267b('0xe2')]=0x0;continue;}const _0x2ad405=_0x3c06c9[_0x267b('0xb6')](_0x25f694[_0x261d42]['pairId']),_0x165e03=_0x3c06c9[_0x267b('0xb6')](_0x25f694[_0x261d42]['id']);_0x25f694[_0x261d42]['distance']=_0x2ad405-_0x165e03;}}['_getRevisionsRange'](_0xc7c711,_0x3a8562,_0x2728d0=!0x1){const _0x3ce8b8=[];let _0x142b5f=this[_0x267b('0x6c')]['getIndex'](_0xc7c711),_0x2ec5f1=this[_0x267b('0x6c')][_0x267b('0xa')](_0x3a8562);for(-0x1==_0x2ec5f1&&(_0x2ec5f1=this[_0x267b('0x6c')][_0x267b('0xdd')][_0x267b('0x5c')],_0x2728d0=!0x1);_0x142b5f<_0x2ec5f1;)_0x3ce8b8[_0x267b('0xfd')](this['repository'][_0x267b('0x6b')](_0x142b5f)),_0x142b5f++;return _0x2728d0&&_0x3ce8b8[_0x267b('0xfd')](this['repository'][_0x267b('0x6b')](_0x142b5f)),_0x3ce8b8;}[_0x267b('0x8a')](_0x3e2caf,_0x1bbc1a,_0xf507c1,_0x193caa){const _0x5a0c47=this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x9c')];let _0x2821e6=_0x1bbc1a;for(;_0x3e2caf[_0x2821e6]&&_0x3e2caf[_0x2821e6][_0x267b('0x3c')];)_0x2821e6++;let _0x110690=_0x193caa;for(;_0xf507c1[_0x110690]&&_0xf507c1[_0x110690][_0x267b('0x29')];)_0x110690++;_0x399166(_0x3e2caf,_0x1bbc1a,_0x2821e6),_0x399166(_0xf507c1,_0x193caa,_0x110690);const _0x299003=_0xf507c1['slice'](_0x193caa,_0x110690)['concat'](_0x3e2caf['slice'](_0x1bbc1a,_0x2821e6));return _0x299003[_0x267b('0x1c')]((_0x293bd2,_0x128311)=>_0x293bd2['side']!=_0x128311[_0x267b('0x109')]?_0x293bd2[_0x267b('0x109')]-_0x128311['side']:_0x293bd2[_0x267b('0xe8')]!=_0x128311[_0x267b('0xe8')]?_0x293bd2[_0x267b('0xe8')]-_0x128311[_0x267b('0xe8')]:_0x293bd2[_0x267b('0xe2')]!=_0x128311['distance']?_0x128311['distance']-_0x293bd2[_0x267b('0xe2')]:!!_0x293bd2[_0x267b('0x3c')]!=!!_0x128311[_0x267b('0x3c')]?-0x1==_0x293bd2['side']||0x0==_0x293bd2['side']?_0x293bd2[_0x267b('0x3c')]?-0x1:0x1:_0x293bd2[_0x267b('0x3c')]?0x1:-0x1:_0x293bd2['index']-_0x128311[_0x267b('0x3a')]),{'commonTape':_0x299003,'iEnd':_0x2821e6,'jEnd':_0x110690};function _0x399166(_0x57bfdb,_0x53a38b,_0x4d66a8){let _0x4a1c67=-0x1,_0x2593fd=Number[_0x267b('0x10a')],_0x59d826=!0x0;for(let _0x36cb3d=_0x53a38b;_0x36cb3d<_0x4d66a8;_0x36cb3d++)if(_0x5a0c47['isInline'](_0x57bfdb[_0x36cb3d][_0x267b('0x52')])||(_0x59d826=!0x1),_0x57bfdb[_0x36cb3d]['item'][_0x267b('0x94')]<_0x53a38b&&(_0x4a1c67=_0x36cb3d),_0x57bfdb[_0x36cb3d][_0x267b('0x52')][_0x267b('0xc2')]>=_0x4d66a8){_0x2593fd=_0x36cb3d;break;}_0x59d826&&(_0x4a1c67=_0x4d66a8-0x1);for(let _0x25ed1f=_0x53a38b;_0x25ed1f<_0x4d66a8;_0x25ed1f++)_0x57bfdb[_0x25ed1f][_0x267b('0x109')]=_0x25ed1f<=_0x4a1c67?-0x1:_0x25ed1f<_0x2593fd?0x0:0x1,_0x57bfdb[_0x25ed1f][_0x267b('0x3a')]=_0x25ed1f;let _0x1ed429=0x0;for(let _0x3dbd25=_0x53a38b;_0x3dbd25<=_0x4a1c67;_0x3dbd25++)0x0==_0x57bfdb[_0x3dbd25][_0x267b('0xe2')]?_0x57bfdb[_0x3dbd25][_0x267b('0xe8')]=_0x1ed429:(_0x1ed429++,_0x57bfdb[_0x3dbd25][_0x267b('0xe8')]=_0x1ed429,_0x1ed429++);for(let _0x3e4ea9=_0x53a38b;_0x3e4ea9<_0x4d66a8;_0x3e4ea9++)0x0==_0x57bfdb[_0x3e4ea9][_0x267b('0x109')]&&(_0x57bfdb[_0x3e4ea9][_0x267b('0xe8')]=_0x1ed429);_0x1ed429=0x0;for(let _0x363c75=_0x4d66a8-0x1;_0x363c75>=_0x2593fd;_0x363c75--)0x0==_0x57bfdb[_0x363c75][_0x267b('0xe2')]?_0x57bfdb[_0x363c75][_0x267b('0xe8')]=_0x1ed429:(_0x1ed429--,_0x57bfdb[_0x363c75][_0x267b('0xe8')]=_0x1ed429,_0x1ed429--);}}[_0x267b('0x2')](_0x5e7606){const _0x5b9697=new Map(),_0x2ee3e9=this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x9c')];for(let _0x5a620b=0x1;_0x5a620b<_0x5e7606[_0x267b('0x5c')];_0x5a620b++){let _0x1c6d93,_0x36a8bf,_0x5efcae;const _0x5efc33=_0x5e7606[_0x5a620b],_0x32c1b8=_0x5e7606[_0x5a620b-0x1];if('text'==_0x5efc33[_0x267b('0x72')])continue;if(_0x5efc33[_0x267b('0x72')]!=_0x32c1b8[_0x267b('0x72')])continue;if(!_0x2ee3e9[_0x267b('0x71')](_0x32c1b8[_0x267b('0x52')])||_0x2ee3e9[_0x267b('0x12')](_0x32c1b8[_0x267b('0x52')]))continue;if(!_0x2ee3e9['isBlock'](_0x5efc33['item'])||_0x2ee3e9[_0x267b('0x12')](_0x5efc33['item']))continue;if((_0x5e7606[_0x5a620b][_0x267b('0x3c')]||_0x5e7606[_0x5a620b]['isAddSuggestion'])&&_0x5e7606[_0x5a620b-0x1]['isRemoved'])_0x1c6d93=_0x5e7606[_0x5a620b],_0x36a8bf=_0x5e7606[_0x5a620b-0x1],_0x5efcae=_0x5a620b-0x1;else{if(!_0x5e7606[_0x5a620b][_0x267b('0x29')]||!_0x5e7606[_0x5a620b-0x1][_0x267b('0x3c')]&&!_0x5e7606[_0x5a620b-0x1]['isAddSuggestion'])continue;_0x1c6d93=_0x5e7606[_0x5a620b-0x1],_0x36a8bf=_0x5e7606[_0x5a620b],_0x5efcae=_0x5a620b;}const _0xf58d91=_0x1c6d93[_0x267b('0xe8')]==_0x36a8bf['level'],_0x3c924a=Math['abs'](_0x1c6d93['level'])<Math[_0x267b('0x32')](_0x36a8bf[_0x267b('0xe8')])&&0x0==_0x36a8bf[_0x267b('0xe2')];(_0xf58d91||_0x3c924a)&&(_0x5b9697[_0x267b('0x5')](_0x36a8bf['id'],_0x1c6d93['id']),_0x5e7606[_0x267b('0x4e')](_0x5efcae,0x1),_0x5a620b--,_0x1c6d93[_0x267b('0x3c')]=!0x1);}for(let _0xc03e06=0x0;_0xc03e06<_0x5e7606[_0x267b('0x5c')];_0xc03e06++)_0x5b9697['has'](_0x5e7606[_0xc03e06]['pairId'])&&(_0x5e7606[_0xc03e06][_0x267b('0xe5')]=_0x5b9697[_0x267b('0xb6')](_0x5e7606[_0xc03e06][_0x267b('0xe5')]));}[_0x267b('0xeb')](_0x136850){const _0x5c8989=new Set(_0x136850[_0x267b('0x1d')](_0x402849=>_0x402849['id']));for(let _0x4955cb=0x0;_0x4955cb<_0x136850[_0x267b('0x5c')];_0x4955cb++)_0x5c8989[_0x267b('0xcb')](_0x136850[_0x4955cb][_0x267b('0xe5')])||0x0==_0x136850[_0x4955cb][_0x267b('0xe2')]||(_0x136850[_0x4955cb][_0x267b('0x7b')]=!0x0);return _0x136850[_0x267b('0x33')](_0x285420=>!_0x285420[_0x267b('0x7b')]);}[_0x267b('0x23')](_0x57657d){const _0x506ffb=new Set();for(let _0x1e9baf=0x0;_0x1e9baf<_0x57657d[_0x267b('0x5c')];_0x1e9baf++){if(_0x506ffb['has'](_0x57657d[_0x1e9baf]['id'])&&_0x57657d[_0x1e9baf][_0x267b('0x29')]&&(_0x57657d[_0x1e9baf][_0x267b('0x7b')]=!0x0),_0x57657d[_0x1e9baf]['isIncorrect'])continue;if(0x0==_0x57657d[_0x1e9baf]['distance'])continue;if('elementStart'!=_0x57657d[_0x1e9baf][_0x267b('0x72')])continue;if(null==_0x57657d[_0x1e9baf][_0x267b('0xe5')])continue;let _0x56ff67=_0x1e9baf+0x1,_0x280415=0x0;for(;_0x57657d[_0x56ff67]['id']!=_0x57657d[_0x1e9baf][_0x267b('0xe5')];)_0x267b('0x7a')==_0x57657d[_0x56ff67][_0x267b('0x72')]?_0x280415++:_0x267b('0xa7')==_0x57657d[_0x56ff67][_0x267b('0x72')]&&_0x280415--,_0x56ff67++;if(0x0!=_0x280415){if(_0x57657d[_0x1e9baf][_0x267b('0x29')])_0x57657d[_0x1e9baf][_0x267b('0x7b')]=!0x0;else for(;_0x56ff67!=_0x1e9baf;)_0x57657d[_0x56ff67][_0x267b('0x29')]&&0x0!=_0x57657d[_0x56ff67][_0x267b('0xe2')]&&(_0x57657d[_0x56ff67]['isIncorrect']=!0x0,_0x506ffb[_0x267b('0xd9')](_0x57657d[_0x56ff67]['pairId'])),_0x56ff67--;}}return _0x57657d[_0x267b('0x33')](_0x2f7e18=>!_0x2f7e18[_0x267b('0x7b')]);}[_0x267b('0xbd')](_0x57e7f4){const _0x58c91c=this[_0x267b('0xb2')][_0x267b('0x104')]['schema'];for(let _0x1d53fb=0x0;_0x1d53fb<_0x57e7f4[_0x267b('0x5c')];_0x1d53fb++){if(!(_0x57e7f4[_0x1d53fb][_0x267b('0x3c')]||_0x57e7f4[_0x1d53fb][_0x267b('0x7e')]||_0x57e7f4[_0x1d53fb][_0x267b('0x29')]||_0x57e7f4[_0x1d53fb][_0x267b('0x10c')]))continue;if(0x0==_0x57e7f4[_0x1d53fb][_0x267b('0xe2')])continue;const _0x15a7c9=_0x57e7f4[_0x1d53fb][_0x267b('0x52')];_0x58c91c[_0x267b('0x71')](_0x15a7c9)||_0x58c91c[_0x267b('0x12')](_0x15a7c9)||(_0x57e7f4[_0x1d53fb][_0x267b('0x3c')]&&delete _0x57e7f4[_0x1d53fb][_0x267b('0x3c')],_0x57e7f4[_0x1d53fb][_0x267b('0x7e')]&&delete _0x57e7f4[_0x1d53fb][_0x267b('0x7e')],_0x57e7f4[_0x1d53fb][_0x267b('0x10c')]&&delete _0x57e7f4[_0x1d53fb]['isRemoveSuggestion'],_0x57e7f4[_0x1d53fb][_0x267b('0x29')]&&(_0x57e7f4[_0x1d53fb][_0x267b('0x7b')]=!0x0));}return _0x57e7f4[_0x267b('0x33')](_0x71ab06=>!_0x71ab06['isIncorrect']);}['_makeModelFromTape'](_0x245035,_0x1e66fd,_0x2f5be9){const _0x50f834=new _0x1c11b1(),_0x332618=[],_0x27bf99=new Map(),_0x177ff5=this[_0x267b('0xb2')][_0x267b('0x104')],_0x5e4a77=_0x177ff5[_0x267b('0x9c')],_0x2b5740=[_0x50f834],_0x212c6f={},_0x2263f3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x288fe3=null;const _0xe9267a=[0x0];for(let _0xe8f702=0x0;_0xe8f702<_0x245035[_0x267b('0x5c')];_0xe8f702++){let _0x749f9a,_0x3a9dc2;if(_0x267b('0x7a')===_0x245035[_0xe8f702][_0x267b('0x72')]){_0x749f9a=_0x177ff5['createPositionFromPath'](_0x50f834,_0xe9267a);const _0x52be82=new _0xed8376(_0x245035[_0xe8f702]['item']['name'],_0x245035[_0xe8f702][_0x267b('0x52')]['getAttributes']());_0x2b5740[0x0][_0x267b('0x101')](_0x52be82),_0xe9267a[_0x267b('0xfd')](0x0),_0x2b5740['unshift'](_0x52be82),_0x3a9dc2=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0x288fe3=null;}else{if(_0x267b('0xa7')===_0x245035[_0xe8f702][_0x267b('0x72')])_0x2b5740[_0x267b('0xf7')](),_0x749f9a=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0xe9267a[_0x267b('0xbb')](),_0xe9267a[_0xe9267a[_0x267b('0x5c')]-0x1]++,_0x3a9dc2=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0x288fe3=null;else{if(_0x749f9a=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0x288fe3&&_0x275c2f(_0x288fe3,_0x245035[_0xe8f702][_0x267b('0x52')]))_0x288fe3[_0x267b('0x21')]+=_0x245035[_0xe8f702]['item'][_0x267b('0x2a')];else{const _0x442be7=new _0x3ac18b(_0x245035[_0xe8f702]['item'][_0x267b('0x2a')],_0x245035[_0xe8f702]['item'][_0x267b('0x116')]());_0x2b5740[0x0]['_appendChild'](_0x442be7),_0x288fe3=_0x442be7;}_0xe9267a[_0xe9267a[_0x267b('0x5c')]-0x1]+=_0x245035[_0xe8f702][_0x267b('0x52')]['offsetSize'],_0x3a9dc2=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a);}}for(const _0x15c3a2 of _0x245035[_0xe8f702][_0x267b('0x3f')])_0x27bf99[_0x267b('0x5')](_0x15c3a2,{'start':_0x749f9a,'end':null});_0x4de93f(_0x267b('0x10c'),_0xe8f702,_0x749f9a,_0x3a9dc2),_0x4de93f(_0x267b('0x7e'),_0xe8f702,_0x749f9a,_0x3a9dc2),_0x4de93f(_0x267b('0x29'),_0xe8f702,_0x749f9a,_0x3a9dc2),_0x4de93f('isAdded',_0xe8f702,_0x749f9a,_0x3a9dc2);for(const _0x40f6e7 of _0x245035[_0xe8f702]['markersEnd']){_0x27bf99[_0x267b('0xb6')](_0x40f6e7)[_0x267b('0xd8')]=_0x3a9dc2;}}for(const [_0x34bd87,_0x327f0b]of _0x27bf99){const _0x38eba8=this['editor'][_0x267b('0x104')]['createRange'](_0x327f0b['start'],_0x327f0b[_0x267b('0xd8')]);_0x50f834[_0x267b('0x4d')]['set'](_0x34bd87,_0x38eba8);}return _0x332618['sort']((_0x4525ed,_0x6bdc0c)=>{const _0x1abb31=_0x50f834[_0x267b('0x4d')][_0x267b('0xb6')](_0x267b('0x45')+_0x4525ed['id']),_0x22a762=_0x50f834[_0x267b('0x4d')][_0x267b('0xb6')](_0x267b('0x45')+_0x6bdc0c['id']);return _0x1abb31[_0x267b('0x93')][_0x267b('0x88')](_0x22a762['start'])?-0x1:_0x1abb31[_0x267b('0x93')][_0x267b('0x4f')](_0x22a762[_0x267b('0x93')])?0x1:_0x1abb31['end'][_0x267b('0x88')](_0x22a762[_0x267b('0xd8')])?-0x1:_0x1abb31[_0x267b('0xd8')][_0x267b('0x4f')](_0x22a762[_0x267b('0xd8')])?0x1:_0x267b('0xd9')===_0x4525ed[_0x267b('0x72')]?-0x1:0x1;}),{'root':_0x50f834,'changes':_0x332618};function _0x4de93f(_0x297250,_0x51b97f,_0x3aa446,_0x5f4a70){const _0x38350c=!!_0x245035[_0x51b97f][_0x297250],_0x23ccdd=_0x38350c?_0x245035[_0x51b97f][_0x297250][_0x267b('0x54')]:null,_0x4f471b=_0x51b97f===_0x245035[_0x267b('0x5c')]-0x1,_0xa52273=_0x2263f3[_0x297250][0x0],_0x2d236a=_0x5e4a77[_0x267b('0xf1')](_0x245035[_0x51b97f][_0x267b('0x52')]);!_0x212c6f[_0x297250]&&_0x38350c?_0x212c6f[_0x297250]={'start':_0x3aa446,'tapeItem':_0x245035[_0x51b97f],'userId':_0x23ccdd,'type':_0x297250}:_0x212c6f[_0x297250]&&!_0x38350c?(_0x212c6f[_0x297250]['end']=_0x3aa446,_0x4bf337(_0x212c6f[_0x297250]),_0x212c6f[_0x297250]=null):_0x212c6f[_0x297250]&&_0x38350c&&_0x212c6f[_0x297250][_0x267b('0x54')]!==_0x23ccdd&&(_0x212c6f[_0x297250][_0x267b('0xd8')]=_0x3aa446,_0xa52273&&_0xa52273[_0x267b('0x54')]===_0x212c6f[_0x297250]['userId']||_0x4bf337(_0x212c6f[_0x297250]),_0x212c6f[_0x297250]={'start':_0x3aa446,'tapeItem':_0x245035[_0x51b97f],'userId':_0x23ccdd,'type':_0x297250}),_0x212c6f[_0x297250]&&_0x2d236a&&(_0x267b('0x7a')!==_0x245035[_0x51b97f][_0x267b('0x72')]||_0xa52273&&_0xa52273[_0x267b('0x54')]===_0x23ccdd||_0x2263f3[_0x297250]['unshift']({'userId':_0x23ccdd,'object':_0x245035[_0x51b97f][_0x267b('0x52')],'change':_0x212c6f[_0x297250]}),_0x267b('0xa7')===_0x245035[_0x51b97f]['type']&&_0xa52273&&_0xa52273[_0x267b('0xce')]===_0x245035[_0x51b97f][_0x267b('0x52')]&&(_0x2263f3[_0x297250][_0x267b('0xf7')](),_0x212c6f[_0x297250]=_0xa52273[_0x267b('0x56')])),_0x212c6f[_0x297250]&&_0x4f471b&&(_0x212c6f[_0x297250]['end']=_0x5f4a70,_0x4bf337(_0x212c6f[_0x297250]),_0x212c6f[_0x297250]=null);}function _0x4bf337({start:_0x23c5fd,end:_0x5a5f98,tapeItem:_0x50058e,userId:_0x2d13e7,type:_0x394444}){const _0x5ab171=_0x50058e[_0x267b('0x52')],_0x1a5f33=_0x177ff5['schema'][_0x267b('0x71')](_0x5ab171)&&!_0x177ff5['schema'][_0x267b('0x12')](_0x5ab171),_0x51b850=_0x23c5fd[_0x267b('0x37')]==_0x5a5f98[_0x267b('0x7d')]&&_0x5a5f98[_0x267b('0x9b')];if(_0x1a5f33&&_0x51b850)return;const _0x28ade5=_0x177ff5[_0x267b('0x19')](_0x23c5fd,_0x5a5f98),_0x4cd8ca=_0x1e66fd['get'](_0x2d13e7),_0x5a827f=new _0x49afc5({'author':_0x4cd8ca,'type':_0x267b('0x3c')==_0x394444||_0x267b('0x7e')==_0x394444?_0x267b('0xd9'):'remove','data':{'isSuggestion':'isAddSuggestion'==_0x394444||_0x267b('0x10c')==_0x394444},'createdAt':new Date(),'rootName':_0x2f5be9});_0x332618[_0x267b('0xfd')](_0x5a827f),_0x50f834[_0x267b('0x4d')][_0x267b('0x5')]('revision:'+_0x5a827f['id'],_0x28ade5);}function _0x275c2f(_0x155220,_0x100963){const _0x485860=_0x155220[_0x267b('0x116')](),_0x470362=_0x100963[_0x267b('0x116')]();for(const _0x53ba1e of _0x485860){if(_0x53ba1e[0x1]!==_0x100963[_0x267b('0x47')](_0x53ba1e[0x0]))return!0x1;_0x470362[_0x267b('0x51')]();}return _0x470362[_0x267b('0x51')]()[_0x267b('0x11d')];}}['_setConversion'](){this[_0x267b('0xb2')][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xc8')]({'view':'revision'}),this[_0x267b('0xb2')]['conversion'][_0x267b('0x41')](_0x267b('0x4b'))[_0x267b('0x8c')]({'model':_0x267b('0xab'),'view':_0x45e890=>{const _0x50cfaf=_0x45e890[_0x267b('0xa6')]['split'](':')[0x1],_0x546de4=this[_0x267b('0xb4')](_0x50cfaf);if(!_0x546de4)return null;const _0x37bd07=_0x267b('0xd9')==_0x546de4[_0x267b('0x72')]?_0x267b('0xe1'):'deletion',_0x45a799=['ck-suggestion-marker','ck-suggestion-marker-'+_0x37bd07];return _0x546de4['data'][_0x267b('0x100')]&&_0x45a799[_0x267b('0xfd')](_0x267b('0x117')+_0x37bd07+_0x267b('0x96')),this[_0x267b('0x3d')]==_0x546de4&&_0x45a799['push'](_0x267b('0xfb')),{'classes':_0x45a799,'attributes':{'data-change-id':_0x50cfaf}};}}),this[_0x267b('0xb2')][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xd9')](_0x43d5c9=>{_0x43d5c9['on'](_0x267b('0x7'),(_0x51b061,_0x79ff52,_0xdae4d)=>{const _0x2a7e0d=_0x79ff52[_0x267b('0xe3')][_0x267b('0x102')](0x0);if(!_0x2a7e0d||!_0x2a7e0d['is'](_0x267b('0x0'),_0x267b('0xb3')))return;if(!_0xdae4d[_0x267b('0x18')][_0x267b('0x11b')](_0x2a7e0d,{'attributes':[_0x267b('0xe7'),_0x267b('0x9a')]}))return;const _0x49a7b0=_0x79ff52[_0x267b('0x65')]['start'][_0x267b('0x37')];_0xdae4d[_0x267b('0x60')][_0x267b('0x8e')](_0x267b('0xe7'),_0x2a7e0d[_0x267b('0x47')](_0x267b('0xe7')),_0x49a7b0),_0xdae4d[_0x267b('0x60')][_0x267b('0x8e')](_0x267b('0x9a'),_0x2a7e0d[_0x267b('0x47')](_0x267b('0x9a')),_0x49a7b0);},{'priority':_0x267b('0x95')});}),this['editor']['conversion'][_0x267b('0x41')](_0x267b('0x10e'))['add'](_0x17b3d2=>{_0x17b3d2['on'](_0x267b('0x0'),(_0x240139,_0x2ee3f0,_0x3881eb)=>{if(!_0x3881eb['consumable'][_0x267b('0x11b')](_0x2ee3f0[_0x267b('0xe3')],{'attributes':[_0x267b('0xe7'),_0x267b('0x9a')]}))return;if(_0x2ee3f0[_0x267b('0x65')]['isCollapsed'])return;const _0x1f4fb7=_0x2ee3f0['modelRange'][_0x267b('0x93')]['nodeAfter'];_0x1f4fb7[_0x267b('0xd3')]('vid_start')||_0x1f4fb7['hasAttribute'](_0x267b('0x1a'))||(_0x3881eb[_0x267b('0x60')]['setAttribute'](_0x267b('0xe7'),_0x2ee3f0[_0x267b('0xe3')][_0x267b('0x47')](_0x267b('0xe7')),_0x1f4fb7),_0x3881eb[_0x267b('0x60')][_0x267b('0x8e')](_0x267b('0x9a'),_0x2ee3f0[_0x267b('0xe3')][_0x267b('0x47')](_0x267b('0x9a')),_0x1f4fb7));},{'priority':_0x267b('0x95')});}),this[_0x267b('0xb2')][_0x267b('0x110')]['for'](_0x267b('0x10e'))['elementToAttribute']({'view':{'name':_0x267b('0xa9'),'attributes':{'vid':!0x0}},'model':{'key':_0x267b('0x1a'),'value':_0x3bc778=>_0x3bc778[_0x267b('0x47')](_0x267b('0x1a'))}}),this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x9c')]['on'](_0x267b('0xed'),(_0x60574,[,_0x5df2c7])=>{[_0x267b('0xe7'),_0x267b('0x9a'),'vid'][_0x267b('0xe6')](_0x5df2c7)&&(_0x60574[_0x267b('0x76')]=!0x0,_0x60574[_0x267b('0xe4')]());},{'priority':_0x267b('0x5b')}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x2f'))['add'](_0x281805=>{_0x281805['on']('attribute:vid',(_0x41e14f,_0x47be8c,_0x579beb)=>{if('\x20'!=_0x47be8c[_0x267b('0x52')]['data']||_0x47be8c[_0x267b('0x52')]['parent'][_0x267b('0xa3')]>0x1)return;if(!_0x579beb[_0x267b('0x18')][_0x267b('0x11b')](_0x47be8c['item'],_0x41e14f[_0x267b('0x82')]))return;const _0x11d5b1=_0x579beb[_0x267b('0x60')],_0xe51477=_0x579beb[_0x267b('0xfe')]['toViewRange'](_0x47be8c[_0x267b('0x2d')]);_0x11d5b1[_0x267b('0xa2')](_0xe51477,_0x11d5b1['createAttributeElement'](_0x267b('0xa9')));});}),this[_0x267b('0xb2')]['conversion']['for']('dataDowncast')['markerToData']({'model':_0x267b('0xab')}),this[_0x267b('0xb2')][_0x267b('0x111')]['downcastDispatcher']['on'](_0x267b('0xba'),function(_0x2ea05e){const _0x30fc33=_0x2ea05e[_0x267b('0xd')][_0x267b('0xb6')](_0x267b('0x66'));return(_0x45d11a,_0x3339b1,_0x2c6c01)=>{const _0x29c27b=_0x3339b1[_0x267b('0xa6')][_0x267b('0x84')](':')[0x1],_0x260f45=_0x30fc33[_0x267b('0xb4')](_0x29c27b);if(!_0x260f45)return null;const _0x4a7222='add'==_0x260f45['type']?_0x267b('0x84'):_0x267b('0xfa');if(!_0x2c6c01[_0x267b('0x18')][_0x267b('0x26')](_0x3339b1[_0x267b('0x8f')],_0x45d11a[_0x267b('0x82')]))return;const _0x3a20f4=_0x3339b1[_0x267b('0x8f')][_0x267b('0x5f')](),_0x54462f=_0x3339b1[_0x267b('0x8f')][_0x267b('0x93')],_0x395636=_0x2ea05e[_0x267b('0x104')][_0x267b('0x9c')];let _0x16ece4=null,_0x1dea6b=null,_0x5d7f25=!0x1,_0x2a06ae=!0x1;for(const _0x2597d4 of _0x3a20f4){const _0x396896=_0x2597d4['item'];_0x5d7f25=_0x5d7f25||_0x395636[_0x267b('0xcf')](_0x396896);const _0x19b010=_0x2c6c01[_0x267b('0xfe')][_0x267b('0x4c')](_0x396896);if(_0x19b010&&_0x19b010[_0x267b('0xd2')](_0x267b('0x113')))return;_0x267b('0xa7')==_0x2597d4['type']&&(_0x395636[_0x267b('0x71')](_0x396896)&&!_0x395636[_0x267b('0x12')](_0x396896)&&(_0x396896[_0x267b('0x49')]||_0x54462f['isAtEnd']?_0x16ece4&&_0x16ece4['parent']==_0x396896||(_0x16ece4=_0x396896,_0xb15eef(_0x2597d4[_0x267b('0xa8')]),_0x2a06ae=!0x0):_0x1dea6b=_0x1dea6b||_0x2597d4['previousPosition']));}function _0xb15eef(_0x2ba39b){const _0x4083f2=_0x2c6c01['writer'][_0x267b('0x99')](_0x267b('0xa9'),{'class':_0x267b('0x117')+_0x4a7222}),_0x656ddc=_0x2c6c01[_0x267b('0xfe')]['toViewPosition'](_0x2ba39b);_0x260f45['data'][_0x267b('0x100')]&&_0x2c6c01[_0x267b('0x60')][_0x267b('0x10f')](_0x267b('0x117')+_0x4a7222+_0x267b('0x96'),_0x4083f2),_0x30fc33[_0x267b('0x3d')]==_0x260f45&&_0x2c6c01[_0x267b('0x60')][_0x267b('0x10f')](_0x267b('0xfb'),_0x4083f2),_0x2c6c01[_0x267b('0x60')][_0x267b('0x112')](_0x656ddc,_0x4083f2),_0x2c6c01[_0x267b('0xfe')][_0x267b('0x115')](_0x4083f2,_0x3339b1[_0x267b('0xa6')]);}_0x5d7f25||_0x2a06ae||!_0x1dea6b||_0xb15eef(_0x1dea6b);};}(this[_0x267b('0xb2')]),{'priority':_0x267b('0xa1')}),this[_0x267b('0xb2')]['editing'][_0x267b('0x79')]['on'](_0x267b('0x61'),(_0x194272,_0x139d7c,_0x3802a3)=>{const _0x581f7f=_0x3802a3[_0x267b('0xfe')][_0x267b('0x105')](_0x139d7c['markerName']);if(_0x581f7f)for(const _0x3442cf of _0x581f7f)(_0x3442cf[_0x267b('0xc9')](_0x267b('0x11c'))||_0x3442cf['hasClass'](_0x267b('0xca')))&&(_0x3802a3[_0x267b('0xfe')][_0x267b('0x10')](_0x3442cf,_0x139d7c[_0x267b('0xa6')]),_0x3802a3[_0x267b('0x60')]['remove'](_0x3442cf));},{'priority':_0x267b('0xa1')}),this[_0x267b('0xb2')]['editing'][_0x267b('0x79')]['on']('addMarker:revision',(_0x30de42,_0xadeb88,_0x20789f)=>{const _0x5dd084=_0xadeb88[_0x267b('0xa6')][_0x267b('0x84')](':')[0x1],_0xdd0d3a=this[_0x267b('0xb4')](_0x5dd084);if(!_0xdd0d3a)return null;const _0x13ab42='add'==_0xdd0d3a[_0x267b('0x72')]?_0x267b('0x84'):_0x267b('0xfa');if(_0x20789f['consumable'][_0x267b('0x26')](_0xadeb88['markerRange'],_0x30de42[_0x267b('0x82')]))for(const _0x4eeddb of _0xadeb88[_0x267b('0x8f')][_0x267b('0xa4')]()){if(!_0x4eeddb['is'](_0x267b('0x0'),'softBreak'))continue;const _0x5a29f2=_0x20789f[_0x267b('0x60')]['createUIElement'](_0x267b('0xa9'),{'class':_0x267b('0x117')+_0x13ab42}),_0x41afb9=_0x20789f[_0x267b('0xfe')][_0x267b('0x68')](this['editor'][_0x267b('0x104')][_0x267b('0x107')](_0x4eeddb));_0xdd0d3a['data'][_0x267b('0x100')]&&_0x20789f[_0x267b('0x60')][_0x267b('0x10f')](_0x267b('0x117')+_0x13ab42+_0x267b('0x96'),_0x5a29f2),this['activeChange']==_0xdd0d3a&&_0x20789f[_0x267b('0x60')]['addClass'](_0x267b('0xfb'),_0x5a29f2),_0x20789f[_0x267b('0x60')][_0x267b('0x112')](_0x41afb9,_0x5a29f2),_0x20789f['mapper']['bindElementToMarker'](_0x5a29f2,_0xadeb88[_0x267b('0xa6')]);}},{'priority':_0x267b('0xa1')}),this[_0x267b('0xb2')]['model'][_0x267b('0xb7')]['on'](_0x267b('0x56'),()=>{this[_0x267b('0xb2')][_0x267b('0x111')]['view'][_0x267b('0x56')](_0x106f81=>{for(const _0x1570a7 of this[_0x267b('0xb2')]['model']['document'][_0x267b('0x22')]()){const _0x588a5d=this['editor'][_0x267b('0x104')][_0x267b('0xb7')][_0x267b('0x30')](_0x1570a7),_0x507f91=this[_0x267b('0xb2')][_0x267b('0x111')]['view']['document'][_0x267b('0x30')](_0x1570a7);if(_0x507f91){const _0x243bc7=_0x588a5d[_0x267b('0x47')](_0x267b('0xe0'));if(_0x106f81[_0x267b('0xd7')](_0x267b('0x67'),_0x507f91),_0x106f81[_0x267b('0xcc')](_0x267b('0x17'),_0x507f91),_0x106f81['removeClass']('ck-revision-history-root-remove',_0x507f91),_0x106f81[_0x267b('0xcc')](_0x267b('0xec'),_0x507f91),_0x243bc7){const _0xeec455=this[_0x267b('0xb4')](_0x243bc7);if(!_0xeec455)return null;_0x106f81[_0x267b('0x8e')]('data-change-id',_0x243bc7,_0x507f91),_0x106f81['addClass']('ck-revision-history-root-'+_0xeec455[_0x267b('0x72')],_0x507f91),this[_0x267b('0x3d')]==_0xeec455&&_0x106f81[_0x267b('0x10f')]('ck-revision-history-root--active',_0x507f91);}}}});}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xc8')]({'view':_0x267b('0xac'),'model':_0x21f206=>'revision-comment:'+_0x21f206,'converterPriority':_0x267b('0x5b')}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xc8')]({'view':'suggestion','model':_0x14dfca=>_0x267b('0x27')+_0x14dfca,'converterPriority':_0x267b('0x5b')}),this[_0x267b('0xb2')][_0x267b('0x110')]['for'](_0x267b('0x2f'))['markerToData']({'model':_0x267b('0x40'),'view':_0x3edb85=>({'name':_0x267b('0x106')+_0x3edb85,'group':_0x267b('0x40')}),'converterPriority':'highest'}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x4b'))[_0x267b('0x8c')]({'model':_0x267b('0x40'),'view':_0x4cd5bd=>{const _0x5a2e26=_0x4cd5bd[_0x267b('0xa6')][_0x267b('0x84')](':')[0x1];return'insertion'!=_0x5a2e26&&_0x267b('0xd4')!=_0x5a2e26?null:{'classes':[_0x267b('0x43'),_0x267b('0x36')+_0x5a2e26]};}}),this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0x79')]['on'](_0x267b('0x64'),et(this[_0x267b('0xb2')],_0x267b('0xfa')),{'priority':'high'}),this['editor'][_0x267b('0x111')][_0x267b('0x79')]['on'](_0x267b('0xc3'),et(this['editor'],_0x267b('0x84')),{'priority':'high'}),this['editor'][_0x267b('0x111')][_0x267b('0x79')]['on'](_0x267b('0x75'),(_0x4647bd,_0x59b814,_0x43451a)=>{const _0x1ca094=_0x43451a[_0x267b('0xfe')][_0x267b('0x105')](_0x59b814[_0x267b('0xa6')]);if(_0x1ca094)for(const _0x22a6cd of _0x1ca094)_0x22a6cd['is'](_0x267b('0xb0'))&&(_0x43451a[_0x267b('0xfe')][_0x267b('0x10')](_0x22a6cd,_0x59b814['markerName']),_0x43451a[_0x267b('0x60')][_0x267b('0xb8')](_0x22a6cd));},{'priority':_0x267b('0xa1')});}['_getChangeFromId'](_0x377d8e){return this[_0x267b('0x8')][_0x267b('0xb6')](_0x377d8e);}['_getViewForChange'](_0x2b783f){return this[_0x267b('0x14')]&&this[_0x267b('0x14')][_0x267b('0xf5')](),this[_0x267b('0x14')]=new _0x3ad18f(this['editor'][_0x267b('0x63')],_0x2b783f),this['_changeView'];}['_initInteractions'](){this['editor'][_0x267b('0x104')]['document'][_0x267b('0xe9')][_0x267b('0x10d')](_0x267b('0xab')),this['on'](_0x267b('0xae'),(_0xf7ca78,_0xc6eee7,_0x45dbf4,_0x3167c1)=>{_0x3167c1&&this[_0x267b('0x73')]['remove'](_0x3167c1),_0x45dbf4&&(this[_0x267b('0x73')][_0x267b('0xd9')]({'view':_0x45dbf4,'stackId':_0x267b('0x3b'),'position':{'target':()=>{const _0x300f09=this[_0x267b('0xb2')]['editing'],_0x4b1c5e=this[_0x267b('0xb4')](_0x45dbf4['changeId']);let _0x404e53;if(_0x4b1c5e[_0x267b('0x2a')][_0x267b('0x6a')]){const _0x1cb255=_0x300f09['view']['getDomRoot'](_0x4b1c5e['rootName']);_0x404e53=Array[_0x267b('0x85')](_0x1cb255['getClientRects']());}else{const _0x4005ec=this[_0x267b('0xb2')][_0x267b('0x104')]['markers'][_0x267b('0xb6')](_0x267b('0x45')+_0x45dbf4[_0x267b('0xaf')]);_0x404e53=Array[_0x267b('0x85')](_0x300f09[_0x267b('0xfe')][_0x267b('0x105')](_0x4005ec['name']))[_0x267b('0x1d')](_0x4776b8=>_0x300f09[_0x267b('0xc5')]['domConverter']['mapViewToDom'](_0x4776b8))[_0x267b('0x1d')](_0x5f4422=>Array[_0x267b('0x85')](_0x5f4422[_0x267b('0x59')]()))[_0x267b('0xd5')]();}if(!this[_0x267b('0xc7')])return _0x404e53[0x0];return _0x404e53[_0x267b('0xf4')](_0x244534=>_0x244534[_0x267b('0x90')]-0x3<=this[_0x267b('0xc7')]['y']&&_0x244534[_0x267b('0xa5')]+0x3>=this[_0x267b('0xc7')]['y']&&_0x244534[_0x267b('0xf0')]-0x3<=this[_0x267b('0xc7')]['x']&&_0x244534['right']+0x3>=this[_0x267b('0xc7')]['x'])||_0x404e53[0x0];}}}),this[_0x267b('0x73')]['showStack'](_0x267b('0x3b')));}),this['on'](_0x267b('0xf2'),(_0x47b71b,_0xd17505,_0x2e355b,_0x4e459b)=>{this[_0x267b('0xf9')]=_0x2e355b?this[_0x267b('0x9f')](_0x2e355b):null,this['editor']['model'][_0x267b('0x56')](()=>{const _0xe2f12f=this[_0x267b('0xb2')]['editing'];_0x4e459b&&(_0x4e459b[_0x267b('0x2a')][_0x267b('0x6a')]?_0xe2f12f['view'][_0x267b('0x56')](_0x1233da=>{_0x1233da[_0x267b('0xcc')](_0x267b('0xec'),_0xe2f12f['view'][_0x267b('0xb7')][_0x267b('0x30')](_0x4e459b[_0x267b('0x4a')]));}):_0xe2f12f[_0x267b('0x1b')](_0x267b('0x45')+_0x4e459b['id'])),_0x2e355b&&(_0x2e355b[_0x267b('0x2a')][_0x267b('0x6a')]?_0xe2f12f[_0x267b('0xc5')][_0x267b('0x56')](_0x40de83=>{_0x40de83[_0x267b('0x10f')]('ck-revision-history-root--active',_0xe2f12f[_0x267b('0xc5')]['document']['getRoot'](_0x2e355b[_0x267b('0x4a')]));}):_0xe2f12f['reconvertMarker'](_0x267b('0x45')+_0x2e355b['id']));});}),this['listenTo'](this['editor'][_0x267b('0x111')]['view']['document'],_0x267b('0x3'),(_0x56728b,_0x51ded2)=>{if(this['activeChange'])return;const _0x3b4b1c=this['_findChangeIdFromDomTarget'](_0x51ded2[_0x267b('0x1')]),_0x591ffa=this['_changeIdToChange']['get'](_0x3b4b1c);_0x591ffa?(this[_0x267b('0xc7')]={'x':_0x51ded2[_0x267b('0x77')]['x'],'y':_0x51ded2[_0x267b('0x77')]['y']},this[_0x267b('0xf9')]=this[_0x267b('0x9f')](_0x591ffa)):(this[_0x267b('0xc7')]=null,this[_0x267b('0xf9')]=null);}),this['listenTo'](this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0xb7')],_0x267b('0x80'),(_0x3cd88d,_0x1cc1c1)=>{const _0x1008af=this[_0x267b('0xde')](_0x1cc1c1[_0x267b('0x1')]),_0x22456c=this[_0x267b('0x8')][_0x267b('0xb6')](_0x1008af);_0x22456c?(this[_0x267b('0xc7')]={'x':_0x1cc1c1[_0x267b('0x77')]['x'],'y':_0x1cc1c1[_0x267b('0x77')]['y']},_0x22456c===this[_0x267b('0x3d')]?this['_balloon']['updatePosition']():this[_0x267b('0x3d')]=_0x22456c):(this[_0x267b('0xc7')]=null,this[_0x267b('0x3d')]=null);});}['_findChangeIdFromDomTarget'](_0x2b1d78){do{const _0x774f25=_0x2b1d78[_0x267b('0x47')](_0x267b('0x67'));if(_0x774f25)return _0x774f25;_0x2b1d78=_0x2b1d78['parent'];}while(_0x2b1d78);return null;}[_0x267b('0x10b')](){this[_0x267b('0xb2')]['model'][_0x267b('0x56')](_0x4ad19d=>{for(const _0x562498 of this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x4d')])_0x4ad19d[_0x267b('0x13')](_0x562498);});}}function et(_0x5489c7,_0x90f26f){return(_0x422fb6,_0x35d417,_0x4629d1)=>{if(!_0x4629d1[_0x267b('0x18')][_0x267b('0x26')](_0x35d417[_0x267b('0x8f')],_0x422fb6[_0x267b('0x82')]))return;const _0x1569ed=_0x35d417[_0x267b('0x8f')][_0x267b('0x5f')](),_0x5597f8=_0x35d417[_0x267b('0x8f')][_0x267b('0x93')],_0x5e6615=_0x5489c7['model'][_0x267b('0x9c')];let _0x403a8b=null,_0x916a92=null,_0x40819a=!0x1,_0xfa9cfc=!0x1;for(const _0x1aed80 of _0x1569ed){const _0x4c88b2=_0x1aed80[_0x267b('0x52')];_0x40819a=_0x40819a||_0x5e6615['isContent'](_0x4c88b2);const _0xa688c4=_0x4629d1[_0x267b('0xfe')][_0x267b('0x4c')](_0x4c88b2);if(_0xa688c4&&_0xa688c4[_0x267b('0xd2')](_0x267b('0x113')))return;_0x267b('0xa7')==_0x1aed80[_0x267b('0x72')]&&(_0x5e6615[_0x267b('0x71')](_0x4c88b2)&&!_0x5e6615[_0x267b('0x12')](_0x4c88b2)&&(_0x4c88b2[_0x267b('0x49')]||_0x5597f8[_0x267b('0x5d')]?_0x403a8b&&_0x403a8b[_0x267b('0x7d')]==_0x4c88b2||(_0x403a8b=_0x4c88b2,_0x300bf3(_0x1aed80[_0x267b('0xa8')]),_0xfa9cfc=!0x0):_0x916a92=_0x916a92||_0x1aed80[_0x267b('0xa8')]));}function _0x300bf3(_0x1c11e7){const _0x2779d7=_0x4629d1[_0x267b('0xfe')][_0x267b('0x68')](_0x1c11e7),_0x19b20b=_0x4629d1[_0x267b('0x60')][_0x267b('0x99')](_0x267b('0xa9'),{'class':_0x267b('0x36')+_0x90f26f});_0x4629d1[_0x267b('0x60')][_0x267b('0x112')](_0x2779d7,_0x19b20b),_0x4629d1[_0x267b('0xfe')][_0x267b('0x115')](_0x19b20b,_0x35d417[_0x267b('0xa6')]);}_0x40819a||_0xfa9cfc||!_0x916a92||_0x300bf3(_0x916a92);};}export class RestoreRevisionCommand extends _0x5a80bc{constructor(_0x5c7468){super(_0x5c7468);const _0x4177e9=_0x5c7468[_0x267b('0xd')]['get'](d);this[_0x267b('0x97')]=!0x1,this['listenTo'](_0x4177e9,_0x267b('0x50'),()=>this[_0x267b('0xc')]()),this[_0x267b('0x86')](_0x4177e9,_0x267b('0xc6'),()=>this[_0x267b('0xc')]());}[_0x267b('0x9')](){const _0x151bf1=this[_0x267b('0xb2')],_0x4a8168=_0x151bf1[_0x267b('0xd')][_0x267b('0xb6')](d),_0x4245be=_0x4a8168[_0x267b('0x35')]?_0x4a8168[_0x267b('0xb9')][_0x267b('0xd6')]:null;_0x151bf1[_0x267b('0x62')]['get']('revisionHistory')[_0x267b('0x42')](_0x4245be);}[_0x267b('0xc')](){const {isReady:_0x5df68b,isEnabled:_0x2ba72b}=this[_0x267b('0xb2')][_0x267b('0xd')][_0x267b('0xb6')](d);this['isEnabled']=_0x5df68b&&_0x2ba72b;}}export class ShowChangeCommand extends _0x5a80bc{constructor(_0x2d88f1,{direction:_0x22bef2}){super(_0x2d88f1);const _0x21a58f=_0x2d88f1[_0x267b('0xd')][_0x267b('0xb6')](d);this[_0x267b('0x97')]=!0x1,this['_step']=_0x267b('0x2e')===_0x22bef2?0x1:-0x1,this[_0x267b('0x86')](_0x21a58f,'change:isReady',()=>this[_0x267b('0xc')]()),this[_0x267b('0x86')](_0x21a58f,_0x267b('0xc6'),()=>this[_0x267b('0xc')]()),this[_0x267b('0x86')](_0x21a58f,_0x267b('0xf2'),()=>this[_0x267b('0xc')]());}['execute'](){const _0x3f361f=this[_0x267b('0xb2')],_0x12ad3f=_0x3f361f[_0x267b('0xd')]['get'](d),{isNavigationMode:_0x4c39d3,currentChangeNumber:_0x3d4df2}=_0x12ad3f;let _0x28957c;if(_0x12ad3f[_0x267b('0x3d')]=_0x4c39d3?_0x12ad3f[_0x267b('0xb9')][_0x267b('0xbc')][_0x267b('0xb6')](_0x3d4df2+this[_0x267b('0x11')]):_0x12ad3f[_0x267b('0xb9')][_0x267b('0xbc')][_0x267b('0x91')],_0x12ad3f['activeChange'][_0x267b('0x2a')][_0x267b('0x6a')])_0x28957c=_0x3f361f[_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0x9e')](_0x12ad3f['activeChange'][_0x267b('0x4a')]);else{const _0x63f61b=_0x3f361f['model']['markers'][_0x267b('0xb6')](_0x267b('0x45')+_0x12ad3f['activeChange']['id']);_0x28957c=_0x2a84bb(_0x3f361f[_0x267b('0x111')],_0x63f61b);}_0x1652f7({'target':_0x28957c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3a27bb,currentChangeNumber:_0x8fd889,numberOfChanges:_0x557a7f,isReady:_0x4e298b,isEnabled:_0x3ed035}=this[_0x267b('0xb2')][_0x267b('0xd')]['get'](d);this[_0x267b('0xf')]=!!(_0x3ed035&&_0x4e298b&&_0x557a7f)&&(!_0x3a27bb||(0x1===this[_0x267b('0x11')]?_0x8fd889<_0x557a7f-0x1:_0x8fd889>0x0));}}
|
|
23
|
+
const _0xd7d1=['toViewPosition','_cleanUp','consumable','_markInsertions','shift','set','numberOfChanges','_markMismatchedRemovedTags','getDomRoot','model','_markSuggestions','isAtEnd','compare','schema','forEach','isRemoveSuggestion','_getRevisionsRange','getRevision','add','_makeModelFromViewString','clear','isEqual','revision','processor','activeView','conversion','change:activeChange','length','toModel','_getViewForChange','mapViewToDom','getClientRects','_changeView','then','plugins','_removeUnsupportedChanges','softBreak','hasAttribute','ck-revision-history-root--active','unbindElementFromMarkerName','_getViewObj','name','code','activeChange','attachChange','left','init','userId','getRevisionData','checkAttribute','createUIElement','refresh','map','from','hasClass','isReady','createPositionBefore','range','target','sort','ck-suggestion-marker--active','done','startIndex','isNavigationMode','addRevisionData','string','_makeTape','WidgetToolbarRepository','markers','resolve','isCollapsed','writer','object','level','data-revision-','createRevision','nextSibling','element','markerRange','uiElement','addHighlight','forceDisabled','span','showNextChange','suggestion','flat','next','change:isReady','revision-viewer','revisionHistoryLabel','all','revision-comment:','detachRoot','vid','elementStart','splice','keys','mouseover','end','low','nodeAfter','insertion','isAttached','collaboration.channelId','restoreRevision','_makeModelFromTape','useFillerType','removeMarker','pairId','_appendChild','getChild','_activeViewTarget','ck-suggestion-preview-marker-','isAtStart','elementEnd','getIndex','affectsData','revision-suggestion:','domConverter','toData','loadRevisionData','_initInteractions','previousPosition','endIndex','right','isSuggestion','_setDistance','rootName','_removeMissingPairs','distance','side','changes','_fixObsoleteTags','slice','parse','isOnRoot','diffData','isAddSuggestion','get','editingDowncast','isAfter','revision-suggestion','createPositionFromPath','push','view','_markMarkers','ck-suggestion-preview-marker','split','attributesBefore','insertions','_changeIdToChange','bindElementToMarker','data','_update','adapter','_refreshStartEndIndex','bottom','item','revisionHistory','for','concat','setAttribute','ck-suggestion-marker-split','changeId','values','ck-suggestion-marker-','delete','isContent','_threeWayMerge','execute','getCustomProperty','remove','showStack','document','enableReadOnlyMode','isBlock','RevisionsRepository','destroy','_joinTapes','_data','_setConversion','marked','getRoot','find','newRevisionId','getItems','mapper','change:isEnabled','config','merge','unshift','_revisions','markerNameToElements','dataDowncast','-new','repository','ck-editor__editable__overlay','markerToData','highest','getAttribute','ck-suggestion-marker','addRoot','markersEnd','error','startsWith','has','bind','deletions','children','nextPosition','consume','editing','_cleanMarkers','upcast','authors','attributes','commands','return','isBefore','isRemoved','revisionHistoryAttachChange','selection','roots','reconvertMarker','isAdded','createRange','filter','POSITIVE_INFINITY','markerName','enqueueChange','data-change-id','index','listenTo','offsetSize','test','parent','isInline','_setChanges','RevisionViewer','vid_end','editor','_getChangeFromId','isEnabled','high','viewItem','getWalker','downcastDispatcher','addMarker:revision','removeClass','isIncorrect','getAttributes','deletion','toViewElement','_processTape','revision:','getRootNames','catch','change','wrap','addClass','markersStart','vid_start','currentChangeNumber','modelRange','markerToHighlight','text','ck-revision-history-root-add','_sortAndFilterDiffChanges','mousedown','backward','domEvent','attributesAfter','locale','indexOf','_removeRevisionMarkers','start','insert','_step','abs','isLimit','attribute:vid','type','_balloon','dataToMarker','diff','addMarker:revision-suggestion:insertion'];(function(_0x4ec448,_0xd7d107){const _0x3bc164=function(_0x17797c){while(--_0x17797c){_0x4ec448['push'](_0x4ec448['shift']());}};_0x3bc164(++_0xd7d107);}(_0xd7d1,0x1af));const _0x3bc1=function(_0x4ec448,_0xd7d107){_0x4ec448=_0x4ec448-0x0;let _0x3bc164=_0xd7d1[_0x4ec448];return _0x3bc164;};import{Plugin as _0x92dd13,Command as _0x484f37}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x23e2a0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1a4322}from'ckeditor5/src/ui';import{DocumentFragment as _0x111441,Element as _0x6329a5,Text as _0x1fd28b,ViewDocumentFragment as _0x42248a,ViewText as _0x679ba5,ViewElement as _0x184656,ViewContainerElement as _0x19b6be,ViewAttributeElement as _0x8e8bde,ViewEmptyElement as _0x32c15c,ViewRawElement as _0x32b0b0,ViewUIElement as _0x56cce6}from'ckeditor5/src/engine';import{Users as _0x128512,getMarkerDomElement as _0x1340aa}from'ckeditor5-collaboration/src/collaboration-core';import _0x44934d from'./ui/revisionviewer/changedetailsview';import _0x361e7e from'./revisionsrepository';import _0x28f86b from'./changeitem';import{default as _0x210a4a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4c670b}from'lodash-es';const tt={'c':_0x19b6be,'a':_0x8e8bde,'e':_0x32c15c,'r':_0x32b0b0,'u':_0x56cce6};export default class d extends _0x92dd13{static get['pluginName'](){return _0x3bc1('0x5d');}static get['requires'](){return[_0x128512,_0x1a4322,_0x361e7e];}constructor(_0x430d15){super(_0x430d15),this[_0x3bc1('0x32')]=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0x1f')),this[_0x3bc1('0x92')](_0x3bc1('0xb8'),null),this['set']('activeView',null),this[_0x3bc1('0xfc')]=null,this[_0x3bc1('0x92')]('diff',null),this[_0x3bc1('0x92')](_0x3bc1('0xc4'),!0x1),this[_0x3bc1('0x92')]('isEnabled',!0x0),this['on'](_0x3bc1('0x2a'),(_0x327794,_0x388527,_0x3ebd05)=>{this['activeChange']=null,this[_0x3bc1('0xa5')]=null,this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x9a8426=>{for(const _0x727fa0 of this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x4d')])_0x3ebd05?_0x9a8426[_0x3bc1('0x67')](_0x3bc1('0x33'),_0x727fa0):_0x9a8426[_0x3bc1('0x72')](_0x3bc1('0x33'),_0x727fa0);});}),this['bind'](_0x3bc1('0xcc'))['to'](this,_0x3bc1('0xb8'),_0x1c7294=>null!==_0x1c7294),this[_0x3bc1('0x3d')](_0x3bc1('0x75'))['to'](this,'isReady',this,_0x3bc1('0x8b'),this,_0x3bc1('0xb8'),(_0x57cccb,_0x143206,_0x2b76a1)=>_0x57cccb&&_0x2b76a1?_0x143206['changes'][_0x3bc1('0x100')](_0x2b76a1):0x0),this[_0x3bc1('0x3d')](_0x3bc1('0x93'))['to'](this,_0x3bc1('0xc4'),this,_0x3bc1('0x8b'),(_0x4eb346,_0x460227)=>_0x4eb346?_0x460227[_0x3bc1('0x110')][_0x3bc1('0xa8')]:0x0),this[_0x3bc1('0xad')]=null,this[_0x3bc1('0x5')]=new Map(),this[_0x3bc1('0x9')]=null,this[_0x3bc1('0x89')]=this[_0x3bc1('0x5f')]['plugins'][_0x3bc1('0x117')](_0x1a4322);}[_0x3bc1('0xbb')](){const _0x3bbd16=this['editor'],_0xc72be5=new ShowChangeCommand(_0x3bbd16,{'direction':_0x3bc1('0x7c')}),_0x401860=new ShowChangeCommand(_0x3bbd16,{'direction':'forward'});(_0x3bbd16['commands'][_0x3bc1('0x9f')]('showPreviousChange',_0xc72be5),_0x3bbd16[_0x3bc1('0x47')][_0x3bc1('0x9f')](_0x3bc1('0xe0'),_0x401860),_0x3bbd16[_0x3bc1('0x47')][_0x3bc1('0x9f')](_0x3bc1('0xf5'),new RestoreRevisionCommand(_0x3bbd16)),this['on']('change:numberOfChanges',()=>{_0xc72be5['refresh'](),_0x401860['refresh']();}),this[_0x3bc1('0x23')](),this[_0x3bc1('0x106')](),_0x3bbd16[_0x3bc1('0x1d')](_0x3bc1('0xe5')),_0x3bbd16[_0x3bc1('0xaf')]['has'](_0x3bc1('0xd0')))&&_0x3bbd16[_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0xd0'))[_0x3bc1('0xde')]('revision-viewer');}async[_0x3bc1('0xbd')](_0x290dc0){await this['loadRevisionData'](_0x290dc0);const _0x5698b6={};for(const _0x212aa6 in _0x290dc0[_0x3bc1('0x115')]){if(_0x290dc0[_0x3bc1('0x115')][_0x212aa6][_0x3bc1('0xb9')]&&!_0x290dc0[_0x3bc1('0x115')][_0x212aa6]['attachChange'][_0x3bc1('0xf3')])continue;const _0x4b3239=this[_0x3bc1('0x81')](JSON[_0x3bc1('0x113')](_0x290dc0[_0x3bc1('0x115')][_0x212aa6][_0x3bc1('0x4')])),_0x3dda83=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')],_0x3bc37c=new _0x42248a(_0x3dda83,_0x4b3239[_0x3bc1('0xc1')](_0x160486=>this['_getViewObj'](_0x160486)));this['editor']['data'][_0x3bc1('0xa4')]['useFillerType'](_0x3bc1('0x24')),_0x5698b6[_0x212aa6]=this['editor'][_0x3bc1('0x7')][_0x3bc1('0xa4')][_0x3bc1('0x104')](_0x3bc37c),this[_0x3bc1('0x5f')][_0x3bc1('0x7')][_0x3bc1('0xa4')][_0x3bc1('0xf7')]('default');}return _0x5698b6;}async['getRevisionRootsAttributes'](_0x432ff1){await this[_0x3bc1('0x105')](_0x432ff1);const _0x34ef08={};for(const _0x10de5a in _0x432ff1['diffData'])_0x432ff1['diffData'][_0x10de5a][_0x3bc1('0xb9')]&&!_0x432ff1[_0x3bc1('0x115')][_0x10de5a][_0x3bc1('0xb9')][_0x3bc1('0xf3')]||(_0x34ef08[_0x10de5a]=_0x432ff1[_0x3bc1('0x115')][_0x10de5a]['attributesAfter']||{});return _0x34ef08;}[_0x3bc1('0x81')](_0x41c4ae){return(_0x41c4ae=_0x41c4ae[_0x3bc1('0x51')](_0x569c62=>!_0x569c62[_0x3bc1('0xb6')]||'revision-start'!==_0x569c62[_0x3bc1('0xb6')]&&'revision-end'!==_0x569c62[_0x3bc1('0xb6')]))['forEach'](_0x4a6a74=>{_0x3bc1('0xce')!=typeof _0x4a6a74&&(_0x4a6a74[_0x3bc1('0x3f')]=this[_0x3bc1('0x81')](_0x4a6a74[_0x3bc1('0x3f')]),_0x4a6a74[_0x3bc1('0x46')]=_0x4a6a74[_0x3bc1('0x46')][_0x3bc1('0x51')](_0x473df4=>!_0x473df4[0x0][_0x3bc1('0x3b')](_0x3bc1('0xd7'))));}),_0x41c4ae;}async[_0x3bc1('0x99')](_0x5796a9,_0x13b2a9,_0x22adcd=!0x1){if(!this[_0x3bc1('0x61')])return;const _0x5edc23=this[_0x3bc1('0x8b')],_0x292ca0=this[_0x3bc1('0x32')],_0x142742=_0x3bc1('0xce')==typeof _0x5796a9?_0x292ca0[_0x3bc1('0x9e')](_0x5796a9):_0x5796a9,_0x41929c=_0x3bc1('0xce')==typeof _0x13b2a9?_0x292ca0[_0x3bc1('0x9e')](_0x13b2a9):_0x13b2a9,_0x345104=_0x142742['id'],_0x4c5255=_0x41929c?_0x41929c['id']:null;if(!_0x22adcd&&this[_0x3bc1('0x8b')]&&this[_0x3bc1('0x8b')][_0x3bc1('0x27')]===_0x345104&&this[_0x3bc1('0x8b')]['oldRevisionId']===_0x4c5255)return Promise[_0x3bc1('0xd2')]();this[_0x3bc1('0xc4')]=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new _0x210a4a(_0x345104,_0x4c5255);const _0x310c64=this[_0x3bc1('0x9d')](_0x142742,_0x41929c,!0x0)[_0x3bc1('0xc1')](_0xa3b091=>this[_0x3bc1('0x105')](_0xa3b091));return _0x310c64[_0x3bc1('0x11c')](new Promise(_0x2dcfd1=>{setTimeout(_0x2dcfd1,0x14);})),Promise[_0x3bc1('0xe7')](_0x310c64)[_0x3bc1('0xae')](()=>{if(!this['isEnabled'])return;this[_0x3bc1('0x8e')]();const _0x312899=this['_getDiff'](_0x345104,_0x4c5255);for(const _0x3d6593 of _0x312899['changes'])this[_0x3bc1('0x5')][_0x3bc1('0x92')](_0x3d6593['id'],_0x3d6593);this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['enqueueChange']({'isUndoable':!0x1},_0x1963a7=>{for(const _0x1417ff of this[_0x3bc1('0x5f')]['model'][_0x3bc1('0x1c')][_0x3bc1('0x6e')]())_0x1963a7[_0x3bc1('0xe9')](_0x1417ff);for(const _0x2dfd7c of Object[_0x3bc1('0xed')](_0x312899[_0x3bc1('0x96')])){const _0x3e5b2b=_0x1963a7[_0x3bc1('0x38')](_0x2dfd7c);for(const _0x1a2243 of Object[_0x3bc1('0xed')](_0x312899['attributes'][_0x2dfd7c]))_0x1963a7['setAttribute'](_0x1a2243,_0x312899[_0x3bc1('0x46')][_0x2dfd7c][_0x1a2243],_0x3e5b2b);_0x1963a7['insert'](_0x312899['model'][_0x2dfd7c],_0x3e5b2b,0x0);}}),this[_0x3bc1('0x8b')][_0x3bc1('0x5c')](this[_0x3bc1('0x7a')](_0x312899['changes'])),this['isReady']=!0x0;})[_0x3bc1('0x6f')](_0x3b6c36=>{console[_0x3bc1('0x3a')](_0x3b6c36),this['_cleanUp'](),_0x5edc23&&(this[_0x3bc1('0x8b')]=_0x5edc23),this[_0x3bc1('0xc4')]=!0x0;});}[_0x3bc1('0xcd')](_0x3640d7,_0x146288){const _0x1b88ff=this[_0x3bc1('0x32')][_0x3bc1('0xd8')](_0x3640d7);return _0x1b88ff['on'](_0x3bc1('0x8'),(_0xb0fe09,_0x5a35db,_0x489a15)=>_0x146288(_0x5a35db,_0x489a15,_0x1b88ff)),this['repository']['addRevision'](_0x1b88ff),_0x1b88ff;}[_0x3bc1('0x105')](_0x15029f){if(!_0x15029f||_0x15029f[_0x3bc1('0x115')])return Promise[_0x3bc1('0xd2')]();{const _0x13b082=this['editor'][_0x3bc1('0x2b')][_0x3bc1('0x117')](_0x3bc1('0xf4'));return this[_0x3bc1('0x9')][_0x3bc1('0x9e')]({'channelId':_0x13b082,'revisionId':_0x15029f['id']})[_0x3bc1('0xae')](_0x4d0aeb=>{_0x15029f[_0x3bc1('0x8')]({'diffData':_0x4d0aeb[_0x3bc1('0x115')]},!0x0);});}}[_0x3bc1('0x8e')](){this[_0x3bc1('0xb8')]=null,this['_cleanMarkers'](),this[_0x3bc1('0xad')]&&this[_0x3bc1('0xad')][_0x3bc1('0x20')](),this[_0x3bc1('0xad')]=null,this[_0x3bc1('0x5')][_0x3bc1('0xa1')](),this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x54')]({'isUndoable':!0x1},_0x954a74=>{for(const _0x1b25ae of this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')][_0x3bc1('0x6e')]())_0x954a74[_0x3bc1('0xe9')](_0x1b25ae);});}[_0x3bc1('0x7a')](_0x5cfcda){const _0x372ba6=[],_0x48f330=new Map();for(const _0x10bc6b of this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')][_0x3bc1('0x6e')]()){const _0x8df368=this[_0x3bc1('0x5f')]['editing'][_0x3bc1('0x11d')][_0x3bc1('0x95')](_0x10bc6b);if(!_0x8df368)continue;const _0x5654ea=_0x8df368['getClientRects']()[_0x3bc1('0xc')](0x0);_0x5654ea&&(_0x372ba6[_0x3bc1('0x11c')](_0x10bc6b),_0x48f330[_0x3bc1('0x92')](_0x10bc6b,_0x5654ea));}return _0x372ba6['sort']((_0xd51cb5,_0x26d1d0)=>{const _0x32b02e=_0x48f330[_0x3bc1('0x117')](_0xd51cb5),_0x2931a1=_0x48f330[_0x3bc1('0x117')](_0x26d1d0);return _0x32b02e['y']-_0x2931a1['y']||_0x32b02e['x']-_0x2931a1['x'];}),(_0x5cfcda=_0x5cfcda[_0x3bc1('0x51')](_0x4e5a48=>_0x372ba6['includes'](_0x4e5a48[_0x3bc1('0x10c')])))[_0x3bc1('0xc8')]((_0x2b60fa,_0x5b4068)=>_0x372ba6['indexOf'](_0x2b60fa['rootName'])-_0x372ba6[_0x3bc1('0x80')](_0x5b4068[_0x3bc1('0x10c')])),_0x5cfcda;}[_0x3bc1('0xcf')](_0x215f9f){const _0x3da36c=Array[_0x3bc1('0xc2')](_0x215f9f['markers'])[_0x3bc1('0x51')](([_0x5d6e80,_0x2513bd])=>_0x5d6e80[_0x3bc1('0x3b')](_0x3bc1('0x6d'))&&!_0x2513bd[_0x3bc1('0xd3')]),_0x510fd1=Array['from'](this[_0x3bc1('0x5f')]['model']['createRangeIn'](_0x215f9f)[_0x3bc1('0x64')]({'singleCharacters':!0x0}));if(0x0!=_0x3da36c[_0x3bc1('0xa8')])for(const _0xa8875d of _0x510fd1){const [_0x297c79,_0x12e9dd]=_0x3da36c[0x0],[,_0x54cc60,_0x464d21]=_0x297c79[_0x3bc1('0x2')](':');if(_0x12e9dd[_0x3bc1('0xef')][_0x3bc1('0xa2')](_0xa8875d['nextPosition'])&&_0x3da36c[_0x3bc1('0x91')](),(_0xa8875d[_0x3bc1('0x107')][_0x3bc1('0xa2')](_0x12e9dd[_0x3bc1('0x82')])||_0xa8875d['previousPosition'][_0x3bc1('0x119')](_0x12e9dd[_0x3bc1('0x82')]))&&(_0x3bc1('0xf2')==_0x54cc60?_0xa8875d['isAdded']={'userId':_0x464d21}:_0x3bc1('0x6a')==_0x54cc60&&(_0xa8875d[_0x3bc1('0x4a')]={'userId':_0x464d21})),0x0==_0x3da36c[_0x3bc1('0xa8')])break;}return _0x510fd1;}[_0x3bc1('0xa')](_0x275da3){const _0x3f8bf3=new Map();for(let _0x4c3d37=0x0;_0x4c3d37<_0x275da3[_0x3bc1('0xa8')];_0x4c3d37++)_0x3bc1('0x78')===_0x275da3[_0x4c3d37]['type']?(_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x4c3d37,_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x4c3d37):(_0x3bc1('0xeb')===_0x275da3[_0x4c3d37][_0x3bc1('0x88')]?_0x275da3[_0x4c3d37]['item'][_0x3bc1('0xcb')]=_0x4c3d37:_0x3bc1('0xff')===_0x275da3[_0x4c3d37][_0x3bc1('0x88')]&&(_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x4c3d37),_0x3f8bf3[_0x3bc1('0x92')](_0x275da3[_0x4c3d37]['id'],_0x4c3d37));for(const _0x474f9 of _0x3f8bf3[_0x3bc1('0x13')]())_0x3bc1('0xeb')===_0x275da3[_0x474f9][_0x3bc1('0x88')]?_0x275da3[_0x474f9][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x3f8bf3[_0x3bc1('0x117')](_0x275da3[_0x474f9][_0x3bc1('0xf9')]):_0x3bc1('0xff')===_0x275da3[_0x474f9][_0x3bc1('0x88')]&&(_0x275da3[_0x474f9][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x3f8bf3[_0x3bc1('0x117')](_0x275da3[_0x474f9][_0x3bc1('0xf9')]));}['_processTape'](_0x27089a){for(let _0x591845=0x0;_0x591845<_0x27089a['length'];_0x591845++){if(_0x3bc1('0xeb')===_0x27089a[_0x591845][_0x3bc1('0x88')])_0x27089a[_0x591845][_0x3bc1('0xc')]['startIndex']=_0x591845;else{if(_0x3bc1('0xff')===_0x27089a[_0x591845][_0x3bc1('0x88')]){_0x27089a[_0x591845][_0x3bc1('0xc')]['endIndex']=_0x591845;const _0x14f1a2=_0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0xcb')];_0x27089a[_0x14f1a2][_0x3bc1('0xf9')]=_0x27089a[_0x591845]['id'],_0x27089a[_0x591845][_0x3bc1('0xf9')]=_0x27089a[_0x14f1a2]['id'];}else _0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x591845,_0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x591845,_0x27089a[_0x591845][_0x3bc1('0xf9')]=null;}_0x27089a[_0x591845][_0x3bc1('0x73')]||(_0x27089a[_0x591845][_0x3bc1('0x73')]=[],_0x27089a[_0x591845][_0x3bc1('0x39')]=[]);}}[_0x3bc1('0x90')](_0x51d908,_0xfd21f2){const _0x18500f=_0x51d908[_0x3bc1('0x51')](_0x5dd08d=>!_0x5dd08d[_0x3bc1('0x4f')]);for(let _0x43d56a=0x0;_0x43d56a<_0xfd21f2[_0x3bc1('0xa8')];_0x43d56a++)_0xfd21f2[_0x43d56a][_0x3bc1('0x4f')]&&(_0x18500f[_0x43d56a][_0x3bc1('0x4f')]=_0xfd21f2[_0x43d56a][_0x3bc1('0x4f')]);}[_0x3bc1('0xa0')](_0x5f551c){const _0x2ad62e=JSON[_0x3bc1('0x113')](_0x5f551c),_0x5dc178=this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['view'][_0x3bc1('0x1c')],_0x118e55=new _0x42248a(_0x5dc178,_0x2ad62e[_0x3bc1('0xc1')](_0x59b6c4=>this[_0x3bc1('0xb5')](_0x59b6c4)));return this[_0x3bc1('0x5f')]['data'][_0x3bc1('0xa9')](_0x118e55);}[_0x3bc1('0xb5')](_0x5af161){const _0x1ebf50=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')];if(_0x3bc1('0xce')==typeof _0x5af161)return new _0x679ba5(_0x1ebf50,_0x5af161);{const _0x3018fc=_0x5af161[_0x3bc1('0x3f')]['map'](_0x35f354=>this['_getViewObj'](_0x35f354));return new(tt[_0x5af161[(_0x3bc1('0x88'))]]||_0x184656)(_0x1ebf50,_0x5af161[_0x3bc1('0xb6')],_0x5af161[_0x3bc1('0x46')],_0x3018fc);}}['_getDiff'](_0x27ae75,_0x4356a9=null){const _0x3e0b0a=this['repository'][_0x3bc1('0x9e')](_0x27ae75),_0x1fcabb=_0x4356a9?this[_0x3bc1('0x32')][_0x3bc1('0x9e')](_0x4356a9):null,_0x16a15a=this[_0x3bc1('0x9d')](_0x3e0b0a,_0x1fcabb),_0x5303ea=_0x16a15a[_0x16a15a[_0x3bc1('0xa8')]-0x1],_0x4f269b=new Map(),_0x17a8c7={'model':{},'attributes':{},'changes':[]},_0x47cd1c=new Set(),_0xf45022=new Map();for(let _0x396f9c=_0x16a15a[_0x3bc1('0xa8')]-0x1;_0x396f9c>=0x0;_0x396f9c--){const _0x17bde9=_0x16a15a[_0x396f9c];for(const _0x2105f3 of Object[_0x3bc1('0xed')](_0x17bde9[_0x3bc1('0x115')]))if(_0x17bde9[_0x3bc1('0x115')][_0x2105f3]['attachChange']){const _0x308cd7=_0x17bde9[_0x3bc1('0x115')][_0x2105f3][_0x3bc1('0xb9')];_0x308cd7['isAttached']?(_0x47cd1c[_0x3bc1('0x9f')](_0x2105f3),_0xf45022[_0x3bc1('0x3c')](_0x2105f3)&&_0xf45022[_0x3bc1('0x117')](_0x2105f3)[_0x3bc1('0xbc')]==_0x308cd7[_0x3bc1('0xbc')]?_0xf45022[_0x3bc1('0x15')](_0x2105f3):_0xf45022[_0x3bc1('0x92')](_0x2105f3,_0x308cd7)):_0xf45022[_0x3bc1('0x3c')](_0x2105f3)?(_0x47cd1c['delete'](_0x2105f3),_0xf45022[_0x3bc1('0x15')](_0x2105f3)):(_0x47cd1c[_0x3bc1('0x9f')](_0x2105f3),_0xf45022[_0x3bc1('0x92')](_0x2105f3,_0x308cd7));}else _0x47cd1c[_0x3bc1('0x9f')](_0x2105f3);}for(const _0x4cacd4 of _0x47cd1c){const _0x3a897b=_0xf45022[_0x3bc1('0x3c')](_0x4cacd4)&&!_0xf45022[_0x3bc1('0x117')](_0x4cacd4)['isAttached'];let _0x1a4c06=_0x3a897b?_0x16a15a[_0x3bc1('0xa8')]-0x1:0x0;const _0x26ec1e=_0x3a897b?-0x1:0x1;for(;_0x16a15a[_0x1a4c06];){const _0x1b84b9=_0x16a15a[_0x1a4c06];if(_0x1b84b9['diffData'][_0x4cacd4]){const _0x172435=_0x3a897b?_0x1b84b9['diffData'][_0x4cacd4][_0x3bc1('0x3')]:_0x1b84b9['diffData'][_0x4cacd4][_0x3bc1('0x7e')];_0x17a8c7[_0x3bc1('0x46')][_0x4cacd4]=_0x172435?_0x4c670b(_0x172435):{};break;}_0x1a4c06+=_0x26ec1e;}}for(const _0x150d1c of _0x16a15a){_0x150d1c[_0x3bc1('0x96')]={};for(const _0x30040a of _0x150d1c[_0x3bc1('0x45')])_0x4f269b[_0x3bc1('0x92')](_0x30040a['id'],_0x30040a);for(const _0x2bd8df of _0x47cd1c){const _0x33de7e=_0x150d1c[_0x3bc1('0x115')][_0x2bd8df]?_0x150d1c[_0x3bc1('0x115')][_0x2bd8df][_0x3bc1('0x4')]:'[]',_0x2f0821=_0x150d1c[_0x3bc1('0x115')][_0x2bd8df]?_0x150d1c['diffData'][_0x2bd8df][_0x3bc1('0x3e')]:'[]';_0x150d1c[_0x3bc1('0x96')][_0x2bd8df]={'insertions':this[_0x3bc1('0xa0')](_0x33de7e),'deletions':this['_makeModelFromViewString'](_0x2f0821)};}}for(const _0x50bcc4 of _0x47cd1c){let _0x1b4010=null,_0x5b5d67=0x0;const _0x2fe265=new Map(Array[_0x3bc1('0xc2')](_0x3e0b0a['model'][_0x50bcc4]['insertions'][_0x3bc1('0xd1')])[_0x3bc1('0x51')](([_0x54a843])=>!_0x54a843['startsWith'](_0x3bc1('0x6d'))));let _0x225bcd=0x0;for(const _0x2935c1 of _0x16a15a){const _0x413527=this['_makeTape'](_0x2935c1[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x4')]);_0x2935c1==_0x3e0b0a?(_0x1b4010=_0x413527,_0x5b5d67=_0x1b4010[_0x3bc1('0xa8')],_0x1b4010[_0x3bc1('0x9b')](_0x292155=>{_0x292155['id']=_0x225bcd++;}),this[_0x3bc1('0x6c')](_0x1b4010)):this['_markInsertions'](_0x1b4010,_0x413527);const _0x863586=_0x1b4010[_0x3bc1('0x51')](_0x35304e=>!_0x35304e['isAdded'])[_0x3bc1('0xc1')](_0x52a6ed=>_0x52a6ed['id']);let _0x1964fd=0x0;const _0x2fdba1=this[_0x3bc1('0xcf')](_0x2935c1[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x3e')]);_0x2fdba1[_0x3bc1('0x9b')](_0x2c68db=>{_0x2c68db['isRemoved']?_0x2c68db['id']=_0x5b5d67++:_0x2c68db['id']=_0x863586[_0x1964fd++];}),this[_0x3bc1('0x6c')](_0x2fdba1),this[_0x3bc1('0x10b')](_0x1b4010,'isAdded'),this[_0x3bc1('0x10b')](_0x2fdba1,_0x3bc1('0x4a')),_0x2935c1==_0x3e0b0a&&this[_0x3bc1('0x0')](_0x1b4010,_0x2fe265),_0x1b4010=this[_0x3bc1('0x21')](_0x1b4010,_0x2fdba1),this[_0x3bc1('0xa')](_0x1b4010),this['_setDistance'](_0x1b4010,_0x3bc1('0x4a'));}_0x1b4010=_0x1b4010['filter'](_0x5b4b32=>!(_0x5b4b32['isAdded']&&_0x5b4b32['isRemoved']));const _0x566419=new Map(_0x5303ea[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x3e')][_0x3bc1('0xd1')]),_0x522d21=new Set(_0x2fe265[_0x3bc1('0xed')]());for(const _0x4b86bf of _0x566419[_0x3bc1('0xed')]())_0x522d21[_0x3bc1('0x15')](_0x4b86bf);this['_markSuggestions'](_0x1b4010,_0x522d21),this[_0x3bc1('0x111')](_0x1b4010),_0x1b4010=this[_0x3bc1('0x10d')](_0x1b4010),_0x1b4010=this['_markMismatchedRemovedTags'](_0x1b4010),_0x1b4010=this['_removeUnsupportedChanges'](_0x1b4010);const {root:_0x3ca1af,changes:_0x5d6053}=this[_0x3bc1('0xf6')](_0x1b4010,_0x4f269b,_0x50bcc4);_0x17a8c7[_0x3bc1('0x96')][_0x50bcc4]=_0x3ca1af;const _0x591572=_0xf45022[_0x3bc1('0x117')](_0x50bcc4);if(_0x591572){const _0x3b0389=_0x4f269b[_0x3bc1('0x117')](_0x591572[_0x3bc1('0xbc')]),_0x596c67=new _0x28f86b({'author':_0x3b0389,'type':_0x591572[_0x3bc1('0xf3')]?_0x3bc1('0x9f'):_0x3bc1('0x1a'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x50bcc4});_0x5d6053[_0x3bc1('0x2d')](_0x596c67),_0x17a8c7[_0x3bc1('0x46')][_0x50bcc4]['revisionHistoryAttachChange']=_0x596c67['id'];}_0x17a8c7[_0x3bc1('0x110')]=_0x17a8c7['changes'][_0x3bc1('0xf')](_0x5d6053);}return _0x17a8c7;}[_0x3bc1('0x0')](_0x215268,_0x37a317){for(let _0x38a7f9=0x0;_0x38a7f9<_0x215268['length'];_0x38a7f9++)for(const [_0xc11435,_0xea5245]of _0x37a317)_0xea5245[_0x3bc1('0x82')][_0x3bc1('0xa2')](_0x215268[_0x38a7f9][_0x3bc1('0x107')])&&_0x215268[_0x38a7f9]['markersStart'][_0x3bc1('0x11c')](_0xc11435),_0xea5245[_0x3bc1('0xef')]['isEqual'](_0x215268[_0x38a7f9][_0x3bc1('0x40')])&&_0x215268[_0x38a7f9][_0x3bc1('0x39')]['push'](_0xc11435);}[_0x3bc1('0x21')](_0xa0824f,_0x188db0){let _0x4a503e=[],_0x9ad945=0x0,_0x409f0a=0x0;for(;_0x9ad945<_0xa0824f[_0x3bc1('0xa8')]||_0x409f0a<_0x188db0[_0x3bc1('0xa8')];){const _0xdafd7d=_0xa0824f[_0x9ad945]||{},_0x3f1302=_0x188db0[_0x409f0a]||{};if(_0xdafd7d['id']==_0x3f1302['id'])_0x9ad945++,_0x409f0a++,_0x4a503e['push'](_0xdafd7d);else{if(_0x3f1302['isRemoved']&&_0xdafd7d[_0x3bc1('0x4f')]){const {commonTape:_0x2ffc61,iEnd:_0x5c5558,jEnd:_0x5ebb80}=this[_0x3bc1('0x17')](_0xa0824f,_0x9ad945,_0x188db0,_0x409f0a);_0x4a503e=_0x4a503e['concat'](_0x2ffc61),_0x9ad945=_0x5c5558,_0x409f0a=_0x5ebb80;}else _0x3f1302['isRemoved']?(_0x409f0a++,_0x4a503e[_0x3bc1('0x11c')](_0x3f1302)):(_0x9ad945++,_0x4a503e[_0x3bc1('0x11c')](_0xdafd7d));}}return _0x4a503e;}[_0x3bc1('0x97')](_0x228c2f,_0xbe17ee){const _0x490595=[];for(let _0x40b66d=0x0;_0x40b66d<_0x228c2f[_0x3bc1('0xa8')];_0x40b66d++){for(let _0x587c65=0x0;_0x587c65<_0x228c2f[_0x40b66d]['markersStart'][_0x3bc1('0xa8')];_0x587c65++){const _0x493a3e=_0x228c2f[_0x40b66d]['markersStart'][_0x587c65];if(!_0xbe17ee[_0x3bc1('0x3c')](_0x493a3e))continue;const {group:_0x44c07c,type:_0x27fe62,authorId:_0x21b56d}=_0x514063(_0x493a3e);'revision-suggestion'!=_0x44c07c||'insertion'!=_0x27fe62&&'deletion'!=_0x27fe62||(_0x490595[_0x3bc1('0x2d')]({'type':_0x27fe62,'name':_0x493a3e,'userId':_0x21b56d}),_0x228c2f[_0x40b66d][_0x3bc1('0x73')][_0x3bc1('0xec')](_0x587c65,0x1),_0x587c65--);}_0x50643a(_0x228c2f[_0x40b66d]);for(let _0x11847e=0x0;_0x11847e<_0x228c2f[_0x40b66d][_0x3bc1('0x39')]['length'];_0x11847e++){const _0x2c9a72=_0x228c2f[_0x40b66d][_0x3bc1('0x39')][_0x11847e];if(!_0xbe17ee[_0x3bc1('0x3c')](_0x2c9a72))continue;const {group:_0x5a6b90,type:_0x369ff7}=_0x514063(_0x2c9a72);if(_0x3bc1('0x11a')!=_0x5a6b90||'insertion'!=_0x369ff7&&_0x3bc1('0x6a')!=_0x369ff7)continue;_0x228c2f[_0x40b66d]['markersEnd'][_0x3bc1('0xec')](_0x11847e,0x1),_0x11847e--;const _0x433edd=_0x490595['findIndex'](_0x31ecd2=>_0x31ecd2['name']==_0x2c9a72);_0x433edd>-0x1&&_0x490595['splice'](_0x433edd,0x1);}}function _0x514063(_0x248865){const _0x109e50=_0x248865[_0x3bc1('0x2')](':');return{'group':_0x109e50[0x0],'type':_0x109e50[0x1],'subType':_0x109e50[_0x3bc1('0xa8')]>=0x5?_0x109e50[0x2]:null,'id':_0x109e50['length']<0x5?_0x109e50[0x2]:_0x109e50[0x3],'authorId':_0x109e50[_0x3bc1('0xa8')]<0x5?_0x109e50[0x3]:_0x109e50[0x4],'markerCount':0x6==_0x109e50['length']?_0x109e50[0x5]:null};}function _0x50643a(_0xbab19){for(let _0xb92374=0x0;_0xb92374<_0x490595[_0x3bc1('0xa8')];_0xb92374++){if(_0xbab19[_0x3bc1('0x4f')]&&_0x3bc1('0xf2')==_0x490595[_0xb92374][_0x3bc1('0x88')])return _0xbab19[_0x3bc1('0x116')]=_0x490595[_0xb92374],void delete _0xbab19[_0x3bc1('0x4f')];if(!_0xbab19['isAdded']&&!_0xbab19[_0x3bc1('0x4a')]&&_0x3bc1('0x6a')==_0x490595[_0xb92374][_0x3bc1('0x88')])return void(_0xbab19[_0x3bc1('0x9c')]=_0x490595[_0xb92374]);}}}[_0x3bc1('0x10b')](_0x54470c,_0x6a8e09){let _0x4b09a2=0x0,_0x1de569=!0x1;const _0x6d0a53=new Map();for(const _0x3519ad of _0x54470c)_0x3519ad[_0x6a8e09]?_0x1de569&&(_0x4b09a2++,_0x1de569=!0x1):(_0x4b09a2++,_0x1de569=!0x0),_0x6d0a53[_0x3bc1('0x92')](_0x3519ad['id'],_0x4b09a2);for(let _0x276915=0x0;_0x276915<_0x54470c[_0x3bc1('0xa8')];_0x276915++){if(_0x3bc1('0x4a')==_0x6a8e09&&_0x54470c[_0x276915]['isAdded']||_0x3bc1('0x4f')==_0x6a8e09&&_0x54470c[_0x276915][_0x3bc1('0x4a')])continue;if(_0x3bc1('0x78')==_0x54470c[_0x276915][_0x3bc1('0x88')]){_0x54470c[_0x276915][_0x3bc1('0x10e')]=0x0;continue;}const _0x48e7d=_0x6d0a53[_0x3bc1('0x117')](_0x54470c[_0x276915][_0x3bc1('0xf9')]),_0x59254e=_0x6d0a53[_0x3bc1('0x117')](_0x54470c[_0x276915]['id']);_0x54470c[_0x276915][_0x3bc1('0x10e')]=_0x48e7d-_0x59254e;}}['_getRevisionsRange'](_0x36e871,_0x43f0fa,_0x5ea1d4=!0x1){const _0x5adac0=[];let _0x4eed79=this[_0x3bc1('0x32')][_0x3bc1('0x100')](_0x36e871),_0x166bb0=this['repository']['getIndex'](_0x43f0fa);for(-0x1==_0x166bb0&&(_0x166bb0=this['repository'][_0x3bc1('0x2e')]['length'],_0x5ea1d4=!0x1);_0x4eed79<_0x166bb0;)_0x5adac0[_0x3bc1('0x11c')](this[_0x3bc1('0x32')]['getRevision'](_0x4eed79)),_0x4eed79++;return _0x5ea1d4&&_0x5adac0['push'](this['repository'][_0x3bc1('0x9e')](_0x4eed79)),_0x5adac0;}[_0x3bc1('0x17')](_0xee4a69,_0x3b2868,_0x67614e,_0x5c9896){const _0x3804df=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')];let _0x4b0fc7=_0x3b2868;for(;_0xee4a69[_0x4b0fc7]&&_0xee4a69[_0x4b0fc7][_0x3bc1('0x4f')];)_0x4b0fc7++;let _0x85139f=_0x5c9896;for(;_0x67614e[_0x85139f]&&_0x67614e[_0x85139f]['isRemoved'];)_0x85139f++;_0x3c8638(_0xee4a69,_0x3b2868,_0x4b0fc7),_0x3c8638(_0x67614e,_0x5c9896,_0x85139f);const _0xa7a529=_0x67614e[_0x3bc1('0x112')](_0x5c9896,_0x85139f)['concat'](_0xee4a69[_0x3bc1('0x112')](_0x3b2868,_0x4b0fc7));return _0xa7a529[_0x3bc1('0xc8')]((_0x36fc8d,_0x3522a0)=>_0x36fc8d[_0x3bc1('0x10f')]!=_0x3522a0[_0x3bc1('0x10f')]?_0x36fc8d['side']-_0x3522a0[_0x3bc1('0x10f')]:_0x36fc8d[_0x3bc1('0xd6')]!=_0x3522a0[_0x3bc1('0xd6')]?_0x36fc8d[_0x3bc1('0xd6')]-_0x3522a0['level']:_0x36fc8d[_0x3bc1('0x10e')]!=_0x3522a0[_0x3bc1('0x10e')]?_0x3522a0[_0x3bc1('0x10e')]-_0x36fc8d['distance']:!!_0x36fc8d[_0x3bc1('0x4f')]!=!!_0x3522a0['isAdded']?-0x1==_0x36fc8d['side']||0x0==_0x36fc8d[_0x3bc1('0x10f')]?_0x36fc8d['isAdded']?-0x1:0x1:_0x36fc8d[_0x3bc1('0x4f')]?0x1:-0x1:_0x36fc8d[_0x3bc1('0x56')]-_0x3522a0['index']),{'commonTape':_0xa7a529,'iEnd':_0x4b0fc7,'jEnd':_0x85139f};function _0x3c8638(_0x370779,_0x10ac75,_0x5a5deb){let _0x11d5e0=-0x1,_0x113a65=Number[_0x3bc1('0x52')],_0x46c373=!0x0;for(let _0x52c812=_0x10ac75;_0x52c812<_0x5a5deb;_0x52c812++)if(_0x3804df[_0x3bc1('0x5b')](_0x370779[_0x52c812][_0x3bc1('0xc')])||(_0x46c373=!0x1),_0x370779[_0x52c812][_0x3bc1('0xc')][_0x3bc1('0xcb')]<_0x10ac75&&(_0x11d5e0=_0x52c812),_0x370779[_0x52c812][_0x3bc1('0xc')][_0x3bc1('0x108')]>=_0x5a5deb){_0x113a65=_0x52c812;break;}_0x46c373&&(_0x11d5e0=_0x5a5deb-0x1);for(let _0x5f5d41=_0x10ac75;_0x5f5d41<_0x5a5deb;_0x5f5d41++)_0x370779[_0x5f5d41][_0x3bc1('0x10f')]=_0x5f5d41<=_0x11d5e0?-0x1:_0x5f5d41<_0x113a65?0x0:0x1,_0x370779[_0x5f5d41]['index']=_0x5f5d41;let _0x2842c4=0x0;for(let _0x14ce2c=_0x10ac75;_0x14ce2c<=_0x11d5e0;_0x14ce2c++)0x0==_0x370779[_0x14ce2c][_0x3bc1('0x10e')]?_0x370779[_0x14ce2c][_0x3bc1('0xd6')]=_0x2842c4:(_0x2842c4++,_0x370779[_0x14ce2c][_0x3bc1('0xd6')]=_0x2842c4,_0x2842c4++);for(let _0x58031f=_0x10ac75;_0x58031f<_0x5a5deb;_0x58031f++)0x0==_0x370779[_0x58031f]['side']&&(_0x370779[_0x58031f][_0x3bc1('0xd6')]=_0x2842c4);_0x2842c4=0x0;for(let _0x253e70=_0x5a5deb-0x1;_0x253e70>=_0x113a65;_0x253e70--)0x0==_0x370779[_0x253e70][_0x3bc1('0x10e')]?_0x370779[_0x253e70][_0x3bc1('0xd6')]=_0x2842c4:(_0x2842c4--,_0x370779[_0x253e70][_0x3bc1('0xd6')]=_0x2842c4,_0x2842c4--);}}[_0x3bc1('0x111')](_0x2ab1d1){const _0x19bc53=new Map(),_0x4e2870=this[_0x3bc1('0x5f')]['model']['schema'];for(let _0xd341a1=0x1;_0xd341a1<_0x2ab1d1[_0x3bc1('0xa8')];_0xd341a1++){let _0x33ac5a,_0x1d88e5,_0x2e08c6;const _0x6b2f49=_0x2ab1d1[_0xd341a1],_0x32c7ec=_0x2ab1d1[_0xd341a1-0x1];if(_0x3bc1('0x78')==_0x6b2f49[_0x3bc1('0x88')])continue;if(_0x6b2f49[_0x3bc1('0x88')]!=_0x32c7ec[_0x3bc1('0x88')])continue;if(!_0x4e2870[_0x3bc1('0x1e')](_0x32c7ec[_0x3bc1('0xc')])||_0x4e2870[_0x3bc1('0x86')](_0x32c7ec[_0x3bc1('0xc')]))continue;if(!_0x4e2870[_0x3bc1('0x1e')](_0x6b2f49[_0x3bc1('0xc')])||_0x4e2870['isLimit'](_0x6b2f49[_0x3bc1('0xc')]))continue;if((_0x2ab1d1[_0xd341a1][_0x3bc1('0x4f')]||_0x2ab1d1[_0xd341a1][_0x3bc1('0x116')])&&_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x4a')])_0x33ac5a=_0x2ab1d1[_0xd341a1],_0x1d88e5=_0x2ab1d1[_0xd341a1-0x1],_0x2e08c6=_0xd341a1-0x1;else{if(!_0x2ab1d1[_0xd341a1][_0x3bc1('0x4a')]||!_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x4f')]&&!_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x116')])continue;_0x33ac5a=_0x2ab1d1[_0xd341a1-0x1],_0x1d88e5=_0x2ab1d1[_0xd341a1],_0x2e08c6=_0xd341a1;}const _0x139ba2=_0x33ac5a[_0x3bc1('0xd6')]==_0x1d88e5[_0x3bc1('0xd6')],_0x28092f=Math[_0x3bc1('0x85')](_0x33ac5a['level'])<Math[_0x3bc1('0x85')](_0x1d88e5['level'])&&0x0==_0x1d88e5[_0x3bc1('0x10e')];(_0x139ba2||_0x28092f)&&(_0x19bc53[_0x3bc1('0x92')](_0x1d88e5['id'],_0x33ac5a['id']),_0x2ab1d1[_0x3bc1('0xec')](_0x2e08c6,0x1),_0xd341a1--,_0x33ac5a[_0x3bc1('0x4f')]=!0x1);}for(let _0x486d67=0x0;_0x486d67<_0x2ab1d1['length'];_0x486d67++)_0x19bc53['has'](_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')])&&(_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')]=_0x19bc53[_0x3bc1('0x117')](_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')]));}[_0x3bc1('0x10d')](_0x4a05cb){const _0x3e0d2a=new Set(_0x4a05cb['map'](_0x4a153f=>_0x4a153f['id']));for(let _0x3b8a59=0x0;_0x3b8a59<_0x4a05cb[_0x3bc1('0xa8')];_0x3b8a59++)_0x3e0d2a[_0x3bc1('0x3c')](_0x4a05cb[_0x3b8a59][_0x3bc1('0xf9')])||0x0==_0x4a05cb[_0x3b8a59][_0x3bc1('0x10e')]||(_0x4a05cb[_0x3b8a59]['isIncorrect']=!0x0);return _0x4a05cb[_0x3bc1('0x51')](_0x8360ae=>!_0x8360ae['isIncorrect']);}[_0x3bc1('0x94')](_0x2f3add){const _0xe633dd=new Set();for(let _0x2be8b8=0x0;_0x2be8b8<_0x2f3add['length'];_0x2be8b8++){if(_0xe633dd[_0x3bc1('0x3c')](_0x2f3add[_0x2be8b8]['id'])&&_0x2f3add[_0x2be8b8][_0x3bc1('0x4a')]&&(_0x2f3add[_0x2be8b8]['isIncorrect']=!0x0),_0x2f3add[_0x2be8b8][_0x3bc1('0x68')])continue;if(0x0==_0x2f3add[_0x2be8b8][_0x3bc1('0x10e')])continue;if(_0x3bc1('0xeb')!=_0x2f3add[_0x2be8b8][_0x3bc1('0x88')])continue;if(null==_0x2f3add[_0x2be8b8][_0x3bc1('0xf9')])continue;let _0x3197c2=_0x2be8b8+0x1,_0x285150=0x0;for(;_0x2f3add[_0x3197c2]['id']!=_0x2f3add[_0x2be8b8][_0x3bc1('0xf9')];)_0x3bc1('0xeb')==_0x2f3add[_0x3197c2]['type']?_0x285150++:'elementEnd'==_0x2f3add[_0x3197c2][_0x3bc1('0x88')]&&_0x285150--,_0x3197c2++;if(0x0!=_0x285150){if(_0x2f3add[_0x2be8b8]['isRemoved'])_0x2f3add[_0x2be8b8][_0x3bc1('0x68')]=!0x0;else for(;_0x3197c2!=_0x2be8b8;)_0x2f3add[_0x3197c2][_0x3bc1('0x4a')]&&0x0!=_0x2f3add[_0x3197c2][_0x3bc1('0x10e')]&&(_0x2f3add[_0x3197c2][_0x3bc1('0x68')]=!0x0,_0xe633dd[_0x3bc1('0x9f')](_0x2f3add[_0x3197c2][_0x3bc1('0xf9')])),_0x3197c2--;}}return _0x2f3add['filter'](_0x107bf2=>!_0x107bf2[_0x3bc1('0x68')]);}[_0x3bc1('0xb0')](_0x2aa02a){const _0x4bb7c0=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')];for(let _0x34db51=0x0;_0x34db51<_0x2aa02a[_0x3bc1('0xa8')];_0x34db51++){if(!(_0x2aa02a[_0x34db51][_0x3bc1('0x4f')]||_0x2aa02a[_0x34db51][_0x3bc1('0x116')]||_0x2aa02a[_0x34db51][_0x3bc1('0x4a')]||_0x2aa02a[_0x34db51][_0x3bc1('0x9c')]))continue;if(0x0==_0x2aa02a[_0x34db51][_0x3bc1('0x10e')])continue;const _0x4c3c14=_0x2aa02a[_0x34db51][_0x3bc1('0xc')];_0x4bb7c0['isBlock'](_0x4c3c14)||_0x4bb7c0[_0x3bc1('0x86')](_0x4c3c14)||(_0x2aa02a[_0x34db51]['isAdded']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x4f')],_0x2aa02a[_0x34db51]['isAddSuggestion']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x116')],_0x2aa02a[_0x34db51]['isRemoveSuggestion']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x9c')],_0x2aa02a[_0x34db51][_0x3bc1('0x4a')]&&(_0x2aa02a[_0x34db51][_0x3bc1('0x68')]=!0x0));}return _0x2aa02a[_0x3bc1('0x51')](_0x3ae074=>!_0x3ae074[_0x3bc1('0x68')]);}[_0x3bc1('0xf6')](_0x1a5608,_0x145bd3,_0xd78e20){const _0x233b33=new _0x111441(),_0x4312d8=[],_0x56219a=new Map(),_0x59133e=this[_0x3bc1('0x5f')][_0x3bc1('0x96')],_0x2c2810=_0x59133e[_0x3bc1('0x9a')],_0x1ed306=[_0x233b33],_0x1d7490={},_0x47650a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa3af25=null;const _0x1c3e7c=[0x0];for(let _0x232bee=0x0;_0x232bee<_0x1a5608[_0x3bc1('0xa8')];_0x232bee++){let _0x236e73,_0x4d1d69;if('elementStart'===_0x1a5608[_0x232bee]['type']){_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c);const _0x449432=new _0x6329a5(_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0xb6')],_0x1a5608[_0x232bee]['item'][_0x3bc1('0x69')]());_0x1ed306[0x0][_0x3bc1('0xfa')](_0x449432),_0x1c3e7c['push'](0x0),_0x1ed306[_0x3bc1('0x2d')](_0x449432),_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25=null;}else{if(_0x3bc1('0xff')===_0x1a5608[_0x232bee]['type'])_0x1ed306[_0x3bc1('0x91')](),_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0x1c3e7c['pop'](),_0x1c3e7c[_0x1c3e7c['length']-0x1]++,_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25=null;else{if(_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25&&_0x27fff3(_0xa3af25,_0x1a5608[_0x232bee][_0x3bc1('0xc')]))_0xa3af25[_0x3bc1('0x22')]+=_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x7')];else{const _0x169b4=new _0x1fd28b(_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x7')],_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x69')]());_0x1ed306[0x0]['_appendChild'](_0x169b4),_0xa3af25=_0x169b4;}_0x1c3e7c[_0x1c3e7c[_0x3bc1('0xa8')]-0x1]+=_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x58')],_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c);}}for(const _0x6606da of _0x1a5608[_0x232bee][_0x3bc1('0x73')])_0x56219a[_0x3bc1('0x92')](_0x6606da,{'start':_0x236e73,'end':null});_0x2d7448(_0x3bc1('0x9c'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x116'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x4a'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x4f'),_0x232bee,_0x236e73,_0x4d1d69);for(const _0x31fc98 of _0x1a5608[_0x232bee][_0x3bc1('0x39')]){_0x56219a[_0x3bc1('0x117')](_0x31fc98)['end']=_0x4d1d69;}}for(const [_0x64578f,_0x541b49]of _0x56219a){const _0x1bd1c6=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x50')](_0x541b49['start'],_0x541b49[_0x3bc1('0xef')]);_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x92')](_0x64578f,_0x1bd1c6);}return _0x4312d8[_0x3bc1('0xc8')]((_0x262b64,_0x1e97e2)=>{const _0x543a57=_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x262b64['id']),_0x366065=_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x1e97e2['id']);return _0x543a57[_0x3bc1('0x82')][_0x3bc1('0x49')](_0x366065['start'])?-0x1:_0x543a57[_0x3bc1('0x82')][_0x3bc1('0x119')](_0x366065['start'])?0x1:_0x543a57['end'][_0x3bc1('0x49')](_0x366065['end'])?-0x1:_0x543a57[_0x3bc1('0xef')][_0x3bc1('0x119')](_0x366065[_0x3bc1('0xef')])?0x1:'add'===_0x262b64[_0x3bc1('0x88')]?-0x1:0x1;}),{'root':_0x233b33,'changes':_0x4312d8};function _0x2d7448(_0x1edc2f,_0xea406f,_0x495ae4,_0x1767d5){const _0x3b1371=!!_0x1a5608[_0xea406f][_0x1edc2f],_0x32a4e2=_0x3b1371?_0x1a5608[_0xea406f][_0x1edc2f][_0x3bc1('0xbc')]:null,_0x6f3d52=_0xea406f===_0x1a5608['length']-0x1,_0xa17e50=_0x47650a[_0x1edc2f][0x0],_0x2482d6=_0x2c2810['isObject'](_0x1a5608[_0xea406f][_0x3bc1('0xc')]);!_0x1d7490[_0x1edc2f]&&_0x3b1371?_0x1d7490[_0x1edc2f]={'start':_0x495ae4,'tapeItem':_0x1a5608[_0xea406f],'userId':_0x32a4e2,'type':_0x1edc2f}:_0x1d7490[_0x1edc2f]&&!_0x3b1371?(_0x1d7490[_0x1edc2f][_0x3bc1('0xef')]=_0x495ae4,_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]=null):_0x1d7490[_0x1edc2f]&&_0x3b1371&&_0x1d7490[_0x1edc2f][_0x3bc1('0xbc')]!==_0x32a4e2&&(_0x1d7490[_0x1edc2f][_0x3bc1('0xef')]=_0x495ae4,_0xa17e50&&_0xa17e50[_0x3bc1('0xbc')]===_0x1d7490[_0x1edc2f][_0x3bc1('0xbc')]||_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]={'start':_0x495ae4,'tapeItem':_0x1a5608[_0xea406f],'userId':_0x32a4e2,'type':_0x1edc2f}),_0x1d7490[_0x1edc2f]&&_0x2482d6&&(_0x3bc1('0xeb')!==_0x1a5608[_0xea406f][_0x3bc1('0x88')]||_0xa17e50&&_0xa17e50[_0x3bc1('0xbc')]===_0x32a4e2||_0x47650a[_0x1edc2f][_0x3bc1('0x2d')]({'userId':_0x32a4e2,'object':_0x1a5608[_0xea406f]['item'],'change':_0x1d7490[_0x1edc2f]}),_0x3bc1('0xff')===_0x1a5608[_0xea406f][_0x3bc1('0x88')]&&_0xa17e50&&_0xa17e50[_0x3bc1('0xd5')]===_0x1a5608[_0xea406f][_0x3bc1('0xc')]&&(_0x47650a[_0x1edc2f][_0x3bc1('0x91')](),_0x1d7490[_0x1edc2f]=_0xa17e50[_0x3bc1('0x70')])),_0x1d7490[_0x1edc2f]&&_0x6f3d52&&(_0x1d7490[_0x1edc2f]['end']=_0x1767d5,_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]=null);}function _0x40728f({start:_0x12795e,end:_0x433fa0,tapeItem:_0x1f92d8,userId:_0x4c750c,type:_0x592a4c}){const _0x41ed69=_0x1f92d8['item'],_0x46c0b2=_0x59133e[_0x3bc1('0x9a')][_0x3bc1('0x1e')](_0x41ed69)&&!_0x59133e[_0x3bc1('0x9a')]['isLimit'](_0x41ed69),_0x38977e=_0x12795e[_0x3bc1('0xf1')]==_0x433fa0[_0x3bc1('0x5a')]&&_0x433fa0[_0x3bc1('0xfe')];if(_0x46c0b2&&_0x38977e)return;const _0x3ecde1=_0x59133e['createRange'](_0x12795e,_0x433fa0),_0x60f2e0=_0x145bd3[_0x3bc1('0x117')](_0x4c750c),_0x3d9cec=new _0x28f86b({'author':_0x60f2e0,'type':_0x3bc1('0x4f')==_0x592a4c||_0x3bc1('0x116')==_0x592a4c?_0x3bc1('0x9f'):_0x3bc1('0x1a'),'data':{'isSuggestion':'isAddSuggestion'==_0x592a4c||'isRemoveSuggestion'==_0x592a4c},'createdAt':new Date(),'rootName':_0xd78e20});_0x4312d8[_0x3bc1('0x11c')](_0x3d9cec),_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x92')](_0x3bc1('0x6d')+_0x3d9cec['id'],_0x3ecde1);}function _0x27fff3(_0x1f34d0,_0x964e4d){const _0xa398c2=_0x1f34d0[_0x3bc1('0x69')](),_0x34b250=_0x964e4d['getAttributes']();for(const _0x476495 of _0xa398c2){if(_0x476495[0x1]!==_0x964e4d[_0x3bc1('0x36')](_0x476495[0x0]))return!0x1;_0x34b250[_0x3bc1('0xe3')]();}return _0x34b250[_0x3bc1('0xe3')]()[_0x3bc1('0xca')];}}[_0x3bc1('0x23')](){this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))[_0x3bc1('0x8a')]({'view':_0x3bc1('0xa3')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')]['for'](_0x3bc1('0x118'))['markerToHighlight']({'model':'revision','view':_0x5d2594=>{const _0x3a6508=_0x5d2594['markerName']['split'](':')[0x1],_0x50b18b=this['_getChangeFromId'](_0x3a6508);if(!_0x50b18b)return null;const _0x3dafd8=_0x3bc1('0x9f')==_0x50b18b[_0x3bc1('0x88')]?_0x3bc1('0xf2'):'deletion',_0x1429f9=[_0x3bc1('0x37'),'ck-suggestion-marker-'+_0x3dafd8];return _0x50b18b[_0x3bc1('0x7')][_0x3bc1('0x10a')]&&_0x1429f9['push'](_0x3bc1('0x14')+_0x3dafd8+_0x3bc1('0x31')),this[_0x3bc1('0xb8')]==_0x50b18b&&_0x1429f9[_0x3bc1('0x11c')](_0x3bc1('0xc9')),{'classes':_0x1429f9,'attributes':{'data-change-id':_0x3a6508}};}}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))[_0x3bc1('0x9f')](_0x45fcdf=>{_0x45fcdf['on']('element:pre',(_0x301210,_0x12a186,_0x45576c)=>{const _0x35b9cf=_0x12a186[_0x3bc1('0x63')][_0x3bc1('0xfb')](0x0);if(!_0x35b9cf||!_0x35b9cf['is'](_0x3bc1('0xda'),_0x3bc1('0xb7')))return;if(!_0x45576c[_0x3bc1('0x8f')][_0x3bc1('0x41')](_0x35b9cf,{'attributes':[_0x3bc1('0x74'),_0x3bc1('0x5e')]}))return;const _0x1e66fa=_0x12a186['modelRange'][_0x3bc1('0x82')][_0x3bc1('0xf1')];_0x45576c[_0x3bc1('0xd4')][_0x3bc1('0x10')](_0x3bc1('0x74'),_0x35b9cf[_0x3bc1('0x36')](_0x3bc1('0x74')),_0x1e66fa),_0x45576c['writer'][_0x3bc1('0x10')](_0x3bc1('0x5e'),_0x35b9cf[_0x3bc1('0x36')](_0x3bc1('0x5e')),_0x1e66fa);},{'priority':_0x3bc1('0xf0')});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['add'](_0x539def=>{_0x539def['on']('element',(_0x5dc332,_0x1a515f,_0x37e4f2)=>{if(!_0x37e4f2['consumable'][_0x3bc1('0x41')](_0x1a515f['viewItem'],{'attributes':[_0x3bc1('0x74'),_0x3bc1('0x5e')]}))return;if(_0x1a515f[_0x3bc1('0x76')][_0x3bc1('0xd3')])return;const _0x4d4965=_0x1a515f[_0x3bc1('0x76')][_0x3bc1('0x82')]['nodeAfter'];_0x4d4965[_0x3bc1('0xb2')](_0x3bc1('0x74'))||_0x4d4965[_0x3bc1('0xb2')]('vid')||(_0x37e4f2[_0x3bc1('0xd4')][_0x3bc1('0x10')](_0x3bc1('0x74'),_0x1a515f[_0x3bc1('0x63')][_0x3bc1('0x36')](_0x3bc1('0x74')),_0x4d4965),_0x37e4f2['writer']['setAttribute'](_0x3bc1('0x5e'),_0x1a515f[_0x3bc1('0x63')][_0x3bc1('0x36')]('vid_end'),_0x4d4965));},{'priority':_0x3bc1('0xf0')});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x552a85=>_0x552a85[_0x3bc1('0x36')]('vid')}}),this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')]['on'](_0x3bc1('0xbe'),(_0x4ab610,[,_0x3e8602])=>{[_0x3bc1('0x74'),_0x3bc1('0x5e'),_0x3bc1('0xea')]['includes'](_0x3e8602)&&(_0x4ab610[_0x3bc1('0x48')]=!0x0,_0x4ab610['stop']());},{'priority':'highest'}),this[_0x3bc1('0x5f')]['conversion'][_0x3bc1('0xe')](_0x3bc1('0x30'))[_0x3bc1('0x9f')](_0x2e64a9=>{_0x2e64a9['on'](_0x3bc1('0x87'),(_0x1a85e7,_0x2f05f3,_0x3a6bcb)=>{if('\x20'!=_0x2f05f3[_0x3bc1('0xc')][_0x3bc1('0x7')]||_0x2f05f3[_0x3bc1('0xc')]['parent']['maxOffset']>0x1)return;if(!_0x3a6bcb[_0x3bc1('0x8f')][_0x3bc1('0x41')](_0x2f05f3['item'],_0x1a85e7[_0x3bc1('0xb6')]))return;const _0x38f411=_0x3a6bcb[_0x3bc1('0xd4')],_0x231127=_0x3a6bcb[_0x3bc1('0x29')]['toViewRange'](_0x2f05f3[_0x3bc1('0xc6')]);_0x38f411[_0x3bc1('0x71')](_0x231127,_0x38f411['createAttributeElement'](_0x3bc1('0xdf')));});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x30'))[_0x3bc1('0x34')]({'model':_0x3bc1('0xa3')}),this[_0x3bc1('0x5f')]['editing']['downcastDispatcher']['on'](_0x3bc1('0x66'),function(_0x528169){const _0x29977a=_0x528169[_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0x5d'));return(_0x8c2bf0,_0x473967,_0x33ad36)=>{const _0x2cfdc8=_0x473967['markerName'][_0x3bc1('0x2')](':')[0x1],_0x436739=_0x29977a[_0x3bc1('0x60')](_0x2cfdc8);if(!_0x436739)return null;const _0x5b85ec='add'==_0x436739[_0x3bc1('0x88')]?_0x3bc1('0x2'):'merge';if(!_0x33ad36[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x473967[_0x3bc1('0xdb')],_0x8c2bf0[_0x3bc1('0xb6')]))return;const _0x1252f5=_0x473967['markerRange'][_0x3bc1('0x64')](),_0x5e486a=_0x473967[_0x3bc1('0xdb')]['start'],_0x36f53c=_0x528169['model']['schema'];let _0x319bcd=null,_0x5d1e3e=null,_0x45609a=!0x1,_0x1ebd72=!0x1;for(const _0x13097a of _0x1252f5){const _0xae206=_0x13097a[_0x3bc1('0xc')];_0x45609a=_0x45609a||_0x36f53c['isContent'](_0xae206);const _0x787092=_0x33ad36[_0x3bc1('0x29')][_0x3bc1('0x6b')](_0xae206);if(_0x787092&&_0x787092[_0x3bc1('0x19')](_0x3bc1('0xdd')))return;_0x3bc1('0xff')==_0x13097a['type']&&(_0x36f53c[_0x3bc1('0x1e')](_0xae206)&&!_0x36f53c['isLimit'](_0xae206)&&(_0xae206['nextSibling']||_0x5e486a[_0x3bc1('0x98')]?_0x319bcd&&_0x319bcd[_0x3bc1('0x5a')]==_0xae206||(_0x319bcd=_0xae206,_0x9a9e91(_0x13097a[_0x3bc1('0x107')]),_0x1ebd72=!0x0):_0x5d1e3e=_0x5d1e3e||_0x13097a['previousPosition']));}function _0x9a9e91(_0x42d1f4){const _0x15c04d=_0x33ad36[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0x14')+_0x5b85ec}),_0x3973ba=_0x33ad36[_0x3bc1('0x29')][_0x3bc1('0x8d')](_0x42d1f4);_0x436739[_0x3bc1('0x7')]['isSuggestion']&&_0x33ad36[_0x3bc1('0xd4')]['addClass']('ck-suggestion-marker-'+_0x5b85ec+_0x3bc1('0x31'),_0x15c04d),_0x29977a[_0x3bc1('0xb8')]==_0x436739&&_0x33ad36[_0x3bc1('0xd4')]['addClass'](_0x3bc1('0xc9'),_0x15c04d),_0x33ad36[_0x3bc1('0xd4')][_0x3bc1('0x83')](_0x3973ba,_0x15c04d),_0x33ad36[_0x3bc1('0x29')]['bindElementToMarker'](_0x15c04d,_0x473967[_0x3bc1('0x53')]);}_0x45609a||_0x1ebd72||!_0x5d1e3e||_0x9a9e91(_0x5d1e3e);};}(this['editor']),{'priority':'high'}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x65')]['on']('removeMarker:revision',(_0x59e318,_0x179bd5,_0x3d1f8b)=>{const _0x14f7c2=_0x3d1f8b[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x179bd5[_0x3bc1('0x53')]);if(_0x14f7c2)for(const _0x27e8ee of _0x14f7c2)(_0x27e8ee[_0x3bc1('0xc3')](_0x3bc1('0x11'))||_0x27e8ee['hasClass']('ck-suggestion-marker-merge'))&&(_0x3d1f8b['mapper'][_0x3bc1('0xb4')](_0x27e8ee,_0x179bd5['markerName']),_0x3d1f8b[_0x3bc1('0xd4')]['remove'](_0x27e8ee));},{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['downcastDispatcher']['on'](_0x3bc1('0x66'),(_0x3c8f9d,_0x39ec00,_0x292bed)=>{const _0x3c9ad4=_0x39ec00[_0x3bc1('0x53')]['split'](':')[0x1],_0x20f67f=this[_0x3bc1('0x60')](_0x3c9ad4);if(!_0x20f67f)return null;const _0x61c5f9=_0x3bc1('0x9f')==_0x20f67f[_0x3bc1('0x88')]?_0x3bc1('0x2'):_0x3bc1('0x2c');if(_0x292bed[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x39ec00[_0x3bc1('0xdb')],_0x3c8f9d[_0x3bc1('0xb6')]))for(const _0x41917c of _0x39ec00[_0x3bc1('0xdb')][_0x3bc1('0x28')]()){if(!_0x41917c['is'](_0x3bc1('0xda'),_0x3bc1('0xb1')))continue;const _0x318dd5=_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0x14')+_0x61c5f9}),_0x2f8c16=_0x292bed[_0x3bc1('0x29')][_0x3bc1('0x8d')](this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0xc5')](_0x41917c));_0x20f67f[_0x3bc1('0x7')][_0x3bc1('0x10a')]&&_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0x72')]('ck-suggestion-marker-'+_0x61c5f9+_0x3bc1('0x31'),_0x318dd5),this[_0x3bc1('0xb8')]==_0x20f67f&&_0x292bed['writer'][_0x3bc1('0x72')](_0x3bc1('0xc9'),_0x318dd5),_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0x83')](_0x2f8c16,_0x318dd5),_0x292bed[_0x3bc1('0x29')][_0x3bc1('0x6')](_0x318dd5,_0x39ec00[_0x3bc1('0x53')]);}},{'priority':'high'}),this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document']['on'](_0x3bc1('0x70'),()=>{this['editor'][_0x3bc1('0x42')][_0x3bc1('0x11d')]['change'](_0x22ce1c=>{for(const _0x31a933 of this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document'][_0x3bc1('0x6e')]()){const _0x551f08=this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')]['getRoot'](_0x31a933),_0x1d08b8=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')]['document'][_0x3bc1('0x25')](_0x31a933);if(_0x1d08b8){const _0x241845=_0x551f08[_0x3bc1('0x36')](_0x3bc1('0x4b'));if(_0x22ce1c['removeAttribute']('data-change-id',_0x1d08b8),_0x22ce1c['removeClass'](_0x3bc1('0x79'),_0x1d08b8),_0x22ce1c[_0x3bc1('0x67')]('ck-revision-history-root-remove',_0x1d08b8),_0x22ce1c['removeClass'](_0x3bc1('0xb3'),_0x1d08b8),_0x241845){const _0x43f8a5=this[_0x3bc1('0x60')](_0x241845);if(!_0x43f8a5)return null;_0x22ce1c['setAttribute'](_0x3bc1('0x55'),_0x241845,_0x1d08b8),_0x22ce1c[_0x3bc1('0x72')]('ck-revision-history-root-'+_0x43f8a5[_0x3bc1('0x88')],_0x1d08b8),this[_0x3bc1('0xb8')]==_0x43f8a5&&_0x22ce1c[_0x3bc1('0x72')](_0x3bc1('0xb3'),_0x1d08b8);}}}});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')]['for']('upcast')[_0x3bc1('0x8a')]({'view':'comment','model':_0x5717b0=>_0x3bc1('0xe8')+_0x5717b0,'converterPriority':_0x3bc1('0x35')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['dataToMarker']({'view':_0x3bc1('0xe1'),'model':_0xcc70ed=>_0x3bc1('0x102')+_0xcc70ed,'converterPriority':_0x3bc1('0x35')}),this['editor'][_0x3bc1('0xa6')]['for'](_0x3bc1('0x30'))['markerToData']({'model':_0x3bc1('0x11a'),'view':_0x59ab80=>({'name':'suggestion:'+_0x59ab80,'group':_0x3bc1('0x11a')}),'converterPriority':_0x3bc1('0x35')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x118'))[_0x3bc1('0x77')]({'model':_0x3bc1('0x11a'),'view':_0x30b8c2=>{const _0x57eba7=_0x30b8c2[_0x3bc1('0x53')][_0x3bc1('0x2')](':')[0x1];return _0x3bc1('0xf2')!=_0x57eba7&&_0x3bc1('0x6a')!=_0x57eba7?null:{'classes':[_0x3bc1('0x1'),_0x3bc1('0xfd')+_0x57eba7]};}}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x65')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x3bc1('0x5f')],'merge'),{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['downcastDispatcher']['on'](_0x3bc1('0x8c'),et(this[_0x3bc1('0x5f')],_0x3bc1('0x2')),{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')]['editing'][_0x3bc1('0x65')]['on']('removeMarker:revision-suggestion',(_0x424845,_0x214d37,_0x525c55)=>{const _0x14804e=_0x525c55[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x214d37[_0x3bc1('0x53')]);if(_0x14804e)for(const _0x22a1a8 of _0x14804e)_0x22a1a8['is'](_0x3bc1('0xdc'))&&(_0x525c55[_0x3bc1('0x29')]['unbindElementFromMarkerName'](_0x22a1a8,_0x214d37[_0x3bc1('0x53')]),_0x525c55[_0x3bc1('0xd4')]['remove'](_0x22a1a8));},{'priority':_0x3bc1('0x62')});}['_getChangeFromId'](_0x58252f){return this[_0x3bc1('0x5')][_0x3bc1('0x117')](_0x58252f);}['_getViewForChange'](_0x28a39a){return this[_0x3bc1('0xad')]&&this[_0x3bc1('0xad')][_0x3bc1('0x20')](),this[_0x3bc1('0xad')]=new _0x44934d(this['editor'][_0x3bc1('0x7f')],_0x28a39a),this[_0x3bc1('0xad')];}[_0x3bc1('0x106')](){this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document'][_0x3bc1('0x4c')]['observeMarkers'](_0x3bc1('0xa3')),this['on']('change:activeView',(_0x30afc8,_0xd8187,_0x22c00e,_0x4b779e)=>{_0x4b779e&&this[_0x3bc1('0x89')][_0x3bc1('0x1a')](_0x4b779e),_0x22c00e&&(this[_0x3bc1('0x89')][_0x3bc1('0x9f')]({'view':_0x22c00e,'stackId':_0x3bc1('0xe6'),'position':{'target':()=>{const _0x474a7e=this[_0x3bc1('0x5f')]['editing'],_0x196f36=this[_0x3bc1('0x60')](_0x22c00e[_0x3bc1('0x12')]);let _0x39d5d6;if(_0x196f36['data'][_0x3bc1('0x114')]){const _0x55f401=_0x474a7e[_0x3bc1('0x11d')]['getDomRoot'](_0x196f36[_0x3bc1('0x10c')]);_0x39d5d6=Array['from'](_0x55f401[_0x3bc1('0xac')]());}else{const _0x18b25f=this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x22c00e[_0x3bc1('0x12')]);_0x39d5d6=Array[_0x3bc1('0xc2')](_0x474a7e[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x18b25f[_0x3bc1('0xb6')]))[_0x3bc1('0xc1')](_0x59171e=>_0x474a7e[_0x3bc1('0x11d')][_0x3bc1('0x103')][_0x3bc1('0xab')](_0x59171e))[_0x3bc1('0xc1')](_0x1f464b=>Array[_0x3bc1('0xc2')](_0x1f464b[_0x3bc1('0xac')]()))[_0x3bc1('0xe2')]();}if(!this[_0x3bc1('0xfc')])return _0x39d5d6[0x0];return _0x39d5d6[_0x3bc1('0x26')](_0x59d19e=>_0x59d19e['top']-0x3<=this[_0x3bc1('0xfc')]['y']&&_0x59d19e[_0x3bc1('0xb')]+0x3>=this[_0x3bc1('0xfc')]['y']&&_0x59d19e[_0x3bc1('0xba')]-0x3<=this[_0x3bc1('0xfc')]['x']&&_0x59d19e[_0x3bc1('0x109')]+0x3>=this[_0x3bc1('0xfc')]['x'])||_0x39d5d6[0x0];}}}),this[_0x3bc1('0x89')][_0x3bc1('0x1b')]('revisionHistoryLabel'));}),this['on'](_0x3bc1('0xa7'),(_0x4be7b9,_0x592399,_0x218c3e,_0x42c099)=>{this['activeView']=_0x218c3e?this[_0x3bc1('0xaa')](_0x218c3e):null,this[_0x3bc1('0x5f')]['model']['change'](()=>{const _0x5c39cc=this['editor'][_0x3bc1('0x42')];_0x42c099&&(_0x42c099['data'][_0x3bc1('0x114')]?_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x167c4b=>{_0x167c4b[_0x3bc1('0x67')](_0x3bc1('0xb3'),_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x25')](_0x42c099[_0x3bc1('0x10c')]));}):_0x5c39cc[_0x3bc1('0x4e')](_0x3bc1('0x6d')+_0x42c099['id'])),_0x218c3e&&(_0x218c3e[_0x3bc1('0x7')]['isOnRoot']?_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x1e9ba2=>{_0x1e9ba2[_0x3bc1('0x72')](_0x3bc1('0xb3'),_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x25')](_0x218c3e[_0x3bc1('0x10c')]));}):_0x5c39cc[_0x3bc1('0x4e')]('revision:'+_0x218c3e['id']));});}),this[_0x3bc1('0x57')](this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')],_0x3bc1('0xee'),(_0x2d235b,_0x39db5d)=>{if(this[_0x3bc1('0xb8')])return;const _0x565ab6=this['_findChangeIdFromDomTarget'](_0x39db5d[_0x3bc1('0xc7')]),_0x3dfc2e=this[_0x3bc1('0x5')]['get'](_0x565ab6);_0x3dfc2e?(this['_activeViewTarget']={'x':_0x39db5d[_0x3bc1('0x7d')]['x'],'y':_0x39db5d['domEvent']['y']},this[_0x3bc1('0xa5')]=this[_0x3bc1('0xaa')](_0x3dfc2e)):(this[_0x3bc1('0xfc')]=null,this['activeView']=null);}),this[_0x3bc1('0x57')](this[_0x3bc1('0x5f')]['editing']['view'][_0x3bc1('0x1c')],_0x3bc1('0x7b'),(_0x18d2a3,_0x2c8d0f)=>{const _0x58a85e=this['_findChangeIdFromDomTarget'](_0x2c8d0f[_0x3bc1('0xc7')]),_0x1c205b=this['_changeIdToChange'][_0x3bc1('0x117')](_0x58a85e);_0x1c205b?(this[_0x3bc1('0xfc')]={'x':_0x2c8d0f[_0x3bc1('0x7d')]['x'],'y':_0x2c8d0f[_0x3bc1('0x7d')]['y']},_0x1c205b===this[_0x3bc1('0xb8')]?this[_0x3bc1('0x89')]['updatePosition']():this['activeChange']=_0x1c205b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x475427){do{const _0x4ac670=_0x475427['getAttribute'](_0x3bc1('0x55'));if(_0x4ac670)return _0x4ac670;_0x475427=_0x475427[_0x3bc1('0x5a')];}while(_0x475427);return null;}[_0x3bc1('0x43')](){this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['change'](_0x3c0253=>{for(const _0x2a79ca of this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['markers'])_0x3c0253[_0x3bc1('0xf8')](_0x2a79ca);});}}function et(_0x172fce,_0x593898){return(_0x5988c3,_0x2312d0,_0x291f18)=>{if(!_0x291f18[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x2312d0[_0x3bc1('0xdb')],_0x5988c3['name']))return;const _0x5ec43b=_0x2312d0[_0x3bc1('0xdb')][_0x3bc1('0x64')](),_0x24f9ba=_0x2312d0[_0x3bc1('0xdb')]['start'],_0x258614=_0x172fce['model'][_0x3bc1('0x9a')];let _0x2396d1=null,_0x431a85=null,_0x28bb21=!0x1,_0x264049=!0x1;for(const _0x189850 of _0x5ec43b){const _0x51f52d=_0x189850[_0x3bc1('0xc')];_0x28bb21=_0x28bb21||_0x258614[_0x3bc1('0x16')](_0x51f52d);const _0x2271a8=_0x291f18[_0x3bc1('0x29')][_0x3bc1('0x6b')](_0x51f52d);if(_0x2271a8&&_0x2271a8[_0x3bc1('0x19')](_0x3bc1('0xdd')))return;'elementEnd'==_0x189850[_0x3bc1('0x88')]&&(_0x258614[_0x3bc1('0x1e')](_0x51f52d)&&!_0x258614[_0x3bc1('0x86')](_0x51f52d)&&(_0x51f52d[_0x3bc1('0xd9')]||_0x24f9ba[_0x3bc1('0x98')]?_0x2396d1&&_0x2396d1[_0x3bc1('0x5a')]==_0x51f52d||(_0x2396d1=_0x51f52d,_0x3d78ec(_0x189850[_0x3bc1('0x107')]),_0x264049=!0x0):_0x431a85=_0x431a85||_0x189850[_0x3bc1('0x107')]));}function _0x3d78ec(_0x2e4798){const _0x4952f2=_0x291f18[_0x3bc1('0x29')][_0x3bc1('0x8d')](_0x2e4798),_0x193d30=_0x291f18[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0xfd')+_0x593898});_0x291f18['writer'][_0x3bc1('0x83')](_0x4952f2,_0x193d30),_0x291f18[_0x3bc1('0x29')]['bindElementToMarker'](_0x193d30,_0x2312d0['markerName']);}_0x28bb21||_0x264049||!_0x431a85||_0x3d78ec(_0x431a85);};}export class RestoreRevisionCommand extends _0x484f37{constructor(_0x1bfc13){super(_0x1bfc13);const _0x320004=_0x1bfc13[_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x101')]=!0x1,this[_0x3bc1('0x57')](_0x320004,_0x3bc1('0xe4'),()=>this[_0x3bc1('0xc0')]()),this[_0x3bc1('0x57')](_0x320004,_0x3bc1('0x2a'),()=>this['refresh']());}['execute'](){const _0x19efc7=this['editor'],_0x124e5d=_0x19efc7[_0x3bc1('0xaf')][_0x3bc1('0x117')](d),_0x1b2b6b=_0x124e5d[_0x3bc1('0xc4')]?_0x124e5d[_0x3bc1('0x8b')][_0x3bc1('0x27')]:null;_0x19efc7[_0x3bc1('0x2b')][_0x3bc1('0x117')](_0x3bc1('0xd'))['restoreRevisionCallback'](_0x1b2b6b);}[_0x3bc1('0xc0')](){const {isReady:_0x3e7094,isEnabled:_0x9a19f1}=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')]['get'](d);this[_0x3bc1('0x61')]=_0x3e7094&&_0x9a19f1;}}export class ShowChangeCommand extends _0x484f37{constructor(_0x16e669,{direction:_0x157b93}){super(_0x16e669);const _0x565b48=_0x16e669[_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x101')]=!0x1,this[_0x3bc1('0x84')]='forward'===_0x157b93?0x1:-0x1,this[_0x3bc1('0x57')](_0x565b48,_0x3bc1('0xe4'),()=>this[_0x3bc1('0xc0')]()),this[_0x3bc1('0x57')](_0x565b48,'change:isEnabled',()=>this[_0x3bc1('0xc0')]()),this['listenTo'](_0x565b48,_0x3bc1('0xa7'),()=>this['refresh']());}[_0x3bc1('0x18')](){const _0x5eec64=this[_0x3bc1('0x5f')],_0x399773=_0x5eec64[_0x3bc1('0xaf')][_0x3bc1('0x117')](d),{isNavigationMode:_0x5bac03,currentChangeNumber:_0x59e13f}=_0x399773;let _0x473aac;if(_0x399773[_0x3bc1('0xb8')]=_0x5bac03?_0x399773[_0x3bc1('0x8b')]['changes'][_0x3bc1('0x117')](_0x59e13f+this['_step']):_0x399773[_0x3bc1('0x8b')][_0x3bc1('0x110')]['first'],_0x399773[_0x3bc1('0xb8')][_0x3bc1('0x7')][_0x3bc1('0x114')])_0x473aac=_0x5eec64[_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x95')](_0x399773[_0x3bc1('0xb8')][_0x3bc1('0x10c')]);else{const _0x217efa=_0x5eec64[_0x3bc1('0x96')][_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x399773[_0x3bc1('0xb8')]['id']);_0x473aac=_0x1340aa(_0x5eec64[_0x3bc1('0x42')],_0x217efa);}_0x23e2a0({'target':_0x473aac,'viewportOffset':0x28});}[_0x3bc1('0xc0')](){const {isNavigationMode:_0x2f2acd,currentChangeNumber:_0x3d9d55,numberOfChanges:_0x28b4b2,isReady:_0x3db022,isEnabled:_0xaaca10}=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x61')]=!!(_0xaaca10&&_0x3db022&&_0x28b4b2)&&(!_0x2f2acd||(0x1===this['_step']?_0x3d9d55<_0x28b4b2-0x1:_0x3d9d55>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e56=['locale','first','function','threeVerticalDots','children','add','_action','stopPropagation','source','ck-on','button','listenTo','Name\x20this\x20revision','Show\x20more\x20items','action','class','execute','listView','Compare\x20against\x20selected','map','isActionsDropdownOpen','extendTemplate','isEnabled','name','set','bindTemplate','isReady','items','buttonView','find','isVisible','Restore\x20this\x20revision'];(function(_0x3ad791,_0x2e56f8){const _0x12ac82=function(_0xd1996b){while(--_0xd1996b){_0x3ad791['push'](_0x3ad791['shift']());}};_0x12ac82(++_0x2e56f8);}(_0x2e56,0x15b));const _0x12ac=function(_0x3ad791,_0x2e56f8){_0x3ad791=_0x3ad791-0x0;let _0x12ac82=_0x2e56[_0x3ad791];return _0x12ac82;};import{Collection as _0x516647}from'ckeditor5/src/utils';import{icons as _0x3167da}from'ckeditor5/src/core';import{Model as _0x59b0a3,addListToDropdown as _0x19ed29,createDropdown as _0x47c57a}from'ckeditor5/src/ui';import{getTranslation as _0x358cd4}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x5917d5,_0xd1d2da){const _0x58766c=_0x5917d5[_0x12ac('0x1e')],_0x4304a0=_0x5917d5['locale'],_0x26deed=_0x47c57a(_0x4304a0);_0x26deed['panelPosition']='sw';const _0x3c573a=function(_0x2e7a7c,_0x52234e){const _0x24e822=function(_0x54a3f0,_0x216538){const _0x13c659=_0x54a3f0[_0x12ac('0x5')],_0x5b7b69={'Compare\x20against\x20selected':_0x358cd4(_0x13c659,_0x12ac('0x17')),'Name\x20this\x20revision':_0x358cd4(_0x13c659,_0x12ac('0x11')),'Restore\x20this\x20revision':_0x358cd4(_0x13c659,_0x12ac('0x4'))};return _0x216538[_0x12ac('0x18')](_0x1db264=>{const _0x3cd475=_0x5b7b69[_0x1db264['name']];return _0x3cd475&&_0x3cd475!==_0x1db264[_0x12ac('0x1c')]&&(_0x1db264['name']=_0x3cd475),_0x1db264;});}(_0x2e7a7c,_0x52234e),_0x163b59=new _0x516647();for(const _0x5da4b5 of _0x24e822){const _0x20f9a8={'type':_0x12ac('0xf'),'model':new _0x59b0a3({'label':_0x5da4b5[_0x12ac('0x1c')],'class':_0x5da4b5[_0x12ac('0x14')],'withText':!0x0,'_action':_0x5da4b5[_0x12ac('0x13')]})};_0x20f9a8['model']['bind'](_0x12ac('0x1b'))['to'](_0x2e7a7c,_0x12ac('0x19'),_0x15e190=>'function'!=typeof _0x5da4b5[_0x12ac('0x1b')]||(!_0x15e190||_0x5da4b5[_0x12ac('0x1b')](_0x2e7a7c))),_0x163b59[_0x12ac('0xa')](_0x20f9a8);}return _0x163b59;}(_0x5917d5,_0xd1d2da);return _0x5917d5['bind'](_0x12ac('0x19'))['to'](_0x26deed,'isOpen'),_0x26deed[_0x12ac('0x1')][_0x12ac('0x1d')]({'label':_0x358cd4(_0x4304a0,_0x12ac('0x12')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3167da[_0x12ac('0x8')]}),_0x26deed[_0x12ac('0x1a')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x58766c['if'](_0x12ac('0x19'),_0x12ac('0xe'))]},'on':{'click':_0x58766c['to'](_0x3d270b=>_0x3d270b[_0x12ac('0xc')]())}}),_0x26deed['on'](_0x12ac('0x15'),_0x2f77c1=>{_0x5917d5[_0x12ac('0x1f')]&&_0x12ac('0x7')==typeof _0x2f77c1[_0x12ac('0xd')][_0x12ac('0xb')]&&_0x2f77c1[_0x12ac('0xd')][_0x12ac('0xb')](_0x5917d5);}),_0x19ed29(_0x26deed,_0x3c573a),_0x26deed[_0x12ac('0x10')](_0x5917d5,'change:isActionsDropdownOpen',(_0x42bc4a,_0x46a6d6,_0x2b7538)=>{if(_0x2b7538)for(const _0x462ce6 of _0x26deed[_0x12ac('0x16')][_0x12ac('0x0')]){const _0x5d2234=_0x462ce6[_0x12ac('0x9')][_0x12ac('0x6')],_0x1f3d48=_0xd1d2da[_0x12ac('0x2')](_0x3c096d=>_0x3c096d[_0x12ac('0x13')]===_0x5d2234[_0x12ac('0xb')])[_0x12ac('0x3')];_0x462ce6['isVisible']=void 0x0===_0x1f3d48||_0x1f3d48(_0x5917d5);}}),_0x26deed;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52fd=['setTemplate','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','span','push','Revision\x20creator','set','Revision\x20author','name'];(function(_0x17ec92,_0x52fdf7){const _0x37bf2a=function(_0x1c881a){while(--_0x1c881a){_0x17ec92['push'](_0x17ec92['shift']());}};_0x37bf2a(++_0x52fdf7);}(_0x52fd,0xc8));const _0x37bf=function(_0x17ec92,_0x52fdf7){_0x17ec92=_0x17ec92-0x0;let _0x37bf2a=_0x52fd[_0x17ec92];return _0x37bf2a;};import{View as _0x22fc38,IconView as _0x2e0cc0}from'ckeditor5/src/ui';import{getTranslation as _0x50bb83}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x5d8255 from'../../../theme/icons/user.svg';export default class ti extends _0x22fc38{constructor(_0x5baed3,_0x220e77,_0x2c8dc8){super(_0x5baed3);const _0xaf0390=new _0x2e0cc0();_0xaf0390[_0x37bf('0x4')]({'content':_0x5d8255,'viewBox':_0x37bf('0x8')});const _0x9d0314=['ck',_0x37bf('0x0')];_0x2c8dc8&&_0x9d0314[_0x37bf('0x2')]('ck-revision-history-sidebar__revision-author_creator');const _0x16b43a=[{'tag':_0x37bf('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x50bb83(_0x5baed3,_0x2c8dc8?_0x37bf('0x3'):_0x37bf('0x5'))},'children':[_0xaf0390,_0x220e77[_0x37bf('0x6')]]}];this[_0x37bf('0x7')]({'tag':'li','attributes':{'class':_0x9d0314},'children':_0x16b43a});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x16e4=['span','extendTemplate','ck-revision-history-sidebar__revision-name','Revision\x20name'];(function(_0x4526dd,_0x16e456){var _0x27c01a=function(_0xedbe5e){while(--_0xedbe5e){_0x4526dd['push'](_0x4526dd['shift']());}};_0x27c01a(++_0x16e456);}(_0x16e4,0x186));var _0x27c0=function(_0x4526dd,_0x16e456){_0x4526dd=_0x4526dd-0x0;var _0x27c01a=_0x16e4[_0x4526dd];return _0x27c01a;};import{LabeledFieldView as _0x513c5f}from'ckeditor5/src/ui';import{getTranslation as _0x47a2ae}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x513c5f{constructor(_0x2b8dd9,_0x24a8ac){super(_0x2b8dd9,_0x24a8ac),this['set']({'label':_0x47a2ae(_0x2b8dd9,_0x27c0('0x1'))}),this[_0x27c0('0x3')]({'tag':_0x27c0('0x2'),'attributes':{'class':[_0x27c0('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1258=['ck-reset','createdAt','revisionNameView','unhighlight','isConfirm','map','ck-revision-history-sidebar__revision_selected','isHighlighted','highlight','ck-revision-history-sidebar__revision-wrapper','element','value','creator','placeholder','isEnabled','isSelected','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision','render','length','change','set','setTemplate','ck-revision-history-sidebar__revision_highlighted','220','deselect','_createdAtFormatted','from','unshift','authors','srcElement','closest','fire','uiLanguage','revisionActionsView','ck-disabled','select','name','isReady','bind','ck-revision-history-sidebar__revision-authors','fieldView','div','span','ck-revision-history-sidebar__revision-wrapper_confirmation_visible'];(function(_0x1f498b,_0x1258b6){const _0x46dfa4=function(_0xc8fef2){while(--_0xc8fef2){_0x1f498b['push'](_0x1f498b['shift']());}};_0x46dfa4(++_0x1258b6);}(_0x1258,0xe7));const _0x46df=function(_0x1f498b,_0x1258b6){_0x1f498b=_0x1f498b-0x0;let _0x46dfa4=_0x1258[_0x1f498b];return _0x46dfa4;};import{View as _0x43bc8f,createLabeledInputText as _0x2bce51}from'ckeditor5/src/ui';import{ConfirmMixin as _0x18c755}from'ckeditor5-collaboration/src/collaboration-core';import _0x6d61f from'./revisionnameview';import _0x4b8878 from'./revisionauthorview';import{dateToPrettyFormat as _0x2ac97a}from'./utils';import{createActionsDropdownView as _0xf84094}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x18c755(_0x43bc8f){constructor(_0x3d9965,_0x2d7b2a,_0x28a3f0){super(_0x3d9965);const _0x3e02f3=this['bindTemplate'],_0x5e3aa5=function(_0x5ee778,_0x1887a5){const _0x10d4c4=Array[_0x46df('0x15')](_0x1887a5[_0x46df('0x17')])['filter'](_0x2acab8=>_0x2acab8!=_0x1887a5[_0x46df('0x6')]);return _0x1887a5['creator']&&_0x10d4c4[_0x46df('0x16')](_0x1887a5['creator']),_0x10d4c4[_0x46df('0x2c')](_0x43eb40=>new _0x4b8878(_0x5ee778,_0x43eb40,_0x43eb40==_0x1887a5['creator']));}(_0x3d9965,_0x2d7b2a);this['id']=_0x2d7b2a['id'],this['_revision']=_0x2d7b2a,this[_0x46df('0x21')](_0x46df('0x1f'),_0x46df('0x28'))['to'](_0x2d7b2a),this['bind'](_0x46df('0x14'))['to'](this,'createdAt',_0x187745=>_0x187745?_0x2ac97a(_0x3d9965[_0x46df('0x1b')],_0x187745):void 0x0),this[_0x46df('0xf')](_0x46df('0x9'),!0x1),this[_0x46df('0xf')](_0x46df('0x1'),!0x1),this[_0x46df('0xf')]('isActionsDropdownOpen',!0x1),this[_0x46df('0xf')](_0x46df('0x20'),!0x1),this[_0x46df('0xf')](_0x46df('0x8'),!0x1),this[_0x46df('0x29')]=new _0x6d61f(_0x3d9965,_0x2bce51),this[_0x46df('0x29')][_0x46df('0x23')]['extendTemplate']({'attributes':{'maxlength':_0x46df('0x12')}}),this[_0x46df('0x29')][_0x46df('0x23')][_0x46df('0x21')]('value',_0x46df('0x7'))['to'](this,_0x46df('0x1f'),_0x46df('0x14')),this[_0x46df('0x29')][_0x46df('0x21')](_0x46df('0x8'))['to'](this,_0x46df('0x9'),this,_0x46df('0x8'),(_0x3afd97,_0x2e39e1)=>_0x3afd97&&_0x2e39e1),this['revisionActionsView']=_0x28a3f0&&_0x28a3f0[_0x46df('0xd')]?_0xf84094(this,_0x28a3f0):'',this['revisionActionsView']&&this[_0x46df('0x1c')][_0x46df('0x21')](_0x46df('0x8'))['to'](this),this[_0x46df('0x10')]({'tag':_0x46df('0x24'),'attributes':{'class':['ck',_0x46df('0x27'),_0x46df('0x3'),_0x3e02f3['if'](_0x46df('0x2b'),_0x46df('0x26'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x46df('0x27'),_0x46df('0xb'),_0x3e02f3['if'](_0x46df('0x8'),_0x46df('0x1d'),_0x172f58=>!_0x172f58),_0x3e02f3['if'](_0x46df('0x9'),_0x46df('0x0')),_0x3e02f3['if'](_0x46df('0x1'),_0x46df('0x11')),_0x3e02f3['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x46df('0x29')],{'tag':_0x46df('0x25'),'attributes':{'class':['ck',_0x46df('0xa')]},'children':[{'text':_0x3e02f3['to'](_0x46df('0x14'))}]},{'tag':_0x46df('0x24'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x46df('0x22')]},'children':_0x5e3aa5}]},this['revisionActionsView']],'on':{'click':_0x3e02f3['to'](_0x25d2a5=>{_0x25d2a5[_0x46df('0x18')][_0x46df('0x19')]('.ck-thread__remove-confirm')||this[_0x46df('0x20')]&&this['isEnabled']&&this[_0x46df('0x1a')](_0x46df('0x1e'),{'id':this['id']});})}}]});}[_0x46df('0xc')](){super['render']();const _0x5ad6d4=this[_0x46df('0x29')]['fieldView'][_0x46df('0x4')];this['listenTo'](_0x5ad6d4,_0x46df('0xe'),()=>{this[_0x46df('0x1a')]('setName',{'id':this['id'],'name':_0x5ad6d4[_0x46df('0x5')]});});}['select'](){this[_0x46df('0x9')]=!0x0;}[_0x46df('0x13')](){this[_0x46df('0x9')]=!0x1;}[_0x46df('0x2')](){this[_0x46df('0x1')]=!0x0;}[_0x46df('0x2a')](){this[_0x46df('0x1')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4caa=['toggle','_isCollapsed','isVisible','bindTemplate','span','set','ck-hidden','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','button'];(function(_0x43dfcd,_0x4caa90){const _0x4527b2=function(_0x587b8e){while(--_0x587b8e){_0x43dfcd['push'](_0x43dfcd['shift']());}};_0x4527b2(++_0x4caa90);}(_0x4caa,0x181));const _0x4527=function(_0x43dfcd,_0x4caa90){_0x43dfcd=_0x43dfcd-0x0;let _0x4527b2=_0x4caa[_0x43dfcd];return _0x4527b2;};import{View as _0x4cd06f}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4cd06f{constructor(_0x5e9037){super(_0x5e9037);const _0x462f66=this[_0x4527('0x8')];this[_0x4527('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x4527('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x462f66['if'](_0x4527('0x7'),_0x4527('0x1'),_0x5a5c8b=>!_0x5a5c8b),_0x462f66['if']('_isCollapsed',_0x4527('0x3'))],'role':_0x4527('0x4'),'aria-pressed':_0x462f66['to'](_0x4527('0x6'),_0x571f33=>_0x571f33?'false':'true')},'children':[{'tag':_0x4527('0x9'),'attributes':{'class':['ck',_0x4527('0x2')]}}],'on':{'click':_0x462f66['to']('click')}});}[_0x4527('0x5')](){this[_0x4527('0x6')]=!this[_0x4527('0x6')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1716=['ck-reset','select','deselect','_createdAtFormatted','bindTemplate','isSelected','bind','ck-revision-history-sidebar__revision-authors','_parentRevisionId','creator','ck-revision-history-sidebar__subrevision','createdAt','uiLanguage','ck-revision-history-sidebar__revision__date'];(function(_0x46ab93,_0x171631){const _0x3ab549=function(_0x2b5165){while(--_0x2b5165){_0x46ab93['push'](_0x46ab93['shift']());}};_0x3ab549(++_0x171631);}(_0x1716,0x18d));const _0x3ab5=function(_0x46ab93,_0x171631){_0x46ab93=_0x46ab93-0x0;let _0x3ab549=_0x1716[_0x46ab93];return _0x3ab549;};import{View as _0x30a7a3}from'ckeditor5/src/ui';import _0x52bbd3 from'./revisionauthorview';import{dateToPrettyFormat as _0x452d75}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x30a7a3{constructor(_0x225c77,_0x3022ea,_0x18275f){super(_0x225c77);const _0x247341=this[_0x3ab5('0xd')];this['id']=_0x3022ea['id'],this[_0x3ab5('0x1')](_0x3ab5('0x6'))['to'](_0x3022ea),this['set']('isSelected',!0x1),this[_0x3ab5('0x1')](_0x3ab5('0xc'))['to'](this,_0x3ab5('0x6'),_0x1f68d1=>_0x1f68d1?_0x452d75(_0x225c77[_0x3ab5('0x7')],_0x1f68d1):void 0x0),this['_parentRevisionId']=_0x18275f,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3ab5('0x9'),'ck-revision-history-sidebar__revision',_0x3ab5('0x5'),_0x247341['if'](_0x3ab5('0x0'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x3ab5('0x8')]},'children':[{'text':_0x247341['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x3ab5('0x2')]},'children':[new _0x52bbd3(_0x225c77,_0x3022ea[_0x3ab5('0x4')],!0x0)]}],'on':{'click':_0x247341['to'](this[_0x3ab5('0xa')]['bind'](this))}});}['select'](){this[_0x3ab5('0x0')]=!0x0,this['fire'](_0x3ab5('0xa'),{'parentId':this[_0x3ab5('0x3')]});}[_0x3ab5('0xb')](){this[_0x3ab5('0x0')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xd2e7=['long','numeric','toLocaleDateString'];(function(_0x104f18,_0xd2e7a2){var _0x2c69f1=function(_0xfcad44){while(--_0xfcad44){_0x104f18['push'](_0x104f18['shift']());}};_0x2c69f1(++_0xd2e7a2);}(_0xd2e7,0xa8));var _0x2c69=function(_0x104f18,_0xd2e7a2){_0x104f18=_0x104f18-0x0;var _0x2c69f1=_0xd2e7[_0x104f18];return _0x2c69f1;};export function dateToPrettyFormat(_0x3ec817,_0x167525){return _0x167525[_0x2c69('0x2')](_0x3ec817,{'month':_0x2c69('0x0'),'day':_0x2c69('0x1')})+',\x20'+_0x167525['toLocaleTimeString'](_0x3ec817,{'hour':_0x2c69('0x1'),'minute':_0x2c69('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4985=['220','cancelButtonView','focusTracker','focusFirst','Cancel','locale','arrowdown','execute','revisionName','tab','add','revisionNameInputValue','extendTemplate','element','set','_focusables','form','focus','shift\x20+\x20tab','_createButton','render','reset','saveButtonView','fieldView','revisionNameInputView','_focusCycler','input','ck-responsive-form','_createRevisionNameInput','check','ck-button-save','Save','arrowup','keystrokes','trim','label','value','ck-button-cancel','Name\x20of\x20the\x20revision\x20(optional)','forEach','ck-revision-history-save-revision-form','submit','cancel'];(function(_0x5de08e,_0x4985f7){const _0x22e6b9=function(_0x240c27){while(--_0x240c27){_0x5de08e['push'](_0x5de08e['shift']());}};_0x22e6b9(++_0x4985f7);}(_0x4985,0x1ee));const _0x22e6=function(_0x5de08e,_0x4985f7){_0x5de08e=_0x5de08e-0x0;let _0x22e6b9=_0x4985[_0x5de08e];return _0x22e6b9;};import{icons as _0x592bbc}from'ckeditor5/src/core';import{ButtonView as _0x37b7f8,FocusCycler as _0xe4f61d,LabeledFieldView as _0x32ddde,View as _0xa87354,ViewCollection as _0x2bd101,createLabeledInputText as _0x5be44e,injectCssTransitionDisabler as _0x1ec809,submitHandler as _0x357570}from'ckeditor5/src/ui';import{FocusTracker as _0x1a2315,KeystrokeHandler as _0x3617bf}from'ckeditor5/src/utils';import{getTranslation as _0xe7aa1a}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xa87354{constructor(_0x347e0f){super(_0x347e0f),this['focusTracker']=new _0x1a2315(),this[_0x22e6('0xc')]=new _0x3617bf(),this[_0x22e6('0x24')](_0x22e6('0x21'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x22e6('0x1')]=this[_0x22e6('0x29')](_0xe7aa1a(_0x347e0f,_0x22e6('0xa')),_0x592bbc[_0x22e6('0x8')],_0x22e6('0x9')),this[_0x22e6('0x1')]['type']=_0x22e6('0x14'),this[_0x22e6('0x17')]=this[_0x22e6('0x29')](_0xe7aa1a(_0x347e0f,_0x22e6('0x1a')),_0x592bbc['cancel'],_0x22e6('0x10'),_0x22e6('0x15')),this[_0x22e6('0x25')]=new _0x2bd101(),this['_focusCycler']=new _0xe4f61d({'focusables':this[_0x22e6('0x25')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x22e6('0xc')],'actions':{'focusPrevious':_0x22e6('0x28'),'focusNext':_0x22e6('0x1f')}}),this['setTemplate']({'tag':_0x22e6('0x26'),'attributes':{'class':['ck',_0x22e6('0x13'),_0x22e6('0x6')],'tabindex':'-1'},'children':[this[_0x22e6('0x3')],this[_0x22e6('0x1')],this[_0x22e6('0x17')]]}),_0x1ec809(this);}['render'](){super[_0x22e6('0x2a')](),_0x357570({'view':this}),([this[_0x22e6('0x3')],this[_0x22e6('0x1')],this[_0x22e6('0x17')]][_0x22e6('0x12')](_0x541f4d=>{this['_focusables']['add'](_0x541f4d),this[_0x22e6('0x18')][_0x22e6('0x20')](_0x541f4d['element']);}),this[_0x22e6('0xc')]['listenTo'](this['element']));const _0xf3537d=_0x554a18=>_0x554a18['stopPropagation']();this[_0x22e6('0xc')][_0x22e6('0x24')]('arrowright',_0xf3537d),this[_0x22e6('0xc')]['set']('arrowleft',_0xf3537d),this[_0x22e6('0xc')][_0x22e6('0x24')](_0x22e6('0xb'),_0xf3537d),this[_0x22e6('0xc')][_0x22e6('0x24')](_0x22e6('0x1c'),_0xf3537d);}[_0x22e6('0x27')](){this[_0x22e6('0x4')][_0x22e6('0x19')]();}get['revisionName'](){return this[_0x22e6('0x3')]['fieldView'][_0x22e6('0x23')][_0x22e6('0xf')][_0x22e6('0xd')]();}set[_0x22e6('0x1e')](_0x4e1e08){this['revisionNameInputView'][_0x22e6('0x2')][_0x22e6('0x23')]['value']=_0x4e1e08['trim']();}[_0x22e6('0x0')](){this[_0x22e6('0x3')][_0x22e6('0x2')][_0x22e6('0x23')][_0x22e6('0xf')]='';}[_0x22e6('0x7')](){const _0x298d36=new _0x32ddde(this[_0x22e6('0x1b')],_0x5be44e),_0xce4206=_0x298d36[_0x22e6('0x2')];return _0xce4206['extendTemplate']({'attributes':{'maxlength':_0x22e6('0x16')}}),_0x298d36[_0x22e6('0xe')]=_0xe7aa1a(this['locale'],_0x22e6('0x11')),_0xce4206['on'](_0x22e6('0x5'),()=>{this[_0x22e6('0x21')]=_0xce4206[_0x22e6('0x23')][_0x22e6('0xf')][_0x22e6('0xd')]();}),_0x298d36;}['_createButton'](_0x4100c8,_0xe486f1,_0x8dac11,_0x4ea0f4){const _0x1971c3=new _0x37b7f8(this[_0x22e6('0x1b')]);return _0x1971c3[_0x22e6('0x24')]({'label':_0x4100c8,'icon':_0xe486f1,'tooltip':!0x0}),_0x1971c3[_0x22e6('0x22')]({'attributes':{'class':_0x8dac11}}),_0x4ea0f4&&_0x1971c3['delegate'](_0x22e6('0x1d'))['to'](this,_0x4ea0f4),_0x1971c3;}}
|