@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230830.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.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29f9=['addMarker:revision','consume','merge','unbindElementFromMarkerName','get','showPreviousChange','isNavigationMode','keys','revision','addClass','createAttributeElement','mousedown','createUIElement','isEqual','markerToData','all','isAddSuggestion','forEach','isInline','distance','addRevisionData','revisionHistoryLabel','hasClass','split','maxOffset','startIndex','createPositionFromPath','hasAttribute','removeMarker','roots','name','editor','insert','low','insertion','schema','POSITIVE_INFINITY','next','slice','_getViewForChange','enableReadOnlyMode','markerToHighlight','addMarker:revision-suggestion:insertion','comment','markerNameToElements','getCustomProperty','revision-suggestion','removeAttribute','filter','_sortAndFilterDiffChanges','_markMarkers','compare','stop','enqueueChange','processor','addRevision','offsetSize','revision:','_getRevisionsRange','isSuggestion','end','_findChangeIdFromDomTarget','consumable','currentChangeNumber','downcastDispatcher','map','nextSibling','isAdded','forward','changeId','getAttributes','then','getIndex','_threeWayMerge','dataToMarker','isOnRoot','addRoot','_removeRevisionMarkers','isAfter','data-revision-','span','_changeView','concat','markersStart','_makeTape','requires','abs','_setDistance','endIndex','level','viewItem','parse','elementToAttribute','attributesBefore','parent','_changeIdToChange','affectsData','_appendChild','_refreshStartEndIndex','unshift','diff','change:activeChange','pop','adapter','bottom','_markSuggestions','getRevisionData','side','isBefore','_removeUnsupportedChanges','getRootNames','createRangeIn','ck-suggestion-marker--active','editingDowncast','deletion','revisionHistoryAttachChange','getRoot','_markInsertions','start','data-change-id','_makeModelFromViewString','vid_start','vid','changes','softBreak','item','left','isAtStart','createRevision','addHighlight','resolve','_step','shift','detachRoot','change:isEnabled','upcast','getRevisionRootsAttributes','flat','indexOf','ck-suggestion-preview-marker-','markers','activeChange','domEvent','set','ck-revision-history-root-add','from','_setChanges','mapper','splice','find','getRevision','toViewElement','useFillerType','getClientRects','isBlock','listenTo','toModel','suggestion:','isAtEnd','createRange','observeMarkers','ck-revision-history-root-remove','updatePosition','isEnabled','_getChangeFromId','userId','refresh','return','activeView','revision-start','_processTape','for','getWalker','push','add','findIndex','change:activeView','length','toViewPosition','markersEnd','data','loadRevisionData','selection','insertions','object','isContent','model','pluginName','showStack','mapViewToDom','includes','revision-viewer','markerRange','elementStart','sort','attributesAfter','-new','element','remove','first','isLimit','attachChange','collaboration.channelId','clear','_revisions','removeMarker:revision-suggestion','document','isRemoved','_getDiff','marked','_cleanUp','editing','_update','rootName','_removeMissingPairs','isReady','plugins','revision-suggestion:','attribute:vid','change','_getViewObj','previousPosition','conversion','vid_end','getAttribute','removeClass','execute','repository','ck-suggestion-marker-','high','ck-suggestion-marker-merge','dataDowncast','attributes','view','diffData','_fixObsoleteTags','text','isAttached','isIncorrect','_markMismatchedRemovedTags','commands','highest','bindElementToMarker','modelRange','removeMarker:revision','ck-editor__editable__overlay','startsWith','delete','has','toData','locale','_activeViewTarget','pairId','isRemoveSuggestion','catch','writer','restoreRevisionCallback','test','ck-revision-history-root--active','target','markerName','reconvertMarker','wrap','suggestion','deletions','RevisionViewer','string','nodeAfter','_setConversion','done','getDomRoot','error','type','_balloon','children','nextPosition','numberOfChanges','isCollapsed','_data','index','restoreRevision','getItems','setAttribute','newRevisionId','bind','backward','elementEnd'];(function(_0x1d785f,_0x29f9df){const _0x3c0702=function(_0x49fb36){while(--_0x49fb36){_0x1d785f['push'](_0x1d785f['shift']());}};_0x3c0702(++_0x29f9df);}(_0x29f9,0xdf));const _0x3c07=function(_0x1d785f,_0x29f9df){_0x1d785f=_0x1d785f-0x0;let _0x3c0702=_0x29f9[_0x1d785f];return _0x3c0702;};import{Plugin as _0xb5b263,Command as _0x14fe97}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x113633}from'ckeditor5/src/utils';import{ContextualBalloon as _0x472dc6}from'ckeditor5/src/ui';import{DocumentFragment as _0x188d52,Element as _0x2b2bbc,Text as _0x538d83,ViewDocumentFragment as _0x560c58,ViewText as _0x3c2903,ViewElement as _0x2bfea8,ViewContainerElement as _0x58f227,ViewAttributeElement as _0x78be20,ViewEmptyElement as _0xcaf9a1,ViewRawElement as _0x4795fa,ViewUIElement as _0x2ac804}from'ckeditor5/src/engine';import{Users as _0x3021b4,getMarkerDomElement as _0x37dcec}from'ckeditor5-collaboration/src/collaboration-core';import _0x579397 from'./ui/revisionviewer/changedetailsview';import _0x8dc73b from'./revisionsrepository';import _0x4420af from'./changeitem';import{default as _0x177897}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x9f87b9}from'lodash-es';const tt={'c':_0x58f227,'a':_0x78be20,'e':_0xcaf9a1,'r':_0x4795fa,'u':_0x2ac804};export default class d extends _0xb5b263{static get[_0x3c07('0xfb')](){return _0x3c07('0x2a');}static get[_0x3c07('0x95')](){return[_0x3021b4,_0x472dc6,_0x8dc73b];}constructor(_0x165623){super(_0x165623),this['repository']=this[_0x3c07('0x5f')][_0x3c07('0x118')][_0x3c07('0x44')]('RevisionsRepository'),this[_0x3c07('0xcf')](_0x3c07('0xcd'),null),this['set']('activeView',null),this[_0x3c07('0x1c')]=null,this[_0x3c07('0xcf')]('diff',null),this[_0x3c07('0xcf')](_0x3c07('0x117'),!0x1),this[_0x3c07('0xcf')]('isEnabled',!0x0),this['on'](_0x3c07('0xc6'),(_0x382c5e,_0x48fbe1,_0x54b54d)=>{this[_0x3c07('0xcd')]=null,this['activeView']=null,this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x11b')](_0x47a9d1=>{for(const _0x8ecc53 of this['editor'][_0x3c07('0x113')]['view']['document'][_0x3c07('0x5d')])_0x54b54d?_0x47a9d1[_0x3c07('0x2')](_0x3c07('0x16'),_0x8ecc53):_0x47a9d1[_0x3c07('0x49')]('ck-editor__editable__overlay',_0x8ecc53);});}),this[_0x3c07('0x3d')](_0x3c07('0x46'))['to'](this,_0x3c07('0xcd'),_0x35c0c2=>null!==_0x35c0c2),this['bind'](_0x3c07('0x7f'))['to'](this,'isReady',this,_0x3c07('0xa4'),this,'activeChange',(_0x50880b,_0x5aec69,_0x1a3fa6)=>_0x50880b&&_0x1a3fa6?_0x5aec69['changes'][_0x3c07('0x88')](_0x1a3fa6):0x0),this[_0x3c07('0x3d')](_0x3c07('0x35'))['to'](this,_0x3c07('0x117'),this,_0x3c07('0xa4'),(_0x346f18,_0x12839d)=>_0x346f18?_0x12839d[_0x3c07('0xbb')]['length']:0x0),this[_0x3c07('0x91')]=null,this[_0x3c07('0x9f')]=new Map(),this[_0x3c07('0xa7')]=null,this[_0x3c07('0x32')]=this[_0x3c07('0x5f')]['plugins'][_0x3c07('0x44')](_0x472dc6);}['init'](){const _0x1bf701=this[_0x3c07('0x5f')],_0x5b5395=new ShowChangeCommand(_0x1bf701,{'direction':_0x3c07('0x3e')}),_0x1bfb38=new ShowChangeCommand(_0x1bf701,{'direction':'forward'});(_0x1bf701[_0x3c07('0x11')][_0x3c07('0xee')](_0x3c07('0x45'),_0x5b5395),_0x1bf701[_0x3c07('0x11')][_0x3c07('0xee')]('showNextChange',_0x1bfb38),_0x1bf701[_0x3c07('0x11')][_0x3c07('0xee')](_0x3c07('0x39'),new RestoreRevisionCommand(_0x1bf701)),this['on']('change:numberOfChanges',()=>{_0x5b5395['refresh'](),_0x1bfb38['refresh']();}),this[_0x3c07('0x2d')](),this['_initInteractions'](),_0x1bf701[_0x3c07('0x68')](_0x3c07('0xff')),_0x1bf701[_0x3c07('0x118')][_0x3c07('0x19')]('WidgetToolbarRepository'))&&_0x1bf701[_0x3c07('0x118')][_0x3c07('0x44')]('WidgetToolbarRepository')['forceDisabled'](_0x3c07('0xff'));}async[_0x3c07('0xaa')](_0x1a8304){await this['loadRevisionData'](_0x1a8304);const _0x5b9b22={};for(const _0x339223 in _0x1a8304['diffData']){if(_0x1a8304[_0x3c07('0xb')][_0x339223][_0x3c07('0x109')]&&!_0x1a8304[_0x3c07('0xb')][_0x339223][_0x3c07('0x109')][_0x3c07('0xe')])continue;const _0x4f8c16=this[_0x3c07('0x8d')](JSON[_0x3c07('0x9b')](_0x1a8304[_0x3c07('0xb')][_0x339223][_0x3c07('0xf7')])),_0x271187=this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],_0x2b3efe=new _0x560c58(_0x271187,_0x4f8c16[_0x3c07('0x81')](_0x22561e=>this['_getViewObj'](_0x22561e)));this[_0x3c07('0x5f')][_0x3c07('0xf4')][_0x3c07('0x76')][_0x3c07('0xd8')](_0x3c07('0x111')),_0x5b9b22[_0x339223]=this[_0x3c07('0x5f')][_0x3c07('0xf4')][_0x3c07('0x76')][_0x3c07('0x1a')](_0x2b3efe),this['editor'][_0x3c07('0xf4')][_0x3c07('0x76')][_0x3c07('0xd8')]('default');}return _0x5b9b22;}async[_0x3c07('0xc8')](_0x2e0cef){await this[_0x3c07('0xf5')](_0x2e0cef);const _0x5d4b80={};for(const _0x2087f9 in _0x2e0cef[_0x3c07('0xb')])_0x2e0cef[_0x3c07('0xb')][_0x2087f9]['attachChange']&&!_0x2e0cef[_0x3c07('0xb')][_0x2087f9][_0x3c07('0x109')][_0x3c07('0xe')]||(_0x5d4b80[_0x2087f9]=_0x2e0cef['diffData'][_0x2087f9][_0x3c07('0x103')]||{});return _0x5d4b80;}['_removeRevisionMarkers'](_0x506af5){return(_0x506af5=_0x506af5['filter'](_0x46605e=>!_0x46605e[_0x3c07('0x5e')]||_0x3c07('0xe9')!==_0x46605e['name']&&'revision-end'!==_0x46605e[_0x3c07('0x5e')]))[_0x3c07('0x51')](_0xed4e09=>{_0x3c07('0x2b')!=typeof _0xed4e09&&(_0xed4e09[_0x3c07('0x33')]=this[_0x3c07('0x8d')](_0xed4e09[_0x3c07('0x33')]),_0xed4e09[_0x3c07('0x9')]=_0xed4e09[_0x3c07('0x9')]['filter'](_0x37522f=>!_0x37522f[0x0][_0x3c07('0x17')](_0x3c07('0x8f'))));}),_0x506af5;}async[_0x3c07('0x73')](_0x4631b9,_0x4700ea,_0x23ff79=!0x1){if(!this[_0x3c07('0xe3')])return;const _0x7658be=this[_0x3c07('0xa4')],_0x458744=this[_0x3c07('0x4')],_0x5ebc4f=_0x3c07('0x2b')==typeof _0x4631b9?_0x458744[_0x3c07('0xd6')](_0x4631b9):_0x4631b9,_0x2b1fd8='string'==typeof _0x4700ea?_0x458744[_0x3c07('0xd6')](_0x4700ea):_0x4700ea,_0x137bb3=_0x5ebc4f['id'],_0x588f31=_0x2b1fd8?_0x2b1fd8['id']:null;if(!_0x23ff79&&this['diff']&&this[_0x3c07('0xa4')][_0x3c07('0x3c')]===_0x137bb3&&this['diff']['oldRevisionId']===_0x588f31)return Promise[_0x3c07('0xc2')]();this[_0x3c07('0x117')]=!0x1,this[_0x3c07('0xe8')]=null,this[_0x3c07('0xcd')]=null,this[_0x3c07('0xa4')]=new _0x177897(_0x137bb3,_0x588f31);const _0x20e7a4=this[_0x3c07('0x7a')](_0x5ebc4f,_0x2b1fd8,!0x0)[_0x3c07('0x81')](_0x22cd09=>this[_0x3c07('0xf5')](_0x22cd09));return _0x20e7a4[_0x3c07('0xed')](new Promise(_0x4c67d0=>{setTimeout(_0x4c67d0,0x14);})),Promise[_0x3c07('0x4f')](_0x20e7a4)[_0x3c07('0x87')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5f09fb=this['_getDiff'](_0x137bb3,_0x588f31);for(const _0x26b934 of _0x5f09fb[_0x3c07('0xbb')])this['_changeIdToChange']['set'](_0x26b934['id'],_0x26b934);this[_0x3c07('0x5f')][_0x3c07('0xfa')]['enqueueChange']({'isUndoable':!0x1},_0x1ec553=>{for(const _0x583e0f of this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['getRootNames']())_0x1ec553[_0x3c07('0xc5')](_0x583e0f);for(const _0x254a4a of Object['keys'](_0x5f09fb[_0x3c07('0xfa')])){const _0x31f77a=_0x1ec553[_0x3c07('0x8c')](_0x254a4a);for(const _0x25d1ea of Object[_0x3c07('0x47')](_0x5f09fb[_0x3c07('0x9')][_0x254a4a]))_0x1ec553[_0x3c07('0x3b')](_0x25d1ea,_0x5f09fb[_0x3c07('0x9')][_0x254a4a][_0x25d1ea],_0x31f77a);_0x1ec553[_0x3c07('0x60')](_0x5f09fb[_0x3c07('0xfa')][_0x254a4a],_0x31f77a,0x0);}}),this['diff'][_0x3c07('0xd2')](this[_0x3c07('0x71')](_0x5f09fb[_0x3c07('0xbb')])),this[_0x3c07('0x117')]=!0x0;})[_0x3c07('0x1f')](_0x41c24e=>{console[_0x3c07('0x30')](_0x41c24e),this[_0x3c07('0x112')](),_0x7658be&&(this[_0x3c07('0xa4')]=_0x7658be),this[_0x3c07('0x117')]=!0x0;});}[_0x3c07('0x54')](_0x1468e3,_0x3a58e3){const _0x5719dc=this['repository'][_0x3c07('0xc0')](_0x1468e3);return _0x5719dc['on'](_0x3c07('0x114'),(_0x4fb69e,_0x2de52f,_0x99c303)=>_0x3a58e3(_0x2de52f,_0x99c303,_0x5719dc)),this['repository'][_0x3c07('0x77')](_0x5719dc),_0x5719dc;}[_0x3c07('0xf5')](_0x537c8e){if(!_0x537c8e||_0x537c8e[_0x3c07('0xb')])return Promise[_0x3c07('0xc2')]();{const _0x458f55=this[_0x3c07('0x5f')]['config'][_0x3c07('0x44')](_0x3c07('0x10a'));return this[_0x3c07('0xa7')][_0x3c07('0xd6')]({'channelId':_0x458f55,'revisionId':_0x537c8e['id']})['then'](_0x3833e4=>{_0x537c8e[_0x3c07('0x114')]({'diffData':_0x3833e4[_0x3c07('0xb')]},!0x0);});}}[_0x3c07('0x112')](){this[_0x3c07('0xcd')]=null,this['_cleanMarkers'](),this[_0x3c07('0x91')]&&this[_0x3c07('0x91')]['destroy'](),this['_changeView']=null,this['_changeIdToChange'][_0x3c07('0x10b')](),this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x75')]({'isUndoable':!0x1},_0x2e670b=>{for(const _0x760e74 of this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['getRootNames']())_0x2e670b[_0x3c07('0xc5')](_0x760e74);});}[_0x3c07('0x71')](_0x4f465a){const _0x36bb4d=[],_0x548c08=new Map();for(const _0x5043cf of this[_0x3c07('0x5f')]['model'][_0x3c07('0x10e')][_0x3c07('0xae')]()){const _0x57a177=this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x2f')](_0x5043cf);if(!_0x57a177)continue;const _0x13c2d7=_0x57a177[_0x3c07('0xd9')]()[_0x3c07('0xbd')](0x0);_0x13c2d7&&(_0x36bb4d[_0x3c07('0xed')](_0x5043cf),_0x548c08[_0x3c07('0xcf')](_0x5043cf,_0x13c2d7));}return _0x36bb4d[_0x3c07('0x102')]((_0x101fd1,_0x404e35)=>{const _0x423392=_0x548c08[_0x3c07('0x44')](_0x101fd1),_0x1ddbdd=_0x548c08['get'](_0x404e35);return _0x423392['y']-_0x1ddbdd['y']||_0x423392['x']-_0x1ddbdd['x'];}),(_0x4f465a=_0x4f465a['filter'](_0x398602=>_0x36bb4d[_0x3c07('0xfe')](_0x398602[_0x3c07('0x115')])))[_0x3c07('0x102')]((_0x4db291,_0x359deb)=>_0x36bb4d[_0x3c07('0xca')](_0x4db291[_0x3c07('0x115')])-_0x36bb4d[_0x3c07('0xca')](_0x359deb[_0x3c07('0x115')])),_0x4f465a;}[_0x3c07('0x94')](_0x1cc629){const _0x32d566=Array[_0x3c07('0xd1')](_0x1cc629[_0x3c07('0xcc')])[_0x3c07('0x70')](([_0xa8e172,_0x233b98])=>_0xa8e172['startsWith'](_0x3c07('0x79'))&&!_0x233b98[_0x3c07('0x36')]),_0x1fb474=Array[_0x3c07('0xd1')](this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0xaf')](_0x1cc629)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x32d566[_0x3c07('0xf1')])for(const _0x30e9c9 of _0x1fb474){const [_0x1aa862,_0xd1027b]=_0x32d566[0x0],[,_0x3e3126,_0x98d908]=_0x1aa862[_0x3c07('0x57')](':');if(_0xd1027b[_0x3c07('0x7c')][_0x3c07('0x4d')](_0x30e9c9[_0x3c07('0x34')])&&_0x32d566[_0x3c07('0xc4')](),(_0x30e9c9[_0x3c07('0x11d')][_0x3c07('0x4d')](_0xd1027b[_0x3c07('0xb6')])||_0x30e9c9[_0x3c07('0x11d')]['isAfter'](_0xd1027b['start']))&&(_0x3c07('0x62')==_0x3e3126?_0x30e9c9['isAdded']={'userId':_0x98d908}:'deletion'==_0x3e3126&&(_0x30e9c9[_0x3c07('0x10f')]={'userId':_0x98d908})),0x0==_0x32d566[_0x3c07('0xf1')])break;}return _0x1fb474;}[_0x3c07('0xa2')](_0x36cc17){const _0x1d6806=new Map();for(let _0x3a6d32=0x0;_0x3a6d32<_0x36cc17[_0x3c07('0xf1')];_0x3a6d32++)_0x3c07('0xd')===_0x36cc17[_0x3a6d32]['type']?(_0x36cc17[_0x3a6d32][_0x3c07('0xbd')]['startIndex']=_0x3a6d32,_0x36cc17[_0x3a6d32][_0x3c07('0xbd')][_0x3c07('0x98')]=_0x3a6d32):(_0x3c07('0x101')===_0x36cc17[_0x3a6d32][_0x3c07('0x31')]?_0x36cc17[_0x3a6d32][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x3a6d32:_0x3c07('0x3f')===_0x36cc17[_0x3a6d32][_0x3c07('0x31')]&&(_0x36cc17[_0x3a6d32][_0x3c07('0xbd')]['endIndex']=_0x3a6d32),_0x1d6806['set'](_0x36cc17[_0x3a6d32]['id'],_0x3a6d32));for(const _0x5aab39 of _0x1d6806['values']())_0x3c07('0x101')===_0x36cc17[_0x5aab39][_0x3c07('0x31')]?_0x36cc17[_0x5aab39][_0x3c07('0xbd')][_0x3c07('0x98')]=_0x1d6806[_0x3c07('0x44')](_0x36cc17[_0x5aab39][_0x3c07('0x1d')]):_0x3c07('0x3f')===_0x36cc17[_0x5aab39][_0x3c07('0x31')]&&(_0x36cc17[_0x5aab39][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x1d6806[_0x3c07('0x44')](_0x36cc17[_0x5aab39][_0x3c07('0x1d')]));}[_0x3c07('0xea')](_0x32c00f){for(let _0x34bbda=0x0;_0x34bbda<_0x32c00f[_0x3c07('0xf1')];_0x34bbda++){if(_0x3c07('0x101')===_0x32c00f[_0x34bbda]['type'])_0x32c00f[_0x34bbda][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x34bbda;else{if(_0x3c07('0x3f')===_0x32c00f[_0x34bbda][_0x3c07('0x31')]){_0x32c00f[_0x34bbda][_0x3c07('0xbd')][_0x3c07('0x98')]=_0x34bbda;const _0x4935c4=_0x32c00f[_0x34bbda][_0x3c07('0xbd')]['startIndex'];_0x32c00f[_0x4935c4][_0x3c07('0x1d')]=_0x32c00f[_0x34bbda]['id'],_0x32c00f[_0x34bbda][_0x3c07('0x1d')]=_0x32c00f[_0x4935c4]['id'];}else _0x32c00f[_0x34bbda][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x34bbda,_0x32c00f[_0x34bbda][_0x3c07('0xbd')]['endIndex']=_0x34bbda,_0x32c00f[_0x34bbda][_0x3c07('0x1d')]=null;}_0x32c00f[_0x34bbda][_0x3c07('0x93')]||(_0x32c00f[_0x34bbda][_0x3c07('0x93')]=[],_0x32c00f[_0x34bbda][_0x3c07('0xf3')]=[]);}}[_0x3c07('0xb5')](_0x209eea,_0x65a9e1){const _0x40bd0a=_0x209eea[_0x3c07('0x70')](_0x7cfced=>!_0x7cfced['isAdded']);for(let _0x2a16ff=0x0;_0x2a16ff<_0x65a9e1[_0x3c07('0xf1')];_0x2a16ff++)_0x65a9e1[_0x2a16ff][_0x3c07('0x83')]&&(_0x40bd0a[_0x2a16ff]['isAdded']=_0x65a9e1[_0x2a16ff]['isAdded']);}[_0x3c07('0xb8')](_0xf196c0){const _0x57049e=JSON[_0x3c07('0x9b')](_0xf196c0),_0x577fb9=this[_0x3c07('0x5f')][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],_0x2c8048=new _0x560c58(_0x577fb9,_0x57049e[_0x3c07('0x81')](_0x3461de=>this['_getViewObj'](_0x3461de)));return this['editor']['data'][_0x3c07('0xdc')](_0x2c8048);}[_0x3c07('0x11c')](_0x433776){const _0x3e6979=this[_0x3c07('0x5f')][_0x3c07('0x113')]['view'][_0x3c07('0x10e')];if('string'==typeof _0x433776)return new _0x3c2903(_0x3e6979,_0x433776);{const _0x2d79b6=_0x433776[_0x3c07('0x33')][_0x3c07('0x81')](_0x17db0e=>this[_0x3c07('0x11c')](_0x17db0e));return new(tt[_0x433776[(_0x3c07('0x31'))]]||_0x2bfea8)(_0x3e6979,_0x433776['name'],_0x433776['attributes'],_0x2d79b6);}}[_0x3c07('0x110')](_0x5b88e4,_0x5ba7c7=null){const _0x436e6d=this['repository'][_0x3c07('0xd6')](_0x5b88e4),_0x141310=_0x5ba7c7?this['repository']['getRevision'](_0x5ba7c7):null,_0x5bd8d5=this['_getRevisionsRange'](_0x436e6d,_0x141310),_0x4d45ea=_0x5bd8d5[_0x5bd8d5[_0x3c07('0xf1')]-0x1],_0x245c11=new Map(),_0x17e935={'model':{},'attributes':{},'changes':[]},_0x106c5a=new Set(),_0x3ca726=new Map();for(let _0x258cf6=_0x5bd8d5[_0x3c07('0xf1')]-0x1;_0x258cf6>=0x0;_0x258cf6--){const _0x2ce4f0=_0x5bd8d5[_0x258cf6];for(const _0x3eb286 of Object[_0x3c07('0x47')](_0x2ce4f0[_0x3c07('0xb')]))if(_0x2ce4f0[_0x3c07('0xb')][_0x3eb286]['attachChange']){const _0x4a761e=_0x2ce4f0[_0x3c07('0xb')][_0x3eb286][_0x3c07('0x109')];_0x4a761e[_0x3c07('0xe')]?(_0x106c5a[_0x3c07('0xee')](_0x3eb286),_0x3ca726[_0x3c07('0x19')](_0x3eb286)&&_0x3ca726['get'](_0x3eb286)[_0x3c07('0xe5')]==_0x4a761e[_0x3c07('0xe5')]?_0x3ca726[_0x3c07('0x18')](_0x3eb286):_0x3ca726[_0x3c07('0xcf')](_0x3eb286,_0x4a761e)):_0x3ca726['has'](_0x3eb286)?(_0x106c5a[_0x3c07('0x18')](_0x3eb286),_0x3ca726['delete'](_0x3eb286)):(_0x106c5a[_0x3c07('0xee')](_0x3eb286),_0x3ca726['set'](_0x3eb286,_0x4a761e));}else _0x106c5a[_0x3c07('0xee')](_0x3eb286);}for(const _0x5883c9 of _0x106c5a){const _0x443397=_0x3ca726[_0x3c07('0x19')](_0x5883c9)&&!_0x3ca726[_0x3c07('0x44')](_0x5883c9)[_0x3c07('0xe')];let _0x5e5e04=_0x443397?_0x5bd8d5[_0x3c07('0xf1')]-0x1:0x0;const _0xb7deec=_0x443397?-0x1:0x1;for(;_0x5bd8d5[_0x5e5e04];){const _0x253fc2=_0x5bd8d5[_0x5e5e04];if(_0x253fc2[_0x3c07('0xb')][_0x5883c9]){const _0x196811=_0x443397?_0x253fc2[_0x3c07('0xb')][_0x5883c9][_0x3c07('0x9d')]:_0x253fc2[_0x3c07('0xb')][_0x5883c9]['attributesAfter'];_0x17e935[_0x3c07('0x9')][_0x5883c9]=_0x196811?_0x9f87b9(_0x196811):{};break;}_0x5e5e04+=_0xb7deec;}}for(const _0x4af975 of _0x5bd8d5){_0x4af975[_0x3c07('0xfa')]={};for(const _0x334cd7 of _0x4af975['authors'])_0x245c11['set'](_0x334cd7['id'],_0x334cd7);for(const _0x58c61e of _0x106c5a){const _0x1e9f80=_0x4af975[_0x3c07('0xb')][_0x58c61e]?_0x4af975[_0x3c07('0xb')][_0x58c61e][_0x3c07('0xf7')]:'[]',_0x1873af=_0x4af975[_0x3c07('0xb')][_0x58c61e]?_0x4af975['diffData'][_0x58c61e]['deletions']:'[]';_0x4af975[_0x3c07('0xfa')][_0x58c61e]={'insertions':this[_0x3c07('0xb8')](_0x1e9f80),'deletions':this[_0x3c07('0xb8')](_0x1873af)};}}for(const _0xc76ce6 of _0x106c5a){let _0xf54419=null,_0x5ea78d=0x0;const _0x4d084a=new Map(Array[_0x3c07('0xd1')](_0x436e6d[_0x3c07('0xfa')][_0xc76ce6][_0x3c07('0xf7')][_0x3c07('0xcc')])[_0x3c07('0x70')](([_0x411956])=>!_0x411956[_0x3c07('0x17')](_0x3c07('0x79'))));let _0x546a7e=0x0;for(const _0x51b87d of _0x5bd8d5){const _0x26822c=this[_0x3c07('0x94')](_0x51b87d[_0x3c07('0xfa')][_0xc76ce6][_0x3c07('0xf7')]);_0x51b87d==_0x436e6d?(_0xf54419=_0x26822c,_0x5ea78d=_0xf54419[_0x3c07('0xf1')],_0xf54419[_0x3c07('0x51')](_0x47b9f3=>{_0x47b9f3['id']=_0x546a7e++;}),this[_0x3c07('0xea')](_0xf54419)):this[_0x3c07('0xb5')](_0xf54419,_0x26822c);const _0x1e36e8=_0xf54419[_0x3c07('0x70')](_0x4ac691=>!_0x4ac691[_0x3c07('0x83')])[_0x3c07('0x81')](_0x268a21=>_0x268a21['id']);let _0x442742=0x0;const _0x443788=this['_makeTape'](_0x51b87d['model'][_0xc76ce6][_0x3c07('0x29')]);_0x443788[_0x3c07('0x51')](_0x453110=>{_0x453110['isRemoved']?_0x453110['id']=_0x5ea78d++:_0x453110['id']=_0x1e36e8[_0x442742++];}),this[_0x3c07('0xea')](_0x443788),this[_0x3c07('0x97')](_0xf54419,_0x3c07('0x83')),this[_0x3c07('0x97')](_0x443788,_0x3c07('0x10f')),_0x51b87d==_0x436e6d&&this[_0x3c07('0x72')](_0xf54419,_0x4d084a),_0xf54419=this['_joinTapes'](_0xf54419,_0x443788),this['_refreshStartEndIndex'](_0xf54419),this[_0x3c07('0x97')](_0xf54419,_0x3c07('0x10f'));}_0xf54419=_0xf54419[_0x3c07('0x70')](_0x481742=>!(_0x481742[_0x3c07('0x83')]&&_0x481742[_0x3c07('0x10f')]));const _0x55d589=new Map(_0x4d45ea[_0x3c07('0xfa')][_0xc76ce6]['deletions'][_0x3c07('0xcc')]),_0x505b60=new Set(_0x4d084a['keys']());for(const _0x3d208f of _0x55d589[_0x3c07('0x47')]())_0x505b60['delete'](_0x3d208f);this[_0x3c07('0xa9')](_0xf54419,_0x505b60),this[_0x3c07('0xc')](_0xf54419),_0xf54419=this[_0x3c07('0x116')](_0xf54419),_0xf54419=this['_markMismatchedRemovedTags'](_0xf54419),_0xf54419=this[_0x3c07('0xad')](_0xf54419);const {root:_0x5eda4f,changes:_0x571e6e}=this['_makeModelFromTape'](_0xf54419,_0x245c11,_0xc76ce6);_0x17e935[_0x3c07('0xfa')][_0xc76ce6]=_0x5eda4f;const _0xf305ab=_0x3ca726[_0x3c07('0x44')](_0xc76ce6);if(_0xf305ab){const _0x4dbbd5=_0x245c11[_0x3c07('0x44')](_0xf305ab[_0x3c07('0xe5')]),_0x21f4ba=new _0x4420af({'author':_0x4dbbd5,'type':_0xf305ab[_0x3c07('0xe')]?'add':_0x3c07('0x106'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xc76ce6});_0x571e6e[_0x3c07('0xa3')](_0x21f4ba),_0x17e935['attributes'][_0xc76ce6][_0x3c07('0xb3')]=_0x21f4ba['id'];}_0x17e935[_0x3c07('0xbb')]=_0x17e935[_0x3c07('0xbb')]['concat'](_0x571e6e);}return _0x17e935;}['_markMarkers'](_0x1f560f,_0x5517ee){for(let _0x900674=0x0;_0x900674<_0x1f560f[_0x3c07('0xf1')];_0x900674++)for(const [_0x2a59a7,_0x2ee874]of _0x5517ee)_0x2ee874[_0x3c07('0xb6')]['isEqual'](_0x1f560f[_0x900674]['previousPosition'])&&_0x1f560f[_0x900674]['markersStart']['push'](_0x2a59a7),_0x2ee874[_0x3c07('0x7c')][_0x3c07('0x4d')](_0x1f560f[_0x900674][_0x3c07('0x34')])&&_0x1f560f[_0x900674][_0x3c07('0xf3')]['push'](_0x2a59a7);}['_joinTapes'](_0x598190,_0x47a8c1){let _0x4cb06=[],_0x31d35b=0x0,_0x2810c5=0x0;for(;_0x31d35b<_0x598190[_0x3c07('0xf1')]||_0x2810c5<_0x47a8c1[_0x3c07('0xf1')];){const _0x55b929=_0x598190[_0x31d35b]||{},_0x38a026=_0x47a8c1[_0x2810c5]||{};if(_0x55b929['id']==_0x38a026['id'])_0x31d35b++,_0x2810c5++,_0x4cb06[_0x3c07('0xed')](_0x55b929);else{if(_0x38a026[_0x3c07('0x10f')]&&_0x55b929[_0x3c07('0x83')]){const {commonTape:_0x508673,iEnd:_0x242425,jEnd:_0x401cbe}=this[_0x3c07('0x89')](_0x598190,_0x31d35b,_0x47a8c1,_0x2810c5);_0x4cb06=_0x4cb06['concat'](_0x508673),_0x31d35b=_0x242425,_0x2810c5=_0x401cbe;}else _0x38a026[_0x3c07('0x10f')]?(_0x2810c5++,_0x4cb06[_0x3c07('0xed')](_0x38a026)):(_0x31d35b++,_0x4cb06[_0x3c07('0xed')](_0x55b929));}}return _0x4cb06;}[_0x3c07('0xa9')](_0x14c4d5,_0x29287b){const _0x5eb7cc=[];for(let _0x133557=0x0;_0x133557<_0x14c4d5['length'];_0x133557++){for(let _0x4994ac=0x0;_0x4994ac<_0x14c4d5[_0x133557][_0x3c07('0x93')][_0x3c07('0xf1')];_0x4994ac++){const _0x1483bc=_0x14c4d5[_0x133557][_0x3c07('0x93')][_0x4994ac];if(!_0x29287b[_0x3c07('0x19')](_0x1483bc))continue;const {group:_0x326c0a,type:_0x315338,authorId:_0x4936fb}=_0x4ebd2f(_0x1483bc);'revision-suggestion'!=_0x326c0a||_0x3c07('0x62')!=_0x315338&&_0x3c07('0xb2')!=_0x315338||(_0x5eb7cc[_0x3c07('0xa3')]({'type':_0x315338,'name':_0x1483bc,'userId':_0x4936fb}),_0x14c4d5[_0x133557][_0x3c07('0x93')]['splice'](_0x4994ac,0x1),_0x4994ac--);}_0x4ddf86(_0x14c4d5[_0x133557]);for(let _0x3bfaf6=0x0;_0x3bfaf6<_0x14c4d5[_0x133557][_0x3c07('0xf3')][_0x3c07('0xf1')];_0x3bfaf6++){const _0x55002c=_0x14c4d5[_0x133557][_0x3c07('0xf3')][_0x3bfaf6];if(!_0x29287b[_0x3c07('0x19')](_0x55002c))continue;const {group:_0x4fb569,type:_0x38a31e}=_0x4ebd2f(_0x55002c);if('revision-suggestion'!=_0x4fb569||_0x3c07('0x62')!=_0x38a31e&&_0x3c07('0xb2')!=_0x38a31e)continue;_0x14c4d5[_0x133557][_0x3c07('0xf3')][_0x3c07('0xd4')](_0x3bfaf6,0x1),_0x3bfaf6--;const _0x5394c7=_0x5eb7cc[_0x3c07('0xef')](_0x3a5d26=>_0x3a5d26[_0x3c07('0x5e')]==_0x55002c);_0x5394c7>-0x1&&_0x5eb7cc['splice'](_0x5394c7,0x1);}}function _0x4ebd2f(_0x2cb414){const _0x4f2626=_0x2cb414[_0x3c07('0x57')](':');return{'group':_0x4f2626[0x0],'type':_0x4f2626[0x1],'subType':_0x4f2626[_0x3c07('0xf1')]>=0x5?_0x4f2626[0x2]:null,'id':_0x4f2626['length']<0x5?_0x4f2626[0x2]:_0x4f2626[0x3],'authorId':_0x4f2626[_0x3c07('0xf1')]<0x5?_0x4f2626[0x3]:_0x4f2626[0x4],'markerCount':0x6==_0x4f2626['length']?_0x4f2626[0x5]:null};}function _0x4ddf86(_0x2c8d3a){for(let _0x3523de=0x0;_0x3523de<_0x5eb7cc['length'];_0x3523de++){if(_0x2c8d3a[_0x3c07('0x83')]&&_0x3c07('0x62')==_0x5eb7cc[_0x3523de][_0x3c07('0x31')])return _0x2c8d3a['isAddSuggestion']=_0x5eb7cc[_0x3523de],void delete _0x2c8d3a[_0x3c07('0x83')];if(!_0x2c8d3a[_0x3c07('0x83')]&&!_0x2c8d3a[_0x3c07('0x10f')]&&_0x3c07('0xb2')==_0x5eb7cc[_0x3523de][_0x3c07('0x31')])return void(_0x2c8d3a[_0x3c07('0x1e')]=_0x5eb7cc[_0x3523de]);}}}['_setDistance'](_0xd4df4e,_0x43733f){let _0x14ad44=0x0,_0x2eec7e=!0x1;const _0x585b34=new Map();for(const _0x324a16 of _0xd4df4e)_0x324a16[_0x43733f]?_0x2eec7e&&(_0x14ad44++,_0x2eec7e=!0x1):(_0x14ad44++,_0x2eec7e=!0x0),_0x585b34[_0x3c07('0xcf')](_0x324a16['id'],_0x14ad44);for(let _0x128a87=0x0;_0x128a87<_0xd4df4e[_0x3c07('0xf1')];_0x128a87++){if('isRemoved'==_0x43733f&&_0xd4df4e[_0x128a87][_0x3c07('0x83')]||_0x3c07('0x83')==_0x43733f&&_0xd4df4e[_0x128a87][_0x3c07('0x10f')])continue;if('text'==_0xd4df4e[_0x128a87][_0x3c07('0x31')]){_0xd4df4e[_0x128a87][_0x3c07('0x53')]=0x0;continue;}const _0x591969=_0x585b34[_0x3c07('0x44')](_0xd4df4e[_0x128a87][_0x3c07('0x1d')]),_0x37046c=_0x585b34[_0x3c07('0x44')](_0xd4df4e[_0x128a87]['id']);_0xd4df4e[_0x128a87]['distance']=_0x591969-_0x37046c;}}[_0x3c07('0x7a')](_0x3aef3d,_0x24ccad,_0x5956e5=!0x1){const _0x259dce=[];let _0x24626e=this[_0x3c07('0x4')][_0x3c07('0x88')](_0x3aef3d),_0x4df05c=this['repository']['getIndex'](_0x24ccad);for(-0x1==_0x4df05c&&(_0x4df05c=this[_0x3c07('0x4')][_0x3c07('0x10c')]['length'],_0x5956e5=!0x1);_0x24626e<_0x4df05c;)_0x259dce[_0x3c07('0xed')](this[_0x3c07('0x4')][_0x3c07('0xd6')](_0x24626e)),_0x24626e++;return _0x5956e5&&_0x259dce[_0x3c07('0xed')](this[_0x3c07('0x4')][_0x3c07('0xd6')](_0x24626e)),_0x259dce;}[_0x3c07('0x89')](_0x30df9,_0x206917,_0x11f733,_0x5c9f06){const _0x385e93=this[_0x3c07('0x5f')][_0x3c07('0xfa')]['schema'];let _0xf03b6=_0x206917;for(;_0x30df9[_0xf03b6]&&_0x30df9[_0xf03b6][_0x3c07('0x83')];)_0xf03b6++;let _0x47043f=_0x5c9f06;for(;_0x11f733[_0x47043f]&&_0x11f733[_0x47043f][_0x3c07('0x10f')];)_0x47043f++;_0x4b4f9b(_0x30df9,_0x206917,_0xf03b6),_0x4b4f9b(_0x11f733,_0x5c9f06,_0x47043f);const _0x4d6f48=_0x11f733[_0x3c07('0x66')](_0x5c9f06,_0x47043f)[_0x3c07('0x92')](_0x30df9[_0x3c07('0x66')](_0x206917,_0xf03b6));return _0x4d6f48[_0x3c07('0x102')]((_0x539bba,_0x2c6b25)=>_0x539bba[_0x3c07('0xab')]!=_0x2c6b25[_0x3c07('0xab')]?_0x539bba[_0x3c07('0xab')]-_0x2c6b25['side']:_0x539bba['level']!=_0x2c6b25['level']?_0x539bba[_0x3c07('0x99')]-_0x2c6b25[_0x3c07('0x99')]:_0x539bba['distance']!=_0x2c6b25[_0x3c07('0x53')]?_0x2c6b25['distance']-_0x539bba[_0x3c07('0x53')]:!!_0x539bba[_0x3c07('0x83')]!=!!_0x2c6b25['isAdded']?-0x1==_0x539bba[_0x3c07('0xab')]||0x0==_0x539bba[_0x3c07('0xab')]?_0x539bba[_0x3c07('0x83')]?-0x1:0x1:_0x539bba[_0x3c07('0x83')]?0x1:-0x1:_0x539bba[_0x3c07('0x38')]-_0x2c6b25[_0x3c07('0x38')]),{'commonTape':_0x4d6f48,'iEnd':_0xf03b6,'jEnd':_0x47043f};function _0x4b4f9b(_0x5cbca6,_0x18d306,_0x491ab4){let _0x73e05f=-0x1,_0x109b09=Number[_0x3c07('0x64')],_0x9dae94=!0x0;for(let _0x160a49=_0x18d306;_0x160a49<_0x491ab4;_0x160a49++)if(_0x385e93[_0x3c07('0x52')](_0x5cbca6[_0x160a49]['item'])||(_0x9dae94=!0x1),_0x5cbca6[_0x160a49]['item'][_0x3c07('0x59')]<_0x18d306&&(_0x73e05f=_0x160a49),_0x5cbca6[_0x160a49][_0x3c07('0xbd')][_0x3c07('0x98')]>=_0x491ab4){_0x109b09=_0x160a49;break;}_0x9dae94&&(_0x73e05f=_0x491ab4-0x1);for(let _0x3a2327=_0x18d306;_0x3a2327<_0x491ab4;_0x3a2327++)_0x5cbca6[_0x3a2327][_0x3c07('0xab')]=_0x3a2327<=_0x73e05f?-0x1:_0x3a2327<_0x109b09?0x0:0x1,_0x5cbca6[_0x3a2327]['index']=_0x3a2327;let _0x3a4051=0x0;for(let _0x5300d6=_0x18d306;_0x5300d6<=_0x73e05f;_0x5300d6++)0x0==_0x5cbca6[_0x5300d6][_0x3c07('0x53')]?_0x5cbca6[_0x5300d6][_0x3c07('0x99')]=_0x3a4051:(_0x3a4051++,_0x5cbca6[_0x5300d6][_0x3c07('0x99')]=_0x3a4051,_0x3a4051++);for(let _0x39f445=_0x18d306;_0x39f445<_0x491ab4;_0x39f445++)0x0==_0x5cbca6[_0x39f445][_0x3c07('0xab')]&&(_0x5cbca6[_0x39f445]['level']=_0x3a4051);_0x3a4051=0x0;for(let _0xe0c746=_0x491ab4-0x1;_0xe0c746>=_0x109b09;_0xe0c746--)0x0==_0x5cbca6[_0xe0c746]['distance']?_0x5cbca6[_0xe0c746]['level']=_0x3a4051:(_0x3a4051--,_0x5cbca6[_0xe0c746][_0x3c07('0x99')]=_0x3a4051,_0x3a4051--);}}[_0x3c07('0xc')](_0x395f47){const _0x1a4960=new Map(),_0xdb6cf4=this[_0x3c07('0x5f')][_0x3c07('0xfa')]['schema'];for(let _0x172598=0x1;_0x172598<_0x395f47[_0x3c07('0xf1')];_0x172598++){let _0x6e9520,_0x15a7ed,_0x229491;const _0x1ea359=_0x395f47[_0x172598],_0x2e8b44=_0x395f47[_0x172598-0x1];if(_0x3c07('0xd')==_0x1ea359[_0x3c07('0x31')])continue;if(_0x1ea359['type']!=_0x2e8b44[_0x3c07('0x31')])continue;if(!_0xdb6cf4[_0x3c07('0xda')](_0x2e8b44[_0x3c07('0xbd')])||_0xdb6cf4[_0x3c07('0x108')](_0x2e8b44['item']))continue;if(!_0xdb6cf4[_0x3c07('0xda')](_0x1ea359[_0x3c07('0xbd')])||_0xdb6cf4['isLimit'](_0x1ea359['item']))continue;if((_0x395f47[_0x172598][_0x3c07('0x83')]||_0x395f47[_0x172598][_0x3c07('0x50')])&&_0x395f47[_0x172598-0x1][_0x3c07('0x10f')])_0x6e9520=_0x395f47[_0x172598],_0x15a7ed=_0x395f47[_0x172598-0x1],_0x229491=_0x172598-0x1;else{if(!_0x395f47[_0x172598][_0x3c07('0x10f')]||!_0x395f47[_0x172598-0x1][_0x3c07('0x83')]&&!_0x395f47[_0x172598-0x1][_0x3c07('0x50')])continue;_0x6e9520=_0x395f47[_0x172598-0x1],_0x15a7ed=_0x395f47[_0x172598],_0x229491=_0x172598;}const _0x1e050c=_0x6e9520[_0x3c07('0x99')]==_0x15a7ed[_0x3c07('0x99')],_0x2da670=Math[_0x3c07('0x96')](_0x6e9520[_0x3c07('0x99')])<Math[_0x3c07('0x96')](_0x15a7ed[_0x3c07('0x99')])&&0x0==_0x15a7ed[_0x3c07('0x53')];(_0x1e050c||_0x2da670)&&(_0x1a4960[_0x3c07('0xcf')](_0x15a7ed['id'],_0x6e9520['id']),_0x395f47[_0x3c07('0xd4')](_0x229491,0x1),_0x172598--,_0x6e9520['isAdded']=!0x1);}for(let _0x37a5d2=0x0;_0x37a5d2<_0x395f47['length'];_0x37a5d2++)_0x1a4960[_0x3c07('0x19')](_0x395f47[_0x37a5d2][_0x3c07('0x1d')])&&(_0x395f47[_0x37a5d2]['pairId']=_0x1a4960[_0x3c07('0x44')](_0x395f47[_0x37a5d2]['pairId']));}[_0x3c07('0x116')](_0x440839){const _0x15b11b=new Set(_0x440839['map'](_0x57ec36=>_0x57ec36['id']));for(let _0x346214=0x0;_0x346214<_0x440839[_0x3c07('0xf1')];_0x346214++)_0x15b11b[_0x3c07('0x19')](_0x440839[_0x346214][_0x3c07('0x1d')])||0x0==_0x440839[_0x346214][_0x3c07('0x53')]||(_0x440839[_0x346214]['isIncorrect']=!0x0);return _0x440839[_0x3c07('0x70')](_0x17a8f7=>!_0x17a8f7[_0x3c07('0xf')]);}[_0x3c07('0x10')](_0x31e09b){const _0x342f8c=new Set();for(let _0x285f23=0x0;_0x285f23<_0x31e09b['length'];_0x285f23++){if(_0x342f8c['has'](_0x31e09b[_0x285f23]['id'])&&_0x31e09b[_0x285f23][_0x3c07('0x10f')]&&(_0x31e09b[_0x285f23][_0x3c07('0xf')]=!0x0),_0x31e09b[_0x285f23]['isIncorrect'])continue;if(0x0==_0x31e09b[_0x285f23][_0x3c07('0x53')])continue;if(_0x3c07('0x101')!=_0x31e09b[_0x285f23][_0x3c07('0x31')])continue;if(null==_0x31e09b[_0x285f23][_0x3c07('0x1d')])continue;let _0x15745b=_0x285f23+0x1,_0x3936a4=0x0;for(;_0x31e09b[_0x15745b]['id']!=_0x31e09b[_0x285f23][_0x3c07('0x1d')];)_0x3c07('0x101')==_0x31e09b[_0x15745b]['type']?_0x3936a4++:_0x3c07('0x3f')==_0x31e09b[_0x15745b][_0x3c07('0x31')]&&_0x3936a4--,_0x15745b++;if(0x0!=_0x3936a4){if(_0x31e09b[_0x285f23]['isRemoved'])_0x31e09b[_0x285f23][_0x3c07('0xf')]=!0x0;else for(;_0x15745b!=_0x285f23;)_0x31e09b[_0x15745b]['isRemoved']&&0x0!=_0x31e09b[_0x15745b][_0x3c07('0x53')]&&(_0x31e09b[_0x15745b][_0x3c07('0xf')]=!0x0,_0x342f8c[_0x3c07('0xee')](_0x31e09b[_0x15745b][_0x3c07('0x1d')])),_0x15745b--;}}return _0x31e09b[_0x3c07('0x70')](_0x14ce50=>!_0x14ce50[_0x3c07('0xf')]);}[_0x3c07('0xad')](_0xddc030){const _0x324f7f=this[_0x3c07('0x5f')]['model'][_0x3c07('0x63')];for(let _0x1c3af1=0x0;_0x1c3af1<_0xddc030[_0x3c07('0xf1')];_0x1c3af1++){if(!(_0xddc030[_0x1c3af1][_0x3c07('0x83')]||_0xddc030[_0x1c3af1][_0x3c07('0x50')]||_0xddc030[_0x1c3af1][_0x3c07('0x10f')]||_0xddc030[_0x1c3af1][_0x3c07('0x1e')]))continue;if(0x0==_0xddc030[_0x1c3af1][_0x3c07('0x53')])continue;const _0x5d6ff7=_0xddc030[_0x1c3af1][_0x3c07('0xbd')];_0x324f7f[_0x3c07('0xda')](_0x5d6ff7)||_0x324f7f['isLimit'](_0x5d6ff7)||(_0xddc030[_0x1c3af1][_0x3c07('0x83')]&&delete _0xddc030[_0x1c3af1][_0x3c07('0x83')],_0xddc030[_0x1c3af1][_0x3c07('0x50')]&&delete _0xddc030[_0x1c3af1][_0x3c07('0x50')],_0xddc030[_0x1c3af1][_0x3c07('0x1e')]&&delete _0xddc030[_0x1c3af1][_0x3c07('0x1e')],_0xddc030[_0x1c3af1][_0x3c07('0x10f')]&&(_0xddc030[_0x1c3af1]['isIncorrect']=!0x0));}return _0xddc030[_0x3c07('0x70')](_0x20d4bb=>!_0x20d4bb['isIncorrect']);}['_makeModelFromTape'](_0x456983,_0x2afeb1,_0xbbf6b7){const _0x4f0932=new _0x188d52(),_0x55100c=[],_0x4d1720=new Map(),_0x39d797=this[_0x3c07('0x5f')][_0x3c07('0xfa')],_0x3ddfe9=_0x39d797[_0x3c07('0x63')],_0x1fc3ac=[_0x4f0932],_0x15435b={},_0x3fdde8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4156e9=null;const _0x1abb36=[0x0];for(let _0x574bd6=0x0;_0x574bd6<_0x456983[_0x3c07('0xf1')];_0x574bd6++){let _0x20dc82,_0x424444;if(_0x3c07('0x101')===_0x456983[_0x574bd6]['type']){_0x20dc82=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36);const _0x39b962=new _0x2b2bbc(_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0x5e')],_0x456983[_0x574bd6][_0x3c07('0xbd')]['getAttributes']());_0x1fc3ac[0x0][_0x3c07('0xa1')](_0x39b962),_0x1abb36[_0x3c07('0xed')](0x0),_0x1fc3ac['unshift'](_0x39b962),_0x424444=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x4156e9=null;}else{if(_0x3c07('0x3f')===_0x456983[_0x574bd6][_0x3c07('0x31')])_0x1fc3ac[_0x3c07('0xc4')](),_0x20dc82=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x1abb36[_0x3c07('0xa6')](),_0x1abb36[_0x1abb36[_0x3c07('0xf1')]-0x1]++,_0x424444=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x4156e9=null;else{if(_0x20dc82=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x4156e9&&_0x2cc966(_0x4156e9,_0x456983[_0x574bd6][_0x3c07('0xbd')]))_0x4156e9[_0x3c07('0x37')]+=_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0xf4')];else{const _0x48fae2=new _0x538d83(_0x456983[_0x574bd6][_0x3c07('0xbd')]['data'],_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0x86')]());_0x1fc3ac[0x0]['_appendChild'](_0x48fae2),_0x4156e9=_0x48fae2;}_0x1abb36[_0x1abb36[_0x3c07('0xf1')]-0x1]+=_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0x78')],_0x424444=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36);}}for(const _0x2743d3 of _0x456983[_0x574bd6][_0x3c07('0x93')])_0x4d1720['set'](_0x2743d3,{'start':_0x20dc82,'end':null});_0x5071d1(_0x3c07('0x1e'),_0x574bd6,_0x20dc82,_0x424444),_0x5071d1(_0x3c07('0x50'),_0x574bd6,_0x20dc82,_0x424444),_0x5071d1(_0x3c07('0x10f'),_0x574bd6,_0x20dc82,_0x424444),_0x5071d1('isAdded',_0x574bd6,_0x20dc82,_0x424444);for(const _0x1999b5 of _0x456983[_0x574bd6]['markersEnd']){_0x4d1720[_0x3c07('0x44')](_0x1999b5)[_0x3c07('0x7c')]=_0x424444;}}for(const [_0xa931c2,_0x17c883]of _0x4d1720){const _0x5569f3=this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0xdf')](_0x17c883[_0x3c07('0xb6')],_0x17c883['end']);_0x4f0932['markers']['set'](_0xa931c2,_0x5569f3);}return _0x55100c['sort']((_0x30caf8,_0x1c086f)=>{const _0x3703ae=_0x4f0932[_0x3c07('0xcc')][_0x3c07('0x44')]('revision:'+_0x30caf8['id']),_0x11d7b0=_0x4f0932[_0x3c07('0xcc')][_0x3c07('0x44')](_0x3c07('0x79')+_0x1c086f['id']);return _0x3703ae[_0x3c07('0xb6')][_0x3c07('0xac')](_0x11d7b0[_0x3c07('0xb6')])?-0x1:_0x3703ae[_0x3c07('0xb6')][_0x3c07('0x8e')](_0x11d7b0[_0x3c07('0xb6')])?0x1:_0x3703ae['end']['isBefore'](_0x11d7b0[_0x3c07('0x7c')])?-0x1:_0x3703ae[_0x3c07('0x7c')][_0x3c07('0x8e')](_0x11d7b0[_0x3c07('0x7c')])?0x1:_0x3c07('0xee')===_0x30caf8['type']?-0x1:0x1;}),{'root':_0x4f0932,'changes':_0x55100c};function _0x5071d1(_0x35da47,_0x525250,_0x118466,_0x1826d6){const _0x50de02=!!_0x456983[_0x525250][_0x35da47],_0x3561ea=_0x50de02?_0x456983[_0x525250][_0x35da47][_0x3c07('0xe5')]:null,_0x945965=_0x525250===_0x456983[_0x3c07('0xf1')]-0x1,_0x39f334=_0x3fdde8[_0x35da47][0x0],_0x38cc42=_0x3ddfe9['isObject'](_0x456983[_0x525250]['item']);!_0x15435b[_0x35da47]&&_0x50de02?_0x15435b[_0x35da47]={'start':_0x118466,'tapeItem':_0x456983[_0x525250],'userId':_0x3561ea,'type':_0x35da47}:_0x15435b[_0x35da47]&&!_0x50de02?(_0x15435b[_0x35da47][_0x3c07('0x7c')]=_0x118466,_0x46eeb9(_0x15435b[_0x35da47]),_0x15435b[_0x35da47]=null):_0x15435b[_0x35da47]&&_0x50de02&&_0x15435b[_0x35da47]['userId']!==_0x3561ea&&(_0x15435b[_0x35da47][_0x3c07('0x7c')]=_0x118466,_0x39f334&&_0x39f334['userId']===_0x15435b[_0x35da47]['userId']||_0x46eeb9(_0x15435b[_0x35da47]),_0x15435b[_0x35da47]={'start':_0x118466,'tapeItem':_0x456983[_0x525250],'userId':_0x3561ea,'type':_0x35da47}),_0x15435b[_0x35da47]&&_0x38cc42&&('elementStart'!==_0x456983[_0x525250][_0x3c07('0x31')]||_0x39f334&&_0x39f334[_0x3c07('0xe5')]===_0x3561ea||_0x3fdde8[_0x35da47][_0x3c07('0xa3')]({'userId':_0x3561ea,'object':_0x456983[_0x525250][_0x3c07('0xbd')],'change':_0x15435b[_0x35da47]}),_0x3c07('0x3f')===_0x456983[_0x525250][_0x3c07('0x31')]&&_0x39f334&&_0x39f334[_0x3c07('0xf8')]===_0x456983[_0x525250][_0x3c07('0xbd')]&&(_0x3fdde8[_0x35da47][_0x3c07('0xc4')](),_0x15435b[_0x35da47]=_0x39f334[_0x3c07('0x11b')])),_0x15435b[_0x35da47]&&_0x945965&&(_0x15435b[_0x35da47][_0x3c07('0x7c')]=_0x1826d6,_0x46eeb9(_0x15435b[_0x35da47]),_0x15435b[_0x35da47]=null);}function _0x46eeb9({start:_0x5f547e,end:_0x5883ab,tapeItem:_0x44b372,userId:_0x426b9d,type:_0x4f9a30}){const _0x483ec3=_0x44b372['item'],_0x2a3f22=_0x39d797[_0x3c07('0x63')][_0x3c07('0xda')](_0x483ec3)&&!_0x39d797['schema']['isLimit'](_0x483ec3),_0x3067fe=_0x5f547e[_0x3c07('0x2c')]==_0x5883ab[_0x3c07('0x9e')]&&_0x5883ab[_0x3c07('0xbf')];if(_0x2a3f22&&_0x3067fe)return;const _0x59f00b=_0x39d797[_0x3c07('0xdf')](_0x5f547e,_0x5883ab),_0x413954=_0x2afeb1[_0x3c07('0x44')](_0x426b9d),_0x2225e4=new _0x4420af({'author':_0x413954,'type':_0x3c07('0x83')==_0x4f9a30||_0x3c07('0x50')==_0x4f9a30?_0x3c07('0xee'):_0x3c07('0x106'),'data':{'isSuggestion':'isAddSuggestion'==_0x4f9a30||'isRemoveSuggestion'==_0x4f9a30},'createdAt':new Date(),'rootName':_0xbbf6b7});_0x55100c[_0x3c07('0xed')](_0x2225e4),_0x4f0932[_0x3c07('0xcc')][_0x3c07('0xcf')](_0x3c07('0x79')+_0x2225e4['id'],_0x59f00b);}function _0x2cc966(_0x33eb4b,_0x514992){const _0xc1a85d=_0x33eb4b['getAttributes'](),_0x16a393=_0x514992[_0x3c07('0x86')]();for(const _0x2e208c of _0xc1a85d){if(_0x2e208c[0x1]!==_0x514992[_0x3c07('0x1')](_0x2e208c[0x0]))return!0x1;_0x16a393['next']();}return _0x16a393[_0x3c07('0x65')]()[_0x3c07('0x2e')];}}[_0x3c07('0x2d')](){this['editor'][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xc7'))[_0x3c07('0x8a')]({'view':_0x3c07('0x48')}),this[_0x3c07('0x5f')]['conversion'][_0x3c07('0xeb')]('editingDowncast')[_0x3c07('0x69')]({'model':_0x3c07('0x48'),'view':_0x150165=>{const _0x5c4bd2=_0x150165[_0x3c07('0x25')]['split'](':')[0x1],_0x3d12b7=this['_getChangeFromId'](_0x5c4bd2);if(!_0x3d12b7)return null;const _0x274034=_0x3c07('0xee')==_0x3d12b7[_0x3c07('0x31')]?_0x3c07('0x62'):_0x3c07('0xb2'),_0x4353be=['ck-suggestion-marker','ck-suggestion-marker-'+_0x274034];return _0x3d12b7[_0x3c07('0xf4')]['isSuggestion']&&_0x4353be['push'](_0x3c07('0x5')+_0x274034+'-new'),this[_0x3c07('0xcd')]==_0x3d12b7&&_0x4353be[_0x3c07('0xed')]('ck-suggestion-marker--active'),{'classes':_0x4353be,'attributes':{'data-change-id':_0x5c4bd2}};}}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xc7'))[_0x3c07('0xee')](_0x472f55=>{_0x472f55['on']('element:pre',(_0x1f6478,_0x50c888,_0x57cb60)=>{const _0x4abb9b=_0x50c888[_0x3c07('0x9a')]['getChild'](0x0);if(!_0x4abb9b||!_0x4abb9b['is'](_0x3c07('0x105'),'code'))return;if(!_0x57cb60[_0x3c07('0x7e')][_0x3c07('0x41')](_0x4abb9b,{'attributes':[_0x3c07('0xb9'),'vid_end']}))return;const _0x4d493f=_0x50c888[_0x3c07('0x14')][_0x3c07('0xb6')][_0x3c07('0x2c')];_0x57cb60[_0x3c07('0x20')][_0x3c07('0x3b')](_0x3c07('0xb9'),_0x4abb9b[_0x3c07('0x1')](_0x3c07('0xb9')),_0x4d493f),_0x57cb60['writer'][_0x3c07('0x3b')](_0x3c07('0x0'),_0x4abb9b[_0x3c07('0x1')]('vid_end'),_0x4d493f);},{'priority':'low'});}),this[_0x3c07('0x5f')]['conversion']['for'](_0x3c07('0xc7'))[_0x3c07('0xee')](_0x5d5ac6=>{_0x5d5ac6['on'](_0x3c07('0x105'),(_0x7ddf81,_0x2bfd2c,_0x179be0)=>{if(!_0x179be0[_0x3c07('0x7e')]['consume'](_0x2bfd2c[_0x3c07('0x9a')],{'attributes':[_0x3c07('0xb9'),_0x3c07('0x0')]}))return;if(_0x2bfd2c['modelRange'][_0x3c07('0x36')])return;const _0x38bfc5=_0x2bfd2c[_0x3c07('0x14')][_0x3c07('0xb6')]['nodeAfter'];_0x38bfc5[_0x3c07('0x5b')](_0x3c07('0xb9'))||_0x38bfc5['hasAttribute'](_0x3c07('0xba'))||(_0x179be0['writer']['setAttribute'](_0x3c07('0xb9'),_0x2bfd2c[_0x3c07('0x9a')][_0x3c07('0x1')](_0x3c07('0xb9')),_0x38bfc5),_0x179be0[_0x3c07('0x20')][_0x3c07('0x3b')](_0x3c07('0x0'),_0x2bfd2c[_0x3c07('0x9a')]['getAttribute'](_0x3c07('0x0')),_0x38bfc5));},{'priority':_0x3c07('0x61')});}),this['editor'][_0x3c07('0x11e')]['for'](_0x3c07('0xc7'))[_0x3c07('0x9c')]({'view':{'name':_0x3c07('0x90'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x54d0f3=>_0x54d0f3[_0x3c07('0x1')]('vid')}}),this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x63')]['on']('checkAttribute',(_0x45fa87,[,_0x180fff])=>{[_0x3c07('0xb9'),_0x3c07('0x0'),_0x3c07('0xba')][_0x3c07('0xfe')](_0x180fff)&&(_0x45fa87[_0x3c07('0xe7')]=!0x0,_0x45fa87[_0x3c07('0x74')]());},{'priority':_0x3c07('0x12')}),this[_0x3c07('0x5f')][_0x3c07('0x11e')]['for'](_0x3c07('0x8'))['add'](_0xf4408c=>{_0xf4408c['on'](_0x3c07('0x11a'),(_0x596c17,_0x444136,_0x13182a)=>{if('\x20'!=_0x444136[_0x3c07('0xbd')]['data']||_0x444136[_0x3c07('0xbd')]['parent'][_0x3c07('0x58')]>0x1)return;if(!_0x13182a[_0x3c07('0x7e')][_0x3c07('0x41')](_0x444136[_0x3c07('0xbd')],_0x596c17[_0x3c07('0x5e')]))return;const _0x4f522d=_0x13182a[_0x3c07('0x20')],_0x73be23=_0x13182a[_0x3c07('0xd3')]['toViewRange'](_0x444136['range']);_0x4f522d[_0x3c07('0x27')](_0x73be23,_0x4f522d[_0x3c07('0x4a')](_0x3c07('0x90')));});}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')]('dataDowncast')[_0x3c07('0x4e')]({'model':_0x3c07('0x48')}),this['editor']['editing'][_0x3c07('0x80')]['on'](_0x3c07('0x40'),function(_0x4f4601){const _0x36c94f=_0x4f4601['plugins']['get']('RevisionViewer');return(_0xda87df,_0x437529,_0x44ccfc)=>{const _0x2ab1c1=_0x437529[_0x3c07('0x25')]['split'](':')[0x1],_0x4c7d71=_0x36c94f[_0x3c07('0xe4')](_0x2ab1c1);if(!_0x4c7d71)return null;const _0x45dec2=_0x3c07('0xee')==_0x4c7d71[_0x3c07('0x31')]?'split':_0x3c07('0x42');if(!_0x44ccfc['consumable'][_0x3c07('0x22')](_0x437529[_0x3c07('0x100')],_0xda87df[_0x3c07('0x5e')]))return;const _0x5d118c=_0x437529[_0x3c07('0x100')]['getWalker'](),_0x38b82f=_0x437529[_0x3c07('0x100')][_0x3c07('0xb6')],_0x4d583f=_0x4f4601[_0x3c07('0xfa')][_0x3c07('0x63')];let _0x284c69=null,_0x151126=null,_0x1a3a20=!0x1,_0x59b6d0=!0x1;for(const _0x4787fb of _0x5d118c){const _0x4721a0=_0x4787fb[_0x3c07('0xbd')];_0x1a3a20=_0x1a3a20||_0x4d583f['isContent'](_0x4721a0);const _0x28c452=_0x44ccfc[_0x3c07('0xd3')]['toViewElement'](_0x4721a0);if(_0x28c452&&_0x28c452[_0x3c07('0x6d')](_0x3c07('0xc1')))return;_0x3c07('0x3f')==_0x4787fb['type']&&(_0x4d583f[_0x3c07('0xda')](_0x4721a0)&&!_0x4d583f[_0x3c07('0x108')](_0x4721a0)&&(_0x4721a0[_0x3c07('0x82')]||_0x38b82f[_0x3c07('0xde')]?_0x284c69&&_0x284c69[_0x3c07('0x9e')]==_0x4721a0||(_0x284c69=_0x4721a0,_0x67f628(_0x4787fb['previousPosition']),_0x59b6d0=!0x0):_0x151126=_0x151126||_0x4787fb[_0x3c07('0x11d')]));}function _0x67f628(_0x4695f0){const _0xb99521=_0x44ccfc[_0x3c07('0x20')]['createUIElement'](_0x3c07('0x90'),{'class':_0x3c07('0x5')+_0x45dec2}),_0x52d80e=_0x44ccfc['mapper']['toViewPosition'](_0x4695f0);_0x4c7d71[_0x3c07('0xf4')][_0x3c07('0x7b')]&&_0x44ccfc['writer'][_0x3c07('0x49')](_0x3c07('0x5')+_0x45dec2+_0x3c07('0x104'),_0xb99521),_0x36c94f[_0x3c07('0xcd')]==_0x4c7d71&&_0x44ccfc[_0x3c07('0x20')][_0x3c07('0x49')](_0x3c07('0xb0'),_0xb99521),_0x44ccfc[_0x3c07('0x20')]['insert'](_0x52d80e,_0xb99521),_0x44ccfc['mapper'][_0x3c07('0x13')](_0xb99521,_0x437529[_0x3c07('0x25')]);}_0x1a3a20||_0x59b6d0||!_0x151126||_0x67f628(_0x151126);};}(this[_0x3c07('0x5f')]),{'priority':'high'}),this[_0x3c07('0x5f')][_0x3c07('0x113')]['downcastDispatcher']['on'](_0x3c07('0x15'),(_0x1b86f1,_0x1c7ec7,_0x32c083)=>{const _0x3be390=_0x32c083['mapper'][_0x3c07('0x6c')](_0x1c7ec7[_0x3c07('0x25')]);if(_0x3be390)for(const _0x280eaf of _0x3be390)(_0x280eaf[_0x3c07('0x56')]('ck-suggestion-marker-split')||_0x280eaf[_0x3c07('0x56')](_0x3c07('0x7')))&&(_0x32c083['mapper'][_0x3c07('0x43')](_0x280eaf,_0x1c7ec7[_0x3c07('0x25')]),_0x32c083[_0x3c07('0x20')][_0x3c07('0x106')](_0x280eaf));},{'priority':_0x3c07('0x6')}),this[_0x3c07('0x5f')][_0x3c07('0x113')][_0x3c07('0x80')]['on'](_0x3c07('0x40'),(_0x514229,_0x884a92,_0xd0252)=>{const _0x577d4a=_0x884a92[_0x3c07('0x25')][_0x3c07('0x57')](':')[0x1],_0x4d384d=this['_getChangeFromId'](_0x577d4a);if(!_0x4d384d)return null;const _0x2ff7b0=_0x3c07('0xee')==_0x4d384d[_0x3c07('0x31')]?_0x3c07('0x57'):_0x3c07('0x42');if(_0xd0252['consumable'][_0x3c07('0x22')](_0x884a92[_0x3c07('0x100')],_0x514229['name']))for(const _0x4ff040 of _0x884a92[_0x3c07('0x100')][_0x3c07('0x3a')]()){if(!_0x4ff040['is']('element',_0x3c07('0xbc')))continue;const _0x2ee523=_0xd0252[_0x3c07('0x20')][_0x3c07('0x4c')](_0x3c07('0x90'),{'class':_0x3c07('0x5')+_0x2ff7b0}),_0x4195a4=_0xd0252[_0x3c07('0xd3')][_0x3c07('0xf2')](this[_0x3c07('0x5f')][_0x3c07('0xfa')]['createPositionBefore'](_0x4ff040));_0x4d384d[_0x3c07('0xf4')][_0x3c07('0x7b')]&&_0xd0252['writer'][_0x3c07('0x49')](_0x3c07('0x5')+_0x2ff7b0+'-new',_0x2ee523),this[_0x3c07('0xcd')]==_0x4d384d&&_0xd0252[_0x3c07('0x20')][_0x3c07('0x49')]('ck-suggestion-marker--active',_0x2ee523),_0xd0252[_0x3c07('0x20')]['insert'](_0x4195a4,_0x2ee523),_0xd0252[_0x3c07('0xd3')][_0x3c07('0x13')](_0x2ee523,_0x884a92[_0x3c07('0x25')]);}},{'priority':_0x3c07('0x6')}),this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['on'](_0x3c07('0x11b'),()=>{this[_0x3c07('0x5f')]['editing'][_0x3c07('0xa')][_0x3c07('0x11b')](_0x5b2fcc=>{for(const _0x25e055 of this[_0x3c07('0x5f')][_0x3c07('0xfa')]['document'][_0x3c07('0xae')]()){const _0xca35f3=this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['getRoot'](_0x25e055),_0xe532fa=this[_0x3c07('0x5f')]['editing'][_0x3c07('0xa')][_0x3c07('0x10e')][_0x3c07('0xb4')](_0x25e055);if(_0xe532fa){const _0x4a1bac=_0xca35f3[_0x3c07('0x1')]('revisionHistoryAttachChange');if(_0x5b2fcc[_0x3c07('0x6f')](_0x3c07('0xb7'),_0xe532fa),_0x5b2fcc['removeClass'](_0x3c07('0xd0'),_0xe532fa),_0x5b2fcc[_0x3c07('0x2')](_0x3c07('0xe1'),_0xe532fa),_0x5b2fcc[_0x3c07('0x2')](_0x3c07('0x23'),_0xe532fa),_0x4a1bac){const _0x4dbe8b=this[_0x3c07('0xe4')](_0x4a1bac);if(!_0x4dbe8b)return null;_0x5b2fcc[_0x3c07('0x3b')](_0x3c07('0xb7'),_0x4a1bac,_0xe532fa),_0x5b2fcc[_0x3c07('0x49')]('ck-revision-history-root-'+_0x4dbe8b['type'],_0xe532fa),this[_0x3c07('0xcd')]==_0x4dbe8b&&_0x5b2fcc['addClass'](_0x3c07('0x23'),_0xe532fa);}}}});}),this[_0x3c07('0x5f')]['conversion'][_0x3c07('0xeb')]('upcast')[_0x3c07('0x8a')]({'view':_0x3c07('0x6b'),'model':_0xfe30f3=>'revision-comment:'+_0xfe30f3,'converterPriority':_0x3c07('0x12')}),this['editor'][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xc7'))['dataToMarker']({'view':_0x3c07('0x28'),'model':_0x64919c=>_0x3c07('0x119')+_0x64919c,'converterPriority':_0x3c07('0x12')}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0x8'))['markerToData']({'model':_0x3c07('0x6e'),'view':_0x3a7dad=>({'name':_0x3c07('0xdd')+_0x3a7dad,'group':_0x3c07('0x6e')}),'converterPriority':_0x3c07('0x12')}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xb1'))[_0x3c07('0x69')]({'model':'revision-suggestion','view':_0x35427f=>{const _0x1490bc=_0x35427f[_0x3c07('0x25')][_0x3c07('0x57')](':')[0x1];return _0x3c07('0x62')!=_0x1490bc&&_0x3c07('0xb2')!=_0x1490bc?null:{'classes':['ck-suggestion-preview-marker',_0x3c07('0xcb')+_0x1490bc]};}}),this['editor'][_0x3c07('0x113')][_0x3c07('0x80')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x3c07('0x5f')],_0x3c07('0x42')),{'priority':_0x3c07('0x6')}),this[_0x3c07('0x5f')]['editing'][_0x3c07('0x80')]['on'](_0x3c07('0x6a'),et(this[_0x3c07('0x5f')],'split'),{'priority':'high'}),this['editor']['editing'][_0x3c07('0x80')]['on'](_0x3c07('0x10d'),(_0x1375b9,_0x29399a,_0x413baf)=>{const _0x5ea349=_0x413baf[_0x3c07('0xd3')]['markerNameToElements'](_0x29399a['markerName']);if(_0x5ea349)for(const _0x8eb99d of _0x5ea349)_0x8eb99d['is']('uiElement')&&(_0x413baf['mapper'][_0x3c07('0x43')](_0x8eb99d,_0x29399a['markerName']),_0x413baf[_0x3c07('0x20')][_0x3c07('0x106')](_0x8eb99d));},{'priority':_0x3c07('0x6')});}[_0x3c07('0xe4')](_0x6c1687){return this[_0x3c07('0x9f')][_0x3c07('0x44')](_0x6c1687);}[_0x3c07('0x67')](_0x14ef42){return this[_0x3c07('0x91')]&&this[_0x3c07('0x91')]['destroy'](),this['_changeView']=new _0x579397(this[_0x3c07('0x5f')][_0x3c07('0x1b')],_0x14ef42),this['_changeView'];}['_initInteractions'](){this['editor'][_0x3c07('0xfa')][_0x3c07('0x10e')][_0x3c07('0xf6')][_0x3c07('0xe0')](_0x3c07('0x48')),this['on'](_0x3c07('0xf0'),(_0x21f91b,_0x4e3a6d,_0x12f0c3,_0x3f83d2)=>{_0x3f83d2&&this['_balloon']['remove'](_0x3f83d2),_0x12f0c3&&(this['_balloon']['add']({'view':_0x12f0c3,'stackId':_0x3c07('0x55'),'position':{'target':()=>{const _0x53ee16=this[_0x3c07('0x5f')][_0x3c07('0x113')],_0xc20699=this['_getChangeFromId'](_0x12f0c3[_0x3c07('0x85')]);let _0xc153b7;if(_0xc20699[_0x3c07('0xf4')][_0x3c07('0x8b')]){const _0x59d2bd=_0x53ee16[_0x3c07('0xa')][_0x3c07('0x2f')](_0xc20699[_0x3c07('0x115')]);_0xc153b7=Array[_0x3c07('0xd1')](_0x59d2bd[_0x3c07('0xd9')]());}else{const _0x91b44=this[_0x3c07('0x5f')]['model'][_0x3c07('0xcc')][_0x3c07('0x44')](_0x3c07('0x79')+_0x12f0c3['changeId']);_0xc153b7=Array[_0x3c07('0xd1')](_0x53ee16[_0x3c07('0xd3')][_0x3c07('0x6c')](_0x91b44[_0x3c07('0x5e')]))[_0x3c07('0x81')](_0xd25bf8=>_0x53ee16['view']['domConverter'][_0x3c07('0xfd')](_0xd25bf8))[_0x3c07('0x81')](_0x23a59d=>Array[_0x3c07('0xd1')](_0x23a59d[_0x3c07('0xd9')]()))[_0x3c07('0xc9')]();}if(!this['_activeViewTarget'])return _0xc153b7[0x0];return _0xc153b7[_0x3c07('0xd5')](_0x35c7dc=>_0x35c7dc['top']-0x3<=this[_0x3c07('0x1c')]['y']&&_0x35c7dc[_0x3c07('0xa8')]+0x3>=this['_activeViewTarget']['y']&&_0x35c7dc[_0x3c07('0xbe')]-0x3<=this[_0x3c07('0x1c')]['x']&&_0x35c7dc['right']+0x3>=this['_activeViewTarget']['x'])||_0xc153b7[0x0];}}}),this[_0x3c07('0x32')][_0x3c07('0xfc')](_0x3c07('0x55')));}),this['on'](_0x3c07('0xa5'),(_0x46ae1a,_0x4cfbc2,_0x125e08,_0x339cf4)=>{this[_0x3c07('0xe8')]=_0x125e08?this['_getViewForChange'](_0x125e08):null,this[_0x3c07('0x5f')]['model'][_0x3c07('0x11b')](()=>{const _0x2f9437=this[_0x3c07('0x5f')][_0x3c07('0x113')];_0x339cf4&&(_0x339cf4['data']['isOnRoot']?_0x2f9437[_0x3c07('0xa')][_0x3c07('0x11b')](_0x1f1f12=>{_0x1f1f12['removeClass'](_0x3c07('0x23'),_0x2f9437[_0x3c07('0xa')]['document'][_0x3c07('0xb4')](_0x339cf4[_0x3c07('0x115')]));}):_0x2f9437[_0x3c07('0x26')](_0x3c07('0x79')+_0x339cf4['id'])),_0x125e08&&(_0x125e08[_0x3c07('0xf4')][_0x3c07('0x8b')]?_0x2f9437[_0x3c07('0xa')][_0x3c07('0x11b')](_0x33a7bc=>{_0x33a7bc[_0x3c07('0x49')](_0x3c07('0x23'),_0x2f9437[_0x3c07('0xa')][_0x3c07('0x10e')][_0x3c07('0xb4')](_0x125e08[_0x3c07('0x115')]));}):_0x2f9437[_0x3c07('0x26')](_0x3c07('0x79')+_0x125e08['id']));});}),this[_0x3c07('0xdb')](this[_0x3c07('0x5f')][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],'mouseover',(_0x566ab1,_0x3c7529)=>{if(this[_0x3c07('0xcd')])return;const _0x35507b=this['_findChangeIdFromDomTarget'](_0x3c7529['target']),_0x1eafcc=this['_changeIdToChange']['get'](_0x35507b);_0x1eafcc?(this[_0x3c07('0x1c')]={'x':_0x3c7529[_0x3c07('0xce')]['x'],'y':_0x3c7529[_0x3c07('0xce')]['y']},this[_0x3c07('0xe8')]=this[_0x3c07('0x67')](_0x1eafcc)):(this[_0x3c07('0x1c')]=null,this[_0x3c07('0xe8')]=null);}),this['listenTo'](this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],_0x3c07('0x4b'),(_0xf001f1,_0x22917a)=>{const _0x142631=this['_findChangeIdFromDomTarget'](_0x22917a[_0x3c07('0x24')]),_0x1f21e7=this[_0x3c07('0x9f')][_0x3c07('0x44')](_0x142631);_0x1f21e7?(this['_activeViewTarget']={'x':_0x22917a[_0x3c07('0xce')]['x'],'y':_0x22917a[_0x3c07('0xce')]['y']},_0x1f21e7===this[_0x3c07('0xcd')]?this[_0x3c07('0x32')][_0x3c07('0xe2')]():this[_0x3c07('0xcd')]=_0x1f21e7):(this[_0x3c07('0x1c')]=null,this['activeChange']=null);});}[_0x3c07('0x7d')](_0x425b85){do{const _0x4ff2da=_0x425b85[_0x3c07('0x1')](_0x3c07('0xb7'));if(_0x4ff2da)return _0x4ff2da;_0x425b85=_0x425b85['parent'];}while(_0x425b85);return null;}['_cleanMarkers'](){this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x11b')](_0x3dd6ed=>{for(const _0x34f9d9 of this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0xcc')])_0x3dd6ed[_0x3c07('0x5c')](_0x34f9d9);});}}function et(_0x3192ab,_0x57ef40){return(_0x5cb173,_0x373b33,_0x3aad7c)=>{if(!_0x3aad7c['consumable']['test'](_0x373b33[_0x3c07('0x100')],_0x5cb173[_0x3c07('0x5e')]))return;const _0x5c194b=_0x373b33[_0x3c07('0x100')][_0x3c07('0xec')](),_0x52dd24=_0x373b33[_0x3c07('0x100')][_0x3c07('0xb6')],_0xc7e930=_0x3192ab[_0x3c07('0xfa')][_0x3c07('0x63')];let _0x16b396=null,_0x214dbd=null,_0x7416f1=!0x1,_0x36aff9=!0x1;for(const _0x59a532 of _0x5c194b){const _0x17f67d=_0x59a532[_0x3c07('0xbd')];_0x7416f1=_0x7416f1||_0xc7e930[_0x3c07('0xf9')](_0x17f67d);const _0x2fb442=_0x3aad7c[_0x3c07('0xd3')][_0x3c07('0xd7')](_0x17f67d);if(_0x2fb442&&_0x2fb442[_0x3c07('0x6d')](_0x3c07('0xc1')))return;_0x3c07('0x3f')==_0x59a532['type']&&(_0xc7e930[_0x3c07('0xda')](_0x17f67d)&&!_0xc7e930[_0x3c07('0x108')](_0x17f67d)&&(_0x17f67d[_0x3c07('0x82')]||_0x52dd24[_0x3c07('0xde')]?_0x16b396&&_0x16b396['parent']==_0x17f67d||(_0x16b396=_0x17f67d,_0x181856(_0x59a532['previousPosition']),_0x36aff9=!0x0):_0x214dbd=_0x214dbd||_0x59a532['previousPosition']));}function _0x181856(_0x37ee6d){const _0x5c613e=_0x3aad7c[_0x3c07('0xd3')][_0x3c07('0xf2')](_0x37ee6d),_0x29c86e=_0x3aad7c[_0x3c07('0x20')][_0x3c07('0x4c')](_0x3c07('0x90'),{'class':'ck-suggestion-preview-marker-'+_0x57ef40});_0x3aad7c[_0x3c07('0x20')][_0x3c07('0x60')](_0x5c613e,_0x29c86e),_0x3aad7c[_0x3c07('0xd3')][_0x3c07('0x13')](_0x29c86e,_0x373b33['markerName']);}_0x7416f1||_0x36aff9||!_0x214dbd||_0x181856(_0x214dbd);};}export class RestoreRevisionCommand extends _0x14fe97{constructor(_0xcebc49){super(_0xcebc49);const _0x1ce8dc=_0xcebc49[_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xa0')]=!0x1,this[_0x3c07('0xdb')](_0x1ce8dc,'change:isReady',()=>this[_0x3c07('0xe6')]()),this[_0x3c07('0xdb')](_0x1ce8dc,_0x3c07('0xc6'),()=>this[_0x3c07('0xe6')]());}[_0x3c07('0x3')](){const _0x545486=this['editor'],_0x22f3b4=_0x545486[_0x3c07('0x118')][_0x3c07('0x44')](d),_0x324378=_0x22f3b4[_0x3c07('0x117')]?_0x22f3b4[_0x3c07('0xa4')][_0x3c07('0x3c')]:null;_0x545486['config']['get']('revisionHistory')[_0x3c07('0x21')](_0x324378);}[_0x3c07('0xe6')](){const {isReady:_0x42f844,isEnabled:_0x22ec23}=this[_0x3c07('0x5f')][_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xe3')]=_0x42f844&&_0x22ec23;}}export class ShowChangeCommand extends _0x14fe97{constructor(_0x5dd157,{direction:_0x2c9832}){super(_0x5dd157);const _0x4a7e95=_0x5dd157[_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xa0')]=!0x1,this[_0x3c07('0xc3')]=_0x3c07('0x84')===_0x2c9832?0x1:-0x1,this['listenTo'](_0x4a7e95,'change:isReady',()=>this[_0x3c07('0xe6')]()),this['listenTo'](_0x4a7e95,_0x3c07('0xc6'),()=>this[_0x3c07('0xe6')]()),this[_0x3c07('0xdb')](_0x4a7e95,_0x3c07('0xa5'),()=>this[_0x3c07('0xe6')]());}[_0x3c07('0x3')](){const _0x27e4ff=this[_0x3c07('0x5f')],_0x399efc=_0x27e4ff[_0x3c07('0x118')]['get'](d),{isNavigationMode:_0x23ed23,currentChangeNumber:_0x1928a6}=_0x399efc;let _0x21375c;if(_0x399efc[_0x3c07('0xcd')]=_0x23ed23?_0x399efc[_0x3c07('0xa4')][_0x3c07('0xbb')][_0x3c07('0x44')](_0x1928a6+this[_0x3c07('0xc3')]):_0x399efc[_0x3c07('0xa4')][_0x3c07('0xbb')][_0x3c07('0x107')],_0x399efc[_0x3c07('0xcd')][_0x3c07('0xf4')][_0x3c07('0x8b')])_0x21375c=_0x27e4ff['editing'][_0x3c07('0xa')][_0x3c07('0x2f')](_0x399efc['activeChange'][_0x3c07('0x115')]);else{const _0x3c0967=_0x27e4ff['model']['markers'][_0x3c07('0x44')]('revision:'+_0x399efc[_0x3c07('0xcd')]['id']);_0x21375c=_0x37dcec(_0x27e4ff[_0x3c07('0x113')],_0x3c0967);}_0x113633({'target':_0x21375c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19c0fd,currentChangeNumber:_0x512375,numberOfChanges:_0x5ae67d,isReady:_0x4cb098,isEnabled:_0x366d55}=this['editor'][_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xe3')]=!!(_0x366d55&&_0x4cb098&&_0x5ae67d)&&(!_0x19c0fd||(0x1===this[_0x3c07('0xc3')]?_0x512375<_0x5ae67d-0x1:_0x512375>0x0));}}
23
+ const _0xff88=['document','pairId','getDomRoot','toViewRange','_getDiff','isIncorrect','softBreak','delete','ck-revision-history-root-remove','_appendChild','RevisionViewer','index','getRevision','unshift','nextPosition','oldRevisionId','change:isReady','execute','_sortAndFilterDiffChanges','consume','splice','change','ck-suggestion-marker-split','revision:','showPreviousChange','addClass','done','dataDowncast','data','name','updatePosition','_setDistance','currentChangeNumber','has','editing','resolve','restoreRevisionCallback','_initInteractions','revision-suggestion:','_changeIdToChange','revision-viewer','change:activeChange','element','domEvent','isEnabled','RevisionsRepository','high','createRevision','isReady','_threeWayMerge','repository','ck-revision-history-root-','sort','clear','insert','_update','_setConversion','editor','_getChangeFromId','add','text','merge','isAtStart','addMarker:revision-suggestion:insertion','string','slice','range','restoreRevision','bindElementToMarker','span','filter','keys','isObject','_step','deletion','markerToHighlight','all','diff','_cleanUp','processor','removeClass','map','push','get','removeMarker','element:pre','error','insertion','deletions','length','suggestion','createPositionFromPath','maxOffset','view','ck-revision-history-root--active','addMarker:revision-suggestion:deletion','markerRange','type','_joinTapes','elementStart','mapViewToDom','userId','removeMarker:revision-suggestion','ck-suggestion-marker','_getViewObj','data-revision-','_markSuggestions','diffData','isAfter','vid','addRoot','ck-suggestion-marker-','return','revision-suggestion','mouseover','elementToAttribute','revision-start','target','from','_makeTape','compare','_removeRevisionMarkers','createRange','elementEnd','isAddSuggestion','_makeModelFromTape','numberOfChanges','nextSibling','getCustomProperty','highest','_findChangeIdFromDomTarget','isAtEnd','attributes','change:isEnabled','split','viewItem','isAttached','createPositionBefore','remove','stop','revisionHistoryAttachChange','isAdded','pluginName','getAttribute','affectsData','_getRevisionsRange','getIndex','toViewPosition','isRemoveSuggestion','isContent','editingDowncast','domConverter','forEach','unbindElementFromMarkerName','selection','getWalker','markerNameToElements','_markInsertions','abs','test','_removeUnsupportedChanges','_data','markerName','children','enableReadOnlyMode','distance','startIndex','revisionHistory','isRemoved','model','marked','level','refresh','createRangeIn','writer','modelRange','newRevisionId','-new','indexOf','comment','markersStart','low','parse','getRootNames','left','setAttribute','backward','values','_cleanMarkers','side','getRevisionRootsAttributes','bind','attachChange','isLimit','markerToData','isOnRoot','ck-suggestion-preview-marker','concat','first','start','ck-revision-history-root-add','toViewElement','detachRoot','attribute:vid','checkAttribute','collaboration.channelId','changeId','insertions','markersEnd','config','_refreshStartEndIndex','then','startsWith','for','revisionHistoryLabel','_makeModelFromViewString','isBefore','downcastDispatcher','listenTo','catch','_activeViewTarget','_fixObsoleteTags','isSuggestion','attributesAfter','getRoot','activeView','dataToMarker','_markMismatchedRemovedTags','destroy','changes','createUIElement','bottom','schema','offsetSize','useFillerType','removeAttribute','shift','right','ck-suggestion-preview-marker-','isEqual','rootName','next','set','object','top','plugins','endIndex','addHighlight','default','enqueueChange','ck-suggestion-marker--active','_setChanges','_balloon','getClientRects','getAttributes','toData','hasAttribute','data-change-id','item','revision-end','consumable','activeChange','end','_changeView','addMarker:revision','init','vid_end','nodeAfter','toModel','previousPosition','change:numberOfChanges','revision-comment:','_getViewForChange','revision','mapper','isCollapsed','isBlock','_processTape','parent','reconvertMarker','findIndex','mousedown','markers','isNavigationMode','loadRevisionData','commands','includes','ck-editor__editable__overlay','conversion','vid_start','upcast','locale','authors','forward'];(function(_0x450be2,_0xff88d){const _0xa5eff5=function(_0x5975e4){while(--_0x5975e4){_0x450be2['push'](_0x450be2['shift']());}};_0xa5eff5(++_0xff88d);}(_0xff88,0x186));const _0xa5ef=function(_0x450be2,_0xff88d){_0x450be2=_0x450be2-0x0;let _0xa5eff5=_0xff88[_0x450be2];return _0xa5eff5;};import{Plugin as _0x4ac027,Command as _0x1efc56}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x517c42}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1ab662}from'ckeditor5/src/ui';import{DocumentFragment as _0x54eb33,Element as _0x3187a1,Text as _0x2270ca,ViewDocumentFragment as _0x18bd65,ViewText as _0x59a78f,ViewElement as _0x3e3416,ViewContainerElement as _0x51c26c,ViewAttributeElement as _0x498e02,ViewEmptyElement as _0x3fa1d7,ViewRawElement as _0x319a52,ViewUIElement as _0x36f70a}from'ckeditor5/src/engine';import{Users as _0x453499,getMarkerDomElement as _0x58ebb7}from'ckeditor5-collaboration/src/collaboration-core';import _0x215061 from'./ui/revisionviewer/changedetailsview';import _0x5cf601 from'./revisionsrepository';import _0x2586a9 from'./changeitem';import{default as _0x1f98a2}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x954906}from'lodash-es';const tt={'c':_0x51c26c,'a':_0x498e02,'e':_0x3fa1d7,'r':_0x319a52,'u':_0x36f70a};export default class d extends _0x4ac027{static get[_0xa5ef('0x2e')](){return _0xa5ef('0xd0');}static get['requires'](){return[_0x453499,_0x1ab662,_0x5cf601];}constructor(_0x127438){super(_0x127438),this[_0xa5ef('0xf8')]=this[_0xa5ef('0xff')][_0xa5ef('0x95')]['get'](_0xa5ef('0xf3')),this['set']('activeChange',null),this[_0xa5ef('0x92')](_0xa5ef('0x81'),null),this[_0xa5ef('0x7c')]=null,this[_0xa5ef('0x92')]('diff',null),this[_0xa5ef('0x92')](_0xa5ef('0xf6'),!0x1),this['set'](_0xa5ef('0xf2'),!0x0),this['on'](_0xa5ef('0x25'),(_0x304a49,_0x198a43,_0x5c2b94)=>{this[_0xa5ef('0xa5')]=null,this[_0xa5ef('0x81')]=null,this[_0xa5ef('0xff')][_0xa5ef('0xe8')][_0xa5ef('0x123')][_0xa5ef('0xdb')](_0x1cde05=>{for(const _0x2a297d of this[_0xa5ef('0xff')][_0xa5ef('0xe8')][_0xa5ef('0x123')][_0xa5ef('0xc6')]['roots'])_0x5c2b94?_0x1cde05[_0xa5ef('0x116')](_0xa5ef('0xbf'),_0x2a297d):_0x1cde05[_0xa5ef('0xdf')](_0xa5ef('0xbf'),_0x2a297d);});}),this[_0xa5ef('0x5f')](_0xa5ef('0xbb'))['to'](this,_0xa5ef('0xa5'),_0x2de4eb=>null!==_0x2de4eb),this[_0xa5ef('0x5f')](_0xa5ef('0xe6'))['to'](this,_0xa5ef('0xf6'),this,'diff',this,_0xa5ef('0xa5'),(_0x363a84,_0x392e0a,_0x2eab0c)=>_0x363a84&&_0x2eab0c?_0x392e0a[_0xa5ef('0x85')][_0xa5ef('0x32')](_0x2eab0c):0x0),this[_0xa5ef('0x5f')](_0xa5ef('0x1e'))['to'](this,_0xa5ef('0xf6'),this,_0xa5ef('0x113'),(_0x1619f7,_0x216e14)=>_0x1619f7?_0x216e14[_0xa5ef('0x85')][_0xa5ef('0x11f')]:0x0),this[_0xa5ef('0xa7')]=null,this[_0xa5ef('0xed')]=new Map(),this['adapter']=null,this[_0xa5ef('0x9c')]=this[_0xa5ef('0xff')][_0xa5ef('0x95')]['get'](_0x1ab662);}[_0xa5ef('0xa9')](){const _0x173c3b=this[_0xa5ef('0xff')],_0x3fdf1f=new ShowChangeCommand(_0x173c3b,{'direction':_0xa5ef('0x5a')}),_0x2c86f4=new ShowChangeCommand(_0x173c3b,{'direction':'forward'});(_0x173c3b['commands'][_0xa5ef('0x101')](_0xa5ef('0xde'),_0x3fdf1f),_0x173c3b[_0xa5ef('0xbd')][_0xa5ef('0x101')]('showNextChange',_0x2c86f4),_0x173c3b[_0xa5ef('0xbd')][_0xa5ef('0x101')](_0xa5ef('0x109'),new RestoreRevisionCommand(_0x173c3b)),this['on'](_0xa5ef('0xae'),()=>{_0x3fdf1f[_0xa5ef('0x4c')](),_0x2c86f4[_0xa5ef('0x4c')]();}),this[_0xa5ef('0xfe')](),this['_initInteractions'](),_0x173c3b[_0xa5ef('0x44')](_0xa5ef('0xee')),_0x173c3b['plugins'][_0xa5ef('0xe7')]('WidgetToolbarRepository'))&&_0x173c3b[_0xa5ef('0x95')][_0xa5ef('0x119')]('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xccefcd){await this['loadRevisionData'](_0xccefcd);const _0x2d711e={};for(const _0x51bdd4 in _0xccefcd['diffData']){if(_0xccefcd[_0xa5ef('0xb')][_0x51bdd4][_0xa5ef('0x60')]&&!_0xccefcd[_0xa5ef('0xb')][_0x51bdd4][_0xa5ef('0x60')][_0xa5ef('0x28')])continue;const _0x230f37=this[_0xa5ef('0x19')](JSON['parse'](_0xccefcd[_0xa5ef('0xb')][_0x51bdd4]['insertions'])),_0x59a345=this['editor'][_0xa5ef('0xe8')][_0xa5ef('0x123')][_0xa5ef('0xc6')],_0x4e83eb=new _0x18bd65(_0x59a345,_0x230f37[_0xa5ef('0x117')](_0x2ae0df=>this[_0xa5ef('0x8')](_0x2ae0df)));this[_0xa5ef('0xff')][_0xa5ef('0xe2')]['processor']['useFillerType'](_0xa5ef('0x4a')),_0x2d711e[_0x51bdd4]=this[_0xa5ef('0xff')][_0xa5ef('0xe2')][_0xa5ef('0x115')][_0xa5ef('0x9f')](_0x4e83eb),this[_0xa5ef('0xff')]['data'][_0xa5ef('0x115')][_0xa5ef('0x8a')](_0xa5ef('0x98'));}return _0x2d711e;}async[_0xa5ef('0x5e')](_0x3284ab){await this[_0xa5ef('0xbc')](_0x3284ab);const _0x245f41={};for(const _0xaaf3dc in _0x3284ab['diffData'])_0x3284ab['diffData'][_0xaaf3dc][_0xa5ef('0x60')]&&!_0x3284ab[_0xa5ef('0xb')][_0xaaf3dc]['attachChange'][_0xa5ef('0x28')]||(_0x245f41[_0xaaf3dc]=_0x3284ab['diffData'][_0xaaf3dc][_0xa5ef('0x7f')]||{});return _0x245f41;}[_0xa5ef('0x19')](_0x552abb){return(_0x552abb=_0x552abb[_0xa5ef('0x10c')](_0x29c173=>!_0x29c173[_0xa5ef('0xe3')]||_0xa5ef('0x14')!==_0x29c173[_0xa5ef('0xe3')]&&_0xa5ef('0xa3')!==_0x29c173['name']))[_0xa5ef('0x38')](_0x3a1774=>{_0xa5ef('0x106')!=typeof _0x3a1774&&(_0x3a1774[_0xa5ef('0x43')]=this['_removeRevisionMarkers'](_0x3a1774[_0xa5ef('0x43')]),_0x3a1774[_0xa5ef('0x24')]=_0x3a1774[_0xa5ef('0x24')][_0xa5ef('0x10c')](_0x5e2abb=>!_0x5e2abb[0x0][_0xa5ef('0x74')](_0xa5ef('0x9'))));}),_0x552abb;}async[_0xa5ef('0x18')](_0x58f9ff,_0x5cdab2,_0x5da53c=!0x1){if(!this[_0xa5ef('0xf2')])return;const _0x325474=this['diff'],_0x5840ae=this['repository'],_0x34380f=_0xa5ef('0x106')==typeof _0x58f9ff?_0x5840ae[_0xa5ef('0xd2')](_0x58f9ff):_0x58f9ff,_0x5c49b8=_0xa5ef('0x106')==typeof _0x5cdab2?_0x5840ae[_0xa5ef('0xd2')](_0x5cdab2):_0x5cdab2,_0x32018a=_0x34380f['id'],_0x2e772d=_0x5c49b8?_0x5c49b8['id']:null;if(!_0x5da53c&&this['diff']&&this[_0xa5ef('0x113')]['newRevisionId']===_0x32018a&&this['diff'][_0xa5ef('0xd5')]===_0x2e772d)return Promise['resolve']();this[_0xa5ef('0xf6')]=!0x1,this[_0xa5ef('0x81')]=null,this[_0xa5ef('0xa5')]=null,this[_0xa5ef('0x113')]=new _0x1f98a2(_0x32018a,_0x2e772d);const _0x1d6449=this[_0xa5ef('0x31')](_0x34380f,_0x5c49b8,!0x0)[_0xa5ef('0x117')](_0x4eb6a6=>this['loadRevisionData'](_0x4eb6a6));return _0x1d6449[_0xa5ef('0x118')](new Promise(_0x419023=>{setTimeout(_0x419023,0x14);})),Promise[_0xa5ef('0x112')](_0x1d6449)[_0xa5ef('0x73')](()=>{if(!this['isEnabled'])return;this[_0xa5ef('0x114')]();const _0xf90cf0=this['_getDiff'](_0x32018a,_0x2e772d);for(const _0x7aa68d of _0xf90cf0[_0xa5ef('0x85')])this[_0xa5ef('0xed')][_0xa5ef('0x92')](_0x7aa68d['id'],_0x7aa68d);this[_0xa5ef('0xff')][_0xa5ef('0x49')][_0xa5ef('0x99')]({'isUndoable':!0x1},_0xdec655=>{for(const _0x38b830 of this[_0xa5ef('0xff')][_0xa5ef('0x49')][_0xa5ef('0xc6')]['getRootNames']())_0xdec655[_0xa5ef('0x6a')](_0x38b830);for(const _0x1357a0 of Object[_0xa5ef('0x10d')](_0xf90cf0[_0xa5ef('0x49')])){const _0x7bad6=_0xdec655[_0xa5ef('0xe')](_0x1357a0);for(const _0x485624 of Object[_0xa5ef('0x10d')](_0xf90cf0[_0xa5ef('0x24')][_0x1357a0]))_0xdec655[_0xa5ef('0x59')](_0x485624,_0xf90cf0[_0xa5ef('0x24')][_0x1357a0][_0x485624],_0x7bad6);_0xdec655['insert'](_0xf90cf0[_0xa5ef('0x49')][_0x1357a0],_0x7bad6,0x0);}}),this[_0xa5ef('0x113')][_0xa5ef('0x9b')](this[_0xa5ef('0xd8')](_0xf90cf0[_0xa5ef('0x85')])),this['isReady']=!0x0;})[_0xa5ef('0x7b')](_0x498cc2=>{console[_0xa5ef('0x11c')](_0x498cc2),this[_0xa5ef('0x114')](),_0x325474&&(this['diff']=_0x325474),this[_0xa5ef('0xf6')]=!0x0;});}['addRevisionData'](_0x16b80c,_0x37d359){const _0x48ba53=this[_0xa5ef('0xf8')][_0xa5ef('0xf5')](_0x16b80c);return _0x48ba53['on'](_0xa5ef('0xfd'),(_0x44d10e,_0x3c0a94,_0x308518)=>_0x37d359(_0x3c0a94,_0x308518,_0x48ba53)),this[_0xa5ef('0xf8')]['addRevision'](_0x48ba53),_0x48ba53;}[_0xa5ef('0xbc')](_0x2d6aaa){if(!_0x2d6aaa||_0x2d6aaa[_0xa5ef('0xb')])return Promise[_0xa5ef('0xe9')]();{const _0x45b1e9=this[_0xa5ef('0xff')][_0xa5ef('0x71')]['get'](_0xa5ef('0x6d'));return this['adapter']['getRevision']({'channelId':_0x45b1e9,'revisionId':_0x2d6aaa['id']})['then'](_0x57fc63=>{_0x2d6aaa[_0xa5ef('0xfd')]({'diffData':_0x57fc63[_0xa5ef('0xb')]},!0x0);});}}[_0xa5ef('0x114')](){this['activeChange']=null,this[_0xa5ef('0x5c')](),this[_0xa5ef('0xa7')]&&this[_0xa5ef('0xa7')][_0xa5ef('0x84')](),this['_changeView']=null,this['_changeIdToChange'][_0xa5ef('0xfb')](),this['editor'][_0xa5ef('0x49')][_0xa5ef('0x99')]({'isUndoable':!0x1},_0x235979=>{for(const _0x4f7573 of this[_0xa5ef('0xff')][_0xa5ef('0x49')]['document'][_0xa5ef('0x57')]())_0x235979['detachRoot'](_0x4f7573);});}['_sortAndFilterDiffChanges'](_0xadbad3){const _0x4b303b=[],_0x45f5c9=new Map();for(const _0x2eebbf of this['editor'][_0xa5ef('0x49')]['document'][_0xa5ef('0x57')]()){const _0x5caf42=this[_0xa5ef('0xff')]['editing'][_0xa5ef('0x123')][_0xa5ef('0xc8')](_0x2eebbf);if(!_0x5caf42)continue;const _0x260f1d=_0x5caf42[_0xa5ef('0x9d')]()[_0xa5ef('0xa2')](0x0);_0x260f1d&&(_0x4b303b['push'](_0x2eebbf),_0x45f5c9['set'](_0x2eebbf,_0x260f1d));}return _0x4b303b[_0xa5ef('0xfa')]((_0x500ac8,_0x76028)=>{const _0x2c52dd=_0x45f5c9[_0xa5ef('0x119')](_0x500ac8),_0x31025c=_0x45f5c9[_0xa5ef('0x119')](_0x76028);return _0x2c52dd['y']-_0x31025c['y']||_0x2c52dd['x']-_0x31025c['x'];}),(_0xadbad3=_0xadbad3[_0xa5ef('0x10c')](_0x4743ca=>_0x4b303b[_0xa5ef('0xbe')](_0x4743ca[_0xa5ef('0x90')])))[_0xa5ef('0xfa')]((_0x2422ea,_0xed8a8f)=>_0x4b303b[_0xa5ef('0x52')](_0x2422ea['rootName'])-_0x4b303b[_0xa5ef('0x52')](_0xed8a8f[_0xa5ef('0x90')])),_0xadbad3;}['_makeTape'](_0x2c3423){const _0x44f9c8=Array[_0xa5ef('0x16')](_0x2c3423[_0xa5ef('0xba')])[_0xa5ef('0x10c')](([_0x41c39c,_0x41be2f])=>_0x41c39c[_0xa5ef('0x74')]('revision:')&&!_0x41be2f[_0xa5ef('0xb3')]),_0x32bfa2=Array[_0xa5ef('0x16')](this[_0xa5ef('0xff')][_0xa5ef('0x49')][_0xa5ef('0x4d')](_0x2c3423)[_0xa5ef('0x3b')]({'singleCharacters':!0x0}));if(0x0!=_0x44f9c8['length'])for(const _0x4f3831 of _0x32bfa2){const [_0x5ec768,_0x49cbfa]=_0x44f9c8[0x0],[,_0x41a938,_0x5cbe9c]=_0x5ec768['split'](':');if(_0x49cbfa[_0xa5ef('0xa6')][_0xa5ef('0x8f')](_0x4f3831[_0xa5ef('0xd4')])&&_0x44f9c8[_0xa5ef('0x8c')](),(_0x4f3831['previousPosition'][_0xa5ef('0x8f')](_0x49cbfa[_0xa5ef('0x67')])||_0x4f3831['previousPosition'][_0xa5ef('0xc')](_0x49cbfa['start']))&&(_0xa5ef('0x11d')==_0x41a938?_0x4f3831[_0xa5ef('0x2d')]={'userId':_0x5cbe9c}:_0xa5ef('0x110')==_0x41a938&&(_0x4f3831[_0xa5ef('0x48')]={'userId':_0x5cbe9c})),0x0==_0x44f9c8['length'])break;}return _0x32bfa2;}[_0xa5ef('0x72')](_0xded5ef){const _0x51cae9=new Map();for(let _0x53f015=0x0;_0x53f015<_0xded5ef[_0xa5ef('0x11f')];_0x53f015++)_0xa5ef('0x102')===_0xded5ef[_0x53f015][_0xa5ef('0x1')]?(_0xded5ef[_0x53f015][_0xa5ef('0xa2')]['startIndex']=_0x53f015,_0xded5ef[_0x53f015][_0xa5ef('0xa2')][_0xa5ef('0x96')]=_0x53f015):(_0xa5ef('0x3')===_0xded5ef[_0x53f015][_0xa5ef('0x1')]?_0xded5ef[_0x53f015][_0xa5ef('0xa2')][_0xa5ef('0x46')]=_0x53f015:'elementEnd'===_0xded5ef[_0x53f015]['type']&&(_0xded5ef[_0x53f015][_0xa5ef('0xa2')][_0xa5ef('0x96')]=_0x53f015),_0x51cae9['set'](_0xded5ef[_0x53f015]['id'],_0x53f015));for(const _0x47c8ae of _0x51cae9[_0xa5ef('0x5b')]())'elementStart'===_0xded5ef[_0x47c8ae][_0xa5ef('0x1')]?_0xded5ef[_0x47c8ae][_0xa5ef('0xa2')][_0xa5ef('0x96')]=_0x51cae9['get'](_0xded5ef[_0x47c8ae][_0xa5ef('0xc7')]):_0xa5ef('0x1b')===_0xded5ef[_0x47c8ae][_0xa5ef('0x1')]&&(_0xded5ef[_0x47c8ae][_0xa5ef('0xa2')][_0xa5ef('0x46')]=_0x51cae9[_0xa5ef('0x119')](_0xded5ef[_0x47c8ae][_0xa5ef('0xc7')]));}[_0xa5ef('0xb5')](_0x20c797){for(let _0x38784c=0x0;_0x38784c<_0x20c797[_0xa5ef('0x11f')];_0x38784c++){if(_0xa5ef('0x3')===_0x20c797[_0x38784c][_0xa5ef('0x1')])_0x20c797[_0x38784c]['item'][_0xa5ef('0x46')]=_0x38784c;else{if('elementEnd'===_0x20c797[_0x38784c]['type']){_0x20c797[_0x38784c][_0xa5ef('0xa2')][_0xa5ef('0x96')]=_0x38784c;const _0x4a7052=_0x20c797[_0x38784c]['item'][_0xa5ef('0x46')];_0x20c797[_0x4a7052][_0xa5ef('0xc7')]=_0x20c797[_0x38784c]['id'],_0x20c797[_0x38784c][_0xa5ef('0xc7')]=_0x20c797[_0x4a7052]['id'];}else _0x20c797[_0x38784c][_0xa5ef('0xa2')][_0xa5ef('0x46')]=_0x38784c,_0x20c797[_0x38784c]['item']['endIndex']=_0x38784c,_0x20c797[_0x38784c][_0xa5ef('0xc7')]=null;}_0x20c797[_0x38784c][_0xa5ef('0x54')]||(_0x20c797[_0x38784c][_0xa5ef('0x54')]=[],_0x20c797[_0x38784c]['markersEnd']=[]);}}['_markInsertions'](_0x21a4e1,_0x47199e){const _0x1f34dd=_0x21a4e1[_0xa5ef('0x10c')](_0x3bf7df=>!_0x3bf7df[_0xa5ef('0x2d')]);for(let _0x5c188b=0x0;_0x5c188b<_0x47199e[_0xa5ef('0x11f')];_0x5c188b++)_0x47199e[_0x5c188b][_0xa5ef('0x2d')]&&(_0x1f34dd[_0x5c188b][_0xa5ef('0x2d')]=_0x47199e[_0x5c188b][_0xa5ef('0x2d')]);}[_0xa5ef('0x77')](_0x59efd2){const _0x4ca3ab=JSON[_0xa5ef('0x56')](_0x59efd2),_0x520df6=this[_0xa5ef('0xff')][_0xa5ef('0xe8')][_0xa5ef('0x123')][_0xa5ef('0xc6')],_0x51da0d=new _0x18bd65(_0x520df6,_0x4ca3ab[_0xa5ef('0x117')](_0x3185e8=>this['_getViewObj'](_0x3185e8)));return this[_0xa5ef('0xff')][_0xa5ef('0xe2')][_0xa5ef('0xac')](_0x51da0d);}[_0xa5ef('0x8')](_0x207964){const _0x5d6b3e=this[_0xa5ef('0xff')][_0xa5ef('0xe8')][_0xa5ef('0x123')][_0xa5ef('0xc6')];if(_0xa5ef('0x106')==typeof _0x207964)return new _0x59a78f(_0x5d6b3e,_0x207964);{const _0x411c9d=_0x207964[_0xa5ef('0x43')][_0xa5ef('0x117')](_0x553b4b=>this[_0xa5ef('0x8')](_0x553b4b));return new(tt[_0x207964[(_0xa5ef('0x1'))]]||_0x3e3416)(_0x5d6b3e,_0x207964[_0xa5ef('0xe3')],_0x207964[_0xa5ef('0x24')],_0x411c9d);}}[_0xa5ef('0xca')](_0x373fb3,_0x285878=null){const _0x2d3295=this['repository'][_0xa5ef('0xd2')](_0x373fb3),_0x5bad74=_0x285878?this['repository'][_0xa5ef('0xd2')](_0x285878):null,_0x4af386=this[_0xa5ef('0x31')](_0x2d3295,_0x5bad74),_0x29e169=_0x4af386[_0x4af386['length']-0x1],_0x153b4a=new Map(),_0x20115a={'model':{},'attributes':{},'changes':[]},_0x498ea0=new Set(),_0xf9765d=new Map();for(let _0x245f50=_0x4af386[_0xa5ef('0x11f')]-0x1;_0x245f50>=0x0;_0x245f50--){const _0x24db3c=_0x4af386[_0x245f50];for(const _0x28c2b2 of Object[_0xa5ef('0x10d')](_0x24db3c[_0xa5ef('0xb')]))if(_0x24db3c[_0xa5ef('0xb')][_0x28c2b2][_0xa5ef('0x60')]){const _0x60e6b0=_0x24db3c[_0xa5ef('0xb')][_0x28c2b2][_0xa5ef('0x60')];_0x60e6b0[_0xa5ef('0x28')]?(_0x498ea0[_0xa5ef('0x101')](_0x28c2b2),_0xf9765d[_0xa5ef('0xe7')](_0x28c2b2)&&_0xf9765d[_0xa5ef('0x119')](_0x28c2b2)['userId']==_0x60e6b0[_0xa5ef('0x5')]?_0xf9765d['delete'](_0x28c2b2):_0xf9765d['set'](_0x28c2b2,_0x60e6b0)):_0xf9765d[_0xa5ef('0xe7')](_0x28c2b2)?(_0x498ea0[_0xa5ef('0xcd')](_0x28c2b2),_0xf9765d[_0xa5ef('0xcd')](_0x28c2b2)):(_0x498ea0['add'](_0x28c2b2),_0xf9765d[_0xa5ef('0x92')](_0x28c2b2,_0x60e6b0));}else _0x498ea0[_0xa5ef('0x101')](_0x28c2b2);}for(const _0xbb1e54 of _0x498ea0){const _0x49c20a=_0xf9765d['has'](_0xbb1e54)&&!_0xf9765d[_0xa5ef('0x119')](_0xbb1e54)[_0xa5ef('0x28')];let _0xc2387c=_0x49c20a?_0x4af386[_0xa5ef('0x11f')]-0x1:0x0;const _0x5cf3b8=_0x49c20a?-0x1:0x1;for(;_0x4af386[_0xc2387c];){const _0x1cb7f7=_0x4af386[_0xc2387c];if(_0x1cb7f7[_0xa5ef('0xb')][_0xbb1e54]){const _0x132662=_0x49c20a?_0x1cb7f7[_0xa5ef('0xb')][_0xbb1e54]['attributesBefore']:_0x1cb7f7[_0xa5ef('0xb')][_0xbb1e54][_0xa5ef('0x7f')];_0x20115a[_0xa5ef('0x24')][_0xbb1e54]=_0x132662?_0x954906(_0x132662):{};break;}_0xc2387c+=_0x5cf3b8;}}for(const _0x50c799 of _0x4af386){_0x50c799[_0xa5ef('0x49')]={};for(const _0x5146f6 of _0x50c799[_0xa5ef('0xc4')])_0x153b4a['set'](_0x5146f6['id'],_0x5146f6);for(const _0x456305 of _0x498ea0){const _0xdc371b=_0x50c799[_0xa5ef('0xb')][_0x456305]?_0x50c799[_0xa5ef('0xb')][_0x456305]['insertions']:'[]',_0x44a2e2=_0x50c799[_0xa5ef('0xb')][_0x456305]?_0x50c799[_0xa5ef('0xb')][_0x456305]['deletions']:'[]';_0x50c799['model'][_0x456305]={'insertions':this[_0xa5ef('0x77')](_0xdc371b),'deletions':this[_0xa5ef('0x77')](_0x44a2e2)};}}for(const _0x3a51e7 of _0x498ea0){let _0x322afb=null,_0x2c6998=0x0;const _0x462b98=new Map(Array[_0xa5ef('0x16')](_0x2d3295[_0xa5ef('0x49')][_0x3a51e7][_0xa5ef('0x6f')][_0xa5ef('0xba')])[_0xa5ef('0x10c')](([_0x5e4034])=>!_0x5e4034[_0xa5ef('0x74')](_0xa5ef('0xdd'))));let _0x3421f3=0x0;for(const _0x6ab721 of _0x4af386){const _0x18ff20=this[_0xa5ef('0x17')](_0x6ab721[_0xa5ef('0x49')][_0x3a51e7][_0xa5ef('0x6f')]);_0x6ab721==_0x2d3295?(_0x322afb=_0x18ff20,_0x2c6998=_0x322afb['length'],_0x322afb[_0xa5ef('0x38')](_0x166953=>{_0x166953['id']=_0x3421f3++;}),this['_processTape'](_0x322afb)):this[_0xa5ef('0x3d')](_0x322afb,_0x18ff20);const _0xd92acb=_0x322afb[_0xa5ef('0x10c')](_0x53e355=>!_0x53e355[_0xa5ef('0x2d')])[_0xa5ef('0x117')](_0x932541=>_0x932541['id']);let _0x20e520=0x0;const _0x33787e=this[_0xa5ef('0x17')](_0x6ab721[_0xa5ef('0x49')][_0x3a51e7][_0xa5ef('0x11e')]);_0x33787e[_0xa5ef('0x38')](_0x131403=>{_0x131403[_0xa5ef('0x48')]?_0x131403['id']=_0x2c6998++:_0x131403['id']=_0xd92acb[_0x20e520++];}),this[_0xa5ef('0xb5')](_0x33787e),this['_setDistance'](_0x322afb,_0xa5ef('0x2d')),this[_0xa5ef('0xe5')](_0x33787e,_0xa5ef('0x48')),_0x6ab721==_0x2d3295&&this['_markMarkers'](_0x322afb,_0x462b98),_0x322afb=this[_0xa5ef('0x2')](_0x322afb,_0x33787e),this[_0xa5ef('0x72')](_0x322afb),this[_0xa5ef('0xe5')](_0x322afb,_0xa5ef('0x48'));}_0x322afb=_0x322afb[_0xa5ef('0x10c')](_0x2cce27=>!(_0x2cce27[_0xa5ef('0x2d')]&&_0x2cce27[_0xa5ef('0x48')]));const _0x3c2155=new Map(_0x29e169[_0xa5ef('0x49')][_0x3a51e7][_0xa5ef('0x11e')][_0xa5ef('0xba')]),_0x3df715=new Set(_0x462b98[_0xa5ef('0x10d')]());for(const _0x274ff4 of _0x3c2155[_0xa5ef('0x10d')]())_0x3df715['delete'](_0x274ff4);this[_0xa5ef('0xa')](_0x322afb,_0x3df715),this[_0xa5ef('0x7d')](_0x322afb),_0x322afb=this['_removeMissingPairs'](_0x322afb),_0x322afb=this[_0xa5ef('0x83')](_0x322afb),_0x322afb=this['_removeUnsupportedChanges'](_0x322afb);const {root:_0x211cc5,changes:_0x43db5a}=this['_makeModelFromTape'](_0x322afb,_0x153b4a,_0x3a51e7);_0x20115a[_0xa5ef('0x49')][_0x3a51e7]=_0x211cc5;const _0x372e87=_0xf9765d[_0xa5ef('0x119')](_0x3a51e7);if(_0x372e87){const _0x3e0252=_0x153b4a[_0xa5ef('0x119')](_0x372e87['userId']),_0x49ff03=new _0x2586a9({'author':_0x3e0252,'type':_0x372e87[_0xa5ef('0x28')]?_0xa5ef('0x101'):_0xa5ef('0x2a'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3a51e7});_0x43db5a[_0xa5ef('0xd3')](_0x49ff03),_0x20115a[_0xa5ef('0x24')][_0x3a51e7][_0xa5ef('0x2c')]=_0x49ff03['id'];}_0x20115a[_0xa5ef('0x85')]=_0x20115a['changes']['concat'](_0x43db5a);}return _0x20115a;}['_markMarkers'](_0x535cec,_0x24bdd2){for(let _0x5ac8b9=0x0;_0x5ac8b9<_0x535cec['length'];_0x5ac8b9++)for(const [_0x15e5d5,_0x10349f]of _0x24bdd2)_0x10349f[_0xa5ef('0x67')][_0xa5ef('0x8f')](_0x535cec[_0x5ac8b9][_0xa5ef('0xad')])&&_0x535cec[_0x5ac8b9][_0xa5ef('0x54')]['push'](_0x15e5d5),_0x10349f[_0xa5ef('0xa6')][_0xa5ef('0x8f')](_0x535cec[_0x5ac8b9]['nextPosition'])&&_0x535cec[_0x5ac8b9][_0xa5ef('0x70')]['push'](_0x15e5d5);}[_0xa5ef('0x2')](_0x4d1696,_0x3b91ed){let _0xa6b1d9=[],_0x387fbf=0x0,_0x214d99=0x0;for(;_0x387fbf<_0x4d1696[_0xa5ef('0x11f')]||_0x214d99<_0x3b91ed['length'];){const _0x345661=_0x4d1696[_0x387fbf]||{},_0x89d974=_0x3b91ed[_0x214d99]||{};if(_0x345661['id']==_0x89d974['id'])_0x387fbf++,_0x214d99++,_0xa6b1d9[_0xa5ef('0x118')](_0x345661);else{if(_0x89d974[_0xa5ef('0x48')]&&_0x345661[_0xa5ef('0x2d')]){const {commonTape:_0x2de8ae,iEnd:_0x5b643c,jEnd:_0x5095b2}=this['_threeWayMerge'](_0x4d1696,_0x387fbf,_0x3b91ed,_0x214d99);_0xa6b1d9=_0xa6b1d9['concat'](_0x2de8ae),_0x387fbf=_0x5b643c,_0x214d99=_0x5095b2;}else _0x89d974[_0xa5ef('0x48')]?(_0x214d99++,_0xa6b1d9[_0xa5ef('0x118')](_0x89d974)):(_0x387fbf++,_0xa6b1d9[_0xa5ef('0x118')](_0x345661));}}return _0xa6b1d9;}[_0xa5ef('0xa')](_0x18077a,_0x5e0993){const _0x9e8a49=[];for(let _0x580815=0x0;_0x580815<_0x18077a[_0xa5ef('0x11f')];_0x580815++){for(let _0x70e01d=0x0;_0x70e01d<_0x18077a[_0x580815][_0xa5ef('0x54')]['length'];_0x70e01d++){const _0x25a6cb=_0x18077a[_0x580815]['markersStart'][_0x70e01d];if(!_0x5e0993[_0xa5ef('0xe7')](_0x25a6cb))continue;const {group:_0x419629,type:_0x1f175f,authorId:_0x1675fe}=_0x1b44d4(_0x25a6cb);_0xa5ef('0x11')!=_0x419629||'insertion'!=_0x1f175f&&'deletion'!=_0x1f175f||(_0x9e8a49[_0xa5ef('0xd3')]({'type':_0x1f175f,'name':_0x25a6cb,'userId':_0x1675fe}),_0x18077a[_0x580815][_0xa5ef('0x54')][_0xa5ef('0xda')](_0x70e01d,0x1),_0x70e01d--);}_0x3c922f(_0x18077a[_0x580815]);for(let _0x57ee32=0x0;_0x57ee32<_0x18077a[_0x580815][_0xa5ef('0x70')]['length'];_0x57ee32++){const _0x5f2bfc=_0x18077a[_0x580815][_0xa5ef('0x70')][_0x57ee32];if(!_0x5e0993['has'](_0x5f2bfc))continue;const {group:_0x22f0c6,type:_0x29f421}=_0x1b44d4(_0x5f2bfc);if('revision-suggestion'!=_0x22f0c6||'insertion'!=_0x29f421&&_0xa5ef('0x110')!=_0x29f421)continue;_0x18077a[_0x580815][_0xa5ef('0x70')][_0xa5ef('0xda')](_0x57ee32,0x1),_0x57ee32--;const _0x18b72c=_0x9e8a49[_0xa5ef('0xb8')](_0x2f78ad=>_0x2f78ad['name']==_0x5f2bfc);_0x18b72c>-0x1&&_0x9e8a49['splice'](_0x18b72c,0x1);}}function _0x1b44d4(_0xffbb0a){const _0x11e155=_0xffbb0a['split'](':');return{'group':_0x11e155[0x0],'type':_0x11e155[0x1],'subType':_0x11e155[_0xa5ef('0x11f')]>=0x5?_0x11e155[0x2]:null,'id':_0x11e155[_0xa5ef('0x11f')]<0x5?_0x11e155[0x2]:_0x11e155[0x3],'authorId':_0x11e155[_0xa5ef('0x11f')]<0x5?_0x11e155[0x3]:_0x11e155[0x4],'markerCount':0x6==_0x11e155[_0xa5ef('0x11f')]?_0x11e155[0x5]:null};}function _0x3c922f(_0x7a7333){for(let _0x162431=0x0;_0x162431<_0x9e8a49[_0xa5ef('0x11f')];_0x162431++){if(_0x7a7333[_0xa5ef('0x2d')]&&'insertion'==_0x9e8a49[_0x162431][_0xa5ef('0x1')])return _0x7a7333[_0xa5ef('0x1c')]=_0x9e8a49[_0x162431],void delete _0x7a7333['isAdded'];if(!_0x7a7333['isAdded']&&!_0x7a7333[_0xa5ef('0x48')]&&'deletion'==_0x9e8a49[_0x162431]['type'])return void(_0x7a7333[_0xa5ef('0x34')]=_0x9e8a49[_0x162431]);}}}[_0xa5ef('0xe5')](_0x17b309,_0x43a207){let _0x2f03bd=0x0,_0x2636a6=!0x1;const _0xdc962c=new Map();for(const _0x534158 of _0x17b309)_0x534158[_0x43a207]?_0x2636a6&&(_0x2f03bd++,_0x2636a6=!0x1):(_0x2f03bd++,_0x2636a6=!0x0),_0xdc962c[_0xa5ef('0x92')](_0x534158['id'],_0x2f03bd);for(let _0x1cf9c6=0x0;_0x1cf9c6<_0x17b309['length'];_0x1cf9c6++){if(_0xa5ef('0x48')==_0x43a207&&_0x17b309[_0x1cf9c6][_0xa5ef('0x2d')]||_0xa5ef('0x2d')==_0x43a207&&_0x17b309[_0x1cf9c6][_0xa5ef('0x48')])continue;if('text'==_0x17b309[_0x1cf9c6][_0xa5ef('0x1')]){_0x17b309[_0x1cf9c6]['distance']=0x0;continue;}const _0x32c11e=_0xdc962c[_0xa5ef('0x119')](_0x17b309[_0x1cf9c6][_0xa5ef('0xc7')]),_0x13e82e=_0xdc962c[_0xa5ef('0x119')](_0x17b309[_0x1cf9c6]['id']);_0x17b309[_0x1cf9c6][_0xa5ef('0x45')]=_0x32c11e-_0x13e82e;}}[_0xa5ef('0x31')](_0x4a6e89,_0x3c6acb,_0x46f2b6=!0x1){const _0x28c93f=[];let _0x4d1451=this[_0xa5ef('0xf8')]['getIndex'](_0x4a6e89),_0x594507=this[_0xa5ef('0xf8')]['getIndex'](_0x3c6acb);for(-0x1==_0x594507&&(_0x594507=this[_0xa5ef('0xf8')]['_revisions']['length'],_0x46f2b6=!0x1);_0x4d1451<_0x594507;)_0x28c93f[_0xa5ef('0x118')](this[_0xa5ef('0xf8')][_0xa5ef('0xd2')](_0x4d1451)),_0x4d1451++;return _0x46f2b6&&_0x28c93f[_0xa5ef('0x118')](this[_0xa5ef('0xf8')][_0xa5ef('0xd2')](_0x4d1451)),_0x28c93f;}[_0xa5ef('0xf7')](_0x58c973,_0x562bb5,_0xe35cc0,_0x375cc9){const _0x125fc9=this['editor'][_0xa5ef('0x49')]['schema'];let _0x982448=_0x562bb5;for(;_0x58c973[_0x982448]&&_0x58c973[_0x982448][_0xa5ef('0x2d')];)_0x982448++;let _0x2e31d7=_0x375cc9;for(;_0xe35cc0[_0x2e31d7]&&_0xe35cc0[_0x2e31d7][_0xa5ef('0x48')];)_0x2e31d7++;_0x391fe6(_0x58c973,_0x562bb5,_0x982448),_0x391fe6(_0xe35cc0,_0x375cc9,_0x2e31d7);const _0x18ea84=_0xe35cc0[_0xa5ef('0x107')](_0x375cc9,_0x2e31d7)[_0xa5ef('0x65')](_0x58c973[_0xa5ef('0x107')](_0x562bb5,_0x982448));return _0x18ea84[_0xa5ef('0xfa')]((_0x17426f,_0x23b36d)=>_0x17426f[_0xa5ef('0x5d')]!=_0x23b36d[_0xa5ef('0x5d')]?_0x17426f[_0xa5ef('0x5d')]-_0x23b36d[_0xa5ef('0x5d')]:_0x17426f[_0xa5ef('0x4b')]!=_0x23b36d[_0xa5ef('0x4b')]?_0x17426f[_0xa5ef('0x4b')]-_0x23b36d[_0xa5ef('0x4b')]:_0x17426f[_0xa5ef('0x45')]!=_0x23b36d[_0xa5ef('0x45')]?_0x23b36d[_0xa5ef('0x45')]-_0x17426f[_0xa5ef('0x45')]:!!_0x17426f[_0xa5ef('0x2d')]!=!!_0x23b36d['isAdded']?-0x1==_0x17426f[_0xa5ef('0x5d')]||0x0==_0x17426f[_0xa5ef('0x5d')]?_0x17426f['isAdded']?-0x1:0x1:_0x17426f['isAdded']?0x1:-0x1:_0x17426f[_0xa5ef('0xd1')]-_0x23b36d[_0xa5ef('0xd1')]),{'commonTape':_0x18ea84,'iEnd':_0x982448,'jEnd':_0x2e31d7};function _0x391fe6(_0x8ee2f4,_0x2feac6,_0x19e50e){let _0x42223c=-0x1,_0x62e6c8=Number['POSITIVE_INFINITY'],_0x3c997f=!0x0;for(let _0x14e7c8=_0x2feac6;_0x14e7c8<_0x19e50e;_0x14e7c8++)if(_0x125fc9['isInline'](_0x8ee2f4[_0x14e7c8][_0xa5ef('0xa2')])||(_0x3c997f=!0x1),_0x8ee2f4[_0x14e7c8][_0xa5ef('0xa2')][_0xa5ef('0x46')]<_0x2feac6&&(_0x42223c=_0x14e7c8),_0x8ee2f4[_0x14e7c8][_0xa5ef('0xa2')][_0xa5ef('0x96')]>=_0x19e50e){_0x62e6c8=_0x14e7c8;break;}_0x3c997f&&(_0x42223c=_0x19e50e-0x1);for(let _0x18b6d2=_0x2feac6;_0x18b6d2<_0x19e50e;_0x18b6d2++)_0x8ee2f4[_0x18b6d2][_0xa5ef('0x5d')]=_0x18b6d2<=_0x42223c?-0x1:_0x18b6d2<_0x62e6c8?0x0:0x1,_0x8ee2f4[_0x18b6d2][_0xa5ef('0xd1')]=_0x18b6d2;let _0x32e9a6=0x0;for(let _0x4367aa=_0x2feac6;_0x4367aa<=_0x42223c;_0x4367aa++)0x0==_0x8ee2f4[_0x4367aa]['distance']?_0x8ee2f4[_0x4367aa][_0xa5ef('0x4b')]=_0x32e9a6:(_0x32e9a6++,_0x8ee2f4[_0x4367aa][_0xa5ef('0x4b')]=_0x32e9a6,_0x32e9a6++);for(let _0x3378e9=_0x2feac6;_0x3378e9<_0x19e50e;_0x3378e9++)0x0==_0x8ee2f4[_0x3378e9][_0xa5ef('0x5d')]&&(_0x8ee2f4[_0x3378e9][_0xa5ef('0x4b')]=_0x32e9a6);_0x32e9a6=0x0;for(let _0x54104e=_0x19e50e-0x1;_0x54104e>=_0x62e6c8;_0x54104e--)0x0==_0x8ee2f4[_0x54104e][_0xa5ef('0x45')]?_0x8ee2f4[_0x54104e][_0xa5ef('0x4b')]=_0x32e9a6:(_0x32e9a6--,_0x8ee2f4[_0x54104e][_0xa5ef('0x4b')]=_0x32e9a6,_0x32e9a6--);}}['_fixObsoleteTags'](_0x32e86d){const _0xb31eb5=new Map(),_0x498615=this[_0xa5ef('0xff')][_0xa5ef('0x49')][_0xa5ef('0x88')];for(let _0xbe1c89=0x1;_0xbe1c89<_0x32e86d[_0xa5ef('0x11f')];_0xbe1c89++){let _0x1d27e7,_0x39ae2c,_0xd9c67;const _0xa8e149=_0x32e86d[_0xbe1c89],_0x4a25ca=_0x32e86d[_0xbe1c89-0x1];if(_0xa5ef('0x102')==_0xa8e149['type'])continue;if(_0xa8e149[_0xa5ef('0x1')]!=_0x4a25ca[_0xa5ef('0x1')])continue;if(!_0x498615[_0xa5ef('0xb4')](_0x4a25ca[_0xa5ef('0xa2')])||_0x498615[_0xa5ef('0x61')](_0x4a25ca[_0xa5ef('0xa2')]))continue;if(!_0x498615['isBlock'](_0xa8e149['item'])||_0x498615[_0xa5ef('0x61')](_0xa8e149[_0xa5ef('0xa2')]))continue;if((_0x32e86d[_0xbe1c89][_0xa5ef('0x2d')]||_0x32e86d[_0xbe1c89][_0xa5ef('0x1c')])&&_0x32e86d[_0xbe1c89-0x1][_0xa5ef('0x48')])_0x1d27e7=_0x32e86d[_0xbe1c89],_0x39ae2c=_0x32e86d[_0xbe1c89-0x1],_0xd9c67=_0xbe1c89-0x1;else{if(!_0x32e86d[_0xbe1c89][_0xa5ef('0x48')]||!_0x32e86d[_0xbe1c89-0x1][_0xa5ef('0x2d')]&&!_0x32e86d[_0xbe1c89-0x1][_0xa5ef('0x1c')])continue;_0x1d27e7=_0x32e86d[_0xbe1c89-0x1],_0x39ae2c=_0x32e86d[_0xbe1c89],_0xd9c67=_0xbe1c89;}const _0x2e0a30=_0x1d27e7[_0xa5ef('0x4b')]==_0x39ae2c[_0xa5ef('0x4b')],_0x3bc676=Math['abs'](_0x1d27e7[_0xa5ef('0x4b')])<Math[_0xa5ef('0x3e')](_0x39ae2c[_0xa5ef('0x4b')])&&0x0==_0x39ae2c[_0xa5ef('0x45')];(_0x2e0a30||_0x3bc676)&&(_0xb31eb5[_0xa5ef('0x92')](_0x39ae2c['id'],_0x1d27e7['id']),_0x32e86d[_0xa5ef('0xda')](_0xd9c67,0x1),_0xbe1c89--,_0x1d27e7['isAdded']=!0x1);}for(let _0x1337f9=0x0;_0x1337f9<_0x32e86d[_0xa5ef('0x11f')];_0x1337f9++)_0xb31eb5['has'](_0x32e86d[_0x1337f9][_0xa5ef('0xc7')])&&(_0x32e86d[_0x1337f9][_0xa5ef('0xc7')]=_0xb31eb5[_0xa5ef('0x119')](_0x32e86d[_0x1337f9][_0xa5ef('0xc7')]));}['_removeMissingPairs'](_0x535af5){const _0x29a188=new Set(_0x535af5[_0xa5ef('0x117')](_0x3b562f=>_0x3b562f['id']));for(let _0xd4fddd=0x0;_0xd4fddd<_0x535af5[_0xa5ef('0x11f')];_0xd4fddd++)_0x29a188[_0xa5ef('0xe7')](_0x535af5[_0xd4fddd][_0xa5ef('0xc7')])||0x0==_0x535af5[_0xd4fddd][_0xa5ef('0x45')]||(_0x535af5[_0xd4fddd][_0xa5ef('0xcb')]=!0x0);return _0x535af5['filter'](_0x2186b6=>!_0x2186b6[_0xa5ef('0xcb')]);}[_0xa5ef('0x83')](_0x3caf14){const _0x310899=new Set();for(let _0x3cfaff=0x0;_0x3cfaff<_0x3caf14['length'];_0x3cfaff++){if(_0x310899[_0xa5ef('0xe7')](_0x3caf14[_0x3cfaff]['id'])&&_0x3caf14[_0x3cfaff]['isRemoved']&&(_0x3caf14[_0x3cfaff][_0xa5ef('0xcb')]=!0x0),_0x3caf14[_0x3cfaff][_0xa5ef('0xcb')])continue;if(0x0==_0x3caf14[_0x3cfaff][_0xa5ef('0x45')])continue;if(_0xa5ef('0x3')!=_0x3caf14[_0x3cfaff][_0xa5ef('0x1')])continue;if(null==_0x3caf14[_0x3cfaff][_0xa5ef('0xc7')])continue;let _0x28546f=_0x3cfaff+0x1,_0x1cb701=0x0;for(;_0x3caf14[_0x28546f]['id']!=_0x3caf14[_0x3cfaff][_0xa5ef('0xc7')];)_0xa5ef('0x3')==_0x3caf14[_0x28546f]['type']?_0x1cb701++:_0xa5ef('0x1b')==_0x3caf14[_0x28546f][_0xa5ef('0x1')]&&_0x1cb701--,_0x28546f++;if(0x0!=_0x1cb701){if(_0x3caf14[_0x3cfaff]['isRemoved'])_0x3caf14[_0x3cfaff]['isIncorrect']=!0x0;else for(;_0x28546f!=_0x3cfaff;)_0x3caf14[_0x28546f]['isRemoved']&&0x0!=_0x3caf14[_0x28546f][_0xa5ef('0x45')]&&(_0x3caf14[_0x28546f][_0xa5ef('0xcb')]=!0x0,_0x310899['add'](_0x3caf14[_0x28546f][_0xa5ef('0xc7')])),_0x28546f--;}}return _0x3caf14[_0xa5ef('0x10c')](_0x128ccc=>!_0x128ccc[_0xa5ef('0xcb')]);}[_0xa5ef('0x40')](_0x5abd49){const _0x471f1d=this[_0xa5ef('0xff')][_0xa5ef('0x49')]['schema'];for(let _0x144ce6=0x0;_0x144ce6<_0x5abd49[_0xa5ef('0x11f')];_0x144ce6++){if(!(_0x5abd49[_0x144ce6]['isAdded']||_0x5abd49[_0x144ce6][_0xa5ef('0x1c')]||_0x5abd49[_0x144ce6][_0xa5ef('0x48')]||_0x5abd49[_0x144ce6][_0xa5ef('0x34')]))continue;if(0x0==_0x5abd49[_0x144ce6]['distance'])continue;const _0x15d6dd=_0x5abd49[_0x144ce6]['item'];_0x471f1d[_0xa5ef('0xb4')](_0x15d6dd)||_0x471f1d[_0xa5ef('0x61')](_0x15d6dd)||(_0x5abd49[_0x144ce6][_0xa5ef('0x2d')]&&delete _0x5abd49[_0x144ce6][_0xa5ef('0x2d')],_0x5abd49[_0x144ce6][_0xa5ef('0x1c')]&&delete _0x5abd49[_0x144ce6][_0xa5ef('0x1c')],_0x5abd49[_0x144ce6][_0xa5ef('0x34')]&&delete _0x5abd49[_0x144ce6][_0xa5ef('0x34')],_0x5abd49[_0x144ce6][_0xa5ef('0x48')]&&(_0x5abd49[_0x144ce6][_0xa5ef('0xcb')]=!0x0));}return _0x5abd49[_0xa5ef('0x10c')](_0x3c3302=>!_0x3c3302[_0xa5ef('0xcb')]);}[_0xa5ef('0x1d')](_0x190477,_0xd57de,_0x2be5e6){const _0xf74473=new _0x54eb33(),_0x403c04=[],_0x5cbe70=new Map(),_0x12f09e=this[_0xa5ef('0xff')]['model'],_0x513ae7=_0x12f09e[_0xa5ef('0x88')],_0x56c513=[_0xf74473],_0x1f5113={},_0x254224={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5b47c7=null;const _0x5d08f0=[0x0];for(let _0x35c723=0x0;_0x35c723<_0x190477[_0xa5ef('0x11f')];_0x35c723++){let _0x5c4a68,_0x105925;if(_0xa5ef('0x3')===_0x190477[_0x35c723]['type']){_0x5c4a68=_0x12f09e[_0xa5ef('0x121')](_0xf74473,_0x5d08f0);const _0x4954d2=new _0x3187a1(_0x190477[_0x35c723][_0xa5ef('0xa2')]['name'],_0x190477[_0x35c723][_0xa5ef('0xa2')]['getAttributes']());_0x56c513[0x0]['_appendChild'](_0x4954d2),_0x5d08f0[_0xa5ef('0x118')](0x0),_0x56c513[_0xa5ef('0xd3')](_0x4954d2),_0x105925=_0x12f09e[_0xa5ef('0x121')](_0xf74473,_0x5d08f0),_0x5b47c7=null;}else{if('elementEnd'===_0x190477[_0x35c723][_0xa5ef('0x1')])_0x56c513['shift'](),_0x5c4a68=_0x12f09e[_0xa5ef('0x121')](_0xf74473,_0x5d08f0),_0x5d08f0['pop'](),_0x5d08f0[_0x5d08f0['length']-0x1]++,_0x105925=_0x12f09e[_0xa5ef('0x121')](_0xf74473,_0x5d08f0),_0x5b47c7=null;else{if(_0x5c4a68=_0x12f09e[_0xa5ef('0x121')](_0xf74473,_0x5d08f0),_0x5b47c7&&_0x53b536(_0x5b47c7,_0x190477[_0x35c723]['item']))_0x5b47c7[_0xa5ef('0x41')]+=_0x190477[_0x35c723][_0xa5ef('0xa2')][_0xa5ef('0xe2')];else{const _0x30b918=new _0x2270ca(_0x190477[_0x35c723][_0xa5ef('0xa2')][_0xa5ef('0xe2')],_0x190477[_0x35c723][_0xa5ef('0xa2')][_0xa5ef('0x9e')]());_0x56c513[0x0][_0xa5ef('0xcf')](_0x30b918),_0x5b47c7=_0x30b918;}_0x5d08f0[_0x5d08f0[_0xa5ef('0x11f')]-0x1]+=_0x190477[_0x35c723][_0xa5ef('0xa2')][_0xa5ef('0x89')],_0x105925=_0x12f09e['createPositionFromPath'](_0xf74473,_0x5d08f0);}}for(const _0x1a56e8 of _0x190477[_0x35c723][_0xa5ef('0x54')])_0x5cbe70[_0xa5ef('0x92')](_0x1a56e8,{'start':_0x5c4a68,'end':null});_0x350bf5(_0xa5ef('0x34'),_0x35c723,_0x5c4a68,_0x105925),_0x350bf5(_0xa5ef('0x1c'),_0x35c723,_0x5c4a68,_0x105925),_0x350bf5(_0xa5ef('0x48'),_0x35c723,_0x5c4a68,_0x105925),_0x350bf5(_0xa5ef('0x2d'),_0x35c723,_0x5c4a68,_0x105925);for(const _0x12291d of _0x190477[_0x35c723][_0xa5ef('0x70')]){_0x5cbe70[_0xa5ef('0x119')](_0x12291d)['end']=_0x105925;}}for(const [_0x305ee4,_0x1ff3ef]of _0x5cbe70){const _0xc003c2=this[_0xa5ef('0xff')][_0xa5ef('0x49')][_0xa5ef('0x1a')](_0x1ff3ef[_0xa5ef('0x67')],_0x1ff3ef[_0xa5ef('0xa6')]);_0xf74473['markers'][_0xa5ef('0x92')](_0x305ee4,_0xc003c2);}return _0x403c04['sort']((_0x54df3a,_0x1f990c)=>{const _0x2bd182=_0xf74473[_0xa5ef('0xba')][_0xa5ef('0x119')](_0xa5ef('0xdd')+_0x54df3a['id']),_0x4b8da6=_0xf74473['markers'][_0xa5ef('0x119')](_0xa5ef('0xdd')+_0x1f990c['id']);return _0x2bd182[_0xa5ef('0x67')][_0xa5ef('0x78')](_0x4b8da6['start'])?-0x1:_0x2bd182[_0xa5ef('0x67')][_0xa5ef('0xc')](_0x4b8da6['start'])?0x1:_0x2bd182[_0xa5ef('0xa6')]['isBefore'](_0x4b8da6[_0xa5ef('0xa6')])?-0x1:_0x2bd182['end'][_0xa5ef('0xc')](_0x4b8da6[_0xa5ef('0xa6')])?0x1:'add'===_0x54df3a[_0xa5ef('0x1')]?-0x1:0x1;}),{'root':_0xf74473,'changes':_0x403c04};function _0x350bf5(_0x5e1d18,_0x3e676d,_0x399504,_0x52186c){const _0x5daf7f=!!_0x190477[_0x3e676d][_0x5e1d18],_0x8e052b=_0x5daf7f?_0x190477[_0x3e676d][_0x5e1d18][_0xa5ef('0x5')]:null,_0x40a958=_0x3e676d===_0x190477[_0xa5ef('0x11f')]-0x1,_0x448fd7=_0x254224[_0x5e1d18][0x0],_0x763d21=_0x513ae7[_0xa5ef('0x10e')](_0x190477[_0x3e676d][_0xa5ef('0xa2')]);!_0x1f5113[_0x5e1d18]&&_0x5daf7f?_0x1f5113[_0x5e1d18]={'start':_0x399504,'tapeItem':_0x190477[_0x3e676d],'userId':_0x8e052b,'type':_0x5e1d18}:_0x1f5113[_0x5e1d18]&&!_0x5daf7f?(_0x1f5113[_0x5e1d18][_0xa5ef('0xa6')]=_0x399504,_0x4cccf0(_0x1f5113[_0x5e1d18]),_0x1f5113[_0x5e1d18]=null):_0x1f5113[_0x5e1d18]&&_0x5daf7f&&_0x1f5113[_0x5e1d18][_0xa5ef('0x5')]!==_0x8e052b&&(_0x1f5113[_0x5e1d18][_0xa5ef('0xa6')]=_0x399504,_0x448fd7&&_0x448fd7['userId']===_0x1f5113[_0x5e1d18][_0xa5ef('0x5')]||_0x4cccf0(_0x1f5113[_0x5e1d18]),_0x1f5113[_0x5e1d18]={'start':_0x399504,'tapeItem':_0x190477[_0x3e676d],'userId':_0x8e052b,'type':_0x5e1d18}),_0x1f5113[_0x5e1d18]&&_0x763d21&&(_0xa5ef('0x3')!==_0x190477[_0x3e676d][_0xa5ef('0x1')]||_0x448fd7&&_0x448fd7[_0xa5ef('0x5')]===_0x8e052b||_0x254224[_0x5e1d18][_0xa5ef('0xd3')]({'userId':_0x8e052b,'object':_0x190477[_0x3e676d][_0xa5ef('0xa2')],'change':_0x1f5113[_0x5e1d18]}),'elementEnd'===_0x190477[_0x3e676d][_0xa5ef('0x1')]&&_0x448fd7&&_0x448fd7[_0xa5ef('0x93')]===_0x190477[_0x3e676d]['item']&&(_0x254224[_0x5e1d18][_0xa5ef('0x8c')](),_0x1f5113[_0x5e1d18]=_0x448fd7['change'])),_0x1f5113[_0x5e1d18]&&_0x40a958&&(_0x1f5113[_0x5e1d18][_0xa5ef('0xa6')]=_0x52186c,_0x4cccf0(_0x1f5113[_0x5e1d18]),_0x1f5113[_0x5e1d18]=null);}function _0x4cccf0({start:_0x57aff3,end:_0x47303f,tapeItem:_0x1789c8,userId:_0x97087,type:_0x16c8e9}){const _0x4b5985=_0x1789c8['item'],_0x44a485=_0x12f09e[_0xa5ef('0x88')][_0xa5ef('0xb4')](_0x4b5985)&&!_0x12f09e[_0xa5ef('0x88')][_0xa5ef('0x61')](_0x4b5985),_0x1659dd=_0x57aff3[_0xa5ef('0xab')]==_0x47303f[_0xa5ef('0xb6')]&&_0x47303f[_0xa5ef('0x104')];if(_0x44a485&&_0x1659dd)return;const _0x359f19=_0x12f09e[_0xa5ef('0x1a')](_0x57aff3,_0x47303f),_0x3254d9=_0xd57de[_0xa5ef('0x119')](_0x97087),_0x1b6252=new _0x2586a9({'author':_0x3254d9,'type':_0xa5ef('0x2d')==_0x16c8e9||_0xa5ef('0x1c')==_0x16c8e9?_0xa5ef('0x101'):_0xa5ef('0x2a'),'data':{'isSuggestion':_0xa5ef('0x1c')==_0x16c8e9||_0xa5ef('0x34')==_0x16c8e9},'createdAt':new Date(),'rootName':_0x2be5e6});_0x403c04[_0xa5ef('0x118')](_0x1b6252),_0xf74473[_0xa5ef('0xba')][_0xa5ef('0x92')](_0xa5ef('0xdd')+_0x1b6252['id'],_0x359f19);}function _0x53b536(_0x450e3f,_0x13514d){const _0x475166=_0x450e3f[_0xa5ef('0x9e')](),_0x4916d7=_0x13514d[_0xa5ef('0x9e')]();for(const _0xca59c4 of _0x475166){if(_0xca59c4[0x1]!==_0x13514d[_0xa5ef('0x2f')](_0xca59c4[0x0]))return!0x1;_0x4916d7['next']();}return _0x4916d7[_0xa5ef('0x91')]()[_0xa5ef('0xe0')];}}[_0xa5ef('0xfe')](){this[_0xa5ef('0xff')]['conversion'][_0xa5ef('0x75')](_0xa5ef('0xc2'))[_0xa5ef('0x82')]({'view':_0xa5ef('0xb1')}),this['editor']['conversion'][_0xa5ef('0x75')](_0xa5ef('0x36'))[_0xa5ef('0x111')]({'model':_0xa5ef('0xb1'),'view':_0x3dbf49=>{const _0x29b028=_0x3dbf49[_0xa5ef('0x42')][_0xa5ef('0x26')](':')[0x1],_0x195ec0=this[_0xa5ef('0x100')](_0x29b028);if(!_0x195ec0)return null;const _0x4a85cf=_0xa5ef('0x101')==_0x195ec0[_0xa5ef('0x1')]?_0xa5ef('0x11d'):_0xa5ef('0x110'),_0x1c7aac=[_0xa5ef('0x7'),_0xa5ef('0xf')+_0x4a85cf];return _0x195ec0[_0xa5ef('0xe2')][_0xa5ef('0x7e')]&&_0x1c7aac['push']('ck-suggestion-marker-'+_0x4a85cf+_0xa5ef('0x51')),this[_0xa5ef('0xa5')]==_0x195ec0&&_0x1c7aac[_0xa5ef('0x118')]('ck-suggestion-marker--active'),{'classes':_0x1c7aac,'attributes':{'data-change-id':_0x29b028}};}}),this[_0xa5ef('0xff')][_0xa5ef('0xc0')][_0xa5ef('0x75')](_0xa5ef('0xc2'))['add'](_0x4a5b9f=>{_0x4a5b9f['on'](_0xa5ef('0x11b'),(_0x56bce7,_0x110c79,_0x423100)=>{const _0x9944a=_0x110c79['viewItem']['getChild'](0x0);if(!_0x9944a||!_0x9944a['is']('element','code'))return;if(!_0x423100[_0xa5ef('0xa4')][_0xa5ef('0xd9')](_0x9944a,{'attributes':[_0xa5ef('0xc1'),'vid_end']}))return;const _0x54fec4=_0x110c79[_0xa5ef('0x4f')]['start'][_0xa5ef('0xab')];_0x423100[_0xa5ef('0x4e')]['setAttribute']('vid_start',_0x9944a[_0xa5ef('0x2f')](_0xa5ef('0xc1')),_0x54fec4),_0x423100[_0xa5ef('0x4e')][_0xa5ef('0x59')]('vid_end',_0x9944a['getAttribute'](_0xa5ef('0xaa')),_0x54fec4);},{'priority':_0xa5ef('0x55')});}),this['editor'][_0xa5ef('0xc0')][_0xa5ef('0x75')](_0xa5ef('0xc2'))[_0xa5ef('0x101')](_0x228573=>{_0x228573['on'](_0xa5ef('0xf0'),(_0x44862c,_0x5d7203,_0x7edab7)=>{if(!_0x7edab7[_0xa5ef('0xa4')][_0xa5ef('0xd9')](_0x5d7203['viewItem'],{'attributes':['vid_start',_0xa5ef('0xaa')]}))return;if(_0x5d7203[_0xa5ef('0x4f')][_0xa5ef('0xb3')])return;const _0x372a89=_0x5d7203[_0xa5ef('0x4f')][_0xa5ef('0x67')][_0xa5ef('0xab')];_0x372a89['hasAttribute'](_0xa5ef('0xc1'))||_0x372a89[_0xa5ef('0xa0')](_0xa5ef('0xd'))||(_0x7edab7[_0xa5ef('0x4e')][_0xa5ef('0x59')](_0xa5ef('0xc1'),_0x5d7203[_0xa5ef('0x27')]['getAttribute'](_0xa5ef('0xc1')),_0x372a89),_0x7edab7['writer'][_0xa5ef('0x59')]('vid_end',_0x5d7203[_0xa5ef('0x27')][_0xa5ef('0x2f')](_0xa5ef('0xaa')),_0x372a89));},{'priority':_0xa5ef('0x55')});}),this[_0xa5ef('0xff')][_0xa5ef('0xc0')][_0xa5ef('0x75')]('upcast')[_0xa5ef('0x13')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0xa5ef('0xd'),'value':_0x547f09=>_0x547f09[_0xa5ef('0x2f')](_0xa5ef('0xd'))}}),this['editor'][_0xa5ef('0x49')][_0xa5ef('0x88')]['on'](_0xa5ef('0x6c'),(_0x268a0b,[,_0x374393])=>{[_0xa5ef('0xc1'),_0xa5ef('0xaa'),'vid'][_0xa5ef('0xbe')](_0x374393)&&(_0x268a0b[_0xa5ef('0x10')]=!0x0,_0x268a0b[_0xa5ef('0x2b')]());},{'priority':_0xa5ef('0x21')}),this[_0xa5ef('0xff')][_0xa5ef('0xc0')][_0xa5ef('0x75')](_0xa5ef('0xe1'))[_0xa5ef('0x101')](_0x5f0980=>{_0x5f0980['on'](_0xa5ef('0x6b'),(_0x5b5fc2,_0x51205a,_0x28f5a7)=>{if('\x20'!=_0x51205a['item'][_0xa5ef('0xe2')]||_0x51205a[_0xa5ef('0xa2')]['parent'][_0xa5ef('0x122')]>0x1)return;if(!_0x28f5a7[_0xa5ef('0xa4')][_0xa5ef('0xd9')](_0x51205a[_0xa5ef('0xa2')],_0x5b5fc2[_0xa5ef('0xe3')]))return;const _0x4d7550=_0x28f5a7['writer'],_0x195d69=_0x28f5a7[_0xa5ef('0xb2')][_0xa5ef('0xc9')](_0x51205a[_0xa5ef('0x108')]);_0x4d7550['wrap'](_0x195d69,_0x4d7550['createAttributeElement'](_0xa5ef('0x10b')));});}),this['editor'][_0xa5ef('0xc0')][_0xa5ef('0x75')](_0xa5ef('0xe1'))[_0xa5ef('0x62')]({'model':_0xa5ef('0xb1')}),this[_0xa5ef('0xff')][_0xa5ef('0xe8')][_0xa5ef('0x79')]['on'](_0xa5ef('0xa8'),function(_0xdda1dc){const _0x3d3996=_0xdda1dc[_0xa5ef('0x95')][_0xa5ef('0x119')](_0xa5ef('0xd0'));return(_0x2e0472,_0x34da57,_0x4dcef6)=>{const _0x3e2951=_0x34da57[_0xa5ef('0x42')]['split'](':')[0x1],_0x59c931=_0x3d3996[_0xa5ef('0x100')](_0x3e2951);if(!_0x59c931)return null;const _0x32e8f4='add'==_0x59c931['type']?_0xa5ef('0x26'):'merge';if(!_0x4dcef6[_0xa5ef('0xa4')][_0xa5ef('0x3f')](_0x34da57[_0xa5ef('0x0')],_0x2e0472[_0xa5ef('0xe3')]))return;const _0x2f2005=_0x34da57[_0xa5ef('0x0')][_0xa5ef('0x3b')](),_0x5737ba=_0x34da57['markerRange'][_0xa5ef('0x67')],_0x3fadc=_0xdda1dc[_0xa5ef('0x49')][_0xa5ef('0x88')];let _0x123c62=null,_0x27662b=null,_0x25a444=!0x1,_0x75fa71=!0x1;for(const _0x4af258 of _0x2f2005){const _0x38dcae=_0x4af258[_0xa5ef('0xa2')];_0x25a444=_0x25a444||_0x3fadc[_0xa5ef('0x35')](_0x38dcae);const _0x2fcce0=_0x4dcef6['mapper'][_0xa5ef('0x69')](_0x38dcae);if(_0x2fcce0&&_0x2fcce0[_0xa5ef('0x20')](_0xa5ef('0x97')))return;_0xa5ef('0x1b')==_0x4af258[_0xa5ef('0x1')]&&(_0x3fadc[_0xa5ef('0xb4')](_0x38dcae)&&!_0x3fadc['isLimit'](_0x38dcae)&&(_0x38dcae[_0xa5ef('0x1f')]||_0x5737ba['isAtEnd']?_0x123c62&&_0x123c62[_0xa5ef('0xb6')]==_0x38dcae||(_0x123c62=_0x38dcae,_0x2681f7(_0x4af258[_0xa5ef('0xad')]),_0x75fa71=!0x0):_0x27662b=_0x27662b||_0x4af258[_0xa5ef('0xad')]));}function _0x2681f7(_0x20958b){const _0x1b8527=_0x4dcef6[_0xa5ef('0x4e')][_0xa5ef('0x86')](_0xa5ef('0x10b'),{'class':_0xa5ef('0xf')+_0x32e8f4}),_0x45fced=_0x4dcef6[_0xa5ef('0xb2')][_0xa5ef('0x33')](_0x20958b);_0x59c931[_0xa5ef('0xe2')][_0xa5ef('0x7e')]&&_0x4dcef6[_0xa5ef('0x4e')][_0xa5ef('0xdf')]('ck-suggestion-marker-'+_0x32e8f4+_0xa5ef('0x51'),_0x1b8527),_0x3d3996['activeChange']==_0x59c931&&_0x4dcef6['writer'][_0xa5ef('0xdf')](_0xa5ef('0x9a'),_0x1b8527),_0x4dcef6[_0xa5ef('0x4e')][_0xa5ef('0xfc')](_0x45fced,_0x1b8527),_0x4dcef6[_0xa5ef('0xb2')][_0xa5ef('0x10a')](_0x1b8527,_0x34da57[_0xa5ef('0x42')]);}_0x25a444||_0x75fa71||!_0x27662b||_0x2681f7(_0x27662b);};}(this[_0xa5ef('0xff')]),{'priority':_0xa5ef('0xf4')}),this[_0xa5ef('0xff')][_0xa5ef('0xe8')]['downcastDispatcher']['on']('removeMarker:revision',(_0x1363b5,_0x410ac9,_0x5ae9b3)=>{const _0x54ad2f=_0x5ae9b3[_0xa5ef('0xb2')]['markerNameToElements'](_0x410ac9[_0xa5ef('0x42')]);if(_0x54ad2f)for(const _0x7a921c of _0x54ad2f)(_0x7a921c['hasClass'](_0xa5ef('0xdc'))||_0x7a921c['hasClass']('ck-suggestion-marker-merge'))&&(_0x5ae9b3['mapper'][_0xa5ef('0x39')](_0x7a921c,_0x410ac9[_0xa5ef('0x42')]),_0x5ae9b3['writer'][_0xa5ef('0x2a')](_0x7a921c));},{'priority':_0xa5ef('0xf4')}),this['editor']['editing'][_0xa5ef('0x79')]['on'](_0xa5ef('0xa8'),(_0x1a2a8a,_0xcbb9f8,_0x52c72d)=>{const _0x503ff3=_0xcbb9f8[_0xa5ef('0x42')][_0xa5ef('0x26')](':')[0x1],_0x57e629=this[_0xa5ef('0x100')](_0x503ff3);if(!_0x57e629)return null;const _0x44673=_0xa5ef('0x101')==_0x57e629['type']?'split':_0xa5ef('0x103');if(_0x52c72d[_0xa5ef('0xa4')][_0xa5ef('0x3f')](_0xcbb9f8[_0xa5ef('0x0')],_0x1a2a8a[_0xa5ef('0xe3')]))for(const _0xb6dd14 of _0xcbb9f8[_0xa5ef('0x0')]['getItems']()){if(!_0xb6dd14['is']('element',_0xa5ef('0xcc')))continue;const _0x2a65e1=_0x52c72d[_0xa5ef('0x4e')][_0xa5ef('0x86')](_0xa5ef('0x10b'),{'class':_0xa5ef('0xf')+_0x44673}),_0x4f1b2b=_0x52c72d['mapper'][_0xa5ef('0x33')](this['editor'][_0xa5ef('0x49')][_0xa5ef('0x29')](_0xb6dd14));_0x57e629[_0xa5ef('0xe2')][_0xa5ef('0x7e')]&&_0x52c72d[_0xa5ef('0x4e')][_0xa5ef('0xdf')](_0xa5ef('0xf')+_0x44673+_0xa5ef('0x51'),_0x2a65e1),this[_0xa5ef('0xa5')]==_0x57e629&&_0x52c72d[_0xa5ef('0x4e')][_0xa5ef('0xdf')](_0xa5ef('0x9a'),_0x2a65e1),_0x52c72d[_0xa5ef('0x4e')][_0xa5ef('0xfc')](_0x4f1b2b,_0x2a65e1),_0x52c72d[_0xa5ef('0xb2')][_0xa5ef('0x10a')](_0x2a65e1,_0xcbb9f8[_0xa5ef('0x42')]);}},{'priority':'high'}),this['editor'][_0xa5ef('0x49')][_0xa5ef('0xc6')]['on']('change',()=>{this[_0xa5ef('0xff')][_0xa5ef('0xe8')][_0xa5ef('0x123')][_0xa5ef('0xdb')](_0x3cab30=>{for(const _0x3f9b3d of this['editor'][_0xa5ef('0x49')][_0xa5ef('0xc6')][_0xa5ef('0x57')]()){const _0x3eb072=this[_0xa5ef('0xff')]['model']['document']['getRoot'](_0x3f9b3d),_0x357649=this['editor'][_0xa5ef('0xe8')]['view'][_0xa5ef('0xc6')][_0xa5ef('0x80')](_0x3f9b3d);if(_0x357649){const _0x499c7e=_0x3eb072['getAttribute'](_0xa5ef('0x2c'));if(_0x3cab30[_0xa5ef('0x8b')](_0xa5ef('0xa1'),_0x357649),_0x3cab30['removeClass'](_0xa5ef('0x68'),_0x357649),_0x3cab30[_0xa5ef('0x116')](_0xa5ef('0xce'),_0x357649),_0x3cab30[_0xa5ef('0x116')](_0xa5ef('0x124'),_0x357649),_0x499c7e){const _0xe08466=this[_0xa5ef('0x100')](_0x499c7e);if(!_0xe08466)return null;_0x3cab30['setAttribute'](_0xa5ef('0xa1'),_0x499c7e,_0x357649),_0x3cab30[_0xa5ef('0xdf')](_0xa5ef('0xf9')+_0xe08466[_0xa5ef('0x1')],_0x357649),this[_0xa5ef('0xa5')]==_0xe08466&&_0x3cab30[_0xa5ef('0xdf')](_0xa5ef('0x124'),_0x357649);}}}});}),this[_0xa5ef('0xff')][_0xa5ef('0xc0')]['for'](_0xa5ef('0xc2'))[_0xa5ef('0x82')]({'view':_0xa5ef('0x53'),'model':_0x236940=>_0xa5ef('0xaf')+_0x236940,'converterPriority':_0xa5ef('0x21')}),this[_0xa5ef('0xff')][_0xa5ef('0xc0')][_0xa5ef('0x75')]('upcast')[_0xa5ef('0x82')]({'view':_0xa5ef('0x120'),'model':_0x57d34e=>_0xa5ef('0xec')+_0x57d34e,'converterPriority':_0xa5ef('0x21')}),this[_0xa5ef('0xff')][_0xa5ef('0xc0')]['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3cf25b=>({'name':'suggestion:'+_0x3cf25b,'group':_0xa5ef('0x11')}),'converterPriority':_0xa5ef('0x21')}),this['editor']['conversion'][_0xa5ef('0x75')](_0xa5ef('0x36'))[_0xa5ef('0x111')]({'model':_0xa5ef('0x11'),'view':_0xdbbeaa=>{const _0x33e0f4=_0xdbbeaa[_0xa5ef('0x42')]['split'](':')[0x1];return _0xa5ef('0x11d')!=_0x33e0f4&&_0xa5ef('0x110')!=_0x33e0f4?null:{'classes':[_0xa5ef('0x64'),_0xa5ef('0x8e')+_0x33e0f4]};}}),this[_0xa5ef('0xff')][_0xa5ef('0xe8')][_0xa5ef('0x79')]['on'](_0xa5ef('0x125'),et(this['editor'],_0xa5ef('0x103')),{'priority':_0xa5ef('0xf4')}),this[_0xa5ef('0xff')][_0xa5ef('0xe8')][_0xa5ef('0x79')]['on'](_0xa5ef('0x105'),et(this[_0xa5ef('0xff')],_0xa5ef('0x26')),{'priority':'high'}),this[_0xa5ef('0xff')]['editing']['downcastDispatcher']['on'](_0xa5ef('0x6'),(_0x4ac0d0,_0x4a4cfd,_0xaa871c)=>{const _0x5cd39e=_0xaa871c[_0xa5ef('0xb2')][_0xa5ef('0x3c')](_0x4a4cfd[_0xa5ef('0x42')]);if(_0x5cd39e)for(const _0x9408fe of _0x5cd39e)_0x9408fe['is']('uiElement')&&(_0xaa871c[_0xa5ef('0xb2')][_0xa5ef('0x39')](_0x9408fe,_0x4a4cfd[_0xa5ef('0x42')]),_0xaa871c['writer'][_0xa5ef('0x2a')](_0x9408fe));},{'priority':_0xa5ef('0xf4')});}['_getChangeFromId'](_0x551769){return this[_0xa5ef('0xed')][_0xa5ef('0x119')](_0x551769);}[_0xa5ef('0xb0')](_0x288718){return this[_0xa5ef('0xa7')]&&this[_0xa5ef('0xa7')]['destroy'](),this['_changeView']=new _0x215061(this['editor'][_0xa5ef('0xc3')],_0x288718),this[_0xa5ef('0xa7')];}[_0xa5ef('0xeb')](){this[_0xa5ef('0xff')][_0xa5ef('0x49')][_0xa5ef('0xc6')][_0xa5ef('0x3a')]['observeMarkers'](_0xa5ef('0xb1')),this['on']('change:activeView',(_0x1744ae,_0x37e108,_0x5988b8,_0x5c34cc)=>{_0x5c34cc&&this['_balloon'][_0xa5ef('0x2a')](_0x5c34cc),_0x5988b8&&(this[_0xa5ef('0x9c')][_0xa5ef('0x101')]({'view':_0x5988b8,'stackId':_0xa5ef('0x76'),'position':{'target':()=>{const _0x58d1ee=this[_0xa5ef('0xff')][_0xa5ef('0xe8')],_0xcfd9e4=this[_0xa5ef('0x100')](_0x5988b8[_0xa5ef('0x6e')]);let _0x118594;if(_0xcfd9e4[_0xa5ef('0xe2')][_0xa5ef('0x63')]){const _0x7f4ee9=_0x58d1ee[_0xa5ef('0x123')][_0xa5ef('0xc8')](_0xcfd9e4[_0xa5ef('0x90')]);_0x118594=Array[_0xa5ef('0x16')](_0x7f4ee9['getClientRects']());}else{const _0x1f1d56=this[_0xa5ef('0xff')]['model'][_0xa5ef('0xba')]['get']('revision:'+_0x5988b8['changeId']);_0x118594=Array['from'](_0x58d1ee[_0xa5ef('0xb2')][_0xa5ef('0x3c')](_0x1f1d56[_0xa5ef('0xe3')]))['map'](_0x25cf09=>_0x58d1ee['view'][_0xa5ef('0x37')][_0xa5ef('0x4')](_0x25cf09))[_0xa5ef('0x117')](_0x4571a1=>Array[_0xa5ef('0x16')](_0x4571a1[_0xa5ef('0x9d')]()))['flat']();}if(!this[_0xa5ef('0x7c')])return _0x118594[0x0];return _0x118594['find'](_0x1abcc7=>_0x1abcc7[_0xa5ef('0x94')]-0x3<=this[_0xa5ef('0x7c')]['y']&&_0x1abcc7[_0xa5ef('0x87')]+0x3>=this[_0xa5ef('0x7c')]['y']&&_0x1abcc7[_0xa5ef('0x58')]-0x3<=this[_0xa5ef('0x7c')]['x']&&_0x1abcc7[_0xa5ef('0x8d')]+0x3>=this['_activeViewTarget']['x'])||_0x118594[0x0];}}}),this[_0xa5ef('0x9c')]['showStack']('revisionHistoryLabel'));}),this['on'](_0xa5ef('0xef'),(_0x1773c6,_0x32f2e9,_0x59bb65,_0x7a769a)=>{this[_0xa5ef('0x81')]=_0x59bb65?this[_0xa5ef('0xb0')](_0x59bb65):null,this[_0xa5ef('0xff')][_0xa5ef('0x49')]['change'](()=>{const _0x5dabb4=this['editor']['editing'];_0x7a769a&&(_0x7a769a[_0xa5ef('0xe2')][_0xa5ef('0x63')]?_0x5dabb4[_0xa5ef('0x123')][_0xa5ef('0xdb')](_0x5031fc=>{_0x5031fc[_0xa5ef('0x116')]('ck-revision-history-root--active',_0x5dabb4[_0xa5ef('0x123')][_0xa5ef('0xc6')][_0xa5ef('0x80')](_0x7a769a[_0xa5ef('0x90')]));}):_0x5dabb4[_0xa5ef('0xb7')](_0xa5ef('0xdd')+_0x7a769a['id'])),_0x59bb65&&(_0x59bb65['data'][_0xa5ef('0x63')]?_0x5dabb4[_0xa5ef('0x123')]['change'](_0x296d71=>{_0x296d71[_0xa5ef('0xdf')]('ck-revision-history-root--active',_0x5dabb4[_0xa5ef('0x123')][_0xa5ef('0xc6')][_0xa5ef('0x80')](_0x59bb65[_0xa5ef('0x90')]));}):_0x5dabb4[_0xa5ef('0xb7')](_0xa5ef('0xdd')+_0x59bb65['id']));});}),this['listenTo'](this['editor']['editing'][_0xa5ef('0x123')][_0xa5ef('0xc6')],_0xa5ef('0x12'),(_0x54470b,_0x4c1654)=>{if(this[_0xa5ef('0xa5')])return;const _0x56cc8e=this[_0xa5ef('0x22')](_0x4c1654[_0xa5ef('0x15')]),_0x2a9509=this[_0xa5ef('0xed')]['get'](_0x56cc8e);_0x2a9509?(this['_activeViewTarget']={'x':_0x4c1654['domEvent']['x'],'y':_0x4c1654[_0xa5ef('0xf1')]['y']},this[_0xa5ef('0x81')]=this[_0xa5ef('0xb0')](_0x2a9509)):(this[_0xa5ef('0x7c')]=null,this['activeView']=null);}),this['listenTo'](this[_0xa5ef('0xff')][_0xa5ef('0xe8')][_0xa5ef('0x123')][_0xa5ef('0xc6')],_0xa5ef('0xb9'),(_0x4297cd,_0x4c6ec5)=>{const _0x1b1e93=this[_0xa5ef('0x22')](_0x4c6ec5[_0xa5ef('0x15')]),_0x5e77c0=this[_0xa5ef('0xed')][_0xa5ef('0x119')](_0x1b1e93);_0x5e77c0?(this[_0xa5ef('0x7c')]={'x':_0x4c6ec5[_0xa5ef('0xf1')]['x'],'y':_0x4c6ec5['domEvent']['y']},_0x5e77c0===this[_0xa5ef('0xa5')]?this['_balloon'][_0xa5ef('0xe4')]():this[_0xa5ef('0xa5')]=_0x5e77c0):(this[_0xa5ef('0x7c')]=null,this['activeChange']=null);});}[_0xa5ef('0x22')](_0x3a9df1){do{const _0x375f65=_0x3a9df1[_0xa5ef('0x2f')](_0xa5ef('0xa1'));if(_0x375f65)return _0x375f65;_0x3a9df1=_0x3a9df1[_0xa5ef('0xb6')];}while(_0x3a9df1);return null;}[_0xa5ef('0x5c')](){this['editor'][_0xa5ef('0x49')][_0xa5ef('0xdb')](_0x162f05=>{for(const _0x307c8d of this['editor']['model'][_0xa5ef('0xba')])_0x162f05[_0xa5ef('0x11a')](_0x307c8d);});}}function et(_0x701750,_0x42c812){return(_0xfbb65c,_0x20b077,_0xc85cc)=>{if(!_0xc85cc['consumable'][_0xa5ef('0x3f')](_0x20b077[_0xa5ef('0x0')],_0xfbb65c[_0xa5ef('0xe3')]))return;const _0x508ec8=_0x20b077[_0xa5ef('0x0')][_0xa5ef('0x3b')](),_0x30607c=_0x20b077['markerRange'][_0xa5ef('0x67')],_0x305b0c=_0x701750[_0xa5ef('0x49')][_0xa5ef('0x88')];let _0x1c6fae=null,_0x1bf427=null,_0x3e971d=!0x1,_0x3d0f76=!0x1;for(const _0xaa5532 of _0x508ec8){const _0x36c86d=_0xaa5532['item'];_0x3e971d=_0x3e971d||_0x305b0c[_0xa5ef('0x35')](_0x36c86d);const _0x356c00=_0xc85cc['mapper'][_0xa5ef('0x69')](_0x36c86d);if(_0x356c00&&_0x356c00[_0xa5ef('0x20')](_0xa5ef('0x97')))return;_0xa5ef('0x1b')==_0xaa5532[_0xa5ef('0x1')]&&(_0x305b0c['isBlock'](_0x36c86d)&&!_0x305b0c[_0xa5ef('0x61')](_0x36c86d)&&(_0x36c86d['nextSibling']||_0x30607c[_0xa5ef('0x23')]?_0x1c6fae&&_0x1c6fae[_0xa5ef('0xb6')]==_0x36c86d||(_0x1c6fae=_0x36c86d,_0x24b0d6(_0xaa5532[_0xa5ef('0xad')]),_0x3d0f76=!0x0):_0x1bf427=_0x1bf427||_0xaa5532[_0xa5ef('0xad')]));}function _0x24b0d6(_0x38f7a5){const _0x563c01=_0xc85cc[_0xa5ef('0xb2')][_0xa5ef('0x33')](_0x38f7a5),_0x899d20=_0xc85cc[_0xa5ef('0x4e')][_0xa5ef('0x86')](_0xa5ef('0x10b'),{'class':_0xa5ef('0x8e')+_0x42c812});_0xc85cc[_0xa5ef('0x4e')][_0xa5ef('0xfc')](_0x563c01,_0x899d20),_0xc85cc['mapper'][_0xa5ef('0x10a')](_0x899d20,_0x20b077['markerName']);}_0x3e971d||_0x3d0f76||!_0x1bf427||_0x24b0d6(_0x1bf427);};}export class RestoreRevisionCommand extends _0x1efc56{constructor(_0x1744ca){super(_0x1744ca);const _0x5b344c=_0x1744ca[_0xa5ef('0x95')]['get'](d);this[_0xa5ef('0x30')]=!0x1,this[_0xa5ef('0x7a')](_0x5b344c,_0xa5ef('0xd6'),()=>this[_0xa5ef('0x4c')]()),this[_0xa5ef('0x7a')](_0x5b344c,_0xa5ef('0x25'),()=>this[_0xa5ef('0x4c')]());}[_0xa5ef('0xd7')](){const _0x2a1900=this[_0xa5ef('0xff')],_0x1437b9=_0x2a1900[_0xa5ef('0x95')][_0xa5ef('0x119')](d),_0x13ef7e=_0x1437b9[_0xa5ef('0xf6')]?_0x1437b9['diff'][_0xa5ef('0x50')]:null;_0x2a1900[_0xa5ef('0x71')][_0xa5ef('0x119')](_0xa5ef('0x47'))[_0xa5ef('0xea')](_0x13ef7e);}[_0xa5ef('0x4c')](){const {isReady:_0x395381,isEnabled:_0x15c456}=this[_0xa5ef('0xff')]['plugins']['get'](d);this['isEnabled']=_0x395381&&_0x15c456;}}export class ShowChangeCommand extends _0x1efc56{constructor(_0x16a376,{direction:_0x574d8c}){super(_0x16a376);const _0x2d50f9=_0x16a376[_0xa5ef('0x95')][_0xa5ef('0x119')](d);this[_0xa5ef('0x30')]=!0x1,this[_0xa5ef('0x10f')]=_0xa5ef('0xc5')===_0x574d8c?0x1:-0x1,this[_0xa5ef('0x7a')](_0x2d50f9,_0xa5ef('0xd6'),()=>this['refresh']()),this[_0xa5ef('0x7a')](_0x2d50f9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2d50f9,_0xa5ef('0xef'),()=>this[_0xa5ef('0x4c')]());}['execute'](){const _0xac8ea4=this['editor'],_0x5af709=_0xac8ea4[_0xa5ef('0x95')][_0xa5ef('0x119')](d),{isNavigationMode:_0x158c1e,currentChangeNumber:_0x116975}=_0x5af709;let _0x3e041f;if(_0x5af709['activeChange']=_0x158c1e?_0x5af709[_0xa5ef('0x113')][_0xa5ef('0x85')][_0xa5ef('0x119')](_0x116975+this[_0xa5ef('0x10f')]):_0x5af709[_0xa5ef('0x113')][_0xa5ef('0x85')][_0xa5ef('0x66')],_0x5af709[_0xa5ef('0xa5')][_0xa5ef('0xe2')][_0xa5ef('0x63')])_0x3e041f=_0xac8ea4['editing'][_0xa5ef('0x123')][_0xa5ef('0xc8')](_0x5af709[_0xa5ef('0xa5')][_0xa5ef('0x90')]);else{const _0x3c773d=_0xac8ea4[_0xa5ef('0x49')][_0xa5ef('0xba')][_0xa5ef('0x119')](_0xa5ef('0xdd')+_0x5af709[_0xa5ef('0xa5')]['id']);_0x3e041f=_0x58ebb7(_0xac8ea4[_0xa5ef('0xe8')],_0x3c773d);}_0x517c42({'target':_0x3e041f,'viewportOffset':0x28});}[_0xa5ef('0x4c')](){const {isNavigationMode:_0x2a1423,currentChangeNumber:_0x520435,numberOfChanges:_0x246590,isReady:_0x1d4698,isEnabled:_0xeab2dc}=this[_0xa5ef('0xff')][_0xa5ef('0x95')]['get'](d);this[_0xa5ef('0xf2')]=!!(_0xeab2dc&&_0x1d4698&&_0x246590)&&(!_0x2a1423||(0x1===this[_0xa5ef('0x10f')]?_0x520435<_0x246590-0x1:_0x520435>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x542c=['first','children','stopPropagation','extendTemplate','_action','bindTemplate','isReady','name','isOpen','find','function','ck-on','panelPosition','Show\x20more\x20items','execute','items','change:isActionsDropdownOpen','locale','threeVerticalDots','bind','set','class','Name\x20this\x20revision','listenTo','action','map','button','listView','isVisible','source','isEnabled','isActionsDropdownOpen','Restore\x20this\x20revision'];(function(_0x49a0a3,_0x542c9f){const _0x527506=function(_0x490eef){while(--_0x490eef){_0x49a0a3['push'](_0x49a0a3['shift']());}};_0x527506(++_0x542c9f);}(_0x542c,0x199));const _0x5275=function(_0x49a0a3,_0x542c9f){_0x49a0a3=_0x49a0a3-0x0;let _0x527506=_0x542c[_0x49a0a3];return _0x527506;};import{Collection as _0x8743f6}from'ckeditor5/src/utils';import{icons as _0x420aa9}from'ckeditor5/src/core';import{Model as _0xeb1a8e,addListToDropdown as _0x45ae6b,createDropdown as _0xbdca43}from'ckeditor5/src/ui';import{getTranslation as _0xc68580}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4e1732,_0x42c6db){const _0x3e2a31=_0x4e1732[_0x5275('0x19')],_0x38e59f=_0x4e1732['locale'],_0x55f72b=_0xbdca43(_0x38e59f);_0x55f72b[_0x5275('0x20')]='sw';const _0x327eef=function(_0x342ab0,_0x42872f){const _0x362445=function(_0x5e123a,_0x3494cc){const _0x548e7a=_0x5e123a[_0x5275('0x4')],_0x304aff={'Compare\x20against\x20selected':_0xc68580(_0x548e7a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0xc68580(_0x548e7a,_0x5275('0x9')),'Restore\x20this\x20revision':_0xc68580(_0x548e7a,_0x5275('0x13'))};return _0x3494cc[_0x5275('0xc')](_0x42e71f=>{const _0xceb593=_0x304aff[_0x42e71f['name']];return _0xceb593&&_0xceb593!==_0x42e71f[_0x5275('0x1b')]&&(_0x42e71f['name']=_0xceb593),_0x42e71f;});}(_0x342ab0,_0x42872f),_0x50ed41=new _0x8743f6();for(const _0x54b257 of _0x362445){const _0x59694f={'type':_0x5275('0xd'),'model':new _0xeb1a8e({'label':_0x54b257[_0x5275('0x1b')],'class':_0x54b257[_0x5275('0x8')],'withText':!0x0,'_action':_0x54b257['action']})};_0x59694f['model'][_0x5275('0x6')](_0x5275('0x11'))['to'](_0x342ab0,_0x5275('0x12'),_0x4047b7=>_0x5275('0x1e')!=typeof _0x54b257['isEnabled']||(!_0x4047b7||_0x54b257[_0x5275('0x11')](_0x342ab0))),_0x50ed41['add'](_0x59694f);}return _0x50ed41;}(_0x4e1732,_0x42c6db);return _0x4e1732['bind'](_0x5275('0x12'))['to'](_0x55f72b,_0x5275('0x1c')),_0x55f72b['buttonView'][_0x5275('0x7')]({'label':_0xc68580(_0x38e59f,_0x5275('0x0')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x420aa9[_0x5275('0x5')]}),_0x55f72b[_0x5275('0x17')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3e2a31['if'](_0x5275('0x12'),_0x5275('0x1f'))]},'on':{'click':_0x3e2a31['to'](_0x2792a1=>_0x2792a1[_0x5275('0x16')]())}}),_0x55f72b['on'](_0x5275('0x1'),_0x4a3181=>{_0x4e1732[_0x5275('0x1a')]&&'function'==typeof _0x4a3181[_0x5275('0x10')][_0x5275('0x18')]&&_0x4a3181[_0x5275('0x10')]['_action'](_0x4e1732);}),_0x45ae6b(_0x55f72b,_0x327eef),_0x55f72b[_0x5275('0xa')](_0x4e1732,_0x5275('0x3'),(_0x539956,_0x7868ce,_0x1d35ee)=>{if(_0x1d35ee)for(const _0x16e973 of _0x55f72b[_0x5275('0xe')][_0x5275('0x2')]){const _0x338b6a=_0x16e973[_0x5275('0x15')][_0x5275('0x14')],_0x41898e=_0x42c6db[_0x5275('0x1d')](_0x32ff4a=>_0x32ff4a[_0x5275('0xb')]===_0x338b6a[_0x5275('0x18')])[_0x5275('0xf')];_0x16e973['isVisible']=void 0x0===_0x41898e||_0x41898e(_0x4e1732);}}),_0x55f72b;}
23
+ const _0x27de=['_action','isEnabled','items','model','Name\x20this\x20revision','panelPosition','set','execute','threeVerticalDots','listenTo','isActionsDropdownOpen','class','Show\x20more\x20items','ck-revision-history-sidebar__revision__actions','isVisible','name','bind','button','find','locale','ck-on','map','buttonView','add','function','first','isReady','source'];(function(_0x253571,_0x27dee9){const _0x428023=function(_0x14bc7d){while(--_0x14bc7d){_0x253571['push'](_0x253571['shift']());}};_0x428023(++_0x27dee9);}(_0x27de,0x100));const _0x4280=function(_0x253571,_0x27dee9){_0x253571=_0x253571-0x0;let _0x428023=_0x27de[_0x253571];return _0x428023;};import{Collection as _0x23a321}from'ckeditor5/src/utils';import{icons as _0x24210b}from'ckeditor5/src/core';import{Model as _0x285d4b,addListToDropdown as _0x473500,createDropdown as _0x10cd25}from'ckeditor5/src/ui';import{getTranslation as _0x127f50}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x402799,_0x50db81){const _0x8b0b4=_0x402799['bindTemplate'],_0xd2b832=_0x402799['locale'],_0x409099=_0x10cd25(_0xd2b832);_0x409099[_0x4280('0x1')]='sw';const _0x45217e=function(_0x3da5c0,_0x42b922){const _0x18784=function(_0x9e47c7,_0x3726c2){const _0x5a7b43=_0x9e47c7[_0x4280('0xf')],_0x2be4ff={'Compare\x20against\x20selected':_0x127f50(_0x5a7b43,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x127f50(_0x5a7b43,_0x4280('0x0')),'Restore\x20this\x20revision':_0x127f50(_0x5a7b43,'Restore\x20this\x20revision')};return _0x3726c2[_0x4280('0x11')](_0x2bd427=>{const _0x202fda=_0x2be4ff[_0x2bd427[_0x4280('0xb')]];return _0x202fda&&_0x202fda!==_0x2bd427[_0x4280('0xb')]&&(_0x2bd427[_0x4280('0xb')]=_0x202fda),_0x2bd427;});}(_0x3da5c0,_0x42b922),_0x3b14eb=new _0x23a321();for(const _0xe05b7c of _0x18784){const _0x543954={'type':_0x4280('0xd'),'model':new _0x285d4b({'label':_0xe05b7c[_0x4280('0xb')],'class':_0xe05b7c[_0x4280('0x7')],'withText':!0x0,'_action':_0xe05b7c['action']})};_0x543954[_0x4280('0x1b')][_0x4280('0xc')](_0x4280('0x19'))['to'](_0x3da5c0,_0x4280('0x6'),_0xd510dc=>_0x4280('0x14')!=typeof _0xe05b7c['isEnabled']||(!_0xd510dc||_0xe05b7c[_0x4280('0x19')](_0x3da5c0))),_0x3b14eb[_0x4280('0x13')](_0x543954);}return _0x3b14eb;}(_0x402799,_0x50db81);return _0x402799['bind'](_0x4280('0x6'))['to'](_0x409099,'isOpen'),_0x409099[_0x4280('0x12')][_0x4280('0x2')]({'label':_0x127f50(_0xd2b832,_0x4280('0x8')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x24210b[_0x4280('0x4')]}),_0x409099['extendTemplate']({'attributes':{'class':[_0x4280('0x9'),_0x8b0b4['if'](_0x4280('0x6'),_0x4280('0x10'))]},'on':{'click':_0x8b0b4['to'](_0x482872=>_0x482872['stopPropagation']())}}),_0x409099['on'](_0x4280('0x3'),_0x1d1f57=>{_0x402799[_0x4280('0x16')]&&_0x4280('0x14')==typeof _0x1d1f57[_0x4280('0x17')][_0x4280('0x18')]&&_0x1d1f57[_0x4280('0x17')][_0x4280('0x18')](_0x402799);}),_0x473500(_0x409099,_0x45217e),_0x409099[_0x4280('0x5')](_0x402799,'change:isActionsDropdownOpen',(_0x33a3ed,_0x30d1db,_0x5dbf04)=>{if(_0x5dbf04)for(const _0x293599 of _0x409099['listView'][_0x4280('0x1a')]){const _0xae2249=_0x293599['children'][_0x4280('0x15')],_0x50891d=_0x50db81[_0x4280('0xe')](_0x21afe2=>_0x21afe2['action']===_0xae2249[_0x4280('0x18')])['isVisible'];_0x293599[_0x4280('0xa')]=void 0x0===_0x50891d||_0x50891d(_0x402799);}}),_0x409099;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c65=['0\x200\x2011\x2010','name','set','ck-revision-history-sidebar__revision-author','setTemplate','ck-revision-history-sidebar__revision-author__name','span'];(function(_0x107d02,_0x4c6529){const _0x1f65fb=function(_0x2b4ba6){while(--_0x2b4ba6){_0x107d02['push'](_0x107d02['shift']());}};_0x1f65fb(++_0x4c6529);}(_0x4c65,0xa9));const _0x1f65=function(_0x107d02,_0x4c6529){_0x107d02=_0x107d02-0x0;let _0x1f65fb=_0x4c65[_0x107d02];return _0x1f65fb;};import{View as _0x464596,IconView as _0x36e24b}from'ckeditor5/src/ui';import{getTranslation as _0x578a8e}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x234c27 from'../../../theme/icons/user.svg';export default class ti extends _0x464596{constructor(_0x548a48,_0x5d325e,_0x5aaca9){super(_0x548a48);const _0x7b264c=new _0x36e24b();_0x7b264c[_0x1f65('0x1')]({'content':_0x234c27,'viewBox':_0x1f65('0x6')});const _0x28251d=['ck',_0x1f65('0x2')];_0x5aaca9&&_0x28251d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x378b1e=[{'tag':_0x1f65('0x5'),'attributes':{'class':['ck',_0x1f65('0x4')],'title':_0x578a8e(_0x548a48,_0x5aaca9?'Revision\x20creator':'Revision\x20author')},'children':[_0x7b264c,_0x5d325e[_0x1f65('0x0')]]}];this[_0x1f65('0x3')]({'tag':'li','attributes':{'class':_0x28251d},'children':_0x378b1e});}}
23
+ const _0x32a5=['ck-revision-history-sidebar__revision-author__name','set','setTemplate','name','0\x200\x2011\x2010','span','push','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator'];(function(_0x218c50,_0x32a55c){const _0x11ae49=function(_0x5a49c2){while(--_0x5a49c2){_0x218c50['push'](_0x218c50['shift']());}};_0x11ae49(++_0x32a55c);}(_0x32a5,0xf1));const _0x11ae=function(_0x218c50,_0x32a55c){_0x218c50=_0x218c50-0x0;let _0x11ae49=_0x32a5[_0x218c50];return _0x11ae49;};import{View as _0x1fb45f,IconView as _0xf7b1ff}from'ckeditor5/src/ui';import{getTranslation as _0x6d626a}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x254e76 from'../../../theme/icons/user.svg';export default class ti extends _0x1fb45f{constructor(_0x394f3f,_0x36d6be,_0x3fe013){super(_0x394f3f);const _0x5bc32e=new _0xf7b1ff();_0x5bc32e[_0x11ae('0x3')]({'content':_0x254e76,'viewBox':_0x11ae('0x6')});const _0x5d8cec=['ck',_0x11ae('0x0')];_0x3fe013&&_0x5d8cec[_0x11ae('0x8')](_0x11ae('0x1'));const _0x2a39d3=[{'tag':_0x11ae('0x7'),'attributes':{'class':['ck',_0x11ae('0x2')],'title':_0x6d626a(_0x394f3f,_0x3fe013?'Revision\x20creator':'Revision\x20author')},'children':[_0x5bc32e,_0x36d6be[_0x11ae('0x5')]]}];this[_0x11ae('0x4')]({'tag':'li','attributes':{'class':_0x5d8cec},'children':_0x2a39d3});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x50bf=['span','set','Revision\x20name'];(function(_0x455e26,_0x50bfde){var _0x8cdd03=function(_0x6343b4){while(--_0x6343b4){_0x455e26['push'](_0x455e26['shift']());}};_0x8cdd03(++_0x50bfde);}(_0x50bf,0x187));var _0x8cdd=function(_0x455e26,_0x50bfde){_0x455e26=_0x455e26-0x0;var _0x8cdd03=_0x50bf[_0x455e26];return _0x8cdd03;};import{LabeledFieldView as _0x14f619}from'ckeditor5/src/ui';import{getTranslation as _0x4ebfde}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x14f619{constructor(_0x5a7394,_0x5b7370){super(_0x5a7394,_0x5b7370),this[_0x8cdd('0x0')]({'label':_0x4ebfde(_0x5a7394,_0x8cdd('0x1'))}),this['extendTemplate']({'tag':_0x8cdd('0x2'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x1bce=['extendTemplate','Revision\x20name'];(function(_0x47c4f9,_0x1bce0d){var _0x33884b=function(_0x530c98){while(--_0x530c98){_0x47c4f9['push'](_0x47c4f9['shift']());}};_0x33884b(++_0x1bce0d);}(_0x1bce,0x191));var _0x3388=function(_0x47c4f9,_0x1bce0d){_0x47c4f9=_0x47c4f9-0x0;var _0x33884b=_0x1bce[_0x47c4f9];return _0x33884b;};import{LabeledFieldView as _0x594bbf}from'ckeditor5/src/ui';import{getTranslation as _0x1f69da}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x594bbf{constructor(_0x1b0269,_0x1a9bd2){super(_0x1b0269,_0x1a9bd2),this['set']({'label':_0x1f69da(_0x1b0269,_0x3388('0x0'))}),this[_0x3388('0x1')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3da4=['ck-revision-history-sidebar__revision_selected','createdAt','unhighlight','render','ck-revision-history-sidebar__actions_dropdown_open','bind','element','uiLanguage','deselect','.ck-thread__remove-confirm','isEnabled','setName','listenTo','authors','revisionActionsView','isReady','ck-revision-history-sidebar__revision__controls-wrapper','creator','ck-revision-history-sidebar__revision_highlighted','name','ck-reset','select','length','extendTemplate','isSelected','from','set','isHighlighted','filter','revisionNameView','unshift','value','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision-authors','closest','map','span','div','highlight','fire','fieldView','bindTemplate','220','placeholder','_createdAtFormatted','ck-disabled','isActionsDropdownOpen','setTemplate'];(function(_0x509c58,_0x3da4ff){const _0x253fa2=function(_0x6a33db){while(--_0x6a33db){_0x509c58['push'](_0x509c58['shift']());}};_0x253fa2(++_0x3da4ff);}(_0x3da4,0x1b6));const _0x253f=function(_0x509c58,_0x3da4ff){_0x509c58=_0x509c58-0x0;let _0x253fa2=_0x3da4[_0x509c58];return _0x253fa2;};import{View as _0x2af06f,createLabeledInputText as _0x5e6c38}from'ckeditor5/src/ui';import{ConfirmMixin as _0x370ba0}from'ckeditor5-collaboration/src/collaboration-core';import _0x9e5947 from'./revisionnameview';import _0x249589 from'./revisionauthorview';import{dateToPrettyFormat as _0x391c20}from'./utils';import{createActionsDropdownView as _0x5aa43c}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x370ba0(_0x2af06f){constructor(_0x1e2749,_0x3a4516,_0x2f91ef){super(_0x1e2749);const _0x496a27=this[_0x253f('0x2d')],_0x5d6fad=function(_0x2923ba,_0x403d58){const _0x1f191b=Array[_0x253f('0x1c')](_0x403d58[_0x253f('0x10')])[_0x253f('0x1f')](_0x9d574d=>_0x9d574d!=_0x403d58['creator']);return _0x403d58['creator']&&_0x1f191b[_0x253f('0x21')](_0x403d58[_0x253f('0x14')]),_0x1f191b[_0x253f('0x27')](_0x9b98de=>new _0x249589(_0x2923ba,_0x9b98de,_0x9b98de==_0x403d58[_0x253f('0x14')]));}(_0x1e2749,_0x3a4516);this['id']=_0x3a4516['id'],this['_revision']=_0x3a4516,this['bind'](_0x253f('0x16'),_0x253f('0x4'))['to'](_0x3a4516),this[_0x253f('0x8')](_0x253f('0x30'))['to'](this,_0x253f('0x4'),_0x46ac36=>_0x46ac36?_0x391c20(_0x1e2749[_0x253f('0xa')],_0x46ac36):void 0x0),this[_0x253f('0x1d')](_0x253f('0x1b'),!0x1),this[_0x253f('0x1d')](_0x253f('0x1e'),!0x1),this[_0x253f('0x1d')](_0x253f('0x1'),!0x1),this[_0x253f('0x1d')]('isReady',!0x1),this[_0x253f('0x1d')](_0x253f('0xd'),!0x1),this['revisionNameView']=new _0x9e5947(_0x1e2749,_0x5e6c38),this[_0x253f('0x20')][_0x253f('0x2c')][_0x253f('0x1a')]({'attributes':{'maxlength':_0x253f('0x2e')}}),this[_0x253f('0x20')][_0x253f('0x2c')][_0x253f('0x8')](_0x253f('0x22'),_0x253f('0x2f'))['to'](this,_0x253f('0x16'),_0x253f('0x30')),this[_0x253f('0x20')][_0x253f('0x8')]('isEnabled')['to'](this,_0x253f('0x1b'),this,'isEnabled',(_0x3b7250,_0x29bd16)=>_0x3b7250&&_0x29bd16),this[_0x253f('0x11')]=_0x2f91ef&&_0x2f91ef[_0x253f('0x19')]?_0x5aa43c(this,_0x2f91ef):'',this[_0x253f('0x11')]&&this['revisionActionsView'][_0x253f('0x8')](_0x253f('0xd'))['to'](this),this[_0x253f('0x2')]({'tag':'div','attributes':{'class':['ck',_0x253f('0x17'),_0x253f('0x24'),_0x496a27['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x253f('0x17'),_0x253f('0x23'),_0x496a27['if'](_0x253f('0xd'),_0x253f('0x0'),_0x2175d0=>!_0x2175d0),_0x496a27['if'](_0x253f('0x1b'),_0x253f('0x3')),_0x496a27['if'](_0x253f('0x1e'),_0x253f('0x15')),_0x496a27['if'](_0x253f('0x1'),_0x253f('0x7'))]},'children':[this['revisionNameView'],{'tag':_0x253f('0x28'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x496a27['to'](_0x253f('0x30'))}]},{'tag':_0x253f('0x29'),'attributes':{'class':['ck',_0x253f('0x13')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x253f('0x25')]},'children':_0x5d6fad}]},this[_0x253f('0x11')]],'on':{'click':_0x496a27['to'](_0x248818=>{_0x248818['srcElement'][_0x253f('0x26')](_0x253f('0xc'))||this[_0x253f('0x12')]&&this[_0x253f('0xd')]&&this[_0x253f('0x2b')](_0x253f('0x18'),{'id':this['id']});})}}]});}[_0x253f('0x6')](){super[_0x253f('0x6')]();const _0x4f5267=this[_0x253f('0x20')][_0x253f('0x2c')][_0x253f('0x9')];this[_0x253f('0xf')](_0x4f5267,'change',()=>{this[_0x253f('0x2b')](_0x253f('0xe'),{'id':this['id'],'name':_0x4f5267['value']});});}['select'](){this[_0x253f('0x1b')]=!0x0;}[_0x253f('0xb')](){this[_0x253f('0x1b')]=!0x1;}[_0x253f('0x2a')](){this['isHighlighted']=!0x0;}[_0x253f('0x5')](){this[_0x253f('0x1e')]=!0x1;}}
23
+ const _0x3374=['ck-reset','render','highlight','deselect','isActionsDropdownOpen','creator','_createdAtFormatted','srcElement','_revision','isHighlighted','createdAt','bind','name','isConfirm','authors','placeholder','ck-revision-history-sidebar__revision-wrapper','isSelected','fire','element','ck-revision-history-sidebar__revision-authors','set','220','revisionActionsView','extendTemplate','div','ck-revision-history-sidebar__revision__controls-wrapper','length','revisionNameView','fieldView','isEnabled','ck-revision-history-sidebar__revision','setName','ck-revision-history-sidebar__actions_dropdown_open','unshift','ck-revision-history-sidebar__revision_highlighted','from','.ck-thread__remove-confirm','uiLanguage','unhighlight','filter','ck-revision-history-sidebar__revision_selected','select'];(function(_0x62cf2,_0x3374a0){const _0x5ebd58=function(_0x507f75){while(--_0x507f75){_0x62cf2['push'](_0x62cf2['shift']());}};_0x5ebd58(++_0x3374a0);}(_0x3374,0x65));const _0x5ebd=function(_0x62cf2,_0x3374a0){_0x62cf2=_0x62cf2-0x0;let _0x5ebd58=_0x3374[_0x62cf2];return _0x5ebd58;};import{View as _0x1104fd,createLabeledInputText as _0x9bab1f}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4abe79}from'ckeditor5-collaboration/src/collaboration-core';import _0x353a96 from'./revisionnameview';import _0x5cfa39 from'./revisionauthorview';import{dateToPrettyFormat as _0x291644}from'./utils';import{createActionsDropdownView as _0x1e745e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4abe79(_0x1104fd){constructor(_0x151de3,_0x3a4329,_0x2fd898){super(_0x151de3);const _0x2ce93b=this['bindTemplate'],_0x5be737=function(_0x37ab48,_0x244490){const _0x42592b=Array[_0x5ebd('0x15')](_0x244490[_0x5ebd('0x2a')])[_0x5ebd('0x19')](_0x482287=>_0x482287!=_0x244490['creator']);return _0x244490[_0x5ebd('0x21')]&&_0x42592b[_0x5ebd('0x13')](_0x244490['creator']),_0x42592b['map'](_0x5b6c85=>new _0x5cfa39(_0x37ab48,_0x5b6c85,_0x5b6c85==_0x244490[_0x5ebd('0x21')]));}(_0x151de3,_0x3a4329);this['id']=_0x3a4329['id'],this[_0x5ebd('0x24')]=_0x3a4329,this[_0x5ebd('0x27')](_0x5ebd('0x28'),_0x5ebd('0x26'))['to'](_0x3a4329),this[_0x5ebd('0x27')](_0x5ebd('0x22'))['to'](this,'createdAt',_0x142c8e=>_0x142c8e?_0x291644(_0x151de3[_0x5ebd('0x17')],_0x142c8e):void 0x0),this[_0x5ebd('0x6')]('isSelected',!0x1),this[_0x5ebd('0x6')](_0x5ebd('0x25'),!0x1),this[_0x5ebd('0x6')]('isActionsDropdownOpen',!0x1),this[_0x5ebd('0x6')]('isReady',!0x1),this[_0x5ebd('0x6')](_0x5ebd('0xf'),!0x1),this[_0x5ebd('0xd')]=new _0x353a96(_0x151de3,_0x9bab1f),this[_0x5ebd('0xd')]['fieldView'][_0x5ebd('0x9')]({'attributes':{'maxlength':_0x5ebd('0x7')}}),this[_0x5ebd('0xd')][_0x5ebd('0xe')][_0x5ebd('0x27')]('value',_0x5ebd('0x0'))['to'](this,_0x5ebd('0x28'),_0x5ebd('0x22')),this[_0x5ebd('0xd')]['bind']('isEnabled')['to'](this,_0x5ebd('0x2'),this,_0x5ebd('0xf'),(_0x56f34e,_0x2df336)=>_0x56f34e&&_0x2df336),this[_0x5ebd('0x8')]=_0x2fd898&&_0x2fd898[_0x5ebd('0xc')]?_0x1e745e(this,_0x2fd898):'',this[_0x5ebd('0x8')]&&this['revisionActionsView'][_0x5ebd('0x27')]('isEnabled')['to'](this),this['setTemplate']({'tag':_0x5ebd('0xa'),'attributes':{'class':['ck',_0x5ebd('0x1c'),_0x5ebd('0x1'),_0x2ce93b['if'](_0x5ebd('0x29'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x5ebd('0xa'),'attributes':{'class':['ck',_0x5ebd('0x1c'),_0x5ebd('0x10'),_0x2ce93b['if'](_0x5ebd('0xf'),'ck-disabled',_0x3d31db=>!_0x3d31db),_0x2ce93b['if']('isSelected',_0x5ebd('0x1a')),_0x2ce93b['if'](_0x5ebd('0x25'),_0x5ebd('0x14')),_0x2ce93b['if'](_0x5ebd('0x20'),_0x5ebd('0x12'))]},'children':[this[_0x5ebd('0xd')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x2ce93b['to'](_0x5ebd('0x22'))}]},{'tag':'div','attributes':{'class':['ck',_0x5ebd('0xb')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5ebd('0x5')]},'children':_0x5be737}]},this[_0x5ebd('0x8')]],'on':{'click':_0x2ce93b['to'](_0x27f52f=>{_0x27f52f[_0x5ebd('0x23')]['closest'](_0x5ebd('0x16'))||this['isReady']&&this[_0x5ebd('0xf')]&&this[_0x5ebd('0x3')](_0x5ebd('0x1b'),{'id':this['id']});})}}]});}[_0x5ebd('0x1d')](){super['render']();const _0x2a6b06=this[_0x5ebd('0xd')][_0x5ebd('0xe')][_0x5ebd('0x4')];this['listenTo'](_0x2a6b06,'change',()=>{this[_0x5ebd('0x3')](_0x5ebd('0x11'),{'id':this['id'],'name':_0x2a6b06['value']});});}[_0x5ebd('0x1b')](){this[_0x5ebd('0x2')]=!0x0;}[_0x5ebd('0x1f')](){this['isSelected']=!0x1;}[_0x5ebd('0x1e')](){this[_0x5ebd('0x25')]=!0x0;}[_0x5ebd('0x18')](){this[_0x5ebd('0x25')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29cd=['setTemplate','toggle','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser_collapsed','set','_isCollapsed','true','span','button','isVisible','false'];(function(_0x3e3494,_0x29cda6){const _0xaf5312=function(_0x2acbf5){while(--_0x2acbf5){_0x3e3494['push'](_0x3e3494['shift']());}};_0xaf5312(++_0x29cda6);}(_0x29cd,0x169));const _0xaf53=function(_0x3e3494,_0x29cda6){_0x3e3494=_0x3e3494-0x0;let _0xaf5312=_0x29cd[_0x3e3494];return _0xaf5312;};import{View as _0x2e1857}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2e1857{constructor(_0x4d8a5b){super(_0x4d8a5b);const _0x1d69cc=this['bindTemplate'];this[_0xaf53('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xaf53('0x2')]({'tag':_0xaf53('0x9'),'attributes':{'class':['ck',_0xaf53('0x4'),_0x1d69cc['if'](_0xaf53('0x0'),'ck-hidden',_0x457403=>!_0x457403),_0x1d69cc['if'](_0xaf53('0x7'),_0xaf53('0x5'))],'role':_0xaf53('0xa'),'aria-pressed':_0x1d69cc['to']('_isCollapsed',_0x431926=>_0x431926?_0xaf53('0x1'):_0xaf53('0x8'))},'children':[{'tag':_0xaf53('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x1d69cc['to']('click')}});}[_0xaf53('0x3')](){this[_0xaf53('0x7')]=!this['_isCollapsed'];}}
23
+ const _0x16f6=['click','toggle','_isCollapsed','false','button','ck-hidden','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','isVisible','set','true'];(function(_0x261c69,_0x16f6b9){const _0x33a900=function(_0x2b2a5f){while(--_0x2b2a5f){_0x261c69['push'](_0x261c69['shift']());}};_0x33a900(++_0x16f6b9);}(_0x16f6,0x104));const _0x33a9=function(_0x261c69,_0x16f6b9){_0x261c69=_0x261c69-0x0;let _0x33a900=_0x16f6[_0x261c69];return _0x33a900;};import{View as _0x438138}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x438138{constructor(_0x3e99b6){super(_0x3e99b6);const _0x4762bf=this['bindTemplate'];this[_0x33a9('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x4762bf['if'](_0x33a9('0x1'),_0x33a9('0x9'),_0x21caed=>!_0x21caed),_0x4762bf['if'](_0x33a9('0x6'),_0x33a9('0x0'))],'role':_0x33a9('0x8'),'aria-pressed':_0x4762bf['to'](_0x33a9('0x6'),_0x106237=>_0x106237?_0x33a9('0x7'):_0x33a9('0x3'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x33a9('0xa')]}}],'on':{'click':_0x4762bf['to'](_0x33a9('0x4'))}});}[_0x33a9('0x5')](){this['_isCollapsed']=!this[_0x33a9('0x6')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f85=['createdAt','_parentRevisionId','deselect','set','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','setTemplate','ck-revision-history-sidebar__revision_selected','bind','uiLanguage','div','fire','creator','select','_createdAtFormatted','isSelected','ck-revision-history-sidebar__revision'];(function(_0x2c1c81,_0x4f85dd){const _0x32fe9c=function(_0x8f60da){while(--_0x8f60da){_0x2c1c81['push'](_0x2c1c81['shift']());}};_0x32fe9c(++_0x4f85dd);}(_0x4f85,0x11d));const _0x32fe=function(_0x2c1c81,_0x4f85dd){_0x2c1c81=_0x2c1c81-0x0;let _0x32fe9c=_0x4f85[_0x2c1c81];return _0x32fe9c;};import{View as _0x41cc88}from'ckeditor5/src/ui';import _0x11a1a8 from'./revisionauthorview';import{dateToPrettyFormat as _0x5dff79}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x41cc88{constructor(_0x11b455,_0x330273,_0x1bcbe5){super(_0x11b455);const _0x101bca=this['bindTemplate'];this['id']=_0x330273['id'],this[_0x32fe('0xc')](_0x32fe('0x4'))['to'](_0x330273),this[_0x32fe('0x7')]('isSelected',!0x1),this['bind'](_0x32fe('0x1'))['to'](this,'createdAt',_0x3df5e5=>_0x3df5e5?_0x5dff79(_0x11b455[_0x32fe('0xd')],_0x3df5e5):void 0x0),this[_0x32fe('0x5')]=_0x1bcbe5,this[_0x32fe('0xa')]({'tag':_0x32fe('0xe'),'attributes':{'class':['ck','ck-reset',_0x32fe('0x3'),'ck-revision-history-sidebar__subrevision',_0x101bca['if'](_0x32fe('0x2'),_0x32fe('0xb'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x32fe('0x9')]},'children':[{'text':_0x101bca['to'](_0x32fe('0x1'))}]},{'tag':'ul','attributes':{'class':['ck',_0x32fe('0x8')]},'children':[new _0x11a1a8(_0x11b455,_0x330273[_0x32fe('0x10')],!0x0)]}],'on':{'click':_0x101bca['to'](this[_0x32fe('0x0')][_0x32fe('0xc')](this))}});}[_0x32fe('0x0')](){this['isSelected']=!0x0,this[_0x32fe('0xf')](_0x32fe('0x0'),{'parentId':this[_0x32fe('0x5')]});}[_0x32fe('0x6')](){this['isSelected']=!0x1;}}
23
+ const _0x1c3d=['_parentRevisionId','fire','ck-revision-history-sidebar__subrevision','ck-reset','bindTemplate','bind','isSelected','ck-revision-history-sidebar__revision','setTemplate','select','createdAt','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','span','set','_createdAtFormatted','deselect'];(function(_0x56bbf5,_0x1c3dec){const _0x1dc096=function(_0x189163){while(--_0x189163){_0x56bbf5['push'](_0x56bbf5['shift']());}};_0x1dc096(++_0x1c3dec);}(_0x1c3d,0x1d0));const _0x1dc0=function(_0x56bbf5,_0x1c3dec){_0x56bbf5=_0x56bbf5-0x0;let _0x1dc096=_0x1c3d[_0x56bbf5];return _0x1dc096;};import{View as _0x1db0d2}from'ckeditor5/src/ui';import _0x37e240 from'./revisionauthorview';import{dateToPrettyFormat as _0x4bc46c}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1db0d2{constructor(_0x97742c,_0x341f27,_0x46a148){super(_0x97742c);const _0x242be9=this[_0x1dc0('0x10')];this['id']=_0x341f27['id'],this[_0x1dc0('0x0')](_0x1dc0('0x5'))['to'](_0x341f27),this[_0x1dc0('0x9')](_0x1dc0('0x1'),!0x1),this[_0x1dc0('0x0')](_0x1dc0('0xa'))['to'](this,_0x1dc0('0x5'),_0x283e81=>_0x283e81?_0x4bc46c(_0x97742c['uiLanguage'],_0x283e81):void 0x0),this[_0x1dc0('0xc')]=_0x46a148,this[_0x1dc0('0x3')]({'tag':'div','attributes':{'class':['ck',_0x1dc0('0xf'),_0x1dc0('0x2'),_0x1dc0('0xe'),_0x242be9['if'](_0x1dc0('0x1'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1dc0('0x8'),'attributes':{'class':['ck',_0x1dc0('0x7')]},'children':[{'text':_0x242be9['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x1dc0('0x6')]},'children':[new _0x37e240(_0x97742c,_0x341f27['creator'],!0x0)]}],'on':{'click':_0x242be9['to'](this['select'][_0x1dc0('0x0')](this))}});}[_0x1dc0('0x4')](){this['isSelected']=!0x0,this[_0x1dc0('0xd')](_0x1dc0('0x4'),{'parentId':this[_0x1dc0('0xc')]});}[_0x1dc0('0xb')](){this[_0x1dc0('0x1')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4356=['numeric','toLocaleDateString','toLocaleTimeString','long'];(function(_0x5a0502,_0x4356d6){var _0x579e28=function(_0x4e5b7b){while(--_0x4e5b7b){_0x5a0502['push'](_0x5a0502['shift']());}};_0x579e28(++_0x4356d6);}(_0x4356,0x1de));var _0x579e=function(_0x5a0502,_0x4356d6){_0x5a0502=_0x5a0502-0x0;var _0x579e28=_0x4356[_0x5a0502];return _0x579e28;};export function dateToPrettyFormat(_0x3117a3,_0xffc4e9){return _0xffc4e9[_0x579e('0x3')](_0x3117a3,{'month':_0x579e('0x1'),'day':_0x579e('0x2')})+',\x20'+_0xffc4e9[_0x579e('0x0')](_0x3117a3,{'hour':'numeric','minute':'numeric'});}
23
+ var _0x48fc=['toLocaleTimeString','toLocaleDateString','numeric'];(function(_0x401dff,_0x48fc5a){var _0x313acc=function(_0x101d4e){while(--_0x101d4e){_0x401dff['push'](_0x401dff['shift']());}};_0x313acc(++_0x48fc5a);}(_0x48fc,0x171));var _0x313a=function(_0x401dff,_0x48fc5a){_0x401dff=_0x401dff-0x0;var _0x313acc=_0x48fc[_0x401dff];return _0x313acc;};export function dateToPrettyFormat(_0x18d1f1,_0x3771f8){return _0x3771f8[_0x313a('0x1')](_0x18d1f1,{'month':'long','day':_0x313a('0x2')})+',\x20'+_0x3771f8[_0x313a('0x0')](_0x18d1f1,{'hour':_0x313a('0x2'),'minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9476=['cancel','focusTracker','arrowdown','arrowright','input','value','set','listenTo','submit','revisionNameInputValue','_focusables','delegate','locale','Save','stopPropagation','_focusCycler','arrowleft','trim','execute','check','220','label','revisionNameInputView','keystrokes','element','render','cancelButtonView','add','ck-button-cancel','fieldView','shift\x20+\x20tab','Cancel','type','forEach','Name\x20of\x20the\x20revision\x20(optional)','saveButtonView','setTemplate','form','_createRevisionNameInput','focusFirst','revisionName'];(function(_0x14b21e,_0x9476a0){const _0x48d817=function(_0x2ff097){while(--_0x2ff097){_0x14b21e['push'](_0x14b21e['shift']());}};_0x48d817(++_0x9476a0);}(_0x9476,0xba));const _0x48d8=function(_0x14b21e,_0x9476a0){_0x14b21e=_0x14b21e-0x0;let _0x48d817=_0x9476[_0x14b21e];return _0x48d817;};import{icons as _0x39ea11}from'ckeditor5/src/core';import{ButtonView as _0x3f86f4,FocusCycler as _0x995f1b,LabeledFieldView as _0x50e9b4,View as _0x5ae435,ViewCollection as _0x1a3278,createLabeledInputText as _0x2c1112,injectCssTransitionDisabler as _0x36d9f9,submitHandler as _0x193364}from'ckeditor5/src/ui';import{FocusTracker as _0x5d1a54,KeystrokeHandler as _0xf032f4}from'ckeditor5/src/utils';import{getTranslation as _0x447db2}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5ae435{constructor(_0x49f289){super(_0x49f289),this['focusTracker']=new _0x5d1a54(),this[_0x48d8('0x1')]=new _0xf032f4(),this[_0x48d8('0x19')](_0x48d8('0x1c'),''),this[_0x48d8('0x0')]=this['_createRevisionNameInput'](),this[_0x48d8('0xd')]=this['_createButton'](_0x447db2(_0x49f289,_0x48d8('0x20')),_0x39ea11[_0x48d8('0x26')],'ck-button-save'),this['saveButtonView'][_0x48d8('0xa')]=_0x48d8('0x1b'),this[_0x48d8('0x4')]=this['_createButton'](_0x447db2(_0x49f289,_0x48d8('0x9')),_0x39ea11[_0x48d8('0x13')],_0x48d8('0x6'),_0x48d8('0x13')),this[_0x48d8('0x1d')]=new _0x1a3278(),this[_0x48d8('0x22')]=new _0x995f1b({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x48d8('0x1')],'actions':{'focusPrevious':_0x48d8('0x8'),'focusNext':'tab'}}),this[_0x48d8('0xe')]({'tag':_0x48d8('0xf'),'attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x48d8('0x0')],this['saveButtonView'],this[_0x48d8('0x4')]]}),_0x36d9f9(this);}[_0x48d8('0x3')](){super['render'](),_0x193364({'view':this}),([this[_0x48d8('0x0')],this[_0x48d8('0xd')],this[_0x48d8('0x4')]][_0x48d8('0xb')](_0x2c520c=>{this[_0x48d8('0x1d')][_0x48d8('0x5')](_0x2c520c),this[_0x48d8('0x14')][_0x48d8('0x5')](_0x2c520c[_0x48d8('0x2')]);}),this[_0x48d8('0x1')][_0x48d8('0x1a')](this[_0x48d8('0x2')]));const _0x540a9c=_0x2fcbc4=>_0x2fcbc4[_0x48d8('0x21')]();this[_0x48d8('0x1')][_0x48d8('0x19')](_0x48d8('0x16'),_0x540a9c),this[_0x48d8('0x1')][_0x48d8('0x19')](_0x48d8('0x23'),_0x540a9c),this[_0x48d8('0x1')][_0x48d8('0x19')]('arrowup',_0x540a9c),this[_0x48d8('0x1')][_0x48d8('0x19')](_0x48d8('0x15'),_0x540a9c);}['focus'](){this[_0x48d8('0x22')][_0x48d8('0x11')]();}get[_0x48d8('0x12')](){return this['revisionNameInputView'][_0x48d8('0x7')][_0x48d8('0x2')][_0x48d8('0x18')][_0x48d8('0x24')]();}set['revisionName'](_0xda5a05){this[_0x48d8('0x0')][_0x48d8('0x7')][_0x48d8('0x2')]['value']=_0xda5a05[_0x48d8('0x24')]();}['reset'](){this['revisionNameInputView'][_0x48d8('0x7')][_0x48d8('0x2')][_0x48d8('0x18')]='';}[_0x48d8('0x10')](){const _0x2ee734=new _0x50e9b4(this[_0x48d8('0x1f')],_0x2c1112),_0x62391e=_0x2ee734['fieldView'];return _0x62391e['extendTemplate']({'attributes':{'maxlength':_0x48d8('0x27')}}),_0x2ee734[_0x48d8('0x28')]=_0x447db2(this[_0x48d8('0x1f')],_0x48d8('0xc')),_0x62391e['on'](_0x48d8('0x17'),()=>{this['revisionNameInputValue']=_0x62391e[_0x48d8('0x2')][_0x48d8('0x18')][_0x48d8('0x24')]();}),_0x2ee734;}['_createButton'](_0x188812,_0x3457bb,_0x5ab0a9,_0x9482af){const _0xbf8f92=new _0x3f86f4(this[_0x48d8('0x1f')]);return _0xbf8f92[_0x48d8('0x19')]({'label':_0x188812,'icon':_0x3457bb,'tooltip':!0x0}),_0xbf8f92['extendTemplate']({'attributes':{'class':_0x5ab0a9}}),_0x9482af&&_0xbf8f92[_0x48d8('0x1e')](_0x48d8('0x25'))['to'](this,_0x9482af),_0xbf8f92;}}
23
+ const _0x147e=['trim','shift\x20+\x20tab','cancelButtonView','type','reset','check','value','input','locale','saveButtonView','focusTracker','delegate','tab','setTemplate','submit','forEach','form','220','arrowright','arrowleft','listenTo','label','keystrokes','_focusCycler','revisionName','stopPropagation','set','arrowup','fieldView','extendTemplate','arrowdown','revisionNameInputValue','focusFirst','ck-button-cancel','Cancel','add','_createButton','_focusables','render','element','execute','Save','_createRevisionNameInput','revisionNameInputView','ck-button-save','cancel'];(function(_0x1e3eca,_0x147e63){const _0x222240=function(_0x52957b){while(--_0x52957b){_0x1e3eca['push'](_0x1e3eca['shift']());}};_0x222240(++_0x147e63);}(_0x147e,0xe3));const _0x2222=function(_0x1e3eca,_0x147e63){_0x1e3eca=_0x1e3eca-0x0;let _0x222240=_0x147e[_0x1e3eca];return _0x222240;};import{icons as _0x3a89c0}from'ckeditor5/src/core';import{ButtonView as _0x4f5edb,FocusCycler as _0x54adb4,LabeledFieldView as _0x2e0aeb,View as _0x386e0d,ViewCollection as _0x30e463,createLabeledInputText as _0x271156,injectCssTransitionDisabler as _0x1740c3,submitHandler as _0x148737}from'ckeditor5/src/ui';import{FocusTracker as _0x207c53,KeystrokeHandler as _0x2b7b44}from'ckeditor5/src/utils';import{getTranslation as _0xfffc5}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x386e0d{constructor(_0x97a2a1){super(_0x97a2a1),this['focusTracker']=new _0x207c53(),this[_0x2222('0x19')]=new _0x2b7b44(),this['set'](_0x2222('0x22'),''),this[_0x2222('0x0')]=this[_0x2222('0x2d')](),this[_0x2222('0xc')]=this[_0x2222('0x27')](_0xfffc5(_0x97a2a1,_0x2222('0x2c')),_0x3a89c0[_0x2222('0x8')],_0x2222('0x1')),this[_0x2222('0xc')][_0x2222('0x6')]=_0x2222('0x11'),this[_0x2222('0x5')]=this[_0x2222('0x27')](_0xfffc5(_0x97a2a1,_0x2222('0x25')),_0x3a89c0['cancel'],_0x2222('0x24'),_0x2222('0x2')),this['_focusables']=new _0x30e463(),this[_0x2222('0x1a')]=new _0x54adb4({'focusables':this[_0x2222('0x28')],'focusTracker':this[_0x2222('0xd')],'keystrokeHandler':this[_0x2222('0x19')],'actions':{'focusPrevious':_0x2222('0x4'),'focusNext':_0x2222('0xf')}}),this[_0x2222('0x10')]({'tag':_0x2222('0x13'),'attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x2222('0x0')],this[_0x2222('0xc')],this[_0x2222('0x5')]]}),_0x1740c3(this);}['render'](){super[_0x2222('0x29')](),_0x148737({'view':this}),([this[_0x2222('0x0')],this[_0x2222('0xc')],this['cancelButtonView']][_0x2222('0x12')](_0x3c27f5=>{this[_0x2222('0x28')][_0x2222('0x26')](_0x3c27f5),this[_0x2222('0xd')][_0x2222('0x26')](_0x3c27f5['element']);}),this[_0x2222('0x19')][_0x2222('0x17')](this[_0x2222('0x2a')]));const _0x30f72c=_0x3889e5=>_0x3889e5[_0x2222('0x1c')]();this['keystrokes'][_0x2222('0x1d')](_0x2222('0x15'),_0x30f72c),this[_0x2222('0x19')][_0x2222('0x1d')](_0x2222('0x16'),_0x30f72c),this[_0x2222('0x19')][_0x2222('0x1d')](_0x2222('0x1e'),_0x30f72c),this[_0x2222('0x19')][_0x2222('0x1d')](_0x2222('0x21'),_0x30f72c);}['focus'](){this[_0x2222('0x1a')][_0x2222('0x23')]();}get['revisionName'](){return this[_0x2222('0x0')][_0x2222('0x1f')]['element'][_0x2222('0x9')][_0x2222('0x3')]();}set[_0x2222('0x1b')](_0x2e716a){this[_0x2222('0x0')][_0x2222('0x1f')]['element'][_0x2222('0x9')]=_0x2e716a[_0x2222('0x3')]();}[_0x2222('0x7')](){this[_0x2222('0x0')][_0x2222('0x1f')][_0x2222('0x2a')][_0x2222('0x9')]='';}['_createRevisionNameInput'](){const _0x36296e=new _0x2e0aeb(this[_0x2222('0xb')],_0x271156),_0x2a5017=_0x36296e['fieldView'];return _0x2a5017[_0x2222('0x20')]({'attributes':{'maxlength':_0x2222('0x14')}}),_0x36296e[_0x2222('0x18')]=_0xfffc5(this[_0x2222('0xb')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x2a5017['on'](_0x2222('0xa'),()=>{this[_0x2222('0x22')]=_0x2a5017['element']['value'][_0x2222('0x3')]();}),_0x36296e;}['_createButton'](_0x592022,_0x4af3f5,_0x10450f,_0x408fbf){const _0x3e9a25=new _0x4f5edb(this[_0x2222('0xb')]);return _0x3e9a25[_0x2222('0x1d')]({'label':_0x592022,'icon':_0x4af3f5,'tooltip':!0x0}),_0x3e9a25[_0x2222('0x20')]({'attributes':{'class':_0x10450f}}),_0x408fbf&&_0x3e9a25[_0x2222('0xe')](_0x2222('0x2b'))['to'](this,_0x408fbf),_0x3e9a25;}}