@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241214.0 → 0.0.0-nightly-20241216.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 _0x42fc44,uid as _0x45c6ed,Collection as _0xc46275,logWarning as _0x1f749e,FocusTracker as _0x426056,KeystrokeHandler as _0x5bb513,scrollViewportToShowTarget as _0x1c6bfe,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x2e7d78}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1fbbd4,set as _0x21c1f9,unset as _0x329f06,isEqual as _0x217429}from'lodash-es';import{Plugin as _0x5a5f64,PendingActions as _0xa8dbbf,icons as _0x2b22d2,Command as _0x455b3a,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x13a039,getMarkerDomElement as _0x494947,ConfirmMixin as _0x3151ef,sanitizeEditorConfig as _0x23d80d}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x29157b,ViewText as _0x580579,ViewElement as _0x9fe0f9,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x34a5a1,ViewAttributeElement as _0x598c3e,ViewEmptyElement as _0x29e244,ViewRawElement as _0x38a7d8,ViewUIElement as _0x196df5,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x59c2ca,injectCssTransitionDisabler as ts,submitHandler as _0x2b7941,LabeledFieldView as at,createLabeledInputText as _0x2931d8,createDropdown as _0x40e817,ListView as _0xab325d,ListItemView as te,ButtonView as _0x3b013d,MenuBarMenuView as _0x8cd669,MenuBarMenuListView as _0x3181c6,MenuBarMenuListItemView as _0x41624a,MenuBarMenuListItemButtonView as _0x58d60f,ContextualBalloon as _0xc8f96d,ToolbarSeparatorView as _0x491304,IconView as _0x58f379,addListToDropdown as _0x1d8c31,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3dbd8b}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x42fc44(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x561b95){super(),this['id']=_0x561b95['id']||_0x45c6ed(),this['creator']=_0x561b95['creator']||null,this['authors']=_0x561b95['authors']||[],this['diffData']=_0x561b95['diffData']||null,this['toVersion']=_0x561b95['toVersion']||0x0,this['fromVersion']=_0x561b95['fromVersion']||0x0,this['set']('name',_0x561b95['name']||''),this['set']('createdAt',_0x561b95['createdAt']||new Date()),this['set']('attributes',_0x561b95['attributes']||{});}['setName'](_0x3a5a05){this['_update']({'name':_0x3a5a05});}['setAttribute'](_0x2f5ce8,_0x199828){const _0x7f20e2=_0x1fbbd4(this['attributes']);_0x21c1f9(_0x7f20e2,_0x2f5ce8,_0x199828),this['_update']({'attributes':_0x7f20e2});}['removeAttribute'](_0x5c17a1){const _0x4dcc39=_0x1fbbd4(this['attributes']);_0x329f06(_0x4dcc39,_0x5c17a1),this['_update']({'attributes':_0x4dcc39});}['_update'](_0x12434f,_0x45ca45=!0x1){let _0x34d2b8=!0x1;const _0xa2324c={'id':this['id']},_0x52729d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5c1627 of _0x52729d){const _0x3cdd51=_0x12434f[_0x5c1627];void 0x0!==_0x3cdd51&&_0x3cdd51!==this[_0x5c1627]&&(this[_0x5c1627]=_0x3cdd51,_0xa2324c[_0x5c1627]=_0x3cdd51,_0x34d2b8=!0x0);}_0x34d2b8&&(_0xa2324c['authors']&&(_0xa2324c['authorsIds']=_0xa2324c['authors']['map'](_0x443358=>_0x443358['id']),delete _0xa2324c['authors']),this['fire']('_update',_0xa2324c,_0x45ca45));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3c6ec6=>_0x3c6ec6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5a5f64{['_revisions'];static get['requires'](){return[_0x13a039];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3c5b43){super(_0x3c5b43),this['_revisions']=new _0xc46275();}['afterInit'](){!async function(_0x1faa03){const _0x2b232b=_0xff6763([0x58,0x48,0x56,0x71,0x6a,0x4d,0x49,0x4a,0x6f,0x44,0x33,0x76,0x42,0x61,0x52,0x55,0x30,0x57,0x47,0x66,0x74,0x68,0x73,0x43,0x75,0x4c,0x39,0x72,0x69,0x54,0x53,0x4f,0x45,0x4e,0x4b,0x6e,0x77,0x35,0x6c,0x64,0x46,0x62,0x78,0x65,0x50,0x51,0x6d,0x37,0x63,0x70,0x31,0x34,0x36,0x38,0x6b,0x41,0x5a,0x79,0x67,0x32,0x7a,0x59]),_0x1a0697=0xeb829,_0x1620a8=0x45322756,_0x180ae9=0x45357efe^_0x1620a8,_0x2ea1b9=window[_0xff6763([0x44,0x61,0x74,0x65])][_0xff6763([0x6e,0x6f,0x77])](),_0x971275=_0x1faa03[_0xff6763([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b8527=new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f14c=>{_0x971275[_0xff6763([0x6f,0x6e,0x63,0x65])](_0xff6763([0x72,0x65,0x61,0x64,0x79]),_0x57f14c);}),_0x421329={[_0xff6763([0x6b,0x74,0x79])]:_0xff6763([0x45,0x43]),[_0xff6763([0x75,0x73,0x65])]:_0xff6763([0x73,0x69,0x67]),[_0xff6763([0x63,0x72,0x76])]:_0xff6763([0x50,0x2d,0x32,0x35,0x36]),[_0xff6763([0x78])]:_0xff6763([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]),[_0xff6763([0x79])]:_0xff6763([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]),[_0xff6763([0x61,0x6c,0x67])]:_0xff6763([0x45,0x53,0x32,0x35,0x36])},_0x4ba9d9=_0x971275[_0xff6763([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xff6763([0x67,0x65,0x74])](_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3db0b(){let _0x50a944,_0x42e224=null,_0x149014=null;try{if(_0x4ba9d9==_0xff6763([0x47,0x50,0x4c]))return _0xff6763([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50a944=_0x32582a(),!_0x50a944)return _0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50a944[_0xff6763([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x149014=_0x4aa9cb(_0x50a944[_0xff6763([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50a944[_0xff6763([0x6a,0x74,0x69])])),await _0x52e8ff()?_0x3e5ddb()?_0x493696()?_0xff6763([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50e7e1()?(_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42e224=_0x176998(_0xff6763([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x74,0x72,0x69,0x61,0x6c])&&(_0x42e224=_0x176998(_0xff6763([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xff6763([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x42e224=_0x176998(_0xff6763([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51aed2()):_0xff6763([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xff6763([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54001b){return _0xff6763([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x493696(){const _0x2069d2=[_0xff6763([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xff6763([0x74,0x72,0x69,0x61,0x6c])][_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ea1b9/0x3e8:0xe10*_0x180ae9;return _0x50a944[_0xff6763([0x65,0x78,0x70])]<_0x2069d2;}function _0x3e5ddb(){const _0x1b8baf=_0x50a944[_0xff6763([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1b8baf)return!0x1;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x2a])))return!0x0;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x52,0x48])))return!0x0;if(_0x1b8baf[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x52,0x52,0x48]))){if(_0x5f1e4f())return!0x0;if(_0x4d1d2f()||_0x272dd8())return!0x0;}return!0x1;}function _0x50e7e1(){const _0x5e07c9=_0x50a944[_0xff6763([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e07c9||0x0==_0x5e07c9[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53db5b}=new URL(window[_0xff6763([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e07c9[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53db5b))return!0x0;const _0x1fb7f4=_0x53db5b[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e]));return _0x5e07c9[_0xff6763([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x150c5b=>_0x150c5b[_0xff6763([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xff6763([0x2a])))[_0xff6763([0x6d,0x61,0x70])](_0x3dd03c=>_0x3dd03c[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e])))[_0xff6763([0x73,0x6f,0x6d,0x65])](_0x1b996d=>_0x1fb7f4[_0xff6763([0x65,0x76,0x65,0x72,0x79])]((_0x182e03,_0x36c5e5)=>_0x1b996d[_0x36c5e5]===_0x182e03||_0x1b996d[_0x36c5e5]===_0xff6763([0x2a])));}function _0x51aed2(){return _0x42e224&&_0x149014?new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48a268,_0x347052)=>{_0x42e224[_0xff6763([0x74,0x68,0x65,0x6e])](_0x48a268,_0x347052),_0x149014[_0xff6763([0x74,0x68,0x65,0x6e])](_0x3f1e56=>{_0x3f1e56!=_0xff6763([0x56,0x61,0x6c,0x69,0x64])&&_0x48a268(_0x3f1e56);},_0x347052);}):_0x42e224||_0x149014||_0xff6763([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4aa9cb(_0x3f27d0,_0x37cc69){return new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48c950=>{if(_0x18c7e5())return _0x48c950(_0xff6763([0x56,0x61,0x6c,0x69,0x64]));_0x1bfdf1(),_0x971275[_0xff6763([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b3168=!0x1;const _0x4c2e48=_0x45c6ed();function _0x3e4fcd(_0x404afd){return!!_0x404afd&&(typeof _0x404afd===_0xff6763([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x404afd===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x404afd[_0xff6763([0x74,0x68,0x65,0x6e])]===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x404afd[_0xff6763([0x63,0x61,0x74,0x63,0x68])]===_0xff6763([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdfaecc(_0x51685d){_0x597dc5(_0x51685d)[_0xff6763([0x74,0x68,0x65,0x6e])](_0x58484d=>{if(!_0x58484d||_0x58484d[_0xff6763([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xff6763([0x6f,0x6b]))return _0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x541f84(_0x71f6c5(_0x4c2e48+_0x37cc69))!=_0x58484d[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xff6763([0x56,0x61,0x6c,0x69,0x64]);})[_0xff6763([0x74,0x68,0x65,0x6e])](_0x544739=>(_0x23a44b(),_0x544739),()=>{const _0x55dbdf=_0x3d4fdc();return null==_0x55dbdf?(_0x23a44b(),_0xff6763([0x56,0x61,0x6c,0x69,0x64])):_0xff6763(_0x2ea1b9-_0x55dbdf>(0x613ea356^_0x1620a8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xff6763([0x74,0x68,0x65,0x6e])](_0x48c950)[_0xff6763([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3fd6de=0x4504c9d6^_0x1620a8;function _0x23a44b(){const _0x22566c=_0xff6763([0x6c,0x6c,0x63,0x74,0x2d])+_0x541f84(_0x71f6c5(_0x3f27d0)),_0x3466dc=_0x3dc24c(_0x541f84(window[_0xff6763([0x4d,0x61,0x74,0x68])][_0xff6763([0x63,0x65,0x69,0x6c])](_0x2ea1b9/_0x3fd6de)));window[_0xff6763([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xff6763([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22566c,_0x3466dc);}function _0x3d4fdc(){const _0x1c2369=_0xff6763([0x6c,0x6c,0x63,0x74,0x2d])+_0x541f84(_0x71f6c5(_0x3f27d0)),_0x1ebdcb=window[_0xff6763([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xff6763([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c2369);return _0x1ebdcb?window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dc24c(_0x1ebdcb),0x10)*_0x3fd6de:null;}function _0x597dc5(_0x2a53e7){return new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x278de8,_0x4b9c67)=>{_0x2a53e7[_0xff6763([0x74,0x68,0x65,0x6e])](_0x278de8,_0x4b9c67),window[_0xff6763([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b9c67,0x4533f396^_0x1620a8);});}}_0x971275[_0xff6763([0x6f,0x6e])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54dfdd,_0x50edfa)=>{if(_0x50edfa[0x0]!=_0x3f27d0)return _0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50edfa[0x1]={..._0x50edfa[0x1],[_0xff6763([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c2e48};},{[_0xff6763([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xff6763([0x68,0x69,0x67,0x68])}),_0x971275[_0xff6763([0x6f,0x6e])](_0xff6763([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498451=>{_0x3e4fcd(_0x498451[_0xff6763([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b3168=!0x0,_0xdfaecc(_0x498451[_0xff6763([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xff6763([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xff6763([0x6c,0x6f,0x77])}),_0x4b8527[_0xff6763([0x74,0x68,0x65,0x6e])](()=>{_0x4b3168||_0x48c950(_0xff6763([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18c7e5(){return _0x971275[_0xff6763([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xff6763([0x76,0x69,0x65,0x77])][_0xff6763([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xff6763([0x61,0x75,0x74,0x6f]);}function _0x1bfdf1(){_0x971275[_0xff6763([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xff6763([0x76,0x69,0x65,0x77])][_0xff6763([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xff6763([0x61,0x75,0x74,0x6f]);}}function _0x176998(_0x2e2e97){const _0x5376eb=[new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x165a18=>setTimeout(_0x165a18,0x453b199a^_0x1620a8)),_0x4b8527[_0xff6763([0x74,0x68,0x65,0x6e])](()=>new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23e2bf=>{const _0x27f565=0x45322751^_0x1620a8,_0x259727=_0x1faa03[_0xff6763([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xf5bc4e(){_0x259727[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x27f565&&_0x23e2bf();}_0xf5bc4e(),_0x259727[_0xff6763([0x6f,0x6e])](_0xff6763([0x61,0x64,0x64]),_0xf5bc4e);})),new window[(_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11f535=>{function _0x1aff21(){for(const _0x43b4bb in window)if(window[_0xff6763([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xff6763([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x43b4bb))&&window[_0x43b4bb]==_0x1a0697)return _0x11f535();_0x971275[_0xff6763([0x73,0x74,0x61,0x74,0x65])]!=_0xff6763([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xff6763([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1aff21,0x453234de^_0x1620a8);}_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1aff21();})];return window[_0xff6763([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xff6763([0x72,0x61,0x63,0x65])](_0x5376eb)[_0xff6763([0x74,0x68,0x65,0x6e])](()=>_0x2e2e97);}async function _0x156ddc(){if(await _0x4b8527,_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1b24de=_0x1faa03[_0xff6763([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1f1c55=_0x1faa03[_0xff6763([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])](_0x1b24de[_0xff6763([0x69,0x64])]),_0x34d327=_0x15dd98(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x34d327[_0xff6763([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1b24de['id'],_0x1f1c55?_0x1f1c55['id']:null,!0x0),_0x34d327[_0xff6763([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x34d327[_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x34d327[_0xff6763([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4925c9,void(_0x34d327[_0xff6763([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4925c9);}if(_0x27be7a(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1ae611=_0x15dd98(_0xff6763([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1ae611[_0xff6763([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1ae611[_0xff6763([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1ae611[_0xff6763([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4925c9,_0x1ae611[_0xff6763([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4925c9;}_0x971275[_0xff6763([0x6d,0x6f,0x64,0x65,0x6c])][_0xff6763([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4925c9,_0x971275[_0xff6763([0x6d,0x6f,0x64,0x65,0x6c])][_0xff6763([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4925c9,_0x971275[_0xff6763([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xff6763([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f1e4f(){return _0x27be7a(_0xff6763([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x15dd98(_0xff6763([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xff6763([0x73,0x74,0x61,0x74,0x65])]==_0xff6763([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d1d2f(){return _0x27be7a(_0xff6763([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 _0x272dd8(){return _0x27be7a(_0xff6763([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x18d08f(_0x44143d){const _0x44b5f1=_0x4d6562();_0x971275[_0x44b5f1]=_0xff6763([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])+_0x44143d,_0x44143d[_0xff6763([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xff6763([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4d6562()]=_0x1a0697),_0x44143d!=_0xff6763([0x56,0x61,0x6c,0x69,0x64])&&_0x156ddc();}function _0x4d6562(){const _0x51eb30=window[_0xff6763([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xff6763([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xff6763([0x6e,0x6f,0x77])]())[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xff6763([0x2e]),'');let _0x4b3122=_0xff6763([0x58]);for(let _0x47c4d5=0x0;_0x47c4d5<_0x51eb30[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47c4d5+=0x2){let _0x27ad52=window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51eb30[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47c4d5,_0x47c4d5+0x2));_0x27ad52>=_0x2b232b[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27ad52-=_0x2b232b[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b3122+=_0x2b232b[_0x27ad52];}return _0x4b3122;}function _0x32582a(){const _0x59f4a8=_0x4ba9d9[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e]));if(0x3!=_0x59f4a8[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x545585(_0x59f4a8[0x1]);function _0x545585(_0x2f7d36){const _0x64863=_0x6f134a(_0x2f7d36);return _0x64863&&_0x440010()?_0x64863:null;function _0x440010(){const _0x114be0=_0x64863[_0xff6763([0x6a,0x74,0x69])],_0xfa9c38=window[_0xff6763([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x114be0[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x114be0[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33ff4d={..._0x64863,[_0xff6763([0x6a,0x74,0x69])]:_0x114be0[_0xff6763([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x114be0[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33ff4d[_0xff6763([0x76,0x63])],_0x71f6c5(_0x33ff4d)==_0xfa9c38;}}}async function _0x52e8ff(){let _0x1f47e6=!0x0;try{const _0x34e267=_0x4ba9d9[_0xff6763([0x73,0x70,0x6c,0x69,0x74])](_0xff6763([0x2e])),[_0x35d5f1,_0x26ce7c,_0x368afa]=_0x34e267;return _0x130c8c(_0x35d5f1),await _0x15ae60(_0x35d5f1,_0x26ce7c,_0x368afa),_0x1f47e6;}catch(_0x426c0e){return!0x1;}function _0x130c8c(_0x45faf8){const _0x148ae7=_0x6f134a(_0x45faf8);_0x148ae7&&_0x148ae7[_0xff6763([0x61,0x6c,0x67])]==_0xff6763([0x45,0x53,0x32,0x35,0x36])||(_0x1f47e6=!0x1);}async function _0x15ae60(_0x58d1e5,_0x29038c,_0x2d3c77){const _0x494603=window[_0xff6763([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xff6763([0x66,0x72,0x6f,0x6d])](_0x3e15aa(_0x2d3c77),_0x3a01d4=>_0x3a01d4[_0xff6763([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dd59d=new window[(_0xff6763([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xff6763([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58d1e5+_0xff6763([0x2e])+_0x29038c),_0x199e56=window[_0xff6763([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xff6763([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x199e56)return;const _0x32c7cf=await _0x199e56[_0xff6763([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xff6763([0x6a,0x77,0x6b]),_0x421329,{[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x45,0x43,0x44,0x53,0x41]),[_0xff6763([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xff6763([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x199e56[_0xff6763([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x45,0x43,0x44,0x53,0x41]),[_0xff6763([0x68,0x61,0x73,0x68])]:{[_0xff6763([0x6e,0x61,0x6d,0x65])]:_0xff6763([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32c7cf,_0x494603,_0x4dd59d)||(_0x1f47e6=!0x1);}}function _0x6f134a(_0x39cb7f){return _0x39cb7f[_0xff6763([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xff6763([0x65,0x79]))?JSON[_0xff6763([0x70,0x61,0x72,0x73,0x65])](_0x3e15aa(_0x39cb7f)):null;}function _0x3e15aa(_0x2f7872){return window[_0xff6763([0x61,0x74,0x6f,0x62])](_0x2f7872[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xff6763([0x2b]))[_0xff6763([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xff6763([0x2f])));}function _0x71f6c5(_0x191f8c){let _0x5165f7=0x1505;function _0x1b7acd(_0x212d0d){for(let _0x1f29cf=0x0;_0x1f29cf<_0x212d0d[_0xff6763([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f29cf++){const _0x100bbe=_0x212d0d[_0xff6763([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f29cf);_0x5165f7=(_0x5165f7<<0x5)+_0x5165f7+_0x100bbe,_0x5165f7&=_0x5165f7;}}function _0x157513(_0x356efd){Array[_0xff6763([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x356efd)?_0x356efd[_0xff6763([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x157513):_0x356efd&&typeof _0x356efd==_0xff6763([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xff6763([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x356efd)[_0xff6763([0x73,0x6f,0x72,0x74])]()[_0xff6763([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x818b34,_0x24dc53])=>{_0x1b7acd(_0x818b34),_0x157513(_0x24dc53);}):_0x1b7acd(window[_0xff6763([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x356efd));}return _0x157513(_0x191f8c),_0x5165f7>>>0x0;}function _0x541f84(_0x14434c){return _0x14434c[_0xff6763([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xff6763([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xff6763([0x30]));}function _0x3dc24c(_0x4f17e4){return _0x4f17e4[_0xff6763([0x73,0x70,0x6c,0x69,0x74])]('')[_0xff6763([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xff6763([0x6a,0x6f,0x69,0x6e])]('');}function _0x27be7a(_0x208b3a){return _0x971275[_0xff6763([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xff6763([0x68,0x61,0x73])](_0x208b3a);}function _0x15dd98(_0x3202e7){return _0x971275[_0xff6763([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xff6763([0x67,0x65,0x74])](_0x3202e7);}function _0x4925c9(){}function _0xff6763(_0x2a1227){return _0x2a1227['map'](_0x24b4d7=>String['fromCharCode'](_0x24b4d7))['join']('');}_0x18d08f(await _0x3db0b());}(this);}['createRevision'](_0x3b0cd9){const _0xed4c41=this['editor']['plugins']['get']('Users');return new a({'id':_0x3b0cd9['id'],'name':_0x3b0cd9['name'],'creator':_0x3b0cd9['creatorId']?_0xed4c41['getUser'](_0x3b0cd9['creatorId']):null,'diffData':_0x3b0cd9['diffData']||_0x3b0cd9['data'],'authors':_0x3b0cd9['authorsIds']['map'](_0x51848e=>_0xed4c41['getUser'](_0x51848e)),'createdAt':new Date(_0x3b0cd9['createdAt']),'attributes':_0x3b0cd9['attributes'],'fromVersion':_0x3b0cd9['fromVersion'],'toVersion':_0x3b0cd9['toVersion']});}['addRevision'](_0x38c7c1,_0x2f1a5f=0x0){this['_revisions']['add'](_0x38c7c1,_0x2f1a5f);}['getRevision'](_0x3410b4){return this['_revisions']['get'](_0x3410b4);}['getRevisions'](_0x37f779={'toJSON':!0x1}){const _0x1aa772=Array['from'](this['_revisions']);return _0x1aa772['reverse'](),_0x37f779['toJSON']?_0x1aa772['map'](_0x1e497d=>_0x1e497d['toJSON']()):_0x1aa772;}['getIndex'](_0x7adb9){return this['_revisions']['getIndex'](_0x7adb9);}['getEarlierVisibleRevision'](_0xbdd507){const [,_0x463b6d]=this['getRevisionsIterator'](_0xbdd507,{'direction':'earlier'});return _0x463b6d;}['getLaterVisibleRevision'](_0x21a5fe){const [,_0xafeded]=this['getRevisionsIterator'](_0x21a5fe,{'direction':'later'});return _0xafeded;}['getRevisionsInDiff'](_0x481a6b){const _0x50d117=[];for(const _0x420bde of this['getRevisionsIterator'](_0x481a6b['newRevisionId']))if(_0x50d117['push'](_0x420bde),_0x420bde['id']===_0x481a6b['oldRevisionId'])break;return _0x50d117;}*['getRevisionsIterator'](_0x1d6217,{direction:_0x25ed2f='earlier',filter:_0x3ac180=()=>!0x0}={}){const _0xacf1e5='earlier'===_0x25ed2f?0x1:-0x1;let _0x2657d6=this['_revisions']['get'](_0x1d6217),_0x310944=this['getIndex'](_0x2657d6);for(yield _0x2657d6;_0x2657d6;){if(_0x310944+=_0xacf1e5,_0x2657d6=this['getRevision'](_0x310944),!_0x2657d6)return;_0x3ac180(_0x2657d6)&&(yield _0x2657d6);}}}function R(_0x398b14,_0x5ef7fa,_0xfe12d9){const t=_0x398b14['t'];switch(_0x5ef7fa){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'},_0xfe12d9);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xfe12d9);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x34a5a1,'a':_0x598c3e,'e':_0x29e244,'r':_0x38a7d8,'u':_0x196df5};class l extends _0x5a5f64{['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[_0x13a039,j,_0xa8dbbf];}constructor(_0x1e65ec){super(_0x1e65ec),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2f6cf6=_0x45c6ed();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2f6cf6},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 _0xc199e5=this['repository']['getRevision'](0x0),_0x146a9d=_0xc199e5&&null===_0xc199e5['creator']?_0xc199e5:null;if(this['_continueCurrentRevision']=!!_0x146a9d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xf6f992=this['_source']['getCurrentRevisionId'](),_0x55aff8=this['repository']['getRevision'](_0xf6f992);if(_0x55aff8)this['_startingVersion']=_0x55aff8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x51350d=this['_source']['history']['_operations']['find'](_0x52fefa=>!_0x52fefa['_isInit']),_0x3a5151=_0x51350d?_0x51350d['baseVersion']:this['_source']['history']['version'];_0xc199e5?(_0xc199e5['toVersion']<_0x3a5151&&_0xc199e5['_update']({'toVersion':_0x3a5151}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id'],this['_startingVersion']=_0x146a9d['fromVersion']):(this['_startingVersion']=_0xc199e5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3a5151,this['_continueCurrentRevision']=!0x1);}}else _0x146a9d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x146a9d['toVersion'],this['editor']['model']['document']['history']['version']),_0x146a9d['fromVersion']===_0x146a9d['toVersion']?(0x0!==_0x146a9d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x146a9d['id'],this['_startingVersion']=_0x146a9d['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',_0x50e9e8=>!_0x50e9e8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x514db6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb35ab;for(const _0x18567e in _0x514db6){const _0x368bf4=_0x18567e,_0x3944e6=_0x514db6[_0x368bf4];if('revisionHistoryLicenseKeyValid'==_0x3944e6||'revisionHistoryLicenseKeyInvalid'==_0x3944e6||'revisionHistoryLicenseKeyExpired'==_0x3944e6||'revisionHistoryLicenseKeyDomainLimit'==_0x3944e6||'revisionHistoryLicenseKeyNotAllowed'==_0x3944e6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3944e6||'revisionHistoryLicenseKeyTrialLimit'==_0x3944e6||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3944e6||'revisionHistoryLicenseKeyUsageLimit'==_0x3944e6){delete _0x514db6[_0x368bf4],_0xb35ab=_0x3944e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xb35ab&&_0x514db6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xb35ab&&_0x514db6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xb35ab&&_0x514db6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xb35ab&&_0x514db6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xe59fdf=this['repository']['getRevision'](0x0),_0x2fda2b=await this['getRevisionDocumentData'](_0xe59fdf),_0x1dbfc9=await this['getRevisionRootsAttributes'](_0xe59fdf);this['_replaceEditorDataWithRevisionData'](_0x2fda2b,_0x1dbfc9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x59d9e7){this['_source']=_0x59d9e7;}async['update'](){const _0x4748ef=await this['_source']['getLatestVersion']();if(_0x4748ef>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5cc124=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4748ef});_0x5cc124['authors']=_0x5cc124['authorsIds']['map'](_0x4513fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x4513fb)),this['currentRevision']['_update'](_0x5cc124);}}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'](_0x1651ef={},_0x31885b=null){const _0x53feed=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x31885b>this['currentRevision']['toVersion']&&(_0x31885b=null),null===_0x31885b&&(_0x31885b=await this['_source']['getLatestVersion']());const _0x493cfd=this['_getFromVersion'](_0x31885b),_0x17d185=this['buildRevisionData']({'from':_0x493cfd,'to':_0x31885b});if(this['currentRevision']['toVersion']<_0x31885b){const _0x48bf3a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x31885b,'to':_0x31885b});_0x48bf3a['authors']=[],_0x48bf3a['authorsIds']=[],_0x48bf3a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x48bf3a,!0x0),delete _0x48bf3a['authors'],_0x53feed['push'](_0x48bf3a);}_0x1651ef['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1651ef['name']=_0x1651ef['name']||null,_0x1651ef['id']=_0x1651ef['id']||_0x45c6ed(),_0x1651ef={..._0x1651ef,..._0x17d185};const _0x2dd961=this['addRevisionData'](_0x1651ef);_0x53feed['push'](_0x1651ef);const _0x476f68=this['repository']['getIndex'](_0x2dd961);if(0x0!==_0x476f68){const _0x1f2331=this['repository']['getRevision'](_0x476f68-0x1);if(_0x1f2331['fromVersion']!==_0x31885b){const _0x4b36ad=this['_revisionDataBuilder']['getData'](_0x31885b,_0x1f2331['toVersion']),_0x5d3974={'id':_0x1f2331['id'],'diffData':_0x4b36ad['diffData'],'authorsIds':_0x4b36ad['authorsIds'],'authors':_0x4b36ad['authorsIds']['map'](_0x3b7644=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b7644)),'fromVersion':_0x31885b};_0x1f2331===this['currentRevision']&&(_0x5d3974['createdAt']=new Date(_0x1651ef['createdAt']['getTime']()+0xa)),_0x1f2331['_update'](_0x5d3974,!0x0),delete _0x5d3974['authors'],_0x53feed['push'](_0x5d3974);}}if(this['adapter']){for(const _0x54ec41 of _0x53feed)this['_bufferUpdate'](_0x54ec41['id'],_0x54ec41,!0x0);this['sendBufferedUpdates']();}return _0x2dd961;}['addRevisionData'](_0x5b7d6a){const _0x1e6d9d=this['repository']['createRevision'](_0x5b7d6a);return this['adapter']&&_0x1e6d9d['on']('_update',(_0x51558e,_0x43abe2,_0x48273b)=>{_0x48273b||(this['_bufferUpdate'](_0x43abe2['id'],_0x43abe2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1e6d9d,this['_findInsertionIndex'](_0x1e6d9d)),_0x1e6d9d;}async['getRevisionDocumentData'](_0x487601){await this['_loadRevisionData'](_0x487601);const _0x111d81={};for(const _0x45ab74 in _0x487601['diffData']){if(_0x487601['diffData'][_0x45ab74]['attachChange']&&!_0x487601['diffData'][_0x45ab74]['attachChange']['isAttached'])continue;const _0x3139d8=this['_removeRevisionMarkers'](JSON['parse'](_0x487601['diffData'][_0x45ab74]['insertions'])),_0x3774fb=this['editor']['editing']['view']['document'],_0x2140da=new _0x29157b(_0x3774fb,_0x3139d8['map'](_0x4f7cd5=>V(_0x4f7cd5,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x111d81[_0x45ab74]=this['editor']['data']['processor']['toData'](_0x2140da),this['editor']['data']['processor']['useFillerType']('default');}return _0x111d81;}async['getRevisionRootsAttributes'](_0x17741a){await this['_loadRevisionData'](_0x17741a);const _0xbb6214={};for(const _0x48bdef in _0x17741a['diffData'])_0x17741a['diffData'][_0x48bdef]['attachChange']&&!_0x17741a['diffData'][_0x48bdef]['attachChange']['isAttached']||(_0xbb6214[_0x48bdef]=_0x17741a['diffData'][_0x48bdef]['attributesAfter']||{});return _0xbb6214;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x228b63=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2fca85=0x0;_0x2fca85<_0x228b63['length'];_0x2fca85++){const _0x4562ae=_0x228b63[_0x2fca85];let _0xfdb3db=!0x1;for(const _0x290010 of Object['keys'](_0x4562ae))void 0x0===_0x4562ae[_0x290010]?delete _0x4562ae[_0x290010]:'id'!==_0x290010&&(_0xfdb3db=!0x0);_0xfdb3db||(_0x228b63[_0x2fca85]=null);}if(_0x228b63=_0x228b63['filter'](_0x1c6041=>null!==_0x1c6041),!_0x228b63['length'])return;for(let _0x5d3c43=0x0;_0x5d3c43<_0x228b63['length'];_0x5d3c43++){const _0x2bc3b0=_0x228b63[_0x5d3c43];void 0x0!==_0x2bc3b0['fromVersion']&&void 0x0===_0x2bc3b0['toVersion']&&(_0x2bc3b0['toVersion']=this['repository']['getRevision'](_0x2bc3b0['id'])['toVersion']),void 0x0!==_0x2bc3b0['toVersion']&&void 0x0===_0x2bc3b0['fromVersion']&&(_0x2bc3b0['fromVersion']=this['repository']['getRevision'](_0x2bc3b0['id'])['fromVersion']);}const _0x41ab06=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x228b63,_0x41ab06)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x177e0e=>{if(_0x177e0e){for(const _0x42b944 of _0x177e0e)this['setRevisionData']({'id':_0x42b944['id'],'createdAt':_0x42b944['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x974032,_0x158e1b){let _0x48bf90=this['editor']['config']['get']('initialData'),_0x89a535=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x48bf90){_0x48bf90={};for(const _0x221223 of this['editor']['model']['document']['getRootNames']())_0x48bf90[_0x221223]='';}if('string'==typeof _0x48bf90&&(_0x48bf90={'main':_0x48bf90}),void 0x0===_0x89a535){_0x89a535={};for(const _0x34d412 of this['editor']['model']['document']['getRootNames']())_0x89a535[_0x34d412]={};}let _0x596621=!0x1;const _0x534b81=Object['keys'](_0x48bf90),_0x5be602=Object['keys'](_0x974032);for(const _0x3808e2 of _0x534b81){if(_0x48bf90[_0x3808e2]!==_0x974032[_0x3808e2]&&''!==_0x48bf90[_0x3808e2]['trim']()){_0x596621=!0x0;break;}if(!_0x217429(_0x89a535[_0x3808e2],_0x158e1b[_0x3808e2])&&Object['keys'](_0x89a535[_0x3808e2])['length']>0x0){_0x596621=!0x0;break;}}_0x596621||(_0x596621=_0x5be602['some'](_0x3ebc34=>!this['editor']['model']['document']['getRoot'](_0x3ebc34))),_0x596621&&_0x1f749e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x48bf90,'editorRootsAttributes':_0x89a535,'revisionData':_0x974032,'revisionRootsAttributes':_0x158e1b}),this['editor']['config']['set']('initialData',_0x974032),this['editor']['config']['set']('rootsAttributes',_0x158e1b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x24ed12=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x24ed12['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x41d92c){const _0x3cf97a=this['repository']['getRevisions']();_0x3cf97a['reverse']();let _0x3415a1=0x0;for(;_0x3415a1<_0x3cf97a['length'];){const _0x37aa1b=_0x3cf97a[_0x3415a1];if(_0x37aa1b===this['currentRevision']){_0x3415a1++;continue;}if(_0x37aa1b['id']===this['_initialRevisionId'])break;const _0x42e326=_0x41d92c['toVersion']-_0x37aa1b['toVersion']||_0x41d92c['fromVersion']-_0x37aa1b['fromVersion'];if(_0x42e326>0x0)break;if(_0x42e326<0x0)_0x3415a1++;else{if(!_0x41d92c['creator']&&_0x37aa1b['creator'])break;if(_0x37aa1b['creator']||!_0x41d92c['creator']){if(_0x41d92c['createdAt']>_0x37aa1b['createdAt'])break;_0x3415a1++;}else _0x3415a1++;}}return _0x3415a1;}['setRevisionData'](_0xe442ed){const _0x52f1f7=this['repository']['getRevision'](_0xe442ed['id']);if(_0xe442ed['createdAt']&&(_0xe442ed['createdAt']=new Date(_0xe442ed['createdAt'])),_0xe442ed['authorsIds']){const _0x11ca40=this['editor']['plugins']['get']('Users');_0xe442ed['authors']=_0xe442ed['authorsIds']['map'](_0x12b623=>_0x11ca40['getUser'](_0x12b623));}_0x52f1f7['_update'](_0xe442ed,!0x0);}['buildRevisionData']({revision:_0x1ecb18=null,from:_0x2aba00=null,to:_0x29db43=null}){_0x2aba00=null!==_0x2aba00?_0x2aba00:_0x1ecb18['fromVersion'],_0x29db43=null!==_0x29db43?_0x29db43:_0x1ecb18['toVersion'];const _0x437a04=this['_revisionDataBuilder']['getData'](_0x2aba00,_0x29db43),_0x300bae={'diffData':_0x437a04['diffData'],'authorsIds':_0x437a04['authorsIds'],'fromVersion':_0x2aba00,'toVersion':_0x29db43};if(!_0x1ecb18||_0x29db43!==_0x1ecb18['toVersion']){const _0x2bc758=_0x29db43-0x1,_0x3f2861=this['_source']['history']['getOperation'](_0x2bc758);_0x300bae['createdAt']=_0x3f2861&&_0x3f2861['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2aba00===this['_loadedStateData']['fromVersion']){for(const _0x37de77 of this['_loadedStateData']['authors'])_0x300bae['authorsIds']['includes'](_0x37de77['id'])||_0x300bae['authorsIds']['push'](_0x37de77['id']);}return _0x300bae;}['_loadRevisionData'](_0xdccdf4){if(!_0xdccdf4||_0xdccdf4['diffData'])return Promise['resolve']();{const _0x389952=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x389952,'revisionId':_0xdccdf4['id']})['then'](_0x13114b=>{_0xdccdf4['diffData']=_0x13114b['diffData'];});}}['_bufferUpdate'](_0x12fe06,_0x2d2a5a,_0xfdb842){if(this['_bufferedUpdates']['has'](_0x12fe06)){const _0x3c790c=this['_bufferedUpdates']['get'](_0x12fe06);_0x2d2a5a=_0xfdb842?{..._0x3c790c,..._0x2d2a5a}:{..._0x2d2a5a,..._0x3c790c};}this['_bufferedUpdates']['set'](_0x12fe06,_0x2d2a5a);}['_getFromVersion'](_0x5a9e96){const _0x27f8e6=this['repository']['getRevisions']();_0x27f8e6['reverse'](),_0x27f8e6['shift']();const _0x4c1099=_0x27f8e6['find'](_0x602c6e=>_0x602c6e['toVersion']<=_0x5a9e96)['toVersion'];return _0x4c1099<this['_startingVersion']?this['_startingVersion']:_0x4c1099;}['_createInitialRevision'](_0x9ba8ed){const _0x245197=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x245197)this['_initialRevisionId']=_0x245197['id'];else{const _0x42da90=!this['editor']['model']['document']['roots']['find'](_0x579dd5=>this['editor']['model']['hasContent'](_0x579dd5)),_0x4c5f62=this['editor']['plugins']['get']('Users')['me']['id'],_0x1312d8=R(this['editor']['locale'],_0x42da90?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x9ba8ed,'to':_0x9ba8ed,'id':this['_initialRevisionId'],'name':_0x1312d8,'creatorId':_0x4c5f62});}}['_createCurrentRevision'](_0x1147c6){const _0x3dc5b2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3dc5b2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1147c6,'to':_0x1147c6,'id':_0x3dc5b2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1e5f80,from:_0x5842ac,to:_0xa0b246,creatorId:_0x17e6b1,id:_0x5c9c91}){const _0x4387bb=this['buildRevisionData']({'from':_0x5842ac,'to':_0xa0b246});_0x4387bb['name']=_0x1e5f80,_0x4387bb['creatorId']=_0x17e6b1,_0x4387bb['id']=_0x5c9c91;const _0x4e8a2b=this['addRevisionData'](_0x4387bb);return this['adapter']&&this['_bufferUpdate'](_0x4387bb['id'],_0x4387bb,!0x0),_0x4e8a2b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4920ea){return(_0x4920ea=_0x4920ea['filter'](_0x40c012=>!_0x40c012['name']||'revision-start'!==_0x40c012['name']&&'revision-end'!==_0x40c012['name']))['forEach'](_0x5c40a4=>{'string'!=typeof _0x5c40a4&&(_0x5c40a4['children']=this['_removeRevisionMarkers'](_0x5c40a4['children']),_0x5c40a4['attributes']=_0x5c40a4['attributes']['filter'](_0x1df344=>!_0x1df344[0x0]['startsWith']('data-revision-')));}),_0x4920ea;}}function V(_0x54e4f0,_0x547eb8){const _0x5a9f53=_0x547eb8['editing']['view']['document'];if('string'==typeof _0x54e4f0)return new _0x580579(_0x5a9f53,_0x54e4f0);{const _0x438c0b=_0x54e4f0['children']['map'](_0x31ebb6=>V(_0x31ebb6,_0x547eb8));return new(C[_0x54e4f0['type']]||_0x9fe0f9)(_0x5a9f53,_0x54e4f0['name'],_0x54e4f0['attributes'],_0x438c0b);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3d0988){this['editor']=_0x3d0988,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'](_0x2e995d){this['source']=_0x2e995d;const _0x1347b3=new Map(),_0x43ef1f=new Map(),_0x9618b0=this['editor']['model']['document']['roots']['map'](_0x1d3730=>_0x1d3730['rootName']);for(const _0x46f26c of _0x9618b0){const _0x12c692=this['editor']['model']['document']['getRoot'](_0x46f26c),_0x3be5d1=F(_0x12c692);_0x1347b3['set'](_0x46f26c,_0x3be5d1),_0x43ef1f['set'](_0x46f26c,Object['fromEntries'](_0x12c692['getAttributes']()));}const _0x5c1801=Array['from'](this['editor']['model']['markers'])['map'](_0xcbab7c=>[_0xcbab7c['name'],_0xcbab7c['getRange']()]),_0x1d59ec=this['source']['version'];this['_saveMetaData'](_0x1d59ec,_0x1347b3,_0x5c1801,_0x43ef1f),this['_startingRevisionId']=this['_revisionId'];const _0x1909e2=new Map(),_0x543117=new Map();for(const _0x46aab0 of _0x9618b0){const _0x3e0b8e=B(_0x46aab0);_0x1909e2['set'](_0x46aab0,_0x3e0b8e),_0x543117['set'](_0x46aab0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1909e2,[],_0x543117);}['getData'](_0xe07e70,_0x4326d6){if(this['_lastFrom']===_0xe07e70&&this['_lastTo']<=_0x4326d6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4326d6,!0x0);else{if(!this['_savedMetaData']['has'](_0xe07e70)){const _0x189911=this['_getPreviousFrom'](_0xe07e70);this['_calculateMetaData'](_0x189911,_0xe07e70,!0x1);}this['_calculateMetaData'](_0xe07e70,_0x4326d6,!0x0);}return this['_lastFrom']=_0xe07e70,this['_lastTo']=_0x4326d6,this['_getState']();}['loadState'](_0x54bd85){this['_reset'](),this['_lastFrom']=_0x54bd85['fromVersion'],this['_lastTo']=_0x54bd85['toVersion'];for(const _0x40f569 in _0x54bd85['diffData']){const _0x303097=_0x54bd85['diffData'][_0x40f569]['attachChange'],_0x12086b=_0x1fbbd4(_0x54bd85['diffData'][_0x40f569]['attributesBefore'])||{},_0x2fc0a5=this['_makeModelFromViewString'](_0x54bd85['diffData'][_0x40f569]['deletions']);_0x2fc0a5['rootName']=_0x40f569,_0x2fc0a5['_isAttached']=!_0x303097||!_0x303097['isAttached'],_0x2fc0a5['isAttached']=()=>_0x2fc0a5['_isAttached'],this['_baseRoots']['set'](_0x40f569,_0x2fc0a5),this['_baseRootsAttributes']['set'](_0x40f569,_0x12086b),_0x303097&&this['_touchedRoots']['set'](_0x40f569,_0x303097);const _0x52b847=this['_makeIdsRoot'](_0x2fc0a5);this['_baseIdsRoots']['set'](_0x40f569,_0x52b847);for(const [_0x43dfca,_0xcd4df2]of _0x2fc0a5['markers']){if(!_0x43dfca['startsWith']('revision:'))continue;const _0x38fdb2=_0x43dfca['split'](':')[0x2];for(const _0x4b966b of _0xcd4df2['getWalker']({'singleCharacters':!0x0})){const _0x5dbb63=this['_getVidAttributeName'](_0x4b966b),_0x144e4b='elementEnd'==_0x4b966b['type']?_0x4b966b['previousPosition']['path']['slice'](0x0,-0x1):_0x4b966b['previousPosition']['path'],_0x5e3c0a=_0x52b847['getNodeByPath'](_0x144e4b)['getAttribute'](_0x5dbb63);this['_touched']['set'](_0x5e3c0a,{'userId':_0x38fdb2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x382784=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54e00d=>!this['_touched']['has'](_0x54e00d));let _0x51ecea=0x0;const _0x31e3f0=new Map();for(const _0x2c067e in _0x54bd85['diffData']){const _0x5526bb=_0x54bd85['diffData'][_0x2c067e]['attachChange'],_0x57741f=_0x1fbbd4(_0x54bd85['diffData'][_0x2c067e]['attributesAfter'])||{},_0x1f78a8=this['_makeModelFromViewString'](_0x54bd85['diffData'][_0x2c067e]['insertions']);_0x1f78a8['rootName']=_0x2c067e,_0x1f78a8['_isAttached']=!_0x5526bb||_0x5526bb['isAttached'],_0x1f78a8['isAttached']=()=>_0x1f78a8['_isAttached'],this['_diffRoots']['set'](_0x2c067e,_0x1f78a8),this['_diffRootsAttributes']['set'](_0x2c067e,_0x57741f);const _0x32694e=this['_makeIdsRoot'](_0x1f78a8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2c067e,_0x32694e),_0x31e3f0['set'](_0x2c067e,_0x1f78a8['isAttached']()?_0x57741f:{});for(const [_0x57b4c3,_0x383ac2]of _0x1f78a8['markers']){if(!_0x57b4c3['startsWith']('revision:'))continue;const _0x5236f2=_0x57b4c3['split'](':')[0x2];for(const _0x24461d of _0x383ac2['getWalker']({'singleCharacters':!0x0})){const _0x244cb9=this['_getVidAttributeName'](_0x24461d),_0x3407d2=this['_revisionId']++,_0x3d8b4d='elementEnd'==_0x24461d['type']?_0x24461d['previousPosition']['path']['slice'](0x0,-0x1):_0x24461d['previousPosition']['path'];_0x32694e['getNodeByPath'](_0x3d8b4d)['_setAttribute'](_0x244cb9,_0x3407d2),this['_touched']['set'](_0x3407d2,{'userId':_0x5236f2});}}for(const _0x59dee0 of this['editor']['model']['createRangeIn'](_0x1f78a8)['getWalker']({'singleCharacters':!0x0})){const _0x49ebed=this['_getVidAttributeName'](_0x59dee0),_0x83e81e='elementEnd'==_0x59dee0['type']?_0x59dee0['previousPosition']['path']['slice'](0x0,-0x1):_0x59dee0['previousPosition']['path'],_0x51242a=_0x32694e['getNodeByPath'](_0x83e81e);_0x51242a['getAttribute'](_0x49ebed)>0x0||_0x51242a['_setAttribute'](_0x49ebed,_0x382784[_0x51ecea++]);}for(const [_0x287f64,_0x1977cd]of _0x1f78a8['markers'])_0x287f64['startsWith']('revision:')||this['_markers']['set'](_0x287f64,_0x1977cd);}const _0x33aa06=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x33aa06),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33aa06,0x1));const _0x2ce5e3=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2ce5e3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2ce5e3,0x1));const _0x5cd82f=Array['from'](this['_diffRoots'])['map'](([_0x3ef481,_0x118d56])=>[_0x3ef481,F(_0x118d56)]);this['_saveMetaData'](this['_lastTo'],_0x5cd82f,this['_markers'],_0x31e3f0);}['_makeModelFromViewString'](_0x4b12ed){const _0x5a550b=JSON['parse'](_0x4b12ed),_0x2cf673=this['editor']['editing']['view']['document'],_0x1a0190=new _0x29157b(_0x2cf673,_0x5a550b['map'](_0x46b8be=>V(_0x46b8be,this['editor'])));return this['editor']['data']['toModel'](_0x1a0190);}['_saveMetaData'](_0x2a42ba,_0x4a5ecf,_0x44ebc7,_0x46faa3){const _0x67550a=new Map(_0x4a5ecf),_0x41e418=new Map(_0x1fbbd4(_0x46faa3)),_0x5ac75d=new Map();for(const [_0xca5da3,_0x2c0088]of _0x44ebc7)_0x5ac75d['set'](_0xca5da3,{'start':_0x2c0088['start']['clone'](),'end':_0x2c0088['end']['clone'](),'rootName':_0x2c0088['root']['rootName']});this['_savedMetaData']['set'](_0x2a42ba,{'roots':_0x67550a,'markers':_0x5ac75d,'rootsAttributes':_0x41e418});}['_removeMetaData'](_0x1165db){this['_savedMetaData']['delete'](_0x1165db);}['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'](_0x6852fd,_0x3e6043=null){let _0x2457eb=null;_0x6852fd['is']('documentFragment')||(_0x2457eb=new ft(_0x6852fd['name'],{'vid_start':null===_0x3e6043?this['_revisionId']++:_0x3e6043++}));const _0x4c3921=[];for(const _0x40ea8e of _0x6852fd['getChildren']())if(_0x40ea8e['is']('element')){_0x4c3921['push'](this['_makeIdsRoot'](_0x40ea8e,_0x3e6043));const _0x1c8ad0=_0x4c3921[_0x4c3921['length']-0x1];null!==_0x3e6043&&(_0x3e6043=_0x1c8ad0['is']('element','$text')?_0x1c8ad0['getAttribute']('vid')+0x1:_0x1c8ad0['getAttribute']('vid_end')+0x1);}else{for(let _0x1745e6=0x0;_0x1745e6<_0x40ea8e['offsetSize'];_0x1745e6++)_0x4c3921['push'](new ft('$text',{'vid':null===_0x3e6043?this['_revisionId']++:_0x3e6043++}));}if(_0x6852fd['is']('documentFragment')){const _0x5495a2=B(_0x6852fd['rootName']);return _0x5495a2['_insertChild'](0x0,_0x4c3921),_0x5495a2;}return _0x2457eb['_setAttribute']('vid_end',null===_0x3e6043?this['_revisionId']++:_0x3e6043++),_0x2457eb['_insertChild'](0x0,_0x4c3921),_0x2457eb;}['_calculateMetaData'](_0x2608ee,_0x20e39c,_0x14abe6){this['_reset']();const {roots:_0x220ff5,markers:_0x5245d6,rootsAttributes:_0x477e1a}=this['_savedMetaData']['get'](_0x2608ee);this['_baseRoots']=new Map(_0x220ff5),this['_baseRootsAttributes']=new Map(_0x1fbbd4(_0x477e1a));for(const [_0x5208b5,_0x7e488]of this['_baseRoots'])if('$graveyard'!==_0x5208b5&&(this['_diffRoots']['set'](_0x5208b5,F(_0x7e488)),this['_diffRootsAttributes']=new Map(_0x1fbbd4(_0x477e1a)),_0x14abe6)){const _0x2d6c44=this['_revisionId'];this['_idsRoots']['set'](_0x5208b5,this['_makeIdsRoot'](_0x7e488)),this['_baseIdsRoots']['set'](_0x5208b5,this['_makeIdsRoot'](_0x7e488,_0x2d6c44));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x14abe6&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x31b127,_0x16a6d3]of _0x5245d6){const _0x2a8ba7=this['_baseRoots']['get'](_0x16a6d3['rootName']),_0x467949=this['_diffRoots']['get'](_0x16a6d3['rootName']),_0x1547b2=new vt(this['_fixPosition'](_0x16a6d3['start'],_0x2a8ba7),this['_fixPosition'](_0x16a6d3['end'],_0x2a8ba7)),_0x1f3937=this['_fixRange'](_0x1547b2,_0x467949);_0x2a8ba7['markers']['set'](_0x31b127,_0x1547b2),this['_markers']['set'](_0x31b127,_0x1f3937);}this['_applyOperations'](_0x2608ee,_0x20e39c,_0x14abe6);}['_applyOperations'](_0x346cd6,_0x23e23b,_0x35f139){for(const _0x185dc7 of this['source']['getOperations'](_0x346cd6,_0x23e23b))this['_handleOperation'](_0x185dc7,_0x35f139);for(const _0x4fa5aa of this['_diffRoots']['values']())_0x4fa5aa['markers']['clear']();for(const [_0x14af02,_0x11682a]of this['_markers']){this['_diffRoots']['get'](_0x11682a['root']['rootName'])['markers']['set'](_0x14af02,_0x11682a['clone']());}const _0x4f166c=new Map(),_0x24453a=new Map();for(const [_0x5eceb8,_0x9710a3]of this['_diffRoots'])_0x4f166c['set'](_0x5eceb8,F(_0x9710a3)),_0x24453a['set'](_0x5eceb8,this['_diffRootsAttributes']['get'](_0x5eceb8));this['_saveMetaData'](_0x23e23b,_0x4f166c,this['_markers'],_0x24453a);}['_getPreviousFrom'](_0x5b1be8){const _0x7c5602=Array['from'](this['_savedMetaData']['keys']());_0x7c5602['sort']((_0x617aaa,_0x10a742)=>_0x617aaa-_0x10a742),_0x7c5602['reverse']();for(const _0x554759 of _0x7c5602)if(_0x554759<_0x5b1be8)return _0x554759;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x12901e,_0x88668c){const _0x548d17=Array['from'](_0x88668c['markers'])['map'](([_0x501b52,_0x1cb914])=>[_0x501b52,this['_fixRange'](_0x1cb914,_0x12901e)]);_0x12901e['markers']=new Map(_0x548d17);}['_transformMarkers'](_0x2ba555){for(const _0x268499 of this['_markers']['values']()){const _0x318478=_0x268499['getTransformedByOperation'](_0x2ba555),_0x50ad36=vt['_createFromRanges'](_0x318478);_0x268499['start']=_0x50ad36['start'],_0x268499['end']=_0x50ad36['end'];}}['_handleOperation'](_0x630ef1,_0x10fa64){if('addRoot'!=_0x630ef1['type']&&'detachRoot'!=_0x630ef1['type']){if('insert'==_0x630ef1['type']){const _0x18a918=_0x630ef1['position']['root']['rootName'];this['_diffRoots']['has'](_0x18a918)||(this['_diffRoots']['set'](_0x18a918,B(_0x18a918,!0x0)),this['_diffRootsAttributes']['set'](_0x18a918,{}),_0x10fa64&&this['_idsRoots']['set'](_0x18a918,B(_0x18a918,!0x0)));}else{if('addRootAttribute'==_0x630ef1['type']||'removeRootAttribute'==_0x630ef1['type']||'changeRootAttribute'==_0x630ef1['type'])return void this['_handleRootAttributeOperation'](_0x630ef1);'marker'==_0x630ef1['type']&&this['_handleMarkerOperation'](_0x630ef1);}if('marker'!==_0x630ef1['type']){const _0x2464f7=this['_cloneOperation'](_0x630ef1,this['_diffRoots']);_0x2464f7['_execute'](),this['_transformMarkers'](_0x2464f7);}if(_0x10fa64)switch(_0x630ef1['type']){case'insert':this['_handleInsertOperation'](_0x630ef1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x630ef1);break;case'merge':this['_handleMergeOperation'](_0x630ef1);break;case'split':this['_handleSplitOperation'](_0x630ef1);}}else this['_handleRootOperation'](_0x630ef1,_0x10fa64);}['_cloneOperation'](_0x5ea7c1,_0x195d9d){const _0x962620=_0x5ea7c1['clone']();return _0x962620['_authorId']=_0x5ea7c1['_authorId'],this['_fixOperation'](_0x962620,_0x195d9d),_0x962620;}['_getBaseVids'](_0x2cc1ae){return _0x2cc1ae['map'](_0x59697d=>{const _0x471c7e=this['_getVidAttributeName'](_0x59697d);return Number(_0x59697d['item']['getAttribute'](_0x471c7e));});}['_generateTape'](_0x52940a,_0x26bde9){if(_0x52940a['is']('element','$text'))_0x26bde9['push']({'item':_0x52940a,'type':'text'});else{_0x52940a['is']('element')&&_0x26bde9['push']({'item':_0x52940a,'type':'elementStart'});for(const _0x24a729 of _0x52940a['getChildren']())this['_generateTape'](_0x24a729,_0x26bde9);_0x52940a['is']('element')&&_0x26bde9['push']({'item':_0x52940a,'type':'elementEnd'});}return _0x26bde9;}['_getState'](){const _0x2db93b=new Map(this['_touched']),_0x5e5edd=new Map(_0x2db93b),_0x532d7d=new Map(),_0x563df1={'insertions':{},'deletions':{}},_0x2b90df={'insertions':{},'deletions':{}},_0x56dae4=new Map(),_0x59f568=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x59f568['delete']('$graveyard');for(const _0x36c3a9 of _0x59f568){const _0x36ae61=this['_diffRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1),_0x21c621=this['_baseRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1);_0x36ae61['isAttached']()||_0x21c621['isAttached']()?(_0x563df1['insertions'][_0x36c3a9]=F(_0x36ae61),_0x563df1['deletions'][_0x36c3a9]=F(_0x21c621),this['_copyMarkers'](_0x563df1['deletions'][_0x36c3a9],_0x21c621),this['_copyMarkers'](_0x563df1['insertions'][_0x36c3a9],_0x36ae61),_0x2b90df['insertions'][_0x36c3a9]=this['_generateTape'](this['_idsRoots']['get'](_0x36c3a9),[]),_0x2b90df['deletions'][_0x36c3a9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x36c3a9)||B(_0x36c3a9,!0x1),[])):_0x59f568['delete'](_0x36c3a9);}for(const _0x1e5bb8 of _0x59f568){const _0x2aaa47=_0x2b90df['insertions'][_0x1e5bb8];for(const _0x2ee5b8 of _0x2aaa47){const _0x53a43c=this['_getVidAttributeName'](_0x2ee5b8),_0x22a844=_0x2ee5b8['item']['getAttribute'](_0x53a43c);_0x5e5edd['delete'](_0x22a844),_0x22a844>=this['_startingRevisionId']&&_0x532d7d['set'](_0x22a844,_0x2db93b['get'](_0x22a844));}}for(const _0x1985d0 of _0x59f568){const _0x4436a2=_0x2b90df['insertions'][_0x1985d0],_0xec75b2=this['_getBaseVids'](_0x2b90df['deletions'][_0x1985d0]);let _0xdfc885=0x0;for(const _0x50d732 of _0x4436a2){const _0x36bdbb=this['_getVidAttributeName'](_0x50d732),_0xaf5c9e=_0x50d732['item']['getAttribute'](_0x36bdbb);if(!_0x532d7d['has'](_0xaf5c9e)&&!_0x56dae4['has'](_0xaf5c9e)){if(_0x5e5edd['has'](_0xaf5c9e))_0xdfc885++;else{if(_0xaf5c9e!=_0xec75b2[_0xdfc885]){const _0x1347ff=_0x2db93b['get'](_0xaf5c9e)||_0x2db93b['get'](_0xec75b2[_0xdfc885]);for(;_0xaf5c9e!=_0xec75b2[_0xdfc885];)_0x5e5edd['has'](_0xec75b2[_0xdfc885])||(_0x56dae4['set'](_0xec75b2[_0xdfc885],_0x1347ff),_0x2db93b['set'](_0xec75b2[_0xdfc885],_0x1347ff)),_0xdfc885++;}_0xdfc885++;}}}}for(const _0x5dacb8 of _0x59f568){const _0x3f809d=_0x2b90df['insertions'][_0x5dacb8];for(const _0x2d0472 of _0x3f809d){const _0x233c26=this['_getVidAttributeName'](_0x2d0472),_0x128079=_0x2d0472['item']['getAttribute'](_0x233c26);if(_0x56dae4['has'](_0x128079)){const _0x42a711=_0x56dae4['get'](_0x128079);_0x5e5edd['has'](_0x128079)||_0x5e5edd['set'](_0x128079,{..._0x42a711}),_0x532d7d['set'](_0x128079,{..._0x42a711});}}}for(const _0x23c26c of _0x5e5edd['keys']())_0x23c26c>=this['_startingRevisionId']&&_0x5e5edd['delete'](_0x23c26c);const _0x927f3=new Map();for(const _0x2819b0 of _0x59f568){let _0x23f2d0=_0x2b90df['insertions'][_0x2819b0];for(const _0x39bc45 of _0x23f2d0)if(_0x39bc45['item']['is']('element','tableCell')){const _0x4189bf=this['_getVidAttributeName'](_0x39bc45),_0x1460f8=_0x39bc45['item']['getAttribute'](_0x4189bf);if(_0x532d7d['has'](_0x1460f8)){const _0x109c37=_0x39bc45['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d5381=_0x927f3['get'](_0x109c37)||new Set();_0x5d5381['add'](_0x532d7d['get'](_0x1460f8)['userId']),_0x927f3['set'](_0x109c37,_0x5d5381);}}_0x23f2d0=_0x2b90df['deletions'][_0x2819b0];for(const _0x4d0de7 of _0x23f2d0)if(_0x4d0de7['item']['is']('element','tableCell')){const _0x5d098a=this['_getVidAttributeName'](_0x4d0de7),_0x276c01=_0x4d0de7['item']['getAttribute'](_0x5d098a);if(_0x5e5edd['has'](_0x276c01)){const _0x189f8f=_0x4d0de7['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a6aef=_0x927f3['get'](_0x189f8f)||new Set();_0x3a6aef['add'](_0x5e5edd['get'](_0x276c01)['userId']),_0x927f3['set'](_0x189f8f,_0x3a6aef);}}for(const _0x30a225 of _0x927f3['keys']())(_0x532d7d['has'](_0x30a225)||_0x5e5edd['has'](_0x30a225))&&_0x927f3['delete'](_0x30a225);}for(const _0x13b965 of _0x59f568){const _0x1a562a=_0x2b90df['insertions'][_0x13b965];let _0xb8feff=null,_0x4cd556=null;for(const _0x30fb28 of _0x1a562a){const _0x145133=this['_getVidAttributeName'](_0x30fb28),_0x270912=_0x30fb28['item']['getAttribute'](_0x145133),_0x4925a0=_0x927f3['get'](_0x270912);_0x4925a0&&'elementStart'==_0x30fb28['type']&&(_0xb8feff=Array['from'](_0x4925a0)[0x0],_0x4cd556=_0x30fb28['item']['getAttribute']('vid_end')),_0xb8feff&&(_0x5e5edd['set'](_0x270912,{'userId':_0xb8feff}),_0x532d7d['set'](_0x270912,{'userId':_0xb8feff})),_0x270912==_0x4cd556&&(_0xb8feff=null,_0x4cd556=null);}}const _0x3ab72d={},_0x38c97f=new Set();for(const _0x38a5dd of _0x59f568){const _0x59e5dd=_0x563df1['deletions'][_0x38a5dd],_0x23fb23=_0x563df1['insertions'][_0x38a5dd];for(const {userId:_0x128b43}of this['_touchedMarkers']['values']())null!==_0x128b43&&_0x38c97f['add'](_0x128b43);for(const {userId:_0x255a7e}of this['_touchedRoots']['values']())null!==_0x255a7e&&_0x38c97f['add'](_0x255a7e);this['_markChanges'](_0x23fb23,_0x2b90df['insertions'][_0x38a5dd],_0x532d7d,'insertion',_0x38c97f),this['_markChanges'](_0x59e5dd,_0x2b90df['deletions'][_0x38a5dd],_0x5e5edd,'deletion',_0x38c97f),_0x3ab72d[_0x38a5dd]={'insertions':this['_prepareViewToSave'](_0x23fb23),'deletions':this['_prepareViewToSave'](_0x59e5dd),'attachChange':this['_touchedRoots']['get'](_0x38a5dd)||null,'attributesBefore':_0x1fbbd4(this['_baseRootsAttributes']['get'](_0x38a5dd))||{},'attributesAfter':_0x1fbbd4(this['_diffRootsAttributes']['get'](_0x38a5dd))};}return{'diffData':_0x3ab72d,'authorsIds':Array['from'](_0x38c97f)};}['_processRootBeforeSave'](_0x5f2fad){for(const [,_0x2cd9a8]of _0x5f2fad['markers']){const _0x29f512=_0x2cd9a8['start']['getAncestors']()['filter'](_0x52c4a5=>'tableCell'==_0x52c4a5['name']);for(const _0x17e4c7 of _0x29f512)0x1==_0x17e4c7['childCount']&&_0x17e4c7['getChild'](0x0)['is']('element','paragraph')&&_0x17e4c7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5d2de6){this['_processRootBeforeSave'](_0x5d2de6);const _0x5ca2b5=this['editor']['data']['toView'](_0x5d2de6,{}),_0x5764ee=Array['from'](_0x5ca2b5['getChildren']())['map'](_0x4743cb=>this['_getViewJson'](_0x4743cb));return JSON['stringify'](_0x5764ee);}['_getViewJson'](_0x53829c){if(_0x53829c['is']('$text'))return _0x53829c['data'];{const _0x23df38=_0x53829c;return{'type':Object['keys'](C)['find'](_0x25905b=>_0x53829c instanceof C[_0x25905b]),'name':_0x23df38['name'],'attributes':Array['from'](_0x23df38['getAttributes']()),'children':Array['from'](_0x23df38['getChildren']())['map'](_0x23f0e1=>this['_getViewJson'](_0x23f0e1))};}}['_markChanges'](_0x44059b,_0x494c70,_0x3f6145,_0x1d4c17,_0x1bd683){let _0x53a989=null,_0x30abed=null,_0x5705c7=0x0;const _0x144b4a=this['editor']['model'];for(let _0x1801b5=0x0;_0x1801b5<_0x494c70['length'];_0x1801b5++){const _0x1bdc1a=this['_getVidAttributeName'](_0x494c70[_0x1801b5]),_0x5efbdf=_0x494c70[_0x1801b5]['item']['getAttribute'](_0x1bdc1a),_0xcf152f=_0x3f6145['get'](_0x5efbdf),_0xbce1a2=_0x1801b5==_0x494c70['length']-0x1;(!_0x53a989&&_0xcf152f&&(_0x53a989=_0xcf152f,_0x30abed=_0x494c70[_0x1801b5]),_0x53a989&&(!_0xcf152f||_0xcf152f['userId']!=_0x53a989['userId']))&&(_0x160d05(_0xcf152f,J(_0x30abed,_0x44059b,_0x144b4a),J(_0x494c70[_0x1801b5],_0x44059b,_0x144b4a)),_0x53a989=_0xcf152f||null,_0x30abed=_0xcf152f?_0x494c70[_0x1801b5]:null),_0x53a989&&_0xbce1a2&&_0x160d05(_0xcf152f,J(_0x30abed,_0x44059b,_0x144b4a),q(_0x494c70[_0x1801b5],_0x44059b,_0x144b4a));}function _0x160d05(_0x4c8e21,_0x20aab9,_0x42fa30){const _0x2a16a2=_0x53a989['userId'],_0xe5527='revision:'+_0x1d4c17+':'+_0x2a16a2+':'+_0x5705c7++,_0x2e08fa=_0x144b4a['createRange'](_0x20aab9,_0x42fa30);_0x44059b['markers']['set'](_0xe5527,_0x2e08fa),null!==_0x2a16a2&&_0x1bd683['add'](_0x2a16a2);}}['_getVidAttributeName'](_0x539c14){switch(_0x539c14['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x512ba5,_0x59217f){_0x512ba5['baseVersion']=null;for(const _0x4ebe36 in _0x512ba5){const _0x109173=_0x512ba5[_0x4ebe36];if(_0x109173 instanceof gt){const _0x3cc437=_0x59217f['get'](_0x109173['root']['rootName']);_0x512ba5[_0x4ebe36]=this['_fixPosition'](_0x109173,_0x3cc437);}if(_0x109173 instanceof vt){const _0x5e59e2=_0x59217f['get'](_0x109173['root']['rootName']);_0x512ba5[_0x4ebe36]=this['_fixRange'](_0x109173,_0x5e59e2);}'root'===_0x4ebe36&&(_0x512ba5['root']=_0x59217f['get'](_0x512ba5['root']['rootName']));}}['_fixRange'](_0x2fc228,_0x4339cd){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2fc228['start'],_0x4339cd),this['_fixPosition'](_0x2fc228['end'],_0x4339cd));}['_fixPosition'](_0x3146c2,_0x2390b2){return this['editor']['model']['createPositionFromPath'](_0x2390b2,_0x3146c2['path'],_0x3146c2['stickiness']);}['_handleInsertOperation'](_0x8ff259){const _0x2b71a2=this['_idsRoots']['get'](_0x8ff259['position']['root']['rootName']),_0x2b215d=this['_fixPosition'](_0x8ff259['position'],_0x2b71a2),_0x117abd=null===_0x8ff259['_authorId']?null:_0x8ff259['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfe277=_0x2b215d['parent'],_0x374817=this['_revisionId'],_0x4ad98d=[];for(const _0x1478d2 of _0x8ff259['nodes'])if(_0x1478d2['is']('element'))_0x4ad98d['push'](this['_makeIdsRoot'](_0x1478d2));else{for(let _0x1b2867=0x0;_0x1b2867<_0x1478d2['offsetSize'];_0x1b2867++)_0x4ad98d['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x45d7f0=this['_revisionId'];for(let _0x50ad60=_0x374817;_0x50ad60<_0x45d7f0;_0x50ad60++)this['_touched']['set'](_0x50ad60,{'userId':_0x117abd});_0xfe277['_insertChild'](_0x2b215d['offset'],_0x4ad98d);}['_handleMoveOperation'](_0x173240){(_0x173240=this['_cloneOperation'](_0x173240,this['_idsRoots']))['_execute']();const _0x3cba08=null===_0x173240['_authorId']?null:_0x173240['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56aca9=_0x173240['getMovedRangeStart'](),_0x45f1bd=_0x56aca9['parent'],_0x421d77=_0x56aca9['offset'];!function _0x586e56(_0x3b155a,_0x127a53,_0x56dc6f,_0x3a4a9f){for(let _0x4d59ed=_0x56dc6f;_0x4d59ed<_0x3a4a9f;_0x4d59ed++){const _0xc121a9=_0x127a53['getChild'](_0x4d59ed);_0xc121a9['is']('element','$text')?_0x3b155a['set'](_0xc121a9['getAttribute']('vid'),{'userId':_0x3cba08}):(_0x3b155a['set'](_0xc121a9['getAttribute']('vid_start'),{'userId':_0x3cba08}),_0x586e56(_0x3b155a,_0xc121a9,0x0,_0xc121a9['childCount']),_0x3b155a['set'](_0xc121a9['getAttribute']('vid_end'),{'userId':_0x3cba08}));}}(this['_touched'],_0x45f1bd,_0x421d77,_0x421d77+_0x173240['howMany']);}['_handleMergeOperation'](_0x54272f){const _0xd3e70f=null===(_0x54272f=this['_cloneOperation'](_0x54272f,this['_idsRoots']))['_authorId']?null:_0x54272f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4db9ee=_0x54272f['targetPosition']['parent'],_0x410b1f=_0x54272f['sourcePosition']['parent'],_0xb182=_0x4db9ee['getAttribute']('vid_end'),_0x5a2f49=_0x410b1f['getAttribute']('vid_start');_0x4db9ee['_setAttribute']('vid_end',_0x410b1f['getAttribute']('vid_end')),_0x410b1f['_setAttribute']('vid_end',_0xb182),this['_touched']['set'](_0x5a2f49,{'userId':_0xd3e70f}),this['_touched']['set'](_0xb182,{'userId':_0xd3e70f}),_0x54272f['_execute']();}['_handleSplitOperation'](_0x4d3672){const _0x2bd32f=null===(_0x4d3672=this['_cloneOperation'](_0x4d3672,this['_idsRoots']))['_authorId']?null:_0x4d3672['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf71313=_0x4d3672['graveyardPosition'],_0x58f544=_0x4d3672['splitPosition']['parent'];_0x4d3672['_execute']();const _0x11836b=_0x58f544['getAttribute']('vid_end'),_0x1ee3bb=_0x4d3672['insertionPosition']['nodeAfter'];if(_0xf71313){const _0x51e074=_0x1ee3bb['getAttribute']('vid_end'),_0x165f86=_0x58f544['getAttribute']('vid_end');_0x58f544['_setAttribute']('vid_end',_0x51e074),_0x1ee3bb['_setAttribute']('vid_end',_0x165f86),this['_touched']['set'](_0x58f544['getAttribute']('vid_end'),{'userId':_0x2bd32f}),this['_touched']['set'](_0x1ee3bb['getAttribute']('vid_start'),{'userId':_0x2bd32f});}else{const _0x31e73d=this['_revisionId']++,_0x25d2e2=this['_revisionId']++;_0x58f544['_setAttribute']('vid_end',_0x31e73d),_0x1ee3bb['_setAttribute']('vid_start',_0x25d2e2),_0x1ee3bb['_setAttribute']('vid_end',_0x11836b),this['_touched']['set'](_0x31e73d,{'userId':_0x2bd32f}),this['_touched']['set'](_0x25d2e2,{'userId':_0x2bd32f});}}['_handleMarkerOperation'](_0x533505){if(!_0x533505['affectsData'])return;const _0x1c5c50=(_0x533505=this['_cloneOperation'](_0x533505,this['_diffRoots']))['oldRange']?_0x533505['oldRange']['root']:null,_0x421cc6=_0x533505['newRange']?_0x533505['newRange']['root']:null;_0x1c5c50&&this['_markers']['delete'](_0x533505['name']),_0x421cc6&&this['_markers']['set'](_0x533505['name'],_0x533505['newRange']['clone']());const _0x32b440=null===_0x533505['_authorId']?null:_0x533505['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bca63=_0x533505['name'];if(!this['_touchedMarkers']['has'](_0x2bca63))return void this['_touchedMarkers']['set'](_0x2bca63,{'range':_0x533505['oldRange'],'userId':_0x32b440});const _0x40bcc6=this['_touchedMarkers']['get'](_0x2bca63),_0x3e39ed=_0x40bcc6['range'],_0x17ebc3=_0x533505['newRange'];null==_0x3e39ed&&null==_0x17ebc3||_0x3e39ed&&_0x17ebc3&&_0x3e39ed['isEqual'](_0x17ebc3)?this['_touchedMarkers']['delete'](_0x533505['name']):_0x40bcc6['userId']=_0x32b440;}['_handleRootOperation'](_0x1e6456,_0x353553){this['_diffRoots']['has'](_0x1e6456['rootName'])?this['_diffRoots']['get'](_0x1e6456['rootName'])['_isAttached']=_0x1e6456['isAdd']:(this['_diffRoots']['set'](_0x1e6456['rootName'],B(_0x1e6456['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e6456['rootName'],{}),_0x353553&&this['_idsRoots']['set'](_0x1e6456['rootName'],B(_0x1e6456['rootName'],!0x0)));const _0x3639c7=null===_0x1e6456['_authorId']?null:_0x1e6456['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b9436=this['_touchedRoots']['get'](_0x1e6456['rootName']);_0x5b9436&&_0x5b9436['userId']===_0x3639c7?this['_touchedRoots']['delete'](_0x1e6456['rootName']):this['_touchedRoots']['set'](_0x1e6456['rootName'],{'userId':_0x3639c7,'isAttached':_0x1e6456['isAdd']});}['_handleRootAttributeOperation'](_0x3f38cb){const _0x3c4286=this['_diffRootsAttributes']['get'](_0x3f38cb['root']['rootName']);null===_0x3f38cb['newValue']?delete _0x3c4286[_0x3f38cb['key']]:_0x3c4286[_0x3f38cb['key']]=_0x3f38cb['newValue'];}}function F(_0x18d478){const _0x330720=B(_0x18d478['rootName'],_0x18d478['isAttached']());for(const _0x38f82e of _0x18d478['getChildren']()){const _0x400da1=_0x38f82e['_clone'](!0x0);_0x330720['_appendChild'](_0x400da1);}return _0x330720;}function B(_0x4c45ef,_0x5060d3=!0x0){const _0xf38868=new wt();return _0xf38868['rootName']=_0x4c45ef,_0xf38868['_isAttached']=_0x5060d3,_0xf38868['isAttached']=()=>_0xf38868['_isAttached'],_0xf38868;}function J(_0x4e9e29,_0x1344e8,_0x207e0c){const _0x429140='elementEnd'==_0x4e9e29['type']?_0x207e0c['createPositionAt'](_0x4e9e29['item'],'end'):_0x207e0c['createPositionBefore'](_0x4e9e29['item']);return _0x207e0c['createPositionFromPath'](_0x1344e8,_0x429140['path'],_0x429140['stickiness']);}function q(_0xefadd2,_0x281377,_0x115391){const _0x146e08='elementStart'==_0xefadd2['type']?_0x115391['createPositionAt'](_0xefadd2['item'],0x0):_0x115391['createPositionAfter'](_0xefadd2['item']);return _0x115391['createPositionFromPath'](_0x281377,_0x146e08['path'],_0x146e08['stickiness']);}class hs extends _0x59c2ca{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1896ab,_0x6d8c37){super(_0x1896ab),this['focusTracker']=new _0x426056(),this['keystrokes']=new _0x5bb513(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x6d8c37),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'](),_0x2b7941({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x151553=_0x3347bc=>_0x3347bc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x151553),this['keystrokes']['set']('arrowleft',_0x151553),this['keystrokes']['set']('arrowup',_0x151553),this['keystrokes']['set']('arrowdown',_0x151553);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3cbd2b){this['revisionNameInputView']['fieldView']['element']['value']=_0x3cbd2b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x539bc3){const _0x479067=new at(this['locale'],_0x2931d8),_0x13b4ca=_0x479067['fieldView'];_0x13b4ca['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x26e258=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x539bc3&&(_0x26e258+='\x20('+R(this['locale'],'optional')+')'),(_0x479067['label']=_0x26e258,_0x13b4ca['on']('input',()=>{this['revisionNameInputValue']=_0x13b4ca['element']['value']['trim']();}),_0x479067);}}class u extends _0x5a5f64{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x12f5be=this['editor'],_0x130906=_0x12f5be['plugins']['get']('RevisionTracker');_0x12f5be['ui']['componentFactory']['add']('revisionHistory',_0x4b6957=>{const _0x5144d8=_0x40e817(_0x4b6957),_0x45eb3d=_0x5144d8['panelView']['children'],_0x4a1ffd=new _0xab325d(_0x4b6957),_0x5ae1c8=new te(_0x4b6957),_0x5853cb=new _0x3b013d(_0x4b6957),_0xeacc99=new te(_0x4b6957),_0x5c9290=new _0x3b013d(_0x4b6957);return _0x5144d8['bind']('isEnabled')['to'](_0x130906,'isReady',_0x130906,'isEnabled',_0x12f5be,'isReadOnly',(_0x4b8c69,_0xa5d373,_0xdfcfd5)=>_0x4b8c69&&_0xa5d373&&!_0xdfcfd5),_0x5144d8['buttonView']['set']({'icon':_0x2b22d2['history'],'label':R(_0x4b6957,'Revision\x20history'),'tooltip':!0x0}),_0x5853cb['set']({'label':R(_0x4b6957,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5853cb['bind']('isEnabled')['to'](_0x130906,'isReady',_0x130906,'isEnabled',_0x12f5be,'isReadOnly',(_0x385a2b,_0x287c53,_0x5786d5)=>_0x385a2b&&_0x287c53&&!_0x5786d5),_0x5853cb['on']('execute',()=>this['_showDialog']()),_0x5c9290['set']({'label':R(_0x4b6957,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5c9290['bind']('isEnabled')['to'](_0x130906,'isReady',_0x12f5be,'isReadOnly',(_0x2bc45d,_0x4ab749)=>_0x2bc45d&&!_0x4ab749),_0x5c9290['on']('execute',()=>{_0x12f5be['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5144d8['isOpen']=!0x1,_0x12f5be['editing']['view']['focus']();}),_0x5ae1c8['children']['add'](_0x5853cb),_0xeacc99['children']['add'](_0x5c9290),_0x4a1ffd['role']='menu',_0x4a1ffd['items']['addMany']([_0x5ae1c8,_0xeacc99]),_0x45eb3d['add'](_0x4a1ffd),_0x5144d8;}),_0x12f5be['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x14ecd1=this['editor'],_0x146fa0=_0x14ecd1['locale'],_0x4d689e=new _0x8cd669(_0x146fa0),_0x3d0983=new _0x3181c6(_0x146fa0);_0x4d689e['buttonView']['set']({'icon':_0x2b22d2['history'],'label':R(_0x146fa0,'Revision\x20history')});const _0xc3d78c=new _0x41624a(_0x146fa0,_0x4d689e),_0x134035=new _0x58d60f(_0x146fa0);_0x134035['set']({'label':R(_0x146fa0,'Save\x20current\x20revision')}),_0x134035['delegate']('execute')['to'](_0x4d689e),_0x134035['on']('execute',()=>{this['_showDialog']();}),_0xc3d78c['children']['add'](_0x134035),_0x3d0983['items']['add'](_0xc3d78c);const _0x807ae0=new _0x41624a(_0x146fa0,_0x4d689e),_0xbd37e5=new _0x58d60f(_0x146fa0);return _0xbd37e5['set']({'label':R(_0x146fa0,'Open\x20revision\x20history')}),_0xbd37e5['delegate']('execute')['to'](_0x4d689e),_0xbd37e5['on']('execute',()=>{_0x14ecd1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x807ae0['children']['add'](_0xbd37e5),_0x3d0983['items']['add'](_0x807ae0),_0x4d689e['panelView']['children']['add'](_0x3d0983),_0x4d689e;}['_showDialog'](){const _0x6edda2=this['editor'],_0x382b8d=_0x6edda2['locale'],_0x212516=_0x6edda2['plugins']['get']('Dialog'),_0x34ee5b=_0x6edda2['plugins']['get']('RevisionTracker');function _0x492475(_0x3b1585){_0x6edda2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3b1585['revisionName']?_0x3b1585['revisionNameInputView']['errorText']=R(_0x382b8d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x6edda2['plugins']['get'](l)['saveRevision']({'name':_0x3b1585['revisionName']}),_0x212516['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x492475(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x212516['show']({'id':'revisionSave','title':R(_0x382b8d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x6edda2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x212516['hide']()},{'label':R(_0x6edda2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4ed09b){_0x4ed09b['bind']('isEnabled')['to'](_0x34ee5b,'isReady',_0x34ee5b,'isEnabled',_0x6edda2,'isReadOnly',(_0x204f12,_0x29073c,_0x26cc5a)=>_0x204f12&&_0x29073c&&!_0x26cc5a);},'onExecute':()=>_0x492475(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1b3681=this['editor'],_0x40b55a=_0x1b3681['locale'];this['_saveRevisionFormView']=new hs(_0x40b55a,_0x1b3681['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x59c2ca{['changeId'];['_model'];constructor(_0x2a3899,_0x5a09c7){super(_0x2a3899),this['_model']=_0x5a09c7,this['changeId']=_0x5a09c7['id'];const _0x1cefa2=this['bindTemplate'],_0xe347cb=R(_0x2a3899,_0x5a09c7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5a09c7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5a09c7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1cefa2['to']('type',_0x87bdcf=>'ck-revision-change__'+_0x87bdcf)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xe347cb}]},{'text':'\x20'+_0x5a09c7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x42fc44(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1e13ca){super(),this['id']=_0x1e13ca['id']||_0x45c6ed(),this['author']=_0x1e13ca['author'],this['type']=_0x1e13ca['type'],this['data']=_0x1e13ca['data']||{},this['rootName']=_0x1e13ca['rootName'],this['set']('createdAt',_0x1e13ca['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x153db1,_0x464f2a){this['newRevisionId']=_0x153db1,this['oldRevisionId']=_0x464f2a,this['changes']=new _0xc46275();}['_setChanges'](_0x140c25){for(const _0x332c7d of _0x140c25)this['changes']['add'](_0x332c7d);}}const Z={'c':_0x34a5a1,'a':_0x598c3e,'e':_0x29e244,'r':_0x38a7d8,'u':_0x196df5};class d extends _0x5a5f64{['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[_0x13a039,_0xc8f96d,j];}constructor(_0x57908d){super(_0x57908d),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',(_0x2263d5,_0x2e6017,_0x1e0ea4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x219635=>{for(const _0x1ff8b9 of this['editor']['editing']['view']['document']['roots'])_0x1e0ea4?_0x219635['removeClass']('ck-editor__editable__overlay',_0x1ff8b9):_0x219635['addClass']('ck-editor__editable__overlay',_0x1ff8b9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x56a33=>null!==_0x56a33),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5a4e67,_0x315b99,_0x491d61)=>_0x5a4e67&&_0x491d61?_0x315b99['changes']['getIndex'](_0x491d61):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x306ca9,_0x2fd040)=>_0x306ca9?_0x2fd040['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xc8f96d);}['init'](){const _0x2c87c5=this['editor'],_0x502983=new bt(_0x2c87c5,{'direction':'backward'}),_0x393ab9=new bt(_0x2c87c5,{'direction':'forward'});(_0x2c87c5['commands']['add']('showPreviousChange',_0x502983),_0x2c87c5['commands']['add']('showNextChange',_0x393ab9),_0x2c87c5['commands']['add']('restoreRevision',new yt(_0x2c87c5)),this['on']('change:numberOfChanges',()=>{_0x502983['refresh'](),_0x393ab9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2c87c5['enableReadOnlyMode']('revision-viewer'),_0x2c87c5['plugins']['has']('WidgetToolbarRepository'))&&_0x2c87c5['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1a13b9){await this['loadRevisionData'](_0x1a13b9);const _0x2ee7d7={};for(const _0x4a12a7 in _0x1a13b9['diffData']){if(_0x1a13b9['diffData'][_0x4a12a7]['attachChange']&&!_0x1a13b9['diffData'][_0x4a12a7]['attachChange']['isAttached'])continue;const _0x2e8b25=this['_removeRevisionMarkers'](JSON['parse'](_0x1a13b9['diffData'][_0x4a12a7]['insertions'])),_0x5e4e5d=this['editor']['editing']['view']['document'],_0x4fed5b=new _0x29157b(_0x5e4e5d,_0x2e8b25['map'](_0x5f5dd6=>this['_getViewObj'](_0x5f5dd6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2ee7d7[_0x4a12a7]=this['editor']['data']['processor']['toData'](_0x4fed5b),this['editor']['data']['processor']['useFillerType']('default');}return _0x2ee7d7;}async['getRevisionRootsAttributes'](_0x245b1b){await this['loadRevisionData'](_0x245b1b);const _0x5eeff5={};for(const _0x56d918 in _0x245b1b['diffData'])_0x245b1b['diffData'][_0x56d918]['attachChange']&&!_0x245b1b['diffData'][_0x56d918]['attachChange']['isAttached']||(_0x5eeff5[_0x56d918]=_0x245b1b['diffData'][_0x56d918]['attributesAfter']||{});return _0x5eeff5;}['_removeRevisionMarkers'](_0x43c751){return(_0x43c751=_0x43c751['filter'](_0x227ed3=>!_0x227ed3['name']||'revision-start'!==_0x227ed3['name']&&'revision-end'!==_0x227ed3['name']))['forEach'](_0x292c6f=>{'string'!=typeof _0x292c6f&&(_0x292c6f['children']=this['_removeRevisionMarkers'](_0x292c6f['children']),_0x292c6f['attributes']=_0x292c6f['attributes']['filter'](_0x1243c6=>!_0x1243c6[0x0]['startsWith']('data-revision-')));}),_0x43c751;}async['compare'](_0x28507d,_0x3093ad,_0x3b1ad7=!0x1){if(!this['isEnabled'])return;const _0x525b09=this['diff'],_0x21db0c=this['repository'],_0x27f3f6='string'==typeof _0x28507d?_0x21db0c['getRevision'](_0x28507d):_0x28507d,_0x3e4b8f='string'==typeof _0x3093ad?_0x21db0c['getRevision'](_0x3093ad):_0x3093ad,_0x2d2f37=_0x27f3f6['id'],_0x348f52=_0x3e4b8f?_0x3e4b8f['id']:null;if(!_0x3b1ad7&&this['diff']&&this['diff']['newRevisionId']===_0x2d2f37&&this['diff']['oldRevisionId']===_0x348f52)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2d2f37,_0x348f52);const _0x4b82df=this['_getRevisionsRange'](_0x27f3f6,_0x3e4b8f,!0x0)['map'](_0x500a4=>this['loadRevisionData'](_0x500a4));return _0x4b82df['push'](new Promise(_0x2969f2=>{setTimeout(_0x2969f2,0x14);})),Promise['all'](_0x4b82df)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1907d3=this['_getDiff'](_0x2d2f37,_0x348f52);for(const _0x5dd44f of _0x1907d3['changes'])this['_changeIdToChange']['set'](_0x5dd44f['id'],_0x5dd44f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x59eb56=>{for(const _0x9e9eae of this['editor']['model']['document']['getRootNames']())_0x59eb56['detachRoot'](_0x9e9eae);for(const _0x241771 of Object['keys'](_0x1907d3['model'])){const _0x324e79=_0x59eb56['addRoot'](_0x241771);for(const _0x43acaf of Object['keys'](_0x1907d3['attributes'][_0x241771]))_0x59eb56['setAttribute'](_0x43acaf,_0x1907d3['attributes'][_0x241771][_0x43acaf],_0x324e79);_0x59eb56['insert'](_0x1907d3['model'][_0x241771],_0x324e79,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1907d3['changes'])),this['isReady']=!0x0;})['catch'](_0x2bf360=>{console['error'](_0x2bf360),this['_cleanUp'](),_0x525b09&&(this['diff']=_0x525b09),this['isReady']=!0x0;});}['addRevisionData'](_0x1b1bab,_0x3499d5){const _0x1e431e=this['repository']['createRevision'](_0x1b1bab);return _0x1e431e['on']('_update',(_0x240a66,_0x185b89,_0x556ed8)=>_0x3499d5(_0x185b89,_0x556ed8,_0x1e431e)),this['repository']['addRevision'](_0x1e431e),_0x1e431e;}['loadRevisionData'](_0x1e3993){if(!_0x1e3993||_0x1e3993['diffData'])return Promise['resolve']();{const _0x185fc1=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x185fc1,'revisionId':_0x1e3993['id']})['then'](_0x4c3055=>{_0x1e3993['_update']({'diffData':_0x4c3055['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},_0x14c7c8=>{for(const _0x4cfb50 of this['editor']['model']['document']['getRootNames']())_0x14c7c8['detachRoot'](_0x4cfb50);});}['_sortAndFilterDiffChanges'](_0x387ac4){const _0x170aa6=[],_0x1914d3=new Map();for(const _0xf247c4 of this['editor']['model']['document']['getRootNames']()){const _0x9fcd70=this['editor']['editing']['view']['getDomRoot'](_0xf247c4);if(!_0x9fcd70)continue;const _0x3cf6d9=_0x9fcd70['getClientRects']()['item'](0x0);_0x3cf6d9&&(_0x170aa6['push'](_0xf247c4),_0x1914d3['set'](_0xf247c4,_0x3cf6d9));}return _0x170aa6['sort']((_0x646d61,_0x6540f6)=>{const _0x5a9d9b=_0x1914d3['get'](_0x646d61),_0x131b66=_0x1914d3['get'](_0x6540f6);return _0x5a9d9b['y']-_0x131b66['y']||_0x5a9d9b['x']-_0x131b66['x'];}),(_0x387ac4=_0x387ac4['filter'](_0x445483=>_0x170aa6['includes'](_0x445483['rootName'])))['sort']((_0x23c342,_0x4368e8)=>_0x170aa6['indexOf'](_0x23c342['rootName'])-_0x170aa6['indexOf'](_0x4368e8['rootName'])),_0x387ac4;}['_makeTape'](_0x150cf0){const _0x526906=Array['from'](_0x150cf0['markers'])['filter'](([_0x25fdd9,_0x3e6d90])=>_0x25fdd9['startsWith']('revision:')&&!_0x3e6d90['isCollapsed']),_0x48b5ed=Array['from'](this['editor']['model']['createRangeIn'](_0x150cf0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x526906['length'])for(const _0x480be6 of _0x48b5ed){const [_0x39e529,_0x47e5e0]=_0x526906[0x0],[,_0x1ee717,_0x21b1f6]=_0x39e529['split'](':');if(_0x47e5e0['end']['isEqual'](_0x480be6['nextPosition'])&&_0x526906['shift'](),(_0x480be6['previousPosition']['isEqual'](_0x47e5e0['start'])||_0x480be6['previousPosition']['isAfter'](_0x47e5e0['start']))&&('insertion'==_0x1ee717?_0x480be6['isAdded']={'userId':_0x21b1f6}:'deletion'==_0x1ee717&&(_0x480be6['isRemoved']={'userId':_0x21b1f6})),0x0==_0x526906['length'])break;}return _0x48b5ed;}['_refreshStartEndIndex'](_0x593f1c){const _0x315cac=new Map();for(let _0x2c6f20=0x0;_0x2c6f20<_0x593f1c['length'];_0x2c6f20++)'text'===_0x593f1c[_0x2c6f20]['type']?(_0x593f1c[_0x2c6f20]['item']['startIndex']=_0x2c6f20,_0x593f1c[_0x2c6f20]['item']['endIndex']=_0x2c6f20):('elementStart'===_0x593f1c[_0x2c6f20]['type']?_0x593f1c[_0x2c6f20]['item']['startIndex']=_0x2c6f20:'elementEnd'===_0x593f1c[_0x2c6f20]['type']&&(_0x593f1c[_0x2c6f20]['item']['endIndex']=_0x2c6f20),_0x315cac['set'](_0x593f1c[_0x2c6f20]['id'],_0x2c6f20));for(const _0x30e8f2 of _0x315cac['values']())'elementStart'===_0x593f1c[_0x30e8f2]['type']?_0x593f1c[_0x30e8f2]['item']['endIndex']=_0x315cac['get'](_0x593f1c[_0x30e8f2]['pairId']):'elementEnd'===_0x593f1c[_0x30e8f2]['type']&&(_0x593f1c[_0x30e8f2]['item']['startIndex']=_0x315cac['get'](_0x593f1c[_0x30e8f2]['pairId']));}['_processTape'](_0x17f139){for(let _0x83f327=0x0;_0x83f327<_0x17f139['length'];_0x83f327++){if('elementStart'===_0x17f139[_0x83f327]['type'])_0x17f139[_0x83f327]['item']['startIndex']=_0x83f327;else{if('elementEnd'===_0x17f139[_0x83f327]['type']){_0x17f139[_0x83f327]['item']['endIndex']=_0x83f327;const _0x516fec=_0x17f139[_0x83f327]['item']['startIndex'];_0x17f139[_0x516fec]['pairId']=_0x17f139[_0x83f327]['id'],_0x17f139[_0x83f327]['pairId']=_0x17f139[_0x516fec]['id'];}else _0x17f139[_0x83f327]['item']['startIndex']=_0x83f327,_0x17f139[_0x83f327]['item']['endIndex']=_0x83f327,_0x17f139[_0x83f327]['pairId']=null;}_0x17f139[_0x83f327]['markersStart']||(_0x17f139[_0x83f327]['markersStart']=[],_0x17f139[_0x83f327]['markersEnd']=[]);}}['_markInsertions'](_0x2494c2,_0x24e6fd){const _0x104de4=_0x2494c2['filter'](_0x4db2ed=>!_0x4db2ed['isAdded']);for(let _0x5445d3=0x0;_0x5445d3<_0x24e6fd['length'];_0x5445d3++)_0x24e6fd[_0x5445d3]['isAdded']&&(_0x104de4[_0x5445d3]['isAdded']=_0x24e6fd[_0x5445d3]['isAdded']);}['_makeModelFromViewString'](_0x51a208){const _0x4853d=JSON['parse'](_0x51a208),_0x5d63ec=this['editor']['editing']['view']['document'],_0x452e3f=new _0x29157b(_0x5d63ec,_0x4853d['map'](_0x2c6363=>this['_getViewObj'](_0x2c6363)));return this['editor']['data']['toModel'](_0x452e3f);}['_getViewObj'](_0x50d6ed){const _0x46bc03=this['editor']['editing']['view']['document'];if('string'==typeof _0x50d6ed)return new _0x580579(_0x46bc03,_0x50d6ed);{const _0x48d34e=_0x50d6ed['children']['map'](_0x4e8a7d=>this['_getViewObj'](_0x4e8a7d));return new(Z[_0x50d6ed['type']]||_0x9fe0f9)(_0x46bc03,_0x50d6ed['name'],_0x50d6ed['attributes'],_0x48d34e);}}['_getDiff'](_0x51efd1,_0x5e3ae6=null){const _0x1d1607=this['repository']['getRevision'](_0x51efd1),_0x3d3b88=_0x5e3ae6?this['repository']['getRevision'](_0x5e3ae6):null,_0x4084e6=this['_getRevisionsRange'](_0x1d1607,_0x3d3b88),_0x332264=_0x4084e6[_0x4084e6['length']-0x1],_0x22742d=new Map(),_0x275a00={'model':{},'attributes':{},'changes':[]},_0x3fd309=new Set(),_0x136e5d=new Map();for(let _0x3bb811=_0x4084e6['length']-0x1;_0x3bb811>=0x0;_0x3bb811--){const _0x5a0920=_0x4084e6[_0x3bb811];for(const _0x16d40f of Object['keys'](_0x5a0920['diffData']))if(_0x5a0920['diffData'][_0x16d40f]['attachChange']){const _0x190a6f=_0x5a0920['diffData'][_0x16d40f]['attachChange'];_0x190a6f['isAttached']?(_0x3fd309['add'](_0x16d40f),_0x136e5d['has'](_0x16d40f)&&_0x136e5d['get'](_0x16d40f)['userId']==_0x190a6f['userId']?_0x136e5d['delete'](_0x16d40f):_0x136e5d['set'](_0x16d40f,_0x190a6f)):_0x136e5d['has'](_0x16d40f)?(_0x3fd309['delete'](_0x16d40f),_0x136e5d['delete'](_0x16d40f)):(_0x3fd309['add'](_0x16d40f),_0x136e5d['set'](_0x16d40f,_0x190a6f));}else _0x3fd309['add'](_0x16d40f);}for(const _0x494b33 of _0x3fd309){const _0x3e2ee9=_0x136e5d['has'](_0x494b33)&&!_0x136e5d['get'](_0x494b33)['isAttached'];let _0x1b860c=_0x3e2ee9?_0x4084e6['length']-0x1:0x0;const _0x1be726=_0x3e2ee9?-0x1:0x1;for(;_0x4084e6[_0x1b860c];){const _0x4042c0=_0x4084e6[_0x1b860c];if(_0x4042c0['diffData'][_0x494b33]){const _0x147651=_0x3e2ee9?_0x4042c0['diffData'][_0x494b33]['attributesBefore']:_0x4042c0['diffData'][_0x494b33]['attributesAfter'];_0x275a00['attributes'][_0x494b33]=_0x147651?_0x1fbbd4(_0x147651):{};break;}_0x1b860c+=_0x1be726;}}for(const _0x16817c of _0x4084e6){_0x16817c['model']={};for(const _0x6495da of _0x16817c['authors'])_0x22742d['set'](_0x6495da['id'],_0x6495da);for(const _0x4bc340 of _0x3fd309){const _0xd1ea91=_0x16817c['diffData'][_0x4bc340]?_0x16817c['diffData'][_0x4bc340]['insertions']:'[]',_0x55cade=_0x16817c['diffData'][_0x4bc340]?_0x16817c['diffData'][_0x4bc340]['deletions']:'[]';_0x16817c['model'][_0x4bc340]={'insertions':this['_makeModelFromViewString'](_0xd1ea91),'deletions':this['_makeModelFromViewString'](_0x55cade)};}}for(const _0x306eb5 of _0x3fd309){let _0x105317=null,_0x440771=0x0;const _0x5f49a9=new Map(Array['from'](_0x1d1607['model'][_0x306eb5]['insertions']['markers'])['filter'](([_0x483bf3])=>!_0x483bf3['startsWith']('revision:')));let _0x20d50f=0x0;for(const _0x14a72f of _0x4084e6){const _0x2a5321=this['_makeTape'](_0x14a72f['model'][_0x306eb5]['insertions']);_0x14a72f==_0x1d1607?(_0x105317=_0x2a5321,_0x440771=_0x105317['length'],_0x105317['forEach'](_0x14a8d0=>{_0x14a8d0['id']=_0x20d50f++;}),this['_processTape'](_0x105317)):this['_markInsertions'](_0x105317,_0x2a5321);const _0x5b536c=_0x105317['filter'](_0x15491b=>!_0x15491b['isAdded'])['map'](_0x2f7325=>_0x2f7325['id']);let _0x48da24=0x0;const _0x2a1e41=this['_makeTape'](_0x14a72f['model'][_0x306eb5]['deletions']);_0x2a1e41['forEach'](_0x139f54=>{_0x139f54['isRemoved']?_0x139f54['id']=_0x440771++:_0x139f54['id']=_0x5b536c[_0x48da24++];}),this['_processTape'](_0x2a1e41),this['_setDistance'](_0x105317,'isAdded'),this['_setDistance'](_0x2a1e41,'isRemoved'),_0x14a72f==_0x1d1607&&this['_markMarkers'](_0x105317,_0x5f49a9),_0x105317=this['_joinTapes'](_0x105317,_0x2a1e41),this['_refreshStartEndIndex'](_0x105317),this['_setDistance'](_0x105317,'isRemoved');}_0x105317=_0x105317['filter'](_0xa8510d=>!(_0xa8510d['isAdded']&&_0xa8510d['isRemoved']));const _0x475c38=new Map(_0x332264['model'][_0x306eb5]['deletions']['markers']),_0x168709=new Set(_0x5f49a9['keys']());for(const _0x564ff2 of _0x475c38['keys']())_0x168709['delete'](_0x564ff2);this['_markSuggestions'](_0x105317,_0x168709),this['_fixObsoleteTags'](_0x105317),_0x105317=this['_removeMissingPairs'](_0x105317),_0x105317=this['_markMismatchedRemovedTags'](_0x105317),_0x105317=this['_removeUnsupportedChanges'](_0x105317);const {root:_0x303dbe,changes:_0x36b525}=this['_makeModelFromTape'](_0x105317,_0x22742d,_0x306eb5);_0x275a00['model'][_0x306eb5]=_0x303dbe;const _0x16f2eb=_0x136e5d['get'](_0x306eb5);if(_0x16f2eb){const _0x570dd9=_0x22742d['get'](_0x16f2eb['userId']),_0x52a12c=new r({'author':_0x570dd9,'type':_0x16f2eb['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x306eb5});_0x36b525['unshift'](_0x52a12c),_0x275a00['attributes'][_0x306eb5]['revisionHistoryAttachChange']=_0x52a12c['id'];}_0x275a00['changes']=_0x275a00['changes']['concat'](_0x36b525);}return _0x275a00;}['_markMarkers'](_0x4d359e,_0x5917f1){for(let _0xfb8bd4=0x0;_0xfb8bd4<_0x4d359e['length'];_0xfb8bd4++)for(const [_0x59b300,_0x4e7b7a]of _0x5917f1)_0x4e7b7a['start']['isEqual'](_0x4d359e[_0xfb8bd4]['previousPosition'])&&_0x4d359e[_0xfb8bd4]['markersStart']['push'](_0x59b300),_0x4e7b7a['end']['isEqual'](_0x4d359e[_0xfb8bd4]['nextPosition'])&&_0x4d359e[_0xfb8bd4]['markersEnd']['push'](_0x59b300);}['_joinTapes'](_0x40888b,_0xd06eb1){let _0x368315=[],_0x2e492c=0x0,_0x34c76a=0x0;for(;_0x2e492c<_0x40888b['length']||_0x34c76a<_0xd06eb1['length'];){const _0x422336=_0x40888b[_0x2e492c]||{},_0x378332=_0xd06eb1[_0x34c76a]||{};if(_0x422336['id']==_0x378332['id'])_0x2e492c++,_0x34c76a++,_0x368315['push'](_0x422336);else{if(_0x378332['isRemoved']&&_0x422336['isAdded']){const {commonTape:_0x44d7c4,iEnd:_0x3ada62,jEnd:_0x5c6b99}=this['_threeWayMerge'](_0x40888b,_0x2e492c,_0xd06eb1,_0x34c76a);_0x368315=_0x368315['concat'](_0x44d7c4),_0x2e492c=_0x3ada62,_0x34c76a=_0x5c6b99;}else _0x378332['isRemoved']?(_0x34c76a++,_0x368315['push'](_0x378332)):(_0x2e492c++,_0x368315['push'](_0x422336));}}return _0x368315;}['_markSuggestions'](_0x5ca50f,_0x470c39){const _0x41ca78=[];for(let _0x1994bd=0x0;_0x1994bd<_0x5ca50f['length'];_0x1994bd++){for(let _0x375291=0x0;_0x375291<_0x5ca50f[_0x1994bd]['markersStart']['length'];_0x375291++){const _0x4f412c=_0x5ca50f[_0x1994bd]['markersStart'][_0x375291];if(!_0x470c39['has'](_0x4f412c))continue;const {group:_0x4191cc,type:_0x110aab,authorId:_0x21462f}=_0x278fd6(_0x4f412c);'revision-suggestion'!=_0x4191cc||'insertion'!=_0x110aab&&'deletion'!=_0x110aab||(_0x41ca78['unshift']({'type':_0x110aab,'name':_0x4f412c,'userId':_0x21462f}),_0x5ca50f[_0x1994bd]['markersStart']['splice'](_0x375291,0x1),_0x375291--);}_0x3e8122(_0x5ca50f[_0x1994bd]);for(let _0x1264c5=0x0;_0x1264c5<_0x5ca50f[_0x1994bd]['markersEnd']['length'];_0x1264c5++){const _0x4f868f=_0x5ca50f[_0x1994bd]['markersEnd'][_0x1264c5];if(!_0x470c39['has'](_0x4f868f))continue;const {group:_0x3efd18,type:_0x153631}=_0x278fd6(_0x4f868f);if('revision-suggestion'!=_0x3efd18||'insertion'!=_0x153631&&'deletion'!=_0x153631)continue;_0x5ca50f[_0x1994bd]['markersEnd']['splice'](_0x1264c5,0x1),_0x1264c5--;const _0x1ebfb4=_0x41ca78['findIndex'](_0x16e82c=>_0x16e82c['name']==_0x4f868f);_0x1ebfb4>-0x1&&_0x41ca78['splice'](_0x1ebfb4,0x1);}}function _0x278fd6(_0x2e3163){const _0x1600e5=_0x2e3163['split'](':');return{'group':_0x1600e5[0x0],'type':_0x1600e5[0x1],'subType':_0x1600e5['length']>=0x5?_0x1600e5[0x2]:null,'id':_0x1600e5['length']<0x5?_0x1600e5[0x2]:_0x1600e5[0x3],'authorId':_0x1600e5['length']<0x5?_0x1600e5[0x3]:_0x1600e5[0x4],'markerCount':0x6==_0x1600e5['length']?_0x1600e5[0x5]:null};}function _0x3e8122(_0x30de5d){for(let _0x572417=0x0;_0x572417<_0x41ca78['length'];_0x572417++){if(_0x30de5d['isAdded']&&'insertion'==_0x41ca78[_0x572417]['type'])return _0x30de5d['isAddSuggestion']=_0x41ca78[_0x572417],void delete _0x30de5d['isAdded'];if(!_0x30de5d['isAdded']&&!_0x30de5d['isRemoved']&&'deletion'==_0x41ca78[_0x572417]['type'])return void(_0x30de5d['isRemoveSuggestion']=_0x41ca78[_0x572417]);}}}['_setDistance'](_0x51648f,_0x46c1ea){let _0x41c873=0x0,_0x5cfbba=!0x1;const _0x1d49b8=new Map();for(const _0x1c7840 of _0x51648f)_0x1c7840[_0x46c1ea]?_0x5cfbba&&(_0x41c873++,_0x5cfbba=!0x1):(_0x41c873++,_0x5cfbba=!0x0),_0x1d49b8['set'](_0x1c7840['id'],_0x41c873);for(let _0x2ddb43=0x0;_0x2ddb43<_0x51648f['length'];_0x2ddb43++){if('isRemoved'==_0x46c1ea&&_0x51648f[_0x2ddb43]['isAdded']||'isAdded'==_0x46c1ea&&_0x51648f[_0x2ddb43]['isRemoved'])continue;if('text'==_0x51648f[_0x2ddb43]['type']){_0x51648f[_0x2ddb43]['distance']=0x0;continue;}const _0xd32339=_0x1d49b8['get'](_0x51648f[_0x2ddb43]['pairId']),_0x1b0b37=_0x1d49b8['get'](_0x51648f[_0x2ddb43]['id']);_0x51648f[_0x2ddb43]['distance']=_0xd32339-_0x1b0b37;}}['_getRevisionsRange'](_0x11767b,_0x2b2be7,_0x10f321=!0x1){const _0x483449=[];let _0x463506=this['repository']['getIndex'](_0x11767b),_0x1f9c7f=this['repository']['getIndex'](_0x2b2be7);for(-0x1==_0x1f9c7f&&(_0x1f9c7f=this['repository']['_revisions']['length'],_0x10f321=!0x1);_0x463506<_0x1f9c7f;)_0x483449['push'](this['repository']['getRevision'](_0x463506)),_0x463506++;return _0x10f321&&_0x483449['push'](this['repository']['getRevision'](_0x463506)),_0x483449;}['_threeWayMerge'](_0x1362e7,_0x215547,_0x1dc4a0,_0x2a4e48){const _0x115bcf=this['editor']['model']['schema'];let _0x200312=_0x215547;for(;_0x1362e7[_0x200312]&&_0x1362e7[_0x200312]['isAdded'];)_0x200312++;let _0x20da61=_0x2a4e48;for(;_0x1dc4a0[_0x20da61]&&_0x1dc4a0[_0x20da61]['isRemoved'];)_0x20da61++;_0x10d60b(_0x1362e7,_0x215547,_0x200312),_0x10d60b(_0x1dc4a0,_0x2a4e48,_0x20da61);const _0x247b59=_0x1dc4a0['slice'](_0x2a4e48,_0x20da61)['concat'](_0x1362e7['slice'](_0x215547,_0x200312));return _0x247b59['sort']((_0x2cd9eb,_0x5532d3)=>_0x2cd9eb['side']!=_0x5532d3['side']?_0x2cd9eb['side']-_0x5532d3['side']:_0x2cd9eb['level']!=_0x5532d3['level']?_0x2cd9eb['level']-_0x5532d3['level']:_0x2cd9eb['distance']!=_0x5532d3['distance']?_0x5532d3['distance']-_0x2cd9eb['distance']:!!_0x2cd9eb['isAdded']!=!!_0x5532d3['isAdded']?-0x1==_0x2cd9eb['side']||0x0==_0x2cd9eb['side']?_0x2cd9eb['isAdded']?-0x1:0x1:_0x2cd9eb['isAdded']?0x1:-0x1:_0x2cd9eb['index']-_0x5532d3['index']),{'commonTape':_0x247b59,'iEnd':_0x200312,'jEnd':_0x20da61};function _0x10d60b(_0x319f0e,_0x2af40d,_0x28bd8a){let _0x4c4945=-0x1,_0x9e57cb=Number['POSITIVE_INFINITY'],_0x5edcd3=!0x0;for(let _0x2c1a17=_0x2af40d;_0x2c1a17<_0x28bd8a;_0x2c1a17++)if(_0x115bcf['isInline'](_0x319f0e[_0x2c1a17]['item'])||(_0x5edcd3=!0x1),_0x319f0e[_0x2c1a17]['item']['startIndex']<_0x2af40d&&(_0x4c4945=_0x2c1a17),_0x319f0e[_0x2c1a17]['item']['endIndex']>=_0x28bd8a){_0x9e57cb=_0x2c1a17;break;}_0x5edcd3&&(_0x4c4945=_0x28bd8a-0x1);for(let _0x36bc39=_0x2af40d;_0x36bc39<_0x28bd8a;_0x36bc39++)_0x319f0e[_0x36bc39]['side']=_0x36bc39<=_0x4c4945?-0x1:_0x36bc39<_0x9e57cb?0x0:0x1,_0x319f0e[_0x36bc39]['index']=_0x36bc39;let _0x1e3b7e=0x0;for(let _0x247509=_0x2af40d;_0x247509<=_0x4c4945;_0x247509++)0x0==_0x319f0e[_0x247509]['distance']?_0x319f0e[_0x247509]['level']=_0x1e3b7e:(_0x1e3b7e++,_0x319f0e[_0x247509]['level']=_0x1e3b7e,_0x1e3b7e++);for(let _0x348dab=_0x2af40d;_0x348dab<_0x28bd8a;_0x348dab++)0x0==_0x319f0e[_0x348dab]['side']&&(_0x319f0e[_0x348dab]['level']=_0x1e3b7e);_0x1e3b7e=0x0;for(let _0x105c1a=_0x28bd8a-0x1;_0x105c1a>=_0x9e57cb;_0x105c1a--)0x0==_0x319f0e[_0x105c1a]['distance']?_0x319f0e[_0x105c1a]['level']=_0x1e3b7e:(_0x1e3b7e--,_0x319f0e[_0x105c1a]['level']=_0x1e3b7e,_0x1e3b7e--);}}['_fixObsoleteTags'](_0x5b5b06){const _0xeafc5d=new Map(),_0xe9a752=this['editor']['model']['schema'];for(let _0x57a2fe=0x1;_0x57a2fe<_0x5b5b06['length'];_0x57a2fe++){let _0x504211,_0x176562,_0x3c8ab4;const _0x1d3643=_0x5b5b06[_0x57a2fe],_0xe7b3a5=_0x5b5b06[_0x57a2fe-0x1];if('text'==_0x1d3643['type'])continue;if(_0x1d3643['type']!=_0xe7b3a5['type'])continue;if(!_0xe9a752['isBlock'](_0xe7b3a5['item'])||_0xe9a752['isLimit'](_0xe7b3a5['item']))continue;if(!_0xe9a752['isBlock'](_0x1d3643['item'])||_0xe9a752['isLimit'](_0x1d3643['item']))continue;if((_0x5b5b06[_0x57a2fe]['isAdded']||_0x5b5b06[_0x57a2fe]['isAddSuggestion'])&&_0x5b5b06[_0x57a2fe-0x1]['isRemoved'])_0x504211=_0x5b5b06[_0x57a2fe],_0x176562=_0x5b5b06[_0x57a2fe-0x1],_0x3c8ab4=_0x57a2fe-0x1;else{if(!_0x5b5b06[_0x57a2fe]['isRemoved']||!_0x5b5b06[_0x57a2fe-0x1]['isAdded']&&!_0x5b5b06[_0x57a2fe-0x1]['isAddSuggestion'])continue;_0x504211=_0x5b5b06[_0x57a2fe-0x1],_0x176562=_0x5b5b06[_0x57a2fe],_0x3c8ab4=_0x57a2fe;}const _0x5e92d0=_0x504211['level']==_0x176562['level'],_0x4d04a7=Math['abs'](_0x504211['level'])<Math['abs'](_0x176562['level'])&&0x0==_0x176562['distance'];(_0x5e92d0||_0x4d04a7)&&(_0xeafc5d['set'](_0x176562['id'],_0x504211['id']),_0x5b5b06['splice'](_0x3c8ab4,0x1),_0x57a2fe--,_0x504211['isAdded']=!0x1);}for(let _0x3e7ea4=0x0;_0x3e7ea4<_0x5b5b06['length'];_0x3e7ea4++)_0xeafc5d['has'](_0x5b5b06[_0x3e7ea4]['pairId'])&&(_0x5b5b06[_0x3e7ea4]['pairId']=_0xeafc5d['get'](_0x5b5b06[_0x3e7ea4]['pairId']));}['_removeMissingPairs'](_0x136a6d){const _0x584409=new Set(_0x136a6d['map'](_0x50e67d=>_0x50e67d['id']));for(let _0x5da352=0x0;_0x5da352<_0x136a6d['length'];_0x5da352++)_0x584409['has'](_0x136a6d[_0x5da352]['pairId'])||0x0==_0x136a6d[_0x5da352]['distance']||(_0x136a6d[_0x5da352]['isIncorrect']=!0x0);return _0x136a6d['filter'](_0x187ce5=>!_0x187ce5['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4be1df){const _0x3c5e12=new Set();for(let _0x344c98=0x0;_0x344c98<_0x4be1df['length'];_0x344c98++){if(_0x3c5e12['has'](_0x4be1df[_0x344c98]['id'])&&_0x4be1df[_0x344c98]['isRemoved']&&(_0x4be1df[_0x344c98]['isIncorrect']=!0x0),_0x4be1df[_0x344c98]['isIncorrect'])continue;if(0x0==_0x4be1df[_0x344c98]['distance'])continue;if('elementStart'!=_0x4be1df[_0x344c98]['type'])continue;if(null==_0x4be1df[_0x344c98]['pairId'])continue;let _0x26bb7a=_0x344c98+0x1,_0x3e1c55=0x0;for(;_0x4be1df[_0x26bb7a]['id']!=_0x4be1df[_0x344c98]['pairId'];)'elementStart'==_0x4be1df[_0x26bb7a]['type']?_0x3e1c55++:'elementEnd'==_0x4be1df[_0x26bb7a]['type']&&_0x3e1c55--,_0x26bb7a++;if(0x0!=_0x3e1c55){if(_0x4be1df[_0x344c98]['isRemoved'])_0x4be1df[_0x344c98]['isIncorrect']=!0x0;else{for(;_0x26bb7a!=_0x344c98;)_0x4be1df[_0x26bb7a]['isRemoved']&&0x0!=_0x4be1df[_0x26bb7a]['distance']&&(_0x4be1df[_0x26bb7a]['isIncorrect']=!0x0,_0x3c5e12['add'](_0x4be1df[_0x26bb7a]['pairId'])),_0x26bb7a--;}}}return _0x4be1df['filter'](_0x5843ff=>!_0x5843ff['isIncorrect']);}['_removeUnsupportedChanges'](_0x8c9caa){const _0x1a089e=this['editor']['model']['schema'];for(let _0x2b87fd=0x0;_0x2b87fd<_0x8c9caa['length'];_0x2b87fd++){if(!(_0x8c9caa[_0x2b87fd]['isAdded']||_0x8c9caa[_0x2b87fd]['isAddSuggestion']||_0x8c9caa[_0x2b87fd]['isRemoved']||_0x8c9caa[_0x2b87fd]['isRemoveSuggestion']))continue;if(0x0==_0x8c9caa[_0x2b87fd]['distance'])continue;const _0x215ea3=_0x8c9caa[_0x2b87fd]['item'];_0x1a089e['isBlock'](_0x215ea3)||_0x1a089e['isLimit'](_0x215ea3)||(_0x8c9caa[_0x2b87fd]['isAdded']&&delete _0x8c9caa[_0x2b87fd]['isAdded'],_0x8c9caa[_0x2b87fd]['isAddSuggestion']&&delete _0x8c9caa[_0x2b87fd]['isAddSuggestion'],_0x8c9caa[_0x2b87fd]['isRemoveSuggestion']&&delete _0x8c9caa[_0x2b87fd]['isRemoveSuggestion'],_0x8c9caa[_0x2b87fd]['isRemoved']&&(_0x8c9caa[_0x2b87fd]['isIncorrect']=!0x0));}return _0x8c9caa['filter'](_0x56ee74=>!_0x56ee74['isIncorrect']);}['_makeModelFromTape'](_0x720d4c,_0x324503,_0xec3f19){const _0x35918e=new wt(),_0x38794a=[],_0x502a07=new Map(),_0x7c1729=this['editor']['model'],_0x55eccf=_0x7c1729['schema'],_0x405ba5=[_0x35918e],_0x2413e2={},_0x1feb98={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x6ac410=null;const _0x15e2ca=[0x0];for(let _0x1c2fca=0x0;_0x1c2fca<_0x720d4c['length'];_0x1c2fca++)if('elementStart'===_0x720d4c[_0x1c2fca]['type']){_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca);const _0x3306df=new ft(_0x720d4c[_0x1c2fca]['item']['name'],_0x720d4c[_0x1c2fca]['item']['getAttributes']());_0x405ba5[0x0]['_appendChild'](_0x3306df),_0x15e2ca['push'](0x0),_0x405ba5['unshift'](_0x3306df),_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca);}else'elementEnd'===_0x720d4c[_0x1c2fca]['type']?(_0x405ba5['shift'](),_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca),_0x15e2ca['pop'](),_0x15e2ca[_0x15e2ca['length']-0x1]++,_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca)):(_0x720d4c[_0x1c2fca]['previousPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca),_0x6ac410?_0x6ac410['_data']+=_0x720d4c[_0x1c2fca]['item']['data']:_0x6ac410=new _t(_0x720d4c[_0x1c2fca]['item']['data'],_0x720d4c[_0x1c2fca]['item']['getAttributes']()),_0x720d4c[_0x1c2fca+0x1]&&'text'===_0x720d4c[_0x1c2fca+0x1]['type']&&_0x160049(_0x6ac410,_0x720d4c[_0x1c2fca+0x1]['item'])||(_0x405ba5[0x0]['_appendChild'](_0x6ac410),_0x6ac410=null),_0x15e2ca[_0x15e2ca['length']-0x1]+=_0x720d4c[_0x1c2fca]['item']['offsetSize'],_0x720d4c[_0x1c2fca]['nextPosition']=_0x7c1729['createPositionFromPath'](_0x35918e,_0x15e2ca));for(let _0x1c959e=0x0;_0x1c959e<_0x720d4c['length'];_0x1c959e++){const _0x42f613=_0x720d4c[_0x1c959e]['previousPosition'],_0x1449e5=_0x720d4c[_0x1c959e]['nextPosition'];for(const _0x4228ea of _0x720d4c[_0x1c959e]['markersStart'])_0x502a07['set'](_0x4228ea,{'start':_0x42f613,'end':null});_0x2a309c('isRemoveSuggestion',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isAddSuggestion',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isRemoved',_0x1c959e,_0x42f613,_0x1449e5),_0x2a309c('isAdded',_0x1c959e,_0x42f613,_0x1449e5);for(const _0x594c90 of _0x720d4c[_0x1c959e]['markersEnd']){_0x502a07['get'](_0x594c90)['end']=_0x1449e5;}}for(const [_0x3621c8,_0x1b121f]of _0x502a07){const _0x423102=this['editor']['model']['createRange'](_0x1b121f['start'],_0x1b121f['end']);_0x35918e['markers']['set'](_0x3621c8,_0x423102);}return _0x38794a['sort']((_0x46976a,_0x2dad2b)=>{const _0x1663d5=_0x35918e['markers']['get']('revision:'+_0x46976a['id']),_0x3ebd44=_0x35918e['markers']['get']('revision:'+_0x2dad2b['id']);return _0x1663d5['start']['isBefore'](_0x3ebd44['start'])?-0x1:_0x1663d5['start']['isAfter'](_0x3ebd44['start'])?0x1:_0x1663d5['end']['isBefore'](_0x3ebd44['end'])?-0x1:_0x1663d5['end']['isAfter'](_0x3ebd44['end'])?0x1:'add'===_0x46976a['type']?-0x1:0x1;}),{'root':_0x35918e,'changes':_0x38794a};function _0x2a309c(_0x17e5cd,_0x428182,_0x31921c,_0x51a500){const _0x38fc9e=!!_0x720d4c[_0x428182][_0x17e5cd],_0x3a7a0d=_0x38fc9e?_0x720d4c[_0x428182][_0x17e5cd]['userId']:null,_0x19917b=_0x428182===_0x720d4c['length']-0x1,_0x30a8c3=_0x1feb98[_0x17e5cd][0x0],_0x3aa00f=_0x55eccf['isObject'](_0x720d4c[_0x428182]['item']);!_0x2413e2[_0x17e5cd]&&_0x38fc9e?_0x2413e2[_0x17e5cd]={'start':_0x31921c,'tapeItem':_0x720d4c[_0x428182],'userId':_0x3a7a0d,'type':_0x17e5cd}:_0x2413e2[_0x17e5cd]&&!_0x38fc9e?(_0x2413e2[_0x17e5cd]['end']=_0x31921c,_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]=null):_0x2413e2[_0x17e5cd]&&_0x38fc9e&&_0x2413e2[_0x17e5cd]['userId']!==_0x3a7a0d&&(_0x2413e2[_0x17e5cd]['end']=_0x31921c,_0x30a8c3&&_0x30a8c3['userId']===_0x2413e2[_0x17e5cd]['userId']||_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]={'start':_0x31921c,'tapeItem':_0x720d4c[_0x428182],'userId':_0x3a7a0d,'type':_0x17e5cd}),_0x2413e2[_0x17e5cd]&&_0x3aa00f&&('elementStart'!==_0x720d4c[_0x428182]['type']||_0x30a8c3&&_0x30a8c3['userId']===_0x3a7a0d||_0x1feb98[_0x17e5cd]['unshift']({'userId':_0x3a7a0d,'object':_0x720d4c[_0x428182]['item'],'change':_0x2413e2[_0x17e5cd]}),'elementEnd'===_0x720d4c[_0x428182]['type']&&_0x30a8c3&&_0x30a8c3['object']===_0x720d4c[_0x428182]['item']&&(_0x1feb98[_0x17e5cd]['shift'](),_0x2413e2[_0x17e5cd]=_0x30a8c3['change'])),_0x2413e2[_0x17e5cd]&&_0x19917b&&(_0x2413e2[_0x17e5cd]['end']=_0x51a500,_0x338464(_0x2413e2[_0x17e5cd]),_0x2413e2[_0x17e5cd]=null);}function _0x338464({start:_0x1aa512,end:_0xff4cf6,tapeItem:_0x4e3d48,userId:_0x33b825,type:_0x47828b}){const _0xcaf971=_0x4e3d48['item'],_0x442289=_0x7c1729['schema']['isBlock'](_0xcaf971)&&!_0x7c1729['schema']['isLimit'](_0xcaf971),_0x1d5025=_0x1aa512['nodeAfter']==_0xff4cf6['parent']&&_0xff4cf6['isAtStart'];if(_0x442289&&_0x1d5025)return;const _0x18d8d3=_0x7c1729['createRange'](_0x1aa512,_0xff4cf6),_0x10bdf6=_0x324503['get'](_0x33b825),_0x2ff90e=new r({'author':_0x10bdf6,'type':'isAdded'==_0x47828b||'isAddSuggestion'==_0x47828b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x47828b||'isRemoveSuggestion'==_0x47828b},'createdAt':new Date(),'rootName':_0xec3f19});_0x38794a['push'](_0x2ff90e),_0x35918e['markers']['set']('revision:'+_0x2ff90e['id'],_0x18d8d3);}function _0x160049(_0x11a51a,_0xff702e){const _0x4dac59=_0x11a51a['getAttributes'](),_0x52ec91=_0xff702e['getAttributes']();for(const _0x307189 of _0x4dac59){if(_0x307189[0x1]!==_0xff702e['getAttribute'](_0x307189[0x0]))return!0x1;_0x52ec91['next']();}return _0x52ec91['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x12ef21=>{const _0x48d509=_0x12ef21['markerName']['split'](':')[0x1],_0x186a14=this['_getChangeFromId'](_0x48d509);if(!_0x186a14)return null;const _0x4ac026='add'==_0x186a14['type']?'insertion':'deletion',_0x4e9a06=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4ac026];return _0x186a14['data']['isSuggestion']&&_0x4e9a06['push']('ck-suggestion-marker-'+_0x4ac026+'-new'),this['activeChange']==_0x186a14&&_0x4e9a06['push']('ck-suggestion-marker--active'),{'classes':_0x4e9a06,'attributes':{'data-change-id':_0x48d509}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x300b66=>{_0x300b66['on']('element:pre',(_0x5468e8,_0x50c95e,_0x3a803e)=>{const _0x3f63e2=_0x50c95e['viewItem']['getChild'](0x0);if(!_0x3f63e2||!_0x3f63e2['is']('element','code'))return;if(!_0x3a803e['consumable']['consume'](_0x3f63e2,{'attributes':['vid_start','vid_end']}))return;const _0x2bee65=_0x50c95e['modelRange']['start']['nodeAfter'];_0x3a803e['writer']['setAttribute']('vid_start',_0x3f63e2['getAttribute']('vid_start'),_0x2bee65),_0x3a803e['writer']['setAttribute']('vid_end',_0x3f63e2['getAttribute']('vid_end'),_0x2bee65);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x58e7c2=>{_0x58e7c2['on']('element',(_0x140bd1,_0x3ebe38,_0x4ea50f)=>{if(!_0x4ea50f['consumable']['consume'](_0x3ebe38['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ebe38['modelRange']['isCollapsed'])return;const _0x2ea93a=_0x3ebe38['modelRange']['start']['nodeAfter'];_0x2ea93a['hasAttribute']('vid_start')||_0x2ea93a['hasAttribute']('vid')||(_0x4ea50f['writer']['setAttribute']('vid_start',_0x3ebe38['viewItem']['getAttribute']('vid_start'),_0x2ea93a),_0x4ea50f['writer']['setAttribute']('vid_end',_0x3ebe38['viewItem']['getAttribute']('vid_end'),_0x2ea93a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x556a3d=>_0x556a3d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2f32c0,[,_0x1ac732])=>{['vid_start','vid_end','vid']['includes'](_0x1ac732)&&(_0x2f32c0['return']=!0x0,_0x2f32c0['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x149cfb=>{_0x149cfb['on']('attribute:vid',(_0x5a34f1,_0x33855f,_0x28468a)=>{if('\x20'!=_0x33855f['item']['data']||_0x33855f['item']['parent']['maxOffset']>0x1)return;if(!_0x28468a['consumable']['consume'](_0x33855f['item'],_0x5a34f1['name']))return;const _0x1ce5db=_0x28468a['writer'],_0x541f08=_0x28468a['mapper']['toViewRange'](_0x33855f['range']);_0x1ce5db['wrap'](_0x541f08,_0x1ce5db['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x342ba4){const _0x4e1d21=_0x342ba4['plugins']['get']('RevisionViewer');return(_0x1b617b,_0x741401,_0x16da06)=>{const _0x1b6abc=_0x741401['markerName']['split'](':')[0x1],_0x46165e=_0x4e1d21['_getChangeFromId'](_0x1b6abc);if(!_0x46165e)return null;const _0x1818c6='add'==_0x46165e['type']?'split':'merge';if(!_0x16da06['consumable']['test'](_0x741401['markerRange'],_0x1b617b['name']))return;const _0x198466=_0x741401['markerRange']['getWalker'](),_0x42ef35=_0x741401['markerRange']['start'],_0x53329e=_0x342ba4['model']['schema'];let _0x161404=null,_0x3d52bd=null,_0x413ce5=!0x1,_0x5d106c=!0x1;for(const _0x28cd05 of _0x198466){const _0x13191d=_0x28cd05['item'];_0x413ce5=_0x413ce5||_0x53329e['isContent'](_0x13191d);const _0xbb87d1=_0x16da06['mapper']['toViewElement'](_0x13191d);if(_0xbb87d1&&_0xbb87d1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x28cd05['type']&&(_0x53329e['isBlock'](_0x13191d)&&!_0x53329e['isLimit'](_0x13191d)&&(_0x13191d['nextSibling']||_0x42ef35['isAtEnd']?_0x161404&&_0x161404['parent']==_0x13191d||(_0x161404=_0x13191d,_0x488a52(_0x28cd05['previousPosition']),_0x5d106c=!0x0):_0x3d52bd=_0x3d52bd||_0x28cd05['previousPosition']));}function _0x488a52(_0x275a18){const _0x4de643=_0x16da06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1818c6}),_0x3c6bb4=_0x16da06['mapper']['toViewPosition'](_0x275a18);_0x46165e['data']['isSuggestion']&&_0x16da06['writer']['addClass']('ck-suggestion-marker-'+_0x1818c6+'-new',_0x4de643),_0x4e1d21['activeChange']==_0x46165e&&_0x16da06['writer']['addClass']('ck-suggestion-marker--active',_0x4de643),_0x16da06['writer']['insert'](_0x3c6bb4,_0x4de643),_0x16da06['mapper']['bindElementToMarker'](_0x4de643,_0x741401['markerName']);}_0x413ce5||_0x5d106c||!_0x3d52bd||_0x488a52(_0x3d52bd);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x26e809,_0x28ce1f,_0x32c813)=>{const _0x3a2515=_0x32c813['mapper']['markerNameToElements'](_0x28ce1f['markerName']);if(_0x3a2515){for(const _0x52b34f of _0x3a2515)(_0x52b34f['hasClass']('ck-suggestion-marker-split')||_0x52b34f['hasClass']('ck-suggestion-marker-merge'))&&(_0x32c813['mapper']['unbindElementFromMarkerName'](_0x52b34f,_0x28ce1f['markerName']),_0x32c813['writer']['remove'](_0x52b34f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x52af8e,_0x5430e4,_0x1011bd)=>{const _0x2edfb5=_0x5430e4['markerName']['split'](':')[0x1],_0x852d9d=this['_getChangeFromId'](_0x2edfb5);if(!_0x852d9d)return null;const _0x3bf632='add'==_0x852d9d['type']?'split':'merge';if(_0x1011bd['consumable']['test'](_0x5430e4['markerRange'],_0x52af8e['name']))for(const _0x20509f of _0x5430e4['markerRange']['getItems']()){if(!_0x20509f['is']('element','softBreak'))continue;const _0x40a078=_0x1011bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3bf632}),_0x1ab5a0=_0x1011bd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x20509f));_0x852d9d['data']['isSuggestion']&&_0x1011bd['writer']['addClass']('ck-suggestion-marker-'+_0x3bf632+'-new',_0x40a078),this['activeChange']==_0x852d9d&&_0x1011bd['writer']['addClass']('ck-suggestion-marker--active',_0x40a078),_0x1011bd['writer']['insert'](_0x1ab5a0,_0x40a078),_0x1011bd['mapper']['bindElementToMarker'](_0x40a078,_0x5430e4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x41a2ab=>{for(const _0x14bfe3 of this['editor']['model']['document']['getRootNames']()){const _0x31af72=this['editor']['model']['document']['getRoot'](_0x14bfe3),_0x166b94=this['editor']['editing']['view']['document']['getRoot'](_0x14bfe3);if(_0x166b94){const _0x2e8fc3=_0x31af72['getAttribute']('revisionHistoryAttachChange');if(_0x41a2ab['removeAttribute']('data-change-id',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root-add',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root-remove',_0x166b94),_0x41a2ab['removeClass']('ck-revision-history-root--active',_0x166b94),_0x2e8fc3){const _0x340c97=this['_getChangeFromId'](_0x2e8fc3);if(!_0x340c97)return null;_0x41a2ab['setAttribute']('data-change-id',_0x2e8fc3,_0x166b94),_0x41a2ab['addClass']('ck-revision-history-root-'+_0x340c97['type'],_0x166b94),this['activeChange']==_0x340c97&&_0x41a2ab['addClass']('ck-revision-history-root--active',_0x166b94);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xc73da7=>'revision-comment:'+_0xc73da7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x494d71=>'revision-suggestion:'+_0x494d71,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x13c7fc=>({'name':'suggestion:'+_0x13c7fc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3307e0=>{const _0x3f9950=_0x3307e0['markerName']['split'](':')[0x1];return'insertion'!=_0x3f9950&&'deletion'!=_0x3f9950?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3f9950]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x40c28d,_0x19041e,_0x511397)=>{const _0x4474bd=_0x511397['mapper']['markerNameToElements'](_0x19041e['markerName']);if(_0x4474bd){for(const _0x62ede1 of _0x4474bd)_0x62ede1['is']('uiElement')&&(_0x511397['mapper']['unbindElementFromMarkerName'](_0x62ede1,_0x19041e['markerName']),_0x511397['writer']['remove'](_0x62ede1));}},{'priority':'high'});}['_getChangeFromId'](_0x5be9ce){return this['_changeIdToChange']['get'](_0x5be9ce);}['_getViewForChange'](_0x5a821a){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5a821a),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x113ba6,_0x283d78,_0x246a70,_0x4c6505)=>{_0x4c6505&&this['_balloon']['remove'](_0x4c6505),_0x246a70&&(this['_balloon']['add']({'view':_0x246a70,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x29a0f3=this['editor']['editing'],_0x54bf4b=this['_getChangeFromId'](_0x246a70['changeId']);let _0x300987;if(_0x54bf4b['data']['isOnRoot']){const _0x541663=_0x29a0f3['view']['getDomRoot'](_0x54bf4b['rootName']);_0x300987=Array['from'](_0x541663['getClientRects']());}else{const _0x4917a8=this['editor']['model']['markers']['get']('revision:'+_0x246a70['changeId']);_0x300987=Array['from'](_0x29a0f3['mapper']['markerNameToElements'](_0x4917a8['name']))['map'](_0x4ff298=>_0x29a0f3['view']['domConverter']['mapViewToDom'](_0x4ff298))['map'](_0x391efd=>Array['from'](_0x391efd['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x300987[0x0];return _0x300987['find'](_0xeedcd2=>_0xeedcd2['top']-0x3<=this['_activeViewTarget']['y']&&_0xeedcd2['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xeedcd2['left']-0x3<=this['_activeViewTarget']['x']&&_0xeedcd2['right']+0x3>=this['_activeViewTarget']['x'])||_0x300987[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x280fbc,_0x1b8edc,_0x32aee,_0x245756)=>{this['activeView']=_0x32aee?this['_getViewForChange'](_0x32aee):null,this['editor']['model']['change'](()=>{const _0xb23f5a=this['editor']['editing'];_0x245756&&(_0x245756['data']['isOnRoot']?_0xb23f5a['view']['change'](_0x2e2f10=>{_0x2e2f10['removeClass']('ck-revision-history-root--active',_0xb23f5a['view']['document']['getRoot'](_0x245756['rootName']));}):_0xb23f5a['reconvertMarker']('revision:'+_0x245756['id'])),_0x32aee&&(_0x32aee['data']['isOnRoot']?_0xb23f5a['view']['change'](_0x49ca3c=>{_0x49ca3c['addClass']('ck-revision-history-root--active',_0xb23f5a['view']['document']['getRoot'](_0x32aee['rootName']));}):_0xb23f5a['reconvertMarker']('revision:'+_0x32aee['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xf584da,_0x5e291c)=>{if(this['activeChange'])return;const _0x47b78a=this['_findChangeIdFromDomTarget'](_0x5e291c['target']),_0xf73df5=this['_changeIdToChange']['get'](_0x47b78a);_0xf73df5?(this['_activeViewTarget']={'x':_0x5e291c['domEvent']['x'],'y':_0x5e291c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xf73df5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2871e9,_0x2bc8e6)=>{const _0x8330ec=this['_findChangeIdFromDomTarget'](_0x2bc8e6['target']),_0x283e75=this['_changeIdToChange']['get'](_0x8330ec);_0x283e75?(this['_activeViewTarget']={'x':_0x2bc8e6['domEvent']['x'],'y':_0x2bc8e6['domEvent']['y']},_0x283e75===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x283e75):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x17d6e7){do{const _0x4924dd=_0x17d6e7['getAttribute']('data-change-id');if(_0x4924dd)return _0x4924dd;_0x17d6e7=_0x17d6e7['parent'];}while(_0x17d6e7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x50f901=>{for(const _0x4d75ec of this['editor']['model']['markers'])_0x50f901['removeMarker'](_0x4d75ec);});}}function tt(_0x2312b8,_0x56a552){return(_0x4a173b,_0x5a03a3,_0x2187e5)=>{if(!_0x2187e5['consumable']['test'](_0x5a03a3['markerRange'],_0x4a173b['name']))return;const _0x48eddd=_0x5a03a3['markerRange']['getWalker'](),_0x599c64=_0x5a03a3['markerRange']['start'],_0x5938cd=_0x2312b8['model']['schema'];let _0x4866cc=null,_0x2d8324=null,_0x5907a1=!0x1,_0x4e21ec=!0x1;for(const _0x4fd88b of _0x48eddd){const _0x34e312=_0x4fd88b['item'];_0x5907a1=_0x5907a1||_0x5938cd['isContent'](_0x34e312);const _0x47999f=_0x2187e5['mapper']['toViewElement'](_0x34e312);if(_0x47999f&&_0x47999f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4fd88b['type']&&(_0x5938cd['isBlock'](_0x34e312)&&!_0x5938cd['isLimit'](_0x34e312)&&(_0x34e312['nextSibling']||_0x599c64['isAtEnd']?_0x4866cc&&_0x4866cc['parent']==_0x34e312||(_0x4866cc=_0x34e312,_0x46a080(_0x4fd88b['previousPosition']),_0x4e21ec=!0x0):_0x2d8324=_0x2d8324||_0x4fd88b['previousPosition']));}function _0x46a080(_0x5e9df8){const _0x3b031e=_0x2187e5['mapper']['toViewPosition'](_0x5e9df8),_0x54f687=_0x2187e5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x56a552});_0x2187e5['writer']['insert'](_0x3b031e,_0x54f687),_0x2187e5['mapper']['bindElementToMarker'](_0x54f687,_0x5a03a3['markerName']);}_0x5907a1||_0x4e21ec||!_0x2d8324||_0x46a080(_0x2d8324);};}class yt extends _0x455b3a{constructor(_0x3640a3){super(_0x3640a3);const _0x48189c=_0x3640a3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x48189c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x48189c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x25384e=this['editor'],_0x16f9a6=_0x25384e['plugins']['get'](d),_0x31f2c8=_0x16f9a6['isReady']?_0x16f9a6['diff']['newRevisionId']:null;_0x25384e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x31f2c8);}['refresh'](){const {isReady:_0x5ed7e7,isEnabled:_0x3180de,repository:_0x35e437,diff:_0xe48d5c}=this['editor']['plugins']['get'](d),_0x268578=_0xe48d5c&&_0x35e437['getLaterVisibleRevision'](_0xe48d5c['newRevisionId']);this['isEnabled']=_0x5ed7e7&&_0x3180de&&Boolean(_0x268578);}}class bt extends _0x455b3a{['_step'];constructor(_0x34d7bf,{direction:_0x527ad8}){super(_0x34d7bf);const _0x5cf3ca=_0x34d7bf['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x527ad8?0x1:-0x1,this['listenTo'](_0x5cf3ca,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5cf3ca,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5cf3ca,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x188411=this['editor'],_0x320e93=_0x188411['plugins']['get'](d),{isNavigationMode:_0x2f7754,currentChangeNumber:_0x3758b6}=_0x320e93;let _0x499577;if(_0x320e93['activeChange']=_0x2f7754?_0x320e93['diff']['changes']['get'](_0x3758b6+this['_step']):_0x320e93['diff']['changes']['first'],_0x320e93['activeChange']['data']['isOnRoot'])_0x499577=_0x188411['editing']['view']['getDomRoot'](_0x320e93['activeChange']['rootName']);else{const _0x276eaf=_0x188411['model']['markers']['get']('revision:'+_0x320e93['activeChange']['id']);_0x499577=_0x494947(_0x188411['editing'],_0x276eaf);}_0x1c6bfe({'target':_0x499577,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x17f5a9,currentChangeNumber:_0x5fe137,numberOfChanges:_0x462213,isReady:_0x24455c,isEnabled:_0x2b7526}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2b7526&&_0x24455c&&_0x462213)&&(!_0x17f5a9||(0x1===this['_step']?_0x5fe137<_0x462213-0x1:_0x5fe137>0x0));}}class _i extends _0x59c2ca{constructor(_0x3fbf8c){super(_0x3fbf8c);const _0x3185d1=this['bindTemplate'],_0x4e8041=new _0x3b013d(_0x3fbf8c),_0x2eddd2=new _0x3b013d(_0x3fbf8c);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',(_0x41b5e6,_0x3d2e5e)=>_0x41b5e6&&_0x3d2e5e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3bb14f,_0x36d0bb,_0x404058,_0x38f349)=>{if(!_0x3bb14f)return R(_0x3fbf8c,'Loading...');if(!_0x404058)return R(_0x3fbf8c,'No\x20changes');const _0x40f983=R(_0x3fbf8c,'NUMBER_OF_CHANGES',_0x404058);return _0x38f349?R(_0x3fbf8c,'X_OF_Y_CHANGES',[_0x36d0bb+0x1,_0x404058]):_0x40f983;}),_0x4e8041['set']({'label':R(_0x3fbf8c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2eddd2['set']({'label':R(_0x3fbf8c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x4e8041['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2eddd2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e8041['on']('execute',()=>this['fire']('execute','backward')),_0x2eddd2['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',_0x3185d1['if']('_isStatusLabelVisible','ck-hidden',_0x2981f4=>!_0x2981f4)]},'children':[{'text':_0x3185d1['to']('isNavigationMode',_0x598029=>_0x598029?R(_0x3fbf8c,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3fbf8c,'Total')+':\x20')}]},{'text':_0x3185d1['to']('_statusText')}]},new _0x491304(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e8041,_0x2eddd2]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5a5f64{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1801ca=this['editor']['editing']['view'];_0x1801ca['change'](_0x3456f5=>{for(const _0x3adcaf of _0x1801ca['document']['roots'])_0x3456f5['addClass'](ce,_0x3adcaf);});}['hide'](){const _0x2c9021=this['editor']['editing']['view'];_0x2c9021['change'](_0x1c05f0=>{for(const _0x526475 of _0x2c9021['document']['roots'])_0x1c05f0['removeClass'](ce,_0x526475);});}}class m extends _0x5a5f64{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x4ad935=this['editor'],_0x547c4b=_0x4ad935['plugins']['get'](d),_0x5247e8=_0x4ad935['plugins']['get'](le);_0x4ad935['ui']['componentFactory']['add']('exitToEditing',_0x3f6276=>{const _0x3bde07=new _0x3b013d(_0x3f6276);return _0x3bde07['set']({'label':R(_0x3f6276,'Back\x20to\x20editing'),'icon':_0x2b22d2['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3bde07,'execute',()=>{_0x4ad935['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3bde07;}),_0x4ad935['ui']['componentFactory']['add']('restoreRevision',_0x3355fd=>{const _0x5ed90e=new _0x3b013d(_0x3355fd);return _0x5ed90e['set']({'label':R(_0x3355fd,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5ed90e['bind']('isEnabled')['to'](_0x4ad935['commands']['get']('restoreRevision')),this['listenTo'](_0x5ed90e,'execute',()=>_0x4ad935['execute']('restoreRevision')),_0x5ed90e;}),_0x4ad935['ui']['componentFactory']['add']('changesNavigation',_0x3f30fa=>{const _0xf4e6b5=new _i(_0x3f30fa),_0x559005=_0x4ad935['commands']['get']('showPreviousChange'),_0xb9a2c6=_0x4ad935['commands']['get']('showNextChange');return _0xf4e6b5['bind']('isBackwardNavigationEnabled')['to'](_0x559005,'isEnabled'),_0xf4e6b5['bind']('isForwardNavigationEnabled')['to'](_0xb9a2c6,'isEnabled'),_0xf4e6b5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x547c4b),this['listenTo'](_0xf4e6b5,'execute',(_0x275c7e,_0x53f63b)=>{_0x4ad935['execute']('forward'===_0x53f63b?'showNextChange':'showPreviousChange');}),_0xf4e6b5;}),_0x5247e8['show'](),_0x547c4b['on']('change:isReady',(_0x155681,_0x3dd84c,_0x174515)=>{_0x174515?_0x5247e8['hide']():_0x5247e8['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x3a77db,_0x64b8ce){super(_0x3a77db,_0x64b8ce);const _0x4d18e2=this['bindTemplate'];this['set']({'label':R(_0x3a77db,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3a77db,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4d18e2['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 _0xb04384=this['fieldView']['element'];this['_tooltipString']=_0xb04384['scrollWidth']>_0xb04384['clientWidth']&&_0xb04384['value']||'';}}class ti extends _0x59c2ca{constructor(_0x1e703d,_0x392d8f,_0x275852){super(_0x1e703d);const _0xa79f2f=new _0x58f379();_0xa79f2f['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x483ffc=['ck','ck-revision-history-sidebar__revision-author'];_0x275852&&_0x483ffc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x53ca68=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1e703d,_0x275852?'Revision\x20creator':'Revision\x20author')},'children':[_0xa79f2f,_0x392d8f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x483ffc},'children':_0x53ca68});}}function ni(_0x277141,_0xa1b789){const _0x1cde6d=_0x277141['bindTemplate'],_0x3fa13a=_0x277141['locale'],_0x4a5227=_0x40e817(_0x3fa13a);_0x4a5227['panelPosition']='sw';const _0x325a83=function(_0x51cf05,_0x48acf6){const _0x3cb12f=function(_0x46f92a,_0x230ae4){const _0x55b19e=_0x46f92a['locale'],_0x200fd3={'Compare\x20against\x20selected':R(_0x55b19e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x55b19e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x55b19e,'Restore\x20this\x20revision')};return _0x230ae4['map'](_0x313e0e=>{const _0x3a4e66=_0x200fd3[_0x313e0e['name']];return _0x3a4e66&&_0x3a4e66!==_0x313e0e['name']&&(_0x313e0e['name']=_0x3a4e66),_0x313e0e;});}(_0x51cf05,_0x48acf6),_0x3a384f=new _0xc46275();for(const _0x103d7c of _0x3cb12f){const _0x559956={'type':'button','model':new to({'label':_0x103d7c['name'],'class':_0x103d7c['class'],'withText':!0x0,'role':'menuitem','_action':_0x103d7c['action']})};_0x559956['model']['bind']('isEnabled')['to'](_0x51cf05,'isActionsDropdownOpen',_0x5611bf=>'function'!=typeof _0x103d7c['isEnabled']||(!_0x5611bf||_0x103d7c['isEnabled'](_0x51cf05))),_0x3a384f['add'](_0x559956);}return _0x3a384f;}(_0x277141,_0xa1b789);return _0x277141['bind']('isActionsDropdownOpen')['to'](_0x4a5227,'isOpen'),_0x4a5227['buttonView']['set']({'label':R(_0x3fa13a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2b22d2['threeVerticalDots']}),_0x4a5227['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1cde6d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1cde6d['to'](_0x223df0=>_0x223df0['stopPropagation']())}}),_0x4a5227['on']('execute',_0x24766c=>{_0x277141['isReady']&&'function'==typeof _0x24766c['source']['_action']&&_0x24766c['source']['_action'](_0x277141);}),_0x1d8c31(_0x4a5227,_0x325a83,{'role':'menu'}),_0x4a5227['listenTo'](_0x277141,'change:isActionsDropdownOpen',(_0x1740a6,_0xf4a1f2,_0x1f5040)=>{if(_0x1f5040)for(const _0x27972b of _0x4a5227['listView']['items']){const _0x16509c=_0x27972b['children']['first'],_0x13114e=_0xa1b789['find'](_0x58b106=>_0x58b106['action']===_0x16509c['_action'])['isVisible'];_0x27972b['isVisible']=void 0x0===_0x13114e||_0x13114e(_0x277141);}}),_0x4a5227;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x3151ef(_0x59c2ca){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1bdfdb,_0x54596d,_0xfa0d9b,_0x566cb1){super(_0x1bdfdb);const _0x3239b3=this['bindTemplate'],_0x3cad78=function(_0x1f9618,_0x20e3be){const _0x4c52e0=Array['from'](_0x20e3be['authors'])['filter'](_0x3e5d29=>_0x3e5d29!=_0x20e3be['creator']);return _0x20e3be['creator']&&_0x4c52e0['unshift'](_0x20e3be['creator']),_0x4c52e0['map'](_0x3d7f7f=>new ti(_0x1f9618,_0x3d7f7f,_0x3d7f7f==_0x20e3be['creator']));}(_0x1bdfdb,_0x54596d);this['id']=_0x54596d['id'],this['_revision']=_0x54596d,this['_requireRevisionName']=_0x566cb1,this['bind']('name','createdAt')['to'](_0x54596d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x63956=>{return _0x2872cb=_0x1bdfdb['uiLanguage'],(_0x16effe=_0x63956)['toLocaleDateString'](_0x2872cb,{'month':'long','day':'numeric'})+',\x20'+_0x16effe['toLocaleTimeString'](_0x2872cb,{'hour':'numeric','minute':'numeric'});var _0x2872cb,_0x16effe;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x1bdfdb,_0x2931d8),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3503e4=>_0x3503e4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x107f26,_0x5a26d7)=>_0x107f26&&_0x5a26d7),this['revisionActionsView']=_0xfa0d9b&&_0xfa0d9b['length']?ni(this,_0xfa0d9b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3239b3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3239b3['if']('isEnabled','ck-disabled',_0x1a1755=>!_0x1a1755),_0x3239b3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3239b3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3239b3['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':_0x3239b3['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':_0x3cad78}]},this['revisionActionsView']],'on':{'click':_0x3239b3['to'](_0x24c4d7=>{_0x24c4d7['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1b577a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1b577a,'change',()=>{this['_requireRevisionName']&&!_0x1b577a['value']||this['fire']('setName',{'id':this['id'],'name':_0x1b577a['value']}),_0x1b577a['value']||(_0x1b577a['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x584a07,_0x1ab3de){const _0x490483=_0x3dbd8b['fromJSDate'](_0x584a07)['setLocale'](_0x1ab3de),_0xeb316d=_0x3dbd8b['local'](),_0x20e2bd=_0xeb316d['minus']({'days':0x1})['startOf']('day');let _0x175bda,_0xcf22c8;return _0x490483['hasSame'](_0xeb316d,'day')?(_0x175bda=_0x490483['startOf']('day')['toJSDate'](),_0xcf22c8=_0x490483['toRelativeCalendar']()):_0x490483['hasSame'](_0x20e2bd,'day')?(_0x175bda=_0x20e2bd['toJSDate'](),_0xcf22c8=_0x490483['toRelativeCalendar']()):_0x490483['hasSame'](_0xeb316d,'week')?(_0x175bda=_0x490483['startOf']('week')['toJSDate'](),_0xcf22c8=_0x490483['weekdayLong']||''):_0x490483['hasSame'](_0xeb316d,'year')?(_0x175bda=_0x490483['startOf']('month')['toJSDate'](),_0xcf22c8=_0x490483['monthLong']||''):(_0x175bda=_0x490483['startOf']('year')['toJSDate'](),_0xcf22c8=String(_0x490483['year'])),{'startDate':_0x175bda,'localizedPeriodName':_0xcf22c8};}class mi extends _0x59c2ca{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58b29b,_0x6fd646,_0x3935a4,_0x10d5b6){super(_0x58b29b);const _0x13afe6=di(_0x6fd646,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x6fd646,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3935a4,this['_requireRevisionName']=_0x10d5b6,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':_0x13afe6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x54ccd0){const _0x99fcb9=new ai(this['locale'],_0x54ccd0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x99fcb9);}['removeRevision'](_0x5c0d3d){const _0x3dd76f=this['revisionViews']['find'](_0x524b7e=>_0x524b7e['id']===_0x5c0d3d['id']);this['revisionViews']['remove'](_0x3dd76f);}}class rs extends _0x59c2ca{constructor(_0x491366){super(_0x491366);const _0x4bce6b=new _0x58f379();_0x4bce6b['content']=_0x2b22d2['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4bce6b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x491366,'Revision\x20history')]}]});}}class ci extends _0x59c2ca{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3650e8,_0x92dc43,_0x36f038,_0x15a769){super(_0x3650e8);const _0x23bca1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x92dc43,this['_revisionActions']=_0x36f038,this['_requireRevisionName']=_0x15a769,this['on']('select',(_0x1a0c33,_0x35e8c7)=>{this['fire']('revisionSelected',_0x35e8c7);}),this['on']('setName',(_0x917d0d,_0x1fce9b)=>{this['fire']('revisionSetName',_0x1fce9b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x3650e8),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x23bca1['if']('isEnabled','ck-disabled',_0xe3668f=>!_0xe3668f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5364a0 of this['_revisions'])this['_addRevision'](_0x5364a0);this['_revisions']['on']('add',(_0x6eae1f,_0x418e21)=>{this['_addRevision'](_0x418e21);}),this['_revisions']['on']('remove',(_0x2f2af0,_0x53c9f6)=>{this['_removeRevision'](_0x53c9f6);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5a203b=>_0x5a203b['revisionViews']['map'](_0x5c3146=>_0x5c3146))['flat']();}['selectRevision'](_0x36a85b){for(const _0x9e8d1d of this['revisionViews'])_0x36a85b&&_0x36a85b['id']===_0x9e8d1d['id']?_0x9e8d1d['select']():_0x9e8d1d['deselect']();}['highlightRevisions'](_0x4cf5ae){for(const _0x1da81b of this['revisionViews'])_0x4cf5ae['some'](({id:_0x4d1d1c})=>_0x4d1d1c===_0x1da81b['id'])?_0x1da81b['highlight']():_0x1da81b['unhighlight']();}['_addRevision'](_0x36adbb){const _0x2e3040=di(_0x36adbb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36fa1d=this['timePeriodViews']['get'](0x0);_0x36fa1d&&_0x36fa1d['startDate']['getTime']()===_0x2e3040['getTime']()||(_0x36fa1d=new mi(this['locale'],_0x2e3040,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36fa1d)),_0x36fa1d['addRevision'](_0x36adbb);}['_removeRevision'](_0x33a0ef){const _0xb19cc4=di(_0x33a0ef['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xb19cc4)['removeRevision'](_0x33a0ef);}['_getTimePeriodViewByStartDate'](_0x9ba463){return this['timePeriodViews']['find'](_0x205139=>_0x205139['startDate']['getTime']()===_0x9ba463['getTime']());}}class g extends _0x5a5f64{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0xfe4998,uid as _0x119d0b,Collection as _0x3fb858,logWarning as _0x135dde,FocusTracker as _0x3b3378,KeystrokeHandler as _0x178d9d,scrollViewportToShowTarget as _0x4741af,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x406c6c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4de36a,set as _0x28c9cc,unset as _0x54d35c,isEqual as _0x497f6}from'lodash-es';import{Plugin as _0x41d97b,PendingActions as _0x4a1232,icons as _0x536204,Command as _0x42c4ef,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x371067,getMarkerDomElement as _0x50cf16,ConfirmMixin as _0x1f7203,sanitizeEditorConfig as _0x9356d4}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2ff272,ViewText as _0x5819cc,ViewElement as _0x17cad2,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x880e00,ViewAttributeElement as _0x157de6,ViewEmptyElement as _0x53cb6d,ViewRawElement as _0x3add22,ViewUIElement as _0x1b5e13,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x41b252,submitHandler as _0x41d6b9,LabeledFieldView as _0x2b20cf,createLabeledInputText as _0x2765cf,createDropdown as _0xa55c8b,ListView as _0x5f2c5e,ListItemView as _0x3f3f14,ButtonView as te,MenuBarMenuView as _0x560a34,MenuBarMenuListView as _0x2543f3,MenuBarMenuListItemView as _0x377068,MenuBarMenuListItemButtonView as _0x1692f1,ContextualBalloon as _0x48c3b2,ToolbarSeparatorView as _0x32311f,IconView as _0x3bdf85,addListToDropdown as to,ViewModel as _0x22060f,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x25d485}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0xfe4998(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3047c5){super(),this['id']=_0x3047c5['id']||_0x119d0b(),this['creator']=_0x3047c5['creator']||null,this['authors']=_0x3047c5['authors']||[],this['diffData']=_0x3047c5['diffData']||null,this['toVersion']=_0x3047c5['toVersion']||0x0,this['fromVersion']=_0x3047c5['fromVersion']||0x0,this['set']('name',_0x3047c5['name']||''),this['set']('createdAt',_0x3047c5['createdAt']||new Date()),this['set']('attributes',_0x3047c5['attributes']||{});}['setName'](_0xd8f419){this['_update']({'name':_0xd8f419});}['setAttribute'](_0x33a3e0,_0x2a8127){const _0x49f1d8=_0x4de36a(this['attributes']);_0x28c9cc(_0x49f1d8,_0x33a3e0,_0x2a8127),this['_update']({'attributes':_0x49f1d8});}['removeAttribute'](_0x2d5d91){const _0x37875a=_0x4de36a(this['attributes']);_0x54d35c(_0x37875a,_0x2d5d91),this['_update']({'attributes':_0x37875a});}['_update'](_0x3ffb76,_0x58de8e=!0x1){let _0x5e5ee7=!0x1;const _0x2e309f={'id':this['id']},_0x31cd5b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5932a5 of _0x31cd5b){const _0x159f0a=_0x3ffb76[_0x5932a5];void 0x0!==_0x159f0a&&_0x159f0a!==this[_0x5932a5]&&(this[_0x5932a5]=_0x159f0a,_0x2e309f[_0x5932a5]=_0x159f0a,_0x5e5ee7=!0x0);}_0x5e5ee7&&(_0x2e309f['authors']&&(_0x2e309f['authorsIds']=_0x2e309f['authors']['map'](_0x26fb8b=>_0x26fb8b['id']),delete _0x2e309f['authors']),this['fire']('_update',_0x2e309f,_0x58de8e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x201250=>_0x201250['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x41d97b{['_revisions'];static get['requires'](){return[_0x371067];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x42d8de){super(_0x42d8de),this['_revisions']=new _0x3fb858();}['afterInit'](){!async function(_0xa747d1){const _0x3d0f41=_0x24472d([0x33,0x70,0x35,0x69,0x65,0x6d,0x57,0x34,0x77,0x4d,0x4f,0x43,0x6f,0x4c,0x78,0x59,0x36,0x44,0x6e,0x75,0x4a,0x5a,0x58,0x76,0x66,0x41,0x71,0x4b,0x64,0x55,0x56,0x37,0x51,0x4e,0x50,0x6c,0x39,0x63,0x52,0x74,0x54,0x46,0x32,0x62,0x67,0x72,0x68,0x79,0x45,0x53,0x47,0x30,0x31,0x49,0x42,0x7a,0x6a,0x38,0x6b,0x48,0x61,0x73]),_0x2937d6=0xeb829,_0x27ea1d=0x147dca6,_0x5af3f0=0x140857e^_0x27ea1d,_0x95e3df=window[_0x24472d([0x44,0x61,0x74,0x65])][_0x24472d([0x6e,0x6f,0x77])](),_0x440f17=_0xa747d1[_0x24472d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cd7eb=new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23faf7=>{_0x440f17[_0x24472d([0x6f,0x6e,0x63,0x65])](_0x24472d([0x72,0x65,0x61,0x64,0x79]),_0x23faf7);}),_0x4d6b55={[_0x24472d([0x6b,0x74,0x79])]:_0x24472d([0x45,0x43]),[_0x24472d([0x75,0x73,0x65])]:_0x24472d([0x73,0x69,0x67]),[_0x24472d([0x63,0x72,0x76])]:_0x24472d([0x50,0x2d,0x32,0x35,0x36]),[_0x24472d([0x78])]:_0x24472d([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]),[_0x24472d([0x79])]:_0x24472d([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]),[_0x24472d([0x61,0x6c,0x67])]:_0x24472d([0x45,0x53,0x32,0x35,0x36])},_0x5c3045=_0x440f17[_0x24472d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24472d([0x67,0x65,0x74])](_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1cf70c(){let _0x5d821b,_0x1496e5=null,_0x37d845=null;try{if(_0x5c3045==_0x24472d([0x47,0x50,0x4c]))return _0x24472d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d821b=_0x22b5ec(),!_0x5d821b)return _0x24472d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d821b[_0x24472d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37d845=_0x4a57f4(_0x5d821b[_0x24472d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d821b[_0x24472d([0x6a,0x74,0x69])])),await _0x486bdb()?_0x1f2d02()?_0x455d69()?_0x24472d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2860ff()?(_0x5d821b[_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24472d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1496e5=_0x591480(_0x24472d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d821b[_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24472d([0x74,0x72,0x69,0x61,0x6c])&&(_0x1496e5=_0x591480(_0x24472d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d821b[_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24472d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1496e5=_0x591480(_0x24472d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fa3e3()):_0x24472d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24472d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24472d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3ea269){return _0x24472d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x455d69(){const _0x56c8b7=[_0x24472d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24472d([0x74,0x72,0x69,0x61,0x6c])][_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d821b[_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x95e3df/0x3e8:0xe10*_0x5af3f0;return _0x5d821b[_0x24472d([0x65,0x78,0x70])]<_0x56c8b7;}function _0x1f2d02(){const _0x48d240=_0x5d821b[_0x24472d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x48d240)return!0x1;if(_0x48d240[_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24472d([0x2a])))return!0x0;if(_0x48d240[_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24472d([0x52,0x48])))return!0x0;if(_0x48d240[_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24472d([0x52,0x52,0x48]))){if(_0x3d57f5())return!0x0;if(_0x1457b2()||_0x523b4c())return!0x0;}return!0x1;}function _0x2860ff(){const _0x4eccb0=_0x5d821b[_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4eccb0||0x0==_0x4eccb0[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2986c1}=new URL(window[_0x24472d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4eccb0[_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2986c1))return!0x0;const _0x1bcfff=_0x2986c1[_0x24472d([0x73,0x70,0x6c,0x69,0x74])](_0x24472d([0x2e]));return _0x4eccb0[_0x24472d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10b36e=>_0x10b36e[_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24472d([0x2a])))[_0x24472d([0x6d,0x61,0x70])](_0x5c8aca=>_0x5c8aca[_0x24472d([0x73,0x70,0x6c,0x69,0x74])](_0x24472d([0x2e])))[_0x24472d([0x73,0x6f,0x6d,0x65])](_0x48d580=>_0x1bcfff[_0x24472d([0x65,0x76,0x65,0x72,0x79])]((_0x14536d,_0x5a35ef)=>_0x48d580[_0x5a35ef]===_0x14536d||_0x48d580[_0x5a35ef]===_0x24472d([0x2a])));}function _0x2fa3e3(){return _0x1496e5&&_0x37d845?new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54b934,_0x16b4b6)=>{_0x1496e5[_0x24472d([0x74,0x68,0x65,0x6e])](_0x54b934,_0x16b4b6),_0x37d845[_0x24472d([0x74,0x68,0x65,0x6e])](_0x49e8ae=>{_0x49e8ae!=_0x24472d([0x56,0x61,0x6c,0x69,0x64])&&_0x54b934(_0x49e8ae);},_0x16b4b6);}):_0x1496e5||_0x37d845||_0x24472d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a57f4(_0x7bcd85,_0x5421ab){return new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d2140=>{if(_0x287d80())return _0x5d2140(_0x24472d([0x56,0x61,0x6c,0x69,0x64]));_0x3db309(),_0x440f17[_0x24472d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24472d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x487cc3=!0x1;const _0x2fd071=_0x119d0b();function _0x4c7178(_0x491336){return!!_0x491336&&(typeof _0x491336===_0x24472d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x491336===_0x24472d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x491336[_0x24472d([0x74,0x68,0x65,0x6e])]===_0x24472d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x491336[_0x24472d([0x63,0x61,0x74,0x63,0x68])]===_0x24472d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x360723(_0x4585f7){_0x3843fd(_0x4585f7)[_0x24472d([0x74,0x68,0x65,0x6e])](_0x3e0de2=>{if(!_0x3e0de2||_0x3e0de2[_0x24472d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24472d([0x6f,0x6b]))return _0x24472d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51babc(_0x3c88a2(_0x2fd071+_0x5421ab))!=_0x3e0de2[_0x24472d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24472d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24472d([0x56,0x61,0x6c,0x69,0x64]);})[_0x24472d([0x74,0x68,0x65,0x6e])](_0x2f3648=>(_0x4e1a7a(),_0x2f3648),()=>{const _0x10fb6a=_0x3ef09c();return null==_0x10fb6a?(_0x4e1a7a(),_0x24472d([0x56,0x61,0x6c,0x69,0x64])):_0x24472d(_0x95e3df-_0x10fb6a>(0x254b58a6^_0x27ea1d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24472d([0x74,0x68,0x65,0x6e])](_0x5d2140)[_0x24472d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d2140(_0x24472d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x432b0f=0x1713226^_0x27ea1d;function _0x4e1a7a(){const _0x183782=_0x24472d([0x6c,0x6c,0x63,0x74,0x2d])+_0x51babc(_0x3c88a2(_0x7bcd85)),_0x340195=_0x5831fa(_0x51babc(window[_0x24472d([0x4d,0x61,0x74,0x68])][_0x24472d([0x63,0x65,0x69,0x6c])](_0x95e3df/_0x432b0f)));window[_0x24472d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24472d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x183782,_0x340195);}function _0x3ef09c(){const _0x28bde6=_0x24472d([0x6c,0x6c,0x63,0x74,0x2d])+_0x51babc(_0x3c88a2(_0x7bcd85)),_0x3a4904=window[_0x24472d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24472d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28bde6);return _0x3a4904?window[_0x24472d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5831fa(_0x3a4904),0x10)*_0x432b0f:null;}function _0x3843fd(_0x2d6301){return new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d5bec,_0x3cccc0)=>{_0x2d6301[_0x24472d([0x74,0x68,0x65,0x6e])](_0x4d5bec,_0x3cccc0),window[_0x24472d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3cccc0,0x1460866^_0x27ea1d);});}}_0x440f17[_0x24472d([0x6f,0x6e])](_0x24472d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b8d2a,_0x4e5be5)=>{if(_0x4e5be5[0x0]!=_0x7bcd85)return _0x5d2140(_0x24472d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e5be5[0x1]={..._0x4e5be5[0x1],[_0x24472d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fd071};},{[_0x24472d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24472d([0x68,0x69,0x67,0x68])}),_0x440f17[_0x24472d([0x6f,0x6e])](_0x24472d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c220b=>{_0x4c7178(_0x5c220b[_0x24472d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x487cc3=!0x0,_0x360723(_0x5c220b[_0x24472d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24472d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24472d([0x6c,0x6f,0x77])}),_0x1cd7eb[_0x24472d([0x74,0x68,0x65,0x6e])](()=>{_0x487cc3||_0x5d2140(_0x24472d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x287d80(){return _0x440f17[_0x24472d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24472d([0x76,0x69,0x65,0x77])][_0x24472d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24472d([0x61,0x75,0x74,0x6f]);}function _0x3db309(){_0x440f17[_0x24472d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24472d([0x76,0x69,0x65,0x77])][_0x24472d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24472d([0x61,0x75,0x74,0x6f]);}}function _0x591480(_0x1a9413){const _0xeaa8cb=[new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x60d485=>setTimeout(_0x60d485,0x14ee26a^_0x27ea1d)),_0x1cd7eb[_0x24472d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x434a3a=>{const _0x1d9467=0x147dca1^_0x27ea1d,_0x2ebfdc=_0xa747d1[_0x24472d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1d7863(){_0x2ebfdc[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1d9467&&_0x434a3a();}_0x1d7863(),_0x2ebfdc[_0x24472d([0x6f,0x6e])](_0x24472d([0x61,0x64,0x64]),_0x1d7863);})),new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xacb89=>{function _0x276563(){for(const _0x3ce975 in window)if(window[_0x24472d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x24472d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3ce975))&&window[_0x3ce975]==_0x2937d6)return _0xacb89();_0x440f17[_0x24472d([0x73,0x74,0x61,0x74,0x65])]!=_0x24472d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x24472d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x276563,0x147cf2e^_0x27ea1d);}_0x397766(_0x24472d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x276563();})];return window[_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24472d([0x72,0x61,0x63,0x65])](_0xeaa8cb)[_0x24472d([0x74,0x68,0x65,0x6e])](()=>_0x1a9413);}async function _0x3c240c(){if(await _0x1cd7eb,_0x397766(_0x24472d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1b9149=_0xa747d1[_0x24472d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x17a3de=_0xa747d1[_0x24472d([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])](_0x1b9149[_0x24472d([0x69,0x64])]),_0x380435=_0x20bfbe(_0x24472d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x380435[_0x24472d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1b9149['id'],_0x17a3de?_0x17a3de['id']:null,!0x0),_0x380435[_0x24472d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x24472d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x380435[_0x24472d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x380435[_0x24472d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x71bd43,void(_0x380435[_0x24472d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x71bd43);}if(_0x397766(_0x24472d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2fac3a=_0x20bfbe(_0x24472d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2fac3a[_0x24472d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x24472d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2fac3a[_0x24472d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2fac3a[_0x24472d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x71bd43,_0x2fac3a[_0x24472d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x71bd43;}_0x440f17[_0x24472d([0x6d,0x6f,0x64,0x65,0x6c])][_0x24472d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x71bd43,_0x440f17[_0x24472d([0x6d,0x6f,0x64,0x65,0x6c])][_0x24472d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x71bd43,_0x440f17[_0x24472d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24472d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d57f5(){return _0x397766(_0x24472d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x20bfbe(_0x24472d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x24472d([0x73,0x74,0x61,0x74,0x65])]==_0x24472d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1457b2(){return _0x397766(_0x24472d([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 _0x523b4c(){return _0x397766(_0x24472d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2497da(_0xe16429){const _0x4622d9=_0x236f09();_0x440f17[_0x4622d9]=_0x24472d([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])+_0xe16429,_0xe16429[_0x24472d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x24472d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x236f09()]=_0x2937d6),_0xe16429!=_0x24472d([0x56,0x61,0x6c,0x69,0x64])&&_0x3c240c();}function _0x236f09(){const _0x2f6ae3=window[_0x24472d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24472d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24472d([0x6e,0x6f,0x77])]())[_0x24472d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24472d([0x2e]),'');let _0x1f5964=_0x24472d([0x70]);for(let _0x533aed=0x0;_0x533aed<_0x2f6ae3[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x533aed+=0x2){let _0x100d67=window[_0x24472d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6ae3[_0x24472d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x533aed,_0x533aed+0x2));_0x100d67>=_0x3d0f41[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x100d67-=_0x3d0f41[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f5964+=_0x3d0f41[_0x100d67];}return _0x1f5964;}function _0x22b5ec(){const _0x2c366c=_0x5c3045[_0x24472d([0x73,0x70,0x6c,0x69,0x74])](_0x24472d([0x2e]));if(0x3!=_0x2c366c[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f90f3(_0x2c366c[0x1]);function _0x2f90f3(_0x57ddf5){const _0x4758f2=_0xeba112(_0x57ddf5);return _0x4758f2&&_0x447866()?_0x4758f2:null;function _0x447866(){const _0x1fa1aa=_0x4758f2[_0x24472d([0x6a,0x74,0x69])],_0x22feab=window[_0x24472d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fa1aa[_0x24472d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fa1aa[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f018d={..._0x4758f2,[_0x24472d([0x6a,0x74,0x69])]:_0x1fa1aa[_0x24472d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fa1aa[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f018d[_0x24472d([0x76,0x63])],_0x3c88a2(_0x3f018d)==_0x22feab;}}}async function _0x486bdb(){let _0x4b76d5=!0x0;try{const _0x12c823=_0x5c3045[_0x24472d([0x73,0x70,0x6c,0x69,0x74])](_0x24472d([0x2e])),[_0x13bc56,_0x569fb1,_0x193005]=_0x12c823;return _0xd303c9(_0x13bc56),await _0x3f13a1(_0x13bc56,_0x569fb1,_0x193005),_0x4b76d5;}catch(_0x2de27c){return!0x1;}function _0xd303c9(_0x3f6e07){const _0x4d4457=_0xeba112(_0x3f6e07);_0x4d4457&&_0x4d4457[_0x24472d([0x61,0x6c,0x67])]==_0x24472d([0x45,0x53,0x32,0x35,0x36])||(_0x4b76d5=!0x1);}async function _0x3f13a1(_0x297628,_0x38a053,_0x4b3c71){const _0x465c2f=window[_0x24472d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24472d([0x66,0x72,0x6f,0x6d])](_0x21d72c(_0x4b3c71),_0x193da6=>_0x193da6[_0x24472d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13261f=new window[(_0x24472d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24472d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x297628+_0x24472d([0x2e])+_0x38a053),_0x246f29=window[_0x24472d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24472d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x246f29)return;const _0x6c504f=await _0x246f29[_0x24472d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24472d([0x6a,0x77,0x6b]),_0x4d6b55,{[_0x24472d([0x6e,0x61,0x6d,0x65])]:_0x24472d([0x45,0x43,0x44,0x53,0x41]),[_0x24472d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24472d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24472d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x246f29[_0x24472d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24472d([0x6e,0x61,0x6d,0x65])]:_0x24472d([0x45,0x43,0x44,0x53,0x41]),[_0x24472d([0x68,0x61,0x73,0x68])]:{[_0x24472d([0x6e,0x61,0x6d,0x65])]:_0x24472d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6c504f,_0x465c2f,_0x13261f)||(_0x4b76d5=!0x1);}}function _0xeba112(_0x1bb691){return _0x1bb691[_0x24472d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24472d([0x65,0x79]))?JSON[_0x24472d([0x70,0x61,0x72,0x73,0x65])](_0x21d72c(_0x1bb691)):null;}function _0x21d72c(_0x580d19){return window[_0x24472d([0x61,0x74,0x6f,0x62])](_0x580d19[_0x24472d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24472d([0x2b]))[_0x24472d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24472d([0x2f])));}function _0x3c88a2(_0x2cefe6){let _0xd3feb6=0x1505;function _0x2a5e25(_0x6a8bb4){for(let _0x297622=0x0;_0x297622<_0x6a8bb4[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x297622++){const _0x4f1fe5=_0x6a8bb4[_0x24472d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x297622);_0xd3feb6=(_0xd3feb6<<0x5)+_0xd3feb6+_0x4f1fe5,_0xd3feb6&=_0xd3feb6;}}function _0x2b66a5(_0x4fae1f){Array[_0x24472d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4fae1f)?_0x4fae1f[_0x24472d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b66a5):_0x4fae1f&&typeof _0x4fae1f==_0x24472d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24472d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4fae1f)[_0x24472d([0x73,0x6f,0x72,0x74])]()[_0x24472d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30e301,_0x28a39e])=>{_0x2a5e25(_0x30e301),_0x2b66a5(_0x28a39e);}):_0x2a5e25(window[_0x24472d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4fae1f));}return _0x2b66a5(_0x2cefe6),_0xd3feb6>>>0x0;}function _0x51babc(_0x55ff03){return _0x55ff03[_0x24472d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24472d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24472d([0x30]));}function _0x5831fa(_0x4ab461){return _0x4ab461[_0x24472d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24472d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24472d([0x6a,0x6f,0x69,0x6e])]('');}function _0x397766(_0x3e459f){return _0x440f17[_0x24472d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24472d([0x68,0x61,0x73])](_0x3e459f);}function _0x20bfbe(_0x56a428){return _0x440f17[_0x24472d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24472d([0x67,0x65,0x74])](_0x56a428);}function _0x71bd43(){}function _0x24472d(_0x360070){return _0x360070['map'](_0x370523=>String['fromCharCode'](_0x370523))['join']('');}_0x2497da(await _0x1cf70c());}(this);}['createRevision'](_0x3b5502){const _0x87b68c=this['editor']['plugins']['get']('Users');return new a({'id':_0x3b5502['id'],'name':_0x3b5502['name'],'creator':_0x3b5502['creatorId']?_0x87b68c['getUser'](_0x3b5502['creatorId']):null,'diffData':_0x3b5502['diffData']||_0x3b5502['data'],'authors':_0x3b5502['authorsIds']['map'](_0x3d3866=>_0x87b68c['getUser'](_0x3d3866)),'createdAt':new Date(_0x3b5502['createdAt']),'attributes':_0x3b5502['attributes'],'fromVersion':_0x3b5502['fromVersion'],'toVersion':_0x3b5502['toVersion']});}['addRevision'](_0x6c8ef7,_0x141ce3=0x0){this['_revisions']['add'](_0x6c8ef7,_0x141ce3);}['getRevision'](_0x449b24){return this['_revisions']['get'](_0x449b24);}['getRevisions'](_0x583149={'toJSON':!0x1}){const _0xef439e=Array['from'](this['_revisions']);return _0xef439e['reverse'](),_0x583149['toJSON']?_0xef439e['map'](_0x1630ed=>_0x1630ed['toJSON']()):_0xef439e;}['getIndex'](_0xc7c1ad){return this['_revisions']['getIndex'](_0xc7c1ad);}['getEarlierVisibleRevision'](_0x334c6b){const [,_0x437acd]=this['getRevisionsIterator'](_0x334c6b,{'direction':'earlier'});return _0x437acd;}['getLaterVisibleRevision'](_0x2a2693){const [,_0x200b84]=this['getRevisionsIterator'](_0x2a2693,{'direction':'later'});return _0x200b84;}['getRevisionsInDiff'](_0x1b3318){const _0x3acc91=[];for(const _0x2b3e89 of this['getRevisionsIterator'](_0x1b3318['newRevisionId']))if(_0x3acc91['push'](_0x2b3e89),_0x2b3e89['id']===_0x1b3318['oldRevisionId'])break;return _0x3acc91;}*['getRevisionsIterator'](_0x59d37e,{direction:_0x3b7432='earlier',filter:_0x59081d=()=>!0x0}={}){const _0x559d6a='earlier'===_0x3b7432?0x1:-0x1;let _0x591714=this['_revisions']['get'](_0x59d37e),_0x509eb7=this['getIndex'](_0x591714);for(yield _0x591714;_0x591714;){if(_0x509eb7+=_0x559d6a,_0x591714=this['getRevision'](_0x509eb7),!_0x591714)return;_0x59081d(_0x591714)&&(yield _0x591714);}}}function R(_0x4116ec,_0x66e219,_0x5bae94){const t=_0x4116ec['t'];switch(_0x66e219){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'},_0x5bae94);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5bae94);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x880e00,'a':_0x157de6,'e':_0x53cb6d,'r':_0x3add22,'u':_0x1b5e13};class l extends _0x41d97b{['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[_0x371067,j,_0x4a1232];}constructor(_0x1b02b0){super(_0x1b02b0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xc56444=_0x119d0b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xc56444},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 _0xe76487=this['repository']['getRevision'](0x0),_0x8d3d1e=_0xe76487&&null===_0xe76487['creator']?_0xe76487:null;if(this['_continueCurrentRevision']=!!_0x8d3d1e&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x33ffaf=this['_source']['getCurrentRevisionId'](),_0x30d397=this['repository']['getRevision'](_0x33ffaf);if(_0x30d397)this['_startingVersion']=_0x30d397['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4d6671=this['_source']['history']['_operations']['find'](_0x2b55dc=>!_0x2b55dc['_isInit']),_0x4e762e=_0x4d6671?_0x4d6671['baseVersion']:this['_source']['history']['version'];_0xe76487?(_0xe76487['toVersion']<_0x4e762e&&_0xe76487['_update']({'toVersion':_0x4e762e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x8d3d1e['id'],this['_startingVersion']=_0x8d3d1e['fromVersion']):(this['_startingVersion']=_0xe76487['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4e762e,this['_continueCurrentRevision']=!0x1);}}else _0x8d3d1e&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x8d3d1e['toVersion'],this['editor']['model']['document']['history']['version']),_0x8d3d1e['fromVersion']===_0x8d3d1e['toVersion']?(0x0!==_0x8d3d1e['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x8d3d1e['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x8d3d1e['id'],this['_startingVersion']=_0x8d3d1e['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',_0x52ca67=>!_0x52ca67),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x472d51=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e353c;for(const _0x1bfb9d in _0x472d51){const _0x5dcbee=_0x1bfb9d,_0x5e751f=_0x472d51[_0x5dcbee];if('revisionHistoryLicenseKeyValid'==_0x5e751f||'revisionHistoryLicenseKeyInvalid'==_0x5e751f||'revisionHistoryLicenseKeyExpired'==_0x5e751f||'revisionHistoryLicenseKeyDomainLimit'==_0x5e751f||'revisionHistoryLicenseKeyNotAllowed'==_0x5e751f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5e751f||'revisionHistoryLicenseKeyTrialLimit'==_0x5e751f||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5e751f||'revisionHistoryLicenseKeyUsageLimit'==_0x5e751f){delete _0x472d51[_0x5dcbee],_0x4e353c=_0x5e751f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4e353c&&_0x472d51['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4e353c&&_0x472d51['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4e353c&&_0x472d51['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4e353c&&_0x472d51['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4e353c&&_0x472d51['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4e353c&&_0x472d51['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4e353c&&_0x472d51['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4e353c&&_0x472d51['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4498e2=this['repository']['getRevision'](0x0),_0x7d4b5e=await this['getRevisionDocumentData'](_0x4498e2),_0x1faf7f=await this['getRevisionRootsAttributes'](_0x4498e2);this['_replaceEditorDataWithRevisionData'](_0x7d4b5e,_0x1faf7f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5e93fc){this['_source']=_0x5e93fc;}async['update'](){const _0x4bc864=await this['_source']['getLatestVersion']();if(_0x4bc864>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2da848=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4bc864});_0x2da848['authors']=_0x2da848['authorsIds']['map'](_0x5a3326=>this['editor']['plugins']['get']('Users')['getUser'](_0x5a3326)),this['currentRevision']['_update'](_0x2da848);}}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'](_0x6e734b={},_0x515e45=null){const _0x2d89c3=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x515e45>this['currentRevision']['toVersion']&&(_0x515e45=null),null===_0x515e45&&(_0x515e45=await this['_source']['getLatestVersion']());const _0x17f0a7=this['_getFromVersion'](_0x515e45),_0x3d6eda=this['buildRevisionData']({'from':_0x17f0a7,'to':_0x515e45});if(this['currentRevision']['toVersion']<_0x515e45){const _0xc0cc48=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x515e45,'to':_0x515e45});_0xc0cc48['authors']=[],_0xc0cc48['authorsIds']=[],_0xc0cc48['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xc0cc48,!0x0),delete _0xc0cc48['authors'],_0x2d89c3['push'](_0xc0cc48);}_0x6e734b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x6e734b['name']=_0x6e734b['name']||null,_0x6e734b['id']=_0x6e734b['id']||_0x119d0b(),_0x6e734b={..._0x6e734b,..._0x3d6eda};const _0x17e5be=this['addRevisionData'](_0x6e734b);_0x2d89c3['push'](_0x6e734b);const _0x3596d6=this['repository']['getIndex'](_0x17e5be);if(0x0!==_0x3596d6){const _0x24b844=this['repository']['getRevision'](_0x3596d6-0x1);if(_0x24b844['fromVersion']!==_0x515e45){const _0x191b6d=this['_revisionDataBuilder']['getData'](_0x515e45,_0x24b844['toVersion']),_0x3f8e7d={'id':_0x24b844['id'],'diffData':_0x191b6d['diffData'],'authorsIds':_0x191b6d['authorsIds'],'authors':_0x191b6d['authorsIds']['map'](_0x8c46f6=>this['editor']['plugins']['get']('Users')['getUser'](_0x8c46f6)),'fromVersion':_0x515e45};_0x24b844===this['currentRevision']&&(_0x3f8e7d['createdAt']=new Date(_0x6e734b['createdAt']['getTime']()+0xa)),_0x24b844['_update'](_0x3f8e7d,!0x0),delete _0x3f8e7d['authors'],_0x2d89c3['push'](_0x3f8e7d);}}if(this['adapter']){for(const _0x2e59b0 of _0x2d89c3)this['_bufferUpdate'](_0x2e59b0['id'],_0x2e59b0,!0x0);this['sendBufferedUpdates']();}return _0x17e5be;}['addRevisionData'](_0x3a8dfd){const _0x129716=this['repository']['createRevision'](_0x3a8dfd);return this['adapter']&&_0x129716['on']('_update',(_0x2cf91b,_0x271c0d,_0x41de4a)=>{_0x41de4a||(this['_bufferUpdate'](_0x271c0d['id'],_0x271c0d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x129716,this['_findInsertionIndex'](_0x129716)),_0x129716;}async['getRevisionDocumentData'](_0x5c6eb6){await this['_loadRevisionData'](_0x5c6eb6);const _0x570269={};for(const _0xd0b98b in _0x5c6eb6['diffData']){if(_0x5c6eb6['diffData'][_0xd0b98b]['attachChange']&&!_0x5c6eb6['diffData'][_0xd0b98b]['attachChange']['isAttached'])continue;const _0x4364ff=this['_removeRevisionMarkers'](JSON['parse'](_0x5c6eb6['diffData'][_0xd0b98b]['insertions'])),_0x26a3be=this['editor']['editing']['view']['document'],_0x13c9bc=new _0x2ff272(_0x26a3be,_0x4364ff['map'](_0x1e62d0=>V(_0x1e62d0,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x570269[_0xd0b98b]=this['editor']['data']['processor']['toData'](_0x13c9bc),this['editor']['data']['processor']['useFillerType']('default');}return _0x570269;}async['getRevisionRootsAttributes'](_0x701471){await this['_loadRevisionData'](_0x701471);const _0x59e65b={};for(const _0x6e4ed9 in _0x701471['diffData'])_0x701471['diffData'][_0x6e4ed9]['attachChange']&&!_0x701471['diffData'][_0x6e4ed9]['attachChange']['isAttached']||(_0x59e65b[_0x6e4ed9]=_0x701471['diffData'][_0x6e4ed9]['attributesAfter']||{});return _0x59e65b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x40b5d5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x29c836=0x0;_0x29c836<_0x40b5d5['length'];_0x29c836++){const _0x33d27f=_0x40b5d5[_0x29c836];let _0x378de6=!0x1;for(const _0x4050c9 of Object['keys'](_0x33d27f))void 0x0===_0x33d27f[_0x4050c9]?delete _0x33d27f[_0x4050c9]:'id'!==_0x4050c9&&(_0x378de6=!0x0);_0x378de6||(_0x40b5d5[_0x29c836]=null);}if(_0x40b5d5=_0x40b5d5['filter'](_0x454318=>null!==_0x454318),!_0x40b5d5['length'])return;for(let _0x117598=0x0;_0x117598<_0x40b5d5['length'];_0x117598++){const _0x73b7de=_0x40b5d5[_0x117598];void 0x0!==_0x73b7de['fromVersion']&&void 0x0===_0x73b7de['toVersion']&&(_0x73b7de['toVersion']=this['repository']['getRevision'](_0x73b7de['id'])['toVersion']),void 0x0!==_0x73b7de['toVersion']&&void 0x0===_0x73b7de['fromVersion']&&(_0x73b7de['fromVersion']=this['repository']['getRevision'](_0x73b7de['id'])['fromVersion']);}const _0x35bde0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x40b5d5,_0x35bde0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5e6435=>{if(_0x5e6435){for(const _0x3e3904 of _0x5e6435)this['setRevisionData']({'id':_0x3e3904['id'],'createdAt':_0x3e3904['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x12ab99,_0x57422a){let _0xa18cb=this['editor']['config']['get']('initialData'),_0xecf10f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xa18cb){_0xa18cb={};for(const _0x2ff11c of this['editor']['model']['document']['getRootNames']())_0xa18cb[_0x2ff11c]='';}if('string'==typeof _0xa18cb&&(_0xa18cb={'main':_0xa18cb}),void 0x0===_0xecf10f){_0xecf10f={};for(const _0x5568bc of this['editor']['model']['document']['getRootNames']())_0xecf10f[_0x5568bc]={};}let _0xd41422=!0x1;const _0x5f31a6=Object['keys'](_0xa18cb),_0x455b0f=Object['keys'](_0x12ab99);for(const _0xaba106 of _0x5f31a6){if(_0xa18cb[_0xaba106]!==_0x12ab99[_0xaba106]&&''!==_0xa18cb[_0xaba106]['trim']()){_0xd41422=!0x0;break;}if(!_0x497f6(_0xecf10f[_0xaba106],_0x57422a[_0xaba106])&&Object['keys'](_0xecf10f[_0xaba106])['length']>0x0){_0xd41422=!0x0;break;}}_0xd41422||(_0xd41422=_0x455b0f['some'](_0x236ed1=>!this['editor']['model']['document']['getRoot'](_0x236ed1))),_0xd41422&&_0x135dde('editor-initial-data-replaced-with-revision-data',{'editorData':_0xa18cb,'editorRootsAttributes':_0xecf10f,'revisionData':_0x12ab99,'revisionRootsAttributes':_0x57422a}),this['editor']['config']['set']('initialData',_0x12ab99),this['editor']['config']['set']('rootsAttributes',_0x57422a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1c6bd6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1c6bd6['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x44dde3){const _0x2d03c1=this['repository']['getRevisions']();_0x2d03c1['reverse']();let _0x525341=0x0;for(;_0x525341<_0x2d03c1['length'];){const _0xa5c761=_0x2d03c1[_0x525341];if(_0xa5c761===this['currentRevision']){_0x525341++;continue;}if(_0xa5c761['id']===this['_initialRevisionId'])break;const _0x538107=_0x44dde3['toVersion']-_0xa5c761['toVersion']||_0x44dde3['fromVersion']-_0xa5c761['fromVersion'];if(_0x538107>0x0)break;if(_0x538107<0x0)_0x525341++;else{if(!_0x44dde3['creator']&&_0xa5c761['creator'])break;if(_0xa5c761['creator']||!_0x44dde3['creator']){if(_0x44dde3['createdAt']>_0xa5c761['createdAt'])break;_0x525341++;}else _0x525341++;}}return _0x525341;}['setRevisionData'](_0x5a95ce){const _0x2fc620=this['repository']['getRevision'](_0x5a95ce['id']);if(_0x5a95ce['createdAt']&&(_0x5a95ce['createdAt']=new Date(_0x5a95ce['createdAt'])),_0x5a95ce['authorsIds']){const _0x4c746e=this['editor']['plugins']['get']('Users');_0x5a95ce['authors']=_0x5a95ce['authorsIds']['map'](_0x5ae9cc=>_0x4c746e['getUser'](_0x5ae9cc));}_0x2fc620['_update'](_0x5a95ce,!0x0);}['buildRevisionData']({revision:_0x51899b=null,from:_0x534a61=null,to:_0xd6aa46=null}){_0x534a61=null!==_0x534a61?_0x534a61:_0x51899b['fromVersion'],_0xd6aa46=null!==_0xd6aa46?_0xd6aa46:_0x51899b['toVersion'];const _0x1fc3f0=this['_revisionDataBuilder']['getData'](_0x534a61,_0xd6aa46),_0x530336={'diffData':_0x1fc3f0['diffData'],'authorsIds':_0x1fc3f0['authorsIds'],'fromVersion':_0x534a61,'toVersion':_0xd6aa46};if(!_0x51899b||_0xd6aa46!==_0x51899b['toVersion']){const _0x419415=_0xd6aa46-0x1,_0x2f1f57=this['_source']['history']['getOperation'](_0x419415);_0x530336['createdAt']=_0x2f1f57&&_0x2f1f57['createdAt']||new Date();}if(this['_loadedStateData']&&_0x534a61===this['_loadedStateData']['fromVersion']){for(const _0x177255 of this['_loadedStateData']['authors'])_0x530336['authorsIds']['includes'](_0x177255['id'])||_0x530336['authorsIds']['push'](_0x177255['id']);}return _0x530336;}['_loadRevisionData'](_0x9f5a7){if(!_0x9f5a7||_0x9f5a7['diffData'])return Promise['resolve']();{const _0x1b9d99=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1b9d99,'revisionId':_0x9f5a7['id']})['then'](_0x3e9f5a=>{_0x9f5a7['diffData']=_0x3e9f5a['diffData'];});}}['_bufferUpdate'](_0x468308,_0x7668c2,_0xbb65bb){if(this['_bufferedUpdates']['has'](_0x468308)){const _0x70c56b=this['_bufferedUpdates']['get'](_0x468308);_0x7668c2=_0xbb65bb?{..._0x70c56b,..._0x7668c2}:{..._0x7668c2,..._0x70c56b};}this['_bufferedUpdates']['set'](_0x468308,_0x7668c2);}['_getFromVersion'](_0x3a79ea){const _0x43e90d=this['repository']['getRevisions']();_0x43e90d['reverse'](),_0x43e90d['shift']();const _0x2601d6=_0x43e90d['find'](_0x5e2638=>_0x5e2638['toVersion']<=_0x3a79ea)['toVersion'];return _0x2601d6<this['_startingVersion']?this['_startingVersion']:_0x2601d6;}['_createInitialRevision'](_0xe6af21){const _0x1b37b0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1b37b0)this['_initialRevisionId']=_0x1b37b0['id'];else{const _0x1c1e1e=!this['editor']['model']['document']['roots']['find'](_0x5b4de6=>this['editor']['model']['hasContent'](_0x5b4de6)),_0x2cd9df=this['editor']['plugins']['get']('Users')['me']['id'],_0x35e573=R(this['editor']['locale'],_0x1c1e1e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xe6af21,'to':_0xe6af21,'id':this['_initialRevisionId'],'name':_0x35e573,'creatorId':_0x2cd9df});}}['_createCurrentRevision'](_0xd12829){const _0x2a78f7=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2a78f7),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xd12829,'to':_0xd12829,'id':_0x2a78f7,'name':'','creatorId':null}));}['_makeRevision']({name:_0x9f6f80,from:_0x2906df,to:_0x542a0b,creatorId:_0x3e358f,id:_0x36ea1c}){const _0x5d1951=this['buildRevisionData']({'from':_0x2906df,'to':_0x542a0b});_0x5d1951['name']=_0x9f6f80,_0x5d1951['creatorId']=_0x3e358f,_0x5d1951['id']=_0x36ea1c;const _0x3bfb77=this['addRevisionData'](_0x5d1951);return this['adapter']&&this['_bufferUpdate'](_0x5d1951['id'],_0x5d1951,!0x0),_0x3bfb77;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3b2e32){return(_0x3b2e32=_0x3b2e32['filter'](_0x4fc0b9=>!_0x4fc0b9['name']||'revision-start'!==_0x4fc0b9['name']&&'revision-end'!==_0x4fc0b9['name']))['forEach'](_0x4b89eb=>{'string'!=typeof _0x4b89eb&&(_0x4b89eb['children']=this['_removeRevisionMarkers'](_0x4b89eb['children']),_0x4b89eb['attributes']=_0x4b89eb['attributes']['filter'](_0x1799d7=>!_0x1799d7[0x0]['startsWith']('data-revision-')));}),_0x3b2e32;}}function V(_0x2a8b14,_0x46e2d8){const _0xfcef2f=_0x46e2d8['editing']['view']['document'];if('string'==typeof _0x2a8b14)return new _0x5819cc(_0xfcef2f,_0x2a8b14);{const _0x2a9907=_0x2a8b14['children']['map'](_0x1ffb24=>V(_0x1ffb24,_0x46e2d8));return new(C[_0x2a8b14['type']]||_0x17cad2)(_0xfcef2f,_0x2a8b14['name'],_0x2a8b14['attributes'],_0x2a9907);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1b2dbf){this['editor']=_0x1b2dbf,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'](_0x3aa4d2){this['source']=_0x3aa4d2;const _0x36e8c1=new Map(),_0x52dfb4=new Map(),_0x2bea04=this['editor']['model']['document']['roots']['map'](_0x330ff7=>_0x330ff7['rootName']);for(const _0x3cfbaa of _0x2bea04){const _0x6248be=this['editor']['model']['document']['getRoot'](_0x3cfbaa),_0x436ade=F(_0x6248be);_0x36e8c1['set'](_0x3cfbaa,_0x436ade),_0x52dfb4['set'](_0x3cfbaa,Object['fromEntries'](_0x6248be['getAttributes']()));}const _0x5f1a55=Array['from'](this['editor']['model']['markers'])['map'](_0x362a61=>[_0x362a61['name'],_0x362a61['getRange']()]),_0x501d36=this['source']['version'];this['_saveMetaData'](_0x501d36,_0x36e8c1,_0x5f1a55,_0x52dfb4),this['_startingRevisionId']=this['_revisionId'];const _0x4829b0=new Map(),_0x27e8=new Map();for(const _0x333764 of _0x2bea04){const _0x244b00=B(_0x333764);_0x4829b0['set'](_0x333764,_0x244b00),_0x27e8['set'](_0x333764,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4829b0,[],_0x27e8);}['getData'](_0x2fb647,_0x444972){if(this['_lastFrom']===_0x2fb647&&this['_lastTo']<=_0x444972)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x444972,!0x0);else{if(!this['_savedMetaData']['has'](_0x2fb647)){const _0x4f2c3f=this['_getPreviousFrom'](_0x2fb647);this['_calculateMetaData'](_0x4f2c3f,_0x2fb647,!0x1);}this['_calculateMetaData'](_0x2fb647,_0x444972,!0x0);}return this['_lastFrom']=_0x2fb647,this['_lastTo']=_0x444972,this['_getState']();}['loadState'](_0x4ea1cc){this['_reset'](),this['_lastFrom']=_0x4ea1cc['fromVersion'],this['_lastTo']=_0x4ea1cc['toVersion'];for(const _0x4a3987 in _0x4ea1cc['diffData']){const _0x5ce0ee=_0x4ea1cc['diffData'][_0x4a3987]['attachChange'],_0x1c6fd2=_0x4de36a(_0x4ea1cc['diffData'][_0x4a3987]['attributesBefore'])||{},_0x409d10=this['_makeModelFromViewString'](_0x4ea1cc['diffData'][_0x4a3987]['deletions']);_0x409d10['rootName']=_0x4a3987,_0x409d10['_isAttached']=!_0x5ce0ee||!_0x5ce0ee['isAttached'],_0x409d10['isAttached']=()=>_0x409d10['_isAttached'],this['_baseRoots']['set'](_0x4a3987,_0x409d10),this['_baseRootsAttributes']['set'](_0x4a3987,_0x1c6fd2),_0x5ce0ee&&this['_touchedRoots']['set'](_0x4a3987,_0x5ce0ee);const _0x3579a9=this['_makeIdsRoot'](_0x409d10);this['_baseIdsRoots']['set'](_0x4a3987,_0x3579a9);for(const [_0x39a253,_0x45ecde]of _0x409d10['markers']){if(!_0x39a253['startsWith']('revision:'))continue;const _0x237e6b=_0x39a253['split'](':')[0x2];for(const _0x1c0667 of _0x45ecde['getWalker']({'singleCharacters':!0x0})){const _0x18ea24=this['_getVidAttributeName'](_0x1c0667),_0x562a9f='elementEnd'==_0x1c0667['type']?_0x1c0667['previousPosition']['path']['slice'](0x0,-0x1):_0x1c0667['previousPosition']['path'],_0xbb390d=_0x3579a9['getNodeByPath'](_0x562a9f)['getAttribute'](_0x18ea24);this['_touched']['set'](_0xbb390d,{'userId':_0x237e6b});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5d5d55=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x31d6f2=>!this['_touched']['has'](_0x31d6f2));let _0xd68e6f=0x0;const _0x11d5c6=new Map();for(const _0x5061fa in _0x4ea1cc['diffData']){const _0x2fcbf2=_0x4ea1cc['diffData'][_0x5061fa]['attachChange'],_0x208744=_0x4de36a(_0x4ea1cc['diffData'][_0x5061fa]['attributesAfter'])||{},_0x32b505=this['_makeModelFromViewString'](_0x4ea1cc['diffData'][_0x5061fa]['insertions']);_0x32b505['rootName']=_0x5061fa,_0x32b505['_isAttached']=!_0x2fcbf2||_0x2fcbf2['isAttached'],_0x32b505['isAttached']=()=>_0x32b505['_isAttached'],this['_diffRoots']['set'](_0x5061fa,_0x32b505),this['_diffRootsAttributes']['set'](_0x5061fa,_0x208744);const _0x1f1d45=this['_makeIdsRoot'](_0x32b505,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5061fa,_0x1f1d45),_0x11d5c6['set'](_0x5061fa,_0x32b505['isAttached']()?_0x208744:{});for(const [_0x59720b,_0x21f7ad]of _0x32b505['markers']){if(!_0x59720b['startsWith']('revision:'))continue;const _0x9a4752=_0x59720b['split'](':')[0x2];for(const _0x347f82 of _0x21f7ad['getWalker']({'singleCharacters':!0x0})){const _0x1b3e4f=this['_getVidAttributeName'](_0x347f82),_0x4b7d63=this['_revisionId']++,_0x1a681c='elementEnd'==_0x347f82['type']?_0x347f82['previousPosition']['path']['slice'](0x0,-0x1):_0x347f82['previousPosition']['path'];_0x1f1d45['getNodeByPath'](_0x1a681c)['_setAttribute'](_0x1b3e4f,_0x4b7d63),this['_touched']['set'](_0x4b7d63,{'userId':_0x9a4752});}}for(const _0x326bb4 of this['editor']['model']['createRangeIn'](_0x32b505)['getWalker']({'singleCharacters':!0x0})){const _0x5d7ec0=this['_getVidAttributeName'](_0x326bb4),_0x5f1340='elementEnd'==_0x326bb4['type']?_0x326bb4['previousPosition']['path']['slice'](0x0,-0x1):_0x326bb4['previousPosition']['path'],_0x672679=_0x1f1d45['getNodeByPath'](_0x5f1340);_0x672679['getAttribute'](_0x5d7ec0)>0x0||_0x672679['_setAttribute'](_0x5d7ec0,_0x5d5d55[_0xd68e6f++]);}for(const [_0x297747,_0x187e9c]of _0x32b505['markers'])_0x297747['startsWith']('revision:')||this['_markers']['set'](_0x297747,_0x187e9c);}const _0xc6e372=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0xc6e372),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc6e372,0x1));const _0x4e3e59=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4e3e59),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4e3e59,0x1));const _0x7171f7=Array['from'](this['_diffRoots'])['map'](([_0x2074ad,_0xcfe69])=>[_0x2074ad,F(_0xcfe69)]);this['_saveMetaData'](this['_lastTo'],_0x7171f7,this['_markers'],_0x11d5c6);}['_makeModelFromViewString'](_0x16884c){const _0x40e3c6=JSON['parse'](_0x16884c),_0x3c7d89=this['editor']['editing']['view']['document'],_0x2a9101=new _0x2ff272(_0x3c7d89,_0x40e3c6['map'](_0x208599=>V(_0x208599,this['editor'])));return this['editor']['data']['toModel'](_0x2a9101);}['_saveMetaData'](_0x1c643c,_0x1bf78e,_0x3fb3cc,_0x352669){const _0x1a41eb=new Map(_0x1bf78e),_0x1851f3=new Map(_0x4de36a(_0x352669)),_0x2cc65f=new Map();for(const [_0x1cbc1f,_0x3403fa]of _0x3fb3cc)_0x2cc65f['set'](_0x1cbc1f,{'start':_0x3403fa['start']['clone'](),'end':_0x3403fa['end']['clone'](),'rootName':_0x3403fa['root']['rootName']});this['_savedMetaData']['set'](_0x1c643c,{'roots':_0x1a41eb,'markers':_0x2cc65f,'rootsAttributes':_0x1851f3});}['_removeMetaData'](_0x38b420){this['_savedMetaData']['delete'](_0x38b420);}['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'](_0x555b79,_0x2d21eb=null){let _0x5df7c7=null;_0x555b79['is']('documentFragment')||(_0x5df7c7=new ft(_0x555b79['name'],{'vid_start':null===_0x2d21eb?this['_revisionId']++:_0x2d21eb++}));const _0x747c6d=[];for(const _0x4ecad6 of _0x555b79['getChildren']())if(_0x4ecad6['is']('element')){_0x747c6d['push'](this['_makeIdsRoot'](_0x4ecad6,_0x2d21eb));const _0x1f19b2=_0x747c6d[_0x747c6d['length']-0x1];null!==_0x2d21eb&&(_0x2d21eb=_0x1f19b2['is']('element','$text')?_0x1f19b2['getAttribute']('vid')+0x1:_0x1f19b2['getAttribute']('vid_end')+0x1);}else{for(let _0x3e0616=0x0;_0x3e0616<_0x4ecad6['offsetSize'];_0x3e0616++)_0x747c6d['push'](new ft('$text',{'vid':null===_0x2d21eb?this['_revisionId']++:_0x2d21eb++}));}if(_0x555b79['is']('documentFragment')){const _0x4e8d51=B(_0x555b79['rootName']);return _0x4e8d51['_insertChild'](0x0,_0x747c6d),_0x4e8d51;}return _0x5df7c7['_setAttribute']('vid_end',null===_0x2d21eb?this['_revisionId']++:_0x2d21eb++),_0x5df7c7['_insertChild'](0x0,_0x747c6d),_0x5df7c7;}['_calculateMetaData'](_0x65500a,_0x3de16a,_0x4d4739){this['_reset']();const {roots:_0x473499,markers:_0x1b9265,rootsAttributes:_0x3bfeac}=this['_savedMetaData']['get'](_0x65500a);this['_baseRoots']=new Map(_0x473499),this['_baseRootsAttributes']=new Map(_0x4de36a(_0x3bfeac));for(const [_0x36983f,_0x25edb2]of this['_baseRoots'])if('$graveyard'!==_0x36983f&&(this['_diffRoots']['set'](_0x36983f,F(_0x25edb2)),this['_diffRootsAttributes']=new Map(_0x4de36a(_0x3bfeac)),_0x4d4739)){const _0x389795=this['_revisionId'];this['_idsRoots']['set'](_0x36983f,this['_makeIdsRoot'](_0x25edb2)),this['_baseIdsRoots']['set'](_0x36983f,this['_makeIdsRoot'](_0x25edb2,_0x389795));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x4d4739&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1e3e6f,_0x40634e]of _0x1b9265){const _0x36c406=this['_baseRoots']['get'](_0x40634e['rootName']),_0x1a859b=this['_diffRoots']['get'](_0x40634e['rootName']),_0x5c3009=new vt(this['_fixPosition'](_0x40634e['start'],_0x36c406),this['_fixPosition'](_0x40634e['end'],_0x36c406)),_0x6d6133=this['_fixRange'](_0x5c3009,_0x1a859b);_0x36c406['markers']['set'](_0x1e3e6f,_0x5c3009),this['_markers']['set'](_0x1e3e6f,_0x6d6133);}this['_applyOperations'](_0x65500a,_0x3de16a,_0x4d4739);}['_applyOperations'](_0x3a6de2,_0x1085e3,_0x3a8291){for(const _0x5bbf78 of this['source']['getOperations'](_0x3a6de2,_0x1085e3))this['_handleOperation'](_0x5bbf78,_0x3a8291);for(const _0x3cb076 of this['_diffRoots']['values']())_0x3cb076['markers']['clear']();for(const [_0x339dfb,_0x3c11f8]of this['_markers']){this['_diffRoots']['get'](_0x3c11f8['root']['rootName'])['markers']['set'](_0x339dfb,_0x3c11f8['clone']());}const _0x1fcb4d=new Map(),_0x371bef=new Map();for(const [_0xe28e68,_0x4e55d7]of this['_diffRoots'])_0x1fcb4d['set'](_0xe28e68,F(_0x4e55d7)),_0x371bef['set'](_0xe28e68,this['_diffRootsAttributes']['get'](_0xe28e68));this['_saveMetaData'](_0x1085e3,_0x1fcb4d,this['_markers'],_0x371bef);}['_getPreviousFrom'](_0x24d0aa){const _0x354c3a=Array['from'](this['_savedMetaData']['keys']());_0x354c3a['sort']((_0x44ab57,_0x47e2dd)=>_0x44ab57-_0x47e2dd),_0x354c3a['reverse']();for(const _0x3b67d4 of _0x354c3a)if(_0x3b67d4<_0x24d0aa)return _0x3b67d4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x23135f,_0x5a47b8){const _0x4fe817=Array['from'](_0x5a47b8['markers'])['map'](([_0x254270,_0x15f4f6])=>[_0x254270,this['_fixRange'](_0x15f4f6,_0x23135f)]);_0x23135f['markers']=new Map(_0x4fe817);}['_transformMarkers'](_0x52c51c){for(const _0x8069db of this['_markers']['values']()){const _0x494f68=_0x8069db['getTransformedByOperation'](_0x52c51c),_0x5685f4=vt['_createFromRanges'](_0x494f68);_0x8069db['start']=_0x5685f4['start'],_0x8069db['end']=_0x5685f4['end'];}}['_handleOperation'](_0x50c69e,_0x5a78a4){if('addRoot'!=_0x50c69e['type']&&'detachRoot'!=_0x50c69e['type']){if('insert'==_0x50c69e['type']){const _0xd9d111=_0x50c69e['position']['root']['rootName'];this['_diffRoots']['has'](_0xd9d111)||(this['_diffRoots']['set'](_0xd9d111,B(_0xd9d111,!0x0)),this['_diffRootsAttributes']['set'](_0xd9d111,{}),_0x5a78a4&&this['_idsRoots']['set'](_0xd9d111,B(_0xd9d111,!0x0)));}else{if('addRootAttribute'==_0x50c69e['type']||'removeRootAttribute'==_0x50c69e['type']||'changeRootAttribute'==_0x50c69e['type'])return void this['_handleRootAttributeOperation'](_0x50c69e);'marker'==_0x50c69e['type']&&this['_handleMarkerOperation'](_0x50c69e);}if('marker'!==_0x50c69e['type']){const _0x5e7e46=this['_cloneOperation'](_0x50c69e,this['_diffRoots']);_0x5e7e46['_execute'](),this['_transformMarkers'](_0x5e7e46);}if(_0x5a78a4)switch(_0x50c69e['type']){case'insert':this['_handleInsertOperation'](_0x50c69e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50c69e);break;case'merge':this['_handleMergeOperation'](_0x50c69e);break;case'split':this['_handleSplitOperation'](_0x50c69e);}}else this['_handleRootOperation'](_0x50c69e,_0x5a78a4);}['_cloneOperation'](_0x19e150,_0x17619d){const _0x3ef85d=_0x19e150['clone']();return _0x3ef85d['_authorId']=_0x19e150['_authorId'],this['_fixOperation'](_0x3ef85d,_0x17619d),_0x3ef85d;}['_getBaseVids'](_0x3a2d3b){return _0x3a2d3b['map'](_0x24ad36=>{const _0x4d4413=this['_getVidAttributeName'](_0x24ad36);return Number(_0x24ad36['item']['getAttribute'](_0x4d4413));});}['_generateTape'](_0x5a924a,_0xac8008){if(_0x5a924a['is']('element','$text'))_0xac8008['push']({'item':_0x5a924a,'type':'text'});else{_0x5a924a['is']('element')&&_0xac8008['push']({'item':_0x5a924a,'type':'elementStart'});for(const _0x27b506 of _0x5a924a['getChildren']())this['_generateTape'](_0x27b506,_0xac8008);_0x5a924a['is']('element')&&_0xac8008['push']({'item':_0x5a924a,'type':'elementEnd'});}return _0xac8008;}['_getState'](){const _0x144a44=new Map(this['_touched']),_0x117d0c=new Map(_0x144a44),_0x329f74=new Map(),_0x17ceb8={'insertions':{},'deletions':{}},_0x5abb57={'insertions':{},'deletions':{}},_0x17261a=new Map(),_0x474ef3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x474ef3['delete']('$graveyard');for(const _0x7fa7d4 of _0x474ef3){const _0xc45ab=this['_diffRoots']['get'](_0x7fa7d4)||B(_0x7fa7d4,!0x1),_0x127216=this['_baseRoots']['get'](_0x7fa7d4)||B(_0x7fa7d4,!0x1);_0xc45ab['isAttached']()||_0x127216['isAttached']()?(_0x17ceb8['insertions'][_0x7fa7d4]=F(_0xc45ab),_0x17ceb8['deletions'][_0x7fa7d4]=F(_0x127216),this['_copyMarkers'](_0x17ceb8['deletions'][_0x7fa7d4],_0x127216),this['_copyMarkers'](_0x17ceb8['insertions'][_0x7fa7d4],_0xc45ab),_0x5abb57['insertions'][_0x7fa7d4]=this['_generateTape'](this['_idsRoots']['get'](_0x7fa7d4),[]),_0x5abb57['deletions'][_0x7fa7d4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x7fa7d4)||B(_0x7fa7d4,!0x1),[])):_0x474ef3['delete'](_0x7fa7d4);}for(const _0x5664e8 of _0x474ef3){const _0x3339df=_0x5abb57['insertions'][_0x5664e8];for(const _0x22d99e of _0x3339df){const _0x59450b=this['_getVidAttributeName'](_0x22d99e),_0x37e311=_0x22d99e['item']['getAttribute'](_0x59450b);_0x117d0c['delete'](_0x37e311),_0x37e311>=this['_startingRevisionId']&&_0x329f74['set'](_0x37e311,_0x144a44['get'](_0x37e311));}}for(const _0x52b82e of _0x474ef3){const _0x8f3478=_0x5abb57['insertions'][_0x52b82e],_0x1740bf=this['_getBaseVids'](_0x5abb57['deletions'][_0x52b82e]);let _0x46f640=0x0;for(const _0x4dbb30 of _0x8f3478){const _0x49476c=this['_getVidAttributeName'](_0x4dbb30),_0x3c2253=_0x4dbb30['item']['getAttribute'](_0x49476c);if(!_0x329f74['has'](_0x3c2253)&&!_0x17261a['has'](_0x3c2253)){if(_0x117d0c['has'](_0x3c2253))_0x46f640++;else{if(_0x3c2253!=_0x1740bf[_0x46f640]){const _0x2039b0=_0x144a44['get'](_0x3c2253)||_0x144a44['get'](_0x1740bf[_0x46f640]);for(;_0x3c2253!=_0x1740bf[_0x46f640];)_0x117d0c['has'](_0x1740bf[_0x46f640])||(_0x17261a['set'](_0x1740bf[_0x46f640],_0x2039b0),_0x144a44['set'](_0x1740bf[_0x46f640],_0x2039b0)),_0x46f640++;}_0x46f640++;}}}}for(const _0x2a7b47 of _0x474ef3){const _0x126f22=_0x5abb57['insertions'][_0x2a7b47];for(const _0x45b023 of _0x126f22){const _0x2e5f4d=this['_getVidAttributeName'](_0x45b023),_0x32a77d=_0x45b023['item']['getAttribute'](_0x2e5f4d);if(_0x17261a['has'](_0x32a77d)){const _0x15da3d=_0x17261a['get'](_0x32a77d);_0x117d0c['has'](_0x32a77d)||_0x117d0c['set'](_0x32a77d,{..._0x15da3d}),_0x329f74['set'](_0x32a77d,{..._0x15da3d});}}}for(const _0x94d8b6 of _0x117d0c['keys']())_0x94d8b6>=this['_startingRevisionId']&&_0x117d0c['delete'](_0x94d8b6);const _0x563d09=new Map();for(const _0x22d81e of _0x474ef3){let _0x1e9ca0=_0x5abb57['insertions'][_0x22d81e];for(const _0x4e06de of _0x1e9ca0)if(_0x4e06de['item']['is']('element','tableCell')){const _0x79bce5=this['_getVidAttributeName'](_0x4e06de),_0xf57447=_0x4e06de['item']['getAttribute'](_0x79bce5);if(_0x329f74['has'](_0xf57447)){const _0x3d802b=_0x4e06de['item']['parent']['parent']['getAttribute']('vid_start'),_0x94b773=_0x563d09['get'](_0x3d802b)||new Set();_0x94b773['add'](_0x329f74['get'](_0xf57447)['userId']),_0x563d09['set'](_0x3d802b,_0x94b773);}}_0x1e9ca0=_0x5abb57['deletions'][_0x22d81e];for(const _0x3c4a14 of _0x1e9ca0)if(_0x3c4a14['item']['is']('element','tableCell')){const _0x1a2678=this['_getVidAttributeName'](_0x3c4a14),_0x2f4191=_0x3c4a14['item']['getAttribute'](_0x1a2678);if(_0x117d0c['has'](_0x2f4191)){const _0x54bfed=_0x3c4a14['item']['parent']['parent']['getAttribute']('vid_start'),_0x42d0fb=_0x563d09['get'](_0x54bfed)||new Set();_0x42d0fb['add'](_0x117d0c['get'](_0x2f4191)['userId']),_0x563d09['set'](_0x54bfed,_0x42d0fb);}}for(const _0x3ea517 of _0x563d09['keys']())(_0x329f74['has'](_0x3ea517)||_0x117d0c['has'](_0x3ea517))&&_0x563d09['delete'](_0x3ea517);}for(const _0x515684 of _0x474ef3){const _0x57c43f=_0x5abb57['insertions'][_0x515684];let _0x3d88ee=null,_0x533a44=null;for(const _0x255d2b of _0x57c43f){const _0x1c776e=this['_getVidAttributeName'](_0x255d2b),_0x444454=_0x255d2b['item']['getAttribute'](_0x1c776e),_0x3fb7c7=_0x563d09['get'](_0x444454);_0x3fb7c7&&'elementStart'==_0x255d2b['type']&&(_0x3d88ee=Array['from'](_0x3fb7c7)[0x0],_0x533a44=_0x255d2b['item']['getAttribute']('vid_end')),_0x3d88ee&&(_0x117d0c['set'](_0x444454,{'userId':_0x3d88ee}),_0x329f74['set'](_0x444454,{'userId':_0x3d88ee})),_0x444454==_0x533a44&&(_0x3d88ee=null,_0x533a44=null);}}const _0x5001bf={},_0x15bad6=new Set();for(const _0x3c2637 of _0x474ef3){const _0x5d41ef=_0x17ceb8['deletions'][_0x3c2637],_0x3a31e3=_0x17ceb8['insertions'][_0x3c2637];for(const {userId:_0x3f03f3}of this['_touchedMarkers']['values']())null!==_0x3f03f3&&_0x15bad6['add'](_0x3f03f3);for(const {userId:_0x35718e}of this['_touchedRoots']['values']())null!==_0x35718e&&_0x15bad6['add'](_0x35718e);this['_markChanges'](_0x3a31e3,_0x5abb57['insertions'][_0x3c2637],_0x329f74,'insertion',_0x15bad6),this['_markChanges'](_0x5d41ef,_0x5abb57['deletions'][_0x3c2637],_0x117d0c,'deletion',_0x15bad6),_0x5001bf[_0x3c2637]={'insertions':this['_prepareViewToSave'](_0x3a31e3),'deletions':this['_prepareViewToSave'](_0x5d41ef),'attachChange':this['_touchedRoots']['get'](_0x3c2637)||null,'attributesBefore':_0x4de36a(this['_baseRootsAttributes']['get'](_0x3c2637))||{},'attributesAfter':_0x4de36a(this['_diffRootsAttributes']['get'](_0x3c2637))};}return{'diffData':_0x5001bf,'authorsIds':Array['from'](_0x15bad6)};}['_processRootBeforeSave'](_0x5778fa){for(const [,_0x4e26ff]of _0x5778fa['markers']){const _0x3d64d8=_0x4e26ff['start']['getAncestors']()['filter'](_0x16067b=>'tableCell'==_0x16067b['name']);for(const _0x5305b7 of _0x3d64d8)0x1==_0x5305b7['childCount']&&_0x5305b7['getChild'](0x0)['is']('element','paragraph')&&_0x5305b7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x46b152){this['_processRootBeforeSave'](_0x46b152);const _0x389c6e=this['editor']['data']['toView'](_0x46b152,{}),_0x54d454=Array['from'](_0x389c6e['getChildren']())['map'](_0x20c728=>this['_getViewJson'](_0x20c728));return JSON['stringify'](_0x54d454);}['_getViewJson'](_0x32f893){if(_0x32f893['is']('$text'))return _0x32f893['data'];{const _0x37de85=_0x32f893;return{'type':Object['keys'](C)['find'](_0x53cc4e=>_0x32f893 instanceof C[_0x53cc4e]),'name':_0x37de85['name'],'attributes':Array['from'](_0x37de85['getAttributes']()),'children':Array['from'](_0x37de85['getChildren']())['map'](_0x5b35f7=>this['_getViewJson'](_0x5b35f7))};}}['_markChanges'](_0x27f0bb,_0x2567e7,_0x499731,_0xec14d7,_0x492b5b){let _0x1d0fe2=null,_0x41fcad=null,_0x1b6085=0x0;const _0x1348fe=this['editor']['model'];for(let _0x122587=0x0;_0x122587<_0x2567e7['length'];_0x122587++){const _0x3b087d=this['_getVidAttributeName'](_0x2567e7[_0x122587]),_0x3a364e=_0x2567e7[_0x122587]['item']['getAttribute'](_0x3b087d),_0x4028e5=_0x499731['get'](_0x3a364e),_0x224919=_0x122587==_0x2567e7['length']-0x1;(!_0x1d0fe2&&_0x4028e5&&(_0x1d0fe2=_0x4028e5,_0x41fcad=_0x2567e7[_0x122587]),_0x1d0fe2&&(!_0x4028e5||_0x4028e5['userId']!=_0x1d0fe2['userId']))&&(_0x45c345(_0x4028e5,J(_0x41fcad,_0x27f0bb,_0x1348fe),J(_0x2567e7[_0x122587],_0x27f0bb,_0x1348fe)),_0x1d0fe2=_0x4028e5||null,_0x41fcad=_0x4028e5?_0x2567e7[_0x122587]:null),_0x1d0fe2&&_0x224919&&_0x45c345(_0x4028e5,J(_0x41fcad,_0x27f0bb,_0x1348fe),q(_0x2567e7[_0x122587],_0x27f0bb,_0x1348fe));}function _0x45c345(_0x1fb661,_0x1486aa,_0x3a4cc6){const _0x14fc40=_0x1d0fe2['userId'],_0x156a1d='revision:'+_0xec14d7+':'+_0x14fc40+':'+_0x1b6085++,_0x1e4b6a=_0x1348fe['createRange'](_0x1486aa,_0x3a4cc6);_0x27f0bb['markers']['set'](_0x156a1d,_0x1e4b6a),null!==_0x14fc40&&_0x492b5b['add'](_0x14fc40);}}['_getVidAttributeName'](_0x1a4d10){switch(_0x1a4d10['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x143011,_0x402c88){_0x143011['baseVersion']=null;for(const _0x11615e in _0x143011){const _0x526b35=_0x143011[_0x11615e];if(_0x526b35 instanceof gt){const _0x4f0a65=_0x402c88['get'](_0x526b35['root']['rootName']);_0x143011[_0x11615e]=this['_fixPosition'](_0x526b35,_0x4f0a65);}if(_0x526b35 instanceof vt){const _0x2b8f62=_0x402c88['get'](_0x526b35['root']['rootName']);_0x143011[_0x11615e]=this['_fixRange'](_0x526b35,_0x2b8f62);}'root'===_0x11615e&&(_0x143011['root']=_0x402c88['get'](_0x143011['root']['rootName']));}}['_fixRange'](_0x33118c,_0x2e52e1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x33118c['start'],_0x2e52e1),this['_fixPosition'](_0x33118c['end'],_0x2e52e1));}['_fixPosition'](_0x131618,_0x526ff0){return this['editor']['model']['createPositionFromPath'](_0x526ff0,_0x131618['path'],_0x131618['stickiness']);}['_handleInsertOperation'](_0x25b129){const _0x2c86aa=this['_idsRoots']['get'](_0x25b129['position']['root']['rootName']),_0x2431bb=this['_fixPosition'](_0x25b129['position'],_0x2c86aa),_0x1976e6=null===_0x25b129['_authorId']?null:_0x25b129['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x119a73=_0x2431bb['parent'],_0x307f7f=this['_revisionId'],_0x3db109=[];for(const _0x46f534 of _0x25b129['nodes'])if(_0x46f534['is']('element'))_0x3db109['push'](this['_makeIdsRoot'](_0x46f534));else{for(let _0x4de734=0x0;_0x4de734<_0x46f534['offsetSize'];_0x4de734++)_0x3db109['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x541abe=this['_revisionId'];for(let _0x278bba=_0x307f7f;_0x278bba<_0x541abe;_0x278bba++)this['_touched']['set'](_0x278bba,{'userId':_0x1976e6});_0x119a73['_insertChild'](_0x2431bb['offset'],_0x3db109);}['_handleMoveOperation'](_0x54e825){(_0x54e825=this['_cloneOperation'](_0x54e825,this['_idsRoots']))['_execute']();const _0x42ded9=null===_0x54e825['_authorId']?null:_0x54e825['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x131472=_0x54e825['getMovedRangeStart'](),_0x51dae3=_0x131472['parent'],_0x1d8a01=_0x131472['offset'];!function _0x499d2e(_0x3d3362,_0x224562,_0x3fd2a2,_0x47bee3){for(let _0x3c23d4=_0x3fd2a2;_0x3c23d4<_0x47bee3;_0x3c23d4++){const _0x61d5f6=_0x224562['getChild'](_0x3c23d4);_0x61d5f6['is']('element','$text')?_0x3d3362['set'](_0x61d5f6['getAttribute']('vid'),{'userId':_0x42ded9}):(_0x3d3362['set'](_0x61d5f6['getAttribute']('vid_start'),{'userId':_0x42ded9}),_0x499d2e(_0x3d3362,_0x61d5f6,0x0,_0x61d5f6['childCount']),_0x3d3362['set'](_0x61d5f6['getAttribute']('vid_end'),{'userId':_0x42ded9}));}}(this['_touched'],_0x51dae3,_0x1d8a01,_0x1d8a01+_0x54e825['howMany']);}['_handleMergeOperation'](_0x2bb8db){const _0x104f1d=null===(_0x2bb8db=this['_cloneOperation'](_0x2bb8db,this['_idsRoots']))['_authorId']?null:_0x2bb8db['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ad076=_0x2bb8db['targetPosition']['parent'],_0x2e3cf5=_0x2bb8db['sourcePosition']['parent'],_0xad70fd=_0x2ad076['getAttribute']('vid_end'),_0x152574=_0x2e3cf5['getAttribute']('vid_start');_0x2ad076['_setAttribute']('vid_end',_0x2e3cf5['getAttribute']('vid_end')),_0x2e3cf5['_setAttribute']('vid_end',_0xad70fd),this['_touched']['set'](_0x152574,{'userId':_0x104f1d}),this['_touched']['set'](_0xad70fd,{'userId':_0x104f1d}),_0x2bb8db['_execute']();}['_handleSplitOperation'](_0x55f975){const _0xa4ffb=null===(_0x55f975=this['_cloneOperation'](_0x55f975,this['_idsRoots']))['_authorId']?null:_0x55f975['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x381271=_0x55f975['graveyardPosition'],_0x42c64a=_0x55f975['splitPosition']['parent'];_0x55f975['_execute']();const _0x351034=_0x42c64a['getAttribute']('vid_end'),_0x2911ff=_0x55f975['insertionPosition']['nodeAfter'];if(_0x381271){const _0x48fad8=_0x2911ff['getAttribute']('vid_end'),_0x434d08=_0x42c64a['getAttribute']('vid_end');_0x42c64a['_setAttribute']('vid_end',_0x48fad8),_0x2911ff['_setAttribute']('vid_end',_0x434d08),this['_touched']['set'](_0x42c64a['getAttribute']('vid_end'),{'userId':_0xa4ffb}),this['_touched']['set'](_0x2911ff['getAttribute']('vid_start'),{'userId':_0xa4ffb});}else{const _0x30f7d7=this['_revisionId']++,_0x3c6297=this['_revisionId']++;_0x42c64a['_setAttribute']('vid_end',_0x30f7d7),_0x2911ff['_setAttribute']('vid_start',_0x3c6297),_0x2911ff['_setAttribute']('vid_end',_0x351034),this['_touched']['set'](_0x30f7d7,{'userId':_0xa4ffb}),this['_touched']['set'](_0x3c6297,{'userId':_0xa4ffb});}}['_handleMarkerOperation'](_0xbd5852){if(!_0xbd5852['affectsData'])return;const _0x2a847e=(_0xbd5852=this['_cloneOperation'](_0xbd5852,this['_diffRoots']))['oldRange']?_0xbd5852['oldRange']['root']:null,_0x289cac=_0xbd5852['newRange']?_0xbd5852['newRange']['root']:null;_0x2a847e&&this['_markers']['delete'](_0xbd5852['name']),_0x289cac&&this['_markers']['set'](_0xbd5852['name'],_0xbd5852['newRange']['clone']());const _0x3b4d06=null===_0xbd5852['_authorId']?null:_0xbd5852['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4af366=_0xbd5852['name'];if(!this['_touchedMarkers']['has'](_0x4af366))return void this['_touchedMarkers']['set'](_0x4af366,{'range':_0xbd5852['oldRange'],'userId':_0x3b4d06});const _0x130d20=this['_touchedMarkers']['get'](_0x4af366),_0x3461a1=_0x130d20['range'],_0x382c50=_0xbd5852['newRange'];null==_0x3461a1&&null==_0x382c50||_0x3461a1&&_0x382c50&&_0x3461a1['isEqual'](_0x382c50)?this['_touchedMarkers']['delete'](_0xbd5852['name']):_0x130d20['userId']=_0x3b4d06;}['_handleRootOperation'](_0x59d019,_0x418df5){this['_diffRoots']['has'](_0x59d019['rootName'])?this['_diffRoots']['get'](_0x59d019['rootName'])['_isAttached']=_0x59d019['isAdd']:(this['_diffRoots']['set'](_0x59d019['rootName'],B(_0x59d019['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x59d019['rootName'],{}),_0x418df5&&this['_idsRoots']['set'](_0x59d019['rootName'],B(_0x59d019['rootName'],!0x0)));const _0x3f485f=null===_0x59d019['_authorId']?null:_0x59d019['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43859b=this['_touchedRoots']['get'](_0x59d019['rootName']);_0x43859b&&_0x43859b['userId']===_0x3f485f?this['_touchedRoots']['delete'](_0x59d019['rootName']):this['_touchedRoots']['set'](_0x59d019['rootName'],{'userId':_0x3f485f,'isAttached':_0x59d019['isAdd']});}['_handleRootAttributeOperation'](_0xcc5f0e){const _0x1d2e30=this['_diffRootsAttributes']['get'](_0xcc5f0e['root']['rootName']);null===_0xcc5f0e['newValue']?delete _0x1d2e30[_0xcc5f0e['key']]:_0x1d2e30[_0xcc5f0e['key']]=_0xcc5f0e['newValue'];}}function F(_0x3c1f64){const _0x211f96=B(_0x3c1f64['rootName'],_0x3c1f64['isAttached']());for(const _0x4eaff7 of _0x3c1f64['getChildren']()){const _0x6c2884=_0x4eaff7['_clone'](!0x0);_0x211f96['_appendChild'](_0x6c2884);}return _0x211f96;}function B(_0x47360b,_0xfe4f7e=!0x0){const _0x1f2da4=new mt();return _0x1f2da4['rootName']=_0x47360b,_0x1f2da4['_isAttached']=_0xfe4f7e,_0x1f2da4['isAttached']=()=>_0x1f2da4['_isAttached'],_0x1f2da4;}function J(_0xa78344,_0x4c1911,_0x2b672d){const _0x3cdc0b='elementEnd'==_0xa78344['type']?_0x2b672d['createPositionAt'](_0xa78344['item'],'end'):_0x2b672d['createPositionBefore'](_0xa78344['item']);return _0x2b672d['createPositionFromPath'](_0x4c1911,_0x3cdc0b['path'],_0x3cdc0b['stickiness']);}function q(_0xae3516,_0x5d5805,_0x5584ef){const _0x415752='elementStart'==_0xae3516['type']?_0x5584ef['createPositionAt'](_0xae3516['item'],0x0):_0x5584ef['createPositionAfter'](_0xae3516['item']);return _0x5584ef['createPositionFromPath'](_0x5d5805,_0x415752['path'],_0x415752['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4bffe0,_0x2d836a){super(_0x4bffe0),this['focusTracker']=new _0x3b3378(),this['keystrokes']=new _0x178d9d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2d836a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x41b252(this);}['render'](){super['render'](),_0x41d6b9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2995f0=_0x104189=>_0x104189['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2995f0),this['keystrokes']['set']('arrowleft',_0x2995f0),this['keystrokes']['set']('arrowup',_0x2995f0),this['keystrokes']['set']('arrowdown',_0x2995f0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x143e4a){this['revisionNameInputView']['fieldView']['element']['value']=_0x143e4a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x44f999){const _0x284cd1=new _0x2b20cf(this['locale'],_0x2765cf),_0x4819fc=_0x284cd1['fieldView'];_0x4819fc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x125756=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x44f999&&(_0x125756+='\x20('+R(this['locale'],'optional')+')'),(_0x284cd1['label']=_0x125756,_0x4819fc['on']('input',()=>{this['revisionNameInputValue']=_0x4819fc['element']['value']['trim']();}),_0x284cd1);}}class u extends _0x41d97b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x23f7a9=this['editor'],_0x673204=_0x23f7a9['plugins']['get']('RevisionTracker');_0x23f7a9['ui']['componentFactory']['add']('revisionHistory',_0x4c8820=>{const _0x364704=_0xa55c8b(_0x4c8820),_0x1020bc=_0x364704['panelView']['children'],_0x99db31=new _0x5f2c5e(_0x4c8820),_0x4791fd=new _0x3f3f14(_0x4c8820),_0x40cc59=new te(_0x4c8820),_0x1b5e33=new _0x3f3f14(_0x4c8820),_0x4247c6=new te(_0x4c8820);return _0x364704['bind']('isEnabled')['to'](_0x673204,'isReady',_0x673204,'isEnabled',_0x23f7a9,'isReadOnly',(_0x4d93c8,_0x12fa02,_0x4b3774)=>_0x4d93c8&&_0x12fa02&&!_0x4b3774),_0x364704['buttonView']['set']({'icon':_0x536204['history'],'label':R(_0x4c8820,'Revision\x20history'),'tooltip':!0x0}),_0x40cc59['set']({'label':R(_0x4c8820,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x40cc59['bind']('isEnabled')['to'](_0x673204,'isReady',_0x673204,'isEnabled',_0x23f7a9,'isReadOnly',(_0x1313b7,_0x229e55,_0x184c6a)=>_0x1313b7&&_0x229e55&&!_0x184c6a),_0x40cc59['on']('execute',()=>this['_showDialog']()),_0x4247c6['set']({'label':R(_0x4c8820,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4247c6['bind']('isEnabled')['to'](_0x673204,'isReady',_0x23f7a9,'isReadOnly',(_0x2a36d2,_0x49643e)=>_0x2a36d2&&!_0x49643e),_0x4247c6['on']('execute',()=>{_0x23f7a9['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x364704['isOpen']=!0x1,_0x23f7a9['editing']['view']['focus']();}),_0x4791fd['children']['add'](_0x40cc59),_0x1b5e33['children']['add'](_0x4247c6),_0x99db31['role']='menu',_0x99db31['items']['addMany']([_0x4791fd,_0x1b5e33]),_0x1020bc['add'](_0x99db31),_0x364704;}),_0x23f7a9['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3b5ea1=this['editor'],_0x36bdf7=_0x3b5ea1['locale'],_0x3dfef1=new _0x560a34(_0x36bdf7),_0xa6f800=new _0x2543f3(_0x36bdf7);_0x3dfef1['buttonView']['set']({'icon':_0x536204['history'],'label':R(_0x36bdf7,'Revision\x20history')});const _0x5ee600=new _0x377068(_0x36bdf7,_0x3dfef1),_0x282109=new _0x1692f1(_0x36bdf7);_0x282109['set']({'label':R(_0x36bdf7,'Save\x20current\x20revision')}),_0x282109['delegate']('execute')['to'](_0x3dfef1),_0x282109['on']('execute',()=>{this['_showDialog']();}),_0x5ee600['children']['add'](_0x282109),_0xa6f800['items']['add'](_0x5ee600);const _0x59330b=new _0x377068(_0x36bdf7,_0x3dfef1),_0x8449ec=new _0x1692f1(_0x36bdf7);return _0x8449ec['set']({'label':R(_0x36bdf7,'Open\x20revision\x20history')}),_0x8449ec['delegate']('execute')['to'](_0x3dfef1),_0x8449ec['on']('execute',()=>{_0x3b5ea1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x59330b['children']['add'](_0x8449ec),_0xa6f800['items']['add'](_0x59330b),_0x3dfef1['panelView']['children']['add'](_0xa6f800),_0x3dfef1;}['_showDialog'](){const _0x2e2502=this['editor'],_0x1f0045=_0x2e2502['locale'],_0x36d429=_0x2e2502['plugins']['get']('Dialog'),_0x26ee97=_0x2e2502['plugins']['get']('RevisionTracker');function _0x3b38ca(_0x3f5c2f){_0x2e2502['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3f5c2f['revisionName']?_0x3f5c2f['revisionNameInputView']['errorText']=R(_0x1f0045,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2e2502['plugins']['get'](l)['saveRevision']({'name':_0x3f5c2f['revisionName']}),_0x36d429['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3b38ca(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x36d429['show']({'id':'revisionSave','title':R(_0x1f0045,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2e2502['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x36d429['hide']()},{'label':R(_0x2e2502['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x52fe00){_0x52fe00['bind']('isEnabled')['to'](_0x26ee97,'isReady',_0x26ee97,'isEnabled',_0x2e2502,'isReadOnly',(_0x12b383,_0x4aeeef,_0x5dc2cf)=>_0x12b383&&_0x4aeeef&&!_0x5dc2cf);},'onExecute':()=>_0x3b38ca(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4c2ec7=this['editor'],_0x31b800=_0x4c2ec7['locale'];this['_saveRevisionFormView']=new hs(_0x31b800,_0x4c2ec7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x39fd6a,_0x2de508){super(_0x39fd6a),this['_model']=_0x2de508,this['changeId']=_0x2de508['id'];const _0x445e33=this['bindTemplate'],_0xbf23b1=R(_0x39fd6a,_0x2de508['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2de508['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2de508['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x445e33['to']('type',_0x109456=>'ck-revision-change__'+_0x109456)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xbf23b1}]},{'text':'\x20'+_0x2de508['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0xfe4998(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4457a5){super(),this['id']=_0x4457a5['id']||_0x119d0b(),this['author']=_0x4457a5['author'],this['type']=_0x4457a5['type'],this['data']=_0x4457a5['data']||{},this['rootName']=_0x4457a5['rootName'],this['set']('createdAt',_0x4457a5['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3aa8f6,_0x32bacc){this['newRevisionId']=_0x3aa8f6,this['oldRevisionId']=_0x32bacc,this['changes']=new _0x3fb858();}['_setChanges'](_0x1ad4de){for(const _0x5effbf of _0x1ad4de)this['changes']['add'](_0x5effbf);}}const Z={'c':_0x880e00,'a':_0x157de6,'e':_0x53cb6d,'r':_0x3add22,'u':_0x1b5e13};class d extends _0x41d97b{['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[_0x371067,_0x48c3b2,j];}constructor(_0x52fcd9){super(_0x52fcd9),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',(_0x21f4e7,_0x4a8898,_0x5b7f60)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1b6593=>{for(const _0x141daa of this['editor']['editing']['view']['document']['roots'])_0x5b7f60?_0x1b6593['removeClass']('ck-editor__editable__overlay',_0x141daa):_0x1b6593['addClass']('ck-editor__editable__overlay',_0x141daa);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2de827=>null!==_0x2de827),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x578538,_0x5a9ff7,_0x43d44d)=>_0x578538&&_0x43d44d?_0x5a9ff7['changes']['getIndex'](_0x43d44d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x631c9f,_0x5c7627)=>_0x631c9f?_0x5c7627['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x48c3b2);}['init'](){const _0x4b72e9=this['editor'],_0x10ce78=new yt(_0x4b72e9,{'direction':'backward'}),_0x26440b=new yt(_0x4b72e9,{'direction':'forward'});(_0x4b72e9['commands']['add']('showPreviousChange',_0x10ce78),_0x4b72e9['commands']['add']('showNextChange',_0x26440b),_0x4b72e9['commands']['add']('restoreRevision',new _t(_0x4b72e9)),this['on']('change:numberOfChanges',()=>{_0x10ce78['refresh'](),_0x26440b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4b72e9['enableReadOnlyMode']('revision-viewer'),_0x4b72e9['plugins']['has']('WidgetToolbarRepository'))&&_0x4b72e9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x7aac7){await this['loadRevisionData'](_0x7aac7);const _0x2ad141={};for(const _0x1abeaa in _0x7aac7['diffData']){if(_0x7aac7['diffData'][_0x1abeaa]['attachChange']&&!_0x7aac7['diffData'][_0x1abeaa]['attachChange']['isAttached'])continue;const _0x20e4ce=this['_removeRevisionMarkers'](JSON['parse'](_0x7aac7['diffData'][_0x1abeaa]['insertions'])),_0x464400=this['editor']['editing']['view']['document'],_0x3a2ca5=new _0x2ff272(_0x464400,_0x20e4ce['map'](_0x45fa2c=>this['_getViewObj'](_0x45fa2c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2ad141[_0x1abeaa]=this['editor']['data']['processor']['toData'](_0x3a2ca5),this['editor']['data']['processor']['useFillerType']('default');}return _0x2ad141;}async['getRevisionRootsAttributes'](_0x509409){await this['loadRevisionData'](_0x509409);const _0x598010={};for(const _0x7870f4 in _0x509409['diffData'])_0x509409['diffData'][_0x7870f4]['attachChange']&&!_0x509409['diffData'][_0x7870f4]['attachChange']['isAttached']||(_0x598010[_0x7870f4]=_0x509409['diffData'][_0x7870f4]['attributesAfter']||{});return _0x598010;}['_removeRevisionMarkers'](_0x5e90ee){return(_0x5e90ee=_0x5e90ee['filter'](_0x340894=>!_0x340894['name']||'revision-start'!==_0x340894['name']&&'revision-end'!==_0x340894['name']))['forEach'](_0x2efba0=>{'string'!=typeof _0x2efba0&&(_0x2efba0['children']=this['_removeRevisionMarkers'](_0x2efba0['children']),_0x2efba0['attributes']=_0x2efba0['attributes']['filter'](_0x1fb8e8=>!_0x1fb8e8[0x0]['startsWith']('data-revision-')));}),_0x5e90ee;}async['compare'](_0x3bea1f,_0x18ef6f,_0x2059b4=!0x1){if(!this['isEnabled'])return;const _0x3b7285=this['diff'],_0x1c046f=this['repository'],_0x23f982='string'==typeof _0x3bea1f?_0x1c046f['getRevision'](_0x3bea1f):_0x3bea1f,_0x2be198='string'==typeof _0x18ef6f?_0x1c046f['getRevision'](_0x18ef6f):_0x18ef6f,_0x30b222=_0x23f982['id'],_0x1142e2=_0x2be198?_0x2be198['id']:null;if(!_0x2059b4&&this['diff']&&this['diff']['newRevisionId']===_0x30b222&&this['diff']['oldRevisionId']===_0x1142e2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x30b222,_0x1142e2);const _0xd6f5fd=this['_getRevisionsRange'](_0x23f982,_0x2be198,!0x0)['map'](_0x1b3ebe=>this['loadRevisionData'](_0x1b3ebe));return _0xd6f5fd['push'](new Promise(_0x16bf6f=>{setTimeout(_0x16bf6f,0x14);})),Promise['all'](_0xd6f5fd)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1cb01e=this['_getDiff'](_0x30b222,_0x1142e2);for(const _0x2f09de of _0x1cb01e['changes'])this['_changeIdToChange']['set'](_0x2f09de['id'],_0x2f09de);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x51d373=>{for(const _0x16c3d4 of this['editor']['model']['document']['getRootNames']())_0x51d373['detachRoot'](_0x16c3d4);for(const _0x101c2a of Object['keys'](_0x1cb01e['model'])){const _0x4a85c7=_0x51d373['addRoot'](_0x101c2a);for(const _0x108c8d of Object['keys'](_0x1cb01e['attributes'][_0x101c2a]))_0x51d373['setAttribute'](_0x108c8d,_0x1cb01e['attributes'][_0x101c2a][_0x108c8d],_0x4a85c7);_0x51d373['insert'](_0x1cb01e['model'][_0x101c2a],_0x4a85c7,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1cb01e['changes'])),this['isReady']=!0x0;})['catch'](_0x1bddb9=>{console['error'](_0x1bddb9),this['_cleanUp'](),_0x3b7285&&(this['diff']=_0x3b7285),this['isReady']=!0x0;});}['addRevisionData'](_0x41089e,_0x17bd40){const _0x5133b5=this['repository']['createRevision'](_0x41089e);return _0x5133b5['on']('_update',(_0xe3fd0e,_0x222977,_0x485415)=>_0x17bd40(_0x222977,_0x485415,_0x5133b5)),this['repository']['addRevision'](_0x5133b5),_0x5133b5;}['loadRevisionData'](_0x5e2e5a){if(!_0x5e2e5a||_0x5e2e5a['diffData'])return Promise['resolve']();{const _0x280429=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x280429,'revisionId':_0x5e2e5a['id']})['then'](_0x58f739=>{_0x5e2e5a['_update']({'diffData':_0x58f739['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},_0x1ce70c=>{for(const _0x54ec6d of this['editor']['model']['document']['getRootNames']())_0x1ce70c['detachRoot'](_0x54ec6d);});}['_sortAndFilterDiffChanges'](_0x55e7c8){const _0x3c5859=[],_0x284cde=new Map();for(const _0x12eeb4 of this['editor']['model']['document']['getRootNames']()){const _0x5cd853=this['editor']['editing']['view']['getDomRoot'](_0x12eeb4);if(!_0x5cd853)continue;const _0x4f2dce=_0x5cd853['getClientRects']()['item'](0x0);_0x4f2dce&&(_0x3c5859['push'](_0x12eeb4),_0x284cde['set'](_0x12eeb4,_0x4f2dce));}return _0x3c5859['sort']((_0x4977b9,_0x1b195c)=>{const _0x16aee2=_0x284cde['get'](_0x4977b9),_0x2eb46a=_0x284cde['get'](_0x1b195c);return _0x16aee2['y']-_0x2eb46a['y']||_0x16aee2['x']-_0x2eb46a['x'];}),(_0x55e7c8=_0x55e7c8['filter'](_0x3cfacb=>_0x3c5859['includes'](_0x3cfacb['rootName'])))['sort']((_0xfc9f2c,_0x4b6b21)=>_0x3c5859['indexOf'](_0xfc9f2c['rootName'])-_0x3c5859['indexOf'](_0x4b6b21['rootName'])),_0x55e7c8;}['_makeTape'](_0x24416b){const _0x56e012=Array['from'](_0x24416b['markers'])['filter'](([_0x5000c0,_0x400746])=>_0x5000c0['startsWith']('revision:')&&!_0x400746['isCollapsed']),_0x39f316=Array['from'](this['editor']['model']['createRangeIn'](_0x24416b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x56e012['length'])for(const _0x5a1d58 of _0x39f316){const [_0x1a6f39,_0x61552c]=_0x56e012[0x0],[,_0x4d83f7,_0x4ebaaf]=_0x1a6f39['split'](':');if(_0x61552c['end']['isEqual'](_0x5a1d58['nextPosition'])&&_0x56e012['shift'](),(_0x5a1d58['previousPosition']['isEqual'](_0x61552c['start'])||_0x5a1d58['previousPosition']['isAfter'](_0x61552c['start']))&&('insertion'==_0x4d83f7?_0x5a1d58['isAdded']={'userId':_0x4ebaaf}:'deletion'==_0x4d83f7&&(_0x5a1d58['isRemoved']={'userId':_0x4ebaaf})),0x0==_0x56e012['length'])break;}return _0x39f316;}['_refreshStartEndIndex'](_0x1a913b){const _0x417eb3=new Map();for(let _0x5107b8=0x0;_0x5107b8<_0x1a913b['length'];_0x5107b8++)'text'===_0x1a913b[_0x5107b8]['type']?(_0x1a913b[_0x5107b8]['item']['startIndex']=_0x5107b8,_0x1a913b[_0x5107b8]['item']['endIndex']=_0x5107b8):('elementStart'===_0x1a913b[_0x5107b8]['type']?_0x1a913b[_0x5107b8]['item']['startIndex']=_0x5107b8:'elementEnd'===_0x1a913b[_0x5107b8]['type']&&(_0x1a913b[_0x5107b8]['item']['endIndex']=_0x5107b8),_0x417eb3['set'](_0x1a913b[_0x5107b8]['id'],_0x5107b8));for(const _0x12a4af of _0x417eb3['values']())'elementStart'===_0x1a913b[_0x12a4af]['type']?_0x1a913b[_0x12a4af]['item']['endIndex']=_0x417eb3['get'](_0x1a913b[_0x12a4af]['pairId']):'elementEnd'===_0x1a913b[_0x12a4af]['type']&&(_0x1a913b[_0x12a4af]['item']['startIndex']=_0x417eb3['get'](_0x1a913b[_0x12a4af]['pairId']));}['_processTape'](_0x42d1bf){for(let _0x22c085=0x0;_0x22c085<_0x42d1bf['length'];_0x22c085++){if('elementStart'===_0x42d1bf[_0x22c085]['type'])_0x42d1bf[_0x22c085]['item']['startIndex']=_0x22c085;else{if('elementEnd'===_0x42d1bf[_0x22c085]['type']){_0x42d1bf[_0x22c085]['item']['endIndex']=_0x22c085;const _0x434a01=_0x42d1bf[_0x22c085]['item']['startIndex'];_0x42d1bf[_0x434a01]['pairId']=_0x42d1bf[_0x22c085]['id'],_0x42d1bf[_0x22c085]['pairId']=_0x42d1bf[_0x434a01]['id'];}else _0x42d1bf[_0x22c085]['item']['startIndex']=_0x22c085,_0x42d1bf[_0x22c085]['item']['endIndex']=_0x22c085,_0x42d1bf[_0x22c085]['pairId']=null;}_0x42d1bf[_0x22c085]['markersStart']||(_0x42d1bf[_0x22c085]['markersStart']=[],_0x42d1bf[_0x22c085]['markersEnd']=[]);}}['_markInsertions'](_0x453156,_0x2578b9){const _0x5eb09b=_0x453156['filter'](_0x106ca7=>!_0x106ca7['isAdded']);for(let _0x29ba60=0x0;_0x29ba60<_0x2578b9['length'];_0x29ba60++)_0x2578b9[_0x29ba60]['isAdded']&&(_0x5eb09b[_0x29ba60]['isAdded']=_0x2578b9[_0x29ba60]['isAdded']);}['_makeModelFromViewString'](_0x564ee9){const _0xa65b2f=JSON['parse'](_0x564ee9),_0x362fab=this['editor']['editing']['view']['document'],_0x387c22=new _0x2ff272(_0x362fab,_0xa65b2f['map'](_0x3b17d5=>this['_getViewObj'](_0x3b17d5)));return this['editor']['data']['toModel'](_0x387c22);}['_getViewObj'](_0x3ae1a5){const _0x25f657=this['editor']['editing']['view']['document'];if('string'==typeof _0x3ae1a5)return new _0x5819cc(_0x25f657,_0x3ae1a5);{const _0x2a0ce7=_0x3ae1a5['children']['map'](_0x25d55c=>this['_getViewObj'](_0x25d55c));return new(Z[_0x3ae1a5['type']]||_0x17cad2)(_0x25f657,_0x3ae1a5['name'],_0x3ae1a5['attributes'],_0x2a0ce7);}}['_getDiff'](_0x4ab2bc,_0x48a9eb=null){const _0x5a59be=this['repository']['getRevision'](_0x4ab2bc),_0x2c1abd=_0x48a9eb?this['repository']['getRevision'](_0x48a9eb):null,_0xcfa088=this['_getRevisionsRange'](_0x5a59be,_0x2c1abd),_0x30b6a1=_0xcfa088[_0xcfa088['length']-0x1],_0x2d6585=new Map(),_0x53d17b={'model':{},'attributes':{},'changes':[]},_0x341cd8=new Set(),_0x5cf32c=new Map();for(let _0xe36caa=_0xcfa088['length']-0x1;_0xe36caa>=0x0;_0xe36caa--){const _0x45350c=_0xcfa088[_0xe36caa];for(const _0x22ef94 of Object['keys'](_0x45350c['diffData']))if(_0x45350c['diffData'][_0x22ef94]['attachChange']){const _0x394e30=_0x45350c['diffData'][_0x22ef94]['attachChange'];_0x394e30['isAttached']?(_0x341cd8['add'](_0x22ef94),_0x5cf32c['has'](_0x22ef94)&&_0x5cf32c['get'](_0x22ef94)['userId']==_0x394e30['userId']?_0x5cf32c['delete'](_0x22ef94):_0x5cf32c['set'](_0x22ef94,_0x394e30)):_0x5cf32c['has'](_0x22ef94)?(_0x341cd8['delete'](_0x22ef94),_0x5cf32c['delete'](_0x22ef94)):(_0x341cd8['add'](_0x22ef94),_0x5cf32c['set'](_0x22ef94,_0x394e30));}else _0x341cd8['add'](_0x22ef94);}for(const _0xf7e594 of _0x341cd8){const _0x2ff228=_0x5cf32c['has'](_0xf7e594)&&!_0x5cf32c['get'](_0xf7e594)['isAttached'];let _0x1ea96a=_0x2ff228?_0xcfa088['length']-0x1:0x0;const _0x56083c=_0x2ff228?-0x1:0x1;for(;_0xcfa088[_0x1ea96a];){const _0x37c3a4=_0xcfa088[_0x1ea96a];if(_0x37c3a4['diffData'][_0xf7e594]){const _0x9b92e0=_0x2ff228?_0x37c3a4['diffData'][_0xf7e594]['attributesBefore']:_0x37c3a4['diffData'][_0xf7e594]['attributesAfter'];_0x53d17b['attributes'][_0xf7e594]=_0x9b92e0?_0x4de36a(_0x9b92e0):{};break;}_0x1ea96a+=_0x56083c;}}for(const _0x223451 of _0xcfa088){_0x223451['model']={};for(const _0x1e2ae2 of _0x223451['authors'])_0x2d6585['set'](_0x1e2ae2['id'],_0x1e2ae2);for(const _0x273cbc of _0x341cd8){const _0xaaf55d=_0x223451['diffData'][_0x273cbc]?_0x223451['diffData'][_0x273cbc]['insertions']:'[]',_0x48fa64=_0x223451['diffData'][_0x273cbc]?_0x223451['diffData'][_0x273cbc]['deletions']:'[]';_0x223451['model'][_0x273cbc]={'insertions':this['_makeModelFromViewString'](_0xaaf55d),'deletions':this['_makeModelFromViewString'](_0x48fa64)};}}for(const _0x5d885d of _0x341cd8){let _0x2fec90=null,_0x16c565=0x0;const _0x2aae0c=new Map(Array['from'](_0x5a59be['model'][_0x5d885d]['insertions']['markers'])['filter'](([_0x7fa586])=>!_0x7fa586['startsWith']('revision:')));let _0x166c55=0x0;for(const _0x5a9c5c of _0xcfa088){const _0x3c6c98=this['_makeTape'](_0x5a9c5c['model'][_0x5d885d]['insertions']);_0x5a9c5c==_0x5a59be?(_0x2fec90=_0x3c6c98,_0x16c565=_0x2fec90['length'],_0x2fec90['forEach'](_0x50d29e=>{_0x50d29e['id']=_0x166c55++;}),this['_processTape'](_0x2fec90)):this['_markInsertions'](_0x2fec90,_0x3c6c98);const _0x33cc68=_0x2fec90['filter'](_0x57abe9=>!_0x57abe9['isAdded'])['map'](_0x944d18=>_0x944d18['id']);let _0x13a707=0x0;const _0x88ff73=this['_makeTape'](_0x5a9c5c['model'][_0x5d885d]['deletions']);_0x88ff73['forEach'](_0x43e1af=>{_0x43e1af['isRemoved']?_0x43e1af['id']=_0x16c565++:_0x43e1af['id']=_0x33cc68[_0x13a707++];}),this['_processTape'](_0x88ff73),this['_setDistance'](_0x2fec90,'isAdded'),this['_setDistance'](_0x88ff73,'isRemoved'),_0x5a9c5c==_0x5a59be&&this['_markMarkers'](_0x2fec90,_0x2aae0c),_0x2fec90=this['_joinTapes'](_0x2fec90,_0x88ff73),this['_refreshStartEndIndex'](_0x2fec90),this['_setDistance'](_0x2fec90,'isRemoved');}_0x2fec90=_0x2fec90['filter'](_0x4cc84e=>!(_0x4cc84e['isAdded']&&_0x4cc84e['isRemoved']));const _0x30325b=new Map(_0x30b6a1['model'][_0x5d885d]['deletions']['markers']),_0x8b1980=new Set(_0x2aae0c['keys']());for(const _0x73d725 of _0x30325b['keys']())_0x8b1980['delete'](_0x73d725);this['_markSuggestions'](_0x2fec90,_0x8b1980),this['_fixObsoleteTags'](_0x2fec90),_0x2fec90=this['_removeMissingPairs'](_0x2fec90),_0x2fec90=this['_markMismatchedRemovedTags'](_0x2fec90),_0x2fec90=this['_removeUnsupportedChanges'](_0x2fec90);const {root:_0x411467,changes:_0x30f0fa}=this['_makeModelFromTape'](_0x2fec90,_0x2d6585,_0x5d885d);_0x53d17b['model'][_0x5d885d]=_0x411467;const _0x1d0e33=_0x5cf32c['get'](_0x5d885d);if(_0x1d0e33){const _0x20b4c5=_0x2d6585['get'](_0x1d0e33['userId']),_0x1e2412=new r({'author':_0x20b4c5,'type':_0x1d0e33['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d885d});_0x30f0fa['unshift'](_0x1e2412),_0x53d17b['attributes'][_0x5d885d]['revisionHistoryAttachChange']=_0x1e2412['id'];}_0x53d17b['changes']=_0x53d17b['changes']['concat'](_0x30f0fa);}return _0x53d17b;}['_markMarkers'](_0x88a6b4,_0xa0995c){for(let _0x3a5f77=0x0;_0x3a5f77<_0x88a6b4['length'];_0x3a5f77++)for(const [_0x2f0421,_0x20cce1]of _0xa0995c)_0x20cce1['start']['isEqual'](_0x88a6b4[_0x3a5f77]['previousPosition'])&&_0x88a6b4[_0x3a5f77]['markersStart']['push'](_0x2f0421),_0x20cce1['end']['isEqual'](_0x88a6b4[_0x3a5f77]['nextPosition'])&&_0x88a6b4[_0x3a5f77]['markersEnd']['push'](_0x2f0421);}['_joinTapes'](_0x525eda,_0xdc8175){let _0x126a87=[],_0x502be7=0x0,_0x504da1=0x0;for(;_0x502be7<_0x525eda['length']||_0x504da1<_0xdc8175['length'];){const _0xeaab69=_0x525eda[_0x502be7]||{},_0x51f9cf=_0xdc8175[_0x504da1]||{};if(_0xeaab69['id']==_0x51f9cf['id'])_0x502be7++,_0x504da1++,_0x126a87['push'](_0xeaab69);else{if(_0x51f9cf['isRemoved']&&_0xeaab69['isAdded']){const {commonTape:_0x2f9d8e,iEnd:_0x1f27a0,jEnd:_0x16e6af}=this['_threeWayMerge'](_0x525eda,_0x502be7,_0xdc8175,_0x504da1);_0x126a87=_0x126a87['concat'](_0x2f9d8e),_0x502be7=_0x1f27a0,_0x504da1=_0x16e6af;}else _0x51f9cf['isRemoved']?(_0x504da1++,_0x126a87['push'](_0x51f9cf)):(_0x502be7++,_0x126a87['push'](_0xeaab69));}}return _0x126a87;}['_markSuggestions'](_0x424e48,_0x3e01a6){const _0x1b7869=[];for(let _0x19f5ef=0x0;_0x19f5ef<_0x424e48['length'];_0x19f5ef++){for(let _0x2c4e25=0x0;_0x2c4e25<_0x424e48[_0x19f5ef]['markersStart']['length'];_0x2c4e25++){const _0x4dbae3=_0x424e48[_0x19f5ef]['markersStart'][_0x2c4e25];if(!_0x3e01a6['has'](_0x4dbae3))continue;const {group:_0x3cf4d8,type:_0x139f5b,authorId:_0x314b58}=_0x39043e(_0x4dbae3);'revision-suggestion'!=_0x3cf4d8||'insertion'!=_0x139f5b&&'deletion'!=_0x139f5b||(_0x1b7869['unshift']({'type':_0x139f5b,'name':_0x4dbae3,'userId':_0x314b58}),_0x424e48[_0x19f5ef]['markersStart']['splice'](_0x2c4e25,0x1),_0x2c4e25--);}_0x25abad(_0x424e48[_0x19f5ef]);for(let _0x45aa75=0x0;_0x45aa75<_0x424e48[_0x19f5ef]['markersEnd']['length'];_0x45aa75++){const _0x1dd4ec=_0x424e48[_0x19f5ef]['markersEnd'][_0x45aa75];if(!_0x3e01a6['has'](_0x1dd4ec))continue;const {group:_0x1824f8,type:_0x1d35d6}=_0x39043e(_0x1dd4ec);if('revision-suggestion'!=_0x1824f8||'insertion'!=_0x1d35d6&&'deletion'!=_0x1d35d6)continue;_0x424e48[_0x19f5ef]['markersEnd']['splice'](_0x45aa75,0x1),_0x45aa75--;const _0x315088=_0x1b7869['findIndex'](_0x4dac12=>_0x4dac12['name']==_0x1dd4ec);_0x315088>-0x1&&_0x1b7869['splice'](_0x315088,0x1);}}function _0x39043e(_0x2c8c06){const _0x12911d=_0x2c8c06['split'](':');return{'group':_0x12911d[0x0],'type':_0x12911d[0x1],'subType':_0x12911d['length']>=0x5?_0x12911d[0x2]:null,'id':_0x12911d['length']<0x5?_0x12911d[0x2]:_0x12911d[0x3],'authorId':_0x12911d['length']<0x5?_0x12911d[0x3]:_0x12911d[0x4],'markerCount':0x6==_0x12911d['length']?_0x12911d[0x5]:null};}function _0x25abad(_0x4d019d){for(let _0x41bd8d=0x0;_0x41bd8d<_0x1b7869['length'];_0x41bd8d++){if(_0x4d019d['isAdded']&&'insertion'==_0x1b7869[_0x41bd8d]['type'])return _0x4d019d['isAddSuggestion']=_0x1b7869[_0x41bd8d],void delete _0x4d019d['isAdded'];if(!_0x4d019d['isAdded']&&!_0x4d019d['isRemoved']&&'deletion'==_0x1b7869[_0x41bd8d]['type'])return void(_0x4d019d['isRemoveSuggestion']=_0x1b7869[_0x41bd8d]);}}}['_setDistance'](_0x2b2718,_0x5e105d){let _0x1e7973=0x0,_0x583e23=!0x1;const _0x42b157=new Map();for(const _0x180086 of _0x2b2718)_0x180086[_0x5e105d]?_0x583e23&&(_0x1e7973++,_0x583e23=!0x1):(_0x1e7973++,_0x583e23=!0x0),_0x42b157['set'](_0x180086['id'],_0x1e7973);for(let _0x51e8eb=0x0;_0x51e8eb<_0x2b2718['length'];_0x51e8eb++){if('isRemoved'==_0x5e105d&&_0x2b2718[_0x51e8eb]['isAdded']||'isAdded'==_0x5e105d&&_0x2b2718[_0x51e8eb]['isRemoved'])continue;if('text'==_0x2b2718[_0x51e8eb]['type']){_0x2b2718[_0x51e8eb]['distance']=0x0;continue;}const _0xf878ac=_0x42b157['get'](_0x2b2718[_0x51e8eb]['pairId']),_0x41939e=_0x42b157['get'](_0x2b2718[_0x51e8eb]['id']);_0x2b2718[_0x51e8eb]['distance']=_0xf878ac-_0x41939e;}}['_getRevisionsRange'](_0x353cc1,_0x30b660,_0x37a642=!0x1){const _0x4992fc=[];let _0xb23606=this['repository']['getIndex'](_0x353cc1),_0x42720d=this['repository']['getIndex'](_0x30b660);for(-0x1==_0x42720d&&(_0x42720d=this['repository']['_revisions']['length'],_0x37a642=!0x1);_0xb23606<_0x42720d;)_0x4992fc['push'](this['repository']['getRevision'](_0xb23606)),_0xb23606++;return _0x37a642&&_0x4992fc['push'](this['repository']['getRevision'](_0xb23606)),_0x4992fc;}['_threeWayMerge'](_0x3c334b,_0xa68fbb,_0xac2734,_0x53b6b4){const _0x3b0e23=this['editor']['model']['schema'];let _0x3e7818=_0xa68fbb;for(;_0x3c334b[_0x3e7818]&&_0x3c334b[_0x3e7818]['isAdded'];)_0x3e7818++;let _0x1650d0=_0x53b6b4;for(;_0xac2734[_0x1650d0]&&_0xac2734[_0x1650d0]['isRemoved'];)_0x1650d0++;_0x44949d(_0x3c334b,_0xa68fbb,_0x3e7818),_0x44949d(_0xac2734,_0x53b6b4,_0x1650d0);const _0x186cf6=_0xac2734['slice'](_0x53b6b4,_0x1650d0)['concat'](_0x3c334b['slice'](_0xa68fbb,_0x3e7818));return _0x186cf6['sort']((_0x2f493a,_0x2ccab9)=>_0x2f493a['side']!=_0x2ccab9['side']?_0x2f493a['side']-_0x2ccab9['side']:_0x2f493a['level']!=_0x2ccab9['level']?_0x2f493a['level']-_0x2ccab9['level']:_0x2f493a['distance']!=_0x2ccab9['distance']?_0x2ccab9['distance']-_0x2f493a['distance']:!!_0x2f493a['isAdded']!=!!_0x2ccab9['isAdded']?-0x1==_0x2f493a['side']||0x0==_0x2f493a['side']?_0x2f493a['isAdded']?-0x1:0x1:_0x2f493a['isAdded']?0x1:-0x1:_0x2f493a['index']-_0x2ccab9['index']),{'commonTape':_0x186cf6,'iEnd':_0x3e7818,'jEnd':_0x1650d0};function _0x44949d(_0x3b37e4,_0x29e409,_0x477514){let _0xa68a24=-0x1,_0x1d6c40=Number['POSITIVE_INFINITY'],_0x33c29f=!0x0;for(let _0x9241d9=_0x29e409;_0x9241d9<_0x477514;_0x9241d9++)if(_0x3b0e23['isInline'](_0x3b37e4[_0x9241d9]['item'])||(_0x33c29f=!0x1),_0x3b37e4[_0x9241d9]['item']['startIndex']<_0x29e409&&(_0xa68a24=_0x9241d9),_0x3b37e4[_0x9241d9]['item']['endIndex']>=_0x477514){_0x1d6c40=_0x9241d9;break;}_0x33c29f&&(_0xa68a24=_0x477514-0x1);for(let _0x2817b1=_0x29e409;_0x2817b1<_0x477514;_0x2817b1++)_0x3b37e4[_0x2817b1]['side']=_0x2817b1<=_0xa68a24?-0x1:_0x2817b1<_0x1d6c40?0x0:0x1,_0x3b37e4[_0x2817b1]['index']=_0x2817b1;let _0x2385ee=0x0;for(let _0x5b2ec1=_0x29e409;_0x5b2ec1<=_0xa68a24;_0x5b2ec1++)0x0==_0x3b37e4[_0x5b2ec1]['distance']?_0x3b37e4[_0x5b2ec1]['level']=_0x2385ee:(_0x2385ee++,_0x3b37e4[_0x5b2ec1]['level']=_0x2385ee,_0x2385ee++);for(let _0x34bed4=_0x29e409;_0x34bed4<_0x477514;_0x34bed4++)0x0==_0x3b37e4[_0x34bed4]['side']&&(_0x3b37e4[_0x34bed4]['level']=_0x2385ee);_0x2385ee=0x0;for(let _0x4c6570=_0x477514-0x1;_0x4c6570>=_0x1d6c40;_0x4c6570--)0x0==_0x3b37e4[_0x4c6570]['distance']?_0x3b37e4[_0x4c6570]['level']=_0x2385ee:(_0x2385ee--,_0x3b37e4[_0x4c6570]['level']=_0x2385ee,_0x2385ee--);}}['_fixObsoleteTags'](_0x594122){const _0x11ed00=new Map(),_0xbfc9d=this['editor']['model']['schema'];for(let _0x3dc7be=0x1;_0x3dc7be<_0x594122['length'];_0x3dc7be++){let _0x490989,_0x473e10,_0x16fd84;const _0x5164c5=_0x594122[_0x3dc7be],_0x1ff35c=_0x594122[_0x3dc7be-0x1];if('text'==_0x5164c5['type'])continue;if(_0x5164c5['type']!=_0x1ff35c['type'])continue;if(!_0xbfc9d['isBlock'](_0x1ff35c['item'])||_0xbfc9d['isLimit'](_0x1ff35c['item']))continue;if(!_0xbfc9d['isBlock'](_0x5164c5['item'])||_0xbfc9d['isLimit'](_0x5164c5['item']))continue;if((_0x594122[_0x3dc7be]['isAdded']||_0x594122[_0x3dc7be]['isAddSuggestion'])&&_0x594122[_0x3dc7be-0x1]['isRemoved'])_0x490989=_0x594122[_0x3dc7be],_0x473e10=_0x594122[_0x3dc7be-0x1],_0x16fd84=_0x3dc7be-0x1;else{if(!_0x594122[_0x3dc7be]['isRemoved']||!_0x594122[_0x3dc7be-0x1]['isAdded']&&!_0x594122[_0x3dc7be-0x1]['isAddSuggestion'])continue;_0x490989=_0x594122[_0x3dc7be-0x1],_0x473e10=_0x594122[_0x3dc7be],_0x16fd84=_0x3dc7be;}const _0x40ce18=_0x490989['level']==_0x473e10['level'],_0x28f32f=Math['abs'](_0x490989['level'])<Math['abs'](_0x473e10['level'])&&0x0==_0x473e10['distance'];(_0x40ce18||_0x28f32f)&&(_0x11ed00['set'](_0x473e10['id'],_0x490989['id']),_0x594122['splice'](_0x16fd84,0x1),_0x3dc7be--,_0x490989['isAdded']=!0x1);}for(let _0x57b8bf=0x0;_0x57b8bf<_0x594122['length'];_0x57b8bf++)_0x11ed00['has'](_0x594122[_0x57b8bf]['pairId'])&&(_0x594122[_0x57b8bf]['pairId']=_0x11ed00['get'](_0x594122[_0x57b8bf]['pairId']));}['_removeMissingPairs'](_0x4312e2){const _0x17b406=new Set(_0x4312e2['map'](_0x2d3e7e=>_0x2d3e7e['id']));for(let _0x387469=0x0;_0x387469<_0x4312e2['length'];_0x387469++)_0x17b406['has'](_0x4312e2[_0x387469]['pairId'])||0x0==_0x4312e2[_0x387469]['distance']||(_0x4312e2[_0x387469]['isIncorrect']=!0x0);return _0x4312e2['filter'](_0x5e5d19=>!_0x5e5d19['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41b3d2){const _0x510a48=new Set();for(let _0x21e90b=0x0;_0x21e90b<_0x41b3d2['length'];_0x21e90b++){if(_0x510a48['has'](_0x41b3d2[_0x21e90b]['id'])&&_0x41b3d2[_0x21e90b]['isRemoved']&&(_0x41b3d2[_0x21e90b]['isIncorrect']=!0x0),_0x41b3d2[_0x21e90b]['isIncorrect'])continue;if(0x0==_0x41b3d2[_0x21e90b]['distance'])continue;if('elementStart'!=_0x41b3d2[_0x21e90b]['type'])continue;if(null==_0x41b3d2[_0x21e90b]['pairId'])continue;let _0xabe54e=_0x21e90b+0x1,_0x3c522f=0x0;for(;_0x41b3d2[_0xabe54e]['id']!=_0x41b3d2[_0x21e90b]['pairId'];)'elementStart'==_0x41b3d2[_0xabe54e]['type']?_0x3c522f++:'elementEnd'==_0x41b3d2[_0xabe54e]['type']&&_0x3c522f--,_0xabe54e++;if(0x0!=_0x3c522f){if(_0x41b3d2[_0x21e90b]['isRemoved'])_0x41b3d2[_0x21e90b]['isIncorrect']=!0x0;else{for(;_0xabe54e!=_0x21e90b;)_0x41b3d2[_0xabe54e]['isRemoved']&&0x0!=_0x41b3d2[_0xabe54e]['distance']&&(_0x41b3d2[_0xabe54e]['isIncorrect']=!0x0,_0x510a48['add'](_0x41b3d2[_0xabe54e]['pairId'])),_0xabe54e--;}}}return _0x41b3d2['filter'](_0x466d2d=>!_0x466d2d['isIncorrect']);}['_removeUnsupportedChanges'](_0x3a75ba){const _0xe62ac9=this['editor']['model']['schema'];for(let _0x5be0db=0x0;_0x5be0db<_0x3a75ba['length'];_0x5be0db++){if(!(_0x3a75ba[_0x5be0db]['isAdded']||_0x3a75ba[_0x5be0db]['isAddSuggestion']||_0x3a75ba[_0x5be0db]['isRemoved']||_0x3a75ba[_0x5be0db]['isRemoveSuggestion']))continue;if(0x0==_0x3a75ba[_0x5be0db]['distance'])continue;const _0x39c47e=_0x3a75ba[_0x5be0db]['item'];_0xe62ac9['isBlock'](_0x39c47e)||_0xe62ac9['isLimit'](_0x39c47e)||(_0x3a75ba[_0x5be0db]['isAdded']&&delete _0x3a75ba[_0x5be0db]['isAdded'],_0x3a75ba[_0x5be0db]['isAddSuggestion']&&delete _0x3a75ba[_0x5be0db]['isAddSuggestion'],_0x3a75ba[_0x5be0db]['isRemoveSuggestion']&&delete _0x3a75ba[_0x5be0db]['isRemoveSuggestion'],_0x3a75ba[_0x5be0db]['isRemoved']&&(_0x3a75ba[_0x5be0db]['isIncorrect']=!0x0));}return _0x3a75ba['filter'](_0x829cd8=>!_0x829cd8['isIncorrect']);}['_makeModelFromTape'](_0x16e88e,_0x45f323,_0xe87963){const _0x4f595e=new mt(),_0x16d435=[],_0x4fd5e1=new Map(),_0xeb358=this['editor']['model'],_0x10d749=_0xeb358['schema'],_0x1d4abe=[_0x4f595e],_0x1ef216={},_0xb297f3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4a430e=null;const _0x1928e0=[0x0];for(let _0x44843c=0x0;_0x44843c<_0x16e88e['length'];_0x44843c++)if('elementStart'===_0x16e88e[_0x44843c]['type']){_0x16e88e[_0x44843c]['previousPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0);const _0xd03ec5=new ft(_0x16e88e[_0x44843c]['item']['name'],_0x16e88e[_0x44843c]['item']['getAttributes']());_0x1d4abe[0x0]['_appendChild'](_0xd03ec5),_0x1928e0['push'](0x0),_0x1d4abe['unshift'](_0xd03ec5),_0x16e88e[_0x44843c]['nextPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0);}else'elementEnd'===_0x16e88e[_0x44843c]['type']?(_0x1d4abe['shift'](),_0x16e88e[_0x44843c]['previousPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0),_0x1928e0['pop'](),_0x1928e0[_0x1928e0['length']-0x1]++,_0x16e88e[_0x44843c]['nextPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0)):(_0x16e88e[_0x44843c]['previousPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0),_0x4a430e?_0x4a430e['_data']+=_0x16e88e[_0x44843c]['item']['data']:_0x4a430e=new wt(_0x16e88e[_0x44843c]['item']['data'],_0x16e88e[_0x44843c]['item']['getAttributes']()),_0x16e88e[_0x44843c+0x1]&&'text'===_0x16e88e[_0x44843c+0x1]['type']&&_0x46f538(_0x4a430e,_0x16e88e[_0x44843c+0x1]['item'])||(_0x1d4abe[0x0]['_appendChild'](_0x4a430e),_0x4a430e=null),_0x1928e0[_0x1928e0['length']-0x1]+=_0x16e88e[_0x44843c]['item']['offsetSize'],_0x16e88e[_0x44843c]['nextPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0));for(let _0x40178c=0x0;_0x40178c<_0x16e88e['length'];_0x40178c++){const _0x45da53=_0x16e88e[_0x40178c]['previousPosition'],_0x49fb7d=_0x16e88e[_0x40178c]['nextPosition'];for(const _0x30286b of _0x16e88e[_0x40178c]['markersStart'])_0x4fd5e1['set'](_0x30286b,{'start':_0x45da53,'end':null});_0x48b4db('isRemoveSuggestion',_0x40178c,_0x45da53,_0x49fb7d),_0x48b4db('isAddSuggestion',_0x40178c,_0x45da53,_0x49fb7d),_0x48b4db('isRemoved',_0x40178c,_0x45da53,_0x49fb7d),_0x48b4db('isAdded',_0x40178c,_0x45da53,_0x49fb7d);for(const _0x515c4d of _0x16e88e[_0x40178c]['markersEnd']){_0x4fd5e1['get'](_0x515c4d)['end']=_0x49fb7d;}}for(const [_0x28e37a,_0x55ecf3]of _0x4fd5e1){const _0x5042db=this['editor']['model']['createRange'](_0x55ecf3['start'],_0x55ecf3['end']);_0x4f595e['markers']['set'](_0x28e37a,_0x5042db);}return _0x16d435['sort']((_0x29023a,_0x188895)=>{const _0x4144cd=_0x4f595e['markers']['get']('revision:'+_0x29023a['id']),_0x291e61=_0x4f595e['markers']['get']('revision:'+_0x188895['id']);return _0x4144cd['start']['isBefore'](_0x291e61['start'])?-0x1:_0x4144cd['start']['isAfter'](_0x291e61['start'])?0x1:_0x4144cd['end']['isBefore'](_0x291e61['end'])?-0x1:_0x4144cd['end']['isAfter'](_0x291e61['end'])?0x1:'add'===_0x29023a['type']?-0x1:0x1;}),{'root':_0x4f595e,'changes':_0x16d435};function _0x48b4db(_0x3047b0,_0x3b91ae,_0x454edc,_0x30993c){const _0x22ef35=!!_0x16e88e[_0x3b91ae][_0x3047b0],_0x5b98fd=_0x22ef35?_0x16e88e[_0x3b91ae][_0x3047b0]['userId']:null,_0x53cee4=_0x3b91ae===_0x16e88e['length']-0x1,_0x51bc4e=_0xb297f3[_0x3047b0][0x0],_0x57bed3=_0x10d749['isObject'](_0x16e88e[_0x3b91ae]['item']);!_0x1ef216[_0x3047b0]&&_0x22ef35?_0x1ef216[_0x3047b0]={'start':_0x454edc,'tapeItem':_0x16e88e[_0x3b91ae],'userId':_0x5b98fd,'type':_0x3047b0}:_0x1ef216[_0x3047b0]&&!_0x22ef35?(_0x1ef216[_0x3047b0]['end']=_0x454edc,_0x493b7c(_0x1ef216[_0x3047b0]),_0x1ef216[_0x3047b0]=null):_0x1ef216[_0x3047b0]&&_0x22ef35&&_0x1ef216[_0x3047b0]['userId']!==_0x5b98fd&&(_0x1ef216[_0x3047b0]['end']=_0x454edc,_0x51bc4e&&_0x51bc4e['userId']===_0x1ef216[_0x3047b0]['userId']||_0x493b7c(_0x1ef216[_0x3047b0]),_0x1ef216[_0x3047b0]={'start':_0x454edc,'tapeItem':_0x16e88e[_0x3b91ae],'userId':_0x5b98fd,'type':_0x3047b0}),_0x1ef216[_0x3047b0]&&_0x57bed3&&('elementStart'!==_0x16e88e[_0x3b91ae]['type']||_0x51bc4e&&_0x51bc4e['userId']===_0x5b98fd||_0xb297f3[_0x3047b0]['unshift']({'userId':_0x5b98fd,'object':_0x16e88e[_0x3b91ae]['item'],'change':_0x1ef216[_0x3047b0]}),'elementEnd'===_0x16e88e[_0x3b91ae]['type']&&_0x51bc4e&&_0x51bc4e['object']===_0x16e88e[_0x3b91ae]['item']&&(_0xb297f3[_0x3047b0]['shift'](),_0x1ef216[_0x3047b0]=_0x51bc4e['change'])),_0x1ef216[_0x3047b0]&&_0x53cee4&&(_0x1ef216[_0x3047b0]['end']=_0x30993c,_0x493b7c(_0x1ef216[_0x3047b0]),_0x1ef216[_0x3047b0]=null);}function _0x493b7c({start:_0x5dfe11,end:_0x49633e,tapeItem:_0xb6aa78,userId:_0x348cb0,type:_0x2e6260}){const _0x1b066b=_0xb6aa78['item'],_0x4a5858=_0xeb358['schema']['isBlock'](_0x1b066b)&&!_0xeb358['schema']['isLimit'](_0x1b066b),_0x14508c=_0x5dfe11['nodeAfter']==_0x49633e['parent']&&_0x49633e['isAtStart'];if(_0x4a5858&&_0x14508c)return;const _0x464a97=_0xeb358['createRange'](_0x5dfe11,_0x49633e),_0x36adee=_0x45f323['get'](_0x348cb0),_0x4612ac=new r({'author':_0x36adee,'type':'isAdded'==_0x2e6260||'isAddSuggestion'==_0x2e6260?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2e6260||'isRemoveSuggestion'==_0x2e6260},'createdAt':new Date(),'rootName':_0xe87963});_0x16d435['push'](_0x4612ac),_0x4f595e['markers']['set']('revision:'+_0x4612ac['id'],_0x464a97);}function _0x46f538(_0x2048bd,_0x1a3aaa){const _0x886ca7=_0x2048bd['getAttributes'](),_0x53940f=_0x1a3aaa['getAttributes']();for(const _0x40bd9f of _0x886ca7){if(_0x40bd9f[0x1]!==_0x1a3aaa['getAttribute'](_0x40bd9f[0x0]))return!0x1;_0x53940f['next']();}return _0x53940f['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x345dbd=>{const _0x21755b=_0x345dbd['markerName']['split'](':')[0x1],_0xc63707=this['_getChangeFromId'](_0x21755b);if(!_0xc63707)return null;const _0x5c4e7b='add'==_0xc63707['type']?'insertion':'deletion',_0x397c5b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5c4e7b];return _0xc63707['data']['isSuggestion']&&_0x397c5b['push']('ck-suggestion-marker-'+_0x5c4e7b+'-new'),this['activeChange']==_0xc63707&&_0x397c5b['push']('ck-suggestion-marker--active'),{'classes':_0x397c5b,'attributes':{'data-change-id':_0x21755b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x548832=>{_0x548832['on']('element:pre',(_0x2dca7f,_0x2f6d89,_0x3c21c6)=>{const _0x445bd8=_0x2f6d89['viewItem']['getChild'](0x0);if(!_0x445bd8||!_0x445bd8['is']('element','code'))return;if(!_0x3c21c6['consumable']['consume'](_0x445bd8,{'attributes':['vid_start','vid_end']}))return;const _0x28899a=_0x2f6d89['modelRange']['start']['nodeAfter'];_0x3c21c6['writer']['setAttribute']('vid_start',_0x445bd8['getAttribute']('vid_start'),_0x28899a),_0x3c21c6['writer']['setAttribute']('vid_end',_0x445bd8['getAttribute']('vid_end'),_0x28899a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x193ee0=>{_0x193ee0['on']('element',(_0xc52c7c,_0x2c6045,_0x5eec24)=>{if(!_0x5eec24['consumable']['consume'](_0x2c6045['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2c6045['modelRange']['isCollapsed'])return;const _0x470af5=_0x2c6045['modelRange']['start']['nodeAfter'];_0x470af5['hasAttribute']('vid_start')||_0x470af5['hasAttribute']('vid')||(_0x5eec24['writer']['setAttribute']('vid_start',_0x2c6045['viewItem']['getAttribute']('vid_start'),_0x470af5),_0x5eec24['writer']['setAttribute']('vid_end',_0x2c6045['viewItem']['getAttribute']('vid_end'),_0x470af5));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xac3ecd=>_0xac3ecd['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1ef50c,[,_0x53af61])=>{['vid_start','vid_end','vid']['includes'](_0x53af61)&&(_0x1ef50c['return']=!0x0,_0x1ef50c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x173e6d=>{_0x173e6d['on']('attribute:vid',(_0x1ec109,_0x5b725d,_0x491606)=>{if('\x20'!=_0x5b725d['item']['data']||_0x5b725d['item']['parent']['maxOffset']>0x1)return;if(!_0x491606['consumable']['consume'](_0x5b725d['item'],_0x1ec109['name']))return;const _0x452b49=_0x491606['writer'],_0x4adb68=_0x491606['mapper']['toViewRange'](_0x5b725d['range']);_0x452b49['wrap'](_0x4adb68,_0x452b49['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x145bc1){const _0x5e746e=_0x145bc1['plugins']['get']('RevisionViewer');return(_0x4a768e,_0x33d6e3,_0x58e16a)=>{const _0x41b60f=_0x33d6e3['markerName']['split'](':')[0x1],_0x13201e=_0x5e746e['_getChangeFromId'](_0x41b60f);if(!_0x13201e)return null;const _0x110651='add'==_0x13201e['type']?'split':'merge';if(!_0x58e16a['consumable']['test'](_0x33d6e3['markerRange'],_0x4a768e['name']))return;const _0x216074=_0x33d6e3['markerRange']['getWalker'](),_0xd2ab75=_0x33d6e3['markerRange']['start'],_0x5555d2=_0x145bc1['model']['schema'];let _0x13935a=null,_0x249ef8=null,_0x4a90ed=!0x1,_0x55198c=!0x1;for(const _0x381f1c of _0x216074){const _0x5a4ff9=_0x381f1c['item'];_0x4a90ed=_0x4a90ed||_0x5555d2['isContent'](_0x5a4ff9);const _0x50baad=_0x58e16a['mapper']['toViewElement'](_0x5a4ff9);if(_0x50baad&&_0x50baad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x381f1c['type']&&(_0x5555d2['isBlock'](_0x5a4ff9)&&!_0x5555d2['isLimit'](_0x5a4ff9)&&(_0x5a4ff9['nextSibling']||_0xd2ab75['isAtEnd']?_0x13935a&&_0x13935a['parent']==_0x5a4ff9||(_0x13935a=_0x5a4ff9,_0x4815c7(_0x381f1c['previousPosition']),_0x55198c=!0x0):_0x249ef8=_0x249ef8||_0x381f1c['previousPosition']));}function _0x4815c7(_0x3ecf75){const _0xc460ad=_0x58e16a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x110651}),_0x559417=_0x58e16a['mapper']['toViewPosition'](_0x3ecf75);_0x13201e['data']['isSuggestion']&&_0x58e16a['writer']['addClass']('ck-suggestion-marker-'+_0x110651+'-new',_0xc460ad),_0x5e746e['activeChange']==_0x13201e&&_0x58e16a['writer']['addClass']('ck-suggestion-marker--active',_0xc460ad),_0x58e16a['writer']['insert'](_0x559417,_0xc460ad),_0x58e16a['mapper']['bindElementToMarker'](_0xc460ad,_0x33d6e3['markerName']);}_0x4a90ed||_0x55198c||!_0x249ef8||_0x4815c7(_0x249ef8);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4ec476,_0x1b3e16,_0x1c13a9)=>{const _0x1dabba=_0x1c13a9['mapper']['markerNameToElements'](_0x1b3e16['markerName']);if(_0x1dabba){for(const _0x9d640c of _0x1dabba)(_0x9d640c['hasClass']('ck-suggestion-marker-split')||_0x9d640c['hasClass']('ck-suggestion-marker-merge'))&&(_0x1c13a9['mapper']['unbindElementFromMarkerName'](_0x9d640c,_0x1b3e16['markerName']),_0x1c13a9['writer']['remove'](_0x9d640c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x731518,_0x104c4b,_0x1ee886)=>{const _0x49de38=_0x104c4b['markerName']['split'](':')[0x1],_0x5bb296=this['_getChangeFromId'](_0x49de38);if(!_0x5bb296)return null;const _0x16a6d5='add'==_0x5bb296['type']?'split':'merge';if(_0x1ee886['consumable']['test'](_0x104c4b['markerRange'],_0x731518['name']))for(const _0x139e1d of _0x104c4b['markerRange']['getItems']()){if(!_0x139e1d['is']('element','softBreak'))continue;const _0x2fe4d4=_0x1ee886['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x16a6d5}),_0x32f20c=_0x1ee886['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x139e1d));_0x5bb296['data']['isSuggestion']&&_0x1ee886['writer']['addClass']('ck-suggestion-marker-'+_0x16a6d5+'-new',_0x2fe4d4),this['activeChange']==_0x5bb296&&_0x1ee886['writer']['addClass']('ck-suggestion-marker--active',_0x2fe4d4),_0x1ee886['writer']['insert'](_0x32f20c,_0x2fe4d4),_0x1ee886['mapper']['bindElementToMarker'](_0x2fe4d4,_0x104c4b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x280f8e=>{for(const _0x8f1733 of this['editor']['model']['document']['getRootNames']()){const _0x4b7bad=this['editor']['model']['document']['getRoot'](_0x8f1733),_0x2d3d32=this['editor']['editing']['view']['document']['getRoot'](_0x8f1733);if(_0x2d3d32){const _0x520bc9=_0x4b7bad['getAttribute']('revisionHistoryAttachChange');if(_0x280f8e['removeAttribute']('data-change-id',_0x2d3d32),_0x280f8e['removeClass']('ck-revision-history-root-add',_0x2d3d32),_0x280f8e['removeClass']('ck-revision-history-root-remove',_0x2d3d32),_0x280f8e['removeClass']('ck-revision-history-root--active',_0x2d3d32),_0x520bc9){const _0x464ca0=this['_getChangeFromId'](_0x520bc9);if(!_0x464ca0)return null;_0x280f8e['setAttribute']('data-change-id',_0x520bc9,_0x2d3d32),_0x280f8e['addClass']('ck-revision-history-root-'+_0x464ca0['type'],_0x2d3d32),this['activeChange']==_0x464ca0&&_0x280f8e['addClass']('ck-revision-history-root--active',_0x2d3d32);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x31b757=>'revision-comment:'+_0x31b757,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1b8dc4=>'revision-suggestion:'+_0x1b8dc4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2ef14d=>({'name':'suggestion:'+_0x2ef14d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5d7de0=>{const _0x404918=_0x5d7de0['markerName']['split'](':')[0x1];return'insertion'!=_0x404918&&'deletion'!=_0x404918?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x404918]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3f6b87,_0x2501dd,_0x11dce4)=>{const _0xb39abb=_0x11dce4['mapper']['markerNameToElements'](_0x2501dd['markerName']);if(_0xb39abb){for(const _0xeb8215 of _0xb39abb)_0xeb8215['is']('uiElement')&&(_0x11dce4['mapper']['unbindElementFromMarkerName'](_0xeb8215,_0x2501dd['markerName']),_0x11dce4['writer']['remove'](_0xeb8215));}},{'priority':'high'});}['_getChangeFromId'](_0xb68a9){return this['_changeIdToChange']['get'](_0xb68a9);}['_getViewForChange'](_0x193ac9){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x193ac9),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x304bf3,_0x548115,_0x320182,_0x21412f)=>{_0x21412f&&this['_balloon']['remove'](_0x21412f),_0x320182&&(this['_balloon']['add']({'view':_0x320182,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c0f7c=this['editor']['editing'],_0x13bdde=this['_getChangeFromId'](_0x320182['changeId']);let _0x5951e2;if(_0x13bdde['data']['isOnRoot']){const _0x7397c8=_0x2c0f7c['view']['getDomRoot'](_0x13bdde['rootName']);_0x5951e2=Array['from'](_0x7397c8['getClientRects']());}else{const _0x433ef8=this['editor']['model']['markers']['get']('revision:'+_0x320182['changeId']);_0x5951e2=Array['from'](_0x2c0f7c['mapper']['markerNameToElements'](_0x433ef8['name']))['map'](_0x3a4537=>_0x2c0f7c['view']['domConverter']['mapViewToDom'](_0x3a4537))['map'](_0x9e5f23=>Array['from'](_0x9e5f23['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5951e2[0x0];return _0x5951e2['find'](_0x32c404=>_0x32c404['top']-0x3<=this['_activeViewTarget']['y']&&_0x32c404['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x32c404['left']-0x3<=this['_activeViewTarget']['x']&&_0x32c404['right']+0x3>=this['_activeViewTarget']['x'])||_0x5951e2[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1b6f07,_0x1917b0,_0x5bac8f,_0xcf22be)=>{this['activeView']=_0x5bac8f?this['_getViewForChange'](_0x5bac8f):null,this['editor']['model']['change'](()=>{const _0x194397=this['editor']['editing'];_0xcf22be&&(_0xcf22be['data']['isOnRoot']?_0x194397['view']['change'](_0x37e240=>{_0x37e240['removeClass']('ck-revision-history-root--active',_0x194397['view']['document']['getRoot'](_0xcf22be['rootName']));}):_0x194397['reconvertMarker']('revision:'+_0xcf22be['id'])),_0x5bac8f&&(_0x5bac8f['data']['isOnRoot']?_0x194397['view']['change'](_0x12172f=>{_0x12172f['addClass']('ck-revision-history-root--active',_0x194397['view']['document']['getRoot'](_0x5bac8f['rootName']));}):_0x194397['reconvertMarker']('revision:'+_0x5bac8f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x236e76,_0x36b859)=>{if(this['activeChange'])return;const _0x4caba3=this['_findChangeIdFromDomTarget'](_0x36b859['target']),_0x4c0a59=this['_changeIdToChange']['get'](_0x4caba3);_0x4c0a59?(this['_activeViewTarget']={'x':_0x36b859['domEvent']['x'],'y':_0x36b859['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4c0a59)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x44fdff,_0x7d517f)=>{const _0xa6be29=this['_findChangeIdFromDomTarget'](_0x7d517f['target']),_0x111e9d=this['_changeIdToChange']['get'](_0xa6be29);_0x111e9d?(this['_activeViewTarget']={'x':_0x7d517f['domEvent']['x'],'y':_0x7d517f['domEvent']['y']},_0x111e9d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x111e9d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1ffc30){do{const _0x39510e=_0x1ffc30['getAttribute']('data-change-id');if(_0x39510e)return _0x39510e;_0x1ffc30=_0x1ffc30['parent'];}while(_0x1ffc30);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4b52ef=>{for(const _0x1a523d of this['editor']['model']['markers'])_0x4b52ef['removeMarker'](_0x1a523d);});}}function tt(_0x3ded7c,_0x4ed73b){return(_0x7842fb,_0x267740,_0x2f40a4)=>{if(!_0x2f40a4['consumable']['test'](_0x267740['markerRange'],_0x7842fb['name']))return;const _0x24ffc2=_0x267740['markerRange']['getWalker'](),_0x3862ed=_0x267740['markerRange']['start'],_0x4d66d4=_0x3ded7c['model']['schema'];let _0x1b178d=null,_0x2e59e1=null,_0x3598a3=!0x1,_0x2d4481=!0x1;for(const _0xaf03d8 of _0x24ffc2){const _0x22bb75=_0xaf03d8['item'];_0x3598a3=_0x3598a3||_0x4d66d4['isContent'](_0x22bb75);const _0x3cef76=_0x2f40a4['mapper']['toViewElement'](_0x22bb75);if(_0x3cef76&&_0x3cef76['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xaf03d8['type']&&(_0x4d66d4['isBlock'](_0x22bb75)&&!_0x4d66d4['isLimit'](_0x22bb75)&&(_0x22bb75['nextSibling']||_0x3862ed['isAtEnd']?_0x1b178d&&_0x1b178d['parent']==_0x22bb75||(_0x1b178d=_0x22bb75,_0x9fa8e(_0xaf03d8['previousPosition']),_0x2d4481=!0x0):_0x2e59e1=_0x2e59e1||_0xaf03d8['previousPosition']));}function _0x9fa8e(_0x562963){const _0x52e66a=_0x2f40a4['mapper']['toViewPosition'](_0x562963),_0x3c27ad=_0x2f40a4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4ed73b});_0x2f40a4['writer']['insert'](_0x52e66a,_0x3c27ad),_0x2f40a4['mapper']['bindElementToMarker'](_0x3c27ad,_0x267740['markerName']);}_0x3598a3||_0x2d4481||!_0x2e59e1||_0x9fa8e(_0x2e59e1);};}class _t extends _0x42c4ef{constructor(_0x5ea69c){super(_0x5ea69c);const _0x4b41fa=_0x5ea69c['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4b41fa,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b41fa,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x567936=this['editor'],_0x3f80a7=_0x567936['plugins']['get'](d),_0x325499=_0x3f80a7['isReady']?_0x3f80a7['diff']['newRevisionId']:null;_0x567936['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x325499);}['refresh'](){const {isReady:_0x1a142d,isEnabled:_0x4f26e7,repository:_0xf8f44,diff:_0x3943f5}=this['editor']['plugins']['get'](d),_0x3e977f=_0x3943f5&&_0xf8f44['getLaterVisibleRevision'](_0x3943f5['newRevisionId']);this['isEnabled']=_0x1a142d&&_0x4f26e7&&Boolean(_0x3e977f);}}class yt extends _0x42c4ef{['_step'];constructor(_0x58fcb3,{direction:_0x542e4b}){super(_0x58fcb3);const _0x136533=_0x58fcb3['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x542e4b?0x1:-0x1,this['listenTo'](_0x136533,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x136533,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x136533,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2139d5=this['editor'],_0x112bbf=_0x2139d5['plugins']['get'](d),{isNavigationMode:_0x4fbbe2,currentChangeNumber:_0x4f4767}=_0x112bbf;let _0x57c800;if(_0x112bbf['activeChange']=_0x4fbbe2?_0x112bbf['diff']['changes']['get'](_0x4f4767+this['_step']):_0x112bbf['diff']['changes']['first'],_0x112bbf['activeChange']['data']['isOnRoot'])_0x57c800=_0x2139d5['editing']['view']['getDomRoot'](_0x112bbf['activeChange']['rootName']);else{const _0x52d276=_0x2139d5['model']['markers']['get']('revision:'+_0x112bbf['activeChange']['id']);_0x57c800=_0x50cf16(_0x2139d5['editing'],_0x52d276);}_0x4741af({'target':_0x57c800,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x336fd1,currentChangeNumber:_0x3f8667,numberOfChanges:_0x2c0674,isReady:_0x5decca,isEnabled:_0x5ecc26}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5ecc26&&_0x5decca&&_0x2c0674)&&(!_0x336fd1||(0x1===this['_step']?_0x3f8667<_0x2c0674-0x1:_0x3f8667>0x0));}}class di extends ts{constructor(_0x55f018){super(_0x55f018);const _0x1d26c1=this['bindTemplate'],_0x20a5c9=new te(_0x55f018),_0x2721ea=new te(_0x55f018);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',(_0x2fd630,_0x543ce4)=>_0x2fd630&&_0x543ce4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x135d4e,_0x3a5d7f,_0x8c74aa,_0x366abc)=>{if(!_0x135d4e)return R(_0x55f018,'Loading...');if(!_0x8c74aa)return R(_0x55f018,'No\x20changes');const _0x36a696=R(_0x55f018,'NUMBER_OF_CHANGES',_0x8c74aa);return _0x366abc?R(_0x55f018,'X_OF_Y_CHANGES',[_0x3a5d7f+0x1,_0x8c74aa]):_0x36a696;}),_0x20a5c9['set']({'label':R(_0x55f018,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2721ea['set']({'label':R(_0x55f018,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x20a5c9['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2721ea['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x20a5c9['on']('execute',()=>this['fire']('execute','backward')),_0x2721ea['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',_0x1d26c1['if']('_isStatusLabelVisible','ck-hidden',_0x59138d=>!_0x59138d)]},'children':[{'text':_0x1d26c1['to']('isNavigationMode',_0x2566ca=>_0x2566ca?R(_0x55f018,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x55f018,'Total')+':\x20')}]},{'text':_0x1d26c1['to']('_statusText')}]},new _0x32311f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x20a5c9,_0x2721ea]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x41d97b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1a9153=this['editor']['editing']['view'];_0x1a9153['change'](_0x206475=>{for(const _0xeecc6f of _0x1a9153['document']['roots'])_0x206475['addClass'](le,_0xeecc6f);});}['hide'](){const _0x2c312e=this['editor']['editing']['view'];_0x2c312e['change'](_0x3567cd=>{for(const _0x330bd0 of _0x2c312e['document']['roots'])_0x3567cd['removeClass'](le,_0x330bd0);});}}class m extends _0x41d97b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x29cdf3=this['editor'],_0x2881b8=_0x29cdf3['plugins']['get'](d),_0x25bfbb=_0x29cdf3['plugins']['get'](ge);_0x29cdf3['ui']['componentFactory']['add']('exitToEditing',_0x227a7e=>{const _0x44d6e5=new te(_0x227a7e);return _0x44d6e5['set']({'label':R(_0x227a7e,'Back\x20to\x20editing'),'icon':_0x536204['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x44d6e5,'execute',()=>{_0x29cdf3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x44d6e5;}),_0x29cdf3['ui']['componentFactory']['add']('restoreRevision',_0x4ec005=>{const _0x5c656b=new te(_0x4ec005);return _0x5c656b['set']({'label':R(_0x4ec005,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5c656b['bind']('isEnabled')['to'](_0x29cdf3['commands']['get']('restoreRevision')),this['listenTo'](_0x5c656b,'execute',()=>_0x29cdf3['execute']('restoreRevision')),_0x5c656b;}),_0x29cdf3['ui']['componentFactory']['add']('changesNavigation',_0x3267c1=>{const _0x358249=new di(_0x3267c1),_0x502fcd=_0x29cdf3['commands']['get']('showPreviousChange'),_0x1aeb3a=_0x29cdf3['commands']['get']('showNextChange');return _0x358249['bind']('isBackwardNavigationEnabled')['to'](_0x502fcd,'isEnabled'),_0x358249['bind']('isForwardNavigationEnabled')['to'](_0x1aeb3a,'isEnabled'),_0x358249['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2881b8),this['listenTo'](_0x358249,'execute',(_0x2e4ed8,_0xe0f717)=>{_0x29cdf3['execute']('forward'===_0xe0f717?'showNextChange':'showPreviousChange');}),_0x358249;}),_0x25bfbb['show'](),_0x2881b8['on']('change:isReady',(_0x41f1a9,_0x4dc9b4,_0x4fe369)=>{_0x4fe369?_0x25bfbb['hide']():_0x25bfbb['show']();});}}class pt extends _0x2b20cf{['_resizeObserver']=null;constructor(_0x529383,_0x22e0dc){super(_0x529383,_0x22e0dc);const _0x4a1458=this['bindTemplate'];this['set']({'label':R(_0x529383,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x529383,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4a1458['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 _0xbfa1d5=this['fieldView']['element'];this['_tooltipString']=_0xbfa1d5['scrollWidth']>_0xbfa1d5['clientWidth']&&_0xbfa1d5['value']||'';}}class oi extends ts{constructor(_0xf6cc2,_0x46bdbb,_0x3eccc6){super(_0xf6cc2);const _0x2dd020=new _0x3bdf85();_0x2dd020['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x3dc40b=['ck','ck-revision-history-sidebar__revision-author'];_0x3eccc6&&_0x3dc40b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x22334=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0xf6cc2,_0x3eccc6?'Revision\x20creator':'Revision\x20author')},'children':[_0x2dd020,_0x46bdbb['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3dc40b},'children':_0x22334});}}function ai(_0x202f73,_0x168163){const _0x1a5cb8=_0x202f73['bindTemplate'],_0x3a7166=_0x202f73['locale'],_0x1aa88c=_0xa55c8b(_0x3a7166);_0x1aa88c['panelPosition']='sw';const _0x1e7e2d=function(_0x486b95,_0xc8acba){const _0x1da887=function(_0x218ad0,_0x470860){const _0x51ac40=_0x218ad0['locale'],_0x3b14b1={'Compare\x20against\x20selected':R(_0x51ac40,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x51ac40,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x51ac40,'Restore\x20this\x20revision')};return _0x470860['map'](_0x10d233=>{const _0x58f434=_0x3b14b1[_0x10d233['name']];return _0x58f434&&_0x58f434!==_0x10d233['name']&&(_0x10d233['name']=_0x58f434),_0x10d233;});}(_0x486b95,_0xc8acba),_0x506372=new _0x3fb858();for(const _0x164b42 of _0x1da887){const _0x2512ca={'type':'button','model':new _0x22060f({'label':_0x164b42['name'],'class':_0x164b42['class'],'withText':!0x0,'role':'menuitem','_action':_0x164b42['action']})};_0x2512ca['model']['bind']('isEnabled')['to'](_0x486b95,'isActionsDropdownOpen',_0x54ec6e=>'function'!=typeof _0x164b42['isEnabled']||(!_0x54ec6e||_0x164b42['isEnabled'](_0x486b95))),_0x506372['add'](_0x2512ca);}return _0x506372;}(_0x202f73,_0x168163);return _0x202f73['bind']('isActionsDropdownOpen')['to'](_0x1aa88c,'isOpen'),_0x1aa88c['buttonView']['set']({'label':R(_0x3a7166,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x536204['threeVerticalDots']}),_0x1aa88c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1a5cb8['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1a5cb8['to'](_0x3816fd=>_0x3816fd['stopPropagation']())}}),_0x1aa88c['on']('execute',_0x571770=>{_0x202f73['isReady']&&'function'==typeof _0x571770['source']['_action']&&_0x571770['source']['_action'](_0x202f73);}),to(_0x1aa88c,_0x1e7e2d,{'role':'menu'}),_0x1aa88c['listenTo'](_0x202f73,'change:isActionsDropdownOpen',(_0x79b30,_0x3c7496,_0x438e3b)=>{if(_0x438e3b)for(const _0xaf7812 of _0x1aa88c['listView']['items']){const _0xd64b4e=_0xaf7812['children']['first'],_0x9c8d8b=_0x168163['find'](_0x186a15=>_0x186a15['action']===_0xd64b4e['_action'])['isVisible'];_0xaf7812['isVisible']=void 0x0===_0x9c8d8b||_0x9c8d8b(_0x202f73);}}),_0x1aa88c;}class si extends/* #__PURE__ -- @preserve */
26
+ _0x1f7203(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x42e32c,_0xb46b0b,_0x4b49d2,_0x1fb76e){super(_0x42e32c);const _0x1e244d=this['bindTemplate'],_0x143a2e=function(_0x576b6f,_0x3cf004){const _0x55b033=Array['from'](_0x3cf004['authors'])['filter'](_0x1479ab=>_0x1479ab!=_0x3cf004['creator']);return _0x3cf004['creator']&&_0x55b033['unshift'](_0x3cf004['creator']),_0x55b033['map'](_0x4d27e6=>new oi(_0x576b6f,_0x4d27e6,_0x4d27e6==_0x3cf004['creator']));}(_0x42e32c,_0xb46b0b);this['id']=_0xb46b0b['id'],this['_revision']=_0xb46b0b,this['_requireRevisionName']=_0x1fb76e,this['bind']('name','createdAt')['to'](_0xb46b0b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x205987=>{return _0x268c5b=_0x42e32c['uiLanguage'],(_0x53a3e0=_0x205987)['toLocaleDateString'](_0x268c5b,{'month':'long','day':'numeric'})+',\x20'+_0x53a3e0['toLocaleTimeString'](_0x268c5b,{'hour':'numeric','minute':'numeric'});var _0x268c5b,_0x53a3e0;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x42e32c,_0x2765cf),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2a1198=>_0x2a1198||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3b45ed,_0x3d640c)=>_0x3b45ed&&_0x3d640c),this['revisionActionsView']=_0x4b49d2&&_0x4b49d2['length']?ai(this,_0x4b49d2):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1e244d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1e244d['if']('isEnabled','ck-disabled',_0x35e2ae=>!_0x35e2ae),_0x1e244d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1e244d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1e244d['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':_0x1e244d['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':_0x143a2e}]},this['revisionActionsView']],'on':{'click':_0x1e244d['to'](_0x3e69dd=>{_0x3e69dd['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x447185=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x447185,'change',()=>{this['_requireRevisionName']&&!_0x447185['value']||this['fire']('setName',{'id':this['id'],'name':_0x447185['value']}),_0x447185['value']||(_0x447185['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x122177,_0x4952bc){const _0xd5068c=_0x25d485['fromJSDate'](_0x122177)['setLocale'](_0x4952bc),_0x458944=_0x25d485['local'](),_0x512d8d=_0x458944['minus']({'days':0x1})['startOf']('day');let _0x468198,_0x2eae33;return _0xd5068c['hasSame'](_0x458944,'day')?(_0x468198=_0xd5068c['startOf']('day')['toJSDate'](),_0x2eae33=_0xd5068c['toRelativeCalendar']()):_0xd5068c['hasSame'](_0x512d8d,'day')?(_0x468198=_0x512d8d['toJSDate'](),_0x2eae33=_0xd5068c['toRelativeCalendar']()):_0xd5068c['hasSame'](_0x458944,'week')?(_0x468198=_0xd5068c['startOf']('week')['toJSDate'](),_0x2eae33=_0xd5068c['weekdayLong']||''):_0xd5068c['hasSame'](_0x458944,'year')?(_0x468198=_0xd5068c['startOf']('month')['toJSDate'](),_0x2eae33=_0xd5068c['monthLong']||''):(_0x468198=_0xd5068c['startOf']('year')['toJSDate'](),_0x2eae33=String(_0xd5068c['year'])),{'startDate':_0x468198,'localizedPeriodName':_0x2eae33};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x45cfdb,_0x5e4de2,_0x19bc87,_0x261545){super(_0x45cfdb);const _0x5f0897=ti(_0x5e4de2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5e4de2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x19bc87,this['_requireRevisionName']=_0x261545,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':_0x5f0897}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x56f78a){const _0x321fca=new si(this['locale'],_0x56f78a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x321fca);}['removeRevision'](_0x1bc3b1){const _0x33fe3d=this['revisionViews']['find'](_0x4be3e6=>_0x4be3e6['id']===_0x1bc3b1['id']);this['revisionViews']['remove'](_0x33fe3d);}}class cs extends ts{constructor(_0x397450){super(_0x397450);const _0x342bc3=new _0x3bdf85();_0x342bc3['content']=_0x536204['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x342bc3,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x397450,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x269405,_0xcbbfde,_0xf0712,_0x70d514){super(_0x269405);const _0x152549=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xcbbfde,this['_revisionActions']=_0xf0712,this['_requireRevisionName']=_0x70d514,this['on']('select',(_0x4c9693,_0x2374f7)=>{this['fire']('revisionSelected',_0x2374f7);}),this['on']('setName',(_0x18e987,_0x3fa1b6)=>{this['fire']('revisionSetName',_0x3fa1b6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x269405),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x152549['if']('isEnabled','ck-disabled',_0x5f0ccd=>!_0x5f0ccd)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x149912 of this['_revisions'])this['_addRevision'](_0x149912);this['_revisions']['on']('add',(_0x4c3bc8,_0x1cf0ae)=>{this['_addRevision'](_0x1cf0ae);}),this['_revisions']['on']('remove',(_0x39c931,_0x549181)=>{this['_removeRevision'](_0x549181);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x324df4=>_0x324df4['revisionViews']['map'](_0x4c5970=>_0x4c5970))['flat']();}['selectRevision'](_0x24eefc){for(const _0xa64c6c of this['revisionViews'])_0x24eefc&&_0x24eefc['id']===_0xa64c6c['id']?_0xa64c6c['select']():_0xa64c6c['deselect']();}['highlightRevisions'](_0x4a7fdc){for(const _0x2ce83e of this['revisionViews'])_0x4a7fdc['some'](({id:_0x1358fd})=>_0x1358fd===_0x2ce83e['id'])?_0x2ce83e['highlight']():_0x2ce83e['unhighlight']();}['_addRevision'](_0x5ed41c){const _0x4a07ff=ti(_0x5ed41c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x229e4c=this['timePeriodViews']['get'](0x0);_0x229e4c&&_0x229e4c['startDate']['getTime']()===_0x4a07ff['getTime']()||(_0x229e4c=new ei(this['locale'],_0x4a07ff,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x229e4c)),_0x229e4c['addRevision'](_0x5ed41c);}['_removeRevision'](_0x3c400a){const _0x1db99f=ti(_0x3c400a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1db99f)['removeRevision'](_0x3c400a);}['_getTimePeriodViewByStartDate'](_0x5f5c74){return this['timePeriodViews']['find'](_0x15e21d=>_0x15e21d['startDate']['getTime']()===_0x5f5c74['getTime']());}}class g extends _0x41d97b{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x3090c6){super(_0x3090c6),this['_revisionViewer']=_0x3090c6['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1e7bf2=this['_revisionsRepository']['_revisions'],_0x527ce9=this['_createRevisionActions'](),_0x77d94b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x1e7bf2,_0x527ce9,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',(_0x40a448,_0x51c0f3)=>{_0x51c0f3['revisionViews']['on']('add',(_0x35f9e7,_0x7961df)=>{_0x7961df['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)),_0x77d94b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x42e994=this['_revisionsRepository']['getRevision'](0x0);if(_0x42e994){const _0x370da2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x42e994['id']);this['_revisionViewer']['compare'](_0x42e994,_0x370da2);}}['_handleRevisionSelected'](_0x118e3f,_0x2fc8a3){const _0x3798e5=this['_revisionsRepository']['getRevision'](_0x2fc8a3['id']),_0xb53d44=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3798e5['id']);this['_revisionViewer']['compare'](_0x3798e5,_0xb53d44);}['_handleRevisionSetName'](_0x499674,_0xada889){this['_revisionsRepository']['getRevision'](_0xada889['id'])['setName'](_0xada889['name']);}['_handleDiffChange'](_0x241417,_0x59ca25,_0x5113de){const _0x31025d=this['_revisionsRepository']['getRevisionsInDiff'](_0x5113de);_0x31025d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x31025d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x31025d[0x0]));}['_createRevisionActions'](){const _0xf9c1cd=this['editor'],_0x4ac7bc=g['availableRevisionActions'],_0x32e15b=_0xf9c1cd['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x32e15b['length'])return _0x32e15b['map'](_0x5aff07=>{const _0x5dae43='string'==typeof _0x5aff07?Object['assign']({},_0x4ac7bc[_0x5aff07]):_0x5aff07;return _0x5dae43['action']=_0x5dae43['action']['bind'](this,_0xf9c1cd),_0x5dae43['isVisible']&&(_0x5dae43['isVisible']=_0x5dae43['isVisible']['bind'](this,_0xf9c1cd)),_0x5dae43;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4a4a33},_0x214bd5)=>{const _0x49b297=_0x4a4a33['get'](d),_0x5a41af=_0x49b297['repository'];let _0x1e1e67=_0x49b297['diff']['newRevisionId'],_0x523e7c=_0x214bd5['id'];_0x5a41af['getIndex'](_0x1e1e67)>_0x5a41af['getIndex'](_0x523e7c)&&([_0x1e1e67,_0x523e7c]=[_0x523e7c,_0x1e1e67]),_0x49b297['compare'](_0x1e1e67,_0x523e7c);},'isVisible':({plugins:_0x1408a9},_0x43170f)=>{const _0x349155=_0x1408a9['get'](d);return!(_0x349155['repository']['getRevisionsInDiff'](_0x349155['diff'])['length']>0x2)&&!_0x43170f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x23ba78,{id:_0x2c7929})=>{_0x23ba78['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c7929);},'isVisible':({plugins:_0x3c102b},_0x28f6a4)=>!!_0x3c102b['get'](d)['repository']['getLaterVisibleRevision'](_0x28f6a4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2952b0},{id:_0x4fdc37,revisionNameView:_0x496ca6})=>{const _0x23a6ac=_0x2952b0['get'](d),_0x2137a3=_0x23a6ac['repository']['getEarlierVisibleRevision'](_0x4fdc37);_0x23a6ac['compare'](_0x4fdc37,_0x2137a3),_0x496ca6['focus'](),_0x496ca6['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x15e66e,_0x4e87a3){super(_0x15e66e),this['_view']=_0x4e87a3,this['_toolbarConfig']=ht(_0x15e66e['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x5f3824){const _0xa946dc=this['editor'],_0x5b7ac2=this['view'],_0x287d1e=_0xa946dc['editing']['view'],_0x1d1686=_0x5b7ac2['editable'],_0x1aef1e=_0x287d1e['document']['getRoot']();_0x1d1686['name']=_0x1aef1e['rootName'],_0x5b7ac2['render']();const _0x1970e4=_0x1d1686['element'];this['setEditableElement'](_0x1d1686['name'],_0x1970e4),_0x5b7ac2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x287d1e['attachDomRoot'](_0x1970e4),this['_elementReplacer']['replace'](_0x5f3824,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x54139a=this['view'],_0x91a9ad=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x91a9ad['detachDomRoot'](_0x54139a['editable']['name']),_0x54139a['destroy']();}['_initToolbar'](){const _0x50f533=this['view'];_0x50f533['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x50f533['stickyPanel']['limiterElement']=_0x50f533['element'],_0x50f533['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x493149})=>_0x493149),_0x50f533['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x50f533['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3cac9d,_0xe0dad4,_0x3be185={}){super(_0x3cac9d),this['stickyPanel']=new lt(_0x3cac9d),this['toolbar']=new nt(_0x3cac9d,{'shouldGroupWhenFull':_0x3be185['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x3cac9d,_0xe0dad4);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x555cf9,_0x2f5436){super(_0x2f5436),this['sourceElement']=_0x555cf9,this['model']['document']['createRoot']();const _0x173e27=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x173e27);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5ab1bc,_0x2b814c){const _0x3ab7cb=new this(_0x5ab1bc,_0x2b814c);return await _0x3ab7cb['initPlugins'](),await _0x3ab7cb['ui']['init'](_0x5ab1bc),await _0x3ab7cb['data']['init'](_0x3ab7cb['config']['get']('initialData')||''),_0x3ab7cb['fire']('ready'),_0x3ab7cb;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5a5f64{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x312435){function _0x5499d1(_0x2d6bfa){return _0x2d6bfa['map'](_0x5550b6=>String['fromCharCode'](_0x5550b6))['join']('');}super(_0x312435),this['result']='end',_0x312435[_0x5499d1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5499d1([0x76,0x69,0x65,0x77])][_0x5499d1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5499d1([0x61,0x75,0x74,0x6f]),_0x312435[_0x5499d1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5499d1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5499d1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5499d1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5499d1([0x6f,0x6b])});}}class H extends _0x5a5f64{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2763e2){if(super(_0x2763e2),!this['editor']['config']['get']('revisionHistory'))throw new _0x2e7d78('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x58a9ea=>this['_showRevisionViewer']({..._0x58a9ea,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x37fa0e=>this['_closeRevisionViewer'](_0x37fa0e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2b2ea6=>this['_restoreRevision'](_0x2b2ea6)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4dba88){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4dba88;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x53304b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x53304b);}['getRevision'](_0x3b1998){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3b1998);}['getRevisions'](_0x4b8d25){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4b8d25||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4149c6=this['editor'],_0x4499e4=_0x23d80d(_0x4149c6,p),_0xd71079=_0x4149c6['plugins']['get']('RevisionTracker'),_0x31bed6=_0x4149c6['plugins']['get']('Users')['users'];return _0x4499e4['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4499e4['lazyRoots'],(_0x4499e4['plugins']['push'](k,d,m,class extends _0x5a5f64{static get['requires'](){return[d,'Users'];}['init'](){const _0x121881=this['editor']['plugins']['get']('Users');for(const _0x23b40d of _0x31bed6)_0x23b40d['isAnonymous']||_0x121881['getUser'](_0x23b40d['id'])||_0x121881['addUser'](_0x23b40d);const _0x33551e=_0xd71079['repository']['getRevisions']();let _0x3fba6f=null;const _0x3afa3d=this['editor']['plugins']['get']('RevisionViewer');_0x3afa3d['adapter']=_0xd71079['adapter'],_0x3afa3d['bind']('isEnabled')['to'](_0xd71079),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4149c6,'isReadOnly',_0x4d2546=>!_0x4d2546);for(const _0x48a170 of _0x33551e){const _0x21856b=null===_0x48a170['creator'];if(_0x21856b&&_0x48a170['toVersion']===_0x48a170['fromVersion'])continue;const _0x7496d7=_0x48a170['toJSON']();_0x3afa3d['addRevisionData'](_0x7496d7,(_0x2f1992,_0x1e5d95,_0x37d975)=>{if(_0x21856b){if(_0x3fba6f)_0x3fba6f['_update'](_0x2f1992,_0x1e5d95);else{if(!_0x1e5d95){const _0x58ef5d=_0x37d975['toJSON']();_0x58ef5d['id']=_0x45c6ed(),_0xd71079['saveRevision'](_0x58ef5d,_0x37d975['toVersion'])['then'](_0x3ffab7=>{_0x3fba6f=_0x3ffab7;});}}}else _0x48a170['_update'](_0x2f1992,_0x1e5d95);});}}},g),_0x4499e4);}['_enhanceShowRevisionViewerCallback'](){const _0x3ea9a6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x337e61=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x206efa=this['editor']['plugins']['get']('Autosave');await _0x206efa['save']();}else await _0x337e61['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x7d7499=this['editor']['plugins']['get']('Dialog');_0x7d7499['isOpen']&&_0x7d7499['hide']();}const _0xa2a55b=this['_getRevisionViewerEditorConfig']();return _0x3ea9a6(_0xa2a55b)['then'](_0x446907=>{return(this['_viewerEditor']=_0x446907,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x446907;})['catch'](_0x58c8a3=>(console['error'](_0x58c8a3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x56e1b5=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'](),_0x56e1b5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2dfd92=this['editor']['plugins']['get']('Annotations');_0x2dfd92['refreshVisibility'](),_0x2dfd92['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2ac409){const _0x3fa010=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x444863=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x428674=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x428674,_0x2ac409)['then'](_0x188a14=>(_0x444863['style']['display']='block',_0x3fa010['style']['display']='none',_0x188a14));}['_closeRevisionViewer'](_0x3c0ef4){const _0x3381fa=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3381fa['style']['display']='',_0x3c0ef4['destroy']();}async['_restoreRevision'](_0x539664){const _0x329e77=this['editor'],_0x47730a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2e9a82=_0x329e77['plugins']['get']('RevisionTracker'),_0x535583=_0x47730a['repository']['getRevision'](_0x539664);let _0x17e548,_0xbb4426,_0xaf4fc7;try{_0x17e548=await _0x47730a['getRevisionData'](_0x535583),_0xbb4426=await _0x47730a['getRevisionRootsAttributes'](_0x535583);}catch(_0x5b5794){return void console['error'](_0x5b5794);}_0x329e77['model']['change'](_0x3fd81a=>{for(const _0x4fbc24 of Array['from'](_0x329e77['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3fd81a['removeMarker'](_0x4fbc24);}),_0x47730a['isReady']=!0x1,_0x329e77['model']['enqueueChange'](_0x2be2d9=>{_0x2be2d9['setSelection'](null),_0x2be2d9['removeSelectionAttribute'](_0x329e77['model']['document']['selection']['getAttributeKeys']());const _0x4ccd0a=Object['keys'](_0x17e548);for(const _0x259eb3 of _0x329e77['model']['document']['roots'])'$graveyard'!=_0x259eb3['rootName']&&_0x259eb3['isAttached']()&&!_0x4ccd0a['includes'](_0x259eb3['rootName'])&&_0x2be2d9['detachRoot'](_0x259eb3);for(const _0x1bd61b of _0x4ccd0a){let _0x97d0a4=_0x329e77['model']['document']['getRoot'](_0x1bd61b);_0x97d0a4&&_0x97d0a4['isAttached']()||(_0x97d0a4=_0x2be2d9['addRoot'](_0x1bd61b));const _0x41c7ca=_0xbb4426[_0x1bd61b],_0x209448=Object['keys'](_0x41c7ca),_0x37b7e5=_0x17e548[_0x1bd61b];for(const _0x113d2f of _0x97d0a4['getAttributeKeys']())_0x209448['includes'](_0x113d2f)||_0x2be2d9['removeAttribute'](_0x113d2f,_0x97d0a4);for(const _0x382d76 of _0x209448)_0x2be2d9['setAttribute'](_0x382d76,_0xbb4426[_0x1bd61b][_0x382d76],_0x97d0a4);_0x2be2d9['remove'](_0x2be2d9['createRangeIn'](_0x97d0a4)),_0x2be2d9['insert'](_0x329e77['data']['parse'](_0x37b7e5,_0x97d0a4),_0x97d0a4,0x0);}});const _0x566f62=R(_0x329e77['locale'],'Restored');if(_0x535583['name'])_0xaf4fc7=-0x1==_0x535583['name']['indexOf'](_0x566f62)?_0x566f62+':\x20'+_0x535583['name']:_0x535583['name'];else _0xaf4fc7=_0x566f62+':\x20'+(_0x535583['createdAt']['toLocaleDateString'](_0x329e77['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x535583['createdAt']['toLocaleTimeString'](_0x329e77['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2e9a82['saveRevision']({'name':_0xaf4fc7}),_0x47730a['isReady']=!0x0,_0x329e77['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x3db476){super(_0x3db476),this['_revisionViewer']=_0x3db476['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x370c92=this['_revisionsRepository']['_revisions'],_0x257f22=this['_createRevisionActions'](),_0x591427=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x370c92,_0x257f22,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',(_0x28688c,_0x4eb994)=>{_0x4eb994['revisionViews']['on']('add',(_0x335620,_0x315c5f)=>{_0x315c5f['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)),_0x591427['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x348b12=this['_revisionsRepository']['getRevision'](0x0);if(_0x348b12){const _0x581b61=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x348b12['id']);this['_revisionViewer']['compare'](_0x348b12,_0x581b61);}}['_handleRevisionSelected'](_0x1775e8,_0x186730){const _0x424a89=this['_revisionsRepository']['getRevision'](_0x186730['id']),_0x32fc5b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x424a89['id']);this['_revisionViewer']['compare'](_0x424a89,_0x32fc5b);}['_handleRevisionSetName'](_0x431983,_0x153a47){this['_revisionsRepository']['getRevision'](_0x153a47['id'])['setName'](_0x153a47['name']);}['_handleDiffChange'](_0x5c8c9b,_0x8aa4fc,_0x4a2a48){const _0x318e64=this['_revisionsRepository']['getRevisionsInDiff'](_0x4a2a48);_0x318e64['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x318e64),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x318e64[0x0]));}['_createRevisionActions'](){const _0x40a6c4=this['editor'],_0x1abd4d=g['availableRevisionActions'],_0x2b9943=_0x40a6c4['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2b9943['length'])return _0x2b9943['map'](_0x99821d=>{const _0x246fbd='string'==typeof _0x99821d?Object['assign']({},_0x1abd4d[_0x99821d]):_0x99821d;return _0x246fbd['action']=_0x246fbd['action']['bind'](this,_0x40a6c4),_0x246fbd['isVisible']&&(_0x246fbd['isVisible']=_0x246fbd['isVisible']['bind'](this,_0x40a6c4)),_0x246fbd;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x17680e},_0x51a1e2)=>{const _0x2cb774=_0x17680e['get'](d),_0x4bed2f=_0x2cb774['repository'];let _0x1bdef9=_0x2cb774['diff']['newRevisionId'],_0x29f48d=_0x51a1e2['id'];_0x4bed2f['getIndex'](_0x1bdef9)>_0x4bed2f['getIndex'](_0x29f48d)&&([_0x1bdef9,_0x29f48d]=[_0x29f48d,_0x1bdef9]),_0x2cb774['compare'](_0x1bdef9,_0x29f48d);},'isVisible':({plugins:_0x322747},_0x2b6120)=>{const _0x3596a5=_0x322747['get'](d);return!(_0x3596a5['repository']['getRevisionsInDiff'](_0x3596a5['diff'])['length']>0x2)&&!_0x2b6120['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4fa9a6,{id:_0x15060c})=>{_0x4fa9a6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x15060c);},'isVisible':({plugins:_0x36a142},_0x416734)=>!!_0x36a142['get'](d)['repository']['getLaterVisibleRevision'](_0x416734['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x15cfd0},{id:_0x47a3c8,revisionNameView:_0x99e63b})=>{const _0x5bb22f=_0x15cfd0['get'](d),_0xd569a5=_0x5bb22f['repository']['getEarlierVisibleRevision'](_0x47a3c8);_0x5bb22f['compare'](_0x47a3c8,_0xd569a5),_0x99e63b['focus'](),_0x99e63b['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x251fc5,_0x143055){super(_0x251fc5),this['_view']=_0x143055,this['_toolbarConfig']=ht(_0x251fc5['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x39f28b){const _0x3162fa=this['editor'],_0x13cea1=this['view'],_0x3fe5c5=_0x3162fa['editing']['view'],_0xbe78bd=_0x13cea1['editable'],_0xffa9b3=_0x3fe5c5['document']['getRoot']();_0xbe78bd['name']=_0xffa9b3['rootName'],_0x13cea1['render']();const _0x2136df=_0xbe78bd['element'];this['setEditableElement'](_0xbe78bd['name'],_0x2136df),_0x13cea1['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3fe5c5['attachDomRoot'](_0x2136df),this['_elementReplacer']['replace'](_0x39f28b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5a57c2=this['view'],_0x4f1d1b=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4f1d1b['detachDomRoot'](_0x5a57c2['editable']['name']),_0x5a57c2['destroy']();}['_initToolbar'](){const _0x321bc0=this['view'];_0x321bc0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x321bc0['stickyPanel']['limiterElement']=_0x321bc0['element'],_0x321bc0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x36c98b})=>_0x36c98b),_0x321bc0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x321bc0['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2e763b,_0x36e848,_0x54a2df={}){super(_0x2e763b),this['stickyPanel']=new lt(_0x2e763b),this['toolbar']=new nt(_0x2e763b,{'shouldGroupWhenFull':_0x54a2df['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x2e763b,_0x36e848);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x15d99b,_0x10501a){super(_0x10501a),this['sourceElement']=_0x15d99b,this['model']['document']['createRoot']();const _0x2bd566=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x2bd566);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3e4e9f,_0x103b4d){const _0x5ca3a5=new this(_0x3e4e9f,_0x103b4d);return await _0x5ca3a5['initPlugins'](),await _0x5ca3a5['ui']['init'](_0x3e4e9f),await _0x5ca3a5['data']['init'](_0x5ca3a5['config']['get']('initialData')||''),_0x5ca3a5['fire']('ready'),_0x5ca3a5;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x41d97b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a6f3e){function _0x2978ae(_0x522a96){return _0x522a96['map'](_0x324417=>String['fromCharCode'](_0x324417))['join']('');}super(_0x3a6f3e),this['result']='end',_0x3a6f3e[_0x2978ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2978ae([0x76,0x69,0x65,0x77])][_0x2978ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2978ae([0x61,0x75,0x74,0x6f]),_0x3a6f3e[_0x2978ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2978ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2978ae([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2978ae([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2978ae([0x6f,0x6b])});}}class H extends _0x41d97b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x39d3fb){if(super(_0x39d3fb),!this['editor']['config']['get']('revisionHistory'))throw new _0x406c6c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x16be17=>this['_showRevisionViewer']({..._0x16be17,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5b08d4=>this['_closeRevisionViewer'](_0x5b08d4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x50cb2e=>this['_restoreRevision'](_0x50cb2e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x486bd0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x486bd0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x577931){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x577931);}['getRevision'](_0x4efb54){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4efb54);}['getRevisions'](_0x2f74b5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2f74b5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4e09d4=this['editor'],_0x150c18=_0x9356d4(_0x4e09d4,p),_0x12f842=_0x4e09d4['plugins']['get']('RevisionTracker'),_0x4d875d=_0x4e09d4['plugins']['get']('Users')['users'];return _0x150c18['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x150c18['lazyRoots'],(_0x150c18['plugins']['push'](k,d,m,class extends _0x41d97b{static get['requires'](){return[d,'Users'];}['init'](){const _0xab7004=this['editor']['plugins']['get']('Users');for(const _0x495083 of _0x4d875d)_0x495083['isAnonymous']||_0xab7004['getUser'](_0x495083['id'])||_0xab7004['addUser'](_0x495083);const _0x2135ce=_0x12f842['repository']['getRevisions']();let _0x2fcfb6=null;const _0x29c212=this['editor']['plugins']['get']('RevisionViewer');_0x29c212['adapter']=_0x12f842['adapter'],_0x29c212['bind']('isEnabled')['to'](_0x12f842),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4e09d4,'isReadOnly',_0x42728c=>!_0x42728c);for(const _0x195b3e of _0x2135ce){const _0x34b371=null===_0x195b3e['creator'];if(_0x34b371&&_0x195b3e['toVersion']===_0x195b3e['fromVersion'])continue;const _0x3951e4=_0x195b3e['toJSON']();_0x29c212['addRevisionData'](_0x3951e4,(_0xc03d12,_0x11a3c0,_0x51ef1f)=>{if(_0x34b371){if(_0x2fcfb6)_0x2fcfb6['_update'](_0xc03d12,_0x11a3c0);else{if(!_0x11a3c0){const _0x46ec21=_0x51ef1f['toJSON']();_0x46ec21['id']=_0x119d0b(),_0x12f842['saveRevision'](_0x46ec21,_0x51ef1f['toVersion'])['then'](_0x35fc06=>{_0x2fcfb6=_0x35fc06;});}}}else _0x195b3e['_update'](_0xc03d12,_0x11a3c0);});}}},g),_0x150c18);}['_enhanceShowRevisionViewerCallback'](){const _0x5ced2b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x539977=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x38246b=this['editor']['plugins']['get']('Autosave');await _0x38246b['save']();}else await _0x539977['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x324f79=this['editor']['plugins']['get']('Dialog');_0x324f79['isOpen']&&_0x324f79['hide']();}const _0x4c4317=this['_getRevisionViewerEditorConfig']();return _0x5ced2b(_0x4c4317)['then'](_0x5e8b16=>{return(this['_viewerEditor']=_0x5e8b16,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5e8b16;})['catch'](_0x512e69=>(console['error'](_0x512e69),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x31ffd2=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'](),_0x31ffd2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x222582=this['editor']['plugins']['get']('Annotations');_0x222582['refreshVisibility'](),_0x222582['refreshPositioning']();}})));}['_showRevisionViewer'](_0x22e3d7){const _0x5257cb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5e9e89=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3751ef=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3751ef,_0x22e3d7)['then'](_0x5c186d=>(_0x5e9e89['style']['display']='block',_0x5257cb['style']['display']='none',_0x5c186d));}['_closeRevisionViewer'](_0x395680){const _0x3ded0c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3ded0c['style']['display']='',_0x395680['destroy']();}async['_restoreRevision'](_0x426090){const _0x3fb0b6=this['editor'],_0x29995c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x468e98=_0x3fb0b6['plugins']['get']('RevisionTracker'),_0x541cab=_0x29995c['repository']['getRevision'](_0x426090);let _0x16dcef,_0x44d2ca,_0x136563;try{_0x16dcef=await _0x29995c['getRevisionData'](_0x541cab),_0x44d2ca=await _0x29995c['getRevisionRootsAttributes'](_0x541cab);}catch(_0x1e00e9){return void console['error'](_0x1e00e9);}_0x3fb0b6['model']['change'](_0x48046f=>{for(const _0x4d641 of Array['from'](_0x3fb0b6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x48046f['removeMarker'](_0x4d641);}),_0x29995c['isReady']=!0x1,_0x3fb0b6['model']['enqueueChange'](_0x412f9b=>{_0x412f9b['setSelection'](null),_0x412f9b['removeSelectionAttribute'](_0x3fb0b6['model']['document']['selection']['getAttributeKeys']());const _0x4371af=Object['keys'](_0x16dcef);for(const _0x27604c of _0x3fb0b6['model']['document']['roots'])'$graveyard'!=_0x27604c['rootName']&&_0x27604c['isAttached']()&&!_0x4371af['includes'](_0x27604c['rootName'])&&_0x412f9b['detachRoot'](_0x27604c);for(const _0x1a5597 of _0x4371af){let _0x5623d3=_0x3fb0b6['model']['document']['getRoot'](_0x1a5597);_0x5623d3&&_0x5623d3['isAttached']()||(_0x5623d3=_0x412f9b['addRoot'](_0x1a5597));const _0x45c915=_0x44d2ca[_0x1a5597],_0x390601=Object['keys'](_0x45c915),_0xad5c3f=_0x16dcef[_0x1a5597];for(const _0x9e1d92 of _0x5623d3['getAttributeKeys']())_0x390601['includes'](_0x9e1d92)||_0x412f9b['removeAttribute'](_0x9e1d92,_0x5623d3);for(const _0x1c4f28 of _0x390601)_0x412f9b['setAttribute'](_0x1c4f28,_0x44d2ca[_0x1a5597][_0x1c4f28],_0x5623d3);_0x412f9b['remove'](_0x412f9b['createRangeIn'](_0x5623d3)),_0x412f9b['insert'](_0x3fb0b6['data']['parse'](_0xad5c3f,_0x5623d3),_0x5623d3,0x0);}});const _0x2ccd95=R(_0x3fb0b6['locale'],'Restored');if(_0x541cab['name'])_0x136563=-0x1==_0x541cab['name']['indexOf'](_0x2ccd95)?_0x2ccd95+':\x20'+_0x541cab['name']:_0x541cab['name'];else _0x136563=_0x2ccd95+':\x20'+(_0x541cab['createdAt']['toLocaleDateString'](_0x3fb0b6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x541cab['createdAt']['toLocaleTimeString'](_0x3fb0b6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x468e98['saveRevision']({'name':_0x136563}),_0x29995c['isReady']=!0x0,_0x3fb0b6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};