@ckeditor/ckeditor5-revision-history 37.0.1 → 38.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/build/translations/sr.js +1 -1
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +2 -2
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +6 -6
- package/src/changeitem.d.ts +5 -0
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +1 -0
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/revisionviewer.css +16 -0
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x246a=['view','enqueueChange','toViewPosition','upcast','refresh','startIndex','markers','vid','change:isReadOnly','vid_start','ck-suggestion-preview-marker-','isIncorrect','getRoot','revisionHistoryLabel','removeMarker','wrap','WidgetToolbarRepository','activeView','compare','mapper','elementToAttribute','includes','bindElementToMarker','data-change-id','isSuggestion','locale','_setConversion','checkAttribute','shift','_markSuggestions','then','children','consume','name','addHighlight','conversion','findIndex','highest','forEach','_makeModelFromTape','markersStart','setAttribute','insertion','parse','remove','downcastDispatcher','mapViewToDom','_findChangeIdFromDomTarget','_joinTapes','isInline','_removeUnsupportedChanges','config','newRevisionId','index','isContent','split','stopListening','_refreshStartEndIndex','_processTape','stop','bottom','writer','createAttributeElement','previousPosition','createRangeIn','_changeView','_setDistance','repository','target','createPositionBefore','activeChange','POSITIVE_INFINITY','first','_revisions','_getDiff','_initInteractions','isCollapsed','text','insert','getIndex','_data','isAtEnd','parent','sort','toData','roots','dataDowncast','high','element:pre','addMarker:revision-suggestion:deletion','model','loadRevisionData','pop','isReady','distance','editing','isRemoved','hasClass','_getViewForChange','bind','listenTo','nodeAfter','slice','removeMarker:revision-suggestion','editingDowncast','change:numberOfChanges','change:isReady','nextSibling','change:isEnabled','getRevision','abs','userId','_markInsertions','domConverter','set','_markMarkers','consumable','left','toViewElement','startsWith','createRange','authors','createUIElement','readOnlyMode','commands','catch','changeId','enableReadOnlyMode','_balloon','end','removeMarker:revision','editor','deletion','getRootNames','_setData','string','filter','elementEnd','modelRange','keys','for','getWalker','addMarker:revision-suggestion:insertion','_getChangeFromId','item','getAttributes','RevisionsRepository','collaboration.channelId','markerRange','getCustomProperty','processor','_activeViewTarget','restoreRevision','document','getRevisionData','pairId','isBefore','_changeIdToChange','element','viewItem','unshift','change','nextPosition','ck-editor__editable__overlay','level','addClass','createPositionFromPath','length','isAfter','change:activeView','revisionHistory','resolve','isEnabled','ck-suggestion-preview-marker','<p></p>','revision','requires','mouseover','isBlock','side','showNextChange','hasAttribute','revision:','revision-start','adapter','schema','ck-suggestion-marker-merge','start','createRevision','merge','_markMismatchedRemovedTags','markerToHighlight','return','ck-suggestion-marker--active','next','toViewRange','diff','reconvertMarker','clearForceDisabled','values','endIndex','get','_removeMissingPairs','selection','_appendChild','attributes','_threeWayMerge','useFillerType','markerName','_makeTape','splice','right','_removeRevisionMarkers','markersEnd','all','concat','_update','RevisionViewer','unbindElementFromMarkerName','dataToMarker','isNavigationMode','addMarker:revision','ck-suggestion-marker-','clear','_cleanUp','_getRevisionsRange','add','elementStart','done','removeClass','from','isEqual','plugins','attribute:vid','-new','getItems','push','map','_cleanMarkers','domEvent','forward','data','type','getClientRects','toModel','vid_end','forceDisabled','revision-viewer','execute','markerNameToElements','_makeModelFromViewString','revision-suggestion:','addRevision','change:activeChange','diffData','revision-suggestion','error','isAdded','isRemoveSuggestion','changes','getAttribute','low','isLimit','span','_getViewObj','_step','has','insertions','isAddSuggestion','destroy','find','test'];(function(_0x12f3e5,_0x246a04){const _0xc5f2fe=function(_0x2daa4c){while(--_0x2daa4c){_0x12f3e5['push'](_0x12f3e5['shift']());}};_0xc5f2fe(++_0x246a04);}(_0x246a,0xb3));const _0xc5f2=function(_0x12f3e5,_0x246a04){_0x12f3e5=_0x12f3e5-0x0;let _0xc5f2fe=_0x246a[_0x12f3e5];return _0xc5f2fe;};import{Plugin as _0x444b94,Command as _0x4f7e50}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1c7f51}from'ckeditor5/src/utils';import{ContextualBalloon as _0x34b568}from'ckeditor5/src/ui';import{DocumentFragment as _0x5c2dd3,Element as _0x5bd6bc,Text as _0x4ca4e1,ViewDocumentFragment as _0x5ef541,ViewText as _0x56676a,ViewElement as _0x5f3663,ViewContainerElement as _0x5553d5,ViewAttributeElement as _0xce7e5d,ViewEmptyElement as _0x191466,ViewRawElement as _0x182754,ViewUIElement as _0x332932}from'ckeditor5/src/engine';import{Users as _0x12b71b,getMarkerDomElement as _0x11e2f9}from'ckeditor5-collaboration/src/collaboration-core';import _0x4de06a from'./ui/revisionviewer/changedetailsview';import _0x1ba97a from'./revisionsrepository';import _0x129f34 from'./changeitem';import{default as _0x2bb4f5}from'./revisiondiff';import'../theme/revisionviewer.css';const K={'c':_0x5553d5,'a':_0xce7e5d,'e':_0x191466,'r':_0x182754,'u':_0x332932};export default class y extends _0x444b94{static get['pluginName'](){return _0xc5f2('0x26');}static get[_0xc5f2('0x10d')](){return[_0x12b71b,_0x34b568,_0x1ba97a];}constructor(_0x1e6b5b){super(_0x1e6b5b),this['repository']=this[_0xc5f2('0xe0')][_0xc5f2('0x35')][_0xc5f2('0x16')](_0xc5f2('0xef')),this[_0xc5f2('0xcf')](_0xc5f2('0xa3'),null),this[_0xc5f2('0xcf')]('activeView',null),this[_0xc5f2('0xf4')]=null,this['set'](_0xc5f2('0x11'),null),this[_0xc5f2('0xcf')]('isReady',!0x1),this[_0xc5f2('0xcf')](_0xc5f2('0x109'),!0x0),this['on'](_0xc5f2('0xc9'),(_0x32e9e2,_0xf8f64a,_0x2642dd)=>{this['activeChange']=null,this[_0xc5f2('0x6e')]=null,this[_0xc5f2('0xe0')]['editing'][_0xc5f2('0x5d')][_0xc5f2('0xfe')](_0x3f33b9=>{for(const _0xad4544 of this[_0xc5f2('0xe0')]['editing']['view'][_0xc5f2('0xf6')][_0xc5f2('0xb2')])_0x2642dd?_0x3f33b9[_0xc5f2('0x32')]('ck-editor__editable__overlay',_0xad4544):_0x3f33b9[_0xc5f2('0x102')](_0xc5f2('0x100'),_0xad4544);});}),this['bind'](_0xc5f2('0x29'))['to'](this,_0xc5f2('0xa3'),_0x522ab7=>null!==_0x522ab7),this[_0xc5f2('0xc0')]('currentChangeNumber')['to'](this,'isReady',this,_0xc5f2('0x11'),this,_0xc5f2('0xa3'),(_0x51c55f,_0x2d266d,_0x2d1f68)=>_0x51c55f&&_0x2d1f68?_0x2d266d[_0xc5f2('0x50')][_0xc5f2('0xac')](_0x2d1f68):0x0),this[_0xc5f2('0xc0')]('numberOfChanges')['to'](this,_0xc5f2('0xba'),this,_0xc5f2('0x11'),(_0x493d36,_0x2c3e62)=>_0x493d36?_0x2c3e62[_0xc5f2('0x50')][_0xc5f2('0x104')]:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this[_0xc5f2('0x5')]=null,this['_balloon']=this['editor'][_0xc5f2('0x35')][_0xc5f2('0x16')](_0x34b568);}['init'](){const _0x3e2319=this[_0xc5f2('0xe0')],_0x7c36d7=new ShowChangeCommand(_0x3e2319,{'direction':'backward'}),_0x2fe495=new ShowChangeCommand(_0x3e2319,{'direction':_0xc5f2('0x3d')});(_0x3e2319[_0xc5f2('0xd9')][_0xc5f2('0x2f')]('showPreviousChange',_0x7c36d7),_0x3e2319[_0xc5f2('0xd9')]['add'](_0xc5f2('0x1'),_0x2fe495),_0x3e2319[_0xc5f2('0xd9')][_0xc5f2('0x2f')](_0xc5f2('0xf5'),new RestoreRevisionCommand(_0x3e2319)),this['on'](_0xc5f2('0xc6'),()=>{_0x7c36d7[_0xc5f2('0x61')](),_0x2fe495[_0xc5f2('0x61')]();}),this[_0xc5f2('0x77')](),this[_0xc5f2('0xa8')](),_0x3e2319[_0xc5f2('0xdc')](_0xc5f2('0x44')),_0x3e2319[_0xc5f2('0x35')][_0xc5f2('0x57')](_0xc5f2('0x6d')))&&_0x3e2319[_0xc5f2('0x35')][_0xc5f2('0x16')](_0xc5f2('0x6d'))[_0xc5f2('0x43')]('revision-viewer');}async[_0xc5f2('0xf7')](_0x237218){await this[_0xc5f2('0xb8')](_0x237218);const _0x39f20f={};for(const _0x5437c2 in _0x237218[_0xc5f2('0x4b')]){const _0x267b64=this[_0xc5f2('0x21')](JSON[_0xc5f2('0x88')](_0x237218['diffData'][_0x5437c2][_0xc5f2('0x58')])),_0x5c6398=this[_0xc5f2('0xe0')][_0xc5f2('0xbc')][_0xc5f2('0x5d')]['document'],_0x34cfff=new _0x5ef541(_0x5c6398,_0x267b64[_0xc5f2('0x3a')](_0x5c4fd8=>this[_0xc5f2('0x55')](_0x5c4fd8)));this[_0xc5f2('0xe0')][_0xc5f2('0x3e')]['processor'][_0xc5f2('0x1c')]('marked'),_0x39f20f[_0x5437c2]=this['editor'][_0xc5f2('0x3e')]['processor'][_0xc5f2('0xb1')](_0x34cfff),this[_0xc5f2('0xe0')][_0xc5f2('0x3e')][_0xc5f2('0xf3')][_0xc5f2('0x1c')]('default');}return _0x39f20f;}['_removeRevisionMarkers'](_0x3b4f0c){return(_0x3b4f0c=_0x3b4f0c[_0xc5f2('0xe5')](_0x2b8754=>!_0x2b8754[_0xc5f2('0x7e')]||_0xc5f2('0x4')!==_0x2b8754[_0xc5f2('0x7e')]&&'revision-end'!==_0x2b8754[_0xc5f2('0x7e')]))[_0xc5f2('0x83')](_0x558d88=>{'string'!=typeof _0x558d88&&(_0x558d88['children']=this['_removeRevisionMarkers'](_0x558d88[_0xc5f2('0x7c')]),_0x558d88[_0xc5f2('0x1a')]=_0x558d88['attributes']['filter'](_0x10f618=>!_0x10f618[0x0][_0xc5f2('0xd4')]('data-revision-')));}),_0x3b4f0c;}async[_0xc5f2('0x6f')](_0x1a2608,_0x556613,_0x390230=!0x1){if(!this[_0xc5f2('0x109')])return;const _0x5bac14=this[_0xc5f2('0x11')],_0x149620=this['repository'],_0x1c4ebb=_0xc5f2('0xe4')==typeof _0x1a2608?_0x149620[_0xc5f2('0xca')](_0x1a2608):_0x1a2608,_0x57a86e=_0xc5f2('0xe4')==typeof _0x556613?_0x149620['getRevision'](_0x556613):_0x556613,_0x57aa1c=_0x1c4ebb['id'],_0x3a07e4=_0x57a86e?_0x57a86e['id']:null;if(!_0x390230&&this[_0xc5f2('0x11')]&&this[_0xc5f2('0x11')][_0xc5f2('0x91')]===_0x57aa1c&&this[_0xc5f2('0x11')]['oldRevisionId']===_0x3a07e4)return Promise[_0xc5f2('0x108')]();this[_0xc5f2('0xba')]=!0x1,this[_0xc5f2('0x6e')]=null,this[_0xc5f2('0xa3')]=null,this[_0xc5f2('0x11')]=new _0x2bb4f5(_0x57aa1c,_0x3a07e4);const _0x3fbd57=this[_0xc5f2('0x2e')](_0x1c4ebb,_0x57a86e,!0x0)[_0xc5f2('0x3a')](_0x3aedeb=>this['loadRevisionData'](_0x3aedeb));return _0x3fbd57[_0xc5f2('0x39')](new Promise(_0x3b5b30=>{setTimeout(_0x3b5b30,0x14);})),Promise[_0xc5f2('0x23')](_0x3fbd57)['then'](()=>{if(!this[_0xc5f2('0x109')])return;this[_0xc5f2('0x2d')]();const _0x4566d5=this[_0xc5f2('0xa7')](_0x57aa1c,_0x3a07e4);this[_0xc5f2('0x11')][_0xc5f2('0xe3')](_0x4566d5);for(const _0x3a0660 of this[_0xc5f2('0x11')]['changes'])this[_0xc5f2('0xfa')][_0xc5f2('0xcf')](_0x3a0660['id'],_0x3a0660);this['editor'][_0xc5f2('0xb7')][_0xc5f2('0x5e')]({'isUndoable':!0x1},_0x1dd018=>{for(const _0xd106ab of Object[_0xc5f2('0xe8')](_0x4566d5[_0xc5f2('0xb7')])){const _0x5d8875=this[_0xc5f2('0xe0')]['model'][_0xc5f2('0xf6')][_0xc5f2('0x69')](_0xd106ab);_0x1dd018[_0xc5f2('0x89')](_0x1dd018[_0xc5f2('0x9d')](_0x5d8875)),_0x1dd018[_0xc5f2('0xab')](_0x4566d5[_0xc5f2('0xb7')][_0xd106ab],_0x5d8875,0x0);}}),this[_0xc5f2('0xba')]=!0x0;})[_0xc5f2('0xda')](_0x477a19=>{console[_0xc5f2('0x4d')](_0x477a19),this[_0xc5f2('0x2d')](),_0x5bac14?this[_0xc5f2('0x11')]=_0x5bac14:this[_0xc5f2('0xe0')][_0xc5f2('0x3e')][_0xc5f2('0xcf')](_0xc5f2('0x10b')),this[_0xc5f2('0xba')]=!0x0;});}[_0xc5f2('0x5a')](){this[_0xc5f2('0x6e')]=null,this['_changeView']&&this[_0xc5f2('0x9e')][_0xc5f2('0x5a')]();}['addRevisionData'](_0x335422,_0x1c77a6){const _0x30c99c=this[_0xc5f2('0xa0')][_0xc5f2('0x9')](_0x335422);return _0x30c99c['on']('_update',(_0x46d991,_0x2c2cd5,_0x4a2f30)=>_0x1c77a6(_0x2c2cd5,_0x4a2f30,_0x30c99c)),this['repository'][_0xc5f2('0x49')](_0x30c99c),_0x30c99c;}['loadRevisionData'](_0x48d6a1){if(!_0x48d6a1||_0x48d6a1[_0xc5f2('0x4b')])return Promise[_0xc5f2('0x108')]();{const _0x316324=this['editor'][_0xc5f2('0x90')]['get'](_0xc5f2('0xf0'));return this[_0xc5f2('0x5')]['getRevision']({'channelId':_0x316324,'revisionId':_0x48d6a1['id']})[_0xc5f2('0x7b')](_0x3b3731=>{_0x48d6a1[_0xc5f2('0x25')]({'diffData':_0x3b3731['diffData']},!0x0);});}}['_cleanUp'](){this[_0xc5f2('0xa3')]=null,this[_0xc5f2('0x3b')](),this[_0xc5f2('0x9e')]&&this['_changeView'][_0xc5f2('0x5a')](),this[_0xc5f2('0x9e')]=null,this[_0xc5f2('0xfa')][_0xc5f2('0x2c')]();}[_0xc5f2('0x1e')](_0x1970a0){const _0x27ca8a=Array[_0xc5f2('0x33')](_0x1970a0[_0xc5f2('0x63')])['filter'](([_0x1662e2,_0x4dbb74])=>_0x1662e2[_0xc5f2('0xd4')](_0xc5f2('0x3'))&&!_0x4dbb74[_0xc5f2('0xa9')]),_0x105f20=Array[_0xc5f2('0x33')](this[_0xc5f2('0xe0')][_0xc5f2('0xb7')][_0xc5f2('0x9d')](_0x1970a0)[_0xc5f2('0xea')]({'singleCharacters':!0x0}));if(0x0!=_0x27ca8a['length'])for(const _0x49e093 of _0x105f20){const [_0x454d2e,_0x46371a]=_0x27ca8a[0x0],[,_0x404bc0,_0x226ace]=_0x454d2e['split'](':');if(_0x46371a[_0xc5f2('0xde')][_0xc5f2('0x34')](_0x49e093[_0xc5f2('0xff')])&&_0x27ca8a[_0xc5f2('0x79')](),(_0x49e093[_0xc5f2('0x9c')]['isEqual'](_0x46371a[_0xc5f2('0x8')])||_0x49e093[_0xc5f2('0x9c')][_0xc5f2('0x105')](_0x46371a['start']))&&(_0xc5f2('0x87')==_0x404bc0?_0x49e093['isAdded']={'userId':_0x226ace}:'deletion'==_0x404bc0&&(_0x49e093[_0xc5f2('0xbd')]={'userId':_0x226ace})),0x0==_0x27ca8a['length'])break;}return _0x105f20;}[_0xc5f2('0x96')](_0x236e1f){const _0x45e401=new Map();for(let _0x21742d=0x0;_0x21742d<_0x236e1f[_0xc5f2('0x104')];_0x21742d++)'text'===_0x236e1f[_0x21742d][_0xc5f2('0x3f')]?(_0x236e1f[_0x21742d][_0xc5f2('0xed')]['startIndex']=_0x21742d,_0x236e1f[_0x21742d][_0xc5f2('0xed')][_0xc5f2('0x15')]=_0x21742d):(_0xc5f2('0x30')===_0x236e1f[_0x21742d]['type']?_0x236e1f[_0x21742d][_0xc5f2('0xed')][_0xc5f2('0x62')]=_0x21742d:_0xc5f2('0xe6')===_0x236e1f[_0x21742d][_0xc5f2('0x3f')]&&(_0x236e1f[_0x21742d][_0xc5f2('0xed')][_0xc5f2('0x15')]=_0x21742d),_0x45e401[_0xc5f2('0xcf')](_0x236e1f[_0x21742d]['id'],_0x21742d));for(const _0x514c9b of _0x45e401[_0xc5f2('0x14')]())_0xc5f2('0x30')===_0x236e1f[_0x514c9b][_0xc5f2('0x3f')]?_0x236e1f[_0x514c9b]['item']['endIndex']=_0x45e401[_0xc5f2('0x16')](_0x236e1f[_0x514c9b][_0xc5f2('0xf8')]):_0xc5f2('0xe6')===_0x236e1f[_0x514c9b][_0xc5f2('0x3f')]&&(_0x236e1f[_0x514c9b][_0xc5f2('0xed')]['startIndex']=_0x45e401['get'](_0x236e1f[_0x514c9b][_0xc5f2('0xf8')]));}[_0xc5f2('0x97')](_0x55bfb4){for(let _0x39b8a9=0x0;_0x39b8a9<_0x55bfb4[_0xc5f2('0x104')];_0x39b8a9++){if(_0xc5f2('0x30')===_0x55bfb4[_0x39b8a9]['type'])_0x55bfb4[_0x39b8a9][_0xc5f2('0xed')][_0xc5f2('0x62')]=_0x39b8a9;else{if('elementEnd'===_0x55bfb4[_0x39b8a9][_0xc5f2('0x3f')]){_0x55bfb4[_0x39b8a9]['item'][_0xc5f2('0x15')]=_0x39b8a9;const _0x68469b=_0x55bfb4[_0x39b8a9][_0xc5f2('0xed')]['startIndex'];_0x55bfb4[_0x68469b][_0xc5f2('0xf8')]=_0x55bfb4[_0x39b8a9]['id'],_0x55bfb4[_0x39b8a9][_0xc5f2('0xf8')]=_0x55bfb4[_0x68469b]['id'];}else _0x55bfb4[_0x39b8a9][_0xc5f2('0xed')]['startIndex']=_0x39b8a9,_0x55bfb4[_0x39b8a9][_0xc5f2('0xed')][_0xc5f2('0x15')]=_0x39b8a9,_0x55bfb4[_0x39b8a9]['pairId']=null;}_0x55bfb4[_0x39b8a9][_0xc5f2('0x85')]||(_0x55bfb4[_0x39b8a9][_0xc5f2('0x85')]=[],_0x55bfb4[_0x39b8a9]['markersEnd']=[]);}}[_0xc5f2('0xcd')](_0x730ee4,_0x3f9a1a){const _0x3a3222=_0x730ee4[_0xc5f2('0xe5')](_0x494309=>!_0x494309[_0xc5f2('0x4e')]);for(let _0x2376a7=0x0;_0x2376a7<_0x3f9a1a['length'];_0x2376a7++)_0x3f9a1a[_0x2376a7][_0xc5f2('0x4e')]&&(_0x3a3222[_0x2376a7][_0xc5f2('0x4e')]=_0x3f9a1a[_0x2376a7][_0xc5f2('0x4e')]);}[_0xc5f2('0x47')](_0x3f6576){const _0x2a522f=JSON[_0xc5f2('0x88')](_0x3f6576),_0x4c0395=this[_0xc5f2('0xe0')]['editing'][_0xc5f2('0x5d')]['document'],_0x25e61c=new _0x5ef541(_0x4c0395,_0x2a522f['map'](_0x586958=>this['_getViewObj'](_0x586958)));return this[_0xc5f2('0xe0')][_0xc5f2('0x3e')][_0xc5f2('0x41')](_0x25e61c);}[_0xc5f2('0x55')](_0xb74e3c){const _0x3a4bab=this[_0xc5f2('0xe0')][_0xc5f2('0xbc')][_0xc5f2('0x5d')]['document'];if(_0xc5f2('0xe4')==typeof _0xb74e3c)return new _0x56676a(_0x3a4bab,_0xb74e3c);{const _0x3ea9f1=_0xb74e3c[_0xc5f2('0x7c')]['map'](_0x12333b=>this['_getViewObj'](_0x12333b));return new(K[_0xb74e3c[(_0xc5f2('0x3f'))]]||_0x5f3663)(_0x3a4bab,_0xb74e3c['name'],_0xb74e3c[_0xc5f2('0x1a')],_0x3ea9f1);}}[_0xc5f2('0xa7')](_0x2d323a,_0x26c8fc=null){const _0x36ef77=this[_0xc5f2('0xa0')][_0xc5f2('0xca')](_0x2d323a),_0x31b419=_0x26c8fc?this['repository'][_0xc5f2('0xca')](_0x26c8fc):null,_0x1404e8=this['_getRevisionsRange'](_0x36ef77,_0x31b419),_0x5b21a4=_0x1404e8[_0x1404e8[_0xc5f2('0x104')]-0x1],_0x13939f=new Map();for(const _0x58af7f of _0x1404e8){_0x58af7f[_0xc5f2('0xb7')]={};for(const _0x412ad7 of _0x58af7f[_0xc5f2('0xd6')])_0x13939f['set'](_0x412ad7['id'],_0x412ad7);for(const _0x52ff27 of this['editor'][_0xc5f2('0xb7')][_0xc5f2('0xf6')][_0xc5f2('0xe2')]())_0x58af7f['diffData'][_0x52ff27]||(_0x58af7f[_0xc5f2('0x4b')][_0x52ff27]={'insertions':'[]','deletions':'[]'}),_0x58af7f[_0xc5f2('0xb7')][_0x52ff27]={'insertions':this[_0xc5f2('0x47')](_0x58af7f[_0xc5f2('0x4b')][_0x52ff27][_0xc5f2('0x58')]),'deletions':this[_0xc5f2('0x47')](_0x58af7f[_0xc5f2('0x4b')][_0x52ff27]['deletions'])};}const _0x32e906={'model':{},'changes':[]};for(const _0x368ac8 of this[_0xc5f2('0xe0')][_0xc5f2('0xb7')]['document'][_0xc5f2('0xe2')]()){let _0x488470=null,_0x128739=0x0;const _0x1961c0=new Map(Array['from'](_0x36ef77[_0xc5f2('0xb7')][_0x368ac8]['insertions']['markers'])['filter'](([_0x17cbc3])=>!_0x17cbc3[_0xc5f2('0xd4')](_0xc5f2('0x3'))));let _0x2c42f7=0x0;for(const _0x26be36 of _0x1404e8){const _0x576dd1=this[_0xc5f2('0x1e')](_0x26be36[_0xc5f2('0xb7')][_0x368ac8][_0xc5f2('0x58')]);_0x26be36==_0x36ef77?(_0x488470=_0x576dd1,_0x128739=_0x488470['length'],_0x488470[_0xc5f2('0x83')](_0x24005d=>{_0x24005d['id']=_0x2c42f7++;}),this['_processTape'](_0x488470)):this[_0xc5f2('0xcd')](_0x488470,_0x576dd1);const _0x49a83f=_0x488470[_0xc5f2('0xe5')](_0x411aa6=>!_0x411aa6[_0xc5f2('0x4e')])[_0xc5f2('0x3a')](_0x241db2=>_0x241db2['id']);let _0x44752b=0x0;const _0x187dd8=this[_0xc5f2('0x1e')](_0x26be36[_0xc5f2('0xb7')][_0x368ac8]['deletions']);_0x187dd8['forEach'](_0x225d89=>{_0x225d89['isRemoved']?_0x225d89['id']=_0x128739++:_0x225d89['id']=_0x49a83f[_0x44752b++];}),this[_0xc5f2('0x97')](_0x187dd8),this[_0xc5f2('0x9f')](_0x488470,'isAdded'),this[_0xc5f2('0x9f')](_0x187dd8,_0xc5f2('0xbd')),_0x26be36==_0x36ef77&&this[_0xc5f2('0xd0')](_0x488470,_0x1961c0),_0x488470=this['_joinTapes'](_0x488470,_0x187dd8),this[_0xc5f2('0x96')](_0x488470),this[_0xc5f2('0x9f')](_0x488470,_0xc5f2('0xbd'));}_0x488470=_0x488470['filter'](_0x35a51c=>!(_0x35a51c[_0xc5f2('0x4e')]&&_0x35a51c[_0xc5f2('0xbd')]));const _0x3eb31c=new Map(_0x5b21a4['model'][_0x368ac8]['deletions']['markers']),_0x206725=new Set(_0x1961c0[_0xc5f2('0xe8')]());for(const _0x19fb1d of _0x3eb31c[_0xc5f2('0xe8')]())_0x206725['delete'](_0x19fb1d);this[_0xc5f2('0x7a')](_0x488470,_0x206725),this['_fixObsoleteTags'](_0x488470),_0x488470=this['_removeMissingPairs'](_0x488470),_0x488470=this[_0xc5f2('0xb')](_0x488470),_0x488470=this[_0xc5f2('0x8f')](_0x488470);const {root:_0x5026fd,changes:_0x147802}=this[_0xc5f2('0x84')](_0x488470,_0x13939f);_0x32e906[_0xc5f2('0xb7')][_0x368ac8]=_0x5026fd,_0x32e906['changes']=_0x32e906[_0xc5f2('0x50')][_0xc5f2('0x24')](_0x147802);}return _0x32e906;}[_0xc5f2('0xd0')](_0x26e273,_0x3a7698){for(let _0x4fef58=0x0;_0x4fef58<_0x26e273['length'];_0x4fef58++)for(const [_0x33a49a,_0x2fff58]of _0x3a7698)_0x2fff58['start'][_0xc5f2('0x34')](_0x26e273[_0x4fef58][_0xc5f2('0x9c')])&&_0x26e273[_0x4fef58][_0xc5f2('0x85')]['push'](_0x33a49a),_0x2fff58[_0xc5f2('0xde')][_0xc5f2('0x34')](_0x26e273[_0x4fef58][_0xc5f2('0xff')])&&_0x26e273[_0x4fef58]['markersEnd']['push'](_0x33a49a);}[_0xc5f2('0x8d')](_0x54f541,_0x2f161c){let _0x4d397d=[],_0x1f92e6=0x0,_0x15fc8a=0x0;for(;_0x1f92e6<_0x54f541[_0xc5f2('0x104')]||_0x15fc8a<_0x2f161c[_0xc5f2('0x104')];){const _0x49cc62=_0x54f541[_0x1f92e6]||{},_0x378c81=_0x2f161c[_0x15fc8a]||{};if(_0x49cc62['id']==_0x378c81['id'])_0x1f92e6++,_0x15fc8a++,_0x4d397d['push'](_0x49cc62);else{if(_0x378c81[_0xc5f2('0xbd')]&&_0x49cc62['isAdded']){const {commonTape:_0x5821de,iEnd:_0x4d163e,jEnd:_0x15a069}=this[_0xc5f2('0x1b')](_0x54f541,_0x1f92e6,_0x2f161c,_0x15fc8a);_0x4d397d=_0x4d397d['concat'](_0x5821de),_0x1f92e6=_0x4d163e,_0x15fc8a=_0x15a069;}else _0x378c81[_0xc5f2('0xbd')]?(_0x15fc8a++,_0x4d397d[_0xc5f2('0x39')](_0x378c81)):(_0x1f92e6++,_0x4d397d['push'](_0x49cc62));}}return _0x4d397d;}['_markSuggestions'](_0x59b190,_0x2b90fe){const _0x4e83cf=[];for(let _0x24bd32=0x0;_0x24bd32<_0x59b190[_0xc5f2('0x104')];_0x24bd32++){for(let _0x43becd=0x0;_0x43becd<_0x59b190[_0x24bd32][_0xc5f2('0x85')][_0xc5f2('0x104')];_0x43becd++){const _0x15015b=_0x59b190[_0x24bd32][_0xc5f2('0x85')][_0x43becd];if(!_0x2b90fe['has'](_0x15015b))continue;const {group:_0x13236a,type:_0x5804e8,authorId:_0x27a519}=_0xd8679d(_0x15015b);_0xc5f2('0x4c')!=_0x13236a||'insertion'!=_0x5804e8&&_0xc5f2('0xe1')!=_0x5804e8||(_0x4e83cf[_0xc5f2('0xfd')]({'type':_0x5804e8,'name':_0x15015b,'userId':_0x27a519}),_0x59b190[_0x24bd32]['markersStart'][_0xc5f2('0x1f')](_0x43becd,0x1),_0x43becd--);}_0x288be5(_0x59b190[_0x24bd32]);for(let _0x291d4e=0x0;_0x291d4e<_0x59b190[_0x24bd32][_0xc5f2('0x22')][_0xc5f2('0x104')];_0x291d4e++){const _0x2249b4=_0x59b190[_0x24bd32][_0xc5f2('0x22')][_0x291d4e];if(!_0x2b90fe[_0xc5f2('0x57')](_0x2249b4))continue;const {group:_0x3ea681,type:_0x3f6898}=_0xd8679d(_0x2249b4);if(_0xc5f2('0x4c')!=_0x3ea681||_0xc5f2('0x87')!=_0x3f6898&&_0xc5f2('0xe1')!=_0x3f6898)continue;_0x59b190[_0x24bd32][_0xc5f2('0x22')][_0xc5f2('0x1f')](_0x291d4e,0x1),_0x291d4e--;const _0x50b1b0=_0x4e83cf[_0xc5f2('0x81')](_0x3cadc=>_0x3cadc[_0xc5f2('0x7e')]==_0x2249b4);_0x50b1b0>-0x1&&_0x4e83cf['splice'](_0x50b1b0,0x1);}}function _0xd8679d(_0x30f3f1){const _0x3c20f7=_0x30f3f1[_0xc5f2('0x94')](':');return{'group':_0x3c20f7[0x0],'type':_0x3c20f7[0x1],'subType':_0x3c20f7[_0xc5f2('0x104')]>=0x5?_0x3c20f7[0x2]:null,'id':_0x3c20f7[_0xc5f2('0x104')]<0x5?_0x3c20f7[0x2]:_0x3c20f7[0x3],'authorId':_0x3c20f7[_0xc5f2('0x104')]<0x5?_0x3c20f7[0x3]:_0x3c20f7[0x4],'markerCount':0x6==_0x3c20f7[_0xc5f2('0x104')]?_0x3c20f7[0x5]:null};}function _0x288be5(_0x3cea21){for(let _0x35c251=0x0;_0x35c251<_0x4e83cf[_0xc5f2('0x104')];_0x35c251++){if(_0x3cea21[_0xc5f2('0x4e')]&&'insertion'==_0x4e83cf[_0x35c251][_0xc5f2('0x3f')])return _0x3cea21[_0xc5f2('0x59')]=_0x4e83cf[_0x35c251],void delete _0x3cea21[_0xc5f2('0x4e')];if(!_0x3cea21[_0xc5f2('0x4e')]&&!_0x3cea21[_0xc5f2('0xbd')]&&_0xc5f2('0xe1')==_0x4e83cf[_0x35c251][_0xc5f2('0x3f')])return void(_0x3cea21[_0xc5f2('0x4f')]=_0x4e83cf[_0x35c251]);}}}[_0xc5f2('0x9f')](_0x1c2f61,_0x21ab4d){let _0x4a2fff=0x0,_0xdffdf=!0x1;const _0x2611f0=new Map();for(const _0x1d628a of _0x1c2f61)_0x1d628a[_0x21ab4d]?_0xdffdf&&(_0x4a2fff++,_0xdffdf=!0x1):(_0x4a2fff++,_0xdffdf=!0x0),_0x2611f0[_0xc5f2('0xcf')](_0x1d628a['id'],_0x4a2fff);for(let _0x48d1db=0x0;_0x48d1db<_0x1c2f61['length'];_0x48d1db++){if('isRemoved'==_0x21ab4d&&_0x1c2f61[_0x48d1db][_0xc5f2('0x4e')]||_0xc5f2('0x4e')==_0x21ab4d&&_0x1c2f61[_0x48d1db][_0xc5f2('0xbd')])continue;if(_0xc5f2('0xaa')==_0x1c2f61[_0x48d1db][_0xc5f2('0x3f')]){_0x1c2f61[_0x48d1db][_0xc5f2('0xbb')]=0x0;continue;}const _0x571c85=_0x2611f0[_0xc5f2('0x16')](_0x1c2f61[_0x48d1db]['pairId']),_0x2ce339=_0x2611f0[_0xc5f2('0x16')](_0x1c2f61[_0x48d1db]['id']);_0x1c2f61[_0x48d1db][_0xc5f2('0xbb')]=_0x571c85-_0x2ce339;}}[_0xc5f2('0x2e')](_0x2db012,_0x5d1d2c,_0x389865=!0x1){const _0x272cba=[];let _0x5c755e=this[_0xc5f2('0xa0')]['getIndex'](_0x2db012),_0x338901=this[_0xc5f2('0xa0')]['getIndex'](_0x5d1d2c);for(-0x1==_0x338901&&(_0x338901=this[_0xc5f2('0xa0')][_0xc5f2('0xa6')][_0xc5f2('0x104')],_0x389865=!0x1);_0x5c755e<_0x338901;)_0x272cba[_0xc5f2('0x39')](this[_0xc5f2('0xa0')][_0xc5f2('0xca')](_0x5c755e)),_0x5c755e++;return _0x389865&&_0x272cba[_0xc5f2('0x39')](this[_0xc5f2('0xa0')]['getRevision'](_0x5c755e)),_0x272cba;}[_0xc5f2('0x1b')](_0x25226d,_0x2363e1,_0x246506,_0x4f2f6e){const _0x4e4817=this[_0xc5f2('0xe0')]['model']['schema'];let _0x8ee623=_0x2363e1;for(;_0x25226d[_0x8ee623]&&_0x25226d[_0x8ee623][_0xc5f2('0x4e')];)_0x8ee623++;let _0x55bab0=_0x4f2f6e;for(;_0x246506[_0x55bab0]&&_0x246506[_0x55bab0][_0xc5f2('0xbd')];)_0x55bab0++;_0x51ef96(_0x25226d,_0x2363e1,_0x8ee623),_0x51ef96(_0x246506,_0x4f2f6e,_0x55bab0);const _0x34e7e2=_0x246506[_0xc5f2('0xc3')](_0x4f2f6e,_0x55bab0)[_0xc5f2('0x24')](_0x25226d[_0xc5f2('0xc3')](_0x2363e1,_0x8ee623));return _0x34e7e2['sort']((_0x9c3ed6,_0x549d49)=>_0x9c3ed6[_0xc5f2('0x0')]!=_0x549d49[_0xc5f2('0x0')]?_0x9c3ed6['side']-_0x549d49[_0xc5f2('0x0')]:_0x9c3ed6[_0xc5f2('0x101')]!=_0x549d49[_0xc5f2('0x101')]?_0x9c3ed6[_0xc5f2('0x101')]-_0x549d49['level']:_0x9c3ed6[_0xc5f2('0xbb')]!=_0x549d49[_0xc5f2('0xbb')]?_0x549d49['distance']-_0x9c3ed6['distance']:!!_0x9c3ed6[_0xc5f2('0x4e')]!=!!_0x549d49[_0xc5f2('0x4e')]?-0x1==_0x9c3ed6[_0xc5f2('0x0')]||0x0==_0x9c3ed6['side']?_0x9c3ed6[_0xc5f2('0x4e')]?-0x1:0x1:_0x9c3ed6[_0xc5f2('0x4e')]?0x1:-0x1:_0x9c3ed6[_0xc5f2('0x92')]-_0x549d49[_0xc5f2('0x92')]),{'commonTape':_0x34e7e2,'iEnd':_0x8ee623,'jEnd':_0x55bab0};function _0x51ef96(_0x3a0cf1,_0x51328e,_0x1f4440){let _0x580da1=-0x1,_0x5415e6=Number[_0xc5f2('0xa4')],_0x32e1d2=!0x0;for(let _0x2a2c81=_0x51328e;_0x2a2c81<_0x1f4440;_0x2a2c81++)if(_0x4e4817[_0xc5f2('0x8e')](_0x3a0cf1[_0x2a2c81][_0xc5f2('0xed')])||(_0x32e1d2=!0x1),_0x3a0cf1[_0x2a2c81][_0xc5f2('0xed')]['startIndex']<_0x51328e&&(_0x580da1=_0x2a2c81),_0x3a0cf1[_0x2a2c81][_0xc5f2('0xed')][_0xc5f2('0x15')]>=_0x1f4440){_0x5415e6=_0x2a2c81;break;}_0x32e1d2&&(_0x580da1=_0x1f4440-0x1);for(let _0x5ea8b8=_0x51328e;_0x5ea8b8<_0x1f4440;_0x5ea8b8++)_0x3a0cf1[_0x5ea8b8][_0xc5f2('0x0')]=_0x5ea8b8<=_0x580da1?-0x1:_0x5ea8b8<_0x5415e6?0x0:0x1,_0x3a0cf1[_0x5ea8b8]['index']=_0x5ea8b8;let _0x144f5d=0x0;for(let _0x36750b=_0x51328e;_0x36750b<=_0x580da1;_0x36750b++)0x0==_0x3a0cf1[_0x36750b][_0xc5f2('0xbb')]?_0x3a0cf1[_0x36750b][_0xc5f2('0x101')]=_0x144f5d:(_0x144f5d++,_0x3a0cf1[_0x36750b]['level']=_0x144f5d,_0x144f5d++);for(let _0x12dd39=_0x51328e;_0x12dd39<_0x1f4440;_0x12dd39++)0x0==_0x3a0cf1[_0x12dd39][_0xc5f2('0x0')]&&(_0x3a0cf1[_0x12dd39][_0xc5f2('0x101')]=_0x144f5d);_0x144f5d=0x0;for(let _0x17ba00=_0x1f4440-0x1;_0x17ba00>=_0x5415e6;_0x17ba00--)0x0==_0x3a0cf1[_0x17ba00][_0xc5f2('0xbb')]?_0x3a0cf1[_0x17ba00][_0xc5f2('0x101')]=_0x144f5d:(_0x144f5d--,_0x3a0cf1[_0x17ba00][_0xc5f2('0x101')]=_0x144f5d,_0x144f5d--);}}['_fixObsoleteTags'](_0x2a5db1){const _0x1c1dc1=new Map(),_0xc85647=this[_0xc5f2('0xe0')][_0xc5f2('0xb7')]['schema'];for(let _0x5043c1=0x1;_0x5043c1<_0x2a5db1[_0xc5f2('0x104')];_0x5043c1++){let _0x20b57a,_0x1193eb,_0x5aef0a;const _0x5c6749=_0x2a5db1[_0x5043c1],_0x2c99df=_0x2a5db1[_0x5043c1-0x1];if(_0xc5f2('0xaa')==_0x5c6749[_0xc5f2('0x3f')])continue;if(_0x5c6749['type']!=_0x2c99df['type'])continue;if(!_0xc85647[_0xc5f2('0x10f')](_0x2c99df[_0xc5f2('0xed')])||_0xc85647[_0xc5f2('0x53')](_0x2c99df[_0xc5f2('0xed')]))continue;if(!_0xc85647[_0xc5f2('0x10f')](_0x5c6749[_0xc5f2('0xed')])||_0xc85647['isLimit'](_0x5c6749[_0xc5f2('0xed')]))continue;if((_0x2a5db1[_0x5043c1][_0xc5f2('0x4e')]||_0x2a5db1[_0x5043c1]['isAddSuggestion'])&&_0x2a5db1[_0x5043c1-0x1]['isRemoved'])_0x20b57a=_0x2a5db1[_0x5043c1],_0x1193eb=_0x2a5db1[_0x5043c1-0x1],_0x5aef0a=_0x5043c1-0x1;else{if(!_0x2a5db1[_0x5043c1][_0xc5f2('0xbd')]||!_0x2a5db1[_0x5043c1-0x1]['isAdded']&&!_0x2a5db1[_0x5043c1-0x1][_0xc5f2('0x59')])continue;_0x20b57a=_0x2a5db1[_0x5043c1-0x1],_0x1193eb=_0x2a5db1[_0x5043c1],_0x5aef0a=_0x5043c1;}const _0x4a07b9=_0x20b57a[_0xc5f2('0x101')]==_0x1193eb[_0xc5f2('0x101')],_0x128f9e=Math['abs'](_0x20b57a[_0xc5f2('0x101')])<Math[_0xc5f2('0xcb')](_0x1193eb['level'])&&0x0==_0x1193eb[_0xc5f2('0xbb')];(_0x4a07b9||_0x128f9e)&&(_0x1c1dc1[_0xc5f2('0xcf')](_0x1193eb['id'],_0x20b57a['id']),_0x2a5db1[_0xc5f2('0x1f')](_0x5aef0a,0x1),_0x5043c1--,_0x20b57a[_0xc5f2('0x4e')]=!0x1);}for(let _0x2411ce=0x0;_0x2411ce<_0x2a5db1[_0xc5f2('0x104')];_0x2411ce++)_0x1c1dc1['has'](_0x2a5db1[_0x2411ce][_0xc5f2('0xf8')])&&(_0x2a5db1[_0x2411ce][_0xc5f2('0xf8')]=_0x1c1dc1['get'](_0x2a5db1[_0x2411ce]['pairId']));}[_0xc5f2('0x17')](_0x4c843d){const _0x993b1=new Set(_0x4c843d[_0xc5f2('0x3a')](_0x52e867=>_0x52e867['id']));for(let _0x391960=0x0;_0x391960<_0x4c843d[_0xc5f2('0x104')];_0x391960++)_0x993b1[_0xc5f2('0x57')](_0x4c843d[_0x391960][_0xc5f2('0xf8')])||0x0==_0x4c843d[_0x391960]['distance']||(_0x4c843d[_0x391960][_0xc5f2('0x68')]=!0x0);return _0x4c843d[_0xc5f2('0xe5')](_0x6df767=>!_0x6df767[_0xc5f2('0x68')]);}[_0xc5f2('0xb')](_0x26bc44){const _0x55feb8=new Set();for(let _0x593d10=0x0;_0x593d10<_0x26bc44[_0xc5f2('0x104')];_0x593d10++){if(_0x55feb8[_0xc5f2('0x57')](_0x26bc44[_0x593d10]['id'])&&_0x26bc44[_0x593d10][_0xc5f2('0xbd')]&&(_0x26bc44[_0x593d10][_0xc5f2('0x68')]=!0x0),_0x26bc44[_0x593d10][_0xc5f2('0x68')])continue;if(0x0==_0x26bc44[_0x593d10][_0xc5f2('0xbb')])continue;if(_0xc5f2('0x30')!=_0x26bc44[_0x593d10][_0xc5f2('0x3f')])continue;if(null==_0x26bc44[_0x593d10]['pairId'])continue;let _0x306fc8=_0x593d10+0x1,_0x2c5e59=0x0;for(;_0x26bc44[_0x306fc8]['id']!=_0x26bc44[_0x593d10][_0xc5f2('0xf8')];)_0xc5f2('0x30')==_0x26bc44[_0x306fc8][_0xc5f2('0x3f')]?_0x2c5e59++:'elementEnd'==_0x26bc44[_0x306fc8]['type']&&_0x2c5e59--,_0x306fc8++;if(0x0!=_0x2c5e59){if(_0x26bc44[_0x593d10][_0xc5f2('0xbd')])_0x26bc44[_0x593d10][_0xc5f2('0x68')]=!0x0;else for(;_0x306fc8!=_0x593d10;)_0x26bc44[_0x306fc8][_0xc5f2('0xbd')]&&0x0!=_0x26bc44[_0x306fc8][_0xc5f2('0xbb')]&&(_0x26bc44[_0x306fc8][_0xc5f2('0x68')]=!0x0,_0x55feb8[_0xc5f2('0x2f')](_0x26bc44[_0x306fc8][_0xc5f2('0xf8')])),_0x306fc8--;}}return _0x26bc44['filter'](_0x20edd1=>!_0x20edd1['isIncorrect']);}['_removeUnsupportedChanges'](_0x12f13c){const _0x29b675=this['editor'][_0xc5f2('0xb7')]['schema'];for(let _0x5acbf4=0x0;_0x5acbf4<_0x12f13c[_0xc5f2('0x104')];_0x5acbf4++){if(!(_0x12f13c[_0x5acbf4][_0xc5f2('0x4e')]||_0x12f13c[_0x5acbf4][_0xc5f2('0x59')]||_0x12f13c[_0x5acbf4][_0xc5f2('0xbd')]||_0x12f13c[_0x5acbf4]['isRemoveSuggestion']))continue;if(0x0==_0x12f13c[_0x5acbf4][_0xc5f2('0xbb')])continue;const _0x31a1a2=_0x12f13c[_0x5acbf4][_0xc5f2('0xed')];_0x29b675['isBlock'](_0x31a1a2)||_0x29b675[_0xc5f2('0x53')](_0x31a1a2)||(_0x12f13c[_0x5acbf4][_0xc5f2('0x4e')]&&delete _0x12f13c[_0x5acbf4][_0xc5f2('0x4e')],_0x12f13c[_0x5acbf4]['isAddSuggestion']&&delete _0x12f13c[_0x5acbf4][_0xc5f2('0x59')],_0x12f13c[_0x5acbf4][_0xc5f2('0x4f')]&&delete _0x12f13c[_0x5acbf4][_0xc5f2('0x4f')],_0x12f13c[_0x5acbf4][_0xc5f2('0xbd')]&&(_0x12f13c[_0x5acbf4]['isIncorrect']=!0x0));}return _0x12f13c['filter'](_0x4a401b=>!_0x4a401b[_0xc5f2('0x68')]);}[_0xc5f2('0x84')](_0x12fb2c,_0x5df1dd){const _0x2bc7a9=new _0x5c2dd3(),_0x3b6290=[],_0x4c54db=new Map(),_0x5a6655=this[_0xc5f2('0xe0')]['model'],_0x237a0f=_0x5a6655['schema'],_0x5910b7=[_0x2bc7a9],_0x4ddef4={},_0x69b05f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f3ca5=null;const _0x25a1dc=[0x0];for(let _0x1079d0=0x0;_0x1079d0<_0x12fb2c[_0xc5f2('0x104')];_0x1079d0++){let _0x4610c7,_0x387e9e;if('elementStart'===_0x12fb2c[_0x1079d0]['type']){_0x4610c7=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc);const _0x16bd7e=new _0x5bd6bc(_0x12fb2c[_0x1079d0][_0xc5f2('0xed')][_0xc5f2('0x7e')],_0x12fb2c[_0x1079d0][_0xc5f2('0xed')]['getAttributes']());_0x5910b7[0x0][_0xc5f2('0x19')](_0x16bd7e),_0x25a1dc[_0xc5f2('0x39')](0x0),_0x5910b7[_0xc5f2('0xfd')](_0x16bd7e),_0x387e9e=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc),_0x3f3ca5=null;}else{if(_0xc5f2('0xe6')===_0x12fb2c[_0x1079d0]['type'])_0x5910b7[_0xc5f2('0x79')](),_0x4610c7=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc),_0x25a1dc[_0xc5f2('0xb9')](),_0x25a1dc[_0x25a1dc[_0xc5f2('0x104')]-0x1]++,_0x387e9e=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc),_0x3f3ca5=null;else{if(_0x4610c7=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc),_0x3f3ca5&&_0x332187(_0x3f3ca5,_0x12fb2c[_0x1079d0]['item']))_0x3f3ca5[_0xc5f2('0xad')]+=_0x12fb2c[_0x1079d0][_0xc5f2('0xed')][_0xc5f2('0x3e')];else{const _0x522720=new _0x4ca4e1(_0x12fb2c[_0x1079d0][_0xc5f2('0xed')][_0xc5f2('0x3e')],_0x12fb2c[_0x1079d0]['item'][_0xc5f2('0xee')]());_0x5910b7[0x0][_0xc5f2('0x19')](_0x522720),_0x3f3ca5=_0x522720;}_0x25a1dc[_0x25a1dc[_0xc5f2('0x104')]-0x1]+=_0x12fb2c[_0x1079d0]['item']['offsetSize'],_0x387e9e=_0x5a6655[_0xc5f2('0x103')](_0x2bc7a9,_0x25a1dc);}}for(const _0x2a38ff of _0x12fb2c[_0x1079d0][_0xc5f2('0x85')])_0x4c54db[_0xc5f2('0xcf')](_0x2a38ff,{'start':_0x4610c7,'end':null});_0x1e2d03('isRemoveSuggestion',_0x1079d0,_0x4610c7,_0x387e9e),_0x1e2d03(_0xc5f2('0x59'),_0x1079d0,_0x4610c7,_0x387e9e),_0x1e2d03(_0xc5f2('0xbd'),_0x1079d0,_0x4610c7,_0x387e9e),_0x1e2d03(_0xc5f2('0x4e'),_0x1079d0,_0x4610c7,_0x387e9e);for(const _0x3c8860 of _0x12fb2c[_0x1079d0][_0xc5f2('0x22')]){_0x4c54db['get'](_0x3c8860)[_0xc5f2('0xde')]=_0x387e9e;}}for(const [_0x4c4bce,_0x3a81c2]of _0x4c54db){const _0x5880ea=this[_0xc5f2('0xe0')]['model']['createRange'](_0x3a81c2['start'],_0x3a81c2[_0xc5f2('0xde')]);_0x2bc7a9[_0xc5f2('0x63')][_0xc5f2('0xcf')](_0x4c4bce,_0x5880ea);}return _0x3b6290[_0xc5f2('0xb0')]((_0x2360f7,_0x35e63c)=>{const _0x49db51=_0x2bc7a9[_0xc5f2('0x63')]['get']('revision:'+_0x2360f7['id']),_0x26cf20=_0x2bc7a9[_0xc5f2('0x63')][_0xc5f2('0x16')]('revision:'+_0x35e63c['id']);return _0x49db51[_0xc5f2('0x8')][_0xc5f2('0xf9')](_0x26cf20[_0xc5f2('0x8')])?-0x1:_0x49db51[_0xc5f2('0x8')][_0xc5f2('0x105')](_0x26cf20[_0xc5f2('0x8')])?0x1:_0x49db51[_0xc5f2('0xde')]['isBefore'](_0x26cf20[_0xc5f2('0xde')])?-0x1:_0x49db51[_0xc5f2('0xde')][_0xc5f2('0x105')](_0x26cf20[_0xc5f2('0xde')])?0x1:'add'===_0x2360f7[_0xc5f2('0x3f')]?-0x1:0x1;}),{'root':_0x2bc7a9,'changes':_0x3b6290};function _0x1e2d03(_0x54eecc,_0x25df37,_0x23a921,_0x559221){const _0x16d9fb=!!_0x12fb2c[_0x25df37][_0x54eecc],_0x176d07=_0x16d9fb?_0x12fb2c[_0x25df37][_0x54eecc][_0xc5f2('0xcc')]:null,_0x54d678=_0x25df37===_0x12fb2c[_0xc5f2('0x104')]-0x1,_0x3cc3d9=_0x69b05f[_0x54eecc][0x0],_0x13554c=_0x237a0f['isObject'](_0x12fb2c[_0x25df37][_0xc5f2('0xed')]);!_0x4ddef4[_0x54eecc]&&_0x16d9fb?_0x4ddef4[_0x54eecc]={'start':_0x23a921,'tapeItem':_0x12fb2c[_0x25df37],'userId':_0x176d07,'type':_0x54eecc}:_0x4ddef4[_0x54eecc]&&!_0x16d9fb?(_0x4ddef4[_0x54eecc][_0xc5f2('0xde')]=_0x23a921,_0x4e799e(_0x4ddef4[_0x54eecc]),_0x4ddef4[_0x54eecc]=null):_0x4ddef4[_0x54eecc]&&_0x16d9fb&&_0x4ddef4[_0x54eecc][_0xc5f2('0xcc')]!==_0x176d07&&(_0x4ddef4[_0x54eecc][_0xc5f2('0xde')]=_0x23a921,_0x3cc3d9&&_0x3cc3d9['userId']===_0x4ddef4[_0x54eecc]['userId']||_0x4e799e(_0x4ddef4[_0x54eecc]),_0x4ddef4[_0x54eecc]={'start':_0x23a921,'tapeItem':_0x12fb2c[_0x25df37],'userId':_0x176d07,'type':_0x54eecc}),_0x4ddef4[_0x54eecc]&&_0x13554c&&(_0xc5f2('0x30')!==_0x12fb2c[_0x25df37][_0xc5f2('0x3f')]||_0x3cc3d9&&_0x3cc3d9[_0xc5f2('0xcc')]===_0x176d07||_0x69b05f[_0x54eecc][_0xc5f2('0xfd')]({'userId':_0x176d07,'object':_0x12fb2c[_0x25df37][_0xc5f2('0xed')],'change':_0x4ddef4[_0x54eecc]}),_0xc5f2('0xe6')===_0x12fb2c[_0x25df37][_0xc5f2('0x3f')]&&_0x3cc3d9&&_0x3cc3d9['object']===_0x12fb2c[_0x25df37][_0xc5f2('0xed')]&&(_0x69b05f[_0x54eecc][_0xc5f2('0x79')](),_0x4ddef4[_0x54eecc]=_0x3cc3d9[_0xc5f2('0xfe')])),_0x4ddef4[_0x54eecc]&&_0x54d678&&(_0x4ddef4[_0x54eecc]['end']=_0x559221,_0x4e799e(_0x4ddef4[_0x54eecc]),_0x4ddef4[_0x54eecc]=null);}function _0x4e799e({start:_0x1f92cb,end:_0x50b770,tapeItem:_0x2325c0,userId:_0x1d5391,type:_0x5b3cfb}){const _0x3ad1f1=_0x2325c0['item'],_0x26bd22=_0x5a6655[_0xc5f2('0x6')][_0xc5f2('0x10f')](_0x3ad1f1)&&!_0x5a6655[_0xc5f2('0x6')]['isLimit'](_0x3ad1f1),_0x251d6b=_0x1f92cb[_0xc5f2('0xc2')]==_0x50b770[_0xc5f2('0xaf')]&&_0x50b770['isAtStart'];if(_0x26bd22&&_0x251d6b)return;const _0x5adf99=_0x5a6655[_0xc5f2('0xd5')](_0x1f92cb,_0x50b770),_0x54d935=_0x5df1dd[_0xc5f2('0x16')](_0x1d5391),_0x3a50a7=new _0x129f34({'author':_0x54d935,'type':_0xc5f2('0x4e')==_0x5b3cfb||_0xc5f2('0x59')==_0x5b3cfb?_0xc5f2('0x2f'):'remove','data':{'isSuggestion':_0xc5f2('0x59')==_0x5b3cfb||_0xc5f2('0x4f')==_0x5b3cfb},'createdAt':new Date()});_0x3b6290[_0xc5f2('0x39')](_0x3a50a7),_0x2bc7a9[_0xc5f2('0x63')][_0xc5f2('0xcf')]('revision:'+_0x3a50a7['id'],_0x5adf99);}function _0x332187(_0x410b1c,_0x5b51fd){const _0x17bc33=_0x410b1c[_0xc5f2('0xee')](),_0x261356=_0x5b51fd['getAttributes']();for(const _0x9593d9 of _0x17bc33){if(_0x9593d9[0x1]!==_0x5b51fd['getAttribute'](_0x9593d9[0x0]))return!0x1;_0x261356[_0xc5f2('0xf')]();}return _0x261356['next']()[_0xc5f2('0x31')];}}[_0xc5f2('0x77')](){this[_0xc5f2('0xe0')]['conversion'][_0xc5f2('0xe9')](_0xc5f2('0x60'))[_0xc5f2('0x28')]({'view':_0xc5f2('0x10c')}),this[_0xc5f2('0xe0')]['conversion'][_0xc5f2('0xe9')](_0xc5f2('0xc5'))[_0xc5f2('0xc')]({'model':_0xc5f2('0x10c'),'view':_0x58a7a0=>{const _0x3f81ef=_0x58a7a0[_0xc5f2('0x1d')]['split'](':')[0x1],_0x3ff293=this[_0xc5f2('0xec')](_0x3f81ef);if(!_0x3ff293)return null;const _0x2e9883=_0xc5f2('0x2f')==_0x3ff293['type']?'insertion':_0xc5f2('0xe1'),_0x360c12=['ck-suggestion-marker',_0xc5f2('0x2b')+_0x2e9883];return _0x3ff293[_0xc5f2('0x3e')][_0xc5f2('0x75')]&&_0x360c12[_0xc5f2('0x39')]('ck-suggestion-marker-'+_0x2e9883+_0xc5f2('0x37')),this[_0xc5f2('0xa3')]==_0x3ff293&&_0x360c12[_0xc5f2('0x39')](_0xc5f2('0xe')),{'classes':_0x360c12,'attributes':{'data-change-id':_0x3f81ef}};}}),this['editor'][_0xc5f2('0x80')][_0xc5f2('0xe9')](_0xc5f2('0x60'))[_0xc5f2('0x2f')](_0x179870=>{_0x179870['on'](_0xc5f2('0xb5'),(_0x577a09,_0x3921e0,_0x21a5f3)=>{const _0x4612f2=_0x3921e0[_0xc5f2('0xfc')]['getChild'](0x0);if(!_0x4612f2||!_0x4612f2['is'](_0xc5f2('0xfb'),'code'))return;if(!_0x21a5f3['consumable'][_0xc5f2('0x7d')](_0x4612f2,{'attributes':[_0xc5f2('0x66'),_0xc5f2('0x42')]}))return;const _0x368d30=_0x3921e0[_0xc5f2('0xe7')]['start'][_0xc5f2('0xc2')];_0x21a5f3[_0xc5f2('0x9a')]['setAttribute'](_0xc5f2('0x66'),_0x4612f2[_0xc5f2('0x51')](_0xc5f2('0x66')),_0x368d30),_0x21a5f3[_0xc5f2('0x9a')][_0xc5f2('0x86')](_0xc5f2('0x42'),_0x4612f2[_0xc5f2('0x51')](_0xc5f2('0x42')),_0x368d30);},{'priority':_0xc5f2('0x52')});}),this[_0xc5f2('0xe0')]['conversion'][_0xc5f2('0xe9')](_0xc5f2('0x60'))['add'](_0x452daf=>{_0x452daf['on'](_0xc5f2('0xfb'),(_0x3a6f33,_0x56cacb,_0x55a388)=>{if(!_0x55a388[_0xc5f2('0xd1')][_0xc5f2('0x7d')](_0x56cacb[_0xc5f2('0xfc')],{'attributes':[_0xc5f2('0x66'),'vid_end']}))return;if(_0x56cacb['modelRange'][_0xc5f2('0xa9')])return;const _0x388c2d=_0x56cacb[_0xc5f2('0xe7')][_0xc5f2('0x8')]['nodeAfter'];_0x388c2d[_0xc5f2('0x2')]('vid_start')||_0x388c2d[_0xc5f2('0x2')](_0xc5f2('0x64'))||(_0x55a388[_0xc5f2('0x9a')]['setAttribute'](_0xc5f2('0x66'),_0x56cacb[_0xc5f2('0xfc')]['getAttribute'](_0xc5f2('0x66')),_0x388c2d),_0x55a388[_0xc5f2('0x9a')]['setAttribute'](_0xc5f2('0x42'),_0x56cacb[_0xc5f2('0xfc')][_0xc5f2('0x51')](_0xc5f2('0x42')),_0x388c2d));},{'priority':_0xc5f2('0x52')});}),this[_0xc5f2('0xe0')][_0xc5f2('0x80')][_0xc5f2('0xe9')]('upcast')[_0xc5f2('0x71')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0xc5f2('0x64'),'value':_0x373c5a=>_0x373c5a[_0xc5f2('0x51')](_0xc5f2('0x64'))}}),this[_0xc5f2('0xe0')][_0xc5f2('0xb7')][_0xc5f2('0x6')]['on'](_0xc5f2('0x78'),(_0x40438a,[,_0x1d353b])=>{[_0xc5f2('0x66'),'vid_end',_0xc5f2('0x64')][_0xc5f2('0x72')](_0x1d353b)&&(_0x40438a[_0xc5f2('0xd')]=!0x0,_0x40438a[_0xc5f2('0x98')]());},{'priority':_0xc5f2('0x82')}),this['editor'][_0xc5f2('0x80')][_0xc5f2('0xe9')](_0xc5f2('0xb3'))['add'](_0x32e793=>{_0x32e793['on'](_0xc5f2('0x36'),(_0x1a6a31,_0x3b8508,_0x39deab)=>{if('\x20'!=_0x3b8508[_0xc5f2('0xed')][_0xc5f2('0x3e')]||_0x3b8508[_0xc5f2('0xed')][_0xc5f2('0xaf')]['maxOffset']>0x1)return;if(!_0x39deab['consumable'][_0xc5f2('0x7d')](_0x3b8508['item'],_0x1a6a31[_0xc5f2('0x7e')]))return;const _0x25bd20=_0x39deab[_0xc5f2('0x9a')],_0x1eaf3c=_0x39deab[_0xc5f2('0x70')][_0xc5f2('0x10')](_0x3b8508['range']);_0x25bd20[_0xc5f2('0x6c')](_0x1eaf3c,_0x25bd20[_0xc5f2('0x9b')](_0xc5f2('0x54')));});}),this[_0xc5f2('0xe0')][_0xc5f2('0x80')]['for'](_0xc5f2('0xb3'))['markerToData']({'model':'revision'}),this['editor'][_0xc5f2('0xbc')][_0xc5f2('0x8a')]['on'](_0xc5f2('0x2a'),function(_0xac426a){const _0x5e7c2f=_0xac426a[_0xc5f2('0x35')][_0xc5f2('0x16')](_0xc5f2('0x26'));return(_0x5e626f,_0x525e85,_0x136acd)=>{const _0xa0b8af=_0x525e85['markerName'][_0xc5f2('0x94')](':')[0x1],_0x5c0c12=_0x5e7c2f['_getChangeFromId'](_0xa0b8af);if(!_0x5c0c12)return null;const _0x1b86e3=_0xc5f2('0x2f')==_0x5c0c12['type']?_0xc5f2('0x94'):_0xc5f2('0xa');if(!_0x136acd[_0xc5f2('0xd1')][_0xc5f2('0x5c')](_0x525e85['markerRange'],_0x5e626f[_0xc5f2('0x7e')]))return;const _0xec0e29=_0x525e85[_0xc5f2('0xf1')][_0xc5f2('0xea')](),_0x2f5535=_0x525e85[_0xc5f2('0xf1')][_0xc5f2('0x8')],_0xa10c33=_0xac426a[_0xc5f2('0xb7')][_0xc5f2('0x6')];let _0x27b387=null,_0x5ba2ad=null,_0x311c39=!0x1,_0x1827bc=!0x1;for(const _0xaf8d86 of _0xec0e29){const _0x51e562=_0xaf8d86[_0xc5f2('0xed')];_0x311c39=_0x311c39||_0xa10c33['isContent'](_0x51e562);const _0x476dbd=_0x136acd[_0xc5f2('0x70')][_0xc5f2('0xd3')](_0x51e562);if(_0x476dbd&&_0x476dbd[_0xc5f2('0xf2')](_0xc5f2('0x7f')))return;_0xc5f2('0xe6')==_0xaf8d86['type']&&(_0xa10c33[_0xc5f2('0x10f')](_0x51e562)&&!_0xa10c33[_0xc5f2('0x53')](_0x51e562)&&(_0x51e562[_0xc5f2('0xc8')]||_0x2f5535['isAtEnd']?_0x27b387&&_0x27b387[_0xc5f2('0xaf')]==_0x51e562||(_0x27b387=_0x51e562,_0x2d9154(_0xaf8d86[_0xc5f2('0x9c')]),_0x1827bc=!0x0):_0x5ba2ad=_0x5ba2ad||_0xaf8d86[_0xc5f2('0x9c')]));}function _0x2d9154(_0x4c59e4){const _0x14392d=_0x136acd[_0xc5f2('0x9a')][_0xc5f2('0xd7')]('span',{'class':_0xc5f2('0x2b')+_0x1b86e3}),_0x796cc3=_0x136acd['mapper'][_0xc5f2('0x5f')](_0x4c59e4);_0x5c0c12[_0xc5f2('0x3e')][_0xc5f2('0x75')]&&_0x136acd[_0xc5f2('0x9a')]['addClass'](_0xc5f2('0x2b')+_0x1b86e3+_0xc5f2('0x37'),_0x14392d),_0x5e7c2f[_0xc5f2('0xa3')]==_0x5c0c12&&_0x136acd[_0xc5f2('0x9a')][_0xc5f2('0x102')](_0xc5f2('0xe'),_0x14392d),_0x136acd[_0xc5f2('0x9a')][_0xc5f2('0xab')](_0x796cc3,_0x14392d),_0x136acd['mapper'][_0xc5f2('0x73')](_0x14392d,_0x525e85[_0xc5f2('0x1d')]);}_0x311c39||_0x1827bc||!_0x5ba2ad||_0x2d9154(_0x5ba2ad);};}(this[_0xc5f2('0xe0')]),{'priority':_0xc5f2('0xb4')}),this[_0xc5f2('0xe0')]['editing']['downcastDispatcher']['on'](_0xc5f2('0xdf'),(_0x1ba45a,_0x50e8a3,_0x507226)=>{const _0x27511b=_0x507226[_0xc5f2('0x70')][_0xc5f2('0x46')](_0x50e8a3['markerName']);if(_0x27511b)for(const _0x4a55b0 of _0x27511b)(_0x4a55b0[_0xc5f2('0xbe')]('ck-suggestion-marker-split')||_0x4a55b0[_0xc5f2('0xbe')](_0xc5f2('0x7')))&&(_0x507226[_0xc5f2('0x70')][_0xc5f2('0x27')](_0x4a55b0,_0x50e8a3[_0xc5f2('0x1d')]),_0x507226['writer'][_0xc5f2('0x89')](_0x4a55b0));},{'priority':_0xc5f2('0xb4')}),this[_0xc5f2('0xe0')]['editing'][_0xc5f2('0x8a')]['on']('addMarker:revision',(_0x268a61,_0x2ecacd,_0x126990)=>{const _0x2e8947=_0x2ecacd[_0xc5f2('0x1d')]['split'](':')[0x1],_0x5588d8=this[_0xc5f2('0xec')](_0x2e8947);if(!_0x5588d8)return null;const _0x412a40='add'==_0x5588d8[_0xc5f2('0x3f')]?_0xc5f2('0x94'):_0xc5f2('0xa');if(_0x126990['consumable'][_0xc5f2('0x5c')](_0x2ecacd[_0xc5f2('0xf1')],_0x268a61['name']))for(const _0x3e3c6c of _0x2ecacd[_0xc5f2('0xf1')][_0xc5f2('0x38')]()){if(!_0x3e3c6c['is'](_0xc5f2('0xfb'),'softBreak'))continue;const _0x916a40=_0x126990[_0xc5f2('0x9a')][_0xc5f2('0xd7')]('span',{'class':_0xc5f2('0x2b')+_0x412a40}),_0x53bc09=_0x126990[_0xc5f2('0x70')][_0xc5f2('0x5f')](this[_0xc5f2('0xe0')]['model'][_0xc5f2('0xa2')](_0x3e3c6c));_0x5588d8[_0xc5f2('0x3e')][_0xc5f2('0x75')]&&_0x126990[_0xc5f2('0x9a')]['addClass']('ck-suggestion-marker-'+_0x412a40+'-new',_0x916a40),this[_0xc5f2('0xa3')]==_0x5588d8&&_0x126990[_0xc5f2('0x9a')][_0xc5f2('0x102')](_0xc5f2('0xe'),_0x916a40),_0x126990['writer'][_0xc5f2('0xab')](_0x53bc09,_0x916a40),_0x126990['mapper'][_0xc5f2('0x73')](_0x916a40,_0x2ecacd[_0xc5f2('0x1d')]);}},{'priority':_0xc5f2('0xb4')}),this['editor'][_0xc5f2('0x80')][_0xc5f2('0xe9')]('upcast')['dataToMarker']({'view':'comment','model':_0x2962e2=>'revision-comment:'+_0x2962e2,'converterPriority':'highest'}),this['editor'][_0xc5f2('0x80')]['for'](_0xc5f2('0x60'))['dataToMarker']({'view':'suggestion','model':_0x12b9ba=>_0xc5f2('0x48')+_0x12b9ba,'converterPriority':_0xc5f2('0x82')}),this[_0xc5f2('0xe0')][_0xc5f2('0x80')]['for'](_0xc5f2('0xb3'))['markerToData']({'model':_0xc5f2('0x4c'),'view':_0x475d2d=>({'name':'suggestion:'+_0x475d2d,'group':'revision-suggestion'}),'converterPriority':_0xc5f2('0x82')}),this[_0xc5f2('0xe0')][_0xc5f2('0x80')][_0xc5f2('0xe9')](_0xc5f2('0xc5'))['markerToHighlight']({'model':'revision-suggestion','view':_0x1a7343=>{const _0x30cf2f=_0x1a7343[_0xc5f2('0x1d')][_0xc5f2('0x94')](':')[0x1];return'insertion'!=_0x30cf2f&&_0xc5f2('0xe1')!=_0x30cf2f?null:{'classes':[_0xc5f2('0x10a'),_0xc5f2('0x67')+_0x30cf2f]};}}),this['editor'][_0xc5f2('0xbc')][_0xc5f2('0x8a')]['on'](_0xc5f2('0xb6'),Q(this[_0xc5f2('0xe0')],'merge'),{'priority':'high'}),this[_0xc5f2('0xe0')][_0xc5f2('0xbc')][_0xc5f2('0x8a')]['on'](_0xc5f2('0xeb'),Q(this[_0xc5f2('0xe0')],_0xc5f2('0x94')),{'priority':_0xc5f2('0xb4')}),this[_0xc5f2('0xe0')]['editing'][_0xc5f2('0x8a')]['on'](_0xc5f2('0xc4'),(_0x1b8d14,_0x477798,_0x516c1a)=>{const _0x4284bc=_0x516c1a[_0xc5f2('0x70')]['markerNameToElements'](_0x477798[_0xc5f2('0x1d')]);if(_0x4284bc)for(const _0x372d22 of _0x4284bc)_0x372d22['is']('uiElement')&&(_0x516c1a[_0xc5f2('0x70')]['unbindElementFromMarkerName'](_0x372d22,_0x477798[_0xc5f2('0x1d')]),_0x516c1a[_0xc5f2('0x9a')][_0xc5f2('0x89')](_0x372d22));},{'priority':_0xc5f2('0xb4')});}[_0xc5f2('0xec')](_0x1d9b02){return this['_changeIdToChange'][_0xc5f2('0x16')](_0x1d9b02);}[_0xc5f2('0xbf')](_0x544854){return this['_changeView']&&this[_0xc5f2('0x9e')][_0xc5f2('0x5a')](),this[_0xc5f2('0x9e')]=new _0x4de06a(this[_0xc5f2('0xe0')][_0xc5f2('0x76')],_0x544854),this[_0xc5f2('0x9e')];}[_0xc5f2('0xa8')](){this[_0xc5f2('0xe0')][_0xc5f2('0xb7')]['document'][_0xc5f2('0x18')]['observeMarkers'](_0xc5f2('0x10c')),this['on'](_0xc5f2('0x106'),(_0x5bb06a,_0x122cb7,_0x20825c,_0x5c657c)=>{_0x5c657c&&this[_0xc5f2('0xdd')][_0xc5f2('0x89')](_0x5c657c),_0x20825c&&(this['_balloon'][_0xc5f2('0x2f')]({'view':_0x20825c,'stackId':_0xc5f2('0x6a'),'position':{'target':()=>{const _0x31271e=this[_0xc5f2('0xe0')][_0xc5f2('0xbc')],_0x21e2d9=this[_0xc5f2('0xe0')][_0xc5f2('0xb7')]['markers'][_0xc5f2('0x16')](_0xc5f2('0x3')+_0x20825c[_0xc5f2('0xdb')]),_0xece500=Array[_0xc5f2('0x33')](_0x31271e[_0xc5f2('0x70')][_0xc5f2('0x46')](_0x21e2d9[_0xc5f2('0x7e')]))[_0xc5f2('0x3a')](_0x4c5184=>_0x31271e[_0xc5f2('0x5d')][_0xc5f2('0xce')][_0xc5f2('0x8b')](_0x4c5184))['map'](_0x4be0ac=>Array[_0xc5f2('0x33')](_0x4be0ac[_0xc5f2('0x40')]()))['flat']();if(!this[_0xc5f2('0xf4')])return _0xece500[0x0];return _0xece500[_0xc5f2('0x5b')](_0x5f4d20=>_0x5f4d20['top']-0x3<=this[_0xc5f2('0xf4')]['y']&&_0x5f4d20[_0xc5f2('0x99')]+0x3>=this[_0xc5f2('0xf4')]['y']&&_0x5f4d20[_0xc5f2('0xd2')]-0x3<=this[_0xc5f2('0xf4')]['x']&&_0x5f4d20[_0xc5f2('0x20')]+0x3>=this[_0xc5f2('0xf4')]['x'])||_0xece500[0x0];}}}),this[_0xc5f2('0xdd')]['showStack']('revisionHistoryLabel'));}),this['on'](_0xc5f2('0x4a'),(_0x45eaea,_0x55e427,_0x3cdcbf,_0x2ebd6e)=>{this[_0xc5f2('0x6e')]=_0x3cdcbf?this['_getViewForChange'](_0x3cdcbf):null,this[_0xc5f2('0xe0')]['model'][_0xc5f2('0xfe')](()=>{const _0x14f8ac=this[_0xc5f2('0xe0')][_0xc5f2('0xbc')];_0x2ebd6e&&_0x14f8ac[_0xc5f2('0x12')](_0xc5f2('0x3')+_0x2ebd6e['id']),_0x3cdcbf&&_0x14f8ac['reconvertMarker']('revision:'+_0x3cdcbf['id']);});}),this[_0xc5f2('0xc1')](this[_0xc5f2('0xe0')][_0xc5f2('0xbc')]['view'][_0xc5f2('0xf6')],_0xc5f2('0x10e'),(_0x33255d,_0x90af64)=>{if(this[_0xc5f2('0xa3')])return;const _0x40a379=this[_0xc5f2('0x8c')](_0x90af64[_0xc5f2('0xa1')]),_0x42be5c=this[_0xc5f2('0xfa')][_0xc5f2('0x16')](_0x40a379);_0x42be5c?(this[_0xc5f2('0xf4')]={'x':_0x90af64['domEvent']['x'],'y':_0x90af64[_0xc5f2('0x3c')]['y']},this[_0xc5f2('0x6e')]=this['_getViewForChange'](_0x42be5c)):(this[_0xc5f2('0xf4')]=null,this['activeView']=null);}),this[_0xc5f2('0xc1')](this[_0xc5f2('0xe0')][_0xc5f2('0xbc')]['view'][_0xc5f2('0xf6')],'mousedown',(_0x44edd6,_0x6d2af2)=>{const _0x4a0e2c=this[_0xc5f2('0x8c')](_0x6d2af2['target']),_0x1b789c=this[_0xc5f2('0xfa')][_0xc5f2('0x16')](_0x4a0e2c);_0x1b789c?(this[_0xc5f2('0xf4')]={'x':_0x6d2af2[_0xc5f2('0x3c')]['x'],'y':_0x6d2af2[_0xc5f2('0x3c')]['y']},_0x1b789c===this['activeChange']?this[_0xc5f2('0xdd')]['updatePosition']():this[_0xc5f2('0xa3')]=_0x1b789c):(this['_activeViewTarget']=null,this[_0xc5f2('0xa3')]=null);});}[_0xc5f2('0x8c')](_0x563b7e){do{const _0x20e065=_0x563b7e[_0xc5f2('0x51')](_0xc5f2('0x74'));if(_0x20e065)return _0x20e065;_0x563b7e=_0x563b7e[_0xc5f2('0xaf')];}while(_0x563b7e);return null;}['_cleanMarkers'](){this[_0xc5f2('0xe0')][_0xc5f2('0xb7')][_0xc5f2('0xfe')](_0x4c916d=>{for(const _0x5016ce of this[_0xc5f2('0xe0')][_0xc5f2('0xb7')][_0xc5f2('0x63')])_0x4c916d[_0xc5f2('0x6b')](_0x5016ce);});}}function Q(_0x2f5726,_0x5e8fc7){return(_0x57c976,_0x3afff7,_0x539bcb)=>{if(!_0x539bcb['consumable'][_0xc5f2('0x5c')](_0x3afff7[_0xc5f2('0xf1')],_0x57c976['name']))return;const _0xa161e9=_0x3afff7['markerRange'][_0xc5f2('0xea')](),_0x3e5e1c=_0x3afff7['markerRange'][_0xc5f2('0x8')],_0x7ee0c=_0x2f5726[_0xc5f2('0xb7')][_0xc5f2('0x6')];let _0x62ab29=null,_0x34af77=null,_0x385962=!0x1,_0x1c419d=!0x1;for(const _0x55b820 of _0xa161e9){const _0xf5244c=_0x55b820[_0xc5f2('0xed')];_0x385962=_0x385962||_0x7ee0c[_0xc5f2('0x93')](_0xf5244c);const _0x2347e7=_0x539bcb[_0xc5f2('0x70')]['toViewElement'](_0xf5244c);if(_0x2347e7&&_0x2347e7[_0xc5f2('0xf2')]('addHighlight'))return;'elementEnd'==_0x55b820[_0xc5f2('0x3f')]&&(_0x7ee0c[_0xc5f2('0x10f')](_0xf5244c)&&!_0x7ee0c[_0xc5f2('0x53')](_0xf5244c)&&(_0xf5244c['nextSibling']||_0x3e5e1c[_0xc5f2('0xae')]?_0x62ab29&&_0x62ab29[_0xc5f2('0xaf')]==_0xf5244c||(_0x62ab29=_0xf5244c,_0x460a64(_0x55b820[_0xc5f2('0x9c')]),_0x1c419d=!0x0):_0x34af77=_0x34af77||_0x55b820['previousPosition']));}function _0x460a64(_0x3fd968){const _0x18dde5=_0x539bcb[_0xc5f2('0x70')][_0xc5f2('0x5f')](_0x3fd968),_0x48cef4=_0x539bcb[_0xc5f2('0x9a')][_0xc5f2('0xd7')](_0xc5f2('0x54'),{'class':_0xc5f2('0x67')+_0x5e8fc7});_0x539bcb[_0xc5f2('0x9a')][_0xc5f2('0xab')](_0x18dde5,_0x48cef4),_0x539bcb[_0xc5f2('0x70')]['bindElementToMarker'](_0x48cef4,_0x3afff7[_0xc5f2('0x1d')]);}_0x385962||_0x1c419d||!_0x34af77||_0x460a64(_0x34af77);};}export class RestoreRevisionCommand extends _0x4f7e50{constructor(_0x4f8d26){super(_0x4f8d26);const _0x3a5a9f=_0x4f8d26[_0xc5f2('0x35')][_0xc5f2('0x16')](y);this[_0xc5f2('0x95')](_0x4f8d26,_0xc5f2('0x65')),this[_0xc5f2('0x13')](_0xc5f2('0xd8')),this[_0xc5f2('0xc1')](_0x3a5a9f,'change:isReady',()=>this[_0xc5f2('0x61')]()),this[_0xc5f2('0xc1')](_0x3a5a9f,_0xc5f2('0xc9'),()=>this[_0xc5f2('0x61')]());}['execute'](){const _0x21f7f2=this[_0xc5f2('0xe0')],_0x2c7c9a=_0x21f7f2[_0xc5f2('0x35')][_0xc5f2('0x16')](y),_0x4c1957=_0x2c7c9a['isReady']?_0x2c7c9a[_0xc5f2('0x11')][_0xc5f2('0x91')]:null;_0x21f7f2[_0xc5f2('0x90')][_0xc5f2('0x16')](_0xc5f2('0x107'))['restoreRevisionCallback'](_0x4c1957);}[_0xc5f2('0x61')](){const {isReady:_0x18d788,isEnabled:_0x400054}=this[_0xc5f2('0xe0')]['plugins'][_0xc5f2('0x16')](y);this[_0xc5f2('0x109')]=_0x18d788&&_0x400054;}}export class ShowChangeCommand extends _0x4f7e50{constructor(_0x214b1c,{direction:_0x18ede4}){super(_0x214b1c);const _0x39e16f=_0x214b1c[_0xc5f2('0x35')][_0xc5f2('0x16')](y);this['stopListening'](_0x214b1c,'change:isReadOnly'),this[_0xc5f2('0x13')](_0xc5f2('0xd8')),this['_step']=_0xc5f2('0x3d')===_0x18ede4?0x1:-0x1,this[_0xc5f2('0xc1')](_0x39e16f,_0xc5f2('0xc7'),()=>this[_0xc5f2('0x61')]()),this[_0xc5f2('0xc1')](_0x39e16f,_0xc5f2('0xc9'),()=>this[_0xc5f2('0x61')]());}[_0xc5f2('0x45')](){const _0x1d884a=this[_0xc5f2('0xe0')],_0x3835a=_0x1d884a['plugins'][_0xc5f2('0x16')](y),{isNavigationMode:_0x3f2b88,currentChangeNumber:_0x4f34d4}=_0x3835a;_0x3835a[_0xc5f2('0xa3')]=_0x3f2b88?_0x3835a[_0xc5f2('0x11')]['changes']['get'](_0x4f34d4+this[_0xc5f2('0x56')]):_0x3835a[_0xc5f2('0x11')]['changes'][_0xc5f2('0xa5')];const _0x41ee14=_0x1d884a[_0xc5f2('0xb7')][_0xc5f2('0x63')]['get'](_0xc5f2('0x3')+_0x3835a['activeChange']['id']),_0x2d3b45=_0x11e2f9(_0x1d884a[_0xc5f2('0xbc')],_0x41ee14);_0x1c7f51({'target':_0x2d3b45,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x13a37d,currentChangeNumber:_0x52a9fc,numberOfChanges:_0x1e9acf,isReady:_0x577ca2,isEnabled:_0x4046fc}=this[_0xc5f2('0xe0')][_0xc5f2('0x35')]['get'](y);this[_0xc5f2('0x109')]=!!(_0x4046fc&&_0x577ca2&&_0x1e9acf)&&(!_0x13a37d||(0x1===this[_0xc5f2('0x56')]?_0x52a9fc<_0x1e9acf-0x1:_0x52a9fc>0x0));}}
|
|
23
|
+
const _0x2184=['vid_end','element:pre','unshift','enqueueChange','toData','getChild','pop','ck-revision-history-root--active','pluginName','data-change-id','_removeMissingPairs','createRevision','_balloon','-new','high','getItems','splice','_getViewForChange','low','isRemoveSuggestion','removeMarker:revision-suggestion','_changeView','insertion','isOnRoot','createUIElement','toViewElement','attributesBefore','repository','start','parent','shift','isSuggestion','_makeTape','reconvertMarker','nextPosition','type','comment','nextSibling','WidgetToolbarRepository','for','data-revision-','catch','selection','ck-suggestion-preview-marker-','_threeWayMerge','commands','isObject','revision-end','toViewPosition','enableReadOnlyMode','ck-suggestion-marker-','endIndex','ck-editor__editable__overlay','index','_joinTapes','from','_markInsertions','_makeModelFromViewString','find','findIndex','insertions','deletions','addClass','_refreshStartEndIndex','getRevisionData','_revisions','affectsData','insert','checkAttribute','isLimit','_step','_getRevisionsRange','first','merge','getAttribute','downcastDispatcher','change:isReady','level','modelRange','bind','addRoot','markerToData','_getViewObj','map','_fixObsoleteTags','changeId','keys','suggestion','isBefore','deletion','_makeModelFromTape','end','_update','restoreRevisionCallback','children','isEqual','ck-suggestion-preview-marker','removeClass','getCustomProperty','elementEnd','getRevision','rootName','viewItem','wrap','_changeIdToChange','ck-suggestion-marker','destroy','isAttached','isIncorrect','createPositionFromPath','currentChangeNumber','delete','flat','length','mousedown','includes','bindElementToMarker','consume','detachRoot','RevisionViewer','mouseover','oldRevisionId','markersEnd','activeView','test','authors','right','getRootNames','getIndex','_removeRevisionMarkers','changes','element','addHighlight','markersStart','loadRevisionData','suggestion:','_removeUnsupportedChanges','isContent','ck-revision-history-root-add','revisionHistoryLabel','name','isNavigationMode','split','stop','processor','view','newRevisionId','_data','ck-suggestion-marker--active','isReady','elementStart','side','conversion','revision-viewer','getWalker','editor','attributesAfter','_markMarkers','listenTo','sort','indexOf','done','removeAttribute','_findChangeIdFromDomTarget','nodeAfter','top','get','filter','target','has','revision','adapter','_cleanMarkers','attributes','diffData','remove','revision:','isAddSuggestion','addMarker:revision','document','addMarker:revision-suggestion:insertion','isEnabled','model','markerName','showNextChange','highest','_activeViewTarget','revision-suggestion','push','writer','dataDowncast','addRevision','showStack','plugins','revision-comment:','isRemoved','markerRange','then','_setChanges','execute','ck-revision-history-root-remove','add','span','upcast','activeChange','offsetSize','locale','markerToHighlight','requires','_cleanUp','change:numberOfChanges','isAtEnd','createRange','code','previousPosition','startsWith','vid_start','marked','toViewRange','_initInteractions','startIndex','toModel','useFillerType','diff','abs','next','data','text','isAfter','markerNameToElements','consumable','forEach','numberOfChanges','string','revisionHistoryAttachChange','slice','updatePosition','backward','_sortAndFilterDiffChanges','_appendChild','values','_getDiff','vid','distance','ck-suggestion-marker-split','createAttributeElement','mapper','attachChange','getAttributes','isBlock','_getChangeFromId','clear','_setConversion','domConverter','concat','revision-start','schema','pairId','getRoot','_setDistance','domEvent','addRevisionData','forward','init','userId','_markMismatchedRemovedTags','editing','editingDowncast','range','change','hasAttribute','getClientRects','change:isEnabled','refresh','markers','removeMarker','revision-suggestion:','item','isAdded','set','isCollapsed','resolve','_markSuggestions','isInline','setAttribute','dataToMarker','parse'];(function(_0x1c3d87,_0x21841c){const _0x18b2d6=function(_0x4800f2){while(--_0x4800f2){_0x1c3d87['push'](_0x1c3d87['shift']());}};_0x18b2d6(++_0x21841c);}(_0x2184,0xda));const _0x18b2=function(_0x1c3d87,_0x21841c){_0x1c3d87=_0x1c3d87-0x0;let _0x18b2d6=_0x2184[_0x1c3d87];return _0x18b2d6;};import{Plugin as _0x247ff8,Command as _0xcfbd88}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x413986}from'ckeditor5/src/utils';import{ContextualBalloon as _0x16c372}from'ckeditor5/src/ui';import{DocumentFragment as _0x39e403,Element as _0x44d97d,Text as _0x447422,ViewDocumentFragment as _0x130a33,ViewText as _0x5501ba,ViewElement as _0x1dc760,ViewContainerElement as _0x1cac1a,ViewAttributeElement as _0x30c093,ViewEmptyElement as _0x464de4,ViewRawElement as _0x405772,ViewUIElement as _0x26db04}from'ckeditor5/src/engine';import{Users as _0x435715,getMarkerDomElement as _0x4ee7ef}from'ckeditor5-collaboration/src/collaboration-core';import _0x1321c7 from'./ui/revisionviewer/changedetailsview';import _0x134d25 from'./revisionsrepository';import _0xc3ab36 from'./changeitem';import{default as _0x114f0b}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x164c40}from'lodash-es';const X={'c':_0x1cac1a,'a':_0x30c093,'e':_0x464de4,'r':_0x405772,'u':_0x26db04};export default class w extends _0x247ff8{static get[_0x18b2('0x4d')](){return _0x18b2('0xbc');}static get[_0x18b2('0x115')](){return[_0x435715,_0x16c372,_0x134d25];}constructor(_0x5abb17){super(_0x5abb17),this['repository']=this[_0x18b2('0xe0')][_0x18b2('0x106')]['get']('RevisionsRepository'),this[_0x18b2('0x3d')](_0x18b2('0x111'),null),this[_0x18b2('0x3d')]('activeView',null),this[_0x18b2('0xff')]=null,this[_0x18b2('0x3d')](_0x18b2('0x5'),null),this[_0x18b2('0x3d')](_0x18b2('0xda'),!0x1),this[_0x18b2('0x3d')](_0x18b2('0xfa'),!0x0),this['on'](_0x18b2('0x36'),(_0x4d53cc,_0x31ff57,_0x4e9afa)=>{this[_0x18b2('0x111')]=null,this['activeView']=null,this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0x33')](_0x3e2006=>{for(const _0x1ded21 of this['editor'][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')]['roots'])_0x4e9afa?_0x3e2006[_0x18b2('0xa6')]('ck-editor__editable__overlay',_0x1ded21):_0x3e2006[_0x18b2('0x83')](_0x18b2('0x79'),_0x1ded21);});}),this['bind'](_0x18b2('0xd2'))['to'](this,_0x18b2('0x111'),_0x358ca9=>null!==_0x358ca9),this[_0x18b2('0x94')](_0x18b2('0xb3'))['to'](this,_0x18b2('0xda'),this,_0x18b2('0x5'),this,_0x18b2('0x111'),(_0x407216,_0x2685f4,_0x22b303)=>_0x407216&&_0x22b303?_0x2685f4[_0x18b2('0xc7')][_0x18b2('0xc5')](_0x22b303):0x0),this[_0x18b2('0x94')](_0x18b2('0xe'))['to'](this,_0x18b2('0xda'),this,_0x18b2('0x5'),(_0x75199c,_0x2a206a)=>_0x75199c?_0x2a206a[_0x18b2('0xc7')][_0x18b2('0xb6')]:0x0),this[_0x18b2('0x5a')]=null,this[_0x18b2('0xad')]=new Map(),this[_0x18b2('0xf0')]=null,this['_balloon']=this[_0x18b2('0xe0')]['plugins'][_0x18b2('0xeb')](_0x16c372);}[_0x18b2('0x2d')](){const _0x35ea93=this['editor'],_0x5506b6=new ShowChangeCommand(_0x35ea93,{'direction':_0x18b2('0x13')}),_0x420caf=new ShowChangeCommand(_0x35ea93,{'direction':_0x18b2('0x2c')});(_0x35ea93[_0x18b2('0x72')][_0x18b2('0x10e')]('showPreviousChange',_0x5506b6),_0x35ea93['commands']['add'](_0x18b2('0xfd'),_0x420caf),_0x35ea93[_0x18b2('0x72')][_0x18b2('0x10e')]('restoreRevision',new RestoreRevisionCommand(_0x35ea93)),this['on'](_0x18b2('0x117'),()=>{_0x5506b6[_0x18b2('0x37')](),_0x420caf[_0x18b2('0x37')]();}),this[_0x18b2('0x22')](),this[_0x18b2('0x1')](),_0x35ea93[_0x18b2('0x76')](_0x18b2('0xde')),_0x35ea93[_0x18b2('0x106')][_0x18b2('0xee')](_0x18b2('0x6b')))&&_0x35ea93['plugins']['get'](_0x18b2('0x6b'))['forceDisabled'](_0x18b2('0xde'));}async[_0x18b2('0x85')](_0x1fcf08){await this[_0x18b2('0xcb')](_0x1fcf08);const _0x3b5ee3={};for(const _0x8533cd in _0x1fcf08[_0x18b2('0xf3')]){if(_0x1fcf08[_0x18b2('0xf3')][_0x8533cd][_0x18b2('0x1d')]&&!_0x1fcf08[_0x18b2('0xf3')][_0x8533cd][_0x18b2('0x1d')][_0x18b2('0xb0')])continue;const _0x5beb5e=this[_0x18b2('0xc6')](JSON[_0x18b2('0x44')](_0x1fcf08['diffData'][_0x8533cd][_0x18b2('0x81')])),_0x133a7e=this[_0x18b2('0xe0')][_0x18b2('0x30')]['view'][_0x18b2('0xf8')],_0x4819d8=new _0x130a33(_0x133a7e,_0x5beb5e['map'](_0x535c25=>this['_getViewObj'](_0x535c25)));this['editor'][_0x18b2('0x8')][_0x18b2('0xd5')]['useFillerType'](_0x18b2('0x11e')),_0x3b5ee3[_0x8533cd]=this['editor'][_0x18b2('0x8')][_0x18b2('0xd5')][_0x18b2('0x49')](_0x4819d8),this[_0x18b2('0xe0')][_0x18b2('0x8')][_0x18b2('0xd5')][_0x18b2('0x4')]('default');}return _0x3b5ee3;}async['getRevisionRootsAttributes'](_0x587be3){await this[_0x18b2('0xcb')](_0x587be3);const _0x4b43ae={};for(const _0x33c589 in _0x587be3[_0x18b2('0xf3')])_0x587be3[_0x18b2('0xf3')][_0x33c589]['attachChange']&&!_0x587be3[_0x18b2('0xf3')][_0x33c589]['attachChange']['isAttached']||(_0x4b43ae[_0x33c589]=_0x587be3[_0x18b2('0xf3')][_0x33c589][_0x18b2('0xe1')]||{});return _0x4b43ae;}[_0x18b2('0xc6')](_0x17ce37){return(_0x17ce37=_0x17ce37[_0x18b2('0xec')](_0x267e31=>!_0x267e31[_0x18b2('0xd1')]||_0x18b2('0x25')!==_0x267e31[_0x18b2('0xd1')]&&_0x18b2('0x74')!==_0x267e31[_0x18b2('0xd1')]))[_0x18b2('0xd')](_0x542e6b=>{_0x18b2('0xf')!=typeof _0x542e6b&&(_0x542e6b['children']=this[_0x18b2('0xc6')](_0x542e6b[_0x18b2('0xa3')]),_0x542e6b[_0x18b2('0xf2')]=_0x542e6b['attributes'][_0x18b2('0xec')](_0x795f58=>!_0x795f58[0x0]['startsWith'](_0x18b2('0x6d'))));}),_0x17ce37;}async['compare'](_0x6cc51d,_0x47f5a9,_0x717e70=!0x1){if(!this[_0x18b2('0xfa')])return;const _0x3f019b=this[_0x18b2('0x5')],_0x439556=this['repository'],_0x482e31=_0x18b2('0xf')==typeof _0x6cc51d?_0x439556[_0x18b2('0xa9')](_0x6cc51d):_0x6cc51d,_0x5f3438=_0x18b2('0xf')==typeof _0x47f5a9?_0x439556['getRevision'](_0x47f5a9):_0x47f5a9,_0x1c67bd=_0x482e31['id'],_0x3f4832=_0x5f3438?_0x5f3438['id']:null;if(!_0x717e70&&this[_0x18b2('0x5')]&&this['diff'][_0x18b2('0xd7')]===_0x1c67bd&&this['diff'][_0x18b2('0xbe')]===_0x3f4832)return Promise[_0x18b2('0x3f')]();this[_0x18b2('0xda')]=!0x1,this['activeView']=null,this[_0x18b2('0x111')]=null,this[_0x18b2('0x5')]=new _0x114f0b(_0x1c67bd,_0x3f4832);const _0x40c34=this[_0x18b2('0x8c')](_0x482e31,_0x5f3438,!0x0)[_0x18b2('0x98')](_0x2c3291=>this[_0x18b2('0xcb')](_0x2c3291));return _0x40c34[_0x18b2('0x101')](new Promise(_0x58c61=>{setTimeout(_0x58c61,0x14);})),Promise['all'](_0x40c34)[_0x18b2('0x10a')](()=>{if(!this[_0x18b2('0xfa')])return;this[_0x18b2('0x116')]();const _0xac095c=this['_getDiff'](_0x1c67bd,_0x3f4832);for(const _0x7b87e4 of _0xac095c[_0x18b2('0xc7')])this[_0x18b2('0xad')][_0x18b2('0x3d')](_0x7b87e4['id'],_0x7b87e4);this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x48')]({'isUndoable':!0x1},_0x5b22fa=>{for(const _0x20bb75 of this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0xc4')]())_0x5b22fa[_0x18b2('0xbb')](_0x20bb75);for(const _0x259972 of Object['keys'](_0xac095c[_0x18b2('0xfb')])){const _0x3045dc=_0x5b22fa[_0x18b2('0x95')](_0x259972);for(const _0x2d9ae0 of Object[_0x18b2('0x9b')](_0xac095c[_0x18b2('0xf2')][_0x259972]))_0x5b22fa[_0x18b2('0x42')](_0x2d9ae0,_0xac095c[_0x18b2('0xf2')][_0x259972][_0x2d9ae0],_0x3045dc);_0x5b22fa['insert'](_0xac095c['model'][_0x259972],_0x3045dc,0x0);}}),this[_0x18b2('0x5')][_0x18b2('0x10b')](this[_0x18b2('0x14')](_0xac095c[_0x18b2('0xc7')])),this[_0x18b2('0xda')]=!0x0;})[_0x18b2('0x6e')](_0x17991b=>{console['error'](_0x17991b),this[_0x18b2('0x116')](),_0x3f019b&&(this['diff']=_0x3f019b),this['isReady']=!0x0;});}[_0x18b2('0x2b')](_0x1ff623,_0x2c320e){const _0x2c6c8=this[_0x18b2('0x60')][_0x18b2('0x50')](_0x1ff623);return _0x2c6c8['on'](_0x18b2('0xa1'),(_0x279ebf,_0x2580cb,_0x52a367)=>_0x2c320e(_0x2580cb,_0x52a367,_0x2c6c8)),this[_0x18b2('0x60')][_0x18b2('0x104')](_0x2c6c8),_0x2c6c8;}[_0x18b2('0xcb')](_0x38e750){if(!_0x38e750||_0x38e750[_0x18b2('0xf3')])return Promise[_0x18b2('0x3f')]();{const _0x812de1=this[_0x18b2('0xe0')]['config']['get']('collaboration.channelId');return this[_0x18b2('0xf0')][_0x18b2('0xa9')]({'channelId':_0x812de1,'revisionId':_0x38e750['id']})[_0x18b2('0x10a')](_0x14b72e=>{_0x38e750[_0x18b2('0xa1')]({'diffData':_0x14b72e['diffData']},!0x0);});}}['_cleanUp'](){this[_0x18b2('0x111')]=null,this['_cleanMarkers'](),this[_0x18b2('0x5a')]&&this[_0x18b2('0x5a')][_0x18b2('0xaf')](),this[_0x18b2('0x5a')]=null,this['_changeIdToChange'][_0x18b2('0x21')](),this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x48')]({'isUndoable':!0x1},_0x4324d8=>{for(const _0x3d83ab of this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0xc4')]())_0x4324d8[_0x18b2('0xbb')](_0x3d83ab);});}['_sortAndFilterDiffChanges'](_0x4e65b2){const _0x3056a4=[],_0x1ba096=new Map();for(const _0x5c226f of this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')][_0x18b2('0xc4')]()){const _0x449655=this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')]['getDomRoot'](_0x5c226f);if(!_0x449655)continue;const _0x3ddad1=_0x449655[_0x18b2('0x35')]()[_0x18b2('0x3b')](0x0);_0x3ddad1&&(_0x3056a4[_0x18b2('0x101')](_0x5c226f),_0x1ba096['set'](_0x5c226f,_0x3ddad1));}return _0x3056a4[_0x18b2('0xe4')]((_0x5ccb39,_0x4cd597)=>{const _0x25d9fa=_0x1ba096[_0x18b2('0xeb')](_0x5ccb39),_0xa26889=_0x1ba096[_0x18b2('0xeb')](_0x4cd597);return _0x25d9fa['y']-_0xa26889['y']||_0x25d9fa['x']-_0xa26889['x'];}),(_0x4e65b2=_0x4e65b2[_0x18b2('0xec')](_0x3b55b5=>_0x3056a4[_0x18b2('0xb8')](_0x3b55b5['rootName'])))[_0x18b2('0xe4')]((_0x39b125,_0x157f3f)=>_0x3056a4['indexOf'](_0x39b125[_0x18b2('0xaa')])-_0x3056a4[_0x18b2('0xe5')](_0x157f3f[_0x18b2('0xaa')])),_0x4e65b2;}['_makeTape'](_0x1406bc){const _0x3064a5=Array[_0x18b2('0x7c')](_0x1406bc[_0x18b2('0x38')])[_0x18b2('0xec')](([_0xf68f2f,_0x38483f])=>_0xf68f2f[_0x18b2('0x11c')]('revision:')&&!_0x38483f['isCollapsed']),_0x334a5f=Array['from'](this[_0x18b2('0xe0')][_0x18b2('0xfb')]['createRangeIn'](_0x1406bc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3064a5['length'])for(const _0x27f9f6 of _0x334a5f){const [_0x12700f,_0xbc904b]=_0x3064a5[0x0],[,_0x23f002,_0x233cd6]=_0x12700f[_0x18b2('0xd3')](':');if(_0xbc904b[_0x18b2('0xa0')][_0x18b2('0xa4')](_0x27f9f6['nextPosition'])&&_0x3064a5[_0x18b2('0x63')](),(_0x27f9f6['previousPosition']['isEqual'](_0xbc904b[_0x18b2('0x61')])||_0x27f9f6[_0x18b2('0x11b')][_0x18b2('0xa')](_0xbc904b[_0x18b2('0x61')]))&&(_0x18b2('0x5b')==_0x23f002?_0x27f9f6['isAdded']={'userId':_0x233cd6}:'deletion'==_0x23f002&&(_0x27f9f6[_0x18b2('0x108')]={'userId':_0x233cd6})),0x0==_0x3064a5[_0x18b2('0xb6')])break;}return _0x334a5f;}[_0x18b2('0x84')](_0x2bf969){const _0xa24a5c=new Map();for(let _0x2ab168=0x0;_0x2ab168<_0x2bf969['length'];_0x2ab168++)_0x18b2('0x9')===_0x2bf969[_0x2ab168][_0x18b2('0x68')]?(_0x2bf969[_0x2ab168]['item'][_0x18b2('0x2')]=_0x2ab168,_0x2bf969[_0x2ab168]['item'][_0x18b2('0x78')]=_0x2ab168):(_0x18b2('0xdb')===_0x2bf969[_0x2ab168]['type']?_0x2bf969[_0x2ab168][_0x18b2('0x3b')]['startIndex']=_0x2ab168:_0x18b2('0xa8')===_0x2bf969[_0x2ab168][_0x18b2('0x68')]&&(_0x2bf969[_0x2ab168][_0x18b2('0x3b')][_0x18b2('0x78')]=_0x2ab168),_0xa24a5c[_0x18b2('0x3d')](_0x2bf969[_0x2ab168]['id'],_0x2ab168));for(const _0x24b5dc of _0xa24a5c[_0x18b2('0x16')]())'elementStart'===_0x2bf969[_0x24b5dc][_0x18b2('0x68')]?_0x2bf969[_0x24b5dc][_0x18b2('0x3b')][_0x18b2('0x78')]=_0xa24a5c[_0x18b2('0xeb')](_0x2bf969[_0x24b5dc][_0x18b2('0x27')]):_0x18b2('0xa8')===_0x2bf969[_0x24b5dc]['type']&&(_0x2bf969[_0x24b5dc][_0x18b2('0x3b')][_0x18b2('0x2')]=_0xa24a5c[_0x18b2('0xeb')](_0x2bf969[_0x24b5dc]['pairId']));}['_processTape'](_0x5df02a){for(let _0x3ad00a=0x0;_0x3ad00a<_0x5df02a[_0x18b2('0xb6')];_0x3ad00a++){if('elementStart'===_0x5df02a[_0x3ad00a][_0x18b2('0x68')])_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')]=_0x3ad00a;else{if('elementEnd'===_0x5df02a[_0x3ad00a][_0x18b2('0x68')]){_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x78')]=_0x3ad00a;const _0xc1f8bc=_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')];_0x5df02a[_0xc1f8bc][_0x18b2('0x27')]=_0x5df02a[_0x3ad00a]['id'],_0x5df02a[_0x3ad00a]['pairId']=_0x5df02a[_0xc1f8bc]['id'];}else _0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')]=_0x3ad00a,_0x5df02a[_0x3ad00a][_0x18b2('0x3b')][_0x18b2('0x78')]=_0x3ad00a,_0x5df02a[_0x3ad00a][_0x18b2('0x27')]=null;}_0x5df02a[_0x3ad00a][_0x18b2('0xca')]||(_0x5df02a[_0x3ad00a]['markersStart']=[],_0x5df02a[_0x3ad00a][_0x18b2('0xbf')]=[]);}}['_markInsertions'](_0x1bfb6b,_0x51a21f){const _0xc9aad6=_0x1bfb6b[_0x18b2('0xec')](_0x30f67f=>!_0x30f67f[_0x18b2('0x3c')]);for(let _0x52afd9=0x0;_0x52afd9<_0x51a21f[_0x18b2('0xb6')];_0x52afd9++)_0x51a21f[_0x52afd9][_0x18b2('0x3c')]&&(_0xc9aad6[_0x52afd9][_0x18b2('0x3c')]=_0x51a21f[_0x52afd9][_0x18b2('0x3c')]);}[_0x18b2('0x7e')](_0x57022c){const _0x2b580a=JSON[_0x18b2('0x44')](_0x57022c),_0x41802d=this['editor']['editing'][_0x18b2('0xd6')]['document'],_0x138099=new _0x130a33(_0x41802d,_0x2b580a[_0x18b2('0x98')](_0x5d2067=>this[_0x18b2('0x97')](_0x5d2067)));return this[_0x18b2('0xe0')][_0x18b2('0x8')][_0x18b2('0x3')](_0x138099);}[_0x18b2('0x97')](_0x5a45e2){const _0x5f5d04=this[_0x18b2('0xe0')]['editing'][_0x18b2('0xd6')][_0x18b2('0xf8')];if('string'==typeof _0x5a45e2)return new _0x5501ba(_0x5f5d04,_0x5a45e2);{const _0x5e0dbe=_0x5a45e2['children'][_0x18b2('0x98')](_0x50ca4d=>this[_0x18b2('0x97')](_0x50ca4d));return new(X[_0x5a45e2[(_0x18b2('0x68'))]]||_0x1dc760)(_0x5f5d04,_0x5a45e2[_0x18b2('0xd1')],_0x5a45e2[_0x18b2('0xf2')],_0x5e0dbe);}}[_0x18b2('0x17')](_0x250cc2,_0x596dae=null){const _0x487661=this[_0x18b2('0x60')]['getRevision'](_0x250cc2),_0x14c6f1=_0x596dae?this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x596dae):null,_0x398d46=this[_0x18b2('0x8c')](_0x487661,_0x14c6f1),_0x3d1c97=_0x398d46[_0x398d46[_0x18b2('0xb6')]-0x1],_0x161b3b=new Map(),_0x4205b2={'model':{},'attributes':{},'changes':[]},_0x33753a=new Set(),_0x3bc56a=new Map();for(let _0x3a5620=_0x398d46[_0x18b2('0xb6')]-0x1;_0x3a5620>=0x0;_0x3a5620--){const _0x3932f7=_0x398d46[_0x3a5620];for(const _0x3b8910 of Object[_0x18b2('0x9b')](_0x3932f7[_0x18b2('0xf3')]))if(_0x3932f7['diffData'][_0x3b8910][_0x18b2('0x1d')]){const _0x1fd60c=_0x3932f7['diffData'][_0x3b8910]['attachChange'];_0x1fd60c['isAttached']?(_0x33753a[_0x18b2('0x10e')](_0x3b8910),_0x3bc56a[_0x18b2('0xee')](_0x3b8910)&&_0x3bc56a['get'](_0x3b8910)['userId']==_0x1fd60c['userId']?_0x3bc56a[_0x18b2('0xb4')](_0x3b8910):_0x3bc56a['set'](_0x3b8910,_0x1fd60c)):_0x3bc56a[_0x18b2('0xee')](_0x3b8910)?(_0x33753a['delete'](_0x3b8910),_0x3bc56a[_0x18b2('0xb4')](_0x3b8910)):(_0x33753a[_0x18b2('0x10e')](_0x3b8910),_0x3bc56a[_0x18b2('0x3d')](_0x3b8910,_0x1fd60c));}else _0x33753a[_0x18b2('0x10e')](_0x3b8910);}for(const _0x5f3124 of _0x33753a){const _0x1b45cb=_0x3bc56a[_0x18b2('0xee')](_0x5f3124)&&!_0x3bc56a[_0x18b2('0xeb')](_0x5f3124)[_0x18b2('0xb0')];let _0x44540d=_0x1b45cb?_0x398d46[_0x18b2('0xb6')]-0x1:0x0;const _0xbedbbc=_0x1b45cb?-0x1:0x1;for(;_0x398d46[_0x44540d];){const _0x39019b=_0x398d46[_0x44540d];if(_0x39019b['diffData'][_0x5f3124]){const _0x3e3fb8=_0x1b45cb?_0x39019b[_0x18b2('0xf3')][_0x5f3124][_0x18b2('0x5f')]:_0x39019b[_0x18b2('0xf3')][_0x5f3124]['attributesAfter'];_0x4205b2['attributes'][_0x5f3124]=_0x3e3fb8?_0x164c40(_0x3e3fb8):{};break;}_0x44540d+=_0xbedbbc;}}for(const _0x5014d4 of _0x398d46){_0x5014d4[_0x18b2('0xfb')]={};for(const _0x1b0638 of _0x5014d4[_0x18b2('0xc2')])_0x161b3b[_0x18b2('0x3d')](_0x1b0638['id'],_0x1b0638);for(const _0x52eda7 of _0x33753a){const _0x577d4b=_0x5014d4[_0x18b2('0xf3')][_0x52eda7]?_0x5014d4[_0x18b2('0xf3')][_0x52eda7]['insertions']:'[]',_0x138706=_0x5014d4[_0x18b2('0xf3')][_0x52eda7]?_0x5014d4[_0x18b2('0xf3')][_0x52eda7][_0x18b2('0x82')]:'[]';_0x5014d4[_0x18b2('0xfb')][_0x52eda7]={'insertions':this[_0x18b2('0x7e')](_0x577d4b),'deletions':this[_0x18b2('0x7e')](_0x138706)};}}for(const _0x2feeb7 of _0x33753a){let _0x198828=null,_0x5d2e4e=0x0;const _0x130c78=new Map(Array[_0x18b2('0x7c')](_0x487661[_0x18b2('0xfb')][_0x2feeb7]['insertions'][_0x18b2('0x38')])[_0x18b2('0xec')](([_0x1e259b])=>!_0x1e259b[_0x18b2('0x11c')]('revision:')));let _0x3c4135=0x0;for(const _0x211265 of _0x398d46){const _0x51d359=this[_0x18b2('0x65')](_0x211265['model'][_0x2feeb7][_0x18b2('0x81')]);_0x211265==_0x487661?(_0x198828=_0x51d359,_0x5d2e4e=_0x198828[_0x18b2('0xb6')],_0x198828[_0x18b2('0xd')](_0x5ce568=>{_0x5ce568['id']=_0x3c4135++;}),this['_processTape'](_0x198828)):this[_0x18b2('0x7d')](_0x198828,_0x51d359);const _0x5a43ac=_0x198828[_0x18b2('0xec')](_0x1296bc=>!_0x1296bc[_0x18b2('0x3c')])[_0x18b2('0x98')](_0xe692f6=>_0xe692f6['id']);let _0xd27daa=0x0;const _0x552260=this[_0x18b2('0x65')](_0x211265[_0x18b2('0xfb')][_0x2feeb7][_0x18b2('0x82')]);_0x552260[_0x18b2('0xd')](_0x246127=>{_0x246127['isRemoved']?_0x246127['id']=_0x5d2e4e++:_0x246127['id']=_0x5a43ac[_0xd27daa++];}),this['_processTape'](_0x552260),this[_0x18b2('0x29')](_0x198828,'isAdded'),this[_0x18b2('0x29')](_0x552260,'isRemoved'),_0x211265==_0x487661&&this[_0x18b2('0xe2')](_0x198828,_0x130c78),_0x198828=this[_0x18b2('0x7b')](_0x198828,_0x552260),this[_0x18b2('0x84')](_0x198828),this[_0x18b2('0x29')](_0x198828,_0x18b2('0x108'));}_0x198828=_0x198828[_0x18b2('0xec')](_0x2f73b7=>!(_0x2f73b7[_0x18b2('0x3c')]&&_0x2f73b7[_0x18b2('0x108')]));const _0x468292=new Map(_0x3d1c97[_0x18b2('0xfb')][_0x2feeb7][_0x18b2('0x82')][_0x18b2('0x38')]),_0x2cb73c=new Set(_0x130c78[_0x18b2('0x9b')]());for(const _0x46dc2d of _0x468292[_0x18b2('0x9b')]())_0x2cb73c[_0x18b2('0xb4')](_0x46dc2d);this[_0x18b2('0x40')](_0x198828,_0x2cb73c),this[_0x18b2('0x99')](_0x198828),_0x198828=this[_0x18b2('0x4f')](_0x198828),_0x198828=this['_markMismatchedRemovedTags'](_0x198828),_0x198828=this[_0x18b2('0xcd')](_0x198828);const {root:_0x5228df,changes:_0x35a737}=this[_0x18b2('0x9f')](_0x198828,_0x161b3b,_0x2feeb7);_0x4205b2[_0x18b2('0xfb')][_0x2feeb7]=_0x5228df;const _0x1e8381=_0x3bc56a['get'](_0x2feeb7);if(_0x1e8381){const _0x526d42=_0x161b3b[_0x18b2('0xeb')](_0x1e8381[_0x18b2('0x2e')]),_0x564dab=new _0xc3ab36({'author':_0x526d42,'type':_0x1e8381[_0x18b2('0xb0')]?'add':_0x18b2('0xf4'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2feeb7});_0x35a737[_0x18b2('0x47')](_0x564dab),_0x4205b2[_0x18b2('0xf2')][_0x2feeb7][_0x18b2('0x10')]=_0x564dab['id'];}_0x4205b2['changes']=_0x4205b2[_0x18b2('0xc7')][_0x18b2('0x24')](_0x35a737);}return _0x4205b2;}[_0x18b2('0xe2')](_0x69d7bb,_0x431e3d){for(let _0x4f5caf=0x0;_0x4f5caf<_0x69d7bb[_0x18b2('0xb6')];_0x4f5caf++)for(const [_0x2f83ff,_0x4be8cc]of _0x431e3d)_0x4be8cc['start']['isEqual'](_0x69d7bb[_0x4f5caf][_0x18b2('0x11b')])&&_0x69d7bb[_0x4f5caf][_0x18b2('0xca')][_0x18b2('0x101')](_0x2f83ff),_0x4be8cc[_0x18b2('0xa0')][_0x18b2('0xa4')](_0x69d7bb[_0x4f5caf][_0x18b2('0x67')])&&_0x69d7bb[_0x4f5caf][_0x18b2('0xbf')][_0x18b2('0x101')](_0x2f83ff);}[_0x18b2('0x7b')](_0x522039,_0x596312){let _0x1fa674=[],_0x23fb86=0x0,_0x442dac=0x0;for(;_0x23fb86<_0x522039[_0x18b2('0xb6')]||_0x442dac<_0x596312[_0x18b2('0xb6')];){const _0x370a07=_0x522039[_0x23fb86]||{},_0x130b57=_0x596312[_0x442dac]||{};if(_0x370a07['id']==_0x130b57['id'])_0x23fb86++,_0x442dac++,_0x1fa674[_0x18b2('0x101')](_0x370a07);else{if(_0x130b57[_0x18b2('0x108')]&&_0x370a07[_0x18b2('0x3c')]){const {commonTape:_0x3a3638,iEnd:_0x166ea8,jEnd:_0x21eb9b}=this[_0x18b2('0x71')](_0x522039,_0x23fb86,_0x596312,_0x442dac);_0x1fa674=_0x1fa674[_0x18b2('0x24')](_0x3a3638),_0x23fb86=_0x166ea8,_0x442dac=_0x21eb9b;}else _0x130b57[_0x18b2('0x108')]?(_0x442dac++,_0x1fa674[_0x18b2('0x101')](_0x130b57)):(_0x23fb86++,_0x1fa674['push'](_0x370a07));}}return _0x1fa674;}[_0x18b2('0x40')](_0x5b42c1,_0x3934f9){const _0x3814c1=[];for(let _0x397ed2=0x0;_0x397ed2<_0x5b42c1[_0x18b2('0xb6')];_0x397ed2++){for(let _0x11da9e=0x0;_0x11da9e<_0x5b42c1[_0x397ed2]['markersStart']['length'];_0x11da9e++){const _0x158fb4=_0x5b42c1[_0x397ed2][_0x18b2('0xca')][_0x11da9e];if(!_0x3934f9[_0x18b2('0xee')](_0x158fb4))continue;const {group:_0x1a9938,type:_0x29a7fa,authorId:_0x20d94f}=_0x155d79(_0x158fb4);_0x18b2('0x100')!=_0x1a9938||_0x18b2('0x5b')!=_0x29a7fa&&'deletion'!=_0x29a7fa||(_0x3814c1[_0x18b2('0x47')]({'type':_0x29a7fa,'name':_0x158fb4,'userId':_0x20d94f}),_0x5b42c1[_0x397ed2]['markersStart'][_0x18b2('0x55')](_0x11da9e,0x1),_0x11da9e--);}_0x491ed6(_0x5b42c1[_0x397ed2]);for(let _0x3ae9b1=0x0;_0x3ae9b1<_0x5b42c1[_0x397ed2]['markersEnd']['length'];_0x3ae9b1++){const _0x215847=_0x5b42c1[_0x397ed2]['markersEnd'][_0x3ae9b1];if(!_0x3934f9[_0x18b2('0xee')](_0x215847))continue;const {group:_0x5a77ca,type:_0x252338}=_0x155d79(_0x215847);if(_0x18b2('0x100')!=_0x5a77ca||'insertion'!=_0x252338&&_0x18b2('0x9e')!=_0x252338)continue;_0x5b42c1[_0x397ed2][_0x18b2('0xbf')][_0x18b2('0x55')](_0x3ae9b1,0x1),_0x3ae9b1--;const _0x8d8101=_0x3814c1[_0x18b2('0x80')](_0x59aefb=>_0x59aefb[_0x18b2('0xd1')]==_0x215847);_0x8d8101>-0x1&&_0x3814c1['splice'](_0x8d8101,0x1);}}function _0x155d79(_0x43029d){const _0xb3c4d0=_0x43029d[_0x18b2('0xd3')](':');return{'group':_0xb3c4d0[0x0],'type':_0xb3c4d0[0x1],'subType':_0xb3c4d0['length']>=0x5?_0xb3c4d0[0x2]:null,'id':_0xb3c4d0['length']<0x5?_0xb3c4d0[0x2]:_0xb3c4d0[0x3],'authorId':_0xb3c4d0[_0x18b2('0xb6')]<0x5?_0xb3c4d0[0x3]:_0xb3c4d0[0x4],'markerCount':0x6==_0xb3c4d0[_0x18b2('0xb6')]?_0xb3c4d0[0x5]:null};}function _0x491ed6(_0xbfa69b){for(let _0x5dc38c=0x0;_0x5dc38c<_0x3814c1[_0x18b2('0xb6')];_0x5dc38c++){if(_0xbfa69b[_0x18b2('0x3c')]&&_0x18b2('0x5b')==_0x3814c1[_0x5dc38c][_0x18b2('0x68')])return _0xbfa69b[_0x18b2('0xf6')]=_0x3814c1[_0x5dc38c],void delete _0xbfa69b['isAdded'];if(!_0xbfa69b[_0x18b2('0x3c')]&&!_0xbfa69b[_0x18b2('0x108')]&&_0x18b2('0x9e')==_0x3814c1[_0x5dc38c][_0x18b2('0x68')])return void(_0xbfa69b[_0x18b2('0x58')]=_0x3814c1[_0x5dc38c]);}}}[_0x18b2('0x29')](_0x4914c6,_0x3c4cfb){let _0x382998=0x0,_0x29ae94=!0x1;const _0x29a871=new Map();for(const _0x3275c4 of _0x4914c6)_0x3275c4[_0x3c4cfb]?_0x29ae94&&(_0x382998++,_0x29ae94=!0x1):(_0x382998++,_0x29ae94=!0x0),_0x29a871[_0x18b2('0x3d')](_0x3275c4['id'],_0x382998);for(let _0x20a965=0x0;_0x20a965<_0x4914c6[_0x18b2('0xb6')];_0x20a965++){if(_0x18b2('0x108')==_0x3c4cfb&&_0x4914c6[_0x20a965][_0x18b2('0x3c')]||_0x18b2('0x3c')==_0x3c4cfb&&_0x4914c6[_0x20a965][_0x18b2('0x108')])continue;if(_0x18b2('0x9')==_0x4914c6[_0x20a965][_0x18b2('0x68')]){_0x4914c6[_0x20a965][_0x18b2('0x19')]=0x0;continue;}const _0x52d0c2=_0x29a871[_0x18b2('0xeb')](_0x4914c6[_0x20a965][_0x18b2('0x27')]),_0x392d7a=_0x29a871['get'](_0x4914c6[_0x20a965]['id']);_0x4914c6[_0x20a965]['distance']=_0x52d0c2-_0x392d7a;}}[_0x18b2('0x8c')](_0x8c5afa,_0x3d44ab,_0x47dd6b=!0x1){const _0x511cf1=[];let _0x57d545=this[_0x18b2('0x60')]['getIndex'](_0x8c5afa),_0x38db08=this[_0x18b2('0x60')][_0x18b2('0xc5')](_0x3d44ab);for(-0x1==_0x38db08&&(_0x38db08=this[_0x18b2('0x60')][_0x18b2('0x86')]['length'],_0x47dd6b=!0x1);_0x57d545<_0x38db08;)_0x511cf1[_0x18b2('0x101')](this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x57d545)),_0x57d545++;return _0x47dd6b&&_0x511cf1['push'](this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x57d545)),_0x511cf1;}['_threeWayMerge'](_0x3173c8,_0xbf8506,_0x15b56e,_0x17d54d){const _0x384c37=this['editor']['model'][_0x18b2('0x26')];let _0x3fcaed=_0xbf8506;for(;_0x3173c8[_0x3fcaed]&&_0x3173c8[_0x3fcaed]['isAdded'];)_0x3fcaed++;let _0x44b0eb=_0x17d54d;for(;_0x15b56e[_0x44b0eb]&&_0x15b56e[_0x44b0eb][_0x18b2('0x108')];)_0x44b0eb++;_0x55e0cf(_0x3173c8,_0xbf8506,_0x3fcaed),_0x55e0cf(_0x15b56e,_0x17d54d,_0x44b0eb);const _0x3b5f91=_0x15b56e[_0x18b2('0x11')](_0x17d54d,_0x44b0eb)['concat'](_0x3173c8[_0x18b2('0x11')](_0xbf8506,_0x3fcaed));return _0x3b5f91[_0x18b2('0xe4')]((_0x58bbe7,_0x5d340d)=>_0x58bbe7[_0x18b2('0xdc')]!=_0x5d340d[_0x18b2('0xdc')]?_0x58bbe7[_0x18b2('0xdc')]-_0x5d340d['side']:_0x58bbe7['level']!=_0x5d340d[_0x18b2('0x92')]?_0x58bbe7['level']-_0x5d340d['level']:_0x58bbe7[_0x18b2('0x19')]!=_0x5d340d['distance']?_0x5d340d['distance']-_0x58bbe7[_0x18b2('0x19')]:!!_0x58bbe7[_0x18b2('0x3c')]!=!!_0x5d340d['isAdded']?-0x1==_0x58bbe7[_0x18b2('0xdc')]||0x0==_0x58bbe7[_0x18b2('0xdc')]?_0x58bbe7['isAdded']?-0x1:0x1:_0x58bbe7[_0x18b2('0x3c')]?0x1:-0x1:_0x58bbe7[_0x18b2('0x7a')]-_0x5d340d[_0x18b2('0x7a')]),{'commonTape':_0x3b5f91,'iEnd':_0x3fcaed,'jEnd':_0x44b0eb};function _0x55e0cf(_0x229a2d,_0x2e7cc3,_0x4e644a){let _0x5ecc66=-0x1,_0x5a3758=Number['POSITIVE_INFINITY'],_0x34fd6c=!0x0;for(let _0x22e974=_0x2e7cc3;_0x22e974<_0x4e644a;_0x22e974++)if(_0x384c37[_0x18b2('0x41')](_0x229a2d[_0x22e974][_0x18b2('0x3b')])||(_0x34fd6c=!0x1),_0x229a2d[_0x22e974][_0x18b2('0x3b')][_0x18b2('0x2')]<_0x2e7cc3&&(_0x5ecc66=_0x22e974),_0x229a2d[_0x22e974][_0x18b2('0x3b')]['endIndex']>=_0x4e644a){_0x5a3758=_0x22e974;break;}_0x34fd6c&&(_0x5ecc66=_0x4e644a-0x1);for(let _0x44d713=_0x2e7cc3;_0x44d713<_0x4e644a;_0x44d713++)_0x229a2d[_0x44d713][_0x18b2('0xdc')]=_0x44d713<=_0x5ecc66?-0x1:_0x44d713<_0x5a3758?0x0:0x1,_0x229a2d[_0x44d713][_0x18b2('0x7a')]=_0x44d713;let _0x2a055e=0x0;for(let _0x1c8b48=_0x2e7cc3;_0x1c8b48<=_0x5ecc66;_0x1c8b48++)0x0==_0x229a2d[_0x1c8b48][_0x18b2('0x19')]?_0x229a2d[_0x1c8b48][_0x18b2('0x92')]=_0x2a055e:(_0x2a055e++,_0x229a2d[_0x1c8b48][_0x18b2('0x92')]=_0x2a055e,_0x2a055e++);for(let _0x35cec8=_0x2e7cc3;_0x35cec8<_0x4e644a;_0x35cec8++)0x0==_0x229a2d[_0x35cec8]['side']&&(_0x229a2d[_0x35cec8][_0x18b2('0x92')]=_0x2a055e);_0x2a055e=0x0;for(let _0x3fd5f1=_0x4e644a-0x1;_0x3fd5f1>=_0x5a3758;_0x3fd5f1--)0x0==_0x229a2d[_0x3fd5f1][_0x18b2('0x19')]?_0x229a2d[_0x3fd5f1][_0x18b2('0x92')]=_0x2a055e:(_0x2a055e--,_0x229a2d[_0x3fd5f1][_0x18b2('0x92')]=_0x2a055e,_0x2a055e--);}}[_0x18b2('0x99')](_0xd40f82){const _0x44b608=new Map(),_0x46b20d=this['editor'][_0x18b2('0xfb')]['schema'];for(let _0x42b68d=0x1;_0x42b68d<_0xd40f82[_0x18b2('0xb6')];_0x42b68d++){let _0x294442,_0x175e64,_0x4cfeee;const _0x253def=_0xd40f82[_0x42b68d],_0x412c5e=_0xd40f82[_0x42b68d-0x1];if(_0x18b2('0x9')==_0x253def[_0x18b2('0x68')])continue;if(_0x253def[_0x18b2('0x68')]!=_0x412c5e[_0x18b2('0x68')])continue;if(!_0x46b20d[_0x18b2('0x1f')](_0x412c5e['item'])||_0x46b20d[_0x18b2('0x8a')](_0x412c5e['item']))continue;if(!_0x46b20d[_0x18b2('0x1f')](_0x253def[_0x18b2('0x3b')])||_0x46b20d[_0x18b2('0x8a')](_0x253def['item']))continue;if((_0xd40f82[_0x42b68d][_0x18b2('0x3c')]||_0xd40f82[_0x42b68d][_0x18b2('0xf6')])&&_0xd40f82[_0x42b68d-0x1][_0x18b2('0x108')])_0x294442=_0xd40f82[_0x42b68d],_0x175e64=_0xd40f82[_0x42b68d-0x1],_0x4cfeee=_0x42b68d-0x1;else{if(!_0xd40f82[_0x42b68d][_0x18b2('0x108')]||!_0xd40f82[_0x42b68d-0x1][_0x18b2('0x3c')]&&!_0xd40f82[_0x42b68d-0x1][_0x18b2('0xf6')])continue;_0x294442=_0xd40f82[_0x42b68d-0x1],_0x175e64=_0xd40f82[_0x42b68d],_0x4cfeee=_0x42b68d;}const _0x40065c=_0x294442[_0x18b2('0x92')]==_0x175e64[_0x18b2('0x92')],_0x44696c=Math[_0x18b2('0x6')](_0x294442[_0x18b2('0x92')])<Math[_0x18b2('0x6')](_0x175e64[_0x18b2('0x92')])&&0x0==_0x175e64[_0x18b2('0x19')];(_0x40065c||_0x44696c)&&(_0x44b608[_0x18b2('0x3d')](_0x175e64['id'],_0x294442['id']),_0xd40f82[_0x18b2('0x55')](_0x4cfeee,0x1),_0x42b68d--,_0x294442[_0x18b2('0x3c')]=!0x1);}for(let _0x47ea93=0x0;_0x47ea93<_0xd40f82['length'];_0x47ea93++)_0x44b608['has'](_0xd40f82[_0x47ea93]['pairId'])&&(_0xd40f82[_0x47ea93][_0x18b2('0x27')]=_0x44b608[_0x18b2('0xeb')](_0xd40f82[_0x47ea93][_0x18b2('0x27')]));}[_0x18b2('0x4f')](_0x3e0521){const _0x2aea1f=new Set(_0x3e0521[_0x18b2('0x98')](_0x346713=>_0x346713['id']));for(let _0x423c74=0x0;_0x423c74<_0x3e0521[_0x18b2('0xb6')];_0x423c74++)_0x2aea1f['has'](_0x3e0521[_0x423c74]['pairId'])||0x0==_0x3e0521[_0x423c74][_0x18b2('0x19')]||(_0x3e0521[_0x423c74][_0x18b2('0xb1')]=!0x0);return _0x3e0521[_0x18b2('0xec')](_0x1bc8d4=>!_0x1bc8d4['isIncorrect']);}[_0x18b2('0x2f')](_0x41391b){const _0x560dd9=new Set();for(let _0x197fd0=0x0;_0x197fd0<_0x41391b[_0x18b2('0xb6')];_0x197fd0++){if(_0x560dd9[_0x18b2('0xee')](_0x41391b[_0x197fd0]['id'])&&_0x41391b[_0x197fd0][_0x18b2('0x108')]&&(_0x41391b[_0x197fd0]['isIncorrect']=!0x0),_0x41391b[_0x197fd0]['isIncorrect'])continue;if(0x0==_0x41391b[_0x197fd0][_0x18b2('0x19')])continue;if('elementStart'!=_0x41391b[_0x197fd0][_0x18b2('0x68')])continue;if(null==_0x41391b[_0x197fd0][_0x18b2('0x27')])continue;let _0x16224a=_0x197fd0+0x1,_0x3ae2be=0x0;for(;_0x41391b[_0x16224a]['id']!=_0x41391b[_0x197fd0][_0x18b2('0x27')];)_0x18b2('0xdb')==_0x41391b[_0x16224a]['type']?_0x3ae2be++:_0x18b2('0xa8')==_0x41391b[_0x16224a]['type']&&_0x3ae2be--,_0x16224a++;if(0x0!=_0x3ae2be){if(_0x41391b[_0x197fd0][_0x18b2('0x108')])_0x41391b[_0x197fd0]['isIncorrect']=!0x0;else for(;_0x16224a!=_0x197fd0;)_0x41391b[_0x16224a][_0x18b2('0x108')]&&0x0!=_0x41391b[_0x16224a]['distance']&&(_0x41391b[_0x16224a][_0x18b2('0xb1')]=!0x0,_0x560dd9[_0x18b2('0x10e')](_0x41391b[_0x16224a][_0x18b2('0x27')])),_0x16224a--;}}return _0x41391b[_0x18b2('0xec')](_0x6e7e69=>!_0x6e7e69[_0x18b2('0xb1')]);}['_removeUnsupportedChanges'](_0x4166fc){const _0x2251c1=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x26')];for(let _0x25659c=0x0;_0x25659c<_0x4166fc[_0x18b2('0xb6')];_0x25659c++){if(!(_0x4166fc[_0x25659c]['isAdded']||_0x4166fc[_0x25659c][_0x18b2('0xf6')]||_0x4166fc[_0x25659c]['isRemoved']||_0x4166fc[_0x25659c]['isRemoveSuggestion']))continue;if(0x0==_0x4166fc[_0x25659c][_0x18b2('0x19')])continue;const _0x4aef6f=_0x4166fc[_0x25659c]['item'];_0x2251c1['isBlock'](_0x4aef6f)||_0x2251c1[_0x18b2('0x8a')](_0x4aef6f)||(_0x4166fc[_0x25659c]['isAdded']&&delete _0x4166fc[_0x25659c][_0x18b2('0x3c')],_0x4166fc[_0x25659c][_0x18b2('0xf6')]&&delete _0x4166fc[_0x25659c][_0x18b2('0xf6')],_0x4166fc[_0x25659c][_0x18b2('0x58')]&&delete _0x4166fc[_0x25659c]['isRemoveSuggestion'],_0x4166fc[_0x25659c]['isRemoved']&&(_0x4166fc[_0x25659c]['isIncorrect']=!0x0));}return _0x4166fc[_0x18b2('0xec')](_0x301525=>!_0x301525[_0x18b2('0xb1')]);}[_0x18b2('0x9f')](_0x45e767,_0x5581c2,_0x33f0cb){const _0x40aa95=new _0x39e403(),_0x4745e7=[],_0x2dd08c=new Map(),_0x16b0ed=this[_0x18b2('0xe0')][_0x18b2('0xfb')],_0x5d3c0b=_0x16b0ed[_0x18b2('0x26')],_0x562a0a=[_0x40aa95],_0x163bc5={},_0x5cdf10={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4bd951=null;const _0x403b33=[0x0];for(let _0x37062e=0x0;_0x37062e<_0x45e767[_0x18b2('0xb6')];_0x37062e++){let _0x5db7f2,_0x3f0a5a;if('elementStart'===_0x45e767[_0x37062e]['type']){_0x5db7f2=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33);const _0x48c263=new _0x44d97d(_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0xd1')],_0x45e767[_0x37062e]['item'][_0x18b2('0x1e')]());_0x562a0a[0x0][_0x18b2('0x15')](_0x48c263),_0x403b33[_0x18b2('0x101')](0x0),_0x562a0a['unshift'](_0x48c263),_0x3f0a5a=_0x16b0ed['createPositionFromPath'](_0x40aa95,_0x403b33),_0x4bd951=null;}else{if('elementEnd'===_0x45e767[_0x37062e]['type'])_0x562a0a[_0x18b2('0x63')](),_0x5db7f2=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33),_0x403b33[_0x18b2('0x4b')](),_0x403b33[_0x403b33[_0x18b2('0xb6')]-0x1]++,_0x3f0a5a=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33),_0x4bd951=null;else{if(_0x5db7f2=_0x16b0ed['createPositionFromPath'](_0x40aa95,_0x403b33),_0x4bd951&&_0x45ad38(_0x4bd951,_0x45e767[_0x37062e][_0x18b2('0x3b')]))_0x4bd951[_0x18b2('0xd8')]+=_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0x8')];else{const _0x3fc6e3=new _0x447422(_0x45e767[_0x37062e][_0x18b2('0x3b')]['data'],_0x45e767[_0x37062e][_0x18b2('0x3b')]['getAttributes']());_0x562a0a[0x0][_0x18b2('0x15')](_0x3fc6e3),_0x4bd951=_0x3fc6e3;}_0x403b33[_0x403b33[_0x18b2('0xb6')]-0x1]+=_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0x112')],_0x3f0a5a=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33);}}for(const _0x3a7500 of _0x45e767[_0x37062e]['markersStart'])_0x2dd08c[_0x18b2('0x3d')](_0x3a7500,{'start':_0x5db7f2,'end':null});_0x45c23f(_0x18b2('0x58'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f(_0x18b2('0xf6'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f(_0x18b2('0x108'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f('isAdded',_0x37062e,_0x5db7f2,_0x3f0a5a);for(const _0x44b07d of _0x45e767[_0x37062e][_0x18b2('0xbf')]){_0x2dd08c['get'](_0x44b07d)['end']=_0x3f0a5a;}}for(const [_0x1b405f,_0x31d146]of _0x2dd08c){const _0x269fc8=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x119')](_0x31d146[_0x18b2('0x61')],_0x31d146['end']);_0x40aa95[_0x18b2('0x38')][_0x18b2('0x3d')](_0x1b405f,_0x269fc8);}return _0x4745e7[_0x18b2('0xe4')]((_0x437929,_0x504b29)=>{const _0x1f6dbc=_0x40aa95[_0x18b2('0x38')]['get']('revision:'+_0x437929['id']),_0x594756=_0x40aa95[_0x18b2('0x38')][_0x18b2('0xeb')](_0x18b2('0xf5')+_0x504b29['id']);return _0x1f6dbc[_0x18b2('0x61')][_0x18b2('0x9d')](_0x594756['start'])?-0x1:_0x1f6dbc[_0x18b2('0x61')][_0x18b2('0xa')](_0x594756[_0x18b2('0x61')])?0x1:_0x1f6dbc['end'][_0x18b2('0x9d')](_0x594756['end'])?-0x1:_0x1f6dbc[_0x18b2('0xa0')][_0x18b2('0xa')](_0x594756['end'])?0x1:_0x18b2('0x10e')===_0x437929['type']?-0x1:0x1;}),{'root':_0x40aa95,'changes':_0x4745e7};function _0x45c23f(_0x1c0cc1,_0x252302,_0x478f9d,_0xbfc321){const _0x5d55f6=!!_0x45e767[_0x252302][_0x1c0cc1],_0x2adca8=_0x5d55f6?_0x45e767[_0x252302][_0x1c0cc1][_0x18b2('0x2e')]:null,_0x19bc0e=_0x252302===_0x45e767[_0x18b2('0xb6')]-0x1,_0x1c1696=_0x5cdf10[_0x1c0cc1][0x0],_0x4a4774=_0x5d3c0b[_0x18b2('0x73')](_0x45e767[_0x252302][_0x18b2('0x3b')]);!_0x163bc5[_0x1c0cc1]&&_0x5d55f6?_0x163bc5[_0x1c0cc1]={'start':_0x478f9d,'tapeItem':_0x45e767[_0x252302],'userId':_0x2adca8,'type':_0x1c0cc1}:_0x163bc5[_0x1c0cc1]&&!_0x5d55f6?(_0x163bc5[_0x1c0cc1]['end']=_0x478f9d,_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]=null):_0x163bc5[_0x1c0cc1]&&_0x5d55f6&&_0x163bc5[_0x1c0cc1][_0x18b2('0x2e')]!==_0x2adca8&&(_0x163bc5[_0x1c0cc1][_0x18b2('0xa0')]=_0x478f9d,_0x1c1696&&_0x1c1696[_0x18b2('0x2e')]===_0x163bc5[_0x1c0cc1][_0x18b2('0x2e')]||_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]={'start':_0x478f9d,'tapeItem':_0x45e767[_0x252302],'userId':_0x2adca8,'type':_0x1c0cc1}),_0x163bc5[_0x1c0cc1]&&_0x4a4774&&(_0x18b2('0xdb')!==_0x45e767[_0x252302][_0x18b2('0x68')]||_0x1c1696&&_0x1c1696[_0x18b2('0x2e')]===_0x2adca8||_0x5cdf10[_0x1c0cc1][_0x18b2('0x47')]({'userId':_0x2adca8,'object':_0x45e767[_0x252302][_0x18b2('0x3b')],'change':_0x163bc5[_0x1c0cc1]}),_0x18b2('0xa8')===_0x45e767[_0x252302][_0x18b2('0x68')]&&_0x1c1696&&_0x1c1696['object']===_0x45e767[_0x252302][_0x18b2('0x3b')]&&(_0x5cdf10[_0x1c0cc1][_0x18b2('0x63')](),_0x163bc5[_0x1c0cc1]=_0x1c1696[_0x18b2('0x33')])),_0x163bc5[_0x1c0cc1]&&_0x19bc0e&&(_0x163bc5[_0x1c0cc1][_0x18b2('0xa0')]=_0xbfc321,_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]=null);}function _0x50dff1({start:_0x542e20,end:_0x3f0ec3,tapeItem:_0x302903,userId:_0x5de7a1,type:_0x55c966}){const _0x1e1df4=_0x302903[_0x18b2('0x3b')],_0x3ca281=_0x16b0ed[_0x18b2('0x26')][_0x18b2('0x1f')](_0x1e1df4)&&!_0x16b0ed[_0x18b2('0x26')][_0x18b2('0x8a')](_0x1e1df4),_0x204253=_0x542e20['nodeAfter']==_0x3f0ec3[_0x18b2('0x62')]&&_0x3f0ec3['isAtStart'];if(_0x3ca281&&_0x204253)return;const _0x26d50e=_0x16b0ed[_0x18b2('0x119')](_0x542e20,_0x3f0ec3),_0x5eba75=_0x5581c2[_0x18b2('0xeb')](_0x5de7a1),_0x30a570=new _0xc3ab36({'author':_0x5eba75,'type':_0x18b2('0x3c')==_0x55c966||_0x18b2('0xf6')==_0x55c966?'add':_0x18b2('0xf4'),'data':{'isSuggestion':_0x18b2('0xf6')==_0x55c966||_0x18b2('0x58')==_0x55c966},'createdAt':new Date(),'rootName':_0x33f0cb});_0x4745e7[_0x18b2('0x101')](_0x30a570),_0x40aa95['markers'][_0x18b2('0x3d')](_0x18b2('0xf5')+_0x30a570['id'],_0x26d50e);}function _0x45ad38(_0x4d8876,_0x486b44){const _0x3cbfe7=_0x4d8876['getAttributes'](),_0x1ab6e7=_0x486b44[_0x18b2('0x1e')]();for(const _0x2ea26b of _0x3cbfe7){if(_0x2ea26b[0x1]!==_0x486b44[_0x18b2('0x8f')](_0x2ea26b[0x0]))return!0x1;_0x1ab6e7[_0x18b2('0x7')]();}return _0x1ab6e7['next']()[_0x18b2('0xe6')];}}[_0x18b2('0x22')](){this[_0x18b2('0xe0')][_0x18b2('0xdd')]['for'](_0x18b2('0x110'))['dataToMarker']({'view':_0x18b2('0xef')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x31'))[_0x18b2('0x114')]({'model':_0x18b2('0xef'),'view':_0x124752=>{const _0x1b4310=_0x124752[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1],_0xe1b380=this[_0x18b2('0x20')](_0x1b4310);if(!_0xe1b380)return null;const _0x5df711='add'==_0xe1b380[_0x18b2('0x68')]?_0x18b2('0x5b'):_0x18b2('0x9e'),_0x598503=[_0x18b2('0xae'),_0x18b2('0x77')+_0x5df711];return _0xe1b380[_0x18b2('0x8')]['isSuggestion']&&_0x598503['push']('ck-suggestion-marker-'+_0x5df711+'-new'),this[_0x18b2('0x111')]==_0xe1b380&&_0x598503['push'](_0x18b2('0xd9')),{'classes':_0x598503,'attributes':{'data-change-id':_0x1b4310}};}}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))[_0x18b2('0x10e')](_0xf75691=>{_0xf75691['on'](_0x18b2('0x46'),(_0x1c2695,_0x2691a7,_0x154f6b)=>{const _0x5a33c3=_0x2691a7[_0x18b2('0xab')][_0x18b2('0x4a')](0x0);if(!_0x5a33c3||!_0x5a33c3['is']('element',_0x18b2('0x11a')))return;if(!_0x154f6b['consumable'][_0x18b2('0xba')](_0x5a33c3,{'attributes':[_0x18b2('0x11d'),_0x18b2('0x45')]}))return;const _0x11ce5d=_0x2691a7[_0x18b2('0x93')][_0x18b2('0x61')][_0x18b2('0xe9')];_0x154f6b[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x11d'),_0x5a33c3['getAttribute'](_0x18b2('0x11d')),_0x11ce5d),_0x154f6b[_0x18b2('0x102')]['setAttribute']('vid_end',_0x5a33c3[_0x18b2('0x8f')](_0x18b2('0x45')),_0x11ce5d);},{'priority':_0x18b2('0x57')});}),this['editor'][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))[_0x18b2('0x10e')](_0xc9aed2=>{_0xc9aed2['on'](_0x18b2('0xc8'),(_0x4bdc0b,_0x37b112,_0x3d7701)=>{if(!_0x3d7701[_0x18b2('0xc')]['consume'](_0x37b112[_0x18b2('0xab')],{'attributes':[_0x18b2('0x11d'),_0x18b2('0x45')]}))return;if(_0x37b112['modelRange'][_0x18b2('0x3e')])return;const _0x957606=_0x37b112['modelRange'][_0x18b2('0x61')][_0x18b2('0xe9')];_0x957606['hasAttribute'](_0x18b2('0x11d'))||_0x957606[_0x18b2('0x34')]('vid')||(_0x3d7701[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x11d'),_0x37b112[_0x18b2('0xab')][_0x18b2('0x8f')](_0x18b2('0x11d')),_0x957606),_0x3d7701[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x45'),_0x37b112['viewItem']['getAttribute'](_0x18b2('0x45')),_0x957606));},{'priority':_0x18b2('0x57')});}),this[_0x18b2('0xe0')]['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':_0x18b2('0x10f'),'attributes':{'vid':!0x0}},'model':{'key':_0x18b2('0x18'),'value':_0xf6cad9=>_0xf6cad9[_0x18b2('0x8f')](_0x18b2('0x18'))}}),this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x26')]['on'](_0x18b2('0x89'),(_0x37e9f7,[,_0x433eb4])=>{[_0x18b2('0x11d'),_0x18b2('0x45'),'vid'][_0x18b2('0xb8')](_0x433eb4)&&(_0x37e9f7['return']=!0x0,_0x37e9f7[_0x18b2('0xd4')]());},{'priority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')]['conversion'][_0x18b2('0x6c')](_0x18b2('0x103'))[_0x18b2('0x10e')](_0x2c4cc1=>{_0x2c4cc1['on']('attribute:vid',(_0x301cfc,_0x22b864,_0x8cea44)=>{if('\x20'!=_0x22b864['item'][_0x18b2('0x8')]||_0x22b864[_0x18b2('0x3b')][_0x18b2('0x62')]['maxOffset']>0x1)return;if(!_0x8cea44[_0x18b2('0xc')][_0x18b2('0xba')](_0x22b864[_0x18b2('0x3b')],_0x301cfc[_0x18b2('0xd1')]))return;const _0x4e1b5a=_0x8cea44['writer'],_0x288375=_0x8cea44[_0x18b2('0x1c')][_0x18b2('0x0')](_0x22b864[_0x18b2('0x32')]);_0x4e1b5a[_0x18b2('0xac')](_0x288375,_0x4e1b5a[_0x18b2('0x1b')](_0x18b2('0x10f')));});}),this[_0x18b2('0xe0')]['conversion'][_0x18b2('0x6c')](_0x18b2('0x103'))[_0x18b2('0x96')]({'model':'revision'}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf7'),function(_0x33d201){const _0x1408cf=_0x33d201[_0x18b2('0x106')]['get'](_0x18b2('0xbc'));return(_0x4520f8,_0x4a6c0d,_0x3658dc)=>{const _0x259af8=_0x4a6c0d[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1],_0x1f5c35=_0x1408cf['_getChangeFromId'](_0x259af8);if(!_0x1f5c35)return null;const _0x407448=_0x18b2('0x10e')==_0x1f5c35['type']?_0x18b2('0xd3'):_0x18b2('0x8e');if(!_0x3658dc[_0x18b2('0xc')][_0x18b2('0xc1')](_0x4a6c0d[_0x18b2('0x109')],_0x4520f8['name']))return;const _0x452ae4=_0x4a6c0d[_0x18b2('0x109')]['getWalker'](),_0x528159=_0x4a6c0d[_0x18b2('0x109')][_0x18b2('0x61')],_0x3f1bd3=_0x33d201[_0x18b2('0xfb')]['schema'];let _0x34445e=null,_0x33d4a2=null,_0x2bd5c=!0x1,_0x18a873=!0x1;for(const _0x2357f6 of _0x452ae4){const _0x5904e6=_0x2357f6[_0x18b2('0x3b')];_0x2bd5c=_0x2bd5c||_0x3f1bd3[_0x18b2('0xce')](_0x5904e6);const _0x42e246=_0x3658dc[_0x18b2('0x1c')][_0x18b2('0x5e')](_0x5904e6);if(_0x42e246&&_0x42e246[_0x18b2('0xa7')](_0x18b2('0xc9')))return;_0x18b2('0xa8')==_0x2357f6[_0x18b2('0x68')]&&(_0x3f1bd3[_0x18b2('0x1f')](_0x5904e6)&&!_0x3f1bd3[_0x18b2('0x8a')](_0x5904e6)&&(_0x5904e6['nextSibling']||_0x528159[_0x18b2('0x118')]?_0x34445e&&_0x34445e[_0x18b2('0x62')]==_0x5904e6||(_0x34445e=_0x5904e6,_0x5683ee(_0x2357f6[_0x18b2('0x11b')]),_0x18a873=!0x0):_0x33d4a2=_0x33d4a2||_0x2357f6[_0x18b2('0x11b')]));}function _0x5683ee(_0x326e98){const _0x195521=_0x3658dc[_0x18b2('0x102')][_0x18b2('0x5d')](_0x18b2('0x10f'),{'class':'ck-suggestion-marker-'+_0x407448}),_0x2131c5=_0x3658dc['mapper'][_0x18b2('0x75')](_0x326e98);_0x1f5c35[_0x18b2('0x8')][_0x18b2('0x64')]&&_0x3658dc[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0x77')+_0x407448+_0x18b2('0x52'),_0x195521),_0x1408cf[_0x18b2('0x111')]==_0x1f5c35&&_0x3658dc[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0xd9'),_0x195521),_0x3658dc[_0x18b2('0x102')][_0x18b2('0x88')](_0x2131c5,_0x195521),_0x3658dc[_0x18b2('0x1c')]['bindElementToMarker'](_0x195521,_0x4a6c0d[_0x18b2('0xfc')]);}_0x2bd5c||_0x18a873||!_0x33d4a2||_0x5683ee(_0x33d4a2);};}(this[_0x18b2('0xe0')]),{'priority':_0x18b2('0x53')}),this[_0x18b2('0xe0')]['editing'][_0x18b2('0x90')]['on']('removeMarker:revision',(_0x4dedb2,_0x227dd4,_0x494ffa)=>{const _0xea77fd=_0x494ffa[_0x18b2('0x1c')]['markerNameToElements'](_0x227dd4['markerName']);if(_0xea77fd)for(const _0x3de989 of _0xea77fd)(_0x3de989['hasClass'](_0x18b2('0x1a'))||_0x3de989['hasClass']('ck-suggestion-marker-merge'))&&(_0x494ffa[_0x18b2('0x1c')]['unbindElementFromMarkerName'](_0x3de989,_0x227dd4['markerName']),_0x494ffa[_0x18b2('0x102')][_0x18b2('0xf4')](_0x3de989));},{'priority':'high'}),this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf7'),(_0x1afbf6,_0x119e1f,_0x1f1bc2)=>{const _0x3c3ec7=_0x119e1f['markerName']['split'](':')[0x1],_0x3c2d85=this['_getChangeFromId'](_0x3c3ec7);if(!_0x3c2d85)return null;const _0x3473d4=_0x18b2('0x10e')==_0x3c2d85[_0x18b2('0x68')]?_0x18b2('0xd3'):_0x18b2('0x8e');if(_0x1f1bc2[_0x18b2('0xc')][_0x18b2('0xc1')](_0x119e1f['markerRange'],_0x1afbf6[_0x18b2('0xd1')]))for(const _0x164bb9 of _0x119e1f[_0x18b2('0x109')][_0x18b2('0x54')]()){if(!_0x164bb9['is'](_0x18b2('0xc8'),'softBreak'))continue;const _0x107f36=_0x1f1bc2['writer']['createUIElement'](_0x18b2('0x10f'),{'class':_0x18b2('0x77')+_0x3473d4}),_0x27c6f3=_0x1f1bc2['mapper'][_0x18b2('0x75')](this[_0x18b2('0xe0')][_0x18b2('0xfb')]['createPositionBefore'](_0x164bb9));_0x3c2d85[_0x18b2('0x8')][_0x18b2('0x64')]&&_0x1f1bc2[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0x77')+_0x3473d4+_0x18b2('0x52'),_0x107f36),this[_0x18b2('0x111')]==_0x3c2d85&&_0x1f1bc2[_0x18b2('0x102')]['addClass'](_0x18b2('0xd9'),_0x107f36),_0x1f1bc2[_0x18b2('0x102')][_0x18b2('0x88')](_0x27c6f3,_0x107f36),_0x1f1bc2[_0x18b2('0x1c')][_0x18b2('0xb9')](_0x107f36,_0x119e1f[_0x18b2('0xfc')]);}},{'priority':'high'}),this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')]['on'](_0x18b2('0x33'),()=>{this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0x33')](_0xc9de69=>{for(const _0x5be9db of this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')]['getRootNames']()){const _0x44c1e0=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0x28')](_0x5be9db),_0x5513bb=this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')]['getRoot'](_0x5be9db);if(_0x5513bb){const _0x2af9c4=_0x44c1e0['getAttribute']('revisionHistoryAttachChange');if(_0xc9de69[_0x18b2('0xe7')](_0x18b2('0x4e'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')](_0x18b2('0xcf'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')](_0x18b2('0x10d'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')]('ck-revision-history-root--active',_0x5513bb),_0x2af9c4){const _0x19b734=this['_getChangeFromId'](_0x2af9c4);if(!_0x19b734)return null;_0xc9de69[_0x18b2('0x42')](_0x18b2('0x4e'),_0x2af9c4,_0x5513bb),_0xc9de69[_0x18b2('0x83')]('ck-revision-history-root-'+_0x19b734[_0x18b2('0x68')],_0x5513bb),this[_0x18b2('0x111')]==_0x19b734&&_0xc9de69[_0x18b2('0x83')](_0x18b2('0x4c'),_0x5513bb);}}}});}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')]('upcast')[_0x18b2('0x43')]({'view':_0x18b2('0x69'),'model':_0x23b3ce=>_0x18b2('0x107')+_0x23b3ce,'converterPriority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))['dataToMarker']({'view':_0x18b2('0x9c'),'model':_0x55ea98=>_0x18b2('0x3a')+_0x55ea98,'converterPriority':_0x18b2('0xfe')}),this['editor'][_0x18b2('0xdd')][_0x18b2('0x6c')]('dataDowncast')[_0x18b2('0x96')]({'model':'revision-suggestion','view':_0x455f7d=>({'name':_0x18b2('0xcc')+_0x455f7d,'group':_0x18b2('0x100')}),'converterPriority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')]['for'](_0x18b2('0x31'))[_0x18b2('0x114')]({'model':_0x18b2('0x100'),'view':_0x549012=>{const _0x103878=_0x549012[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1];return _0x18b2('0x5b')!=_0x103878&&'deletion'!=_0x103878?null:{'classes':[_0x18b2('0xa5'),_0x18b2('0x70')+_0x103878]};}}),this[_0x18b2('0xe0')][_0x18b2('0x30')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Y(this[_0x18b2('0xe0')],_0x18b2('0x8e')),{'priority':_0x18b2('0x53')}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf9'),Y(this['editor'],'split'),{'priority':'high'}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0x59'),(_0x4c9ef5,_0x42d562,_0xd0db9c)=>{const _0x3f7bfe=_0xd0db9c[_0x18b2('0x1c')][_0x18b2('0xb')](_0x42d562[_0x18b2('0xfc')]);if(_0x3f7bfe)for(const _0x2a1363 of _0x3f7bfe)_0x2a1363['is']('uiElement')&&(_0xd0db9c['mapper']['unbindElementFromMarkerName'](_0x2a1363,_0x42d562[_0x18b2('0xfc')]),_0xd0db9c[_0x18b2('0x102')][_0x18b2('0xf4')](_0x2a1363));},{'priority':_0x18b2('0x53')});}[_0x18b2('0x20')](_0x37f944){return this['_changeIdToChange'][_0x18b2('0xeb')](_0x37f944);}[_0x18b2('0x56')](_0x23d79e){return this[_0x18b2('0x5a')]&&this[_0x18b2('0x5a')][_0x18b2('0xaf')](),this[_0x18b2('0x5a')]=new _0x1321c7(this[_0x18b2('0xe0')][_0x18b2('0x113')],_0x23d79e),this[_0x18b2('0x5a')];}['_initInteractions'](){this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')][_0x18b2('0x6f')]['observeMarkers'](_0x18b2('0xef')),this['on']('change:activeView',(_0x3adfb3,_0x255255,_0x116786,_0x20a9db)=>{_0x20a9db&&this[_0x18b2('0x51')][_0x18b2('0xf4')](_0x20a9db),_0x116786&&(this[_0x18b2('0x51')][_0x18b2('0x10e')]({'view':_0x116786,'stackId':_0x18b2('0xd0'),'position':{'target':()=>{const _0x54e433=this['editor'][_0x18b2('0x30')],_0x2c44dc=this[_0x18b2('0x20')](_0x116786[_0x18b2('0x9a')]);let _0x11d5c2;if(_0x2c44dc[_0x18b2('0x8')][_0x18b2('0x5c')]){const _0x77dcc0=_0x54e433[_0x18b2('0xd6')]['getDomRoot'](_0x2c44dc[_0x18b2('0xaa')]);_0x11d5c2=Array['from'](_0x77dcc0[_0x18b2('0x35')]());}else{const _0x5a1901=this[_0x18b2('0xe0')]['model'][_0x18b2('0x38')][_0x18b2('0xeb')](_0x18b2('0xf5')+_0x116786[_0x18b2('0x9a')]);_0x11d5c2=Array[_0x18b2('0x7c')](_0x54e433[_0x18b2('0x1c')][_0x18b2('0xb')](_0x5a1901[_0x18b2('0xd1')]))[_0x18b2('0x98')](_0x2b2240=>_0x54e433[_0x18b2('0xd6')][_0x18b2('0x23')]['mapViewToDom'](_0x2b2240))[_0x18b2('0x98')](_0x5b090c=>Array['from'](_0x5b090c[_0x18b2('0x35')]()))[_0x18b2('0xb5')]();}if(!this[_0x18b2('0xff')])return _0x11d5c2[0x0];return _0x11d5c2[_0x18b2('0x7f')](_0x27a3dc=>_0x27a3dc[_0x18b2('0xea')]-0x3<=this[_0x18b2('0xff')]['y']&&_0x27a3dc['bottom']+0x3>=this[_0x18b2('0xff')]['y']&&_0x27a3dc['left']-0x3<=this[_0x18b2('0xff')]['x']&&_0x27a3dc[_0x18b2('0xc3')]+0x3>=this[_0x18b2('0xff')]['x'])||_0x11d5c2[0x0];}}}),this['_balloon'][_0x18b2('0x105')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x356f2d,_0x4b81c4,_0x305c5e,_0x23039b)=>{this[_0x18b2('0xc0')]=_0x305c5e?this[_0x18b2('0x56')](_0x305c5e):null,this[_0x18b2('0xe0')][_0x18b2('0xfb')]['change'](()=>{const _0x122615=this[_0x18b2('0xe0')][_0x18b2('0x30')];_0x23039b&&(_0x23039b[_0x18b2('0x8')][_0x18b2('0x5c')]?_0x122615[_0x18b2('0xd6')][_0x18b2('0x33')](_0x24bf14=>{_0x24bf14[_0x18b2('0xa6')](_0x18b2('0x4c'),_0x122615[_0x18b2('0xd6')]['document'][_0x18b2('0x28')](_0x23039b[_0x18b2('0xaa')]));}):_0x122615[_0x18b2('0x66')]('revision:'+_0x23039b['id'])),_0x305c5e&&(_0x305c5e[_0x18b2('0x8')][_0x18b2('0x5c')]?_0x122615[_0x18b2('0xd6')][_0x18b2('0x33')](_0x52c2f1=>{_0x52c2f1[_0x18b2('0x83')](_0x18b2('0x4c'),_0x122615[_0x18b2('0xd6')]['document'][_0x18b2('0x28')](_0x305c5e['rootName']));}):_0x122615[_0x18b2('0x66')](_0x18b2('0xf5')+_0x305c5e['id']));});}),this['listenTo'](this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')]['document'],_0x18b2('0xbd'),(_0x2de010,_0x4afdc8)=>{if(this[_0x18b2('0x111')])return;const _0x4b5375=this[_0x18b2('0xe8')](_0x4afdc8[_0x18b2('0xed')]),_0xadadd2=this[_0x18b2('0xad')][_0x18b2('0xeb')](_0x4b5375);_0xadadd2?(this[_0x18b2('0xff')]={'x':_0x4afdc8['domEvent']['x'],'y':_0x4afdc8[_0x18b2('0x2a')]['y']},this['activeView']=this[_0x18b2('0x56')](_0xadadd2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x18b2('0xe3')](this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')],_0x18b2('0xb7'),(_0x4a1cb2,_0x5e0f2e)=>{const _0x3fe33e=this['_findChangeIdFromDomTarget'](_0x5e0f2e[_0x18b2('0xed')]),_0x33db06=this['_changeIdToChange'][_0x18b2('0xeb')](_0x3fe33e);_0x33db06?(this['_activeViewTarget']={'x':_0x5e0f2e['domEvent']['x'],'y':_0x5e0f2e['domEvent']['y']},_0x33db06===this[_0x18b2('0x111')]?this[_0x18b2('0x51')][_0x18b2('0x12')]():this[_0x18b2('0x111')]=_0x33db06):(this[_0x18b2('0xff')]=null,this[_0x18b2('0x111')]=null);});}['_findChangeIdFromDomTarget'](_0x5a697c){do{const _0x1b2b83=_0x5a697c[_0x18b2('0x8f')]('data-change-id');if(_0x1b2b83)return _0x1b2b83;_0x5a697c=_0x5a697c[_0x18b2('0x62')];}while(_0x5a697c);return null;}[_0x18b2('0xf1')](){this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x33')](_0x44fc51=>{for(const _0x400d02 of this[_0x18b2('0xe0')]['model']['markers'])_0x44fc51[_0x18b2('0x39')](_0x400d02);});}}function Y(_0x3adefc,_0x3c752c){return(_0xc08dfd,_0x54c8de,_0x1f6d59)=>{if(!_0x1f6d59[_0x18b2('0xc')][_0x18b2('0xc1')](_0x54c8de[_0x18b2('0x109')],_0xc08dfd[_0x18b2('0xd1')]))return;const _0x21be28=_0x54c8de[_0x18b2('0x109')][_0x18b2('0xdf')](),_0x4a4dc1=_0x54c8de[_0x18b2('0x109')][_0x18b2('0x61')],_0x3b4b3d=_0x3adefc[_0x18b2('0xfb')][_0x18b2('0x26')];let _0xb68306=null,_0x44fb30=null,_0x336286=!0x1,_0x4b9b64=!0x1;for(const _0x26f472 of _0x21be28){const _0x5528fe=_0x26f472[_0x18b2('0x3b')];_0x336286=_0x336286||_0x3b4b3d[_0x18b2('0xce')](_0x5528fe);const _0x4c2ecb=_0x1f6d59[_0x18b2('0x1c')][_0x18b2('0x5e')](_0x5528fe);if(_0x4c2ecb&&_0x4c2ecb[_0x18b2('0xa7')](_0x18b2('0xc9')))return;_0x18b2('0xa8')==_0x26f472[_0x18b2('0x68')]&&(_0x3b4b3d[_0x18b2('0x1f')](_0x5528fe)&&!_0x3b4b3d[_0x18b2('0x8a')](_0x5528fe)&&(_0x5528fe[_0x18b2('0x6a')]||_0x4a4dc1[_0x18b2('0x118')]?_0xb68306&&_0xb68306[_0x18b2('0x62')]==_0x5528fe||(_0xb68306=_0x5528fe,_0x18e501(_0x26f472[_0x18b2('0x11b')]),_0x4b9b64=!0x0):_0x44fb30=_0x44fb30||_0x26f472[_0x18b2('0x11b')]));}function _0x18e501(_0x17227b){const _0x1870f8=_0x1f6d59['mapper'][_0x18b2('0x75')](_0x17227b),_0x1f5020=_0x1f6d59[_0x18b2('0x102')][_0x18b2('0x5d')](_0x18b2('0x10f'),{'class':'ck-suggestion-preview-marker-'+_0x3c752c});_0x1f6d59[_0x18b2('0x102')][_0x18b2('0x88')](_0x1870f8,_0x1f5020),_0x1f6d59[_0x18b2('0x1c')][_0x18b2('0xb9')](_0x1f5020,_0x54c8de[_0x18b2('0xfc')]);}_0x336286||_0x4b9b64||!_0x44fb30||_0x18e501(_0x44fb30);};}export class RestoreRevisionCommand extends _0xcfbd88{constructor(_0x533371){super(_0x533371);const _0x5d2db9=_0x533371['plugins'][_0x18b2('0xeb')](w);this[_0x18b2('0x87')]=!0x1,this[_0x18b2('0xe3')](_0x5d2db9,_0x18b2('0x91'),()=>this[_0x18b2('0x37')]()),this[_0x18b2('0xe3')](_0x5d2db9,'change:isEnabled',()=>this[_0x18b2('0x37')]());}[_0x18b2('0x10c')](){const _0x2e1c80=this[_0x18b2('0xe0')],_0x2db514=_0x2e1c80[_0x18b2('0x106')][_0x18b2('0xeb')](w),_0x4b09d2=_0x2db514[_0x18b2('0xda')]?_0x2db514[_0x18b2('0x5')][_0x18b2('0xd7')]:null;_0x2e1c80['config'][_0x18b2('0xeb')]('revisionHistory')[_0x18b2('0xa2')](_0x4b09d2);}[_0x18b2('0x37')](){const {isReady:_0x553991,isEnabled:_0x1e4a25}=this[_0x18b2('0xe0')][_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0xfa')]=_0x553991&&_0x1e4a25;}}export class ShowChangeCommand extends _0xcfbd88{constructor(_0x149836,{direction:_0x375cbe}){super(_0x149836);const _0x55887f=_0x149836[_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0x87')]=!0x1,this['_step']='forward'===_0x375cbe?0x1:-0x1,this[_0x18b2('0xe3')](_0x55887f,'change:isReady',()=>this[_0x18b2('0x37')]()),this[_0x18b2('0xe3')](_0x55887f,_0x18b2('0x36'),()=>this[_0x18b2('0x37')]());}[_0x18b2('0x10c')](){const _0x111a52=this[_0x18b2('0xe0')],_0x260bc0=_0x111a52[_0x18b2('0x106')][_0x18b2('0xeb')](w),{isNavigationMode:_0x33076b,currentChangeNumber:_0x271b77}=_0x260bc0;let _0x3ed00e;if(_0x260bc0[_0x18b2('0x111')]=_0x33076b?_0x260bc0[_0x18b2('0x5')]['changes'][_0x18b2('0xeb')](_0x271b77+this[_0x18b2('0x8b')]):_0x260bc0['diff'][_0x18b2('0xc7')][_0x18b2('0x8d')],_0x260bc0['activeChange']['data'][_0x18b2('0x5c')])_0x3ed00e=_0x111a52[_0x18b2('0x30')][_0x18b2('0xd6')]['getDomRoot'](_0x260bc0[_0x18b2('0x111')][_0x18b2('0xaa')]);else{const _0x247a2b=_0x111a52[_0x18b2('0xfb')]['markers']['get']('revision:'+_0x260bc0[_0x18b2('0x111')]['id']);_0x3ed00e=_0x4ee7ef(_0x111a52['editing'],_0x247a2b);}_0x413986({'target':_0x3ed00e,'viewportOffset':0x28});}[_0x18b2('0x37')](){const {isNavigationMode:_0x36d1f8,currentChangeNumber:_0x2d8682,numberOfChanges:_0x112863,isReady:_0x257beb,isEnabled:_0x15efb2}=this[_0x18b2('0xe0')][_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0xfa')]=!!(_0x15efb2&&_0x257beb&&_0x112863)&&(!_0x36d1f8||(0x1===this[_0x18b2('0x8b')]?_0x2d8682<_0x112863-0x1:_0x2d8682>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31ef=['button','name','execute','function','listView','_action','isEnabled','class','items','find','add','isActionsDropdownOpen','buttonView','locale','bind','action','bindTemplate','Compare\x20against\x20selected','threeVerticalDots','ck-on','map','isVisible','Show\x20more\x20items','source','change:isActionsDropdownOpen','first','Name\x20this\x20revision','children','stopPropagation','extendTemplate','listenTo','panelPosition','model'];(function(_0x454f6c,_0x31ef05){const _0x3ad7f9=function(_0x1df4e5){while(--_0x1df4e5){_0x454f6c['push'](_0x454f6c['shift']());}};_0x3ad7f9(++_0x31ef05);}(_0x31ef,0x187));const _0x3ad7=function(_0x454f6c,_0x31ef05){_0x454f6c=_0x454f6c-0x0;let _0x3ad7f9=_0x31ef[_0x454f6c];return _0x3ad7f9;};import{Collection as _0x3d8c87}from'ckeditor5/src/utils';import{icons as _0x28a011}from'ckeditor5/src/core';import{Model as _0xbe0745,addListToDropdown as _0x2ce583,createDropdown as _0x21309}from'ckeditor5/src/ui';import{getTranslation as _0x6d830c}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x50cc84,_0xc4160a){const _0x347908=_0x50cc84[_0x3ad7('0x15')],_0x27fb31=_0x50cc84['locale'],_0x5f1a2e=_0x21309(_0x27fb31);_0x5f1a2e[_0x3ad7('0x3')]='sw';const _0x4e974f=function(_0x624f55,_0x38b48a){const _0x44c3dd=function(_0x2c6b83,_0x48e813){const _0x4f59c6=_0x2c6b83[_0x3ad7('0x12')],_0x155d45={'Compare\x20against\x20selected':_0x6d830c(_0x4f59c6,_0x3ad7('0x16')),'Name\x20this\x20revision':_0x6d830c(_0x4f59c6,_0x3ad7('0x1f')),'Restore\x20this\x20revision':_0x6d830c(_0x4f59c6,'Restore\x20this\x20revision')};return _0x48e813[_0x3ad7('0x19')](_0x188ca3=>{const _0x26a175=_0x155d45[_0x188ca3[_0x3ad7('0x6')]];return _0x26a175&&_0x26a175!==_0x188ca3[_0x3ad7('0x6')]&&(_0x188ca3[_0x3ad7('0x6')]=_0x26a175),_0x188ca3;});}(_0x624f55,_0x38b48a),_0x37c4e0=new _0x3d8c87();for(const _0x33524f of _0x44c3dd){const _0x243a07={'type':_0x3ad7('0x5'),'model':new _0xbe0745({'label':_0x33524f[_0x3ad7('0x6')],'class':_0x33524f[_0x3ad7('0xc')],'withText':!0x0,'_action':_0x33524f[_0x3ad7('0x14')]})};_0x243a07[_0x3ad7('0x4')][_0x3ad7('0x13')]('isEnabled')['to'](_0x624f55,_0x3ad7('0x10'),_0x469e79=>'function'!=typeof _0x33524f[_0x3ad7('0xb')]||(!_0x469e79||_0x33524f['isEnabled'](_0x624f55))),_0x37c4e0[_0x3ad7('0xf')](_0x243a07);}return _0x37c4e0;}(_0x50cc84,_0xc4160a);return _0x50cc84[_0x3ad7('0x13')]('isActionsDropdownOpen')['to'](_0x5f1a2e,'isOpen'),_0x5f1a2e[_0x3ad7('0x11')]['set']({'label':_0x6d830c(_0x27fb31,_0x3ad7('0x1b')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28a011[_0x3ad7('0x17')]}),_0x5f1a2e[_0x3ad7('0x1')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x347908['if'](_0x3ad7('0x10'),_0x3ad7('0x18'))]},'on':{'click':_0x347908['to'](_0x5f2bbe=>_0x5f2bbe[_0x3ad7('0x0')]())}}),_0x5f1a2e['on'](_0x3ad7('0x7'),_0x519043=>{_0x50cc84['isReady']&&_0x3ad7('0x8')==typeof _0x519043[_0x3ad7('0x1c')][_0x3ad7('0xa')]&&_0x519043[_0x3ad7('0x1c')][_0x3ad7('0xa')](_0x50cc84);}),_0x2ce583(_0x5f1a2e,_0x4e974f),_0x5f1a2e[_0x3ad7('0x2')](_0x50cc84,_0x3ad7('0x1d'),(_0xe78438,_0x548c70,_0x4b4e39)=>{if(_0x4b4e39)for(const _0x34d5cb of _0x5f1a2e[_0x3ad7('0x9')][_0x3ad7('0xd')]){const _0x1565da=_0x34d5cb[_0x3ad7('0x20')][_0x3ad7('0x1e')],_0x35556b=_0xc4160a[_0x3ad7('0xe')](_0x74d71c=>_0x74d71c[_0x3ad7('0x14')]===_0x1565da['_action'])[_0x3ad7('0x1a')];_0x34d5cb[_0x3ad7('0x1a')]=void 0x0===_0x35556b||_0x35556b(_0x50cc84);}}),_0x5f1a2e;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x396b=['Revision\x20author','push','ck-revision-history-sidebar__revision-author','Revision\x20creator','span','ck-revision-history-sidebar__revision-author_creator','name'];(function(_0x3df82e,_0x396b61){const _0x5f0279=function(_0x1971ce){while(--_0x1971ce){_0x3df82e['push'](_0x3df82e['shift']());}};_0x5f0279(++_0x396b61);}(_0x396b,0x168));const _0x5f02=function(_0x3df82e,_0x396b61){_0x3df82e=_0x3df82e-0x0;let _0x5f0279=_0x396b[_0x3df82e];return _0x5f0279;};import{View as _0x17defa,IconView as _0x3842b8}from'ckeditor5/src/ui';import{getTranslation as _0x1ecaba}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x5c0860 from'../../../theme/icons/user.svg';export default class ti extends _0x17defa{constructor(_0x4a0f4e,_0x2c5546,_0x139dc3){super(_0x4a0f4e);const _0x5dbb27=new _0x3842b8();_0x5dbb27['set']({'content':_0x5c0860,'viewBox':'0\x200\x2011\x2010'});const _0x2117df=['ck',_0x5f02('0x6')];_0x139dc3&&_0x2117df[_0x5f02('0x5')](_0x5f02('0x2'));const _0x20a116=[{'tag':_0x5f02('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x1ecaba(_0x4a0f4e,_0x139dc3?_0x5f02('0x0'):_0x5f02('0x4'))},'children':[_0x5dbb27,_0x2c5546[_0x5f02('0x3')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2117df},'children':_0x20a116});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x356f=['extendTemplate','set','ck-revision-history-sidebar__revision-name','span','Revision\x20name'];(function(_0x53b936,_0x356fb3){var _0x38bd5a=function(_0x16cc03){while(--_0x16cc03){_0x53b936['push'](_0x53b936['shift']());}};_0x38bd5a(++_0x356fb3);}(_0x356f,0x1c4));var _0x38bd=function(_0x53b936,_0x356fb3){_0x53b936=_0x53b936-0x0;var _0x38bd5a=_0x356f[_0x53b936];return _0x38bd5a;};import{LabeledFieldView as _0x50f064}from'ckeditor5/src/ui';import{getTranslation as _0x2126a6}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x50f064{constructor(_0x393421,_0x3834ca){super(_0x393421,_0x3834ca),this[_0x38bd('0x4')]({'label':_0x2126a6(_0x393421,_0x38bd('0x2'))}),this[_0x38bd('0x3')]({'tag':_0x38bd('0x1'),'attributes':{'class':[_0x38bd('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfe63=['set','isSelected','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','220','bindTemplate','creator','setTemplate','ck-revision-history-sidebar__revision_highlighted','element','bind','ck-reset','.ck-thread__remove-confirm','isConfirm','select','createdAt','isEnabled','fire','revisionNameView','span','ck-revision-history-sidebar__revision-wrapper','_revision','filter','unhighlight','highlight','uiLanguage','ck-revision-history-sidebar__revision','srcElement','_createdAtFormatted','isHighlighted','unshift','fieldView','isReady','ck-revision-history-sidebar__actions_dropdown_open','deselect','name','from','div','extendTemplate','render','isActionsDropdownOpen','revisionActionsView'];(function(_0x4f3b06,_0xfe630f){const _0x1deb49=function(_0x446958){while(--_0x446958){_0x4f3b06['push'](_0x4f3b06['shift']());}};_0x1deb49(++_0xfe630f);}(_0xfe63,0x1b1));const _0x1deb=function(_0x4f3b06,_0xfe630f){_0x4f3b06=_0x4f3b06-0x0;let _0x1deb49=_0xfe63[_0x4f3b06];return _0x1deb49;};import{View as _0x53e803,createLabeledInputText as _0x14a64a}from'ckeditor5/src/ui';import{ConfirmMixin as _0x360907}from'ckeditor5-collaboration/src/collaboration-core';import _0x23fa6 from'./revisionnameview';import _0x22cb50 from'./revisionauthorview';import{dateToPrettyFormat as _0xf034d9}from'./utils';import{createActionsDropdownView as _0x4a8416}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x360907(_0x53e803){constructor(_0x26690f,_0x28eba3,_0x4248d5){super(_0x26690f);const _0x5c435b=this[_0x1deb('0x16')],_0x110a37=function(_0x409b69,_0x2d1dc5){const _0x1633e2=Array[_0x1deb('0xc')](_0x2d1dc5['authors'])[_0x1deb('0x27')](_0x5bc5f1=>_0x5bc5f1!=_0x2d1dc5['creator']);return _0x2d1dc5['creator']&&_0x1633e2[_0x1deb('0x6')](_0x2d1dc5[_0x1deb('0x17')]),_0x1633e2['map'](_0x1e701c=>new _0x22cb50(_0x409b69,_0x1e701c,_0x1e701c==_0x2d1dc5['creator']));}(_0x26690f,_0x28eba3);this['id']=_0x28eba3['id'],this[_0x1deb('0x26')]=_0x28eba3,this[_0x1deb('0x1b')](_0x1deb('0xb'),_0x1deb('0x20'))['to'](_0x28eba3),this[_0x1deb('0x1b')](_0x1deb('0x4'))['to'](this,'createdAt',_0x1e5e9e=>_0x1e5e9e?_0xf034d9(_0x26690f[_0x1deb('0x1')],_0x1e5e9e):void 0x0),this[_0x1deb('0x12')]('isSelected',!0x1),this[_0x1deb('0x12')](_0x1deb('0x5'),!0x1),this[_0x1deb('0x12')](_0x1deb('0x10'),!0x1),this[_0x1deb('0x12')](_0x1deb('0x8'),!0x1),this['set'](_0x1deb('0x21'),!0x1),this['revisionNameView']=new _0x23fa6(_0x26690f,_0x14a64a),this[_0x1deb('0x23')]['fieldView'][_0x1deb('0xe')]({'attributes':{'maxlength':_0x1deb('0x15')}}),this[_0x1deb('0x23')][_0x1deb('0x7')][_0x1deb('0x1b')]('value','placeholder')['to'](this,_0x1deb('0xb'),_0x1deb('0x4')),this[_0x1deb('0x23')][_0x1deb('0x1b')](_0x1deb('0x21'))['to'](this,'isSelected',this,'isEnabled',(_0x757f83,_0x1bd4a6)=>_0x757f83&&_0x1bd4a6),this[_0x1deb('0x11')]=_0x4248d5&&_0x4248d5['length']?_0x4a8416(this,_0x4248d5):'',this['revisionActionsView']&&this['revisionActionsView'][_0x1deb('0x1b')](_0x1deb('0x21'))['to'](this),this[_0x1deb('0x18')]({'tag':_0x1deb('0xd'),'attributes':{'class':['ck','ck-reset',_0x1deb('0x25'),_0x5c435b['if'](_0x1deb('0x1e'),_0x1deb('0x14'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x1deb('0x1c'),_0x1deb('0x2'),_0x5c435b['if'](_0x1deb('0x21'),'ck-disabled',_0x1a88cd=>!_0x1a88cd),_0x5c435b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5c435b['if'](_0x1deb('0x5'),_0x1deb('0x19')),_0x5c435b['if'](_0x1deb('0x10'),_0x1deb('0x9'))]},'children':[this['revisionNameView'],{'tag':_0x1deb('0x24'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5c435b['to'](_0x1deb('0x4'))}]},{'tag':_0x1deb('0xd'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x110a37}]},this['revisionActionsView']],'on':{'click':_0x5c435b['to'](_0x58f515=>{_0x58f515[_0x1deb('0x3')]['closest'](_0x1deb('0x1d'))||this[_0x1deb('0x8')]&&this['isEnabled']&&this[_0x1deb('0x22')]('select',{'id':this['id']});})}}]});}[_0x1deb('0xf')](){super[_0x1deb('0xf')]();const _0xea2c0b=this['revisionNameView'][_0x1deb('0x7')][_0x1deb('0x1a')];this['listenTo'](_0xea2c0b,'change',()=>{this[_0x1deb('0x22')]('setName',{'id':this['id'],'name':_0xea2c0b['value']});});}[_0x1deb('0x1f')](){this['isSelected']=!0x0;}[_0x1deb('0xa')](){this[_0x1deb('0x13')]=!0x1;}[_0x1deb('0x0')](){this[_0x1deb('0x5')]=!0x0;}[_0x1deb('0x28')](){this[_0x1deb('0x5')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d7b=['true','_isCollapsed','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','button','ck-revision-history-sidebar__subrevision-collapser','false','toggle','set','ck-hidden','click'];(function(_0x3b6698,_0x4d7b09){const _0x2d8bb9=function(_0xe9347c){while(--_0xe9347c){_0x3b6698['push'](_0x3b6698['shift']());}};_0x2d8bb9(++_0x4d7b09);}(_0x4d7b,0x15d));const _0x2d8b=function(_0x3b6698,_0x4d7b09){_0x3b6698=_0x3b6698-0x0;let _0x2d8bb9=_0x4d7b[_0x3b6698];return _0x2d8bb9;};import{View as _0x30e74f}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x30e74f{constructor(_0x101097){super(_0x101097);const _0xebb4a7=this['bindTemplate'];this[_0x2d8b('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2d8b('0x7')]({'tag':_0x2d8b('0x5'),'attributes':{'class':['ck',_0x2d8b('0x9'),_0xebb4a7['if'](_0x2d8b('0x3'),_0x2d8b('0xd'),_0x5eda87=>!_0x5eda87),_0xebb4a7['if'](_0x2d8b('0x2'),_0x2d8b('0x6'))],'role':_0x2d8b('0x8'),'aria-pressed':_0xebb4a7['to']('_isCollapsed',_0x340bf2=>_0x340bf2?_0x2d8b('0xa'):_0x2d8b('0x1'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x2d8b('0x4')]}}],'on':{'click':_0xebb4a7['to'](_0x2d8b('0x0'))}});}[_0x2d8b('0xb')](){this[_0x2d8b('0x2')]=!this['_isCollapsed'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17c5=['isSelected','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__subrevision','bindTemplate','fire','set','deselect','uiLanguage','createdAt','select','ck-revision-history-sidebar__revision_selected','bind','span','creator','setTemplate','_createdAtFormatted','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision'];(function(_0x50139a,_0x17c558){const _0x6bfc04=function(_0x55ecc9){while(--_0x55ecc9){_0x50139a['push'](_0x50139a['shift']());}};_0x6bfc04(++_0x17c558);}(_0x17c5,0x1b4));const _0x6bfc=function(_0x50139a,_0x17c558){_0x50139a=_0x50139a-0x0;let _0x6bfc04=_0x17c5[_0x50139a];return _0x6bfc04;};import{View as _0x1d7e07}from'ckeditor5/src/ui';import _0xe8d692 from'./revisionauthorview';import{dateToPrettyFormat as _0x3b27d7}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1d7e07{constructor(_0x4e570a,_0x11889c,_0x2dab6e){super(_0x4e570a);const _0x539ffe=this[_0x6bfc('0x11')];this['id']=_0x11889c['id'],this[_0x6bfc('0x7')]('createdAt')['to'](_0x11889c),this[_0x6bfc('0x1')](_0x6bfc('0xe'),!0x1),this[_0x6bfc('0x7')]('_createdAtFormatted')['to'](this,_0x6bfc('0x4'),_0x235047=>_0x235047?_0x3b27d7(_0x4e570a[_0x6bfc('0x3')],_0x235047):void 0x0),this['_parentRevisionId']=_0x2dab6e,this[_0x6bfc('0xa')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x6bfc('0xd'),_0x6bfc('0x10'),_0x539ffe['if'](_0x6bfc('0xe'),_0x6bfc('0x6'))]},'children':[{'tag':_0x6bfc('0x8'),'attributes':{'class':['ck',_0x6bfc('0xc')]},'children':[{'text':_0x539ffe['to'](_0x6bfc('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0x6bfc('0xf')]},'children':[new _0xe8d692(_0x4e570a,_0x11889c[_0x6bfc('0x9')],!0x0)]}],'on':{'click':_0x539ffe['to'](this[_0x6bfc('0x5')][_0x6bfc('0x7')](this))}});}[_0x6bfc('0x5')](){this[_0x6bfc('0xe')]=!0x0,this[_0x6bfc('0x0')](_0x6bfc('0x5'),{'parentId':this['_parentRevisionId']});}[_0x6bfc('0x2')](){this[_0x6bfc('0xe')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1a07=['long','toLocaleDateString','numeric','toLocaleTimeString'];(function(_0xa3a6af,_0x1a07dc){var _0x2fda54=function(_0x4bb083){while(--_0x4bb083){_0xa3a6af['push'](_0xa3a6af['shift']());}};_0x2fda54(++_0x1a07dc);}(_0x1a07,0x8e));var _0x2fda=function(_0xa3a6af,_0x1a07dc){_0xa3a6af=_0xa3a6af-0x0;var _0x2fda54=_0x1a07[_0xa3a6af];return _0x2fda54;};export function dateToPrettyFormat(_0x534776,_0x8ed24f){return _0x8ed24f[_0x2fda('0x3')](_0x534776,{'month':_0x2fda('0x2'),'day':_0x2fda('0x0')})+',\x20'+_0x8ed24f[_0x2fda('0x1')](_0x534776,{'hour':_0x2fda('0x0'),'minute':_0x2fda('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5be9=['extendTemplate','keystrokes','listenTo','revisionNameInputView','input','setTemplate','forEach','render','value','revisionNameInputValue','ck-button-save','ck-responsive-form','arrowdown','Name\x20of\x20the\x20revision\x20(optional)','fieldView','check','cancelButtonView','ck-button-cancel','execute','submit','label','focus','locale','ck-revision-history-save-revision-form','_focusCycler','trim','Save','220','shift\x20+\x20tab','saveButtonView','Cancel','set','cancel','element','_createButton','arrowright','add','arrowleft','revisionName','_createRevisionNameInput','focusTracker','focusFirst','stopPropagation'];(function(_0x2226aa,_0x5be93c){const _0x17ed56=function(_0x3c8d02){while(--_0x3c8d02){_0x2226aa['push'](_0x2226aa['shift']());}};_0x17ed56(++_0x5be93c);}(_0x5be9,0xf3));const _0x17ed=function(_0x2226aa,_0x5be93c){_0x2226aa=_0x2226aa-0x0;let _0x17ed56=_0x5be9[_0x2226aa];return _0x17ed56;};import{icons as _0xe9a11d}from'ckeditor5/src/core';import{ButtonView as _0x1e15e4,FocusCycler as _0x57a876,LabeledFieldView as _0x318212,View as _0x47a003,ViewCollection as _0x45baa8,createLabeledInputText as _0x1478b1,injectCssTransitionDisabler as _0x50c8fd,submitHandler as _0x5a2f22}from'ckeditor5/src/ui';import{FocusTracker as _0x321ce5,KeystrokeHandler as _0x2428c8}from'ckeditor5/src/utils';import{getTranslation as _0x3abda9}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x47a003{constructor(_0x598192){super(_0x598192),this[_0x17ed('0xc')]=new _0x321ce5(),this['keystrokes']=new _0x2428c8(),this[_0x17ed('0x3')](_0x17ed('0x18'),''),this[_0x17ed('0x12')]=this[_0x17ed('0xb')](),this[_0x17ed('0x1')]=this[_0x17ed('0x6')](_0x3abda9(_0x598192,_0x17ed('0x29')),_0xe9a11d[_0x17ed('0x1e')],_0x17ed('0x19')),this[_0x17ed('0x1')]['type']=_0x17ed('0x22'),this[_0x17ed('0x1f')]=this[_0x17ed('0x6')](_0x3abda9(_0x598192,_0x17ed('0x2')),_0xe9a11d[_0x17ed('0x4')],_0x17ed('0x20'),_0x17ed('0x4')),this['_focusables']=new _0x45baa8(),this[_0x17ed('0x27')]=new _0x57a876({'focusables':this['_focusables'],'focusTracker':this[_0x17ed('0xc')],'keystrokeHandler':this[_0x17ed('0x10')],'actions':{'focusPrevious':_0x17ed('0x0'),'focusNext':'tab'}}),this[_0x17ed('0x14')]({'tag':'form','attributes':{'class':['ck',_0x17ed('0x26'),_0x17ed('0x1a')],'tabindex':'-1'},'children':[this[_0x17ed('0x12')],this[_0x17ed('0x1')],this[_0x17ed('0x1f')]]}),_0x50c8fd(this);}[_0x17ed('0x16')](){super['render'](),_0x5a2f22({'view':this}),([this[_0x17ed('0x12')],this['saveButtonView'],this['cancelButtonView']][_0x17ed('0x15')](_0x417d46=>{this['_focusables'][_0x17ed('0x8')](_0x417d46),this[_0x17ed('0xc')]['add'](_0x417d46['element']);}),this['keystrokes'][_0x17ed('0x11')](this[_0x17ed('0x5')]));const _0x38afa2=_0x40f59f=>_0x40f59f[_0x17ed('0xe')]();this[_0x17ed('0x10')]['set'](_0x17ed('0x7'),_0x38afa2),this[_0x17ed('0x10')][_0x17ed('0x3')](_0x17ed('0x9'),_0x38afa2),this[_0x17ed('0x10')][_0x17ed('0x3')]('arrowup',_0x38afa2),this[_0x17ed('0x10')][_0x17ed('0x3')](_0x17ed('0x1b'),_0x38afa2);}[_0x17ed('0x24')](){this[_0x17ed('0x27')][_0x17ed('0xd')]();}get[_0x17ed('0xa')](){return this['revisionNameInputView'][_0x17ed('0x1d')][_0x17ed('0x5')][_0x17ed('0x17')][_0x17ed('0x28')]();}set[_0x17ed('0xa')](_0x3b379e){this[_0x17ed('0x12')][_0x17ed('0x1d')][_0x17ed('0x5')]['value']=_0x3b379e[_0x17ed('0x28')]();}['reset'](){this[_0x17ed('0x12')]['fieldView'][_0x17ed('0x5')]['value']='';}['_createRevisionNameInput'](){const _0x269ea7=new _0x318212(this['locale'],_0x1478b1),_0x49c9ac=_0x269ea7['fieldView'];return _0x49c9ac[_0x17ed('0xf')]({'attributes':{'maxlength':_0x17ed('0x2a')}}),_0x269ea7[_0x17ed('0x23')]=_0x3abda9(this[_0x17ed('0x25')],_0x17ed('0x1c')),_0x49c9ac['on'](_0x17ed('0x13'),()=>{this[_0x17ed('0x18')]=_0x49c9ac[_0x17ed('0x5')]['value'][_0x17ed('0x28')]();}),_0x269ea7;}[_0x17ed('0x6')](_0x5ac512,_0x58cf49,_0x222ab2,_0x6ee74f){const _0x21de45=new _0x1e15e4(this['locale']);return _0x21de45[_0x17ed('0x3')]({'label':_0x5ac512,'icon':_0x58cf49,'tooltip':!0x0}),_0x21de45[_0x17ed('0xf')]({'attributes':{'class':_0x222ab2}}),_0x6ee74f&&_0x21de45['delegate'](_0x17ed('0x21'))['to'](this,_0x6ee74f),_0x21de45;}}
|