@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250217.0 → 0.0.0-nightly-next-20250218.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x2865e1,uid as _0x5396c0,Collection as _0x155967,logWarning as _0x40e21c,FocusTracker as _0x2aa214,KeystrokeHandler as _0x67c2bd,scrollViewportToShowTarget as _0x3e9bd5,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x500c82}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xac2d02,set as _0x29f05d,unset as _0x826286,isEqual as _0x32cd69}from'es-toolkit/compat';import{Plugin as _0x14d729,PendingActions as _0x4a1854,Command as _0x5d82cf,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3a705b,getMarkerDomElement as _0x4184eb,ConfirmMixin as _0x57b214,sanitizeEditorConfig as _0x39a0d0}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1bc3ac,Element as ut,Range as ft,ViewUIElement as _0x39b677,ViewRawElement as _0x42b38a,ViewEmptyElement as _0x53dc4e,ViewAttributeElement as _0x5b45c4,ViewContainerElement as _0x4e0f89,Position as vt,ViewText as _0x3abc98,ViewElement as _0x2cf47f,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x409341,IconChevronUp as _0x58959a,IconChevronDown as _0x5caeeb,IconUndo as te,IconUser as _0x1d673e,IconThreeVerticalDots as _0x9148f5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0xd5e275,injectCssTransitionDisabler as ts,submitHandler as _0x5a74b8,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x49d6ff,ListView as _0x4dbcfb,ListItemView as _0x51450a,ButtonView as _0x18c990,MenuBarMenuView as _0x5440ea,MenuBarMenuListView as _0x4bb9fe,MenuBarMenuListItemView as _0x594fbc,MenuBarMenuListItemButtonView as _0x38b68d,ContextualBalloon as _0x11057b,ToolbarSeparatorView as _0x1cc786,IconView as _0x43ad7e,addListToDropdown as _0x878981,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x314ab0}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x2865e1(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2ca7ee){super(),this['id']=_0x2ca7ee['id']||_0x5396c0(),this['creator']=_0x2ca7ee['creator']||null,this['authors']=_0x2ca7ee['authors']||[],this['diffData']=_0x2ca7ee['diffData']||null,this['toVersion']=_0x2ca7ee['toVersion']||0x0,this['fromVersion']=_0x2ca7ee['fromVersion']||0x0,this['set']('name',_0x2ca7ee['name']||''),this['set']('createdAt',_0x2ca7ee['createdAt']||new Date()),this['set']('attributes',_0x2ca7ee['attributes']||{});}['setName'](_0x359a06){this['_update']({'name':_0x359a06});}['setAttribute'](_0x3a323d,_0x52554a){const _0x46c060=_0xac2d02(this['attributes']);_0x29f05d(_0x46c060,_0x3a323d,_0x52554a),this['_update']({'attributes':_0x46c060});}['removeAttribute'](_0x11e0d7){const _0x1cd126=_0xac2d02(this['attributes']);_0x826286(_0x1cd126,_0x11e0d7),this['_update']({'attributes':_0x1cd126});}['_update'](_0x868055,_0x3189c6=!0x1){let _0x12a256=!0x1;const _0x34a7df={'id':this['id']},_0x1fef52=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x24b994 of _0x1fef52){const _0x250b91=_0x868055[_0x24b994];void 0x0!==_0x250b91&&_0x250b91!==this[_0x24b994]&&(this[_0x24b994]=_0x250b91,_0x34a7df[_0x24b994]=_0x250b91,_0x12a256=!0x0);}_0x12a256&&(_0x34a7df['authors']&&(_0x34a7df['authorsIds']=_0x34a7df['authors']['map'](_0x35f0d3=>_0x35f0d3['id']),delete _0x34a7df['authors']),this['fire']('_update',_0x34a7df,_0x3189c6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4d6590=>_0x4d6590['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x14d729{['_revisions'];static get['requires'](){return[_0x3a705b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2f30ac){super(_0x2f30ac),this['_revisions']=new _0x155967();}['afterInit'](){!async function(_0x5a07dc){const _0x393779=_0x37e8a0([0x76,0x6b,0x50,0x39,0x5a,0x72,0x59,0x54,0x65,0x45,0x70,0x35,0x61,0x38,0x74,0x51,0x47,0x6d,0x57,0x52,0x4a,0x32,0x63,0x79,0x4d,0x36,0x62,0x48,0x66,0x6a,0x71,0x4c,0x73,0x6c,0x42,0x64,0x41,0x6f,0x46,0x33,0x44,0x43,0x69,0x34,0x6e,0x4e,0x37,0x58,0x68,0x31,0x7a,0x4f,0x77,0x78,0x75,0x4b,0x30,0x49,0x53,0x67,0x56,0x55]),_0x20d673=0xeb829,_0x40d643=0xcf5bb93,_0x2c5e36=0xcf2e453^_0x40d643,_0x3ae68f=window[_0x37e8a0([0x44,0x61,0x74,0x65])][_0x37e8a0([0x6e,0x6f,0x77])](),_0x1ec405=_0x5a07dc[_0x37e8a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1dc1f4=new window[(_0x37e8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4309f9=>{_0x1ec405[_0x37e8a0([0x6f,0x6e,0x63,0x65])](_0x37e8a0([0x72,0x65,0x61,0x64,0x79]),_0x4309f9);}),_0x33fd89={[_0x37e8a0([0x6b,0x74,0x79])]:_0x37e8a0([0x45,0x43]),[_0x37e8a0([0x75,0x73,0x65])]:_0x37e8a0([0x73,0x69,0x67]),[_0x37e8a0([0x63,0x72,0x76])]:_0x37e8a0([0x50,0x2d,0x32,0x35,0x36]),[_0x37e8a0([0x78])]:_0x37e8a0([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]),[_0x37e8a0([0x79])]:_0x37e8a0([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]),[_0x37e8a0([0x61,0x6c,0x67])]:_0x37e8a0([0x45,0x53,0x32,0x35,0x36])},_0x1deb2a=_0x1ec405[_0x37e8a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37e8a0([0x67,0x65,0x74])](_0x37e8a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2edcfd(){let _0x2235ed,_0x2a147d=null,_0x33663d=null;try{if(_0x1deb2a==_0x37e8a0([0x47,0x50,0x4c]))return _0x37e8a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2235ed=_0x3a9cfe(),!_0x2235ed)return _0x37e8a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2235ed[_0x37e8a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33663d=_0x1ebbfb(_0x2235ed[_0x37e8a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2235ed[_0x37e8a0([0x6a,0x74,0x69])])),await _0x116524()?_0x49f3f5()?_0x366355()?_0x37e8a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x137b47()?(_0x2235ed[_0x37e8a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37e8a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a147d=_0xc95908(_0x37e8a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2235ed[_0x37e8a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37e8a0([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a147d=_0xc95908(_0x37e8a0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x149554()):_0x37e8a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37e8a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37e8a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x43f3c6){return _0x37e8a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x366355(){const _0x134638=[_0x37e8a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37e8a0([0x74,0x72,0x69,0x61,0x6c])][_0x37e8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2235ed[_0x37e8a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ae68f/0x3e8:0xe10*_0x2c5e36;return _0x2235ed[_0x37e8a0([0x65,0x78,0x70])]<_0x134638;}function _0x49f3f5(){const _0x36ec8a=_0x2235ed[_0x37e8a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x36ec8a)return!0x1;if(_0x36ec8a[_0x37e8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37e8a0([0x2a])))return!0x0;if(_0x36ec8a[_0x37e8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37e8a0([0x52,0x48])))return!0x0;if(_0x36ec8a[_0x37e8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37e8a0([0x52,0x52,0x48]))){if(_0x229ec4())return!0x0;if(_0x3b99d6()||_0x3a1e8f())return!0x0;}return!0x1;}function _0x137b47(){const _0x293595=_0x2235ed[_0x37e8a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x293595||0x0==_0x293595[_0x37e8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f0f49}=new URL(window[_0x37e8a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x293595[_0x37e8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f0f49))return!0x0;const _0x3a2ea0=_0x3f0f49[_0x37e8a0([0x73,0x70,0x6c,0x69,0x74])](_0x37e8a0([0x2e]));return _0x293595[_0x37e8a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xff2330=>_0xff2330[_0x37e8a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37e8a0([0x2a])))[_0x37e8a0([0x6d,0x61,0x70])](_0x46c319=>_0x46c319[_0x37e8a0([0x73,0x70,0x6c,0x69,0x74])](_0x37e8a0([0x2e])))[_0x37e8a0([0x73,0x6f,0x6d,0x65])](_0x53582c=>_0x3a2ea0[_0x37e8a0([0x65,0x76,0x65,0x72,0x79])]((_0x2b8b6e,_0xb137d6)=>_0x53582c[_0xb137d6]===_0x2b8b6e||_0x53582c[_0xb137d6]===_0x37e8a0([0x2a])));}function _0x149554(){return _0x2a147d&&_0x33663d?new window[(_0x37e8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6de173,_0x3fd75e)=>{_0x2a147d[_0x37e8a0([0x74,0x68,0x65,0x6e])](_0x6de173,_0x3fd75e),_0x33663d[_0x37e8a0([0x74,0x68,0x65,0x6e])](_0x2696a2=>{_0x2696a2!=_0x37e8a0([0x56,0x61,0x6c,0x69,0x64])&&_0x6de173(_0x2696a2);},_0x3fd75e);}):_0x2a147d||_0x33663d||_0x37e8a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ebbfb(_0x4f16a4,_0x209c31){return new window[(_0x37e8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39969b=>{if(_0x222b13())return _0x39969b(_0x37e8a0([0x56,0x61,0x6c,0x69,0x64]));_0x229883(),_0x1ec405[_0x37e8a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37e8a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x516356=!0x1;const _0x3606d9=_0x5396c0();function _0x456ef1(_0x25064c){return!!_0x25064c&&(typeof _0x25064c===_0x37e8a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25064c===_0x37e8a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25064c[_0x37e8a0([0x74,0x68,0x65,0x6e])]===_0x37e8a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25064c[_0x37e8a0([0x63,0x61,0x74,0x63,0x68])]===_0x37e8a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x420106(_0x19f13b){_0x22e594(_0x19f13b)[_0x37e8a0([0x74,0x68,0x65,0x6e])](_0x869d7a=>{if(!_0x869d7a||_0x869d7a[_0x37e8a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37e8a0([0x6f,0x6b]))return _0x37e8a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x268929(_0x4090cc(_0x3606d9+_0x209c31))!=_0x869d7a[_0x37e8a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37e8a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37e8a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x37e8a0([0x74,0x68,0x65,0x6e])](_0x26848c=>(_0x460614(),_0x26848c),()=>{const _0x33b09d=_0x209037();return null==_0x33b09d?(_0x460614(),_0x37e8a0([0x56,0x61,0x6c,0x69,0x64])):_0x37e8a0(_0x3ae68f-_0x33b09d>(0x28f93f93^_0x40d643)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37e8a0([0x74,0x68,0x65,0x6e])](_0x39969b)[_0x37e8a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39969b(_0x37e8a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54f02a=0xcc35513^_0x40d643;function _0x460614(){const _0x4af09a=_0x37e8a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x268929(_0x4090cc(_0x4f16a4)),_0xd4848f=_0x4b1d68(_0x268929(window[_0x37e8a0([0x4d,0x61,0x74,0x68])][_0x37e8a0([0x63,0x65,0x69,0x6c])](_0x3ae68f/_0x54f02a)));window[_0x37e8a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37e8a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4af09a,_0xd4848f);}function _0x209037(){const _0x230f59=_0x37e8a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x268929(_0x4090cc(_0x4f16a4)),_0xf5fb9b=window[_0x37e8a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37e8a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x230f59);return _0xf5fb9b?window[_0x37e8a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b1d68(_0xf5fb9b),0x10)*_0x54f02a:null;}function _0x22e594(_0x22e203){return new window[(_0x37e8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdbb329,_0xc70003)=>{_0x22e203[_0x37e8a0([0x74,0x68,0x65,0x6e])](_0xdbb329,_0xc70003),window[_0x37e8a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc70003,0xcf46f53^_0x40d643);});}}_0x1ec405[_0x37e8a0([0x6f,0x6e])](_0x37e8a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b0dac,_0x14651f)=>{if(_0x14651f[0x0]!=_0x4f16a4)return _0x39969b(_0x37e8a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14651f[0x1]={..._0x14651f[0x1],[_0x37e8a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3606d9};},{[_0x37e8a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37e8a0([0x68,0x69,0x67,0x68])}),_0x1ec405[_0x37e8a0([0x6f,0x6e])](_0x37e8a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d09e8=>{_0x456ef1(_0x5d09e8[_0x37e8a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x516356=!0x0,_0x420106(_0x5d09e8[_0x37e8a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37e8a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37e8a0([0x6c,0x6f,0x77])}),_0x1dc1f4[_0x37e8a0([0x74,0x68,0x65,0x6e])](()=>{_0x516356||_0x39969b(_0x37e8a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x222b13(){return _0x1ec405[_0x37e8a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37e8a0([0x76,0x69,0x65,0x77])][_0x37e8a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37e8a0([0x61,0x75,0x74,0x6f]);}function _0x229883(){_0x1ec405[_0x37e8a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37e8a0([0x76,0x69,0x65,0x77])][_0x37e8a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37e8a0([0x61,0x75,0x74,0x6f]);}}function _0xc95908(_0x3c54c2){const _0x1b93b0=[new window[(_0x37e8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30945a=>setTimeout(_0x30945a,0xcfc855f^_0x40d643)),_0x1dc1f4[_0x37e8a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37e8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149119=>{const _0x17a739=0xcf5bb94^_0x40d643,_0x182c0b=_0x5a07dc[_0x37e8a0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x22b1cd(){_0x182c0b[_0x37e8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x17a739&&_0x149119();}_0x22b1cd(),_0x182c0b[_0x37e8a0([0x6f,0x6e])](_0x37e8a0([0x61,0x64,0x64]),_0x22b1cd);})),new window[(_0x37e8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8b8e7b=>{function _0x2a09c3(){for(const _0x393b22 in window)if(window[_0x37e8a0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x37e8a0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x393b22))&&window[_0x393b22]==_0x20d673)return _0x8b8e7b();_0x1ec405[_0x37e8a0([0x73,0x74,0x61,0x74,0x65])]!=_0x37e8a0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x37e8a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a09c3,0xcf5a81b^_0x40d643);}_0x3b51f4(_0x37e8a0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2a09c3();})];return window[_0x37e8a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37e8a0([0x72,0x61,0x63,0x65])](_0x1b93b0)[_0x37e8a0([0x74,0x68,0x65,0x6e])](()=>_0x3c54c2);}async function _0x152ef6(){if(await _0x1dc1f4,_0x3b51f4(_0x37e8a0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3b4d85=_0x5a07dc[_0x37e8a0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x400c44=_0x5a07dc[_0x37e8a0([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])](_0x3b4d85[_0x37e8a0([0x69,0x64])]),_0x3e8821=_0x1bc335(_0x37e8a0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3e8821[_0x37e8a0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3b4d85['id'],_0x400c44?_0x400c44['id']:null,!0x0),_0x3e8821[_0x37e8a0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37e8a0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3e8821[_0x37e8a0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3e8821[_0x37e8a0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x14a2d4,void(_0x3e8821[_0x37e8a0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x14a2d4);}if(_0x3b51f4(_0x37e8a0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x369e93=_0x1bc335(_0x37e8a0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x369e93[_0x37e8a0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37e8a0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x369e93[_0x37e8a0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x369e93[_0x37e8a0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x14a2d4,_0x369e93[_0x37e8a0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x14a2d4;}_0x1ec405[_0x37e8a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x37e8a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14a2d4,_0x1ec405[_0x37e8a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x37e8a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14a2d4,_0x1ec405[_0x37e8a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37e8a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x229ec4(){return _0x3b51f4(_0x37e8a0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1bc335(_0x37e8a0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x37e8a0([0x73,0x74,0x61,0x74,0x65])]==_0x37e8a0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3b99d6(){return _0x3b51f4(_0x37e8a0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3a1e8f(){return _0x3b51f4(_0x37e8a0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x21e034(_0xc99de4){const _0x45bfcb=_0x42f275();_0x1ec405[_0x45bfcb]=_0x37e8a0([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])+_0xc99de4,_0xc99de4[_0x37e8a0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x37e8a0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x42f275()]=_0x20d673),_0xc99de4!=_0x37e8a0([0x56,0x61,0x6c,0x69,0x64])&&_0x152ef6();}function _0x42f275(){const _0x36fb8e=window[_0x37e8a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37e8a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37e8a0([0x6e,0x6f,0x77])]())[_0x37e8a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37e8a0([0x2e]),'');let _0x35d0d2=_0x37e8a0([0x76]);for(let _0x955978=0x0;_0x955978<_0x36fb8e[_0x37e8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x955978+=0x2){let _0x118d8c=window[_0x37e8a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36fb8e[_0x37e8a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x955978,_0x955978+0x2));_0x118d8c>=_0x393779[_0x37e8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x118d8c-=_0x393779[_0x37e8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x35d0d2+=_0x393779[_0x118d8c];}return _0x35d0d2;}function _0x3a9cfe(){const _0x4084f7=_0x1deb2a[_0x37e8a0([0x73,0x70,0x6c,0x69,0x74])](_0x37e8a0([0x2e]));if(0x3!=_0x4084f7[_0x37e8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2171a8(_0x4084f7[0x1]);function _0x2171a8(_0x2a3f7c){const _0xd12b5=_0x34a3db(_0x2a3f7c);return _0xd12b5&&_0x54e834()?_0xd12b5:null;function _0x54e834(){const _0x420f7d=_0xd12b5[_0x37e8a0([0x6a,0x74,0x69])],_0x1095ab=window[_0x37e8a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x420f7d[_0x37e8a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x420f7d[_0x37e8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x548ded={..._0xd12b5,[_0x37e8a0([0x6a,0x74,0x69])]:_0x420f7d[_0x37e8a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x420f7d[_0x37e8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x548ded[_0x37e8a0([0x76,0x63])],_0x4090cc(_0x548ded)==_0x1095ab;}}}async function _0x116524(){let _0xc90832=!0x0;try{const _0x528c94=_0x1deb2a[_0x37e8a0([0x73,0x70,0x6c,0x69,0x74])](_0x37e8a0([0x2e])),[_0x1be868,_0x2edf71,_0x2659bb]=_0x528c94;return _0x418ce1(_0x1be868),await _0x3a30b5(_0x1be868,_0x2edf71,_0x2659bb),_0xc90832;}catch(_0x18e38b){return!0x1;}function _0x418ce1(_0x35c12f){const _0x30c277=_0x34a3db(_0x35c12f);_0x30c277&&_0x30c277[_0x37e8a0([0x61,0x6c,0x67])]==_0x37e8a0([0x45,0x53,0x32,0x35,0x36])||(_0xc90832=!0x1);}async function _0x3a30b5(_0x53afdb,_0x4842ff,_0x598c82){const _0x309d47=window[_0x37e8a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37e8a0([0x66,0x72,0x6f,0x6d])](_0x28d203(_0x598c82),_0x234181=>_0x234181[_0x37e8a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x351580=new window[(_0x37e8a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37e8a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53afdb+_0x37e8a0([0x2e])+_0x4842ff),_0xc3c2d8=window[_0x37e8a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37e8a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc3c2d8)return;const _0x319101=await _0xc3c2d8[_0x37e8a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37e8a0([0x6a,0x77,0x6b]),_0x33fd89,{[_0x37e8a0([0x6e,0x61,0x6d,0x65])]:_0x37e8a0([0x45,0x43,0x44,0x53,0x41]),[_0x37e8a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37e8a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37e8a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc3c2d8[_0x37e8a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37e8a0([0x6e,0x61,0x6d,0x65])]:_0x37e8a0([0x45,0x43,0x44,0x53,0x41]),[_0x37e8a0([0x68,0x61,0x73,0x68])]:{[_0x37e8a0([0x6e,0x61,0x6d,0x65])]:_0x37e8a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x319101,_0x309d47,_0x351580)||(_0xc90832=!0x1);}}function _0x34a3db(_0x284d7a){return _0x284d7a[_0x37e8a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37e8a0([0x65,0x79]))?JSON[_0x37e8a0([0x70,0x61,0x72,0x73,0x65])](_0x28d203(_0x284d7a)):null;}function _0x28d203(_0x544ff6){return window[_0x37e8a0([0x61,0x74,0x6f,0x62])](_0x544ff6[_0x37e8a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37e8a0([0x2b]))[_0x37e8a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37e8a0([0x2f])));}function _0x4090cc(_0x371271){let _0x3de934=0x1505;function _0xfcee47(_0x2ab513){for(let _0x1a8ad9=0x0;_0x1a8ad9<_0x2ab513[_0x37e8a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a8ad9++){const _0x133bad=_0x2ab513[_0x37e8a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a8ad9);_0x3de934=(_0x3de934<<0x5)+_0x3de934+_0x133bad,_0x3de934&=_0x3de934;}}function _0x471fa8(_0x17baf6){Array[_0x37e8a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x17baf6)?_0x17baf6[_0x37e8a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x471fa8):_0x17baf6&&typeof _0x17baf6==_0x37e8a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37e8a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x17baf6)[_0x37e8a0([0x73,0x6f,0x72,0x74])]()[_0x37e8a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d8f86,_0x3ca92a])=>{_0xfcee47(_0x5d8f86),_0x471fa8(_0x3ca92a);}):_0xfcee47(window[_0x37e8a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x17baf6));}return _0x471fa8(_0x371271),_0x3de934>>>0x0;}function _0x268929(_0x4175d9){return _0x4175d9[_0x37e8a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37e8a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37e8a0([0x30]));}function _0x4b1d68(_0x43cd0a){return _0x43cd0a[_0x37e8a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37e8a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37e8a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b51f4(_0x1cdd1c){return _0x1ec405[_0x37e8a0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37e8a0([0x68,0x61,0x73])](_0x1cdd1c);}function _0x1bc335(_0x3ec5ac){return _0x1ec405[_0x37e8a0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37e8a0([0x67,0x65,0x74])](_0x3ec5ac);}function _0x14a2d4(){}function _0x37e8a0(_0x166185){return _0x166185['map'](_0x102ec6=>String['fromCharCode'](_0x102ec6))['join']('');}_0x21e034(await _0x2edcfd());}(this);}['createRevision'](_0x44642b){const _0x558bb3=this['editor']['plugins']['get']('Users');return new h({'id':_0x44642b['id'],'name':_0x44642b['name'],'creator':_0x44642b['creatorId']?_0x558bb3['getUser'](_0x44642b['creatorId']):null,'diffData':_0x44642b['diffData']||_0x44642b['data'],'authors':_0x44642b['authorsIds']['map'](_0x127090=>_0x558bb3['getUser'](_0x127090)),'createdAt':new Date(_0x44642b['createdAt']),'attributes':_0x44642b['attributes'],'fromVersion':_0x44642b['fromVersion'],'toVersion':_0x44642b['toVersion']});}['addRevision'](_0x2a3ed0,_0x32a397=0x0){this['_revisions']['add'](_0x2a3ed0,_0x32a397);}['getRevision'](_0x2f4e95){return this['_revisions']['get'](_0x2f4e95);}['getRevisions'](_0xa3aba={'toJSON':!0x1}){const _0x277a9a=Array['from'](this['_revisions']);return _0x277a9a['reverse'](),_0xa3aba['toJSON']?_0x277a9a['map'](_0x4afc47=>_0x4afc47['toJSON']()):_0x277a9a;}['getIndex'](_0x3773b6){return this['_revisions']['getIndex'](_0x3773b6);}['getEarlierVisibleRevision'](_0x15cc4f){const [,_0x4bdb85]=this['getRevisionsIterator'](_0x15cc4f,{'direction':'earlier'});return _0x4bdb85;}['getLaterVisibleRevision'](_0x3cf6b3){const [,_0x33eee0]=this['getRevisionsIterator'](_0x3cf6b3,{'direction':'later'});return _0x33eee0;}['getRevisionsInDiff'](_0x3580ea){const _0x20a801=[];for(const _0x4af290 of this['getRevisionsIterator'](_0x3580ea['newRevisionId']))if(_0x20a801['push'](_0x4af290),_0x4af290['id']===_0x3580ea['oldRevisionId'])break;return _0x20a801;}*['getRevisionsIterator'](_0x586e10,{direction:_0x3983de='earlier',filter:_0x51abd1=()=>!0x0}={}){const _0x28698a='earlier'===_0x3983de?0x1:-0x1;let _0x53126d=this['_revisions']['get'](_0x586e10),_0x4339d4=this['getIndex'](_0x53126d);for(yield _0x53126d;_0x53126d;){if(_0x4339d4+=_0x28698a,_0x53126d=this['getRevision'](_0x4339d4),!_0x53126d)return;_0x51abd1(_0x53126d)&&(yield _0x53126d);}}}function m(_0x38a5ae,_0x121130,_0x48ba99){const t=_0x38a5ae['t'];switch(_0x121130){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'},_0x48ba99);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x48ba99);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x4e0f89,'a':_0x5b45c4,'e':_0x53dc4e,'r':_0x42b38a,'u':_0x39b677};class u extends _0x14d729{['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[_0x3a705b,j,_0x4a1854];}constructor(_0x4ab3c9){super(_0x4ab3c9),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x902168=_0x5396c0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x902168},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 _0x1c6d98=this['repository']['getRevision'](0x0),_0x4c37d4=_0x1c6d98&&null===_0x1c6d98['creator']?_0x1c6d98:null;if(this['_continueCurrentRevision']=!!_0x4c37d4&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x472799=this['_source']['getCurrentRevisionId'](),_0x31e6ed=this['repository']['getRevision'](_0x472799);if(_0x31e6ed)this['_startingVersion']=_0x31e6ed['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xdd4f82=this['_source']['history']['_operations']['find'](_0x5135e2=>!_0x5135e2['_isInit']),_0x4c45dd=_0xdd4f82?_0xdd4f82['baseVersion']:this['_source']['history']['version'];_0x1c6d98?(_0x1c6d98['toVersion']<_0x4c45dd&&_0x1c6d98['_update']({'toVersion':_0x4c45dd}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4c37d4['id'],this['_startingVersion']=_0x4c37d4['fromVersion']):(this['_startingVersion']=_0x1c6d98['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4c45dd,this['_continueCurrentRevision']=!0x1);}}else _0x4c37d4&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4c37d4['toVersion'],this['editor']['model']['document']['history']['version']),_0x4c37d4['fromVersion']===_0x4c37d4['toVersion']?(0x0!==_0x4c37d4['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4c37d4['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4c37d4['id'],this['_startingVersion']=_0x4c37d4['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',_0x2c4526=>!_0x2c4526),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x461f33=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x75e8ac;for(const _0x5e9102 in _0x461f33){const _0x117613=_0x5e9102,_0xe380e1=_0x461f33[_0x117613];if('revisionHistoryLicenseKeyValid'==_0xe380e1||'revisionHistoryLicenseKeyInvalid'==_0xe380e1||'revisionHistoryLicenseKeyExpired'==_0xe380e1||'revisionHistoryLicenseKeyDomainLimit'==_0xe380e1||'revisionHistoryLicenseKeyNotAllowed'==_0xe380e1||'revisionHistoryLicenseKeyEvaluationLimit'==_0xe380e1||'revisionHistoryLicenseKeyTrialLimit'==_0xe380e1||'revisionHistoryLicenseKeyUsageLimit'==_0xe380e1){delete _0x461f33[_0x117613],_0x75e8ac=_0xe380e1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x75e8ac&&_0x461f33['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x75e8ac&&_0x461f33['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x75e8ac&&_0x461f33['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x75e8ac&&_0x461f33['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x75e8ac&&_0x461f33['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x75e8ac&&_0x461f33['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x75e8ac&&_0x461f33['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x45a242=this['repository']['getRevision'](0x0),_0x3e172a=await this['getRevisionDocumentData'](_0x45a242),_0x56bcfc=await this['getRevisionRootsAttributes'](_0x45a242);this['_replaceEditorDataWithRevisionData'](_0x3e172a,_0x56bcfc);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x25f4e1){this['_source']=_0x25f4e1;}async['update'](){const _0x4228ec=await this['_source']['getLatestVersion']();if(_0x4228ec>this['currentRevision']['toVersion']){await this['_loadState']();const _0x58fd22=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4228ec});_0x58fd22['authors']=_0x58fd22['authorsIds']['map'](_0x4cabaf=>this['editor']['plugins']['get']('Users')['getUser'](_0x4cabaf)),this['currentRevision']['_update'](_0x58fd22);}}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'](_0x1a36b9={},_0x10fc06=null){const _0x429687=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x10fc06>this['currentRevision']['toVersion']&&(_0x10fc06=null),null===_0x10fc06&&(_0x10fc06=await this['_source']['getLatestVersion']());const _0x2291cb=this['_getFromVersion'](_0x10fc06),_0x7ef22b=this['buildRevisionData']({'from':_0x2291cb,'to':_0x10fc06});if(this['currentRevision']['toVersion']<_0x10fc06){const _0x4856f6=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x10fc06,'to':_0x10fc06});_0x4856f6['authors']=[],_0x4856f6['authorsIds']=[],_0x4856f6['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4856f6,!0x0),delete _0x4856f6['authors'],_0x429687['push'](_0x4856f6);}_0x1a36b9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1a36b9['name']=_0x1a36b9['name']||null,_0x1a36b9['id']=_0x1a36b9['id']||_0x5396c0(),_0x1a36b9={..._0x1a36b9,..._0x7ef22b};const _0x47b200=this['addRevisionData'](_0x1a36b9);_0x429687['push'](_0x1a36b9);const _0x5eb0c8=this['repository']['getIndex'](_0x47b200);if(0x0!==_0x5eb0c8){const _0x3d1433=this['repository']['getRevision'](_0x5eb0c8-0x1);if(_0x3d1433['fromVersion']!==_0x10fc06){const _0xcdbe47=this['_revisionDataBuilder']['getData'](_0x10fc06,_0x3d1433['toVersion']),_0x50e75d={'id':_0x3d1433['id'],'diffData':_0xcdbe47['diffData'],'authorsIds':_0xcdbe47['authorsIds'],'authors':_0xcdbe47['authorsIds']['map'](_0x20735c=>this['editor']['plugins']['get']('Users')['getUser'](_0x20735c)),'fromVersion':_0x10fc06};_0x3d1433===this['currentRevision']&&(_0x50e75d['createdAt']=new Date(_0x1a36b9['createdAt']['getTime']()+0xa)),_0x3d1433['_update'](_0x50e75d,!0x0),delete _0x50e75d['authors'],_0x429687['push'](_0x50e75d);}}if(this['adapter']){for(const _0x45806c of _0x429687)this['_bufferUpdate'](_0x45806c['id'],_0x45806c,!0x0);this['sendBufferedUpdates']();}return _0x47b200;}['addRevisionData'](_0x4b1ee4){const _0x5a7332=this['repository']['createRevision'](_0x4b1ee4);return this['adapter']&&_0x5a7332['on']('_update',(_0x4307fb,_0x4d0b5a,_0x2ab21b)=>{_0x2ab21b||(this['_bufferUpdate'](_0x4d0b5a['id'],_0x4d0b5a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5a7332,this['_findInsertionIndex'](_0x5a7332)),_0x5a7332;}async['getRevisionDocumentData'](_0xb4e7e8){await this['_loadRevisionData'](_0xb4e7e8);const _0x2406ef={};for(const _0x467c1f in _0xb4e7e8['diffData']){if(_0xb4e7e8['diffData'][_0x467c1f]['attachChange']&&!_0xb4e7e8['diffData'][_0x467c1f]['attachChange']['isAttached'])continue;const _0xc3c292=this['_removeRevisionMarkers'](JSON['parse'](_0xb4e7e8['diffData'][_0x467c1f]['insertions'])),_0x35229a=this['editor']['editing']['view']['document'],_0x2f0c0e=new _0x1bc3ac(_0x35229a,_0xc3c292['map'](_0x130f27=>P(_0x130f27,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2406ef[_0x467c1f]=this['editor']['data']['processor']['toData'](_0x2f0c0e),this['editor']['data']['processor']['useFillerType']('default');}return _0x2406ef;}async['getRevisionRootsAttributes'](_0x530cc5){await this['_loadRevisionData'](_0x530cc5);const _0x3ddb67={};for(const _0x32cdbd in _0x530cc5['diffData'])_0x530cc5['diffData'][_0x32cdbd]['attachChange']&&!_0x530cc5['diffData'][_0x32cdbd]['attachChange']['isAttached']||(_0x3ddb67[_0x32cdbd]=_0x530cc5['diffData'][_0x32cdbd]['attributesAfter']||{});return _0x3ddb67;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x97b5ac=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1a81ec=0x0;_0x1a81ec<_0x97b5ac['length'];_0x1a81ec++){const _0xc846fd=_0x97b5ac[_0x1a81ec];let _0x1fba92=!0x1;for(const _0x4d1611 of Object['keys'](_0xc846fd))void 0x0===_0xc846fd[_0x4d1611]?delete _0xc846fd[_0x4d1611]:'id'!==_0x4d1611&&(_0x1fba92=!0x0);_0x1fba92||(_0x97b5ac[_0x1a81ec]=null);}if(_0x97b5ac=_0x97b5ac['filter'](_0x118c2b=>null!==_0x118c2b),!_0x97b5ac['length'])return;for(let _0x2d1865=0x0;_0x2d1865<_0x97b5ac['length'];_0x2d1865++){const _0x35002d=_0x97b5ac[_0x2d1865];void 0x0!==_0x35002d['fromVersion']&&void 0x0===_0x35002d['toVersion']&&(_0x35002d['toVersion']=this['repository']['getRevision'](_0x35002d['id'])['toVersion']),void 0x0!==_0x35002d['toVersion']&&void 0x0===_0x35002d['fromVersion']&&(_0x35002d['fromVersion']=this['repository']['getRevision'](_0x35002d['id'])['fromVersion']);}const _0x25782b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x97b5ac,_0x25782b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x41385a=>{if(_0x41385a){for(const _0x20f6be of _0x41385a)this['setRevisionData']({'id':_0x20f6be['id'],'createdAt':_0x20f6be['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1f792a,_0x9db85a){let _0x274b40=this['editor']['config']['get']('initialData'),_0xce701c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x274b40){_0x274b40={};for(const _0x9da5e6 of this['editor']['model']['document']['getRootNames']())_0x274b40[_0x9da5e6]='';}if('string'==typeof _0x274b40&&(_0x274b40={'main':_0x274b40}),void 0x0===_0xce701c){_0xce701c={};for(const _0x557cd3 of this['editor']['model']['document']['getRootNames']())_0xce701c[_0x557cd3]={};}let _0x137cce=!0x1;const _0x1dad16=Object['keys'](_0x274b40),_0x1d338f=Object['keys'](_0x1f792a);for(const _0x3c522f of _0x1dad16){if(_0x274b40[_0x3c522f]!==_0x1f792a[_0x3c522f]&&''!==_0x274b40[_0x3c522f]['trim']()){_0x137cce=!0x0;break;}if(!_0x32cd69(_0xce701c[_0x3c522f],_0x9db85a[_0x3c522f])&&Object['keys'](_0xce701c[_0x3c522f])['length']>0x0){_0x137cce=!0x0;break;}}_0x137cce||(_0x137cce=_0x1d338f['some'](_0x360434=>!this['editor']['model']['document']['getRoot'](_0x360434))),_0x137cce&&_0x40e21c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x274b40,'editorRootsAttributes':_0xce701c,'revisionData':_0x1f792a,'revisionRootsAttributes':_0x9db85a}),this['editor']['config']['set']('initialData',_0x1f792a),this['editor']['config']['set']('rootsAttributes',_0x9db85a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x492fdf=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x492fdf['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1a9eaa){const _0x2609a0=this['repository']['getRevisions']();_0x2609a0['reverse']();let _0x54d5a1=0x0;for(;_0x54d5a1<_0x2609a0['length'];){const _0x1978f5=_0x2609a0[_0x54d5a1];if(_0x1978f5===this['currentRevision']){_0x54d5a1++;continue;}if(_0x1978f5['id']===this['_initialRevisionId'])break;const _0x1cdb05=_0x1a9eaa['toVersion']-_0x1978f5['toVersion']||_0x1a9eaa['fromVersion']-_0x1978f5['fromVersion'];if(_0x1cdb05>0x0)break;if(_0x1cdb05<0x0)_0x54d5a1++;else{if(!_0x1a9eaa['creator']&&_0x1978f5['creator'])break;if(_0x1978f5['creator']||!_0x1a9eaa['creator']){if(_0x1a9eaa['createdAt']>_0x1978f5['createdAt'])break;_0x54d5a1++;}else _0x54d5a1++;}}return _0x54d5a1;}['setRevisionData'](_0x948769){const _0x33c9ea=this['repository']['getRevision'](_0x948769['id']);if(_0x948769['createdAt']&&(_0x948769['createdAt']=new Date(_0x948769['createdAt'])),_0x948769['authorsIds']){const _0x547185=this['editor']['plugins']['get']('Users');_0x948769['authors']=_0x948769['authorsIds']['map'](_0x205662=>_0x547185['getUser'](_0x205662));}_0x33c9ea['_update'](_0x948769,!0x0);}['buildRevisionData']({revision:_0x122bfe=null,from:_0x146e75=null,to:_0x39cc8d=null}){_0x146e75=null!==_0x146e75?_0x146e75:_0x122bfe['fromVersion'],_0x39cc8d=null!==_0x39cc8d?_0x39cc8d:_0x122bfe['toVersion'];const _0x312066=this['_revisionDataBuilder']['getData'](_0x146e75,_0x39cc8d),_0x4a122f={'diffData':_0x312066['diffData'],'authorsIds':_0x312066['authorsIds'],'fromVersion':_0x146e75,'toVersion':_0x39cc8d};if(!_0x122bfe||_0x39cc8d!==_0x122bfe['toVersion']){const _0x21f336=_0x39cc8d-0x1,_0x8892cb=this['_source']['history']['getOperation'](_0x21f336);_0x4a122f['createdAt']=_0x8892cb&&_0x8892cb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x146e75===this['_loadedStateData']['fromVersion']){for(const _0x6b386a of this['_loadedStateData']['authors'])_0x4a122f['authorsIds']['includes'](_0x6b386a['id'])||_0x4a122f['authorsIds']['push'](_0x6b386a['id']);}return _0x4a122f;}['_loadRevisionData'](_0x7c503e){if(!_0x7c503e||_0x7c503e['diffData'])return Promise['resolve']();{const _0x336fab=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x336fab,'revisionId':_0x7c503e['id']})['then'](_0x3b7d91=>{_0x7c503e['diffData']=_0x3b7d91['diffData'];});}}['_bufferUpdate'](_0x3953e5,_0x5d50f2,_0x1f4502){if(this['_bufferedUpdates']['has'](_0x3953e5)){const _0x4e6c34=this['_bufferedUpdates']['get'](_0x3953e5);_0x5d50f2=_0x1f4502?{..._0x4e6c34,..._0x5d50f2}:{..._0x5d50f2,..._0x4e6c34};}this['_bufferedUpdates']['set'](_0x3953e5,_0x5d50f2);}['_getFromVersion'](_0x419314){const _0x1d62db=this['repository']['getRevisions']();_0x1d62db['reverse'](),_0x1d62db['shift']();const _0x1f5288=_0x1d62db['find'](_0x2c76a3=>_0x2c76a3['toVersion']<=_0x419314)['toVersion'];return _0x1f5288<this['_startingVersion']?this['_startingVersion']:_0x1f5288;}['_createInitialRevision'](_0x1806d7){const _0x1d39c1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1d39c1)this['_initialRevisionId']=_0x1d39c1['id'];else{const _0x44dbf6=!this['editor']['model']['document']['roots']['find'](_0x4fccd9=>this['editor']['model']['hasContent'](_0x4fccd9)),_0x10926c=this['editor']['plugins']['get']('Users')['me']['id'],_0x197762=m(this['editor']['locale'],_0x44dbf6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1806d7,'to':_0x1806d7,'id':this['_initialRevisionId'],'name':_0x197762,'creatorId':_0x10926c});}}['_createCurrentRevision'](_0x463e53){const _0x338a4c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x338a4c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x463e53,'to':_0x463e53,'id':_0x338a4c,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2a4529,from:_0x53f345,to:_0x173838,creatorId:_0x13a742,id:_0x4b18c3}){const _0x12128e=this['buildRevisionData']({'from':_0x53f345,'to':_0x173838});_0x12128e['name']=_0x2a4529,_0x12128e['creatorId']=_0x13a742,_0x12128e['id']=_0x4b18c3;const _0x757f89=this['addRevisionData'](_0x12128e);return this['adapter']&&this['_bufferUpdate'](_0x12128e['id'],_0x12128e,!0x0),_0x757f89;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4e5235){return(_0x4e5235=_0x4e5235['filter'](_0x2d5f37=>!_0x2d5f37['name']||'revision-start'!==_0x2d5f37['name']&&'revision-end'!==_0x2d5f37['name']))['forEach'](_0x1315db=>{'string'!=typeof _0x1315db&&(_0x1315db['children']=this['_removeRevisionMarkers'](_0x1315db['children']),_0x1315db['attributes']=_0x1315db['attributes']['filter'](_0x2a58e6=>!_0x2a58e6[0x0]['startsWith']('data-revision-')));}),_0x4e5235;}}function P(_0x51b19b,_0x2bb613){const _0x5d52d2=_0x2bb613['editing']['view']['document'];if('string'==typeof _0x51b19b)return new _0x3abc98(_0x5d52d2,_0x51b19b);{const _0x3fb4e7=_0x51b19b['children']['map'](_0x112a8b=>P(_0x112a8b,_0x2bb613));return new(E[_0x51b19b['type']]||_0x2cf47f)(_0x5d52d2,_0x51b19b['name'],_0x51b19b['attributes'],_0x3fb4e7);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2ecbf8){this['editor']=_0x2ecbf8,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'](_0x4f5d7b){this['source']=_0x4f5d7b;const _0xd8f32a=new Map(),_0x17574d=new Map(),_0x487f97=this['editor']['model']['document']['roots']['map'](_0x439438=>_0x439438['rootName']);for(const _0x16899f of _0x487f97){const _0x1fd956=this['editor']['model']['document']['getRoot'](_0x16899f),_0x443997=T(_0x1fd956);_0xd8f32a['set'](_0x16899f,_0x443997),_0x17574d['set'](_0x16899f,Object['fromEntries'](_0x1fd956['getAttributes']()));}const _0x44d69c=Array['from'](this['editor']['model']['markers'])['map'](_0x3cdfc1=>[_0x3cdfc1['name'],_0x3cdfc1['getRange']()]),_0x2b7df7=this['source']['version'];this['_saveMetaData'](_0x2b7df7,_0xd8f32a,_0x44d69c,_0x17574d),this['_startingRevisionId']=this['_revisionId'];const _0x2719fc=new Map(),_0x5bb0ed=new Map();for(const _0x2b7540 of _0x487f97){const _0x3c7493=F(_0x2b7540);_0x2719fc['set'](_0x2b7540,_0x3c7493),_0x5bb0ed['set'](_0x2b7540,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2719fc,[],_0x5bb0ed);}['getData'](_0x486386,_0x5ba90c){if(this['_lastFrom']===_0x486386&&this['_lastTo']<=_0x5ba90c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5ba90c,!0x0);else{if(!this['_savedMetaData']['has'](_0x486386)){const _0x2000e9=this['_getPreviousFrom'](_0x486386);this['_calculateMetaData'](_0x2000e9,_0x486386,!0x1);}this['_calculateMetaData'](_0x486386,_0x5ba90c,!0x0);}return this['_lastFrom']=_0x486386,this['_lastTo']=_0x5ba90c,this['_getState']();}['loadState'](_0x1cace8){this['_reset'](),this['_lastFrom']=_0x1cace8['fromVersion'],this['_lastTo']=_0x1cace8['toVersion'];for(const _0x433813 in _0x1cace8['diffData']){const _0x5ba5ea=_0x1cace8['diffData'][_0x433813]['attachChange'],_0x27556b=_0xac2d02(_0x1cace8['diffData'][_0x433813]['attributesBefore'])||{},_0x4db747=this['_makeModelFromViewString'](_0x1cace8['diffData'][_0x433813]['deletions']);_0x4db747['rootName']=_0x433813,_0x4db747['_isAttached']=!_0x5ba5ea||!_0x5ba5ea['isAttached'],_0x4db747['isAttached']=()=>_0x4db747['_isAttached'],this['_baseRoots']['set'](_0x433813,_0x4db747),this['_baseRootsAttributes']['set'](_0x433813,_0x27556b),_0x5ba5ea&&this['_touchedRoots']['set'](_0x433813,_0x5ba5ea);const _0x25d2b8=this['_makeIdsRoot'](_0x4db747);this['_baseIdsRoots']['set'](_0x433813,_0x25d2b8);for(const [_0x36c044,_0x372a98]of _0x4db747['markers']){if(!_0x36c044['startsWith']('revision:'))continue;const _0x35b8dc=_0x36c044['split'](':')[0x2];for(const _0x95502b of _0x372a98['getWalker']({'singleCharacters':!0x0})){const _0x10f958=this['_getVidAttributeName'](_0x95502b),_0x40465e='elementEnd'==_0x95502b['type']?_0x95502b['previousPosition']['path']['slice'](0x0,-0x1):_0x95502b['previousPosition']['path'],_0x575396=_0x25d2b8['getNodeByPath'](_0x40465e)['getAttribute'](_0x10f958);this['_touched']['set'](_0x575396,{'userId':_0x35b8dc});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3d7b33=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x670b5c=>!this['_touched']['has'](_0x670b5c));let _0x3fb5b0=0x0;const _0x4dd314=new Map();for(const _0x48ea44 in _0x1cace8['diffData']){const _0x591f9a=_0x1cace8['diffData'][_0x48ea44]['attachChange'],_0x2d4880=_0xac2d02(_0x1cace8['diffData'][_0x48ea44]['attributesAfter'])||{},_0x57fa1b=this['_makeModelFromViewString'](_0x1cace8['diffData'][_0x48ea44]['insertions']);_0x57fa1b['rootName']=_0x48ea44,_0x57fa1b['_isAttached']=!_0x591f9a||_0x591f9a['isAttached'],_0x57fa1b['isAttached']=()=>_0x57fa1b['_isAttached'],this['_diffRoots']['set'](_0x48ea44,_0x57fa1b),this['_diffRootsAttributes']['set'](_0x48ea44,_0x2d4880);const _0x5a0f54=this['_makeIdsRoot'](_0x57fa1b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x48ea44,_0x5a0f54),_0x4dd314['set'](_0x48ea44,_0x57fa1b['isAttached']()?_0x2d4880:{});for(const [_0x3ed2eb,_0x21f4a9]of _0x57fa1b['markers']){if(!_0x3ed2eb['startsWith']('revision:'))continue;const _0x442075=_0x3ed2eb['split'](':')[0x2];for(const _0x4f3f4c of _0x21f4a9['getWalker']({'singleCharacters':!0x0})){const _0x399f8f=this['_getVidAttributeName'](_0x4f3f4c),_0x5523bb=this['_revisionId']++,_0x476f70='elementEnd'==_0x4f3f4c['type']?_0x4f3f4c['previousPosition']['path']['slice'](0x0,-0x1):_0x4f3f4c['previousPosition']['path'];_0x5a0f54['getNodeByPath'](_0x476f70)['_setAttribute'](_0x399f8f,_0x5523bb),this['_touched']['set'](_0x5523bb,{'userId':_0x442075});}}for(const _0x19ef39 of this['editor']['model']['createRangeIn'](_0x57fa1b)['getWalker']({'singleCharacters':!0x0})){const _0x56de54=this['_getVidAttributeName'](_0x19ef39),_0xbf2ecb='elementEnd'==_0x19ef39['type']?_0x19ef39['previousPosition']['path']['slice'](0x0,-0x1):_0x19ef39['previousPosition']['path'],_0x377002=_0x5a0f54['getNodeByPath'](_0xbf2ecb);_0x377002['getAttribute'](_0x56de54)>0x0||_0x377002['_setAttribute'](_0x56de54,_0x3d7b33[_0x3fb5b0++]);}for(const [_0x4defe1,_0x41b7d6]of _0x57fa1b['markers'])_0x4defe1['startsWith']('revision:')||this['_markers']['set'](_0x4defe1,_0x41b7d6);}const _0x49ff04=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x49ff04),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x49ff04,0x1));const _0x8f329d=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x8f329d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x8f329d,0x1));const _0x34dabc=Array['from'](this['_diffRoots'])['map'](([_0x91bb96,_0x199504])=>[_0x91bb96,T(_0x199504)]);this['_saveMetaData'](this['_lastTo'],_0x34dabc,this['_markers'],_0x4dd314);}['_makeModelFromViewString'](_0x1ba32e){const _0x23760a=JSON['parse'](_0x1ba32e),_0x2ad4f1=this['editor']['editing']['view']['document'],_0x4a0ad4=new _0x1bc3ac(_0x2ad4f1,_0x23760a['map'](_0xe3ef3d=>P(_0xe3ef3d,this['editor'])));return this['editor']['data']['toModel'](_0x4a0ad4);}['_saveMetaData'](_0x5ad271,_0x5a5a28,_0x51239f,_0x124a35){const _0x1b9e60=new Map(_0x5a5a28),_0x3560c0=new Map(_0xac2d02(_0x124a35)),_0x33b423=new Map();for(const [_0x229231,_0x1f0fc2]of _0x51239f)_0x33b423['set'](_0x229231,{'start':_0x1f0fc2['start']['clone'](),'end':_0x1f0fc2['end']['clone'](),'rootName':_0x1f0fc2['root']['rootName']});this['_savedMetaData']['set'](_0x5ad271,{'roots':_0x1b9e60,'markers':_0x33b423,'rootsAttributes':_0x3560c0});}['_removeMetaData'](_0x32a08e){this['_savedMetaData']['delete'](_0x32a08e);}['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'](_0x313b0f,_0x277270=null){let _0x25dbce=null;_0x313b0f['is']('documentFragment')||(_0x25dbce=new ut(_0x313b0f['name'],{'vid_start':null===_0x277270?this['_revisionId']++:_0x277270++}));const _0x34447e=[];for(const _0x470172 of _0x313b0f['getChildren']())if(_0x470172['is']('element')){_0x34447e['push'](this['_makeIdsRoot'](_0x470172,_0x277270));const _0x3ab50f=_0x34447e[_0x34447e['length']-0x1];null!==_0x277270&&(_0x277270=_0x3ab50f['is']('element','$text')?_0x3ab50f['getAttribute']('vid')+0x1:_0x3ab50f['getAttribute']('vid_end')+0x1);}else{for(let _0x309559=0x0;_0x309559<_0x470172['offsetSize'];_0x309559++)_0x34447e['push'](new ut('$text',{'vid':null===_0x277270?this['_revisionId']++:_0x277270++}));}if(_0x313b0f['is']('documentFragment')){const _0x439907=F(_0x313b0f['rootName']);return _0x439907['_insertChild'](0x0,_0x34447e),_0x439907;}return _0x25dbce['_setAttribute']('vid_end',null===_0x277270?this['_revisionId']++:_0x277270++),_0x25dbce['_insertChild'](0x0,_0x34447e),_0x25dbce;}['_calculateMetaData'](_0x101f6e,_0x1beda6,_0x34aa99){this['_reset']();const {roots:_0x371da4,markers:_0x4d01f7,rootsAttributes:_0x26d647}=this['_savedMetaData']['get'](_0x101f6e);this['_baseRoots']=new Map(_0x371da4),this['_baseRootsAttributes']=new Map(_0xac2d02(_0x26d647));for(const [_0x35d9b6,_0x1c060d]of this['_baseRoots'])if('$graveyard'!==_0x35d9b6&&(this['_diffRoots']['set'](_0x35d9b6,T(_0x1c060d)),this['_diffRootsAttributes']=new Map(_0xac2d02(_0x26d647)),_0x34aa99)){const _0x29bc50=this['_revisionId'];this['_idsRoots']['set'](_0x35d9b6,this['_makeIdsRoot'](_0x1c060d)),this['_baseIdsRoots']['set'](_0x35d9b6,this['_makeIdsRoot'](_0x1c060d,_0x29bc50));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x34aa99&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3f5a95,_0x34c57e]of _0x4d01f7){const _0x1152ac=this['_baseRoots']['get'](_0x34c57e['rootName']),_0x2e2eda=this['_diffRoots']['get'](_0x34c57e['rootName']),_0x5e77d4=new ft(this['_fixPosition'](_0x34c57e['start'],_0x1152ac),this['_fixPosition'](_0x34c57e['end'],_0x1152ac)),_0x4542a7=this['_fixRange'](_0x5e77d4,_0x2e2eda);_0x1152ac['markers']['set'](_0x3f5a95,_0x5e77d4),this['_markers']['set'](_0x3f5a95,_0x4542a7);}this['_applyOperations'](_0x101f6e,_0x1beda6,_0x34aa99);}['_applyOperations'](_0x588ca3,_0x2e3c49,_0x201555){for(const _0x5493ea of this['source']['getOperations'](_0x588ca3,_0x2e3c49))this['_handleOperation'](_0x5493ea,_0x201555);for(const _0x130366 of this['_diffRoots']['values']())_0x130366['markers']['clear']();for(const [_0x4d92dd,_0x25c80f]of this['_markers']){this['_diffRoots']['get'](_0x25c80f['root']['rootName'])['markers']['set'](_0x4d92dd,_0x25c80f['clone']());}const _0x323a37=new Map(),_0x7c13fb=new Map();for(const [_0xba7b3e,_0x17bc0b]of this['_diffRoots'])_0x323a37['set'](_0xba7b3e,T(_0x17bc0b)),_0x7c13fb['set'](_0xba7b3e,this['_diffRootsAttributes']['get'](_0xba7b3e));this['_saveMetaData'](_0x2e3c49,_0x323a37,this['_markers'],_0x7c13fb);}['_getPreviousFrom'](_0x342081){const _0x431764=Array['from'](this['_savedMetaData']['keys']());_0x431764['sort']((_0x60d549,_0x2423c4)=>_0x60d549-_0x2423c4),_0x431764['reverse']();for(const _0x2cee76 of _0x431764)if(_0x2cee76<_0x342081)return _0x2cee76;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2b9d19,_0x2a0678){const _0x4a01d0=Array['from'](_0x2a0678['markers'])['map'](([_0x429860,_0x1773e8])=>[_0x429860,this['_fixRange'](_0x1773e8,_0x2b9d19)]);_0x2b9d19['markers']=new Map(_0x4a01d0);}['_transformMarkers'](_0x1a608a){for(const _0x4f054f of this['_markers']['values']()){const _0x55bec8=_0x4f054f['getTransformedByOperation'](_0x1a608a),_0x51e884=ft['_createFromRanges'](_0x55bec8);_0x4f054f['start']=_0x51e884['start'],_0x4f054f['end']=_0x51e884['end'];}}['_handleOperation'](_0x3f129a,_0x37c6d2){if('addRoot'!=_0x3f129a['type']&&'detachRoot'!=_0x3f129a['type']){if('insert'==_0x3f129a['type']){const _0x1ff069=_0x3f129a['position']['root']['rootName'];this['_diffRoots']['has'](_0x1ff069)||(this['_diffRoots']['set'](_0x1ff069,F(_0x1ff069,!0x0)),this['_diffRootsAttributes']['set'](_0x1ff069,{}),_0x37c6d2&&this['_idsRoots']['set'](_0x1ff069,F(_0x1ff069,!0x0)));}else{if('addRootAttribute'==_0x3f129a['type']||'removeRootAttribute'==_0x3f129a['type']||'changeRootAttribute'==_0x3f129a['type'])return void this['_handleRootAttributeOperation'](_0x3f129a);'marker'==_0x3f129a['type']&&this['_handleMarkerOperation'](_0x3f129a);}if('marker'!==_0x3f129a['type']){const _0x21dd37=this['_cloneOperation'](_0x3f129a,this['_diffRoots']);_0x21dd37['_execute'](),this['_transformMarkers'](_0x21dd37);}if(_0x37c6d2)switch(_0x3f129a['type']){case'insert':this['_handleInsertOperation'](_0x3f129a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3f129a);break;case'merge':this['_handleMergeOperation'](_0x3f129a);break;case'split':this['_handleSplitOperation'](_0x3f129a);}}else this['_handleRootOperation'](_0x3f129a,_0x37c6d2);}['_cloneOperation'](_0x38fed9,_0x55c478){const _0x11b3ac=_0x38fed9['clone']();return _0x11b3ac['_authorId']=_0x38fed9['_authorId'],this['_fixOperation'](_0x11b3ac,_0x55c478),_0x11b3ac;}['_getBaseVids'](_0x5cf67c){return _0x5cf67c['map'](_0x33189e=>{const _0x2cdb3f=this['_getVidAttributeName'](_0x33189e);return Number(_0x33189e['item']['getAttribute'](_0x2cdb3f));});}['_generateTape'](_0x1dc38d,_0xbc895b){if(_0x1dc38d['is']('element','$text'))_0xbc895b['push']({'item':_0x1dc38d,'type':'text'});else{_0x1dc38d['is']('element')&&_0xbc895b['push']({'item':_0x1dc38d,'type':'elementStart'});for(const _0x3b7f74 of _0x1dc38d['getChildren']())this['_generateTape'](_0x3b7f74,_0xbc895b);_0x1dc38d['is']('element')&&_0xbc895b['push']({'item':_0x1dc38d,'type':'elementEnd'});}return _0xbc895b;}['_getState'](){const _0x507a86=new Map(this['_touched']),_0xc1f9a4=new Map(_0x507a86),_0x1faa6c=new Map(),_0x1e6305={'insertions':{},'deletions':{}},_0x44e3a1={'insertions':{},'deletions':{}},_0x360ed4=new Map(),_0x17fce3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x17fce3['delete']('$graveyard');for(const _0x1e5292 of _0x17fce3){const _0x3db29=this['_diffRoots']['get'](_0x1e5292)||F(_0x1e5292,!0x1),_0x480022=this['_baseRoots']['get'](_0x1e5292)||F(_0x1e5292,!0x1);_0x3db29['isAttached']()||_0x480022['isAttached']()?(_0x1e6305['insertions'][_0x1e5292]=T(_0x3db29),_0x1e6305['deletions'][_0x1e5292]=T(_0x480022),this['_copyMarkers'](_0x1e6305['deletions'][_0x1e5292],_0x480022),this['_copyMarkers'](_0x1e6305['insertions'][_0x1e5292],_0x3db29),_0x44e3a1['insertions'][_0x1e5292]=this['_generateTape'](this['_idsRoots']['get'](_0x1e5292),[]),_0x44e3a1['deletions'][_0x1e5292]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1e5292)||F(_0x1e5292,!0x1),[])):_0x17fce3['delete'](_0x1e5292);}for(const _0x2a038f of _0x17fce3){const _0x39921b=_0x44e3a1['insertions'][_0x2a038f];for(const _0xb494f7 of _0x39921b){const _0x3e93d7=this['_getVidAttributeName'](_0xb494f7),_0x3b5436=_0xb494f7['item']['getAttribute'](_0x3e93d7);_0xc1f9a4['delete'](_0x3b5436),_0x3b5436>=this['_startingRevisionId']&&_0x1faa6c['set'](_0x3b5436,_0x507a86['get'](_0x3b5436));}}for(const _0x54771d of _0x17fce3){const _0x46d77b=_0x44e3a1['insertions'][_0x54771d],_0x466c72=this['_getBaseVids'](_0x44e3a1['deletions'][_0x54771d]);let _0x58f0b5=0x0;for(const _0x5b7b05 of _0x46d77b){const _0x4795c6=this['_getVidAttributeName'](_0x5b7b05),_0x552480=_0x5b7b05['item']['getAttribute'](_0x4795c6);if(!_0x1faa6c['has'](_0x552480)&&!_0x360ed4['has'](_0x552480)){if(_0xc1f9a4['has'](_0x552480))_0x58f0b5++;else{if(_0x552480!=_0x466c72[_0x58f0b5]){const _0x48ee49=_0x507a86['get'](_0x552480)||_0x507a86['get'](_0x466c72[_0x58f0b5]);for(;_0x552480!=_0x466c72[_0x58f0b5];)_0xc1f9a4['has'](_0x466c72[_0x58f0b5])||(_0x360ed4['set'](_0x466c72[_0x58f0b5],_0x48ee49),_0x507a86['set'](_0x466c72[_0x58f0b5],_0x48ee49)),_0x58f0b5++;}_0x58f0b5++;}}}}for(const _0x4ea2d7 of _0x17fce3){const _0xb75f7c=_0x44e3a1['insertions'][_0x4ea2d7];for(const _0x9d7039 of _0xb75f7c){const _0x4c1f0e=this['_getVidAttributeName'](_0x9d7039),_0x4ea273=_0x9d7039['item']['getAttribute'](_0x4c1f0e);if(_0x360ed4['has'](_0x4ea273)){const _0x2bde93=_0x360ed4['get'](_0x4ea273);_0xc1f9a4['has'](_0x4ea273)||_0xc1f9a4['set'](_0x4ea273,{..._0x2bde93}),_0x1faa6c['set'](_0x4ea273,{..._0x2bde93});}}}for(const _0x4f83ad of _0xc1f9a4['keys']())_0x4f83ad>=this['_startingRevisionId']&&_0xc1f9a4['delete'](_0x4f83ad);const _0x1a93df=new Map();for(const _0x4ab975 of _0x17fce3){let _0x5ebf44=_0x44e3a1['insertions'][_0x4ab975];for(const _0x92860a of _0x5ebf44)if(_0x92860a['item']['is']('element','tableCell')){const _0x429a4d=this['_getVidAttributeName'](_0x92860a),_0x334e15=_0x92860a['item']['getAttribute'](_0x429a4d);if(_0x1faa6c['has'](_0x334e15)){const _0x5c4563=_0x92860a['item']['parent']['parent']['getAttribute']('vid_start'),_0x9f301a=_0x1a93df['get'](_0x5c4563)||new Set();_0x9f301a['add'](_0x1faa6c['get'](_0x334e15)['userId']),_0x1a93df['set'](_0x5c4563,_0x9f301a);}}_0x5ebf44=_0x44e3a1['deletions'][_0x4ab975];for(const _0x34c387 of _0x5ebf44)if(_0x34c387['item']['is']('element','tableCell')){const _0x5c8a6e=this['_getVidAttributeName'](_0x34c387),_0x1aadd6=_0x34c387['item']['getAttribute'](_0x5c8a6e);if(_0xc1f9a4['has'](_0x1aadd6)){const _0x4bc386=_0x34c387['item']['parent']['parent']['getAttribute']('vid_start'),_0x1422b7=_0x1a93df['get'](_0x4bc386)||new Set();_0x1422b7['add'](_0xc1f9a4['get'](_0x1aadd6)['userId']),_0x1a93df['set'](_0x4bc386,_0x1422b7);}}for(const _0x4dff3f of _0x1a93df['keys']())(_0x1faa6c['has'](_0x4dff3f)||_0xc1f9a4['has'](_0x4dff3f))&&_0x1a93df['delete'](_0x4dff3f);}for(const _0x132c84 of _0x17fce3){const _0x2ff11c=_0x44e3a1['insertions'][_0x132c84];let _0x2fe37e=null,_0x1a2e67=null;for(const _0x514ac9 of _0x2ff11c){const _0x505e3c=this['_getVidAttributeName'](_0x514ac9),_0x3510a6=_0x514ac9['item']['getAttribute'](_0x505e3c),_0x1278df=_0x1a93df['get'](_0x3510a6);_0x1278df&&'elementStart'==_0x514ac9['type']&&(_0x2fe37e=Array['from'](_0x1278df)[0x0],_0x1a2e67=_0x514ac9['item']['getAttribute']('vid_end')),_0x2fe37e&&(_0xc1f9a4['set'](_0x3510a6,{'userId':_0x2fe37e}),_0x1faa6c['set'](_0x3510a6,{'userId':_0x2fe37e})),_0x3510a6==_0x1a2e67&&(_0x2fe37e=null,_0x1a2e67=null);}}const _0x24bbdd={},_0x3599ae=new Set();for(const _0x3af968 of _0x17fce3){const _0x4a21ba=_0x1e6305['deletions'][_0x3af968],_0x32a17a=_0x1e6305['insertions'][_0x3af968];for(const {userId:_0x3002cd}of this['_touchedMarkers']['values']())null!==_0x3002cd&&_0x3599ae['add'](_0x3002cd);for(const {userId:_0xc3a75f}of this['_touchedRoots']['values']())null!==_0xc3a75f&&_0x3599ae['add'](_0xc3a75f);this['_markChanges'](_0x32a17a,_0x44e3a1['insertions'][_0x3af968],_0x1faa6c,'insertion',_0x3599ae),this['_markChanges'](_0x4a21ba,_0x44e3a1['deletions'][_0x3af968],_0xc1f9a4,'deletion',_0x3599ae),_0x24bbdd[_0x3af968]={'insertions':this['_prepareViewToSave'](_0x32a17a),'deletions':this['_prepareViewToSave'](_0x4a21ba),'attachChange':this['_touchedRoots']['get'](_0x3af968)||null,'attributesBefore':_0xac2d02(this['_baseRootsAttributes']['get'](_0x3af968))||{},'attributesAfter':_0xac2d02(this['_diffRootsAttributes']['get'](_0x3af968))};}return{'diffData':_0x24bbdd,'authorsIds':Array['from'](_0x3599ae)};}['_processRootBeforeSave'](_0x151a05){for(const [,_0x13e96c]of _0x151a05['markers']){const _0x3ca748=_0x13e96c['start']['getAncestors']()['filter'](_0xd6c55e=>'tableCell'==_0xd6c55e['name']);for(const _0x302217 of _0x3ca748)0x1==_0x302217['childCount']&&_0x302217['getChild'](0x0)['is']('element','paragraph')&&_0x302217['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x170a40){this['_processRootBeforeSave'](_0x170a40);const _0x49994c=this['editor']['data']['toView'](_0x170a40,{}),_0x5530f3=Array['from'](_0x49994c['getChildren']())['map'](_0x4d2e1c=>this['_getViewJson'](_0x4d2e1c));return JSON['stringify'](_0x5530f3);}['_getViewJson'](_0x5edfcb){if(_0x5edfcb['is']('$text'))return _0x5edfcb['data'];{const _0x31bac3=_0x5edfcb;return{'type':Object['keys'](E)['find'](_0x1aab4d=>_0x5edfcb instanceof E[_0x1aab4d]),'name':_0x31bac3['name'],'attributes':Array['from'](_0x31bac3['getAttributes']()),'children':Array['from'](_0x31bac3['getChildren']())['map'](_0x1e8671=>this['_getViewJson'](_0x1e8671))};}}['_markChanges'](_0x51941a,_0x289ca9,_0x4a9ac6,_0x3a1b0b,_0x2322c3){let _0x29dfca=null,_0x3889ab=null,_0x1346e9=0x0;const _0x21e8d7=this['editor']['model'];for(let _0x1b678c=0x0;_0x1b678c<_0x289ca9['length'];_0x1b678c++){const _0x13542e=this['_getVidAttributeName'](_0x289ca9[_0x1b678c]),_0x53058e=_0x289ca9[_0x1b678c]['item']['getAttribute'](_0x13542e),_0x18c212=_0x4a9ac6['get'](_0x53058e),_0x24fdd4=_0x1b678c==_0x289ca9['length']-0x1;(!_0x29dfca&&_0x18c212&&(_0x29dfca=_0x18c212,_0x3889ab=_0x289ca9[_0x1b678c]),_0x29dfca&&(!_0x18c212||_0x18c212['userId']!=_0x29dfca['userId']))&&(_0x370c6c(_0x18c212,B(_0x3889ab,_0x51941a,_0x21e8d7),B(_0x289ca9[_0x1b678c],_0x51941a,_0x21e8d7)),_0x29dfca=_0x18c212||null,_0x3889ab=_0x18c212?_0x289ca9[_0x1b678c]:null),_0x29dfca&&_0x24fdd4&&_0x370c6c(_0x18c212,B(_0x3889ab,_0x51941a,_0x21e8d7),J(_0x289ca9[_0x1b678c],_0x51941a,_0x21e8d7));}function _0x370c6c(_0x3ca68a,_0x78bb15,_0x39cb28){const _0x434feb=_0x29dfca['userId'],_0x3ca888='revision:'+_0x3a1b0b+':'+_0x434feb+':'+_0x1346e9++,_0x2c8ead=_0x21e8d7['createRange'](_0x78bb15,_0x39cb28);_0x51941a['markers']['set'](_0x3ca888,_0x2c8ead),null!==_0x434feb&&_0x2322c3['add'](_0x434feb);}}['_getVidAttributeName'](_0x1bcce5){switch(_0x1bcce5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5a9ae4,_0x5c7a9b){_0x5a9ae4['baseVersion']=null;for(const _0x235821 in _0x5a9ae4){const _0x4bb08c=_0x5a9ae4[_0x235821];if(_0x4bb08c instanceof vt){const _0x22fab2=_0x5c7a9b['get'](_0x4bb08c['root']['rootName']);_0x5a9ae4[_0x235821]=this['_fixPosition'](_0x4bb08c,_0x22fab2);}if(_0x4bb08c instanceof ft){const _0x6a0c36=_0x5c7a9b['get'](_0x4bb08c['root']['rootName']);_0x5a9ae4[_0x235821]=this['_fixRange'](_0x4bb08c,_0x6a0c36);}'root'===_0x235821&&(_0x5a9ae4['root']=_0x5c7a9b['get'](_0x5a9ae4['root']['rootName']));}}['_fixRange'](_0x5db4ef,_0x4f2555){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5db4ef['start'],_0x4f2555),this['_fixPosition'](_0x5db4ef['end'],_0x4f2555));}['_fixPosition'](_0x1d7a76,_0x3ef821){return this['editor']['model']['createPositionFromPath'](_0x3ef821,_0x1d7a76['path'],_0x1d7a76['stickiness']);}['_handleInsertOperation'](_0x231a54){const _0x378c25=this['_idsRoots']['get'](_0x231a54['position']['root']['rootName']),_0x37006c=this['_fixPosition'](_0x231a54['position'],_0x378c25),_0x3de8d2=null===_0x231a54['_authorId']?null:_0x231a54['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b932d=_0x37006c['parent'],_0x65ef84=this['_revisionId'],_0x3f3967=[];for(const _0x2b781a of _0x231a54['nodes'])if(_0x2b781a['is']('element'))_0x3f3967['push'](this['_makeIdsRoot'](_0x2b781a));else{for(let _0xe84850=0x0;_0xe84850<_0x2b781a['offsetSize'];_0xe84850++)_0x3f3967['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3f0366=this['_revisionId'];for(let _0x24c6c3=_0x65ef84;_0x24c6c3<_0x3f0366;_0x24c6c3++)this['_touched']['set'](_0x24c6c3,{'userId':_0x3de8d2});_0x4b932d['_insertChild'](_0x37006c['offset'],_0x3f3967);}['_handleMoveOperation'](_0x163529){(_0x163529=this['_cloneOperation'](_0x163529,this['_idsRoots']))['_execute']();const _0x541e13=null===_0x163529['_authorId']?null:_0x163529['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f6fb7=_0x163529['getMovedRangeStart'](),_0x2b2757=_0x2f6fb7['parent'],_0x95303d=_0x2f6fb7['offset'];!function _0x3d9a2a(_0x39081d,_0x352661,_0x54fa83,_0x11ca27){for(let _0x1bbb13=_0x54fa83;_0x1bbb13<_0x11ca27;_0x1bbb13++){const _0x231b67=_0x352661['getChild'](_0x1bbb13);_0x231b67['is']('element','$text')?_0x39081d['set'](_0x231b67['getAttribute']('vid'),{'userId':_0x541e13}):(_0x39081d['set'](_0x231b67['getAttribute']('vid_start'),{'userId':_0x541e13}),_0x3d9a2a(_0x39081d,_0x231b67,0x0,_0x231b67['childCount']),_0x39081d['set'](_0x231b67['getAttribute']('vid_end'),{'userId':_0x541e13}));}}(this['_touched'],_0x2b2757,_0x95303d,_0x95303d+_0x163529['howMany']);}['_handleMergeOperation'](_0x130298){const _0x18c5a6=null===(_0x130298=this['_cloneOperation'](_0x130298,this['_idsRoots']))['_authorId']?null:_0x130298['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d9e8b=_0x130298['targetPosition']['parent'],_0x13af89=_0x130298['sourcePosition']['parent'],_0x47f007=_0x4d9e8b['getAttribute']('vid_end'),_0x2dcca4=_0x13af89['getAttribute']('vid_start');_0x4d9e8b['_setAttribute']('vid_end',_0x13af89['getAttribute']('vid_end')),_0x13af89['_setAttribute']('vid_end',_0x47f007),this['_touched']['set'](_0x2dcca4,{'userId':_0x18c5a6}),this['_touched']['set'](_0x47f007,{'userId':_0x18c5a6}),_0x130298['_execute']();}['_handleSplitOperation'](_0x4efbcd){const _0x19794b=null===(_0x4efbcd=this['_cloneOperation'](_0x4efbcd,this['_idsRoots']))['_authorId']?null:_0x4efbcd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3fbb1d=_0x4efbcd['graveyardPosition'],_0x50068d=_0x4efbcd['splitPosition']['parent'];_0x4efbcd['_execute']();const _0x4380e7=_0x50068d['getAttribute']('vid_end'),_0x409610=_0x4efbcd['insertionPosition']['nodeAfter'];if(_0x3fbb1d){const _0x13119b=_0x409610['getAttribute']('vid_end'),_0x69dd82=_0x50068d['getAttribute']('vid_end');_0x50068d['_setAttribute']('vid_end',_0x13119b),_0x409610['_setAttribute']('vid_end',_0x69dd82),this['_touched']['set'](_0x50068d['getAttribute']('vid_end'),{'userId':_0x19794b}),this['_touched']['set'](_0x409610['getAttribute']('vid_start'),{'userId':_0x19794b});}else{const _0x28b851=this['_revisionId']++,_0x520ef4=this['_revisionId']++;_0x50068d['_setAttribute']('vid_end',_0x28b851),_0x409610['_setAttribute']('vid_start',_0x520ef4),_0x409610['_setAttribute']('vid_end',_0x4380e7),this['_touched']['set'](_0x28b851,{'userId':_0x19794b}),this['_touched']['set'](_0x520ef4,{'userId':_0x19794b});}}['_handleMarkerOperation'](_0x589867){if(!_0x589867['affectsData'])return;const _0x4032de=(_0x589867=this['_cloneOperation'](_0x589867,this['_diffRoots']))['oldRange']?_0x589867['oldRange']['root']:null,_0x5e718b=_0x589867['newRange']?_0x589867['newRange']['root']:null;_0x4032de&&this['_markers']['delete'](_0x589867['name']),_0x5e718b&&this['_markers']['set'](_0x589867['name'],_0x589867['newRange']['clone']());const _0x10deb8=null===_0x589867['_authorId']?null:_0x589867['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfda735=_0x589867['name'];if(!this['_touchedMarkers']['has'](_0xfda735))return void this['_touchedMarkers']['set'](_0xfda735,{'range':_0x589867['oldRange'],'userId':_0x10deb8});const _0x47bbc5=this['_touchedMarkers']['get'](_0xfda735),_0x5e76b6=_0x47bbc5['range'],_0x577704=_0x589867['newRange'];null==_0x5e76b6&&null==_0x577704||_0x5e76b6&&_0x577704&&_0x5e76b6['isEqual'](_0x577704)?this['_touchedMarkers']['delete'](_0x589867['name']):_0x47bbc5['userId']=_0x10deb8;}['_handleRootOperation'](_0xb7c838,_0x120168){this['_diffRoots']['has'](_0xb7c838['rootName'])?this['_diffRoots']['get'](_0xb7c838['rootName'])['_isAttached']=_0xb7c838['isAdd']:(this['_diffRoots']['set'](_0xb7c838['rootName'],F(_0xb7c838['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xb7c838['rootName'],{}),_0x120168&&this['_idsRoots']['set'](_0xb7c838['rootName'],F(_0xb7c838['rootName'],!0x0)));const _0x5ec2ee=null===_0xb7c838['_authorId']?null:_0xb7c838['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x620b54=this['_touchedRoots']['get'](_0xb7c838['rootName']);_0x620b54&&_0x620b54['userId']===_0x5ec2ee?this['_touchedRoots']['delete'](_0xb7c838['rootName']):this['_touchedRoots']['set'](_0xb7c838['rootName'],{'userId':_0x5ec2ee,'isAttached':_0xb7c838['isAdd']});}['_handleRootAttributeOperation'](_0x34ef00){const _0x12f701=this['_diffRootsAttributes']['get'](_0x34ef00['root']['rootName']);null===_0x34ef00['newValue']?delete _0x12f701[_0x34ef00['key']]:_0x12f701[_0x34ef00['key']]=_0x34ef00['newValue'];}}function T(_0x5160c9){const _0x278afa=F(_0x5160c9['rootName'],_0x5160c9['isAttached']());for(const _0x40ed61 of _0x5160c9['getChildren']()){const _0x45432b=_0x40ed61['_clone'](!0x0);_0x278afa['_appendChild'](_0x45432b);}return _0x278afa;}function F(_0x4b66ac,_0x29d358=!0x0){const _0x17a47f=new gt();return _0x17a47f['rootName']=_0x4b66ac,_0x17a47f['_isAttached']=_0x29d358,_0x17a47f['isAttached']=()=>_0x17a47f['_isAttached'],_0x17a47f;}function B(_0x1fa46f,_0x5875ee,_0x439110){const _0x471a2a='elementEnd'==_0x1fa46f['type']?_0x439110['createPositionAt'](_0x1fa46f['item'],'end'):_0x439110['createPositionBefore'](_0x1fa46f['item']);return _0x439110['createPositionFromPath'](_0x5875ee,_0x471a2a['path'],_0x471a2a['stickiness']);}function J(_0x268528,_0x20c473,_0x570ba7){const _0x36efdd='elementStart'==_0x268528['type']?_0x570ba7['createPositionAt'](_0x268528['item'],0x0):_0x570ba7['createPositionAfter'](_0x268528['item']);return _0x570ba7['createPositionFromPath'](_0x20c473,_0x36efdd['path'],_0x36efdd['stickiness']);}class os extends _0xd5e275{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2128b4,_0x26a77f){super(_0x2128b4),this['focusTracker']=new _0x2aa214(),this['keystrokes']=new _0x67c2bd(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x26a77f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x5a74b8({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2b8b3d=_0x42e1cc=>_0x42e1cc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2b8b3d),this['keystrokes']['set']('arrowleft',_0x2b8b3d),this['keystrokes']['set']('arrowup',_0x2b8b3d),this['keystrokes']['set']('arrowdown',_0x2b8b3d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x50356a){this['revisionNameInputView']['fieldView']['element']['value']=_0x50356a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1920bf){const _0x18d1b6=new at(this['locale'],ti),_0x266da5=_0x18d1b6['fieldView'];_0x266da5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x242a2a=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1920bf&&(_0x242a2a+='\x20('+m(this['locale'],'optional')+')'),(_0x18d1b6['label']=_0x242a2a,_0x266da5['on']('input',()=>{this['revisionNameInputValue']=_0x266da5['element']['value']['trim']();}),_0x18d1b6);}}class f extends _0x14d729{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3f5e17=this['editor'],_0x5c3a48=_0x3f5e17['plugins']['get']('RevisionTracker');_0x3f5e17['ui']['componentFactory']['add']('revisionHistory',_0x1bbc2b=>{const _0x50df34=_0x49d6ff(_0x1bbc2b),_0x1bab05=_0x50df34['panelView']['children'],_0x5a19a8=new _0x4dbcfb(_0x1bbc2b),_0x15e010=new _0x51450a(_0x1bbc2b),_0xdd0f91=new _0x18c990(_0x1bbc2b),_0x3482c0=new _0x51450a(_0x1bbc2b),_0x3167c4=new _0x18c990(_0x1bbc2b);return _0x50df34['bind']('isEnabled')['to'](_0x5c3a48,'isReady',_0x5c3a48,'isEnabled',_0x3f5e17,'isReadOnly',(_0x52a86c,_0x6f59c3,_0x4b0483)=>_0x52a86c&&_0x6f59c3&&!_0x4b0483),_0x50df34['buttonView']['set']({'icon':_0x409341,'label':m(_0x1bbc2b,'Revision\x20history'),'tooltip':!0x0}),_0xdd0f91['set']({'label':m(_0x1bbc2b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xdd0f91['bind']('isEnabled')['to'](_0x5c3a48,'isReady',_0x5c3a48,'isEnabled',_0x3f5e17,'isReadOnly',(_0xa874f4,_0x5efb4b,_0x865473)=>_0xa874f4&&_0x5efb4b&&!_0x865473),_0xdd0f91['on']('execute',()=>this['_showDialog']()),_0x3167c4['set']({'label':m(_0x1bbc2b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3167c4['bind']('isEnabled')['to'](_0x5c3a48,'isReady',_0x3f5e17,'isReadOnly',(_0x14971c,_0x56aac7)=>_0x14971c&&!_0x56aac7),_0x3167c4['on']('execute',()=>{_0x3f5e17['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x50df34['isOpen']=!0x1,_0x3f5e17['editing']['view']['focus']();}),_0x15e010['children']['add'](_0xdd0f91),_0x3482c0['children']['add'](_0x3167c4),_0x5a19a8['role']='menu',_0x5a19a8['items']['addMany']([_0x15e010,_0x3482c0]),_0x1bab05['add'](_0x5a19a8),_0x50df34;}),_0x3f5e17['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3f634b=this['editor'],_0xadbfe7=_0x3f634b['locale'],_0xf1974e=new _0x5440ea(_0xadbfe7),_0x18559c=new _0x4bb9fe(_0xadbfe7);_0xf1974e['buttonView']['set']({'icon':_0x409341,'label':m(_0xadbfe7,'Revision\x20history')});const _0x1f5a1c=new _0x594fbc(_0xadbfe7,_0xf1974e),_0x2c0dc2=new _0x38b68d(_0xadbfe7);_0x2c0dc2['set']({'label':m(_0xadbfe7,'Save\x20current\x20revision')}),_0x2c0dc2['delegate']('execute')['to'](_0xf1974e),_0x2c0dc2['on']('execute',()=>{this['_showDialog']();}),_0x1f5a1c['children']['add'](_0x2c0dc2),_0x18559c['items']['add'](_0x1f5a1c);const _0x4ba1f0=new _0x594fbc(_0xadbfe7,_0xf1974e),_0x167bc0=new _0x38b68d(_0xadbfe7);return _0x167bc0['set']({'label':m(_0xadbfe7,'Open\x20revision\x20history')}),_0x167bc0['delegate']('execute')['to'](_0xf1974e),_0x167bc0['on']('execute',()=>{_0x3f634b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4ba1f0['children']['add'](_0x167bc0),_0x18559c['items']['add'](_0x4ba1f0),_0xf1974e['panelView']['children']['add'](_0x18559c),_0xf1974e;}['_showDialog'](){const _0x1467c0=this['editor'],_0x398671=_0x1467c0['locale'],_0x54df46=_0x1467c0['plugins']['get']('Dialog'),_0x2c24d3=_0x1467c0['plugins']['get']('RevisionTracker');function _0x4bac1c(_0x1a941f){_0x1467c0['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1a941f['revisionName']?_0x1a941f['revisionNameInputView']['errorText']=m(_0x398671,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1467c0['plugins']['get'](u)['saveRevision']({'name':_0x1a941f['revisionName']}),_0x54df46['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4bac1c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x54df46['show']({'id':'revisionSave','title':m(_0x398671,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1467c0['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x54df46['hide']()},{'label':m(_0x1467c0['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x39a83a){_0x39a83a['bind']('isEnabled')['to'](_0x2c24d3,'isReady',_0x2c24d3,'isEnabled',_0x1467c0,'isReadOnly',(_0x12b0e9,_0x22f2ce,_0x3a43f2)=>_0x12b0e9&&_0x22f2ce&&!_0x3a43f2);},'onExecute':()=>_0x4bac1c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x20806a=this['editor'],_0x396d96=_0x20806a['locale'];this['_saveRevisionFormView']=new os(_0x396d96,_0x20806a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0xd5e275{['changeId'];['_model'];constructor(_0x5ccb9e,_0x5961d0){super(_0x5ccb9e),this['_model']=_0x5961d0,this['changeId']=_0x5961d0['id'];const _0x5a898c=this['bindTemplate'],_0x4d8f3e=m(_0x5ccb9e,_0x5961d0['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5961d0['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5961d0['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5a898c['to']('type',_0x21c92b=>'ck-revision-change__'+_0x21c92b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4d8f3e}]},{'text':'\x20'+_0x5961d0['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x2865e1(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1cd8c8){super(),this['id']=_0x1cd8c8['id']||_0x5396c0(),this['author']=_0x1cd8c8['author'],this['type']=_0x1cd8c8['type'],this['data']=_0x1cd8c8['data']||{},this['rootName']=_0x1cd8c8['rootName'],this['set']('createdAt',_0x1cd8c8['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1b2b23,_0x511022){this['newRevisionId']=_0x1b2b23,this['oldRevisionId']=_0x511022,this['changes']=new _0x155967();}['_setChanges'](_0x3f1b72){for(const _0x1d009b of _0x3f1b72)this['changes']['add'](_0x1d009b);}}const Y={'c':_0x4e0f89,'a':_0x5b45c4,'e':_0x53dc4e,'r':_0x42b38a,'u':_0x39b677};class d extends _0x14d729{['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[_0x3a705b,_0x11057b,j];}constructor(_0x355057){super(_0x355057),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',(_0x335fc0,_0x35ee99,_0x24628c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xf6bdc5=>{for(const _0x21b570 of this['editor']['editing']['view']['document']['roots'])_0x24628c?_0xf6bdc5['removeClass']('ck-editor__editable__overlay',_0x21b570):_0xf6bdc5['addClass']('ck-editor__editable__overlay',_0x21b570);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4a4f0c=>null!==_0x4a4f0c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x195166,_0x4072d9,_0x2fd26f)=>_0x195166&&_0x2fd26f?_0x4072d9['changes']['getIndex'](_0x2fd26f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2a9fdc,_0x3a3b90)=>_0x2a9fdc?_0x3a3b90['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x11057b);}['init'](){const _0x4e87ed=this['editor'],_0x5b5872=new yt(_0x4e87ed,{'direction':'backward'}),_0x42984a=new yt(_0x4e87ed,{'direction':'forward'});(_0x4e87ed['commands']['add']('showPreviousChange',_0x5b5872),_0x4e87ed['commands']['add']('showNextChange',_0x42984a),_0x4e87ed['commands']['add']('restoreRevision',new _t(_0x4e87ed)),this['on']('change:numberOfChanges',()=>{_0x5b5872['refresh'](),_0x42984a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4e87ed['enableReadOnlyMode']('revision-viewer'),_0x4e87ed['plugins']['has']('WidgetToolbarRepository'))&&_0x4e87ed['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x43b9e7){await this['loadRevisionData'](_0x43b9e7);const _0x448781={};for(const _0x52579f in _0x43b9e7['diffData']){if(_0x43b9e7['diffData'][_0x52579f]['attachChange']&&!_0x43b9e7['diffData'][_0x52579f]['attachChange']['isAttached'])continue;const _0x5e4e6c=this['_removeRevisionMarkers'](JSON['parse'](_0x43b9e7['diffData'][_0x52579f]['insertions'])),_0x5bc9ac=this['editor']['editing']['view']['document'],_0xd2094c=new _0x1bc3ac(_0x5bc9ac,_0x5e4e6c['map'](_0x5a37d4=>this['_getViewObj'](_0x5a37d4)));this['editor']['data']['processor']['useFillerType']('marked'),_0x448781[_0x52579f]=this['editor']['data']['processor']['toData'](_0xd2094c),this['editor']['data']['processor']['useFillerType']('default');}return _0x448781;}async['getRevisionRootsAttributes'](_0x45817d){await this['loadRevisionData'](_0x45817d);const _0x40e8a1={};for(const _0x15abd1 in _0x45817d['diffData'])_0x45817d['diffData'][_0x15abd1]['attachChange']&&!_0x45817d['diffData'][_0x15abd1]['attachChange']['isAttached']||(_0x40e8a1[_0x15abd1]=_0x45817d['diffData'][_0x15abd1]['attributesAfter']||{});return _0x40e8a1;}['_removeRevisionMarkers'](_0x3b3cd4){return(_0x3b3cd4=_0x3b3cd4['filter'](_0x148688=>!_0x148688['name']||'revision-start'!==_0x148688['name']&&'revision-end'!==_0x148688['name']))['forEach'](_0xe94ee8=>{'string'!=typeof _0xe94ee8&&(_0xe94ee8['children']=this['_removeRevisionMarkers'](_0xe94ee8['children']),_0xe94ee8['attributes']=_0xe94ee8['attributes']['filter'](_0x1386e0=>!_0x1386e0[0x0]['startsWith']('data-revision-')));}),_0x3b3cd4;}async['compare'](_0x12a550,_0x3f1542,_0x1ef749=!0x1){if(!this['isEnabled'])return;const _0x3aa5ae=this['diff'],_0x3273aa=this['repository'],_0x4242d1='string'==typeof _0x12a550?_0x3273aa['getRevision'](_0x12a550):_0x12a550,_0x551140='string'==typeof _0x3f1542?_0x3273aa['getRevision'](_0x3f1542):_0x3f1542,_0x1e6c5f=_0x4242d1['id'],_0x1ca374=_0x551140?_0x551140['id']:null;if(!_0x1ef749&&this['diff']&&this['diff']['newRevisionId']===_0x1e6c5f&&this['diff']['oldRevisionId']===_0x1ca374)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1e6c5f,_0x1ca374);const _0x56b426=this['_getRevisionsRange'](_0x4242d1,_0x551140,!0x0)['map'](_0xd9dc72=>this['loadRevisionData'](_0xd9dc72));return _0x56b426['push'](new Promise(_0x20a384=>{setTimeout(_0x20a384,0x14);})),Promise['all'](_0x56b426)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2a40db=this['_getDiff'](_0x1e6c5f,_0x1ca374);for(const _0x434f4b of _0x2a40db['changes'])this['_changeIdToChange']['set'](_0x434f4b['id'],_0x434f4b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3ee1a4=>{for(const _0x18ecf5 of this['editor']['model']['document']['getRootNames']())_0x3ee1a4['detachRoot'](_0x18ecf5);for(const _0x12a05f of Object['keys'](_0x2a40db['model'])){const _0x5f4874=_0x3ee1a4['addRoot'](_0x12a05f);for(const _0x36fdc5 of Object['keys'](_0x2a40db['attributes'][_0x12a05f]))_0x3ee1a4['setAttribute'](_0x36fdc5,_0x2a40db['attributes'][_0x12a05f][_0x36fdc5],_0x5f4874);_0x3ee1a4['insert'](_0x2a40db['model'][_0x12a05f],_0x5f4874,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2a40db['changes'])),this['isReady']=!0x0;})['catch'](_0x2794b6=>{console['error'](_0x2794b6),this['_cleanUp'](),_0x3aa5ae&&(this['diff']=_0x3aa5ae),this['isReady']=!0x0;});}['addRevisionData'](_0x564f4f,_0x2b1e2c){const _0x166c40=this['repository']['createRevision'](_0x564f4f);return _0x166c40['on']('_update',(_0x1d494d,_0x37a00c,_0x4b94f3)=>_0x2b1e2c(_0x37a00c,_0x4b94f3,_0x166c40)),this['repository']['addRevision'](_0x166c40),_0x166c40;}['loadRevisionData'](_0x4d7763){if(!_0x4d7763||_0x4d7763['diffData'])return Promise['resolve']();{const _0x51d9f2=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x51d9f2,'revisionId':_0x4d7763['id']})['then'](_0x3fba57=>{_0x4d7763['_update']({'diffData':_0x3fba57['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},_0x16200b=>{for(const _0xe2eb70 of this['editor']['model']['document']['getRootNames']())_0x16200b['detachRoot'](_0xe2eb70);});}['_sortAndFilterDiffChanges'](_0x555e32){const _0xaa79ed=[],_0x1f5b1a=new Map();for(const _0x18d0fc of this['editor']['model']['document']['getRootNames']()){const _0x426293=this['editor']['editing']['view']['getDomRoot'](_0x18d0fc);if(!_0x426293)continue;const _0x506249=_0x426293['getClientRects']()['item'](0x0);_0x506249&&(_0xaa79ed['push'](_0x18d0fc),_0x1f5b1a['set'](_0x18d0fc,_0x506249));}return _0xaa79ed['sort']((_0x551855,_0x3cd267)=>{const _0x4864fe=_0x1f5b1a['get'](_0x551855),_0x4d46c9=_0x1f5b1a['get'](_0x3cd267);return _0x4864fe['y']-_0x4d46c9['y']||_0x4864fe['x']-_0x4d46c9['x'];}),(_0x555e32=_0x555e32['filter'](_0x199644=>_0xaa79ed['includes'](_0x199644['rootName'])))['sort']((_0x731364,_0x3a9a2f)=>_0xaa79ed['indexOf'](_0x731364['rootName'])-_0xaa79ed['indexOf'](_0x3a9a2f['rootName'])),_0x555e32;}['_makeTape'](_0x6161d0){const _0x58c88a=Array['from'](_0x6161d0['markers'])['filter'](([_0x34b989,_0x25b66e])=>_0x34b989['startsWith']('revision:')&&!_0x25b66e['isCollapsed']),_0x540af2=Array['from'](this['editor']['model']['createRangeIn'](_0x6161d0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x58c88a['length'])for(const _0x13529d of _0x540af2){const [_0x5ed58d,_0x56b588]=_0x58c88a[0x0],[,_0x498b3f,_0x4772dc]=_0x5ed58d['split'](':');if(_0x56b588['end']['isEqual'](_0x13529d['nextPosition'])&&_0x58c88a['shift'](),(_0x13529d['previousPosition']['isEqual'](_0x56b588['start'])||_0x13529d['previousPosition']['isAfter'](_0x56b588['start']))&&('insertion'==_0x498b3f?_0x13529d['isAdded']={'userId':_0x4772dc}:'deletion'==_0x498b3f&&(_0x13529d['isRemoved']={'userId':_0x4772dc})),0x0==_0x58c88a['length'])break;}return _0x540af2;}['_refreshStartEndIndex'](_0x124295){const _0xb905f1=new Map();for(let _0xfed464=0x0;_0xfed464<_0x124295['length'];_0xfed464++)'text'===_0x124295[_0xfed464]['type']?(_0x124295[_0xfed464]['item']['startIndex']=_0xfed464,_0x124295[_0xfed464]['item']['endIndex']=_0xfed464):('elementStart'===_0x124295[_0xfed464]['type']?_0x124295[_0xfed464]['item']['startIndex']=_0xfed464:'elementEnd'===_0x124295[_0xfed464]['type']&&(_0x124295[_0xfed464]['item']['endIndex']=_0xfed464),_0xb905f1['set'](_0x124295[_0xfed464]['id'],_0xfed464));for(const _0x97f401 of _0xb905f1['values']())'elementStart'===_0x124295[_0x97f401]['type']?_0x124295[_0x97f401]['item']['endIndex']=_0xb905f1['get'](_0x124295[_0x97f401]['pairId']):'elementEnd'===_0x124295[_0x97f401]['type']&&(_0x124295[_0x97f401]['item']['startIndex']=_0xb905f1['get'](_0x124295[_0x97f401]['pairId']));}['_processTape'](_0x265c70){for(let _0x240172=0x0;_0x240172<_0x265c70['length'];_0x240172++){if('elementStart'===_0x265c70[_0x240172]['type'])_0x265c70[_0x240172]['item']['startIndex']=_0x240172;else{if('elementEnd'===_0x265c70[_0x240172]['type']){_0x265c70[_0x240172]['item']['endIndex']=_0x240172;const _0x58c24d=_0x265c70[_0x240172]['item']['startIndex'];_0x265c70[_0x58c24d]['pairId']=_0x265c70[_0x240172]['id'],_0x265c70[_0x240172]['pairId']=_0x265c70[_0x58c24d]['id'];}else _0x265c70[_0x240172]['item']['startIndex']=_0x240172,_0x265c70[_0x240172]['item']['endIndex']=_0x240172,_0x265c70[_0x240172]['pairId']=null;}_0x265c70[_0x240172]['markersStart']||(_0x265c70[_0x240172]['markersStart']=[],_0x265c70[_0x240172]['markersEnd']=[]);}}['_markInsertions'](_0x1d0ba0,_0x218a0e){const _0x591bf5=_0x1d0ba0['filter'](_0x335c01=>!_0x335c01['isAdded']);for(let _0x29a2c1=0x0;_0x29a2c1<_0x218a0e['length'];_0x29a2c1++)_0x218a0e[_0x29a2c1]['isAdded']&&(_0x591bf5[_0x29a2c1]['isAdded']=_0x218a0e[_0x29a2c1]['isAdded']);}['_makeModelFromViewString'](_0x386456){const _0x206160=JSON['parse'](_0x386456),_0x17f477=this['editor']['editing']['view']['document'],_0x44b35b=new _0x1bc3ac(_0x17f477,_0x206160['map'](_0xb460c5=>this['_getViewObj'](_0xb460c5)));return this['editor']['data']['toModel'](_0x44b35b);}['_getViewObj'](_0x588a0e){const _0x1b4fbd=this['editor']['editing']['view']['document'];if('string'==typeof _0x588a0e)return new _0x3abc98(_0x1b4fbd,_0x588a0e);{const _0x2f3b9c=_0x588a0e['children']['map'](_0x331f11=>this['_getViewObj'](_0x331f11));return new(Y[_0x588a0e['type']]||_0x2cf47f)(_0x1b4fbd,_0x588a0e['name'],_0x588a0e['attributes'],_0x2f3b9c);}}['_getDiff'](_0x3bc5ce,_0x413754=null){const _0x535555=this['repository']['getRevision'](_0x3bc5ce),_0x21c026=_0x413754?this['repository']['getRevision'](_0x413754):null,_0x1605e8=this['_getRevisionsRange'](_0x535555,_0x21c026),_0x4e5afb=_0x1605e8[_0x1605e8['length']-0x1],_0x18be02=new Map(),_0x581c79={'model':{},'attributes':{},'changes':[]},_0x2f4466=new Set(),_0x4670eb=new Map();for(let _0x215b8e=_0x1605e8['length']-0x1;_0x215b8e>=0x0;_0x215b8e--){const _0x402563=_0x1605e8[_0x215b8e];for(const _0x5a816f of Object['keys'](_0x402563['diffData']))if(_0x402563['diffData'][_0x5a816f]['attachChange']){const _0x53b1e3=_0x402563['diffData'][_0x5a816f]['attachChange'];_0x53b1e3['isAttached']?(_0x2f4466['add'](_0x5a816f),_0x4670eb['has'](_0x5a816f)&&_0x4670eb['get'](_0x5a816f)['userId']==_0x53b1e3['userId']?_0x4670eb['delete'](_0x5a816f):_0x4670eb['set'](_0x5a816f,_0x53b1e3)):_0x4670eb['has'](_0x5a816f)?(_0x2f4466['delete'](_0x5a816f),_0x4670eb['delete'](_0x5a816f)):(_0x2f4466['add'](_0x5a816f),_0x4670eb['set'](_0x5a816f,_0x53b1e3));}else _0x2f4466['add'](_0x5a816f);}for(const _0x3c8d42 of _0x2f4466){const _0x522b74=_0x4670eb['has'](_0x3c8d42)&&!_0x4670eb['get'](_0x3c8d42)['isAttached'];let _0x4daabe=_0x522b74?_0x1605e8['length']-0x1:0x0;const _0x15daed=_0x522b74?-0x1:0x1;for(;_0x1605e8[_0x4daabe];){const _0x33650e=_0x1605e8[_0x4daabe];if(_0x33650e['diffData'][_0x3c8d42]){const _0x34f9c6=_0x522b74?_0x33650e['diffData'][_0x3c8d42]['attributesBefore']:_0x33650e['diffData'][_0x3c8d42]['attributesAfter'];_0x581c79['attributes'][_0x3c8d42]=_0x34f9c6?_0xac2d02(_0x34f9c6):{};break;}_0x4daabe+=_0x15daed;}}for(const _0x259344 of _0x1605e8){_0x259344['model']={};for(const _0x507989 of _0x259344['authors'])_0x18be02['set'](_0x507989['id'],_0x507989);for(const _0x306bb6 of _0x2f4466){const _0x564de4=_0x259344['diffData'][_0x306bb6]?_0x259344['diffData'][_0x306bb6]['insertions']:'[]',_0x11eeea=_0x259344['diffData'][_0x306bb6]?_0x259344['diffData'][_0x306bb6]['deletions']:'[]';_0x259344['model'][_0x306bb6]={'insertions':this['_makeModelFromViewString'](_0x564de4),'deletions':this['_makeModelFromViewString'](_0x11eeea)};}}for(const _0x17f5e5 of _0x2f4466){let _0x1b990a=null,_0x4fd535=0x0;const _0x17efc8=new Map(Array['from'](_0x535555['model'][_0x17f5e5]['insertions']['markers'])['filter'](([_0x6bbf45])=>!_0x6bbf45['startsWith']('revision:')));let _0x725539=0x0;for(const _0x52141e of _0x1605e8){const _0x4aafd0=this['_makeTape'](_0x52141e['model'][_0x17f5e5]['insertions']);_0x52141e==_0x535555?(_0x1b990a=_0x4aafd0,_0x4fd535=_0x1b990a['length'],_0x1b990a['forEach'](_0x543f34=>{_0x543f34['id']=_0x725539++;}),this['_processTape'](_0x1b990a)):this['_markInsertions'](_0x1b990a,_0x4aafd0);const _0x3365ab=_0x1b990a['filter'](_0x54f578=>!_0x54f578['isAdded'])['map'](_0x5a98ad=>_0x5a98ad['id']);let _0x3907e3=0x0;const _0x38abcd=this['_makeTape'](_0x52141e['model'][_0x17f5e5]['deletions']);_0x38abcd['forEach'](_0x58e010=>{_0x58e010['isRemoved']?_0x58e010['id']=_0x4fd535++:_0x58e010['id']=_0x3365ab[_0x3907e3++];}),this['_processTape'](_0x38abcd),this['_setDistance'](_0x1b990a,'isAdded'),this['_setDistance'](_0x38abcd,'isRemoved'),_0x52141e==_0x535555&&this['_markMarkers'](_0x1b990a,_0x17efc8),_0x1b990a=this['_joinTapes'](_0x1b990a,_0x38abcd),this['_refreshStartEndIndex'](_0x1b990a),this['_setDistance'](_0x1b990a,'isRemoved');}_0x1b990a=_0x1b990a['filter'](_0x4e254c=>!(_0x4e254c['isAdded']&&_0x4e254c['isRemoved']));const _0x3ce2db=new Map(_0x4e5afb['model'][_0x17f5e5]['deletions']['markers']),_0x2968fc=new Set(_0x17efc8['keys']());for(const _0x2a64a0 of _0x3ce2db['keys']())_0x2968fc['delete'](_0x2a64a0);this['_markSuggestions'](_0x1b990a,_0x2968fc),this['_fixObsoleteTags'](_0x1b990a),_0x1b990a=this['_removeMissingPairs'](_0x1b990a),_0x1b990a=this['_markMismatchedRemovedTags'](_0x1b990a),_0x1b990a=this['_removeUnsupportedChanges'](_0x1b990a);const {root:_0x39f977,changes:_0x16fb7d}=this['_makeModelFromTape'](_0x1b990a,_0x18be02,_0x17f5e5);_0x581c79['model'][_0x17f5e5]=_0x39f977;const _0x499f67=_0x4670eb['get'](_0x17f5e5);if(_0x499f67){const _0x1bd681=_0x18be02['get'](_0x499f67['userId']),_0x45031e=new r({'author':_0x1bd681,'type':_0x499f67['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x17f5e5});_0x16fb7d['unshift'](_0x45031e),_0x581c79['attributes'][_0x17f5e5]['revisionHistoryAttachChange']=_0x45031e['id'];}_0x581c79['changes']=_0x581c79['changes']['concat'](_0x16fb7d);}return _0x581c79;}['_markMarkers'](_0x5cc322,_0x5b1250){for(let _0x48d1ea=0x0;_0x48d1ea<_0x5cc322['length'];_0x48d1ea++)for(const [_0x16db00,_0x711fa1]of _0x5b1250)_0x711fa1['start']['isEqual'](_0x5cc322[_0x48d1ea]['previousPosition'])&&_0x5cc322[_0x48d1ea]['markersStart']['push'](_0x16db00),_0x711fa1['end']['isEqual'](_0x5cc322[_0x48d1ea]['nextPosition'])&&_0x5cc322[_0x48d1ea]['markersEnd']['push'](_0x16db00);}['_joinTapes'](_0x1d2e54,_0x2e1191){let _0x556c4b=[],_0x58d7f4=0x0,_0x503b15=0x0;for(;_0x58d7f4<_0x1d2e54['length']||_0x503b15<_0x2e1191['length'];){const _0xbd0924=_0x1d2e54[_0x58d7f4]||{},_0xf472c7=_0x2e1191[_0x503b15]||{};if(_0xbd0924['id']==_0xf472c7['id'])_0x58d7f4++,_0x503b15++,_0x556c4b['push'](_0xbd0924);else{if(_0xf472c7['isRemoved']&&_0xbd0924['isAdded']){const {commonTape:_0x17679d,iEnd:_0x47eb0e,jEnd:_0x54aee1}=this['_threeWayMerge'](_0x1d2e54,_0x58d7f4,_0x2e1191,_0x503b15);_0x556c4b=_0x556c4b['concat'](_0x17679d),_0x58d7f4=_0x47eb0e,_0x503b15=_0x54aee1;}else _0xf472c7['isRemoved']?(_0x503b15++,_0x556c4b['push'](_0xf472c7)):(_0x58d7f4++,_0x556c4b['push'](_0xbd0924));}}return _0x556c4b;}['_markSuggestions'](_0x492a59,_0x4326f5){const _0x558584=[];for(let _0x1f12b0=0x0;_0x1f12b0<_0x492a59['length'];_0x1f12b0++){for(let _0x1f327a=0x0;_0x1f327a<_0x492a59[_0x1f12b0]['markersStart']['length'];_0x1f327a++){const _0x485902=_0x492a59[_0x1f12b0]['markersStart'][_0x1f327a];if(!_0x4326f5['has'](_0x485902))continue;const {group:_0x5b1b1c,type:_0x395aee,authorId:_0x43bdc6}=_0x5aebad(_0x485902);'revision-suggestion'!=_0x5b1b1c||'insertion'!=_0x395aee&&'deletion'!=_0x395aee||(_0x558584['unshift']({'type':_0x395aee,'name':_0x485902,'userId':_0x43bdc6}),_0x492a59[_0x1f12b0]['markersStart']['splice'](_0x1f327a,0x1),_0x1f327a--);}_0x2b189e(_0x492a59[_0x1f12b0]);for(let _0x484417=0x0;_0x484417<_0x492a59[_0x1f12b0]['markersEnd']['length'];_0x484417++){const _0x5bd1f3=_0x492a59[_0x1f12b0]['markersEnd'][_0x484417];if(!_0x4326f5['has'](_0x5bd1f3))continue;const {group:_0x172238,type:_0x16626c}=_0x5aebad(_0x5bd1f3);if('revision-suggestion'!=_0x172238||'insertion'!=_0x16626c&&'deletion'!=_0x16626c)continue;_0x492a59[_0x1f12b0]['markersEnd']['splice'](_0x484417,0x1),_0x484417--;const _0x50040b=_0x558584['findIndex'](_0x46b2f0=>_0x46b2f0['name']==_0x5bd1f3);_0x50040b>-0x1&&_0x558584['splice'](_0x50040b,0x1);}}function _0x5aebad(_0x265562){const _0x7646f4=_0x265562['split'](':');return{'group':_0x7646f4[0x0],'type':_0x7646f4[0x1],'subType':_0x7646f4['length']>=0x5?_0x7646f4[0x2]:null,'id':_0x7646f4['length']<0x5?_0x7646f4[0x2]:_0x7646f4[0x3],'authorId':_0x7646f4['length']<0x5?_0x7646f4[0x3]:_0x7646f4[0x4],'markerCount':0x6==_0x7646f4['length']?_0x7646f4[0x5]:null};}function _0x2b189e(_0x2ff986){for(let _0x4bf7af=0x0;_0x4bf7af<_0x558584['length'];_0x4bf7af++){if(_0x2ff986['isAdded']&&'insertion'==_0x558584[_0x4bf7af]['type'])return _0x2ff986['isAddSuggestion']=_0x558584[_0x4bf7af],void delete _0x2ff986['isAdded'];if(!_0x2ff986['isAdded']&&!_0x2ff986['isRemoved']&&'deletion'==_0x558584[_0x4bf7af]['type'])return void(_0x2ff986['isRemoveSuggestion']=_0x558584[_0x4bf7af]);}}}['_setDistance'](_0x3d81e0,_0x123595){let _0x1729fe=0x0,_0x552ab0=!0x1;const _0x3c810d=new Map();for(const _0x1f2d41 of _0x3d81e0)_0x1f2d41[_0x123595]?_0x552ab0&&(_0x1729fe++,_0x552ab0=!0x1):(_0x1729fe++,_0x552ab0=!0x0),_0x3c810d['set'](_0x1f2d41['id'],_0x1729fe);for(let _0x45f6ce=0x0;_0x45f6ce<_0x3d81e0['length'];_0x45f6ce++){if('isRemoved'==_0x123595&&_0x3d81e0[_0x45f6ce]['isAdded']||'isAdded'==_0x123595&&_0x3d81e0[_0x45f6ce]['isRemoved'])continue;if('text'==_0x3d81e0[_0x45f6ce]['type']){_0x3d81e0[_0x45f6ce]['distance']=0x0;continue;}const _0x4c6482=_0x3c810d['get'](_0x3d81e0[_0x45f6ce]['pairId']),_0x18853f=_0x3c810d['get'](_0x3d81e0[_0x45f6ce]['id']);_0x3d81e0[_0x45f6ce]['distance']=_0x4c6482-_0x18853f;}}['_getRevisionsRange'](_0x14bcfd,_0x4679c5,_0x464477=!0x1){const _0x3d371d=[];let _0x5c8a72=this['repository']['getIndex'](_0x14bcfd),_0x265a07=this['repository']['getIndex'](_0x4679c5);for(-0x1==_0x265a07&&(_0x265a07=this['repository']['_revisions']['length'],_0x464477=!0x1);_0x5c8a72<_0x265a07;)_0x3d371d['push'](this['repository']['getRevision'](_0x5c8a72)),_0x5c8a72++;return _0x464477&&_0x3d371d['push'](this['repository']['getRevision'](_0x5c8a72)),_0x3d371d;}['_threeWayMerge'](_0x4f8606,_0x38b479,_0x223020,_0x2123ab){const _0x2cf5de=this['editor']['model']['schema'];let _0x429261=_0x38b479;for(;_0x4f8606[_0x429261]&&_0x4f8606[_0x429261]['isAdded'];)_0x429261++;let _0x1dd5b7=_0x2123ab;for(;_0x223020[_0x1dd5b7]&&_0x223020[_0x1dd5b7]['isRemoved'];)_0x1dd5b7++;_0x58418d(_0x4f8606,_0x38b479,_0x429261),_0x58418d(_0x223020,_0x2123ab,_0x1dd5b7);const _0x55bc58=_0x223020['slice'](_0x2123ab,_0x1dd5b7)['concat'](_0x4f8606['slice'](_0x38b479,_0x429261));return _0x55bc58['sort']((_0x5989bc,_0x3cffa9)=>_0x5989bc['side']!=_0x3cffa9['side']?_0x5989bc['side']-_0x3cffa9['side']:_0x5989bc['level']!=_0x3cffa9['level']?_0x5989bc['level']-_0x3cffa9['level']:_0x5989bc['distance']!=_0x3cffa9['distance']?_0x3cffa9['distance']-_0x5989bc['distance']:!!_0x5989bc['isAdded']!=!!_0x3cffa9['isAdded']?-0x1==_0x5989bc['side']||0x0==_0x5989bc['side']?_0x5989bc['isAdded']?-0x1:0x1:_0x5989bc['isAdded']?0x1:-0x1:_0x5989bc['index']-_0x3cffa9['index']),{'commonTape':_0x55bc58,'iEnd':_0x429261,'jEnd':_0x1dd5b7};function _0x58418d(_0x478907,_0x3e673b,_0x1f1457){let _0x529e43=-0x1,_0x159e25=Number['POSITIVE_INFINITY'],_0xb75e9d=!0x0;for(let _0x36dafd=_0x3e673b;_0x36dafd<_0x1f1457;_0x36dafd++)if(_0x2cf5de['isInline'](_0x478907[_0x36dafd]['item'])||(_0xb75e9d=!0x1),_0x478907[_0x36dafd]['item']['startIndex']<_0x3e673b&&(_0x529e43=_0x36dafd),_0x478907[_0x36dafd]['item']['endIndex']>=_0x1f1457){_0x159e25=_0x36dafd;break;}_0xb75e9d&&(_0x529e43=_0x1f1457-0x1);for(let _0x8080e1=_0x3e673b;_0x8080e1<_0x1f1457;_0x8080e1++)_0x478907[_0x8080e1]['side']=_0x8080e1<=_0x529e43?-0x1:_0x8080e1<_0x159e25?0x0:0x1,_0x478907[_0x8080e1]['index']=_0x8080e1;let _0x5e598e=0x0;for(let _0x50c339=_0x3e673b;_0x50c339<=_0x529e43;_0x50c339++)0x0==_0x478907[_0x50c339]['distance']?_0x478907[_0x50c339]['level']=_0x5e598e:(_0x5e598e++,_0x478907[_0x50c339]['level']=_0x5e598e,_0x5e598e++);for(let _0x479d0a=_0x3e673b;_0x479d0a<_0x1f1457;_0x479d0a++)0x0==_0x478907[_0x479d0a]['side']&&(_0x478907[_0x479d0a]['level']=_0x5e598e);_0x5e598e=0x0;for(let _0x30a141=_0x1f1457-0x1;_0x30a141>=_0x159e25;_0x30a141--)0x0==_0x478907[_0x30a141]['distance']?_0x478907[_0x30a141]['level']=_0x5e598e:(_0x5e598e--,_0x478907[_0x30a141]['level']=_0x5e598e,_0x5e598e--);}}['_fixObsoleteTags'](_0x3f144b){const _0x5beb1d=new Map(),_0x2761b7=this['editor']['model']['schema'];for(let _0x1f3733=0x1;_0x1f3733<_0x3f144b['length'];_0x1f3733++){let _0x5d8f0c,_0x37fab1,_0x1906b8;const _0x3e2c25=_0x3f144b[_0x1f3733],_0x3341ab=_0x3f144b[_0x1f3733-0x1];if('text'==_0x3e2c25['type'])continue;if(_0x3e2c25['type']!=_0x3341ab['type'])continue;if(!_0x2761b7['isBlock'](_0x3341ab['item'])||_0x2761b7['isLimit'](_0x3341ab['item']))continue;if(!_0x2761b7['isBlock'](_0x3e2c25['item'])||_0x2761b7['isLimit'](_0x3e2c25['item']))continue;if((_0x3f144b[_0x1f3733]['isAdded']||_0x3f144b[_0x1f3733]['isAddSuggestion'])&&_0x3f144b[_0x1f3733-0x1]['isRemoved'])_0x5d8f0c=_0x3f144b[_0x1f3733],_0x37fab1=_0x3f144b[_0x1f3733-0x1],_0x1906b8=_0x1f3733-0x1;else{if(!_0x3f144b[_0x1f3733]['isRemoved']||!_0x3f144b[_0x1f3733-0x1]['isAdded']&&!_0x3f144b[_0x1f3733-0x1]['isAddSuggestion'])continue;_0x5d8f0c=_0x3f144b[_0x1f3733-0x1],_0x37fab1=_0x3f144b[_0x1f3733],_0x1906b8=_0x1f3733;}const _0x41b51d=_0x5d8f0c['level']==_0x37fab1['level'],_0x5504b3=Math['abs'](_0x5d8f0c['level'])<Math['abs'](_0x37fab1['level'])&&0x0==_0x37fab1['distance'];(_0x41b51d||_0x5504b3)&&(_0x5beb1d['set'](_0x37fab1['id'],_0x5d8f0c['id']),_0x3f144b['splice'](_0x1906b8,0x1),_0x1f3733--,_0x5d8f0c['isAdded']=!0x1);}for(let _0x28c514=0x0;_0x28c514<_0x3f144b['length'];_0x28c514++)_0x5beb1d['has'](_0x3f144b[_0x28c514]['pairId'])&&(_0x3f144b[_0x28c514]['pairId']=_0x5beb1d['get'](_0x3f144b[_0x28c514]['pairId']));}['_removeMissingPairs'](_0x5e6c57){const _0x3c3808=new Set(_0x5e6c57['map'](_0x5aeb5f=>_0x5aeb5f['id']));for(let _0x286d36=0x0;_0x286d36<_0x5e6c57['length'];_0x286d36++)_0x3c3808['has'](_0x5e6c57[_0x286d36]['pairId'])||0x0==_0x5e6c57[_0x286d36]['distance']||(_0x5e6c57[_0x286d36]['isIncorrect']=!0x0);return _0x5e6c57['filter'](_0x291804=>!_0x291804['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1f1687){const _0x2e2b8a=new Set();for(let _0x354b56=0x0;_0x354b56<_0x1f1687['length'];_0x354b56++){if(_0x2e2b8a['has'](_0x1f1687[_0x354b56]['id'])&&_0x1f1687[_0x354b56]['isRemoved']&&(_0x1f1687[_0x354b56]['isIncorrect']=!0x0),_0x1f1687[_0x354b56]['isIncorrect'])continue;if(0x0==_0x1f1687[_0x354b56]['distance'])continue;if('elementStart'!=_0x1f1687[_0x354b56]['type'])continue;if(null==_0x1f1687[_0x354b56]['pairId'])continue;let _0x12dedb=_0x354b56+0x1,_0x37131d=0x0;for(;_0x1f1687[_0x12dedb]['id']!=_0x1f1687[_0x354b56]['pairId'];)'elementStart'==_0x1f1687[_0x12dedb]['type']?_0x37131d++:'elementEnd'==_0x1f1687[_0x12dedb]['type']&&_0x37131d--,_0x12dedb++;if(0x0!=_0x37131d){if(_0x1f1687[_0x354b56]['isRemoved'])_0x1f1687[_0x354b56]['isIncorrect']=!0x0;else{for(;_0x12dedb!=_0x354b56;)_0x1f1687[_0x12dedb]['isRemoved']&&0x0!=_0x1f1687[_0x12dedb]['distance']&&(_0x1f1687[_0x12dedb]['isIncorrect']=!0x0,_0x2e2b8a['add'](_0x1f1687[_0x12dedb]['pairId'])),_0x12dedb--;}}}return _0x1f1687['filter'](_0x477776=>!_0x477776['isIncorrect']);}['_removeUnsupportedChanges'](_0x3349b3){const _0x5e7880=this['editor']['model']['schema'];for(let _0x286386=0x0;_0x286386<_0x3349b3['length'];_0x286386++){if(!(_0x3349b3[_0x286386]['isAdded']||_0x3349b3[_0x286386]['isAddSuggestion']||_0x3349b3[_0x286386]['isRemoved']||_0x3349b3[_0x286386]['isRemoveSuggestion']))continue;if(0x0==_0x3349b3[_0x286386]['distance'])continue;const _0x4607c0=_0x3349b3[_0x286386]['item'];_0x5e7880['isBlock'](_0x4607c0)||_0x5e7880['isLimit'](_0x4607c0)||(_0x3349b3[_0x286386]['isAdded']&&delete _0x3349b3[_0x286386]['isAdded'],_0x3349b3[_0x286386]['isAddSuggestion']&&delete _0x3349b3[_0x286386]['isAddSuggestion'],_0x3349b3[_0x286386]['isRemoveSuggestion']&&delete _0x3349b3[_0x286386]['isRemoveSuggestion'],_0x3349b3[_0x286386]['isRemoved']&&(_0x3349b3[_0x286386]['isIncorrect']=!0x0));}return _0x3349b3['filter'](_0x23a93f=>!_0x23a93f['isIncorrect']);}['_makeModelFromTape'](_0x3d4b15,_0xd07225,_0x1a3e5e){const _0x5b81d2=new gt(),_0x20525b=[],_0x52d649=new Map(),_0x5c36ed=this['editor']['model'],_0x41dbb2=_0x5c36ed['schema'],_0x9c7e08=[_0x5b81d2],_0x118179={},_0x529f53={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xbbaa41=null;const _0x26c893=[0x0];for(let _0x60834f=0x0;_0x60834f<_0x3d4b15['length'];_0x60834f++)if('elementStart'===_0x3d4b15[_0x60834f]['type']){_0x3d4b15[_0x60834f]['previousPosition']=_0x5c36ed['createPositionFromPath'](_0x5b81d2,_0x26c893);const _0x1c4008=new ut(_0x3d4b15[_0x60834f]['item']['name'],_0x3d4b15[_0x60834f]['item']['getAttributes']());_0x9c7e08[0x0]['_appendChild'](_0x1c4008),_0x26c893['push'](0x0),_0x9c7e08['unshift'](_0x1c4008),_0x3d4b15[_0x60834f]['nextPosition']=_0x5c36ed['createPositionFromPath'](_0x5b81d2,_0x26c893);}else'elementEnd'===_0x3d4b15[_0x60834f]['type']?(_0x9c7e08['shift'](),_0x3d4b15[_0x60834f]['previousPosition']=_0x5c36ed['createPositionFromPath'](_0x5b81d2,_0x26c893),_0x26c893['pop'](),_0x26c893[_0x26c893['length']-0x1]++,_0x3d4b15[_0x60834f]['nextPosition']=_0x5c36ed['createPositionFromPath'](_0x5b81d2,_0x26c893)):(_0x3d4b15[_0x60834f]['previousPosition']=_0x5c36ed['createPositionFromPath'](_0x5b81d2,_0x26c893),_0xbbaa41?_0xbbaa41['_data']+=_0x3d4b15[_0x60834f]['item']['data']:_0xbbaa41=new wt(_0x3d4b15[_0x60834f]['item']['data'],_0x3d4b15[_0x60834f]['item']['getAttributes']()),_0x3d4b15[_0x60834f+0x1]&&'text'===_0x3d4b15[_0x60834f+0x1]['type']&&_0x468524(_0xbbaa41,_0x3d4b15[_0x60834f+0x1]['item'])||(_0x9c7e08[0x0]['_appendChild'](_0xbbaa41),_0xbbaa41=null),_0x26c893[_0x26c893['length']-0x1]+=_0x3d4b15[_0x60834f]['item']['offsetSize'],_0x3d4b15[_0x60834f]['nextPosition']=_0x5c36ed['createPositionFromPath'](_0x5b81d2,_0x26c893));for(let _0x4cb994=0x0;_0x4cb994<_0x3d4b15['length'];_0x4cb994++){const _0x450180=_0x3d4b15[_0x4cb994]['previousPosition'],_0x45f1a0=_0x3d4b15[_0x4cb994]['nextPosition'];for(const _0x4050d8 of _0x3d4b15[_0x4cb994]['markersStart'])_0x52d649['set'](_0x4050d8,{'start':_0x450180,'end':null});_0x16c654('isRemoveSuggestion',_0x4cb994,_0x450180,_0x45f1a0),_0x16c654('isAddSuggestion',_0x4cb994,_0x450180,_0x45f1a0),_0x16c654('isRemoved',_0x4cb994,_0x450180,_0x45f1a0),_0x16c654('isAdded',_0x4cb994,_0x450180,_0x45f1a0);for(const _0x16013c of _0x3d4b15[_0x4cb994]['markersEnd']){_0x52d649['get'](_0x16013c)['end']=_0x45f1a0;}}for(const [_0x5d0c90,_0x35168c]of _0x52d649){const _0x5c4f83=this['editor']['model']['createRange'](_0x35168c['start'],_0x35168c['end']);_0x5b81d2['markers']['set'](_0x5d0c90,_0x5c4f83);}return _0x20525b['sort']((_0x5e073e,_0x873c43)=>{const _0xdb0163=_0x5b81d2['markers']['get']('revision:'+_0x5e073e['id']),_0x1b254f=_0x5b81d2['markers']['get']('revision:'+_0x873c43['id']);return _0xdb0163['start']['isBefore'](_0x1b254f['start'])?-0x1:_0xdb0163['start']['isAfter'](_0x1b254f['start'])?0x1:_0xdb0163['end']['isBefore'](_0x1b254f['end'])?-0x1:_0xdb0163['end']['isAfter'](_0x1b254f['end'])?0x1:'add'===_0x5e073e['type']?-0x1:0x1;}),{'root':_0x5b81d2,'changes':_0x20525b};function _0x16c654(_0xa4384b,_0x45b2b9,_0x170477,_0x570b2c){const _0x949863=!!_0x3d4b15[_0x45b2b9][_0xa4384b],_0x12db29=_0x949863?_0x3d4b15[_0x45b2b9][_0xa4384b]['userId']:null,_0x2a68cd=_0x45b2b9===_0x3d4b15['length']-0x1,_0x1bfd77=_0x529f53[_0xa4384b][0x0],_0x24be65=_0x41dbb2['isObject'](_0x3d4b15[_0x45b2b9]['item']);!_0x118179[_0xa4384b]&&_0x949863?_0x118179[_0xa4384b]={'start':_0x170477,'tapeItem':_0x3d4b15[_0x45b2b9],'userId':_0x12db29,'type':_0xa4384b}:_0x118179[_0xa4384b]&&!_0x949863?(_0x118179[_0xa4384b]['end']=_0x170477,_0x42dbb4(_0x118179[_0xa4384b]),_0x118179[_0xa4384b]=null):_0x118179[_0xa4384b]&&_0x949863&&_0x118179[_0xa4384b]['userId']!==_0x12db29&&(_0x118179[_0xa4384b]['end']=_0x170477,_0x1bfd77&&_0x1bfd77['userId']===_0x118179[_0xa4384b]['userId']||_0x42dbb4(_0x118179[_0xa4384b]),_0x118179[_0xa4384b]={'start':_0x170477,'tapeItem':_0x3d4b15[_0x45b2b9],'userId':_0x12db29,'type':_0xa4384b}),_0x118179[_0xa4384b]&&_0x24be65&&('elementStart'!==_0x3d4b15[_0x45b2b9]['type']||_0x1bfd77&&_0x1bfd77['userId']===_0x12db29||_0x529f53[_0xa4384b]['unshift']({'userId':_0x12db29,'object':_0x3d4b15[_0x45b2b9]['item'],'change':_0x118179[_0xa4384b]}),'elementEnd'===_0x3d4b15[_0x45b2b9]['type']&&_0x1bfd77&&_0x1bfd77['object']===_0x3d4b15[_0x45b2b9]['item']&&(_0x529f53[_0xa4384b]['shift'](),_0x118179[_0xa4384b]=_0x1bfd77['change'])),_0x118179[_0xa4384b]&&_0x2a68cd&&(_0x118179[_0xa4384b]['end']=_0x570b2c,_0x42dbb4(_0x118179[_0xa4384b]),_0x118179[_0xa4384b]=null);}function _0x42dbb4({start:_0x24906a,end:_0x242e20,tapeItem:_0x475ceb,userId:_0x2430ef,type:_0x5693f2}){const _0x107076=_0x475ceb['item'],_0x566e5d=_0x5c36ed['schema']['isBlock'](_0x107076)&&!_0x5c36ed['schema']['isLimit'](_0x107076),_0x4f1c04=_0x24906a['nodeAfter']==_0x242e20['parent']&&_0x242e20['isAtStart'];if(_0x566e5d&&_0x4f1c04)return;const _0x5453d8=_0x5c36ed['createRange'](_0x24906a,_0x242e20),_0x56f5e6=_0xd07225['get'](_0x2430ef),_0x7e7199=new r({'author':_0x56f5e6,'type':'isAdded'==_0x5693f2||'isAddSuggestion'==_0x5693f2?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5693f2||'isRemoveSuggestion'==_0x5693f2},'createdAt':new Date(),'rootName':_0x1a3e5e});_0x20525b['push'](_0x7e7199),_0x5b81d2['markers']['set']('revision:'+_0x7e7199['id'],_0x5453d8);}function _0x468524(_0x4ef6d9,_0x4616b8){const _0x4dad7d=_0x4ef6d9['getAttributes'](),_0x471fe7=_0x4616b8['getAttributes']();for(const _0x28c8f3 of _0x4dad7d){if(_0x28c8f3[0x1]!==_0x4616b8['getAttribute'](_0x28c8f3[0x0]))return!0x1;_0x471fe7['next']();}return _0x471fe7['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x125d18=>{const _0x49dc97=_0x125d18['markerName']['split'](':')[0x1],_0x58073f=this['_getChangeFromId'](_0x49dc97);if(!_0x58073f)return null;const _0x3096b4='add'==_0x58073f['type']?'insertion':'deletion',_0x40c5e7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3096b4];return _0x58073f['data']['isSuggestion']&&_0x40c5e7['push']('ck-suggestion-marker-'+_0x3096b4+'-new'),this['activeChange']==_0x58073f&&_0x40c5e7['push']('ck-suggestion-marker--active'),{'classes':_0x40c5e7,'attributes':{'data-change-id':_0x49dc97}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3bd9e8=>{_0x3bd9e8['on']('element:pre',(_0x2eea8b,_0x5091ca,_0xb9833c)=>{const _0x34c357=_0x5091ca['viewItem']['getChild'](0x0);if(!_0x34c357||!_0x34c357['is']('element','code'))return;if(!_0xb9833c['consumable']['consume'](_0x34c357,{'attributes':['vid_start','vid_end']}))return;const _0x8f9419=_0x5091ca['modelRange']['start']['nodeAfter'];_0xb9833c['writer']['setAttribute']('vid_start',_0x34c357['getAttribute']('vid_start'),_0x8f9419),_0xb9833c['writer']['setAttribute']('vid_end',_0x34c357['getAttribute']('vid_end'),_0x8f9419);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2512da=>{_0x2512da['on']('element',(_0x417833,_0x1a66e8,_0x4d857b)=>{if(!_0x4d857b['consumable']['consume'](_0x1a66e8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1a66e8['modelRange']['isCollapsed'])return;const _0x2a9d9f=_0x1a66e8['modelRange']['start']['nodeAfter'];_0x2a9d9f['hasAttribute']('vid_start')||_0x2a9d9f['hasAttribute']('vid')||(_0x4d857b['writer']['setAttribute']('vid_start',_0x1a66e8['viewItem']['getAttribute']('vid_start'),_0x2a9d9f),_0x4d857b['writer']['setAttribute']('vid_end',_0x1a66e8['viewItem']['getAttribute']('vid_end'),_0x2a9d9f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x503ce2=>_0x503ce2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2ca854,[,_0xd24e61])=>{['vid_start','vid_end','vid']['includes'](_0xd24e61)&&(_0x2ca854['return']=!0x0,_0x2ca854['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2c8bf4=>{_0x2c8bf4['on']('attribute:vid',(_0x155e55,_0x467448,_0x4eb848)=>{if('\x20'!=_0x467448['item']['data']||_0x467448['item']['parent']['maxOffset']>0x1)return;if(!_0x4eb848['consumable']['consume'](_0x467448['item'],_0x155e55['name']))return;const _0x433413=_0x4eb848['writer'],_0x3591a4=_0x4eb848['mapper']['toViewRange'](_0x467448['range']);_0x433413['wrap'](_0x3591a4,_0x433413['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x11f4a9){const _0x2eb842=_0x11f4a9['plugins']['get']('RevisionViewer');return(_0x2cc1bc,_0x3efae5,_0x23f96f)=>{const _0xd127f9=_0x3efae5['markerName']['split'](':')[0x1],_0x5b4f96=_0x2eb842['_getChangeFromId'](_0xd127f9);if(!_0x5b4f96)return null;const _0x3572de='add'==_0x5b4f96['type']?'split':'merge';if(!_0x23f96f['consumable']['test'](_0x3efae5['markerRange'],_0x2cc1bc['name']))return;const _0x1d66b8=_0x3efae5['markerRange']['getWalker'](),_0x2aacaf=_0x3efae5['markerRange']['start'],_0xa60c6b=_0x11f4a9['model']['schema'];let _0x35487b=null,_0x1b677b=null,_0x371223=!0x1,_0x3fdb5c=!0x1;for(const _0x4519e6 of _0x1d66b8){const _0x22e8e8=_0x4519e6['item'];_0x371223=_0x371223||_0xa60c6b['isContent'](_0x22e8e8);const _0x1498d0=_0x23f96f['mapper']['toViewElement'](_0x22e8e8);if(_0x1498d0&&_0x1498d0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4519e6['type']&&(_0xa60c6b['isBlock'](_0x22e8e8)&&!_0xa60c6b['isLimit'](_0x22e8e8)&&(_0x22e8e8['nextSibling']||_0x2aacaf['isAtEnd']?_0x35487b&&_0x35487b['parent']==_0x22e8e8||(_0x35487b=_0x22e8e8,_0x2a19d5(_0x4519e6['previousPosition']),_0x3fdb5c=!0x0):_0x1b677b=_0x1b677b||_0x4519e6['previousPosition']));}function _0x2a19d5(_0x3e5b4c){const _0xdc3cce=_0x23f96f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3572de}),_0x476e77=_0x23f96f['mapper']['toViewPosition'](_0x3e5b4c);_0x5b4f96['data']['isSuggestion']&&_0x23f96f['writer']['addClass']('ck-suggestion-marker-'+_0x3572de+'-new',_0xdc3cce),_0x2eb842['activeChange']==_0x5b4f96&&_0x23f96f['writer']['addClass']('ck-suggestion-marker--active',_0xdc3cce),_0x23f96f['writer']['insert'](_0x476e77,_0xdc3cce),_0x23f96f['mapper']['bindElementToMarker'](_0xdc3cce,_0x3efae5['markerName']);}_0x371223||_0x3fdb5c||!_0x1b677b||_0x2a19d5(_0x1b677b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x502908,_0x2c1b0f,_0x38a1c4)=>{const _0x340289=_0x38a1c4['mapper']['markerNameToElements'](_0x2c1b0f['markerName']);if(_0x340289){for(const _0x38c7d7 of _0x340289)(_0x38c7d7['hasClass']('ck-suggestion-marker-split')||_0x38c7d7['hasClass']('ck-suggestion-marker-merge'))&&(_0x38a1c4['mapper']['unbindElementFromMarkerName'](_0x38c7d7,_0x2c1b0f['markerName']),_0x38a1c4['writer']['remove'](_0x38c7d7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x496fc4,_0x136654,_0x202d9a)=>{const _0x541338=_0x136654['markerName']['split'](':')[0x1],_0x13eeb0=this['_getChangeFromId'](_0x541338);if(!_0x13eeb0)return null;const _0x4e2c29='add'==_0x13eeb0['type']?'split':'merge';if(_0x202d9a['consumable']['test'](_0x136654['markerRange'],_0x496fc4['name']))for(const _0x57b6e4 of _0x136654['markerRange']['getItems']()){if(!_0x57b6e4['is']('element','softBreak'))continue;const _0x3ba2e6=_0x202d9a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e2c29}),_0x186804=_0x202d9a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x57b6e4));_0x13eeb0['data']['isSuggestion']&&_0x202d9a['writer']['addClass']('ck-suggestion-marker-'+_0x4e2c29+'-new',_0x3ba2e6),this['activeChange']==_0x13eeb0&&_0x202d9a['writer']['addClass']('ck-suggestion-marker--active',_0x3ba2e6),_0x202d9a['writer']['insert'](_0x186804,_0x3ba2e6),_0x202d9a['mapper']['bindElementToMarker'](_0x3ba2e6,_0x136654['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1029cb=>{for(const _0x3cf51d of this['editor']['model']['document']['getRootNames']()){const _0x1adfbf=this['editor']['model']['document']['getRoot'](_0x3cf51d),_0x37a231=this['editor']['editing']['view']['document']['getRoot'](_0x3cf51d);if(_0x37a231){const _0x556cfb=_0x1adfbf['getAttribute']('revisionHistoryAttachChange');if(_0x1029cb['removeAttribute']('data-change-id',_0x37a231),_0x1029cb['removeClass']('ck-revision-history-root-add',_0x37a231),_0x1029cb['removeClass']('ck-revision-history-root-remove',_0x37a231),_0x1029cb['removeClass']('ck-revision-history-root--active',_0x37a231),_0x556cfb){const _0x471dd5=this['_getChangeFromId'](_0x556cfb);if(!_0x471dd5)return null;_0x1029cb['setAttribute']('data-change-id',_0x556cfb,_0x37a231),_0x1029cb['addClass']('ck-revision-history-root-'+_0x471dd5['type'],_0x37a231),this['activeChange']==_0x471dd5&&_0x1029cb['addClass']('ck-revision-history-root--active',_0x37a231);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4fd709=>'revision-comment:'+_0x4fd709,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5aa8bf=>'revision-suggestion:'+_0x5aa8bf,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2035bd=>({'name':'suggestion:'+_0x2035bd,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x37edef=>{const _0x2e2325=_0x37edef['markerName']['split'](':')[0x1];return'insertion'!=_0x2e2325&&'deletion'!=_0x2e2325?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2e2325]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3c9860,_0xd6fb7b,_0x3857f7)=>{const _0x41cec4=_0x3857f7['mapper']['markerNameToElements'](_0xd6fb7b['markerName']);if(_0x41cec4){for(const _0x2a39ba of _0x41cec4)_0x2a39ba['is']('uiElement')&&(_0x3857f7['mapper']['unbindElementFromMarkerName'](_0x2a39ba,_0xd6fb7b['markerName']),_0x3857f7['writer']['remove'](_0x2a39ba));}},{'priority':'high'});}['_getChangeFromId'](_0x53dd2f){return this['_changeIdToChange']['get'](_0x53dd2f);}['_getViewForChange'](_0x5a5112){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5a5112),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x28923b,_0x33f0cc,_0x1e392f,_0x427e9e)=>{_0x427e9e&&this['_balloon']['remove'](_0x427e9e),_0x1e392f&&(this['_balloon']['add']({'view':_0x1e392f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5ebcc3=this['editor']['editing'],_0x457f1f=this['_getChangeFromId'](_0x1e392f['changeId']);let _0x11ce12;if(_0x457f1f['data']['isOnRoot']){const _0x2a0e19=_0x5ebcc3['view']['getDomRoot'](_0x457f1f['rootName']);_0x11ce12=Array['from'](_0x2a0e19['getClientRects']());}else{const _0x2eddd1=this['editor']['model']['markers']['get']('revision:'+_0x1e392f['changeId']);_0x11ce12=Array['from'](_0x5ebcc3['mapper']['markerNameToElements'](_0x2eddd1['name']))['map'](_0x30afad=>_0x5ebcc3['view']['domConverter']['mapViewToDom'](_0x30afad))['map'](_0x3c4582=>Array['from'](_0x3c4582['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x11ce12[0x0];return _0x11ce12['find'](_0x4b82b1=>_0x4b82b1['top']-0x3<=this['_activeViewTarget']['y']&&_0x4b82b1['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4b82b1['left']-0x3<=this['_activeViewTarget']['x']&&_0x4b82b1['right']+0x3>=this['_activeViewTarget']['x'])||_0x11ce12[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x6cbdfc,_0x3ffc1c,_0x1ab8ba,_0x328e01)=>{this['activeView']=_0x1ab8ba?this['_getViewForChange'](_0x1ab8ba):null,this['editor']['model']['change'](()=>{const _0x3b9792=this['editor']['editing'];_0x328e01&&(_0x328e01['data']['isOnRoot']?_0x3b9792['view']['change'](_0x2b95d0=>{_0x2b95d0['removeClass']('ck-revision-history-root--active',_0x3b9792['view']['document']['getRoot'](_0x328e01['rootName']));}):_0x3b9792['reconvertMarker']('revision:'+_0x328e01['id'])),_0x1ab8ba&&(_0x1ab8ba['data']['isOnRoot']?_0x3b9792['view']['change'](_0x19e0a6=>{_0x19e0a6['addClass']('ck-revision-history-root--active',_0x3b9792['view']['document']['getRoot'](_0x1ab8ba['rootName']));}):_0x3b9792['reconvertMarker']('revision:'+_0x1ab8ba['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4e44a5,_0x3ff47e)=>{if(this['activeChange'])return;const _0x49703d=this['_findChangeIdFromDomTarget'](_0x3ff47e['target']),_0x362a4a=this['_changeIdToChange']['get'](_0x49703d);_0x362a4a?(this['_activeViewTarget']={'x':_0x3ff47e['domEvent']['x'],'y':_0x3ff47e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x362a4a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4a8ec4,_0x51212b)=>{const _0x116674=this['_findChangeIdFromDomTarget'](_0x51212b['target']),_0x3c7c77=this['_changeIdToChange']['get'](_0x116674);_0x3c7c77?(this['_activeViewTarget']={'x':_0x51212b['domEvent']['x'],'y':_0x51212b['domEvent']['y']},_0x3c7c77===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3c7c77):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x252e91){do{const _0x29859b=_0x252e91['getAttribute']('data-change-id');if(_0x29859b)return _0x29859b;_0x252e91=_0x252e91['parent'];}while(_0x252e91);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x236712=>{for(const _0xd85d21 of this['editor']['model']['markers'])_0x236712['removeMarker'](_0xd85d21);});}}function Z(_0x118d86,_0x13f59d){return(_0x1386c9,_0x475434,_0x26e20d)=>{if(!_0x26e20d['consumable']['test'](_0x475434['markerRange'],_0x1386c9['name']))return;const _0x2c8254=_0x475434['markerRange']['getWalker'](),_0x553dd7=_0x475434['markerRange']['start'],_0x2a2243=_0x118d86['model']['schema'];let _0x10c0e0=null,_0x21e00f=null,_0x24166d=!0x1,_0x15c716=!0x1;for(const _0x55fe0a of _0x2c8254){const _0xd0db2c=_0x55fe0a['item'];_0x24166d=_0x24166d||_0x2a2243['isContent'](_0xd0db2c);const _0x3100d1=_0x26e20d['mapper']['toViewElement'](_0xd0db2c);if(_0x3100d1&&_0x3100d1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55fe0a['type']&&(_0x2a2243['isBlock'](_0xd0db2c)&&!_0x2a2243['isLimit'](_0xd0db2c)&&(_0xd0db2c['nextSibling']||_0x553dd7['isAtEnd']?_0x10c0e0&&_0x10c0e0['parent']==_0xd0db2c||(_0x10c0e0=_0xd0db2c,_0x4489e1(_0x55fe0a['previousPosition']),_0x15c716=!0x0):_0x21e00f=_0x21e00f||_0x55fe0a['previousPosition']));}function _0x4489e1(_0x80f3b){const _0x421039=_0x26e20d['mapper']['toViewPosition'](_0x80f3b),_0xda2583=_0x26e20d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x13f59d});_0x26e20d['writer']['insert'](_0x421039,_0xda2583),_0x26e20d['mapper']['bindElementToMarker'](_0xda2583,_0x475434['markerName']);}_0x24166d||_0x15c716||!_0x21e00f||_0x4489e1(_0x21e00f);};}class _t extends _0x5d82cf{constructor(_0x401d34){super(_0x401d34);const _0x305433=_0x401d34['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x305433,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x305433,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5efa44=this['editor'],_0x3392ba=_0x5efa44['plugins']['get'](d),_0x259f1d=_0x3392ba['isReady']?_0x3392ba['diff']['newRevisionId']:null;_0x5efa44['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x259f1d);}['refresh'](){const {isReady:_0x36afa7,isEnabled:_0x101e2a,repository:_0x4b3f0b,diff:_0x6e00bf}=this['editor']['plugins']['get'](d),_0x25aca3=_0x6e00bf&&_0x4b3f0b['getLaterVisibleRevision'](_0x6e00bf['newRevisionId']);this['isEnabled']=_0x36afa7&&_0x101e2a&&Boolean(_0x25aca3);}}class yt extends _0x5d82cf{['_step'];constructor(_0x2b3dec,{direction:_0x15d239}){super(_0x2b3dec);const _0x4e3c49=_0x2b3dec['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x15d239?0x1:-0x1,this['listenTo'](_0x4e3c49,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4e3c49,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4e3c49,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2b9bde=this['editor'],_0x1db75f=_0x2b9bde['plugins']['get'](d),{isNavigationMode:_0xcc148c,currentChangeNumber:_0x5d47b2}=_0x1db75f;let _0x28e7f9;if(_0x1db75f['activeChange']=_0xcc148c?_0x1db75f['diff']['changes']['get'](_0x5d47b2+this['_step']):_0x1db75f['diff']['changes']['first'],_0x1db75f['activeChange']['data']['isOnRoot'])_0x28e7f9=_0x2b9bde['editing']['view']['getDomRoot'](_0x1db75f['activeChange']['rootName']);else{const _0x358333=_0x2b9bde['model']['markers']['get']('revision:'+_0x1db75f['activeChange']['id']);_0x28e7f9=_0x4184eb(_0x2b9bde['editing'],_0x358333);}_0x3e9bd5({'target':_0x28e7f9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x6ed828,currentChangeNumber:_0x44eb9c,numberOfChanges:_0x114540,isReady:_0x4d3fcd,isEnabled:_0x5f1639}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5f1639&&_0x4d3fcd&&_0x114540)&&(!_0x6ed828||(0x1===this['_step']?_0x44eb9c<_0x114540-0x1:_0x44eb9c>0x0));}}class _i extends _0xd5e275{constructor(_0x2cdb40){super(_0x2cdb40);const _0x7d6988=this['bindTemplate'],_0x2553ac=new _0x18c990(_0x2cdb40),_0x5b8e13=new _0x18c990(_0x2cdb40);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',(_0x3783de,_0x245162)=>_0x3783de&&_0x245162>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x573594,_0x48f232,_0x359290,_0x33d518)=>{if(!_0x573594)return m(_0x2cdb40,'Loading...');if(!_0x359290)return m(_0x2cdb40,'No\x20changes');const _0x5a3bd2=m(_0x2cdb40,'NUMBER_OF_CHANGES',_0x359290);return _0x33d518?m(_0x2cdb40,'X_OF_Y_CHANGES',[_0x48f232+0x1,_0x359290]):_0x5a3bd2;}),_0x2553ac['set']({'label':m(_0x2cdb40,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x58959a}),_0x5b8e13['set']({'label':m(_0x2cdb40,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5caeeb}),_0x2553ac['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5b8e13['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2553ac['on']('execute',()=>this['fire']('execute','backward')),_0x5b8e13['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',_0x7d6988['if']('_isStatusLabelVisible','ck-hidden',_0xab2280=>!_0xab2280)]},'children':[{'text':_0x7d6988['to']('isNavigationMode',_0x2f479f=>_0x2f479f?m(_0x2cdb40,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2cdb40,'Total')+':\x20')}]},{'text':_0x7d6988['to']('_statusText')}]},new _0x1cc786(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2553ac,_0x5b8e13]}]});}}const ee='ck-editor__editable__loading-overlay';class ie extends _0x14d729{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x11ad3a=this['editor']['editing']['view'];_0x11ad3a['change'](_0x94065d=>{for(const _0x382303 of _0x11ad3a['document']['roots'])_0x94065d['addClass'](ee,_0x382303);});}['hide'](){const _0x165eeb=this['editor']['editing']['view'];_0x165eeb['change'](_0x176a25=>{for(const _0x103503 of _0x165eeb['document']['roots'])_0x176a25['removeClass'](ee,_0x103503);});}}class w extends _0x14d729{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ie];}['init'](){const _0x356171=this['editor'],_0x1b1e3c=_0x356171['plugins']['get'](d),_0x4d363e=_0x356171['plugins']['get'](ie);_0x356171['ui']['componentFactory']['add']('exitToEditing',_0x30426c=>{const _0x4d9970=new _0x18c990(_0x30426c);return _0x4d9970['set']({'label':m(_0x30426c,'Back\x20to\x20editing'),'icon':te,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4d9970,'execute',()=>{_0x356171['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4d9970;}),_0x356171['ui']['componentFactory']['add']('restoreRevision',_0x2b9497=>{const _0x4045f1=new _0x18c990(_0x2b9497);return _0x4045f1['set']({'label':m(_0x2b9497,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4045f1['bind']('isEnabled')['to'](_0x356171['commands']['get']('restoreRevision')),this['listenTo'](_0x4045f1,'execute',()=>_0x356171['execute']('restoreRevision')),_0x4045f1;}),_0x356171['ui']['componentFactory']['add']('changesNavigation',_0x4cd60c=>{const _0x2f4817=new _i(_0x4cd60c),_0x4a95fd=_0x356171['commands']['get']('showPreviousChange'),_0x1f8144=_0x356171['commands']['get']('showNextChange');return _0x2f4817['bind']('isBackwardNavigationEnabled')['to'](_0x4a95fd,'isEnabled'),_0x2f4817['bind']('isForwardNavigationEnabled')['to'](_0x1f8144,'isEnabled'),_0x2f4817['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1b1e3c),this['listenTo'](_0x2f4817,'execute',(_0x23684,_0x2f79cd)=>{_0x356171['execute']('forward'===_0x2f79cd?'showNextChange':'showPreviousChange');}),_0x2f4817;}),_0x4d363e['show'](),_0x1b1e3c['on']('change:isReady',(_0x1bc043,_0x3649d4,_0x3c020c)=>{_0x3c020c?_0x4d363e['hide']():_0x4d363e['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x1fe5b1,_0x1e5e62){super(_0x1fe5b1,_0x1e5e62);const _0x1ad8c1=this['bindTemplate'];this['set']({'label':m(_0x1fe5b1,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1fe5b1,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1ad8c1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x100bc7=this['fieldView']['element'];this['_tooltipString']=_0x100bc7['scrollWidth']>_0x100bc7['clientWidth']&&_0x100bc7['value']||'';}}class oi extends _0xd5e275{constructor(_0x1ec721,_0x5b8eb3,_0x379d2c){super(_0x1ec721);const _0x4f0e0a=new _0x43ad7e();_0x4f0e0a['set']({'content':_0x1d673e,'viewBox':'0\x200\x2011\x2010'});const _0x24692a=['ck','ck-revision-history-sidebar__revision-author'];_0x379d2c&&_0x24692a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x380ac5=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1ec721,_0x379d2c?'Revision\x20creator':'Revision\x20author')},'children':[_0x4f0e0a,_0x5b8eb3['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x24692a},'children':_0x380ac5});}}function ni(_0x58a468,_0x34ebc5){const _0xa2da70=_0x58a468['bindTemplate'],_0x15d91c=_0x58a468['locale'],_0x5844fe=_0x49d6ff(_0x15d91c);_0x5844fe['panelPosition']='sw';const _0x1c7189=function(_0x585085,_0x4701f1){const _0x53d9fe=function(_0xa61bb6,_0x3af8b9){const _0x5820dd=_0xa61bb6['locale'],_0x591c36={'Compare\x20against\x20selected':m(_0x5820dd,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5820dd,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5820dd,'Restore\x20this\x20revision')};return _0x3af8b9['map'](_0x515ed3=>{const _0x45239f=_0x591c36[_0x515ed3['name']];return _0x45239f&&_0x45239f!==_0x515ed3['name']&&(_0x515ed3['name']=_0x45239f),_0x515ed3;});}(_0x585085,_0x4701f1),_0x3ee823=new _0x155967();for(const _0x32c580 of _0x53d9fe){const _0x4293e6={'type':'button','model':new to({'label':_0x32c580['name'],'class':_0x32c580['class'],'withText':!0x0,'role':'menuitem','_action':_0x32c580['action']})};_0x4293e6['model']['bind']('isEnabled')['to'](_0x585085,'isActionsDropdownOpen',_0x1935aa=>'function'!=typeof _0x32c580['isEnabled']||(!_0x1935aa||_0x32c580['isEnabled'](_0x585085))),_0x3ee823['add'](_0x4293e6);}return _0x3ee823;}(_0x58a468,_0x34ebc5);return _0x58a468['bind']('isActionsDropdownOpen')['to'](_0x5844fe,'isOpen'),_0x5844fe['buttonView']['set']({'label':m(_0x15d91c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x9148f5}),_0x5844fe['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xa2da70['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xa2da70['to'](_0x3353bc=>_0x3353bc['stopPropagation']())}}),_0x5844fe['on']('execute',_0x3f3ab1=>{_0x58a468['isReady']&&'function'==typeof _0x3f3ab1['source']['_action']&&_0x3f3ab1['source']['_action'](_0x58a468);}),_0x878981(_0x5844fe,_0x1c7189,{'role':'menu'}),_0x5844fe['listenTo'](_0x58a468,'change:isActionsDropdownOpen',(_0xffa2e6,_0x5d61e2,_0x5f1850)=>{if(_0x5f1850)for(const _0x4997ff of _0x5844fe['listView']['items']){const _0x1730d6=_0x4997ff['children']['first'],_0x345ab1=_0x34ebc5['find'](_0x5cf3ab=>_0x5cf3ab['action']===_0x1730d6['_action'])['isVisible'];_0x4997ff['isVisible']=void 0x0===_0x345ab1||_0x345ab1(_0x58a468);}}),_0x5844fe;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x57b214(_0xd5e275){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1c9a6d,_0x2fbe29,_0x4618bd,_0x5e2e07){super(_0x1c9a6d);const _0xf1deda=this['bindTemplate'],_0x398f80=function(_0x345e4c,_0xdb5560){const _0x4c65cc=Array['from'](_0xdb5560['authors'])['filter'](_0x4d1084=>_0x4d1084!=_0xdb5560['creator']);return _0xdb5560['creator']&&_0x4c65cc['unshift'](_0xdb5560['creator']),_0x4c65cc['map'](_0x32dfea=>new oi(_0x345e4c,_0x32dfea,_0x32dfea==_0xdb5560['creator']));}(_0x1c9a6d,_0x2fbe29);this['id']=_0x2fbe29['id'],this['_revision']=_0x2fbe29,this['_requireRevisionName']=_0x5e2e07,this['bind']('name','createdAt')['to'](_0x2fbe29),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4fdd5a=>{return _0x1f0f98=_0x1c9a6d['uiLanguage'],(_0xc22f67=_0x4fdd5a)['toLocaleDateString'](_0x1f0f98,{'month':'long','day':'numeric'})+',\x20'+_0xc22f67['toLocaleTimeString'](_0x1f0f98,{'hour':'numeric','minute':'numeric'});var _0x1f0f98,_0xc22f67;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x1c9a6d,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x21d3c9=>_0x21d3c9||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4264fe,_0x27ddf)=>_0x4264fe&&_0x27ddf),this['revisionActionsView']=_0x4618bd&&_0x4618bd['length']?ni(this,_0x4618bd):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xf1deda['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xf1deda['if']('isEnabled','ck-disabled',_0x2ad9b7=>!_0x2ad9b7),_0xf1deda['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xf1deda['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xf1deda['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':_0xf1deda['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':_0x398f80}]},this['revisionActionsView']],'on':{'click':_0xf1deda['to'](_0x59d0a3=>{_0x59d0a3['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x43f539=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x43f539,'change',()=>{this['_requireRevisionName']&&!_0x43f539['value']||this['fire']('setName',{'id':this['id'],'name':_0x43f539['value']}),_0x43f539['value']||(_0x43f539['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(_0x511ba5,_0x219b69){const _0x1aacf9=_0x314ab0['fromJSDate'](_0x511ba5)['setLocale'](_0x219b69),_0x2e71d6=_0x314ab0['local'](),_0x1bca9b=_0x2e71d6['minus']({'days':0x1})['startOf']('day');let _0x121c9f,_0x406552;return _0x1aacf9['hasSame'](_0x2e71d6,'day')?(_0x121c9f=_0x1aacf9['startOf']('day')['toJSDate'](),_0x406552=_0x1aacf9['toRelativeCalendar']()):_0x1aacf9['hasSame'](_0x1bca9b,'day')?(_0x121c9f=_0x1bca9b['toJSDate'](),_0x406552=_0x1aacf9['toRelativeCalendar']()):_0x1aacf9['hasSame'](_0x2e71d6,'week')?(_0x121c9f=_0x1aacf9['startOf']('week')['toJSDate'](),_0x406552=_0x1aacf9['weekdayLong']||''):_0x1aacf9['hasSame'](_0x2e71d6,'year')?(_0x121c9f=_0x1aacf9['startOf']('month')['toJSDate'](),_0x406552=_0x1aacf9['monthLong']||''):(_0x121c9f=_0x1aacf9['startOf']('year')['toJSDate'](),_0x406552=String(_0x1aacf9['year'])),{'startDate':_0x121c9f,'localizedPeriodName':_0x406552};}class pi extends _0xd5e275{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x268314,_0xc5ae9b,_0xeefd5d,_0x2b315){super(_0x268314);const _0x4b9110=mi(_0xc5ae9b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xc5ae9b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xeefd5d,this['_requireRevisionName']=_0x2b315,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':_0x4b9110}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1e7f99){const _0x3f3516=new ai(this['locale'],_0x1e7f99,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3f3516);}['removeRevision'](_0x14fccf){const _0x2158ef=this['revisionViews']['find'](_0x5be3cf=>_0x5be3cf['id']===_0x14fccf['id']);this['revisionViews']['remove'](_0x2158ef);}}class as extends _0xd5e275{constructor(_0x470ba1){super(_0x470ba1);const _0x27924a=new _0x43ad7e();_0x27924a['content']=_0x409341,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x27924a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x470ba1,'Revision\x20history')]}]});}}class vi extends _0xd5e275{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2c4b16,_0x2ecbf5,_0x636ce9,_0x2e6896){super(_0x2c4b16);const _0x6c5197=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2ecbf5,this['_revisionActions']=_0x636ce9,this['_requireRevisionName']=_0x2e6896,this['on']('select',(_0x554008,_0x4904eb)=>{this['fire']('revisionSelected',_0x4904eb);}),this['on']('setName',(_0x368af0,_0x43418b)=>{this['fire']('revisionSetName',_0x43418b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2c4b16),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x6c5197['if']('isEnabled','ck-disabled',_0x525e94=>!_0x525e94)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2317f8 of this['_revisions'])this['_addRevision'](_0x2317f8);this['_revisions']['on']('add',(_0x28b51c,_0x5dcd51)=>{this['_addRevision'](_0x5dcd51);}),this['_revisions']['on']('remove',(_0xc15ecc,_0x408dea)=>{this['_removeRevision'](_0x408dea);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x23d838=>_0x23d838['revisionViews']['map'](_0x5027a8=>_0x5027a8))['flat']();}['selectRevision'](_0xfbfe39){for(const _0x49dc75 of this['revisionViews'])_0xfbfe39&&_0xfbfe39['id']===_0x49dc75['id']?_0x49dc75['select']():_0x49dc75['deselect']();}['highlightRevisions'](_0x56eadd){for(const _0x92bcc1 of this['revisionViews'])_0x56eadd['some'](({id:_0x41750a})=>_0x41750a===_0x92bcc1['id'])?_0x92bcc1['highlight']():_0x92bcc1['unhighlight']();}['_addRevision'](_0x4bf8ef){const _0x50bb0e=mi(_0x4bf8ef['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x576dab=this['timePeriodViews']['get'](0x0);_0x576dab&&_0x576dab['startDate']['getTime']()===_0x50bb0e['getTime']()||(_0x576dab=new pi(this['locale'],_0x50bb0e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x576dab)),_0x576dab['addRevision'](_0x4bf8ef);}['_removeRevision'](_0x37f715){const _0x4b4171=mi(_0x37f715['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4b4171)['removeRevision'](_0x37f715);}['_getTimePeriodViewByStartDate'](_0x4cf580){return this['timePeriodViews']['find'](_0x56126e=>_0x56126e['startDate']['getTime']()===_0x4cf580['getTime']());}}class g extends _0x14d729{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x483523,uid as _0x5a02a9,Collection as _0x3079d2,logWarning as _0x83bf48,FocusTracker as _0x27da0c,KeystrokeHandler as _0x2d093e,scrollViewportToShowTarget as _0x2cf28c,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0xde607a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x40199d,set as _0x226e92,unset as _0x30c570,isEqual as _0x2a2107}from'es-toolkit/compat';import{Plugin as _0x2f905d,PendingActions as _0x27d625,Command as _0x5e08eb,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2224a0,getMarkerDomElement as _0x269309,ConfirmMixin as ti,sanitizeEditorConfig as _0x429e08}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1108a9,Element as ut,Range as ft,ViewUIElement as _0x440d86,ViewRawElement as _0x382404,ViewEmptyElement as _0x29edbd,ViewAttributeElement as _0x3aaf69,ViewContainerElement as _0x386a50,Position as vt,ViewText as _0x571cbe,ViewElement as _0x14fb2a,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4424f5,IconChevronUp as _0x107656,IconChevronDown as _0x5b3bdc,IconUndo as _0x5351ed,IconUser as _0x14fda0,IconThreeVerticalDots as _0xa948b0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x44c91d,submitHandler as _0x1a12bc,LabeledFieldView as _0x3770cf,createLabeledInputText as _0x37f3f7,createDropdown as _0x55d4ff,ListView as _0x59bf72,ListItemView as _0x482dd0,ButtonView as te,MenuBarMenuView as _0x29c6f2,MenuBarMenuListView as _0x4e0090,MenuBarMenuListItemView as _0x3babad,MenuBarMenuListItemButtonView as _0x2fc8b7,ContextualBalloon as _0x2b7475,ToolbarSeparatorView as _0x5153b1,IconView as _0x495d9e,addListToDropdown as _0xa23c87,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x59c818}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x483523(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x306fea){super(),this['id']=_0x306fea['id']||_0x5a02a9(),this['creator']=_0x306fea['creator']||null,this['authors']=_0x306fea['authors']||[],this['diffData']=_0x306fea['diffData']||null,this['toVersion']=_0x306fea['toVersion']||0x0,this['fromVersion']=_0x306fea['fromVersion']||0x0,this['set']('name',_0x306fea['name']||''),this['set']('createdAt',_0x306fea['createdAt']||new Date()),this['set']('attributes',_0x306fea['attributes']||{});}['setName'](_0x13b4c7){this['_update']({'name':_0x13b4c7});}['setAttribute'](_0x4b7110,_0x30dc97){const _0x3d9765=_0x40199d(this['attributes']);_0x226e92(_0x3d9765,_0x4b7110,_0x30dc97),this['_update']({'attributes':_0x3d9765});}['removeAttribute'](_0x3ff066){const _0x18b9c1=_0x40199d(this['attributes']);_0x30c570(_0x18b9c1,_0x3ff066),this['_update']({'attributes':_0x18b9c1});}['_update'](_0x4c861d,_0x1d746e=!0x1){let _0x466d43=!0x1;const _0x2dcc4f={'id':this['id']},_0x1bcc56=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5787aa of _0x1bcc56){const _0x544c1c=_0x4c861d[_0x5787aa];void 0x0!==_0x544c1c&&_0x544c1c!==this[_0x5787aa]&&(this[_0x5787aa]=_0x544c1c,_0x2dcc4f[_0x5787aa]=_0x544c1c,_0x466d43=!0x0);}_0x466d43&&(_0x2dcc4f['authors']&&(_0x2dcc4f['authorsIds']=_0x2dcc4f['authors']['map'](_0x5cb3af=>_0x5cb3af['id']),delete _0x2dcc4f['authors']),this['fire']('_update',_0x2dcc4f,_0x1d746e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x93c495=>_0x93c495['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2f905d{['_revisions'];static get['requires'](){return[_0x2224a0];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x126839){super(_0x126839),this['_revisions']=new _0x3079d2();}['afterInit'](){!async function(_0x12a335){const _0x123db3=_0x3e0678([0x52,0x30,0x42,0x6e,0x4d,0x38,0x76,0x51,0x7a,0x49,0x47,0x63,0x35,0x58,0x74,0x75,0x4e,0x71,0x44,0x59,0x45,0x53,0x39,0x56,0x6f,0x34,0x64,0x69,0x4a,0x36,0x77,0x65,0x70,0x41,0x50,0x33,0x62,0x73,0x32,0x31,0x37,0x55,0x4c,0x43,0x54,0x67,0x4f,0x46,0x48,0x72,0x79,0x6b,0x6d,0x4b,0x5a,0x78,0x6c,0x61,0x68,0x66,0x57,0x6a]),_0x9b8a92=0xeb829,_0x3f2b9b=0x73f932a8,_0x3d011e=0x73fe6d70^_0x3f2b9b,_0x6a6224=window[_0x3e0678([0x44,0x61,0x74,0x65])][_0x3e0678([0x6e,0x6f,0x77])](),_0x310c2d=_0x12a335[_0x3e0678([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc4bf58=new window[(_0x3e0678([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x367d6c=>{_0x310c2d[_0x3e0678([0x6f,0x6e,0x63,0x65])](_0x3e0678([0x72,0x65,0x61,0x64,0x79]),_0x367d6c);}),_0x1b185b={[_0x3e0678([0x6b,0x74,0x79])]:_0x3e0678([0x45,0x43]),[_0x3e0678([0x75,0x73,0x65])]:_0x3e0678([0x73,0x69,0x67]),[_0x3e0678([0x63,0x72,0x76])]:_0x3e0678([0x50,0x2d,0x32,0x35,0x36]),[_0x3e0678([0x78])]:_0x3e0678([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]),[_0x3e0678([0x79])]:_0x3e0678([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]),[_0x3e0678([0x61,0x6c,0x67])]:_0x3e0678([0x45,0x53,0x32,0x35,0x36])},_0xefa9e7=_0x310c2d[_0x3e0678([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e0678([0x67,0x65,0x74])](_0x3e0678([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bfc70(){let _0x118b1c,_0x251d4b=null,_0x5256eb=null;try{if(_0xefa9e7==_0x3e0678([0x47,0x50,0x4c]))return _0x3e0678([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x118b1c=_0x3ebf2f(),!_0x118b1c)return _0x3e0678([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x118b1c[_0x3e0678([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5256eb=_0x30758a(_0x118b1c[_0x3e0678([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x118b1c[_0x3e0678([0x6a,0x74,0x69])])),await _0x3e8fdb()?_0x4379d7()?_0x52ff1e()?_0x3e0678([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e8c19()?(_0x118b1c[_0x3e0678([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0678([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x251d4b=_0xd2d6c5(_0x3e0678([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x118b1c[_0x3e0678([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e0678([0x74,0x72,0x69,0x61,0x6c])&&(_0x251d4b=_0xd2d6c5(_0x3e0678([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57663f()):_0x3e0678([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0678([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e0678([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2dcfa4){return _0x3e0678([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52ff1e(){const _0x51bf5e=[_0x3e0678([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e0678([0x74,0x72,0x69,0x61,0x6c])][_0x3e0678([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x118b1c[_0x3e0678([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6a6224/0x3e8:0xe10*_0x3d011e;return _0x118b1c[_0x3e0678([0x65,0x78,0x70])]<_0x51bf5e;}function _0x4379d7(){const _0x5aa59a=_0x118b1c[_0x3e0678([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5aa59a)return!0x1;if(_0x5aa59a[_0x3e0678([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0678([0x2a])))return!0x0;if(_0x5aa59a[_0x3e0678([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0678([0x52,0x48])))return!0x0;if(_0x5aa59a[_0x3e0678([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0678([0x52,0x52,0x48]))){if(_0x18ac7a())return!0x0;if(_0x3983eb()||_0x1dfef7())return!0x0;}return!0x1;}function _0x3e8c19(){const _0x4af793=_0x118b1c[_0x3e0678([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4af793||0x0==_0x4af793[_0x3e0678([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x487dfc}=new URL(window[_0x3e0678([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4af793[_0x3e0678([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487dfc))return!0x0;const _0xb8eff7=_0x487dfc[_0x3e0678([0x73,0x70,0x6c,0x69,0x74])](_0x3e0678([0x2e]));return _0x4af793[_0x3e0678([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x405caf=>_0x405caf[_0x3e0678([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0678([0x2a])))[_0x3e0678([0x6d,0x61,0x70])](_0x3f1a57=>_0x3f1a57[_0x3e0678([0x73,0x70,0x6c,0x69,0x74])](_0x3e0678([0x2e])))[_0x3e0678([0x73,0x6f,0x6d,0x65])](_0x5157fe=>_0xb8eff7[_0x3e0678([0x65,0x76,0x65,0x72,0x79])]((_0x3087de,_0x3d8243)=>_0x5157fe[_0x3d8243]===_0x3087de||_0x5157fe[_0x3d8243]===_0x3e0678([0x2a])));}function _0x57663f(){return _0x251d4b&&_0x5256eb?new window[(_0x3e0678([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c72e6,_0x59864d)=>{_0x251d4b[_0x3e0678([0x74,0x68,0x65,0x6e])](_0x2c72e6,_0x59864d),_0x5256eb[_0x3e0678([0x74,0x68,0x65,0x6e])](_0x4e32c7=>{_0x4e32c7!=_0x3e0678([0x56,0x61,0x6c,0x69,0x64])&&_0x2c72e6(_0x4e32c7);},_0x59864d);}):_0x251d4b||_0x5256eb||_0x3e0678([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30758a(_0x49aad0,_0x4d3c7b){return new window[(_0x3e0678([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5af4c9=>{if(_0x4e2bcc())return _0x5af4c9(_0x3e0678([0x56,0x61,0x6c,0x69,0x64]));_0x532b80(),_0x310c2d[_0x3e0678([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e0678([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6737f3=!0x1;const _0x2fe362=_0x5a02a9();function _0x5a2dd8(_0x21cf05){return!!_0x21cf05&&(typeof _0x21cf05===_0x3e0678([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21cf05===_0x3e0678([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21cf05[_0x3e0678([0x74,0x68,0x65,0x6e])]===_0x3e0678([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21cf05[_0x3e0678([0x63,0x61,0x74,0x63,0x68])]===_0x3e0678([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d0c72(_0x4f0560){_0x43fae0(_0x4f0560)[_0x3e0678([0x74,0x68,0x65,0x6e])](_0x280b3c=>{if(!_0x280b3c||_0x280b3c[_0x3e0678([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e0678([0x6f,0x6b]))return _0x3e0678([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59c996(_0x34785f(_0x2fe362+_0x4d3c7b))!=_0x280b3c[_0x3e0678([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e0678([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e0678([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0678([0x74,0x68,0x65,0x6e])](_0x5c9ccf=>(_0x5514e4(),_0x5c9ccf),()=>{const _0x4bd426=_0x30440e();return null==_0x4bd426?(_0x5514e4(),_0x3e0678([0x56,0x61,0x6c,0x69,0x64])):_0x3e0678(_0x6a6224-_0x4bd426>(0x57f5b6a8^_0x3f2b9b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e0678([0x74,0x68,0x65,0x6e])](_0x5af4c9)[_0x3e0678([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5af4c9(_0x3e0678([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24abc7=0x73cfdc28^_0x3f2b9b;function _0x5514e4(){const _0x3c1f63=_0x3e0678([0x6c,0x6c,0x63,0x74,0x2d])+_0x59c996(_0x34785f(_0x49aad0)),_0x21411a=_0x564bb3(_0x59c996(window[_0x3e0678([0x4d,0x61,0x74,0x68])][_0x3e0678([0x63,0x65,0x69,0x6c])](_0x6a6224/_0x24abc7)));window[_0x3e0678([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0678([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c1f63,_0x21411a);}function _0x30440e(){const _0x28d979=_0x3e0678([0x6c,0x6c,0x63,0x74,0x2d])+_0x59c996(_0x34785f(_0x49aad0)),_0x4c7a67=window[_0x3e0678([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e0678([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28d979);return _0x4c7a67?window[_0x3e0678([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x564bb3(_0x4c7a67),0x10)*_0x24abc7:null;}function _0x43fae0(_0x3268d9){return new window[(_0x3e0678([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41cde5,_0x13dec9)=>{_0x3268d9[_0x3e0678([0x74,0x68,0x65,0x6e])](_0x41cde5,_0x13dec9),window[_0x3e0678([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13dec9,0x73f8e668^_0x3f2b9b);});}}_0x310c2d[_0x3e0678([0x6f,0x6e])](_0x3e0678([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27fc46,_0x23e77b)=>{if(_0x23e77b[0x0]!=_0x49aad0)return _0x5af4c9(_0x3e0678([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23e77b[0x1]={..._0x23e77b[0x1],[_0x3e0678([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fe362};},{[_0x3e0678([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0678([0x68,0x69,0x67,0x68])}),_0x310c2d[_0x3e0678([0x6f,0x6e])](_0x3e0678([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x35be9d=>{_0x5a2dd8(_0x35be9d[_0x3e0678([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6737f3=!0x0,_0x5d0c72(_0x35be9d[_0x3e0678([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e0678([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e0678([0x6c,0x6f,0x77])}),_0xc4bf58[_0x3e0678([0x74,0x68,0x65,0x6e])](()=>{_0x6737f3||_0x5af4c9(_0x3e0678([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e2bcc(){return _0x310c2d[_0x3e0678([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0678([0x76,0x69,0x65,0x77])][_0x3e0678([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e0678([0x61,0x75,0x74,0x6f]);}function _0x532b80(){_0x310c2d[_0x3e0678([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e0678([0x76,0x69,0x65,0x77])][_0x3e0678([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e0678([0x61,0x75,0x74,0x6f]);}}function _0xd2d6c5(_0xf345aa){const _0x4b7805=[new window[(_0x3e0678([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30a70f=>setTimeout(_0x30a70f,0x73f00c64^_0x3f2b9b)),_0xc4bf58[_0x3e0678([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e0678([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57db13=>{const _0x560e15=0x73f932af^_0x3f2b9b,_0x39eadd=_0x12a335[_0x3e0678([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x203849(){_0x39eadd[_0x3e0678([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x560e15&&_0x57db13();}_0x203849(),_0x39eadd[_0x3e0678([0x6f,0x6e])](_0x3e0678([0x61,0x64,0x64]),_0x203849);})),new window[(_0x3e0678([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22e14d=>{function _0x17d8d1(){for(const _0x565a0d in window)if(window[_0x3e0678([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3e0678([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x565a0d))&&window[_0x565a0d]==_0x9b8a92)return _0x22e14d();_0x310c2d[_0x3e0678([0x73,0x74,0x61,0x74,0x65])]!=_0x3e0678([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3e0678([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17d8d1,0x73f92120^_0x3f2b9b);}_0x4c407a(_0x3e0678([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x17d8d1();})];return window[_0x3e0678([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e0678([0x72,0x61,0x63,0x65])](_0x4b7805)[_0x3e0678([0x74,0x68,0x65,0x6e])](()=>_0xf345aa);}async function _0x98cef(){if(await _0xc4bf58,_0x4c407a(_0x3e0678([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3deebd=_0x12a335[_0x3e0678([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4b39c9=_0x12a335[_0x3e0678([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])](_0x3deebd[_0x3e0678([0x69,0x64])]),_0x491fd4=_0x4521cf(_0x3e0678([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x491fd4[_0x3e0678([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3deebd['id'],_0x4b39c9?_0x4b39c9['id']:null,!0x0),_0x491fd4[_0x3e0678([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3e0678([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x491fd4[_0x3e0678([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x491fd4[_0x3e0678([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3a06cf,void(_0x491fd4[_0x3e0678([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3a06cf);}if(_0x4c407a(_0x3e0678([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x8c75f2=_0x4521cf(_0x3e0678([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x8c75f2[_0x3e0678([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3e0678([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x8c75f2[_0x3e0678([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x8c75f2[_0x3e0678([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3a06cf,_0x8c75f2[_0x3e0678([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3a06cf;}_0x310c2d[_0x3e0678([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0678([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a06cf,_0x310c2d[_0x3e0678([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e0678([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a06cf,_0x310c2d[_0x3e0678([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e0678([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18ac7a(){return _0x4c407a(_0x3e0678([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4521cf(_0x3e0678([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3e0678([0x73,0x74,0x61,0x74,0x65])]==_0x3e0678([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3983eb(){return _0x4c407a(_0x3e0678([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1dfef7(){return _0x4c407a(_0x3e0678([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b20d3(_0x481cbc){const _0x17d0af=_0x3845f0();_0x310c2d[_0x17d0af]=_0x3e0678([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])+_0x481cbc,_0x481cbc[_0x3e0678([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3e0678([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3845f0()]=_0x9b8a92),_0x481cbc!=_0x3e0678([0x56,0x61,0x6c,0x69,0x64])&&_0x98cef();}function _0x3845f0(){const _0x1dab08=window[_0x3e0678([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e0678([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e0678([0x6e,0x6f,0x77])]())[_0x3e0678([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e0678([0x2e]),'');let _0x40c81d=_0x3e0678([0x52]);for(let _0x24cd73=0x0;_0x24cd73<_0x1dab08[_0x3e0678([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24cd73+=0x2){let _0x2983fc=window[_0x3e0678([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dab08[_0x3e0678([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24cd73,_0x24cd73+0x2));_0x2983fc>=_0x123db3[_0x3e0678([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2983fc-=_0x123db3[_0x3e0678([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40c81d+=_0x123db3[_0x2983fc];}return _0x40c81d;}function _0x3ebf2f(){const _0x4ffde6=_0xefa9e7[_0x3e0678([0x73,0x70,0x6c,0x69,0x74])](_0x3e0678([0x2e]));if(0x3!=_0x4ffde6[_0x3e0678([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49087c(_0x4ffde6[0x1]);function _0x49087c(_0x429422){const _0x4591c3=_0x5ea669(_0x429422);return _0x4591c3&&_0x20deb5()?_0x4591c3:null;function _0x20deb5(){const _0x47685c=_0x4591c3[_0x3e0678([0x6a,0x74,0x69])],_0x5168d6=window[_0x3e0678([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47685c[_0x3e0678([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47685c[_0x3e0678([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4434df={..._0x4591c3,[_0x3e0678([0x6a,0x74,0x69])]:_0x47685c[_0x3e0678([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47685c[_0x3e0678([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4434df[_0x3e0678([0x76,0x63])],_0x34785f(_0x4434df)==_0x5168d6;}}}async function _0x3e8fdb(){let _0x5c9962=!0x0;try{const _0x2aef47=_0xefa9e7[_0x3e0678([0x73,0x70,0x6c,0x69,0x74])](_0x3e0678([0x2e])),[_0x487440,_0xc9f9f3,_0x1b88e0]=_0x2aef47;return _0x458128(_0x487440),await _0x4eeed2(_0x487440,_0xc9f9f3,_0x1b88e0),_0x5c9962;}catch(_0x25e501){return!0x1;}function _0x458128(_0x3e1ebb){const _0x367984=_0x5ea669(_0x3e1ebb);_0x367984&&_0x367984[_0x3e0678([0x61,0x6c,0x67])]==_0x3e0678([0x45,0x53,0x32,0x35,0x36])||(_0x5c9962=!0x1);}async function _0x4eeed2(_0x496236,_0x468d48,_0x16c9f9){const _0xe9f7f4=window[_0x3e0678([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e0678([0x66,0x72,0x6f,0x6d])](_0x198369(_0x16c9f9),_0xa59575=>_0xa59575[_0x3e0678([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a80e9=new window[(_0x3e0678([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e0678([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x496236+_0x3e0678([0x2e])+_0x468d48),_0x2e1ea6=window[_0x3e0678([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e0678([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e1ea6)return;const _0x54f54e=await _0x2e1ea6[_0x3e0678([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e0678([0x6a,0x77,0x6b]),_0x1b185b,{[_0x3e0678([0x6e,0x61,0x6d,0x65])]:_0x3e0678([0x45,0x43,0x44,0x53,0x41]),[_0x3e0678([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e0678([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e0678([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e1ea6[_0x3e0678([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e0678([0x6e,0x61,0x6d,0x65])]:_0x3e0678([0x45,0x43,0x44,0x53,0x41]),[_0x3e0678([0x68,0x61,0x73,0x68])]:{[_0x3e0678([0x6e,0x61,0x6d,0x65])]:_0x3e0678([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54f54e,_0xe9f7f4,_0x4a80e9)||(_0x5c9962=!0x1);}}function _0x5ea669(_0x22cba8){return _0x22cba8[_0x3e0678([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e0678([0x65,0x79]))?JSON[_0x3e0678([0x70,0x61,0x72,0x73,0x65])](_0x198369(_0x22cba8)):null;}function _0x198369(_0xabc420){return window[_0x3e0678([0x61,0x74,0x6f,0x62])](_0xabc420[_0x3e0678([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e0678([0x2b]))[_0x3e0678([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e0678([0x2f])));}function _0x34785f(_0x2f3c72){let _0xa19610=0x1505;function _0x8035e2(_0x4c4422){for(let _0x49b82c=0x0;_0x49b82c<_0x4c4422[_0x3e0678([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49b82c++){const _0x626da8=_0x4c4422[_0x3e0678([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x49b82c);_0xa19610=(_0xa19610<<0x5)+_0xa19610+_0x626da8,_0xa19610&=_0xa19610;}}function _0x574102(_0x29c736){Array[_0x3e0678([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29c736)?_0x29c736[_0x3e0678([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x574102):_0x29c736&&typeof _0x29c736==_0x3e0678([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e0678([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29c736)[_0x3e0678([0x73,0x6f,0x72,0x74])]()[_0x3e0678([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37e557,_0x85dd91])=>{_0x8035e2(_0x37e557),_0x574102(_0x85dd91);}):_0x8035e2(window[_0x3e0678([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29c736));}return _0x574102(_0x2f3c72),_0xa19610>>>0x0;}function _0x59c996(_0x5a8f5f){return _0x5a8f5f[_0x3e0678([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e0678([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e0678([0x30]));}function _0x564bb3(_0x567576){return _0x567576[_0x3e0678([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e0678([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e0678([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c407a(_0x24a7bb){return _0x310c2d[_0x3e0678([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e0678([0x68,0x61,0x73])](_0x24a7bb);}function _0x4521cf(_0x1ba70c){return _0x310c2d[_0x3e0678([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e0678([0x67,0x65,0x74])](_0x1ba70c);}function _0x3a06cf(){}function _0x3e0678(_0x3d9986){return _0x3d9986['map'](_0x4da63c=>String['fromCharCode'](_0x4da63c))['join']('');}_0x2b20d3(await _0x5bfc70());}(this);}['createRevision'](_0x5e8e5e){const _0xa9dce7=this['editor']['plugins']['get']('Users');return new h({'id':_0x5e8e5e['id'],'name':_0x5e8e5e['name'],'creator':_0x5e8e5e['creatorId']?_0xa9dce7['getUser'](_0x5e8e5e['creatorId']):null,'diffData':_0x5e8e5e['diffData']||_0x5e8e5e['data'],'authors':_0x5e8e5e['authorsIds']['map'](_0x17a7f5=>_0xa9dce7['getUser'](_0x17a7f5)),'createdAt':new Date(_0x5e8e5e['createdAt']),'attributes':_0x5e8e5e['attributes'],'fromVersion':_0x5e8e5e['fromVersion'],'toVersion':_0x5e8e5e['toVersion']});}['addRevision'](_0x1f5e24,_0x32c075=0x0){this['_revisions']['add'](_0x1f5e24,_0x32c075);}['getRevision'](_0x1e1ba6){return this['_revisions']['get'](_0x1e1ba6);}['getRevisions'](_0x59c702={'toJSON':!0x1}){const _0xcb804=Array['from'](this['_revisions']);return _0xcb804['reverse'](),_0x59c702['toJSON']?_0xcb804['map'](_0x13ec3f=>_0x13ec3f['toJSON']()):_0xcb804;}['getIndex'](_0x2aaeb0){return this['_revisions']['getIndex'](_0x2aaeb0);}['getEarlierVisibleRevision'](_0x1d313c){const [,_0x254fba]=this['getRevisionsIterator'](_0x1d313c,{'direction':'earlier'});return _0x254fba;}['getLaterVisibleRevision'](_0x12f553){const [,_0x5a3726]=this['getRevisionsIterator'](_0x12f553,{'direction':'later'});return _0x5a3726;}['getRevisionsInDiff'](_0x433da5){const _0x1a8a13=[];for(const _0x2de74c of this['getRevisionsIterator'](_0x433da5['newRevisionId']))if(_0x1a8a13['push'](_0x2de74c),_0x2de74c['id']===_0x433da5['oldRevisionId'])break;return _0x1a8a13;}*['getRevisionsIterator'](_0x536ea4,{direction:_0x2fe069='earlier',filter:_0x34a226=()=>!0x0}={}){const _0x22fbf3='earlier'===_0x2fe069?0x1:-0x1;let _0x15dead=this['_revisions']['get'](_0x536ea4),_0x14490c=this['getIndex'](_0x15dead);for(yield _0x15dead;_0x15dead;){if(_0x14490c+=_0x22fbf3,_0x15dead=this['getRevision'](_0x14490c),!_0x15dead)return;_0x34a226(_0x15dead)&&(yield _0x15dead);}}}function m(_0xb63b1b,_0x3880a4,_0x5724a5){const t=_0xb63b1b['t'];switch(_0x3880a4){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'},_0x5724a5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5724a5);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x386a50,'a':_0x3aaf69,'e':_0x29edbd,'r':_0x382404,'u':_0x440d86};class u extends _0x2f905d{['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[_0x2224a0,j,_0x27d625];}constructor(_0x49ff5f){super(_0x49ff5f),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3baaa9=_0x5a02a9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3baaa9},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 _0x1990ff=this['repository']['getRevision'](0x0),_0x1a71d6=_0x1990ff&&null===_0x1990ff['creator']?_0x1990ff:null;if(this['_continueCurrentRevision']=!!_0x1a71d6&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x51f0b6=this['_source']['getCurrentRevisionId'](),_0x980ace=this['repository']['getRevision'](_0x51f0b6);if(_0x980ace)this['_startingVersion']=_0x980ace['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2b4b80=this['_source']['history']['_operations']['find'](_0x1080a0=>!_0x1080a0['_isInit']),_0x41c62=_0x2b4b80?_0x2b4b80['baseVersion']:this['_source']['history']['version'];_0x1990ff?(_0x1990ff['toVersion']<_0x41c62&&_0x1990ff['_update']({'toVersion':_0x41c62}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1a71d6['id'],this['_startingVersion']=_0x1a71d6['fromVersion']):(this['_startingVersion']=_0x1990ff['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x41c62,this['_continueCurrentRevision']=!0x1);}}else _0x1a71d6&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1a71d6['toVersion'],this['editor']['model']['document']['history']['version']),_0x1a71d6['fromVersion']===_0x1a71d6['toVersion']?(0x0!==_0x1a71d6['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a71d6['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a71d6['id'],this['_startingVersion']=_0x1a71d6['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',_0x50e04d=>!_0x50e04d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3824ca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x58caa0;for(const _0x2287ad in _0x3824ca){const _0x389a28=_0x2287ad,_0x1ebc3e=_0x3824ca[_0x389a28];if('revisionHistoryLicenseKeyValid'==_0x1ebc3e||'revisionHistoryLicenseKeyInvalid'==_0x1ebc3e||'revisionHistoryLicenseKeyExpired'==_0x1ebc3e||'revisionHistoryLicenseKeyDomainLimit'==_0x1ebc3e||'revisionHistoryLicenseKeyNotAllowed'==_0x1ebc3e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1ebc3e||'revisionHistoryLicenseKeyTrialLimit'==_0x1ebc3e||'revisionHistoryLicenseKeyUsageLimit'==_0x1ebc3e){delete _0x3824ca[_0x389a28],_0x58caa0=_0x1ebc3e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x58caa0&&_0x3824ca['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x58caa0&&_0x3824ca['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x58caa0&&_0x3824ca['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x58caa0&&_0x3824ca['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x58caa0&&_0x3824ca['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x58caa0&&_0x3824ca['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x58caa0&&_0x3824ca['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x497031=this['repository']['getRevision'](0x0),_0x12d5e3=await this['getRevisionDocumentData'](_0x497031),_0xe73bac=await this['getRevisionRootsAttributes'](_0x497031);this['_replaceEditorDataWithRevisionData'](_0x12d5e3,_0xe73bac);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x16cb1a){this['_source']=_0x16cb1a;}async['update'](){const _0x1d4135=await this['_source']['getLatestVersion']();if(_0x1d4135>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4fe179=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1d4135});_0x4fe179['authors']=_0x4fe179['authorsIds']['map'](_0xceac5e=>this['editor']['plugins']['get']('Users')['getUser'](_0xceac5e)),this['currentRevision']['_update'](_0x4fe179);}}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'](_0x5e0e96={},_0x2040d7=null){const _0x3f2127=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2040d7>this['currentRevision']['toVersion']&&(_0x2040d7=null),null===_0x2040d7&&(_0x2040d7=await this['_source']['getLatestVersion']());const _0x3a76f8=this['_getFromVersion'](_0x2040d7),_0x34909a=this['buildRevisionData']({'from':_0x3a76f8,'to':_0x2040d7});if(this['currentRevision']['toVersion']<_0x2040d7){const _0x112ce8=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2040d7,'to':_0x2040d7});_0x112ce8['authors']=[],_0x112ce8['authorsIds']=[],_0x112ce8['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x112ce8,!0x0),delete _0x112ce8['authors'],_0x3f2127['push'](_0x112ce8);}_0x5e0e96['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5e0e96['name']=_0x5e0e96['name']||null,_0x5e0e96['id']=_0x5e0e96['id']||_0x5a02a9(),_0x5e0e96={..._0x5e0e96,..._0x34909a};const _0x362699=this['addRevisionData'](_0x5e0e96);_0x3f2127['push'](_0x5e0e96);const _0x533777=this['repository']['getIndex'](_0x362699);if(0x0!==_0x533777){const _0x1d9aa1=this['repository']['getRevision'](_0x533777-0x1);if(_0x1d9aa1['fromVersion']!==_0x2040d7){const _0x3b4faa=this['_revisionDataBuilder']['getData'](_0x2040d7,_0x1d9aa1['toVersion']),_0xfee19d={'id':_0x1d9aa1['id'],'diffData':_0x3b4faa['diffData'],'authorsIds':_0x3b4faa['authorsIds'],'authors':_0x3b4faa['authorsIds']['map'](_0x2109b5=>this['editor']['plugins']['get']('Users')['getUser'](_0x2109b5)),'fromVersion':_0x2040d7};_0x1d9aa1===this['currentRevision']&&(_0xfee19d['createdAt']=new Date(_0x5e0e96['createdAt']['getTime']()+0xa)),_0x1d9aa1['_update'](_0xfee19d,!0x0),delete _0xfee19d['authors'],_0x3f2127['push'](_0xfee19d);}}if(this['adapter']){for(const _0x2d5106 of _0x3f2127)this['_bufferUpdate'](_0x2d5106['id'],_0x2d5106,!0x0);this['sendBufferedUpdates']();}return _0x362699;}['addRevisionData'](_0x12fb18){const _0x5d24d0=this['repository']['createRevision'](_0x12fb18);return this['adapter']&&_0x5d24d0['on']('_update',(_0x2e51fb,_0x255e76,_0x4d30a9)=>{_0x4d30a9||(this['_bufferUpdate'](_0x255e76['id'],_0x255e76,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5d24d0,this['_findInsertionIndex'](_0x5d24d0)),_0x5d24d0;}async['getRevisionDocumentData'](_0x28232d){await this['_loadRevisionData'](_0x28232d);const _0xafa7f2={};for(const _0x443ad5 in _0x28232d['diffData']){if(_0x28232d['diffData'][_0x443ad5]['attachChange']&&!_0x28232d['diffData'][_0x443ad5]['attachChange']['isAttached'])continue;const _0x19b0b9=this['_removeRevisionMarkers'](JSON['parse'](_0x28232d['diffData'][_0x443ad5]['insertions'])),_0xabf785=this['editor']['editing']['view']['document'],_0x106f8e=new _0x1108a9(_0xabf785,_0x19b0b9['map'](_0x2960d1=>P(_0x2960d1,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xafa7f2[_0x443ad5]=this['editor']['data']['processor']['toData'](_0x106f8e),this['editor']['data']['processor']['useFillerType']('default');}return _0xafa7f2;}async['getRevisionRootsAttributes'](_0x1d510e){await this['_loadRevisionData'](_0x1d510e);const _0x21af45={};for(const _0x24fdc6 in _0x1d510e['diffData'])_0x1d510e['diffData'][_0x24fdc6]['attachChange']&&!_0x1d510e['diffData'][_0x24fdc6]['attachChange']['isAttached']||(_0x21af45[_0x24fdc6]=_0x1d510e['diffData'][_0x24fdc6]['attributesAfter']||{});return _0x21af45;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x188342=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1aca0d=0x0;_0x1aca0d<_0x188342['length'];_0x1aca0d++){const _0x3886e7=_0x188342[_0x1aca0d];let _0x44013f=!0x1;for(const _0x13ebdd of Object['keys'](_0x3886e7))void 0x0===_0x3886e7[_0x13ebdd]?delete _0x3886e7[_0x13ebdd]:'id'!==_0x13ebdd&&(_0x44013f=!0x0);_0x44013f||(_0x188342[_0x1aca0d]=null);}if(_0x188342=_0x188342['filter'](_0x313c42=>null!==_0x313c42),!_0x188342['length'])return;for(let _0x1ac1db=0x0;_0x1ac1db<_0x188342['length'];_0x1ac1db++){const _0x26e811=_0x188342[_0x1ac1db];void 0x0!==_0x26e811['fromVersion']&&void 0x0===_0x26e811['toVersion']&&(_0x26e811['toVersion']=this['repository']['getRevision'](_0x26e811['id'])['toVersion']),void 0x0!==_0x26e811['toVersion']&&void 0x0===_0x26e811['fromVersion']&&(_0x26e811['fromVersion']=this['repository']['getRevision'](_0x26e811['id'])['fromVersion']);}const _0x2523b8=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x188342,_0x2523b8)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4ce22c=>{if(_0x4ce22c){for(const _0x4dbdd6 of _0x4ce22c)this['setRevisionData']({'id':_0x4dbdd6['id'],'createdAt':_0x4dbdd6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1a12ac,_0x19f228){let _0x3ee877=this['editor']['config']['get']('initialData'),_0x11a66e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3ee877){_0x3ee877={};for(const _0xec497c of this['editor']['model']['document']['getRootNames']())_0x3ee877[_0xec497c]='';}if('string'==typeof _0x3ee877&&(_0x3ee877={'main':_0x3ee877}),void 0x0===_0x11a66e){_0x11a66e={};for(const _0x3289da of this['editor']['model']['document']['getRootNames']())_0x11a66e[_0x3289da]={};}let _0x1d9671=!0x1;const _0x2ed56a=Object['keys'](_0x3ee877),_0x1a46f0=Object['keys'](_0x1a12ac);for(const _0x1884ca of _0x2ed56a){if(_0x3ee877[_0x1884ca]!==_0x1a12ac[_0x1884ca]&&''!==_0x3ee877[_0x1884ca]['trim']()){_0x1d9671=!0x0;break;}if(!_0x2a2107(_0x11a66e[_0x1884ca],_0x19f228[_0x1884ca])&&Object['keys'](_0x11a66e[_0x1884ca])['length']>0x0){_0x1d9671=!0x0;break;}}_0x1d9671||(_0x1d9671=_0x1a46f0['some'](_0x4ebdae=>!this['editor']['model']['document']['getRoot'](_0x4ebdae))),_0x1d9671&&_0x83bf48('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3ee877,'editorRootsAttributes':_0x11a66e,'revisionData':_0x1a12ac,'revisionRootsAttributes':_0x19f228}),this['editor']['config']['set']('initialData',_0x1a12ac),this['editor']['config']['set']('rootsAttributes',_0x19f228);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x328a42=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x328a42['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x57591d){const _0x37a621=this['repository']['getRevisions']();_0x37a621['reverse']();let _0x443413=0x0;for(;_0x443413<_0x37a621['length'];){const _0x218305=_0x37a621[_0x443413];if(_0x218305===this['currentRevision']){_0x443413++;continue;}if(_0x218305['id']===this['_initialRevisionId'])break;const _0x4dda6e=_0x57591d['toVersion']-_0x218305['toVersion']||_0x57591d['fromVersion']-_0x218305['fromVersion'];if(_0x4dda6e>0x0)break;if(_0x4dda6e<0x0)_0x443413++;else{if(!_0x57591d['creator']&&_0x218305['creator'])break;if(_0x218305['creator']||!_0x57591d['creator']){if(_0x57591d['createdAt']>_0x218305['createdAt'])break;_0x443413++;}else _0x443413++;}}return _0x443413;}['setRevisionData'](_0x41b88d){const _0x5f320e=this['repository']['getRevision'](_0x41b88d['id']);if(_0x41b88d['createdAt']&&(_0x41b88d['createdAt']=new Date(_0x41b88d['createdAt'])),_0x41b88d['authorsIds']){const _0x50c25a=this['editor']['plugins']['get']('Users');_0x41b88d['authors']=_0x41b88d['authorsIds']['map'](_0x5432af=>_0x50c25a['getUser'](_0x5432af));}_0x5f320e['_update'](_0x41b88d,!0x0);}['buildRevisionData']({revision:_0xc31d93=null,from:_0x25a48f=null,to:_0xc94428=null}){_0x25a48f=null!==_0x25a48f?_0x25a48f:_0xc31d93['fromVersion'],_0xc94428=null!==_0xc94428?_0xc94428:_0xc31d93['toVersion'];const _0x442352=this['_revisionDataBuilder']['getData'](_0x25a48f,_0xc94428),_0x449047={'diffData':_0x442352['diffData'],'authorsIds':_0x442352['authorsIds'],'fromVersion':_0x25a48f,'toVersion':_0xc94428};if(!_0xc31d93||_0xc94428!==_0xc31d93['toVersion']){const _0x59fcff=_0xc94428-0x1,_0x117a27=this['_source']['history']['getOperation'](_0x59fcff);_0x449047['createdAt']=_0x117a27&&_0x117a27['createdAt']||new Date();}if(this['_loadedStateData']&&_0x25a48f===this['_loadedStateData']['fromVersion']){for(const _0x1dec34 of this['_loadedStateData']['authors'])_0x449047['authorsIds']['includes'](_0x1dec34['id'])||_0x449047['authorsIds']['push'](_0x1dec34['id']);}return _0x449047;}['_loadRevisionData'](_0x30f625){if(!_0x30f625||_0x30f625['diffData'])return Promise['resolve']();{const _0x509cd5=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x509cd5,'revisionId':_0x30f625['id']})['then'](_0x3f7edc=>{_0x30f625['diffData']=_0x3f7edc['diffData'];});}}['_bufferUpdate'](_0x110fd8,_0x376cdf,_0x1fbe91){if(this['_bufferedUpdates']['has'](_0x110fd8)){const _0x2f91b9=this['_bufferedUpdates']['get'](_0x110fd8);_0x376cdf=_0x1fbe91?{..._0x2f91b9,..._0x376cdf}:{..._0x376cdf,..._0x2f91b9};}this['_bufferedUpdates']['set'](_0x110fd8,_0x376cdf);}['_getFromVersion'](_0x2a6f0c){const _0x31bc39=this['repository']['getRevisions']();_0x31bc39['reverse'](),_0x31bc39['shift']();const _0x2c4a71=_0x31bc39['find'](_0x5ba3a4=>_0x5ba3a4['toVersion']<=_0x2a6f0c)['toVersion'];return _0x2c4a71<this['_startingVersion']?this['_startingVersion']:_0x2c4a71;}['_createInitialRevision'](_0x2a8020){const _0x43e6c4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x43e6c4)this['_initialRevisionId']=_0x43e6c4['id'];else{const _0x2b545d=!this['editor']['model']['document']['roots']['find'](_0x29ec5c=>this['editor']['model']['hasContent'](_0x29ec5c)),_0x40613f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2767fe=m(this['editor']['locale'],_0x2b545d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2a8020,'to':_0x2a8020,'id':this['_initialRevisionId'],'name':_0x2767fe,'creatorId':_0x40613f});}}['_createCurrentRevision'](_0x43b32a){const _0x50a11a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x50a11a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x43b32a,'to':_0x43b32a,'id':_0x50a11a,'name':'','creatorId':null}));}['_makeRevision']({name:_0x20e466,from:_0x36b0ea,to:_0x5eb263,creatorId:_0x5d3e55,id:_0x2baaf5}){const _0x30e70c=this['buildRevisionData']({'from':_0x36b0ea,'to':_0x5eb263});_0x30e70c['name']=_0x20e466,_0x30e70c['creatorId']=_0x5d3e55,_0x30e70c['id']=_0x2baaf5;const _0x16a0c0=this['addRevisionData'](_0x30e70c);return this['adapter']&&this['_bufferUpdate'](_0x30e70c['id'],_0x30e70c,!0x0),_0x16a0c0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x56b9b5){return(_0x56b9b5=_0x56b9b5['filter'](_0x3e36a1=>!_0x3e36a1['name']||'revision-start'!==_0x3e36a1['name']&&'revision-end'!==_0x3e36a1['name']))['forEach'](_0x37de19=>{'string'!=typeof _0x37de19&&(_0x37de19['children']=this['_removeRevisionMarkers'](_0x37de19['children']),_0x37de19['attributes']=_0x37de19['attributes']['filter'](_0x4b2f14=>!_0x4b2f14[0x0]['startsWith']('data-revision-')));}),_0x56b9b5;}}function P(_0x2b7b2f,_0x27dbcc){const _0xef71ed=_0x27dbcc['editing']['view']['document'];if('string'==typeof _0x2b7b2f)return new _0x571cbe(_0xef71ed,_0x2b7b2f);{const _0x5c15e6=_0x2b7b2f['children']['map'](_0x30c1b6=>P(_0x30c1b6,_0x27dbcc));return new(E[_0x2b7b2f['type']]||_0x14fb2a)(_0xef71ed,_0x2b7b2f['name'],_0x2b7b2f['attributes'],_0x5c15e6);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x19710e){this['editor']=_0x19710e,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'](_0x3380ec){this['source']=_0x3380ec;const _0x5d6680=new Map(),_0x4b8460=new Map(),_0x210068=this['editor']['model']['document']['roots']['map'](_0x390df6=>_0x390df6['rootName']);for(const _0x1f62f3 of _0x210068){const _0xecc963=this['editor']['model']['document']['getRoot'](_0x1f62f3),_0x4df7fb=T(_0xecc963);_0x5d6680['set'](_0x1f62f3,_0x4df7fb),_0x4b8460['set'](_0x1f62f3,Object['fromEntries'](_0xecc963['getAttributes']()));}const _0x27e945=Array['from'](this['editor']['model']['markers'])['map'](_0x327335=>[_0x327335['name'],_0x327335['getRange']()]),_0x67be07=this['source']['version'];this['_saveMetaData'](_0x67be07,_0x5d6680,_0x27e945,_0x4b8460),this['_startingRevisionId']=this['_revisionId'];const _0x152be0=new Map(),_0x3d8c09=new Map();for(const _0x4309ff of _0x210068){const _0xc59a23=F(_0x4309ff);_0x152be0['set'](_0x4309ff,_0xc59a23),_0x3d8c09['set'](_0x4309ff,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x152be0,[],_0x3d8c09);}['getData'](_0x30afc1,_0x11991f){if(this['_lastFrom']===_0x30afc1&&this['_lastTo']<=_0x11991f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x11991f,!0x0);else{if(!this['_savedMetaData']['has'](_0x30afc1)){const _0xaa1c0a=this['_getPreviousFrom'](_0x30afc1);this['_calculateMetaData'](_0xaa1c0a,_0x30afc1,!0x1);}this['_calculateMetaData'](_0x30afc1,_0x11991f,!0x0);}return this['_lastFrom']=_0x30afc1,this['_lastTo']=_0x11991f,this['_getState']();}['loadState'](_0x1acfe5){this['_reset'](),this['_lastFrom']=_0x1acfe5['fromVersion'],this['_lastTo']=_0x1acfe5['toVersion'];for(const _0x5f1f72 in _0x1acfe5['diffData']){const _0x2658c3=_0x1acfe5['diffData'][_0x5f1f72]['attachChange'],_0x5edcb=_0x40199d(_0x1acfe5['diffData'][_0x5f1f72]['attributesBefore'])||{},_0x47283b=this['_makeModelFromViewString'](_0x1acfe5['diffData'][_0x5f1f72]['deletions']);_0x47283b['rootName']=_0x5f1f72,_0x47283b['_isAttached']=!_0x2658c3||!_0x2658c3['isAttached'],_0x47283b['isAttached']=()=>_0x47283b['_isAttached'],this['_baseRoots']['set'](_0x5f1f72,_0x47283b),this['_baseRootsAttributes']['set'](_0x5f1f72,_0x5edcb),_0x2658c3&&this['_touchedRoots']['set'](_0x5f1f72,_0x2658c3);const _0x1cba69=this['_makeIdsRoot'](_0x47283b);this['_baseIdsRoots']['set'](_0x5f1f72,_0x1cba69);for(const [_0x373c7e,_0x3ad5cc]of _0x47283b['markers']){if(!_0x373c7e['startsWith']('revision:'))continue;const _0x445e23=_0x373c7e['split'](':')[0x2];for(const _0xbad755 of _0x3ad5cc['getWalker']({'singleCharacters':!0x0})){const _0x4fe866=this['_getVidAttributeName'](_0xbad755),_0x46fee2='elementEnd'==_0xbad755['type']?_0xbad755['previousPosition']['path']['slice'](0x0,-0x1):_0xbad755['previousPosition']['path'],_0x55b92d=_0x1cba69['getNodeByPath'](_0x46fee2)['getAttribute'](_0x4fe866);this['_touched']['set'](_0x55b92d,{'userId':_0x445e23});}}}this['_startingRevisionId']=this['_revisionId'];const _0x511409=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x504f96=>!this['_touched']['has'](_0x504f96));let _0x358813=0x0;const _0x3db159=new Map();for(const _0x40007b in _0x1acfe5['diffData']){const _0x45f38f=_0x1acfe5['diffData'][_0x40007b]['attachChange'],_0x471dd6=_0x40199d(_0x1acfe5['diffData'][_0x40007b]['attributesAfter'])||{},_0x15f111=this['_makeModelFromViewString'](_0x1acfe5['diffData'][_0x40007b]['insertions']);_0x15f111['rootName']=_0x40007b,_0x15f111['_isAttached']=!_0x45f38f||_0x45f38f['isAttached'],_0x15f111['isAttached']=()=>_0x15f111['_isAttached'],this['_diffRoots']['set'](_0x40007b,_0x15f111),this['_diffRootsAttributes']['set'](_0x40007b,_0x471dd6);const _0x2303ea=this['_makeIdsRoot'](_0x15f111,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x40007b,_0x2303ea),_0x3db159['set'](_0x40007b,_0x15f111['isAttached']()?_0x471dd6:{});for(const [_0x317608,_0x586f0d]of _0x15f111['markers']){if(!_0x317608['startsWith']('revision:'))continue;const _0x4c2caf=_0x317608['split'](':')[0x2];for(const _0x4f96ec of _0x586f0d['getWalker']({'singleCharacters':!0x0})){const _0xcceb37=this['_getVidAttributeName'](_0x4f96ec),_0x12f735=this['_revisionId']++,_0x5446aa='elementEnd'==_0x4f96ec['type']?_0x4f96ec['previousPosition']['path']['slice'](0x0,-0x1):_0x4f96ec['previousPosition']['path'];_0x2303ea['getNodeByPath'](_0x5446aa)['_setAttribute'](_0xcceb37,_0x12f735),this['_touched']['set'](_0x12f735,{'userId':_0x4c2caf});}}for(const _0x205b66 of this['editor']['model']['createRangeIn'](_0x15f111)['getWalker']({'singleCharacters':!0x0})){const _0x33374e=this['_getVidAttributeName'](_0x205b66),_0x279592='elementEnd'==_0x205b66['type']?_0x205b66['previousPosition']['path']['slice'](0x0,-0x1):_0x205b66['previousPosition']['path'],_0x46c32c=_0x2303ea['getNodeByPath'](_0x279592);_0x46c32c['getAttribute'](_0x33374e)>0x0||_0x46c32c['_setAttribute'](_0x33374e,_0x511409[_0x358813++]);}for(const [_0x46ffd2,_0x5b5c1c]of _0x15f111['markers'])_0x46ffd2['startsWith']('revision:')||this['_markers']['set'](_0x46ffd2,_0x5b5c1c);}const _0x3391c1=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3391c1),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3391c1,0x1));const _0x12d2b7=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x12d2b7),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x12d2b7,0x1));const _0x729bb7=Array['from'](this['_diffRoots'])['map'](([_0x17e57d,_0x656114])=>[_0x17e57d,T(_0x656114)]);this['_saveMetaData'](this['_lastTo'],_0x729bb7,this['_markers'],_0x3db159);}['_makeModelFromViewString'](_0x13955a){const _0x28ae77=JSON['parse'](_0x13955a),_0x172780=this['editor']['editing']['view']['document'],_0x48cf27=new _0x1108a9(_0x172780,_0x28ae77['map'](_0x2b58cf=>P(_0x2b58cf,this['editor'])));return this['editor']['data']['toModel'](_0x48cf27);}['_saveMetaData'](_0x5aa6b0,_0x1203fd,_0x5302c0,_0xc5f4c7){const _0x534dbf=new Map(_0x1203fd),_0x39b472=new Map(_0x40199d(_0xc5f4c7)),_0x288440=new Map();for(const [_0x44088c,_0x390dbf]of _0x5302c0)_0x288440['set'](_0x44088c,{'start':_0x390dbf['start']['clone'](),'end':_0x390dbf['end']['clone'](),'rootName':_0x390dbf['root']['rootName']});this['_savedMetaData']['set'](_0x5aa6b0,{'roots':_0x534dbf,'markers':_0x288440,'rootsAttributes':_0x39b472});}['_removeMetaData'](_0x363a75){this['_savedMetaData']['delete'](_0x363a75);}['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'](_0x421b4c,_0x2dace2=null){let _0x51df73=null;_0x421b4c['is']('documentFragment')||(_0x51df73=new ut(_0x421b4c['name'],{'vid_start':null===_0x2dace2?this['_revisionId']++:_0x2dace2++}));const _0x55d30a=[];for(const _0xec3c26 of _0x421b4c['getChildren']())if(_0xec3c26['is']('element')){_0x55d30a['push'](this['_makeIdsRoot'](_0xec3c26,_0x2dace2));const _0x3bd7c9=_0x55d30a[_0x55d30a['length']-0x1];null!==_0x2dace2&&(_0x2dace2=_0x3bd7c9['is']('element','$text')?_0x3bd7c9['getAttribute']('vid')+0x1:_0x3bd7c9['getAttribute']('vid_end')+0x1);}else{for(let _0x20d025=0x0;_0x20d025<_0xec3c26['offsetSize'];_0x20d025++)_0x55d30a['push'](new ut('$text',{'vid':null===_0x2dace2?this['_revisionId']++:_0x2dace2++}));}if(_0x421b4c['is']('documentFragment')){const _0x5c79e6=F(_0x421b4c['rootName']);return _0x5c79e6['_insertChild'](0x0,_0x55d30a),_0x5c79e6;}return _0x51df73['_setAttribute']('vid_end',null===_0x2dace2?this['_revisionId']++:_0x2dace2++),_0x51df73['_insertChild'](0x0,_0x55d30a),_0x51df73;}['_calculateMetaData'](_0x38ca24,_0x31e955,_0x318620){this['_reset']();const {roots:_0x1f36ee,markers:_0x327732,rootsAttributes:_0x367c68}=this['_savedMetaData']['get'](_0x38ca24);this['_baseRoots']=new Map(_0x1f36ee),this['_baseRootsAttributes']=new Map(_0x40199d(_0x367c68));for(const [_0x9eee5d,_0x30cbc8]of this['_baseRoots'])if('$graveyard'!==_0x9eee5d&&(this['_diffRoots']['set'](_0x9eee5d,T(_0x30cbc8)),this['_diffRootsAttributes']=new Map(_0x40199d(_0x367c68)),_0x318620)){const _0x14d191=this['_revisionId'];this['_idsRoots']['set'](_0x9eee5d,this['_makeIdsRoot'](_0x30cbc8)),this['_baseIdsRoots']['set'](_0x9eee5d,this['_makeIdsRoot'](_0x30cbc8,_0x14d191));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x318620&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x175597,_0x3f07d4]of _0x327732){const _0x2ab082=this['_baseRoots']['get'](_0x3f07d4['rootName']),_0x7aa696=this['_diffRoots']['get'](_0x3f07d4['rootName']),_0x412839=new ft(this['_fixPosition'](_0x3f07d4['start'],_0x2ab082),this['_fixPosition'](_0x3f07d4['end'],_0x2ab082)),_0x13aa58=this['_fixRange'](_0x412839,_0x7aa696);_0x2ab082['markers']['set'](_0x175597,_0x412839),this['_markers']['set'](_0x175597,_0x13aa58);}this['_applyOperations'](_0x38ca24,_0x31e955,_0x318620);}['_applyOperations'](_0x46a8de,_0x574a17,_0x113b44){for(const _0x2ad95b of this['source']['getOperations'](_0x46a8de,_0x574a17))this['_handleOperation'](_0x2ad95b,_0x113b44);for(const _0x339371 of this['_diffRoots']['values']())_0x339371['markers']['clear']();for(const [_0xf217c,_0xea2824]of this['_markers']){this['_diffRoots']['get'](_0xea2824['root']['rootName'])['markers']['set'](_0xf217c,_0xea2824['clone']());}const _0x52e7f8=new Map(),_0x4f8221=new Map();for(const [_0x5e44ff,_0x20708f]of this['_diffRoots'])_0x52e7f8['set'](_0x5e44ff,T(_0x20708f)),_0x4f8221['set'](_0x5e44ff,this['_diffRootsAttributes']['get'](_0x5e44ff));this['_saveMetaData'](_0x574a17,_0x52e7f8,this['_markers'],_0x4f8221);}['_getPreviousFrom'](_0x48b2bc){const _0x1c9429=Array['from'](this['_savedMetaData']['keys']());_0x1c9429['sort']((_0x5232a1,_0x183ccf)=>_0x5232a1-_0x183ccf),_0x1c9429['reverse']();for(const _0x317716 of _0x1c9429)if(_0x317716<_0x48b2bc)return _0x317716;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x16327d,_0x5ca826){const _0x421631=Array['from'](_0x5ca826['markers'])['map'](([_0x36b0df,_0x496017])=>[_0x36b0df,this['_fixRange'](_0x496017,_0x16327d)]);_0x16327d['markers']=new Map(_0x421631);}['_transformMarkers'](_0xf229cf){for(const _0x14f6d3 of this['_markers']['values']()){const _0x46d984=_0x14f6d3['getTransformedByOperation'](_0xf229cf),_0x171552=ft['_createFromRanges'](_0x46d984);_0x14f6d3['start']=_0x171552['start'],_0x14f6d3['end']=_0x171552['end'];}}['_handleOperation'](_0x795b5b,_0xfd72e7){if('addRoot'!=_0x795b5b['type']&&'detachRoot'!=_0x795b5b['type']){if('insert'==_0x795b5b['type']){const _0x4028b5=_0x795b5b['position']['root']['rootName'];this['_diffRoots']['has'](_0x4028b5)||(this['_diffRoots']['set'](_0x4028b5,F(_0x4028b5,!0x0)),this['_diffRootsAttributes']['set'](_0x4028b5,{}),_0xfd72e7&&this['_idsRoots']['set'](_0x4028b5,F(_0x4028b5,!0x0)));}else{if('addRootAttribute'==_0x795b5b['type']||'removeRootAttribute'==_0x795b5b['type']||'changeRootAttribute'==_0x795b5b['type'])return void this['_handleRootAttributeOperation'](_0x795b5b);'marker'==_0x795b5b['type']&&this['_handleMarkerOperation'](_0x795b5b);}if('marker'!==_0x795b5b['type']){const _0x20d5b4=this['_cloneOperation'](_0x795b5b,this['_diffRoots']);_0x20d5b4['_execute'](),this['_transformMarkers'](_0x20d5b4);}if(_0xfd72e7)switch(_0x795b5b['type']){case'insert':this['_handleInsertOperation'](_0x795b5b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x795b5b);break;case'merge':this['_handleMergeOperation'](_0x795b5b);break;case'split':this['_handleSplitOperation'](_0x795b5b);}}else this['_handleRootOperation'](_0x795b5b,_0xfd72e7);}['_cloneOperation'](_0x2d2952,_0x59e227){const _0x56c0f5=_0x2d2952['clone']();return _0x56c0f5['_authorId']=_0x2d2952['_authorId'],this['_fixOperation'](_0x56c0f5,_0x59e227),_0x56c0f5;}['_getBaseVids'](_0x2ceedf){return _0x2ceedf['map'](_0x351187=>{const _0x2f2a81=this['_getVidAttributeName'](_0x351187);return Number(_0x351187['item']['getAttribute'](_0x2f2a81));});}['_generateTape'](_0x2124be,_0x5f7fd2){if(_0x2124be['is']('element','$text'))_0x5f7fd2['push']({'item':_0x2124be,'type':'text'});else{_0x2124be['is']('element')&&_0x5f7fd2['push']({'item':_0x2124be,'type':'elementStart'});for(const _0xc56942 of _0x2124be['getChildren']())this['_generateTape'](_0xc56942,_0x5f7fd2);_0x2124be['is']('element')&&_0x5f7fd2['push']({'item':_0x2124be,'type':'elementEnd'});}return _0x5f7fd2;}['_getState'](){const _0x5e4bdf=new Map(this['_touched']),_0x15be6c=new Map(_0x5e4bdf),_0x1a0c37=new Map(),_0x46a89e={'insertions':{},'deletions':{}},_0x9766b={'insertions':{},'deletions':{}},_0x5ed96f=new Map(),_0x35b836=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x35b836['delete']('$graveyard');for(const _0x15bcaa of _0x35b836){const _0x58bc93=this['_diffRoots']['get'](_0x15bcaa)||F(_0x15bcaa,!0x1),_0x5448b6=this['_baseRoots']['get'](_0x15bcaa)||F(_0x15bcaa,!0x1);_0x58bc93['isAttached']()||_0x5448b6['isAttached']()?(_0x46a89e['insertions'][_0x15bcaa]=T(_0x58bc93),_0x46a89e['deletions'][_0x15bcaa]=T(_0x5448b6),this['_copyMarkers'](_0x46a89e['deletions'][_0x15bcaa],_0x5448b6),this['_copyMarkers'](_0x46a89e['insertions'][_0x15bcaa],_0x58bc93),_0x9766b['insertions'][_0x15bcaa]=this['_generateTape'](this['_idsRoots']['get'](_0x15bcaa),[]),_0x9766b['deletions'][_0x15bcaa]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x15bcaa)||F(_0x15bcaa,!0x1),[])):_0x35b836['delete'](_0x15bcaa);}for(const _0x7bcaca of _0x35b836){const _0x4bbade=_0x9766b['insertions'][_0x7bcaca];for(const _0x166e7e of _0x4bbade){const _0x36cc77=this['_getVidAttributeName'](_0x166e7e),_0x49ca73=_0x166e7e['item']['getAttribute'](_0x36cc77);_0x15be6c['delete'](_0x49ca73),_0x49ca73>=this['_startingRevisionId']&&_0x1a0c37['set'](_0x49ca73,_0x5e4bdf['get'](_0x49ca73));}}for(const _0x2de9de of _0x35b836){const _0x565944=_0x9766b['insertions'][_0x2de9de],_0x232ea8=this['_getBaseVids'](_0x9766b['deletions'][_0x2de9de]);let _0x4c4005=0x0;for(const _0x139d7d of _0x565944){const _0x411985=this['_getVidAttributeName'](_0x139d7d),_0x1a0905=_0x139d7d['item']['getAttribute'](_0x411985);if(!_0x1a0c37['has'](_0x1a0905)&&!_0x5ed96f['has'](_0x1a0905)){if(_0x15be6c['has'](_0x1a0905))_0x4c4005++;else{if(_0x1a0905!=_0x232ea8[_0x4c4005]){const _0x3fa9a9=_0x5e4bdf['get'](_0x1a0905)||_0x5e4bdf['get'](_0x232ea8[_0x4c4005]);for(;_0x1a0905!=_0x232ea8[_0x4c4005];)_0x15be6c['has'](_0x232ea8[_0x4c4005])||(_0x5ed96f['set'](_0x232ea8[_0x4c4005],_0x3fa9a9),_0x5e4bdf['set'](_0x232ea8[_0x4c4005],_0x3fa9a9)),_0x4c4005++;}_0x4c4005++;}}}}for(const _0x482ba9 of _0x35b836){const _0x2a49ce=_0x9766b['insertions'][_0x482ba9];for(const _0x125b4a of _0x2a49ce){const _0x3f4680=this['_getVidAttributeName'](_0x125b4a),_0x1d8c21=_0x125b4a['item']['getAttribute'](_0x3f4680);if(_0x5ed96f['has'](_0x1d8c21)){const _0x2a61c3=_0x5ed96f['get'](_0x1d8c21);_0x15be6c['has'](_0x1d8c21)||_0x15be6c['set'](_0x1d8c21,{..._0x2a61c3}),_0x1a0c37['set'](_0x1d8c21,{..._0x2a61c3});}}}for(const _0x6d0b4e of _0x15be6c['keys']())_0x6d0b4e>=this['_startingRevisionId']&&_0x15be6c['delete'](_0x6d0b4e);const _0x202e78=new Map();for(const _0x3adef5 of _0x35b836){let _0x4b51a7=_0x9766b['insertions'][_0x3adef5];for(const _0x511bec of _0x4b51a7)if(_0x511bec['item']['is']('element','tableCell')){const _0x83429f=this['_getVidAttributeName'](_0x511bec),_0xf07970=_0x511bec['item']['getAttribute'](_0x83429f);if(_0x1a0c37['has'](_0xf07970)){const _0x414a12=_0x511bec['item']['parent']['parent']['getAttribute']('vid_start'),_0x1fef72=_0x202e78['get'](_0x414a12)||new Set();_0x1fef72['add'](_0x1a0c37['get'](_0xf07970)['userId']),_0x202e78['set'](_0x414a12,_0x1fef72);}}_0x4b51a7=_0x9766b['deletions'][_0x3adef5];for(const _0x59e519 of _0x4b51a7)if(_0x59e519['item']['is']('element','tableCell')){const _0x24287d=this['_getVidAttributeName'](_0x59e519),_0x406f35=_0x59e519['item']['getAttribute'](_0x24287d);if(_0x15be6c['has'](_0x406f35)){const _0x3d77cc=_0x59e519['item']['parent']['parent']['getAttribute']('vid_start'),_0x1c3249=_0x202e78['get'](_0x3d77cc)||new Set();_0x1c3249['add'](_0x15be6c['get'](_0x406f35)['userId']),_0x202e78['set'](_0x3d77cc,_0x1c3249);}}for(const _0xe96487 of _0x202e78['keys']())(_0x1a0c37['has'](_0xe96487)||_0x15be6c['has'](_0xe96487))&&_0x202e78['delete'](_0xe96487);}for(const _0x4ce457 of _0x35b836){const _0xf04131=_0x9766b['insertions'][_0x4ce457];let _0x197bf6=null,_0x3a5f1f=null;for(const _0x33d0c8 of _0xf04131){const _0x22dd88=this['_getVidAttributeName'](_0x33d0c8),_0x14329c=_0x33d0c8['item']['getAttribute'](_0x22dd88),_0xe04912=_0x202e78['get'](_0x14329c);_0xe04912&&'elementStart'==_0x33d0c8['type']&&(_0x197bf6=Array['from'](_0xe04912)[0x0],_0x3a5f1f=_0x33d0c8['item']['getAttribute']('vid_end')),_0x197bf6&&(_0x15be6c['set'](_0x14329c,{'userId':_0x197bf6}),_0x1a0c37['set'](_0x14329c,{'userId':_0x197bf6})),_0x14329c==_0x3a5f1f&&(_0x197bf6=null,_0x3a5f1f=null);}}const _0x4f0c3b={},_0xeb6e23=new Set();for(const _0x26b9ce of _0x35b836){const _0x27c56c=_0x46a89e['deletions'][_0x26b9ce],_0x40b685=_0x46a89e['insertions'][_0x26b9ce];for(const {userId:_0x3a24b7}of this['_touchedMarkers']['values']())null!==_0x3a24b7&&_0xeb6e23['add'](_0x3a24b7);for(const {userId:_0x5cefa}of this['_touchedRoots']['values']())null!==_0x5cefa&&_0xeb6e23['add'](_0x5cefa);this['_markChanges'](_0x40b685,_0x9766b['insertions'][_0x26b9ce],_0x1a0c37,'insertion',_0xeb6e23),this['_markChanges'](_0x27c56c,_0x9766b['deletions'][_0x26b9ce],_0x15be6c,'deletion',_0xeb6e23),_0x4f0c3b[_0x26b9ce]={'insertions':this['_prepareViewToSave'](_0x40b685),'deletions':this['_prepareViewToSave'](_0x27c56c),'attachChange':this['_touchedRoots']['get'](_0x26b9ce)||null,'attributesBefore':_0x40199d(this['_baseRootsAttributes']['get'](_0x26b9ce))||{},'attributesAfter':_0x40199d(this['_diffRootsAttributes']['get'](_0x26b9ce))};}return{'diffData':_0x4f0c3b,'authorsIds':Array['from'](_0xeb6e23)};}['_processRootBeforeSave'](_0x1f9e0b){for(const [,_0x114361]of _0x1f9e0b['markers']){const _0x22dcf7=_0x114361['start']['getAncestors']()['filter'](_0x1b8cd7=>'tableCell'==_0x1b8cd7['name']);for(const _0x59cb8a of _0x22dcf7)0x1==_0x59cb8a['childCount']&&_0x59cb8a['getChild'](0x0)['is']('element','paragraph')&&_0x59cb8a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2eba2a){this['_processRootBeforeSave'](_0x2eba2a);const _0x40682c=this['editor']['data']['toView'](_0x2eba2a,{}),_0x44399b=Array['from'](_0x40682c['getChildren']())['map'](_0x758b98=>this['_getViewJson'](_0x758b98));return JSON['stringify'](_0x44399b);}['_getViewJson'](_0x2fd24a){if(_0x2fd24a['is']('$text'))return _0x2fd24a['data'];{const _0x217b0a=_0x2fd24a;return{'type':Object['keys'](E)['find'](_0x21155c=>_0x2fd24a instanceof E[_0x21155c]),'name':_0x217b0a['name'],'attributes':Array['from'](_0x217b0a['getAttributes']()),'children':Array['from'](_0x217b0a['getChildren']())['map'](_0x5be9ec=>this['_getViewJson'](_0x5be9ec))};}}['_markChanges'](_0x1801df,_0x32d02a,_0x52009d,_0x567e13,_0x311fd3){let _0x5b06d7=null,_0x56049a=null,_0x575d43=0x0;const _0x2047ea=this['editor']['model'];for(let _0x39e640=0x0;_0x39e640<_0x32d02a['length'];_0x39e640++){const _0x50c550=this['_getVidAttributeName'](_0x32d02a[_0x39e640]),_0x2d592d=_0x32d02a[_0x39e640]['item']['getAttribute'](_0x50c550),_0x11b5a6=_0x52009d['get'](_0x2d592d),_0x3cc9ba=_0x39e640==_0x32d02a['length']-0x1;(!_0x5b06d7&&_0x11b5a6&&(_0x5b06d7=_0x11b5a6,_0x56049a=_0x32d02a[_0x39e640]),_0x5b06d7&&(!_0x11b5a6||_0x11b5a6['userId']!=_0x5b06d7['userId']))&&(_0x173722(_0x11b5a6,B(_0x56049a,_0x1801df,_0x2047ea),B(_0x32d02a[_0x39e640],_0x1801df,_0x2047ea)),_0x5b06d7=_0x11b5a6||null,_0x56049a=_0x11b5a6?_0x32d02a[_0x39e640]:null),_0x5b06d7&&_0x3cc9ba&&_0x173722(_0x11b5a6,B(_0x56049a,_0x1801df,_0x2047ea),J(_0x32d02a[_0x39e640],_0x1801df,_0x2047ea));}function _0x173722(_0x1d84fe,_0x113dff,_0x3673ff){const _0x16127f=_0x5b06d7['userId'],_0xfc8438='revision:'+_0x567e13+':'+_0x16127f+':'+_0x575d43++,_0xbe4223=_0x2047ea['createRange'](_0x113dff,_0x3673ff);_0x1801df['markers']['set'](_0xfc8438,_0xbe4223),null!==_0x16127f&&_0x311fd3['add'](_0x16127f);}}['_getVidAttributeName'](_0x589aaa){switch(_0x589aaa['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x80703c,_0x2b266){_0x80703c['baseVersion']=null;for(const _0x342b0e in _0x80703c){const _0x2669a4=_0x80703c[_0x342b0e];if(_0x2669a4 instanceof vt){const _0x179b5d=_0x2b266['get'](_0x2669a4['root']['rootName']);_0x80703c[_0x342b0e]=this['_fixPosition'](_0x2669a4,_0x179b5d);}if(_0x2669a4 instanceof ft){const _0x5acf4e=_0x2b266['get'](_0x2669a4['root']['rootName']);_0x80703c[_0x342b0e]=this['_fixRange'](_0x2669a4,_0x5acf4e);}'root'===_0x342b0e&&(_0x80703c['root']=_0x2b266['get'](_0x80703c['root']['rootName']));}}['_fixRange'](_0x57ab5a,_0x5b88d6){return this['editor']['model']['createRange'](this['_fixPosition'](_0x57ab5a['start'],_0x5b88d6),this['_fixPosition'](_0x57ab5a['end'],_0x5b88d6));}['_fixPosition'](_0x79db4a,_0x9e3c8f){return this['editor']['model']['createPositionFromPath'](_0x9e3c8f,_0x79db4a['path'],_0x79db4a['stickiness']);}['_handleInsertOperation'](_0x2a9210){const _0x5b022a=this['_idsRoots']['get'](_0x2a9210['position']['root']['rootName']),_0x4bf6db=this['_fixPosition'](_0x2a9210['position'],_0x5b022a),_0x4b8220=null===_0x2a9210['_authorId']?null:_0x2a9210['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x921271=_0x4bf6db['parent'],_0x5794a5=this['_revisionId'],_0x556702=[];for(const _0xd9625c of _0x2a9210['nodes'])if(_0xd9625c['is']('element'))_0x556702['push'](this['_makeIdsRoot'](_0xd9625c));else{for(let _0x58a41b=0x0;_0x58a41b<_0xd9625c['offsetSize'];_0x58a41b++)_0x556702['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x29b20b=this['_revisionId'];for(let _0x47b1f9=_0x5794a5;_0x47b1f9<_0x29b20b;_0x47b1f9++)this['_touched']['set'](_0x47b1f9,{'userId':_0x4b8220});_0x921271['_insertChild'](_0x4bf6db['offset'],_0x556702);}['_handleMoveOperation'](_0x590f9e){(_0x590f9e=this['_cloneOperation'](_0x590f9e,this['_idsRoots']))['_execute']();const _0x42bc2a=null===_0x590f9e['_authorId']?null:_0x590f9e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x325e37=_0x590f9e['getMovedRangeStart'](),_0x26ff9f=_0x325e37['parent'],_0x2e587b=_0x325e37['offset'];!function _0x16905f(_0x31a1f0,_0x5a7d69,_0x4b2149,_0x5b1431){for(let _0x3d66ab=_0x4b2149;_0x3d66ab<_0x5b1431;_0x3d66ab++){const _0x19c535=_0x5a7d69['getChild'](_0x3d66ab);_0x19c535['is']('element','$text')?_0x31a1f0['set'](_0x19c535['getAttribute']('vid'),{'userId':_0x42bc2a}):(_0x31a1f0['set'](_0x19c535['getAttribute']('vid_start'),{'userId':_0x42bc2a}),_0x16905f(_0x31a1f0,_0x19c535,0x0,_0x19c535['childCount']),_0x31a1f0['set'](_0x19c535['getAttribute']('vid_end'),{'userId':_0x42bc2a}));}}(this['_touched'],_0x26ff9f,_0x2e587b,_0x2e587b+_0x590f9e['howMany']);}['_handleMergeOperation'](_0xa035b2){const _0xd4a86a=null===(_0xa035b2=this['_cloneOperation'](_0xa035b2,this['_idsRoots']))['_authorId']?null:_0xa035b2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x385291=_0xa035b2['targetPosition']['parent'],_0x2104ff=_0xa035b2['sourcePosition']['parent'],_0x15c1cd=_0x385291['getAttribute']('vid_end'),_0x290116=_0x2104ff['getAttribute']('vid_start');_0x385291['_setAttribute']('vid_end',_0x2104ff['getAttribute']('vid_end')),_0x2104ff['_setAttribute']('vid_end',_0x15c1cd),this['_touched']['set'](_0x290116,{'userId':_0xd4a86a}),this['_touched']['set'](_0x15c1cd,{'userId':_0xd4a86a}),_0xa035b2['_execute']();}['_handleSplitOperation'](_0x2569cd){const _0x2e7a71=null===(_0x2569cd=this['_cloneOperation'](_0x2569cd,this['_idsRoots']))['_authorId']?null:_0x2569cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ed583=_0x2569cd['graveyardPosition'],_0x5beaaa=_0x2569cd['splitPosition']['parent'];_0x2569cd['_execute']();const _0x5379b3=_0x5beaaa['getAttribute']('vid_end'),_0x34b39c=_0x2569cd['insertionPosition']['nodeAfter'];if(_0x4ed583){const _0x453683=_0x34b39c['getAttribute']('vid_end'),_0x322aa4=_0x5beaaa['getAttribute']('vid_end');_0x5beaaa['_setAttribute']('vid_end',_0x453683),_0x34b39c['_setAttribute']('vid_end',_0x322aa4),this['_touched']['set'](_0x5beaaa['getAttribute']('vid_end'),{'userId':_0x2e7a71}),this['_touched']['set'](_0x34b39c['getAttribute']('vid_start'),{'userId':_0x2e7a71});}else{const _0x209dcd=this['_revisionId']++,_0x17fb5e=this['_revisionId']++;_0x5beaaa['_setAttribute']('vid_end',_0x209dcd),_0x34b39c['_setAttribute']('vid_start',_0x17fb5e),_0x34b39c['_setAttribute']('vid_end',_0x5379b3),this['_touched']['set'](_0x209dcd,{'userId':_0x2e7a71}),this['_touched']['set'](_0x17fb5e,{'userId':_0x2e7a71});}}['_handleMarkerOperation'](_0x13834d){if(!_0x13834d['affectsData'])return;const _0x63605d=(_0x13834d=this['_cloneOperation'](_0x13834d,this['_diffRoots']))['oldRange']?_0x13834d['oldRange']['root']:null,_0x57cc26=_0x13834d['newRange']?_0x13834d['newRange']['root']:null;_0x63605d&&this['_markers']['delete'](_0x13834d['name']),_0x57cc26&&this['_markers']['set'](_0x13834d['name'],_0x13834d['newRange']['clone']());const _0x2e1105=null===_0x13834d['_authorId']?null:_0x13834d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x262535=_0x13834d['name'];if(!this['_touchedMarkers']['has'](_0x262535))return void this['_touchedMarkers']['set'](_0x262535,{'range':_0x13834d['oldRange'],'userId':_0x2e1105});const _0x123255=this['_touchedMarkers']['get'](_0x262535),_0x2fdd76=_0x123255['range'],_0x3e7034=_0x13834d['newRange'];null==_0x2fdd76&&null==_0x3e7034||_0x2fdd76&&_0x3e7034&&_0x2fdd76['isEqual'](_0x3e7034)?this['_touchedMarkers']['delete'](_0x13834d['name']):_0x123255['userId']=_0x2e1105;}['_handleRootOperation'](_0x3eb798,_0x33fc78){this['_diffRoots']['has'](_0x3eb798['rootName'])?this['_diffRoots']['get'](_0x3eb798['rootName'])['_isAttached']=_0x3eb798['isAdd']:(this['_diffRoots']['set'](_0x3eb798['rootName'],F(_0x3eb798['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3eb798['rootName'],{}),_0x33fc78&&this['_idsRoots']['set'](_0x3eb798['rootName'],F(_0x3eb798['rootName'],!0x0)));const _0x4103a6=null===_0x3eb798['_authorId']?null:_0x3eb798['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29efb1=this['_touchedRoots']['get'](_0x3eb798['rootName']);_0x29efb1&&_0x29efb1['userId']===_0x4103a6?this['_touchedRoots']['delete'](_0x3eb798['rootName']):this['_touchedRoots']['set'](_0x3eb798['rootName'],{'userId':_0x4103a6,'isAttached':_0x3eb798['isAdd']});}['_handleRootAttributeOperation'](_0x2b5ffb){const _0x2c4afd=this['_diffRootsAttributes']['get'](_0x2b5ffb['root']['rootName']);null===_0x2b5ffb['newValue']?delete _0x2c4afd[_0x2b5ffb['key']]:_0x2c4afd[_0x2b5ffb['key']]=_0x2b5ffb['newValue'];}}function T(_0x1b9e3f){const _0x36823b=F(_0x1b9e3f['rootName'],_0x1b9e3f['isAttached']());for(const _0x360e10 of _0x1b9e3f['getChildren']()){const _0x3101f8=_0x360e10['_clone'](!0x0);_0x36823b['_appendChild'](_0x3101f8);}return _0x36823b;}function F(_0x472fde,_0x4d9788=!0x0){const _0x45560b=new gt();return _0x45560b['rootName']=_0x472fde,_0x45560b['_isAttached']=_0x4d9788,_0x45560b['isAttached']=()=>_0x45560b['_isAttached'],_0x45560b;}function B(_0x22fb13,_0x105598,_0x1ee612){const _0x607321='elementEnd'==_0x22fb13['type']?_0x1ee612['createPositionAt'](_0x22fb13['item'],'end'):_0x1ee612['createPositionBefore'](_0x22fb13['item']);return _0x1ee612['createPositionFromPath'](_0x105598,_0x607321['path'],_0x607321['stickiness']);}function J(_0x2913d3,_0x3fdeef,_0x3a4cbc){const _0x482f72='elementStart'==_0x2913d3['type']?_0x3a4cbc['createPositionAt'](_0x2913d3['item'],0x0):_0x3a4cbc['createPositionAfter'](_0x2913d3['item']);return _0x3a4cbc['createPositionFromPath'](_0x3fdeef,_0x482f72['path'],_0x482f72['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1b406a,_0x55e701){super(_0x1b406a),this['focusTracker']=new _0x27da0c(),this['keystrokes']=new _0x2d093e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x55e701),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x44c91d(this);}['render'](){super['render'](),_0x1a12bc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3b1320=_0x51a1d0=>_0x51a1d0['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3b1320),this['keystrokes']['set']('arrowleft',_0x3b1320),this['keystrokes']['set']('arrowup',_0x3b1320),this['keystrokes']['set']('arrowdown',_0x3b1320);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4349ad){this['revisionNameInputView']['fieldView']['element']['value']=_0x4349ad['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xa8ad1d){const _0x3b8708=new _0x3770cf(this['locale'],_0x37f3f7),_0x3a71bf=_0x3b8708['fieldView'];_0x3a71bf['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5e1b90=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0xa8ad1d&&(_0x5e1b90+='\x20('+m(this['locale'],'optional')+')'),(_0x3b8708['label']=_0x5e1b90,_0x3a71bf['on']('input',()=>{this['revisionNameInputValue']=_0x3a71bf['element']['value']['trim']();}),_0x3b8708);}}class f extends _0x2f905d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x478727=this['editor'],_0x52816b=_0x478727['plugins']['get']('RevisionTracker');_0x478727['ui']['componentFactory']['add']('revisionHistory',_0x3692b8=>{const _0x3ecb2a=_0x55d4ff(_0x3692b8),_0x1e4d69=_0x3ecb2a['panelView']['children'],_0x16a2e2=new _0x59bf72(_0x3692b8),_0x3a9a25=new _0x482dd0(_0x3692b8),_0x3a70ad=new te(_0x3692b8),_0x21a129=new _0x482dd0(_0x3692b8),_0x432f4d=new te(_0x3692b8);return _0x3ecb2a['bind']('isEnabled')['to'](_0x52816b,'isReady',_0x52816b,'isEnabled',_0x478727,'isReadOnly',(_0x18438c,_0x3168f4,_0x111121)=>_0x18438c&&_0x3168f4&&!_0x111121),_0x3ecb2a['buttonView']['set']({'icon':_0x4424f5,'label':m(_0x3692b8,'Revision\x20history'),'tooltip':!0x0}),_0x3a70ad['set']({'label':m(_0x3692b8,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3a70ad['bind']('isEnabled')['to'](_0x52816b,'isReady',_0x52816b,'isEnabled',_0x478727,'isReadOnly',(_0x19bade,_0x28187d,_0x5ef35f)=>_0x19bade&&_0x28187d&&!_0x5ef35f),_0x3a70ad['on']('execute',()=>this['_showDialog']()),_0x432f4d['set']({'label':m(_0x3692b8,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x432f4d['bind']('isEnabled')['to'](_0x52816b,'isReady',_0x478727,'isReadOnly',(_0x23ddf8,_0x18244c)=>_0x23ddf8&&!_0x18244c),_0x432f4d['on']('execute',()=>{_0x478727['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3ecb2a['isOpen']=!0x1,_0x478727['editing']['view']['focus']();}),_0x3a9a25['children']['add'](_0x3a70ad),_0x21a129['children']['add'](_0x432f4d),_0x16a2e2['role']='menu',_0x16a2e2['items']['addMany']([_0x3a9a25,_0x21a129]),_0x1e4d69['add'](_0x16a2e2),_0x3ecb2a;}),_0x478727['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x269ddf=this['editor'],_0x36601b=_0x269ddf['locale'],_0x488126=new _0x29c6f2(_0x36601b),_0x507730=new _0x4e0090(_0x36601b);_0x488126['buttonView']['set']({'icon':_0x4424f5,'label':m(_0x36601b,'Revision\x20history')});const _0x1d24f4=new _0x3babad(_0x36601b,_0x488126),_0x550c09=new _0x2fc8b7(_0x36601b);_0x550c09['set']({'label':m(_0x36601b,'Save\x20current\x20revision')}),_0x550c09['delegate']('execute')['to'](_0x488126),_0x550c09['on']('execute',()=>{this['_showDialog']();}),_0x1d24f4['children']['add'](_0x550c09),_0x507730['items']['add'](_0x1d24f4);const _0x3bb5d1=new _0x3babad(_0x36601b,_0x488126),_0x2387cc=new _0x2fc8b7(_0x36601b);return _0x2387cc['set']({'label':m(_0x36601b,'Open\x20revision\x20history')}),_0x2387cc['delegate']('execute')['to'](_0x488126),_0x2387cc['on']('execute',()=>{_0x269ddf['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3bb5d1['children']['add'](_0x2387cc),_0x507730['items']['add'](_0x3bb5d1),_0x488126['panelView']['children']['add'](_0x507730),_0x488126;}['_showDialog'](){const _0x539a13=this['editor'],_0x50d6de=_0x539a13['locale'],_0xed78ab=_0x539a13['plugins']['get']('Dialog'),_0x379b33=_0x539a13['plugins']['get']('RevisionTracker');function _0x2a7704(_0x20f272){_0x539a13['config']['get']('revisionHistory.requireRevisionName')&&''===_0x20f272['revisionName']?_0x20f272['revisionNameInputView']['errorText']=m(_0x50d6de,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x539a13['plugins']['get'](u)['saveRevision']({'name':_0x20f272['revisionName']}),_0xed78ab['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2a7704(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xed78ab['show']({'id':'revisionSave','title':m(_0x50d6de,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x539a13['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xed78ab['hide']()},{'label':m(_0x539a13['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4d43e8){_0x4d43e8['bind']('isEnabled')['to'](_0x379b33,'isReady',_0x379b33,'isEnabled',_0x539a13,'isReadOnly',(_0x598968,_0x53f2a5,_0x577632)=>_0x598968&&_0x53f2a5&&!_0x577632);},'onExecute':()=>_0x2a7704(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x16d6ae=this['editor'],_0xe11b7b=_0x16d6ae['locale'];this['_saveRevisionFormView']=new hs(_0xe11b7b,_0x16d6ae['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0xa544dc,_0x49f495){super(_0xa544dc),this['_model']=_0x49f495,this['changeId']=_0x49f495['id'];const _0x43c210=this['bindTemplate'],_0x58431=m(_0xa544dc,_0x49f495['data']['isSuggestion']?'Suggested\x20by':'add'==_0x49f495['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x49f495['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x43c210['to']('type',_0x150a0d=>'ck-revision-change__'+_0x150a0d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x58431}]},{'text':'\x20'+_0x49f495['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x483523(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xe3fb28){super(),this['id']=_0xe3fb28['id']||_0x5a02a9(),this['author']=_0xe3fb28['author'],this['type']=_0xe3fb28['type'],this['data']=_0xe3fb28['data']||{},this['rootName']=_0xe3fb28['rootName'],this['set']('createdAt',_0xe3fb28['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3291d1,_0x67505c){this['newRevisionId']=_0x3291d1,this['oldRevisionId']=_0x67505c,this['changes']=new _0x3079d2();}['_setChanges'](_0x126322){for(const _0x3191dd of _0x126322)this['changes']['add'](_0x3191dd);}}const Y={'c':_0x386a50,'a':_0x3aaf69,'e':_0x29edbd,'r':_0x382404,'u':_0x440d86};class d extends _0x2f905d{['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[_0x2224a0,_0x2b7475,j];}constructor(_0x44e2ed){super(_0x44e2ed),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',(_0x5acb2d,_0xf5717,_0x57159f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x126849=>{for(const _0x362b60 of this['editor']['editing']['view']['document']['roots'])_0x57159f?_0x126849['removeClass']('ck-editor__editable__overlay',_0x362b60):_0x126849['addClass']('ck-editor__editable__overlay',_0x362b60);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x58526d=>null!==_0x58526d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3c0407,_0x47b451,_0x1f6bba)=>_0x3c0407&&_0x1f6bba?_0x47b451['changes']['getIndex'](_0x1f6bba):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x133250,_0x344099)=>_0x133250?_0x344099['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x2b7475);}['init'](){const _0x3e8394=this['editor'],_0x7f7221=new _t(_0x3e8394,{'direction':'backward'}),_0x5157a3=new _t(_0x3e8394,{'direction':'forward'});(_0x3e8394['commands']['add']('showPreviousChange',_0x7f7221),_0x3e8394['commands']['add']('showNextChange',_0x5157a3),_0x3e8394['commands']['add']('restoreRevision',new wt(_0x3e8394)),this['on']('change:numberOfChanges',()=>{_0x7f7221['refresh'](),_0x5157a3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3e8394['enableReadOnlyMode']('revision-viewer'),_0x3e8394['plugins']['has']('WidgetToolbarRepository'))&&_0x3e8394['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x599bd4){await this['loadRevisionData'](_0x599bd4);const _0xa6c40b={};for(const _0x66faf0 in _0x599bd4['diffData']){if(_0x599bd4['diffData'][_0x66faf0]['attachChange']&&!_0x599bd4['diffData'][_0x66faf0]['attachChange']['isAttached'])continue;const _0x25aca2=this['_removeRevisionMarkers'](JSON['parse'](_0x599bd4['diffData'][_0x66faf0]['insertions'])),_0x13dc50=this['editor']['editing']['view']['document'],_0x2c9273=new _0x1108a9(_0x13dc50,_0x25aca2['map'](_0x1207d2=>this['_getViewObj'](_0x1207d2)));this['editor']['data']['processor']['useFillerType']('marked'),_0xa6c40b[_0x66faf0]=this['editor']['data']['processor']['toData'](_0x2c9273),this['editor']['data']['processor']['useFillerType']('default');}return _0xa6c40b;}async['getRevisionRootsAttributes'](_0x599d56){await this['loadRevisionData'](_0x599d56);const _0x5344d9={};for(const _0x23e858 in _0x599d56['diffData'])_0x599d56['diffData'][_0x23e858]['attachChange']&&!_0x599d56['diffData'][_0x23e858]['attachChange']['isAttached']||(_0x5344d9[_0x23e858]=_0x599d56['diffData'][_0x23e858]['attributesAfter']||{});return _0x5344d9;}['_removeRevisionMarkers'](_0x4f84ad){return(_0x4f84ad=_0x4f84ad['filter'](_0x27ba25=>!_0x27ba25['name']||'revision-start'!==_0x27ba25['name']&&'revision-end'!==_0x27ba25['name']))['forEach'](_0x751358=>{'string'!=typeof _0x751358&&(_0x751358['children']=this['_removeRevisionMarkers'](_0x751358['children']),_0x751358['attributes']=_0x751358['attributes']['filter'](_0x3de03e=>!_0x3de03e[0x0]['startsWith']('data-revision-')));}),_0x4f84ad;}async['compare'](_0x589592,_0x29478a,_0x39d1eb=!0x1){if(!this['isEnabled'])return;const _0x582815=this['diff'],_0x531623=this['repository'],_0x62bec9='string'==typeof _0x589592?_0x531623['getRevision'](_0x589592):_0x589592,_0x289558='string'==typeof _0x29478a?_0x531623['getRevision'](_0x29478a):_0x29478a,_0x20e911=_0x62bec9['id'],_0x45c69b=_0x289558?_0x289558['id']:null;if(!_0x39d1eb&&this['diff']&&this['diff']['newRevisionId']===_0x20e911&&this['diff']['oldRevisionId']===_0x45c69b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x20e911,_0x45c69b);const _0x498917=this['_getRevisionsRange'](_0x62bec9,_0x289558,!0x0)['map'](_0x4d5551=>this['loadRevisionData'](_0x4d5551));return _0x498917['push'](new Promise(_0x43a49d=>{setTimeout(_0x43a49d,0x14);})),Promise['all'](_0x498917)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1d7b8b=this['_getDiff'](_0x20e911,_0x45c69b);for(const _0x2d95f1 of _0x1d7b8b['changes'])this['_changeIdToChange']['set'](_0x2d95f1['id'],_0x2d95f1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5dbb32=>{for(const _0x4199fe of this['editor']['model']['document']['getRootNames']())_0x5dbb32['detachRoot'](_0x4199fe);for(const _0x1c197d of Object['keys'](_0x1d7b8b['model'])){const _0x33da59=_0x5dbb32['addRoot'](_0x1c197d);for(const _0x42d4a9 of Object['keys'](_0x1d7b8b['attributes'][_0x1c197d]))_0x5dbb32['setAttribute'](_0x42d4a9,_0x1d7b8b['attributes'][_0x1c197d][_0x42d4a9],_0x33da59);_0x5dbb32['insert'](_0x1d7b8b['model'][_0x1c197d],_0x33da59,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1d7b8b['changes'])),this['isReady']=!0x0;})['catch'](_0xd26e0e=>{console['error'](_0xd26e0e),this['_cleanUp'](),_0x582815&&(this['diff']=_0x582815),this['isReady']=!0x0;});}['addRevisionData'](_0x52df0b,_0x510419){const _0x34f2fb=this['repository']['createRevision'](_0x52df0b);return _0x34f2fb['on']('_update',(_0x5a71a3,_0x4b6e29,_0x5bb629)=>_0x510419(_0x4b6e29,_0x5bb629,_0x34f2fb)),this['repository']['addRevision'](_0x34f2fb),_0x34f2fb;}['loadRevisionData'](_0x3d4f80){if(!_0x3d4f80||_0x3d4f80['diffData'])return Promise['resolve']();{const _0x33e198=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x33e198,'revisionId':_0x3d4f80['id']})['then'](_0x2480e3=>{_0x3d4f80['_update']({'diffData':_0x2480e3['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},_0x1e0998=>{for(const _0x71c8b3 of this['editor']['model']['document']['getRootNames']())_0x1e0998['detachRoot'](_0x71c8b3);});}['_sortAndFilterDiffChanges'](_0x514d1c){const _0x40fbf5=[],_0x48b52c=new Map();for(const _0x2f71c8 of this['editor']['model']['document']['getRootNames']()){const _0x2e43ff=this['editor']['editing']['view']['getDomRoot'](_0x2f71c8);if(!_0x2e43ff)continue;const _0x49d481=_0x2e43ff['getClientRects']()['item'](0x0);_0x49d481&&(_0x40fbf5['push'](_0x2f71c8),_0x48b52c['set'](_0x2f71c8,_0x49d481));}return _0x40fbf5['sort']((_0x3456ab,_0x1f5162)=>{const _0x55754c=_0x48b52c['get'](_0x3456ab),_0x39f19d=_0x48b52c['get'](_0x1f5162);return _0x55754c['y']-_0x39f19d['y']||_0x55754c['x']-_0x39f19d['x'];}),(_0x514d1c=_0x514d1c['filter'](_0x4c68bc=>_0x40fbf5['includes'](_0x4c68bc['rootName'])))['sort']((_0x265c71,_0x47bc09)=>_0x40fbf5['indexOf'](_0x265c71['rootName'])-_0x40fbf5['indexOf'](_0x47bc09['rootName'])),_0x514d1c;}['_makeTape'](_0xef52dd){const _0x5c31ce=Array['from'](_0xef52dd['markers'])['filter'](([_0x5137d1,_0x1de93f])=>_0x5137d1['startsWith']('revision:')&&!_0x1de93f['isCollapsed']),_0x2cf32e=Array['from'](this['editor']['model']['createRangeIn'](_0xef52dd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5c31ce['length'])for(const _0x5a4c79 of _0x2cf32e){const [_0x5c5b31,_0x275315]=_0x5c31ce[0x0],[,_0x3166d3,_0x52148c]=_0x5c5b31['split'](':');if(_0x275315['end']['isEqual'](_0x5a4c79['nextPosition'])&&_0x5c31ce['shift'](),(_0x5a4c79['previousPosition']['isEqual'](_0x275315['start'])||_0x5a4c79['previousPosition']['isAfter'](_0x275315['start']))&&('insertion'==_0x3166d3?_0x5a4c79['isAdded']={'userId':_0x52148c}:'deletion'==_0x3166d3&&(_0x5a4c79['isRemoved']={'userId':_0x52148c})),0x0==_0x5c31ce['length'])break;}return _0x2cf32e;}['_refreshStartEndIndex'](_0x5308d2){const _0x7f56be=new Map();for(let _0x28c446=0x0;_0x28c446<_0x5308d2['length'];_0x28c446++)'text'===_0x5308d2[_0x28c446]['type']?(_0x5308d2[_0x28c446]['item']['startIndex']=_0x28c446,_0x5308d2[_0x28c446]['item']['endIndex']=_0x28c446):('elementStart'===_0x5308d2[_0x28c446]['type']?_0x5308d2[_0x28c446]['item']['startIndex']=_0x28c446:'elementEnd'===_0x5308d2[_0x28c446]['type']&&(_0x5308d2[_0x28c446]['item']['endIndex']=_0x28c446),_0x7f56be['set'](_0x5308d2[_0x28c446]['id'],_0x28c446));for(const _0x32b973 of _0x7f56be['values']())'elementStart'===_0x5308d2[_0x32b973]['type']?_0x5308d2[_0x32b973]['item']['endIndex']=_0x7f56be['get'](_0x5308d2[_0x32b973]['pairId']):'elementEnd'===_0x5308d2[_0x32b973]['type']&&(_0x5308d2[_0x32b973]['item']['startIndex']=_0x7f56be['get'](_0x5308d2[_0x32b973]['pairId']));}['_processTape'](_0x47e813){for(let _0x22bc7f=0x0;_0x22bc7f<_0x47e813['length'];_0x22bc7f++){if('elementStart'===_0x47e813[_0x22bc7f]['type'])_0x47e813[_0x22bc7f]['item']['startIndex']=_0x22bc7f;else{if('elementEnd'===_0x47e813[_0x22bc7f]['type']){_0x47e813[_0x22bc7f]['item']['endIndex']=_0x22bc7f;const _0x188199=_0x47e813[_0x22bc7f]['item']['startIndex'];_0x47e813[_0x188199]['pairId']=_0x47e813[_0x22bc7f]['id'],_0x47e813[_0x22bc7f]['pairId']=_0x47e813[_0x188199]['id'];}else _0x47e813[_0x22bc7f]['item']['startIndex']=_0x22bc7f,_0x47e813[_0x22bc7f]['item']['endIndex']=_0x22bc7f,_0x47e813[_0x22bc7f]['pairId']=null;}_0x47e813[_0x22bc7f]['markersStart']||(_0x47e813[_0x22bc7f]['markersStart']=[],_0x47e813[_0x22bc7f]['markersEnd']=[]);}}['_markInsertions'](_0x30345b,_0x3b7be4){const _0x152115=_0x30345b['filter'](_0x422e77=>!_0x422e77['isAdded']);for(let _0x127b13=0x0;_0x127b13<_0x3b7be4['length'];_0x127b13++)_0x3b7be4[_0x127b13]['isAdded']&&(_0x152115[_0x127b13]['isAdded']=_0x3b7be4[_0x127b13]['isAdded']);}['_makeModelFromViewString'](_0x1083af){const _0x342eb7=JSON['parse'](_0x1083af),_0x48e70b=this['editor']['editing']['view']['document'],_0x1fae4b=new _0x1108a9(_0x48e70b,_0x342eb7['map'](_0x519af2=>this['_getViewObj'](_0x519af2)));return this['editor']['data']['toModel'](_0x1fae4b);}['_getViewObj'](_0x497561){const _0x1c31a2=this['editor']['editing']['view']['document'];if('string'==typeof _0x497561)return new _0x571cbe(_0x1c31a2,_0x497561);{const _0x3559a9=_0x497561['children']['map'](_0xbb8da6=>this['_getViewObj'](_0xbb8da6));return new(Y[_0x497561['type']]||_0x14fb2a)(_0x1c31a2,_0x497561['name'],_0x497561['attributes'],_0x3559a9);}}['_getDiff'](_0x4372a8,_0x35ea48=null){const _0x873e12=this['repository']['getRevision'](_0x4372a8),_0x2fa4f=_0x35ea48?this['repository']['getRevision'](_0x35ea48):null,_0x9396b6=this['_getRevisionsRange'](_0x873e12,_0x2fa4f),_0x2c98af=_0x9396b6[_0x9396b6['length']-0x1],_0x17568a=new Map(),_0x79ce89={'model':{},'attributes':{},'changes':[]},_0x25a200=new Set(),_0x4bb21=new Map();for(let _0x7e940=_0x9396b6['length']-0x1;_0x7e940>=0x0;_0x7e940--){const _0x544c01=_0x9396b6[_0x7e940];for(const _0x35c4b3 of Object['keys'](_0x544c01['diffData']))if(_0x544c01['diffData'][_0x35c4b3]['attachChange']){const _0x2dce96=_0x544c01['diffData'][_0x35c4b3]['attachChange'];_0x2dce96['isAttached']?(_0x25a200['add'](_0x35c4b3),_0x4bb21['has'](_0x35c4b3)&&_0x4bb21['get'](_0x35c4b3)['userId']==_0x2dce96['userId']?_0x4bb21['delete'](_0x35c4b3):_0x4bb21['set'](_0x35c4b3,_0x2dce96)):_0x4bb21['has'](_0x35c4b3)?(_0x25a200['delete'](_0x35c4b3),_0x4bb21['delete'](_0x35c4b3)):(_0x25a200['add'](_0x35c4b3),_0x4bb21['set'](_0x35c4b3,_0x2dce96));}else _0x25a200['add'](_0x35c4b3);}for(const _0x458742 of _0x25a200){const _0x4a011a=_0x4bb21['has'](_0x458742)&&!_0x4bb21['get'](_0x458742)['isAttached'];let _0x20861b=_0x4a011a?_0x9396b6['length']-0x1:0x0;const _0x26b99b=_0x4a011a?-0x1:0x1;for(;_0x9396b6[_0x20861b];){const _0xfe3554=_0x9396b6[_0x20861b];if(_0xfe3554['diffData'][_0x458742]){const _0x32e29c=_0x4a011a?_0xfe3554['diffData'][_0x458742]['attributesBefore']:_0xfe3554['diffData'][_0x458742]['attributesAfter'];_0x79ce89['attributes'][_0x458742]=_0x32e29c?_0x40199d(_0x32e29c):{};break;}_0x20861b+=_0x26b99b;}}for(const _0x484ffd of _0x9396b6){_0x484ffd['model']={};for(const _0x85f845 of _0x484ffd['authors'])_0x17568a['set'](_0x85f845['id'],_0x85f845);for(const _0x42d91b of _0x25a200){const _0x276b67=_0x484ffd['diffData'][_0x42d91b]?_0x484ffd['diffData'][_0x42d91b]['insertions']:'[]',_0x58be6b=_0x484ffd['diffData'][_0x42d91b]?_0x484ffd['diffData'][_0x42d91b]['deletions']:'[]';_0x484ffd['model'][_0x42d91b]={'insertions':this['_makeModelFromViewString'](_0x276b67),'deletions':this['_makeModelFromViewString'](_0x58be6b)};}}for(const _0x364d81 of _0x25a200){let _0x42fb4c=null,_0x2bd391=0x0;const _0x4789b1=new Map(Array['from'](_0x873e12['model'][_0x364d81]['insertions']['markers'])['filter'](([_0x11e61a])=>!_0x11e61a['startsWith']('revision:')));let _0x9e981a=0x0;for(const _0x91c57e of _0x9396b6){const _0xed14c5=this['_makeTape'](_0x91c57e['model'][_0x364d81]['insertions']);_0x91c57e==_0x873e12?(_0x42fb4c=_0xed14c5,_0x2bd391=_0x42fb4c['length'],_0x42fb4c['forEach'](_0x20cff2=>{_0x20cff2['id']=_0x9e981a++;}),this['_processTape'](_0x42fb4c)):this['_markInsertions'](_0x42fb4c,_0xed14c5);const _0x6e1bd5=_0x42fb4c['filter'](_0x58b98c=>!_0x58b98c['isAdded'])['map'](_0x552237=>_0x552237['id']);let _0x46ddd=0x0;const _0x446cf3=this['_makeTape'](_0x91c57e['model'][_0x364d81]['deletions']);_0x446cf3['forEach'](_0x19bfc6=>{_0x19bfc6['isRemoved']?_0x19bfc6['id']=_0x2bd391++:_0x19bfc6['id']=_0x6e1bd5[_0x46ddd++];}),this['_processTape'](_0x446cf3),this['_setDistance'](_0x42fb4c,'isAdded'),this['_setDistance'](_0x446cf3,'isRemoved'),_0x91c57e==_0x873e12&&this['_markMarkers'](_0x42fb4c,_0x4789b1),_0x42fb4c=this['_joinTapes'](_0x42fb4c,_0x446cf3),this['_refreshStartEndIndex'](_0x42fb4c),this['_setDistance'](_0x42fb4c,'isRemoved');}_0x42fb4c=_0x42fb4c['filter'](_0x551c0f=>!(_0x551c0f['isAdded']&&_0x551c0f['isRemoved']));const _0x96993b=new Map(_0x2c98af['model'][_0x364d81]['deletions']['markers']),_0x524392=new Set(_0x4789b1['keys']());for(const _0x358243 of _0x96993b['keys']())_0x524392['delete'](_0x358243);this['_markSuggestions'](_0x42fb4c,_0x524392),this['_fixObsoleteTags'](_0x42fb4c),_0x42fb4c=this['_removeMissingPairs'](_0x42fb4c),_0x42fb4c=this['_markMismatchedRemovedTags'](_0x42fb4c),_0x42fb4c=this['_removeUnsupportedChanges'](_0x42fb4c);const {root:_0x3e37f0,changes:_0x3d4c68}=this['_makeModelFromTape'](_0x42fb4c,_0x17568a,_0x364d81);_0x79ce89['model'][_0x364d81]=_0x3e37f0;const _0x488ee3=_0x4bb21['get'](_0x364d81);if(_0x488ee3){const _0x4f10cb=_0x17568a['get'](_0x488ee3['userId']),_0x4c3e4b=new r({'author':_0x4f10cb,'type':_0x488ee3['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x364d81});_0x3d4c68['unshift'](_0x4c3e4b),_0x79ce89['attributes'][_0x364d81]['revisionHistoryAttachChange']=_0x4c3e4b['id'];}_0x79ce89['changes']=_0x79ce89['changes']['concat'](_0x3d4c68);}return _0x79ce89;}['_markMarkers'](_0x538019,_0x32083c){for(let _0x17a167=0x0;_0x17a167<_0x538019['length'];_0x17a167++)for(const [_0x447d58,_0x5bef8f]of _0x32083c)_0x5bef8f['start']['isEqual'](_0x538019[_0x17a167]['previousPosition'])&&_0x538019[_0x17a167]['markersStart']['push'](_0x447d58),_0x5bef8f['end']['isEqual'](_0x538019[_0x17a167]['nextPosition'])&&_0x538019[_0x17a167]['markersEnd']['push'](_0x447d58);}['_joinTapes'](_0x402514,_0x1d113e){let _0x49668f=[],_0xf7a1e3=0x0,_0xf4fee0=0x0;for(;_0xf7a1e3<_0x402514['length']||_0xf4fee0<_0x1d113e['length'];){const _0x4097fa=_0x402514[_0xf7a1e3]||{},_0x526ca6=_0x1d113e[_0xf4fee0]||{};if(_0x4097fa['id']==_0x526ca6['id'])_0xf7a1e3++,_0xf4fee0++,_0x49668f['push'](_0x4097fa);else{if(_0x526ca6['isRemoved']&&_0x4097fa['isAdded']){const {commonTape:_0x5a9c5e,iEnd:_0x10d0f7,jEnd:_0x9641c8}=this['_threeWayMerge'](_0x402514,_0xf7a1e3,_0x1d113e,_0xf4fee0);_0x49668f=_0x49668f['concat'](_0x5a9c5e),_0xf7a1e3=_0x10d0f7,_0xf4fee0=_0x9641c8;}else _0x526ca6['isRemoved']?(_0xf4fee0++,_0x49668f['push'](_0x526ca6)):(_0xf7a1e3++,_0x49668f['push'](_0x4097fa));}}return _0x49668f;}['_markSuggestions'](_0x1ab5ac,_0x56eb33){const _0x3dcb0f=[];for(let _0x4d534c=0x0;_0x4d534c<_0x1ab5ac['length'];_0x4d534c++){for(let _0x4eaf3c=0x0;_0x4eaf3c<_0x1ab5ac[_0x4d534c]['markersStart']['length'];_0x4eaf3c++){const _0x4f680d=_0x1ab5ac[_0x4d534c]['markersStart'][_0x4eaf3c];if(!_0x56eb33['has'](_0x4f680d))continue;const {group:_0x5c0e66,type:_0xecfacb,authorId:_0x392a9d}=_0x4c9a82(_0x4f680d);'revision-suggestion'!=_0x5c0e66||'insertion'!=_0xecfacb&&'deletion'!=_0xecfacb||(_0x3dcb0f['unshift']({'type':_0xecfacb,'name':_0x4f680d,'userId':_0x392a9d}),_0x1ab5ac[_0x4d534c]['markersStart']['splice'](_0x4eaf3c,0x1),_0x4eaf3c--);}_0x4d5009(_0x1ab5ac[_0x4d534c]);for(let _0x3d320d=0x0;_0x3d320d<_0x1ab5ac[_0x4d534c]['markersEnd']['length'];_0x3d320d++){const _0x410bce=_0x1ab5ac[_0x4d534c]['markersEnd'][_0x3d320d];if(!_0x56eb33['has'](_0x410bce))continue;const {group:_0x38f544,type:_0x296f21}=_0x4c9a82(_0x410bce);if('revision-suggestion'!=_0x38f544||'insertion'!=_0x296f21&&'deletion'!=_0x296f21)continue;_0x1ab5ac[_0x4d534c]['markersEnd']['splice'](_0x3d320d,0x1),_0x3d320d--;const _0x518b2f=_0x3dcb0f['findIndex'](_0x1bb0f4=>_0x1bb0f4['name']==_0x410bce);_0x518b2f>-0x1&&_0x3dcb0f['splice'](_0x518b2f,0x1);}}function _0x4c9a82(_0x2c0c84){const _0x572c58=_0x2c0c84['split'](':');return{'group':_0x572c58[0x0],'type':_0x572c58[0x1],'subType':_0x572c58['length']>=0x5?_0x572c58[0x2]:null,'id':_0x572c58['length']<0x5?_0x572c58[0x2]:_0x572c58[0x3],'authorId':_0x572c58['length']<0x5?_0x572c58[0x3]:_0x572c58[0x4],'markerCount':0x6==_0x572c58['length']?_0x572c58[0x5]:null};}function _0x4d5009(_0x264708){for(let _0x38ece7=0x0;_0x38ece7<_0x3dcb0f['length'];_0x38ece7++){if(_0x264708['isAdded']&&'insertion'==_0x3dcb0f[_0x38ece7]['type'])return _0x264708['isAddSuggestion']=_0x3dcb0f[_0x38ece7],void delete _0x264708['isAdded'];if(!_0x264708['isAdded']&&!_0x264708['isRemoved']&&'deletion'==_0x3dcb0f[_0x38ece7]['type'])return void(_0x264708['isRemoveSuggestion']=_0x3dcb0f[_0x38ece7]);}}}['_setDistance'](_0x2015f1,_0x160bcd){let _0x3ca146=0x0,_0x20f7b9=!0x1;const _0x3d70e1=new Map();for(const _0x5d76f2 of _0x2015f1)_0x5d76f2[_0x160bcd]?_0x20f7b9&&(_0x3ca146++,_0x20f7b9=!0x1):(_0x3ca146++,_0x20f7b9=!0x0),_0x3d70e1['set'](_0x5d76f2['id'],_0x3ca146);for(let _0x5e0a1e=0x0;_0x5e0a1e<_0x2015f1['length'];_0x5e0a1e++){if('isRemoved'==_0x160bcd&&_0x2015f1[_0x5e0a1e]['isAdded']||'isAdded'==_0x160bcd&&_0x2015f1[_0x5e0a1e]['isRemoved'])continue;if('text'==_0x2015f1[_0x5e0a1e]['type']){_0x2015f1[_0x5e0a1e]['distance']=0x0;continue;}const _0x1a153d=_0x3d70e1['get'](_0x2015f1[_0x5e0a1e]['pairId']),_0x140293=_0x3d70e1['get'](_0x2015f1[_0x5e0a1e]['id']);_0x2015f1[_0x5e0a1e]['distance']=_0x1a153d-_0x140293;}}['_getRevisionsRange'](_0xce1956,_0x22ad19,_0x55ce0b=!0x1){const _0x4652fd=[];let _0x3e4ab8=this['repository']['getIndex'](_0xce1956),_0x30e03f=this['repository']['getIndex'](_0x22ad19);for(-0x1==_0x30e03f&&(_0x30e03f=this['repository']['_revisions']['length'],_0x55ce0b=!0x1);_0x3e4ab8<_0x30e03f;)_0x4652fd['push'](this['repository']['getRevision'](_0x3e4ab8)),_0x3e4ab8++;return _0x55ce0b&&_0x4652fd['push'](this['repository']['getRevision'](_0x3e4ab8)),_0x4652fd;}['_threeWayMerge'](_0x25b93e,_0x5339ef,_0x176f29,_0x507ee2){const _0x1f889a=this['editor']['model']['schema'];let _0x248180=_0x5339ef;for(;_0x25b93e[_0x248180]&&_0x25b93e[_0x248180]['isAdded'];)_0x248180++;let _0x49bfa3=_0x507ee2;for(;_0x176f29[_0x49bfa3]&&_0x176f29[_0x49bfa3]['isRemoved'];)_0x49bfa3++;_0x59ec53(_0x25b93e,_0x5339ef,_0x248180),_0x59ec53(_0x176f29,_0x507ee2,_0x49bfa3);const _0x81d8ab=_0x176f29['slice'](_0x507ee2,_0x49bfa3)['concat'](_0x25b93e['slice'](_0x5339ef,_0x248180));return _0x81d8ab['sort']((_0x23ade4,_0x14094e)=>_0x23ade4['side']!=_0x14094e['side']?_0x23ade4['side']-_0x14094e['side']:_0x23ade4['level']!=_0x14094e['level']?_0x23ade4['level']-_0x14094e['level']:_0x23ade4['distance']!=_0x14094e['distance']?_0x14094e['distance']-_0x23ade4['distance']:!!_0x23ade4['isAdded']!=!!_0x14094e['isAdded']?-0x1==_0x23ade4['side']||0x0==_0x23ade4['side']?_0x23ade4['isAdded']?-0x1:0x1:_0x23ade4['isAdded']?0x1:-0x1:_0x23ade4['index']-_0x14094e['index']),{'commonTape':_0x81d8ab,'iEnd':_0x248180,'jEnd':_0x49bfa3};function _0x59ec53(_0x1d92a6,_0x30a6f5,_0x4a7c07){let _0x4a2d81=-0x1,_0x2afaf4=Number['POSITIVE_INFINITY'],_0x236556=!0x0;for(let _0x233fd1=_0x30a6f5;_0x233fd1<_0x4a7c07;_0x233fd1++)if(_0x1f889a['isInline'](_0x1d92a6[_0x233fd1]['item'])||(_0x236556=!0x1),_0x1d92a6[_0x233fd1]['item']['startIndex']<_0x30a6f5&&(_0x4a2d81=_0x233fd1),_0x1d92a6[_0x233fd1]['item']['endIndex']>=_0x4a7c07){_0x2afaf4=_0x233fd1;break;}_0x236556&&(_0x4a2d81=_0x4a7c07-0x1);for(let _0x1da01d=_0x30a6f5;_0x1da01d<_0x4a7c07;_0x1da01d++)_0x1d92a6[_0x1da01d]['side']=_0x1da01d<=_0x4a2d81?-0x1:_0x1da01d<_0x2afaf4?0x0:0x1,_0x1d92a6[_0x1da01d]['index']=_0x1da01d;let _0x95e16f=0x0;for(let _0x321b77=_0x30a6f5;_0x321b77<=_0x4a2d81;_0x321b77++)0x0==_0x1d92a6[_0x321b77]['distance']?_0x1d92a6[_0x321b77]['level']=_0x95e16f:(_0x95e16f++,_0x1d92a6[_0x321b77]['level']=_0x95e16f,_0x95e16f++);for(let _0x20dd92=_0x30a6f5;_0x20dd92<_0x4a7c07;_0x20dd92++)0x0==_0x1d92a6[_0x20dd92]['side']&&(_0x1d92a6[_0x20dd92]['level']=_0x95e16f);_0x95e16f=0x0;for(let _0x5539e8=_0x4a7c07-0x1;_0x5539e8>=_0x2afaf4;_0x5539e8--)0x0==_0x1d92a6[_0x5539e8]['distance']?_0x1d92a6[_0x5539e8]['level']=_0x95e16f:(_0x95e16f--,_0x1d92a6[_0x5539e8]['level']=_0x95e16f,_0x95e16f--);}}['_fixObsoleteTags'](_0x37a379){const _0x8f1b65=new Map(),_0x4781bd=this['editor']['model']['schema'];for(let _0x5619db=0x1;_0x5619db<_0x37a379['length'];_0x5619db++){let _0x40a070,_0x3ac163,_0x1a2b58;const _0x337b20=_0x37a379[_0x5619db],_0x11620a=_0x37a379[_0x5619db-0x1];if('text'==_0x337b20['type'])continue;if(_0x337b20['type']!=_0x11620a['type'])continue;if(!_0x4781bd['isBlock'](_0x11620a['item'])||_0x4781bd['isLimit'](_0x11620a['item']))continue;if(!_0x4781bd['isBlock'](_0x337b20['item'])||_0x4781bd['isLimit'](_0x337b20['item']))continue;if((_0x37a379[_0x5619db]['isAdded']||_0x37a379[_0x5619db]['isAddSuggestion'])&&_0x37a379[_0x5619db-0x1]['isRemoved'])_0x40a070=_0x37a379[_0x5619db],_0x3ac163=_0x37a379[_0x5619db-0x1],_0x1a2b58=_0x5619db-0x1;else{if(!_0x37a379[_0x5619db]['isRemoved']||!_0x37a379[_0x5619db-0x1]['isAdded']&&!_0x37a379[_0x5619db-0x1]['isAddSuggestion'])continue;_0x40a070=_0x37a379[_0x5619db-0x1],_0x3ac163=_0x37a379[_0x5619db],_0x1a2b58=_0x5619db;}const _0x5cea05=_0x40a070['level']==_0x3ac163['level'],_0x3fe73d=Math['abs'](_0x40a070['level'])<Math['abs'](_0x3ac163['level'])&&0x0==_0x3ac163['distance'];(_0x5cea05||_0x3fe73d)&&(_0x8f1b65['set'](_0x3ac163['id'],_0x40a070['id']),_0x37a379['splice'](_0x1a2b58,0x1),_0x5619db--,_0x40a070['isAdded']=!0x1);}for(let _0x3033e3=0x0;_0x3033e3<_0x37a379['length'];_0x3033e3++)_0x8f1b65['has'](_0x37a379[_0x3033e3]['pairId'])&&(_0x37a379[_0x3033e3]['pairId']=_0x8f1b65['get'](_0x37a379[_0x3033e3]['pairId']));}['_removeMissingPairs'](_0x56d27c){const _0x4f22fc=new Set(_0x56d27c['map'](_0x2752ee=>_0x2752ee['id']));for(let _0x5c2072=0x0;_0x5c2072<_0x56d27c['length'];_0x5c2072++)_0x4f22fc['has'](_0x56d27c[_0x5c2072]['pairId'])||0x0==_0x56d27c[_0x5c2072]['distance']||(_0x56d27c[_0x5c2072]['isIncorrect']=!0x0);return _0x56d27c['filter'](_0x16379e=>!_0x16379e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x260803){const _0xc3948=new Set();for(let _0x3d8502=0x0;_0x3d8502<_0x260803['length'];_0x3d8502++){if(_0xc3948['has'](_0x260803[_0x3d8502]['id'])&&_0x260803[_0x3d8502]['isRemoved']&&(_0x260803[_0x3d8502]['isIncorrect']=!0x0),_0x260803[_0x3d8502]['isIncorrect'])continue;if(0x0==_0x260803[_0x3d8502]['distance'])continue;if('elementStart'!=_0x260803[_0x3d8502]['type'])continue;if(null==_0x260803[_0x3d8502]['pairId'])continue;let _0x1fd1fa=_0x3d8502+0x1,_0x345624=0x0;for(;_0x260803[_0x1fd1fa]['id']!=_0x260803[_0x3d8502]['pairId'];)'elementStart'==_0x260803[_0x1fd1fa]['type']?_0x345624++:'elementEnd'==_0x260803[_0x1fd1fa]['type']&&_0x345624--,_0x1fd1fa++;if(0x0!=_0x345624){if(_0x260803[_0x3d8502]['isRemoved'])_0x260803[_0x3d8502]['isIncorrect']=!0x0;else{for(;_0x1fd1fa!=_0x3d8502;)_0x260803[_0x1fd1fa]['isRemoved']&&0x0!=_0x260803[_0x1fd1fa]['distance']&&(_0x260803[_0x1fd1fa]['isIncorrect']=!0x0,_0xc3948['add'](_0x260803[_0x1fd1fa]['pairId'])),_0x1fd1fa--;}}}return _0x260803['filter'](_0x47baba=>!_0x47baba['isIncorrect']);}['_removeUnsupportedChanges'](_0x45e13f){const _0x323e0f=this['editor']['model']['schema'];for(let _0x51a12d=0x0;_0x51a12d<_0x45e13f['length'];_0x51a12d++){if(!(_0x45e13f[_0x51a12d]['isAdded']||_0x45e13f[_0x51a12d]['isAddSuggestion']||_0x45e13f[_0x51a12d]['isRemoved']||_0x45e13f[_0x51a12d]['isRemoveSuggestion']))continue;if(0x0==_0x45e13f[_0x51a12d]['distance'])continue;const _0x44bfab=_0x45e13f[_0x51a12d]['item'];_0x323e0f['isBlock'](_0x44bfab)||_0x323e0f['isLimit'](_0x44bfab)||(_0x45e13f[_0x51a12d]['isAdded']&&delete _0x45e13f[_0x51a12d]['isAdded'],_0x45e13f[_0x51a12d]['isAddSuggestion']&&delete _0x45e13f[_0x51a12d]['isAddSuggestion'],_0x45e13f[_0x51a12d]['isRemoveSuggestion']&&delete _0x45e13f[_0x51a12d]['isRemoveSuggestion'],_0x45e13f[_0x51a12d]['isRemoved']&&(_0x45e13f[_0x51a12d]['isIncorrect']=!0x0));}return _0x45e13f['filter'](_0x15b4f7=>!_0x15b4f7['isIncorrect']);}['_makeModelFromTape'](_0x3bfc9c,_0x3ef5db,_0x3e59c){const _0x28a979=new gt(),_0x40d324=[],_0x147af2=new Map(),_0x10a5a7=this['editor']['model'],_0x1e3619=_0x10a5a7['schema'],_0x117a79=[_0x28a979],_0x5ceab5={},_0x1bde56={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43ce21=null;const _0xa190b7=[0x0];for(let _0x6c3220=0x0;_0x6c3220<_0x3bfc9c['length'];_0x6c3220++)if('elementStart'===_0x3bfc9c[_0x6c3220]['type']){_0x3bfc9c[_0x6c3220]['previousPosition']=_0x10a5a7['createPositionFromPath'](_0x28a979,_0xa190b7);const _0x703da6=new ut(_0x3bfc9c[_0x6c3220]['item']['name'],_0x3bfc9c[_0x6c3220]['item']['getAttributes']());_0x117a79[0x0]['_appendChild'](_0x703da6),_0xa190b7['push'](0x0),_0x117a79['unshift'](_0x703da6),_0x3bfc9c[_0x6c3220]['nextPosition']=_0x10a5a7['createPositionFromPath'](_0x28a979,_0xa190b7);}else'elementEnd'===_0x3bfc9c[_0x6c3220]['type']?(_0x117a79['shift'](),_0x3bfc9c[_0x6c3220]['previousPosition']=_0x10a5a7['createPositionFromPath'](_0x28a979,_0xa190b7),_0xa190b7['pop'](),_0xa190b7[_0xa190b7['length']-0x1]++,_0x3bfc9c[_0x6c3220]['nextPosition']=_0x10a5a7['createPositionFromPath'](_0x28a979,_0xa190b7)):(_0x3bfc9c[_0x6c3220]['previousPosition']=_0x10a5a7['createPositionFromPath'](_0x28a979,_0xa190b7),_0x43ce21?_0x43ce21['_data']+=_0x3bfc9c[_0x6c3220]['item']['data']:_0x43ce21=new mt(_0x3bfc9c[_0x6c3220]['item']['data'],_0x3bfc9c[_0x6c3220]['item']['getAttributes']()),_0x3bfc9c[_0x6c3220+0x1]&&'text'===_0x3bfc9c[_0x6c3220+0x1]['type']&&_0x1e7560(_0x43ce21,_0x3bfc9c[_0x6c3220+0x1]['item'])||(_0x117a79[0x0]['_appendChild'](_0x43ce21),_0x43ce21=null),_0xa190b7[_0xa190b7['length']-0x1]+=_0x3bfc9c[_0x6c3220]['item']['offsetSize'],_0x3bfc9c[_0x6c3220]['nextPosition']=_0x10a5a7['createPositionFromPath'](_0x28a979,_0xa190b7));for(let _0x3cb9d9=0x0;_0x3cb9d9<_0x3bfc9c['length'];_0x3cb9d9++){const _0x5008c6=_0x3bfc9c[_0x3cb9d9]['previousPosition'],_0x20431c=_0x3bfc9c[_0x3cb9d9]['nextPosition'];for(const _0x27c502 of _0x3bfc9c[_0x3cb9d9]['markersStart'])_0x147af2['set'](_0x27c502,{'start':_0x5008c6,'end':null});_0x1f5336('isRemoveSuggestion',_0x3cb9d9,_0x5008c6,_0x20431c),_0x1f5336('isAddSuggestion',_0x3cb9d9,_0x5008c6,_0x20431c),_0x1f5336('isRemoved',_0x3cb9d9,_0x5008c6,_0x20431c),_0x1f5336('isAdded',_0x3cb9d9,_0x5008c6,_0x20431c);for(const _0x1c1a15 of _0x3bfc9c[_0x3cb9d9]['markersEnd']){_0x147af2['get'](_0x1c1a15)['end']=_0x20431c;}}for(const [_0xd699ff,_0x32e119]of _0x147af2){const _0x3de0e8=this['editor']['model']['createRange'](_0x32e119['start'],_0x32e119['end']);_0x28a979['markers']['set'](_0xd699ff,_0x3de0e8);}return _0x40d324['sort']((_0x55e947,_0x18d862)=>{const _0x372cb7=_0x28a979['markers']['get']('revision:'+_0x55e947['id']),_0x1399d8=_0x28a979['markers']['get']('revision:'+_0x18d862['id']);return _0x372cb7['start']['isBefore'](_0x1399d8['start'])?-0x1:_0x372cb7['start']['isAfter'](_0x1399d8['start'])?0x1:_0x372cb7['end']['isBefore'](_0x1399d8['end'])?-0x1:_0x372cb7['end']['isAfter'](_0x1399d8['end'])?0x1:'add'===_0x55e947['type']?-0x1:0x1;}),{'root':_0x28a979,'changes':_0x40d324};function _0x1f5336(_0x1e2e3f,_0x6034e6,_0xde7fbc,_0x30da8e){const _0x5ee6a8=!!_0x3bfc9c[_0x6034e6][_0x1e2e3f],_0x1c6455=_0x5ee6a8?_0x3bfc9c[_0x6034e6][_0x1e2e3f]['userId']:null,_0x1f7e22=_0x6034e6===_0x3bfc9c['length']-0x1,_0x1c66b2=_0x1bde56[_0x1e2e3f][0x0],_0x1fc903=_0x1e3619['isObject'](_0x3bfc9c[_0x6034e6]['item']);!_0x5ceab5[_0x1e2e3f]&&_0x5ee6a8?_0x5ceab5[_0x1e2e3f]={'start':_0xde7fbc,'tapeItem':_0x3bfc9c[_0x6034e6],'userId':_0x1c6455,'type':_0x1e2e3f}:_0x5ceab5[_0x1e2e3f]&&!_0x5ee6a8?(_0x5ceab5[_0x1e2e3f]['end']=_0xde7fbc,_0x1472d9(_0x5ceab5[_0x1e2e3f]),_0x5ceab5[_0x1e2e3f]=null):_0x5ceab5[_0x1e2e3f]&&_0x5ee6a8&&_0x5ceab5[_0x1e2e3f]['userId']!==_0x1c6455&&(_0x5ceab5[_0x1e2e3f]['end']=_0xde7fbc,_0x1c66b2&&_0x1c66b2['userId']===_0x5ceab5[_0x1e2e3f]['userId']||_0x1472d9(_0x5ceab5[_0x1e2e3f]),_0x5ceab5[_0x1e2e3f]={'start':_0xde7fbc,'tapeItem':_0x3bfc9c[_0x6034e6],'userId':_0x1c6455,'type':_0x1e2e3f}),_0x5ceab5[_0x1e2e3f]&&_0x1fc903&&('elementStart'!==_0x3bfc9c[_0x6034e6]['type']||_0x1c66b2&&_0x1c66b2['userId']===_0x1c6455||_0x1bde56[_0x1e2e3f]['unshift']({'userId':_0x1c6455,'object':_0x3bfc9c[_0x6034e6]['item'],'change':_0x5ceab5[_0x1e2e3f]}),'elementEnd'===_0x3bfc9c[_0x6034e6]['type']&&_0x1c66b2&&_0x1c66b2['object']===_0x3bfc9c[_0x6034e6]['item']&&(_0x1bde56[_0x1e2e3f]['shift'](),_0x5ceab5[_0x1e2e3f]=_0x1c66b2['change'])),_0x5ceab5[_0x1e2e3f]&&_0x1f7e22&&(_0x5ceab5[_0x1e2e3f]['end']=_0x30da8e,_0x1472d9(_0x5ceab5[_0x1e2e3f]),_0x5ceab5[_0x1e2e3f]=null);}function _0x1472d9({start:_0x5b95d3,end:_0x12601a,tapeItem:_0x2b041e,userId:_0x5ac9b3,type:_0x5bb4cc}){const _0x5b6b5e=_0x2b041e['item'],_0x43257e=_0x10a5a7['schema']['isBlock'](_0x5b6b5e)&&!_0x10a5a7['schema']['isLimit'](_0x5b6b5e),_0x2d7b24=_0x5b95d3['nodeAfter']==_0x12601a['parent']&&_0x12601a['isAtStart'];if(_0x43257e&&_0x2d7b24)return;const _0x32fe16=_0x10a5a7['createRange'](_0x5b95d3,_0x12601a),_0x209d77=_0x3ef5db['get'](_0x5ac9b3),_0x54cec5=new r({'author':_0x209d77,'type':'isAdded'==_0x5bb4cc||'isAddSuggestion'==_0x5bb4cc?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5bb4cc||'isRemoveSuggestion'==_0x5bb4cc},'createdAt':new Date(),'rootName':_0x3e59c});_0x40d324['push'](_0x54cec5),_0x28a979['markers']['set']('revision:'+_0x54cec5['id'],_0x32fe16);}function _0x1e7560(_0x228310,_0x263b8d){const _0x4ba339=_0x228310['getAttributes'](),_0x4ea00c=_0x263b8d['getAttributes']();for(const _0x212437 of _0x4ba339){if(_0x212437[0x1]!==_0x263b8d['getAttribute'](_0x212437[0x0]))return!0x1;_0x4ea00c['next']();}return _0x4ea00c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xcadd72=>{const _0x459019=_0xcadd72['markerName']['split'](':')[0x1],_0x196036=this['_getChangeFromId'](_0x459019);if(!_0x196036)return null;const _0x3802f0='add'==_0x196036['type']?'insertion':'deletion',_0x295d11=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3802f0];return _0x196036['data']['isSuggestion']&&_0x295d11['push']('ck-suggestion-marker-'+_0x3802f0+'-new'),this['activeChange']==_0x196036&&_0x295d11['push']('ck-suggestion-marker--active'),{'classes':_0x295d11,'attributes':{'data-change-id':_0x459019}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2348ab=>{_0x2348ab['on']('element:pre',(_0x2d85c5,_0xd31f5e,_0x368ee5)=>{const _0x127904=_0xd31f5e['viewItem']['getChild'](0x0);if(!_0x127904||!_0x127904['is']('element','code'))return;if(!_0x368ee5['consumable']['consume'](_0x127904,{'attributes':['vid_start','vid_end']}))return;const _0x577020=_0xd31f5e['modelRange']['start']['nodeAfter'];_0x368ee5['writer']['setAttribute']('vid_start',_0x127904['getAttribute']('vid_start'),_0x577020),_0x368ee5['writer']['setAttribute']('vid_end',_0x127904['getAttribute']('vid_end'),_0x577020);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1c3346=>{_0x1c3346['on']('element',(_0x52b44b,_0x14ed4b,_0x2ce3bb)=>{if(!_0x2ce3bb['consumable']['consume'](_0x14ed4b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x14ed4b['modelRange']['isCollapsed'])return;const _0x130b49=_0x14ed4b['modelRange']['start']['nodeAfter'];_0x130b49['hasAttribute']('vid_start')||_0x130b49['hasAttribute']('vid')||(_0x2ce3bb['writer']['setAttribute']('vid_start',_0x14ed4b['viewItem']['getAttribute']('vid_start'),_0x130b49),_0x2ce3bb['writer']['setAttribute']('vid_end',_0x14ed4b['viewItem']['getAttribute']('vid_end'),_0x130b49));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x305292=>_0x305292['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5db981,[,_0x2a84ff])=>{['vid_start','vid_end','vid']['includes'](_0x2a84ff)&&(_0x5db981['return']=!0x0,_0x5db981['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3f9ee2=>{_0x3f9ee2['on']('attribute:vid',(_0x2742e6,_0x520f58,_0x5d52d9)=>{if('\x20'!=_0x520f58['item']['data']||_0x520f58['item']['parent']['maxOffset']>0x1)return;if(!_0x5d52d9['consumable']['consume'](_0x520f58['item'],_0x2742e6['name']))return;const _0x273a01=_0x5d52d9['writer'],_0x247135=_0x5d52d9['mapper']['toViewRange'](_0x520f58['range']);_0x273a01['wrap'](_0x247135,_0x273a01['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x7bcadb){const _0x30b8d3=_0x7bcadb['plugins']['get']('RevisionViewer');return(_0x2b21af,_0x572c48,_0x29117e)=>{const _0x3cc3a2=_0x572c48['markerName']['split'](':')[0x1],_0x565e59=_0x30b8d3['_getChangeFromId'](_0x3cc3a2);if(!_0x565e59)return null;const _0x5e9187='add'==_0x565e59['type']?'split':'merge';if(!_0x29117e['consumable']['test'](_0x572c48['markerRange'],_0x2b21af['name']))return;const _0x3f6108=_0x572c48['markerRange']['getWalker'](),_0x1b656a=_0x572c48['markerRange']['start'],_0x3e03c6=_0x7bcadb['model']['schema'];let _0x3263fb=null,_0x258c70=null,_0x5e75a6=!0x1,_0x1033eb=!0x1;for(const _0x356c26 of _0x3f6108){const _0x27d433=_0x356c26['item'];_0x5e75a6=_0x5e75a6||_0x3e03c6['isContent'](_0x27d433);const _0x4f60e7=_0x29117e['mapper']['toViewElement'](_0x27d433);if(_0x4f60e7&&_0x4f60e7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x356c26['type']&&(_0x3e03c6['isBlock'](_0x27d433)&&!_0x3e03c6['isLimit'](_0x27d433)&&(_0x27d433['nextSibling']||_0x1b656a['isAtEnd']?_0x3263fb&&_0x3263fb['parent']==_0x27d433||(_0x3263fb=_0x27d433,_0x2aa157(_0x356c26['previousPosition']),_0x1033eb=!0x0):_0x258c70=_0x258c70||_0x356c26['previousPosition']));}function _0x2aa157(_0x3037e9){const _0x1741c9=_0x29117e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e9187}),_0x3ec620=_0x29117e['mapper']['toViewPosition'](_0x3037e9);_0x565e59['data']['isSuggestion']&&_0x29117e['writer']['addClass']('ck-suggestion-marker-'+_0x5e9187+'-new',_0x1741c9),_0x30b8d3['activeChange']==_0x565e59&&_0x29117e['writer']['addClass']('ck-suggestion-marker--active',_0x1741c9),_0x29117e['writer']['insert'](_0x3ec620,_0x1741c9),_0x29117e['mapper']['bindElementToMarker'](_0x1741c9,_0x572c48['markerName']);}_0x5e75a6||_0x1033eb||!_0x258c70||_0x2aa157(_0x258c70);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x392cdb,_0x5c3aee,_0xb4c8d3)=>{const _0x4f2143=_0xb4c8d3['mapper']['markerNameToElements'](_0x5c3aee['markerName']);if(_0x4f2143){for(const _0x2c007e of _0x4f2143)(_0x2c007e['hasClass']('ck-suggestion-marker-split')||_0x2c007e['hasClass']('ck-suggestion-marker-merge'))&&(_0xb4c8d3['mapper']['unbindElementFromMarkerName'](_0x2c007e,_0x5c3aee['markerName']),_0xb4c8d3['writer']['remove'](_0x2c007e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x50a4a8,_0x407700,_0x38dc9b)=>{const _0x2cc18c=_0x407700['markerName']['split'](':')[0x1],_0x5a5823=this['_getChangeFromId'](_0x2cc18c);if(!_0x5a5823)return null;const _0x4e6020='add'==_0x5a5823['type']?'split':'merge';if(_0x38dc9b['consumable']['test'](_0x407700['markerRange'],_0x50a4a8['name']))for(const _0x419952 of _0x407700['markerRange']['getItems']()){if(!_0x419952['is']('element','softBreak'))continue;const _0x37b606=_0x38dc9b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e6020}),_0x4204cc=_0x38dc9b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x419952));_0x5a5823['data']['isSuggestion']&&_0x38dc9b['writer']['addClass']('ck-suggestion-marker-'+_0x4e6020+'-new',_0x37b606),this['activeChange']==_0x5a5823&&_0x38dc9b['writer']['addClass']('ck-suggestion-marker--active',_0x37b606),_0x38dc9b['writer']['insert'](_0x4204cc,_0x37b606),_0x38dc9b['mapper']['bindElementToMarker'](_0x37b606,_0x407700['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x35b03f=>{for(const _0x3822bd of this['editor']['model']['document']['getRootNames']()){const _0xdb191b=this['editor']['model']['document']['getRoot'](_0x3822bd),_0x2a534e=this['editor']['editing']['view']['document']['getRoot'](_0x3822bd);if(_0x2a534e){const _0x151f18=_0xdb191b['getAttribute']('revisionHistoryAttachChange');if(_0x35b03f['removeAttribute']('data-change-id',_0x2a534e),_0x35b03f['removeClass']('ck-revision-history-root-add',_0x2a534e),_0x35b03f['removeClass']('ck-revision-history-root-remove',_0x2a534e),_0x35b03f['removeClass']('ck-revision-history-root--active',_0x2a534e),_0x151f18){const _0x41ccbb=this['_getChangeFromId'](_0x151f18);if(!_0x41ccbb)return null;_0x35b03f['setAttribute']('data-change-id',_0x151f18,_0x2a534e),_0x35b03f['addClass']('ck-revision-history-root-'+_0x41ccbb['type'],_0x2a534e),this['activeChange']==_0x41ccbb&&_0x35b03f['addClass']('ck-revision-history-root--active',_0x2a534e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x331a55=>'revision-comment:'+_0x331a55,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x53db7b=>'revision-suggestion:'+_0x53db7b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x37e570=>({'name':'suggestion:'+_0x37e570,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4b5de1=>{const _0x5ee2ac=_0x4b5de1['markerName']['split'](':')[0x1];return'insertion'!=_0x5ee2ac&&'deletion'!=_0x5ee2ac?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5ee2ac]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4d0bb5,_0x12a566,_0x19f509)=>{const _0x33d358=_0x19f509['mapper']['markerNameToElements'](_0x12a566['markerName']);if(_0x33d358){for(const _0x19828e of _0x33d358)_0x19828e['is']('uiElement')&&(_0x19f509['mapper']['unbindElementFromMarkerName'](_0x19828e,_0x12a566['markerName']),_0x19f509['writer']['remove'](_0x19828e));}},{'priority':'high'});}['_getChangeFromId'](_0x8786e1){return this['_changeIdToChange']['get'](_0x8786e1);}['_getViewForChange'](_0x4bdfad){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x4bdfad),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4f18ef,_0x4c1751,_0x215c4a,_0x468b65)=>{_0x468b65&&this['_balloon']['remove'](_0x468b65),_0x215c4a&&(this['_balloon']['add']({'view':_0x215c4a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c2212=this['editor']['editing'],_0x2475a7=this['_getChangeFromId'](_0x215c4a['changeId']);let _0x4e4136;if(_0x2475a7['data']['isOnRoot']){const _0x468d5a=_0x2c2212['view']['getDomRoot'](_0x2475a7['rootName']);_0x4e4136=Array['from'](_0x468d5a['getClientRects']());}else{const _0x28b1d1=this['editor']['model']['markers']['get']('revision:'+_0x215c4a['changeId']);_0x4e4136=Array['from'](_0x2c2212['mapper']['markerNameToElements'](_0x28b1d1['name']))['map'](_0x4be480=>_0x2c2212['view']['domConverter']['mapViewToDom'](_0x4be480))['map'](_0x164ad7=>Array['from'](_0x164ad7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4e4136[0x0];return _0x4e4136['find'](_0x453237=>_0x453237['top']-0x3<=this['_activeViewTarget']['y']&&_0x453237['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x453237['left']-0x3<=this['_activeViewTarget']['x']&&_0x453237['right']+0x3>=this['_activeViewTarget']['x'])||_0x4e4136[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x195ca6,_0xaba5d6,_0x3189e0,_0x4c0a6d)=>{this['activeView']=_0x3189e0?this['_getViewForChange'](_0x3189e0):null,this['editor']['model']['change'](()=>{const _0x35db2b=this['editor']['editing'];_0x4c0a6d&&(_0x4c0a6d['data']['isOnRoot']?_0x35db2b['view']['change'](_0x8c3975=>{_0x8c3975['removeClass']('ck-revision-history-root--active',_0x35db2b['view']['document']['getRoot'](_0x4c0a6d['rootName']));}):_0x35db2b['reconvertMarker']('revision:'+_0x4c0a6d['id'])),_0x3189e0&&(_0x3189e0['data']['isOnRoot']?_0x35db2b['view']['change'](_0x49ba58=>{_0x49ba58['addClass']('ck-revision-history-root--active',_0x35db2b['view']['document']['getRoot'](_0x3189e0['rootName']));}):_0x35db2b['reconvertMarker']('revision:'+_0x3189e0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4e3495,_0x352e4e)=>{if(this['activeChange'])return;const _0x1b70a5=this['_findChangeIdFromDomTarget'](_0x352e4e['target']),_0x54639f=this['_changeIdToChange']['get'](_0x1b70a5);_0x54639f?(this['_activeViewTarget']={'x':_0x352e4e['domEvent']['x'],'y':_0x352e4e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x54639f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x49a7d6,_0x4e015d)=>{const _0x326c14=this['_findChangeIdFromDomTarget'](_0x4e015d['target']),_0x5e2201=this['_changeIdToChange']['get'](_0x326c14);_0x5e2201?(this['_activeViewTarget']={'x':_0x4e015d['domEvent']['x'],'y':_0x4e015d['domEvent']['y']},_0x5e2201===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5e2201):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3ed4a9){do{const _0x40cbf8=_0x3ed4a9['getAttribute']('data-change-id');if(_0x40cbf8)return _0x40cbf8;_0x3ed4a9=_0x3ed4a9['parent'];}while(_0x3ed4a9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3c42a0=>{for(const _0x11498a of this['editor']['model']['markers'])_0x3c42a0['removeMarker'](_0x11498a);});}}function Z(_0x2e19e6,_0x51a523){return(_0x1d3f51,_0xf1e3ea,_0x287336)=>{if(!_0x287336['consumable']['test'](_0xf1e3ea['markerRange'],_0x1d3f51['name']))return;const _0x86d40=_0xf1e3ea['markerRange']['getWalker'](),_0x3f194f=_0xf1e3ea['markerRange']['start'],_0x21abb1=_0x2e19e6['model']['schema'];let _0xed6f9d=null,_0x534c4e=null,_0x5bc8d6=!0x1,_0x210095=!0x1;for(const _0x27b263 of _0x86d40){const _0x3a4e32=_0x27b263['item'];_0x5bc8d6=_0x5bc8d6||_0x21abb1['isContent'](_0x3a4e32);const _0x147d81=_0x287336['mapper']['toViewElement'](_0x3a4e32);if(_0x147d81&&_0x147d81['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x27b263['type']&&(_0x21abb1['isBlock'](_0x3a4e32)&&!_0x21abb1['isLimit'](_0x3a4e32)&&(_0x3a4e32['nextSibling']||_0x3f194f['isAtEnd']?_0xed6f9d&&_0xed6f9d['parent']==_0x3a4e32||(_0xed6f9d=_0x3a4e32,_0x3c4568(_0x27b263['previousPosition']),_0x210095=!0x0):_0x534c4e=_0x534c4e||_0x27b263['previousPosition']));}function _0x3c4568(_0x42e532){const _0x9fe5ce=_0x287336['mapper']['toViewPosition'](_0x42e532),_0x154bd5=_0x287336['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x51a523});_0x287336['writer']['insert'](_0x9fe5ce,_0x154bd5),_0x287336['mapper']['bindElementToMarker'](_0x154bd5,_0xf1e3ea['markerName']);}_0x5bc8d6||_0x210095||!_0x534c4e||_0x3c4568(_0x534c4e);};}class wt extends _0x5e08eb{constructor(_0x435bcc){super(_0x435bcc);const _0x48254c=_0x435bcc['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x48254c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x48254c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5028f7=this['editor'],_0x148497=_0x5028f7['plugins']['get'](d),_0x2f7b5f=_0x148497['isReady']?_0x148497['diff']['newRevisionId']:null;_0x5028f7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2f7b5f);}['refresh'](){const {isReady:_0x14b887,isEnabled:_0x56ff79,repository:_0x14d24e,diff:_0x995802}=this['editor']['plugins']['get'](d),_0x52eb1d=_0x995802&&_0x14d24e['getLaterVisibleRevision'](_0x995802['newRevisionId']);this['isEnabled']=_0x14b887&&_0x56ff79&&Boolean(_0x52eb1d);}}class _t extends _0x5e08eb{['_step'];constructor(_0x3c34e7,{direction:_0x393b38}){super(_0x3c34e7);const _0x35d476=_0x3c34e7['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x393b38?0x1:-0x1,this['listenTo'](_0x35d476,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x35d476,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x35d476,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x50f338=this['editor'],_0x2d39c7=_0x50f338['plugins']['get'](d),{isNavigationMode:_0x7be7c5,currentChangeNumber:_0x11e60e}=_0x2d39c7;let _0x11c324;if(_0x2d39c7['activeChange']=_0x7be7c5?_0x2d39c7['diff']['changes']['get'](_0x11e60e+this['_step']):_0x2d39c7['diff']['changes']['first'],_0x2d39c7['activeChange']['data']['isOnRoot'])_0x11c324=_0x50f338['editing']['view']['getDomRoot'](_0x2d39c7['activeChange']['rootName']);else{const _0x1a7486=_0x50f338['model']['markers']['get']('revision:'+_0x2d39c7['activeChange']['id']);_0x11c324=_0x269309(_0x50f338['editing'],_0x1a7486);}_0x2cf28c({'target':_0x11c324,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5f55c9,currentChangeNumber:_0x5d489b,numberOfChanges:_0x23b892,isReady:_0x433b9b,isEnabled:_0x25ec00}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x25ec00&&_0x433b9b&&_0x23b892)&&(!_0x5f55c9||(0x1===this['_step']?_0x5d489b<_0x23b892-0x1:_0x5d489b>0x0));}}class di extends ts{constructor(_0xc395f4){super(_0xc395f4);const _0x2070d3=this['bindTemplate'],_0x23e285=new te(_0xc395f4),_0x27e361=new te(_0xc395f4);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',(_0x100605,_0x3e62c2)=>_0x100605&&_0x3e62c2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x25f9ef,_0x3f57ac,_0x4b5691,_0x2f2f9a)=>{if(!_0x25f9ef)return m(_0xc395f4,'Loading...');if(!_0x4b5691)return m(_0xc395f4,'No\x20changes');const _0x27fb05=m(_0xc395f4,'NUMBER_OF_CHANGES',_0x4b5691);return _0x2f2f9a?m(_0xc395f4,'X_OF_Y_CHANGES',[_0x3f57ac+0x1,_0x4b5691]):_0x27fb05;}),_0x23e285['set']({'label':m(_0xc395f4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x107656}),_0x27e361['set']({'label':m(_0xc395f4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5b3bdc}),_0x23e285['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x27e361['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x23e285['on']('execute',()=>this['fire']('execute','backward')),_0x27e361['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',_0x2070d3['if']('_isStatusLabelVisible','ck-hidden',_0x49ec84=>!_0x49ec84)]},'children':[{'text':_0x2070d3['to']('isNavigationMode',_0x26182d=>_0x26182d?m(_0xc395f4,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xc395f4,'Total')+':\x20')}]},{'text':_0x2070d3['to']('_statusText')}]},new _0x5153b1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x23e285,_0x27e361]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x2f905d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x12fca4=this['editor']['editing']['view'];_0x12fca4['change'](_0x4f34e8=>{for(const _0x1466e3 of _0x12fca4['document']['roots'])_0x4f34e8['addClass'](le,_0x1466e3);});}['hide'](){const _0x39351a=this['editor']['editing']['view'];_0x39351a['change'](_0x9bb37c=>{for(const _0x3620d9 of _0x39351a['document']['roots'])_0x9bb37c['removeClass'](le,_0x3620d9);});}}class w extends _0x2f905d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x137e89=this['editor'],_0x4b58d8=_0x137e89['plugins']['get'](d),_0x3f1f71=_0x137e89['plugins']['get'](de);_0x137e89['ui']['componentFactory']['add']('exitToEditing',_0x49c55e=>{const _0x267074=new te(_0x49c55e);return _0x267074['set']({'label':m(_0x49c55e,'Back\x20to\x20editing'),'icon':_0x5351ed,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x267074,'execute',()=>{_0x137e89['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x267074;}),_0x137e89['ui']['componentFactory']['add']('restoreRevision',_0x5c9b99=>{const _0x4defab=new te(_0x5c9b99);return _0x4defab['set']({'label':m(_0x5c9b99,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4defab['bind']('isEnabled')['to'](_0x137e89['commands']['get']('restoreRevision')),this['listenTo'](_0x4defab,'execute',()=>_0x137e89['execute']('restoreRevision')),_0x4defab;}),_0x137e89['ui']['componentFactory']['add']('changesNavigation',_0x9eb522=>{const _0x6cbf00=new di(_0x9eb522),_0x5e1652=_0x137e89['commands']['get']('showPreviousChange'),_0x4c80f2=_0x137e89['commands']['get']('showNextChange');return _0x6cbf00['bind']('isBackwardNavigationEnabled')['to'](_0x5e1652,'isEnabled'),_0x6cbf00['bind']('isForwardNavigationEnabled')['to'](_0x4c80f2,'isEnabled'),_0x6cbf00['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4b58d8),this['listenTo'](_0x6cbf00,'execute',(_0x48cbdf,_0x3164bb)=>{_0x137e89['execute']('forward'===_0x3164bb?'showNextChange':'showPreviousChange');}),_0x6cbf00;}),_0x3f1f71['show'](),_0x4b58d8['on']('change:isReady',(_0x54c1d8,_0x431e7e,_0x2b5326)=>{_0x2b5326?_0x3f1f71['hide']():_0x3f1f71['show']();});}}class pt extends _0x3770cf{['_resizeObserver']=null;constructor(_0xaad279,_0x5e9943){super(_0xaad279,_0x5e9943);const _0x5e41bc=this['bindTemplate'];this['set']({'label':m(_0xaad279,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0xaad279,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5e41bc['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 _0x132fcb=this['fieldView']['element'];this['_tooltipString']=_0x132fcb['scrollWidth']>_0x132fcb['clientWidth']&&_0x132fcb['value']||'';}}class si extends ts{constructor(_0x22e74f,_0x1d3937,_0x34bf9a){super(_0x22e74f);const _0x172f58=new _0x495d9e();_0x172f58['set']({'content':_0x14fda0,'viewBox':'0\x200\x2011\x2010'});const _0x447204=['ck','ck-revision-history-sidebar__revision-author'];_0x34bf9a&&_0x447204['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5b908e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x22e74f,_0x34bf9a?'Revision\x20creator':'Revision\x20author')},'children':[_0x172f58,_0x1d3937['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x447204},'children':_0x5b908e});}}function oi(_0x7e1050,_0x4b5dd1){const _0xa57382=_0x7e1050['bindTemplate'],_0x46f505=_0x7e1050['locale'],_0x3d2291=_0x55d4ff(_0x46f505);_0x3d2291['panelPosition']='sw';const _0x19fc69=function(_0x197e80,_0x1a53fb){const _0x998d1f=function(_0x295ad9,_0x3429d3){const _0x236a80=_0x295ad9['locale'],_0x2690f5={'Compare\x20against\x20selected':m(_0x236a80,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x236a80,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x236a80,'Restore\x20this\x20revision')};return _0x3429d3['map'](_0x39ad19=>{const _0x4a4beb=_0x2690f5[_0x39ad19['name']];return _0x4a4beb&&_0x4a4beb!==_0x39ad19['name']&&(_0x39ad19['name']=_0x4a4beb),_0x39ad19;});}(_0x197e80,_0x1a53fb),_0x5a1434=new _0x3079d2();for(const _0x639753 of _0x998d1f){const _0x23a19a={'type':'button','model':new to({'label':_0x639753['name'],'class':_0x639753['class'],'withText':!0x0,'role':'menuitem','_action':_0x639753['action']})};_0x23a19a['model']['bind']('isEnabled')['to'](_0x197e80,'isActionsDropdownOpen',_0x463d18=>'function'!=typeof _0x639753['isEnabled']||(!_0x463d18||_0x639753['isEnabled'](_0x197e80))),_0x5a1434['add'](_0x23a19a);}return _0x5a1434;}(_0x7e1050,_0x4b5dd1);return _0x7e1050['bind']('isActionsDropdownOpen')['to'](_0x3d2291,'isOpen'),_0x3d2291['buttonView']['set']({'label':m(_0x46f505,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xa948b0}),_0x3d2291['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xa57382['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xa57382['to'](_0x1b190c=>_0x1b190c['stopPropagation']())}}),_0x3d2291['on']('execute',_0x47f79a=>{_0x7e1050['isReady']&&'function'==typeof _0x47f79a['source']['_action']&&_0x47f79a['source']['_action'](_0x7e1050);}),_0xa23c87(_0x3d2291,_0x19fc69,{'role':'menu'}),_0x3d2291['listenTo'](_0x7e1050,'change:isActionsDropdownOpen',(_0x10cbac,_0x561189,_0x3d1a0f)=>{if(_0x3d1a0f)for(const _0xa92ac8 of _0x3d2291['listView']['items']){const _0x1991f6=_0xa92ac8['children']['first'],_0x1a5faa=_0x4b5dd1['find'](_0x13c4d9=>_0x13c4d9['action']===_0x1991f6['_action'])['isVisible'];_0xa92ac8['isVisible']=void 0x0===_0x1a5faa||_0x1a5faa(_0x7e1050);}}),_0x3d2291;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1defad,_0x1fe6b0,_0x57f456,_0x325d46){super(_0x1defad);const _0x23ddc9=this['bindTemplate'],_0x2e2653=function(_0x37b38f,_0x523661){const _0x155c59=Array['from'](_0x523661['authors'])['filter'](_0x16e39e=>_0x16e39e!=_0x523661['creator']);return _0x523661['creator']&&_0x155c59['unshift'](_0x523661['creator']),_0x155c59['map'](_0x4cc21c=>new si(_0x37b38f,_0x4cc21c,_0x4cc21c==_0x523661['creator']));}(_0x1defad,_0x1fe6b0);this['id']=_0x1fe6b0['id'],this['_revision']=_0x1fe6b0,this['_requireRevisionName']=_0x325d46,this['bind']('name','createdAt')['to'](_0x1fe6b0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3b337d=>{return _0x3666aa=_0x1defad['uiLanguage'],(_0x1dac5b=_0x3b337d)['toLocaleDateString'](_0x3666aa,{'month':'long','day':'numeric'})+',\x20'+_0x1dac5b['toLocaleTimeString'](_0x3666aa,{'hour':'numeric','minute':'numeric'});var _0x3666aa,_0x1dac5b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x1defad,_0x37f3f7),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x55c3a8=>_0x55c3a8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x9e544e,_0xb6cb28)=>_0x9e544e&&_0xb6cb28),this['revisionActionsView']=_0x57f456&&_0x57f456['length']?oi(this,_0x57f456):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x23ddc9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x23ddc9['if']('isEnabled','ck-disabled',_0x250e48=>!_0x250e48),_0x23ddc9['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x23ddc9['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x23ddc9['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':_0x23ddc9['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':_0x2e2653}]},this['revisionActionsView']],'on':{'click':_0x23ddc9['to'](_0x2c9b65=>{_0x2c9b65['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5454a4=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5454a4,'change',()=>{this['_requireRevisionName']&&!_0x5454a4['value']||this['fire']('setName',{'id':this['id'],'name':_0x5454a4['value']}),_0x5454a4['value']||(_0x5454a4['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x245645,_0x46729c){const _0x3dbbbe=_0x59c818['fromJSDate'](_0x245645)['setLocale'](_0x46729c),_0x3b0bf1=_0x59c818['local'](),_0x257de8=_0x3b0bf1['minus']({'days':0x1})['startOf']('day');let _0x176bc2,_0x4bd9ba;return _0x3dbbbe['hasSame'](_0x3b0bf1,'day')?(_0x176bc2=_0x3dbbbe['startOf']('day')['toJSDate'](),_0x4bd9ba=_0x3dbbbe['toRelativeCalendar']()):_0x3dbbbe['hasSame'](_0x257de8,'day')?(_0x176bc2=_0x257de8['toJSDate'](),_0x4bd9ba=_0x3dbbbe['toRelativeCalendar']()):_0x3dbbbe['hasSame'](_0x3b0bf1,'week')?(_0x176bc2=_0x3dbbbe['startOf']('week')['toJSDate'](),_0x4bd9ba=_0x3dbbbe['weekdayLong']||''):_0x3dbbbe['hasSame'](_0x3b0bf1,'year')?(_0x176bc2=_0x3dbbbe['startOf']('month')['toJSDate'](),_0x4bd9ba=_0x3dbbbe['monthLong']||''):(_0x176bc2=_0x3dbbbe['startOf']('year')['toJSDate'](),_0x4bd9ba=String(_0x3dbbbe['year'])),{'startDate':_0x176bc2,'localizedPeriodName':_0x4bd9ba};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2c06a2,_0x4353e7,_0x185ad2,_0x181abd){super(_0x2c06a2);const _0x55ebac=vi(_0x4353e7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4353e7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x185ad2,this['_requireRevisionName']=_0x181abd,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':_0x55ebac}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3205c8){const _0x1dbc41=new hi(this['locale'],_0x3205c8,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1dbc41);}['removeRevision'](_0xd95f01){const _0x101fb9=this['revisionViews']['find'](_0x587d82=>_0x587d82['id']===_0xd95f01['id']);this['revisionViews']['remove'](_0x101fb9);}}class as extends ts{constructor(_0x334dc1){super(_0x334dc1);const _0x49d777=new _0x495d9e();_0x49d777['content']=_0x4424f5,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x49d777,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x334dc1,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2e6f84,_0x655b79,_0x66886a,_0x4bb141){super(_0x2e6f84);const _0x2f33bb=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x655b79,this['_revisionActions']=_0x66886a,this['_requireRevisionName']=_0x4bb141,this['on']('select',(_0x3ec9f8,_0x5176ae)=>{this['fire']('revisionSelected',_0x5176ae);}),this['on']('setName',(_0x45728d,_0x15941e)=>{this['fire']('revisionSetName',_0x15941e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2e6f84),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2f33bb['if']('isEnabled','ck-disabled',_0x13fb45=>!_0x13fb45)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3271e0 of this['_revisions'])this['_addRevision'](_0x3271e0);this['_revisions']['on']('add',(_0x59f4ab,_0x413fae)=>{this['_addRevision'](_0x413fae);}),this['_revisions']['on']('remove',(_0x29c1f7,_0x212428)=>{this['_removeRevision'](_0x212428);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1350f2=>_0x1350f2['revisionViews']['map'](_0x453632=>_0x453632))['flat']();}['selectRevision'](_0x45fd14){for(const _0x277985 of this['revisionViews'])_0x45fd14&&_0x45fd14['id']===_0x277985['id']?_0x277985['select']():_0x277985['deselect']();}['highlightRevisions'](_0x776a1d){for(const _0x1ada9a of this['revisionViews'])_0x776a1d['some'](({id:_0x59e183})=>_0x59e183===_0x1ada9a['id'])?_0x1ada9a['highlight']():_0x1ada9a['unhighlight']();}['_addRevision'](_0x1e3bb3){const _0x491040=vi(_0x1e3bb3['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x59c556=this['timePeriodViews']['get'](0x0);_0x59c556&&_0x59c556['startDate']['getTime']()===_0x491040['getTime']()||(_0x59c556=new mi(this['locale'],_0x491040,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x59c556)),_0x59c556['addRevision'](_0x1e3bb3);}['_removeRevision'](_0x35912d){const _0x357606=vi(_0x35912d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x357606)['removeRevision'](_0x35912d);}['_getTimePeriodViewByStartDate'](_0x10ee55){return this['timePeriodViews']['find'](_0x2a6961=>_0x2a6961['startDate']['getTime']()===_0x10ee55['getTime']());}}class g extends _0x2f905d{['_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(_0x52d3c1){super(_0x52d3c1),this['_revisionViewer']=_0x52d3c1['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xde2744=this['_revisionsRepository']['_revisions'],_0x1bb634=this['_createRevisionActions'](),_0x24d83d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0xde2744,_0x1bb634,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',(_0xe915ab,_0x4ea04a)=>{_0x4ea04a['revisionViews']['on']('add',(_0x462f14,_0x524f3b)=>{_0x524f3b['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)),_0x24d83d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x18eee8=this['_revisionsRepository']['getRevision'](0x0);if(_0x18eee8){const _0x2c23f2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x18eee8['id']);this['_revisionViewer']['compare'](_0x18eee8,_0x2c23f2);}}['_handleRevisionSelected'](_0x31c9a0,_0xffd964){const _0x82f7ad=this['_revisionsRepository']['getRevision'](_0xffd964['id']),_0x4a510f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x82f7ad['id']);this['_revisionViewer']['compare'](_0x82f7ad,_0x4a510f);}['_handleRevisionSetName'](_0x46287b,_0x29264a){this['_revisionsRepository']['getRevision'](_0x29264a['id'])['setName'](_0x29264a['name']);}['_handleDiffChange'](_0xa84e51,_0x44a92a,_0x40c492){const _0x29dd7c=this['_revisionsRepository']['getRevisionsInDiff'](_0x40c492);_0x29dd7c['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x29dd7c),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x29dd7c[0x0]));}['_createRevisionActions'](){const _0x13b7c7=this['editor'],_0x3f06f6=g['availableRevisionActions'],_0xa8e373=_0x13b7c7['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0xa8e373['length'])return _0xa8e373['map'](_0x5ae805=>{const _0x2c9e46='string'==typeof _0x5ae805?Object['assign']({},_0x3f06f6[_0x5ae805]):_0x5ae805;return _0x2c9e46['action']=_0x2c9e46['action']['bind'](this,_0x13b7c7),_0x2c9e46['isVisible']&&(_0x2c9e46['isVisible']=_0x2c9e46['isVisible']['bind'](this,_0x13b7c7)),_0x2c9e46;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x41de2f},_0x73a3d8)=>{const _0x17bae5=_0x41de2f['get'](d),_0x3fbabf=_0x17bae5['repository'];let _0x18b75a=_0x17bae5['diff']['newRevisionId'],_0x59e4fa=_0x73a3d8['id'];_0x3fbabf['getIndex'](_0x18b75a)>_0x3fbabf['getIndex'](_0x59e4fa)&&([_0x18b75a,_0x59e4fa]=[_0x59e4fa,_0x18b75a]),_0x17bae5['compare'](_0x18b75a,_0x59e4fa);},'isVisible':({plugins:_0xd3e810},_0x3d6212)=>{const _0x3278cb=_0xd3e810['get'](d);return!(_0x3278cb['repository']['getRevisionsInDiff'](_0x3278cb['diff'])['length']>0x2)&&!_0x3d6212['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2f3333,{id:_0x5eb669})=>{_0x2f3333['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5eb669);},'isVisible':({plugins:_0x3bc4bb},_0xc83fca)=>!!_0x3bc4bb['get'](d)['repository']['getLaterVisibleRevision'](_0xc83fca['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4e72ee},{id:_0x3bea20,revisionNameView:_0x5dc911})=>{const _0x11dcfa=_0x4e72ee['get'](d),_0x2140f4=_0x11dcfa['repository']['getEarlierVisibleRevision'](_0x3bea20);_0x11dcfa['compare'](_0x3bea20,_0x2140f4),_0x5dc911['focus'](),_0x5dc911['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2be0ae,_0x5e7e16){super(_0x2be0ae),this['_view']=_0x5e7e16,this['_toolbarConfig']=ot(_0x2be0ae['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x9c495b){const _0x3521f4=this['editor'],_0x52324f=this['view'],_0x703588=_0x3521f4['editing']['view'],_0x5d3faf=_0x52324f['editable'],_0x20cd3c=_0x703588['document']['getRoot']();_0x5d3faf['name']=_0x20cd3c['rootName'],_0x52324f['render']();const _0x517c1e=_0x5d3faf['element'];this['setEditableElement'](_0x5d3faf['name'],_0x517c1e),_0x52324f['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x703588['attachDomRoot'](_0x517c1e),this['_elementReplacer']['replace'](_0x9c495b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2322a4=this['view'],_0x53dfd7=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x53dfd7['detachDomRoot'](_0x2322a4['editable']['name']),_0x2322a4['destroy']();}['_initToolbar'](){const _0x37e55b=this['view'];_0x37e55b['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x37e55b['stickyPanel']['limiterElement']=_0x37e55b['element'],_0x37e55b['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x35d5de})=>_0x35d5de),_0x37e55b['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x37e55b['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x555cfd,_0x1568bf,_0x62c866={}){super(_0x555cfd),this['stickyPanel']=new lt(_0x555cfd),this['toolbar']=new nt(_0x555cfd,{'shouldGroupWhenFull':_0x62c866['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x555cfd,_0x1568bf);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3f43af,_0x1caa56){super(_0x1caa56),this['sourceElement']=_0x3f43af,this['model']['document']['createRoot']();const _0x59b808=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x59b808);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4daf6d,_0x3a41e3){const _0x184a6=new this(_0x4daf6d,_0x3a41e3);return await _0x184a6['initPlugins'](),await _0x184a6['ui']['init'](_0x4daf6d),await _0x184a6['data']['init'](_0x184a6['config']['get']('initialData')||''),_0x184a6['fire']('ready'),_0x184a6;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x14d729{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12813c){function _0x40314b(_0x259d45){return _0x259d45['map'](_0x5b7319=>String['fromCharCode'](_0x5b7319))['join']('');}super(_0x12813c),this['result']='end',_0x12813c[_0x40314b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40314b([0x76,0x69,0x65,0x77])][_0x40314b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40314b([0x61,0x75,0x74,0x6f]),_0x12813c[_0x40314b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x40314b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40314b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x40314b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x40314b([0x6f,0x6b])});}}class k extends _0x14d729{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x56de27){if(super(_0x56de27),!this['editor']['config']['get']('revisionHistory'))throw new _0x500c82('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xc4f574=>this['_showRevisionViewer']({..._0xc4f574,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1f9964=>this['_closeRevisionViewer'](_0x1f9964)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5b7c33=>this['_restoreRevision'](_0x5b7c33)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x37fcab){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x37fcab;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1b9912){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1b9912);}['getRevision'](_0x6bb1af){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x6bb1af);}['getRevisions'](_0x5d3ff6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5d3ff6||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x33b20e=this['editor'],_0xd6c72b=_0x39a0d0(_0x33b20e,p),_0x523729=_0x33b20e['plugins']['get']('RevisionTracker'),_0x3c97da=_0x33b20e['plugins']['get']('Users')['users'];return _0xd6c72b['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xd6c72b['lazyRoots'],(_0xd6c72b['plugins']['push'](Rt,d,w,class extends _0x14d729{static get['requires'](){return[d,'Users'];}['init'](){const _0xa70fc5=this['editor']['plugins']['get']('Users');for(const _0x24f6ca of _0x3c97da)_0x24f6ca['isAnonymous']||_0xa70fc5['getUser'](_0x24f6ca['id'])||_0xa70fc5['addUser'](_0x24f6ca);const _0x522f90=_0x523729['repository']['getRevisions']();let _0x184273=null;const _0x1c67cb=this['editor']['plugins']['get']('RevisionViewer');_0x1c67cb['adapter']=_0x523729['adapter'],_0x1c67cb['bind']('isEnabled')['to'](_0x523729),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x33b20e,'isReadOnly',_0x2099c2=>!_0x2099c2);for(const _0x1e6c9d of _0x522f90){const _0x4af55d=null===_0x1e6c9d['creator'];if(_0x4af55d&&_0x1e6c9d['toVersion']===_0x1e6c9d['fromVersion'])continue;const _0x45dbef=_0x1e6c9d['toJSON']();_0x1c67cb['addRevisionData'](_0x45dbef,(_0x2b16a9,_0x4893d7,_0x18296b)=>{if(_0x4af55d){if(_0x184273)_0x184273['_update'](_0x2b16a9,_0x4893d7);else{if(!_0x4893d7){const _0x4ab621=_0x18296b['toJSON']();_0x4ab621['id']=_0x5396c0(),_0x523729['saveRevision'](_0x4ab621,_0x18296b['toVersion'])['then'](_0x5f43b2=>{_0x184273=_0x5f43b2;});}}}else _0x1e6c9d['_update'](_0x2b16a9,_0x4893d7);});}}},g),_0xd6c72b);}['_enhanceShowRevisionViewerCallback'](){const _0x34a92e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3dc35c=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xc02080=this['editor']['plugins']['get']('Autosave');await _0xc02080['save']();}else await _0x3dc35c['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1be3b9=this['editor']['plugins']['get']('Dialog');_0x1be3b9['isOpen']&&_0x1be3b9['hide']();}const _0x2d8f90=this['_getRevisionViewerEditorConfig']();return _0x34a92e(_0x2d8f90)['then'](_0x564e7f=>{return(this['_viewerEditor']=_0x564e7f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x564e7f;})['catch'](_0x5df1a5=>(console['error'](_0x5df1a5),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1bc788=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'](),_0x1bc788(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x10fb1c=this['editor']['plugins']['get']('Annotations');_0x10fb1c['refreshVisibility'](),_0x10fb1c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x421a7c){const _0x4b456a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x42eba8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x237bbd=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x237bbd,_0x421a7c)['then'](_0x50b97f=>(_0x42eba8['style']['display']='block',_0x4b456a['style']['display']='none',_0x50b97f));}['_closeRevisionViewer'](_0x703322){const _0x58ff7f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x58ff7f['style']['display']='',_0x703322['destroy']();}async['_restoreRevision'](_0xb5ecf7){const _0xaf713e=this['editor'],_0x1149ca=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x26f198=_0xaf713e['plugins']['get']('RevisionTracker'),_0x49deac=_0x1149ca['repository']['getRevision'](_0xb5ecf7);let _0x5a3702,_0x444df6,_0x24e1c1;try{_0x5a3702=await _0x1149ca['getRevisionData'](_0x49deac),_0x444df6=await _0x1149ca['getRevisionRootsAttributes'](_0x49deac);}catch(_0x1524e7){return void console['error'](_0x1524e7);}_0xaf713e['model']['change'](_0x5068cb=>{for(const _0x17f0a7 of Array['from'](_0xaf713e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5068cb['removeMarker'](_0x17f0a7);}),_0x1149ca['isReady']=!0x1,_0xaf713e['model']['enqueueChange'](_0x1e0267=>{_0x1e0267['setSelection'](null),_0x1e0267['removeSelectionAttribute'](_0xaf713e['model']['document']['selection']['getAttributeKeys']());const _0x345193=Object['keys'](_0x5a3702);for(const _0x86c702 of _0xaf713e['model']['document']['roots'])'$graveyard'!=_0x86c702['rootName']&&_0x86c702['isAttached']()&&!_0x345193['includes'](_0x86c702['rootName'])&&_0x1e0267['detachRoot'](_0x86c702);for(const _0x381393 of _0x345193){let _0x4303c7=_0xaf713e['model']['document']['getRoot'](_0x381393);_0x4303c7&&_0x4303c7['isAttached']()||(_0x4303c7=_0x1e0267['addRoot'](_0x381393));const _0x573fe5=_0x444df6[_0x381393],_0x23b0e5=Object['keys'](_0x573fe5),_0x1eb0b6=_0x5a3702[_0x381393];for(const _0x210a46 of _0x4303c7['getAttributeKeys']())_0x23b0e5['includes'](_0x210a46)||_0x1e0267['removeAttribute'](_0x210a46,_0x4303c7);for(const _0x2ea0ad of _0x23b0e5)_0x1e0267['setAttribute'](_0x2ea0ad,_0x444df6[_0x381393][_0x2ea0ad],_0x4303c7);_0x1e0267['remove'](_0x1e0267['createRangeIn'](_0x4303c7)),_0x1e0267['insert'](_0xaf713e['data']['parse'](_0x1eb0b6,_0x4303c7),_0x4303c7,0x0);}});const _0x2a1114=m(_0xaf713e['locale'],'Restored');if(_0x49deac['name'])_0x24e1c1=-0x1==_0x49deac['name']['indexOf'](_0x2a1114)?_0x2a1114+':\x20'+_0x49deac['name']:_0x49deac['name'];else _0x24e1c1=_0x2a1114+':\x20'+(_0x49deac['createdAt']['toLocaleDateString'](_0xaf713e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x49deac['createdAt']['toLocaleTimeString'](_0xaf713e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x26f198['saveRevision']({'name':_0x24e1c1}),_0x1149ca['isReady']=!0x0,_0xaf713e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,ie as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x480d36){super(_0x480d36),this['_revisionViewer']=_0x480d36['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x293011=this['_revisionsRepository']['_revisions'],_0x35fd02=this['_createRevisionActions'](),_0x43bd98=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x293011,_0x35fd02,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',(_0x2d2a78,_0xa4e193)=>{_0xa4e193['revisionViews']['on']('add',(_0x787d7b,_0x5353e9)=>{_0x5353e9['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)),_0x43bd98['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x254115=this['_revisionsRepository']['getRevision'](0x0);if(_0x254115){const _0x309a9e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x254115['id']);this['_revisionViewer']['compare'](_0x254115,_0x309a9e);}}['_handleRevisionSelected'](_0x5993a3,_0x1a7cb2){const _0x4aa897=this['_revisionsRepository']['getRevision'](_0x1a7cb2['id']),_0x45a263=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4aa897['id']);this['_revisionViewer']['compare'](_0x4aa897,_0x45a263);}['_handleRevisionSetName'](_0x241bae,_0x552c6c){this['_revisionsRepository']['getRevision'](_0x552c6c['id'])['setName'](_0x552c6c['name']);}['_handleDiffChange'](_0xc67c1d,_0x3f41dd,_0x264587){const _0x1ad185=this['_revisionsRepository']['getRevisionsInDiff'](_0x264587);_0x1ad185['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1ad185),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1ad185[0x0]));}['_createRevisionActions'](){const _0x41b996=this['editor'],_0x1b837c=g['availableRevisionActions'],_0x1b797f=_0x41b996['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1b797f['length'])return _0x1b797f['map'](_0x1af97e=>{const _0x1a73eb='string'==typeof _0x1af97e?Object['assign']({},_0x1b837c[_0x1af97e]):_0x1af97e;return _0x1a73eb['action']=_0x1a73eb['action']['bind'](this,_0x41b996),_0x1a73eb['isVisible']&&(_0x1a73eb['isVisible']=_0x1a73eb['isVisible']['bind'](this,_0x41b996)),_0x1a73eb;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1af252},_0x2449b0)=>{const _0x6a0ff2=_0x1af252['get'](d),_0x52a8b5=_0x6a0ff2['repository'];let _0x4ae0fc=_0x6a0ff2['diff']['newRevisionId'],_0x16071f=_0x2449b0['id'];_0x52a8b5['getIndex'](_0x4ae0fc)>_0x52a8b5['getIndex'](_0x16071f)&&([_0x4ae0fc,_0x16071f]=[_0x16071f,_0x4ae0fc]),_0x6a0ff2['compare'](_0x4ae0fc,_0x16071f);},'isVisible':({plugins:_0x42525c},_0x444eac)=>{const _0x55cb0f=_0x42525c['get'](d);return!(_0x55cb0f['repository']['getRevisionsInDiff'](_0x55cb0f['diff'])['length']>0x2)&&!_0x444eac['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5b9dc6,{id:_0x23e4b4})=>{_0x5b9dc6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x23e4b4);},'isVisible':({plugins:_0x579c36},_0x538580)=>!!_0x579c36['get'](d)['repository']['getLaterVisibleRevision'](_0x538580['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x20ee1a},{id:_0x23de10,revisionNameView:_0x5b4ce2})=>{const _0x54996f=_0x20ee1a['get'](d),_0x178b8e=_0x54996f['repository']['getEarlierVisibleRevision'](_0x23de10);_0x54996f['compare'](_0x23de10,_0x178b8e),_0x5b4ce2['focus'](),_0x5b4ce2['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1396dd,_0x19f17d){super(_0x1396dd),this['_view']=_0x19f17d,this['_toolbarConfig']=ot(_0x1396dd['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x5eddc6){const _0x5665e7=this['editor'],_0x1c1575=this['view'],_0x5dac40=_0x5665e7['editing']['view'],_0x5aed6f=_0x1c1575['editable'],_0xe375c5=_0x5dac40['document']['getRoot']();_0x5aed6f['name']=_0xe375c5['rootName'],_0x1c1575['render']();const _0x8a1cb0=_0x5aed6f['element'];this['setEditableElement'](_0x5aed6f['name'],_0x8a1cb0),_0x1c1575['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5dac40['attachDomRoot'](_0x8a1cb0),this['_elementReplacer']['replace'](_0x5eddc6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x41329b=this['view'],_0x3f8cbf=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3f8cbf['detachDomRoot'](_0x41329b['editable']['name']),_0x41329b['destroy']();}['_initToolbar'](){const _0x24b684=this['view'];_0x24b684['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x24b684['stickyPanel']['limiterElement']=_0x24b684['element'],_0x24b684['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1b0046})=>_0x1b0046),_0x24b684['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x24b684['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x66ac91,_0xbd5aec,_0xd522fe={}){super(_0x66ac91),this['stickyPanel']=new lt(_0x66ac91),this['toolbar']=new nt(_0x66ac91,{'shouldGroupWhenFull':_0xd522fe['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x66ac91,_0xbd5aec);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x383ae9,_0x28bd98){super(_0x28bd98),this['sourceElement']=_0x383ae9,this['model']['document']['createRoot']();const _0x33b138=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x33b138);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x50ee81,_0x40f302){const _0x421edf=new this(_0x50ee81,_0x40f302);return await _0x421edf['initPlugins'](),await _0x421edf['ui']['init'](_0x50ee81),await _0x421edf['data']['init'](_0x421edf['config']['get']('initialData')||''),_0x421edf['fire']('ready'),_0x421edf;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x2f905d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d25ee){function _0x4c98a1(_0x15c1c5){return _0x15c1c5['map'](_0x307a34=>String['fromCharCode'](_0x307a34))['join']('');}super(_0x1d25ee),this['result']='end',_0x1d25ee[_0x4c98a1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c98a1([0x76,0x69,0x65,0x77])][_0x4c98a1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c98a1([0x61,0x75,0x74,0x6f]),_0x1d25ee[_0x4c98a1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4c98a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c98a1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4c98a1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4c98a1([0x6f,0x6b])});}}class k extends _0x2f905d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xed9c5b){if(super(_0xed9c5b),!this['editor']['config']['get']('revisionHistory'))throw new _0xde607a('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4d813a=>this['_showRevisionViewer']({..._0x4d813a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x415b4f=>this['_closeRevisionViewer'](_0x415b4f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x471e6b=>this['_restoreRevision'](_0x471e6b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2a6d7a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2a6d7a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5566a0){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5566a0);}['getRevision'](_0x531021){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x531021);}['getRevisions'](_0x4341ac){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4341ac||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1f8479=this['editor'],_0x4fa1cf=_0x429e08(_0x1f8479,p),_0x5dcf1b=_0x1f8479['plugins']['get']('RevisionTracker'),_0x1116fa=_0x1f8479['plugins']['get']('Users')['users'];return _0x4fa1cf['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4fa1cf['lazyRoots'],(_0x4fa1cf['plugins']['push'](bt,d,w,class extends _0x2f905d{static get['requires'](){return[d,'Users'];}['init'](){const _0x4ffd6c=this['editor']['plugins']['get']('Users');for(const _0x407e97 of _0x1116fa)_0x407e97['isAnonymous']||_0x4ffd6c['getUser'](_0x407e97['id'])||_0x4ffd6c['addUser'](_0x407e97);const _0x5e7e06=_0x5dcf1b['repository']['getRevisions']();let _0x570aed=null;const _0x4f6520=this['editor']['plugins']['get']('RevisionViewer');_0x4f6520['adapter']=_0x5dcf1b['adapter'],_0x4f6520['bind']('isEnabled')['to'](_0x5dcf1b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1f8479,'isReadOnly',_0x58744b=>!_0x58744b);for(const _0x2b63ba of _0x5e7e06){const _0x130b7c=null===_0x2b63ba['creator'];if(_0x130b7c&&_0x2b63ba['toVersion']===_0x2b63ba['fromVersion'])continue;const _0x5232fc=_0x2b63ba['toJSON']();_0x4f6520['addRevisionData'](_0x5232fc,(_0x3f7a99,_0x13b642,_0x2d82b3)=>{if(_0x130b7c){if(_0x570aed)_0x570aed['_update'](_0x3f7a99,_0x13b642);else{if(!_0x13b642){const _0x5c34b8=_0x2d82b3['toJSON']();_0x5c34b8['id']=_0x5a02a9(),_0x5dcf1b['saveRevision'](_0x5c34b8,_0x2d82b3['toVersion'])['then'](_0x4884b9=>{_0x570aed=_0x4884b9;});}}}else _0x2b63ba['_update'](_0x3f7a99,_0x13b642);});}}},g),_0x4fa1cf);}['_enhanceShowRevisionViewerCallback'](){const _0x2b5511=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x354ac0=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x228576=this['editor']['plugins']['get']('Autosave');await _0x228576['save']();}else await _0x354ac0['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1a1c98=this['editor']['plugins']['get']('Dialog');_0x1a1c98['isOpen']&&_0x1a1c98['hide']();}const _0x5be579=this['_getRevisionViewerEditorConfig']();return _0x2b5511(_0x5be579)['then'](_0x4482e6=>{return(this['_viewerEditor']=_0x4482e6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4482e6;})['catch'](_0x4af2a8=>(console['error'](_0x4af2a8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xad186a=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'](),_0xad186a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4d80fa=this['editor']['plugins']['get']('Annotations');_0x4d80fa['refreshVisibility'](),_0x4d80fa['refreshPositioning']();}})));}['_showRevisionViewer'](_0x181bbf){const _0x2efc2a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x36e24d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x23fe00=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x23fe00,_0x181bbf)['then'](_0x1ef616=>(_0x36e24d['style']['display']='block',_0x2efc2a['style']['display']='none',_0x1ef616));}['_closeRevisionViewer'](_0x227a53){const _0x2c6168=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2c6168['style']['display']='',_0x227a53['destroy']();}async['_restoreRevision'](_0x185c05){const _0x5a2334=this['editor'],_0x54f87d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x50a34d=_0x5a2334['plugins']['get']('RevisionTracker'),_0x63e58d=_0x54f87d['repository']['getRevision'](_0x185c05);let _0x2e1ae4,_0x367f95,_0x1754a8;try{_0x2e1ae4=await _0x54f87d['getRevisionData'](_0x63e58d),_0x367f95=await _0x54f87d['getRevisionRootsAttributes'](_0x63e58d);}catch(_0x4f00b6){return void console['error'](_0x4f00b6);}_0x5a2334['model']['change'](_0x27ef23=>{for(const _0x5e85f6 of Array['from'](_0x5a2334['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x27ef23['removeMarker'](_0x5e85f6);}),_0x54f87d['isReady']=!0x1,_0x5a2334['model']['enqueueChange'](_0x17c590=>{_0x17c590['setSelection'](null),_0x17c590['removeSelectionAttribute'](_0x5a2334['model']['document']['selection']['getAttributeKeys']());const _0xd062d7=Object['keys'](_0x2e1ae4);for(const _0x3ae650 of _0x5a2334['model']['document']['roots'])'$graveyard'!=_0x3ae650['rootName']&&_0x3ae650['isAttached']()&&!_0xd062d7['includes'](_0x3ae650['rootName'])&&_0x17c590['detachRoot'](_0x3ae650);for(const _0x13afd8 of _0xd062d7){let _0x40645b=_0x5a2334['model']['document']['getRoot'](_0x13afd8);_0x40645b&&_0x40645b['isAttached']()||(_0x40645b=_0x17c590['addRoot'](_0x13afd8));const _0xb93acf=_0x367f95[_0x13afd8],_0x2954d7=Object['keys'](_0xb93acf),_0x32bbbc=_0x2e1ae4[_0x13afd8];for(const _0xa5a632 of _0x40645b['getAttributeKeys']())_0x2954d7['includes'](_0xa5a632)||_0x17c590['removeAttribute'](_0xa5a632,_0x40645b);for(const _0x2a1185 of _0x2954d7)_0x17c590['setAttribute'](_0x2a1185,_0x367f95[_0x13afd8][_0x2a1185],_0x40645b);_0x17c590['remove'](_0x17c590['createRangeIn'](_0x40645b)),_0x17c590['insert'](_0x5a2334['data']['parse'](_0x32bbbc,_0x40645b),_0x40645b,0x0);}});const _0x43a7b8=m(_0x5a2334['locale'],'Restored');if(_0x63e58d['name'])_0x1754a8=-0x1==_0x63e58d['name']['indexOf'](_0x43a7b8)?_0x43a7b8+':\x20'+_0x63e58d['name']:_0x63e58d['name'];else _0x1754a8=_0x43a7b8+':\x20'+(_0x63e58d['createdAt']['toLocaleDateString'](_0x5a2334['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x63e58d['createdAt']['toLocaleTimeString'](_0x5a2334['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x50a34d['saveRevision']({'name':_0x1754a8}),_0x54f87d['isReady']=!0x0,_0x5a2334['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};