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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x1f7614,uid as _0x2a811c,Collection as _0x2f6a5b,logWarning as _0x41ff87,FocusTracker as _0x1411f8,KeystrokeHandler as _0x1c41ad,scrollViewportToShowTarget as _0x2d24ed,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0xe12093}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2061e4,set as _0x277a5a,unset as _0x438d41,isEqual as _0x1c5062}from'es-toolkit/compat';import{Plugin as _0x506da8,PendingActions as _0x31e0c7,Command as _0x5a96ec,ElementApiMixin as _0xbeea5a,Editor as _0x3dfc7f}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x24f403,getMarkerDomElement as _0x9249c1,ConfirmMixin as ti,sanitizeEditorConfig as _0x2e9595}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x2d2b0d,ViewAttributeElement as _0x2bf1ad,ViewEmptyElement as _0x37aae7,ViewRawElement as _0x36609f,ViewUIElement as _0x644339,ViewDocumentFragment as _0x218b0c,ViewText as _0x3f3247,ViewElement as _0x37f088,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5606df,IconChevronUp as _0x24917,IconChevronDown as _0x536269,IconUndo as _0x5ec9a1,IconUser as _0x2cb2bd,IconThreeVerticalDots as _0x916b6a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x89b94,submitHandler as _0x29c8c4,LabeledFieldView as _0xc22ea8,createLabeledInputText as _0x34f747,createDropdown as _0x418de7,ListView as _0x2743d1,ListItemView as _0x24db08,ButtonView as te,MenuBarMenuView as _0xafdc44,MenuBarMenuListView as _0x2903e1,MenuBarMenuListItemView as _0x2f8c79,MenuBarMenuListItemButtonView as _0x55977e,ContextualBalloon as _0x1f5838,ToolbarSeparatorView as _0x263769,IconView as _0x5353e5,addListToDropdown as _0xd53a08,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xd936a}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x1f7614(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3ebc71){super(),this['id']=_0x3ebc71['id']||_0x2a811c(),this['creator']=_0x3ebc71['creator']||null,this['authors']=_0x3ebc71['authors']||[],this['diffData']=_0x3ebc71['diffData']||null,this['toVersion']=_0x3ebc71['toVersion']||0x0,this['fromVersion']=_0x3ebc71['fromVersion']||0x0,this['set']('name',_0x3ebc71['name']||''),this['set']('createdAt',_0x3ebc71['createdAt']||new Date()),this['set']('attributes',_0x3ebc71['attributes']||{});}['setName'](_0x382964){this['_update']({'name':_0x382964});}['setAttribute'](_0x4f78d3,_0x126091){const _0x24275b=_0x2061e4(this['attributes']);_0x277a5a(_0x24275b,_0x4f78d3,_0x126091),this['_update']({'attributes':_0x24275b});}['removeAttribute'](_0x446341){const _0x46c6ce=_0x2061e4(this['attributes']);_0x438d41(_0x46c6ce,_0x446341),this['_update']({'attributes':_0x46c6ce});}['_update'](_0x343f82,_0x824da9=!0x1){let _0x37253b=!0x1;const _0x41a939={'id':this['id']},_0x5ef1c7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4b8f67 of _0x5ef1c7){const _0xa46f36=_0x343f82[_0x4b8f67];void 0x0!==_0xa46f36&&_0xa46f36!==this[_0x4b8f67]&&(this[_0x4b8f67]=_0xa46f36,_0x41a939[_0x4b8f67]=_0xa46f36,_0x37253b=!0x0);}_0x37253b&&(_0x41a939['authors']&&(_0x41a939['authorsIds']=_0x41a939['authors']['map'](_0x52658e=>_0x52658e['id']),delete _0x41a939['authors']),this['fire']('_update',_0x41a939,_0x824da9));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x172d76=>_0x172d76['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x506da8{['_revisions'];static get['requires'](){return[_0x24f403];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d5df4){super(_0x4d5df4),this['_revisions']=new _0x2f6a5b();}['afterInit'](){!async function(_0x2b3c9f){const _0x454452=_0x1d34ab([0x58,0x4c,0x39,0x7a,0x55,0x44,0x42,0x4f,0x68,0x33,0x67,0x4b,0x37,0x73,0x4a,0x46,0x45,0x64,0x61,0x71,0x43,0x69,0x6d,0x6f,0x48,0x6e,0x4d,0x66,0x74,0x79,0x75,0x54,0x6a,0x49,0x70,0x56,0x36,0x63,0x30,0x41,0x52,0x6c,0x32,0x57,0x59,0x77,0x72,0x50,0x62,0x78,0x51,0x35,0x6b,0x4e,0x65,0x5a,0x31,0x34,0x47,0x76,0x53,0x38]),_0x5044a7=0xeb829,_0x4588d6=0xa32fd81,_0x300de6=0xa359739^_0x4588d6,_0x426b25=window[_0x1d34ab([0x44,0x61,0x74,0x65])][_0x1d34ab([0x6e,0x6f,0x77])](),_0x2aa050=_0x2b3c9f[_0x1d34ab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57804e=new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40c919=>{_0x2aa050[_0x1d34ab([0x6f,0x6e,0x63,0x65])](_0x1d34ab([0x72,0x65,0x61,0x64,0x79]),_0x40c919);}),_0x4719ee={[_0x1d34ab([0x6b,0x74,0x79])]:_0x1d34ab([0x45,0x43]),[_0x1d34ab([0x75,0x73,0x65])]:_0x1d34ab([0x73,0x69,0x67]),[_0x1d34ab([0x63,0x72,0x76])]:_0x1d34ab([0x50,0x2d,0x32,0x35,0x36]),[_0x1d34ab([0x78])]:_0x1d34ab([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]),[_0x1d34ab([0x79])]:_0x1d34ab([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]),[_0x1d34ab([0x61,0x6c,0x67])]:_0x1d34ab([0x45,0x53,0x32,0x35,0x36])},_0x52350a=_0x2aa050[_0x1d34ab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d34ab([0x67,0x65,0x74])](_0x1d34ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22464a(){let _0x2fcd7a,_0x4b5aed=null,_0x1df2f1=null;try{if(_0x52350a==_0x1d34ab([0x47,0x50,0x4c]))return _0x1d34ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fcd7a=_0x58dbd3(),!_0x2fcd7a)return _0x1d34ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fcd7a[_0x1d34ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1df2f1=_0x278b2a(_0x2fcd7a[_0x1d34ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fcd7a[_0x1d34ab([0x6a,0x74,0x69])])),await _0x53e8e6()?_0x468f69()?_0x3d4305()?_0x1d34ab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1debc9()?(_0x2fcd7a[_0x1d34ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d34ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b5aed=_0x267d54(_0x1d34ab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2fcd7a[_0x1d34ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d34ab([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b5aed=_0x267d54(_0x1d34ab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d95ed()):_0x1d34ab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d34ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d34ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d34ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d4305(){const _0x313adb=[_0x1d34ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d34ab([0x74,0x72,0x69,0x61,0x6c])][_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fcd7a[_0x1d34ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x426b25/0x3e8:0xe10*_0x300de6;return _0x2fcd7a[_0x1d34ab([0x65,0x78,0x70])]<_0x313adb;}function _0x468f69(){const _0x2570f7=_0x2fcd7a[_0x1d34ab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2570f7)return!0x1;if(_0x2570f7[_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d34ab([0x2a])))return!0x0;if(_0x2570f7[_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d34ab([0x52,0x48])))return!0x0;if(_0x2570f7[_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d34ab([0x52,0x52,0x48]))){if(_0x421f1e())return!0x0;if(_0x1fc08f()||_0x4994af())return!0x0;}return!0x1;}function _0x1debc9(){const _0x4cced9=_0x2fcd7a[_0x1d34ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cced9||0x0==_0x4cced9[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43c0e2}=new URL(window[_0x1d34ab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4cced9[_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c0e2))return!0x0;const _0x16b6cf=_0x43c0e2[_0x1d34ab([0x73,0x70,0x6c,0x69,0x74])](_0x1d34ab([0x2e]));return _0x4cced9[_0x1d34ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3648ed=>_0x3648ed[_0x1d34ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d34ab([0x2a])))[_0x1d34ab([0x6d,0x61,0x70])](_0x59452f=>_0x59452f[_0x1d34ab([0x73,0x70,0x6c,0x69,0x74])](_0x1d34ab([0x2e])))[_0x1d34ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a6479=>_0x5a6479[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16b6cf[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d34ab([0x6d,0x61,0x70])](_0x4fafdf=>Array(_0x16b6cf[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4fafdf[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d34ab([0x66,0x69,0x6c,0x6c])](_0x4fafdf[0x0]===_0x1d34ab([0x2a])?_0x1d34ab([0x2a]):'')[_0x1d34ab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4fafdf))[_0x1d34ab([0x73,0x6f,0x6d,0x65])](_0x39d693=>_0x16b6cf[_0x1d34ab([0x65,0x76,0x65,0x72,0x79])]((_0x472e4b,_0x3bfabf)=>_0x39d693[_0x3bfabf]===_0x472e4b||_0x39d693[_0x3bfabf]===_0x1d34ab([0x2a])));}function _0x4d95ed(){return _0x4b5aed&&_0x1df2f1?new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x377350,_0x4d77ee)=>{_0x4b5aed[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x377350,_0x4d77ee),_0x1df2f1[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x1265a5=>{_0x1265a5!=_0x1d34ab([0x56,0x61,0x6c,0x69,0x64])&&_0x377350(_0x1265a5);},_0x4d77ee);}):_0x4b5aed||_0x1df2f1||_0x1d34ab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x278b2a(_0x2a59ae,_0x18c526){return new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349323=>{if(_0x166c3b())return _0x349323(_0x1d34ab([0x56,0x61,0x6c,0x69,0x64]));_0x426e35(),_0x2aa050[_0x1d34ab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d34ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1561c0=!0x1;const _0x1a7685=_0x2a811c();function _0x1e2910(_0x272b73){return!!_0x272b73&&(typeof _0x272b73===_0x1d34ab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x272b73===_0x1d34ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x272b73[_0x1d34ab([0x74,0x68,0x65,0x6e])]===_0x1d34ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x272b73[_0x1d34ab([0x63,0x61,0x74,0x63,0x68])]===_0x1d34ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x455847(_0x553f54){_0x6bc94e(_0x553f54)[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x2a0012=>{if(!_0x2a0012||_0x2a0012[_0x1d34ab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d34ab([0x6f,0x6b]))return _0x1d34ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe9efd6(_0x47186d(_0x1a7685+_0x18c526))!=_0x2a0012[_0x1d34ab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d34ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d34ab([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x1991d1=>(_0x3f3233(),_0x1991d1),()=>{const _0x251787=_0x6b7b68();return null==_0x251787?(_0x3f3233(),_0x1d34ab([0x56,0x61,0x6c,0x69,0x64])):_0x1d34ab(_0x426b25-_0x251787>(0x2e3e7981^_0x4588d6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x349323)[_0x1d34ab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x349323(_0x1d34ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x557e41=0xa041301^_0x4588d6;function _0x3f3233(){const _0x2279c8=_0x1d34ab([0x6c,0x6c,0x63,0x74,0x2d])+_0xe9efd6(_0x47186d(_0x2a59ae)),_0x41e47e=_0x4ca860(_0xe9efd6(window[_0x1d34ab([0x4d,0x61,0x74,0x68])][_0x1d34ab([0x63,0x65,0x69,0x6c])](_0x426b25/_0x557e41)));window[_0x1d34ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d34ab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2279c8,_0x41e47e);}function _0x6b7b68(){const _0x2ed6b5=_0x1d34ab([0x6c,0x6c,0x63,0x74,0x2d])+_0xe9efd6(_0x47186d(_0x2a59ae)),_0x17a369=window[_0x1d34ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d34ab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ed6b5);return _0x17a369?window[_0x1d34ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ca860(_0x17a369),0x10)*_0x557e41:null;}function _0x6bc94e(_0x17b572){return new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3836a1,_0x32ebcd)=>{_0x17b572[_0x1d34ab([0x74,0x68,0x65,0x6e])](_0x3836a1,_0x32ebcd),window[_0x1d34ab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32ebcd,0xa332941^_0x4588d6);});}}_0x2aa050[_0x1d34ab([0x6f,0x6e])](_0x1d34ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x472c1e,_0x380588)=>{if(_0x380588[0x0]!=_0x2a59ae)return _0x349323(_0x1d34ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x380588[0x1]={..._0x380588[0x1],[_0x1d34ab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a7685};},{[_0x1d34ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d34ab([0x68,0x69,0x67,0x68])}),_0x2aa050[_0x1d34ab([0x6f,0x6e])](_0x1d34ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37a519=>{_0x1e2910(_0x37a519[_0x1d34ab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1561c0=!0x0,_0x455847(_0x37a519[_0x1d34ab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d34ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d34ab([0x6c,0x6f,0x77])}),_0x57804e[_0x1d34ab([0x74,0x68,0x65,0x6e])](()=>{_0x1561c0||_0x349323(_0x1d34ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x166c3b(){return _0x2aa050[_0x1d34ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d34ab([0x76,0x69,0x65,0x77])][_0x1d34ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d34ab([0x61,0x75,0x74,0x6f]);}function _0x426e35(){_0x2aa050[_0x1d34ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d34ab([0x76,0x69,0x65,0x77])][_0x1d34ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d34ab([0x61,0x75,0x74,0x6f]);}}function _0x267d54(_0x5a563c){const _0xba0a00=[new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf854=>setTimeout(_0x3cf854,0xa3bc34d^_0x4588d6)),_0x57804e[_0x1d34ab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x247887=>{const _0x50d324=0xa32fd86^_0x4588d6,_0x31073c=_0x2b3c9f[_0x1d34ab([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x43dfa8(){_0x31073c[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x50d324&&_0x247887();}_0x43dfa8(),_0x31073c[_0x1d34ab([0x6f,0x6e])](_0x1d34ab([0x61,0x64,0x64]),_0x43dfa8);})),new window[(_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4146b7=>{function _0x53cd7b(){for(const _0x3ab8f8 in window)if(window[_0x1d34ab([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1d34ab([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3ab8f8))&&window[_0x3ab8f8]==_0x5044a7)return _0x4146b7();_0x2aa050[_0x1d34ab([0x73,0x74,0x61,0x74,0x65])]!=_0x1d34ab([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1d34ab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53cd7b,0xa32ee09^_0x4588d6);}_0x199544(_0x1d34ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x53cd7b();})];return window[_0x1d34ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d34ab([0x72,0x61,0x63,0x65])](_0xba0a00)[_0x1d34ab([0x74,0x68,0x65,0x6e])](()=>_0x5a563c);}async function _0x12328f(){if(await _0x57804e,_0x199544(_0x1d34ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xbe9a1c=_0x2b3c9f[_0x1d34ab([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5d4e4e=_0x2b3c9f[_0x1d34ab([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])](_0xbe9a1c[_0x1d34ab([0x69,0x64])]),_0x4cecbb=_0x2b6d03(_0x1d34ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4cecbb[_0x1d34ab([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xbe9a1c['id'],_0x5d4e4e?_0x5d4e4e['id']:null,!0x0),_0x4cecbb[_0x1d34ab([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1d34ab([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4cecbb[_0x1d34ab([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4cecbb[_0x1d34ab([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x249627,void(_0x4cecbb[_0x1d34ab([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x249627);}if(_0x199544(_0x1d34ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1b25a6=_0x2b6d03(_0x1d34ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1b25a6[_0x1d34ab([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1d34ab([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1b25a6[_0x1d34ab([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1b25a6[_0x1d34ab([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x249627,_0x1b25a6[_0x1d34ab([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x249627;}_0x2aa050[_0x1d34ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d34ab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x249627,_0x2aa050[_0x1d34ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d34ab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x249627,_0x2aa050[_0x1d34ab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d34ab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x421f1e(){return _0x199544(_0x1d34ab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2b6d03(_0x1d34ab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d34ab([0x73,0x74,0x61,0x74,0x65])]==_0x1d34ab([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1fc08f(){return _0x199544(_0x1d34ab([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 _0x4994af(){return _0x199544(_0x1d34ab([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xc7bd38(_0x4350c8){const _0x4c9e38=_0x6271c1();_0x2aa050[_0x4c9e38]=_0x1d34ab([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])+_0x4350c8,_0x4350c8[_0x1d34ab([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1d34ab([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x6271c1()]=_0x5044a7),_0x4350c8!=_0x1d34ab([0x56,0x61,0x6c,0x69,0x64])&&_0x12328f();}function _0x6271c1(){const _0xaa78c3=window[_0x1d34ab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d34ab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d34ab([0x6e,0x6f,0x77])]())[_0x1d34ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d34ab([0x2e]),'');let _0x226445=_0x1d34ab([0x58]);for(let _0x1f2b72=0x0;_0x1f2b72<_0xaa78c3[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f2b72+=0x2){let _0x360dae=window[_0x1d34ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaa78c3[_0x1d34ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f2b72,_0x1f2b72+0x2));_0x360dae>=_0x454452[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x360dae-=_0x454452[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x226445+=_0x454452[_0x360dae];}return _0x226445;}function _0x58dbd3(){const _0x10c1db=_0x52350a[_0x1d34ab([0x73,0x70,0x6c,0x69,0x74])](_0x1d34ab([0x2e]));if(0x3!=_0x10c1db[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x314ada(_0x10c1db[0x1]);function _0x314ada(_0x561083){const _0xd891c5=_0x30a7bf(_0x561083);return _0xd891c5&&_0x464b29()?_0xd891c5:null;function _0x464b29(){const _0x4fd25a=_0xd891c5[_0x1d34ab([0x6a,0x74,0x69])],_0x3afc23=window[_0x1d34ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fd25a[_0x1d34ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fd25a[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c81c2={..._0xd891c5,[_0x1d34ab([0x6a,0x74,0x69])]:_0x4fd25a[_0x1d34ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4fd25a[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c81c2[_0x1d34ab([0x76,0x63])],_0x47186d(_0x1c81c2)==_0x3afc23;}}}async function _0x53e8e6(){let _0x54854d=!0x0;try{const _0x2829db=_0x52350a[_0x1d34ab([0x73,0x70,0x6c,0x69,0x74])](_0x1d34ab([0x2e])),[_0x24df9e,_0x11d0fb,_0x3e936c]=_0x2829db;return _0x2a2dd4(_0x24df9e),await _0x3db443(_0x24df9e,_0x11d0fb,_0x3e936c),_0x54854d;}catch{return!0x1;}function _0x2a2dd4(_0x16ab15){const _0x15b6e1=_0x30a7bf(_0x16ab15);_0x15b6e1&&_0x15b6e1[_0x1d34ab([0x61,0x6c,0x67])]==_0x1d34ab([0x45,0x53,0x32,0x35,0x36])||(_0x54854d=!0x1);}async function _0x3db443(_0x1c47c0,_0x44c94a,_0x1a9ea6){const _0x56d51b=window[_0x1d34ab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d34ab([0x66,0x72,0x6f,0x6d])](_0x4db6dd(_0x1a9ea6),_0x534923=>_0x534923[_0x1d34ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d585c=new window[(_0x1d34ab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d34ab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c47c0+_0x1d34ab([0x2e])+_0x44c94a),_0x1f343d=window[_0x1d34ab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d34ab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f343d)return;const _0x1d078b=await _0x1f343d[_0x1d34ab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d34ab([0x6a,0x77,0x6b]),_0x4719ee,{[_0x1d34ab([0x6e,0x61,0x6d,0x65])]:_0x1d34ab([0x45,0x43,0x44,0x53,0x41]),[_0x1d34ab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d34ab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d34ab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f343d[_0x1d34ab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d34ab([0x6e,0x61,0x6d,0x65])]:_0x1d34ab([0x45,0x43,0x44,0x53,0x41]),[_0x1d34ab([0x68,0x61,0x73,0x68])]:{[_0x1d34ab([0x6e,0x61,0x6d,0x65])]:_0x1d34ab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d078b,_0x56d51b,_0x3d585c)||(_0x54854d=!0x1);}}function _0x30a7bf(_0x42c42d){return _0x42c42d[_0x1d34ab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d34ab([0x65,0x79]))?JSON[_0x1d34ab([0x70,0x61,0x72,0x73,0x65])](_0x4db6dd(_0x42c42d)):null;}function _0x4db6dd(_0x3fdbd5){return window[_0x1d34ab([0x61,0x74,0x6f,0x62])](_0x3fdbd5[_0x1d34ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d34ab([0x2b]))[_0x1d34ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d34ab([0x2f])));}function _0x47186d(_0x3a6c78){let _0x244db7=0x1505;function _0x1773b0(_0xdc204e){for(let _0x49fa56=0x0;_0x49fa56<_0xdc204e[_0x1d34ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49fa56++){const _0x576459=_0xdc204e[_0x1d34ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x49fa56);_0x244db7=(_0x244db7<<0x5)+_0x244db7+_0x576459,_0x244db7&=_0x244db7;}}function _0x16facc(_0x54cdeb){Array[_0x1d34ab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54cdeb)?_0x54cdeb[_0x1d34ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16facc):_0x54cdeb&&typeof _0x54cdeb==_0x1d34ab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d34ab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54cdeb)[_0x1d34ab([0x73,0x6f,0x72,0x74])]()[_0x1d34ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c74fd,_0xd3e756])=>{_0x1773b0(_0x2c74fd),_0x16facc(_0xd3e756);}):_0x1773b0(window[_0x1d34ab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54cdeb));}return _0x16facc(_0x3a6c78),_0x244db7>>>0x0;}function _0xe9efd6(_0x1711f0){return _0x1711f0[_0x1d34ab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d34ab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d34ab([0x30]));}function _0x4ca860(_0x4a16cf){return _0x4a16cf[_0x1d34ab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d34ab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d34ab([0x6a,0x6f,0x69,0x6e])]('');}function _0x199544(_0x50529c){return _0x2aa050[_0x1d34ab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d34ab([0x68,0x61,0x73])](_0x50529c);}function _0x2b6d03(_0x46158e){return _0x2aa050[_0x1d34ab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d34ab([0x67,0x65,0x74])](_0x46158e);}function _0x249627(){}function _0x1d34ab(_0x103d02){return _0x103d02['map'](_0x1d9d5a=>String['fromCharCode'](_0x1d9d5a))['join']('');}_0xc7bd38(await _0x22464a());}(this);}['createRevision'](_0x330a74){const _0xca563d=this['editor']['plugins']['get']('Users');return new h({'id':_0x330a74['id'],'name':_0x330a74['name'],'creator':_0x330a74['creatorId']?_0xca563d['getUser'](_0x330a74['creatorId']):null,'diffData':_0x330a74['diffData']||_0x330a74['data'],'authors':_0x330a74['authorsIds']['map'](_0xd169c2=>_0xca563d['getUser'](_0xd169c2)),'createdAt':new Date(_0x330a74['createdAt']),'attributes':_0x330a74['attributes'],'fromVersion':_0x330a74['fromVersion'],'toVersion':_0x330a74['toVersion']});}['addRevision'](_0x378bbe,_0x399959=0x0){this['_revisions']['add'](_0x378bbe,_0x399959);}['getRevision'](_0x229bb1){return this['_revisions']['get'](_0x229bb1);}['getRevisions'](_0xd0c056={'toJSON':!0x1}){const _0x3bd836=Array['from'](this['_revisions']);return _0x3bd836['reverse'](),_0xd0c056['toJSON']?_0x3bd836['map'](_0x17d3fe=>_0x17d3fe['toJSON']()):_0x3bd836;}['getIndex'](_0x2a640b){return this['_revisions']['getIndex'](_0x2a640b);}['getEarlierVisibleRevision'](_0x4855f6){const [,_0xc95e99]=this['getRevisionsIterator'](_0x4855f6,{'direction':'earlier'});return _0xc95e99;}['getLaterVisibleRevision'](_0x38ccb4){const [,_0x90eaf]=this['getRevisionsIterator'](_0x38ccb4,{'direction':'later'});return _0x90eaf;}['getRevisionsInDiff'](_0x37ef14){const _0x2d13dd=[];for(const _0x1fc3e7 of this['getRevisionsIterator'](_0x37ef14['newRevisionId']))if(_0x2d13dd['push'](_0x1fc3e7),_0x1fc3e7['id']===_0x37ef14['oldRevisionId'])break;return _0x2d13dd;}*['getRevisionsIterator'](_0x523547,{direction:_0x1c93c8='earlier',filter:_0x147cbe=()=>!0x0}={}){const _0x1e3cb1='earlier'===_0x1c93c8?0x1:-0x1;let _0x3a9e06=this['_revisions']['get'](_0x523547),_0x2fdc0b=this['getIndex'](_0x3a9e06);for(yield _0x3a9e06;_0x3a9e06;){if(_0x2fdc0b+=_0x1e3cb1,_0x3a9e06=this['getRevision'](_0x2fdc0b),!_0x3a9e06)return;_0x147cbe(_0x3a9e06)&&(yield _0x3a9e06);}}}class V extends _0x506da8{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2d2b0d,'c'],[_0x2bf1ad,'a'],[_0x37aae7,'e'],[_0x36609f,'r'],[_0x644339,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2d2b0d],['a',_0x2bf1ad],['e',_0x37aae7],['r',_0x36609f],['u',_0x644339]]);async['loadRevisionData'](_0x305cec,_0xde995c){if(_0x305cec['diffData']||!_0xde995c)return;const _0x2021ed=this['editor']['config']['get']('collaboration.channelId'),_0x44d26c=await _0xde995c['getRevision']({'channelId':_0x2021ed,'revisionId':_0x305cec['id']});_0x305cec['diffData']=_0x44d26c['diffData'];}['getRevisionDocumentData'](_0x45ac54){const _0x2703d9={};for(const _0x543a2e in _0x45ac54['diffData']){if(_0x45ac54['diffData'][_0x543a2e]['attachChange']&&!_0x45ac54['diffData'][_0x543a2e]['attachChange']['isAttached'])continue;const _0x3419fb=this['_removeRevisionMarkers'](JSON['parse'](_0x45ac54['diffData'][_0x543a2e]['insertions'])),_0x2b9bae=this['editor']['editing']['view']['document'],_0x52a0e0=new _0x218b0c(_0x2b9bae,_0x3419fb['map'](_0x315cb4=>this['_getViewFromDiffObj'](_0x315cb4,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2703d9[_0x543a2e]=this['editor']['data']['processor']['toData'](_0x52a0e0),this['editor']['data']['processor']['useFillerType']('default');}return _0x2703d9;}['getRevisionRootsAttributes'](_0x4aa22e){const _0x1be060={};for(const _0x5a8fb9 in _0x4aa22e['diffData'])_0x4aa22e['diffData'][_0x5a8fb9]['attachChange']&&!_0x4aa22e['diffData'][_0x5a8fb9]['attachChange']['isAttached']||(_0x1be060[_0x5a8fb9]=_0x4aa22e['diffData'][_0x5a8fb9]['attributesAfter']||{});return _0x1be060;}['_getTypeCharForViewElement'](_0x3cb201){return this['_viewClassToTypeChar']['get'](_0x3cb201['constructor']);}['_getViewFromDiffObj'](_0x247fff,_0x44da83){const _0x1fd85d=this['editor']['editing']['view']['document'];if('string'==typeof _0x247fff)return new _0x3f3247(_0x1fd85d,_0x247fff);{let _0x4dc844,_0x10fd39;_0x10fd39='u'==_0x247fff['type']||'r'==_0x247fff['type']?[]:_0x247fff['children']['map'](_0x31c74a=>this['_getViewFromDiffObj'](_0x31c74a,_0x44da83));const _0x2eaf85=this['_typeCharToViewClass']['get'](_0x247fff['type'])||_0x37f088,_0x48f1f7=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4dc844=new _0x2eaf85(_0x1fd85d,_0x247fff['name'],_0x247fff['attributes'],_0x10fd39),'u'==_0x247fff['type']&&_0x247fff['children'][0x0]){const _0x52bde7=_0x247fff['children'][0x0];if(_0x4dc844['render']=function(_0x5300df){const _0x5a2eac=_0x5300df['createElement']('div');return _0x5a2eac['innerHTML']=_0x52bde7,_0x5a2eac['childNodes'][0x0];},_0x44da83){const _0xfc258d=new _0x218b0c(_0x1fd85d);_0xfc258d['_appendChild'](_0x4dc844);const _0x327714=Array['from'](_0x48f1f7['viewChildrenToDom'](_0xfc258d,{'bind':!0x1})),_0x13d8aa=_0x48f1f7['domDocument']['createElement']('div');_0x13d8aa['append'](..._0x327714),_0x4dc844=Array['from'](_0x48f1f7['domChildrenToView'](_0x13d8aa))[0x0];}}else{if('r'==_0x247fff['type']&&_0x247fff['children'][0x0]){const _0x25950c=_0x247fff['children'][0x0];if(_0x4dc844['render']=function(_0x5cc279){_0x5cc279['innerHTML']=_0x25950c;},_0x44da83){const _0x31f4b6=new _0x218b0c(_0x1fd85d);_0x31f4b6['_appendChild'](_0x4dc844);const _0x125cda=Array['from'](_0x48f1f7['viewChildrenToDom'](_0x31f4b6,{'bind':!0x1})),_0x117718=_0x48f1f7['domDocument']['createElement']('div');_0x117718['append'](..._0x125cda);const _0x500dae=Array['from'](_0x48f1f7['domChildrenToView'](_0x117718));_0x500dae['length']>0x1?_0x4dc844['_appendChild'](_0x500dae):_0x4dc844=_0x500dae[0x0];}}}if(_0x247fff['customProperties']){for(const [_0x47345c,_0x57ef0a]of _0x247fff['customProperties'])_0x4dc844['_setCustomProperty'](_0x47345c,_0x57ef0a);}const _0x12e6bb=void 0x0===_0x247fff['fillerOffset']?null:_0x247fff['fillerOffset'];return null!==_0x12e6bb&&(_0x4dc844['getFillerOffset']=()=>_0x12e6bb),_0x4dc844;}}['_makeModelFromViewString'](_0x365fa5){const _0x229ccd=JSON['parse'](_0x365fa5),_0x390609=this['editor']['editing']['view']['document'],_0x3754ab=new _0x218b0c(_0x390609,_0x229ccd['map'](_0x3c191c=>this['_getViewFromDiffObj'](_0x3c191c,!0x0)));return this['editor']['data']['toModel'](_0x3754ab);}['_removeRevisionMarkers'](_0x344c11){return(_0x344c11=_0x344c11['filter'](_0x565c20=>!_0x565c20['name']||'revision-start'!==_0x565c20['name']&&'revision-end'!==_0x565c20['name']))['forEach'](_0x278279=>{'string'!=typeof _0x278279&&(_0x278279['children']=this['_removeRevisionMarkers'](_0x278279['children']),_0x278279['attributes']=_0x278279['attributes']['filter'](_0x69493=>!_0x69493[0x0]['startsWith']('data-revision-')));}),_0x344c11;}}function g(_0x56f884,_0x3b6a3b,_0x7b2867){const t=_0x56f884['t'];switch(_0x3b6a3b){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'},_0x7b2867);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x7b2867);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 u extends _0x506da8{['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[_0x24f403,I,V,_0x31e0c7];}constructor(_0x38e928){super(_0x38e928),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1e1e3c=_0x2a811c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1e1e3c},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 _0xc3c01a=this['repository']['getRevision'](0x0),_0x31ebaa=_0xc3c01a&&null===_0xc3c01a['creator']?_0xc3c01a:null;if(this['_continueCurrentRevision']=!!_0x31ebaa&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3dde16=this['_source']['getCurrentRevisionId'](),_0x8c30a5=this['repository']['getRevision'](_0x3dde16);if(_0x8c30a5)this['_startingVersion']=_0x8c30a5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x6c7998=this['_source']['history']['_operations']['find'](_0x4f42c4=>!_0x4f42c4['_isInit']),_0xd689a3=_0x6c7998?_0x6c7998['baseVersion']:this['_source']['history']['version'];_0xc3c01a?(_0xc3c01a['toVersion']<_0xd689a3&&_0xc3c01a['_update']({'toVersion':_0xd689a3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x31ebaa['id'],this['_startingVersion']=_0x31ebaa['fromVersion']):(this['_startingVersion']=_0xc3c01a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xd689a3,this['_continueCurrentRevision']=!0x1);}}else _0x31ebaa&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x31ebaa['toVersion'],this['editor']['model']['document']['history']['version']),_0x31ebaa['fromVersion']===_0x31ebaa['toVersion']?(0x0!==_0x31ebaa['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x31ebaa['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x31ebaa['id'],this['_startingVersion']=_0x31ebaa['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',_0x480521=>!_0x480521),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x15db0f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ede0f;for(const _0x3c2bf6 in _0x15db0f){const _0x150a2d=_0x3c2bf6,_0x2f17ce=_0x15db0f[_0x150a2d];if('revisionHistoryLicenseKeyValid'==_0x2f17ce||'revisionHistoryLicenseKeyInvalid'==_0x2f17ce||'revisionHistoryLicenseKeyExpired'==_0x2f17ce||'revisionHistoryLicenseKeyDomainLimit'==_0x2f17ce||'revisionHistoryLicenseKeyNotAllowed'==_0x2f17ce||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2f17ce||'revisionHistoryLicenseKeyTrialLimit'==_0x2f17ce||'revisionHistoryLicenseKeyUsageLimit'==_0x2f17ce){delete _0x15db0f[_0x150a2d],_0x5ede0f=_0x2f17ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5ede0f&&_0x15db0f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5ede0f&&_0x15db0f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5ede0f&&_0x15db0f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5ede0f&&_0x15db0f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5ede0f&&_0x15db0f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5ede0f&&_0x15db0f['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5ede0f&&_0x15db0f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x36e01f=this['repository']['getRevision'](0x0),_0x562ea1=await this['getRevisionDocumentData'](_0x36e01f),_0x5135c9=await this['getRevisionRootsAttributes'](_0x36e01f);this['_replaceEditorDataWithRevisionData'](_0x562ea1,_0x5135c9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x161d2e){this['_source']=_0x161d2e;}async['update'](){const _0x43e1c4=await this['_source']['getLatestVersion']();if(_0x43e1c4>this['currentRevision']['toVersion']){await this['_loadState']();const _0xfdb558=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x43e1c4});_0xfdb558['authors']=_0xfdb558['authorsIds']['map'](_0x194eb0=>this['editor']['plugins']['get']('Users')['getUser'](_0x194eb0)),this['currentRevision']['_update'](_0xfdb558);}}async['saveRevision'](_0x18fecb={},_0x38627a=null){const _0xf26f34=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x38627a>this['currentRevision']['toVersion']&&(_0x38627a=null),null===_0x38627a&&(_0x38627a=await this['_source']['getLatestVersion']());const _0x17111c=this['_getFromVersion'](_0x38627a),_0x2305a4=this['buildRevisionData']({'from':_0x17111c,'to':_0x38627a});if(this['currentRevision']['toVersion']<_0x38627a){const _0x2534c7=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x38627a,'to':_0x38627a});_0x2534c7['authors']=[],_0x2534c7['authorsIds']=[],_0x2534c7['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2534c7,!0x0),delete _0x2534c7['authors'],_0xf26f34['push'](_0x2534c7);}_0x18fecb['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x18fecb['name']=_0x18fecb['name']||null,_0x18fecb['id']=_0x18fecb['id']||_0x2a811c(),_0x18fecb={..._0x18fecb,..._0x2305a4};const _0x274321=this['addRevisionData'](_0x18fecb);_0xf26f34['push'](_0x18fecb);const _0x3df86b=this['repository']['getIndex'](_0x274321);if(0x0!==_0x3df86b){const _0xb2a85a=this['repository']['getRevision'](_0x3df86b-0x1);if(_0xb2a85a['fromVersion']!==_0x38627a){const _0x412d4e=this['_revisionDataBuilder']['getData'](_0x38627a,_0xb2a85a['toVersion']),_0x43e49d={'id':_0xb2a85a['id'],'diffData':_0x412d4e['diffData'],'authorsIds':_0x412d4e['authorsIds'],'authors':_0x412d4e['authorsIds']['map'](_0x22b0c4=>this['editor']['plugins']['get']('Users')['getUser'](_0x22b0c4)),'fromVersion':_0x38627a};_0xb2a85a===this['currentRevision']&&(_0x43e49d['createdAt']=new Date(_0x18fecb['createdAt']['getTime']()+0xa)),_0xb2a85a['_update'](_0x43e49d,!0x0),delete _0x43e49d['authors'],_0xf26f34['push'](_0x43e49d);}}if(this['adapter']){for(const _0x3ea3eb of _0xf26f34)this['_bufferUpdate'](_0x3ea3eb['id'],_0x3ea3eb,!0x0);this['sendBufferedUpdates']();}return _0x274321;}['addRevisionData'](_0x2609e7){const _0x5dcd62=this['repository']['createRevision'](_0x2609e7);return this['adapter']&&_0x5dcd62['on']('_update',(_0x479787,_0x1350e2,_0x244d18)=>{_0x244d18||(this['_bufferUpdate'](_0x1350e2['id'],_0x1350e2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5dcd62,this['_findInsertionIndex'](_0x5dcd62)),_0x5dcd62;}async['getRevisionDocumentData'](_0x199b1a){return await this['_utils']['loadRevisionData'](_0x199b1a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x199b1a);}async['getRevisionRootsAttributes'](_0x2e0def){return await this['_utils']['loadRevisionData'](_0x2e0def,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2e0def);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xbe01ee=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2c3ccd=0x0;_0x2c3ccd<_0xbe01ee['length'];_0x2c3ccd++){const _0x4b0291=_0xbe01ee[_0x2c3ccd];let _0x36e2f1=!0x1;for(const _0x3cb200 of Object['keys'](_0x4b0291))void 0x0===_0x4b0291[_0x3cb200]?delete _0x4b0291[_0x3cb200]:'id'!==_0x3cb200&&(_0x36e2f1=!0x0);_0x36e2f1||(_0xbe01ee[_0x2c3ccd]=null);}if(_0xbe01ee=_0xbe01ee['filter'](_0x52a8b2=>null!==_0x52a8b2),!_0xbe01ee['length'])return;for(let _0x268f66=0x0;_0x268f66<_0xbe01ee['length'];_0x268f66++){const _0x4be86e=_0xbe01ee[_0x268f66];void 0x0!==_0x4be86e['fromVersion']&&void 0x0===_0x4be86e['toVersion']&&(_0x4be86e['toVersion']=this['repository']['getRevision'](_0x4be86e['id'])['toVersion']),void 0x0!==_0x4be86e['toVersion']&&void 0x0===_0x4be86e['fromVersion']&&(_0x4be86e['fromVersion']=this['repository']['getRevision'](_0x4be86e['id'])['fromVersion']);}const _0x5d1033=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xbe01ee,_0x5d1033)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x476cfe=>{if(_0x476cfe){for(const _0x4592a6 of _0x476cfe)this['setRevisionData']({'id':_0x4592a6['id'],'createdAt':_0x4592a6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x47e23a=null,from:_0x1e6241=null,to:_0x2053c3=null}){_0x1e6241=null!==_0x1e6241?_0x1e6241:_0x47e23a['fromVersion'],_0x2053c3=null!==_0x2053c3?_0x2053c3:_0x47e23a['toVersion'];const _0x4f9f53=this['_revisionDataBuilder']['getData'](_0x1e6241,_0x2053c3),_0x47c9e6={'diffData':_0x4f9f53['diffData'],'authorsIds':_0x4f9f53['authorsIds'],'fromVersion':_0x1e6241,'toVersion':_0x2053c3};if(!_0x47e23a||_0x2053c3!==_0x47e23a['toVersion']){const _0x263349=_0x2053c3-0x1,_0x86b053=this['_source']['history']['getOperation'](_0x263349);_0x47c9e6['createdAt']=_0x86b053&&_0x86b053['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1e6241===this['_loadedStateData']['fromVersion']){for(const _0x52f75f of this['_loadedStateData']['authors'])_0x47c9e6['authorsIds']['includes'](_0x52f75f['id'])||_0x47c9e6['authorsIds']['push'](_0x52f75f['id']);}return _0x47c9e6;}['_bufferUpdate'](_0x5ea052,_0x374207,_0x32384f){if(this['_bufferedUpdates']['has'](_0x5ea052)){const _0x23249d=this['_bufferedUpdates']['get'](_0x5ea052);_0x374207=_0x32384f?{..._0x23249d,..._0x374207}:{..._0x374207,..._0x23249d};}this['_bufferedUpdates']['set'](_0x5ea052,_0x374207);}['setRevisionData'](_0xe9606a){const _0x191588=this['repository']['getRevision'](_0xe9606a['id']);if(_0xe9606a['createdAt']&&(_0xe9606a['createdAt']=new Date(_0xe9606a['createdAt'])),_0xe9606a['authorsIds']){const _0x3f4df1=this['editor']['plugins']['get']('Users');_0xe9606a['authors']=_0xe9606a['authorsIds']['map'](_0x36b64e=>_0x3f4df1['getUser'](_0x36b64e));}_0x191588['_update'](_0xe9606a,!0x0);}['_createInitialRevision'](_0x393290){const _0x533b96=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x533b96)this['_initialRevisionId']=_0x533b96['id'];else{const _0x2228e0=!this['editor']['model']['document']['roots']['find'](_0x23d16f=>this['editor']['model']['hasContent'](_0x23d16f)),_0x274234=this['editor']['plugins']['get']('Users')['me']['id'],_0x56c00d=g(this['editor']['locale'],_0x2228e0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x393290,'to':_0x393290,'id':this['_initialRevisionId'],'name':_0x56c00d,'creatorId':_0x274234});}}['_createCurrentRevision'](_0xac4bf4){const _0x4b7392=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4b7392),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xac4bf4,'to':_0xac4bf4,'id':_0x4b7392,'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'](_0x5c42a1,_0x502257){let _0x1ff299=this['editor']['config']['get']('initialData'),_0x4fc2ce=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1ff299){_0x1ff299={};for(const _0x20f961 of this['editor']['model']['document']['getRootNames']())_0x1ff299[_0x20f961]='';}if('string'==typeof _0x1ff299&&(_0x1ff299={'main':_0x1ff299}),void 0x0===_0x4fc2ce){_0x4fc2ce={};for(const _0x7ceaad of this['editor']['model']['document']['getRootNames']())_0x4fc2ce[_0x7ceaad]={};}let _0x48e988=!0x1;const _0x371a35=Object['keys'](_0x1ff299),_0x7667b3=Object['keys'](_0x5c42a1);for(const _0x419e24 of _0x371a35){if(_0x1ff299[_0x419e24]!==_0x5c42a1[_0x419e24]&&''!==_0x1ff299[_0x419e24]['trim']()){_0x48e988=!0x0;break;}if(!_0x1c5062(_0x4fc2ce[_0x419e24],_0x502257[_0x419e24])&&Object['keys'](_0x4fc2ce[_0x419e24])['length']>0x0){_0x48e988=!0x0;break;}}_0x48e988||(_0x48e988=_0x7667b3['some'](_0x5d8936=>!this['editor']['model']['document']['getRoot'](_0x5d8936))),_0x48e988&&_0x41ff87('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1ff299,'editorRootsAttributes':_0x4fc2ce,'revisionData':_0x5c42a1,'revisionRootsAttributes':_0x502257}),this['editor']['config']['set']('initialData',_0x5c42a1),this['editor']['config']['set']('rootsAttributes',_0x502257);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x383076=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x383076['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x52102e){const _0x5bbaca=this['repository']['getRevisions']();_0x5bbaca['reverse']();let _0x5eda91=0x0;for(;_0x5eda91<_0x5bbaca['length'];){const _0x3695c6=_0x5bbaca[_0x5eda91];if(_0x3695c6===this['currentRevision']){_0x5eda91++;continue;}if(_0x3695c6['id']===this['_initialRevisionId'])break;const _0x3273b5=_0x52102e['toVersion']-_0x3695c6['toVersion']||_0x52102e['fromVersion']-_0x3695c6['fromVersion'];if(_0x3273b5>0x0)break;if(_0x3273b5<0x0)_0x5eda91++;else{if(!_0x52102e['creator']&&_0x3695c6['creator'])break;if(_0x3695c6['creator']||!_0x52102e['creator']){if(_0x52102e['createdAt']>_0x3695c6['createdAt'])break;_0x5eda91++;}else _0x5eda91++;}}return _0x5eda91;}['_getFromVersion'](_0x51e15a){const _0x50b018=this['repository']['getRevisions']();_0x50b018['reverse'](),_0x50b018['shift']();const _0x458353=_0x50b018['find'](_0x5ca6fc=>_0x5ca6fc['toVersion']<=_0x51e15a)['toVersion'];return _0x458353<this['_startingVersion']?this['_startingVersion']:_0x458353;}['_makeRevision']({name:_0x34f80c,from:_0x2aa331,to:_0x58430b,creatorId:_0x5f0ee7,id:_0x5578d8}){const _0xd5d860=this['buildRevisionData']({'from':_0x2aa331,'to':_0x58430b});_0xd5d860['name']=_0x34f80c,_0xd5d860['creatorId']=_0x5f0ee7,_0xd5d860['id']=_0x5578d8;const _0xa6fac9=this['addRevisionData'](_0xd5d860);return this['adapter']&&this['_bufferUpdate'](_0xd5d860['id'],_0xd5d860,!0x0),_0xa6fac9;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1ad506){this['editor']=_0x1ad506,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'](_0x22c83e){this['source']=_0x22c83e;const _0x4af98f=new Map(),_0x177c15=new Map(),_0xd5f44b=this['editor']['model']['document']['roots']['map'](_0x2c1dd5=>_0x2c1dd5['rootName']);for(const _0x1cd0fb of _0xd5f44b){const _0xb3beb9=this['editor']['model']['document']['getRoot'](_0x1cd0fb),_0xd9d146=N(_0xb3beb9);_0x4af98f['set'](_0x1cd0fb,_0xd9d146),_0x177c15['set'](_0x1cd0fb,Object['fromEntries'](_0xb3beb9['getAttributes']()));}const _0x5ac133=Array['from'](this['editor']['model']['markers'])['map'](_0x144e6e=>[_0x144e6e['name'],_0x144e6e['getRange']()]),_0x1c5ae4=this['source']['version'];this['_saveMetaData'](_0x1c5ae4,_0x4af98f,_0x5ac133,_0x177c15),this['_startingRevisionId']=this['_revisionId'];const _0x3debf0=new Map(),_0x2332e6=new Map();for(const _0x506ebc of _0xd5f44b){const _0x1dc1ef=P(_0x506ebc);_0x3debf0['set'](_0x506ebc,_0x1dc1ef),_0x2332e6['set'](_0x506ebc,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3debf0,[],_0x2332e6);}['getData'](_0x4f5ed1,_0x3b338a){if(this['_lastFrom']===_0x4f5ed1&&this['_lastTo']<=_0x3b338a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3b338a,!0x0);else{if(!this['_savedMetaData']['has'](_0x4f5ed1)){const _0x5300fb=this['_getPreviousFrom'](_0x4f5ed1);this['_calculateMetaData'](_0x5300fb,_0x4f5ed1,!0x1);}this['_calculateMetaData'](_0x4f5ed1,_0x3b338a,!0x0);}return this['_lastFrom']=_0x4f5ed1,this['_lastTo']=_0x3b338a,this['_getState']();}['loadState'](_0x598ad0){const _0x396b52=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x598ad0['fromVersion'],this['_lastTo']=_0x598ad0['toVersion'];for(const _0x1180bf in _0x598ad0['diffData']){const _0x3898cb=_0x598ad0['diffData'][_0x1180bf]['attachChange'],_0x197f30=_0x2061e4(_0x598ad0['diffData'][_0x1180bf]['attributesBefore'])||{},_0xc539f5=_0x396b52['_makeModelFromViewString'](_0x598ad0['diffData'][_0x1180bf]['deletions']);_0xc539f5['rootName']=_0x1180bf,_0xc539f5['_isAttached']=!_0x3898cb||!_0x3898cb['isAttached'],_0xc539f5['isAttached']=()=>_0xc539f5['_isAttached'],this['_baseRoots']['set'](_0x1180bf,_0xc539f5),this['_baseRootsAttributes']['set'](_0x1180bf,_0x197f30),_0x3898cb&&this['_touchedRoots']['set'](_0x1180bf,_0x3898cb);const _0x286e14=this['_makeIdsRoot'](_0xc539f5);this['_baseIdsRoots']['set'](_0x1180bf,_0x286e14);for(const [_0x2583ee,_0x4efaff]of _0xc539f5['markers']){if(!_0x2583ee['startsWith']('revision:'))continue;const _0x1d10e5=_0x2583ee['split'](':')[0x2];for(const _0x4d7194 of _0x4efaff['getWalker']({'singleCharacters':!0x0})){const _0x131710=this['_getVidAttributeName'](_0x4d7194),_0x199bfa='elementEnd'==_0x4d7194['type']?_0x4d7194['previousPosition']['path']['slice'](0x0,-0x1):_0x4d7194['previousPosition']['path'],_0x1384eb=_0x286e14['getNodeByPath'](_0x199bfa)['getAttribute'](_0x131710);this['_touched']['set'](_0x1384eb,{'userId':_0x1d10e5});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1a2b13=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1d3956=>!this['_touched']['has'](_0x1d3956));let _0x2a9de9=0x0;const _0x53aaff=new Map();for(const _0x163c59 in _0x598ad0['diffData']){const _0x430a19=_0x598ad0['diffData'][_0x163c59]['attachChange'],_0x54456a=_0x2061e4(_0x598ad0['diffData'][_0x163c59]['attributesAfter'])||{},_0x349ff4=_0x396b52['_makeModelFromViewString'](_0x598ad0['diffData'][_0x163c59]['insertions']);_0x349ff4['rootName']=_0x163c59,_0x349ff4['_isAttached']=!_0x430a19||_0x430a19['isAttached'],_0x349ff4['isAttached']=()=>_0x349ff4['_isAttached'],this['_diffRoots']['set'](_0x163c59,_0x349ff4),this['_diffRootsAttributes']['set'](_0x163c59,_0x54456a);const _0x527a88=this['_makeIdsRoot'](_0x349ff4,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x163c59,_0x527a88),_0x53aaff['set'](_0x163c59,_0x349ff4['isAttached']()?_0x54456a:{});for(const [_0x24f78a,_0x4fdfc1]of _0x349ff4['markers']){if(!_0x24f78a['startsWith']('revision:'))continue;const _0x16fa08=_0x24f78a['split'](':')[0x2];for(const _0x25c77a of _0x4fdfc1['getWalker']({'singleCharacters':!0x0})){const _0x335916=this['_getVidAttributeName'](_0x25c77a),_0x6cbe31=this['_revisionId']++,_0x18c812='elementEnd'==_0x25c77a['type']?_0x25c77a['previousPosition']['path']['slice'](0x0,-0x1):_0x25c77a['previousPosition']['path'];_0x527a88['getNodeByPath'](_0x18c812)['_setAttribute'](_0x335916,_0x6cbe31),this['_touched']['set'](_0x6cbe31,{'userId':_0x16fa08});}}for(const _0x1ec2c8 of this['editor']['model']['createRangeIn'](_0x349ff4)['getWalker']({'singleCharacters':!0x0})){const _0x3374eb=this['_getVidAttributeName'](_0x1ec2c8),_0x16fbea='elementEnd'==_0x1ec2c8['type']?_0x1ec2c8['previousPosition']['path']['slice'](0x0,-0x1):_0x1ec2c8['previousPosition']['path'],_0x1d806c=_0x527a88['getNodeByPath'](_0x16fbea);_0x1d806c['getAttribute'](_0x3374eb)>0x0||_0x1d806c['_setAttribute'](_0x3374eb,_0x1a2b13[_0x2a9de9++]);}for(const [_0x42a3d6,_0x55f3fc]of _0x349ff4['markers'])_0x42a3d6['startsWith']('revision:')||this['_markers']['set'](_0x42a3d6,_0x55f3fc);}const _0x19710d=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x19710d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x19710d,0x1));const _0xc6fecb=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0xc6fecb),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc6fecb,0x1));const _0x599981=Array['from'](this['_diffRoots'])['map'](([_0x47a341,_0x225e61])=>[_0x47a341,N(_0x225e61)]);this['_saveMetaData'](this['_lastTo'],_0x599981,this['_markers'],_0x53aaff);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x286140,_0x2f58d7,_0x2aece7,_0x4c6e32){const _0x312f69=new Map(_0x2f58d7),_0x18df41=new Map(_0x2061e4(_0x4c6e32)),_0x590ed4=new Map();for(const [_0x3c34a7,_0x3e8dbf]of _0x2aece7)_0x590ed4['set'](_0x3c34a7,{'start':_0x3e8dbf['start']['clone'](),'end':_0x3e8dbf['end']['clone'](),'rootName':_0x3e8dbf['root']['rootName']});this['_savedMetaData']['set'](_0x286140,{'roots':_0x312f69,'markers':_0x590ed4,'rootsAttributes':_0x18df41});}['_removeMetaData'](_0x356516){this['_savedMetaData']['delete'](_0x356516);}['_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'](_0x47da83,_0x430087=null){let _0x40898a=null;_0x47da83['is']('documentFragment')||(_0x40898a=new ut(_0x47da83['name'],{'vid_start':null===_0x430087?this['_revisionId']++:_0x430087++}));const _0x2b5c95=[];for(const _0x3d07b5 of _0x47da83['getChildren']())if(_0x3d07b5['is']('element')){_0x2b5c95['push'](this['_makeIdsRoot'](_0x3d07b5,_0x430087));const _0x485e38=_0x2b5c95[_0x2b5c95['length']-0x1];null!==_0x430087&&(_0x430087=_0x485e38['is']('element','$text')?_0x485e38['getAttribute']('vid')+0x1:_0x485e38['getAttribute']('vid_end')+0x1);}else{for(let _0xf5dba8=0x0;_0xf5dba8<_0x3d07b5['offsetSize'];_0xf5dba8++)_0x2b5c95['push'](new ut('$text',{'vid':null===_0x430087?this['_revisionId']++:_0x430087++}));}if(_0x47da83['is']('documentFragment')){const _0x47b24f=P(_0x47da83['rootName']);return _0x47b24f['_insertChild'](0x0,_0x2b5c95),_0x47b24f;}return _0x40898a['_setAttribute']('vid_end',null===_0x430087?this['_revisionId']++:_0x430087++),_0x40898a['_insertChild'](0x0,_0x2b5c95),_0x40898a;}['_calculateMetaData'](_0x1f876b,_0x174a8b,_0xf34b2a){this['_reset']();const {roots:_0x22dd0a,markers:_0x1a97b5,rootsAttributes:_0x51c175}=this['_savedMetaData']['get'](_0x1f876b);this['_baseRoots']=new Map(_0x22dd0a),this['_baseRootsAttributes']=new Map(_0x2061e4(_0x51c175));for(const [_0x486170,_0xb4b329]of this['_baseRoots'])if('$graveyard'!==_0x486170&&(this['_diffRoots']['set'](_0x486170,N(_0xb4b329)),this['_diffRootsAttributes']=new Map(_0x2061e4(_0x51c175)),_0xf34b2a)){const _0x24fa3a=this['_revisionId'];this['_idsRoots']['set'](_0x486170,this['_makeIdsRoot'](_0xb4b329)),this['_baseIdsRoots']['set'](_0x486170,this['_makeIdsRoot'](_0xb4b329,_0x24fa3a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xf34b2a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5c4ec2,_0x1d70ff]of _0x1a97b5){const _0x3a7f83=this['_baseRoots']['get'](_0x1d70ff['rootName']),_0x1c9fbd=this['_diffRoots']['get'](_0x1d70ff['rootName']),_0x4a30e5=new lt(this['_fixPosition'](_0x1d70ff['start'],_0x3a7f83),this['_fixPosition'](_0x1d70ff['end'],_0x3a7f83)),_0x1a1e8f=this['_fixRange'](_0x4a30e5,_0x1c9fbd);_0x3a7f83['markers']['set'](_0x5c4ec2,_0x4a30e5),this['_markers']['set'](_0x5c4ec2,_0x1a1e8f);}this['_applyOperations'](_0x1f876b,_0x174a8b,_0xf34b2a);}['_applyOperations'](_0xeca930,_0xcd6e83,_0xc5b80d){for(const _0x548d4f of this['source']['getOperations'](_0xeca930,_0xcd6e83))this['_handleOperation'](_0x548d4f,_0xc5b80d);for(const _0x1f88de of this['_diffRoots']['values']())_0x1f88de['markers']['clear']();for(const [_0x2d56e8,_0x4a6ae6]of this['_markers']){this['_diffRoots']['get'](_0x4a6ae6['root']['rootName'])['markers']['set'](_0x2d56e8,_0x4a6ae6['clone']());}const _0x1188f9=new Map(),_0x51c7b9=new Map();for(const [_0x4bb46a,_0x38f47e]of this['_diffRoots'])_0x1188f9['set'](_0x4bb46a,N(_0x38f47e)),_0x51c7b9['set'](_0x4bb46a,this['_diffRootsAttributes']['get'](_0x4bb46a));this['_saveMetaData'](_0xcd6e83,_0x1188f9,this['_markers'],_0x51c7b9);}['_getPreviousFrom'](_0x4129d8){const _0x352df2=Array['from'](this['_savedMetaData']['keys']());_0x352df2['sort']((_0x316876,_0x2ece0e)=>_0x316876-_0x2ece0e),_0x352df2['reverse']();for(const _0x4d4598 of _0x352df2)if(_0x4d4598<_0x4129d8)return _0x4d4598;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x24ec4a,_0x2aa83b){const _0x2c1711=Array['from'](_0x2aa83b['markers'])['map'](([_0xa81b31,_0x5e33f5])=>[_0xa81b31,this['_fixRange'](_0x5e33f5,_0x24ec4a)]);_0x24ec4a['markers']=new Map(_0x2c1711);}['_transformMarkers'](_0x52fda9){for(const _0x49c9c9 of this['_markers']['values']()){const _0x29ccea=_0x49c9c9['getTransformedByOperation'](_0x52fda9),_0x174de8=lt['_createFromRanges'](_0x29ccea);_0x49c9c9['start']=_0x174de8['start'],_0x49c9c9['end']=_0x174de8['end'];}}['_handleOperation'](_0x27e3eb,_0x354fe3){if('addRoot'!=_0x27e3eb['type']&&'detachRoot'!=_0x27e3eb['type']){if('insert'==_0x27e3eb['type']){const _0x59be37=_0x27e3eb['position']['root']['rootName'];this['_diffRoots']['has'](_0x59be37)||(this['_diffRoots']['set'](_0x59be37,P(_0x59be37,!0x0)),this['_diffRootsAttributes']['set'](_0x59be37,{}),_0x354fe3&&this['_idsRoots']['set'](_0x59be37,P(_0x59be37,!0x0)));}else{if('addRootAttribute'==_0x27e3eb['type']||'removeRootAttribute'==_0x27e3eb['type']||'changeRootAttribute'==_0x27e3eb['type'])return void this['_handleRootAttributeOperation'](_0x27e3eb);'marker'==_0x27e3eb['type']&&this['_handleMarkerOperation'](_0x27e3eb);}if('marker'!==_0x27e3eb['type']){const _0x3bee80=this['_cloneOperation'](_0x27e3eb,this['_diffRoots']);_0x3bee80['_execute'](),this['_transformMarkers'](_0x3bee80);}if(_0x354fe3)switch(_0x27e3eb['type']){case'insert':this['_handleInsertOperation'](_0x27e3eb);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x27e3eb);break;case'merge':this['_handleMergeOperation'](_0x27e3eb);break;case'split':this['_handleSplitOperation'](_0x27e3eb);}}else this['_handleRootOperation'](_0x27e3eb,_0x354fe3);}['_cloneOperation'](_0x5db7a4,_0x52ff1e){const _0x52c3ba=_0x5db7a4['clone']();return _0x52c3ba['_authorId']=_0x5db7a4['_authorId'],this['_fixOperation'](_0x52c3ba,_0x52ff1e),_0x52c3ba;}['_getBaseVids'](_0x3c801f){return _0x3c801f['map'](_0x459510=>{const _0x1ab34e=this['_getVidAttributeName'](_0x459510);return Number(_0x459510['item']['getAttribute'](_0x1ab34e));});}['_generateTape'](_0x4af9cc,_0x24dfcb){if(_0x4af9cc['is']('element','$text'))_0x24dfcb['push']({'item':_0x4af9cc,'type':'text'});else{_0x4af9cc['is']('element')&&_0x24dfcb['push']({'item':_0x4af9cc,'type':'elementStart'});for(const _0x2e6b81 of _0x4af9cc['getChildren']())this['_generateTape'](_0x2e6b81,_0x24dfcb);_0x4af9cc['is']('element')&&_0x24dfcb['push']({'item':_0x4af9cc,'type':'elementEnd'});}return _0x24dfcb;}['_getState'](){const _0x2c9cae=new Map(this['_touched']),_0x59e497=new Map(_0x2c9cae),_0x2e0ad5=new Map(),_0xbef768={'insertions':{},'deletions':{}},_0x4c9e34={'insertions':{},'deletions':{}},_0xad4455=new Map(),_0x1ef40b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1ef40b['delete']('$graveyard');for(const _0x35fe82 of _0x1ef40b){const _0x55b3e3=this['_diffRoots']['get'](_0x35fe82)||P(_0x35fe82,!0x1),_0x2a5b8a=this['_baseRoots']['get'](_0x35fe82)||P(_0x35fe82,!0x1);_0x55b3e3['isAttached']()||_0x2a5b8a['isAttached']()?(_0xbef768['insertions'][_0x35fe82]=N(_0x55b3e3),_0xbef768['deletions'][_0x35fe82]=N(_0x2a5b8a),this['_copyMarkers'](_0xbef768['deletions'][_0x35fe82],_0x2a5b8a),this['_copyMarkers'](_0xbef768['insertions'][_0x35fe82],_0x55b3e3),_0x4c9e34['insertions'][_0x35fe82]=this['_generateTape'](this['_idsRoots']['get'](_0x35fe82),[]),_0x4c9e34['deletions'][_0x35fe82]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x35fe82)||P(_0x35fe82,!0x1),[])):_0x1ef40b['delete'](_0x35fe82);}for(const _0x381b08 of _0x1ef40b){const _0x1df0af=_0x4c9e34['insertions'][_0x381b08];for(const _0x3ec3df of _0x1df0af){const _0x1f0cd1=this['_getVidAttributeName'](_0x3ec3df),_0x271b5f=_0x3ec3df['item']['getAttribute'](_0x1f0cd1);_0x59e497['delete'](_0x271b5f),_0x271b5f>=this['_startingRevisionId']&&_0x2e0ad5['set'](_0x271b5f,_0x2c9cae['get'](_0x271b5f));}}for(const _0x491db8 of _0x1ef40b){const _0x47105a=_0x4c9e34['insertions'][_0x491db8],_0xdc716d=this['_getBaseVids'](_0x4c9e34['deletions'][_0x491db8]);let _0x33b1e9=0x0;for(const _0x33a759 of _0x47105a){const _0xae41c3=this['_getVidAttributeName'](_0x33a759),_0x52068c=_0x33a759['item']['getAttribute'](_0xae41c3);if(!_0x2e0ad5['has'](_0x52068c)&&!_0xad4455['has'](_0x52068c)){if(_0x59e497['has'](_0x52068c))_0x33b1e9++;else{if(_0x52068c!=_0xdc716d[_0x33b1e9]){const _0x5b7ce4=_0x2c9cae['get'](_0x52068c)||_0x2c9cae['get'](_0xdc716d[_0x33b1e9]);for(;_0x52068c!=_0xdc716d[_0x33b1e9];)_0x59e497['has'](_0xdc716d[_0x33b1e9])||(_0xad4455['set'](_0xdc716d[_0x33b1e9],_0x5b7ce4),_0x2c9cae['set'](_0xdc716d[_0x33b1e9],_0x5b7ce4)),_0x33b1e9++;}_0x33b1e9++;}}}}for(const _0x96c787 of _0x1ef40b){const _0x25b0b3=_0x4c9e34['insertions'][_0x96c787];for(const _0x2549dd of _0x25b0b3){const _0x2a80a9=this['_getVidAttributeName'](_0x2549dd),_0x5434aa=_0x2549dd['item']['getAttribute'](_0x2a80a9);if(_0xad4455['has'](_0x5434aa)){const _0x5b5a10=_0xad4455['get'](_0x5434aa);_0x59e497['has'](_0x5434aa)||_0x59e497['set'](_0x5434aa,{..._0x5b5a10}),_0x2e0ad5['set'](_0x5434aa,{..._0x5b5a10});}}}for(const _0x285fa6 of _0x59e497['keys']())_0x285fa6>=this['_startingRevisionId']&&_0x59e497['delete'](_0x285fa6);const _0x588963=new Map();for(const _0x2ba4e9 of _0x1ef40b){let _0x5a3190=_0x4c9e34['insertions'][_0x2ba4e9];for(const _0x33dc74 of _0x5a3190)if(_0x33dc74['item']['is']('element','tableCell')){const _0x25320f=this['_getVidAttributeName'](_0x33dc74),_0x286465=_0x33dc74['item']['getAttribute'](_0x25320f);if(_0x2e0ad5['has'](_0x286465)){const _0x1a94b2=_0x33dc74['item']['parent']['parent']['getAttribute']('vid_start'),_0x5227c0=_0x588963['get'](_0x1a94b2)||new Set();_0x5227c0['add'](_0x2e0ad5['get'](_0x286465)['userId']),_0x588963['set'](_0x1a94b2,_0x5227c0);}}_0x5a3190=_0x4c9e34['deletions'][_0x2ba4e9];for(const _0x1ff5a4 of _0x5a3190)if(_0x1ff5a4['item']['is']('element','tableCell')){const _0x8cf499=this['_getVidAttributeName'](_0x1ff5a4),_0x2da54e=_0x1ff5a4['item']['getAttribute'](_0x8cf499);if(_0x59e497['has'](_0x2da54e)){const _0x3201c5=_0x1ff5a4['item']['parent']['parent']['getAttribute']('vid_start'),_0x4e29d2=_0x588963['get'](_0x3201c5)||new Set();_0x4e29d2['add'](_0x59e497['get'](_0x2da54e)['userId']),_0x588963['set'](_0x3201c5,_0x4e29d2);}}for(const _0x57057a of _0x588963['keys']())(_0x2e0ad5['has'](_0x57057a)||_0x59e497['has'](_0x57057a))&&_0x588963['delete'](_0x57057a);}for(const _0x5457b4 of _0x1ef40b){const _0x298d25=_0x4c9e34['insertions'][_0x5457b4];let _0x1385f9=null,_0x2c5675=null;for(const _0x18c783 of _0x298d25){const _0x27cc9d=this['_getVidAttributeName'](_0x18c783),_0x534c64=_0x18c783['item']['getAttribute'](_0x27cc9d),_0x1c39de=_0x588963['get'](_0x534c64);_0x1c39de&&'elementStart'==_0x18c783['type']&&(_0x1385f9=Array['from'](_0x1c39de)[0x0],_0x2c5675=_0x18c783['item']['getAttribute']('vid_end')),_0x1385f9&&(_0x59e497['set'](_0x534c64,{'userId':_0x1385f9}),_0x2e0ad5['set'](_0x534c64,{'userId':_0x1385f9})),_0x534c64==_0x2c5675&&(_0x1385f9=null,_0x2c5675=null);}}const _0x1945c8={},_0x15f20d=new Set();for(const _0x500aa7 of _0x1ef40b){const _0x3cf42f=_0xbef768['deletions'][_0x500aa7],_0x26056e=_0xbef768['insertions'][_0x500aa7];for(const {userId:_0x5cda59}of this['_touchedMarkers']['values']())null!==_0x5cda59&&_0x15f20d['add'](_0x5cda59);for(const {userId:_0x1da552}of this['_touchedRoots']['values']())null!==_0x1da552&&_0x15f20d['add'](_0x1da552);this['_markChanges'](_0x26056e,_0x4c9e34['insertions'][_0x500aa7],_0x2e0ad5,'insertion',_0x15f20d),this['_markChanges'](_0x3cf42f,_0x4c9e34['deletions'][_0x500aa7],_0x59e497,'deletion',_0x15f20d),_0x1945c8[_0x500aa7]={'insertions':this['_prepareViewToSave'](_0x26056e),'deletions':this['_prepareViewToSave'](_0x3cf42f),'attachChange':this['_touchedRoots']['get'](_0x500aa7)||null,'attributesBefore':_0x2061e4(this['_baseRootsAttributes']['get'](_0x500aa7))||{},'attributesAfter':_0x2061e4(this['_diffRootsAttributes']['get'](_0x500aa7))};}return{'diffData':_0x1945c8,'authorsIds':Array['from'](_0x15f20d)};}['_processRootBeforeSave'](_0x187608){for(const [,_0x52115f]of _0x187608['markers']){const _0x5135fb=_0x52115f['start']['getAncestors']()['filter'](_0x4af3ae=>'tableCell'==_0x4af3ae['name']);for(const _0x2a9bba of _0x5135fb)0x1==_0x2a9bba['childCount']&&_0x2a9bba['getChild'](0x0)['is']('element','paragraph')&&_0x2a9bba['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xd64d0d){this['_processRootBeforeSave'](_0xd64d0d);const _0x260077=this['editor']['data']['toView'](_0xd64d0d,{}),_0x22b56c=Array['from'](_0x260077['getChildren']())['map'](_0x45d758=>this['_getViewJson'](_0x45d758));return JSON['stringify'](_0x22b56c);}['_getViewJson'](_0x546cbc){if(_0x546cbc['is']('$text'))return _0x546cbc['data'];{const _0x437ec0=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x20d14f=_0x546cbc,_0x18491c=this['editor']['data']['htmlProcessor']['domConverter'],_0x1159b7={'type':_0x437ec0['_getTypeCharForViewElement'](_0x20d14f),'name':_0x20d14f['name'],'attributes':Array['from'](_0x20d14f['getAttributes']()),'children':Array['from'](_0x20d14f['getChildren']())['map'](_0x12a885=>this['_getViewJson'](_0x12a885))};if(_0x546cbc['is']('uiElement')&&'$comment'!=_0x546cbc['name']){const _0x2634f2=_0x546cbc['render'](_0x18491c['domDocument'],_0x18491c);_0x1159b7['children']['push'](_0x2634f2['outerHTML']);}else{if(_0x546cbc['is']('rawElement')){const _0x4c9aec=_0x18491c['domDocument']['createElement'](_0x20d14f['name']);_0x546cbc['render'](_0x4c9aec,_0x18491c),_0x1159b7['children']['push'](_0x4c9aec['innerHTML']);}}const _0x3c8bd3=Array['from'](_0x20d14f['getCustomProperties']());_0x3c8bd3['length']>0x0&&(_0x1159b7['customProperties']=_0x3c8bd3);const _0x1eafea=_0x20d14f['getFillerOffset']();return null!==_0x1eafea&&(_0x1159b7['fillerOffset']=_0x1eafea),_0x1159b7;}}['_markChanges'](_0x3656d6,_0x46b06b,_0x573bf8,_0x1f501a,_0x183cc2){let _0x411c88=null,_0x2e0263=null,_0x34cb3c=0x0;const _0x27b274=this['editor']['model'];for(let _0x302298=0x0;_0x302298<_0x46b06b['length'];_0x302298++){const _0x3f8d80=this['_getVidAttributeName'](_0x46b06b[_0x302298]),_0x558f44=_0x46b06b[_0x302298]['item']['getAttribute'](_0x3f8d80),_0x13790e=_0x573bf8['get'](_0x558f44),_0x3ecc5c=_0x302298==_0x46b06b['length']-0x1;(!_0x411c88&&_0x13790e&&(_0x411c88=_0x13790e,_0x2e0263=_0x46b06b[_0x302298]),_0x411c88&&(!_0x13790e||_0x13790e['userId']!=_0x411c88['userId']))&&(_0x34af8a(_0x13790e,F(_0x2e0263,_0x3656d6,_0x27b274),F(_0x46b06b[_0x302298],_0x3656d6,_0x27b274)),_0x411c88=_0x13790e||null,_0x2e0263=_0x13790e?_0x46b06b[_0x302298]:null),_0x411c88&&_0x3ecc5c&&_0x34af8a(_0x13790e,F(_0x2e0263,_0x3656d6,_0x27b274),B(_0x46b06b[_0x302298],_0x3656d6,_0x27b274));}function _0x34af8a(_0x503999,_0x504098,_0x20df49){const _0x207f7b=_0x411c88['userId'],_0x5d6601='revision:'+_0x1f501a+':'+_0x207f7b+':'+_0x34cb3c++,_0x1d314c=_0x27b274['createRange'](_0x504098,_0x20df49);_0x3656d6['markers']['set'](_0x5d6601,_0x1d314c),null!==_0x207f7b&&_0x183cc2['add'](_0x207f7b);}}['_getVidAttributeName'](_0x2ddc17){switch(_0x2ddc17['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x113bc6,_0x3dc404){_0x113bc6['baseVersion']=null;for(const _0x41383d in _0x113bc6){const _0x3878f4=_0x113bc6[_0x41383d];if(_0x3878f4 instanceof ft){const _0x331b74=_0x3dc404['get'](_0x3878f4['root']['rootName']);_0x113bc6[_0x41383d]=this['_fixPosition'](_0x3878f4,_0x331b74);}if(_0x3878f4 instanceof lt){const _0xeb247e=_0x3dc404['get'](_0x3878f4['root']['rootName']);_0x113bc6[_0x41383d]=this['_fixRange'](_0x3878f4,_0xeb247e);}'root'===_0x41383d&&(_0x113bc6['root']=_0x3dc404['get'](_0x113bc6['root']['rootName']));}}['_fixRange'](_0x5cb39e,_0x24525a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5cb39e['start'],_0x24525a),this['_fixPosition'](_0x5cb39e['end'],_0x24525a));}['_fixPosition'](_0x590fcf,_0x3ff0a1){return this['editor']['model']['createPositionFromPath'](_0x3ff0a1,_0x590fcf['path'],_0x590fcf['stickiness']);}['_handleInsertOperation'](_0x2869b6){const _0x17f197=this['_idsRoots']['get'](_0x2869b6['position']['root']['rootName']),_0x1a630c=this['_fixPosition'](_0x2869b6['position'],_0x17f197),_0x5767ac=null===_0x2869b6['_authorId']?null:_0x2869b6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3dd1ee=_0x1a630c['parent'],_0x16c42a=this['_revisionId'],_0x43fc83=[];for(const _0x118bb0 of _0x2869b6['nodes'])if(_0x118bb0['is']('element'))_0x43fc83['push'](this['_makeIdsRoot'](_0x118bb0));else{for(let _0xfa5e3e=0x0;_0xfa5e3e<_0x118bb0['offsetSize'];_0xfa5e3e++)_0x43fc83['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4b7e62=this['_revisionId'];for(let _0x422a1b=_0x16c42a;_0x422a1b<_0x4b7e62;_0x422a1b++)this['_touched']['set'](_0x422a1b,{'userId':_0x5767ac});_0x3dd1ee['_insertChild'](_0x1a630c['offset'],_0x43fc83);}['_handleMoveOperation'](_0x66843a){(_0x66843a=this['_cloneOperation'](_0x66843a,this['_idsRoots']))['_execute']();const _0x49e576=null===_0x66843a['_authorId']?null:_0x66843a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x370443=_0x66843a['getMovedRangeStart'](),_0x32830d=_0x370443['parent'],_0x5c4a30=_0x370443['offset'];!function _0x56008b(_0x296a85,_0x4eaca3,_0x22dc84,_0x53a794){for(let _0x20b8a5=_0x22dc84;_0x20b8a5<_0x53a794;_0x20b8a5++){const _0xdc72fa=_0x4eaca3['getChild'](_0x20b8a5);_0xdc72fa['is']('element','$text')?_0x296a85['set'](_0xdc72fa['getAttribute']('vid'),{'userId':_0x49e576}):(_0x296a85['set'](_0xdc72fa['getAttribute']('vid_start'),{'userId':_0x49e576}),_0x56008b(_0x296a85,_0xdc72fa,0x0,_0xdc72fa['childCount']),_0x296a85['set'](_0xdc72fa['getAttribute']('vid_end'),{'userId':_0x49e576}));}}(this['_touched'],_0x32830d,_0x5c4a30,_0x5c4a30+_0x66843a['howMany']);}['_handleMergeOperation'](_0x18eefa){const _0x5d1383=null===(_0x18eefa=this['_cloneOperation'](_0x18eefa,this['_idsRoots']))['_authorId']?null:_0x18eefa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37c306=_0x18eefa['targetPosition']['parent'],_0xd69d97=_0x18eefa['sourcePosition']['parent'],_0x1ba024=_0x37c306['getAttribute']('vid_end'),_0x372506=_0xd69d97['getAttribute']('vid_start');_0x37c306['_setAttribute']('vid_end',_0xd69d97['getAttribute']('vid_end')),_0xd69d97['_setAttribute']('vid_end',_0x1ba024),this['_touched']['set'](_0x372506,{'userId':_0x5d1383}),this['_touched']['set'](_0x1ba024,{'userId':_0x5d1383}),_0x18eefa['_execute']();}['_handleSplitOperation'](_0x12ad4c){const _0x12c46e=null===(_0x12ad4c=this['_cloneOperation'](_0x12ad4c,this['_idsRoots']))['_authorId']?null:_0x12ad4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x314192=_0x12ad4c['graveyardPosition'],_0x46e920=_0x12ad4c['splitPosition']['parent'];_0x12ad4c['_execute']();const _0x4d976a=_0x46e920['getAttribute']('vid_end'),_0x364f05=_0x12ad4c['insertionPosition']['nodeAfter'];if(_0x314192){const _0x205061=_0x364f05['getAttribute']('vid_end'),_0x4aba72=_0x46e920['getAttribute']('vid_end');_0x46e920['_setAttribute']('vid_end',_0x205061),_0x364f05['_setAttribute']('vid_end',_0x4aba72),this['_touched']['set'](_0x46e920['getAttribute']('vid_end'),{'userId':_0x12c46e}),this['_touched']['set'](_0x364f05['getAttribute']('vid_start'),{'userId':_0x12c46e});}else{const _0x3fd45d=this['_revisionId']++,_0x2a48cf=this['_revisionId']++;_0x46e920['_setAttribute']('vid_end',_0x3fd45d),_0x364f05['_setAttribute']('vid_start',_0x2a48cf),_0x364f05['_setAttribute']('vid_end',_0x4d976a),this['_touched']['set'](_0x3fd45d,{'userId':_0x12c46e}),this['_touched']['set'](_0x2a48cf,{'userId':_0x12c46e});}}['_handleMarkerOperation'](_0xb4e891){if(!_0xb4e891['affectsData'])return;const _0x3b574d=(_0xb4e891=this['_cloneOperation'](_0xb4e891,this['_diffRoots']))['oldRange']?_0xb4e891['oldRange']['root']:null,_0x4f4d4c=_0xb4e891['newRange']?_0xb4e891['newRange']['root']:null;_0x3b574d&&this['_markers']['delete'](_0xb4e891['name']),_0x4f4d4c&&this['_markers']['set'](_0xb4e891['name'],_0xb4e891['newRange']['clone']());const _0x7ec6dc=null===_0xb4e891['_authorId']?null:_0xb4e891['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20f5d9=_0xb4e891['name'];if(!this['_touchedMarkers']['has'](_0x20f5d9))return void this['_touchedMarkers']['set'](_0x20f5d9,{'range':_0xb4e891['oldRange'],'userId':_0x7ec6dc});const _0x25bc68=this['_touchedMarkers']['get'](_0x20f5d9),_0x1904fc=_0x25bc68['range'],_0x6f2ffa=_0xb4e891['newRange'];null==_0x1904fc&&null==_0x6f2ffa||_0x1904fc&&_0x6f2ffa&&_0x1904fc['isEqual'](_0x6f2ffa)?this['_touchedMarkers']['delete'](_0xb4e891['name']):_0x25bc68['userId']=_0x7ec6dc;}['_handleRootOperation'](_0x168895,_0xd4f1f4){this['_diffRoots']['has'](_0x168895['rootName'])?this['_diffRoots']['get'](_0x168895['rootName'])['_isAttached']=_0x168895['isAdd']:(this['_diffRoots']['set'](_0x168895['rootName'],P(_0x168895['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x168895['rootName'],{}),_0xd4f1f4&&this['_idsRoots']['set'](_0x168895['rootName'],P(_0x168895['rootName'],!0x0)));const _0x5ac4be=null===_0x168895['_authorId']?null:_0x168895['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25799f=this['_touchedRoots']['get'](_0x168895['rootName']);_0x25799f&&_0x25799f['userId']===_0x5ac4be?this['_touchedRoots']['delete'](_0x168895['rootName']):this['_touchedRoots']['set'](_0x168895['rootName'],{'userId':_0x5ac4be,'isAttached':_0x168895['isAdd']});}['_handleRootAttributeOperation'](_0x292fb1){const _0x6a620b=this['_diffRootsAttributes']['get'](_0x292fb1['root']['rootName']);null===_0x292fb1['newValue']?delete _0x6a620b[_0x292fb1['key']]:_0x6a620b[_0x292fb1['key']]=_0x292fb1['newValue'];}}function N(_0xf9ae7d){const _0x240168=P(_0xf9ae7d['rootName'],_0xf9ae7d['isAttached']());for(const _0x5e52e2 of _0xf9ae7d['getChildren']()){const _0x2fc0e0=_0x5e52e2['_clone'](!0x0);_0x240168['_appendChild'](_0x2fc0e0);}return _0x240168;}function P(_0x37b746,_0x38ec4e=!0x0){const _0x39b369=new vt();return _0x39b369['rootName']=_0x37b746,_0x39b369['_isAttached']=_0x38ec4e,_0x39b369['isAttached']=()=>_0x39b369['_isAttached'],_0x39b369;}function F(_0x449227,_0x2541fd,_0x22c08a){const _0x3b4e48='elementEnd'==_0x449227['type']?_0x22c08a['createPositionAt'](_0x449227['item'],'end'):_0x22c08a['createPositionBefore'](_0x449227['item']);return _0x22c08a['createPositionFromPath'](_0x2541fd,_0x3b4e48['path'],_0x3b4e48['stickiness']);}function B(_0x1744a2,_0x52c0b8,_0x304ec6){const _0x190052='elementStart'==_0x1744a2['type']?_0x304ec6['createPositionAt'](_0x1744a2['item'],0x0):_0x304ec6['createPositionAfter'](_0x1744a2['item']);return _0x304ec6['createPositionFromPath'](_0x52c0b8,_0x190052['path'],_0x190052['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x106aab,_0x2d2ac1){super(_0x106aab),this['focusTracker']=new _0x1411f8(),this['keystrokes']=new _0x1c41ad(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2d2ac1),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x89b94(this);}['render'](){super['render'](),_0x29c8c4({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x32bf07=_0x469847=>_0x469847['stopPropagation']();this['keystrokes']['set']('arrowright',_0x32bf07),this['keystrokes']['set']('arrowleft',_0x32bf07),this['keystrokes']['set']('arrowup',_0x32bf07),this['keystrokes']['set']('arrowdown',_0x32bf07);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x236479){this['revisionNameInputView']['fieldView']['element']['value']=_0x236479['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x51e173){const _0x162d53=new _0xc22ea8(this['locale'],_0x34f747),_0x17a4b8=_0x162d53['fieldView'];_0x17a4b8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x17f01b=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x51e173&&(_0x17f01b+='\x20('+g(this['locale'],'optional')+')'),(_0x162d53['label']=_0x17f01b,_0x17a4b8['on']('input',()=>{this['revisionNameInputValue']=_0x17a4b8['element']['value']['trim']();}),_0x162d53);}}class f extends _0x506da8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x102bd5=this['editor'],_0x5765f6=_0x102bd5['plugins']['get']('RevisionTracker');_0x102bd5['ui']['componentFactory']['add']('revisionHistory',_0x4ce0b5=>{const _0x3675c0=_0x418de7(_0x4ce0b5),_0x37ba25=_0x3675c0['panelView']['children'],_0x5e1232=new _0x2743d1(_0x4ce0b5),_0x1e87cb=new _0x24db08(_0x4ce0b5),_0x5427db=new te(_0x4ce0b5),_0x5be616=new _0x24db08(_0x4ce0b5),_0x4560a1=new te(_0x4ce0b5);return _0x3675c0['bind']('isEnabled')['to'](_0x5765f6,'isReady',_0x5765f6,'isEnabled',_0x102bd5,'isReadOnly',(_0x3b64da,_0x33fd45,_0x3d0e64)=>_0x3b64da&&_0x33fd45&&!_0x3d0e64),_0x3675c0['buttonView']['set']({'icon':_0x5606df,'label':g(_0x4ce0b5,'Revision\x20history'),'tooltip':!0x0}),_0x5427db['set']({'label':g(_0x4ce0b5,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5427db['bind']('isEnabled')['to'](_0x5765f6,'isReady',_0x5765f6,'isEnabled',_0x102bd5,'isReadOnly',(_0x4c0e6d,_0x227f01,_0x1c1939)=>_0x4c0e6d&&_0x227f01&&!_0x1c1939),_0x5427db['on']('execute',()=>this['_showDialog']()),_0x4560a1['set']({'label':g(_0x4ce0b5,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4560a1['bind']('isEnabled')['to'](_0x5765f6,'isReady',_0x102bd5,'isReadOnly',(_0x35f715,_0x5405da)=>_0x35f715&&!_0x5405da),_0x4560a1['on']('execute',()=>{_0x102bd5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3675c0['isOpen']=!0x1,_0x102bd5['editing']['view']['focus']();}),_0x1e87cb['children']['add'](_0x5427db),_0x5be616['children']['add'](_0x4560a1),_0x5e1232['role']='menu',_0x5e1232['items']['addMany']([_0x1e87cb,_0x5be616]),_0x37ba25['add'](_0x5e1232),_0x3675c0;}),_0x102bd5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4814d4=this['editor'],_0x3b9f63=_0x4814d4['locale'],_0x1d7b90=new _0xafdc44(_0x3b9f63),_0x591137=new _0x2903e1(_0x3b9f63);_0x1d7b90['buttonView']['set']({'icon':_0x5606df,'label':g(_0x3b9f63,'Revision\x20history')});const _0x3a2b83=new _0x2f8c79(_0x3b9f63,_0x1d7b90),_0x3d99fc=new _0x55977e(_0x3b9f63);_0x3d99fc['set']({'label':g(_0x3b9f63,'Save\x20current\x20revision')}),_0x3d99fc['delegate']('execute')['to'](_0x1d7b90),_0x3d99fc['on']('execute',()=>{this['_showDialog']();}),_0x3a2b83['children']['add'](_0x3d99fc),_0x591137['items']['add'](_0x3a2b83);const _0x203681=new _0x2f8c79(_0x3b9f63,_0x1d7b90),_0x28e6f0=new _0x55977e(_0x3b9f63);return _0x28e6f0['set']({'label':g(_0x3b9f63,'Open\x20revision\x20history')}),_0x28e6f0['delegate']('execute')['to'](_0x1d7b90),_0x28e6f0['on']('execute',()=>{_0x4814d4['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x203681['children']['add'](_0x28e6f0),_0x591137['items']['add'](_0x203681),_0x1d7b90['panelView']['children']['add'](_0x591137),_0x1d7b90;}['_showDialog'](){const _0x1d148e=this['editor'],_0x13679c=_0x1d148e['locale'],_0x262963=_0x1d148e['plugins']['get']('Dialog'),_0x22eeff=_0x1d148e['plugins']['get']('RevisionTracker');function _0x39945d(_0x8183fb){_0x1d148e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x8183fb['revisionName']?_0x8183fb['revisionNameInputView']['errorText']=g(_0x13679c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1d148e['plugins']['get'](u)['saveRevision']({'name':_0x8183fb['revisionName']}),_0x262963['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x39945d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x262963['show']({'id':'revisionSave','title':g(_0x13679c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1d148e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x262963['hide']()},{'label':g(_0x1d148e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x446260){_0x446260['bind']('isEnabled')['to'](_0x22eeff,'isReady',_0x22eeff,'isEnabled',_0x1d148e,'isReadOnly',(_0x2b1168,_0x1269ca,_0x67a89b)=>_0x2b1168&&_0x1269ca&&!_0x67a89b);},'onExecute':()=>_0x39945d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x330919=this['editor'],_0x49e673=_0x330919['locale'];this['_saveRevisionFormView']=new hs(_0x49e673,_0x330919['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x54f9df,_0x202186){super(_0x54f9df),this['_model']=_0x202186,this['changeId']=_0x202186['id'];const _0x230e5a=this['bindTemplate'],_0x3304cc=g(_0x54f9df,_0x202186['data']['isSuggestion']?'Suggested\x20by':'add'==_0x202186['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x202186['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x230e5a['to']('type',_0x3fde58=>'ck-revision-change__'+_0x3fde58)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3304cc}]},{'text':'\x20'+_0x202186['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x1f7614(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xed8c0b){super(),this['id']=_0xed8c0b['id']||_0x2a811c(),this['author']=_0xed8c0b['author'],this['type']=_0xed8c0b['type'],this['data']=_0xed8c0b['data']||{},this['rootName']=_0xed8c0b['rootName'],this['set']('createdAt',_0xed8c0b['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3925a6,_0x18ec4a){this['newRevisionId']=_0x3925a6,this['oldRevisionId']=_0x18ec4a,this['changes']=new _0x2f6a5b();}['_setChanges'](_0x728c2f){for(const _0x1550bf of _0x728c2f)this['changes']['add'](_0x1550bf);}}class m extends _0x506da8{['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[_0x24f403,_0x1f5838,I,V];}constructor(_0x330c7e){super(_0x330c7e),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',(_0x37bc31,_0x264b69,_0xfb8088)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x274c9a=>{for(const _0x175b6d of this['editor']['editing']['view']['document']['roots'])_0xfb8088?_0x274c9a['removeClass']('ck-editor__editable__overlay',_0x175b6d):_0x274c9a['addClass']('ck-editor__editable__overlay',_0x175b6d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4b6c1c=>null!==_0x4b6c1c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x368460,_0x33abd7,_0x4dd45e)=>_0x368460&&_0x4dd45e?_0x33abd7['changes']['getIndex'](_0x4dd45e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x869fa8,_0x3a74e7)=>_0x869fa8?_0x3a74e7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1f5838);}['init'](){const _0x3a1e33=this['editor'],_0x1a5eab=new wt(_0x3a1e33,{'direction':'backward'}),_0x1c857b=new wt(_0x3a1e33,{'direction':'forward'});(_0x3a1e33['commands']['add']('showPreviousChange',_0x1a5eab),_0x3a1e33['commands']['add']('showNextChange',_0x1c857b),_0x3a1e33['commands']['add']('restoreRevision',new mt(_0x3a1e33)),this['on']('change:numberOfChanges',()=>{_0x1a5eab['refresh'](),_0x1c857b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3a1e33['enableReadOnlyMode']('revision-viewer'),_0x3a1e33['plugins']['has']('WidgetToolbarRepository'))&&_0x3a1e33['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xf3be43){return await this['_utils']['loadRevisionData'](_0xf3be43,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xf3be43);}async['getRevisionRootsAttributes'](_0x5edcbf){return await this['_utils']['loadRevisionData'](_0x5edcbf,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5edcbf);}async['compare'](_0x322e08,_0x4d12e5,_0x33f8dc=!0x1){if(!this['isEnabled'])return;const _0x2bfe51=this['diff'],_0x10310b=this['repository'],_0x530240='string'==typeof _0x322e08?_0x10310b['getRevision'](_0x322e08):_0x322e08,_0x38a252='string'==typeof _0x4d12e5?_0x10310b['getRevision'](_0x4d12e5):_0x4d12e5,_0x392bae=_0x530240['id'],_0x54b662=_0x38a252?_0x38a252['id']:null;if(!_0x33f8dc&&this['diff']&&this['diff']['newRevisionId']===_0x392bae&&this['diff']['oldRevisionId']===_0x54b662)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x392bae,_0x54b662);const _0x29d670=this['_getRevisionsRange'](_0x530240,_0x38a252,!0x0)['map'](_0xd1bf4d=>this['_utils']['loadRevisionData'](_0xd1bf4d,this['adapter']));return _0x29d670['push'](new Promise(_0x1f93be=>{setTimeout(_0x1f93be,0x14);})),Promise['all'](_0x29d670)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x21e5bb=this['_getDiff'](_0x392bae,_0x54b662);for(const _0x296d2a of _0x21e5bb['changes'])this['_changeIdToChange']['set'](_0x296d2a['id'],_0x296d2a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x9df71=>{for(const _0x5445a5 of this['editor']['model']['document']['getRootNames']())_0x9df71['detachRoot'](_0x5445a5);for(const _0x687cd0 of Object['keys'](_0x21e5bb['model'])){const _0xc163b8=_0x9df71['addRoot'](_0x687cd0);for(const _0x240390 of Object['keys'](_0x21e5bb['attributes'][_0x687cd0]))_0x9df71['setAttribute'](_0x240390,_0x21e5bb['attributes'][_0x687cd0][_0x240390],_0xc163b8);_0x9df71['insert'](_0x21e5bb['model'][_0x687cd0],_0xc163b8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x21e5bb['changes'])),this['isReady']=!0x0;})['catch'](_0x2dc10e=>{console['error'](_0x2dc10e),this['_cleanUp'](),_0x2bfe51&&(this['diff']=_0x2bfe51),this['isReady']=!0x0;});}['addRevisionData'](_0x536c95,_0x2c709e){const _0x1d6d90=this['repository']['createRevision'](_0x536c95);return _0x1d6d90['on']('_update',(_0x9d1c89,_0x21532a,_0x5da059)=>_0x2c709e(_0x21532a,_0x5da059,_0x1d6d90)),this['repository']['addRevision'](_0x1d6d90),_0x1d6d90;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x437219=>{for(const _0x2422a6 of this['editor']['model']['document']['getRootNames']())_0x437219['detachRoot'](_0x2422a6);});}['_sortAndFilterDiffChanges'](_0x452171){const _0x58134e=[],_0x3917fd=new Map();for(const _0x124989 of this['editor']['model']['document']['getRootNames']()){const _0x4362f=this['editor']['editing']['view']['getDomRoot'](_0x124989);if(!_0x4362f)continue;const _0x319b66=_0x4362f['getClientRects']()['item'](0x0);_0x319b66&&(_0x58134e['push'](_0x124989),_0x3917fd['set'](_0x124989,_0x319b66));}return _0x58134e['sort']((_0x541902,_0x375b11)=>{const _0x43897c=_0x3917fd['get'](_0x541902),_0x379f37=_0x3917fd['get'](_0x375b11);return _0x43897c['y']-_0x379f37['y']||_0x43897c['x']-_0x379f37['x'];}),(_0x452171=_0x452171['filter'](_0x2cc99a=>_0x58134e['includes'](_0x2cc99a['rootName'])))['sort']((_0x502054,_0x2a2af7)=>_0x58134e['indexOf'](_0x502054['rootName'])-_0x58134e['indexOf'](_0x2a2af7['rootName'])),_0x452171;}['_makeTape'](_0x231bd4){const _0x8067a2=Array['from'](_0x231bd4['markers'])['filter'](([_0x2b810f,_0x211ddc])=>_0x2b810f['startsWith']('revision:')&&!_0x211ddc['isCollapsed']),_0x37e407=Array['from'](this['editor']['model']['createRangeIn'](_0x231bd4)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x8067a2['length'])for(const _0x329197 of _0x37e407){const [_0x253564,_0x1ed1ea]=_0x8067a2[0x0],[,_0x302178,_0x596e97]=_0x253564['split'](':');if(_0x1ed1ea['end']['isEqual'](_0x329197['nextPosition'])&&_0x8067a2['shift'](),(_0x329197['previousPosition']['isEqual'](_0x1ed1ea['start'])||_0x329197['previousPosition']['isAfter'](_0x1ed1ea['start']))&&('insertion'==_0x302178?_0x329197['isAdded']={'userId':_0x596e97}:'deletion'==_0x302178&&(_0x329197['isRemoved']={'userId':_0x596e97})),0x0==_0x8067a2['length'])break;}return _0x37e407;}['_refreshStartEndIndex'](_0x95bdd8){const _0x1c49ca=new Map();for(let _0x3333a8=0x0;_0x3333a8<_0x95bdd8['length'];_0x3333a8++)'text'===_0x95bdd8[_0x3333a8]['type']?(_0x95bdd8[_0x3333a8]['item']['startIndex']=_0x3333a8,_0x95bdd8[_0x3333a8]['item']['endIndex']=_0x3333a8):('elementStart'===_0x95bdd8[_0x3333a8]['type']?_0x95bdd8[_0x3333a8]['item']['startIndex']=_0x3333a8:'elementEnd'===_0x95bdd8[_0x3333a8]['type']&&(_0x95bdd8[_0x3333a8]['item']['endIndex']=_0x3333a8),_0x1c49ca['set'](_0x95bdd8[_0x3333a8]['id'],_0x3333a8));for(const _0x3928a4 of _0x1c49ca['values']())'elementStart'===_0x95bdd8[_0x3928a4]['type']?_0x95bdd8[_0x3928a4]['item']['endIndex']=_0x1c49ca['get'](_0x95bdd8[_0x3928a4]['pairId']):'elementEnd'===_0x95bdd8[_0x3928a4]['type']&&(_0x95bdd8[_0x3928a4]['item']['startIndex']=_0x1c49ca['get'](_0x95bdd8[_0x3928a4]['pairId']));}['_processTape'](_0x33fe3c){for(let _0xb7078=0x0;_0xb7078<_0x33fe3c['length'];_0xb7078++){if('elementStart'===_0x33fe3c[_0xb7078]['type'])_0x33fe3c[_0xb7078]['item']['startIndex']=_0xb7078;else{if('elementEnd'===_0x33fe3c[_0xb7078]['type']){_0x33fe3c[_0xb7078]['item']['endIndex']=_0xb7078;const _0x221381=_0x33fe3c[_0xb7078]['item']['startIndex'];_0x33fe3c[_0x221381]['pairId']=_0x33fe3c[_0xb7078]['id'],_0x33fe3c[_0xb7078]['pairId']=_0x33fe3c[_0x221381]['id'];}else _0x33fe3c[_0xb7078]['item']['startIndex']=_0xb7078,_0x33fe3c[_0xb7078]['item']['endIndex']=_0xb7078,_0x33fe3c[_0xb7078]['pairId']=null;}_0x33fe3c[_0xb7078]['markersStart']||(_0x33fe3c[_0xb7078]['markersStart']=[],_0x33fe3c[_0xb7078]['markersEnd']=[]);}}['_markInsertions'](_0x5dc084,_0xf44fee){const _0x398012=_0x5dc084['filter'](_0xe09397=>!_0xe09397['isAdded']);for(let _0x40b9b9=0x0;_0x40b9b9<_0xf44fee['length'];_0x40b9b9++)_0xf44fee[_0x40b9b9]['isAdded']&&(_0x398012[_0x40b9b9]['isAdded']=_0xf44fee[_0x40b9b9]['isAdded']);}['_getDiff'](_0x597b7a,_0x52893b=null){const _0x410c6a=this['repository']['getRevision'](_0x597b7a),_0x4ac0cc=_0x52893b?this['repository']['getRevision'](_0x52893b):null,_0x11e81b=this['_getRevisionsRange'](_0x410c6a,_0x4ac0cc),_0x41f301=_0x11e81b[_0x11e81b['length']-0x1],_0x370f33=new Map(),_0x415a6d={'model':{},'attributes':{},'changes':[]},_0x1d258a=new Set(),_0x445eb9=new Map();for(let _0x51ff8c=_0x11e81b['length']-0x1;_0x51ff8c>=0x0;_0x51ff8c--){const _0x3fe88e=_0x11e81b[_0x51ff8c];for(const _0x4ca331 of Object['keys'](_0x3fe88e['diffData']))if(_0x3fe88e['diffData'][_0x4ca331]['attachChange']){const _0x44c5b7=_0x3fe88e['diffData'][_0x4ca331]['attachChange'];_0x44c5b7['isAttached']?(_0x1d258a['add'](_0x4ca331),_0x445eb9['has'](_0x4ca331)&&_0x445eb9['get'](_0x4ca331)['userId']==_0x44c5b7['userId']?_0x445eb9['delete'](_0x4ca331):_0x445eb9['set'](_0x4ca331,_0x44c5b7)):_0x445eb9['has'](_0x4ca331)?(_0x1d258a['delete'](_0x4ca331),_0x445eb9['delete'](_0x4ca331)):(_0x1d258a['add'](_0x4ca331),_0x445eb9['set'](_0x4ca331,_0x44c5b7));}else _0x1d258a['add'](_0x4ca331);}for(const _0x590dd2 of _0x1d258a){const _0x4ec622=_0x445eb9['has'](_0x590dd2)&&!_0x445eb9['get'](_0x590dd2)['isAttached'];let _0x3045ca=_0x4ec622?_0x11e81b['length']-0x1:0x0;const _0xbf7513=_0x4ec622?-0x1:0x1;for(;_0x11e81b[_0x3045ca];){const _0x2a8fc8=_0x11e81b[_0x3045ca];if(_0x2a8fc8['diffData'][_0x590dd2]){const _0x9e44c9=_0x4ec622?_0x2a8fc8['diffData'][_0x590dd2]['attributesBefore']:_0x2a8fc8['diffData'][_0x590dd2]['attributesAfter'];_0x415a6d['attributes'][_0x590dd2]=_0x9e44c9?_0x2061e4(_0x9e44c9):{};break;}_0x3045ca+=_0xbf7513;}}for(const _0x1e8b39 of _0x11e81b){_0x1e8b39['model']={};for(const _0x458b0b of _0x1e8b39['authors'])_0x370f33['set'](_0x458b0b['id'],_0x458b0b);for(const _0x240b18 of _0x1d258a){const _0x493288=_0x1e8b39['diffData'][_0x240b18]?_0x1e8b39['diffData'][_0x240b18]['insertions']:'[]',_0x3c90f7=_0x1e8b39['diffData'][_0x240b18]?_0x1e8b39['diffData'][_0x240b18]['deletions']:'[]';_0x1e8b39['model'][_0x240b18]={'insertions':this['_utils']['_makeModelFromViewString'](_0x493288),'deletions':this['_utils']['_makeModelFromViewString'](_0x3c90f7)};}}for(const _0x10cb04 of _0x1d258a){let _0x530e90=null,_0x4ed718=0x0;const _0xcaafdd=new Map(Array['from'](_0x410c6a['model'][_0x10cb04]['insertions']['markers'])['filter'](([_0x51fd99])=>!_0x51fd99['startsWith']('revision:')));let _0x4623a4=0x0;for(const _0x55396c of _0x11e81b){const _0x1dd8f4=this['_makeTape'](_0x55396c['model'][_0x10cb04]['insertions']);_0x55396c==_0x410c6a?(_0x530e90=_0x1dd8f4,_0x4ed718=_0x530e90['length'],_0x530e90['forEach'](_0xef5a74=>{_0xef5a74['id']=_0x4623a4++;}),this['_processTape'](_0x530e90)):this['_markInsertions'](_0x530e90,_0x1dd8f4);const _0x172e4b=_0x530e90['filter'](_0x54e6ce=>!_0x54e6ce['isAdded'])['map'](_0x5895=>_0x5895['id']);let _0x279800=0x0;const _0x16ce2f=this['_makeTape'](_0x55396c['model'][_0x10cb04]['deletions']);_0x16ce2f['forEach'](_0x544067=>{_0x544067['isRemoved']?_0x544067['id']=_0x4ed718++:_0x544067['id']=_0x172e4b[_0x279800++];}),this['_processTape'](_0x16ce2f),this['_setDistance'](_0x530e90,'isAdded'),this['_setDistance'](_0x16ce2f,'isRemoved'),_0x55396c==_0x410c6a&&this['_markMarkers'](_0x530e90,_0xcaafdd),_0x530e90=this['_joinTapes'](_0x530e90,_0x16ce2f),this['_refreshStartEndIndex'](_0x530e90),this['_setDistance'](_0x530e90,'isRemoved');}_0x530e90=_0x530e90['filter'](_0x580c70=>!(_0x580c70['isAdded']&&_0x580c70['isRemoved']));const _0x55ba66=new Map(_0x41f301['model'][_0x10cb04]['deletions']['markers']),_0x2f9357=new Set(_0xcaafdd['keys']());for(const _0x22ea59 of _0x55ba66['keys']())_0x2f9357['delete'](_0x22ea59);this['_markSuggestions'](_0x530e90,_0x2f9357),this['_fixObsoleteTags'](_0x530e90),_0x530e90=this['_removeMissingPairs'](_0x530e90),_0x530e90=this['_markMismatchedRemovedTags'](_0x530e90),_0x530e90=this['_removeUnsupportedChanges'](_0x530e90);const {root:_0x1eef3a,changes:_0x4450d6}=this['_makeModelFromTape'](_0x530e90,_0x370f33,_0x10cb04);_0x415a6d['model'][_0x10cb04]=_0x1eef3a;const _0x3a5c81=_0x445eb9['get'](_0x10cb04);if(_0x3a5c81){const _0x1fed10=_0x370f33['get'](_0x3a5c81['userId']),_0x4604e6=new r({'author':_0x1fed10,'type':_0x3a5c81['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x10cb04});_0x4450d6['unshift'](_0x4604e6),_0x415a6d['attributes'][_0x10cb04]['revisionHistoryAttachChange']=_0x4604e6['id'];}_0x415a6d['changes']=_0x415a6d['changes']['concat'](_0x4450d6);}return _0x415a6d;}['_markMarkers'](_0x50c4d7,_0x489202){for(let _0x7901ff=0x0;_0x7901ff<_0x50c4d7['length'];_0x7901ff++)for(const [_0x2718a9,_0x2fde3e]of _0x489202)!_0x2fde3e['isCollapsed']&&_0x2fde3e['start']['isEqual'](_0x50c4d7[_0x7901ff]['previousPosition'])&&_0x50c4d7[_0x7901ff]['markersStart']['push'](_0x2718a9),_0x2fde3e['end']['isEqual'](_0x50c4d7[_0x7901ff]['nextPosition'])&&_0x50c4d7[_0x7901ff]['markersEnd']['push'](_0x2718a9);}['_joinTapes'](_0x1c22ab,_0x28df20){let _0x2e4117=[],_0x26f3a2=0x0,_0x5493a5=0x0;for(;_0x26f3a2<_0x1c22ab['length']||_0x5493a5<_0x28df20['length'];){const _0x14708c=_0x1c22ab[_0x26f3a2]||{},_0x29f9f3=_0x28df20[_0x5493a5]||{};if(_0x14708c['id']==_0x29f9f3['id'])_0x26f3a2++,_0x5493a5++,_0x2e4117['push'](_0x14708c);else{if(_0x29f9f3['isRemoved']&&_0x14708c['isAdded']){const {commonTape:_0x1d8b8d,iEnd:_0x36b354,jEnd:_0x3aae69}=this['_threeWayMerge'](_0x1c22ab,_0x26f3a2,_0x28df20,_0x5493a5);_0x2e4117=_0x2e4117['concat'](_0x1d8b8d),_0x26f3a2=_0x36b354,_0x5493a5=_0x3aae69;}else _0x29f9f3['isRemoved']?(_0x5493a5++,_0x2e4117['push'](_0x29f9f3)):(_0x26f3a2++,_0x2e4117['push'](_0x14708c));}}return _0x2e4117;}['_markSuggestions'](_0x417a5f,_0xaa1c31){const _0x143c42=[];for(let _0x56e4da=0x0;_0x56e4da<_0x417a5f['length'];_0x56e4da++){for(let _0x45d9d0=0x0;_0x45d9d0<_0x417a5f[_0x56e4da]['markersStart']['length'];_0x45d9d0++){const _0x54227d=_0x417a5f[_0x56e4da]['markersStart'][_0x45d9d0];if(!_0xaa1c31['has'](_0x54227d))continue;const {group:_0x8bb1b9,type:_0x120ec4,authorId:_0x367a56}=_0x13a425(_0x54227d);'revision-suggestion'!=_0x8bb1b9||'insertion'!=_0x120ec4&&'deletion'!=_0x120ec4||(_0x143c42['unshift']({'type':_0x120ec4,'name':_0x54227d,'userId':_0x367a56}),_0x417a5f[_0x56e4da]['markersStart']['splice'](_0x45d9d0,0x1),_0x45d9d0--);}_0x427e63(_0x417a5f[_0x56e4da]);for(let _0x9ad92c=0x0;_0x9ad92c<_0x417a5f[_0x56e4da]['markersEnd']['length'];_0x9ad92c++){const _0x3b01a1=_0x417a5f[_0x56e4da]['markersEnd'][_0x9ad92c];if(!_0xaa1c31['has'](_0x3b01a1))continue;const {group:_0x52ccc9,type:_0x1f6aad}=_0x13a425(_0x3b01a1);if('revision-suggestion'!=_0x52ccc9||'insertion'!=_0x1f6aad&&'deletion'!=_0x1f6aad)continue;_0x417a5f[_0x56e4da]['markersEnd']['splice'](_0x9ad92c,0x1),_0x9ad92c--;const _0x3dd97d=_0x143c42['findIndex'](_0x153a28=>_0x153a28['name']==_0x3b01a1);_0x3dd97d>-0x1&&_0x143c42['splice'](_0x3dd97d,0x1);}}function _0x13a425(_0x18d38b){const _0x542477=_0x18d38b['split'](':');return{'group':_0x542477[0x0],'type':_0x542477[0x1],'subType':_0x542477['length']>=0x5?_0x542477[0x2]:null,'id':_0x542477['length']<0x5?_0x542477[0x2]:_0x542477[0x3],'authorId':_0x542477['length']<0x5?_0x542477[0x3]:_0x542477[0x4],'markerCount':0x6==_0x542477['length']?_0x542477[0x5]:null};}function _0x427e63(_0x16abb0){for(let _0x1d204b=0x0;_0x1d204b<_0x143c42['length'];_0x1d204b++){if(_0x16abb0['isAdded']&&'insertion'==_0x143c42[_0x1d204b]['type']&&_0x16abb0['isAdded']['userId']==_0x143c42[_0x1d204b]['userId'])return _0x16abb0['isAddSuggestion']=_0x143c42[_0x1d204b],void delete _0x16abb0['isAdded'];if(!_0x16abb0['isAdded']&&!_0x16abb0['isRemoved']&&'deletion'==_0x143c42[_0x1d204b]['type'])return void(_0x16abb0['isRemoveSuggestion']=_0x143c42[_0x1d204b]);}}}['_setDistance'](_0x4dcebc,_0x4e4322){let _0x3a7d69=0x0,_0x435726=!0x1;const _0x50fd4c=new Map();for(const _0x3cd4f0 of _0x4dcebc)_0x3cd4f0[_0x4e4322]?_0x435726&&(_0x3a7d69++,_0x435726=!0x1):(_0x3a7d69++,_0x435726=!0x0),_0x50fd4c['set'](_0x3cd4f0['id'],_0x3a7d69);for(let _0x46f44c=0x0;_0x46f44c<_0x4dcebc['length'];_0x46f44c++){if('isRemoved'==_0x4e4322&&_0x4dcebc[_0x46f44c]['isAdded']||'isAdded'==_0x4e4322&&_0x4dcebc[_0x46f44c]['isRemoved'])continue;if('text'==_0x4dcebc[_0x46f44c]['type']){_0x4dcebc[_0x46f44c]['distance']=0x0;continue;}const _0x41f900=_0x50fd4c['get'](_0x4dcebc[_0x46f44c]['pairId']),_0x50961d=_0x50fd4c['get'](_0x4dcebc[_0x46f44c]['id']);_0x4dcebc[_0x46f44c]['distance']=_0x41f900-_0x50961d;}}['_getRevisionsRange'](_0x17eeb3,_0x14922a,_0x576dd6=!0x1){const _0x2d4c0a=[];let _0x2df4c9=this['repository']['getIndex'](_0x17eeb3),_0x3ba8b5=this['repository']['getIndex'](_0x14922a);for(-0x1==_0x3ba8b5&&(_0x3ba8b5=this['repository']['_revisions']['length'],_0x576dd6=!0x1);_0x2df4c9<_0x3ba8b5;)_0x2d4c0a['push'](this['repository']['getRevision'](_0x2df4c9)),_0x2df4c9++;return _0x576dd6&&_0x2d4c0a['push'](this['repository']['getRevision'](_0x2df4c9)),_0x2d4c0a;}['_threeWayMerge'](_0x144e39,_0x4bad2a,_0x49eccb,_0x6ff026){const _0x49389a=this['editor']['model']['schema'];let _0x263c62=_0x4bad2a;for(;_0x144e39[_0x263c62]&&_0x144e39[_0x263c62]['isAdded'];)_0x263c62++;let _0x20b439=_0x6ff026;for(;_0x49eccb[_0x20b439]&&_0x49eccb[_0x20b439]['isRemoved'];)_0x20b439++;_0x3ea4ab(_0x144e39,_0x4bad2a,_0x263c62),_0x3ea4ab(_0x49eccb,_0x6ff026,_0x20b439);const _0xaaa939=_0x49eccb['slice'](_0x6ff026,_0x20b439)['concat'](_0x144e39['slice'](_0x4bad2a,_0x263c62));return _0xaaa939['sort']((_0x5bbf48,_0x5e1783)=>_0x5bbf48['side']!=_0x5e1783['side']?_0x5bbf48['side']-_0x5e1783['side']:_0x5bbf48['level']!=_0x5e1783['level']?_0x5bbf48['level']-_0x5e1783['level']:_0x5bbf48['distance']!=_0x5e1783['distance']?_0x5e1783['distance']-_0x5bbf48['distance']:!!_0x5bbf48['isAdded']!=!!_0x5e1783['isAdded']?-0x1==_0x5bbf48['side']||0x0==_0x5bbf48['side']?_0x5bbf48['isAdded']?-0x1:0x1:_0x5bbf48['isAdded']?0x1:-0x1:_0x5bbf48['index']-_0x5e1783['index']),{'commonTape':_0xaaa939,'iEnd':_0x263c62,'jEnd':_0x20b439};function _0x3ea4ab(_0x457c3f,_0x1dc1fa,_0x409071){let _0x113a4a=-0x1,_0x2af1d3=Number['POSITIVE_INFINITY'],_0x6fcae2=!0x0;for(let _0x314f88=_0x1dc1fa;_0x314f88<_0x409071;_0x314f88++)if(_0x49389a['isInline'](_0x457c3f[_0x314f88]['item'])||(_0x6fcae2=!0x1),_0x457c3f[_0x314f88]['item']['startIndex']<_0x1dc1fa&&(_0x113a4a=_0x314f88),_0x457c3f[_0x314f88]['item']['endIndex']>=_0x409071){_0x2af1d3=_0x314f88;break;}_0x6fcae2&&(_0x113a4a=_0x409071-0x1);for(let _0x1b2c3f=_0x1dc1fa;_0x1b2c3f<_0x409071;_0x1b2c3f++)_0x457c3f[_0x1b2c3f]['side']=_0x1b2c3f<=_0x113a4a?-0x1:_0x1b2c3f<_0x2af1d3?0x0:0x1,_0x457c3f[_0x1b2c3f]['index']=_0x1b2c3f;let _0x4984cf=0x0;for(let _0x5ac35a=_0x1dc1fa;_0x5ac35a<=_0x113a4a;_0x5ac35a++)0x0==_0x457c3f[_0x5ac35a]['distance']?_0x457c3f[_0x5ac35a]['level']=_0x4984cf:(_0x4984cf++,_0x457c3f[_0x5ac35a]['level']=_0x4984cf,_0x4984cf++);for(let _0x597dc6=_0x1dc1fa;_0x597dc6<_0x409071;_0x597dc6++)0x0==_0x457c3f[_0x597dc6]['side']&&(_0x457c3f[_0x597dc6]['level']=_0x4984cf);_0x4984cf=0x0;for(let _0x336a26=_0x409071-0x1;_0x336a26>=_0x2af1d3;_0x336a26--)0x0==_0x457c3f[_0x336a26]['distance']?_0x457c3f[_0x336a26]['level']=_0x4984cf:(_0x4984cf--,_0x457c3f[_0x336a26]['level']=_0x4984cf,_0x4984cf--);}}['_fixObsoleteTags'](_0x21b96f){const _0x69ca47=new Map(),_0x5e1cf0=this['editor']['model']['schema'];for(let _0x46d071=0x1;_0x46d071<_0x21b96f['length'];_0x46d071++){let _0xd34a8f,_0x39ad76,_0x1a2407;const _0x4c8793=_0x21b96f[_0x46d071],_0x2f9253=_0x21b96f[_0x46d071-0x1];if('text'==_0x4c8793['type'])continue;if(_0x4c8793['type']!=_0x2f9253['type'])continue;if(!_0x5e1cf0['isBlock'](_0x2f9253['item'])||_0x5e1cf0['isLimit'](_0x2f9253['item']))continue;if(!_0x5e1cf0['isBlock'](_0x4c8793['item'])||_0x5e1cf0['isLimit'](_0x4c8793['item']))continue;if((_0x21b96f[_0x46d071]['isAdded']||_0x21b96f[_0x46d071]['isAddSuggestion'])&&_0x21b96f[_0x46d071-0x1]['isRemoved'])_0xd34a8f=_0x21b96f[_0x46d071],_0x39ad76=_0x21b96f[_0x46d071-0x1],_0x1a2407=_0x46d071-0x1;else{if(!_0x21b96f[_0x46d071]['isRemoved']||!_0x21b96f[_0x46d071-0x1]['isAdded']&&!_0x21b96f[_0x46d071-0x1]['isAddSuggestion'])continue;_0xd34a8f=_0x21b96f[_0x46d071-0x1],_0x39ad76=_0x21b96f[_0x46d071],_0x1a2407=_0x46d071;}const _0x4e290e=_0xd34a8f['level']==_0x39ad76['level'],_0x33b2f5=Math['abs'](_0xd34a8f['level'])<Math['abs'](_0x39ad76['level'])&&0x0==_0x39ad76['distance'];(_0x4e290e||_0x33b2f5)&&(_0x69ca47['set'](_0x39ad76['id'],_0xd34a8f['id']),_0x21b96f['splice'](_0x1a2407,0x1),_0x46d071--,_0xd34a8f['isAdded']=!0x1);}for(let _0x1eb457=0x0;_0x1eb457<_0x21b96f['length'];_0x1eb457++)_0x69ca47['has'](_0x21b96f[_0x1eb457]['pairId'])&&(_0x21b96f[_0x1eb457]['pairId']=_0x69ca47['get'](_0x21b96f[_0x1eb457]['pairId']));}['_removeMissingPairs'](_0x42a88a){const _0x256401=new Set(_0x42a88a['map'](_0x36717f=>_0x36717f['id']));for(let _0x17235b=0x0;_0x17235b<_0x42a88a['length'];_0x17235b++)_0x256401['has'](_0x42a88a[_0x17235b]['pairId'])||0x0==_0x42a88a[_0x17235b]['distance']||(_0x42a88a[_0x17235b]['isIncorrect']=!0x0);return _0x42a88a['filter'](_0x316dca=>!_0x316dca['isIncorrect']);}['_markMismatchedRemovedTags'](_0x408a7b){const _0x5c5578=new Set();for(let _0xfdfffc=0x0;_0xfdfffc<_0x408a7b['length'];_0xfdfffc++){if(_0x5c5578['has'](_0x408a7b[_0xfdfffc]['id'])&&_0x408a7b[_0xfdfffc]['isRemoved']&&(_0x408a7b[_0xfdfffc]['isIncorrect']=!0x0),_0x408a7b[_0xfdfffc]['isIncorrect'])continue;if(0x0==_0x408a7b[_0xfdfffc]['distance'])continue;if('elementStart'!=_0x408a7b[_0xfdfffc]['type'])continue;if(null==_0x408a7b[_0xfdfffc]['pairId'])continue;let _0x155533=_0xfdfffc+0x1,_0x5b3701=0x0;for(;_0x408a7b[_0x155533]['id']!=_0x408a7b[_0xfdfffc]['pairId'];)'elementStart'==_0x408a7b[_0x155533]['type']?_0x5b3701++:'elementEnd'==_0x408a7b[_0x155533]['type']&&_0x5b3701--,_0x155533++;if(0x0!=_0x5b3701){if(_0x408a7b[_0xfdfffc]['isRemoved'])_0x408a7b[_0xfdfffc]['isIncorrect']=!0x0;else{for(;_0x155533!=_0xfdfffc;)_0x408a7b[_0x155533]['isRemoved']&&0x0!=_0x408a7b[_0x155533]['distance']&&(_0x408a7b[_0x155533]['isIncorrect']=!0x0,_0x5c5578['add'](_0x408a7b[_0x155533]['pairId'])),_0x155533--;}}}return _0x408a7b['filter'](_0x570f81=>!_0x570f81['isIncorrect']);}['_removeUnsupportedChanges'](_0x1113af){const _0x22b1f8=this['editor']['model']['schema'];for(let _0x36112b=0x0;_0x36112b<_0x1113af['length'];_0x36112b++){if(!(_0x1113af[_0x36112b]['isAdded']||_0x1113af[_0x36112b]['isAddSuggestion']||_0x1113af[_0x36112b]['isRemoved']||_0x1113af[_0x36112b]['isRemoveSuggestion']))continue;if(0x0==_0x1113af[_0x36112b]['distance'])continue;const _0x367add=_0x1113af[_0x36112b]['item'];_0x22b1f8['isBlock'](_0x367add)||_0x22b1f8['isLimit'](_0x367add)||(_0x1113af[_0x36112b]['isAdded']&&delete _0x1113af[_0x36112b]['isAdded'],_0x1113af[_0x36112b]['isAddSuggestion']&&delete _0x1113af[_0x36112b]['isAddSuggestion'],_0x1113af[_0x36112b]['isRemoveSuggestion']&&delete _0x1113af[_0x36112b]['isRemoveSuggestion'],_0x1113af[_0x36112b]['isRemoved']&&(_0x1113af[_0x36112b]['isIncorrect']=!0x0));}return _0x1113af['filter'](_0x1a30c1=>!_0x1a30c1['isIncorrect']);}['_makeModelFromTape'](_0x586ad4,_0x31283c,_0x3d71e9){const _0x2bc151=new vt(),_0x756955=[],_0x52327a=new Map(),_0x133e2d=this['editor']['model'],_0x390608=_0x133e2d['schema'],_0x29e529=[_0x2bc151],_0xb4e324={},_0x39f630={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x51f577=null;const _0x3e87c3=[0x0];for(let _0xdf03ab=0x0;_0xdf03ab<_0x586ad4['length'];_0xdf03ab++)if('elementStart'===_0x586ad4[_0xdf03ab]['type']){_0x586ad4[_0xdf03ab]['previousPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3);const _0x31a6e3=new ut(_0x586ad4[_0xdf03ab]['item']['name'],_0x586ad4[_0xdf03ab]['item']['getAttributes']());_0x29e529[0x0]['_appendChild'](_0x31a6e3),_0x3e87c3['push'](0x0),_0x29e529['unshift'](_0x31a6e3),_0x586ad4[_0xdf03ab]['nextPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3);}else'elementEnd'===_0x586ad4[_0xdf03ab]['type']?(_0x29e529['shift'](),_0x586ad4[_0xdf03ab]['previousPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3),_0x3e87c3['pop'](),_0x3e87c3[_0x3e87c3['length']-0x1]++,_0x586ad4[_0xdf03ab]['nextPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3)):(_0x586ad4[_0xdf03ab]['previousPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3),_0x51f577?_0x51f577['_data']+=_0x586ad4[_0xdf03ab]['item']['data']:_0x51f577=new gt(_0x586ad4[_0xdf03ab]['item']['data'],_0x586ad4[_0xdf03ab]['item']['getAttributes']()),_0x586ad4[_0xdf03ab+0x1]&&'text'===_0x586ad4[_0xdf03ab+0x1]['type']&&_0x3b47dd(_0x51f577,_0x586ad4[_0xdf03ab+0x1]['item'])||(_0x29e529[0x0]['_appendChild'](_0x51f577),_0x51f577=null),_0x3e87c3[_0x3e87c3['length']-0x1]+=_0x586ad4[_0xdf03ab]['item']['offsetSize'],_0x586ad4[_0xdf03ab]['nextPosition']=_0x133e2d['createPositionFromPath'](_0x2bc151,_0x3e87c3));for(let _0x8d9fba=0x0;_0x8d9fba<_0x586ad4['length'];_0x8d9fba++){const _0x1d3a8e=_0x586ad4[_0x8d9fba]['previousPosition'],_0x5d9556=_0x586ad4[_0x8d9fba]['nextPosition'];for(const _0x422ca2 of _0x586ad4[_0x8d9fba]['markersStart'])_0x52327a['set'](_0x422ca2,{'start':_0x1d3a8e,'end':null});_0x5afdd3('isRemoveSuggestion',_0x8d9fba,_0x1d3a8e,_0x5d9556),_0x5afdd3('isAddSuggestion',_0x8d9fba,_0x1d3a8e,_0x5d9556),_0x5afdd3('isRemoved',_0x8d9fba,_0x1d3a8e,_0x5d9556),_0x5afdd3('isAdded',_0x8d9fba,_0x1d3a8e,_0x5d9556);for(const _0x16a3cc of _0x586ad4[_0x8d9fba]['markersEnd']){const _0x45a08a=_0x52327a['get'](_0x16a3cc);_0x45a08a?_0x45a08a['end']=_0x5d9556:_0x52327a['set'](_0x16a3cc,{'start':_0x5d9556,'end':_0x5d9556});}}for(const [_0xea534c,_0x378a88]of _0x52327a){const _0x374e8f=this['editor']['model']['createRange'](_0x378a88['start'],_0x378a88['end']);_0x2bc151['markers']['set'](_0xea534c,_0x374e8f);}return _0x756955['sort']((_0x564592,_0x4f1ee9)=>{const _0x3a8367=_0x2bc151['markers']['get']('revision:'+_0x564592['id']),_0x151e40=_0x2bc151['markers']['get']('revision:'+_0x4f1ee9['id']);return _0x3a8367['start']['isBefore'](_0x151e40['start'])?-0x1:_0x3a8367['start']['isAfter'](_0x151e40['start'])?0x1:_0x3a8367['end']['isBefore'](_0x151e40['end'])?-0x1:_0x3a8367['end']['isAfter'](_0x151e40['end'])?0x1:'add'===_0x564592['type']?-0x1:0x1;}),{'root':_0x2bc151,'changes':_0x756955};function _0x5afdd3(_0x47e01e,_0x2b2b8b,_0x297599,_0x47a45){const _0x222aef=!!_0x586ad4[_0x2b2b8b][_0x47e01e],_0x38b149=_0x222aef?_0x586ad4[_0x2b2b8b][_0x47e01e]['userId']:null,_0x1b6843=_0x2b2b8b===_0x586ad4['length']-0x1,_0x2bd470=_0x39f630[_0x47e01e][0x0],_0x55d3ee=_0x390608['isObject'](_0x586ad4[_0x2b2b8b]['item']);!_0xb4e324[_0x47e01e]&&_0x222aef?_0xb4e324[_0x47e01e]={'start':_0x297599,'tapeItem':_0x586ad4[_0x2b2b8b],'userId':_0x38b149,'type':_0x47e01e}:_0xb4e324[_0x47e01e]&&!_0x222aef?(_0xb4e324[_0x47e01e]['end']=_0x297599,_0x479b77(_0xb4e324[_0x47e01e]),_0xb4e324[_0x47e01e]=null):_0xb4e324[_0x47e01e]&&_0x222aef&&_0xb4e324[_0x47e01e]['userId']!==_0x38b149&&(_0xb4e324[_0x47e01e]['end']=_0x297599,_0x2bd470&&_0x2bd470['userId']===_0xb4e324[_0x47e01e]['userId']||_0x479b77(_0xb4e324[_0x47e01e]),_0xb4e324[_0x47e01e]={'start':_0x297599,'tapeItem':_0x586ad4[_0x2b2b8b],'userId':_0x38b149,'type':_0x47e01e}),_0xb4e324[_0x47e01e]&&_0x55d3ee&&('elementStart'!==_0x586ad4[_0x2b2b8b]['type']||_0x2bd470&&_0x2bd470['userId']===_0x38b149||_0x39f630[_0x47e01e]['unshift']({'userId':_0x38b149,'object':_0x586ad4[_0x2b2b8b]['item'],'change':_0xb4e324[_0x47e01e]}),'elementEnd'===_0x586ad4[_0x2b2b8b]['type']&&_0x2bd470&&_0x2bd470['object']===_0x586ad4[_0x2b2b8b]['item']&&(_0x39f630[_0x47e01e]['shift'](),_0xb4e324[_0x47e01e]=_0x2bd470['change'])),_0xb4e324[_0x47e01e]&&_0x1b6843&&(_0xb4e324[_0x47e01e]['end']=_0x47a45,_0x479b77(_0xb4e324[_0x47e01e]),_0xb4e324[_0x47e01e]=null);}function _0x479b77({start:_0xd646d5,end:_0x464540,tapeItem:_0x15300a,userId:_0x29721a,type:_0x33c5d5}){const _0x382dd1=_0x15300a['item'],_0x13c163=_0x133e2d['schema']['isBlock'](_0x382dd1)&&!_0x133e2d['schema']['isLimit'](_0x382dd1),_0x24405a=_0xd646d5['nodeAfter']==_0x464540['parent']&&_0x464540['isAtStart'];if(_0x13c163&&_0x24405a)return;const _0x38c2be=_0x133e2d['createRange'](_0xd646d5,_0x464540),_0x1ed700=_0x31283c['get'](_0x29721a),_0x811cf9=new r({'author':_0x1ed700,'type':'isAdded'==_0x33c5d5||'isAddSuggestion'==_0x33c5d5?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33c5d5||'isRemoveSuggestion'==_0x33c5d5},'createdAt':new Date(),'rootName':_0x3d71e9});_0x756955['push'](_0x811cf9),_0x2bc151['markers']['set']('revision:'+_0x811cf9['id'],_0x38c2be);}function _0x3b47dd(_0x387b17,_0x5d327c){const _0x147bd8=_0x387b17['getAttributes'](),_0x57609d=_0x5d327c['getAttributes']();for(const _0x50cb72 of _0x147bd8){if(_0x50cb72[0x1]!==_0x5d327c['getAttribute'](_0x50cb72[0x0]))return!0x1;_0x57609d['next']();}return _0x57609d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1243d7=>{const _0x3f308e=_0x1243d7['markerName']['split'](':')[0x1],_0x49f9c6=this['_getChangeFromId'](_0x3f308e);if(!_0x49f9c6)return null;const _0x5980e2='add'==_0x49f9c6['type']?'insertion':'deletion',_0x43f701=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5980e2];return _0x49f9c6['data']['isSuggestion']&&_0x43f701['push']('ck-suggestion-marker-'+_0x5980e2+'-new'),this['activeChange']==_0x49f9c6&&_0x43f701['push']('ck-suggestion-marker--active'),{'classes':_0x43f701,'attributes':{'data-change-id':_0x3f308e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x442209=>{_0x442209['on']('element:pre',(_0x578bca,_0x52bbcd,_0xe5257a)=>{const _0x185e2b=_0x52bbcd['viewItem']['getChild'](0x0);if(!_0x185e2b||!_0x185e2b['is']('element','code'))return;if(!_0xe5257a['consumable']['consume'](_0x185e2b,{'attributes':['vid_start','vid_end']}))return;const _0x143f9a=_0x52bbcd['modelRange']['start']['nodeAfter'];_0xe5257a['writer']['setAttribute']('vid_start',_0x185e2b['getAttribute']('vid_start'),_0x143f9a),_0xe5257a['writer']['setAttribute']('vid_end',_0x185e2b['getAttribute']('vid_end'),_0x143f9a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2a996c=>{_0x2a996c['on']('element',(_0x861303,_0x3a1091,_0x2467af)=>{if(!_0x2467af['consumable']['consume'](_0x3a1091['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3a1091['modelRange']['isCollapsed'])return;const _0x200e8d=_0x3a1091['modelRange']['start']['nodeAfter'];_0x200e8d['hasAttribute']('vid_start')||_0x200e8d['hasAttribute']('vid')||(_0x2467af['writer']['setAttribute']('vid_start',_0x3a1091['viewItem']['getAttribute']('vid_start'),_0x200e8d),_0x2467af['writer']['setAttribute']('vid_end',_0x3a1091['viewItem']['getAttribute']('vid_end'),_0x200e8d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x13b56d=>_0x13b56d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x527ee9,[,_0x39c8ff])=>{['vid_start','vid_end','vid']['includes'](_0x39c8ff)&&(_0x527ee9['return']=!0x0,_0x527ee9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5dabb0=>{_0x5dabb0['on']('attribute:vid',(_0xf810a4,_0x50ea76,_0x11b7b1)=>{if('\x20'!=_0x50ea76['item']['data']||_0x50ea76['item']['parent']['maxOffset']>0x1)return;if(!_0x11b7b1['consumable']['consume'](_0x50ea76['item'],_0xf810a4['name']))return;const _0x112e7e=_0x11b7b1['writer'],_0x2c81c5=_0x11b7b1['mapper']['toViewRange'](_0x50ea76['range']);_0x112e7e['wrap'](_0x2c81c5,_0x112e7e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x43453a){const _0x444ea4=_0x43453a['plugins']['get']('RevisionViewer');return(_0x4b3a6b,_0xa1b0b8,_0x4643e5)=>{const _0x746e5c=_0xa1b0b8['markerName']['split'](':')[0x1],_0x5b5689=_0x444ea4['_getChangeFromId'](_0x746e5c);if(!_0x5b5689)return null;const _0x5bd1ae='add'==_0x5b5689['type']?'split':'merge';if(!_0x4643e5['consumable']['test'](_0xa1b0b8['markerRange'],_0x4b3a6b['name']))return;const _0x1f9ed4=_0xa1b0b8['markerRange']['getWalker'](),_0x579d28=_0xa1b0b8['markerRange']['start'],_0x1cac4f=_0x43453a['model']['schema'];let _0x32213d=null,_0x331575=null,_0x2c98f3=!0x1,_0x359708=!0x1;for(const _0x3ed4a0 of _0x1f9ed4){const _0x301392=_0x3ed4a0['item'];_0x2c98f3=_0x2c98f3||_0x1cac4f['isContent'](_0x301392);const _0x4115ea=_0x4643e5['mapper']['toViewElement'](_0x301392);if(_0x4115ea&&_0x4115ea['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ed4a0['type']&&(_0x1cac4f['isBlock'](_0x301392)&&!_0x1cac4f['isLimit'](_0x301392)&&(_0x301392['nextSibling']||_0x579d28['isAtEnd']?_0x32213d&&_0x32213d['parent']==_0x301392||(_0x32213d=_0x301392,_0x444fa0(_0x3ed4a0['previousPosition']),_0x359708=!0x0):_0x331575=_0x331575||_0x3ed4a0['previousPosition']));}function _0x444fa0(_0x4b5758){const _0x56c8d8=_0x4643e5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5bd1ae}),_0x496117=_0x4643e5['mapper']['toViewPosition'](_0x4b5758);_0x5b5689['data']['isSuggestion']&&_0x4643e5['writer']['addClass']('ck-suggestion-marker-'+_0x5bd1ae+'-new',_0x56c8d8),_0x444ea4['activeChange']==_0x5b5689&&_0x4643e5['writer']['addClass']('ck-suggestion-marker--active',_0x56c8d8),_0x4643e5['writer']['insert'](_0x496117,_0x56c8d8),_0x4643e5['mapper']['bindElementToMarker'](_0x56c8d8,_0xa1b0b8['markerName']);}_0x2c98f3||_0x359708||!_0x331575||_0x444fa0(_0x331575);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x215915,_0x2c5a8f,_0x2e7785)=>{const _0x550de4=_0x2e7785['mapper']['markerNameToElements'](_0x2c5a8f['markerName']);if(_0x550de4){for(const _0x225274 of _0x550de4)(_0x225274['hasClass']('ck-suggestion-marker-split')||_0x225274['hasClass']('ck-suggestion-marker-merge'))&&(_0x2e7785['mapper']['unbindElementFromMarkerName'](_0x225274,_0x2c5a8f['markerName']),_0x2e7785['writer']['remove'](_0x225274));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xc40bfb,_0x57750b,_0x300ced)=>{const _0x363308=_0x57750b['markerName']['split'](':')[0x1],_0x36a254=this['_getChangeFromId'](_0x363308);if(!_0x36a254)return null;const _0xefba80='add'==_0x36a254['type']?'split':'merge';if(_0x300ced['consumable']['test'](_0x57750b['markerRange'],_0xc40bfb['name']))for(const _0x26711e of _0x57750b['markerRange']['getItems']()){if(!_0x26711e['is']('element','softBreak'))continue;const _0x653204=_0x300ced['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xefba80}),_0x380061=_0x300ced['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x26711e));_0x36a254['data']['isSuggestion']&&_0x300ced['writer']['addClass']('ck-suggestion-marker-'+_0xefba80+'-new',_0x653204),this['activeChange']==_0x36a254&&_0x300ced['writer']['addClass']('ck-suggestion-marker--active',_0x653204),_0x300ced['writer']['insert'](_0x380061,_0x653204),_0x300ced['mapper']['bindElementToMarker'](_0x653204,_0x57750b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x16585c=>{for(const _0x202c39 of this['editor']['model']['document']['getRootNames']()){const _0x5cdb40=this['editor']['model']['document']['getRoot'](_0x202c39),_0x20e578=this['editor']['editing']['view']['document']['getRoot'](_0x202c39);if(_0x20e578){const _0x283fbf=_0x5cdb40['getAttribute']('revisionHistoryAttachChange');if(_0x16585c['removeAttribute']('data-change-id',_0x20e578),_0x16585c['removeClass']('ck-revision-history-root-add',_0x20e578),_0x16585c['removeClass']('ck-revision-history-root-remove',_0x20e578),_0x16585c['removeClass']('ck-revision-history-root--active',_0x20e578),_0x283fbf){const _0x19f477=this['_getChangeFromId'](_0x283fbf);if(!_0x19f477)return null;_0x16585c['setAttribute']('data-change-id',_0x283fbf,_0x20e578),_0x16585c['addClass']('ck-revision-history-root-'+_0x19f477['type'],_0x20e578),this['activeChange']==_0x19f477&&_0x16585c['addClass']('ck-revision-history-root--active',_0x20e578);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x24545b=>'revision-comment:'+_0x24545b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2d8aa3=>'revision-suggestion:'+_0x2d8aa3,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x491236=>({'name':'suggestion:'+_0x491236,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x458467=>{const _0x4517b4=_0x458467['markerName']['split'](':')[0x1];return'insertion'!=_0x4517b4&&'deletion'!=_0x4517b4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4517b4]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xfcb6a0,_0x27263c,_0x4bf9e1)=>{const _0x467dc4=_0x4bf9e1['mapper']['markerNameToElements'](_0x27263c['markerName']);if(_0x467dc4){for(const _0x2f0047 of _0x467dc4)_0x2f0047['is']('uiElement')&&(_0x4bf9e1['mapper']['unbindElementFromMarkerName'](_0x2f0047,_0x27263c['markerName']),_0x4bf9e1['writer']['remove'](_0x2f0047));}},{'priority':'high'});}['_getChangeFromId'](_0x2ee9d2){return this['_changeIdToChange']['get'](_0x2ee9d2);}['_getViewForChange'](_0x1e9373){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x1e9373),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4d6bae,_0x27d0f0,_0x209218,_0x5d50a0)=>{_0x5d50a0&&this['_balloon']['remove'](_0x5d50a0),_0x209218&&(this['_balloon']['add']({'view':_0x209218,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x50a1d1=this['editor']['editing'],_0x1c5455=this['_getChangeFromId'](_0x209218['changeId']);let _0x4b9343;if(_0x1c5455['data']['isOnRoot']){const _0x513ba3=_0x50a1d1['view']['getDomRoot'](_0x1c5455['rootName']);_0x4b9343=Array['from'](_0x513ba3['getClientRects']());}else{const _0x163e6d=this['editor']['model']['markers']['get']('revision:'+_0x209218['changeId']);_0x4b9343=Array['from'](_0x50a1d1['mapper']['markerNameToElements'](_0x163e6d['name']))['map'](_0xe612e6=>_0x50a1d1['view']['domConverter']['mapViewToDom'](_0xe612e6))['map'](_0x113c31=>Array['from'](_0x113c31['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4b9343[0x0];return _0x4b9343['find'](_0x1aeb7f=>_0x1aeb7f['top']-0x3<=this['_activeViewTarget']['y']&&_0x1aeb7f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1aeb7f['left']-0x3<=this['_activeViewTarget']['x']&&_0x1aeb7f['right']+0x3>=this['_activeViewTarget']['x'])||_0x4b9343[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x8b9185,_0x2d5e81,_0x29b983,_0x47c389)=>{this['activeView']=_0x29b983?this['_getViewForChange'](_0x29b983):null,this['editor']['model']['change'](()=>{const _0x346ded=this['editor']['editing'];_0x47c389&&(_0x47c389['data']['isOnRoot']?_0x346ded['view']['change'](_0xaa1b1b=>{_0xaa1b1b['removeClass']('ck-revision-history-root--active',_0x346ded['view']['document']['getRoot'](_0x47c389['rootName']));}):_0x346ded['reconvertMarker']('revision:'+_0x47c389['id'])),_0x29b983&&(_0x29b983['data']['isOnRoot']?_0x346ded['view']['change'](_0x46fd2b=>{_0x46fd2b['addClass']('ck-revision-history-root--active',_0x346ded['view']['document']['getRoot'](_0x29b983['rootName']));}):_0x346ded['reconvertMarker']('revision:'+_0x29b983['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2b1cb0,_0x206189)=>{if(this['activeChange'])return;const _0x2b667a=this['_findChangeIdFromDomTarget'](_0x206189['target']),_0x2cdca8=this['_changeIdToChange']['get'](_0x2b667a);_0x2cdca8?(this['_activeViewTarget']={'x':_0x206189['domEvent']['x'],'y':_0x206189['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2cdca8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x58b16c,_0x533c05)=>{const _0x514dd8=this['_findChangeIdFromDomTarget'](_0x533c05['target']),_0x54c04f=this['_changeIdToChange']['get'](_0x514dd8);_0x54c04f?(this['_activeViewTarget']={'x':_0x533c05['domEvent']['x'],'y':_0x533c05['domEvent']['y']},_0x54c04f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x54c04f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x483246){do{const _0x3a0d52=_0x483246['getAttribute']('data-change-id');if(_0x3a0d52)return _0x3a0d52;_0x483246=_0x483246['parent'];}while(_0x483246);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xe143c6=>{for(const _0x2e3ad6 of this['editor']['model']['markers'])_0xe143c6['removeMarker'](_0x2e3ad6);});}}function X(_0x7c3378,_0xf90b9b){return(_0x5eb228,_0x52d9b0,_0x22c1a0)=>{if(!_0x22c1a0['consumable']['test'](_0x52d9b0['markerRange'],_0x5eb228['name']))return;const _0x45a792=_0x52d9b0['markerRange']['getWalker'](),_0x3546a1=_0x52d9b0['markerRange']['start'],_0x442f6a=_0x7c3378['model']['schema'];let _0x262a1d=null,_0x371d3b=null,_0xdfd38e=!0x1,_0x4b9d88=!0x1;for(const _0x4e74fd of _0x45a792){const _0x4c06e7=_0x4e74fd['item'];_0xdfd38e=_0xdfd38e||_0x442f6a['isContent'](_0x4c06e7);const _0x147408=_0x22c1a0['mapper']['toViewElement'](_0x4c06e7);if(_0x147408&&_0x147408['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e74fd['type']&&(_0x442f6a['isBlock'](_0x4c06e7)&&!_0x442f6a['isLimit'](_0x4c06e7)&&(_0x4c06e7['nextSibling']||_0x3546a1['isAtEnd']?_0x262a1d&&_0x262a1d['parent']==_0x4c06e7||(_0x262a1d=_0x4c06e7,_0x37bd1e(_0x4e74fd['previousPosition']),_0x4b9d88=!0x0):_0x371d3b=_0x371d3b||_0x4e74fd['previousPosition']));}function _0x37bd1e(_0x3c4997){const _0x410f90=_0x22c1a0['mapper']['toViewPosition'](_0x3c4997),_0x27d5d2=_0x22c1a0['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xf90b9b});_0x22c1a0['writer']['insert'](_0x410f90,_0x27d5d2),_0x22c1a0['mapper']['bindElementToMarker'](_0x27d5d2,_0x52d9b0['markerName']);}_0xdfd38e||_0x4b9d88||!_0x371d3b||_0x37bd1e(_0x371d3b);};}class mt extends _0x5a96ec{constructor(_0x4296fa){super(_0x4296fa);const _0x574817=_0x4296fa['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x574817,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x574817,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x772c31=this['editor'],_0x2c532c=_0x772c31['plugins']['get'](m),_0x415ff9=_0x2c532c['isReady']?_0x2c532c['diff']['newRevisionId']:null;_0x772c31['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x415ff9);}['refresh'](){const {isReady:_0x3d39d3,isEnabled:_0x261fcb,repository:_0x9e79b3,diff:_0x1cc73b}=this['editor']['plugins']['get'](m),_0x497be3=_0x1cc73b&&_0x9e79b3['getLaterVisibleRevision'](_0x1cc73b['newRevisionId']);this['isEnabled']=_0x3d39d3&&_0x261fcb&&Boolean(_0x497be3);}}class wt extends _0x5a96ec{['_step'];constructor(_0x4659f7,{direction:_0x488bd1}){super(_0x4659f7);const _0x4b5b11=_0x4659f7['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x488bd1?0x1:-0x1,this['listenTo'](_0x4b5b11,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b5b11,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4b5b11,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x23f5ca=this['editor'],_0x2df641=_0x23f5ca['plugins']['get'](m),{isNavigationMode:_0x240984,currentChangeNumber:_0x790bd5}=_0x2df641;let _0x1a2336;if(_0x2df641['activeChange']=_0x240984?_0x2df641['diff']['changes']['get'](_0x790bd5+this['_step']):_0x2df641['diff']['changes']['first'],_0x2df641['activeChange']['data']['isOnRoot'])_0x1a2336=_0x23f5ca['editing']['view']['getDomRoot'](_0x2df641['activeChange']['rootName']);else{const _0x5eddea=_0x23f5ca['model']['markers']['get']('revision:'+_0x2df641['activeChange']['id']);_0x1a2336=_0x9249c1(_0x23f5ca['editing'],_0x5eddea);}_0x2d24ed({'target':_0x1a2336,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2e7044,currentChangeNumber:_0x46c334,numberOfChanges:_0x45511f,isReady:_0x333e7b,isEnabled:_0x3d16c8}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x3d16c8&&_0x333e7b&&_0x45511f)&&(!_0x2e7044||(0x1===this['_step']?_0x46c334<_0x45511f-0x1:_0x46c334>0x0));}}class _i extends ts{constructor(_0x154890){super(_0x154890);const _0x383711=this['bindTemplate'],_0x4fe374=new te(_0x154890),_0x1c48ec=new te(_0x154890);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',(_0x2ff0ba,_0x5dd0d7)=>_0x2ff0ba&&_0x5dd0d7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4c401a,_0x2f2eb0,_0x28b5a6,_0x424308)=>{if(!_0x4c401a)return g(_0x154890,'Loading...');if(!_0x28b5a6)return g(_0x154890,'No\x20changes');const _0x56b7b2=g(_0x154890,'NUMBER_OF_CHANGES',_0x28b5a6);return _0x424308?g(_0x154890,'X_OF_Y_CHANGES',[_0x2f2eb0+0x1,_0x28b5a6]):_0x56b7b2;}),_0x4fe374['set']({'label':g(_0x154890,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x24917}),_0x1c48ec['set']({'label':g(_0x154890,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x536269}),_0x4fe374['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1c48ec['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4fe374['on']('execute',()=>this['fire']('execute','backward')),_0x1c48ec['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',_0x383711['if']('_isStatusLabelVisible','ck-hidden',_0x55ae62=>!_0x55ae62)]},'children':[{'text':_0x383711['to']('isNavigationMode',_0x1c6e80=>_0x1c6e80?g(_0x154890,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x154890,'Total')+':\x20')}]},{'text':_0x383711['to']('_statusText')}]},new _0x263769(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4fe374,_0x1c48ec]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x506da8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5e45b2=this['editor']['editing']['view'];_0x5e45b2['change'](_0x434a17=>{for(const _0x2bb782 of _0x5e45b2['document']['roots'])_0x434a17['addClass'](le,_0x2bb782);});}['hide'](){const _0x12818f=this['editor']['editing']['view'];_0x12818f['change'](_0x27ceff=>{for(const _0x4296e7 of _0x12818f['document']['roots'])_0x27ceff['removeClass'](le,_0x4296e7);});}}class R extends _0x506da8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x573b04=this['editor'],_0x42d16f=_0x573b04['plugins']['get'](m),_0xa5b586=_0x573b04['plugins']['get'](ge);_0x573b04['ui']['componentFactory']['add']('exitToEditing',_0x3f3f4d=>{const _0x4f3815=new te(_0x3f3f4d);return _0x4f3815['set']({'label':g(_0x3f3f4d,'Back\x20to\x20editing'),'icon':_0x5ec9a1,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4f3815,'execute',()=>{_0x573b04['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4f3815;}),_0x573b04['ui']['componentFactory']['add']('restoreRevision',_0x5a125d=>{const _0x4c3060=new te(_0x5a125d);return _0x4c3060['set']({'label':g(_0x5a125d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4c3060['bind']('isEnabled')['to'](_0x573b04['commands']['get']('restoreRevision')),this['listenTo'](_0x4c3060,'execute',()=>_0x573b04['execute']('restoreRevision')),_0x4c3060;}),_0x573b04['ui']['componentFactory']['add']('changesNavigation',_0x4630e3=>{const _0xc3e755=new _i(_0x4630e3),_0x11010d=_0x573b04['commands']['get']('showPreviousChange'),_0x110757=_0x573b04['commands']['get']('showNextChange');return _0xc3e755['bind']('isBackwardNavigationEnabled')['to'](_0x11010d,'isEnabled'),_0xc3e755['bind']('isForwardNavigationEnabled')['to'](_0x110757,'isEnabled'),_0xc3e755['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x42d16f),this['listenTo'](_0xc3e755,'execute',(_0x21e146,_0x337f31)=>{_0x573b04['execute']('forward'===_0x337f31?'showNextChange':'showPreviousChange');}),_0xc3e755;}),_0xa5b586['show'](),_0x42d16f['on']('change:isReady',(_0x2284e2,_0x407eae,_0x651a1a)=>{_0x651a1a?_0xa5b586['hide']():_0xa5b586['show']();});}}class at extends _0xc22ea8{['_resizeObserver']=null;constructor(_0x2d31da,_0x5b5d77){super(_0x2d31da,_0x5b5d77);const _0x26ad97=this['bindTemplate'];this['set']({'label':g(_0x2d31da,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x2d31da,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x26ad97['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x50bfa1=this['fieldView']['element'];this['_tooltipString']=_0x50bfa1['scrollWidth']>_0x50bfa1['clientWidth']&&_0x50bfa1['value']||'';}}class si extends ts{constructor(_0x5e5fbc,_0x4ed461,_0x25479a){super(_0x5e5fbc);const _0x45991d=new _0x5353e5();_0x45991d['set']({'content':_0x2cb2bd,'viewBox':'0\x200\x2011\x2010'});const _0xfcc353=['ck','ck-revision-history-sidebar__revision-author'];_0x25479a&&_0xfcc353['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2f36bf=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5e5fbc,_0x25479a?'Revision\x20creator':'Revision\x20author')},'children':[_0x45991d,_0x4ed461['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xfcc353},'children':_0x2f36bf});}}function oi(_0x35aebd,_0x58f1e0){const _0x377ad3=_0x35aebd['bindTemplate'],_0x5aa742=_0x35aebd['locale'],_0xe6055a=_0x418de7(_0x5aa742);_0xe6055a['panelPosition']='sw';const _0x59c240=function(_0x1736fb,_0x463a19){const _0x493f5f=function(_0x1e148b,_0x2a0ed5){const _0x4dfc25=_0x1e148b['locale'],_0x5c9d7d={'Compare\x20against\x20selected':g(_0x4dfc25,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x4dfc25,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x4dfc25,'Restore\x20this\x20revision')};return _0x2a0ed5['map'](_0xd854bd=>{const _0x5b9103=_0x5c9d7d[_0xd854bd['name']];return _0x5b9103&&_0x5b9103!==_0xd854bd['name']&&(_0xd854bd['name']=_0x5b9103),_0xd854bd;});}(_0x1736fb,_0x463a19),_0x121b75=new _0x2f6a5b();for(const _0x57ca8a of _0x493f5f){const _0x36348f={'type':'button','model':new to({'label':_0x57ca8a['name'],'class':_0x57ca8a['class'],'withText':!0x0,'role':'menuitem','_action':_0x57ca8a['action']})};_0x36348f['model']['bind']('isEnabled')['to'](_0x1736fb,'isActionsDropdownOpen',_0x3597c5=>'function'!=typeof _0x57ca8a['isEnabled']||(!_0x3597c5||_0x57ca8a['isEnabled'](_0x1736fb))),_0x121b75['add'](_0x36348f);}return _0x121b75;}(_0x35aebd,_0x58f1e0);return _0x35aebd['bind']('isActionsDropdownOpen')['to'](_0xe6055a,'isOpen'),_0xe6055a['buttonView']['set']({'label':g(_0x5aa742,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x916b6a}),_0xe6055a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x377ad3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x377ad3['to'](_0xb76451=>_0xb76451['stopPropagation']())}}),_0xe6055a['on']('execute',_0x40c6b3=>{_0x35aebd['isReady']&&'function'==typeof _0x40c6b3['source']['_action']&&_0x40c6b3['source']['_action'](_0x35aebd);}),_0xd53a08(_0xe6055a,_0x59c240,{'role':'menu'}),_0xe6055a['listenTo'](_0x35aebd,'change:isActionsDropdownOpen',(_0x39aded,_0x47433e,_0x29a691)=>{if(_0x29a691)for(const _0x5a42d9 of _0xe6055a['listView']['items']){const _0x405636=_0x5a42d9['children']['first'],_0x116d97=_0x58f1e0['find'](_0x1e2a0e=>_0x1e2a0e['action']===_0x405636['_action'])['isVisible'];_0x5a42d9['isVisible']=void 0x0===_0x116d97||_0x116d97(_0x35aebd);}}),_0xe6055a;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x585f92,_0x3d34d6,_0xeaf407,_0x299c93){super(_0x585f92);const _0x540423=this['bindTemplate'],_0x2a461e=function(_0x39a1db,_0x31d8d8){const _0x273892=Array['from'](_0x31d8d8['authors'])['filter'](_0x7c87c8=>_0x7c87c8!=_0x31d8d8['creator']);return _0x31d8d8['creator']&&_0x273892['unshift'](_0x31d8d8['creator']),_0x273892['map'](_0x207588=>new si(_0x39a1db,_0x207588,_0x207588==_0x31d8d8['creator']));}(_0x585f92,_0x3d34d6);this['id']=_0x3d34d6['id'],this['_revision']=_0x3d34d6,this['_requireRevisionName']=_0x299c93,this['bind']('name','createdAt')['to'](_0x3d34d6),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x499dbe=>{return _0x5ca37e=_0x585f92['uiLanguage'],(_0x2a36f7=_0x499dbe)['toLocaleDateString'](_0x5ca37e,{'month':'long','day':'numeric'})+',\x20'+_0x2a36f7['toLocaleTimeString'](_0x5ca37e,{'hour':'numeric','minute':'numeric'});var _0x5ca37e,_0x2a36f7;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x585f92,_0x34f747),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3a8ed1=>_0x3a8ed1||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5820ec,_0x5b0ed1)=>_0x5820ec&&_0x5b0ed1),this['revisionActionsView']=_0xeaf407&&_0xeaf407['length']?oi(this,_0xeaf407):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x540423['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x540423['if']('isEnabled','ck-disabled',_0xcf2941=>!_0xcf2941),_0x540423['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x540423['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x540423['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':_0x540423['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':_0x2a461e}]},this['revisionActionsView']],'on':{'click':_0x540423['to'](_0x2618b6=>{_0x2618b6['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x33689f=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x33689f,'change',()=>{this['_requireRevisionName']&&!_0x33689f['value']||this['fire']('setName',{'id':this['id'],'name':_0x33689f['value']}),_0x33689f['value']||(_0x33689f['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x1f8fd3,_0x33418d){const _0x747f28=_0xd936a['fromJSDate'](_0x1f8fd3)['setLocale'](_0x33418d),_0x3f83b7=_0xd936a['local'](),_0xe2658c=_0x3f83b7['minus']({'days':0x1})['startOf']('day');let _0x3250cc,_0x3da3ad;return _0x747f28['hasSame'](_0x3f83b7,'day')?(_0x3250cc=_0x747f28['startOf']('day')['toJSDate'](),_0x3da3ad=_0x747f28['toRelativeCalendar']()):_0x747f28['hasSame'](_0xe2658c,'day')?(_0x3250cc=_0xe2658c['toJSDate'](),_0x3da3ad=_0x747f28['toRelativeCalendar']()):_0x747f28['hasSame'](_0x3f83b7,'week')?(_0x3250cc=_0x747f28['startOf']('week')['toJSDate'](),_0x3da3ad=_0x747f28['weekdayLong']||''):_0x747f28['hasSame'](_0x3f83b7,'year')?(_0x3250cc=_0x747f28['startOf']('month')['toJSDate'](),_0x3da3ad=_0x747f28['monthLong']||''):(_0x3250cc=_0x747f28['startOf']('year')['toJSDate'](),_0x3da3ad=String(_0x747f28['year'])),{'startDate':_0x3250cc,'localizedPeriodName':_0x3da3ad};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x598265,_0x2ce355,_0x14d874,_0x2aad5b){super(_0x598265);const _0x3414d8=ai(_0x2ce355,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2ce355,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x14d874,this['_requireRevisionName']=_0x2aad5b,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':_0x3414d8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x150949){const _0x2b9591=new hi(this['locale'],_0x150949,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2b9591);}['removeRevision'](_0x45120f){const _0x42b959=this['revisionViews']['find'](_0x25282c=>_0x25282c['id']===_0x45120f['id']);this['revisionViews']['remove'](_0x42b959);}}class as extends ts{constructor(_0x54a562){super(_0x54a562);const _0x1c54c3=new _0x5353e5();_0x1c54c3['content']=_0x5606df,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1c54c3,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x54a562,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x278908,_0x459903,_0x47397a,_0x558760){super(_0x278908);const _0x388e32=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x459903,this['_revisionActions']=_0x47397a,this['_requireRevisionName']=_0x558760,this['on']('select',(_0xb77ab9,_0x2d273f)=>{this['fire']('revisionSelected',_0x2d273f);}),this['on']('setName',(_0x4e6dd6,_0x24db34)=>{this['fire']('revisionSetName',_0x24db34);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x278908),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x388e32['if']('isEnabled','ck-disabled',_0x141e2f=>!_0x141e2f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1020cc of this['_revisions'])this['_addRevision'](_0x1020cc);this['_revisions']['on']('add',(_0x563427,_0x2bcbc3)=>{this['_addRevision'](_0x2bcbc3);}),this['_revisions']['on']('remove',(_0x3ee154,_0x20bc9b)=>{this['_removeRevision'](_0x20bc9b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x495879=>_0x495879['revisionViews']['map'](_0x431563=>_0x431563))['flat']();}['selectRevision'](_0x5dcab1){for(const _0x25a18a of this['revisionViews'])_0x5dcab1&&_0x5dcab1['id']===_0x25a18a['id']?_0x25a18a['select']():_0x25a18a['deselect']();}['highlightRevisions'](_0x49125a){for(const _0x270546 of this['revisionViews'])_0x49125a['some'](({id:_0x12dd5b})=>_0x12dd5b===_0x270546['id'])?_0x270546['highlight']():_0x270546['unhighlight']();}['_addRevision'](_0x4c8db0){const _0x210bb4=ai(_0x4c8db0['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x351d14=this['timePeriodViews']['get'](0x0);_0x351d14&&_0x351d14['startDate']['getTime']()===_0x210bb4['getTime']()||(_0x351d14=new di(this['locale'],_0x210bb4,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x351d14)),_0x351d14['addRevision'](_0x4c8db0);}['_removeRevision'](_0x1789d0){const _0x1f6c36=ai(_0x1789d0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1f6c36)['removeRevision'](_0x1789d0);}['_getTimePeriodViewByStartDate'](_0x4c7d34){return this['timePeriodViews']['find'](_0x4fd49e=>_0x4fd49e['startDate']['getTime']()===_0x4c7d34['getTime']());}}class d extends _0x506da8{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x425e45,uid as _0x4f6663,Collection as _0xfacc30,logWarning as _0x4edde2,FocusTracker as _0x4d4733,KeystrokeHandler as _0x5394e0,scrollViewportToShowTarget as _0x55d41c,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x44b874}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2a2398,set as _0x2a92d5,unset as _0x21f350,isEqual as _0x3a2ed8}from'es-toolkit/compat';import{Plugin as _0xfc6625,PendingActions as _0x183dab,Command as _0x423d75,ElementApiMixin as _0x1dc220,Editor as _0xabc862}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x29c155,getMarkerDomElement as _0x194f13,ConfirmMixin as _0x5c5ebf,sanitizeEditorConfig as _0x552753}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x3123fe,ViewAttributeElement as _0x5216b5,ViewEmptyElement as _0x5070b7,ViewRawElement as _0x33a0a6,ViewUIElement as _0x39a31a,ViewDocumentFragment as _0x5c6d15,ViewText as _0x423f1a,ViewElement as _0x364215,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x21efd2,IconChevronUp as _0x4ebd8e,IconChevronDown as _0x79ad34,IconUndo as _0x3698c2,IconUser as _0x3dd8eb,IconThreeVerticalDots as _0x26134e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0xd7064f,injectCssTransitionDisabler as ts,submitHandler as _0x254e30,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x1f00c4,ListView as _0x59ccb5,ListItemView as te,ButtonView as _0x1b1410,MenuBarMenuView as _0x15eb5e,MenuBarMenuListView as _0x39e36,MenuBarMenuListItemView as _0x56d8f5,MenuBarMenuListItemButtonView as _0x2d3068,ContextualBalloon as _0x15b9f2,ToolbarSeparatorView as _0x595ece,IconView as _0x692cc8,addListToDropdown as _0x567999,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x538e0a}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x425e45(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3c668b){super(),this['id']=_0x3c668b['id']||_0x4f6663(),this['creator']=_0x3c668b['creator']||null,this['authors']=_0x3c668b['authors']||[],this['diffData']=_0x3c668b['diffData']||null,this['toVersion']=_0x3c668b['toVersion']||0x0,this['fromVersion']=_0x3c668b['fromVersion']||0x0,this['set']('name',_0x3c668b['name']||''),this['set']('createdAt',_0x3c668b['createdAt']||new Date()),this['set']('attributes',_0x3c668b['attributes']||{});}['setName'](_0x1d4e4e){this['_update']({'name':_0x1d4e4e});}['setAttribute'](_0x3f479e,_0xfbd18c){const _0x1638e2=_0x2a2398(this['attributes']);_0x2a92d5(_0x1638e2,_0x3f479e,_0xfbd18c),this['_update']({'attributes':_0x1638e2});}['removeAttribute'](_0x2c775c){const _0x8db2f1=_0x2a2398(this['attributes']);_0x21f350(_0x8db2f1,_0x2c775c),this['_update']({'attributes':_0x8db2f1});}['_update'](_0x38238a,_0x791834=!0x1){let _0x182146=!0x1;const _0x5245af={'id':this['id']},_0x4cc13a=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3669c8 of _0x4cc13a){const _0x39eeeb=_0x38238a[_0x3669c8];void 0x0!==_0x39eeeb&&_0x39eeeb!==this[_0x3669c8]&&(this[_0x3669c8]=_0x39eeeb,_0x5245af[_0x3669c8]=_0x39eeeb,_0x182146=!0x0);}_0x182146&&(_0x5245af['authors']&&(_0x5245af['authorsIds']=_0x5245af['authors']['map'](_0x10858f=>_0x10858f['id']),delete _0x5245af['authors']),this['fire']('_update',_0x5245af,_0x791834));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2baf4b=>_0x2baf4b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0xfc6625{['_revisions'];static get['requires'](){return[_0x29c155];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1286da){super(_0x1286da),this['_revisions']=new _0xfacc30();}['afterInit'](){!async function(_0x16a648){const _0x31b028=_0x3ef43f([0x44,0x65,0x5a,0x53,0x67,0x47,0x76,0x6f,0x4a,0x4b,0x46,0x74,0x31,0x78,0x54,0x4c,0x32,0x30,0x68,0x37,0x64,0x6b,0x59,0x71,0x55,0x45,0x33,0x39,0x52,0x4f,0x38,0x4d,0x50,0x6d,0x43,0x58,0x66,0x6c,0x6e,0x63,0x7a,0x56,0x57,0x77,0x79,0x42,0x4e,0x49,0x35,0x36,0x62,0x51,0x61,0x69,0x70,0x48,0x6a,0x34,0x41,0x72,0x73,0x75]),_0x2f2def=0xeb829,_0x17b429=0x39b6dd0a,_0x48d5e0=0x39b1b7da^_0x17b429,_0x5a7c52=window[_0x3ef43f([0x44,0x61,0x74,0x65])][_0x3ef43f([0x6e,0x6f,0x77])](),_0x1afa64=_0x16a648[_0x3ef43f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5bbe7a=new window[(_0x3ef43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2128e8=>{_0x1afa64[_0x3ef43f([0x6f,0x6e,0x63,0x65])](_0x3ef43f([0x72,0x65,0x61,0x64,0x79]),_0x2128e8);}),_0x460117={[_0x3ef43f([0x6b,0x74,0x79])]:_0x3ef43f([0x45,0x43]),[_0x3ef43f([0x75,0x73,0x65])]:_0x3ef43f([0x73,0x69,0x67]),[_0x3ef43f([0x63,0x72,0x76])]:_0x3ef43f([0x50,0x2d,0x32,0x35,0x36]),[_0x3ef43f([0x78])]:_0x3ef43f([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]),[_0x3ef43f([0x79])]:_0x3ef43f([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]),[_0x3ef43f([0x61,0x6c,0x67])]:_0x3ef43f([0x45,0x53,0x32,0x35,0x36])},_0x567c86=_0x1afa64[_0x3ef43f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ef43f([0x67,0x65,0x74])](_0x3ef43f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45e8ce(){let _0x117e02,_0x1fac85=null,_0x512ae5=null;try{if(_0x567c86==_0x3ef43f([0x47,0x50,0x4c]))return _0x3ef43f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x117e02=_0x33a410(),!_0x117e02)return _0x3ef43f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x117e02[_0x3ef43f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x512ae5=_0x142086(_0x117e02[_0x3ef43f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x117e02[_0x3ef43f([0x6a,0x74,0x69])])),await _0x543315()?_0x5a25fc()?_0x1d3d90()?_0x3ef43f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2f9439()?(_0x117e02[_0x3ef43f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ef43f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fac85=_0xb9aea5(_0x3ef43f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x117e02[_0x3ef43f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ef43f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1fac85=_0xb9aea5(_0x3ef43f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45e37c()):_0x3ef43f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ef43f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ef43f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ef43f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d3d90(){const _0x517c0b=[_0x3ef43f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ef43f([0x74,0x72,0x69,0x61,0x6c])][_0x3ef43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x117e02[_0x3ef43f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a7c52/0x3e8:0xe10*_0x48d5e0;return _0x117e02[_0x3ef43f([0x65,0x78,0x70])]<_0x517c0b;}function _0x5a25fc(){const _0x42c614=_0x117e02[_0x3ef43f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x42c614)return!0x1;if(_0x42c614[_0x3ef43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ef43f([0x2a])))return!0x0;if(_0x42c614[_0x3ef43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ef43f([0x52,0x48])))return!0x0;if(_0x42c614[_0x3ef43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ef43f([0x52,0x52,0x48]))){if(_0x36d700())return!0x0;if(_0x4b1ec3()||_0x3a9723())return!0x0;}return!0x1;}function _0x2f9439(){const _0x105863=_0x117e02[_0x3ef43f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x105863||0x0==_0x105863[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17b4d}=new URL(window[_0x3ef43f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x105863[_0x3ef43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d))return!0x0;const _0xa813e2=_0x17b4d[_0x3ef43f([0x73,0x70,0x6c,0x69,0x74])](_0x3ef43f([0x2e]));return _0x105863[_0x3ef43f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50db4a=>_0x50db4a[_0x3ef43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ef43f([0x2a])))[_0x3ef43f([0x6d,0x61,0x70])](_0x4701f2=>_0x4701f2[_0x3ef43f([0x73,0x70,0x6c,0x69,0x74])](_0x3ef43f([0x2e])))[_0x3ef43f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a8c30=>_0x1a8c30[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa813e2[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ef43f([0x6d,0x61,0x70])](_0x5d1d2b=>Array(_0xa813e2[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d1d2b[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ef43f([0x66,0x69,0x6c,0x6c])](_0x5d1d2b[0x0]===_0x3ef43f([0x2a])?_0x3ef43f([0x2a]):'')[_0x3ef43f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d1d2b))[_0x3ef43f([0x73,0x6f,0x6d,0x65])](_0x1098a1=>_0xa813e2[_0x3ef43f([0x65,0x76,0x65,0x72,0x79])]((_0x2beeef,_0x5e39c4)=>_0x1098a1[_0x5e39c4]===_0x2beeef||_0x1098a1[_0x5e39c4]===_0x3ef43f([0x2a])));}function _0x45e37c(){return _0x1fac85&&_0x512ae5?new window[(_0x3ef43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x179341,_0x51d85c)=>{_0x1fac85[_0x3ef43f([0x74,0x68,0x65,0x6e])](_0x179341,_0x51d85c),_0x512ae5[_0x3ef43f([0x74,0x68,0x65,0x6e])](_0x2e3191=>{_0x2e3191!=_0x3ef43f([0x56,0x61,0x6c,0x69,0x64])&&_0x179341(_0x2e3191);},_0x51d85c);}):_0x1fac85||_0x512ae5||_0x3ef43f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x142086(_0x1a9d72,_0x12e2d4){return new window[(_0x3ef43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbd32fe=>{if(_0x16e013())return _0xbd32fe(_0x3ef43f([0x56,0x61,0x6c,0x69,0x64]));_0x59c9ca(),_0x1afa64[_0x3ef43f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ef43f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2572d7=!0x1;const _0x524264=_0x4f6663();function _0x5ed9d2(_0x33c869){return!!_0x33c869&&(typeof _0x33c869===_0x3ef43f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33c869===_0x3ef43f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33c869[_0x3ef43f([0x74,0x68,0x65,0x6e])]===_0x3ef43f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33c869[_0x3ef43f([0x63,0x61,0x74,0x63,0x68])]===_0x3ef43f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e407e(_0xbe3dd9){_0x41a16e(_0xbe3dd9)[_0x3ef43f([0x74,0x68,0x65,0x6e])](_0x53accc=>{if(!_0x53accc||_0x53accc[_0x3ef43f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ef43f([0x6f,0x6b]))return _0x3ef43f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x116183(_0xa68c69(_0x524264+_0x12e2d4))!=_0x53accc[_0x3ef43f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ef43f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ef43f([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ef43f([0x74,0x68,0x65,0x6e])](_0x26243e=>(_0x4f7817(),_0x26243e),()=>{const _0x50f753=_0x5e19c1();return null==_0x50f753?(_0x4f7817(),_0x3ef43f([0x56,0x61,0x6c,0x69,0x64])):_0x3ef43f(_0x5a7c52-_0x50f753>(0x1dba590a^_0x17b429)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ef43f([0x74,0x68,0x65,0x6e])](_0xbd32fe)[_0x3ef43f([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbd32fe(_0x3ef43f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a3503=0x3980338a^_0x17b429;function _0x4f7817(){const _0x423fa6=_0x3ef43f([0x6c,0x6c,0x63,0x74,0x2d])+_0x116183(_0xa68c69(_0x1a9d72)),_0x13786a=_0x222e1a(_0x116183(window[_0x3ef43f([0x4d,0x61,0x74,0x68])][_0x3ef43f([0x63,0x65,0x69,0x6c])](_0x5a7c52/_0x3a3503)));window[_0x3ef43f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ef43f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x423fa6,_0x13786a);}function _0x5e19c1(){const _0x2d24ad=_0x3ef43f([0x6c,0x6c,0x63,0x74,0x2d])+_0x116183(_0xa68c69(_0x1a9d72)),_0x534c06=window[_0x3ef43f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ef43f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d24ad);return _0x534c06?window[_0x3ef43f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x222e1a(_0x534c06),0x10)*_0x3a3503:null;}function _0x41a16e(_0x3d5181){return new window[(_0x3ef43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x381f61,_0x527ff4)=>{_0x3d5181[_0x3ef43f([0x74,0x68,0x65,0x6e])](_0x381f61,_0x527ff4),window[_0x3ef43f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x527ff4,0x39b709ca^_0x17b429);});}}_0x1afa64[_0x3ef43f([0x6f,0x6e])](_0x3ef43f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e5fc9,_0x5c1b00)=>{if(_0x5c1b00[0x0]!=_0x1a9d72)return _0xbd32fe(_0x3ef43f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c1b00[0x1]={..._0x5c1b00[0x1],[_0x3ef43f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x524264};},{[_0x3ef43f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ef43f([0x68,0x69,0x67,0x68])}),_0x1afa64[_0x3ef43f([0x6f,0x6e])](_0x3ef43f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54e6e9=>{_0x5ed9d2(_0x54e6e9[_0x3ef43f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2572d7=!0x0,_0x1e407e(_0x54e6e9[_0x3ef43f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ef43f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ef43f([0x6c,0x6f,0x77])}),_0x5bbe7a[_0x3ef43f([0x74,0x68,0x65,0x6e])](()=>{_0x2572d7||_0xbd32fe(_0x3ef43f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16e013(){return _0x1afa64[_0x3ef43f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ef43f([0x76,0x69,0x65,0x77])][_0x3ef43f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ef43f([0x61,0x75,0x74,0x6f]);}function _0x59c9ca(){_0x1afa64[_0x3ef43f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ef43f([0x76,0x69,0x65,0x77])][_0x3ef43f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ef43f([0x61,0x75,0x74,0x6f]);}}function _0xb9aea5(_0x2106fc){const _0x22454d=[new window[(_0x3ef43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4afb2d=>setTimeout(_0x4afb2d,0x39bfe3c6^_0x17b429)),_0x5bbe7a[_0x3ef43f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ef43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10b250=>{const _0x595d69=0x39b6dd0d^_0x17b429,_0x351ed6=_0x16a648[_0x3ef43f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xd6d05(){_0x351ed6[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x595d69&&_0x10b250();}_0xd6d05(),_0x351ed6[_0x3ef43f([0x6f,0x6e])](_0x3ef43f([0x61,0x64,0x64]),_0xd6d05);})),new window[(_0x3ef43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x366e72=>{function _0x35cf38(){for(const _0x31fd7c in window)if(window[_0x3ef43f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3ef43f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x31fd7c))&&window[_0x31fd7c]==_0x2f2def)return _0x366e72();_0x1afa64[_0x3ef43f([0x73,0x74,0x61,0x74,0x65])]!=_0x3ef43f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3ef43f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35cf38,0x39b6ce82^_0x17b429);}_0x336521(_0x3ef43f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x35cf38();})];return window[_0x3ef43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ef43f([0x72,0x61,0x63,0x65])](_0x22454d)[_0x3ef43f([0x74,0x68,0x65,0x6e])](()=>_0x2106fc);}async function _0xeadeb2(){if(await _0x5bbe7a,_0x336521(_0x3ef43f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x102d54=_0x16a648[_0x3ef43f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x16fe4a=_0x16a648[_0x3ef43f([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])](_0x102d54[_0x3ef43f([0x69,0x64])]),_0x1f0831=_0x2e23f1(_0x3ef43f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1f0831[_0x3ef43f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x102d54['id'],_0x16fe4a?_0x16fe4a['id']:null,!0x0),_0x1f0831[_0x3ef43f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ef43f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f0831[_0x3ef43f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f0831[_0x3ef43f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xf84b9b,void(_0x1f0831[_0x3ef43f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xf84b9b);}if(_0x336521(_0x3ef43f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x597f62=_0x2e23f1(_0x3ef43f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x597f62[_0x3ef43f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ef43f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x597f62[_0x3ef43f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x597f62[_0x3ef43f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xf84b9b,_0x597f62[_0x3ef43f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xf84b9b;}_0x1afa64[_0x3ef43f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ef43f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf84b9b,_0x1afa64[_0x3ef43f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ef43f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf84b9b,_0x1afa64[_0x3ef43f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ef43f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36d700(){return _0x336521(_0x3ef43f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e23f1(_0x3ef43f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ef43f([0x73,0x74,0x61,0x74,0x65])]==_0x3ef43f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4b1ec3(){return _0x336521(_0x3ef43f([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 _0x3a9723(){return _0x336521(_0x3ef43f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x192c4c(_0x2160ab){const _0x428bf4=_0xffff32();_0x1afa64[_0x428bf4]=_0x3ef43f([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])+_0x2160ab,_0x2160ab[_0x3ef43f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3ef43f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xffff32()]=_0x2f2def),_0x2160ab!=_0x3ef43f([0x56,0x61,0x6c,0x69,0x64])&&_0xeadeb2();}function _0xffff32(){const _0x59b9e0=window[_0x3ef43f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ef43f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ef43f([0x6e,0x6f,0x77])]())[_0x3ef43f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ef43f([0x2e]),'');let _0x6e116a=_0x3ef43f([0x44]);for(let _0x26e809=0x0;_0x26e809<_0x59b9e0[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26e809+=0x2){let _0x4dc8c3=window[_0x3ef43f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59b9e0[_0x3ef43f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26e809,_0x26e809+0x2));_0x4dc8c3>=_0x31b028[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4dc8c3-=_0x31b028[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6e116a+=_0x31b028[_0x4dc8c3];}return _0x6e116a;}function _0x33a410(){const _0x4190e6=_0x567c86[_0x3ef43f([0x73,0x70,0x6c,0x69,0x74])](_0x3ef43f([0x2e]));if(0x3!=_0x4190e6[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4de5c2(_0x4190e6[0x1]);function _0x4de5c2(_0x10f060){const _0x4fc02b=_0x1c979d(_0x10f060);return _0x4fc02b&&_0x54474d()?_0x4fc02b:null;function _0x54474d(){const _0x55498e=_0x4fc02b[_0x3ef43f([0x6a,0x74,0x69])],_0x286805=window[_0x3ef43f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55498e[_0x3ef43f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55498e[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x70489b={..._0x4fc02b,[_0x3ef43f([0x6a,0x74,0x69])]:_0x55498e[_0x3ef43f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55498e[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x70489b[_0x3ef43f([0x76,0x63])],_0xa68c69(_0x70489b)==_0x286805;}}}async function _0x543315(){let _0x51e973=!0x0;try{const _0x297e5c=_0x567c86[_0x3ef43f([0x73,0x70,0x6c,0x69,0x74])](_0x3ef43f([0x2e])),[_0x47c1e2,_0x5a8c48,_0x2eac50]=_0x297e5c;return _0x35df8e(_0x47c1e2),await _0x10b4ca(_0x47c1e2,_0x5a8c48,_0x2eac50),_0x51e973;}catch{return!0x1;}function _0x35df8e(_0x580db0){const _0x250b60=_0x1c979d(_0x580db0);_0x250b60&&_0x250b60[_0x3ef43f([0x61,0x6c,0x67])]==_0x3ef43f([0x45,0x53,0x32,0x35,0x36])||(_0x51e973=!0x1);}async function _0x10b4ca(_0x20481f,_0x273644,_0x5cbc00){const _0x39d4c0=window[_0x3ef43f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ef43f([0x66,0x72,0x6f,0x6d])](_0x2c4801(_0x5cbc00),_0x40fd23=>_0x40fd23[_0x3ef43f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c7d5d=new window[(_0x3ef43f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ef43f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20481f+_0x3ef43f([0x2e])+_0x273644),_0x4914a1=window[_0x3ef43f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ef43f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4914a1)return;const _0x44068f=await _0x4914a1[_0x3ef43f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ef43f([0x6a,0x77,0x6b]),_0x460117,{[_0x3ef43f([0x6e,0x61,0x6d,0x65])]:_0x3ef43f([0x45,0x43,0x44,0x53,0x41]),[_0x3ef43f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ef43f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ef43f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4914a1[_0x3ef43f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ef43f([0x6e,0x61,0x6d,0x65])]:_0x3ef43f([0x45,0x43,0x44,0x53,0x41]),[_0x3ef43f([0x68,0x61,0x73,0x68])]:{[_0x3ef43f([0x6e,0x61,0x6d,0x65])]:_0x3ef43f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44068f,_0x39d4c0,_0x2c7d5d)||(_0x51e973=!0x1);}}function _0x1c979d(_0x1a7a1e){return _0x1a7a1e[_0x3ef43f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ef43f([0x65,0x79]))?JSON[_0x3ef43f([0x70,0x61,0x72,0x73,0x65])](_0x2c4801(_0x1a7a1e)):null;}function _0x2c4801(_0x3ce072){return window[_0x3ef43f([0x61,0x74,0x6f,0x62])](_0x3ce072[_0x3ef43f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ef43f([0x2b]))[_0x3ef43f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ef43f([0x2f])));}function _0xa68c69(_0x514c87){let _0x5317af=0x1505;function _0x5f44cc(_0x905e6d){for(let _0x288924=0x0;_0x288924<_0x905e6d[_0x3ef43f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x288924++){const _0x554226=_0x905e6d[_0x3ef43f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x288924);_0x5317af=(_0x5317af<<0x5)+_0x5317af+_0x554226,_0x5317af&=_0x5317af;}}function _0x294885(_0x1050ce){Array[_0x3ef43f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1050ce)?_0x1050ce[_0x3ef43f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x294885):_0x1050ce&&typeof _0x1050ce==_0x3ef43f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ef43f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1050ce)[_0x3ef43f([0x73,0x6f,0x72,0x74])]()[_0x3ef43f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x94e447,_0x9fc193])=>{_0x5f44cc(_0x94e447),_0x294885(_0x9fc193);}):_0x5f44cc(window[_0x3ef43f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1050ce));}return _0x294885(_0x514c87),_0x5317af>>>0x0;}function _0x116183(_0x478cdf){return _0x478cdf[_0x3ef43f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ef43f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ef43f([0x30]));}function _0x222e1a(_0x4c49c3){return _0x4c49c3[_0x3ef43f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ef43f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ef43f([0x6a,0x6f,0x69,0x6e])]('');}function _0x336521(_0x2fda5f){return _0x1afa64[_0x3ef43f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ef43f([0x68,0x61,0x73])](_0x2fda5f);}function _0x2e23f1(_0x2d1348){return _0x1afa64[_0x3ef43f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ef43f([0x67,0x65,0x74])](_0x2d1348);}function _0xf84b9b(){}function _0x3ef43f(_0x16433c){return _0x16433c['map'](_0x50c61d=>String['fromCharCode'](_0x50c61d))['join']('');}_0x192c4c(await _0x45e8ce());}(this);}['createRevision'](_0x232994){const _0xf42de0=this['editor']['plugins']['get']('Users');return new h({'id':_0x232994['id'],'name':_0x232994['name'],'creator':_0x232994['creatorId']?_0xf42de0['getUser'](_0x232994['creatorId']):null,'diffData':_0x232994['diffData']||_0x232994['data'],'authors':_0x232994['authorsIds']['map'](_0x5611d5=>_0xf42de0['getUser'](_0x5611d5)),'createdAt':new Date(_0x232994['createdAt']),'attributes':_0x232994['attributes'],'fromVersion':_0x232994['fromVersion'],'toVersion':_0x232994['toVersion']});}['addRevision'](_0x3d0458,_0x3824b7=0x0){this['_revisions']['add'](_0x3d0458,_0x3824b7);}['getRevision'](_0x121ccf){return this['_revisions']['get'](_0x121ccf);}['getRevisions'](_0x2287ab={'toJSON':!0x1}){const _0xf06d22=Array['from'](this['_revisions']);return _0xf06d22['reverse'](),_0x2287ab['toJSON']?_0xf06d22['map'](_0xc68f28=>_0xc68f28['toJSON']()):_0xf06d22;}['getIndex'](_0x2b901c){return this['_revisions']['getIndex'](_0x2b901c);}['getEarlierVisibleRevision'](_0x420762){const [,_0x3e24ff]=this['getRevisionsIterator'](_0x420762,{'direction':'earlier'});return _0x3e24ff;}['getLaterVisibleRevision'](_0x44b26c){const [,_0x4990f9]=this['getRevisionsIterator'](_0x44b26c,{'direction':'later'});return _0x4990f9;}['getRevisionsInDiff'](_0x41362b){const _0x4dbbcc=[];for(const _0x4eb342 of this['getRevisionsIterator'](_0x41362b['newRevisionId']))if(_0x4dbbcc['push'](_0x4eb342),_0x4eb342['id']===_0x41362b['oldRevisionId'])break;return _0x4dbbcc;}*['getRevisionsIterator'](_0x49c5d8,{direction:_0x3d20c4='earlier',filter:_0x3e5fee=()=>!0x0}={}){const _0xc2cd68='earlier'===_0x3d20c4?0x1:-0x1;let _0x2c839b=this['_revisions']['get'](_0x49c5d8),_0x38c91b=this['getIndex'](_0x2c839b);for(yield _0x2c839b;_0x2c839b;){if(_0x38c91b+=_0xc2cd68,_0x2c839b=this['getRevision'](_0x38c91b),!_0x2c839b)return;_0x3e5fee(_0x2c839b)&&(yield _0x2c839b);}}}class V extends _0xfc6625{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3123fe,'c'],[_0x5216b5,'a'],[_0x5070b7,'e'],[_0x33a0a6,'r'],[_0x39a31a,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3123fe],['a',_0x5216b5],['e',_0x5070b7],['r',_0x33a0a6],['u',_0x39a31a]]);async['loadRevisionData'](_0x5df7b8,_0x503c0d){if(_0x5df7b8['diffData']||!_0x503c0d)return;const _0x4ce83c=this['editor']['config']['get']('collaboration.channelId'),_0x20b719=await _0x503c0d['getRevision']({'channelId':_0x4ce83c,'revisionId':_0x5df7b8['id']});_0x5df7b8['diffData']=_0x20b719['diffData'];}['getRevisionDocumentData'](_0x458e65){const _0x47da80={};for(const _0x195a02 in _0x458e65['diffData']){if(_0x458e65['diffData'][_0x195a02]['attachChange']&&!_0x458e65['diffData'][_0x195a02]['attachChange']['isAttached'])continue;const _0x18278b=this['_removeRevisionMarkers'](JSON['parse'](_0x458e65['diffData'][_0x195a02]['insertions'])),_0x4a3e3b=this['editor']['editing']['view']['document'],_0x4e0386=new _0x5c6d15(_0x4a3e3b,_0x18278b['map'](_0x1c618b=>this['_getViewFromDiffObj'](_0x1c618b,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x47da80[_0x195a02]=this['editor']['data']['processor']['toData'](_0x4e0386),this['editor']['data']['processor']['useFillerType']('default');}return _0x47da80;}['getRevisionRootsAttributes'](_0x56784e){const _0x51bec1={};for(const _0x16ed7b in _0x56784e['diffData'])_0x56784e['diffData'][_0x16ed7b]['attachChange']&&!_0x56784e['diffData'][_0x16ed7b]['attachChange']['isAttached']||(_0x51bec1[_0x16ed7b]=_0x56784e['diffData'][_0x16ed7b]['attributesAfter']||{});return _0x51bec1;}['_getTypeCharForViewElement'](_0x44c519){return this['_viewClassToTypeChar']['get'](_0x44c519['constructor']);}['_getViewFromDiffObj'](_0x364958,_0x156460){const _0x4e4514=this['editor']['editing']['view']['document'];if('string'==typeof _0x364958)return new _0x423f1a(_0x4e4514,_0x364958);{let _0x32ca78,_0x152b04;_0x152b04='u'==_0x364958['type']||'r'==_0x364958['type']?[]:_0x364958['children']['map'](_0x4a0a01=>this['_getViewFromDiffObj'](_0x4a0a01,_0x156460));const _0x3e8abe=this['_typeCharToViewClass']['get'](_0x364958['type'])||_0x364215,_0x22d992=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x32ca78=new _0x3e8abe(_0x4e4514,_0x364958['name'],_0x364958['attributes'],_0x152b04),'u'==_0x364958['type']&&_0x364958['children'][0x0]){const _0x1d36f8=_0x364958['children'][0x0];if(_0x32ca78['render']=function(_0x537029){const _0x3bb215=_0x537029['createElement']('div');return _0x3bb215['innerHTML']=_0x1d36f8,_0x3bb215['childNodes'][0x0];},_0x156460){const _0x270592=new _0x5c6d15(_0x4e4514);_0x270592['_appendChild'](_0x32ca78);const _0x50ba96=Array['from'](_0x22d992['viewChildrenToDom'](_0x270592,{'bind':!0x1})),_0x22d364=_0x22d992['domDocument']['createElement']('div');_0x22d364['append'](..._0x50ba96),_0x32ca78=Array['from'](_0x22d992['domChildrenToView'](_0x22d364))[0x0];}}else{if('r'==_0x364958['type']&&_0x364958['children'][0x0]){const _0x4d3530=_0x364958['children'][0x0];if(_0x32ca78['render']=function(_0x4196d2){_0x4196d2['innerHTML']=_0x4d3530;},_0x156460){const _0x3dfe50=new _0x5c6d15(_0x4e4514);_0x3dfe50['_appendChild'](_0x32ca78);const _0x3c77ae=Array['from'](_0x22d992['viewChildrenToDom'](_0x3dfe50,{'bind':!0x1})),_0x2c521c=_0x22d992['domDocument']['createElement']('div');_0x2c521c['append'](..._0x3c77ae);const _0x33ac1f=Array['from'](_0x22d992['domChildrenToView'](_0x2c521c));_0x33ac1f['length']>0x1?_0x32ca78['_appendChild'](_0x33ac1f):_0x32ca78=_0x33ac1f[0x0];}}}if(_0x364958['customProperties']){for(const [_0x142abf,_0x323f3a]of _0x364958['customProperties'])_0x32ca78['_setCustomProperty'](_0x142abf,_0x323f3a);}const _0x2d29e2=void 0x0===_0x364958['fillerOffset']?null:_0x364958['fillerOffset'];return null!==_0x2d29e2&&(_0x32ca78['getFillerOffset']=()=>_0x2d29e2),_0x32ca78;}}['_makeModelFromViewString'](_0x258654){const _0x34755a=JSON['parse'](_0x258654),_0x4b2c9e=this['editor']['editing']['view']['document'],_0x56135a=new _0x5c6d15(_0x4b2c9e,_0x34755a['map'](_0x4c9d7b=>this['_getViewFromDiffObj'](_0x4c9d7b,!0x0)));return this['editor']['data']['toModel'](_0x56135a);}['_removeRevisionMarkers'](_0x58ad3d){return(_0x58ad3d=_0x58ad3d['filter'](_0x28984a=>!_0x28984a['name']||'revision-start'!==_0x28984a['name']&&'revision-end'!==_0x28984a['name']))['forEach'](_0x4d6f01=>{'string'!=typeof _0x4d6f01&&(_0x4d6f01['children']=this['_removeRevisionMarkers'](_0x4d6f01['children']),_0x4d6f01['attributes']=_0x4d6f01['attributes']['filter'](_0x1ffaaa=>!_0x1ffaaa[0x0]['startsWith']('data-revision-')));}),_0x58ad3d;}}function g(_0x58f765,_0x1abf65,_0x15efad){const t=_0x58f765['t'];switch(_0x1abf65){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'},_0x15efad);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x15efad);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 u extends _0xfc6625{['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[_0x29c155,I,V,_0x183dab];}constructor(_0x47c7f8){super(_0x47c7f8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x466a81=_0x4f6663();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x466a81},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 _0x9f6649=this['repository']['getRevision'](0x0),_0xc488f9=_0x9f6649&&null===_0x9f6649['creator']?_0x9f6649:null;if(this['_continueCurrentRevision']=!!_0xc488f9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5f13e4=this['_source']['getCurrentRevisionId'](),_0x59e0ce=this['repository']['getRevision'](_0x5f13e4);if(_0x59e0ce)this['_startingVersion']=_0x59e0ce['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2b9654=this['_source']['history']['_operations']['find'](_0x55fed4=>!_0x55fed4['_isInit']),_0x2c8f14=_0x2b9654?_0x2b9654['baseVersion']:this['_source']['history']['version'];_0x9f6649?(_0x9f6649['toVersion']<_0x2c8f14&&_0x9f6649['_update']({'toVersion':_0x2c8f14}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xc488f9['id'],this['_startingVersion']=_0xc488f9['fromVersion']):(this['_startingVersion']=_0x9f6649['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2c8f14,this['_continueCurrentRevision']=!0x1);}}else _0xc488f9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xc488f9['toVersion'],this['editor']['model']['document']['history']['version']),_0xc488f9['fromVersion']===_0xc488f9['toVersion']?(0x0!==_0xc488f9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xc488f9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xc488f9['id'],this['_startingVersion']=_0xc488f9['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',_0x5bf429=>!_0x5bf429),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x300d9b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30716c;for(const _0x480d0c in _0x300d9b){const _0x411b40=_0x480d0c,_0x48f8ba=_0x300d9b[_0x411b40];if('revisionHistoryLicenseKeyValid'==_0x48f8ba||'revisionHistoryLicenseKeyInvalid'==_0x48f8ba||'revisionHistoryLicenseKeyExpired'==_0x48f8ba||'revisionHistoryLicenseKeyDomainLimit'==_0x48f8ba||'revisionHistoryLicenseKeyNotAllowed'==_0x48f8ba||'revisionHistoryLicenseKeyEvaluationLimit'==_0x48f8ba||'revisionHistoryLicenseKeyTrialLimit'==_0x48f8ba||'revisionHistoryLicenseKeyUsageLimit'==_0x48f8ba){delete _0x300d9b[_0x411b40],_0x30716c=_0x48f8ba,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x30716c&&_0x300d9b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x30716c&&_0x300d9b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x30716c&&_0x300d9b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x30716c&&_0x300d9b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x30716c&&_0x300d9b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x30716c&&_0x300d9b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x30716c&&_0x300d9b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4b69a5=this['repository']['getRevision'](0x0),_0x5310f8=await this['getRevisionDocumentData'](_0x4b69a5),_0x484546=await this['getRevisionRootsAttributes'](_0x4b69a5);this['_replaceEditorDataWithRevisionData'](_0x5310f8,_0x484546);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xf5edc0){this['_source']=_0xf5edc0;}async['update'](){const _0x2ef112=await this['_source']['getLatestVersion']();if(_0x2ef112>this['currentRevision']['toVersion']){await this['_loadState']();const _0x59898b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2ef112});_0x59898b['authors']=_0x59898b['authorsIds']['map'](_0x55e23c=>this['editor']['plugins']['get']('Users')['getUser'](_0x55e23c)),this['currentRevision']['_update'](_0x59898b);}}async['saveRevision'](_0x718593={},_0x395a49=null){const _0x26acf0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x395a49>this['currentRevision']['toVersion']&&(_0x395a49=null),null===_0x395a49&&(_0x395a49=await this['_source']['getLatestVersion']());const _0x66ef41=this['_getFromVersion'](_0x395a49),_0x13b104=this['buildRevisionData']({'from':_0x66ef41,'to':_0x395a49});if(this['currentRevision']['toVersion']<_0x395a49){const _0x199ba2=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x395a49,'to':_0x395a49});_0x199ba2['authors']=[],_0x199ba2['authorsIds']=[],_0x199ba2['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x199ba2,!0x0),delete _0x199ba2['authors'],_0x26acf0['push'](_0x199ba2);}_0x718593['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x718593['name']=_0x718593['name']||null,_0x718593['id']=_0x718593['id']||_0x4f6663(),_0x718593={..._0x718593,..._0x13b104};const _0x2c29c8=this['addRevisionData'](_0x718593);_0x26acf0['push'](_0x718593);const _0x140664=this['repository']['getIndex'](_0x2c29c8);if(0x0!==_0x140664){const _0x5a4031=this['repository']['getRevision'](_0x140664-0x1);if(_0x5a4031['fromVersion']!==_0x395a49){const _0x320039=this['_revisionDataBuilder']['getData'](_0x395a49,_0x5a4031['toVersion']),_0x46818a={'id':_0x5a4031['id'],'diffData':_0x320039['diffData'],'authorsIds':_0x320039['authorsIds'],'authors':_0x320039['authorsIds']['map'](_0x484ae7=>this['editor']['plugins']['get']('Users')['getUser'](_0x484ae7)),'fromVersion':_0x395a49};_0x5a4031===this['currentRevision']&&(_0x46818a['createdAt']=new Date(_0x718593['createdAt']['getTime']()+0xa)),_0x5a4031['_update'](_0x46818a,!0x0),delete _0x46818a['authors'],_0x26acf0['push'](_0x46818a);}}if(this['adapter']){for(const _0x3768a3 of _0x26acf0)this['_bufferUpdate'](_0x3768a3['id'],_0x3768a3,!0x0);this['sendBufferedUpdates']();}return _0x2c29c8;}['addRevisionData'](_0xc1c022){const _0x38d95d=this['repository']['createRevision'](_0xc1c022);return this['adapter']&&_0x38d95d['on']('_update',(_0x599711,_0x550156,_0x337da5)=>{_0x337da5||(this['_bufferUpdate'](_0x550156['id'],_0x550156,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x38d95d,this['_findInsertionIndex'](_0x38d95d)),_0x38d95d;}async['getRevisionDocumentData'](_0x2d3816){return await this['_utils']['loadRevisionData'](_0x2d3816,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2d3816);}async['getRevisionRootsAttributes'](_0x9f5eeb){return await this['_utils']['loadRevisionData'](_0x9f5eeb,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x9f5eeb);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1bb41f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x52311b=0x0;_0x52311b<_0x1bb41f['length'];_0x52311b++){const _0x2eff67=_0x1bb41f[_0x52311b];let _0x169368=!0x1;for(const _0x4a9bf3 of Object['keys'](_0x2eff67))void 0x0===_0x2eff67[_0x4a9bf3]?delete _0x2eff67[_0x4a9bf3]:'id'!==_0x4a9bf3&&(_0x169368=!0x0);_0x169368||(_0x1bb41f[_0x52311b]=null);}if(_0x1bb41f=_0x1bb41f['filter'](_0x3a8d89=>null!==_0x3a8d89),!_0x1bb41f['length'])return;for(let _0x3d6c96=0x0;_0x3d6c96<_0x1bb41f['length'];_0x3d6c96++){const _0x51b953=_0x1bb41f[_0x3d6c96];void 0x0!==_0x51b953['fromVersion']&&void 0x0===_0x51b953['toVersion']&&(_0x51b953['toVersion']=this['repository']['getRevision'](_0x51b953['id'])['toVersion']),void 0x0!==_0x51b953['toVersion']&&void 0x0===_0x51b953['fromVersion']&&(_0x51b953['fromVersion']=this['repository']['getRevision'](_0x51b953['id'])['fromVersion']);}const _0x594765=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1bb41f,_0x594765)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2f4043=>{if(_0x2f4043){for(const _0x1c2354 of _0x2f4043)this['setRevisionData']({'id':_0x1c2354['id'],'createdAt':_0x1c2354['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1f82b5=null,from:_0xb78db=null,to:_0x54ade8=null}){_0xb78db=null!==_0xb78db?_0xb78db:_0x1f82b5['fromVersion'],_0x54ade8=null!==_0x54ade8?_0x54ade8:_0x1f82b5['toVersion'];const _0x38896b=this['_revisionDataBuilder']['getData'](_0xb78db,_0x54ade8),_0x9b1ca2={'diffData':_0x38896b['diffData'],'authorsIds':_0x38896b['authorsIds'],'fromVersion':_0xb78db,'toVersion':_0x54ade8};if(!_0x1f82b5||_0x54ade8!==_0x1f82b5['toVersion']){const _0x267d13=_0x54ade8-0x1,_0x346f81=this['_source']['history']['getOperation'](_0x267d13);_0x9b1ca2['createdAt']=_0x346f81&&_0x346f81['createdAt']||new Date();}if(this['_loadedStateData']&&_0xb78db===this['_loadedStateData']['fromVersion']){for(const _0x2d8f5f of this['_loadedStateData']['authors'])_0x9b1ca2['authorsIds']['includes'](_0x2d8f5f['id'])||_0x9b1ca2['authorsIds']['push'](_0x2d8f5f['id']);}return _0x9b1ca2;}['_bufferUpdate'](_0x3ce6cb,_0x2c4c2f,_0x551eb0){if(this['_bufferedUpdates']['has'](_0x3ce6cb)){const _0x5a5742=this['_bufferedUpdates']['get'](_0x3ce6cb);_0x2c4c2f=_0x551eb0?{..._0x5a5742,..._0x2c4c2f}:{..._0x2c4c2f,..._0x5a5742};}this['_bufferedUpdates']['set'](_0x3ce6cb,_0x2c4c2f);}['setRevisionData'](_0x1b22a6){const _0x2667b4=this['repository']['getRevision'](_0x1b22a6['id']);if(_0x1b22a6['createdAt']&&(_0x1b22a6['createdAt']=new Date(_0x1b22a6['createdAt'])),_0x1b22a6['authorsIds']){const _0x1d6d49=this['editor']['plugins']['get']('Users');_0x1b22a6['authors']=_0x1b22a6['authorsIds']['map'](_0x356355=>_0x1d6d49['getUser'](_0x356355));}_0x2667b4['_update'](_0x1b22a6,!0x0);}['_createInitialRevision'](_0x4b51c8){const _0x563dcd=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x563dcd)this['_initialRevisionId']=_0x563dcd['id'];else{const _0xeacf70=!this['editor']['model']['document']['roots']['find'](_0x541b6b=>this['editor']['model']['hasContent'](_0x541b6b)),_0xfb27b7=this['editor']['plugins']['get']('Users')['me']['id'],_0x509986=g(this['editor']['locale'],_0xeacf70?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4b51c8,'to':_0x4b51c8,'id':this['_initialRevisionId'],'name':_0x509986,'creatorId':_0xfb27b7});}}['_createCurrentRevision'](_0x402dae){const _0x2345b8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2345b8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x402dae,'to':_0x402dae,'id':_0x2345b8,'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'](_0x4b14d3,_0x4918ca){let _0x3e89f4=this['editor']['config']['get']('initialData'),_0x49e91f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3e89f4){_0x3e89f4={};for(const _0x28f1bd of this['editor']['model']['document']['getRootNames']())_0x3e89f4[_0x28f1bd]='';}if('string'==typeof _0x3e89f4&&(_0x3e89f4={'main':_0x3e89f4}),void 0x0===_0x49e91f){_0x49e91f={};for(const _0x4111dc of this['editor']['model']['document']['getRootNames']())_0x49e91f[_0x4111dc]={};}let _0x32a080=!0x1;const _0x575230=Object['keys'](_0x3e89f4),_0xb7160=Object['keys'](_0x4b14d3);for(const _0x30e744 of _0x575230){if(_0x3e89f4[_0x30e744]!==_0x4b14d3[_0x30e744]&&''!==_0x3e89f4[_0x30e744]['trim']()){_0x32a080=!0x0;break;}if(!_0x3a2ed8(_0x49e91f[_0x30e744],_0x4918ca[_0x30e744])&&Object['keys'](_0x49e91f[_0x30e744])['length']>0x0){_0x32a080=!0x0;break;}}_0x32a080||(_0x32a080=_0xb7160['some'](_0x4390bd=>!this['editor']['model']['document']['getRoot'](_0x4390bd))),_0x32a080&&_0x4edde2('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3e89f4,'editorRootsAttributes':_0x49e91f,'revisionData':_0x4b14d3,'revisionRootsAttributes':_0x4918ca}),this['editor']['config']['set']('initialData',_0x4b14d3),this['editor']['config']['set']('rootsAttributes',_0x4918ca);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4658b9=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4658b9['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1255b7){const _0x338e04=this['repository']['getRevisions']();_0x338e04['reverse']();let _0x22334d=0x0;for(;_0x22334d<_0x338e04['length'];){const _0x1ee393=_0x338e04[_0x22334d];if(_0x1ee393===this['currentRevision']){_0x22334d++;continue;}if(_0x1ee393['id']===this['_initialRevisionId'])break;const _0x3f46e7=_0x1255b7['toVersion']-_0x1ee393['toVersion']||_0x1255b7['fromVersion']-_0x1ee393['fromVersion'];if(_0x3f46e7>0x0)break;if(_0x3f46e7<0x0)_0x22334d++;else{if(!_0x1255b7['creator']&&_0x1ee393['creator'])break;if(_0x1ee393['creator']||!_0x1255b7['creator']){if(_0x1255b7['createdAt']>_0x1ee393['createdAt'])break;_0x22334d++;}else _0x22334d++;}}return _0x22334d;}['_getFromVersion'](_0x1d8989){const _0x4c0e6c=this['repository']['getRevisions']();_0x4c0e6c['reverse'](),_0x4c0e6c['shift']();const _0xce0076=_0x4c0e6c['find'](_0x39ba2b=>_0x39ba2b['toVersion']<=_0x1d8989)['toVersion'];return _0xce0076<this['_startingVersion']?this['_startingVersion']:_0xce0076;}['_makeRevision']({name:_0x40ff83,from:_0x4c861a,to:_0x353f68,creatorId:_0x86ecea,id:_0x3d46d3}){const _0x121b52=this['buildRevisionData']({'from':_0x4c861a,'to':_0x353f68});_0x121b52['name']=_0x40ff83,_0x121b52['creatorId']=_0x86ecea,_0x121b52['id']=_0x3d46d3;const _0x51b208=this['addRevisionData'](_0x121b52);return this['adapter']&&this['_bufferUpdate'](_0x121b52['id'],_0x121b52,!0x0),_0x51b208;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4508fc){this['editor']=_0x4508fc,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'](_0x488a84){this['source']=_0x488a84;const _0x4376eb=new Map(),_0xb6edf6=new Map(),_0x49f79e=this['editor']['model']['document']['roots']['map'](_0x1a2e3d=>_0x1a2e3d['rootName']);for(const _0x2dd6f3 of _0x49f79e){const _0x4eb5db=this['editor']['model']['document']['getRoot'](_0x2dd6f3),_0x2eac5c=N(_0x4eb5db);_0x4376eb['set'](_0x2dd6f3,_0x2eac5c),_0xb6edf6['set'](_0x2dd6f3,Object['fromEntries'](_0x4eb5db['getAttributes']()));}const _0x24a92c=Array['from'](this['editor']['model']['markers'])['map'](_0x3a1329=>[_0x3a1329['name'],_0x3a1329['getRange']()]),_0xcda7ad=this['source']['version'];this['_saveMetaData'](_0xcda7ad,_0x4376eb,_0x24a92c,_0xb6edf6),this['_startingRevisionId']=this['_revisionId'];const _0x204465=new Map(),_0x5bc751=new Map();for(const _0x52edd8 of _0x49f79e){const _0x26960a=P(_0x52edd8);_0x204465['set'](_0x52edd8,_0x26960a),_0x5bc751['set'](_0x52edd8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x204465,[],_0x5bc751);}['getData'](_0x10a2de,_0x131ccb){if(this['_lastFrom']===_0x10a2de&&this['_lastTo']<=_0x131ccb)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x131ccb,!0x0);else{if(!this['_savedMetaData']['has'](_0x10a2de)){const _0x3215ba=this['_getPreviousFrom'](_0x10a2de);this['_calculateMetaData'](_0x3215ba,_0x10a2de,!0x1);}this['_calculateMetaData'](_0x10a2de,_0x131ccb,!0x0);}return this['_lastFrom']=_0x10a2de,this['_lastTo']=_0x131ccb,this['_getState']();}['loadState'](_0x5d7775){const _0x5d2526=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5d7775['fromVersion'],this['_lastTo']=_0x5d7775['toVersion'];for(const _0x24812b in _0x5d7775['diffData']){const _0x441b84=_0x5d7775['diffData'][_0x24812b]['attachChange'],_0x231346=_0x2a2398(_0x5d7775['diffData'][_0x24812b]['attributesBefore'])||{},_0x24a90c=_0x5d2526['_makeModelFromViewString'](_0x5d7775['diffData'][_0x24812b]['deletions']);_0x24a90c['rootName']=_0x24812b,_0x24a90c['_isAttached']=!_0x441b84||!_0x441b84['isAttached'],_0x24a90c['isAttached']=()=>_0x24a90c['_isAttached'],this['_baseRoots']['set'](_0x24812b,_0x24a90c),this['_baseRootsAttributes']['set'](_0x24812b,_0x231346),_0x441b84&&this['_touchedRoots']['set'](_0x24812b,_0x441b84);const _0x1d557b=this['_makeIdsRoot'](_0x24a90c);this['_baseIdsRoots']['set'](_0x24812b,_0x1d557b);for(const [_0x5331c4,_0x5b9193]of _0x24a90c['markers']){if(!_0x5331c4['startsWith']('revision:'))continue;const _0x83f445=_0x5331c4['split'](':')[0x2];for(const _0x383b25 of _0x5b9193['getWalker']({'singleCharacters':!0x0})){const _0xd7bbc3=this['_getVidAttributeName'](_0x383b25),_0xc25661='elementEnd'==_0x383b25['type']?_0x383b25['previousPosition']['path']['slice'](0x0,-0x1):_0x383b25['previousPosition']['path'],_0x44a54e=_0x1d557b['getNodeByPath'](_0xc25661)['getAttribute'](_0xd7bbc3);this['_touched']['set'](_0x44a54e,{'userId':_0x83f445});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2b6b09=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4e1202=>!this['_touched']['has'](_0x4e1202));let _0x26c5d2=0x0;const _0x100fb5=new Map();for(const _0x1a77f5 in _0x5d7775['diffData']){const _0x73e7f=_0x5d7775['diffData'][_0x1a77f5]['attachChange'],_0x7ce80b=_0x2a2398(_0x5d7775['diffData'][_0x1a77f5]['attributesAfter'])||{},_0x2cf313=_0x5d2526['_makeModelFromViewString'](_0x5d7775['diffData'][_0x1a77f5]['insertions']);_0x2cf313['rootName']=_0x1a77f5,_0x2cf313['_isAttached']=!_0x73e7f||_0x73e7f['isAttached'],_0x2cf313['isAttached']=()=>_0x2cf313['_isAttached'],this['_diffRoots']['set'](_0x1a77f5,_0x2cf313),this['_diffRootsAttributes']['set'](_0x1a77f5,_0x7ce80b);const _0x327714=this['_makeIdsRoot'](_0x2cf313,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1a77f5,_0x327714),_0x100fb5['set'](_0x1a77f5,_0x2cf313['isAttached']()?_0x7ce80b:{});for(const [_0x3001fc,_0x4be2c0]of _0x2cf313['markers']){if(!_0x3001fc['startsWith']('revision:'))continue;const _0x128480=_0x3001fc['split'](':')[0x2];for(const _0x5090ca of _0x4be2c0['getWalker']({'singleCharacters':!0x0})){const _0x3d7a1c=this['_getVidAttributeName'](_0x5090ca),_0x4f00d0=this['_revisionId']++,_0x32c7e5='elementEnd'==_0x5090ca['type']?_0x5090ca['previousPosition']['path']['slice'](0x0,-0x1):_0x5090ca['previousPosition']['path'];_0x327714['getNodeByPath'](_0x32c7e5)['_setAttribute'](_0x3d7a1c,_0x4f00d0),this['_touched']['set'](_0x4f00d0,{'userId':_0x128480});}}for(const _0x1d95a4 of this['editor']['model']['createRangeIn'](_0x2cf313)['getWalker']({'singleCharacters':!0x0})){const _0x50d7e2=this['_getVidAttributeName'](_0x1d95a4),_0x189367='elementEnd'==_0x1d95a4['type']?_0x1d95a4['previousPosition']['path']['slice'](0x0,-0x1):_0x1d95a4['previousPosition']['path'],_0xc4a101=_0x327714['getNodeByPath'](_0x189367);_0xc4a101['getAttribute'](_0x50d7e2)>0x0||_0xc4a101['_setAttribute'](_0x50d7e2,_0x2b6b09[_0x26c5d2++]);}for(const [_0x212805,_0x585eff]of _0x2cf313['markers'])_0x212805['startsWith']('revision:')||this['_markers']['set'](_0x212805,_0x585eff);}const _0x11d192=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x11d192),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x11d192,0x1));const _0x282d04=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x282d04),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x282d04,0x1));const _0x430bb2=Array['from'](this['_diffRoots'])['map'](([_0x5c7afc,_0x2e8562])=>[_0x5c7afc,N(_0x2e8562)]);this['_saveMetaData'](this['_lastTo'],_0x430bb2,this['_markers'],_0x100fb5);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x49ab21,_0x3cb5b7,_0x1755f2,_0x55b09a){const _0x70be85=new Map(_0x3cb5b7),_0x3fb63a=new Map(_0x2a2398(_0x55b09a)),_0x4a8dda=new Map();for(const [_0x2d2174,_0x58d760]of _0x1755f2)_0x4a8dda['set'](_0x2d2174,{'start':_0x58d760['start']['clone'](),'end':_0x58d760['end']['clone'](),'rootName':_0x58d760['root']['rootName']});this['_savedMetaData']['set'](_0x49ab21,{'roots':_0x70be85,'markers':_0x4a8dda,'rootsAttributes':_0x3fb63a});}['_removeMetaData'](_0x5f2a03){this['_savedMetaData']['delete'](_0x5f2a03);}['_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'](_0x31af2f,_0x16c9f5=null){let _0x21044f=null;_0x31af2f['is']('documentFragment')||(_0x21044f=new ut(_0x31af2f['name'],{'vid_start':null===_0x16c9f5?this['_revisionId']++:_0x16c9f5++}));const _0x3bca3e=[];for(const _0x104a70 of _0x31af2f['getChildren']())if(_0x104a70['is']('element')){_0x3bca3e['push'](this['_makeIdsRoot'](_0x104a70,_0x16c9f5));const _0x5d46eb=_0x3bca3e[_0x3bca3e['length']-0x1];null!==_0x16c9f5&&(_0x16c9f5=_0x5d46eb['is']('element','$text')?_0x5d46eb['getAttribute']('vid')+0x1:_0x5d46eb['getAttribute']('vid_end')+0x1);}else{for(let _0x13c9d5=0x0;_0x13c9d5<_0x104a70['offsetSize'];_0x13c9d5++)_0x3bca3e['push'](new ut('$text',{'vid':null===_0x16c9f5?this['_revisionId']++:_0x16c9f5++}));}if(_0x31af2f['is']('documentFragment')){const _0x39ad66=P(_0x31af2f['rootName']);return _0x39ad66['_insertChild'](0x0,_0x3bca3e),_0x39ad66;}return _0x21044f['_setAttribute']('vid_end',null===_0x16c9f5?this['_revisionId']++:_0x16c9f5++),_0x21044f['_insertChild'](0x0,_0x3bca3e),_0x21044f;}['_calculateMetaData'](_0x3bfe5d,_0x148cbb,_0x13f5f1){this['_reset']();const {roots:_0x4eaaf7,markers:_0x515707,rootsAttributes:_0x51f0d3}=this['_savedMetaData']['get'](_0x3bfe5d);this['_baseRoots']=new Map(_0x4eaaf7),this['_baseRootsAttributes']=new Map(_0x2a2398(_0x51f0d3));for(const [_0x264838,_0x58ae5d]of this['_baseRoots'])if('$graveyard'!==_0x264838&&(this['_diffRoots']['set'](_0x264838,N(_0x58ae5d)),this['_diffRootsAttributes']=new Map(_0x2a2398(_0x51f0d3)),_0x13f5f1)){const _0x233df4=this['_revisionId'];this['_idsRoots']['set'](_0x264838,this['_makeIdsRoot'](_0x58ae5d)),this['_baseIdsRoots']['set'](_0x264838,this['_makeIdsRoot'](_0x58ae5d,_0x233df4));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x13f5f1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xb7801c,_0x267f28]of _0x515707){const _0x150f6d=this['_baseRoots']['get'](_0x267f28['rootName']),_0x1c8367=this['_diffRoots']['get'](_0x267f28['rootName']),_0x30904e=new ft(this['_fixPosition'](_0x267f28['start'],_0x150f6d),this['_fixPosition'](_0x267f28['end'],_0x150f6d)),_0x543ad3=this['_fixRange'](_0x30904e,_0x1c8367);_0x150f6d['markers']['set'](_0xb7801c,_0x30904e),this['_markers']['set'](_0xb7801c,_0x543ad3);}this['_applyOperations'](_0x3bfe5d,_0x148cbb,_0x13f5f1);}['_applyOperations'](_0x3e950e,_0x540b61,_0x48769f){for(const _0x9b5ef4 of this['source']['getOperations'](_0x3e950e,_0x540b61))this['_handleOperation'](_0x9b5ef4,_0x48769f);for(const _0x2c051c of this['_diffRoots']['values']())_0x2c051c['markers']['clear']();for(const [_0x761a6d,_0xbbbd34]of this['_markers']){this['_diffRoots']['get'](_0xbbbd34['root']['rootName'])['markers']['set'](_0x761a6d,_0xbbbd34['clone']());}const _0x21e75e=new Map(),_0x5d8876=new Map();for(const [_0x13845f,_0x4d54d1]of this['_diffRoots'])_0x21e75e['set'](_0x13845f,N(_0x4d54d1)),_0x5d8876['set'](_0x13845f,this['_diffRootsAttributes']['get'](_0x13845f));this['_saveMetaData'](_0x540b61,_0x21e75e,this['_markers'],_0x5d8876);}['_getPreviousFrom'](_0x2de97b){const _0x5e717a=Array['from'](this['_savedMetaData']['keys']());_0x5e717a['sort']((_0x579007,_0xe3f853)=>_0x579007-_0xe3f853),_0x5e717a['reverse']();for(const _0x41e30f of _0x5e717a)if(_0x41e30f<_0x2de97b)return _0x41e30f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x34e159,_0x94fba1){const _0x23a0ee=Array['from'](_0x94fba1['markers'])['map'](([_0x561548,_0x46ef8c])=>[_0x561548,this['_fixRange'](_0x46ef8c,_0x34e159)]);_0x34e159['markers']=new Map(_0x23a0ee);}['_transformMarkers'](_0x31b495){for(const _0x61c926 of this['_markers']['values']()){const _0x1ac926=_0x61c926['getTransformedByOperation'](_0x31b495),_0x2a0d7a=ft['_createFromRanges'](_0x1ac926);_0x61c926['start']=_0x2a0d7a['start'],_0x61c926['end']=_0x2a0d7a['end'];}}['_handleOperation'](_0x4554cf,_0x512a25){if('addRoot'!=_0x4554cf['type']&&'detachRoot'!=_0x4554cf['type']){if('insert'==_0x4554cf['type']){const _0x3f63b8=_0x4554cf['position']['root']['rootName'];this['_diffRoots']['has'](_0x3f63b8)||(this['_diffRoots']['set'](_0x3f63b8,P(_0x3f63b8,!0x0)),this['_diffRootsAttributes']['set'](_0x3f63b8,{}),_0x512a25&&this['_idsRoots']['set'](_0x3f63b8,P(_0x3f63b8,!0x0)));}else{if('addRootAttribute'==_0x4554cf['type']||'removeRootAttribute'==_0x4554cf['type']||'changeRootAttribute'==_0x4554cf['type'])return void this['_handleRootAttributeOperation'](_0x4554cf);'marker'==_0x4554cf['type']&&this['_handleMarkerOperation'](_0x4554cf);}if('marker'!==_0x4554cf['type']){const _0x32cbdf=this['_cloneOperation'](_0x4554cf,this['_diffRoots']);_0x32cbdf['_execute'](),this['_transformMarkers'](_0x32cbdf);}if(_0x512a25)switch(_0x4554cf['type']){case'insert':this['_handleInsertOperation'](_0x4554cf);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4554cf);break;case'merge':this['_handleMergeOperation'](_0x4554cf);break;case'split':this['_handleSplitOperation'](_0x4554cf);}}else this['_handleRootOperation'](_0x4554cf,_0x512a25);}['_cloneOperation'](_0x2a0051,_0x576339){const _0x451162=_0x2a0051['clone']();return _0x451162['_authorId']=_0x2a0051['_authorId'],this['_fixOperation'](_0x451162,_0x576339),_0x451162;}['_getBaseVids'](_0x56b17d){return _0x56b17d['map'](_0x434821=>{const _0x2b42fc=this['_getVidAttributeName'](_0x434821);return Number(_0x434821['item']['getAttribute'](_0x2b42fc));});}['_generateTape'](_0x4e921e,_0x3ecced){if(_0x4e921e['is']('element','$text'))_0x3ecced['push']({'item':_0x4e921e,'type':'text'});else{_0x4e921e['is']('element')&&_0x3ecced['push']({'item':_0x4e921e,'type':'elementStart'});for(const _0xdffccd of _0x4e921e['getChildren']())this['_generateTape'](_0xdffccd,_0x3ecced);_0x4e921e['is']('element')&&_0x3ecced['push']({'item':_0x4e921e,'type':'elementEnd'});}return _0x3ecced;}['_getState'](){const _0x526ffb=new Map(this['_touched']),_0x584a63=new Map(_0x526ffb),_0xeed826=new Map(),_0x17a14c={'insertions':{},'deletions':{}},_0x5880e2={'insertions':{},'deletions':{}},_0x2f3e36=new Map(),_0x1ce3fa=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1ce3fa['delete']('$graveyard');for(const _0x205a0d of _0x1ce3fa){const _0x23c985=this['_diffRoots']['get'](_0x205a0d)||P(_0x205a0d,!0x1),_0x38fec2=this['_baseRoots']['get'](_0x205a0d)||P(_0x205a0d,!0x1);_0x23c985['isAttached']()||_0x38fec2['isAttached']()?(_0x17a14c['insertions'][_0x205a0d]=N(_0x23c985),_0x17a14c['deletions'][_0x205a0d]=N(_0x38fec2),this['_copyMarkers'](_0x17a14c['deletions'][_0x205a0d],_0x38fec2),this['_copyMarkers'](_0x17a14c['insertions'][_0x205a0d],_0x23c985),_0x5880e2['insertions'][_0x205a0d]=this['_generateTape'](this['_idsRoots']['get'](_0x205a0d),[]),_0x5880e2['deletions'][_0x205a0d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x205a0d)||P(_0x205a0d,!0x1),[])):_0x1ce3fa['delete'](_0x205a0d);}for(const _0x15ac8e of _0x1ce3fa){const _0x590fb8=_0x5880e2['insertions'][_0x15ac8e];for(const _0x29422a of _0x590fb8){const _0xcdeb8d=this['_getVidAttributeName'](_0x29422a),_0x27a52f=_0x29422a['item']['getAttribute'](_0xcdeb8d);_0x584a63['delete'](_0x27a52f),_0x27a52f>=this['_startingRevisionId']&&_0xeed826['set'](_0x27a52f,_0x526ffb['get'](_0x27a52f));}}for(const _0x1a8ed7 of _0x1ce3fa){const _0xb04e6d=_0x5880e2['insertions'][_0x1a8ed7],_0x1c4bfe=this['_getBaseVids'](_0x5880e2['deletions'][_0x1a8ed7]);let _0x16fabe=0x0;for(const _0x59beb8 of _0xb04e6d){const _0x5490e2=this['_getVidAttributeName'](_0x59beb8),_0x2208e3=_0x59beb8['item']['getAttribute'](_0x5490e2);if(!_0xeed826['has'](_0x2208e3)&&!_0x2f3e36['has'](_0x2208e3)){if(_0x584a63['has'](_0x2208e3))_0x16fabe++;else{if(_0x2208e3!=_0x1c4bfe[_0x16fabe]){const _0x2bab75=_0x526ffb['get'](_0x2208e3)||_0x526ffb['get'](_0x1c4bfe[_0x16fabe]);for(;_0x2208e3!=_0x1c4bfe[_0x16fabe];)_0x584a63['has'](_0x1c4bfe[_0x16fabe])||(_0x2f3e36['set'](_0x1c4bfe[_0x16fabe],_0x2bab75),_0x526ffb['set'](_0x1c4bfe[_0x16fabe],_0x2bab75)),_0x16fabe++;}_0x16fabe++;}}}}for(const _0x2bff3f of _0x1ce3fa){const _0x5ccccb=_0x5880e2['insertions'][_0x2bff3f];for(const _0x4870b0 of _0x5ccccb){const _0x73ab3b=this['_getVidAttributeName'](_0x4870b0),_0x20cbd0=_0x4870b0['item']['getAttribute'](_0x73ab3b);if(_0x2f3e36['has'](_0x20cbd0)){const _0x344974=_0x2f3e36['get'](_0x20cbd0);_0x584a63['has'](_0x20cbd0)||_0x584a63['set'](_0x20cbd0,{..._0x344974}),_0xeed826['set'](_0x20cbd0,{..._0x344974});}}}for(const _0xed2994 of _0x584a63['keys']())_0xed2994>=this['_startingRevisionId']&&_0x584a63['delete'](_0xed2994);const _0x1fb981=new Map();for(const _0x83e779 of _0x1ce3fa){let _0x43f257=_0x5880e2['insertions'][_0x83e779];for(const _0x3a05d8 of _0x43f257)if(_0x3a05d8['item']['is']('element','tableCell')){const _0x490139=this['_getVidAttributeName'](_0x3a05d8),_0x58a6d8=_0x3a05d8['item']['getAttribute'](_0x490139);if(_0xeed826['has'](_0x58a6d8)){const _0x4a02d3=_0x3a05d8['item']['parent']['parent']['getAttribute']('vid_start'),_0x2c4dfa=_0x1fb981['get'](_0x4a02d3)||new Set();_0x2c4dfa['add'](_0xeed826['get'](_0x58a6d8)['userId']),_0x1fb981['set'](_0x4a02d3,_0x2c4dfa);}}_0x43f257=_0x5880e2['deletions'][_0x83e779];for(const _0x3f77c6 of _0x43f257)if(_0x3f77c6['item']['is']('element','tableCell')){const _0x4d1586=this['_getVidAttributeName'](_0x3f77c6),_0x24ec08=_0x3f77c6['item']['getAttribute'](_0x4d1586);if(_0x584a63['has'](_0x24ec08)){const _0x2b833c=_0x3f77c6['item']['parent']['parent']['getAttribute']('vid_start'),_0x20abd0=_0x1fb981['get'](_0x2b833c)||new Set();_0x20abd0['add'](_0x584a63['get'](_0x24ec08)['userId']),_0x1fb981['set'](_0x2b833c,_0x20abd0);}}for(const _0x26ad1a of _0x1fb981['keys']())(_0xeed826['has'](_0x26ad1a)||_0x584a63['has'](_0x26ad1a))&&_0x1fb981['delete'](_0x26ad1a);}for(const _0x331e5c of _0x1ce3fa){const _0x3ed36f=_0x5880e2['insertions'][_0x331e5c];let _0x5bfcd1=null,_0x25fe4f=null;for(const _0x19c57f of _0x3ed36f){const _0x901cc8=this['_getVidAttributeName'](_0x19c57f),_0x17e622=_0x19c57f['item']['getAttribute'](_0x901cc8),_0x222810=_0x1fb981['get'](_0x17e622);_0x222810&&'elementStart'==_0x19c57f['type']&&(_0x5bfcd1=Array['from'](_0x222810)[0x0],_0x25fe4f=_0x19c57f['item']['getAttribute']('vid_end')),_0x5bfcd1&&(_0x584a63['set'](_0x17e622,{'userId':_0x5bfcd1}),_0xeed826['set'](_0x17e622,{'userId':_0x5bfcd1})),_0x17e622==_0x25fe4f&&(_0x5bfcd1=null,_0x25fe4f=null);}}const _0x128e85={},_0x301a0b=new Set();for(const _0xc867d0 of _0x1ce3fa){const _0x3f0e67=_0x17a14c['deletions'][_0xc867d0],_0x4eea77=_0x17a14c['insertions'][_0xc867d0];for(const {userId:_0x1ed962}of this['_touchedMarkers']['values']())null!==_0x1ed962&&_0x301a0b['add'](_0x1ed962);for(const {userId:_0x1764cf}of this['_touchedRoots']['values']())null!==_0x1764cf&&_0x301a0b['add'](_0x1764cf);this['_markChanges'](_0x4eea77,_0x5880e2['insertions'][_0xc867d0],_0xeed826,'insertion',_0x301a0b),this['_markChanges'](_0x3f0e67,_0x5880e2['deletions'][_0xc867d0],_0x584a63,'deletion',_0x301a0b),_0x128e85[_0xc867d0]={'insertions':this['_prepareViewToSave'](_0x4eea77),'deletions':this['_prepareViewToSave'](_0x3f0e67),'attachChange':this['_touchedRoots']['get'](_0xc867d0)||null,'attributesBefore':_0x2a2398(this['_baseRootsAttributes']['get'](_0xc867d0))||{},'attributesAfter':_0x2a2398(this['_diffRootsAttributes']['get'](_0xc867d0))};}return{'diffData':_0x128e85,'authorsIds':Array['from'](_0x301a0b)};}['_processRootBeforeSave'](_0x41336e){for(const [,_0x9dc5ad]of _0x41336e['markers']){const _0x1ed564=_0x9dc5ad['start']['getAncestors']()['filter'](_0x3b27a5=>'tableCell'==_0x3b27a5['name']);for(const _0x34825e of _0x1ed564)0x1==_0x34825e['childCount']&&_0x34825e['getChild'](0x0)['is']('element','paragraph')&&_0x34825e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x255aab){this['_processRootBeforeSave'](_0x255aab);const _0x36bae3=this['editor']['data']['toView'](_0x255aab,{}),_0x1350c1=Array['from'](_0x36bae3['getChildren']())['map'](_0x4f1756=>this['_getViewJson'](_0x4f1756));return JSON['stringify'](_0x1350c1);}['_getViewJson'](_0x4358bc){if(_0x4358bc['is']('$text'))return _0x4358bc['data'];{const _0x29f31f=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4bf320=_0x4358bc,_0x1fae48=this['editor']['data']['htmlProcessor']['domConverter'],_0x4b4711={'type':_0x29f31f['_getTypeCharForViewElement'](_0x4bf320),'name':_0x4bf320['name'],'attributes':Array['from'](_0x4bf320['getAttributes']()),'children':Array['from'](_0x4bf320['getChildren']())['map'](_0x4bf917=>this['_getViewJson'](_0x4bf917))};if(_0x4358bc['is']('uiElement')&&'$comment'!=_0x4358bc['name']){const _0x1460b3=_0x4358bc['render'](_0x1fae48['domDocument'],_0x1fae48);_0x4b4711['children']['push'](_0x1460b3['outerHTML']);}else{if(_0x4358bc['is']('rawElement')){const _0x73ee70=_0x1fae48['domDocument']['createElement'](_0x4bf320['name']);_0x4358bc['render'](_0x73ee70,_0x1fae48),_0x4b4711['children']['push'](_0x73ee70['innerHTML']);}}const _0x1e20a5=Array['from'](_0x4bf320['getCustomProperties']());_0x1e20a5['length']>0x0&&(_0x4b4711['customProperties']=_0x1e20a5);const _0x524fb2=_0x4bf320['getFillerOffset']();return null!==_0x524fb2&&(_0x4b4711['fillerOffset']=_0x524fb2),_0x4b4711;}}['_markChanges'](_0x4fc74f,_0x2aa1a6,_0x16789c,_0x3a4276,_0x7e5687){let _0x5232a7=null,_0x156314=null,_0x4dd8c9=0x0;const _0x2c82cc=this['editor']['model'];for(let _0x5e07f3=0x0;_0x5e07f3<_0x2aa1a6['length'];_0x5e07f3++){const _0x4d0ab3=this['_getVidAttributeName'](_0x2aa1a6[_0x5e07f3]),_0x11d4ab=_0x2aa1a6[_0x5e07f3]['item']['getAttribute'](_0x4d0ab3),_0x203dff=_0x16789c['get'](_0x11d4ab),_0x389aa5=_0x5e07f3==_0x2aa1a6['length']-0x1;(!_0x5232a7&&_0x203dff&&(_0x5232a7=_0x203dff,_0x156314=_0x2aa1a6[_0x5e07f3]),_0x5232a7&&(!_0x203dff||_0x203dff['userId']!=_0x5232a7['userId']))&&(_0x2a77e6(_0x203dff,F(_0x156314,_0x4fc74f,_0x2c82cc),F(_0x2aa1a6[_0x5e07f3],_0x4fc74f,_0x2c82cc)),_0x5232a7=_0x203dff||null,_0x156314=_0x203dff?_0x2aa1a6[_0x5e07f3]:null),_0x5232a7&&_0x389aa5&&_0x2a77e6(_0x203dff,F(_0x156314,_0x4fc74f,_0x2c82cc),B(_0x2aa1a6[_0x5e07f3],_0x4fc74f,_0x2c82cc));}function _0x2a77e6(_0x5ce037,_0x1a30c5,_0xceb4f0){const _0x531846=_0x5232a7['userId'],_0x8a93c1='revision:'+_0x3a4276+':'+_0x531846+':'+_0x4dd8c9++,_0x122ab6=_0x2c82cc['createRange'](_0x1a30c5,_0xceb4f0);_0x4fc74f['markers']['set'](_0x8a93c1,_0x122ab6),null!==_0x531846&&_0x7e5687['add'](_0x531846);}}['_getVidAttributeName'](_0x529195){switch(_0x529195['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xc0cfda,_0x427927){_0xc0cfda['baseVersion']=null;for(const _0x13d6ff in _0xc0cfda){const _0x557f7f=_0xc0cfda[_0x13d6ff];if(_0x557f7f instanceof vt){const _0x4f8793=_0x427927['get'](_0x557f7f['root']['rootName']);_0xc0cfda[_0x13d6ff]=this['_fixPosition'](_0x557f7f,_0x4f8793);}if(_0x557f7f instanceof ft){const _0x18f20c=_0x427927['get'](_0x557f7f['root']['rootName']);_0xc0cfda[_0x13d6ff]=this['_fixRange'](_0x557f7f,_0x18f20c);}'root'===_0x13d6ff&&(_0xc0cfda['root']=_0x427927['get'](_0xc0cfda['root']['rootName']));}}['_fixRange'](_0x40070f,_0x1898c7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x40070f['start'],_0x1898c7),this['_fixPosition'](_0x40070f['end'],_0x1898c7));}['_fixPosition'](_0x4834c4,_0x19c47d){return this['editor']['model']['createPositionFromPath'](_0x19c47d,_0x4834c4['path'],_0x4834c4['stickiness']);}['_handleInsertOperation'](_0x26c3cb){const _0x346dce=this['_idsRoots']['get'](_0x26c3cb['position']['root']['rootName']),_0x1e15c9=this['_fixPosition'](_0x26c3cb['position'],_0x346dce),_0x23eab4=null===_0x26c3cb['_authorId']?null:_0x26c3cb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e0875=_0x1e15c9['parent'],_0x2127d=this['_revisionId'],_0x5b9a63=[];for(const _0x509e62 of _0x26c3cb['nodes'])if(_0x509e62['is']('element'))_0x5b9a63['push'](this['_makeIdsRoot'](_0x509e62));else{for(let _0x45a6ba=0x0;_0x45a6ba<_0x509e62['offsetSize'];_0x45a6ba++)_0x5b9a63['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x8e2ba1=this['_revisionId'];for(let _0xf163bc=_0x2127d;_0xf163bc<_0x8e2ba1;_0xf163bc++)this['_touched']['set'](_0xf163bc,{'userId':_0x23eab4});_0x5e0875['_insertChild'](_0x1e15c9['offset'],_0x5b9a63);}['_handleMoveOperation'](_0x5d9600){(_0x5d9600=this['_cloneOperation'](_0x5d9600,this['_idsRoots']))['_execute']();const _0x176371=null===_0x5d9600['_authorId']?null:_0x5d9600['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x348f39=_0x5d9600['getMovedRangeStart'](),_0x82b21d=_0x348f39['parent'],_0x1b1e8a=_0x348f39['offset'];!function _0x9a3342(_0x402b1e,_0x1eb23e,_0x2fbc5a,_0x42e95b){for(let _0x136c3e=_0x2fbc5a;_0x136c3e<_0x42e95b;_0x136c3e++){const _0x2b35c9=_0x1eb23e['getChild'](_0x136c3e);_0x2b35c9['is']('element','$text')?_0x402b1e['set'](_0x2b35c9['getAttribute']('vid'),{'userId':_0x176371}):(_0x402b1e['set'](_0x2b35c9['getAttribute']('vid_start'),{'userId':_0x176371}),_0x9a3342(_0x402b1e,_0x2b35c9,0x0,_0x2b35c9['childCount']),_0x402b1e['set'](_0x2b35c9['getAttribute']('vid_end'),{'userId':_0x176371}));}}(this['_touched'],_0x82b21d,_0x1b1e8a,_0x1b1e8a+_0x5d9600['howMany']);}['_handleMergeOperation'](_0x235807){const _0x239537=null===(_0x235807=this['_cloneOperation'](_0x235807,this['_idsRoots']))['_authorId']?null:_0x235807['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c8515=_0x235807['targetPosition']['parent'],_0x1b5fec=_0x235807['sourcePosition']['parent'],_0x56d9f4=_0x1c8515['getAttribute']('vid_end'),_0x123ca9=_0x1b5fec['getAttribute']('vid_start');_0x1c8515['_setAttribute']('vid_end',_0x1b5fec['getAttribute']('vid_end')),_0x1b5fec['_setAttribute']('vid_end',_0x56d9f4),this['_touched']['set'](_0x123ca9,{'userId':_0x239537}),this['_touched']['set'](_0x56d9f4,{'userId':_0x239537}),_0x235807['_execute']();}['_handleSplitOperation'](_0x1a85d9){const _0x25a39e=null===(_0x1a85d9=this['_cloneOperation'](_0x1a85d9,this['_idsRoots']))['_authorId']?null:_0x1a85d9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26304e=_0x1a85d9['graveyardPosition'],_0x2149b4=_0x1a85d9['splitPosition']['parent'];_0x1a85d9['_execute']();const _0x55fda0=_0x2149b4['getAttribute']('vid_end'),_0x2bbc09=_0x1a85d9['insertionPosition']['nodeAfter'];if(_0x26304e){const _0xd273d0=_0x2bbc09['getAttribute']('vid_end'),_0x2a0e28=_0x2149b4['getAttribute']('vid_end');_0x2149b4['_setAttribute']('vid_end',_0xd273d0),_0x2bbc09['_setAttribute']('vid_end',_0x2a0e28),this['_touched']['set'](_0x2149b4['getAttribute']('vid_end'),{'userId':_0x25a39e}),this['_touched']['set'](_0x2bbc09['getAttribute']('vid_start'),{'userId':_0x25a39e});}else{const _0x4c688f=this['_revisionId']++,_0x51a8ee=this['_revisionId']++;_0x2149b4['_setAttribute']('vid_end',_0x4c688f),_0x2bbc09['_setAttribute']('vid_start',_0x51a8ee),_0x2bbc09['_setAttribute']('vid_end',_0x55fda0),this['_touched']['set'](_0x4c688f,{'userId':_0x25a39e}),this['_touched']['set'](_0x51a8ee,{'userId':_0x25a39e});}}['_handleMarkerOperation'](_0xa0daa8){if(!_0xa0daa8['affectsData'])return;const _0x328dfd=(_0xa0daa8=this['_cloneOperation'](_0xa0daa8,this['_diffRoots']))['oldRange']?_0xa0daa8['oldRange']['root']:null,_0x41c6d3=_0xa0daa8['newRange']?_0xa0daa8['newRange']['root']:null;_0x328dfd&&this['_markers']['delete'](_0xa0daa8['name']),_0x41c6d3&&this['_markers']['set'](_0xa0daa8['name'],_0xa0daa8['newRange']['clone']());const _0xd42dbd=null===_0xa0daa8['_authorId']?null:_0xa0daa8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4be97d=_0xa0daa8['name'];if(!this['_touchedMarkers']['has'](_0x4be97d))return void this['_touchedMarkers']['set'](_0x4be97d,{'range':_0xa0daa8['oldRange'],'userId':_0xd42dbd});const _0x4ee858=this['_touchedMarkers']['get'](_0x4be97d),_0x31e15f=_0x4ee858['range'],_0x209a7c=_0xa0daa8['newRange'];null==_0x31e15f&&null==_0x209a7c||_0x31e15f&&_0x209a7c&&_0x31e15f['isEqual'](_0x209a7c)?this['_touchedMarkers']['delete'](_0xa0daa8['name']):_0x4ee858['userId']=_0xd42dbd;}['_handleRootOperation'](_0x5546a2,_0x11320c){this['_diffRoots']['has'](_0x5546a2['rootName'])?this['_diffRoots']['get'](_0x5546a2['rootName'])['_isAttached']=_0x5546a2['isAdd']:(this['_diffRoots']['set'](_0x5546a2['rootName'],P(_0x5546a2['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5546a2['rootName'],{}),_0x11320c&&this['_idsRoots']['set'](_0x5546a2['rootName'],P(_0x5546a2['rootName'],!0x0)));const _0x1e43c4=null===_0x5546a2['_authorId']?null:_0x5546a2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x290b71=this['_touchedRoots']['get'](_0x5546a2['rootName']);_0x290b71&&_0x290b71['userId']===_0x1e43c4?this['_touchedRoots']['delete'](_0x5546a2['rootName']):this['_touchedRoots']['set'](_0x5546a2['rootName'],{'userId':_0x1e43c4,'isAttached':_0x5546a2['isAdd']});}['_handleRootAttributeOperation'](_0x147ec6){const _0x3eb958=this['_diffRootsAttributes']['get'](_0x147ec6['root']['rootName']);null===_0x147ec6['newValue']?delete _0x3eb958[_0x147ec6['key']]:_0x3eb958[_0x147ec6['key']]=_0x147ec6['newValue'];}}function N(_0x2b9ef1){const _0x256aa9=P(_0x2b9ef1['rootName'],_0x2b9ef1['isAttached']());for(const _0x9ceb8a of _0x2b9ef1['getChildren']()){const _0x5177f7=_0x9ceb8a['_clone'](!0x0);_0x256aa9['_appendChild'](_0x5177f7);}return _0x256aa9;}function P(_0x5cdea1,_0x59842d=!0x0){const _0xe1ea40=new gt();return _0xe1ea40['rootName']=_0x5cdea1,_0xe1ea40['_isAttached']=_0x59842d,_0xe1ea40['isAttached']=()=>_0xe1ea40['_isAttached'],_0xe1ea40;}function F(_0x26729f,_0x5d3cdc,_0x483539){const _0x117e5d='elementEnd'==_0x26729f['type']?_0x483539['createPositionAt'](_0x26729f['item'],'end'):_0x483539['createPositionBefore'](_0x26729f['item']);return _0x483539['createPositionFromPath'](_0x5d3cdc,_0x117e5d['path'],_0x117e5d['stickiness']);}function B(_0x26893e,_0x2877a8,_0x1273dc){const _0x241227='elementStart'==_0x26893e['type']?_0x1273dc['createPositionAt'](_0x26893e['item'],0x0):_0x1273dc['createPositionAfter'](_0x26893e['item']);return _0x1273dc['createPositionFromPath'](_0x2877a8,_0x241227['path'],_0x241227['stickiness']);}class os extends _0xd7064f{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x12e412,_0x1263b9){super(_0x12e412),this['focusTracker']=new _0x4d4733(),this['keystrokes']=new _0x5394e0(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1263b9),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x254e30({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5df590=_0x20fbc3=>_0x20fbc3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5df590),this['keystrokes']['set']('arrowleft',_0x5df590),this['keystrokes']['set']('arrowup',_0x5df590),this['keystrokes']['set']('arrowdown',_0x5df590);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x230ebe){this['revisionNameInputView']['fieldView']['element']['value']=_0x230ebe['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3f4056){const _0x2789d2=new nt(this['locale'],ti),_0x39ddd5=_0x2789d2['fieldView'];_0x39ddd5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x58cc24=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3f4056&&(_0x58cc24+='\x20('+g(this['locale'],'optional')+')'),(_0x2789d2['label']=_0x58cc24,_0x39ddd5['on']('input',()=>{this['revisionNameInputValue']=_0x39ddd5['element']['value']['trim']();}),_0x2789d2);}}class f extends _0xfc6625{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3eca8b=this['editor'],_0x10234c=_0x3eca8b['plugins']['get']('RevisionTracker');_0x3eca8b['ui']['componentFactory']['add']('revisionHistory',_0xa056e7=>{const _0x3c4a7e=_0x1f00c4(_0xa056e7),_0x4d797f=_0x3c4a7e['panelView']['children'],_0xd17449=new _0x59ccb5(_0xa056e7),_0x31ea7e=new te(_0xa056e7),_0x4e2867=new _0x1b1410(_0xa056e7),_0x30dd5e=new te(_0xa056e7),_0x1b8196=new _0x1b1410(_0xa056e7);return _0x3c4a7e['bind']('isEnabled')['to'](_0x10234c,'isReady',_0x10234c,'isEnabled',_0x3eca8b,'isReadOnly',(_0x39890f,_0x5ac8c2,_0x2d006f)=>_0x39890f&&_0x5ac8c2&&!_0x2d006f),_0x3c4a7e['buttonView']['set']({'icon':_0x21efd2,'label':g(_0xa056e7,'Revision\x20history'),'tooltip':!0x0}),_0x4e2867['set']({'label':g(_0xa056e7,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4e2867['bind']('isEnabled')['to'](_0x10234c,'isReady',_0x10234c,'isEnabled',_0x3eca8b,'isReadOnly',(_0x371c1e,_0x2a30bf,_0x5e3c41)=>_0x371c1e&&_0x2a30bf&&!_0x5e3c41),_0x4e2867['on']('execute',()=>this['_showDialog']()),_0x1b8196['set']({'label':g(_0xa056e7,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1b8196['bind']('isEnabled')['to'](_0x10234c,'isReady',_0x3eca8b,'isReadOnly',(_0xaa1f55,_0x3e12a1)=>_0xaa1f55&&!_0x3e12a1),_0x1b8196['on']('execute',()=>{_0x3eca8b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3c4a7e['isOpen']=!0x1,_0x3eca8b['editing']['view']['focus']();}),_0x31ea7e['children']['add'](_0x4e2867),_0x30dd5e['children']['add'](_0x1b8196),_0xd17449['role']='menu',_0xd17449['items']['addMany']([_0x31ea7e,_0x30dd5e]),_0x4d797f['add'](_0xd17449),_0x3c4a7e;}),_0x3eca8b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3e190e=this['editor'],_0x403860=_0x3e190e['locale'],_0x5a0699=new _0x15eb5e(_0x403860),_0x549ce4=new _0x39e36(_0x403860);_0x5a0699['buttonView']['set']({'icon':_0x21efd2,'label':g(_0x403860,'Revision\x20history')});const _0x15183e=new _0x56d8f5(_0x403860,_0x5a0699),_0x5591fa=new _0x2d3068(_0x403860);_0x5591fa['set']({'label':g(_0x403860,'Save\x20current\x20revision')}),_0x5591fa['delegate']('execute')['to'](_0x5a0699),_0x5591fa['on']('execute',()=>{this['_showDialog']();}),_0x15183e['children']['add'](_0x5591fa),_0x549ce4['items']['add'](_0x15183e);const _0x2f418e=new _0x56d8f5(_0x403860,_0x5a0699),_0x509d83=new _0x2d3068(_0x403860);return _0x509d83['set']({'label':g(_0x403860,'Open\x20revision\x20history')}),_0x509d83['delegate']('execute')['to'](_0x5a0699),_0x509d83['on']('execute',()=>{_0x3e190e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2f418e['children']['add'](_0x509d83),_0x549ce4['items']['add'](_0x2f418e),_0x5a0699['panelView']['children']['add'](_0x549ce4),_0x5a0699;}['_showDialog'](){const _0x9e1723=this['editor'],_0x10ce6c=_0x9e1723['locale'],_0x1ff7df=_0x9e1723['plugins']['get']('Dialog'),_0x327484=_0x9e1723['plugins']['get']('RevisionTracker');function _0x59bc30(_0x1e6822){_0x9e1723['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1e6822['revisionName']?_0x1e6822['revisionNameInputView']['errorText']=g(_0x10ce6c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x9e1723['plugins']['get'](u)['saveRevision']({'name':_0x1e6822['revisionName']}),_0x1ff7df['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x59bc30(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1ff7df['show']({'id':'revisionSave','title':g(_0x10ce6c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x9e1723['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1ff7df['hide']()},{'label':g(_0x9e1723['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x17417e){_0x17417e['bind']('isEnabled')['to'](_0x327484,'isReady',_0x327484,'isEnabled',_0x9e1723,'isReadOnly',(_0x41bb45,_0x1b1d31,_0x2201ff)=>_0x41bb45&&_0x1b1d31&&!_0x2201ff);},'onExecute':()=>_0x59bc30(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2b12fa=this['editor'],_0xd34b02=_0x2b12fa['locale'];this['_saveRevisionFormView']=new os(_0xd34b02,_0x2b12fa['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0xd7064f{['changeId'];['_model'];constructor(_0x5731d1,_0x301ae3){super(_0x5731d1),this['_model']=_0x301ae3,this['changeId']=_0x301ae3['id'];const _0x37c555=this['bindTemplate'],_0x242d63=g(_0x5731d1,_0x301ae3['data']['isSuggestion']?'Suggested\x20by':'add'==_0x301ae3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x301ae3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x37c555['to']('type',_0x97f067=>'ck-revision-change__'+_0x97f067)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x242d63}]},{'text':'\x20'+_0x301ae3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x425e45(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5d1f00){super(),this['id']=_0x5d1f00['id']||_0x4f6663(),this['author']=_0x5d1f00['author'],this['type']=_0x5d1f00['type'],this['data']=_0x5d1f00['data']||{},this['rootName']=_0x5d1f00['rootName'],this['set']('createdAt',_0x5d1f00['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5011b2,_0x18991a){this['newRevisionId']=_0x5011b2,this['oldRevisionId']=_0x18991a,this['changes']=new _0xfacc30();}['_setChanges'](_0x6e0012){for(const _0x429a67 of _0x6e0012)this['changes']['add'](_0x429a67);}}class m extends _0xfc6625{['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[_0x29c155,_0x15b9f2,I,V];}constructor(_0x18194b){super(_0x18194b),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',(_0x538ab2,_0x2dbfbc,_0x19cd0d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1cb53d=>{for(const _0x402900 of this['editor']['editing']['view']['document']['roots'])_0x19cd0d?_0x1cb53d['removeClass']('ck-editor__editable__overlay',_0x402900):_0x1cb53d['addClass']('ck-editor__editable__overlay',_0x402900);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3ef3dd=>null!==_0x3ef3dd),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x10574a,_0xa605ca,_0x2fd625)=>_0x10574a&&_0x2fd625?_0xa605ca['changes']['getIndex'](_0x2fd625):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x297ff2,_0x2717e8)=>_0x297ff2?_0x2717e8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x15b9f2);}['init'](){const _0x39907e=this['editor'],_0x44d7ff=new pt(_0x39907e,{'direction':'backward'}),_0x332c1f=new pt(_0x39907e,{'direction':'forward'});(_0x39907e['commands']['add']('showPreviousChange',_0x44d7ff),_0x39907e['commands']['add']('showNextChange',_0x332c1f),_0x39907e['commands']['add']('restoreRevision',new wt(_0x39907e)),this['on']('change:numberOfChanges',()=>{_0x44d7ff['refresh'](),_0x332c1f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x39907e['enableReadOnlyMode']('revision-viewer'),_0x39907e['plugins']['has']('WidgetToolbarRepository'))&&_0x39907e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2482b2){return await this['_utils']['loadRevisionData'](_0x2482b2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2482b2);}async['getRevisionRootsAttributes'](_0x282407){return await this['_utils']['loadRevisionData'](_0x282407,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x282407);}async['compare'](_0x208688,_0x2e18b1,_0x303de0=!0x1){if(!this['isEnabled'])return;const _0x2530bf=this['diff'],_0x33ca72=this['repository'],_0x31ada5='string'==typeof _0x208688?_0x33ca72['getRevision'](_0x208688):_0x208688,_0x2497e4='string'==typeof _0x2e18b1?_0x33ca72['getRevision'](_0x2e18b1):_0x2e18b1,_0x46a9ad=_0x31ada5['id'],_0x1e3440=_0x2497e4?_0x2497e4['id']:null;if(!_0x303de0&&this['diff']&&this['diff']['newRevisionId']===_0x46a9ad&&this['diff']['oldRevisionId']===_0x1e3440)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x46a9ad,_0x1e3440);const _0xbe5104=this['_getRevisionsRange'](_0x31ada5,_0x2497e4,!0x0)['map'](_0x484dc6=>this['_utils']['loadRevisionData'](_0x484dc6,this['adapter']));return _0xbe5104['push'](new Promise(_0x3b762d=>{setTimeout(_0x3b762d,0x14);})),Promise['all'](_0xbe5104)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x14223a=this['_getDiff'](_0x46a9ad,_0x1e3440);for(const _0x44a122 of _0x14223a['changes'])this['_changeIdToChange']['set'](_0x44a122['id'],_0x44a122);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc612e7=>{for(const _0x28bc83 of this['editor']['model']['document']['getRootNames']())_0xc612e7['detachRoot'](_0x28bc83);for(const _0x206d10 of Object['keys'](_0x14223a['model'])){const _0x3acdcd=_0xc612e7['addRoot'](_0x206d10);for(const _0x1c9352 of Object['keys'](_0x14223a['attributes'][_0x206d10]))_0xc612e7['setAttribute'](_0x1c9352,_0x14223a['attributes'][_0x206d10][_0x1c9352],_0x3acdcd);_0xc612e7['insert'](_0x14223a['model'][_0x206d10],_0x3acdcd,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x14223a['changes'])),this['isReady']=!0x0;})['catch'](_0x141f7a=>{console['error'](_0x141f7a),this['_cleanUp'](),_0x2530bf&&(this['diff']=_0x2530bf),this['isReady']=!0x0;});}['addRevisionData'](_0x48cfaf,_0x3c0014){const _0x3ce88c=this['repository']['createRevision'](_0x48cfaf);return _0x3ce88c['on']('_update',(_0x547bb1,_0x17df75,_0x17e7ad)=>_0x3c0014(_0x17df75,_0x17e7ad,_0x3ce88c)),this['repository']['addRevision'](_0x3ce88c),_0x3ce88c;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x280b1a=>{for(const _0x159f45 of this['editor']['model']['document']['getRootNames']())_0x280b1a['detachRoot'](_0x159f45);});}['_sortAndFilterDiffChanges'](_0x21b927){const _0x936c40=[],_0xfc3b79=new Map();for(const _0x5cfebb of this['editor']['model']['document']['getRootNames']()){const _0x55bcc5=this['editor']['editing']['view']['getDomRoot'](_0x5cfebb);if(!_0x55bcc5)continue;const _0x458e29=_0x55bcc5['getClientRects']()['item'](0x0);_0x458e29&&(_0x936c40['push'](_0x5cfebb),_0xfc3b79['set'](_0x5cfebb,_0x458e29));}return _0x936c40['sort']((_0x36f06b,_0x2d7f89)=>{const _0x18dbde=_0xfc3b79['get'](_0x36f06b),_0x26c4cf=_0xfc3b79['get'](_0x2d7f89);return _0x18dbde['y']-_0x26c4cf['y']||_0x18dbde['x']-_0x26c4cf['x'];}),(_0x21b927=_0x21b927['filter'](_0x5ed03f=>_0x936c40['includes'](_0x5ed03f['rootName'])))['sort']((_0x35c222,_0x183cc4)=>_0x936c40['indexOf'](_0x35c222['rootName'])-_0x936c40['indexOf'](_0x183cc4['rootName'])),_0x21b927;}['_makeTape'](_0x24b87d){const _0x16877e=Array['from'](_0x24b87d['markers'])['filter'](([_0x423e75,_0x2d9f97])=>_0x423e75['startsWith']('revision:')&&!_0x2d9f97['isCollapsed']),_0x2a1f2a=Array['from'](this['editor']['model']['createRangeIn'](_0x24b87d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x16877e['length'])for(const _0x2211a7 of _0x2a1f2a){const [_0x474be3,_0x41392f]=_0x16877e[0x0],[,_0x554b86,_0x3cbbf3]=_0x474be3['split'](':');if(_0x41392f['end']['isEqual'](_0x2211a7['nextPosition'])&&_0x16877e['shift'](),(_0x2211a7['previousPosition']['isEqual'](_0x41392f['start'])||_0x2211a7['previousPosition']['isAfter'](_0x41392f['start']))&&('insertion'==_0x554b86?_0x2211a7['isAdded']={'userId':_0x3cbbf3}:'deletion'==_0x554b86&&(_0x2211a7['isRemoved']={'userId':_0x3cbbf3})),0x0==_0x16877e['length'])break;}return _0x2a1f2a;}['_refreshStartEndIndex'](_0x945241){const _0x33aa9f=new Map();for(let _0x399805=0x0;_0x399805<_0x945241['length'];_0x399805++)'text'===_0x945241[_0x399805]['type']?(_0x945241[_0x399805]['item']['startIndex']=_0x399805,_0x945241[_0x399805]['item']['endIndex']=_0x399805):('elementStart'===_0x945241[_0x399805]['type']?_0x945241[_0x399805]['item']['startIndex']=_0x399805:'elementEnd'===_0x945241[_0x399805]['type']&&(_0x945241[_0x399805]['item']['endIndex']=_0x399805),_0x33aa9f['set'](_0x945241[_0x399805]['id'],_0x399805));for(const _0x47e707 of _0x33aa9f['values']())'elementStart'===_0x945241[_0x47e707]['type']?_0x945241[_0x47e707]['item']['endIndex']=_0x33aa9f['get'](_0x945241[_0x47e707]['pairId']):'elementEnd'===_0x945241[_0x47e707]['type']&&(_0x945241[_0x47e707]['item']['startIndex']=_0x33aa9f['get'](_0x945241[_0x47e707]['pairId']));}['_processTape'](_0x262601){for(let _0x5c389b=0x0;_0x5c389b<_0x262601['length'];_0x5c389b++){if('elementStart'===_0x262601[_0x5c389b]['type'])_0x262601[_0x5c389b]['item']['startIndex']=_0x5c389b;else{if('elementEnd'===_0x262601[_0x5c389b]['type']){_0x262601[_0x5c389b]['item']['endIndex']=_0x5c389b;const _0x432432=_0x262601[_0x5c389b]['item']['startIndex'];_0x262601[_0x432432]['pairId']=_0x262601[_0x5c389b]['id'],_0x262601[_0x5c389b]['pairId']=_0x262601[_0x432432]['id'];}else _0x262601[_0x5c389b]['item']['startIndex']=_0x5c389b,_0x262601[_0x5c389b]['item']['endIndex']=_0x5c389b,_0x262601[_0x5c389b]['pairId']=null;}_0x262601[_0x5c389b]['markersStart']||(_0x262601[_0x5c389b]['markersStart']=[],_0x262601[_0x5c389b]['markersEnd']=[]);}}['_markInsertions'](_0x28bd6c,_0x11d33f){const _0x16087a=_0x28bd6c['filter'](_0x49a8dd=>!_0x49a8dd['isAdded']);for(let _0x23e925=0x0;_0x23e925<_0x11d33f['length'];_0x23e925++)_0x11d33f[_0x23e925]['isAdded']&&(_0x16087a[_0x23e925]['isAdded']=_0x11d33f[_0x23e925]['isAdded']);}['_getDiff'](_0x1d84a3,_0xc40a05=null){const _0xb2e847=this['repository']['getRevision'](_0x1d84a3),_0x23d5b3=_0xc40a05?this['repository']['getRevision'](_0xc40a05):null,_0x5b226b=this['_getRevisionsRange'](_0xb2e847,_0x23d5b3),_0x5e6b79=_0x5b226b[_0x5b226b['length']-0x1],_0x305063=new Map(),_0x5f23e2={'model':{},'attributes':{},'changes':[]},_0x3c6cbb=new Set(),_0x4f9811=new Map();for(let _0x587e08=_0x5b226b['length']-0x1;_0x587e08>=0x0;_0x587e08--){const _0xcf3794=_0x5b226b[_0x587e08];for(const _0x339a42 of Object['keys'](_0xcf3794['diffData']))if(_0xcf3794['diffData'][_0x339a42]['attachChange']){const _0x3623dc=_0xcf3794['diffData'][_0x339a42]['attachChange'];_0x3623dc['isAttached']?(_0x3c6cbb['add'](_0x339a42),_0x4f9811['has'](_0x339a42)&&_0x4f9811['get'](_0x339a42)['userId']==_0x3623dc['userId']?_0x4f9811['delete'](_0x339a42):_0x4f9811['set'](_0x339a42,_0x3623dc)):_0x4f9811['has'](_0x339a42)?(_0x3c6cbb['delete'](_0x339a42),_0x4f9811['delete'](_0x339a42)):(_0x3c6cbb['add'](_0x339a42),_0x4f9811['set'](_0x339a42,_0x3623dc));}else _0x3c6cbb['add'](_0x339a42);}for(const _0xec9445 of _0x3c6cbb){const _0x3a68d3=_0x4f9811['has'](_0xec9445)&&!_0x4f9811['get'](_0xec9445)['isAttached'];let _0x593d3b=_0x3a68d3?_0x5b226b['length']-0x1:0x0;const _0x346875=_0x3a68d3?-0x1:0x1;for(;_0x5b226b[_0x593d3b];){const _0x4b26af=_0x5b226b[_0x593d3b];if(_0x4b26af['diffData'][_0xec9445]){const _0x70e81e=_0x3a68d3?_0x4b26af['diffData'][_0xec9445]['attributesBefore']:_0x4b26af['diffData'][_0xec9445]['attributesAfter'];_0x5f23e2['attributes'][_0xec9445]=_0x70e81e?_0x2a2398(_0x70e81e):{};break;}_0x593d3b+=_0x346875;}}for(const _0x4e1d27 of _0x5b226b){_0x4e1d27['model']={};for(const _0x37c5d6 of _0x4e1d27['authors'])_0x305063['set'](_0x37c5d6['id'],_0x37c5d6);for(const _0x9aa0d8 of _0x3c6cbb){const _0x403ea7=_0x4e1d27['diffData'][_0x9aa0d8]?_0x4e1d27['diffData'][_0x9aa0d8]['insertions']:'[]',_0x443286=_0x4e1d27['diffData'][_0x9aa0d8]?_0x4e1d27['diffData'][_0x9aa0d8]['deletions']:'[]';_0x4e1d27['model'][_0x9aa0d8]={'insertions':this['_utils']['_makeModelFromViewString'](_0x403ea7),'deletions':this['_utils']['_makeModelFromViewString'](_0x443286)};}}for(const _0x28d3a6 of _0x3c6cbb){let _0x2deeeb=null,_0x2ea772=0x0;const _0x18a102=new Map(Array['from'](_0xb2e847['model'][_0x28d3a6]['insertions']['markers'])['filter'](([_0x501a33])=>!_0x501a33['startsWith']('revision:')));let _0x4f063f=0x0;for(const _0x28d23d of _0x5b226b){const _0x1d1918=this['_makeTape'](_0x28d23d['model'][_0x28d3a6]['insertions']);_0x28d23d==_0xb2e847?(_0x2deeeb=_0x1d1918,_0x2ea772=_0x2deeeb['length'],_0x2deeeb['forEach'](_0x441467=>{_0x441467['id']=_0x4f063f++;}),this['_processTape'](_0x2deeeb)):this['_markInsertions'](_0x2deeeb,_0x1d1918);const _0x59dc60=_0x2deeeb['filter'](_0x4b314a=>!_0x4b314a['isAdded'])['map'](_0x4d9c77=>_0x4d9c77['id']);let _0x52e699=0x0;const _0x59d73c=this['_makeTape'](_0x28d23d['model'][_0x28d3a6]['deletions']);_0x59d73c['forEach'](_0x3c1585=>{_0x3c1585['isRemoved']?_0x3c1585['id']=_0x2ea772++:_0x3c1585['id']=_0x59dc60[_0x52e699++];}),this['_processTape'](_0x59d73c),this['_setDistance'](_0x2deeeb,'isAdded'),this['_setDistance'](_0x59d73c,'isRemoved'),_0x28d23d==_0xb2e847&&this['_markMarkers'](_0x2deeeb,_0x18a102),_0x2deeeb=this['_joinTapes'](_0x2deeeb,_0x59d73c),this['_refreshStartEndIndex'](_0x2deeeb),this['_setDistance'](_0x2deeeb,'isRemoved');}_0x2deeeb=_0x2deeeb['filter'](_0x294d21=>!(_0x294d21['isAdded']&&_0x294d21['isRemoved']));const _0x37b3cb=new Map(_0x5e6b79['model'][_0x28d3a6]['deletions']['markers']),_0xd54087=new Set(_0x18a102['keys']());for(const _0x3b8da4 of _0x37b3cb['keys']())_0xd54087['delete'](_0x3b8da4);this['_markSuggestions'](_0x2deeeb,_0xd54087),this['_fixObsoleteTags'](_0x2deeeb),_0x2deeeb=this['_removeMissingPairs'](_0x2deeeb),_0x2deeeb=this['_markMismatchedRemovedTags'](_0x2deeeb),_0x2deeeb=this['_removeUnsupportedChanges'](_0x2deeeb);const {root:_0x36a30a,changes:_0x18c9d4}=this['_makeModelFromTape'](_0x2deeeb,_0x305063,_0x28d3a6);_0x5f23e2['model'][_0x28d3a6]=_0x36a30a;const _0x16baa3=_0x4f9811['get'](_0x28d3a6);if(_0x16baa3){const _0x5b3a0a=_0x305063['get'](_0x16baa3['userId']),_0x37b90e=new r({'author':_0x5b3a0a,'type':_0x16baa3['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x28d3a6});_0x18c9d4['unshift'](_0x37b90e),_0x5f23e2['attributes'][_0x28d3a6]['revisionHistoryAttachChange']=_0x37b90e['id'];}_0x5f23e2['changes']=_0x5f23e2['changes']['concat'](_0x18c9d4);}return _0x5f23e2;}['_markMarkers'](_0x458321,_0x26e485){for(let _0x19299d=0x0;_0x19299d<_0x458321['length'];_0x19299d++)for(const [_0x4c897a,_0xe68a46]of _0x26e485)!_0xe68a46['isCollapsed']&&_0xe68a46['start']['isEqual'](_0x458321[_0x19299d]['previousPosition'])&&_0x458321[_0x19299d]['markersStart']['push'](_0x4c897a),_0xe68a46['end']['isEqual'](_0x458321[_0x19299d]['nextPosition'])&&_0x458321[_0x19299d]['markersEnd']['push'](_0x4c897a);}['_joinTapes'](_0x39d43b,_0x1ca751){let _0x56540e=[],_0x79e6e4=0x0,_0x447fd7=0x0;for(;_0x79e6e4<_0x39d43b['length']||_0x447fd7<_0x1ca751['length'];){const _0x4774ab=_0x39d43b[_0x79e6e4]||{},_0x33c2fc=_0x1ca751[_0x447fd7]||{};if(_0x4774ab['id']==_0x33c2fc['id'])_0x79e6e4++,_0x447fd7++,_0x56540e['push'](_0x4774ab);else{if(_0x33c2fc['isRemoved']&&_0x4774ab['isAdded']){const {commonTape:_0x3b0dee,iEnd:_0x14e11b,jEnd:_0x5ace44}=this['_threeWayMerge'](_0x39d43b,_0x79e6e4,_0x1ca751,_0x447fd7);_0x56540e=_0x56540e['concat'](_0x3b0dee),_0x79e6e4=_0x14e11b,_0x447fd7=_0x5ace44;}else _0x33c2fc['isRemoved']?(_0x447fd7++,_0x56540e['push'](_0x33c2fc)):(_0x79e6e4++,_0x56540e['push'](_0x4774ab));}}return _0x56540e;}['_markSuggestions'](_0xc943d9,_0xd5d75f){const _0x2e039b=[];for(let _0x58f445=0x0;_0x58f445<_0xc943d9['length'];_0x58f445++){for(let _0x4aec8c=0x0;_0x4aec8c<_0xc943d9[_0x58f445]['markersStart']['length'];_0x4aec8c++){const _0x42087f=_0xc943d9[_0x58f445]['markersStart'][_0x4aec8c];if(!_0xd5d75f['has'](_0x42087f))continue;const {group:_0x180fee,type:_0x33ad81,authorId:_0x3ae943}=_0x5173b5(_0x42087f);'revision-suggestion'!=_0x180fee||'insertion'!=_0x33ad81&&'deletion'!=_0x33ad81||(_0x2e039b['unshift']({'type':_0x33ad81,'name':_0x42087f,'userId':_0x3ae943}),_0xc943d9[_0x58f445]['markersStart']['splice'](_0x4aec8c,0x1),_0x4aec8c--);}_0x41d14a(_0xc943d9[_0x58f445]);for(let _0x5d308f=0x0;_0x5d308f<_0xc943d9[_0x58f445]['markersEnd']['length'];_0x5d308f++){const _0x5e2e8e=_0xc943d9[_0x58f445]['markersEnd'][_0x5d308f];if(!_0xd5d75f['has'](_0x5e2e8e))continue;const {group:_0x1d3a9a,type:_0x50da56}=_0x5173b5(_0x5e2e8e);if('revision-suggestion'!=_0x1d3a9a||'insertion'!=_0x50da56&&'deletion'!=_0x50da56)continue;_0xc943d9[_0x58f445]['markersEnd']['splice'](_0x5d308f,0x1),_0x5d308f--;const _0x39214b=_0x2e039b['findIndex'](_0x181206=>_0x181206['name']==_0x5e2e8e);_0x39214b>-0x1&&_0x2e039b['splice'](_0x39214b,0x1);}}function _0x5173b5(_0x2608e8){const _0x4b278f=_0x2608e8['split'](':');return{'group':_0x4b278f[0x0],'type':_0x4b278f[0x1],'subType':_0x4b278f['length']>=0x5?_0x4b278f[0x2]:null,'id':_0x4b278f['length']<0x5?_0x4b278f[0x2]:_0x4b278f[0x3],'authorId':_0x4b278f['length']<0x5?_0x4b278f[0x3]:_0x4b278f[0x4],'markerCount':0x6==_0x4b278f['length']?_0x4b278f[0x5]:null};}function _0x41d14a(_0x26b243){for(let _0x1b4d42=0x0;_0x1b4d42<_0x2e039b['length'];_0x1b4d42++){if(_0x26b243['isAdded']&&'insertion'==_0x2e039b[_0x1b4d42]['type']&&_0x26b243['isAdded']['userId']==_0x2e039b[_0x1b4d42]['userId'])return _0x26b243['isAddSuggestion']=_0x2e039b[_0x1b4d42],void delete _0x26b243['isAdded'];if(!_0x26b243['isAdded']&&!_0x26b243['isRemoved']&&'deletion'==_0x2e039b[_0x1b4d42]['type'])return void(_0x26b243['isRemoveSuggestion']=_0x2e039b[_0x1b4d42]);}}}['_setDistance'](_0x44ef29,_0x46b0d8){let _0x40a457=0x0,_0x4ee4b5=!0x1;const _0x397715=new Map();for(const _0x14a231 of _0x44ef29)_0x14a231[_0x46b0d8]?_0x4ee4b5&&(_0x40a457++,_0x4ee4b5=!0x1):(_0x40a457++,_0x4ee4b5=!0x0),_0x397715['set'](_0x14a231['id'],_0x40a457);for(let _0x2c2468=0x0;_0x2c2468<_0x44ef29['length'];_0x2c2468++){if('isRemoved'==_0x46b0d8&&_0x44ef29[_0x2c2468]['isAdded']||'isAdded'==_0x46b0d8&&_0x44ef29[_0x2c2468]['isRemoved'])continue;if('text'==_0x44ef29[_0x2c2468]['type']){_0x44ef29[_0x2c2468]['distance']=0x0;continue;}const _0x383d08=_0x397715['get'](_0x44ef29[_0x2c2468]['pairId']),_0x1568ac=_0x397715['get'](_0x44ef29[_0x2c2468]['id']);_0x44ef29[_0x2c2468]['distance']=_0x383d08-_0x1568ac;}}['_getRevisionsRange'](_0x472973,_0x15e913,_0x10d3f4=!0x1){const _0xab49b4=[];let _0x5df144=this['repository']['getIndex'](_0x472973),_0x170dba=this['repository']['getIndex'](_0x15e913);for(-0x1==_0x170dba&&(_0x170dba=this['repository']['_revisions']['length'],_0x10d3f4=!0x1);_0x5df144<_0x170dba;)_0xab49b4['push'](this['repository']['getRevision'](_0x5df144)),_0x5df144++;return _0x10d3f4&&_0xab49b4['push'](this['repository']['getRevision'](_0x5df144)),_0xab49b4;}['_threeWayMerge'](_0x168249,_0x2266af,_0x1604a2,_0x201ee5){const _0x17148f=this['editor']['model']['schema'];let _0x21103a=_0x2266af;for(;_0x168249[_0x21103a]&&_0x168249[_0x21103a]['isAdded'];)_0x21103a++;let _0x37753e=_0x201ee5;for(;_0x1604a2[_0x37753e]&&_0x1604a2[_0x37753e]['isRemoved'];)_0x37753e++;_0x4a76fe(_0x168249,_0x2266af,_0x21103a),_0x4a76fe(_0x1604a2,_0x201ee5,_0x37753e);const _0x4b8ed4=_0x1604a2['slice'](_0x201ee5,_0x37753e)['concat'](_0x168249['slice'](_0x2266af,_0x21103a));return _0x4b8ed4['sort']((_0x4e4a5b,_0x3b3b57)=>_0x4e4a5b['side']!=_0x3b3b57['side']?_0x4e4a5b['side']-_0x3b3b57['side']:_0x4e4a5b['level']!=_0x3b3b57['level']?_0x4e4a5b['level']-_0x3b3b57['level']:_0x4e4a5b['distance']!=_0x3b3b57['distance']?_0x3b3b57['distance']-_0x4e4a5b['distance']:!!_0x4e4a5b['isAdded']!=!!_0x3b3b57['isAdded']?-0x1==_0x4e4a5b['side']||0x0==_0x4e4a5b['side']?_0x4e4a5b['isAdded']?-0x1:0x1:_0x4e4a5b['isAdded']?0x1:-0x1:_0x4e4a5b['index']-_0x3b3b57['index']),{'commonTape':_0x4b8ed4,'iEnd':_0x21103a,'jEnd':_0x37753e};function _0x4a76fe(_0x5f5217,_0x24e678,_0x3d4416){let _0x4e90a4=-0x1,_0x5d4823=Number['POSITIVE_INFINITY'],_0x4b0be0=!0x0;for(let _0x22f499=_0x24e678;_0x22f499<_0x3d4416;_0x22f499++)if(_0x17148f['isInline'](_0x5f5217[_0x22f499]['item'])||(_0x4b0be0=!0x1),_0x5f5217[_0x22f499]['item']['startIndex']<_0x24e678&&(_0x4e90a4=_0x22f499),_0x5f5217[_0x22f499]['item']['endIndex']>=_0x3d4416){_0x5d4823=_0x22f499;break;}_0x4b0be0&&(_0x4e90a4=_0x3d4416-0x1);for(let _0x2dfb3b=_0x24e678;_0x2dfb3b<_0x3d4416;_0x2dfb3b++)_0x5f5217[_0x2dfb3b]['side']=_0x2dfb3b<=_0x4e90a4?-0x1:_0x2dfb3b<_0x5d4823?0x0:0x1,_0x5f5217[_0x2dfb3b]['index']=_0x2dfb3b;let _0x245334=0x0;for(let _0x1c1ce5=_0x24e678;_0x1c1ce5<=_0x4e90a4;_0x1c1ce5++)0x0==_0x5f5217[_0x1c1ce5]['distance']?_0x5f5217[_0x1c1ce5]['level']=_0x245334:(_0x245334++,_0x5f5217[_0x1c1ce5]['level']=_0x245334,_0x245334++);for(let _0x542b0=_0x24e678;_0x542b0<_0x3d4416;_0x542b0++)0x0==_0x5f5217[_0x542b0]['side']&&(_0x5f5217[_0x542b0]['level']=_0x245334);_0x245334=0x0;for(let _0x2abcc5=_0x3d4416-0x1;_0x2abcc5>=_0x5d4823;_0x2abcc5--)0x0==_0x5f5217[_0x2abcc5]['distance']?_0x5f5217[_0x2abcc5]['level']=_0x245334:(_0x245334--,_0x5f5217[_0x2abcc5]['level']=_0x245334,_0x245334--);}}['_fixObsoleteTags'](_0x5096cf){const _0x542280=new Map(),_0xad51c3=this['editor']['model']['schema'];for(let _0x309051=0x1;_0x309051<_0x5096cf['length'];_0x309051++){let _0x2fe04b,_0x4a273a,_0x16c1db;const _0x1e1c0d=_0x5096cf[_0x309051],_0x2102f2=_0x5096cf[_0x309051-0x1];if('text'==_0x1e1c0d['type'])continue;if(_0x1e1c0d['type']!=_0x2102f2['type'])continue;if(!_0xad51c3['isBlock'](_0x2102f2['item'])||_0xad51c3['isLimit'](_0x2102f2['item']))continue;if(!_0xad51c3['isBlock'](_0x1e1c0d['item'])||_0xad51c3['isLimit'](_0x1e1c0d['item']))continue;if((_0x5096cf[_0x309051]['isAdded']||_0x5096cf[_0x309051]['isAddSuggestion'])&&_0x5096cf[_0x309051-0x1]['isRemoved'])_0x2fe04b=_0x5096cf[_0x309051],_0x4a273a=_0x5096cf[_0x309051-0x1],_0x16c1db=_0x309051-0x1;else{if(!_0x5096cf[_0x309051]['isRemoved']||!_0x5096cf[_0x309051-0x1]['isAdded']&&!_0x5096cf[_0x309051-0x1]['isAddSuggestion'])continue;_0x2fe04b=_0x5096cf[_0x309051-0x1],_0x4a273a=_0x5096cf[_0x309051],_0x16c1db=_0x309051;}const _0x169d7f=_0x2fe04b['level']==_0x4a273a['level'],_0x4f5727=Math['abs'](_0x2fe04b['level'])<Math['abs'](_0x4a273a['level'])&&0x0==_0x4a273a['distance'];(_0x169d7f||_0x4f5727)&&(_0x542280['set'](_0x4a273a['id'],_0x2fe04b['id']),_0x5096cf['splice'](_0x16c1db,0x1),_0x309051--,_0x2fe04b['isAdded']=!0x1);}for(let _0x4c987e=0x0;_0x4c987e<_0x5096cf['length'];_0x4c987e++)_0x542280['has'](_0x5096cf[_0x4c987e]['pairId'])&&(_0x5096cf[_0x4c987e]['pairId']=_0x542280['get'](_0x5096cf[_0x4c987e]['pairId']));}['_removeMissingPairs'](_0x2c9a51){const _0x1d48b5=new Set(_0x2c9a51['map'](_0x16e717=>_0x16e717['id']));for(let _0x57b1cb=0x0;_0x57b1cb<_0x2c9a51['length'];_0x57b1cb++)_0x1d48b5['has'](_0x2c9a51[_0x57b1cb]['pairId'])||0x0==_0x2c9a51[_0x57b1cb]['distance']||(_0x2c9a51[_0x57b1cb]['isIncorrect']=!0x0);return _0x2c9a51['filter'](_0x16703b=>!_0x16703b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x57b306){const _0x11d5a1=new Set();for(let _0xf79f94=0x0;_0xf79f94<_0x57b306['length'];_0xf79f94++){if(_0x11d5a1['has'](_0x57b306[_0xf79f94]['id'])&&_0x57b306[_0xf79f94]['isRemoved']&&(_0x57b306[_0xf79f94]['isIncorrect']=!0x0),_0x57b306[_0xf79f94]['isIncorrect'])continue;if(0x0==_0x57b306[_0xf79f94]['distance'])continue;if('elementStart'!=_0x57b306[_0xf79f94]['type'])continue;if(null==_0x57b306[_0xf79f94]['pairId'])continue;let _0x11b446=_0xf79f94+0x1,_0x4ba08f=0x0;for(;_0x57b306[_0x11b446]['id']!=_0x57b306[_0xf79f94]['pairId'];)'elementStart'==_0x57b306[_0x11b446]['type']?_0x4ba08f++:'elementEnd'==_0x57b306[_0x11b446]['type']&&_0x4ba08f--,_0x11b446++;if(0x0!=_0x4ba08f){if(_0x57b306[_0xf79f94]['isRemoved'])_0x57b306[_0xf79f94]['isIncorrect']=!0x0;else{for(;_0x11b446!=_0xf79f94;)_0x57b306[_0x11b446]['isRemoved']&&0x0!=_0x57b306[_0x11b446]['distance']&&(_0x57b306[_0x11b446]['isIncorrect']=!0x0,_0x11d5a1['add'](_0x57b306[_0x11b446]['pairId'])),_0x11b446--;}}}return _0x57b306['filter'](_0x28ffc0=>!_0x28ffc0['isIncorrect']);}['_removeUnsupportedChanges'](_0x582b6b){const _0x1a0685=this['editor']['model']['schema'];for(let _0x55bedd=0x0;_0x55bedd<_0x582b6b['length'];_0x55bedd++){if(!(_0x582b6b[_0x55bedd]['isAdded']||_0x582b6b[_0x55bedd]['isAddSuggestion']||_0x582b6b[_0x55bedd]['isRemoved']||_0x582b6b[_0x55bedd]['isRemoveSuggestion']))continue;if(0x0==_0x582b6b[_0x55bedd]['distance'])continue;const _0x3ea0fb=_0x582b6b[_0x55bedd]['item'];_0x1a0685['isBlock'](_0x3ea0fb)||_0x1a0685['isLimit'](_0x3ea0fb)||(_0x582b6b[_0x55bedd]['isAdded']&&delete _0x582b6b[_0x55bedd]['isAdded'],_0x582b6b[_0x55bedd]['isAddSuggestion']&&delete _0x582b6b[_0x55bedd]['isAddSuggestion'],_0x582b6b[_0x55bedd]['isRemoveSuggestion']&&delete _0x582b6b[_0x55bedd]['isRemoveSuggestion'],_0x582b6b[_0x55bedd]['isRemoved']&&(_0x582b6b[_0x55bedd]['isIncorrect']=!0x0));}return _0x582b6b['filter'](_0xc9270d=>!_0xc9270d['isIncorrect']);}['_makeModelFromTape'](_0x1d8a9b,_0x20a09c,_0x878716){const _0x9a72d7=new gt(),_0x145d6a=[],_0x5c0637=new Map(),_0xc9a570=this['editor']['model'],_0x2766c8=_0xc9a570['schema'],_0x589aaa=[_0x9a72d7],_0x4a539c={},_0x49a5ca={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4ec8a4=null;const _0x10de4d=[0x0];for(let _0x313c06=0x0;_0x313c06<_0x1d8a9b['length'];_0x313c06++)if('elementStart'===_0x1d8a9b[_0x313c06]['type']){_0x1d8a9b[_0x313c06]['previousPosition']=_0xc9a570['createPositionFromPath'](_0x9a72d7,_0x10de4d);const _0x3b8638=new ut(_0x1d8a9b[_0x313c06]['item']['name'],_0x1d8a9b[_0x313c06]['item']['getAttributes']());_0x589aaa[0x0]['_appendChild'](_0x3b8638),_0x10de4d['push'](0x0),_0x589aaa['unshift'](_0x3b8638),_0x1d8a9b[_0x313c06]['nextPosition']=_0xc9a570['createPositionFromPath'](_0x9a72d7,_0x10de4d);}else'elementEnd'===_0x1d8a9b[_0x313c06]['type']?(_0x589aaa['shift'](),_0x1d8a9b[_0x313c06]['previousPosition']=_0xc9a570['createPositionFromPath'](_0x9a72d7,_0x10de4d),_0x10de4d['pop'](),_0x10de4d[_0x10de4d['length']-0x1]++,_0x1d8a9b[_0x313c06]['nextPosition']=_0xc9a570['createPositionFromPath'](_0x9a72d7,_0x10de4d)):(_0x1d8a9b[_0x313c06]['previousPosition']=_0xc9a570['createPositionFromPath'](_0x9a72d7,_0x10de4d),_0x4ec8a4?_0x4ec8a4['_data']+=_0x1d8a9b[_0x313c06]['item']['data']:_0x4ec8a4=new mt(_0x1d8a9b[_0x313c06]['item']['data'],_0x1d8a9b[_0x313c06]['item']['getAttributes']()),_0x1d8a9b[_0x313c06+0x1]&&'text'===_0x1d8a9b[_0x313c06+0x1]['type']&&_0x4ea167(_0x4ec8a4,_0x1d8a9b[_0x313c06+0x1]['item'])||(_0x589aaa[0x0]['_appendChild'](_0x4ec8a4),_0x4ec8a4=null),_0x10de4d[_0x10de4d['length']-0x1]+=_0x1d8a9b[_0x313c06]['item']['offsetSize'],_0x1d8a9b[_0x313c06]['nextPosition']=_0xc9a570['createPositionFromPath'](_0x9a72d7,_0x10de4d));for(let _0xfc1789=0x0;_0xfc1789<_0x1d8a9b['length'];_0xfc1789++){const _0x300013=_0x1d8a9b[_0xfc1789]['previousPosition'],_0x26e7ca=_0x1d8a9b[_0xfc1789]['nextPosition'];for(const _0x285825 of _0x1d8a9b[_0xfc1789]['markersStart'])_0x5c0637['set'](_0x285825,{'start':_0x300013,'end':null});_0x42553d('isRemoveSuggestion',_0xfc1789,_0x300013,_0x26e7ca),_0x42553d('isAddSuggestion',_0xfc1789,_0x300013,_0x26e7ca),_0x42553d('isRemoved',_0xfc1789,_0x300013,_0x26e7ca),_0x42553d('isAdded',_0xfc1789,_0x300013,_0x26e7ca);for(const _0x4dd2e8 of _0x1d8a9b[_0xfc1789]['markersEnd']){const _0x571ab0=_0x5c0637['get'](_0x4dd2e8);_0x571ab0?_0x571ab0['end']=_0x26e7ca:_0x5c0637['set'](_0x4dd2e8,{'start':_0x26e7ca,'end':_0x26e7ca});}}for(const [_0x1a1f95,_0x5d586f]of _0x5c0637){const _0x5a14d9=this['editor']['model']['createRange'](_0x5d586f['start'],_0x5d586f['end']);_0x9a72d7['markers']['set'](_0x1a1f95,_0x5a14d9);}return _0x145d6a['sort']((_0x1a1aeb,_0x2f2373)=>{const _0x66f19e=_0x9a72d7['markers']['get']('revision:'+_0x1a1aeb['id']),_0x24f31d=_0x9a72d7['markers']['get']('revision:'+_0x2f2373['id']);return _0x66f19e['start']['isBefore'](_0x24f31d['start'])?-0x1:_0x66f19e['start']['isAfter'](_0x24f31d['start'])?0x1:_0x66f19e['end']['isBefore'](_0x24f31d['end'])?-0x1:_0x66f19e['end']['isAfter'](_0x24f31d['end'])?0x1:'add'===_0x1a1aeb['type']?-0x1:0x1;}),{'root':_0x9a72d7,'changes':_0x145d6a};function _0x42553d(_0x1663d5,_0x42afbc,_0x211b0b,_0x13e653){const _0x1155a7=!!_0x1d8a9b[_0x42afbc][_0x1663d5],_0x4753e0=_0x1155a7?_0x1d8a9b[_0x42afbc][_0x1663d5]['userId']:null,_0x36420a=_0x42afbc===_0x1d8a9b['length']-0x1,_0x585949=_0x49a5ca[_0x1663d5][0x0],_0x229ddf=_0x2766c8['isObject'](_0x1d8a9b[_0x42afbc]['item']);!_0x4a539c[_0x1663d5]&&_0x1155a7?_0x4a539c[_0x1663d5]={'start':_0x211b0b,'tapeItem':_0x1d8a9b[_0x42afbc],'userId':_0x4753e0,'type':_0x1663d5}:_0x4a539c[_0x1663d5]&&!_0x1155a7?(_0x4a539c[_0x1663d5]['end']=_0x211b0b,_0x4d1539(_0x4a539c[_0x1663d5]),_0x4a539c[_0x1663d5]=null):_0x4a539c[_0x1663d5]&&_0x1155a7&&_0x4a539c[_0x1663d5]['userId']!==_0x4753e0&&(_0x4a539c[_0x1663d5]['end']=_0x211b0b,_0x585949&&_0x585949['userId']===_0x4a539c[_0x1663d5]['userId']||_0x4d1539(_0x4a539c[_0x1663d5]),_0x4a539c[_0x1663d5]={'start':_0x211b0b,'tapeItem':_0x1d8a9b[_0x42afbc],'userId':_0x4753e0,'type':_0x1663d5}),_0x4a539c[_0x1663d5]&&_0x229ddf&&('elementStart'!==_0x1d8a9b[_0x42afbc]['type']||_0x585949&&_0x585949['userId']===_0x4753e0||_0x49a5ca[_0x1663d5]['unshift']({'userId':_0x4753e0,'object':_0x1d8a9b[_0x42afbc]['item'],'change':_0x4a539c[_0x1663d5]}),'elementEnd'===_0x1d8a9b[_0x42afbc]['type']&&_0x585949&&_0x585949['object']===_0x1d8a9b[_0x42afbc]['item']&&(_0x49a5ca[_0x1663d5]['shift'](),_0x4a539c[_0x1663d5]=_0x585949['change'])),_0x4a539c[_0x1663d5]&&_0x36420a&&(_0x4a539c[_0x1663d5]['end']=_0x13e653,_0x4d1539(_0x4a539c[_0x1663d5]),_0x4a539c[_0x1663d5]=null);}function _0x4d1539({start:_0xed5654,end:_0x1af883,tapeItem:_0x394f30,userId:_0x2f1f62,type:_0x20dcd0}){const _0x677485=_0x394f30['item'],_0x3470e2=_0xc9a570['schema']['isBlock'](_0x677485)&&!_0xc9a570['schema']['isLimit'](_0x677485),_0x268626=_0xed5654['nodeAfter']==_0x1af883['parent']&&_0x1af883['isAtStart'];if(_0x3470e2&&_0x268626)return;const _0x2e7468=_0xc9a570['createRange'](_0xed5654,_0x1af883),_0xcc18e7=_0x20a09c['get'](_0x2f1f62),_0x4c6721=new r({'author':_0xcc18e7,'type':'isAdded'==_0x20dcd0||'isAddSuggestion'==_0x20dcd0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x20dcd0||'isRemoveSuggestion'==_0x20dcd0},'createdAt':new Date(),'rootName':_0x878716});_0x145d6a['push'](_0x4c6721),_0x9a72d7['markers']['set']('revision:'+_0x4c6721['id'],_0x2e7468);}function _0x4ea167(_0x508ad0,_0x1662b4){const _0x109c3f=_0x508ad0['getAttributes'](),_0x4f3404=_0x1662b4['getAttributes']();for(const _0x504dc0 of _0x109c3f){if(_0x504dc0[0x1]!==_0x1662b4['getAttribute'](_0x504dc0[0x0]))return!0x1;_0x4f3404['next']();}return _0x4f3404['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x267c41=>{const _0x3dfcf7=_0x267c41['markerName']['split'](':')[0x1],_0x4f388a=this['_getChangeFromId'](_0x3dfcf7);if(!_0x4f388a)return null;const _0x17fb6f='add'==_0x4f388a['type']?'insertion':'deletion',_0x19697c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x17fb6f];return _0x4f388a['data']['isSuggestion']&&_0x19697c['push']('ck-suggestion-marker-'+_0x17fb6f+'-new'),this['activeChange']==_0x4f388a&&_0x19697c['push']('ck-suggestion-marker--active'),{'classes':_0x19697c,'attributes':{'data-change-id':_0x3dfcf7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xd151f=>{_0xd151f['on']('element:pre',(_0x2d1211,_0x311ea3,_0x413adf)=>{const _0x326ba1=_0x311ea3['viewItem']['getChild'](0x0);if(!_0x326ba1||!_0x326ba1['is']('element','code'))return;if(!_0x413adf['consumable']['consume'](_0x326ba1,{'attributes':['vid_start','vid_end']}))return;const _0x81f9e2=_0x311ea3['modelRange']['start']['nodeAfter'];_0x413adf['writer']['setAttribute']('vid_start',_0x326ba1['getAttribute']('vid_start'),_0x81f9e2),_0x413adf['writer']['setAttribute']('vid_end',_0x326ba1['getAttribute']('vid_end'),_0x81f9e2);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x142f58=>{_0x142f58['on']('element',(_0x1138d9,_0x85ec0d,_0x4cc574)=>{if(!_0x4cc574['consumable']['consume'](_0x85ec0d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x85ec0d['modelRange']['isCollapsed'])return;const _0x50ba85=_0x85ec0d['modelRange']['start']['nodeAfter'];_0x50ba85['hasAttribute']('vid_start')||_0x50ba85['hasAttribute']('vid')||(_0x4cc574['writer']['setAttribute']('vid_start',_0x85ec0d['viewItem']['getAttribute']('vid_start'),_0x50ba85),_0x4cc574['writer']['setAttribute']('vid_end',_0x85ec0d['viewItem']['getAttribute']('vid_end'),_0x50ba85));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x77e7cf=>_0x77e7cf['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x637207,[,_0x212370])=>{['vid_start','vid_end','vid']['includes'](_0x212370)&&(_0x637207['return']=!0x0,_0x637207['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x15e4ee=>{_0x15e4ee['on']('attribute:vid',(_0xc50d19,_0x31121e,_0x5b4423)=>{if('\x20'!=_0x31121e['item']['data']||_0x31121e['item']['parent']['maxOffset']>0x1)return;if(!_0x5b4423['consumable']['consume'](_0x31121e['item'],_0xc50d19['name']))return;const _0x20cc58=_0x5b4423['writer'],_0x37b2f9=_0x5b4423['mapper']['toViewRange'](_0x31121e['range']);_0x20cc58['wrap'](_0x37b2f9,_0x20cc58['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xf382a8){const _0x2295a2=_0xf382a8['plugins']['get']('RevisionViewer');return(_0x5b940d,_0x27efa3,_0x10d344)=>{const _0x4d676b=_0x27efa3['markerName']['split'](':')[0x1],_0x282d4e=_0x2295a2['_getChangeFromId'](_0x4d676b);if(!_0x282d4e)return null;const _0x35309e='add'==_0x282d4e['type']?'split':'merge';if(!_0x10d344['consumable']['test'](_0x27efa3['markerRange'],_0x5b940d['name']))return;const _0x478f50=_0x27efa3['markerRange']['getWalker'](),_0x5efa59=_0x27efa3['markerRange']['start'],_0x13db5c=_0xf382a8['model']['schema'];let _0x5c762a=null,_0x2b0cd2=null,_0x79fbc0=!0x1,_0x4dc92f=!0x1;for(const _0x56f6ac of _0x478f50){const _0x118117=_0x56f6ac['item'];_0x79fbc0=_0x79fbc0||_0x13db5c['isContent'](_0x118117);const _0x34a1cc=_0x10d344['mapper']['toViewElement'](_0x118117);if(_0x34a1cc&&_0x34a1cc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56f6ac['type']&&(_0x13db5c['isBlock'](_0x118117)&&!_0x13db5c['isLimit'](_0x118117)&&(_0x118117['nextSibling']||_0x5efa59['isAtEnd']?_0x5c762a&&_0x5c762a['parent']==_0x118117||(_0x5c762a=_0x118117,_0x51bedd(_0x56f6ac['previousPosition']),_0x4dc92f=!0x0):_0x2b0cd2=_0x2b0cd2||_0x56f6ac['previousPosition']));}function _0x51bedd(_0x509d01){const _0x463f25=_0x10d344['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35309e}),_0x4947cd=_0x10d344['mapper']['toViewPosition'](_0x509d01);_0x282d4e['data']['isSuggestion']&&_0x10d344['writer']['addClass']('ck-suggestion-marker-'+_0x35309e+'-new',_0x463f25),_0x2295a2['activeChange']==_0x282d4e&&_0x10d344['writer']['addClass']('ck-suggestion-marker--active',_0x463f25),_0x10d344['writer']['insert'](_0x4947cd,_0x463f25),_0x10d344['mapper']['bindElementToMarker'](_0x463f25,_0x27efa3['markerName']);}_0x79fbc0||_0x4dc92f||!_0x2b0cd2||_0x51bedd(_0x2b0cd2);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x51d5,_0x363526,_0xa084db)=>{const _0x4fa9ef=_0xa084db['mapper']['markerNameToElements'](_0x363526['markerName']);if(_0x4fa9ef){for(const _0x2e7a1d of _0x4fa9ef)(_0x2e7a1d['hasClass']('ck-suggestion-marker-split')||_0x2e7a1d['hasClass']('ck-suggestion-marker-merge'))&&(_0xa084db['mapper']['unbindElementFromMarkerName'](_0x2e7a1d,_0x363526['markerName']),_0xa084db['writer']['remove'](_0x2e7a1d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2d3701,_0x4ce29a,_0x353b2d)=>{const _0x20e635=_0x4ce29a['markerName']['split'](':')[0x1],_0x2f4ea6=this['_getChangeFromId'](_0x20e635);if(!_0x2f4ea6)return null;const _0x10a752='add'==_0x2f4ea6['type']?'split':'merge';if(_0x353b2d['consumable']['test'](_0x4ce29a['markerRange'],_0x2d3701['name']))for(const _0x5cb7c9 of _0x4ce29a['markerRange']['getItems']()){if(!_0x5cb7c9['is']('element','softBreak'))continue;const _0x428b13=_0x353b2d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x10a752}),_0x41b298=_0x353b2d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5cb7c9));_0x2f4ea6['data']['isSuggestion']&&_0x353b2d['writer']['addClass']('ck-suggestion-marker-'+_0x10a752+'-new',_0x428b13),this['activeChange']==_0x2f4ea6&&_0x353b2d['writer']['addClass']('ck-suggestion-marker--active',_0x428b13),_0x353b2d['writer']['insert'](_0x41b298,_0x428b13),_0x353b2d['mapper']['bindElementToMarker'](_0x428b13,_0x4ce29a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x529f53=>{for(const _0x1192c7 of this['editor']['model']['document']['getRootNames']()){const _0x2563da=this['editor']['model']['document']['getRoot'](_0x1192c7),_0x43cbfe=this['editor']['editing']['view']['document']['getRoot'](_0x1192c7);if(_0x43cbfe){const _0x29d2c9=_0x2563da['getAttribute']('revisionHistoryAttachChange');if(_0x529f53['removeAttribute']('data-change-id',_0x43cbfe),_0x529f53['removeClass']('ck-revision-history-root-add',_0x43cbfe),_0x529f53['removeClass']('ck-revision-history-root-remove',_0x43cbfe),_0x529f53['removeClass']('ck-revision-history-root--active',_0x43cbfe),_0x29d2c9){const _0x28f569=this['_getChangeFromId'](_0x29d2c9);if(!_0x28f569)return null;_0x529f53['setAttribute']('data-change-id',_0x29d2c9,_0x43cbfe),_0x529f53['addClass']('ck-revision-history-root-'+_0x28f569['type'],_0x43cbfe),this['activeChange']==_0x28f569&&_0x529f53['addClass']('ck-revision-history-root--active',_0x43cbfe);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x513e5b=>'revision-comment:'+_0x513e5b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4b6839=>'revision-suggestion:'+_0x4b6839,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x14a434=>({'name':'suggestion:'+_0x14a434,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x87d55f=>{const _0x1eefdb=_0x87d55f['markerName']['split'](':')[0x1];return'insertion'!=_0x1eefdb&&'deletion'!=_0x1eefdb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1eefdb]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3ebc31,_0x1d9d73,_0x1ee281)=>{const _0x18936a=_0x1ee281['mapper']['markerNameToElements'](_0x1d9d73['markerName']);if(_0x18936a){for(const _0x268324 of _0x18936a)_0x268324['is']('uiElement')&&(_0x1ee281['mapper']['unbindElementFromMarkerName'](_0x268324,_0x1d9d73['markerName']),_0x1ee281['writer']['remove'](_0x268324));}},{'priority':'high'});}['_getChangeFromId'](_0x1bfb58){return this['_changeIdToChange']['get'](_0x1bfb58);}['_getViewForChange'](_0x34cc0e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x34cc0e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5950cc,_0x69f746,_0x4d5200,_0x24781e)=>{_0x24781e&&this['_balloon']['remove'](_0x24781e),_0x4d5200&&(this['_balloon']['add']({'view':_0x4d5200,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3e3c5a=this['editor']['editing'],_0x2b2772=this['_getChangeFromId'](_0x4d5200['changeId']);let _0x50bf6f;if(_0x2b2772['data']['isOnRoot']){const _0x257324=_0x3e3c5a['view']['getDomRoot'](_0x2b2772['rootName']);_0x50bf6f=Array['from'](_0x257324['getClientRects']());}else{const _0x117c52=this['editor']['model']['markers']['get']('revision:'+_0x4d5200['changeId']);_0x50bf6f=Array['from'](_0x3e3c5a['mapper']['markerNameToElements'](_0x117c52['name']))['map'](_0x121b6a=>_0x3e3c5a['view']['domConverter']['mapViewToDom'](_0x121b6a))['map'](_0xcba5f2=>Array['from'](_0xcba5f2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x50bf6f[0x0];return _0x50bf6f['find'](_0x59f7b7=>_0x59f7b7['top']-0x3<=this['_activeViewTarget']['y']&&_0x59f7b7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x59f7b7['left']-0x3<=this['_activeViewTarget']['x']&&_0x59f7b7['right']+0x3>=this['_activeViewTarget']['x'])||_0x50bf6f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x360c9a,_0x5b7e60,_0x32e38d,_0x5c24d4)=>{this['activeView']=_0x32e38d?this['_getViewForChange'](_0x32e38d):null,this['editor']['model']['change'](()=>{const _0x2370d7=this['editor']['editing'];_0x5c24d4&&(_0x5c24d4['data']['isOnRoot']?_0x2370d7['view']['change'](_0x527f62=>{_0x527f62['removeClass']('ck-revision-history-root--active',_0x2370d7['view']['document']['getRoot'](_0x5c24d4['rootName']));}):_0x2370d7['reconvertMarker']('revision:'+_0x5c24d4['id'])),_0x32e38d&&(_0x32e38d['data']['isOnRoot']?_0x2370d7['view']['change'](_0x69ab31=>{_0x69ab31['addClass']('ck-revision-history-root--active',_0x2370d7['view']['document']['getRoot'](_0x32e38d['rootName']));}):_0x2370d7['reconvertMarker']('revision:'+_0x32e38d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x580dd0,_0x2e80f5)=>{if(this['activeChange'])return;const _0x25ccfc=this['_findChangeIdFromDomTarget'](_0x2e80f5['target']),_0x5eb457=this['_changeIdToChange']['get'](_0x25ccfc);_0x5eb457?(this['_activeViewTarget']={'x':_0x2e80f5['domEvent']['x'],'y':_0x2e80f5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5eb457)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5d701c,_0x3bf8a2)=>{const _0x5717d7=this['_findChangeIdFromDomTarget'](_0x3bf8a2['target']),_0x461087=this['_changeIdToChange']['get'](_0x5717d7);_0x461087?(this['_activeViewTarget']={'x':_0x3bf8a2['domEvent']['x'],'y':_0x3bf8a2['domEvent']['y']},_0x461087===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x461087):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x35aaba){do{const _0x38d5e4=_0x35aaba['getAttribute']('data-change-id');if(_0x38d5e4)return _0x38d5e4;_0x35aaba=_0x35aaba['parent'];}while(_0x35aaba);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2d33ea=>{for(const _0x39bc9d of this['editor']['model']['markers'])_0x2d33ea['removeMarker'](_0x39bc9d);});}}function X(_0x4bf3c0,_0x394bdc){return(_0x58c0ac,_0xd2d6ea,_0x4bbf9f)=>{if(!_0x4bbf9f['consumable']['test'](_0xd2d6ea['markerRange'],_0x58c0ac['name']))return;const _0x23fa0d=_0xd2d6ea['markerRange']['getWalker'](),_0x516c5f=_0xd2d6ea['markerRange']['start'],_0x28f70f=_0x4bf3c0['model']['schema'];let _0xcdd84c=null,_0x2d87bb=null,_0x2cf390=!0x1,_0x29378b=!0x1;for(const _0x19cec4 of _0x23fa0d){const _0x4397c1=_0x19cec4['item'];_0x2cf390=_0x2cf390||_0x28f70f['isContent'](_0x4397c1);const _0x120387=_0x4bbf9f['mapper']['toViewElement'](_0x4397c1);if(_0x120387&&_0x120387['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x19cec4['type']&&(_0x28f70f['isBlock'](_0x4397c1)&&!_0x28f70f['isLimit'](_0x4397c1)&&(_0x4397c1['nextSibling']||_0x516c5f['isAtEnd']?_0xcdd84c&&_0xcdd84c['parent']==_0x4397c1||(_0xcdd84c=_0x4397c1,_0x157e53(_0x19cec4['previousPosition']),_0x29378b=!0x0):_0x2d87bb=_0x2d87bb||_0x19cec4['previousPosition']));}function _0x157e53(_0x366fa5){const _0x1464ed=_0x4bbf9f['mapper']['toViewPosition'](_0x366fa5),_0x40f40b=_0x4bbf9f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x394bdc});_0x4bbf9f['writer']['insert'](_0x1464ed,_0x40f40b),_0x4bbf9f['mapper']['bindElementToMarker'](_0x40f40b,_0xd2d6ea['markerName']);}_0x2cf390||_0x29378b||!_0x2d87bb||_0x157e53(_0x2d87bb);};}class wt extends _0x423d75{constructor(_0x2d377f){super(_0x2d377f);const _0x1e2b64=_0x2d377f['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1e2b64,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1e2b64,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5bd4fb=this['editor'],_0x25d116=_0x5bd4fb['plugins']['get'](m),_0x442046=_0x25d116['isReady']?_0x25d116['diff']['newRevisionId']:null;_0x5bd4fb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x442046);}['refresh'](){const {isReady:_0xc9ee3e,isEnabled:_0x48d441,repository:_0x556b14,diff:_0x1aa2b9}=this['editor']['plugins']['get'](m),_0x3d0f7d=_0x1aa2b9&&_0x556b14['getLaterVisibleRevision'](_0x1aa2b9['newRevisionId']);this['isEnabled']=_0xc9ee3e&&_0x48d441&&Boolean(_0x3d0f7d);}}class pt extends _0x423d75{['_step'];constructor(_0xaf7b73,{direction:_0x59eab9}){super(_0xaf7b73);const _0x50ce97=_0xaf7b73['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x59eab9?0x1:-0x1,this['listenTo'](_0x50ce97,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x50ce97,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x50ce97,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x39dfb2=this['editor'],_0x3eebe6=_0x39dfb2['plugins']['get'](m),{isNavigationMode:_0x5caea3,currentChangeNumber:_0x2cfab5}=_0x3eebe6;let _0x42cd2c;if(_0x3eebe6['activeChange']=_0x5caea3?_0x3eebe6['diff']['changes']['get'](_0x2cfab5+this['_step']):_0x3eebe6['diff']['changes']['first'],_0x3eebe6['activeChange']['data']['isOnRoot'])_0x42cd2c=_0x39dfb2['editing']['view']['getDomRoot'](_0x3eebe6['activeChange']['rootName']);else{const _0x298e0c=_0x39dfb2['model']['markers']['get']('revision:'+_0x3eebe6['activeChange']['id']);_0x42cd2c=_0x194f13(_0x39dfb2['editing'],_0x298e0c);}_0x55d41c({'target':_0x42cd2c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x53ac8b,currentChangeNumber:_0x253a5a,numberOfChanges:_0x11df9e,isReady:_0x220b5b,isEnabled:_0x4ddf17}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x4ddf17&&_0x220b5b&&_0x11df9e)&&(!_0x53ac8b||(0x1===this['_step']?_0x253a5a<_0x11df9e-0x1:_0x253a5a>0x0));}}class _i extends _0xd7064f{constructor(_0x6d6b3c){super(_0x6d6b3c);const _0x2a219a=this['bindTemplate'],_0x3f7890=new _0x1b1410(_0x6d6b3c),_0x45e43d=new _0x1b1410(_0x6d6b3c);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',(_0x3aaaf8,_0x4559e9)=>_0x3aaaf8&&_0x4559e9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5f43b2,_0x52768f,_0x3b1aae,_0x16b229)=>{if(!_0x5f43b2)return g(_0x6d6b3c,'Loading...');if(!_0x3b1aae)return g(_0x6d6b3c,'No\x20changes');const _0x55aadf=g(_0x6d6b3c,'NUMBER_OF_CHANGES',_0x3b1aae);return _0x16b229?g(_0x6d6b3c,'X_OF_Y_CHANGES',[_0x52768f+0x1,_0x3b1aae]):_0x55aadf;}),_0x3f7890['set']({'label':g(_0x6d6b3c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4ebd8e}),_0x45e43d['set']({'label':g(_0x6d6b3c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x79ad34}),_0x3f7890['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x45e43d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f7890['on']('execute',()=>this['fire']('execute','backward')),_0x45e43d['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',_0x2a219a['if']('_isStatusLabelVisible','ck-hidden',_0x284442=>!_0x284442)]},'children':[{'text':_0x2a219a['to']('isNavigationMode',_0x2c808e=>_0x2c808e?g(_0x6d6b3c,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x6d6b3c,'Total')+':\x20')}]},{'text':_0x2a219a['to']('_statusText')}]},new _0x595ece(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f7890,_0x45e43d]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0xfc6625{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2e2458=this['editor']['editing']['view'];_0x2e2458['change'](_0x544e9a=>{for(const _0x2faab1 of _0x2e2458['document']['roots'])_0x544e9a['addClass'](ce,_0x2faab1);});}['hide'](){const _0xd18606=this['editor']['editing']['view'];_0xd18606['change'](_0x48e9c0=>{for(const _0x11ca42 of _0xd18606['document']['roots'])_0x48e9c0['removeClass'](ce,_0x11ca42);});}}class R extends _0xfc6625{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x27a870=this['editor'],_0x4f62de=_0x27a870['plugins']['get'](m),_0x4c463c=_0x27a870['plugins']['get'](le);_0x27a870['ui']['componentFactory']['add']('exitToEditing',_0x2939b1=>{const _0x43e824=new _0x1b1410(_0x2939b1);return _0x43e824['set']({'label':g(_0x2939b1,'Back\x20to\x20editing'),'icon':_0x3698c2,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x43e824,'execute',()=>{_0x27a870['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x43e824;}),_0x27a870['ui']['componentFactory']['add']('restoreRevision',_0x768353=>{const _0x5d5084=new _0x1b1410(_0x768353);return _0x5d5084['set']({'label':g(_0x768353,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5d5084['bind']('isEnabled')['to'](_0x27a870['commands']['get']('restoreRevision')),this['listenTo'](_0x5d5084,'execute',()=>_0x27a870['execute']('restoreRevision')),_0x5d5084;}),_0x27a870['ui']['componentFactory']['add']('changesNavigation',_0x18299b=>{const _0x3b0039=new _i(_0x18299b),_0x23ed4e=_0x27a870['commands']['get']('showPreviousChange'),_0x1de6a0=_0x27a870['commands']['get']('showNextChange');return _0x3b0039['bind']('isBackwardNavigationEnabled')['to'](_0x23ed4e,'isEnabled'),_0x3b0039['bind']('isForwardNavigationEnabled')['to'](_0x1de6a0,'isEnabled'),_0x3b0039['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4f62de),this['listenTo'](_0x3b0039,'execute',(_0x483054,_0x5cdd7f)=>{_0x27a870['execute']('forward'===_0x5cdd7f?'showNextChange':'showPreviousChange');}),_0x3b0039;}),_0x4c463c['show'](),_0x4f62de['on']('change:isReady',(_0x48f5dc,_0x16bc9d,_0x4e376e)=>{_0x4e376e?_0x4c463c['hide']():_0x4c463c['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x43ae98,_0xf2749c){super(_0x43ae98,_0xf2749c);const _0x5b596c=this['bindTemplate'];this['set']({'label':g(_0x43ae98,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x43ae98,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5b596c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3e73eb=this['fieldView']['element'];this['_tooltipString']=_0x3e73eb['scrollWidth']>_0x3e73eb['clientWidth']&&_0x3e73eb['value']||'';}}class oi extends _0xd7064f{constructor(_0x2bf497,_0x50063b,_0x4d537a){super(_0x2bf497);const _0x5afcc1=new _0x692cc8();_0x5afcc1['set']({'content':_0x3dd8eb,'viewBox':'0\x200\x2011\x2010'});const _0x64413=['ck','ck-revision-history-sidebar__revision-author'];_0x4d537a&&_0x64413['push']('ck-revision-history-sidebar__revision-author_creator');const _0x28d890=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x2bf497,_0x4d537a?'Revision\x20creator':'Revision\x20author')},'children':[_0x5afcc1,_0x50063b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x64413},'children':_0x28d890});}}function ni(_0x5e1d60,_0x2c05ba){const _0x3edca9=_0x5e1d60['bindTemplate'],_0x32a197=_0x5e1d60['locale'],_0x34f781=_0x1f00c4(_0x32a197);_0x34f781['panelPosition']='sw';const _0x557de1=function(_0x352a46,_0x2aaf1e){const _0x234fe7=function(_0x2169df,_0x2df448){const _0x3aa2b4=_0x2169df['locale'],_0x4430a0={'Compare\x20against\x20selected':g(_0x3aa2b4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x3aa2b4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x3aa2b4,'Restore\x20this\x20revision')};return _0x2df448['map'](_0x55d2db=>{const _0x2e7275=_0x4430a0[_0x55d2db['name']];return _0x2e7275&&_0x2e7275!==_0x55d2db['name']&&(_0x55d2db['name']=_0x2e7275),_0x55d2db;});}(_0x352a46,_0x2aaf1e),_0x3ee3aa=new _0xfacc30();for(const _0x4f0093 of _0x234fe7){const _0x1d0571={'type':'button','model':new to({'label':_0x4f0093['name'],'class':_0x4f0093['class'],'withText':!0x0,'role':'menuitem','_action':_0x4f0093['action']})};_0x1d0571['model']['bind']('isEnabled')['to'](_0x352a46,'isActionsDropdownOpen',_0x3aebc0=>'function'!=typeof _0x4f0093['isEnabled']||(!_0x3aebc0||_0x4f0093['isEnabled'](_0x352a46))),_0x3ee3aa['add'](_0x1d0571);}return _0x3ee3aa;}(_0x5e1d60,_0x2c05ba);return _0x5e1d60['bind']('isActionsDropdownOpen')['to'](_0x34f781,'isOpen'),_0x34f781['buttonView']['set']({'label':g(_0x32a197,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x26134e}),_0x34f781['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3edca9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3edca9['to'](_0xb0ef98=>_0xb0ef98['stopPropagation']())}}),_0x34f781['on']('execute',_0x408d73=>{_0x5e1d60['isReady']&&'function'==typeof _0x408d73['source']['_action']&&_0x408d73['source']['_action'](_0x5e1d60);}),_0x567999(_0x34f781,_0x557de1,{'role':'menu'}),_0x34f781['listenTo'](_0x5e1d60,'change:isActionsDropdownOpen',(_0x3ea2c1,_0x31690e,_0x2eb9e0)=>{if(_0x2eb9e0)for(const _0x2e627f of _0x34f781['listView']['items']){const _0x32ef8f=_0x2e627f['children']['first'],_0x548ce2=_0x2c05ba['find'](_0x5824a7=>_0x5824a7['action']===_0x32ef8f['_action'])['isVisible'];_0x2e627f['isVisible']=void 0x0===_0x548ce2||_0x548ce2(_0x5e1d60);}}),_0x34f781;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x5c5ebf(_0xd7064f){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x328903,_0x43d256,_0x4091f4,_0x1ee34d){super(_0x328903);const _0x449176=this['bindTemplate'],_0x4646ec=function(_0xce82e,_0x43a70f){const _0x2fcc9f=Array['from'](_0x43a70f['authors'])['filter'](_0x134bc1=>_0x134bc1!=_0x43a70f['creator']);return _0x43a70f['creator']&&_0x2fcc9f['unshift'](_0x43a70f['creator']),_0x2fcc9f['map'](_0x22a862=>new oi(_0xce82e,_0x22a862,_0x22a862==_0x43a70f['creator']));}(_0x328903,_0x43d256);this['id']=_0x43d256['id'],this['_revision']=_0x43d256,this['_requireRevisionName']=_0x1ee34d,this['bind']('name','createdAt')['to'](_0x43d256),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x59b56e=>{return _0x59c608=_0x328903['uiLanguage'],(_0xec1b5a=_0x59b56e)['toLocaleDateString'](_0x59c608,{'month':'long','day':'numeric'})+',\x20'+_0xec1b5a['toLocaleTimeString'](_0x59c608,{'hour':'numeric','minute':'numeric'});var _0x59c608,_0xec1b5a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x328903,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x157150=>_0x157150||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5371f8,_0xdfa772)=>_0x5371f8&&_0xdfa772),this['revisionActionsView']=_0x4091f4&&_0x4091f4['length']?ni(this,_0x4091f4):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x449176['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x449176['if']('isEnabled','ck-disabled',_0x2827c8=>!_0x2827c8),_0x449176['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x449176['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x449176['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':_0x449176['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':_0x4646ec}]},this['revisionActionsView']],'on':{'click':_0x449176['to'](_0x80e574=>{_0x80e574['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x168e69=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x168e69,'change',()=>{this['_requireRevisionName']&&!_0x168e69['value']||this['fire']('setName',{'id':this['id'],'name':_0x168e69['value']}),_0x168e69['value']||(_0x168e69['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x1fdd64,_0x383040){const _0x4f1e20=_0x538e0a['fromJSDate'](_0x1fdd64)['setLocale'](_0x383040),_0x444edf=_0x538e0a['local'](),_0x168123=_0x444edf['minus']({'days':0x1})['startOf']('day');let _0x3ce24d,_0x48c7d2;return _0x4f1e20['hasSame'](_0x444edf,'day')?(_0x3ce24d=_0x4f1e20['startOf']('day')['toJSDate'](),_0x48c7d2=_0x4f1e20['toRelativeCalendar']()):_0x4f1e20['hasSame'](_0x168123,'day')?(_0x3ce24d=_0x168123['toJSDate'](),_0x48c7d2=_0x4f1e20['toRelativeCalendar']()):_0x4f1e20['hasSame'](_0x444edf,'week')?(_0x3ce24d=_0x4f1e20['startOf']('week')['toJSDate'](),_0x48c7d2=_0x4f1e20['weekdayLong']||''):_0x4f1e20['hasSame'](_0x444edf,'year')?(_0x3ce24d=_0x4f1e20['startOf']('month')['toJSDate'](),_0x48c7d2=_0x4f1e20['monthLong']||''):(_0x3ce24d=_0x4f1e20['startOf']('year')['toJSDate'](),_0x48c7d2=String(_0x4f1e20['year'])),{'startDate':_0x3ce24d,'localizedPeriodName':_0x48c7d2};}class mi extends _0xd7064f{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x444e4e,_0x3a9f50,_0x130896,_0x363bbd){super(_0x444e4e);const _0xaef3f8=vi(_0x3a9f50,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3a9f50,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x130896,this['_requireRevisionName']=_0x363bbd,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':_0xaef3f8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x37c31a){const _0x2b603b=new ai(this['locale'],_0x37c31a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2b603b);}['removeRevision'](_0x548faf){const _0x2f3f4f=this['revisionViews']['find'](_0x287132=>_0x287132['id']===_0x548faf['id']);this['revisionViews']['remove'](_0x2f3f4f);}}class as extends _0xd7064f{constructor(_0x363f42){super(_0x363f42);const _0x2ef0e2=new _0x692cc8();_0x2ef0e2['content']=_0x21efd2,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2ef0e2,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x363f42,'Revision\x20history')]}]});}}class di extends _0xd7064f{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x112da0,_0x3f3a9c,_0xf3aa72,_0x1d824b){super(_0x112da0);const _0x5f443b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3f3a9c,this['_revisionActions']=_0xf3aa72,this['_requireRevisionName']=_0x1d824b,this['on']('select',(_0x7ed6f9,_0x4adeaf)=>{this['fire']('revisionSelected',_0x4adeaf);}),this['on']('setName',(_0x98b901,_0x1e2501)=>{this['fire']('revisionSetName',_0x1e2501);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x112da0),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5f443b['if']('isEnabled','ck-disabled',_0x4c8836=>!_0x4c8836)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x48ac9b of this['_revisions'])this['_addRevision'](_0x48ac9b);this['_revisions']['on']('add',(_0x330467,_0x517a9b)=>{this['_addRevision'](_0x517a9b);}),this['_revisions']['on']('remove',(_0x47370e,_0x1ecfce)=>{this['_removeRevision'](_0x1ecfce);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x23b082=>_0x23b082['revisionViews']['map'](_0x356f14=>_0x356f14))['flat']();}['selectRevision'](_0x12427e){for(const _0x35fe2f of this['revisionViews'])_0x12427e&&_0x12427e['id']===_0x35fe2f['id']?_0x35fe2f['select']():_0x35fe2f['deselect']();}['highlightRevisions'](_0x2068e0){for(const _0x1d69b3 of this['revisionViews'])_0x2068e0['some'](({id:_0x23efc0})=>_0x23efc0===_0x1d69b3['id'])?_0x1d69b3['highlight']():_0x1d69b3['unhighlight']();}['_addRevision'](_0x55faba){const _0x102e1e=vi(_0x55faba['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x41f246=this['timePeriodViews']['get'](0x0);_0x41f246&&_0x41f246['startDate']['getTime']()===_0x102e1e['getTime']()||(_0x41f246=new mi(this['locale'],_0x102e1e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x41f246)),_0x41f246['addRevision'](_0x55faba);}['_removeRevision'](_0x57bc8d){const _0x545c62=vi(_0x57bc8d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x545c62)['removeRevision'](_0x57bc8d);}['_getTimePeriodViewByStartDate'](_0x385e54){return this['timePeriodViews']['find'](_0x4bbb54=>_0x4bbb54['startDate']['getTime']()===_0x385e54['getTime']());}}class d extends _0xfc6625{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x2f6c9c){super(_0x2f6c9c),this['_revisionViewer']=_0x2f6c9c['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x273b80=this['_revisionsRepository']['_revisions'],_0x59bb54=this['_createRevisionActions'](),_0x1252b4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x273b80,_0x59bb54,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',(_0xa4332d,_0x4524cb)=>{_0x4524cb['revisionViews']['on']('add',(_0x5c0b49,_0x121653)=>{_0x121653['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)),_0x1252b4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x29118f=this['_revisionsRepository']['getRevision'](0x0);if(_0x29118f){const _0x50692e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x29118f['id']);this['_revisionViewer']['compare'](_0x29118f,_0x50692e);}}['_handleRevisionSelected'](_0x4c3ce6,_0x23daa1){const _0x24abb7=this['_revisionsRepository']['getRevision'](_0x23daa1['id']),_0x4636c8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x24abb7['id']);this['_revisionViewer']['compare'](_0x24abb7,_0x4636c8);}['_handleRevisionSetName'](_0x1fc15a,_0xe19e3c){this['_revisionsRepository']['getRevision'](_0xe19e3c['id'])['setName'](_0xe19e3c['name']);}['_handleDiffChange'](_0x2fbcf8,_0x572c46,_0x213267){const _0x3eed93=this['_revisionsRepository']['getRevisionsInDiff'](_0x213267);_0x3eed93['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3eed93),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3eed93[0x0]));}['_createRevisionActions'](){const _0x3ee0f6=this['editor'],_0x3b5c62=d['availableRevisionActions'],_0x35f98a=_0x3ee0f6['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x35f98a['length'])return _0x35f98a['map'](_0x8cf68c=>{const _0x5bf216='string'==typeof _0x8cf68c?Object['assign']({},_0x3b5c62[_0x8cf68c]):_0x8cf68c;return _0x5bf216['action']=_0x5bf216['action']['bind'](this,_0x3ee0f6),_0x5bf216['isVisible']&&(_0x5bf216['isVisible']=_0x5bf216['isVisible']['bind'](this,_0x3ee0f6)),_0x5bf216;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ab3a2},_0x5ee93)=>{const _0x788e5=_0x5ab3a2['get'](m),_0x2a422f=_0x788e5['repository'];let _0x48cfaf=_0x788e5['diff']['newRevisionId'],_0x9acdd4=_0x5ee93['id'];_0x2a422f['getIndex'](_0x48cfaf)>_0x2a422f['getIndex'](_0x9acdd4)&&([_0x48cfaf,_0x9acdd4]=[_0x9acdd4,_0x48cfaf]),_0x788e5['compare'](_0x48cfaf,_0x9acdd4);},'isVisible':({plugins:_0x56a1b5},_0x2d3d36)=>{const _0x68d592=_0x56a1b5['get'](m);return!(_0x68d592['repository']['getRevisionsInDiff'](_0x68d592['diff'])['length']>0x2)&&!_0x2d3d36['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5bd3a7,{id:_0x368a4f})=>{_0x5bd3a7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x368a4f);},'isVisible':({plugins:_0x277929},_0x338614)=>!!_0x277929['get'](m)['repository']['getLaterVisibleRevision'](_0x338614['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2b158e},{id:_0x2904dd,revisionNameView:_0x46a415})=>{const _0x25e292=_0x2b158e['get'](m),_0x4d6267=_0x25e292['repository']['getEarlierVisibleRevision'](_0x2904dd);_0x25e292['compare'](_0x2904dd,_0x4d6267),_0x46a415['focus'](),_0x46a415['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x59d3e3,_0x2caf58){super(_0x59d3e3),this['_view']=_0x2caf58,this['_toolbarConfig']=et(_0x59d3e3['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x59afef){const _0x4aa2de=this['editor'],_0x4d039b=this['view'],_0x2ec597=_0x4aa2de['editing']['view'],_0x2316b8=_0x4d039b['editable'],_0x3da480=_0x2ec597['document']['getRoot']();_0x2316b8['name']=_0x3da480['rootName'],_0x4d039b['render']();const _0x516b47=_0x2316b8['element'];this['setEditableElement'](_0x2316b8['name'],_0x516b47),_0x4d039b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2ec597['attachDomRoot'](_0x516b47),this['_elementReplacer']['replace'](_0x59afef,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x34f555=this['view'],_0x4c9ec4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4c9ec4['detachDomRoot'](_0x34f555['editable']['name']),_0x34f555['destroy']();}['_initToolbar'](){const _0x4f4824=this['view'];_0x4f4824['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4f4824['stickyPanel']['limiterElement']=_0x4f4824['element'],_0x4f4824['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x7f619b})=>_0x7f619b),_0x4f4824['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4f4824['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x506e30,_0x3bda42,_0xbc6f71={}){super(_0x506e30),this['stickyPanel']=new ht(_0x506e30),this['toolbar']=new dt(_0x506e30,{'shouldGroupWhenFull':_0xbc6f71['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x506e30,_0x3bda42);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- _0xbeea5a(_0x3dfc7f){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1474b7,_0x3c06ce){super(_0x3c06ce),this['sourceElement']=_0x1474b7,this['model']['document']['createRoot']();const _0x48a714=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x48a714);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x49eabf,_0x4f8b61){const _0x20a9c8=new this(_0x49eabf,_0x4f8b61);return await _0x20a9c8['initPlugins'](),await _0x20a9c8['ui']['init'](_0x49eabf),await _0x20a9c8['data']['init'](_0x20a9c8['config']['get']('initialData')||''),_0x20a9c8['fire']('ready'),_0x20a9c8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x506da8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb45747){function _0xed1cbf(_0x258024){return _0x258024['map'](_0x595074=>String['fromCharCode'](_0x595074))['join']('');}super(_0xb45747),this['result']='end',_0xb45747[_0xed1cbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xed1cbf([0x76,0x69,0x65,0x77])][_0xed1cbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xed1cbf([0x61,0x75,0x74,0x6f]),_0xb45747[_0xed1cbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xed1cbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xed1cbf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xed1cbf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xed1cbf([0x6f,0x6b])});}}class k extends _0x506da8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x31c655){if(super(_0x31c655),!this['editor']['config']['get']('revisionHistory'))throw new _0xe12093('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xd53261=>this['_showRevisionViewer']({..._0xd53261,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1ad3f6=>this['_closeRevisionViewer'](_0x1ad3f6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x381ec9=>this['_restoreRevision'](_0x381ec9)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x14494b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x14494b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x481f67){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x481f67);}['getRevision'](_0x3caad6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3caad6);}['getRevisions'](_0x3253f1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3253f1||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x74e1f3=this['editor'],_0x40307=_0x2e9595(_0x74e1f3,p),_0x56fc38=_0x74e1f3['plugins']['get']('RevisionTracker'),_0x49fa2f=_0x74e1f3['plugins']['get']('Users')['users'];return _0x40307['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x40307['lazyRoots'],(_0x40307['plugins']['push'](_t,m,R,class extends _0x506da8{static get['requires'](){return[m,'Users'];}['init'](){const _0x5eab95=this['editor']['plugins']['get']('Users');for(const _0x368ad9 of _0x49fa2f)_0x368ad9['isAnonymous']||_0x5eab95['getUser'](_0x368ad9['id'])||_0x5eab95['addUser'](_0x368ad9);const _0x1cc9dc=_0x56fc38['repository']['getRevisions']();let _0xce30ea=null;const _0x2bda01=this['editor']['plugins']['get']('RevisionViewer');_0x2bda01['adapter']=_0x56fc38['adapter'],_0x2bda01['bind']('isEnabled')['to'](_0x56fc38),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x74e1f3,'isReadOnly',_0x58f7fa=>!_0x58f7fa);for(const _0x196137 of _0x1cc9dc){const _0x144eb2=null===_0x196137['creator'];if(_0x144eb2&&_0x196137['toVersion']===_0x196137['fromVersion'])continue;const _0x2d4271=_0x196137['toJSON']();_0x2bda01['addRevisionData'](_0x2d4271,(_0x26e884,_0x10a6f0,_0x2223ee)=>{if(_0x144eb2){if(_0xce30ea)_0xce30ea['_update'](_0x26e884,_0x10a6f0);else{if(!_0x10a6f0){const _0x5e1dc4=_0x2223ee['toJSON']();_0x5e1dc4['id']=_0x2a811c(),_0x56fc38['saveRevision'](_0x5e1dc4,_0x2223ee['toVersion'])['then'](_0x5b0331=>{_0xce30ea=_0x5b0331;});}}}else _0x196137['_update'](_0x26e884,_0x10a6f0);});}}},d),_0x40307);}['_enhanceShowRevisionViewerCallback'](){const _0x534b03=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x545dca=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x46baa3=this['editor']['plugins']['get']('Autosave');await _0x46baa3['save']();}else await _0x545dca['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x22aa81=this['editor']['plugins']['get']('Dialog');_0x22aa81['isOpen']&&_0x22aa81['hide']();}const _0x119594=this['_getRevisionViewerEditorConfig']();return _0x534b03(_0x119594)['then'](_0x3f01a0=>{return(this['_viewerEditor']=_0x3f01a0,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'),_0x3f01a0);})['catch'](_0x9d878f=>(console['error'](_0x9d878f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2a3bcd=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(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['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2a3bcd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x548502=this['editor']['plugins']['get']('Annotations');_0x548502['refreshVisibility'](),_0x548502['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4f0e68){const _0x2b8855=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x212d6b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2e67f5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2e67f5,_0x4f0e68)['then'](_0x20e56b=>(_0x212d6b['style']['display']='block',_0x2b8855['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x20e56b));}['_closeRevisionViewer'](_0x5c9c15){const _0x33fa03=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x33fa03['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5c9c15['destroy']();}async['_restoreRevision'](_0x733a86){const _0x3d85a8=this['editor'],_0x2a7557=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4fe61e=_0x3d85a8['plugins']['get']('RevisionTracker'),_0x349a08=_0x3d85a8['plugins']['get']('RevisionHistoryUtils'),_0x4805b9=_0x2a7557['repository']['getRevision'](_0x733a86);let _0x3b5b5e,_0x54ec64,_0x4133bd;try{await _0x349a08['loadRevisionData'](_0x4805b9,this['adapter']),_0x3b5b5e=_0x349a08['getRevisionDocumentData'](_0x4805b9),_0x54ec64=_0x349a08['getRevisionRootsAttributes'](_0x4805b9);}catch(_0x191f2a){return void console['error'](_0x191f2a);}_0x3d85a8['model']['change'](_0x341d08=>{for(const _0x2d3211 of Array['from'](_0x3d85a8['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x341d08['removeMarker'](_0x2d3211);}),_0x2a7557['isReady']=!0x1,_0x3d85a8['model']['enqueueChange'](_0x25e0b3=>{_0x25e0b3['setSelection'](null),_0x25e0b3['removeSelectionAttribute'](_0x3d85a8['model']['document']['selection']['getAttributeKeys']());const _0x5c9df3=Object['keys'](_0x3b5b5e);for(const _0x1d90a9 of _0x3d85a8['model']['document']['roots'])'$graveyard'!=_0x1d90a9['rootName']&&_0x1d90a9['isAttached']()&&!_0x5c9df3['includes'](_0x1d90a9['rootName'])&&_0x25e0b3['detachRoot'](_0x1d90a9);for(const _0x8c4cd7 of _0x5c9df3){let _0x5b2cbe=_0x3d85a8['model']['document']['getRoot'](_0x8c4cd7);_0x5b2cbe&&_0x5b2cbe['isAttached']()||(_0x5b2cbe=_0x25e0b3['addRoot'](_0x8c4cd7));const _0x4ec23f=_0x54ec64[_0x8c4cd7],_0x12a754=Object['keys'](_0x4ec23f),_0x17fb28=_0x3b5b5e[_0x8c4cd7];for(const _0x4ad8a0 of _0x5b2cbe['getAttributeKeys']())_0x12a754['includes'](_0x4ad8a0)||_0x25e0b3['removeAttribute'](_0x4ad8a0,_0x5b2cbe);for(const _0x27bab4 of _0x12a754)_0x25e0b3['setAttribute'](_0x27bab4,_0x54ec64[_0x8c4cd7][_0x27bab4],_0x5b2cbe);_0x25e0b3['remove'](_0x25e0b3['createRangeIn'](_0x5b2cbe)),_0x25e0b3['insert'](_0x3d85a8['data']['parse'](_0x17fb28,_0x5b2cbe),_0x5b2cbe,0x0);}});const _0x4341b9=g(_0x3d85a8['locale'],'Restored');if(_0x4805b9['name'])_0x4133bd=-0x1==_0x4805b9['name']['indexOf'](_0x4341b9)?_0x4341b9+':\x20'+_0x4805b9['name']:_0x4805b9['name'];else _0x4133bd=_0x4341b9+':\x20'+(_0x4805b9['createdAt']['toLocaleDateString'](_0x3d85a8['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4805b9['createdAt']['toLocaleTimeString'](_0x3d85a8['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4fe61e['saveRevision']({'name':_0x4133bd}),_0x2a7557['isReady']=!0x0,_0x3d85a8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x407da9){super(_0x407da9),this['_revisionViewer']=_0x407da9['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1f4413=this['_revisionsRepository']['_revisions'],_0x1f74da=this['_createRevisionActions'](),_0x24f591=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x1f4413,_0x1f74da,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',(_0x4d67ee,_0x56703a)=>{_0x56703a['revisionViews']['on']('add',(_0x261f5b,_0x3e83c6)=>{_0x3e83c6['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)),_0x24f591['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x19680a=this['_revisionsRepository']['getRevision'](0x0);if(_0x19680a){const _0x1601cf=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x19680a['id']);this['_revisionViewer']['compare'](_0x19680a,_0x1601cf);}}['_handleRevisionSelected'](_0xea57a9,_0x56b693){const _0xbad8ad=this['_revisionsRepository']['getRevision'](_0x56b693['id']),_0x19d3ab=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xbad8ad['id']);this['_revisionViewer']['compare'](_0xbad8ad,_0x19d3ab);}['_handleRevisionSetName'](_0x41cddd,_0x52927e){this['_revisionsRepository']['getRevision'](_0x52927e['id'])['setName'](_0x52927e['name']);}['_handleDiffChange'](_0x3a54b6,_0x1d8e5f,_0x5ac00b){const _0x380cb2=this['_revisionsRepository']['getRevisionsInDiff'](_0x5ac00b);_0x380cb2['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x380cb2),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x380cb2[0x0]));}['_createRevisionActions'](){const _0x2c4934=this['editor'],_0x3120ca=d['availableRevisionActions'],_0x4c5688=_0x2c4934['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x4c5688['length'])return _0x4c5688['map'](_0x2f8202=>{const _0x4aeb3c='string'==typeof _0x2f8202?Object['assign']({},_0x3120ca[_0x2f8202]):_0x2f8202;return _0x4aeb3c['action']=_0x4aeb3c['action']['bind'](this,_0x2c4934),_0x4aeb3c['isVisible']&&(_0x4aeb3c['isVisible']=_0x4aeb3c['isVisible']['bind'](this,_0x2c4934)),_0x4aeb3c;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x52ed9b},_0x3e2a25)=>{const _0x419d3a=_0x52ed9b['get'](m),_0x41379d=_0x419d3a['repository'];let _0x6fd2c4=_0x419d3a['diff']['newRevisionId'],_0x286021=_0x3e2a25['id'];_0x41379d['getIndex'](_0x6fd2c4)>_0x41379d['getIndex'](_0x286021)&&([_0x6fd2c4,_0x286021]=[_0x286021,_0x6fd2c4]),_0x419d3a['compare'](_0x6fd2c4,_0x286021);},'isVisible':({plugins:_0x376695},_0x47eedf)=>{const _0x30055c=_0x376695['get'](m);return!(_0x30055c['repository']['getRevisionsInDiff'](_0x30055c['diff'])['length']>0x2)&&!_0x47eedf['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x39a0b8,{id:_0x2dbf74})=>{_0x39a0b8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2dbf74);},'isVisible':({plugins:_0x16eee6},_0x3e6b43)=>!!_0x16eee6['get'](m)['repository']['getLaterVisibleRevision'](_0x3e6b43['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x32c64a},{id:_0x59475f,revisionNameView:_0x50674c})=>{const _0x5855b3=_0x32c64a['get'](m),_0xf7fe2f=_0x5855b3['repository']['getEarlierVisibleRevision'](_0x59475f);_0x5855b3['compare'](_0x59475f,_0xf7fe2f),_0x50674c['focus'](),_0x50674c['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x121021,_0x170a4e){super(_0x121021),this['_view']=_0x170a4e,this['_toolbarConfig']=et(_0x121021['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x65c9e8){const _0x1c6aba=this['editor'],_0x4737d0=this['view'],_0x184e7f=_0x1c6aba['editing']['view'],_0x4c1ea2=_0x4737d0['editable'],_0xc78815=_0x184e7f['document']['getRoot']();_0x4c1ea2['name']=_0xc78815['rootName'],_0x4737d0['render']();const _0x20a61e=_0x4c1ea2['element'];this['setEditableElement'](_0x4c1ea2['name'],_0x20a61e),_0x4737d0['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x184e7f['attachDomRoot'](_0x20a61e),this['_elementReplacer']['replace'](_0x65c9e8,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1e71e0=this['view'],_0x429ddd=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x429ddd['detachDomRoot'](_0x1e71e0['editable']['name']),_0x1e71e0['destroy']();}['_initToolbar'](){const _0x2539d7=this['view'];_0x2539d7['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2539d7['stickyPanel']['limiterElement']=_0x2539d7['element'],_0x2539d7['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4d8798})=>_0x4d8798),_0x2539d7['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2539d7['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5b8363,_0x152f66,_0x358d05={}){super(_0x5b8363),this['stickyPanel']=new ht(_0x5b8363),this['toolbar']=new dt(_0x5b8363,{'shouldGroupWhenFull':_0x358d05['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x5b8363,_0x152f66);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ _0x1dc220(_0xabc862){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xec377,_0x49957b){super(_0x49957b),this['sourceElement']=_0xec377,this['model']['document']['createRoot']();const _0x314149=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x314149);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4a5cc0,_0x4f2519){const _0x143821=new this(_0x4a5cc0,_0x4f2519);return await _0x143821['initPlugins'](),await _0x143821['ui']['init'](_0x4a5cc0),await _0x143821['data']['init'](_0x143821['config']['get']('initialData')||''),_0x143821['fire']('ready'),_0x143821;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0xfc6625{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa6009e){function _0x184f58(_0x2be028){return _0x2be028['map'](_0x383e8c=>String['fromCharCode'](_0x383e8c))['join']('');}super(_0xa6009e),this['result']='end',_0xa6009e[_0x184f58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x184f58([0x76,0x69,0x65,0x77])][_0x184f58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x184f58([0x61,0x75,0x74,0x6f]),_0xa6009e[_0x184f58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x184f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x184f58([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x184f58([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x184f58([0x6f,0x6b])});}}class k extends _0xfc6625{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x41233c){if(super(_0x41233c),!this['editor']['config']['get']('revisionHistory'))throw new _0x44b874('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xbd6850=>this['_showRevisionViewer']({..._0xbd6850,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x14cdce=>this['_closeRevisionViewer'](_0x14cdce)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x55cc91=>this['_restoreRevision'](_0x55cc91)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x43c95c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x43c95c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1f36aa){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1f36aa);}['getRevision'](_0x3ef795){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3ef795);}['getRevisions'](_0x4016ab){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4016ab||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2f3a12=this['editor'],_0x28be5a=_0x552753(_0x2f3a12,p),_0x3b04d4=_0x2f3a12['plugins']['get']('RevisionTracker'),_0x40cc37=_0x2f3a12['plugins']['get']('Users')['users'];return _0x28be5a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x28be5a['lazyRoots'],(_0x28be5a['plugins']['push'](yt,m,R,class extends _0xfc6625{static get['requires'](){return[m,'Users'];}['init'](){const _0x476353=this['editor']['plugins']['get']('Users');for(const _0x51db2e of _0x40cc37)_0x51db2e['isAnonymous']||_0x476353['getUser'](_0x51db2e['id'])||_0x476353['addUser'](_0x51db2e);const _0x1ae3e0=_0x3b04d4['repository']['getRevisions']();let _0x30fcd5=null;const _0x173592=this['editor']['plugins']['get']('RevisionViewer');_0x173592['adapter']=_0x3b04d4['adapter'],_0x173592['bind']('isEnabled')['to'](_0x3b04d4),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2f3a12,'isReadOnly',_0x444da6=>!_0x444da6);for(const _0x2de811 of _0x1ae3e0){const _0x4523dd=null===_0x2de811['creator'];if(_0x4523dd&&_0x2de811['toVersion']===_0x2de811['fromVersion'])continue;const _0x50a04e=_0x2de811['toJSON']();_0x173592['addRevisionData'](_0x50a04e,(_0x4e313b,_0x75eadb,_0x48d427)=>{if(_0x4523dd){if(_0x30fcd5)_0x30fcd5['_update'](_0x4e313b,_0x75eadb);else{if(!_0x75eadb){const _0x317854=_0x48d427['toJSON']();_0x317854['id']=_0x4f6663(),_0x3b04d4['saveRevision'](_0x317854,_0x48d427['toVersion'])['then'](_0x74ca4a=>{_0x30fcd5=_0x74ca4a;});}}}else _0x2de811['_update'](_0x4e313b,_0x75eadb);});}}},d),_0x28be5a);}['_enhanceShowRevisionViewerCallback'](){const _0x50e45e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x50dd43=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x22cf01=this['editor']['plugins']['get']('Autosave');await _0x22cf01['save']();}else await _0x50dd43['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4d5ff1=this['editor']['plugins']['get']('Dialog');_0x4d5ff1['isOpen']&&_0x4d5ff1['hide']();}const _0x59be60=this['_getRevisionViewerEditorConfig']();return _0x50e45e(_0x59be60)['then'](_0x119ff1=>{return(this['_viewerEditor']=_0x119ff1,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'),_0x119ff1);})['catch'](_0x521a9f=>(console['error'](_0x521a9f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x334662=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(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['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x334662(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3ac60=this['editor']['plugins']['get']('Annotations');_0x3ac60['refreshVisibility'](),_0x3ac60['refreshPositioning']();}})));}['_showRevisionViewer'](_0x34c00a){const _0x12030a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x431960=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x30f545=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x30f545,_0x34c00a)['then'](_0x6f2055=>(_0x431960['style']['display']='block',_0x12030a['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x6f2055));}['_closeRevisionViewer'](_0x2b2d07){const _0x5d1af9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5d1af9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2b2d07['destroy']();}async['_restoreRevision'](_0xb1f3a9){const _0x5ae40b=this['editor'],_0x5a4098=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1ea0a4=_0x5ae40b['plugins']['get']('RevisionTracker'),_0x5b63cf=_0x5ae40b['plugins']['get']('RevisionHistoryUtils'),_0x48dca1=_0x5a4098['repository']['getRevision'](_0xb1f3a9);let _0x53a52e,_0x4f3825,_0xeafcfb;try{await _0x5b63cf['loadRevisionData'](_0x48dca1,this['adapter']),_0x53a52e=_0x5b63cf['getRevisionDocumentData'](_0x48dca1),_0x4f3825=_0x5b63cf['getRevisionRootsAttributes'](_0x48dca1);}catch(_0x316479){return void console['error'](_0x316479);}_0x5ae40b['model']['change'](_0x2fc150=>{for(const _0x4da323 of Array['from'](_0x5ae40b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2fc150['removeMarker'](_0x4da323);}),_0x5a4098['isReady']=!0x1,_0x5ae40b['model']['enqueueChange'](_0x528022=>{_0x528022['setSelection'](null),_0x528022['removeSelectionAttribute'](_0x5ae40b['model']['document']['selection']['getAttributeKeys']());const _0x5d26d9=Object['keys'](_0x53a52e);for(const _0x31f2d4 of _0x5ae40b['model']['document']['roots'])'$graveyard'!=_0x31f2d4['rootName']&&_0x31f2d4['isAttached']()&&!_0x5d26d9['includes'](_0x31f2d4['rootName'])&&_0x528022['detachRoot'](_0x31f2d4);for(const _0x10129a of _0x5d26d9){let _0x13c479=_0x5ae40b['model']['document']['getRoot'](_0x10129a);_0x13c479&&_0x13c479['isAttached']()||(_0x13c479=_0x528022['addRoot'](_0x10129a));const _0x44f09e=_0x4f3825[_0x10129a],_0x403c5c=Object['keys'](_0x44f09e),_0x4dcaac=_0x53a52e[_0x10129a];for(const _0x519c3e of _0x13c479['getAttributeKeys']())_0x403c5c['includes'](_0x519c3e)||_0x528022['removeAttribute'](_0x519c3e,_0x13c479);for(const _0x538e3a of _0x403c5c)_0x528022['setAttribute'](_0x538e3a,_0x4f3825[_0x10129a][_0x538e3a],_0x13c479);_0x528022['remove'](_0x528022['createRangeIn'](_0x13c479)),_0x528022['insert'](_0x5ae40b['data']['parse'](_0x4dcaac,_0x13c479),_0x13c479,0x0);}});const _0x23de49=g(_0x5ae40b['locale'],'Restored');if(_0x48dca1['name'])_0xeafcfb=-0x1==_0x48dca1['name']['indexOf'](_0x23de49)?_0x23de49+':\x20'+_0x48dca1['name']:_0x48dca1['name'];else _0xeafcfb=_0x23de49+':\x20'+(_0x48dca1['createdAt']['toLocaleDateString'](_0x5ae40b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x48dca1['createdAt']['toLocaleTimeString'](_0x5ae40b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1ea0a4['saveRevision']({'name':_0xeafcfb}),_0x5a4098['isReady']=!0x0,_0x5ae40b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};