@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231227.0 → 0.0.0-nightly-20231228.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 +5 -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.d.ts +2 -2
- 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 _0x1d5c=['isAtStart','then','pairId','insert','_markInsertions','isInline','object','isAddSuggestion','getRevision','editor','addMarker:revision-suggestion:insertion','keys','filter','test','RevisionsRepository','getAttribute','find','_removeUnsupportedChanges','parent','_initInteractions','addRevisionData','consumable','merge','unbindElementFromMarkerName','markerNameToElements','getChild','userId','change:isReady','isReady','element:pre','has','loadRevisionData','attributesBefore','isBlock','left','_refreshStartEndIndex','uiElement','modelRange','removeMarker:revision-suggestion','reconvertMarker','ck-revision-history-root-','values','nodeAfter','diff','_revisions','diffData','domEvent','_makeTape','writer','startIndex','isIncorrect','nextPosition','removeMarker:revision','addMarker:revision-suggestion:deletion','insertion','_makeModelFromViewString','getCustomProperty','element','listenTo','bindElementToMarker','ck-suggestion-marker-merge','numberOfChanges','markerToData','attributes','pop','dataDowncast','elementEnd','getRevisionData','upcast','slice','getDomRoot','change','splice','level','showPreviousChange','hasClass','POSITIVE_INFINITY','unshift','span','change:isEnabled','mouseover','isAtEnd','_cleanMarkers','-new','isBefore','isAfter','_getChangeFromId','init','_processTape','add','createRange','pluginName','revision-suggestion:','for','document','vid_end','resolve','_findChangeIdFromDomTarget','locale','toData','done','revision-end','activeChange','isRemoveSuggestion','config','name','revision:','comment','previousPosition','_removeRevisionMarkers','roots','isAdded','code','revision','markersEnd','data','attachChange','mousedown','markers','ck-suggestion-preview-marker','addRoot','target','stop','consume','ck-revision-history-root--active','parse','vid_start','createUIElement','catch','ck-editor__editable__overlay','default','_joinTapes','_update','distance','isNavigationMode','_getDiff','markerRange','endIndex','getRoot','enqueueChange','isSuggestion','removeMarker','forward','dataToMarker','removeClass','model','_data','ck-suggestion-preview-marker-','addMarker:revision','setAttribute','mapViewToDom','schema','length','from','affectsData','isLimit','_step','revisionHistoryAttachChange','WidgetToolbarRepository','restoreRevision','addHighlight','_fixObsoleteTags','_markSuggestions','isAttached','get','_markMarkers','revision-start','start','wrap','revisionHistoryLabel','conversion','execute','vid','low','plugins','children','sort','processor','flat','forceDisabled','text','isObject','downcastDispatcher','change:activeChange','createPositionBefore','index','_getViewForChange','ck-suggestion-marker--active','_removeMissingPairs','toViewPosition','push','isOnRoot','bind','abs','right','markersStart','markerName','_markMismatchedRemovedTags','ck-suggestion-marker-','revision-suggestion','newRevisionId','attributesAfter','removeAttribute','attribute:vid','useFillerType','refresh','remove','return','_appendChild','item','revision-viewer','backward','startsWith','markerToHighlight','isEnabled','toViewElement','split','observeMarkers','domConverter','side','editingDowncast','getWalker','createRevision','map','deletion','bottom','view','offsetSize','change:activeView','activeView','shift','type','range','showNextChange','toModel','concat','suggestion','createPositionFromPath','_changeView','softBreak','getClientRects','_balloon','_setConversion','destroy','getAttributes','oldRevisionId','all','high','maxOffset','deletions','isRemoved','authors','updatePosition','editing','_getRevisionsRange','nextSibling','delete','change:numberOfChanges','changeId','highest','_setDistance','elementStart','toViewRange','insertions','changes','elementToAttribute','revision-comment:','set','_activeViewTarget','forEach','rootName','revisionHistory','getIndex','ck-revision-history-root-remove','_changeIdToChange','hasAttribute','_cleanUp','indexOf','mapper','commands','addRevision','_threeWayMerge','createRangeIn','string','isEqual','requires','repository','end','ck-revision-history-root-add','viewItem','addClass','data-change-id','getRootNames'];(function(_0xa3624,_0x1d5cde){const _0x4f2e15=function(_0x29fd40){while(--_0x29fd40){_0xa3624['push'](_0xa3624['shift']());}};_0x4f2e15(++_0x1d5cde);}(_0x1d5c,0x66));const _0x4f2e=function(_0xa3624,_0x1d5cde){_0xa3624=_0xa3624-0x0;let _0x4f2e15=_0x1d5c[_0xa3624];return _0x4f2e15;};import{Plugin as _0x49bd96,Command as _0x1ca2da}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x1abeb9}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x28b5ae}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x3b1ea4,Element as _0x263a93,Text as _0x560381,ViewDocumentFragment as _0x197137,ViewText as _0x4751c5,ViewElement as _0x22b6ed,ViewContainerElement as _0x581d38,ViewAttributeElement as _0x39a86e,ViewEmptyElement as _0x5e0aa9,ViewRawElement as _0x28d3e3,ViewUIElement as _0x27ce0d}from'ckeditor5/src/engine.js';import{Users as _0x24b5a4,getMarkerDomElement as _0x36a883}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x268998 from'./ui/revisionviewer/changedetailsview.js';import _0x4d9fbe from'./revisionsrepository.js';import _0x47e9d5 from'./changeitem.js';import{default as _0x4972d1}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x51f157}from'lodash-es';const tt={'c':_0x581d38,'a':_0x39a86e,'e':_0x5e0aa9,'r':_0x28d3e3,'u':_0x27ce0d};export default class d extends _0x49bd96{static get[_0x4f2e('0x11a')](){return'RevisionViewer';}static get[_0x4f2e('0xb7')](){return[_0x24b5a4,_0x28b5ae,_0x4d9fbe];}constructor(_0x4c8a29){super(_0x4c8a29),this[_0x4f2e('0xb8')]=this[_0x4f2e('0xc8')][_0x4f2e('0x48')][_0x4f2e('0x3e')](_0x4f2e('0xcd')),this['set'](_0x4f2e('0x0'),null),this[_0x4f2e('0xa5')](_0x4f2e('0x7f'),null),this[_0x4f2e('0xa6')]=null,this[_0x4f2e('0xa5')](_0x4f2e('0xea'),null),this[_0x4f2e('0xa5')](_0x4f2e('0xdb'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x4f2e('0x10e'),(_0x2d60d6,_0x4ca0b7,_0x22a8f2)=>{this[_0x4f2e('0x0')]=null,this[_0x4f2e('0x7f')]=null,this[_0x4f2e('0xc8')][_0x4f2e('0x97')]['view']['change'](_0xfadf80=>{for(const _0x3c6a90 of this[_0x4f2e('0xc8')]['editing'][_0x4f2e('0x7c')][_0x4f2e('0x11d')][_0x4f2e('0x8')])_0x22a8f2?_0xfadf80['removeClass'](_0x4f2e('0x1b'),_0x3c6a90):_0xfadf80[_0x4f2e('0xbc')]('ck-editor__editable__overlay',_0x3c6a90);});}),this[_0x4f2e('0x5a')](_0x4f2e('0x20'))['to'](this,_0x4f2e('0x0'),_0x1c0b01=>null!==_0x1c0b01),this['bind']('currentChangeNumber')['to'](this,_0x4f2e('0xdb'),this,_0x4f2e('0xea'),this,_0x4f2e('0x0'),(_0x554071,_0x742452,_0x5d6cbd)=>_0x554071&&_0x5d6cbd?_0x742452[_0x4f2e('0xa2')]['getIndex'](_0x5d6cbd):0x0),this[_0x4f2e('0x5a')](_0x4f2e('0xfc'))['to'](this,_0x4f2e('0xdb'),this,'diff',(_0x38fd81,_0x21e9df)=>_0x38fd81?_0x21e9df[_0x4f2e('0xa2')][_0x4f2e('0x32')]:0x0),this[_0x4f2e('0x88')]=null,this[_0x4f2e('0xac')]=new Map(),this['adapter']=null,this['_balloon']=this[_0x4f2e('0xc8')]['plugins'][_0x4f2e('0x3e')](_0x28b5ae);}[_0x4f2e('0x116')](){const _0x4bcea4=this[_0x4f2e('0xc8')],_0x2d7402=new ShowChangeCommand(_0x4bcea4,{'direction':_0x4f2e('0x6d')}),_0x576497=new ShowChangeCommand(_0x4bcea4,{'direction':_0x4f2e('0x28')});(_0x4bcea4['commands'][_0x4f2e('0x118')](_0x4f2e('0x109'),_0x2d7402),_0x4bcea4[_0x4f2e('0xb1')][_0x4f2e('0x118')](_0x4f2e('0x83'),_0x576497),_0x4bcea4[_0x4f2e('0xb1')][_0x4f2e('0x118')](_0x4f2e('0x39'),new RestoreRevisionCommand(_0x4bcea4)),this['on'](_0x4f2e('0x9b'),()=>{_0x2d7402['refresh'](),_0x576497[_0x4f2e('0x67')]();}),this['_setConversion'](),this[_0x4f2e('0xd2')](),_0x4bcea4['enableReadOnlyMode'](_0x4f2e('0x6c')),_0x4bcea4[_0x4f2e('0x48')][_0x4f2e('0xdd')](_0x4f2e('0x38')))&&_0x4bcea4[_0x4f2e('0x48')][_0x4f2e('0x3e')](_0x4f2e('0x38'))[_0x4f2e('0x4d')](_0x4f2e('0x6c'));}async[_0x4f2e('0x102')](_0x9042f7){await this[_0x4f2e('0xde')](_0x9042f7);const _0x31bfa5={};for(const _0x8ec41 in _0x9042f7['diffData']){if(_0x9042f7[_0x4f2e('0xec')][_0x8ec41][_0x4f2e('0xe')]&&!_0x9042f7[_0x4f2e('0xec')][_0x8ec41][_0x4f2e('0xe')][_0x4f2e('0x3d')])continue;const _0x4f8a79=this[_0x4f2e('0x7')](JSON['parse'](_0x9042f7[_0x4f2e('0xec')][_0x8ec41][_0x4f2e('0xa1')])),_0x6e8690=this[_0x4f2e('0xc8')][_0x4f2e('0x97')]['view']['document'],_0x4b0d24=new _0x197137(_0x6e8690,_0x4f8a79[_0x4f2e('0x79')](_0x28428c=>this['_getViewObj'](_0x28428c)));this[_0x4f2e('0xc8')][_0x4f2e('0xd')][_0x4f2e('0x4b')][_0x4f2e('0x66')]('marked'),_0x31bfa5[_0x8ec41]=this[_0x4f2e('0xc8')][_0x4f2e('0xd')]['processor'][_0x4f2e('0x122')](_0x4b0d24),this['editor'][_0x4f2e('0xd')][_0x4f2e('0x4b')][_0x4f2e('0x66')](_0x4f2e('0x1c'));}return _0x31bfa5;}async['getRevisionRootsAttributes'](_0x3d4080){await this['loadRevisionData'](_0x3d4080);const _0xa12176={};for(const _0x219e8c in _0x3d4080['diffData'])_0x3d4080[_0x4f2e('0xec')][_0x219e8c][_0x4f2e('0xe')]&&!_0x3d4080[_0x4f2e('0xec')][_0x219e8c][_0x4f2e('0xe')]['isAttached']||(_0xa12176[_0x219e8c]=_0x3d4080[_0x4f2e('0xec')][_0x219e8c][_0x4f2e('0x63')]||{});return _0xa12176;}[_0x4f2e('0x7')](_0x3402a0){return(_0x3402a0=_0x3402a0[_0x4f2e('0xcb')](_0x3d4a5b=>!_0x3d4a5b[_0x4f2e('0x3')]||_0x4f2e('0x40')!==_0x3d4a5b['name']&&_0x4f2e('0x124')!==_0x3d4a5b['name']))[_0x4f2e('0xa7')](_0x1e7e65=>{'string'!=typeof _0x1e7e65&&(_0x1e7e65['children']=this[_0x4f2e('0x7')](_0x1e7e65[_0x4f2e('0x49')]),_0x1e7e65[_0x4f2e('0xfe')]=_0x1e7e65['attributes']['filter'](_0xfe52c6=>!_0xfe52c6[0x0][_0x4f2e('0x6e')]('data-revision-')));}),_0x3402a0;}async['compare'](_0x12d2ec,_0x418281,_0x119034=!0x1){if(!this[_0x4f2e('0x70')])return;const _0x1d6741=this['diff'],_0x36755c=this[_0x4f2e('0xb8')],_0x14f1a3=_0x4f2e('0xb5')==typeof _0x12d2ec?_0x36755c[_0x4f2e('0xc7')](_0x12d2ec):_0x12d2ec,_0x52ee2d='string'==typeof _0x418281?_0x36755c[_0x4f2e('0xc7')](_0x418281):_0x418281,_0x5540a6=_0x14f1a3['id'],_0x4e8857=_0x52ee2d?_0x52ee2d['id']:null;if(!_0x119034&&this[_0x4f2e('0xea')]&&this[_0x4f2e('0xea')][_0x4f2e('0x62')]===_0x5540a6&&this['diff'][_0x4f2e('0x8f')]===_0x4e8857)return Promise[_0x4f2e('0x11f')]();this[_0x4f2e('0xdb')]=!0x1,this[_0x4f2e('0x7f')]=null,this['activeChange']=null,this[_0x4f2e('0xea')]=new _0x4972d1(_0x5540a6,_0x4e8857);const _0x262cb=this[_0x4f2e('0x98')](_0x14f1a3,_0x52ee2d,!0x0)[_0x4f2e('0x79')](_0x5d87df=>this['loadRevisionData'](_0x5d87df));return _0x262cb[_0x4f2e('0x58')](new Promise(_0x57f2b9=>{setTimeout(_0x57f2b9,0x14);})),Promise[_0x4f2e('0x90')](_0x262cb)[_0x4f2e('0xc0')](()=>{if(!this[_0x4f2e('0x70')])return;this[_0x4f2e('0xae')]();const _0x3a50bb=this[_0x4f2e('0x21')](_0x5540a6,_0x4e8857);for(const _0x50102c of _0x3a50bb['changes'])this[_0x4f2e('0xac')][_0x4f2e('0xa5')](_0x50102c['id'],_0x50102c);this[_0x4f2e('0xc8')][_0x4f2e('0x2b')][_0x4f2e('0x25')]({'isUndoable':!0x1},_0x3d41c0=>{for(const _0xf830b8 of this[_0x4f2e('0xc8')][_0x4f2e('0x2b')][_0x4f2e('0x11d')][_0x4f2e('0xbe')]())_0x3d41c0['detachRoot'](_0xf830b8);for(const _0x52b19d of Object['keys'](_0x3a50bb[_0x4f2e('0x2b')])){const _0x3df44b=_0x3d41c0[_0x4f2e('0x12')](_0x52b19d);for(const _0x194c9a of Object[_0x4f2e('0xca')](_0x3a50bb[_0x4f2e('0xfe')][_0x52b19d]))_0x3d41c0[_0x4f2e('0x2f')](_0x194c9a,_0x3a50bb[_0x4f2e('0xfe')][_0x52b19d][_0x194c9a],_0x3df44b);_0x3d41c0['insert'](_0x3a50bb[_0x4f2e('0x2b')][_0x52b19d],_0x3df44b,0x0);}}),this[_0x4f2e('0xea')]['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3a50bb['changes'])),this[_0x4f2e('0xdb')]=!0x0;})[_0x4f2e('0x1a')](_0xa79545=>{console['error'](_0xa79545),this[_0x4f2e('0xae')](),_0x1d6741&&(this[_0x4f2e('0xea')]=_0x1d6741),this[_0x4f2e('0xdb')]=!0x0;});}[_0x4f2e('0xd3')](_0x6c9973,_0x21f790){const _0x512d9a=this['repository'][_0x4f2e('0x78')](_0x6c9973);return _0x512d9a['on'](_0x4f2e('0x1e'),(_0x4b2beb,_0x20ed76,_0x1dfb6b)=>_0x21f790(_0x20ed76,_0x1dfb6b,_0x512d9a)),this[_0x4f2e('0xb8')][_0x4f2e('0xb2')](_0x512d9a),_0x512d9a;}[_0x4f2e('0xde')](_0x106cc0){if(!_0x106cc0||_0x106cc0['diffData'])return Promise[_0x4f2e('0x11f')]();{const _0x25b360=this[_0x4f2e('0xc8')]['config'][_0x4f2e('0x3e')]('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x25b360,'revisionId':_0x106cc0['id']})[_0x4f2e('0xc0')](_0x515666=>{_0x106cc0[_0x4f2e('0x1e')]({'diffData':_0x515666[_0x4f2e('0xec')]},!0x0);});}}[_0x4f2e('0xae')](){this[_0x4f2e('0x0')]=null,this[_0x4f2e('0x111')](),this[_0x4f2e('0x88')]&&this[_0x4f2e('0x88')][_0x4f2e('0x8d')](),this[_0x4f2e('0x88')]=null,this[_0x4f2e('0xac')]['clear'](),this[_0x4f2e('0xc8')]['model'][_0x4f2e('0x25')]({'isUndoable':!0x1},_0x479eb8=>{for(const _0x1142d0 of this[_0x4f2e('0xc8')]['model']['document'][_0x4f2e('0xbe')]())_0x479eb8['detachRoot'](_0x1142d0);});}['_sortAndFilterDiffChanges'](_0x4def82){const _0x9a8f69=[],_0x45f7a6=new Map();for(const _0x117220 of this[_0x4f2e('0xc8')][_0x4f2e('0x2b')]['document'][_0x4f2e('0xbe')]()){const _0x4db409=this[_0x4f2e('0xc8')][_0x4f2e('0x97')]['view']['getDomRoot'](_0x117220);if(!_0x4db409)continue;const _0x3ff8d1=_0x4db409[_0x4f2e('0x8a')]()[_0x4f2e('0x6b')](0x0);_0x3ff8d1&&(_0x9a8f69[_0x4f2e('0x58')](_0x117220),_0x45f7a6[_0x4f2e('0xa5')](_0x117220,_0x3ff8d1));}return _0x9a8f69[_0x4f2e('0x4a')]((_0x3895a2,_0xe5f596)=>{const _0x6b11d8=_0x45f7a6[_0x4f2e('0x3e')](_0x3895a2),_0x2bc136=_0x45f7a6[_0x4f2e('0x3e')](_0xe5f596);return _0x6b11d8['y']-_0x2bc136['y']||_0x6b11d8['x']-_0x2bc136['x'];}),(_0x4def82=_0x4def82['filter'](_0x297260=>_0x9a8f69['includes'](_0x297260['rootName'])))[_0x4f2e('0x4a')]((_0x4172a5,_0x2dc4f6)=>_0x9a8f69['indexOf'](_0x4172a5['rootName'])-_0x9a8f69[_0x4f2e('0xaf')](_0x2dc4f6[_0x4f2e('0xa8')])),_0x4def82;}['_makeTape'](_0x22c4c9){const _0x143c8a=Array['from'](_0x22c4c9[_0x4f2e('0x10')])[_0x4f2e('0xcb')](([_0x3604b5,_0x147da5])=>_0x3604b5[_0x4f2e('0x6e')](_0x4f2e('0x4'))&&!_0x147da5['isCollapsed']),_0x24bef7=Array[_0x4f2e('0x33')](this[_0x4f2e('0xc8')]['model'][_0x4f2e('0xb4')](_0x22c4c9)[_0x4f2e('0x77')]({'singleCharacters':!0x0}));if(0x0!=_0x143c8a[_0x4f2e('0x32')])for(const _0x2a3ddd of _0x24bef7){const [_0x4d72eb,_0x1fd8cb]=_0x143c8a[0x0],[,_0x161801,_0x49d0e8]=_0x4d72eb[_0x4f2e('0x72')](':');if(_0x1fd8cb[_0x4f2e('0xb9')]['isEqual'](_0x2a3ddd['nextPosition'])&&_0x143c8a[_0x4f2e('0x80')](),(_0x2a3ddd[_0x4f2e('0x6')][_0x4f2e('0xb6')](_0x1fd8cb[_0x4f2e('0x41')])||_0x2a3ddd[_0x4f2e('0x6')][_0x4f2e('0x114')](_0x1fd8cb['start']))&&(_0x4f2e('0xf5')==_0x161801?_0x2a3ddd[_0x4f2e('0x9')]={'userId':_0x49d0e8}:_0x4f2e('0x7a')==_0x161801&&(_0x2a3ddd['isRemoved']={'userId':_0x49d0e8})),0x0==_0x143c8a[_0x4f2e('0x32')])break;}return _0x24bef7;}[_0x4f2e('0xe2')](_0x4e3cb5){const _0x240776=new Map();for(let _0x76a040=0x0;_0x76a040<_0x4e3cb5['length'];_0x76a040++)_0x4f2e('0x4e')===_0x4e3cb5[_0x76a040]['type']?(_0x4e3cb5[_0x76a040][_0x4f2e('0x6b')][_0x4f2e('0xf0')]=_0x76a040,_0x4e3cb5[_0x76a040][_0x4f2e('0x6b')][_0x4f2e('0x23')]=_0x76a040):(_0x4f2e('0x9f')===_0x4e3cb5[_0x76a040]['type']?_0x4e3cb5[_0x76a040][_0x4f2e('0x6b')][_0x4f2e('0xf0')]=_0x76a040:_0x4f2e('0x101')===_0x4e3cb5[_0x76a040][_0x4f2e('0x81')]&&(_0x4e3cb5[_0x76a040][_0x4f2e('0x6b')][_0x4f2e('0x23')]=_0x76a040),_0x240776[_0x4f2e('0xa5')](_0x4e3cb5[_0x76a040]['id'],_0x76a040));for(const _0x384518 of _0x240776[_0x4f2e('0xe8')]())_0x4f2e('0x9f')===_0x4e3cb5[_0x384518][_0x4f2e('0x81')]?_0x4e3cb5[_0x384518][_0x4f2e('0x6b')]['endIndex']=_0x240776[_0x4f2e('0x3e')](_0x4e3cb5[_0x384518][_0x4f2e('0xc1')]):_0x4f2e('0x101')===_0x4e3cb5[_0x384518][_0x4f2e('0x81')]&&(_0x4e3cb5[_0x384518]['item'][_0x4f2e('0xf0')]=_0x240776[_0x4f2e('0x3e')](_0x4e3cb5[_0x384518][_0x4f2e('0xc1')]));}[_0x4f2e('0x117')](_0x205131){for(let _0x355114=0x0;_0x355114<_0x205131[_0x4f2e('0x32')];_0x355114++){if(_0x4f2e('0x9f')===_0x205131[_0x355114]['type'])_0x205131[_0x355114][_0x4f2e('0x6b')][_0x4f2e('0xf0')]=_0x355114;else{if(_0x4f2e('0x101')===_0x205131[_0x355114]['type']){_0x205131[_0x355114][_0x4f2e('0x6b')][_0x4f2e('0x23')]=_0x355114;const _0x3e813f=_0x205131[_0x355114][_0x4f2e('0x6b')][_0x4f2e('0xf0')];_0x205131[_0x3e813f][_0x4f2e('0xc1')]=_0x205131[_0x355114]['id'],_0x205131[_0x355114][_0x4f2e('0xc1')]=_0x205131[_0x3e813f]['id'];}else _0x205131[_0x355114][_0x4f2e('0x6b')][_0x4f2e('0xf0')]=_0x355114,_0x205131[_0x355114][_0x4f2e('0x6b')][_0x4f2e('0x23')]=_0x355114,_0x205131[_0x355114][_0x4f2e('0xc1')]=null;}_0x205131[_0x355114]['markersStart']||(_0x205131[_0x355114][_0x4f2e('0x5d')]=[],_0x205131[_0x355114][_0x4f2e('0xc')]=[]);}}[_0x4f2e('0xc3')](_0x3fb2b5,_0x155cc8){const _0x4ab8a9=_0x3fb2b5[_0x4f2e('0xcb')](_0x15f03c=>!_0x15f03c[_0x4f2e('0x9')]);for(let _0x4dfd9a=0x0;_0x4dfd9a<_0x155cc8['length'];_0x4dfd9a++)_0x155cc8[_0x4dfd9a][_0x4f2e('0x9')]&&(_0x4ab8a9[_0x4dfd9a][_0x4f2e('0x9')]=_0x155cc8[_0x4dfd9a][_0x4f2e('0x9')]);}['_makeModelFromViewString'](_0x99c98b){const _0x5baa0=JSON[_0x4f2e('0x17')](_0x99c98b),_0xa24529=this[_0x4f2e('0xc8')]['editing'][_0x4f2e('0x7c')][_0x4f2e('0x11d')],_0x37ee2d=new _0x197137(_0xa24529,_0x5baa0[_0x4f2e('0x79')](_0x56d242=>this['_getViewObj'](_0x56d242)));return this[_0x4f2e('0xc8')][_0x4f2e('0xd')][_0x4f2e('0x84')](_0x37ee2d);}['_getViewObj'](_0x4a21b7){const _0x7cf6c2=this[_0x4f2e('0xc8')]['editing'][_0x4f2e('0x7c')][_0x4f2e('0x11d')];if(_0x4f2e('0xb5')==typeof _0x4a21b7)return new _0x4751c5(_0x7cf6c2,_0x4a21b7);{const _0x558b1c=_0x4a21b7[_0x4f2e('0x49')][_0x4f2e('0x79')](_0x4615a8=>this['_getViewObj'](_0x4615a8));return new(tt[_0x4a21b7[(_0x4f2e('0x81'))]]||_0x22b6ed)(_0x7cf6c2,_0x4a21b7[_0x4f2e('0x3')],_0x4a21b7['attributes'],_0x558b1c);}}[_0x4f2e('0x21')](_0x1c3bc3,_0xb3af60=null){const _0x1f531a=this[_0x4f2e('0xb8')]['getRevision'](_0x1c3bc3),_0x3b4dfe=_0xb3af60?this[_0x4f2e('0xb8')]['getRevision'](_0xb3af60):null,_0x199bd3=this['_getRevisionsRange'](_0x1f531a,_0x3b4dfe),_0x1e5f13=_0x199bd3[_0x199bd3['length']-0x1],_0x43fa50=new Map(),_0x4e5925={'model':{},'attributes':{},'changes':[]},_0x302d55=new Set(),_0x502272=new Map();for(let _0x104306=_0x199bd3['length']-0x1;_0x104306>=0x0;_0x104306--){const _0x47e189=_0x199bd3[_0x104306];for(const _0xf0ec21 of Object[_0x4f2e('0xca')](_0x47e189[_0x4f2e('0xec')]))if(_0x47e189[_0x4f2e('0xec')][_0xf0ec21][_0x4f2e('0xe')]){const _0x15d08e=_0x47e189['diffData'][_0xf0ec21][_0x4f2e('0xe')];_0x15d08e[_0x4f2e('0x3d')]?(_0x302d55[_0x4f2e('0x118')](_0xf0ec21),_0x502272[_0x4f2e('0xdd')](_0xf0ec21)&&_0x502272[_0x4f2e('0x3e')](_0xf0ec21)[_0x4f2e('0xd9')]==_0x15d08e[_0x4f2e('0xd9')]?_0x502272['delete'](_0xf0ec21):_0x502272[_0x4f2e('0xa5')](_0xf0ec21,_0x15d08e)):_0x502272[_0x4f2e('0xdd')](_0xf0ec21)?(_0x302d55[_0x4f2e('0x9a')](_0xf0ec21),_0x502272[_0x4f2e('0x9a')](_0xf0ec21)):(_0x302d55[_0x4f2e('0x118')](_0xf0ec21),_0x502272['set'](_0xf0ec21,_0x15d08e));}else _0x302d55[_0x4f2e('0x118')](_0xf0ec21);}for(const _0x484a5a of _0x302d55){const _0x433f4c=_0x502272[_0x4f2e('0xdd')](_0x484a5a)&&!_0x502272[_0x4f2e('0x3e')](_0x484a5a)[_0x4f2e('0x3d')];let _0x287007=_0x433f4c?_0x199bd3[_0x4f2e('0x32')]-0x1:0x0;const _0xacec29=_0x433f4c?-0x1:0x1;for(;_0x199bd3[_0x287007];){const _0x2ae19a=_0x199bd3[_0x287007];if(_0x2ae19a[_0x4f2e('0xec')][_0x484a5a]){const _0x30e263=_0x433f4c?_0x2ae19a['diffData'][_0x484a5a][_0x4f2e('0xdf')]:_0x2ae19a[_0x4f2e('0xec')][_0x484a5a]['attributesAfter'];_0x4e5925[_0x4f2e('0xfe')][_0x484a5a]=_0x30e263?_0x51f157(_0x30e263):{};break;}_0x287007+=_0xacec29;}}for(const _0x593dc0 of _0x199bd3){_0x593dc0[_0x4f2e('0x2b')]={};for(const _0x3e54e3 of _0x593dc0[_0x4f2e('0x95')])_0x43fa50[_0x4f2e('0xa5')](_0x3e54e3['id'],_0x3e54e3);for(const _0x3a1284 of _0x302d55){const _0x436895=_0x593dc0[_0x4f2e('0xec')][_0x3a1284]?_0x593dc0[_0x4f2e('0xec')][_0x3a1284][_0x4f2e('0xa1')]:'[]',_0x4efb31=_0x593dc0['diffData'][_0x3a1284]?_0x593dc0['diffData'][_0x3a1284][_0x4f2e('0x93')]:'[]';_0x593dc0[_0x4f2e('0x2b')][_0x3a1284]={'insertions':this[_0x4f2e('0xf6')](_0x436895),'deletions':this[_0x4f2e('0xf6')](_0x4efb31)};}}for(const _0x124887 of _0x302d55){let _0x250ea7=null,_0x3aacf6=0x0;const _0x3bfc0d=new Map(Array[_0x4f2e('0x33')](_0x1f531a[_0x4f2e('0x2b')][_0x124887]['insertions'][_0x4f2e('0x10')])[_0x4f2e('0xcb')](([_0x59927a])=>!_0x59927a[_0x4f2e('0x6e')](_0x4f2e('0x4'))));let _0x3f70a0=0x0;for(const _0x391ff6 of _0x199bd3){const _0x4c41cd=this[_0x4f2e('0xee')](_0x391ff6['model'][_0x124887]['insertions']);_0x391ff6==_0x1f531a?(_0x250ea7=_0x4c41cd,_0x3aacf6=_0x250ea7[_0x4f2e('0x32')],_0x250ea7[_0x4f2e('0xa7')](_0x5b0fe6=>{_0x5b0fe6['id']=_0x3f70a0++;}),this['_processTape'](_0x250ea7)):this['_markInsertions'](_0x250ea7,_0x4c41cd);const _0x6d4d02=_0x250ea7[_0x4f2e('0xcb')](_0x2ff018=>!_0x2ff018[_0x4f2e('0x9')])['map'](_0x70299=>_0x70299['id']);let _0x5c3187=0x0;const _0x1ef951=this[_0x4f2e('0xee')](_0x391ff6[_0x4f2e('0x2b')][_0x124887][_0x4f2e('0x93')]);_0x1ef951['forEach'](_0x358fc1=>{_0x358fc1[_0x4f2e('0x94')]?_0x358fc1['id']=_0x3aacf6++:_0x358fc1['id']=_0x6d4d02[_0x5c3187++];}),this['_processTape'](_0x1ef951),this[_0x4f2e('0x9e')](_0x250ea7,_0x4f2e('0x9')),this['_setDistance'](_0x1ef951,_0x4f2e('0x94')),_0x391ff6==_0x1f531a&&this[_0x4f2e('0x3f')](_0x250ea7,_0x3bfc0d),_0x250ea7=this['_joinTapes'](_0x250ea7,_0x1ef951),this[_0x4f2e('0xe2')](_0x250ea7),this[_0x4f2e('0x9e')](_0x250ea7,_0x4f2e('0x94'));}_0x250ea7=_0x250ea7[_0x4f2e('0xcb')](_0x376f65=>!(_0x376f65[_0x4f2e('0x9')]&&_0x376f65['isRemoved']));const _0x5f47c9=new Map(_0x1e5f13[_0x4f2e('0x2b')][_0x124887]['deletions'][_0x4f2e('0x10')]),_0x5839ff=new Set(_0x3bfc0d[_0x4f2e('0xca')]());for(const _0xf16984 of _0x5f47c9[_0x4f2e('0xca')]())_0x5839ff['delete'](_0xf16984);this[_0x4f2e('0x3c')](_0x250ea7,_0x5839ff),this[_0x4f2e('0x3b')](_0x250ea7),_0x250ea7=this[_0x4f2e('0x56')](_0x250ea7),_0x250ea7=this[_0x4f2e('0x5f')](_0x250ea7),_0x250ea7=this[_0x4f2e('0xd0')](_0x250ea7);const {root:_0x144a84,changes:_0x50a1c3}=this['_makeModelFromTape'](_0x250ea7,_0x43fa50,_0x124887);_0x4e5925[_0x4f2e('0x2b')][_0x124887]=_0x144a84;const _0x44c96d=_0x502272['get'](_0x124887);if(_0x44c96d){const _0x5334f3=_0x43fa50[_0x4f2e('0x3e')](_0x44c96d[_0x4f2e('0xd9')]),_0x53e40b=new _0x47e9d5({'author':_0x5334f3,'type':_0x44c96d['isAttached']?_0x4f2e('0x118'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x124887});_0x50a1c3['unshift'](_0x53e40b),_0x4e5925[_0x4f2e('0xfe')][_0x124887][_0x4f2e('0x37')]=_0x53e40b['id'];}_0x4e5925[_0x4f2e('0xa2')]=_0x4e5925[_0x4f2e('0xa2')][_0x4f2e('0x85')](_0x50a1c3);}return _0x4e5925;}[_0x4f2e('0x3f')](_0x36a1d8,_0x48f540){for(let _0x2e87ef=0x0;_0x2e87ef<_0x36a1d8[_0x4f2e('0x32')];_0x2e87ef++)for(const [_0x42d60b,_0x319119]of _0x48f540)_0x319119[_0x4f2e('0x41')]['isEqual'](_0x36a1d8[_0x2e87ef][_0x4f2e('0x6')])&&_0x36a1d8[_0x2e87ef][_0x4f2e('0x5d')][_0x4f2e('0x58')](_0x42d60b),_0x319119['end'][_0x4f2e('0xb6')](_0x36a1d8[_0x2e87ef][_0x4f2e('0xf2')])&&_0x36a1d8[_0x2e87ef][_0x4f2e('0xc')][_0x4f2e('0x58')](_0x42d60b);}[_0x4f2e('0x1d')](_0x3be87f,_0x4287a1){let _0xccea2c=[],_0x3da89f=0x0,_0x4f36f5=0x0;for(;_0x3da89f<_0x3be87f[_0x4f2e('0x32')]||_0x4f36f5<_0x4287a1[_0x4f2e('0x32')];){const _0x250d34=_0x3be87f[_0x3da89f]||{},_0x3097a5=_0x4287a1[_0x4f36f5]||{};if(_0x250d34['id']==_0x3097a5['id'])_0x3da89f++,_0x4f36f5++,_0xccea2c[_0x4f2e('0x58')](_0x250d34);else{if(_0x3097a5[_0x4f2e('0x94')]&&_0x250d34[_0x4f2e('0x9')]){const {commonTape:_0x404a13,iEnd:_0x43f343,jEnd:_0x33c308}=this[_0x4f2e('0xb3')](_0x3be87f,_0x3da89f,_0x4287a1,_0x4f36f5);_0xccea2c=_0xccea2c[_0x4f2e('0x85')](_0x404a13),_0x3da89f=_0x43f343,_0x4f36f5=_0x33c308;}else _0x3097a5[_0x4f2e('0x94')]?(_0x4f36f5++,_0xccea2c['push'](_0x3097a5)):(_0x3da89f++,_0xccea2c['push'](_0x250d34));}}return _0xccea2c;}[_0x4f2e('0x3c')](_0x8a2fd5,_0x43d282){const _0x1a76eb=[];for(let _0x44ae52=0x0;_0x44ae52<_0x8a2fd5['length'];_0x44ae52++){for(let _0x595f0a=0x0;_0x595f0a<_0x8a2fd5[_0x44ae52][_0x4f2e('0x5d')][_0x4f2e('0x32')];_0x595f0a++){const _0x380fa8=_0x8a2fd5[_0x44ae52]['markersStart'][_0x595f0a];if(!_0x43d282[_0x4f2e('0xdd')](_0x380fa8))continue;const {group:_0xe40c97,type:_0x1b1cad,authorId:_0x4bf1e0}=_0x128275(_0x380fa8);_0x4f2e('0x61')!=_0xe40c97||_0x4f2e('0xf5')!=_0x1b1cad&&_0x4f2e('0x7a')!=_0x1b1cad||(_0x1a76eb[_0x4f2e('0x10c')]({'type':_0x1b1cad,'name':_0x380fa8,'userId':_0x4bf1e0}),_0x8a2fd5[_0x44ae52][_0x4f2e('0x5d')]['splice'](_0x595f0a,0x1),_0x595f0a--);}_0x3f2c89(_0x8a2fd5[_0x44ae52]);for(let _0x3fd598=0x0;_0x3fd598<_0x8a2fd5[_0x44ae52]['markersEnd']['length'];_0x3fd598++){const _0x38b58a=_0x8a2fd5[_0x44ae52][_0x4f2e('0xc')][_0x3fd598];if(!_0x43d282['has'](_0x38b58a))continue;const {group:_0x4eb9c8,type:_0x30b27f}=_0x128275(_0x38b58a);if('revision-suggestion'!=_0x4eb9c8||_0x4f2e('0xf5')!=_0x30b27f&&_0x4f2e('0x7a')!=_0x30b27f)continue;_0x8a2fd5[_0x44ae52][_0x4f2e('0xc')][_0x4f2e('0x107')](_0x3fd598,0x1),_0x3fd598--;const _0xdcd1f2=_0x1a76eb['findIndex'](_0x5a7c1a=>_0x5a7c1a[_0x4f2e('0x3')]==_0x38b58a);_0xdcd1f2>-0x1&&_0x1a76eb[_0x4f2e('0x107')](_0xdcd1f2,0x1);}}function _0x128275(_0x178343){const _0x360e82=_0x178343['split'](':');return{'group':_0x360e82[0x0],'type':_0x360e82[0x1],'subType':_0x360e82[_0x4f2e('0x32')]>=0x5?_0x360e82[0x2]:null,'id':_0x360e82['length']<0x5?_0x360e82[0x2]:_0x360e82[0x3],'authorId':_0x360e82[_0x4f2e('0x32')]<0x5?_0x360e82[0x3]:_0x360e82[0x4],'markerCount':0x6==_0x360e82['length']?_0x360e82[0x5]:null};}function _0x3f2c89(_0x542a19){for(let _0x2cb513=0x0;_0x2cb513<_0x1a76eb[_0x4f2e('0x32')];_0x2cb513++){if(_0x542a19[_0x4f2e('0x9')]&&_0x4f2e('0xf5')==_0x1a76eb[_0x2cb513][_0x4f2e('0x81')])return _0x542a19[_0x4f2e('0xc6')]=_0x1a76eb[_0x2cb513],void delete _0x542a19[_0x4f2e('0x9')];if(!_0x542a19[_0x4f2e('0x9')]&&!_0x542a19[_0x4f2e('0x94')]&&_0x4f2e('0x7a')==_0x1a76eb[_0x2cb513][_0x4f2e('0x81')])return void(_0x542a19[_0x4f2e('0x1')]=_0x1a76eb[_0x2cb513]);}}}[_0x4f2e('0x9e')](_0x262f12,_0x2b9a15){let _0x14ea4a=0x0,_0x3100ff=!0x1;const _0x10bca7=new Map();for(const _0x4fd696 of _0x262f12)_0x4fd696[_0x2b9a15]?_0x3100ff&&(_0x14ea4a++,_0x3100ff=!0x1):(_0x14ea4a++,_0x3100ff=!0x0),_0x10bca7[_0x4f2e('0xa5')](_0x4fd696['id'],_0x14ea4a);for(let _0x44b9d1=0x0;_0x44b9d1<_0x262f12[_0x4f2e('0x32')];_0x44b9d1++){if(_0x4f2e('0x94')==_0x2b9a15&&_0x262f12[_0x44b9d1][_0x4f2e('0x9')]||'isAdded'==_0x2b9a15&&_0x262f12[_0x44b9d1][_0x4f2e('0x94')])continue;if(_0x4f2e('0x4e')==_0x262f12[_0x44b9d1][_0x4f2e('0x81')]){_0x262f12[_0x44b9d1][_0x4f2e('0x1f')]=0x0;continue;}const _0x4cbbf0=_0x10bca7['get'](_0x262f12[_0x44b9d1][_0x4f2e('0xc1')]),_0x350cf6=_0x10bca7[_0x4f2e('0x3e')](_0x262f12[_0x44b9d1]['id']);_0x262f12[_0x44b9d1][_0x4f2e('0x1f')]=_0x4cbbf0-_0x350cf6;}}[_0x4f2e('0x98')](_0x4c632e,_0x187500,_0x203e51=!0x1){const _0x28ee6b=[];let _0x2e2ade=this[_0x4f2e('0xb8')][_0x4f2e('0xaa')](_0x4c632e),_0x515b53=this['repository'][_0x4f2e('0xaa')](_0x187500);for(-0x1==_0x515b53&&(_0x515b53=this[_0x4f2e('0xb8')][_0x4f2e('0xeb')][_0x4f2e('0x32')],_0x203e51=!0x1);_0x2e2ade<_0x515b53;)_0x28ee6b[_0x4f2e('0x58')](this[_0x4f2e('0xb8')][_0x4f2e('0xc7')](_0x2e2ade)),_0x2e2ade++;return _0x203e51&&_0x28ee6b['push'](this[_0x4f2e('0xb8')][_0x4f2e('0xc7')](_0x2e2ade)),_0x28ee6b;}['_threeWayMerge'](_0x1f1a2f,_0x270f43,_0x428fb3,_0x4cc97b){const _0x5c7276=this[_0x4f2e('0xc8')][_0x4f2e('0x2b')][_0x4f2e('0x31')];let _0x2be436=_0x270f43;for(;_0x1f1a2f[_0x2be436]&&_0x1f1a2f[_0x2be436]['isAdded'];)_0x2be436++;let _0x5ccbc7=_0x4cc97b;for(;_0x428fb3[_0x5ccbc7]&&_0x428fb3[_0x5ccbc7][_0x4f2e('0x94')];)_0x5ccbc7++;_0x3ad81b(_0x1f1a2f,_0x270f43,_0x2be436),_0x3ad81b(_0x428fb3,_0x4cc97b,_0x5ccbc7);const _0x452a72=_0x428fb3[_0x4f2e('0x104')](_0x4cc97b,_0x5ccbc7)[_0x4f2e('0x85')](_0x1f1a2f[_0x4f2e('0x104')](_0x270f43,_0x2be436));return _0x452a72[_0x4f2e('0x4a')]((_0x34fa63,_0xcd1204)=>_0x34fa63[_0x4f2e('0x75')]!=_0xcd1204['side']?_0x34fa63[_0x4f2e('0x75')]-_0xcd1204[_0x4f2e('0x75')]:_0x34fa63[_0x4f2e('0x108')]!=_0xcd1204['level']?_0x34fa63['level']-_0xcd1204[_0x4f2e('0x108')]:_0x34fa63[_0x4f2e('0x1f')]!=_0xcd1204['distance']?_0xcd1204['distance']-_0x34fa63[_0x4f2e('0x1f')]:!!_0x34fa63[_0x4f2e('0x9')]!=!!_0xcd1204['isAdded']?-0x1==_0x34fa63['side']||0x0==_0x34fa63['side']?_0x34fa63[_0x4f2e('0x9')]?-0x1:0x1:_0x34fa63[_0x4f2e('0x9')]?0x1:-0x1:_0x34fa63[_0x4f2e('0x53')]-_0xcd1204[_0x4f2e('0x53')]),{'commonTape':_0x452a72,'iEnd':_0x2be436,'jEnd':_0x5ccbc7};function _0x3ad81b(_0x4d8401,_0x1c1b30,_0x429384){let _0x58d1a6=-0x1,_0x5102ee=Number[_0x4f2e('0x10b')],_0xe8c6cf=!0x0;for(let _0x2fd0d5=_0x1c1b30;_0x2fd0d5<_0x429384;_0x2fd0d5++)if(_0x5c7276[_0x4f2e('0xc4')](_0x4d8401[_0x2fd0d5][_0x4f2e('0x6b')])||(_0xe8c6cf=!0x1),_0x4d8401[_0x2fd0d5][_0x4f2e('0x6b')][_0x4f2e('0xf0')]<_0x1c1b30&&(_0x58d1a6=_0x2fd0d5),_0x4d8401[_0x2fd0d5][_0x4f2e('0x6b')][_0x4f2e('0x23')]>=_0x429384){_0x5102ee=_0x2fd0d5;break;}_0xe8c6cf&&(_0x58d1a6=_0x429384-0x1);for(let _0x540ed0=_0x1c1b30;_0x540ed0<_0x429384;_0x540ed0++)_0x4d8401[_0x540ed0]['side']=_0x540ed0<=_0x58d1a6?-0x1:_0x540ed0<_0x5102ee?0x0:0x1,_0x4d8401[_0x540ed0][_0x4f2e('0x53')]=_0x540ed0;let _0x2f3b52=0x0;for(let _0x20f6f3=_0x1c1b30;_0x20f6f3<=_0x58d1a6;_0x20f6f3++)0x0==_0x4d8401[_0x20f6f3][_0x4f2e('0x1f')]?_0x4d8401[_0x20f6f3][_0x4f2e('0x108')]=_0x2f3b52:(_0x2f3b52++,_0x4d8401[_0x20f6f3][_0x4f2e('0x108')]=_0x2f3b52,_0x2f3b52++);for(let _0x111d79=_0x1c1b30;_0x111d79<_0x429384;_0x111d79++)0x0==_0x4d8401[_0x111d79][_0x4f2e('0x75')]&&(_0x4d8401[_0x111d79]['level']=_0x2f3b52);_0x2f3b52=0x0;for(let _0xec0334=_0x429384-0x1;_0xec0334>=_0x5102ee;_0xec0334--)0x0==_0x4d8401[_0xec0334][_0x4f2e('0x1f')]?_0x4d8401[_0xec0334]['level']=_0x2f3b52:(_0x2f3b52--,_0x4d8401[_0xec0334][_0x4f2e('0x108')]=_0x2f3b52,_0x2f3b52--);}}[_0x4f2e('0x3b')](_0x25e746){const _0x5b13d4=new Map(),_0x2e08fe=this[_0x4f2e('0xc8')]['model'][_0x4f2e('0x31')];for(let _0xd698dd=0x1;_0xd698dd<_0x25e746[_0x4f2e('0x32')];_0xd698dd++){let _0x4d8a37,_0x5745ce,_0x3147a0;const _0x435867=_0x25e746[_0xd698dd],_0x39f773=_0x25e746[_0xd698dd-0x1];if(_0x4f2e('0x4e')==_0x435867['type'])continue;if(_0x435867[_0x4f2e('0x81')]!=_0x39f773[_0x4f2e('0x81')])continue;if(!_0x2e08fe['isBlock'](_0x39f773['item'])||_0x2e08fe[_0x4f2e('0x35')](_0x39f773['item']))continue;if(!_0x2e08fe[_0x4f2e('0xe0')](_0x435867[_0x4f2e('0x6b')])||_0x2e08fe[_0x4f2e('0x35')](_0x435867[_0x4f2e('0x6b')]))continue;if((_0x25e746[_0xd698dd][_0x4f2e('0x9')]||_0x25e746[_0xd698dd]['isAddSuggestion'])&&_0x25e746[_0xd698dd-0x1]['isRemoved'])_0x4d8a37=_0x25e746[_0xd698dd],_0x5745ce=_0x25e746[_0xd698dd-0x1],_0x3147a0=_0xd698dd-0x1;else{if(!_0x25e746[_0xd698dd]['isRemoved']||!_0x25e746[_0xd698dd-0x1]['isAdded']&&!_0x25e746[_0xd698dd-0x1]['isAddSuggestion'])continue;_0x4d8a37=_0x25e746[_0xd698dd-0x1],_0x5745ce=_0x25e746[_0xd698dd],_0x3147a0=_0xd698dd;}const _0x52e77b=_0x4d8a37[_0x4f2e('0x108')]==_0x5745ce[_0x4f2e('0x108')],_0x53c637=Math[_0x4f2e('0x5b')](_0x4d8a37[_0x4f2e('0x108')])<Math[_0x4f2e('0x5b')](_0x5745ce['level'])&&0x0==_0x5745ce['distance'];(_0x52e77b||_0x53c637)&&(_0x5b13d4[_0x4f2e('0xa5')](_0x5745ce['id'],_0x4d8a37['id']),_0x25e746[_0x4f2e('0x107')](_0x3147a0,0x1),_0xd698dd--,_0x4d8a37['isAdded']=!0x1);}for(let _0x2e360b=0x0;_0x2e360b<_0x25e746[_0x4f2e('0x32')];_0x2e360b++)_0x5b13d4[_0x4f2e('0xdd')](_0x25e746[_0x2e360b][_0x4f2e('0xc1')])&&(_0x25e746[_0x2e360b][_0x4f2e('0xc1')]=_0x5b13d4['get'](_0x25e746[_0x2e360b][_0x4f2e('0xc1')]));}[_0x4f2e('0x56')](_0x5dd808){const _0x6c6e92=new Set(_0x5dd808[_0x4f2e('0x79')](_0x43f233=>_0x43f233['id']));for(let _0x1be9fe=0x0;_0x1be9fe<_0x5dd808[_0x4f2e('0x32')];_0x1be9fe++)_0x6c6e92[_0x4f2e('0xdd')](_0x5dd808[_0x1be9fe][_0x4f2e('0xc1')])||0x0==_0x5dd808[_0x1be9fe][_0x4f2e('0x1f')]||(_0x5dd808[_0x1be9fe][_0x4f2e('0xf1')]=!0x0);return _0x5dd808[_0x4f2e('0xcb')](_0x19e7d9=>!_0x19e7d9[_0x4f2e('0xf1')]);}[_0x4f2e('0x5f')](_0x26b098){const _0x4a27d6=new Set();for(let _0x345079=0x0;_0x345079<_0x26b098[_0x4f2e('0x32')];_0x345079++){if(_0x4a27d6['has'](_0x26b098[_0x345079]['id'])&&_0x26b098[_0x345079][_0x4f2e('0x94')]&&(_0x26b098[_0x345079][_0x4f2e('0xf1')]=!0x0),_0x26b098[_0x345079]['isIncorrect'])continue;if(0x0==_0x26b098[_0x345079][_0x4f2e('0x1f')])continue;if('elementStart'!=_0x26b098[_0x345079]['type'])continue;if(null==_0x26b098[_0x345079][_0x4f2e('0xc1')])continue;let _0x4883e9=_0x345079+0x1,_0x533698=0x0;for(;_0x26b098[_0x4883e9]['id']!=_0x26b098[_0x345079][_0x4f2e('0xc1')];)'elementStart'==_0x26b098[_0x4883e9][_0x4f2e('0x81')]?_0x533698++:_0x4f2e('0x101')==_0x26b098[_0x4883e9][_0x4f2e('0x81')]&&_0x533698--,_0x4883e9++;if(0x0!=_0x533698){if(_0x26b098[_0x345079]['isRemoved'])_0x26b098[_0x345079][_0x4f2e('0xf1')]=!0x0;else for(;_0x4883e9!=_0x345079;)_0x26b098[_0x4883e9]['isRemoved']&&0x0!=_0x26b098[_0x4883e9][_0x4f2e('0x1f')]&&(_0x26b098[_0x4883e9]['isIncorrect']=!0x0,_0x4a27d6[_0x4f2e('0x118')](_0x26b098[_0x4883e9][_0x4f2e('0xc1')])),_0x4883e9--;}}return _0x26b098[_0x4f2e('0xcb')](_0x19e290=>!_0x19e290['isIncorrect']);}['_removeUnsupportedChanges'](_0x43906a){const _0x4d7593=this['editor'][_0x4f2e('0x2b')][_0x4f2e('0x31')];for(let _0x2f6aee=0x0;_0x2f6aee<_0x43906a[_0x4f2e('0x32')];_0x2f6aee++){if(!(_0x43906a[_0x2f6aee]['isAdded']||_0x43906a[_0x2f6aee][_0x4f2e('0xc6')]||_0x43906a[_0x2f6aee][_0x4f2e('0x94')]||_0x43906a[_0x2f6aee]['isRemoveSuggestion']))continue;if(0x0==_0x43906a[_0x2f6aee][_0x4f2e('0x1f')])continue;const _0x13306e=_0x43906a[_0x2f6aee][_0x4f2e('0x6b')];_0x4d7593[_0x4f2e('0xe0')](_0x13306e)||_0x4d7593[_0x4f2e('0x35')](_0x13306e)||(_0x43906a[_0x2f6aee][_0x4f2e('0x9')]&&delete _0x43906a[_0x2f6aee][_0x4f2e('0x9')],_0x43906a[_0x2f6aee][_0x4f2e('0xc6')]&&delete _0x43906a[_0x2f6aee][_0x4f2e('0xc6')],_0x43906a[_0x2f6aee][_0x4f2e('0x1')]&&delete _0x43906a[_0x2f6aee][_0x4f2e('0x1')],_0x43906a[_0x2f6aee]['isRemoved']&&(_0x43906a[_0x2f6aee]['isIncorrect']=!0x0));}return _0x43906a[_0x4f2e('0xcb')](_0x32e4c7=>!_0x32e4c7[_0x4f2e('0xf1')]);}['_makeModelFromTape'](_0x54bcde,_0x34b8c9,_0x8a4ea9){const _0x3cc0c0=new _0x3b1ea4(),_0x4b2476=[],_0xf8376e=new Map(),_0x340ac8=this['editor']['model'],_0x13cbd5=_0x340ac8[_0x4f2e('0x31')],_0x195008=[_0x3cc0c0],_0xa416c5={},_0x57992f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x150e5a=null;const _0x55ce29=[0x0];for(let _0x477f2b=0x0;_0x477f2b<_0x54bcde[_0x4f2e('0x32')];_0x477f2b++){let _0x36f5b9,_0x40052a;if('elementStart'===_0x54bcde[_0x477f2b]['type']){_0x36f5b9=_0x340ac8[_0x4f2e('0x87')](_0x3cc0c0,_0x55ce29);const _0x3c501e=new _0x263a93(_0x54bcde[_0x477f2b][_0x4f2e('0x6b')][_0x4f2e('0x3')],_0x54bcde[_0x477f2b][_0x4f2e('0x6b')][_0x4f2e('0x8e')]());_0x195008[0x0][_0x4f2e('0x6a')](_0x3c501e),_0x55ce29[_0x4f2e('0x58')](0x0),_0x195008[_0x4f2e('0x10c')](_0x3c501e),_0x40052a=_0x340ac8[_0x4f2e('0x87')](_0x3cc0c0,_0x55ce29),_0x150e5a=null;}else{if(_0x4f2e('0x101')===_0x54bcde[_0x477f2b]['type'])_0x195008['shift'](),_0x36f5b9=_0x340ac8[_0x4f2e('0x87')](_0x3cc0c0,_0x55ce29),_0x55ce29[_0x4f2e('0xff')](),_0x55ce29[_0x55ce29['length']-0x1]++,_0x40052a=_0x340ac8[_0x4f2e('0x87')](_0x3cc0c0,_0x55ce29),_0x150e5a=null;else{if(_0x36f5b9=_0x340ac8['createPositionFromPath'](_0x3cc0c0,_0x55ce29),_0x150e5a&&_0x31fd93(_0x150e5a,_0x54bcde[_0x477f2b][_0x4f2e('0x6b')]))_0x150e5a[_0x4f2e('0x2c')]+=_0x54bcde[_0x477f2b][_0x4f2e('0x6b')]['data'];else{const _0x28cbc4=new _0x560381(_0x54bcde[_0x477f2b][_0x4f2e('0x6b')]['data'],_0x54bcde[_0x477f2b]['item'][_0x4f2e('0x8e')]());_0x195008[0x0][_0x4f2e('0x6a')](_0x28cbc4),_0x150e5a=_0x28cbc4;}_0x55ce29[_0x55ce29['length']-0x1]+=_0x54bcde[_0x477f2b]['item'][_0x4f2e('0x7d')],_0x40052a=_0x340ac8[_0x4f2e('0x87')](_0x3cc0c0,_0x55ce29);}}for(const _0x496b38 of _0x54bcde[_0x477f2b]['markersStart'])_0xf8376e[_0x4f2e('0xa5')](_0x496b38,{'start':_0x36f5b9,'end':null});_0x261cc4(_0x4f2e('0x1'),_0x477f2b,_0x36f5b9,_0x40052a),_0x261cc4(_0x4f2e('0xc6'),_0x477f2b,_0x36f5b9,_0x40052a),_0x261cc4('isRemoved',_0x477f2b,_0x36f5b9,_0x40052a),_0x261cc4(_0x4f2e('0x9'),_0x477f2b,_0x36f5b9,_0x40052a);for(const _0x2b2330 of _0x54bcde[_0x477f2b][_0x4f2e('0xc')]){_0xf8376e['get'](_0x2b2330)[_0x4f2e('0xb9')]=_0x40052a;}}for(const [_0x27b32e,_0x40e330]of _0xf8376e){const _0x4eda2d=this[_0x4f2e('0xc8')][_0x4f2e('0x2b')]['createRange'](_0x40e330[_0x4f2e('0x41')],_0x40e330[_0x4f2e('0xb9')]);_0x3cc0c0[_0x4f2e('0x10')]['set'](_0x27b32e,_0x4eda2d);}return _0x4b2476[_0x4f2e('0x4a')]((_0x1a7ff3,_0x3679c1)=>{const _0x4b9492=_0x3cc0c0[_0x4f2e('0x10')][_0x4f2e('0x3e')](_0x4f2e('0x4')+_0x1a7ff3['id']),_0x5d6b87=_0x3cc0c0[_0x4f2e('0x10')]['get'](_0x4f2e('0x4')+_0x3679c1['id']);return _0x4b9492['start']['isBefore'](_0x5d6b87[_0x4f2e('0x41')])?-0x1:_0x4b9492['start'][_0x4f2e('0x114')](_0x5d6b87[_0x4f2e('0x41')])?0x1:_0x4b9492['end'][_0x4f2e('0x113')](_0x5d6b87['end'])?-0x1:_0x4b9492[_0x4f2e('0xb9')][_0x4f2e('0x114')](_0x5d6b87[_0x4f2e('0xb9')])?0x1:_0x4f2e('0x118')===_0x1a7ff3[_0x4f2e('0x81')]?-0x1:0x1;}),{'root':_0x3cc0c0,'changes':_0x4b2476};function _0x261cc4(_0x425449,_0x31488e,_0x56035e,_0xaef0b){const _0x269be3=!!_0x54bcde[_0x31488e][_0x425449],_0x255a0a=_0x269be3?_0x54bcde[_0x31488e][_0x425449][_0x4f2e('0xd9')]:null,_0x484847=_0x31488e===_0x54bcde[_0x4f2e('0x32')]-0x1,_0x2b2695=_0x57992f[_0x425449][0x0],_0x2c4e60=_0x13cbd5[_0x4f2e('0x4f')](_0x54bcde[_0x31488e][_0x4f2e('0x6b')]);!_0xa416c5[_0x425449]&&_0x269be3?_0xa416c5[_0x425449]={'start':_0x56035e,'tapeItem':_0x54bcde[_0x31488e],'userId':_0x255a0a,'type':_0x425449}:_0xa416c5[_0x425449]&&!_0x269be3?(_0xa416c5[_0x425449][_0x4f2e('0xb9')]=_0x56035e,_0x3501db(_0xa416c5[_0x425449]),_0xa416c5[_0x425449]=null):_0xa416c5[_0x425449]&&_0x269be3&&_0xa416c5[_0x425449]['userId']!==_0x255a0a&&(_0xa416c5[_0x425449][_0x4f2e('0xb9')]=_0x56035e,_0x2b2695&&_0x2b2695[_0x4f2e('0xd9')]===_0xa416c5[_0x425449][_0x4f2e('0xd9')]||_0x3501db(_0xa416c5[_0x425449]),_0xa416c5[_0x425449]={'start':_0x56035e,'tapeItem':_0x54bcde[_0x31488e],'userId':_0x255a0a,'type':_0x425449}),_0xa416c5[_0x425449]&&_0x2c4e60&&(_0x4f2e('0x9f')!==_0x54bcde[_0x31488e][_0x4f2e('0x81')]||_0x2b2695&&_0x2b2695[_0x4f2e('0xd9')]===_0x255a0a||_0x57992f[_0x425449][_0x4f2e('0x10c')]({'userId':_0x255a0a,'object':_0x54bcde[_0x31488e][_0x4f2e('0x6b')],'change':_0xa416c5[_0x425449]}),_0x4f2e('0x101')===_0x54bcde[_0x31488e]['type']&&_0x2b2695&&_0x2b2695[_0x4f2e('0xc5')]===_0x54bcde[_0x31488e]['item']&&(_0x57992f[_0x425449][_0x4f2e('0x80')](),_0xa416c5[_0x425449]=_0x2b2695[_0x4f2e('0x106')])),_0xa416c5[_0x425449]&&_0x484847&&(_0xa416c5[_0x425449][_0x4f2e('0xb9')]=_0xaef0b,_0x3501db(_0xa416c5[_0x425449]),_0xa416c5[_0x425449]=null);}function _0x3501db({start:_0x506967,end:_0x384552,tapeItem:_0xfffa15,userId:_0x22eb2a,type:_0x2efe1a}){const _0x2f0f06=_0xfffa15[_0x4f2e('0x6b')],_0x6808c9=_0x340ac8[_0x4f2e('0x31')][_0x4f2e('0xe0')](_0x2f0f06)&&!_0x340ac8[_0x4f2e('0x31')][_0x4f2e('0x35')](_0x2f0f06),_0x14799c=_0x506967[_0x4f2e('0xe9')]==_0x384552[_0x4f2e('0xd1')]&&_0x384552[_0x4f2e('0xbf')];if(_0x6808c9&&_0x14799c)return;const _0x1a9768=_0x340ac8[_0x4f2e('0x119')](_0x506967,_0x384552),_0x4dfa4e=_0x34b8c9[_0x4f2e('0x3e')](_0x22eb2a),_0x198bd0=new _0x47e9d5({'author':_0x4dfa4e,'type':_0x4f2e('0x9')==_0x2efe1a||_0x4f2e('0xc6')==_0x2efe1a?'add':_0x4f2e('0x68'),'data':{'isSuggestion':_0x4f2e('0xc6')==_0x2efe1a||_0x4f2e('0x1')==_0x2efe1a},'createdAt':new Date(),'rootName':_0x8a4ea9});_0x4b2476[_0x4f2e('0x58')](_0x198bd0),_0x3cc0c0['markers']['set'](_0x4f2e('0x4')+_0x198bd0['id'],_0x1a9768);}function _0x31fd93(_0x22e5ae,_0x54b0b8){const _0x14a7a8=_0x22e5ae[_0x4f2e('0x8e')](),_0x288d50=_0x54b0b8[_0x4f2e('0x8e')]();for(const _0x5dc5a1 of _0x14a7a8){if(_0x5dc5a1[0x1]!==_0x54b0b8[_0x4f2e('0xce')](_0x5dc5a1[0x0]))return!0x1;_0x288d50['next']();}return _0x288d50['next']()[_0x4f2e('0x123')];}}[_0x4f2e('0x8c')](){this[_0x4f2e('0xc8')]['conversion'][_0x4f2e('0x11c')](_0x4f2e('0x103'))['dataToMarker']({'view':_0x4f2e('0xb')}),this[_0x4f2e('0xc8')]['conversion']['for'](_0x4f2e('0x76'))[_0x4f2e('0x6f')]({'model':_0x4f2e('0xb'),'view':_0x2845ed=>{const _0x4b486f=_0x2845ed[_0x4f2e('0x5e')][_0x4f2e('0x72')](':')[0x1],_0x388fe8=this['_getChangeFromId'](_0x4b486f);if(!_0x388fe8)return null;const _0x2f5d67=_0x4f2e('0x118')==_0x388fe8['type']?'insertion':_0x4f2e('0x7a'),_0xedd4b1=['ck-suggestion-marker',_0x4f2e('0x60')+_0x2f5d67];return _0x388fe8['data'][_0x4f2e('0x26')]&&_0xedd4b1[_0x4f2e('0x58')](_0x4f2e('0x60')+_0x2f5d67+'-new'),this['activeChange']==_0x388fe8&&_0xedd4b1[_0x4f2e('0x58')]('ck-suggestion-marker--active'),{'classes':_0xedd4b1,'attributes':{'data-change-id':_0x4b486f}};}}),this[_0x4f2e('0xc8')][_0x4f2e('0x44')][_0x4f2e('0x11c')]('upcast')[_0x4f2e('0x118')](_0x2c1afc=>{_0x2c1afc['on'](_0x4f2e('0xdc'),(_0x25e7f9,_0x105fa7,_0x4f0822)=>{const _0x12b63c=_0x105fa7[_0x4f2e('0xbb')][_0x4f2e('0xd8')](0x0);if(!_0x12b63c||!_0x12b63c['is'](_0x4f2e('0xf8'),_0x4f2e('0xa')))return;if(!_0x4f0822['consumable']['consume'](_0x12b63c,{'attributes':[_0x4f2e('0x18'),_0x4f2e('0x11e')]}))return;const _0x5b882d=_0x105fa7[_0x4f2e('0xe4')]['start'][_0x4f2e('0xe9')];_0x4f0822[_0x4f2e('0xef')][_0x4f2e('0x2f')](_0x4f2e('0x18'),_0x12b63c[_0x4f2e('0xce')](_0x4f2e('0x18')),_0x5b882d),_0x4f0822[_0x4f2e('0xef')][_0x4f2e('0x2f')](_0x4f2e('0x11e'),_0x12b63c['getAttribute'](_0x4f2e('0x11e')),_0x5b882d);},{'priority':_0x4f2e('0x47')});}),this['editor'][_0x4f2e('0x44')][_0x4f2e('0x11c')](_0x4f2e('0x103'))[_0x4f2e('0x118')](_0x55ac35=>{_0x55ac35['on'](_0x4f2e('0xf8'),(_0x462904,_0x1e7836,_0xf3271d)=>{if(!_0xf3271d[_0x4f2e('0xd4')][_0x4f2e('0x15')](_0x1e7836[_0x4f2e('0xbb')],{'attributes':[_0x4f2e('0x18'),_0x4f2e('0x11e')]}))return;if(_0x1e7836['modelRange']['isCollapsed'])return;const _0x290c98=_0x1e7836['modelRange'][_0x4f2e('0x41')][_0x4f2e('0xe9')];_0x290c98[_0x4f2e('0xad')](_0x4f2e('0x18'))||_0x290c98[_0x4f2e('0xad')]('vid')||(_0xf3271d[_0x4f2e('0xef')][_0x4f2e('0x2f')](_0x4f2e('0x18'),_0x1e7836[_0x4f2e('0xbb')]['getAttribute'](_0x4f2e('0x18')),_0x290c98),_0xf3271d[_0x4f2e('0xef')][_0x4f2e('0x2f')](_0x4f2e('0x11e'),_0x1e7836['viewItem']['getAttribute'](_0x4f2e('0x11e')),_0x290c98));},{'priority':_0x4f2e('0x47')});}),this['editor'][_0x4f2e('0x44')]['for'](_0x4f2e('0x103'))[_0x4f2e('0xa3')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4b0672=>_0x4b0672['getAttribute'](_0x4f2e('0x46'))}}),this['editor'][_0x4f2e('0x2b')][_0x4f2e('0x31')]['on']('checkAttribute',(_0x3bb64e,[,_0x1830c7])=>{[_0x4f2e('0x18'),'vid_end',_0x4f2e('0x46')]['includes'](_0x1830c7)&&(_0x3bb64e[_0x4f2e('0x69')]=!0x0,_0x3bb64e[_0x4f2e('0x14')]());},{'priority':_0x4f2e('0x9d')}),this['editor'][_0x4f2e('0x44')][_0x4f2e('0x11c')](_0x4f2e('0x100'))[_0x4f2e('0x118')](_0x103b31=>{_0x103b31['on'](_0x4f2e('0x65'),(_0x541e1a,_0xb960ff,_0x116cf1)=>{if('\x20'!=_0xb960ff[_0x4f2e('0x6b')][_0x4f2e('0xd')]||_0xb960ff['item']['parent'][_0x4f2e('0x92')]>0x1)return;if(!_0x116cf1[_0x4f2e('0xd4')][_0x4f2e('0x15')](_0xb960ff[_0x4f2e('0x6b')],_0x541e1a[_0x4f2e('0x3')]))return;const _0x335bec=_0x116cf1[_0x4f2e('0xef')],_0x22d848=_0x116cf1[_0x4f2e('0xb0')][_0x4f2e('0xa0')](_0xb960ff[_0x4f2e('0x82')]);_0x335bec[_0x4f2e('0x42')](_0x22d848,_0x335bec['createAttributeElement'](_0x4f2e('0x10d')));});}),this[_0x4f2e('0xc8')]['conversion']['for'](_0x4f2e('0x100'))['markerToData']({'model':'revision'}),this['editor'][_0x4f2e('0x97')]['downcastDispatcher']['on'](_0x4f2e('0x2e'),function(_0x3cff03){const _0xc0a75=_0x3cff03[_0x4f2e('0x48')]['get']('RevisionViewer');return(_0x436c4a,_0x9f46c4,_0x561ffa)=>{const _0x74db6d=_0x9f46c4['markerName']['split'](':')[0x1],_0x438a97=_0xc0a75[_0x4f2e('0x115')](_0x74db6d);if(!_0x438a97)return null;const _0x53b464=_0x4f2e('0x118')==_0x438a97[_0x4f2e('0x81')]?_0x4f2e('0x72'):_0x4f2e('0xd5');if(!_0x561ffa[_0x4f2e('0xd4')][_0x4f2e('0xcc')](_0x9f46c4[_0x4f2e('0x22')],_0x436c4a['name']))return;const _0x5b660c=_0x9f46c4['markerRange'][_0x4f2e('0x77')](),_0x2e3082=_0x9f46c4[_0x4f2e('0x22')][_0x4f2e('0x41')],_0x50691c=_0x3cff03[_0x4f2e('0x2b')][_0x4f2e('0x31')];let _0x15729e=null,_0x23aebb=null,_0x412636=!0x1,_0x5937ca=!0x1;for(const _0x4c3c53 of _0x5b660c){const _0x1c10a0=_0x4c3c53[_0x4f2e('0x6b')];_0x412636=_0x412636||_0x50691c['isContent'](_0x1c10a0);const _0x48d44c=_0x561ffa[_0x4f2e('0xb0')]['toViewElement'](_0x1c10a0);if(_0x48d44c&&_0x48d44c[_0x4f2e('0xf7')](_0x4f2e('0x3a')))return;'elementEnd'==_0x4c3c53[_0x4f2e('0x81')]&&(_0x50691c['isBlock'](_0x1c10a0)&&!_0x50691c[_0x4f2e('0x35')](_0x1c10a0)&&(_0x1c10a0['nextSibling']||_0x2e3082[_0x4f2e('0x110')]?_0x15729e&&_0x15729e['parent']==_0x1c10a0||(_0x15729e=_0x1c10a0,_0x5f0ed8(_0x4c3c53['previousPosition']),_0x5937ca=!0x0):_0x23aebb=_0x23aebb||_0x4c3c53[_0x4f2e('0x6')]));}function _0x5f0ed8(_0x527fe7){const _0x2a2e5a=_0x561ffa[_0x4f2e('0xef')]['createUIElement'](_0x4f2e('0x10d'),{'class':_0x4f2e('0x60')+_0x53b464}),_0x457471=_0x561ffa[_0x4f2e('0xb0')][_0x4f2e('0x57')](_0x527fe7);_0x438a97[_0x4f2e('0xd')]['isSuggestion']&&_0x561ffa[_0x4f2e('0xef')][_0x4f2e('0xbc')]('ck-suggestion-marker-'+_0x53b464+_0x4f2e('0x112'),_0x2a2e5a),_0xc0a75[_0x4f2e('0x0')]==_0x438a97&&_0x561ffa[_0x4f2e('0xef')]['addClass'](_0x4f2e('0x55'),_0x2a2e5a),_0x561ffa[_0x4f2e('0xef')][_0x4f2e('0xc2')](_0x457471,_0x2a2e5a),_0x561ffa[_0x4f2e('0xb0')][_0x4f2e('0xfa')](_0x2a2e5a,_0x9f46c4[_0x4f2e('0x5e')]);}_0x412636||_0x5937ca||!_0x23aebb||_0x5f0ed8(_0x23aebb);};}(this[_0x4f2e('0xc8')]),{'priority':_0x4f2e('0x91')}),this[_0x4f2e('0xc8')][_0x4f2e('0x97')][_0x4f2e('0x50')]['on'](_0x4f2e('0xf3'),(_0xbe19bf,_0x30ea8c,_0x369e9a)=>{const _0x5e0357=_0x369e9a[_0x4f2e('0xb0')]['markerNameToElements'](_0x30ea8c['markerName']);if(_0x5e0357)for(const _0xb0485f of _0x5e0357)(_0xb0485f[_0x4f2e('0x10a')]('ck-suggestion-marker-split')||_0xb0485f[_0x4f2e('0x10a')](_0x4f2e('0xfb')))&&(_0x369e9a[_0x4f2e('0xb0')][_0x4f2e('0xd6')](_0xb0485f,_0x30ea8c[_0x4f2e('0x5e')]),_0x369e9a[_0x4f2e('0xef')][_0x4f2e('0x68')](_0xb0485f));},{'priority':'high'}),this[_0x4f2e('0xc8')]['editing'][_0x4f2e('0x50')]['on'](_0x4f2e('0x2e'),(_0x5d42c4,_0x5526da,_0x3e6e5a)=>{const _0x5cdc18=_0x5526da['markerName'][_0x4f2e('0x72')](':')[0x1],_0x1994ea=this[_0x4f2e('0x115')](_0x5cdc18);if(!_0x1994ea)return null;const _0x4d9cdc=_0x4f2e('0x118')==_0x1994ea[_0x4f2e('0x81')]?_0x4f2e('0x72'):_0x4f2e('0xd5');if(_0x3e6e5a['consumable'][_0x4f2e('0xcc')](_0x5526da['markerRange'],_0x5d42c4[_0x4f2e('0x3')]))for(const _0x232435 of _0x5526da[_0x4f2e('0x22')]['getItems']()){if(!_0x232435['is']('element',_0x4f2e('0x89')))continue;const _0x852e5c=_0x3e6e5a[_0x4f2e('0xef')][_0x4f2e('0x19')](_0x4f2e('0x10d'),{'class':_0x4f2e('0x60')+_0x4d9cdc}),_0x4595f4=_0x3e6e5a[_0x4f2e('0xb0')][_0x4f2e('0x57')](this[_0x4f2e('0xc8')]['model'][_0x4f2e('0x52')](_0x232435));_0x1994ea[_0x4f2e('0xd')][_0x4f2e('0x26')]&&_0x3e6e5a[_0x4f2e('0xef')][_0x4f2e('0xbc')](_0x4f2e('0x60')+_0x4d9cdc+_0x4f2e('0x112'),_0x852e5c),this[_0x4f2e('0x0')]==_0x1994ea&&_0x3e6e5a[_0x4f2e('0xef')][_0x4f2e('0xbc')]('ck-suggestion-marker--active',_0x852e5c),_0x3e6e5a[_0x4f2e('0xef')][_0x4f2e('0xc2')](_0x4595f4,_0x852e5c),_0x3e6e5a[_0x4f2e('0xb0')][_0x4f2e('0xfa')](_0x852e5c,_0x5526da[_0x4f2e('0x5e')]);}},{'priority':_0x4f2e('0x91')}),this[_0x4f2e('0xc8')][_0x4f2e('0x2b')][_0x4f2e('0x11d')]['on'](_0x4f2e('0x106'),()=>{this[_0x4f2e('0xc8')]['editing']['view'][_0x4f2e('0x106')](_0x21ffc9=>{for(const _0x1e52c2 of this[_0x4f2e('0xc8')][_0x4f2e('0x2b')][_0x4f2e('0x11d')][_0x4f2e('0xbe')]()){const _0x319e1b=this[_0x4f2e('0xc8')][_0x4f2e('0x2b')][_0x4f2e('0x11d')]['getRoot'](_0x1e52c2),_0x3ba74f=this[_0x4f2e('0xc8')]['editing'][_0x4f2e('0x7c')]['document'][_0x4f2e('0x24')](_0x1e52c2);if(_0x3ba74f){const _0x17d869=_0x319e1b[_0x4f2e('0xce')](_0x4f2e('0x37'));if(_0x21ffc9[_0x4f2e('0x64')](_0x4f2e('0xbd'),_0x3ba74f),_0x21ffc9[_0x4f2e('0x2a')](_0x4f2e('0xba'),_0x3ba74f),_0x21ffc9['removeClass'](_0x4f2e('0xab'),_0x3ba74f),_0x21ffc9['removeClass'](_0x4f2e('0x16'),_0x3ba74f),_0x17d869){const _0x39b460=this[_0x4f2e('0x115')](_0x17d869);if(!_0x39b460)return null;_0x21ffc9[_0x4f2e('0x2f')](_0x4f2e('0xbd'),_0x17d869,_0x3ba74f),_0x21ffc9[_0x4f2e('0xbc')](_0x4f2e('0xe7')+_0x39b460['type'],_0x3ba74f),this[_0x4f2e('0x0')]==_0x39b460&&_0x21ffc9[_0x4f2e('0xbc')](_0x4f2e('0x16'),_0x3ba74f);}}}});}),this[_0x4f2e('0xc8')]['conversion'][_0x4f2e('0x11c')](_0x4f2e('0x103'))[_0x4f2e('0x29')]({'view':_0x4f2e('0x5'),'model':_0xf3a411=>_0x4f2e('0xa4')+_0xf3a411,'converterPriority':'highest'}),this['editor'][_0x4f2e('0x44')][_0x4f2e('0x11c')](_0x4f2e('0x103'))['dataToMarker']({'view':_0x4f2e('0x86'),'model':_0x493174=>_0x4f2e('0x11b')+_0x493174,'converterPriority':_0x4f2e('0x9d')}),this[_0x4f2e('0xc8')][_0x4f2e('0x44')][_0x4f2e('0x11c')](_0x4f2e('0x100'))[_0x4f2e('0xfd')]({'model':_0x4f2e('0x61'),'view':_0x1dcc31=>({'name':'suggestion:'+_0x1dcc31,'group':_0x4f2e('0x61')}),'converterPriority':_0x4f2e('0x9d')}),this[_0x4f2e('0xc8')]['conversion'][_0x4f2e('0x11c')](_0x4f2e('0x76'))[_0x4f2e('0x6f')]({'model':_0x4f2e('0x61'),'view':_0x1fe292=>{const _0x9c7f92=_0x1fe292[_0x4f2e('0x5e')][_0x4f2e('0x72')](':')[0x1];return'insertion'!=_0x9c7f92&&'deletion'!=_0x9c7f92?null:{'classes':[_0x4f2e('0x11'),_0x4f2e('0x2d')+_0x9c7f92]};}}),this[_0x4f2e('0xc8')][_0x4f2e('0x97')][_0x4f2e('0x50')]['on'](_0x4f2e('0xf4'),et(this['editor'],_0x4f2e('0xd5')),{'priority':_0x4f2e('0x91')}),this[_0x4f2e('0xc8')][_0x4f2e('0x97')][_0x4f2e('0x50')]['on'](_0x4f2e('0xc9'),et(this[_0x4f2e('0xc8')],_0x4f2e('0x72')),{'priority':'high'}),this[_0x4f2e('0xc8')][_0x4f2e('0x97')][_0x4f2e('0x50')]['on'](_0x4f2e('0xe5'),(_0x1d0bee,_0x1427f9,_0x539462)=>{const _0x3ca030=_0x539462[_0x4f2e('0xb0')][_0x4f2e('0xd7')](_0x1427f9[_0x4f2e('0x5e')]);if(_0x3ca030)for(const _0x4738ed of _0x3ca030)_0x4738ed['is'](_0x4f2e('0xe3'))&&(_0x539462['mapper'][_0x4f2e('0xd6')](_0x4738ed,_0x1427f9[_0x4f2e('0x5e')]),_0x539462[_0x4f2e('0xef')][_0x4f2e('0x68')](_0x4738ed));},{'priority':_0x4f2e('0x91')});}[_0x4f2e('0x115')](_0x5ccb26){return this[_0x4f2e('0xac')][_0x4f2e('0x3e')](_0x5ccb26);}[_0x4f2e('0x54')](_0x5e84ca){return this[_0x4f2e('0x88')]&&this['_changeView'][_0x4f2e('0x8d')](),this['_changeView']=new _0x268998(this[_0x4f2e('0xc8')][_0x4f2e('0x121')],_0x5e84ca),this['_changeView'];}[_0x4f2e('0xd2')](){this[_0x4f2e('0xc8')][_0x4f2e('0x2b')]['document']['selection'][_0x4f2e('0x73')](_0x4f2e('0xb')),this['on'](_0x4f2e('0x7e'),(_0x3218bd,_0x24d7f0,_0x16e754,_0x3cb62b)=>{_0x3cb62b&&this[_0x4f2e('0x8b')]['remove'](_0x3cb62b),_0x16e754&&(this[_0x4f2e('0x8b')][_0x4f2e('0x118')]({'view':_0x16e754,'stackId':_0x4f2e('0x43'),'position':{'target':()=>{const _0xd1ceec=this[_0x4f2e('0xc8')]['editing'],_0x1fca03=this[_0x4f2e('0x115')](_0x16e754['changeId']);let _0x25cf8e;if(_0x1fca03['data'][_0x4f2e('0x59')]){const _0x4c4516=_0xd1ceec[_0x4f2e('0x7c')]['getDomRoot'](_0x1fca03['rootName']);_0x25cf8e=Array[_0x4f2e('0x33')](_0x4c4516[_0x4f2e('0x8a')]());}else{const _0x37757b=this[_0x4f2e('0xc8')][_0x4f2e('0x2b')][_0x4f2e('0x10')][_0x4f2e('0x3e')](_0x4f2e('0x4')+_0x16e754[_0x4f2e('0x9c')]);_0x25cf8e=Array[_0x4f2e('0x33')](_0xd1ceec[_0x4f2e('0xb0')]['markerNameToElements'](_0x37757b[_0x4f2e('0x3')]))[_0x4f2e('0x79')](_0xb2c9a5=>_0xd1ceec[_0x4f2e('0x7c')][_0x4f2e('0x74')][_0x4f2e('0x30')](_0xb2c9a5))[_0x4f2e('0x79')](_0x790bc9=>Array[_0x4f2e('0x33')](_0x790bc9[_0x4f2e('0x8a')]()))[_0x4f2e('0x4c')]();}if(!this[_0x4f2e('0xa6')])return _0x25cf8e[0x0];return _0x25cf8e[_0x4f2e('0xcf')](_0x317f97=>_0x317f97['top']-0x3<=this[_0x4f2e('0xa6')]['y']&&_0x317f97[_0x4f2e('0x7b')]+0x3>=this[_0x4f2e('0xa6')]['y']&&_0x317f97[_0x4f2e('0xe1')]-0x3<=this[_0x4f2e('0xa6')]['x']&&_0x317f97[_0x4f2e('0x5c')]+0x3>=this[_0x4f2e('0xa6')]['x'])||_0x25cf8e[0x0];}}}),this[_0x4f2e('0x8b')]['showStack'](_0x4f2e('0x43')));}),this['on'](_0x4f2e('0x51'),(_0x20a8c7,_0x232e26,_0x426066,_0xb468d)=>{this[_0x4f2e('0x7f')]=_0x426066?this[_0x4f2e('0x54')](_0x426066):null,this[_0x4f2e('0xc8')][_0x4f2e('0x2b')][_0x4f2e('0x106')](()=>{const _0x1f2aad=this[_0x4f2e('0xc8')]['editing'];_0xb468d&&(_0xb468d[_0x4f2e('0xd')]['isOnRoot']?_0x1f2aad[_0x4f2e('0x7c')][_0x4f2e('0x106')](_0x2d7975=>{_0x2d7975[_0x4f2e('0x2a')]('ck-revision-history-root--active',_0x1f2aad[_0x4f2e('0x7c')][_0x4f2e('0x11d')][_0x4f2e('0x24')](_0xb468d[_0x4f2e('0xa8')]));}):_0x1f2aad[_0x4f2e('0xe6')](_0x4f2e('0x4')+_0xb468d['id'])),_0x426066&&(_0x426066[_0x4f2e('0xd')]['isOnRoot']?_0x1f2aad[_0x4f2e('0x7c')][_0x4f2e('0x106')](_0x19fafa=>{_0x19fafa[_0x4f2e('0xbc')](_0x4f2e('0x16'),_0x1f2aad[_0x4f2e('0x7c')][_0x4f2e('0x11d')][_0x4f2e('0x24')](_0x426066[_0x4f2e('0xa8')]));}):_0x1f2aad[_0x4f2e('0xe6')](_0x4f2e('0x4')+_0x426066['id']));});}),this[_0x4f2e('0xf9')](this['editor']['editing'][_0x4f2e('0x7c')]['document'],_0x4f2e('0x10f'),(_0x35b080,_0x33a7c5)=>{if(this['activeChange'])return;const _0x669703=this[_0x4f2e('0x120')](_0x33a7c5[_0x4f2e('0x13')]),_0x3874ce=this['_changeIdToChange'][_0x4f2e('0x3e')](_0x669703);_0x3874ce?(this['_activeViewTarget']={'x':_0x33a7c5['domEvent']['x'],'y':_0x33a7c5[_0x4f2e('0xed')]['y']},this[_0x4f2e('0x7f')]=this[_0x4f2e('0x54')](_0x3874ce)):(this[_0x4f2e('0xa6')]=null,this[_0x4f2e('0x7f')]=null);}),this['listenTo'](this[_0x4f2e('0xc8')]['editing'][_0x4f2e('0x7c')]['document'],_0x4f2e('0xf'),(_0x5b3e7a,_0x3bfd9d)=>{const _0x13b850=this['_findChangeIdFromDomTarget'](_0x3bfd9d['target']),_0x498d8a=this[_0x4f2e('0xac')][_0x4f2e('0x3e')](_0x13b850);_0x498d8a?(this[_0x4f2e('0xa6')]={'x':_0x3bfd9d[_0x4f2e('0xed')]['x'],'y':_0x3bfd9d[_0x4f2e('0xed')]['y']},_0x498d8a===this[_0x4f2e('0x0')]?this['_balloon'][_0x4f2e('0x96')]():this[_0x4f2e('0x0')]=_0x498d8a):(this[_0x4f2e('0xa6')]=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xd92737){do{const _0x326de7=_0xd92737[_0x4f2e('0xce')](_0x4f2e('0xbd'));if(_0x326de7)return _0x326de7;_0xd92737=_0xd92737['parent'];}while(_0xd92737);return null;}[_0x4f2e('0x111')](){this[_0x4f2e('0xc8')]['model'][_0x4f2e('0x106')](_0x25d526=>{for(const _0x543bd2 of this[_0x4f2e('0xc8')]['model']['markers'])_0x25d526[_0x4f2e('0x27')](_0x543bd2);});}}function et(_0x5b7146,_0x1328d5){return(_0x14f464,_0x4c627a,_0x1c64e2)=>{if(!_0x1c64e2[_0x4f2e('0xd4')][_0x4f2e('0xcc')](_0x4c627a[_0x4f2e('0x22')],_0x14f464[_0x4f2e('0x3')]))return;const _0x3839fc=_0x4c627a[_0x4f2e('0x22')][_0x4f2e('0x77')](),_0x119e93=_0x4c627a['markerRange']['start'],_0x486a0e=_0x5b7146[_0x4f2e('0x2b')][_0x4f2e('0x31')];let _0x138d48=null,_0x34497c=null,_0xf30463=!0x1,_0x4f32ad=!0x1;for(const _0x19be98 of _0x3839fc){const _0x596504=_0x19be98[_0x4f2e('0x6b')];_0xf30463=_0xf30463||_0x486a0e['isContent'](_0x596504);const _0x208f31=_0x1c64e2[_0x4f2e('0xb0')][_0x4f2e('0x71')](_0x596504);if(_0x208f31&&_0x208f31['getCustomProperty'](_0x4f2e('0x3a')))return;_0x4f2e('0x101')==_0x19be98[_0x4f2e('0x81')]&&(_0x486a0e[_0x4f2e('0xe0')](_0x596504)&&!_0x486a0e[_0x4f2e('0x35')](_0x596504)&&(_0x596504[_0x4f2e('0x99')]||_0x119e93[_0x4f2e('0x110')]?_0x138d48&&_0x138d48[_0x4f2e('0xd1')]==_0x596504||(_0x138d48=_0x596504,_0x561856(_0x19be98['previousPosition']),_0x4f32ad=!0x0):_0x34497c=_0x34497c||_0x19be98[_0x4f2e('0x6')]));}function _0x561856(_0x8f3c6f){const _0x45b0ca=_0x1c64e2[_0x4f2e('0xb0')]['toViewPosition'](_0x8f3c6f),_0x5887c9=_0x1c64e2[_0x4f2e('0xef')][_0x4f2e('0x19')](_0x4f2e('0x10d'),{'class':'ck-suggestion-preview-marker-'+_0x1328d5});_0x1c64e2['writer'][_0x4f2e('0xc2')](_0x45b0ca,_0x5887c9),_0x1c64e2[_0x4f2e('0xb0')]['bindElementToMarker'](_0x5887c9,_0x4c627a['markerName']);}_0xf30463||_0x4f32ad||!_0x34497c||_0x561856(_0x34497c);};}export class RestoreRevisionCommand extends _0x1ca2da{constructor(_0x159790){super(_0x159790);const _0xc3635d=_0x159790[_0x4f2e('0x48')][_0x4f2e('0x3e')](d);this['affectsData']=!0x1,this[_0x4f2e('0xf9')](_0xc3635d,_0x4f2e('0xda'),()=>this[_0x4f2e('0x67')]()),this[_0x4f2e('0xf9')](_0xc3635d,_0x4f2e('0x10e'),()=>this[_0x4f2e('0x67')]());}['execute'](){const _0x44ac02=this[_0x4f2e('0xc8')],_0x51b0ff=_0x44ac02[_0x4f2e('0x48')][_0x4f2e('0x3e')](d),_0xf177be=_0x51b0ff['isReady']?_0x51b0ff[_0x4f2e('0xea')][_0x4f2e('0x62')]:null;_0x44ac02[_0x4f2e('0x2')][_0x4f2e('0x3e')](_0x4f2e('0xa9'))['restoreRevisionCallback'](_0xf177be);}[_0x4f2e('0x67')](){const {isReady:_0x529ba6,isEnabled:_0x3fc4ef}=this['editor']['plugins'][_0x4f2e('0x3e')](d);this[_0x4f2e('0x70')]=_0x529ba6&&_0x3fc4ef;}}export class ShowChangeCommand extends _0x1ca2da{constructor(_0x4b1a7a,{direction:_0x50e23c}){super(_0x4b1a7a);const _0x12660c=_0x4b1a7a[_0x4f2e('0x48')][_0x4f2e('0x3e')](d);this[_0x4f2e('0x34')]=!0x1,this[_0x4f2e('0x36')]='forward'===_0x50e23c?0x1:-0x1,this[_0x4f2e('0xf9')](_0x12660c,_0x4f2e('0xda'),()=>this[_0x4f2e('0x67')]()),this[_0x4f2e('0xf9')](_0x12660c,'change:isEnabled',()=>this[_0x4f2e('0x67')]()),this[_0x4f2e('0xf9')](_0x12660c,_0x4f2e('0x51'),()=>this[_0x4f2e('0x67')]());}[_0x4f2e('0x45')](){const _0xfac97b=this[_0x4f2e('0xc8')],_0x493b46=_0xfac97b[_0x4f2e('0x48')]['get'](d),{isNavigationMode:_0x58d9f5,currentChangeNumber:_0x5c0b3e}=_0x493b46;let _0x55093e;if(_0x493b46[_0x4f2e('0x0')]=_0x58d9f5?_0x493b46[_0x4f2e('0xea')][_0x4f2e('0xa2')][_0x4f2e('0x3e')](_0x5c0b3e+this[_0x4f2e('0x36')]):_0x493b46[_0x4f2e('0xea')]['changes']['first'],_0x493b46['activeChange'][_0x4f2e('0xd')][_0x4f2e('0x59')])_0x55093e=_0xfac97b['editing'][_0x4f2e('0x7c')][_0x4f2e('0x105')](_0x493b46[_0x4f2e('0x0')][_0x4f2e('0xa8')]);else{const _0x3b6e43=_0xfac97b['model'][_0x4f2e('0x10')][_0x4f2e('0x3e')](_0x4f2e('0x4')+_0x493b46[_0x4f2e('0x0')]['id']);_0x55093e=_0x36a883(_0xfac97b[_0x4f2e('0x97')],_0x3b6e43);}_0x1abeb9({'target':_0x55093e,'viewportOffset':0x28});}[_0x4f2e('0x67')](){const {isNavigationMode:_0x4b4c1e,currentChangeNumber:_0x4d7ab2,numberOfChanges:_0x44c0c3,isReady:_0x2b8501,isEnabled:_0x4e7673}=this[_0x4f2e('0xc8')][_0x4f2e('0x48')][_0x4f2e('0x3e')](d);this['isEnabled']=!!(_0x4e7673&&_0x2b8501&&_0x44c0c3)&&(!_0x4b4c1e||(0x1===this[_0x4f2e('0x36')]?_0x4d7ab2<_0x44c0c3-0x1:_0x4d7ab2>0x0));}}
|
|
23
|
+
const _0x3a43=['sort','has','markersStart','clear','ck-suggestion-marker-','config','rootName','restoreRevisionCallback','data','high','concat','ck-revision-history-root-','_makeModelFromViewString','map','getItems','markers','toModel','pairId','for','_makeTape','editing','createUIElement','consumable','getWalker','pop','revision-end','_markInsertions','_getRevisionsRange','_balloon','default','markerToData','_sortAndFilterDiffChanges','createRange','merge','reconvertMarker','_activeViewTarget','isLimit','numberOfChanges','commands','_getViewForChange','listenTo','revisionHistory','nextPosition','revision','activeView','change:numberOfChanges','revisionHistoryLabel','bindElementToMarker','children','locale','oldRevisionId','catch','parse','conversion','vid_start','insertion','hasAttribute','getCustomProperty','removeMarker:revision-suggestion','attributesAfter','keys','_markMarkers','getDomRoot','editingDowncast','object','split','data-revision-','start','isReady','markerName','showPreviousChange','unshift','mapper','revision-start','then','revision-comment:','ck-revision-history-root-add','revision:','nextSibling','document','addRoot','target','ck-suggestion-marker-split','change:isReady','_removeRevisionMarkers','parent','diff','insertions','isAttached','isContent','destroy','downcastDispatcher','next','toViewElement','name','toViewPosition','isEnabled','comment','change:activeChange','element','createAttributeElement','_refreshStartEndIndex','push','mousedown','_cleanMarkers','splice','vid','markerToHighlight','add','addHighlight','createPositionBefore','string','_revisions','change','_data','ck-suggestion-marker-merge','_joinTapes','getAttributes','createPositionFromPath','bottom','toViewRange','_update','get','addClass','WidgetToolbarRepository','model','authors','modelRange','error','domEvent','forward','writer','done','wrap','all','side','insert','newRevisionId','startIndex','revision-suggestion:','observeMarkers','_getDiff','compare','repository','pluginName','adapter','right','changeId','previousPosition','_cleanUp','low','_processTape','forceDisabled','nodeAfter','getRevisionData','isRemoveSuggestion','schema','shift','view','addMarker:revision','changes','type','bind','text','plugins','getRoot','index','enqueueChange','uiElement','isBlock','level','deletions','_markMismatchedRemovedTags','mapViewToDom','isAfter','_appendChild','endIndex','test','_makeModelFromTape','attributes','requires','removeMarker','isOnRoot','offsetSize','isCollapsed','removeClass','addRevisionData','end','_removeUnsupportedChanges','_findChangeIdFromDomTarget','ck-suggestion-preview-marker-','markerRange','editor','hasClass','addMarker:revision-suggestion:insertion','isAtStart','includes','dataDowncast','span','userId','getClientRects','diffData','isAdded','_setChanges','distance','elementEnd','_changeIdToChange','isIncorrect','unbindElementFromMarkerName','addMarker:revision-suggestion:deletion','viewItem','loadRevisionData','elementStart','refresh','isNavigationMode','item','ck-editor__editable__overlay','attachChange','isBefore','maxOffset','getRootNames','find','RevisionsRepository','_markSuggestions','remove','domConverter','range','activeChange','setAttribute','change:activeView','_setDistance','isRemoved','length','elementToAttribute','_removeMissingPairs','_fixObsoleteTags','backward','change:isEnabled','revisionHistoryAttachChange','left','data-change-id','_getViewObj','_getChangeFromId','_changeView','abs','mouseover','revision-suggestion','consume','upcast','execute','removeAttribute','getIndex','from','ck-suggestion-marker','getRevision','ck-suggestion-marker--active','element:pre','flat','addRevision','POSITIVE_INFINITY','startsWith','forEach','indexOf','isSuggestion','createRangeIn','vid_end','ck-revision-history-root--active','isEqual','detachRoot','-new','roots','revision-viewer','processor','deletion','getAttribute','isAddSuggestion','markerNameToElements','softBreak','markersEnd','set','highest','filter','collaboration.channelId','useFillerType','_initInteractions','delete'];(function(_0x1050e6,_0x3a4373){const _0x38f538=function(_0x509c4f){while(--_0x509c4f){_0x1050e6['push'](_0x1050e6['shift']());}};_0x38f538(++_0x3a4373);}(_0x3a43,0xa8));const _0x38f5=function(_0x1050e6,_0x3a4373){_0x1050e6=_0x1050e6-0x0;let _0x38f538=_0x3a43[_0x1050e6];return _0x38f538;};import{Plugin as _0xc38894,Command as _0x1f11d9}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x3703f8}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x3072af}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x264425,Element as _0x2e158a,Text as _0x254439,ViewDocumentFragment as _0x3f9834,ViewText as _0x5bc6c0,ViewElement as _0x25439c,ViewContainerElement as _0x466e6f,ViewAttributeElement as _0x2b844f,ViewEmptyElement as _0x22435c,ViewRawElement as _0x4877dc,ViewUIElement as _0xa5def0}from'ckeditor5/src/engine.js';import{Users as _0x22dbac,getMarkerDomElement as _0x1ef551}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x37db78 from'./ui/revisionviewer/changedetailsview.js';import _0x3b1dc2 from'./revisionsrepository.js';import _0xb9e0aa from'./changeitem.js';import{default as _0x845a16}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x526b0b}from'lodash-es';const tt={'c':_0x466e6f,'a':_0x2b844f,'e':_0x22435c,'r':_0x4877dc,'u':_0xa5def0};export default class d extends _0xc38894{static get[_0x38f5('0x106')](){return'RevisionViewer';}static get[_0x38f5('0xc')](){return[_0x22dbac,_0x3072af,_0x3b1dc2];}constructor(_0x41b387){super(_0x41b387),this[_0x38f5('0x105')]=this[_0x38f5('0x18')][_0x38f5('0x11a')][_0x38f5('0xf0')](_0x38f5('0x36')),this[_0x38f5('0x6f')](_0x38f5('0x3b'),null),this[_0x38f5('0x6f')](_0x38f5('0xa2'),null),this[_0x38f5('0x99')]=null,this[_0x38f5('0x6f')](_0x38f5('0xcc'),null),this[_0x38f5('0x6f')](_0x38f5('0xba'),!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x99bc06,_0x27501c,_0x10d055)=>{this[_0x38f5('0x3b')]=null,this[_0x38f5('0xa2')]=null,this[_0x38f5('0x18')][_0x38f5('0x8a')]['view'][_0x38f5('0xe7')](_0x202a70=>{for(const _0x46a557 of this['editor']['editing'][_0x38f5('0x114')][_0x38f5('0xc5')][_0x38f5('0x66')])_0x10d055?_0x202a70[_0x38f5('0x11')](_0x38f5('0x30'),_0x46a557):_0x202a70[_0x38f5('0xf1')](_0x38f5('0x30'),_0x46a557);});}),this[_0x38f5('0x118')](_0x38f5('0x2e'))['to'](this,_0x38f5('0x3b'),_0x4401c6=>null!==_0x4401c6),this[_0x38f5('0x118')]('currentChangeNumber')['to'](this,_0x38f5('0xba'),this,'diff',this,'activeChange',(_0x22524d,_0x13f4d0,_0x1d1008)=>_0x22524d&&_0x1d1008?_0x13f4d0[_0x38f5('0x116')][_0x38f5('0x53')](_0x1d1008):0x0),this[_0x38f5('0x118')](_0x38f5('0x9b'))['to'](this,_0x38f5('0xba'),this,_0x38f5('0xcc'),(_0x1db3ae,_0x396f0e)=>_0x1db3ae?_0x396f0e[_0x38f5('0x116')][_0x38f5('0x40')]:0x0),this[_0x38f5('0x4b')]=null,this[_0x38f5('0x26')]=new Map(),this[_0x38f5('0x107')]=null,this['_balloon']=this[_0x38f5('0x18')][_0x38f5('0x11a')][_0x38f5('0xf0')](_0x3072af);}['init'](){const _0xb4d240=this[_0x38f5('0x18')],_0x4241ad=new ShowChangeCommand(_0xb4d240,{'direction':_0x38f5('0x44')}),_0x465ede=new ShowChangeCommand(_0xb4d240,{'direction':_0x38f5('0xf8')});(_0xb4d240[_0x38f5('0x9c')][_0x38f5('0xe2')](_0x38f5('0xbc'),_0x4241ad),_0xb4d240[_0x38f5('0x9c')]['add']('showNextChange',_0x465ede),_0xb4d240['commands'][_0x38f5('0xe2')]('restoreRevision',new RestoreRevisionCommand(_0xb4d240)),this['on'](_0x38f5('0xa3'),()=>{_0x4241ad[_0x38f5('0x2d')](),_0x465ede[_0x38f5('0x2d')]();}),this['_setConversion'](),this[_0x38f5('0x74')](),_0xb4d240['enableReadOnlyMode'](_0x38f5('0x67')),_0xb4d240[_0x38f5('0x11a')][_0x38f5('0x77')](_0x38f5('0xf2')))&&_0xb4d240[_0x38f5('0x11a')][_0x38f5('0xf0')](_0x38f5('0xf2'))[_0x38f5('0x10e')](_0x38f5('0x67'));}async[_0x38f5('0x110')](_0x45bd57){await this[_0x38f5('0x2b')](_0x45bd57);const _0x5a6a51={};for(const _0x5312cd in _0x45bd57[_0x38f5('0x21')]){if(_0x45bd57['diffData'][_0x5312cd][_0x38f5('0x31')]&&!_0x45bd57[_0x38f5('0x21')][_0x5312cd][_0x38f5('0x31')][_0x38f5('0xce')])continue;const _0x4e168e=this['_removeRevisionMarkers'](JSON[_0x38f5('0xaa')](_0x45bd57[_0x38f5('0x21')][_0x5312cd][_0x38f5('0xcd')])),_0x567605=this['editor'][_0x38f5('0x8a')][_0x38f5('0x114')][_0x38f5('0xc5')],_0xc46597=new _0x3f9834(_0x567605,_0x4e168e[_0x38f5('0x83')](_0xb2477=>this['_getViewObj'](_0xb2477)));this['editor']['data'][_0x38f5('0x68')][_0x38f5('0x73')]('marked'),_0x5a6a51[_0x5312cd]=this[_0x38f5('0x18')][_0x38f5('0x7e')][_0x38f5('0x68')]['toData'](_0xc46597),this[_0x38f5('0x18')][_0x38f5('0x7e')][_0x38f5('0x68')][_0x38f5('0x73')](_0x38f5('0x93'));}return _0x5a6a51;}async['getRevisionRootsAttributes'](_0x1063c1){await this[_0x38f5('0x2b')](_0x1063c1);const _0x43936f={};for(const _0x392403 in _0x1063c1[_0x38f5('0x21')])_0x1063c1[_0x38f5('0x21')][_0x392403][_0x38f5('0x31')]&&!_0x1063c1['diffData'][_0x392403]['attachChange'][_0x38f5('0xce')]||(_0x43936f[_0x392403]=_0x1063c1[_0x38f5('0x21')][_0x392403][_0x38f5('0xb1')]||{});return _0x43936f;}[_0x38f5('0xca')](_0x1d1639){return(_0x1d1639=_0x1d1639[_0x38f5('0x71')](_0x2f7214=>!_0x2f7214[_0x38f5('0xd4')]||_0x38f5('0xbf')!==_0x2f7214[_0x38f5('0xd4')]&&_0x38f5('0x8f')!==_0x2f7214['name']))[_0x38f5('0x5d')](_0x5b32c7=>{'string'!=typeof _0x5b32c7&&(_0x5b32c7[_0x38f5('0xa6')]=this[_0x38f5('0xca')](_0x5b32c7[_0x38f5('0xa6')]),_0x5b32c7[_0x38f5('0xb')]=_0x5b32c7[_0x38f5('0xb')][_0x38f5('0x71')](_0x30acfe=>!_0x30acfe[0x0][_0x38f5('0x5c')](_0x38f5('0xb8'))));}),_0x1d1639;}async[_0x38f5('0x104')](_0x298511,_0x3f3c5c,_0x47904d=!0x1){if(!this['isEnabled'])return;const _0x1ca38a=this[_0x38f5('0xcc')],_0x1cb156=this[_0x38f5('0x105')],_0x3253f3='string'==typeof _0x298511?_0x1cb156[_0x38f5('0x56')](_0x298511):_0x298511,_0x3f6730=_0x38f5('0xe5')==typeof _0x3f3c5c?_0x1cb156[_0x38f5('0x56')](_0x3f3c5c):_0x3f3c5c,_0xb4e4ce=_0x3253f3['id'],_0x474b5b=_0x3f6730?_0x3f6730['id']:null;if(!_0x47904d&&this['diff']&&this[_0x38f5('0xcc')][_0x38f5('0xff')]===_0xb4e4ce&&this['diff'][_0x38f5('0xa8')]===_0x474b5b)return Promise['resolve']();this[_0x38f5('0xba')]=!0x1,this['activeView']=null,this[_0x38f5('0x3b')]=null,this[_0x38f5('0xcc')]=new _0x845a16(_0xb4e4ce,_0x474b5b);const _0x4b97c5=this[_0x38f5('0x91')](_0x3253f3,_0x3f6730,!0x0)[_0x38f5('0x83')](_0x396712=>this[_0x38f5('0x2b')](_0x396712));return _0x4b97c5[_0x38f5('0xdc')](new Promise(_0x5046f0=>{setTimeout(_0x5046f0,0x14);})),Promise[_0x38f5('0xfc')](_0x4b97c5)[_0x38f5('0xc0')](()=>{if(!this[_0x38f5('0xd6')])return;this[_0x38f5('0x10b')]();const _0x156be5=this[_0x38f5('0x103')](_0xb4e4ce,_0x474b5b);for(const _0x2dbf6e of _0x156be5['changes'])this['_changeIdToChange'][_0x38f5('0x6f')](_0x2dbf6e['id'],_0x2dbf6e);this[_0x38f5('0x18')]['model']['enqueueChange']({'isUndoable':!0x1},_0xf9a28d=>{for(const _0x228952 of this['editor'][_0x38f5('0xf3')][_0x38f5('0xc5')][_0x38f5('0x34')]())_0xf9a28d['detachRoot'](_0x228952);for(const _0x2a7759 of Object[_0x38f5('0xb2')](_0x156be5['model'])){const _0x14fb72=_0xf9a28d[_0x38f5('0xc6')](_0x2a7759);for(const _0x2bf78f of Object[_0x38f5('0xb2')](_0x156be5[_0x38f5('0xb')][_0x2a7759]))_0xf9a28d[_0x38f5('0x3c')](_0x2bf78f,_0x156be5['attributes'][_0x2a7759][_0x2bf78f],_0x14fb72);_0xf9a28d['insert'](_0x156be5[_0x38f5('0xf3')][_0x2a7759],_0x14fb72,0x0);}}),this[_0x38f5('0xcc')][_0x38f5('0x23')](this[_0x38f5('0x95')](_0x156be5['changes'])),this[_0x38f5('0xba')]=!0x0;})[_0x38f5('0xa9')](_0x1e99c1=>{console[_0x38f5('0xf6')](_0x1e99c1),this[_0x38f5('0x10b')](),_0x1ca38a&&(this[_0x38f5('0xcc')]=_0x1ca38a),this['isReady']=!0x0;});}[_0x38f5('0x12')](_0x2b27a0,_0x16a4e5){const _0x10506a=this[_0x38f5('0x105')]['createRevision'](_0x2b27a0);return _0x10506a['on'](_0x38f5('0xef'),(_0x2662a3,_0x2f2c1c,_0x35a325)=>_0x16a4e5(_0x2f2c1c,_0x35a325,_0x10506a)),this[_0x38f5('0x105')][_0x38f5('0x5a')](_0x10506a),_0x10506a;}[_0x38f5('0x2b')](_0x395df1){if(!_0x395df1||_0x395df1['diffData'])return Promise['resolve']();{const _0x5b6d08=this[_0x38f5('0x18')][_0x38f5('0x7b')][_0x38f5('0xf0')](_0x38f5('0x72'));return this[_0x38f5('0x107')][_0x38f5('0x56')]({'channelId':_0x5b6d08,'revisionId':_0x395df1['id']})[_0x38f5('0xc0')](_0x210011=>{_0x395df1[_0x38f5('0xef')]({'diffData':_0x210011['diffData']},!0x0);});}}[_0x38f5('0x10b')](){this[_0x38f5('0x3b')]=null,this[_0x38f5('0xde')](),this[_0x38f5('0x4b')]&&this['_changeView'][_0x38f5('0xd0')](),this[_0x38f5('0x4b')]=null,this[_0x38f5('0x26')][_0x38f5('0x79')](),this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0x11d')]({'isUndoable':!0x1},_0x424493=>{for(const _0x1b2610 of this['editor'][_0x38f5('0xf3')][_0x38f5('0xc5')][_0x38f5('0x34')]())_0x424493[_0x38f5('0x64')](_0x1b2610);});}[_0x38f5('0x95')](_0x3def4b){const _0x593e6f=[],_0x54d187=new Map();for(const _0x3f3cae of this['editor'][_0x38f5('0xf3')]['document']['getRootNames']()){const _0x5b7986=this['editor']['editing'][_0x38f5('0x114')][_0x38f5('0xb4')](_0x3f3cae);if(!_0x5b7986)continue;const _0x3665aa=_0x5b7986[_0x38f5('0x20')]()[_0x38f5('0x2f')](0x0);_0x3665aa&&(_0x593e6f[_0x38f5('0xdc')](_0x3f3cae),_0x54d187[_0x38f5('0x6f')](_0x3f3cae,_0x3665aa));}return _0x593e6f[_0x38f5('0x76')]((_0x5c86c2,_0x132b60)=>{const _0xe4d7ff=_0x54d187[_0x38f5('0xf0')](_0x5c86c2),_0x3c113b=_0x54d187[_0x38f5('0xf0')](_0x132b60);return _0xe4d7ff['y']-_0x3c113b['y']||_0xe4d7ff['x']-_0x3c113b['x'];}),(_0x3def4b=_0x3def4b['filter'](_0x13ed79=>_0x593e6f['includes'](_0x13ed79['rootName'])))[_0x38f5('0x76')]((_0x1e4d88,_0x3f636e)=>_0x593e6f[_0x38f5('0x5e')](_0x1e4d88[_0x38f5('0x7c')])-_0x593e6f['indexOf'](_0x3f636e[_0x38f5('0x7c')])),_0x3def4b;}['_makeTape'](_0x2bb1dc){const _0x3fdf55=Array[_0x38f5('0x54')](_0x2bb1dc[_0x38f5('0x85')])[_0x38f5('0x71')](([_0x2dcabc,_0x27ca42])=>_0x2dcabc[_0x38f5('0x5c')](_0x38f5('0xc3'))&&!_0x27ca42['isCollapsed']),_0xe6db5b=Array[_0x38f5('0x54')](this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0x60')](_0x2bb1dc)[_0x38f5('0x8d')]({'singleCharacters':!0x0}));if(0x0!=_0x3fdf55['length'])for(const _0x4efff2 of _0xe6db5b){const [_0x1a5e3e,_0x118c13]=_0x3fdf55[0x0],[,_0x30cf06,_0x2f2b4c]=_0x1a5e3e[_0x38f5('0xb7')](':');if(_0x118c13[_0x38f5('0x13')][_0x38f5('0x63')](_0x4efff2['nextPosition'])&&_0x3fdf55['shift'](),(_0x4efff2[_0x38f5('0x10a')]['isEqual'](_0x118c13[_0x38f5('0xb9')])||_0x4efff2[_0x38f5('0x10a')][_0x38f5('0x6')](_0x118c13[_0x38f5('0xb9')]))&&(_0x38f5('0xad')==_0x30cf06?_0x4efff2[_0x38f5('0x22')]={'userId':_0x2f2b4c}:'deletion'==_0x30cf06&&(_0x4efff2[_0x38f5('0x3f')]={'userId':_0x2f2b4c})),0x0==_0x3fdf55[_0x38f5('0x40')])break;}return _0xe6db5b;}[_0x38f5('0xdb')](_0x481cd6){const _0x288d2=new Map();for(let _0x33a83b=0x0;_0x33a83b<_0x481cd6[_0x38f5('0x40')];_0x33a83b++)_0x38f5('0x119')===_0x481cd6[_0x33a83b][_0x38f5('0x117')]?(_0x481cd6[_0x33a83b][_0x38f5('0x2f')][_0x38f5('0x100')]=_0x33a83b,_0x481cd6[_0x33a83b]['item']['endIndex']=_0x33a83b):(_0x38f5('0x2c')===_0x481cd6[_0x33a83b]['type']?_0x481cd6[_0x33a83b][_0x38f5('0x2f')][_0x38f5('0x100')]=_0x33a83b:_0x38f5('0x25')===_0x481cd6[_0x33a83b]['type']&&(_0x481cd6[_0x33a83b][_0x38f5('0x2f')][_0x38f5('0x8')]=_0x33a83b),_0x288d2['set'](_0x481cd6[_0x33a83b]['id'],_0x33a83b));for(const _0xaa8162 of _0x288d2['values']())_0x38f5('0x2c')===_0x481cd6[_0xaa8162]['type']?_0x481cd6[_0xaa8162][_0x38f5('0x2f')]['endIndex']=_0x288d2[_0x38f5('0xf0')](_0x481cd6[_0xaa8162][_0x38f5('0x87')]):_0x38f5('0x25')===_0x481cd6[_0xaa8162][_0x38f5('0x117')]&&(_0x481cd6[_0xaa8162][_0x38f5('0x2f')][_0x38f5('0x100')]=_0x288d2[_0x38f5('0xf0')](_0x481cd6[_0xaa8162][_0x38f5('0x87')]));}['_processTape'](_0x152bda){for(let _0x3b8027=0x0;_0x3b8027<_0x152bda[_0x38f5('0x40')];_0x3b8027++){if(_0x38f5('0x2c')===_0x152bda[_0x3b8027][_0x38f5('0x117')])_0x152bda[_0x3b8027][_0x38f5('0x2f')][_0x38f5('0x100')]=_0x3b8027;else{if('elementEnd'===_0x152bda[_0x3b8027]['type']){_0x152bda[_0x3b8027]['item'][_0x38f5('0x8')]=_0x3b8027;const _0x347915=_0x152bda[_0x3b8027][_0x38f5('0x2f')]['startIndex'];_0x152bda[_0x347915][_0x38f5('0x87')]=_0x152bda[_0x3b8027]['id'],_0x152bda[_0x3b8027][_0x38f5('0x87')]=_0x152bda[_0x347915]['id'];}else _0x152bda[_0x3b8027][_0x38f5('0x2f')][_0x38f5('0x100')]=_0x3b8027,_0x152bda[_0x3b8027][_0x38f5('0x2f')][_0x38f5('0x8')]=_0x3b8027,_0x152bda[_0x3b8027]['pairId']=null;}_0x152bda[_0x3b8027][_0x38f5('0x78')]||(_0x152bda[_0x3b8027][_0x38f5('0x78')]=[],_0x152bda[_0x3b8027][_0x38f5('0x6e')]=[]);}}['_markInsertions'](_0x172c9c,_0x5a3e7a){const _0x14d6bd=_0x172c9c[_0x38f5('0x71')](_0xa068e5=>!_0xa068e5[_0x38f5('0x22')]);for(let _0x42add3=0x0;_0x42add3<_0x5a3e7a[_0x38f5('0x40')];_0x42add3++)_0x5a3e7a[_0x42add3][_0x38f5('0x22')]&&(_0x14d6bd[_0x42add3][_0x38f5('0x22')]=_0x5a3e7a[_0x42add3][_0x38f5('0x22')]);}[_0x38f5('0x82')](_0x205e70){const _0x42ec49=JSON[_0x38f5('0xaa')](_0x205e70),_0x140d4d=this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0x114')][_0x38f5('0xc5')],_0x5cdf99=new _0x3f9834(_0x140d4d,_0x42ec49[_0x38f5('0x83')](_0x4145e2=>this[_0x38f5('0x49')](_0x4145e2)));return this['editor']['data'][_0x38f5('0x86')](_0x5cdf99);}['_getViewObj'](_0x33681b){const _0x123b44=this['editor'][_0x38f5('0x8a')][_0x38f5('0x114')][_0x38f5('0xc5')];if(_0x38f5('0xe5')==typeof _0x33681b)return new _0x5bc6c0(_0x123b44,_0x33681b);{const _0x3a85a7=_0x33681b[_0x38f5('0xa6')][_0x38f5('0x83')](_0x355837=>this[_0x38f5('0x49')](_0x355837));return new(tt[_0x33681b[(_0x38f5('0x117'))]]||_0x25439c)(_0x123b44,_0x33681b[_0x38f5('0xd4')],_0x33681b[_0x38f5('0xb')],_0x3a85a7);}}[_0x38f5('0x103')](_0x241b21,_0x5eb2a1=null){const _0x279207=this[_0x38f5('0x105')][_0x38f5('0x56')](_0x241b21),_0x364a9d=_0x5eb2a1?this[_0x38f5('0x105')][_0x38f5('0x56')](_0x5eb2a1):null,_0x2de160=this[_0x38f5('0x91')](_0x279207,_0x364a9d),_0x5e1d51=_0x2de160[_0x2de160['length']-0x1],_0x115030=new Map(),_0x1d7460={'model':{},'attributes':{},'changes':[]},_0x5610b5=new Set(),_0x235fd4=new Map();for(let _0x13b4f7=_0x2de160[_0x38f5('0x40')]-0x1;_0x13b4f7>=0x0;_0x13b4f7--){const _0x49187f=_0x2de160[_0x13b4f7];for(const _0x467adb of Object[_0x38f5('0xb2')](_0x49187f[_0x38f5('0x21')]))if(_0x49187f[_0x38f5('0x21')][_0x467adb][_0x38f5('0x31')]){const _0x87a68a=_0x49187f[_0x38f5('0x21')][_0x467adb]['attachChange'];_0x87a68a[_0x38f5('0xce')]?(_0x5610b5[_0x38f5('0xe2')](_0x467adb),_0x235fd4['has'](_0x467adb)&&_0x235fd4[_0x38f5('0xf0')](_0x467adb)['userId']==_0x87a68a[_0x38f5('0x1f')]?_0x235fd4['delete'](_0x467adb):_0x235fd4[_0x38f5('0x6f')](_0x467adb,_0x87a68a)):_0x235fd4[_0x38f5('0x77')](_0x467adb)?(_0x5610b5[_0x38f5('0x75')](_0x467adb),_0x235fd4[_0x38f5('0x75')](_0x467adb)):(_0x5610b5['add'](_0x467adb),_0x235fd4[_0x38f5('0x6f')](_0x467adb,_0x87a68a));}else _0x5610b5['add'](_0x467adb);}for(const _0x59879d of _0x5610b5){const _0x175600=_0x235fd4[_0x38f5('0x77')](_0x59879d)&&!_0x235fd4[_0x38f5('0xf0')](_0x59879d)['isAttached'];let _0x5ba0c7=_0x175600?_0x2de160[_0x38f5('0x40')]-0x1:0x0;const _0x5830a5=_0x175600?-0x1:0x1;for(;_0x2de160[_0x5ba0c7];){const _0x141c07=_0x2de160[_0x5ba0c7];if(_0x141c07[_0x38f5('0x21')][_0x59879d]){const _0x4c4150=_0x175600?_0x141c07[_0x38f5('0x21')][_0x59879d]['attributesBefore']:_0x141c07[_0x38f5('0x21')][_0x59879d][_0x38f5('0xb1')];_0x1d7460[_0x38f5('0xb')][_0x59879d]=_0x4c4150?_0x526b0b(_0x4c4150):{};break;}_0x5ba0c7+=_0x5830a5;}}for(const _0xdab91 of _0x2de160){_0xdab91['model']={};for(const _0x44b929 of _0xdab91[_0x38f5('0xf4')])_0x115030[_0x38f5('0x6f')](_0x44b929['id'],_0x44b929);for(const _0x2b77ac of _0x5610b5){const _0x11991c=_0xdab91[_0x38f5('0x21')][_0x2b77ac]?_0xdab91[_0x38f5('0x21')][_0x2b77ac]['insertions']:'[]',_0x5e6911=_0xdab91[_0x38f5('0x21')][_0x2b77ac]?_0xdab91[_0x38f5('0x21')][_0x2b77ac]['deletions']:'[]';_0xdab91['model'][_0x2b77ac]={'insertions':this[_0x38f5('0x82')](_0x11991c),'deletions':this[_0x38f5('0x82')](_0x5e6911)};}}for(const _0x14e0fa of _0x5610b5){let _0x2ffe04=null,_0x1d3125=0x0;const _0x13453e=new Map(Array[_0x38f5('0x54')](_0x279207[_0x38f5('0xf3')][_0x14e0fa][_0x38f5('0xcd')][_0x38f5('0x85')])[_0x38f5('0x71')](([_0x6cc916])=>!_0x6cc916['startsWith'](_0x38f5('0xc3'))));let _0x3c22c5=0x0;for(const _0x21ad99 of _0x2de160){const _0xd94e2c=this[_0x38f5('0x89')](_0x21ad99[_0x38f5('0xf3')][_0x14e0fa][_0x38f5('0xcd')]);_0x21ad99==_0x279207?(_0x2ffe04=_0xd94e2c,_0x1d3125=_0x2ffe04[_0x38f5('0x40')],_0x2ffe04['forEach'](_0x2473f8=>{_0x2473f8['id']=_0x3c22c5++;}),this[_0x38f5('0x10d')](_0x2ffe04)):this[_0x38f5('0x90')](_0x2ffe04,_0xd94e2c);const _0x569c54=_0x2ffe04[_0x38f5('0x71')](_0x348930=>!_0x348930['isAdded'])[_0x38f5('0x83')](_0x44c3b4=>_0x44c3b4['id']);let _0x78dbf7=0x0;const _0x47eba4=this[_0x38f5('0x89')](_0x21ad99[_0x38f5('0xf3')][_0x14e0fa][_0x38f5('0x3')]);_0x47eba4[_0x38f5('0x5d')](_0xb6ffb1=>{_0xb6ffb1[_0x38f5('0x3f')]?_0xb6ffb1['id']=_0x1d3125++:_0xb6ffb1['id']=_0x569c54[_0x78dbf7++];}),this[_0x38f5('0x10d')](_0x47eba4),this['_setDistance'](_0x2ffe04,_0x38f5('0x22')),this[_0x38f5('0x3e')](_0x47eba4,_0x38f5('0x3f')),_0x21ad99==_0x279207&&this[_0x38f5('0xb3')](_0x2ffe04,_0x13453e),_0x2ffe04=this[_0x38f5('0xea')](_0x2ffe04,_0x47eba4),this['_refreshStartEndIndex'](_0x2ffe04),this[_0x38f5('0x3e')](_0x2ffe04,_0x38f5('0x3f'));}_0x2ffe04=_0x2ffe04[_0x38f5('0x71')](_0x557533=>!(_0x557533[_0x38f5('0x22')]&&_0x557533[_0x38f5('0x3f')]));const _0x4f5ce3=new Map(_0x5e1d51['model'][_0x14e0fa][_0x38f5('0x3')][_0x38f5('0x85')]),_0x5ded74=new Set(_0x13453e[_0x38f5('0xb2')]());for(const _0x153e54 of _0x4f5ce3['keys']())_0x5ded74[_0x38f5('0x75')](_0x153e54);this[_0x38f5('0x37')](_0x2ffe04,_0x5ded74),this[_0x38f5('0x43')](_0x2ffe04),_0x2ffe04=this[_0x38f5('0x42')](_0x2ffe04),_0x2ffe04=this[_0x38f5('0x4')](_0x2ffe04),_0x2ffe04=this[_0x38f5('0x14')](_0x2ffe04);const {root:_0x54a7e5,changes:_0x497f3c}=this[_0x38f5('0xa')](_0x2ffe04,_0x115030,_0x14e0fa);_0x1d7460[_0x38f5('0xf3')][_0x14e0fa]=_0x54a7e5;const _0x3786a2=_0x235fd4['get'](_0x14e0fa);if(_0x3786a2){const _0x1ad895=_0x115030[_0x38f5('0xf0')](_0x3786a2['userId']),_0x4beb78=new _0xb9e0aa({'author':_0x1ad895,'type':_0x3786a2['isAttached']?_0x38f5('0xe2'):_0x38f5('0x38'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x14e0fa});_0x497f3c[_0x38f5('0xbd')](_0x4beb78),_0x1d7460['attributes'][_0x14e0fa][_0x38f5('0x46')]=_0x4beb78['id'];}_0x1d7460[_0x38f5('0x116')]=_0x1d7460[_0x38f5('0x116')][_0x38f5('0x80')](_0x497f3c);}return _0x1d7460;}[_0x38f5('0xb3')](_0x35104d,_0x55e7f9){for(let _0x4b37f9=0x0;_0x4b37f9<_0x35104d[_0x38f5('0x40')];_0x4b37f9++)for(const [_0x4d2244,_0x4c6cd8]of _0x55e7f9)_0x4c6cd8[_0x38f5('0xb9')][_0x38f5('0x63')](_0x35104d[_0x4b37f9][_0x38f5('0x10a')])&&_0x35104d[_0x4b37f9][_0x38f5('0x78')][_0x38f5('0xdc')](_0x4d2244),_0x4c6cd8['end'][_0x38f5('0x63')](_0x35104d[_0x4b37f9][_0x38f5('0xa0')])&&_0x35104d[_0x4b37f9][_0x38f5('0x6e')]['push'](_0x4d2244);}[_0x38f5('0xea')](_0x4531b,_0x31f245){let _0x375172=[],_0x1137d2=0x0,_0x23456e=0x0;for(;_0x1137d2<_0x4531b[_0x38f5('0x40')]||_0x23456e<_0x31f245[_0x38f5('0x40')];){const _0x3ec118=_0x4531b[_0x1137d2]||{},_0xe18712=_0x31f245[_0x23456e]||{};if(_0x3ec118['id']==_0xe18712['id'])_0x1137d2++,_0x23456e++,_0x375172['push'](_0x3ec118);else{if(_0xe18712['isRemoved']&&_0x3ec118[_0x38f5('0x22')]){const {commonTape:_0x4bdfdf,iEnd:_0x333f4b,jEnd:_0x21d3a1}=this['_threeWayMerge'](_0x4531b,_0x1137d2,_0x31f245,_0x23456e);_0x375172=_0x375172['concat'](_0x4bdfdf),_0x1137d2=_0x333f4b,_0x23456e=_0x21d3a1;}else _0xe18712['isRemoved']?(_0x23456e++,_0x375172[_0x38f5('0xdc')](_0xe18712)):(_0x1137d2++,_0x375172[_0x38f5('0xdc')](_0x3ec118));}}return _0x375172;}['_markSuggestions'](_0x26eb4a,_0x585dcb){const _0x14a367=[];for(let _0x2d8e73=0x0;_0x2d8e73<_0x26eb4a['length'];_0x2d8e73++){for(let _0x5264b0=0x0;_0x5264b0<_0x26eb4a[_0x2d8e73][_0x38f5('0x78')][_0x38f5('0x40')];_0x5264b0++){const _0x4487a8=_0x26eb4a[_0x2d8e73][_0x38f5('0x78')][_0x5264b0];if(!_0x585dcb[_0x38f5('0x77')](_0x4487a8))continue;const {group:_0x2bdf86,type:_0x422803,authorId:_0x2c596a}=_0x56a3c7(_0x4487a8);'revision-suggestion'!=_0x2bdf86||_0x38f5('0xad')!=_0x422803&&_0x38f5('0x69')!=_0x422803||(_0x14a367[_0x38f5('0xbd')]({'type':_0x422803,'name':_0x4487a8,'userId':_0x2c596a}),_0x26eb4a[_0x2d8e73][_0x38f5('0x78')][_0x38f5('0xdf')](_0x5264b0,0x1),_0x5264b0--);}_0x195156(_0x26eb4a[_0x2d8e73]);for(let _0x4a7679=0x0;_0x4a7679<_0x26eb4a[_0x2d8e73][_0x38f5('0x6e')]['length'];_0x4a7679++){const _0x4465c2=_0x26eb4a[_0x2d8e73][_0x38f5('0x6e')][_0x4a7679];if(!_0x585dcb['has'](_0x4465c2))continue;const {group:_0x3368bf,type:_0x119f4a}=_0x56a3c7(_0x4465c2);if('revision-suggestion'!=_0x3368bf||_0x38f5('0xad')!=_0x119f4a&&'deletion'!=_0x119f4a)continue;_0x26eb4a[_0x2d8e73]['markersEnd'][_0x38f5('0xdf')](_0x4a7679,0x1),_0x4a7679--;const _0x257669=_0x14a367['findIndex'](_0x1aa481=>_0x1aa481[_0x38f5('0xd4')]==_0x4465c2);_0x257669>-0x1&&_0x14a367[_0x38f5('0xdf')](_0x257669,0x1);}}function _0x56a3c7(_0x2a8f05){const _0x1f1292=_0x2a8f05[_0x38f5('0xb7')](':');return{'group':_0x1f1292[0x0],'type':_0x1f1292[0x1],'subType':_0x1f1292[_0x38f5('0x40')]>=0x5?_0x1f1292[0x2]:null,'id':_0x1f1292[_0x38f5('0x40')]<0x5?_0x1f1292[0x2]:_0x1f1292[0x3],'authorId':_0x1f1292[_0x38f5('0x40')]<0x5?_0x1f1292[0x3]:_0x1f1292[0x4],'markerCount':0x6==_0x1f1292[_0x38f5('0x40')]?_0x1f1292[0x5]:null};}function _0x195156(_0x297665){for(let _0x46e393=0x0;_0x46e393<_0x14a367['length'];_0x46e393++){if(_0x297665[_0x38f5('0x22')]&&'insertion'==_0x14a367[_0x46e393][_0x38f5('0x117')])return _0x297665[_0x38f5('0x6b')]=_0x14a367[_0x46e393],void delete _0x297665['isAdded'];if(!_0x297665[_0x38f5('0x22')]&&!_0x297665[_0x38f5('0x3f')]&&_0x38f5('0x69')==_0x14a367[_0x46e393]['type'])return void(_0x297665['isRemoveSuggestion']=_0x14a367[_0x46e393]);}}}[_0x38f5('0x3e')](_0x5c8776,_0x34f4d9){let _0x1b0084=0x0,_0x589adf=!0x1;const _0x3a504e=new Map();for(const _0x4bf57d of _0x5c8776)_0x4bf57d[_0x34f4d9]?_0x589adf&&(_0x1b0084++,_0x589adf=!0x1):(_0x1b0084++,_0x589adf=!0x0),_0x3a504e['set'](_0x4bf57d['id'],_0x1b0084);for(let _0x11a4bf=0x0;_0x11a4bf<_0x5c8776[_0x38f5('0x40')];_0x11a4bf++){if(_0x38f5('0x3f')==_0x34f4d9&&_0x5c8776[_0x11a4bf]['isAdded']||_0x38f5('0x22')==_0x34f4d9&&_0x5c8776[_0x11a4bf][_0x38f5('0x3f')])continue;if(_0x38f5('0x119')==_0x5c8776[_0x11a4bf][_0x38f5('0x117')]){_0x5c8776[_0x11a4bf][_0x38f5('0x24')]=0x0;continue;}const _0x10bd85=_0x3a504e[_0x38f5('0xf0')](_0x5c8776[_0x11a4bf]['pairId']),_0x2fef97=_0x3a504e[_0x38f5('0xf0')](_0x5c8776[_0x11a4bf]['id']);_0x5c8776[_0x11a4bf]['distance']=_0x10bd85-_0x2fef97;}}[_0x38f5('0x91')](_0x5b8271,_0x38d3b7,_0x1786f8=!0x1){const _0x35c73e=[];let _0x1211ab=this[_0x38f5('0x105')][_0x38f5('0x53')](_0x5b8271),_0x227c9a=this[_0x38f5('0x105')]['getIndex'](_0x38d3b7);for(-0x1==_0x227c9a&&(_0x227c9a=this[_0x38f5('0x105')][_0x38f5('0xe6')]['length'],_0x1786f8=!0x1);_0x1211ab<_0x227c9a;)_0x35c73e['push'](this['repository']['getRevision'](_0x1211ab)),_0x1211ab++;return _0x1786f8&&_0x35c73e[_0x38f5('0xdc')](this[_0x38f5('0x105')][_0x38f5('0x56')](_0x1211ab)),_0x35c73e;}['_threeWayMerge'](_0x162c84,_0x17c33a,_0x5885b4,_0x33cd17){const _0x36f2f8=this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0x112')];let _0x32819b=_0x17c33a;for(;_0x162c84[_0x32819b]&&_0x162c84[_0x32819b][_0x38f5('0x22')];)_0x32819b++;let _0x451579=_0x33cd17;for(;_0x5885b4[_0x451579]&&_0x5885b4[_0x451579][_0x38f5('0x3f')];)_0x451579++;_0x45d136(_0x162c84,_0x17c33a,_0x32819b),_0x45d136(_0x5885b4,_0x33cd17,_0x451579);const _0xdf644d=_0x5885b4['slice'](_0x33cd17,_0x451579)[_0x38f5('0x80')](_0x162c84['slice'](_0x17c33a,_0x32819b));return _0xdf644d['sort']((_0x3fb91c,_0x2ebc87)=>_0x3fb91c[_0x38f5('0xfd')]!=_0x2ebc87[_0x38f5('0xfd')]?_0x3fb91c[_0x38f5('0xfd')]-_0x2ebc87[_0x38f5('0xfd')]:_0x3fb91c[_0x38f5('0x2')]!=_0x2ebc87[_0x38f5('0x2')]?_0x3fb91c[_0x38f5('0x2')]-_0x2ebc87[_0x38f5('0x2')]:_0x3fb91c[_0x38f5('0x24')]!=_0x2ebc87[_0x38f5('0x24')]?_0x2ebc87['distance']-_0x3fb91c['distance']:!!_0x3fb91c[_0x38f5('0x22')]!=!!_0x2ebc87[_0x38f5('0x22')]?-0x1==_0x3fb91c[_0x38f5('0xfd')]||0x0==_0x3fb91c['side']?_0x3fb91c[_0x38f5('0x22')]?-0x1:0x1:_0x3fb91c['isAdded']?0x1:-0x1:_0x3fb91c['index']-_0x2ebc87[_0x38f5('0x11c')]),{'commonTape':_0xdf644d,'iEnd':_0x32819b,'jEnd':_0x451579};function _0x45d136(_0x11f8b9,_0x19f4b8,_0x222434){let _0x26e557=-0x1,_0x2d15f2=Number[_0x38f5('0x5b')],_0x160e48=!0x0;for(let _0x41e52a=_0x19f4b8;_0x41e52a<_0x222434;_0x41e52a++)if(_0x36f2f8['isInline'](_0x11f8b9[_0x41e52a][_0x38f5('0x2f')])||(_0x160e48=!0x1),_0x11f8b9[_0x41e52a][_0x38f5('0x2f')][_0x38f5('0x100')]<_0x19f4b8&&(_0x26e557=_0x41e52a),_0x11f8b9[_0x41e52a][_0x38f5('0x2f')][_0x38f5('0x8')]>=_0x222434){_0x2d15f2=_0x41e52a;break;}_0x160e48&&(_0x26e557=_0x222434-0x1);for(let _0x43c7cf=_0x19f4b8;_0x43c7cf<_0x222434;_0x43c7cf++)_0x11f8b9[_0x43c7cf]['side']=_0x43c7cf<=_0x26e557?-0x1:_0x43c7cf<_0x2d15f2?0x0:0x1,_0x11f8b9[_0x43c7cf]['index']=_0x43c7cf;let _0x24e0bc=0x0;for(let _0xaa18ba=_0x19f4b8;_0xaa18ba<=_0x26e557;_0xaa18ba++)0x0==_0x11f8b9[_0xaa18ba][_0x38f5('0x24')]?_0x11f8b9[_0xaa18ba][_0x38f5('0x2')]=_0x24e0bc:(_0x24e0bc++,_0x11f8b9[_0xaa18ba]['level']=_0x24e0bc,_0x24e0bc++);for(let _0x38572d=_0x19f4b8;_0x38572d<_0x222434;_0x38572d++)0x0==_0x11f8b9[_0x38572d][_0x38f5('0xfd')]&&(_0x11f8b9[_0x38572d]['level']=_0x24e0bc);_0x24e0bc=0x0;for(let _0x4d6c9c=_0x222434-0x1;_0x4d6c9c>=_0x2d15f2;_0x4d6c9c--)0x0==_0x11f8b9[_0x4d6c9c][_0x38f5('0x24')]?_0x11f8b9[_0x4d6c9c]['level']=_0x24e0bc:(_0x24e0bc--,_0x11f8b9[_0x4d6c9c]['level']=_0x24e0bc,_0x24e0bc--);}}[_0x38f5('0x43')](_0x3a163c){const _0x5bcb8d=new Map(),_0x5d7cde=this[_0x38f5('0x18')][_0x38f5('0xf3')]['schema'];for(let _0x10cb88=0x1;_0x10cb88<_0x3a163c[_0x38f5('0x40')];_0x10cb88++){let _0x5cac18,_0x2f97b4,_0x56b3da;const _0x5d9c58=_0x3a163c[_0x10cb88],_0x362fce=_0x3a163c[_0x10cb88-0x1];if('text'==_0x5d9c58['type'])continue;if(_0x5d9c58[_0x38f5('0x117')]!=_0x362fce[_0x38f5('0x117')])continue;if(!_0x5d7cde['isBlock'](_0x362fce[_0x38f5('0x2f')])||_0x5d7cde['isLimit'](_0x362fce[_0x38f5('0x2f')]))continue;if(!_0x5d7cde[_0x38f5('0x1')](_0x5d9c58[_0x38f5('0x2f')])||_0x5d7cde[_0x38f5('0x9a')](_0x5d9c58[_0x38f5('0x2f')]))continue;if((_0x3a163c[_0x10cb88][_0x38f5('0x22')]||_0x3a163c[_0x10cb88][_0x38f5('0x6b')])&&_0x3a163c[_0x10cb88-0x1][_0x38f5('0x3f')])_0x5cac18=_0x3a163c[_0x10cb88],_0x2f97b4=_0x3a163c[_0x10cb88-0x1],_0x56b3da=_0x10cb88-0x1;else{if(!_0x3a163c[_0x10cb88]['isRemoved']||!_0x3a163c[_0x10cb88-0x1][_0x38f5('0x22')]&&!_0x3a163c[_0x10cb88-0x1][_0x38f5('0x6b')])continue;_0x5cac18=_0x3a163c[_0x10cb88-0x1],_0x2f97b4=_0x3a163c[_0x10cb88],_0x56b3da=_0x10cb88;}const _0x8a4496=_0x5cac18[_0x38f5('0x2')]==_0x2f97b4[_0x38f5('0x2')],_0x49124d=Math[_0x38f5('0x4c')](_0x5cac18['level'])<Math['abs'](_0x2f97b4[_0x38f5('0x2')])&&0x0==_0x2f97b4[_0x38f5('0x24')];(_0x8a4496||_0x49124d)&&(_0x5bcb8d[_0x38f5('0x6f')](_0x2f97b4['id'],_0x5cac18['id']),_0x3a163c[_0x38f5('0xdf')](_0x56b3da,0x1),_0x10cb88--,_0x5cac18[_0x38f5('0x22')]=!0x1);}for(let _0x2d9c1a=0x0;_0x2d9c1a<_0x3a163c[_0x38f5('0x40')];_0x2d9c1a++)_0x5bcb8d['has'](_0x3a163c[_0x2d9c1a][_0x38f5('0x87')])&&(_0x3a163c[_0x2d9c1a][_0x38f5('0x87')]=_0x5bcb8d['get'](_0x3a163c[_0x2d9c1a][_0x38f5('0x87')]));}[_0x38f5('0x42')](_0x22d673){const _0x2350cb=new Set(_0x22d673[_0x38f5('0x83')](_0xf99d0f=>_0xf99d0f['id']));for(let _0x45f18c=0x0;_0x45f18c<_0x22d673[_0x38f5('0x40')];_0x45f18c++)_0x2350cb[_0x38f5('0x77')](_0x22d673[_0x45f18c][_0x38f5('0x87')])||0x0==_0x22d673[_0x45f18c]['distance']||(_0x22d673[_0x45f18c]['isIncorrect']=!0x0);return _0x22d673[_0x38f5('0x71')](_0x3700cb=>!_0x3700cb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x29aa59){const _0x4eb236=new Set();for(let _0x2354da=0x0;_0x2354da<_0x29aa59[_0x38f5('0x40')];_0x2354da++){if(_0x4eb236[_0x38f5('0x77')](_0x29aa59[_0x2354da]['id'])&&_0x29aa59[_0x2354da][_0x38f5('0x3f')]&&(_0x29aa59[_0x2354da][_0x38f5('0x27')]=!0x0),_0x29aa59[_0x2354da][_0x38f5('0x27')])continue;if(0x0==_0x29aa59[_0x2354da][_0x38f5('0x24')])continue;if(_0x38f5('0x2c')!=_0x29aa59[_0x2354da][_0x38f5('0x117')])continue;if(null==_0x29aa59[_0x2354da]['pairId'])continue;let _0x1ad386=_0x2354da+0x1,_0x35aa8c=0x0;for(;_0x29aa59[_0x1ad386]['id']!=_0x29aa59[_0x2354da][_0x38f5('0x87')];)'elementStart'==_0x29aa59[_0x1ad386][_0x38f5('0x117')]?_0x35aa8c++:_0x38f5('0x25')==_0x29aa59[_0x1ad386][_0x38f5('0x117')]&&_0x35aa8c--,_0x1ad386++;if(0x0!=_0x35aa8c){if(_0x29aa59[_0x2354da][_0x38f5('0x3f')])_0x29aa59[_0x2354da][_0x38f5('0x27')]=!0x0;else for(;_0x1ad386!=_0x2354da;)_0x29aa59[_0x1ad386][_0x38f5('0x3f')]&&0x0!=_0x29aa59[_0x1ad386][_0x38f5('0x24')]&&(_0x29aa59[_0x1ad386][_0x38f5('0x27')]=!0x0,_0x4eb236[_0x38f5('0xe2')](_0x29aa59[_0x1ad386][_0x38f5('0x87')])),_0x1ad386--;}}return _0x29aa59[_0x38f5('0x71')](_0x3d0c47=>!_0x3d0c47['isIncorrect']);}['_removeUnsupportedChanges'](_0x886894){const _0x3e10f9=this[_0x38f5('0x18')][_0x38f5('0xf3')]['schema'];for(let _0x3bd3a5=0x0;_0x3bd3a5<_0x886894[_0x38f5('0x40')];_0x3bd3a5++){if(!(_0x886894[_0x3bd3a5][_0x38f5('0x22')]||_0x886894[_0x3bd3a5][_0x38f5('0x6b')]||_0x886894[_0x3bd3a5][_0x38f5('0x3f')]||_0x886894[_0x3bd3a5][_0x38f5('0x111')]))continue;if(0x0==_0x886894[_0x3bd3a5]['distance'])continue;const _0x34cdb4=_0x886894[_0x3bd3a5][_0x38f5('0x2f')];_0x3e10f9[_0x38f5('0x1')](_0x34cdb4)||_0x3e10f9[_0x38f5('0x9a')](_0x34cdb4)||(_0x886894[_0x3bd3a5][_0x38f5('0x22')]&&delete _0x886894[_0x3bd3a5]['isAdded'],_0x886894[_0x3bd3a5][_0x38f5('0x6b')]&&delete _0x886894[_0x3bd3a5][_0x38f5('0x6b')],_0x886894[_0x3bd3a5][_0x38f5('0x111')]&&delete _0x886894[_0x3bd3a5]['isRemoveSuggestion'],_0x886894[_0x3bd3a5][_0x38f5('0x3f')]&&(_0x886894[_0x3bd3a5][_0x38f5('0x27')]=!0x0));}return _0x886894[_0x38f5('0x71')](_0x333713=>!_0x333713[_0x38f5('0x27')]);}[_0x38f5('0xa')](_0x3ec23f,_0x5b92f5,_0x6239fc){const _0x1a6d3a=new _0x264425(),_0x12106a=[],_0x28ca2f=new Map(),_0x190411=this[_0x38f5('0x18')][_0x38f5('0xf3')],_0x56c719=_0x190411['schema'],_0xc76410=[_0x1a6d3a],_0x363ba8={},_0x3217cb={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x292fe5=null;const _0x18bfa8=[0x0];for(let _0x3c33ad=0x0;_0x3c33ad<_0x3ec23f['length'];_0x3c33ad++){let _0x4234af,_0xa50406;if(_0x38f5('0x2c')===_0x3ec23f[_0x3c33ad][_0x38f5('0x117')]){_0x4234af=_0x190411['createPositionFromPath'](_0x1a6d3a,_0x18bfa8);const _0x1d717a=new _0x2e158a(_0x3ec23f[_0x3c33ad][_0x38f5('0x2f')][_0x38f5('0xd4')],_0x3ec23f[_0x3c33ad][_0x38f5('0x2f')]['getAttributes']());_0xc76410[0x0][_0x38f5('0x7')](_0x1d717a),_0x18bfa8[_0x38f5('0xdc')](0x0),_0xc76410[_0x38f5('0xbd')](_0x1d717a),_0xa50406=_0x190411['createPositionFromPath'](_0x1a6d3a,_0x18bfa8),_0x292fe5=null;}else{if('elementEnd'===_0x3ec23f[_0x3c33ad][_0x38f5('0x117')])_0xc76410['shift'](),_0x4234af=_0x190411[_0x38f5('0xec')](_0x1a6d3a,_0x18bfa8),_0x18bfa8[_0x38f5('0x8e')](),_0x18bfa8[_0x18bfa8['length']-0x1]++,_0xa50406=_0x190411[_0x38f5('0xec')](_0x1a6d3a,_0x18bfa8),_0x292fe5=null;else{if(_0x4234af=_0x190411['createPositionFromPath'](_0x1a6d3a,_0x18bfa8),_0x292fe5&&_0x401ee2(_0x292fe5,_0x3ec23f[_0x3c33ad][_0x38f5('0x2f')]))_0x292fe5[_0x38f5('0xe8')]+=_0x3ec23f[_0x3c33ad][_0x38f5('0x2f')][_0x38f5('0x7e')];else{const _0x502dc3=new _0x254439(_0x3ec23f[_0x3c33ad]['item'][_0x38f5('0x7e')],_0x3ec23f[_0x3c33ad][_0x38f5('0x2f')]['getAttributes']());_0xc76410[0x0][_0x38f5('0x7')](_0x502dc3),_0x292fe5=_0x502dc3;}_0x18bfa8[_0x18bfa8[_0x38f5('0x40')]-0x1]+=_0x3ec23f[_0x3c33ad]['item'][_0x38f5('0xf')],_0xa50406=_0x190411[_0x38f5('0xec')](_0x1a6d3a,_0x18bfa8);}}for(const _0x34bbf7 of _0x3ec23f[_0x3c33ad][_0x38f5('0x78')])_0x28ca2f[_0x38f5('0x6f')](_0x34bbf7,{'start':_0x4234af,'end':null});_0x17aa17(_0x38f5('0x111'),_0x3c33ad,_0x4234af,_0xa50406),_0x17aa17(_0x38f5('0x6b'),_0x3c33ad,_0x4234af,_0xa50406),_0x17aa17(_0x38f5('0x3f'),_0x3c33ad,_0x4234af,_0xa50406),_0x17aa17(_0x38f5('0x22'),_0x3c33ad,_0x4234af,_0xa50406);for(const _0x596cee of _0x3ec23f[_0x3c33ad][_0x38f5('0x6e')]){_0x28ca2f[_0x38f5('0xf0')](_0x596cee)[_0x38f5('0x13')]=_0xa50406;}}for(const [_0x2105f7,_0x2e296f]of _0x28ca2f){const _0x2d2b91=this[_0x38f5('0x18')]['model'][_0x38f5('0x96')](_0x2e296f['start'],_0x2e296f[_0x38f5('0x13')]);_0x1a6d3a[_0x38f5('0x85')][_0x38f5('0x6f')](_0x2105f7,_0x2d2b91);}return _0x12106a['sort']((_0x51561b,_0x358a3b)=>{const _0x408f87=_0x1a6d3a[_0x38f5('0x85')][_0x38f5('0xf0')](_0x38f5('0xc3')+_0x51561b['id']),_0x2f5296=_0x1a6d3a['markers'][_0x38f5('0xf0')](_0x38f5('0xc3')+_0x358a3b['id']);return _0x408f87[_0x38f5('0xb9')][_0x38f5('0x32')](_0x2f5296[_0x38f5('0xb9')])?-0x1:_0x408f87[_0x38f5('0xb9')]['isAfter'](_0x2f5296[_0x38f5('0xb9')])?0x1:_0x408f87[_0x38f5('0x13')]['isBefore'](_0x2f5296[_0x38f5('0x13')])?-0x1:_0x408f87['end']['isAfter'](_0x2f5296['end'])?0x1:_0x38f5('0xe2')===_0x51561b[_0x38f5('0x117')]?-0x1:0x1;}),{'root':_0x1a6d3a,'changes':_0x12106a};function _0x17aa17(_0x256d1d,_0x4a956d,_0x19c0ff,_0x290a64){const _0x3931a5=!!_0x3ec23f[_0x4a956d][_0x256d1d],_0x2765c3=_0x3931a5?_0x3ec23f[_0x4a956d][_0x256d1d][_0x38f5('0x1f')]:null,_0xc5a6e2=_0x4a956d===_0x3ec23f['length']-0x1,_0x33d5b1=_0x3217cb[_0x256d1d][0x0],_0x1a6ea3=_0x56c719['isObject'](_0x3ec23f[_0x4a956d][_0x38f5('0x2f')]);!_0x363ba8[_0x256d1d]&&_0x3931a5?_0x363ba8[_0x256d1d]={'start':_0x19c0ff,'tapeItem':_0x3ec23f[_0x4a956d],'userId':_0x2765c3,'type':_0x256d1d}:_0x363ba8[_0x256d1d]&&!_0x3931a5?(_0x363ba8[_0x256d1d][_0x38f5('0x13')]=_0x19c0ff,_0xd5228a(_0x363ba8[_0x256d1d]),_0x363ba8[_0x256d1d]=null):_0x363ba8[_0x256d1d]&&_0x3931a5&&_0x363ba8[_0x256d1d][_0x38f5('0x1f')]!==_0x2765c3&&(_0x363ba8[_0x256d1d][_0x38f5('0x13')]=_0x19c0ff,_0x33d5b1&&_0x33d5b1[_0x38f5('0x1f')]===_0x363ba8[_0x256d1d][_0x38f5('0x1f')]||_0xd5228a(_0x363ba8[_0x256d1d]),_0x363ba8[_0x256d1d]={'start':_0x19c0ff,'tapeItem':_0x3ec23f[_0x4a956d],'userId':_0x2765c3,'type':_0x256d1d}),_0x363ba8[_0x256d1d]&&_0x1a6ea3&&(_0x38f5('0x2c')!==_0x3ec23f[_0x4a956d]['type']||_0x33d5b1&&_0x33d5b1[_0x38f5('0x1f')]===_0x2765c3||_0x3217cb[_0x256d1d][_0x38f5('0xbd')]({'userId':_0x2765c3,'object':_0x3ec23f[_0x4a956d][_0x38f5('0x2f')],'change':_0x363ba8[_0x256d1d]}),_0x38f5('0x25')===_0x3ec23f[_0x4a956d][_0x38f5('0x117')]&&_0x33d5b1&&_0x33d5b1[_0x38f5('0xb6')]===_0x3ec23f[_0x4a956d][_0x38f5('0x2f')]&&(_0x3217cb[_0x256d1d][_0x38f5('0x113')](),_0x363ba8[_0x256d1d]=_0x33d5b1[_0x38f5('0xe7')])),_0x363ba8[_0x256d1d]&&_0xc5a6e2&&(_0x363ba8[_0x256d1d]['end']=_0x290a64,_0xd5228a(_0x363ba8[_0x256d1d]),_0x363ba8[_0x256d1d]=null);}function _0xd5228a({start:_0x1680c1,end:_0x5a52a6,tapeItem:_0x44729d,userId:_0x41216d,type:_0x29bf0e}){const _0x40b32e=_0x44729d['item'],_0x5aa633=_0x190411[_0x38f5('0x112')][_0x38f5('0x1')](_0x40b32e)&&!_0x190411[_0x38f5('0x112')]['isLimit'](_0x40b32e),_0x1123f1=_0x1680c1[_0x38f5('0x10f')]==_0x5a52a6[_0x38f5('0xcb')]&&_0x5a52a6[_0x38f5('0x1b')];if(_0x5aa633&&_0x1123f1)return;const _0x31d7da=_0x190411['createRange'](_0x1680c1,_0x5a52a6),_0x97f529=_0x5b92f5[_0x38f5('0xf0')](_0x41216d),_0x21a5df=new _0xb9e0aa({'author':_0x97f529,'type':'isAdded'==_0x29bf0e||_0x38f5('0x6b')==_0x29bf0e?'add':_0x38f5('0x38'),'data':{'isSuggestion':_0x38f5('0x6b')==_0x29bf0e||'isRemoveSuggestion'==_0x29bf0e},'createdAt':new Date(),'rootName':_0x6239fc});_0x12106a[_0x38f5('0xdc')](_0x21a5df),_0x1a6d3a[_0x38f5('0x85')][_0x38f5('0x6f')](_0x38f5('0xc3')+_0x21a5df['id'],_0x31d7da);}function _0x401ee2(_0x2b7886,_0x32c107){const _0x4beb0e=_0x2b7886[_0x38f5('0xeb')](),_0x57c730=_0x32c107[_0x38f5('0xeb')]();for(const _0x3947bb of _0x4beb0e){if(_0x3947bb[0x1]!==_0x32c107['getAttribute'](_0x3947bb[0x0]))return!0x1;_0x57c730[_0x38f5('0xd2')]();}return _0x57c730[_0x38f5('0xd2')]()[_0x38f5('0xfa')];}}['_setConversion'](){this[_0x38f5('0x18')][_0x38f5('0xab')]['for'](_0x38f5('0x50'))['dataToMarker']({'view':'revision'}),this[_0x38f5('0x18')]['conversion']['for'](_0x38f5('0xb5'))[_0x38f5('0xe1')]({'model':_0x38f5('0xa1'),'view':_0x58844c=>{const _0x5ad83e=_0x58844c[_0x38f5('0xbb')][_0x38f5('0xb7')](':')[0x1],_0x3f1511=this[_0x38f5('0x4a')](_0x5ad83e);if(!_0x3f1511)return null;const _0x361b76=_0x38f5('0xe2')==_0x3f1511[_0x38f5('0x117')]?_0x38f5('0xad'):_0x38f5('0x69'),_0x1b113f=[_0x38f5('0x55'),'ck-suggestion-marker-'+_0x361b76];return _0x3f1511[_0x38f5('0x7e')]['isSuggestion']&&_0x1b113f[_0x38f5('0xdc')](_0x38f5('0x7a')+_0x361b76+_0x38f5('0x65')),this[_0x38f5('0x3b')]==_0x3f1511&&_0x1b113f[_0x38f5('0xdc')](_0x38f5('0x57')),{'classes':_0x1b113f,'attributes':{'data-change-id':_0x5ad83e}};}}),this[_0x38f5('0x18')]['conversion'][_0x38f5('0x88')](_0x38f5('0x50'))[_0x38f5('0xe2')](_0x30f459=>{_0x30f459['on'](_0x38f5('0x58'),(_0x3f2ea1,_0x5ac9eb,_0x378ffd)=>{const _0x300d3f=_0x5ac9eb[_0x38f5('0x2a')]['getChild'](0x0);if(!_0x300d3f||!_0x300d3f['is'](_0x38f5('0xd9'),'code'))return;if(!_0x378ffd[_0x38f5('0x8c')][_0x38f5('0x4f')](_0x300d3f,{'attributes':['vid_start',_0x38f5('0x61')]}))return;const _0x53f9c1=_0x5ac9eb[_0x38f5('0xf5')][_0x38f5('0xb9')]['nodeAfter'];_0x378ffd[_0x38f5('0xf9')][_0x38f5('0x3c')](_0x38f5('0xac'),_0x300d3f[_0x38f5('0x6a')](_0x38f5('0xac')),_0x53f9c1),_0x378ffd[_0x38f5('0xf9')]['setAttribute'](_0x38f5('0x61'),_0x300d3f[_0x38f5('0x6a')]('vid_end'),_0x53f9c1);},{'priority':_0x38f5('0x10c')});}),this[_0x38f5('0x18')][_0x38f5('0xab')]['for'](_0x38f5('0x50'))[_0x38f5('0xe2')](_0x1ceaa5=>{_0x1ceaa5['on'](_0x38f5('0xd9'),(_0x5282da,_0x445f6e,_0x59d29f)=>{if(!_0x59d29f[_0x38f5('0x8c')][_0x38f5('0x4f')](_0x445f6e[_0x38f5('0x2a')],{'attributes':[_0x38f5('0xac'),_0x38f5('0x61')]}))return;if(_0x445f6e['modelRange'][_0x38f5('0x10')])return;const _0x42d218=_0x445f6e['modelRange'][_0x38f5('0xb9')][_0x38f5('0x10f')];_0x42d218[_0x38f5('0xae')](_0x38f5('0xac'))||_0x42d218['hasAttribute'](_0x38f5('0xe0'))||(_0x59d29f[_0x38f5('0xf9')][_0x38f5('0x3c')]('vid_start',_0x445f6e[_0x38f5('0x2a')][_0x38f5('0x6a')](_0x38f5('0xac')),_0x42d218),_0x59d29f[_0x38f5('0xf9')]['setAttribute']('vid_end',_0x445f6e[_0x38f5('0x2a')][_0x38f5('0x6a')](_0x38f5('0x61')),_0x42d218));},{'priority':_0x38f5('0x10c')});}),this[_0x38f5('0x18')][_0x38f5('0xab')][_0x38f5('0x88')](_0x38f5('0x50'))[_0x38f5('0x41')]({'view':{'name':_0x38f5('0x1e'),'attributes':{'vid':!0x0}},'model':{'key':_0x38f5('0xe0'),'value':_0x23b131=>_0x23b131['getAttribute']('vid')}}),this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0x112')]['on']('checkAttribute',(_0x3ee11b,[,_0x401a52])=>{[_0x38f5('0xac'),_0x38f5('0x61'),_0x38f5('0xe0')][_0x38f5('0x1c')](_0x401a52)&&(_0x3ee11b['return']=!0x0,_0x3ee11b['stop']());},{'priority':_0x38f5('0x70')}),this[_0x38f5('0x18')][_0x38f5('0xab')]['for'](_0x38f5('0x1d'))[_0x38f5('0xe2')](_0x1d0794=>{_0x1d0794['on']('attribute:vid',(_0x138654,_0x1270ae,_0x43ecd6)=>{if('\x20'!=_0x1270ae[_0x38f5('0x2f')]['data']||_0x1270ae[_0x38f5('0x2f')][_0x38f5('0xcb')][_0x38f5('0x33')]>0x1)return;if(!_0x43ecd6[_0x38f5('0x8c')][_0x38f5('0x4f')](_0x1270ae[_0x38f5('0x2f')],_0x138654[_0x38f5('0xd4')]))return;const _0x44fa85=_0x43ecd6[_0x38f5('0xf9')],_0x1bf616=_0x43ecd6['mapper'][_0x38f5('0xee')](_0x1270ae[_0x38f5('0x3a')]);_0x44fa85[_0x38f5('0xfb')](_0x1bf616,_0x44fa85[_0x38f5('0xda')](_0x38f5('0x1e')));});}),this['editor'][_0x38f5('0xab')][_0x38f5('0x88')](_0x38f5('0x1d'))[_0x38f5('0x94')]({'model':_0x38f5('0xa1')}),this[_0x38f5('0x18')][_0x38f5('0x8a')]['downcastDispatcher']['on']('addMarker:revision',function(_0x4c0d79){const _0x54f297=_0x4c0d79['plugins'][_0x38f5('0xf0')]('RevisionViewer');return(_0x45579e,_0x148c1d,_0x47c363)=>{const _0x38f264=_0x148c1d[_0x38f5('0xbb')][_0x38f5('0xb7')](':')[0x1],_0x2155e5=_0x54f297[_0x38f5('0x4a')](_0x38f264);if(!_0x2155e5)return null;const _0x2ee0a1=_0x38f5('0xe2')==_0x2155e5[_0x38f5('0x117')]?'split':_0x38f5('0x97');if(!_0x47c363[_0x38f5('0x8c')][_0x38f5('0x9')](_0x148c1d[_0x38f5('0x17')],_0x45579e[_0x38f5('0xd4')]))return;const _0x18b966=_0x148c1d[_0x38f5('0x17')][_0x38f5('0x8d')](),_0x118ed0=_0x148c1d[_0x38f5('0x17')][_0x38f5('0xb9')],_0x546997=_0x4c0d79[_0x38f5('0xf3')][_0x38f5('0x112')];let _0x4786e6=null,_0x2a1061=null,_0x595999=!0x1,_0x35575f=!0x1;for(const _0x385bde of _0x18b966){const _0x45df1d=_0x385bde[_0x38f5('0x2f')];_0x595999=_0x595999||_0x546997[_0x38f5('0xcf')](_0x45df1d);const _0x49f651=_0x47c363[_0x38f5('0xbe')][_0x38f5('0xd3')](_0x45df1d);if(_0x49f651&&_0x49f651['getCustomProperty']('addHighlight'))return;_0x38f5('0x25')==_0x385bde[_0x38f5('0x117')]&&(_0x546997['isBlock'](_0x45df1d)&&!_0x546997['isLimit'](_0x45df1d)&&(_0x45df1d[_0x38f5('0xc4')]||_0x118ed0['isAtEnd']?_0x4786e6&&_0x4786e6[_0x38f5('0xcb')]==_0x45df1d||(_0x4786e6=_0x45df1d,_0x1b74f4(_0x385bde['previousPosition']),_0x35575f=!0x0):_0x2a1061=_0x2a1061||_0x385bde[_0x38f5('0x10a')]));}function _0x1b74f4(_0x8cf677){const _0x475fcd=_0x47c363[_0x38f5('0xf9')]['createUIElement']('span',{'class':_0x38f5('0x7a')+_0x2ee0a1}),_0x2e59cd=_0x47c363['mapper']['toViewPosition'](_0x8cf677);_0x2155e5[_0x38f5('0x7e')][_0x38f5('0x5f')]&&_0x47c363[_0x38f5('0xf9')][_0x38f5('0xf1')](_0x38f5('0x7a')+_0x2ee0a1+_0x38f5('0x65'),_0x475fcd),_0x54f297['activeChange']==_0x2155e5&&_0x47c363[_0x38f5('0xf9')]['addClass'](_0x38f5('0x57'),_0x475fcd),_0x47c363[_0x38f5('0xf9')][_0x38f5('0xfe')](_0x2e59cd,_0x475fcd),_0x47c363[_0x38f5('0xbe')][_0x38f5('0xa5')](_0x475fcd,_0x148c1d['markerName']);}_0x595999||_0x35575f||!_0x2a1061||_0x1b74f4(_0x2a1061);};}(this[_0x38f5('0x18')]),{'priority':_0x38f5('0x7f')}),this[_0x38f5('0x18')][_0x38f5('0x8a')]['downcastDispatcher']['on']('removeMarker:revision',(_0x4a3a44,_0x46907e,_0x83f9)=>{const _0x3c0795=_0x83f9[_0x38f5('0xbe')][_0x38f5('0x6c')](_0x46907e['markerName']);if(_0x3c0795)for(const _0x336a0e of _0x3c0795)(_0x336a0e[_0x38f5('0x19')](_0x38f5('0xc8'))||_0x336a0e[_0x38f5('0x19')](_0x38f5('0xe9')))&&(_0x83f9[_0x38f5('0xbe')][_0x38f5('0x28')](_0x336a0e,_0x46907e[_0x38f5('0xbb')]),_0x83f9[_0x38f5('0xf9')][_0x38f5('0x38')](_0x336a0e));},{'priority':_0x38f5('0x7f')}),this[_0x38f5('0x18')]['editing']['downcastDispatcher']['on'](_0x38f5('0x115'),(_0x132974,_0x3e7696,_0x30d9d4)=>{const _0x288f4c=_0x3e7696['markerName'][_0x38f5('0xb7')](':')[0x1],_0xa2e52c=this[_0x38f5('0x4a')](_0x288f4c);if(!_0xa2e52c)return null;const _0x315f98='add'==_0xa2e52c[_0x38f5('0x117')]?_0x38f5('0xb7'):'merge';if(_0x30d9d4[_0x38f5('0x8c')][_0x38f5('0x9')](_0x3e7696[_0x38f5('0x17')],_0x132974[_0x38f5('0xd4')]))for(const _0x3e8315 of _0x3e7696['markerRange'][_0x38f5('0x84')]()){if(!_0x3e8315['is'](_0x38f5('0xd9'),_0x38f5('0x6d')))continue;const _0x321804=_0x30d9d4['writer']['createUIElement']('span',{'class':_0x38f5('0x7a')+_0x315f98}),_0x1318d3=_0x30d9d4[_0x38f5('0xbe')][_0x38f5('0xd5')](this['editor'][_0x38f5('0xf3')][_0x38f5('0xe4')](_0x3e8315));_0xa2e52c[_0x38f5('0x7e')][_0x38f5('0x5f')]&&_0x30d9d4[_0x38f5('0xf9')][_0x38f5('0xf1')](_0x38f5('0x7a')+_0x315f98+_0x38f5('0x65'),_0x321804),this['activeChange']==_0xa2e52c&&_0x30d9d4[_0x38f5('0xf9')][_0x38f5('0xf1')](_0x38f5('0x57'),_0x321804),_0x30d9d4[_0x38f5('0xf9')][_0x38f5('0xfe')](_0x1318d3,_0x321804),_0x30d9d4['mapper']['bindElementToMarker'](_0x321804,_0x3e7696[_0x38f5('0xbb')]);}},{'priority':_0x38f5('0x7f')}),this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0xc5')]['on'](_0x38f5('0xe7'),()=>{this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0x114')][_0x38f5('0xe7')](_0x421a0d=>{for(const _0x2af9fb of this[_0x38f5('0x18')][_0x38f5('0xf3')]['document'][_0x38f5('0x34')]()){const _0x71e751=this[_0x38f5('0x18')]['model']['document'][_0x38f5('0x11b')](_0x2af9fb),_0x1ce798=this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0x114')]['document']['getRoot'](_0x2af9fb);if(_0x1ce798){const _0x3c43f8=_0x71e751[_0x38f5('0x6a')](_0x38f5('0x46'));if(_0x421a0d[_0x38f5('0x52')]('data-change-id',_0x1ce798),_0x421a0d[_0x38f5('0x11')](_0x38f5('0xc2'),_0x1ce798),_0x421a0d['removeClass']('ck-revision-history-root-remove',_0x1ce798),_0x421a0d[_0x38f5('0x11')]('ck-revision-history-root--active',_0x1ce798),_0x3c43f8){const _0x29a0cc=this[_0x38f5('0x4a')](_0x3c43f8);if(!_0x29a0cc)return null;_0x421a0d['setAttribute'](_0x38f5('0x48'),_0x3c43f8,_0x1ce798),_0x421a0d[_0x38f5('0xf1')](_0x38f5('0x81')+_0x29a0cc['type'],_0x1ce798),this[_0x38f5('0x3b')]==_0x29a0cc&&_0x421a0d[_0x38f5('0xf1')](_0x38f5('0x62'),_0x1ce798);}}}});}),this['editor'][_0x38f5('0xab')][_0x38f5('0x88')](_0x38f5('0x50'))['dataToMarker']({'view':_0x38f5('0xd7'),'model':_0x3315ad=>_0x38f5('0xc1')+_0x3315ad,'converterPriority':'highest'}),this[_0x38f5('0x18')][_0x38f5('0xab')][_0x38f5('0x88')](_0x38f5('0x50'))['dataToMarker']({'view':'suggestion','model':_0x1f508f=>_0x38f5('0x101')+_0x1f508f,'converterPriority':_0x38f5('0x70')}),this[_0x38f5('0x18')]['conversion'][_0x38f5('0x88')]('dataDowncast')[_0x38f5('0x94')]({'model':_0x38f5('0x4e'),'view':_0x3d7eee=>({'name':'suggestion:'+_0x3d7eee,'group':_0x38f5('0x4e')}),'converterPriority':'highest'}),this[_0x38f5('0x18')][_0x38f5('0xab')][_0x38f5('0x88')](_0x38f5('0xb5'))['markerToHighlight']({'model':'revision-suggestion','view':_0x3fcbc5=>{const _0x176549=_0x3fcbc5[_0x38f5('0xbb')][_0x38f5('0xb7')](':')[0x1];return'insertion'!=_0x176549&&_0x38f5('0x69')!=_0x176549?null:{'classes':['ck-suggestion-preview-marker',_0x38f5('0x16')+_0x176549]};}}),this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0xd1')]['on'](_0x38f5('0x29'),et(this['editor'],_0x38f5('0x97')),{'priority':_0x38f5('0x7f')}),this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0xd1')]['on'](_0x38f5('0x1a'),et(this[_0x38f5('0x18')],'split'),{'priority':_0x38f5('0x7f')}),this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0xd1')]['on'](_0x38f5('0xb0'),(_0x16ad5b,_0x12535d,_0x2fd3ec)=>{const _0x5373f0=_0x2fd3ec['mapper']['markerNameToElements'](_0x12535d['markerName']);if(_0x5373f0)for(const _0x30d4cb of _0x5373f0)_0x30d4cb['is'](_0x38f5('0x0'))&&(_0x2fd3ec[_0x38f5('0xbe')][_0x38f5('0x28')](_0x30d4cb,_0x12535d[_0x38f5('0xbb')]),_0x2fd3ec['writer'][_0x38f5('0x38')](_0x30d4cb));},{'priority':_0x38f5('0x7f')});}[_0x38f5('0x4a')](_0x34d7f9){return this[_0x38f5('0x26')][_0x38f5('0xf0')](_0x34d7f9);}['_getViewForChange'](_0x55e84b){return this[_0x38f5('0x4b')]&&this['_changeView'][_0x38f5('0xd0')](),this['_changeView']=new _0x37db78(this[_0x38f5('0x18')][_0x38f5('0xa7')],_0x55e84b),this[_0x38f5('0x4b')];}[_0x38f5('0x74')](){this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0xc5')]['selection'][_0x38f5('0x102')](_0x38f5('0xa1')),this['on'](_0x38f5('0x3d'),(_0x15595d,_0x9ab2de,_0x8c7871,_0x5a6ae0)=>{_0x5a6ae0&&this[_0x38f5('0x92')][_0x38f5('0x38')](_0x5a6ae0),_0x8c7871&&(this[_0x38f5('0x92')]['add']({'view':_0x8c7871,'stackId':_0x38f5('0xa4'),'position':{'target':()=>{const _0x447546=this['editor'][_0x38f5('0x8a')],_0x1f1516=this['_getChangeFromId'](_0x8c7871['changeId']);let _0x23a3e1;if(_0x1f1516[_0x38f5('0x7e')][_0x38f5('0xe')]){const _0x2ea35c=_0x447546[_0x38f5('0x114')][_0x38f5('0xb4')](_0x1f1516[_0x38f5('0x7c')]);_0x23a3e1=Array[_0x38f5('0x54')](_0x2ea35c[_0x38f5('0x20')]());}else{const _0x3b9c0a=this[_0x38f5('0x18')][_0x38f5('0xf3')]['markers']['get'](_0x38f5('0xc3')+_0x8c7871[_0x38f5('0x109')]);_0x23a3e1=Array['from'](_0x447546['mapper'][_0x38f5('0x6c')](_0x3b9c0a[_0x38f5('0xd4')]))[_0x38f5('0x83')](_0x4b4d8e=>_0x447546[_0x38f5('0x114')][_0x38f5('0x39')][_0x38f5('0x5')](_0x4b4d8e))[_0x38f5('0x83')](_0x1ed3af=>Array[_0x38f5('0x54')](_0x1ed3af['getClientRects']()))[_0x38f5('0x59')]();}if(!this[_0x38f5('0x99')])return _0x23a3e1[0x0];return _0x23a3e1[_0x38f5('0x35')](_0x386d47=>_0x386d47['top']-0x3<=this[_0x38f5('0x99')]['y']&&_0x386d47[_0x38f5('0xed')]+0x3>=this[_0x38f5('0x99')]['y']&&_0x386d47[_0x38f5('0x47')]-0x3<=this[_0x38f5('0x99')]['x']&&_0x386d47[_0x38f5('0x108')]+0x3>=this['_activeViewTarget']['x'])||_0x23a3e1[0x0];}}}),this[_0x38f5('0x92')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x38f5('0xd8'),(_0x6aa20,_0x7d3113,_0x2ac001,_0x350b16)=>{this['activeView']=_0x2ac001?this[_0x38f5('0x9d')](_0x2ac001):null,this['editor']['model'][_0x38f5('0xe7')](()=>{const _0x36bf30=this['editor']['editing'];_0x350b16&&(_0x350b16['data'][_0x38f5('0xe')]?_0x36bf30[_0x38f5('0x114')]['change'](_0x139aec=>{_0x139aec[_0x38f5('0x11')](_0x38f5('0x62'),_0x36bf30[_0x38f5('0x114')][_0x38f5('0xc5')][_0x38f5('0x11b')](_0x350b16[_0x38f5('0x7c')]));}):_0x36bf30[_0x38f5('0x98')](_0x38f5('0xc3')+_0x350b16['id'])),_0x2ac001&&(_0x2ac001['data'][_0x38f5('0xe')]?_0x36bf30[_0x38f5('0x114')]['change'](_0x4324fa=>{_0x4324fa[_0x38f5('0xf1')](_0x38f5('0x62'),_0x36bf30[_0x38f5('0x114')]['document'][_0x38f5('0x11b')](_0x2ac001[_0x38f5('0x7c')]));}):_0x36bf30[_0x38f5('0x98')](_0x38f5('0xc3')+_0x2ac001['id']));});}),this[_0x38f5('0x9e')](this[_0x38f5('0x18')]['editing'][_0x38f5('0x114')][_0x38f5('0xc5')],_0x38f5('0x4d'),(_0x36f1e3,_0x237179)=>{if(this[_0x38f5('0x3b')])return;const _0x1e7c43=this['_findChangeIdFromDomTarget'](_0x237179[_0x38f5('0xc7')]),_0x3639fb=this[_0x38f5('0x26')][_0x38f5('0xf0')](_0x1e7c43);_0x3639fb?(this['_activeViewTarget']={'x':_0x237179['domEvent']['x'],'y':_0x237179[_0x38f5('0xf7')]['y']},this[_0x38f5('0xa2')]=this[_0x38f5('0x9d')](_0x3639fb)):(this[_0x38f5('0x99')]=null,this[_0x38f5('0xa2')]=null);}),this[_0x38f5('0x9e')](this[_0x38f5('0x18')][_0x38f5('0x8a')][_0x38f5('0x114')]['document'],_0x38f5('0xdd'),(_0x24d329,_0x51ed69)=>{const _0x36415c=this['_findChangeIdFromDomTarget'](_0x51ed69[_0x38f5('0xc7')]),_0x47eeb8=this['_changeIdToChange'][_0x38f5('0xf0')](_0x36415c);_0x47eeb8?(this['_activeViewTarget']={'x':_0x51ed69[_0x38f5('0xf7')]['x'],'y':_0x51ed69[_0x38f5('0xf7')]['y']},_0x47eeb8===this[_0x38f5('0x3b')]?this['_balloon']['updatePosition']():this[_0x38f5('0x3b')]=_0x47eeb8):(this[_0x38f5('0x99')]=null,this[_0x38f5('0x3b')]=null);});}[_0x38f5('0x15')](_0x47b6c8){do{const _0x462ea2=_0x47b6c8[_0x38f5('0x6a')](_0x38f5('0x48'));if(_0x462ea2)return _0x462ea2;_0x47b6c8=_0x47b6c8['parent'];}while(_0x47b6c8);return null;}[_0x38f5('0xde')](){this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0xe7')](_0x36be29=>{for(const _0x881ced of this[_0x38f5('0x18')][_0x38f5('0xf3')][_0x38f5('0x85')])_0x36be29[_0x38f5('0xd')](_0x881ced);});}}function et(_0x5b1174,_0x41e5e7){return(_0x5f2d56,_0x3856f0,_0x54ad64)=>{if(!_0x54ad64[_0x38f5('0x8c')][_0x38f5('0x9')](_0x3856f0[_0x38f5('0x17')],_0x5f2d56[_0x38f5('0xd4')]))return;const _0x17262f=_0x3856f0[_0x38f5('0x17')]['getWalker'](),_0x28a90f=_0x3856f0[_0x38f5('0x17')]['start'],_0x444c42=_0x5b1174[_0x38f5('0xf3')][_0x38f5('0x112')];let _0x389bbb=null,_0x2a824d=null,_0x38e106=!0x1,_0x5df005=!0x1;for(const _0x8adc04 of _0x17262f){const _0x4aa92b=_0x8adc04[_0x38f5('0x2f')];_0x38e106=_0x38e106||_0x444c42[_0x38f5('0xcf')](_0x4aa92b);const _0x2697c1=_0x54ad64[_0x38f5('0xbe')][_0x38f5('0xd3')](_0x4aa92b);if(_0x2697c1&&_0x2697c1[_0x38f5('0xaf')](_0x38f5('0xe3')))return;_0x38f5('0x25')==_0x8adc04[_0x38f5('0x117')]&&(_0x444c42['isBlock'](_0x4aa92b)&&!_0x444c42[_0x38f5('0x9a')](_0x4aa92b)&&(_0x4aa92b[_0x38f5('0xc4')]||_0x28a90f['isAtEnd']?_0x389bbb&&_0x389bbb[_0x38f5('0xcb')]==_0x4aa92b||(_0x389bbb=_0x4aa92b,_0x24b9f0(_0x8adc04[_0x38f5('0x10a')]),_0x5df005=!0x0):_0x2a824d=_0x2a824d||_0x8adc04[_0x38f5('0x10a')]));}function _0x24b9f0(_0x712f35){const _0x49b192=_0x54ad64[_0x38f5('0xbe')]['toViewPosition'](_0x712f35),_0x514962=_0x54ad64[_0x38f5('0xf9')][_0x38f5('0x8b')](_0x38f5('0x1e'),{'class':_0x38f5('0x16')+_0x41e5e7});_0x54ad64[_0x38f5('0xf9')][_0x38f5('0xfe')](_0x49b192,_0x514962),_0x54ad64[_0x38f5('0xbe')][_0x38f5('0xa5')](_0x514962,_0x3856f0[_0x38f5('0xbb')]);}_0x38e106||_0x5df005||!_0x2a824d||_0x24b9f0(_0x2a824d);};}export class RestoreRevisionCommand extends _0x1f11d9{constructor(_0x48b0be){super(_0x48b0be);const _0x1a9488=_0x48b0be[_0x38f5('0x11a')][_0x38f5('0xf0')](d);this['affectsData']=!0x1,this[_0x38f5('0x9e')](_0x1a9488,_0x38f5('0xc9'),()=>this[_0x38f5('0x2d')]()),this[_0x38f5('0x9e')](_0x1a9488,_0x38f5('0x45'),()=>this[_0x38f5('0x2d')]());}['execute'](){const _0x51dad2=this[_0x38f5('0x18')],_0x5178bb=_0x51dad2[_0x38f5('0x11a')][_0x38f5('0xf0')](d),_0x4a28ad=_0x5178bb['isReady']?_0x5178bb[_0x38f5('0xcc')][_0x38f5('0xff')]:null;_0x51dad2[_0x38f5('0x7b')][_0x38f5('0xf0')](_0x38f5('0x9f'))[_0x38f5('0x7d')](_0x4a28ad);}[_0x38f5('0x2d')](){const {isReady:_0x29356a,isEnabled:_0x25f9a0}=this[_0x38f5('0x18')][_0x38f5('0x11a')][_0x38f5('0xf0')](d);this['isEnabled']=_0x29356a&&_0x25f9a0;}}export class ShowChangeCommand extends _0x1f11d9{constructor(_0x324159,{direction:_0x3dd532}){super(_0x324159);const _0x38232f=_0x324159[_0x38f5('0x11a')]['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3dd532?0x1:-0x1,this[_0x38f5('0x9e')](_0x38232f,_0x38f5('0xc9'),()=>this[_0x38f5('0x2d')]()),this['listenTo'](_0x38232f,'change:isEnabled',()=>this[_0x38f5('0x2d')]()),this[_0x38f5('0x9e')](_0x38232f,_0x38f5('0xd8'),()=>this['refresh']());}[_0x38f5('0x51')](){const _0x1778dd=this[_0x38f5('0x18')],_0x3e2eeb=_0x1778dd[_0x38f5('0x11a')][_0x38f5('0xf0')](d),{isNavigationMode:_0x3071e2,currentChangeNumber:_0x4ae790}=_0x3e2eeb;let _0x15455e;if(_0x3e2eeb[_0x38f5('0x3b')]=_0x3071e2?_0x3e2eeb[_0x38f5('0xcc')][_0x38f5('0x116')][_0x38f5('0xf0')](_0x4ae790+this['_step']):_0x3e2eeb['diff']['changes']['first'],_0x3e2eeb[_0x38f5('0x3b')][_0x38f5('0x7e')][_0x38f5('0xe')])_0x15455e=_0x1778dd[_0x38f5('0x8a')][_0x38f5('0x114')][_0x38f5('0xb4')](_0x3e2eeb[_0x38f5('0x3b')][_0x38f5('0x7c')]);else{const _0x4749ab=_0x1778dd[_0x38f5('0xf3')]['markers']['get'](_0x38f5('0xc3')+_0x3e2eeb['activeChange']['id']);_0x15455e=_0x1ef551(_0x1778dd['editing'],_0x4749ab);}_0x3703f8({'target':_0x15455e,'viewportOffset':0x28});}[_0x38f5('0x2d')](){const {isNavigationMode:_0x388b31,currentChangeNumber:_0x5bccdb,numberOfChanges:_0x48a116,isReady:_0x22cf7d,isEnabled:_0x4f017f}=this['editor'][_0x38f5('0x11a')]['get'](d);this[_0x38f5('0xd6')]=!!(_0x4f017f&&_0x22cf7d&&_0x48a116)&&(!_0x388b31||(0x1===this['_step']?_0x5bccdb<_0x48a116-0x1:_0x5bccdb>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a9f=['add','listView','first','isReady','change:isActionsDropdownOpen','isEnabled','function','items','button','execute','threeVerticalDots','class','name','listenTo','find','bindTemplate','stopPropagation','source','ck-revision-history-sidebar__revision__actions','bind','extendTemplate','Show\x20more\x20items','isOpen','model','isVisible','set','_action','action','locale','ck-on','isActionsDropdownOpen','Name\x20this\x20revision'];(function(_0x359a93,_0x2a9f1b){const _0x466c17=function(_0x4c1454){while(--_0x4c1454){_0x359a93['push'](_0x359a93['shift']());}};_0x466c17(++_0x2a9f1b);}(_0x2a9f,0x145));const _0x466c=function(_0x359a93,_0x2a9f1b){_0x359a93=_0x359a93-0x0;let _0x466c17=_0x2a9f[_0x359a93];return _0x466c17;};import{Collection as _0x4f21ee}from'ckeditor5/src/utils.js';import{icons as _0x51cb87}from'ckeditor5/src/core.js';import{Model as _0x52af38,addListToDropdown as _0x2b8284,createDropdown as _0x38263a}from'ckeditor5/src/ui.js';import{getTranslation as _0x57abb8}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xcdee38,_0x34284e){const _0x49888f=_0xcdee38[_0x466c('0xa')],_0x34fb0f=_0xcdee38['locale'],_0x1174da=_0x38263a(_0x34fb0f);_0x1174da['panelPosition']='sw';const _0x3ecf62=function(_0x19a3bf,_0x1f3d4e){const _0x22e6d6=function(_0x3e0e39,_0x35907e){const _0x31219c=_0x3e0e39[_0x466c('0x17')],_0x5421fc={'Compare\x20against\x20selected':_0x57abb8(_0x31219c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x57abb8(_0x31219c,_0x466c('0x1a')),'Restore\x20this\x20revision':_0x57abb8(_0x31219c,'Restore\x20this\x20revision')};return _0x35907e['map'](_0x15117f=>{const _0x4086a4=_0x5421fc[_0x15117f['name']];return _0x4086a4&&_0x4086a4!==_0x15117f[_0x466c('0x7')]&&(_0x15117f[_0x466c('0x7')]=_0x4086a4),_0x15117f;});}(_0x19a3bf,_0x1f3d4e),_0x545071=new _0x4f21ee();for(const _0x385c4f of _0x22e6d6){const _0x4ad4c7={'type':_0x466c('0x3'),'model':new _0x52af38({'label':_0x385c4f[_0x466c('0x7')],'class':_0x385c4f[_0x466c('0x6')],'withText':!0x0,'_action':_0x385c4f['action']})};_0x4ad4c7[_0x466c('0x12')][_0x466c('0xe')](_0x466c('0x0'))['to'](_0x19a3bf,'isActionsDropdownOpen',_0x1191e6=>_0x466c('0x1')!=typeof _0x385c4f[_0x466c('0x0')]||(!_0x1191e6||_0x385c4f[_0x466c('0x0')](_0x19a3bf))),_0x545071[_0x466c('0x1b')](_0x4ad4c7);}return _0x545071;}(_0xcdee38,_0x34284e);return _0xcdee38[_0x466c('0xe')]('isActionsDropdownOpen')['to'](_0x1174da,_0x466c('0x11')),_0x1174da['buttonView'][_0x466c('0x14')]({'label':_0x57abb8(_0x34fb0f,_0x466c('0x10')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x51cb87[_0x466c('0x5')]}),_0x1174da[_0x466c('0xf')]({'attributes':{'class':[_0x466c('0xd'),_0x49888f['if'](_0x466c('0x19'),_0x466c('0x18'))]},'on':{'click':_0x49888f['to'](_0x35fbac=>_0x35fbac[_0x466c('0xb')]())}}),_0x1174da['on'](_0x466c('0x4'),_0x5a9b26=>{_0xcdee38[_0x466c('0x1e')]&&_0x466c('0x1')==typeof _0x5a9b26[_0x466c('0xc')][_0x466c('0x15')]&&_0x5a9b26[_0x466c('0xc')]['_action'](_0xcdee38);}),_0x2b8284(_0x1174da,_0x3ecf62),_0x1174da[_0x466c('0x8')](_0xcdee38,_0x466c('0x1f'),(_0x35ed1b,_0x31e86e,_0x315c6f)=>{if(_0x315c6f)for(const _0x3ceb38 of _0x1174da[_0x466c('0x1c')][_0x466c('0x2')]){const _0x38371b=_0x3ceb38['children'][_0x466c('0x1d')],_0x417f52=_0x34284e[_0x466c('0x9')](_0x42a16a=>_0x42a16a[_0x466c('0x16')]===_0x38371b[_0x466c('0x15')])['isVisible'];_0x3ceb38[_0x466c('0x13')]=void 0x0===_0x417f52||_0x417f52(_0xcdee38);}}),_0x1174da;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x465e=['ck-revision-history-sidebar__revision-author_creator','set','push','Revision\x20creator','Revision\x20author','span'];(function(_0x2cd6a4,_0x465e2a){const _0x1bde27=function(_0x547e7e){while(--_0x547e7e){_0x2cd6a4['push'](_0x2cd6a4['shift']());}};_0x1bde27(++_0x465e2a);}(_0x465e,0x120));const _0x1bde=function(_0x2cd6a4,_0x465e2a){_0x2cd6a4=_0x2cd6a4-0x0;let _0x1bde27=_0x465e[_0x2cd6a4];return _0x1bde27;};import{View as _0x24c278,IconView as _0x3d3593}from'ckeditor5/src/ui.js';import{getTranslation as _0x2eaef7}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x586bc8 from'../../../theme/icons/user.svg';export default class ti extends _0x24c278{constructor(_0x24b4d7,_0x13d745,_0x23f84f){super(_0x24b4d7);const _0x1b84da=new _0x3d3593();_0x1b84da[_0x1bde('0x1')]({'content':_0x586bc8,'viewBox':'0\x200\x2011\x2010'});const _0x11bacc=['ck','ck-revision-history-sidebar__revision-author'];_0x23f84f&&_0x11bacc[_0x1bde('0x2')](_0x1bde('0x0'));const _0x514e3b=[{'tag':_0x1bde('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x2eaef7(_0x24b4d7,_0x23f84f?_0x1bde('0x3'):_0x1bde('0x4'))},'children':[_0x1b84da,_0x13d745['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x11bacc},'children':_0x514e3b});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x19c8=['ck-revision-history-sidebar__revision-name','span','set'];(function(_0x5e8cfb,_0x19c8ba){var _0x2dbace=function(_0x50c94c){while(--_0x50c94c){_0x5e8cfb['push'](_0x5e8cfb['shift']());}};_0x2dbace(++_0x19c8ba);}(_0x19c8,0x1f1));var _0x2dba=function(_0x5e8cfb,_0x19c8ba){_0x5e8cfb=_0x5e8cfb-0x0;var _0x2dbace=_0x19c8[_0x5e8cfb];return _0x2dbace;};import{LabeledFieldView as _0x1c5005}from'ckeditor5/src/ui.js';import{getTranslation as _0x3d5ee8}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x1c5005{constructor(_0x23149c,_0xb03b1f){super(_0x23149c,_0xb03b1f),this[_0x2dba('0x0')]({'label':_0x3d5ee8(_0x23149c,'Revision\x20name')}),this['extendTemplate']({'tag':_0x2dba('0x2'),'attributes':{'class':[_0x2dba('0x1')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1dba=['ck-revision-history-sidebar__revision_selected','createdAt','220','revisionActionsView','isHighlighted','unshift','span','closest','value','fire','unhighlight','deselect','fieldView','length','creator','div','element','from','name','_revision','isEnabled','authors','ck-reset','isSelected','bind','isReady','ck-revision-history-sidebar__revision-wrapper','.ck-thread__remove-confirm','revisionNameView','_createdAtFormatted','ck-revision-history-sidebar__revision__date','srcElement','uiLanguage','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','select','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision','setTemplate','bindTemplate','set','filter','change'];(function(_0x5bd39e,_0x1dba69){const _0x34e2f7=function(_0x2f7bd1){while(--_0x2f7bd1){_0x5bd39e['push'](_0x5bd39e['shift']());}};_0x34e2f7(++_0x1dba69);}(_0x1dba,0x1e6));const _0x34e2=function(_0x5bd39e,_0x1dba69){_0x5bd39e=_0x5bd39e-0x0;let _0x34e2f7=_0x1dba[_0x5bd39e];return _0x34e2f7;};import{View as _0x106b5b,createLabeledInputText as _0x5b1ae1}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x3eb4f1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2d7bb6 from'./revisionnameview.js';import _0x355fb6 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x40dd07}from'./utils.js';import{createActionsDropdownView as _0x25904d}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x3eb4f1(_0x106b5b){constructor(_0x13b99b,_0x27952a,_0x144aa3){super(_0x13b99b);const _0x26620b=this[_0x34e2('0x26')],_0x38ebbe=function(_0x518e1f,_0xede8a7){const _0x1388df=Array[_0x34e2('0xf')](_0xede8a7[_0x34e2('0x13')])[_0x34e2('0x28')](_0xffc351=>_0xffc351!=_0xede8a7[_0x34e2('0xc')]);return _0xede8a7[_0x34e2('0xc')]&&_0x1388df[_0x34e2('0x3')](_0xede8a7[_0x34e2('0xc')]),_0x1388df['map'](_0x542758=>new _0x355fb6(_0x518e1f,_0x542758,_0x542758==_0xede8a7['creator']));}(_0x13b99b,_0x27952a);this['id']=_0x27952a['id'],this[_0x34e2('0x11')]=_0x27952a,this['bind'](_0x34e2('0x10'),_0x34e2('0x2b'))['to'](_0x27952a),this[_0x34e2('0x16')](_0x34e2('0x1b'))['to'](this,'createdAt',_0x2033a0=>_0x2033a0?_0x40dd07(_0x13b99b[_0x34e2('0x1e')],_0x2033a0):void 0x0),this[_0x34e2('0x27')]('isSelected',!0x1),this[_0x34e2('0x27')](_0x34e2('0x2'),!0x1),this['set']('isActionsDropdownOpen',!0x1),this[_0x34e2('0x27')](_0x34e2('0x17'),!0x1),this[_0x34e2('0x27')](_0x34e2('0x12'),!0x1),this[_0x34e2('0x1a')]=new _0x2d7bb6(_0x13b99b,_0x5b1ae1),this[_0x34e2('0x1a')][_0x34e2('0xa')]['extendTemplate']({'attributes':{'maxlength':_0x34e2('0x0')}}),this[_0x34e2('0x1a')][_0x34e2('0xa')][_0x34e2('0x16')]('value','placeholder')['to'](this,_0x34e2('0x10'),_0x34e2('0x1b')),this[_0x34e2('0x1a')][_0x34e2('0x16')]('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x12b971,_0x3e081e)=>_0x12b971&&_0x3e081e),this[_0x34e2('0x1')]=_0x144aa3&&_0x144aa3[_0x34e2('0xb')]?_0x25904d(this,_0x144aa3):'',this[_0x34e2('0x1')]&&this['revisionActionsView'][_0x34e2('0x16')](_0x34e2('0x12'))['to'](this),this[_0x34e2('0x25')]({'tag':_0x34e2('0xd'),'attributes':{'class':['ck',_0x34e2('0x14'),_0x34e2('0x18'),_0x26620b['if']('isConfirm',_0x34e2('0x21'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x34e2('0x14'),_0x34e2('0x24'),_0x26620b['if'](_0x34e2('0x12'),'ck-disabled',_0x36ce5a=>!_0x36ce5a),_0x26620b['if'](_0x34e2('0x15'),_0x34e2('0x2a')),_0x26620b['if'](_0x34e2('0x2'),_0x34e2('0x23')),_0x26620b['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':_0x34e2('0x4'),'attributes':{'class':['ck',_0x34e2('0x1c')]},'children':[{'text':_0x26620b['to']('_createdAtFormatted')}]},{'tag':_0x34e2('0xd'),'attributes':{'class':['ck',_0x34e2('0x1f')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x34e2('0x20')]},'children':_0x38ebbe}]},this[_0x34e2('0x1')]],'on':{'click':_0x26620b['to'](_0x4d13ee=>{_0x4d13ee[_0x34e2('0x1d')][_0x34e2('0x5')](_0x34e2('0x19'))||this[_0x34e2('0x17')]&&this[_0x34e2('0x12')]&&this[_0x34e2('0x7')](_0x34e2('0x22'),{'id':this['id']});})}}]});}['render'](){super['render']();const _0xb53a1b=this[_0x34e2('0x1a')]['fieldView'][_0x34e2('0xe')];this['listenTo'](_0xb53a1b,_0x34e2('0x29'),()=>{this[_0x34e2('0x7')]('setName',{'id':this['id'],'name':_0xb53a1b[_0x34e2('0x6')]});});}[_0x34e2('0x22')](){this[_0x34e2('0x15')]=!0x0;}[_0x34e2('0x9')](){this[_0x34e2('0x15')]=!0x1;}['highlight'](){this[_0x34e2('0x2')]=!0x0;}[_0x34e2('0x8')](){this[_0x34e2('0x2')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x381a=['true','button','ck-hidden','span','false','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','isVisible','toggle','bindTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed'];(function(_0x20db3a,_0x381ade){const _0x16d040=function(_0x260781){while(--_0x260781){_0x20db3a['push'](_0x20db3a['shift']());}};_0x16d040(++_0x381ade);}(_0x381a,0xee));const _0x16d0=function(_0x20db3a,_0x381ade){_0x20db3a=_0x20db3a-0x0;let _0x16d040=_0x381a[_0x20db3a];return _0x16d040;};import{View as _0x1800c3}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x1800c3{constructor(_0x3acc43){super(_0x3acc43);const _0x263dee=this[_0x16d0('0x5')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x16d0('0x7')]({'tag':'span','attributes':{'class':['ck',_0x16d0('0x1'),_0x263dee['if'](_0x16d0('0x3'),_0x16d0('0xb'),_0x5e18f1=>!_0x5e18f1),_0x263dee['if']('_isCollapsed',_0x16d0('0x8'))],'role':_0x16d0('0xa'),'aria-pressed':_0x263dee['to'](_0x16d0('0x2'),_0x3a60d8=>_0x3a60d8?_0x16d0('0x0'):_0x16d0('0x9'))},'children':[{'tag':_0x16d0('0xc'),'attributes':{'class':['ck',_0x16d0('0x6')]}}],'on':{'click':_0x263dee['to']('click')}});}[_0x16d0('0x4')](){this[_0x16d0('0x2')]=!this[_0x16d0('0x2')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31b8=['creator','_parentRevisionId','deselect','bind','_createdAtFormatted','set','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','bindTemplate','setTemplate','uiLanguage','isSelected','ck-revision-history-sidebar__subrevision','span','createdAt','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','select'];(function(_0x3baaf0,_0x31b848){const _0xb99ae5=function(_0x513520){while(--_0x513520){_0x3baaf0['push'](_0x3baaf0['shift']());}};_0xb99ae5(++_0x31b848);}(_0x31b8,0x15e));const _0xb99a=function(_0x3baaf0,_0x31b848){_0x3baaf0=_0x3baaf0-0x0;let _0xb99ae5=_0x31b8[_0x3baaf0];return _0xb99ae5;};import{View as _0x55f194}from'ckeditor5/src/ui.js';import _0x325af2 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x5e1288}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x55f194{constructor(_0x15feeb,_0x53b6a9,_0x53ffbb){super(_0x15feeb);const _0x12e0a5=this[_0xb99a('0x0')];this['id']=_0x53b6a9['id'],this['bind'](_0xb99a('0x6'))['to'](_0x53b6a9),this[_0xb99a('0xf')](_0xb99a('0x3'),!0x1),this['bind'](_0xb99a('0xe'))['to'](this,_0xb99a('0x6'),_0x1be3de=>_0x1be3de?_0x5e1288(_0x15feeb[_0xb99a('0x2')],_0x1be3de):void 0x0),this['_parentRevisionId']=_0x53ffbb,this[_0xb99a('0x1')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0xb99a('0x10'),_0xb99a('0x4'),_0x12e0a5['if'](_0xb99a('0x3'),_0xb99a('0x8'))]},'children':[{'tag':_0xb99a('0x5'),'attributes':{'class':['ck',_0xb99a('0x11')]},'children':[{'text':_0x12e0a5['to'](_0xb99a('0xe'))}]},{'tag':'ul','attributes':{'class':['ck',_0xb99a('0x7')]},'children':[new _0x325af2(_0x15feeb,_0x53b6a9[_0xb99a('0xa')],!0x0)]}],'on':{'click':_0x12e0a5['to'](this['select'][_0xb99a('0xd')](this))}});}[_0xb99a('0x9')](){this[_0xb99a('0x3')]=!0x0,this['fire']('select',{'parentId':this[_0xb99a('0xb')]});}[_0xb99a('0xc')](){this[_0xb99a('0x3')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e39=['long','numeric','toLocaleDateString','toLocaleTimeString'];(function(_0x2b59bf,_0x5e39b1){var _0x26029f=function(_0x225592){while(--_0x225592){_0x2b59bf['push'](_0x2b59bf['shift']());}};_0x26029f(++_0x5e39b1);}(_0x5e39,0x11a));var _0x2602=function(_0x2b59bf,_0x5e39b1){_0x2b59bf=_0x2b59bf-0x0;var _0x26029f=_0x5e39[_0x2b59bf];return _0x26029f;};export function dateToPrettyFormat(_0x3279a7,_0x5e78db){return _0x5e78db[_0x2602('0x0')](_0x3279a7,{'month':_0x2602('0x2'),'day':_0x2602('0x3')})+',\x20'+_0x5e78db[_0x2602('0x1')](_0x3279a7,{'hour':_0x2602('0x3'),'minute':_0x2602('0x3')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5eda=['saveButtonView','revisionNameInputValue','Save','arrowleft','reset','type','set','form','submit','setTemplate','220','input','cancel','keystrokes','check','forEach','Cancel','tab','cancelButtonView','element','_createButton','arrowdown','extendTemplate','ck-button-cancel','value','arrowright','stopPropagation','delegate','revisionNameInputView','ck-button-save','focusTracker','fieldView','shift\x20+\x20tab','listenTo','focus','locale','arrowup','label','trim','_focusCycler','_focusables','ck-revision-history-save-revision-form','revisionName','_createRevisionNameInput','add','render','ck-responsive-form','Name\x20of\x20the\x20revision\x20(optional)'];(function(_0x41052a,_0x5eda7f){const _0xdc200a=function(_0x37bf14){while(--_0x37bf14){_0x41052a['push'](_0x41052a['shift']());}};_0xdc200a(++_0x5eda7f);}(_0x5eda,0x175));const _0xdc20=function(_0x41052a,_0x5eda7f){_0x41052a=_0x41052a-0x0;let _0xdc200a=_0x5eda[_0x41052a];return _0xdc200a;};import{icons as _0x1855b6}from'ckeditor5/src/core.js';import{ButtonView as _0x5f2305,FocusCycler as _0x36b050,LabeledFieldView as _0x3a6a04,View as _0x563ec5,ViewCollection as _0x4fc754,createLabeledInputText as _0x5ca9d0,injectCssTransitionDisabler as _0x141d2f,submitHandler as _0x57def4}from'ckeditor5/src/ui.js';import{FocusTracker as _0x29d116,KeystrokeHandler as _0x23f472}from'ckeditor5/src/utils.js';import{getTranslation as _0xd6848d}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x563ec5{constructor(_0x3300c5){super(_0x3300c5),this[_0xdc20('0x29')]=new _0x29d116(),this[_0xdc20('0x18')]=new _0x23f472(),this[_0xdc20('0x11')](_0xdc20('0xc'),''),this['revisionNameInputView']=this[_0xdc20('0x6')](),this[_0xdc20('0xb')]=this[_0xdc20('0x1f')](_0xd6848d(_0x3300c5,_0xdc20('0xd')),_0x1855b6[_0xdc20('0x19')],_0xdc20('0x28')),this['saveButtonView'][_0xdc20('0x10')]=_0xdc20('0x13'),this[_0xdc20('0x1d')]=this[_0xdc20('0x1f')](_0xd6848d(_0x3300c5,_0xdc20('0x1b')),_0x1855b6[_0xdc20('0x17')],_0xdc20('0x22'),_0xdc20('0x17')),this[_0xdc20('0x3')]=new _0x4fc754(),this['_focusCycler']=new _0x36b050({'focusables':this[_0xdc20('0x3')],'focusTracker':this[_0xdc20('0x29')],'keystrokeHandler':this[_0xdc20('0x18')],'actions':{'focusPrevious':_0xdc20('0x2b'),'focusNext':_0xdc20('0x1c')}}),this[_0xdc20('0x14')]({'tag':_0xdc20('0x12'),'attributes':{'class':['ck',_0xdc20('0x4'),_0xdc20('0x9')],'tabindex':'-1'},'children':[this[_0xdc20('0x27')],this[_0xdc20('0xb')],this['cancelButtonView']]}),_0x141d2f(this);}[_0xdc20('0x8')](){super[_0xdc20('0x8')](),_0x57def4({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this[_0xdc20('0x1d')]][_0xdc20('0x1a')](_0x3d1094=>{this[_0xdc20('0x3')][_0xdc20('0x7')](_0x3d1094),this[_0xdc20('0x29')][_0xdc20('0x7')](_0x3d1094['element']);}),this[_0xdc20('0x18')][_0xdc20('0x2c')](this[_0xdc20('0x1e')]));const _0x24683d=_0x1cf43d=>_0x1cf43d[_0xdc20('0x25')]();this['keystrokes'][_0xdc20('0x11')](_0xdc20('0x24'),_0x24683d),this[_0xdc20('0x18')][_0xdc20('0x11')](_0xdc20('0xe'),_0x24683d),this[_0xdc20('0x18')][_0xdc20('0x11')](_0xdc20('0x2f'),_0x24683d),this['keystrokes'][_0xdc20('0x11')](_0xdc20('0x20'),_0x24683d);}[_0xdc20('0x2d')](){this[_0xdc20('0x2')]['focusFirst']();}get[_0xdc20('0x5')](){return this[_0xdc20('0x27')][_0xdc20('0x2a')]['element']['value']['trim']();}set[_0xdc20('0x5')](_0x4495cf){this[_0xdc20('0x27')][_0xdc20('0x2a')][_0xdc20('0x1e')][_0xdc20('0x23')]=_0x4495cf[_0xdc20('0x1')]();}[_0xdc20('0xf')](){this[_0xdc20('0x27')][_0xdc20('0x2a')][_0xdc20('0x1e')]['value']='';}[_0xdc20('0x6')](){const _0x4b3dc8=new _0x3a6a04(this[_0xdc20('0x2e')],_0x5ca9d0),_0x3f4057=_0x4b3dc8[_0xdc20('0x2a')];return _0x3f4057[_0xdc20('0x21')]({'attributes':{'maxlength':_0xdc20('0x15')}}),_0x4b3dc8[_0xdc20('0x0')]=_0xd6848d(this['locale'],_0xdc20('0xa')),_0x3f4057['on'](_0xdc20('0x16'),()=>{this[_0xdc20('0xc')]=_0x3f4057[_0xdc20('0x1e')][_0xdc20('0x23')]['trim']();}),_0x4b3dc8;}[_0xdc20('0x1f')](_0x3357e2,_0x127509,_0x2ff26a,_0x4c8111){const _0x4495b0=new _0x5f2305(this[_0xdc20('0x2e')]);return _0x4495b0['set']({'label':_0x3357e2,'icon':_0x127509,'tooltip':!0x0}),_0x4495b0[_0xdc20('0x21')]({'attributes':{'class':_0x2ff26a}}),_0x4c8111&&_0x4495b0[_0xdc20('0x26')]('execute')['to'](this,_0x4c8111),_0x4495b0;}}
|