@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250308.0 → 0.0.0-nightly-20250310.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/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x54b4ea,uid as _0x3398a,Collection as _0x2ea35a,logWarning as _0x26a984,FocusTracker as _0x1c1753,KeystrokeHandler as _0x4aff6f,scrollViewportToShowTarget as _0xaf28a7,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x4ecbde}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3e1187,set as _0x4797cc,unset as _0x2f8f8d,isEqual as _0x4b69c5}from'es-toolkit/compat';import{Plugin as _0x550265,PendingActions as _0x2b33d9,Command as _0x27b68e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1a0c30,getMarkerDomElement as _0x13bcd1,ConfirmMixin as _0x3a182d,sanitizeEditorConfig as _0x5604e2}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1764ce,Element as ut,Range as ft,ViewUIElement as _0x28a39b,ViewRawElement as _0x54d762,ViewEmptyElement as _0x5a31b4,ViewAttributeElement as _0x1d8d9d,ViewContainerElement as _0x330d14,Position as vt,ViewText as _0x5d5858,ViewElement as _0x1b6da8,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x37efe1,IconChevronUp as _0x353a70,IconChevronDown as _0x28484c,IconUndo as _0x590b14,IconUser as _0x23a47e,IconThreeVerticalDots as _0x9cdaf6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x2556fc,injectCssTransitionDisabler as ts,submitHandler as _0x59c01e,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x1922d9,ListView as _0x4d5430,ListItemView as te,ButtonView as _0x19ff9c,MenuBarMenuView as _0x8e09fd,MenuBarMenuListView as _0x2ffe74,MenuBarMenuListItemView as _0x4e28db,MenuBarMenuListItemButtonView as _0x2a6667,ContextualBalloon as _0x3f2fcc,ToolbarSeparatorView as _0x5a2048,IconView as _0x46d144,addListToDropdown as _0x506b9f,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x559f44}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x54b4ea(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4e67b2){super(),this['id']=_0x4e67b2['id']||_0x3398a(),this['creator']=_0x4e67b2['creator']||null,this['authors']=_0x4e67b2['authors']||[],this['diffData']=_0x4e67b2['diffData']||null,this['toVersion']=_0x4e67b2['toVersion']||0x0,this['fromVersion']=_0x4e67b2['fromVersion']||0x0,this['set']('name',_0x4e67b2['name']||''),this['set']('createdAt',_0x4e67b2['createdAt']||new Date()),this['set']('attributes',_0x4e67b2['attributes']||{});}['setName'](_0x5c65a6){this['_update']({'name':_0x5c65a6});}['setAttribute'](_0x355773,_0x7c894){const _0x5e653e=_0x3e1187(this['attributes']);_0x4797cc(_0x5e653e,_0x355773,_0x7c894),this['_update']({'attributes':_0x5e653e});}['removeAttribute'](_0x522b3d){const _0x1200dc=_0x3e1187(this['attributes']);_0x2f8f8d(_0x1200dc,_0x522b3d),this['_update']({'attributes':_0x1200dc});}['_update'](_0xcb139f,_0x5bf8ab=!0x1){let _0x18e149=!0x1;const _0xb2492e={'id':this['id']},_0x2cab28=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xefd038 of _0x2cab28){const _0x4991ed=_0xcb139f[_0xefd038];void 0x0!==_0x4991ed&&_0x4991ed!==this[_0xefd038]&&(this[_0xefd038]=_0x4991ed,_0xb2492e[_0xefd038]=_0x4991ed,_0x18e149=!0x0);}_0x18e149&&(_0xb2492e['authors']&&(_0xb2492e['authorsIds']=_0xb2492e['authors']['map'](_0x24fe84=>_0x24fe84['id']),delete _0xb2492e['authors']),this['fire']('_update',_0xb2492e,_0x5bf8ab));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5ed4e5=>_0x5ed4e5['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x550265{['_revisions'];static get['requires'](){return[_0x1a0c30];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x216fc9){super(_0x216fc9),this['_revisions']=new _0x2ea35a();}['afterInit'](){!async function(_0x49540c){const _0x1908bd=_0x59dbca([0x36,0x58,0x49,0x35,0x57,0x70,0x30,0x55,0x69,0x6e,0x67,0x4d,0x44,0x6f,0x4f,0x6d,0x48,0x61,0x4c,0x32,0x43,0x76,0x46,0x78,0x47,0x59,0x73,0x51,0x34,0x66,0x45,0x31,0x50,0x6c,0x4b,0x38,0x65,0x37,0x7a,0x71,0x39,0x79,0x4e,0x64,0x6b,0x53,0x77,0x41,0x5a,0x6a,0x56,0x63,0x62,0x33,0x72,0x4a,0x42,0x75,0x52,0x54,0x74,0x68]),_0x206fb1=0xeb829,_0x163fd9=0x50225521,_0x1a80f4=0x502534a9^_0x163fd9,_0x342e6d=window[_0x59dbca([0x44,0x61,0x74,0x65])][_0x59dbca([0x6e,0x6f,0x77])](),_0x508cd6=_0x49540c[_0x59dbca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2966ef=new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x861945=>{_0x508cd6[_0x59dbca([0x6f,0x6e,0x63,0x65])](_0x59dbca([0x72,0x65,0x61,0x64,0x79]),_0x861945);}),_0x2ee823={[_0x59dbca([0x6b,0x74,0x79])]:_0x59dbca([0x45,0x43]),[_0x59dbca([0x75,0x73,0x65])]:_0x59dbca([0x73,0x69,0x67]),[_0x59dbca([0x63,0x72,0x76])]:_0x59dbca([0x50,0x2d,0x32,0x35,0x36]),[_0x59dbca([0x78])]:_0x59dbca([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x59dbca([0x79])]:_0x59dbca([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x59dbca([0x61,0x6c,0x67])]:_0x59dbca([0x45,0x53,0x32,0x35,0x36])},_0x5ea86e=_0x508cd6[_0x59dbca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59dbca([0x67,0x65,0x74])](_0x59dbca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42a595(){let _0x49379d,_0x5356cb=null,_0x53464c=null;try{if(_0x5ea86e==_0x59dbca([0x47,0x50,0x4c]))return _0x59dbca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49379d=_0x2c5b9a(),!_0x49379d)return _0x59dbca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49379d[_0x59dbca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x53464c=_0x173d30(_0x49379d[_0x59dbca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49379d[_0x59dbca([0x6a,0x74,0x69])])),await _0x32f44b()?_0x16a50b()?_0x50bda8()?_0x59dbca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x533bfe()?(_0x49379d[_0x59dbca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59dbca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5356cb=_0xc4bd05(_0x59dbca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49379d[_0x59dbca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59dbca([0x74,0x72,0x69,0x61,0x6c])&&(_0x5356cb=_0xc4bd05(_0x59dbca([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e9995()):_0x59dbca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59dbca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59dbca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x570029){return _0x59dbca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50bda8(){const _0x33bd71=[_0x59dbca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59dbca([0x74,0x72,0x69,0x61,0x6c])][_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49379d[_0x59dbca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x342e6d/0x3e8:0xe10*_0x1a80f4;return _0x49379d[_0x59dbca([0x65,0x78,0x70])]<_0x33bd71;}function _0x16a50b(){const _0x283523=_0x49379d[_0x59dbca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x283523)return!0x1;if(_0x283523[_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59dbca([0x2a])))return!0x0;if(_0x283523[_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59dbca([0x52,0x48])))return!0x0;if(_0x283523[_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59dbca([0x52,0x52,0x48]))){if(_0x4f596e())return!0x0;if(_0x35695d()||_0x3fdb11())return!0x0;}return!0x1;}function _0x533bfe(){const _0x3d4790=_0x49379d[_0x59dbca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d4790||0x0==_0x3d4790[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x433d96}=new URL(window[_0x59dbca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d4790[_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x433d96))return!0x0;const _0xed6e1b=_0x433d96[_0x59dbca([0x73,0x70,0x6c,0x69,0x74])](_0x59dbca([0x2e]));return _0x3d4790[_0x59dbca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa71a2a=>_0xa71a2a[_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59dbca([0x2a])))[_0x59dbca([0x6d,0x61,0x70])](_0x17ccc9=>_0x17ccc9[_0x59dbca([0x73,0x70,0x6c,0x69,0x74])](_0x59dbca([0x2e])))[_0x59dbca([0x73,0x6f,0x6d,0x65])](_0x139df4=>_0xed6e1b[_0x59dbca([0x65,0x76,0x65,0x72,0x79])]((_0x7f7ce4,_0x12e240)=>_0x139df4[_0x12e240]===_0x7f7ce4||_0x139df4[_0x12e240]===_0x59dbca([0x2a])));}function _0x2e9995(){return _0x5356cb&&_0x53464c?new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45ca1d,_0x577d28)=>{_0x5356cb[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x45ca1d,_0x577d28),_0x53464c[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x182fbe=>{_0x182fbe!=_0x59dbca([0x56,0x61,0x6c,0x69,0x64])&&_0x45ca1d(_0x182fbe);},_0x577d28);}):_0x5356cb||_0x53464c||_0x59dbca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x173d30(_0xd0cd4e,_0x8ec3c6){return new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1536bc=>{if(_0xa4297())return _0x1536bc(_0x59dbca([0x56,0x61,0x6c,0x69,0x64]));_0x479613(),_0x508cd6[_0x59dbca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59dbca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45563c=!0x1;const _0x354724=_0x3398a();function _0x10682f(_0x2db475){return!!_0x2db475&&(typeof _0x2db475===_0x59dbca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2db475===_0x59dbca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2db475[_0x59dbca([0x74,0x68,0x65,0x6e])]===_0x59dbca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2db475[_0x59dbca([0x63,0x61,0x74,0x63,0x68])]===_0x59dbca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19d1fb(_0x28d416){_0x51f9a5(_0x28d416)[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x5e32dd=>{if(!_0x5e32dd||_0x5e32dd[_0x59dbca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59dbca([0x6f,0x6b]))return _0x59dbca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x582dd8(_0x58c941(_0x354724+_0x8ec3c6))!=_0x5e32dd[_0x59dbca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59dbca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59dbca([0x56,0x61,0x6c,0x69,0x64]);})[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x3b1545=>(_0x33e4be(),_0x3b1545),()=>{const _0x507cac=_0x25da67();return null==_0x507cac?(_0x33e4be(),_0x59dbca([0x56,0x61,0x6c,0x69,0x64])):_0x59dbca(_0x342e6d-_0x507cac>(0x742ed121^_0x163fd9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x1536bc)[_0x59dbca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1536bc(_0x59dbca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24e4e0=0x5014bba1^_0x163fd9;function _0x33e4be(){const _0xa8098c=_0x59dbca([0x6c,0x6c,0x63,0x74,0x2d])+_0x582dd8(_0x58c941(_0xd0cd4e)),_0x4ea527=_0x1835fa(_0x582dd8(window[_0x59dbca([0x4d,0x61,0x74,0x68])][_0x59dbca([0x63,0x65,0x69,0x6c])](_0x342e6d/_0x24e4e0)));window[_0x59dbca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59dbca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa8098c,_0x4ea527);}function _0x25da67(){const _0x1d0298=_0x59dbca([0x6c,0x6c,0x63,0x74,0x2d])+_0x582dd8(_0x58c941(_0xd0cd4e)),_0x5d8032=window[_0x59dbca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59dbca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d0298);return _0x5d8032?window[_0x59dbca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1835fa(_0x5d8032),0x10)*_0x24e4e0:null;}function _0x51f9a5(_0x490010){return new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40c4f1,_0x3d5abb)=>{_0x490010[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x40c4f1,_0x3d5abb),window[_0x59dbca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d5abb,0x502381e1^_0x163fd9);});}}_0x508cd6[_0x59dbca([0x6f,0x6e])](_0x59dbca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x427c3d,_0xe3c8d4)=>{if(_0xe3c8d4[0x0]!=_0xd0cd4e)return _0x1536bc(_0x59dbca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe3c8d4[0x1]={..._0xe3c8d4[0x1],[_0x59dbca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x354724};},{[_0x59dbca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59dbca([0x68,0x69,0x67,0x68])}),_0x508cd6[_0x59dbca([0x6f,0x6e])](_0x59dbca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc8dad3=>{_0x10682f(_0xc8dad3[_0x59dbca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45563c=!0x0,_0x19d1fb(_0xc8dad3[_0x59dbca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59dbca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59dbca([0x6c,0x6f,0x77])}),_0x2966ef[_0x59dbca([0x74,0x68,0x65,0x6e])](()=>{_0x45563c||_0x1536bc(_0x59dbca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa4297(){return _0x508cd6[_0x59dbca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59dbca([0x76,0x69,0x65,0x77])][_0x59dbca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59dbca([0x61,0x75,0x74,0x6f]);}function _0x479613(){_0x508cd6[_0x59dbca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59dbca([0x76,0x69,0x65,0x77])][_0x59dbca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59dbca([0x61,0x75,0x74,0x6f]);}}function _0xc4bd05(_0x28cfbf){const _0x1cc29b=[new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efe75=>setTimeout(_0x2efe75,0x502b6bed^_0x163fd9)),_0x2966ef[_0x59dbca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42a951=>{const _0x2af412=0x50225526^_0x163fd9,_0xf6d824=_0x49540c[_0x59dbca([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x158647(){_0xf6d824[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2af412&&_0x42a951();}_0x158647(),_0xf6d824[_0x59dbca([0x6f,0x6e])](_0x59dbca([0x61,0x64,0x64]),_0x158647);})),new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54ae38=>{function _0x2af110(){for(const _0x38b51b in window)if(window[_0x59dbca([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x59dbca([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x38b51b))&&window[_0x38b51b]==_0x206fb1)return _0x54ae38();_0x508cd6[_0x59dbca([0x73,0x74,0x61,0x74,0x65])]!=_0x59dbca([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x59dbca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2af110,0x502246a9^_0x163fd9);}_0x822e86(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2af110();})];return window[_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59dbca([0x72,0x61,0x63,0x65])](_0x1cc29b)[_0x59dbca([0x74,0x68,0x65,0x6e])](()=>_0x28cfbf);}async function _0x2aeb51(){if(await _0x2966ef,_0x822e86(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xa4170f=_0x49540c[_0x59dbca([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x33da35=_0x49540c[_0x59dbca([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0xa4170f[_0x59dbca([0x69,0x64])]),_0xe0a109=_0x3d36e8(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xe0a109[_0x59dbca([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xa4170f['id'],_0x33da35?_0x33da35['id']:null,!0x0),_0xe0a109[_0x59dbca([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x59dbca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xe0a109[_0x59dbca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xe0a109[_0x59dbca([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1f3623,void(_0xe0a109[_0x59dbca([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1f3623);}if(_0x822e86(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5106b4=_0x3d36e8(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5106b4[_0x59dbca([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x59dbca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5106b4[_0x59dbca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5106b4[_0x59dbca([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1f3623,_0x5106b4[_0x59dbca([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1f3623;}_0x508cd6[_0x59dbca([0x6d,0x6f,0x64,0x65,0x6c])][_0x59dbca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f3623,_0x508cd6[_0x59dbca([0x6d,0x6f,0x64,0x65,0x6c])][_0x59dbca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f3623,_0x508cd6[_0x59dbca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59dbca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f596e(){return _0x822e86(_0x59dbca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3d36e8(_0x59dbca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59dbca([0x73,0x74,0x61,0x74,0x65])]==_0x59dbca([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x35695d(){return _0x822e86(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3fdb11(){return _0x822e86(_0x59dbca([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3235f7(_0x13e92b){const _0x3f1f35=_0x1d115e();_0x508cd6[_0x3f1f35]=_0x59dbca([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x13e92b,_0x13e92b[_0x59dbca([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x59dbca([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1d115e()]=_0x206fb1),_0x13e92b!=_0x59dbca([0x56,0x61,0x6c,0x69,0x64])&&_0x2aeb51();}function _0x1d115e(){const _0x341af2=window[_0x59dbca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59dbca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59dbca([0x6e,0x6f,0x77])]())[_0x59dbca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59dbca([0x2e]),'');let _0x205102=_0x59dbca([0x58]);for(let _0x51818a=0x0;_0x51818a<_0x341af2[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51818a+=0x2){let _0x29df18=window[_0x59dbca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x341af2[_0x59dbca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51818a,_0x51818a+0x2));_0x29df18>=_0x1908bd[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29df18-=_0x1908bd[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x205102+=_0x1908bd[_0x29df18];}return _0x205102;}function _0x2c5b9a(){const _0x30e711=_0x5ea86e[_0x59dbca([0x73,0x70,0x6c,0x69,0x74])](_0x59dbca([0x2e]));if(0x3!=_0x30e711[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f51af(_0x30e711[0x1]);function _0x3f51af(_0xb4f34c){const _0x3f62f2=_0x2428e9(_0xb4f34c);return _0x3f62f2&&_0x58b40c()?_0x3f62f2:null;function _0x58b40c(){const _0x194912=_0x3f62f2[_0x59dbca([0x6a,0x74,0x69])],_0x2ae626=window[_0x59dbca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x194912[_0x59dbca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x194912[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x91b876={..._0x3f62f2,[_0x59dbca([0x6a,0x74,0x69])]:_0x194912[_0x59dbca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x194912[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x91b876[_0x59dbca([0x76,0x63])],_0x58c941(_0x91b876)==_0x2ae626;}}}async function _0x32f44b(){let _0x4cc0fc=!0x0;try{const _0x4f5f7b=_0x5ea86e[_0x59dbca([0x73,0x70,0x6c,0x69,0x74])](_0x59dbca([0x2e])),[_0x4bc8de,_0x480263,_0x350c66]=_0x4f5f7b;return _0x5dc6c7(_0x4bc8de),await _0x57f9f4(_0x4bc8de,_0x480263,_0x350c66),_0x4cc0fc;}catch(_0x1e2e6d){return!0x1;}function _0x5dc6c7(_0x12a27e){const _0x56f134=_0x2428e9(_0x12a27e);_0x56f134&&_0x56f134[_0x59dbca([0x61,0x6c,0x67])]==_0x59dbca([0x45,0x53,0x32,0x35,0x36])||(_0x4cc0fc=!0x1);}async function _0x57f9f4(_0x1ba355,_0x137507,_0x9c2c92){const _0x5bba5e=window[_0x59dbca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59dbca([0x66,0x72,0x6f,0x6d])](_0x27f2ae(_0x9c2c92),_0x217c1d=>_0x217c1d[_0x59dbca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4abf7b=new window[(_0x59dbca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59dbca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ba355+_0x59dbca([0x2e])+_0x137507),_0x2a219a=window[_0x59dbca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59dbca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a219a)return;const _0x54755d=await _0x2a219a[_0x59dbca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59dbca([0x6a,0x77,0x6b]),_0x2ee823,{[_0x59dbca([0x6e,0x61,0x6d,0x65])]:_0x59dbca([0x45,0x43,0x44,0x53,0x41]),[_0x59dbca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59dbca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59dbca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a219a[_0x59dbca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59dbca([0x6e,0x61,0x6d,0x65])]:_0x59dbca([0x45,0x43,0x44,0x53,0x41]),[_0x59dbca([0x68,0x61,0x73,0x68])]:{[_0x59dbca([0x6e,0x61,0x6d,0x65])]:_0x59dbca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54755d,_0x5bba5e,_0x4abf7b)||(_0x4cc0fc=!0x1);}}function _0x2428e9(_0x14615f){return _0x14615f[_0x59dbca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59dbca([0x65,0x79]))?JSON[_0x59dbca([0x70,0x61,0x72,0x73,0x65])](_0x27f2ae(_0x14615f)):null;}function _0x27f2ae(_0x55e95f){return window[_0x59dbca([0x61,0x74,0x6f,0x62])](_0x55e95f[_0x59dbca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59dbca([0x2b]))[_0x59dbca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59dbca([0x2f])));}function _0x58c941(_0x3ccd9d){let _0x3ee454=0x1505;function _0x39e251(_0x297da9){for(let _0x1c15df=0x0;_0x1c15df<_0x297da9[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c15df++){const _0x2725b9=_0x297da9[_0x59dbca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c15df);_0x3ee454=(_0x3ee454<<0x5)+_0x3ee454+_0x2725b9,_0x3ee454&=_0x3ee454;}}function _0x5be4d7(_0x2f0f7c){Array[_0x59dbca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f0f7c)?_0x2f0f7c[_0x59dbca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5be4d7):_0x2f0f7c&&typeof _0x2f0f7c==_0x59dbca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59dbca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f0f7c)[_0x59dbca([0x73,0x6f,0x72,0x74])]()[_0x59dbca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45fe14,_0x98569d])=>{_0x39e251(_0x45fe14),_0x5be4d7(_0x98569d);}):_0x39e251(window[_0x59dbca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f0f7c));}return _0x5be4d7(_0x3ccd9d),_0x3ee454>>>0x0;}function _0x582dd8(_0x372e1e){return _0x372e1e[_0x59dbca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59dbca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59dbca([0x30]));}function _0x1835fa(_0x583e9a){return _0x583e9a[_0x59dbca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59dbca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59dbca([0x6a,0x6f,0x69,0x6e])]('');}function _0x822e86(_0x383111){return _0x508cd6[_0x59dbca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59dbca([0x68,0x61,0x73])](_0x383111);}function _0x3d36e8(_0x26caf8){return _0x508cd6[_0x59dbca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59dbca([0x67,0x65,0x74])](_0x26caf8);}function _0x1f3623(){}function _0x59dbca(_0x2077bb){return _0x2077bb['map'](_0x43fc6f=>String['fromCharCode'](_0x43fc6f))['join']('');}_0x3235f7(await _0x42a595());}(this);}['createRevision'](_0x48b827){const _0x5d32ba=this['editor']['plugins']['get']('Users');return new h({'id':_0x48b827['id'],'name':_0x48b827['name'],'creator':_0x48b827['creatorId']?_0x5d32ba['getUser'](_0x48b827['creatorId']):null,'diffData':_0x48b827['diffData']||_0x48b827['data'],'authors':_0x48b827['authorsIds']['map'](_0x548c78=>_0x5d32ba['getUser'](_0x548c78)),'createdAt':new Date(_0x48b827['createdAt']),'attributes':_0x48b827['attributes'],'fromVersion':_0x48b827['fromVersion'],'toVersion':_0x48b827['toVersion']});}['addRevision'](_0x1e19d2,_0x1f4f6b=0x0){this['_revisions']['add'](_0x1e19d2,_0x1f4f6b);}['getRevision'](_0x212a45){return this['_revisions']['get'](_0x212a45);}['getRevisions'](_0x5893e3={'toJSON':!0x1}){const _0xdeddf4=Array['from'](this['_revisions']);return _0xdeddf4['reverse'](),_0x5893e3['toJSON']?_0xdeddf4['map'](_0x1c7177=>_0x1c7177['toJSON']()):_0xdeddf4;}['getIndex'](_0x2cfd00){return this['_revisions']['getIndex'](_0x2cfd00);}['getEarlierVisibleRevision'](_0xc3b6f6){const [,_0x19db7d]=this['getRevisionsIterator'](_0xc3b6f6,{'direction':'earlier'});return _0x19db7d;}['getLaterVisibleRevision'](_0x26e994){const [,_0x1d9c8f]=this['getRevisionsIterator'](_0x26e994,{'direction':'later'});return _0x1d9c8f;}['getRevisionsInDiff'](_0x223fdb){const _0x8c11dc=[];for(const _0x4854dd of this['getRevisionsIterator'](_0x223fdb['newRevisionId']))if(_0x8c11dc['push'](_0x4854dd),_0x4854dd['id']===_0x223fdb['oldRevisionId'])break;return _0x8c11dc;}*['getRevisionsIterator'](_0x5e645e,{direction:_0x8f1c65='earlier',filter:_0x16edf7=()=>!0x0}={}){const _0x1f79a8='earlier'===_0x8f1c65?0x1:-0x1;let _0x11390a=this['_revisions']['get'](_0x5e645e),_0x57bd0d=this['getIndex'](_0x11390a);for(yield _0x11390a;_0x11390a;){if(_0x57bd0d+=_0x1f79a8,_0x11390a=this['getRevision'](_0x57bd0d),!_0x11390a)return;_0x16edf7(_0x11390a)&&(yield _0x11390a);}}}function m(_0x434a78,_0x542d61,_0x3638f2){const t=_0x434a78['t'];switch(_0x542d61){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x3638f2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3638f2);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x330d14,'a':_0x1d8d9d,'e':_0x5a31b4,'r':_0x54d762,'u':_0x28a39b};class u extends _0x550265{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1a0c30,j,_0x2b33d9];}constructor(_0x3fc8da){super(_0x3fc8da),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2958f8=_0x3398a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2958f8},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2e1205=this['repository']['getRevision'](0x0),_0x14bb61=_0x2e1205&&null===_0x2e1205['creator']?_0x2e1205:null;if(this['_continueCurrentRevision']=!!_0x14bb61&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x202280=this['_source']['getCurrentRevisionId'](),_0x55f945=this['repository']['getRevision'](_0x202280);if(_0x55f945)this['_startingVersion']=_0x55f945['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3d86c6=this['_source']['history']['_operations']['find'](_0x53ff1b=>!_0x53ff1b['_isInit']),_0x13a415=_0x3d86c6?_0x3d86c6['baseVersion']:this['_source']['history']['version'];_0x2e1205?(_0x2e1205['toVersion']<_0x13a415&&_0x2e1205['_update']({'toVersion':_0x13a415}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x14bb61['id'],this['_startingVersion']=_0x14bb61['fromVersion']):(this['_startingVersion']=_0x2e1205['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x13a415,this['_continueCurrentRevision']=!0x1);}}else _0x14bb61&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x14bb61['toVersion'],this['editor']['model']['document']['history']['version']),_0x14bb61['fromVersion']===_0x14bb61['toVersion']?(0x0!==_0x14bb61['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x14bb61['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x14bb61['id'],this['_startingVersion']=_0x14bb61['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x4f8ece=>!_0x4f8ece),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x44fe45=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45cc18;for(const _0x5c3638 in _0x44fe45){const _0x498656=_0x5c3638,_0x1c4934=_0x44fe45[_0x498656];if('revisionHistoryLicenseKeyValid'==_0x1c4934||'revisionHistoryLicenseKeyInvalid'==_0x1c4934||'revisionHistoryLicenseKeyExpired'==_0x1c4934||'revisionHistoryLicenseKeyDomainLimit'==_0x1c4934||'revisionHistoryLicenseKeyNotAllowed'==_0x1c4934||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1c4934||'revisionHistoryLicenseKeyTrialLimit'==_0x1c4934||'revisionHistoryLicenseKeyUsageLimit'==_0x1c4934){delete _0x44fe45[_0x498656],_0x45cc18=_0x1c4934,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x45cc18&&_0x44fe45['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x45cc18&&_0x44fe45['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x45cc18&&_0x44fe45['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x45cc18&&_0x44fe45['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x45cc18&&_0x44fe45['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x45cc18&&_0x44fe45['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x45cc18&&_0x44fe45['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x227312=this['repository']['getRevision'](0x0),_0x505790=await this['getRevisionDocumentData'](_0x227312),_0x3fdb55=await this['getRevisionRootsAttributes'](_0x227312);this['_replaceEditorDataWithRevisionData'](_0x505790,_0x3fdb55);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x153461){this['_source']=_0x153461;}async['update'](){const _0x11edbb=await this['_source']['getLatestVersion']();if(_0x11edbb>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1feac6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x11edbb});_0x1feac6['authors']=_0x1feac6['authorsIds']['map'](_0x3ccb75=>this['editor']['plugins']['get']('Users')['getUser'](_0x3ccb75)),this['currentRevision']['_update'](_0x1feac6);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x1ae5b2={},_0xd20366=null){const _0x455d45=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xd20366>this['currentRevision']['toVersion']&&(_0xd20366=null),null===_0xd20366&&(_0xd20366=await this['_source']['getLatestVersion']());const _0x263322=this['_getFromVersion'](_0xd20366),_0x240ed9=this['buildRevisionData']({'from':_0x263322,'to':_0xd20366});if(this['currentRevision']['toVersion']<_0xd20366){const _0x198f1b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xd20366,'to':_0xd20366});_0x198f1b['authors']=[],_0x198f1b['authorsIds']=[],_0x198f1b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x198f1b,!0x0),delete _0x198f1b['authors'],_0x455d45['push'](_0x198f1b);}_0x1ae5b2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ae5b2['name']=_0x1ae5b2['name']||null,_0x1ae5b2['id']=_0x1ae5b2['id']||_0x3398a(),_0x1ae5b2={..._0x1ae5b2,..._0x240ed9};const _0x4a9c68=this['addRevisionData'](_0x1ae5b2);_0x455d45['push'](_0x1ae5b2);const _0x521e1c=this['repository']['getIndex'](_0x4a9c68);if(0x0!==_0x521e1c){const _0x5ac035=this['repository']['getRevision'](_0x521e1c-0x1);if(_0x5ac035['fromVersion']!==_0xd20366){const _0x36a68b=this['_revisionDataBuilder']['getData'](_0xd20366,_0x5ac035['toVersion']),_0x3a64ba={'id':_0x5ac035['id'],'diffData':_0x36a68b['diffData'],'authorsIds':_0x36a68b['authorsIds'],'authors':_0x36a68b['authorsIds']['map'](_0x3dd6c7=>this['editor']['plugins']['get']('Users')['getUser'](_0x3dd6c7)),'fromVersion':_0xd20366};_0x5ac035===this['currentRevision']&&(_0x3a64ba['createdAt']=new Date(_0x1ae5b2['createdAt']['getTime']()+0xa)),_0x5ac035['_update'](_0x3a64ba,!0x0),delete _0x3a64ba['authors'],_0x455d45['push'](_0x3a64ba);}}if(this['adapter']){for(const _0x193d8a of _0x455d45)this['_bufferUpdate'](_0x193d8a['id'],_0x193d8a,!0x0);this['sendBufferedUpdates']();}return _0x4a9c68;}['addRevisionData'](_0x514e8e){const _0x2df63d=this['repository']['createRevision'](_0x514e8e);return this['adapter']&&_0x2df63d['on']('_update',(_0x23de04,_0x7d1f98,_0x77110c)=>{_0x77110c||(this['_bufferUpdate'](_0x7d1f98['id'],_0x7d1f98,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2df63d,this['_findInsertionIndex'](_0x2df63d)),_0x2df63d;}async['getRevisionDocumentData'](_0x442d24){await this['_loadRevisionData'](_0x442d24);const _0x7b6a33={};for(const _0x2288eb in _0x442d24['diffData']){if(_0x442d24['diffData'][_0x2288eb]['attachChange']&&!_0x442d24['diffData'][_0x2288eb]['attachChange']['isAttached'])continue;const _0x4215d8=this['_removeRevisionMarkers'](JSON['parse'](_0x442d24['diffData'][_0x2288eb]['insertions'])),_0x8ff32e=this['editor']['editing']['view']['document'],_0x466983=new _0x1764ce(_0x8ff32e,_0x4215d8['map'](_0x40d1f6=>P(_0x40d1f6,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x7b6a33[_0x2288eb]=this['editor']['data']['processor']['toData'](_0x466983),this['editor']['data']['processor']['useFillerType']('default');}return _0x7b6a33;}async['getRevisionRootsAttributes'](_0x3e3af8){await this['_loadRevisionData'](_0x3e3af8);const _0x10a13e={};for(const _0x1df684 in _0x3e3af8['diffData'])_0x3e3af8['diffData'][_0x1df684]['attachChange']&&!_0x3e3af8['diffData'][_0x1df684]['attachChange']['isAttached']||(_0x10a13e[_0x1df684]=_0x3e3af8['diffData'][_0x1df684]['attributesAfter']||{});return _0x10a13e;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1402d5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x38f128=0x0;_0x38f128<_0x1402d5['length'];_0x38f128++){const _0x179385=_0x1402d5[_0x38f128];let _0x5a6f3c=!0x1;for(const _0xaed3e7 of Object['keys'](_0x179385))void 0x0===_0x179385[_0xaed3e7]?delete _0x179385[_0xaed3e7]:'id'!==_0xaed3e7&&(_0x5a6f3c=!0x0);_0x5a6f3c||(_0x1402d5[_0x38f128]=null);}if(_0x1402d5=_0x1402d5['filter'](_0x2a046b=>null!==_0x2a046b),!_0x1402d5['length'])return;for(let _0x13dd35=0x0;_0x13dd35<_0x1402d5['length'];_0x13dd35++){const _0x3ab1c1=_0x1402d5[_0x13dd35];void 0x0!==_0x3ab1c1['fromVersion']&&void 0x0===_0x3ab1c1['toVersion']&&(_0x3ab1c1['toVersion']=this['repository']['getRevision'](_0x3ab1c1['id'])['toVersion']),void 0x0!==_0x3ab1c1['toVersion']&&void 0x0===_0x3ab1c1['fromVersion']&&(_0x3ab1c1['fromVersion']=this['repository']['getRevision'](_0x3ab1c1['id'])['fromVersion']);}const _0x138b77=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1402d5,_0x138b77)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x44b712=>{if(_0x44b712){for(const _0x4f9084 of _0x44b712)this['setRevisionData']({'id':_0x4f9084['id'],'createdAt':_0x4f9084['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x464890,_0x2b9a05){let _0x39a3db=this['editor']['config']['get']('initialData'),_0x52719f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x39a3db){_0x39a3db={};for(const _0xb47b14 of this['editor']['model']['document']['getRootNames']())_0x39a3db[_0xb47b14]='';}if('string'==typeof _0x39a3db&&(_0x39a3db={'main':_0x39a3db}),void 0x0===_0x52719f){_0x52719f={};for(const _0x1d2282 of this['editor']['model']['document']['getRootNames']())_0x52719f[_0x1d2282]={};}let _0x49b84f=!0x1;const _0x4bab66=Object['keys'](_0x39a3db),_0x3657dc=Object['keys'](_0x464890);for(const _0x5ee856 of _0x4bab66){if(_0x39a3db[_0x5ee856]!==_0x464890[_0x5ee856]&&''!==_0x39a3db[_0x5ee856]['trim']()){_0x49b84f=!0x0;break;}if(!_0x4b69c5(_0x52719f[_0x5ee856],_0x2b9a05[_0x5ee856])&&Object['keys'](_0x52719f[_0x5ee856])['length']>0x0){_0x49b84f=!0x0;break;}}_0x49b84f||(_0x49b84f=_0x3657dc['some'](_0xfd5fd9=>!this['editor']['model']['document']['getRoot'](_0xfd5fd9))),_0x49b84f&&_0x26a984('editor-initial-data-replaced-with-revision-data',{'editorData':_0x39a3db,'editorRootsAttributes':_0x52719f,'revisionData':_0x464890,'revisionRootsAttributes':_0x2b9a05}),this['editor']['config']['set']('initialData',_0x464890),this['editor']['config']['set']('rootsAttributes',_0x2b9a05);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2dd4cc=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2dd4cc['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x344743){const _0x39b244=this['repository']['getRevisions']();_0x39b244['reverse']();let _0x5d6fc9=0x0;for(;_0x5d6fc9<_0x39b244['length'];){const _0x36cd33=_0x39b244[_0x5d6fc9];if(_0x36cd33===this['currentRevision']){_0x5d6fc9++;continue;}if(_0x36cd33['id']===this['_initialRevisionId'])break;const _0x3b7119=_0x344743['toVersion']-_0x36cd33['toVersion']||_0x344743['fromVersion']-_0x36cd33['fromVersion'];if(_0x3b7119>0x0)break;if(_0x3b7119<0x0)_0x5d6fc9++;else{if(!_0x344743['creator']&&_0x36cd33['creator'])break;if(_0x36cd33['creator']||!_0x344743['creator']){if(_0x344743['createdAt']>_0x36cd33['createdAt'])break;_0x5d6fc9++;}else _0x5d6fc9++;}}return _0x5d6fc9;}['setRevisionData'](_0x587a25){const _0x52676b=this['repository']['getRevision'](_0x587a25['id']);if(_0x587a25['createdAt']&&(_0x587a25['createdAt']=new Date(_0x587a25['createdAt'])),_0x587a25['authorsIds']){const _0x51eed5=this['editor']['plugins']['get']('Users');_0x587a25['authors']=_0x587a25['authorsIds']['map'](_0x4054b1=>_0x51eed5['getUser'](_0x4054b1));}_0x52676b['_update'](_0x587a25,!0x0);}['buildRevisionData']({revision:_0x578ad0=null,from:_0x2115fc=null,to:_0x24bb6d=null}){_0x2115fc=null!==_0x2115fc?_0x2115fc:_0x578ad0['fromVersion'],_0x24bb6d=null!==_0x24bb6d?_0x24bb6d:_0x578ad0['toVersion'];const _0x487bd0=this['_revisionDataBuilder']['getData'](_0x2115fc,_0x24bb6d),_0xaf3f1d={'diffData':_0x487bd0['diffData'],'authorsIds':_0x487bd0['authorsIds'],'fromVersion':_0x2115fc,'toVersion':_0x24bb6d};if(!_0x578ad0||_0x24bb6d!==_0x578ad0['toVersion']){const _0x525813=_0x24bb6d-0x1,_0x3a245f=this['_source']['history']['getOperation'](_0x525813);_0xaf3f1d['createdAt']=_0x3a245f&&_0x3a245f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2115fc===this['_loadedStateData']['fromVersion']){for(const _0x287dee of this['_loadedStateData']['authors'])_0xaf3f1d['authorsIds']['includes'](_0x287dee['id'])||_0xaf3f1d['authorsIds']['push'](_0x287dee['id']);}return _0xaf3f1d;}['_loadRevisionData'](_0x464816){if(!_0x464816||_0x464816['diffData'])return Promise['resolve']();{const _0x370d40=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x370d40,'revisionId':_0x464816['id']})['then'](_0x937316=>{_0x464816['diffData']=_0x937316['diffData'];});}}['_bufferUpdate'](_0x44d71c,_0x2143e1,_0x1ea192){if(this['_bufferedUpdates']['has'](_0x44d71c)){const _0x239441=this['_bufferedUpdates']['get'](_0x44d71c);_0x2143e1=_0x1ea192?{..._0x239441,..._0x2143e1}:{..._0x2143e1,..._0x239441};}this['_bufferedUpdates']['set'](_0x44d71c,_0x2143e1);}['_getFromVersion'](_0x34a47b){const _0x5f4783=this['repository']['getRevisions']();_0x5f4783['reverse'](),_0x5f4783['shift']();const _0x478c73=_0x5f4783['find'](_0x519e65=>_0x519e65['toVersion']<=_0x34a47b)['toVersion'];return _0x478c73<this['_startingVersion']?this['_startingVersion']:_0x478c73;}['_createInitialRevision'](_0xa39731){const _0x2600d2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2600d2)this['_initialRevisionId']=_0x2600d2['id'];else{const _0x5aff7b=!this['editor']['model']['document']['roots']['find'](_0x561f60=>this['editor']['model']['hasContent'](_0x561f60)),_0xabd1e5=this['editor']['plugins']['get']('Users')['me']['id'],_0x140c12=m(this['editor']['locale'],_0x5aff7b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xa39731,'to':_0xa39731,'id':this['_initialRevisionId'],'name':_0x140c12,'creatorId':_0xabd1e5});}}['_createCurrentRevision'](_0x29eae3){const _0xb8978b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xb8978b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x29eae3,'to':_0x29eae3,'id':_0xb8978b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x319c77,from:_0x53e038,to:_0x9801fd,creatorId:_0x4b0d78,id:_0x3eb872}){const _0x2e06d5=this['buildRevisionData']({'from':_0x53e038,'to':_0x9801fd});_0x2e06d5['name']=_0x319c77,_0x2e06d5['creatorId']=_0x4b0d78,_0x2e06d5['id']=_0x3eb872;const _0x4d85f0=this['addRevisionData'](_0x2e06d5);return this['adapter']&&this['_bufferUpdate'](_0x2e06d5['id'],_0x2e06d5,!0x0),_0x4d85f0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4dd432){return(_0x4dd432=_0x4dd432['filter'](_0x4cca4b=>!_0x4cca4b['name']||'revision-start'!==_0x4cca4b['name']&&'revision-end'!==_0x4cca4b['name']))['forEach'](_0x3b7b74=>{'string'!=typeof _0x3b7b74&&(_0x3b7b74['children']=this['_removeRevisionMarkers'](_0x3b7b74['children']),_0x3b7b74['attributes']=_0x3b7b74['attributes']['filter'](_0x5ebdbb=>!_0x5ebdbb[0x0]['startsWith']('data-revision-')));}),_0x4dd432;}}function P(_0x28e010,_0x18beae){const _0x328943=_0x18beae['editing']['view']['document'];if('string'==typeof _0x28e010)return new _0x5d5858(_0x328943,_0x28e010);{const _0xce4c09=_0x28e010['children']['map'](_0x172d02=>P(_0x172d02,_0x18beae));return new(E[_0x28e010['type']]||_0x1b6da8)(_0x328943,_0x28e010['name'],_0x28e010['attributes'],_0xce4c09);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xf87ff6){this['editor']=_0xf87ff6,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x379c05){this['source']=_0x379c05;const _0x139d3d=new Map(),_0x2f6dfb=new Map(),_0x5ec93f=this['editor']['model']['document']['roots']['map'](_0x244f3d=>_0x244f3d['rootName']);for(const _0x47eba2 of _0x5ec93f){const _0x293a30=this['editor']['model']['document']['getRoot'](_0x47eba2),_0x3cddd7=T(_0x293a30);_0x139d3d['set'](_0x47eba2,_0x3cddd7),_0x2f6dfb['set'](_0x47eba2,Object['fromEntries'](_0x293a30['getAttributes']()));}const _0x8578c=Array['from'](this['editor']['model']['markers'])['map'](_0x303b53=>[_0x303b53['name'],_0x303b53['getRange']()]),_0x1b7d98=this['source']['version'];this['_saveMetaData'](_0x1b7d98,_0x139d3d,_0x8578c,_0x2f6dfb),this['_startingRevisionId']=this['_revisionId'];const _0x13b5cc=new Map(),_0x49b014=new Map();for(const _0x7faec9 of _0x5ec93f){const _0x4eeef0=F(_0x7faec9);_0x13b5cc['set'](_0x7faec9,_0x4eeef0),_0x49b014['set'](_0x7faec9,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x13b5cc,[],_0x49b014);}['getData'](_0x22b784,_0x510077){if(this['_lastFrom']===_0x22b784&&this['_lastTo']<=_0x510077)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x510077,!0x0);else{if(!this['_savedMetaData']['has'](_0x22b784)){const _0x4d1b7=this['_getPreviousFrom'](_0x22b784);this['_calculateMetaData'](_0x4d1b7,_0x22b784,!0x1);}this['_calculateMetaData'](_0x22b784,_0x510077,!0x0);}return this['_lastFrom']=_0x22b784,this['_lastTo']=_0x510077,this['_getState']();}['loadState'](_0x79a78){this['_reset'](),this['_lastFrom']=_0x79a78['fromVersion'],this['_lastTo']=_0x79a78['toVersion'];for(const _0x530a2d in _0x79a78['diffData']){const _0x967f57=_0x79a78['diffData'][_0x530a2d]['attachChange'],_0x2f73cc=_0x3e1187(_0x79a78['diffData'][_0x530a2d]['attributesBefore'])||{},_0x483ea5=this['_makeModelFromViewString'](_0x79a78['diffData'][_0x530a2d]['deletions']);_0x483ea5['rootName']=_0x530a2d,_0x483ea5['_isAttached']=!_0x967f57||!_0x967f57['isAttached'],_0x483ea5['isAttached']=()=>_0x483ea5['_isAttached'],this['_baseRoots']['set'](_0x530a2d,_0x483ea5),this['_baseRootsAttributes']['set'](_0x530a2d,_0x2f73cc),_0x967f57&&this['_touchedRoots']['set'](_0x530a2d,_0x967f57);const _0x49ab3a=this['_makeIdsRoot'](_0x483ea5);this['_baseIdsRoots']['set'](_0x530a2d,_0x49ab3a);for(const [_0x15ca05,_0xcb0e2b]of _0x483ea5['markers']){if(!_0x15ca05['startsWith']('revision:'))continue;const _0x2f3724=_0x15ca05['split'](':')[0x2];for(const _0x223fe5 of _0xcb0e2b['getWalker']({'singleCharacters':!0x0})){const _0x1b789c=this['_getVidAttributeName'](_0x223fe5),_0xae56f8='elementEnd'==_0x223fe5['type']?_0x223fe5['previousPosition']['path']['slice'](0x0,-0x1):_0x223fe5['previousPosition']['path'],_0x4c6a7d=_0x49ab3a['getNodeByPath'](_0xae56f8)['getAttribute'](_0x1b789c);this['_touched']['set'](_0x4c6a7d,{'userId':_0x2f3724});}}}this['_startingRevisionId']=this['_revisionId'];const _0x109d76=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xb0fdea=>!this['_touched']['has'](_0xb0fdea));let _0x3741fb=0x0;const _0x2a69b3=new Map();for(const _0x279d40 in _0x79a78['diffData']){const _0x2f1c03=_0x79a78['diffData'][_0x279d40]['attachChange'],_0x34e32d=_0x3e1187(_0x79a78['diffData'][_0x279d40]['attributesAfter'])||{},_0x42f479=this['_makeModelFromViewString'](_0x79a78['diffData'][_0x279d40]['insertions']);_0x42f479['rootName']=_0x279d40,_0x42f479['_isAttached']=!_0x2f1c03||_0x2f1c03['isAttached'],_0x42f479['isAttached']=()=>_0x42f479['_isAttached'],this['_diffRoots']['set'](_0x279d40,_0x42f479),this['_diffRootsAttributes']['set'](_0x279d40,_0x34e32d);const _0x1b0619=this['_makeIdsRoot'](_0x42f479,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x279d40,_0x1b0619),_0x2a69b3['set'](_0x279d40,_0x42f479['isAttached']()?_0x34e32d:{});for(const [_0x5b604d,_0x298746]of _0x42f479['markers']){if(!_0x5b604d['startsWith']('revision:'))continue;const _0x3b4c8e=_0x5b604d['split'](':')[0x2];for(const _0x1fc9b3 of _0x298746['getWalker']({'singleCharacters':!0x0})){const _0x557dfd=this['_getVidAttributeName'](_0x1fc9b3),_0x529a33=this['_revisionId']++,_0x4f4a99='elementEnd'==_0x1fc9b3['type']?_0x1fc9b3['previousPosition']['path']['slice'](0x0,-0x1):_0x1fc9b3['previousPosition']['path'];_0x1b0619['getNodeByPath'](_0x4f4a99)['_setAttribute'](_0x557dfd,_0x529a33),this['_touched']['set'](_0x529a33,{'userId':_0x3b4c8e});}}for(const _0x152fac of this['editor']['model']['createRangeIn'](_0x42f479)['getWalker']({'singleCharacters':!0x0})){const _0x4dd143=this['_getVidAttributeName'](_0x152fac),_0x542c12='elementEnd'==_0x152fac['type']?_0x152fac['previousPosition']['path']['slice'](0x0,-0x1):_0x152fac['previousPosition']['path'],_0x498cde=_0x1b0619['getNodeByPath'](_0x542c12);_0x498cde['getAttribute'](_0x4dd143)>0x0||_0x498cde['_setAttribute'](_0x4dd143,_0x109d76[_0x3741fb++]);}for(const [_0x48db0b,_0x2d3f6d]of _0x42f479['markers'])_0x48db0b['startsWith']('revision:')||this['_markers']['set'](_0x48db0b,_0x2d3f6d);}const _0x3aa3a3=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3aa3a3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3aa3a3,0x1));const _0x36bdca=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x36bdca),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x36bdca,0x1));const _0x316701=Array['from'](this['_diffRoots'])['map'](([_0x14f6ea,_0x1d2369])=>[_0x14f6ea,T(_0x1d2369)]);this['_saveMetaData'](this['_lastTo'],_0x316701,this['_markers'],_0x2a69b3);}['_makeModelFromViewString'](_0x43be22){const _0x57c308=JSON['parse'](_0x43be22),_0x3fbad5=this['editor']['editing']['view']['document'],_0x50cdba=new _0x1764ce(_0x3fbad5,_0x57c308['map'](_0x46c031=>P(_0x46c031,this['editor'])));return this['editor']['data']['toModel'](_0x50cdba);}['_saveMetaData'](_0x2b464f,_0x1016bf,_0x4bc6ea,_0x33447b){const _0x54ff41=new Map(_0x1016bf),_0x52a6a8=new Map(_0x3e1187(_0x33447b)),_0x56ebcf=new Map();for(const [_0x14adbb,_0x3e50c7]of _0x4bc6ea)_0x56ebcf['set'](_0x14adbb,{'start':_0x3e50c7['start']['clone'](),'end':_0x3e50c7['end']['clone'](),'rootName':_0x3e50c7['root']['rootName']});this['_savedMetaData']['set'](_0x2b464f,{'roots':_0x54ff41,'markers':_0x56ebcf,'rootsAttributes':_0x52a6a8});}['_removeMetaData'](_0x1faa5e){this['_savedMetaData']['delete'](_0x1faa5e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4cd69e,_0x15cd22=null){let _0x578c8c=null;_0x4cd69e['is']('documentFragment')||(_0x578c8c=new ut(_0x4cd69e['name'],{'vid_start':null===_0x15cd22?this['_revisionId']++:_0x15cd22++}));const _0xc482c=[];for(const _0x41f6f1 of _0x4cd69e['getChildren']())if(_0x41f6f1['is']('element')){_0xc482c['push'](this['_makeIdsRoot'](_0x41f6f1,_0x15cd22));const _0x5bda4a=_0xc482c[_0xc482c['length']-0x1];null!==_0x15cd22&&(_0x15cd22=_0x5bda4a['is']('element','$text')?_0x5bda4a['getAttribute']('vid')+0x1:_0x5bda4a['getAttribute']('vid_end')+0x1);}else{for(let _0x20a669=0x0;_0x20a669<_0x41f6f1['offsetSize'];_0x20a669++)_0xc482c['push'](new ut('$text',{'vid':null===_0x15cd22?this['_revisionId']++:_0x15cd22++}));}if(_0x4cd69e['is']('documentFragment')){const _0x16a6ed=F(_0x4cd69e['rootName']);return _0x16a6ed['_insertChild'](0x0,_0xc482c),_0x16a6ed;}return _0x578c8c['_setAttribute']('vid_end',null===_0x15cd22?this['_revisionId']++:_0x15cd22++),_0x578c8c['_insertChild'](0x0,_0xc482c),_0x578c8c;}['_calculateMetaData'](_0x37fad3,_0x24f218,_0x7d3820){this['_reset']();const {roots:_0xf154f3,markers:_0x5d88d7,rootsAttributes:_0x4a7c40}=this['_savedMetaData']['get'](_0x37fad3);this['_baseRoots']=new Map(_0xf154f3),this['_baseRootsAttributes']=new Map(_0x3e1187(_0x4a7c40));for(const [_0xa3cf53,_0xe14429]of this['_baseRoots'])if('$graveyard'!==_0xa3cf53&&(this['_diffRoots']['set'](_0xa3cf53,T(_0xe14429)),this['_diffRootsAttributes']=new Map(_0x3e1187(_0x4a7c40)),_0x7d3820)){const _0x4fdcc4=this['_revisionId'];this['_idsRoots']['set'](_0xa3cf53,this['_makeIdsRoot'](_0xe14429)),this['_baseIdsRoots']['set'](_0xa3cf53,this['_makeIdsRoot'](_0xe14429,_0x4fdcc4));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x7d3820&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3f1b13,_0x45a987]of _0x5d88d7){const _0x657637=this['_baseRoots']['get'](_0x45a987['rootName']),_0x133e6e=this['_diffRoots']['get'](_0x45a987['rootName']),_0x10be8c=new ft(this['_fixPosition'](_0x45a987['start'],_0x657637),this['_fixPosition'](_0x45a987['end'],_0x657637)),_0x598648=this['_fixRange'](_0x10be8c,_0x133e6e);_0x657637['markers']['set'](_0x3f1b13,_0x10be8c),this['_markers']['set'](_0x3f1b13,_0x598648);}this['_applyOperations'](_0x37fad3,_0x24f218,_0x7d3820);}['_applyOperations'](_0x5e0f43,_0xeb7874,_0x45c9b2){for(const _0x19fb2e of this['source']['getOperations'](_0x5e0f43,_0xeb7874))this['_handleOperation'](_0x19fb2e,_0x45c9b2);for(const _0x279add of this['_diffRoots']['values']())_0x279add['markers']['clear']();for(const [_0x1d2103,_0x526efd]of this['_markers']){this['_diffRoots']['get'](_0x526efd['root']['rootName'])['markers']['set'](_0x1d2103,_0x526efd['clone']());}const _0x2e4927=new Map(),_0x44b9d1=new Map();for(const [_0x5a8ab7,_0x1942e5]of this['_diffRoots'])_0x2e4927['set'](_0x5a8ab7,T(_0x1942e5)),_0x44b9d1['set'](_0x5a8ab7,this['_diffRootsAttributes']['get'](_0x5a8ab7));this['_saveMetaData'](_0xeb7874,_0x2e4927,this['_markers'],_0x44b9d1);}['_getPreviousFrom'](_0x3129af){const _0x44fe89=Array['from'](this['_savedMetaData']['keys']());_0x44fe89['sort']((_0x3f2752,_0x48a35f)=>_0x3f2752-_0x48a35f),_0x44fe89['reverse']();for(const _0x585e58 of _0x44fe89)if(_0x585e58<_0x3129af)return _0x585e58;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x58f5f3,_0x16bd8e){const _0x389dd0=Array['from'](_0x16bd8e['markers'])['map'](([_0x4088b6,_0x153af6])=>[_0x4088b6,this['_fixRange'](_0x153af6,_0x58f5f3)]);_0x58f5f3['markers']=new Map(_0x389dd0);}['_transformMarkers'](_0x1242c3){for(const _0x4b1023 of this['_markers']['values']()){const _0x33acb4=_0x4b1023['getTransformedByOperation'](_0x1242c3),_0x270ecb=ft['_createFromRanges'](_0x33acb4);_0x4b1023['start']=_0x270ecb['start'],_0x4b1023['end']=_0x270ecb['end'];}}['_handleOperation'](_0x2927e5,_0x3e0339){if('addRoot'!=_0x2927e5['type']&&'detachRoot'!=_0x2927e5['type']){if('insert'==_0x2927e5['type']){const _0x190557=_0x2927e5['position']['root']['rootName'];this['_diffRoots']['has'](_0x190557)||(this['_diffRoots']['set'](_0x190557,F(_0x190557,!0x0)),this['_diffRootsAttributes']['set'](_0x190557,{}),_0x3e0339&&this['_idsRoots']['set'](_0x190557,F(_0x190557,!0x0)));}else{if('addRootAttribute'==_0x2927e5['type']||'removeRootAttribute'==_0x2927e5['type']||'changeRootAttribute'==_0x2927e5['type'])return void this['_handleRootAttributeOperation'](_0x2927e5);'marker'==_0x2927e5['type']&&this['_handleMarkerOperation'](_0x2927e5);}if('marker'!==_0x2927e5['type']){const _0x278b55=this['_cloneOperation'](_0x2927e5,this['_diffRoots']);_0x278b55['_execute'](),this['_transformMarkers'](_0x278b55);}if(_0x3e0339)switch(_0x2927e5['type']){case'insert':this['_handleInsertOperation'](_0x2927e5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2927e5);break;case'merge':this['_handleMergeOperation'](_0x2927e5);break;case'split':this['_handleSplitOperation'](_0x2927e5);}}else this['_handleRootOperation'](_0x2927e5,_0x3e0339);}['_cloneOperation'](_0x9a5770,_0x2212ff){const _0xf84ae9=_0x9a5770['clone']();return _0xf84ae9['_authorId']=_0x9a5770['_authorId'],this['_fixOperation'](_0xf84ae9,_0x2212ff),_0xf84ae9;}['_getBaseVids'](_0x561499){return _0x561499['map'](_0xfd3b87=>{const _0x3d5fb2=this['_getVidAttributeName'](_0xfd3b87);return Number(_0xfd3b87['item']['getAttribute'](_0x3d5fb2));});}['_generateTape'](_0x503126,_0x1c62be){if(_0x503126['is']('element','$text'))_0x1c62be['push']({'item':_0x503126,'type':'text'});else{_0x503126['is']('element')&&_0x1c62be['push']({'item':_0x503126,'type':'elementStart'});for(const _0x5c34f9 of _0x503126['getChildren']())this['_generateTape'](_0x5c34f9,_0x1c62be);_0x503126['is']('element')&&_0x1c62be['push']({'item':_0x503126,'type':'elementEnd'});}return _0x1c62be;}['_getState'](){const _0x1845fb=new Map(this['_touched']),_0x434771=new Map(_0x1845fb),_0x37f685=new Map(),_0x5b7440={'insertions':{},'deletions':{}},_0x4a4331={'insertions':{},'deletions':{}},_0x1e213e=new Map(),_0x236e67=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x236e67['delete']('$graveyard');for(const _0x447f8f of _0x236e67){const _0x4365dd=this['_diffRoots']['get'](_0x447f8f)||F(_0x447f8f,!0x1),_0x14f021=this['_baseRoots']['get'](_0x447f8f)||F(_0x447f8f,!0x1);_0x4365dd['isAttached']()||_0x14f021['isAttached']()?(_0x5b7440['insertions'][_0x447f8f]=T(_0x4365dd),_0x5b7440['deletions'][_0x447f8f]=T(_0x14f021),this['_copyMarkers'](_0x5b7440['deletions'][_0x447f8f],_0x14f021),this['_copyMarkers'](_0x5b7440['insertions'][_0x447f8f],_0x4365dd),_0x4a4331['insertions'][_0x447f8f]=this['_generateTape'](this['_idsRoots']['get'](_0x447f8f),[]),_0x4a4331['deletions'][_0x447f8f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x447f8f)||F(_0x447f8f,!0x1),[])):_0x236e67['delete'](_0x447f8f);}for(const _0x1aa9bb of _0x236e67){const _0x1325ba=_0x4a4331['insertions'][_0x1aa9bb];for(const _0x21462d of _0x1325ba){const _0xd92fe9=this['_getVidAttributeName'](_0x21462d),_0x508429=_0x21462d['item']['getAttribute'](_0xd92fe9);_0x434771['delete'](_0x508429),_0x508429>=this['_startingRevisionId']&&_0x37f685['set'](_0x508429,_0x1845fb['get'](_0x508429));}}for(const _0x13e700 of _0x236e67){const _0x4e1d40=_0x4a4331['insertions'][_0x13e700],_0xd595c6=this['_getBaseVids'](_0x4a4331['deletions'][_0x13e700]);let _0x3d8756=0x0;for(const _0x354907 of _0x4e1d40){const _0x1684eb=this['_getVidAttributeName'](_0x354907),_0x20b227=_0x354907['item']['getAttribute'](_0x1684eb);if(!_0x37f685['has'](_0x20b227)&&!_0x1e213e['has'](_0x20b227)){if(_0x434771['has'](_0x20b227))_0x3d8756++;else{if(_0x20b227!=_0xd595c6[_0x3d8756]){const _0x23a0c0=_0x1845fb['get'](_0x20b227)||_0x1845fb['get'](_0xd595c6[_0x3d8756]);for(;_0x20b227!=_0xd595c6[_0x3d8756];)_0x434771['has'](_0xd595c6[_0x3d8756])||(_0x1e213e['set'](_0xd595c6[_0x3d8756],_0x23a0c0),_0x1845fb['set'](_0xd595c6[_0x3d8756],_0x23a0c0)),_0x3d8756++;}_0x3d8756++;}}}}for(const _0x52c1a0 of _0x236e67){const _0x449df1=_0x4a4331['insertions'][_0x52c1a0];for(const _0x224718 of _0x449df1){const _0x5bfe50=this['_getVidAttributeName'](_0x224718),_0x207223=_0x224718['item']['getAttribute'](_0x5bfe50);if(_0x1e213e['has'](_0x207223)){const _0x26f3f1=_0x1e213e['get'](_0x207223);_0x434771['has'](_0x207223)||_0x434771['set'](_0x207223,{..._0x26f3f1}),_0x37f685['set'](_0x207223,{..._0x26f3f1});}}}for(const _0x3403ef of _0x434771['keys']())_0x3403ef>=this['_startingRevisionId']&&_0x434771['delete'](_0x3403ef);const _0x4dbf15=new Map();for(const _0x1c4ce6 of _0x236e67){let _0x19eef0=_0x4a4331['insertions'][_0x1c4ce6];for(const _0x4f6a64 of _0x19eef0)if(_0x4f6a64['item']['is']('element','tableCell')){const _0x507296=this['_getVidAttributeName'](_0x4f6a64),_0x12a2c3=_0x4f6a64['item']['getAttribute'](_0x507296);if(_0x37f685['has'](_0x12a2c3)){const _0x7d291b=_0x4f6a64['item']['parent']['parent']['getAttribute']('vid_start'),_0x21645a=_0x4dbf15['get'](_0x7d291b)||new Set();_0x21645a['add'](_0x37f685['get'](_0x12a2c3)['userId']),_0x4dbf15['set'](_0x7d291b,_0x21645a);}}_0x19eef0=_0x4a4331['deletions'][_0x1c4ce6];for(const _0x5ef3b0 of _0x19eef0)if(_0x5ef3b0['item']['is']('element','tableCell')){const _0xcbbbbf=this['_getVidAttributeName'](_0x5ef3b0),_0x3cf763=_0x5ef3b0['item']['getAttribute'](_0xcbbbbf);if(_0x434771['has'](_0x3cf763)){const _0x320a26=_0x5ef3b0['item']['parent']['parent']['getAttribute']('vid_start'),_0x5610f3=_0x4dbf15['get'](_0x320a26)||new Set();_0x5610f3['add'](_0x434771['get'](_0x3cf763)['userId']),_0x4dbf15['set'](_0x320a26,_0x5610f3);}}for(const _0x3cafb0 of _0x4dbf15['keys']())(_0x37f685['has'](_0x3cafb0)||_0x434771['has'](_0x3cafb0))&&_0x4dbf15['delete'](_0x3cafb0);}for(const _0x55076e of _0x236e67){const _0x297995=_0x4a4331['insertions'][_0x55076e];let _0x3749bd=null,_0x38aac1=null;for(const _0x2bf0ed of _0x297995){const _0x3d7895=this['_getVidAttributeName'](_0x2bf0ed),_0x56c799=_0x2bf0ed['item']['getAttribute'](_0x3d7895),_0x5dcea2=_0x4dbf15['get'](_0x56c799);_0x5dcea2&&'elementStart'==_0x2bf0ed['type']&&(_0x3749bd=Array['from'](_0x5dcea2)[0x0],_0x38aac1=_0x2bf0ed['item']['getAttribute']('vid_end')),_0x3749bd&&(_0x434771['set'](_0x56c799,{'userId':_0x3749bd}),_0x37f685['set'](_0x56c799,{'userId':_0x3749bd})),_0x56c799==_0x38aac1&&(_0x3749bd=null,_0x38aac1=null);}}const _0x27fb7a={},_0x1e43cc=new Set();for(const _0x5b0e48 of _0x236e67){const _0x3d8233=_0x5b7440['deletions'][_0x5b0e48],_0x3d12cf=_0x5b7440['insertions'][_0x5b0e48];for(const {userId:_0x4a2144}of this['_touchedMarkers']['values']())null!==_0x4a2144&&_0x1e43cc['add'](_0x4a2144);for(const {userId:_0x128b90}of this['_touchedRoots']['values']())null!==_0x128b90&&_0x1e43cc['add'](_0x128b90);this['_markChanges'](_0x3d12cf,_0x4a4331['insertions'][_0x5b0e48],_0x37f685,'insertion',_0x1e43cc),this['_markChanges'](_0x3d8233,_0x4a4331['deletions'][_0x5b0e48],_0x434771,'deletion',_0x1e43cc),_0x27fb7a[_0x5b0e48]={'insertions':this['_prepareViewToSave'](_0x3d12cf),'deletions':this['_prepareViewToSave'](_0x3d8233),'attachChange':this['_touchedRoots']['get'](_0x5b0e48)||null,'attributesBefore':_0x3e1187(this['_baseRootsAttributes']['get'](_0x5b0e48))||{},'attributesAfter':_0x3e1187(this['_diffRootsAttributes']['get'](_0x5b0e48))};}return{'diffData':_0x27fb7a,'authorsIds':Array['from'](_0x1e43cc)};}['_processRootBeforeSave'](_0xc97726){for(const [,_0x44b5ff]of _0xc97726['markers']){const _0x4fb5b2=_0x44b5ff['start']['getAncestors']()['filter'](_0x113f73=>'tableCell'==_0x113f73['name']);for(const _0x43230f of _0x4fb5b2)0x1==_0x43230f['childCount']&&_0x43230f['getChild'](0x0)['is']('element','paragraph')&&_0x43230f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xd07894){this['_processRootBeforeSave'](_0xd07894);const _0x5ae705=this['editor']['data']['toView'](_0xd07894,{}),_0x27c537=Array['from'](_0x5ae705['getChildren']())['map'](_0x212b6e=>this['_getViewJson'](_0x212b6e));return JSON['stringify'](_0x27c537);}['_getViewJson'](_0x4c7f40){if(_0x4c7f40['is']('$text'))return _0x4c7f40['data'];{const _0x506248=_0x4c7f40;return{'type':Object['keys'](E)['find'](_0x5bb773=>_0x4c7f40 instanceof E[_0x5bb773]),'name':_0x506248['name'],'attributes':Array['from'](_0x506248['getAttributes']()),'children':Array['from'](_0x506248['getChildren']())['map'](_0x40f991=>this['_getViewJson'](_0x40f991))};}}['_markChanges'](_0x18d713,_0x470229,_0x1e1af0,_0x3e2ca7,_0x4de62e){let _0x2d974e=null,_0xa80b53=null,_0x18511d=0x0;const _0x293df8=this['editor']['model'];for(let _0x4eb383=0x0;_0x4eb383<_0x470229['length'];_0x4eb383++){const _0x3d9d5b=this['_getVidAttributeName'](_0x470229[_0x4eb383]),_0x242d65=_0x470229[_0x4eb383]['item']['getAttribute'](_0x3d9d5b),_0x54b8b6=_0x1e1af0['get'](_0x242d65),_0x1b8893=_0x4eb383==_0x470229['length']-0x1;(!_0x2d974e&&_0x54b8b6&&(_0x2d974e=_0x54b8b6,_0xa80b53=_0x470229[_0x4eb383]),_0x2d974e&&(!_0x54b8b6||_0x54b8b6['userId']!=_0x2d974e['userId']))&&(_0x3a895f(_0x54b8b6,B(_0xa80b53,_0x18d713,_0x293df8),B(_0x470229[_0x4eb383],_0x18d713,_0x293df8)),_0x2d974e=_0x54b8b6||null,_0xa80b53=_0x54b8b6?_0x470229[_0x4eb383]:null),_0x2d974e&&_0x1b8893&&_0x3a895f(_0x54b8b6,B(_0xa80b53,_0x18d713,_0x293df8),J(_0x470229[_0x4eb383],_0x18d713,_0x293df8));}function _0x3a895f(_0x11ed08,_0x558102,_0x28f645){const _0x5d6ab5=_0x2d974e['userId'],_0x3b614d='revision:'+_0x3e2ca7+':'+_0x5d6ab5+':'+_0x18511d++,_0x4df094=_0x293df8['createRange'](_0x558102,_0x28f645);_0x18d713['markers']['set'](_0x3b614d,_0x4df094),null!==_0x5d6ab5&&_0x4de62e['add'](_0x5d6ab5);}}['_getVidAttributeName'](_0x2a915b){switch(_0x2a915b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3ade32,_0x27bc6c){_0x3ade32['baseVersion']=null;for(const _0x2f1205 in _0x3ade32){const _0x267e7d=_0x3ade32[_0x2f1205];if(_0x267e7d instanceof vt){const _0x1dcf34=_0x27bc6c['get'](_0x267e7d['root']['rootName']);_0x3ade32[_0x2f1205]=this['_fixPosition'](_0x267e7d,_0x1dcf34);}if(_0x267e7d instanceof ft){const _0x4001a7=_0x27bc6c['get'](_0x267e7d['root']['rootName']);_0x3ade32[_0x2f1205]=this['_fixRange'](_0x267e7d,_0x4001a7);}'root'===_0x2f1205&&(_0x3ade32['root']=_0x27bc6c['get'](_0x3ade32['root']['rootName']));}}['_fixRange'](_0x52f830,_0x25c441){return this['editor']['model']['createRange'](this['_fixPosition'](_0x52f830['start'],_0x25c441),this['_fixPosition'](_0x52f830['end'],_0x25c441));}['_fixPosition'](_0x16981e,_0x130e89){return this['editor']['model']['createPositionFromPath'](_0x130e89,_0x16981e['path'],_0x16981e['stickiness']);}['_handleInsertOperation'](_0x1fddf6){const _0x4e0c3a=this['_idsRoots']['get'](_0x1fddf6['position']['root']['rootName']),_0x4c5062=this['_fixPosition'](_0x1fddf6['position'],_0x4e0c3a),_0x4d09ef=null===_0x1fddf6['_authorId']?null:_0x1fddf6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x31357e=_0x4c5062['parent'],_0x5b1229=this['_revisionId'],_0x4b6d02=[];for(const _0x1ff6f6 of _0x1fddf6['nodes'])if(_0x1ff6f6['is']('element'))_0x4b6d02['push'](this['_makeIdsRoot'](_0x1ff6f6));else{for(let _0x4f88ca=0x0;_0x4f88ca<_0x1ff6f6['offsetSize'];_0x4f88ca++)_0x4b6d02['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xd4eef6=this['_revisionId'];for(let _0x806263=_0x5b1229;_0x806263<_0xd4eef6;_0x806263++)this['_touched']['set'](_0x806263,{'userId':_0x4d09ef});_0x31357e['_insertChild'](_0x4c5062['offset'],_0x4b6d02);}['_handleMoveOperation'](_0x2daac4){(_0x2daac4=this['_cloneOperation'](_0x2daac4,this['_idsRoots']))['_execute']();const _0x58f879=null===_0x2daac4['_authorId']?null:_0x2daac4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6e4370=_0x2daac4['getMovedRangeStart'](),_0x498e6a=_0x6e4370['parent'],_0x1d0b87=_0x6e4370['offset'];!function _0x49081b(_0x47254c,_0x1fd358,_0x62aef0,_0x28e3ed){for(let _0x5bda57=_0x62aef0;_0x5bda57<_0x28e3ed;_0x5bda57++){const _0x42af89=_0x1fd358['getChild'](_0x5bda57);_0x42af89['is']('element','$text')?_0x47254c['set'](_0x42af89['getAttribute']('vid'),{'userId':_0x58f879}):(_0x47254c['set'](_0x42af89['getAttribute']('vid_start'),{'userId':_0x58f879}),_0x49081b(_0x47254c,_0x42af89,0x0,_0x42af89['childCount']),_0x47254c['set'](_0x42af89['getAttribute']('vid_end'),{'userId':_0x58f879}));}}(this['_touched'],_0x498e6a,_0x1d0b87,_0x1d0b87+_0x2daac4['howMany']);}['_handleMergeOperation'](_0x2fe750){const _0x4675a1=null===(_0x2fe750=this['_cloneOperation'](_0x2fe750,this['_idsRoots']))['_authorId']?null:_0x2fe750['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18adbb=_0x2fe750['targetPosition']['parent'],_0x5abcba=_0x2fe750['sourcePosition']['parent'],_0x419386=_0x18adbb['getAttribute']('vid_end'),_0x4d2c61=_0x5abcba['getAttribute']('vid_start');_0x18adbb['_setAttribute']('vid_end',_0x5abcba['getAttribute']('vid_end')),_0x5abcba['_setAttribute']('vid_end',_0x419386),this['_touched']['set'](_0x4d2c61,{'userId':_0x4675a1}),this['_touched']['set'](_0x419386,{'userId':_0x4675a1}),_0x2fe750['_execute']();}['_handleSplitOperation'](_0x7cb451){const _0x5edf4a=null===(_0x7cb451=this['_cloneOperation'](_0x7cb451,this['_idsRoots']))['_authorId']?null:_0x7cb451['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c0e25=_0x7cb451['graveyardPosition'],_0x5c3594=_0x7cb451['splitPosition']['parent'];_0x7cb451['_execute']();const _0x51dc56=_0x5c3594['getAttribute']('vid_end'),_0x115698=_0x7cb451['insertionPosition']['nodeAfter'];if(_0x2c0e25){const _0x4ffb71=_0x115698['getAttribute']('vid_end'),_0x5c8c81=_0x5c3594['getAttribute']('vid_end');_0x5c3594['_setAttribute']('vid_end',_0x4ffb71),_0x115698['_setAttribute']('vid_end',_0x5c8c81),this['_touched']['set'](_0x5c3594['getAttribute']('vid_end'),{'userId':_0x5edf4a}),this['_touched']['set'](_0x115698['getAttribute']('vid_start'),{'userId':_0x5edf4a});}else{const _0xa1256b=this['_revisionId']++,_0x4ee06e=this['_revisionId']++;_0x5c3594['_setAttribute']('vid_end',_0xa1256b),_0x115698['_setAttribute']('vid_start',_0x4ee06e),_0x115698['_setAttribute']('vid_end',_0x51dc56),this['_touched']['set'](_0xa1256b,{'userId':_0x5edf4a}),this['_touched']['set'](_0x4ee06e,{'userId':_0x5edf4a});}}['_handleMarkerOperation'](_0x567594){if(!_0x567594['affectsData'])return;const _0x4d4dc2=(_0x567594=this['_cloneOperation'](_0x567594,this['_diffRoots']))['oldRange']?_0x567594['oldRange']['root']:null,_0x298afe=_0x567594['newRange']?_0x567594['newRange']['root']:null;_0x4d4dc2&&this['_markers']['delete'](_0x567594['name']),_0x298afe&&this['_markers']['set'](_0x567594['name'],_0x567594['newRange']['clone']());const _0x14a83a=null===_0x567594['_authorId']?null:_0x567594['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22ffcd=_0x567594['name'];if(!this['_touchedMarkers']['has'](_0x22ffcd))return void this['_touchedMarkers']['set'](_0x22ffcd,{'range':_0x567594['oldRange'],'userId':_0x14a83a});const _0x12551b=this['_touchedMarkers']['get'](_0x22ffcd),_0x40b5a4=_0x12551b['range'],_0xa53405=_0x567594['newRange'];null==_0x40b5a4&&null==_0xa53405||_0x40b5a4&&_0xa53405&&_0x40b5a4['isEqual'](_0xa53405)?this['_touchedMarkers']['delete'](_0x567594['name']):_0x12551b['userId']=_0x14a83a;}['_handleRootOperation'](_0x1cbcaa,_0x51dcb6){this['_diffRoots']['has'](_0x1cbcaa['rootName'])?this['_diffRoots']['get'](_0x1cbcaa['rootName'])['_isAttached']=_0x1cbcaa['isAdd']:(this['_diffRoots']['set'](_0x1cbcaa['rootName'],F(_0x1cbcaa['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1cbcaa['rootName'],{}),_0x51dcb6&&this['_idsRoots']['set'](_0x1cbcaa['rootName'],F(_0x1cbcaa['rootName'],!0x0)));const _0x1a7dfe=null===_0x1cbcaa['_authorId']?null:_0x1cbcaa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10a199=this['_touchedRoots']['get'](_0x1cbcaa['rootName']);_0x10a199&&_0x10a199['userId']===_0x1a7dfe?this['_touchedRoots']['delete'](_0x1cbcaa['rootName']):this['_touchedRoots']['set'](_0x1cbcaa['rootName'],{'userId':_0x1a7dfe,'isAttached':_0x1cbcaa['isAdd']});}['_handleRootAttributeOperation'](_0x34551a){const _0x1b4161=this['_diffRootsAttributes']['get'](_0x34551a['root']['rootName']);null===_0x34551a['newValue']?delete _0x1b4161[_0x34551a['key']]:_0x1b4161[_0x34551a['key']]=_0x34551a['newValue'];}}function T(_0x312e41){const _0x2abfb1=F(_0x312e41['rootName'],_0x312e41['isAttached']());for(const _0x1e00d7 of _0x312e41['getChildren']()){const _0x573af1=_0x1e00d7['_clone'](!0x0);_0x2abfb1['_appendChild'](_0x573af1);}return _0x2abfb1;}function F(_0x32fb8f,_0x5e24db=!0x0){const _0x423ed2=new gt();return _0x423ed2['rootName']=_0x32fb8f,_0x423ed2['_isAttached']=_0x5e24db,_0x423ed2['isAttached']=()=>_0x423ed2['_isAttached'],_0x423ed2;}function B(_0x131461,_0xba037a,_0xa89c71){const _0x52d1b5='elementEnd'==_0x131461['type']?_0xa89c71['createPositionAt'](_0x131461['item'],'end'):_0xa89c71['createPositionBefore'](_0x131461['item']);return _0xa89c71['createPositionFromPath'](_0xba037a,_0x52d1b5['path'],_0x52d1b5['stickiness']);}function J(_0x3fcd5e,_0x3fad87,_0x2da2f9){const _0x52e89b='elementStart'==_0x3fcd5e['type']?_0x2da2f9['createPositionAt'](_0x3fcd5e['item'],0x0):_0x2da2f9['createPositionAfter'](_0x3fcd5e['item']);return _0x2da2f9['createPositionFromPath'](_0x3fad87,_0x52e89b['path'],_0x52e89b['stickiness']);}class os extends _0x2556fc{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4685f2,_0x50e1e0){super(_0x4685f2),this['focusTracker']=new _0x1c1753(),this['keystrokes']=new _0x4aff6f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x50e1e0),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x59c01e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4f4722=_0x396143=>_0x396143['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4f4722),this['keystrokes']['set']('arrowleft',_0x4f4722),this['keystrokes']['set']('arrowup',_0x4f4722),this['keystrokes']['set']('arrowdown',_0x4f4722);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x44e4ca){this['revisionNameInputView']['fieldView']['element']['value']=_0x44e4ca['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x43ffb4){const _0x294288=new at(this['locale'],ti),_0x3dbcb3=_0x294288['fieldView'];_0x3dbcb3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4a9ca4=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x43ffb4&&(_0x4a9ca4+='\x20('+m(this['locale'],'optional')+')'),(_0x294288['label']=_0x4a9ca4,_0x3dbcb3['on']('input',()=>{this['revisionNameInputValue']=_0x3dbcb3['element']['value']['trim']();}),_0x294288);}}class f extends _0x550265{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5d9f01=this['editor'],_0xa49952=_0x5d9f01['plugins']['get']('RevisionTracker');_0x5d9f01['ui']['componentFactory']['add']('revisionHistory',_0x108aec=>{const _0x1f6847=_0x1922d9(_0x108aec),_0x62ce13=_0x1f6847['panelView']['children'],_0x2baa9d=new _0x4d5430(_0x108aec),_0xfd941a=new te(_0x108aec),_0x1ca57f=new _0x19ff9c(_0x108aec),_0x2c36bc=new te(_0x108aec),_0x16c591=new _0x19ff9c(_0x108aec);return _0x1f6847['bind']('isEnabled')['to'](_0xa49952,'isReady',_0xa49952,'isEnabled',_0x5d9f01,'isReadOnly',(_0x202b5c,_0x58b253,_0x20299e)=>_0x202b5c&&_0x58b253&&!_0x20299e),_0x1f6847['buttonView']['set']({'icon':_0x37efe1,'label':m(_0x108aec,'Revision\x20history'),'tooltip':!0x0}),_0x1ca57f['set']({'label':m(_0x108aec,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1ca57f['bind']('isEnabled')['to'](_0xa49952,'isReady',_0xa49952,'isEnabled',_0x5d9f01,'isReadOnly',(_0x4116a5,_0x448453,_0x2978a6)=>_0x4116a5&&_0x448453&&!_0x2978a6),_0x1ca57f['on']('execute',()=>this['_showDialog']()),_0x16c591['set']({'label':m(_0x108aec,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x16c591['bind']('isEnabled')['to'](_0xa49952,'isReady',_0x5d9f01,'isReadOnly',(_0x3105ed,_0xbc2018)=>_0x3105ed&&!_0xbc2018),_0x16c591['on']('execute',()=>{_0x5d9f01['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1f6847['isOpen']=!0x1,_0x5d9f01['editing']['view']['focus']();}),_0xfd941a['children']['add'](_0x1ca57f),_0x2c36bc['children']['add'](_0x16c591),_0x2baa9d['role']='menu',_0x2baa9d['items']['addMany']([_0xfd941a,_0x2c36bc]),_0x62ce13['add'](_0x2baa9d),_0x1f6847;}),_0x5d9f01['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xf8c925=this['editor'],_0x160e07=_0xf8c925['locale'],_0x363223=new _0x8e09fd(_0x160e07),_0x8cdaf9=new _0x2ffe74(_0x160e07);_0x363223['buttonView']['set']({'icon':_0x37efe1,'label':m(_0x160e07,'Revision\x20history')});const _0x1af02a=new _0x4e28db(_0x160e07,_0x363223),_0x5711d4=new _0x2a6667(_0x160e07);_0x5711d4['set']({'label':m(_0x160e07,'Save\x20current\x20revision')}),_0x5711d4['delegate']('execute')['to'](_0x363223),_0x5711d4['on']('execute',()=>{this['_showDialog']();}),_0x1af02a['children']['add'](_0x5711d4),_0x8cdaf9['items']['add'](_0x1af02a);const _0x10854a=new _0x4e28db(_0x160e07,_0x363223),_0x1cc5ea=new _0x2a6667(_0x160e07);return _0x1cc5ea['set']({'label':m(_0x160e07,'Open\x20revision\x20history')}),_0x1cc5ea['delegate']('execute')['to'](_0x363223),_0x1cc5ea['on']('execute',()=>{_0xf8c925['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x10854a['children']['add'](_0x1cc5ea),_0x8cdaf9['items']['add'](_0x10854a),_0x363223['panelView']['children']['add'](_0x8cdaf9),_0x363223;}['_showDialog'](){const _0x35593e=this['editor'],_0x547be8=_0x35593e['locale'],_0x1f633a=_0x35593e['plugins']['get']('Dialog'),_0x3ed745=_0x35593e['plugins']['get']('RevisionTracker');function _0x222964(_0x65de14){_0x35593e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x65de14['revisionName']?_0x65de14['revisionNameInputView']['errorText']=m(_0x547be8,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x35593e['plugins']['get'](u)['saveRevision']({'name':_0x65de14['revisionName']}),_0x1f633a['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x222964(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1f633a['show']({'id':'revisionSave','title':m(_0x547be8,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x35593e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1f633a['hide']()},{'label':m(_0x35593e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x43dfcf){_0x43dfcf['bind']('isEnabled')['to'](_0x3ed745,'isReady',_0x3ed745,'isEnabled',_0x35593e,'isReadOnly',(_0xa33fbb,_0x1868dd,_0x2e1b98)=>_0xa33fbb&&_0x1868dd&&!_0x2e1b98);},'onExecute':()=>_0x222964(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2facd0=this['editor'],_0x38f575=_0x2facd0['locale'];this['_saveRevisionFormView']=new os(_0x38f575,_0x2facd0['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x2556fc{['changeId'];['_model'];constructor(_0x10c56b,_0x5d8d59){super(_0x10c56b),this['_model']=_0x5d8d59,this['changeId']=_0x5d8d59['id'];const _0x314bb9=this['bindTemplate'],_0x932c2e=m(_0x10c56b,_0x5d8d59['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5d8d59['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5d8d59['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x314bb9['to']('type',_0x54bcb2=>'ck-revision-change__'+_0x54bcb2)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x932c2e}]},{'text':'\x20'+_0x5d8d59['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x54b4ea(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x22a8a1){super(),this['id']=_0x22a8a1['id']||_0x3398a(),this['author']=_0x22a8a1['author'],this['type']=_0x22a8a1['type'],this['data']=_0x22a8a1['data']||{},this['rootName']=_0x22a8a1['rootName'],this['set']('createdAt',_0x22a8a1['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xf1b263,_0x509a7c){this['newRevisionId']=_0xf1b263,this['oldRevisionId']=_0x509a7c,this['changes']=new _0x2ea35a();}['_setChanges'](_0x1e8500){for(const _0x2b5ecb of _0x1e8500)this['changes']['add'](_0x2b5ecb);}}const Y={'c':_0x330d14,'a':_0x1d8d9d,'e':_0x5a31b4,'r':_0x54d762,'u':_0x28a39b};class d extends _0x550265{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1a0c30,_0x3f2fcc,j];}constructor(_0x515b3a){super(_0x515b3a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4a9463,_0x17071c,_0x5cbbce)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5199fb=>{for(const _0x57558d of this['editor']['editing']['view']['document']['roots'])_0x5cbbce?_0x5199fb['removeClass']('ck-editor__editable__overlay',_0x57558d):_0x5199fb['addClass']('ck-editor__editable__overlay',_0x57558d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1efcbc=>null!==_0x1efcbc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5b93ce,_0xf3bbe0,_0x487b73)=>_0x5b93ce&&_0x487b73?_0xf3bbe0['changes']['getIndex'](_0x487b73):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x577455,_0x1c1dc7)=>_0x577455?_0x1c1dc7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3f2fcc);}['init'](){const _0x4a5328=this['editor'],_0x202de8=new yt(_0x4a5328,{'direction':'backward'}),_0x5e7d86=new yt(_0x4a5328,{'direction':'forward'});(_0x4a5328['commands']['add']('showPreviousChange',_0x202de8),_0x4a5328['commands']['add']('showNextChange',_0x5e7d86),_0x4a5328['commands']['add']('restoreRevision',new _t(_0x4a5328)),this['on']('change:numberOfChanges',()=>{_0x202de8['refresh'](),_0x5e7d86['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4a5328['enableReadOnlyMode']('revision-viewer'),_0x4a5328['plugins']['has']('WidgetToolbarRepository'))&&_0x4a5328['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x39a287){await this['loadRevisionData'](_0x39a287);const _0x3c3c49={};for(const _0xccf515 in _0x39a287['diffData']){if(_0x39a287['diffData'][_0xccf515]['attachChange']&&!_0x39a287['diffData'][_0xccf515]['attachChange']['isAttached'])continue;const _0x4aee1c=this['_removeRevisionMarkers'](JSON['parse'](_0x39a287['diffData'][_0xccf515]['insertions'])),_0x8e9e70=this['editor']['editing']['view']['document'],_0x35ad84=new _0x1764ce(_0x8e9e70,_0x4aee1c['map'](_0xba52cf=>this['_getViewObj'](_0xba52cf)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3c3c49[_0xccf515]=this['editor']['data']['processor']['toData'](_0x35ad84),this['editor']['data']['processor']['useFillerType']('default');}return _0x3c3c49;}async['getRevisionRootsAttributes'](_0x5ed935){await this['loadRevisionData'](_0x5ed935);const _0x52847a={};for(const _0x27fe5f in _0x5ed935['diffData'])_0x5ed935['diffData'][_0x27fe5f]['attachChange']&&!_0x5ed935['diffData'][_0x27fe5f]['attachChange']['isAttached']||(_0x52847a[_0x27fe5f]=_0x5ed935['diffData'][_0x27fe5f]['attributesAfter']||{});return _0x52847a;}['_removeRevisionMarkers'](_0xb727c5){return(_0xb727c5=_0xb727c5['filter'](_0x1e02e3=>!_0x1e02e3['name']||'revision-start'!==_0x1e02e3['name']&&'revision-end'!==_0x1e02e3['name']))['forEach'](_0x41169c=>{'string'!=typeof _0x41169c&&(_0x41169c['children']=this['_removeRevisionMarkers'](_0x41169c['children']),_0x41169c['attributes']=_0x41169c['attributes']['filter'](_0x5432f7=>!_0x5432f7[0x0]['startsWith']('data-revision-')));}),_0xb727c5;}async['compare'](_0x447f41,_0x4f92de,_0x515321=!0x1){if(!this['isEnabled'])return;const _0x324f78=this['diff'],_0x532549=this['repository'],_0x2f5ae8='string'==typeof _0x447f41?_0x532549['getRevision'](_0x447f41):_0x447f41,_0x285ce0='string'==typeof _0x4f92de?_0x532549['getRevision'](_0x4f92de):_0x4f92de,_0x2f807=_0x2f5ae8['id'],_0x3e4a76=_0x285ce0?_0x285ce0['id']:null;if(!_0x515321&&this['diff']&&this['diff']['newRevisionId']===_0x2f807&&this['diff']['oldRevisionId']===_0x3e4a76)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x2f807,_0x3e4a76);const _0x24ac9b=this['_getRevisionsRange'](_0x2f5ae8,_0x285ce0,!0x0)['map'](_0x1080a5=>this['loadRevisionData'](_0x1080a5));return _0x24ac9b['push'](new Promise(_0x493420=>{setTimeout(_0x493420,0x14);})),Promise['all'](_0x24ac9b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x30833e=this['_getDiff'](_0x2f807,_0x3e4a76);for(const _0x18ee60 of _0x30833e['changes'])this['_changeIdToChange']['set'](_0x18ee60['id'],_0x18ee60);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x467e96=>{for(const _0x4e02cf of this['editor']['model']['document']['getRootNames']())_0x467e96['detachRoot'](_0x4e02cf);for(const _0x251bdb of Object['keys'](_0x30833e['model'])){const _0x211f99=_0x467e96['addRoot'](_0x251bdb);for(const _0x2f2b69 of Object['keys'](_0x30833e['attributes'][_0x251bdb]))_0x467e96['setAttribute'](_0x2f2b69,_0x30833e['attributes'][_0x251bdb][_0x2f2b69],_0x211f99);_0x467e96['insert'](_0x30833e['model'][_0x251bdb],_0x211f99,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x30833e['changes'])),this['isReady']=!0x0;})['catch'](_0xa8c2fb=>{console['error'](_0xa8c2fb),this['_cleanUp'](),_0x324f78&&(this['diff']=_0x324f78),this['isReady']=!0x0;});}['addRevisionData'](_0x512da5,_0x3bdbaf){const _0x14eb84=this['repository']['createRevision'](_0x512da5);return _0x14eb84['on']('_update',(_0x47c039,_0x3291f3,_0xd3a1b9)=>_0x3bdbaf(_0x3291f3,_0xd3a1b9,_0x14eb84)),this['repository']['addRevision'](_0x14eb84),_0x14eb84;}['loadRevisionData'](_0x232f51){if(!_0x232f51||_0x232f51['diffData'])return Promise['resolve']();{const _0x349917=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x349917,'revisionId':_0x232f51['id']})['then'](_0x27a3b5=>{_0x232f51['_update']({'diffData':_0x27a3b5['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2f7147=>{for(const _0xf8d6b5 of this['editor']['model']['document']['getRootNames']())_0x2f7147['detachRoot'](_0xf8d6b5);});}['_sortAndFilterDiffChanges'](_0x4b1ad4){const _0x9e4a1f=[],_0x37660b=new Map();for(const _0x614d69 of this['editor']['model']['document']['getRootNames']()){const _0x38be96=this['editor']['editing']['view']['getDomRoot'](_0x614d69);if(!_0x38be96)continue;const _0x56daf8=_0x38be96['getClientRects']()['item'](0x0);_0x56daf8&&(_0x9e4a1f['push'](_0x614d69),_0x37660b['set'](_0x614d69,_0x56daf8));}return _0x9e4a1f['sort']((_0x47bca5,_0x248d6c)=>{const _0x52fdad=_0x37660b['get'](_0x47bca5),_0x1fb27e=_0x37660b['get'](_0x248d6c);return _0x52fdad['y']-_0x1fb27e['y']||_0x52fdad['x']-_0x1fb27e['x'];}),(_0x4b1ad4=_0x4b1ad4['filter'](_0x198dd8=>_0x9e4a1f['includes'](_0x198dd8['rootName'])))['sort']((_0x2c9291,_0x1b4ff5)=>_0x9e4a1f['indexOf'](_0x2c9291['rootName'])-_0x9e4a1f['indexOf'](_0x1b4ff5['rootName'])),_0x4b1ad4;}['_makeTape'](_0x1cba1f){const _0x4939f9=Array['from'](_0x1cba1f['markers'])['filter'](([_0x68009e,_0x3c4f5e])=>_0x68009e['startsWith']('revision:')&&!_0x3c4f5e['isCollapsed']),_0x1b3ca1=Array['from'](this['editor']['model']['createRangeIn'](_0x1cba1f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4939f9['length'])for(const _0x145b51 of _0x1b3ca1){const [_0x4b2597,_0x302642]=_0x4939f9[0x0],[,_0x52e36d,_0x4d7f63]=_0x4b2597['split'](':');if(_0x302642['end']['isEqual'](_0x145b51['nextPosition'])&&_0x4939f9['shift'](),(_0x145b51['previousPosition']['isEqual'](_0x302642['start'])||_0x145b51['previousPosition']['isAfter'](_0x302642['start']))&&('insertion'==_0x52e36d?_0x145b51['isAdded']={'userId':_0x4d7f63}:'deletion'==_0x52e36d&&(_0x145b51['isRemoved']={'userId':_0x4d7f63})),0x0==_0x4939f9['length'])break;}return _0x1b3ca1;}['_refreshStartEndIndex'](_0x1ce42a){const _0x3835e5=new Map();for(let _0x156726=0x0;_0x156726<_0x1ce42a['length'];_0x156726++)'text'===_0x1ce42a[_0x156726]['type']?(_0x1ce42a[_0x156726]['item']['startIndex']=_0x156726,_0x1ce42a[_0x156726]['item']['endIndex']=_0x156726):('elementStart'===_0x1ce42a[_0x156726]['type']?_0x1ce42a[_0x156726]['item']['startIndex']=_0x156726:'elementEnd'===_0x1ce42a[_0x156726]['type']&&(_0x1ce42a[_0x156726]['item']['endIndex']=_0x156726),_0x3835e5['set'](_0x1ce42a[_0x156726]['id'],_0x156726));for(const _0x383e67 of _0x3835e5['values']())'elementStart'===_0x1ce42a[_0x383e67]['type']?_0x1ce42a[_0x383e67]['item']['endIndex']=_0x3835e5['get'](_0x1ce42a[_0x383e67]['pairId']):'elementEnd'===_0x1ce42a[_0x383e67]['type']&&(_0x1ce42a[_0x383e67]['item']['startIndex']=_0x3835e5['get'](_0x1ce42a[_0x383e67]['pairId']));}['_processTape'](_0x2a47f2){for(let _0x4ad4e8=0x0;_0x4ad4e8<_0x2a47f2['length'];_0x4ad4e8++){if('elementStart'===_0x2a47f2[_0x4ad4e8]['type'])_0x2a47f2[_0x4ad4e8]['item']['startIndex']=_0x4ad4e8;else{if('elementEnd'===_0x2a47f2[_0x4ad4e8]['type']){_0x2a47f2[_0x4ad4e8]['item']['endIndex']=_0x4ad4e8;const _0x13b9fb=_0x2a47f2[_0x4ad4e8]['item']['startIndex'];_0x2a47f2[_0x13b9fb]['pairId']=_0x2a47f2[_0x4ad4e8]['id'],_0x2a47f2[_0x4ad4e8]['pairId']=_0x2a47f2[_0x13b9fb]['id'];}else _0x2a47f2[_0x4ad4e8]['item']['startIndex']=_0x4ad4e8,_0x2a47f2[_0x4ad4e8]['item']['endIndex']=_0x4ad4e8,_0x2a47f2[_0x4ad4e8]['pairId']=null;}_0x2a47f2[_0x4ad4e8]['markersStart']||(_0x2a47f2[_0x4ad4e8]['markersStart']=[],_0x2a47f2[_0x4ad4e8]['markersEnd']=[]);}}['_markInsertions'](_0x5f55ad,_0x4d4ebf){const _0x3c1bf4=_0x5f55ad['filter'](_0x1bc065=>!_0x1bc065['isAdded']);for(let _0x1b82a1=0x0;_0x1b82a1<_0x4d4ebf['length'];_0x1b82a1++)_0x4d4ebf[_0x1b82a1]['isAdded']&&(_0x3c1bf4[_0x1b82a1]['isAdded']=_0x4d4ebf[_0x1b82a1]['isAdded']);}['_makeModelFromViewString'](_0x5f021d){const _0x206d99=JSON['parse'](_0x5f021d),_0x462dd0=this['editor']['editing']['view']['document'],_0x275abe=new _0x1764ce(_0x462dd0,_0x206d99['map'](_0x3efc08=>this['_getViewObj'](_0x3efc08)));return this['editor']['data']['toModel'](_0x275abe);}['_getViewObj'](_0x58a00b){const _0x2d2f66=this['editor']['editing']['view']['document'];if('string'==typeof _0x58a00b)return new _0x5d5858(_0x2d2f66,_0x58a00b);{const _0x33c38d=_0x58a00b['children']['map'](_0x48507a=>this['_getViewObj'](_0x48507a));return new(Y[_0x58a00b['type']]||_0x1b6da8)(_0x2d2f66,_0x58a00b['name'],_0x58a00b['attributes'],_0x33c38d);}}['_getDiff'](_0xc6b001,_0x49bfd8=null){const _0x3f6578=this['repository']['getRevision'](_0xc6b001),_0x32f0fa=_0x49bfd8?this['repository']['getRevision'](_0x49bfd8):null,_0x34bb78=this['_getRevisionsRange'](_0x3f6578,_0x32f0fa),_0x3ece75=_0x34bb78[_0x34bb78['length']-0x1],_0x26624a=new Map(),_0x258db1={'model':{},'attributes':{},'changes':[]},_0x13a43c=new Set(),_0x39a8ad=new Map();for(let _0x4a6432=_0x34bb78['length']-0x1;_0x4a6432>=0x0;_0x4a6432--){const _0x3e7707=_0x34bb78[_0x4a6432];for(const _0x887838 of Object['keys'](_0x3e7707['diffData']))if(_0x3e7707['diffData'][_0x887838]['attachChange']){const _0x4de1f0=_0x3e7707['diffData'][_0x887838]['attachChange'];_0x4de1f0['isAttached']?(_0x13a43c['add'](_0x887838),_0x39a8ad['has'](_0x887838)&&_0x39a8ad['get'](_0x887838)['userId']==_0x4de1f0['userId']?_0x39a8ad['delete'](_0x887838):_0x39a8ad['set'](_0x887838,_0x4de1f0)):_0x39a8ad['has'](_0x887838)?(_0x13a43c['delete'](_0x887838),_0x39a8ad['delete'](_0x887838)):(_0x13a43c['add'](_0x887838),_0x39a8ad['set'](_0x887838,_0x4de1f0));}else _0x13a43c['add'](_0x887838);}for(const _0x1e7406 of _0x13a43c){const _0x3b1ff7=_0x39a8ad['has'](_0x1e7406)&&!_0x39a8ad['get'](_0x1e7406)['isAttached'];let _0x1af615=_0x3b1ff7?_0x34bb78['length']-0x1:0x0;const _0x120035=_0x3b1ff7?-0x1:0x1;for(;_0x34bb78[_0x1af615];){const _0x2538b4=_0x34bb78[_0x1af615];if(_0x2538b4['diffData'][_0x1e7406]){const _0x4a73af=_0x3b1ff7?_0x2538b4['diffData'][_0x1e7406]['attributesBefore']:_0x2538b4['diffData'][_0x1e7406]['attributesAfter'];_0x258db1['attributes'][_0x1e7406]=_0x4a73af?_0x3e1187(_0x4a73af):{};break;}_0x1af615+=_0x120035;}}for(const _0x2425b6 of _0x34bb78){_0x2425b6['model']={};for(const _0x561662 of _0x2425b6['authors'])_0x26624a['set'](_0x561662['id'],_0x561662);for(const _0x39947e of _0x13a43c){const _0x957de6=_0x2425b6['diffData'][_0x39947e]?_0x2425b6['diffData'][_0x39947e]['insertions']:'[]',_0x371392=_0x2425b6['diffData'][_0x39947e]?_0x2425b6['diffData'][_0x39947e]['deletions']:'[]';_0x2425b6['model'][_0x39947e]={'insertions':this['_makeModelFromViewString'](_0x957de6),'deletions':this['_makeModelFromViewString'](_0x371392)};}}for(const _0x4916fc of _0x13a43c){let _0x19255f=null,_0x527cdb=0x0;const _0x4a765c=new Map(Array['from'](_0x3f6578['model'][_0x4916fc]['insertions']['markers'])['filter'](([_0x232721])=>!_0x232721['startsWith']('revision:')));let _0xebef25=0x0;for(const _0x504117 of _0x34bb78){const _0x359c61=this['_makeTape'](_0x504117['model'][_0x4916fc]['insertions']);_0x504117==_0x3f6578?(_0x19255f=_0x359c61,_0x527cdb=_0x19255f['length'],_0x19255f['forEach'](_0x2be188=>{_0x2be188['id']=_0xebef25++;}),this['_processTape'](_0x19255f)):this['_markInsertions'](_0x19255f,_0x359c61);const _0x2c19fe=_0x19255f['filter'](_0x219449=>!_0x219449['isAdded'])['map'](_0xd060f8=>_0xd060f8['id']);let _0x4cf02e=0x0;const _0x5a426b=this['_makeTape'](_0x504117['model'][_0x4916fc]['deletions']);_0x5a426b['forEach'](_0x3fe27e=>{_0x3fe27e['isRemoved']?_0x3fe27e['id']=_0x527cdb++:_0x3fe27e['id']=_0x2c19fe[_0x4cf02e++];}),this['_processTape'](_0x5a426b),this['_setDistance'](_0x19255f,'isAdded'),this['_setDistance'](_0x5a426b,'isRemoved'),_0x504117==_0x3f6578&&this['_markMarkers'](_0x19255f,_0x4a765c),_0x19255f=this['_joinTapes'](_0x19255f,_0x5a426b),this['_refreshStartEndIndex'](_0x19255f),this['_setDistance'](_0x19255f,'isRemoved');}_0x19255f=_0x19255f['filter'](_0x55209a=>!(_0x55209a['isAdded']&&_0x55209a['isRemoved']));const _0x242e37=new Map(_0x3ece75['model'][_0x4916fc]['deletions']['markers']),_0x598650=new Set(_0x4a765c['keys']());for(const _0x1204f7 of _0x242e37['keys']())_0x598650['delete'](_0x1204f7);this['_markSuggestions'](_0x19255f,_0x598650),this['_fixObsoleteTags'](_0x19255f),_0x19255f=this['_removeMissingPairs'](_0x19255f),_0x19255f=this['_markMismatchedRemovedTags'](_0x19255f),_0x19255f=this['_removeUnsupportedChanges'](_0x19255f);const {root:_0x9a89a3,changes:_0x61de51}=this['_makeModelFromTape'](_0x19255f,_0x26624a,_0x4916fc);_0x258db1['model'][_0x4916fc]=_0x9a89a3;const _0x11e107=_0x39a8ad['get'](_0x4916fc);if(_0x11e107){const _0x3cf4e8=_0x26624a['get'](_0x11e107['userId']),_0x448037=new r({'author':_0x3cf4e8,'type':_0x11e107['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4916fc});_0x61de51['unshift'](_0x448037),_0x258db1['attributes'][_0x4916fc]['revisionHistoryAttachChange']=_0x448037['id'];}_0x258db1['changes']=_0x258db1['changes']['concat'](_0x61de51);}return _0x258db1;}['_markMarkers'](_0x2923a6,_0x1fcdbe){for(let _0x3fa24a=0x0;_0x3fa24a<_0x2923a6['length'];_0x3fa24a++)for(const [_0xd68fed,_0x174cea]of _0x1fcdbe)_0x174cea['start']['isEqual'](_0x2923a6[_0x3fa24a]['previousPosition'])&&_0x2923a6[_0x3fa24a]['markersStart']['push'](_0xd68fed),_0x174cea['end']['isEqual'](_0x2923a6[_0x3fa24a]['nextPosition'])&&_0x2923a6[_0x3fa24a]['markersEnd']['push'](_0xd68fed);}['_joinTapes'](_0xaf88e7,_0x3b258e){let _0x52ba9c=[],_0x10b461=0x0,_0x5c6fb9=0x0;for(;_0x10b461<_0xaf88e7['length']||_0x5c6fb9<_0x3b258e['length'];){const _0x6153b9=_0xaf88e7[_0x10b461]||{},_0x2c0675=_0x3b258e[_0x5c6fb9]||{};if(_0x6153b9['id']==_0x2c0675['id'])_0x10b461++,_0x5c6fb9++,_0x52ba9c['push'](_0x6153b9);else{if(_0x2c0675['isRemoved']&&_0x6153b9['isAdded']){const {commonTape:_0x12fad7,iEnd:_0x4adda7,jEnd:_0x11c025}=this['_threeWayMerge'](_0xaf88e7,_0x10b461,_0x3b258e,_0x5c6fb9);_0x52ba9c=_0x52ba9c['concat'](_0x12fad7),_0x10b461=_0x4adda7,_0x5c6fb9=_0x11c025;}else _0x2c0675['isRemoved']?(_0x5c6fb9++,_0x52ba9c['push'](_0x2c0675)):(_0x10b461++,_0x52ba9c['push'](_0x6153b9));}}return _0x52ba9c;}['_markSuggestions'](_0x40c582,_0x2d2e93){const _0x42be72=[];for(let _0x349d3c=0x0;_0x349d3c<_0x40c582['length'];_0x349d3c++){for(let _0x46ff09=0x0;_0x46ff09<_0x40c582[_0x349d3c]['markersStart']['length'];_0x46ff09++){const _0x4e6534=_0x40c582[_0x349d3c]['markersStart'][_0x46ff09];if(!_0x2d2e93['has'](_0x4e6534))continue;const {group:_0x206424,type:_0x51bcb4,authorId:_0xc962dd}=_0xbbd753(_0x4e6534);'revision-suggestion'!=_0x206424||'insertion'!=_0x51bcb4&&'deletion'!=_0x51bcb4||(_0x42be72['unshift']({'type':_0x51bcb4,'name':_0x4e6534,'userId':_0xc962dd}),_0x40c582[_0x349d3c]['markersStart']['splice'](_0x46ff09,0x1),_0x46ff09--);}_0x4d6536(_0x40c582[_0x349d3c]);for(let _0x1a03a5=0x0;_0x1a03a5<_0x40c582[_0x349d3c]['markersEnd']['length'];_0x1a03a5++){const _0x2df919=_0x40c582[_0x349d3c]['markersEnd'][_0x1a03a5];if(!_0x2d2e93['has'](_0x2df919))continue;const {group:_0x3a6a61,type:_0x1648c0}=_0xbbd753(_0x2df919);if('revision-suggestion'!=_0x3a6a61||'insertion'!=_0x1648c0&&'deletion'!=_0x1648c0)continue;_0x40c582[_0x349d3c]['markersEnd']['splice'](_0x1a03a5,0x1),_0x1a03a5--;const _0xc8808=_0x42be72['findIndex'](_0x4ed428=>_0x4ed428['name']==_0x2df919);_0xc8808>-0x1&&_0x42be72['splice'](_0xc8808,0x1);}}function _0xbbd753(_0x121b43){const _0x566255=_0x121b43['split'](':');return{'group':_0x566255[0x0],'type':_0x566255[0x1],'subType':_0x566255['length']>=0x5?_0x566255[0x2]:null,'id':_0x566255['length']<0x5?_0x566255[0x2]:_0x566255[0x3],'authorId':_0x566255['length']<0x5?_0x566255[0x3]:_0x566255[0x4],'markerCount':0x6==_0x566255['length']?_0x566255[0x5]:null};}function _0x4d6536(_0x464055){for(let _0x5998ed=0x0;_0x5998ed<_0x42be72['length'];_0x5998ed++){if(_0x464055['isAdded']&&'insertion'==_0x42be72[_0x5998ed]['type'])return _0x464055['isAddSuggestion']=_0x42be72[_0x5998ed],void delete _0x464055['isAdded'];if(!_0x464055['isAdded']&&!_0x464055['isRemoved']&&'deletion'==_0x42be72[_0x5998ed]['type'])return void(_0x464055['isRemoveSuggestion']=_0x42be72[_0x5998ed]);}}}['_setDistance'](_0x46490c,_0x1d6403){let _0x4f6b6b=0x0,_0x5f15df=!0x1;const _0x3099fe=new Map();for(const _0x1c71aa of _0x46490c)_0x1c71aa[_0x1d6403]?_0x5f15df&&(_0x4f6b6b++,_0x5f15df=!0x1):(_0x4f6b6b++,_0x5f15df=!0x0),_0x3099fe['set'](_0x1c71aa['id'],_0x4f6b6b);for(let _0x316427=0x0;_0x316427<_0x46490c['length'];_0x316427++){if('isRemoved'==_0x1d6403&&_0x46490c[_0x316427]['isAdded']||'isAdded'==_0x1d6403&&_0x46490c[_0x316427]['isRemoved'])continue;if('text'==_0x46490c[_0x316427]['type']){_0x46490c[_0x316427]['distance']=0x0;continue;}const _0x259b86=_0x3099fe['get'](_0x46490c[_0x316427]['pairId']),_0xe82aa3=_0x3099fe['get'](_0x46490c[_0x316427]['id']);_0x46490c[_0x316427]['distance']=_0x259b86-_0xe82aa3;}}['_getRevisionsRange'](_0xbf5777,_0x410a86,_0x39001e=!0x1){const _0x11da1f=[];let _0x246434=this['repository']['getIndex'](_0xbf5777),_0x3e6e42=this['repository']['getIndex'](_0x410a86);for(-0x1==_0x3e6e42&&(_0x3e6e42=this['repository']['_revisions']['length'],_0x39001e=!0x1);_0x246434<_0x3e6e42;)_0x11da1f['push'](this['repository']['getRevision'](_0x246434)),_0x246434++;return _0x39001e&&_0x11da1f['push'](this['repository']['getRevision'](_0x246434)),_0x11da1f;}['_threeWayMerge'](_0x2c4c2e,_0x31716a,_0x33de91,_0x3e7ad0){const _0x5cc62f=this['editor']['model']['schema'];let _0x132d1e=_0x31716a;for(;_0x2c4c2e[_0x132d1e]&&_0x2c4c2e[_0x132d1e]['isAdded'];)_0x132d1e++;let _0x224c24=_0x3e7ad0;for(;_0x33de91[_0x224c24]&&_0x33de91[_0x224c24]['isRemoved'];)_0x224c24++;_0x205bec(_0x2c4c2e,_0x31716a,_0x132d1e),_0x205bec(_0x33de91,_0x3e7ad0,_0x224c24);const _0x532399=_0x33de91['slice'](_0x3e7ad0,_0x224c24)['concat'](_0x2c4c2e['slice'](_0x31716a,_0x132d1e));return _0x532399['sort']((_0xb5a03a,_0x1efecc)=>_0xb5a03a['side']!=_0x1efecc['side']?_0xb5a03a['side']-_0x1efecc['side']:_0xb5a03a['level']!=_0x1efecc['level']?_0xb5a03a['level']-_0x1efecc['level']:_0xb5a03a['distance']!=_0x1efecc['distance']?_0x1efecc['distance']-_0xb5a03a['distance']:!!_0xb5a03a['isAdded']!=!!_0x1efecc['isAdded']?-0x1==_0xb5a03a['side']||0x0==_0xb5a03a['side']?_0xb5a03a['isAdded']?-0x1:0x1:_0xb5a03a['isAdded']?0x1:-0x1:_0xb5a03a['index']-_0x1efecc['index']),{'commonTape':_0x532399,'iEnd':_0x132d1e,'jEnd':_0x224c24};function _0x205bec(_0x1157f6,_0x43658b,_0x36f2ad){let _0x55f003=-0x1,_0x34e955=Number['POSITIVE_INFINITY'],_0x368d6f=!0x0;for(let _0x4a844f=_0x43658b;_0x4a844f<_0x36f2ad;_0x4a844f++)if(_0x5cc62f['isInline'](_0x1157f6[_0x4a844f]['item'])||(_0x368d6f=!0x1),_0x1157f6[_0x4a844f]['item']['startIndex']<_0x43658b&&(_0x55f003=_0x4a844f),_0x1157f6[_0x4a844f]['item']['endIndex']>=_0x36f2ad){_0x34e955=_0x4a844f;break;}_0x368d6f&&(_0x55f003=_0x36f2ad-0x1);for(let _0x5a0d8e=_0x43658b;_0x5a0d8e<_0x36f2ad;_0x5a0d8e++)_0x1157f6[_0x5a0d8e]['side']=_0x5a0d8e<=_0x55f003?-0x1:_0x5a0d8e<_0x34e955?0x0:0x1,_0x1157f6[_0x5a0d8e]['index']=_0x5a0d8e;let _0x461016=0x0;for(let _0x1cadf7=_0x43658b;_0x1cadf7<=_0x55f003;_0x1cadf7++)0x0==_0x1157f6[_0x1cadf7]['distance']?_0x1157f6[_0x1cadf7]['level']=_0x461016:(_0x461016++,_0x1157f6[_0x1cadf7]['level']=_0x461016,_0x461016++);for(let _0x2afa41=_0x43658b;_0x2afa41<_0x36f2ad;_0x2afa41++)0x0==_0x1157f6[_0x2afa41]['side']&&(_0x1157f6[_0x2afa41]['level']=_0x461016);_0x461016=0x0;for(let _0x46bf6b=_0x36f2ad-0x1;_0x46bf6b>=_0x34e955;_0x46bf6b--)0x0==_0x1157f6[_0x46bf6b]['distance']?_0x1157f6[_0x46bf6b]['level']=_0x461016:(_0x461016--,_0x1157f6[_0x46bf6b]['level']=_0x461016,_0x461016--);}}['_fixObsoleteTags'](_0x31b35e){const _0x4cffcd=new Map(),_0x4a275f=this['editor']['model']['schema'];for(let _0x677375=0x1;_0x677375<_0x31b35e['length'];_0x677375++){let _0x2e4de1,_0x24f9e1,_0x3161b1;const _0x2883cc=_0x31b35e[_0x677375],_0x5beaaf=_0x31b35e[_0x677375-0x1];if('text'==_0x2883cc['type'])continue;if(_0x2883cc['type']!=_0x5beaaf['type'])continue;if(!_0x4a275f['isBlock'](_0x5beaaf['item'])||_0x4a275f['isLimit'](_0x5beaaf['item']))continue;if(!_0x4a275f['isBlock'](_0x2883cc['item'])||_0x4a275f['isLimit'](_0x2883cc['item']))continue;if((_0x31b35e[_0x677375]['isAdded']||_0x31b35e[_0x677375]['isAddSuggestion'])&&_0x31b35e[_0x677375-0x1]['isRemoved'])_0x2e4de1=_0x31b35e[_0x677375],_0x24f9e1=_0x31b35e[_0x677375-0x1],_0x3161b1=_0x677375-0x1;else{if(!_0x31b35e[_0x677375]['isRemoved']||!_0x31b35e[_0x677375-0x1]['isAdded']&&!_0x31b35e[_0x677375-0x1]['isAddSuggestion'])continue;_0x2e4de1=_0x31b35e[_0x677375-0x1],_0x24f9e1=_0x31b35e[_0x677375],_0x3161b1=_0x677375;}const _0x25c7da=_0x2e4de1['level']==_0x24f9e1['level'],_0x5c56a6=Math['abs'](_0x2e4de1['level'])<Math['abs'](_0x24f9e1['level'])&&0x0==_0x24f9e1['distance'];(_0x25c7da||_0x5c56a6)&&(_0x4cffcd['set'](_0x24f9e1['id'],_0x2e4de1['id']),_0x31b35e['splice'](_0x3161b1,0x1),_0x677375--,_0x2e4de1['isAdded']=!0x1);}for(let _0x5c6353=0x0;_0x5c6353<_0x31b35e['length'];_0x5c6353++)_0x4cffcd['has'](_0x31b35e[_0x5c6353]['pairId'])&&(_0x31b35e[_0x5c6353]['pairId']=_0x4cffcd['get'](_0x31b35e[_0x5c6353]['pairId']));}['_removeMissingPairs'](_0x1fe5d5){const _0xc38410=new Set(_0x1fe5d5['map'](_0x17631b=>_0x17631b['id']));for(let _0x114be=0x0;_0x114be<_0x1fe5d5['length'];_0x114be++)_0xc38410['has'](_0x1fe5d5[_0x114be]['pairId'])||0x0==_0x1fe5d5[_0x114be]['distance']||(_0x1fe5d5[_0x114be]['isIncorrect']=!0x0);return _0x1fe5d5['filter'](_0x562dfa=>!_0x562dfa['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1df4c8){const _0x2eeb0e=new Set();for(let _0x576c10=0x0;_0x576c10<_0x1df4c8['length'];_0x576c10++){if(_0x2eeb0e['has'](_0x1df4c8[_0x576c10]['id'])&&_0x1df4c8[_0x576c10]['isRemoved']&&(_0x1df4c8[_0x576c10]['isIncorrect']=!0x0),_0x1df4c8[_0x576c10]['isIncorrect'])continue;if(0x0==_0x1df4c8[_0x576c10]['distance'])continue;if('elementStart'!=_0x1df4c8[_0x576c10]['type'])continue;if(null==_0x1df4c8[_0x576c10]['pairId'])continue;let _0x4e4066=_0x576c10+0x1,_0x10dfd6=0x0;for(;_0x1df4c8[_0x4e4066]['id']!=_0x1df4c8[_0x576c10]['pairId'];)'elementStart'==_0x1df4c8[_0x4e4066]['type']?_0x10dfd6++:'elementEnd'==_0x1df4c8[_0x4e4066]['type']&&_0x10dfd6--,_0x4e4066++;if(0x0!=_0x10dfd6){if(_0x1df4c8[_0x576c10]['isRemoved'])_0x1df4c8[_0x576c10]['isIncorrect']=!0x0;else{for(;_0x4e4066!=_0x576c10;)_0x1df4c8[_0x4e4066]['isRemoved']&&0x0!=_0x1df4c8[_0x4e4066]['distance']&&(_0x1df4c8[_0x4e4066]['isIncorrect']=!0x0,_0x2eeb0e['add'](_0x1df4c8[_0x4e4066]['pairId'])),_0x4e4066--;}}}return _0x1df4c8['filter'](_0x8f85f=>!_0x8f85f['isIncorrect']);}['_removeUnsupportedChanges'](_0x127b47){const _0x37191e=this['editor']['model']['schema'];for(let _0x4660d9=0x0;_0x4660d9<_0x127b47['length'];_0x4660d9++){if(!(_0x127b47[_0x4660d9]['isAdded']||_0x127b47[_0x4660d9]['isAddSuggestion']||_0x127b47[_0x4660d9]['isRemoved']||_0x127b47[_0x4660d9]['isRemoveSuggestion']))continue;if(0x0==_0x127b47[_0x4660d9]['distance'])continue;const _0x166bb8=_0x127b47[_0x4660d9]['item'];_0x37191e['isBlock'](_0x166bb8)||_0x37191e['isLimit'](_0x166bb8)||(_0x127b47[_0x4660d9]['isAdded']&&delete _0x127b47[_0x4660d9]['isAdded'],_0x127b47[_0x4660d9]['isAddSuggestion']&&delete _0x127b47[_0x4660d9]['isAddSuggestion'],_0x127b47[_0x4660d9]['isRemoveSuggestion']&&delete _0x127b47[_0x4660d9]['isRemoveSuggestion'],_0x127b47[_0x4660d9]['isRemoved']&&(_0x127b47[_0x4660d9]['isIncorrect']=!0x0));}return _0x127b47['filter'](_0x2bf2b9=>!_0x2bf2b9['isIncorrect']);}['_makeModelFromTape'](_0x471642,_0x2ab6a9,_0x147994){const _0x278abc=new gt(),_0x263fce=[],_0x1a8dac=new Map(),_0x3380b6=this['editor']['model'],_0x323b18=_0x3380b6['schema'],_0xab1b04=[_0x278abc],_0x23da25={},_0x189db1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x286b0f=null;const _0x5838f2=[0x0];for(let _0x308aa9=0x0;_0x308aa9<_0x471642['length'];_0x308aa9++)if('elementStart'===_0x471642[_0x308aa9]['type']){_0x471642[_0x308aa9]['previousPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2);const _0x3965f6=new ut(_0x471642[_0x308aa9]['item']['name'],_0x471642[_0x308aa9]['item']['getAttributes']());_0xab1b04[0x0]['_appendChild'](_0x3965f6),_0x5838f2['push'](0x0),_0xab1b04['unshift'](_0x3965f6),_0x471642[_0x308aa9]['nextPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2);}else'elementEnd'===_0x471642[_0x308aa9]['type']?(_0xab1b04['shift'](),_0x471642[_0x308aa9]['previousPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2),_0x5838f2['pop'](),_0x5838f2[_0x5838f2['length']-0x1]++,_0x471642[_0x308aa9]['nextPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2)):(_0x471642[_0x308aa9]['previousPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2),_0x286b0f?_0x286b0f['_data']+=_0x471642[_0x308aa9]['item']['data']:_0x286b0f=new wt(_0x471642[_0x308aa9]['item']['data'],_0x471642[_0x308aa9]['item']['getAttributes']()),_0x471642[_0x308aa9+0x1]&&'text'===_0x471642[_0x308aa9+0x1]['type']&&_0x2e865b(_0x286b0f,_0x471642[_0x308aa9+0x1]['item'])||(_0xab1b04[0x0]['_appendChild'](_0x286b0f),_0x286b0f=null),_0x5838f2[_0x5838f2['length']-0x1]+=_0x471642[_0x308aa9]['item']['offsetSize'],_0x471642[_0x308aa9]['nextPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2));for(let _0x220c25=0x0;_0x220c25<_0x471642['length'];_0x220c25++){const _0x6069a6=_0x471642[_0x220c25]['previousPosition'],_0x53dc35=_0x471642[_0x220c25]['nextPosition'];for(const _0x1c8a7e of _0x471642[_0x220c25]['markersStart'])_0x1a8dac['set'](_0x1c8a7e,{'start':_0x6069a6,'end':null});_0x438cf5('isRemoveSuggestion',_0x220c25,_0x6069a6,_0x53dc35),_0x438cf5('isAddSuggestion',_0x220c25,_0x6069a6,_0x53dc35),_0x438cf5('isRemoved',_0x220c25,_0x6069a6,_0x53dc35),_0x438cf5('isAdded',_0x220c25,_0x6069a6,_0x53dc35);for(const _0x4048bf of _0x471642[_0x220c25]['markersEnd']){_0x1a8dac['get'](_0x4048bf)['end']=_0x53dc35;}}for(const [_0x163a03,_0x2e1581]of _0x1a8dac){const _0x411d1a=this['editor']['model']['createRange'](_0x2e1581['start'],_0x2e1581['end']);_0x278abc['markers']['set'](_0x163a03,_0x411d1a);}return _0x263fce['sort']((_0x595911,_0x4fe6b0)=>{const _0x3f31d6=_0x278abc['markers']['get']('revision:'+_0x595911['id']),_0x58989e=_0x278abc['markers']['get']('revision:'+_0x4fe6b0['id']);return _0x3f31d6['start']['isBefore'](_0x58989e['start'])?-0x1:_0x3f31d6['start']['isAfter'](_0x58989e['start'])?0x1:_0x3f31d6['end']['isBefore'](_0x58989e['end'])?-0x1:_0x3f31d6['end']['isAfter'](_0x58989e['end'])?0x1:'add'===_0x595911['type']?-0x1:0x1;}),{'root':_0x278abc,'changes':_0x263fce};function _0x438cf5(_0x6782e1,_0x4a549a,_0x2fa2ff,_0x4d18b1){const _0x1ec137=!!_0x471642[_0x4a549a][_0x6782e1],_0x224d40=_0x1ec137?_0x471642[_0x4a549a][_0x6782e1]['userId']:null,_0x506b3f=_0x4a549a===_0x471642['length']-0x1,_0x43ad14=_0x189db1[_0x6782e1][0x0],_0x467c26=_0x323b18['isObject'](_0x471642[_0x4a549a]['item']);!_0x23da25[_0x6782e1]&&_0x1ec137?_0x23da25[_0x6782e1]={'start':_0x2fa2ff,'tapeItem':_0x471642[_0x4a549a],'userId':_0x224d40,'type':_0x6782e1}:_0x23da25[_0x6782e1]&&!_0x1ec137?(_0x23da25[_0x6782e1]['end']=_0x2fa2ff,_0x5c1b7b(_0x23da25[_0x6782e1]),_0x23da25[_0x6782e1]=null):_0x23da25[_0x6782e1]&&_0x1ec137&&_0x23da25[_0x6782e1]['userId']!==_0x224d40&&(_0x23da25[_0x6782e1]['end']=_0x2fa2ff,_0x43ad14&&_0x43ad14['userId']===_0x23da25[_0x6782e1]['userId']||_0x5c1b7b(_0x23da25[_0x6782e1]),_0x23da25[_0x6782e1]={'start':_0x2fa2ff,'tapeItem':_0x471642[_0x4a549a],'userId':_0x224d40,'type':_0x6782e1}),_0x23da25[_0x6782e1]&&_0x467c26&&('elementStart'!==_0x471642[_0x4a549a]['type']||_0x43ad14&&_0x43ad14['userId']===_0x224d40||_0x189db1[_0x6782e1]['unshift']({'userId':_0x224d40,'object':_0x471642[_0x4a549a]['item'],'change':_0x23da25[_0x6782e1]}),'elementEnd'===_0x471642[_0x4a549a]['type']&&_0x43ad14&&_0x43ad14['object']===_0x471642[_0x4a549a]['item']&&(_0x189db1[_0x6782e1]['shift'](),_0x23da25[_0x6782e1]=_0x43ad14['change'])),_0x23da25[_0x6782e1]&&_0x506b3f&&(_0x23da25[_0x6782e1]['end']=_0x4d18b1,_0x5c1b7b(_0x23da25[_0x6782e1]),_0x23da25[_0x6782e1]=null);}function _0x5c1b7b({start:_0x1329cb,end:_0x291d41,tapeItem:_0x1519aa,userId:_0xd4287e,type:_0x13c9fd}){const _0x2b6aa3=_0x1519aa['item'],_0x18c991=_0x3380b6['schema']['isBlock'](_0x2b6aa3)&&!_0x3380b6['schema']['isLimit'](_0x2b6aa3),_0x13e0b6=_0x1329cb['nodeAfter']==_0x291d41['parent']&&_0x291d41['isAtStart'];if(_0x18c991&&_0x13e0b6)return;const _0x3b0b82=_0x3380b6['createRange'](_0x1329cb,_0x291d41),_0x1cb09f=_0x2ab6a9['get'](_0xd4287e),_0x4444ad=new r({'author':_0x1cb09f,'type':'isAdded'==_0x13c9fd||'isAddSuggestion'==_0x13c9fd?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x13c9fd||'isRemoveSuggestion'==_0x13c9fd},'createdAt':new Date(),'rootName':_0x147994});_0x263fce['push'](_0x4444ad),_0x278abc['markers']['set']('revision:'+_0x4444ad['id'],_0x3b0b82);}function _0x2e865b(_0xe6c0c,_0x27f480){const _0x5ac698=_0xe6c0c['getAttributes'](),_0x2cfd1b=_0x27f480['getAttributes']();for(const _0x505122 of _0x5ac698){if(_0x505122[0x1]!==_0x27f480['getAttribute'](_0x505122[0x0]))return!0x1;_0x2cfd1b['next']();}return _0x2cfd1b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3cd74d=>{const _0x2852ea=_0x3cd74d['markerName']['split'](':')[0x1],_0x3ff1e3=this['_getChangeFromId'](_0x2852ea);if(!_0x3ff1e3)return null;const _0x15b472='add'==_0x3ff1e3['type']?'insertion':'deletion',_0x5c77d9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x15b472];return _0x3ff1e3['data']['isSuggestion']&&_0x5c77d9['push']('ck-suggestion-marker-'+_0x15b472+'-new'),this['activeChange']==_0x3ff1e3&&_0x5c77d9['push']('ck-suggestion-marker--active'),{'classes':_0x5c77d9,'attributes':{'data-change-id':_0x2852ea}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x22605c=>{_0x22605c['on']('element:pre',(_0x21f015,_0x3eb4fc,_0x10fd7d)=>{const _0x28e2ff=_0x3eb4fc['viewItem']['getChild'](0x0);if(!_0x28e2ff||!_0x28e2ff['is']('element','code'))return;if(!_0x10fd7d['consumable']['consume'](_0x28e2ff,{'attributes':['vid_start','vid_end']}))return;const _0x4e107e=_0x3eb4fc['modelRange']['start']['nodeAfter'];_0x10fd7d['writer']['setAttribute']('vid_start',_0x28e2ff['getAttribute']('vid_start'),_0x4e107e),_0x10fd7d['writer']['setAttribute']('vid_end',_0x28e2ff['getAttribute']('vid_end'),_0x4e107e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4454df=>{_0x4454df['on']('element',(_0x36cc4a,_0x3415f6,_0x5d708e)=>{if(!_0x5d708e['consumable']['consume'](_0x3415f6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3415f6['modelRange']['isCollapsed'])return;const _0x493d82=_0x3415f6['modelRange']['start']['nodeAfter'];_0x493d82['hasAttribute']('vid_start')||_0x493d82['hasAttribute']('vid')||(_0x5d708e['writer']['setAttribute']('vid_start',_0x3415f6['viewItem']['getAttribute']('vid_start'),_0x493d82),_0x5d708e['writer']['setAttribute']('vid_end',_0x3415f6['viewItem']['getAttribute']('vid_end'),_0x493d82));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x46bf8c=>_0x46bf8c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe9dcf1,[,_0x425015])=>{['vid_start','vid_end','vid']['includes'](_0x425015)&&(_0xe9dcf1['return']=!0x0,_0xe9dcf1['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3f887c=>{_0x3f887c['on']('attribute:vid',(_0x3c5d82,_0x4080c4,_0x2fdb81)=>{if('\x20'!=_0x4080c4['item']['data']||_0x4080c4['item']['parent']['maxOffset']>0x1)return;if(!_0x2fdb81['consumable']['consume'](_0x4080c4['item'],_0x3c5d82['name']))return;const _0x1350c3=_0x2fdb81['writer'],_0x3b0b5c=_0x2fdb81['mapper']['toViewRange'](_0x4080c4['range']);_0x1350c3['wrap'](_0x3b0b5c,_0x1350c3['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3e10e1){const _0x3980d9=_0x3e10e1['plugins']['get']('RevisionViewer');return(_0x153a8e,_0x35fa0d,_0x21441e)=>{const _0x1f17fe=_0x35fa0d['markerName']['split'](':')[0x1],_0x592527=_0x3980d9['_getChangeFromId'](_0x1f17fe);if(!_0x592527)return null;const _0x310d80='add'==_0x592527['type']?'split':'merge';if(!_0x21441e['consumable']['test'](_0x35fa0d['markerRange'],_0x153a8e['name']))return;const _0x56ab5c=_0x35fa0d['markerRange']['getWalker'](),_0x3f290f=_0x35fa0d['markerRange']['start'],_0x358b8d=_0x3e10e1['model']['schema'];let _0x5d802e=null,_0x21b927=null,_0x2e3cee=!0x1,_0x5677b4=!0x1;for(const _0x23b05d of _0x56ab5c){const _0x340b50=_0x23b05d['item'];_0x2e3cee=_0x2e3cee||_0x358b8d['isContent'](_0x340b50);const _0x5dde86=_0x21441e['mapper']['toViewElement'](_0x340b50);if(_0x5dde86&&_0x5dde86['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23b05d['type']&&(_0x358b8d['isBlock'](_0x340b50)&&!_0x358b8d['isLimit'](_0x340b50)&&(_0x340b50['nextSibling']||_0x3f290f['isAtEnd']?_0x5d802e&&_0x5d802e['parent']==_0x340b50||(_0x5d802e=_0x340b50,_0xff9cd9(_0x23b05d['previousPosition']),_0x5677b4=!0x0):_0x21b927=_0x21b927||_0x23b05d['previousPosition']));}function _0xff9cd9(_0x5db73d){const _0x20b2ea=_0x21441e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x310d80}),_0x5f488e=_0x21441e['mapper']['toViewPosition'](_0x5db73d);_0x592527['data']['isSuggestion']&&_0x21441e['writer']['addClass']('ck-suggestion-marker-'+_0x310d80+'-new',_0x20b2ea),_0x3980d9['activeChange']==_0x592527&&_0x21441e['writer']['addClass']('ck-suggestion-marker--active',_0x20b2ea),_0x21441e['writer']['insert'](_0x5f488e,_0x20b2ea),_0x21441e['mapper']['bindElementToMarker'](_0x20b2ea,_0x35fa0d['markerName']);}_0x2e3cee||_0x5677b4||!_0x21b927||_0xff9cd9(_0x21b927);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5a3db7,_0x3853ac,_0x15d804)=>{const _0x2c3980=_0x15d804['mapper']['markerNameToElements'](_0x3853ac['markerName']);if(_0x2c3980){for(const _0x5d7970 of _0x2c3980)(_0x5d7970['hasClass']('ck-suggestion-marker-split')||_0x5d7970['hasClass']('ck-suggestion-marker-merge'))&&(_0x15d804['mapper']['unbindElementFromMarkerName'](_0x5d7970,_0x3853ac['markerName']),_0x15d804['writer']['remove'](_0x5d7970));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5c48f6,_0x1e5efa,_0x54af85)=>{const _0x26cae6=_0x1e5efa['markerName']['split'](':')[0x1],_0x17afb9=this['_getChangeFromId'](_0x26cae6);if(!_0x17afb9)return null;const _0x565516='add'==_0x17afb9['type']?'split':'merge';if(_0x54af85['consumable']['test'](_0x1e5efa['markerRange'],_0x5c48f6['name']))for(const _0x34895c of _0x1e5efa['markerRange']['getItems']()){if(!_0x34895c['is']('element','softBreak'))continue;const _0x260ec8=_0x54af85['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x565516}),_0x401696=_0x54af85['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x34895c));_0x17afb9['data']['isSuggestion']&&_0x54af85['writer']['addClass']('ck-suggestion-marker-'+_0x565516+'-new',_0x260ec8),this['activeChange']==_0x17afb9&&_0x54af85['writer']['addClass']('ck-suggestion-marker--active',_0x260ec8),_0x54af85['writer']['insert'](_0x401696,_0x260ec8),_0x54af85['mapper']['bindElementToMarker'](_0x260ec8,_0x1e5efa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1f8dc7=>{for(const _0x255782 of this['editor']['model']['document']['getRootNames']()){const _0x47e7b3=this['editor']['model']['document']['getRoot'](_0x255782),_0x20553a=this['editor']['editing']['view']['document']['getRoot'](_0x255782);if(_0x20553a){const _0x48eaaf=_0x47e7b3['getAttribute']('revisionHistoryAttachChange');if(_0x1f8dc7['removeAttribute']('data-change-id',_0x20553a),_0x1f8dc7['removeClass']('ck-revision-history-root-add',_0x20553a),_0x1f8dc7['removeClass']('ck-revision-history-root-remove',_0x20553a),_0x1f8dc7['removeClass']('ck-revision-history-root--active',_0x20553a),_0x48eaaf){const _0x4993ad=this['_getChangeFromId'](_0x48eaaf);if(!_0x4993ad)return null;_0x1f8dc7['setAttribute']('data-change-id',_0x48eaaf,_0x20553a),_0x1f8dc7['addClass']('ck-revision-history-root-'+_0x4993ad['type'],_0x20553a),this['activeChange']==_0x4993ad&&_0x1f8dc7['addClass']('ck-revision-history-root--active',_0x20553a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x267865=>'revision-comment:'+_0x267865,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x15f43b=>'revision-suggestion:'+_0x15f43b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3246c2=>({'name':'suggestion:'+_0x3246c2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x275639=>{const _0x46c859=_0x275639['markerName']['split'](':')[0x1];return'insertion'!=_0x46c859&&'deletion'!=_0x46c859?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x46c859]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x222630,_0x40159a,_0x1b1b00)=>{const _0x3efe50=_0x1b1b00['mapper']['markerNameToElements'](_0x40159a['markerName']);if(_0x3efe50){for(const _0x5aeb46 of _0x3efe50)_0x5aeb46['is']('uiElement')&&(_0x1b1b00['mapper']['unbindElementFromMarkerName'](_0x5aeb46,_0x40159a['markerName']),_0x1b1b00['writer']['remove'](_0x5aeb46));}},{'priority':'high'});}['_getChangeFromId'](_0x49ea7c){return this['_changeIdToChange']['get'](_0x49ea7c);}['_getViewForChange'](_0x1337ee){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1337ee),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x312a2c,_0x471fc6,_0x9c226b,_0x359738)=>{_0x359738&&this['_balloon']['remove'](_0x359738),_0x9c226b&&(this['_balloon']['add']({'view':_0x9c226b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x13a2fb=this['editor']['editing'],_0x4d0bbc=this['_getChangeFromId'](_0x9c226b['changeId']);let _0x8b3625;if(_0x4d0bbc['data']['isOnRoot']){const _0x54f4c8=_0x13a2fb['view']['getDomRoot'](_0x4d0bbc['rootName']);_0x8b3625=Array['from'](_0x54f4c8['getClientRects']());}else{const _0x37aff1=this['editor']['model']['markers']['get']('revision:'+_0x9c226b['changeId']);_0x8b3625=Array['from'](_0x13a2fb['mapper']['markerNameToElements'](_0x37aff1['name']))['map'](_0x30a658=>_0x13a2fb['view']['domConverter']['mapViewToDom'](_0x30a658))['map'](_0x29e3c6=>Array['from'](_0x29e3c6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x8b3625[0x0];return _0x8b3625['find'](_0x607b05=>_0x607b05['top']-0x3<=this['_activeViewTarget']['y']&&_0x607b05['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x607b05['left']-0x3<=this['_activeViewTarget']['x']&&_0x607b05['right']+0x3>=this['_activeViewTarget']['x'])||_0x8b3625[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5bfd11,_0x259587,_0x519451,_0x4275e6)=>{this['activeView']=_0x519451?this['_getViewForChange'](_0x519451):null,this['editor']['model']['change'](()=>{const _0x550e42=this['editor']['editing'];_0x4275e6&&(_0x4275e6['data']['isOnRoot']?_0x550e42['view']['change'](_0x24657c=>{_0x24657c['removeClass']('ck-revision-history-root--active',_0x550e42['view']['document']['getRoot'](_0x4275e6['rootName']));}):_0x550e42['reconvertMarker']('revision:'+_0x4275e6['id'])),_0x519451&&(_0x519451['data']['isOnRoot']?_0x550e42['view']['change'](_0x120f8c=>{_0x120f8c['addClass']('ck-revision-history-root--active',_0x550e42['view']['document']['getRoot'](_0x519451['rootName']));}):_0x550e42['reconvertMarker']('revision:'+_0x519451['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xfb7f79,_0x270cb7)=>{if(this['activeChange'])return;const _0x22be99=this['_findChangeIdFromDomTarget'](_0x270cb7['target']),_0x50d152=this['_changeIdToChange']['get'](_0x22be99);_0x50d152?(this['_activeViewTarget']={'x':_0x270cb7['domEvent']['x'],'y':_0x270cb7['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x50d152)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1de11d,_0xd5b616)=>{const _0x3d2855=this['_findChangeIdFromDomTarget'](_0xd5b616['target']),_0x44a4f6=this['_changeIdToChange']['get'](_0x3d2855);_0x44a4f6?(this['_activeViewTarget']={'x':_0xd5b616['domEvent']['x'],'y':_0xd5b616['domEvent']['y']},_0x44a4f6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x44a4f6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x11c869){do{const _0x1edf13=_0x11c869['getAttribute']('data-change-id');if(_0x1edf13)return _0x1edf13;_0x11c869=_0x11c869['parent'];}while(_0x11c869);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x47da2c=>{for(const _0x11db2b of this['editor']['model']['markers'])_0x47da2c['removeMarker'](_0x11db2b);});}}function Z(_0x406021,_0x1e240b){return(_0x67f2a3,_0x503369,_0x3eef49)=>{if(!_0x3eef49['consumable']['test'](_0x503369['markerRange'],_0x67f2a3['name']))return;const _0xf65389=_0x503369['markerRange']['getWalker'](),_0x3ce79c=_0x503369['markerRange']['start'],_0x4c60f3=_0x406021['model']['schema'];let _0x4dece2=null,_0x2a880a=null,_0x279236=!0x1,_0x742c68=!0x1;for(const _0x23adfc of _0xf65389){const _0x10ecaf=_0x23adfc['item'];_0x279236=_0x279236||_0x4c60f3['isContent'](_0x10ecaf);const _0xf5f1f1=_0x3eef49['mapper']['toViewElement'](_0x10ecaf);if(_0xf5f1f1&&_0xf5f1f1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23adfc['type']&&(_0x4c60f3['isBlock'](_0x10ecaf)&&!_0x4c60f3['isLimit'](_0x10ecaf)&&(_0x10ecaf['nextSibling']||_0x3ce79c['isAtEnd']?_0x4dece2&&_0x4dece2['parent']==_0x10ecaf||(_0x4dece2=_0x10ecaf,_0x219116(_0x23adfc['previousPosition']),_0x742c68=!0x0):_0x2a880a=_0x2a880a||_0x23adfc['previousPosition']));}function _0x219116(_0x3b904d){const _0x467c6e=_0x3eef49['mapper']['toViewPosition'](_0x3b904d),_0x12d481=_0x3eef49['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1e240b});_0x3eef49['writer']['insert'](_0x467c6e,_0x12d481),_0x3eef49['mapper']['bindElementToMarker'](_0x12d481,_0x503369['markerName']);}_0x279236||_0x742c68||!_0x2a880a||_0x219116(_0x2a880a);};}class _t extends _0x27b68e{constructor(_0x591971){super(_0x591971);const _0x12b505=_0x591971['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x12b505,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x12b505,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x321291=this['editor'],_0xae5d1b=_0x321291['plugins']['get'](d),_0x57d92d=_0xae5d1b['isReady']?_0xae5d1b['diff']['newRevisionId']:null;_0x321291['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x57d92d);}['refresh'](){const {isReady:_0x43d2bc,isEnabled:_0x33b20e,repository:_0x307bb1,diff:_0x3c3ca0}=this['editor']['plugins']['get'](d),_0x266644=_0x3c3ca0&&_0x307bb1['getLaterVisibleRevision'](_0x3c3ca0['newRevisionId']);this['isEnabled']=_0x43d2bc&&_0x33b20e&&Boolean(_0x266644);}}class yt extends _0x27b68e{['_step'];constructor(_0x115670,{direction:_0x248890}){super(_0x115670);const _0x122403=_0x115670['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x248890?0x1:-0x1,this['listenTo'](_0x122403,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x122403,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x122403,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x406f75=this['editor'],_0x163216=_0x406f75['plugins']['get'](d),{isNavigationMode:_0x53a79d,currentChangeNumber:_0x5d0a54}=_0x163216;let _0x1da9e8;if(_0x163216['activeChange']=_0x53a79d?_0x163216['diff']['changes']['get'](_0x5d0a54+this['_step']):_0x163216['diff']['changes']['first'],_0x163216['activeChange']['data']['isOnRoot'])_0x1da9e8=_0x406f75['editing']['view']['getDomRoot'](_0x163216['activeChange']['rootName']);else{const _0xae7ed3=_0x406f75['model']['markers']['get']('revision:'+_0x163216['activeChange']['id']);_0x1da9e8=_0x13bcd1(_0x406f75['editing'],_0xae7ed3);}_0xaf28a7({'target':_0x1da9e8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2661a5,currentChangeNumber:_0x2f629a,numberOfChanges:_0x8d79d8,isReady:_0x3f6d3d,isEnabled:_0x2a9598}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2a9598&&_0x3f6d3d&&_0x8d79d8)&&(!_0x2661a5||(0x1===this['_step']?_0x2f629a<_0x8d79d8-0x1:_0x2f629a>0x0));}}class li extends _0x2556fc{constructor(_0x48054c){super(_0x48054c);const _0x160f4f=this['bindTemplate'],_0x1f1901=new _0x19ff9c(_0x48054c),_0x520cf8=new _0x19ff9c(_0x48054c);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x4efae3,_0x40afe7)=>_0x4efae3&&_0x40afe7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x19735b,_0x4bb3c0,_0x21a1d4,_0x2c9430)=>{if(!_0x19735b)return m(_0x48054c,'Loading...');if(!_0x21a1d4)return m(_0x48054c,'No\x20changes');const _0xaa26eb=m(_0x48054c,'NUMBER_OF_CHANGES',_0x21a1d4);return _0x2c9430?m(_0x48054c,'X_OF_Y_CHANGES',[_0x4bb3c0+0x1,_0x21a1d4]):_0xaa26eb;}),_0x1f1901['set']({'label':m(_0x48054c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x353a70}),_0x520cf8['set']({'label':m(_0x48054c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x28484c}),_0x1f1901['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x520cf8['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1f1901['on']('execute',()=>this['fire']('execute','backward')),_0x520cf8['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x160f4f['if']('_isStatusLabelVisible','ck-hidden',_0x281938=>!_0x281938)]},'children':[{'text':_0x160f4f['to']('isNavigationMode',_0x4951e2=>_0x4951e2?m(_0x48054c,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x48054c,'Total')+':\x20')}]},{'text':_0x160f4f['to']('_statusText')}]},new _0x5a2048(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1f1901,_0x520cf8]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x550265{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x31f07e=this['editor']['editing']['view'];_0x31f07e['change'](_0x21f1f0=>{for(const _0x58d843 of _0x31f07e['document']['roots'])_0x21f1f0['addClass'](ce,_0x58d843);});}['hide'](){const _0x5a2c21=this['editor']['editing']['view'];_0x5a2c21['change'](_0x587b83=>{for(const _0x172114 of _0x5a2c21['document']['roots'])_0x587b83['removeClass'](ce,_0x172114);});}}class w extends _0x550265{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x34ca1f=this['editor'],_0x366ca4=_0x34ca1f['plugins']['get'](d),_0x399658=_0x34ca1f['plugins']['get'](le);_0x34ca1f['ui']['componentFactory']['add']('exitToEditing',_0x1da1ca=>{const _0x35ab42=new _0x19ff9c(_0x1da1ca);return _0x35ab42['set']({'label':m(_0x1da1ca,'Back\x20to\x20editing'),'icon':_0x590b14,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x35ab42,'execute',()=>{_0x34ca1f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x35ab42;}),_0x34ca1f['ui']['componentFactory']['add']('restoreRevision',_0x3ff880=>{const _0x4e5f89=new _0x19ff9c(_0x3ff880);return _0x4e5f89['set']({'label':m(_0x3ff880,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4e5f89['bind']('isEnabled')['to'](_0x34ca1f['commands']['get']('restoreRevision')),this['listenTo'](_0x4e5f89,'execute',()=>_0x34ca1f['execute']('restoreRevision')),_0x4e5f89;}),_0x34ca1f['ui']['componentFactory']['add']('changesNavigation',_0x2c8c51=>{const _0x50332d=new li(_0x2c8c51),_0x7da4c4=_0x34ca1f['commands']['get']('showPreviousChange'),_0xa671fc=_0x34ca1f['commands']['get']('showNextChange');return _0x50332d['bind']('isBackwardNavigationEnabled')['to'](_0x7da4c4,'isEnabled'),_0x50332d['bind']('isForwardNavigationEnabled')['to'](_0xa671fc,'isEnabled'),_0x50332d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x366ca4),this['listenTo'](_0x50332d,'execute',(_0x34a284,_0x4928b8)=>{_0x34ca1f['execute']('forward'===_0x4928b8?'showNextChange':'showPreviousChange');}),_0x50332d;}),_0x399658['show'](),_0x366ca4['on']('change:isReady',(_0x44d034,_0x2f2ccd,_0x872f8b)=>{_0x872f8b?_0x399658['hide']():_0x399658['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x4d953c,_0x42fa82){super(_0x4d953c,_0x42fa82);const _0x55e28f=this['bindTemplate'];this['set']({'label':m(_0x4d953c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4d953c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x55e28f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x47a291=this['fieldView']['element'];this['_tooltipString']=_0x47a291['scrollWidth']>_0x47a291['clientWidth']&&_0x47a291['value']||'';}}class oi extends _0x2556fc{constructor(_0x5336d0,_0x42f323,_0x267dab){super(_0x5336d0);const _0x2714f6=new _0x46d144();_0x2714f6['set']({'content':_0x23a47e,'viewBox':'0\x200\x2011\x2010'});const _0x376500=['ck','ck-revision-history-sidebar__revision-author'];_0x267dab&&_0x376500['push']('ck-revision-history-sidebar__revision-author_creator');const _0x18901b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5336d0,_0x267dab?'Revision\x20creator':'Revision\x20author')},'children':[_0x2714f6,_0x42f323['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x376500},'children':_0x18901b});}}function ni(_0x1cf170,_0x14316e){const _0x165349=_0x1cf170['bindTemplate'],_0x19bca1=_0x1cf170['locale'],_0x487e9c=_0x1922d9(_0x19bca1);_0x487e9c['panelPosition']='sw';const _0x257880=function(_0x5ea07b,_0x3a2aa0){const _0x591a0e=function(_0x24aab6,_0x360240){const _0x4f8978=_0x24aab6['locale'],_0x2ccc0e={'Compare\x20against\x20selected':m(_0x4f8978,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4f8978,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4f8978,'Restore\x20this\x20revision')};return _0x360240['map'](_0x2af4c7=>{const _0x39663b=_0x2ccc0e[_0x2af4c7['name']];return _0x39663b&&_0x39663b!==_0x2af4c7['name']&&(_0x2af4c7['name']=_0x39663b),_0x2af4c7;});}(_0x5ea07b,_0x3a2aa0),_0x33e471=new _0x2ea35a();for(const _0xd8203f of _0x591a0e){const _0xf75fa={'type':'button','model':new to({'label':_0xd8203f['name'],'class':_0xd8203f['class'],'withText':!0x0,'role':'menuitem','_action':_0xd8203f['action']})};_0xf75fa['model']['bind']('isEnabled')['to'](_0x5ea07b,'isActionsDropdownOpen',_0x5040c9=>'function'!=typeof _0xd8203f['isEnabled']||(!_0x5040c9||_0xd8203f['isEnabled'](_0x5ea07b))),_0x33e471['add'](_0xf75fa);}return _0x33e471;}(_0x1cf170,_0x14316e);return _0x1cf170['bind']('isActionsDropdownOpen')['to'](_0x487e9c,'isOpen'),_0x487e9c['buttonView']['set']({'label':m(_0x19bca1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x9cdaf6}),_0x487e9c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x165349['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x165349['to'](_0x4df9e3=>_0x4df9e3['stopPropagation']())}}),_0x487e9c['on']('execute',_0x6ddeb2=>{_0x1cf170['isReady']&&'function'==typeof _0x6ddeb2['source']['_action']&&_0x6ddeb2['source']['_action'](_0x1cf170);}),_0x506b9f(_0x487e9c,_0x257880,{'role':'menu'}),_0x487e9c['listenTo'](_0x1cf170,'change:isActionsDropdownOpen',(_0x57ac49,_0x59857b,_0x5889bf)=>{if(_0x5889bf)for(const _0x20cb96 of _0x487e9c['listView']['items']){const _0xbe49fc=_0x20cb96['children']['first'],_0x405e0e=_0x14316e['find'](_0x5ae32a=>_0x5ae32a['action']===_0xbe49fc['_action'])['isVisible'];_0x20cb96['isVisible']=void 0x0===_0x405e0e||_0x405e0e(_0x1cf170);}}),_0x487e9c;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x3a182d(_0x2556fc){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x385dc6,_0x200e19,_0x4d6fed,_0x2fe1b9){super(_0x385dc6);const _0x10dd8f=this['bindTemplate'],_0x2962d9=function(_0x2bc13f,_0xa4f7a3){const _0x4849d1=Array['from'](_0xa4f7a3['authors'])['filter'](_0x544be0=>_0x544be0!=_0xa4f7a3['creator']);return _0xa4f7a3['creator']&&_0x4849d1['unshift'](_0xa4f7a3['creator']),_0x4849d1['map'](_0x12a8ed=>new oi(_0x2bc13f,_0x12a8ed,_0x12a8ed==_0xa4f7a3['creator']));}(_0x385dc6,_0x200e19);this['id']=_0x200e19['id'],this['_revision']=_0x200e19,this['_requireRevisionName']=_0x2fe1b9,this['bind']('name','createdAt')['to'](_0x200e19),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2dabe2=>{return _0x24f5df=_0x385dc6['uiLanguage'],(_0x276909=_0x2dabe2)['toLocaleDateString'](_0x24f5df,{'month':'long','day':'numeric'})+',\x20'+_0x276909['toLocaleTimeString'](_0x24f5df,{'hour':'numeric','minute':'numeric'});var _0x24f5df,_0x276909;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x385dc6,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4ce11a=>_0x4ce11a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x86c6b3,_0x33c7c9)=>_0x86c6b3&&_0x33c7c9),this['revisionActionsView']=_0x4d6fed&&_0x4d6fed['length']?ni(this,_0x4d6fed):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x10dd8f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x10dd8f['if']('isEnabled','ck-disabled',_0x5b9452=>!_0x5b9452),_0x10dd8f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x10dd8f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x10dd8f['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x10dd8f['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x2962d9}]},this['revisionActionsView']],'on':{'click':_0x10dd8f['to'](_0x2914ba=>{_0x2914ba['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x376a14=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x376a14,'change',()=>{this['_requireRevisionName']&&!_0x376a14['value']||this['fire']('setName',{'id':this['id'],'name':_0x376a14['value']}),_0x376a14['value']||(_0x376a14['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x3416c4,_0x25d4f3){const _0x5208a9=_0x559f44['fromJSDate'](_0x3416c4)['setLocale'](_0x25d4f3),_0x26a680=_0x559f44['local'](),_0x37a2cb=_0x26a680['minus']({'days':0x1})['startOf']('day');let _0x46f48c,_0x16bbe2;return _0x5208a9['hasSame'](_0x26a680,'day')?(_0x46f48c=_0x5208a9['startOf']('day')['toJSDate'](),_0x16bbe2=_0x5208a9['toRelativeCalendar']()):_0x5208a9['hasSame'](_0x37a2cb,'day')?(_0x46f48c=_0x37a2cb['toJSDate'](),_0x16bbe2=_0x5208a9['toRelativeCalendar']()):_0x5208a9['hasSame'](_0x26a680,'week')?(_0x46f48c=_0x5208a9['startOf']('week')['toJSDate'](),_0x16bbe2=_0x5208a9['weekdayLong']||''):_0x5208a9['hasSame'](_0x26a680,'year')?(_0x46f48c=_0x5208a9['startOf']('month')['toJSDate'](),_0x16bbe2=_0x5208a9['monthLong']||''):(_0x46f48c=_0x5208a9['startOf']('year')['toJSDate'](),_0x16bbe2=String(_0x5208a9['year'])),{'startDate':_0x46f48c,'localizedPeriodName':_0x16bbe2};}class _i extends _0x2556fc{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2e6b04,_0x329043,_0x2892df,_0x36757e){super(_0x2e6b04);const _0x28c680=mi(_0x329043,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x329043,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2892df,this['_requireRevisionName']=_0x36757e,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x28c680}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x241234){const _0x13fd61=new ai(this['locale'],_0x241234,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x13fd61);}['removeRevision'](_0x139b1c){const _0x4cb99a=this['revisionViews']['find'](_0x499c6f=>_0x499c6f['id']===_0x139b1c['id']);this['revisionViews']['remove'](_0x4cb99a);}}class as extends _0x2556fc{constructor(_0x5024d7){super(_0x5024d7);const _0x31cf1c=new _0x46d144();_0x31cf1c['content']=_0x37efe1,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x31cf1c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5024d7,'Revision\x20history')]}]});}}class vi extends _0x2556fc{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3ac541,_0x1ca9db,_0x3f5eb0,_0x5f264e){super(_0x3ac541);const _0x2698a0=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1ca9db,this['_revisionActions']=_0x3f5eb0,this['_requireRevisionName']=_0x5f264e,this['on']('select',(_0x11a13f,_0x47a494)=>{this['fire']('revisionSelected',_0x47a494);}),this['on']('setName',(_0x52674f,_0x145a14)=>{this['fire']('revisionSetName',_0x145a14);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3ac541),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2698a0['if']('isEnabled','ck-disabled',_0x532b3d=>!_0x532b3d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x306645 of this['_revisions'])this['_addRevision'](_0x306645);this['_revisions']['on']('add',(_0xfeb8c1,_0x568f86)=>{this['_addRevision'](_0x568f86);}),this['_revisions']['on']('remove',(_0x3220db,_0x4f64d9)=>{this['_removeRevision'](_0x4f64d9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x141660=>_0x141660['revisionViews']['map'](_0x4e0d76=>_0x4e0d76))['flat']();}['selectRevision'](_0x187a3a){for(const _0x19889e of this['revisionViews'])_0x187a3a&&_0x187a3a['id']===_0x19889e['id']?_0x19889e['select']():_0x19889e['deselect']();}['highlightRevisions'](_0x5d1987){for(const _0x48e844 of this['revisionViews'])_0x5d1987['some'](({id:_0x14f7a6})=>_0x14f7a6===_0x48e844['id'])?_0x48e844['highlight']():_0x48e844['unhighlight']();}['_addRevision'](_0x4195bb){const _0x25cc52=mi(_0x4195bb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5711fc=this['timePeriodViews']['get'](0x0);_0x5711fc&&_0x5711fc['startDate']['getTime']()===_0x25cc52['getTime']()||(_0x5711fc=new _i(this['locale'],_0x25cc52,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5711fc)),_0x5711fc['addRevision'](_0x4195bb);}['_removeRevision'](_0x2c78f0){const _0x5a015a=mi(_0x2c78f0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5a015a)['removeRevision'](_0x2c78f0);}['_getTimePeriodViewByStartDate'](_0x650dee){return this['timePeriodViews']['find'](_0x43748f=>_0x43748f['startDate']['getTime']()===_0x650dee['getTime']());}}class g extends _0x550265{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x12e48c,uid as _0x11cac6,Collection as _0x3c9798,logWarning as _0x26f557,FocusTracker as _0xb58d78,KeystrokeHandler as _0x22b2b6,scrollViewportToShowTarget as _0x4675b1,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x2fa8d8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xd3d7c6,set as _0x4a343f,unset as _0x373b32,isEqual as _0x426189}from'es-toolkit/compat';import{Plugin as _0x1947b9,PendingActions as _0x98a53,Command as _0x27c93a,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3da1a3,getMarkerDomElement as _0x43daf5,ConfirmMixin as ti,sanitizeEditorConfig as _0xd0e0b6}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x26a069,Element as ut,Range as ft,ViewUIElement as _0x14dc4c,ViewRawElement as _0x226a61,ViewEmptyElement as _0x155563,ViewAttributeElement as _0x544f6d,ViewContainerElement as _0x30d263,Position as vt,ViewText as _0x29f1b1,ViewElement as _0x59bd53,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4b0f09,IconChevronUp as _0x37c493,IconChevronDown as _0x14e1f8,IconUndo as _0x13e63e,IconUser as _0x48a0fb,IconThreeVerticalDots as _0x25edbc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x52b994,submitHandler as _0xbcc6bc,LabeledFieldView as _0x3230b0,createLabeledInputText as _0x30c57f,createDropdown as _0x5ae326,ListView as _0x575510,ListItemView as _0x1fc11a,ButtonView as te,MenuBarMenuView as _0x3d315a,MenuBarMenuListView as _0x489dbe,MenuBarMenuListItemView as _0x5b8bda,MenuBarMenuListItemButtonView as _0x31e280,ContextualBalloon as _0x57e549,ToolbarSeparatorView as _0x332562,IconView as _0x33aa8f,addListToDropdown as _0x40c490,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x19df88}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x12e48c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xf18be1){super(),this['id']=_0xf18be1['id']||_0x11cac6(),this['creator']=_0xf18be1['creator']||null,this['authors']=_0xf18be1['authors']||[],this['diffData']=_0xf18be1['diffData']||null,this['toVersion']=_0xf18be1['toVersion']||0x0,this['fromVersion']=_0xf18be1['fromVersion']||0x0,this['set']('name',_0xf18be1['name']||''),this['set']('createdAt',_0xf18be1['createdAt']||new Date()),this['set']('attributes',_0xf18be1['attributes']||{});}['setName'](_0x3c2d8c){this['_update']({'name':_0x3c2d8c});}['setAttribute'](_0x592e44,_0x36b154){const _0x56009a=_0xd3d7c6(this['attributes']);_0x4a343f(_0x56009a,_0x592e44,_0x36b154),this['_update']({'attributes':_0x56009a});}['removeAttribute'](_0x39d48c){const _0x10f6af=_0xd3d7c6(this['attributes']);_0x373b32(_0x10f6af,_0x39d48c),this['_update']({'attributes':_0x10f6af});}['_update'](_0x419302,_0x2909bb=!0x1){let _0x3e84df=!0x1;const _0xc347f={'id':this['id']},_0xe5ae2=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x312dcb of _0xe5ae2){const _0x118b10=_0x419302[_0x312dcb];void 0x0!==_0x118b10&&_0x118b10!==this[_0x312dcb]&&(this[_0x312dcb]=_0x118b10,_0xc347f[_0x312dcb]=_0x118b10,_0x3e84df=!0x0);}_0x3e84df&&(_0xc347f['authors']&&(_0xc347f['authorsIds']=_0xc347f['authors']['map'](_0x4f52bc=>_0x4f52bc['id']),delete _0xc347f['authors']),this['fire']('_update',_0xc347f,_0x2909bb));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x185db7=>_0x185db7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1947b9{['_revisions'];static get['requires'](){return[_0x3da1a3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2d1ed5){super(_0x2d1ed5),this['_revisions']=new _0x3c9798();}['afterInit'](){!async function(_0x35c228){const _0x2d31ae=_0x4b7cbd([0x79,0x54,0x36,0x4d,0x49,0x35,0x63,0x75,0x51,0x4f,0x7a,0x6c,0x66,0x4e,0x55,0x76,0x46,0x78,0x74,0x42,0x4a,0x4c,0x52,0x48,0x77,0x44,0x50,0x47,0x6e,0x61,0x62,0x37,0x6f,0x65,0x58,0x64,0x57,0x41,0x70,0x45,0x73,0x6d,0x33,0x68,0x34,0x38,0x56,0x53,0x6b,0x30,0x67,0x32,0x5a,0x39,0x43,0x72,0x59,0x69,0x4b,0x31,0x71,0x6a]),_0x4e10cc=0xeb829,_0x322501=0x66cc27bb,_0x1cfd17=0x66cb4603^_0x322501,_0x19affa=window[_0x4b7cbd([0x44,0x61,0x74,0x65])][_0x4b7cbd([0x6e,0x6f,0x77])](),_0x5885a6=_0x35c228[_0x4b7cbd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c4d69=new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe2901e=>{_0x5885a6[_0x4b7cbd([0x6f,0x6e,0x63,0x65])](_0x4b7cbd([0x72,0x65,0x61,0x64,0x79]),_0xe2901e);}),_0x356fcf={[_0x4b7cbd([0x6b,0x74,0x79])]:_0x4b7cbd([0x45,0x43]),[_0x4b7cbd([0x75,0x73,0x65])]:_0x4b7cbd([0x73,0x69,0x67]),[_0x4b7cbd([0x63,0x72,0x76])]:_0x4b7cbd([0x50,0x2d,0x32,0x35,0x36]),[_0x4b7cbd([0x78])]:_0x4b7cbd([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4b7cbd([0x79])]:_0x4b7cbd([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4b7cbd([0x61,0x6c,0x67])]:_0x4b7cbd([0x45,0x53,0x32,0x35,0x36])},_0x35ee55=_0x5885a6[_0x4b7cbd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b7cbd([0x67,0x65,0x74])](_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a63dc(){let _0xf2bdb1,_0x6c4cef=null,_0x3706a5=null;try{if(_0x35ee55==_0x4b7cbd([0x47,0x50,0x4c]))return _0x4b7cbd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf2bdb1=_0x5d6222(),!_0xf2bdb1)return _0x4b7cbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf2bdb1[_0x4b7cbd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3706a5=_0x4d959b(_0xf2bdb1[_0x4b7cbd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf2bdb1[_0x4b7cbd([0x6a,0x74,0x69])])),await _0x19fca9()?_0x129f56()?_0x5da176()?_0x4b7cbd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51be32()?(_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b7cbd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6c4cef=_0x25ed22(_0x4b7cbd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b7cbd([0x74,0x72,0x69,0x61,0x6c])&&(_0x6c4cef=_0x25ed22(_0x4b7cbd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16e9c4()):_0x4b7cbd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b7cbd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b7cbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x41942c){return _0x4b7cbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5da176(){const _0x51f84b=[_0x4b7cbd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b7cbd([0x74,0x72,0x69,0x61,0x6c])][_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19affa/0x3e8:0xe10*_0x1cfd17;return _0xf2bdb1[_0x4b7cbd([0x65,0x78,0x70])]<_0x51f84b;}function _0x129f56(){const _0x4190d9=_0xf2bdb1[_0x4b7cbd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4190d9)return!0x1;if(_0x4190d9[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x2a])))return!0x0;if(_0x4190d9[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x52,0x48])))return!0x0;if(_0x4190d9[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x52,0x52,0x48]))){if(_0x131f93())return!0x0;if(_0x3b9145()||_0x5ce27d())return!0x0;}return!0x1;}function _0x51be32(){const _0x23c5c5=_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23c5c5||0x0==_0x23c5c5[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x232f20}=new URL(window[_0x4b7cbd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23c5c5[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x232f20))return!0x0;const _0x112d09=_0x232f20[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e]));return _0x23c5c5[_0x4b7cbd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bf85d=>_0x3bf85d[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x2a])))[_0x4b7cbd([0x6d,0x61,0x70])](_0x131b9d=>_0x131b9d[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e])))[_0x4b7cbd([0x73,0x6f,0x6d,0x65])](_0x137921=>_0x112d09[_0x4b7cbd([0x65,0x76,0x65,0x72,0x79])]((_0x3e8130,_0x44d5a5)=>_0x137921[_0x44d5a5]===_0x3e8130||_0x137921[_0x44d5a5]===_0x4b7cbd([0x2a])));}function _0x16e9c4(){return _0x6c4cef&&_0x3706a5?new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39172a,_0x5e55d3)=>{_0x6c4cef[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x39172a,_0x5e55d3),_0x3706a5[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x1fa348=>{_0x1fa348!=_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64])&&_0x39172a(_0x1fa348);},_0x5e55d3);}):_0x6c4cef||_0x3706a5||_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d959b(_0x20ac21,_0x5b2be8){return new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a392a=>{if(_0x5760c2())return _0x3a392a(_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64]));_0x2a4b1a(),_0x5885a6[_0x4b7cbd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b7cbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22500f=!0x1;const _0x411340=_0x11cac6();function _0x1bc9d1(_0x174ce5){return!!_0x174ce5&&(typeof _0x174ce5===_0x4b7cbd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x174ce5===_0x4b7cbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x174ce5[_0x4b7cbd([0x74,0x68,0x65,0x6e])]===_0x4b7cbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x174ce5[_0x4b7cbd([0x63,0x61,0x74,0x63,0x68])]===_0x4b7cbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa80e67(_0x344188){_0x47a62d(_0x344188)[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x2a7497=>{if(!_0x2a7497||_0x2a7497[_0x4b7cbd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b7cbd([0x6f,0x6b]))return _0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x513f15(_0x285a49(_0x411340+_0x5b2be8))!=_0x2a7497[_0x4b7cbd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x436661=>(_0x9a5e99(),_0x436661),()=>{const _0x59341a=_0x3e22d8();return null==_0x59341a?(_0x9a5e99(),_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64])):_0x4b7cbd(_0x19affa-_0x59341a>(0x42c0a3bb^_0x322501)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x3a392a)[_0x4b7cbd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a392a(_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x564cd1=0x66fac93b^_0x322501;function _0x9a5e99(){const _0x4356bf=_0x4b7cbd([0x6c,0x6c,0x63,0x74,0x2d])+_0x513f15(_0x285a49(_0x20ac21)),_0x1923d3=_0x5894bd(_0x513f15(window[_0x4b7cbd([0x4d,0x61,0x74,0x68])][_0x4b7cbd([0x63,0x65,0x69,0x6c])](_0x19affa/_0x564cd1)));window[_0x4b7cbd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b7cbd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4356bf,_0x1923d3);}function _0x3e22d8(){const _0x3f52f0=_0x4b7cbd([0x6c,0x6c,0x63,0x74,0x2d])+_0x513f15(_0x285a49(_0x20ac21)),_0x263d9f=window[_0x4b7cbd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b7cbd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f52f0);return _0x263d9f?window[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5894bd(_0x263d9f),0x10)*_0x564cd1:null;}function _0x47a62d(_0x2babe4){return new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10162f,_0xe96d29)=>{_0x2babe4[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x10162f,_0xe96d29),window[_0x4b7cbd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe96d29,0x66cdf37b^_0x322501);});}}_0x5885a6[_0x4b7cbd([0x6f,0x6e])](_0x4b7cbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x143e93,_0x5902cb)=>{if(_0x5902cb[0x0]!=_0x20ac21)return _0x3a392a(_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5902cb[0x1]={..._0x5902cb[0x1],[_0x4b7cbd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x411340};},{[_0x4b7cbd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b7cbd([0x68,0x69,0x67,0x68])}),_0x5885a6[_0x4b7cbd([0x6f,0x6e])](_0x4b7cbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40f514=>{_0x1bc9d1(_0x40f514[_0x4b7cbd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22500f=!0x0,_0xa80e67(_0x40f514[_0x4b7cbd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b7cbd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b7cbd([0x6c,0x6f,0x77])}),_0x1c4d69[_0x4b7cbd([0x74,0x68,0x65,0x6e])](()=>{_0x22500f||_0x3a392a(_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5760c2(){return _0x5885a6[_0x4b7cbd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b7cbd([0x76,0x69,0x65,0x77])][_0x4b7cbd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b7cbd([0x61,0x75,0x74,0x6f]);}function _0x2a4b1a(){_0x5885a6[_0x4b7cbd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b7cbd([0x76,0x69,0x65,0x77])][_0x4b7cbd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b7cbd([0x61,0x75,0x74,0x6f]);}}function _0x25ed22(_0x44929f){const _0x21cc1d=[new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aec14=>setTimeout(_0x3aec14,0x66c51977^_0x322501)),_0x1c4d69[_0x4b7cbd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34bf08=>{const _0x3b5305=0x66cc27bc^_0x322501,_0x1a1fb6=_0x35c228[_0x4b7cbd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2056a3(){_0x1a1fb6[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3b5305&&_0x34bf08();}_0x2056a3(),_0x1a1fb6[_0x4b7cbd([0x6f,0x6e])](_0x4b7cbd([0x61,0x64,0x64]),_0x2056a3);})),new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f241f=>{function _0x226298(){for(const _0x43da2f in window)if(window[_0x4b7cbd([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4b7cbd([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x43da2f))&&window[_0x43da2f]==_0x4e10cc)return _0x2f241f();_0x5885a6[_0x4b7cbd([0x73,0x74,0x61,0x74,0x65])]!=_0x4b7cbd([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4b7cbd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x226298,0x66cc3433^_0x322501);}_0x9b6393(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x226298();})];return window[_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b7cbd([0x72,0x61,0x63,0x65])](_0x21cc1d)[_0x4b7cbd([0x74,0x68,0x65,0x6e])](()=>_0x44929f);}async function _0x2c7a55(){if(await _0x1c4d69,_0x9b6393(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11c2b8=_0x35c228[_0x4b7cbd([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2133af=_0x35c228[_0x4b7cbd([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x11c2b8[_0x4b7cbd([0x69,0x64])]),_0x1bbd3e=_0x1457f9(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1bbd3e[_0x4b7cbd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11c2b8['id'],_0x2133af?_0x2133af['id']:null,!0x0),_0x1bbd3e[_0x4b7cbd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bbd3e[_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bbd3e[_0x4b7cbd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5cf779,void(_0x1bbd3e[_0x4b7cbd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5cf779);}if(_0x9b6393(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4907ad=_0x1457f9(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4907ad[_0x4b7cbd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4907ad[_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4907ad[_0x4b7cbd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5cf779,_0x4907ad[_0x4b7cbd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5cf779;}_0x5885a6[_0x4b7cbd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b7cbd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cf779,_0x5885a6[_0x4b7cbd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b7cbd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cf779,_0x5885a6[_0x4b7cbd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b7cbd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x131f93(){return _0x9b6393(_0x4b7cbd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1457f9(_0x4b7cbd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4b7cbd([0x73,0x74,0x61,0x74,0x65])]==_0x4b7cbd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3b9145(){return _0x9b6393(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x5ce27d(){return _0x9b6393(_0x4b7cbd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9293bc(_0x504367){const _0x43c6f3=_0x634712();_0x5885a6[_0x43c6f3]=_0x4b7cbd([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x504367,_0x504367[_0x4b7cbd([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4b7cbd([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x634712()]=_0x4e10cc),_0x504367!=_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64])&&_0x2c7a55();}function _0x634712(){const _0xa4343c=window[_0x4b7cbd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b7cbd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b7cbd([0x6e,0x6f,0x77])]())[_0x4b7cbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b7cbd([0x2e]),'');let _0x1039de=_0x4b7cbd([0x79]);for(let _0x385885=0x0;_0x385885<_0xa4343c[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x385885+=0x2){let _0x1f4678=window[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa4343c[_0x4b7cbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x385885,_0x385885+0x2));_0x1f4678>=_0x2d31ae[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f4678-=_0x2d31ae[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1039de+=_0x2d31ae[_0x1f4678];}return _0x1039de;}function _0x5d6222(){const _0x27ac5e=_0x35ee55[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e]));if(0x3!=_0x27ac5e[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d0eab(_0x27ac5e[0x1]);function _0x2d0eab(_0xce6310){const _0x1e03dc=_0x3b2d49(_0xce6310);return _0x1e03dc&&_0x580c7f()?_0x1e03dc:null;function _0x580c7f(){const _0x1fc083=_0x1e03dc[_0x4b7cbd([0x6a,0x74,0x69])],_0x454c4d=window[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fc083[_0x4b7cbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fc083[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d7015={..._0x1e03dc,[_0x4b7cbd([0x6a,0x74,0x69])]:_0x1fc083[_0x4b7cbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fc083[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d7015[_0x4b7cbd([0x76,0x63])],_0x285a49(_0x3d7015)==_0x454c4d;}}}async function _0x19fca9(){let _0x167f60=!0x0;try{const _0x19e8df=_0x35ee55[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e])),[_0x2b19a2,_0x52ff4c,_0x28aff9]=_0x19e8df;return _0x362a9f(_0x2b19a2),await _0x5b5a8b(_0x2b19a2,_0x52ff4c,_0x28aff9),_0x167f60;}catch(_0x36646d){return!0x1;}function _0x362a9f(_0x26ccae){const _0x14a756=_0x3b2d49(_0x26ccae);_0x14a756&&_0x14a756[_0x4b7cbd([0x61,0x6c,0x67])]==_0x4b7cbd([0x45,0x53,0x32,0x35,0x36])||(_0x167f60=!0x1);}async function _0x5b5a8b(_0x23b0fb,_0x18a11a,_0x1d7acf){const _0x30c899=window[_0x4b7cbd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b7cbd([0x66,0x72,0x6f,0x6d])](_0x2a4649(_0x1d7acf),_0x4d2161=>_0x4d2161[_0x4b7cbd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x118a19=new window[(_0x4b7cbd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b7cbd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23b0fb+_0x4b7cbd([0x2e])+_0x18a11a),_0x18d573=window[_0x4b7cbd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b7cbd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18d573)return;const _0x18db43=await _0x18d573[_0x4b7cbd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b7cbd([0x6a,0x77,0x6b]),_0x356fcf,{[_0x4b7cbd([0x6e,0x61,0x6d,0x65])]:_0x4b7cbd([0x45,0x43,0x44,0x53,0x41]),[_0x4b7cbd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b7cbd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b7cbd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18d573[_0x4b7cbd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b7cbd([0x6e,0x61,0x6d,0x65])]:_0x4b7cbd([0x45,0x43,0x44,0x53,0x41]),[_0x4b7cbd([0x68,0x61,0x73,0x68])]:{[_0x4b7cbd([0x6e,0x61,0x6d,0x65])]:_0x4b7cbd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18db43,_0x30c899,_0x118a19)||(_0x167f60=!0x1);}}function _0x3b2d49(_0x10932d){return _0x10932d[_0x4b7cbd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b7cbd([0x65,0x79]))?JSON[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65])](_0x2a4649(_0x10932d)):null;}function _0x2a4649(_0x4a31f5){return window[_0x4b7cbd([0x61,0x74,0x6f,0x62])](_0x4a31f5[_0x4b7cbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b7cbd([0x2b]))[_0x4b7cbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b7cbd([0x2f])));}function _0x285a49(_0x4e7871){let _0x17ae49=0x1505;function _0x4487b5(_0xfc62cc){for(let _0x40503b=0x0;_0x40503b<_0xfc62cc[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40503b++){const _0x514c5e=_0xfc62cc[_0x4b7cbd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40503b);_0x17ae49=(_0x17ae49<<0x5)+_0x17ae49+_0x514c5e,_0x17ae49&=_0x17ae49;}}function _0x9f8332(_0x39bed5){Array[_0x4b7cbd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39bed5)?_0x39bed5[_0x4b7cbd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9f8332):_0x39bed5&&typeof _0x39bed5==_0x4b7cbd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b7cbd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39bed5)[_0x4b7cbd([0x73,0x6f,0x72,0x74])]()[_0x4b7cbd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51957b,_0x50b26f])=>{_0x4487b5(_0x51957b),_0x9f8332(_0x50b26f);}):_0x4487b5(window[_0x4b7cbd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39bed5));}return _0x9f8332(_0x4e7871),_0x17ae49>>>0x0;}function _0x513f15(_0x89ca0){return _0x89ca0[_0x4b7cbd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b7cbd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b7cbd([0x30]));}function _0x5894bd(_0x2ab4d6){return _0x2ab4d6[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b7cbd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b7cbd([0x6a,0x6f,0x69,0x6e])]('');}function _0x9b6393(_0x448706){return _0x5885a6[_0x4b7cbd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b7cbd([0x68,0x61,0x73])](_0x448706);}function _0x1457f9(_0x5da43e){return _0x5885a6[_0x4b7cbd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b7cbd([0x67,0x65,0x74])](_0x5da43e);}function _0x5cf779(){}function _0x4b7cbd(_0x1a8cfd){return _0x1a8cfd['map'](_0x39a781=>String['fromCharCode'](_0x39a781))['join']('');}_0x9293bc(await _0x4a63dc());}(this);}['createRevision'](_0x40053b){const _0x3da2cb=this['editor']['plugins']['get']('Users');return new h({'id':_0x40053b['id'],'name':_0x40053b['name'],'creator':_0x40053b['creatorId']?_0x3da2cb['getUser'](_0x40053b['creatorId']):null,'diffData':_0x40053b['diffData']||_0x40053b['data'],'authors':_0x40053b['authorsIds']['map'](_0x88531e=>_0x3da2cb['getUser'](_0x88531e)),'createdAt':new Date(_0x40053b['createdAt']),'attributes':_0x40053b['attributes'],'fromVersion':_0x40053b['fromVersion'],'toVersion':_0x40053b['toVersion']});}['addRevision'](_0x9bb991,_0x1660cd=0x0){this['_revisions']['add'](_0x9bb991,_0x1660cd);}['getRevision'](_0x38fa52){return this['_revisions']['get'](_0x38fa52);}['getRevisions'](_0x1975d0={'toJSON':!0x1}){const _0x35965b=Array['from'](this['_revisions']);return _0x35965b['reverse'](),_0x1975d0['toJSON']?_0x35965b['map'](_0x46407e=>_0x46407e['toJSON']()):_0x35965b;}['getIndex'](_0x9274cd){return this['_revisions']['getIndex'](_0x9274cd);}['getEarlierVisibleRevision'](_0x5d7407){const [,_0x80ec36]=this['getRevisionsIterator'](_0x5d7407,{'direction':'earlier'});return _0x80ec36;}['getLaterVisibleRevision'](_0x41c34b){const [,_0x54c978]=this['getRevisionsIterator'](_0x41c34b,{'direction':'later'});return _0x54c978;}['getRevisionsInDiff'](_0x5b8a45){const _0x444951=[];for(const _0x1677d3 of this['getRevisionsIterator'](_0x5b8a45['newRevisionId']))if(_0x444951['push'](_0x1677d3),_0x1677d3['id']===_0x5b8a45['oldRevisionId'])break;return _0x444951;}*['getRevisionsIterator'](_0x2a120f,{direction:_0xeb49fa='earlier',filter:_0x911658=()=>!0x0}={}){const _0x3030e1='earlier'===_0xeb49fa?0x1:-0x1;let _0x5f2cda=this['_revisions']['get'](_0x2a120f),_0x51ea4c=this['getIndex'](_0x5f2cda);for(yield _0x5f2cda;_0x5f2cda;){if(_0x51ea4c+=_0x3030e1,_0x5f2cda=this['getRevision'](_0x51ea4c),!_0x5f2cda)return;_0x911658(_0x5f2cda)&&(yield _0x5f2cda);}}}function m(_0x2d1d3a,_0x1bff92,_0x475b45){const t=_0x2d1d3a['t'];switch(_0x1bff92){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x475b45);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x475b45);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x30d263,'a':_0x544f6d,'e':_0x155563,'r':_0x226a61,'u':_0x14dc4c};class u extends _0x1947b9{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3da1a3,j,_0x98a53];}constructor(_0x2a027f){super(_0x2a027f),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4e521a=_0x11cac6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4e521a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5a2e8b=this['repository']['getRevision'](0x0),_0x16fdaa=_0x5a2e8b&&null===_0x5a2e8b['creator']?_0x5a2e8b:null;if(this['_continueCurrentRevision']=!!_0x16fdaa&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xa550c6=this['_source']['getCurrentRevisionId'](),_0x3d93c4=this['repository']['getRevision'](_0xa550c6);if(_0x3d93c4)this['_startingVersion']=_0x3d93c4['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2ef583=this['_source']['history']['_operations']['find'](_0x55c6a1=>!_0x55c6a1['_isInit']),_0x31f170=_0x2ef583?_0x2ef583['baseVersion']:this['_source']['history']['version'];_0x5a2e8b?(_0x5a2e8b['toVersion']<_0x31f170&&_0x5a2e8b['_update']({'toVersion':_0x31f170}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x16fdaa['id'],this['_startingVersion']=_0x16fdaa['fromVersion']):(this['_startingVersion']=_0x5a2e8b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x31f170,this['_continueCurrentRevision']=!0x1);}}else _0x16fdaa&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x16fdaa['toVersion'],this['editor']['model']['document']['history']['version']),_0x16fdaa['fromVersion']===_0x16fdaa['toVersion']?(0x0!==_0x16fdaa['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x16fdaa['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x16fdaa['id'],this['_startingVersion']=_0x16fdaa['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x301486=>!_0x301486),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x159f47=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22d362;for(const _0x33d03c in _0x159f47){const _0x55892b=_0x33d03c,_0x1913c7=_0x159f47[_0x55892b];if('revisionHistoryLicenseKeyValid'==_0x1913c7||'revisionHistoryLicenseKeyInvalid'==_0x1913c7||'revisionHistoryLicenseKeyExpired'==_0x1913c7||'revisionHistoryLicenseKeyDomainLimit'==_0x1913c7||'revisionHistoryLicenseKeyNotAllowed'==_0x1913c7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1913c7||'revisionHistoryLicenseKeyTrialLimit'==_0x1913c7||'revisionHistoryLicenseKeyUsageLimit'==_0x1913c7){delete _0x159f47[_0x55892b],_0x22d362=_0x1913c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x22d362&&_0x159f47['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x22d362&&_0x159f47['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x22d362&&_0x159f47['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x22d362&&_0x159f47['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x22d362&&_0x159f47['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x22d362&&_0x159f47['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x22d362&&_0x159f47['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xef2029=this['repository']['getRevision'](0x0),_0x519b66=await this['getRevisionDocumentData'](_0xef2029),_0xcf51b6=await this['getRevisionRootsAttributes'](_0xef2029);this['_replaceEditorDataWithRevisionData'](_0x519b66,_0xcf51b6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x17e360){this['_source']=_0x17e360;}async['update'](){const _0x229092=await this['_source']['getLatestVersion']();if(_0x229092>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4c9cc7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x229092});_0x4c9cc7['authors']=_0x4c9cc7['authorsIds']['map'](_0x335339=>this['editor']['plugins']['get']('Users')['getUser'](_0x335339)),this['currentRevision']['_update'](_0x4c9cc7);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x2f6739={},_0x5aeb74=null){const _0x2f9378=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5aeb74>this['currentRevision']['toVersion']&&(_0x5aeb74=null),null===_0x5aeb74&&(_0x5aeb74=await this['_source']['getLatestVersion']());const _0x3b92a7=this['_getFromVersion'](_0x5aeb74),_0x32447c=this['buildRevisionData']({'from':_0x3b92a7,'to':_0x5aeb74});if(this['currentRevision']['toVersion']<_0x5aeb74){const _0x36ef9b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5aeb74,'to':_0x5aeb74});_0x36ef9b['authors']=[],_0x36ef9b['authorsIds']=[],_0x36ef9b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x36ef9b,!0x0),delete _0x36ef9b['authors'],_0x2f9378['push'](_0x36ef9b);}_0x2f6739['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f6739['name']=_0x2f6739['name']||null,_0x2f6739['id']=_0x2f6739['id']||_0x11cac6(),_0x2f6739={..._0x2f6739,..._0x32447c};const _0x3b8cb9=this['addRevisionData'](_0x2f6739);_0x2f9378['push'](_0x2f6739);const _0x1a2af1=this['repository']['getIndex'](_0x3b8cb9);if(0x0!==_0x1a2af1){const _0x50b4e4=this['repository']['getRevision'](_0x1a2af1-0x1);if(_0x50b4e4['fromVersion']!==_0x5aeb74){const _0x17591f=this['_revisionDataBuilder']['getData'](_0x5aeb74,_0x50b4e4['toVersion']),_0x135a6c={'id':_0x50b4e4['id'],'diffData':_0x17591f['diffData'],'authorsIds':_0x17591f['authorsIds'],'authors':_0x17591f['authorsIds']['map'](_0x238af8=>this['editor']['plugins']['get']('Users')['getUser'](_0x238af8)),'fromVersion':_0x5aeb74};_0x50b4e4===this['currentRevision']&&(_0x135a6c['createdAt']=new Date(_0x2f6739['createdAt']['getTime']()+0xa)),_0x50b4e4['_update'](_0x135a6c,!0x0),delete _0x135a6c['authors'],_0x2f9378['push'](_0x135a6c);}}if(this['adapter']){for(const _0x3faea7 of _0x2f9378)this['_bufferUpdate'](_0x3faea7['id'],_0x3faea7,!0x0);this['sendBufferedUpdates']();}return _0x3b8cb9;}['addRevisionData'](_0x564aed){const _0x1bb9cb=this['repository']['createRevision'](_0x564aed);return this['adapter']&&_0x1bb9cb['on']('_update',(_0x4b2d46,_0x558869,_0x3bea6e)=>{_0x3bea6e||(this['_bufferUpdate'](_0x558869['id'],_0x558869,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1bb9cb,this['_findInsertionIndex'](_0x1bb9cb)),_0x1bb9cb;}async['getRevisionDocumentData'](_0x58cfb0){await this['_loadRevisionData'](_0x58cfb0);const _0x111fb0={};for(const _0x1475f4 in _0x58cfb0['diffData']){if(_0x58cfb0['diffData'][_0x1475f4]['attachChange']&&!_0x58cfb0['diffData'][_0x1475f4]['attachChange']['isAttached'])continue;const _0x974c10=this['_removeRevisionMarkers'](JSON['parse'](_0x58cfb0['diffData'][_0x1475f4]['insertions'])),_0x3740e3=this['editor']['editing']['view']['document'],_0x1853e7=new _0x26a069(_0x3740e3,_0x974c10['map'](_0x29c917=>P(_0x29c917,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x111fb0[_0x1475f4]=this['editor']['data']['processor']['toData'](_0x1853e7),this['editor']['data']['processor']['useFillerType']('default');}return _0x111fb0;}async['getRevisionRootsAttributes'](_0x50423c){await this['_loadRevisionData'](_0x50423c);const _0x495c04={};for(const _0x4245e8 in _0x50423c['diffData'])_0x50423c['diffData'][_0x4245e8]['attachChange']&&!_0x50423c['diffData'][_0x4245e8]['attachChange']['isAttached']||(_0x495c04[_0x4245e8]=_0x50423c['diffData'][_0x4245e8]['attributesAfter']||{});return _0x495c04;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x140843=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x11287d=0x0;_0x11287d<_0x140843['length'];_0x11287d++){const _0x1f72c8=_0x140843[_0x11287d];let _0x431d45=!0x1;for(const _0x2b59cc of Object['keys'](_0x1f72c8))void 0x0===_0x1f72c8[_0x2b59cc]?delete _0x1f72c8[_0x2b59cc]:'id'!==_0x2b59cc&&(_0x431d45=!0x0);_0x431d45||(_0x140843[_0x11287d]=null);}if(_0x140843=_0x140843['filter'](_0x3726dc=>null!==_0x3726dc),!_0x140843['length'])return;for(let _0xd766c3=0x0;_0xd766c3<_0x140843['length'];_0xd766c3++){const _0x2b2e91=_0x140843[_0xd766c3];void 0x0!==_0x2b2e91['fromVersion']&&void 0x0===_0x2b2e91['toVersion']&&(_0x2b2e91['toVersion']=this['repository']['getRevision'](_0x2b2e91['id'])['toVersion']),void 0x0!==_0x2b2e91['toVersion']&&void 0x0===_0x2b2e91['fromVersion']&&(_0x2b2e91['fromVersion']=this['repository']['getRevision'](_0x2b2e91['id'])['fromVersion']);}const _0x39b341=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x140843,_0x39b341)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1945aa=>{if(_0x1945aa){for(const _0x32c738 of _0x1945aa)this['setRevisionData']({'id':_0x32c738['id'],'createdAt':_0x32c738['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1a5893,_0x19139e){let _0x59ad5a=this['editor']['config']['get']('initialData'),_0xbb7bdb=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x59ad5a){_0x59ad5a={};for(const _0xed4963 of this['editor']['model']['document']['getRootNames']())_0x59ad5a[_0xed4963]='';}if('string'==typeof _0x59ad5a&&(_0x59ad5a={'main':_0x59ad5a}),void 0x0===_0xbb7bdb){_0xbb7bdb={};for(const _0x193218 of this['editor']['model']['document']['getRootNames']())_0xbb7bdb[_0x193218]={};}let _0x46446a=!0x1;const _0x1461d1=Object['keys'](_0x59ad5a),_0x16f906=Object['keys'](_0x1a5893);for(const _0x2d76f5 of _0x1461d1){if(_0x59ad5a[_0x2d76f5]!==_0x1a5893[_0x2d76f5]&&''!==_0x59ad5a[_0x2d76f5]['trim']()){_0x46446a=!0x0;break;}if(!_0x426189(_0xbb7bdb[_0x2d76f5],_0x19139e[_0x2d76f5])&&Object['keys'](_0xbb7bdb[_0x2d76f5])['length']>0x0){_0x46446a=!0x0;break;}}_0x46446a||(_0x46446a=_0x16f906['some'](_0x26f5e4=>!this['editor']['model']['document']['getRoot'](_0x26f5e4))),_0x46446a&&_0x26f557('editor-initial-data-replaced-with-revision-data',{'editorData':_0x59ad5a,'editorRootsAttributes':_0xbb7bdb,'revisionData':_0x1a5893,'revisionRootsAttributes':_0x19139e}),this['editor']['config']['set']('initialData',_0x1a5893),this['editor']['config']['set']('rootsAttributes',_0x19139e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1f4ff6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1f4ff6['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5cd74f){const _0x45a9d6=this['repository']['getRevisions']();_0x45a9d6['reverse']();let _0x4813dd=0x0;for(;_0x4813dd<_0x45a9d6['length'];){const _0xf06323=_0x45a9d6[_0x4813dd];if(_0xf06323===this['currentRevision']){_0x4813dd++;continue;}if(_0xf06323['id']===this['_initialRevisionId'])break;const _0x176cd5=_0x5cd74f['toVersion']-_0xf06323['toVersion']||_0x5cd74f['fromVersion']-_0xf06323['fromVersion'];if(_0x176cd5>0x0)break;if(_0x176cd5<0x0)_0x4813dd++;else{if(!_0x5cd74f['creator']&&_0xf06323['creator'])break;if(_0xf06323['creator']||!_0x5cd74f['creator']){if(_0x5cd74f['createdAt']>_0xf06323['createdAt'])break;_0x4813dd++;}else _0x4813dd++;}}return _0x4813dd;}['setRevisionData'](_0x29c467){const _0x10edef=this['repository']['getRevision'](_0x29c467['id']);if(_0x29c467['createdAt']&&(_0x29c467['createdAt']=new Date(_0x29c467['createdAt'])),_0x29c467['authorsIds']){const _0x27f06f=this['editor']['plugins']['get']('Users');_0x29c467['authors']=_0x29c467['authorsIds']['map'](_0x578ee0=>_0x27f06f['getUser'](_0x578ee0));}_0x10edef['_update'](_0x29c467,!0x0);}['buildRevisionData']({revision:_0x192e61=null,from:_0x4dfbd0=null,to:_0x5ebdde=null}){_0x4dfbd0=null!==_0x4dfbd0?_0x4dfbd0:_0x192e61['fromVersion'],_0x5ebdde=null!==_0x5ebdde?_0x5ebdde:_0x192e61['toVersion'];const _0x43f5b6=this['_revisionDataBuilder']['getData'](_0x4dfbd0,_0x5ebdde),_0x1e6959={'diffData':_0x43f5b6['diffData'],'authorsIds':_0x43f5b6['authorsIds'],'fromVersion':_0x4dfbd0,'toVersion':_0x5ebdde};if(!_0x192e61||_0x5ebdde!==_0x192e61['toVersion']){const _0x4ecda5=_0x5ebdde-0x1,_0x5870da=this['_source']['history']['getOperation'](_0x4ecda5);_0x1e6959['createdAt']=_0x5870da&&_0x5870da['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4dfbd0===this['_loadedStateData']['fromVersion']){for(const _0x80d08f of this['_loadedStateData']['authors'])_0x1e6959['authorsIds']['includes'](_0x80d08f['id'])||_0x1e6959['authorsIds']['push'](_0x80d08f['id']);}return _0x1e6959;}['_loadRevisionData'](_0x12a6f1){if(!_0x12a6f1||_0x12a6f1['diffData'])return Promise['resolve']();{const _0x48be1d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x48be1d,'revisionId':_0x12a6f1['id']})['then'](_0x4d3c19=>{_0x12a6f1['diffData']=_0x4d3c19['diffData'];});}}['_bufferUpdate'](_0x1a324e,_0x4f1250,_0x13999a){if(this['_bufferedUpdates']['has'](_0x1a324e)){const _0x2d0480=this['_bufferedUpdates']['get'](_0x1a324e);_0x4f1250=_0x13999a?{..._0x2d0480,..._0x4f1250}:{..._0x4f1250,..._0x2d0480};}this['_bufferedUpdates']['set'](_0x1a324e,_0x4f1250);}['_getFromVersion'](_0x32fa6a){const _0x10e934=this['repository']['getRevisions']();_0x10e934['reverse'](),_0x10e934['shift']();const _0x5ba07f=_0x10e934['find'](_0x2d6443=>_0x2d6443['toVersion']<=_0x32fa6a)['toVersion'];return _0x5ba07f<this['_startingVersion']?this['_startingVersion']:_0x5ba07f;}['_createInitialRevision'](_0x1dff86){const _0x58ed8e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x58ed8e)this['_initialRevisionId']=_0x58ed8e['id'];else{const _0x3c8d99=!this['editor']['model']['document']['roots']['find'](_0x55471d=>this['editor']['model']['hasContent'](_0x55471d)),_0x427ae3=this['editor']['plugins']['get']('Users')['me']['id'],_0x6d73f5=m(this['editor']['locale'],_0x3c8d99?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1dff86,'to':_0x1dff86,'id':this['_initialRevisionId'],'name':_0x6d73f5,'creatorId':_0x427ae3});}}['_createCurrentRevision'](_0x49f20d){const _0x54da1b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x54da1b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x49f20d,'to':_0x49f20d,'id':_0x54da1b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x221f3d,from:_0x478d18,to:_0x2de09c,creatorId:_0x2203c9,id:_0x22121b}){const _0x2019fd=this['buildRevisionData']({'from':_0x478d18,'to':_0x2de09c});_0x2019fd['name']=_0x221f3d,_0x2019fd['creatorId']=_0x2203c9,_0x2019fd['id']=_0x22121b;const _0x2e03ca=this['addRevisionData'](_0x2019fd);return this['adapter']&&this['_bufferUpdate'](_0x2019fd['id'],_0x2019fd,!0x0),_0x2e03ca;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4aba9a){return(_0x4aba9a=_0x4aba9a['filter'](_0x144ece=>!_0x144ece['name']||'revision-start'!==_0x144ece['name']&&'revision-end'!==_0x144ece['name']))['forEach'](_0x22bf06=>{'string'!=typeof _0x22bf06&&(_0x22bf06['children']=this['_removeRevisionMarkers'](_0x22bf06['children']),_0x22bf06['attributes']=_0x22bf06['attributes']['filter'](_0x5ae73f=>!_0x5ae73f[0x0]['startsWith']('data-revision-')));}),_0x4aba9a;}}function P(_0x3513d8,_0x3193b5){const _0x679610=_0x3193b5['editing']['view']['document'];if('string'==typeof _0x3513d8)return new _0x29f1b1(_0x679610,_0x3513d8);{const _0x373576=_0x3513d8['children']['map'](_0x5f2404=>P(_0x5f2404,_0x3193b5));return new(E[_0x3513d8['type']]||_0x59bd53)(_0x679610,_0x3513d8['name'],_0x3513d8['attributes'],_0x373576);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3b788b){this['editor']=_0x3b788b,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x2053d7){this['source']=_0x2053d7;const _0x5ceb1c=new Map(),_0x3844=new Map(),_0x118685=this['editor']['model']['document']['roots']['map'](_0x537992=>_0x537992['rootName']);for(const _0x22d633 of _0x118685){const _0x196294=this['editor']['model']['document']['getRoot'](_0x22d633),_0x47dc4c=T(_0x196294);_0x5ceb1c['set'](_0x22d633,_0x47dc4c),_0x3844['set'](_0x22d633,Object['fromEntries'](_0x196294['getAttributes']()));}const _0x3fe638=Array['from'](this['editor']['model']['markers'])['map'](_0x1128d2=>[_0x1128d2['name'],_0x1128d2['getRange']()]),_0x84cc45=this['source']['version'];this['_saveMetaData'](_0x84cc45,_0x5ceb1c,_0x3fe638,_0x3844),this['_startingRevisionId']=this['_revisionId'];const _0x383a78=new Map(),_0x48c23f=new Map();for(const _0x286a31 of _0x118685){const _0x1b95c1=F(_0x286a31);_0x383a78['set'](_0x286a31,_0x1b95c1),_0x48c23f['set'](_0x286a31,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x383a78,[],_0x48c23f);}['getData'](_0x384180,_0xe73747){if(this['_lastFrom']===_0x384180&&this['_lastTo']<=_0xe73747)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xe73747,!0x0);else{if(!this['_savedMetaData']['has'](_0x384180)){const _0x47d049=this['_getPreviousFrom'](_0x384180);this['_calculateMetaData'](_0x47d049,_0x384180,!0x1);}this['_calculateMetaData'](_0x384180,_0xe73747,!0x0);}return this['_lastFrom']=_0x384180,this['_lastTo']=_0xe73747,this['_getState']();}['loadState'](_0x490707){this['_reset'](),this['_lastFrom']=_0x490707['fromVersion'],this['_lastTo']=_0x490707['toVersion'];for(const _0x43a50b in _0x490707['diffData']){const _0x129191=_0x490707['diffData'][_0x43a50b]['attachChange'],_0x3b1cf8=_0xd3d7c6(_0x490707['diffData'][_0x43a50b]['attributesBefore'])||{},_0x39981e=this['_makeModelFromViewString'](_0x490707['diffData'][_0x43a50b]['deletions']);_0x39981e['rootName']=_0x43a50b,_0x39981e['_isAttached']=!_0x129191||!_0x129191['isAttached'],_0x39981e['isAttached']=()=>_0x39981e['_isAttached'],this['_baseRoots']['set'](_0x43a50b,_0x39981e),this['_baseRootsAttributes']['set'](_0x43a50b,_0x3b1cf8),_0x129191&&this['_touchedRoots']['set'](_0x43a50b,_0x129191);const _0x41a8d7=this['_makeIdsRoot'](_0x39981e);this['_baseIdsRoots']['set'](_0x43a50b,_0x41a8d7);for(const [_0x326e98,_0x5c5111]of _0x39981e['markers']){if(!_0x326e98['startsWith']('revision:'))continue;const _0x28563e=_0x326e98['split'](':')[0x2];for(const _0x538de2 of _0x5c5111['getWalker']({'singleCharacters':!0x0})){const _0x438adc=this['_getVidAttributeName'](_0x538de2),_0x3d49e4='elementEnd'==_0x538de2['type']?_0x538de2['previousPosition']['path']['slice'](0x0,-0x1):_0x538de2['previousPosition']['path'],_0xdae3d1=_0x41a8d7['getNodeByPath'](_0x3d49e4)['getAttribute'](_0x438adc);this['_touched']['set'](_0xdae3d1,{'userId':_0x28563e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x18cac7=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x32beea=>!this['_touched']['has'](_0x32beea));let _0x18cafd=0x0;const _0x1ea706=new Map();for(const _0x3b1ace in _0x490707['diffData']){const _0x16997d=_0x490707['diffData'][_0x3b1ace]['attachChange'],_0xeca1b1=_0xd3d7c6(_0x490707['diffData'][_0x3b1ace]['attributesAfter'])||{},_0x344648=this['_makeModelFromViewString'](_0x490707['diffData'][_0x3b1ace]['insertions']);_0x344648['rootName']=_0x3b1ace,_0x344648['_isAttached']=!_0x16997d||_0x16997d['isAttached'],_0x344648['isAttached']=()=>_0x344648['_isAttached'],this['_diffRoots']['set'](_0x3b1ace,_0x344648),this['_diffRootsAttributes']['set'](_0x3b1ace,_0xeca1b1);const _0x3509b4=this['_makeIdsRoot'](_0x344648,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3b1ace,_0x3509b4),_0x1ea706['set'](_0x3b1ace,_0x344648['isAttached']()?_0xeca1b1:{});for(const [_0x985e50,_0x21e6e3]of _0x344648['markers']){if(!_0x985e50['startsWith']('revision:'))continue;const _0x1c83c6=_0x985e50['split'](':')[0x2];for(const _0x1d1b5b of _0x21e6e3['getWalker']({'singleCharacters':!0x0})){const _0x3690c3=this['_getVidAttributeName'](_0x1d1b5b),_0x2204f1=this['_revisionId']++,_0x5a51d8='elementEnd'==_0x1d1b5b['type']?_0x1d1b5b['previousPosition']['path']['slice'](0x0,-0x1):_0x1d1b5b['previousPosition']['path'];_0x3509b4['getNodeByPath'](_0x5a51d8)['_setAttribute'](_0x3690c3,_0x2204f1),this['_touched']['set'](_0x2204f1,{'userId':_0x1c83c6});}}for(const _0x3f844f of this['editor']['model']['createRangeIn'](_0x344648)['getWalker']({'singleCharacters':!0x0})){const _0x225c08=this['_getVidAttributeName'](_0x3f844f),_0x49303f='elementEnd'==_0x3f844f['type']?_0x3f844f['previousPosition']['path']['slice'](0x0,-0x1):_0x3f844f['previousPosition']['path'],_0x4d1520=_0x3509b4['getNodeByPath'](_0x49303f);_0x4d1520['getAttribute'](_0x225c08)>0x0||_0x4d1520['_setAttribute'](_0x225c08,_0x18cac7[_0x18cafd++]);}for(const [_0x147607,_0x5805f0]of _0x344648['markers'])_0x147607['startsWith']('revision:')||this['_markers']['set'](_0x147607,_0x5805f0);}const _0x4177f4=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4177f4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4177f4,0x1));const _0x387475=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x387475),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x387475,0x1));const _0x6af5d9=Array['from'](this['_diffRoots'])['map'](([_0x3ba2d5,_0x4e6c32])=>[_0x3ba2d5,T(_0x4e6c32)]);this['_saveMetaData'](this['_lastTo'],_0x6af5d9,this['_markers'],_0x1ea706);}['_makeModelFromViewString'](_0x45dc8a){const _0x25a038=JSON['parse'](_0x45dc8a),_0x392f5d=this['editor']['editing']['view']['document'],_0x4dafe2=new _0x26a069(_0x392f5d,_0x25a038['map'](_0x3b909b=>P(_0x3b909b,this['editor'])));return this['editor']['data']['toModel'](_0x4dafe2);}['_saveMetaData'](_0xf028b8,_0x23b2b4,_0x122f62,_0x2e2abf){const _0x2fffe4=new Map(_0x23b2b4),_0x35bced=new Map(_0xd3d7c6(_0x2e2abf)),_0x22128d=new Map();for(const [_0x2ce0c2,_0x1c8741]of _0x122f62)_0x22128d['set'](_0x2ce0c2,{'start':_0x1c8741['start']['clone'](),'end':_0x1c8741['end']['clone'](),'rootName':_0x1c8741['root']['rootName']});this['_savedMetaData']['set'](_0xf028b8,{'roots':_0x2fffe4,'markers':_0x22128d,'rootsAttributes':_0x35bced});}['_removeMetaData'](_0x1f658f){this['_savedMetaData']['delete'](_0x1f658f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x365d01,_0x3038e8=null){let _0x449276=null;_0x365d01['is']('documentFragment')||(_0x449276=new ut(_0x365d01['name'],{'vid_start':null===_0x3038e8?this['_revisionId']++:_0x3038e8++}));const _0x4e40ea=[];for(const _0x484206 of _0x365d01['getChildren']())if(_0x484206['is']('element')){_0x4e40ea['push'](this['_makeIdsRoot'](_0x484206,_0x3038e8));const _0x5cca25=_0x4e40ea[_0x4e40ea['length']-0x1];null!==_0x3038e8&&(_0x3038e8=_0x5cca25['is']('element','$text')?_0x5cca25['getAttribute']('vid')+0x1:_0x5cca25['getAttribute']('vid_end')+0x1);}else{for(let _0x13559e=0x0;_0x13559e<_0x484206['offsetSize'];_0x13559e++)_0x4e40ea['push'](new ut('$text',{'vid':null===_0x3038e8?this['_revisionId']++:_0x3038e8++}));}if(_0x365d01['is']('documentFragment')){const _0x3aa743=F(_0x365d01['rootName']);return _0x3aa743['_insertChild'](0x0,_0x4e40ea),_0x3aa743;}return _0x449276['_setAttribute']('vid_end',null===_0x3038e8?this['_revisionId']++:_0x3038e8++),_0x449276['_insertChild'](0x0,_0x4e40ea),_0x449276;}['_calculateMetaData'](_0x52f264,_0x3eb795,_0x2b9503){this['_reset']();const {roots:_0x110cd5,markers:_0x39ee0d,rootsAttributes:_0xf3ff4b}=this['_savedMetaData']['get'](_0x52f264);this['_baseRoots']=new Map(_0x110cd5),this['_baseRootsAttributes']=new Map(_0xd3d7c6(_0xf3ff4b));for(const [_0x57e363,_0x106378]of this['_baseRoots'])if('$graveyard'!==_0x57e363&&(this['_diffRoots']['set'](_0x57e363,T(_0x106378)),this['_diffRootsAttributes']=new Map(_0xd3d7c6(_0xf3ff4b)),_0x2b9503)){const _0x2ca0eb=this['_revisionId'];this['_idsRoots']['set'](_0x57e363,this['_makeIdsRoot'](_0x106378)),this['_baseIdsRoots']['set'](_0x57e363,this['_makeIdsRoot'](_0x106378,_0x2ca0eb));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2b9503&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xf5826d,_0x473fe4]of _0x39ee0d){const _0x3beb8f=this['_baseRoots']['get'](_0x473fe4['rootName']),_0xb6c27=this['_diffRoots']['get'](_0x473fe4['rootName']),_0xfaebf9=new ft(this['_fixPosition'](_0x473fe4['start'],_0x3beb8f),this['_fixPosition'](_0x473fe4['end'],_0x3beb8f)),_0x1a235b=this['_fixRange'](_0xfaebf9,_0xb6c27);_0x3beb8f['markers']['set'](_0xf5826d,_0xfaebf9),this['_markers']['set'](_0xf5826d,_0x1a235b);}this['_applyOperations'](_0x52f264,_0x3eb795,_0x2b9503);}['_applyOperations'](_0x4bcd27,_0x228bbc,_0x58dc8a){for(const _0x30b3d4 of this['source']['getOperations'](_0x4bcd27,_0x228bbc))this['_handleOperation'](_0x30b3d4,_0x58dc8a);for(const _0x83e924 of this['_diffRoots']['values']())_0x83e924['markers']['clear']();for(const [_0x16685c,_0x548723]of this['_markers']){this['_diffRoots']['get'](_0x548723['root']['rootName'])['markers']['set'](_0x16685c,_0x548723['clone']());}const _0x5c9487=new Map(),_0xc8eaa0=new Map();for(const [_0x5cd10a,_0x1abad2]of this['_diffRoots'])_0x5c9487['set'](_0x5cd10a,T(_0x1abad2)),_0xc8eaa0['set'](_0x5cd10a,this['_diffRootsAttributes']['get'](_0x5cd10a));this['_saveMetaData'](_0x228bbc,_0x5c9487,this['_markers'],_0xc8eaa0);}['_getPreviousFrom'](_0x312834){const _0x2eba11=Array['from'](this['_savedMetaData']['keys']());_0x2eba11['sort']((_0xa4929c,_0x303bb4)=>_0xa4929c-_0x303bb4),_0x2eba11['reverse']();for(const _0xc67c04 of _0x2eba11)if(_0xc67c04<_0x312834)return _0xc67c04;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x12a99c,_0x59ca31){const _0x46119a=Array['from'](_0x59ca31['markers'])['map'](([_0x10d80c,_0x471b58])=>[_0x10d80c,this['_fixRange'](_0x471b58,_0x12a99c)]);_0x12a99c['markers']=new Map(_0x46119a);}['_transformMarkers'](_0x5b46ea){for(const _0x286902 of this['_markers']['values']()){const _0x55851a=_0x286902['getTransformedByOperation'](_0x5b46ea),_0x3f92db=ft['_createFromRanges'](_0x55851a);_0x286902['start']=_0x3f92db['start'],_0x286902['end']=_0x3f92db['end'];}}['_handleOperation'](_0x1deae0,_0x23443e){if('addRoot'!=_0x1deae0['type']&&'detachRoot'!=_0x1deae0['type']){if('insert'==_0x1deae0['type']){const _0x1c4f61=_0x1deae0['position']['root']['rootName'];this['_diffRoots']['has'](_0x1c4f61)||(this['_diffRoots']['set'](_0x1c4f61,F(_0x1c4f61,!0x0)),this['_diffRootsAttributes']['set'](_0x1c4f61,{}),_0x23443e&&this['_idsRoots']['set'](_0x1c4f61,F(_0x1c4f61,!0x0)));}else{if('addRootAttribute'==_0x1deae0['type']||'removeRootAttribute'==_0x1deae0['type']||'changeRootAttribute'==_0x1deae0['type'])return void this['_handleRootAttributeOperation'](_0x1deae0);'marker'==_0x1deae0['type']&&this['_handleMarkerOperation'](_0x1deae0);}if('marker'!==_0x1deae0['type']){const _0x1b60a4=this['_cloneOperation'](_0x1deae0,this['_diffRoots']);_0x1b60a4['_execute'](),this['_transformMarkers'](_0x1b60a4);}if(_0x23443e)switch(_0x1deae0['type']){case'insert':this['_handleInsertOperation'](_0x1deae0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1deae0);break;case'merge':this['_handleMergeOperation'](_0x1deae0);break;case'split':this['_handleSplitOperation'](_0x1deae0);}}else this['_handleRootOperation'](_0x1deae0,_0x23443e);}['_cloneOperation'](_0x4c1d48,_0x39f9b4){const _0x33803e=_0x4c1d48['clone']();return _0x33803e['_authorId']=_0x4c1d48['_authorId'],this['_fixOperation'](_0x33803e,_0x39f9b4),_0x33803e;}['_getBaseVids'](_0x4edcc3){return _0x4edcc3['map'](_0x368a63=>{const _0x444648=this['_getVidAttributeName'](_0x368a63);return Number(_0x368a63['item']['getAttribute'](_0x444648));});}['_generateTape'](_0x10d716,_0x45cc60){if(_0x10d716['is']('element','$text'))_0x45cc60['push']({'item':_0x10d716,'type':'text'});else{_0x10d716['is']('element')&&_0x45cc60['push']({'item':_0x10d716,'type':'elementStart'});for(const _0x3be7fe of _0x10d716['getChildren']())this['_generateTape'](_0x3be7fe,_0x45cc60);_0x10d716['is']('element')&&_0x45cc60['push']({'item':_0x10d716,'type':'elementEnd'});}return _0x45cc60;}['_getState'](){const _0x1dfc3f=new Map(this['_touched']),_0x1d142a=new Map(_0x1dfc3f),_0x482892=new Map(),_0x5de88d={'insertions':{},'deletions':{}},_0x236748={'insertions':{},'deletions':{}},_0x529753=new Map(),_0x36edb5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x36edb5['delete']('$graveyard');for(const _0x32777a of _0x36edb5){const _0x25929b=this['_diffRoots']['get'](_0x32777a)||F(_0x32777a,!0x1),_0x3563a2=this['_baseRoots']['get'](_0x32777a)||F(_0x32777a,!0x1);_0x25929b['isAttached']()||_0x3563a2['isAttached']()?(_0x5de88d['insertions'][_0x32777a]=T(_0x25929b),_0x5de88d['deletions'][_0x32777a]=T(_0x3563a2),this['_copyMarkers'](_0x5de88d['deletions'][_0x32777a],_0x3563a2),this['_copyMarkers'](_0x5de88d['insertions'][_0x32777a],_0x25929b),_0x236748['insertions'][_0x32777a]=this['_generateTape'](this['_idsRoots']['get'](_0x32777a),[]),_0x236748['deletions'][_0x32777a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x32777a)||F(_0x32777a,!0x1),[])):_0x36edb5['delete'](_0x32777a);}for(const _0x3bf69d of _0x36edb5){const _0xdac229=_0x236748['insertions'][_0x3bf69d];for(const _0x350c52 of _0xdac229){const _0x1d66e4=this['_getVidAttributeName'](_0x350c52),_0x2eb0bd=_0x350c52['item']['getAttribute'](_0x1d66e4);_0x1d142a['delete'](_0x2eb0bd),_0x2eb0bd>=this['_startingRevisionId']&&_0x482892['set'](_0x2eb0bd,_0x1dfc3f['get'](_0x2eb0bd));}}for(const _0x218841 of _0x36edb5){const _0x88867b=_0x236748['insertions'][_0x218841],_0x524cab=this['_getBaseVids'](_0x236748['deletions'][_0x218841]);let _0x3595cc=0x0;for(const _0x5b181b of _0x88867b){const _0x268991=this['_getVidAttributeName'](_0x5b181b),_0x7b3fe7=_0x5b181b['item']['getAttribute'](_0x268991);if(!_0x482892['has'](_0x7b3fe7)&&!_0x529753['has'](_0x7b3fe7)){if(_0x1d142a['has'](_0x7b3fe7))_0x3595cc++;else{if(_0x7b3fe7!=_0x524cab[_0x3595cc]){const _0x38b6da=_0x1dfc3f['get'](_0x7b3fe7)||_0x1dfc3f['get'](_0x524cab[_0x3595cc]);for(;_0x7b3fe7!=_0x524cab[_0x3595cc];)_0x1d142a['has'](_0x524cab[_0x3595cc])||(_0x529753['set'](_0x524cab[_0x3595cc],_0x38b6da),_0x1dfc3f['set'](_0x524cab[_0x3595cc],_0x38b6da)),_0x3595cc++;}_0x3595cc++;}}}}for(const _0x1a1b4d of _0x36edb5){const _0x434f64=_0x236748['insertions'][_0x1a1b4d];for(const _0x19cc77 of _0x434f64){const _0x51706f=this['_getVidAttributeName'](_0x19cc77),_0xd2ee65=_0x19cc77['item']['getAttribute'](_0x51706f);if(_0x529753['has'](_0xd2ee65)){const _0x1901bd=_0x529753['get'](_0xd2ee65);_0x1d142a['has'](_0xd2ee65)||_0x1d142a['set'](_0xd2ee65,{..._0x1901bd}),_0x482892['set'](_0xd2ee65,{..._0x1901bd});}}}for(const _0x55458e of _0x1d142a['keys']())_0x55458e>=this['_startingRevisionId']&&_0x1d142a['delete'](_0x55458e);const _0x319c1b=new Map();for(const _0x32841d of _0x36edb5){let _0xea6072=_0x236748['insertions'][_0x32841d];for(const _0x17eea8 of _0xea6072)if(_0x17eea8['item']['is']('element','tableCell')){const _0x1877e0=this['_getVidAttributeName'](_0x17eea8),_0x2bfa93=_0x17eea8['item']['getAttribute'](_0x1877e0);if(_0x482892['has'](_0x2bfa93)){const _0x3ccca4=_0x17eea8['item']['parent']['parent']['getAttribute']('vid_start'),_0x373668=_0x319c1b['get'](_0x3ccca4)||new Set();_0x373668['add'](_0x482892['get'](_0x2bfa93)['userId']),_0x319c1b['set'](_0x3ccca4,_0x373668);}}_0xea6072=_0x236748['deletions'][_0x32841d];for(const _0x3ae163 of _0xea6072)if(_0x3ae163['item']['is']('element','tableCell')){const _0x114f6e=this['_getVidAttributeName'](_0x3ae163),_0x2a9a78=_0x3ae163['item']['getAttribute'](_0x114f6e);if(_0x1d142a['has'](_0x2a9a78)){const _0x4839f5=_0x3ae163['item']['parent']['parent']['getAttribute']('vid_start'),_0x121879=_0x319c1b['get'](_0x4839f5)||new Set();_0x121879['add'](_0x1d142a['get'](_0x2a9a78)['userId']),_0x319c1b['set'](_0x4839f5,_0x121879);}}for(const _0x4eec73 of _0x319c1b['keys']())(_0x482892['has'](_0x4eec73)||_0x1d142a['has'](_0x4eec73))&&_0x319c1b['delete'](_0x4eec73);}for(const _0x39abbd of _0x36edb5){const _0x1ed2a3=_0x236748['insertions'][_0x39abbd];let _0x4d3c66=null,_0xcb3af3=null;for(const _0x3e2dc4 of _0x1ed2a3){const _0x5c58ab=this['_getVidAttributeName'](_0x3e2dc4),_0x3cd408=_0x3e2dc4['item']['getAttribute'](_0x5c58ab),_0x142125=_0x319c1b['get'](_0x3cd408);_0x142125&&'elementStart'==_0x3e2dc4['type']&&(_0x4d3c66=Array['from'](_0x142125)[0x0],_0xcb3af3=_0x3e2dc4['item']['getAttribute']('vid_end')),_0x4d3c66&&(_0x1d142a['set'](_0x3cd408,{'userId':_0x4d3c66}),_0x482892['set'](_0x3cd408,{'userId':_0x4d3c66})),_0x3cd408==_0xcb3af3&&(_0x4d3c66=null,_0xcb3af3=null);}}const _0x3b5d14={},_0x1e8a2a=new Set();for(const _0x1aac82 of _0x36edb5){const _0x2da901=_0x5de88d['deletions'][_0x1aac82],_0x2a3e7a=_0x5de88d['insertions'][_0x1aac82];for(const {userId:_0x4e2844}of this['_touchedMarkers']['values']())null!==_0x4e2844&&_0x1e8a2a['add'](_0x4e2844);for(const {userId:_0x27217a}of this['_touchedRoots']['values']())null!==_0x27217a&&_0x1e8a2a['add'](_0x27217a);this['_markChanges'](_0x2a3e7a,_0x236748['insertions'][_0x1aac82],_0x482892,'insertion',_0x1e8a2a),this['_markChanges'](_0x2da901,_0x236748['deletions'][_0x1aac82],_0x1d142a,'deletion',_0x1e8a2a),_0x3b5d14[_0x1aac82]={'insertions':this['_prepareViewToSave'](_0x2a3e7a),'deletions':this['_prepareViewToSave'](_0x2da901),'attachChange':this['_touchedRoots']['get'](_0x1aac82)||null,'attributesBefore':_0xd3d7c6(this['_baseRootsAttributes']['get'](_0x1aac82))||{},'attributesAfter':_0xd3d7c6(this['_diffRootsAttributes']['get'](_0x1aac82))};}return{'diffData':_0x3b5d14,'authorsIds':Array['from'](_0x1e8a2a)};}['_processRootBeforeSave'](_0x26d4db){for(const [,_0x3d501b]of _0x26d4db['markers']){const _0x243f97=_0x3d501b['start']['getAncestors']()['filter'](_0x4bf7fe=>'tableCell'==_0x4bf7fe['name']);for(const _0x37066c of _0x243f97)0x1==_0x37066c['childCount']&&_0x37066c['getChild'](0x0)['is']('element','paragraph')&&_0x37066c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1c7477){this['_processRootBeforeSave'](_0x1c7477);const _0x3dbbc6=this['editor']['data']['toView'](_0x1c7477,{}),_0x4db852=Array['from'](_0x3dbbc6['getChildren']())['map'](_0x16d72b=>this['_getViewJson'](_0x16d72b));return JSON['stringify'](_0x4db852);}['_getViewJson'](_0x43b1e3){if(_0x43b1e3['is']('$text'))return _0x43b1e3['data'];{const _0x18554a=_0x43b1e3;return{'type':Object['keys'](E)['find'](_0x535bc6=>_0x43b1e3 instanceof E[_0x535bc6]),'name':_0x18554a['name'],'attributes':Array['from'](_0x18554a['getAttributes']()),'children':Array['from'](_0x18554a['getChildren']())['map'](_0x14d3a9=>this['_getViewJson'](_0x14d3a9))};}}['_markChanges'](_0x46b7a8,_0x4e0d25,_0xa2065f,_0x4dde3f,_0x1223e4){let _0x34c6d5=null,_0x46d444=null,_0x498876=0x0;const _0xf3b1e7=this['editor']['model'];for(let _0x39013a=0x0;_0x39013a<_0x4e0d25['length'];_0x39013a++){const _0x305727=this['_getVidAttributeName'](_0x4e0d25[_0x39013a]),_0x47c890=_0x4e0d25[_0x39013a]['item']['getAttribute'](_0x305727),_0x2ab2cb=_0xa2065f['get'](_0x47c890),_0x498b5d=_0x39013a==_0x4e0d25['length']-0x1;(!_0x34c6d5&&_0x2ab2cb&&(_0x34c6d5=_0x2ab2cb,_0x46d444=_0x4e0d25[_0x39013a]),_0x34c6d5&&(!_0x2ab2cb||_0x2ab2cb['userId']!=_0x34c6d5['userId']))&&(_0x2a5606(_0x2ab2cb,B(_0x46d444,_0x46b7a8,_0xf3b1e7),B(_0x4e0d25[_0x39013a],_0x46b7a8,_0xf3b1e7)),_0x34c6d5=_0x2ab2cb||null,_0x46d444=_0x2ab2cb?_0x4e0d25[_0x39013a]:null),_0x34c6d5&&_0x498b5d&&_0x2a5606(_0x2ab2cb,B(_0x46d444,_0x46b7a8,_0xf3b1e7),J(_0x4e0d25[_0x39013a],_0x46b7a8,_0xf3b1e7));}function _0x2a5606(_0x424cc0,_0x582b56,_0x51351d){const _0x48cdb1=_0x34c6d5['userId'],_0x3228a5='revision:'+_0x4dde3f+':'+_0x48cdb1+':'+_0x498876++,_0x228aa6=_0xf3b1e7['createRange'](_0x582b56,_0x51351d);_0x46b7a8['markers']['set'](_0x3228a5,_0x228aa6),null!==_0x48cdb1&&_0x1223e4['add'](_0x48cdb1);}}['_getVidAttributeName'](_0x4a68db){switch(_0x4a68db['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x40f770,_0x15edb3){_0x40f770['baseVersion']=null;for(const _0x4515b9 in _0x40f770){const _0x3628c8=_0x40f770[_0x4515b9];if(_0x3628c8 instanceof vt){const _0x365c8b=_0x15edb3['get'](_0x3628c8['root']['rootName']);_0x40f770[_0x4515b9]=this['_fixPosition'](_0x3628c8,_0x365c8b);}if(_0x3628c8 instanceof ft){const _0x54648e=_0x15edb3['get'](_0x3628c8['root']['rootName']);_0x40f770[_0x4515b9]=this['_fixRange'](_0x3628c8,_0x54648e);}'root'===_0x4515b9&&(_0x40f770['root']=_0x15edb3['get'](_0x40f770['root']['rootName']));}}['_fixRange'](_0x2c8072,_0x2c3cc5){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2c8072['start'],_0x2c3cc5),this['_fixPosition'](_0x2c8072['end'],_0x2c3cc5));}['_fixPosition'](_0x42c928,_0x1f8fb6){return this['editor']['model']['createPositionFromPath'](_0x1f8fb6,_0x42c928['path'],_0x42c928['stickiness']);}['_handleInsertOperation'](_0x5d591a){const _0x30acd5=this['_idsRoots']['get'](_0x5d591a['position']['root']['rootName']),_0x276e0=this['_fixPosition'](_0x5d591a['position'],_0x30acd5),_0x28fa12=null===_0x5d591a['_authorId']?null:_0x5d591a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2681c4=_0x276e0['parent'],_0x56334f=this['_revisionId'],_0x155457=[];for(const _0x2edb5a of _0x5d591a['nodes'])if(_0x2edb5a['is']('element'))_0x155457['push'](this['_makeIdsRoot'](_0x2edb5a));else{for(let _0x4e618e=0x0;_0x4e618e<_0x2edb5a['offsetSize'];_0x4e618e++)_0x155457['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x411baf=this['_revisionId'];for(let _0xe60540=_0x56334f;_0xe60540<_0x411baf;_0xe60540++)this['_touched']['set'](_0xe60540,{'userId':_0x28fa12});_0x2681c4['_insertChild'](_0x276e0['offset'],_0x155457);}['_handleMoveOperation'](_0x30613d){(_0x30613d=this['_cloneOperation'](_0x30613d,this['_idsRoots']))['_execute']();const _0x21fe03=null===_0x30613d['_authorId']?null:_0x30613d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27650e=_0x30613d['getMovedRangeStart'](),_0x46a014=_0x27650e['parent'],_0x47d880=_0x27650e['offset'];!function _0x1030e7(_0x218d50,_0x24e313,_0x47461c,_0x204ad2){for(let _0x49dae9=_0x47461c;_0x49dae9<_0x204ad2;_0x49dae9++){const _0x58ab38=_0x24e313['getChild'](_0x49dae9);_0x58ab38['is']('element','$text')?_0x218d50['set'](_0x58ab38['getAttribute']('vid'),{'userId':_0x21fe03}):(_0x218d50['set'](_0x58ab38['getAttribute']('vid_start'),{'userId':_0x21fe03}),_0x1030e7(_0x218d50,_0x58ab38,0x0,_0x58ab38['childCount']),_0x218d50['set'](_0x58ab38['getAttribute']('vid_end'),{'userId':_0x21fe03}));}}(this['_touched'],_0x46a014,_0x47d880,_0x47d880+_0x30613d['howMany']);}['_handleMergeOperation'](_0x4c3dde){const _0x5788a8=null===(_0x4c3dde=this['_cloneOperation'](_0x4c3dde,this['_idsRoots']))['_authorId']?null:_0x4c3dde['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53a0df=_0x4c3dde['targetPosition']['parent'],_0x51c5b8=_0x4c3dde['sourcePosition']['parent'],_0x54936c=_0x53a0df['getAttribute']('vid_end'),_0x494415=_0x51c5b8['getAttribute']('vid_start');_0x53a0df['_setAttribute']('vid_end',_0x51c5b8['getAttribute']('vid_end')),_0x51c5b8['_setAttribute']('vid_end',_0x54936c),this['_touched']['set'](_0x494415,{'userId':_0x5788a8}),this['_touched']['set'](_0x54936c,{'userId':_0x5788a8}),_0x4c3dde['_execute']();}['_handleSplitOperation'](_0x5a1ae6){const _0x1d0a12=null===(_0x5a1ae6=this['_cloneOperation'](_0x5a1ae6,this['_idsRoots']))['_authorId']?null:_0x5a1ae6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30ff=_0x5a1ae6['graveyardPosition'],_0x140a25=_0x5a1ae6['splitPosition']['parent'];_0x5a1ae6['_execute']();const _0x10e999=_0x140a25['getAttribute']('vid_end'),_0xc6bd04=_0x5a1ae6['insertionPosition']['nodeAfter'];if(_0x30ff){const _0x43d45d=_0xc6bd04['getAttribute']('vid_end'),_0xf4552c=_0x140a25['getAttribute']('vid_end');_0x140a25['_setAttribute']('vid_end',_0x43d45d),_0xc6bd04['_setAttribute']('vid_end',_0xf4552c),this['_touched']['set'](_0x140a25['getAttribute']('vid_end'),{'userId':_0x1d0a12}),this['_touched']['set'](_0xc6bd04['getAttribute']('vid_start'),{'userId':_0x1d0a12});}else{const _0x54a557=this['_revisionId']++,_0x446e4e=this['_revisionId']++;_0x140a25['_setAttribute']('vid_end',_0x54a557),_0xc6bd04['_setAttribute']('vid_start',_0x446e4e),_0xc6bd04['_setAttribute']('vid_end',_0x10e999),this['_touched']['set'](_0x54a557,{'userId':_0x1d0a12}),this['_touched']['set'](_0x446e4e,{'userId':_0x1d0a12});}}['_handleMarkerOperation'](_0x542491){if(!_0x542491['affectsData'])return;const _0x2b0458=(_0x542491=this['_cloneOperation'](_0x542491,this['_diffRoots']))['oldRange']?_0x542491['oldRange']['root']:null,_0x21974b=_0x542491['newRange']?_0x542491['newRange']['root']:null;_0x2b0458&&this['_markers']['delete'](_0x542491['name']),_0x21974b&&this['_markers']['set'](_0x542491['name'],_0x542491['newRange']['clone']());const _0x5f15fc=null===_0x542491['_authorId']?null:_0x542491['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f7ec4=_0x542491['name'];if(!this['_touchedMarkers']['has'](_0x2f7ec4))return void this['_touchedMarkers']['set'](_0x2f7ec4,{'range':_0x542491['oldRange'],'userId':_0x5f15fc});const _0x479af0=this['_touchedMarkers']['get'](_0x2f7ec4),_0x54c6c2=_0x479af0['range'],_0x423bfb=_0x542491['newRange'];null==_0x54c6c2&&null==_0x423bfb||_0x54c6c2&&_0x423bfb&&_0x54c6c2['isEqual'](_0x423bfb)?this['_touchedMarkers']['delete'](_0x542491['name']):_0x479af0['userId']=_0x5f15fc;}['_handleRootOperation'](_0x223a26,_0x5c6285){this['_diffRoots']['has'](_0x223a26['rootName'])?this['_diffRoots']['get'](_0x223a26['rootName'])['_isAttached']=_0x223a26['isAdd']:(this['_diffRoots']['set'](_0x223a26['rootName'],F(_0x223a26['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x223a26['rootName'],{}),_0x5c6285&&this['_idsRoots']['set'](_0x223a26['rootName'],F(_0x223a26['rootName'],!0x0)));const _0x49337d=null===_0x223a26['_authorId']?null:_0x223a26['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12f967=this['_touchedRoots']['get'](_0x223a26['rootName']);_0x12f967&&_0x12f967['userId']===_0x49337d?this['_touchedRoots']['delete'](_0x223a26['rootName']):this['_touchedRoots']['set'](_0x223a26['rootName'],{'userId':_0x49337d,'isAttached':_0x223a26['isAdd']});}['_handleRootAttributeOperation'](_0x2620e3){const _0x17f94b=this['_diffRootsAttributes']['get'](_0x2620e3['root']['rootName']);null===_0x2620e3['newValue']?delete _0x17f94b[_0x2620e3['key']]:_0x17f94b[_0x2620e3['key']]=_0x2620e3['newValue'];}}function T(_0x5159a1){const _0x2f4e75=F(_0x5159a1['rootName'],_0x5159a1['isAttached']());for(const _0x1389b1 of _0x5159a1['getChildren']()){const _0xdb68e6=_0x1389b1['_clone'](!0x0);_0x2f4e75['_appendChild'](_0xdb68e6);}return _0x2f4e75;}function F(_0x4e9e,_0x19d63d=!0x0){const _0x519fec=new gt();return _0x519fec['rootName']=_0x4e9e,_0x519fec['_isAttached']=_0x19d63d,_0x519fec['isAttached']=()=>_0x519fec['_isAttached'],_0x519fec;}function B(_0x5c2710,_0x140140,_0x3775ca){const _0x5a7466='elementEnd'==_0x5c2710['type']?_0x3775ca['createPositionAt'](_0x5c2710['item'],'end'):_0x3775ca['createPositionBefore'](_0x5c2710['item']);return _0x3775ca['createPositionFromPath'](_0x140140,_0x5a7466['path'],_0x5a7466['stickiness']);}function J(_0x209c4b,_0x10584f,_0x5af940){const _0x53994a='elementStart'==_0x209c4b['type']?_0x5af940['createPositionAt'](_0x209c4b['item'],0x0):_0x5af940['createPositionAfter'](_0x209c4b['item']);return _0x5af940['createPositionFromPath'](_0x10584f,_0x53994a['path'],_0x53994a['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x26b41a,_0x5260eb){super(_0x26b41a),this['focusTracker']=new _0xb58d78(),this['keystrokes']=new _0x22b2b6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5260eb),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x52b994(this);}['render'](){super['render'](),_0xbcc6bc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4cb75f=_0x21d6ba=>_0x21d6ba['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4cb75f),this['keystrokes']['set']('arrowleft',_0x4cb75f),this['keystrokes']['set']('arrowup',_0x4cb75f),this['keystrokes']['set']('arrowdown',_0x4cb75f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x405d56){this['revisionNameInputView']['fieldView']['element']['value']=_0x405d56['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x52e9de){const _0x51c0c9=new _0x3230b0(this['locale'],_0x30c57f),_0x466932=_0x51c0c9['fieldView'];_0x466932['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x24f774=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x52e9de&&(_0x24f774+='\x20('+m(this['locale'],'optional')+')'),(_0x51c0c9['label']=_0x24f774,_0x466932['on']('input',()=>{this['revisionNameInputValue']=_0x466932['element']['value']['trim']();}),_0x51c0c9);}}class f extends _0x1947b9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3e39e7=this['editor'],_0xbe88fb=_0x3e39e7['plugins']['get']('RevisionTracker');_0x3e39e7['ui']['componentFactory']['add']('revisionHistory',_0x48c413=>{const _0x243b46=_0x5ae326(_0x48c413),_0x18da42=_0x243b46['panelView']['children'],_0x4eb5e1=new _0x575510(_0x48c413),_0x42a0fc=new _0x1fc11a(_0x48c413),_0x429506=new te(_0x48c413),_0x759742=new _0x1fc11a(_0x48c413),_0x2afd5a=new te(_0x48c413);return _0x243b46['bind']('isEnabled')['to'](_0xbe88fb,'isReady',_0xbe88fb,'isEnabled',_0x3e39e7,'isReadOnly',(_0x2d3d48,_0x14dc84,_0x195f6c)=>_0x2d3d48&&_0x14dc84&&!_0x195f6c),_0x243b46['buttonView']['set']({'icon':_0x4b0f09,'label':m(_0x48c413,'Revision\x20history'),'tooltip':!0x0}),_0x429506['set']({'label':m(_0x48c413,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x429506['bind']('isEnabled')['to'](_0xbe88fb,'isReady',_0xbe88fb,'isEnabled',_0x3e39e7,'isReadOnly',(_0x1e0fe1,_0x5725e1,_0x2b9db2)=>_0x1e0fe1&&_0x5725e1&&!_0x2b9db2),_0x429506['on']('execute',()=>this['_showDialog']()),_0x2afd5a['set']({'label':m(_0x48c413,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2afd5a['bind']('isEnabled')['to'](_0xbe88fb,'isReady',_0x3e39e7,'isReadOnly',(_0x41dec0,_0x2a3164)=>_0x41dec0&&!_0x2a3164),_0x2afd5a['on']('execute',()=>{_0x3e39e7['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x243b46['isOpen']=!0x1,_0x3e39e7['editing']['view']['focus']();}),_0x42a0fc['children']['add'](_0x429506),_0x759742['children']['add'](_0x2afd5a),_0x4eb5e1['role']='menu',_0x4eb5e1['items']['addMany']([_0x42a0fc,_0x759742]),_0x18da42['add'](_0x4eb5e1),_0x243b46;}),_0x3e39e7['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5bd7a3=this['editor'],_0x23b7b8=_0x5bd7a3['locale'],_0x4490dd=new _0x3d315a(_0x23b7b8),_0x30e52e=new _0x489dbe(_0x23b7b8);_0x4490dd['buttonView']['set']({'icon':_0x4b0f09,'label':m(_0x23b7b8,'Revision\x20history')});const _0x3d2de7=new _0x5b8bda(_0x23b7b8,_0x4490dd),_0x105ca9=new _0x31e280(_0x23b7b8);_0x105ca9['set']({'label':m(_0x23b7b8,'Save\x20current\x20revision')}),_0x105ca9['delegate']('execute')['to'](_0x4490dd),_0x105ca9['on']('execute',()=>{this['_showDialog']();}),_0x3d2de7['children']['add'](_0x105ca9),_0x30e52e['items']['add'](_0x3d2de7);const _0x350808=new _0x5b8bda(_0x23b7b8,_0x4490dd),_0x33391c=new _0x31e280(_0x23b7b8);return _0x33391c['set']({'label':m(_0x23b7b8,'Open\x20revision\x20history')}),_0x33391c['delegate']('execute')['to'](_0x4490dd),_0x33391c['on']('execute',()=>{_0x5bd7a3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x350808['children']['add'](_0x33391c),_0x30e52e['items']['add'](_0x350808),_0x4490dd['panelView']['children']['add'](_0x30e52e),_0x4490dd;}['_showDialog'](){const _0x29d7cc=this['editor'],_0xa1ad21=_0x29d7cc['locale'],_0x206f27=_0x29d7cc['plugins']['get']('Dialog'),_0xf3ea83=_0x29d7cc['plugins']['get']('RevisionTracker');function _0x4b9122(_0x4d0de3){_0x29d7cc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4d0de3['revisionName']?_0x4d0de3['revisionNameInputView']['errorText']=m(_0xa1ad21,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x29d7cc['plugins']['get'](u)['saveRevision']({'name':_0x4d0de3['revisionName']}),_0x206f27['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4b9122(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x206f27['show']({'id':'revisionSave','title':m(_0xa1ad21,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x29d7cc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x206f27['hide']()},{'label':m(_0x29d7cc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2c6344){_0x2c6344['bind']('isEnabled')['to'](_0xf3ea83,'isReady',_0xf3ea83,'isEnabled',_0x29d7cc,'isReadOnly',(_0x3790ae,_0x2ea75a,_0x5a249e)=>_0x3790ae&&_0x2ea75a&&!_0x5a249e);},'onExecute':()=>_0x4b9122(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1ad3c1=this['editor'],_0x372823=_0x1ad3c1['locale'];this['_saveRevisionFormView']=new hs(_0x372823,_0x1ad3c1['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x4f91d7,_0x5b68bb){super(_0x4f91d7),this['_model']=_0x5b68bb,this['changeId']=_0x5b68bb['id'];const _0x20b97e=this['bindTemplate'],_0x39ec55=m(_0x4f91d7,_0x5b68bb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5b68bb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5b68bb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x20b97e['to']('type',_0x18021d=>'ck-revision-change__'+_0x18021d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x39ec55}]},{'text':'\x20'+_0x5b68bb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x12e48c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x50aabc){super(),this['id']=_0x50aabc['id']||_0x11cac6(),this['author']=_0x50aabc['author'],this['type']=_0x50aabc['type'],this['data']=_0x50aabc['data']||{},this['rootName']=_0x50aabc['rootName'],this['set']('createdAt',_0x50aabc['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3292ec,_0x449549){this['newRevisionId']=_0x3292ec,this['oldRevisionId']=_0x449549,this['changes']=new _0x3c9798();}['_setChanges'](_0xbbdde7){for(const _0x5294b7 of _0xbbdde7)this['changes']['add'](_0x5294b7);}}const Y={'c':_0x30d263,'a':_0x544f6d,'e':_0x155563,'r':_0x226a61,'u':_0x14dc4c};class d extends _0x1947b9{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3da1a3,_0x57e549,j];}constructor(_0x4d3625){super(_0x4d3625),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5cbcac,_0x500aca,_0x2d4283)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4d219b=>{for(const _0x1e3ced of this['editor']['editing']['view']['document']['roots'])_0x2d4283?_0x4d219b['removeClass']('ck-editor__editable__overlay',_0x1e3ced):_0x4d219b['addClass']('ck-editor__editable__overlay',_0x1e3ced);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1a53ef=>null!==_0x1a53ef),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1a1b83,_0x5ab5dc,_0x307aac)=>_0x1a1b83&&_0x307aac?_0x5ab5dc['changes']['getIndex'](_0x307aac):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf1dcb3,_0x506112)=>_0xf1dcb3?_0x506112['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x57e549);}['init'](){const _0x639ae6=this['editor'],_0x5939b6=new _t(_0x639ae6,{'direction':'backward'}),_0x35efd6=new _t(_0x639ae6,{'direction':'forward'});(_0x639ae6['commands']['add']('showPreviousChange',_0x5939b6),_0x639ae6['commands']['add']('showNextChange',_0x35efd6),_0x639ae6['commands']['add']('restoreRevision',new wt(_0x639ae6)),this['on']('change:numberOfChanges',()=>{_0x5939b6['refresh'](),_0x35efd6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x639ae6['enableReadOnlyMode']('revision-viewer'),_0x639ae6['plugins']['has']('WidgetToolbarRepository'))&&_0x639ae6['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x535403){await this['loadRevisionData'](_0x535403);const _0x5f57be={};for(const _0x28a8cc in _0x535403['diffData']){if(_0x535403['diffData'][_0x28a8cc]['attachChange']&&!_0x535403['diffData'][_0x28a8cc]['attachChange']['isAttached'])continue;const _0x2cca8a=this['_removeRevisionMarkers'](JSON['parse'](_0x535403['diffData'][_0x28a8cc]['insertions'])),_0x19e837=this['editor']['editing']['view']['document'],_0x441d4b=new _0x26a069(_0x19e837,_0x2cca8a['map'](_0x529b0b=>this['_getViewObj'](_0x529b0b)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5f57be[_0x28a8cc]=this['editor']['data']['processor']['toData'](_0x441d4b),this['editor']['data']['processor']['useFillerType']('default');}return _0x5f57be;}async['getRevisionRootsAttributes'](_0x1ab559){await this['loadRevisionData'](_0x1ab559);const _0x1c71c7={};for(const _0x5d739c in _0x1ab559['diffData'])_0x1ab559['diffData'][_0x5d739c]['attachChange']&&!_0x1ab559['diffData'][_0x5d739c]['attachChange']['isAttached']||(_0x1c71c7[_0x5d739c]=_0x1ab559['diffData'][_0x5d739c]['attributesAfter']||{});return _0x1c71c7;}['_removeRevisionMarkers'](_0x3787ac){return(_0x3787ac=_0x3787ac['filter'](_0x221be3=>!_0x221be3['name']||'revision-start'!==_0x221be3['name']&&'revision-end'!==_0x221be3['name']))['forEach'](_0x226277=>{'string'!=typeof _0x226277&&(_0x226277['children']=this['_removeRevisionMarkers'](_0x226277['children']),_0x226277['attributes']=_0x226277['attributes']['filter'](_0x583565=>!_0x583565[0x0]['startsWith']('data-revision-')));}),_0x3787ac;}async['compare'](_0x53785f,_0xcc9743,_0x6f7afc=!0x1){if(!this['isEnabled'])return;const _0x680503=this['diff'],_0x1107a4=this['repository'],_0x518ebd='string'==typeof _0x53785f?_0x1107a4['getRevision'](_0x53785f):_0x53785f,_0x581d33='string'==typeof _0xcc9743?_0x1107a4['getRevision'](_0xcc9743):_0xcc9743,_0x17c1a0=_0x518ebd['id'],_0x4bb949=_0x581d33?_0x581d33['id']:null;if(!_0x6f7afc&&this['diff']&&this['diff']['newRevisionId']===_0x17c1a0&&this['diff']['oldRevisionId']===_0x4bb949)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x17c1a0,_0x4bb949);const _0x5305b6=this['_getRevisionsRange'](_0x518ebd,_0x581d33,!0x0)['map'](_0x5933dc=>this['loadRevisionData'](_0x5933dc));return _0x5305b6['push'](new Promise(_0x345005=>{setTimeout(_0x345005,0x14);})),Promise['all'](_0x5305b6)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x38f67f=this['_getDiff'](_0x17c1a0,_0x4bb949);for(const _0x1169b6 of _0x38f67f['changes'])this['_changeIdToChange']['set'](_0x1169b6['id'],_0x1169b6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x33788e=>{for(const _0x329e08 of this['editor']['model']['document']['getRootNames']())_0x33788e['detachRoot'](_0x329e08);for(const _0xf0afb of Object['keys'](_0x38f67f['model'])){const _0x55743f=_0x33788e['addRoot'](_0xf0afb);for(const _0x377eb2 of Object['keys'](_0x38f67f['attributes'][_0xf0afb]))_0x33788e['setAttribute'](_0x377eb2,_0x38f67f['attributes'][_0xf0afb][_0x377eb2],_0x55743f);_0x33788e['insert'](_0x38f67f['model'][_0xf0afb],_0x55743f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x38f67f['changes'])),this['isReady']=!0x0;})['catch'](_0x27a1dd=>{console['error'](_0x27a1dd),this['_cleanUp'](),_0x680503&&(this['diff']=_0x680503),this['isReady']=!0x0;});}['addRevisionData'](_0x432d83,_0x248f48){const _0x4f9bc8=this['repository']['createRevision'](_0x432d83);return _0x4f9bc8['on']('_update',(_0xa53ae3,_0x4ccc06,_0xf4feee)=>_0x248f48(_0x4ccc06,_0xf4feee,_0x4f9bc8)),this['repository']['addRevision'](_0x4f9bc8),_0x4f9bc8;}['loadRevisionData'](_0x16142e){if(!_0x16142e||_0x16142e['diffData'])return Promise['resolve']();{const _0x1ef334=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1ef334,'revisionId':_0x16142e['id']})['then'](_0x469f2e=>{_0x16142e['_update']({'diffData':_0x469f2e['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xa50eab=>{for(const _0x4de404 of this['editor']['model']['document']['getRootNames']())_0xa50eab['detachRoot'](_0x4de404);});}['_sortAndFilterDiffChanges'](_0x18ae70){const _0xe5dea1=[],_0x474504=new Map();for(const _0x1b5273 of this['editor']['model']['document']['getRootNames']()){const _0x5a8ba8=this['editor']['editing']['view']['getDomRoot'](_0x1b5273);if(!_0x5a8ba8)continue;const _0x1b96e3=_0x5a8ba8['getClientRects']()['item'](0x0);_0x1b96e3&&(_0xe5dea1['push'](_0x1b5273),_0x474504['set'](_0x1b5273,_0x1b96e3));}return _0xe5dea1['sort']((_0x49512b,_0x3d4c89)=>{const _0x5ad726=_0x474504['get'](_0x49512b),_0x364ffc=_0x474504['get'](_0x3d4c89);return _0x5ad726['y']-_0x364ffc['y']||_0x5ad726['x']-_0x364ffc['x'];}),(_0x18ae70=_0x18ae70['filter'](_0x16b2fc=>_0xe5dea1['includes'](_0x16b2fc['rootName'])))['sort']((_0x4a66bf,_0xb43339)=>_0xe5dea1['indexOf'](_0x4a66bf['rootName'])-_0xe5dea1['indexOf'](_0xb43339['rootName'])),_0x18ae70;}['_makeTape'](_0x16329b){const _0x1fd3dc=Array['from'](_0x16329b['markers'])['filter'](([_0x119c09,_0x406f99])=>_0x119c09['startsWith']('revision:')&&!_0x406f99['isCollapsed']),_0x217f05=Array['from'](this['editor']['model']['createRangeIn'](_0x16329b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1fd3dc['length'])for(const _0x3483b5 of _0x217f05){const [_0x11d7ff,_0x5ebf77]=_0x1fd3dc[0x0],[,_0x2de26d,_0x48c547]=_0x11d7ff['split'](':');if(_0x5ebf77['end']['isEqual'](_0x3483b5['nextPosition'])&&_0x1fd3dc['shift'](),(_0x3483b5['previousPosition']['isEqual'](_0x5ebf77['start'])||_0x3483b5['previousPosition']['isAfter'](_0x5ebf77['start']))&&('insertion'==_0x2de26d?_0x3483b5['isAdded']={'userId':_0x48c547}:'deletion'==_0x2de26d&&(_0x3483b5['isRemoved']={'userId':_0x48c547})),0x0==_0x1fd3dc['length'])break;}return _0x217f05;}['_refreshStartEndIndex'](_0x48785a){const _0x5731a4=new Map();for(let _0x3374ce=0x0;_0x3374ce<_0x48785a['length'];_0x3374ce++)'text'===_0x48785a[_0x3374ce]['type']?(_0x48785a[_0x3374ce]['item']['startIndex']=_0x3374ce,_0x48785a[_0x3374ce]['item']['endIndex']=_0x3374ce):('elementStart'===_0x48785a[_0x3374ce]['type']?_0x48785a[_0x3374ce]['item']['startIndex']=_0x3374ce:'elementEnd'===_0x48785a[_0x3374ce]['type']&&(_0x48785a[_0x3374ce]['item']['endIndex']=_0x3374ce),_0x5731a4['set'](_0x48785a[_0x3374ce]['id'],_0x3374ce));for(const _0x403080 of _0x5731a4['values']())'elementStart'===_0x48785a[_0x403080]['type']?_0x48785a[_0x403080]['item']['endIndex']=_0x5731a4['get'](_0x48785a[_0x403080]['pairId']):'elementEnd'===_0x48785a[_0x403080]['type']&&(_0x48785a[_0x403080]['item']['startIndex']=_0x5731a4['get'](_0x48785a[_0x403080]['pairId']));}['_processTape'](_0x2f307f){for(let _0x254b6f=0x0;_0x254b6f<_0x2f307f['length'];_0x254b6f++){if('elementStart'===_0x2f307f[_0x254b6f]['type'])_0x2f307f[_0x254b6f]['item']['startIndex']=_0x254b6f;else{if('elementEnd'===_0x2f307f[_0x254b6f]['type']){_0x2f307f[_0x254b6f]['item']['endIndex']=_0x254b6f;const _0x4df430=_0x2f307f[_0x254b6f]['item']['startIndex'];_0x2f307f[_0x4df430]['pairId']=_0x2f307f[_0x254b6f]['id'],_0x2f307f[_0x254b6f]['pairId']=_0x2f307f[_0x4df430]['id'];}else _0x2f307f[_0x254b6f]['item']['startIndex']=_0x254b6f,_0x2f307f[_0x254b6f]['item']['endIndex']=_0x254b6f,_0x2f307f[_0x254b6f]['pairId']=null;}_0x2f307f[_0x254b6f]['markersStart']||(_0x2f307f[_0x254b6f]['markersStart']=[],_0x2f307f[_0x254b6f]['markersEnd']=[]);}}['_markInsertions'](_0x49800e,_0x1f4e34){const _0x104178=_0x49800e['filter'](_0x59892e=>!_0x59892e['isAdded']);for(let _0x4e486c=0x0;_0x4e486c<_0x1f4e34['length'];_0x4e486c++)_0x1f4e34[_0x4e486c]['isAdded']&&(_0x104178[_0x4e486c]['isAdded']=_0x1f4e34[_0x4e486c]['isAdded']);}['_makeModelFromViewString'](_0x49ae17){const _0x3731a2=JSON['parse'](_0x49ae17),_0x589315=this['editor']['editing']['view']['document'],_0x1ac469=new _0x26a069(_0x589315,_0x3731a2['map'](_0x36760e=>this['_getViewObj'](_0x36760e)));return this['editor']['data']['toModel'](_0x1ac469);}['_getViewObj'](_0x319fb7){const _0x48e48d=this['editor']['editing']['view']['document'];if('string'==typeof _0x319fb7)return new _0x29f1b1(_0x48e48d,_0x319fb7);{const _0x2cd808=_0x319fb7['children']['map'](_0x42e8b7=>this['_getViewObj'](_0x42e8b7));return new(Y[_0x319fb7['type']]||_0x59bd53)(_0x48e48d,_0x319fb7['name'],_0x319fb7['attributes'],_0x2cd808);}}['_getDiff'](_0x546b65,_0x16478e=null){const _0x3b5443=this['repository']['getRevision'](_0x546b65),_0x4c7184=_0x16478e?this['repository']['getRevision'](_0x16478e):null,_0x5ae167=this['_getRevisionsRange'](_0x3b5443,_0x4c7184),_0x3829ff=_0x5ae167[_0x5ae167['length']-0x1],_0x22d2bc=new Map(),_0x3cc564={'model':{},'attributes':{},'changes':[]},_0x6cdb2b=new Set(),_0x502073=new Map();for(let _0x239131=_0x5ae167['length']-0x1;_0x239131>=0x0;_0x239131--){const _0x5f1d60=_0x5ae167[_0x239131];for(const _0x4f844e of Object['keys'](_0x5f1d60['diffData']))if(_0x5f1d60['diffData'][_0x4f844e]['attachChange']){const _0x4bdc2d=_0x5f1d60['diffData'][_0x4f844e]['attachChange'];_0x4bdc2d['isAttached']?(_0x6cdb2b['add'](_0x4f844e),_0x502073['has'](_0x4f844e)&&_0x502073['get'](_0x4f844e)['userId']==_0x4bdc2d['userId']?_0x502073['delete'](_0x4f844e):_0x502073['set'](_0x4f844e,_0x4bdc2d)):_0x502073['has'](_0x4f844e)?(_0x6cdb2b['delete'](_0x4f844e),_0x502073['delete'](_0x4f844e)):(_0x6cdb2b['add'](_0x4f844e),_0x502073['set'](_0x4f844e,_0x4bdc2d));}else _0x6cdb2b['add'](_0x4f844e);}for(const _0x4f5edb of _0x6cdb2b){const _0x50c9fb=_0x502073['has'](_0x4f5edb)&&!_0x502073['get'](_0x4f5edb)['isAttached'];let _0x487f1f=_0x50c9fb?_0x5ae167['length']-0x1:0x0;const _0x2da110=_0x50c9fb?-0x1:0x1;for(;_0x5ae167[_0x487f1f];){const _0x3df42d=_0x5ae167[_0x487f1f];if(_0x3df42d['diffData'][_0x4f5edb]){const _0x55c2b6=_0x50c9fb?_0x3df42d['diffData'][_0x4f5edb]['attributesBefore']:_0x3df42d['diffData'][_0x4f5edb]['attributesAfter'];_0x3cc564['attributes'][_0x4f5edb]=_0x55c2b6?_0xd3d7c6(_0x55c2b6):{};break;}_0x487f1f+=_0x2da110;}}for(const _0x54e59e of _0x5ae167){_0x54e59e['model']={};for(const _0x2fa2f0 of _0x54e59e['authors'])_0x22d2bc['set'](_0x2fa2f0['id'],_0x2fa2f0);for(const _0xa3eb3f of _0x6cdb2b){const _0x2596e5=_0x54e59e['diffData'][_0xa3eb3f]?_0x54e59e['diffData'][_0xa3eb3f]['insertions']:'[]',_0x14eaeb=_0x54e59e['diffData'][_0xa3eb3f]?_0x54e59e['diffData'][_0xa3eb3f]['deletions']:'[]';_0x54e59e['model'][_0xa3eb3f]={'insertions':this['_makeModelFromViewString'](_0x2596e5),'deletions':this['_makeModelFromViewString'](_0x14eaeb)};}}for(const _0x8a9d9 of _0x6cdb2b){let _0x10217c=null,_0xd985ef=0x0;const _0x4020d2=new Map(Array['from'](_0x3b5443['model'][_0x8a9d9]['insertions']['markers'])['filter'](([_0x5cb1c8])=>!_0x5cb1c8['startsWith']('revision:')));let _0x220319=0x0;for(const _0x588070 of _0x5ae167){const _0x5dacc1=this['_makeTape'](_0x588070['model'][_0x8a9d9]['insertions']);_0x588070==_0x3b5443?(_0x10217c=_0x5dacc1,_0xd985ef=_0x10217c['length'],_0x10217c['forEach'](_0x4cb32b=>{_0x4cb32b['id']=_0x220319++;}),this['_processTape'](_0x10217c)):this['_markInsertions'](_0x10217c,_0x5dacc1);const _0xddf684=_0x10217c['filter'](_0x34fd60=>!_0x34fd60['isAdded'])['map'](_0xd244e8=>_0xd244e8['id']);let _0x589876=0x0;const _0x2972d1=this['_makeTape'](_0x588070['model'][_0x8a9d9]['deletions']);_0x2972d1['forEach'](_0x2e9df1=>{_0x2e9df1['isRemoved']?_0x2e9df1['id']=_0xd985ef++:_0x2e9df1['id']=_0xddf684[_0x589876++];}),this['_processTape'](_0x2972d1),this['_setDistance'](_0x10217c,'isAdded'),this['_setDistance'](_0x2972d1,'isRemoved'),_0x588070==_0x3b5443&&this['_markMarkers'](_0x10217c,_0x4020d2),_0x10217c=this['_joinTapes'](_0x10217c,_0x2972d1),this['_refreshStartEndIndex'](_0x10217c),this['_setDistance'](_0x10217c,'isRemoved');}_0x10217c=_0x10217c['filter'](_0xc84a0a=>!(_0xc84a0a['isAdded']&&_0xc84a0a['isRemoved']));const _0x50d32a=new Map(_0x3829ff['model'][_0x8a9d9]['deletions']['markers']),_0x5928e4=new Set(_0x4020d2['keys']());for(const _0x5aa767 of _0x50d32a['keys']())_0x5928e4['delete'](_0x5aa767);this['_markSuggestions'](_0x10217c,_0x5928e4),this['_fixObsoleteTags'](_0x10217c),_0x10217c=this['_removeMissingPairs'](_0x10217c),_0x10217c=this['_markMismatchedRemovedTags'](_0x10217c),_0x10217c=this['_removeUnsupportedChanges'](_0x10217c);const {root:_0x25a608,changes:_0x311131}=this['_makeModelFromTape'](_0x10217c,_0x22d2bc,_0x8a9d9);_0x3cc564['model'][_0x8a9d9]=_0x25a608;const _0x40e2c1=_0x502073['get'](_0x8a9d9);if(_0x40e2c1){const _0x59f482=_0x22d2bc['get'](_0x40e2c1['userId']),_0x5cf729=new r({'author':_0x59f482,'type':_0x40e2c1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x8a9d9});_0x311131['unshift'](_0x5cf729),_0x3cc564['attributes'][_0x8a9d9]['revisionHistoryAttachChange']=_0x5cf729['id'];}_0x3cc564['changes']=_0x3cc564['changes']['concat'](_0x311131);}return _0x3cc564;}['_markMarkers'](_0x5c68b4,_0x431294){for(let _0x220d8f=0x0;_0x220d8f<_0x5c68b4['length'];_0x220d8f++)for(const [_0x20fc75,_0x3035a0]of _0x431294)_0x3035a0['start']['isEqual'](_0x5c68b4[_0x220d8f]['previousPosition'])&&_0x5c68b4[_0x220d8f]['markersStart']['push'](_0x20fc75),_0x3035a0['end']['isEqual'](_0x5c68b4[_0x220d8f]['nextPosition'])&&_0x5c68b4[_0x220d8f]['markersEnd']['push'](_0x20fc75);}['_joinTapes'](_0x30bfa1,_0x2983ce){let _0x4f3c14=[],_0x5e1ebd=0x0,_0x4219cc=0x0;for(;_0x5e1ebd<_0x30bfa1['length']||_0x4219cc<_0x2983ce['length'];){const _0x2d9aa0=_0x30bfa1[_0x5e1ebd]||{},_0x223068=_0x2983ce[_0x4219cc]||{};if(_0x2d9aa0['id']==_0x223068['id'])_0x5e1ebd++,_0x4219cc++,_0x4f3c14['push'](_0x2d9aa0);else{if(_0x223068['isRemoved']&&_0x2d9aa0['isAdded']){const {commonTape:_0x4e7472,iEnd:_0x5a0ac1,jEnd:_0x9e541f}=this['_threeWayMerge'](_0x30bfa1,_0x5e1ebd,_0x2983ce,_0x4219cc);_0x4f3c14=_0x4f3c14['concat'](_0x4e7472),_0x5e1ebd=_0x5a0ac1,_0x4219cc=_0x9e541f;}else _0x223068['isRemoved']?(_0x4219cc++,_0x4f3c14['push'](_0x223068)):(_0x5e1ebd++,_0x4f3c14['push'](_0x2d9aa0));}}return _0x4f3c14;}['_markSuggestions'](_0x3326ee,_0x2531b3){const _0x1f0706=[];for(let _0x19f19b=0x0;_0x19f19b<_0x3326ee['length'];_0x19f19b++){for(let _0x4f7b2b=0x0;_0x4f7b2b<_0x3326ee[_0x19f19b]['markersStart']['length'];_0x4f7b2b++){const _0x55a5c1=_0x3326ee[_0x19f19b]['markersStart'][_0x4f7b2b];if(!_0x2531b3['has'](_0x55a5c1))continue;const {group:_0x3ecf17,type:_0x47405d,authorId:_0x35856d}=_0x58c6a8(_0x55a5c1);'revision-suggestion'!=_0x3ecf17||'insertion'!=_0x47405d&&'deletion'!=_0x47405d||(_0x1f0706['unshift']({'type':_0x47405d,'name':_0x55a5c1,'userId':_0x35856d}),_0x3326ee[_0x19f19b]['markersStart']['splice'](_0x4f7b2b,0x1),_0x4f7b2b--);}_0x457d49(_0x3326ee[_0x19f19b]);for(let _0x17d951=0x0;_0x17d951<_0x3326ee[_0x19f19b]['markersEnd']['length'];_0x17d951++){const _0xd3bd66=_0x3326ee[_0x19f19b]['markersEnd'][_0x17d951];if(!_0x2531b3['has'](_0xd3bd66))continue;const {group:_0x5d7136,type:_0x4c794a}=_0x58c6a8(_0xd3bd66);if('revision-suggestion'!=_0x5d7136||'insertion'!=_0x4c794a&&'deletion'!=_0x4c794a)continue;_0x3326ee[_0x19f19b]['markersEnd']['splice'](_0x17d951,0x1),_0x17d951--;const _0x427017=_0x1f0706['findIndex'](_0x17d49e=>_0x17d49e['name']==_0xd3bd66);_0x427017>-0x1&&_0x1f0706['splice'](_0x427017,0x1);}}function _0x58c6a8(_0x3918a8){const _0x42093f=_0x3918a8['split'](':');return{'group':_0x42093f[0x0],'type':_0x42093f[0x1],'subType':_0x42093f['length']>=0x5?_0x42093f[0x2]:null,'id':_0x42093f['length']<0x5?_0x42093f[0x2]:_0x42093f[0x3],'authorId':_0x42093f['length']<0x5?_0x42093f[0x3]:_0x42093f[0x4],'markerCount':0x6==_0x42093f['length']?_0x42093f[0x5]:null};}function _0x457d49(_0x1f21fc){for(let _0x111de8=0x0;_0x111de8<_0x1f0706['length'];_0x111de8++){if(_0x1f21fc['isAdded']&&'insertion'==_0x1f0706[_0x111de8]['type'])return _0x1f21fc['isAddSuggestion']=_0x1f0706[_0x111de8],void delete _0x1f21fc['isAdded'];if(!_0x1f21fc['isAdded']&&!_0x1f21fc['isRemoved']&&'deletion'==_0x1f0706[_0x111de8]['type'])return void(_0x1f21fc['isRemoveSuggestion']=_0x1f0706[_0x111de8]);}}}['_setDistance'](_0x576159,_0x4cc2ed){let _0x4caba6=0x0,_0x5243b6=!0x1;const _0x2c0dbe=new Map();for(const _0x34da24 of _0x576159)_0x34da24[_0x4cc2ed]?_0x5243b6&&(_0x4caba6++,_0x5243b6=!0x1):(_0x4caba6++,_0x5243b6=!0x0),_0x2c0dbe['set'](_0x34da24['id'],_0x4caba6);for(let _0x48174c=0x0;_0x48174c<_0x576159['length'];_0x48174c++){if('isRemoved'==_0x4cc2ed&&_0x576159[_0x48174c]['isAdded']||'isAdded'==_0x4cc2ed&&_0x576159[_0x48174c]['isRemoved'])continue;if('text'==_0x576159[_0x48174c]['type']){_0x576159[_0x48174c]['distance']=0x0;continue;}const _0x4ad56a=_0x2c0dbe['get'](_0x576159[_0x48174c]['pairId']),_0x42f8ca=_0x2c0dbe['get'](_0x576159[_0x48174c]['id']);_0x576159[_0x48174c]['distance']=_0x4ad56a-_0x42f8ca;}}['_getRevisionsRange'](_0x4fd1ab,_0x8d2ba3,_0x5b5fca=!0x1){const _0x5b23fc=[];let _0x33ade2=this['repository']['getIndex'](_0x4fd1ab),_0x2c14f1=this['repository']['getIndex'](_0x8d2ba3);for(-0x1==_0x2c14f1&&(_0x2c14f1=this['repository']['_revisions']['length'],_0x5b5fca=!0x1);_0x33ade2<_0x2c14f1;)_0x5b23fc['push'](this['repository']['getRevision'](_0x33ade2)),_0x33ade2++;return _0x5b5fca&&_0x5b23fc['push'](this['repository']['getRevision'](_0x33ade2)),_0x5b23fc;}['_threeWayMerge'](_0x4b9b83,_0x13216a,_0x1a33f5,_0x3b9294){const _0x53888c=this['editor']['model']['schema'];let _0x65b0c0=_0x13216a;for(;_0x4b9b83[_0x65b0c0]&&_0x4b9b83[_0x65b0c0]['isAdded'];)_0x65b0c0++;let _0x72c37=_0x3b9294;for(;_0x1a33f5[_0x72c37]&&_0x1a33f5[_0x72c37]['isRemoved'];)_0x72c37++;_0x75a21f(_0x4b9b83,_0x13216a,_0x65b0c0),_0x75a21f(_0x1a33f5,_0x3b9294,_0x72c37);const _0x29f406=_0x1a33f5['slice'](_0x3b9294,_0x72c37)['concat'](_0x4b9b83['slice'](_0x13216a,_0x65b0c0));return _0x29f406['sort']((_0x43af65,_0x2cec31)=>_0x43af65['side']!=_0x2cec31['side']?_0x43af65['side']-_0x2cec31['side']:_0x43af65['level']!=_0x2cec31['level']?_0x43af65['level']-_0x2cec31['level']:_0x43af65['distance']!=_0x2cec31['distance']?_0x2cec31['distance']-_0x43af65['distance']:!!_0x43af65['isAdded']!=!!_0x2cec31['isAdded']?-0x1==_0x43af65['side']||0x0==_0x43af65['side']?_0x43af65['isAdded']?-0x1:0x1:_0x43af65['isAdded']?0x1:-0x1:_0x43af65['index']-_0x2cec31['index']),{'commonTape':_0x29f406,'iEnd':_0x65b0c0,'jEnd':_0x72c37};function _0x75a21f(_0x3d66c7,_0x20dfa0,_0x58f844){let _0x465a6a=-0x1,_0x2514a8=Number['POSITIVE_INFINITY'],_0x7863bc=!0x0;for(let _0x16306b=_0x20dfa0;_0x16306b<_0x58f844;_0x16306b++)if(_0x53888c['isInline'](_0x3d66c7[_0x16306b]['item'])||(_0x7863bc=!0x1),_0x3d66c7[_0x16306b]['item']['startIndex']<_0x20dfa0&&(_0x465a6a=_0x16306b),_0x3d66c7[_0x16306b]['item']['endIndex']>=_0x58f844){_0x2514a8=_0x16306b;break;}_0x7863bc&&(_0x465a6a=_0x58f844-0x1);for(let _0x57158f=_0x20dfa0;_0x57158f<_0x58f844;_0x57158f++)_0x3d66c7[_0x57158f]['side']=_0x57158f<=_0x465a6a?-0x1:_0x57158f<_0x2514a8?0x0:0x1,_0x3d66c7[_0x57158f]['index']=_0x57158f;let _0x4ad6fb=0x0;for(let _0x20e2ae=_0x20dfa0;_0x20e2ae<=_0x465a6a;_0x20e2ae++)0x0==_0x3d66c7[_0x20e2ae]['distance']?_0x3d66c7[_0x20e2ae]['level']=_0x4ad6fb:(_0x4ad6fb++,_0x3d66c7[_0x20e2ae]['level']=_0x4ad6fb,_0x4ad6fb++);for(let _0x31f0df=_0x20dfa0;_0x31f0df<_0x58f844;_0x31f0df++)0x0==_0x3d66c7[_0x31f0df]['side']&&(_0x3d66c7[_0x31f0df]['level']=_0x4ad6fb);_0x4ad6fb=0x0;for(let _0x545d95=_0x58f844-0x1;_0x545d95>=_0x2514a8;_0x545d95--)0x0==_0x3d66c7[_0x545d95]['distance']?_0x3d66c7[_0x545d95]['level']=_0x4ad6fb:(_0x4ad6fb--,_0x3d66c7[_0x545d95]['level']=_0x4ad6fb,_0x4ad6fb--);}}['_fixObsoleteTags'](_0x32b0a2){const _0x2aeee9=new Map(),_0x2bcd77=this['editor']['model']['schema'];for(let _0x17c604=0x1;_0x17c604<_0x32b0a2['length'];_0x17c604++){let _0x5e511e,_0x11aa8d,_0x410960;const _0x460ddc=_0x32b0a2[_0x17c604],_0x113be4=_0x32b0a2[_0x17c604-0x1];if('text'==_0x460ddc['type'])continue;if(_0x460ddc['type']!=_0x113be4['type'])continue;if(!_0x2bcd77['isBlock'](_0x113be4['item'])||_0x2bcd77['isLimit'](_0x113be4['item']))continue;if(!_0x2bcd77['isBlock'](_0x460ddc['item'])||_0x2bcd77['isLimit'](_0x460ddc['item']))continue;if((_0x32b0a2[_0x17c604]['isAdded']||_0x32b0a2[_0x17c604]['isAddSuggestion'])&&_0x32b0a2[_0x17c604-0x1]['isRemoved'])_0x5e511e=_0x32b0a2[_0x17c604],_0x11aa8d=_0x32b0a2[_0x17c604-0x1],_0x410960=_0x17c604-0x1;else{if(!_0x32b0a2[_0x17c604]['isRemoved']||!_0x32b0a2[_0x17c604-0x1]['isAdded']&&!_0x32b0a2[_0x17c604-0x1]['isAddSuggestion'])continue;_0x5e511e=_0x32b0a2[_0x17c604-0x1],_0x11aa8d=_0x32b0a2[_0x17c604],_0x410960=_0x17c604;}const _0x5a422c=_0x5e511e['level']==_0x11aa8d['level'],_0x20e586=Math['abs'](_0x5e511e['level'])<Math['abs'](_0x11aa8d['level'])&&0x0==_0x11aa8d['distance'];(_0x5a422c||_0x20e586)&&(_0x2aeee9['set'](_0x11aa8d['id'],_0x5e511e['id']),_0x32b0a2['splice'](_0x410960,0x1),_0x17c604--,_0x5e511e['isAdded']=!0x1);}for(let _0x1c9e48=0x0;_0x1c9e48<_0x32b0a2['length'];_0x1c9e48++)_0x2aeee9['has'](_0x32b0a2[_0x1c9e48]['pairId'])&&(_0x32b0a2[_0x1c9e48]['pairId']=_0x2aeee9['get'](_0x32b0a2[_0x1c9e48]['pairId']));}['_removeMissingPairs'](_0x502481){const _0x133657=new Set(_0x502481['map'](_0x4819ea=>_0x4819ea['id']));for(let _0x2d1e8e=0x0;_0x2d1e8e<_0x502481['length'];_0x2d1e8e++)_0x133657['has'](_0x502481[_0x2d1e8e]['pairId'])||0x0==_0x502481[_0x2d1e8e]['distance']||(_0x502481[_0x2d1e8e]['isIncorrect']=!0x0);return _0x502481['filter'](_0x323ad8=>!_0x323ad8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2a440d){const _0x131821=new Set();for(let _0x44fe19=0x0;_0x44fe19<_0x2a440d['length'];_0x44fe19++){if(_0x131821['has'](_0x2a440d[_0x44fe19]['id'])&&_0x2a440d[_0x44fe19]['isRemoved']&&(_0x2a440d[_0x44fe19]['isIncorrect']=!0x0),_0x2a440d[_0x44fe19]['isIncorrect'])continue;if(0x0==_0x2a440d[_0x44fe19]['distance'])continue;if('elementStart'!=_0x2a440d[_0x44fe19]['type'])continue;if(null==_0x2a440d[_0x44fe19]['pairId'])continue;let _0x4ced61=_0x44fe19+0x1,_0x2ab9b0=0x0;for(;_0x2a440d[_0x4ced61]['id']!=_0x2a440d[_0x44fe19]['pairId'];)'elementStart'==_0x2a440d[_0x4ced61]['type']?_0x2ab9b0++:'elementEnd'==_0x2a440d[_0x4ced61]['type']&&_0x2ab9b0--,_0x4ced61++;if(0x0!=_0x2ab9b0){if(_0x2a440d[_0x44fe19]['isRemoved'])_0x2a440d[_0x44fe19]['isIncorrect']=!0x0;else{for(;_0x4ced61!=_0x44fe19;)_0x2a440d[_0x4ced61]['isRemoved']&&0x0!=_0x2a440d[_0x4ced61]['distance']&&(_0x2a440d[_0x4ced61]['isIncorrect']=!0x0,_0x131821['add'](_0x2a440d[_0x4ced61]['pairId'])),_0x4ced61--;}}}return _0x2a440d['filter'](_0x459a16=>!_0x459a16['isIncorrect']);}['_removeUnsupportedChanges'](_0x498fa5){const _0x4f53f1=this['editor']['model']['schema'];for(let _0xc8e4a2=0x0;_0xc8e4a2<_0x498fa5['length'];_0xc8e4a2++){if(!(_0x498fa5[_0xc8e4a2]['isAdded']||_0x498fa5[_0xc8e4a2]['isAddSuggestion']||_0x498fa5[_0xc8e4a2]['isRemoved']||_0x498fa5[_0xc8e4a2]['isRemoveSuggestion']))continue;if(0x0==_0x498fa5[_0xc8e4a2]['distance'])continue;const _0x41bf79=_0x498fa5[_0xc8e4a2]['item'];_0x4f53f1['isBlock'](_0x41bf79)||_0x4f53f1['isLimit'](_0x41bf79)||(_0x498fa5[_0xc8e4a2]['isAdded']&&delete _0x498fa5[_0xc8e4a2]['isAdded'],_0x498fa5[_0xc8e4a2]['isAddSuggestion']&&delete _0x498fa5[_0xc8e4a2]['isAddSuggestion'],_0x498fa5[_0xc8e4a2]['isRemoveSuggestion']&&delete _0x498fa5[_0xc8e4a2]['isRemoveSuggestion'],_0x498fa5[_0xc8e4a2]['isRemoved']&&(_0x498fa5[_0xc8e4a2]['isIncorrect']=!0x0));}return _0x498fa5['filter'](_0x1a24fc=>!_0x1a24fc['isIncorrect']);}['_makeModelFromTape'](_0x537955,_0x36f885,_0x108bec){const _0xa2d451=new gt(),_0x199653=[],_0x2c7579=new Map(),_0x135d01=this['editor']['model'],_0x11c630=_0x135d01['schema'],_0x1960d4=[_0xa2d451],_0x700481={},_0x3a974d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x92ebf5=null;const _0xf281cf=[0x0];for(let _0x3c9ceb=0x0;_0x3c9ceb<_0x537955['length'];_0x3c9ceb++)if('elementStart'===_0x537955[_0x3c9ceb]['type']){_0x537955[_0x3c9ceb]['previousPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf);const _0x200e4d=new ut(_0x537955[_0x3c9ceb]['item']['name'],_0x537955[_0x3c9ceb]['item']['getAttributes']());_0x1960d4[0x0]['_appendChild'](_0x200e4d),_0xf281cf['push'](0x0),_0x1960d4['unshift'](_0x200e4d),_0x537955[_0x3c9ceb]['nextPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf);}else'elementEnd'===_0x537955[_0x3c9ceb]['type']?(_0x1960d4['shift'](),_0x537955[_0x3c9ceb]['previousPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf),_0xf281cf['pop'](),_0xf281cf[_0xf281cf['length']-0x1]++,_0x537955[_0x3c9ceb]['nextPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf)):(_0x537955[_0x3c9ceb]['previousPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf),_0x92ebf5?_0x92ebf5['_data']+=_0x537955[_0x3c9ceb]['item']['data']:_0x92ebf5=new mt(_0x537955[_0x3c9ceb]['item']['data'],_0x537955[_0x3c9ceb]['item']['getAttributes']()),_0x537955[_0x3c9ceb+0x1]&&'text'===_0x537955[_0x3c9ceb+0x1]['type']&&_0x472f87(_0x92ebf5,_0x537955[_0x3c9ceb+0x1]['item'])||(_0x1960d4[0x0]['_appendChild'](_0x92ebf5),_0x92ebf5=null),_0xf281cf[_0xf281cf['length']-0x1]+=_0x537955[_0x3c9ceb]['item']['offsetSize'],_0x537955[_0x3c9ceb]['nextPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf));for(let _0x51aad8=0x0;_0x51aad8<_0x537955['length'];_0x51aad8++){const _0x41ab21=_0x537955[_0x51aad8]['previousPosition'],_0x40483e=_0x537955[_0x51aad8]['nextPosition'];for(const _0x13394b of _0x537955[_0x51aad8]['markersStart'])_0x2c7579['set'](_0x13394b,{'start':_0x41ab21,'end':null});_0x13fa88('isRemoveSuggestion',_0x51aad8,_0x41ab21,_0x40483e),_0x13fa88('isAddSuggestion',_0x51aad8,_0x41ab21,_0x40483e),_0x13fa88('isRemoved',_0x51aad8,_0x41ab21,_0x40483e),_0x13fa88('isAdded',_0x51aad8,_0x41ab21,_0x40483e);for(const _0xab7ae4 of _0x537955[_0x51aad8]['markersEnd']){_0x2c7579['get'](_0xab7ae4)['end']=_0x40483e;}}for(const [_0x4bd553,_0x482fe2]of _0x2c7579){const _0x11dfd1=this['editor']['model']['createRange'](_0x482fe2['start'],_0x482fe2['end']);_0xa2d451['markers']['set'](_0x4bd553,_0x11dfd1);}return _0x199653['sort']((_0x5444a9,_0x348bed)=>{const _0x1a1d35=_0xa2d451['markers']['get']('revision:'+_0x5444a9['id']),_0x22f054=_0xa2d451['markers']['get']('revision:'+_0x348bed['id']);return _0x1a1d35['start']['isBefore'](_0x22f054['start'])?-0x1:_0x1a1d35['start']['isAfter'](_0x22f054['start'])?0x1:_0x1a1d35['end']['isBefore'](_0x22f054['end'])?-0x1:_0x1a1d35['end']['isAfter'](_0x22f054['end'])?0x1:'add'===_0x5444a9['type']?-0x1:0x1;}),{'root':_0xa2d451,'changes':_0x199653};function _0x13fa88(_0x2058a4,_0x5364ea,_0x30cc06,_0xc67e8d){const _0x485638=!!_0x537955[_0x5364ea][_0x2058a4],_0x7bd1ed=_0x485638?_0x537955[_0x5364ea][_0x2058a4]['userId']:null,_0x3ec2da=_0x5364ea===_0x537955['length']-0x1,_0x169810=_0x3a974d[_0x2058a4][0x0],_0x321f12=_0x11c630['isObject'](_0x537955[_0x5364ea]['item']);!_0x700481[_0x2058a4]&&_0x485638?_0x700481[_0x2058a4]={'start':_0x30cc06,'tapeItem':_0x537955[_0x5364ea],'userId':_0x7bd1ed,'type':_0x2058a4}:_0x700481[_0x2058a4]&&!_0x485638?(_0x700481[_0x2058a4]['end']=_0x30cc06,_0x33543d(_0x700481[_0x2058a4]),_0x700481[_0x2058a4]=null):_0x700481[_0x2058a4]&&_0x485638&&_0x700481[_0x2058a4]['userId']!==_0x7bd1ed&&(_0x700481[_0x2058a4]['end']=_0x30cc06,_0x169810&&_0x169810['userId']===_0x700481[_0x2058a4]['userId']||_0x33543d(_0x700481[_0x2058a4]),_0x700481[_0x2058a4]={'start':_0x30cc06,'tapeItem':_0x537955[_0x5364ea],'userId':_0x7bd1ed,'type':_0x2058a4}),_0x700481[_0x2058a4]&&_0x321f12&&('elementStart'!==_0x537955[_0x5364ea]['type']||_0x169810&&_0x169810['userId']===_0x7bd1ed||_0x3a974d[_0x2058a4]['unshift']({'userId':_0x7bd1ed,'object':_0x537955[_0x5364ea]['item'],'change':_0x700481[_0x2058a4]}),'elementEnd'===_0x537955[_0x5364ea]['type']&&_0x169810&&_0x169810['object']===_0x537955[_0x5364ea]['item']&&(_0x3a974d[_0x2058a4]['shift'](),_0x700481[_0x2058a4]=_0x169810['change'])),_0x700481[_0x2058a4]&&_0x3ec2da&&(_0x700481[_0x2058a4]['end']=_0xc67e8d,_0x33543d(_0x700481[_0x2058a4]),_0x700481[_0x2058a4]=null);}function _0x33543d({start:_0x1138e8,end:_0x156be5,tapeItem:_0x1b7cf8,userId:_0x1be429,type:_0x33711e}){const _0x5dd079=_0x1b7cf8['item'],_0x796fd2=_0x135d01['schema']['isBlock'](_0x5dd079)&&!_0x135d01['schema']['isLimit'](_0x5dd079),_0x1d5c9f=_0x1138e8['nodeAfter']==_0x156be5['parent']&&_0x156be5['isAtStart'];if(_0x796fd2&&_0x1d5c9f)return;const _0x2a03b3=_0x135d01['createRange'](_0x1138e8,_0x156be5),_0x3124d3=_0x36f885['get'](_0x1be429),_0x524752=new r({'author':_0x3124d3,'type':'isAdded'==_0x33711e||'isAddSuggestion'==_0x33711e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33711e||'isRemoveSuggestion'==_0x33711e},'createdAt':new Date(),'rootName':_0x108bec});_0x199653['push'](_0x524752),_0xa2d451['markers']['set']('revision:'+_0x524752['id'],_0x2a03b3);}function _0x472f87(_0x13ee24,_0x1d846c){const _0x246c16=_0x13ee24['getAttributes'](),_0x13915e=_0x1d846c['getAttributes']();for(const _0x4d639e of _0x246c16){if(_0x4d639e[0x1]!==_0x1d846c['getAttribute'](_0x4d639e[0x0]))return!0x1;_0x13915e['next']();}return _0x13915e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x59c9e4=>{const _0x1ad07c=_0x59c9e4['markerName']['split'](':')[0x1],_0x4c8204=this['_getChangeFromId'](_0x1ad07c);if(!_0x4c8204)return null;const _0x1ff159='add'==_0x4c8204['type']?'insertion':'deletion',_0x3acd5c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1ff159];return _0x4c8204['data']['isSuggestion']&&_0x3acd5c['push']('ck-suggestion-marker-'+_0x1ff159+'-new'),this['activeChange']==_0x4c8204&&_0x3acd5c['push']('ck-suggestion-marker--active'),{'classes':_0x3acd5c,'attributes':{'data-change-id':_0x1ad07c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x24eeb0=>{_0x24eeb0['on']('element:pre',(_0x46118f,_0xbc6084,_0x1ac4ac)=>{const _0x3b4356=_0xbc6084['viewItem']['getChild'](0x0);if(!_0x3b4356||!_0x3b4356['is']('element','code'))return;if(!_0x1ac4ac['consumable']['consume'](_0x3b4356,{'attributes':['vid_start','vid_end']}))return;const _0x1fbef8=_0xbc6084['modelRange']['start']['nodeAfter'];_0x1ac4ac['writer']['setAttribute']('vid_start',_0x3b4356['getAttribute']('vid_start'),_0x1fbef8),_0x1ac4ac['writer']['setAttribute']('vid_end',_0x3b4356['getAttribute']('vid_end'),_0x1fbef8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1d665d=>{_0x1d665d['on']('element',(_0x125cc0,_0x44958c,_0x1b31ad)=>{if(!_0x1b31ad['consumable']['consume'](_0x44958c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x44958c['modelRange']['isCollapsed'])return;const _0x1adbd1=_0x44958c['modelRange']['start']['nodeAfter'];_0x1adbd1['hasAttribute']('vid_start')||_0x1adbd1['hasAttribute']('vid')||(_0x1b31ad['writer']['setAttribute']('vid_start',_0x44958c['viewItem']['getAttribute']('vid_start'),_0x1adbd1),_0x1b31ad['writer']['setAttribute']('vid_end',_0x44958c['viewItem']['getAttribute']('vid_end'),_0x1adbd1));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x43ff80=>_0x43ff80['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3e7cc8,[,_0x1d398a])=>{['vid_start','vid_end','vid']['includes'](_0x1d398a)&&(_0x3e7cc8['return']=!0x0,_0x3e7cc8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4f187f=>{_0x4f187f['on']('attribute:vid',(_0x55ebcb,_0xa27156,_0x39cca8)=>{if('\x20'!=_0xa27156['item']['data']||_0xa27156['item']['parent']['maxOffset']>0x1)return;if(!_0x39cca8['consumable']['consume'](_0xa27156['item'],_0x55ebcb['name']))return;const _0x56e617=_0x39cca8['writer'],_0x302438=_0x39cca8['mapper']['toViewRange'](_0xa27156['range']);_0x56e617['wrap'](_0x302438,_0x56e617['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2ee7dc){const _0x3d815d=_0x2ee7dc['plugins']['get']('RevisionViewer');return(_0x73edc2,_0x5017b2,_0x3c6a99)=>{const _0x125b91=_0x5017b2['markerName']['split'](':')[0x1],_0x390b20=_0x3d815d['_getChangeFromId'](_0x125b91);if(!_0x390b20)return null;const _0x5880eb='add'==_0x390b20['type']?'split':'merge';if(!_0x3c6a99['consumable']['test'](_0x5017b2['markerRange'],_0x73edc2['name']))return;const _0xdc1fa7=_0x5017b2['markerRange']['getWalker'](),_0x55b342=_0x5017b2['markerRange']['start'],_0x3c9cd2=_0x2ee7dc['model']['schema'];let _0x3ca213=null,_0x5e7973=null,_0x2ab943=!0x1,_0x364e94=!0x1;for(const _0x2bd958 of _0xdc1fa7){const _0x4a30a6=_0x2bd958['item'];_0x2ab943=_0x2ab943||_0x3c9cd2['isContent'](_0x4a30a6);const _0x5cc97c=_0x3c6a99['mapper']['toViewElement'](_0x4a30a6);if(_0x5cc97c&&_0x5cc97c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2bd958['type']&&(_0x3c9cd2['isBlock'](_0x4a30a6)&&!_0x3c9cd2['isLimit'](_0x4a30a6)&&(_0x4a30a6['nextSibling']||_0x55b342['isAtEnd']?_0x3ca213&&_0x3ca213['parent']==_0x4a30a6||(_0x3ca213=_0x4a30a6,_0x5028e8(_0x2bd958['previousPosition']),_0x364e94=!0x0):_0x5e7973=_0x5e7973||_0x2bd958['previousPosition']));}function _0x5028e8(_0x2628a0){const _0x4ebf1b=_0x3c6a99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5880eb}),_0x44b9d7=_0x3c6a99['mapper']['toViewPosition'](_0x2628a0);_0x390b20['data']['isSuggestion']&&_0x3c6a99['writer']['addClass']('ck-suggestion-marker-'+_0x5880eb+'-new',_0x4ebf1b),_0x3d815d['activeChange']==_0x390b20&&_0x3c6a99['writer']['addClass']('ck-suggestion-marker--active',_0x4ebf1b),_0x3c6a99['writer']['insert'](_0x44b9d7,_0x4ebf1b),_0x3c6a99['mapper']['bindElementToMarker'](_0x4ebf1b,_0x5017b2['markerName']);}_0x2ab943||_0x364e94||!_0x5e7973||_0x5028e8(_0x5e7973);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5a7136,_0x2bf7bc,_0x37a526)=>{const _0x37dfe0=_0x37a526['mapper']['markerNameToElements'](_0x2bf7bc['markerName']);if(_0x37dfe0){for(const _0x145c34 of _0x37dfe0)(_0x145c34['hasClass']('ck-suggestion-marker-split')||_0x145c34['hasClass']('ck-suggestion-marker-merge'))&&(_0x37a526['mapper']['unbindElementFromMarkerName'](_0x145c34,_0x2bf7bc['markerName']),_0x37a526['writer']['remove'](_0x145c34));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4334d8,_0x3cd2e4,_0x130bf5)=>{const _0x98d2b9=_0x3cd2e4['markerName']['split'](':')[0x1],_0x133094=this['_getChangeFromId'](_0x98d2b9);if(!_0x133094)return null;const _0x4c71a9='add'==_0x133094['type']?'split':'merge';if(_0x130bf5['consumable']['test'](_0x3cd2e4['markerRange'],_0x4334d8['name']))for(const _0x169cb9 of _0x3cd2e4['markerRange']['getItems']()){if(!_0x169cb9['is']('element','softBreak'))continue;const _0x5407e9=_0x130bf5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c71a9}),_0x293871=_0x130bf5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x169cb9));_0x133094['data']['isSuggestion']&&_0x130bf5['writer']['addClass']('ck-suggestion-marker-'+_0x4c71a9+'-new',_0x5407e9),this['activeChange']==_0x133094&&_0x130bf5['writer']['addClass']('ck-suggestion-marker--active',_0x5407e9),_0x130bf5['writer']['insert'](_0x293871,_0x5407e9),_0x130bf5['mapper']['bindElementToMarker'](_0x5407e9,_0x3cd2e4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4173c7=>{for(const _0x30bd9d of this['editor']['model']['document']['getRootNames']()){const _0x20472a=this['editor']['model']['document']['getRoot'](_0x30bd9d),_0x289045=this['editor']['editing']['view']['document']['getRoot'](_0x30bd9d);if(_0x289045){const _0x209c82=_0x20472a['getAttribute']('revisionHistoryAttachChange');if(_0x4173c7['removeAttribute']('data-change-id',_0x289045),_0x4173c7['removeClass']('ck-revision-history-root-add',_0x289045),_0x4173c7['removeClass']('ck-revision-history-root-remove',_0x289045),_0x4173c7['removeClass']('ck-revision-history-root--active',_0x289045),_0x209c82){const _0x217a85=this['_getChangeFromId'](_0x209c82);if(!_0x217a85)return null;_0x4173c7['setAttribute']('data-change-id',_0x209c82,_0x289045),_0x4173c7['addClass']('ck-revision-history-root-'+_0x217a85['type'],_0x289045),this['activeChange']==_0x217a85&&_0x4173c7['addClass']('ck-revision-history-root--active',_0x289045);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x47f700=>'revision-comment:'+_0x47f700,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4259d2=>'revision-suggestion:'+_0x4259d2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x158b46=>({'name':'suggestion:'+_0x158b46,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2b5347=>{const _0x4efa79=_0x2b5347['markerName']['split'](':')[0x1];return'insertion'!=_0x4efa79&&'deletion'!=_0x4efa79?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4efa79]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4446ba,_0x9f039e,_0x30aea3)=>{const _0x5232f8=_0x30aea3['mapper']['markerNameToElements'](_0x9f039e['markerName']);if(_0x5232f8){for(const _0x3ffa9a of _0x5232f8)_0x3ffa9a['is']('uiElement')&&(_0x30aea3['mapper']['unbindElementFromMarkerName'](_0x3ffa9a,_0x9f039e['markerName']),_0x30aea3['writer']['remove'](_0x3ffa9a));}},{'priority':'high'});}['_getChangeFromId'](_0x45534d){return this['_changeIdToChange']['get'](_0x45534d);}['_getViewForChange'](_0x503475){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x503475),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1c49f5,_0x3f987a,_0x5c06e2,_0x2ac6dc)=>{_0x2ac6dc&&this['_balloon']['remove'](_0x2ac6dc),_0x5c06e2&&(this['_balloon']['add']({'view':_0x5c06e2,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2cf06d=this['editor']['editing'],_0x5a84e8=this['_getChangeFromId'](_0x5c06e2['changeId']);let _0x3da5ed;if(_0x5a84e8['data']['isOnRoot']){const _0x2fdc94=_0x2cf06d['view']['getDomRoot'](_0x5a84e8['rootName']);_0x3da5ed=Array['from'](_0x2fdc94['getClientRects']());}else{const _0xba9fa4=this['editor']['model']['markers']['get']('revision:'+_0x5c06e2['changeId']);_0x3da5ed=Array['from'](_0x2cf06d['mapper']['markerNameToElements'](_0xba9fa4['name']))['map'](_0x208ce1=>_0x2cf06d['view']['domConverter']['mapViewToDom'](_0x208ce1))['map'](_0x13e118=>Array['from'](_0x13e118['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3da5ed[0x0];return _0x3da5ed['find'](_0x56da1d=>_0x56da1d['top']-0x3<=this['_activeViewTarget']['y']&&_0x56da1d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x56da1d['left']-0x3<=this['_activeViewTarget']['x']&&_0x56da1d['right']+0x3>=this['_activeViewTarget']['x'])||_0x3da5ed[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x52fa9b,_0x2035a4,_0x33a974,_0x4795f3)=>{this['activeView']=_0x33a974?this['_getViewForChange'](_0x33a974):null,this['editor']['model']['change'](()=>{const _0x5410e5=this['editor']['editing'];_0x4795f3&&(_0x4795f3['data']['isOnRoot']?_0x5410e5['view']['change'](_0x5089c1=>{_0x5089c1['removeClass']('ck-revision-history-root--active',_0x5410e5['view']['document']['getRoot'](_0x4795f3['rootName']));}):_0x5410e5['reconvertMarker']('revision:'+_0x4795f3['id'])),_0x33a974&&(_0x33a974['data']['isOnRoot']?_0x5410e5['view']['change'](_0x202667=>{_0x202667['addClass']('ck-revision-history-root--active',_0x5410e5['view']['document']['getRoot'](_0x33a974['rootName']));}):_0x5410e5['reconvertMarker']('revision:'+_0x33a974['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4725f6,_0x4d89f0)=>{if(this['activeChange'])return;const _0x11f49f=this['_findChangeIdFromDomTarget'](_0x4d89f0['target']),_0x2171bc=this['_changeIdToChange']['get'](_0x11f49f);_0x2171bc?(this['_activeViewTarget']={'x':_0x4d89f0['domEvent']['x'],'y':_0x4d89f0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2171bc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x16634e,_0x272932)=>{const _0x2a37e1=this['_findChangeIdFromDomTarget'](_0x272932['target']),_0x470cae=this['_changeIdToChange']['get'](_0x2a37e1);_0x470cae?(this['_activeViewTarget']={'x':_0x272932['domEvent']['x'],'y':_0x272932['domEvent']['y']},_0x470cae===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x470cae):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x52afad){do{const _0x258af0=_0x52afad['getAttribute']('data-change-id');if(_0x258af0)return _0x258af0;_0x52afad=_0x52afad['parent'];}while(_0x52afad);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x576321=>{for(const _0x13a697 of this['editor']['model']['markers'])_0x576321['removeMarker'](_0x13a697);});}}function Z(_0x1b4c6d,_0x7637e8){return(_0xfb002d,_0x3418d3,_0x33d39f)=>{if(!_0x33d39f['consumable']['test'](_0x3418d3['markerRange'],_0xfb002d['name']))return;const _0x573047=_0x3418d3['markerRange']['getWalker'](),_0x2185f4=_0x3418d3['markerRange']['start'],_0x561062=_0x1b4c6d['model']['schema'];let _0x1cf9da=null,_0x3937f0=null,_0x2f0102=!0x1,_0x52f47b=!0x1;for(const _0x591aae of _0x573047){const _0x34a2f7=_0x591aae['item'];_0x2f0102=_0x2f0102||_0x561062['isContent'](_0x34a2f7);const _0x5aed5d=_0x33d39f['mapper']['toViewElement'](_0x34a2f7);if(_0x5aed5d&&_0x5aed5d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x591aae['type']&&(_0x561062['isBlock'](_0x34a2f7)&&!_0x561062['isLimit'](_0x34a2f7)&&(_0x34a2f7['nextSibling']||_0x2185f4['isAtEnd']?_0x1cf9da&&_0x1cf9da['parent']==_0x34a2f7||(_0x1cf9da=_0x34a2f7,_0x1c7c7c(_0x591aae['previousPosition']),_0x52f47b=!0x0):_0x3937f0=_0x3937f0||_0x591aae['previousPosition']));}function _0x1c7c7c(_0x297597){const _0x4b7f9c=_0x33d39f['mapper']['toViewPosition'](_0x297597),_0x34d856=_0x33d39f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x7637e8});_0x33d39f['writer']['insert'](_0x4b7f9c,_0x34d856),_0x33d39f['mapper']['bindElementToMarker'](_0x34d856,_0x3418d3['markerName']);}_0x2f0102||_0x52f47b||!_0x3937f0||_0x1c7c7c(_0x3937f0);};}class wt extends _0x27c93a{constructor(_0x209c57){super(_0x209c57);const _0x239e64=_0x209c57['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x239e64,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x239e64,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5cfc5e=this['editor'],_0x40d3ab=_0x5cfc5e['plugins']['get'](d),_0x3004fe=_0x40d3ab['isReady']?_0x40d3ab['diff']['newRevisionId']:null;_0x5cfc5e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3004fe);}['refresh'](){const {isReady:_0x496527,isEnabled:_0x1e9348,repository:_0x3fe34b,diff:_0x410989}=this['editor']['plugins']['get'](d),_0x15ff94=_0x410989&&_0x3fe34b['getLaterVisibleRevision'](_0x410989['newRevisionId']);this['isEnabled']=_0x496527&&_0x1e9348&&Boolean(_0x15ff94);}}class _t extends _0x27c93a{['_step'];constructor(_0x44b746,{direction:_0x3d7241}){super(_0x44b746);const _0x185595=_0x44b746['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3d7241?0x1:-0x1,this['listenTo'](_0x185595,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x185595,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x185595,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1f5e1a=this['editor'],_0xa3819f=_0x1f5e1a['plugins']['get'](d),{isNavigationMode:_0x1b2b8d,currentChangeNumber:_0x1bc213}=_0xa3819f;let _0x482971;if(_0xa3819f['activeChange']=_0x1b2b8d?_0xa3819f['diff']['changes']['get'](_0x1bc213+this['_step']):_0xa3819f['diff']['changes']['first'],_0xa3819f['activeChange']['data']['isOnRoot'])_0x482971=_0x1f5e1a['editing']['view']['getDomRoot'](_0xa3819f['activeChange']['rootName']);else{const _0x1e78b6=_0x1f5e1a['model']['markers']['get']('revision:'+_0xa3819f['activeChange']['id']);_0x482971=_0x43daf5(_0x1f5e1a['editing'],_0x1e78b6);}_0x4675b1({'target':_0x482971,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xdbb9f1,currentChangeNumber:_0x447daa,numberOfChanges:_0x23fe66,isReady:_0x473b51,isEnabled:_0x1994ae}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1994ae&&_0x473b51&&_0x23fe66)&&(!_0xdbb9f1||(0x1===this['_step']?_0x447daa<_0x23fe66-0x1:_0x447daa>0x0));}}class di extends ts{constructor(_0x2884f4){super(_0x2884f4);const _0x4aa26e=this['bindTemplate'],_0x56e7d3=new te(_0x2884f4),_0x37e11f=new te(_0x2884f4);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x3094b4,_0x599b3a)=>_0x3094b4&&_0x599b3a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5196b6,_0x46e29b,_0x1e5218,_0x118f8e)=>{if(!_0x5196b6)return m(_0x2884f4,'Loading...');if(!_0x1e5218)return m(_0x2884f4,'No\x20changes');const _0x2574ff=m(_0x2884f4,'NUMBER_OF_CHANGES',_0x1e5218);return _0x118f8e?m(_0x2884f4,'X_OF_Y_CHANGES',[_0x46e29b+0x1,_0x1e5218]):_0x2574ff;}),_0x56e7d3['set']({'label':m(_0x2884f4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x37c493}),_0x37e11f['set']({'label':m(_0x2884f4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x14e1f8}),_0x56e7d3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x37e11f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x56e7d3['on']('execute',()=>this['fire']('execute','backward')),_0x37e11f['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x4aa26e['if']('_isStatusLabelVisible','ck-hidden',_0x2fcb7d=>!_0x2fcb7d)]},'children':[{'text':_0x4aa26e['to']('isNavigationMode',_0xc4acb1=>_0xc4acb1?m(_0x2884f4,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2884f4,'Total')+':\x20')}]},{'text':_0x4aa26e['to']('_statusText')}]},new _0x332562(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x56e7d3,_0x37e11f]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x1947b9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x99e81b=this['editor']['editing']['view'];_0x99e81b['change'](_0x2b09cc=>{for(const _0x5aa5dd of _0x99e81b['document']['roots'])_0x2b09cc['addClass'](le,_0x5aa5dd);});}['hide'](){const _0x915a88=this['editor']['editing']['view'];_0x915a88['change'](_0x3839c7=>{for(const _0x805845 of _0x915a88['document']['roots'])_0x3839c7['removeClass'](le,_0x805845);});}}class w extends _0x1947b9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x43c895=this['editor'],_0x37f9cc=_0x43c895['plugins']['get'](d),_0x3a282a=_0x43c895['plugins']['get'](de);_0x43c895['ui']['componentFactory']['add']('exitToEditing',_0x2d608d=>{const _0x1f2feb=new te(_0x2d608d);return _0x1f2feb['set']({'label':m(_0x2d608d,'Back\x20to\x20editing'),'icon':_0x13e63e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1f2feb,'execute',()=>{_0x43c895['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1f2feb;}),_0x43c895['ui']['componentFactory']['add']('restoreRevision',_0x2a4366=>{const _0x4ef31d=new te(_0x2a4366);return _0x4ef31d['set']({'label':m(_0x2a4366,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ef31d['bind']('isEnabled')['to'](_0x43c895['commands']['get']('restoreRevision')),this['listenTo'](_0x4ef31d,'execute',()=>_0x43c895['execute']('restoreRevision')),_0x4ef31d;}),_0x43c895['ui']['componentFactory']['add']('changesNavigation',_0x2229eb=>{const _0x24415e=new di(_0x2229eb),_0x446caf=_0x43c895['commands']['get']('showPreviousChange'),_0x5ef780=_0x43c895['commands']['get']('showNextChange');return _0x24415e['bind']('isBackwardNavigationEnabled')['to'](_0x446caf,'isEnabled'),_0x24415e['bind']('isForwardNavigationEnabled')['to'](_0x5ef780,'isEnabled'),_0x24415e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x37f9cc),this['listenTo'](_0x24415e,'execute',(_0x57449c,_0x511d8b)=>{_0x43c895['execute']('forward'===_0x511d8b?'showNextChange':'showPreviousChange');}),_0x24415e;}),_0x3a282a['show'](),_0x37f9cc['on']('change:isReady',(_0x200e60,_0x43b986,_0x3b2336)=>{_0x3b2336?_0x3a282a['hide']():_0x3a282a['show']();});}}class pt extends _0x3230b0{['_resizeObserver']=null;constructor(_0x367a3d,_0x1cf6a4){super(_0x367a3d,_0x1cf6a4);const _0x438a31=this['bindTemplate'];this['set']({'label':m(_0x367a3d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x367a3d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x438a31['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3261a0=this['fieldView']['element'];this['_tooltipString']=_0x3261a0['scrollWidth']>_0x3261a0['clientWidth']&&_0x3261a0['value']||'';}}class si extends ts{constructor(_0x28e5bf,_0x538b4b,_0x1d02c7){super(_0x28e5bf);const _0x2b4d27=new _0x33aa8f();_0x2b4d27['set']({'content':_0x48a0fb,'viewBox':'0\x200\x2011\x2010'});const _0x3e395d=['ck','ck-revision-history-sidebar__revision-author'];_0x1d02c7&&_0x3e395d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x50d1d3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x28e5bf,_0x1d02c7?'Revision\x20creator':'Revision\x20author')},'children':[_0x2b4d27,_0x538b4b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3e395d},'children':_0x50d1d3});}}function oi(_0x2b4f12,_0x590c5d){const _0x49b1e9=_0x2b4f12['bindTemplate'],_0x3cb86b=_0x2b4f12['locale'],_0x8a969b=_0x5ae326(_0x3cb86b);_0x8a969b['panelPosition']='sw';const _0x5c3b12=function(_0x1b42c0,_0x3d33fc){const _0x1598d6=function(_0x16d70d,_0x546ca1){const _0x546346=_0x16d70d['locale'],_0x2eb167={'Compare\x20against\x20selected':m(_0x546346,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x546346,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x546346,'Restore\x20this\x20revision')};return _0x546ca1['map'](_0x382fc2=>{const _0x525cc9=_0x2eb167[_0x382fc2['name']];return _0x525cc9&&_0x525cc9!==_0x382fc2['name']&&(_0x382fc2['name']=_0x525cc9),_0x382fc2;});}(_0x1b42c0,_0x3d33fc),_0x386b42=new _0x3c9798();for(const _0x42e496 of _0x1598d6){const _0x2dfd83={'type':'button','model':new to({'label':_0x42e496['name'],'class':_0x42e496['class'],'withText':!0x0,'role':'menuitem','_action':_0x42e496['action']})};_0x2dfd83['model']['bind']('isEnabled')['to'](_0x1b42c0,'isActionsDropdownOpen',_0xad660=>'function'!=typeof _0x42e496['isEnabled']||(!_0xad660||_0x42e496['isEnabled'](_0x1b42c0))),_0x386b42['add'](_0x2dfd83);}return _0x386b42;}(_0x2b4f12,_0x590c5d);return _0x2b4f12['bind']('isActionsDropdownOpen')['to'](_0x8a969b,'isOpen'),_0x8a969b['buttonView']['set']({'label':m(_0x3cb86b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x25edbc}),_0x8a969b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x49b1e9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x49b1e9['to'](_0x6010d8=>_0x6010d8['stopPropagation']())}}),_0x8a969b['on']('execute',_0xcfe028=>{_0x2b4f12['isReady']&&'function'==typeof _0xcfe028['source']['_action']&&_0xcfe028['source']['_action'](_0x2b4f12);}),_0x40c490(_0x8a969b,_0x5c3b12,{'role':'menu'}),_0x8a969b['listenTo'](_0x2b4f12,'change:isActionsDropdownOpen',(_0x597beb,_0x8c4935,_0x48ca51)=>{if(_0x48ca51)for(const _0x51a043 of _0x8a969b['listView']['items']){const _0x32f968=_0x51a043['children']['first'],_0x4faa25=_0x590c5d['find'](_0x27e3d1=>_0x27e3d1['action']===_0x32f968['_action'])['isVisible'];_0x51a043['isVisible']=void 0x0===_0x4faa25||_0x4faa25(_0x2b4f12);}}),_0x8a969b;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2c2d93,_0x45b623,_0x58ffb0,_0x2fade2){super(_0x2c2d93);const _0x1fc60d=this['bindTemplate'],_0x135100=function(_0x5a6ac1,_0xc54e2b){const _0x59d7d1=Array['from'](_0xc54e2b['authors'])['filter'](_0x80e5ed=>_0x80e5ed!=_0xc54e2b['creator']);return _0xc54e2b['creator']&&_0x59d7d1['unshift'](_0xc54e2b['creator']),_0x59d7d1['map'](_0x5a57a8=>new si(_0x5a6ac1,_0x5a57a8,_0x5a57a8==_0xc54e2b['creator']));}(_0x2c2d93,_0x45b623);this['id']=_0x45b623['id'],this['_revision']=_0x45b623,this['_requireRevisionName']=_0x2fade2,this['bind']('name','createdAt')['to'](_0x45b623),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x443da5=>{return _0x343234=_0x2c2d93['uiLanguage'],(_0x5b88e6=_0x443da5)['toLocaleDateString'](_0x343234,{'month':'long','day':'numeric'})+',\x20'+_0x5b88e6['toLocaleTimeString'](_0x343234,{'hour':'numeric','minute':'numeric'});var _0x343234,_0x5b88e6;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2c2d93,_0x30c57f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x33e3e2=>_0x33e3e2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2ff650,_0x33d7d1)=>_0x2ff650&&_0x33d7d1),this['revisionActionsView']=_0x58ffb0&&_0x58ffb0['length']?oi(this,_0x58ffb0):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1fc60d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1fc60d['if']('isEnabled','ck-disabled',_0x444b74=>!_0x444b74),_0x1fc60d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1fc60d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1fc60d['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1fc60d['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x135100}]},this['revisionActionsView']],'on':{'click':_0x1fc60d['to'](_0x3c8f36=>{_0x3c8f36['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x32f9af=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x32f9af,'change',()=>{this['_requireRevisionName']&&!_0x32f9af['value']||this['fire']('setName',{'id':this['id'],'name':_0x32f9af['value']}),_0x32f9af['value']||(_0x32f9af['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x3a0c20,_0x379090){const _0x53de1b=_0x19df88['fromJSDate'](_0x3a0c20)['setLocale'](_0x379090),_0x15cd8f=_0x19df88['local'](),_0x12d0e6=_0x15cd8f['minus']({'days':0x1})['startOf']('day');let _0x296827,_0x23983e;return _0x53de1b['hasSame'](_0x15cd8f,'day')?(_0x296827=_0x53de1b['startOf']('day')['toJSDate'](),_0x23983e=_0x53de1b['toRelativeCalendar']()):_0x53de1b['hasSame'](_0x12d0e6,'day')?(_0x296827=_0x12d0e6['toJSDate'](),_0x23983e=_0x53de1b['toRelativeCalendar']()):_0x53de1b['hasSame'](_0x15cd8f,'week')?(_0x296827=_0x53de1b['startOf']('week')['toJSDate'](),_0x23983e=_0x53de1b['weekdayLong']||''):_0x53de1b['hasSame'](_0x15cd8f,'year')?(_0x296827=_0x53de1b['startOf']('month')['toJSDate'](),_0x23983e=_0x53de1b['monthLong']||''):(_0x296827=_0x53de1b['startOf']('year')['toJSDate'](),_0x23983e=String(_0x53de1b['year'])),{'startDate':_0x296827,'localizedPeriodName':_0x23983e};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x544e67,_0x21eefe,_0x319f1e,_0x16ecc7){super(_0x544e67);const _0x469b95=vi(_0x21eefe,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x21eefe,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x319f1e,this['_requireRevisionName']=_0x16ecc7,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x469b95}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x162aa1){const _0x34400d=new hi(this['locale'],_0x162aa1,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x34400d);}['removeRevision'](_0x343200){const _0x5b8869=this['revisionViews']['find'](_0xcb605f=>_0xcb605f['id']===_0x343200['id']);this['revisionViews']['remove'](_0x5b8869);}}class as extends ts{constructor(_0x21d64d){super(_0x21d64d);const _0xd01b40=new _0x33aa8f();_0xd01b40['content']=_0x4b0f09,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xd01b40,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x21d64d,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5e4e32,_0x54300f,_0x4b95f8,_0x447baf){super(_0x5e4e32);const _0x21a678=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x54300f,this['_revisionActions']=_0x4b95f8,this['_requireRevisionName']=_0x447baf,this['on']('select',(_0x332aab,_0x351b5b)=>{this['fire']('revisionSelected',_0x351b5b);}),this['on']('setName',(_0x3cfcf9,_0x399200)=>{this['fire']('revisionSetName',_0x399200);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5e4e32),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x21a678['if']('isEnabled','ck-disabled',_0x5d0230=>!_0x5d0230)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x286bcb of this['_revisions'])this['_addRevision'](_0x286bcb);this['_revisions']['on']('add',(_0x2fd1dc,_0x256df4)=>{this['_addRevision'](_0x256df4);}),this['_revisions']['on']('remove',(_0x5e4961,_0xef44f7)=>{this['_removeRevision'](_0xef44f7);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5a9d6a=>_0x5a9d6a['revisionViews']['map'](_0x3840f8=>_0x3840f8))['flat']();}['selectRevision'](_0x18a35e){for(const _0x151951 of this['revisionViews'])_0x18a35e&&_0x18a35e['id']===_0x151951['id']?_0x151951['select']():_0x151951['deselect']();}['highlightRevisions'](_0x889e4c){for(const _0x51215c of this['revisionViews'])_0x889e4c['some'](({id:_0x3f17e5})=>_0x3f17e5===_0x51215c['id'])?_0x51215c['highlight']():_0x51215c['unhighlight']();}['_addRevision'](_0x3cd6c6){const _0xcadf62=vi(_0x3cd6c6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x136e20=this['timePeriodViews']['get'](0x0);_0x136e20&&_0x136e20['startDate']['getTime']()===_0xcadf62['getTime']()||(_0x136e20=new mi(this['locale'],_0xcadf62,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x136e20)),_0x136e20['addRevision'](_0x3cd6c6);}['_removeRevision'](_0x326be2){const _0x607b11=vi(_0x326be2['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x607b11)['removeRevision'](_0x326be2);}['_getTimePeriodViewByStartDate'](_0x2dfdf1){return this['timePeriodViews']['find'](_0x158b0e=>_0x158b0e['startDate']['getTime']()===_0x2dfdf1['getTime']());}}class g extends _0x1947b9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5d0ca1){super(_0x5d0ca1),this['_revisionViewer']=_0x5d0ca1['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x166dad=this['_revisionsRepository']['_revisions'],_0x24338c=this['_createRevisionActions'](),_0x2f9950=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x166dad,_0x24338c,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x90d86d,_0x553c03)=>{_0x553c03['revisionViews']['on']('add',(_0x19dceb,_0x32274b)=>{_0x32274b['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x2f9950['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x272ec0=this['_revisionsRepository']['getRevision'](0x0);if(_0x272ec0){const _0x14ebc5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x272ec0['id']);this['_revisionViewer']['compare'](_0x272ec0,_0x14ebc5);}}['_handleRevisionSelected'](_0xaf79a8,_0x4f14d3){const _0x481970=this['_revisionsRepository']['getRevision'](_0x4f14d3['id']),_0xc2b092=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x481970['id']);this['_revisionViewer']['compare'](_0x481970,_0xc2b092);}['_handleRevisionSetName'](_0x34550d,_0x25dd90){this['_revisionsRepository']['getRevision'](_0x25dd90['id'])['setName'](_0x25dd90['name']);}['_handleDiffChange'](_0x4be283,_0x25566b,_0x43b2f9){const _0xfa89cc=this['_revisionsRepository']['getRevisionsInDiff'](_0x43b2f9);_0xfa89cc['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xfa89cc),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xfa89cc[0x0]));}['_createRevisionActions'](){const _0x56fe24=this['editor'],_0x331c54=g['availableRevisionActions'],_0x5199b5=_0x56fe24['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x5199b5['length'])return _0x5199b5['map'](_0x373695=>{const _0x1a6237='string'==typeof _0x373695?Object['assign']({},_0x331c54[_0x373695]):_0x373695;return _0x1a6237['action']=_0x1a6237['action']['bind'](this,_0x56fe24),_0x1a6237['isVisible']&&(_0x1a6237['isVisible']=_0x1a6237['isVisible']['bind'](this,_0x56fe24)),_0x1a6237;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1b370d},_0x4d59e2)=>{const _0x300929=_0x1b370d['get'](d),_0x46fb89=_0x300929['repository'];let _0x4b0230=_0x300929['diff']['newRevisionId'],_0x339bf7=_0x4d59e2['id'];_0x46fb89['getIndex'](_0x4b0230)>_0x46fb89['getIndex'](_0x339bf7)&&([_0x4b0230,_0x339bf7]=[_0x339bf7,_0x4b0230]),_0x300929['compare'](_0x4b0230,_0x339bf7);},'isVisible':({plugins:_0x25c8b6},_0x507135)=>{const _0x12392d=_0x25c8b6['get'](d);return!(_0x12392d['repository']['getRevisionsInDiff'](_0x12392d['diff'])['length']>0x2)&&!_0x507135['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xa22d66,{id:_0x2c0f81})=>{_0xa22d66['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c0f81);},'isVisible':({plugins:_0x5060fd},_0x48d9e1)=>!!_0x5060fd['get'](d)['repository']['getLaterVisibleRevision'](_0x48d9e1['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4220eb},{id:_0x3d7bf9,revisionNameView:_0x3a9b97})=>{const _0x346b78=_0x4220eb['get'](d),_0x119e10=_0x346b78['repository']['getEarlierVisibleRevision'](_0x3d7bf9);_0x346b78['compare'](_0x3d7bf9,_0x119e10),_0x3a9b97['focus'](),_0x3a9b97['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x57755e,_0x217c1c){super(_0x57755e),this['_view']=_0x217c1c,this['_toolbarConfig']=ot(_0x57755e['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1777ad){const _0x3127ef=this['editor'],_0x2dc315=this['view'],_0x5bef1d=_0x3127ef['editing']['view'],_0x25d472=_0x2dc315['editable'],_0x5d8e44=_0x5bef1d['document']['getRoot']();_0x25d472['name']=_0x5d8e44['rootName'],_0x2dc315['render']();const _0x458ac4=_0x25d472['element'];this['setEditableElement'](_0x25d472['name'],_0x458ac4),_0x2dc315['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5bef1d['attachDomRoot'](_0x458ac4),this['_elementReplacer']['replace'](_0x1777ad,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x29a1eb=this['view'],_0x4a2c77=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4a2c77['detachDomRoot'](_0x29a1eb['editable']['name']),_0x29a1eb['destroy']();}['_initToolbar'](){const _0x501cb7=this['view'];_0x501cb7['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x501cb7['stickyPanel']['limiterElement']=_0x501cb7['element'],_0x501cb7['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xc28ccb})=>_0xc28ccb),_0x501cb7['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x501cb7['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xbb8189,_0x5e2a1f,_0x56a3a5={}){super(_0xbb8189),this['stickyPanel']=new lt(_0xbb8189),this['toolbar']=new nt(_0xbb8189,{'shouldGroupWhenFull':_0x56a3a5['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0xbb8189,_0x5e2a1f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x40426c,_0x376f49){super(_0x376f49),this['sourceElement']=_0x40426c,this['model']['document']['createRoot']();const _0x2d8ba1=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2d8ba1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x35b660,_0x2d08dc){const _0x3a062b=new this(_0x35b660,_0x2d08dc);return await _0x3a062b['initPlugins'](),await _0x3a062b['ui']['init'](_0x35b660),await _0x3a062b['data']['init'](_0x3a062b['config']['get']('initialData')||''),_0x3a062b['fire']('ready'),_0x3a062b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x550265{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x156d24){function _0x5cf4eb(_0x3ae7d4){return _0x3ae7d4['map'](_0x1e1dad=>String['fromCharCode'](_0x1e1dad))['join']('');}super(_0x156d24),this['result']='end',_0x156d24[_0x5cf4eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cf4eb([0x76,0x69,0x65,0x77])][_0x5cf4eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cf4eb([0x61,0x75,0x74,0x6f]),_0x156d24[_0x5cf4eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5cf4eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cf4eb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5cf4eb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5cf4eb([0x6f,0x6b])});}}class k extends _0x550265{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x5756a8){if(super(_0x5756a8),!this['editor']['config']['get']('revisionHistory'))throw new _0x4ecbde('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x560da8=>this['_showRevisionViewer']({..._0x560da8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x420602=>this['_closeRevisionViewer'](_0x420602)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x42b9c2=>this['_restoreRevision'](_0x42b9c2)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xc1b1ae){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xc1b1ae;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x206e93){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x206e93);}['getRevision'](_0x2602d3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2602d3);}['getRevisions'](_0x41243c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x41243c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x423f2b=this['editor'],_0x366be0=_0x5604e2(_0x423f2b,p),_0x14c058=_0x423f2b['plugins']['get']('RevisionTracker'),_0x19f186=_0x423f2b['plugins']['get']('Users')['users'];return _0x366be0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x366be0['lazyRoots'],(_0x366be0['plugins']['push'](Rt,d,w,class extends _0x550265{static get['requires'](){return[d,'Users'];}['init'](){const _0x90ddc2=this['editor']['plugins']['get']('Users');for(const _0x1e2179 of _0x19f186)_0x1e2179['isAnonymous']||_0x90ddc2['getUser'](_0x1e2179['id'])||_0x90ddc2['addUser'](_0x1e2179);const _0x4156e5=_0x14c058['repository']['getRevisions']();let _0x201816=null;const _0x2aa84f=this['editor']['plugins']['get']('RevisionViewer');_0x2aa84f['adapter']=_0x14c058['adapter'],_0x2aa84f['bind']('isEnabled')['to'](_0x14c058),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x423f2b,'isReadOnly',_0xe71361=>!_0xe71361);for(const _0x5514cc of _0x4156e5){const _0x387810=null===_0x5514cc['creator'];if(_0x387810&&_0x5514cc['toVersion']===_0x5514cc['fromVersion'])continue;const _0x25c775=_0x5514cc['toJSON']();_0x2aa84f['addRevisionData'](_0x25c775,(_0x5c1e47,_0x171d95,_0x4ae5fc)=>{if(_0x387810){if(_0x201816)_0x201816['_update'](_0x5c1e47,_0x171d95);else{if(!_0x171d95){const _0x3de58a=_0x4ae5fc['toJSON']();_0x3de58a['id']=_0x3398a(),_0x14c058['saveRevision'](_0x3de58a,_0x4ae5fc['toVersion'])['then'](_0xad8dcc=>{_0x201816=_0xad8dcc;});}}}else _0x5514cc['_update'](_0x5c1e47,_0x171d95);});}}},g),_0x366be0);}['_enhanceShowRevisionViewerCallback'](){const _0x4e07c9=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5d8e42=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x377ecc=this['editor']['plugins']['get']('Autosave');await _0x377ecc['save']();}else await _0x5d8e42['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x176032=this['editor']['plugins']['get']('Dialog');_0x176032['isOpen']&&_0x176032['hide']();}const _0x13a232=this['_getRevisionViewerEditorConfig']();return _0x4e07c9(_0x13a232)['then'](_0x4856e1=>{return(this['_viewerEditor']=_0x4856e1,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4856e1;})['catch'](_0x3c80a3=>(console['error'](_0x3c80a3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2509f0=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2509f0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x18d236=this['editor']['plugins']['get']('Annotations');_0x18d236['refreshVisibility'](),_0x18d236['refreshPositioning']();}})));}['_showRevisionViewer'](_0x399abe){const _0x5b2ec2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x55c267=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2bcb72=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2bcb72,_0x399abe)['then'](_0x5d5776=>(_0x55c267['style']['display']='block',_0x5b2ec2['style']['display']='none',_0x5d5776));}['_closeRevisionViewer'](_0x30ccd0){const _0x34d73e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x34d73e['style']['display']='',_0x30ccd0['destroy']();}async['_restoreRevision'](_0x399bb6){const _0x450ea9=this['editor'],_0x1579b9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2db957=_0x450ea9['plugins']['get']('RevisionTracker'),_0x5ed5d3=_0x1579b9['repository']['getRevision'](_0x399bb6);let _0x20499d,_0x4e2f0c,_0x5266ca;try{_0x20499d=await _0x1579b9['getRevisionData'](_0x5ed5d3),_0x4e2f0c=await _0x1579b9['getRevisionRootsAttributes'](_0x5ed5d3);}catch(_0x796720){return void console['error'](_0x796720);}_0x450ea9['model']['change'](_0x5b5fc1=>{for(const _0x3307ef of Array['from'](_0x450ea9['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5b5fc1['removeMarker'](_0x3307ef);}),_0x1579b9['isReady']=!0x1,_0x450ea9['model']['enqueueChange'](_0x535f6f=>{_0x535f6f['setSelection'](null),_0x535f6f['removeSelectionAttribute'](_0x450ea9['model']['document']['selection']['getAttributeKeys']());const _0xb49db6=Object['keys'](_0x20499d);for(const _0xe9ea71 of _0x450ea9['model']['document']['roots'])'$graveyard'!=_0xe9ea71['rootName']&&_0xe9ea71['isAttached']()&&!_0xb49db6['includes'](_0xe9ea71['rootName'])&&_0x535f6f['detachRoot'](_0xe9ea71);for(const _0x3a9c3e of _0xb49db6){let _0x4e9940=_0x450ea9['model']['document']['getRoot'](_0x3a9c3e);_0x4e9940&&_0x4e9940['isAttached']()||(_0x4e9940=_0x535f6f['addRoot'](_0x3a9c3e));const _0x5663a3=_0x4e2f0c[_0x3a9c3e],_0x3de27e=Object['keys'](_0x5663a3),_0x44cbc2=_0x20499d[_0x3a9c3e];for(const _0x241dae of _0x4e9940['getAttributeKeys']())_0x3de27e['includes'](_0x241dae)||_0x535f6f['removeAttribute'](_0x241dae,_0x4e9940);for(const _0x46b14c of _0x3de27e)_0x535f6f['setAttribute'](_0x46b14c,_0x4e2f0c[_0x3a9c3e][_0x46b14c],_0x4e9940);_0x535f6f['remove'](_0x535f6f['createRangeIn'](_0x4e9940)),_0x535f6f['insert'](_0x450ea9['data']['parse'](_0x44cbc2,_0x4e9940),_0x4e9940,0x0);}});const _0x3b9e43=m(_0x450ea9['locale'],'Restored');if(_0x5ed5d3['name'])_0x5266ca=-0x1==_0x5ed5d3['name']['indexOf'](_0x3b9e43)?_0x3b9e43+':\x20'+_0x5ed5d3['name']:_0x5ed5d3['name'];else _0x5266ca=_0x3b9e43+':\x20'+(_0x5ed5d3['createdAt']['toLocaleDateString'](_0x450ea9['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5ed5d3['createdAt']['toLocaleTimeString'](_0x450ea9['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2db957['saveRevision']({'name':_0x5266ca}),_0x1579b9['isReady']=!0x0,_0x450ea9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x424287){super(_0x424287),this['_revisionViewer']=_0x424287['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5860e3=this['_revisionsRepository']['_revisions'],_0x37dcf2=this['_createRevisionActions'](),_0x527808=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x5860e3,_0x37dcf2,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x596c53,_0x4402ae)=>{_0x4402ae['revisionViews']['on']('add',(_0x52cb18,_0x2ff156)=>{_0x2ff156['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x527808['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2c0c02=this['_revisionsRepository']['getRevision'](0x0);if(_0x2c0c02){const _0x17d3e2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2c0c02['id']);this['_revisionViewer']['compare'](_0x2c0c02,_0x17d3e2);}}['_handleRevisionSelected'](_0x38c1f6,_0x2886f5){const _0x4e5684=this['_revisionsRepository']['getRevision'](_0x2886f5['id']),_0x1bcb17=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4e5684['id']);this['_revisionViewer']['compare'](_0x4e5684,_0x1bcb17);}['_handleRevisionSetName'](_0x47f097,_0x352edb){this['_revisionsRepository']['getRevision'](_0x352edb['id'])['setName'](_0x352edb['name']);}['_handleDiffChange'](_0x409e87,_0x6b7c64,_0x8909a1){const _0x2a0c80=this['_revisionsRepository']['getRevisionsInDiff'](_0x8909a1);_0x2a0c80['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2a0c80),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2a0c80[0x0]));}['_createRevisionActions'](){const _0x3e4633=this['editor'],_0x211369=g['availableRevisionActions'],_0x40ea64=_0x3e4633['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x40ea64['length'])return _0x40ea64['map'](_0x4f510b=>{const _0x1ff445='string'==typeof _0x4f510b?Object['assign']({},_0x211369[_0x4f510b]):_0x4f510b;return _0x1ff445['action']=_0x1ff445['action']['bind'](this,_0x3e4633),_0x1ff445['isVisible']&&(_0x1ff445['isVisible']=_0x1ff445['isVisible']['bind'](this,_0x3e4633)),_0x1ff445;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2ff45c},_0x6cfa32)=>{const _0x5b6c0a=_0x2ff45c['get'](d),_0x40fee7=_0x5b6c0a['repository'];let _0x2f80c0=_0x5b6c0a['diff']['newRevisionId'],_0x12f11a=_0x6cfa32['id'];_0x40fee7['getIndex'](_0x2f80c0)>_0x40fee7['getIndex'](_0x12f11a)&&([_0x2f80c0,_0x12f11a]=[_0x12f11a,_0x2f80c0]),_0x5b6c0a['compare'](_0x2f80c0,_0x12f11a);},'isVisible':({plugins:_0xf35c57},_0x358bde)=>{const _0x2efb74=_0xf35c57['get'](d);return!(_0x2efb74['repository']['getRevisionsInDiff'](_0x2efb74['diff'])['length']>0x2)&&!_0x358bde['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3d9656,{id:_0x2bc4c6})=>{_0x3d9656['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2bc4c6);},'isVisible':({plugins:_0x4e73a4},_0x1214ee)=>!!_0x4e73a4['get'](d)['repository']['getLaterVisibleRevision'](_0x1214ee['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x143fbc},{id:_0x557d82,revisionNameView:_0x30cea4})=>{const _0x5afcf1=_0x143fbc['get'](d),_0x3610cc=_0x5afcf1['repository']['getEarlierVisibleRevision'](_0x557d82);_0x5afcf1['compare'](_0x557d82,_0x3610cc),_0x30cea4['focus'](),_0x30cea4['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1eae1f,_0x3cc7ff){super(_0x1eae1f),this['_view']=_0x3cc7ff,this['_toolbarConfig']=ot(_0x1eae1f['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x432ef3){const _0x5f153a=this['editor'],_0x415fc3=this['view'],_0x5e8433=_0x5f153a['editing']['view'],_0x2242d6=_0x415fc3['editable'],_0x2ce343=_0x5e8433['document']['getRoot']();_0x2242d6['name']=_0x2ce343['rootName'],_0x415fc3['render']();const _0x3e80ea=_0x2242d6['element'];this['setEditableElement'](_0x2242d6['name'],_0x3e80ea),_0x415fc3['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5e8433['attachDomRoot'](_0x3e80ea),this['_elementReplacer']['replace'](_0x432ef3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3e757c=this['view'],_0x191f20=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x191f20['detachDomRoot'](_0x3e757c['editable']['name']),_0x3e757c['destroy']();}['_initToolbar'](){const _0x3b9e4e=this['view'];_0x3b9e4e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3b9e4e['stickyPanel']['limiterElement']=_0x3b9e4e['element'],_0x3b9e4e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x51e80f})=>_0x51e80f),_0x3b9e4e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3b9e4e['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x46dd48,_0x2e0eb9,_0x4150b8={}){super(_0x46dd48),this['stickyPanel']=new lt(_0x46dd48),this['toolbar']=new nt(_0x46dd48,{'shouldGroupWhenFull':_0x4150b8['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x46dd48,_0x2e0eb9);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3e917a,_0x3332b4){super(_0x3332b4),this['sourceElement']=_0x3e917a,this['model']['document']['createRoot']();const _0x473bfc=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x473bfc);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xc63914,_0x54e735){const _0x12fbc3=new this(_0xc63914,_0x54e735);return await _0x12fbc3['initPlugins'](),await _0x12fbc3['ui']['init'](_0xc63914),await _0x12fbc3['data']['init'](_0x12fbc3['config']['get']('initialData')||''),_0x12fbc3['fire']('ready'),_0x12fbc3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x1947b9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36519f){function _0x335dd8(_0x10a19e){return _0x10a19e['map'](_0x919151=>String['fromCharCode'](_0x919151))['join']('');}super(_0x36519f),this['result']='end',_0x36519f[_0x335dd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x335dd8([0x76,0x69,0x65,0x77])][_0x335dd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x335dd8([0x61,0x75,0x74,0x6f]),_0x36519f[_0x335dd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x335dd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x335dd8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x335dd8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x335dd8([0x6f,0x6b])});}}class k extends _0x1947b9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x59153a){if(super(_0x59153a),!this['editor']['config']['get']('revisionHistory'))throw new _0x2fa8d8('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5cfea3=>this['_showRevisionViewer']({..._0x5cfea3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x18b20b=>this['_closeRevisionViewer'](_0x18b20b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2ecaa9=>this['_restoreRevision'](_0x2ecaa9)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x335e8f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x335e8f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x57d2c6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x57d2c6);}['getRevision'](_0x3b0cae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3b0cae);}['getRevisions'](_0x349f2c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x349f2c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5d373e=this['editor'],_0x3524b2=_0xd0e0b6(_0x5d373e,p),_0x206100=_0x5d373e['plugins']['get']('RevisionTracker'),_0xb115c9=_0x5d373e['plugins']['get']('Users')['users'];return _0x3524b2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3524b2['lazyRoots'],(_0x3524b2['plugins']['push'](bt,d,w,class extends _0x1947b9{static get['requires'](){return[d,'Users'];}['init'](){const _0x594707=this['editor']['plugins']['get']('Users');for(const _0x3999d8 of _0xb115c9)_0x3999d8['isAnonymous']||_0x594707['getUser'](_0x3999d8['id'])||_0x594707['addUser'](_0x3999d8);const _0x2773db=_0x206100['repository']['getRevisions']();let _0x475df8=null;const _0x126d19=this['editor']['plugins']['get']('RevisionViewer');_0x126d19['adapter']=_0x206100['adapter'],_0x126d19['bind']('isEnabled')['to'](_0x206100),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5d373e,'isReadOnly',_0x355367=>!_0x355367);for(const _0x42c512 of _0x2773db){const _0xc6b98d=null===_0x42c512['creator'];if(_0xc6b98d&&_0x42c512['toVersion']===_0x42c512['fromVersion'])continue;const _0x2cd272=_0x42c512['toJSON']();_0x126d19['addRevisionData'](_0x2cd272,(_0x43b813,_0x14748d,_0x162a4c)=>{if(_0xc6b98d){if(_0x475df8)_0x475df8['_update'](_0x43b813,_0x14748d);else{if(!_0x14748d){const _0x4f3e39=_0x162a4c['toJSON']();_0x4f3e39['id']=_0x11cac6(),_0x206100['saveRevision'](_0x4f3e39,_0x162a4c['toVersion'])['then'](_0x3155df=>{_0x475df8=_0x3155df;});}}}else _0x42c512['_update'](_0x43b813,_0x14748d);});}}},g),_0x3524b2);}['_enhanceShowRevisionViewerCallback'](){const _0x56d331=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5ba0fd=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4eec07=this['editor']['plugins']['get']('Autosave');await _0x4eec07['save']();}else await _0x5ba0fd['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x96622c=this['editor']['plugins']['get']('Dialog');_0x96622c['isOpen']&&_0x96622c['hide']();}const _0x49a400=this['_getRevisionViewerEditorConfig']();return _0x56d331(_0x49a400)['then'](_0x55dbeb=>{return(this['_viewerEditor']=_0x55dbeb,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x55dbeb;})['catch'](_0x1b5f0f=>(console['error'](_0x1b5f0f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2445b0=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2445b0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3b3b86=this['editor']['plugins']['get']('Annotations');_0x3b3b86['refreshVisibility'](),_0x3b3b86['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3ea387){const _0x59c0da=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x22c341=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1a1346=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1a1346,_0x3ea387)['then'](_0x445afa=>(_0x22c341['style']['display']='block',_0x59c0da['style']['display']='none',_0x445afa));}['_closeRevisionViewer'](_0x47ef65){const _0x372d1b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x372d1b['style']['display']='',_0x47ef65['destroy']();}async['_restoreRevision'](_0x140e7f){const _0x730ef3=this['editor'],_0x42fa72=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1f98c6=_0x730ef3['plugins']['get']('RevisionTracker'),_0x25b317=_0x42fa72['repository']['getRevision'](_0x140e7f);let _0x201d6e,_0x4e7e39,_0x4a14bc;try{_0x201d6e=await _0x42fa72['getRevisionData'](_0x25b317),_0x4e7e39=await _0x42fa72['getRevisionRootsAttributes'](_0x25b317);}catch(_0x4ed590){return void console['error'](_0x4ed590);}_0x730ef3['model']['change'](_0x34630e=>{for(const _0x5390c8 of Array['from'](_0x730ef3['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x34630e['removeMarker'](_0x5390c8);}),_0x42fa72['isReady']=!0x1,_0x730ef3['model']['enqueueChange'](_0xb0218a=>{_0xb0218a['setSelection'](null),_0xb0218a['removeSelectionAttribute'](_0x730ef3['model']['document']['selection']['getAttributeKeys']());const _0x4d1f6f=Object['keys'](_0x201d6e);for(const _0x5931a0 of _0x730ef3['model']['document']['roots'])'$graveyard'!=_0x5931a0['rootName']&&_0x5931a0['isAttached']()&&!_0x4d1f6f['includes'](_0x5931a0['rootName'])&&_0xb0218a['detachRoot'](_0x5931a0);for(const _0x3c4b85 of _0x4d1f6f){let _0xa76f0b=_0x730ef3['model']['document']['getRoot'](_0x3c4b85);_0xa76f0b&&_0xa76f0b['isAttached']()||(_0xa76f0b=_0xb0218a['addRoot'](_0x3c4b85));const _0xbbc4cf=_0x4e7e39[_0x3c4b85],_0x24cfd4=Object['keys'](_0xbbc4cf),_0x2d9bb=_0x201d6e[_0x3c4b85];for(const _0x367be4 of _0xa76f0b['getAttributeKeys']())_0x24cfd4['includes'](_0x367be4)||_0xb0218a['removeAttribute'](_0x367be4,_0xa76f0b);for(const _0x121daf of _0x24cfd4)_0xb0218a['setAttribute'](_0x121daf,_0x4e7e39[_0x3c4b85][_0x121daf],_0xa76f0b);_0xb0218a['remove'](_0xb0218a['createRangeIn'](_0xa76f0b)),_0xb0218a['insert'](_0x730ef3['data']['parse'](_0x2d9bb,_0xa76f0b),_0xa76f0b,0x0);}});const _0x4c8bd8=m(_0x730ef3['locale'],'Restored');if(_0x25b317['name'])_0x4a14bc=-0x1==_0x25b317['name']['indexOf'](_0x4c8bd8)?_0x4c8bd8+':\x20'+_0x25b317['name']:_0x25b317['name'];else _0x4a14bc=_0x4c8bd8+':\x20'+(_0x25b317['createdAt']['toLocaleDateString'](_0x730ef3['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x25b317['createdAt']['toLocaleTimeString'](_0x730ef3['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1f98c6['saveRevision']({'name':_0x4a14bc}),_0x42fa72['isReady']=!0x0,_0x730ef3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};