@ckeditor/ckeditor5-revision-history 44.0.0-alpha.1 → 44.0.0-alpha.2

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 _0x3cf027,uid as _0x4834e8,Collection as _0x5c9475,logWarning as _0x1655ad,FocusTracker as _0x4a9bb6,KeystrokeHandler as _0x3473af,scrollViewportToShowTarget as _0x5ef61f,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x3ed888}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3bf4ba,set as _0x5afcb9,unset as _0x596b14,isEqual as _0x141f62}from'lodash-es';import{Plugin as _0x39b81a,PendingActions as _0x4b53d0,icons as _0x590976,Command as _0x14503b,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x41312b,getMarkerDomElement as _0xca6c05,ConfirmMixin as ti,sanitizeEditorConfig as _0x6935f0}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3bd259,ViewText as _0x3c17b8,ViewElement as _0x20d11f,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x300b3b,ViewAttributeElement as _0x5596fe,ViewEmptyElement as _0x5e2c99,ViewRawElement as _0x5ae857,ViewUIElement as _0x60da44,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5ed148,submitHandler as _0x5a4d0c,LabeledFieldView as _0x5eff68,createLabeledInputText as _0x1f1f1e,createDropdown as _0x5533af,ListView as _0x5d810d,ListItemView as _0x426f41,ButtonView as te,MenuBarMenuView as _0x37a145,MenuBarMenuListView as _0x84f804,MenuBarMenuListItemView as _0x590f6a,MenuBarMenuListItemButtonView as _0x40881e,ContextualBalloon as _0xe657c7,ToolbarSeparatorView as _0xbbb2ea,IconView as _0x18863c,addListToDropdown as to,ViewModel as _0x13d394,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x175515}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x3cf027(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2f2906){super(),this['id']=_0x2f2906['id']||_0x4834e8(),this['creator']=_0x2f2906['creator']||null,this['authors']=_0x2f2906['authors']||[],this['diffData']=_0x2f2906['diffData']||null,this['toVersion']=_0x2f2906['toVersion']||0x0,this['fromVersion']=_0x2f2906['fromVersion']||0x0,this['set']('name',_0x2f2906['name']||''),this['set']('createdAt',_0x2f2906['createdAt']||new Date()),this['set']('attributes',_0x2f2906['attributes']||{});}['setName'](_0x4915ea){this['_update']({'name':_0x4915ea});}['setAttribute'](_0x5ef5ea,_0x51381e){const _0x5c3990=_0x3bf4ba(this['attributes']);_0x5afcb9(_0x5c3990,_0x5ef5ea,_0x51381e),this['_update']({'attributes':_0x5c3990});}['removeAttribute'](_0x32f830){const _0x1564d0=_0x3bf4ba(this['attributes']);_0x596b14(_0x1564d0,_0x32f830),this['_update']({'attributes':_0x1564d0});}['_update'](_0x1423ee,_0x3883a6=!0x1){let _0x22438f=!0x1;const _0x41965f={'id':this['id']},_0x2b1ba8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x10f265 of _0x2b1ba8){const _0xb0afa0=_0x1423ee[_0x10f265];void 0x0!==_0xb0afa0&&_0xb0afa0!==this[_0x10f265]&&(this[_0x10f265]=_0xb0afa0,_0x41965f[_0x10f265]=_0xb0afa0,_0x22438f=!0x0);}_0x22438f&&(_0x41965f['authors']&&(_0x41965f['authorsIds']=_0x41965f['authors']['map'](_0x3e9c0d=>_0x3e9c0d['id']),delete _0x41965f['authors']),this['fire']('_update',_0x41965f,_0x3883a6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x956725=>_0x956725['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x39b81a{['_revisions'];static get['requires'](){return[_0x41312b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2919b3){super(_0x2919b3),this['_revisions']=new _0x5c9475();}['afterInit'](){!async function(_0x23aba7){const _0x16ef02=_0x4d28db([0x57,0x55,0x65,0x63,0x4b,0x76,0x52,0x50,0x51,0x48,0x68,0x69,0x64,0x56,0x70,0x39,0x62,0x6c,0x71,0x32,0x4d,0x59,0x41,0x6b,0x7a,0x73,0x78,0x44,0x34,0x66,0x45,0x74,0x47,0x31,0x6e,0x4f,0x67,0x43,0x58,0x36,0x77,0x42,0x72,0x54,0x49,0x46,0x53,0x4c,0x35,0x38,0x4a,0x4e,0x6f,0x6a,0x75,0x33,0x37,0x5a,0x79,0x30,0x61,0x6d]),_0x40ccd9=0xeb829,_0x3da9d6=0x6b98dcf4,_0x64351=0x6b9f8b74^_0x3da9d6,_0x317165=window[_0x4d28db([0x44,0x61,0x74,0x65])][_0x4d28db([0x6e,0x6f,0x77])](),_0xe6384b=_0x23aba7[_0x4d28db([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38c048=new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf76b1c=>{_0xe6384b[_0x4d28db([0x6f,0x6e,0x63,0x65])](_0x4d28db([0x72,0x65,0x61,0x64,0x79]),_0xf76b1c);}),_0x30d30a={[_0x4d28db([0x6b,0x74,0x79])]:_0x4d28db([0x45,0x43]),[_0x4d28db([0x75,0x73,0x65])]:_0x4d28db([0x73,0x69,0x67]),[_0x4d28db([0x63,0x72,0x76])]:_0x4d28db([0x50,0x2d,0x32,0x35,0x36]),[_0x4d28db([0x78])]:_0x4d28db([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]),[_0x4d28db([0x79])]:_0x4d28db([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]),[_0x4d28db([0x61,0x6c,0x67])]:_0x4d28db([0x45,0x53,0x32,0x35,0x36])},_0x3bc48c=_0xe6384b[_0x4d28db([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d28db([0x67,0x65,0x74])](_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x510cc7(){let _0x357589,_0x29fe08=null,_0x15ed2a=null;try{if(_0x3bc48c==_0x4d28db([0x47,0x50,0x4c]))return _0x4d28db([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x357589=_0x243bf5(),!_0x357589)return _0x4d28db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x357589[_0x4d28db([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x15ed2a=_0x55b458(_0x357589[_0x4d28db([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x357589[_0x4d28db([0x6a,0x74,0x69])])),await _0x3b360d()?_0x546568()?_0x49b0cb()?_0x4d28db([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d3c93()?(_0x357589[_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d28db([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29fe08=_0x415127(_0x4d28db([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x357589[_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d28db([0x74,0x72,0x69,0x61,0x6c])&&(_0x29fe08=_0x415127(_0x4d28db([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x357589[_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d28db([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x29fe08=_0x415127(_0x4d28db([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e14be()):_0x4d28db([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d28db([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d28db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5dc3d8){return _0x4d28db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49b0cb(){const _0x3f8432=[_0x4d28db([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d28db([0x74,0x72,0x69,0x61,0x6c])][_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x357589[_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x317165/0x3e8:0xe10*_0x64351;return _0x357589[_0x4d28db([0x65,0x78,0x70])]<_0x3f8432;}function _0x546568(){const _0x346b73=_0x357589[_0x4d28db([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x346b73&&(!!_0x346b73[_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d28db([0x2a]))||(!!_0x346b73[_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d28db([0x52,0x48]))||!(!_0x346b73[_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d28db([0x52,0x52,0x48]))||!_0x2cf251())));}function _0x2d3c93(){const _0xebc16a=_0x357589[_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xebc16a||0x0==_0xebc16a[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x564641}=new URL(window[_0x4d28db([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xebc16a[_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564641))return!0x0;const _0x9d476c=_0x564641[_0x4d28db([0x73,0x70,0x6c,0x69,0x74])](_0x4d28db([0x2e]));return _0xebc16a[_0x4d28db([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d39e0=>_0x3d39e0[_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d28db([0x2a])))[_0x4d28db([0x6d,0x61,0x70])](_0xfc90cf=>_0xfc90cf[_0x4d28db([0x73,0x70,0x6c,0x69,0x74])](_0x4d28db([0x2e])))[_0x4d28db([0x73,0x6f,0x6d,0x65])](_0x2c2355=>_0x9d476c[_0x4d28db([0x65,0x76,0x65,0x72,0x79])]((_0x558923,_0x223686)=>_0x2c2355[_0x223686]===_0x558923||_0x2c2355[_0x223686]===_0x4d28db([0x2a])));}function _0x1e14be(){return _0x29fe08&&_0x15ed2a?new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x511138,_0x1bbacf)=>{_0x29fe08[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x511138,_0x1bbacf),_0x15ed2a[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x10d304=>{_0x10d304!=_0x4d28db([0x56,0x61,0x6c,0x69,0x64])&&_0x511138(_0x10d304);},_0x1bbacf);}):_0x29fe08||_0x15ed2a||_0x4d28db([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55b458(_0x2babc2,_0x39ac0f){return new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x113a58=>{if(_0x363a95())return _0x113a58(_0x4d28db([0x56,0x61,0x6c,0x69,0x64]));_0x191c47(),_0xe6384b[_0x4d28db([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d28db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd3e3ad=!0x1;const _0x4f7981=_0x4834e8();function _0x291706(_0x2d9c46){return!!_0x2d9c46&&(typeof _0x2d9c46===_0x4d28db([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d9c46===_0x4d28db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d9c46[_0x4d28db([0x74,0x68,0x65,0x6e])]===_0x4d28db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d9c46[_0x4d28db([0x63,0x61,0x74,0x63,0x68])]===_0x4d28db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x484535(_0xd42696){_0x9a7aee(_0xd42696)[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x188ac2=>{if(!_0x188ac2||_0x188ac2[_0x4d28db([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d28db([0x6f,0x6b]))return _0x4d28db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x155a22(_0x26adbb(_0x4f7981+_0x39ac0f))!=_0x188ac2[_0x4d28db([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d28db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d28db([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x2afedb=>(_0x4b81a6(),_0x2afedb),()=>{const _0x23ad1b=_0x54076a();return null==_0x23ad1b?(_0x4b81a6(),_0x4d28db([0x56,0x61,0x6c,0x69,0x64])):_0x4d28db(_0x317165-_0x23ad1b>(0x4f9458f4^_0x3da9d6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x113a58)[_0x4d28db([0x63,0x61,0x74,0x63,0x68])](()=>{_0x113a58(_0x4d28db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d7767=0x6bae3274^_0x3da9d6;function _0x4b81a6(){const _0x505fef=_0x4d28db([0x6c,0x6c,0x63,0x74,0x2d])+_0x155a22(_0x26adbb(_0x2babc2)),_0x202baf=_0xcfdbc7(_0x155a22(window[_0x4d28db([0x4d,0x61,0x74,0x68])][_0x4d28db([0x63,0x65,0x69,0x6c])](_0x317165/_0x2d7767)));window[_0x4d28db([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d28db([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x505fef,_0x202baf);}function _0x54076a(){const _0x23c8cc=_0x4d28db([0x6c,0x6c,0x63,0x74,0x2d])+_0x155a22(_0x26adbb(_0x2babc2)),_0x544edb=window[_0x4d28db([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d28db([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23c8cc);return _0x544edb?window[_0x4d28db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcfdbc7(_0x544edb),0x10)*_0x2d7767:null;}function _0x9a7aee(_0x10544d){return new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x567f6f,_0x116eb3)=>{_0x10544d[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x567f6f,_0x116eb3),window[_0x4d28db([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x116eb3,0x6b990834^_0x3da9d6);});}}_0xe6384b[_0x4d28db([0x6f,0x6e])](_0x4d28db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ffc45,_0x176573)=>{if(_0x176573[0x0]!=_0x2babc2)return _0x113a58(_0x4d28db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x176573[0x1]={..._0x176573[0x1],[_0x4d28db([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f7981};},{[_0x4d28db([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d28db([0x68,0x69,0x67,0x68])}),_0xe6384b[_0x4d28db([0x6f,0x6e])](_0x4d28db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x574360=>{_0x291706(_0x574360[_0x4d28db([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd3e3ad=!0x0,_0x484535(_0x574360[_0x4d28db([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d28db([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d28db([0x6c,0x6f,0x77])}),_0x38c048[_0x4d28db([0x74,0x68,0x65,0x6e])](()=>{_0xd3e3ad||_0x113a58(_0x4d28db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x363a95(){return _0xe6384b[_0x4d28db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d28db([0x76,0x69,0x65,0x77])][_0x4d28db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d28db([0x61,0x75,0x74,0x6f]);}function _0x191c47(){_0xe6384b[_0x4d28db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d28db([0x76,0x69,0x65,0x77])][_0x4d28db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d28db([0x61,0x75,0x74,0x6f]);}}function _0x415127(_0x42aeba){const _0x3899aa=[new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51007e=>setTimeout(_0x51007e,0x6b91e238^_0x3da9d6)),_0x38c048[_0x4d28db([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x181e28=>{const _0x3c128b=0x6b98dcf3^_0x3da9d6,_0x37735d=_0x23aba7[_0x4d28db([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3cc67f(){_0x37735d[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3c128b&&_0x181e28();}_0x3cc67f(),_0x37735d[_0x4d28db([0x6f,0x6e])](_0x4d28db([0x61,0x64,0x64]),_0x3cc67f);})),new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45df69=>{function _0x567f5b(){for(const _0x2e403e in window)if(window[_0x4d28db([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4d28db([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2e403e))&&window[_0x2e403e]==_0x40ccd9)return _0x45df69();_0xe6384b[_0x4d28db([0x73,0x74,0x61,0x74,0x65])]!=_0x4d28db([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4d28db([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x567f5b,0x6b98cf7c^_0x3da9d6);}_0x59fb72(_0x4d28db([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x567f5b();})];return window[_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d28db([0x72,0x61,0x63,0x65])](_0x3899aa)[_0x4d28db([0x74,0x68,0x65,0x6e])](()=>_0x42aeba);}async function _0xb018c6(){if(await _0x38c048,_0x59fb72(_0x4d28db([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5bdea3=_0x23aba7[_0x4d28db([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x509963=_0x23aba7[_0x4d28db([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])](_0x5bdea3[_0x4d28db([0x69,0x64])]),_0x21fe98=_0x5a91e1(_0x4d28db([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x21fe98[_0x4d28db([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5bdea3['id'],_0x509963?_0x509963['id']:null,!0x0),_0x21fe98[_0x4d28db([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d28db([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x21fe98[_0x4d28db([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x21fe98[_0x4d28db([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3c9a2d,void(_0x21fe98[_0x4d28db([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3c9a2d);}if(_0x59fb72(_0x4d28db([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4ecf48=_0x5a91e1(_0x4d28db([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4ecf48[_0x4d28db([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d28db([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4ecf48[_0x4d28db([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4ecf48[_0x4d28db([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3c9a2d,_0x4ecf48[_0x4d28db([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3c9a2d;}_0xe6384b[_0x4d28db([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d28db([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c9a2d,_0xe6384b[_0x4d28db([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d28db([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c9a2d,_0xe6384b[_0x4d28db([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d28db([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cf251(){return _0x59fb72(_0x4d28db([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5a91e1(_0x4d28db([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d28db([0x73,0x74,0x61,0x74,0x65])]==_0x4d28db([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4e73ab(_0x59c3ae){const _0x4dadf5=_0x1c6529();_0xe6384b[_0x4dadf5]=_0x4d28db([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])+_0x59c3ae,_0x59c3ae[_0x4d28db([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4d28db([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1c6529()]=_0x40ccd9),_0x59c3ae!=_0x4d28db([0x56,0x61,0x6c,0x69,0x64])&&_0xb018c6();}function _0x1c6529(){const _0xd78295=window[_0x4d28db([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d28db([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d28db([0x6e,0x6f,0x77])]())[_0x4d28db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d28db([0x2e]),'');let _0x30b595=_0x4d28db([0x57]);for(let _0x1725fe=0x0;_0x1725fe<_0xd78295[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1725fe+=0x2){let _0x1a83dc=window[_0x4d28db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd78295[_0x4d28db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1725fe,_0x1725fe+0x2));_0x1a83dc>=_0x16ef02[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a83dc-=_0x16ef02[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30b595+=_0x16ef02[_0x1a83dc];}return _0x30b595;}function _0x243bf5(){const _0x2b8aab=_0x3bc48c[_0x4d28db([0x73,0x70,0x6c,0x69,0x74])](_0x4d28db([0x2e]));if(0x3!=_0x2b8aab[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3db1cf(_0x2b8aab[0x1]);function _0x3db1cf(_0x57aa79){const _0x1c44b5=_0x19c434(_0x57aa79);return _0x1c44b5&&_0x3daaff()?_0x1c44b5:null;function _0x3daaff(){const _0x1185aa=_0x1c44b5[_0x4d28db([0x6a,0x74,0x69])],_0x59cf1d=window[_0x4d28db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1185aa[_0x4d28db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1185aa[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3939a7={..._0x1c44b5,[_0x4d28db([0x6a,0x74,0x69])]:_0x1185aa[_0x4d28db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1185aa[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3939a7[_0x4d28db([0x76,0x63])],_0x26adbb(_0x3939a7)==_0x59cf1d;}}}async function _0x3b360d(){let _0x4d47d9=!0x0;try{const _0xfa7fff=_0x3bc48c[_0x4d28db([0x73,0x70,0x6c,0x69,0x74])](_0x4d28db([0x2e])),[_0x293a65,_0x115c20,_0x1ac7b1]=_0xfa7fff;return _0x1efd6e(_0x293a65),await _0x188779(_0x293a65,_0x115c20,_0x1ac7b1),_0x4d47d9;}catch(_0x35d7d9){return!0x1;}function _0x1efd6e(_0x13843e){const _0x10d54b=_0x19c434(_0x13843e);_0x10d54b&&_0x10d54b[_0x4d28db([0x61,0x6c,0x67])]==_0x4d28db([0x45,0x53,0x32,0x35,0x36])||(_0x4d47d9=!0x1);}async function _0x188779(_0x2e58f7,_0x4be14d,_0x2fd0f3){const _0x1c2b6b=window[_0x4d28db([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d28db([0x66,0x72,0x6f,0x6d])](_0x53c95b(_0x2fd0f3),_0x42c706=>_0x42c706[_0x4d28db([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x506eb2=new window[(_0x4d28db([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d28db([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e58f7+_0x4d28db([0x2e])+_0x4be14d),_0x1e39f1=window[_0x4d28db([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d28db([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e39f1)return;const _0x266bdc=await _0x1e39f1[_0x4d28db([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d28db([0x6a,0x77,0x6b]),_0x30d30a,{[_0x4d28db([0x6e,0x61,0x6d,0x65])]:_0x4d28db([0x45,0x43,0x44,0x53,0x41]),[_0x4d28db([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d28db([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d28db([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e39f1[_0x4d28db([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d28db([0x6e,0x61,0x6d,0x65])]:_0x4d28db([0x45,0x43,0x44,0x53,0x41]),[_0x4d28db([0x68,0x61,0x73,0x68])]:{[_0x4d28db([0x6e,0x61,0x6d,0x65])]:_0x4d28db([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x266bdc,_0x1c2b6b,_0x506eb2)||(_0x4d47d9=!0x1);}}function _0x19c434(_0x53602f){return _0x53602f[_0x4d28db([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d28db([0x65,0x79]))?JSON[_0x4d28db([0x70,0x61,0x72,0x73,0x65])](_0x53c95b(_0x53602f)):null;}function _0x53c95b(_0x3ff771){return window[_0x4d28db([0x61,0x74,0x6f,0x62])](_0x3ff771[_0x4d28db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d28db([0x2b]))[_0x4d28db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d28db([0x2f])));}function _0x26adbb(_0x503b08){let _0x377fd9=0x1505;function _0x391aef(_0x383a8d){for(let _0x4acf72=0x0;_0x4acf72<_0x383a8d[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4acf72++){const _0x238331=_0x383a8d[_0x4d28db([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4acf72);_0x377fd9=(_0x377fd9<<0x5)+_0x377fd9+_0x238331,_0x377fd9&=_0x377fd9;}}function _0x23a37a(_0x2e4191){Array[_0x4d28db([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e4191)?_0x2e4191[_0x4d28db([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23a37a):_0x2e4191&&typeof _0x2e4191==_0x4d28db([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d28db([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e4191)[_0x4d28db([0x73,0x6f,0x72,0x74])]()[_0x4d28db([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15f1ef,_0x55560b])=>{_0x391aef(_0x15f1ef),_0x23a37a(_0x55560b);}):_0x391aef(window[_0x4d28db([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e4191));}return _0x23a37a(_0x503b08),_0x377fd9>>>0x0;}function _0x155a22(_0x565f6a){return _0x565f6a[_0x4d28db([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d28db([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d28db([0x30]));}function _0xcfdbc7(_0x2db8bf){return _0x2db8bf[_0x4d28db([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d28db([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d28db([0x6a,0x6f,0x69,0x6e])]('');}function _0x59fb72(_0x54eebc){return _0xe6384b[_0x4d28db([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d28db([0x68,0x61,0x73])](_0x54eebc);}function _0x5a91e1(_0x3d3ebf){return _0xe6384b[_0x4d28db([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d28db([0x67,0x65,0x74])](_0x3d3ebf);}function _0x3c9a2d(){}function _0x4d28db(_0x47a62c){return _0x47a62c['map'](_0x250108=>String['fromCharCode'](_0x250108))['join']('');}_0x4e73ab(await _0x510cc7());}(this);}['createRevision'](_0x391224){const _0x2f3245=this['editor']['plugins']['get']('Users');return new a({'id':_0x391224['id'],'name':_0x391224['name'],'creator':_0x391224['creatorId']?_0x2f3245['getUser'](_0x391224['creatorId']):null,'diffData':_0x391224['diffData']||_0x391224['data'],'authors':_0x391224['authorsIds']['map'](_0x36f3e6=>_0x2f3245['getUser'](_0x36f3e6)),'createdAt':new Date(_0x391224['createdAt']),'attributes':_0x391224['attributes'],'fromVersion':_0x391224['fromVersion'],'toVersion':_0x391224['toVersion']});}['addRevision'](_0x4c8aa0,_0x4e9d0c=0x0){this['_revisions']['add'](_0x4c8aa0,_0x4e9d0c);}['getRevision'](_0x522819){return this['_revisions']['get'](_0x522819);}['getRevisions'](_0x12b7e7={'toJSON':!0x1}){const _0x272df4=Array['from'](this['_revisions']);return _0x272df4['reverse'](),_0x12b7e7['toJSON']?_0x272df4['map'](_0x55e4d8=>_0x55e4d8['toJSON']()):_0x272df4;}['getIndex'](_0x393151){return this['_revisions']['getIndex'](_0x393151);}['getEarlierVisibleRevision'](_0x407ca4){const [,_0x4eb4c8]=this['getRevisionsIterator'](_0x407ca4,{'direction':'earlier'});return _0x4eb4c8;}['getLaterVisibleRevision'](_0x5a72fe){const [,_0x1a449c]=this['getRevisionsIterator'](_0x5a72fe,{'direction':'later'});return _0x1a449c;}['getRevisionsInDiff'](_0x25990d){const _0xd6e39c=[];for(const _0x12b6c7 of this['getRevisionsIterator'](_0x25990d['newRevisionId']))if(_0xd6e39c['push'](_0x12b6c7),_0x12b6c7['id']===_0x25990d['oldRevisionId'])break;return _0xd6e39c;}*['getRevisionsIterator'](_0x90e915,{direction:_0x3f77ab='earlier',filter:_0x406139=()=>!0x0}={}){const _0x21cce8='earlier'===_0x3f77ab?0x1:-0x1;let _0x3ef474=this['_revisions']['get'](_0x90e915),_0x4e43d7=this['getIndex'](_0x3ef474);for(yield _0x3ef474;_0x3ef474;){if(_0x4e43d7+=_0x21cce8,_0x3ef474=this['getRevision'](_0x4e43d7),!_0x3ef474)return;_0x406139(_0x3ef474)&&(yield _0x3ef474);}}}function R(_0x43fbb7,_0x483b1c,_0x23a42b){const t=_0x43fbb7['t'];switch(_0x483b1c){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'},_0x23a42b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x23a42b);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 C={'c':_0x300b3b,'a':_0x5596fe,'e':_0x5e2c99,'r':_0x5ae857,'u':_0x60da44};class l extends _0x39b81a{['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[_0x41312b,j,_0x4b53d0];}constructor(_0x23c691){super(_0x23c691),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5e0071=_0x4834e8();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5e0071},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 _0x17ee3d=this['repository']['getRevision'](0x0),_0x4485d9=_0x17ee3d&&null===_0x17ee3d['creator']?_0x17ee3d:null;if(this['_continueCurrentRevision']=!!_0x4485d9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x19319a=this['_source']['getCurrentRevisionId'](),_0x3c8b02=this['repository']['getRevision'](_0x19319a);if(_0x3c8b02)this['_startingVersion']=_0x3c8b02['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x94359c=this['_source']['history']['_operations']['find'](_0x1475a6=>!_0x1475a6['_isInit']),_0x4bd312=_0x94359c?_0x94359c['baseVersion']:this['_source']['history']['version'];_0x17ee3d?(_0x17ee3d['toVersion']<_0x4bd312&&_0x17ee3d['_update']({'toVersion':_0x4bd312}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4485d9['id'],this['_startingVersion']=_0x4485d9['fromVersion']):(this['_startingVersion']=_0x17ee3d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4bd312,this['_continueCurrentRevision']=!0x1);}}else _0x4485d9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4485d9['toVersion'],this['editor']['model']['document']['history']['version']),_0x4485d9['fromVersion']===_0x4485d9['toVersion']?(0x0!==_0x4485d9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4485d9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4485d9['id'],this['_startingVersion']=_0x4485d9['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',_0x2d90e4=>!_0x2d90e4),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb0bb59=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x466cd0;for(const _0x17fb1f in _0xb0bb59){const _0x467f20=_0x17fb1f,_0x54e6de=_0xb0bb59[_0x467f20];if('revisionHistoryLicenseKeyValid'==_0x54e6de||'revisionHistoryLicenseKeyInvalid'==_0x54e6de||'revisionHistoryLicenseKeyExpired'==_0x54e6de||'revisionHistoryLicenseKeyDomainLimit'==_0x54e6de||'revisionHistoryLicenseKeyNotAllowed'==_0x54e6de||'revisionHistoryLicenseKeyEvaluationLimit'==_0x54e6de||'revisionHistoryLicenseKeyTrialLimit'==_0x54e6de||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x54e6de||'revisionHistoryLicenseKeyUsageLimit'==_0x54e6de){delete _0xb0bb59[_0x467f20],_0x466cd0=_0x54e6de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x466cd0&&_0xb0bb59['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x466cd0&&_0xb0bb59['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x466cd0&&_0xb0bb59['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x466cd0&&_0xb0bb59['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x466cd0&&_0xb0bb59['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x466cd0&&_0xb0bb59['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x466cd0&&_0xb0bb59['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x466cd0&&_0xb0bb59['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x18cfb3=this['repository']['getRevision'](0x0),_0x294cbe=await this['getRevisionDocumentData'](_0x18cfb3),_0x33b650=await this['getRevisionRootsAttributes'](_0x18cfb3);this['_replaceEditorDataWithRevisionData'](_0x294cbe,_0x33b650);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x507b0f){this['_source']=_0x507b0f;}async['update'](){const _0x191093=await this['_source']['getLatestVersion']();if(_0x191093>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5ad305=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x191093});_0x5ad305['authors']=_0x5ad305['authorsIds']['map'](_0x17ab7d=>this['editor']['plugins']['get']('Users')['getUser'](_0x17ab7d)),this['currentRevision']['_update'](_0x5ad305);}}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'](_0x4a91b9={},_0x461e20=null){const _0x7e7dbb=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x461e20>this['currentRevision']['toVersion']&&(_0x461e20=null),null===_0x461e20&&(_0x461e20=await this['_source']['getLatestVersion']());const _0x48f758=this['_getFromVersion'](_0x461e20),_0x2aa74c=this['buildRevisionData']({'from':_0x48f758,'to':_0x461e20});if(this['currentRevision']['toVersion']<_0x461e20){const _0x36d207=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x461e20,'to':_0x461e20});_0x36d207['authors']=[],_0x36d207['authorsIds']=[],_0x36d207['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x36d207,!0x0),delete _0x36d207['authors'],_0x7e7dbb['push'](_0x36d207);}_0x4a91b9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a91b9['name']=_0x4a91b9['name']||null,_0x4a91b9['id']=_0x4a91b9['id']||_0x4834e8(),_0x4a91b9={..._0x4a91b9,..._0x2aa74c};const _0x540ef7=this['addRevisionData'](_0x4a91b9);_0x7e7dbb['push'](_0x4a91b9);const _0x5785ba=this['repository']['getIndex'](_0x540ef7);if(0x0!==_0x5785ba){const _0x389fc7=this['repository']['getRevision'](_0x5785ba-0x1);if(_0x389fc7['fromVersion']!==_0x461e20){const _0x51c20c=this['_revisionDataBuilder']['getData'](_0x461e20,_0x389fc7['toVersion']),_0x4f41dd={'id':_0x389fc7['id'],'diffData':_0x51c20c['diffData'],'authorsIds':_0x51c20c['authorsIds'],'authors':_0x51c20c['authorsIds']['map'](_0x1ba668=>this['editor']['plugins']['get']('Users')['getUser'](_0x1ba668)),'fromVersion':_0x461e20};_0x389fc7===this['currentRevision']&&(_0x4f41dd['createdAt']=new Date(_0x4a91b9['createdAt']['getTime']()+0xa)),_0x389fc7['_update'](_0x4f41dd,!0x0),delete _0x4f41dd['authors'],_0x7e7dbb['push'](_0x4f41dd);}}if(this['adapter']){for(const _0x593fda of _0x7e7dbb)this['_bufferUpdate'](_0x593fda['id'],_0x593fda,!0x0);this['sendBufferedUpdates']();}return _0x540ef7;}['addRevisionData'](_0x524206){const _0x4d65cc=this['repository']['createRevision'](_0x524206);return this['adapter']&&_0x4d65cc['on']('_update',(_0x34d8a8,_0xf73c10,_0x4bca66)=>{_0x4bca66||(this['_bufferUpdate'](_0xf73c10['id'],_0xf73c10,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4d65cc,this['_findInsertionIndex'](_0x4d65cc)),_0x4d65cc;}async['getRevisionDocumentData'](_0x1935bf){await this['_loadRevisionData'](_0x1935bf);const _0x9f38e0={};for(const _0x4f7d9e in _0x1935bf['diffData']){if(_0x1935bf['diffData'][_0x4f7d9e]['attachChange']&&!_0x1935bf['diffData'][_0x4f7d9e]['attachChange']['isAttached'])continue;const _0x403df3=this['_removeRevisionMarkers'](JSON['parse'](_0x1935bf['diffData'][_0x4f7d9e]['insertions'])),_0x3601c1=this['editor']['editing']['view']['document'],_0x1f4fe3=new _0x3bd259(_0x3601c1,_0x403df3['map'](_0x2a2a5c=>V(_0x2a2a5c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x9f38e0[_0x4f7d9e]=this['editor']['data']['processor']['toData'](_0x1f4fe3),this['editor']['data']['processor']['useFillerType']('default');}return _0x9f38e0;}async['getRevisionRootsAttributes'](_0x39d828){await this['_loadRevisionData'](_0x39d828);const _0x482ba8={};for(const _0x55f1db in _0x39d828['diffData'])_0x39d828['diffData'][_0x55f1db]['attachChange']&&!_0x39d828['diffData'][_0x55f1db]['attachChange']['isAttached']||(_0x482ba8[_0x55f1db]=_0x39d828['diffData'][_0x55f1db]['attributesAfter']||{});return _0x482ba8;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x25c47c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x10295b=0x0;_0x10295b<_0x25c47c['length'];_0x10295b++){const _0x1182aa=_0x25c47c[_0x10295b];let _0x5b1241=!0x1;for(const _0x45b89f of Object['keys'](_0x1182aa))void 0x0===_0x1182aa[_0x45b89f]?delete _0x1182aa[_0x45b89f]:'id'!==_0x45b89f&&(_0x5b1241=!0x0);_0x5b1241||(_0x25c47c[_0x10295b]=null);}if(_0x25c47c=_0x25c47c['filter'](_0x2a6012=>null!==_0x2a6012),!_0x25c47c['length'])return;for(let _0x364b23=0x0;_0x364b23<_0x25c47c['length'];_0x364b23++){const _0x102e64=_0x25c47c[_0x364b23];void 0x0!==_0x102e64['fromVersion']&&void 0x0===_0x102e64['toVersion']&&(_0x102e64['toVersion']=this['repository']['getRevision'](_0x102e64['id'])['toVersion']),void 0x0!==_0x102e64['toVersion']&&void 0x0===_0x102e64['fromVersion']&&(_0x102e64['fromVersion']=this['repository']['getRevision'](_0x102e64['id'])['fromVersion']);}const _0x126300=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x25c47c,_0x126300)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x205b29=>{if(_0x205b29){for(const _0x40a067 of _0x205b29)this['setRevisionData']({'id':_0x40a067['id'],'createdAt':_0x40a067['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x566105,_0x518006){let _0x3dfc30=this['editor']['config']['get']('initialData'),_0x58be64=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3dfc30){_0x3dfc30={};for(const _0x3468d2 of this['editor']['model']['document']['getRootNames']())_0x3dfc30[_0x3468d2]='';}if('string'==typeof _0x3dfc30&&(_0x3dfc30={'main':_0x3dfc30}),void 0x0===_0x58be64){_0x58be64={};for(const _0x805675 of this['editor']['model']['document']['getRootNames']())_0x58be64[_0x805675]={};}let _0x2b2680=!0x1;const _0xcb6f01=Object['keys'](_0x3dfc30),_0x17de4c=Object['keys'](_0x566105);for(const _0x1c2a9f of _0xcb6f01){if(_0x3dfc30[_0x1c2a9f]!==_0x566105[_0x1c2a9f]&&''!==_0x3dfc30[_0x1c2a9f]['trim']()){_0x2b2680=!0x0;break;}if(!_0x141f62(_0x58be64[_0x1c2a9f],_0x518006[_0x1c2a9f])&&Object['keys'](_0x58be64[_0x1c2a9f])['length']>0x0){_0x2b2680=!0x0;break;}}_0x2b2680||(_0x2b2680=_0x17de4c['some'](_0x5b951a=>!this['editor']['model']['document']['getRoot'](_0x5b951a))),_0x2b2680&&_0x1655ad('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3dfc30,'editorRootsAttributes':_0x58be64,'revisionData':_0x566105,'revisionRootsAttributes':_0x518006}),this['editor']['config']['set']('initialData',_0x566105),this['editor']['config']['set']('rootsAttributes',_0x518006);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x547ed0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x547ed0['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1bf939){const _0x583ec1=this['repository']['getRevisions']();_0x583ec1['reverse']();let _0x23c007=0x0;for(;_0x23c007<_0x583ec1['length'];){const _0x1eb980=_0x583ec1[_0x23c007];if(_0x1eb980===this['currentRevision']){_0x23c007++;continue;}if(_0x1eb980['id']===this['_initialRevisionId'])break;const _0x258083=_0x1bf939['toVersion']-_0x1eb980['toVersion']||_0x1bf939['fromVersion']-_0x1eb980['fromVersion'];if(_0x258083>0x0)break;if(_0x258083<0x0)_0x23c007++;else{if(!_0x1bf939['creator']&&_0x1eb980['creator'])break;if(_0x1eb980['creator']||!_0x1bf939['creator']){if(_0x1bf939['createdAt']>_0x1eb980['createdAt'])break;_0x23c007++;}else _0x23c007++;}}return _0x23c007;}['setRevisionData'](_0x173b59){const _0x5a1532=this['repository']['getRevision'](_0x173b59['id']);if(_0x173b59['createdAt']&&(_0x173b59['createdAt']=new Date(_0x173b59['createdAt'])),_0x173b59['authorsIds']){const _0x470520=this['editor']['plugins']['get']('Users');_0x173b59['authors']=_0x173b59['authorsIds']['map'](_0x595af1=>_0x470520['getUser'](_0x595af1));}_0x5a1532['_update'](_0x173b59,!0x0);}['buildRevisionData']({revision:_0x161a7d=null,from:_0x372786=null,to:_0x934765=null}){_0x372786=null!==_0x372786?_0x372786:_0x161a7d['fromVersion'],_0x934765=null!==_0x934765?_0x934765:_0x161a7d['toVersion'];const _0x1c83ca=this['_revisionDataBuilder']['getData'](_0x372786,_0x934765),_0x1cd207={'diffData':_0x1c83ca['diffData'],'authorsIds':_0x1c83ca['authorsIds'],'fromVersion':_0x372786,'toVersion':_0x934765};if(!_0x161a7d||_0x934765!==_0x161a7d['toVersion']){const _0x2d218b=_0x934765-0x1,_0xe541aa=this['_source']['history']['getOperation'](_0x2d218b);_0x1cd207['createdAt']=_0xe541aa&&_0xe541aa['createdAt']||new Date();}if(this['_loadedStateData']&&_0x372786===this['_loadedStateData']['fromVersion']){for(const _0x15d0ab of this['_loadedStateData']['authors'])_0x1cd207['authorsIds']['includes'](_0x15d0ab['id'])||_0x1cd207['authorsIds']['push'](_0x15d0ab['id']);}return _0x1cd207;}['_loadRevisionData'](_0x30ad29){if(!_0x30ad29||_0x30ad29['diffData'])return Promise['resolve']();{const _0x474922=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x474922,'revisionId':_0x30ad29['id']})['then'](_0x531b0f=>{_0x30ad29['diffData']=_0x531b0f['diffData'];});}}['_bufferUpdate'](_0x37eb61,_0x3a9c2d,_0x283c1e){if(this['_bufferedUpdates']['has'](_0x37eb61)){const _0x4471a8=this['_bufferedUpdates']['get'](_0x37eb61);_0x3a9c2d=_0x283c1e?{..._0x4471a8,..._0x3a9c2d}:{..._0x3a9c2d,..._0x4471a8};}this['_bufferedUpdates']['set'](_0x37eb61,_0x3a9c2d);}['_getFromVersion'](_0x2550f9){const _0x5a20ab=this['repository']['getRevisions']();_0x5a20ab['reverse'](),_0x5a20ab['shift']();const _0x38760d=_0x5a20ab['find'](_0x99c052=>_0x99c052['toVersion']<=_0x2550f9)['toVersion'];return _0x38760d<this['_startingVersion']?this['_startingVersion']:_0x38760d;}['_createInitialRevision'](_0x17c215){const _0x51d011=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x51d011)this['_initialRevisionId']=_0x51d011['id'];else{const _0x34601e=!this['editor']['model']['document']['roots']['find'](_0x4f4390=>this['editor']['model']['hasContent'](_0x4f4390)),_0x3dc7cd=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c6458=R(this['editor']['locale'],_0x34601e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x17c215,'to':_0x17c215,'id':this['_initialRevisionId'],'name':_0x4c6458,'creatorId':_0x3dc7cd});}}['_createCurrentRevision'](_0x499acc){const _0x29a8c2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x29a8c2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x499acc,'to':_0x499acc,'id':_0x29a8c2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x33f8f4,from:_0x47e1d5,to:_0x568d23,creatorId:_0xc9fc35,id:_0x3ce0ad}){const _0x29ff2f=this['buildRevisionData']({'from':_0x47e1d5,'to':_0x568d23});_0x29ff2f['name']=_0x33f8f4,_0x29ff2f['creatorId']=_0xc9fc35,_0x29ff2f['id']=_0x3ce0ad;const _0xf62372=this['addRevisionData'](_0x29ff2f);return this['adapter']&&this['_bufferUpdate'](_0x29ff2f['id'],_0x29ff2f,!0x0),_0xf62372;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1712ba){return(_0x1712ba=_0x1712ba['filter'](_0x1acff0=>!_0x1acff0['name']||'revision-start'!==_0x1acff0['name']&&'revision-end'!==_0x1acff0['name']))['forEach'](_0x396469=>{'string'!=typeof _0x396469&&(_0x396469['children']=this['_removeRevisionMarkers'](_0x396469['children']),_0x396469['attributes']=_0x396469['attributes']['filter'](_0x3a4174=>!_0x3a4174[0x0]['startsWith']('data-revision-')));}),_0x1712ba;}}function V(_0x8e8c25,_0x3c9f74){const _0x288956=_0x3c9f74['editing']['view']['document'];if('string'==typeof _0x8e8c25)return new _0x3c17b8(_0x288956,_0x8e8c25);{const _0x26450e=_0x8e8c25['children']['map'](_0x590da=>V(_0x590da,_0x3c9f74));return new(C[_0x8e8c25['type']]||_0x20d11f)(_0x288956,_0x8e8c25['name'],_0x8e8c25['attributes'],_0x26450e);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5df59c){this['editor']=_0x5df59c,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'](_0x3f265d){this['source']=_0x3f265d;const _0x3f6b3e=new Map(),_0x3adabe=new Map(),_0x3c1222=this['editor']['model']['document']['roots']['map'](_0x30fa6c=>_0x30fa6c['rootName']);for(const _0x514f90 of _0x3c1222){const _0x40d81c=this['editor']['model']['document']['getRoot'](_0x514f90),_0x399f31=F(_0x40d81c);_0x3f6b3e['set'](_0x514f90,_0x399f31),_0x3adabe['set'](_0x514f90,Object['fromEntries'](_0x40d81c['getAttributes']()));}const _0x554bed=Array['from'](this['editor']['model']['markers'])['map'](_0x150ab6=>[_0x150ab6['name'],_0x150ab6['getRange']()]),_0x402061=this['source']['version'];this['_saveMetaData'](_0x402061,_0x3f6b3e,_0x554bed,_0x3adabe),this['_startingRevisionId']=this['_revisionId'];const _0x364729=new Map(),_0x27e586=new Map();for(const _0x110b47 of _0x3c1222){const _0x1a2b92=B(_0x110b47);_0x364729['set'](_0x110b47,_0x1a2b92),_0x27e586['set'](_0x110b47,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x364729,[],_0x27e586);}['getData'](_0x31369e,_0x14078a){if(this['_lastFrom']===_0x31369e&&this['_lastTo']<=_0x14078a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x14078a,!0x0);else{if(!this['_savedMetaData']['has'](_0x31369e)){const _0x33fbe8=this['_getPreviousFrom'](_0x31369e);this['_calculateMetaData'](_0x33fbe8,_0x31369e,!0x1);}this['_calculateMetaData'](_0x31369e,_0x14078a,!0x0);}return this['_lastFrom']=_0x31369e,this['_lastTo']=_0x14078a,this['_getState']();}['loadState'](_0x347112){this['_reset'](),this['_lastFrom']=_0x347112['fromVersion'],this['_lastTo']=_0x347112['toVersion'];for(const _0x11110d in _0x347112['diffData']){const _0x21d23f=_0x347112['diffData'][_0x11110d]['attachChange'],_0x30d32e=_0x3bf4ba(_0x347112['diffData'][_0x11110d]['attributesBefore'])||{},_0x166ce6=this['_makeModelFromViewString'](_0x347112['diffData'][_0x11110d]['deletions']);_0x166ce6['rootName']=_0x11110d,_0x166ce6['_isAttached']=!_0x21d23f||!_0x21d23f['isAttached'],_0x166ce6['isAttached']=()=>_0x166ce6['_isAttached'],this['_baseRoots']['set'](_0x11110d,_0x166ce6),this['_baseRootsAttributes']['set'](_0x11110d,_0x30d32e),_0x21d23f&&this['_touchedRoots']['set'](_0x11110d,_0x21d23f);const _0x5e36d5=this['_makeIdsRoot'](_0x166ce6);this['_baseIdsRoots']['set'](_0x11110d,_0x5e36d5);for(const [_0x25aea3,_0x4a5c48]of _0x166ce6['markers']){if(!_0x25aea3['startsWith']('revision:'))continue;const _0x107c17=_0x25aea3['split'](':')[0x2];for(const _0x58d9b1 of _0x4a5c48['getWalker']({'singleCharacters':!0x0})){const _0x40a731=this['_getVidAttributeName'](_0x58d9b1),_0x43334a='elementEnd'==_0x58d9b1['type']?_0x58d9b1['previousPosition']['path']['slice'](0x0,-0x1):_0x58d9b1['previousPosition']['path'],_0x32937a=_0x5e36d5['getNodeByPath'](_0x43334a)['getAttribute'](_0x40a731);this['_touched']['set'](_0x32937a,{'userId':_0x107c17});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2a346e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x45abd7=>!this['_touched']['has'](_0x45abd7));let _0x3f5e10=0x0;const _0x2c7d33=new Map();for(const _0x286cf1 in _0x347112['diffData']){const _0xcdb094=_0x347112['diffData'][_0x286cf1]['attachChange'],_0x780cfd=_0x3bf4ba(_0x347112['diffData'][_0x286cf1]['attributesAfter'])||{},_0x17e9fe=this['_makeModelFromViewString'](_0x347112['diffData'][_0x286cf1]['insertions']);_0x17e9fe['rootName']=_0x286cf1,_0x17e9fe['_isAttached']=!_0xcdb094||_0xcdb094['isAttached'],_0x17e9fe['isAttached']=()=>_0x17e9fe['_isAttached'],this['_diffRoots']['set'](_0x286cf1,_0x17e9fe),this['_diffRootsAttributes']['set'](_0x286cf1,_0x780cfd);const _0x22afc6=this['_makeIdsRoot'](_0x17e9fe,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x286cf1,_0x22afc6),_0x2c7d33['set'](_0x286cf1,_0x17e9fe['isAttached']()?_0x780cfd:{});for(const [_0x117aa5,_0x199947]of _0x17e9fe['markers']){if(!_0x117aa5['startsWith']('revision:'))continue;const _0x43c4b=_0x117aa5['split'](':')[0x2];for(const _0x35184b of _0x199947['getWalker']({'singleCharacters':!0x0})){const _0x2b2f4b=this['_getVidAttributeName'](_0x35184b),_0x4ec022=this['_revisionId']++,_0x5872cb='elementEnd'==_0x35184b['type']?_0x35184b['previousPosition']['path']['slice'](0x0,-0x1):_0x35184b['previousPosition']['path'];_0x22afc6['getNodeByPath'](_0x5872cb)['_setAttribute'](_0x2b2f4b,_0x4ec022),this['_touched']['set'](_0x4ec022,{'userId':_0x43c4b});}}for(const _0x27af7f of this['editor']['model']['createRangeIn'](_0x17e9fe)['getWalker']({'singleCharacters':!0x0})){const _0x5dbbc0=this['_getVidAttributeName'](_0x27af7f),_0x327c0='elementEnd'==_0x27af7f['type']?_0x27af7f['previousPosition']['path']['slice'](0x0,-0x1):_0x27af7f['previousPosition']['path'],_0x10aa06=_0x22afc6['getNodeByPath'](_0x327c0);_0x10aa06['getAttribute'](_0x5dbbc0)>0x0||_0x10aa06['_setAttribute'](_0x5dbbc0,_0x2a346e[_0x3f5e10++]);}for(const [_0xc7d471,_0x16f77c]of _0x17e9fe['markers'])_0xc7d471['startsWith']('revision:')||this['_markers']['set'](_0xc7d471,_0x16f77c);}const _0x3b610c=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3b610c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3b610c,0x1));const _0x229164=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x229164),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x229164,0x1));const _0x3759dc=Array['from'](this['_diffRoots'])['map'](([_0x5bf134,_0x5265de])=>[_0x5bf134,F(_0x5265de)]);this['_saveMetaData'](this['_lastTo'],_0x3759dc,this['_markers'],_0x2c7d33);}['_makeModelFromViewString'](_0x222265){const _0x10a759=JSON['parse'](_0x222265),_0x295f8e=this['editor']['editing']['view']['document'],_0x2b854c=new _0x3bd259(_0x295f8e,_0x10a759['map'](_0x2a2cb4=>V(_0x2a2cb4,this['editor'])));return this['editor']['data']['toModel'](_0x2b854c);}['_saveMetaData'](_0x58f1aa,_0x2b4281,_0x39a444,_0x484810){const _0x448f1f=new Map(_0x2b4281),_0x55c48e=new Map(_0x3bf4ba(_0x484810)),_0x3484d2=new Map();for(const [_0x141146,_0x61678c]of _0x39a444)_0x3484d2['set'](_0x141146,{'start':_0x61678c['start']['clone'](),'end':_0x61678c['end']['clone'](),'rootName':_0x61678c['root']['rootName']});this['_savedMetaData']['set'](_0x58f1aa,{'roots':_0x448f1f,'markers':_0x3484d2,'rootsAttributes':_0x55c48e});}['_removeMetaData'](_0xc9f6ff){this['_savedMetaData']['delete'](_0xc9f6ff);}['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'](_0x2a6e50,_0x2850fe=null){let _0x38cb62=null;_0x2a6e50['is']('documentFragment')||(_0x38cb62=new ft(_0x2a6e50['name'],{'vid_start':null===_0x2850fe?this['_revisionId']++:_0x2850fe++}));const _0x763c11=[];for(const _0x42da61 of _0x2a6e50['getChildren']())if(_0x42da61['is']('element')){_0x763c11['push'](this['_makeIdsRoot'](_0x42da61,_0x2850fe));const _0x38a613=_0x763c11[_0x763c11['length']-0x1];null!==_0x2850fe&&(_0x2850fe=_0x38a613['is']('element','$text')?_0x38a613['getAttribute']('vid')+0x1:_0x38a613['getAttribute']('vid_end')+0x1);}else{for(let _0xafdb95=0x0;_0xafdb95<_0x42da61['offsetSize'];_0xafdb95++)_0x763c11['push'](new ft('$text',{'vid':null===_0x2850fe?this['_revisionId']++:_0x2850fe++}));}if(_0x2a6e50['is']('documentFragment')){const _0x355adf=B(_0x2a6e50['rootName']);return _0x355adf['_insertChild'](0x0,_0x763c11),_0x355adf;}return _0x38cb62['_setAttribute']('vid_end',null===_0x2850fe?this['_revisionId']++:_0x2850fe++),_0x38cb62['_insertChild'](0x0,_0x763c11),_0x38cb62;}['_calculateMetaData'](_0x581440,_0x499f8c,_0x1e530f){this['_reset']();const {roots:_0x2c17fd,markers:_0x1d38b7,rootsAttributes:_0x456f83}=this['_savedMetaData']['get'](_0x581440);this['_baseRoots']=new Map(_0x2c17fd),this['_baseRootsAttributes']=new Map(_0x3bf4ba(_0x456f83));for(const [_0x1f6ae9,_0x5daafc]of this['_baseRoots'])if('$graveyard'!==_0x1f6ae9&&(this['_diffRoots']['set'](_0x1f6ae9,F(_0x5daafc)),this['_diffRootsAttributes']=new Map(_0x3bf4ba(_0x456f83)),_0x1e530f)){const _0x49da58=this['_revisionId'];this['_idsRoots']['set'](_0x1f6ae9,this['_makeIdsRoot'](_0x5daafc)),this['_baseIdsRoots']['set'](_0x1f6ae9,this['_makeIdsRoot'](_0x5daafc,_0x49da58));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1e530f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x391d77,_0x270efd]of _0x1d38b7){const _0x5efa48=this['_baseRoots']['get'](_0x270efd['rootName']),_0x2a8b0d=this['_diffRoots']['get'](_0x270efd['rootName']),_0x127a0d=new vt(this['_fixPosition'](_0x270efd['start'],_0x5efa48),this['_fixPosition'](_0x270efd['end'],_0x5efa48)),_0x58592f=this['_fixRange'](_0x127a0d,_0x2a8b0d);_0x5efa48['markers']['set'](_0x391d77,_0x127a0d),this['_markers']['set'](_0x391d77,_0x58592f);}this['_applyOperations'](_0x581440,_0x499f8c,_0x1e530f);}['_applyOperations'](_0x7b0c89,_0x115f6e,_0x1c7cbb){for(const _0x64d36b of this['source']['getOperations'](_0x7b0c89,_0x115f6e))this['_handleOperation'](_0x64d36b,_0x1c7cbb);for(const _0x41efe9 of this['_diffRoots']['values']())_0x41efe9['markers']['clear']();for(const [_0x5a47aa,_0xe87ad]of this['_markers']){this['_diffRoots']['get'](_0xe87ad['root']['rootName'])['markers']['set'](_0x5a47aa,_0xe87ad['clone']());}const _0x118f14=new Map(),_0x8bec95=new Map();for(const [_0x5a55f6,_0x328221]of this['_diffRoots'])_0x118f14['set'](_0x5a55f6,F(_0x328221)),_0x8bec95['set'](_0x5a55f6,this['_diffRootsAttributes']['get'](_0x5a55f6));this['_saveMetaData'](_0x115f6e,_0x118f14,this['_markers'],_0x8bec95);}['_getPreviousFrom'](_0x13f3c6){const _0x21d3d2=Array['from'](this['_savedMetaData']['keys']());_0x21d3d2['sort']((_0x355dd6,_0x332cc6)=>_0x355dd6-_0x332cc6),_0x21d3d2['reverse']();for(const _0x2c12e7 of _0x21d3d2)if(_0x2c12e7<_0x13f3c6)return _0x2c12e7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x385c80,_0x1fb81e){const _0x14e529=Array['from'](_0x1fb81e['markers'])['map'](([_0x423f84,_0x180de6])=>[_0x423f84,this['_fixRange'](_0x180de6,_0x385c80)]);_0x385c80['markers']=new Map(_0x14e529);}['_transformMarkers'](_0xe6997f){for(const _0x39f4d7 of this['_markers']['values']()){const _0x53adb7=_0x39f4d7['getTransformedByOperation'](_0xe6997f),_0x50c06e=vt['_createFromRanges'](_0x53adb7);_0x39f4d7['start']=_0x50c06e['start'],_0x39f4d7['end']=_0x50c06e['end'];}}['_handleOperation'](_0x267a2f,_0x4144a8){if('addRoot'!=_0x267a2f['type']&&'detachRoot'!=_0x267a2f['type']){if('insert'==_0x267a2f['type']){const _0x19f16c=_0x267a2f['position']['root']['rootName'];this['_diffRoots']['has'](_0x19f16c)||(this['_diffRoots']['set'](_0x19f16c,B(_0x19f16c,!0x0)),this['_diffRootsAttributes']['set'](_0x19f16c,{}),_0x4144a8&&this['_idsRoots']['set'](_0x19f16c,B(_0x19f16c,!0x0)));}else{if('addRootAttribute'==_0x267a2f['type']||'removeRootAttribute'==_0x267a2f['type']||'changeRootAttribute'==_0x267a2f['type'])return void this['_handleRootAttributeOperation'](_0x267a2f);'marker'==_0x267a2f['type']&&this['_handleMarkerOperation'](_0x267a2f);}if('marker'!==_0x267a2f['type']){const _0x5c92ff=this['_cloneOperation'](_0x267a2f,this['_diffRoots']);_0x5c92ff['_execute'](),this['_transformMarkers'](_0x5c92ff);}if(_0x4144a8)switch(_0x267a2f['type']){case'insert':this['_handleInsertOperation'](_0x267a2f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x267a2f);break;case'merge':this['_handleMergeOperation'](_0x267a2f);break;case'split':this['_handleSplitOperation'](_0x267a2f);}}else this['_handleRootOperation'](_0x267a2f,_0x4144a8);}['_cloneOperation'](_0x4ee94f,_0x32c85e){const _0x4baebe=_0x4ee94f['clone']();return _0x4baebe['_authorId']=_0x4ee94f['_authorId'],this['_fixOperation'](_0x4baebe,_0x32c85e),_0x4baebe;}['_getBaseVids'](_0xf077f4){return _0xf077f4['map'](_0x3781d4=>{const _0x146d21=this['_getVidAttributeName'](_0x3781d4);return Number(_0x3781d4['item']['getAttribute'](_0x146d21));});}['_generateTape'](_0x2263f3,_0xe48d88){if(_0x2263f3['is']('element','$text'))_0xe48d88['push']({'item':_0x2263f3,'type':'text'});else{_0x2263f3['is']('element')&&_0xe48d88['push']({'item':_0x2263f3,'type':'elementStart'});for(const _0x1044a5 of _0x2263f3['getChildren']())this['_generateTape'](_0x1044a5,_0xe48d88);_0x2263f3['is']('element')&&_0xe48d88['push']({'item':_0x2263f3,'type':'elementEnd'});}return _0xe48d88;}['_getState'](){const _0x27e96d=new Map(this['_touched']),_0x30eedf=new Map(_0x27e96d),_0x1989b6=new Map(),_0x136d8e={'insertions':{},'deletions':{}},_0xdbe6fc={'insertions':{},'deletions':{}},_0x5067f8=new Map(),_0x2da59c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2da59c['delete']('$graveyard');for(const _0x1e07ce of _0x2da59c){const _0x3fde2e=this['_diffRoots']['get'](_0x1e07ce)||B(_0x1e07ce,!0x1),_0x16dd5d=this['_baseRoots']['get'](_0x1e07ce)||B(_0x1e07ce,!0x1);_0x3fde2e['isAttached']()||_0x16dd5d['isAttached']()?(_0x136d8e['insertions'][_0x1e07ce]=F(_0x3fde2e),_0x136d8e['deletions'][_0x1e07ce]=F(_0x16dd5d),this['_copyMarkers'](_0x136d8e['deletions'][_0x1e07ce],_0x16dd5d),this['_copyMarkers'](_0x136d8e['insertions'][_0x1e07ce],_0x3fde2e),_0xdbe6fc['insertions'][_0x1e07ce]=this['_generateTape'](this['_idsRoots']['get'](_0x1e07ce),[]),_0xdbe6fc['deletions'][_0x1e07ce]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1e07ce)||B(_0x1e07ce,!0x1),[])):_0x2da59c['delete'](_0x1e07ce);}for(const _0x31c240 of _0x2da59c){const _0x1edc0b=_0xdbe6fc['insertions'][_0x31c240];for(const _0x3d4209 of _0x1edc0b){const _0x5084d0=this['_getVidAttributeName'](_0x3d4209),_0x41ffea=_0x3d4209['item']['getAttribute'](_0x5084d0);_0x30eedf['delete'](_0x41ffea),_0x41ffea>=this['_startingRevisionId']&&_0x1989b6['set'](_0x41ffea,_0x27e96d['get'](_0x41ffea));}}for(const _0xe8e61f of _0x2da59c){const _0x3b9a25=_0xdbe6fc['insertions'][_0xe8e61f],_0x4ed23b=this['_getBaseVids'](_0xdbe6fc['deletions'][_0xe8e61f]);let _0x3b8483=0x0;for(const _0x4e1d07 of _0x3b9a25){const _0x3d48a8=this['_getVidAttributeName'](_0x4e1d07),_0x134218=_0x4e1d07['item']['getAttribute'](_0x3d48a8);if(!_0x1989b6['has'](_0x134218)&&!_0x5067f8['has'](_0x134218)){if(_0x30eedf['has'](_0x134218))_0x3b8483++;else{if(_0x134218!=_0x4ed23b[_0x3b8483]){const _0x249827=_0x27e96d['get'](_0x134218)||_0x27e96d['get'](_0x4ed23b[_0x3b8483]);for(;_0x134218!=_0x4ed23b[_0x3b8483];)_0x30eedf['has'](_0x4ed23b[_0x3b8483])||(_0x5067f8['set'](_0x4ed23b[_0x3b8483],_0x249827),_0x27e96d['set'](_0x4ed23b[_0x3b8483],_0x249827)),_0x3b8483++;}_0x3b8483++;}}}}for(const _0x2a64cb of _0x2da59c){const _0x36b8a6=_0xdbe6fc['insertions'][_0x2a64cb];for(const _0x1e6f4a of _0x36b8a6){const _0x17ee32=this['_getVidAttributeName'](_0x1e6f4a),_0x5830cf=_0x1e6f4a['item']['getAttribute'](_0x17ee32);if(_0x5067f8['has'](_0x5830cf)){const _0x1d807=_0x5067f8['get'](_0x5830cf);_0x30eedf['has'](_0x5830cf)||_0x30eedf['set'](_0x5830cf,{..._0x1d807}),_0x1989b6['set'](_0x5830cf,{..._0x1d807});}}}for(const _0x124b31 of _0x30eedf['keys']())_0x124b31>=this['_startingRevisionId']&&_0x30eedf['delete'](_0x124b31);const _0x23d764=new Map();for(const _0x19da08 of _0x2da59c){let _0x5f39f4=_0xdbe6fc['insertions'][_0x19da08];for(const _0x1fe06e of _0x5f39f4)if(_0x1fe06e['item']['is']('element','tableCell')){const _0x5bc82e=this['_getVidAttributeName'](_0x1fe06e),_0x53684b=_0x1fe06e['item']['getAttribute'](_0x5bc82e);if(_0x1989b6['has'](_0x53684b)){const _0x1ebf0d=_0x1fe06e['item']['parent']['parent']['getAttribute']('vid_start'),_0x338fc3=_0x23d764['get'](_0x1ebf0d)||new Set();_0x338fc3['add'](_0x1989b6['get'](_0x53684b)['userId']),_0x23d764['set'](_0x1ebf0d,_0x338fc3);}}_0x5f39f4=_0xdbe6fc['deletions'][_0x19da08];for(const _0x422885 of _0x5f39f4)if(_0x422885['item']['is']('element','tableCell')){const _0x5bcc8c=this['_getVidAttributeName'](_0x422885),_0x19db16=_0x422885['item']['getAttribute'](_0x5bcc8c);if(_0x30eedf['has'](_0x19db16)){const _0x2d4112=_0x422885['item']['parent']['parent']['getAttribute']('vid_start'),_0x2b60cb=_0x23d764['get'](_0x2d4112)||new Set();_0x2b60cb['add'](_0x30eedf['get'](_0x19db16)['userId']),_0x23d764['set'](_0x2d4112,_0x2b60cb);}}for(const _0x487f42 of _0x23d764['keys']())(_0x1989b6['has'](_0x487f42)||_0x30eedf['has'](_0x487f42))&&_0x23d764['delete'](_0x487f42);}for(const _0xa448f3 of _0x2da59c){const _0x4f4f80=_0xdbe6fc['insertions'][_0xa448f3];let _0x3f0dfd=null,_0x5ef562=null;for(const _0x24d49c of _0x4f4f80){const _0x3b1b30=this['_getVidAttributeName'](_0x24d49c),_0x4ddbdc=_0x24d49c['item']['getAttribute'](_0x3b1b30),_0x5f18bc=_0x23d764['get'](_0x4ddbdc);_0x5f18bc&&'elementStart'==_0x24d49c['type']&&(_0x3f0dfd=Array['from'](_0x5f18bc)[0x0],_0x5ef562=_0x24d49c['item']['getAttribute']('vid_end')),_0x3f0dfd&&(_0x30eedf['set'](_0x4ddbdc,{'userId':_0x3f0dfd}),_0x1989b6['set'](_0x4ddbdc,{'userId':_0x3f0dfd})),_0x4ddbdc==_0x5ef562&&(_0x3f0dfd=null,_0x5ef562=null);}}const _0x471559={},_0x2b3b73=new Set();for(const _0x5270fb of _0x2da59c){const _0x2a77d8=_0x136d8e['deletions'][_0x5270fb],_0x22ef47=_0x136d8e['insertions'][_0x5270fb];for(const {userId:_0x33c8cf}of this['_touchedMarkers']['values']())null!==_0x33c8cf&&_0x2b3b73['add'](_0x33c8cf);for(const {userId:_0xeaa410}of this['_touchedRoots']['values']())null!==_0xeaa410&&_0x2b3b73['add'](_0xeaa410);this['_markChanges'](_0x22ef47,_0xdbe6fc['insertions'][_0x5270fb],_0x1989b6,'insertion',_0x2b3b73),this['_markChanges'](_0x2a77d8,_0xdbe6fc['deletions'][_0x5270fb],_0x30eedf,'deletion',_0x2b3b73),_0x471559[_0x5270fb]={'insertions':this['_prepareViewToSave'](_0x22ef47),'deletions':this['_prepareViewToSave'](_0x2a77d8),'attachChange':this['_touchedRoots']['get'](_0x5270fb)||null,'attributesBefore':_0x3bf4ba(this['_baseRootsAttributes']['get'](_0x5270fb))||{},'attributesAfter':_0x3bf4ba(this['_diffRootsAttributes']['get'](_0x5270fb))};}return{'diffData':_0x471559,'authorsIds':Array['from'](_0x2b3b73)};}['_processRootBeforeSave'](_0x1cb7ab){for(const [,_0x24bdc1]of _0x1cb7ab['markers']){const _0x58faf9=_0x24bdc1['start']['getAncestors']()['filter'](_0x261ad7=>'tableCell'==_0x261ad7['name']);for(const _0x195886 of _0x58faf9)0x1==_0x195886['childCount']&&_0x195886['getChild'](0x0)['is']('element','paragraph')&&_0x195886['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xbb119c){this['_processRootBeforeSave'](_0xbb119c);const _0x4b30e7=this['editor']['data']['toView'](_0xbb119c,{}),_0x345622=Array['from'](_0x4b30e7['getChildren']())['map'](_0x3a4777=>this['_getViewJson'](_0x3a4777));return JSON['stringify'](_0x345622);}['_getViewJson'](_0x37a3f8){if(_0x37a3f8['is']('$text'))return _0x37a3f8['data'];{const _0x3f92fc=_0x37a3f8;return{'type':Object['keys'](C)['find'](_0x3223c6=>_0x37a3f8 instanceof C[_0x3223c6]),'name':_0x3f92fc['name'],'attributes':Array['from'](_0x3f92fc['getAttributes']()),'children':Array['from'](_0x3f92fc['getChildren']())['map'](_0x633b62=>this['_getViewJson'](_0x633b62))};}}['_markChanges'](_0x2b661a,_0x5a8e10,_0x354831,_0x12e15f,_0x316e03){let _0x589032=null,_0x1ddefb=null,_0x1e8f52=0x0;const _0x4b4876=this['editor']['model'];for(let _0x382d25=0x0;_0x382d25<_0x5a8e10['length'];_0x382d25++){const _0x60e9b9=this['_getVidAttributeName'](_0x5a8e10[_0x382d25]),_0x1430d6=_0x5a8e10[_0x382d25]['item']['getAttribute'](_0x60e9b9),_0x9e7da0=_0x354831['get'](_0x1430d6),_0x56d8e1=_0x382d25==_0x5a8e10['length']-0x1;(!_0x589032&&_0x9e7da0&&(_0x589032=_0x9e7da0,_0x1ddefb=_0x5a8e10[_0x382d25]),_0x589032&&(!_0x9e7da0||_0x9e7da0['userId']!=_0x589032['userId']))&&(_0x2b2242(_0x9e7da0,J(_0x1ddefb,_0x2b661a,_0x4b4876),J(_0x5a8e10[_0x382d25],_0x2b661a,_0x4b4876)),_0x589032=_0x9e7da0||null,_0x1ddefb=_0x9e7da0?_0x5a8e10[_0x382d25]:null),_0x589032&&_0x56d8e1&&_0x2b2242(_0x9e7da0,J(_0x1ddefb,_0x2b661a,_0x4b4876),q(_0x5a8e10[_0x382d25],_0x2b661a,_0x4b4876));}function _0x2b2242(_0x357cac,_0x509a2d,_0xa3b14f){const _0x4429a6=_0x589032['userId'],_0x8e8506='revision:'+_0x12e15f+':'+_0x4429a6+':'+_0x1e8f52++,_0x5385cd=_0x4b4876['createRange'](_0x509a2d,_0xa3b14f);_0x2b661a['markers']['set'](_0x8e8506,_0x5385cd),null!==_0x4429a6&&_0x316e03['add'](_0x4429a6);}}['_getVidAttributeName'](_0x34903c){switch(_0x34903c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x21e639,_0x581e50){_0x21e639['baseVersion']=null;for(const _0x40f06a in _0x21e639){const _0x3a5cac=_0x21e639[_0x40f06a];if(_0x3a5cac instanceof gt){const _0x30eece=_0x581e50['get'](_0x3a5cac['root']['rootName']);_0x21e639[_0x40f06a]=this['_fixPosition'](_0x3a5cac,_0x30eece);}if(_0x3a5cac instanceof vt){const _0x4ad2ec=_0x581e50['get'](_0x3a5cac['root']['rootName']);_0x21e639[_0x40f06a]=this['_fixRange'](_0x3a5cac,_0x4ad2ec);}'root'===_0x40f06a&&(_0x21e639['root']=_0x581e50['get'](_0x21e639['root']['rootName']));}}['_fixRange'](_0x26d96e,_0x1c02de){return this['editor']['model']['createRange'](this['_fixPosition'](_0x26d96e['start'],_0x1c02de),this['_fixPosition'](_0x26d96e['end'],_0x1c02de));}['_fixPosition'](_0x5d847f,_0xd62476){return this['editor']['model']['createPositionFromPath'](_0xd62476,_0x5d847f['path'],_0x5d847f['stickiness']);}['_handleInsertOperation'](_0x30597b){const _0x1463bd=this['_idsRoots']['get'](_0x30597b['position']['root']['rootName']),_0x3bac6e=this['_fixPosition'](_0x30597b['position'],_0x1463bd),_0x1844b0=null===_0x30597b['_authorId']?null:_0x30597b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a1734=_0x3bac6e['parent'],_0x50ae15=this['_revisionId'],_0x2bdcc1=[];for(const _0x2b569f of _0x30597b['nodes'])if(_0x2b569f['is']('element'))_0x2bdcc1['push'](this['_makeIdsRoot'](_0x2b569f));else{for(let _0x44636a=0x0;_0x44636a<_0x2b569f['offsetSize'];_0x44636a++)_0x2bdcc1['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x23c5da=this['_revisionId'];for(let _0x450169=_0x50ae15;_0x450169<_0x23c5da;_0x450169++)this['_touched']['set'](_0x450169,{'userId':_0x1844b0});_0x2a1734['_insertChild'](_0x3bac6e['offset'],_0x2bdcc1);}['_handleMoveOperation'](_0xdd0757){(_0xdd0757=this['_cloneOperation'](_0xdd0757,this['_idsRoots']))['_execute']();const _0x3f8227=null===_0xdd0757['_authorId']?null:_0xdd0757['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52c7f1=_0xdd0757['getMovedRangeStart'](),_0x408b33=_0x52c7f1['parent'],_0x1112d3=_0x52c7f1['offset'];!function _0xaed3db(_0x564e73,_0xba77aa,_0x338c44,_0x5added){for(let _0x57b5f8=_0x338c44;_0x57b5f8<_0x5added;_0x57b5f8++){const _0x419ff7=_0xba77aa['getChild'](_0x57b5f8);_0x419ff7['is']('element','$text')?_0x564e73['set'](_0x419ff7['getAttribute']('vid'),{'userId':_0x3f8227}):(_0x564e73['set'](_0x419ff7['getAttribute']('vid_start'),{'userId':_0x3f8227}),_0xaed3db(_0x564e73,_0x419ff7,0x0,_0x419ff7['childCount']),_0x564e73['set'](_0x419ff7['getAttribute']('vid_end'),{'userId':_0x3f8227}));}}(this['_touched'],_0x408b33,_0x1112d3,_0x1112d3+_0xdd0757['howMany']);}['_handleMergeOperation'](_0x1ecfc0){const _0x5ebdc7=null===(_0x1ecfc0=this['_cloneOperation'](_0x1ecfc0,this['_idsRoots']))['_authorId']?null:_0x1ecfc0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1bd841=_0x1ecfc0['targetPosition']['parent'],_0x410582=_0x1ecfc0['sourcePosition']['parent'],_0x25b5af=_0x1bd841['getAttribute']('vid_end'),_0x2a0f24=_0x410582['getAttribute']('vid_start');_0x1bd841['_setAttribute']('vid_end',_0x410582['getAttribute']('vid_end')),_0x410582['_setAttribute']('vid_end',_0x25b5af),this['_touched']['set'](_0x2a0f24,{'userId':_0x5ebdc7}),this['_touched']['set'](_0x25b5af,{'userId':_0x5ebdc7}),_0x1ecfc0['_execute']();}['_handleSplitOperation'](_0x23ecff){const _0x1f7d7a=null===(_0x23ecff=this['_cloneOperation'](_0x23ecff,this['_idsRoots']))['_authorId']?null:_0x23ecff['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x296e28=_0x23ecff['graveyardPosition'],_0x394106=_0x23ecff['splitPosition']['parent'];_0x23ecff['_execute']();const _0x4f3f94=_0x394106['getAttribute']('vid_end'),_0x16f0be=_0x23ecff['insertionPosition']['nodeAfter'];if(_0x296e28){const _0x23e3a3=_0x16f0be['getAttribute']('vid_end'),_0x3b53a9=_0x394106['getAttribute']('vid_end');_0x394106['_setAttribute']('vid_end',_0x23e3a3),_0x16f0be['_setAttribute']('vid_end',_0x3b53a9),this['_touched']['set'](_0x394106['getAttribute']('vid_end'),{'userId':_0x1f7d7a}),this['_touched']['set'](_0x16f0be['getAttribute']('vid_start'),{'userId':_0x1f7d7a});}else{const _0x2565c5=this['_revisionId']++,_0x5ab9ba=this['_revisionId']++;_0x394106['_setAttribute']('vid_end',_0x2565c5),_0x16f0be['_setAttribute']('vid_start',_0x5ab9ba),_0x16f0be['_setAttribute']('vid_end',_0x4f3f94),this['_touched']['set'](_0x2565c5,{'userId':_0x1f7d7a}),this['_touched']['set'](_0x5ab9ba,{'userId':_0x1f7d7a});}}['_handleMarkerOperation'](_0x316908){if(!_0x316908['affectsData'])return;const _0x57e868=(_0x316908=this['_cloneOperation'](_0x316908,this['_diffRoots']))['oldRange']?_0x316908['oldRange']['root']:null,_0x2038b2=_0x316908['newRange']?_0x316908['newRange']['root']:null;_0x57e868&&this['_markers']['delete'](_0x316908['name']),_0x2038b2&&this['_markers']['set'](_0x316908['name'],_0x316908['newRange']['clone']());const _0x5032a8=null===_0x316908['_authorId']?null:_0x316908['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x132617=_0x316908['name'];if(!this['_touchedMarkers']['has'](_0x132617))return void this['_touchedMarkers']['set'](_0x132617,{'range':_0x316908['oldRange'],'userId':_0x5032a8});const _0x56ec41=this['_touchedMarkers']['get'](_0x132617),_0x52756e=_0x56ec41['range'],_0x374835=_0x316908['newRange'];null==_0x52756e&&null==_0x374835||_0x52756e&&_0x374835&&_0x52756e['isEqual'](_0x374835)?this['_touchedMarkers']['delete'](_0x316908['name']):_0x56ec41['userId']=_0x5032a8;}['_handleRootOperation'](_0x13cdab,_0x5e7c73){this['_diffRoots']['has'](_0x13cdab['rootName'])?this['_diffRoots']['get'](_0x13cdab['rootName'])['_isAttached']=_0x13cdab['isAdd']:(this['_diffRoots']['set'](_0x13cdab['rootName'],B(_0x13cdab['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x13cdab['rootName'],{}),_0x5e7c73&&this['_idsRoots']['set'](_0x13cdab['rootName'],B(_0x13cdab['rootName'],!0x0)));const _0x402d03=null===_0x13cdab['_authorId']?null:_0x13cdab['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xbed346=this['_touchedRoots']['get'](_0x13cdab['rootName']);_0xbed346&&_0xbed346['userId']===_0x402d03?this['_touchedRoots']['delete'](_0x13cdab['rootName']):this['_touchedRoots']['set'](_0x13cdab['rootName'],{'userId':_0x402d03,'isAttached':_0x13cdab['isAdd']});}['_handleRootAttributeOperation'](_0x18592d){const _0x250c69=this['_diffRootsAttributes']['get'](_0x18592d['root']['rootName']);null===_0x18592d['newValue']?delete _0x250c69[_0x18592d['key']]:_0x250c69[_0x18592d['key']]=_0x18592d['newValue'];}}function F(_0x11b8ea){const _0x2ef9d7=B(_0x11b8ea['rootName'],_0x11b8ea['isAttached']());for(const _0x75488d of _0x11b8ea['getChildren']()){const _0x52bf30=_0x75488d['_clone'](!0x0);_0x2ef9d7['_appendChild'](_0x52bf30);}return _0x2ef9d7;}function B(_0x9fb570,_0x3869a6=!0x0){const _0x5e70b2=new mt();return _0x5e70b2['rootName']=_0x9fb570,_0x5e70b2['_isAttached']=_0x3869a6,_0x5e70b2['isAttached']=()=>_0x5e70b2['_isAttached'],_0x5e70b2;}function J(_0x4bd730,_0x428df8,_0x2b3ee5){const _0x132758='elementEnd'==_0x4bd730['type']?_0x2b3ee5['createPositionAt'](_0x4bd730['item'],'end'):_0x2b3ee5['createPositionBefore'](_0x4bd730['item']);return _0x2b3ee5['createPositionFromPath'](_0x428df8,_0x132758['path'],_0x132758['stickiness']);}function q(_0x474839,_0x4de589,_0x2d5f34){const _0x31752e='elementStart'==_0x474839['type']?_0x2d5f34['createPositionAt'](_0x474839['item'],0x0):_0x2d5f34['createPositionAfter'](_0x474839['item']);return _0x2d5f34['createPositionFromPath'](_0x4de589,_0x31752e['path'],_0x31752e['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4f8aa3,_0x20786e){super(_0x4f8aa3),this['focusTracker']=new _0x4a9bb6(),this['keystrokes']=new _0x3473af(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x20786e),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5ed148(this);}['render'](){super['render'](),_0x5a4d0c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x10eef7=_0x1ed4e4=>_0x1ed4e4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x10eef7),this['keystrokes']['set']('arrowleft',_0x10eef7),this['keystrokes']['set']('arrowup',_0x10eef7),this['keystrokes']['set']('arrowdown',_0x10eef7);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2a69aa){this['revisionNameInputView']['fieldView']['element']['value']=_0x2a69aa['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5b3ebc){const _0x5337c7=new _0x5eff68(this['locale'],_0x1f1f1e),_0x57919b=_0x5337c7['fieldView'];_0x57919b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3552d8=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5b3ebc&&(_0x3552d8+='\x20('+R(this['locale'],'optional')+')'),(_0x5337c7['label']=_0x3552d8,_0x57919b['on']('input',()=>{this['revisionNameInputValue']=_0x57919b['element']['value']['trim']();}),_0x5337c7);}}class u extends _0x39b81a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1f476d=this['editor'],_0x2d27c5=_0x1f476d['plugins']['get']('RevisionTracker');_0x1f476d['ui']['componentFactory']['add']('revisionHistory',_0x1ace41=>{const _0x3f563d=_0x5533af(_0x1ace41),_0x798313=_0x3f563d['panelView']['children'],_0x2c257b=new _0x5d810d(_0x1ace41),_0x530d1d=new _0x426f41(_0x1ace41),_0xdb6f27=new te(_0x1ace41),_0x15e3e0=new _0x426f41(_0x1ace41),_0x6a8559=new te(_0x1ace41);return _0x3f563d['bind']('isEnabled')['to'](_0x2d27c5,'isReady',_0x2d27c5,'isEnabled',_0x1f476d,'isReadOnly',(_0x59c461,_0x4bb232,_0x3f4ae0)=>_0x59c461&&_0x4bb232&&!_0x3f4ae0),_0x3f563d['buttonView']['set']({'icon':_0x590976['history'],'label':R(_0x1ace41,'Revision\x20history'),'tooltip':!0x0}),_0xdb6f27['set']({'label':R(_0x1ace41,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xdb6f27['bind']('isEnabled')['to'](_0x2d27c5,'isReady',_0x2d27c5,'isEnabled',_0x1f476d,'isReadOnly',(_0xbec17d,_0x332e7b,_0x6afea)=>_0xbec17d&&_0x332e7b&&!_0x6afea),_0xdb6f27['on']('execute',()=>this['_showDialog']()),_0x6a8559['set']({'label':R(_0x1ace41,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x6a8559['bind']('isEnabled')['to'](_0x2d27c5,'isReady',_0x1f476d,'isReadOnly',(_0x5bd9ac,_0x55174d)=>_0x5bd9ac&&!_0x55174d),_0x6a8559['on']('execute',()=>{_0x1f476d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3f563d['isOpen']=!0x1,_0x1f476d['editing']['view']['focus']();}),_0x530d1d['children']['add'](_0xdb6f27),_0x15e3e0['children']['add'](_0x6a8559),_0x2c257b['role']='menu',_0x2c257b['items']['addMany']([_0x530d1d,_0x15e3e0]),_0x798313['add'](_0x2c257b),_0x3f563d;}),_0x1f476d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x14a645=this['editor'],_0x47a60e=_0x14a645['locale'],_0x2029be=new _0x37a145(_0x47a60e),_0x2a3476=new _0x84f804(_0x47a60e);_0x2029be['buttonView']['set']({'icon':_0x590976['history'],'label':R(_0x47a60e,'Revision\x20history')});const _0x241f65=new _0x590f6a(_0x47a60e,_0x2029be),_0x5dc668=new _0x40881e(_0x47a60e);_0x5dc668['set']({'label':R(_0x47a60e,'Save\x20current\x20revision')}),_0x5dc668['delegate']('execute')['to'](_0x2029be),_0x5dc668['on']('execute',()=>{this['_showDialog']();}),_0x241f65['children']['add'](_0x5dc668),_0x2a3476['items']['add'](_0x241f65);const _0x1841ca=new _0x590f6a(_0x47a60e,_0x2029be),_0x277962=new _0x40881e(_0x47a60e);return _0x277962['set']({'label':R(_0x47a60e,'Open\x20revision\x20history')}),_0x277962['delegate']('execute')['to'](_0x2029be),_0x277962['on']('execute',()=>{_0x14a645['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1841ca['children']['add'](_0x277962),_0x2a3476['items']['add'](_0x1841ca),_0x2029be['panelView']['children']['add'](_0x2a3476),_0x2029be;}['_showDialog'](){const _0x591aa6=this['editor'],_0x514a1f=_0x591aa6['locale'],_0x53d6a9=_0x591aa6['plugins']['get']('Dialog'),_0x3aabc5=_0x591aa6['plugins']['get']('RevisionTracker');function _0x77215c(_0xfe3d4f){_0x591aa6['config']['get']('revisionHistory.requireRevisionName')&&''===_0xfe3d4f['revisionName']?_0xfe3d4f['revisionNameInputView']['errorText']=R(_0x514a1f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x591aa6['plugins']['get'](l)['saveRevision']({'name':_0xfe3d4f['revisionName']}),_0x53d6a9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x77215c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x53d6a9['show']({'id':'revisionSave','title':R(_0x514a1f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x591aa6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x53d6a9['hide']()},{'label':R(_0x591aa6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1d2332){_0x1d2332['bind']('isEnabled')['to'](_0x3aabc5,'isReady',_0x3aabc5,'isEnabled',_0x591aa6,'isReadOnly',(_0x43c797,_0x242e80,_0x2719c9)=>_0x43c797&&_0x242e80&&!_0x2719c9);},'onExecute':()=>_0x77215c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x557c81=this['editor'],_0x4c7599=_0x557c81['locale'];this['_saveRevisionFormView']=new hs(_0x4c7599,_0x557c81['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x448cfb,_0xb442b3){super(_0x448cfb),this['_model']=_0xb442b3,this['changeId']=_0xb442b3['id'];const _0x48fb10=this['bindTemplate'],_0x459d19=R(_0x448cfb,_0xb442b3['data']['isSuggestion']?'Suggested\x20by':'add'==_0xb442b3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xb442b3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x48fb10['to']('type',_0x182f59=>'ck-revision-change__'+_0x182f59)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x459d19}]},{'text':'\x20'+_0xb442b3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x3cf027(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xc8ed8){super(),this['id']=_0xc8ed8['id']||_0x4834e8(),this['author']=_0xc8ed8['author'],this['type']=_0xc8ed8['type'],this['data']=_0xc8ed8['data']||{},this['rootName']=_0xc8ed8['rootName'],this['set']('createdAt',_0xc8ed8['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x37e6f9,_0x3c0fd1){this['newRevisionId']=_0x37e6f9,this['oldRevisionId']=_0x3c0fd1,this['changes']=new _0x5c9475();}['_setChanges'](_0x492ebb){for(const _0x221e50 of _0x492ebb)this['changes']['add'](_0x221e50);}}const Z={'c':_0x300b3b,'a':_0x5596fe,'e':_0x5e2c99,'r':_0x5ae857,'u':_0x60da44};class d extends _0x39b81a{['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[_0x41312b,_0xe657c7,j];}constructor(_0x4eaf80){super(_0x4eaf80),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',(_0x49d457,_0x1b1e70,_0x24172b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2427ea=>{for(const _0x13266c of this['editor']['editing']['view']['document']['roots'])_0x24172b?_0x2427ea['removeClass']('ck-editor__editable__overlay',_0x13266c):_0x2427ea['addClass']('ck-editor__editable__overlay',_0x13266c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2ceb8c=>null!==_0x2ceb8c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x430d78,_0x27fcc7,_0x5b204a)=>_0x430d78&&_0x5b204a?_0x27fcc7['changes']['getIndex'](_0x5b204a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3e2aee,_0x465bd5)=>_0x3e2aee?_0x465bd5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xe657c7);}['init'](){const _0x5568b0=this['editor'],_0xaa5b11=new yt(_0x5568b0,{'direction':'backward'}),_0x49ec00=new yt(_0x5568b0,{'direction':'forward'});(_0x5568b0['commands']['add']('showPreviousChange',_0xaa5b11),_0x5568b0['commands']['add']('showNextChange',_0x49ec00),_0x5568b0['commands']['add']('restoreRevision',new _t(_0x5568b0)),this['on']('change:numberOfChanges',()=>{_0xaa5b11['refresh'](),_0x49ec00['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5568b0['enableReadOnlyMode']('revision-viewer'),_0x5568b0['plugins']['has']('WidgetToolbarRepository'))&&_0x5568b0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xafe7b1){await this['loadRevisionData'](_0xafe7b1);const _0x4d6ddf={};for(const _0x471ac3 in _0xafe7b1['diffData']){if(_0xafe7b1['diffData'][_0x471ac3]['attachChange']&&!_0xafe7b1['diffData'][_0x471ac3]['attachChange']['isAttached'])continue;const _0x52eb97=this['_removeRevisionMarkers'](JSON['parse'](_0xafe7b1['diffData'][_0x471ac3]['insertions'])),_0x241941=this['editor']['editing']['view']['document'],_0x53cbe9=new _0x3bd259(_0x241941,_0x52eb97['map'](_0x34e2e0=>this['_getViewObj'](_0x34e2e0)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4d6ddf[_0x471ac3]=this['editor']['data']['processor']['toData'](_0x53cbe9),this['editor']['data']['processor']['useFillerType']('default');}return _0x4d6ddf;}async['getRevisionRootsAttributes'](_0x20a678){await this['loadRevisionData'](_0x20a678);const _0x3c36b0={};for(const _0x4a2648 in _0x20a678['diffData'])_0x20a678['diffData'][_0x4a2648]['attachChange']&&!_0x20a678['diffData'][_0x4a2648]['attachChange']['isAttached']||(_0x3c36b0[_0x4a2648]=_0x20a678['diffData'][_0x4a2648]['attributesAfter']||{});return _0x3c36b0;}['_removeRevisionMarkers'](_0x653f6d){return(_0x653f6d=_0x653f6d['filter'](_0x2d02ac=>!_0x2d02ac['name']||'revision-start'!==_0x2d02ac['name']&&'revision-end'!==_0x2d02ac['name']))['forEach'](_0x27e092=>{'string'!=typeof _0x27e092&&(_0x27e092['children']=this['_removeRevisionMarkers'](_0x27e092['children']),_0x27e092['attributes']=_0x27e092['attributes']['filter'](_0x5f2ff0=>!_0x5f2ff0[0x0]['startsWith']('data-revision-')));}),_0x653f6d;}async['compare'](_0x5ecb5c,_0x4d04fb,_0x10fb4b=!0x1){if(!this['isEnabled'])return;const _0x45d160=this['diff'],_0x55f038=this['repository'],_0x2fca15='string'==typeof _0x5ecb5c?_0x55f038['getRevision'](_0x5ecb5c):_0x5ecb5c,_0x4c9cbb='string'==typeof _0x4d04fb?_0x55f038['getRevision'](_0x4d04fb):_0x4d04fb,_0xcf87e1=_0x2fca15['id'],_0x45bb20=_0x4c9cbb?_0x4c9cbb['id']:null;if(!_0x10fb4b&&this['diff']&&this['diff']['newRevisionId']===_0xcf87e1&&this['diff']['oldRevisionId']===_0x45bb20)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xcf87e1,_0x45bb20);const _0x4d0c6b=this['_getRevisionsRange'](_0x2fca15,_0x4c9cbb,!0x0)['map'](_0x2e2ffa=>this['loadRevisionData'](_0x2e2ffa));return _0x4d0c6b['push'](new Promise(_0x2dcf76=>{setTimeout(_0x2dcf76,0x14);})),Promise['all'](_0x4d0c6b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2f26d6=this['_getDiff'](_0xcf87e1,_0x45bb20);for(const _0x282a91 of _0x2f26d6['changes'])this['_changeIdToChange']['set'](_0x282a91['id'],_0x282a91);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x558488=>{for(const _0x1f4b60 of this['editor']['model']['document']['getRootNames']())_0x558488['detachRoot'](_0x1f4b60);for(const _0x42b799 of Object['keys'](_0x2f26d6['model'])){const _0x423414=_0x558488['addRoot'](_0x42b799);for(const _0xa38fb4 of Object['keys'](_0x2f26d6['attributes'][_0x42b799]))_0x558488['setAttribute'](_0xa38fb4,_0x2f26d6['attributes'][_0x42b799][_0xa38fb4],_0x423414);_0x558488['insert'](_0x2f26d6['model'][_0x42b799],_0x423414,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2f26d6['changes'])),this['isReady']=!0x0;})['catch'](_0x2833d8=>{console['error'](_0x2833d8),this['_cleanUp'](),_0x45d160&&(this['diff']=_0x45d160),this['isReady']=!0x0;});}['addRevisionData'](_0x462c47,_0x2d62d8){const _0x14fb75=this['repository']['createRevision'](_0x462c47);return _0x14fb75['on']('_update',(_0x57a4ab,_0xfdf8a,_0x2ea14f)=>_0x2d62d8(_0xfdf8a,_0x2ea14f,_0x14fb75)),this['repository']['addRevision'](_0x14fb75),_0x14fb75;}['loadRevisionData'](_0xf6b6cf){if(!_0xf6b6cf||_0xf6b6cf['diffData'])return Promise['resolve']();{const _0x44d7f3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x44d7f3,'revisionId':_0xf6b6cf['id']})['then'](_0x26002c=>{_0xf6b6cf['_update']({'diffData':_0x26002c['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},_0xa9f232=>{for(const _0x2d60dd of this['editor']['model']['document']['getRootNames']())_0xa9f232['detachRoot'](_0x2d60dd);});}['_sortAndFilterDiffChanges'](_0x485cb1){const _0x12e592=[],_0x1dad0a=new Map();for(const _0x25d379 of this['editor']['model']['document']['getRootNames']()){const _0x2825c9=this['editor']['editing']['view']['getDomRoot'](_0x25d379);if(!_0x2825c9)continue;const _0x371743=_0x2825c9['getClientRects']()['item'](0x0);_0x371743&&(_0x12e592['push'](_0x25d379),_0x1dad0a['set'](_0x25d379,_0x371743));}return _0x12e592['sort']((_0x4b82c7,_0x146876)=>{const _0x2f4507=_0x1dad0a['get'](_0x4b82c7),_0x1a8995=_0x1dad0a['get'](_0x146876);return _0x2f4507['y']-_0x1a8995['y']||_0x2f4507['x']-_0x1a8995['x'];}),(_0x485cb1=_0x485cb1['filter'](_0x5dd977=>_0x12e592['includes'](_0x5dd977['rootName'])))['sort']((_0x58ddc9,_0x4eafd8)=>_0x12e592['indexOf'](_0x58ddc9['rootName'])-_0x12e592['indexOf'](_0x4eafd8['rootName'])),_0x485cb1;}['_makeTape'](_0x58987a){const _0x40a9c0=Array['from'](_0x58987a['markers'])['filter'](([_0x41e973,_0x44bca9])=>_0x41e973['startsWith']('revision:')&&!_0x44bca9['isCollapsed']),_0x43fe06=Array['from'](this['editor']['model']['createRangeIn'](_0x58987a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x40a9c0['length'])for(const _0x497d8e of _0x43fe06){const [_0x4ed187,_0x6347d8]=_0x40a9c0[0x0],[,_0x42c369,_0x24d4ee]=_0x4ed187['split'](':');if(_0x6347d8['end']['isEqual'](_0x497d8e['nextPosition'])&&_0x40a9c0['shift'](),(_0x497d8e['previousPosition']['isEqual'](_0x6347d8['start'])||_0x497d8e['previousPosition']['isAfter'](_0x6347d8['start']))&&('insertion'==_0x42c369?_0x497d8e['isAdded']={'userId':_0x24d4ee}:'deletion'==_0x42c369&&(_0x497d8e['isRemoved']={'userId':_0x24d4ee})),0x0==_0x40a9c0['length'])break;}return _0x43fe06;}['_refreshStartEndIndex'](_0x3611ac){const _0x40f2c3=new Map();for(let _0x57d84c=0x0;_0x57d84c<_0x3611ac['length'];_0x57d84c++)'text'===_0x3611ac[_0x57d84c]['type']?(_0x3611ac[_0x57d84c]['item']['startIndex']=_0x57d84c,_0x3611ac[_0x57d84c]['item']['endIndex']=_0x57d84c):('elementStart'===_0x3611ac[_0x57d84c]['type']?_0x3611ac[_0x57d84c]['item']['startIndex']=_0x57d84c:'elementEnd'===_0x3611ac[_0x57d84c]['type']&&(_0x3611ac[_0x57d84c]['item']['endIndex']=_0x57d84c),_0x40f2c3['set'](_0x3611ac[_0x57d84c]['id'],_0x57d84c));for(const _0x120fd9 of _0x40f2c3['values']())'elementStart'===_0x3611ac[_0x120fd9]['type']?_0x3611ac[_0x120fd9]['item']['endIndex']=_0x40f2c3['get'](_0x3611ac[_0x120fd9]['pairId']):'elementEnd'===_0x3611ac[_0x120fd9]['type']&&(_0x3611ac[_0x120fd9]['item']['startIndex']=_0x40f2c3['get'](_0x3611ac[_0x120fd9]['pairId']));}['_processTape'](_0x2f1ad0){for(let _0x3a8e78=0x0;_0x3a8e78<_0x2f1ad0['length'];_0x3a8e78++){if('elementStart'===_0x2f1ad0[_0x3a8e78]['type'])_0x2f1ad0[_0x3a8e78]['item']['startIndex']=_0x3a8e78;else{if('elementEnd'===_0x2f1ad0[_0x3a8e78]['type']){_0x2f1ad0[_0x3a8e78]['item']['endIndex']=_0x3a8e78;const _0x9bf3c0=_0x2f1ad0[_0x3a8e78]['item']['startIndex'];_0x2f1ad0[_0x9bf3c0]['pairId']=_0x2f1ad0[_0x3a8e78]['id'],_0x2f1ad0[_0x3a8e78]['pairId']=_0x2f1ad0[_0x9bf3c0]['id'];}else _0x2f1ad0[_0x3a8e78]['item']['startIndex']=_0x3a8e78,_0x2f1ad0[_0x3a8e78]['item']['endIndex']=_0x3a8e78,_0x2f1ad0[_0x3a8e78]['pairId']=null;}_0x2f1ad0[_0x3a8e78]['markersStart']||(_0x2f1ad0[_0x3a8e78]['markersStart']=[],_0x2f1ad0[_0x3a8e78]['markersEnd']=[]);}}['_markInsertions'](_0x55e786,_0x88009d){const _0x4187c9=_0x55e786['filter'](_0xefe8fb=>!_0xefe8fb['isAdded']);for(let _0x203d5e=0x0;_0x203d5e<_0x88009d['length'];_0x203d5e++)_0x88009d[_0x203d5e]['isAdded']&&(_0x4187c9[_0x203d5e]['isAdded']=_0x88009d[_0x203d5e]['isAdded']);}['_makeModelFromViewString'](_0x156587){const _0x20cbfe=JSON['parse'](_0x156587),_0x7ac585=this['editor']['editing']['view']['document'],_0x17e117=new _0x3bd259(_0x7ac585,_0x20cbfe['map'](_0x5e28a4=>this['_getViewObj'](_0x5e28a4)));return this['editor']['data']['toModel'](_0x17e117);}['_getViewObj'](_0x3e1cdb){const _0x21c202=this['editor']['editing']['view']['document'];if('string'==typeof _0x3e1cdb)return new _0x3c17b8(_0x21c202,_0x3e1cdb);{const _0x19ca80=_0x3e1cdb['children']['map'](_0x1591bd=>this['_getViewObj'](_0x1591bd));return new(Z[_0x3e1cdb['type']]||_0x20d11f)(_0x21c202,_0x3e1cdb['name'],_0x3e1cdb['attributes'],_0x19ca80);}}['_getDiff'](_0x5728b3,_0x252b0e=null){const _0x19f1b7=this['repository']['getRevision'](_0x5728b3),_0x491f5b=_0x252b0e?this['repository']['getRevision'](_0x252b0e):null,_0x2d890f=this['_getRevisionsRange'](_0x19f1b7,_0x491f5b),_0x4e4072=_0x2d890f[_0x2d890f['length']-0x1],_0x4995dd=new Map(),_0x12f116={'model':{},'attributes':{},'changes':[]},_0x376dbb=new Set(),_0x26ce6b=new Map();for(let _0x14c839=_0x2d890f['length']-0x1;_0x14c839>=0x0;_0x14c839--){const _0x44c779=_0x2d890f[_0x14c839];for(const _0x58025b of Object['keys'](_0x44c779['diffData']))if(_0x44c779['diffData'][_0x58025b]['attachChange']){const _0x54064d=_0x44c779['diffData'][_0x58025b]['attachChange'];_0x54064d['isAttached']?(_0x376dbb['add'](_0x58025b),_0x26ce6b['has'](_0x58025b)&&_0x26ce6b['get'](_0x58025b)['userId']==_0x54064d['userId']?_0x26ce6b['delete'](_0x58025b):_0x26ce6b['set'](_0x58025b,_0x54064d)):_0x26ce6b['has'](_0x58025b)?(_0x376dbb['delete'](_0x58025b),_0x26ce6b['delete'](_0x58025b)):(_0x376dbb['add'](_0x58025b),_0x26ce6b['set'](_0x58025b,_0x54064d));}else _0x376dbb['add'](_0x58025b);}for(const _0x25dba3 of _0x376dbb){const _0xb3ed46=_0x26ce6b['has'](_0x25dba3)&&!_0x26ce6b['get'](_0x25dba3)['isAttached'];let _0x30a525=_0xb3ed46?_0x2d890f['length']-0x1:0x0;const _0x4be327=_0xb3ed46?-0x1:0x1;for(;_0x2d890f[_0x30a525];){const _0x3dd250=_0x2d890f[_0x30a525];if(_0x3dd250['diffData'][_0x25dba3]){const _0x3787f2=_0xb3ed46?_0x3dd250['diffData'][_0x25dba3]['attributesBefore']:_0x3dd250['diffData'][_0x25dba3]['attributesAfter'];_0x12f116['attributes'][_0x25dba3]=_0x3787f2?_0x3bf4ba(_0x3787f2):{};break;}_0x30a525+=_0x4be327;}}for(const _0x1d75e5 of _0x2d890f){_0x1d75e5['model']={};for(const _0x1d93f7 of _0x1d75e5['authors'])_0x4995dd['set'](_0x1d93f7['id'],_0x1d93f7);for(const _0x2d0ee0 of _0x376dbb){const _0x16818c=_0x1d75e5['diffData'][_0x2d0ee0]?_0x1d75e5['diffData'][_0x2d0ee0]['insertions']:'[]',_0x32c821=_0x1d75e5['diffData'][_0x2d0ee0]?_0x1d75e5['diffData'][_0x2d0ee0]['deletions']:'[]';_0x1d75e5['model'][_0x2d0ee0]={'insertions':this['_makeModelFromViewString'](_0x16818c),'deletions':this['_makeModelFromViewString'](_0x32c821)};}}for(const _0x41a7c0 of _0x376dbb){let _0x2e4889=null,_0x372d11=0x0;const _0x1a3448=new Map(Array['from'](_0x19f1b7['model'][_0x41a7c0]['insertions']['markers'])['filter'](([_0x50d442])=>!_0x50d442['startsWith']('revision:')));let _0x9b1b0a=0x0;for(const _0x1f0659 of _0x2d890f){const _0x33d858=this['_makeTape'](_0x1f0659['model'][_0x41a7c0]['insertions']);_0x1f0659==_0x19f1b7?(_0x2e4889=_0x33d858,_0x372d11=_0x2e4889['length'],_0x2e4889['forEach'](_0x2e9c0e=>{_0x2e9c0e['id']=_0x9b1b0a++;}),this['_processTape'](_0x2e4889)):this['_markInsertions'](_0x2e4889,_0x33d858);const _0x2c523f=_0x2e4889['filter'](_0x510474=>!_0x510474['isAdded'])['map'](_0x6c800b=>_0x6c800b['id']);let _0x1e333e=0x0;const _0x18aad2=this['_makeTape'](_0x1f0659['model'][_0x41a7c0]['deletions']);_0x18aad2['forEach'](_0x13eb19=>{_0x13eb19['isRemoved']?_0x13eb19['id']=_0x372d11++:_0x13eb19['id']=_0x2c523f[_0x1e333e++];}),this['_processTape'](_0x18aad2),this['_setDistance'](_0x2e4889,'isAdded'),this['_setDistance'](_0x18aad2,'isRemoved'),_0x1f0659==_0x19f1b7&&this['_markMarkers'](_0x2e4889,_0x1a3448),_0x2e4889=this['_joinTapes'](_0x2e4889,_0x18aad2),this['_refreshStartEndIndex'](_0x2e4889),this['_setDistance'](_0x2e4889,'isRemoved');}_0x2e4889=_0x2e4889['filter'](_0x54ffd7=>!(_0x54ffd7['isAdded']&&_0x54ffd7['isRemoved']));const _0x2ab4fc=new Map(_0x4e4072['model'][_0x41a7c0]['deletions']['markers']),_0x5e96e7=new Set(_0x1a3448['keys']());for(const _0x1d939a of _0x2ab4fc['keys']())_0x5e96e7['delete'](_0x1d939a);this['_markSuggestions'](_0x2e4889,_0x5e96e7),this['_fixObsoleteTags'](_0x2e4889),_0x2e4889=this['_removeMissingPairs'](_0x2e4889),_0x2e4889=this['_markMismatchedRemovedTags'](_0x2e4889),_0x2e4889=this['_removeUnsupportedChanges'](_0x2e4889);const {root:_0x1825bf,changes:_0x509e1b}=this['_makeModelFromTape'](_0x2e4889,_0x4995dd,_0x41a7c0);_0x12f116['model'][_0x41a7c0]=_0x1825bf;const _0x439df9=_0x26ce6b['get'](_0x41a7c0);if(_0x439df9){const _0x36225e=_0x4995dd['get'](_0x439df9['userId']),_0x407ff7=new r({'author':_0x36225e,'type':_0x439df9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x41a7c0});_0x509e1b['unshift'](_0x407ff7),_0x12f116['attributes'][_0x41a7c0]['revisionHistoryAttachChange']=_0x407ff7['id'];}_0x12f116['changes']=_0x12f116['changes']['concat'](_0x509e1b);}return _0x12f116;}['_markMarkers'](_0x2455d8,_0x3d150c){for(let _0x25c55b=0x0;_0x25c55b<_0x2455d8['length'];_0x25c55b++)for(const [_0x3d6d60,_0x46e00a]of _0x3d150c)_0x46e00a['start']['isEqual'](_0x2455d8[_0x25c55b]['previousPosition'])&&_0x2455d8[_0x25c55b]['markersStart']['push'](_0x3d6d60),_0x46e00a['end']['isEqual'](_0x2455d8[_0x25c55b]['nextPosition'])&&_0x2455d8[_0x25c55b]['markersEnd']['push'](_0x3d6d60);}['_joinTapes'](_0x1bb416,_0xbb4d76){let _0x43ca9c=[],_0x61bbe0=0x0,_0x15e276=0x0;for(;_0x61bbe0<_0x1bb416['length']||_0x15e276<_0xbb4d76['length'];){const _0x4614f9=_0x1bb416[_0x61bbe0]||{},_0x3d9a37=_0xbb4d76[_0x15e276]||{};if(_0x4614f9['id']==_0x3d9a37['id'])_0x61bbe0++,_0x15e276++,_0x43ca9c['push'](_0x4614f9);else{if(_0x3d9a37['isRemoved']&&_0x4614f9['isAdded']){const {commonTape:_0x31645c,iEnd:_0x1c3b89,jEnd:_0x18787b}=this['_threeWayMerge'](_0x1bb416,_0x61bbe0,_0xbb4d76,_0x15e276);_0x43ca9c=_0x43ca9c['concat'](_0x31645c),_0x61bbe0=_0x1c3b89,_0x15e276=_0x18787b;}else _0x3d9a37['isRemoved']?(_0x15e276++,_0x43ca9c['push'](_0x3d9a37)):(_0x61bbe0++,_0x43ca9c['push'](_0x4614f9));}}return _0x43ca9c;}['_markSuggestions'](_0x2737ca,_0x3326a1){const _0x225c6d=[];for(let _0x33a023=0x0;_0x33a023<_0x2737ca['length'];_0x33a023++){for(let _0x4006eb=0x0;_0x4006eb<_0x2737ca[_0x33a023]['markersStart']['length'];_0x4006eb++){const _0x295dd8=_0x2737ca[_0x33a023]['markersStart'][_0x4006eb];if(!_0x3326a1['has'](_0x295dd8))continue;const {group:_0xa38e09,type:_0x467e63,authorId:_0x479e06}=_0x3bd3a4(_0x295dd8);'revision-suggestion'!=_0xa38e09||'insertion'!=_0x467e63&&'deletion'!=_0x467e63||(_0x225c6d['unshift']({'type':_0x467e63,'name':_0x295dd8,'userId':_0x479e06}),_0x2737ca[_0x33a023]['markersStart']['splice'](_0x4006eb,0x1),_0x4006eb--);}_0x2f0f8b(_0x2737ca[_0x33a023]);for(let _0x5c239b=0x0;_0x5c239b<_0x2737ca[_0x33a023]['markersEnd']['length'];_0x5c239b++){const _0x590090=_0x2737ca[_0x33a023]['markersEnd'][_0x5c239b];if(!_0x3326a1['has'](_0x590090))continue;const {group:_0x502d01,type:_0x272003}=_0x3bd3a4(_0x590090);if('revision-suggestion'!=_0x502d01||'insertion'!=_0x272003&&'deletion'!=_0x272003)continue;_0x2737ca[_0x33a023]['markersEnd']['splice'](_0x5c239b,0x1),_0x5c239b--;const _0x104db5=_0x225c6d['findIndex'](_0x15f460=>_0x15f460['name']==_0x590090);_0x104db5>-0x1&&_0x225c6d['splice'](_0x104db5,0x1);}}function _0x3bd3a4(_0x206011){const _0x57edab=_0x206011['split'](':');return{'group':_0x57edab[0x0],'type':_0x57edab[0x1],'subType':_0x57edab['length']>=0x5?_0x57edab[0x2]:null,'id':_0x57edab['length']<0x5?_0x57edab[0x2]:_0x57edab[0x3],'authorId':_0x57edab['length']<0x5?_0x57edab[0x3]:_0x57edab[0x4],'markerCount':0x6==_0x57edab['length']?_0x57edab[0x5]:null};}function _0x2f0f8b(_0x48ae9d){for(let _0x15395a=0x0;_0x15395a<_0x225c6d['length'];_0x15395a++){if(_0x48ae9d['isAdded']&&'insertion'==_0x225c6d[_0x15395a]['type'])return _0x48ae9d['isAddSuggestion']=_0x225c6d[_0x15395a],void delete _0x48ae9d['isAdded'];if(!_0x48ae9d['isAdded']&&!_0x48ae9d['isRemoved']&&'deletion'==_0x225c6d[_0x15395a]['type'])return void(_0x48ae9d['isRemoveSuggestion']=_0x225c6d[_0x15395a]);}}}['_setDistance'](_0x2c4cc6,_0x459c79){let _0x1b803f=0x0,_0x1b4fb8=!0x1;const _0x4d0ac5=new Map();for(const _0x28334a of _0x2c4cc6)_0x28334a[_0x459c79]?_0x1b4fb8&&(_0x1b803f++,_0x1b4fb8=!0x1):(_0x1b803f++,_0x1b4fb8=!0x0),_0x4d0ac5['set'](_0x28334a['id'],_0x1b803f);for(let _0x353efe=0x0;_0x353efe<_0x2c4cc6['length'];_0x353efe++){if('isRemoved'==_0x459c79&&_0x2c4cc6[_0x353efe]['isAdded']||'isAdded'==_0x459c79&&_0x2c4cc6[_0x353efe]['isRemoved'])continue;if('text'==_0x2c4cc6[_0x353efe]['type']){_0x2c4cc6[_0x353efe]['distance']=0x0;continue;}const _0x477a90=_0x4d0ac5['get'](_0x2c4cc6[_0x353efe]['pairId']),_0x53d0a8=_0x4d0ac5['get'](_0x2c4cc6[_0x353efe]['id']);_0x2c4cc6[_0x353efe]['distance']=_0x477a90-_0x53d0a8;}}['_getRevisionsRange'](_0xe07078,_0x4931e7,_0x345934=!0x1){const _0x27357a=[];let _0x233100=this['repository']['getIndex'](_0xe07078),_0x595e77=this['repository']['getIndex'](_0x4931e7);for(-0x1==_0x595e77&&(_0x595e77=this['repository']['_revisions']['length'],_0x345934=!0x1);_0x233100<_0x595e77;)_0x27357a['push'](this['repository']['getRevision'](_0x233100)),_0x233100++;return _0x345934&&_0x27357a['push'](this['repository']['getRevision'](_0x233100)),_0x27357a;}['_threeWayMerge'](_0x383718,_0x32bcb6,_0x4d31d7,_0x5e7d42){const _0x12041f=this['editor']['model']['schema'];let _0x424fca=_0x32bcb6;for(;_0x383718[_0x424fca]&&_0x383718[_0x424fca]['isAdded'];)_0x424fca++;let _0x6b6e34=_0x5e7d42;for(;_0x4d31d7[_0x6b6e34]&&_0x4d31d7[_0x6b6e34]['isRemoved'];)_0x6b6e34++;_0x16deb6(_0x383718,_0x32bcb6,_0x424fca),_0x16deb6(_0x4d31d7,_0x5e7d42,_0x6b6e34);const _0x8fca20=_0x4d31d7['slice'](_0x5e7d42,_0x6b6e34)['concat'](_0x383718['slice'](_0x32bcb6,_0x424fca));return _0x8fca20['sort']((_0x3e9dab,_0xc6ba06)=>_0x3e9dab['side']!=_0xc6ba06['side']?_0x3e9dab['side']-_0xc6ba06['side']:_0x3e9dab['level']!=_0xc6ba06['level']?_0x3e9dab['level']-_0xc6ba06['level']:_0x3e9dab['distance']!=_0xc6ba06['distance']?_0xc6ba06['distance']-_0x3e9dab['distance']:!!_0x3e9dab['isAdded']!=!!_0xc6ba06['isAdded']?-0x1==_0x3e9dab['side']||0x0==_0x3e9dab['side']?_0x3e9dab['isAdded']?-0x1:0x1:_0x3e9dab['isAdded']?0x1:-0x1:_0x3e9dab['index']-_0xc6ba06['index']),{'commonTape':_0x8fca20,'iEnd':_0x424fca,'jEnd':_0x6b6e34};function _0x16deb6(_0x1bb9e9,_0x58e0fe,_0x139ae8){let _0x5a3b54=-0x1,_0x53c9f8=Number['POSITIVE_INFINITY'],_0x1a9368=!0x0;for(let _0x56daf8=_0x58e0fe;_0x56daf8<_0x139ae8;_0x56daf8++)if(_0x12041f['isInline'](_0x1bb9e9[_0x56daf8]['item'])||(_0x1a9368=!0x1),_0x1bb9e9[_0x56daf8]['item']['startIndex']<_0x58e0fe&&(_0x5a3b54=_0x56daf8),_0x1bb9e9[_0x56daf8]['item']['endIndex']>=_0x139ae8){_0x53c9f8=_0x56daf8;break;}_0x1a9368&&(_0x5a3b54=_0x139ae8-0x1);for(let _0x15fdf4=_0x58e0fe;_0x15fdf4<_0x139ae8;_0x15fdf4++)_0x1bb9e9[_0x15fdf4]['side']=_0x15fdf4<=_0x5a3b54?-0x1:_0x15fdf4<_0x53c9f8?0x0:0x1,_0x1bb9e9[_0x15fdf4]['index']=_0x15fdf4;let _0x4b9824=0x0;for(let _0x485e97=_0x58e0fe;_0x485e97<=_0x5a3b54;_0x485e97++)0x0==_0x1bb9e9[_0x485e97]['distance']?_0x1bb9e9[_0x485e97]['level']=_0x4b9824:(_0x4b9824++,_0x1bb9e9[_0x485e97]['level']=_0x4b9824,_0x4b9824++);for(let _0x5966b1=_0x58e0fe;_0x5966b1<_0x139ae8;_0x5966b1++)0x0==_0x1bb9e9[_0x5966b1]['side']&&(_0x1bb9e9[_0x5966b1]['level']=_0x4b9824);_0x4b9824=0x0;for(let _0x448250=_0x139ae8-0x1;_0x448250>=_0x53c9f8;_0x448250--)0x0==_0x1bb9e9[_0x448250]['distance']?_0x1bb9e9[_0x448250]['level']=_0x4b9824:(_0x4b9824--,_0x1bb9e9[_0x448250]['level']=_0x4b9824,_0x4b9824--);}}['_fixObsoleteTags'](_0x1211d0){const _0xc9ef66=new Map(),_0x425d7b=this['editor']['model']['schema'];for(let _0x195cdf=0x1;_0x195cdf<_0x1211d0['length'];_0x195cdf++){let _0x1b594d,_0x3cf08c,_0x1384cc;const _0x1f4944=_0x1211d0[_0x195cdf],_0x501479=_0x1211d0[_0x195cdf-0x1];if('text'==_0x1f4944['type'])continue;if(_0x1f4944['type']!=_0x501479['type'])continue;if(!_0x425d7b['isBlock'](_0x501479['item'])||_0x425d7b['isLimit'](_0x501479['item']))continue;if(!_0x425d7b['isBlock'](_0x1f4944['item'])||_0x425d7b['isLimit'](_0x1f4944['item']))continue;if((_0x1211d0[_0x195cdf]['isAdded']||_0x1211d0[_0x195cdf]['isAddSuggestion'])&&_0x1211d0[_0x195cdf-0x1]['isRemoved'])_0x1b594d=_0x1211d0[_0x195cdf],_0x3cf08c=_0x1211d0[_0x195cdf-0x1],_0x1384cc=_0x195cdf-0x1;else{if(!_0x1211d0[_0x195cdf]['isRemoved']||!_0x1211d0[_0x195cdf-0x1]['isAdded']&&!_0x1211d0[_0x195cdf-0x1]['isAddSuggestion'])continue;_0x1b594d=_0x1211d0[_0x195cdf-0x1],_0x3cf08c=_0x1211d0[_0x195cdf],_0x1384cc=_0x195cdf;}const _0xd04de2=_0x1b594d['level']==_0x3cf08c['level'],_0x1964bc=Math['abs'](_0x1b594d['level'])<Math['abs'](_0x3cf08c['level'])&&0x0==_0x3cf08c['distance'];(_0xd04de2||_0x1964bc)&&(_0xc9ef66['set'](_0x3cf08c['id'],_0x1b594d['id']),_0x1211d0['splice'](_0x1384cc,0x1),_0x195cdf--,_0x1b594d['isAdded']=!0x1);}for(let _0xd099fa=0x0;_0xd099fa<_0x1211d0['length'];_0xd099fa++)_0xc9ef66['has'](_0x1211d0[_0xd099fa]['pairId'])&&(_0x1211d0[_0xd099fa]['pairId']=_0xc9ef66['get'](_0x1211d0[_0xd099fa]['pairId']));}['_removeMissingPairs'](_0xa45ada){const _0x29d233=new Set(_0xa45ada['map'](_0x2e4683=>_0x2e4683['id']));for(let _0x42ae32=0x0;_0x42ae32<_0xa45ada['length'];_0x42ae32++)_0x29d233['has'](_0xa45ada[_0x42ae32]['pairId'])||0x0==_0xa45ada[_0x42ae32]['distance']||(_0xa45ada[_0x42ae32]['isIncorrect']=!0x0);return _0xa45ada['filter'](_0x2ac31b=>!_0x2ac31b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3dfb38){const _0x4727df=new Set();for(let _0x1ee483=0x0;_0x1ee483<_0x3dfb38['length'];_0x1ee483++){if(_0x4727df['has'](_0x3dfb38[_0x1ee483]['id'])&&_0x3dfb38[_0x1ee483]['isRemoved']&&(_0x3dfb38[_0x1ee483]['isIncorrect']=!0x0),_0x3dfb38[_0x1ee483]['isIncorrect'])continue;if(0x0==_0x3dfb38[_0x1ee483]['distance'])continue;if('elementStart'!=_0x3dfb38[_0x1ee483]['type'])continue;if(null==_0x3dfb38[_0x1ee483]['pairId'])continue;let _0x368572=_0x1ee483+0x1,_0xd9da64=0x0;for(;_0x3dfb38[_0x368572]['id']!=_0x3dfb38[_0x1ee483]['pairId'];)'elementStart'==_0x3dfb38[_0x368572]['type']?_0xd9da64++:'elementEnd'==_0x3dfb38[_0x368572]['type']&&_0xd9da64--,_0x368572++;if(0x0!=_0xd9da64){if(_0x3dfb38[_0x1ee483]['isRemoved'])_0x3dfb38[_0x1ee483]['isIncorrect']=!0x0;else{for(;_0x368572!=_0x1ee483;)_0x3dfb38[_0x368572]['isRemoved']&&0x0!=_0x3dfb38[_0x368572]['distance']&&(_0x3dfb38[_0x368572]['isIncorrect']=!0x0,_0x4727df['add'](_0x3dfb38[_0x368572]['pairId'])),_0x368572--;}}}return _0x3dfb38['filter'](_0x2477cb=>!_0x2477cb['isIncorrect']);}['_removeUnsupportedChanges'](_0x581a8a){const _0x4fe506=this['editor']['model']['schema'];for(let _0x1dee1e=0x0;_0x1dee1e<_0x581a8a['length'];_0x1dee1e++){if(!(_0x581a8a[_0x1dee1e]['isAdded']||_0x581a8a[_0x1dee1e]['isAddSuggestion']||_0x581a8a[_0x1dee1e]['isRemoved']||_0x581a8a[_0x1dee1e]['isRemoveSuggestion']))continue;if(0x0==_0x581a8a[_0x1dee1e]['distance'])continue;const _0x364fb7=_0x581a8a[_0x1dee1e]['item'];_0x4fe506['isBlock'](_0x364fb7)||_0x4fe506['isLimit'](_0x364fb7)||(_0x581a8a[_0x1dee1e]['isAdded']&&delete _0x581a8a[_0x1dee1e]['isAdded'],_0x581a8a[_0x1dee1e]['isAddSuggestion']&&delete _0x581a8a[_0x1dee1e]['isAddSuggestion'],_0x581a8a[_0x1dee1e]['isRemoveSuggestion']&&delete _0x581a8a[_0x1dee1e]['isRemoveSuggestion'],_0x581a8a[_0x1dee1e]['isRemoved']&&(_0x581a8a[_0x1dee1e]['isIncorrect']=!0x0));}return _0x581a8a['filter'](_0x14ebef=>!_0x14ebef['isIncorrect']);}['_makeModelFromTape'](_0x87f036,_0x1044e0,_0x3b531e){const _0x5511d2=new mt(),_0x2d8a04=[],_0x339df9=new Map(),_0x1a7e00=this['editor']['model'],_0x494d66=_0x1a7e00['schema'],_0x21e71b=[_0x5511d2],_0x514eb9={},_0x18508c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4230ae=null;const _0x1ce558=[0x0];for(let _0x299862=0x0;_0x299862<_0x87f036['length'];_0x299862++)if('elementStart'===_0x87f036[_0x299862]['type']){_0x87f036[_0x299862]['previousPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558);const _0x52a4d2=new ft(_0x87f036[_0x299862]['item']['name'],_0x87f036[_0x299862]['item']['getAttributes']());_0x21e71b[0x0]['_appendChild'](_0x52a4d2),_0x1ce558['push'](0x0),_0x21e71b['unshift'](_0x52a4d2),_0x87f036[_0x299862]['nextPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558);}else'elementEnd'===_0x87f036[_0x299862]['type']?(_0x21e71b['shift'](),_0x87f036[_0x299862]['previousPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558),_0x1ce558['pop'](),_0x1ce558[_0x1ce558['length']-0x1]++,_0x87f036[_0x299862]['nextPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558)):(_0x87f036[_0x299862]['previousPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558),_0x4230ae?_0x4230ae['_data']+=_0x87f036[_0x299862]['item']['data']:_0x4230ae=new wt(_0x87f036[_0x299862]['item']['data'],_0x87f036[_0x299862]['item']['getAttributes']()),_0x87f036[_0x299862+0x1]&&'text'===_0x87f036[_0x299862+0x1]['type']&&_0x324895(_0x4230ae,_0x87f036[_0x299862+0x1]['item'])||(_0x21e71b[0x0]['_appendChild'](_0x4230ae),_0x4230ae=null),_0x1ce558[_0x1ce558['length']-0x1]+=_0x87f036[_0x299862]['item']['offsetSize'],_0x87f036[_0x299862]['nextPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558));for(let _0x19ed51=0x0;_0x19ed51<_0x87f036['length'];_0x19ed51++){const _0x328b64=_0x87f036[_0x19ed51]['previousPosition'],_0x2f498c=_0x87f036[_0x19ed51]['nextPosition'];for(const _0xc1db7 of _0x87f036[_0x19ed51]['markersStart'])_0x339df9['set'](_0xc1db7,{'start':_0x328b64,'end':null});_0x2c7504('isRemoveSuggestion',_0x19ed51,_0x328b64,_0x2f498c),_0x2c7504('isAddSuggestion',_0x19ed51,_0x328b64,_0x2f498c),_0x2c7504('isRemoved',_0x19ed51,_0x328b64,_0x2f498c),_0x2c7504('isAdded',_0x19ed51,_0x328b64,_0x2f498c);for(const _0x540e06 of _0x87f036[_0x19ed51]['markersEnd']){_0x339df9['get'](_0x540e06)['end']=_0x2f498c;}}for(const [_0x2d1ff2,_0x4b9f1e]of _0x339df9){const _0x3f0c36=this['editor']['model']['createRange'](_0x4b9f1e['start'],_0x4b9f1e['end']);_0x5511d2['markers']['set'](_0x2d1ff2,_0x3f0c36);}return _0x2d8a04['sort']((_0x58e76c,_0x5ef862)=>{const _0x1fbc0a=_0x5511d2['markers']['get']('revision:'+_0x58e76c['id']),_0x5d8258=_0x5511d2['markers']['get']('revision:'+_0x5ef862['id']);return _0x1fbc0a['start']['isBefore'](_0x5d8258['start'])?-0x1:_0x1fbc0a['start']['isAfter'](_0x5d8258['start'])?0x1:_0x1fbc0a['end']['isBefore'](_0x5d8258['end'])?-0x1:_0x1fbc0a['end']['isAfter'](_0x5d8258['end'])?0x1:'add'===_0x58e76c['type']?-0x1:0x1;}),{'root':_0x5511d2,'changes':_0x2d8a04};function _0x2c7504(_0x27d9fd,_0x2015b0,_0x5d3317,_0x357896){const _0x5e61ea=!!_0x87f036[_0x2015b0][_0x27d9fd],_0x2c6c33=_0x5e61ea?_0x87f036[_0x2015b0][_0x27d9fd]['userId']:null,_0x539064=_0x2015b0===_0x87f036['length']-0x1,_0x53dd45=_0x18508c[_0x27d9fd][0x0],_0x17d6bb=_0x494d66['isObject'](_0x87f036[_0x2015b0]['item']);!_0x514eb9[_0x27d9fd]&&_0x5e61ea?_0x514eb9[_0x27d9fd]={'start':_0x5d3317,'tapeItem':_0x87f036[_0x2015b0],'userId':_0x2c6c33,'type':_0x27d9fd}:_0x514eb9[_0x27d9fd]&&!_0x5e61ea?(_0x514eb9[_0x27d9fd]['end']=_0x5d3317,_0x476369(_0x514eb9[_0x27d9fd]),_0x514eb9[_0x27d9fd]=null):_0x514eb9[_0x27d9fd]&&_0x5e61ea&&_0x514eb9[_0x27d9fd]['userId']!==_0x2c6c33&&(_0x514eb9[_0x27d9fd]['end']=_0x5d3317,_0x53dd45&&_0x53dd45['userId']===_0x514eb9[_0x27d9fd]['userId']||_0x476369(_0x514eb9[_0x27d9fd]),_0x514eb9[_0x27d9fd]={'start':_0x5d3317,'tapeItem':_0x87f036[_0x2015b0],'userId':_0x2c6c33,'type':_0x27d9fd}),_0x514eb9[_0x27d9fd]&&_0x17d6bb&&('elementStart'!==_0x87f036[_0x2015b0]['type']||_0x53dd45&&_0x53dd45['userId']===_0x2c6c33||_0x18508c[_0x27d9fd]['unshift']({'userId':_0x2c6c33,'object':_0x87f036[_0x2015b0]['item'],'change':_0x514eb9[_0x27d9fd]}),'elementEnd'===_0x87f036[_0x2015b0]['type']&&_0x53dd45&&_0x53dd45['object']===_0x87f036[_0x2015b0]['item']&&(_0x18508c[_0x27d9fd]['shift'](),_0x514eb9[_0x27d9fd]=_0x53dd45['change'])),_0x514eb9[_0x27d9fd]&&_0x539064&&(_0x514eb9[_0x27d9fd]['end']=_0x357896,_0x476369(_0x514eb9[_0x27d9fd]),_0x514eb9[_0x27d9fd]=null);}function _0x476369({start:_0x13d8a3,end:_0x225a68,tapeItem:_0x9f3a71,userId:_0x105b12,type:_0x250a4f}){const _0x26bfb7=_0x9f3a71['item'],_0x1681e6=_0x1a7e00['schema']['isBlock'](_0x26bfb7)&&!_0x1a7e00['schema']['isLimit'](_0x26bfb7),_0x3f214a=_0x13d8a3['nodeAfter']==_0x225a68['parent']&&_0x225a68['isAtStart'];if(_0x1681e6&&_0x3f214a)return;const _0x5822ac=_0x1a7e00['createRange'](_0x13d8a3,_0x225a68),_0x191658=_0x1044e0['get'](_0x105b12),_0x15d592=new r({'author':_0x191658,'type':'isAdded'==_0x250a4f||'isAddSuggestion'==_0x250a4f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x250a4f||'isRemoveSuggestion'==_0x250a4f},'createdAt':new Date(),'rootName':_0x3b531e});_0x2d8a04['push'](_0x15d592),_0x5511d2['markers']['set']('revision:'+_0x15d592['id'],_0x5822ac);}function _0x324895(_0x310ad5,_0x297cc5){const _0x449bd7=_0x310ad5['getAttributes'](),_0x3be7dc=_0x297cc5['getAttributes']();for(const _0x1f6fde of _0x449bd7){if(_0x1f6fde[0x1]!==_0x297cc5['getAttribute'](_0x1f6fde[0x0]))return!0x1;_0x3be7dc['next']();}return _0x3be7dc['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x31d3b4=>{const _0x5bce0e=_0x31d3b4['markerName']['split'](':')[0x1],_0x5cb9b9=this['_getChangeFromId'](_0x5bce0e);if(!_0x5cb9b9)return null;const _0x4febfc='add'==_0x5cb9b9['type']?'insertion':'deletion',_0x4d23a7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4febfc];return _0x5cb9b9['data']['isSuggestion']&&_0x4d23a7['push']('ck-suggestion-marker-'+_0x4febfc+'-new'),this['activeChange']==_0x5cb9b9&&_0x4d23a7['push']('ck-suggestion-marker--active'),{'classes':_0x4d23a7,'attributes':{'data-change-id':_0x5bce0e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x230933=>{_0x230933['on']('element:pre',(_0x4f5f72,_0x5b52da,_0x209531)=>{const _0x30100b=_0x5b52da['viewItem']['getChild'](0x0);if(!_0x30100b||!_0x30100b['is']('element','code'))return;if(!_0x209531['consumable']['consume'](_0x30100b,{'attributes':['vid_start','vid_end']}))return;const _0x4c5341=_0x5b52da['modelRange']['start']['nodeAfter'];_0x209531['writer']['setAttribute']('vid_start',_0x30100b['getAttribute']('vid_start'),_0x4c5341),_0x209531['writer']['setAttribute']('vid_end',_0x30100b['getAttribute']('vid_end'),_0x4c5341);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x264c22=>{_0x264c22['on']('element',(_0x53cc0b,_0x3fc282,_0x48653c)=>{if(!_0x48653c['consumable']['consume'](_0x3fc282['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3fc282['modelRange']['isCollapsed'])return;const _0x39c82c=_0x3fc282['modelRange']['start']['nodeAfter'];_0x39c82c['hasAttribute']('vid_start')||_0x39c82c['hasAttribute']('vid')||(_0x48653c['writer']['setAttribute']('vid_start',_0x3fc282['viewItem']['getAttribute']('vid_start'),_0x39c82c),_0x48653c['writer']['setAttribute']('vid_end',_0x3fc282['viewItem']['getAttribute']('vid_end'),_0x39c82c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4b2869=>_0x4b2869['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x525cf9,[,_0x52d2cc])=>{['vid_start','vid_end','vid']['includes'](_0x52d2cc)&&(_0x525cf9['return']=!0x0,_0x525cf9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x59561d=>{_0x59561d['on']('attribute:vid',(_0x180981,_0x479902,_0x1706f1)=>{if('\x20'!=_0x479902['item']['data']||_0x479902['item']['parent']['maxOffset']>0x1)return;if(!_0x1706f1['consumable']['consume'](_0x479902['item'],_0x180981['name']))return;const _0x208d01=_0x1706f1['writer'],_0x3a4692=_0x1706f1['mapper']['toViewRange'](_0x479902['range']);_0x208d01['wrap'](_0x3a4692,_0x208d01['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x347668){const _0x3c5619=_0x347668['plugins']['get']('RevisionViewer');return(_0x1817c3,_0x351b9c,_0x38907d)=>{const _0x1b78a6=_0x351b9c['markerName']['split'](':')[0x1],_0x3db14e=_0x3c5619['_getChangeFromId'](_0x1b78a6);if(!_0x3db14e)return null;const _0x558210='add'==_0x3db14e['type']?'split':'merge';if(!_0x38907d['consumable']['test'](_0x351b9c['markerRange'],_0x1817c3['name']))return;const _0x23364c=_0x351b9c['markerRange']['getWalker'](),_0x36f7f4=_0x351b9c['markerRange']['start'],_0x4ff01a=_0x347668['model']['schema'];let _0x132545=null,_0x4477a0=null,_0x377c46=!0x1,_0x59e839=!0x1;for(const _0x53dfa8 of _0x23364c){const _0x3dd763=_0x53dfa8['item'];_0x377c46=_0x377c46||_0x4ff01a['isContent'](_0x3dd763);const _0x4c4cb7=_0x38907d['mapper']['toViewElement'](_0x3dd763);if(_0x4c4cb7&&_0x4c4cb7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x53dfa8['type']&&(_0x4ff01a['isBlock'](_0x3dd763)&&!_0x4ff01a['isLimit'](_0x3dd763)&&(_0x3dd763['nextSibling']||_0x36f7f4['isAtEnd']?_0x132545&&_0x132545['parent']==_0x3dd763||(_0x132545=_0x3dd763,_0x1c665f(_0x53dfa8['previousPosition']),_0x59e839=!0x0):_0x4477a0=_0x4477a0||_0x53dfa8['previousPosition']));}function _0x1c665f(_0x47aa48){const _0x1ab46c=_0x38907d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x558210}),_0x51375e=_0x38907d['mapper']['toViewPosition'](_0x47aa48);_0x3db14e['data']['isSuggestion']&&_0x38907d['writer']['addClass']('ck-suggestion-marker-'+_0x558210+'-new',_0x1ab46c),_0x3c5619['activeChange']==_0x3db14e&&_0x38907d['writer']['addClass']('ck-suggestion-marker--active',_0x1ab46c),_0x38907d['writer']['insert'](_0x51375e,_0x1ab46c),_0x38907d['mapper']['bindElementToMarker'](_0x1ab46c,_0x351b9c['markerName']);}_0x377c46||_0x59e839||!_0x4477a0||_0x1c665f(_0x4477a0);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4a2f8a,_0x532fa7,_0x3f60f6)=>{const _0x457e31=_0x3f60f6['mapper']['markerNameToElements'](_0x532fa7['markerName']);if(_0x457e31){for(const _0x3952ed of _0x457e31)(_0x3952ed['hasClass']('ck-suggestion-marker-split')||_0x3952ed['hasClass']('ck-suggestion-marker-merge'))&&(_0x3f60f6['mapper']['unbindElementFromMarkerName'](_0x3952ed,_0x532fa7['markerName']),_0x3f60f6['writer']['remove'](_0x3952ed));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x226901,_0x86e74f,_0x16fb9f)=>{const _0x1a04ad=_0x86e74f['markerName']['split'](':')[0x1],_0x32ee98=this['_getChangeFromId'](_0x1a04ad);if(!_0x32ee98)return null;const _0x3ba89c='add'==_0x32ee98['type']?'split':'merge';if(_0x16fb9f['consumable']['test'](_0x86e74f['markerRange'],_0x226901['name']))for(const _0x4548bc of _0x86e74f['markerRange']['getItems']()){if(!_0x4548bc['is']('element','softBreak'))continue;const _0x193d58=_0x16fb9f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ba89c}),_0x10721d=_0x16fb9f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4548bc));_0x32ee98['data']['isSuggestion']&&_0x16fb9f['writer']['addClass']('ck-suggestion-marker-'+_0x3ba89c+'-new',_0x193d58),this['activeChange']==_0x32ee98&&_0x16fb9f['writer']['addClass']('ck-suggestion-marker--active',_0x193d58),_0x16fb9f['writer']['insert'](_0x10721d,_0x193d58),_0x16fb9f['mapper']['bindElementToMarker'](_0x193d58,_0x86e74f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x511b9f=>{for(const _0x452ded of this['editor']['model']['document']['getRootNames']()){const _0x2014f2=this['editor']['model']['document']['getRoot'](_0x452ded),_0x147c1e=this['editor']['editing']['view']['document']['getRoot'](_0x452ded);if(_0x147c1e){const _0x2299a9=_0x2014f2['getAttribute']('revisionHistoryAttachChange');if(_0x511b9f['removeAttribute']('data-change-id',_0x147c1e),_0x511b9f['removeClass']('ck-revision-history-root-add',_0x147c1e),_0x511b9f['removeClass']('ck-revision-history-root-remove',_0x147c1e),_0x511b9f['removeClass']('ck-revision-history-root--active',_0x147c1e),_0x2299a9){const _0x415aec=this['_getChangeFromId'](_0x2299a9);if(!_0x415aec)return null;_0x511b9f['setAttribute']('data-change-id',_0x2299a9,_0x147c1e),_0x511b9f['addClass']('ck-revision-history-root-'+_0x415aec['type'],_0x147c1e),this['activeChange']==_0x415aec&&_0x511b9f['addClass']('ck-revision-history-root--active',_0x147c1e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x42c2d0=>'revision-comment:'+_0x42c2d0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x312c66=>'revision-suggestion:'+_0x312c66,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x318210=>({'name':'suggestion:'+_0x318210,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x48b064=>{const _0x2ef8f2=_0x48b064['markerName']['split'](':')[0x1];return'insertion'!=_0x2ef8f2&&'deletion'!=_0x2ef8f2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2ef8f2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3f219c,_0x4fb493,_0x42ece4)=>{const _0x43707e=_0x42ece4['mapper']['markerNameToElements'](_0x4fb493['markerName']);if(_0x43707e){for(const _0x5ccef4 of _0x43707e)_0x5ccef4['is']('uiElement')&&(_0x42ece4['mapper']['unbindElementFromMarkerName'](_0x5ccef4,_0x4fb493['markerName']),_0x42ece4['writer']['remove'](_0x5ccef4));}},{'priority':'high'});}['_getChangeFromId'](_0x358dac){return this['_changeIdToChange']['get'](_0x358dac);}['_getViewForChange'](_0x5df81e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5df81e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4d89ba,_0x131895,_0x93513a,_0x549bcd)=>{_0x549bcd&&this['_balloon']['remove'](_0x549bcd),_0x93513a&&(this['_balloon']['add']({'view':_0x93513a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4a713d=this['editor']['editing'],_0x197b99=this['_getChangeFromId'](_0x93513a['changeId']);let _0x3ba92e;if(_0x197b99['data']['isOnRoot']){const _0x55c27b=_0x4a713d['view']['getDomRoot'](_0x197b99['rootName']);_0x3ba92e=Array['from'](_0x55c27b['getClientRects']());}else{const _0x1517ad=this['editor']['model']['markers']['get']('revision:'+_0x93513a['changeId']);_0x3ba92e=Array['from'](_0x4a713d['mapper']['markerNameToElements'](_0x1517ad['name']))['map'](_0x101482=>_0x4a713d['view']['domConverter']['mapViewToDom'](_0x101482))['map'](_0x47f412=>Array['from'](_0x47f412['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3ba92e[0x0];return _0x3ba92e['find'](_0x4afcaa=>_0x4afcaa['top']-0x3<=this['_activeViewTarget']['y']&&_0x4afcaa['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4afcaa['left']-0x3<=this['_activeViewTarget']['x']&&_0x4afcaa['right']+0x3>=this['_activeViewTarget']['x'])||_0x3ba92e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x49a960,_0x3a3737,_0x2d229f,_0x50147e)=>{this['activeView']=_0x2d229f?this['_getViewForChange'](_0x2d229f):null,this['editor']['model']['change'](()=>{const _0x5860c0=this['editor']['editing'];_0x50147e&&(_0x50147e['data']['isOnRoot']?_0x5860c0['view']['change'](_0x10b3b5=>{_0x10b3b5['removeClass']('ck-revision-history-root--active',_0x5860c0['view']['document']['getRoot'](_0x50147e['rootName']));}):_0x5860c0['reconvertMarker']('revision:'+_0x50147e['id'])),_0x2d229f&&(_0x2d229f['data']['isOnRoot']?_0x5860c0['view']['change'](_0x3192ee=>{_0x3192ee['addClass']('ck-revision-history-root--active',_0x5860c0['view']['document']['getRoot'](_0x2d229f['rootName']));}):_0x5860c0['reconvertMarker']('revision:'+_0x2d229f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x266e6b,_0x30e331)=>{if(this['activeChange'])return;const _0x5eba07=this['_findChangeIdFromDomTarget'](_0x30e331['target']),_0x373914=this['_changeIdToChange']['get'](_0x5eba07);_0x373914?(this['_activeViewTarget']={'x':_0x30e331['domEvent']['x'],'y':_0x30e331['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x373914)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1744fe,_0x48ea41)=>{const _0x19b6ce=this['_findChangeIdFromDomTarget'](_0x48ea41['target']),_0x269f74=this['_changeIdToChange']['get'](_0x19b6ce);_0x269f74?(this['_activeViewTarget']={'x':_0x48ea41['domEvent']['x'],'y':_0x48ea41['domEvent']['y']},_0x269f74===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x269f74):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x11b3ae){do{const _0x35d165=_0x11b3ae['getAttribute']('data-change-id');if(_0x35d165)return _0x35d165;_0x11b3ae=_0x11b3ae['parent'];}while(_0x11b3ae);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1a63cd=>{for(const _0x2a558b of this['editor']['model']['markers'])_0x1a63cd['removeMarker'](_0x2a558b);});}}function tt(_0x4beeb0,_0x186edc){return(_0x53cf33,_0x292558,_0x4bda3b)=>{if(!_0x4bda3b['consumable']['test'](_0x292558['markerRange'],_0x53cf33['name']))return;const _0x41b28a=_0x292558['markerRange']['getWalker'](),_0x181afc=_0x292558['markerRange']['start'],_0x1ba7bc=_0x4beeb0['model']['schema'];let _0x1933e1=null,_0x4a6d16=null,_0x343025=!0x1,_0x41ab2e=!0x1;for(const _0x30dbd7 of _0x41b28a){const _0x3bf3a1=_0x30dbd7['item'];_0x343025=_0x343025||_0x1ba7bc['isContent'](_0x3bf3a1);const _0x2a0d90=_0x4bda3b['mapper']['toViewElement'](_0x3bf3a1);if(_0x2a0d90&&_0x2a0d90['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30dbd7['type']&&(_0x1ba7bc['isBlock'](_0x3bf3a1)&&!_0x1ba7bc['isLimit'](_0x3bf3a1)&&(_0x3bf3a1['nextSibling']||_0x181afc['isAtEnd']?_0x1933e1&&_0x1933e1['parent']==_0x3bf3a1||(_0x1933e1=_0x3bf3a1,_0x127996(_0x30dbd7['previousPosition']),_0x41ab2e=!0x0):_0x4a6d16=_0x4a6d16||_0x30dbd7['previousPosition']));}function _0x127996(_0x60129f){const _0x4bfa5b=_0x4bda3b['mapper']['toViewPosition'](_0x60129f),_0x17b996=_0x4bda3b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x186edc});_0x4bda3b['writer']['insert'](_0x4bfa5b,_0x17b996),_0x4bda3b['mapper']['bindElementToMarker'](_0x17b996,_0x292558['markerName']);}_0x343025||_0x41ab2e||!_0x4a6d16||_0x127996(_0x4a6d16);};}class _t extends _0x14503b{constructor(_0x1ea38){super(_0x1ea38);const _0x4eb108=_0x1ea38['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4eb108,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4eb108,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x581a71=this['editor'],_0x547383=_0x581a71['plugins']['get'](d),_0x17e827=_0x547383['isReady']?_0x547383['diff']['newRevisionId']:null;_0x581a71['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x17e827);}['refresh'](){const {isReady:_0x1837c7,isEnabled:_0x5edebd}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x1837c7&&_0x5edebd;}}class yt extends _0x14503b{['_step'];constructor(_0x5896a1,{direction:_0x14b160}){super(_0x5896a1);const _0x2332c5=_0x5896a1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x14b160?0x1:-0x1,this['listenTo'](_0x2332c5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2332c5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2332c5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2f82af=this['editor'],_0x65258b=_0x2f82af['plugins']['get'](d),{isNavigationMode:_0x4532d1,currentChangeNumber:_0x471ae5}=_0x65258b;let _0x199284;if(_0x65258b['activeChange']=_0x4532d1?_0x65258b['diff']['changes']['get'](_0x471ae5+this['_step']):_0x65258b['diff']['changes']['first'],_0x65258b['activeChange']['data']['isOnRoot'])_0x199284=_0x2f82af['editing']['view']['getDomRoot'](_0x65258b['activeChange']['rootName']);else{const _0x5b5662=_0x2f82af['model']['markers']['get']('revision:'+_0x65258b['activeChange']['id']);_0x199284=_0xca6c05(_0x2f82af['editing'],_0x5b5662);}_0x5ef61f({'target':_0x199284,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4dcf7c,currentChangeNumber:_0x34890d,numberOfChanges:_0x11390f,isReady:_0x38b530,isEnabled:_0x3d9d54}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3d9d54&&_0x38b530&&_0x11390f)&&(!_0x4dcf7c||(0x1===this['_step']?_0x34890d<_0x11390f-0x1:_0x34890d>0x0));}}class ui extends ts{constructor(_0x22a723){super(_0x22a723);const _0x359698=this['bindTemplate'],_0x645082=new te(_0x22a723),_0x4f939c=new te(_0x22a723);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',(_0x219d86,_0x5c0a4b)=>_0x219d86&&_0x5c0a4b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1ddd71,_0xe023b4,_0x2b45ea,_0x1b510f)=>{if(!_0x1ddd71)return R(_0x22a723,'Loading...');if(!_0x2b45ea)return R(_0x22a723,'No\x20changes');const _0x331ee0=R(_0x22a723,'NUMBER_OF_CHANGES',_0x2b45ea);return _0x1b510f?R(_0x22a723,'X_OF_Y_CHANGES',[_0xe023b4+0x1,_0x2b45ea]):_0x331ee0;}),_0x645082['set']({'label':R(_0x22a723,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x4f939c['set']({'label':R(_0x22a723,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x645082['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4f939c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x645082['on']('execute',()=>this['fire']('execute','backward')),_0x4f939c['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',_0x359698['if']('_isStatusLabelVisible','ck-hidden',_0x24a0ae=>!_0x24a0ae)]},'children':[{'text':_0x359698['to']('isNavigationMode',_0x366eb2=>_0x366eb2?R(_0x22a723,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x22a723,'Total')+':\x20')}]},{'text':_0x359698['to']('_statusText')}]},new _0xbbb2ea(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x645082,_0x4f939c]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x39b81a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x371f2a=this['editor']['editing']['view'];_0x371f2a['change'](_0x39d592=>{for(const _0x360dd0 of _0x371f2a['document']['roots'])_0x39d592['addClass'](le,_0x360dd0);});}['hide'](){const _0x1c26e9=this['editor']['editing']['view'];_0x1c26e9['change'](_0x25582e=>{for(const _0x3e5b1f of _0x1c26e9['document']['roots'])_0x25582e['removeClass'](le,_0x3e5b1f);});}}class m extends _0x39b81a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0xf27b72=this['editor'],_0x3f3de7=_0xf27b72['plugins']['get'](d),_0x44f38c=_0xf27b72['plugins']['get'](de);_0xf27b72['ui']['componentFactory']['add']('exitToEditing',_0x19e0b3=>{const _0x570a77=new te(_0x19e0b3);return _0x570a77['set']({'label':R(_0x19e0b3,'Back\x20to\x20editing'),'icon':_0x590976['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x570a77,'execute',()=>{_0xf27b72['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x570a77;}),_0xf27b72['ui']['componentFactory']['add']('restoreRevision',_0x5dd2c5=>{const _0x20f129=new te(_0x5dd2c5);return _0x20f129['set']({'label':R(_0x5dd2c5,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x20f129['bind']('isEnabled')['to'](_0xf27b72['commands']['get']('restoreRevision')),this['listenTo'](_0x20f129,'execute',()=>_0xf27b72['execute']('restoreRevision')),_0x20f129;}),_0xf27b72['ui']['componentFactory']['add']('changesNavigation',_0x202cef=>{const _0x495924=new ui(_0x202cef),_0x491791=_0xf27b72['commands']['get']('showPreviousChange'),_0x4bd895=_0xf27b72['commands']['get']('showNextChange');return _0x495924['bind']('isBackwardNavigationEnabled')['to'](_0x491791,'isEnabled'),_0x495924['bind']('isForwardNavigationEnabled')['to'](_0x4bd895,'isEnabled'),_0x495924['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3f3de7),this['listenTo'](_0x495924,'execute',(_0x1b137b,_0x18f065)=>{_0xf27b72['execute']('forward'===_0x18f065?'showNextChange':'showPreviousChange');}),_0x495924;}),_0x44f38c['show'](),_0x3f3de7['on']('change:isReady',(_0x492533,_0x481ed5,_0x1c5cba)=>{_0x1c5cba?_0x44f38c['hide']():_0x44f38c['show']();});}}class pt extends _0x5eff68{['_resizeObserver']=null;constructor(_0x26ecc0,_0x2d9b48){super(_0x26ecc0,_0x2d9b48);const _0x4a199a=this['bindTemplate'];this['set']({'label':R(_0x26ecc0,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x26ecc0,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4a199a['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 _0x147710=this['fieldView']['element'];this['_tooltipString']=_0x147710['scrollWidth']>_0x147710['clientWidth']&&_0x147710['value']||'';}}class ri extends ts{constructor(_0x40fd26,_0x1f5e4b,_0x2fa543){super(_0x40fd26);const _0x1bec08=new _0x18863c();_0x1bec08['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x5363a7=['ck','ck-revision-history-sidebar__revision-author'];_0x2fa543&&_0x5363a7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x326679=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x40fd26,_0x2fa543?'Revision\x20creator':'Revision\x20author')},'children':[_0x1bec08,_0x1f5e4b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5363a7},'children':_0x326679});}}function oi(_0x3c273b,_0x3213e9){const _0x5af66e=_0x3c273b['bindTemplate'],_0x12ea5c=_0x3c273b['locale'],_0x23fe78=_0x5533af(_0x12ea5c);_0x23fe78['panelPosition']='sw';const _0x5bf167=function(_0x4caa54,_0x3dad05){const _0x19e6f5=function(_0x1de0a2,_0x12fc65){const _0x47b60e=_0x1de0a2['locale'],_0x540407={'Compare\x20against\x20selected':R(_0x47b60e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x47b60e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x47b60e,'Restore\x20this\x20revision')};return _0x12fc65['map'](_0x1b9b8e=>{const _0xe63c43=_0x540407[_0x1b9b8e['name']];return _0xe63c43&&_0xe63c43!==_0x1b9b8e['name']&&(_0x1b9b8e['name']=_0xe63c43),_0x1b9b8e;});}(_0x4caa54,_0x3dad05),_0x27e902=new _0x5c9475();for(const _0x23fe50 of _0x19e6f5){const _0xa4c688={'type':'button','model':new _0x13d394({'label':_0x23fe50['name'],'class':_0x23fe50['class'],'withText':!0x0,'role':'menuitem','_action':_0x23fe50['action']})};_0xa4c688['model']['bind']('isEnabled')['to'](_0x4caa54,'isActionsDropdownOpen',_0x628fd6=>'function'!=typeof _0x23fe50['isEnabled']||(!_0x628fd6||_0x23fe50['isEnabled'](_0x4caa54))),_0x27e902['add'](_0xa4c688);}return _0x27e902;}(_0x3c273b,_0x3213e9);return _0x3c273b['bind']('isActionsDropdownOpen')['to'](_0x23fe78,'isOpen'),_0x23fe78['buttonView']['set']({'label':R(_0x12ea5c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x590976['threeVerticalDots']}),_0x23fe78['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5af66e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5af66e['to'](_0x50b1a6=>_0x50b1a6['stopPropagation']())}}),_0x23fe78['on']('execute',_0x20502d=>{_0x3c273b['isReady']&&'function'==typeof _0x20502d['source']['_action']&&_0x20502d['source']['_action'](_0x3c273b);}),to(_0x23fe78,_0x5bf167,{'role':'menu'}),_0x23fe78['listenTo'](_0x3c273b,'change:isActionsDropdownOpen',(_0x223317,_0x39e4fd,_0x14899e)=>{if(_0x14899e)for(const _0x6c9a2e of _0x23fe78['listView']['items']){const _0x366a4f=_0x6c9a2e['children']['first'],_0x9417e5=_0x3213e9['find'](_0x166c1c=>_0x166c1c['action']===_0x366a4f['_action'])['isVisible'];_0x6c9a2e['isVisible']=void 0x0===_0x9417e5||_0x9417e5(_0x3c273b);}}),_0x23fe78;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xee6995,_0x45b2e5,_0x500226,_0x5cc987){super(_0xee6995);const _0x459072=this['bindTemplate'],_0x13c6a9=function(_0x37ceb5,_0x15e2b4){const _0x1cc170=Array['from'](_0x15e2b4['authors'])['filter'](_0x1d696a=>_0x1d696a!=_0x15e2b4['creator']);return _0x15e2b4['creator']&&_0x1cc170['unshift'](_0x15e2b4['creator']),_0x1cc170['map'](_0x3966c5=>new ri(_0x37ceb5,_0x3966c5,_0x3966c5==_0x15e2b4['creator']));}(_0xee6995,_0x45b2e5);this['id']=_0x45b2e5['id'],this['_revision']=_0x45b2e5,this['_requireRevisionName']=_0x5cc987,this['bind']('name','createdAt')['to'](_0x45b2e5),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3a64ef=>{return _0xba0513=_0xee6995['uiLanguage'],(_0x1750e1=_0x3a64ef)['toLocaleDateString'](_0xba0513,{'month':'long','day':'numeric'})+',\x20'+_0x1750e1['toLocaleTimeString'](_0xba0513,{'hour':'numeric','minute':'numeric'});var _0xba0513,_0x1750e1;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0xee6995,_0x1f1f1e),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1f9756=>_0x1f9756||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2cd1d2,_0x2235bc)=>_0x2cd1d2&&_0x2235bc),this['revisionActionsView']=_0x500226&&_0x500226['length']?oi(this,_0x500226):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x459072['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x459072['if']('isEnabled','ck-disabled',_0x41f9f9=>!_0x41f9f9),_0x459072['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x459072['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x459072['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':_0x459072['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':_0x13c6a9}]},this['revisionActionsView']],'on':{'click':_0x459072['to'](_0x159440=>{_0x159440['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xdc2cc7=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xdc2cc7,'change',()=>{this['_requireRevisionName']&&!_0xdc2cc7['value']||this['fire']('setName',{'id':this['id'],'name':_0xdc2cc7['value']}),_0xdc2cc7['value']||(_0xdc2cc7['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(_0x66b75a,_0x38953f){const _0x704316=_0x175515['fromJSDate'](_0x66b75a)['setLocale'](_0x38953f),_0x3a05e7=_0x175515['local'](),_0x53d58c=_0x3a05e7['minus']({'days':0x1})['startOf']('day');let _0x458a85,_0x49abbc;return _0x704316['hasSame'](_0x3a05e7,'day')?(_0x458a85=_0x704316['startOf']('day')['toJSDate'](),_0x49abbc=_0x704316['toRelativeCalendar']()):_0x704316['hasSame'](_0x53d58c,'day')?(_0x458a85=_0x53d58c['toJSDate'](),_0x49abbc=_0x704316['toRelativeCalendar']()):_0x704316['hasSame'](_0x3a05e7,'week')?(_0x458a85=_0x704316['startOf']('week')['toJSDate'](),_0x49abbc=_0x704316['weekdayLong']||''):_0x704316['hasSame'](_0x3a05e7,'year')?(_0x458a85=_0x704316['startOf']('month')['toJSDate'](),_0x49abbc=_0x704316['monthLong']||''):(_0x458a85=_0x704316['startOf']('year')['toJSDate'](),_0x49abbc=String(_0x704316['year'])),{'startDate':_0x458a85,'localizedPeriodName':_0x49abbc};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5d3280,_0x4ec5cc,_0x39e435,_0x5c59dc){super(_0x5d3280);const _0x9b8465=mi(_0x4ec5cc,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4ec5cc,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x39e435,this['_requireRevisionName']=_0x5c59dc,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':_0x9b8465}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x42fa39){const _0x16fa14=new hi(this['locale'],_0x42fa39,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x16fa14);}['removeRevision'](_0x2fd7f0){const _0x2a0e5b=this['revisionViews']['find'](_0x1854c7=>_0x1854c7['id']===_0x2fd7f0['id']);this['revisionViews']['remove'](_0x2a0e5b);}}class as extends ts{constructor(_0x4f58fc){super(_0x4f58fc);const _0x37129e=new _0x18863c();_0x37129e['content']=_0x590976['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x37129e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x4f58fc,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x559629,_0x17fcce,_0x41ab78,_0x5a4bf6){super(_0x559629);const _0x366434=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x17fcce,this['_revisionActions']=_0x41ab78,this['_requireRevisionName']=_0x5a4bf6,this['on']('select',(_0x3a9181,_0x562dcc)=>{this['fire']('revisionSelected',_0x562dcc);}),this['on']('setName',(_0xb6ae4,_0x1a8618)=>{this['fire']('revisionSetName',_0x1a8618);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x559629),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x366434['if']('isEnabled','ck-disabled',_0xaa7e75=>!_0xaa7e75)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x251f82 of this['_revisions'])this['_addRevision'](_0x251f82);this['_revisions']['on']('add',(_0x184dca,_0x3fb810)=>{this['_addRevision'](_0x3fb810);}),this['_revisions']['on']('remove',(_0xa29032,_0x5eb53d)=>{this['_removeRevision'](_0x5eb53d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5125ed=>_0x5125ed['revisionViews']['map'](_0x5eeba4=>_0x5eeba4))['flat']();}['selectRevision'](_0x1676bb){for(const _0x28b87a of this['revisionViews'])_0x1676bb&&_0x1676bb['id']===_0x28b87a['id']?_0x28b87a['select']():_0x28b87a['deselect']();}['highlightRevisions'](_0x3a7c37){for(const _0x48d172 of this['revisionViews'])_0x3a7c37['some'](({id:_0x62847d})=>_0x62847d===_0x48d172['id'])?_0x48d172['highlight']():_0x48d172['unhighlight']();}['_addRevision'](_0xe6810e){const _0x4528a7=mi(_0xe6810e['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5d778d=this['timePeriodViews']['get'](0x0);_0x5d778d&&_0x5d778d['startDate']['getTime']()===_0x4528a7['getTime']()||(_0x5d778d=new vi(this['locale'],_0x4528a7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5d778d)),_0x5d778d['addRevision'](_0xe6810e);}['_removeRevision'](_0x12537d){const _0x37b793=mi(_0x12537d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x37b793)['removeRevision'](_0x12537d);}['_getTimePeriodViewByStartDate'](_0x1abd3b){return this['timePeriodViews']['find'](_0x3ad388=>_0x3ad388['startDate']['getTime']()===_0x1abd3b['getTime']());}}class g extends _0x39b81a{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x112f26,uid as _0x1e3a97,Collection as _0x50d8e8,logWarning as _0x5d3bd4,FocusTracker as _0x77040e,KeystrokeHandler as _0x2dd40d,scrollViewportToShowTarget as _0x34df8d,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x3d8b0a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x59dc59,set as _0x28615b,unset as _0x481900,isEqual as _0x3c165a}from'lodash-es';import{Plugin as _0x9c73c6,PendingActions as _0x252351,icons as _0x442c2a,Command as _0x40d10f,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x40a0f3,getMarkerDomElement as _0x5bc5d2,ConfirmMixin as _0x4d6962,sanitizeEditorConfig as _0x54b203}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x474688,ViewText as _0x146933,ViewElement as _0x1a6832,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x3316d1,ViewAttributeElement as _0x109015,ViewEmptyElement as _0x1b15d3,ViewRawElement as _0x821116,ViewUIElement as _0x5e82db,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x4e2633,submitHandler as _0xfca4bd,LabeledFieldView as _0x585659,createLabeledInputText as _0x42bc0a,createDropdown as _0x4832b0,ListView as _0x2f59d0,ListItemView as _0x4d48d8,ButtonView as te,MenuBarMenuView as _0x7e524e,MenuBarMenuListView as _0x1f69ca,MenuBarMenuListItemView as _0x3f4470,MenuBarMenuListItemButtonView as _0x2ada9c,ContextualBalloon as _0x58fdad,ToolbarSeparatorView as _0x5baf40,IconView as _0x2d529d,addListToDropdown as to,ViewModel as _0x4bcfc1,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x23c007}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x112f26(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3f79a7){super(),this['id']=_0x3f79a7['id']||_0x1e3a97(),this['creator']=_0x3f79a7['creator']||null,this['authors']=_0x3f79a7['authors']||[],this['diffData']=_0x3f79a7['diffData']||null,this['toVersion']=_0x3f79a7['toVersion']||0x0,this['fromVersion']=_0x3f79a7['fromVersion']||0x0,this['set']('name',_0x3f79a7['name']||''),this['set']('createdAt',_0x3f79a7['createdAt']||new Date()),this['set']('attributes',_0x3f79a7['attributes']||{});}['setName'](_0x4f5035){this['_update']({'name':_0x4f5035});}['setAttribute'](_0x39c26a,_0x48f168){const _0x4d6c16=_0x59dc59(this['attributes']);_0x28615b(_0x4d6c16,_0x39c26a,_0x48f168),this['_update']({'attributes':_0x4d6c16});}['removeAttribute'](_0x3eeb5f){const _0x14a41f=_0x59dc59(this['attributes']);_0x481900(_0x14a41f,_0x3eeb5f),this['_update']({'attributes':_0x14a41f});}['_update'](_0x37a99f,_0x316d89=!0x1){let _0x49ea57=!0x1;const _0x5e8fd8={'id':this['id']},_0x595246=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2beaa5 of _0x595246){const _0x3ffbbe=_0x37a99f[_0x2beaa5];void 0x0!==_0x3ffbbe&&_0x3ffbbe!==this[_0x2beaa5]&&(this[_0x2beaa5]=_0x3ffbbe,_0x5e8fd8[_0x2beaa5]=_0x3ffbbe,_0x49ea57=!0x0);}_0x49ea57&&(_0x5e8fd8['authors']&&(_0x5e8fd8['authorsIds']=_0x5e8fd8['authors']['map'](_0x3619e3=>_0x3619e3['id']),delete _0x5e8fd8['authors']),this['fire']('_update',_0x5e8fd8,_0x316d89));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x116023=>_0x116023['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x9c73c6{['_revisions'];static get['requires'](){return[_0x40a0f3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x161bb0){super(_0x161bb0),this['_revisions']=new _0x50d8e8();}['afterInit'](){!async function(_0x3dc312){const _0x5ac47a=_0x5c311b([0x54,0x55,0x6f,0x69,0x75,0x78,0x76,0x65,0x42,0x73,0x35,0x64,0x39,0x41,0x33,0x57,0x32,0x34,0x70,0x74,0x50,0x4c,0x53,0x48,0x43,0x30,0x6b,0x61,0x66,0x47,0x79,0x72,0x52,0x5a,0x62,0x58,0x56,0x7a,0x4e,0x63,0x59,0x6e,0x68,0x6a,0x51,0x38,0x71,0x31,0x4d,0x4f,0x44,0x46,0x6c,0x67,0x36,0x4a,0x37,0x4b,0x49,0x45,0x77,0x6d]),_0x1285ad=0xeb829,_0x27dddf=0x1c7b6224,_0x527731=0x1c7c35bc^_0x27dddf,_0x4160a7=window[_0x5c311b([0x44,0x61,0x74,0x65])][_0x5c311b([0x6e,0x6f,0x77])](),_0x2cb20a=_0x3dc312[_0x5c311b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31c803=new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cca9a=>{_0x2cb20a[_0x5c311b([0x6f,0x6e,0x63,0x65])](_0x5c311b([0x72,0x65,0x61,0x64,0x79]),_0x3cca9a);}),_0x1243bb={[_0x5c311b([0x6b,0x74,0x79])]:_0x5c311b([0x45,0x43]),[_0x5c311b([0x75,0x73,0x65])]:_0x5c311b([0x73,0x69,0x67]),[_0x5c311b([0x63,0x72,0x76])]:_0x5c311b([0x50,0x2d,0x32,0x35,0x36]),[_0x5c311b([0x78])]:_0x5c311b([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]),[_0x5c311b([0x79])]:_0x5c311b([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]),[_0x5c311b([0x61,0x6c,0x67])]:_0x5c311b([0x45,0x53,0x32,0x35,0x36])},_0xf54cdb=_0x2cb20a[_0x5c311b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c311b([0x67,0x65,0x74])](_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x559cba(){let _0x49af1f,_0x3af01d=null,_0xbd534d=null;try{if(_0xf54cdb==_0x5c311b([0x47,0x50,0x4c]))return _0x5c311b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49af1f=_0x173b87(),!_0x49af1f)return _0x5c311b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49af1f[_0x5c311b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbd534d=_0x531007(_0x49af1f[_0x5c311b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49af1f[_0x5c311b([0x6a,0x74,0x69])])),await _0x57ee0a()?_0x4fd593()?_0x4b9508()?_0x5c311b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c1fbb()?(_0x49af1f[_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c311b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3af01d=_0x2bed26(_0x5c311b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49af1f[_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c311b([0x74,0x72,0x69,0x61,0x6c])&&(_0x3af01d=_0x2bed26(_0x5c311b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x49af1f[_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c311b([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3af01d=_0x2bed26(_0x5c311b([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc5aaee()):_0x5c311b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c311b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c311b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3af0dc){return _0x5c311b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b9508(){const _0x2971ee=[_0x5c311b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c311b([0x74,0x72,0x69,0x61,0x6c])][_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49af1f[_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4160a7/0x3e8:0xe10*_0x527731;return _0x49af1f[_0x5c311b([0x65,0x78,0x70])]<_0x2971ee;}function _0x4fd593(){const _0x230b18=_0x49af1f[_0x5c311b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x230b18&&(!!_0x230b18[_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c311b([0x2a]))||(!!_0x230b18[_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c311b([0x52,0x48]))||!(!_0x230b18[_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c311b([0x52,0x52,0x48]))||!_0x5975cb())));}function _0x3c1fbb(){const _0x2bb4c6=_0x49af1f[_0x5c311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bb4c6||0x0==_0x2bb4c6[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x385339}=new URL(window[_0x5c311b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2bb4c6[_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x385339))return!0x0;const _0x14fff9=_0x385339[_0x5c311b([0x73,0x70,0x6c,0x69,0x74])](_0x5c311b([0x2e]));return _0x2bb4c6[_0x5c311b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25c4e2=>_0x25c4e2[_0x5c311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c311b([0x2a])))[_0x5c311b([0x6d,0x61,0x70])](_0x27745f=>_0x27745f[_0x5c311b([0x73,0x70,0x6c,0x69,0x74])](_0x5c311b([0x2e])))[_0x5c311b([0x73,0x6f,0x6d,0x65])](_0x43ff20=>_0x14fff9[_0x5c311b([0x65,0x76,0x65,0x72,0x79])]((_0x3dd5de,_0xe5d34)=>_0x43ff20[_0xe5d34]===_0x3dd5de||_0x43ff20[_0xe5d34]===_0x5c311b([0x2a])));}function _0xc5aaee(){return _0x3af01d&&_0xbd534d?new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x563a7e,_0x319130)=>{_0x3af01d[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x563a7e,_0x319130),_0xbd534d[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x5c8680=>{_0x5c8680!=_0x5c311b([0x56,0x61,0x6c,0x69,0x64])&&_0x563a7e(_0x5c8680);},_0x319130);}):_0x3af01d||_0xbd534d||_0x5c311b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x531007(_0x410aa0,_0x43148d){return new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57280d=>{if(_0x33798a())return _0x57280d(_0x5c311b([0x56,0x61,0x6c,0x69,0x64]));_0x115089(),_0x2cb20a[_0x5c311b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c311b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1503b8=!0x1;const _0x5b5c36=_0x1e3a97();function _0x2934e8(_0x3fa54e){return!!_0x3fa54e&&(typeof _0x3fa54e===_0x5c311b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fa54e===_0x5c311b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fa54e[_0x5c311b([0x74,0x68,0x65,0x6e])]===_0x5c311b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fa54e[_0x5c311b([0x63,0x61,0x74,0x63,0x68])]===_0x5c311b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x527eb3(_0x78624b){_0xe0ac6a(_0x78624b)[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x3d5b94=>{if(!_0x3d5b94||_0x3d5b94[_0x5c311b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c311b([0x6f,0x6b]))return _0x5c311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x473428(_0x4105eb(_0x5b5c36+_0x43148d))!=_0x3d5b94[_0x5c311b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c311b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x135718=>(_0x22b8a2(),_0x135718),()=>{const _0x35140f=_0x1d33ce();return null==_0x35140f?(_0x22b8a2(),_0x5c311b([0x56,0x61,0x6c,0x69,0x64])):_0x5c311b(_0x4160a7-_0x35140f>(0x3877e624^_0x27dddf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x57280d)[_0x5c311b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57280d(_0x5c311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e0fce=0x1c4d8ca4^_0x27dddf;function _0x22b8a2(){const _0x5b4594=_0x5c311b([0x6c,0x6c,0x63,0x74,0x2d])+_0x473428(_0x4105eb(_0x410aa0)),_0x1f0a15=_0x1d557b(_0x473428(window[_0x5c311b([0x4d,0x61,0x74,0x68])][_0x5c311b([0x63,0x65,0x69,0x6c])](_0x4160a7/_0x2e0fce)));window[_0x5c311b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c311b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b4594,_0x1f0a15);}function _0x1d33ce(){const _0x49077f=_0x5c311b([0x6c,0x6c,0x63,0x74,0x2d])+_0x473428(_0x4105eb(_0x410aa0)),_0x483b57=window[_0x5c311b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c311b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49077f);return _0x483b57?window[_0x5c311b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d557b(_0x483b57),0x10)*_0x2e0fce:null;}function _0xe0ac6a(_0x30f30d){return new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7576bc,_0x3ce82d)=>{_0x30f30d[_0x5c311b([0x74,0x68,0x65,0x6e])](_0x7576bc,_0x3ce82d),window[_0x5c311b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ce82d,0x1c7ab6e4^_0x27dddf);});}}_0x2cb20a[_0x5c311b([0x6f,0x6e])](_0x5c311b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x568f55,_0x235ff9)=>{if(_0x235ff9[0x0]!=_0x410aa0)return _0x57280d(_0x5c311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x235ff9[0x1]={..._0x235ff9[0x1],[_0x5c311b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b5c36};},{[_0x5c311b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c311b([0x68,0x69,0x67,0x68])}),_0x2cb20a[_0x5c311b([0x6f,0x6e])](_0x5c311b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e9ef2=>{_0x2934e8(_0x1e9ef2[_0x5c311b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1503b8=!0x0,_0x527eb3(_0x1e9ef2[_0x5c311b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c311b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c311b([0x6c,0x6f,0x77])}),_0x31c803[_0x5c311b([0x74,0x68,0x65,0x6e])](()=>{_0x1503b8||_0x57280d(_0x5c311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33798a(){return _0x2cb20a[_0x5c311b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c311b([0x76,0x69,0x65,0x77])][_0x5c311b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c311b([0x61,0x75,0x74,0x6f]);}function _0x115089(){_0x2cb20a[_0x5c311b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c311b([0x76,0x69,0x65,0x77])][_0x5c311b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c311b([0x61,0x75,0x74,0x6f]);}}function _0x2bed26(_0x38bbbd){const _0x381bb6=[new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d32be=>setTimeout(_0x4d32be,0x1c725ce8^_0x27dddf)),_0x31c803[_0x5c311b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429cd3=>{const _0x1856ff=0x1c7b6223^_0x27dddf,_0x209e0b=_0x3dc312[_0x5c311b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x51c60a(){_0x209e0b[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1856ff&&_0x429cd3();}_0x51c60a(),_0x209e0b[_0x5c311b([0x6f,0x6e])](_0x5c311b([0x61,0x64,0x64]),_0x51c60a);})),new window[(_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x231cc4=>{function _0x15c97d(){for(const _0x18739c in window)if(window[_0x5c311b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5c311b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x18739c))&&window[_0x18739c]==_0x1285ad)return _0x231cc4();_0x2cb20a[_0x5c311b([0x73,0x74,0x61,0x74,0x65])]!=_0x5c311b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5c311b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15c97d,0x1c7b71ac^_0x27dddf);}_0x4dfdf0(_0x5c311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x15c97d();})];return window[_0x5c311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c311b([0x72,0x61,0x63,0x65])](_0x381bb6)[_0x5c311b([0x74,0x68,0x65,0x6e])](()=>_0x38bbbd);}async function _0x4e495f(){if(await _0x31c803,_0x4dfdf0(_0x5c311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x33a095=_0x3dc312[_0x5c311b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3d61ef=_0x3dc312[_0x5c311b([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])](_0x33a095[_0x5c311b([0x69,0x64])]),_0x239554=_0x29d7fe(_0x5c311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x239554[_0x5c311b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x33a095['id'],_0x3d61ef?_0x3d61ef['id']:null,!0x0),_0x239554[_0x5c311b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5c311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x239554[_0x5c311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x239554[_0x5c311b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4bd7d6,void(_0x239554[_0x5c311b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4bd7d6);}if(_0x4dfdf0(_0x5c311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2ad2fd=_0x29d7fe(_0x5c311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2ad2fd[_0x5c311b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5c311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2ad2fd[_0x5c311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2ad2fd[_0x5c311b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4bd7d6,_0x2ad2fd[_0x5c311b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4bd7d6;}_0x2cb20a[_0x5c311b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c311b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4bd7d6,_0x2cb20a[_0x5c311b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c311b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4bd7d6,_0x2cb20a[_0x5c311b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c311b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5975cb(){return _0x4dfdf0(_0x5c311b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29d7fe(_0x5c311b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5c311b([0x73,0x74,0x61,0x74,0x65])]==_0x5c311b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5b6549(_0x4d75fd){const _0x51e652=_0x3889ab();_0x2cb20a[_0x51e652]=_0x5c311b([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])+_0x4d75fd,_0x4d75fd[_0x5c311b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5c311b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3889ab()]=_0x1285ad),_0x4d75fd!=_0x5c311b([0x56,0x61,0x6c,0x69,0x64])&&_0x4e495f();}function _0x3889ab(){const _0x58b5d8=window[_0x5c311b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c311b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c311b([0x6e,0x6f,0x77])]())[_0x5c311b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c311b([0x2e]),'');let _0x48cda4=_0x5c311b([0x54]);for(let _0x2c0165=0x0;_0x2c0165<_0x58b5d8[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c0165+=0x2){let _0x6f2750=window[_0x5c311b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b5d8[_0x5c311b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c0165,_0x2c0165+0x2));_0x6f2750>=_0x5ac47a[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6f2750-=_0x5ac47a[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48cda4+=_0x5ac47a[_0x6f2750];}return _0x48cda4;}function _0x173b87(){const _0xe4e341=_0xf54cdb[_0x5c311b([0x73,0x70,0x6c,0x69,0x74])](_0x5c311b([0x2e]));if(0x3!=_0xe4e341[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x289975(_0xe4e341[0x1]);function _0x289975(_0x31cd28){const _0x536435=_0x301a1e(_0x31cd28);return _0x536435&&_0x3d891a()?_0x536435:null;function _0x3d891a(){const _0x590d95=_0x536435[_0x5c311b([0x6a,0x74,0x69])],_0x484ac6=window[_0x5c311b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x590d95[_0x5c311b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x590d95[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e50a2={..._0x536435,[_0x5c311b([0x6a,0x74,0x69])]:_0x590d95[_0x5c311b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x590d95[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e50a2[_0x5c311b([0x76,0x63])],_0x4105eb(_0x3e50a2)==_0x484ac6;}}}async function _0x57ee0a(){let _0x2ba630=!0x0;try{const _0x3681e8=_0xf54cdb[_0x5c311b([0x73,0x70,0x6c,0x69,0x74])](_0x5c311b([0x2e])),[_0x33c93c,_0xf94353,_0x6aa5fa]=_0x3681e8;return _0xfdd30d(_0x33c93c),await _0x91f06(_0x33c93c,_0xf94353,_0x6aa5fa),_0x2ba630;}catch(_0x53e8b9){return!0x1;}function _0xfdd30d(_0x198c2f){const _0x11b2c2=_0x301a1e(_0x198c2f);_0x11b2c2&&_0x11b2c2[_0x5c311b([0x61,0x6c,0x67])]==_0x5c311b([0x45,0x53,0x32,0x35,0x36])||(_0x2ba630=!0x1);}async function _0x91f06(_0x141bc5,_0x59b725,_0x23ea94){const _0x3758c3=window[_0x5c311b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c311b([0x66,0x72,0x6f,0x6d])](_0x191876(_0x23ea94),_0x34f015=>_0x34f015[_0x5c311b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8751b7=new window[(_0x5c311b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c311b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x141bc5+_0x5c311b([0x2e])+_0x59b725),_0x161d1a=window[_0x5c311b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c311b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x161d1a)return;const _0xbdd97c=await _0x161d1a[_0x5c311b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c311b([0x6a,0x77,0x6b]),_0x1243bb,{[_0x5c311b([0x6e,0x61,0x6d,0x65])]:_0x5c311b([0x45,0x43,0x44,0x53,0x41]),[_0x5c311b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c311b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c311b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x161d1a[_0x5c311b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c311b([0x6e,0x61,0x6d,0x65])]:_0x5c311b([0x45,0x43,0x44,0x53,0x41]),[_0x5c311b([0x68,0x61,0x73,0x68])]:{[_0x5c311b([0x6e,0x61,0x6d,0x65])]:_0x5c311b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbdd97c,_0x3758c3,_0x8751b7)||(_0x2ba630=!0x1);}}function _0x301a1e(_0x44a8ae){return _0x44a8ae[_0x5c311b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c311b([0x65,0x79]))?JSON[_0x5c311b([0x70,0x61,0x72,0x73,0x65])](_0x191876(_0x44a8ae)):null;}function _0x191876(_0x4d402c){return window[_0x5c311b([0x61,0x74,0x6f,0x62])](_0x4d402c[_0x5c311b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c311b([0x2b]))[_0x5c311b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c311b([0x2f])));}function _0x4105eb(_0x115766){let _0x35e63c=0x1505;function _0x6df747(_0x4edcbd){for(let _0x231792=0x0;_0x231792<_0x4edcbd[_0x5c311b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x231792++){const _0x1fdfa7=_0x4edcbd[_0x5c311b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x231792);_0x35e63c=(_0x35e63c<<0x5)+_0x35e63c+_0x1fdfa7,_0x35e63c&=_0x35e63c;}}function _0x39142b(_0x36f3c0){Array[_0x5c311b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36f3c0)?_0x36f3c0[_0x5c311b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39142b):_0x36f3c0&&typeof _0x36f3c0==_0x5c311b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c311b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36f3c0)[_0x5c311b([0x73,0x6f,0x72,0x74])]()[_0x5c311b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc80521,_0xc076f5])=>{_0x6df747(_0xc80521),_0x39142b(_0xc076f5);}):_0x6df747(window[_0x5c311b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36f3c0));}return _0x39142b(_0x115766),_0x35e63c>>>0x0;}function _0x473428(_0x5e7d2c){return _0x5e7d2c[_0x5c311b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c311b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c311b([0x30]));}function _0x1d557b(_0x403418){return _0x403418[_0x5c311b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c311b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c311b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4dfdf0(_0x316f48){return _0x2cb20a[_0x5c311b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5c311b([0x68,0x61,0x73])](_0x316f48);}function _0x29d7fe(_0x343544){return _0x2cb20a[_0x5c311b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5c311b([0x67,0x65,0x74])](_0x343544);}function _0x4bd7d6(){}function _0x5c311b(_0x2f5343){return _0x2f5343['map'](_0x48b10f=>String['fromCharCode'](_0x48b10f))['join']('');}_0x5b6549(await _0x559cba());}(this);}['createRevision'](_0x1af2b6){const _0x5089ee=this['editor']['plugins']['get']('Users');return new a({'id':_0x1af2b6['id'],'name':_0x1af2b6['name'],'creator':_0x1af2b6['creatorId']?_0x5089ee['getUser'](_0x1af2b6['creatorId']):null,'diffData':_0x1af2b6['diffData']||_0x1af2b6['data'],'authors':_0x1af2b6['authorsIds']['map'](_0x5c41e6=>_0x5089ee['getUser'](_0x5c41e6)),'createdAt':new Date(_0x1af2b6['createdAt']),'attributes':_0x1af2b6['attributes'],'fromVersion':_0x1af2b6['fromVersion'],'toVersion':_0x1af2b6['toVersion']});}['addRevision'](_0x4044a8,_0x32d936=0x0){this['_revisions']['add'](_0x4044a8,_0x32d936);}['getRevision'](_0x1e0354){return this['_revisions']['get'](_0x1e0354);}['getRevisions'](_0x328c6e={'toJSON':!0x1}){const _0x4f308d=Array['from'](this['_revisions']);return _0x4f308d['reverse'](),_0x328c6e['toJSON']?_0x4f308d['map'](_0x214019=>_0x214019['toJSON']()):_0x4f308d;}['getIndex'](_0x469552){return this['_revisions']['getIndex'](_0x469552);}['getEarlierVisibleRevision'](_0x1e2bdd){const [,_0x30809b]=this['getRevisionsIterator'](_0x1e2bdd,{'direction':'earlier'});return _0x30809b;}['getLaterVisibleRevision'](_0x16d67f){const [,_0x31db0b]=this['getRevisionsIterator'](_0x16d67f,{'direction':'later'});return _0x31db0b;}['getRevisionsInDiff'](_0xb0f4da){const _0x33e7d7=[];for(const _0x44a11a of this['getRevisionsIterator'](_0xb0f4da['newRevisionId']))if(_0x33e7d7['push'](_0x44a11a),_0x44a11a['id']===_0xb0f4da['oldRevisionId'])break;return _0x33e7d7;}*['getRevisionsIterator'](_0x4f3e53,{direction:_0x1d0dc3='earlier',filter:_0x5b7f5f=()=>!0x0}={}){const _0x41ae4c='earlier'===_0x1d0dc3?0x1:-0x1;let _0x150b81=this['_revisions']['get'](_0x4f3e53),_0x516033=this['getIndex'](_0x150b81);for(yield _0x150b81;_0x150b81;){if(_0x516033+=_0x41ae4c,_0x150b81=this['getRevision'](_0x516033),!_0x150b81)return;_0x5b7f5f(_0x150b81)&&(yield _0x150b81);}}}function R(_0x661483,_0x39078e,_0x173f76){const t=_0x661483['t'];switch(_0x39078e){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'},_0x173f76);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x173f76);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 C={'c':_0x3316d1,'a':_0x109015,'e':_0x1b15d3,'r':_0x821116,'u':_0x5e82db};class l extends _0x9c73c6{['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[_0x40a0f3,j,_0x252351];}constructor(_0x58b235){super(_0x58b235),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x108616=_0x1e3a97();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x108616},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 _0x558c5e=this['repository']['getRevision'](0x0),_0x5eea95=_0x558c5e&&null===_0x558c5e['creator']?_0x558c5e:null;if(this['_continueCurrentRevision']=!!_0x5eea95&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5101a8=this['_source']['getCurrentRevisionId'](),_0x8c0049=this['repository']['getRevision'](_0x5101a8);if(_0x8c0049)this['_startingVersion']=_0x8c0049['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x258732=this['_source']['history']['_operations']['find'](_0x1ecf19=>!_0x1ecf19['_isInit']),_0x58493b=_0x258732?_0x258732['baseVersion']:this['_source']['history']['version'];_0x558c5e?(_0x558c5e['toVersion']<_0x58493b&&_0x558c5e['_update']({'toVersion':_0x58493b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5eea95['id'],this['_startingVersion']=_0x5eea95['fromVersion']):(this['_startingVersion']=_0x558c5e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x58493b,this['_continueCurrentRevision']=!0x1);}}else _0x5eea95&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5eea95['toVersion'],this['editor']['model']['document']['history']['version']),_0x5eea95['fromVersion']===_0x5eea95['toVersion']?(0x0!==_0x5eea95['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5eea95['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5eea95['id'],this['_startingVersion']=_0x5eea95['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',_0x183c9c=>!_0x183c9c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f39f3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x518bc1;for(const _0x3231ac in _0x1f39f3){const _0x40d059=_0x3231ac,_0x5dc394=_0x1f39f3[_0x40d059];if('revisionHistoryLicenseKeyValid'==_0x5dc394||'revisionHistoryLicenseKeyInvalid'==_0x5dc394||'revisionHistoryLicenseKeyExpired'==_0x5dc394||'revisionHistoryLicenseKeyDomainLimit'==_0x5dc394||'revisionHistoryLicenseKeyNotAllowed'==_0x5dc394||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5dc394||'revisionHistoryLicenseKeyTrialLimit'==_0x5dc394||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5dc394||'revisionHistoryLicenseKeyUsageLimit'==_0x5dc394){delete _0x1f39f3[_0x40d059],_0x518bc1=_0x5dc394,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x518bc1&&_0x1f39f3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x518bc1&&_0x1f39f3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x518bc1&&_0x1f39f3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x518bc1&&_0x1f39f3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x518bc1&&_0x1f39f3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x518bc1&&_0x1f39f3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x518bc1&&_0x1f39f3['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x518bc1&&_0x1f39f3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x177338=this['repository']['getRevision'](0x0),_0x2f26f8=await this['getRevisionDocumentData'](_0x177338),_0x34df58=await this['getRevisionRootsAttributes'](_0x177338);this['_replaceEditorDataWithRevisionData'](_0x2f26f8,_0x34df58);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xdacb22){this['_source']=_0xdacb22;}async['update'](){const _0x386a21=await this['_source']['getLatestVersion']();if(_0x386a21>this['currentRevision']['toVersion']){await this['_loadState']();const _0x222866=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x386a21});_0x222866['authors']=_0x222866['authorsIds']['map'](_0x43b296=>this['editor']['plugins']['get']('Users')['getUser'](_0x43b296)),this['currentRevision']['_update'](_0x222866);}}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'](_0x4d6d29={},_0x2da5c5=null){const _0x5348f0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2da5c5>this['currentRevision']['toVersion']&&(_0x2da5c5=null),null===_0x2da5c5&&(_0x2da5c5=await this['_source']['getLatestVersion']());const _0x3857a7=this['_getFromVersion'](_0x2da5c5),_0x28ff44=this['buildRevisionData']({'from':_0x3857a7,'to':_0x2da5c5});if(this['currentRevision']['toVersion']<_0x2da5c5){const _0x522c4a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2da5c5,'to':_0x2da5c5});_0x522c4a['authors']=[],_0x522c4a['authorsIds']=[],_0x522c4a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x522c4a,!0x0),delete _0x522c4a['authors'],_0x5348f0['push'](_0x522c4a);}_0x4d6d29['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4d6d29['name']=_0x4d6d29['name']||null,_0x4d6d29['id']=_0x4d6d29['id']||_0x1e3a97(),_0x4d6d29={..._0x4d6d29,..._0x28ff44};const _0x16b787=this['addRevisionData'](_0x4d6d29);_0x5348f0['push'](_0x4d6d29);const _0x1049bc=this['repository']['getIndex'](_0x16b787);if(0x0!==_0x1049bc){const _0x4fdb08=this['repository']['getRevision'](_0x1049bc-0x1);if(_0x4fdb08['fromVersion']!==_0x2da5c5){const _0x5a1a63=this['_revisionDataBuilder']['getData'](_0x2da5c5,_0x4fdb08['toVersion']),_0x17d0b5={'id':_0x4fdb08['id'],'diffData':_0x5a1a63['diffData'],'authorsIds':_0x5a1a63['authorsIds'],'authors':_0x5a1a63['authorsIds']['map'](_0x4f95bc=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f95bc)),'fromVersion':_0x2da5c5};_0x4fdb08===this['currentRevision']&&(_0x17d0b5['createdAt']=new Date(_0x4d6d29['createdAt']['getTime']()+0xa)),_0x4fdb08['_update'](_0x17d0b5,!0x0),delete _0x17d0b5['authors'],_0x5348f0['push'](_0x17d0b5);}}if(this['adapter']){for(const _0x16df4a of _0x5348f0)this['_bufferUpdate'](_0x16df4a['id'],_0x16df4a,!0x0);this['sendBufferedUpdates']();}return _0x16b787;}['addRevisionData'](_0x116242){const _0x2f60ef=this['repository']['createRevision'](_0x116242);return this['adapter']&&_0x2f60ef['on']('_update',(_0x187cc3,_0x3b5f62,_0x7348d7)=>{_0x7348d7||(this['_bufferUpdate'](_0x3b5f62['id'],_0x3b5f62,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2f60ef,this['_findInsertionIndex'](_0x2f60ef)),_0x2f60ef;}async['getRevisionDocumentData'](_0x414649){await this['_loadRevisionData'](_0x414649);const _0x59b58d={};for(const _0x1d3d99 in _0x414649['diffData']){if(_0x414649['diffData'][_0x1d3d99]['attachChange']&&!_0x414649['diffData'][_0x1d3d99]['attachChange']['isAttached'])continue;const _0x334e4f=this['_removeRevisionMarkers'](JSON['parse'](_0x414649['diffData'][_0x1d3d99]['insertions'])),_0x19e0bc=this['editor']['editing']['view']['document'],_0x236168=new _0x474688(_0x19e0bc,_0x334e4f['map'](_0x4da45c=>V(_0x4da45c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x59b58d[_0x1d3d99]=this['editor']['data']['processor']['toData'](_0x236168),this['editor']['data']['processor']['useFillerType']('default');}return _0x59b58d;}async['getRevisionRootsAttributes'](_0xa6bea0){await this['_loadRevisionData'](_0xa6bea0);const _0xdb3144={};for(const _0x238761 in _0xa6bea0['diffData'])_0xa6bea0['diffData'][_0x238761]['attachChange']&&!_0xa6bea0['diffData'][_0x238761]['attachChange']['isAttached']||(_0xdb3144[_0x238761]=_0xa6bea0['diffData'][_0x238761]['attributesAfter']||{});return _0xdb3144;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x50802a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1762d3=0x0;_0x1762d3<_0x50802a['length'];_0x1762d3++){const _0x594042=_0x50802a[_0x1762d3];let _0x1073d0=!0x1;for(const _0x5810ec of Object['keys'](_0x594042))void 0x0===_0x594042[_0x5810ec]?delete _0x594042[_0x5810ec]:'id'!==_0x5810ec&&(_0x1073d0=!0x0);_0x1073d0||(_0x50802a[_0x1762d3]=null);}if(_0x50802a=_0x50802a['filter'](_0x26dce9=>null!==_0x26dce9),!_0x50802a['length'])return;for(let _0x2f84f4=0x0;_0x2f84f4<_0x50802a['length'];_0x2f84f4++){const _0x4a9706=_0x50802a[_0x2f84f4];void 0x0!==_0x4a9706['fromVersion']&&void 0x0===_0x4a9706['toVersion']&&(_0x4a9706['toVersion']=this['repository']['getRevision'](_0x4a9706['id'])['toVersion']),void 0x0!==_0x4a9706['toVersion']&&void 0x0===_0x4a9706['fromVersion']&&(_0x4a9706['fromVersion']=this['repository']['getRevision'](_0x4a9706['id'])['fromVersion']);}const _0x40ba14=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x50802a,_0x40ba14)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x427e98=>{if(_0x427e98){for(const _0x41364b of _0x427e98)this['setRevisionData']({'id':_0x41364b['id'],'createdAt':_0x41364b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2ca2e6,_0x59f29f){let _0x3fa515=this['editor']['config']['get']('initialData'),_0x2f1104=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3fa515){_0x3fa515={};for(const _0x4891bb of this['editor']['model']['document']['getRootNames']())_0x3fa515[_0x4891bb]='';}if('string'==typeof _0x3fa515&&(_0x3fa515={'main':_0x3fa515}),void 0x0===_0x2f1104){_0x2f1104={};for(const _0x929270 of this['editor']['model']['document']['getRootNames']())_0x2f1104[_0x929270]={};}let _0x224960=!0x1;const _0x39e789=Object['keys'](_0x3fa515),_0x45c80b=Object['keys'](_0x2ca2e6);for(const _0x2feea3 of _0x39e789){if(_0x3fa515[_0x2feea3]!==_0x2ca2e6[_0x2feea3]&&''!==_0x3fa515[_0x2feea3]['trim']()){_0x224960=!0x0;break;}if(!_0x3c165a(_0x2f1104[_0x2feea3],_0x59f29f[_0x2feea3])&&Object['keys'](_0x2f1104[_0x2feea3])['length']>0x0){_0x224960=!0x0;break;}}_0x224960||(_0x224960=_0x45c80b['some'](_0x3db1a8=>!this['editor']['model']['document']['getRoot'](_0x3db1a8))),_0x224960&&_0x5d3bd4('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3fa515,'editorRootsAttributes':_0x2f1104,'revisionData':_0x2ca2e6,'revisionRootsAttributes':_0x59f29f}),this['editor']['config']['set']('initialData',_0x2ca2e6),this['editor']['config']['set']('rootsAttributes',_0x59f29f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2e5d23=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2e5d23['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x38085c){const _0x53d5fa=this['repository']['getRevisions']();_0x53d5fa['reverse']();let _0x38499c=0x0;for(;_0x38499c<_0x53d5fa['length'];){const _0x264334=_0x53d5fa[_0x38499c];if(_0x264334===this['currentRevision']){_0x38499c++;continue;}if(_0x264334['id']===this['_initialRevisionId'])break;const _0xccfbb5=_0x38085c['toVersion']-_0x264334['toVersion']||_0x38085c['fromVersion']-_0x264334['fromVersion'];if(_0xccfbb5>0x0)break;if(_0xccfbb5<0x0)_0x38499c++;else{if(!_0x38085c['creator']&&_0x264334['creator'])break;if(_0x264334['creator']||!_0x38085c['creator']){if(_0x38085c['createdAt']>_0x264334['createdAt'])break;_0x38499c++;}else _0x38499c++;}}return _0x38499c;}['setRevisionData'](_0x509786){const _0x2f9739=this['repository']['getRevision'](_0x509786['id']);if(_0x509786['createdAt']&&(_0x509786['createdAt']=new Date(_0x509786['createdAt'])),_0x509786['authorsIds']){const _0x1024f6=this['editor']['plugins']['get']('Users');_0x509786['authors']=_0x509786['authorsIds']['map'](_0x244dc6=>_0x1024f6['getUser'](_0x244dc6));}_0x2f9739['_update'](_0x509786,!0x0);}['buildRevisionData']({revision:_0x24ac01=null,from:_0x2af57e=null,to:_0x174e49=null}){_0x2af57e=null!==_0x2af57e?_0x2af57e:_0x24ac01['fromVersion'],_0x174e49=null!==_0x174e49?_0x174e49:_0x24ac01['toVersion'];const _0x4093ca=this['_revisionDataBuilder']['getData'](_0x2af57e,_0x174e49),_0xe185a3={'diffData':_0x4093ca['diffData'],'authorsIds':_0x4093ca['authorsIds'],'fromVersion':_0x2af57e,'toVersion':_0x174e49};if(!_0x24ac01||_0x174e49!==_0x24ac01['toVersion']){const _0x8079bb=_0x174e49-0x1,_0x4e743a=this['_source']['history']['getOperation'](_0x8079bb);_0xe185a3['createdAt']=_0x4e743a&&_0x4e743a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2af57e===this['_loadedStateData']['fromVersion']){for(const _0x5df129 of this['_loadedStateData']['authors'])_0xe185a3['authorsIds']['includes'](_0x5df129['id'])||_0xe185a3['authorsIds']['push'](_0x5df129['id']);}return _0xe185a3;}['_loadRevisionData'](_0x280e0a){if(!_0x280e0a||_0x280e0a['diffData'])return Promise['resolve']();{const _0x177499=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x177499,'revisionId':_0x280e0a['id']})['then'](_0x1c296b=>{_0x280e0a['diffData']=_0x1c296b['diffData'];});}}['_bufferUpdate'](_0x17bcb5,_0x29540d,_0x268bad){if(this['_bufferedUpdates']['has'](_0x17bcb5)){const _0x31bc49=this['_bufferedUpdates']['get'](_0x17bcb5);_0x29540d=_0x268bad?{..._0x31bc49,..._0x29540d}:{..._0x29540d,..._0x31bc49};}this['_bufferedUpdates']['set'](_0x17bcb5,_0x29540d);}['_getFromVersion'](_0x300795){const _0x182341=this['repository']['getRevisions']();_0x182341['reverse'](),_0x182341['shift']();const _0x510cb0=_0x182341['find'](_0x526955=>_0x526955['toVersion']<=_0x300795)['toVersion'];return _0x510cb0<this['_startingVersion']?this['_startingVersion']:_0x510cb0;}['_createInitialRevision'](_0x3eaeb3){const _0x12f2ad=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x12f2ad)this['_initialRevisionId']=_0x12f2ad['id'];else{const _0x3e2223=!this['editor']['model']['document']['roots']['find'](_0x327b17=>this['editor']['model']['hasContent'](_0x327b17)),_0x2545c1=this['editor']['plugins']['get']('Users')['me']['id'],_0x1278d5=R(this['editor']['locale'],_0x3e2223?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3eaeb3,'to':_0x3eaeb3,'id':this['_initialRevisionId'],'name':_0x1278d5,'creatorId':_0x2545c1});}}['_createCurrentRevision'](_0x1478b0){const _0x53c3ec=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x53c3ec),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1478b0,'to':_0x1478b0,'id':_0x53c3ec,'name':'','creatorId':null}));}['_makeRevision']({name:_0x135f97,from:_0xddf309,to:_0xa2d79e,creatorId:_0x385f95,id:_0x9084dd}){const _0xf240b0=this['buildRevisionData']({'from':_0xddf309,'to':_0xa2d79e});_0xf240b0['name']=_0x135f97,_0xf240b0['creatorId']=_0x385f95,_0xf240b0['id']=_0x9084dd;const _0xd87ad=this['addRevisionData'](_0xf240b0);return this['adapter']&&this['_bufferUpdate'](_0xf240b0['id'],_0xf240b0,!0x0),_0xd87ad;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x184b1b){return(_0x184b1b=_0x184b1b['filter'](_0x35ea4b=>!_0x35ea4b['name']||'revision-start'!==_0x35ea4b['name']&&'revision-end'!==_0x35ea4b['name']))['forEach'](_0x2becdd=>{'string'!=typeof _0x2becdd&&(_0x2becdd['children']=this['_removeRevisionMarkers'](_0x2becdd['children']),_0x2becdd['attributes']=_0x2becdd['attributes']['filter'](_0x116293=>!_0x116293[0x0]['startsWith']('data-revision-')));}),_0x184b1b;}}function V(_0xfc8404,_0x36ebb2){const _0x5d0c9c=_0x36ebb2['editing']['view']['document'];if('string'==typeof _0xfc8404)return new _0x146933(_0x5d0c9c,_0xfc8404);{const _0x34f8f9=_0xfc8404['children']['map'](_0x5564d3=>V(_0x5564d3,_0x36ebb2));return new(C[_0xfc8404['type']]||_0x1a6832)(_0x5d0c9c,_0xfc8404['name'],_0xfc8404['attributes'],_0x34f8f9);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3bcf1f){this['editor']=_0x3bcf1f,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'](_0x1ad36b){this['source']=_0x1ad36b;const _0x3f4a0c=new Map(),_0x2385c5=new Map(),_0x733b2d=this['editor']['model']['document']['roots']['map'](_0x1c3009=>_0x1c3009['rootName']);for(const _0x157c7 of _0x733b2d){const _0x4c333c=this['editor']['model']['document']['getRoot'](_0x157c7),_0x2e1185=F(_0x4c333c);_0x3f4a0c['set'](_0x157c7,_0x2e1185),_0x2385c5['set'](_0x157c7,Object['fromEntries'](_0x4c333c['getAttributes']()));}const _0x1cabcd=Array['from'](this['editor']['model']['markers'])['map'](_0x1bc5f9=>[_0x1bc5f9['name'],_0x1bc5f9['getRange']()]),_0x963557=this['source']['version'];this['_saveMetaData'](_0x963557,_0x3f4a0c,_0x1cabcd,_0x2385c5),this['_startingRevisionId']=this['_revisionId'];const _0x49aa79=new Map(),_0x1d2296=new Map();for(const _0x5c5339 of _0x733b2d){const _0x7d17c0=B(_0x5c5339);_0x49aa79['set'](_0x5c5339,_0x7d17c0),_0x1d2296['set'](_0x5c5339,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x49aa79,[],_0x1d2296);}['getData'](_0x35d290,_0x1c6f47){if(this['_lastFrom']===_0x35d290&&this['_lastTo']<=_0x1c6f47)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1c6f47,!0x0);else{if(!this['_savedMetaData']['has'](_0x35d290)){const _0x1db7a0=this['_getPreviousFrom'](_0x35d290);this['_calculateMetaData'](_0x1db7a0,_0x35d290,!0x1);}this['_calculateMetaData'](_0x35d290,_0x1c6f47,!0x0);}return this['_lastFrom']=_0x35d290,this['_lastTo']=_0x1c6f47,this['_getState']();}['loadState'](_0x5b5320){this['_reset'](),this['_lastFrom']=_0x5b5320['fromVersion'],this['_lastTo']=_0x5b5320['toVersion'];for(const _0x4709af in _0x5b5320['diffData']){const _0x3ac3fd=_0x5b5320['diffData'][_0x4709af]['attachChange'],_0x32ea3b=_0x59dc59(_0x5b5320['diffData'][_0x4709af]['attributesBefore'])||{},_0x1a265c=this['_makeModelFromViewString'](_0x5b5320['diffData'][_0x4709af]['deletions']);_0x1a265c['rootName']=_0x4709af,_0x1a265c['_isAttached']=!_0x3ac3fd||!_0x3ac3fd['isAttached'],_0x1a265c['isAttached']=()=>_0x1a265c['_isAttached'],this['_baseRoots']['set'](_0x4709af,_0x1a265c),this['_baseRootsAttributes']['set'](_0x4709af,_0x32ea3b),_0x3ac3fd&&this['_touchedRoots']['set'](_0x4709af,_0x3ac3fd);const _0x2981da=this['_makeIdsRoot'](_0x1a265c);this['_baseIdsRoots']['set'](_0x4709af,_0x2981da);for(const [_0xa8c809,_0x116231]of _0x1a265c['markers']){if(!_0xa8c809['startsWith']('revision:'))continue;const _0x4c8d74=_0xa8c809['split'](':')[0x2];for(const _0x3bd883 of _0x116231['getWalker']({'singleCharacters':!0x0})){const _0xa9d086=this['_getVidAttributeName'](_0x3bd883),_0x5370f8='elementEnd'==_0x3bd883['type']?_0x3bd883['previousPosition']['path']['slice'](0x0,-0x1):_0x3bd883['previousPosition']['path'],_0x14fdbb=_0x2981da['getNodeByPath'](_0x5370f8)['getAttribute'](_0xa9d086);this['_touched']['set'](_0x14fdbb,{'userId':_0x4c8d74});}}}this['_startingRevisionId']=this['_revisionId'];const _0xbfb674=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xb780d2=>!this['_touched']['has'](_0xb780d2));let _0xfccdb4=0x0;const _0x28a6bf=new Map();for(const _0x2c9888 in _0x5b5320['diffData']){const _0x52aaea=_0x5b5320['diffData'][_0x2c9888]['attachChange'],_0xe45520=_0x59dc59(_0x5b5320['diffData'][_0x2c9888]['attributesAfter'])||{},_0x385167=this['_makeModelFromViewString'](_0x5b5320['diffData'][_0x2c9888]['insertions']);_0x385167['rootName']=_0x2c9888,_0x385167['_isAttached']=!_0x52aaea||_0x52aaea['isAttached'],_0x385167['isAttached']=()=>_0x385167['_isAttached'],this['_diffRoots']['set'](_0x2c9888,_0x385167),this['_diffRootsAttributes']['set'](_0x2c9888,_0xe45520);const _0x2ed476=this['_makeIdsRoot'](_0x385167,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2c9888,_0x2ed476),_0x28a6bf['set'](_0x2c9888,_0x385167['isAttached']()?_0xe45520:{});for(const [_0xead4e8,_0x974ac3]of _0x385167['markers']){if(!_0xead4e8['startsWith']('revision:'))continue;const _0x381da5=_0xead4e8['split'](':')[0x2];for(const _0x179cfc of _0x974ac3['getWalker']({'singleCharacters':!0x0})){const _0x4cccb4=this['_getVidAttributeName'](_0x179cfc),_0x955c5f=this['_revisionId']++,_0x4e5435='elementEnd'==_0x179cfc['type']?_0x179cfc['previousPosition']['path']['slice'](0x0,-0x1):_0x179cfc['previousPosition']['path'];_0x2ed476['getNodeByPath'](_0x4e5435)['_setAttribute'](_0x4cccb4,_0x955c5f),this['_touched']['set'](_0x955c5f,{'userId':_0x381da5});}}for(const _0x4c6761 of this['editor']['model']['createRangeIn'](_0x385167)['getWalker']({'singleCharacters':!0x0})){const _0x26f4fd=this['_getVidAttributeName'](_0x4c6761),_0x1e582a='elementEnd'==_0x4c6761['type']?_0x4c6761['previousPosition']['path']['slice'](0x0,-0x1):_0x4c6761['previousPosition']['path'],_0x4a9f14=_0x2ed476['getNodeByPath'](_0x1e582a);_0x4a9f14['getAttribute'](_0x26f4fd)>0x0||_0x4a9f14['_setAttribute'](_0x26f4fd,_0xbfb674[_0xfccdb4++]);}for(const [_0x569f64,_0x5afa5c]of _0x385167['markers'])_0x569f64['startsWith']('revision:')||this['_markers']['set'](_0x569f64,_0x5afa5c);}const _0x5180db=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5180db),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5180db,0x1));const _0x2c9256=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2c9256),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2c9256,0x1));const _0x621c2f=Array['from'](this['_diffRoots'])['map'](([_0x96e81,_0x3bb379])=>[_0x96e81,F(_0x3bb379)]);this['_saveMetaData'](this['_lastTo'],_0x621c2f,this['_markers'],_0x28a6bf);}['_makeModelFromViewString'](_0x15c9c7){const _0x43087d=JSON['parse'](_0x15c9c7),_0x148d6c=this['editor']['editing']['view']['document'],_0x1baa4f=new _0x474688(_0x148d6c,_0x43087d['map'](_0x2e8b21=>V(_0x2e8b21,this['editor'])));return this['editor']['data']['toModel'](_0x1baa4f);}['_saveMetaData'](_0x7e296f,_0x2a14d3,_0x4d41a2,_0x54986d){const _0x26d56d=new Map(_0x2a14d3),_0x320a6b=new Map(_0x59dc59(_0x54986d)),_0x329406=new Map();for(const [_0x52dbe1,_0x4f97f8]of _0x4d41a2)_0x329406['set'](_0x52dbe1,{'start':_0x4f97f8['start']['clone'](),'end':_0x4f97f8['end']['clone'](),'rootName':_0x4f97f8['root']['rootName']});this['_savedMetaData']['set'](_0x7e296f,{'roots':_0x26d56d,'markers':_0x329406,'rootsAttributes':_0x320a6b});}['_removeMetaData'](_0x2465cb){this['_savedMetaData']['delete'](_0x2465cb);}['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'](_0x33722d,_0x528bde=null){let _0x2a1a7d=null;_0x33722d['is']('documentFragment')||(_0x2a1a7d=new ft(_0x33722d['name'],{'vid_start':null===_0x528bde?this['_revisionId']++:_0x528bde++}));const _0x4917cd=[];for(const _0x4789b5 of _0x33722d['getChildren']())if(_0x4789b5['is']('element')){_0x4917cd['push'](this['_makeIdsRoot'](_0x4789b5,_0x528bde));const _0x8c3ae6=_0x4917cd[_0x4917cd['length']-0x1];null!==_0x528bde&&(_0x528bde=_0x8c3ae6['is']('element','$text')?_0x8c3ae6['getAttribute']('vid')+0x1:_0x8c3ae6['getAttribute']('vid_end')+0x1);}else{for(let _0x408c2d=0x0;_0x408c2d<_0x4789b5['offsetSize'];_0x408c2d++)_0x4917cd['push'](new ft('$text',{'vid':null===_0x528bde?this['_revisionId']++:_0x528bde++}));}if(_0x33722d['is']('documentFragment')){const _0x1b32e1=B(_0x33722d['rootName']);return _0x1b32e1['_insertChild'](0x0,_0x4917cd),_0x1b32e1;}return _0x2a1a7d['_setAttribute']('vid_end',null===_0x528bde?this['_revisionId']++:_0x528bde++),_0x2a1a7d['_insertChild'](0x0,_0x4917cd),_0x2a1a7d;}['_calculateMetaData'](_0x3ed7c5,_0x48b5aa,_0x533a51){this['_reset']();const {roots:_0x3be20e,markers:_0x2731c8,rootsAttributes:_0x4b7ffa}=this['_savedMetaData']['get'](_0x3ed7c5);this['_baseRoots']=new Map(_0x3be20e),this['_baseRootsAttributes']=new Map(_0x59dc59(_0x4b7ffa));for(const [_0x50f233,_0x2f98fd]of this['_baseRoots'])if('$graveyard'!==_0x50f233&&(this['_diffRoots']['set'](_0x50f233,F(_0x2f98fd)),this['_diffRootsAttributes']=new Map(_0x59dc59(_0x4b7ffa)),_0x533a51)){const _0x3ed221=this['_revisionId'];this['_idsRoots']['set'](_0x50f233,this['_makeIdsRoot'](_0x2f98fd)),this['_baseIdsRoots']['set'](_0x50f233,this['_makeIdsRoot'](_0x2f98fd,_0x3ed221));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x533a51&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x51ac3e,_0x11266c]of _0x2731c8){const _0x2a244c=this['_baseRoots']['get'](_0x11266c['rootName']),_0x553ec4=this['_diffRoots']['get'](_0x11266c['rootName']),_0x73f1aa=new vt(this['_fixPosition'](_0x11266c['start'],_0x2a244c),this['_fixPosition'](_0x11266c['end'],_0x2a244c)),_0x142954=this['_fixRange'](_0x73f1aa,_0x553ec4);_0x2a244c['markers']['set'](_0x51ac3e,_0x73f1aa),this['_markers']['set'](_0x51ac3e,_0x142954);}this['_applyOperations'](_0x3ed7c5,_0x48b5aa,_0x533a51);}['_applyOperations'](_0x44def9,_0x182258,_0xfb5e7d){for(const _0x104850 of this['source']['getOperations'](_0x44def9,_0x182258))this['_handleOperation'](_0x104850,_0xfb5e7d);for(const _0x3a7570 of this['_diffRoots']['values']())_0x3a7570['markers']['clear']();for(const [_0x2aa639,_0x5baa5b]of this['_markers']){this['_diffRoots']['get'](_0x5baa5b['root']['rootName'])['markers']['set'](_0x2aa639,_0x5baa5b['clone']());}const _0x3b02f3=new Map(),_0x2444b2=new Map();for(const [_0x4e15f4,_0x3ce98d]of this['_diffRoots'])_0x3b02f3['set'](_0x4e15f4,F(_0x3ce98d)),_0x2444b2['set'](_0x4e15f4,this['_diffRootsAttributes']['get'](_0x4e15f4));this['_saveMetaData'](_0x182258,_0x3b02f3,this['_markers'],_0x2444b2);}['_getPreviousFrom'](_0x1ec43f){const _0x47f40c=Array['from'](this['_savedMetaData']['keys']());_0x47f40c['sort']((_0x8226bd,_0x2b275b)=>_0x8226bd-_0x2b275b),_0x47f40c['reverse']();for(const _0x304b43 of _0x47f40c)if(_0x304b43<_0x1ec43f)return _0x304b43;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x24da90,_0x5de28f){const _0xc760b7=Array['from'](_0x5de28f['markers'])['map'](([_0x9ec0f3,_0x3bcf8a])=>[_0x9ec0f3,this['_fixRange'](_0x3bcf8a,_0x24da90)]);_0x24da90['markers']=new Map(_0xc760b7);}['_transformMarkers'](_0x34b40b){for(const _0x2344e1 of this['_markers']['values']()){const _0x54aef4=_0x2344e1['getTransformedByOperation'](_0x34b40b),_0x3c1eaa=vt['_createFromRanges'](_0x54aef4);_0x2344e1['start']=_0x3c1eaa['start'],_0x2344e1['end']=_0x3c1eaa['end'];}}['_handleOperation'](_0x11cfdc,_0x5d348c){if('addRoot'!=_0x11cfdc['type']&&'detachRoot'!=_0x11cfdc['type']){if('insert'==_0x11cfdc['type']){const _0x2844ab=_0x11cfdc['position']['root']['rootName'];this['_diffRoots']['has'](_0x2844ab)||(this['_diffRoots']['set'](_0x2844ab,B(_0x2844ab,!0x0)),this['_diffRootsAttributes']['set'](_0x2844ab,{}),_0x5d348c&&this['_idsRoots']['set'](_0x2844ab,B(_0x2844ab,!0x0)));}else{if('addRootAttribute'==_0x11cfdc['type']||'removeRootAttribute'==_0x11cfdc['type']||'changeRootAttribute'==_0x11cfdc['type'])return void this['_handleRootAttributeOperation'](_0x11cfdc);'marker'==_0x11cfdc['type']&&this['_handleMarkerOperation'](_0x11cfdc);}if('marker'!==_0x11cfdc['type']){const _0x3f7b10=this['_cloneOperation'](_0x11cfdc,this['_diffRoots']);_0x3f7b10['_execute'](),this['_transformMarkers'](_0x3f7b10);}if(_0x5d348c)switch(_0x11cfdc['type']){case'insert':this['_handleInsertOperation'](_0x11cfdc);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x11cfdc);break;case'merge':this['_handleMergeOperation'](_0x11cfdc);break;case'split':this['_handleSplitOperation'](_0x11cfdc);}}else this['_handleRootOperation'](_0x11cfdc,_0x5d348c);}['_cloneOperation'](_0x1d8894,_0x3c967d){const _0x24e70c=_0x1d8894['clone']();return _0x24e70c['_authorId']=_0x1d8894['_authorId'],this['_fixOperation'](_0x24e70c,_0x3c967d),_0x24e70c;}['_getBaseVids'](_0x1a4807){return _0x1a4807['map'](_0x54dbbf=>{const _0x5ea4b2=this['_getVidAttributeName'](_0x54dbbf);return Number(_0x54dbbf['item']['getAttribute'](_0x5ea4b2));});}['_generateTape'](_0x4a3dca,_0x1809a6){if(_0x4a3dca['is']('element','$text'))_0x1809a6['push']({'item':_0x4a3dca,'type':'text'});else{_0x4a3dca['is']('element')&&_0x1809a6['push']({'item':_0x4a3dca,'type':'elementStart'});for(const _0x4993f7 of _0x4a3dca['getChildren']())this['_generateTape'](_0x4993f7,_0x1809a6);_0x4a3dca['is']('element')&&_0x1809a6['push']({'item':_0x4a3dca,'type':'elementEnd'});}return _0x1809a6;}['_getState'](){const _0x465396=new Map(this['_touched']),_0x142f6f=new Map(_0x465396),_0x596db5=new Map(),_0x39b225={'insertions':{},'deletions':{}},_0x2f4175={'insertions':{},'deletions':{}},_0x5069e3=new Map(),_0x2dbdf9=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2dbdf9['delete']('$graveyard');for(const _0x15a781 of _0x2dbdf9){const _0x1537d8=this['_diffRoots']['get'](_0x15a781)||B(_0x15a781,!0x1),_0x135578=this['_baseRoots']['get'](_0x15a781)||B(_0x15a781,!0x1);_0x1537d8['isAttached']()||_0x135578['isAttached']()?(_0x39b225['insertions'][_0x15a781]=F(_0x1537d8),_0x39b225['deletions'][_0x15a781]=F(_0x135578),this['_copyMarkers'](_0x39b225['deletions'][_0x15a781],_0x135578),this['_copyMarkers'](_0x39b225['insertions'][_0x15a781],_0x1537d8),_0x2f4175['insertions'][_0x15a781]=this['_generateTape'](this['_idsRoots']['get'](_0x15a781),[]),_0x2f4175['deletions'][_0x15a781]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x15a781)||B(_0x15a781,!0x1),[])):_0x2dbdf9['delete'](_0x15a781);}for(const _0x1e4574 of _0x2dbdf9){const _0x3ec441=_0x2f4175['insertions'][_0x1e4574];for(const _0x518308 of _0x3ec441){const _0x41899c=this['_getVidAttributeName'](_0x518308),_0x3bc225=_0x518308['item']['getAttribute'](_0x41899c);_0x142f6f['delete'](_0x3bc225),_0x3bc225>=this['_startingRevisionId']&&_0x596db5['set'](_0x3bc225,_0x465396['get'](_0x3bc225));}}for(const _0x2021d5 of _0x2dbdf9){const _0x2f3959=_0x2f4175['insertions'][_0x2021d5],_0x5b3984=this['_getBaseVids'](_0x2f4175['deletions'][_0x2021d5]);let _0x356adb=0x0;for(const _0x4da24e of _0x2f3959){const _0x4bf246=this['_getVidAttributeName'](_0x4da24e),_0x1bef78=_0x4da24e['item']['getAttribute'](_0x4bf246);if(!_0x596db5['has'](_0x1bef78)&&!_0x5069e3['has'](_0x1bef78)){if(_0x142f6f['has'](_0x1bef78))_0x356adb++;else{if(_0x1bef78!=_0x5b3984[_0x356adb]){const _0x32cc57=_0x465396['get'](_0x1bef78)||_0x465396['get'](_0x5b3984[_0x356adb]);for(;_0x1bef78!=_0x5b3984[_0x356adb];)_0x142f6f['has'](_0x5b3984[_0x356adb])||(_0x5069e3['set'](_0x5b3984[_0x356adb],_0x32cc57),_0x465396['set'](_0x5b3984[_0x356adb],_0x32cc57)),_0x356adb++;}_0x356adb++;}}}}for(const _0xf67bb7 of _0x2dbdf9){const _0x107f78=_0x2f4175['insertions'][_0xf67bb7];for(const _0xd9fef3 of _0x107f78){const _0x3681a7=this['_getVidAttributeName'](_0xd9fef3),_0x5f5a5e=_0xd9fef3['item']['getAttribute'](_0x3681a7);if(_0x5069e3['has'](_0x5f5a5e)){const _0x187fcf=_0x5069e3['get'](_0x5f5a5e);_0x142f6f['has'](_0x5f5a5e)||_0x142f6f['set'](_0x5f5a5e,{..._0x187fcf}),_0x596db5['set'](_0x5f5a5e,{..._0x187fcf});}}}for(const _0x27189c of _0x142f6f['keys']())_0x27189c>=this['_startingRevisionId']&&_0x142f6f['delete'](_0x27189c);const _0x32c83c=new Map();for(const _0x1c305f of _0x2dbdf9){let _0x463ca0=_0x2f4175['insertions'][_0x1c305f];for(const _0x4ede83 of _0x463ca0)if(_0x4ede83['item']['is']('element','tableCell')){const _0x414943=this['_getVidAttributeName'](_0x4ede83),_0x20f804=_0x4ede83['item']['getAttribute'](_0x414943);if(_0x596db5['has'](_0x20f804)){const _0x221f44=_0x4ede83['item']['parent']['parent']['getAttribute']('vid_start'),_0x16aea8=_0x32c83c['get'](_0x221f44)||new Set();_0x16aea8['add'](_0x596db5['get'](_0x20f804)['userId']),_0x32c83c['set'](_0x221f44,_0x16aea8);}}_0x463ca0=_0x2f4175['deletions'][_0x1c305f];for(const _0x559815 of _0x463ca0)if(_0x559815['item']['is']('element','tableCell')){const _0x55821a=this['_getVidAttributeName'](_0x559815),_0x1fff30=_0x559815['item']['getAttribute'](_0x55821a);if(_0x142f6f['has'](_0x1fff30)){const _0x55c30f=_0x559815['item']['parent']['parent']['getAttribute']('vid_start'),_0x60279a=_0x32c83c['get'](_0x55c30f)||new Set();_0x60279a['add'](_0x142f6f['get'](_0x1fff30)['userId']),_0x32c83c['set'](_0x55c30f,_0x60279a);}}for(const _0x182002 of _0x32c83c['keys']())(_0x596db5['has'](_0x182002)||_0x142f6f['has'](_0x182002))&&_0x32c83c['delete'](_0x182002);}for(const _0x35db2e of _0x2dbdf9){const _0x2a24d0=_0x2f4175['insertions'][_0x35db2e];let _0x2aabe4=null,_0x222f0b=null;for(const _0x583df7 of _0x2a24d0){const _0x41ad24=this['_getVidAttributeName'](_0x583df7),_0x44e410=_0x583df7['item']['getAttribute'](_0x41ad24),_0x324ff7=_0x32c83c['get'](_0x44e410);_0x324ff7&&'elementStart'==_0x583df7['type']&&(_0x2aabe4=Array['from'](_0x324ff7)[0x0],_0x222f0b=_0x583df7['item']['getAttribute']('vid_end')),_0x2aabe4&&(_0x142f6f['set'](_0x44e410,{'userId':_0x2aabe4}),_0x596db5['set'](_0x44e410,{'userId':_0x2aabe4})),_0x44e410==_0x222f0b&&(_0x2aabe4=null,_0x222f0b=null);}}const _0x33f20e={},_0x43c6f3=new Set();for(const _0x2dfec2 of _0x2dbdf9){const _0x45be6d=_0x39b225['deletions'][_0x2dfec2],_0x3a7250=_0x39b225['insertions'][_0x2dfec2];for(const {userId:_0x440d72}of this['_touchedMarkers']['values']())null!==_0x440d72&&_0x43c6f3['add'](_0x440d72);for(const {userId:_0x32630b}of this['_touchedRoots']['values']())null!==_0x32630b&&_0x43c6f3['add'](_0x32630b);this['_markChanges'](_0x3a7250,_0x2f4175['insertions'][_0x2dfec2],_0x596db5,'insertion',_0x43c6f3),this['_markChanges'](_0x45be6d,_0x2f4175['deletions'][_0x2dfec2],_0x142f6f,'deletion',_0x43c6f3),_0x33f20e[_0x2dfec2]={'insertions':this['_prepareViewToSave'](_0x3a7250),'deletions':this['_prepareViewToSave'](_0x45be6d),'attachChange':this['_touchedRoots']['get'](_0x2dfec2)||null,'attributesBefore':_0x59dc59(this['_baseRootsAttributes']['get'](_0x2dfec2))||{},'attributesAfter':_0x59dc59(this['_diffRootsAttributes']['get'](_0x2dfec2))};}return{'diffData':_0x33f20e,'authorsIds':Array['from'](_0x43c6f3)};}['_processRootBeforeSave'](_0x5296f0){for(const [,_0x443d8d]of _0x5296f0['markers']){const _0x89449a=_0x443d8d['start']['getAncestors']()['filter'](_0xf91115=>'tableCell'==_0xf91115['name']);for(const _0x29c4e7 of _0x89449a)0x1==_0x29c4e7['childCount']&&_0x29c4e7['getChild'](0x0)['is']('element','paragraph')&&_0x29c4e7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x284d73){this['_processRootBeforeSave'](_0x284d73);const _0x54dac9=this['editor']['data']['toView'](_0x284d73,{}),_0x19d756=Array['from'](_0x54dac9['getChildren']())['map'](_0x1c7b22=>this['_getViewJson'](_0x1c7b22));return JSON['stringify'](_0x19d756);}['_getViewJson'](_0x246d98){if(_0x246d98['is']('$text'))return _0x246d98['data'];{const _0x3b0180=_0x246d98;return{'type':Object['keys'](C)['find'](_0x2bcb56=>_0x246d98 instanceof C[_0x2bcb56]),'name':_0x3b0180['name'],'attributes':Array['from'](_0x3b0180['getAttributes']()),'children':Array['from'](_0x3b0180['getChildren']())['map'](_0x4c1b88=>this['_getViewJson'](_0x4c1b88))};}}['_markChanges'](_0xfeaa66,_0x969849,_0x3a438b,_0x597ce7,_0x5d3436){let _0x364728=null,_0x389123=null,_0x32cdba=0x0;const _0x1e1dfa=this['editor']['model'];for(let _0x49274c=0x0;_0x49274c<_0x969849['length'];_0x49274c++){const _0x5307d6=this['_getVidAttributeName'](_0x969849[_0x49274c]),_0x433e04=_0x969849[_0x49274c]['item']['getAttribute'](_0x5307d6),_0x150dfe=_0x3a438b['get'](_0x433e04),_0x23eff4=_0x49274c==_0x969849['length']-0x1;(!_0x364728&&_0x150dfe&&(_0x364728=_0x150dfe,_0x389123=_0x969849[_0x49274c]),_0x364728&&(!_0x150dfe||_0x150dfe['userId']!=_0x364728['userId']))&&(_0x2ca39a(_0x150dfe,J(_0x389123,_0xfeaa66,_0x1e1dfa),J(_0x969849[_0x49274c],_0xfeaa66,_0x1e1dfa)),_0x364728=_0x150dfe||null,_0x389123=_0x150dfe?_0x969849[_0x49274c]:null),_0x364728&&_0x23eff4&&_0x2ca39a(_0x150dfe,J(_0x389123,_0xfeaa66,_0x1e1dfa),q(_0x969849[_0x49274c],_0xfeaa66,_0x1e1dfa));}function _0x2ca39a(_0x237eb2,_0x334de0,_0x181eb3){const _0x5f483c=_0x364728['userId'],_0x36008a='revision:'+_0x597ce7+':'+_0x5f483c+':'+_0x32cdba++,_0x40fed2=_0x1e1dfa['createRange'](_0x334de0,_0x181eb3);_0xfeaa66['markers']['set'](_0x36008a,_0x40fed2),null!==_0x5f483c&&_0x5d3436['add'](_0x5f483c);}}['_getVidAttributeName'](_0x407291){switch(_0x407291['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x24a1b2,_0xa015fa){_0x24a1b2['baseVersion']=null;for(const _0x4518d6 in _0x24a1b2){const _0x283062=_0x24a1b2[_0x4518d6];if(_0x283062 instanceof gt){const _0x39de95=_0xa015fa['get'](_0x283062['root']['rootName']);_0x24a1b2[_0x4518d6]=this['_fixPosition'](_0x283062,_0x39de95);}if(_0x283062 instanceof vt){const _0x22f269=_0xa015fa['get'](_0x283062['root']['rootName']);_0x24a1b2[_0x4518d6]=this['_fixRange'](_0x283062,_0x22f269);}'root'===_0x4518d6&&(_0x24a1b2['root']=_0xa015fa['get'](_0x24a1b2['root']['rootName']));}}['_fixRange'](_0x598dd8,_0x2747a7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x598dd8['start'],_0x2747a7),this['_fixPosition'](_0x598dd8['end'],_0x2747a7));}['_fixPosition'](_0x3f0626,_0x4fb179){return this['editor']['model']['createPositionFromPath'](_0x4fb179,_0x3f0626['path'],_0x3f0626['stickiness']);}['_handleInsertOperation'](_0x10d347){const _0x48aebd=this['_idsRoots']['get'](_0x10d347['position']['root']['rootName']),_0x3fddf2=this['_fixPosition'](_0x10d347['position'],_0x48aebd),_0x2656fe=null===_0x10d347['_authorId']?null:_0x10d347['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44cb62=_0x3fddf2['parent'],_0x5f36ed=this['_revisionId'],_0x4ea24f=[];for(const _0x5ec929 of _0x10d347['nodes'])if(_0x5ec929['is']('element'))_0x4ea24f['push'](this['_makeIdsRoot'](_0x5ec929));else{for(let _0x59ec31=0x0;_0x59ec31<_0x5ec929['offsetSize'];_0x59ec31++)_0x4ea24f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x101ab0=this['_revisionId'];for(let _0x593fdb=_0x5f36ed;_0x593fdb<_0x101ab0;_0x593fdb++)this['_touched']['set'](_0x593fdb,{'userId':_0x2656fe});_0x44cb62['_insertChild'](_0x3fddf2['offset'],_0x4ea24f);}['_handleMoveOperation'](_0x39f195){(_0x39f195=this['_cloneOperation'](_0x39f195,this['_idsRoots']))['_execute']();const _0x2427c5=null===_0x39f195['_authorId']?null:_0x39f195['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c867e=_0x39f195['getMovedRangeStart'](),_0x191a34=_0x1c867e['parent'],_0x5618ad=_0x1c867e['offset'];!function _0x1beb40(_0x46e315,_0x1fcb7a,_0x398f6d,_0x1f12e3){for(let _0x457463=_0x398f6d;_0x457463<_0x1f12e3;_0x457463++){const _0x3b6990=_0x1fcb7a['getChild'](_0x457463);_0x3b6990['is']('element','$text')?_0x46e315['set'](_0x3b6990['getAttribute']('vid'),{'userId':_0x2427c5}):(_0x46e315['set'](_0x3b6990['getAttribute']('vid_start'),{'userId':_0x2427c5}),_0x1beb40(_0x46e315,_0x3b6990,0x0,_0x3b6990['childCount']),_0x46e315['set'](_0x3b6990['getAttribute']('vid_end'),{'userId':_0x2427c5}));}}(this['_touched'],_0x191a34,_0x5618ad,_0x5618ad+_0x39f195['howMany']);}['_handleMergeOperation'](_0x3ca4c){const _0x177c7e=null===(_0x3ca4c=this['_cloneOperation'](_0x3ca4c,this['_idsRoots']))['_authorId']?null:_0x3ca4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x422619=_0x3ca4c['targetPosition']['parent'],_0x1c3e6b=_0x3ca4c['sourcePosition']['parent'],_0x3812b4=_0x422619['getAttribute']('vid_end'),_0x147617=_0x1c3e6b['getAttribute']('vid_start');_0x422619['_setAttribute']('vid_end',_0x1c3e6b['getAttribute']('vid_end')),_0x1c3e6b['_setAttribute']('vid_end',_0x3812b4),this['_touched']['set'](_0x147617,{'userId':_0x177c7e}),this['_touched']['set'](_0x3812b4,{'userId':_0x177c7e}),_0x3ca4c['_execute']();}['_handleSplitOperation'](_0x29efbf){const _0x43c74b=null===(_0x29efbf=this['_cloneOperation'](_0x29efbf,this['_idsRoots']))['_authorId']?null:_0x29efbf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ce590=_0x29efbf['graveyardPosition'],_0x11411f=_0x29efbf['splitPosition']['parent'];_0x29efbf['_execute']();const _0x36e573=_0x11411f['getAttribute']('vid_end'),_0x508ee9=_0x29efbf['insertionPosition']['nodeAfter'];if(_0x4ce590){const _0x12c972=_0x508ee9['getAttribute']('vid_end'),_0x293a2a=_0x11411f['getAttribute']('vid_end');_0x11411f['_setAttribute']('vid_end',_0x12c972),_0x508ee9['_setAttribute']('vid_end',_0x293a2a),this['_touched']['set'](_0x11411f['getAttribute']('vid_end'),{'userId':_0x43c74b}),this['_touched']['set'](_0x508ee9['getAttribute']('vid_start'),{'userId':_0x43c74b});}else{const _0x4f22a=this['_revisionId']++,_0xd5df23=this['_revisionId']++;_0x11411f['_setAttribute']('vid_end',_0x4f22a),_0x508ee9['_setAttribute']('vid_start',_0xd5df23),_0x508ee9['_setAttribute']('vid_end',_0x36e573),this['_touched']['set'](_0x4f22a,{'userId':_0x43c74b}),this['_touched']['set'](_0xd5df23,{'userId':_0x43c74b});}}['_handleMarkerOperation'](_0x1c6d8a){if(!_0x1c6d8a['affectsData'])return;const _0x3113f0=(_0x1c6d8a=this['_cloneOperation'](_0x1c6d8a,this['_diffRoots']))['oldRange']?_0x1c6d8a['oldRange']['root']:null,_0x5057e6=_0x1c6d8a['newRange']?_0x1c6d8a['newRange']['root']:null;_0x3113f0&&this['_markers']['delete'](_0x1c6d8a['name']),_0x5057e6&&this['_markers']['set'](_0x1c6d8a['name'],_0x1c6d8a['newRange']['clone']());const _0x1a4525=null===_0x1c6d8a['_authorId']?null:_0x1c6d8a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14bdd8=_0x1c6d8a['name'];if(!this['_touchedMarkers']['has'](_0x14bdd8))return void this['_touchedMarkers']['set'](_0x14bdd8,{'range':_0x1c6d8a['oldRange'],'userId':_0x1a4525});const _0x159f56=this['_touchedMarkers']['get'](_0x14bdd8),_0x12979f=_0x159f56['range'],_0x45cd00=_0x1c6d8a['newRange'];null==_0x12979f&&null==_0x45cd00||_0x12979f&&_0x45cd00&&_0x12979f['isEqual'](_0x45cd00)?this['_touchedMarkers']['delete'](_0x1c6d8a['name']):_0x159f56['userId']=_0x1a4525;}['_handleRootOperation'](_0x4e76d3,_0x51cdb4){this['_diffRoots']['has'](_0x4e76d3['rootName'])?this['_diffRoots']['get'](_0x4e76d3['rootName'])['_isAttached']=_0x4e76d3['isAdd']:(this['_diffRoots']['set'](_0x4e76d3['rootName'],B(_0x4e76d3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4e76d3['rootName'],{}),_0x51cdb4&&this['_idsRoots']['set'](_0x4e76d3['rootName'],B(_0x4e76d3['rootName'],!0x0)));const _0x1fb0d4=null===_0x4e76d3['_authorId']?null:_0x4e76d3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x798166=this['_touchedRoots']['get'](_0x4e76d3['rootName']);_0x798166&&_0x798166['userId']===_0x1fb0d4?this['_touchedRoots']['delete'](_0x4e76d3['rootName']):this['_touchedRoots']['set'](_0x4e76d3['rootName'],{'userId':_0x1fb0d4,'isAttached':_0x4e76d3['isAdd']});}['_handleRootAttributeOperation'](_0x3aeea2){const _0x37047b=this['_diffRootsAttributes']['get'](_0x3aeea2['root']['rootName']);null===_0x3aeea2['newValue']?delete _0x37047b[_0x3aeea2['key']]:_0x37047b[_0x3aeea2['key']]=_0x3aeea2['newValue'];}}function F(_0x50c3d3){const _0x460ff2=B(_0x50c3d3['rootName'],_0x50c3d3['isAttached']());for(const _0xa97873 of _0x50c3d3['getChildren']()){const _0x142b3f=_0xa97873['_clone'](!0x0);_0x460ff2['_appendChild'](_0x142b3f);}return _0x460ff2;}function B(_0x2ff6db,_0x32acd9=!0x0){const _0x492e70=new mt();return _0x492e70['rootName']=_0x2ff6db,_0x492e70['_isAttached']=_0x32acd9,_0x492e70['isAttached']=()=>_0x492e70['_isAttached'],_0x492e70;}function J(_0x2bbd6d,_0x44447f,_0x47c85d){const _0x1fcafb='elementEnd'==_0x2bbd6d['type']?_0x47c85d['createPositionAt'](_0x2bbd6d['item'],'end'):_0x47c85d['createPositionBefore'](_0x2bbd6d['item']);return _0x47c85d['createPositionFromPath'](_0x44447f,_0x1fcafb['path'],_0x1fcafb['stickiness']);}function q(_0x5e1c98,_0x106e7f,_0x550ef6){const _0x42f226='elementStart'==_0x5e1c98['type']?_0x550ef6['createPositionAt'](_0x5e1c98['item'],0x0):_0x550ef6['createPositionAfter'](_0x5e1c98['item']);return _0x550ef6['createPositionFromPath'](_0x106e7f,_0x42f226['path'],_0x42f226['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x33d731,_0x1ad115){super(_0x33d731),this['focusTracker']=new _0x77040e(),this['keystrokes']=new _0x2dd40d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1ad115),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4e2633(this);}['render'](){super['render'](),_0xfca4bd({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xac5302=_0x199d56=>_0x199d56['stopPropagation']();this['keystrokes']['set']('arrowright',_0xac5302),this['keystrokes']['set']('arrowleft',_0xac5302),this['keystrokes']['set']('arrowup',_0xac5302),this['keystrokes']['set']('arrowdown',_0xac5302);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x24137){this['revisionNameInputView']['fieldView']['element']['value']=_0x24137['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x7259f0){const _0x30353a=new _0x585659(this['locale'],_0x42bc0a),_0x23e210=_0x30353a['fieldView'];_0x23e210['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2127dc=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x7259f0&&(_0x2127dc+='\x20('+R(this['locale'],'optional')+')'),(_0x30353a['label']=_0x2127dc,_0x23e210['on']('input',()=>{this['revisionNameInputValue']=_0x23e210['element']['value']['trim']();}),_0x30353a);}}class u extends _0x9c73c6{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4a67be=this['editor'],_0x19888d=_0x4a67be['plugins']['get']('RevisionTracker');_0x4a67be['ui']['componentFactory']['add']('revisionHistory',_0x1be3bf=>{const _0x308cb2=_0x4832b0(_0x1be3bf),_0x3a3fce=_0x308cb2['panelView']['children'],_0x4982e7=new _0x2f59d0(_0x1be3bf),_0x297471=new _0x4d48d8(_0x1be3bf),_0x106ff5=new te(_0x1be3bf),_0x246220=new _0x4d48d8(_0x1be3bf),_0xebbc6e=new te(_0x1be3bf);return _0x308cb2['bind']('isEnabled')['to'](_0x19888d,'isReady',_0x19888d,'isEnabled',_0x4a67be,'isReadOnly',(_0x425b4d,_0x500423,_0x2985a7)=>_0x425b4d&&_0x500423&&!_0x2985a7),_0x308cb2['buttonView']['set']({'icon':_0x442c2a['history'],'label':R(_0x1be3bf,'Revision\x20history'),'tooltip':!0x0}),_0x106ff5['set']({'label':R(_0x1be3bf,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x106ff5['bind']('isEnabled')['to'](_0x19888d,'isReady',_0x19888d,'isEnabled',_0x4a67be,'isReadOnly',(_0xde7f99,_0x2015c9,_0x49e4ad)=>_0xde7f99&&_0x2015c9&&!_0x49e4ad),_0x106ff5['on']('execute',()=>this['_showDialog']()),_0xebbc6e['set']({'label':R(_0x1be3bf,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xebbc6e['bind']('isEnabled')['to'](_0x19888d,'isReady',_0x4a67be,'isReadOnly',(_0x2a65dc,_0x59539f)=>_0x2a65dc&&!_0x59539f),_0xebbc6e['on']('execute',()=>{_0x4a67be['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x308cb2['isOpen']=!0x1,_0x4a67be['editing']['view']['focus']();}),_0x297471['children']['add'](_0x106ff5),_0x246220['children']['add'](_0xebbc6e),_0x4982e7['role']='menu',_0x4982e7['items']['addMany']([_0x297471,_0x246220]),_0x3a3fce['add'](_0x4982e7),_0x308cb2;}),_0x4a67be['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xca5c8f=this['editor'],_0x2c23ae=_0xca5c8f['locale'],_0x66e274=new _0x7e524e(_0x2c23ae),_0x11d548=new _0x1f69ca(_0x2c23ae);_0x66e274['buttonView']['set']({'icon':_0x442c2a['history'],'label':R(_0x2c23ae,'Revision\x20history')});const _0x1c998d=new _0x3f4470(_0x2c23ae,_0x66e274),_0x298116=new _0x2ada9c(_0x2c23ae);_0x298116['set']({'label':R(_0x2c23ae,'Save\x20current\x20revision')}),_0x298116['delegate']('execute')['to'](_0x66e274),_0x298116['on']('execute',()=>{this['_showDialog']();}),_0x1c998d['children']['add'](_0x298116),_0x11d548['items']['add'](_0x1c998d);const _0x135348=new _0x3f4470(_0x2c23ae,_0x66e274),_0x142221=new _0x2ada9c(_0x2c23ae);return _0x142221['set']({'label':R(_0x2c23ae,'Open\x20revision\x20history')}),_0x142221['delegate']('execute')['to'](_0x66e274),_0x142221['on']('execute',()=>{_0xca5c8f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x135348['children']['add'](_0x142221),_0x11d548['items']['add'](_0x135348),_0x66e274['panelView']['children']['add'](_0x11d548),_0x66e274;}['_showDialog'](){const _0x2c18dd=this['editor'],_0xb620e7=_0x2c18dd['locale'],_0x5320ed=_0x2c18dd['plugins']['get']('Dialog'),_0x4ccca7=_0x2c18dd['plugins']['get']('RevisionTracker');function _0x4f84a0(_0x1807db){_0x2c18dd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1807db['revisionName']?_0x1807db['revisionNameInputView']['errorText']=R(_0xb620e7,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2c18dd['plugins']['get'](l)['saveRevision']({'name':_0x1807db['revisionName']}),_0x5320ed['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4f84a0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5320ed['show']({'id':'revisionSave','title':R(_0xb620e7,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2c18dd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5320ed['hide']()},{'label':R(_0x2c18dd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1372e2){_0x1372e2['bind']('isEnabled')['to'](_0x4ccca7,'isReady',_0x4ccca7,'isEnabled',_0x2c18dd,'isReadOnly',(_0x9f6432,_0x1df32e,_0x3eef5f)=>_0x9f6432&&_0x1df32e&&!_0x3eef5f);},'onExecute':()=>_0x4f84a0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3da30d=this['editor'],_0x5e3d34=_0x3da30d['locale'];this['_saveRevisionFormView']=new hs(_0x5e3d34,_0x3da30d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x48b711,_0x4702e3){super(_0x48b711),this['_model']=_0x4702e3,this['changeId']=_0x4702e3['id'];const _0x3d2828=this['bindTemplate'],_0x571020=R(_0x48b711,_0x4702e3['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4702e3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4702e3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3d2828['to']('type',_0x349a93=>'ck-revision-change__'+_0x349a93)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x571020}]},{'text':'\x20'+_0x4702e3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x112f26(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x756d2d){super(),this['id']=_0x756d2d['id']||_0x1e3a97(),this['author']=_0x756d2d['author'],this['type']=_0x756d2d['type'],this['data']=_0x756d2d['data']||{},this['rootName']=_0x756d2d['rootName'],this['set']('createdAt',_0x756d2d['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5910aa,_0xc7fd33){this['newRevisionId']=_0x5910aa,this['oldRevisionId']=_0xc7fd33,this['changes']=new _0x50d8e8();}['_setChanges'](_0x6e989e){for(const _0xe56cd9 of _0x6e989e)this['changes']['add'](_0xe56cd9);}}const Z={'c':_0x3316d1,'a':_0x109015,'e':_0x1b15d3,'r':_0x821116,'u':_0x5e82db};class d extends _0x9c73c6{['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[_0x40a0f3,_0x58fdad,j];}constructor(_0x50929c){super(_0x50929c),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',(_0x962a32,_0x381f04,_0x348ae6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x22a5f3=>{for(const _0x52a98e of this['editor']['editing']['view']['document']['roots'])_0x348ae6?_0x22a5f3['removeClass']('ck-editor__editable__overlay',_0x52a98e):_0x22a5f3['addClass']('ck-editor__editable__overlay',_0x52a98e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xd65a44=>null!==_0xd65a44),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x87cc90,_0x5a13b0,_0x1e887d)=>_0x87cc90&&_0x1e887d?_0x5a13b0['changes']['getIndex'](_0x1e887d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5ddba8,_0x78939e)=>_0x5ddba8?_0x78939e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x58fdad);}['init'](){const _0x24d074=this['editor'],_0x573f6b=new yt(_0x24d074,{'direction':'backward'}),_0x495c0c=new yt(_0x24d074,{'direction':'forward'});(_0x24d074['commands']['add']('showPreviousChange',_0x573f6b),_0x24d074['commands']['add']('showNextChange',_0x495c0c),_0x24d074['commands']['add']('restoreRevision',new _t(_0x24d074)),this['on']('change:numberOfChanges',()=>{_0x573f6b['refresh'](),_0x495c0c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x24d074['enableReadOnlyMode']('revision-viewer'),_0x24d074['plugins']['has']('WidgetToolbarRepository'))&&_0x24d074['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4650e6){await this['loadRevisionData'](_0x4650e6);const _0x4c4816={};for(const _0x1deb66 in _0x4650e6['diffData']){if(_0x4650e6['diffData'][_0x1deb66]['attachChange']&&!_0x4650e6['diffData'][_0x1deb66]['attachChange']['isAttached'])continue;const _0x44563d=this['_removeRevisionMarkers'](JSON['parse'](_0x4650e6['diffData'][_0x1deb66]['insertions'])),_0x121d62=this['editor']['editing']['view']['document'],_0x42e28e=new _0x474688(_0x121d62,_0x44563d['map'](_0x441262=>this['_getViewObj'](_0x441262)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4c4816[_0x1deb66]=this['editor']['data']['processor']['toData'](_0x42e28e),this['editor']['data']['processor']['useFillerType']('default');}return _0x4c4816;}async['getRevisionRootsAttributes'](_0x399e54){await this['loadRevisionData'](_0x399e54);const _0x24ab4b={};for(const _0x5c84e9 in _0x399e54['diffData'])_0x399e54['diffData'][_0x5c84e9]['attachChange']&&!_0x399e54['diffData'][_0x5c84e9]['attachChange']['isAttached']||(_0x24ab4b[_0x5c84e9]=_0x399e54['diffData'][_0x5c84e9]['attributesAfter']||{});return _0x24ab4b;}['_removeRevisionMarkers'](_0x482aa1){return(_0x482aa1=_0x482aa1['filter'](_0x118b2d=>!_0x118b2d['name']||'revision-start'!==_0x118b2d['name']&&'revision-end'!==_0x118b2d['name']))['forEach'](_0x29a952=>{'string'!=typeof _0x29a952&&(_0x29a952['children']=this['_removeRevisionMarkers'](_0x29a952['children']),_0x29a952['attributes']=_0x29a952['attributes']['filter'](_0x8debe2=>!_0x8debe2[0x0]['startsWith']('data-revision-')));}),_0x482aa1;}async['compare'](_0x13e3f5,_0x51bde1,_0x4af84d=!0x1){if(!this['isEnabled'])return;const _0x2e93bc=this['diff'],_0xc88e9f=this['repository'],_0x27a99a='string'==typeof _0x13e3f5?_0xc88e9f['getRevision'](_0x13e3f5):_0x13e3f5,_0xf9c105='string'==typeof _0x51bde1?_0xc88e9f['getRevision'](_0x51bde1):_0x51bde1,_0x5ae388=_0x27a99a['id'],_0x3bc51f=_0xf9c105?_0xf9c105['id']:null;if(!_0x4af84d&&this['diff']&&this['diff']['newRevisionId']===_0x5ae388&&this['diff']['oldRevisionId']===_0x3bc51f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5ae388,_0x3bc51f);const _0x35d0aa=this['_getRevisionsRange'](_0x27a99a,_0xf9c105,!0x0)['map'](_0x55db0c=>this['loadRevisionData'](_0x55db0c));return _0x35d0aa['push'](new Promise(_0x2e8750=>{setTimeout(_0x2e8750,0x14);})),Promise['all'](_0x35d0aa)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5e5180=this['_getDiff'](_0x5ae388,_0x3bc51f);for(const _0x43599e of _0x5e5180['changes'])this['_changeIdToChange']['set'](_0x43599e['id'],_0x43599e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3b4d17=>{for(const _0x421c02 of this['editor']['model']['document']['getRootNames']())_0x3b4d17['detachRoot'](_0x421c02);for(const _0x40f837 of Object['keys'](_0x5e5180['model'])){const _0x90db20=_0x3b4d17['addRoot'](_0x40f837);for(const _0x1cb97e of Object['keys'](_0x5e5180['attributes'][_0x40f837]))_0x3b4d17['setAttribute'](_0x1cb97e,_0x5e5180['attributes'][_0x40f837][_0x1cb97e],_0x90db20);_0x3b4d17['insert'](_0x5e5180['model'][_0x40f837],_0x90db20,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5e5180['changes'])),this['isReady']=!0x0;})['catch'](_0x57c1c8=>{console['error'](_0x57c1c8),this['_cleanUp'](),_0x2e93bc&&(this['diff']=_0x2e93bc),this['isReady']=!0x0;});}['addRevisionData'](_0x47c0d9,_0x41617f){const _0x1a15f6=this['repository']['createRevision'](_0x47c0d9);return _0x1a15f6['on']('_update',(_0x3dfb2a,_0x202011,_0x48c17a)=>_0x41617f(_0x202011,_0x48c17a,_0x1a15f6)),this['repository']['addRevision'](_0x1a15f6),_0x1a15f6;}['loadRevisionData'](_0x12d0e2){if(!_0x12d0e2||_0x12d0e2['diffData'])return Promise['resolve']();{const _0x3c27ed=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3c27ed,'revisionId':_0x12d0e2['id']})['then'](_0x30aecc=>{_0x12d0e2['_update']({'diffData':_0x30aecc['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},_0x4a5e4f=>{for(const _0xdcdb13 of this['editor']['model']['document']['getRootNames']())_0x4a5e4f['detachRoot'](_0xdcdb13);});}['_sortAndFilterDiffChanges'](_0x2081c3){const _0x475bf9=[],_0x4edb7f=new Map();for(const _0x1b1329 of this['editor']['model']['document']['getRootNames']()){const _0x64d801=this['editor']['editing']['view']['getDomRoot'](_0x1b1329);if(!_0x64d801)continue;const _0x41ce09=_0x64d801['getClientRects']()['item'](0x0);_0x41ce09&&(_0x475bf9['push'](_0x1b1329),_0x4edb7f['set'](_0x1b1329,_0x41ce09));}return _0x475bf9['sort']((_0x28a51a,_0x32063e)=>{const _0x442185=_0x4edb7f['get'](_0x28a51a),_0x21e696=_0x4edb7f['get'](_0x32063e);return _0x442185['y']-_0x21e696['y']||_0x442185['x']-_0x21e696['x'];}),(_0x2081c3=_0x2081c3['filter'](_0x6ebbd6=>_0x475bf9['includes'](_0x6ebbd6['rootName'])))['sort']((_0x3234ac,_0x3e6b7f)=>_0x475bf9['indexOf'](_0x3234ac['rootName'])-_0x475bf9['indexOf'](_0x3e6b7f['rootName'])),_0x2081c3;}['_makeTape'](_0x598210){const _0xe5e0da=Array['from'](_0x598210['markers'])['filter'](([_0x147d4e,_0x3ec9cd])=>_0x147d4e['startsWith']('revision:')&&!_0x3ec9cd['isCollapsed']),_0x4bed40=Array['from'](this['editor']['model']['createRangeIn'](_0x598210)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xe5e0da['length'])for(const _0x204c5d of _0x4bed40){const [_0x3bd932,_0x43378e]=_0xe5e0da[0x0],[,_0x11b801,_0x44f1d3]=_0x3bd932['split'](':');if(_0x43378e['end']['isEqual'](_0x204c5d['nextPosition'])&&_0xe5e0da['shift'](),(_0x204c5d['previousPosition']['isEqual'](_0x43378e['start'])||_0x204c5d['previousPosition']['isAfter'](_0x43378e['start']))&&('insertion'==_0x11b801?_0x204c5d['isAdded']={'userId':_0x44f1d3}:'deletion'==_0x11b801&&(_0x204c5d['isRemoved']={'userId':_0x44f1d3})),0x0==_0xe5e0da['length'])break;}return _0x4bed40;}['_refreshStartEndIndex'](_0x49b375){const _0xf7a4bd=new Map();for(let _0x4762a7=0x0;_0x4762a7<_0x49b375['length'];_0x4762a7++)'text'===_0x49b375[_0x4762a7]['type']?(_0x49b375[_0x4762a7]['item']['startIndex']=_0x4762a7,_0x49b375[_0x4762a7]['item']['endIndex']=_0x4762a7):('elementStart'===_0x49b375[_0x4762a7]['type']?_0x49b375[_0x4762a7]['item']['startIndex']=_0x4762a7:'elementEnd'===_0x49b375[_0x4762a7]['type']&&(_0x49b375[_0x4762a7]['item']['endIndex']=_0x4762a7),_0xf7a4bd['set'](_0x49b375[_0x4762a7]['id'],_0x4762a7));for(const _0x4531e of _0xf7a4bd['values']())'elementStart'===_0x49b375[_0x4531e]['type']?_0x49b375[_0x4531e]['item']['endIndex']=_0xf7a4bd['get'](_0x49b375[_0x4531e]['pairId']):'elementEnd'===_0x49b375[_0x4531e]['type']&&(_0x49b375[_0x4531e]['item']['startIndex']=_0xf7a4bd['get'](_0x49b375[_0x4531e]['pairId']));}['_processTape'](_0x74f784){for(let _0x5bfbee=0x0;_0x5bfbee<_0x74f784['length'];_0x5bfbee++){if('elementStart'===_0x74f784[_0x5bfbee]['type'])_0x74f784[_0x5bfbee]['item']['startIndex']=_0x5bfbee;else{if('elementEnd'===_0x74f784[_0x5bfbee]['type']){_0x74f784[_0x5bfbee]['item']['endIndex']=_0x5bfbee;const _0x55199e=_0x74f784[_0x5bfbee]['item']['startIndex'];_0x74f784[_0x55199e]['pairId']=_0x74f784[_0x5bfbee]['id'],_0x74f784[_0x5bfbee]['pairId']=_0x74f784[_0x55199e]['id'];}else _0x74f784[_0x5bfbee]['item']['startIndex']=_0x5bfbee,_0x74f784[_0x5bfbee]['item']['endIndex']=_0x5bfbee,_0x74f784[_0x5bfbee]['pairId']=null;}_0x74f784[_0x5bfbee]['markersStart']||(_0x74f784[_0x5bfbee]['markersStart']=[],_0x74f784[_0x5bfbee]['markersEnd']=[]);}}['_markInsertions'](_0x33cffb,_0x19dc47){const _0x274f0c=_0x33cffb['filter'](_0x1b7f00=>!_0x1b7f00['isAdded']);for(let _0x458675=0x0;_0x458675<_0x19dc47['length'];_0x458675++)_0x19dc47[_0x458675]['isAdded']&&(_0x274f0c[_0x458675]['isAdded']=_0x19dc47[_0x458675]['isAdded']);}['_makeModelFromViewString'](_0x2f93d8){const _0x2a789d=JSON['parse'](_0x2f93d8),_0x33b3c5=this['editor']['editing']['view']['document'],_0x8367d=new _0x474688(_0x33b3c5,_0x2a789d['map'](_0x32487f=>this['_getViewObj'](_0x32487f)));return this['editor']['data']['toModel'](_0x8367d);}['_getViewObj'](_0xf4bc7){const _0x165570=this['editor']['editing']['view']['document'];if('string'==typeof _0xf4bc7)return new _0x146933(_0x165570,_0xf4bc7);{const _0x1270e1=_0xf4bc7['children']['map'](_0x38d4df=>this['_getViewObj'](_0x38d4df));return new(Z[_0xf4bc7['type']]||_0x1a6832)(_0x165570,_0xf4bc7['name'],_0xf4bc7['attributes'],_0x1270e1);}}['_getDiff'](_0x281142,_0xbd4e5c=null){const _0xdf8034=this['repository']['getRevision'](_0x281142),_0x461b94=_0xbd4e5c?this['repository']['getRevision'](_0xbd4e5c):null,_0x1b0e93=this['_getRevisionsRange'](_0xdf8034,_0x461b94),_0x35496f=_0x1b0e93[_0x1b0e93['length']-0x1],_0x2978c3=new Map(),_0x50d28f={'model':{},'attributes':{},'changes':[]},_0x14a564=new Set(),_0x25509d=new Map();for(let _0x3bc3e3=_0x1b0e93['length']-0x1;_0x3bc3e3>=0x0;_0x3bc3e3--){const _0x13f982=_0x1b0e93[_0x3bc3e3];for(const _0x1d2d7f of Object['keys'](_0x13f982['diffData']))if(_0x13f982['diffData'][_0x1d2d7f]['attachChange']){const _0x309c34=_0x13f982['diffData'][_0x1d2d7f]['attachChange'];_0x309c34['isAttached']?(_0x14a564['add'](_0x1d2d7f),_0x25509d['has'](_0x1d2d7f)&&_0x25509d['get'](_0x1d2d7f)['userId']==_0x309c34['userId']?_0x25509d['delete'](_0x1d2d7f):_0x25509d['set'](_0x1d2d7f,_0x309c34)):_0x25509d['has'](_0x1d2d7f)?(_0x14a564['delete'](_0x1d2d7f),_0x25509d['delete'](_0x1d2d7f)):(_0x14a564['add'](_0x1d2d7f),_0x25509d['set'](_0x1d2d7f,_0x309c34));}else _0x14a564['add'](_0x1d2d7f);}for(const _0x5b373b of _0x14a564){const _0xb3a487=_0x25509d['has'](_0x5b373b)&&!_0x25509d['get'](_0x5b373b)['isAttached'];let _0x19cb58=_0xb3a487?_0x1b0e93['length']-0x1:0x0;const _0x14f311=_0xb3a487?-0x1:0x1;for(;_0x1b0e93[_0x19cb58];){const _0xce4605=_0x1b0e93[_0x19cb58];if(_0xce4605['diffData'][_0x5b373b]){const _0x5758f3=_0xb3a487?_0xce4605['diffData'][_0x5b373b]['attributesBefore']:_0xce4605['diffData'][_0x5b373b]['attributesAfter'];_0x50d28f['attributes'][_0x5b373b]=_0x5758f3?_0x59dc59(_0x5758f3):{};break;}_0x19cb58+=_0x14f311;}}for(const _0x284620 of _0x1b0e93){_0x284620['model']={};for(const _0x25535d of _0x284620['authors'])_0x2978c3['set'](_0x25535d['id'],_0x25535d);for(const _0x3cd97e of _0x14a564){const _0x296ea6=_0x284620['diffData'][_0x3cd97e]?_0x284620['diffData'][_0x3cd97e]['insertions']:'[]',_0x3a541f=_0x284620['diffData'][_0x3cd97e]?_0x284620['diffData'][_0x3cd97e]['deletions']:'[]';_0x284620['model'][_0x3cd97e]={'insertions':this['_makeModelFromViewString'](_0x296ea6),'deletions':this['_makeModelFromViewString'](_0x3a541f)};}}for(const _0x181316 of _0x14a564){let _0x1a03e0=null,_0x3ab2c1=0x0;const _0x38c623=new Map(Array['from'](_0xdf8034['model'][_0x181316]['insertions']['markers'])['filter'](([_0x32e1b5])=>!_0x32e1b5['startsWith']('revision:')));let _0x3e5cf7=0x0;for(const _0x102d48 of _0x1b0e93){const _0x2b7983=this['_makeTape'](_0x102d48['model'][_0x181316]['insertions']);_0x102d48==_0xdf8034?(_0x1a03e0=_0x2b7983,_0x3ab2c1=_0x1a03e0['length'],_0x1a03e0['forEach'](_0x2bec56=>{_0x2bec56['id']=_0x3e5cf7++;}),this['_processTape'](_0x1a03e0)):this['_markInsertions'](_0x1a03e0,_0x2b7983);const _0x9594ef=_0x1a03e0['filter'](_0x2eb9e5=>!_0x2eb9e5['isAdded'])['map'](_0x413a2e=>_0x413a2e['id']);let _0xf6ee19=0x0;const _0x592a73=this['_makeTape'](_0x102d48['model'][_0x181316]['deletions']);_0x592a73['forEach'](_0x16e65a=>{_0x16e65a['isRemoved']?_0x16e65a['id']=_0x3ab2c1++:_0x16e65a['id']=_0x9594ef[_0xf6ee19++];}),this['_processTape'](_0x592a73),this['_setDistance'](_0x1a03e0,'isAdded'),this['_setDistance'](_0x592a73,'isRemoved'),_0x102d48==_0xdf8034&&this['_markMarkers'](_0x1a03e0,_0x38c623),_0x1a03e0=this['_joinTapes'](_0x1a03e0,_0x592a73),this['_refreshStartEndIndex'](_0x1a03e0),this['_setDistance'](_0x1a03e0,'isRemoved');}_0x1a03e0=_0x1a03e0['filter'](_0x1e88fe=>!(_0x1e88fe['isAdded']&&_0x1e88fe['isRemoved']));const _0x368dfb=new Map(_0x35496f['model'][_0x181316]['deletions']['markers']),_0x31e065=new Set(_0x38c623['keys']());for(const _0x4cf873 of _0x368dfb['keys']())_0x31e065['delete'](_0x4cf873);this['_markSuggestions'](_0x1a03e0,_0x31e065),this['_fixObsoleteTags'](_0x1a03e0),_0x1a03e0=this['_removeMissingPairs'](_0x1a03e0),_0x1a03e0=this['_markMismatchedRemovedTags'](_0x1a03e0),_0x1a03e0=this['_removeUnsupportedChanges'](_0x1a03e0);const {root:_0x1f70cf,changes:_0x4581ba}=this['_makeModelFromTape'](_0x1a03e0,_0x2978c3,_0x181316);_0x50d28f['model'][_0x181316]=_0x1f70cf;const _0x2fd8f0=_0x25509d['get'](_0x181316);if(_0x2fd8f0){const _0x502b77=_0x2978c3['get'](_0x2fd8f0['userId']),_0x4e6592=new r({'author':_0x502b77,'type':_0x2fd8f0['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x181316});_0x4581ba['unshift'](_0x4e6592),_0x50d28f['attributes'][_0x181316]['revisionHistoryAttachChange']=_0x4e6592['id'];}_0x50d28f['changes']=_0x50d28f['changes']['concat'](_0x4581ba);}return _0x50d28f;}['_markMarkers'](_0x950db5,_0x2355f4){for(let _0x37ae73=0x0;_0x37ae73<_0x950db5['length'];_0x37ae73++)for(const [_0x1ff687,_0x32c47c]of _0x2355f4)_0x32c47c['start']['isEqual'](_0x950db5[_0x37ae73]['previousPosition'])&&_0x950db5[_0x37ae73]['markersStart']['push'](_0x1ff687),_0x32c47c['end']['isEqual'](_0x950db5[_0x37ae73]['nextPosition'])&&_0x950db5[_0x37ae73]['markersEnd']['push'](_0x1ff687);}['_joinTapes'](_0x39f783,_0x23a316){let _0x1ad0c4=[],_0x307c6f=0x0,_0xddad0=0x0;for(;_0x307c6f<_0x39f783['length']||_0xddad0<_0x23a316['length'];){const _0x2742f5=_0x39f783[_0x307c6f]||{},_0xb60dad=_0x23a316[_0xddad0]||{};if(_0x2742f5['id']==_0xb60dad['id'])_0x307c6f++,_0xddad0++,_0x1ad0c4['push'](_0x2742f5);else{if(_0xb60dad['isRemoved']&&_0x2742f5['isAdded']){const {commonTape:_0x369f48,iEnd:_0x2871a2,jEnd:_0x12ac05}=this['_threeWayMerge'](_0x39f783,_0x307c6f,_0x23a316,_0xddad0);_0x1ad0c4=_0x1ad0c4['concat'](_0x369f48),_0x307c6f=_0x2871a2,_0xddad0=_0x12ac05;}else _0xb60dad['isRemoved']?(_0xddad0++,_0x1ad0c4['push'](_0xb60dad)):(_0x307c6f++,_0x1ad0c4['push'](_0x2742f5));}}return _0x1ad0c4;}['_markSuggestions'](_0x21a4ca,_0x303df4){const _0x1cecf4=[];for(let _0x27fafd=0x0;_0x27fafd<_0x21a4ca['length'];_0x27fafd++){for(let _0x58e5c9=0x0;_0x58e5c9<_0x21a4ca[_0x27fafd]['markersStart']['length'];_0x58e5c9++){const _0x4ae541=_0x21a4ca[_0x27fafd]['markersStart'][_0x58e5c9];if(!_0x303df4['has'](_0x4ae541))continue;const {group:_0xb084e5,type:_0x312669,authorId:_0x2100ca}=_0x55c061(_0x4ae541);'revision-suggestion'!=_0xb084e5||'insertion'!=_0x312669&&'deletion'!=_0x312669||(_0x1cecf4['unshift']({'type':_0x312669,'name':_0x4ae541,'userId':_0x2100ca}),_0x21a4ca[_0x27fafd]['markersStart']['splice'](_0x58e5c9,0x1),_0x58e5c9--);}_0x56e2a7(_0x21a4ca[_0x27fafd]);for(let _0x3ff273=0x0;_0x3ff273<_0x21a4ca[_0x27fafd]['markersEnd']['length'];_0x3ff273++){const _0x5cff0b=_0x21a4ca[_0x27fafd]['markersEnd'][_0x3ff273];if(!_0x303df4['has'](_0x5cff0b))continue;const {group:_0x212891,type:_0x542b26}=_0x55c061(_0x5cff0b);if('revision-suggestion'!=_0x212891||'insertion'!=_0x542b26&&'deletion'!=_0x542b26)continue;_0x21a4ca[_0x27fafd]['markersEnd']['splice'](_0x3ff273,0x1),_0x3ff273--;const _0x1ac7af=_0x1cecf4['findIndex'](_0x36d4aa=>_0x36d4aa['name']==_0x5cff0b);_0x1ac7af>-0x1&&_0x1cecf4['splice'](_0x1ac7af,0x1);}}function _0x55c061(_0x32ac90){const _0x59c17a=_0x32ac90['split'](':');return{'group':_0x59c17a[0x0],'type':_0x59c17a[0x1],'subType':_0x59c17a['length']>=0x5?_0x59c17a[0x2]:null,'id':_0x59c17a['length']<0x5?_0x59c17a[0x2]:_0x59c17a[0x3],'authorId':_0x59c17a['length']<0x5?_0x59c17a[0x3]:_0x59c17a[0x4],'markerCount':0x6==_0x59c17a['length']?_0x59c17a[0x5]:null};}function _0x56e2a7(_0x2b1e79){for(let _0x5a6567=0x0;_0x5a6567<_0x1cecf4['length'];_0x5a6567++){if(_0x2b1e79['isAdded']&&'insertion'==_0x1cecf4[_0x5a6567]['type'])return _0x2b1e79['isAddSuggestion']=_0x1cecf4[_0x5a6567],void delete _0x2b1e79['isAdded'];if(!_0x2b1e79['isAdded']&&!_0x2b1e79['isRemoved']&&'deletion'==_0x1cecf4[_0x5a6567]['type'])return void(_0x2b1e79['isRemoveSuggestion']=_0x1cecf4[_0x5a6567]);}}}['_setDistance'](_0x35b684,_0x507980){let _0x59f324=0x0,_0x1c18d8=!0x1;const _0x12bbc9=new Map();for(const _0x1dfb1a of _0x35b684)_0x1dfb1a[_0x507980]?_0x1c18d8&&(_0x59f324++,_0x1c18d8=!0x1):(_0x59f324++,_0x1c18d8=!0x0),_0x12bbc9['set'](_0x1dfb1a['id'],_0x59f324);for(let _0x3befbf=0x0;_0x3befbf<_0x35b684['length'];_0x3befbf++){if('isRemoved'==_0x507980&&_0x35b684[_0x3befbf]['isAdded']||'isAdded'==_0x507980&&_0x35b684[_0x3befbf]['isRemoved'])continue;if('text'==_0x35b684[_0x3befbf]['type']){_0x35b684[_0x3befbf]['distance']=0x0;continue;}const _0x236618=_0x12bbc9['get'](_0x35b684[_0x3befbf]['pairId']),_0x5929a1=_0x12bbc9['get'](_0x35b684[_0x3befbf]['id']);_0x35b684[_0x3befbf]['distance']=_0x236618-_0x5929a1;}}['_getRevisionsRange'](_0x283988,_0x2cf433,_0x4f7dfa=!0x1){const _0x1c1c7f=[];let _0x44cdfc=this['repository']['getIndex'](_0x283988),_0x4f5769=this['repository']['getIndex'](_0x2cf433);for(-0x1==_0x4f5769&&(_0x4f5769=this['repository']['_revisions']['length'],_0x4f7dfa=!0x1);_0x44cdfc<_0x4f5769;)_0x1c1c7f['push'](this['repository']['getRevision'](_0x44cdfc)),_0x44cdfc++;return _0x4f7dfa&&_0x1c1c7f['push'](this['repository']['getRevision'](_0x44cdfc)),_0x1c1c7f;}['_threeWayMerge'](_0x4cd190,_0x385630,_0x267aad,_0x40526d){const _0x172844=this['editor']['model']['schema'];let _0x2fc8c0=_0x385630;for(;_0x4cd190[_0x2fc8c0]&&_0x4cd190[_0x2fc8c0]['isAdded'];)_0x2fc8c0++;let _0xc44ed8=_0x40526d;for(;_0x267aad[_0xc44ed8]&&_0x267aad[_0xc44ed8]['isRemoved'];)_0xc44ed8++;_0x378cbf(_0x4cd190,_0x385630,_0x2fc8c0),_0x378cbf(_0x267aad,_0x40526d,_0xc44ed8);const _0x2acff6=_0x267aad['slice'](_0x40526d,_0xc44ed8)['concat'](_0x4cd190['slice'](_0x385630,_0x2fc8c0));return _0x2acff6['sort']((_0x4d36fe,_0x132be0)=>_0x4d36fe['side']!=_0x132be0['side']?_0x4d36fe['side']-_0x132be0['side']:_0x4d36fe['level']!=_0x132be0['level']?_0x4d36fe['level']-_0x132be0['level']:_0x4d36fe['distance']!=_0x132be0['distance']?_0x132be0['distance']-_0x4d36fe['distance']:!!_0x4d36fe['isAdded']!=!!_0x132be0['isAdded']?-0x1==_0x4d36fe['side']||0x0==_0x4d36fe['side']?_0x4d36fe['isAdded']?-0x1:0x1:_0x4d36fe['isAdded']?0x1:-0x1:_0x4d36fe['index']-_0x132be0['index']),{'commonTape':_0x2acff6,'iEnd':_0x2fc8c0,'jEnd':_0xc44ed8};function _0x378cbf(_0xddeb89,_0xfb609c,_0x39acd6){let _0x29919e=-0x1,_0x4788da=Number['POSITIVE_INFINITY'],_0x9bd81f=!0x0;for(let _0xe5e3a=_0xfb609c;_0xe5e3a<_0x39acd6;_0xe5e3a++)if(_0x172844['isInline'](_0xddeb89[_0xe5e3a]['item'])||(_0x9bd81f=!0x1),_0xddeb89[_0xe5e3a]['item']['startIndex']<_0xfb609c&&(_0x29919e=_0xe5e3a),_0xddeb89[_0xe5e3a]['item']['endIndex']>=_0x39acd6){_0x4788da=_0xe5e3a;break;}_0x9bd81f&&(_0x29919e=_0x39acd6-0x1);for(let _0x40b02e=_0xfb609c;_0x40b02e<_0x39acd6;_0x40b02e++)_0xddeb89[_0x40b02e]['side']=_0x40b02e<=_0x29919e?-0x1:_0x40b02e<_0x4788da?0x0:0x1,_0xddeb89[_0x40b02e]['index']=_0x40b02e;let _0x5194d1=0x0;for(let _0x4c1997=_0xfb609c;_0x4c1997<=_0x29919e;_0x4c1997++)0x0==_0xddeb89[_0x4c1997]['distance']?_0xddeb89[_0x4c1997]['level']=_0x5194d1:(_0x5194d1++,_0xddeb89[_0x4c1997]['level']=_0x5194d1,_0x5194d1++);for(let _0x5f3c76=_0xfb609c;_0x5f3c76<_0x39acd6;_0x5f3c76++)0x0==_0xddeb89[_0x5f3c76]['side']&&(_0xddeb89[_0x5f3c76]['level']=_0x5194d1);_0x5194d1=0x0;for(let _0xc90129=_0x39acd6-0x1;_0xc90129>=_0x4788da;_0xc90129--)0x0==_0xddeb89[_0xc90129]['distance']?_0xddeb89[_0xc90129]['level']=_0x5194d1:(_0x5194d1--,_0xddeb89[_0xc90129]['level']=_0x5194d1,_0x5194d1--);}}['_fixObsoleteTags'](_0x5771fc){const _0x33568c=new Map(),_0x37f050=this['editor']['model']['schema'];for(let _0x5bf58d=0x1;_0x5bf58d<_0x5771fc['length'];_0x5bf58d++){let _0x4b4ece,_0x65ddf9,_0x982011;const _0x2e6429=_0x5771fc[_0x5bf58d],_0x4084d2=_0x5771fc[_0x5bf58d-0x1];if('text'==_0x2e6429['type'])continue;if(_0x2e6429['type']!=_0x4084d2['type'])continue;if(!_0x37f050['isBlock'](_0x4084d2['item'])||_0x37f050['isLimit'](_0x4084d2['item']))continue;if(!_0x37f050['isBlock'](_0x2e6429['item'])||_0x37f050['isLimit'](_0x2e6429['item']))continue;if((_0x5771fc[_0x5bf58d]['isAdded']||_0x5771fc[_0x5bf58d]['isAddSuggestion'])&&_0x5771fc[_0x5bf58d-0x1]['isRemoved'])_0x4b4ece=_0x5771fc[_0x5bf58d],_0x65ddf9=_0x5771fc[_0x5bf58d-0x1],_0x982011=_0x5bf58d-0x1;else{if(!_0x5771fc[_0x5bf58d]['isRemoved']||!_0x5771fc[_0x5bf58d-0x1]['isAdded']&&!_0x5771fc[_0x5bf58d-0x1]['isAddSuggestion'])continue;_0x4b4ece=_0x5771fc[_0x5bf58d-0x1],_0x65ddf9=_0x5771fc[_0x5bf58d],_0x982011=_0x5bf58d;}const _0x1ddbd0=_0x4b4ece['level']==_0x65ddf9['level'],_0x2fac56=Math['abs'](_0x4b4ece['level'])<Math['abs'](_0x65ddf9['level'])&&0x0==_0x65ddf9['distance'];(_0x1ddbd0||_0x2fac56)&&(_0x33568c['set'](_0x65ddf9['id'],_0x4b4ece['id']),_0x5771fc['splice'](_0x982011,0x1),_0x5bf58d--,_0x4b4ece['isAdded']=!0x1);}for(let _0x2ebe93=0x0;_0x2ebe93<_0x5771fc['length'];_0x2ebe93++)_0x33568c['has'](_0x5771fc[_0x2ebe93]['pairId'])&&(_0x5771fc[_0x2ebe93]['pairId']=_0x33568c['get'](_0x5771fc[_0x2ebe93]['pairId']));}['_removeMissingPairs'](_0x138f93){const _0x4bd84e=new Set(_0x138f93['map'](_0x7547fe=>_0x7547fe['id']));for(let _0x29b833=0x0;_0x29b833<_0x138f93['length'];_0x29b833++)_0x4bd84e['has'](_0x138f93[_0x29b833]['pairId'])||0x0==_0x138f93[_0x29b833]['distance']||(_0x138f93[_0x29b833]['isIncorrect']=!0x0);return _0x138f93['filter'](_0x31c472=>!_0x31c472['isIncorrect']);}['_markMismatchedRemovedTags'](_0x14b84b){const _0x3e6c75=new Set();for(let _0x1af804=0x0;_0x1af804<_0x14b84b['length'];_0x1af804++){if(_0x3e6c75['has'](_0x14b84b[_0x1af804]['id'])&&_0x14b84b[_0x1af804]['isRemoved']&&(_0x14b84b[_0x1af804]['isIncorrect']=!0x0),_0x14b84b[_0x1af804]['isIncorrect'])continue;if(0x0==_0x14b84b[_0x1af804]['distance'])continue;if('elementStart'!=_0x14b84b[_0x1af804]['type'])continue;if(null==_0x14b84b[_0x1af804]['pairId'])continue;let _0x2fcd0e=_0x1af804+0x1,_0x32bde2=0x0;for(;_0x14b84b[_0x2fcd0e]['id']!=_0x14b84b[_0x1af804]['pairId'];)'elementStart'==_0x14b84b[_0x2fcd0e]['type']?_0x32bde2++:'elementEnd'==_0x14b84b[_0x2fcd0e]['type']&&_0x32bde2--,_0x2fcd0e++;if(0x0!=_0x32bde2){if(_0x14b84b[_0x1af804]['isRemoved'])_0x14b84b[_0x1af804]['isIncorrect']=!0x0;else{for(;_0x2fcd0e!=_0x1af804;)_0x14b84b[_0x2fcd0e]['isRemoved']&&0x0!=_0x14b84b[_0x2fcd0e]['distance']&&(_0x14b84b[_0x2fcd0e]['isIncorrect']=!0x0,_0x3e6c75['add'](_0x14b84b[_0x2fcd0e]['pairId'])),_0x2fcd0e--;}}}return _0x14b84b['filter'](_0x5cf825=>!_0x5cf825['isIncorrect']);}['_removeUnsupportedChanges'](_0x405c44){const _0xd37149=this['editor']['model']['schema'];for(let _0x175ea8=0x0;_0x175ea8<_0x405c44['length'];_0x175ea8++){if(!(_0x405c44[_0x175ea8]['isAdded']||_0x405c44[_0x175ea8]['isAddSuggestion']||_0x405c44[_0x175ea8]['isRemoved']||_0x405c44[_0x175ea8]['isRemoveSuggestion']))continue;if(0x0==_0x405c44[_0x175ea8]['distance'])continue;const _0x4a8a37=_0x405c44[_0x175ea8]['item'];_0xd37149['isBlock'](_0x4a8a37)||_0xd37149['isLimit'](_0x4a8a37)||(_0x405c44[_0x175ea8]['isAdded']&&delete _0x405c44[_0x175ea8]['isAdded'],_0x405c44[_0x175ea8]['isAddSuggestion']&&delete _0x405c44[_0x175ea8]['isAddSuggestion'],_0x405c44[_0x175ea8]['isRemoveSuggestion']&&delete _0x405c44[_0x175ea8]['isRemoveSuggestion'],_0x405c44[_0x175ea8]['isRemoved']&&(_0x405c44[_0x175ea8]['isIncorrect']=!0x0));}return _0x405c44['filter'](_0x14e6f5=>!_0x14e6f5['isIncorrect']);}['_makeModelFromTape'](_0x550e1d,_0x3b747b,_0x3e9b43){const _0x3936aa=new mt(),_0x14bc43=[],_0x303cbe=new Map(),_0x192e72=this['editor']['model'],_0x146d6d=_0x192e72['schema'],_0x7914fb=[_0x3936aa],_0x4d1c1f={},_0x33cc6f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4dd9b9=null;const _0x20ca56=[0x0];for(let _0x4b7caf=0x0;_0x4b7caf<_0x550e1d['length'];_0x4b7caf++)if('elementStart'===_0x550e1d[_0x4b7caf]['type']){_0x550e1d[_0x4b7caf]['previousPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56);const _0x5cea60=new ft(_0x550e1d[_0x4b7caf]['item']['name'],_0x550e1d[_0x4b7caf]['item']['getAttributes']());_0x7914fb[0x0]['_appendChild'](_0x5cea60),_0x20ca56['push'](0x0),_0x7914fb['unshift'](_0x5cea60),_0x550e1d[_0x4b7caf]['nextPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56);}else'elementEnd'===_0x550e1d[_0x4b7caf]['type']?(_0x7914fb['shift'](),_0x550e1d[_0x4b7caf]['previousPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56),_0x20ca56['pop'](),_0x20ca56[_0x20ca56['length']-0x1]++,_0x550e1d[_0x4b7caf]['nextPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56)):(_0x550e1d[_0x4b7caf]['previousPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56),_0x4dd9b9?_0x4dd9b9['_data']+=_0x550e1d[_0x4b7caf]['item']['data']:_0x4dd9b9=new wt(_0x550e1d[_0x4b7caf]['item']['data'],_0x550e1d[_0x4b7caf]['item']['getAttributes']()),_0x550e1d[_0x4b7caf+0x1]&&'text'===_0x550e1d[_0x4b7caf+0x1]['type']&&_0x7b432a(_0x4dd9b9,_0x550e1d[_0x4b7caf+0x1]['item'])||(_0x7914fb[0x0]['_appendChild'](_0x4dd9b9),_0x4dd9b9=null),_0x20ca56[_0x20ca56['length']-0x1]+=_0x550e1d[_0x4b7caf]['item']['offsetSize'],_0x550e1d[_0x4b7caf]['nextPosition']=_0x192e72['createPositionFromPath'](_0x3936aa,_0x20ca56));for(let _0x9ac6d0=0x0;_0x9ac6d0<_0x550e1d['length'];_0x9ac6d0++){const _0x11415b=_0x550e1d[_0x9ac6d0]['previousPosition'],_0xf7e7a2=_0x550e1d[_0x9ac6d0]['nextPosition'];for(const _0x65b0ed of _0x550e1d[_0x9ac6d0]['markersStart'])_0x303cbe['set'](_0x65b0ed,{'start':_0x11415b,'end':null});_0x3fbda4('isRemoveSuggestion',_0x9ac6d0,_0x11415b,_0xf7e7a2),_0x3fbda4('isAddSuggestion',_0x9ac6d0,_0x11415b,_0xf7e7a2),_0x3fbda4('isRemoved',_0x9ac6d0,_0x11415b,_0xf7e7a2),_0x3fbda4('isAdded',_0x9ac6d0,_0x11415b,_0xf7e7a2);for(const _0x4d01e0 of _0x550e1d[_0x9ac6d0]['markersEnd']){_0x303cbe['get'](_0x4d01e0)['end']=_0xf7e7a2;}}for(const [_0x77b4c7,_0x39b46a]of _0x303cbe){const _0xa94f29=this['editor']['model']['createRange'](_0x39b46a['start'],_0x39b46a['end']);_0x3936aa['markers']['set'](_0x77b4c7,_0xa94f29);}return _0x14bc43['sort']((_0xa612c7,_0x607b07)=>{const _0x252e6d=_0x3936aa['markers']['get']('revision:'+_0xa612c7['id']),_0x20bcee=_0x3936aa['markers']['get']('revision:'+_0x607b07['id']);return _0x252e6d['start']['isBefore'](_0x20bcee['start'])?-0x1:_0x252e6d['start']['isAfter'](_0x20bcee['start'])?0x1:_0x252e6d['end']['isBefore'](_0x20bcee['end'])?-0x1:_0x252e6d['end']['isAfter'](_0x20bcee['end'])?0x1:'add'===_0xa612c7['type']?-0x1:0x1;}),{'root':_0x3936aa,'changes':_0x14bc43};function _0x3fbda4(_0xef0283,_0x2d150a,_0x255e42,_0x403f03){const _0x52482c=!!_0x550e1d[_0x2d150a][_0xef0283],_0x293109=_0x52482c?_0x550e1d[_0x2d150a][_0xef0283]['userId']:null,_0x1b6622=_0x2d150a===_0x550e1d['length']-0x1,_0x35dbd4=_0x33cc6f[_0xef0283][0x0],_0x3d93c3=_0x146d6d['isObject'](_0x550e1d[_0x2d150a]['item']);!_0x4d1c1f[_0xef0283]&&_0x52482c?_0x4d1c1f[_0xef0283]={'start':_0x255e42,'tapeItem':_0x550e1d[_0x2d150a],'userId':_0x293109,'type':_0xef0283}:_0x4d1c1f[_0xef0283]&&!_0x52482c?(_0x4d1c1f[_0xef0283]['end']=_0x255e42,_0x5621ec(_0x4d1c1f[_0xef0283]),_0x4d1c1f[_0xef0283]=null):_0x4d1c1f[_0xef0283]&&_0x52482c&&_0x4d1c1f[_0xef0283]['userId']!==_0x293109&&(_0x4d1c1f[_0xef0283]['end']=_0x255e42,_0x35dbd4&&_0x35dbd4['userId']===_0x4d1c1f[_0xef0283]['userId']||_0x5621ec(_0x4d1c1f[_0xef0283]),_0x4d1c1f[_0xef0283]={'start':_0x255e42,'tapeItem':_0x550e1d[_0x2d150a],'userId':_0x293109,'type':_0xef0283}),_0x4d1c1f[_0xef0283]&&_0x3d93c3&&('elementStart'!==_0x550e1d[_0x2d150a]['type']||_0x35dbd4&&_0x35dbd4['userId']===_0x293109||_0x33cc6f[_0xef0283]['unshift']({'userId':_0x293109,'object':_0x550e1d[_0x2d150a]['item'],'change':_0x4d1c1f[_0xef0283]}),'elementEnd'===_0x550e1d[_0x2d150a]['type']&&_0x35dbd4&&_0x35dbd4['object']===_0x550e1d[_0x2d150a]['item']&&(_0x33cc6f[_0xef0283]['shift'](),_0x4d1c1f[_0xef0283]=_0x35dbd4['change'])),_0x4d1c1f[_0xef0283]&&_0x1b6622&&(_0x4d1c1f[_0xef0283]['end']=_0x403f03,_0x5621ec(_0x4d1c1f[_0xef0283]),_0x4d1c1f[_0xef0283]=null);}function _0x5621ec({start:_0x15c40b,end:_0x3b3cb2,tapeItem:_0x1ee160,userId:_0x36f0d2,type:_0x3f74ff}){const _0x74116=_0x1ee160['item'],_0x5971e8=_0x192e72['schema']['isBlock'](_0x74116)&&!_0x192e72['schema']['isLimit'](_0x74116),_0x43355b=_0x15c40b['nodeAfter']==_0x3b3cb2['parent']&&_0x3b3cb2['isAtStart'];if(_0x5971e8&&_0x43355b)return;const _0x104dfd=_0x192e72['createRange'](_0x15c40b,_0x3b3cb2),_0x36fc49=_0x3b747b['get'](_0x36f0d2),_0x2e3f5c=new r({'author':_0x36fc49,'type':'isAdded'==_0x3f74ff||'isAddSuggestion'==_0x3f74ff?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3f74ff||'isRemoveSuggestion'==_0x3f74ff},'createdAt':new Date(),'rootName':_0x3e9b43});_0x14bc43['push'](_0x2e3f5c),_0x3936aa['markers']['set']('revision:'+_0x2e3f5c['id'],_0x104dfd);}function _0x7b432a(_0x5cd131,_0xa006c0){const _0x456c42=_0x5cd131['getAttributes'](),_0x4dc50a=_0xa006c0['getAttributes']();for(const _0x37cf03 of _0x456c42){if(_0x37cf03[0x1]!==_0xa006c0['getAttribute'](_0x37cf03[0x0]))return!0x1;_0x4dc50a['next']();}return _0x4dc50a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5757e2=>{const _0x5691b7=_0x5757e2['markerName']['split'](':')[0x1],_0x41e94b=this['_getChangeFromId'](_0x5691b7);if(!_0x41e94b)return null;const _0x2459a9='add'==_0x41e94b['type']?'insertion':'deletion',_0x125a85=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2459a9];return _0x41e94b['data']['isSuggestion']&&_0x125a85['push']('ck-suggestion-marker-'+_0x2459a9+'-new'),this['activeChange']==_0x41e94b&&_0x125a85['push']('ck-suggestion-marker--active'),{'classes':_0x125a85,'attributes':{'data-change-id':_0x5691b7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2fed43=>{_0x2fed43['on']('element:pre',(_0x119d34,_0x59b7e4,_0x538b50)=>{const _0x22922a=_0x59b7e4['viewItem']['getChild'](0x0);if(!_0x22922a||!_0x22922a['is']('element','code'))return;if(!_0x538b50['consumable']['consume'](_0x22922a,{'attributes':['vid_start','vid_end']}))return;const _0x5a8fd5=_0x59b7e4['modelRange']['start']['nodeAfter'];_0x538b50['writer']['setAttribute']('vid_start',_0x22922a['getAttribute']('vid_start'),_0x5a8fd5),_0x538b50['writer']['setAttribute']('vid_end',_0x22922a['getAttribute']('vid_end'),_0x5a8fd5);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1322a9=>{_0x1322a9['on']('element',(_0x46d812,_0x5bab34,_0x44da3b)=>{if(!_0x44da3b['consumable']['consume'](_0x5bab34['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5bab34['modelRange']['isCollapsed'])return;const _0x2fc4f7=_0x5bab34['modelRange']['start']['nodeAfter'];_0x2fc4f7['hasAttribute']('vid_start')||_0x2fc4f7['hasAttribute']('vid')||(_0x44da3b['writer']['setAttribute']('vid_start',_0x5bab34['viewItem']['getAttribute']('vid_start'),_0x2fc4f7),_0x44da3b['writer']['setAttribute']('vid_end',_0x5bab34['viewItem']['getAttribute']('vid_end'),_0x2fc4f7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2da99f=>_0x2da99f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1690c4,[,_0x5a6296])=>{['vid_start','vid_end','vid']['includes'](_0x5a6296)&&(_0x1690c4['return']=!0x0,_0x1690c4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xdc0e58=>{_0xdc0e58['on']('attribute:vid',(_0x2d6031,_0x3839f1,_0xddf7ae)=>{if('\x20'!=_0x3839f1['item']['data']||_0x3839f1['item']['parent']['maxOffset']>0x1)return;if(!_0xddf7ae['consumable']['consume'](_0x3839f1['item'],_0x2d6031['name']))return;const _0x4ef274=_0xddf7ae['writer'],_0x3d1615=_0xddf7ae['mapper']['toViewRange'](_0x3839f1['range']);_0x4ef274['wrap'](_0x3d1615,_0x4ef274['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x42df7d){const _0x2bc1b5=_0x42df7d['plugins']['get']('RevisionViewer');return(_0x52cbff,_0x17a341,_0x749ac9)=>{const _0x4e8bf4=_0x17a341['markerName']['split'](':')[0x1],_0x5e3a2b=_0x2bc1b5['_getChangeFromId'](_0x4e8bf4);if(!_0x5e3a2b)return null;const _0x2b5838='add'==_0x5e3a2b['type']?'split':'merge';if(!_0x749ac9['consumable']['test'](_0x17a341['markerRange'],_0x52cbff['name']))return;const _0x236b9b=_0x17a341['markerRange']['getWalker'](),_0x17addf=_0x17a341['markerRange']['start'],_0x4f6c03=_0x42df7d['model']['schema'];let _0x149aba=null,_0x23fe6d=null,_0x2454ee=!0x1,_0x2f570a=!0x1;for(const _0xcd4fd9 of _0x236b9b){const _0x47e8bd=_0xcd4fd9['item'];_0x2454ee=_0x2454ee||_0x4f6c03['isContent'](_0x47e8bd);const _0x4098af=_0x749ac9['mapper']['toViewElement'](_0x47e8bd);if(_0x4098af&&_0x4098af['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xcd4fd9['type']&&(_0x4f6c03['isBlock'](_0x47e8bd)&&!_0x4f6c03['isLimit'](_0x47e8bd)&&(_0x47e8bd['nextSibling']||_0x17addf['isAtEnd']?_0x149aba&&_0x149aba['parent']==_0x47e8bd||(_0x149aba=_0x47e8bd,_0x4cbfe1(_0xcd4fd9['previousPosition']),_0x2f570a=!0x0):_0x23fe6d=_0x23fe6d||_0xcd4fd9['previousPosition']));}function _0x4cbfe1(_0x510d04){const _0x4ce6a6=_0x749ac9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b5838}),_0x22cf6e=_0x749ac9['mapper']['toViewPosition'](_0x510d04);_0x5e3a2b['data']['isSuggestion']&&_0x749ac9['writer']['addClass']('ck-suggestion-marker-'+_0x2b5838+'-new',_0x4ce6a6),_0x2bc1b5['activeChange']==_0x5e3a2b&&_0x749ac9['writer']['addClass']('ck-suggestion-marker--active',_0x4ce6a6),_0x749ac9['writer']['insert'](_0x22cf6e,_0x4ce6a6),_0x749ac9['mapper']['bindElementToMarker'](_0x4ce6a6,_0x17a341['markerName']);}_0x2454ee||_0x2f570a||!_0x23fe6d||_0x4cbfe1(_0x23fe6d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3ac5bb,_0x1ca056,_0x1aa225)=>{const _0xdfac69=_0x1aa225['mapper']['markerNameToElements'](_0x1ca056['markerName']);if(_0xdfac69){for(const _0x30f524 of _0xdfac69)(_0x30f524['hasClass']('ck-suggestion-marker-split')||_0x30f524['hasClass']('ck-suggestion-marker-merge'))&&(_0x1aa225['mapper']['unbindElementFromMarkerName'](_0x30f524,_0x1ca056['markerName']),_0x1aa225['writer']['remove'](_0x30f524));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x54b692,_0x5c0c48,_0x594cb0)=>{const _0x16c1ca=_0x5c0c48['markerName']['split'](':')[0x1],_0x49c180=this['_getChangeFromId'](_0x16c1ca);if(!_0x49c180)return null;const _0xdc30bf='add'==_0x49c180['type']?'split':'merge';if(_0x594cb0['consumable']['test'](_0x5c0c48['markerRange'],_0x54b692['name']))for(const _0x327038 of _0x5c0c48['markerRange']['getItems']()){if(!_0x327038['is']('element','softBreak'))continue;const _0x4cf9b7=_0x594cb0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xdc30bf}),_0x34970d=_0x594cb0['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x327038));_0x49c180['data']['isSuggestion']&&_0x594cb0['writer']['addClass']('ck-suggestion-marker-'+_0xdc30bf+'-new',_0x4cf9b7),this['activeChange']==_0x49c180&&_0x594cb0['writer']['addClass']('ck-suggestion-marker--active',_0x4cf9b7),_0x594cb0['writer']['insert'](_0x34970d,_0x4cf9b7),_0x594cb0['mapper']['bindElementToMarker'](_0x4cf9b7,_0x5c0c48['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x459ebe=>{for(const _0x40ae8b of this['editor']['model']['document']['getRootNames']()){const _0x5ad50d=this['editor']['model']['document']['getRoot'](_0x40ae8b),_0x1c39f7=this['editor']['editing']['view']['document']['getRoot'](_0x40ae8b);if(_0x1c39f7){const _0x3ea571=_0x5ad50d['getAttribute']('revisionHistoryAttachChange');if(_0x459ebe['removeAttribute']('data-change-id',_0x1c39f7),_0x459ebe['removeClass']('ck-revision-history-root-add',_0x1c39f7),_0x459ebe['removeClass']('ck-revision-history-root-remove',_0x1c39f7),_0x459ebe['removeClass']('ck-revision-history-root--active',_0x1c39f7),_0x3ea571){const _0x2a3d99=this['_getChangeFromId'](_0x3ea571);if(!_0x2a3d99)return null;_0x459ebe['setAttribute']('data-change-id',_0x3ea571,_0x1c39f7),_0x459ebe['addClass']('ck-revision-history-root-'+_0x2a3d99['type'],_0x1c39f7),this['activeChange']==_0x2a3d99&&_0x459ebe['addClass']('ck-revision-history-root--active',_0x1c39f7);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x22540=>'revision-comment:'+_0x22540,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x6112aa=>'revision-suggestion:'+_0x6112aa,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x88ce9f=>({'name':'suggestion:'+_0x88ce9f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4354a6=>{const _0x32ee3d=_0x4354a6['markerName']['split'](':')[0x1];return'insertion'!=_0x32ee3d&&'deletion'!=_0x32ee3d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x32ee3d]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3653a6,_0x7fd040,_0x1f9a63)=>{const _0xd8b0d7=_0x1f9a63['mapper']['markerNameToElements'](_0x7fd040['markerName']);if(_0xd8b0d7){for(const _0x37a11f of _0xd8b0d7)_0x37a11f['is']('uiElement')&&(_0x1f9a63['mapper']['unbindElementFromMarkerName'](_0x37a11f,_0x7fd040['markerName']),_0x1f9a63['writer']['remove'](_0x37a11f));}},{'priority':'high'});}['_getChangeFromId'](_0x1ef28e){return this['_changeIdToChange']['get'](_0x1ef28e);}['_getViewForChange'](_0x505c05){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x505c05),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x58ce0c,_0x1918ed,_0x7cd77a,_0x5862f4)=>{_0x5862f4&&this['_balloon']['remove'](_0x5862f4),_0x7cd77a&&(this['_balloon']['add']({'view':_0x7cd77a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1f36e1=this['editor']['editing'],_0x1293d6=this['_getChangeFromId'](_0x7cd77a['changeId']);let _0x498885;if(_0x1293d6['data']['isOnRoot']){const _0x4860f1=_0x1f36e1['view']['getDomRoot'](_0x1293d6['rootName']);_0x498885=Array['from'](_0x4860f1['getClientRects']());}else{const _0x50b589=this['editor']['model']['markers']['get']('revision:'+_0x7cd77a['changeId']);_0x498885=Array['from'](_0x1f36e1['mapper']['markerNameToElements'](_0x50b589['name']))['map'](_0x2a8c90=>_0x1f36e1['view']['domConverter']['mapViewToDom'](_0x2a8c90))['map'](_0x26f4fa=>Array['from'](_0x26f4fa['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x498885[0x0];return _0x498885['find'](_0x21ee02=>_0x21ee02['top']-0x3<=this['_activeViewTarget']['y']&&_0x21ee02['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x21ee02['left']-0x3<=this['_activeViewTarget']['x']&&_0x21ee02['right']+0x3>=this['_activeViewTarget']['x'])||_0x498885[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1fc46d,_0x32f710,_0x261058,_0x52f1bd)=>{this['activeView']=_0x261058?this['_getViewForChange'](_0x261058):null,this['editor']['model']['change'](()=>{const _0x4dcbe9=this['editor']['editing'];_0x52f1bd&&(_0x52f1bd['data']['isOnRoot']?_0x4dcbe9['view']['change'](_0x10bd06=>{_0x10bd06['removeClass']('ck-revision-history-root--active',_0x4dcbe9['view']['document']['getRoot'](_0x52f1bd['rootName']));}):_0x4dcbe9['reconvertMarker']('revision:'+_0x52f1bd['id'])),_0x261058&&(_0x261058['data']['isOnRoot']?_0x4dcbe9['view']['change'](_0x39ad0a=>{_0x39ad0a['addClass']('ck-revision-history-root--active',_0x4dcbe9['view']['document']['getRoot'](_0x261058['rootName']));}):_0x4dcbe9['reconvertMarker']('revision:'+_0x261058['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x306b37,_0x44e3d0)=>{if(this['activeChange'])return;const _0x37eee8=this['_findChangeIdFromDomTarget'](_0x44e3d0['target']),_0x5af8b9=this['_changeIdToChange']['get'](_0x37eee8);_0x5af8b9?(this['_activeViewTarget']={'x':_0x44e3d0['domEvent']['x'],'y':_0x44e3d0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5af8b9)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x456d89,_0x49c867)=>{const _0x2aa88e=this['_findChangeIdFromDomTarget'](_0x49c867['target']),_0x2b8e18=this['_changeIdToChange']['get'](_0x2aa88e);_0x2b8e18?(this['_activeViewTarget']={'x':_0x49c867['domEvent']['x'],'y':_0x49c867['domEvent']['y']},_0x2b8e18===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2b8e18):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x55c18a){do{const _0x1e70fc=_0x55c18a['getAttribute']('data-change-id');if(_0x1e70fc)return _0x1e70fc;_0x55c18a=_0x55c18a['parent'];}while(_0x55c18a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1b48fa=>{for(const _0x11fbc3 of this['editor']['model']['markers'])_0x1b48fa['removeMarker'](_0x11fbc3);});}}function tt(_0x445094,_0xf2bb4e){return(_0xc5e3e1,_0x3dd82d,_0x370bf)=>{if(!_0x370bf['consumable']['test'](_0x3dd82d['markerRange'],_0xc5e3e1['name']))return;const _0x1af365=_0x3dd82d['markerRange']['getWalker'](),_0x5ad4b3=_0x3dd82d['markerRange']['start'],_0x1b0953=_0x445094['model']['schema'];let _0x1f8bab=null,_0x2a7c75=null,_0x3293a2=!0x1,_0xedc050=!0x1;for(const _0x57459e of _0x1af365){const _0x4304ea=_0x57459e['item'];_0x3293a2=_0x3293a2||_0x1b0953['isContent'](_0x4304ea);const _0x9c1d5a=_0x370bf['mapper']['toViewElement'](_0x4304ea);if(_0x9c1d5a&&_0x9c1d5a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57459e['type']&&(_0x1b0953['isBlock'](_0x4304ea)&&!_0x1b0953['isLimit'](_0x4304ea)&&(_0x4304ea['nextSibling']||_0x5ad4b3['isAtEnd']?_0x1f8bab&&_0x1f8bab['parent']==_0x4304ea||(_0x1f8bab=_0x4304ea,_0x22e1eb(_0x57459e['previousPosition']),_0xedc050=!0x0):_0x2a7c75=_0x2a7c75||_0x57459e['previousPosition']));}function _0x22e1eb(_0x11292e){const _0x3221c4=_0x370bf['mapper']['toViewPosition'](_0x11292e),_0x451522=_0x370bf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xf2bb4e});_0x370bf['writer']['insert'](_0x3221c4,_0x451522),_0x370bf['mapper']['bindElementToMarker'](_0x451522,_0x3dd82d['markerName']);}_0x3293a2||_0xedc050||!_0x2a7c75||_0x22e1eb(_0x2a7c75);};}class _t extends _0x40d10f{constructor(_0x13f5e0){super(_0x13f5e0);const _0x222f2d=_0x13f5e0['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x222f2d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x222f2d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x125df0=this['editor'],_0x55e246=_0x125df0['plugins']['get'](d),_0x2e6af4=_0x55e246['isReady']?_0x55e246['diff']['newRevisionId']:null;_0x125df0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2e6af4);}['refresh'](){const {isReady:_0xde4682,isEnabled:_0x440194}=this['editor']['plugins']['get'](d);this['isEnabled']=_0xde4682&&_0x440194;}}class yt extends _0x40d10f{['_step'];constructor(_0x3d47f0,{direction:_0x2ce28f}){super(_0x3d47f0);const _0x3d2ee9=_0x3d47f0['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2ce28f?0x1:-0x1,this['listenTo'](_0x3d2ee9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3d2ee9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3d2ee9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x12ddfc=this['editor'],_0x2e3b09=_0x12ddfc['plugins']['get'](d),{isNavigationMode:_0x1c7c30,currentChangeNumber:_0xed1bae}=_0x2e3b09;let _0x575979;if(_0x2e3b09['activeChange']=_0x1c7c30?_0x2e3b09['diff']['changes']['get'](_0xed1bae+this['_step']):_0x2e3b09['diff']['changes']['first'],_0x2e3b09['activeChange']['data']['isOnRoot'])_0x575979=_0x12ddfc['editing']['view']['getDomRoot'](_0x2e3b09['activeChange']['rootName']);else{const _0x173576=_0x12ddfc['model']['markers']['get']('revision:'+_0x2e3b09['activeChange']['id']);_0x575979=_0x5bc5d2(_0x12ddfc['editing'],_0x173576);}_0x34df8d({'target':_0x575979,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4c5e8,currentChangeNumber:_0x33b2fb,numberOfChanges:_0x22dbe9,isReady:_0x29eff7,isEnabled:_0x3d6e05}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3d6e05&&_0x29eff7&&_0x22dbe9)&&(!_0x4c5e8||(0x1===this['_step']?_0x33b2fb<_0x22dbe9-0x1:_0x33b2fb>0x0));}}class oi extends ts{constructor(_0x141699){super(_0x141699);const _0x37881f=this['bindTemplate'],_0x59157b=new te(_0x141699),_0x1dcfb2=new te(_0x141699);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',(_0x454a35,_0x5c2db7)=>_0x454a35&&_0x5c2db7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1f8713,_0x129881,_0x2ee100,_0x588c96)=>{if(!_0x1f8713)return R(_0x141699,'Loading...');if(!_0x2ee100)return R(_0x141699,'No\x20changes');const _0x531f3c=R(_0x141699,'NUMBER_OF_CHANGES',_0x2ee100);return _0x588c96?R(_0x141699,'X_OF_Y_CHANGES',[_0x129881+0x1,_0x2ee100]):_0x531f3c;}),_0x59157b['set']({'label':R(_0x141699,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x1dcfb2['set']({'label':R(_0x141699,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x59157b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1dcfb2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x59157b['on']('execute',()=>this['fire']('execute','backward')),_0x1dcfb2['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',_0x37881f['if']('_isStatusLabelVisible','ck-hidden',_0x5101a9=>!_0x5101a9)]},'children':[{'text':_0x37881f['to']('isNavigationMode',_0xeff22c=>_0xeff22c?R(_0x141699,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x141699,'Total')+':\x20')}]},{'text':_0x37881f['to']('_statusText')}]},new _0x5baf40(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x59157b,_0x1dcfb2]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x9c73c6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x30b724=this['editor']['editing']['view'];_0x30b724['change'](_0x2b682d=>{for(const _0x538f27 of _0x30b724['document']['roots'])_0x2b682d['addClass'](le,_0x538f27);});}['hide'](){const _0x509f9c=this['editor']['editing']['view'];_0x509f9c['change'](_0x50a9de=>{for(const _0x373a2f of _0x509f9c['document']['roots'])_0x50a9de['removeClass'](le,_0x373a2f);});}}class m extends _0x9c73c6{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x52fc58=this['editor'],_0x2ffd8b=_0x52fc58['plugins']['get'](d),_0x576636=_0x52fc58['plugins']['get'](ge);_0x52fc58['ui']['componentFactory']['add']('exitToEditing',_0x3216c8=>{const _0x59c53e=new te(_0x3216c8);return _0x59c53e['set']({'label':R(_0x3216c8,'Back\x20to\x20editing'),'icon':_0x442c2a['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x59c53e,'execute',()=>{_0x52fc58['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x59c53e;}),_0x52fc58['ui']['componentFactory']['add']('restoreRevision',_0x1fb746=>{const _0x9c7e86=new te(_0x1fb746);return _0x9c7e86['set']({'label':R(_0x1fb746,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x9c7e86['bind']('isEnabled')['to'](_0x52fc58['commands']['get']('restoreRevision')),this['listenTo'](_0x9c7e86,'execute',()=>_0x52fc58['execute']('restoreRevision')),_0x9c7e86;}),_0x52fc58['ui']['componentFactory']['add']('changesNavigation',_0x3b7644=>{const _0x332960=new oi(_0x3b7644),_0x5c9e41=_0x52fc58['commands']['get']('showPreviousChange'),_0x50c9a1=_0x52fc58['commands']['get']('showNextChange');return _0x332960['bind']('isBackwardNavigationEnabled')['to'](_0x5c9e41,'isEnabled'),_0x332960['bind']('isForwardNavigationEnabled')['to'](_0x50c9a1,'isEnabled'),_0x332960['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2ffd8b),this['listenTo'](_0x332960,'execute',(_0x28dd66,_0x24d659)=>{_0x52fc58['execute']('forward'===_0x24d659?'showNextChange':'showPreviousChange');}),_0x332960;}),_0x576636['show'](),_0x2ffd8b['on']('change:isReady',(_0x295c9f,_0x71145b,_0x5ab6cf)=>{_0x5ab6cf?_0x576636['hide']():_0x576636['show']();});}}class pt extends _0x585659{['_resizeObserver']=null;constructor(_0x4660fe,_0x22570a){super(_0x4660fe,_0x22570a);const _0x1bd307=this['bindTemplate'];this['set']({'label':R(_0x4660fe,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4660fe,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1bd307['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 _0x311799=this['fieldView']['element'];this['_tooltipString']=_0x311799['scrollWidth']>_0x311799['clientWidth']&&_0x311799['value']||'';}}class hi extends ts{constructor(_0xd5233e,_0x196270,_0x129e60){super(_0xd5233e);const _0x2c292e=new _0x2d529d();_0x2c292e['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x1d37d7=['ck','ck-revision-history-sidebar__revision-author'];_0x129e60&&_0x1d37d7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x33f90c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0xd5233e,_0x129e60?'Revision\x20creator':'Revision\x20author')},'children':[_0x2c292e,_0x196270['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1d37d7},'children':_0x33f90c});}}function _i(_0x4909c4,_0x4e13db){const _0x5cb5a1=_0x4909c4['bindTemplate'],_0x2ab530=_0x4909c4['locale'],_0x28ba69=_0x4832b0(_0x2ab530);_0x28ba69['panelPosition']='sw';const _0x5bf6a5=function(_0x15cae8,_0x4228dd){const _0x4ef20e=function(_0x5b5dfb,_0x4eb330){const _0x450735=_0x5b5dfb['locale'],_0x423e3a={'Compare\x20against\x20selected':R(_0x450735,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x450735,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x450735,'Restore\x20this\x20revision')};return _0x4eb330['map'](_0x49ccca=>{const _0x3b3b79=_0x423e3a[_0x49ccca['name']];return _0x3b3b79&&_0x3b3b79!==_0x49ccca['name']&&(_0x49ccca['name']=_0x3b3b79),_0x49ccca;});}(_0x15cae8,_0x4228dd),_0x4a2a37=new _0x50d8e8();for(const _0x402285 of _0x4ef20e){const _0x15ac22={'type':'button','model':new _0x4bcfc1({'label':_0x402285['name'],'class':_0x402285['class'],'withText':!0x0,'role':'menuitem','_action':_0x402285['action']})};_0x15ac22['model']['bind']('isEnabled')['to'](_0x15cae8,'isActionsDropdownOpen',_0x3cd949=>'function'!=typeof _0x402285['isEnabled']||(!_0x3cd949||_0x402285['isEnabled'](_0x15cae8))),_0x4a2a37['add'](_0x15ac22);}return _0x4a2a37;}(_0x4909c4,_0x4e13db);return _0x4909c4['bind']('isActionsDropdownOpen')['to'](_0x28ba69,'isOpen'),_0x28ba69['buttonView']['set']({'label':R(_0x2ab530,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x442c2a['threeVerticalDots']}),_0x28ba69['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5cb5a1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5cb5a1['to'](_0x16bb36=>_0x16bb36['stopPropagation']())}}),_0x28ba69['on']('execute',_0x36b39d=>{_0x4909c4['isReady']&&'function'==typeof _0x36b39d['source']['_action']&&_0x36b39d['source']['_action'](_0x4909c4);}),to(_0x28ba69,_0x5bf6a5,{'role':'menu'}),_0x28ba69['listenTo'](_0x4909c4,'change:isActionsDropdownOpen',(_0x1fe4c7,_0x1c2b05,_0x5ec706)=>{if(_0x5ec706)for(const _0x3d6e4e of _0x28ba69['listView']['items']){const _0x18529c=_0x3d6e4e['children']['first'],_0x4b5536=_0x4e13db['find'](_0x1d7bf2=>_0x1d7bf2['action']===_0x18529c['_action'])['isVisible'];_0x3d6e4e['isVisible']=void 0x0===_0x4b5536||_0x4b5536(_0x4909c4);}}),_0x28ba69;}class si extends/* #__PURE__ -- @preserve */
26
+ _0x4d6962(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2604af,_0x312724,_0x2718de,_0x579298){super(_0x2604af);const _0x2e3337=this['bindTemplate'],_0x12d0b4=function(_0x11a1b2,_0x28c81d){const _0x16840e=Array['from'](_0x28c81d['authors'])['filter'](_0x450401=>_0x450401!=_0x28c81d['creator']);return _0x28c81d['creator']&&_0x16840e['unshift'](_0x28c81d['creator']),_0x16840e['map'](_0x13faa4=>new hi(_0x11a1b2,_0x13faa4,_0x13faa4==_0x28c81d['creator']));}(_0x2604af,_0x312724);this['id']=_0x312724['id'],this['_revision']=_0x312724,this['_requireRevisionName']=_0x579298,this['bind']('name','createdAt')['to'](_0x312724),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xb8ebb0=>{return _0x17c760=_0x2604af['uiLanguage'],(_0x5b3f0d=_0xb8ebb0)['toLocaleDateString'](_0x17c760,{'month':'long','day':'numeric'})+',\x20'+_0x5b3f0d['toLocaleTimeString'](_0x17c760,{'hour':'numeric','minute':'numeric'});var _0x17c760,_0x5b3f0d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2604af,_0x42bc0a),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4533b1=>_0x4533b1||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1a1ccd,_0x5ce6a5)=>_0x1a1ccd&&_0x5ce6a5),this['revisionActionsView']=_0x2718de&&_0x2718de['length']?_i(this,_0x2718de):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2e3337['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2e3337['if']('isEnabled','ck-disabled',_0x3c06ea=>!_0x3c06ea),_0x2e3337['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2e3337['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2e3337['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':_0x2e3337['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':_0x12d0b4}]},this['revisionActionsView']],'on':{'click':_0x2e3337['to'](_0x1e2843=>{_0x1e2843['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4fab74=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4fab74,'change',()=>{this['_requireRevisionName']&&!_0x4fab74['value']||this['fire']('setName',{'id':this['id'],'name':_0x4fab74['value']}),_0x4fab74['value']||(_0x4fab74['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x4e04c7,_0x50f9a8){const _0x57f8dd=_0x23c007['fromJSDate'](_0x4e04c7)['setLocale'](_0x50f9a8),_0x4a777a=_0x23c007['local'](),_0x20a6ae=_0x4a777a['minus']({'days':0x1})['startOf']('day');let _0x4dde8d,_0x38c5bd;return _0x57f8dd['hasSame'](_0x4a777a,'day')?(_0x4dde8d=_0x57f8dd['startOf']('day')['toJSDate'](),_0x38c5bd=_0x57f8dd['toRelativeCalendar']()):_0x57f8dd['hasSame'](_0x20a6ae,'day')?(_0x4dde8d=_0x20a6ae['toJSDate'](),_0x38c5bd=_0x57f8dd['toRelativeCalendar']()):_0x57f8dd['hasSame'](_0x4a777a,'week')?(_0x4dde8d=_0x57f8dd['startOf']('week')['toJSDate'](),_0x38c5bd=_0x57f8dd['weekdayLong']||''):_0x57f8dd['hasSame'](_0x4a777a,'year')?(_0x4dde8d=_0x57f8dd['startOf']('month')['toJSDate'](),_0x38c5bd=_0x57f8dd['monthLong']||''):(_0x4dde8d=_0x57f8dd['startOf']('year')['toJSDate'](),_0x38c5bd=String(_0x57f8dd['year'])),{'startDate':_0x4dde8d,'localizedPeriodName':_0x38c5bd};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5e272a,_0x47f7ad,_0x33270c,_0x1b099b){super(_0x5e272a);const _0x52f41b=ti(_0x47f7ad,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x47f7ad,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x33270c,this['_requireRevisionName']=_0x1b099b,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':_0x52f41b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x318160){const _0xae84a7=new si(this['locale'],_0x318160,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xae84a7);}['removeRevision'](_0x2d6df1){const _0x1e1da6=this['revisionViews']['find'](_0xa1420b=>_0xa1420b['id']===_0x2d6df1['id']);this['revisionViews']['remove'](_0x1e1da6);}}class cs extends ts{constructor(_0x490ad3){super(_0x490ad3);const _0x3f436f=new _0x2d529d();_0x3f436f['content']=_0x442c2a['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3f436f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x490ad3,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2955a9,_0x43903e,_0x193f4f,_0x3c5979){super(_0x2955a9);const _0x542d56=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x43903e,this['_revisionActions']=_0x193f4f,this['_requireRevisionName']=_0x3c5979,this['on']('select',(_0x590907,_0x5d2a8e)=>{this['fire']('revisionSelected',_0x5d2a8e);}),this['on']('setName',(_0x90d52c,_0x57dc5e)=>{this['fire']('revisionSetName',_0x57dc5e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x2955a9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x542d56['if']('isEnabled','ck-disabled',_0x2cce7f=>!_0x2cce7f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x53d631 of this['_revisions'])this['_addRevision'](_0x53d631);this['_revisions']['on']('add',(_0x3669c9,_0x25a3f1)=>{this['_addRevision'](_0x25a3f1);}),this['_revisions']['on']('remove',(_0x32c5f4,_0x201ced)=>{this['_removeRevision'](_0x201ced);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x456467=>_0x456467['revisionViews']['map'](_0x47124d=>_0x47124d))['flat']();}['selectRevision'](_0xf05414){for(const _0x57d757 of this['revisionViews'])_0xf05414&&_0xf05414['id']===_0x57d757['id']?_0x57d757['select']():_0x57d757['deselect']();}['highlightRevisions'](_0x293889){for(const _0x3402b3 of this['revisionViews'])_0x293889['some'](({id:_0x53e24c})=>_0x53e24c===_0x3402b3['id'])?_0x3402b3['highlight']():_0x3402b3['unhighlight']();}['_addRevision'](_0x2825a0){const _0x471700=ti(_0x2825a0['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4373e3=this['timePeriodViews']['get'](0x0);_0x4373e3&&_0x4373e3['startDate']['getTime']()===_0x471700['getTime']()||(_0x4373e3=new ei(this['locale'],_0x471700,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4373e3)),_0x4373e3['addRevision'](_0x2825a0);}['_removeRevision'](_0x3d4536){const _0x16ef3a=ti(_0x3d4536['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x16ef3a)['removeRevision'](_0x3d4536);}['_getTimePeriodViewByStartDate'](_0x44cdc1){return this['timePeriodViews']['find'](_0x2201ac=>_0x2201ac['startDate']['getTime']()===_0x44cdc1['getTime']());}}class g extends _0x9c73c6{['_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(_0x1c9e84){super(_0x1c9e84),this['_revisionViewer']=_0x1c9e84['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x17030b=this['_revisionsRepository']['_revisions'],_0x5e5a90=this['_createRevisionActions'](),_0x80bab0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x17030b,_0x5e5a90,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',(_0xb2aa33,_0x28fa69)=>{_0x28fa69['revisionViews']['on']('add',(_0x556cde,_0x4c3f24)=>{_0x4c3f24['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)),_0x80bab0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x283922=this['_revisionsRepository']['getRevision'](0x0);if(_0x283922){const _0x24f63c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x283922['id']);this['_revisionViewer']['compare'](_0x283922,_0x24f63c);}}['_handleRevisionSelected'](_0x471fcf,_0xfa79e4){const _0x359969=this['_revisionsRepository']['getRevision'](_0xfa79e4['id']),_0x565a73=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x359969['id']);this['_revisionViewer']['compare'](_0x359969,_0x565a73);}['_handleRevisionSetName'](_0x292662,_0x24c3c0){this['_revisionsRepository']['getRevision'](_0x24c3c0['id'])['setName'](_0x24c3c0['name']);}['_handleDiffChange'](_0x22a8cc,_0x8da1e9,_0x102587){const _0x37d7be=this['_revisionsRepository']['getRevisionsInDiff'](_0x102587);_0x37d7be['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x37d7be),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x37d7be[0x0]));}['_createRevisionActions'](){const _0x25c940=this['editor'],_0x5c2a98=g['availableRevisionActions'],_0x46c4f7=_0x25c940['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x46c4f7['length'])return _0x46c4f7['map'](_0x40e8f0=>{const _0x1e23b3='string'==typeof _0x40e8f0?Object['assign']({},_0x5c2a98[_0x40e8f0]):_0x40e8f0;return _0x1e23b3['action']=_0x1e23b3['action']['bind'](this,_0x25c940),_0x1e23b3['isVisible']&&(_0x1e23b3['isVisible']=_0x1e23b3['isVisible']['bind'](this,_0x25c940)),_0x1e23b3;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3df00d},_0x20d401)=>{const _0xcb6355=_0x3df00d['get'](d),_0xbe7cdf=_0xcb6355['repository'];let _0x5cc3ac=_0xcb6355['diff']['newRevisionId'],_0x28b596=_0x20d401['id'];_0xbe7cdf['getIndex'](_0x5cc3ac)>_0xbe7cdf['getIndex'](_0x28b596)&&([_0x5cc3ac,_0x28b596]=[_0x28b596,_0x5cc3ac]),_0xcb6355['compare'](_0x5cc3ac,_0x28b596);},'isVisible':({plugins:_0x1769a3},_0xab489)=>{const _0x1818c9=_0x1769a3['get'](d);return!(_0x1818c9['repository']['getRevisionsInDiff'](_0x1818c9['diff'])['length']>0x2)&&!_0xab489['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x496b14,{id:_0x9c15cf})=>{_0x496b14['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x9c15cf);},'isVisible':({plugins:_0x44fdb6},_0x122ecf)=>!!_0x44fdb6['get'](d)['repository']['getLaterVisibleRevision'](_0x122ecf['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xc60e10},{id:_0x320286,revisionNameView:_0x50e620})=>{const _0x57a0d1=_0xc60e10['get'](d),_0x37367a=_0x57a0d1['repository']['getEarlierVisibleRevision'](_0x320286);_0x57a0d1['compare'](_0x320286,_0x37367a),_0x50e620['focus'](),_0x50e620['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3737ea,_0x457eb4){super(_0x3737ea),this['_view']=_0x457eb4,this['_toolbarConfig']=ht(_0x3737ea['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x200c14){const _0x992019=this['editor'],_0x14baea=this['view'],_0x345367=_0x992019['editing']['view'],_0x1d5dce=_0x14baea['editable'],_0x512ccd=_0x345367['document']['getRoot']();_0x1d5dce['name']=_0x512ccd['rootName'],_0x14baea['render']();const _0x540034=_0x1d5dce['element'];this['setEditableElement'](_0x1d5dce['name'],_0x540034),_0x14baea['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x345367['attachDomRoot'](_0x540034),this['_elementReplacer']['replace'](_0x200c14,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2c3abd=this['view'],_0x2d38ec=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2d38ec['detachDomRoot'](_0x2c3abd['editable']['name']),_0x2c3abd['destroy']();}['_initToolbar'](){const _0x5ea20f=this['view'];_0x5ea20f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5ea20f['stickyPanel']['limiterElement']=_0x5ea20f['element'],_0x5ea20f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x672bb})=>_0x672bb),_0x5ea20f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5ea20f['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x15a0ca,_0x53f8d5,_0x153a71={}){super(_0x15a0ca),this['stickyPanel']=new lt(_0x15a0ca),this['toolbar']=new nt(_0x15a0ca,{'shouldGroupWhenFull':_0x153a71['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x15a0ca,_0x53f8d5);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x14f9a2,_0x1da954){super(_0x1da954),this['sourceElement']=_0x14f9a2,this['model']['document']['createRoot']();const _0x3820d9=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x3820d9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x536f62,_0x44d9ec){const _0x309a33=new this(_0x536f62,_0x44d9ec);return await _0x309a33['initPlugins'](),await _0x309a33['ui']['init'](_0x536f62),await _0x309a33['data']['init'](_0x309a33['config']['get']('initialData')||''),_0x309a33['fire']('ready'),_0x309a33;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x39b81a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e806d){function _0x24bb69(_0x5b9793){return _0x5b9793['map'](_0x55fe54=>String['fromCharCode'](_0x55fe54))['join']('');}super(_0x1e806d),this['result']='end',_0x1e806d[_0x24bb69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24bb69([0x76,0x69,0x65,0x77])][_0x24bb69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24bb69([0x61,0x75,0x74,0x6f]),_0x1e806d[_0x24bb69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x24bb69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24bb69([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x24bb69([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x24bb69([0x6f,0x6b])});}}class H extends _0x39b81a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5efd0b){if(super(_0x5efd0b),!this['editor']['config']['get']('revisionHistory'))throw new _0x3ed888('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x32c269=>this['_showRevisionViewer']({..._0x32c269,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x25e40c=>this['_closeRevisionViewer'](_0x25e40c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x423f0d=>this['_restoreRevision'](_0x423f0d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xe38c8c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xe38c8c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x89fa29){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x89fa29);}['getRevision'](_0x8ba865){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x8ba865);}['getRevisions'](_0x2a8786){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2a8786||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x118cbf=this['editor'],_0x2c9ed0=_0x6935f0(_0x118cbf,p),_0x39f633=_0x118cbf['plugins']['get']('RevisionTracker'),_0x260e48=_0x118cbf['plugins']['get']('Users')['users'];return _0x2c9ed0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2c9ed0['lazyRoots'],(_0x2c9ed0['plugins']['push'](k,d,m,class extends _0x39b81a{static get['requires'](){return[d,'Users'];}['init'](){const _0x3c852f=this['editor']['plugins']['get']('Users');for(const _0x311f2d of _0x260e48)_0x311f2d['isAnonymous']||_0x3c852f['getUser'](_0x311f2d['id'])||_0x3c852f['addUser'](_0x311f2d);const _0x10f66c=_0x39f633['repository']['getRevisions']();let _0xe9c31a=null;const _0x4219e1=this['editor']['plugins']['get']('RevisionViewer');_0x4219e1['adapter']=_0x39f633['adapter'],_0x4219e1['bind']('isEnabled')['to'](_0x39f633),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x118cbf,'isReadOnly',_0x37f069=>!_0x37f069);for(const _0x3aa848 of _0x10f66c){const _0x464d7a=null===_0x3aa848['creator'];if(_0x464d7a&&_0x3aa848['toVersion']===_0x3aa848['fromVersion'])continue;const _0x2fb5e6=_0x3aa848['toJSON']();_0x4219e1['addRevisionData'](_0x2fb5e6,(_0xa8c82d,_0x33152a,_0x55b063)=>{if(_0x464d7a){if(_0xe9c31a)_0xe9c31a['_update'](_0xa8c82d,_0x33152a);else{if(!_0x33152a){const _0x266870=_0x55b063['toJSON']();_0x266870['id']=_0x4834e8(),_0x39f633['saveRevision'](_0x266870,_0x55b063['toVersion'])['then'](_0x5486ab=>{_0xe9c31a=_0x5486ab;});}}}else _0x3aa848['_update'](_0xa8c82d,_0x33152a);});}}},g),_0x2c9ed0);}['_enhanceShowRevisionViewerCallback'](){const _0x33d456=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x26637a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x41670d=this['editor']['plugins']['get']('Autosave');await _0x41670d['save']();}else await _0x26637a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1bce9f=this['editor']['plugins']['get']('Dialog');_0x1bce9f['isOpen']&&_0x1bce9f['hide']();}const _0x3af338=this['_getRevisionViewerEditorConfig']();return _0x33d456(_0x3af338)['then'](_0x1ed250=>{return(this['_viewerEditor']=_0x1ed250,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1ed250;})['catch'](_0x40b4f7=>(console['error'](_0x40b4f7),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x50016b=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'](),_0x50016b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x403109=this['editor']['plugins']['get']('Annotations');_0x403109['refreshVisibility'](),_0x403109['refreshPositioning']();}})));}['_showRevisionViewer'](_0x7a89c7){const _0x535379=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x404179=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xf27a89=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0xf27a89,_0x7a89c7)['then'](_0x15781f=>(_0x404179['style']['display']='block',_0x535379['style']['display']='none',_0x15781f));}['_closeRevisionViewer'](_0x2f764d){const _0x2829a9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2829a9['style']['display']='',_0x2f764d['destroy']();}async['_restoreRevision'](_0x5eceba){const _0x28d2eb=this['editor'],_0x157648=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x53b55c=_0x28d2eb['plugins']['get']('RevisionTracker'),_0x598d7b=_0x157648['repository']['getRevision'](_0x5eceba);let _0x554384,_0x44c905,_0x4d6dda;try{_0x554384=await _0x157648['getRevisionData'](_0x598d7b),_0x44c905=await _0x157648['getRevisionRootsAttributes'](_0x598d7b);}catch(_0x4a6576){return void console['error'](_0x4a6576);}_0x28d2eb['model']['change'](_0x158368=>{for(const _0x5878a4 of Array['from'](_0x28d2eb['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x158368['removeMarker'](_0x5878a4);}),_0x157648['isReady']=!0x1,_0x28d2eb['model']['enqueueChange'](_0x49c5c5=>{_0x49c5c5['setSelection'](null),_0x49c5c5['removeSelectionAttribute'](_0x28d2eb['model']['document']['selection']['getAttributeKeys']());const _0x5aadd9=Object['keys'](_0x554384);for(const _0x558587 of _0x28d2eb['model']['document']['roots'])'$graveyard'!=_0x558587['rootName']&&_0x558587['isAttached']()&&!_0x5aadd9['includes'](_0x558587['rootName'])&&_0x49c5c5['detachRoot'](_0x558587);for(const _0x530478 of _0x5aadd9){let _0x8afdf6=_0x28d2eb['model']['document']['getRoot'](_0x530478);_0x8afdf6&&_0x8afdf6['isAttached']()||(_0x8afdf6=_0x49c5c5['addRoot'](_0x530478));const _0x5b7c96=_0x44c905[_0x530478],_0x5c0c80=Object['keys'](_0x5b7c96),_0x45d7b6=_0x554384[_0x530478];for(const _0x5987bd of _0x8afdf6['getAttributeKeys']())_0x5c0c80['includes'](_0x5987bd)||_0x49c5c5['removeAttribute'](_0x5987bd,_0x8afdf6);for(const _0x423063 of _0x5c0c80)_0x49c5c5['setAttribute'](_0x423063,_0x44c905[_0x530478][_0x423063],_0x8afdf6);_0x49c5c5['remove'](_0x49c5c5['createRangeIn'](_0x8afdf6)),_0x49c5c5['insert'](_0x28d2eb['data']['parse'](_0x45d7b6,_0x8afdf6),_0x8afdf6,0x0);}});const _0x574e8c=R(_0x28d2eb['locale'],'Restored');if(_0x598d7b['name'])_0x4d6dda=-0x1==_0x598d7b['name']['indexOf'](_0x574e8c)?_0x574e8c+':\x20'+_0x598d7b['name']:_0x598d7b['name'];else _0x4d6dda=_0x574e8c+':\x20'+(_0x598d7b['createdAt']['toLocaleDateString'](_0x28d2eb['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x598d7b['createdAt']['toLocaleTimeString'](_0x28d2eb['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x53b55c['saveRevision']({'name':_0x4d6dda}),_0x157648['isReady']=!0x0,_0x28d2eb['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x2fcdaa){super(_0x2fcdaa),this['_revisionViewer']=_0x2fcdaa['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x376291=this['_revisionsRepository']['_revisions'],_0xc78f64=this['_createRevisionActions'](),_0x240671=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x376291,_0xc78f64,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',(_0x27134,_0x4957c8)=>{_0x4957c8['revisionViews']['on']('add',(_0x2aaacc,_0x58e979)=>{_0x58e979['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)),_0x240671['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x36e419=this['_revisionsRepository']['getRevision'](0x0);if(_0x36e419){const _0x5846a5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x36e419['id']);this['_revisionViewer']['compare'](_0x36e419,_0x5846a5);}}['_handleRevisionSelected'](_0x239c2f,_0x48d2f6){const _0x594eb2=this['_revisionsRepository']['getRevision'](_0x48d2f6['id']),_0x1f2b9f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x594eb2['id']);this['_revisionViewer']['compare'](_0x594eb2,_0x1f2b9f);}['_handleRevisionSetName'](_0x3891c4,_0x5a928a){this['_revisionsRepository']['getRevision'](_0x5a928a['id'])['setName'](_0x5a928a['name']);}['_handleDiffChange'](_0x17bb6c,_0x4e5b1e,_0x17ba3c){const _0x2f57c=this['_revisionsRepository']['getRevisionsInDiff'](_0x17ba3c);_0x2f57c['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2f57c),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2f57c[0x0]));}['_createRevisionActions'](){const _0x521b94=this['editor'],_0x1a16ee=g['availableRevisionActions'],_0x6df496=_0x521b94['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x6df496['length'])return _0x6df496['map'](_0xb59284=>{const _0x247ef0='string'==typeof _0xb59284?Object['assign']({},_0x1a16ee[_0xb59284]):_0xb59284;return _0x247ef0['action']=_0x247ef0['action']['bind'](this,_0x521b94),_0x247ef0['isVisible']&&(_0x247ef0['isVisible']=_0x247ef0['isVisible']['bind'](this,_0x521b94)),_0x247ef0;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x423698},_0x519131)=>{const _0x578ff3=_0x423698['get'](d),_0x357c0b=_0x578ff3['repository'];let _0xb4b42c=_0x578ff3['diff']['newRevisionId'],_0x526c9d=_0x519131['id'];_0x357c0b['getIndex'](_0xb4b42c)>_0x357c0b['getIndex'](_0x526c9d)&&([_0xb4b42c,_0x526c9d]=[_0x526c9d,_0xb4b42c]),_0x578ff3['compare'](_0xb4b42c,_0x526c9d);},'isVisible':({plugins:_0x2cd6bc},_0x25d68e)=>{const _0x4fada6=_0x2cd6bc['get'](d);return!(_0x4fada6['repository']['getRevisionsInDiff'](_0x4fada6['diff'])['length']>0x2)&&!_0x25d68e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x16ec01,{id:_0x521be9})=>{_0x16ec01['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x521be9);},'isVisible':({plugins:_0x3c6530},_0x37a510)=>!!_0x3c6530['get'](d)['repository']['getLaterVisibleRevision'](_0x37a510['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5725e2},{id:_0x1e7214,revisionNameView:_0x20afe8})=>{const _0x2ae1b8=_0x5725e2['get'](d),_0x16c56c=_0x2ae1b8['repository']['getEarlierVisibleRevision'](_0x1e7214);_0x2ae1b8['compare'](_0x1e7214,_0x16c56c),_0x20afe8['focus'](),_0x20afe8['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4a6a70,_0x38e603){super(_0x4a6a70),this['_view']=_0x38e603,this['_toolbarConfig']=ht(_0x4a6a70['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x2104b3){const _0x443c42=this['editor'],_0x5b0246=this['view'],_0x68c0cd=_0x443c42['editing']['view'],_0x4a6a5a=_0x5b0246['editable'],_0x4ecfb1=_0x68c0cd['document']['getRoot']();_0x4a6a5a['name']=_0x4ecfb1['rootName'],_0x5b0246['render']();const _0x3611c3=_0x4a6a5a['element'];this['setEditableElement'](_0x4a6a5a['name'],_0x3611c3),_0x5b0246['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x68c0cd['attachDomRoot'](_0x3611c3),this['_elementReplacer']['replace'](_0x2104b3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x351c23=this['view'],_0x3ea7f4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3ea7f4['detachDomRoot'](_0x351c23['editable']['name']),_0x351c23['destroy']();}['_initToolbar'](){const _0x4cb174=this['view'];_0x4cb174['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4cb174['stickyPanel']['limiterElement']=_0x4cb174['element'],_0x4cb174['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x8a4164})=>_0x8a4164),_0x4cb174['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4cb174['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xd26e1b,_0x5e414a,_0x40cd0f={}){super(_0xd26e1b),this['stickyPanel']=new lt(_0xd26e1b),this['toolbar']=new nt(_0xd26e1b,{'shouldGroupWhenFull':_0x40cd0f['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0xd26e1b,_0x5e414a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x18cfd8,_0x7c3210){super(_0x7c3210),this['sourceElement']=_0x18cfd8,this['model']['document']['createRoot']();const _0x40fd85=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x40fd85);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2099ec,_0x50b052){const _0x57c0fc=new this(_0x2099ec,_0x50b052);return await _0x57c0fc['initPlugins'](),await _0x57c0fc['ui']['init'](_0x2099ec),await _0x57c0fc['data']['init'](_0x57c0fc['config']['get']('initialData')||''),_0x57c0fc['fire']('ready'),_0x57c0fc;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x9c73c6{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18049b){function _0x5d86ed(_0x14d9b3){return _0x14d9b3['map'](_0x588e47=>String['fromCharCode'](_0x588e47))['join']('');}super(_0x18049b),this['result']='end',_0x18049b[_0x5d86ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d86ed([0x76,0x69,0x65,0x77])][_0x5d86ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d86ed([0x61,0x75,0x74,0x6f]),_0x18049b[_0x5d86ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5d86ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d86ed([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5d86ed([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5d86ed([0x6f,0x6b])});}}class H extends _0x9c73c6{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x40bb81){if(super(_0x40bb81),!this['editor']['config']['get']('revisionHistory'))throw new _0x3d8b0a('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xa6da16=>this['_showRevisionViewer']({..._0xa6da16,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x28c992=>this['_closeRevisionViewer'](_0x28c992)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3c66e7=>this['_restoreRevision'](_0x3c66e7)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4e9528){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4e9528;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x183e93){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x183e93);}['getRevision'](_0x1ef429){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1ef429);}['getRevisions'](_0x2786f3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2786f3||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xc4d42e=this['editor'],_0x3271bc=_0x54b203(_0xc4d42e,p),_0x4b3c59=_0xc4d42e['plugins']['get']('RevisionTracker'),_0x3219a6=_0xc4d42e['plugins']['get']('Users')['users'];return _0x3271bc['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3271bc['lazyRoots'],(_0x3271bc['plugins']['push'](k,d,m,class extends _0x9c73c6{static get['requires'](){return[d,'Users'];}['init'](){const _0x108c7f=this['editor']['plugins']['get']('Users');for(const _0x58969b of _0x3219a6)_0x58969b['isAnonymous']||_0x108c7f['getUser'](_0x58969b['id'])||_0x108c7f['addUser'](_0x58969b);const _0xc7d6=_0x4b3c59['repository']['getRevisions']();let _0x40d76b=null;const _0x36d82d=this['editor']['plugins']['get']('RevisionViewer');_0x36d82d['adapter']=_0x4b3c59['adapter'],_0x36d82d['bind']('isEnabled')['to'](_0x4b3c59),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xc4d42e,'isReadOnly',_0x7d613d=>!_0x7d613d);for(const _0x2d5f8e of _0xc7d6){const _0x5610d5=null===_0x2d5f8e['creator'];if(_0x5610d5&&_0x2d5f8e['toVersion']===_0x2d5f8e['fromVersion'])continue;const _0x1b4072=_0x2d5f8e['toJSON']();_0x36d82d['addRevisionData'](_0x1b4072,(_0x2351a7,_0x584f22,_0x1d8a17)=>{if(_0x5610d5){if(_0x40d76b)_0x40d76b['_update'](_0x2351a7,_0x584f22);else{if(!_0x584f22){const _0x2b88b6=_0x1d8a17['toJSON']();_0x2b88b6['id']=_0x1e3a97(),_0x4b3c59['saveRevision'](_0x2b88b6,_0x1d8a17['toVersion'])['then'](_0x48352f=>{_0x40d76b=_0x48352f;});}}}else _0x2d5f8e['_update'](_0x2351a7,_0x584f22);});}}},g),_0x3271bc);}['_enhanceShowRevisionViewerCallback'](){const _0x15577e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x43bec7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x950997=this['editor']['plugins']['get']('Autosave');await _0x950997['save']();}else await _0x43bec7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1d7f61=this['editor']['plugins']['get']('Dialog');_0x1d7f61['isOpen']&&_0x1d7f61['hide']();}const _0x4ade61=this['_getRevisionViewerEditorConfig']();return _0x15577e(_0x4ade61)['then'](_0x2344d9=>{return(this['_viewerEditor']=_0x2344d9,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2344d9;})['catch'](_0x2366b5=>(console['error'](_0x2366b5),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x58d426=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'](),_0x58d426(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x476a1c=this['editor']['plugins']['get']('Annotations');_0x476a1c['refreshVisibility'](),_0x476a1c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x181f50){const _0x48c67f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3c60ff=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x348d28=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x348d28,_0x181f50)['then'](_0x31a04d=>(_0x3c60ff['style']['display']='block',_0x48c67f['style']['display']='none',_0x31a04d));}['_closeRevisionViewer'](_0x23dc72){const _0x3fbe9b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3fbe9b['style']['display']='',_0x23dc72['destroy']();}async['_restoreRevision'](_0x5f2f51){const _0x3413c3=this['editor'],_0x5301b8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x234792=_0x3413c3['plugins']['get']('RevisionTracker'),_0x1be2d4=_0x5301b8['repository']['getRevision'](_0x5f2f51);let _0x10104e,_0x48bbe6,_0x265a8f;try{_0x10104e=await _0x5301b8['getRevisionData'](_0x1be2d4),_0x48bbe6=await _0x5301b8['getRevisionRootsAttributes'](_0x1be2d4);}catch(_0x3fd64e){return void console['error'](_0x3fd64e);}_0x3413c3['model']['change'](_0x270b74=>{for(const _0x102218 of Array['from'](_0x3413c3['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x270b74['removeMarker'](_0x102218);}),_0x5301b8['isReady']=!0x1,_0x3413c3['model']['enqueueChange'](_0x1277b=>{_0x1277b['setSelection'](null),_0x1277b['removeSelectionAttribute'](_0x3413c3['model']['document']['selection']['getAttributeKeys']());const _0x24bcb8=Object['keys'](_0x10104e);for(const _0x1b54c5 of _0x3413c3['model']['document']['roots'])'$graveyard'!=_0x1b54c5['rootName']&&_0x1b54c5['isAttached']()&&!_0x24bcb8['includes'](_0x1b54c5['rootName'])&&_0x1277b['detachRoot'](_0x1b54c5);for(const _0x5c48e1 of _0x24bcb8){let _0x4d1ac3=_0x3413c3['model']['document']['getRoot'](_0x5c48e1);_0x4d1ac3&&_0x4d1ac3['isAttached']()||(_0x4d1ac3=_0x1277b['addRoot'](_0x5c48e1));const _0x3696e1=_0x48bbe6[_0x5c48e1],_0x97f5e7=Object['keys'](_0x3696e1),_0x41190e=_0x10104e[_0x5c48e1];for(const _0x21fd54 of _0x4d1ac3['getAttributeKeys']())_0x97f5e7['includes'](_0x21fd54)||_0x1277b['removeAttribute'](_0x21fd54,_0x4d1ac3);for(const _0x5c512d of _0x97f5e7)_0x1277b['setAttribute'](_0x5c512d,_0x48bbe6[_0x5c48e1][_0x5c512d],_0x4d1ac3);_0x1277b['remove'](_0x1277b['createRangeIn'](_0x4d1ac3)),_0x1277b['insert'](_0x3413c3['data']['parse'](_0x41190e,_0x4d1ac3),_0x4d1ac3,0x0);}});const _0x12649b=R(_0x3413c3['locale'],'Restored');if(_0x1be2d4['name'])_0x265a8f=-0x1==_0x1be2d4['name']['indexOf'](_0x12649b)?_0x12649b+':\x20'+_0x1be2d4['name']:_0x1be2d4['name'];else _0x265a8f=_0x12649b+':\x20'+(_0x1be2d4['createdAt']['toLocaleDateString'](_0x3413c3['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1be2d4['createdAt']['toLocaleTimeString'](_0x3413c3['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x234792['saveRevision']({'name':_0x265a8f}),_0x5301b8['isReady']=!0x0,_0x3413c3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};