@ckeditor/ckeditor5-revision-history 31.1.0 → 32.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/README.md +2 -2
- package/lang/contexts.json +23 -22
- package/lang/translations/az.po +27 -23
- package/lang/translations/bs.po +124 -0
- package/lang/translations/cs.po +27 -23
- package/lang/translations/da.po +27 -23
- package/lang/translations/de-ch.po +27 -23
- package/lang/translations/de.po +50 -46
- package/lang/translations/en-au.po +27 -23
- package/lang/translations/en-gb.po +27 -23
- package/lang/translations/en.po +27 -23
- package/lang/translations/es.po +36 -32
- package/lang/translations/et.po +27 -23
- package/lang/translations/fa.po +27 -23
- package/lang/translations/fr.po +31 -27
- package/lang/translations/gl.po +50 -46
- package/lang/translations/he.po +27 -23
- package/lang/translations/hi.po +27 -23
- package/lang/translations/hr.po +49 -45
- package/lang/translations/hu.po +33 -29
- package/lang/translations/id.po +38 -34
- package/lang/translations/it.po +50 -46
- package/lang/translations/ja.po +27 -23
- package/lang/translations/ko.po +27 -23
- package/lang/translations/ku.po +27 -23
- package/lang/translations/lv.po +27 -23
- package/lang/translations/ne.po +27 -23
- package/lang/translations/nl.po +48 -44
- package/lang/translations/no.po +27 -23
- package/lang/translations/pl.po +52 -48
- package/lang/translations/pt-br.po +50 -46
- package/lang/translations/ro.po +49 -45
- package/lang/translations/ru.po +27 -23
- package/lang/translations/sk.po +27 -23
- package/lang/translations/sr-latn.po +48 -44
- package/lang/translations/sr.po +48 -44
- package/lang/translations/tk.po +27 -23
- package/lang/translations/tr.po +45 -41
- package/lang/translations/ug.po +27 -23
- package/lang/translations/uk.po +27 -23
- package/lang/translations/vi.po +27 -23
- package/lang/translations/zh-cn.po +27 -23
- package/lang/translations/zh.po +28 -24
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +2 -2
- package/src/revisionhistory.js +2 -2
- package/src/revisionsrepository.js +2 -2
- package/src/revisiontracker.js +2 -2
- package/src/revisionviewer.js +2 -2
- package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
- package/src/ui/revision/revisionauthorview.js +2 -2
- package/src/ui/revision/revisionnameview.js +2 -2
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +2 -2
- package/src/ui/revision/subrevisionview.js +2 -2
- package/src/ui/revision/utils.js +2 -2
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
- package/src/ui/revisionssidebar/utils.js +2 -2
- package/src/ui/revisionviewer/changedetailsview.js +2 -2
- package/src/ui/revisionviewer/changesnavigationview.js +2 -2
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
- package/src/ui/revisionviewer/revisionviewerui.js +2 -2
- package/theme/revisionhistorysaverevisionform.css +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4174=['target','startsWith','getWalker','string','item','highest','getRevisionData','_markMismatchedRemovedTags','isInline','_changeIdToChange','ck-suggestion-marker-merge','diff','ck-suggestion-marker--active','toViewElement','parse','_makeModelFromViewString','authors','compare','keys','clearForceDisabled','change:activeChange','end','previousPosition','_processTape','getRootNames','isBefore','POSITIVE_INFINITY','RevisionViewer','markerToHighlight','ck-suggestion-marker-','ck-editor__editable__overlay','abs','consumable','markers','length','getIndex','index','unshift','-new','useFillerType','downcastDispatcher','from','getAttributes','isRemoved','selection','side','isContent','_getRevisionsRange','_step','markerName','toModel','_getViewForChange','test','type','change:isReady','for','uiElement','bindElementToMarker','refresh','hasAttribute','bind','createPositionBefore','elementEnd','getShiftedBy','isAfter','plugins','_initInteractions','map','repository','clear','first','ck-suggestion-marker','object','level','endIndex','markerToData','set','elementStart','currentChangeNumber','data','revisionHistory','add','name','removeClass','nextPosition','document','concat','pluginName','markerRange','low','_removeMissingPairs','_target','suggestion','addMarker:suggestion:insertion','change:isReadOnly','activeChange','createPositionAfter','mapper','upcast','_changeView','_markSuggestions','restoreRevisionCallback','markersEnd','isNavigationMode','setAttribute','change','isLimit','listenTo','dataToMarker','_setDistance','view','findIndex','changes','resolve','toViewRange','locale','all','nodeAfter','_getViewObj','attribute:vid','isSuggestion','start','modelRange','revision','isAdded','values','_setConversion','newRevisionId','addClass','ck-suggestion-preview-marker','_threeWayMerge','_refreshStartEndIndex','getRevision','split','isBlock','checkAttribute','init','adapter','_cleanUp','catch','getItems','isReady','readOnlyMode','nextSibling','return','createUIElement','_setData','vid','removeMarker:revision','unbindElementFromMarkerName','addHighlight','toViewPosition','change:activeView','forward','_makeTape','isEnabled','remove','hasClass','parent','enqueueChange','_fixObsoleteTags','toData','schema','userId','vid_end','sort','commands','isReadOnly','deletion','_getDiff','high','softBreak','insertion','viewItem','writer','markersStart','getCustomProperty','attributes','destroy','shift','loadRevisionData','isObject','isAtEnd','processor','isCollapsed','roots','activeView','splice','markerNameToElements','numberOfChanges','_removeUnsupportedChanges','then','showStack','change:numberOfChanges','push','createAttributeElement','code','element','editing','has','isAddSuggestion','isAtStart','filter','isIncorrect','isEqual','insertions','htmlProcessor','_revisions','getAttribute','deletions','ck-suggestion-marker-split','change:isEnabled','_getChangeFromId','_joinTapes','showPreviousChange','pairId','_cleanMarkers','elementToAttribute','observeMarkers','_makeModelFromTape','range','addMarker:revision','span','removeMarker','createPositionAt','execute','distance','get','_markInsertions','_markMarkers','_balloon','insert','marked','revision:','consume','model','updateMarker','RevisionsRepository','dataDowncast','_findChangeIdFromDomTarget','showNextChange','startIndex','forEach','vid_start','getChild','createRange','offsetSize','editor','merge','conversion'];(function(_0x5be299,_0x4174e7){const _0x4c1316=function(_0x1a8215){while(--_0x1a8215){_0x5be299['push'](_0x5be299['shift']());}};_0x4c1316(++_0x4174e7);}(_0x4174,0x7c));const _0x4c13=function(_0x5be299,_0x4174e7){_0x5be299=_0x5be299-0x0;let _0x4c1316=_0x4174[_0x5be299];return _0x4c1316;};import _0x158e40 from'@ckeditor/ckeditor5-collaboration-core/src/users';import{Plugin as _0x4f2c22,Command as _0x333c3e}from'ckeditor5/src/core';import{ObservableMixin as _0x2c438c,mix as _0x27575c}from'ckeditor5/src/utils';import _0x6b3fc3 from'@ckeditor/ckeditor5-engine/src/model/documentfragment';import _0x45045b from'@ckeditor/ckeditor5-engine/src/model/element';import _0x32bc1a from'@ckeditor/ckeditor5-engine/src/model/text';import _0x134257 from'@ckeditor/ckeditor5-engine/src/view/documentfragment';import _0x4a3df6 from'@ckeditor/ckeditor5-engine/src/view/text';import _0x20dab0 from'@ckeditor/ckeditor5-engine/src/view/element';import{_insert as _0x23a5c6}from'@ckeditor/ckeditor5-engine/src/model/operation/utils';import _0x4d9b1c from'./ui/revisionviewer/changedetailsview';import _0x4cec3c from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import{scrollViewportToShowTarget as _0x4592af}from'@ckeditor/ckeditor5-utils/src/dom/scroll';import{ContextualBalloon as _0x49151c}from'ckeditor5/src/ui';import _0x2163f9 from'./revisionsrepository';import _0x33925b from'./changeitem';import _0x3f97b1 from'./revisiondiff';import'../theme/revisionviewer.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestion.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestionmarker.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/horizontalline.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/image.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/mediaembed.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/pagebreak.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/table.css';export default class d extends _0x4f2c22{static get[_0x4c13('0xd5')](){return _0x4c13('0x99');}static get['requires'](){return[_0x158e40,_0x49151c,_0x2163f9];}constructor(..._0x1b9222){super(..._0x1b9222),this['repository']=this[_0x4c13('0x7b')][_0x4c13('0xbf')]['get'](_0x4c13('0x71')),this[_0x4c13('0xca')]('activeChange',null),this[_0x4c13('0xca')](_0x4c13('0x3e'),null),this['set'](_0x4c13('0x89'),null),this['set']('isReady',!0x1),this[_0x4c13('0xca')](_0x4c13('0x1f'),!0x0),this['on'](_0x4c13('0x57'),(_0x45fff3,_0x74e558,_0x5dfab6)=>{this[_0x4c13('0xdd')]=null,this[_0x4c13('0x3e')]=null,this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xec')][_0x4c13('0xe7')](_0x2c4fa4=>{for(const _0x77e58c of this['editor'][_0x4c13('0x4a')][_0x4c13('0xec')]['document'][_0x4c13('0x3d')])_0x5dfab6?_0x2c4fa4[_0x4c13('0xd1')]('ck-editor__editable__overlay',_0x77e58c):_0x2c4fa4[_0x4c13('0x4')](_0x4c13('0x9c'),_0x77e58c);});}),this[_0x4c13('0xba')](_0x4c13('0xe5'))['to'](this,'activeChange',_0x473df6=>null!==_0x473df6),this[_0x4c13('0xba')](_0x4c13('0xcc'))['to'](this,'isReady',this,_0x4c13('0x89'),this,_0x4c13('0xdd'),(_0x6e1719,_0x2aab65,_0x4d9183)=>_0x6e1719&&_0x4d9183?_0x2aab65[_0x4c13('0xee')]['getIndex'](_0x4d9183):0x0),this['bind'](_0x4c13('0x41'))['to'](this,'isReady',this,_0x4c13('0x89'),(_0x5d1791,_0x431346)=>_0x5d1791?_0x431346[_0x4c13('0xee')][_0x4c13('0xa0')]:0x0),this['_changeView']=null,this[_0x4c13('0x87')]=new Map(),this[_0x4c13('0xd')]=null,this[_0x4c13('0x6a')]=this[_0x4c13('0x7b')][_0x4c13('0xbf')][_0x4c13('0x67')](_0x49151c);}[_0x4c13('0xc')](){const _0x1ba41f=this[_0x4c13('0x7b')];_0x1ba41f[_0x4c13('0xcd')][_0x4c13('0x52')][_0x4c13('0xa5')](_0x4c13('0x6c'));const _0x38bce4=new q(_0x1ba41f,{'direction':'backward'}),_0x52d238=new q(_0x1ba41f,{'direction':'forward'});_0x1ba41f['commands'][_0x4c13('0xcf')](_0x4c13('0x5a'),_0x38bce4),_0x1ba41f[_0x4c13('0x2a')]['add'](_0x4c13('0x74'),_0x52d238),_0x1ba41f[_0x4c13('0x2a')][_0x4c13('0xcf')]('restoreRevision',new L(_0x1ba41f)),this['on'](_0x4c13('0x45'),()=>{_0x38bce4[_0x4c13('0xb8')](),_0x52d238[_0x4c13('0xb8')]();}),this[_0x4c13('0x2')](),this[_0x4c13('0xc0')](),_0x1ba41f[_0x4c13('0x2b')]=!0x0;}async[_0x4c13('0x84')](_0x2b419d){await this['loadRevisionData'](_0x2b419d);const _0x4f5e3c={};for(const _0x366d13 in _0x2b419d[_0x4c13('0xcd')]){const _0x43d53c=JSON['parse'](_0x2b419d['data'][_0x366d13][_0x4c13('0x51')]),_0x52fffa=this[_0x4c13('0x7b')]['editing'][_0x4c13('0xec')][_0x4c13('0xd3')],_0x284f37=new _0x134257(_0x52fffa,_0x43d53c[_0x4c13('0xc1')](_0x4c0403=>this[_0x4c13('0xf4')](_0x4c0403)));_0x4f5e3c[_0x366d13]=this[_0x4c13('0x7b')]['data'][_0x4c13('0x3b')][_0x4c13('0x25')](_0x284f37);}return _0x4f5e3c;}[_0x4c13('0x8f')](_0x4d4161,_0x3b4b2b,_0x35745d=!0x1){if(!this[_0x4c13('0x1f')])return;const _0x1d5a4d=this[_0x4c13('0xc2')],_0x87f675=_0x4c13('0x81')==typeof _0x4d4161?_0x1d5a4d['getRevision'](_0x4d4161):_0x4d4161,_0x4c63f8=_0x4c13('0x81')==typeof _0x3b4b2b?_0x1d5a4d['getRevision'](_0x3b4b2b):_0x3b4b2b,_0xe8498b=_0x87f675['id'],_0x2e773a=_0x4c63f8?_0x4c63f8['id']:null;if(!_0x35745d&&this['diff']&&this[_0x4c13('0x89')][_0x4c13('0x3')]===_0xe8498b&&this[_0x4c13('0x89')]['oldRevisionId']===_0x2e773a)return Promise[_0x4c13('0xef')]();this[_0x4c13('0x11')]=!0x1,this['activeView']=null,this[_0x4c13('0x89')]=new _0x3f97b1(_0xe8498b,_0x2e773a);const _0x1d870f=this[_0x4c13('0xad')](_0x87f675,_0x4c63f8,!0x0)[_0x4c13('0xc1')](_0x3fd391=>this[_0x4c13('0x38')](_0x3fd391));return _0x1d870f[_0x4c13('0x46')](new Promise(_0x26acdf=>{setTimeout(_0x26acdf,0x14);})),Promise[_0x4c13('0xf2')](_0x1d870f)['then'](()=>{if(!this[_0x4c13('0x1f')])return;this[_0x4c13('0xe')]();const _0x58877b=this['_getDiff'](_0xe8498b,_0x2e773a);this[_0x4c13('0x89')][_0x4c13('0x16')](_0x58877b);for(const _0x28458a of this['diff'][_0x4c13('0xee')])this[_0x4c13('0x87')][_0x4c13('0xca')](_0x28458a['id'],_0x28458a);this['editor'][_0x4c13('0x6f')][_0x4c13('0x23')]('transparent',_0x25d665=>{for(const _0x50ce92 of Object[_0x4c13('0x90')](_0x58877b[_0x4c13('0x6f')])){const _0xa8f4ef=this['editor'][_0x4c13('0x6f')][_0x4c13('0xd3')]['getRoot'](_0x50ce92);_0x25d665['remove'](_0x25d665['createRangeIn'](_0xa8f4ef)),_0x25d665['insert'](_0x58877b[_0x4c13('0x6f')][_0x50ce92],_0xa8f4ef,0x0);}}),this[_0x4c13('0x11')]=!0x0;})[_0x4c13('0xf')](_0x5cb04e=>{console['error'](_0x5cb04e),this[_0x4c13('0x11')]=!0x0;});}[_0x4c13('0x36')](){this[_0x4c13('0x3e')]=null,this[_0x4c13('0xe1')]&&this[_0x4c13('0xe1')]['destroy']();}[_0x4c13('0x38')](_0x2031bf){return!_0x2031bf||_0x2031bf['data']?Promise[_0x4c13('0xef')]():this[_0x4c13('0xd')][_0x4c13('0x8')]({'revisionId':_0x2031bf['id']})[_0x4c13('0x43')](_0x5107a0=>{_0x2031bf['data']=_0x5107a0[_0x4c13('0xcd')];});}['_cleanUp'](){this[_0x4c13('0xdd')]=null,this[_0x4c13('0x5c')](),this[_0x4c13('0xe1')]&&this['_changeView'][_0x4c13('0x36')](),this['_changeView']=null,this[_0x4c13('0x87')][_0x4c13('0xc3')]();}[_0x4c13('0x1e')](_0x1df1e5){const _0x573107=Array['from'](_0x1df1e5[_0x4c13('0x9f')])[_0x4c13('0x4e')](([_0x378436,_0x256578])=>_0x378436[_0x4c13('0x7f')](_0x4c13('0x6d'))&&!_0x256578[_0x4c13('0x3c')]),_0x348322=Array[_0x4c13('0xa7')](this[_0x4c13('0x7b')][_0x4c13('0x6f')]['createRangeIn'](_0x1df1e5)[_0x4c13('0x80')]({'singleCharacters':!0x0}));if(0x0!=_0x573107[_0x4c13('0xa0')])for(const _0x13df4e of _0x348322){const [_0xd9ef36,_0x1f8830]=_0x573107[0x0],[,_0x397c3d,_0x30c505]=_0xd9ef36['split'](':');if(_0x1f8830[_0x4c13('0x93')][_0x4c13('0x50')](_0x13df4e[_0x4c13('0xd2')])&&_0x573107[_0x4c13('0x37')](),(_0x13df4e['previousPosition'][_0x4c13('0x50')](_0x1f8830[_0x4c13('0xf7')])||_0x13df4e['previousPosition'][_0x4c13('0xbe')](_0x1f8830['start']))&&(_0x4c13('0x30')==_0x397c3d?_0x13df4e[_0x4c13('0x0')]={'userId':_0x30c505}:_0x4c13('0x2c')==_0x397c3d&&(_0x13df4e[_0x4c13('0xa9')]={'userId':_0x30c505})),0x0==_0x573107[_0x4c13('0xa0')])break;}return _0x348322;}[_0x4c13('0x7')](_0x4671bd){const _0x2472ba=new Map();for(let _0x575701=0x0;_0x575701<_0x4671bd[_0x4c13('0xa0')];_0x575701++)'text'===_0x4671bd[_0x575701]['type']?(_0x4671bd[_0x575701][_0x4c13('0x82')]['startIndex']=_0x575701,_0x4671bd[_0x575701][_0x4c13('0x82')][_0x4c13('0xc8')]=_0x575701):(_0x4c13('0xcb')===_0x4671bd[_0x575701][_0x4c13('0xb3')]?_0x4671bd[_0x575701][_0x4c13('0x82')][_0x4c13('0x75')]=_0x575701:'elementEnd'===_0x4671bd[_0x575701]['type']&&(_0x4671bd[_0x575701][_0x4c13('0x82')]['endIndex']=_0x575701),_0x2472ba[_0x4c13('0xca')](_0x4671bd[_0x575701]['id'],_0x575701));for(const _0x5d1f00 of _0x2472ba[_0x4c13('0x1')]())_0x4c13('0xcb')===_0x4671bd[_0x5d1f00][_0x4c13('0xb3')]?_0x4671bd[_0x5d1f00][_0x4c13('0x82')][_0x4c13('0xc8')]=_0x2472ba[_0x4c13('0x67')](_0x4671bd[_0x5d1f00][_0x4c13('0x5b')]):'elementEnd'===_0x4671bd[_0x5d1f00][_0x4c13('0xb3')]&&(_0x4671bd[_0x5d1f00][_0x4c13('0x82')][_0x4c13('0x75')]=_0x2472ba[_0x4c13('0x67')](_0x4671bd[_0x5d1f00][_0x4c13('0x5b')]));}[_0x4c13('0x95')](_0x13e1fb){for(let _0xc67fe9=0x0;_0xc67fe9<_0x13e1fb[_0x4c13('0xa0')];_0xc67fe9++){if('elementStart'===_0x13e1fb[_0xc67fe9][_0x4c13('0xb3')])_0x13e1fb[_0xc67fe9][_0x4c13('0x82')]['startIndex']=_0xc67fe9;else{if(_0x4c13('0xbc')===_0x13e1fb[_0xc67fe9][_0x4c13('0xb3')]){_0x13e1fb[_0xc67fe9][_0x4c13('0x82')][_0x4c13('0xc8')]=_0xc67fe9;const _0x59c7b2=_0x13e1fb[_0xc67fe9]['item']['startIndex'];_0x13e1fb[_0x59c7b2][_0x4c13('0x5b')]=_0x13e1fb[_0xc67fe9]['id'],_0x13e1fb[_0xc67fe9][_0x4c13('0x5b')]=_0x13e1fb[_0x59c7b2]['id'];}else _0x13e1fb[_0xc67fe9][_0x4c13('0x82')][_0x4c13('0x75')]=_0xc67fe9,_0x13e1fb[_0xc67fe9][_0x4c13('0x82')][_0x4c13('0xc8')]=_0xc67fe9,_0x13e1fb[_0xc67fe9][_0x4c13('0x5b')]=null;}_0x13e1fb[_0xc67fe9][_0x4c13('0x33')]||(_0x13e1fb[_0xc67fe9][_0x4c13('0x33')]=[],_0x13e1fb[_0xc67fe9][_0x4c13('0xe4')]=[]);}}[_0x4c13('0x68')](_0x4f5603,_0x22c85e){const _0x3aa805=_0x4f5603[_0x4c13('0x4e')](_0x2f9936=>!_0x2f9936[_0x4c13('0x0')]);for(let _0x4281b2=0x0;_0x4281b2<_0x22c85e[_0x4c13('0xa0')];_0x4281b2++)_0x22c85e[_0x4281b2][_0x4c13('0x0')]&&(_0x3aa805[_0x4281b2][_0x4c13('0x0')]=_0x22c85e[_0x4281b2][_0x4c13('0x0')]);}[_0x4c13('0x8d')](_0x246d1b){const _0x1a494b=JSON[_0x4c13('0x8c')](_0x246d1b),_0x5dca3f=this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xec')][_0x4c13('0xd3')],_0x3ae27b=new _0x134257(_0x5dca3f,_0x1a494b[_0x4c13('0xc1')](_0x3d343f=>this[_0x4c13('0xf4')](_0x3d343f)));return this[_0x4c13('0x7b')][_0x4c13('0xcd')][_0x4c13('0xb0')](_0x3ae27b);}[_0x4c13('0xf4')](_0xe49c98){const _0x26a2c4=this[_0x4c13('0x7b')]['editing'][_0x4c13('0xec')][_0x4c13('0xd3')];if(_0x4c13('0x81')==typeof _0xe49c98)return new _0x4a3df6(_0x26a2c4,_0xe49c98);{const _0x5657d3=_0xe49c98['children'][_0x4c13('0xc1')](_0x33f88a=>this[_0x4c13('0xf4')](_0x33f88a));return new _0x20dab0(_0x26a2c4,_0xe49c98[_0x4c13('0xd0')],_0xe49c98[_0x4c13('0x35')],_0x5657d3);}}[_0x4c13('0x2d')](_0x4cb498,_0x1f9a28=null){const _0x1119ff=this[_0x4c13('0xc2')]['getRevision'](_0x4cb498),_0x4a8461=_0x1f9a28?this[_0x4c13('0xc2')]['getRevision'](_0x1f9a28):null,_0x43d3b7=this[_0x4c13('0xad')](_0x1119ff,_0x4a8461),_0x7f6d9f=_0x43d3b7[_0x43d3b7[_0x4c13('0xa0')]-0x1],_0x30bb33=new Map();for(const _0x5b127a of _0x43d3b7){_0x5b127a[_0x4c13('0x6f')]={};for(const _0x174866 of _0x5b127a[_0x4c13('0x8e')])_0x30bb33['set'](_0x174866['id'],_0x174866);for(const _0x11aea3 of this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0xd3')][_0x4c13('0x96')]())_0x5b127a['data'][_0x11aea3]||(_0x5b127a['data'][_0x11aea3]={'insertions':'[]','deletions':'[]'}),_0x5b127a[_0x4c13('0x6f')][_0x11aea3]={'insertions':this[_0x4c13('0x8d')](_0x5b127a[_0x4c13('0xcd')][_0x11aea3][_0x4c13('0x51')]),'deletions':this['_makeModelFromViewString'](_0x5b127a[_0x4c13('0xcd')][_0x11aea3][_0x4c13('0x55')])};}const _0xb47703={'model':{},'changes':[]};for(const _0x33190e of this[_0x4c13('0x7b')]['model'][_0x4c13('0xd3')][_0x4c13('0x96')]()){let _0x3b12ea=null,_0x5bb023=0x0;const _0xa011a1=new Map(Array[_0x4c13('0xa7')](_0x1119ff[_0x4c13('0x6f')][_0x33190e][_0x4c13('0x51')][_0x4c13('0x9f')])[_0x4c13('0x4e')](([_0x5d18dc])=>!_0x5d18dc[_0x4c13('0x7f')](_0x4c13('0x6d'))));let _0x47ca53=0x0;for(const _0x422510 of _0x43d3b7){const _0x5c20b7=this[_0x4c13('0x1e')](_0x422510[_0x4c13('0x6f')][_0x33190e][_0x4c13('0x51')]);_0x422510==_0x1119ff?(_0x3b12ea=_0x5c20b7,_0x5bb023=_0x3b12ea[_0x4c13('0xa0')],_0x3b12ea[_0x4c13('0x76')](_0x8dd205=>{_0x8dd205['id']=_0x47ca53++;}),this[_0x4c13('0x95')](_0x3b12ea)):this[_0x4c13('0x68')](_0x3b12ea,_0x5c20b7);const _0x49cc39=_0x3b12ea[_0x4c13('0x4e')](_0x81eba0=>!_0x81eba0[_0x4c13('0x0')])[_0x4c13('0xc1')](_0x4fb2b9=>_0x4fb2b9['id']),_0x3efba3=this[_0x4c13('0x1e')](_0x422510[_0x4c13('0x6f')][_0x33190e]['deletions']);_0x3efba3[_0x4c13('0x76')](_0x2a2d6a=>{_0x2a2d6a[_0x4c13('0xa9')]?_0x2a2d6a['id']=_0x5bb023++:_0x2a2d6a['id']=_0x49cc39[_0x4c13('0x37')]();}),this[_0x4c13('0x95')](_0x3efba3),this[_0x4c13('0xeb')](_0x3b12ea,_0x4c13('0x0')),this[_0x4c13('0xeb')](_0x3efba3,_0x4c13('0xa9')),_0x422510==_0x1119ff&&this[_0x4c13('0x69')](_0x3b12ea,_0xa011a1),_0x3b12ea=this['_joinTapes'](_0x3b12ea,_0x3efba3),this['_refreshStartEndIndex'](_0x3b12ea),this[_0x4c13('0xeb')](_0x3b12ea,'isRemoved');}_0x3b12ea=_0x3b12ea[_0x4c13('0x4e')](_0x451cb1=>!(_0x451cb1[_0x4c13('0x0')]&&_0x451cb1['isRemoved']));const _0x27e9c0=new Map(_0x7f6d9f[_0x4c13('0x6f')][_0x33190e][_0x4c13('0x55')]['markers']),_0x1dab93=new Set(_0xa011a1[_0x4c13('0x90')]());for(const _0x1f8f18 of _0x27e9c0[_0x4c13('0x90')]())_0x1dab93['delete'](_0x1f8f18);this[_0x4c13('0xe2')](_0x3b12ea,_0x1dab93),this['_fixObsoleteTags'](_0x3b12ea),_0x3b12ea=this[_0x4c13('0xd8')](_0x3b12ea),_0x3b12ea=this[_0x4c13('0x85')](_0x3b12ea),_0x3b12ea=this[_0x4c13('0x42')](_0x3b12ea);const {root:_0x3ffd15,changes:_0x379c21}=this[_0x4c13('0x5f')](_0x3b12ea,_0x30bb33);_0xb47703[_0x4c13('0x6f')][_0x33190e]=_0x3ffd15,_0xb47703[_0x4c13('0xee')]=_0xb47703[_0x4c13('0xee')]['concat'](_0x379c21);}return _0xb47703;}[_0x4c13('0x69')](_0x41ca1b,_0x5db2b7){for(let _0xcacca3=0x0;_0xcacca3<_0x41ca1b[_0x4c13('0xa0')];_0xcacca3++)for(const [_0x55cd8a,_0x40f6a5]of _0x5db2b7)_0x40f6a5['start'][_0x4c13('0x50')](_0x41ca1b[_0xcacca3][_0x4c13('0x94')])&&_0x41ca1b[_0xcacca3][_0x4c13('0x33')]['push'](_0x55cd8a),_0x40f6a5[_0x4c13('0x93')][_0x4c13('0x50')](_0x41ca1b[_0xcacca3][_0x4c13('0xd2')])&&_0x41ca1b[_0xcacca3]['markersEnd']['push'](_0x55cd8a);}[_0x4c13('0x59')](_0xb541a7,_0x426b7a){let _0x263710=[],_0x224df7=0x0,_0x5c3e8c=0x0;for(;_0x224df7<_0xb541a7['length']||_0x5c3e8c<_0x426b7a[_0x4c13('0xa0')];){const _0x3bf078=_0xb541a7[_0x224df7]||{},_0x174d26=_0x426b7a[_0x5c3e8c]||{};if(_0x3bf078['id']==_0x174d26['id'])_0x224df7++,_0x5c3e8c++,_0x263710[_0x4c13('0x46')](_0x3bf078);else{if(_0x174d26['isRemoved']&&_0x3bf078[_0x4c13('0x0')]){const {commonTape:_0x1c531f,iEnd:_0x1f4bcf,jEnd:_0x39f88f}=this[_0x4c13('0x6')](_0xb541a7,_0x224df7,_0x426b7a,_0x5c3e8c);_0x263710=_0x263710['concat'](_0x1c531f),_0x224df7=_0x1f4bcf,_0x5c3e8c=_0x39f88f;}else _0x174d26[_0x4c13('0xa9')]?(_0x5c3e8c++,_0x263710[_0x4c13('0x46')](_0x174d26)):(_0x224df7++,_0x263710[_0x4c13('0x46')](_0x3bf078));}}return _0x263710;}[_0x4c13('0xe2')](_0x5a41a7,_0x285acf){const _0x2c1efc=[];for(let _0x197337=0x0;_0x197337<_0x5a41a7[_0x4c13('0xa0')];_0x197337++){for(let _0x57460c=0x0;_0x57460c<_0x5a41a7[_0x197337]['markersStart']['length'];_0x57460c++){const _0x46e6a0=_0x5a41a7[_0x197337][_0x4c13('0x33')][_0x57460c];if(!_0x285acf[_0x4c13('0x4b')](_0x46e6a0))continue;const {group:_0x512c8a,type:_0x3bc0ad,authorId:_0x31a5d0}=_0x127052(_0x46e6a0);_0x4c13('0xda')!=_0x512c8a||_0x4c13('0x30')!=_0x3bc0ad&&'deletion'!=_0x3bc0ad||(_0x2c1efc[_0x4c13('0xa3')]({'type':_0x3bc0ad,'name':_0x46e6a0,'userId':_0x31a5d0}),_0x5a41a7[_0x197337][_0x4c13('0x33')][_0x4c13('0x3f')](_0x57460c,0x1));}_0x2ff4f8(_0x5a41a7[_0x197337]);for(let _0x134a94=0x0;_0x134a94<_0x5a41a7[_0x197337][_0x4c13('0xe4')]['length'];_0x134a94++){const _0x5d1337=_0x5a41a7[_0x197337]['markersEnd'][_0x134a94];if(!_0x285acf['has'](_0x5d1337))continue;const {group:_0x56c94f,type:_0x28a6c3}=_0x127052(_0x5d1337);if('suggestion'!=_0x56c94f||_0x4c13('0x30')!=_0x28a6c3&&_0x4c13('0x2c')!=_0x28a6c3)continue;_0x5a41a7[_0x197337]['markersEnd']['splice'](_0x134a94,0x1);const _0x4608e9=_0x2c1efc[_0x4c13('0xed')](_0x2e6939=>_0x2e6939[_0x4c13('0xd0')]==_0x5d1337);_0x4608e9>-0x1&&_0x2c1efc[_0x4c13('0x3f')](_0x4608e9,0x1);}}function _0x127052(_0x398122){const _0x56027f=_0x398122['split'](':');return{'group':_0x56027f[0x0],'type':_0x56027f[0x1],'subType':_0x56027f[_0x4c13('0xa0')]>=0x5?_0x56027f[0x2]:null,'id':_0x56027f[_0x4c13('0xa0')]<0x5?_0x56027f[0x2]:_0x56027f[0x3],'authorId':_0x56027f[_0x4c13('0xa0')]<0x5?_0x56027f[0x3]:_0x56027f[0x4],'markerCount':0x6==_0x56027f['length']?_0x56027f[0x5]:null};}function _0x2ff4f8(_0x2b846f){for(let _0x239ce8=0x0;_0x239ce8<_0x2c1efc['length'];_0x239ce8++){if(_0x2b846f['isAdded']&&_0x4c13('0x30')==_0x2c1efc[_0x239ce8][_0x4c13('0xb3')])return _0x2b846f['isAddSuggestion']=_0x2c1efc[_0x239ce8],void delete _0x2b846f[_0x4c13('0x0')];if(!_0x2b846f['isAdded']&&!_0x2b846f[_0x4c13('0xa9')]&&_0x4c13('0x2c')==_0x2c1efc[_0x239ce8][_0x4c13('0xb3')])return void(_0x2b846f['isRemoveSuggestion']=_0x2c1efc[_0x239ce8]);}}}['_setDistance'](_0x2117f6,_0x75815f){let _0x2fe897=0x0,_0x47b970=!0x1;const _0x5da47e=new Map();for(const _0x23ec28 of _0x2117f6)_0x23ec28[_0x75815f]?_0x47b970&&(_0x2fe897++,_0x47b970=!0x1):(_0x2fe897++,_0x47b970=!0x0),_0x5da47e[_0x4c13('0xca')](_0x23ec28['id'],_0x2fe897);for(let _0x3c35f1=0x0;_0x3c35f1<_0x2117f6[_0x4c13('0xa0')];_0x3c35f1++){if(_0x4c13('0xa9')==_0x75815f&&_0x2117f6[_0x3c35f1]['isAdded']||_0x4c13('0x0')==_0x75815f&&_0x2117f6[_0x3c35f1][_0x4c13('0xa9')])continue;if('text'==_0x2117f6[_0x3c35f1][_0x4c13('0xb3')]){_0x2117f6[_0x3c35f1]['distance']=0x0;continue;}const _0x31821e=_0x5da47e[_0x4c13('0x67')](_0x2117f6[_0x3c35f1][_0x4c13('0x5b')]),_0x5b149b=_0x5da47e[_0x4c13('0x67')](_0x2117f6[_0x3c35f1]['id']);_0x2117f6[_0x3c35f1][_0x4c13('0x66')]=_0x31821e-_0x5b149b;}}[_0x4c13('0xad')](_0x4202df,_0x3b2cde,_0x454021=!0x1){const _0x5a0fca=[];let _0x5b949e=this[_0x4c13('0xc2')][_0x4c13('0xa1')](_0x4202df),_0x3c8df5=this[_0x4c13('0xc2')]['getIndex'](_0x3b2cde);for(-0x1==_0x3c8df5&&(_0x3c8df5=this[_0x4c13('0xc2')][_0x4c13('0x53')][_0x4c13('0xa0')],_0x454021=!0x1);_0x5b949e<_0x3c8df5;)_0x5a0fca[_0x4c13('0x46')](this[_0x4c13('0xc2')]['getRevision'](_0x5b949e)),_0x5b949e++;return _0x454021&&_0x5a0fca[_0x4c13('0x46')](this[_0x4c13('0xc2')]['getRevision'](_0x5b949e)),_0x5a0fca;}[_0x4c13('0x6')](_0x5885d2,_0x463762,_0x50308b,_0x1467d1){const _0x57da16=this['editor'][_0x4c13('0x6f')][_0x4c13('0x26')];let _0x4f2ce2=_0x463762;for(;_0x5885d2[_0x4f2ce2]&&_0x5885d2[_0x4f2ce2][_0x4c13('0x0')];)_0x4f2ce2++;let _0x5a6495=_0x1467d1;for(;_0x50308b[_0x5a6495]&&_0x50308b[_0x5a6495][_0x4c13('0xa9')];)_0x5a6495++;_0x570f26(_0x5885d2,_0x463762,_0x4f2ce2),_0x570f26(_0x50308b,_0x1467d1,_0x5a6495);const _0x291d5e=_0x50308b['slice'](_0x1467d1,_0x5a6495)[_0x4c13('0xd4')](_0x5885d2['slice'](_0x463762,_0x4f2ce2));return _0x291d5e[_0x4c13('0x29')]((_0x5ad3af,_0x16aabd)=>_0x5ad3af[_0x4c13('0xab')]!=_0x16aabd[_0x4c13('0xab')]?_0x5ad3af['side']-_0x16aabd[_0x4c13('0xab')]:_0x5ad3af[_0x4c13('0xc7')]!=_0x16aabd[_0x4c13('0xc7')]?_0x5ad3af[_0x4c13('0xc7')]-_0x16aabd['level']:_0x5ad3af[_0x4c13('0x66')]!=_0x16aabd[_0x4c13('0x66')]?_0x16aabd[_0x4c13('0x66')]-_0x5ad3af[_0x4c13('0x66')]:!!_0x5ad3af[_0x4c13('0x0')]!=!!_0x16aabd[_0x4c13('0x0')]?-0x1==_0x5ad3af[_0x4c13('0xab')]||0x0==_0x5ad3af['side']?_0x5ad3af[_0x4c13('0x0')]?-0x1:0x1:_0x5ad3af[_0x4c13('0x0')]?0x1:-0x1:_0x5ad3af[_0x4c13('0xa2')]-_0x16aabd[_0x4c13('0xa2')]),{'commonTape':_0x291d5e,'iEnd':_0x4f2ce2,'jEnd':_0x5a6495};function _0x570f26(_0x318df5,_0x290a74,_0x1e0ab4){let _0x8d8b04=-0x1,_0x553773=Number[_0x4c13('0x98')],_0x5d306d=!0x0;for(let _0x468317=_0x290a74;_0x468317<_0x1e0ab4;_0x468317++)if(_0x57da16[_0x4c13('0x86')](_0x318df5[_0x468317][_0x4c13('0x82')])||(_0x5d306d=!0x1),_0x318df5[_0x468317]['item'][_0x4c13('0x75')]<_0x290a74&&(_0x8d8b04=_0x468317),_0x318df5[_0x468317][_0x4c13('0x82')][_0x4c13('0xc8')]>=_0x1e0ab4){_0x553773=_0x468317;break;}_0x5d306d&&(_0x8d8b04=_0x1e0ab4-0x1);for(let _0x4d5e38=_0x290a74;_0x4d5e38<_0x1e0ab4;_0x4d5e38++)_0x318df5[_0x4d5e38][_0x4c13('0xab')]=_0x4d5e38<=_0x8d8b04?-0x1:_0x4d5e38<_0x553773?0x0:0x1,_0x318df5[_0x4d5e38][_0x4c13('0xa2')]=_0x4d5e38;let _0x248da4=0x0;for(let _0x857e4a=_0x290a74;_0x857e4a<=_0x8d8b04;_0x857e4a++)0x0==_0x318df5[_0x857e4a][_0x4c13('0x66')]?_0x318df5[_0x857e4a]['level']=_0x248da4:(_0x248da4++,_0x318df5[_0x857e4a]['level']=_0x248da4,_0x248da4++);for(let _0x441122=_0x290a74;_0x441122<_0x1e0ab4;_0x441122++)0x0==_0x318df5[_0x441122][_0x4c13('0xab')]&&(_0x318df5[_0x441122]['level']=_0x248da4);_0x248da4=0x0;for(let _0x5ec8ee=_0x1e0ab4-0x1;_0x5ec8ee>=_0x553773;_0x5ec8ee--)0x0==_0x318df5[_0x5ec8ee]['distance']?_0x318df5[_0x5ec8ee][_0x4c13('0xc7')]=_0x248da4:(_0x248da4--,_0x318df5[_0x5ec8ee][_0x4c13('0xc7')]=_0x248da4,_0x248da4--);}}[_0x4c13('0x24')](_0x3ce922){const _0xa66abf=new Map(),_0x33559e=this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0x26')];for(let _0x2af3d2=0x1;_0x2af3d2<_0x3ce922['length'];_0x2af3d2++){let _0x4581bf,_0x2a7567,_0x1dc620;const _0x56088e=_0x3ce922[_0x2af3d2],_0x1b0b41=_0x3ce922[_0x2af3d2-0x1];if('text'==_0x56088e[_0x4c13('0xb3')])continue;if(_0x56088e[_0x4c13('0xb3')]!=_0x1b0b41[_0x4c13('0xb3')])continue;if(!_0x33559e[_0x4c13('0xa')](_0x1b0b41[_0x4c13('0x82')])||_0x33559e[_0x4c13('0xe8')](_0x1b0b41[_0x4c13('0x82')]))continue;if(!_0x33559e[_0x4c13('0xa')](_0x56088e['item'])||_0x33559e[_0x4c13('0xe8')](_0x56088e[_0x4c13('0x82')]))continue;if(_0x3ce922[_0x2af3d2][_0x4c13('0x0')]&&_0x3ce922[_0x2af3d2-0x1][_0x4c13('0xa9')])_0x4581bf=_0x3ce922[_0x2af3d2],_0x2a7567=_0x3ce922[_0x2af3d2-0x1],_0x1dc620=_0x2af3d2-0x1;else{if(!_0x3ce922[_0x2af3d2][_0x4c13('0xa9')]||!_0x3ce922[_0x2af3d2-0x1][_0x4c13('0x0')])continue;_0x4581bf=_0x3ce922[_0x2af3d2-0x1],_0x2a7567=_0x3ce922[_0x2af3d2],_0x1dc620=_0x2af3d2;}const _0x4a4807=_0x4581bf[_0x4c13('0xc7')]==_0x2a7567[_0x4c13('0xc7')],_0x141e21=Math[_0x4c13('0x9d')](_0x4581bf[_0x4c13('0xc7')])<Math[_0x4c13('0x9d')](_0x2a7567[_0x4c13('0xc7')])&&0x0==_0x2a7567[_0x4c13('0x66')];(_0x4a4807||_0x141e21)&&(_0xa66abf[_0x4c13('0xca')](_0x2a7567['id'],_0x4581bf['id']),_0x3ce922[_0x4c13('0x3f')](_0x1dc620,0x1),_0x2af3d2--,_0x4581bf['isAdded']=!0x1);}for(let _0xd8815b=0x0;_0xd8815b<_0x3ce922[_0x4c13('0xa0')];_0xd8815b++)_0xa66abf[_0x4c13('0x4b')](_0x3ce922[_0xd8815b]['pairId'])&&(_0x3ce922[_0xd8815b]['pairId']=_0xa66abf[_0x4c13('0x67')](_0x3ce922[_0xd8815b][_0x4c13('0x5b')]));}[_0x4c13('0xd8')](_0x1d972f){const _0x3535fc=new Set(_0x1d972f[_0x4c13('0xc1')](_0x313695=>_0x313695['id']));for(let _0x5a3343=0x0;_0x5a3343<_0x1d972f[_0x4c13('0xa0')];_0x5a3343++)_0x3535fc['has'](_0x1d972f[_0x5a3343][_0x4c13('0x5b')])||0x0==_0x1d972f[_0x5a3343][_0x4c13('0x66')]||(_0x1d972f[_0x5a3343][_0x4c13('0x4f')]=!0x0);return _0x1d972f['filter'](_0x1b40ae=>!_0x1b40ae[_0x4c13('0x4f')]);}[_0x4c13('0x85')](_0x18835c){const _0x53306c=new Set();for(let _0x3c20cf=0x0;_0x3c20cf<_0x18835c[_0x4c13('0xa0')];_0x3c20cf++){if(_0x53306c[_0x4c13('0x4b')](_0x18835c[_0x3c20cf]['id'])&&_0x18835c[_0x3c20cf][_0x4c13('0xa9')]&&(_0x18835c[_0x3c20cf][_0x4c13('0x4f')]=!0x0),_0x18835c[_0x3c20cf][_0x4c13('0x4f')])continue;if(0x0==_0x18835c[_0x3c20cf][_0x4c13('0x66')])continue;if(_0x4c13('0xcb')!=_0x18835c[_0x3c20cf][_0x4c13('0xb3')])continue;if(null==_0x18835c[_0x3c20cf]['pairId'])continue;let _0x42b36f=_0x3c20cf+0x1,_0x1e2454=0x0;for(;_0x18835c[_0x42b36f]['id']!=_0x18835c[_0x3c20cf][_0x4c13('0x5b')];)_0x4c13('0xcb')==_0x18835c[_0x42b36f][_0x4c13('0xb3')]?_0x1e2454++:'elementEnd'==_0x18835c[_0x42b36f][_0x4c13('0xb3')]&&_0x1e2454--,_0x42b36f++;if(0x0!=_0x1e2454){if(_0x18835c[_0x3c20cf][_0x4c13('0xa9')])_0x18835c[_0x3c20cf][_0x4c13('0x4f')]=!0x0;else for(;_0x42b36f!=_0x3c20cf;)_0x18835c[_0x42b36f][_0x4c13('0xa9')]&&0x0!=_0x18835c[_0x42b36f][_0x4c13('0x66')]&&(_0x18835c[_0x42b36f][_0x4c13('0x4f')]=!0x0,_0x53306c['add'](_0x18835c[_0x42b36f][_0x4c13('0x5b')])),_0x42b36f--;}}return _0x18835c['filter'](_0x3fb42a=>!_0x3fb42a[_0x4c13('0x4f')]);}['_removeUnsupportedChanges'](_0x3d34d0){const _0x30b1f5=this[_0x4c13('0x7b')]['model'][_0x4c13('0x26')];for(let _0x4b3003=0x0;_0x4b3003<_0x3d34d0[_0x4c13('0xa0')];_0x4b3003++){if(!_0x3d34d0[_0x4b3003][_0x4c13('0x0')]&&!_0x3d34d0[_0x4b3003]['isRemoved'])continue;if(0x0==_0x3d34d0[_0x4b3003][_0x4c13('0x66')])continue;const _0x31b8a0=_0x3d34d0[_0x4b3003]['item'];_0x30b1f5[_0x4c13('0xa')](_0x31b8a0)||_0x30b1f5[_0x4c13('0xe8')](_0x31b8a0)||(_0x3d34d0[_0x4b3003][_0x4c13('0x0')]&&delete _0x3d34d0[_0x4b3003]['isAdded'],_0x3d34d0[_0x4b3003][_0x4c13('0xa9')]&&(_0x3d34d0[_0x4b3003]['isIncorrect']=!0x0));}return _0x3d34d0[_0x4c13('0x4e')](_0x47e5ee=>!_0x47e5ee[_0x4c13('0x4f')]);}['_makeModelFromTape'](_0x25e9fb,_0x40cc22){const _0x5d34bf=new _0x6b3fc3(),_0x1f368b=[],_0x5a9653=new Map(),_0xbc3cd2=this['editor']['model'],_0x4a1aae=_0xbc3cd2[_0x4c13('0x26')],_0x40d5f1=[_0x5d34bf],_0x1a4374={},_0x365b7d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};for(let _0x135a7d=0x0;_0x135a7d<_0x25e9fb['length'];_0x135a7d++){let _0x28abfe,_0x26ad41;if(_0x4c13('0xcb')===_0x25e9fb[_0x135a7d][_0x4c13('0xb3')]){const _0x3c9113=new _0x45045b(_0x25e9fb[_0x135a7d][_0x4c13('0x82')][_0x4c13('0xd0')],_0x25e9fb[_0x135a7d]['item'][_0x4c13('0xa8')]());_0x28abfe=_0xbc3cd2[_0x4c13('0x64')](_0x40d5f1[0x0],_0x4c13('0x93')),_0x23a5c6(_0x28abfe,_0x3c9113),_0x26ad41=_0xbc3cd2[_0x4c13('0x64')](_0x3c9113,0x0),_0x40d5f1[_0x4c13('0xa3')](_0x3c9113);}else{if('elementEnd'===_0x25e9fb[_0x135a7d][_0x4c13('0xb3')]){const _0x2023da=_0x40d5f1[_0x4c13('0x37')]();_0x28abfe=_0xbc3cd2['createPositionAt'](_0x2023da,_0x4c13('0x93')),_0x26ad41=_0xbc3cd2[_0x4c13('0xde')](_0x2023da);}else{const _0x1137e6=new _0x32bc1a(_0x25e9fb[_0x135a7d][_0x4c13('0x82')][_0x4c13('0xcd')],_0x25e9fb[_0x135a7d][_0x4c13('0x82')]['getAttributes']());_0x28abfe=_0xbc3cd2[_0x4c13('0x64')](_0x40d5f1[0x0],_0x4c13('0x93')),_0x23a5c6(_0x28abfe,_0x1137e6),_0x26ad41=_0x28abfe[_0x4c13('0xbd')](_0x25e9fb[_0x135a7d][_0x4c13('0x82')][_0x4c13('0x7a')]);}}for(const _0x2e5eab of _0x25e9fb[_0x135a7d][_0x4c13('0x33')])_0x5a9653[_0x4c13('0xca')](_0x2e5eab,{'start':_0x28abfe,'end':null});_0xd3589('isRemoveSuggestion',_0x135a7d,_0x28abfe,_0x26ad41),_0xd3589(_0x4c13('0x4c'),_0x135a7d,_0x28abfe,_0x26ad41),_0xd3589(_0x4c13('0xa9'),_0x135a7d,_0x28abfe,_0x26ad41),_0xd3589(_0x4c13('0x0'),_0x135a7d,_0x28abfe,_0x26ad41);for(const _0x487980 of _0x25e9fb[_0x135a7d][_0x4c13('0xe4')]){_0x5a9653[_0x4c13('0x67')](_0x487980)[_0x4c13('0x93')]=_0x26ad41;}}for(const [_0x3edd3b,_0x5dff7a]of _0x5a9653){const _0x2586e6=this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0x79')](_0x5dff7a['start'],_0x5dff7a['end']);_0x5d34bf[_0x4c13('0x9f')]['set'](_0x3edd3b,_0x2586e6);}return _0x1f368b[_0x4c13('0x29')]((_0x4750c7,_0x430dd9)=>{const _0x56cea1=_0x5d34bf[_0x4c13('0x9f')][_0x4c13('0x67')]('revision:'+_0x4750c7['id']),_0x466aed=_0x5d34bf[_0x4c13('0x9f')][_0x4c13('0x67')](_0x4c13('0x6d')+_0x430dd9['id']);return _0x56cea1['start'][_0x4c13('0x97')](_0x466aed[_0x4c13('0xf7')])?-0x1:_0x56cea1[_0x4c13('0xf7')][_0x4c13('0xbe')](_0x466aed[_0x4c13('0xf7')])?0x1:_0x56cea1[_0x4c13('0x93')][_0x4c13('0x97')](_0x466aed['end'])?-0x1:_0x56cea1[_0x4c13('0x93')][_0x4c13('0xbe')](_0x466aed[_0x4c13('0x93')])?0x1:'add'===_0x4750c7['type']?-0x1:0x1;}),{'root':_0x5d34bf,'changes':_0x1f368b};function _0xd3589(_0x5aa12a,_0x286c31,_0x5c77fb,_0x42ed54){const _0x5b34ba=!!_0x25e9fb[_0x286c31][_0x5aa12a],_0x4952b=_0x5b34ba?_0x25e9fb[_0x286c31][_0x5aa12a]['userId']:null,_0xeab68b=_0x286c31===_0x25e9fb[_0x4c13('0xa0')]-0x1,_0x1b2ec7=_0x365b7d[_0x5aa12a][0x0],_0x3d8515=_0x4a1aae[_0x4c13('0x39')](_0x25e9fb[_0x286c31][_0x4c13('0x82')]);!_0x1a4374[_0x5aa12a]&&_0x5b34ba?_0x1a4374[_0x5aa12a]={'start':_0x5c77fb,'tapeItem':_0x25e9fb[_0x286c31],'userId':_0x4952b,'type':_0x5aa12a}:_0x1a4374[_0x5aa12a]&&!_0x5b34ba?(_0x1a4374[_0x5aa12a][_0x4c13('0x93')]=_0x5c77fb,_0x4792b3(_0x1a4374[_0x5aa12a]),_0x1a4374[_0x5aa12a]=null):_0x1a4374[_0x5aa12a]&&_0x5b34ba&&_0x1a4374[_0x5aa12a][_0x4c13('0x27')]!==_0x4952b&&(_0x1a4374[_0x5aa12a][_0x4c13('0x93')]=_0x5c77fb,_0x1b2ec7&&_0x1b2ec7['userId']===_0x1a4374[_0x5aa12a][_0x4c13('0x27')]||_0x4792b3(_0x1a4374[_0x5aa12a]),_0x1a4374[_0x5aa12a]={'start':_0x5c77fb,'tapeItem':_0x25e9fb[_0x286c31],'userId':_0x4952b,'type':_0x5aa12a}),_0x1a4374[_0x5aa12a]&&_0x3d8515&&(_0x4c13('0xcb')!==_0x25e9fb[_0x286c31]['type']||_0x1b2ec7&&_0x1b2ec7[_0x4c13('0x27')]===_0x4952b||_0x365b7d[_0x5aa12a]['unshift']({'userId':_0x4952b,'object':_0x25e9fb[_0x286c31]['item'],'change':_0x1a4374[_0x5aa12a]}),_0x4c13('0xbc')===_0x25e9fb[_0x286c31][_0x4c13('0xb3')]&&_0x1b2ec7&&_0x1b2ec7[_0x4c13('0xc6')]===_0x25e9fb[_0x286c31]['item']&&(_0x365b7d[_0x5aa12a][_0x4c13('0x37')](),_0x1a4374[_0x5aa12a]=_0x1b2ec7['change'])),_0x1a4374[_0x5aa12a]&&_0xeab68b&&(_0x1a4374[_0x5aa12a][_0x4c13('0x93')]=_0x42ed54,_0x4792b3(_0x1a4374[_0x5aa12a]),_0x1a4374[_0x5aa12a]=null);}function _0x4792b3({start:_0x5b127c,end:_0x13fe73,tapeItem:_0x281a50,userId:_0x47c57f,type:_0x15d257}){const _0x35a686=_0x281a50['item'],_0x463efc=_0xbc3cd2[_0x4c13('0x26')]['isBlock'](_0x35a686)&&!_0xbc3cd2[_0x4c13('0x26')][_0x4c13('0xe8')](_0x35a686),_0x51fb9f=_0x5b127c[_0x4c13('0xf3')]==_0x13fe73[_0x4c13('0x22')]&&_0x13fe73[_0x4c13('0x4d')];if(_0x463efc&&_0x51fb9f)return;const _0x13ce5f=_0xbc3cd2['createRange'](_0x5b127c,_0x13fe73),_0x111d50=_0x40cc22[_0x4c13('0x67')](_0x47c57f),_0x413e10=new _0x33925b({'author':_0x111d50,'type':_0x4c13('0x0')==_0x15d257||_0x4c13('0x4c')==_0x15d257?'add':_0x4c13('0x20'),'data':{'isSuggestion':'isAddSuggestion'==_0x15d257||'isRemoveSuggestion'==_0x15d257},'createdAt':new Date()});_0x1f368b['push'](_0x413e10),_0x5d34bf[_0x4c13('0x9f')]['set'](_0x4c13('0x6d')+_0x413e10['id'],_0x13ce5f);}}['_setConversion'](){this[_0x4c13('0x7b')][_0x4c13('0x7d')][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xea')]({'view':_0x4c13('0xf9')}),this['editor'][_0x4c13('0x7d')][_0x4c13('0xb5')]('editingDowncast')[_0x4c13('0x9a')]({'model':_0x4c13('0xf9'),'view':_0x32370d=>{const _0x1343bf=_0x32370d[_0x4c13('0xaf')][_0x4c13('0x9')](':')[0x1],_0x17b089=this['_getChangeFromId'](_0x1343bf);if(!_0x17b089)return null;const _0x440e4c=_0x4c13('0xcf')==_0x17b089[_0x4c13('0xb3')]?_0x4c13('0x30'):_0x4c13('0x2c'),_0xe7d029=[_0x4c13('0xc5'),'ck-suggestion-marker-'+_0x440e4c];return _0x17b089['data'][_0x4c13('0xf6')]&&_0xe7d029['push']('ck-suggestion-marker-'+_0x440e4c+_0x4c13('0xa4')),this[_0x4c13('0xdd')]==_0x17b089&&_0xe7d029[_0x4c13('0x46')]('ck-suggestion-marker--active'),{'classes':_0xe7d029,'attributes':{'data-change-id':_0x1343bf}};}}),this[_0x4c13('0x7b')][_0x4c13('0x7d')][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xcf')](_0x58bb44=>{_0x58bb44['on']('element:pre',(_0x148e97,_0x3bed2d,_0x334f15)=>{const _0x3ff3e5=_0x3bed2d[_0x4c13('0x31')][_0x4c13('0x78')](0x0);if(!_0x3ff3e5||!_0x3ff3e5['is'](_0x4c13('0x49'),_0x4c13('0x48')))return;if(!_0x334f15[_0x4c13('0x9e')][_0x4c13('0x6e')](_0x3ff3e5,{'attributes':[_0x4c13('0x77'),_0x4c13('0x28')]}))return;const _0xb4bab0=_0x3bed2d[_0x4c13('0xf8')][_0x4c13('0xf7')][_0x4c13('0xf3')];_0x334f15[_0x4c13('0x32')][_0x4c13('0xe6')]('vid_start',_0x3ff3e5[_0x4c13('0x54')](_0x4c13('0x77')),_0xb4bab0),_0x334f15[_0x4c13('0x32')][_0x4c13('0xe6')]('vid_end',_0x3ff3e5[_0x4c13('0x54')]('vid_end'),_0xb4bab0);},{'priority':_0x4c13('0xd7')});}),this['editor']['conversion'][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xcf')](_0x57660b=>{_0x57660b['on']('element',(_0x18fc44,_0x2baff6,_0x58477f)=>{if(!_0x58477f[_0x4c13('0x9e')]['consume'](_0x2baff6[_0x4c13('0x31')],{'attributes':[_0x4c13('0x77'),'vid_end']}))return;if(_0x2baff6[_0x4c13('0xf8')][_0x4c13('0x3c')])return;const _0x3a5281=_0x2baff6[_0x4c13('0xf8')][_0x4c13('0xf7')][_0x4c13('0xf3')];_0x3a5281[_0x4c13('0xb9')](_0x4c13('0x77'))||_0x3a5281[_0x4c13('0xb9')](_0x4c13('0x17'))||(_0x58477f['writer'][_0x4c13('0xe6')](_0x4c13('0x77'),_0x2baff6[_0x4c13('0x31')]['getAttribute'](_0x4c13('0x77')),_0x3a5281),_0x58477f[_0x4c13('0x32')][_0x4c13('0xe6')](_0x4c13('0x28'),_0x2baff6['viewItem'][_0x4c13('0x54')](_0x4c13('0x28')),_0x3a5281));},{'priority':_0x4c13('0xd7')});}),this['editor'][_0x4c13('0x7d')]['for'](_0x4c13('0xe0'))[_0x4c13('0x5d')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x4c13('0x17'),'value':_0x5c5026=>_0x5c5026[_0x4c13('0x54')](_0x4c13('0x17'))}}),this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0x26')]['on'](_0x4c13('0xb'),(_0x28e08a,[,_0x4d6b70])=>{[_0x4c13('0x77'),_0x4c13('0x28'),_0x4c13('0x17')]['includes'](_0x4d6b70)&&(_0x28e08a[_0x4c13('0x14')]=!0x0,_0x28e08a['stop']());},{'priority':_0x4c13('0x83')}),this['editor'][_0x4c13('0x7d')][_0x4c13('0xb5')](_0x4c13('0x72'))[_0x4c13('0xcf')](_0x2a7dbd=>{_0x2a7dbd['on'](_0x4c13('0xf5'),(_0x32815b,_0x539f04,_0x3e0c6f)=>{if('\x20'!=_0x539f04[_0x4c13('0x82')][_0x4c13('0xcd')]||_0x539f04[_0x4c13('0x82')]['parent']['maxOffset']>0x1)return;if(!_0x3e0c6f[_0x4c13('0x9e')][_0x4c13('0x6e')](_0x539f04[_0x4c13('0x82')],_0x32815b[_0x4c13('0xd0')]))return;const _0x131e18=_0x3e0c6f[_0x4c13('0x32')],_0x200ae3=_0x3e0c6f[_0x4c13('0xdf')][_0x4c13('0xf0')](_0x539f04[_0x4c13('0x60')]);_0x131e18['wrap'](_0x200ae3,_0x131e18[_0x4c13('0x47')](_0x4c13('0x62')));});}),this[_0x4c13('0x7b')][_0x4c13('0x7d')]['for'](_0x4c13('0x72'))[_0x4c13('0xc9')]({'model':_0x4c13('0xf9')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on'](_0x4c13('0x61'),function(_0x3254e6){const _0xc90e73=_0x3254e6['plugins'][_0x4c13('0x67')](_0x4c13('0x99'));return(_0x3a559a,_0x2560b4,_0x22b395)=>{const _0x5eb697=_0x2560b4[_0x4c13('0xaf')][_0x4c13('0x9')](':')[0x1],_0x25d4b8=_0xc90e73[_0x4c13('0x58')](_0x5eb697);if(!_0x25d4b8)return null;const _0x330e00=_0x4c13('0xcf')==_0x25d4b8[_0x4c13('0xb3')]?_0x4c13('0x9'):_0x4c13('0x7c');if(!_0x22b395[_0x4c13('0x9e')][_0x4c13('0xb2')](_0x2560b4[_0x4c13('0xd6')],_0x3a559a['name']))return;const _0x3e96e5=_0x2560b4[_0x4c13('0xd6')][_0x4c13('0x80')](),_0x155764=_0x2560b4[_0x4c13('0xd6')]['start'],_0x2d80d1=_0x3254e6[_0x4c13('0x6f')][_0x4c13('0x26')];let _0xd4dbd1=null,_0x3ca130=null,_0x3599fc=!0x1,_0x5c9ab2=!0x1;for(const _0x3c8670 of _0x3e96e5){const _0x4593ad=_0x3c8670[_0x4c13('0x82')];_0x3599fc=_0x3599fc||_0x2d80d1[_0x4c13('0xac')](_0x4593ad);const _0x33776a=_0x22b395[_0x4c13('0xdf')][_0x4c13('0x8b')](_0x4593ad);if(_0x33776a&&_0x33776a[_0x4c13('0x34')](_0x4c13('0x1a')))return;_0x4c13('0xbc')==_0x3c8670['type']&&(_0x2d80d1['isBlock'](_0x4593ad)&&!_0x2d80d1[_0x4c13('0xe8')](_0x4593ad)&&(_0x4593ad[_0x4c13('0x13')]||_0x155764[_0x4c13('0x3a')]?_0xd4dbd1&&_0xd4dbd1[_0x4c13('0x22')]==_0x4593ad||(_0xd4dbd1=_0x4593ad,_0x4c128a(_0x3c8670['previousPosition']),_0x5c9ab2=!0x0):_0x3ca130=_0x3ca130||_0x3c8670[_0x4c13('0x94')]));}function _0x4c128a(_0x274c78){const _0x5b4d87=_0x22b395[_0x4c13('0x32')][_0x4c13('0x15')](_0x4c13('0x62'),{'class':_0x4c13('0x9b')+_0x330e00}),_0x24d552=_0x22b395[_0x4c13('0xdf')]['toViewPosition'](_0x274c78);_0x25d4b8['data'][_0x4c13('0xf6')]&&_0x22b395[_0x4c13('0x32')][_0x4c13('0x4')]('ck-suggestion-marker-'+_0x330e00+_0x4c13('0xa4'),_0x5b4d87),_0xc90e73[_0x4c13('0xdd')]==_0x25d4b8&&_0x22b395[_0x4c13('0x32')][_0x4c13('0x4')]('ck-suggestion-marker--active',_0x5b4d87),_0x22b395[_0x4c13('0x32')]['insert'](_0x24d552,_0x5b4d87),_0x22b395['mapper'][_0x4c13('0xb7')](_0x5b4d87,_0x2560b4[_0x4c13('0xaf')]);}_0x3599fc||_0x5c9ab2||!_0x3ca130||_0x4c128a(_0x3ca130);};}(this[_0x4c13('0x7b')]),{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on'](_0x4c13('0x18'),(_0x16868f,_0x2b9a67,_0x154df7)=>{const _0x46b06a=_0x154df7[_0x4c13('0xdf')][_0x4c13('0x40')](_0x2b9a67[_0x4c13('0xaf')]);if(_0x46b06a)for(const _0x2f44cd of _0x46b06a)(_0x2f44cd[_0x4c13('0x21')](_0x4c13('0x56'))||_0x2f44cd[_0x4c13('0x21')](_0x4c13('0x88')))&&(_0x154df7[_0x4c13('0xdf')][_0x4c13('0x19')](_0x2f44cd,_0x2b9a67[_0x4c13('0xaf')]),_0x154df7[_0x4c13('0x32')][_0x4c13('0x20')](_0x2f44cd));},{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')]['downcastDispatcher']['on'](_0x4c13('0x61'),(_0x5c4e6c,_0x1c3bad,_0x3eac6d)=>{const _0x946a54=_0x1c3bad['markerName'][_0x4c13('0x9')](':')[0x1],_0x2155ee=this['_getChangeFromId'](_0x946a54);if(!_0x2155ee)return null;const _0x471add=_0x4c13('0xcf')==_0x2155ee[_0x4c13('0xb3')]?_0x4c13('0x9'):_0x4c13('0x7c');if(_0x3eac6d[_0x4c13('0x9e')][_0x4c13('0xb2')](_0x1c3bad[_0x4c13('0xd6')],_0x5c4e6c[_0x4c13('0xd0')]))for(const _0x44bfab of _0x1c3bad[_0x4c13('0xd6')][_0x4c13('0x10')]()){if(!_0x44bfab['is'](_0x4c13('0x49'),_0x4c13('0x2f')))continue;const _0x184e65=_0x3eac6d[_0x4c13('0x32')][_0x4c13('0x15')](_0x4c13('0x62'),{'class':_0x4c13('0x9b')+_0x471add}),_0x233fb8=_0x3eac6d[_0x4c13('0xdf')][_0x4c13('0x1b')](this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0xbb')](_0x44bfab));_0x2155ee[_0x4c13('0xcd')][_0x4c13('0xf6')]&&_0x3eac6d[_0x4c13('0x32')]['addClass'](_0x4c13('0x9b')+_0x471add+'-new',_0x184e65),this[_0x4c13('0xdd')]==_0x2155ee&&_0x3eac6d[_0x4c13('0x32')][_0x4c13('0x4')](_0x4c13('0x8a'),_0x184e65),_0x3eac6d[_0x4c13('0x32')][_0x4c13('0x6b')](_0x233fb8,_0x184e65),_0x3eac6d[_0x4c13('0xdf')][_0x4c13('0xb7')](_0x184e65,_0x1c3bad[_0x4c13('0xaf')]);}},{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')]['conversion'][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xea')]({'view':_0x4c13('0xda')}),this[_0x4c13('0x7b')][_0x4c13('0x7d')]['for']('dataDowncast')[_0x4c13('0xc9')]({'model':_0x4c13('0xda')}),this[_0x4c13('0x7b')][_0x4c13('0x7d')][_0x4c13('0xb5')]('editingDowncast')[_0x4c13('0x9a')]({'model':_0x4c13('0xda'),'view':_0x481319=>{const _0x5e2409=_0x481319[_0x4c13('0xaf')][_0x4c13('0x9')](':')[0x1];return _0x4c13('0x30')!=_0x5e2409&&'deletion'!=_0x5e2409?null:{'classes':[_0x4c13('0x5'),'ck-suggestion-preview-marker-'+_0x5e2409]};}}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on']('addMarker:suggestion:deletion',J(this['editor'],_0x4c13('0x7c')),{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on'](_0x4c13('0xdb'),J(this['editor'],_0x4c13('0x9')),{'priority':_0x4c13('0x2e')}),this['editor']['editing'][_0x4c13('0xa6')]['on']('removeMarker:suggestion',(_0x1fe92e,_0x3205ec,_0x16493c)=>{const _0x51dc9b=_0x16493c[_0x4c13('0xdf')][_0x4c13('0x40')](_0x3205ec[_0x4c13('0xaf')]);if(_0x51dc9b)for(const _0x35fbdc of _0x51dc9b)_0x35fbdc['is'](_0x4c13('0xb6'))&&(_0x16493c[_0x4c13('0xdf')][_0x4c13('0x19')](_0x35fbdc,_0x3205ec[_0x4c13('0xaf')]),_0x16493c[_0x4c13('0x32')][_0x4c13('0x20')](_0x35fbdc));},{'priority':'high'});}[_0x4c13('0x58')](_0x5bffb6){return this[_0x4c13('0x87')][_0x4c13('0x67')](_0x5bffb6);}[_0x4c13('0xb1')](_0xa04faa){this[_0x4c13('0xe1')]&&this[_0x4c13('0xe1')]['destroy'](),this[_0x4c13('0xe1')]=new _0x4d9b1c(this['editor'][_0x4c13('0xf1')],_0xa04faa);const _0x55aeb7=this[_0x4c13('0x7b')]['model'][_0x4c13('0x9f')][_0x4c13('0x67')](_0x4c13('0x6d')+_0xa04faa['id']);return this[_0x4c13('0xe1')][_0x4c13('0xd9')]=()=>_0x4cec3c(this[_0x4c13('0x7b')]['editing'],_0x55aeb7),this[_0x4c13('0xe1')];}[_0x4c13('0xc0')](){this[_0x4c13('0x7b')][_0x4c13('0x6f')]['document'][_0x4c13('0xaa')][_0x4c13('0x5e')]('revision'),this['on'](_0x4c13('0x1c'),(_0x34d152,_0x14dab4,_0x289e81,_0x3ce95)=>{_0x3ce95&&this[_0x4c13('0x6a')][_0x4c13('0x20')](_0x3ce95),_0x289e81&&(this['_balloon'][_0x4c13('0xcf')]({'view':_0x289e81,'stackId':'revisionHistoryLabel','position':{'target':_0x289e81[_0x4c13('0xd9')]}}),this[_0x4c13('0x6a')][_0x4c13('0x44')]('revisionHistoryLabel'));}),this['on'](_0x4c13('0x92'),(_0x2ecd19,_0x4e5232,_0x37e7bf,_0x5dd109)=>{this[_0x4c13('0x3e')]=_0x37e7bf?this['_getViewForChange'](_0x37e7bf):null,this[_0x4c13('0x7b')]['model'][_0x4c13('0xe7')](_0x517039=>{_0x5dd109&&_0x517039[_0x4c13('0x70')]('revision:'+_0x5dd109['id']),_0x37e7bf&&_0x517039[_0x4c13('0x70')](_0x4c13('0x6d')+_0x37e7bf['id']);});}),this[_0x4c13('0xe9')](this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xec')]['document'],'mouseover',(_0x4987bb,_0x5bc0fc)=>{if(this[_0x4c13('0xdd')])return;const _0xd41cc5=this[_0x4c13('0x73')](_0x5bc0fc[_0x4c13('0x7e')]),_0x11ff8e=this[_0x4c13('0x87')][_0x4c13('0x67')](_0xd41cc5);this[_0x4c13('0x3e')]=_0x11ff8e?this['_getViewForChange'](_0x11ff8e):null;}),this[_0x4c13('0xe9')](this[_0x4c13('0x7b')]['editing'][_0x4c13('0xec')][_0x4c13('0xd3')],'mousedown',(_0x4ef0c0,_0xe81e0d)=>{const _0x15ac81=this[_0x4c13('0x73')](_0xe81e0d['target']),_0x3b3b8c=this['_changeIdToChange'][_0x4c13('0x67')](_0x15ac81);this[_0x4c13('0xdd')]=_0x3b3b8c||null;});}[_0x4c13('0x73')](_0x28475a){do{const _0x1e59a3=_0x28475a[_0x4c13('0x54')]('data-change-id');if(_0x1e59a3)return _0x1e59a3;_0x28475a=_0x28475a[_0x4c13('0x22')];}while(_0x28475a);return null;}['_cleanMarkers'](){this[_0x4c13('0x7b')]['model'][_0x4c13('0xe7')](_0x149d62=>{for(const _0x9e2040 of this['editor'][_0x4c13('0x6f')]['markers'])_0x149d62[_0x4c13('0x63')](_0x9e2040);});}}function J(_0x2a98ab,_0x8e6b77){return(_0x5a3456,_0x30b1f1,_0x6c522)=>{if(!_0x6c522['consumable'][_0x4c13('0xb2')](_0x30b1f1['markerRange'],_0x5a3456[_0x4c13('0xd0')]))return;const _0x35734a=_0x30b1f1['markerRange'][_0x4c13('0x80')](),_0x45e749=_0x30b1f1[_0x4c13('0xd6')][_0x4c13('0xf7')],_0x29d262=_0x2a98ab[_0x4c13('0x6f')][_0x4c13('0x26')];let _0x2e32e8=null,_0x51c404=null,_0x35df54=!0x1,_0x286d25=!0x1;for(const _0x3d6fa9 of _0x35734a){const _0x3ad83e=_0x3d6fa9[_0x4c13('0x82')];_0x35df54=_0x35df54||_0x29d262[_0x4c13('0xac')](_0x3ad83e);const _0x43c585=_0x6c522[_0x4c13('0xdf')][_0x4c13('0x8b')](_0x3ad83e);if(_0x43c585&&_0x43c585['getCustomProperty'](_0x4c13('0x1a')))return;_0x4c13('0xbc')==_0x3d6fa9[_0x4c13('0xb3')]&&(_0x29d262['isBlock'](_0x3ad83e)&&!_0x29d262['isLimit'](_0x3ad83e)&&(_0x3ad83e[_0x4c13('0x13')]||_0x45e749[_0x4c13('0x3a')]?_0x2e32e8&&_0x2e32e8[_0x4c13('0x22')]==_0x3ad83e||(_0x2e32e8=_0x3ad83e,_0x1f7bda(_0x3d6fa9['previousPosition']),_0x286d25=!0x0):_0x51c404=_0x51c404||_0x3d6fa9[_0x4c13('0x94')]));}function _0x1f7bda(_0xdd89f1){const _0x1dfea3=_0x6c522[_0x4c13('0xdf')][_0x4c13('0x1b')](_0xdd89f1),_0x1c4aab=_0x6c522[_0x4c13('0x32')][_0x4c13('0x15')](_0x4c13('0x62'),{'class':'ck-suggestion-preview-marker-'+_0x8e6b77});_0x6c522[_0x4c13('0x32')][_0x4c13('0x6b')](_0x1dfea3,_0x1c4aab),_0x6c522[_0x4c13('0xdf')]['bindElementToMarker'](_0x1c4aab,_0x30b1f1['markerName']);}_0x35df54||_0x286d25||!_0x51c404||_0x1f7bda(_0x51c404);};}_0x27575c(d,_0x2c438c);class L extends _0x333c3e{constructor(_0x23fb89){super(_0x23fb89);const _0x2e570c=_0x23fb89[_0x4c13('0xbf')][_0x4c13('0x67')](d);this['stopListening'](_0x23fb89,_0x4c13('0xdc')),this[_0x4c13('0x91')](_0x4c13('0x12')),this[_0x4c13('0xe9')](_0x2e570c,_0x4c13('0xb4'),()=>this[_0x4c13('0xb8')]()),this[_0x4c13('0xe9')](_0x2e570c,_0x4c13('0x57'),()=>this[_0x4c13('0xb8')]());}[_0x4c13('0x65')](){const _0x3074d4=this[_0x4c13('0x7b')],_0x1319ad=_0x3074d4[_0x4c13('0xbf')][_0x4c13('0x67')](d),_0x499211=_0x1319ad[_0x4c13('0x11')]?_0x1319ad[_0x4c13('0x89')][_0x4c13('0x3')]:null;_0x3074d4['config']['get'](_0x4c13('0xce'))[_0x4c13('0xe3')](_0x499211);}[_0x4c13('0xb8')](){const {isReady:_0x3e69ee,isEnabled:_0x4297e4}=this[_0x4c13('0x7b')][_0x4c13('0xbf')][_0x4c13('0x67')](d);this[_0x4c13('0x1f')]=_0x3e69ee&&_0x4297e4;}}class q extends _0x333c3e{constructor(_0x592524,{direction:_0x36a006}){super(_0x592524);const _0x1372a2=_0x592524['plugins'][_0x4c13('0x67')](d);this['stopListening'](_0x592524,'change:isReadOnly'),this[_0x4c13('0x91')](_0x4c13('0x12')),this['_step']=_0x4c13('0x1d')===_0x36a006?0x1:-0x1,this[_0x4c13('0xe9')](_0x1372a2,_0x4c13('0xb4'),()=>this[_0x4c13('0xb8')]()),this[_0x4c13('0xe9')](_0x1372a2,_0x4c13('0x57'),()=>this['refresh']());}[_0x4c13('0x65')](){const _0x4f8f10=this[_0x4c13('0x7b')],_0x391bf4=_0x4f8f10[_0x4c13('0xbf')][_0x4c13('0x67')](d),{isNavigationMode:_0x1a06cb,currentChangeNumber:_0x43f1f5}=_0x391bf4;_0x391bf4[_0x4c13('0xdd')]=_0x1a06cb?_0x391bf4[_0x4c13('0x89')][_0x4c13('0xee')][_0x4c13('0x67')](_0x43f1f5+this['_step']):_0x391bf4[_0x4c13('0x89')][_0x4c13('0xee')][_0x4c13('0xc4')];const _0x3eeca4=_0x4f8f10['model'][_0x4c13('0x9f')]['get'](_0x4c13('0x6d')+_0x391bf4['activeChange']['id']),_0x345a60=_0x4cec3c(_0x4f8f10[_0x4c13('0x4a')],_0x3eeca4);_0x4592af({'target':_0x345a60,'viewportOffset':0x28});}[_0x4c13('0xb8')](){const {isNavigationMode:_0x27d982,currentChangeNumber:_0x5706dc,numberOfChanges:_0x53fceb,isReady:_0x19b65f,isEnabled:_0x35093a}=this[_0x4c13('0x7b')][_0x4c13('0xbf')][_0x4c13('0x67')](d);this['isEnabled']=!!(_0x35093a&&_0x19b65f&&_0x53fceb)&&(!_0x27d982||(0x1===this[_0x4c13('0xae')]?_0x5706dc<_0x53fceb-0x1:_0x5706dc>0x0));}}
|
|
23
|
+
const _0x51e0=['hasClass','getRootNames','toViewElement','_cleanMarkers','splice','listenTo','createUIElement','htmlProcessor','_removeUnsupportedChanges','item','processor','test','elementEnd','setAttribute','ck-suggestion-preview-marker-','startIndex','data-revision-','addMarker:revision','refresh','activeView','elementToAttribute','change:numberOfChanges','commands','has','values','softBreak','_setDistance','repository','deletions','start','adapter','compare','distance','data-change-id','getAttribute','isAddSuggestion','elementStart','mapper','sort','getShiftedBy','markersEnd','end','_cleanUp','backward','addMarker:suggestion:insertion','modelRange','first','insert','_getDiff','add','getCustomProperty','removeMarker','isIncorrect','object','_joinTapes','attribute:vid','isSuggestion','_makeModelFromViewString','revision','_findChangeIdFromDomTarget','_update','isLimit','type','change','_getChangeFromId','showPreviousChange','pluginName','dataToMarker','addRevision','get','_fixObsoleteTags','isAtStart','element:pre','_makeTape','change:isReadOnly','RevisionsRepository','marked','_initInteractions','side','isContent','isReady','authors','createRangeIn','upcast','markerName','_markInsertions','_getRevisionsRange','vid','stopListening','from','shift','abs','findIndex','_removeRevisionMarkers','isObject','ck-suggestion-marker-merge','POSITIVE_INFINITY','includes','writer','suggestion','startsWith','deletion','remove','then','-new','toViewPosition','_markMismatchedRemovedTags','restoreRevisionCallback','stop','forward','ck-editor__editable__overlay','getRoot','pairId','_threeWayMerge','_refreshStartEndIndex','delete','isBlock','ck-suggestion-marker--active','isRemoved','_removeMissingPairs','model','name','observeMarkers','consumable','bind','offsetSize','addClass','diff','markersStart','ck-suggestion-marker-split','updateMarker','isAfter','_balloon','document','_step','getItems','split','slice','execute','requires','highest','_setData','markers','markerRange','previousPosition','createPositionAt','isNavigationMode','isEnabled','revision-start','hasAttribute','conversion','ck-suggestion-marker-','_target','endIndex','isAdded','newRevisionId','clearForceDisabled','insertions','view','diffData','_changeView','selection','filter','isBefore','change:isReady','schema','downcastDispatcher','vid_end','getAttributes','forEach','createRevision','vid_start','nodeAfter','init','changes','change:activeView','consume','unshift','revision:','index','resolve','level','getIndex','isCollapsed','createAttributeElement','removeClass','ck-suggestion-preview-marker','getRevisionData','low','loadRevisionData','showStack','wrap','toViewRange','parse','addRevisionData','revisionHistoryLabel','target','isRemoveSuggestion','isAtEnd','mouseover','removeMarker:revision','_makeModelFromTape','text','toModel','for','markerToHighlight','_getViewObj','RevisionViewer','getChild','push','merge','addHighlight','keys','_processTape','attributes','data','bindElementToMarker','isInline','userId','children','dataDowncast','range','unbindElementFromMarkerName','map','_getViewForChange','getRevision','isEqual','code','uiElement','editor','nextPosition','collaboration.channelId','plugins','string','_markMarkers','activeChange','_changeIdToChange','element','createRange','editing','concat','markerNameToElements','getWalker','editingDowncast','nextSibling','destroy','length','set','revisionHistory','span','parent','change:isEnabled','checkAttribute','insertion','viewItem','createPositionAfter','high','ck-suggestion-marker','_markSuggestions'];(function(_0x10f1b9,_0x51e089){const _0x579d60=function(_0x4f2561){while(--_0x4f2561){_0x10f1b9['push'](_0x10f1b9['shift']());}};_0x579d60(++_0x51e089);}(_0x51e0,0xab));const _0x579d=function(_0x10f1b9,_0x51e089){_0x10f1b9=_0x10f1b9-0x0;let _0x579d60=_0x51e0[_0x10f1b9];return _0x579d60;};import _0x2715f0 from'@ckeditor/ckeditor5-collaboration-core/src/users';import{Plugin as _0x4a926e,Command as _0xe9130e}from'ckeditor5/src/core';import{ObservableMixin as _0x51cd74,mix as _0x49fda1}from'ckeditor5/src/utils';import _0x14d6ac from'@ckeditor/ckeditor5-engine/src/model/documentfragment';import _0x4d55e7 from'@ckeditor/ckeditor5-engine/src/model/element';import _0x388cb9 from'@ckeditor/ckeditor5-engine/src/model/text';import _0x97eae4 from'@ckeditor/ckeditor5-engine/src/view/documentfragment';import _0x50f5aa from'@ckeditor/ckeditor5-engine/src/view/text';import _0x597fe3 from'@ckeditor/ckeditor5-engine/src/view/element';import{_insert as _0x38b51f}from'@ckeditor/ckeditor5-engine/src/model/operation/utils';import _0x25e1e2 from'./ui/revisionviewer/changedetailsview';import _0x5a9bba from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import{scrollViewportToShowTarget as _0x4179f8}from'@ckeditor/ckeditor5-utils/src/dom/scroll';import{ContextualBalloon as _0x4110b6}from'ckeditor5/src/ui';import _0x391efb from'./revisionsrepository';import _0x4bec2b from'./changeitem';import _0x2b2a2c from'./revisiondiff';import'../theme/revisionviewer.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestion.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestionmarker.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/horizontalline.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/image.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/mediaembed.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/pagebreak.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/table.css';export default class R extends _0x4a926e{static get[_0x579d('0x9a')](){return _0x579d('0x24');}static get[_0x579d('0xe3')](){return[_0x2715f0,_0x4110b6,_0x391efb];}constructor(..._0x51407b){super(..._0x51407b),this['repository']=this[_0x579d('0x3a')]['plugins'][_0x579d('0x9d')](_0x579d('0xa3')),this['set'](_0x579d('0x40'),null),this['set'](_0x579d('0x6b'),null),this[_0x579d('0x4c')](_0x579d('0xd7'),null),this[_0x579d('0x4c')]('isReady',!0x1),this[_0x579d('0x4c')](_0x579d('0xeb'),!0x0),this['on'](_0x579d('0x50'),(_0x50e9fa,_0x31e966,_0x586334)=>{this[_0x579d('0x40')]=null,this[_0x579d('0x6b')]=null,this[_0x579d('0x3a')][_0x579d('0x44')][_0x579d('0xf6')][_0x579d('0x97')](_0x521fe8=>{for(const _0x54672b of this[_0x579d('0x3a')][_0x579d('0x44')][_0x579d('0xf6')]['document']['roots'])_0x586334?_0x521fe8[_0x579d('0xe')](_0x579d('0xc6'),_0x54672b):_0x521fe8['addClass'](_0x579d('0xc6'),_0x54672b);});}),this[_0x579d('0xd4')](_0x579d('0xea'))['to'](this,'activeChange',_0x2c223c=>null!==_0x2c223c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,_0x579d('0xd7'),this,_0x579d('0x40'),(_0x3636df,_0x2c5e85,_0x2f59df)=>_0x3636df&&_0x2f59df?_0x2c5e85['changes']['getIndex'](_0x2f59df):0x0),this[_0x579d('0xd4')]('numberOfChanges')['to'](this,_0x579d('0xa8'),this,_0x579d('0xd7'),(_0x10fda1,_0x2b56ae)=>_0x10fda1?_0x2b56ae['changes'][_0x579d('0x4b')]:0x0),this['_changeView']=null,this[_0x579d('0x41')]=new Map(),this[_0x579d('0x76')]=null,this[_0x579d('0xdc')]=this[_0x579d('0x3a')]['plugins'][_0x579d('0x9d')](_0x4110b6);}[_0x579d('0x2')](){const _0x3cd93b=this[_0x579d('0x3a')];_0x3cd93b[_0x579d('0x2c')][_0x579d('0x5f')]['useFillerType'](_0x579d('0xa4'));const _0x127304=new B(_0x3cd93b,{'direction':_0x579d('0x83')}),_0x5efd59=new B(_0x3cd93b,{'direction':_0x579d('0xc5')});_0x3cd93b[_0x579d('0x6e')][_0x579d('0x89')](_0x579d('0x99'),_0x127304),_0x3cd93b['commands'][_0x579d('0x89')]('showNextChange',_0x5efd59),_0x3cd93b['commands']['add']('restoreRevision',new z(_0x3cd93b)),this['on'](_0x579d('0x6d'),()=>{_0x127304[_0x579d('0x6a')](),_0x5efd59[_0x579d('0x6a')]();}),this['_setConversion'](),this[_0x579d('0xa5')](),_0x3cd93b['isReadOnly']=!0x0;}async[_0x579d('0x10')](_0x5bbae1){await this['loadRevisionData'](_0x5bbae1);const _0x1d41d0={};for(const _0x36defe in _0x5bbae1[_0x579d('0xf7')]){const _0x12aefa=this[_0x579d('0xb5')](JSON['parse'](_0x5bbae1[_0x579d('0xf7')][_0x36defe][_0x579d('0xf5')])),_0x4035b1=this[_0x579d('0x3a')][_0x579d('0x44')]['view']['document'],_0x99f6bb=new _0x97eae4(_0x4035b1,_0x12aefa[_0x579d('0x34')](_0x374e70=>this[_0x579d('0x23')](_0x374e70)));_0x1d41d0[_0x36defe]=this[_0x579d('0x3a')][_0x579d('0x2c')][_0x579d('0x62')]['toData'](_0x99f6bb);}return _0x1d41d0;}['_removeRevisionMarkers'](_0x2a7a04){return(_0x2a7a04=_0x2a7a04[_0x579d('0xfa')](_0x475700=>!_0x475700[_0x579d('0xd1')]||_0x579d('0xec')!==_0x475700[_0x579d('0xd1')]&&'revision-end'!==_0x475700[_0x579d('0xd1')]))[_0x579d('0x101')](_0x513447=>{_0x579d('0x3e')!=typeof _0x513447&&(_0x513447['children']=this[_0x579d('0xb5')](_0x513447[_0x579d('0x30')]),_0x513447['attributes']=_0x513447['attributes'][_0x579d('0xfa')](_0x580850=>!_0x580850[0x0][_0x579d('0xbc')](_0x579d('0x68'))));}),_0x2a7a04;}[_0x579d('0x77')](_0x58ee9a,_0x318e24,_0x4cd104=!0x1){if(!this['isEnabled'])return;const _0x444ee2=this[_0x579d('0x73')],_0x1809cc='string'==typeof _0x58ee9a?_0x444ee2['getRevision'](_0x58ee9a):_0x58ee9a,_0x316f8b=_0x579d('0x3e')==typeof _0x318e24?_0x444ee2[_0x579d('0x36')](_0x318e24):_0x318e24,_0x5bdaa5=_0x1809cc['id'],_0x20939d=_0x316f8b?_0x316f8b['id']:null;if(!_0x4cd104&&this[_0x579d('0xd7')]&&this[_0x579d('0xd7')][_0x579d('0xf3')]===_0x5bdaa5&&this[_0x579d('0xd7')]['oldRevisionId']===_0x20939d)return Promise[_0x579d('0x9')]();this['isReady']=!0x1,this[_0x579d('0x6b')]=null,this[_0x579d('0xd7')]=new _0x2b2a2c(_0x5bdaa5,_0x20939d);const _0x26a990=this[_0x579d('0xae')](_0x1809cc,_0x316f8b,!0x0)['map'](_0x1e90b9=>this[_0x579d('0x12')](_0x1e90b9));return _0x26a990[_0x579d('0x26')](new Promise(_0x4cfe67=>{setTimeout(_0x4cfe67,0x14);})),Promise['all'](_0x26a990)[_0x579d('0xbf')](()=>{if(!this['isEnabled'])return;this[_0x579d('0x82')]();const _0x524237=this[_0x579d('0x88')](_0x5bdaa5,_0x20939d);this[_0x579d('0xd7')][_0x579d('0xe5')](_0x524237);for(const _0x2b6812 of this[_0x579d('0xd7')]['changes'])this[_0x579d('0x41')]['set'](_0x2b6812['id'],_0x2b6812);this[_0x579d('0x3a')][_0x579d('0xd0')]['enqueueChange']({'isUndoable':!0x1},_0x4a730a=>{for(const _0x59ab77 of Object[_0x579d('0x29')](_0x524237[_0x579d('0xd0')])){const _0x5554c0=this[_0x579d('0x3a')]['model'][_0x579d('0xdd')][_0x579d('0xc7')](_0x59ab77);_0x4a730a['remove'](_0x4a730a[_0x579d('0xaa')](_0x5554c0)),_0x4a730a['insert'](_0x524237['model'][_0x59ab77],_0x5554c0,0x0);}}),this['isReady']=!0x0;})['catch'](_0x4a8b8c=>{console['error'](_0x4a8b8c),this[_0x579d('0xa8')]=!0x0;});}[_0x579d('0x4a')](){this[_0x579d('0x6b')]=null,this['_changeView']&&this[_0x579d('0xf8')]['destroy']();}[_0x579d('0x17')](_0x324a40,_0x322272){const _0x360189=this[_0x579d('0x73')][_0x579d('0x102')](_0x324a40);return _0x360189['on'](_0x579d('0x94'),(_0x5bea10,_0xc9ccb6,_0x5384e4)=>_0x322272(_0xc9ccb6,_0x5384e4,_0x360189)),this['repository'][_0x579d('0x9c')](_0x360189),_0x360189;}[_0x579d('0x12')](_0x293ad2){if(!_0x293ad2||_0x293ad2['diffData'])return Promise[_0x579d('0x9')]();{const _0x40ecb8=this['editor']['config']['get'](_0x579d('0x3c'));return this['adapter']['getRevision']({'channelId':_0x40ecb8,'revisionId':_0x293ad2['id']})[_0x579d('0xbf')](_0x3c1025=>{_0x293ad2[_0x579d('0x94')]({'diffData':_0x3c1025[_0x579d('0xf7')]},!0x0);});}}[_0x579d('0x82')](){this[_0x579d('0x40')]=null,this[_0x579d('0x5b')](),this[_0x579d('0xf8')]&&this[_0x579d('0xf8')][_0x579d('0x4a')](),this[_0x579d('0xf8')]=null,this[_0x579d('0x41')]['clear']();}['_makeTape'](_0x1651ee){const _0xb64825=Array[_0x579d('0xb1')](_0x1651ee['markers'])[_0x579d('0xfa')](([_0x50aa1c,_0x3a3a77])=>_0x50aa1c[_0x579d('0xbc')]('revision:')&&!_0x3a3a77['isCollapsed']),_0x371d6e=Array[_0x579d('0xb1')](this[_0x579d('0x3a')][_0x579d('0xd0')][_0x579d('0xaa')](_0x1651ee)[_0x579d('0x47')]({'singleCharacters':!0x0}));if(0x0!=_0xb64825['length'])for(const _0xc22b74 of _0x371d6e){const [_0x496986,_0x4ae777]=_0xb64825[0x0],[,_0x3a71ee,_0x19ac3b]=_0x496986[_0x579d('0xe0')](':');if(_0x4ae777[_0x579d('0x81')][_0x579d('0x37')](_0xc22b74[_0x579d('0x3b')])&&_0xb64825[_0x579d('0xb2')](),(_0xc22b74[_0x579d('0xe8')]['isEqual'](_0x4ae777[_0x579d('0x75')])||_0xc22b74[_0x579d('0xe8')][_0x579d('0xdb')](_0x4ae777[_0x579d('0x75')]))&&(_0x579d('0x52')==_0x3a71ee?_0xc22b74[_0x579d('0xf2')]={'userId':_0x19ac3b}:_0x579d('0xbd')==_0x3a71ee&&(_0xc22b74['isRemoved']={'userId':_0x19ac3b})),0x0==_0xb64825[_0x579d('0x4b')])break;}return _0x371d6e;}['_refreshStartEndIndex'](_0x1e885b){const _0xd852bc=new Map();for(let _0x2068a4=0x0;_0x2068a4<_0x1e885b['length'];_0x2068a4++)'text'===_0x1e885b[_0x2068a4][_0x579d('0x96')]?(_0x1e885b[_0x2068a4]['item'][_0x579d('0x67')]=_0x2068a4,_0x1e885b[_0x2068a4][_0x579d('0x61')][_0x579d('0xf1')]=_0x2068a4):('elementStart'===_0x1e885b[_0x2068a4][_0x579d('0x96')]?_0x1e885b[_0x2068a4][_0x579d('0x61')][_0x579d('0x67')]=_0x2068a4:_0x579d('0x64')===_0x1e885b[_0x2068a4]['type']&&(_0x1e885b[_0x2068a4][_0x579d('0x61')][_0x579d('0xf1')]=_0x2068a4),_0xd852bc['set'](_0x1e885b[_0x2068a4]['id'],_0x2068a4));for(const _0xe918ec of _0xd852bc[_0x579d('0x70')]())_0x579d('0x7c')===_0x1e885b[_0xe918ec]['type']?_0x1e885b[_0xe918ec]['item'][_0x579d('0xf1')]=_0xd852bc[_0x579d('0x9d')](_0x1e885b[_0xe918ec][_0x579d('0xc8')]):_0x579d('0x64')===_0x1e885b[_0xe918ec][_0x579d('0x96')]&&(_0x1e885b[_0xe918ec]['item'][_0x579d('0x67')]=_0xd852bc[_0x579d('0x9d')](_0x1e885b[_0xe918ec]['pairId']));}[_0x579d('0x2a')](_0x1f8038){for(let _0x409f10=0x0;_0x409f10<_0x1f8038[_0x579d('0x4b')];_0x409f10++){if(_0x579d('0x7c')===_0x1f8038[_0x409f10][_0x579d('0x96')])_0x1f8038[_0x409f10][_0x579d('0x61')]['startIndex']=_0x409f10;else{if('elementEnd'===_0x1f8038[_0x409f10][_0x579d('0x96')]){_0x1f8038[_0x409f10]['item'][_0x579d('0xf1')]=_0x409f10;const _0x58b346=_0x1f8038[_0x409f10]['item']['startIndex'];_0x1f8038[_0x58b346][_0x579d('0xc8')]=_0x1f8038[_0x409f10]['id'],_0x1f8038[_0x409f10][_0x579d('0xc8')]=_0x1f8038[_0x58b346]['id'];}else _0x1f8038[_0x409f10]['item'][_0x579d('0x67')]=_0x409f10,_0x1f8038[_0x409f10][_0x579d('0x61')][_0x579d('0xf1')]=_0x409f10,_0x1f8038[_0x409f10][_0x579d('0xc8')]=null;}_0x1f8038[_0x409f10][_0x579d('0xd8')]||(_0x1f8038[_0x409f10]['markersStart']=[],_0x1f8038[_0x409f10][_0x579d('0x80')]=[]);}}[_0x579d('0xad')](_0x4e5513,_0x2b8186){const _0x524fd8=_0x4e5513[_0x579d('0xfa')](_0x1181f2=>!_0x1181f2[_0x579d('0xf2')]);for(let _0x2e7273=0x0;_0x2e7273<_0x2b8186[_0x579d('0x4b')];_0x2e7273++)_0x2b8186[_0x2e7273][_0x579d('0xf2')]&&(_0x524fd8[_0x2e7273][_0x579d('0xf2')]=_0x2b8186[_0x2e7273][_0x579d('0xf2')]);}['_makeModelFromViewString'](_0x4665b6){const _0x5d4b43=JSON[_0x579d('0x16')](_0x4665b6),_0x481700=this['editor'][_0x579d('0x44')][_0x579d('0xf6')][_0x579d('0xdd')],_0x4d7c4e=new _0x97eae4(_0x481700,_0x5d4b43['map'](_0x1c161e=>this[_0x579d('0x23')](_0x1c161e)));return this[_0x579d('0x3a')][_0x579d('0x2c')][_0x579d('0x20')](_0x4d7c4e);}[_0x579d('0x23')](_0x32b3d3){const _0x420e6b=this[_0x579d('0x3a')][_0x579d('0x44')]['view'][_0x579d('0xdd')];if(_0x579d('0x3e')==typeof _0x32b3d3)return new _0x50f5aa(_0x420e6b,_0x32b3d3);{const _0x323fd9=_0x32b3d3[_0x579d('0x30')]['map'](_0x31d796=>this[_0x579d('0x23')](_0x31d796));return new _0x597fe3(_0x420e6b,_0x32b3d3[_0x579d('0xd1')],_0x32b3d3[_0x579d('0x2b')],_0x323fd9);}}[_0x579d('0x88')](_0x57ef47,_0x38b7ea=null){const _0x4ef731=this[_0x579d('0x73')]['getRevision'](_0x57ef47),_0x1996d6=_0x38b7ea?this[_0x579d('0x73')][_0x579d('0x36')](_0x38b7ea):null,_0x376861=this['_getRevisionsRange'](_0x4ef731,_0x1996d6),_0x15cce8=_0x376861[_0x376861[_0x579d('0x4b')]-0x1],_0x503474=new Map();for(const _0x48fd26 of _0x376861){_0x48fd26[_0x579d('0xd0')]={};for(const _0x3a0383 of _0x48fd26[_0x579d('0xa9')])_0x503474[_0x579d('0x4c')](_0x3a0383['id'],_0x3a0383);for(const _0x4f055c of this[_0x579d('0x3a')][_0x579d('0xd0')][_0x579d('0xdd')][_0x579d('0x59')]())_0x48fd26[_0x579d('0xf7')][_0x4f055c]||(_0x48fd26[_0x579d('0xf7')][_0x4f055c]={'insertions':'[]','deletions':'[]'}),_0x48fd26[_0x579d('0xd0')][_0x4f055c]={'insertions':this[_0x579d('0x91')](_0x48fd26[_0x579d('0xf7')][_0x4f055c][_0x579d('0xf5')]),'deletions':this[_0x579d('0x91')](_0x48fd26[_0x579d('0xf7')][_0x4f055c]['deletions'])};}const _0x1fc136={'model':{},'changes':[]};for(const _0x44cbbc of this[_0x579d('0x3a')]['model'][_0x579d('0xdd')][_0x579d('0x59')]()){let _0x5bc1fa=null,_0x3b192e=0x0;const _0x5b80a1=new Map(Array['from'](_0x4ef731[_0x579d('0xd0')][_0x44cbbc][_0x579d('0xf5')][_0x579d('0xe6')])[_0x579d('0xfa')](([_0x395974])=>!_0x395974[_0x579d('0xbc')](_0x579d('0x7'))));let _0x31d135=0x0;for(const _0xb873d7 of _0x376861){const _0xbf251c=this['_makeTape'](_0xb873d7[_0x579d('0xd0')][_0x44cbbc]['insertions']);_0xb873d7==_0x4ef731?(_0x5bc1fa=_0xbf251c,_0x3b192e=_0x5bc1fa[_0x579d('0x4b')],_0x5bc1fa[_0x579d('0x101')](_0x2b2150=>{_0x2b2150['id']=_0x31d135++;}),this[_0x579d('0x2a')](_0x5bc1fa)):this[_0x579d('0xad')](_0x5bc1fa,_0xbf251c);const _0x25d36e=_0x5bc1fa['filter'](_0x144f80=>!_0x144f80[_0x579d('0xf2')])[_0x579d('0x34')](_0x1b45ae=>_0x1b45ae['id']),_0x4dcab8=this[_0x579d('0xa1')](_0xb873d7[_0x579d('0xd0')][_0x44cbbc][_0x579d('0x74')]);_0x4dcab8['forEach'](_0x2eb18b=>{_0x2eb18b['isRemoved']?_0x2eb18b['id']=_0x3b192e++:_0x2eb18b['id']=_0x25d36e[_0x579d('0xb2')]();}),this[_0x579d('0x2a')](_0x4dcab8),this[_0x579d('0x72')](_0x5bc1fa,_0x579d('0xf2')),this[_0x579d('0x72')](_0x4dcab8,_0x579d('0xce')),_0xb873d7==_0x4ef731&&this[_0x579d('0x3f')](_0x5bc1fa,_0x5b80a1),_0x5bc1fa=this[_0x579d('0x8e')](_0x5bc1fa,_0x4dcab8),this[_0x579d('0xca')](_0x5bc1fa),this[_0x579d('0x72')](_0x5bc1fa,'isRemoved');}_0x5bc1fa=_0x5bc1fa[_0x579d('0xfa')](_0x1de04a=>!(_0x1de04a[_0x579d('0xf2')]&&_0x1de04a['isRemoved']));const _0x329cfc=new Map(_0x15cce8[_0x579d('0xd0')][_0x44cbbc][_0x579d('0x74')][_0x579d('0xe6')]),_0x399767=new Set(_0x5b80a1[_0x579d('0x29')]());for(const _0x583207 of _0x329cfc[_0x579d('0x29')]())_0x399767[_0x579d('0xcb')](_0x583207);this[_0x579d('0x57')](_0x5bc1fa,_0x399767),this[_0x579d('0x9e')](_0x5bc1fa),_0x5bc1fa=this[_0x579d('0xcf')](_0x5bc1fa),_0x5bc1fa=this[_0x579d('0xc2')](_0x5bc1fa),_0x5bc1fa=this[_0x579d('0x60')](_0x5bc1fa);const {root:_0x55b28d,changes:_0x49177e}=this[_0x579d('0x1e')](_0x5bc1fa,_0x503474);_0x1fc136[_0x579d('0xd0')][_0x44cbbc]=_0x55b28d,_0x1fc136['changes']=_0x1fc136[_0x579d('0x3')][_0x579d('0x45')](_0x49177e);}return _0x1fc136;}[_0x579d('0x3f')](_0x304f4e,_0x213238){for(let _0x30a99d=0x0;_0x30a99d<_0x304f4e['length'];_0x30a99d++)for(const [_0x598052,_0x2a261a]of _0x213238)_0x2a261a[_0x579d('0x75')][_0x579d('0x37')](_0x304f4e[_0x30a99d][_0x579d('0xe8')])&&_0x304f4e[_0x30a99d][_0x579d('0xd8')][_0x579d('0x26')](_0x598052),_0x2a261a[_0x579d('0x81')][_0x579d('0x37')](_0x304f4e[_0x30a99d][_0x579d('0x3b')])&&_0x304f4e[_0x30a99d][_0x579d('0x80')][_0x579d('0x26')](_0x598052);}['_joinTapes'](_0x22d837,_0x2446b1){let _0x4da581=[],_0x17b6ff=0x0,_0xdd5668=0x0;for(;_0x17b6ff<_0x22d837[_0x579d('0x4b')]||_0xdd5668<_0x2446b1['length'];){const _0x1013aa=_0x22d837[_0x17b6ff]||{},_0x1fe0a1=_0x2446b1[_0xdd5668]||{};if(_0x1013aa['id']==_0x1fe0a1['id'])_0x17b6ff++,_0xdd5668++,_0x4da581[_0x579d('0x26')](_0x1013aa);else{if(_0x1fe0a1[_0x579d('0xce')]&&_0x1013aa[_0x579d('0xf2')]){const {commonTape:_0x1cd5c6,iEnd:_0x5d7ae0,jEnd:_0x539310}=this[_0x579d('0xc9')](_0x22d837,_0x17b6ff,_0x2446b1,_0xdd5668);_0x4da581=_0x4da581[_0x579d('0x45')](_0x1cd5c6),_0x17b6ff=_0x5d7ae0,_0xdd5668=_0x539310;}else _0x1fe0a1[_0x579d('0xce')]?(_0xdd5668++,_0x4da581[_0x579d('0x26')](_0x1fe0a1)):(_0x17b6ff++,_0x4da581[_0x579d('0x26')](_0x1013aa));}}return _0x4da581;}[_0x579d('0x57')](_0x232209,_0x200678){const _0x55cad1=[];for(let _0x5548ad=0x0;_0x5548ad<_0x232209[_0x579d('0x4b')];_0x5548ad++){for(let _0x18584=0x0;_0x18584<_0x232209[_0x5548ad][_0x579d('0xd8')][_0x579d('0x4b')];_0x18584++){const _0x3403e5=_0x232209[_0x5548ad][_0x579d('0xd8')][_0x18584];if(!_0x200678['has'](_0x3403e5))continue;const {group:_0x4ad1b7,type:_0x5173e0,authorId:_0x1d643d}=_0x5d1333(_0x3403e5);_0x579d('0xbb')!=_0x4ad1b7||_0x579d('0x52')!=_0x5173e0&&_0x579d('0xbd')!=_0x5173e0||(_0x55cad1[_0x579d('0x6')]({'type':_0x5173e0,'name':_0x3403e5,'userId':_0x1d643d}),_0x232209[_0x5548ad][_0x579d('0xd8')][_0x579d('0x5c')](_0x18584,0x1),_0x18584--);}_0x441362(_0x232209[_0x5548ad]);for(let _0xc4c334=0x0;_0xc4c334<_0x232209[_0x5548ad][_0x579d('0x80')][_0x579d('0x4b')];_0xc4c334++){const _0x5abb50=_0x232209[_0x5548ad][_0x579d('0x80')][_0xc4c334];if(!_0x200678['has'](_0x5abb50))continue;const {group:_0x5f270c,type:_0x1d893a}=_0x5d1333(_0x5abb50);if(_0x579d('0xbb')!=_0x5f270c||_0x579d('0x52')!=_0x1d893a&&_0x579d('0xbd')!=_0x1d893a)continue;_0x232209[_0x5548ad][_0x579d('0x80')][_0x579d('0x5c')](_0xc4c334,0x1),_0xc4c334--;const _0x36d0c8=_0x55cad1[_0x579d('0xb4')](_0x233521=>_0x233521[_0x579d('0xd1')]==_0x5abb50);_0x36d0c8>-0x1&&_0x55cad1[_0x579d('0x5c')](_0x36d0c8,0x1);}}function _0x5d1333(_0x4b64a9){const _0x3b9ff1=_0x4b64a9[_0x579d('0xe0')](':');return{'group':_0x3b9ff1[0x0],'type':_0x3b9ff1[0x1],'subType':_0x3b9ff1[_0x579d('0x4b')]>=0x5?_0x3b9ff1[0x2]:null,'id':_0x3b9ff1['length']<0x5?_0x3b9ff1[0x2]:_0x3b9ff1[0x3],'authorId':_0x3b9ff1['length']<0x5?_0x3b9ff1[0x3]:_0x3b9ff1[0x4],'markerCount':0x6==_0x3b9ff1[_0x579d('0x4b')]?_0x3b9ff1[0x5]:null};}function _0x441362(_0xaeb305){for(let _0x20a711=0x0;_0x20a711<_0x55cad1[_0x579d('0x4b')];_0x20a711++){if(_0xaeb305[_0x579d('0xf2')]&&_0x579d('0x52')==_0x55cad1[_0x20a711][_0x579d('0x96')])return _0xaeb305[_0x579d('0x7b')]=_0x55cad1[_0x20a711],void delete _0xaeb305[_0x579d('0xf2')];if(!_0xaeb305[_0x579d('0xf2')]&&!_0xaeb305[_0x579d('0xce')]&&_0x579d('0xbd')==_0x55cad1[_0x20a711][_0x579d('0x96')])return void(_0xaeb305[_0x579d('0x1a')]=_0x55cad1[_0x20a711]);}}}['_setDistance'](_0xb23d5e,_0x594ff1){let _0x2de4dd=0x0,_0x29a446=!0x1;const _0x131276=new Map();for(const _0x5638cd of _0xb23d5e)_0x5638cd[_0x594ff1]?_0x29a446&&(_0x2de4dd++,_0x29a446=!0x1):(_0x2de4dd++,_0x29a446=!0x0),_0x131276[_0x579d('0x4c')](_0x5638cd['id'],_0x2de4dd);for(let _0x13ce8a=0x0;_0x13ce8a<_0xb23d5e[_0x579d('0x4b')];_0x13ce8a++){if(_0x579d('0xce')==_0x594ff1&&_0xb23d5e[_0x13ce8a][_0x579d('0xf2')]||_0x579d('0xf2')==_0x594ff1&&_0xb23d5e[_0x13ce8a]['isRemoved'])continue;if(_0x579d('0x1f')==_0xb23d5e[_0x13ce8a][_0x579d('0x96')]){_0xb23d5e[_0x13ce8a][_0x579d('0x78')]=0x0;continue;}const _0x4c73a7=_0x131276[_0x579d('0x9d')](_0xb23d5e[_0x13ce8a]['pairId']),_0x15e7dd=_0x131276['get'](_0xb23d5e[_0x13ce8a]['id']);_0xb23d5e[_0x13ce8a][_0x579d('0x78')]=_0x4c73a7-_0x15e7dd;}}['_getRevisionsRange'](_0x482053,_0x172171,_0x2f676e=!0x1){const _0x50d37b=[];let _0x50e8da=this[_0x579d('0x73')][_0x579d('0xb')](_0x482053),_0x205e28=this[_0x579d('0x73')][_0x579d('0xb')](_0x172171);for(-0x1==_0x205e28&&(_0x205e28=this[_0x579d('0x73')]['_revisions'][_0x579d('0x4b')],_0x2f676e=!0x1);_0x50e8da<_0x205e28;)_0x50d37b[_0x579d('0x26')](this['repository'][_0x579d('0x36')](_0x50e8da)),_0x50e8da++;return _0x2f676e&&_0x50d37b[_0x579d('0x26')](this['repository'][_0x579d('0x36')](_0x50e8da)),_0x50d37b;}[_0x579d('0xc9')](_0x46bb51,_0x3b6ea9,_0xb774c4,_0x4a4f1){const _0x145547=this[_0x579d('0x3a')][_0x579d('0xd0')][_0x579d('0xfd')];let _0x4f4d27=_0x3b6ea9;for(;_0x46bb51[_0x4f4d27]&&_0x46bb51[_0x4f4d27][_0x579d('0xf2')];)_0x4f4d27++;let _0x466407=_0x4a4f1;for(;_0xb774c4[_0x466407]&&_0xb774c4[_0x466407][_0x579d('0xce')];)_0x466407++;_0x14cec1(_0x46bb51,_0x3b6ea9,_0x4f4d27),_0x14cec1(_0xb774c4,_0x4a4f1,_0x466407);const _0x1c6bc5=_0xb774c4[_0x579d('0xe1')](_0x4a4f1,_0x466407)[_0x579d('0x45')](_0x46bb51[_0x579d('0xe1')](_0x3b6ea9,_0x4f4d27));return _0x1c6bc5[_0x579d('0x7e')]((_0x2ce958,_0x3bc3a4)=>_0x2ce958['side']!=_0x3bc3a4[_0x579d('0xa6')]?_0x2ce958[_0x579d('0xa6')]-_0x3bc3a4['side']:_0x2ce958[_0x579d('0xa')]!=_0x3bc3a4[_0x579d('0xa')]?_0x2ce958[_0x579d('0xa')]-_0x3bc3a4[_0x579d('0xa')]:_0x2ce958[_0x579d('0x78')]!=_0x3bc3a4[_0x579d('0x78')]?_0x3bc3a4['distance']-_0x2ce958['distance']:!!_0x2ce958[_0x579d('0xf2')]!=!!_0x3bc3a4[_0x579d('0xf2')]?-0x1==_0x2ce958[_0x579d('0xa6')]||0x0==_0x2ce958['side']?_0x2ce958['isAdded']?-0x1:0x1:_0x2ce958[_0x579d('0xf2')]?0x1:-0x1:_0x2ce958['index']-_0x3bc3a4['index']),{'commonTape':_0x1c6bc5,'iEnd':_0x4f4d27,'jEnd':_0x466407};function _0x14cec1(_0x2006ce,_0x731ce5,_0x58b6ac){let _0x5bce0a=-0x1,_0x1c9dd5=Number[_0x579d('0xb8')],_0x86c9c8=!0x0;for(let _0x5049d7=_0x731ce5;_0x5049d7<_0x58b6ac;_0x5049d7++)if(_0x145547[_0x579d('0x2e')](_0x2006ce[_0x5049d7][_0x579d('0x61')])||(_0x86c9c8=!0x1),_0x2006ce[_0x5049d7]['item'][_0x579d('0x67')]<_0x731ce5&&(_0x5bce0a=_0x5049d7),_0x2006ce[_0x5049d7]['item'][_0x579d('0xf1')]>=_0x58b6ac){_0x1c9dd5=_0x5049d7;break;}_0x86c9c8&&(_0x5bce0a=_0x58b6ac-0x1);for(let _0x4999d8=_0x731ce5;_0x4999d8<_0x58b6ac;_0x4999d8++)_0x2006ce[_0x4999d8][_0x579d('0xa6')]=_0x4999d8<=_0x5bce0a?-0x1:_0x4999d8<_0x1c9dd5?0x0:0x1,_0x2006ce[_0x4999d8][_0x579d('0x8')]=_0x4999d8;let _0x4bd944=0x0;for(let _0x3cfa3f=_0x731ce5;_0x3cfa3f<=_0x5bce0a;_0x3cfa3f++)0x0==_0x2006ce[_0x3cfa3f][_0x579d('0x78')]?_0x2006ce[_0x3cfa3f][_0x579d('0xa')]=_0x4bd944:(_0x4bd944++,_0x2006ce[_0x3cfa3f][_0x579d('0xa')]=_0x4bd944,_0x4bd944++);for(let _0x4414e4=_0x731ce5;_0x4414e4<_0x58b6ac;_0x4414e4++)0x0==_0x2006ce[_0x4414e4][_0x579d('0xa6')]&&(_0x2006ce[_0x4414e4][_0x579d('0xa')]=_0x4bd944);_0x4bd944=0x0;for(let _0x4801d6=_0x58b6ac-0x1;_0x4801d6>=_0x1c9dd5;_0x4801d6--)0x0==_0x2006ce[_0x4801d6][_0x579d('0x78')]?_0x2006ce[_0x4801d6][_0x579d('0xa')]=_0x4bd944:(_0x4bd944--,_0x2006ce[_0x4801d6][_0x579d('0xa')]=_0x4bd944,_0x4bd944--);}}[_0x579d('0x9e')](_0x45da8b){const _0x422e17=new Map(),_0x8150d7=this[_0x579d('0x3a')]['model'][_0x579d('0xfd')];for(let _0x4cbec9=0x1;_0x4cbec9<_0x45da8b['length'];_0x4cbec9++){let _0x4eda87,_0x1ddcce,_0x2e9330;const _0x55b12c=_0x45da8b[_0x4cbec9],_0x7320db=_0x45da8b[_0x4cbec9-0x1];if(_0x579d('0x1f')==_0x55b12c[_0x579d('0x96')])continue;if(_0x55b12c['type']!=_0x7320db['type'])continue;if(!_0x8150d7[_0x579d('0xcc')](_0x7320db[_0x579d('0x61')])||_0x8150d7['isLimit'](_0x7320db[_0x579d('0x61')]))continue;if(!_0x8150d7[_0x579d('0xcc')](_0x55b12c[_0x579d('0x61')])||_0x8150d7['isLimit'](_0x55b12c[_0x579d('0x61')]))continue;if((_0x45da8b[_0x4cbec9][_0x579d('0xf2')]||_0x45da8b[_0x4cbec9][_0x579d('0x7b')])&&_0x45da8b[_0x4cbec9-0x1][_0x579d('0xce')])_0x4eda87=_0x45da8b[_0x4cbec9],_0x1ddcce=_0x45da8b[_0x4cbec9-0x1],_0x2e9330=_0x4cbec9-0x1;else{if(!_0x45da8b[_0x4cbec9][_0x579d('0xce')]||!_0x45da8b[_0x4cbec9-0x1]['isAdded']&&!_0x45da8b[_0x4cbec9-0x1][_0x579d('0x7b')])continue;_0x4eda87=_0x45da8b[_0x4cbec9-0x1],_0x1ddcce=_0x45da8b[_0x4cbec9],_0x2e9330=_0x4cbec9;}const _0x6340d6=_0x4eda87[_0x579d('0xa')]==_0x1ddcce[_0x579d('0xa')],_0x1f7092=Math[_0x579d('0xb3')](_0x4eda87[_0x579d('0xa')])<Math[_0x579d('0xb3')](_0x1ddcce[_0x579d('0xa')])&&0x0==_0x1ddcce[_0x579d('0x78')];(_0x6340d6||_0x1f7092)&&(_0x422e17[_0x579d('0x4c')](_0x1ddcce['id'],_0x4eda87['id']),_0x45da8b[_0x579d('0x5c')](_0x2e9330,0x1),_0x4cbec9--,_0x4eda87[_0x579d('0xf2')]=!0x1);}for(let _0x44463b=0x0;_0x44463b<_0x45da8b[_0x579d('0x4b')];_0x44463b++)_0x422e17[_0x579d('0x6f')](_0x45da8b[_0x44463b]['pairId'])&&(_0x45da8b[_0x44463b][_0x579d('0xc8')]=_0x422e17[_0x579d('0x9d')](_0x45da8b[_0x44463b]['pairId']));}[_0x579d('0xcf')](_0x400bbe){const _0x5ddcec=new Set(_0x400bbe[_0x579d('0x34')](_0x1263ca=>_0x1263ca['id']));for(let _0x57c91a=0x0;_0x57c91a<_0x400bbe['length'];_0x57c91a++)_0x5ddcec[_0x579d('0x6f')](_0x400bbe[_0x57c91a][_0x579d('0xc8')])||0x0==_0x400bbe[_0x57c91a][_0x579d('0x78')]||(_0x400bbe[_0x57c91a][_0x579d('0x8c')]=!0x0);return _0x400bbe[_0x579d('0xfa')](_0x1a56e4=>!_0x1a56e4[_0x579d('0x8c')]);}[_0x579d('0xc2')](_0x2791d3){const _0x2c3a61=new Set();for(let _0x2eb414=0x0;_0x2eb414<_0x2791d3[_0x579d('0x4b')];_0x2eb414++){if(_0x2c3a61['has'](_0x2791d3[_0x2eb414]['id'])&&_0x2791d3[_0x2eb414]['isRemoved']&&(_0x2791d3[_0x2eb414][_0x579d('0x8c')]=!0x0),_0x2791d3[_0x2eb414][_0x579d('0x8c')])continue;if(0x0==_0x2791d3[_0x2eb414]['distance'])continue;if(_0x579d('0x7c')!=_0x2791d3[_0x2eb414][_0x579d('0x96')])continue;if(null==_0x2791d3[_0x2eb414][_0x579d('0xc8')])continue;let _0x3a055c=_0x2eb414+0x1,_0x3b668b=0x0;for(;_0x2791d3[_0x3a055c]['id']!=_0x2791d3[_0x2eb414][_0x579d('0xc8')];)_0x579d('0x7c')==_0x2791d3[_0x3a055c]['type']?_0x3b668b++:'elementEnd'==_0x2791d3[_0x3a055c][_0x579d('0x96')]&&_0x3b668b--,_0x3a055c++;if(0x0!=_0x3b668b){if(_0x2791d3[_0x2eb414]['isRemoved'])_0x2791d3[_0x2eb414][_0x579d('0x8c')]=!0x0;else for(;_0x3a055c!=_0x2eb414;)_0x2791d3[_0x3a055c]['isRemoved']&&0x0!=_0x2791d3[_0x3a055c][_0x579d('0x78')]&&(_0x2791d3[_0x3a055c][_0x579d('0x8c')]=!0x0,_0x2c3a61[_0x579d('0x89')](_0x2791d3[_0x3a055c][_0x579d('0xc8')])),_0x3a055c--;}}return _0x2791d3[_0x579d('0xfa')](_0x57bf16=>!_0x57bf16[_0x579d('0x8c')]);}[_0x579d('0x60')](_0x12876e){const _0x47e1f7=this[_0x579d('0x3a')][_0x579d('0xd0')][_0x579d('0xfd')];for(let _0x4aa4cb=0x0;_0x4aa4cb<_0x12876e[_0x579d('0x4b')];_0x4aa4cb++){if(!(_0x12876e[_0x4aa4cb][_0x579d('0xf2')]||_0x12876e[_0x4aa4cb]['isAddSuggestion']||_0x12876e[_0x4aa4cb][_0x579d('0xce')]||_0x12876e[_0x4aa4cb][_0x579d('0x1a')]))continue;if(0x0==_0x12876e[_0x4aa4cb][_0x579d('0x78')])continue;const _0x4ddfb2=_0x12876e[_0x4aa4cb][_0x579d('0x61')];_0x47e1f7[_0x579d('0xcc')](_0x4ddfb2)||_0x47e1f7[_0x579d('0x95')](_0x4ddfb2)||(_0x12876e[_0x4aa4cb][_0x579d('0xf2')]&&delete _0x12876e[_0x4aa4cb][_0x579d('0xf2')],_0x12876e[_0x4aa4cb]['isAddSuggestion']&&delete _0x12876e[_0x4aa4cb]['isAddSuggestion'],_0x12876e[_0x4aa4cb]['isRemoveSuggestion']&&delete _0x12876e[_0x4aa4cb]['isRemoveSuggestion'],_0x12876e[_0x4aa4cb][_0x579d('0xce')]&&(_0x12876e[_0x4aa4cb][_0x579d('0x8c')]=!0x0));}return _0x12876e['filter'](_0x2327d7=>!_0x2327d7['isIncorrect']);}['_makeModelFromTape'](_0x2e5268,_0x393025){const _0xb2c125=new _0x14d6ac(),_0x3a7072=[],_0x39e6c2=new Map(),_0xcefa06=this[_0x579d('0x3a')][_0x579d('0xd0')],_0x5eb262=_0xcefa06[_0x579d('0xfd')],_0x49aa37=[_0xb2c125],_0x409848={},_0x917aba={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};for(let _0x2246d3=0x0;_0x2246d3<_0x2e5268['length'];_0x2246d3++){let _0x1f3b89,_0x240ff6;if(_0x579d('0x7c')===_0x2e5268[_0x2246d3][_0x579d('0x96')]){const _0x523b7f=new _0x4d55e7(_0x2e5268[_0x2246d3][_0x579d('0x61')]['name'],_0x2e5268[_0x2246d3][_0x579d('0x61')]['getAttributes']());_0x1f3b89=_0xcefa06[_0x579d('0xe9')](_0x49aa37[0x0],_0x579d('0x81')),_0x38b51f(_0x1f3b89,_0x523b7f),_0x240ff6=_0xcefa06[_0x579d('0xe9')](_0x523b7f,0x0),_0x49aa37[_0x579d('0x6')](_0x523b7f);}else{if(_0x579d('0x64')===_0x2e5268[_0x2246d3]['type']){const _0x3382bc=_0x49aa37[_0x579d('0xb2')]();_0x1f3b89=_0xcefa06[_0x579d('0xe9')](_0x3382bc,'end'),_0x240ff6=_0xcefa06[_0x579d('0x54')](_0x3382bc);}else{const _0x56a81d=new _0x388cb9(_0x2e5268[_0x2246d3][_0x579d('0x61')][_0x579d('0x2c')],_0x2e5268[_0x2246d3]['item'][_0x579d('0x100')]());_0x1f3b89=_0xcefa06[_0x579d('0xe9')](_0x49aa37[0x0],'end'),_0x38b51f(_0x1f3b89,_0x56a81d),_0x240ff6=_0x1f3b89[_0x579d('0x7f')](_0x2e5268[_0x2246d3][_0x579d('0x61')][_0x579d('0xd5')]);}}for(const _0xf07934 of _0x2e5268[_0x2246d3][_0x579d('0xd8')])_0x39e6c2[_0x579d('0x4c')](_0xf07934,{'start':_0x1f3b89,'end':null});_0x3c28e3('isRemoveSuggestion',_0x2246d3,_0x1f3b89,_0x240ff6),_0x3c28e3('isAddSuggestion',_0x2246d3,_0x1f3b89,_0x240ff6),_0x3c28e3(_0x579d('0xce'),_0x2246d3,_0x1f3b89,_0x240ff6),_0x3c28e3('isAdded',_0x2246d3,_0x1f3b89,_0x240ff6);for(const _0x802731 of _0x2e5268[_0x2246d3]['markersEnd']){_0x39e6c2['get'](_0x802731)[_0x579d('0x81')]=_0x240ff6;}}for(const [_0x3f598e,_0x431d9a]of _0x39e6c2){const _0xbc15b7=this[_0x579d('0x3a')][_0x579d('0xd0')][_0x579d('0x43')](_0x431d9a[_0x579d('0x75')],_0x431d9a[_0x579d('0x81')]);_0xb2c125[_0x579d('0xe6')][_0x579d('0x4c')](_0x3f598e,_0xbc15b7);}return _0x3a7072['sort']((_0x2f72f0,_0x2afdbf)=>{const _0x3397f2=_0xb2c125[_0x579d('0xe6')][_0x579d('0x9d')]('revision:'+_0x2f72f0['id']),_0x2f2c04=_0xb2c125['markers'][_0x579d('0x9d')](_0x579d('0x7')+_0x2afdbf['id']);return _0x3397f2[_0x579d('0x75')][_0x579d('0xfb')](_0x2f2c04['start'])?-0x1:_0x3397f2[_0x579d('0x75')]['isAfter'](_0x2f2c04['start'])?0x1:_0x3397f2[_0x579d('0x81')][_0x579d('0xfb')](_0x2f2c04[_0x579d('0x81')])?-0x1:_0x3397f2['end']['isAfter'](_0x2f2c04[_0x579d('0x81')])?0x1:_0x579d('0x89')===_0x2f72f0['type']?-0x1:0x1;}),{'root':_0xb2c125,'changes':_0x3a7072};function _0x3c28e3(_0x229141,_0x220f60,_0x2931ce,_0xcab89c){const _0x15697c=!!_0x2e5268[_0x220f60][_0x229141],_0x400137=_0x15697c?_0x2e5268[_0x220f60][_0x229141][_0x579d('0x2f')]:null,_0x5575df=_0x220f60===_0x2e5268[_0x579d('0x4b')]-0x1,_0x2a04f6=_0x917aba[_0x229141][0x0],_0x2d8db1=_0x5eb262[_0x579d('0xb6')](_0x2e5268[_0x220f60]['item']);!_0x409848[_0x229141]&&_0x15697c?_0x409848[_0x229141]={'start':_0x2931ce,'tapeItem':_0x2e5268[_0x220f60],'userId':_0x400137,'type':_0x229141}:_0x409848[_0x229141]&&!_0x15697c?(_0x409848[_0x229141][_0x579d('0x81')]=_0x2931ce,_0x1371b5(_0x409848[_0x229141]),_0x409848[_0x229141]=null):_0x409848[_0x229141]&&_0x15697c&&_0x409848[_0x229141]['userId']!==_0x400137&&(_0x409848[_0x229141][_0x579d('0x81')]=_0x2931ce,_0x2a04f6&&_0x2a04f6[_0x579d('0x2f')]===_0x409848[_0x229141][_0x579d('0x2f')]||_0x1371b5(_0x409848[_0x229141]),_0x409848[_0x229141]={'start':_0x2931ce,'tapeItem':_0x2e5268[_0x220f60],'userId':_0x400137,'type':_0x229141}),_0x409848[_0x229141]&&_0x2d8db1&&('elementStart'!==_0x2e5268[_0x220f60][_0x579d('0x96')]||_0x2a04f6&&_0x2a04f6['userId']===_0x400137||_0x917aba[_0x229141][_0x579d('0x6')]({'userId':_0x400137,'object':_0x2e5268[_0x220f60][_0x579d('0x61')],'change':_0x409848[_0x229141]}),_0x579d('0x64')===_0x2e5268[_0x220f60][_0x579d('0x96')]&&_0x2a04f6&&_0x2a04f6[_0x579d('0x8d')]===_0x2e5268[_0x220f60]['item']&&(_0x917aba[_0x229141][_0x579d('0xb2')](),_0x409848[_0x229141]=_0x2a04f6[_0x579d('0x97')])),_0x409848[_0x229141]&&_0x5575df&&(_0x409848[_0x229141][_0x579d('0x81')]=_0xcab89c,_0x1371b5(_0x409848[_0x229141]),_0x409848[_0x229141]=null);}function _0x1371b5({start:_0x23a6c3,end:_0x444d05,tapeItem:_0x231f41,userId:_0x278d77,type:_0xd37f6d}){const _0x369bea=_0x231f41[_0x579d('0x61')],_0x33c9c8=_0xcefa06[_0x579d('0xfd')][_0x579d('0xcc')](_0x369bea)&&!_0xcefa06[_0x579d('0xfd')]['isLimit'](_0x369bea),_0x2035a4=_0x23a6c3[_0x579d('0x1')]==_0x444d05['parent']&&_0x444d05[_0x579d('0x9f')];if(_0x33c9c8&&_0x2035a4)return;const _0x3fd84b=_0xcefa06[_0x579d('0x43')](_0x23a6c3,_0x444d05),_0x233ee2=_0x393025[_0x579d('0x9d')](_0x278d77),_0x5e31ca=new _0x4bec2b({'author':_0x233ee2,'type':_0x579d('0xf2')==_0xd37f6d||_0x579d('0x7b')==_0xd37f6d?_0x579d('0x89'):_0x579d('0xbe'),'data':{'isSuggestion':_0x579d('0x7b')==_0xd37f6d||'isRemoveSuggestion'==_0xd37f6d},'createdAt':new Date()});_0x3a7072['push'](_0x5e31ca),_0xb2c125[_0x579d('0xe6')][_0x579d('0x4c')](_0x579d('0x7')+_0x5e31ca['id'],_0x3fd84b);}}['_setConversion'](){this[_0x579d('0x3a')][_0x579d('0xee')]['for'](_0x579d('0xab'))[_0x579d('0x9b')]({'view':_0x579d('0x92')}),this['editor']['conversion'][_0x579d('0x21')](_0x579d('0x48'))[_0x579d('0x22')]({'model':'revision','view':_0x599d46=>{const _0x405573=_0x599d46[_0x579d('0xac')]['split'](':')[0x1],_0x3f499a=this['_getChangeFromId'](_0x405573);if(!_0x3f499a)return null;const _0x5115cb=_0x579d('0x89')==_0x3f499a[_0x579d('0x96')]?_0x579d('0x52'):'deletion',_0x43abcb=[_0x579d('0x56'),_0x579d('0xef')+_0x5115cb];return _0x3f499a[_0x579d('0x2c')][_0x579d('0x90')]&&_0x43abcb[_0x579d('0x26')]('ck-suggestion-marker-'+_0x5115cb+_0x579d('0xc0')),this[_0x579d('0x40')]==_0x3f499a&&_0x43abcb[_0x579d('0x26')]('ck-suggestion-marker--active'),{'classes':_0x43abcb,'attributes':{'data-change-id':_0x405573}};}}),this[_0x579d('0x3a')][_0x579d('0xee')]['for'](_0x579d('0xab'))[_0x579d('0x89')](_0x4dfa3d=>{_0x4dfa3d['on'](_0x579d('0xa0'),(_0x547207,_0x408959,_0x3c8157)=>{const _0x56bd31=_0x408959['viewItem'][_0x579d('0x25')](0x0);if(!_0x56bd31||!_0x56bd31['is'](_0x579d('0x42'),_0x579d('0x38')))return;if(!_0x3c8157['consumable'][_0x579d('0x5')](_0x56bd31,{'attributes':[_0x579d('0x0'),_0x579d('0xff')]}))return;const _0x4884fb=_0x408959[_0x579d('0x85')][_0x579d('0x75')]['nodeAfter'];_0x3c8157['writer'][_0x579d('0x65')](_0x579d('0x0'),_0x56bd31[_0x579d('0x7a')](_0x579d('0x0')),_0x4884fb),_0x3c8157[_0x579d('0xba')][_0x579d('0x65')](_0x579d('0xff'),_0x56bd31[_0x579d('0x7a')](_0x579d('0xff')),_0x4884fb);},{'priority':_0x579d('0x11')});}),this['editor'][_0x579d('0xee')][_0x579d('0x21')](_0x579d('0xab'))[_0x579d('0x89')](_0x15ebe1=>{_0x15ebe1['on'](_0x579d('0x42'),(_0x233b70,_0x3d6e8d,_0x2b93af)=>{if(!_0x2b93af['consumable'][_0x579d('0x5')](_0x3d6e8d['viewItem'],{'attributes':[_0x579d('0x0'),_0x579d('0xff')]}))return;if(_0x3d6e8d[_0x579d('0x85')][_0x579d('0xc')])return;const _0x4f6b2b=_0x3d6e8d[_0x579d('0x85')]['start'][_0x579d('0x1')];_0x4f6b2b[_0x579d('0xed')](_0x579d('0x0'))||_0x4f6b2b[_0x579d('0xed')](_0x579d('0xaf'))||(_0x2b93af[_0x579d('0xba')]['setAttribute']('vid_start',_0x3d6e8d[_0x579d('0x53')][_0x579d('0x7a')](_0x579d('0x0')),_0x4f6b2b),_0x2b93af['writer'][_0x579d('0x65')](_0x579d('0xff'),_0x3d6e8d['viewItem']['getAttribute'](_0x579d('0xff')),_0x4f6b2b));},{'priority':_0x579d('0x11')});}),this[_0x579d('0x3a')][_0x579d('0xee')]['for'](_0x579d('0xab'))[_0x579d('0x6c')]({'view':{'name':_0x579d('0x4e'),'attributes':{'vid':!0x0}},'model':{'key':_0x579d('0xaf'),'value':_0x173cc9=>_0x173cc9[_0x579d('0x7a')](_0x579d('0xaf'))}}),this[_0x579d('0x3a')][_0x579d('0xd0')][_0x579d('0xfd')]['on'](_0x579d('0x51'),(_0x23c2fc,[,_0x1efc24])=>{[_0x579d('0x0'),'vid_end',_0x579d('0xaf')][_0x579d('0xb9')](_0x1efc24)&&(_0x23c2fc['return']=!0x0,_0x23c2fc[_0x579d('0xc4')]());},{'priority':_0x579d('0xe4')}),this[_0x579d('0x3a')]['conversion'][_0x579d('0x21')](_0x579d('0x31'))['add'](_0x1c46e8=>{_0x1c46e8['on'](_0x579d('0x8f'),(_0x322654,_0x37b9cd,_0x42b5ee)=>{if('\x20'!=_0x37b9cd[_0x579d('0x61')][_0x579d('0x2c')]||_0x37b9cd['item'][_0x579d('0x4f')]['maxOffset']>0x1)return;if(!_0x42b5ee[_0x579d('0xd3')][_0x579d('0x5')](_0x37b9cd[_0x579d('0x61')],_0x322654[_0x579d('0xd1')]))return;const _0x4bfcfd=_0x42b5ee['writer'],_0x557ccc=_0x42b5ee[_0x579d('0x7d')][_0x579d('0x15')](_0x37b9cd[_0x579d('0x32')]);_0x4bfcfd[_0x579d('0x14')](_0x557ccc,_0x4bfcfd[_0x579d('0xd')](_0x579d('0x4e')));});}),this[_0x579d('0x3a')][_0x579d('0xee')][_0x579d('0x21')](_0x579d('0x31'))['markerToData']({'model':_0x579d('0x92')}),this[_0x579d('0x3a')][_0x579d('0x44')]['downcastDispatcher']['on'](_0x579d('0x69'),function(_0x1929e9){const _0x43d0ad=_0x1929e9[_0x579d('0x3d')][_0x579d('0x9d')](_0x579d('0x24'));return(_0x14ef47,_0x2f0ab9,_0x46930f)=>{const _0x304077=_0x2f0ab9['markerName'][_0x579d('0xe0')](':')[0x1],_0x486498=_0x43d0ad[_0x579d('0x98')](_0x304077);if(!_0x486498)return null;const _0xe32203=_0x579d('0x89')==_0x486498[_0x579d('0x96')]?_0x579d('0xe0'):_0x579d('0x27');if(!_0x46930f[_0x579d('0xd3')][_0x579d('0x63')](_0x2f0ab9[_0x579d('0xe7')],_0x14ef47['name']))return;const _0x1308f0=_0x2f0ab9[_0x579d('0xe7')][_0x579d('0x47')](),_0x3d6a7e=_0x2f0ab9[_0x579d('0xe7')][_0x579d('0x75')],_0x21f46c=_0x1929e9['model'][_0x579d('0xfd')];let _0x336fdd=null,_0x81576f=null,_0x4f061f=!0x1,_0x1b0368=!0x1;for(const _0x5c9514 of _0x1308f0){const _0xe0962=_0x5c9514['item'];_0x4f061f=_0x4f061f||_0x21f46c[_0x579d('0xa7')](_0xe0962);const _0x191ac6=_0x46930f[_0x579d('0x7d')]['toViewElement'](_0xe0962);if(_0x191ac6&&_0x191ac6[_0x579d('0x8a')](_0x579d('0x28')))return;'elementEnd'==_0x5c9514[_0x579d('0x96')]&&(_0x21f46c['isBlock'](_0xe0962)&&!_0x21f46c['isLimit'](_0xe0962)&&(_0xe0962[_0x579d('0x49')]||_0x3d6a7e[_0x579d('0x1b')]?_0x336fdd&&_0x336fdd[_0x579d('0x4f')]==_0xe0962||(_0x336fdd=_0xe0962,_0x4d06f9(_0x5c9514['previousPosition']),_0x1b0368=!0x0):_0x81576f=_0x81576f||_0x5c9514[_0x579d('0xe8')]));}function _0x4d06f9(_0xcc88bf){const _0x20ebf8=_0x46930f[_0x579d('0xba')][_0x579d('0x5e')](_0x579d('0x4e'),{'class':'ck-suggestion-marker-'+_0xe32203}),_0x37033a=_0x46930f[_0x579d('0x7d')][_0x579d('0xc1')](_0xcc88bf);_0x486498[_0x579d('0x2c')][_0x579d('0x90')]&&_0x46930f[_0x579d('0xba')][_0x579d('0xd6')]('ck-suggestion-marker-'+_0xe32203+_0x579d('0xc0'),_0x20ebf8),_0x43d0ad[_0x579d('0x40')]==_0x486498&&_0x46930f[_0x579d('0xba')][_0x579d('0xd6')](_0x579d('0xcd'),_0x20ebf8),_0x46930f[_0x579d('0xba')][_0x579d('0x87')](_0x37033a,_0x20ebf8),_0x46930f[_0x579d('0x7d')][_0x579d('0x2d')](_0x20ebf8,_0x2f0ab9[_0x579d('0xac')]);}_0x4f061f||_0x1b0368||!_0x81576f||_0x4d06f9(_0x81576f);};}(this[_0x579d('0x3a')]),{'priority':'high'}),this[_0x579d('0x3a')][_0x579d('0x44')][_0x579d('0xfe')]['on'](_0x579d('0x1d'),(_0x37a7c7,_0x2fb10f,_0x5c1ca1)=>{const _0x58b40a=_0x5c1ca1[_0x579d('0x7d')]['markerNameToElements'](_0x2fb10f[_0x579d('0xac')]);if(_0x58b40a)for(const _0x4c69dd of _0x58b40a)(_0x4c69dd[_0x579d('0x58')](_0x579d('0xd9'))||_0x4c69dd[_0x579d('0x58')](_0x579d('0xb7')))&&(_0x5c1ca1[_0x579d('0x7d')]['unbindElementFromMarkerName'](_0x4c69dd,_0x2fb10f[_0x579d('0xac')]),_0x5c1ca1[_0x579d('0xba')][_0x579d('0xbe')](_0x4c69dd));},{'priority':_0x579d('0x55')}),this[_0x579d('0x3a')][_0x579d('0x44')][_0x579d('0xfe')]['on'](_0x579d('0x69'),(_0x4d215c,_0x3bf9e8,_0x25f47d)=>{const _0x436e1c=_0x3bf9e8['markerName'][_0x579d('0xe0')](':')[0x1],_0x92aea7=this[_0x579d('0x98')](_0x436e1c);if(!_0x92aea7)return null;const _0x4add80='add'==_0x92aea7[_0x579d('0x96')]?_0x579d('0xe0'):_0x579d('0x27');if(_0x25f47d['consumable'][_0x579d('0x63')](_0x3bf9e8[_0x579d('0xe7')],_0x4d215c[_0x579d('0xd1')]))for(const _0x3e5bd1 of _0x3bf9e8[_0x579d('0xe7')][_0x579d('0xdf')]()){if(!_0x3e5bd1['is']('element',_0x579d('0x71')))continue;const _0x26fde2=_0x25f47d['writer'][_0x579d('0x5e')](_0x579d('0x4e'),{'class':_0x579d('0xef')+_0x4add80}),_0x5cc18c=_0x25f47d['mapper'][_0x579d('0xc1')](this['editor'][_0x579d('0xd0')]['createPositionBefore'](_0x3e5bd1));_0x92aea7[_0x579d('0x2c')][_0x579d('0x90')]&&_0x25f47d['writer'][_0x579d('0xd6')](_0x579d('0xef')+_0x4add80+'-new',_0x26fde2),this['activeChange']==_0x92aea7&&_0x25f47d[_0x579d('0xba')][_0x579d('0xd6')](_0x579d('0xcd'),_0x26fde2),_0x25f47d[_0x579d('0xba')][_0x579d('0x87')](_0x5cc18c,_0x26fde2),_0x25f47d[_0x579d('0x7d')][_0x579d('0x2d')](_0x26fde2,_0x3bf9e8[_0x579d('0xac')]);}},{'priority':_0x579d('0x55')}),this[_0x579d('0x3a')][_0x579d('0xee')][_0x579d('0x21')](_0x579d('0xab'))[_0x579d('0x9b')]({'view':'suggestion'}),this[_0x579d('0x3a')]['conversion'][_0x579d('0x21')](_0x579d('0x31'))['markerToData']({'model':_0x579d('0xbb')}),this[_0x579d('0x3a')][_0x579d('0xee')]['for'](_0x579d('0x48'))[_0x579d('0x22')]({'model':_0x579d('0xbb'),'view':_0x54ac1e=>{const _0x575ce0=_0x54ac1e[_0x579d('0xac')][_0x579d('0xe0')](':')[0x1];return _0x579d('0x52')!=_0x575ce0&&_0x579d('0xbd')!=_0x575ce0?null:{'classes':[_0x579d('0xf'),_0x579d('0x66')+_0x575ce0]};}}),this['editor'][_0x579d('0x44')][_0x579d('0xfe')]['on']('addMarker:suggestion:deletion',q(this['editor'],_0x579d('0x27')),{'priority':_0x579d('0x55')}),this[_0x579d('0x3a')][_0x579d('0x44')][_0x579d('0xfe')]['on'](_0x579d('0x84'),q(this['editor'],_0x579d('0xe0')),{'priority':_0x579d('0x55')}),this[_0x579d('0x3a')][_0x579d('0x44')][_0x579d('0xfe')]['on']('removeMarker:suggestion',(_0x3e217c,_0x473391,_0x4e8209)=>{const _0x5d46de=_0x4e8209[_0x579d('0x7d')][_0x579d('0x46')](_0x473391['markerName']);if(_0x5d46de)for(const _0x250194 of _0x5d46de)_0x250194['is'](_0x579d('0x39'))&&(_0x4e8209[_0x579d('0x7d')][_0x579d('0x33')](_0x250194,_0x473391['markerName']),_0x4e8209[_0x579d('0xba')][_0x579d('0xbe')](_0x250194));},{'priority':_0x579d('0x55')});}['_getChangeFromId'](_0x7fd407){return this[_0x579d('0x41')][_0x579d('0x9d')](_0x7fd407);}[_0x579d('0x35')](_0xb28fbd){this['_changeView']&&this[_0x579d('0xf8')][_0x579d('0x4a')](),this[_0x579d('0xf8')]=new _0x25e1e2(this[_0x579d('0x3a')]['locale'],_0xb28fbd);const _0x5b9f54=this[_0x579d('0x3a')]['model'][_0x579d('0xe6')][_0x579d('0x9d')](_0x579d('0x7')+_0xb28fbd['id']);return this[_0x579d('0xf8')]['_target']=()=>_0x5a9bba(this['editor']['editing'],_0x5b9f54),this['_changeView'];}[_0x579d('0xa5')](){this[_0x579d('0x3a')][_0x579d('0xd0')][_0x579d('0xdd')][_0x579d('0xf9')][_0x579d('0xd2')](_0x579d('0x92')),this['on'](_0x579d('0x4'),(_0x12838f,_0x41af13,_0x2ece3b,_0x3c030d)=>{_0x3c030d&&this[_0x579d('0xdc')][_0x579d('0xbe')](_0x3c030d),_0x2ece3b&&(this[_0x579d('0xdc')][_0x579d('0x89')]({'view':_0x2ece3b,'stackId':_0x579d('0x18'),'position':{'target':_0x2ece3b[_0x579d('0xf0')]}}),this[_0x579d('0xdc')][_0x579d('0x13')](_0x579d('0x18')));}),this['on']('change:activeChange',(_0x2ef72d,_0x383a41,_0x4d485c,_0x1bb091)=>{this[_0x579d('0x6b')]=_0x4d485c?this['_getViewForChange'](_0x4d485c):null,this[_0x579d('0x3a')][_0x579d('0xd0')]['change'](_0x50ed85=>{_0x1bb091&&_0x50ed85[_0x579d('0xda')](_0x579d('0x7')+_0x1bb091['id']),_0x4d485c&&_0x50ed85[_0x579d('0xda')](_0x579d('0x7')+_0x4d485c['id']);});}),this['listenTo'](this['editor'][_0x579d('0x44')][_0x579d('0xf6')][_0x579d('0xdd')],_0x579d('0x1c'),(_0x425bd8,_0x2a2215)=>{if(this[_0x579d('0x40')])return;const _0xf78412=this[_0x579d('0x93')](_0x2a2215[_0x579d('0x19')]),_0x1ef220=this[_0x579d('0x41')]['get'](_0xf78412);this[_0x579d('0x6b')]=_0x1ef220?this[_0x579d('0x35')](_0x1ef220):null;}),this[_0x579d('0x5d')](this[_0x579d('0x3a')][_0x579d('0x44')][_0x579d('0xf6')][_0x579d('0xdd')],'mousedown',(_0x484ab9,_0x269e48)=>{const _0x383abe=this[_0x579d('0x93')](_0x269e48[_0x579d('0x19')]),_0x32ffae=this[_0x579d('0x41')][_0x579d('0x9d')](_0x383abe);this['activeChange']=_0x32ffae||null;});}[_0x579d('0x93')](_0x178ab5){do{const _0x2fea47=_0x178ab5[_0x579d('0x7a')](_0x579d('0x79'));if(_0x2fea47)return _0x2fea47;_0x178ab5=_0x178ab5['parent'];}while(_0x178ab5);return null;}[_0x579d('0x5b')](){this[_0x579d('0x3a')][_0x579d('0xd0')]['change'](_0x3be92a=>{for(const _0x3ce765 of this['editor'][_0x579d('0xd0')][_0x579d('0xe6')])_0x3be92a[_0x579d('0x8b')](_0x3ce765);});}}function q(_0x3c2ba6,_0x595e02){return(_0xdf9629,_0x4adb88,_0xb7688d)=>{if(!_0xb7688d['consumable'][_0x579d('0x63')](_0x4adb88[_0x579d('0xe7')],_0xdf9629[_0x579d('0xd1')]))return;const _0xc944c4=_0x4adb88[_0x579d('0xe7')][_0x579d('0x47')](),_0x5f150c=_0x4adb88[_0x579d('0xe7')][_0x579d('0x75')],_0x46c1ee=_0x3c2ba6[_0x579d('0xd0')][_0x579d('0xfd')];let _0x19b042=null,_0x14e4a0=null,_0x3bc36d=!0x1,_0x3e4354=!0x1;for(const _0x1577ce of _0xc944c4){const _0x4dde30=_0x1577ce[_0x579d('0x61')];_0x3bc36d=_0x3bc36d||_0x46c1ee[_0x579d('0xa7')](_0x4dde30);const _0x58d876=_0xb7688d[_0x579d('0x7d')][_0x579d('0x5a')](_0x4dde30);if(_0x58d876&&_0x58d876[_0x579d('0x8a')](_0x579d('0x28')))return;_0x579d('0x64')==_0x1577ce[_0x579d('0x96')]&&(_0x46c1ee[_0x579d('0xcc')](_0x4dde30)&&!_0x46c1ee[_0x579d('0x95')](_0x4dde30)&&(_0x4dde30[_0x579d('0x49')]||_0x5f150c[_0x579d('0x1b')]?_0x19b042&&_0x19b042[_0x579d('0x4f')]==_0x4dde30||(_0x19b042=_0x4dde30,_0xdeffe8(_0x1577ce[_0x579d('0xe8')]),_0x3e4354=!0x0):_0x14e4a0=_0x14e4a0||_0x1577ce[_0x579d('0xe8')]));}function _0xdeffe8(_0x7c284b){const _0x4c03cf=_0xb7688d[_0x579d('0x7d')][_0x579d('0xc1')](_0x7c284b),_0x1bfba7=_0xb7688d['writer']['createUIElement'](_0x579d('0x4e'),{'class':'ck-suggestion-preview-marker-'+_0x595e02});_0xb7688d[_0x579d('0xba')][_0x579d('0x87')](_0x4c03cf,_0x1bfba7),_0xb7688d[_0x579d('0x7d')][_0x579d('0x2d')](_0x1bfba7,_0x4adb88[_0x579d('0xac')]);}_0x3bc36d||_0x3e4354||!_0x14e4a0||_0xdeffe8(_0x14e4a0);};}_0x49fda1(R,_0x51cd74);class z extends _0xe9130e{constructor(_0x50e665){super(_0x50e665);const _0x10792f=_0x50e665['plugins']['get'](R);this[_0x579d('0xb0')](_0x50e665,_0x579d('0xa2')),this[_0x579d('0xf4')]('readOnlyMode'),this[_0x579d('0x5d')](_0x10792f,_0x579d('0xfc'),()=>this[_0x579d('0x6a')]()),this['listenTo'](_0x10792f,_0x579d('0x50'),()=>this['refresh']());}[_0x579d('0xe2')](){const _0x469071=this[_0x579d('0x3a')],_0x5154a0=_0x469071[_0x579d('0x3d')][_0x579d('0x9d')](R),_0x2ade2f=_0x5154a0[_0x579d('0xa8')]?_0x5154a0[_0x579d('0xd7')][_0x579d('0xf3')]:null;_0x469071['config'][_0x579d('0x9d')](_0x579d('0x4d'))[_0x579d('0xc3')](_0x2ade2f);}[_0x579d('0x6a')](){const {isReady:_0x27e187,isEnabled:_0x3a5487}=this[_0x579d('0x3a')]['plugins'][_0x579d('0x9d')](R);this['isEnabled']=_0x27e187&&_0x3a5487;}}class B extends _0xe9130e{constructor(_0x132394,{direction:_0x4d5f82}){super(_0x132394);const _0x4f059f=_0x132394[_0x579d('0x3d')][_0x579d('0x9d')](R);this[_0x579d('0xb0')](_0x132394,_0x579d('0xa2')),this['clearForceDisabled']('readOnlyMode'),this[_0x579d('0xde')]=_0x579d('0xc5')===_0x4d5f82?0x1:-0x1,this[_0x579d('0x5d')](_0x4f059f,_0x579d('0xfc'),()=>this[_0x579d('0x6a')]()),this[_0x579d('0x5d')](_0x4f059f,_0x579d('0x50'),()=>this['refresh']());}[_0x579d('0xe2')](){const _0x451e1b=this['editor'],_0x479a4a=_0x451e1b['plugins'][_0x579d('0x9d')](R),{isNavigationMode:_0x3b2af3,currentChangeNumber:_0xdf9da4}=_0x479a4a;_0x479a4a[_0x579d('0x40')]=_0x3b2af3?_0x479a4a[_0x579d('0xd7')][_0x579d('0x3')]['get'](_0xdf9da4+this[_0x579d('0xde')]):_0x479a4a[_0x579d('0xd7')]['changes'][_0x579d('0x86')];const _0x1e274e=_0x451e1b[_0x579d('0xd0')]['markers'][_0x579d('0x9d')](_0x579d('0x7')+_0x479a4a[_0x579d('0x40')]['id']),_0x368d3d=_0x5a9bba(_0x451e1b[_0x579d('0x44')],_0x1e274e);_0x4179f8({'target':_0x368d3d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1afe57,currentChangeNumber:_0x2afb80,numberOfChanges:_0x34386,isReady:_0x3c85bc,isEnabled:_0x50fea3}=this[_0x579d('0x3a')][_0x579d('0x3d')][_0x579d('0x9d')](R);this[_0x579d('0xeb')]=!!(_0x50fea3&&_0x3c85bc&&_0x34386)&&(!_0x1afe57||(0x1===this[_0x579d('0xde')]?_0x2afb80<_0x34386-0x1:_0x2afb80>0x0));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x4ffb8c}from'ckeditor5/src/utils';import{Model as _0x362fb9,addListToDropdown as to,createDropdown as _0x83d6ed}from'ckeditor5/src/ui';import _0xfcaf55 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x483fea,_0x1fcc5d){const _0x1b22ec=_0x483fea['bindTemplate'],_0x47edc6=_0x483fea['locale'],t=_0x47edc6['t'],_0x1e23c2=_0x83d6ed(_0x47edc6);_0x1e23c2['panelPosition']='sw';const _0x12cedf=function(_0x4e461c,_0x4c7f5f){const _0x152315=function(_0x1ce0f3,_0x336ddb){const t=_0x1ce0f3['locale']['t'],_0xd775a8={'Compare\x20against\x20selected':t('Compare\x20against\x20selected'),'Name\x20this\x20revision':t('Name\x20this\x20revision'),'Restore\x20this\x20revision':t('Restore\x20this\x20revision')};return _0x336ddb['map'](_0x22c557=>{const _0x3b8c92=_0xd775a8[_0x22c557['name']];return _0x3b8c92&&_0x3b8c92!==_0x22c557['name']&&(_0x22c557['name']=_0x3b8c92),_0x22c557;});}(_0x4e461c,_0x4c7f5f),_0x5934ac=new _0x4ffb8c();for(const _0x58a332 of _0x152315){const _0x2f5ee5={'type':'button','model':new _0x362fb9({'label':_0x58a332['name'],'class':_0x58a332['class'],'withText':!0x0,'_action':_0x58a332['action']})};_0x2f5ee5['model']['bind']('isVisible')['to'](_0x4e461c,'isActionsDropdownOpen',_0x10e19a=>'function'!=typeof _0x58a332['isVisible']||(!_0x10e19a||_0x58a332['isVisible'](_0x4e461c))),_0x2f5ee5['model']['bind']('isEnabled')['to'](_0x4e461c,'isActionsDropdownOpen',_0x553c80=>'function'!=typeof _0x58a332['isEnabled']||(!_0x553c80||_0x58a332['isEnabled'](_0x4e461c))),_0x5934ac['add'](_0x2f5ee5);}return _0x5934ac;}(_0x483fea,_0x1fcc5d);return _0x483fea['bind']('isActionsDropdownOpen')['to'](_0x1e23c2,'isOpen'),_0x1e23c2['buttonView']['set']({'label':t('Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xfcaf55}),_0x1e23c2['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b22ec['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b22ec['to'](_0x90af50=>_0x90af50['stopPropagation']())}}),_0x1e23c2['on']('execute',_0x3e7fb3=>{_0x483fea['isReady']&&'function'==typeof _0x3e7fb3['source']['_action']&&_0x3e7fb3['source']['_action'](_0x483fea);}),to(_0x1e23c2,_0x12cedf),_0x1e23c2;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
import{View as _0x5a6906,IconView as _0x2145cf}from'ckeditor5/src/ui';import _0x581fae from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ai extends _0x5a6906{constructor(_0x3a3859,_0x1f5b3d,_0x267bcd){super(_0x3a3859);const t=_0x3a3859['t'],_0x1832e4=new _0x2145cf(_0x3a3859);_0x1832e4['set']({'content':_0x581fae,'viewBox':'0\x200\x2011\x2010'});const _0x27e5dd=['ck','ck-revision-history-sidebar__revision-author'];_0x267bcd&&_0x27e5dd['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4cb0d9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':t(_0x267bcd?'Revision\x20creator':'Revision\x20author')},'children':[_0x1832e4,_0x1f5b3d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x27e5dd},'children':_0x4cb0d9});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{LabeledFieldView as
|
|
23
|
+
import{LabeledFieldView as _0x441f93}from'ckeditor5/src/ui';import'../../../theme/revision/revisionname.css';export default class ts extends _0x441f93{constructor(..._0x15450d){super(..._0x15450d);const t=this['t'];this['set']({'label':t('Revision\x20name')}),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2788=['ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isActionsDropdownOpen','revisionNameView','ck-reset','value','from','isEnabled','fieldView','srcElement','_revision','isReady','_createdAtFormatted','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision_selected','render','deselect','placeholder','change','div','bindTemplate','setName','select','createdAt','isConfirm','fire','ck-revision-history-sidebar__revision__controls-wrapper','uiLanguage','map','ck-revision-history-sidebar__revision','ck-disabled','isSelected','bind','unshift','listenTo','setTemplate','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision-authors','span','highlight','isHighlighted','element','.ck-thread__remove-confirm','name','length','creator','revisionActionsView','set','extendTemplate','filter'];(function(_0x982866,_0x27882f){const _0x4c2deb=function(_0x4f4bd1){while(--_0x4f4bd1){_0x982866['push'](_0x982866['shift']());}};_0x4c2deb(++_0x27882f);}(_0x2788,0x8b));const _0x4c2d=function(_0x982866,_0x27882f){_0x982866=_0x982866-0x0;let _0x4c2deb=_0x2788[_0x982866];return _0x4c2deb;};import _0xd4afc8 from'./revisionnameview';import _0x126e46 from'./revisionauthorview';import{View as _0x12f744,createLabeledInputText as _0x4a2c01}from'ckeditor5/src/ui';import{dateToPrettyFormat as _0x44504f}from'./utils';import{createActionsDropdownView as _0x5418ba}from'./createrevisionactionsdropdown';import _0x28b2f6 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/confirmmixin';import{mix as _0x4222c6}from'ckeditor5/src/utils';import'../../../theme/revision/revision.css';export default class ri extends _0x12f744{constructor(_0x3ed1e0,_0x364fa3,_0x505b39){super(_0x3ed1e0);const _0x5c305a=this[_0x4c2d('0x1b')],_0x440084=function(_0x5a30b8,_0x142860){const _0x40b827=Array[_0x4c2d('0xd')](_0x142860['authors'])[_0x4c2d('0x7')](_0x2d0ac1=>_0x2d0ac1!=_0x142860[_0x4c2d('0x3')]);return _0x142860[_0x4c2d('0x3')]&&_0x40b827[_0x4c2d('0x28')](_0x142860[_0x4c2d('0x3')]),_0x40b827[_0x4c2d('0x23')](_0x2b3fa4=>new _0x126e46(_0x5a30b8,_0x2b3fa4,_0x2b3fa4==_0x142860['creator']));}(_0x3ed1e0,_0x364fa3);this[_0x4c2d('0x11')]=_0x364fa3,this['id']=_0x364fa3['id'],this[_0x4c2d('0x27')]('name',_0x4c2d('0x1e'))['to'](_0x364fa3),this[_0x4c2d('0x5')](_0x4c2d('0x26'),!0x1),this['set']('isHighlighted',!0x1),this[_0x4c2d('0x5')](_0x4c2d('0x9'),!0x1),this['set'](_0x4c2d('0x12'),!0x1),this[_0x4c2d('0x27')](_0x4c2d('0x13'))['to'](this,_0x4c2d('0x1e'),_0x5d5665=>_0x5d5665?_0x44504f(_0x3ed1e0[_0x4c2d('0x22')],_0x5d5665):null),this[_0x4c2d('0x5')](_0x4c2d('0xe'),!0x1),this['revisionNameView']=new _0xd4afc8(_0x3ed1e0,_0x4a2c01),this[_0x4c2d('0xa')][_0x4c2d('0xf')][_0x4c2d('0x6')]({'attributes':{'maxlength':'220'}}),this[_0x4c2d('0xa')]['fieldView'][_0x4c2d('0x27')](_0x4c2d('0xc'),_0x4c2d('0x18'))['to'](this,_0x4c2d('0x1'),_0x4c2d('0x13')),this[_0x4c2d('0xa')][_0x4c2d('0x27')](_0x4c2d('0xe'))['to'](this,_0x4c2d('0x26'),this,'isEnabled',(_0x4f3092,_0xe1f48d)=>_0x4f3092&&_0xe1f48d),this['revisionActionsView']=_0x505b39&&_0x505b39[_0x4c2d('0x2')]?_0x5418ba(this,_0x505b39):'',this[_0x4c2d('0x4')][_0x4c2d('0x27')](_0x4c2d('0xe'))['to'](this),this[_0x4c2d('0x2a')]({'tag':'div','attributes':{'class':['ck',_0x4c2d('0xb'),_0x4c2d('0x14'),_0x5c305a['if'](_0x4c2d('0x1f'),_0x4c2d('0x8'))]},'children':[{'tag':_0x4c2d('0x1a'),'attributes':{'class':['ck',_0x4c2d('0xb'),_0x4c2d('0x24'),_0x5c305a['if'](_0x4c2d('0xe'),_0x4c2d('0x25'),_0x34f8be=>!_0x34f8be),_0x5c305a['if'](_0x4c2d('0x26'),_0x4c2d('0x15')),_0x5c305a['if'](_0x4c2d('0x2f'),'ck-revision-history-sidebar__revision_highlighted'),_0x5c305a['if'](_0x4c2d('0x9'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x4c2d('0xa')],{'tag':_0x4c2d('0x2d'),'attributes':{'class':['ck',_0x4c2d('0x2b')]},'children':[{'text':_0x5c305a['to'](_0x4c2d('0x13'))}]},{'tag':'div','attributes':{'class':['ck',_0x4c2d('0x21')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4c2d('0x2c')]},'children':_0x440084}]},this[_0x4c2d('0x4')]],'on':{'click':_0x5c305a['to'](_0xc4cde7=>{_0xc4cde7[_0x4c2d('0x10')]['closest'](_0x4c2d('0x0'))||this[_0x4c2d('0x12')]&&this['isEnabled']&&this[_0x4c2d('0x20')](_0x4c2d('0x1d'),{'id':this['id']});})}}]});}[_0x4c2d('0x16')](){super['render']();const _0x139055=this[_0x4c2d('0xa')][_0x4c2d('0xf')][_0x4c2d('0x30')];this[_0x4c2d('0x29')](_0x139055,_0x4c2d('0x19'),()=>{this['fire'](_0x4c2d('0x1c'),{'id':this['id'],'name':_0x139055[_0x4c2d('0xc')]});});}[_0x4c2d('0x1d')](){this['isSelected']=!0x0;}[_0x4c2d('0x17')](){this[_0x4c2d('0x26')]=!0x1;}[_0x4c2d('0x2e')](){this[_0x4c2d('0x2f')]=!0x0;}['unhighlight'](){this[_0x4c2d('0x2f')]=!0x1;}}_0x4222c6(ri,_0x28b2f6);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57e3=['_isCollapsed','isVisible','click','setTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','set','toggle','false','span','bindTemplate','ck-hidden'];(function(_0x57b4e5,_0x57e3e4){const _0x39ceda=function(_0x40eeb2){while(--_0x40eeb2){_0x57b4e5['push'](_0x57b4e5['shift']());}};_0x39ceda(++_0x57e3e4);}(_0x57e3,0x1d4));const _0x39ce=function(_0x57b4e5,_0x57e3e4){_0x57b4e5=_0x57b4e5-0x0;let _0x39ceda=_0x57e3[_0x57b4e5];return _0x39ceda;};import{View as _0x5444e6}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class rs extends _0x5444e6{constructor(_0x1cbf84){super(_0x1cbf84);const _0x245f85=this[_0x39ce('0x3')];this[_0x39ce('0xa')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x39ce('0x8')]({'tag':_0x39ce('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x245f85['if'](_0x39ce('0x6'),_0x39ce('0x4'),_0x1a6853=>!_0x1a6853),_0x245f85['if'](_0x39ce('0x5'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':'button','aria-pressed':_0x245f85['to'](_0x39ce('0x5'),_0x1951fa=>_0x1951fa?_0x39ce('0x1'):'true')},'children':[{'tag':_0x39ce('0x2'),'attributes':{'class':['ck',_0x39ce('0x9')]}}],'on':{'click':_0x245f85['to'](_0x39ce('0x7'))}});}[_0x39ce('0x0')](){this[_0x39ce('0x5')]=!this['_isCollapsed'];}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5304=['span','ck-revision-history-sidebar__revision','bind','ck-reset','createdAt','bindTemplate','ck-revision-history-sidebar__revision-authors','set','div','isSelected','_createdAtFormatted','ck-revision-history-sidebar__revision_selected','_parentRevisionId','setTemplate','select'];(function(_0x3fa593,_0x53044f){const _0x27d007=function(_0x2e9399){while(--_0x2e9399){_0x3fa593['push'](_0x3fa593['shift']());}};_0x27d007(++_0x53044f);}(_0x5304,0x16f));const _0x27d0=function(_0x3fa593,_0x53044f){_0x3fa593=_0x3fa593-0x0;let _0x27d007=_0x5304[_0x3fa593];return _0x27d007;};import{View as _0x50d5af}from'ckeditor5/src/ui';import _0x2bdf94 from'./revisionauthorview';import{dateToPrettyFormat as _0x1590a9}from'./utils';import'../../../theme/revision/subrevision.css';export default class ct extends _0x50d5af{constructor(_0x537998,_0x33a6a7,_0x3da4d3){super(_0x537998);const _0x163555=this[_0x27d0('0xd')];this['id']=_0x33a6a7['id'],this[_0x27d0('0xa')](_0x27d0('0xc'))['to'](_0x33a6a7),this[_0x27d0('0x0')](_0x27d0('0x2'),!0x1),this['bind'](_0x27d0('0x3'))['to'](this,_0x27d0('0xc'),_0x3d388b=>_0x3d388b?_0x1590a9(_0x537998['uiLanguage'],_0x3d388b):null),this[_0x27d0('0x5')]=_0x3da4d3,this[_0x27d0('0x6')]({'tag':_0x27d0('0x1'),'attributes':{'class':['ck',_0x27d0('0xb'),_0x27d0('0x9'),'ck-revision-history-sidebar__subrevision',_0x163555['if'](_0x27d0('0x2'),_0x27d0('0x4'))]},'children':[{'tag':_0x27d0('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x163555['to'](_0x27d0('0x3'))}]},{'tag':'ul','attributes':{'class':['ck',_0x27d0('0xe')]},'children':[new _0x2bdf94(_0x537998,_0x33a6a7['author'],!0x0)]}],'on':{'click':_0x163555['to'](this[_0x27d0('0x7')][_0x27d0('0xa')](this))}});}['select'](){this[_0x27d0('0x2')]=!0x0,this['fire'](_0x27d0('0x7'),{'parentId':this['_parentRevisionId']});}['deselect'](){this[_0x27d0('0x2')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4901=['toLocaleTimeString','numeric'];(function(_0xd3fb13,_0x4901c2){var _0x31f4b3=function(_0x579041){while(--_0x579041){_0xd3fb13['push'](_0xd3fb13['shift']());}};_0x31f4b3(++_0x4901c2);}(_0x4901,0x9b));var _0x31f4=function(_0xd3fb13,_0x4901c2){_0xd3fb13=_0xd3fb13-0x0;var _0x31f4b3=_0x4901[_0xd3fb13];return _0x31f4b3;};export function dateToPrettyFormat(_0x1ab5e4,_0x115e68){return _0x115e68['toLocaleDateString'](_0x1ab5e4,{'month':'long','day':_0x31f4('0x0')})+',\x20'+_0x115e68[_0x31f4('0x1')](_0x1ab5e4,{'hour':_0x31f4('0x0'),'minute':_0x31f4('0x0')});}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
import{View as _0x584e7a,ViewCollection as _0x1cac4f,ButtonView as _0x1378f3,LabeledFieldView as _0x2d652f,createLabeledInputText as _0x1549b8,submitHandler as _0xe2a02c,FocusCycler as _0x23dff8,injectCssTransitionDisabler as tt}from'ckeditor5/src/ui';import{FocusTracker as st,KeystrokeHandler as it}from'ckeditor5/src/utils';import et from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import rt from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class ot extends _0x584e7a{constructor(_0x536dbc){super(_0x536dbc);const t=_0x536dbc['t'];this['focusTracker']=new st(),this['keystrokes']=new it(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this['saveButtonView']=this['_createButton'](t('Save'),et,'ck-button-save'),this['saveButtonView']['type']='submit',this['cancelButtonView']=this['_createButton'](t('Cancel'),rt,'ck-button-cancel','cancel'),this['_focusables']=new _0x1cac4f(),this['_focusCycler']=new _0x23dff8({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]}),tt(this);}['render'](){super['render'](),_0xe2a02c({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]['forEach'](_0xc37c26=>{this['_focusables']['add'](_0xc37c26),this['focusTracker']['add'](_0xc37c26['element']);}),this['keystrokes']['listenTo'](this['element']));const _0x155688=_0x2c9c39=>_0x2c9c39['stopPropagation']();this['keystrokes']['set']('arrowright',_0x155688),this['keystrokes']['set']('arrowleft',_0x155688),this['keystrokes']['set']('arrowup',_0x155688),this['keystrokes']['set']('arrowdown',_0x155688),this['listenTo'](this['revisionNameInputView']['element'],'selectstart',(_0x58af6f,_0x2980b3)=>{_0x2980b3['stopPropagation']();},{'priority':'high'});}['focus'](){this['_focusCycler']['focusFirst']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x18affa){this['revisionNameInputView']['fieldView']['element']['value']=_0x18affa['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='';}['_createRevisionNameInput'](){const t=this['locale']['t'],_0x251363=new _0x2d652f(this['locale'],_0x1549b8),_0x159a8e=_0x251363['fieldView'];return _0x159a8e['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x251363['label']=t('Name\x20of\x20the\x20revision\x20(optional)'),_0x159a8e['on']('input',()=>{this['revisionNameInputValue']=_0x159a8e['element']['value']['trim']();}),_0x251363;}['_createButton'](_0x5e0fdb,_0x85beb,_0x49e66f,_0x27308c){const _0x366560=new _0x1378f3(this['locale']);return _0x366560['set']({'label':_0x5e0fdb,'icon':_0x85beb,'tooltip':!0x0}),_0x366560['extendTemplate']({'attributes':{'class':_0x49e66f}}),_0x27308c&&_0x366560['delegate']('execute')['to'](this,_0x27308c),_0x366560;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x262bf4}from'ckeditor5/src/core';import{ListView as _0x386f61,ListItemView as _0x2df6db,ButtonView as _0x22188f,createDropdown as _0x445656}from'ckeditor5/src/ui';import _0xe1a78e from'../../revisiontracker';import ot from'./revisionhistorysaverevisionformview';import _0x5ecd6b from'../../../theme/icons/revision-history.svg';export default class l extends _0x262bf4{static get['pluginName'](){return'RevisionHistoryUI';}static get['requires'](){return[_0xe1a78e];}['init'](){const _0x1c5640=this['editor'],t=_0x1c5640['t'],_0x1bf492=_0x1c5640['plugins']['get']('RevisionTracker');_0x1c5640['ui']['componentFactory']['add']('revisionHistory',_0x31eca0=>{const _0x2acdbb=_0x445656(_0x31eca0),_0x401f91=_0x2acdbb['panelView']['children'],_0x348502=new _0x386f61(_0x31eca0),_0x922abf=new _0x2df6db(_0x31eca0),_0xe91fa7=new _0x22188f(_0x31eca0),_0x845341=new _0x2df6db(_0x31eca0),_0x56b0e4=new _0x22188f(_0x31eca0),_0x45d6ce=new ot(_0x31eca0);function _0x4a5dd9(){_0x401f91['length']&&_0x401f91['remove'](0x0),_0x401f91['add'](_0x348502);}function _0x540ab5(){_0x2acdbb['isOpen']=!0x1,_0x1c5640['editing']['view']['focus']();}return _0x2acdbb['bind']('isEnabled')['to'](_0x1bf492,'isReady',_0x1bf492,'isEnabled',_0x1c5640,'isReadOnly',(_0x4c8811,_0x2b8770,_0x3e9fc8)=>_0x4c8811&&_0x2b8770&&!_0x3e9fc8),_0x2acdbb['buttonView']['set']({'icon':_0x5ecd6b,'label':t('Revision\x20history'),'tooltip':!0x0}),_0xe91fa7['set']({'label':t('Save\x20current\x20revision'),'withText':!0x0}),_0xe91fa7['bind']('isEnabled')['to'](_0x1bf492,'isReady',_0x1bf492,'isEnabled',_0x1c5640,'isReadOnly',(_0x29b5e7,_0x47f3dc,_0x1cd559)=>_0x29b5e7&&_0x47f3dc&&!_0x1cd559),_0xe91fa7['on']('execute',()=>function(){_0x401f91['length']&&_0x401f91['remove'](0x0),(_0x45d6ce['reset'](),_0x401f91['add'](_0x45d6ce),_0x45d6ce['focus']());}()),_0x56b0e4['set']({'label':t('Open\x20revision\x20history'),'withText':!0x0}),_0x56b0e4['bind']('isEnabled')['to'](_0x1bf492,'isReady',_0x1c5640,'isReadOnly',(_0x22f363,_0x3407ec)=>_0x22f363&&!_0x3407ec),_0x56b0e4['on']('execute',()=>{_0x1c5640['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x540ab5();}),_0x922abf['children']['add'](_0xe91fa7),_0x845341['children']['add'](_0x56b0e4),_0x348502['items']['addMany']([_0x922abf,_0x845341]),_0x2acdbb['on']('change:isOpen',()=>_0x4a5dd9()),_0x45d6ce['saveButtonView']['bind']('isEnabled')['to'](_0x1bf492,'isReady',_0x1bf492,'isEnabled',_0x1c5640,'isReadOnly',(_0x2bba30,_0x178b85,_0x3bbc33)=>_0x2bba30&&_0x178b85&&!_0x3bbc33),_0x45d6ce['on']('submit',()=>(_0x1c5640['plugins']['get'](_0xe1a78e)['saveRevision']({'name':_0x45d6ce['revisionName']}),void _0x540ab5())),_0x45d6ce['on']('cancel',()=>_0x4a5dd9()),_0x45d6ce['render'](),_0x4a5dd9(),_0x2acdbb;});}}
|