@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20251013.0 → 0.0.0-nightly-20251014.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,11 +20,11 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0xd36abb,uid as _0x422234,Collection as _0xb670b4,logWarning as _0x4d0460,FocusTracker as _0x5e9135,KeystrokeHandler as _0x2dfea2,scrollViewportToShowTarget as _0x2ef4fe,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x2c2824}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4dcfba,set as _0xb5caca,unset as _0x490285,isEqual as _0x284f8e}from'es-toolkit/compat';import{Plugin as _0x2a9b7d,PendingActions as _0x153c11,Command as _0x30167c,ElementApiMixin as _0x25ed20,Editor as _0x3f7344}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x58b4bf,getMarkerDomElement as _0x17a5a7,ConfirmMixin as _0x2a2f44,sanitizeEditorConfig as _0x23fc3b}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4e0505,ViewAttributeElement as _0x2743c8,ViewEmptyElement as _0x23abf1,ViewRawElement as _0x4ccddb,ViewUIElement as _0x3ec531,ViewDocumentFragment as _0x50d104,ViewText as _0x5a4e35,ViewElement as _0x2c11d4,ModelElement as _0x514734,ModelRange as _0xd9fa25,ModelPosition as _0x5dfb54,ModelDocumentFragment as _0x4acc47,ModelText as _0x299020}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1c8430,IconChevronUp as _0x158305,IconChevronDown as _0x921695,IconUndo as _0x1bee30,IconUser as _0x81b85e,IconThreeVerticalDots as _0x187a75}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x3e4178,View as _0x2fbdbb,submitHandler as _0x509542,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x255985,ListView as _0x22e049,ListItemView as _0x57cc36,ButtonView as _0x4eab8d,MenuBarMenuView as _0x1f9121,MenuBarMenuListView as _0x27fd85,MenuBarMenuListItemView as _0x3b1214,MenuBarMenuListItemButtonView as _0x1c5f84,ContextualBalloon as _0x5348c1,ToolbarSeparatorView as _0x5b896a,IconView as _0x11835d,addListToDropdown as _0x3e03fc,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x365cb2,StickyPanelView as _0x4ad34d,ToolbarView as _0x532d93,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5c8801}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
- _0xd36abb(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x47d55c){super(),this['id']=_0x47d55c['id']||_0x422234(),this['creator']=_0x47d55c['creator']||null,this['authors']=_0x47d55c['authors']||[],this['diffData']=_0x47d55c['diffData']||null,this['toVersion']=_0x47d55c['toVersion']||0x0,this['fromVersion']=_0x47d55c['fromVersion']||0x0,this['set']('name',_0x47d55c['name']||''),this['set']('createdAt',_0x47d55c['createdAt']||new Date()),this['set']('attributes',_0x47d55c['attributes']||{});}['setName'](_0x1bd233){this['_update']({'name':_0x1bd233});}['setAttribute'](_0x315803,_0x24d50e){const _0x59209f=_0x4dcfba(this['attributes']);_0xb5caca(_0x59209f,_0x315803,_0x24d50e),this['_update']({'attributes':_0x59209f});}['removeAttribute'](_0x4ba287){const _0x23c359=_0x4dcfba(this['attributes']);_0x490285(_0x23c359,_0x4ba287),this['_update']({'attributes':_0x23c359});}['_update'](_0x58682c,_0x37d366=!0x1){let _0x48526=!0x1;const _0x9a0011={'id':this['id']},_0x5e979b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x136ba8 of _0x5e979b){const _0x45b53f=_0x58682c[_0x136ba8];void 0x0!==_0x45b53f&&_0x45b53f!==this[_0x136ba8]&&(this[_0x136ba8]=_0x45b53f,_0x9a0011[_0x136ba8]=_0x45b53f,_0x48526=!0x0);}_0x48526&&(_0x9a0011['authors']&&(_0x9a0011['authorsIds']=_0x9a0011['authors']['map'](_0xf8c8bd=>_0xf8c8bd['id']),delete _0x9a0011['authors']),this['fire']('_update',_0x9a0011,_0x37d366));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x395d54=>_0x395d54['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2a9b7d{['_revisions'];static get['requires'](){return[_0x58b4bf];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x49bbe4){super(_0x49bbe4),this['_revisions']=new _0xb670b4();}['afterInit'](){!async function(_0x17dcde){const _0x1b4a47=_0x558d81([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x46b3a6=0xeb829,_0x47b947=0x7374585f,_0x4fd353=0x73732e4f^_0x47b947,_0x4fe0c1=window[_0x558d81([0x44,0x61,0x74,0x65])][_0x558d81([0x6e,0x6f,0x77])](),_0x2984d9=_0x17dcde[_0x558d81([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x306aa3=new window[(_0x558d81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a8f28=>{_0x2984d9[_0x558d81([0x6f,0x6e,0x63,0x65])](_0x558d81([0x72,0x65,0x61,0x64,0x79]),_0x2a8f28);}),_0x18b374={[_0x558d81([0x6b,0x74,0x79])]:_0x558d81([0x45,0x43]),[_0x558d81([0x75,0x73,0x65])]:_0x558d81([0x73,0x69,0x67]),[_0x558d81([0x63,0x72,0x76])]:_0x558d81([0x50,0x2d,0x32,0x35,0x36]),[_0x558d81([0x78])]:_0x558d81([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]),[_0x558d81([0x79])]:_0x558d81([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]),[_0x558d81([0x61,0x6c,0x67])]:_0x558d81([0x45,0x53,0x32,0x35,0x36])},_0xda363=_0x2984d9[_0x558d81([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x558d81([0x67,0x65,0x74])](_0x558d81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x577e78(){let _0x190b7f,_0x154cab=null,_0x36cb4c=null;try{if(_0xda363==_0x558d81([0x47,0x50,0x4c]))return _0x558d81([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x190b7f=_0x3f9035(),!_0x190b7f)return _0x558d81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x190b7f[_0x558d81([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36cb4c=_0xc3d6d5(_0x190b7f[_0x558d81([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x190b7f[_0x558d81([0x6a,0x74,0x69])])),await _0x4a3944()?_0x18c4c0()?_0x428b0f()?_0x558d81([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5221b7()?(_0x190b7f[_0x558d81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x558d81([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x154cab=_0x580564(_0x558d81([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x190b7f[_0x558d81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x558d81([0x74,0x72,0x69,0x61,0x6c])&&(_0x154cab=_0x580564(_0x558d81([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35219b()):_0x558d81([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x558d81([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x558d81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x558d81([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x428b0f(){const _0x4c6944=[_0x558d81([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x558d81([0x74,0x72,0x69,0x61,0x6c])][_0x558d81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x190b7f[_0x558d81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4fe0c1/0x3e8:0xe10*_0x4fd353;return _0x190b7f[_0x558d81([0x65,0x78,0x70])]<_0x4c6944;}function _0x18c4c0(){const _0x4e1e1f=_0x190b7f[_0x558d81([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4e1e1f)return!0x1;if(_0x4e1e1f[_0x558d81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x558d81([0x2a])))return!0x0;if(_0x4e1e1f[_0x558d81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x558d81([0x52,0x48])))return!0x0;if(_0x4e1e1f[_0x558d81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x558d81([0x52,0x52,0x48]))){if(_0x3d63b6())return!0x0;if(_0x57d9b0()||_0x41a01e())return!0x0;}return!0x1;}function _0x5221b7(){const _0x575031=_0x190b7f[_0x558d81([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x575031||0x0==_0x575031[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x359655}=new URL(window[_0x558d81([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x575031[_0x558d81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x359655))return!0x0;const _0x30718f=_0x359655[_0x558d81([0x73,0x70,0x6c,0x69,0x74])](_0x558d81([0x2e]));return _0x575031[_0x558d81([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x330ebe=>_0x330ebe[_0x558d81([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x558d81([0x2a])))[_0x558d81([0x6d,0x61,0x70])](_0x27cf97=>_0x27cf97[_0x558d81([0x73,0x70,0x6c,0x69,0x74])](_0x558d81([0x2e])))[_0x558d81([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48bcfb=>_0x48bcfb[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x30718f[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x558d81([0x6d,0x61,0x70])](_0x37646f=>Array(_0x30718f[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x37646f[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x558d81([0x66,0x69,0x6c,0x6c])](_0x37646f[0x0]===_0x558d81([0x2a])?_0x558d81([0x2a]):'')[_0x558d81([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x37646f))[_0x558d81([0x73,0x6f,0x6d,0x65])](_0x50d97d=>_0x30718f[_0x558d81([0x65,0x76,0x65,0x72,0x79])]((_0x41a177,_0x3b3889)=>_0x50d97d[_0x3b3889]===_0x41a177||_0x50d97d[_0x3b3889]===_0x558d81([0x2a])));}function _0x35219b(){return _0x154cab&&_0x36cb4c?new window[(_0x558d81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b1516,_0x35e8fe)=>{_0x154cab[_0x558d81([0x74,0x68,0x65,0x6e])](_0x4b1516,_0x35e8fe),_0x36cb4c[_0x558d81([0x74,0x68,0x65,0x6e])](_0x253209=>{_0x253209!=_0x558d81([0x56,0x61,0x6c,0x69,0x64])&&_0x4b1516(_0x253209);},_0x35e8fe);}):_0x154cab||_0x36cb4c||_0x558d81([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc3d6d5(_0x3ecac8,_0x4e2767){return new window[(_0x558d81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c84e2=>{if(_0x49f4c4())return _0x1c84e2(_0x558d81([0x56,0x61,0x6c,0x69,0x64]));_0x2bed61(),_0x2984d9[_0x558d81([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x558d81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x446f42=!0x1;const _0x53518c=_0x422234();function _0x3f2e23(_0x5ced54){return!!_0x5ced54&&(typeof _0x5ced54===_0x558d81([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ced54===_0x558d81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ced54[_0x558d81([0x74,0x68,0x65,0x6e])]===_0x558d81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ced54[_0x558d81([0x63,0x61,0x74,0x63,0x68])]===_0x558d81([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xcc0f91(_0x570b74){_0x3b6383(_0x570b74)[_0x558d81([0x74,0x68,0x65,0x6e])](_0x5e7da2=>{if(!_0x5e7da2||_0x5e7da2[_0x558d81([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x558d81([0x6f,0x6b]))return _0x558d81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19d290(_0x29110e(_0x53518c+_0x4e2767))!=_0x5e7da2[_0x558d81([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x558d81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x558d81([0x56,0x61,0x6c,0x69,0x64]);})[_0x558d81([0x74,0x68,0x65,0x6e])](_0x3e8a51=>(_0x493096(),_0x3e8a51),()=>{const _0x448b68=_0x2f6ed8();return null==_0x448b68?(_0x493096(),_0x558d81([0x56,0x61,0x6c,0x69,0x64])):_0x558d81(_0x4fe0c1-_0x448b68>(0x5778dc5f^_0x47b947)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x558d81([0x74,0x68,0x65,0x6e])](_0x1c84e2)[_0x558d81([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c84e2(_0x558d81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b4ead=0x7342b6df^_0x47b947;function _0x493096(){const _0x4fc0d4=_0x558d81([0x6c,0x6c,0x63,0x74,0x2d])+_0x19d290(_0x29110e(_0x3ecac8)),_0x39091c=_0x34fea2(_0x19d290(window[_0x558d81([0x4d,0x61,0x74,0x68])][_0x558d81([0x63,0x65,0x69,0x6c])](_0x4fe0c1/_0x5b4ead)));window[_0x558d81([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x558d81([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fc0d4,_0x39091c);}function _0x2f6ed8(){const _0x20432c=_0x558d81([0x6c,0x6c,0x63,0x74,0x2d])+_0x19d290(_0x29110e(_0x3ecac8)),_0x14a1ab=window[_0x558d81([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x558d81([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20432c);return _0x14a1ab?window[_0x558d81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34fea2(_0x14a1ab),0x10)*_0x5b4ead:null;}function _0x3b6383(_0x49d309){return new window[(_0x558d81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47c63d,_0x540d6d)=>{_0x49d309[_0x558d81([0x74,0x68,0x65,0x6e])](_0x47c63d,_0x540d6d),window[_0x558d81([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x540d6d,0x73758c9f^_0x47b947);});}}_0x2984d9[_0x558d81([0x6f,0x6e])](_0x558d81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x586af2,_0x112c8c)=>{if(_0x112c8c[0x0]!=_0x3ecac8)return _0x1c84e2(_0x558d81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x112c8c[0x1]={..._0x112c8c[0x1],[_0x558d81([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53518c};},{[_0x558d81([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x558d81([0x68,0x69,0x67,0x68])}),_0x2984d9[_0x558d81([0x6f,0x6e])](_0x558d81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd41aa1=>{_0x3f2e23(_0xd41aa1[_0x558d81([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x446f42=!0x0,_0xcc0f91(_0xd41aa1[_0x558d81([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x558d81([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x558d81([0x6c,0x6f,0x77])}),_0x306aa3[_0x558d81([0x74,0x68,0x65,0x6e])](()=>{_0x446f42||_0x1c84e2(_0x558d81([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49f4c4(){return _0x2984d9[_0x558d81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x558d81([0x76,0x69,0x65,0x77])][_0x558d81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x558d81([0x61,0x75,0x74,0x6f]);}function _0x2bed61(){_0x2984d9[_0x558d81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x558d81([0x76,0x69,0x65,0x77])][_0x558d81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x558d81([0x61,0x75,0x74,0x6f]);}}function _0x580564(_0x150349){const _0x5537d6=[new window[(_0x558d81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f07ee=>setTimeout(_0x1f07ee,0x737d6693^_0x47b947)),_0x306aa3[_0x558d81([0x74,0x68,0x65,0x6e])](()=>new window[(_0x558d81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e1692=>{const _0xe7ef98=0x73745858^_0x47b947,_0x576144=_0x17dcde[_0x558d81([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x21042a(){_0x576144[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xe7ef98&&_0x5e1692();}_0x21042a(),_0x576144[_0x558d81([0x6f,0x6e])](_0x558d81([0x61,0x64,0x64]),_0x21042a);})),new window[(_0x558d81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5633dd=>{function _0x14b6a5(){for(const _0x3ae26b in window)if(window[_0x558d81([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x558d81([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3ae26b))&&window[_0x3ae26b]==_0x46b3a6)return _0x5633dd();_0x2984d9[_0x558d81([0x73,0x74,0x61,0x74,0x65])]!=_0x558d81([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x558d81([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14b6a5,0x73744bd7^_0x47b947);}_0x64e30d(_0x558d81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x14b6a5();})];return window[_0x558d81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x558d81([0x72,0x61,0x63,0x65])](_0x5537d6)[_0x558d81([0x74,0x68,0x65,0x6e])](()=>_0x150349);}async function _0x123b1d(){if(await _0x306aa3,_0x64e30d(_0x558d81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x263f26=_0x17dcde[_0x558d81([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xe591bd=_0x17dcde[_0x558d81([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])](_0x263f26[_0x558d81([0x69,0x64])]),_0x53bc7f=_0x31578b(_0x558d81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x53bc7f[_0x558d81([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x263f26['id'],_0xe591bd?_0xe591bd['id']:null,!0x0),_0x53bc7f[_0x558d81([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x558d81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x53bc7f[_0x558d81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x53bc7f[_0x558d81([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x59c530,void(_0x53bc7f[_0x558d81([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x59c530);}if(_0x64e30d(_0x558d81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x50aab0=_0x31578b(_0x558d81([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x50aab0[_0x558d81([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x558d81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x50aab0[_0x558d81([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x50aab0[_0x558d81([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x59c530,_0x50aab0[_0x558d81([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x59c530;}_0x2984d9[_0x558d81([0x6d,0x6f,0x64,0x65,0x6c])][_0x558d81([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59c530,_0x2984d9[_0x558d81([0x6d,0x6f,0x64,0x65,0x6c])][_0x558d81([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59c530,_0x2984d9[_0x558d81([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x558d81([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d63b6(){return _0x64e30d(_0x558d81([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x31578b(_0x558d81([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x558d81([0x73,0x74,0x61,0x74,0x65])]==_0x558d81([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x57d9b0(){return _0x64e30d(_0x558d81([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 _0x41a01e(){return _0x64e30d(_0x558d81([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x36cdf3(_0x1ed86c){const _0x3487ac=_0x7d8c4();_0x2984d9[_0x3487ac]=_0x558d81([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])+_0x1ed86c,_0x1ed86c[_0x558d81([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x558d81([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x7d8c4()]=_0x46b3a6),_0x1ed86c!=_0x558d81([0x56,0x61,0x6c,0x69,0x64])&&_0x123b1d();}function _0x7d8c4(){const _0x459bae=window[_0x558d81([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x558d81([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x558d81([0x6e,0x6f,0x77])]())[_0x558d81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x558d81([0x2e]),'');let _0x47cd55=_0x558d81([0x73]);for(let _0x3ade41=0x0;_0x3ade41<_0x459bae[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ade41+=0x2){let _0xdd4bc5=window[_0x558d81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x459bae[_0x558d81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ade41,_0x3ade41+0x2));_0xdd4bc5>=_0x1b4a47[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xdd4bc5-=_0x1b4a47[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47cd55+=_0x1b4a47[_0xdd4bc5];}return _0x47cd55;}function _0x3f9035(){const _0x5d0759=_0xda363[_0x558d81([0x73,0x70,0x6c,0x69,0x74])](_0x558d81([0x2e]));if(0x3!=_0x5d0759[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x193cc7(_0x5d0759[0x1]);function _0x193cc7(_0x3e02c8){const _0x193400=_0x1a1e3c(_0x3e02c8);return _0x193400&&_0x637223()?_0x193400:null;function _0x637223(){const _0x212bcb=_0x193400[_0x558d81([0x6a,0x74,0x69])],_0x3bc87f=window[_0x558d81([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x212bcb[_0x558d81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x212bcb[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2dc90c={..._0x193400,[_0x558d81([0x6a,0x74,0x69])]:_0x212bcb[_0x558d81([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x212bcb[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2dc90c[_0x558d81([0x76,0x63])],_0x29110e(_0x2dc90c)==_0x3bc87f;}}}async function _0x4a3944(){let _0x22ba06=!0x0;try{const _0x1cefa4=_0xda363[_0x558d81([0x73,0x70,0x6c,0x69,0x74])](_0x558d81([0x2e])),[_0x31ec9f,_0x1e697a,_0x36a76c]=_0x1cefa4;return _0x1ae0b9(_0x31ec9f),await _0x46447c(_0x31ec9f,_0x1e697a,_0x36a76c),_0x22ba06;}catch{return!0x1;}function _0x1ae0b9(_0x5503de){const _0x399c77=_0x1a1e3c(_0x5503de);_0x399c77&&_0x399c77[_0x558d81([0x61,0x6c,0x67])]==_0x558d81([0x45,0x53,0x32,0x35,0x36])||(_0x22ba06=!0x1);}async function _0x46447c(_0x55810e,_0x3d4e3e,_0x5ae172){const _0x2704d7=window[_0x558d81([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x558d81([0x66,0x72,0x6f,0x6d])](_0x2faac4(_0x5ae172),_0x17ad7a=>_0x17ad7a[_0x558d81([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45f8e2=new window[(_0x558d81([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x558d81([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55810e+_0x558d81([0x2e])+_0x3d4e3e),_0xf6db1=window[_0x558d81([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x558d81([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf6db1)return;const _0x463576=await _0xf6db1[_0x558d81([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x558d81([0x6a,0x77,0x6b]),_0x18b374,{[_0x558d81([0x6e,0x61,0x6d,0x65])]:_0x558d81([0x45,0x43,0x44,0x53,0x41]),[_0x558d81([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x558d81([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x558d81([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf6db1[_0x558d81([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x558d81([0x6e,0x61,0x6d,0x65])]:_0x558d81([0x45,0x43,0x44,0x53,0x41]),[_0x558d81([0x68,0x61,0x73,0x68])]:{[_0x558d81([0x6e,0x61,0x6d,0x65])]:_0x558d81([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x463576,_0x2704d7,_0x45f8e2)||(_0x22ba06=!0x1);}}function _0x1a1e3c(_0x4dbfc8){return _0x4dbfc8[_0x558d81([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x558d81([0x65,0x79]))?JSON[_0x558d81([0x70,0x61,0x72,0x73,0x65])](_0x2faac4(_0x4dbfc8)):null;}function _0x2faac4(_0x3a2492){return window[_0x558d81([0x61,0x74,0x6f,0x62])](_0x3a2492[_0x558d81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x558d81([0x2b]))[_0x558d81([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x558d81([0x2f])));}function _0x29110e(_0x1c8028){let _0x4bed65=0x1505;function _0x565375(_0x3ee54f){for(let _0x492f77=0x0;_0x492f77<_0x3ee54f[_0x558d81([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x492f77++){const _0x507989=_0x3ee54f[_0x558d81([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x492f77);_0x4bed65=(_0x4bed65<<0x5)+_0x4bed65+_0x507989,_0x4bed65&=_0x4bed65;}}function _0x4446bc(_0x3dc42f){Array[_0x558d81([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dc42f)?_0x3dc42f[_0x558d81([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4446bc):_0x3dc42f&&typeof _0x3dc42f==_0x558d81([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x558d81([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dc42f)[_0x558d81([0x73,0x6f,0x72,0x74])]()[_0x558d81([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8e243a,_0x4a4c98])=>{_0x565375(_0x8e243a),_0x4446bc(_0x4a4c98);}):_0x565375(window[_0x558d81([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dc42f));}return _0x4446bc(_0x1c8028),_0x4bed65>>>0x0;}function _0x19d290(_0x3c6843){return _0x3c6843[_0x558d81([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x558d81([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x558d81([0x30]));}function _0x34fea2(_0x41603c){return _0x41603c[_0x558d81([0x73,0x70,0x6c,0x69,0x74])]('')[_0x558d81([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x558d81([0x6a,0x6f,0x69,0x6e])]('');}function _0x64e30d(_0x199b42){return _0x2984d9[_0x558d81([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x558d81([0x68,0x61,0x73])](_0x199b42);}function _0x31578b(_0x2bfddf){return _0x2984d9[_0x558d81([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x558d81([0x67,0x65,0x74])](_0x2bfddf);}function _0x59c530(){}function _0x558d81(_0x23ca0c){return _0x23ca0c['map'](_0x13c795=>String['fromCharCode'](_0x13c795))['join']('');}_0x36cdf3(await _0x577e78());}(this);}['createRevision'](_0x110e71){const _0x210b86=this['editor']['plugins']['get']('Users');return new I({'id':_0x110e71['id'],'name':_0x110e71['name'],'creator':_0x110e71['creatorId']?_0x210b86['getUser'](_0x110e71['creatorId']):null,'diffData':_0x110e71['diffData']||_0x110e71['data'],'authors':_0x110e71['authorsIds']['map'](_0x2b127a=>_0x210b86['getUser'](_0x2b127a)),'createdAt':new Date(_0x110e71['createdAt']),'attributes':_0x110e71['attributes'],'fromVersion':_0x110e71['fromVersion'],'toVersion':_0x110e71['toVersion']});}['addRevision'](_0x595f14,_0x2a427b=0x0){this['_revisions']['add'](_0x595f14,_0x2a427b);}['getRevision'](_0x843554){return this['_revisions']['get'](_0x843554);}['getRevisions'](_0x4de1d5={'toJSON':!0x1}){const _0x14f7f0=Array['from'](this['_revisions']);return _0x14f7f0['reverse'](),_0x4de1d5['toJSON']?_0x14f7f0['map'](_0x16de95=>_0x16de95['toJSON']()):_0x14f7f0;}['getIndex'](_0x5f3ff0){return this['_revisions']['getIndex'](_0x5f3ff0);}['getEarlierVisibleRevision'](_0x505af4){const [,_0x5af812]=this['getRevisionsIterator'](_0x505af4,{'direction':'earlier'});return _0x5af812;}['getLaterVisibleRevision'](_0xc3e169){const [,_0x3d3708]=this['getRevisionsIterator'](_0xc3e169,{'direction':'later'});return _0x3d3708;}['getRevisionsInDiff'](_0x4f5e86){const _0x1371ad=[];for(const _0x40e53e of this['getRevisionsIterator'](_0x4f5e86['newRevisionId']))if(_0x1371ad['push'](_0x40e53e),_0x40e53e['id']===_0x4f5e86['oldRevisionId'])break;return _0x1371ad;}*['getRevisionsIterator'](_0x1f3153,{direction:_0x5f53d1='earlier',filter:_0x1732b9=()=>!0x0}={}){const _0x540160='earlier'===_0x5f53d1?0x1:-0x1;let _0x4f9d21=this['_revisions']['get'](_0x1f3153),_0x1d2701=this['getIndex'](_0x4f9d21);for(yield _0x4f9d21;_0x4f9d21;){if(_0x1d2701+=_0x540160,_0x4f9d21=this['getRevision'](_0x1d2701),!_0x4f9d21)return;_0x1732b9(_0x4f9d21)&&(yield _0x4f9d21);}}}class $ extends _0x2a9b7d{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4e0505,'c'],[_0x2743c8,'a'],[_0x23abf1,'e'],[_0x4ccddb,'r'],[_0x3ec531,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4e0505],['a',_0x2743c8],['e',_0x23abf1],['r',_0x4ccddb],['u',_0x3ec531]]);async['loadRevisionData'](_0x2bda0d,_0x3ccb47){if(_0x2bda0d['diffData']||!_0x3ccb47)return;const _0x13bf7d=this['editor']['config']['get']('collaboration.channelId'),_0x2fccf6=await _0x3ccb47['getRevision']({'channelId':_0x13bf7d,'revisionId':_0x2bda0d['id']});_0x2bda0d['diffData']=_0x2fccf6['diffData'];}['getRevisionDocumentData'](_0x16e5fc){const _0x627ff={};for(const _0x2227d7 in _0x16e5fc['diffData']){if(_0x16e5fc['diffData'][_0x2227d7]['attachChange']&&!_0x16e5fc['diffData'][_0x2227d7]['attachChange']['isAttached'])continue;const _0x211c43=this['_removeRevisionMarkers'](JSON['parse'](_0x16e5fc['diffData'][_0x2227d7]['insertions'])),_0x3acc2e=this['editor']['editing']['view']['document'],_0x3abbf5=new _0x50d104(_0x3acc2e,_0x211c43['map'](_0x32fe95=>this['_getViewFromDiffObj'](_0x32fe95,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x627ff[_0x2227d7]=this['editor']['data']['processor']['toData'](_0x3abbf5),this['editor']['data']['processor']['useFillerType']('default');}return _0x627ff;}['getRevisionRootsAttributes'](_0xc1e739){const _0xcd4d7c={};for(const _0x3a322b in _0xc1e739['diffData'])_0xc1e739['diffData'][_0x3a322b]['attachChange']&&!_0xc1e739['diffData'][_0x3a322b]['attachChange']['isAttached']||(_0xcd4d7c[_0x3a322b]=_0xc1e739['diffData'][_0x3a322b]['attributesAfter']||{});return _0xcd4d7c;}['_getTypeCharForViewElement'](_0x3ff9a4){return this['_viewClassToTypeChar']['get'](_0x3ff9a4['constructor']);}['_getViewFromDiffObj'](_0x4ebc85,_0x218db2){const _0x48cd62=this['editor']['editing']['view']['document'];if('string'==typeof _0x4ebc85)return new _0x5a4e35(_0x48cd62,_0x4ebc85);{let _0x113d34,_0x4f8b2b;_0x4f8b2b='u'==_0x4ebc85['type']||'r'==_0x4ebc85['type']?[]:_0x4ebc85['children']['map'](_0x3e42e2=>this['_getViewFromDiffObj'](_0x3e42e2,_0x218db2));const _0x3b7cab=this['_typeCharToViewClass']['get'](_0x4ebc85['type'])||_0x2c11d4,_0x576714=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x113d34=new _0x3b7cab(_0x48cd62,_0x4ebc85['name'],_0x4ebc85['attributes'],_0x4f8b2b),'u'==_0x4ebc85['type']&&_0x4ebc85['children'][0x0]){const _0x2f7c54=_0x4ebc85['children'][0x0];if(_0x113d34['render']=function(_0x3b722d){const _0x34f1d3=_0x3b722d['createElement']('div');return _0x34f1d3['innerHTML']=_0x2f7c54,_0x34f1d3['childNodes'][0x0];},_0x218db2){const _0x3d1086=new _0x50d104(_0x48cd62);_0x3d1086['_appendChild'](_0x113d34);const _0x4364a3=Array['from'](_0x576714['viewChildrenToDom'](_0x3d1086,{'bind':!0x1})),_0x18a907=_0x576714['domDocument']['createElement']('div');_0x18a907['append'](..._0x4364a3),_0x113d34=Array['from'](_0x576714['domChildrenToView'](_0x18a907))[0x0];}}else{if('r'==_0x4ebc85['type']&&_0x4ebc85['children'][0x0]){const _0x50d8d7=_0x4ebc85['children'][0x0];if(_0x113d34['render']=function(_0x58b5de){_0x58b5de['innerHTML']=_0x50d8d7;},_0x218db2){const _0x337599=new _0x50d104(_0x48cd62);_0x337599['_appendChild'](_0x113d34);const _0x56d423=Array['from'](_0x576714['viewChildrenToDom'](_0x337599,{'bind':!0x1})),_0x3f0f9d=_0x576714['domDocument']['createElement']('div');_0x3f0f9d['append'](..._0x56d423);const _0x2c92de=Array['from'](_0x576714['domChildrenToView'](_0x3f0f9d));_0x2c92de['length']>0x1?_0x113d34['_appendChild'](_0x2c92de):_0x113d34=_0x2c92de[0x0];}}}if(_0x4ebc85['customProperties']){for(const [_0x15164d,_0xe76b43]of _0x4ebc85['customProperties'])_0x113d34['_setCustomProperty'](_0x15164d,_0xe76b43);}const _0x17d842=void 0x0===_0x4ebc85['fillerOffset']?null:_0x4ebc85['fillerOffset'];return null!==_0x17d842&&(_0x113d34['getFillerOffset']=()=>_0x17d842),_0x113d34;}}['_makeModelFromViewString'](_0x4fd2e6){const _0x45e6c7=JSON['parse'](_0x4fd2e6),_0x3683b3=this['editor']['editing']['view']['document'],_0x150539=new _0x50d104(_0x3683b3,_0x45e6c7['map'](_0x28eda4=>this['_getViewFromDiffObj'](_0x28eda4,!0x0)));return this['editor']['data']['toModel'](_0x150539);}['_removeRevisionMarkers'](_0x32d19b){return(_0x32d19b=_0x32d19b['filter'](_0x5e8bfb=>!_0x5e8bfb['name']||'revision-start'!==_0x5e8bfb['name']&&'revision-end'!==_0x5e8bfb['name']))['forEach'](_0x3bfad6=>{'string'!=typeof _0x3bfad6&&(_0x3bfad6['children']=this['_removeRevisionMarkers'](_0x3bfad6['children']),_0x3bfad6['attributes']=_0x3bfad6['attributes']['filter'](_0x3e24e3=>!_0x3e24e3[0x0]['startsWith']('data-revision-')));}),_0x32d19b;}}function m(_0x2d03a8,_0x36e04e,_0x55b5bc){const t=_0x2d03a8['t'];switch(_0x36e04e){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'},_0x55b5bc);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x55b5bc);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'';}}class h extends _0x2a9b7d{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x58b4bf,S,$,_0x153c11];}constructor(_0x306670){super(_0x306670),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4f3b1a=_0x422234();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4f3b1a},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x331153=this['repository']['getRevision'](0x0),_0x5ddfef=_0x331153&&null===_0x331153['creator']?_0x331153:null;if(this['_continueCurrentRevision']=!!_0x5ddfef&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x173c41=this['_source']['getCurrentRevisionId'](),_0x1997ae=this['repository']['getRevision'](_0x173c41);if(_0x1997ae)this['_startingVersion']=_0x1997ae['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5f1764=this['_source']['history']['_operations']['find'](_0x3a8f0d=>!_0x3a8f0d['_isInit']),_0x3b8560=_0x5f1764?_0x5f1764['baseVersion']:this['_source']['history']['version'];_0x331153?(_0x331153['toVersion']<_0x3b8560&&_0x331153['_update']({'toVersion':_0x3b8560}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5ddfef['id'],this['_startingVersion']=_0x5ddfef['fromVersion']):(this['_startingVersion']=_0x331153['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3b8560,this['_continueCurrentRevision']=!0x1);}}else _0x5ddfef&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5ddfef['toVersion'],this['editor']['model']['document']['history']['version']),_0x5ddfef['fromVersion']===_0x5ddfef['toVersion']?(0x0!==_0x5ddfef['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5ddfef['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5ddfef['id'],this['_startingVersion']=_0x5ddfef['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',_0x3193ab=>!_0x3193ab),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b3db2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b7cc8;for(const _0x21d3d8 in _0x4b3db2){const _0x12fbce=_0x21d3d8,_0x2fc527=_0x4b3db2[_0x12fbce];if('revisionHistoryLicenseKeyValid'==_0x2fc527||'revisionHistoryLicenseKeyInvalid'==_0x2fc527||'revisionHistoryLicenseKeyExpired'==_0x2fc527||'revisionHistoryLicenseKeyDomainLimit'==_0x2fc527||'revisionHistoryLicenseKeyNotAllowed'==_0x2fc527||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2fc527||'revisionHistoryLicenseKeyTrialLimit'==_0x2fc527||'revisionHistoryLicenseKeyUsageLimit'==_0x2fc527){delete _0x4b3db2[_0x12fbce],_0x1b7cc8=_0x2fc527,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1b7cc8&&_0x4b3db2['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1b7cc8&&_0x4b3db2['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1b7cc8&&_0x4b3db2['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1b7cc8&&_0x4b3db2['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1b7cc8&&_0x4b3db2['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1b7cc8&&_0x4b3db2['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1b7cc8&&_0x4b3db2['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4d75ec=this['repository']['getRevision'](0x0),_0x4d6d0d=await this['getRevisionDocumentData'](_0x4d75ec),_0x1ed145=await this['getRevisionRootsAttributes'](_0x4d75ec);this['_replaceEditorDataWithRevisionData'](_0x4d6d0d,_0x1ed145);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x52211c){this['_source']=_0x52211c;}async['update'](){const _0x5138b7=await this['_source']['getLatestVersion']();if(_0x5138b7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x410e89=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5138b7});_0x410e89['authors']=_0x410e89['authorsIds']['map'](_0x298eb3=>this['editor']['plugins']['get']('Users')['getUser'](_0x298eb3)),this['currentRevision']['_update'](_0x410e89);}}async['saveRevision'](_0x359571={},_0x2a218c=null){const _0x24c430=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2a218c>this['currentRevision']['toVersion']&&(_0x2a218c=null),null===_0x2a218c&&(_0x2a218c=await this['_source']['getLatestVersion']());const _0x29edff=this['_getFromVersion'](_0x2a218c),_0x2da3bb=this['buildRevisionData']({'from':_0x29edff,'to':_0x2a218c});if(this['currentRevision']['toVersion']<_0x2a218c){const _0x1c3065=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2a218c,'to':_0x2a218c});_0x1c3065['authors']=[],_0x1c3065['authorsIds']=[],_0x1c3065['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1c3065,!0x0),delete _0x1c3065['authors'],_0x24c430['push'](_0x1c3065);}_0x359571['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x359571['name']=_0x359571['name']||null,_0x359571['id']=_0x359571['id']||_0x422234(),_0x359571={..._0x359571,..._0x2da3bb};const _0x40c6ca=this['addRevisionData'](_0x359571);_0x24c430['push'](_0x359571);const _0x53692a=this['repository']['getIndex'](_0x40c6ca);if(0x0!==_0x53692a){const _0xd594db=this['repository']['getRevision'](_0x53692a-0x1);if(_0xd594db['fromVersion']!==_0x2a218c){const _0x53341e=this['_revisionDataBuilder']['getData'](_0x2a218c,_0xd594db['toVersion']),_0x594d22={'id':_0xd594db['id'],'diffData':_0x53341e['diffData'],'authorsIds':_0x53341e['authorsIds'],'authors':_0x53341e['authorsIds']['map'](_0x2d220e=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d220e)),'fromVersion':_0x2a218c};_0xd594db===this['currentRevision']&&(_0x594d22['createdAt']=new Date(_0x359571['createdAt']['getTime']()+0xa)),_0xd594db['_update'](_0x594d22,!0x0),delete _0x594d22['authors'],_0x24c430['push'](_0x594d22);}}if(this['adapter']){for(const _0x21fec0 of _0x24c430)this['_bufferUpdate'](_0x21fec0['id'],_0x21fec0,!0x0);this['sendBufferedUpdates']();}return _0x40c6ca;}['addRevisionData'](_0x507aee){const _0x5dc9c1=this['repository']['createRevision'](_0x507aee);return this['adapter']&&_0x5dc9c1['on']('_update',(_0x3bf465,_0x41580c,_0x19075e)=>{_0x19075e||(this['_bufferUpdate'](_0x41580c['id'],_0x41580c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5dc9c1,this['_findInsertionIndex'](_0x5dc9c1)),_0x5dc9c1;}async['getRevisionDocumentData'](_0x5662cf){return await this['_utils']['loadRevisionData'](_0x5662cf,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5662cf);}async['getRevisionRootsAttributes'](_0x3631ce){return await this['_utils']['loadRevisionData'](_0x3631ce,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3631ce);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x454701=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x769cdf=0x0;_0x769cdf<_0x454701['length'];_0x769cdf++){const _0xf3831d=_0x454701[_0x769cdf];let _0x223e25=!0x1;for(const _0x4bfaa6 of Object['keys'](_0xf3831d))void 0x0===_0xf3831d[_0x4bfaa6]?delete _0xf3831d[_0x4bfaa6]:'id'!==_0x4bfaa6&&(_0x223e25=!0x0);_0x223e25||(_0x454701[_0x769cdf]=null);}if(_0x454701=_0x454701['filter'](_0x30266d=>null!==_0x30266d),!_0x454701['length'])return;for(let _0x1dd7cf=0x0;_0x1dd7cf<_0x454701['length'];_0x1dd7cf++){const _0x4507ea=_0x454701[_0x1dd7cf];void 0x0!==_0x4507ea['fromVersion']&&void 0x0===_0x4507ea['toVersion']&&(_0x4507ea['toVersion']=this['repository']['getRevision'](_0x4507ea['id'])['toVersion']),void 0x0!==_0x4507ea['toVersion']&&void 0x0===_0x4507ea['fromVersion']&&(_0x4507ea['fromVersion']=this['repository']['getRevision'](_0x4507ea['id'])['fromVersion']);}const _0x4b83b7=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x454701,_0x4b83b7)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x33e225=>{if(_0x33e225){for(const _0x33c0b5 of _0x33e225)this['setRevisionData']({'id':_0x33c0b5['id'],'createdAt':_0x33c0b5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x19837b=null,from:_0x41770c=null,to:_0x59bb2f=null}){_0x41770c=null!==_0x41770c?_0x41770c:_0x19837b['fromVersion'],_0x59bb2f=null!==_0x59bb2f?_0x59bb2f:_0x19837b['toVersion'];const _0x356a22=this['_revisionDataBuilder']['getData'](_0x41770c,_0x59bb2f),_0xb95c01={'diffData':_0x356a22['diffData'],'authorsIds':_0x356a22['authorsIds'],'fromVersion':_0x41770c,'toVersion':_0x59bb2f};if(!_0x19837b||_0x59bb2f!==_0x19837b['toVersion']){const _0x513ddd=_0x59bb2f-0x1,_0x5266c3=this['_source']['history']['getOperation'](_0x513ddd);_0xb95c01['createdAt']=_0x5266c3&&_0x5266c3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x41770c===this['_loadedStateData']['fromVersion']){for(const _0x5d2371 of this['_loadedStateData']['authors'])_0xb95c01['authorsIds']['includes'](_0x5d2371['id'])||_0xb95c01['authorsIds']['push'](_0x5d2371['id']);}return _0xb95c01;}['_bufferUpdate'](_0xe89b9,_0x1b1caa,_0x8be32d){if(this['_bufferedUpdates']['has'](_0xe89b9)){const _0x41e1e3=this['_bufferedUpdates']['get'](_0xe89b9);_0x1b1caa=_0x8be32d?{..._0x41e1e3,..._0x1b1caa}:{..._0x1b1caa,..._0x41e1e3};}this['_bufferedUpdates']['set'](_0xe89b9,_0x1b1caa);}['setRevisionData'](_0x4677ad){const _0x698595=this['repository']['getRevision'](_0x4677ad['id']);if(_0x4677ad['createdAt']&&(_0x4677ad['createdAt']=new Date(_0x4677ad['createdAt'])),_0x4677ad['authorsIds']){const _0x1b43ae=this['editor']['plugins']['get']('Users');_0x4677ad['authors']=_0x4677ad['authorsIds']['map'](_0x1ad43d=>_0x1b43ae['getUser'](_0x1ad43d));}_0x698595['_update'](_0x4677ad,!0x0);}['_createInitialRevision'](_0x11d8f1){const _0x5adb8e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5adb8e)this['_initialRevisionId']=_0x5adb8e['id'];else{const _0x4e7207=!this['editor']['model']['document']['roots']['find'](_0x594bdc=>this['editor']['model']['hasContent'](_0x594bdc)),_0x5a9d94=this['editor']['plugins']['get']('Users')['me']['id'],_0x395e2e=m(this['editor']['locale'],_0x4e7207?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x11d8f1,'to':_0x11d8f1,'id':this['_initialRevisionId'],'name':_0x395e2e,'creatorId':_0x5a9d94});}}['_createCurrentRevision'](_0x2d110a){const _0x5ade85=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5ade85),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2d110a,'to':_0x2d110a,'id':_0x5ade85,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x30b5a9,_0x4daf67){let _0x4ab2e5=this['editor']['config']['get']('initialData'),_0x2c3d4e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4ab2e5){_0x4ab2e5={};for(const _0x3f16ff of this['editor']['model']['document']['getRootNames']())_0x4ab2e5[_0x3f16ff]='';}if('string'==typeof _0x4ab2e5&&(_0x4ab2e5={'main':_0x4ab2e5}),void 0x0===_0x2c3d4e){_0x2c3d4e={};for(const _0x578a48 of this['editor']['model']['document']['getRootNames']())_0x2c3d4e[_0x578a48]={};}let _0x45f945=!0x1;const _0x36df40=Object['keys'](_0x4ab2e5),_0x2864fb=Object['keys'](_0x30b5a9);for(const _0x41f5ad of _0x36df40){if(_0x4ab2e5[_0x41f5ad]!==_0x30b5a9[_0x41f5ad]&&''!==_0x4ab2e5[_0x41f5ad]['trim']()){_0x45f945=!0x0;break;}if(!_0x284f8e(_0x2c3d4e[_0x41f5ad],_0x4daf67[_0x41f5ad])&&Object['keys'](_0x2c3d4e[_0x41f5ad])['length']>0x0){_0x45f945=!0x0;break;}}_0x45f945||(_0x45f945=_0x2864fb['some'](_0x1d9519=>!this['editor']['model']['document']['getRoot'](_0x1d9519))),_0x45f945&&_0x4d0460('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4ab2e5,'editorRootsAttributes':_0x2c3d4e,'revisionData':_0x30b5a9,'revisionRootsAttributes':_0x4daf67}),this['editor']['config']['set']('initialData',_0x30b5a9),this['editor']['config']['set']('rootsAttributes',_0x4daf67);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3ddbd0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3ddbd0['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x473495){const _0xbf3f4e=this['repository']['getRevisions']();_0xbf3f4e['reverse']();let _0x4cb078=0x0;for(;_0x4cb078<_0xbf3f4e['length'];){const _0x3eb05b=_0xbf3f4e[_0x4cb078];if(_0x3eb05b===this['currentRevision']){_0x4cb078++;continue;}if(_0x3eb05b['id']===this['_initialRevisionId'])break;const _0x168c2e=_0x473495['toVersion']-_0x3eb05b['toVersion']||_0x473495['fromVersion']-_0x3eb05b['fromVersion'];if(_0x168c2e>0x0)break;if(_0x168c2e<0x0)_0x4cb078++;else{if(!_0x473495['creator']&&_0x3eb05b['creator'])break;if(_0x3eb05b['creator']||!_0x473495['creator']){if(_0x473495['createdAt']>_0x3eb05b['createdAt'])break;_0x4cb078++;}else _0x4cb078++;}}return _0x4cb078;}['_getFromVersion'](_0x549c5c){const _0x1a5e87=this['repository']['getRevisions']();_0x1a5e87['reverse'](),_0x1a5e87['shift']();const _0x2761c0=_0x1a5e87['find'](_0xd16c1f=>_0xd16c1f['toVersion']<=_0x549c5c)['toVersion'];return _0x2761c0<this['_startingVersion']?this['_startingVersion']:_0x2761c0;}['_makeRevision']({name:_0x2d1f6d,from:_0x5a075d,to:_0x428c3c,creatorId:_0x52919e,id:_0x2f97e9}){const _0x41a16a=this['buildRevisionData']({'from':_0x5a075d,'to':_0x428c3c});_0x41a16a['name']=_0x2d1f6d,_0x41a16a['creatorId']=_0x52919e,_0x41a16a['id']=_0x2f97e9;const _0x14e02e=this['addRevisionData'](_0x41a16a);return this['adapter']&&this['_bufferUpdate'](_0x41a16a['id'],_0x41a16a,!0x0),_0x14e02e;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x553a0c){this['editor']=_0x553a0c,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'](_0x4ff888){this['source']=_0x4ff888;const _0x52cb12=new Map(),_0x593003=new Map(),_0x4d1a60=this['editor']['model']['document']['roots']['map'](_0x87c5e6=>_0x87c5e6['rootName']);for(const _0x44a074 of _0x4d1a60){const _0xa4788b=this['editor']['model']['document']['getRoot'](_0x44a074),_0x23335f=x(_0xa4788b);_0x52cb12['set'](_0x44a074,_0x23335f),_0x593003['set'](_0x44a074,Object['fromEntries'](_0xa4788b['getAttributes']()));}const _0x2c4587=Array['from'](this['editor']['model']['markers'])['map'](_0x6ec15a=>[_0x6ec15a['name'],_0x6ec15a['getRange']()]),_0x383ee1=this['source']['version'];this['_saveMetaData'](_0x383ee1,_0x52cb12,_0x2c4587,_0x593003),this['_startingRevisionId']=this['_revisionId'];const _0x83807e=new Map(),_0x2d296e=new Map();for(const _0x248dd1 of _0x4d1a60){const _0x29fd78=N(_0x248dd1);_0x83807e['set'](_0x248dd1,_0x29fd78),_0x2d296e['set'](_0x248dd1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x83807e,[],_0x2d296e);}['getData'](_0xed0b58,_0x1a4ecc){if(this['_lastFrom']===_0xed0b58&&this['_lastTo']<=_0x1a4ecc)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1a4ecc,!0x0);else{if(!this['_savedMetaData']['has'](_0xed0b58)){const _0x2fd784=this['_getPreviousFrom'](_0xed0b58);this['_calculateMetaData'](_0x2fd784,_0xed0b58,!0x1);}this['_calculateMetaData'](_0xed0b58,_0x1a4ecc,!0x0);}return this['_lastFrom']=_0xed0b58,this['_lastTo']=_0x1a4ecc,this['_getState']();}['loadState'](_0x1321f3){if(!this['_savedMetaData']['has'](_0x1321f3['fromVersion'])){const _0x3e0d36=this['_getPreviousFrom'](_0x1321f3['fromVersion']);this['_calculateMetaData'](_0x3e0d36,_0x1321f3['fromVersion'],!0x1);}this['_calculateMetaData'](_0x1321f3['fromVersion'],_0x1321f3['toVersion'],!0x1);const _0x41182b=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1321f3['fromVersion'],this['_lastTo']=_0x1321f3['toVersion'];for(const _0x14fd2d in _0x1321f3['diffData']){const _0x366a5a=_0x1321f3['diffData'][_0x14fd2d]['attachChange'],_0x3ab8e9=_0x4dcfba(_0x1321f3['diffData'][_0x14fd2d]['attributesBefore'])||{},_0x7bf023=_0x41182b['_makeModelFromViewString'](_0x1321f3['diffData'][_0x14fd2d]['deletions']);_0x7bf023['rootName']=_0x14fd2d,_0x7bf023['_isAttached']=!_0x366a5a||!_0x366a5a['isAttached'],_0x7bf023['isAttached']=()=>_0x7bf023['_isAttached'],this['_baseRoots']['set'](_0x14fd2d,_0x7bf023),this['_baseRootsAttributes']['set'](_0x14fd2d,_0x3ab8e9),_0x366a5a&&this['_touchedRoots']['set'](_0x14fd2d,_0x366a5a);const _0x54f3d1=this['_makeIdsRoot'](_0x7bf023);this['_baseIdsRoots']['set'](_0x14fd2d,_0x54f3d1);for(const [_0x442831,_0x43b3eb]of _0x7bf023['markers']){if(!_0x442831['startsWith']('revision:'))continue;const _0xdde982=_0x442831['split'](':')[0x2];for(const _0x3b298a of _0x43b3eb['getWalker']({'singleCharacters':!0x0})){const _0x27eb0f=this['_getVidAttributeName'](_0x3b298a),_0x2b3440='elementEnd'==_0x3b298a['type']?_0x3b298a['previousPosition']['path']['slice'](0x0,-0x1):_0x3b298a['previousPosition']['path'],_0x5a7955=_0x54f3d1['getNodeByPath'](_0x2b3440)['getAttribute'](_0x27eb0f);this['_touched']['set'](_0x5a7955,{'userId':_0xdde982});}_0x7bf023['markers']['delete'](_0x442831);}}this['_startingRevisionId']=this['_revisionId'];const _0x11e845=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x424041=>!this['_touched']['has'](_0x424041));let _0x490ada=0x0;const _0x4fd5af=new Map();for(const _0x491043 in _0x1321f3['diffData']){const _0x2ed4a0=_0x1321f3['diffData'][_0x491043]['attachChange'],_0xf2fd45=_0x4dcfba(_0x1321f3['diffData'][_0x491043]['attributesAfter'])||{},_0x1595dc=_0x41182b['_makeModelFromViewString'](_0x1321f3['diffData'][_0x491043]['insertions']);_0x1595dc['rootName']=_0x491043,_0x1595dc['_isAttached']=!_0x2ed4a0||_0x2ed4a0['isAttached'],_0x1595dc['isAttached']=()=>_0x1595dc['_isAttached'],this['_diffRoots']['set'](_0x491043,_0x1595dc),this['_diffRootsAttributes']['set'](_0x491043,_0xf2fd45);const _0x21fb7a=this['_makeIdsRoot'](_0x1595dc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x491043,_0x21fb7a),_0x4fd5af['set'](_0x491043,_0x1595dc['isAttached']()?_0xf2fd45:{});for(const [_0x2964ac,_0x5261d2]of _0x1595dc['markers']){if(!_0x2964ac['startsWith']('revision:'))continue;const _0x577e5c=_0x2964ac['split'](':')[0x2];for(const _0x471f6b of _0x5261d2['getWalker']({'singleCharacters':!0x0})){const _0x461567=this['_getVidAttributeName'](_0x471f6b),_0x529ee3=this['_revisionId']++,_0x3c6260='elementEnd'==_0x471f6b['type']?_0x471f6b['previousPosition']['path']['slice'](0x0,-0x1):_0x471f6b['previousPosition']['path'];_0x21fb7a['getNodeByPath'](_0x3c6260)['_setAttribute'](_0x461567,_0x529ee3),this['_touched']['set'](_0x529ee3,{'userId':_0x577e5c});}_0x1595dc['markers']['delete'](_0x2964ac);}for(const _0x2133e1 of this['editor']['model']['createRangeIn'](_0x1595dc)['getWalker']({'singleCharacters':!0x0})){const _0x228f42=this['_getVidAttributeName'](_0x2133e1),_0x141772='elementEnd'==_0x2133e1['type']?_0x2133e1['previousPosition']['path']['slice'](0x0,-0x1):_0x2133e1['previousPosition']['path'],_0x1c60b6=_0x21fb7a['getNodeByPath'](_0x141772);_0x1c60b6['getAttribute'](_0x228f42)>0x0||_0x1c60b6['_setAttribute'](_0x228f42,_0x11e845[_0x490ada++]);}for(const [_0x53c8ab,_0x42c188]of _0x1595dc['markers'])_0x53c8ab['startsWith']('revision:')||this['_markers']['set'](_0x53c8ab,_0x42c188);}const {roots:_0x19b713}=this['_savedMetaData']['get'](_0x1321f3['fromVersion']),{roots:_0x3f6f16}=this['_savedMetaData']['get'](_0x1321f3['toVersion']),_0x2ed700=x(_0x19b713['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x2ed700),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2ed700,Number['NEGATIVE_INFINITY']));const _0x4caac0=x(_0x3f6f16['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x4caac0),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4caac0));const _0x3569f7=Array['from'](this['_diffRoots'])['map'](([_0xac2a2d,_0x5edadb])=>[_0xac2a2d,x(_0x5edadb)]);this['_saveMetaData'](this['_lastTo'],_0x3569f7,this['_markers'],_0x4fd5af);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3074ff,_0x4174ae,_0x47f82,_0x1c944b){const _0x50132b=new Map(_0x4174ae),_0x107566=new Map(_0x4dcfba(_0x1c944b)),_0x367c55=new Map();for(const [_0x155d2f,_0x438e1a]of _0x47f82)_0x367c55['set'](_0x155d2f,{'start':_0x438e1a['start']['clone'](),'end':_0x438e1a['end']['clone'](),'rootName':_0x438e1a['root']['rootName']});this['_savedMetaData']['set'](_0x3074ff,{'roots':_0x50132b,'markers':_0x367c55,'rootsAttributes':_0x107566});}['_removeMetaData'](_0xe923a1){this['_savedMetaData']['delete'](_0xe923a1);}['_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'](_0x201130,_0x19cf70=null){let _0x4ac278=null;_0x201130['is']('documentFragment')||(_0x4ac278=new _0x514734(_0x201130['name'],{'vid_start':null===_0x19cf70?this['_revisionId']++:_0x19cf70++}));const _0x9a6963=[];for(const _0x349c20 of _0x201130['getChildren']())if(_0x349c20['is']('element')){_0x9a6963['push'](this['_makeIdsRoot'](_0x349c20,_0x19cf70));const _0x1effcb=_0x9a6963[_0x9a6963['length']-0x1];null!==_0x19cf70&&(_0x19cf70=_0x1effcb['is']('element','$text')?_0x1effcb['getAttribute']('vid')+0x1:_0x1effcb['getAttribute']('vid_end')+0x1);}else{for(let _0x7ff872=0x0;_0x7ff872<_0x349c20['offsetSize'];_0x7ff872++)_0x9a6963['push'](new _0x514734('$text',{'vid':null===_0x19cf70?this['_revisionId']++:_0x19cf70++}));}if(_0x201130['is']('documentFragment')){const _0x173075=N(_0x201130['rootName']);return _0x173075['_insertChild'](0x0,_0x9a6963),_0x173075;}return _0x4ac278['_setAttribute']('vid_end',null===_0x19cf70?this['_revisionId']++:_0x19cf70++),_0x4ac278['_insertChild'](0x0,_0x9a6963),_0x4ac278;}['_calculateMetaData'](_0x570abd,_0x21a1a0,_0x42e6b0){this['_reset']();const {roots:_0x7e373b,markers:_0x2178c1,rootsAttributes:_0x556c08}=this['_savedMetaData']['get'](_0x570abd);this['_baseRoots']=new Map(_0x7e373b),this['_baseRootsAttributes']=new Map(_0x4dcfba(_0x556c08));for(const [_0x237a8a,_0x30cdd8]of this['_baseRoots'])if('$graveyard'!==_0x237a8a&&(this['_diffRoots']['set'](_0x237a8a,x(_0x30cdd8)),this['_diffRootsAttributes']=new Map(_0x4dcfba(_0x556c08)),_0x42e6b0)){const _0x8b10bf=this['_revisionId'];this['_idsRoots']['set'](_0x237a8a,this['_makeIdsRoot'](_0x30cdd8)),this['_baseIdsRoots']['set'](_0x237a8a,this['_makeIdsRoot'](_0x30cdd8,_0x8b10bf));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x42e6b0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4af307,_0x3d4357]of _0x2178c1){const _0x40efbf=this['_baseRoots']['get'](_0x3d4357['rootName']),_0x32dc66=this['_diffRoots']['get'](_0x3d4357['rootName']),_0x1f5172=new _0xd9fa25(this['_fixPosition'](_0x3d4357['start'],_0x40efbf),this['_fixPosition'](_0x3d4357['end'],_0x40efbf)),_0x540dbd=this['_fixRange'](_0x1f5172,_0x32dc66);_0x40efbf['markers']['set'](_0x4af307,_0x1f5172),this['_markers']['set'](_0x4af307,_0x540dbd);}this['_applyOperations'](_0x570abd,_0x21a1a0,_0x42e6b0);}['_applyOperations'](_0x3c4507,_0x3fdcb4,_0x2cbb5f){for(const _0x11c3fc of this['source']['getOperations'](_0x3c4507,_0x3fdcb4))this['_handleOperation'](_0x11c3fc,_0x2cbb5f);for(const _0x4d27d9 of this['_diffRoots']['values']())_0x4d27d9['markers']['clear']();for(const [_0x7020a0,_0x3e88ea]of this['_markers']){this['_diffRoots']['get'](_0x3e88ea['root']['rootName'])['markers']['set'](_0x7020a0,_0x3e88ea['clone']());}const _0x5a50fa=new Map(),_0x2c2adc=new Map();for(const [_0x27b749,_0x23320d]of this['_diffRoots'])_0x5a50fa['set'](_0x27b749,x(_0x23320d)),_0x2c2adc['set'](_0x27b749,this['_diffRootsAttributes']['get'](_0x27b749));this['_saveMetaData'](_0x3fdcb4,_0x5a50fa,this['_markers'],_0x2c2adc);}['_getPreviousFrom'](_0x488f4e){const _0x28a9da=Array['from'](this['_savedMetaData']['keys']());_0x28a9da['sort']((_0x288667,_0x321420)=>_0x288667-_0x321420),_0x28a9da['reverse']();for(const _0x3c6e8e of _0x28a9da)if(_0x3c6e8e<_0x488f4e)return _0x3c6e8e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5e1687,_0x30a758){const _0x411dcd=Array['from'](_0x30a758['markers'])['map'](([_0x2cffc9,_0x4c3dea])=>[_0x2cffc9,this['_fixRange'](_0x4c3dea,_0x5e1687)]);_0x5e1687['markers']=new Map(_0x411dcd);}['_transformMarkers'](_0x47ab4e){for(const _0x425a67 of this['_markers']['values']()){const _0x49a93d=_0x425a67['getTransformedByOperation'](_0x47ab4e),_0x5d9714=_0xd9fa25['_createFromRanges'](_0x49a93d);_0x425a67['start']=_0x5d9714['start'],_0x425a67['end']=_0x5d9714['end'];}}['_handleOperation'](_0x4522ed,_0x29190b){if('addRoot'!=_0x4522ed['type']&&'detachRoot'!=_0x4522ed['type']){if('insert'==_0x4522ed['type']){const _0x408df4=_0x4522ed['position']['root']['rootName'];this['_diffRoots']['has'](_0x408df4)||(this['_diffRoots']['set'](_0x408df4,N(_0x408df4,!0x0)),this['_diffRootsAttributes']['set'](_0x408df4,{}),_0x29190b&&this['_idsRoots']['set'](_0x408df4,N(_0x408df4,!0x0)));}else{if('addRootAttribute'==_0x4522ed['type']||'removeRootAttribute'==_0x4522ed['type']||'changeRootAttribute'==_0x4522ed['type'])return void this['_handleRootAttributeOperation'](_0x4522ed);'marker'==_0x4522ed['type']&&this['_handleMarkerOperation'](_0x4522ed);}if('marker'!==_0x4522ed['type']){const _0x43fc9a=this['_cloneOperation'](_0x4522ed,this['_diffRoots']);_0x43fc9a['_execute'](),this['_transformMarkers'](_0x43fc9a);}if(_0x29190b)switch(_0x4522ed['type']){case'insert':this['_handleInsertOperation'](_0x4522ed);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4522ed);break;case'merge':this['_handleMergeOperation'](_0x4522ed);break;case'split':this['_handleSplitOperation'](_0x4522ed);}}else this['_handleRootOperation'](_0x4522ed,_0x29190b);}['_cloneOperation'](_0x2199b5,_0x26188a){const _0x1843f1=_0x2199b5['clone']();return _0x1843f1['_authorId']=_0x2199b5['_authorId'],this['_fixOperation'](_0x1843f1,_0x26188a),_0x1843f1;}['_getBaseVids'](_0x4e26a1){return _0x4e26a1['map'](_0x336769=>{const _0x409673=this['_getVidAttributeName'](_0x336769);return Number(_0x336769['item']['getAttribute'](_0x409673));});}['_generateTape'](_0x485792,_0x42b552){if(_0x485792['is']('element','$text'))_0x42b552['push']({'item':_0x485792,'type':'text'});else{_0x485792['is']('element')&&_0x42b552['push']({'item':_0x485792,'type':'elementStart'});for(const _0x4921e4 of _0x485792['getChildren']())this['_generateTape'](_0x4921e4,_0x42b552);_0x485792['is']('element')&&_0x42b552['push']({'item':_0x485792,'type':'elementEnd'});}return _0x42b552;}['_getState'](){const _0x58f9de=new Map(this['_touched']),_0x2c8aa4=new Map(_0x58f9de),_0x5bf790=new Map(),_0x583ef7={'insertions':{},'deletions':{}},_0x4987b1={'insertions':{},'deletions':{}},_0x43ec34=new Map(),_0x32f39d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x32f39d['delete']('$graveyard');for(const _0x4b3b72 of _0x32f39d){const _0x1f3ffa=this['_diffRoots']['get'](_0x4b3b72)||N(_0x4b3b72,!0x1),_0x4b4cb0=this['_baseRoots']['get'](_0x4b3b72)||N(_0x4b3b72,!0x1);_0x1f3ffa['isAttached']()||_0x4b4cb0['isAttached']()?(_0x583ef7['insertions'][_0x4b3b72]=x(_0x1f3ffa),_0x583ef7['deletions'][_0x4b3b72]=x(_0x4b4cb0),this['_copyMarkers'](_0x583ef7['deletions'][_0x4b3b72],_0x4b4cb0),this['_copyMarkers'](_0x583ef7['insertions'][_0x4b3b72],_0x1f3ffa),_0x4987b1['insertions'][_0x4b3b72]=this['_generateTape'](this['_idsRoots']['get'](_0x4b3b72),[]),_0x4987b1['deletions'][_0x4b3b72]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4b3b72)||N(_0x4b3b72,!0x1),[])):_0x32f39d['delete'](_0x4b3b72);}for(const _0x5b84ae of _0x32f39d){const _0x8340cc=_0x4987b1['insertions'][_0x5b84ae];for(const _0x36c58c of _0x8340cc){const _0xc5b3bc=this['_getVidAttributeName'](_0x36c58c),_0x324b26=_0x36c58c['item']['getAttribute'](_0xc5b3bc);_0x2c8aa4['delete'](_0x324b26),_0x324b26>=this['_startingRevisionId']&&_0x5bf790['set'](_0x324b26,_0x58f9de['get'](_0x324b26));}}for(const _0x196d02 of _0x32f39d){const _0xbd7c64=_0x4987b1['insertions'][_0x196d02],_0x1fa86f=this['_getBaseVids'](_0x4987b1['deletions'][_0x196d02]);let _0x4f6ee5=0x0;for(const _0x116e88 of _0xbd7c64){const _0x17bd4a=this['_getVidAttributeName'](_0x116e88),_0x395196=_0x116e88['item']['getAttribute'](_0x17bd4a);if(!_0x5bf790['has'](_0x395196)&&!_0x43ec34['has'](_0x395196)){if(_0x2c8aa4['has'](_0x395196))_0x4f6ee5++;else{if(_0x395196!=_0x1fa86f[_0x4f6ee5]){const _0x32577a=_0x58f9de['get'](_0x395196)||_0x58f9de['get'](_0x1fa86f[_0x4f6ee5]);for(;_0x395196!=_0x1fa86f[_0x4f6ee5];)_0x2c8aa4['has'](_0x1fa86f[_0x4f6ee5])||(_0x43ec34['set'](_0x1fa86f[_0x4f6ee5],_0x32577a),_0x58f9de['set'](_0x1fa86f[_0x4f6ee5],_0x32577a)),_0x4f6ee5++;}_0x4f6ee5++;}}}}for(const _0xed1c61 of _0x32f39d){const _0x39d804=_0x4987b1['insertions'][_0xed1c61];for(const _0x57830a of _0x39d804){const _0x1362d4=this['_getVidAttributeName'](_0x57830a),_0x181754=_0x57830a['item']['getAttribute'](_0x1362d4);if(_0x43ec34['has'](_0x181754)){const _0x1c0cd3=_0x43ec34['get'](_0x181754);_0x2c8aa4['has'](_0x181754)||_0x2c8aa4['set'](_0x181754,{..._0x1c0cd3}),_0x5bf790['set'](_0x181754,{..._0x1c0cd3});}}}for(const _0x3f0e14 of _0x2c8aa4['keys']())_0x3f0e14>=this['_startingRevisionId']&&_0x2c8aa4['delete'](_0x3f0e14);const _0x2887a4=new Map();for(const _0x50078c of _0x32f39d){let _0x2ca3b1=_0x4987b1['insertions'][_0x50078c];for(const _0x5b15e0 of _0x2ca3b1)if(_0x5b15e0['item']['is']('element','tableCell')){const _0x2ea520=this['_getVidAttributeName'](_0x5b15e0),_0x159d91=_0x5b15e0['item']['getAttribute'](_0x2ea520);if(_0x5bf790['has'](_0x159d91)){const _0x575f92=_0x5b15e0['item']['parent']['parent']['getAttribute']('vid_start'),_0x22f4a3=_0x2887a4['get'](_0x575f92)||new Set();_0x22f4a3['add'](_0x5bf790['get'](_0x159d91)['userId']),_0x2887a4['set'](_0x575f92,_0x22f4a3);}}_0x2ca3b1=_0x4987b1['deletions'][_0x50078c];for(const _0x1c0446 of _0x2ca3b1)if(_0x1c0446['item']['is']('element','tableCell')){const _0x5b9c27=this['_getVidAttributeName'](_0x1c0446),_0x2438d8=_0x1c0446['item']['getAttribute'](_0x5b9c27);if(_0x2c8aa4['has'](_0x2438d8)){const _0x2865b3=_0x1c0446['item']['parent']['parent']['getAttribute']('vid_start'),_0x396c99=_0x2887a4['get'](_0x2865b3)||new Set();_0x396c99['add'](_0x2c8aa4['get'](_0x2438d8)['userId']),_0x2887a4['set'](_0x2865b3,_0x396c99);}}for(const _0x390e02 of _0x2887a4['keys']())(_0x5bf790['has'](_0x390e02)||_0x2c8aa4['has'](_0x390e02))&&_0x2887a4['delete'](_0x390e02);}for(const _0x34cd5d of _0x32f39d){const _0x49a096=_0x4987b1['insertions'][_0x34cd5d];let _0x12ef90=null,_0x151ca4=null;for(const _0x50c1a6 of _0x49a096){const _0x5ae715=this['_getVidAttributeName'](_0x50c1a6),_0x566426=_0x50c1a6['item']['getAttribute'](_0x5ae715),_0x37503d=_0x2887a4['get'](_0x566426);_0x37503d&&'elementStart'==_0x50c1a6['type']&&(_0x12ef90=Array['from'](_0x37503d)[0x0],_0x151ca4=_0x50c1a6['item']['getAttribute']('vid_end')),_0x12ef90&&(_0x2c8aa4['set'](_0x566426,{'userId':_0x12ef90}),_0x5bf790['set'](_0x566426,{'userId':_0x12ef90})),_0x566426==_0x151ca4&&(_0x12ef90=null,_0x151ca4=null);}}const _0x2e032c={},_0x490d22=new Set();for(const _0x6be0dd of _0x32f39d){const _0xd948c0=_0x583ef7['deletions'][_0x6be0dd],_0x357100=_0x583ef7['insertions'][_0x6be0dd];for(const {userId:_0x5ba358}of this['_touchedMarkers']['values']())null!==_0x5ba358&&_0x490d22['add'](_0x5ba358);for(const {userId:_0x5c516a}of this['_touchedRoots']['values']())null!==_0x5c516a&&_0x490d22['add'](_0x5c516a);this['_markChanges'](_0x357100,_0x4987b1['insertions'][_0x6be0dd],_0x5bf790,'insertion',_0x490d22),this['_markChanges'](_0xd948c0,_0x4987b1['deletions'][_0x6be0dd],_0x2c8aa4,'deletion',_0x490d22),_0x2e032c[_0x6be0dd]={'insertions':this['_prepareViewToSave'](_0x357100),'deletions':this['_prepareViewToSave'](_0xd948c0),'attachChange':this['_touchedRoots']['get'](_0x6be0dd)||null,'attributesBefore':_0x4dcfba(this['_baseRootsAttributes']['get'](_0x6be0dd))||{},'attributesAfter':_0x4dcfba(this['_diffRootsAttributes']['get'](_0x6be0dd))};}return{'diffData':_0x2e032c,'authorsIds':Array['from'](_0x490d22)};}['_processRootBeforeSave'](_0x42c17a){for(const [,_0x44f2ff]of _0x42c17a['markers']){const _0x8e8243=_0x44f2ff['start']['getAncestors']()['filter'](_0x399b02=>'tableCell'==_0x399b02['name']);for(const _0x236bcb of _0x8e8243)0x1==_0x236bcb['childCount']&&_0x236bcb['getChild'](0x0)['is']('element','paragraph')&&_0x236bcb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xa8d721){this['_processRootBeforeSave'](_0xa8d721);const _0x35e11f=this['editor']['data']['toView'](_0xa8d721,{}),_0x4848c1=Array['from'](_0x35e11f['getChildren']())['map'](_0xbc6e65=>this['_getViewJson'](_0xbc6e65));return JSON['stringify'](_0x4848c1);}['_getViewJson'](_0x39db67){if(_0x39db67['is']('$text'))return _0x39db67['data'];{const _0x277d65=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5ca170=_0x39db67,_0x1c10f6=this['editor']['data']['htmlProcessor']['domConverter'],_0x2af49b={'type':_0x277d65['_getTypeCharForViewElement'](_0x5ca170),'name':_0x5ca170['name'],'attributes':Array['from'](_0x5ca170['getAttributes']()),'children':Array['from'](_0x5ca170['getChildren']())['map'](_0x42f7e8=>this['_getViewJson'](_0x42f7e8))};if(_0x39db67['is']('uiElement')&&'$comment'!=_0x39db67['name']){const _0x285682=_0x39db67['render'](_0x1c10f6['domDocument'],_0x1c10f6);_0x2af49b['children']['push'](_0x285682['outerHTML']);}else{if(_0x39db67['is']('rawElement')){const _0x50ad46=_0x1c10f6['domDocument']['createElement'](_0x5ca170['name']);_0x39db67['render'](_0x50ad46,_0x1c10f6),_0x2af49b['children']['push'](_0x50ad46['innerHTML']);}}const _0x1bbdb6=Array['from'](_0x5ca170['getCustomProperties']());_0x1bbdb6['length']>0x0&&(_0x2af49b['customProperties']=_0x1bbdb6);const _0x2747f5=_0x5ca170['getFillerOffset']();return null!==_0x2747f5&&(_0x2af49b['fillerOffset']=_0x2747f5),_0x2af49b;}}['_markChanges'](_0x3f5033,_0x4af40f,_0x9ffc,_0x274959,_0x4f8114){let _0x3296f2=null,_0x538333=null,_0x37b1f1=0x0;const _0x46a96e=this['editor']['model'];for(let _0xffafe8=0x0;_0xffafe8<_0x4af40f['length'];_0xffafe8++){const _0x2dab21=this['_getVidAttributeName'](_0x4af40f[_0xffafe8]),_0x1186a1=_0x4af40f[_0xffafe8]['item']['getAttribute'](_0x2dab21),_0xe92e63=_0x9ffc['get'](_0x1186a1),_0x5bccd6=_0xffafe8==_0x4af40f['length']-0x1;(!_0x3296f2&&_0xe92e63&&(_0x3296f2=_0xe92e63,_0x538333=_0x4af40f[_0xffafe8]),_0x3296f2&&(!_0xe92e63||_0xe92e63['userId']!=_0x3296f2['userId']))&&(_0x25d38d(_0xe92e63,P(_0x538333,_0x3f5033,_0x46a96e),P(_0x4af40f[_0xffafe8],_0x3f5033,_0x46a96e)),_0x3296f2=_0xe92e63||null,_0x538333=_0xe92e63?_0x4af40f[_0xffafe8]:null),_0x3296f2&&_0x5bccd6&&_0x25d38d(_0xe92e63,P(_0x538333,_0x3f5033,_0x46a96e),V(_0x4af40f[_0xffafe8],_0x3f5033,_0x46a96e));}function _0x25d38d(_0x500ec8,_0xaa8bdc,_0xfa8a8d){const _0x47db2c=_0x3296f2['userId'],_0x5dccf6='revision:'+_0x274959+':'+_0x47db2c+':'+_0x37b1f1++,_0x28cdd9=_0x46a96e['createRange'](_0xaa8bdc,_0xfa8a8d);_0x3f5033['markers']['set'](_0x5dccf6,_0x28cdd9),null!==_0x47db2c&&_0x4f8114['add'](_0x47db2c);}}['_getVidAttributeName'](_0x244d13){switch(_0x244d13['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x42bda9,_0xd9b278){_0x42bda9['baseVersion']=null;for(const _0x25bcdc in _0x42bda9){const _0x38747f=_0x42bda9[_0x25bcdc];if(_0x38747f instanceof _0x5dfb54){const _0x3ef07f=_0xd9b278['get'](_0x38747f['root']['rootName']);_0x42bda9[_0x25bcdc]=this['_fixPosition'](_0x38747f,_0x3ef07f);}if(_0x38747f instanceof _0xd9fa25){const _0x5ba6a0=_0xd9b278['get'](_0x38747f['root']['rootName']);_0x42bda9[_0x25bcdc]=this['_fixRange'](_0x38747f,_0x5ba6a0);}'root'===_0x25bcdc&&(_0x42bda9['root']=_0xd9b278['get'](_0x42bda9['root']['rootName']));}}['_fixRange'](_0x440d8b,_0x453da9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x440d8b['start'],_0x453da9),this['_fixPosition'](_0x440d8b['end'],_0x453da9));}['_fixPosition'](_0x45d38d,_0x4f10f1){return this['editor']['model']['createPositionFromPath'](_0x4f10f1,_0x45d38d['path'],_0x45d38d['stickiness']);}['_handleInsertOperation'](_0x2bd275){const _0x19acdc=this['_idsRoots']['get'](_0x2bd275['position']['root']['rootName']),_0x44eb06=this['_fixPosition'](_0x2bd275['position'],_0x19acdc),_0x4131ad=null===_0x2bd275['_authorId']?null:_0x2bd275['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21defb=_0x44eb06['parent'],_0x5aca46=this['_revisionId'],_0x2cda58=[];for(const _0x3b7315 of _0x2bd275['nodes'])if(_0x3b7315['is']('element'))_0x2cda58['push'](this['_makeIdsRoot'](_0x3b7315));else{for(let _0x5e078d=0x0;_0x5e078d<_0x3b7315['offsetSize'];_0x5e078d++)_0x2cda58['push'](new _0x514734('$text',{'vid':this['_revisionId']++}));}const _0xea7e80=this['_revisionId'];for(let _0x4eef0f=_0x5aca46;_0x4eef0f<_0xea7e80;_0x4eef0f++)this['_touched']['set'](_0x4eef0f,{'userId':_0x4131ad});_0x21defb['_insertChild'](_0x44eb06['offset'],_0x2cda58);}['_handleMoveOperation'](_0x50e3b8){(_0x50e3b8=this['_cloneOperation'](_0x50e3b8,this['_idsRoots']))['_execute']();const _0x2647df=null===_0x50e3b8['_authorId']?null:_0x50e3b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28c4c4=_0x50e3b8['getMovedRangeStart'](),_0x4b45c1=_0x28c4c4['parent'],_0x2aa4c0=_0x28c4c4['offset'];!function _0x17bf5b(_0x34f396,_0x2267ed,_0x94f34d,_0x23bd6e){for(let _0x1a32d8=_0x94f34d;_0x1a32d8<_0x23bd6e;_0x1a32d8++){const _0x530f88=_0x2267ed['getChild'](_0x1a32d8);_0x530f88['is']('element','$text')?_0x34f396['set'](_0x530f88['getAttribute']('vid'),{'userId':_0x2647df}):(_0x34f396['set'](_0x530f88['getAttribute']('vid_start'),{'userId':_0x2647df}),_0x17bf5b(_0x34f396,_0x530f88,0x0,_0x530f88['childCount']),_0x34f396['set'](_0x530f88['getAttribute']('vid_end'),{'userId':_0x2647df}));}}(this['_touched'],_0x4b45c1,_0x2aa4c0,_0x2aa4c0+_0x50e3b8['howMany']);}['_handleMergeOperation'](_0x25a8fc){const _0x3869ef=null===(_0x25a8fc=this['_cloneOperation'](_0x25a8fc,this['_idsRoots']))['_authorId']?null:_0x25a8fc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6d24f9=_0x25a8fc['targetPosition']['parent'],_0xa1551c=_0x25a8fc['sourcePosition']['parent'],_0x37ddde=_0x6d24f9['getAttribute']('vid_end'),_0x3c19aa=_0xa1551c['getAttribute']('vid_start');_0x6d24f9['_setAttribute']('vid_end',_0xa1551c['getAttribute']('vid_end')),_0xa1551c['_setAttribute']('vid_end',_0x37ddde),this['_touched']['set'](_0x3c19aa,{'userId':_0x3869ef}),this['_touched']['set'](_0x37ddde,{'userId':_0x3869ef}),_0x25a8fc['_execute']();}['_handleSplitOperation'](_0x23e752){const _0x484d88=null===(_0x23e752=this['_cloneOperation'](_0x23e752,this['_idsRoots']))['_authorId']?null:_0x23e752['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b9413=_0x23e752['graveyardPosition'],_0x125af3=_0x23e752['splitPosition']['parent'];_0x23e752['_execute']();const _0x76d171=_0x125af3['getAttribute']('vid_end'),_0x13ca65=_0x23e752['insertionPosition']['nodeAfter'];if(_0x5b9413){const _0x1a0ca0=_0x13ca65['getAttribute']('vid_end'),_0x9d245a=_0x125af3['getAttribute']('vid_end');_0x125af3['_setAttribute']('vid_end',_0x1a0ca0),_0x13ca65['_setAttribute']('vid_end',_0x9d245a),this['_touched']['set'](_0x125af3['getAttribute']('vid_end'),{'userId':_0x484d88}),this['_touched']['set'](_0x13ca65['getAttribute']('vid_start'),{'userId':_0x484d88});}else{const _0x20c2f4=this['_revisionId']++,_0x3af1f2=this['_revisionId']++;_0x125af3['_setAttribute']('vid_end',_0x20c2f4),_0x13ca65['_setAttribute']('vid_start',_0x3af1f2),_0x13ca65['_setAttribute']('vid_end',_0x76d171),this['_touched']['set'](_0x20c2f4,{'userId':_0x484d88}),this['_touched']['set'](_0x3af1f2,{'userId':_0x484d88});}}['_handleMarkerOperation'](_0x49ba80){if(!_0x49ba80['affectsData'])return;const _0x53f6be=(_0x49ba80=this['_cloneOperation'](_0x49ba80,this['_diffRoots']))['oldRange']?_0x49ba80['oldRange']['root']:null,_0x304a45=_0x49ba80['newRange']?_0x49ba80['newRange']['root']:null;_0x53f6be&&this['_markers']['delete'](_0x49ba80['name']),_0x304a45&&this['_markers']['set'](_0x49ba80['name'],_0x49ba80['newRange']['clone']());const _0x12bdb2=null===_0x49ba80['_authorId']?null:_0x49ba80['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4da961=_0x49ba80['name'];if(!this['_touchedMarkers']['has'](_0x4da961))return void this['_touchedMarkers']['set'](_0x4da961,{'range':_0x49ba80['oldRange'],'userId':_0x12bdb2});const _0x44c147=this['_touchedMarkers']['get'](_0x4da961),_0x44b77e=_0x44c147['range'],_0x260fc0=_0x49ba80['newRange'];null==_0x44b77e&&null==_0x260fc0||_0x44b77e&&_0x260fc0&&_0x44b77e['isEqual'](_0x260fc0)?this['_touchedMarkers']['delete'](_0x49ba80['name']):_0x44c147['userId']=_0x12bdb2;}['_handleRootOperation'](_0x1c7cd1,_0x3753de){this['_diffRoots']['has'](_0x1c7cd1['rootName'])?this['_diffRoots']['get'](_0x1c7cd1['rootName'])['_isAttached']=_0x1c7cd1['isAdd']:(this['_diffRoots']['set'](_0x1c7cd1['rootName'],N(_0x1c7cd1['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1c7cd1['rootName'],{}),_0x3753de&&this['_idsRoots']['set'](_0x1c7cd1['rootName'],N(_0x1c7cd1['rootName'],!0x0)));const _0x44db32=null===_0x1c7cd1['_authorId']?null:_0x1c7cd1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe71983=this['_touchedRoots']['get'](_0x1c7cd1['rootName']);_0xe71983&&_0xe71983['userId']===_0x44db32?this['_touchedRoots']['delete'](_0x1c7cd1['rootName']):this['_touchedRoots']['set'](_0x1c7cd1['rootName'],{'userId':_0x44db32,'isAttached':_0x1c7cd1['isAdd']});}['_handleRootAttributeOperation'](_0x13110b){const _0x4d8beb=this['_diffRootsAttributes']['get'](_0x13110b['root']['rootName']);null===_0x13110b['newValue']?delete _0x4d8beb[_0x13110b['key']]:_0x4d8beb[_0x13110b['key']]=_0x13110b['newValue'];}}function x(_0x4d9718){const _0x5683fe=N(_0x4d9718['rootName'],_0x4d9718['isAttached']());for(const _0x35f50b of _0x4d9718['getChildren']()){const _0x422562=_0x35f50b['_clone'](!0x0);_0x5683fe['_appendChild'](_0x422562);}return _0x5683fe;}function N(_0x9d21ec,_0x44f517=!0x0){const _0x2075d3=new _0x4acc47();return _0x2075d3['rootName']=_0x9d21ec,_0x2075d3['_isAttached']=_0x44f517,_0x2075d3['isAttached']=()=>_0x2075d3['_isAttached'],_0x2075d3;}function P(_0x50834a,_0x32e337,_0x398c9a){const _0x56e2d4='elementEnd'==_0x50834a['type']?_0x398c9a['createPositionAt'](_0x50834a['item'],'end'):_0x398c9a['createPositionBefore'](_0x50834a['item']);return _0x398c9a['createPositionFromPath'](_0x32e337,_0x56e2d4['path'],_0x56e2d4['stickiness']);}function V(_0x150d0b,_0x25a4e3,_0x496da0){const _0x24387d='elementStart'==_0x150d0b['type']?_0x496da0['createPositionAt'](_0x150d0b['item'],0x0):_0x496da0['createPositionAfter'](_0x150d0b['item']);return _0x496da0['createPositionFromPath'](_0x25a4e3,_0x24387d['path'],_0x24387d['stickiness']);}class me extends/* #__PURE__ -- @preserve */
25
- _0x3e4178(_0x2fbdbb){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x9a4878,_0x7c7478){super(_0x9a4878),this['focusTracker']=new _0x5e9135(),this['keystrokes']=new _0x2dfea2(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x7c7478),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x509542({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x8e70dc=_0x19ca4d=>_0x19ca4d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x8e70dc),this['keystrokes']['set']('arrowleft',_0x8e70dc),this['keystrokes']['set']('arrowup',_0x8e70dc),this['keystrokes']['set']('arrowdown',_0x8e70dc);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1b9f91){this['revisionNameInputView']['fieldView']['element']['value']=_0x1b9f91['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x376d1a){const _0x3fcfac=new et(this['locale'],ti),_0x481db6=_0x3fcfac['fieldView'];_0x481db6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2d5a4e=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x376d1a&&(_0x2d5a4e+='\x20('+m(this['locale'],'optional')+')'),(_0x3fcfac['label']=_0x2d5a4e,_0x481db6['on']('input',()=>{this['revisionNameInputValue']=_0x481db6['element']['value']['trim']();}),_0x3fcfac);}}class l extends _0x2a9b7d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x148559=this['editor'],_0x84aa07=_0x148559['plugins']['get']('RevisionTracker');_0x148559['ui']['componentFactory']['add']('revisionHistory',_0x9792bc=>{const _0x43f82a=_0x255985(_0x9792bc),_0x5d0b8b=_0x43f82a['panelView']['children'],_0x3b393b=new _0x22e049(_0x9792bc),_0x1a4ebd=new _0x57cc36(_0x9792bc),_0x2c1994=new _0x4eab8d(_0x9792bc),_0x4925e0=new _0x57cc36(_0x9792bc),_0x964ce4=new _0x4eab8d(_0x9792bc);return _0x43f82a['bind']('isEnabled')['to'](_0x84aa07,'isReady',_0x84aa07,'isEnabled',_0x148559,'isReadOnly',(_0x108d78,_0x329265,_0x22b009)=>_0x108d78&&_0x329265&&!_0x22b009),_0x43f82a['buttonView']['set']({'icon':_0x1c8430,'label':m(_0x9792bc,'Revision\x20history'),'tooltip':!0x0}),_0x2c1994['set']({'label':m(_0x9792bc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2c1994['bind']('isEnabled')['to'](_0x84aa07,'isReady',_0x84aa07,'isEnabled',_0x148559,'isReadOnly',(_0x3b8e81,_0x36c952,_0x5e15df)=>_0x3b8e81&&_0x36c952&&!_0x5e15df),_0x2c1994['on']('execute',()=>this['_showDialog']()),_0x964ce4['set']({'label':m(_0x9792bc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x964ce4['bind']('isEnabled')['to'](_0x84aa07,'isReady',_0x148559,'isReadOnly',(_0x3c2b96,_0x1339db)=>_0x3c2b96&&!_0x1339db),_0x964ce4['on']('execute',()=>{_0x148559['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x43f82a['isOpen']=!0x1,_0x148559['editing']['view']['focus']();}),_0x1a4ebd['children']['add'](_0x2c1994),_0x4925e0['children']['add'](_0x964ce4),_0x3b393b['role']='menu',_0x3b393b['items']['addMany']([_0x1a4ebd,_0x4925e0]),_0x5d0b8b['add'](_0x3b393b),_0x43f82a;}),_0x148559['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x57b65d=this['editor'],_0x1a6cf6=_0x57b65d['locale'],_0x373d99=new _0x1f9121(_0x1a6cf6),_0xd964af=new _0x27fd85(_0x1a6cf6);_0x373d99['buttonView']['set']({'icon':_0x1c8430,'label':m(_0x1a6cf6,'Revision\x20history')});const _0x5a0a6b=new _0x3b1214(_0x1a6cf6,_0x373d99),_0x3ad6cc=new _0x1c5f84(_0x1a6cf6);_0x3ad6cc['set']({'label':m(_0x1a6cf6,'Save\x20current\x20revision')}),_0x3ad6cc['delegate']('execute')['to'](_0x373d99),_0x3ad6cc['on']('execute',()=>{this['_showDialog']();}),_0x5a0a6b['children']['add'](_0x3ad6cc),_0xd964af['items']['add'](_0x5a0a6b);const _0x58fabf=new _0x3b1214(_0x1a6cf6,_0x373d99),_0x44c41f=new _0x1c5f84(_0x1a6cf6);return _0x44c41f['set']({'label':m(_0x1a6cf6,'Open\x20revision\x20history')}),_0x44c41f['delegate']('execute')['to'](_0x373d99),_0x44c41f['on']('execute',()=>{_0x57b65d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x58fabf['children']['add'](_0x44c41f),_0xd964af['items']['add'](_0x58fabf),_0x373d99['panelView']['children']['add'](_0xd964af),_0x373d99;}['_showDialog'](){const _0x381561=this['editor'],_0x59199d=_0x381561['locale'],_0x24e27d=_0x381561['plugins']['get']('Dialog'),_0x486700=_0x381561['plugins']['get']('RevisionTracker');function _0x4e0d69(_0x12641c){_0x381561['config']['get']('revisionHistory.requireRevisionName')&&''===_0x12641c['revisionName']?_0x12641c['revisionNameInputView']['errorText']=m(_0x59199d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x381561['plugins']['get'](h)['saveRevision']({'name':_0x12641c['revisionName']}),_0x24e27d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4e0d69(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x24e27d['show']({'id':'revisionSave','title':m(_0x59199d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x381561['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x24e27d['hide']()},{'label':m(_0x381561['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x50b2a9){_0x50b2a9['bind']('isEnabled')['to'](_0x486700,'isReady',_0x486700,'isEnabled',_0x381561,'isReadOnly',(_0x5312c4,_0x21938a,_0x143f11)=>_0x5312c4&&_0x21938a&&!_0x143f11);},'onExecute':()=>_0x4e0d69(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2a220b=this['editor'],_0x12d551=_0x2a220b['locale'];this['_saveRevisionFormView']=new me(_0x12d551,_0x2a220b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2fbdbb{['changeId'];['_model'];constructor(_0x4ae861,_0x148d54){super(_0x4ae861),this['_model']=_0x148d54,this['changeId']=_0x148d54['id'];const _0x453686=this['bindTemplate'],_0xdf6c73=m(_0x4ae861,_0x148d54['data']['isSuggestion']?'Suggested\x20by':'add'==_0x148d54['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x148d54['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x453686['to']('type',_0x18d24a=>'ck-revision-change__'+_0x18d24a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xdf6c73}]},{'text':'\x20'+_0x148d54['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
- _0xd36abb(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x169454){super(),this['id']=_0x169454['id']||_0x422234(),this['author']=_0x169454['author'],this['type']=_0x169454['type'],this['data']=_0x169454['data']||{},this['rootName']=_0x169454['rootName'],this['set']('createdAt',_0x169454['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x534f5b,_0x2aae3e){this['newRevisionId']=_0x534f5b,this['oldRevisionId']=_0x2aae3e,this['changes']=new _0xb670b4();}['_setChanges'](_0x292958){for(const _0x4282da of _0x292958)this['changes']['add'](_0x4282da);}}class u extends _0x2a9b7d{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x58b4bf,_0x5348c1,S,$];}constructor(_0x2ff834){super(_0x2ff834),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x5c1bb7,_0x22c8a7,_0x38f206)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x43d0c3=>{for(const _0x18b023 of this['editor']['editing']['view']['document']['roots'])_0x38f206?_0x43d0c3['removeClass']('ck-editor__editable__overlay',_0x18b023):_0x43d0c3['addClass']('ck-editor__editable__overlay',_0x18b023);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5086ae=>null!==_0x5086ae),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xd0ce6e,_0x112427,_0x4ac330)=>_0xd0ce6e&&_0x4ac330?_0x112427['changes']['getIndex'](_0x4ac330):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x410846,_0xe7052c)=>_0x410846?_0xe7052c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5348c1);}['init'](){const _0x6f7d10=this['editor'],_0x471348=new rt(_0x6f7d10,{'direction':'backward'}),_0x10952e=new rt(_0x6f7d10,{'direction':'forward'});(_0x6f7d10['commands']['add']('showPreviousChange',_0x471348),_0x6f7d10['commands']['add']('showNextChange',_0x10952e),_0x6f7d10['commands']['add']('restoreRevision',new nt(_0x6f7d10)),this['on']('change:numberOfChanges',()=>{_0x471348['refresh'](),_0x10952e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x6f7d10['enableReadOnlyMode']('revision-viewer'),_0x6f7d10['plugins']['has']('WidgetToolbarRepository'))&&_0x6f7d10['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1c3e5f){return await this['_utils']['loadRevisionData'](_0x1c3e5f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1c3e5f);}async['getRevisionRootsAttributes'](_0x305f21){return await this['_utils']['loadRevisionData'](_0x305f21,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x305f21);}async['compare'](_0x49e974,_0x162ad1,_0x1fd60b=!0x1){if(!this['isEnabled'])return;const _0x577973=this['diff'],_0xbcfbe0=this['repository'],_0x52e907='string'==typeof _0x49e974?_0xbcfbe0['getRevision'](_0x49e974):_0x49e974,_0x51a74c='string'==typeof _0x162ad1?_0xbcfbe0['getRevision'](_0x162ad1):_0x162ad1,_0x2ef11e=_0x52e907['id'],_0x7f7808=_0x51a74c?_0x51a74c['id']:null;if(!_0x1fd60b&&this['diff']&&this['diff']['newRevisionId']===_0x2ef11e&&this['diff']['oldRevisionId']===_0x7f7808)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x2ef11e,_0x7f7808);const _0x2f1b3d=this['_getRevisionsRange'](_0x52e907,_0x51a74c,!0x0)['map'](_0x2afa0d=>this['_utils']['loadRevisionData'](_0x2afa0d,this['adapter']));return _0x2f1b3d['push'](new Promise(_0x347de6=>{setTimeout(_0x347de6,0x14);})),Promise['all'](_0x2f1b3d)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x465f85=this['_getDiff'](_0x2ef11e,_0x7f7808);for(const _0x1f7f22 of _0x465f85['changes'])this['_changeIdToChange']['set'](_0x1f7f22['id'],_0x1f7f22);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4c3f2d=>{for(const _0x44f931 of this['editor']['model']['document']['getRootNames']())_0x4c3f2d['detachRoot'](_0x44f931);for(const _0x548d5d of Object['keys'](_0x465f85['model'])){const _0x702b8=_0x4c3f2d['addRoot'](_0x548d5d);for(const _0x51690b of Object['keys'](_0x465f85['attributes'][_0x548d5d]))_0x4c3f2d['setAttribute'](_0x51690b,_0x465f85['attributes'][_0x548d5d][_0x51690b],_0x702b8);_0x4c3f2d['insert'](_0x465f85['model'][_0x548d5d],_0x702b8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x465f85['changes'])),this['isReady']=!0x0;})['catch'](_0x21f4f1=>{console['error'](_0x21f4f1),this['_cleanUp'](),_0x577973&&(this['diff']=_0x577973),this['isReady']=!0x0;});}['addRevisionData'](_0x405133,_0xb71365){const _0x25c331=this['repository']['createRevision'](_0x405133);return _0x25c331['on']('_update',(_0x27ae7e,_0x252ea3,_0x25c67d)=>_0xb71365(_0x252ea3,_0x25c67d,_0x25c331)),this['repository']['addRevision'](_0x25c331),_0x25c331;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x24c14c=>{for(const _0x41ea26 of this['editor']['model']['document']['getRootNames']())_0x24c14c['detachRoot'](_0x41ea26);});}['_sortAndFilterDiffChanges'](_0x18c979){const _0x4f85fc=[],_0x4922bb=new Map();for(const _0x51e272 of this['editor']['model']['document']['getRootNames']()){const _0x411b2b=this['editor']['editing']['view']['getDomRoot'](_0x51e272);if(!_0x411b2b)continue;const _0x55dd24=_0x411b2b['getClientRects']()['item'](0x0);_0x55dd24&&(_0x4f85fc['push'](_0x51e272),_0x4922bb['set'](_0x51e272,_0x55dd24));}return _0x4f85fc['sort']((_0x1c2565,_0x56092f)=>{const _0x3fc30f=_0x4922bb['get'](_0x1c2565),_0x1f5294=_0x4922bb['get'](_0x56092f);return _0x3fc30f['y']-_0x1f5294['y']||_0x3fc30f['x']-_0x1f5294['x'];}),(_0x18c979=_0x18c979['filter'](_0x3e014d=>_0x4f85fc['includes'](_0x3e014d['rootName'])))['sort']((_0x3beb3f,_0x3a0480)=>_0x4f85fc['indexOf'](_0x3beb3f['rootName'])-_0x4f85fc['indexOf'](_0x3a0480['rootName'])),_0x18c979;}['_makeTape'](_0x3f72aa){const _0x3e3641=Array['from'](_0x3f72aa['markers'])['filter'](([_0x2e5308,_0x4e2a78])=>_0x2e5308['startsWith']('revision:')&&!_0x4e2a78['isCollapsed']),_0x58fa44=Array['from'](this['editor']['model']['createRangeIn'](_0x3f72aa)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3e3641['length'])for(const _0x57d8d7 of _0x58fa44){const [_0x19b374,_0x38713e]=_0x3e3641[0x0],[,_0x43c58f,_0x4290ec]=_0x19b374['split'](':');if(_0x38713e['end']['isEqual'](_0x57d8d7['nextPosition'])&&_0x3e3641['shift'](),(_0x57d8d7['previousPosition']['isEqual'](_0x38713e['start'])||_0x57d8d7['previousPosition']['isAfter'](_0x38713e['start']))&&('insertion'==_0x43c58f?_0x57d8d7['isAdded']={'userId':_0x4290ec}:'deletion'==_0x43c58f&&(_0x57d8d7['isRemoved']={'userId':_0x4290ec})),0x0==_0x3e3641['length'])break;}return _0x58fa44;}['_refreshStartEndIndex'](_0xe6a8b6){const _0x5436d5=new Map();for(let _0x4aca1a=0x0;_0x4aca1a<_0xe6a8b6['length'];_0x4aca1a++)'text'===_0xe6a8b6[_0x4aca1a]['type']?(_0xe6a8b6[_0x4aca1a]['item']['startIndex']=_0x4aca1a,_0xe6a8b6[_0x4aca1a]['item']['endIndex']=_0x4aca1a):('elementStart'===_0xe6a8b6[_0x4aca1a]['type']?_0xe6a8b6[_0x4aca1a]['item']['startIndex']=_0x4aca1a:'elementEnd'===_0xe6a8b6[_0x4aca1a]['type']&&(_0xe6a8b6[_0x4aca1a]['item']['endIndex']=_0x4aca1a),_0x5436d5['set'](_0xe6a8b6[_0x4aca1a]['id'],_0x4aca1a));for(const _0x25ad33 of _0x5436d5['values']())'elementStart'===_0xe6a8b6[_0x25ad33]['type']?_0xe6a8b6[_0x25ad33]['item']['endIndex']=_0x5436d5['get'](_0xe6a8b6[_0x25ad33]['pairId']):'elementEnd'===_0xe6a8b6[_0x25ad33]['type']&&(_0xe6a8b6[_0x25ad33]['item']['startIndex']=_0x5436d5['get'](_0xe6a8b6[_0x25ad33]['pairId']));}['_processTape'](_0x9d3052){for(let _0x3936f6=0x0;_0x3936f6<_0x9d3052['length'];_0x3936f6++){if('elementStart'===_0x9d3052[_0x3936f6]['type'])_0x9d3052[_0x3936f6]['item']['startIndex']=_0x3936f6;else{if('elementEnd'===_0x9d3052[_0x3936f6]['type']){_0x9d3052[_0x3936f6]['item']['endIndex']=_0x3936f6;const _0x168fa6=_0x9d3052[_0x3936f6]['item']['startIndex'];_0x9d3052[_0x168fa6]['pairId']=_0x9d3052[_0x3936f6]['id'],_0x9d3052[_0x3936f6]['pairId']=_0x9d3052[_0x168fa6]['id'];}else _0x9d3052[_0x3936f6]['item']['startIndex']=_0x3936f6,_0x9d3052[_0x3936f6]['item']['endIndex']=_0x3936f6,_0x9d3052[_0x3936f6]['pairId']=null;}_0x9d3052[_0x3936f6]['markersStart']||(_0x9d3052[_0x3936f6]['markersStart']=[],_0x9d3052[_0x3936f6]['markersEnd']=[]);}}['_markInsertions'](_0x636849,_0x756e53){const _0x15c6be=_0x636849['filter'](_0x1bb75a=>!_0x1bb75a['isAdded']);for(let _0xc33882=0x0;_0xc33882<_0x756e53['length'];_0xc33882++)_0x756e53[_0xc33882]['isAdded']&&(_0x15c6be[_0xc33882]['isAdded']=_0x756e53[_0xc33882]['isAdded']);}['_getDiff'](_0x15ef57,_0x4978ec=null){const _0x18f7b6=this['repository']['getRevision'](_0x15ef57),_0x145513=_0x4978ec?this['repository']['getRevision'](_0x4978ec):null,_0x1a00ea=this['_getRevisionsRange'](_0x18f7b6,_0x145513),_0x5e5078=_0x1a00ea[_0x1a00ea['length']-0x1],_0x96c57c=new Map(),_0x28c3db={'model':{},'attributes':{},'changes':[]},_0x31b669=new Set(),_0x28de15=new Map();for(let _0x3befd0=_0x1a00ea['length']-0x1;_0x3befd0>=0x0;_0x3befd0--){const _0x3a5f9e=_0x1a00ea[_0x3befd0];for(const _0x3d231c of Object['keys'](_0x3a5f9e['diffData']))if(_0x3a5f9e['diffData'][_0x3d231c]['attachChange']){const _0x5812ca=_0x3a5f9e['diffData'][_0x3d231c]['attachChange'];_0x5812ca['isAttached']?(_0x31b669['add'](_0x3d231c),_0x28de15['has'](_0x3d231c)&&_0x28de15['get'](_0x3d231c)['userId']==_0x5812ca['userId']?_0x28de15['delete'](_0x3d231c):_0x28de15['set'](_0x3d231c,_0x5812ca)):_0x28de15['has'](_0x3d231c)?(_0x31b669['delete'](_0x3d231c),_0x28de15['delete'](_0x3d231c)):(_0x31b669['add'](_0x3d231c),_0x28de15['set'](_0x3d231c,_0x5812ca));}else _0x31b669['add'](_0x3d231c);}for(const _0x5039c9 of _0x31b669){const _0x3fbbe3=_0x28de15['has'](_0x5039c9)&&!_0x28de15['get'](_0x5039c9)['isAttached'];let _0xd66015=_0x3fbbe3?_0x1a00ea['length']-0x1:0x0;const _0x31f06d=_0x3fbbe3?-0x1:0x1;for(;_0x1a00ea[_0xd66015];){const _0x10fc23=_0x1a00ea[_0xd66015];if(_0x10fc23['diffData'][_0x5039c9]){const _0xbeab10=_0x3fbbe3?_0x10fc23['diffData'][_0x5039c9]['attributesBefore']:_0x10fc23['diffData'][_0x5039c9]['attributesAfter'];_0x28c3db['attributes'][_0x5039c9]=_0xbeab10?_0x4dcfba(_0xbeab10):{};break;}_0xd66015+=_0x31f06d;}}for(const _0x1aa856 of _0x1a00ea){_0x1aa856['model']={};for(const _0x2e6561 of _0x1aa856['authors'])_0x96c57c['set'](_0x2e6561['id'],_0x2e6561);for(const _0xa0741 of _0x31b669){const _0x31e17d=_0x1aa856['diffData'][_0xa0741]?_0x1aa856['diffData'][_0xa0741]['insertions']:'[]',_0x227101=_0x1aa856['diffData'][_0xa0741]?_0x1aa856['diffData'][_0xa0741]['deletions']:'[]';_0x1aa856['model'][_0xa0741]={'insertions':this['_utils']['_makeModelFromViewString'](_0x31e17d),'deletions':this['_utils']['_makeModelFromViewString'](_0x227101)};}}for(const _0x507da1 of _0x31b669){let _0x402871=null,_0x89e456=0x0;const _0x8b043f=new Map(Array['from'](_0x18f7b6['model'][_0x507da1]['insertions']['markers'])['filter'](([_0x5c5279])=>!_0x5c5279['startsWith']('revision:')));let _0x1c37a2=0x0;for(const _0xb38810 of _0x1a00ea){const _0x1a5f72=this['_makeTape'](_0xb38810['model'][_0x507da1]['insertions']);_0xb38810==_0x18f7b6?(_0x402871=_0x1a5f72,_0x89e456=_0x402871['length'],_0x402871['forEach'](_0x56f4ea=>{_0x56f4ea['id']=_0x1c37a2++;}),this['_processTape'](_0x402871)):this['_markInsertions'](_0x402871,_0x1a5f72);const _0xda9ca7=_0x402871['filter'](_0x1afa3a=>!_0x1afa3a['isAdded'])['map'](_0x582d11=>_0x582d11['id']);let _0x4bad14=0x0;const _0x33ddef=this['_makeTape'](_0xb38810['model'][_0x507da1]['deletions']);_0x33ddef['forEach'](_0x18141b=>{_0x18141b['isRemoved']?_0x18141b['id']=_0x89e456++:_0x18141b['id']=_0xda9ca7[_0x4bad14++];}),this['_processTape'](_0x33ddef),this['_setDistance'](_0x402871,'isAdded'),this['_setDistance'](_0x33ddef,'isRemoved'),_0xb38810==_0x18f7b6&&this['_markMarkers'](_0x402871,_0x8b043f),_0x402871=this['_joinTapes'](_0x402871,_0x33ddef),this['_refreshStartEndIndex'](_0x402871),this['_setDistance'](_0x402871,'isRemoved');}_0x402871=_0x402871['filter'](_0xf3d65c=>!(_0xf3d65c['isAdded']&&_0xf3d65c['isRemoved']));const _0x212252=new Map(_0x5e5078['model'][_0x507da1]['deletions']['markers']),_0x136a20=new Set(_0x8b043f['keys']());for(const _0x4c8d21 of _0x212252['keys']())_0x136a20['delete'](_0x4c8d21);this['_markSuggestions'](_0x402871,_0x136a20),this['_fixObsoleteTags'](_0x402871),_0x402871=this['_removeMissingPairs'](_0x402871),_0x402871=this['_markMismatchedRemovedTags'](_0x402871),_0x402871=this['_removeUnsupportedChanges'](_0x402871);const {root:_0x495f9a,changes:_0x407241}=this['_makeModelFromTape'](_0x402871,_0x96c57c,_0x507da1);_0x28c3db['model'][_0x507da1]=_0x495f9a;const _0x4f4ae4=_0x28de15['get'](_0x507da1);if(_0x4f4ae4){const _0x187959=_0x96c57c['get'](_0x4f4ae4['userId']),_0x4724b4=new G({'author':_0x187959,'type':_0x4f4ae4['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x507da1});_0x407241['unshift'](_0x4724b4),_0x28c3db['attributes'][_0x507da1]['revisionHistoryAttachChange']=_0x4724b4['id'];}_0x28c3db['changes']=_0x28c3db['changes']['concat'](_0x407241);}return _0x28c3db;}['_markMarkers'](_0x356b04,_0x1b04fb){for(let _0x285b34=0x0;_0x285b34<_0x356b04['length'];_0x285b34++)for(const [_0x362423,_0x1a696e]of _0x1b04fb)!_0x1a696e['isCollapsed']&&_0x1a696e['start']['isEqual'](_0x356b04[_0x285b34]['previousPosition'])&&_0x356b04[_0x285b34]['markersStart']['push'](_0x362423),_0x1a696e['end']['isEqual'](_0x356b04[_0x285b34]['nextPosition'])&&_0x356b04[_0x285b34]['markersEnd']['push'](_0x362423);}['_joinTapes'](_0x2416d5,_0x23561d){let _0x31144d=[],_0x3cef42=0x0,_0x48e47a=0x0;for(;_0x3cef42<_0x2416d5['length']||_0x48e47a<_0x23561d['length'];){const _0x4d2d2e=_0x2416d5[_0x3cef42]||{},_0x360691=_0x23561d[_0x48e47a]||{};if(_0x4d2d2e['id']==_0x360691['id'])_0x3cef42++,_0x48e47a++,_0x31144d['push'](_0x4d2d2e);else{if(_0x360691['isRemoved']&&_0x4d2d2e['isAdded']){const {commonTape:_0x1e415b,iEnd:_0x5cf1b0,jEnd:_0x573fb3}=this['_threeWayMerge'](_0x2416d5,_0x3cef42,_0x23561d,_0x48e47a);_0x31144d=_0x31144d['concat'](_0x1e415b),_0x3cef42=_0x5cf1b0,_0x48e47a=_0x573fb3;}else _0x360691['isRemoved']?(_0x48e47a++,_0x31144d['push'](_0x360691)):(_0x3cef42++,_0x31144d['push'](_0x4d2d2e));}}return _0x31144d;}['_markSuggestions'](_0x2de346,_0x3603ba){const _0x318668=[];for(let _0x1fbab2=0x0;_0x1fbab2<_0x2de346['length'];_0x1fbab2++){for(let _0x55d132=0x0;_0x55d132<_0x2de346[_0x1fbab2]['markersStart']['length'];_0x55d132++){const _0x407770=_0x2de346[_0x1fbab2]['markersStart'][_0x55d132];if(!_0x3603ba['has'](_0x407770))continue;const {group:_0x1acec7,type:_0x2065f7,authorId:_0x303cfc}=_0x34425a(_0x407770);'revision-suggestion'!=_0x1acec7||'insertion'!=_0x2065f7&&'deletion'!=_0x2065f7||(_0x318668['unshift']({'type':_0x2065f7,'name':_0x407770,'userId':_0x303cfc}),_0x2de346[_0x1fbab2]['markersStart']['splice'](_0x55d132,0x1),_0x55d132--);}_0x4dc872(_0x2de346[_0x1fbab2]);for(let _0x347d31=0x0;_0x347d31<_0x2de346[_0x1fbab2]['markersEnd']['length'];_0x347d31++){const _0x159479=_0x2de346[_0x1fbab2]['markersEnd'][_0x347d31];if(!_0x3603ba['has'](_0x159479))continue;const {group:_0x3e2835,type:_0x8964f7}=_0x34425a(_0x159479);if('revision-suggestion'!=_0x3e2835||'insertion'!=_0x8964f7&&'deletion'!=_0x8964f7)continue;_0x2de346[_0x1fbab2]['markersEnd']['splice'](_0x347d31,0x1),_0x347d31--;const _0x4f27fe=_0x318668['findIndex'](_0x406199=>_0x406199['name']==_0x159479);_0x4f27fe>-0x1&&_0x318668['splice'](_0x4f27fe,0x1);}}function _0x34425a(_0x428f98){const _0x4dac58=_0x428f98['split'](':');return{'group':_0x4dac58[0x0],'type':_0x4dac58[0x1],'subType':_0x4dac58['length']>=0x5?_0x4dac58[0x2]:null,'id':_0x4dac58['length']<0x5?_0x4dac58[0x2]:_0x4dac58[0x3],'authorId':_0x4dac58['length']<0x5?_0x4dac58[0x3]:_0x4dac58[0x4],'markerCount':0x6==_0x4dac58['length']?_0x4dac58[0x5]:null};}function _0x4dc872(_0x43529c){for(let _0x39c1c4=0x0;_0x39c1c4<_0x318668['length'];_0x39c1c4++){if(_0x43529c['isAdded']&&'insertion'==_0x318668[_0x39c1c4]['type']&&_0x43529c['isAdded']['userId']==_0x318668[_0x39c1c4]['userId'])return _0x43529c['isAddSuggestion']=_0x318668[_0x39c1c4],void delete _0x43529c['isAdded'];if(!_0x43529c['isAdded']&&!_0x43529c['isRemoved']&&'deletion'==_0x318668[_0x39c1c4]['type'])return void(_0x43529c['isRemoveSuggestion']=_0x318668[_0x39c1c4]);}}}['_setDistance'](_0x28116e,_0x317305){let _0x5f4c7f=0x0,_0x559bb0=!0x1;const _0x8389bc=new Map();for(const _0x4ac269 of _0x28116e)_0x4ac269[_0x317305]?_0x559bb0&&(_0x5f4c7f++,_0x559bb0=!0x1):(_0x5f4c7f++,_0x559bb0=!0x0),_0x8389bc['set'](_0x4ac269['id'],_0x5f4c7f);for(let _0x3adbc3=0x0;_0x3adbc3<_0x28116e['length'];_0x3adbc3++){if('isRemoved'==_0x317305&&_0x28116e[_0x3adbc3]['isAdded']||'isAdded'==_0x317305&&_0x28116e[_0x3adbc3]['isRemoved'])continue;if('text'==_0x28116e[_0x3adbc3]['type']){_0x28116e[_0x3adbc3]['distance']=0x0;continue;}const _0x10b0b7=_0x8389bc['get'](_0x28116e[_0x3adbc3]['pairId']),_0x48edec=_0x8389bc['get'](_0x28116e[_0x3adbc3]['id']);_0x28116e[_0x3adbc3]['distance']=_0x10b0b7-_0x48edec;}}['_getRevisionsRange'](_0x5cc287,_0x3edb5e,_0x18a64d=!0x1){const _0x10844a=[];let _0x5d075f=this['repository']['getIndex'](_0x5cc287),_0x58577b=this['repository']['getIndex'](_0x3edb5e);for(-0x1==_0x58577b&&(_0x58577b=this['repository']['_revisions']['length'],_0x18a64d=!0x1);_0x5d075f<_0x58577b;)_0x10844a['push'](this['repository']['getRevision'](_0x5d075f)),_0x5d075f++;return _0x18a64d&&_0x10844a['push'](this['repository']['getRevision'](_0x5d075f)),_0x10844a;}['_threeWayMerge'](_0x2a3b86,_0x3ee16d,_0xa560ff,_0x3ba2a0){const _0x41c63d=this['editor']['model']['schema'];let _0x2afd76=_0x3ee16d;for(;_0x2a3b86[_0x2afd76]&&_0x2a3b86[_0x2afd76]['isAdded'];)_0x2afd76++;let _0x2f1cf5=_0x3ba2a0;for(;_0xa560ff[_0x2f1cf5]&&_0xa560ff[_0x2f1cf5]['isRemoved'];)_0x2f1cf5++;_0x3a0d31(_0x2a3b86,_0x3ee16d,_0x2afd76),_0x3a0d31(_0xa560ff,_0x3ba2a0,_0x2f1cf5);const _0x6ed19d=_0xa560ff['slice'](_0x3ba2a0,_0x2f1cf5)['concat'](_0x2a3b86['slice'](_0x3ee16d,_0x2afd76));return _0x6ed19d['sort']((_0x4be819,_0x47d2d4)=>_0x4be819['side']!=_0x47d2d4['side']?_0x4be819['side']-_0x47d2d4['side']:_0x4be819['level']!=_0x47d2d4['level']?_0x4be819['level']-_0x47d2d4['level']:_0x4be819['distance']!=_0x47d2d4['distance']?_0x47d2d4['distance']-_0x4be819['distance']:!!_0x4be819['isAdded']!=!!_0x47d2d4['isAdded']?-0x1==_0x4be819['side']||0x0==_0x4be819['side']?_0x4be819['isAdded']?-0x1:0x1:_0x4be819['isAdded']?0x1:-0x1:_0x4be819['index']-_0x47d2d4['index']),{'commonTape':_0x6ed19d,'iEnd':_0x2afd76,'jEnd':_0x2f1cf5};function _0x3a0d31(_0x3735ed,_0x2d90a0,_0x4590cf){let _0x484d99=-0x1,_0x396609=Number['POSITIVE_INFINITY'],_0x35d7a9=!0x0;for(let _0x4a4258=_0x2d90a0;_0x4a4258<_0x4590cf;_0x4a4258++)if(_0x41c63d['isInline'](_0x3735ed[_0x4a4258]['item'])||(_0x35d7a9=!0x1),_0x3735ed[_0x4a4258]['item']['startIndex']<_0x2d90a0&&(_0x484d99=_0x4a4258),_0x3735ed[_0x4a4258]['item']['endIndex']>=_0x4590cf){_0x396609=_0x4a4258;break;}_0x35d7a9&&(_0x484d99=_0x4590cf-0x1);for(let _0x5da616=_0x2d90a0;_0x5da616<_0x4590cf;_0x5da616++)_0x3735ed[_0x5da616]['side']=_0x5da616<=_0x484d99?-0x1:_0x5da616<_0x396609?0x0:0x1,_0x3735ed[_0x5da616]['index']=_0x5da616;let _0x4a1246=0x0;for(let _0x229c55=_0x2d90a0;_0x229c55<=_0x484d99;_0x229c55++)0x0==_0x3735ed[_0x229c55]['distance']?_0x3735ed[_0x229c55]['level']=_0x4a1246:(_0x4a1246++,_0x3735ed[_0x229c55]['level']=_0x4a1246,_0x4a1246++);for(let _0x40a642=_0x2d90a0;_0x40a642<_0x4590cf;_0x40a642++)0x0==_0x3735ed[_0x40a642]['side']&&(_0x3735ed[_0x40a642]['level']=_0x4a1246);_0x4a1246=0x0;for(let _0x171ccb=_0x4590cf-0x1;_0x171ccb>=_0x396609;_0x171ccb--)0x0==_0x3735ed[_0x171ccb]['distance']?_0x3735ed[_0x171ccb]['level']=_0x4a1246:(_0x4a1246--,_0x3735ed[_0x171ccb]['level']=_0x4a1246,_0x4a1246--);}}['_fixObsoleteTags'](_0x1dcf26){const _0xd48c4b=new Map(),_0x48b80c=this['editor']['model']['schema'];for(let _0x342ccc=0x1;_0x342ccc<_0x1dcf26['length'];_0x342ccc++){let _0x51b522,_0x55f377,_0x366802;const _0x597394=_0x1dcf26[_0x342ccc],_0x30d092=_0x1dcf26[_0x342ccc-0x1];if('text'==_0x597394['type'])continue;if(_0x597394['type']!=_0x30d092['type'])continue;if(!_0x48b80c['isBlock'](_0x30d092['item'])||_0x48b80c['isLimit'](_0x30d092['item']))continue;if(!_0x48b80c['isBlock'](_0x597394['item'])||_0x48b80c['isLimit'](_0x597394['item']))continue;if((_0x1dcf26[_0x342ccc]['isAdded']||_0x1dcf26[_0x342ccc]['isAddSuggestion'])&&_0x1dcf26[_0x342ccc-0x1]['isRemoved'])_0x51b522=_0x1dcf26[_0x342ccc],_0x55f377=_0x1dcf26[_0x342ccc-0x1],_0x366802=_0x342ccc-0x1;else{if(!_0x1dcf26[_0x342ccc]['isRemoved']||!_0x1dcf26[_0x342ccc-0x1]['isAdded']&&!_0x1dcf26[_0x342ccc-0x1]['isAddSuggestion'])continue;_0x51b522=_0x1dcf26[_0x342ccc-0x1],_0x55f377=_0x1dcf26[_0x342ccc],_0x366802=_0x342ccc;}const _0x5d194f=_0x51b522['level']==_0x55f377['level'],_0x53890c=Math['abs'](_0x51b522['level'])<Math['abs'](_0x55f377['level'])&&0x0==_0x55f377['distance'];(_0x5d194f||_0x53890c)&&(_0xd48c4b['set'](_0x55f377['id'],_0x51b522['id']),_0x1dcf26['splice'](_0x366802,0x1),_0x342ccc--,_0x51b522['isAdded']=!0x1);}for(let _0x19a0fd=0x0;_0x19a0fd<_0x1dcf26['length'];_0x19a0fd++)_0xd48c4b['has'](_0x1dcf26[_0x19a0fd]['pairId'])&&(_0x1dcf26[_0x19a0fd]['pairId']=_0xd48c4b['get'](_0x1dcf26[_0x19a0fd]['pairId']));}['_removeMissingPairs'](_0x55017d){const _0x4708e4=new Set(_0x55017d['map'](_0x5f34de=>_0x5f34de['id']));for(let _0x13ba1d=0x0;_0x13ba1d<_0x55017d['length'];_0x13ba1d++)_0x4708e4['has'](_0x55017d[_0x13ba1d]['pairId'])||0x0==_0x55017d[_0x13ba1d]['distance']||(_0x55017d[_0x13ba1d]['isIncorrect']=!0x0);return _0x55017d['filter'](_0x3d8be2=>!_0x3d8be2['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4be8af){const _0x129101=new Set();for(let _0x2aab3d=0x0;_0x2aab3d<_0x4be8af['length'];_0x2aab3d++){if(_0x129101['has'](_0x4be8af[_0x2aab3d]['id'])&&_0x4be8af[_0x2aab3d]['isRemoved']&&(_0x4be8af[_0x2aab3d]['isIncorrect']=!0x0),_0x4be8af[_0x2aab3d]['isIncorrect'])continue;if(0x0==_0x4be8af[_0x2aab3d]['distance'])continue;if('elementStart'!=_0x4be8af[_0x2aab3d]['type'])continue;if(null==_0x4be8af[_0x2aab3d]['pairId'])continue;let _0x3a059c=_0x2aab3d+0x1,_0x1e0e22=0x0;for(;_0x4be8af[_0x3a059c]['id']!=_0x4be8af[_0x2aab3d]['pairId'];)'elementStart'==_0x4be8af[_0x3a059c]['type']?_0x1e0e22++:'elementEnd'==_0x4be8af[_0x3a059c]['type']&&_0x1e0e22--,_0x3a059c++;if(0x0!=_0x1e0e22){if(_0x4be8af[_0x2aab3d]['isRemoved'])_0x4be8af[_0x2aab3d]['isIncorrect']=!0x0;else{for(;_0x3a059c!=_0x2aab3d;)_0x4be8af[_0x3a059c]['isRemoved']&&0x0!=_0x4be8af[_0x3a059c]['distance']&&(_0x4be8af[_0x3a059c]['isIncorrect']=!0x0,_0x129101['add'](_0x4be8af[_0x3a059c]['pairId'])),_0x3a059c--;}}}return _0x4be8af['filter'](_0x22bcac=>!_0x22bcac['isIncorrect']);}['_removeUnsupportedChanges'](_0x3f001e){const _0x4df80f=this['editor']['model']['schema'];for(let _0x215c32=0x0;_0x215c32<_0x3f001e['length'];_0x215c32++){if(!(_0x3f001e[_0x215c32]['isAdded']||_0x3f001e[_0x215c32]['isAddSuggestion']||_0x3f001e[_0x215c32]['isRemoved']||_0x3f001e[_0x215c32]['isRemoveSuggestion']))continue;if(0x0==_0x3f001e[_0x215c32]['distance'])continue;const _0x372d4c=_0x3f001e[_0x215c32]['item'];_0x4df80f['isBlock'](_0x372d4c)||_0x4df80f['isLimit'](_0x372d4c)||(_0x3f001e[_0x215c32]['isAdded']&&delete _0x3f001e[_0x215c32]['isAdded'],_0x3f001e[_0x215c32]['isAddSuggestion']&&delete _0x3f001e[_0x215c32]['isAddSuggestion'],_0x3f001e[_0x215c32]['isRemoveSuggestion']&&delete _0x3f001e[_0x215c32]['isRemoveSuggestion'],_0x3f001e[_0x215c32]['isRemoved']&&(_0x3f001e[_0x215c32]['isIncorrect']=!0x0));}return _0x3f001e['filter'](_0x50b5fd=>!_0x50b5fd['isIncorrect']);}['_makeModelFromTape'](_0x458291,_0xe946e1,_0x1c2fed){const _0x3872bf=new _0x4acc47(),_0x1b540e=[],_0x56d2b8=new Map(),_0x2bf693=this['editor']['model'],_0x1a8fc5=_0x2bf693['schema'],_0x47ced2=[_0x3872bf],_0x428226={},_0x2eddde={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5541e7=null;const _0x351add=[0x0];for(let _0x39e31d=0x0;_0x39e31d<_0x458291['length'];_0x39e31d++)if('elementStart'===_0x458291[_0x39e31d]['type']){_0x458291[_0x39e31d]['previousPosition']=_0x2bf693['createPositionFromPath'](_0x3872bf,_0x351add);const _0x54332d=new _0x514734(_0x458291[_0x39e31d]['item']['name'],_0x458291[_0x39e31d]['item']['getAttributes']());_0x47ced2[0x0]['_appendChild'](_0x54332d),_0x351add['push'](0x0),_0x47ced2['unshift'](_0x54332d),_0x458291[_0x39e31d]['nextPosition']=_0x2bf693['createPositionFromPath'](_0x3872bf,_0x351add);}else'elementEnd'===_0x458291[_0x39e31d]['type']?(_0x47ced2['shift'](),_0x458291[_0x39e31d]['previousPosition']=_0x2bf693['createPositionFromPath'](_0x3872bf,_0x351add),_0x351add['pop'](),_0x351add[_0x351add['length']-0x1]++,_0x458291[_0x39e31d]['nextPosition']=_0x2bf693['createPositionFromPath'](_0x3872bf,_0x351add)):(_0x458291[_0x39e31d]['previousPosition']=_0x2bf693['createPositionFromPath'](_0x3872bf,_0x351add),_0x5541e7?_0x5541e7['_data']+=_0x458291[_0x39e31d]['item']['data']:_0x5541e7=new _0x299020(_0x458291[_0x39e31d]['item']['data'],_0x458291[_0x39e31d]['item']['getAttributes']()),_0x458291[_0x39e31d+0x1]&&'text'===_0x458291[_0x39e31d+0x1]['type']&&_0x5abf12(_0x5541e7,_0x458291[_0x39e31d+0x1]['item'])||(_0x47ced2[0x0]['_appendChild'](_0x5541e7),_0x5541e7=null),_0x351add[_0x351add['length']-0x1]+=_0x458291[_0x39e31d]['item']['offsetSize'],_0x458291[_0x39e31d]['nextPosition']=_0x2bf693['createPositionFromPath'](_0x3872bf,_0x351add));for(let _0x6e672f=0x0;_0x6e672f<_0x458291['length'];_0x6e672f++){const _0x15690d=_0x458291[_0x6e672f]['previousPosition'],_0x64be0e=_0x458291[_0x6e672f]['nextPosition'];for(const _0x30c140 of _0x458291[_0x6e672f]['markersStart'])_0x56d2b8['set'](_0x30c140,{'start':_0x15690d,'end':null});_0x3b3aba('isRemoveSuggestion',_0x6e672f,_0x15690d,_0x64be0e),_0x3b3aba('isAddSuggestion',_0x6e672f,_0x15690d,_0x64be0e),_0x3b3aba('isRemoved',_0x6e672f,_0x15690d,_0x64be0e),_0x3b3aba('isAdded',_0x6e672f,_0x15690d,_0x64be0e);for(const _0x4f7dbf of _0x458291[_0x6e672f]['markersEnd']){const _0x2f008a=_0x56d2b8['get'](_0x4f7dbf);_0x2f008a?_0x2f008a['end']=_0x64be0e:_0x56d2b8['set'](_0x4f7dbf,{'start':_0x64be0e,'end':_0x64be0e});}}for(const [_0x40101f,_0x1d413d]of _0x56d2b8){const _0x3831a4=this['editor']['model']['createRange'](_0x1d413d['start'],_0x1d413d['end']);_0x3872bf['markers']['set'](_0x40101f,_0x3831a4);}return _0x1b540e['sort']((_0xac0f19,_0x236875)=>{const _0x30789c=_0x3872bf['markers']['get']('revision:'+_0xac0f19['id']),_0x103bff=_0x3872bf['markers']['get']('revision:'+_0x236875['id']);return _0x30789c['start']['isBefore'](_0x103bff['start'])?-0x1:_0x30789c['start']['isAfter'](_0x103bff['start'])?0x1:_0x30789c['end']['isBefore'](_0x103bff['end'])?-0x1:_0x30789c['end']['isAfter'](_0x103bff['end'])?0x1:'add'===_0xac0f19['type']?-0x1:0x1;}),{'root':_0x3872bf,'changes':_0x1b540e};function _0x3b3aba(_0x221622,_0x27726e,_0x205c45,_0x38b96b){const _0x40be45=!!_0x458291[_0x27726e][_0x221622],_0x2bce37=_0x40be45?_0x458291[_0x27726e][_0x221622]['userId']:null,_0x41c1ab=_0x27726e===_0x458291['length']-0x1,_0x1ea2cc=_0x2eddde[_0x221622][0x0],_0x4a21a2=_0x1a8fc5['isObject'](_0x458291[_0x27726e]['item']);!_0x428226[_0x221622]&&_0x40be45?_0x428226[_0x221622]={'start':_0x205c45,'tapeItem':_0x458291[_0x27726e],'userId':_0x2bce37,'type':_0x221622}:_0x428226[_0x221622]&&!_0x40be45?(_0x428226[_0x221622]['end']=_0x205c45,_0x40ff05(_0x428226[_0x221622]),_0x428226[_0x221622]=null):_0x428226[_0x221622]&&_0x40be45&&_0x428226[_0x221622]['userId']!==_0x2bce37&&(_0x428226[_0x221622]['end']=_0x205c45,_0x1ea2cc&&_0x1ea2cc['userId']===_0x428226[_0x221622]['userId']||_0x40ff05(_0x428226[_0x221622]),_0x428226[_0x221622]={'start':_0x205c45,'tapeItem':_0x458291[_0x27726e],'userId':_0x2bce37,'type':_0x221622}),_0x428226[_0x221622]&&_0x4a21a2&&('elementStart'!==_0x458291[_0x27726e]['type']||_0x1ea2cc&&_0x1ea2cc['userId']===_0x2bce37||_0x2eddde[_0x221622]['unshift']({'userId':_0x2bce37,'object':_0x458291[_0x27726e]['item'],'change':_0x428226[_0x221622]}),'elementEnd'===_0x458291[_0x27726e]['type']&&_0x1ea2cc&&_0x1ea2cc['object']===_0x458291[_0x27726e]['item']&&(_0x2eddde[_0x221622]['shift'](),_0x428226[_0x221622]=_0x1ea2cc['change'])),_0x428226[_0x221622]&&_0x41c1ab&&(_0x428226[_0x221622]['end']=_0x38b96b,_0x40ff05(_0x428226[_0x221622]),_0x428226[_0x221622]=null);}function _0x40ff05({start:_0x264b95,end:_0x3b71a9,tapeItem:_0x3639b8,userId:_0x1bbef7,type:_0x40d2a7}){const _0x226732=_0x3639b8['item'],_0xe75561=_0x2bf693['schema']['isBlock'](_0x226732)&&!_0x2bf693['schema']['isLimit'](_0x226732),_0x56a990=_0x264b95['nodeAfter']==_0x3b71a9['parent']&&_0x3b71a9['isAtStart'];if(_0xe75561&&_0x56a990)return;const _0x3728e5=_0x2bf693['createRange'](_0x264b95,_0x3b71a9),_0x52d40b=_0xe946e1['get'](_0x1bbef7),_0x653fbe=new G({'author':_0x52d40b,'type':'isAdded'==_0x40d2a7||'isAddSuggestion'==_0x40d2a7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x40d2a7||'isRemoveSuggestion'==_0x40d2a7},'createdAt':new Date(),'rootName':_0x1c2fed});_0x1b540e['push'](_0x653fbe),_0x3872bf['markers']['set']('revision:'+_0x653fbe['id'],_0x3728e5);}function _0x5abf12(_0x39b714,_0x312bcb){const _0x1d51af=_0x39b714['getAttributes'](),_0x560189=_0x312bcb['getAttributes']();for(const _0x4013ff of _0x1d51af){if(_0x4013ff[0x1]!==_0x312bcb['getAttribute'](_0x4013ff[0x0]))return!0x1;_0x560189['next']();}return _0x560189['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xd40e44=>{const _0x177df4=_0xd40e44['markerName']['split'](':')[0x1],_0x53e614=this['_getChangeFromId'](_0x177df4);if(!_0x53e614)return null;const _0xa859bb='add'==_0x53e614['type']?'insertion':'deletion',_0xcdd4ab=['ck-suggestion-marker','ck-suggestion-marker-'+_0xa859bb];return _0x53e614['data']['isSuggestion']&&_0xcdd4ab['push']('ck-suggestion-marker-'+_0xa859bb+'-new'),this['activeChange']==_0x53e614&&_0xcdd4ab['push']('ck-suggestion-marker--active'),{'classes':_0xcdd4ab,'attributes':{'data-change-id':_0x177df4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x25315d=>{_0x25315d['on']('element:pre',(_0x48646e,_0x8c654e,_0x32e5c0)=>{const _0x402aa8=_0x8c654e['viewItem']['getChild'](0x0);if(!_0x402aa8||!_0x402aa8['is']('element','code'))return;if(!_0x32e5c0['consumable']['consume'](_0x402aa8,{'attributes':['vid_start','vid_end']}))return;const _0x3a0248=_0x8c654e['modelRange']['start']['nodeAfter'];_0x32e5c0['writer']['setAttribute']('vid_start',_0x402aa8['getAttribute']('vid_start'),_0x3a0248),_0x32e5c0['writer']['setAttribute']('vid_end',_0x402aa8['getAttribute']('vid_end'),_0x3a0248);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x21539d=>{_0x21539d['on']('element',(_0x147a12,_0x26a8e1,_0x5a7254)=>{if(!_0x5a7254['consumable']['consume'](_0x26a8e1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x26a8e1['modelRange']['isCollapsed'])return;const _0x2ac968=_0x26a8e1['modelRange']['start']['nodeAfter'];_0x2ac968['hasAttribute']('vid_start')||_0x2ac968['hasAttribute']('vid')||(_0x5a7254['writer']['setAttribute']('vid_start',_0x26a8e1['viewItem']['getAttribute']('vid_start'),_0x2ac968),_0x5a7254['writer']['setAttribute']('vid_end',_0x26a8e1['viewItem']['getAttribute']('vid_end'),_0x2ac968));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5783d6=>_0x5783d6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3f00ef,[,_0x366e75])=>{['vid_start','vid_end','vid']['includes'](_0x366e75)&&(_0x3f00ef['return']=!0x0,_0x3f00ef['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x123b7e=>{_0x123b7e['on']('attribute:vid',(_0x204d49,_0xc7370c,_0x1aecd8)=>{if('\x20'!=_0xc7370c['item']['data']||_0xc7370c['item']['parent']['maxOffset']>0x1)return;if(!_0x1aecd8['consumable']['consume'](_0xc7370c['item'],_0x204d49['name']))return;const _0x132e35=_0x1aecd8['writer'],_0x51a4b8=_0x1aecd8['mapper']['toViewRange'](_0xc7370c['range']);_0x132e35['wrap'](_0x51a4b8,_0x132e35['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1af80a){const _0xd91353=_0x1af80a['plugins']['get']('RevisionViewer');return(_0x16f66a,_0x534345,_0x1374a8)=>{const _0x150ee6=_0x534345['markerName']['split'](':')[0x1],_0x2c909b=_0xd91353['_getChangeFromId'](_0x150ee6);if(!_0x2c909b)return null;const _0x270642='add'==_0x2c909b['type']?'split':'merge';if(!_0x1374a8['consumable']['test'](_0x534345['markerRange'],_0x16f66a['name']))return;const _0x28be93=_0x534345['markerRange']['getWalker'](),_0x47b4a4=_0x534345['markerRange']['start'],_0x276ae1=_0x1af80a['model']['schema'];let _0x195429=null,_0x37679b=null,_0x5e1017=!0x1,_0x532ff9=!0x1;for(const _0x5559a7 of _0x28be93){const _0x3c64ee=_0x5559a7['item'];_0x5e1017=_0x5e1017||_0x276ae1['isContent'](_0x3c64ee);const _0x50b279=_0x1374a8['mapper']['toViewElement'](_0x3c64ee);if(_0x50b279&&_0x50b279['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5559a7['type']&&(_0x276ae1['isBlock'](_0x3c64ee)&&!_0x276ae1['isLimit'](_0x3c64ee)&&(_0x3c64ee['nextSibling']||_0x47b4a4['isAtEnd']?_0x195429&&_0x195429['parent']==_0x3c64ee||(_0x195429=_0x3c64ee,_0x2fd5dd(_0x5559a7['previousPosition']),_0x532ff9=!0x0):_0x37679b=_0x37679b||_0x5559a7['previousPosition']));}function _0x2fd5dd(_0x2f5b26){const _0x5b68cc=_0x1374a8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x270642}),_0x248cd1=_0x1374a8['mapper']['toViewPosition'](_0x2f5b26);_0x2c909b['data']['isSuggestion']&&_0x1374a8['writer']['addClass']('ck-suggestion-marker-'+_0x270642+'-new',_0x5b68cc),_0xd91353['activeChange']==_0x2c909b&&_0x1374a8['writer']['addClass']('ck-suggestion-marker--active',_0x5b68cc),_0x1374a8['writer']['insert'](_0x248cd1,_0x5b68cc),_0x1374a8['mapper']['bindElementToMarker'](_0x5b68cc,_0x534345['markerName']);}_0x5e1017||_0x532ff9||!_0x37679b||_0x2fd5dd(_0x37679b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x26fb69,_0x370ddc,_0x3455e6)=>{const _0x1f6a76=_0x3455e6['mapper']['markerNameToElements'](_0x370ddc['markerName']);if(_0x1f6a76){for(const _0x472c59 of _0x1f6a76)(_0x472c59['hasClass']('ck-suggestion-marker-split')||_0x472c59['hasClass']('ck-suggestion-marker-merge'))&&(_0x3455e6['mapper']['unbindElementFromMarkerName'](_0x472c59,_0x370ddc['markerName']),_0x3455e6['writer']['remove'](_0x472c59));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4e0bbc,_0x1b9a2e,_0x1ab5f6)=>{const _0x13d55e=_0x1b9a2e['markerName']['split'](':')[0x1],_0x1a3b4a=this['_getChangeFromId'](_0x13d55e);if(!_0x1a3b4a)return null;const _0x4a2897='add'==_0x1a3b4a['type']?'split':'merge';if(_0x1ab5f6['consumable']['test'](_0x1b9a2e['markerRange'],_0x4e0bbc['name']))for(const _0x1df915 of _0x1b9a2e['markerRange']['getItems']()){if(!_0x1df915['is']('element','softBreak'))continue;const _0x358a3e=_0x1ab5f6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a2897}),_0xb66c07=_0x1ab5f6['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1df915));_0x1a3b4a['data']['isSuggestion']&&_0x1ab5f6['writer']['addClass']('ck-suggestion-marker-'+_0x4a2897+'-new',_0x358a3e),this['activeChange']==_0x1a3b4a&&_0x1ab5f6['writer']['addClass']('ck-suggestion-marker--active',_0x358a3e),_0x1ab5f6['writer']['insert'](_0xb66c07,_0x358a3e),_0x1ab5f6['mapper']['bindElementToMarker'](_0x358a3e,_0x1b9a2e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x32b303=>{for(const _0x4771ee of this['editor']['model']['document']['getRootNames']()){const _0x41f686=this['editor']['model']['document']['getRoot'](_0x4771ee),_0x1f8ffa=this['editor']['editing']['view']['document']['getRoot'](_0x4771ee);if(_0x1f8ffa){const _0x39d87b=_0x41f686['getAttribute']('revisionHistoryAttachChange');if(_0x32b303['removeAttribute']('data-change-id',_0x1f8ffa),_0x32b303['removeClass']('ck-revision-history-root-add',_0x1f8ffa),_0x32b303['removeClass']('ck-revision-history-root-remove',_0x1f8ffa),_0x32b303['removeClass']('ck-revision-history-root--active',_0x1f8ffa),_0x39d87b){const _0x591b49=this['_getChangeFromId'](_0x39d87b);if(!_0x591b49)return null;_0x32b303['setAttribute']('data-change-id',_0x39d87b,_0x1f8ffa),_0x32b303['addClass']('ck-revision-history-root-'+_0x591b49['type'],_0x1f8ffa),this['activeChange']==_0x591b49&&_0x32b303['addClass']('ck-revision-history-root--active',_0x1f8ffa);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x305a10=>'revision-comment:'+_0x305a10,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3b3c85=>'revision-suggestion:'+_0x3b3c85,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4dc5bc=>({'name':'suggestion:'+_0x4dc5bc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3d64df=>{const _0x57c5fb=_0x3d64df['markerName']['split'](':')[0x1];return'insertion'!=_0x57c5fb&&'deletion'!=_0x57c5fb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x57c5fb]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x262263,_0x2b03c4,_0x11b7fd)=>{const _0x115b57=_0x11b7fd['mapper']['markerNameToElements'](_0x2b03c4['markerName']);if(_0x115b57){for(const _0x450a40 of _0x115b57)_0x450a40['is']('uiElement')&&(_0x11b7fd['mapper']['unbindElementFromMarkerName'](_0x450a40,_0x2b03c4['markerName']),_0x11b7fd['writer']['remove'](_0x450a40));}},{'priority':'high'});}['_getChangeFromId'](_0x54316f){return this['_changeIdToChange']['get'](_0x54316f);}['_getViewForChange'](_0x4962fd){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x4962fd),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2acad7,_0x298f32,_0x35a455,_0x4ff93e)=>{_0x4ff93e&&this['_balloon']['remove'](_0x4ff93e),_0x35a455&&(this['_balloon']['add']({'view':_0x35a455,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4f7189=this['editor']['editing'],_0x5649b8=this['_getChangeFromId'](_0x35a455['changeId']);let _0x8d140a;if(_0x5649b8['data']['isOnRoot']){const _0x3833d7=_0x4f7189['view']['getDomRoot'](_0x5649b8['rootName']);_0x8d140a=Array['from'](_0x3833d7['getClientRects']());}else{const _0x50521f=this['editor']['model']['markers']['get']('revision:'+_0x35a455['changeId']);_0x8d140a=Array['from'](_0x4f7189['mapper']['markerNameToElements'](_0x50521f['name']))['map'](_0x4020dc=>_0x4f7189['view']['domConverter']['mapViewToDom'](_0x4020dc))['map'](_0x94a090=>Array['from'](_0x94a090['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x8d140a[0x0];return _0x8d140a['find'](_0x44017e=>_0x44017e['top']-0x3<=this['_activeViewTarget']['y']&&_0x44017e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x44017e['left']-0x3<=this['_activeViewTarget']['x']&&_0x44017e['right']+0x3>=this['_activeViewTarget']['x'])||_0x8d140a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2e1b56,_0x12b3dd,_0x5440fc,_0x3f7c59)=>{this['activeView']=_0x5440fc?this['_getViewForChange'](_0x5440fc):null,this['editor']['model']['change'](()=>{const _0x1785a3=this['editor']['editing'];_0x3f7c59&&(_0x3f7c59['data']['isOnRoot']?_0x1785a3['view']['change'](_0x28d1a5=>{_0x28d1a5['removeClass']('ck-revision-history-root--active',_0x1785a3['view']['document']['getRoot'](_0x3f7c59['rootName']));}):_0x1785a3['reconvertMarker']('revision:'+_0x3f7c59['id'])),_0x5440fc&&(_0x5440fc['data']['isOnRoot']?_0x1785a3['view']['change'](_0x3679b8=>{_0x3679b8['addClass']('ck-revision-history-root--active',_0x1785a3['view']['document']['getRoot'](_0x5440fc['rootName']));}):_0x1785a3['reconvertMarker']('revision:'+_0x5440fc['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2d7df6,_0x50a1fc)=>{if(this['activeChange'])return;const _0x4c15d0=this['_findChangeIdFromDomTarget'](_0x50a1fc['target']),_0x574b61=this['_changeIdToChange']['get'](_0x4c15d0);_0x574b61?(this['_activeViewTarget']={'x':_0x50a1fc['domEvent']['x'],'y':_0x50a1fc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x574b61)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2a63c0,_0x51166b)=>{const _0x56db1c=this['_findChangeIdFromDomTarget'](_0x51166b['target']),_0x1afad3=this['_changeIdToChange']['get'](_0x56db1c);_0x1afad3?(this['_activeViewTarget']={'x':_0x51166b['domEvent']['x'],'y':_0x51166b['domEvent']['y']},_0x1afad3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1afad3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x34a4f5){do{const _0x5470ab=_0x34a4f5['getAttribute']('data-change-id');if(_0x5470ab)return _0x5470ab;_0x34a4f5=_0x34a4f5['parent'];}while(_0x34a4f5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x34606f=>{for(const _0xb38f53 of this['editor']['model']['markers'])_0x34606f['removeMarker'](_0xb38f53);});}}function Q(_0x2c51fb,_0x9dc499){return(_0x3b1422,_0xb3577f,_0x56e896)=>{if(!_0x56e896['consumable']['test'](_0xb3577f['markerRange'],_0x3b1422['name']))return;const _0x2c39c8=_0xb3577f['markerRange']['getWalker'](),_0x555d5c=_0xb3577f['markerRange']['start'],_0x108d2e=_0x2c51fb['model']['schema'];let _0x303b21=null,_0x56f5fb=null,_0x364c42=!0x1,_0x822189=!0x1;for(const _0x32e806 of _0x2c39c8){const _0x3537de=_0x32e806['item'];_0x364c42=_0x364c42||_0x108d2e['isContent'](_0x3537de);const _0x4eac78=_0x56e896['mapper']['toViewElement'](_0x3537de);if(_0x4eac78&&_0x4eac78['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x32e806['type']&&(_0x108d2e['isBlock'](_0x3537de)&&!_0x108d2e['isLimit'](_0x3537de)&&(_0x3537de['nextSibling']||_0x555d5c['isAtEnd']?_0x303b21&&_0x303b21['parent']==_0x3537de||(_0x303b21=_0x3537de,_0x46ed70(_0x32e806['previousPosition']),_0x822189=!0x0):_0x56f5fb=_0x56f5fb||_0x32e806['previousPosition']));}function _0x46ed70(_0x470e14){const _0x32b357=_0x56e896['mapper']['toViewPosition'](_0x470e14),_0x214a62=_0x56e896['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x9dc499});_0x56e896['writer']['insert'](_0x32b357,_0x214a62),_0x56e896['mapper']['bindElementToMarker'](_0x214a62,_0xb3577f['markerName']);}_0x364c42||_0x822189||!_0x56f5fb||_0x46ed70(_0x56f5fb);};}class nt extends _0x30167c{constructor(_0x2f5e15){super(_0x2f5e15);const _0x9d5dd0=_0x2f5e15['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x9d5dd0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x9d5dd0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x41b0d4=this['editor'],_0x1a9591=_0x41b0d4['plugins']['get'](u),_0x58da4c=_0x1a9591['isReady']?_0x1a9591['diff']['newRevisionId']:null;_0x41b0d4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x58da4c);}['refresh'](){const {isReady:_0x14399b,isEnabled:_0x4bbed6,repository:_0x1e83ee,diff:_0x35bbc8}=this['editor']['plugins']['get'](u),_0x1dd409=_0x35bbc8&&_0x1e83ee['getLaterVisibleRevision'](_0x35bbc8['newRevisionId']);this['isEnabled']=_0x14399b&&_0x4bbed6&&Boolean(_0x1dd409);}}class rt extends _0x30167c{['_step'];constructor(_0x4ff8fb,{direction:_0x598e9b}){super(_0x4ff8fb);const _0x38fa42=_0x4ff8fb['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x598e9b?0x1:-0x1,this['listenTo'](_0x38fa42,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x38fa42,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x38fa42,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x39b2b6=this['editor'],_0x6c0d1a=_0x39b2b6['plugins']['get'](u),{isNavigationMode:_0x5e24ba,currentChangeNumber:_0x564c46}=_0x6c0d1a;let _0xb29ea8;if(_0x6c0d1a['activeChange']=_0x5e24ba?_0x6c0d1a['diff']['changes']['get'](_0x564c46+this['_step']):_0x6c0d1a['diff']['changes']['first'],_0x6c0d1a['activeChange']['data']['isOnRoot'])_0xb29ea8=_0x39b2b6['editing']['view']['getDomRoot'](_0x6c0d1a['activeChange']['rootName']);else{const _0x44b0e5=_0x39b2b6['model']['markers']['get']('revision:'+_0x6c0d1a['activeChange']['id']);_0xb29ea8=_0x17a5a7(_0x39b2b6['editing'],_0x44b0e5);}_0x2ef4fe({'target':_0xb29ea8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x20afc6,currentChangeNumber:_0x3ddf33,numberOfChanges:_0x2615bd,isReady:_0x2ff075,isEnabled:_0x10a86c}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x10a86c&&_0x2ff075&&_0x2615bd)&&(!_0x20afc6||(0x1===this['_step']?_0x3ddf33<_0x2615bd-0x1:_0x3ddf33>0x0));}}class fi extends _0x2fbdbb{constructor(_0x665c97){super(_0x665c97);const _0x595cf9=this['bindTemplate'],_0x4e41bf=new _0x4eab8d(_0x665c97),_0x3fb768=new _0x4eab8d(_0x665c97);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',(_0x3f64d1,_0x20fed0)=>_0x3f64d1&&_0x20fed0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5ec4eb,_0x5da4eb,_0x4ff256,_0x19f8df)=>{if(!_0x5ec4eb)return m(_0x665c97,'Loading...');if(!_0x4ff256)return m(_0x665c97,'No\x20changes');const _0x317801=m(_0x665c97,'NUMBER_OF_CHANGES',_0x4ff256);return _0x19f8df?m(_0x665c97,'X_OF_Y_CHANGES',[_0x5da4eb+0x1,_0x4ff256]):_0x317801;}),_0x4e41bf['set']({'label':m(_0x665c97,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x158305}),_0x3fb768['set']({'label':m(_0x665c97,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x921695}),_0x4e41bf['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3fb768['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4e41bf['on']('execute',()=>this['fire']('execute','backward')),_0x3fb768['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',_0x595cf9['if']('_isStatusLabelVisible','ck-hidden',_0x38840c=>!_0x38840c)]},'children':[{'text':_0x595cf9['to']('isNavigationMode',_0x79ba1a=>_0x79ba1a?m(_0x665c97,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x665c97,'Total')+':\x20')}]},{'text':_0x595cf9['to']('_statusText')}]},new _0x5b896a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e41bf,_0x3fb768]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x2a9b7d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x37ffdb=this['editor']['editing']['view'];_0x37ffdb['change'](_0x366de4=>{for(const _0x37e8ad of _0x37ffdb['document']['roots'])_0x366de4['addClass'](ge,_0x37e8ad);});}['hide'](){const _0x155753=this['editor']['editing']['view'];_0x155753['change'](_0x28e226=>{for(const _0x3d6cad of _0x155753['document']['roots'])_0x28e226['removeClass'](ge,_0x3d6cad);});}}class v extends _0x2a9b7d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,bi];}['init'](){const _0x751e08=this['editor'],_0x1dbd63=_0x751e08['plugins']['get'](u),_0xbe0914=_0x751e08['plugins']['get'](bi);_0x751e08['ui']['componentFactory']['add']('exitToEditing',_0x4d6901=>{const _0xf6ab28=new _0x4eab8d(_0x4d6901);return _0xf6ab28['set']({'label':m(_0x4d6901,'Back\x20to\x20editing'),'icon':_0x1bee30,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xf6ab28,'execute',()=>{_0x751e08['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xf6ab28;}),_0x751e08['ui']['componentFactory']['add']('restoreRevision',_0x546a23=>{const _0x4c7721=new _0x4eab8d(_0x546a23);return _0x4c7721['set']({'label':m(_0x546a23,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4c7721['bind']('isEnabled')['to'](_0x751e08['commands']['get']('restoreRevision')),this['listenTo'](_0x4c7721,'execute',()=>_0x751e08['execute']('restoreRevision')),_0x4c7721;}),_0x751e08['ui']['componentFactory']['add']('changesNavigation',_0x1df14c=>{const _0x5eb0d8=new fi(_0x1df14c),_0x281315=_0x751e08['commands']['get']('showPreviousChange'),_0x502450=_0x751e08['commands']['get']('showNextChange');return _0x5eb0d8['bind']('isBackwardNavigationEnabled')['to'](_0x281315,'isEnabled'),_0x5eb0d8['bind']('isForwardNavigationEnabled')['to'](_0x502450,'isEnabled'),_0x5eb0d8['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1dbd63),this['listenTo'](_0x5eb0d8,'execute',(_0x1ccab5,_0x36adae)=>{_0x751e08['execute']('forward'===_0x36adae?'showNextChange':'showPreviousChange');}),_0x5eb0d8;}),_0xbe0914['show'](),_0x1dbd63['on']('change:isReady',(_0x57d566,_0x3e12e1,_0x139891)=>{_0x139891?_0xbe0914['hide']():_0xbe0914['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x8b3abb,_0x101b3e){super(_0x8b3abb,_0x101b3e);const _0x349b04=this['bindTemplate'];this['set']({'label':m(_0x8b3abb,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x8b3abb,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x349b04['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x46b030=this['fieldView']['element'];this['_tooltipString']=_0x46b030['scrollWidth']>_0x46b030['clientWidth']&&_0x46b030['value']||'';}}class ni extends _0x2fbdbb{constructor(_0x5a146b,_0x189cb8,_0x211ea8){super(_0x5a146b);const _0x2bdd8d=new _0x11835d();_0x2bdd8d['set']({'content':_0x81b85e,'viewBox':'0\x200\x2011\x2010'});const _0x36a4d6=['ck','ck-revision-history-sidebar__revision-author'];_0x211ea8&&_0x36a4d6['push']('ck-revision-history-sidebar__revision-author_creator');const _0xb6daf1=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5a146b,_0x211ea8?'Revision\x20creator':'Revision\x20author')},'children':[_0x2bdd8d,_0x189cb8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x36a4d6},'children':_0xb6daf1});}}function ai(_0x472e2c,_0x1751a5){const _0x3f6db9=_0x472e2c['bindTemplate'],_0x2ac332=_0x472e2c['locale'],_0x1f8307=_0x255985(_0x2ac332);_0x1f8307['panelPosition']='sw';const _0x571a38=function(_0x5464c8,_0x3627c1){const _0x2db66f=function(_0x1960e9,_0x39705b){const _0xc61ace=_0x1960e9['locale'],_0x21d07a={'Compare\x20against\x20selected':m(_0xc61ace,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xc61ace,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xc61ace,'Restore\x20this\x20revision')};return _0x39705b['map'](_0x6d8ff2=>{const _0xc216ac=_0x21d07a[_0x6d8ff2['name']];return _0xc216ac&&_0xc216ac!==_0x6d8ff2['name']&&(_0x6d8ff2['name']=_0xc216ac),_0x6d8ff2;});}(_0x5464c8,_0x3627c1),_0x13401b=new _0xb670b4();for(const _0x10d517 of _0x2db66f){const _0x4b2a45={'type':'button','model':new to({'label':_0x10d517['name'],'class':_0x10d517['class'],'withText':!0x0,'role':'menuitem','_action':_0x10d517['action']})};_0x4b2a45['model']['bind']('isEnabled')['to'](_0x5464c8,'isActionsDropdownOpen',_0x1e460f=>'function'!=typeof _0x10d517['isEnabled']||(!_0x1e460f||_0x10d517['isEnabled'](_0x5464c8))),_0x13401b['add'](_0x4b2a45);}return _0x13401b;}(_0x472e2c,_0x1751a5);return _0x472e2c['bind']('isActionsDropdownOpen')['to'](_0x1f8307,'isOpen'),_0x1f8307['buttonView']['set']({'label':m(_0x2ac332,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x187a75}),_0x1f8307['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3f6db9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3f6db9['to'](_0x402b00=>_0x402b00['stopPropagation']())}}),_0x1f8307['on']('execute',_0x19eba8=>{_0x472e2c['isReady']&&'function'==typeof _0x19eba8['source']['_action']&&_0x19eba8['source']['_action'](_0x472e2c);}),_0x3e03fc(_0x1f8307,_0x571a38,{'role':'menu'}),_0x1f8307['listenTo'](_0x472e2c,'change:isActionsDropdownOpen',(_0x339499,_0x5b45fd,_0x328e8a)=>{if(_0x328e8a)for(const _0x2b1411 of _0x1f8307['listView']['items']){const _0x299324=_0x2b1411['children']['first'],_0x4dad89=_0x1751a5['find'](_0x4daec6=>_0x4daec6['action']===_0x299324['_action'])['isVisible'];_0x2b1411['isVisible']=void 0x0===_0x4dad89||_0x4dad89(_0x472e2c);}}),_0x1f8307;}class _i extends/* #__PURE__ -- @preserve */
27
- _0x2a2f44(_0x2fbdbb){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1195ee,_0xe8431c,_0x2ed573,_0x56b97c){super(_0x1195ee);const _0x461ab2=this['bindTemplate'],_0x5d6ec0=function(_0x3582b7,_0x58e427){const _0x44e85b=Array['from'](_0x58e427['authors'])['filter'](_0x2b1d0f=>_0x2b1d0f!=_0x58e427['creator']);return _0x58e427['creator']&&_0x44e85b['unshift'](_0x58e427['creator']),_0x44e85b['map'](_0x680430=>new ni(_0x3582b7,_0x680430,_0x680430==_0x58e427['creator']));}(_0x1195ee,_0xe8431c);this['id']=_0xe8431c['id'],this['_revision']=_0xe8431c,this['_requireRevisionName']=_0x56b97c,this['bind']('name','createdAt')['to'](_0xe8431c),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x199456=>{return _0x5d5bd8=_0x1195ee['uiLanguage'],(_0x5b9269=_0x199456)['toLocaleDateString'](_0x5d5bd8,{'month':'long','day':'numeric'})+',\x20'+_0x5b9269['toLocaleTimeString'](_0x5d5bd8,{'hour':'numeric','minute':'numeric'});var _0x5d5bd8,_0x5b9269;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x1195ee,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3d0c06=>_0x3d0c06||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x59adb3,_0x48b1fe)=>_0x59adb3&&_0x48b1fe),this['revisionActionsView']=_0x2ed573&&_0x2ed573['length']?ai(this,_0x2ed573):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x461ab2['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x461ab2['if']('isEnabled','ck-disabled',_0xc5b958=>!_0xc5b958),_0x461ab2['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x461ab2['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x461ab2['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':_0x461ab2['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':_0x5d6ec0}]},this['revisionActionsView']],'on':{'click':_0x461ab2['to'](_0x50d2c8=>{_0x50d2c8['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4c4564=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4c4564,'change',()=>{this['_requireRevisionName']&&!_0x4c4564['value']||this['fire']('setName',{'id':this['id'],'name':_0x4c4564['value']}),_0x4c4564['value']||(_0x4c4564['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ki(_0x382e38,_0x22ea52){const _0x2bfdb7=_0x5c8801['fromJSDate'](_0x382e38)['setLocale'](_0x22ea52),_0x5b98d8=_0x5c8801['local'](),_0x18db60=_0x5b98d8['minus']({'days':0x1})['startOf']('day');let _0x21bd33,_0x57d6b8;return _0x2bfdb7['hasSame'](_0x5b98d8,'day')?(_0x21bd33=_0x2bfdb7['startOf']('day')['toJSDate'](),_0x57d6b8=_0x2bfdb7['toRelativeCalendar']()):_0x2bfdb7['hasSame'](_0x18db60,'day')?(_0x21bd33=_0x18db60['toJSDate'](),_0x57d6b8=_0x2bfdb7['toRelativeCalendar']()):_0x2bfdb7['hasSame'](_0x5b98d8,'week')?(_0x21bd33=_0x2bfdb7['startOf']('week')['toJSDate'](),_0x57d6b8=_0x2bfdb7['weekdayLong']||''):_0x2bfdb7['hasSame'](_0x5b98d8,'year')?(_0x21bd33=_0x2bfdb7['startOf']('month')['toJSDate'](),_0x57d6b8=_0x2bfdb7['monthLong']||''):(_0x21bd33=_0x2bfdb7['startOf']('year')['toJSDate'](),_0x57d6b8=String(_0x2bfdb7['year'])),{'startDate':_0x21bd33,'localizedPeriodName':_0x57d6b8};}class ji extends _0x2fbdbb{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x8cbcc,_0x4171fd,_0xde6d89,_0x5bd73e){super(_0x8cbcc);const _0x2eb437=ki(_0x4171fd,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4171fd,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xde6d89,this['_requireRevisionName']=_0x5bd73e,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':_0x2eb437}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2e1704){const _0x4f578d=new _i(this['locale'],_0x2e1704,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4f578d);}['removeRevision'](_0x27e340){const _0x1291dd=this['revisionViews']['find'](_0x5916d5=>_0x5916d5['id']===_0x27e340['id']);this['revisionViews']['remove'](_0x1291dd);}}class Ni extends _0x2fbdbb{constructor(_0x87268f){super(_0x87268f);const _0x4faa28=new _0x11835d();_0x4faa28['content']=_0x1c8430,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4faa28,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x87268f,'Revision\x20history')]}]});}}class Ri extends _0x2fbdbb{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5db2a0,_0x35cef4,_0x152497,_0x3f64ad){super(_0x5db2a0);const _0x51f04e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x35cef4,this['_revisionActions']=_0x152497,this['_requireRevisionName']=_0x3f64ad,this['on']('select',(_0x12d8f2,_0x43fbcd)=>{this['fire']('revisionSelected',_0x43fbcd);}),this['on']('setName',(_0x51af46,_0x4580aa)=>{this['fire']('revisionSetName',_0x4580aa);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Ni(_0x5db2a0),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x51f04e['if']('isEnabled','ck-disabled',_0x21f3a9=>!_0x21f3a9)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x16587d of this['_revisions'])this['_addRevision'](_0x16587d);this['_revisions']['on']('add',(_0x3ca6aa,_0x2c6cc4)=>{this['_addRevision'](_0x2c6cc4);}),this['_revisions']['on']('remove',(_0x3d8947,_0x27a794)=>{this['_removeRevision'](_0x27a794);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4e76c6=>_0x4e76c6['revisionViews']['map'](_0xa840e5=>_0xa840e5))['flat']();}['selectRevision'](_0x3064d6){for(const _0x5113ee of this['revisionViews'])_0x3064d6&&_0x3064d6['id']===_0x5113ee['id']?_0x5113ee['select']():_0x5113ee['deselect']();}['highlightRevisions'](_0x20ef33){for(const _0xf8223f of this['revisionViews'])_0x20ef33['some'](({id:_0x596f99})=>_0x596f99===_0xf8223f['id'])?_0xf8223f['highlight']():_0xf8223f['unhighlight']();}['_addRevision'](_0x53232a){const _0x326328=ki(_0x53232a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5199cb=this['timePeriodViews']['get'](0x0);_0x5199cb&&_0x5199cb['startDate']['getTime']()===_0x326328['getTime']()||(_0x5199cb=new ji(this['locale'],_0x326328,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5199cb)),_0x5199cb['addRevision'](_0x53232a);}['_removeRevision'](_0x3f611f){const _0x32ca1c=ki(_0x3f611f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x32ca1c)['removeRevision'](_0x3f611f);}['_getTimePeriodViewByStartDate'](_0x5620aa){return this['timePeriodViews']['find'](_0x5ea57b=>_0x5ea57b['startDate']['getTime']()===_0x5620aa['getTime']());}}class d extends _0x2a9b7d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x957dfc,uid as _0x26af77,Collection as _0x50ebf4,logWarning as _0x4ec8cd,FocusTracker as _0x244945,KeystrokeHandler as _0xf81dea,scrollViewportToShowTarget as _0x1bdacd,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x10c315}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x51f737,set as _0x44ec4d,unset as _0x2dc454,isEqual as _0xd36dbe}from'es-toolkit/compat';import{Plugin as _0x2059eb,PendingActions as _0x1b9898,Command as _0x5a55d6,ElementApiMixin as _0x503a7b,Editor as _0x5ee788}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x407e0f,getMarkerDomElement as _0x52dae5,ConfirmMixin as _0x3bfe03,sanitizeEditorConfig as _0x39c63c}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5d246c,ViewAttributeElement as _0x48cadb,ViewEmptyElement as _0x409c27,ViewRawElement as _0x4de875,ViewUIElement as _0x4383cd,ViewDocumentFragment as _0x346216,ViewText as _0xb752b,ViewElement as _0xf362e4,ModelElement as _0x494a98,ModelRange as _0x4a436d,ModelPosition as _0x211198,ModelDocumentFragment as _0x4b3412,ModelText as _0xd38aa6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1d31f2,IconChevronUp as _0x4f6b62,IconChevronDown as _0x226f22,IconUndo as _0x3b0c96,IconUser as _0x46a264,IconThreeVerticalDots as _0x16611b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x49441e,View as _0x308af2,submitHandler as _0x1ad748,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x5c372e,ListView as _0x54b197,ListItemView as _0x2be891,ButtonView as _0x2d83ad,MenuBarMenuView as _0x3a9c2f,MenuBarMenuListView as _0x5a1069,MenuBarMenuListItemView as _0x158c36,MenuBarMenuListItemButtonView as _0x4ec073,ContextualBalloon as _0x4a31f0,ToolbarSeparatorView as _0x15959a,IconView as _0x1b7ac4,addListToDropdown as _0x48b7ca,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x328b63,StickyPanelView as _0x3e29e8,ToolbarView as _0x54edcf,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x376c09}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
+ _0x957dfc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x32ae1d){super(),this['id']=_0x32ae1d['id']||_0x26af77(),this['creator']=_0x32ae1d['creator']||null,this['authors']=_0x32ae1d['authors']||[],this['diffData']=_0x32ae1d['diffData']||null,this['toVersion']=_0x32ae1d['toVersion']||0x0,this['fromVersion']=_0x32ae1d['fromVersion']||0x0,this['set']('name',_0x32ae1d['name']||''),this['set']('createdAt',_0x32ae1d['createdAt']||new Date()),this['set']('attributes',_0x32ae1d['attributes']||{});}['setName'](_0x1b13e3){this['_update']({'name':_0x1b13e3});}['setAttribute'](_0x53ce7a,_0xd5f5ee){const _0x40b69a=_0x51f737(this['attributes']);_0x44ec4d(_0x40b69a,_0x53ce7a,_0xd5f5ee),this['_update']({'attributes':_0x40b69a});}['removeAttribute'](_0x17ca36){const _0x35618b=_0x51f737(this['attributes']);_0x2dc454(_0x35618b,_0x17ca36),this['_update']({'attributes':_0x35618b});}['_update'](_0x54ee2c,_0x15e2bb=!0x1){let _0x5cce1f=!0x1;const _0x5b2907={'id':this['id']},_0x346df4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3db64c of _0x346df4){const _0x2259ee=_0x54ee2c[_0x3db64c];void 0x0!==_0x2259ee&&_0x2259ee!==this[_0x3db64c]&&(this[_0x3db64c]=_0x2259ee,_0x5b2907[_0x3db64c]=_0x2259ee,_0x5cce1f=!0x0);}_0x5cce1f&&(_0x5b2907['authors']&&(_0x5b2907['authorsIds']=_0x5b2907['authors']['map'](_0x3dd135=>_0x3dd135['id']),delete _0x5b2907['authors']),this['fire']('_update',_0x5b2907,_0x15e2bb));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2ed7b1=>_0x2ed7b1['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2059eb{['_revisions'];static get['requires'](){return[_0x407e0f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5786e6){super(_0x5786e6),this['_revisions']=new _0x50ebf4();}['afterInit'](){!async function(_0x4090fc){const _0x24822e=_0x58bd69([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x4eceb5=0xeb829,_0x4a63df=0x7374585f,_0x2db77f=0x73732e77^_0x4a63df,_0xe33ec8=window[_0x58bd69([0x44,0x61,0x74,0x65])][_0x58bd69([0x6e,0x6f,0x77])](),_0x544d1a=_0x4090fc[_0x58bd69([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35fe2a=new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528f9a=>{_0x544d1a[_0x58bd69([0x6f,0x6e,0x63,0x65])](_0x58bd69([0x72,0x65,0x61,0x64,0x79]),_0x528f9a);}),_0x1174ef={[_0x58bd69([0x6b,0x74,0x79])]:_0x58bd69([0x45,0x43]),[_0x58bd69([0x75,0x73,0x65])]:_0x58bd69([0x73,0x69,0x67]),[_0x58bd69([0x63,0x72,0x76])]:_0x58bd69([0x50,0x2d,0x32,0x35,0x36]),[_0x58bd69([0x78])]:_0x58bd69([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]),[_0x58bd69([0x79])]:_0x58bd69([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]),[_0x58bd69([0x61,0x6c,0x67])]:_0x58bd69([0x45,0x53,0x32,0x35,0x36])},_0x499c15=_0x544d1a[_0x58bd69([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58bd69([0x67,0x65,0x74])](_0x58bd69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x497eb4(){let _0x293e0b,_0x4fcaec=null,_0x1066a5=null;try{if(_0x499c15==_0x58bd69([0x47,0x50,0x4c]))return _0x58bd69([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x293e0b=_0x449015(),!_0x293e0b)return _0x58bd69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x293e0b[_0x58bd69([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1066a5=_0x17300e(_0x293e0b[_0x58bd69([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x293e0b[_0x58bd69([0x6a,0x74,0x69])])),await _0x20cf8f()?_0x38111b()?_0x7a65af()?_0x58bd69([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12c831()?(_0x293e0b[_0x58bd69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58bd69([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fcaec=_0x1e99c1(_0x58bd69([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x293e0b[_0x58bd69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58bd69([0x74,0x72,0x69,0x61,0x6c])&&(_0x4fcaec=_0x1e99c1(_0x58bd69([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x163422()):_0x58bd69([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58bd69([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58bd69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58bd69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7a65af(){const _0x372671=[_0x58bd69([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58bd69([0x74,0x72,0x69,0x61,0x6c])][_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293e0b[_0x58bd69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe33ec8/0x3e8:0xe10*_0x2db77f;return _0x293e0b[_0x58bd69([0x65,0x78,0x70])]<_0x372671;}function _0x38111b(){const _0x53f7e4=_0x293e0b[_0x58bd69([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x53f7e4)return!0x1;if(_0x53f7e4[_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58bd69([0x2a])))return!0x0;if(_0x53f7e4[_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58bd69([0x52,0x48])))return!0x0;if(_0x53f7e4[_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58bd69([0x52,0x52,0x48]))){if(_0x80658b())return!0x0;if(_0x4194fb()||_0x58c498())return!0x0;}return!0x1;}function _0x12c831(){const _0x540f75=_0x293e0b[_0x58bd69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x540f75||0x0==_0x540f75[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3dafe4}=new URL(window[_0x58bd69([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x540f75[_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dafe4))return!0x0;const _0x35a722=_0x3dafe4[_0x58bd69([0x73,0x70,0x6c,0x69,0x74])](_0x58bd69([0x2e]));return _0x540f75[_0x58bd69([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f5ba8=>_0x1f5ba8[_0x58bd69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58bd69([0x2a])))[_0x58bd69([0x6d,0x61,0x70])](_0x5daf07=>_0x5daf07[_0x58bd69([0x73,0x70,0x6c,0x69,0x74])](_0x58bd69([0x2e])))[_0x58bd69([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e09ee=>_0x5e09ee[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35a722[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58bd69([0x6d,0x61,0x70])](_0x375bcd=>Array(_0x35a722[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x375bcd[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58bd69([0x66,0x69,0x6c,0x6c])](_0x375bcd[0x0]===_0x58bd69([0x2a])?_0x58bd69([0x2a]):'')[_0x58bd69([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x375bcd))[_0x58bd69([0x73,0x6f,0x6d,0x65])](_0x2ba916=>_0x35a722[_0x58bd69([0x65,0x76,0x65,0x72,0x79])]((_0x457eb3,_0x2c74ad)=>_0x2ba916[_0x2c74ad]===_0x457eb3||_0x2ba916[_0x2c74ad]===_0x58bd69([0x2a])));}function _0x163422(){return _0x4fcaec&&_0x1066a5?new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e8ac8,_0x2bd13e)=>{_0x4fcaec[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x1e8ac8,_0x2bd13e),_0x1066a5[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x3da9be=>{_0x3da9be!=_0x58bd69([0x56,0x61,0x6c,0x69,0x64])&&_0x1e8ac8(_0x3da9be);},_0x2bd13e);}):_0x4fcaec||_0x1066a5||_0x58bd69([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17300e(_0x36c081,_0x233ed4){return new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dbb82=>{if(_0x248e52())return _0x4dbb82(_0x58bd69([0x56,0x61,0x6c,0x69,0x64]));_0x15eb85(),_0x544d1a[_0x58bd69([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58bd69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6018bc=!0x1;const _0x44e451=_0x26af77();function _0x1e3cd1(_0x2106b0){return!!_0x2106b0&&(typeof _0x2106b0===_0x58bd69([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2106b0===_0x58bd69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2106b0[_0x58bd69([0x74,0x68,0x65,0x6e])]===_0x58bd69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2106b0[_0x58bd69([0x63,0x61,0x74,0x63,0x68])]===_0x58bd69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3658e1(_0x2b0709){_0x5a9edd(_0x2b0709)[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x9a8de2=>{if(!_0x9a8de2||_0x9a8de2[_0x58bd69([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58bd69([0x6f,0x6b]))return _0x58bd69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5947b1(_0x28f394(_0x44e451+_0x233ed4))!=_0x9a8de2[_0x58bd69([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58bd69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58bd69([0x56,0x61,0x6c,0x69,0x64]);})[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x27ee74=>(_0x4240cb(),_0x27ee74),()=>{const _0x27bf06=_0x291b9d();return null==_0x27bf06?(_0x4240cb(),_0x58bd69([0x56,0x61,0x6c,0x69,0x64])):_0x58bd69(_0xe33ec8-_0x27bf06>(0x5778dc5f^_0x4a63df)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x4dbb82)[_0x58bd69([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4dbb82(_0x58bd69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x452341=0x7342b6df^_0x4a63df;function _0x4240cb(){const _0x3aee39=_0x58bd69([0x6c,0x6c,0x63,0x74,0x2d])+_0x5947b1(_0x28f394(_0x36c081)),_0x51db1e=_0x271a0e(_0x5947b1(window[_0x58bd69([0x4d,0x61,0x74,0x68])][_0x58bd69([0x63,0x65,0x69,0x6c])](_0xe33ec8/_0x452341)));window[_0x58bd69([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58bd69([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3aee39,_0x51db1e);}function _0x291b9d(){const _0x5c1407=_0x58bd69([0x6c,0x6c,0x63,0x74,0x2d])+_0x5947b1(_0x28f394(_0x36c081)),_0xdaa857=window[_0x58bd69([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58bd69([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c1407);return _0xdaa857?window[_0x58bd69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271a0e(_0xdaa857),0x10)*_0x452341:null;}function _0x5a9edd(_0x14bd47){return new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37ec2f,_0x539070)=>{_0x14bd47[_0x58bd69([0x74,0x68,0x65,0x6e])](_0x37ec2f,_0x539070),window[_0x58bd69([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x539070,0x73758c9f^_0x4a63df);});}}_0x544d1a[_0x58bd69([0x6f,0x6e])](_0x58bd69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2169b1,_0x4501fb)=>{if(_0x4501fb[0x0]!=_0x36c081)return _0x4dbb82(_0x58bd69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4501fb[0x1]={..._0x4501fb[0x1],[_0x58bd69([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44e451};},{[_0x58bd69([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58bd69([0x68,0x69,0x67,0x68])}),_0x544d1a[_0x58bd69([0x6f,0x6e])](_0x58bd69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xaa96fd=>{_0x1e3cd1(_0xaa96fd[_0x58bd69([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6018bc=!0x0,_0x3658e1(_0xaa96fd[_0x58bd69([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58bd69([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58bd69([0x6c,0x6f,0x77])}),_0x35fe2a[_0x58bd69([0x74,0x68,0x65,0x6e])](()=>{_0x6018bc||_0x4dbb82(_0x58bd69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x248e52(){return _0x544d1a[_0x58bd69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58bd69([0x76,0x69,0x65,0x77])][_0x58bd69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58bd69([0x61,0x75,0x74,0x6f]);}function _0x15eb85(){_0x544d1a[_0x58bd69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58bd69([0x76,0x69,0x65,0x77])][_0x58bd69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58bd69([0x61,0x75,0x74,0x6f]);}}function _0x1e99c1(_0x10c9e8){const _0x5bd5d7=[new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5077f1=>setTimeout(_0x5077f1,0x737d6693^_0x4a63df)),_0x35fe2a[_0x58bd69([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d5862=>{const _0x5f0b18=0x73745858^_0x4a63df,_0x7aea88=_0x4090fc[_0x58bd69([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x35e87b(){_0x7aea88[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5f0b18&&_0x5d5862();}_0x35e87b(),_0x7aea88[_0x58bd69([0x6f,0x6e])](_0x58bd69([0x61,0x64,0x64]),_0x35e87b);})),new window[(_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17281b=>{function _0xb48edd(){for(const _0x14d81a in window)if(window[_0x58bd69([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x58bd69([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x14d81a))&&window[_0x14d81a]==_0x4eceb5)return _0x17281b();_0x544d1a[_0x58bd69([0x73,0x74,0x61,0x74,0x65])]!=_0x58bd69([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x58bd69([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb48edd,0x73744bd7^_0x4a63df);}_0x4b16d1(_0x58bd69([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xb48edd();})];return window[_0x58bd69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58bd69([0x72,0x61,0x63,0x65])](_0x5bd5d7)[_0x58bd69([0x74,0x68,0x65,0x6e])](()=>_0x10c9e8);}async function _0x204093(){if(await _0x35fe2a,_0x4b16d1(_0x58bd69([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x18126e=_0x4090fc[_0x58bd69([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3ff8fb=_0x4090fc[_0x58bd69([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])](_0x18126e[_0x58bd69([0x69,0x64])]),_0x372b3c=_0x3b4fe3(_0x58bd69([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x372b3c[_0x58bd69([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x18126e['id'],_0x3ff8fb?_0x3ff8fb['id']:null,!0x0),_0x372b3c[_0x58bd69([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x58bd69([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x372b3c[_0x58bd69([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x372b3c[_0x58bd69([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1b486f,void(_0x372b3c[_0x58bd69([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1b486f);}if(_0x4b16d1(_0x58bd69([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5233ff=_0x3b4fe3(_0x58bd69([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5233ff[_0x58bd69([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x58bd69([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5233ff[_0x58bd69([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5233ff[_0x58bd69([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1b486f,_0x5233ff[_0x58bd69([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1b486f;}_0x544d1a[_0x58bd69([0x6d,0x6f,0x64,0x65,0x6c])][_0x58bd69([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b486f,_0x544d1a[_0x58bd69([0x6d,0x6f,0x64,0x65,0x6c])][_0x58bd69([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b486f,_0x544d1a[_0x58bd69([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58bd69([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x80658b(){return _0x4b16d1(_0x58bd69([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3b4fe3(_0x58bd69([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x58bd69([0x73,0x74,0x61,0x74,0x65])]==_0x58bd69([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4194fb(){return _0x4b16d1(_0x58bd69([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 _0x58c498(){return _0x4b16d1(_0x58bd69([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa202d7(_0x1a435b){const _0x1817d7=_0x190b17();_0x544d1a[_0x1817d7]=_0x58bd69([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])+_0x1a435b,_0x1a435b[_0x58bd69([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x58bd69([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x190b17()]=_0x4eceb5),_0x1a435b!=_0x58bd69([0x56,0x61,0x6c,0x69,0x64])&&_0x204093();}function _0x190b17(){const _0x920bd5=window[_0x58bd69([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58bd69([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58bd69([0x6e,0x6f,0x77])]())[_0x58bd69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58bd69([0x2e]),'');let _0x4af2d5=_0x58bd69([0x73]);for(let _0x3f306f=0x0;_0x3f306f<_0x920bd5[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f306f+=0x2){let _0x40e051=window[_0x58bd69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x920bd5[_0x58bd69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f306f,_0x3f306f+0x2));_0x40e051>=_0x24822e[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40e051-=_0x24822e[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4af2d5+=_0x24822e[_0x40e051];}return _0x4af2d5;}function _0x449015(){const _0x476c72=_0x499c15[_0x58bd69([0x73,0x70,0x6c,0x69,0x74])](_0x58bd69([0x2e]));if(0x3!=_0x476c72[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a4dd0(_0x476c72[0x1]);function _0x5a4dd0(_0x4d92df){const _0x5118a6=_0x1ccdee(_0x4d92df);return _0x5118a6&&_0x30b8c7()?_0x5118a6:null;function _0x30b8c7(){const _0x23f011=_0x5118a6[_0x58bd69([0x6a,0x74,0x69])],_0x26ee9a=window[_0x58bd69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23f011[_0x58bd69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23f011[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b2e3b={..._0x5118a6,[_0x58bd69([0x6a,0x74,0x69])]:_0x23f011[_0x58bd69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23f011[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b2e3b[_0x58bd69([0x76,0x63])],_0x28f394(_0x1b2e3b)==_0x26ee9a;}}}async function _0x20cf8f(){let _0x408881=!0x0;try{const _0x2bdbf9=_0x499c15[_0x58bd69([0x73,0x70,0x6c,0x69,0x74])](_0x58bd69([0x2e])),[_0x5a1fa6,_0x5ebd7d,_0x1b5a3a]=_0x2bdbf9;return _0x534bf8(_0x5a1fa6),await _0x531ae8(_0x5a1fa6,_0x5ebd7d,_0x1b5a3a),_0x408881;}catch{return!0x1;}function _0x534bf8(_0x4e1076){const _0x38fca8=_0x1ccdee(_0x4e1076);_0x38fca8&&_0x38fca8[_0x58bd69([0x61,0x6c,0x67])]==_0x58bd69([0x45,0x53,0x32,0x35,0x36])||(_0x408881=!0x1);}async function _0x531ae8(_0x15114c,_0x500cca,_0x3c039d){const _0x5f5d1b=window[_0x58bd69([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58bd69([0x66,0x72,0x6f,0x6d])](_0x527cd5(_0x3c039d),_0x429993=>_0x429993[_0x58bd69([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x615b56=new window[(_0x58bd69([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58bd69([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15114c+_0x58bd69([0x2e])+_0x500cca),_0x196562=window[_0x58bd69([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58bd69([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x196562)return;const _0x84c405=await _0x196562[_0x58bd69([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58bd69([0x6a,0x77,0x6b]),_0x1174ef,{[_0x58bd69([0x6e,0x61,0x6d,0x65])]:_0x58bd69([0x45,0x43,0x44,0x53,0x41]),[_0x58bd69([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58bd69([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58bd69([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x196562[_0x58bd69([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58bd69([0x6e,0x61,0x6d,0x65])]:_0x58bd69([0x45,0x43,0x44,0x53,0x41]),[_0x58bd69([0x68,0x61,0x73,0x68])]:{[_0x58bd69([0x6e,0x61,0x6d,0x65])]:_0x58bd69([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x84c405,_0x5f5d1b,_0x615b56)||(_0x408881=!0x1);}}function _0x1ccdee(_0x1b5b69){return _0x1b5b69[_0x58bd69([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58bd69([0x65,0x79]))?JSON[_0x58bd69([0x70,0x61,0x72,0x73,0x65])](_0x527cd5(_0x1b5b69)):null;}function _0x527cd5(_0x292c43){return window[_0x58bd69([0x61,0x74,0x6f,0x62])](_0x292c43[_0x58bd69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58bd69([0x2b]))[_0x58bd69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58bd69([0x2f])));}function _0x28f394(_0x575c0d){let _0x169871=0x1505;function _0x146eb2(_0x43bf53){for(let _0x31f86a=0x0;_0x31f86a<_0x43bf53[_0x58bd69([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31f86a++){const _0x5e4380=_0x43bf53[_0x58bd69([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31f86a);_0x169871=(_0x169871<<0x5)+_0x169871+_0x5e4380,_0x169871&=_0x169871;}}function _0x5d6089(_0x2184fc){Array[_0x58bd69([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2184fc)?_0x2184fc[_0x58bd69([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d6089):_0x2184fc&&typeof _0x2184fc==_0x58bd69([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58bd69([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2184fc)[_0x58bd69([0x73,0x6f,0x72,0x74])]()[_0x58bd69([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53b1bb,_0x153a82])=>{_0x146eb2(_0x53b1bb),_0x5d6089(_0x153a82);}):_0x146eb2(window[_0x58bd69([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2184fc));}return _0x5d6089(_0x575c0d),_0x169871>>>0x0;}function _0x5947b1(_0x5a2400){return _0x5a2400[_0x58bd69([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58bd69([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58bd69([0x30]));}function _0x271a0e(_0x503668){return _0x503668[_0x58bd69([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58bd69([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58bd69([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b16d1(_0x10c1ac){return _0x544d1a[_0x58bd69([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58bd69([0x68,0x61,0x73])](_0x10c1ac);}function _0x3b4fe3(_0x4b85b5){return _0x544d1a[_0x58bd69([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58bd69([0x67,0x65,0x74])](_0x4b85b5);}function _0x1b486f(){}function _0x58bd69(_0x2ad3b3){return _0x2ad3b3['map'](_0x44ce54=>String['fromCharCode'](_0x44ce54))['join']('');}_0xa202d7(await _0x497eb4());}(this);}['createRevision'](_0xd9e18f){const _0x256f1f=this['editor']['plugins']['get']('Users');return new I({'id':_0xd9e18f['id'],'name':_0xd9e18f['name'],'creator':_0xd9e18f['creatorId']?_0x256f1f['getUser'](_0xd9e18f['creatorId']):null,'diffData':_0xd9e18f['diffData']||_0xd9e18f['data'],'authors':_0xd9e18f['authorsIds']['map'](_0x40107a=>_0x256f1f['getUser'](_0x40107a)),'createdAt':new Date(_0xd9e18f['createdAt']),'attributes':_0xd9e18f['attributes'],'fromVersion':_0xd9e18f['fromVersion'],'toVersion':_0xd9e18f['toVersion']});}['addRevision'](_0x195db3,_0x55c438=0x0){this['_revisions']['add'](_0x195db3,_0x55c438);}['getRevision'](_0x195982){return this['_revisions']['get'](_0x195982);}['getRevisions'](_0x4f1572={'toJSON':!0x1}){const _0x363b7e=Array['from'](this['_revisions']);return _0x363b7e['reverse'](),_0x4f1572['toJSON']?_0x363b7e['map'](_0x11d1f6=>_0x11d1f6['toJSON']()):_0x363b7e;}['getIndex'](_0x4ff244){return this['_revisions']['getIndex'](_0x4ff244);}['getEarlierVisibleRevision'](_0x369f83){const [,_0x40cb47]=this['getRevisionsIterator'](_0x369f83,{'direction':'earlier'});return _0x40cb47;}['getLaterVisibleRevision'](_0x3c1b26){const [,_0x4a0b8b]=this['getRevisionsIterator'](_0x3c1b26,{'direction':'later'});return _0x4a0b8b;}['getRevisionsInDiff'](_0x1dc07b){const _0x376591=[];for(const _0x5bcb4b of this['getRevisionsIterator'](_0x1dc07b['newRevisionId']))if(_0x376591['push'](_0x5bcb4b),_0x5bcb4b['id']===_0x1dc07b['oldRevisionId'])break;return _0x376591;}*['getRevisionsIterator'](_0x4b60e3,{direction:_0x44623b='earlier',filter:_0x20018e=()=>!0x0}={}){const _0x530a2a='earlier'===_0x44623b?0x1:-0x1;let _0x2f1318=this['_revisions']['get'](_0x4b60e3),_0x4dfb05=this['getIndex'](_0x2f1318);for(yield _0x2f1318;_0x2f1318;){if(_0x4dfb05+=_0x530a2a,_0x2f1318=this['getRevision'](_0x4dfb05),!_0x2f1318)return;_0x20018e(_0x2f1318)&&(yield _0x2f1318);}}}class $ extends _0x2059eb{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5d246c,'c'],[_0x48cadb,'a'],[_0x409c27,'e'],[_0x4de875,'r'],[_0x4383cd,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5d246c],['a',_0x48cadb],['e',_0x409c27],['r',_0x4de875],['u',_0x4383cd]]);async['loadRevisionData'](_0x27298f,_0x39bead){if(_0x27298f['diffData']||!_0x39bead)return;const _0x39b06b=this['editor']['config']['get']('collaboration.channelId'),_0x28ec12=await _0x39bead['getRevision']({'channelId':_0x39b06b,'revisionId':_0x27298f['id']});_0x27298f['diffData']=_0x28ec12['diffData'];}['getRevisionDocumentData'](_0x21a783){const _0x15c27a={};for(const _0x3c9732 in _0x21a783['diffData']){if(_0x21a783['diffData'][_0x3c9732]['attachChange']&&!_0x21a783['diffData'][_0x3c9732]['attachChange']['isAttached'])continue;const _0x57fb57=this['_removeRevisionMarkers'](JSON['parse'](_0x21a783['diffData'][_0x3c9732]['insertions'])),_0x20928d=this['editor']['editing']['view']['document'],_0xbdee98=new _0x346216(_0x20928d,_0x57fb57['map'](_0xa3fd4d=>this['_getViewFromDiffObj'](_0xa3fd4d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x15c27a[_0x3c9732]=this['editor']['data']['processor']['toData'](_0xbdee98),this['editor']['data']['processor']['useFillerType']('default');}return _0x15c27a;}['getRevisionRootsAttributes'](_0x23e1d1){const _0x42a855={};for(const _0x1a9709 in _0x23e1d1['diffData'])_0x23e1d1['diffData'][_0x1a9709]['attachChange']&&!_0x23e1d1['diffData'][_0x1a9709]['attachChange']['isAttached']||(_0x42a855[_0x1a9709]=_0x23e1d1['diffData'][_0x1a9709]['attributesAfter']||{});return _0x42a855;}['_getTypeCharForViewElement'](_0x4b4b8e){return this['_viewClassToTypeChar']['get'](_0x4b4b8e['constructor']);}['_getViewFromDiffObj'](_0x2969be,_0x33f74a){const _0xfb0095=this['editor']['editing']['view']['document'];if('string'==typeof _0x2969be)return new _0xb752b(_0xfb0095,_0x2969be);{let _0x1a809e,_0x4cf801;_0x4cf801='u'==_0x2969be['type']||'r'==_0x2969be['type']?[]:_0x2969be['children']['map'](_0x3dba6e=>this['_getViewFromDiffObj'](_0x3dba6e,_0x33f74a));const _0x31f181=this['_typeCharToViewClass']['get'](_0x2969be['type'])||_0xf362e4,_0x4ef2f3=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1a809e=new _0x31f181(_0xfb0095,_0x2969be['name'],_0x2969be['attributes'],_0x4cf801),'u'==_0x2969be['type']&&_0x2969be['children'][0x0]){const _0x1a90be=_0x2969be['children'][0x0];if(_0x1a809e['render']=function(_0x14db9d){const _0x1063b9=_0x14db9d['createElement']('div');return _0x1063b9['innerHTML']=_0x1a90be,_0x1063b9['childNodes'][0x0];},_0x33f74a){const _0x3cc3ce=new _0x346216(_0xfb0095);_0x3cc3ce['_appendChild'](_0x1a809e);const _0x354462=Array['from'](_0x4ef2f3['viewChildrenToDom'](_0x3cc3ce,{'bind':!0x1})),_0x48fb24=_0x4ef2f3['domDocument']['createElement']('div');_0x48fb24['append'](..._0x354462),_0x1a809e=Array['from'](_0x4ef2f3['domChildrenToView'](_0x48fb24))[0x0];}}else{if('r'==_0x2969be['type']&&_0x2969be['children'][0x0]){const _0x157c72=_0x2969be['children'][0x0];if(_0x1a809e['render']=function(_0x45ae7e){_0x45ae7e['innerHTML']=_0x157c72;},_0x33f74a){const _0x1fcf4b=new _0x346216(_0xfb0095);_0x1fcf4b['_appendChild'](_0x1a809e);const _0x1b17e6=Array['from'](_0x4ef2f3['viewChildrenToDom'](_0x1fcf4b,{'bind':!0x1})),_0x5329c0=_0x4ef2f3['domDocument']['createElement']('div');_0x5329c0['append'](..._0x1b17e6);const _0x36590e=Array['from'](_0x4ef2f3['domChildrenToView'](_0x5329c0));_0x36590e['length']>0x1?_0x1a809e['_appendChild'](_0x36590e):_0x1a809e=_0x36590e[0x0];}}}if(_0x2969be['customProperties']){for(const [_0x25a7b6,_0x17cf6b]of _0x2969be['customProperties'])_0x1a809e['_setCustomProperty'](_0x25a7b6,_0x17cf6b);}const _0x4ba797=void 0x0===_0x2969be['fillerOffset']?null:_0x2969be['fillerOffset'];return null!==_0x4ba797&&(_0x1a809e['getFillerOffset']=()=>_0x4ba797),_0x1a809e;}}['_makeModelFromViewString'](_0x46da0e){const _0x46a584=JSON['parse'](_0x46da0e),_0x5a6f5d=this['editor']['editing']['view']['document'],_0x2bda25=new _0x346216(_0x5a6f5d,_0x46a584['map'](_0x424d11=>this['_getViewFromDiffObj'](_0x424d11,!0x0)));return this['editor']['data']['toModel'](_0x2bda25);}['_removeRevisionMarkers'](_0xea2c3e){return(_0xea2c3e=_0xea2c3e['filter'](_0x493910=>!_0x493910['name']||'revision-start'!==_0x493910['name']&&'revision-end'!==_0x493910['name']))['forEach'](_0x3f38ef=>{'string'!=typeof _0x3f38ef&&(_0x3f38ef['children']=this['_removeRevisionMarkers'](_0x3f38ef['children']),_0x3f38ef['attributes']=_0x3f38ef['attributes']['filter'](_0xf3c692=>!_0xf3c692[0x0]['startsWith']('data-revision-')));}),_0xea2c3e;}}function m(_0x406517,_0x2fefde,_0x21efba){const t=_0x406517['t'];switch(_0x2fefde){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'},_0x21efba);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x21efba);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'';}}class h extends _0x2059eb{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x407e0f,S,$,_0x1b9898];}constructor(_0x564305){super(_0x564305),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3eeca1=_0x26af77();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3eeca1},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x26609a=this['repository']['getRevision'](0x0),_0x17d3bf=_0x26609a&&null===_0x26609a['creator']?_0x26609a:null;if(this['_continueCurrentRevision']=!!_0x17d3bf&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x403a8d=this['_source']['getCurrentRevisionId'](),_0x40fc92=this['repository']['getRevision'](_0x403a8d);if(_0x40fc92)this['_startingVersion']=_0x40fc92['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2f0a5b=this['_source']['history']['_operations']['find'](_0x48d853=>!_0x48d853['_isInit']),_0x55e1e6=_0x2f0a5b?_0x2f0a5b['baseVersion']:this['_source']['history']['version'];_0x26609a?(_0x26609a['toVersion']<_0x55e1e6&&_0x26609a['_update']({'toVersion':_0x55e1e6}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x17d3bf['id'],this['_startingVersion']=_0x17d3bf['fromVersion']):(this['_startingVersion']=_0x26609a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x55e1e6,this['_continueCurrentRevision']=!0x1);}}else _0x17d3bf&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x17d3bf['toVersion'],this['editor']['model']['document']['history']['version']),_0x17d3bf['fromVersion']===_0x17d3bf['toVersion']?(0x0!==_0x17d3bf['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x17d3bf['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x17d3bf['id'],this['_startingVersion']=_0x17d3bf['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',_0x159a60=>!_0x159a60),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5440ac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cf19b;for(const _0x5cdefd in _0x5440ac){const _0x553c33=_0x5cdefd,_0x18492f=_0x5440ac[_0x553c33];if('revisionHistoryLicenseKeyValid'==_0x18492f||'revisionHistoryLicenseKeyInvalid'==_0x18492f||'revisionHistoryLicenseKeyExpired'==_0x18492f||'revisionHistoryLicenseKeyDomainLimit'==_0x18492f||'revisionHistoryLicenseKeyNotAllowed'==_0x18492f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x18492f||'revisionHistoryLicenseKeyTrialLimit'==_0x18492f||'revisionHistoryLicenseKeyUsageLimit'==_0x18492f){delete _0x5440ac[_0x553c33],_0x5cf19b=_0x18492f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5cf19b&&_0x5440ac['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5cf19b&&_0x5440ac['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5cf19b&&_0x5440ac['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5cf19b&&_0x5440ac['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5cf19b&&_0x5440ac['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5cf19b&&_0x5440ac['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5cf19b&&_0x5440ac['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4cf91f=this['repository']['getRevision'](0x0),_0x27ad86=await this['getRevisionDocumentData'](_0x4cf91f),_0x3e80d7=await this['getRevisionRootsAttributes'](_0x4cf91f);this['_replaceEditorDataWithRevisionData'](_0x27ad86,_0x3e80d7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x79f90e){this['_source']=_0x79f90e;}async['update'](){const _0x60cf9=await this['_source']['getLatestVersion']();if(_0x60cf9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x483133=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x60cf9});_0x483133['authors']=_0x483133['authorsIds']['map'](_0x23eb5d=>this['editor']['plugins']['get']('Users')['getUser'](_0x23eb5d)),this['currentRevision']['_update'](_0x483133);}}async['saveRevision'](_0x3951c3={},_0x54f867=null){const _0xce766d=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x54f867>this['currentRevision']['toVersion']&&(_0x54f867=null),null===_0x54f867&&(_0x54f867=await this['_source']['getLatestVersion']());const _0x25b79e=this['_getFromVersion'](_0x54f867),_0x41c79d=this['buildRevisionData']({'from':_0x25b79e,'to':_0x54f867});if(this['currentRevision']['toVersion']<_0x54f867){const _0x40bfe9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x54f867,'to':_0x54f867});_0x40bfe9['authors']=[],_0x40bfe9['authorsIds']=[],_0x40bfe9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x40bfe9,!0x0),delete _0x40bfe9['authors'],_0xce766d['push'](_0x40bfe9);}_0x3951c3['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3951c3['name']=_0x3951c3['name']||null,_0x3951c3['id']=_0x3951c3['id']||_0x26af77(),_0x3951c3={..._0x3951c3,..._0x41c79d};const _0x50320b=this['addRevisionData'](_0x3951c3);_0xce766d['push'](_0x3951c3);const _0x20f208=this['repository']['getIndex'](_0x50320b);if(0x0!==_0x20f208){const _0x3219f7=this['repository']['getRevision'](_0x20f208-0x1);if(_0x3219f7['fromVersion']!==_0x54f867){const _0x2db48e=this['_revisionDataBuilder']['getData'](_0x54f867,_0x3219f7['toVersion']),_0x433b39={'id':_0x3219f7['id'],'diffData':_0x2db48e['diffData'],'authorsIds':_0x2db48e['authorsIds'],'authors':_0x2db48e['authorsIds']['map'](_0x1d1103=>this['editor']['plugins']['get']('Users')['getUser'](_0x1d1103)),'fromVersion':_0x54f867};_0x3219f7===this['currentRevision']&&(_0x433b39['createdAt']=new Date(_0x3951c3['createdAt']['getTime']()+0xa)),_0x3219f7['_update'](_0x433b39,!0x0),delete _0x433b39['authors'],_0xce766d['push'](_0x433b39);}}if(this['adapter']){for(const _0x14c91e of _0xce766d)this['_bufferUpdate'](_0x14c91e['id'],_0x14c91e,!0x0);this['sendBufferedUpdates']();}return _0x50320b;}['addRevisionData'](_0x1b5e58){const _0x2da3a3=this['repository']['createRevision'](_0x1b5e58);return this['adapter']&&_0x2da3a3['on']('_update',(_0x2e07c7,_0x389ba8,_0xa8dd90)=>{_0xa8dd90||(this['_bufferUpdate'](_0x389ba8['id'],_0x389ba8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2da3a3,this['_findInsertionIndex'](_0x2da3a3)),_0x2da3a3;}async['getRevisionDocumentData'](_0x619114){return await this['_utils']['loadRevisionData'](_0x619114,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x619114);}async['getRevisionRootsAttributes'](_0x26a47a){return await this['_utils']['loadRevisionData'](_0x26a47a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x26a47a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x8090ab=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5ad553=0x0;_0x5ad553<_0x8090ab['length'];_0x5ad553++){const _0x31f4d1=_0x8090ab[_0x5ad553];let _0x3e3168=!0x1;for(const _0x1afc5b of Object['keys'](_0x31f4d1))void 0x0===_0x31f4d1[_0x1afc5b]?delete _0x31f4d1[_0x1afc5b]:'id'!==_0x1afc5b&&(_0x3e3168=!0x0);_0x3e3168||(_0x8090ab[_0x5ad553]=null);}if(_0x8090ab=_0x8090ab['filter'](_0xc9343d=>null!==_0xc9343d),!_0x8090ab['length'])return;for(let _0x17faec=0x0;_0x17faec<_0x8090ab['length'];_0x17faec++){const _0x572297=_0x8090ab[_0x17faec];void 0x0!==_0x572297['fromVersion']&&void 0x0===_0x572297['toVersion']&&(_0x572297['toVersion']=this['repository']['getRevision'](_0x572297['id'])['toVersion']),void 0x0!==_0x572297['toVersion']&&void 0x0===_0x572297['fromVersion']&&(_0x572297['fromVersion']=this['repository']['getRevision'](_0x572297['id'])['fromVersion']);}const _0x531a4a=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x8090ab,_0x531a4a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4fab65=>{if(_0x4fab65){for(const _0x20e889 of _0x4fab65)this['setRevisionData']({'id':_0x20e889['id'],'createdAt':_0x20e889['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x11cde8=null,from:_0x18139e=null,to:_0x2b9ad8=null}){_0x18139e=null!==_0x18139e?_0x18139e:_0x11cde8['fromVersion'],_0x2b9ad8=null!==_0x2b9ad8?_0x2b9ad8:_0x11cde8['toVersion'];const _0x1b6b78=this['_revisionDataBuilder']['getData'](_0x18139e,_0x2b9ad8),_0x21fb8d={'diffData':_0x1b6b78['diffData'],'authorsIds':_0x1b6b78['authorsIds'],'fromVersion':_0x18139e,'toVersion':_0x2b9ad8};if(!_0x11cde8||_0x2b9ad8!==_0x11cde8['toVersion']){const _0x368d17=_0x2b9ad8-0x1,_0x41d3cb=this['_source']['history']['getOperation'](_0x368d17);_0x21fb8d['createdAt']=_0x41d3cb&&_0x41d3cb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x18139e===this['_loadedStateData']['fromVersion']){for(const _0x389037 of this['_loadedStateData']['authors'])_0x21fb8d['authorsIds']['includes'](_0x389037['id'])||_0x21fb8d['authorsIds']['push'](_0x389037['id']);}return _0x21fb8d;}['_bufferUpdate'](_0x4af33a,_0x1fbc59,_0x31d611){if(this['_bufferedUpdates']['has'](_0x4af33a)){const _0x32c759=this['_bufferedUpdates']['get'](_0x4af33a);_0x1fbc59=_0x31d611?{..._0x32c759,..._0x1fbc59}:{..._0x1fbc59,..._0x32c759};}this['_bufferedUpdates']['set'](_0x4af33a,_0x1fbc59);}['setRevisionData'](_0x2a1ecf){const _0x320f27=this['repository']['getRevision'](_0x2a1ecf['id']);if(_0x2a1ecf['createdAt']&&(_0x2a1ecf['createdAt']=new Date(_0x2a1ecf['createdAt'])),_0x2a1ecf['authorsIds']){const _0x5d0c1e=this['editor']['plugins']['get']('Users');_0x2a1ecf['authors']=_0x2a1ecf['authorsIds']['map'](_0x3156de=>_0x5d0c1e['getUser'](_0x3156de));}_0x320f27['_update'](_0x2a1ecf,!0x0);}['_createInitialRevision'](_0x48f9c2){const _0x1911ff=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1911ff)this['_initialRevisionId']=_0x1911ff['id'];else{const _0x2bb0b4=!this['editor']['model']['document']['roots']['find'](_0xb41d03=>this['editor']['model']['hasContent'](_0xb41d03)),_0xa8436a=this['editor']['plugins']['get']('Users')['me']['id'],_0x54e165=m(this['editor']['locale'],_0x2bb0b4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x48f9c2,'to':_0x48f9c2,'id':this['_initialRevisionId'],'name':_0x54e165,'creatorId':_0xa8436a});}}['_createCurrentRevision'](_0x2fb11a){const _0x13c3dc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x13c3dc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2fb11a,'to':_0x2fb11a,'id':_0x13c3dc,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x4456c2,_0x2f002c){let _0x4fce8a=this['editor']['config']['get']('initialData'),_0x191f9b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4fce8a){_0x4fce8a={};for(const _0x5d9450 of this['editor']['model']['document']['getRootNames']())_0x4fce8a[_0x5d9450]='';}if('string'==typeof _0x4fce8a&&(_0x4fce8a={'main':_0x4fce8a}),void 0x0===_0x191f9b){_0x191f9b={};for(const _0x1f2e23 of this['editor']['model']['document']['getRootNames']())_0x191f9b[_0x1f2e23]={};}let _0x5a69d6=!0x1;const _0x1d071c=Object['keys'](_0x4fce8a),_0x5185f4=Object['keys'](_0x4456c2);for(const _0xf77cac of _0x1d071c){if(_0x4fce8a[_0xf77cac]!==_0x4456c2[_0xf77cac]&&''!==_0x4fce8a[_0xf77cac]['trim']()){_0x5a69d6=!0x0;break;}if(!_0xd36dbe(_0x191f9b[_0xf77cac],_0x2f002c[_0xf77cac])&&Object['keys'](_0x191f9b[_0xf77cac])['length']>0x0){_0x5a69d6=!0x0;break;}}_0x5a69d6||(_0x5a69d6=_0x5185f4['some'](_0x3c9cc3=>!this['editor']['model']['document']['getRoot'](_0x3c9cc3))),_0x5a69d6&&_0x4ec8cd('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4fce8a,'editorRootsAttributes':_0x191f9b,'revisionData':_0x4456c2,'revisionRootsAttributes':_0x2f002c}),this['editor']['config']['set']('initialData',_0x4456c2),this['editor']['config']['set']('rootsAttributes',_0x2f002c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4f7843=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4f7843['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x34e6c9){const _0x6f476a=this['repository']['getRevisions']();_0x6f476a['reverse']();let _0x403847=0x0;for(;_0x403847<_0x6f476a['length'];){const _0x5405f0=_0x6f476a[_0x403847];if(_0x5405f0===this['currentRevision']){_0x403847++;continue;}if(_0x5405f0['id']===this['_initialRevisionId'])break;const _0x42821e=_0x34e6c9['toVersion']-_0x5405f0['toVersion']||_0x34e6c9['fromVersion']-_0x5405f0['fromVersion'];if(_0x42821e>0x0)break;if(_0x42821e<0x0)_0x403847++;else{if(!_0x34e6c9['creator']&&_0x5405f0['creator'])break;if(_0x5405f0['creator']||!_0x34e6c9['creator']){if(_0x34e6c9['createdAt']>_0x5405f0['createdAt'])break;_0x403847++;}else _0x403847++;}}return _0x403847;}['_getFromVersion'](_0x90a439){const _0x38dab0=this['repository']['getRevisions']();_0x38dab0['reverse'](),_0x38dab0['shift']();const _0x1ac9ac=_0x38dab0['find'](_0x391fe5=>_0x391fe5['toVersion']<=_0x90a439)['toVersion'];return _0x1ac9ac<this['_startingVersion']?this['_startingVersion']:_0x1ac9ac;}['_makeRevision']({name:_0x20b5a3,from:_0xe84cf8,to:_0x4c66c6,creatorId:_0x2ee89b,id:_0x5d39f2}){const _0x3cee9d=this['buildRevisionData']({'from':_0xe84cf8,'to':_0x4c66c6});_0x3cee9d['name']=_0x20b5a3,_0x3cee9d['creatorId']=_0x2ee89b,_0x3cee9d['id']=_0x5d39f2;const _0x5170fc=this['addRevisionData'](_0x3cee9d);return this['adapter']&&this['_bufferUpdate'](_0x3cee9d['id'],_0x3cee9d,!0x0),_0x5170fc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5d75f6){this['editor']=_0x5d75f6,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'](_0x24f7aa){this['source']=_0x24f7aa;const _0x2adc22=new Map(),_0x4f8fa9=new Map(),_0x5655a6=this['editor']['model']['document']['roots']['map'](_0x424350=>_0x424350['rootName']);for(const _0x4f77e3 of _0x5655a6){const _0x40c9bd=this['editor']['model']['document']['getRoot'](_0x4f77e3),_0x3a8227=x(_0x40c9bd);_0x2adc22['set'](_0x4f77e3,_0x3a8227),_0x4f8fa9['set'](_0x4f77e3,Object['fromEntries'](_0x40c9bd['getAttributes']()));}const _0x178115=Array['from'](this['editor']['model']['markers'])['map'](_0x446e6e=>[_0x446e6e['name'],_0x446e6e['getRange']()]),_0x1c8ab0=this['source']['version'];this['_saveMetaData'](_0x1c8ab0,_0x2adc22,_0x178115,_0x4f8fa9),this['_startingRevisionId']=this['_revisionId'];const _0x5272cb=new Map(),_0x960ef5=new Map();for(const _0x27566c of _0x5655a6){const _0x4cfffc=N(_0x27566c);_0x5272cb['set'](_0x27566c,_0x4cfffc),_0x960ef5['set'](_0x27566c,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5272cb,[],_0x960ef5);}['getData'](_0x1c5117,_0x3c5283){if(this['_lastFrom']===_0x1c5117&&this['_lastTo']<=_0x3c5283)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3c5283,!0x0);else{if(!this['_savedMetaData']['has'](_0x1c5117)){const _0x30d840=this['_getPreviousFrom'](_0x1c5117);this['_calculateMetaData'](_0x30d840,_0x1c5117,!0x1);}this['_calculateMetaData'](_0x1c5117,_0x3c5283,!0x0);}return this['_lastFrom']=_0x1c5117,this['_lastTo']=_0x3c5283,this['_getState']();}['loadState'](_0x50554b){if(!this['_savedMetaData']['has'](_0x50554b['fromVersion'])){const _0x2bd328=this['_getPreviousFrom'](_0x50554b['fromVersion']);this['_calculateMetaData'](_0x2bd328,_0x50554b['fromVersion'],!0x1);}this['_calculateMetaData'](_0x50554b['fromVersion'],_0x50554b['toVersion'],!0x1);const _0x3bacc3=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x50554b['fromVersion'],this['_lastTo']=_0x50554b['toVersion'];for(const _0x36fddb in _0x50554b['diffData']){const _0x1752f1=_0x50554b['diffData'][_0x36fddb]['attachChange'],_0x2c4a4e=_0x51f737(_0x50554b['diffData'][_0x36fddb]['attributesBefore'])||{},_0x2cc8fb=_0x3bacc3['_makeModelFromViewString'](_0x50554b['diffData'][_0x36fddb]['deletions']);_0x2cc8fb['rootName']=_0x36fddb,_0x2cc8fb['_isAttached']=!_0x1752f1||!_0x1752f1['isAttached'],_0x2cc8fb['isAttached']=()=>_0x2cc8fb['_isAttached'],this['_baseRoots']['set'](_0x36fddb,_0x2cc8fb),this['_baseRootsAttributes']['set'](_0x36fddb,_0x2c4a4e),_0x1752f1&&this['_touchedRoots']['set'](_0x36fddb,_0x1752f1);const _0x478996=this['_makeIdsRoot'](_0x2cc8fb);this['_baseIdsRoots']['set'](_0x36fddb,_0x478996);for(const [_0x409ea4,_0x5e3152]of _0x2cc8fb['markers']){if(!_0x409ea4['startsWith']('revision:'))continue;const _0x228f1a=_0x409ea4['split'](':')[0x2];for(const _0x22bc77 of _0x5e3152['getWalker']({'singleCharacters':!0x0})){const _0x1e3958=this['_getVidAttributeName'](_0x22bc77),_0xe7bf15='elementEnd'==_0x22bc77['type']?_0x22bc77['previousPosition']['path']['slice'](0x0,-0x1):_0x22bc77['previousPosition']['path'],_0xc45c4d=_0x478996['getNodeByPath'](_0xe7bf15)['getAttribute'](_0x1e3958);this['_touched']['set'](_0xc45c4d,{'userId':_0x228f1a});}_0x2cc8fb['markers']['delete'](_0x409ea4);}}this['_startingRevisionId']=this['_revisionId'];const _0x3e5d11=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x372d05=>!this['_touched']['has'](_0x372d05));let _0xec753f=0x0;const _0x5d93a6=new Map();for(const _0x204818 in _0x50554b['diffData']){const _0x28d6e3=_0x50554b['diffData'][_0x204818]['attachChange'],_0x3e7bcc=_0x51f737(_0x50554b['diffData'][_0x204818]['attributesAfter'])||{},_0x1ddc7e=_0x3bacc3['_makeModelFromViewString'](_0x50554b['diffData'][_0x204818]['insertions']);_0x1ddc7e['rootName']=_0x204818,_0x1ddc7e['_isAttached']=!_0x28d6e3||_0x28d6e3['isAttached'],_0x1ddc7e['isAttached']=()=>_0x1ddc7e['_isAttached'],this['_diffRoots']['set'](_0x204818,_0x1ddc7e),this['_diffRootsAttributes']['set'](_0x204818,_0x3e7bcc);const _0xedba88=this['_makeIdsRoot'](_0x1ddc7e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x204818,_0xedba88),_0x5d93a6['set'](_0x204818,_0x1ddc7e['isAttached']()?_0x3e7bcc:{});for(const [_0x3e727f,_0x56c7fa]of _0x1ddc7e['markers']){if(!_0x3e727f['startsWith']('revision:'))continue;const _0x29e6b7=_0x3e727f['split'](':')[0x2];for(const _0x411651 of _0x56c7fa['getWalker']({'singleCharacters':!0x0})){const _0x813546=this['_getVidAttributeName'](_0x411651),_0x3cf740=this['_revisionId']++,_0x28954f='elementEnd'==_0x411651['type']?_0x411651['previousPosition']['path']['slice'](0x0,-0x1):_0x411651['previousPosition']['path'];_0xedba88['getNodeByPath'](_0x28954f)['_setAttribute'](_0x813546,_0x3cf740),this['_touched']['set'](_0x3cf740,{'userId':_0x29e6b7});}_0x1ddc7e['markers']['delete'](_0x3e727f);}for(const _0x37ea00 of this['editor']['model']['createRangeIn'](_0x1ddc7e)['getWalker']({'singleCharacters':!0x0})){const _0x1a8855=this['_getVidAttributeName'](_0x37ea00),_0x4d3f49='elementEnd'==_0x37ea00['type']?_0x37ea00['previousPosition']['path']['slice'](0x0,-0x1):_0x37ea00['previousPosition']['path'],_0x5e1c2a=_0xedba88['getNodeByPath'](_0x4d3f49);_0x5e1c2a['getAttribute'](_0x1a8855)>0x0||_0x5e1c2a['_setAttribute'](_0x1a8855,_0x3e5d11[_0xec753f++]);}for(const [_0x5e7f4d,_0x106fab]of _0x1ddc7e['markers'])_0x5e7f4d['startsWith']('revision:')||this['_markers']['set'](_0x5e7f4d,_0x106fab);}const {roots:_0x32e544}=this['_savedMetaData']['get'](_0x50554b['fromVersion']),{roots:_0x35032f}=this['_savedMetaData']['get'](_0x50554b['toVersion']),_0x1b22cc=x(_0x32e544['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x1b22cc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1b22cc,Number['NEGATIVE_INFINITY']));const _0x2180a3=x(_0x35032f['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x2180a3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2180a3));const _0xe2c32b=Array['from'](this['_diffRoots'])['map'](([_0x1d093e,_0x2ba8d6])=>[_0x1d093e,x(_0x2ba8d6)]);this['_saveMetaData'](this['_lastTo'],_0xe2c32b,this['_markers'],_0x5d93a6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3220e5,_0x559e04,_0x578439,_0x43d5e1){const _0x3b64bb=new Map(_0x559e04),_0x1beff9=new Map(_0x51f737(_0x43d5e1)),_0x466050=new Map();for(const [_0x2119aa,_0x54627f]of _0x578439)_0x466050['set'](_0x2119aa,{'start':_0x54627f['start']['clone'](),'end':_0x54627f['end']['clone'](),'rootName':_0x54627f['root']['rootName']});this['_savedMetaData']['set'](_0x3220e5,{'roots':_0x3b64bb,'markers':_0x466050,'rootsAttributes':_0x1beff9});}['_removeMetaData'](_0x377d8a){this['_savedMetaData']['delete'](_0x377d8a);}['_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'](_0x46d702,_0x4f614e=null){let _0xbaf8f7=null;_0x46d702['is']('documentFragment')||(_0xbaf8f7=new _0x494a98(_0x46d702['name'],{'vid_start':null===_0x4f614e?this['_revisionId']++:_0x4f614e++}));const _0x38a504=[];for(const _0x1e453f of _0x46d702['getChildren']())if(_0x1e453f['is']('element')){_0x38a504['push'](this['_makeIdsRoot'](_0x1e453f,_0x4f614e));const _0x16d01b=_0x38a504[_0x38a504['length']-0x1];null!==_0x4f614e&&(_0x4f614e=_0x16d01b['is']('element','$text')?_0x16d01b['getAttribute']('vid')+0x1:_0x16d01b['getAttribute']('vid_end')+0x1);}else{for(let _0x296bdc=0x0;_0x296bdc<_0x1e453f['offsetSize'];_0x296bdc++)_0x38a504['push'](new _0x494a98('$text',{'vid':null===_0x4f614e?this['_revisionId']++:_0x4f614e++}));}if(_0x46d702['is']('documentFragment')){const _0x3affb9=N(_0x46d702['rootName']);return _0x3affb9['_insertChild'](0x0,_0x38a504),_0x3affb9;}return _0xbaf8f7['_setAttribute']('vid_end',null===_0x4f614e?this['_revisionId']++:_0x4f614e++),_0xbaf8f7['_insertChild'](0x0,_0x38a504),_0xbaf8f7;}['_calculateMetaData'](_0x4b6562,_0x102e0c,_0x3a4cfd){this['_reset']();const {roots:_0x3fb24b,markers:_0x2cab8a,rootsAttributes:_0x56e098}=this['_savedMetaData']['get'](_0x4b6562);this['_baseRoots']=new Map(_0x3fb24b),this['_baseRootsAttributes']=new Map(_0x51f737(_0x56e098));for(const [_0x4f3cfe,_0x3cd3bf]of this['_baseRoots'])if('$graveyard'!==_0x4f3cfe&&(this['_diffRoots']['set'](_0x4f3cfe,x(_0x3cd3bf)),this['_diffRootsAttributes']=new Map(_0x51f737(_0x56e098)),_0x3a4cfd)){const _0x359ca2=this['_revisionId'];this['_idsRoots']['set'](_0x4f3cfe,this['_makeIdsRoot'](_0x3cd3bf)),this['_baseIdsRoots']['set'](_0x4f3cfe,this['_makeIdsRoot'](_0x3cd3bf,_0x359ca2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3a4cfd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4d5804,_0x1e63d3]of _0x2cab8a){const _0x5558d8=this['_baseRoots']['get'](_0x1e63d3['rootName']),_0x217aaf=this['_diffRoots']['get'](_0x1e63d3['rootName']),_0x3dc39c=new _0x4a436d(this['_fixPosition'](_0x1e63d3['start'],_0x5558d8),this['_fixPosition'](_0x1e63d3['end'],_0x5558d8)),_0x449d08=this['_fixRange'](_0x3dc39c,_0x217aaf);_0x5558d8['markers']['set'](_0x4d5804,_0x3dc39c),this['_markers']['set'](_0x4d5804,_0x449d08);}this['_applyOperations'](_0x4b6562,_0x102e0c,_0x3a4cfd);}['_applyOperations'](_0xd537aa,_0x2bf1e1,_0x33290b){for(const _0x5a1a22 of this['source']['getOperations'](_0xd537aa,_0x2bf1e1))this['_handleOperation'](_0x5a1a22,_0x33290b);for(const _0x26ba5e of this['_diffRoots']['values']())_0x26ba5e['markers']['clear']();for(const [_0x28b986,_0x22ec16]of this['_markers']){this['_diffRoots']['get'](_0x22ec16['root']['rootName'])['markers']['set'](_0x28b986,_0x22ec16['clone']());}const _0x51405b=new Map(),_0x313d27=new Map();for(const [_0x9def0a,_0x3b70ce]of this['_diffRoots'])_0x51405b['set'](_0x9def0a,x(_0x3b70ce)),_0x313d27['set'](_0x9def0a,this['_diffRootsAttributes']['get'](_0x9def0a));this['_saveMetaData'](_0x2bf1e1,_0x51405b,this['_markers'],_0x313d27);}['_getPreviousFrom'](_0x2e7a69){const _0x449e1d=Array['from'](this['_savedMetaData']['keys']());_0x449e1d['sort']((_0x2f634d,_0x509727)=>_0x2f634d-_0x509727),_0x449e1d['reverse']();for(const _0x185939 of _0x449e1d)if(_0x185939<_0x2e7a69)return _0x185939;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5aa4a4,_0x54d2dc){const _0x1726c0=Array['from'](_0x54d2dc['markers'])['map'](([_0x55467e,_0x76eb4a])=>[_0x55467e,this['_fixRange'](_0x76eb4a,_0x5aa4a4)]);_0x5aa4a4['markers']=new Map(_0x1726c0);}['_transformMarkers'](_0x2dd3a8){for(const _0x35176b of this['_markers']['values']()){const _0x378195=_0x35176b['getTransformedByOperation'](_0x2dd3a8),_0x1b480d=_0x4a436d['_createFromRanges'](_0x378195);_0x35176b['start']=_0x1b480d['start'],_0x35176b['end']=_0x1b480d['end'];}}['_handleOperation'](_0x345b19,_0x322967){if('addRoot'!=_0x345b19['type']&&'detachRoot'!=_0x345b19['type']){if('insert'==_0x345b19['type']){const _0x2b6f98=_0x345b19['position']['root']['rootName'];this['_diffRoots']['has'](_0x2b6f98)||(this['_diffRoots']['set'](_0x2b6f98,N(_0x2b6f98,!0x0)),this['_diffRootsAttributes']['set'](_0x2b6f98,{}),_0x322967&&this['_idsRoots']['set'](_0x2b6f98,N(_0x2b6f98,!0x0)));}else{if('addRootAttribute'==_0x345b19['type']||'removeRootAttribute'==_0x345b19['type']||'changeRootAttribute'==_0x345b19['type'])return void this['_handleRootAttributeOperation'](_0x345b19);'marker'==_0x345b19['type']&&this['_handleMarkerOperation'](_0x345b19);}if('marker'!==_0x345b19['type']){const _0x5204cc=this['_cloneOperation'](_0x345b19,this['_diffRoots']);_0x5204cc['_execute'](),this['_transformMarkers'](_0x5204cc);}if(_0x322967)switch(_0x345b19['type']){case'insert':this['_handleInsertOperation'](_0x345b19);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x345b19);break;case'merge':this['_handleMergeOperation'](_0x345b19);break;case'split':this['_handleSplitOperation'](_0x345b19);}}else this['_handleRootOperation'](_0x345b19,_0x322967);}['_cloneOperation'](_0x42699b,_0x2a5933){const _0x115052=_0x42699b['clone']();return _0x115052['_authorId']=_0x42699b['_authorId'],this['_fixOperation'](_0x115052,_0x2a5933),_0x115052;}['_getBaseVids'](_0x146ff2){return _0x146ff2['map'](_0xe07b86=>{const _0x5d0d8=this['_getVidAttributeName'](_0xe07b86);return Number(_0xe07b86['item']['getAttribute'](_0x5d0d8));});}['_generateTape'](_0x7fa53e,_0x3f0c8a){if(_0x7fa53e['is']('element','$text'))_0x3f0c8a['push']({'item':_0x7fa53e,'type':'text'});else{_0x7fa53e['is']('element')&&_0x3f0c8a['push']({'item':_0x7fa53e,'type':'elementStart'});for(const _0x298b57 of _0x7fa53e['getChildren']())this['_generateTape'](_0x298b57,_0x3f0c8a);_0x7fa53e['is']('element')&&_0x3f0c8a['push']({'item':_0x7fa53e,'type':'elementEnd'});}return _0x3f0c8a;}['_getState'](){const _0x3ab091=new Map(this['_touched']),_0x36a962=new Map(_0x3ab091),_0x33d50c=new Map(),_0x472a54={'insertions':{},'deletions':{}},_0x3c8a5f={'insertions':{},'deletions':{}},_0x1ce526=new Map(),_0x53f52c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x53f52c['delete']('$graveyard');for(const _0x5b8208 of _0x53f52c){const _0x420274=this['_diffRoots']['get'](_0x5b8208)||N(_0x5b8208,!0x1),_0x3d1712=this['_baseRoots']['get'](_0x5b8208)||N(_0x5b8208,!0x1);_0x420274['isAttached']()||_0x3d1712['isAttached']()?(_0x472a54['insertions'][_0x5b8208]=x(_0x420274),_0x472a54['deletions'][_0x5b8208]=x(_0x3d1712),this['_copyMarkers'](_0x472a54['deletions'][_0x5b8208],_0x3d1712),this['_copyMarkers'](_0x472a54['insertions'][_0x5b8208],_0x420274),_0x3c8a5f['insertions'][_0x5b8208]=this['_generateTape'](this['_idsRoots']['get'](_0x5b8208),[]),_0x3c8a5f['deletions'][_0x5b8208]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5b8208)||N(_0x5b8208,!0x1),[])):_0x53f52c['delete'](_0x5b8208);}for(const _0x6b0160 of _0x53f52c){const _0x2c857f=_0x3c8a5f['insertions'][_0x6b0160];for(const _0x3a0be0 of _0x2c857f){const _0x1cf75c=this['_getVidAttributeName'](_0x3a0be0),_0x252b6f=_0x3a0be0['item']['getAttribute'](_0x1cf75c);_0x36a962['delete'](_0x252b6f),_0x252b6f>=this['_startingRevisionId']&&_0x33d50c['set'](_0x252b6f,_0x3ab091['get'](_0x252b6f));}}for(const _0x5f4b1a of _0x53f52c){const _0xb40a21=_0x3c8a5f['insertions'][_0x5f4b1a],_0x36b16d=this['_getBaseVids'](_0x3c8a5f['deletions'][_0x5f4b1a]);let _0x553874=0x0;for(const _0x3ae699 of _0xb40a21){const _0x2d87b2=this['_getVidAttributeName'](_0x3ae699),_0x113f94=_0x3ae699['item']['getAttribute'](_0x2d87b2);if(!_0x33d50c['has'](_0x113f94)&&!_0x1ce526['has'](_0x113f94)){if(_0x36a962['has'](_0x113f94))_0x553874++;else{if(_0x113f94!=_0x36b16d[_0x553874]){const _0x30e7ee=_0x3ab091['get'](_0x113f94)||_0x3ab091['get'](_0x36b16d[_0x553874]);for(;_0x113f94!=_0x36b16d[_0x553874];)_0x36a962['has'](_0x36b16d[_0x553874])||(_0x1ce526['set'](_0x36b16d[_0x553874],_0x30e7ee),_0x3ab091['set'](_0x36b16d[_0x553874],_0x30e7ee)),_0x553874++;}_0x553874++;}}}}for(const _0x142b59 of _0x53f52c){const _0x44cfbf=_0x3c8a5f['insertions'][_0x142b59];for(const _0x4d6ee2 of _0x44cfbf){const _0x3bd865=this['_getVidAttributeName'](_0x4d6ee2),_0x317f51=_0x4d6ee2['item']['getAttribute'](_0x3bd865);if(_0x1ce526['has'](_0x317f51)){const _0x327f23=_0x1ce526['get'](_0x317f51);_0x36a962['has'](_0x317f51)||_0x36a962['set'](_0x317f51,{..._0x327f23}),_0x33d50c['set'](_0x317f51,{..._0x327f23});}}}for(const _0x477553 of _0x36a962['keys']())_0x477553>=this['_startingRevisionId']&&_0x36a962['delete'](_0x477553);const _0x35940b=new Map();for(const _0x53a2e3 of _0x53f52c){let _0x568049=_0x3c8a5f['insertions'][_0x53a2e3];for(const _0x4053c3 of _0x568049)if(_0x4053c3['item']['is']('element','tableCell')){const _0x15824e=this['_getVidAttributeName'](_0x4053c3),_0x2ace32=_0x4053c3['item']['getAttribute'](_0x15824e);if(_0x33d50c['has'](_0x2ace32)){const _0x2584d7=_0x4053c3['item']['parent']['parent']['getAttribute']('vid_start'),_0x83ff6d=_0x35940b['get'](_0x2584d7)||new Set();_0x83ff6d['add'](_0x33d50c['get'](_0x2ace32)['userId']),_0x35940b['set'](_0x2584d7,_0x83ff6d);}}_0x568049=_0x3c8a5f['deletions'][_0x53a2e3];for(const _0x1e143c of _0x568049)if(_0x1e143c['item']['is']('element','tableCell')){const _0x3bff28=this['_getVidAttributeName'](_0x1e143c),_0xba7ef1=_0x1e143c['item']['getAttribute'](_0x3bff28);if(_0x36a962['has'](_0xba7ef1)){const _0x182e50=_0x1e143c['item']['parent']['parent']['getAttribute']('vid_start'),_0x5a35e8=_0x35940b['get'](_0x182e50)||new Set();_0x5a35e8['add'](_0x36a962['get'](_0xba7ef1)['userId']),_0x35940b['set'](_0x182e50,_0x5a35e8);}}for(const _0xfecbca of _0x35940b['keys']())(_0x33d50c['has'](_0xfecbca)||_0x36a962['has'](_0xfecbca))&&_0x35940b['delete'](_0xfecbca);}for(const _0xcd5801 of _0x53f52c){const _0x1caf76=_0x3c8a5f['insertions'][_0xcd5801];let _0x155435=null,_0x3937d8=null;for(const _0x4ef22c of _0x1caf76){const _0x4049fb=this['_getVidAttributeName'](_0x4ef22c),_0x16c352=_0x4ef22c['item']['getAttribute'](_0x4049fb),_0x384810=_0x35940b['get'](_0x16c352);_0x384810&&'elementStart'==_0x4ef22c['type']&&(_0x155435=Array['from'](_0x384810)[0x0],_0x3937d8=_0x4ef22c['item']['getAttribute']('vid_end')),_0x155435&&(_0x36a962['set'](_0x16c352,{'userId':_0x155435}),_0x33d50c['set'](_0x16c352,{'userId':_0x155435})),_0x16c352==_0x3937d8&&(_0x155435=null,_0x3937d8=null);}}const _0x2ecf57={},_0x5e9c3=new Set();for(const _0x44f42f of _0x53f52c){const _0x47c88a=_0x472a54['deletions'][_0x44f42f],_0x406671=_0x472a54['insertions'][_0x44f42f];for(const {userId:_0x1a69c9}of this['_touchedMarkers']['values']())null!==_0x1a69c9&&_0x5e9c3['add'](_0x1a69c9);for(const {userId:_0x41a336}of this['_touchedRoots']['values']())null!==_0x41a336&&_0x5e9c3['add'](_0x41a336);this['_markChanges'](_0x406671,_0x3c8a5f['insertions'][_0x44f42f],_0x33d50c,'insertion',_0x5e9c3),this['_markChanges'](_0x47c88a,_0x3c8a5f['deletions'][_0x44f42f],_0x36a962,'deletion',_0x5e9c3),_0x2ecf57[_0x44f42f]={'insertions':this['_prepareViewToSave'](_0x406671),'deletions':this['_prepareViewToSave'](_0x47c88a),'attachChange':this['_touchedRoots']['get'](_0x44f42f)||null,'attributesBefore':_0x51f737(this['_baseRootsAttributes']['get'](_0x44f42f))||{},'attributesAfter':_0x51f737(this['_diffRootsAttributes']['get'](_0x44f42f))};}return{'diffData':_0x2ecf57,'authorsIds':Array['from'](_0x5e9c3)};}['_processRootBeforeSave'](_0x5c6749){for(const [,_0x3f87d4]of _0x5c6749['markers']){const _0x55baa0=_0x3f87d4['start']['getAncestors']()['filter'](_0x15c60c=>'tableCell'==_0x15c60c['name']);for(const _0x565ac4 of _0x55baa0)0x1==_0x565ac4['childCount']&&_0x565ac4['getChild'](0x0)['is']('element','paragraph')&&_0x565ac4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x416006){this['_processRootBeforeSave'](_0x416006);const _0x540b42=this['editor']['data']['toView'](_0x416006,{}),_0x2f547b=Array['from'](_0x540b42['getChildren']())['map'](_0x3a9c4c=>this['_getViewJson'](_0x3a9c4c));return JSON['stringify'](_0x2f547b);}['_getViewJson'](_0x20ace8){if(_0x20ace8['is']('$text'))return _0x20ace8['data'];{const _0x49ee38=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x83ee2d=_0x20ace8,_0x33a361=this['editor']['data']['htmlProcessor']['domConverter'],_0x39b70c={'type':_0x49ee38['_getTypeCharForViewElement'](_0x83ee2d),'name':_0x83ee2d['name'],'attributes':Array['from'](_0x83ee2d['getAttributes']()),'children':Array['from'](_0x83ee2d['getChildren']())['map'](_0xbb51f3=>this['_getViewJson'](_0xbb51f3))};if(_0x20ace8['is']('uiElement')&&'$comment'!=_0x20ace8['name']){const _0x22e9df=_0x20ace8['render'](_0x33a361['domDocument'],_0x33a361);_0x39b70c['children']['push'](_0x22e9df['outerHTML']);}else{if(_0x20ace8['is']('rawElement')){const _0x51f172=_0x33a361['domDocument']['createElement'](_0x83ee2d['name']);_0x20ace8['render'](_0x51f172,_0x33a361),_0x39b70c['children']['push'](_0x51f172['innerHTML']);}}const _0x4b678f=Array['from'](_0x83ee2d['getCustomProperties']());_0x4b678f['length']>0x0&&(_0x39b70c['customProperties']=_0x4b678f);const _0x3686c5=_0x83ee2d['getFillerOffset']();return null!==_0x3686c5&&(_0x39b70c['fillerOffset']=_0x3686c5),_0x39b70c;}}['_markChanges'](_0xa951f7,_0x301ed6,_0x56f3b1,_0x1408e7,_0x9e9d67){let _0x5b6421=null,_0x1926ce=null,_0x509030=0x0;const _0x3373ea=this['editor']['model'];for(let _0x28b6ee=0x0;_0x28b6ee<_0x301ed6['length'];_0x28b6ee++){const _0x5b1ba3=this['_getVidAttributeName'](_0x301ed6[_0x28b6ee]),_0x569531=_0x301ed6[_0x28b6ee]['item']['getAttribute'](_0x5b1ba3),_0x363fcb=_0x56f3b1['get'](_0x569531),_0x3afb2e=_0x28b6ee==_0x301ed6['length']-0x1;(!_0x5b6421&&_0x363fcb&&(_0x5b6421=_0x363fcb,_0x1926ce=_0x301ed6[_0x28b6ee]),_0x5b6421&&(!_0x363fcb||_0x363fcb['userId']!=_0x5b6421['userId']))&&(_0x403aef(_0x363fcb,P(_0x1926ce,_0xa951f7,_0x3373ea),P(_0x301ed6[_0x28b6ee],_0xa951f7,_0x3373ea)),_0x5b6421=_0x363fcb||null,_0x1926ce=_0x363fcb?_0x301ed6[_0x28b6ee]:null),_0x5b6421&&_0x3afb2e&&_0x403aef(_0x363fcb,P(_0x1926ce,_0xa951f7,_0x3373ea),V(_0x301ed6[_0x28b6ee],_0xa951f7,_0x3373ea));}function _0x403aef(_0xe41c94,_0x1775b5,_0x366047){const _0x21ced1=_0x5b6421['userId'],_0x4d2d86='revision:'+_0x1408e7+':'+_0x21ced1+':'+_0x509030++,_0x31f850=_0x3373ea['createRange'](_0x1775b5,_0x366047);_0xa951f7['markers']['set'](_0x4d2d86,_0x31f850),null!==_0x21ced1&&_0x9e9d67['add'](_0x21ced1);}}['_getVidAttributeName'](_0x10d0bd){switch(_0x10d0bd['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x8a361e,_0x485ae8){_0x8a361e['baseVersion']=null;for(const _0x4e1d8c in _0x8a361e){const _0x2adfaf=_0x8a361e[_0x4e1d8c];if(_0x2adfaf instanceof _0x211198){const _0x2bccb4=_0x485ae8['get'](_0x2adfaf['root']['rootName']);_0x8a361e[_0x4e1d8c]=this['_fixPosition'](_0x2adfaf,_0x2bccb4);}if(_0x2adfaf instanceof _0x4a436d){const _0x4a6c10=_0x485ae8['get'](_0x2adfaf['root']['rootName']);_0x8a361e[_0x4e1d8c]=this['_fixRange'](_0x2adfaf,_0x4a6c10);}'root'===_0x4e1d8c&&(_0x8a361e['root']=_0x485ae8['get'](_0x8a361e['root']['rootName']));}}['_fixRange'](_0x1a9648,_0x3311e7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1a9648['start'],_0x3311e7),this['_fixPosition'](_0x1a9648['end'],_0x3311e7));}['_fixPosition'](_0x1abe3c,_0x269aa6){return this['editor']['model']['createPositionFromPath'](_0x269aa6,_0x1abe3c['path'],_0x1abe3c['stickiness']);}['_handleInsertOperation'](_0x1406d4){const _0x65814c=this['_idsRoots']['get'](_0x1406d4['position']['root']['rootName']),_0x1187fb=this['_fixPosition'](_0x1406d4['position'],_0x65814c),_0x40ec41=null===_0x1406d4['_authorId']?null:_0x1406d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ad58f=_0x1187fb['parent'],_0x23d847=this['_revisionId'],_0x346830=[];for(const _0x5f518a of _0x1406d4['nodes'])if(_0x5f518a['is']('element'))_0x346830['push'](this['_makeIdsRoot'](_0x5f518a));else{for(let _0x6bfe52=0x0;_0x6bfe52<_0x5f518a['offsetSize'];_0x6bfe52++)_0x346830['push'](new _0x494a98('$text',{'vid':this['_revisionId']++}));}const _0x30223f=this['_revisionId'];for(let _0xb5696=_0x23d847;_0xb5696<_0x30223f;_0xb5696++)this['_touched']['set'](_0xb5696,{'userId':_0x40ec41});_0x5ad58f['_insertChild'](_0x1187fb['offset'],_0x346830);}['_handleMoveOperation'](_0x432027){(_0x432027=this['_cloneOperation'](_0x432027,this['_idsRoots']))['_execute']();const _0x310d1c=null===_0x432027['_authorId']?null:_0x432027['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a58f8=_0x432027['getMovedRangeStart'](),_0x3687b7=_0x2a58f8['parent'],_0x4c9c4d=_0x2a58f8['offset'];!function _0x5319b2(_0x20ad26,_0x1bd69d,_0x4396f0,_0x2e4f00){for(let _0x2be9af=_0x4396f0;_0x2be9af<_0x2e4f00;_0x2be9af++){const _0x1b8e64=_0x1bd69d['getChild'](_0x2be9af);_0x1b8e64['is']('element','$text')?_0x20ad26['set'](_0x1b8e64['getAttribute']('vid'),{'userId':_0x310d1c}):(_0x20ad26['set'](_0x1b8e64['getAttribute']('vid_start'),{'userId':_0x310d1c}),_0x5319b2(_0x20ad26,_0x1b8e64,0x0,_0x1b8e64['childCount']),_0x20ad26['set'](_0x1b8e64['getAttribute']('vid_end'),{'userId':_0x310d1c}));}}(this['_touched'],_0x3687b7,_0x4c9c4d,_0x4c9c4d+_0x432027['howMany']);}['_handleMergeOperation'](_0x4f42e1){const _0x4ec333=null===(_0x4f42e1=this['_cloneOperation'](_0x4f42e1,this['_idsRoots']))['_authorId']?null:_0x4f42e1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x179019=_0x4f42e1['targetPosition']['parent'],_0x54922a=_0x4f42e1['sourcePosition']['parent'],_0x1e0696=_0x179019['getAttribute']('vid_end'),_0x1bcd62=_0x54922a['getAttribute']('vid_start');_0x179019['_setAttribute']('vid_end',_0x54922a['getAttribute']('vid_end')),_0x54922a['_setAttribute']('vid_end',_0x1e0696),this['_touched']['set'](_0x1bcd62,{'userId':_0x4ec333}),this['_touched']['set'](_0x1e0696,{'userId':_0x4ec333}),_0x4f42e1['_execute']();}['_handleSplitOperation'](_0x538633){const _0x4a56a7=null===(_0x538633=this['_cloneOperation'](_0x538633,this['_idsRoots']))['_authorId']?null:_0x538633['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24ac81=_0x538633['graveyardPosition'],_0x321c63=_0x538633['splitPosition']['parent'];_0x538633['_execute']();const _0x920e05=_0x321c63['getAttribute']('vid_end'),_0x1adb72=_0x538633['insertionPosition']['nodeAfter'];if(_0x24ac81){const _0x45975f=_0x1adb72['getAttribute']('vid_end'),_0x3bee7d=_0x321c63['getAttribute']('vid_end');_0x321c63['_setAttribute']('vid_end',_0x45975f),_0x1adb72['_setAttribute']('vid_end',_0x3bee7d),this['_touched']['set'](_0x321c63['getAttribute']('vid_end'),{'userId':_0x4a56a7}),this['_touched']['set'](_0x1adb72['getAttribute']('vid_start'),{'userId':_0x4a56a7});}else{const _0x540ea5=this['_revisionId']++,_0x128e19=this['_revisionId']++;_0x321c63['_setAttribute']('vid_end',_0x540ea5),_0x1adb72['_setAttribute']('vid_start',_0x128e19),_0x1adb72['_setAttribute']('vid_end',_0x920e05),this['_touched']['set'](_0x540ea5,{'userId':_0x4a56a7}),this['_touched']['set'](_0x128e19,{'userId':_0x4a56a7});}}['_handleMarkerOperation'](_0x95ee50){if(!_0x95ee50['affectsData'])return;const _0x35240d=(_0x95ee50=this['_cloneOperation'](_0x95ee50,this['_diffRoots']))['oldRange']?_0x95ee50['oldRange']['root']:null,_0x3bd650=_0x95ee50['newRange']?_0x95ee50['newRange']['root']:null;_0x35240d&&this['_markers']['delete'](_0x95ee50['name']),_0x3bd650&&this['_markers']['set'](_0x95ee50['name'],_0x95ee50['newRange']['clone']());const _0x112fa2=null===_0x95ee50['_authorId']?null:_0x95ee50['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x206b43=_0x95ee50['name'];if(!this['_touchedMarkers']['has'](_0x206b43))return void this['_touchedMarkers']['set'](_0x206b43,{'range':_0x95ee50['oldRange'],'userId':_0x112fa2});const _0x149522=this['_touchedMarkers']['get'](_0x206b43),_0x3327ae=_0x149522['range'],_0x5add98=_0x95ee50['newRange'];null==_0x3327ae&&null==_0x5add98||_0x3327ae&&_0x5add98&&_0x3327ae['isEqual'](_0x5add98)?this['_touchedMarkers']['delete'](_0x95ee50['name']):_0x149522['userId']=_0x112fa2;}['_handleRootOperation'](_0x48aa67,_0x61af5d){this['_diffRoots']['has'](_0x48aa67['rootName'])?this['_diffRoots']['get'](_0x48aa67['rootName'])['_isAttached']=_0x48aa67['isAdd']:(this['_diffRoots']['set'](_0x48aa67['rootName'],N(_0x48aa67['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x48aa67['rootName'],{}),_0x61af5d&&this['_idsRoots']['set'](_0x48aa67['rootName'],N(_0x48aa67['rootName'],!0x0)));const _0x49c01b=null===_0x48aa67['_authorId']?null:_0x48aa67['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18b016=this['_touchedRoots']['get'](_0x48aa67['rootName']);_0x18b016&&_0x18b016['userId']===_0x49c01b?this['_touchedRoots']['delete'](_0x48aa67['rootName']):this['_touchedRoots']['set'](_0x48aa67['rootName'],{'userId':_0x49c01b,'isAttached':_0x48aa67['isAdd']});}['_handleRootAttributeOperation'](_0x4df1cb){const _0xdfd5b9=this['_diffRootsAttributes']['get'](_0x4df1cb['root']['rootName']);null===_0x4df1cb['newValue']?delete _0xdfd5b9[_0x4df1cb['key']]:_0xdfd5b9[_0x4df1cb['key']]=_0x4df1cb['newValue'];}}function x(_0x52c7b8){const _0x3db963=N(_0x52c7b8['rootName'],_0x52c7b8['isAttached']());for(const _0x3107fd of _0x52c7b8['getChildren']()){const _0xab2614=_0x3107fd['_clone'](!0x0);_0x3db963['_appendChild'](_0xab2614);}return _0x3db963;}function N(_0x573d9d,_0x29eb34=!0x0){const _0x1e72ac=new _0x4b3412();return _0x1e72ac['rootName']=_0x573d9d,_0x1e72ac['_isAttached']=_0x29eb34,_0x1e72ac['isAttached']=()=>_0x1e72ac['_isAttached'],_0x1e72ac;}function P(_0x521bd2,_0x2d1f7a,_0x558d70){const _0x3a11b4='elementEnd'==_0x521bd2['type']?_0x558d70['createPositionAt'](_0x521bd2['item'],'end'):_0x558d70['createPositionBefore'](_0x521bd2['item']);return _0x558d70['createPositionFromPath'](_0x2d1f7a,_0x3a11b4['path'],_0x3a11b4['stickiness']);}function V(_0x23572d,_0x3f26c7,_0x7991bb){const _0x528303='elementStart'==_0x23572d['type']?_0x7991bb['createPositionAt'](_0x23572d['item'],0x0):_0x7991bb['createPositionAfter'](_0x23572d['item']);return _0x7991bb['createPositionFromPath'](_0x3f26c7,_0x528303['path'],_0x528303['stickiness']);}class me extends/* #__PURE__ -- @preserve */
25
+ _0x49441e(_0x308af2){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x532d34,_0x31b136){super(_0x532d34),this['focusTracker']=new _0x244945(),this['keystrokes']=new _0xf81dea(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x31b136),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x1ad748({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x32c70c=_0x1218cc=>_0x1218cc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x32c70c),this['keystrokes']['set']('arrowleft',_0x32c70c),this['keystrokes']['set']('arrowup',_0x32c70c),this['keystrokes']['set']('arrowdown',_0x32c70c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3e952c){this['revisionNameInputView']['fieldView']['element']['value']=_0x3e952c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3884a4){const _0x2f179f=new et(this['locale'],ti),_0x1884c6=_0x2f179f['fieldView'];_0x1884c6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x332e1c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3884a4&&(_0x332e1c+='\x20('+m(this['locale'],'optional')+')'),(_0x2f179f['label']=_0x332e1c,_0x1884c6['on']('input',()=>{this['revisionNameInputValue']=_0x1884c6['element']['value']['trim']();}),_0x2f179f);}}class l extends _0x2059eb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x4b23f0=this['editor'],_0x1f56ca=_0x4b23f0['plugins']['get']('RevisionTracker');_0x4b23f0['ui']['componentFactory']['add']('revisionHistory',_0x4973ea=>{const _0x492f04=_0x5c372e(_0x4973ea),_0x27abb3=_0x492f04['panelView']['children'],_0x1d0cd6=new _0x54b197(_0x4973ea),_0x227f33=new _0x2be891(_0x4973ea),_0x2da08d=new _0x2d83ad(_0x4973ea),_0x49d16c=new _0x2be891(_0x4973ea),_0x56f49c=new _0x2d83ad(_0x4973ea);return _0x492f04['bind']('isEnabled')['to'](_0x1f56ca,'isReady',_0x1f56ca,'isEnabled',_0x4b23f0,'isReadOnly',(_0x19b21c,_0x455428,_0x5187f1)=>_0x19b21c&&_0x455428&&!_0x5187f1),_0x492f04['buttonView']['set']({'icon':_0x1d31f2,'label':m(_0x4973ea,'Revision\x20history'),'tooltip':!0x0}),_0x2da08d['set']({'label':m(_0x4973ea,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2da08d['bind']('isEnabled')['to'](_0x1f56ca,'isReady',_0x1f56ca,'isEnabled',_0x4b23f0,'isReadOnly',(_0x2d5219,_0x2c5d8b,_0x1e2996)=>_0x2d5219&&_0x2c5d8b&&!_0x1e2996),_0x2da08d['on']('execute',()=>this['_showDialog']()),_0x56f49c['set']({'label':m(_0x4973ea,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x56f49c['bind']('isEnabled')['to'](_0x1f56ca,'isReady',_0x4b23f0,'isReadOnly',(_0x47674d,_0x14584a)=>_0x47674d&&!_0x14584a),_0x56f49c['on']('execute',()=>{_0x4b23f0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x492f04['isOpen']=!0x1,_0x4b23f0['editing']['view']['focus']();}),_0x227f33['children']['add'](_0x2da08d),_0x49d16c['children']['add'](_0x56f49c),_0x1d0cd6['role']='menu',_0x1d0cd6['items']['addMany']([_0x227f33,_0x49d16c]),_0x27abb3['add'](_0x1d0cd6),_0x492f04;}),_0x4b23f0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3bebfc=this['editor'],_0x386bb2=_0x3bebfc['locale'],_0xb17c79=new _0x3a9c2f(_0x386bb2),_0x31786c=new _0x5a1069(_0x386bb2);_0xb17c79['buttonView']['set']({'icon':_0x1d31f2,'label':m(_0x386bb2,'Revision\x20history')});const _0x5534fa=new _0x158c36(_0x386bb2,_0xb17c79),_0x1bf65c=new _0x4ec073(_0x386bb2);_0x1bf65c['set']({'label':m(_0x386bb2,'Save\x20current\x20revision')}),_0x1bf65c['delegate']('execute')['to'](_0xb17c79),_0x1bf65c['on']('execute',()=>{this['_showDialog']();}),_0x5534fa['children']['add'](_0x1bf65c),_0x31786c['items']['add'](_0x5534fa);const _0xe683f9=new _0x158c36(_0x386bb2,_0xb17c79),_0x2abb9f=new _0x4ec073(_0x386bb2);return _0x2abb9f['set']({'label':m(_0x386bb2,'Open\x20revision\x20history')}),_0x2abb9f['delegate']('execute')['to'](_0xb17c79),_0x2abb9f['on']('execute',()=>{_0x3bebfc['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xe683f9['children']['add'](_0x2abb9f),_0x31786c['items']['add'](_0xe683f9),_0xb17c79['panelView']['children']['add'](_0x31786c),_0xb17c79;}['_showDialog'](){const _0x303c3d=this['editor'],_0x1b42ae=_0x303c3d['locale'],_0x48a6ec=_0x303c3d['plugins']['get']('Dialog'),_0xfa92b9=_0x303c3d['plugins']['get']('RevisionTracker');function _0x4fdec6(_0x3b366b){_0x303c3d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3b366b['revisionName']?_0x3b366b['revisionNameInputView']['errorText']=m(_0x1b42ae,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x303c3d['plugins']['get'](h)['saveRevision']({'name':_0x3b366b['revisionName']}),_0x48a6ec['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4fdec6(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x48a6ec['show']({'id':'revisionSave','title':m(_0x1b42ae,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x303c3d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x48a6ec['hide']()},{'label':m(_0x303c3d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2a724d){_0x2a724d['bind']('isEnabled')['to'](_0xfa92b9,'isReady',_0xfa92b9,'isEnabled',_0x303c3d,'isReadOnly',(_0x1206a4,_0x3681bb,_0x1d3a66)=>_0x1206a4&&_0x3681bb&&!_0x1d3a66);},'onExecute':()=>_0x4fdec6(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1f29c8=this['editor'],_0x521e86=_0x1f29c8['locale'];this['_saveRevisionFormView']=new me(_0x521e86,_0x1f29c8['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x308af2{['changeId'];['_model'];constructor(_0x2c2ffc,_0x73244){super(_0x2c2ffc),this['_model']=_0x73244,this['changeId']=_0x73244['id'];const _0x10584c=this['bindTemplate'],_0xdba839=m(_0x2c2ffc,_0x73244['data']['isSuggestion']?'Suggested\x20by':'add'==_0x73244['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x73244['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x10584c['to']('type',_0x310709=>'ck-revision-change__'+_0x310709)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xdba839}]},{'text':'\x20'+_0x73244['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
+ _0x957dfc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5c385c){super(),this['id']=_0x5c385c['id']||_0x26af77(),this['author']=_0x5c385c['author'],this['type']=_0x5c385c['type'],this['data']=_0x5c385c['data']||{},this['rootName']=_0x5c385c['rootName'],this['set']('createdAt',_0x5c385c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x271802,_0x35849c){this['newRevisionId']=_0x271802,this['oldRevisionId']=_0x35849c,this['changes']=new _0x50ebf4();}['_setChanges'](_0x49b971){for(const _0x148cfa of _0x49b971)this['changes']['add'](_0x148cfa);}}class u extends _0x2059eb{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x407e0f,_0x4a31f0,S,$];}constructor(_0xe6f245){super(_0xe6f245),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x34a3f4,_0x153aea,_0x4bf5ec)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x585138=>{for(const _0x75d0a6 of this['editor']['editing']['view']['document']['roots'])_0x4bf5ec?_0x585138['removeClass']('ck-editor__editable__overlay',_0x75d0a6):_0x585138['addClass']('ck-editor__editable__overlay',_0x75d0a6);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4cdb8b=>null!==_0x4cdb8b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3474e0,_0x236207,_0x62b85c)=>_0x3474e0&&_0x62b85c?_0x236207['changes']['getIndex'](_0x62b85c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x153290,_0x41213d)=>_0x153290?_0x41213d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4a31f0);}['init'](){const _0x11e340=this['editor'],_0x357e67=new rt(_0x11e340,{'direction':'backward'}),_0x5e2bdd=new rt(_0x11e340,{'direction':'forward'});(_0x11e340['commands']['add']('showPreviousChange',_0x357e67),_0x11e340['commands']['add']('showNextChange',_0x5e2bdd),_0x11e340['commands']['add']('restoreRevision',new nt(_0x11e340)),this['on']('change:numberOfChanges',()=>{_0x357e67['refresh'](),_0x5e2bdd['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x11e340['enableReadOnlyMode']('revision-viewer'),_0x11e340['plugins']['has']('WidgetToolbarRepository'))&&_0x11e340['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x594439){return await this['_utils']['loadRevisionData'](_0x594439,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x594439);}async['getRevisionRootsAttributes'](_0xe426ae){return await this['_utils']['loadRevisionData'](_0xe426ae,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xe426ae);}async['compare'](_0x22a496,_0x470954,_0x38a7b6=!0x1){if(!this['isEnabled'])return;const _0x2c0691=this['diff'],_0x2ac73e=this['repository'],_0x414c59='string'==typeof _0x22a496?_0x2ac73e['getRevision'](_0x22a496):_0x22a496,_0x42b8d0='string'==typeof _0x470954?_0x2ac73e['getRevision'](_0x470954):_0x470954,_0x378ac6=_0x414c59['id'],_0xa8bf21=_0x42b8d0?_0x42b8d0['id']:null;if(!_0x38a7b6&&this['diff']&&this['diff']['newRevisionId']===_0x378ac6&&this['diff']['oldRevisionId']===_0xa8bf21)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x378ac6,_0xa8bf21);const _0x418a0b=this['_getRevisionsRange'](_0x414c59,_0x42b8d0,!0x0)['map'](_0xc5f206=>this['_utils']['loadRevisionData'](_0xc5f206,this['adapter']));return _0x418a0b['push'](new Promise(_0x4f3151=>{setTimeout(_0x4f3151,0x14);})),Promise['all'](_0x418a0b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x246fae=this['_getDiff'](_0x378ac6,_0xa8bf21);for(const _0x5e293b of _0x246fae['changes'])this['_changeIdToChange']['set'](_0x5e293b['id'],_0x5e293b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3ad3ff=>{for(const _0x366b87 of this['editor']['model']['document']['getRootNames']())_0x3ad3ff['detachRoot'](_0x366b87);for(const _0x45eb7c of Object['keys'](_0x246fae['model'])){const _0x13ccb5=_0x3ad3ff['addRoot'](_0x45eb7c);for(const _0x16fbb9 of Object['keys'](_0x246fae['attributes'][_0x45eb7c]))_0x3ad3ff['setAttribute'](_0x16fbb9,_0x246fae['attributes'][_0x45eb7c][_0x16fbb9],_0x13ccb5);_0x3ad3ff['insert'](_0x246fae['model'][_0x45eb7c],_0x13ccb5,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x246fae['changes'])),this['isReady']=!0x0;})['catch'](_0x39cfb8=>{console['error'](_0x39cfb8),this['_cleanUp'](),_0x2c0691&&(this['diff']=_0x2c0691),this['isReady']=!0x0;});}['addRevisionData'](_0x13a4fe,_0x183a2f){const _0x1589f3=this['repository']['createRevision'](_0x13a4fe);return _0x1589f3['on']('_update',(_0x2acd1e,_0x3560bf,_0xbed15e)=>_0x183a2f(_0x3560bf,_0xbed15e,_0x1589f3)),this['repository']['addRevision'](_0x1589f3),_0x1589f3;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x893eac=>{for(const _0x12ec68 of this['editor']['model']['document']['getRootNames']())_0x893eac['detachRoot'](_0x12ec68);});}['_sortAndFilterDiffChanges'](_0x396363){const _0x4d1c6a=[],_0x15a52b=new Map();for(const _0x3915e7 of this['editor']['model']['document']['getRootNames']()){const _0x31e42b=this['editor']['editing']['view']['getDomRoot'](_0x3915e7);if(!_0x31e42b)continue;const _0x3d2361=_0x31e42b['getClientRects']()['item'](0x0);_0x3d2361&&(_0x4d1c6a['push'](_0x3915e7),_0x15a52b['set'](_0x3915e7,_0x3d2361));}return _0x4d1c6a['sort']((_0x228533,_0x5bed1b)=>{const _0x3f259c=_0x15a52b['get'](_0x228533),_0x326f0e=_0x15a52b['get'](_0x5bed1b);return _0x3f259c['y']-_0x326f0e['y']||_0x3f259c['x']-_0x326f0e['x'];}),(_0x396363=_0x396363['filter'](_0x398b9f=>_0x4d1c6a['includes'](_0x398b9f['rootName'])))['sort']((_0x30d6eb,_0x2fa180)=>_0x4d1c6a['indexOf'](_0x30d6eb['rootName'])-_0x4d1c6a['indexOf'](_0x2fa180['rootName'])),_0x396363;}['_makeTape'](_0x7ffff5){const _0x5d17a3=Array['from'](_0x7ffff5['markers'])['filter'](([_0x74fb0c,_0x35e592])=>_0x74fb0c['startsWith']('revision:')&&!_0x35e592['isCollapsed']),_0x480fc0=Array['from'](this['editor']['model']['createRangeIn'](_0x7ffff5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5d17a3['length'])for(const _0x29af9a of _0x480fc0){const [_0x1730c7,_0x26260a]=_0x5d17a3[0x0],[,_0x1df2de,_0x15cc54]=_0x1730c7['split'](':');if(_0x26260a['end']['isEqual'](_0x29af9a['nextPosition'])&&_0x5d17a3['shift'](),(_0x29af9a['previousPosition']['isEqual'](_0x26260a['start'])||_0x29af9a['previousPosition']['isAfter'](_0x26260a['start']))&&('insertion'==_0x1df2de?_0x29af9a['isAdded']={'userId':_0x15cc54}:'deletion'==_0x1df2de&&(_0x29af9a['isRemoved']={'userId':_0x15cc54})),0x0==_0x5d17a3['length'])break;}return _0x480fc0;}['_refreshStartEndIndex'](_0x2285c4){const _0x82ea79=new Map();for(let _0x180006=0x0;_0x180006<_0x2285c4['length'];_0x180006++)'text'===_0x2285c4[_0x180006]['type']?(_0x2285c4[_0x180006]['item']['startIndex']=_0x180006,_0x2285c4[_0x180006]['item']['endIndex']=_0x180006):('elementStart'===_0x2285c4[_0x180006]['type']?_0x2285c4[_0x180006]['item']['startIndex']=_0x180006:'elementEnd'===_0x2285c4[_0x180006]['type']&&(_0x2285c4[_0x180006]['item']['endIndex']=_0x180006),_0x82ea79['set'](_0x2285c4[_0x180006]['id'],_0x180006));for(const _0x211d21 of _0x82ea79['values']())'elementStart'===_0x2285c4[_0x211d21]['type']?_0x2285c4[_0x211d21]['item']['endIndex']=_0x82ea79['get'](_0x2285c4[_0x211d21]['pairId']):'elementEnd'===_0x2285c4[_0x211d21]['type']&&(_0x2285c4[_0x211d21]['item']['startIndex']=_0x82ea79['get'](_0x2285c4[_0x211d21]['pairId']));}['_processTape'](_0xed15e7){for(let _0x36f53e=0x0;_0x36f53e<_0xed15e7['length'];_0x36f53e++){if('elementStart'===_0xed15e7[_0x36f53e]['type'])_0xed15e7[_0x36f53e]['item']['startIndex']=_0x36f53e;else{if('elementEnd'===_0xed15e7[_0x36f53e]['type']){_0xed15e7[_0x36f53e]['item']['endIndex']=_0x36f53e;const _0x57253b=_0xed15e7[_0x36f53e]['item']['startIndex'];_0xed15e7[_0x57253b]['pairId']=_0xed15e7[_0x36f53e]['id'],_0xed15e7[_0x36f53e]['pairId']=_0xed15e7[_0x57253b]['id'];}else _0xed15e7[_0x36f53e]['item']['startIndex']=_0x36f53e,_0xed15e7[_0x36f53e]['item']['endIndex']=_0x36f53e,_0xed15e7[_0x36f53e]['pairId']=null;}_0xed15e7[_0x36f53e]['markersStart']||(_0xed15e7[_0x36f53e]['markersStart']=[],_0xed15e7[_0x36f53e]['markersEnd']=[]);}}['_markInsertions'](_0x27b46c,_0x1fc5f7){const _0x216f5c=_0x27b46c['filter'](_0x2443db=>!_0x2443db['isAdded']);for(let _0x171070=0x0;_0x171070<_0x1fc5f7['length'];_0x171070++)_0x1fc5f7[_0x171070]['isAdded']&&(_0x216f5c[_0x171070]['isAdded']=_0x1fc5f7[_0x171070]['isAdded']);}['_getDiff'](_0x3b0949,_0x42d77b=null){const _0x409c91=this['repository']['getRevision'](_0x3b0949),_0x2ba34b=_0x42d77b?this['repository']['getRevision'](_0x42d77b):null,_0xc8dbd5=this['_getRevisionsRange'](_0x409c91,_0x2ba34b),_0x359b1c=_0xc8dbd5[_0xc8dbd5['length']-0x1],_0x4674f2=new Map(),_0x21e2a1={'model':{},'attributes':{},'changes':[]},_0x3ef480=new Set(),_0x517c1d=new Map();for(let _0x12e9b5=_0xc8dbd5['length']-0x1;_0x12e9b5>=0x0;_0x12e9b5--){const _0x3c8947=_0xc8dbd5[_0x12e9b5];for(const _0x2fea5a of Object['keys'](_0x3c8947['diffData']))if(_0x3c8947['diffData'][_0x2fea5a]['attachChange']){const _0x22d74f=_0x3c8947['diffData'][_0x2fea5a]['attachChange'];_0x22d74f['isAttached']?(_0x3ef480['add'](_0x2fea5a),_0x517c1d['has'](_0x2fea5a)&&_0x517c1d['get'](_0x2fea5a)['userId']==_0x22d74f['userId']?_0x517c1d['delete'](_0x2fea5a):_0x517c1d['set'](_0x2fea5a,_0x22d74f)):_0x517c1d['has'](_0x2fea5a)?(_0x3ef480['delete'](_0x2fea5a),_0x517c1d['delete'](_0x2fea5a)):(_0x3ef480['add'](_0x2fea5a),_0x517c1d['set'](_0x2fea5a,_0x22d74f));}else _0x3ef480['add'](_0x2fea5a);}for(const _0x429ea2 of _0x3ef480){const _0x1b5b71=_0x517c1d['has'](_0x429ea2)&&!_0x517c1d['get'](_0x429ea2)['isAttached'];let _0x42a237=_0x1b5b71?_0xc8dbd5['length']-0x1:0x0;const _0xf98161=_0x1b5b71?-0x1:0x1;for(;_0xc8dbd5[_0x42a237];){const _0x4dd5ed=_0xc8dbd5[_0x42a237];if(_0x4dd5ed['diffData'][_0x429ea2]){const _0x1a818e=_0x1b5b71?_0x4dd5ed['diffData'][_0x429ea2]['attributesBefore']:_0x4dd5ed['diffData'][_0x429ea2]['attributesAfter'];_0x21e2a1['attributes'][_0x429ea2]=_0x1a818e?_0x51f737(_0x1a818e):{};break;}_0x42a237+=_0xf98161;}}for(const _0xa66cea of _0xc8dbd5){_0xa66cea['model']={};for(const _0x25ec7c of _0xa66cea['authors'])_0x4674f2['set'](_0x25ec7c['id'],_0x25ec7c);for(const _0x3cca5f of _0x3ef480){const _0x580ba7=_0xa66cea['diffData'][_0x3cca5f]?_0xa66cea['diffData'][_0x3cca5f]['insertions']:'[]',_0x2991ae=_0xa66cea['diffData'][_0x3cca5f]?_0xa66cea['diffData'][_0x3cca5f]['deletions']:'[]';_0xa66cea['model'][_0x3cca5f]={'insertions':this['_utils']['_makeModelFromViewString'](_0x580ba7),'deletions':this['_utils']['_makeModelFromViewString'](_0x2991ae)};}}for(const _0x213c35 of _0x3ef480){let _0x3dca74=null,_0x30e9dd=0x0;const _0x5c15b0=new Map(Array['from'](_0x409c91['model'][_0x213c35]['insertions']['markers'])['filter'](([_0x415e70])=>!_0x415e70['startsWith']('revision:')));let _0x5835b6=0x0;for(const _0x51f930 of _0xc8dbd5){const _0x998fdd=this['_makeTape'](_0x51f930['model'][_0x213c35]['insertions']);_0x51f930==_0x409c91?(_0x3dca74=_0x998fdd,_0x30e9dd=_0x3dca74['length'],_0x3dca74['forEach'](_0x41ac86=>{_0x41ac86['id']=_0x5835b6++;}),this['_processTape'](_0x3dca74)):this['_markInsertions'](_0x3dca74,_0x998fdd);const _0x3a12fc=_0x3dca74['filter'](_0x34cff7=>!_0x34cff7['isAdded'])['map'](_0x2e5d7e=>_0x2e5d7e['id']);let _0x1ea533=0x0;const _0x113119=this['_makeTape'](_0x51f930['model'][_0x213c35]['deletions']);_0x113119['forEach'](_0x2d5360=>{_0x2d5360['isRemoved']?_0x2d5360['id']=_0x30e9dd++:_0x2d5360['id']=_0x3a12fc[_0x1ea533++];}),this['_processTape'](_0x113119),this['_setDistance'](_0x3dca74,'isAdded'),this['_setDistance'](_0x113119,'isRemoved'),_0x51f930==_0x409c91&&this['_markMarkers'](_0x3dca74,_0x5c15b0),_0x3dca74=this['_joinTapes'](_0x3dca74,_0x113119),this['_refreshStartEndIndex'](_0x3dca74),this['_setDistance'](_0x3dca74,'isRemoved');}_0x3dca74=_0x3dca74['filter'](_0x5dfbe6=>!(_0x5dfbe6['isAdded']&&_0x5dfbe6['isRemoved']));const _0x414185=new Map(_0x359b1c['model'][_0x213c35]['deletions']['markers']),_0x12b0e0=new Set(_0x5c15b0['keys']());for(const _0x298961 of _0x414185['keys']())_0x12b0e0['delete'](_0x298961);this['_markSuggestions'](_0x3dca74,_0x12b0e0),this['_fixObsoleteTags'](_0x3dca74),_0x3dca74=this['_removeMissingPairs'](_0x3dca74),_0x3dca74=this['_markMismatchedRemovedTags'](_0x3dca74),_0x3dca74=this['_removeUnsupportedChanges'](_0x3dca74);const {root:_0x3a2e2b,changes:_0x110901}=this['_makeModelFromTape'](_0x3dca74,_0x4674f2,_0x213c35);_0x21e2a1['model'][_0x213c35]=_0x3a2e2b;const _0xc94c62=_0x517c1d['get'](_0x213c35);if(_0xc94c62){const _0x40da62=_0x4674f2['get'](_0xc94c62['userId']),_0x569f8b=new G({'author':_0x40da62,'type':_0xc94c62['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x213c35});_0x110901['unshift'](_0x569f8b),_0x21e2a1['attributes'][_0x213c35]['revisionHistoryAttachChange']=_0x569f8b['id'];}_0x21e2a1['changes']=_0x21e2a1['changes']['concat'](_0x110901);}return _0x21e2a1;}['_markMarkers'](_0x2ab0af,_0x552fd4){for(let _0x1d5c9b=0x0;_0x1d5c9b<_0x2ab0af['length'];_0x1d5c9b++)for(const [_0x84374a,_0x2ecfa3]of _0x552fd4)!_0x2ecfa3['isCollapsed']&&_0x2ecfa3['start']['isEqual'](_0x2ab0af[_0x1d5c9b]['previousPosition'])&&_0x2ab0af[_0x1d5c9b]['markersStart']['push'](_0x84374a),_0x2ecfa3['end']['isEqual'](_0x2ab0af[_0x1d5c9b]['nextPosition'])&&_0x2ab0af[_0x1d5c9b]['markersEnd']['push'](_0x84374a);}['_joinTapes'](_0x580dd6,_0x314510){let _0x10ed6c=[],_0x47f3e8=0x0,_0x2816d9=0x0;for(;_0x47f3e8<_0x580dd6['length']||_0x2816d9<_0x314510['length'];){const _0x10ca9e=_0x580dd6[_0x47f3e8]||{},_0x1b1153=_0x314510[_0x2816d9]||{};if(_0x10ca9e['id']==_0x1b1153['id'])_0x47f3e8++,_0x2816d9++,_0x10ed6c['push'](_0x10ca9e);else{if(_0x1b1153['isRemoved']&&_0x10ca9e['isAdded']){const {commonTape:_0x1ebe22,iEnd:_0x72b89e,jEnd:_0x576025}=this['_threeWayMerge'](_0x580dd6,_0x47f3e8,_0x314510,_0x2816d9);_0x10ed6c=_0x10ed6c['concat'](_0x1ebe22),_0x47f3e8=_0x72b89e,_0x2816d9=_0x576025;}else _0x1b1153['isRemoved']?(_0x2816d9++,_0x10ed6c['push'](_0x1b1153)):(_0x47f3e8++,_0x10ed6c['push'](_0x10ca9e));}}return _0x10ed6c;}['_markSuggestions'](_0x3cc804,_0x276e25){const _0x37e480=[];for(let _0x7cdf4a=0x0;_0x7cdf4a<_0x3cc804['length'];_0x7cdf4a++){for(let _0x3c9288=0x0;_0x3c9288<_0x3cc804[_0x7cdf4a]['markersStart']['length'];_0x3c9288++){const _0x28153b=_0x3cc804[_0x7cdf4a]['markersStart'][_0x3c9288];if(!_0x276e25['has'](_0x28153b))continue;const {group:_0x543a1a,type:_0x24e3b7,authorId:_0x574f72}=_0x2cb701(_0x28153b);'revision-suggestion'!=_0x543a1a||'insertion'!=_0x24e3b7&&'deletion'!=_0x24e3b7||(_0x37e480['unshift']({'type':_0x24e3b7,'name':_0x28153b,'userId':_0x574f72}),_0x3cc804[_0x7cdf4a]['markersStart']['splice'](_0x3c9288,0x1),_0x3c9288--);}_0x141d64(_0x3cc804[_0x7cdf4a]);for(let _0x11c3e9=0x0;_0x11c3e9<_0x3cc804[_0x7cdf4a]['markersEnd']['length'];_0x11c3e9++){const _0x4e9f9b=_0x3cc804[_0x7cdf4a]['markersEnd'][_0x11c3e9];if(!_0x276e25['has'](_0x4e9f9b))continue;const {group:_0x319c24,type:_0x51c613}=_0x2cb701(_0x4e9f9b);if('revision-suggestion'!=_0x319c24||'insertion'!=_0x51c613&&'deletion'!=_0x51c613)continue;_0x3cc804[_0x7cdf4a]['markersEnd']['splice'](_0x11c3e9,0x1),_0x11c3e9--;const _0x346ce6=_0x37e480['findIndex'](_0x18b0ff=>_0x18b0ff['name']==_0x4e9f9b);_0x346ce6>-0x1&&_0x37e480['splice'](_0x346ce6,0x1);}}function _0x2cb701(_0x209af5){const _0x1f5fd7=_0x209af5['split'](':');return{'group':_0x1f5fd7[0x0],'type':_0x1f5fd7[0x1],'subType':_0x1f5fd7['length']>=0x5?_0x1f5fd7[0x2]:null,'id':_0x1f5fd7['length']<0x5?_0x1f5fd7[0x2]:_0x1f5fd7[0x3],'authorId':_0x1f5fd7['length']<0x5?_0x1f5fd7[0x3]:_0x1f5fd7[0x4],'markerCount':0x6==_0x1f5fd7['length']?_0x1f5fd7[0x5]:null};}function _0x141d64(_0x265df9){for(let _0x4f8d78=0x0;_0x4f8d78<_0x37e480['length'];_0x4f8d78++){if(_0x265df9['isAdded']&&'insertion'==_0x37e480[_0x4f8d78]['type']&&_0x265df9['isAdded']['userId']==_0x37e480[_0x4f8d78]['userId'])return _0x265df9['isAddSuggestion']=_0x37e480[_0x4f8d78],void delete _0x265df9['isAdded'];if(!_0x265df9['isAdded']&&!_0x265df9['isRemoved']&&'deletion'==_0x37e480[_0x4f8d78]['type'])return void(_0x265df9['isRemoveSuggestion']=_0x37e480[_0x4f8d78]);}}}['_setDistance'](_0x28cf55,_0x4290cf){let _0x51279f=0x0,_0x4a8a85=!0x1;const _0x5cf3f9=new Map();for(const _0x37b68f of _0x28cf55)_0x37b68f[_0x4290cf]?_0x4a8a85&&(_0x51279f++,_0x4a8a85=!0x1):(_0x51279f++,_0x4a8a85=!0x0),_0x5cf3f9['set'](_0x37b68f['id'],_0x51279f);for(let _0x5e41de=0x0;_0x5e41de<_0x28cf55['length'];_0x5e41de++){if('isRemoved'==_0x4290cf&&_0x28cf55[_0x5e41de]['isAdded']||'isAdded'==_0x4290cf&&_0x28cf55[_0x5e41de]['isRemoved'])continue;if('text'==_0x28cf55[_0x5e41de]['type']){_0x28cf55[_0x5e41de]['distance']=0x0;continue;}const _0x395624=_0x5cf3f9['get'](_0x28cf55[_0x5e41de]['pairId']),_0x1d5d31=_0x5cf3f9['get'](_0x28cf55[_0x5e41de]['id']);_0x28cf55[_0x5e41de]['distance']=_0x395624-_0x1d5d31;}}['_getRevisionsRange'](_0x4b5319,_0x92eab1,_0x25b714=!0x1){const _0x5863e3=[];let _0x2e8d5e=this['repository']['getIndex'](_0x4b5319),_0x926202=this['repository']['getIndex'](_0x92eab1);for(-0x1==_0x926202&&(_0x926202=this['repository']['_revisions']['length'],_0x25b714=!0x1);_0x2e8d5e<_0x926202;)_0x5863e3['push'](this['repository']['getRevision'](_0x2e8d5e)),_0x2e8d5e++;return _0x25b714&&_0x5863e3['push'](this['repository']['getRevision'](_0x2e8d5e)),_0x5863e3;}['_threeWayMerge'](_0x58ed4a,_0x33fadf,_0x5e4b6b,_0x21f139){const _0x807711=this['editor']['model']['schema'];let _0xb365c3=_0x33fadf;for(;_0x58ed4a[_0xb365c3]&&_0x58ed4a[_0xb365c3]['isAdded'];)_0xb365c3++;let _0x3b7f32=_0x21f139;for(;_0x5e4b6b[_0x3b7f32]&&_0x5e4b6b[_0x3b7f32]['isRemoved'];)_0x3b7f32++;_0x241878(_0x58ed4a,_0x33fadf,_0xb365c3),_0x241878(_0x5e4b6b,_0x21f139,_0x3b7f32);const _0x3f3e48=_0x5e4b6b['slice'](_0x21f139,_0x3b7f32)['concat'](_0x58ed4a['slice'](_0x33fadf,_0xb365c3));return _0x3f3e48['sort']((_0x4e7f09,_0x407df8)=>_0x4e7f09['side']!=_0x407df8['side']?_0x4e7f09['side']-_0x407df8['side']:_0x4e7f09['level']!=_0x407df8['level']?_0x4e7f09['level']-_0x407df8['level']:_0x4e7f09['distance']!=_0x407df8['distance']?_0x407df8['distance']-_0x4e7f09['distance']:!!_0x4e7f09['isAdded']!=!!_0x407df8['isAdded']?-0x1==_0x4e7f09['side']||0x0==_0x4e7f09['side']?_0x4e7f09['isAdded']?-0x1:0x1:_0x4e7f09['isAdded']?0x1:-0x1:_0x4e7f09['index']-_0x407df8['index']),{'commonTape':_0x3f3e48,'iEnd':_0xb365c3,'jEnd':_0x3b7f32};function _0x241878(_0x199ac0,_0x11eabf,_0x16ac06){let _0x5e988a=-0x1,_0x2748f9=Number['POSITIVE_INFINITY'],_0x3dc86a=!0x0;for(let _0x15f120=_0x11eabf;_0x15f120<_0x16ac06;_0x15f120++)if(_0x807711['isInline'](_0x199ac0[_0x15f120]['item'])||(_0x3dc86a=!0x1),_0x199ac0[_0x15f120]['item']['startIndex']<_0x11eabf&&(_0x5e988a=_0x15f120),_0x199ac0[_0x15f120]['item']['endIndex']>=_0x16ac06){_0x2748f9=_0x15f120;break;}_0x3dc86a&&(_0x5e988a=_0x16ac06-0x1);for(let _0x1f6925=_0x11eabf;_0x1f6925<_0x16ac06;_0x1f6925++)_0x199ac0[_0x1f6925]['side']=_0x1f6925<=_0x5e988a?-0x1:_0x1f6925<_0x2748f9?0x0:0x1,_0x199ac0[_0x1f6925]['index']=_0x1f6925;let _0x445345=0x0;for(let _0x5626e7=_0x11eabf;_0x5626e7<=_0x5e988a;_0x5626e7++)0x0==_0x199ac0[_0x5626e7]['distance']?_0x199ac0[_0x5626e7]['level']=_0x445345:(_0x445345++,_0x199ac0[_0x5626e7]['level']=_0x445345,_0x445345++);for(let _0xe95728=_0x11eabf;_0xe95728<_0x16ac06;_0xe95728++)0x0==_0x199ac0[_0xe95728]['side']&&(_0x199ac0[_0xe95728]['level']=_0x445345);_0x445345=0x0;for(let _0x1d59b0=_0x16ac06-0x1;_0x1d59b0>=_0x2748f9;_0x1d59b0--)0x0==_0x199ac0[_0x1d59b0]['distance']?_0x199ac0[_0x1d59b0]['level']=_0x445345:(_0x445345--,_0x199ac0[_0x1d59b0]['level']=_0x445345,_0x445345--);}}['_fixObsoleteTags'](_0x52961e){const _0x3bef44=new Map(),_0x5ae40e=this['editor']['model']['schema'];for(let _0x36882f=0x1;_0x36882f<_0x52961e['length'];_0x36882f++){let _0x1d2692,_0x461ddd,_0x2e16f6;const _0x466a00=_0x52961e[_0x36882f],_0xf92d0d=_0x52961e[_0x36882f-0x1];if('text'==_0x466a00['type'])continue;if(_0x466a00['type']!=_0xf92d0d['type'])continue;if(!_0x5ae40e['isBlock'](_0xf92d0d['item'])||_0x5ae40e['isLimit'](_0xf92d0d['item']))continue;if(!_0x5ae40e['isBlock'](_0x466a00['item'])||_0x5ae40e['isLimit'](_0x466a00['item']))continue;if((_0x52961e[_0x36882f]['isAdded']||_0x52961e[_0x36882f]['isAddSuggestion'])&&_0x52961e[_0x36882f-0x1]['isRemoved'])_0x1d2692=_0x52961e[_0x36882f],_0x461ddd=_0x52961e[_0x36882f-0x1],_0x2e16f6=_0x36882f-0x1;else{if(!_0x52961e[_0x36882f]['isRemoved']||!_0x52961e[_0x36882f-0x1]['isAdded']&&!_0x52961e[_0x36882f-0x1]['isAddSuggestion'])continue;_0x1d2692=_0x52961e[_0x36882f-0x1],_0x461ddd=_0x52961e[_0x36882f],_0x2e16f6=_0x36882f;}const _0x14119f=_0x1d2692['level']==_0x461ddd['level'],_0x1bb3ef=Math['abs'](_0x1d2692['level'])<Math['abs'](_0x461ddd['level'])&&0x0==_0x461ddd['distance'];(_0x14119f||_0x1bb3ef)&&(_0x3bef44['set'](_0x461ddd['id'],_0x1d2692['id']),_0x52961e['splice'](_0x2e16f6,0x1),_0x36882f--,_0x1d2692['isAdded']=!0x1);}for(let _0x4919a9=0x0;_0x4919a9<_0x52961e['length'];_0x4919a9++)_0x3bef44['has'](_0x52961e[_0x4919a9]['pairId'])&&(_0x52961e[_0x4919a9]['pairId']=_0x3bef44['get'](_0x52961e[_0x4919a9]['pairId']));}['_removeMissingPairs'](_0x329308){const _0x4373e4=new Set(_0x329308['map'](_0x27c668=>_0x27c668['id']));for(let _0x3a1edc=0x0;_0x3a1edc<_0x329308['length'];_0x3a1edc++)_0x4373e4['has'](_0x329308[_0x3a1edc]['pairId'])||0x0==_0x329308[_0x3a1edc]['distance']||(_0x329308[_0x3a1edc]['isIncorrect']=!0x0);return _0x329308['filter'](_0x32451b=>!_0x32451b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x54b9f7){const _0x3fe56f=new Set();for(let _0x18ceda=0x0;_0x18ceda<_0x54b9f7['length'];_0x18ceda++){if(_0x3fe56f['has'](_0x54b9f7[_0x18ceda]['id'])&&_0x54b9f7[_0x18ceda]['isRemoved']&&(_0x54b9f7[_0x18ceda]['isIncorrect']=!0x0),_0x54b9f7[_0x18ceda]['isIncorrect'])continue;if(0x0==_0x54b9f7[_0x18ceda]['distance'])continue;if('elementStart'!=_0x54b9f7[_0x18ceda]['type'])continue;if(null==_0x54b9f7[_0x18ceda]['pairId'])continue;let _0x443647=_0x18ceda+0x1,_0x1253c6=0x0;for(;_0x54b9f7[_0x443647]['id']!=_0x54b9f7[_0x18ceda]['pairId'];)'elementStart'==_0x54b9f7[_0x443647]['type']?_0x1253c6++:'elementEnd'==_0x54b9f7[_0x443647]['type']&&_0x1253c6--,_0x443647++;if(0x0!=_0x1253c6){if(_0x54b9f7[_0x18ceda]['isRemoved'])_0x54b9f7[_0x18ceda]['isIncorrect']=!0x0;else{for(;_0x443647!=_0x18ceda;)_0x54b9f7[_0x443647]['isRemoved']&&0x0!=_0x54b9f7[_0x443647]['distance']&&(_0x54b9f7[_0x443647]['isIncorrect']=!0x0,_0x3fe56f['add'](_0x54b9f7[_0x443647]['pairId'])),_0x443647--;}}}return _0x54b9f7['filter'](_0x1f2a73=>!_0x1f2a73['isIncorrect']);}['_removeUnsupportedChanges'](_0x9ac54a){const _0x26d273=this['editor']['model']['schema'];for(let _0x420d56=0x0;_0x420d56<_0x9ac54a['length'];_0x420d56++){if(!(_0x9ac54a[_0x420d56]['isAdded']||_0x9ac54a[_0x420d56]['isAddSuggestion']||_0x9ac54a[_0x420d56]['isRemoved']||_0x9ac54a[_0x420d56]['isRemoveSuggestion']))continue;if(0x0==_0x9ac54a[_0x420d56]['distance'])continue;const _0x4ff7e4=_0x9ac54a[_0x420d56]['item'];_0x26d273['isBlock'](_0x4ff7e4)||_0x26d273['isLimit'](_0x4ff7e4)||(_0x9ac54a[_0x420d56]['isAdded']&&delete _0x9ac54a[_0x420d56]['isAdded'],_0x9ac54a[_0x420d56]['isAddSuggestion']&&delete _0x9ac54a[_0x420d56]['isAddSuggestion'],_0x9ac54a[_0x420d56]['isRemoveSuggestion']&&delete _0x9ac54a[_0x420d56]['isRemoveSuggestion'],_0x9ac54a[_0x420d56]['isRemoved']&&(_0x9ac54a[_0x420d56]['isIncorrect']=!0x0));}return _0x9ac54a['filter'](_0x4ac47b=>!_0x4ac47b['isIncorrect']);}['_makeModelFromTape'](_0x3a67dd,_0x3c5f53,_0x274c9b){const _0x51ceaf=new _0x4b3412(),_0x3b260b=[],_0x2d4e30=new Map(),_0x10549b=this['editor']['model'],_0x28f78e=_0x10549b['schema'],_0x119bc1=[_0x51ceaf],_0x365307={},_0xa92894={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x416c0b=null;const _0x27873f=[0x0];for(let _0x4154f0=0x0;_0x4154f0<_0x3a67dd['length'];_0x4154f0++)if('elementStart'===_0x3a67dd[_0x4154f0]['type']){_0x3a67dd[_0x4154f0]['previousPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f);const _0x1715d9=new _0x494a98(_0x3a67dd[_0x4154f0]['item']['name'],_0x3a67dd[_0x4154f0]['item']['getAttributes']());_0x119bc1[0x0]['_appendChild'](_0x1715d9),_0x27873f['push'](0x0),_0x119bc1['unshift'](_0x1715d9),_0x3a67dd[_0x4154f0]['nextPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f);}else'elementEnd'===_0x3a67dd[_0x4154f0]['type']?(_0x119bc1['shift'](),_0x3a67dd[_0x4154f0]['previousPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f),_0x27873f['pop'](),_0x27873f[_0x27873f['length']-0x1]++,_0x3a67dd[_0x4154f0]['nextPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f)):(_0x3a67dd[_0x4154f0]['previousPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f),_0x416c0b?_0x416c0b['_data']+=_0x3a67dd[_0x4154f0]['item']['data']:_0x416c0b=new _0xd38aa6(_0x3a67dd[_0x4154f0]['item']['data'],_0x3a67dd[_0x4154f0]['item']['getAttributes']()),_0x3a67dd[_0x4154f0+0x1]&&'text'===_0x3a67dd[_0x4154f0+0x1]['type']&&_0x4ba3e1(_0x416c0b,_0x3a67dd[_0x4154f0+0x1]['item'])||(_0x119bc1[0x0]['_appendChild'](_0x416c0b),_0x416c0b=null),_0x27873f[_0x27873f['length']-0x1]+=_0x3a67dd[_0x4154f0]['item']['offsetSize'],_0x3a67dd[_0x4154f0]['nextPosition']=_0x10549b['createPositionFromPath'](_0x51ceaf,_0x27873f));for(let _0x3b2c06=0x0;_0x3b2c06<_0x3a67dd['length'];_0x3b2c06++){const _0x1c7db4=_0x3a67dd[_0x3b2c06]['previousPosition'],_0x3b2572=_0x3a67dd[_0x3b2c06]['nextPosition'];for(const _0x36a8e6 of _0x3a67dd[_0x3b2c06]['markersStart'])_0x2d4e30['set'](_0x36a8e6,{'start':_0x1c7db4,'end':null});_0x3ed1cc('isRemoveSuggestion',_0x3b2c06,_0x1c7db4,_0x3b2572),_0x3ed1cc('isAddSuggestion',_0x3b2c06,_0x1c7db4,_0x3b2572),_0x3ed1cc('isRemoved',_0x3b2c06,_0x1c7db4,_0x3b2572),_0x3ed1cc('isAdded',_0x3b2c06,_0x1c7db4,_0x3b2572);for(const _0x586ad0 of _0x3a67dd[_0x3b2c06]['markersEnd']){const _0x153acf=_0x2d4e30['get'](_0x586ad0);_0x153acf?_0x153acf['end']=_0x3b2572:_0x2d4e30['set'](_0x586ad0,{'start':_0x3b2572,'end':_0x3b2572});}}for(const [_0x5a042f,_0x427c1b]of _0x2d4e30){const _0x47ab28=this['editor']['model']['createRange'](_0x427c1b['start'],_0x427c1b['end']);_0x51ceaf['markers']['set'](_0x5a042f,_0x47ab28);}return _0x3b260b['sort']((_0x13bc19,_0x12dcd3)=>{const _0x13dcea=_0x51ceaf['markers']['get']('revision:'+_0x13bc19['id']),_0x84231=_0x51ceaf['markers']['get']('revision:'+_0x12dcd3['id']);return _0x13dcea['start']['isBefore'](_0x84231['start'])?-0x1:_0x13dcea['start']['isAfter'](_0x84231['start'])?0x1:_0x13dcea['end']['isBefore'](_0x84231['end'])?-0x1:_0x13dcea['end']['isAfter'](_0x84231['end'])?0x1:'add'===_0x13bc19['type']?-0x1:0x1;}),{'root':_0x51ceaf,'changes':_0x3b260b};function _0x3ed1cc(_0xeb141e,_0x58f9f8,_0x1ea056,_0x2e3d73){const _0x333f8c=!!_0x3a67dd[_0x58f9f8][_0xeb141e],_0x4462dd=_0x333f8c?_0x3a67dd[_0x58f9f8][_0xeb141e]['userId']:null,_0x474406=_0x58f9f8===_0x3a67dd['length']-0x1,_0x1342cb=_0xa92894[_0xeb141e][0x0],_0x4ff78d=_0x28f78e['isObject'](_0x3a67dd[_0x58f9f8]['item']);!_0x365307[_0xeb141e]&&_0x333f8c?_0x365307[_0xeb141e]={'start':_0x1ea056,'tapeItem':_0x3a67dd[_0x58f9f8],'userId':_0x4462dd,'type':_0xeb141e}:_0x365307[_0xeb141e]&&!_0x333f8c?(_0x365307[_0xeb141e]['end']=_0x1ea056,_0x35d6b1(_0x365307[_0xeb141e]),_0x365307[_0xeb141e]=null):_0x365307[_0xeb141e]&&_0x333f8c&&_0x365307[_0xeb141e]['userId']!==_0x4462dd&&(_0x365307[_0xeb141e]['end']=_0x1ea056,_0x1342cb&&_0x1342cb['userId']===_0x365307[_0xeb141e]['userId']||_0x35d6b1(_0x365307[_0xeb141e]),_0x365307[_0xeb141e]={'start':_0x1ea056,'tapeItem':_0x3a67dd[_0x58f9f8],'userId':_0x4462dd,'type':_0xeb141e}),_0x365307[_0xeb141e]&&_0x4ff78d&&('elementStart'!==_0x3a67dd[_0x58f9f8]['type']||_0x1342cb&&_0x1342cb['userId']===_0x4462dd||_0xa92894[_0xeb141e]['unshift']({'userId':_0x4462dd,'object':_0x3a67dd[_0x58f9f8]['item'],'change':_0x365307[_0xeb141e]}),'elementEnd'===_0x3a67dd[_0x58f9f8]['type']&&_0x1342cb&&_0x1342cb['object']===_0x3a67dd[_0x58f9f8]['item']&&(_0xa92894[_0xeb141e]['shift'](),_0x365307[_0xeb141e]=_0x1342cb['change'])),_0x365307[_0xeb141e]&&_0x474406&&(_0x365307[_0xeb141e]['end']=_0x2e3d73,_0x35d6b1(_0x365307[_0xeb141e]),_0x365307[_0xeb141e]=null);}function _0x35d6b1({start:_0x4793f6,end:_0x4a3cbf,tapeItem:_0x2ece22,userId:_0x2ee19a,type:_0x149892}){const _0x1f3fc9=_0x2ece22['item'],_0xfef86a=_0x10549b['schema']['isBlock'](_0x1f3fc9)&&!_0x10549b['schema']['isLimit'](_0x1f3fc9),_0x2b1ced=_0x4793f6['nodeAfter']==_0x4a3cbf['parent']&&_0x4a3cbf['isAtStart'];if(_0xfef86a&&_0x2b1ced)return;const _0x123bf3=_0x10549b['createRange'](_0x4793f6,_0x4a3cbf),_0x4f118d=_0x3c5f53['get'](_0x2ee19a),_0x3e4970=new G({'author':_0x4f118d,'type':'isAdded'==_0x149892||'isAddSuggestion'==_0x149892?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x149892||'isRemoveSuggestion'==_0x149892},'createdAt':new Date(),'rootName':_0x274c9b});_0x3b260b['push'](_0x3e4970),_0x51ceaf['markers']['set']('revision:'+_0x3e4970['id'],_0x123bf3);}function _0x4ba3e1(_0x550122,_0x4cf018){const _0x5553f8=_0x550122['getAttributes'](),_0x148897=_0x4cf018['getAttributes']();for(const _0xefafb5 of _0x5553f8){if(_0xefafb5[0x1]!==_0x4cf018['getAttribute'](_0xefafb5[0x0]))return!0x1;_0x148897['next']();}return _0x148897['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2452a5=>{const _0x22d265=_0x2452a5['markerName']['split'](':')[0x1],_0x3e0d9b=this['_getChangeFromId'](_0x22d265);if(!_0x3e0d9b)return null;const _0x41d92c='add'==_0x3e0d9b['type']?'insertion':'deletion',_0x12a396=['ck-suggestion-marker','ck-suggestion-marker-'+_0x41d92c];return _0x3e0d9b['data']['isSuggestion']&&_0x12a396['push']('ck-suggestion-marker-'+_0x41d92c+'-new'),this['activeChange']==_0x3e0d9b&&_0x12a396['push']('ck-suggestion-marker--active'),{'classes':_0x12a396,'attributes':{'data-change-id':_0x22d265}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x421c5d=>{_0x421c5d['on']('element:pre',(_0x9e4b05,_0x2719ee,_0x530d94)=>{const _0x951a8e=_0x2719ee['viewItem']['getChild'](0x0);if(!_0x951a8e||!_0x951a8e['is']('element','code'))return;if(!_0x530d94['consumable']['consume'](_0x951a8e,{'attributes':['vid_start','vid_end']}))return;const _0x39badf=_0x2719ee['modelRange']['start']['nodeAfter'];_0x530d94['writer']['setAttribute']('vid_start',_0x951a8e['getAttribute']('vid_start'),_0x39badf),_0x530d94['writer']['setAttribute']('vid_end',_0x951a8e['getAttribute']('vid_end'),_0x39badf);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x16996f=>{_0x16996f['on']('element',(_0x27828c,_0xdd2b31,_0x4ac978)=>{if(!_0x4ac978['consumable']['consume'](_0xdd2b31['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xdd2b31['modelRange']['isCollapsed'])return;const _0x1631f3=_0xdd2b31['modelRange']['start']['nodeAfter'];_0x1631f3['hasAttribute']('vid_start')||_0x1631f3['hasAttribute']('vid')||(_0x4ac978['writer']['setAttribute']('vid_start',_0xdd2b31['viewItem']['getAttribute']('vid_start'),_0x1631f3),_0x4ac978['writer']['setAttribute']('vid_end',_0xdd2b31['viewItem']['getAttribute']('vid_end'),_0x1631f3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x7d13d5=>_0x7d13d5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1d13ba,[,_0x228074])=>{['vid_start','vid_end','vid']['includes'](_0x228074)&&(_0x1d13ba['return']=!0x0,_0x1d13ba['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1bec0f=>{_0x1bec0f['on']('attribute:vid',(_0x535fcb,_0x3c8215,_0x52cdc1)=>{if('\x20'!=_0x3c8215['item']['data']||_0x3c8215['item']['parent']['maxOffset']>0x1)return;if(!_0x52cdc1['consumable']['consume'](_0x3c8215['item'],_0x535fcb['name']))return;const _0x5b9493=_0x52cdc1['writer'],_0x3fcc5a=_0x52cdc1['mapper']['toViewRange'](_0x3c8215['range']);_0x5b9493['wrap'](_0x3fcc5a,_0x5b9493['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x39498d){const _0x5e3f6a=_0x39498d['plugins']['get']('RevisionViewer');return(_0x1f6af3,_0x1e1388,_0x400b96)=>{const _0x8d2839=_0x1e1388['markerName']['split'](':')[0x1],_0x58e5dc=_0x5e3f6a['_getChangeFromId'](_0x8d2839);if(!_0x58e5dc)return null;const _0x45547b='add'==_0x58e5dc['type']?'split':'merge';if(!_0x400b96['consumable']['test'](_0x1e1388['markerRange'],_0x1f6af3['name']))return;const _0x2a0493=_0x1e1388['markerRange']['getWalker'](),_0x5b7dd2=_0x1e1388['markerRange']['start'],_0x44c34f=_0x39498d['model']['schema'];let _0x490271=null,_0x418e98=null,_0x4e093a=!0x1,_0x48d74e=!0x1;for(const _0x2ee718 of _0x2a0493){const _0x49ac69=_0x2ee718['item'];_0x4e093a=_0x4e093a||_0x44c34f['isContent'](_0x49ac69);const _0x9a5ddb=_0x400b96['mapper']['toViewElement'](_0x49ac69);if(_0x9a5ddb&&_0x9a5ddb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2ee718['type']&&(_0x44c34f['isBlock'](_0x49ac69)&&!_0x44c34f['isLimit'](_0x49ac69)&&(_0x49ac69['nextSibling']||_0x5b7dd2['isAtEnd']?_0x490271&&_0x490271['parent']==_0x49ac69||(_0x490271=_0x49ac69,_0x3d2e5b(_0x2ee718['previousPosition']),_0x48d74e=!0x0):_0x418e98=_0x418e98||_0x2ee718['previousPosition']));}function _0x3d2e5b(_0x287855){const _0x228e5e=_0x400b96['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45547b}),_0x4eff4a=_0x400b96['mapper']['toViewPosition'](_0x287855);_0x58e5dc['data']['isSuggestion']&&_0x400b96['writer']['addClass']('ck-suggestion-marker-'+_0x45547b+'-new',_0x228e5e),_0x5e3f6a['activeChange']==_0x58e5dc&&_0x400b96['writer']['addClass']('ck-suggestion-marker--active',_0x228e5e),_0x400b96['writer']['insert'](_0x4eff4a,_0x228e5e),_0x400b96['mapper']['bindElementToMarker'](_0x228e5e,_0x1e1388['markerName']);}_0x4e093a||_0x48d74e||!_0x418e98||_0x3d2e5b(_0x418e98);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2e2ba1,_0x3ed91e,_0x2706c2)=>{const _0x16f042=_0x2706c2['mapper']['markerNameToElements'](_0x3ed91e['markerName']);if(_0x16f042){for(const _0x39e708 of _0x16f042)(_0x39e708['hasClass']('ck-suggestion-marker-split')||_0x39e708['hasClass']('ck-suggestion-marker-merge'))&&(_0x2706c2['mapper']['unbindElementFromMarkerName'](_0x39e708,_0x3ed91e['markerName']),_0x2706c2['writer']['remove'](_0x39e708));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x54c3d5,_0x10be46,_0x19fc38)=>{const _0x2aa78f=_0x10be46['markerName']['split'](':')[0x1],_0x2b53d4=this['_getChangeFromId'](_0x2aa78f);if(!_0x2b53d4)return null;const _0x2f7d40='add'==_0x2b53d4['type']?'split':'merge';if(_0x19fc38['consumable']['test'](_0x10be46['markerRange'],_0x54c3d5['name']))for(const _0x2a8802 of _0x10be46['markerRange']['getItems']()){if(!_0x2a8802['is']('element','softBreak'))continue;const _0x4acf23=_0x19fc38['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f7d40}),_0x19c139=_0x19fc38['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2a8802));_0x2b53d4['data']['isSuggestion']&&_0x19fc38['writer']['addClass']('ck-suggestion-marker-'+_0x2f7d40+'-new',_0x4acf23),this['activeChange']==_0x2b53d4&&_0x19fc38['writer']['addClass']('ck-suggestion-marker--active',_0x4acf23),_0x19fc38['writer']['insert'](_0x19c139,_0x4acf23),_0x19fc38['mapper']['bindElementToMarker'](_0x4acf23,_0x10be46['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x504497=>{for(const _0x427112 of this['editor']['model']['document']['getRootNames']()){const _0x135c88=this['editor']['model']['document']['getRoot'](_0x427112),_0x427d02=this['editor']['editing']['view']['document']['getRoot'](_0x427112);if(_0x427d02){const _0x27b4fc=_0x135c88['getAttribute']('revisionHistoryAttachChange');if(_0x504497['removeAttribute']('data-change-id',_0x427d02),_0x504497['removeClass']('ck-revision-history-root-add',_0x427d02),_0x504497['removeClass']('ck-revision-history-root-remove',_0x427d02),_0x504497['removeClass']('ck-revision-history-root--active',_0x427d02),_0x27b4fc){const _0x2a5b29=this['_getChangeFromId'](_0x27b4fc);if(!_0x2a5b29)return null;_0x504497['setAttribute']('data-change-id',_0x27b4fc,_0x427d02),_0x504497['addClass']('ck-revision-history-root-'+_0x2a5b29['type'],_0x427d02),this['activeChange']==_0x2a5b29&&_0x504497['addClass']('ck-revision-history-root--active',_0x427d02);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x250dd8=>'revision-comment:'+_0x250dd8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x57af27=>'revision-suggestion:'+_0x57af27,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x112863=>({'name':'suggestion:'+_0x112863,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2126c1=>{const _0x3a41d4=_0x2126c1['markerName']['split'](':')[0x1];return'insertion'!=_0x3a41d4&&'deletion'!=_0x3a41d4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3a41d4]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x323e3d,_0x2e0e01,_0x2cb2c9)=>{const _0x19a742=_0x2cb2c9['mapper']['markerNameToElements'](_0x2e0e01['markerName']);if(_0x19a742){for(const _0x1971a4 of _0x19a742)_0x1971a4['is']('uiElement')&&(_0x2cb2c9['mapper']['unbindElementFromMarkerName'](_0x1971a4,_0x2e0e01['markerName']),_0x2cb2c9['writer']['remove'](_0x1971a4));}},{'priority':'high'});}['_getChangeFromId'](_0x14a68b){return this['_changeIdToChange']['get'](_0x14a68b);}['_getViewForChange'](_0xd7d835){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0xd7d835),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x231dc5,_0x3f83cd,_0x1fe690,_0x8ea61c)=>{_0x8ea61c&&this['_balloon']['remove'](_0x8ea61c),_0x1fe690&&(this['_balloon']['add']({'view':_0x1fe690,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1ce111=this['editor']['editing'],_0x55b912=this['_getChangeFromId'](_0x1fe690['changeId']);let _0x2b0a17;if(_0x55b912['data']['isOnRoot']){const _0x23041e=_0x1ce111['view']['getDomRoot'](_0x55b912['rootName']);_0x2b0a17=Array['from'](_0x23041e['getClientRects']());}else{const _0x104355=this['editor']['model']['markers']['get']('revision:'+_0x1fe690['changeId']);_0x2b0a17=Array['from'](_0x1ce111['mapper']['markerNameToElements'](_0x104355['name']))['map'](_0x2301d1=>_0x1ce111['view']['domConverter']['mapViewToDom'](_0x2301d1))['map'](_0x1450a3=>Array['from'](_0x1450a3['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2b0a17[0x0];return _0x2b0a17['find'](_0x1e86c7=>_0x1e86c7['top']-0x3<=this['_activeViewTarget']['y']&&_0x1e86c7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1e86c7['left']-0x3<=this['_activeViewTarget']['x']&&_0x1e86c7['right']+0x3>=this['_activeViewTarget']['x'])||_0x2b0a17[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x51fc16,_0x2e47f0,_0x1a76bd,_0x4d615f)=>{this['activeView']=_0x1a76bd?this['_getViewForChange'](_0x1a76bd):null,this['editor']['model']['change'](()=>{const _0x8dc14=this['editor']['editing'];_0x4d615f&&(_0x4d615f['data']['isOnRoot']?_0x8dc14['view']['change'](_0x2a9d5a=>{_0x2a9d5a['removeClass']('ck-revision-history-root--active',_0x8dc14['view']['document']['getRoot'](_0x4d615f['rootName']));}):_0x8dc14['reconvertMarker']('revision:'+_0x4d615f['id'])),_0x1a76bd&&(_0x1a76bd['data']['isOnRoot']?_0x8dc14['view']['change'](_0x1ade38=>{_0x1ade38['addClass']('ck-revision-history-root--active',_0x8dc14['view']['document']['getRoot'](_0x1a76bd['rootName']));}):_0x8dc14['reconvertMarker']('revision:'+_0x1a76bd['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x60e6b9,_0x299145)=>{if(this['activeChange'])return;const _0x20e902=this['_findChangeIdFromDomTarget'](_0x299145['target']),_0x28ce00=this['_changeIdToChange']['get'](_0x20e902);_0x28ce00?(this['_activeViewTarget']={'x':_0x299145['domEvent']['x'],'y':_0x299145['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x28ce00)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2ecee6,_0x440123)=>{const _0x2a5e76=this['_findChangeIdFromDomTarget'](_0x440123['target']),_0x2d685e=this['_changeIdToChange']['get'](_0x2a5e76);_0x2d685e?(this['_activeViewTarget']={'x':_0x440123['domEvent']['x'],'y':_0x440123['domEvent']['y']},_0x2d685e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d685e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2b47ee){do{const _0x33c649=_0x2b47ee['getAttribute']('data-change-id');if(_0x33c649)return _0x33c649;_0x2b47ee=_0x2b47ee['parent'];}while(_0x2b47ee);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4b59c8=>{for(const _0x2b45b3 of this['editor']['model']['markers'])_0x4b59c8['removeMarker'](_0x2b45b3);});}}function Q(_0x7feed0,_0x25eb05){return(_0x3b336c,_0x1379d7,_0x2e423b)=>{if(!_0x2e423b['consumable']['test'](_0x1379d7['markerRange'],_0x3b336c['name']))return;const _0x47274d=_0x1379d7['markerRange']['getWalker'](),_0x1eff44=_0x1379d7['markerRange']['start'],_0x1126dc=_0x7feed0['model']['schema'];let _0x13b12d=null,_0x5302f5=null,_0x31fd0f=!0x1,_0x5a604f=!0x1;for(const _0x4c7485 of _0x47274d){const _0x2880d2=_0x4c7485['item'];_0x31fd0f=_0x31fd0f||_0x1126dc['isContent'](_0x2880d2);const _0x1aca65=_0x2e423b['mapper']['toViewElement'](_0x2880d2);if(_0x1aca65&&_0x1aca65['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4c7485['type']&&(_0x1126dc['isBlock'](_0x2880d2)&&!_0x1126dc['isLimit'](_0x2880d2)&&(_0x2880d2['nextSibling']||_0x1eff44['isAtEnd']?_0x13b12d&&_0x13b12d['parent']==_0x2880d2||(_0x13b12d=_0x2880d2,_0x5a0806(_0x4c7485['previousPosition']),_0x5a604f=!0x0):_0x5302f5=_0x5302f5||_0x4c7485['previousPosition']));}function _0x5a0806(_0x5090d3){const _0x1ebd77=_0x2e423b['mapper']['toViewPosition'](_0x5090d3),_0x2f0bda=_0x2e423b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x25eb05});_0x2e423b['writer']['insert'](_0x1ebd77,_0x2f0bda),_0x2e423b['mapper']['bindElementToMarker'](_0x2f0bda,_0x1379d7['markerName']);}_0x31fd0f||_0x5a604f||!_0x5302f5||_0x5a0806(_0x5302f5);};}class nt extends _0x5a55d6{constructor(_0x1fdfbe){super(_0x1fdfbe);const _0x29cd5e=_0x1fdfbe['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x29cd5e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x29cd5e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x545ea0=this['editor'],_0x27387f=_0x545ea0['plugins']['get'](u),_0x527e6f=_0x27387f['isReady']?_0x27387f['diff']['newRevisionId']:null;_0x545ea0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x527e6f);}['refresh'](){const {isReady:_0x37d95e,isEnabled:_0x56754f,repository:_0x56b899,diff:_0x18481e}=this['editor']['plugins']['get'](u),_0x2e4730=_0x18481e&&_0x56b899['getLaterVisibleRevision'](_0x18481e['newRevisionId']);this['isEnabled']=_0x37d95e&&_0x56754f&&Boolean(_0x2e4730);}}class rt extends _0x5a55d6{['_step'];constructor(_0x2f3713,{direction:_0x2ac9ba}){super(_0x2f3713);const _0x2832c4=_0x2f3713['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x2ac9ba?0x1:-0x1,this['listenTo'](_0x2832c4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2832c4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2832c4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3acccb=this['editor'],_0x4ed66c=_0x3acccb['plugins']['get'](u),{isNavigationMode:_0x4cb9d2,currentChangeNumber:_0x501cc0}=_0x4ed66c;let _0x25808e;if(_0x4ed66c['activeChange']=_0x4cb9d2?_0x4ed66c['diff']['changes']['get'](_0x501cc0+this['_step']):_0x4ed66c['diff']['changes']['first'],_0x4ed66c['activeChange']['data']['isOnRoot'])_0x25808e=_0x3acccb['editing']['view']['getDomRoot'](_0x4ed66c['activeChange']['rootName']);else{const _0x392c51=_0x3acccb['model']['markers']['get']('revision:'+_0x4ed66c['activeChange']['id']);_0x25808e=_0x52dae5(_0x3acccb['editing'],_0x392c51);}_0x1bdacd({'target':_0x25808e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x18bf4c,currentChangeNumber:_0x52cc94,numberOfChanges:_0x59740a,isReady:_0x1f8bb6,isEnabled:_0x30dbf9}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x30dbf9&&_0x1f8bb6&&_0x59740a)&&(!_0x18bf4c||(0x1===this['_step']?_0x52cc94<_0x59740a-0x1:_0x52cc94>0x0));}}class fi extends _0x308af2{constructor(_0x1d5f0d){super(_0x1d5f0d);const _0x547ca2=this['bindTemplate'],_0x377864=new _0x2d83ad(_0x1d5f0d),_0x1cfe16=new _0x2d83ad(_0x1d5f0d);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',(_0x12c100,_0x10d4e4)=>_0x12c100&&_0x10d4e4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5ec062,_0x481d86,_0x4eebc5,_0x5f5605)=>{if(!_0x5ec062)return m(_0x1d5f0d,'Loading...');if(!_0x4eebc5)return m(_0x1d5f0d,'No\x20changes');const _0x54f491=m(_0x1d5f0d,'NUMBER_OF_CHANGES',_0x4eebc5);return _0x5f5605?m(_0x1d5f0d,'X_OF_Y_CHANGES',[_0x481d86+0x1,_0x4eebc5]):_0x54f491;}),_0x377864['set']({'label':m(_0x1d5f0d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4f6b62}),_0x1cfe16['set']({'label':m(_0x1d5f0d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x226f22}),_0x377864['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1cfe16['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x377864['on']('execute',()=>this['fire']('execute','backward')),_0x1cfe16['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',_0x547ca2['if']('_isStatusLabelVisible','ck-hidden',_0x25de22=>!_0x25de22)]},'children':[{'text':_0x547ca2['to']('isNavigationMode',_0x1d3b10=>_0x1d3b10?m(_0x1d5f0d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1d5f0d,'Total')+':\x20')}]},{'text':_0x547ca2['to']('_statusText')}]},new _0x15959a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x377864,_0x1cfe16]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x2059eb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x31618f=this['editor']['editing']['view'];_0x31618f['change'](_0x4b7fef=>{for(const _0x370e51 of _0x31618f['document']['roots'])_0x4b7fef['addClass'](ge,_0x370e51);});}['hide'](){const _0xad9e70=this['editor']['editing']['view'];_0xad9e70['change'](_0x154ed8=>{for(const _0x3c0d73 of _0xad9e70['document']['roots'])_0x154ed8['removeClass'](ge,_0x3c0d73);});}}class v extends _0x2059eb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,bi];}['init'](){const _0xb3f783=this['editor'],_0x14cbf0=_0xb3f783['plugins']['get'](u),_0x157bfe=_0xb3f783['plugins']['get'](bi);_0xb3f783['ui']['componentFactory']['add']('exitToEditing',_0x516180=>{const _0x1ca2a8=new _0x2d83ad(_0x516180);return _0x1ca2a8['set']({'label':m(_0x516180,'Back\x20to\x20editing'),'icon':_0x3b0c96,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1ca2a8,'execute',()=>{_0xb3f783['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1ca2a8;}),_0xb3f783['ui']['componentFactory']['add']('restoreRevision',_0xd44982=>{const _0x15732c=new _0x2d83ad(_0xd44982);return _0x15732c['set']({'label':m(_0xd44982,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x15732c['bind']('isEnabled')['to'](_0xb3f783['commands']['get']('restoreRevision')),this['listenTo'](_0x15732c,'execute',()=>_0xb3f783['execute']('restoreRevision')),_0x15732c;}),_0xb3f783['ui']['componentFactory']['add']('changesNavigation',_0x23844f=>{const _0x2bde84=new fi(_0x23844f),_0x2ab1fd=_0xb3f783['commands']['get']('showPreviousChange'),_0x446b6c=_0xb3f783['commands']['get']('showNextChange');return _0x2bde84['bind']('isBackwardNavigationEnabled')['to'](_0x2ab1fd,'isEnabled'),_0x2bde84['bind']('isForwardNavigationEnabled')['to'](_0x446b6c,'isEnabled'),_0x2bde84['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x14cbf0),this['listenTo'](_0x2bde84,'execute',(_0x54b11b,_0x16cc37)=>{_0xb3f783['execute']('forward'===_0x16cc37?'showNextChange':'showPreviousChange');}),_0x2bde84;}),_0x157bfe['show'](),_0x14cbf0['on']('change:isReady',(_0x3829b4,_0x585988,_0x326212)=>{_0x326212?_0x157bfe['hide']():_0x157bfe['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x470485,_0x5c0f67){super(_0x470485,_0x5c0f67);const _0x4df5aa=this['bindTemplate'];this['set']({'label':m(_0x470485,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x470485,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4df5aa['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3060e5=this['fieldView']['element'];this['_tooltipString']=_0x3060e5['scrollWidth']>_0x3060e5['clientWidth']&&_0x3060e5['value']||'';}}class ni extends _0x308af2{constructor(_0x42da5c,_0x5214ba,_0x2a9d67){super(_0x42da5c);const _0x54c726=new _0x1b7ac4();_0x54c726['set']({'content':_0x46a264,'viewBox':'0\x200\x2011\x2010'});const _0x321ba6=['ck','ck-revision-history-sidebar__revision-author'];_0x2a9d67&&_0x321ba6['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3ea1a1=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x42da5c,_0x2a9d67?'Revision\x20creator':'Revision\x20author')},'children':[_0x54c726,_0x5214ba['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x321ba6},'children':_0x3ea1a1});}}function ai(_0x25f0af,_0x4e8267){const _0x52a09f=_0x25f0af['bindTemplate'],_0x35f6aa=_0x25f0af['locale'],_0x338b11=_0x5c372e(_0x35f6aa);_0x338b11['panelPosition']='sw';const _0x4b3f40=function(_0x22e46d,_0x171a96){const _0x4e106b=function(_0x3959ca,_0x132bd5){const _0x1bb221=_0x3959ca['locale'],_0x48cfd1={'Compare\x20against\x20selected':m(_0x1bb221,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1bb221,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1bb221,'Restore\x20this\x20revision')};return _0x132bd5['map'](_0x38b210=>{const _0x23f184=_0x48cfd1[_0x38b210['name']];return _0x23f184&&_0x23f184!==_0x38b210['name']&&(_0x38b210['name']=_0x23f184),_0x38b210;});}(_0x22e46d,_0x171a96),_0x475dce=new _0x50ebf4();for(const _0x92d343 of _0x4e106b){const _0x22da9d={'type':'button','model':new to({'label':_0x92d343['name'],'class':_0x92d343['class'],'withText':!0x0,'role':'menuitem','_action':_0x92d343['action']})};_0x22da9d['model']['bind']('isEnabled')['to'](_0x22e46d,'isActionsDropdownOpen',_0x16f204=>'function'!=typeof _0x92d343['isEnabled']||(!_0x16f204||_0x92d343['isEnabled'](_0x22e46d))),_0x475dce['add'](_0x22da9d);}return _0x475dce;}(_0x25f0af,_0x4e8267);return _0x25f0af['bind']('isActionsDropdownOpen')['to'](_0x338b11,'isOpen'),_0x338b11['buttonView']['set']({'label':m(_0x35f6aa,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x16611b}),_0x338b11['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x52a09f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x52a09f['to'](_0xaa8440=>_0xaa8440['stopPropagation']())}}),_0x338b11['on']('execute',_0x19eda9=>{_0x25f0af['isReady']&&'function'==typeof _0x19eda9['source']['_action']&&_0x19eda9['source']['_action'](_0x25f0af);}),_0x48b7ca(_0x338b11,_0x4b3f40,{'role':'menu'}),_0x338b11['listenTo'](_0x25f0af,'change:isActionsDropdownOpen',(_0x1d85f4,_0x3f5d8d,_0x3ad32d)=>{if(_0x3ad32d)for(const _0x1f156a of _0x338b11['listView']['items']){const _0x5f3cbb=_0x1f156a['children']['first'],_0x3bce9d=_0x4e8267['find'](_0x479f91=>_0x479f91['action']===_0x5f3cbb['_action'])['isVisible'];_0x1f156a['isVisible']=void 0x0===_0x3bce9d||_0x3bce9d(_0x25f0af);}}),_0x338b11;}class _i extends/* #__PURE__ -- @preserve */
27
+ _0x3bfe03(_0x308af2){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x20db02,_0x456c00,_0xd7e6bb,_0x20f479){super(_0x20db02);const _0x3dfd86=this['bindTemplate'],_0x584326=function(_0xf4f188,_0x2296d5){const _0x446e76=Array['from'](_0x2296d5['authors'])['filter'](_0x4ea891=>_0x4ea891!=_0x2296d5['creator']);return _0x2296d5['creator']&&_0x446e76['unshift'](_0x2296d5['creator']),_0x446e76['map'](_0x284f12=>new ni(_0xf4f188,_0x284f12,_0x284f12==_0x2296d5['creator']));}(_0x20db02,_0x456c00);this['id']=_0x456c00['id'],this['_revision']=_0x456c00,this['_requireRevisionName']=_0x20f479,this['bind']('name','createdAt')['to'](_0x456c00),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x567160=>{return _0x3e044a=_0x20db02['uiLanguage'],(_0x2f4004=_0x567160)['toLocaleDateString'](_0x3e044a,{'month':'long','day':'numeric'})+',\x20'+_0x2f4004['toLocaleTimeString'](_0x3e044a,{'hour':'numeric','minute':'numeric'});var _0x3e044a,_0x2f4004;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x20db02,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5dcd47=>_0x5dcd47||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2364dc,_0x46df73)=>_0x2364dc&&_0x46df73),this['revisionActionsView']=_0xd7e6bb&&_0xd7e6bb['length']?ai(this,_0xd7e6bb):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3dfd86['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3dfd86['if']('isEnabled','ck-disabled',_0x325cd9=>!_0x325cd9),_0x3dfd86['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3dfd86['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3dfd86['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':_0x3dfd86['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':_0x584326}]},this['revisionActionsView']],'on':{'click':_0x3dfd86['to'](_0x2810bf=>{_0x2810bf['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1950e7=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1950e7,'change',()=>{this['_requireRevisionName']&&!_0x1950e7['value']||this['fire']('setName',{'id':this['id'],'name':_0x1950e7['value']}),_0x1950e7['value']||(_0x1950e7['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ki(_0x1da250,_0x52c7dc){const _0x882ce4=_0x376c09['fromJSDate'](_0x1da250)['setLocale'](_0x52c7dc),_0x4c6598=_0x376c09['local'](),_0x3710f0=_0x4c6598['minus']({'days':0x1})['startOf']('day');let _0x5545c6,_0xffc6b4;return _0x882ce4['hasSame'](_0x4c6598,'day')?(_0x5545c6=_0x882ce4['startOf']('day')['toJSDate'](),_0xffc6b4=_0x882ce4['toRelativeCalendar']()):_0x882ce4['hasSame'](_0x3710f0,'day')?(_0x5545c6=_0x3710f0['toJSDate'](),_0xffc6b4=_0x882ce4['toRelativeCalendar']()):_0x882ce4['hasSame'](_0x4c6598,'week')?(_0x5545c6=_0x882ce4['startOf']('week')['toJSDate'](),_0xffc6b4=_0x882ce4['weekdayLong']||''):_0x882ce4['hasSame'](_0x4c6598,'year')?(_0x5545c6=_0x882ce4['startOf']('month')['toJSDate'](),_0xffc6b4=_0x882ce4['monthLong']||''):(_0x5545c6=_0x882ce4['startOf']('year')['toJSDate'](),_0xffc6b4=String(_0x882ce4['year'])),{'startDate':_0x5545c6,'localizedPeriodName':_0xffc6b4};}class ji extends _0x308af2{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x285ac0,_0x584bb2,_0x589395,_0x563dc1){super(_0x285ac0);const _0x3ac9fa=ki(_0x584bb2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x584bb2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x589395,this['_requireRevisionName']=_0x563dc1,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':_0x3ac9fa}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x455582){const _0x170d68=new _i(this['locale'],_0x455582,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x170d68);}['removeRevision'](_0x256632){const _0x30b73d=this['revisionViews']['find'](_0xd2a760=>_0xd2a760['id']===_0x256632['id']);this['revisionViews']['remove'](_0x30b73d);}}class Ni extends _0x308af2{constructor(_0x3fbb86){super(_0x3fbb86);const _0x305fdb=new _0x1b7ac4();_0x305fdb['content']=_0x1d31f2,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x305fdb,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3fbb86,'Revision\x20history')]}]});}}class Ri extends _0x308af2{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1b96a8,_0x11949f,_0x1d25ee,_0x13cad4){super(_0x1b96a8);const _0x107f7e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x11949f,this['_revisionActions']=_0x1d25ee,this['_requireRevisionName']=_0x13cad4,this['on']('select',(_0x107c99,_0x244ab7)=>{this['fire']('revisionSelected',_0x244ab7);}),this['on']('setName',(_0x1d982e,_0x5428a5)=>{this['fire']('revisionSetName',_0x5428a5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Ni(_0x1b96a8),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x107f7e['if']('isEnabled','ck-disabled',_0x1c8fcd=>!_0x1c8fcd)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xcf6693 of this['_revisions'])this['_addRevision'](_0xcf6693);this['_revisions']['on']('add',(_0x2faca4,_0x406d27)=>{this['_addRevision'](_0x406d27);}),this['_revisions']['on']('remove',(_0x3c12a7,_0x5500b8)=>{this['_removeRevision'](_0x5500b8);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x210cff=>_0x210cff['revisionViews']['map'](_0xe96daa=>_0xe96daa))['flat']();}['selectRevision'](_0xabe6a9){for(const _0x123e15 of this['revisionViews'])_0xabe6a9&&_0xabe6a9['id']===_0x123e15['id']?_0x123e15['select']():_0x123e15['deselect']();}['highlightRevisions'](_0x22335d){for(const _0xb79e66 of this['revisionViews'])_0x22335d['some'](({id:_0x390edc})=>_0x390edc===_0xb79e66['id'])?_0xb79e66['highlight']():_0xb79e66['unhighlight']();}['_addRevision'](_0x3b37b2){const _0x301f87=ki(_0x3b37b2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5cb052=this['timePeriodViews']['get'](0x0);_0x5cb052&&_0x5cb052['startDate']['getTime']()===_0x301f87['getTime']()||(_0x5cb052=new ji(this['locale'],_0x301f87,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5cb052)),_0x5cb052['addRevision'](_0x3b37b2);}['_removeRevision'](_0x365ae8){const _0x67cfe5=ki(_0x365ae8['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x67cfe5)['removeRevision'](_0x365ae8);}['_getTimePeriodViewByStartDate'](_0xfd2df6){return this['timePeriodViews']['find'](_0x3e36da=>_0x3e36da['startDate']['getTime']()===_0xfd2df6['getTime']());}}class d extends _0x2059eb{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
28
28
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
29
- at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x3585e8){super(_0x3585e8),this['_revisionViewer']=_0x3585e8['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x102f3f=this['_revisionsRepository']['_revisions'],_0x588ee6=this['_createRevisionActions'](),_0x4df98d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x102f3f,_0x588ee6,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',(_0x445932,_0x91b964)=>{_0x91b964['revisionViews']['on']('add',(_0x18fe02,_0x26d237)=>{_0x26d237['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)),_0x4df98d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2bff78=this['_revisionsRepository']['getRevision'](0x0);if(_0x2bff78){const _0x1b455e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2bff78['id']);this['_revisionViewer']['compare'](_0x2bff78,_0x1b455e);}}['_handleRevisionSelected'](_0x263fd3,_0x10fead){const _0x493c30=this['_revisionsRepository']['getRevision'](_0x10fead['id']),_0x3a58ee=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x493c30['id']);this['_revisionViewer']['compare'](_0x493c30,_0x3a58ee);}['_handleRevisionSetName'](_0x1a68fe,_0xae25e1){this['_revisionsRepository']['getRevision'](_0xae25e1['id'])['setName'](_0xae25e1['name']);}['_handleDiffChange'](_0x5ab7f7,_0x5481a1,_0x35da7c){const _0x167bba=this['_revisionsRepository']['getRevisionsInDiff'](_0x35da7c);_0x167bba['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x167bba),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x167bba[0x0]));}['_createRevisionActions'](){const _0x5de635=this['editor'],_0x4d04e1=d['availableRevisionActions'],_0x419a53=_0x5de635['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x419a53['length'])return _0x419a53['map'](_0x46d62b=>{const _0xa766a2='string'==typeof _0x46d62b?Object['assign']({},_0x4d04e1[_0x46d62b]):_0x46d62b;return _0xa766a2['action']=_0xa766a2['action']['bind'](this,_0x5de635),_0xa766a2['isVisible']&&(_0xa766a2['isVisible']=_0xa766a2['isVisible']['bind'](this,_0x5de635)),_0xa766a2;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3ba620},_0x143d8d)=>{const _0x3ca7cf=_0x3ba620['get'](u),_0x177e5b=_0x3ca7cf['repository'];let _0x409a67=_0x3ca7cf['diff']['newRevisionId'],_0x247a0e=_0x143d8d['id'];_0x177e5b['getIndex'](_0x409a67)>_0x177e5b['getIndex'](_0x247a0e)&&([_0x409a67,_0x247a0e]=[_0x247a0e,_0x409a67]),_0x3ca7cf['compare'](_0x409a67,_0x247a0e);},'isVisible':({plugins:_0x4f43a5},_0x21b692)=>{const _0x22e0bd=_0x4f43a5['get'](u);return!(_0x22e0bd['repository']['getRevisionsInDiff'](_0x22e0bd['diff'])['length']>0x2)&&!_0x21b692['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x768ad5,{id:_0x1f3875})=>{_0x768ad5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1f3875);},'isVisible':({plugins:_0x3f9adc},_0x48c1ff)=>!!_0x3f9adc['get'](u)['repository']['getLaterVisibleRevision'](_0x48c1ff['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4d0c23},{id:_0x3c919a,revisionNameView:_0x1e35a8})=>{const _0x31f054=_0x4d0c23['get'](u),_0x2ae337=_0x31f054['repository']['getEarlierVisibleRevision'](_0x3c919a);_0x31f054['compare'](_0x3c919a,_0x2ae337),_0x1e35a8['focus'](),_0x1e35a8['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x527374,_0x1b70d4){super(_0x527374),this['_view']=_0x1b70d4,this['_toolbarConfig']=st(_0x527374['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x8c137d){const _0x390660=this['editor'],_0x34aa3c=this['view'],_0xde0413=_0x390660['editing']['view'],_0x5741ce=_0x34aa3c['editable'],_0x4c8aa7=_0xde0413['document']['getRoot']();_0x5741ce['name']=_0x4c8aa7['rootName'],_0x34aa3c['render']();const _0x47a6e9=_0x5741ce['element'];this['setEditableElement'](_0x5741ce['name'],_0x47a6e9),_0x34aa3c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xde0413['attachDomRoot'](_0x47a6e9),this['_elementReplacer']['replace'](_0x8c137d,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x341755=this['view'],_0x18beb1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x18beb1['detachDomRoot'](_0x341755['editable']['name']),_0x341755['destroy']();}['_initToolbar'](){const _0x3e1783=this['view'];_0x3e1783['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3e1783['stickyPanel']['limiterElement']=_0x3e1783['element'],_0x3e1783['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3579fa})=>_0x3579fa),_0x3e1783['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3e1783['toolbar']);}}class ii extends _0x365cb2{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2b5fef,_0x3e6dcb,_0x4515d9={}){super(_0x2b5fef),this['stickyPanel']=new _0x4ad34d(_0x2b5fef),this['toolbar']=new _0x532d93(_0x2b5fef,{'shouldGroupWhenFull':_0x4515d9['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x2b5fef,_0x3e6dcb);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
30
- _0x25ed20(_0x3f7344){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5baec4,_0x3b9c0d){super(_0x3b9c0d),this['sourceElement']=_0x5baec4,this['model']['document']['createRoot']();const _0x136d4c=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x136d4c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x96496,_0x3aa189){const _0x431ea4=new this(_0x96496,_0x3aa189);return await _0x431ea4['initPlugins'](),await _0x431ea4['ui']['init'](_0x96496),await _0x431ea4['data']['init'](_0x431ea4['config']['get']('initialData')||''),_0x431ea4['fire']('ready'),_0x431ea4;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x2a9b7d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47a36c){function _0x22b5bd(_0x3c2c4b){return _0x3c2c4b['map'](_0x568d75=>String['fromCharCode'](_0x568d75))['join']('');}super(_0x47a36c),this['result']='end',_0x47a36c[_0x22b5bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22b5bd([0x76,0x69,0x65,0x77])][_0x22b5bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22b5bd([0x61,0x75,0x74,0x6f]),_0x47a36c[_0x22b5bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x22b5bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22b5bd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x22b5bd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x22b5bd([0x6f,0x6b])});}}class ct extends _0x2a9b7d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x5d206f){if(super(_0x5d206f),!this['editor']['config']['get']('revisionHistory'))throw new _0x2c2824('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x252766=>this['_showRevisionViewer']({..._0x252766,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1a5ea2=>this['_closeRevisionViewer'](_0x1a5ea2)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xb179bd=>this['_restoreRevision'](_0xb179bd)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x54e0f3){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x54e0f3;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x29558c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x29558c);}['getRevision'](_0x1f972f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1f972f);}['getRevisions'](_0x1ef9ce){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1ef9ce||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x373a86=this['editor'],_0xf123d0=_0x23fc3b(_0x373a86,p),_0x25111b=_0x373a86['plugins']['get']('RevisionTracker'),_0x498d92=_0x373a86['plugins']['get']('Users')['users'];return _0xf123d0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xf123d0['lazyRoots'],(_0xf123d0['plugins']['push'](ht,u,v,class extends _0x2a9b7d{static get['requires'](){return[u,'Users'];}['init'](){const _0x3de849=this['editor']['plugins']['get']('Users');for(const _0x5d7c2d of _0x498d92)_0x5d7c2d['isAnonymous']||_0x3de849['getUser'](_0x5d7c2d['id'])||_0x3de849['addUser'](_0x5d7c2d);const _0x89d63c=_0x25111b['repository']['getRevisions']();let _0x51368f=null;const _0x11538f=this['editor']['plugins']['get']('RevisionViewer');_0x11538f['adapter']=_0x25111b['adapter'],_0x11538f['bind']('isEnabled')['to'](_0x25111b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x373a86,'isReadOnly',_0x5e08c2=>!_0x5e08c2);for(const _0x3d64ec of _0x89d63c){const _0x5a1c09=null===_0x3d64ec['creator'];if(_0x5a1c09&&_0x3d64ec['toVersion']===_0x3d64ec['fromVersion'])continue;const _0xc55406=_0x3d64ec['toJSON']();_0x11538f['addRevisionData'](_0xc55406,(_0x2c5c8e,_0x4f17f1,_0x33eba8)=>{if(_0x5a1c09){if(_0x51368f)_0x51368f['_update'](_0x2c5c8e,_0x4f17f1);else{if(!_0x4f17f1){const _0x3872b0=_0x33eba8['toJSON']();_0x3872b0['id']=_0x422234(),_0x25111b['saveRevision'](_0x3872b0,_0x33eba8['toVersion'])['then'](_0x453da3=>{_0x51368f=_0x453da3;});}}}else _0x3d64ec['_update'](_0x2c5c8e,_0x4f17f1);});}}},d),_0xf123d0);}['_enhanceShowRevisionViewerCallback'](){const _0x2c306c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x34e889=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x597acc=this['editor']['plugins']['get']('Autosave');await _0x597acc['save']();}else await _0x34e889['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3bc733=this['editor']['plugins']['get']('Dialog');_0x3bc733['isOpen']&&_0x3bc733['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x19e629=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x49d6ba of _0x19e629)_0x49d6ba['class']=_0x49d6ba['class']?_0x49d6ba['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x333be5=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x333be5&&_0x333be5['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x378c23=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x378c23&&_0x378c23['setAttribute']('tabindex','-1');}}const _0x35d9f9=this['_getRevisionViewerEditorConfig']();return _0x2c306c(_0x35d9f9)['then'](_0x193a93=>{return(this['_viewerEditor']=_0x193a93,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x193a93);})['catch'](_0x968b0=>(console['error'](_0x968b0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x40032d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x5cc0b0=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x30ad09 of _0x5cc0b0)_0x30ad09['class']='ck-tab-panel_disabled'===_0x30ad09['class']?'':_0x30ad09['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0xf2512=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0xf2512&&_0xf2512['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x2292cb=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x2292cb&&_0x2292cb['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x40032d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x31bd93=this['editor']['plugins']['get']('Annotations');_0x31bd93['refreshVisibility'](),_0x31bd93['refreshPositioning']();}});});}['_showRevisionViewer'](_0x1d1610){const _0x13a789=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2d228c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x445277=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x445277,_0x1d1610)['then'](_0x7e7a5=>(_0x2d228c['style']['display']='block',_0x13a789['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x7e7a5));}['_closeRevisionViewer'](_0x38d49b){const _0x149f0e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x149f0e['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x38d49b['destroy']();}async['_restoreRevision'](_0x111c0e){const _0x3b681c=this['editor'],_0x1bb713=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x455379=_0x3b681c['plugins']['get']('RevisionTracker'),_0x2991aa=_0x3b681c['plugins']['get']('RevisionHistoryUtils'),_0x458657=_0x1bb713['repository']['getRevision'](_0x111c0e);let _0x24fee9,_0x109aa3,_0x519552;try{await _0x2991aa['loadRevisionData'](_0x458657,this['adapter']),_0x24fee9=_0x2991aa['getRevisionDocumentData'](_0x458657),_0x109aa3=_0x2991aa['getRevisionRootsAttributes'](_0x458657);}catch(_0x40a9d7){return void console['error'](_0x40a9d7);}_0x3b681c['model']['change'](_0x1f0667=>{for(const _0x3db264 of Array['from'](_0x3b681c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1f0667['removeMarker'](_0x3db264);}),_0x1bb713['isReady']=!0x1,_0x3b681c['model']['enqueueChange'](_0xe651af=>{_0xe651af['setSelection'](null),_0xe651af['removeSelectionAttribute'](_0x3b681c['model']['document']['selection']['getAttributeKeys']());const _0x341fd9=Object['keys'](_0x24fee9);for(const _0x3f3c7c of _0x3b681c['model']['document']['roots'])'$graveyard'!=_0x3f3c7c['rootName']&&_0x3f3c7c['isAttached']()&&!_0x341fd9['includes'](_0x3f3c7c['rootName'])&&_0xe651af['detachRoot'](_0x3f3c7c);for(const _0x37cb7c of _0x341fd9){let _0x429781=_0x3b681c['model']['document']['getRoot'](_0x37cb7c);_0x429781&&_0x429781['isAttached']()||(_0x429781=_0xe651af['addRoot'](_0x37cb7c));const _0x1845e3=_0x109aa3[_0x37cb7c],_0x5ab733=Object['keys'](_0x1845e3),_0x237fc5=_0x24fee9[_0x37cb7c];for(const _0x28aa04 of _0x429781['getAttributeKeys']())_0x5ab733['includes'](_0x28aa04)||_0xe651af['removeAttribute'](_0x28aa04,_0x429781);for(const _0xdfb3b5 of _0x5ab733)_0xe651af['setAttribute'](_0xdfb3b5,_0x109aa3[_0x37cb7c][_0xdfb3b5],_0x429781);_0xe651af['remove'](_0xe651af['createRangeIn'](_0x429781)),_0xe651af['insert'](_0x3b681c['data']['parse'](_0x237fc5,_0x429781),_0x429781,0x0);}});const _0x34fb17=m(_0x3b681c['locale'],'Restored');if(_0x458657['name'])_0x519552=-0x1==_0x458657['name']['indexOf'](_0x34fb17)?_0x34fb17+':\x20'+_0x458657['name']:_0x458657['name'];else _0x519552=_0x34fb17+':\x20'+(_0x458657['createdAt']['toLocaleDateString'](_0x3b681c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x458657['createdAt']['toLocaleTimeString'](_0x3b681c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x455379['saveRevision']({'name':_0x519552}),_0x1bb713['isReady']=!0x0,_0x3b681c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,bi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
29
+ at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0xd914cd){super(_0xd914cd),this['_revisionViewer']=_0xd914cd['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xc9d135=this['_revisionsRepository']['_revisions'],_0x545454=this['_createRevisionActions'](),_0x396cda=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0xc9d135,_0x545454,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',(_0x329d66,_0x592dec)=>{_0x592dec['revisionViews']['on']('add',(_0x1b1fb2,_0x138fab)=>{_0x138fab['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)),_0x396cda['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2bb8e0=this['_revisionsRepository']['getRevision'](0x0);if(_0x2bb8e0){const _0x23817f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2bb8e0['id']);this['_revisionViewer']['compare'](_0x2bb8e0,_0x23817f);}}['_handleRevisionSelected'](_0x508853,_0x3e92e9){const _0x263bcc=this['_revisionsRepository']['getRevision'](_0x3e92e9['id']),_0x202473=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x263bcc['id']);this['_revisionViewer']['compare'](_0x263bcc,_0x202473);}['_handleRevisionSetName'](_0x43d8ee,_0x44b9eb){this['_revisionsRepository']['getRevision'](_0x44b9eb['id'])['setName'](_0x44b9eb['name']);}['_handleDiffChange'](_0x59aca5,_0x666666,_0x475d0b){const _0xc8709f=this['_revisionsRepository']['getRevisionsInDiff'](_0x475d0b);_0xc8709f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xc8709f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xc8709f[0x0]));}['_createRevisionActions'](){const _0x3cc565=this['editor'],_0xe51ea=d['availableRevisionActions'],_0x195f16=_0x3cc565['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x195f16['length'])return _0x195f16['map'](_0xd19f8c=>{const _0x3183b9='string'==typeof _0xd19f8c?Object['assign']({},_0xe51ea[_0xd19f8c]):_0xd19f8c;return _0x3183b9['action']=_0x3183b9['action']['bind'](this,_0x3cc565),_0x3183b9['isVisible']&&(_0x3183b9['isVisible']=_0x3183b9['isVisible']['bind'](this,_0x3cc565)),_0x3183b9;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4c7cf1},_0x4e39b2)=>{const _0x23356a=_0x4c7cf1['get'](u),_0x9a370=_0x23356a['repository'];let _0x5e0757=_0x23356a['diff']['newRevisionId'],_0x524446=_0x4e39b2['id'];_0x9a370['getIndex'](_0x5e0757)>_0x9a370['getIndex'](_0x524446)&&([_0x5e0757,_0x524446]=[_0x524446,_0x5e0757]),_0x23356a['compare'](_0x5e0757,_0x524446);},'isVisible':({plugins:_0x35c52e},_0x5ec978)=>{const _0x31be36=_0x35c52e['get'](u);return!(_0x31be36['repository']['getRevisionsInDiff'](_0x31be36['diff'])['length']>0x2)&&!_0x5ec978['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x45c98c,{id:_0x1cd97b})=>{_0x45c98c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1cd97b);},'isVisible':({plugins:_0x1fb6bc},_0x1533fd)=>!!_0x1fb6bc['get'](u)['repository']['getLaterVisibleRevision'](_0x1533fd['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x495d95},{id:_0x4a13d2,revisionNameView:_0x488adf})=>{const _0x232cd4=_0x495d95['get'](u),_0x39ceb3=_0x232cd4['repository']['getEarlierVisibleRevision'](_0x4a13d2);_0x232cd4['compare'](_0x4a13d2,_0x39ceb3),_0x488adf['focus'](),_0x488adf['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x29849f,_0xb5e0ba){super(_0x29849f),this['_view']=_0xb5e0ba,this['_toolbarConfig']=st(_0x29849f['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x457194){const _0x1540ac=this['editor'],_0x547332=this['view'],_0x255fe9=_0x1540ac['editing']['view'],_0x538c8d=_0x547332['editable'],_0x18c682=_0x255fe9['document']['getRoot']();_0x538c8d['name']=_0x18c682['rootName'],_0x547332['render']();const _0x55f3a8=_0x538c8d['element'];this['setEditableElement'](_0x538c8d['name'],_0x55f3a8),_0x547332['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x255fe9['attachDomRoot'](_0x55f3a8),this['_elementReplacer']['replace'](_0x457194,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1f9bac=this['view'],_0x26e619=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x26e619['detachDomRoot'](_0x1f9bac['editable']['name']),_0x1f9bac['destroy']();}['_initToolbar'](){const _0x3b59b7=this['view'];_0x3b59b7['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3b59b7['stickyPanel']['limiterElement']=_0x3b59b7['element'],_0x3b59b7['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x8515c3})=>_0x8515c3),_0x3b59b7['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3b59b7['toolbar']);}}class ii extends _0x328b63{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3fd0a7,_0x4c8bd5,_0x5c3f37={}){super(_0x3fd0a7),this['stickyPanel']=new _0x3e29e8(_0x3fd0a7),this['toolbar']=new _0x54edcf(_0x3fd0a7,{'shouldGroupWhenFull':_0x5c3f37['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x3fd0a7,_0x4c8bd5);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
30
+ _0x503a7b(_0x5ee788){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x217f79,_0x3a7e8c){super(_0x3a7e8c),this['sourceElement']=_0x217f79,this['model']['document']['createRoot']();const _0x244a31=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x244a31);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x35816a,_0x2e5d69){const _0xc5d91f=new this(_0x35816a,_0x2e5d69);return await _0xc5d91f['initPlugins'](),await _0xc5d91f['ui']['init'](_0x35816a),await _0xc5d91f['data']['init'](_0xc5d91f['config']['get']('initialData')||''),_0xc5d91f['fire']('ready'),_0xc5d91f;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x2059eb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cdb85){function _0x39ee68(_0x492ec0){return _0x492ec0['map'](_0x1cac41=>String['fromCharCode'](_0x1cac41))['join']('');}super(_0x3cdb85),this['result']='end',_0x3cdb85[_0x39ee68([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39ee68([0x76,0x69,0x65,0x77])][_0x39ee68([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39ee68([0x61,0x75,0x74,0x6f]),_0x3cdb85[_0x39ee68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39ee68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39ee68([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39ee68([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39ee68([0x6f,0x6b])});}}class ct extends _0x2059eb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x1528c5){if(super(_0x1528c5),!this['editor']['config']['get']('revisionHistory'))throw new _0x10c315('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x569a8e=>this['_showRevisionViewer']({..._0x569a8e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5ef3eb=>this['_closeRevisionViewer'](_0x5ef3eb)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2aea2f=>this['_restoreRevision'](_0x2aea2f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4e734d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4e734d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1b2c60){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1b2c60);}['getRevision'](_0x555da3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x555da3);}['getRevisions'](_0x2b057a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2b057a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x16f692=this['editor'],_0x3ed77e=_0x39c63c(_0x16f692,p),_0x5586d4=_0x16f692['plugins']['get']('RevisionTracker'),_0x193ebe=_0x16f692['plugins']['get']('Users')['users'];return _0x3ed77e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3ed77e['lazyRoots'],(_0x3ed77e['plugins']['push'](ht,u,v,class extends _0x2059eb{static get['requires'](){return[u,'Users'];}['init'](){const _0x30cbd7=this['editor']['plugins']['get']('Users');for(const _0x2cb7b5 of _0x193ebe)_0x2cb7b5['isAnonymous']||_0x30cbd7['getUser'](_0x2cb7b5['id'])||_0x30cbd7['addUser'](_0x2cb7b5);const _0x486093=_0x5586d4['repository']['getRevisions']();let _0x4e9cd2=null;const _0x383350=this['editor']['plugins']['get']('RevisionViewer');_0x383350['adapter']=_0x5586d4['adapter'],_0x383350['bind']('isEnabled')['to'](_0x5586d4),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x16f692,'isReadOnly',_0x793cf0=>!_0x793cf0);for(const _0x20a927 of _0x486093){const _0x17fd99=null===_0x20a927['creator'];if(_0x17fd99&&_0x20a927['toVersion']===_0x20a927['fromVersion'])continue;const _0x776444=_0x20a927['toJSON']();_0x383350['addRevisionData'](_0x776444,(_0x548f8f,_0xe86c18,_0x5535ac)=>{if(_0x17fd99){if(_0x4e9cd2)_0x4e9cd2['_update'](_0x548f8f,_0xe86c18);else{if(!_0xe86c18){const _0x48bd70=_0x5535ac['toJSON']();_0x48bd70['id']=_0x26af77(),_0x5586d4['saveRevision'](_0x48bd70,_0x5535ac['toVersion'])['then'](_0x46431b=>{_0x4e9cd2=_0x46431b;});}}}else _0x20a927['_update'](_0x548f8f,_0xe86c18);});}}},d),_0x3ed77e);}['_enhanceShowRevisionViewerCallback'](){const _0x3b83c3=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xdbe154=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x299239=this['editor']['plugins']['get']('Autosave');await _0x299239['save']();}else await _0xdbe154['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x55937c=this['editor']['plugins']['get']('Dialog');_0x55937c['isOpen']&&_0x55937c['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x2e174a=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x7756e7 of _0x2e174a)_0x7756e7['class']=_0x7756e7['class']?_0x7756e7['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x2469c1=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x2469c1&&_0x2469c1['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x45d516=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x45d516&&_0x45d516['setAttribute']('tabindex','-1');}}const _0x2c4193=this['_getRevisionViewerEditorConfig']();return _0x3b83c3(_0x2c4193)['then'](_0x1b2466=>{return(this['_viewerEditor']=_0x1b2466,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x1b2466);})['catch'](_0x5f0d30=>(console['error'](_0x5f0d30),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x247740=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0xb58ef1=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x4e86fe of _0xb58ef1)_0x4e86fe['class']='ck-tab-panel_disabled'===_0x4e86fe['class']?'':_0x4e86fe['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x22bd0e=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x22bd0e&&_0x22bd0e['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x107786=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x107786&&_0x107786['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x247740(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3be308=this['editor']['plugins']['get']('Annotations');_0x3be308['refreshVisibility'](),_0x3be308['refreshPositioning']();}});});}['_showRevisionViewer'](_0x301bad){const _0x3ad151=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x19bd0d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x37b6a1=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x37b6a1,_0x301bad)['then'](_0x1ae266=>(_0x19bd0d['style']['display']='block',_0x3ad151['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1ae266));}['_closeRevisionViewer'](_0x198ff2){const _0x3d77c9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3d77c9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x198ff2['destroy']();}async['_restoreRevision'](_0x56376){const _0x5ea3c7=this['editor'],_0x5d1168=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x597f02=_0x5ea3c7['plugins']['get']('RevisionTracker'),_0x1ec8f5=_0x5ea3c7['plugins']['get']('RevisionHistoryUtils'),_0x5d184d=_0x5d1168['repository']['getRevision'](_0x56376);let _0xb1a027,_0x1008a6,_0x3f38e8;try{await _0x1ec8f5['loadRevisionData'](_0x5d184d,this['adapter']),_0xb1a027=_0x1ec8f5['getRevisionDocumentData'](_0x5d184d),_0x1008a6=_0x1ec8f5['getRevisionRootsAttributes'](_0x5d184d);}catch(_0x5627d8){return void console['error'](_0x5627d8);}_0x5ea3c7['model']['change'](_0x23fdd4=>{for(const _0x4f48f7 of Array['from'](_0x5ea3c7['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x23fdd4['removeMarker'](_0x4f48f7);}),_0x5d1168['isReady']=!0x1,_0x5ea3c7['model']['enqueueChange'](_0x38c6c1=>{_0x38c6c1['setSelection'](null),_0x38c6c1['removeSelectionAttribute'](_0x5ea3c7['model']['document']['selection']['getAttributeKeys']());const _0xf20ff2=Object['keys'](_0xb1a027);for(const _0x33dbe8 of _0x5ea3c7['model']['document']['roots'])'$graveyard'!=_0x33dbe8['rootName']&&_0x33dbe8['isAttached']()&&!_0xf20ff2['includes'](_0x33dbe8['rootName'])&&_0x38c6c1['detachRoot'](_0x33dbe8);for(const _0x128d05 of _0xf20ff2){let _0x2a74f8=_0x5ea3c7['model']['document']['getRoot'](_0x128d05);_0x2a74f8&&_0x2a74f8['isAttached']()||(_0x2a74f8=_0x38c6c1['addRoot'](_0x128d05));const _0x5013a9=_0x1008a6[_0x128d05],_0x327162=Object['keys'](_0x5013a9),_0x302a04=_0xb1a027[_0x128d05];for(const _0x3e33ac of _0x2a74f8['getAttributeKeys']())_0x327162['includes'](_0x3e33ac)||_0x38c6c1['removeAttribute'](_0x3e33ac,_0x2a74f8);for(const _0xfd159b of _0x327162)_0x38c6c1['setAttribute'](_0xfd159b,_0x1008a6[_0x128d05][_0xfd159b],_0x2a74f8);_0x38c6c1['remove'](_0x38c6c1['createRangeIn'](_0x2a74f8)),_0x38c6c1['insert'](_0x5ea3c7['data']['parse'](_0x302a04,_0x2a74f8),_0x2a74f8,0x0);}});const _0x489cda=m(_0x5ea3c7['locale'],'Restored');if(_0x5d184d['name'])_0x3f38e8=-0x1==_0x5d184d['name']['indexOf'](_0x489cda)?_0x489cda+':\x20'+_0x5d184d['name']:_0x5d184d['name'];else _0x3f38e8=_0x489cda+':\x20'+(_0x5d184d['createdAt']['toLocaleDateString'](_0x5ea3c7['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5d184d['createdAt']['toLocaleTimeString'](_0x5ea3c7['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x597f02['saveRevision']({'name':_0x3f38e8}),_0x5d1168['isReady']=!0x0,_0x5ea3c7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,bi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};