@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250318.0 → 0.0.0-nightly-20250319.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x2dd53b,uid as _0x1e756b,Collection as _0x45d5c2,logWarning as _0x1a3585,FocusTracker as _0xa480af,KeystrokeHandler as _0xe26ce4,scrollViewportToShowTarget as _0x1d9212,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x5ca947}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2b5a55,set as _0x9357dc,unset as _0xe6f3d3,isEqual as _0x2ea409}from'es-toolkit/compat';import{Plugin as _0x13fc58,PendingActions as _0x271011,Command as _0x21058a,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xc1ab57,getMarkerDomElement as _0x957fe3,ConfirmMixin as _0xf64e34,sanitizeEditorConfig as _0x227153}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x46cadc,Element as ut,Range as ft,ViewUIElement as _0x41d931,ViewRawElement as _0x115453,ViewEmptyElement as _0xa901c4,ViewAttributeElement as _0x38e199,ViewContainerElement as _0x533b4e,Position as vt,ViewText as _0x3b3f30,ViewElement as _0x20dfc0,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x344f35,IconChevronUp as _0x58741e,IconChevronDown as _0x5af1f1,IconUndo as _0xb64b68,IconUser as _0x4a3fa1,IconThreeVerticalDots as _0x19a9ed}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x466f03,injectCssTransitionDisabler as ts,submitHandler as _0x19f88f,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x1d35f8,ListView as _0x1d158e,ListItemView as te,ButtonView as _0x491614,MenuBarMenuView as _0x3b1f51,MenuBarMenuListView as _0x29d230,MenuBarMenuListItemView as _0x24b1cd,MenuBarMenuListItemButtonView as _0x2ea120,ContextualBalloon as _0x515bcc,ToolbarSeparatorView as _0x495d60,IconView as _0xf1c75d,addListToDropdown as _0x15bd0e,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x19553e}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x2dd53b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2e6a66){super(),this['id']=_0x2e6a66['id']||_0x1e756b(),this['creator']=_0x2e6a66['creator']||null,this['authors']=_0x2e6a66['authors']||[],this['diffData']=_0x2e6a66['diffData']||null,this['toVersion']=_0x2e6a66['toVersion']||0x0,this['fromVersion']=_0x2e6a66['fromVersion']||0x0,this['set']('name',_0x2e6a66['name']||''),this['set']('createdAt',_0x2e6a66['createdAt']||new Date()),this['set']('attributes',_0x2e6a66['attributes']||{});}['setName'](_0x39caab){this['_update']({'name':_0x39caab});}['setAttribute'](_0x347d2f,_0x5f3ec8){const _0x4dc71c=_0x2b5a55(this['attributes']);_0x9357dc(_0x4dc71c,_0x347d2f,_0x5f3ec8),this['_update']({'attributes':_0x4dc71c});}['removeAttribute'](_0x4ce40c){const _0x511486=_0x2b5a55(this['attributes']);_0xe6f3d3(_0x511486,_0x4ce40c),this['_update']({'attributes':_0x511486});}['_update'](_0x198581,_0xffc100=!0x1){let _0x46681b=!0x1;const _0x390290={'id':this['id']},_0x1f1e9c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1ca759 of _0x1f1e9c){const _0x1b3102=_0x198581[_0x1ca759];void 0x0!==_0x1b3102&&_0x1b3102!==this[_0x1ca759]&&(this[_0x1ca759]=_0x1b3102,_0x390290[_0x1ca759]=_0x1b3102,_0x46681b=!0x0);}_0x46681b&&(_0x390290['authors']&&(_0x390290['authorsIds']=_0x390290['authors']['map'](_0x2563ca=>_0x2563ca['id']),delete _0x390290['authors']),this['fire']('_update',_0x390290,_0xffc100));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x48ed4b=>_0x48ed4b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x13fc58{['_revisions'];static get['requires'](){return[_0xc1ab57];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3790b7){super(_0x3790b7),this['_revisions']=new _0x45d5c2();}['afterInit'](){!async function(_0x1df1e4){const _0x374544=_0x3e04dd([0x6f,0x39,0x66,0x50,0x56,0x67,0x31,0x57,0x62,0x74,0x42,0x54,0x6b,0x6a,0x77,0x6d,0x37,0x51,0x4a,0x34,0x38,0x43,0x6e,0x71,0x76,0x4f,0x36,0x61,0x45,0x68,0x5a,0x72,0x4e,0x6c,0x49,0x73,0x64,0x33,0x59,0x69,0x44,0x4b,0x58,0x32,0x55,0x46,0x78,0x4d,0x53,0x41,0x65,0x52,0x30,0x35,0x48,0x4c,0x7a,0x47,0x70,0x79,0x63,0x75]),_0x66d0ad=0xeb829,_0x1f6e65=0x7f1e2757,_0x193665=0x7f19452f^_0x1f6e65,_0x339506=window[_0x3e04dd([0x44,0x61,0x74,0x65])][_0x3e04dd([0x6e,0x6f,0x77])](),_0x4c5565=_0x1df1e4[_0x3e04dd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc00a08=new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d3836=>{_0x4c5565[_0x3e04dd([0x6f,0x6e,0x63,0x65])](_0x3e04dd([0x72,0x65,0x61,0x64,0x79]),_0x5d3836);}),_0x29cae2={[_0x3e04dd([0x6b,0x74,0x79])]:_0x3e04dd([0x45,0x43]),[_0x3e04dd([0x75,0x73,0x65])]:_0x3e04dd([0x73,0x69,0x67]),[_0x3e04dd([0x63,0x72,0x76])]:_0x3e04dd([0x50,0x2d,0x32,0x35,0x36]),[_0x3e04dd([0x78])]:_0x3e04dd([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]),[_0x3e04dd([0x79])]:_0x3e04dd([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]),[_0x3e04dd([0x61,0x6c,0x67])]:_0x3e04dd([0x45,0x53,0x32,0x35,0x36])},_0xd0afd5=_0x4c5565[_0x3e04dd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e04dd([0x67,0x65,0x74])](_0x3e04dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28c2fa(){let _0x252f81,_0x33783e=null,_0x5be03a=null;try{if(_0xd0afd5==_0x3e04dd([0x47,0x50,0x4c]))return _0x3e04dd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x252f81=_0x242013(),!_0x252f81)return _0x3e04dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x252f81[_0x3e04dd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5be03a=_0x5e22c6(_0x252f81[_0x3e04dd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x252f81[_0x3e04dd([0x6a,0x74,0x69])])),await _0x358743()?_0x1a94bc()?_0x2d7bf5()?_0x3e04dd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d46f0()?(_0x252f81[_0x3e04dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e04dd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33783e=_0x1764f6(_0x3e04dd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x252f81[_0x3e04dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e04dd([0x74,0x72,0x69,0x61,0x6c])&&(_0x33783e=_0x1764f6(_0x3e04dd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x594dc2()):_0x3e04dd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e04dd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e04dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f4f90){return _0x3e04dd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d7bf5(){const _0x42ebf3=[_0x3e04dd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e04dd([0x74,0x72,0x69,0x61,0x6c])][_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x252f81[_0x3e04dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x339506/0x3e8:0xe10*_0x193665;return _0x252f81[_0x3e04dd([0x65,0x78,0x70])]<_0x42ebf3;}function _0x1a94bc(){const _0x41271f=_0x252f81[_0x3e04dd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x41271f)return!0x1;if(_0x41271f[_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e04dd([0x2a])))return!0x0;if(_0x41271f[_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e04dd([0x52,0x48])))return!0x0;if(_0x41271f[_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e04dd([0x52,0x52,0x48]))){if(_0x437965())return!0x0;if(_0x32a454()||_0x50f913())return!0x0;}return!0x1;}function _0x5d46f0(){const _0x508456=_0x252f81[_0x3e04dd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x508456||0x0==_0x508456[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb35d6a}=new URL(window[_0x3e04dd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x508456[_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb35d6a))return!0x0;const _0x3dc84f=_0xb35d6a[_0x3e04dd([0x73,0x70,0x6c,0x69,0x74])](_0x3e04dd([0x2e]));return _0x508456[_0x3e04dd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d3715=>_0x5d3715[_0x3e04dd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e04dd([0x2a])))[_0x3e04dd([0x6d,0x61,0x70])](_0xf2ef0d=>_0xf2ef0d[_0x3e04dd([0x73,0x70,0x6c,0x69,0x74])](_0x3e04dd([0x2e])))[_0x3e04dd([0x73,0x6f,0x6d,0x65])](_0x3a69a3=>_0x3dc84f[_0x3e04dd([0x65,0x76,0x65,0x72,0x79])]((_0x31a3ac,_0x548171)=>_0x3a69a3[_0x548171]===_0x31a3ac||_0x3a69a3[_0x548171]===_0x3e04dd([0x2a])));}function _0x594dc2(){return _0x33783e&&_0x5be03a?new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x358527,_0x457bc9)=>{_0x33783e[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x358527,_0x457bc9),_0x5be03a[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x594ce6=>{_0x594ce6!=_0x3e04dd([0x56,0x61,0x6c,0x69,0x64])&&_0x358527(_0x594ce6);},_0x457bc9);}):_0x33783e||_0x5be03a||_0x3e04dd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e22c6(_0x4c7c3b,_0x42026f){return new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32cb89=>{if(_0x527171())return _0x32cb89(_0x3e04dd([0x56,0x61,0x6c,0x69,0x64]));_0x42a4c2(),_0x4c5565[_0x3e04dd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e04dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x62e8db=!0x1;const _0x39b0c2=_0x1e756b();function _0x56ca91(_0x49b656){return!!_0x49b656&&(typeof _0x49b656===_0x3e04dd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49b656===_0x3e04dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49b656[_0x3e04dd([0x74,0x68,0x65,0x6e])]===_0x3e04dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49b656[_0x3e04dd([0x63,0x61,0x74,0x63,0x68])]===_0x3e04dd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x547587(_0x222870){_0x538a1d(_0x222870)[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x44799a=>{if(!_0x44799a||_0x44799a[_0x3e04dd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e04dd([0x6f,0x6b]))return _0x3e04dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c1a86(_0x3d4444(_0x39b0c2+_0x42026f))!=_0x44799a[_0x3e04dd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e04dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e04dd([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x3838e4=>(_0x392031(),_0x3838e4),()=>{const _0x3717b1=_0xb95039();return null==_0x3717b1?(_0x392031(),_0x3e04dd([0x56,0x61,0x6c,0x69,0x64])):_0x3e04dd(_0x339506-_0x3717b1>(0x5b12a357^_0x1f6e65)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x32cb89)[_0x3e04dd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32cb89(_0x3e04dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x471928=0x7f28c9d7^_0x1f6e65;function _0x392031(){const _0x1e41fe=_0x3e04dd([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1a86(_0x3d4444(_0x4c7c3b)),_0x353199=_0x4cc22b(_0x2c1a86(window[_0x3e04dd([0x4d,0x61,0x74,0x68])][_0x3e04dd([0x63,0x65,0x69,0x6c])](_0x339506/_0x471928)));window[_0x3e04dd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e04dd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e41fe,_0x353199);}function _0xb95039(){const _0x393f42=_0x3e04dd([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1a86(_0x3d4444(_0x4c7c3b)),_0x1ff7cf=window[_0x3e04dd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e04dd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x393f42);return _0x1ff7cf?window[_0x3e04dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cc22b(_0x1ff7cf),0x10)*_0x471928:null;}function _0x538a1d(_0x20cd95){return new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26fd79,_0x21b341)=>{_0x20cd95[_0x3e04dd([0x74,0x68,0x65,0x6e])](_0x26fd79,_0x21b341),window[_0x3e04dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21b341,0x7f1ff397^_0x1f6e65);});}}_0x4c5565[_0x3e04dd([0x6f,0x6e])](_0x3e04dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b4cbc,_0x49d555)=>{if(_0x49d555[0x0]!=_0x4c7c3b)return _0x32cb89(_0x3e04dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x49d555[0x1]={..._0x49d555[0x1],[_0x3e04dd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39b0c2};},{[_0x3e04dd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e04dd([0x68,0x69,0x67,0x68])}),_0x4c5565[_0x3e04dd([0x6f,0x6e])](_0x3e04dd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17e93a=>{_0x56ca91(_0x17e93a[_0x3e04dd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x62e8db=!0x0,_0x547587(_0x17e93a[_0x3e04dd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e04dd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e04dd([0x6c,0x6f,0x77])}),_0xc00a08[_0x3e04dd([0x74,0x68,0x65,0x6e])](()=>{_0x62e8db||_0x32cb89(_0x3e04dd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x527171(){return _0x4c5565[_0x3e04dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e04dd([0x76,0x69,0x65,0x77])][_0x3e04dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e04dd([0x61,0x75,0x74,0x6f]);}function _0x42a4c2(){_0x4c5565[_0x3e04dd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e04dd([0x76,0x69,0x65,0x77])][_0x3e04dd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e04dd([0x61,0x75,0x74,0x6f]);}}function _0x1764f6(_0x3b6e55){const _0x3d51dd=[new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3483=>setTimeout(_0x5c3483,0x7f17199b^_0x1f6e65)),_0xc00a08[_0x3e04dd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54337c=>{const _0x16e0a3=0x7f1e2750^_0x1f6e65,_0x790e85=_0x1df1e4[_0x3e04dd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2bc068(){_0x790e85[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x16e0a3&&_0x54337c();}_0x2bc068(),_0x790e85[_0x3e04dd([0x6f,0x6e])](_0x3e04dd([0x61,0x64,0x64]),_0x2bc068);})),new window[(_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b3a3b=>{function _0x222bfb(){for(const _0x1ae5e1 in window)if(window[_0x3e04dd([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3e04dd([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1ae5e1))&&window[_0x1ae5e1]==_0x66d0ad)return _0x2b3a3b();_0x4c5565[_0x3e04dd([0x73,0x74,0x61,0x74,0x65])]!=_0x3e04dd([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3e04dd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x222bfb,0x7f1e34df^_0x1f6e65);}_0x15194c(_0x3e04dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x222bfb();})];return window[_0x3e04dd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e04dd([0x72,0x61,0x63,0x65])](_0x3d51dd)[_0x3e04dd([0x74,0x68,0x65,0x6e])](()=>_0x3b6e55);}async function _0x3bbe33(){if(await _0xc00a08,_0x15194c(_0x3e04dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x46886a=_0x1df1e4[_0x3e04dd([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xabe912=_0x1df1e4[_0x3e04dd([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])](_0x46886a[_0x3e04dd([0x69,0x64])]),_0x4f2833=_0x3b0bf9(_0x3e04dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4f2833[_0x3e04dd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x46886a['id'],_0xabe912?_0xabe912['id']:null,!0x0),_0x4f2833[_0x3e04dd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3e04dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4f2833[_0x3e04dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4f2833[_0x3e04dd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2f7c76,void(_0x4f2833[_0x3e04dd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2f7c76);}if(_0x15194c(_0x3e04dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x259cba=_0x3b0bf9(_0x3e04dd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x259cba[_0x3e04dd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3e04dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x259cba[_0x3e04dd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x259cba[_0x3e04dd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2f7c76,_0x259cba[_0x3e04dd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2f7c76;}_0x4c5565[_0x3e04dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e04dd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f7c76,_0x4c5565[_0x3e04dd([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e04dd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f7c76,_0x4c5565[_0x3e04dd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e04dd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x437965(){return _0x15194c(_0x3e04dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3b0bf9(_0x3e04dd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3e04dd([0x73,0x74,0x61,0x74,0x65])]==_0x3e04dd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x32a454(){return _0x15194c(_0x3e04dd([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 _0x50f913(){return _0x15194c(_0x3e04dd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x17783e(_0x419dca){const _0x1a31f5=_0x4b4344();_0x4c5565[_0x1a31f5]=_0x3e04dd([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])+_0x419dca,_0x419dca[_0x3e04dd([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3e04dd([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4b4344()]=_0x66d0ad),_0x419dca!=_0x3e04dd([0x56,0x61,0x6c,0x69,0x64])&&_0x3bbe33();}function _0x4b4344(){const _0x1207a0=window[_0x3e04dd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e04dd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e04dd([0x6e,0x6f,0x77])]())[_0x3e04dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e04dd([0x2e]),'');let _0x36d4e3=_0x3e04dd([0x6f]);for(let _0x49c22e=0x0;_0x49c22e<_0x1207a0[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49c22e+=0x2){let _0x4d31f7=window[_0x3e04dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1207a0[_0x3e04dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49c22e,_0x49c22e+0x2));_0x4d31f7>=_0x374544[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d31f7-=_0x374544[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36d4e3+=_0x374544[_0x4d31f7];}return _0x36d4e3;}function _0x242013(){const _0x26e11a=_0xd0afd5[_0x3e04dd([0x73,0x70,0x6c,0x69,0x74])](_0x3e04dd([0x2e]));if(0x3!=_0x26e11a[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x550f4e(_0x26e11a[0x1]);function _0x550f4e(_0x3c6816){const _0x3b99ad=_0x1c6c76(_0x3c6816);return _0x3b99ad&&_0x28284d()?_0x3b99ad:null;function _0x28284d(){const _0x5ec863=_0x3b99ad[_0x3e04dd([0x6a,0x74,0x69])],_0x50d85f=window[_0x3e04dd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ec863[_0x3e04dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ec863[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x179b94={..._0x3b99ad,[_0x3e04dd([0x6a,0x74,0x69])]:_0x5ec863[_0x3e04dd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ec863[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x179b94[_0x3e04dd([0x76,0x63])],_0x3d4444(_0x179b94)==_0x50d85f;}}}async function _0x358743(){let _0x4eaca9=!0x0;try{const _0xfbcb45=_0xd0afd5[_0x3e04dd([0x73,0x70,0x6c,0x69,0x74])](_0x3e04dd([0x2e])),[_0x348195,_0x44ec00,_0x294f8a]=_0xfbcb45;return _0x4f936c(_0x348195),await _0x44c049(_0x348195,_0x44ec00,_0x294f8a),_0x4eaca9;}catch(_0x5e9525){return!0x1;}function _0x4f936c(_0xdad491){const _0x2f4c20=_0x1c6c76(_0xdad491);_0x2f4c20&&_0x2f4c20[_0x3e04dd([0x61,0x6c,0x67])]==_0x3e04dd([0x45,0x53,0x32,0x35,0x36])||(_0x4eaca9=!0x1);}async function _0x44c049(_0x55ee63,_0x4aa72b,_0x1da578){const _0x42ee1a=window[_0x3e04dd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e04dd([0x66,0x72,0x6f,0x6d])](_0x254439(_0x1da578),_0x5295f9=>_0x5295f9[_0x3e04dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57aa25=new window[(_0x3e04dd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e04dd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55ee63+_0x3e04dd([0x2e])+_0x4aa72b),_0x17df28=window[_0x3e04dd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e04dd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17df28)return;const _0x1aa3ce=await _0x17df28[_0x3e04dd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e04dd([0x6a,0x77,0x6b]),_0x29cae2,{[_0x3e04dd([0x6e,0x61,0x6d,0x65])]:_0x3e04dd([0x45,0x43,0x44,0x53,0x41]),[_0x3e04dd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e04dd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e04dd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17df28[_0x3e04dd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e04dd([0x6e,0x61,0x6d,0x65])]:_0x3e04dd([0x45,0x43,0x44,0x53,0x41]),[_0x3e04dd([0x68,0x61,0x73,0x68])]:{[_0x3e04dd([0x6e,0x61,0x6d,0x65])]:_0x3e04dd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1aa3ce,_0x42ee1a,_0x57aa25)||(_0x4eaca9=!0x1);}}function _0x1c6c76(_0x2b6991){return _0x2b6991[_0x3e04dd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e04dd([0x65,0x79]))?JSON[_0x3e04dd([0x70,0x61,0x72,0x73,0x65])](_0x254439(_0x2b6991)):null;}function _0x254439(_0x3d3710){return window[_0x3e04dd([0x61,0x74,0x6f,0x62])](_0x3d3710[_0x3e04dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e04dd([0x2b]))[_0x3e04dd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e04dd([0x2f])));}function _0x3d4444(_0x295c74){let _0x96f5b8=0x1505;function _0x42ad89(_0x5b323f){for(let _0x3baffc=0x0;_0x3baffc<_0x5b323f[_0x3e04dd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3baffc++){const _0x4bae74=_0x5b323f[_0x3e04dd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3baffc);_0x96f5b8=(_0x96f5b8<<0x5)+_0x96f5b8+_0x4bae74,_0x96f5b8&=_0x96f5b8;}}function _0x1ac0f4(_0x554c52){Array[_0x3e04dd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x554c52)?_0x554c52[_0x3e04dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ac0f4):_0x554c52&&typeof _0x554c52==_0x3e04dd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e04dd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x554c52)[_0x3e04dd([0x73,0x6f,0x72,0x74])]()[_0x3e04dd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e0fa8,_0x4412b5])=>{_0x42ad89(_0x3e0fa8),_0x1ac0f4(_0x4412b5);}):_0x42ad89(window[_0x3e04dd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x554c52));}return _0x1ac0f4(_0x295c74),_0x96f5b8>>>0x0;}function _0x2c1a86(_0x176ae1){return _0x176ae1[_0x3e04dd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e04dd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e04dd([0x30]));}function _0x4cc22b(_0x35cd8c){return _0x35cd8c[_0x3e04dd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e04dd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e04dd([0x6a,0x6f,0x69,0x6e])]('');}function _0x15194c(_0x2345e9){return _0x4c5565[_0x3e04dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e04dd([0x68,0x61,0x73])](_0x2345e9);}function _0x3b0bf9(_0x3e476d){return _0x4c5565[_0x3e04dd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e04dd([0x67,0x65,0x74])](_0x3e476d);}function _0x2f7c76(){}function _0x3e04dd(_0x274e9b){return _0x274e9b['map'](_0xe11d3b=>String['fromCharCode'](_0xe11d3b))['join']('');}_0x17783e(await _0x28c2fa());}(this);}['createRevision'](_0x31ed93){const _0x351b82=this['editor']['plugins']['get']('Users');return new h({'id':_0x31ed93['id'],'name':_0x31ed93['name'],'creator':_0x31ed93['creatorId']?_0x351b82['getUser'](_0x31ed93['creatorId']):null,'diffData':_0x31ed93['diffData']||_0x31ed93['data'],'authors':_0x31ed93['authorsIds']['map'](_0x4ed063=>_0x351b82['getUser'](_0x4ed063)),'createdAt':new Date(_0x31ed93['createdAt']),'attributes':_0x31ed93['attributes'],'fromVersion':_0x31ed93['fromVersion'],'toVersion':_0x31ed93['toVersion']});}['addRevision'](_0x353463,_0x3f934c=0x0){this['_revisions']['add'](_0x353463,_0x3f934c);}['getRevision'](_0x14ff17){return this['_revisions']['get'](_0x14ff17);}['getRevisions'](_0x3f9f08={'toJSON':!0x1}){const _0x1c6e51=Array['from'](this['_revisions']);return _0x1c6e51['reverse'](),_0x3f9f08['toJSON']?_0x1c6e51['map'](_0x52b6ac=>_0x52b6ac['toJSON']()):_0x1c6e51;}['getIndex'](_0x19bc30){return this['_revisions']['getIndex'](_0x19bc30);}['getEarlierVisibleRevision'](_0x11a6d7){const [,_0xc6b26a]=this['getRevisionsIterator'](_0x11a6d7,{'direction':'earlier'});return _0xc6b26a;}['getLaterVisibleRevision'](_0x3a1301){const [,_0x1cfdda]=this['getRevisionsIterator'](_0x3a1301,{'direction':'later'});return _0x1cfdda;}['getRevisionsInDiff'](_0x2f3f04){const _0x3f0709=[];for(const _0x1b6693 of this['getRevisionsIterator'](_0x2f3f04['newRevisionId']))if(_0x3f0709['push'](_0x1b6693),_0x1b6693['id']===_0x2f3f04['oldRevisionId'])break;return _0x3f0709;}*['getRevisionsIterator'](_0x2f43e1,{direction:_0x5dfa6f='earlier',filter:_0x36018e=()=>!0x0}={}){const _0x55c367='earlier'===_0x5dfa6f?0x1:-0x1;let _0x5b96e9=this['_revisions']['get'](_0x2f43e1),_0x367afa=this['getIndex'](_0x5b96e9);for(yield _0x5b96e9;_0x5b96e9;){if(_0x367afa+=_0x55c367,_0x5b96e9=this['getRevision'](_0x367afa),!_0x5b96e9)return;_0x36018e(_0x5b96e9)&&(yield _0x5b96e9);}}}function m(_0x91d8bf,_0x215b02,_0x32fc1b){const t=_0x91d8bf['t'];switch(_0x215b02){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'},_0x32fc1b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x32fc1b);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x533b4e,'a':_0x38e199,'e':_0xa901c4,'r':_0x115453,'u':_0x41d931};class u extends _0x13fc58{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xc1ab57,j,_0x271011];}constructor(_0x22432b){super(_0x22432b),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x45e6fb=_0x1e756b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x45e6fb},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x421b34=this['repository']['getRevision'](0x0),_0x1ae3a6=_0x421b34&&null===_0x421b34['creator']?_0x421b34:null;if(this['_continueCurrentRevision']=!!_0x1ae3a6&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4a47b3=this['_source']['getCurrentRevisionId'](),_0x140be3=this['repository']['getRevision'](_0x4a47b3);if(_0x140be3)this['_startingVersion']=_0x140be3['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4baec7=this['_source']['history']['_operations']['find'](_0x177ca5=>!_0x177ca5['_isInit']),_0x1ddb5b=_0x4baec7?_0x4baec7['baseVersion']:this['_source']['history']['version'];_0x421b34?(_0x421b34['toVersion']<_0x1ddb5b&&_0x421b34['_update']({'toVersion':_0x1ddb5b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1ae3a6['id'],this['_startingVersion']=_0x1ae3a6['fromVersion']):(this['_startingVersion']=_0x421b34['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1ddb5b,this['_continueCurrentRevision']=!0x1);}}else _0x1ae3a6&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1ae3a6['toVersion'],this['editor']['model']['document']['history']['version']),_0x1ae3a6['fromVersion']===_0x1ae3a6['toVersion']?(0x0!==_0x1ae3a6['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1ae3a6['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1ae3a6['id'],this['_startingVersion']=_0x1ae3a6['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',_0x1da4d3=>!_0x1da4d3),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x33e0d2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31635e;for(const _0x54e42c in _0x33e0d2){const _0x532097=_0x54e42c,_0x3c5b8e=_0x33e0d2[_0x532097];if('revisionHistoryLicenseKeyValid'==_0x3c5b8e||'revisionHistoryLicenseKeyInvalid'==_0x3c5b8e||'revisionHistoryLicenseKeyExpired'==_0x3c5b8e||'revisionHistoryLicenseKeyDomainLimit'==_0x3c5b8e||'revisionHistoryLicenseKeyNotAllowed'==_0x3c5b8e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3c5b8e||'revisionHistoryLicenseKeyTrialLimit'==_0x3c5b8e||'revisionHistoryLicenseKeyUsageLimit'==_0x3c5b8e){delete _0x33e0d2[_0x532097],_0x31635e=_0x3c5b8e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x31635e&&_0x33e0d2['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x31635e&&_0x33e0d2['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x31635e&&_0x33e0d2['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x31635e&&_0x33e0d2['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x31635e&&_0x33e0d2['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x31635e&&_0x33e0d2['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x31635e&&_0x33e0d2['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5f4120=this['repository']['getRevision'](0x0),_0x28ffca=await this['getRevisionDocumentData'](_0x5f4120),_0x288de7=await this['getRevisionRootsAttributes'](_0x5f4120);this['_replaceEditorDataWithRevisionData'](_0x28ffca,_0x288de7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1200f2){this['_source']=_0x1200f2;}async['update'](){const _0x593151=await this['_source']['getLatestVersion']();if(_0x593151>this['currentRevision']['toVersion']){await this['_loadState']();const _0xdc6e44=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x593151});_0xdc6e44['authors']=_0xdc6e44['authorsIds']['map'](_0x587f2d=>this['editor']['plugins']['get']('Users')['getUser'](_0x587f2d)),this['currentRevision']['_update'](_0xdc6e44);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x2ea880={},_0x4e819a=null){const _0x4961c7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4e819a>this['currentRevision']['toVersion']&&(_0x4e819a=null),null===_0x4e819a&&(_0x4e819a=await this['_source']['getLatestVersion']());const _0x3bcd4b=this['_getFromVersion'](_0x4e819a),_0x1a0930=this['buildRevisionData']({'from':_0x3bcd4b,'to':_0x4e819a});if(this['currentRevision']['toVersion']<_0x4e819a){const _0x4a44ea=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4e819a,'to':_0x4e819a});_0x4a44ea['authors']=[],_0x4a44ea['authorsIds']=[],_0x4a44ea['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4a44ea,!0x0),delete _0x4a44ea['authors'],_0x4961c7['push'](_0x4a44ea);}_0x2ea880['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ea880['name']=_0x2ea880['name']||null,_0x2ea880['id']=_0x2ea880['id']||_0x1e756b(),_0x2ea880={..._0x2ea880,..._0x1a0930};const _0x5e1ade=this['addRevisionData'](_0x2ea880);_0x4961c7['push'](_0x2ea880);const _0x7da8a3=this['repository']['getIndex'](_0x5e1ade);if(0x0!==_0x7da8a3){const _0x5804cb=this['repository']['getRevision'](_0x7da8a3-0x1);if(_0x5804cb['fromVersion']!==_0x4e819a){const _0x294152=this['_revisionDataBuilder']['getData'](_0x4e819a,_0x5804cb['toVersion']),_0x199e5c={'id':_0x5804cb['id'],'diffData':_0x294152['diffData'],'authorsIds':_0x294152['authorsIds'],'authors':_0x294152['authorsIds']['map'](_0x34a9b5=>this['editor']['plugins']['get']('Users')['getUser'](_0x34a9b5)),'fromVersion':_0x4e819a};_0x5804cb===this['currentRevision']&&(_0x199e5c['createdAt']=new Date(_0x2ea880['createdAt']['getTime']()+0xa)),_0x5804cb['_update'](_0x199e5c,!0x0),delete _0x199e5c['authors'],_0x4961c7['push'](_0x199e5c);}}if(this['adapter']){for(const _0x52d1b3 of _0x4961c7)this['_bufferUpdate'](_0x52d1b3['id'],_0x52d1b3,!0x0);this['sendBufferedUpdates']();}return _0x5e1ade;}['addRevisionData'](_0x56f2e7){const _0x3102b3=this['repository']['createRevision'](_0x56f2e7);return this['adapter']&&_0x3102b3['on']('_update',(_0x1766dd,_0x2b96a6,_0x130778)=>{_0x130778||(this['_bufferUpdate'](_0x2b96a6['id'],_0x2b96a6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3102b3,this['_findInsertionIndex'](_0x3102b3)),_0x3102b3;}async['getRevisionDocumentData'](_0x578422){await this['_loadRevisionData'](_0x578422);const _0x456ca1={};for(const _0x340294 in _0x578422['diffData']){if(_0x578422['diffData'][_0x340294]['attachChange']&&!_0x578422['diffData'][_0x340294]['attachChange']['isAttached'])continue;const _0x5bcc6e=this['_removeRevisionMarkers'](JSON['parse'](_0x578422['diffData'][_0x340294]['insertions'])),_0x2e1c88=this['editor']['editing']['view']['document'],_0x3bd15e=new _0x46cadc(_0x2e1c88,_0x5bcc6e['map'](_0x248317=>P(_0x248317,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x456ca1[_0x340294]=this['editor']['data']['processor']['toData'](_0x3bd15e),this['editor']['data']['processor']['useFillerType']('default');}return _0x456ca1;}async['getRevisionRootsAttributes'](_0x5974cb){await this['_loadRevisionData'](_0x5974cb);const _0x54b0fd={};for(const _0x250012 in _0x5974cb['diffData'])_0x5974cb['diffData'][_0x250012]['attachChange']&&!_0x5974cb['diffData'][_0x250012]['attachChange']['isAttached']||(_0x54b0fd[_0x250012]=_0x5974cb['diffData'][_0x250012]['attributesAfter']||{});return _0x54b0fd;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1e483a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x42828e=0x0;_0x42828e<_0x1e483a['length'];_0x42828e++){const _0x28d674=_0x1e483a[_0x42828e];let _0x268cdc=!0x1;for(const _0x28a4fb of Object['keys'](_0x28d674))void 0x0===_0x28d674[_0x28a4fb]?delete _0x28d674[_0x28a4fb]:'id'!==_0x28a4fb&&(_0x268cdc=!0x0);_0x268cdc||(_0x1e483a[_0x42828e]=null);}if(_0x1e483a=_0x1e483a['filter'](_0xd2c89a=>null!==_0xd2c89a),!_0x1e483a['length'])return;for(let _0x2b177a=0x0;_0x2b177a<_0x1e483a['length'];_0x2b177a++){const _0x460468=_0x1e483a[_0x2b177a];void 0x0!==_0x460468['fromVersion']&&void 0x0===_0x460468['toVersion']&&(_0x460468['toVersion']=this['repository']['getRevision'](_0x460468['id'])['toVersion']),void 0x0!==_0x460468['toVersion']&&void 0x0===_0x460468['fromVersion']&&(_0x460468['fromVersion']=this['repository']['getRevision'](_0x460468['id'])['fromVersion']);}const _0x382e54=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1e483a,_0x382e54)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4ddec5=>{if(_0x4ddec5){for(const _0x7d5243 of _0x4ddec5)this['setRevisionData']({'id':_0x7d5243['id'],'createdAt':_0x7d5243['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x86afa5,_0x29205e){let _0x277fdf=this['editor']['config']['get']('initialData'),_0x192e86=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x277fdf){_0x277fdf={};for(const _0x5a04fd of this['editor']['model']['document']['getRootNames']())_0x277fdf[_0x5a04fd]='';}if('string'==typeof _0x277fdf&&(_0x277fdf={'main':_0x277fdf}),void 0x0===_0x192e86){_0x192e86={};for(const _0x51daf1 of this['editor']['model']['document']['getRootNames']())_0x192e86[_0x51daf1]={};}let _0x412217=!0x1;const _0x149b09=Object['keys'](_0x277fdf),_0x4e837c=Object['keys'](_0x86afa5);for(const _0x595e4b of _0x149b09){if(_0x277fdf[_0x595e4b]!==_0x86afa5[_0x595e4b]&&''!==_0x277fdf[_0x595e4b]['trim']()){_0x412217=!0x0;break;}if(!_0x2ea409(_0x192e86[_0x595e4b],_0x29205e[_0x595e4b])&&Object['keys'](_0x192e86[_0x595e4b])['length']>0x0){_0x412217=!0x0;break;}}_0x412217||(_0x412217=_0x4e837c['some'](_0x4406c3=>!this['editor']['model']['document']['getRoot'](_0x4406c3))),_0x412217&&_0x1a3585('editor-initial-data-replaced-with-revision-data',{'editorData':_0x277fdf,'editorRootsAttributes':_0x192e86,'revisionData':_0x86afa5,'revisionRootsAttributes':_0x29205e}),this['editor']['config']['set']('initialData',_0x86afa5),this['editor']['config']['set']('rootsAttributes',_0x29205e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x853625=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x853625['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x102dda){const _0x1aa121=this['repository']['getRevisions']();_0x1aa121['reverse']();let _0x497648=0x0;for(;_0x497648<_0x1aa121['length'];){const _0x5099a6=_0x1aa121[_0x497648];if(_0x5099a6===this['currentRevision']){_0x497648++;continue;}if(_0x5099a6['id']===this['_initialRevisionId'])break;const _0x3258eb=_0x102dda['toVersion']-_0x5099a6['toVersion']||_0x102dda['fromVersion']-_0x5099a6['fromVersion'];if(_0x3258eb>0x0)break;if(_0x3258eb<0x0)_0x497648++;else{if(!_0x102dda['creator']&&_0x5099a6['creator'])break;if(_0x5099a6['creator']||!_0x102dda['creator']){if(_0x102dda['createdAt']>_0x5099a6['createdAt'])break;_0x497648++;}else _0x497648++;}}return _0x497648;}['setRevisionData'](_0x5a6cfc){const _0x412f56=this['repository']['getRevision'](_0x5a6cfc['id']);if(_0x5a6cfc['createdAt']&&(_0x5a6cfc['createdAt']=new Date(_0x5a6cfc['createdAt'])),_0x5a6cfc['authorsIds']){const _0x4db4f3=this['editor']['plugins']['get']('Users');_0x5a6cfc['authors']=_0x5a6cfc['authorsIds']['map'](_0x392e86=>_0x4db4f3['getUser'](_0x392e86));}_0x412f56['_update'](_0x5a6cfc,!0x0);}['buildRevisionData']({revision:_0x386085=null,from:_0x241bd6=null,to:_0x4acb4=null}){_0x241bd6=null!==_0x241bd6?_0x241bd6:_0x386085['fromVersion'],_0x4acb4=null!==_0x4acb4?_0x4acb4:_0x386085['toVersion'];const _0x58f67e=this['_revisionDataBuilder']['getData'](_0x241bd6,_0x4acb4),_0x4c91c7={'diffData':_0x58f67e['diffData'],'authorsIds':_0x58f67e['authorsIds'],'fromVersion':_0x241bd6,'toVersion':_0x4acb4};if(!_0x386085||_0x4acb4!==_0x386085['toVersion']){const _0x4b9a24=_0x4acb4-0x1,_0x269e9d=this['_source']['history']['getOperation'](_0x4b9a24);_0x4c91c7['createdAt']=_0x269e9d&&_0x269e9d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x241bd6===this['_loadedStateData']['fromVersion']){for(const _0x158039 of this['_loadedStateData']['authors'])_0x4c91c7['authorsIds']['includes'](_0x158039['id'])||_0x4c91c7['authorsIds']['push'](_0x158039['id']);}return _0x4c91c7;}['_loadRevisionData'](_0xc3f696){if(!_0xc3f696||_0xc3f696['diffData'])return Promise['resolve']();{const _0x10f98e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x10f98e,'revisionId':_0xc3f696['id']})['then'](_0x550d93=>{_0xc3f696['diffData']=_0x550d93['diffData'];});}}['_bufferUpdate'](_0x29b25b,_0x65a9d0,_0x23f7e3){if(this['_bufferedUpdates']['has'](_0x29b25b)){const _0x2d9261=this['_bufferedUpdates']['get'](_0x29b25b);_0x65a9d0=_0x23f7e3?{..._0x2d9261,..._0x65a9d0}:{..._0x65a9d0,..._0x2d9261};}this['_bufferedUpdates']['set'](_0x29b25b,_0x65a9d0);}['_getFromVersion'](_0x4a2586){const _0x2a7eb9=this['repository']['getRevisions']();_0x2a7eb9['reverse'](),_0x2a7eb9['shift']();const _0x39d6ea=_0x2a7eb9['find'](_0x1c4b31=>_0x1c4b31['toVersion']<=_0x4a2586)['toVersion'];return _0x39d6ea<this['_startingVersion']?this['_startingVersion']:_0x39d6ea;}['_createInitialRevision'](_0x41235f){const _0x2aa9d4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2aa9d4)this['_initialRevisionId']=_0x2aa9d4['id'];else{const _0x3668af=!this['editor']['model']['document']['roots']['find'](_0x4e0297=>this['editor']['model']['hasContent'](_0x4e0297)),_0x1044d7=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fffc5=m(this['editor']['locale'],_0x3668af?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x41235f,'to':_0x41235f,'id':this['_initialRevisionId'],'name':_0x2fffc5,'creatorId':_0x1044d7});}}['_createCurrentRevision'](_0x239695){const _0x4806fb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4806fb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x239695,'to':_0x239695,'id':_0x4806fb,'name':'','creatorId':null}));}['_makeRevision']({name:_0x272c7e,from:_0x233fc1,to:_0x3bd5e6,creatorId:_0x4ec203,id:_0x2b4a78}){const _0x1e345d=this['buildRevisionData']({'from':_0x233fc1,'to':_0x3bd5e6});_0x1e345d['name']=_0x272c7e,_0x1e345d['creatorId']=_0x4ec203,_0x1e345d['id']=_0x2b4a78;const _0x17ead9=this['addRevisionData'](_0x1e345d);return this['adapter']&&this['_bufferUpdate'](_0x1e345d['id'],_0x1e345d,!0x0),_0x17ead9;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x32dd77){return(_0x32dd77=_0x32dd77['filter'](_0x512fee=>!_0x512fee['name']||'revision-start'!==_0x512fee['name']&&'revision-end'!==_0x512fee['name']))['forEach'](_0x51e0cf=>{'string'!=typeof _0x51e0cf&&(_0x51e0cf['children']=this['_removeRevisionMarkers'](_0x51e0cf['children']),_0x51e0cf['attributes']=_0x51e0cf['attributes']['filter'](_0x3b8ac5=>!_0x3b8ac5[0x0]['startsWith']('data-revision-')));}),_0x32dd77;}}function P(_0x299608,_0xa94f30){const _0x1e98e2=_0xa94f30['editing']['view']['document'];if('string'==typeof _0x299608)return new _0x3b3f30(_0x1e98e2,_0x299608);{const _0x23106d=_0x299608['children']['map'](_0x4a17ba=>P(_0x4a17ba,_0xa94f30));return new(E[_0x299608['type']]||_0x20dfc0)(_0x1e98e2,_0x299608['name'],_0x299608['attributes'],_0x23106d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x265e09){this['editor']=_0x265e09,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'](_0x38716c){this['source']=_0x38716c;const _0x1d8d34=new Map(),_0x5e906b=new Map(),_0x4702e6=this['editor']['model']['document']['roots']['map'](_0xa15d67=>_0xa15d67['rootName']);for(const _0x1d0993 of _0x4702e6){const _0x2b066f=this['editor']['model']['document']['getRoot'](_0x1d0993),_0x531c92=T(_0x2b066f);_0x1d8d34['set'](_0x1d0993,_0x531c92),_0x5e906b['set'](_0x1d0993,Object['fromEntries'](_0x2b066f['getAttributes']()));}const _0x2bc253=Array['from'](this['editor']['model']['markers'])['map'](_0x314f77=>[_0x314f77['name'],_0x314f77['getRange']()]),_0x388cf5=this['source']['version'];this['_saveMetaData'](_0x388cf5,_0x1d8d34,_0x2bc253,_0x5e906b),this['_startingRevisionId']=this['_revisionId'];const _0x1efea6=new Map(),_0x4bb871=new Map();for(const _0x39af9f of _0x4702e6){const _0xf44ad6=F(_0x39af9f);_0x1efea6['set'](_0x39af9f,_0xf44ad6),_0x4bb871['set'](_0x39af9f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1efea6,[],_0x4bb871);}['getData'](_0x5c9ae4,_0x823f37){if(this['_lastFrom']===_0x5c9ae4&&this['_lastTo']<=_0x823f37)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x823f37,!0x0);else{if(!this['_savedMetaData']['has'](_0x5c9ae4)){const _0x2cf7ac=this['_getPreviousFrom'](_0x5c9ae4);this['_calculateMetaData'](_0x2cf7ac,_0x5c9ae4,!0x1);}this['_calculateMetaData'](_0x5c9ae4,_0x823f37,!0x0);}return this['_lastFrom']=_0x5c9ae4,this['_lastTo']=_0x823f37,this['_getState']();}['loadState'](_0x12bfa7){this['_reset'](),this['_lastFrom']=_0x12bfa7['fromVersion'],this['_lastTo']=_0x12bfa7['toVersion'];for(const _0x5ecd40 in _0x12bfa7['diffData']){const _0x113185=_0x12bfa7['diffData'][_0x5ecd40]['attachChange'],_0x34cee6=_0x2b5a55(_0x12bfa7['diffData'][_0x5ecd40]['attributesBefore'])||{},_0x3d1d9f=this['_makeModelFromViewString'](_0x12bfa7['diffData'][_0x5ecd40]['deletions']);_0x3d1d9f['rootName']=_0x5ecd40,_0x3d1d9f['_isAttached']=!_0x113185||!_0x113185['isAttached'],_0x3d1d9f['isAttached']=()=>_0x3d1d9f['_isAttached'],this['_baseRoots']['set'](_0x5ecd40,_0x3d1d9f),this['_baseRootsAttributes']['set'](_0x5ecd40,_0x34cee6),_0x113185&&this['_touchedRoots']['set'](_0x5ecd40,_0x113185);const _0x1c14f7=this['_makeIdsRoot'](_0x3d1d9f);this['_baseIdsRoots']['set'](_0x5ecd40,_0x1c14f7);for(const [_0x1c9115,_0x3e91dc]of _0x3d1d9f['markers']){if(!_0x1c9115['startsWith']('revision:'))continue;const _0x8a3f77=_0x1c9115['split'](':')[0x2];for(const _0x4b39c3 of _0x3e91dc['getWalker']({'singleCharacters':!0x0})){const _0x5cca74=this['_getVidAttributeName'](_0x4b39c3),_0x180913='elementEnd'==_0x4b39c3['type']?_0x4b39c3['previousPosition']['path']['slice'](0x0,-0x1):_0x4b39c3['previousPosition']['path'],_0x2080b9=_0x1c14f7['getNodeByPath'](_0x180913)['getAttribute'](_0x5cca74);this['_touched']['set'](_0x2080b9,{'userId':_0x8a3f77});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3cf546=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x54f08b=>!this['_touched']['has'](_0x54f08b));let _0x1748ce=0x0;const _0x73cfdc=new Map();for(const _0x4e6afe in _0x12bfa7['diffData']){const _0x3bef98=_0x12bfa7['diffData'][_0x4e6afe]['attachChange'],_0x10d147=_0x2b5a55(_0x12bfa7['diffData'][_0x4e6afe]['attributesAfter'])||{},_0x13fcb2=this['_makeModelFromViewString'](_0x12bfa7['diffData'][_0x4e6afe]['insertions']);_0x13fcb2['rootName']=_0x4e6afe,_0x13fcb2['_isAttached']=!_0x3bef98||_0x3bef98['isAttached'],_0x13fcb2['isAttached']=()=>_0x13fcb2['_isAttached'],this['_diffRoots']['set'](_0x4e6afe,_0x13fcb2),this['_diffRootsAttributes']['set'](_0x4e6afe,_0x10d147);const _0x39f84b=this['_makeIdsRoot'](_0x13fcb2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e6afe,_0x39f84b),_0x73cfdc['set'](_0x4e6afe,_0x13fcb2['isAttached']()?_0x10d147:{});for(const [_0x1e5f6b,_0xa04bff]of _0x13fcb2['markers']){if(!_0x1e5f6b['startsWith']('revision:'))continue;const _0x4a182b=_0x1e5f6b['split'](':')[0x2];for(const _0x39e368 of _0xa04bff['getWalker']({'singleCharacters':!0x0})){const _0x13b17d=this['_getVidAttributeName'](_0x39e368),_0x4e26cf=this['_revisionId']++,_0x25273c='elementEnd'==_0x39e368['type']?_0x39e368['previousPosition']['path']['slice'](0x0,-0x1):_0x39e368['previousPosition']['path'];_0x39f84b['getNodeByPath'](_0x25273c)['_setAttribute'](_0x13b17d,_0x4e26cf),this['_touched']['set'](_0x4e26cf,{'userId':_0x4a182b});}}for(const _0x3013cf of this['editor']['model']['createRangeIn'](_0x13fcb2)['getWalker']({'singleCharacters':!0x0})){const _0x2349a1=this['_getVidAttributeName'](_0x3013cf),_0x884d83='elementEnd'==_0x3013cf['type']?_0x3013cf['previousPosition']['path']['slice'](0x0,-0x1):_0x3013cf['previousPosition']['path'],_0x3e2520=_0x39f84b['getNodeByPath'](_0x884d83);_0x3e2520['getAttribute'](_0x2349a1)>0x0||_0x3e2520['_setAttribute'](_0x2349a1,_0x3cf546[_0x1748ce++]);}for(const [_0x38dffd,_0x5a02db]of _0x13fcb2['markers'])_0x38dffd['startsWith']('revision:')||this['_markers']['set'](_0x38dffd,_0x5a02db);}const _0xaff700=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0xaff700),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xaff700,0x1));const _0x54bd16=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x54bd16),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x54bd16,0x1));const _0x21c840=Array['from'](this['_diffRoots'])['map'](([_0x4d51aa,_0x5be3b6])=>[_0x4d51aa,T(_0x5be3b6)]);this['_saveMetaData'](this['_lastTo'],_0x21c840,this['_markers'],_0x73cfdc);}['_makeModelFromViewString'](_0x3052f7){const _0x1fe659=JSON['parse'](_0x3052f7),_0x442504=this['editor']['editing']['view']['document'],_0x31d67b=new _0x46cadc(_0x442504,_0x1fe659['map'](_0x2bfd45=>P(_0x2bfd45,this['editor'])));return this['editor']['data']['toModel'](_0x31d67b);}['_saveMetaData'](_0x5ce9a6,_0xbb91a0,_0x3147c6,_0x39f1ba){const _0x278396=new Map(_0xbb91a0),_0x5b5159=new Map(_0x2b5a55(_0x39f1ba)),_0x38f2bd=new Map();for(const [_0x8c05c0,_0x5a2a34]of _0x3147c6)_0x38f2bd['set'](_0x8c05c0,{'start':_0x5a2a34['start']['clone'](),'end':_0x5a2a34['end']['clone'](),'rootName':_0x5a2a34['root']['rootName']});this['_savedMetaData']['set'](_0x5ce9a6,{'roots':_0x278396,'markers':_0x38f2bd,'rootsAttributes':_0x5b5159});}['_removeMetaData'](_0x4e319b){this['_savedMetaData']['delete'](_0x4e319b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x2e4ddc,_0x56caf1=null){let _0x4191ef=null;_0x2e4ddc['is']('documentFragment')||(_0x4191ef=new ut(_0x2e4ddc['name'],{'vid_start':null===_0x56caf1?this['_revisionId']++:_0x56caf1++}));const _0x438c38=[];for(const _0x2e2977 of _0x2e4ddc['getChildren']())if(_0x2e2977['is']('element')){_0x438c38['push'](this['_makeIdsRoot'](_0x2e2977,_0x56caf1));const _0x3d8611=_0x438c38[_0x438c38['length']-0x1];null!==_0x56caf1&&(_0x56caf1=_0x3d8611['is']('element','$text')?_0x3d8611['getAttribute']('vid')+0x1:_0x3d8611['getAttribute']('vid_end')+0x1);}else{for(let _0x44f1b8=0x0;_0x44f1b8<_0x2e2977['offsetSize'];_0x44f1b8++)_0x438c38['push'](new ut('$text',{'vid':null===_0x56caf1?this['_revisionId']++:_0x56caf1++}));}if(_0x2e4ddc['is']('documentFragment')){const _0x248a0b=F(_0x2e4ddc['rootName']);return _0x248a0b['_insertChild'](0x0,_0x438c38),_0x248a0b;}return _0x4191ef['_setAttribute']('vid_end',null===_0x56caf1?this['_revisionId']++:_0x56caf1++),_0x4191ef['_insertChild'](0x0,_0x438c38),_0x4191ef;}['_calculateMetaData'](_0x255d9a,_0x55e945,_0x2b3fde){this['_reset']();const {roots:_0x19f3d0,markers:_0x4191fa,rootsAttributes:_0xac806e}=this['_savedMetaData']['get'](_0x255d9a);this['_baseRoots']=new Map(_0x19f3d0),this['_baseRootsAttributes']=new Map(_0x2b5a55(_0xac806e));for(const [_0x42dcc5,_0x355fb3]of this['_baseRoots'])if('$graveyard'!==_0x42dcc5&&(this['_diffRoots']['set'](_0x42dcc5,T(_0x355fb3)),this['_diffRootsAttributes']=new Map(_0x2b5a55(_0xac806e)),_0x2b3fde)){const _0x31ba46=this['_revisionId'];this['_idsRoots']['set'](_0x42dcc5,this['_makeIdsRoot'](_0x355fb3)),this['_baseIdsRoots']['set'](_0x42dcc5,this['_makeIdsRoot'](_0x355fb3,_0x31ba46));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2b3fde&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4e98ff,_0x33e121]of _0x4191fa){const _0x4b70e6=this['_baseRoots']['get'](_0x33e121['rootName']),_0xfbd835=this['_diffRoots']['get'](_0x33e121['rootName']),_0x519e4e=new ft(this['_fixPosition'](_0x33e121['start'],_0x4b70e6),this['_fixPosition'](_0x33e121['end'],_0x4b70e6)),_0x3cbf10=this['_fixRange'](_0x519e4e,_0xfbd835);_0x4b70e6['markers']['set'](_0x4e98ff,_0x519e4e),this['_markers']['set'](_0x4e98ff,_0x3cbf10);}this['_applyOperations'](_0x255d9a,_0x55e945,_0x2b3fde);}['_applyOperations'](_0x10ff67,_0x1f649b,_0x2b8049){for(const _0x195944 of this['source']['getOperations'](_0x10ff67,_0x1f649b))this['_handleOperation'](_0x195944,_0x2b8049);for(const _0x472920 of this['_diffRoots']['values']())_0x472920['markers']['clear']();for(const [_0x3ebf81,_0xe4dfcf]of this['_markers']){this['_diffRoots']['get'](_0xe4dfcf['root']['rootName'])['markers']['set'](_0x3ebf81,_0xe4dfcf['clone']());}const _0x56f5c1=new Map(),_0x59a1be=new Map();for(const [_0x556e2b,_0x589112]of this['_diffRoots'])_0x56f5c1['set'](_0x556e2b,T(_0x589112)),_0x59a1be['set'](_0x556e2b,this['_diffRootsAttributes']['get'](_0x556e2b));this['_saveMetaData'](_0x1f649b,_0x56f5c1,this['_markers'],_0x59a1be);}['_getPreviousFrom'](_0x4ac7e4){const _0x25b4f6=Array['from'](this['_savedMetaData']['keys']());_0x25b4f6['sort']((_0x521924,_0x1d51db)=>_0x521924-_0x1d51db),_0x25b4f6['reverse']();for(const _0x4ba618 of _0x25b4f6)if(_0x4ba618<_0x4ac7e4)return _0x4ba618;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4d67b8,_0x2fbf01){const _0x31c7ea=Array['from'](_0x2fbf01['markers'])['map'](([_0x549c77,_0x5e5dae])=>[_0x549c77,this['_fixRange'](_0x5e5dae,_0x4d67b8)]);_0x4d67b8['markers']=new Map(_0x31c7ea);}['_transformMarkers'](_0x51d722){for(const _0x1566cc of this['_markers']['values']()){const _0x2f53e9=_0x1566cc['getTransformedByOperation'](_0x51d722),_0x2767e5=ft['_createFromRanges'](_0x2f53e9);_0x1566cc['start']=_0x2767e5['start'],_0x1566cc['end']=_0x2767e5['end'];}}['_handleOperation'](_0x541274,_0x39fc97){if('addRoot'!=_0x541274['type']&&'detachRoot'!=_0x541274['type']){if('insert'==_0x541274['type']){const _0x333335=_0x541274['position']['root']['rootName'];this['_diffRoots']['has'](_0x333335)||(this['_diffRoots']['set'](_0x333335,F(_0x333335,!0x0)),this['_diffRootsAttributes']['set'](_0x333335,{}),_0x39fc97&&this['_idsRoots']['set'](_0x333335,F(_0x333335,!0x0)));}else{if('addRootAttribute'==_0x541274['type']||'removeRootAttribute'==_0x541274['type']||'changeRootAttribute'==_0x541274['type'])return void this['_handleRootAttributeOperation'](_0x541274);'marker'==_0x541274['type']&&this['_handleMarkerOperation'](_0x541274);}if('marker'!==_0x541274['type']){const _0x3cf3f2=this['_cloneOperation'](_0x541274,this['_diffRoots']);_0x3cf3f2['_execute'](),this['_transformMarkers'](_0x3cf3f2);}if(_0x39fc97)switch(_0x541274['type']){case'insert':this['_handleInsertOperation'](_0x541274);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x541274);break;case'merge':this['_handleMergeOperation'](_0x541274);break;case'split':this['_handleSplitOperation'](_0x541274);}}else this['_handleRootOperation'](_0x541274,_0x39fc97);}['_cloneOperation'](_0x3047e3,_0xc3bd72){const _0x5d75c8=_0x3047e3['clone']();return _0x5d75c8['_authorId']=_0x3047e3['_authorId'],this['_fixOperation'](_0x5d75c8,_0xc3bd72),_0x5d75c8;}['_getBaseVids'](_0x640976){return _0x640976['map'](_0x190fe0=>{const _0x5c9d3c=this['_getVidAttributeName'](_0x190fe0);return Number(_0x190fe0['item']['getAttribute'](_0x5c9d3c));});}['_generateTape'](_0x343d0a,_0x5ce268){if(_0x343d0a['is']('element','$text'))_0x5ce268['push']({'item':_0x343d0a,'type':'text'});else{_0x343d0a['is']('element')&&_0x5ce268['push']({'item':_0x343d0a,'type':'elementStart'});for(const _0xf4f5df of _0x343d0a['getChildren']())this['_generateTape'](_0xf4f5df,_0x5ce268);_0x343d0a['is']('element')&&_0x5ce268['push']({'item':_0x343d0a,'type':'elementEnd'});}return _0x5ce268;}['_getState'](){const _0xbde688=new Map(this['_touched']),_0x214276=new Map(_0xbde688),_0x418c1f=new Map(),_0x257fd0={'insertions':{},'deletions':{}},_0x5478b4={'insertions':{},'deletions':{}},_0x1bdd2b=new Map(),_0x294f74=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x294f74['delete']('$graveyard');for(const _0x559755 of _0x294f74){const _0x25675d=this['_diffRoots']['get'](_0x559755)||F(_0x559755,!0x1),_0x2ef5c7=this['_baseRoots']['get'](_0x559755)||F(_0x559755,!0x1);_0x25675d['isAttached']()||_0x2ef5c7['isAttached']()?(_0x257fd0['insertions'][_0x559755]=T(_0x25675d),_0x257fd0['deletions'][_0x559755]=T(_0x2ef5c7),this['_copyMarkers'](_0x257fd0['deletions'][_0x559755],_0x2ef5c7),this['_copyMarkers'](_0x257fd0['insertions'][_0x559755],_0x25675d),_0x5478b4['insertions'][_0x559755]=this['_generateTape'](this['_idsRoots']['get'](_0x559755),[]),_0x5478b4['deletions'][_0x559755]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x559755)||F(_0x559755,!0x1),[])):_0x294f74['delete'](_0x559755);}for(const _0x4f962e of _0x294f74){const _0x5064dc=_0x5478b4['insertions'][_0x4f962e];for(const _0x11b9c6 of _0x5064dc){const _0x2e7d35=this['_getVidAttributeName'](_0x11b9c6),_0x108da1=_0x11b9c6['item']['getAttribute'](_0x2e7d35);_0x214276['delete'](_0x108da1),_0x108da1>=this['_startingRevisionId']&&_0x418c1f['set'](_0x108da1,_0xbde688['get'](_0x108da1));}}for(const _0x6dfbcb of _0x294f74){const _0x342133=_0x5478b4['insertions'][_0x6dfbcb],_0x21fd6a=this['_getBaseVids'](_0x5478b4['deletions'][_0x6dfbcb]);let _0x426cf0=0x0;for(const _0x29d141 of _0x342133){const _0x2c51b4=this['_getVidAttributeName'](_0x29d141),_0x36c868=_0x29d141['item']['getAttribute'](_0x2c51b4);if(!_0x418c1f['has'](_0x36c868)&&!_0x1bdd2b['has'](_0x36c868)){if(_0x214276['has'](_0x36c868))_0x426cf0++;else{if(_0x36c868!=_0x21fd6a[_0x426cf0]){const _0xd178d3=_0xbde688['get'](_0x36c868)||_0xbde688['get'](_0x21fd6a[_0x426cf0]);for(;_0x36c868!=_0x21fd6a[_0x426cf0];)_0x214276['has'](_0x21fd6a[_0x426cf0])||(_0x1bdd2b['set'](_0x21fd6a[_0x426cf0],_0xd178d3),_0xbde688['set'](_0x21fd6a[_0x426cf0],_0xd178d3)),_0x426cf0++;}_0x426cf0++;}}}}for(const _0x44c6bc of _0x294f74){const _0x1cc059=_0x5478b4['insertions'][_0x44c6bc];for(const _0x491952 of _0x1cc059){const _0x54e73a=this['_getVidAttributeName'](_0x491952),_0x410790=_0x491952['item']['getAttribute'](_0x54e73a);if(_0x1bdd2b['has'](_0x410790)){const _0x81d4c2=_0x1bdd2b['get'](_0x410790);_0x214276['has'](_0x410790)||_0x214276['set'](_0x410790,{..._0x81d4c2}),_0x418c1f['set'](_0x410790,{..._0x81d4c2});}}}for(const _0x353df8 of _0x214276['keys']())_0x353df8>=this['_startingRevisionId']&&_0x214276['delete'](_0x353df8);const _0x4d03aa=new Map();for(const _0x506718 of _0x294f74){let _0x442c0c=_0x5478b4['insertions'][_0x506718];for(const _0xdd3cda of _0x442c0c)if(_0xdd3cda['item']['is']('element','tableCell')){const _0x4534b0=this['_getVidAttributeName'](_0xdd3cda),_0x49ade4=_0xdd3cda['item']['getAttribute'](_0x4534b0);if(_0x418c1f['has'](_0x49ade4)){const _0x2b1a4c=_0xdd3cda['item']['parent']['parent']['getAttribute']('vid_start'),_0x33e37f=_0x4d03aa['get'](_0x2b1a4c)||new Set();_0x33e37f['add'](_0x418c1f['get'](_0x49ade4)['userId']),_0x4d03aa['set'](_0x2b1a4c,_0x33e37f);}}_0x442c0c=_0x5478b4['deletions'][_0x506718];for(const _0x325993 of _0x442c0c)if(_0x325993['item']['is']('element','tableCell')){const _0x4eb03b=this['_getVidAttributeName'](_0x325993),_0x560211=_0x325993['item']['getAttribute'](_0x4eb03b);if(_0x214276['has'](_0x560211)){const _0xe0d14f=_0x325993['item']['parent']['parent']['getAttribute']('vid_start'),_0x1191b7=_0x4d03aa['get'](_0xe0d14f)||new Set();_0x1191b7['add'](_0x214276['get'](_0x560211)['userId']),_0x4d03aa['set'](_0xe0d14f,_0x1191b7);}}for(const _0x1b2cc6 of _0x4d03aa['keys']())(_0x418c1f['has'](_0x1b2cc6)||_0x214276['has'](_0x1b2cc6))&&_0x4d03aa['delete'](_0x1b2cc6);}for(const _0x2625b3 of _0x294f74){const _0x133fec=_0x5478b4['insertions'][_0x2625b3];let _0x262525=null,_0x1a37bf=null;for(const _0x29617f of _0x133fec){const _0x44648c=this['_getVidAttributeName'](_0x29617f),_0x1642c9=_0x29617f['item']['getAttribute'](_0x44648c),_0x21d2c7=_0x4d03aa['get'](_0x1642c9);_0x21d2c7&&'elementStart'==_0x29617f['type']&&(_0x262525=Array['from'](_0x21d2c7)[0x0],_0x1a37bf=_0x29617f['item']['getAttribute']('vid_end')),_0x262525&&(_0x214276['set'](_0x1642c9,{'userId':_0x262525}),_0x418c1f['set'](_0x1642c9,{'userId':_0x262525})),_0x1642c9==_0x1a37bf&&(_0x262525=null,_0x1a37bf=null);}}const _0x1919ee={},_0x14439a=new Set();for(const _0x133b04 of _0x294f74){const _0x503f02=_0x257fd0['deletions'][_0x133b04],_0x3c7e90=_0x257fd0['insertions'][_0x133b04];for(const {userId:_0xc85506}of this['_touchedMarkers']['values']())null!==_0xc85506&&_0x14439a['add'](_0xc85506);for(const {userId:_0x12f1c0}of this['_touchedRoots']['values']())null!==_0x12f1c0&&_0x14439a['add'](_0x12f1c0);this['_markChanges'](_0x3c7e90,_0x5478b4['insertions'][_0x133b04],_0x418c1f,'insertion',_0x14439a),this['_markChanges'](_0x503f02,_0x5478b4['deletions'][_0x133b04],_0x214276,'deletion',_0x14439a),_0x1919ee[_0x133b04]={'insertions':this['_prepareViewToSave'](_0x3c7e90),'deletions':this['_prepareViewToSave'](_0x503f02),'attachChange':this['_touchedRoots']['get'](_0x133b04)||null,'attributesBefore':_0x2b5a55(this['_baseRootsAttributes']['get'](_0x133b04))||{},'attributesAfter':_0x2b5a55(this['_diffRootsAttributes']['get'](_0x133b04))};}return{'diffData':_0x1919ee,'authorsIds':Array['from'](_0x14439a)};}['_processRootBeforeSave'](_0x180e9e){for(const [,_0x3219d2]of _0x180e9e['markers']){const _0x254c04=_0x3219d2['start']['getAncestors']()['filter'](_0x48a9de=>'tableCell'==_0x48a9de['name']);for(const _0x107a7a of _0x254c04)0x1==_0x107a7a['childCount']&&_0x107a7a['getChild'](0x0)['is']('element','paragraph')&&_0x107a7a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4a7320){this['_processRootBeforeSave'](_0x4a7320);const _0x4e557e=this['editor']['data']['toView'](_0x4a7320,{}),_0x5df2bd=Array['from'](_0x4e557e['getChildren']())['map'](_0xfe0389=>this['_getViewJson'](_0xfe0389));return JSON['stringify'](_0x5df2bd);}['_getViewJson'](_0x83e1ad){if(_0x83e1ad['is']('$text'))return _0x83e1ad['data'];{const _0x30f675=_0x83e1ad;return{'type':Object['keys'](E)['find'](_0x490d37=>_0x83e1ad instanceof E[_0x490d37]),'name':_0x30f675['name'],'attributes':Array['from'](_0x30f675['getAttributes']()),'children':Array['from'](_0x30f675['getChildren']())['map'](_0x120148=>this['_getViewJson'](_0x120148))};}}['_markChanges'](_0x5c3ea0,_0x272bc4,_0x2418f8,_0x448c2c,_0x5598ba){let _0x35d6ba=null,_0x162214=null,_0x7da0e4=0x0;const _0x4d4841=this['editor']['model'];for(let _0x142138=0x0;_0x142138<_0x272bc4['length'];_0x142138++){const _0x7a6e3d=this['_getVidAttributeName'](_0x272bc4[_0x142138]),_0x2afce9=_0x272bc4[_0x142138]['item']['getAttribute'](_0x7a6e3d),_0xbec615=_0x2418f8['get'](_0x2afce9),_0xc6a3af=_0x142138==_0x272bc4['length']-0x1;(!_0x35d6ba&&_0xbec615&&(_0x35d6ba=_0xbec615,_0x162214=_0x272bc4[_0x142138]),_0x35d6ba&&(!_0xbec615||_0xbec615['userId']!=_0x35d6ba['userId']))&&(_0x1bea52(_0xbec615,B(_0x162214,_0x5c3ea0,_0x4d4841),B(_0x272bc4[_0x142138],_0x5c3ea0,_0x4d4841)),_0x35d6ba=_0xbec615||null,_0x162214=_0xbec615?_0x272bc4[_0x142138]:null),_0x35d6ba&&_0xc6a3af&&_0x1bea52(_0xbec615,B(_0x162214,_0x5c3ea0,_0x4d4841),J(_0x272bc4[_0x142138],_0x5c3ea0,_0x4d4841));}function _0x1bea52(_0x546fd5,_0x4c5315,_0x308640){const _0x1cc067=_0x35d6ba['userId'],_0x4ccda8='revision:'+_0x448c2c+':'+_0x1cc067+':'+_0x7da0e4++,_0x450503=_0x4d4841['createRange'](_0x4c5315,_0x308640);_0x5c3ea0['markers']['set'](_0x4ccda8,_0x450503),null!==_0x1cc067&&_0x5598ba['add'](_0x1cc067);}}['_getVidAttributeName'](_0x301acf){switch(_0x301acf['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x245506,_0x5bdcd6){_0x245506['baseVersion']=null;for(const _0x4ac1b6 in _0x245506){const _0x131ae6=_0x245506[_0x4ac1b6];if(_0x131ae6 instanceof vt){const _0xe32de0=_0x5bdcd6['get'](_0x131ae6['root']['rootName']);_0x245506[_0x4ac1b6]=this['_fixPosition'](_0x131ae6,_0xe32de0);}if(_0x131ae6 instanceof ft){const _0x1f5594=_0x5bdcd6['get'](_0x131ae6['root']['rootName']);_0x245506[_0x4ac1b6]=this['_fixRange'](_0x131ae6,_0x1f5594);}'root'===_0x4ac1b6&&(_0x245506['root']=_0x5bdcd6['get'](_0x245506['root']['rootName']));}}['_fixRange'](_0x3fffaa,_0x2b602c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3fffaa['start'],_0x2b602c),this['_fixPosition'](_0x3fffaa['end'],_0x2b602c));}['_fixPosition'](_0x395317,_0x1092a2){return this['editor']['model']['createPositionFromPath'](_0x1092a2,_0x395317['path'],_0x395317['stickiness']);}['_handleInsertOperation'](_0x1778b7){const _0x43edf0=this['_idsRoots']['get'](_0x1778b7['position']['root']['rootName']),_0x3a40ac=this['_fixPosition'](_0x1778b7['position'],_0x43edf0),_0x33548a=null===_0x1778b7['_authorId']?null:_0x1778b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x428466=_0x3a40ac['parent'],_0x224875=this['_revisionId'],_0x4bc8ef=[];for(const _0x1bc036 of _0x1778b7['nodes'])if(_0x1bc036['is']('element'))_0x4bc8ef['push'](this['_makeIdsRoot'](_0x1bc036));else{for(let _0x42ec5b=0x0;_0x42ec5b<_0x1bc036['offsetSize'];_0x42ec5b++)_0x4bc8ef['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x26c54c=this['_revisionId'];for(let _0x16c1b2=_0x224875;_0x16c1b2<_0x26c54c;_0x16c1b2++)this['_touched']['set'](_0x16c1b2,{'userId':_0x33548a});_0x428466['_insertChild'](_0x3a40ac['offset'],_0x4bc8ef);}['_handleMoveOperation'](_0x3d394c){(_0x3d394c=this['_cloneOperation'](_0x3d394c,this['_idsRoots']))['_execute']();const _0x27b9e9=null===_0x3d394c['_authorId']?null:_0x3d394c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ae409=_0x3d394c['getMovedRangeStart'](),_0xdce21e=_0x5ae409['parent'],_0x569a32=_0x5ae409['offset'];!function _0x564ad9(_0x1526d9,_0x199ab6,_0x110f32,_0x89a2e9){for(let _0x36d498=_0x110f32;_0x36d498<_0x89a2e9;_0x36d498++){const _0x2a2de2=_0x199ab6['getChild'](_0x36d498);_0x2a2de2['is']('element','$text')?_0x1526d9['set'](_0x2a2de2['getAttribute']('vid'),{'userId':_0x27b9e9}):(_0x1526d9['set'](_0x2a2de2['getAttribute']('vid_start'),{'userId':_0x27b9e9}),_0x564ad9(_0x1526d9,_0x2a2de2,0x0,_0x2a2de2['childCount']),_0x1526d9['set'](_0x2a2de2['getAttribute']('vid_end'),{'userId':_0x27b9e9}));}}(this['_touched'],_0xdce21e,_0x569a32,_0x569a32+_0x3d394c['howMany']);}['_handleMergeOperation'](_0x363b3c){const _0x27f0a6=null===(_0x363b3c=this['_cloneOperation'](_0x363b3c,this['_idsRoots']))['_authorId']?null:_0x363b3c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27f512=_0x363b3c['targetPosition']['parent'],_0x34565f=_0x363b3c['sourcePosition']['parent'],_0x697ff4=_0x27f512['getAttribute']('vid_end'),_0x58495e=_0x34565f['getAttribute']('vid_start');_0x27f512['_setAttribute']('vid_end',_0x34565f['getAttribute']('vid_end')),_0x34565f['_setAttribute']('vid_end',_0x697ff4),this['_touched']['set'](_0x58495e,{'userId':_0x27f0a6}),this['_touched']['set'](_0x697ff4,{'userId':_0x27f0a6}),_0x363b3c['_execute']();}['_handleSplitOperation'](_0x315c67){const _0x2ef5f4=null===(_0x315c67=this['_cloneOperation'](_0x315c67,this['_idsRoots']))['_authorId']?null:_0x315c67['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x460879=_0x315c67['graveyardPosition'],_0x47939e=_0x315c67['splitPosition']['parent'];_0x315c67['_execute']();const _0x562e40=_0x47939e['getAttribute']('vid_end'),_0x35dc8c=_0x315c67['insertionPosition']['nodeAfter'];if(_0x460879){const _0x13bc48=_0x35dc8c['getAttribute']('vid_end'),_0x40a445=_0x47939e['getAttribute']('vid_end');_0x47939e['_setAttribute']('vid_end',_0x13bc48),_0x35dc8c['_setAttribute']('vid_end',_0x40a445),this['_touched']['set'](_0x47939e['getAttribute']('vid_end'),{'userId':_0x2ef5f4}),this['_touched']['set'](_0x35dc8c['getAttribute']('vid_start'),{'userId':_0x2ef5f4});}else{const _0x24ff3b=this['_revisionId']++,_0x5df473=this['_revisionId']++;_0x47939e['_setAttribute']('vid_end',_0x24ff3b),_0x35dc8c['_setAttribute']('vid_start',_0x5df473),_0x35dc8c['_setAttribute']('vid_end',_0x562e40),this['_touched']['set'](_0x24ff3b,{'userId':_0x2ef5f4}),this['_touched']['set'](_0x5df473,{'userId':_0x2ef5f4});}}['_handleMarkerOperation'](_0x43e233){if(!_0x43e233['affectsData'])return;const _0x1531f1=(_0x43e233=this['_cloneOperation'](_0x43e233,this['_diffRoots']))['oldRange']?_0x43e233['oldRange']['root']:null,_0xa820c4=_0x43e233['newRange']?_0x43e233['newRange']['root']:null;_0x1531f1&&this['_markers']['delete'](_0x43e233['name']),_0xa820c4&&this['_markers']['set'](_0x43e233['name'],_0x43e233['newRange']['clone']());const _0x56e1ff=null===_0x43e233['_authorId']?null:_0x43e233['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2052f6=_0x43e233['name'];if(!this['_touchedMarkers']['has'](_0x2052f6))return void this['_touchedMarkers']['set'](_0x2052f6,{'range':_0x43e233['oldRange'],'userId':_0x56e1ff});const _0x5e4533=this['_touchedMarkers']['get'](_0x2052f6),_0x48e04d=_0x5e4533['range'],_0x4f4cdf=_0x43e233['newRange'];null==_0x48e04d&&null==_0x4f4cdf||_0x48e04d&&_0x4f4cdf&&_0x48e04d['isEqual'](_0x4f4cdf)?this['_touchedMarkers']['delete'](_0x43e233['name']):_0x5e4533['userId']=_0x56e1ff;}['_handleRootOperation'](_0x5967e4,_0x22b38d){this['_diffRoots']['has'](_0x5967e4['rootName'])?this['_diffRoots']['get'](_0x5967e4['rootName'])['_isAttached']=_0x5967e4['isAdd']:(this['_diffRoots']['set'](_0x5967e4['rootName'],F(_0x5967e4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5967e4['rootName'],{}),_0x22b38d&&this['_idsRoots']['set'](_0x5967e4['rootName'],F(_0x5967e4['rootName'],!0x0)));const _0x4ecbe2=null===_0x5967e4['_authorId']?null:_0x5967e4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ce606=this['_touchedRoots']['get'](_0x5967e4['rootName']);_0x2ce606&&_0x2ce606['userId']===_0x4ecbe2?this['_touchedRoots']['delete'](_0x5967e4['rootName']):this['_touchedRoots']['set'](_0x5967e4['rootName'],{'userId':_0x4ecbe2,'isAttached':_0x5967e4['isAdd']});}['_handleRootAttributeOperation'](_0x48eee4){const _0x43f53f=this['_diffRootsAttributes']['get'](_0x48eee4['root']['rootName']);null===_0x48eee4['newValue']?delete _0x43f53f[_0x48eee4['key']]:_0x43f53f[_0x48eee4['key']]=_0x48eee4['newValue'];}}function T(_0x2b38ac){const _0x6d6b7=F(_0x2b38ac['rootName'],_0x2b38ac['isAttached']());for(const _0xe30b81 of _0x2b38ac['getChildren']()){const _0x23f5be=_0xe30b81['_clone'](!0x0);_0x6d6b7['_appendChild'](_0x23f5be);}return _0x6d6b7;}function F(_0x15464b,_0x509567=!0x0){const _0x35941b=new gt();return _0x35941b['rootName']=_0x15464b,_0x35941b['_isAttached']=_0x509567,_0x35941b['isAttached']=()=>_0x35941b['_isAttached'],_0x35941b;}function B(_0x2ec876,_0x103f09,_0x43bb2d){const _0x32112b='elementEnd'==_0x2ec876['type']?_0x43bb2d['createPositionAt'](_0x2ec876['item'],'end'):_0x43bb2d['createPositionBefore'](_0x2ec876['item']);return _0x43bb2d['createPositionFromPath'](_0x103f09,_0x32112b['path'],_0x32112b['stickiness']);}function J(_0x5b1929,_0x5ef9f4,_0x4b8921){const _0x676ebc='elementStart'==_0x5b1929['type']?_0x4b8921['createPositionAt'](_0x5b1929['item'],0x0):_0x4b8921['createPositionAfter'](_0x5b1929['item']);return _0x4b8921['createPositionFromPath'](_0x5ef9f4,_0x676ebc['path'],_0x676ebc['stickiness']);}class os extends _0x466f03{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3c8234,_0x57f0aa){super(_0x3c8234),this['focusTracker']=new _0xa480af(),this['keystrokes']=new _0xe26ce4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x57f0aa),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'](),_0x19f88f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5acf19=_0x2b3c14=>_0x2b3c14['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5acf19),this['keystrokes']['set']('arrowleft',_0x5acf19),this['keystrokes']['set']('arrowup',_0x5acf19),this['keystrokes']['set']('arrowdown',_0x5acf19);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x556543){this['revisionNameInputView']['fieldView']['element']['value']=_0x556543['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3a9fdf){const _0x4dcd39=new at(this['locale'],ti),_0x5e3930=_0x4dcd39['fieldView'];_0x5e3930['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1ea453=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3a9fdf&&(_0x1ea453+='\x20('+m(this['locale'],'optional')+')'),(_0x4dcd39['label']=_0x1ea453,_0x5e3930['on']('input',()=>{this['revisionNameInputValue']=_0x5e3930['element']['value']['trim']();}),_0x4dcd39);}}class f extends _0x13fc58{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x532fe4=this['editor'],_0x3c6108=_0x532fe4['plugins']['get']('RevisionTracker');_0x532fe4['ui']['componentFactory']['add']('revisionHistory',_0x3d54ca=>{const _0x14b923=_0x1d35f8(_0x3d54ca),_0x2ade3d=_0x14b923['panelView']['children'],_0x3198af=new _0x1d158e(_0x3d54ca),_0x312d40=new te(_0x3d54ca),_0x4d9f5a=new _0x491614(_0x3d54ca),_0x259411=new te(_0x3d54ca),_0x1e91f8=new _0x491614(_0x3d54ca);return _0x14b923['bind']('isEnabled')['to'](_0x3c6108,'isReady',_0x3c6108,'isEnabled',_0x532fe4,'isReadOnly',(_0x41a2ba,_0x4df5cb,_0xd923e7)=>_0x41a2ba&&_0x4df5cb&&!_0xd923e7),_0x14b923['buttonView']['set']({'icon':_0x344f35,'label':m(_0x3d54ca,'Revision\x20history'),'tooltip':!0x0}),_0x4d9f5a['set']({'label':m(_0x3d54ca,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4d9f5a['bind']('isEnabled')['to'](_0x3c6108,'isReady',_0x3c6108,'isEnabled',_0x532fe4,'isReadOnly',(_0xa689f3,_0x4f50e3,_0x395201)=>_0xa689f3&&_0x4f50e3&&!_0x395201),_0x4d9f5a['on']('execute',()=>this['_showDialog']()),_0x1e91f8['set']({'label':m(_0x3d54ca,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1e91f8['bind']('isEnabled')['to'](_0x3c6108,'isReady',_0x532fe4,'isReadOnly',(_0xba34a2,_0x332a9c)=>_0xba34a2&&!_0x332a9c),_0x1e91f8['on']('execute',()=>{_0x532fe4['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x14b923['isOpen']=!0x1,_0x532fe4['editing']['view']['focus']();}),_0x312d40['children']['add'](_0x4d9f5a),_0x259411['children']['add'](_0x1e91f8),_0x3198af['role']='menu',_0x3198af['items']['addMany']([_0x312d40,_0x259411]),_0x2ade3d['add'](_0x3198af),_0x14b923;}),_0x532fe4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1d1324=this['editor'],_0x398034=_0x1d1324['locale'],_0x188b64=new _0x3b1f51(_0x398034),_0x25066c=new _0x29d230(_0x398034);_0x188b64['buttonView']['set']({'icon':_0x344f35,'label':m(_0x398034,'Revision\x20history')});const _0x16d2b4=new _0x24b1cd(_0x398034,_0x188b64),_0x1e689c=new _0x2ea120(_0x398034);_0x1e689c['set']({'label':m(_0x398034,'Save\x20current\x20revision')}),_0x1e689c['delegate']('execute')['to'](_0x188b64),_0x1e689c['on']('execute',()=>{this['_showDialog']();}),_0x16d2b4['children']['add'](_0x1e689c),_0x25066c['items']['add'](_0x16d2b4);const _0x4d853d=new _0x24b1cd(_0x398034,_0x188b64),_0x3da3f7=new _0x2ea120(_0x398034);return _0x3da3f7['set']({'label':m(_0x398034,'Open\x20revision\x20history')}),_0x3da3f7['delegate']('execute')['to'](_0x188b64),_0x3da3f7['on']('execute',()=>{_0x1d1324['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4d853d['children']['add'](_0x3da3f7),_0x25066c['items']['add'](_0x4d853d),_0x188b64['panelView']['children']['add'](_0x25066c),_0x188b64;}['_showDialog'](){const _0x62d16d=this['editor'],_0x146596=_0x62d16d['locale'],_0x4f6541=_0x62d16d['plugins']['get']('Dialog'),_0x2159de=_0x62d16d['plugins']['get']('RevisionTracker');function _0x38e1a8(_0x293bfe){_0x62d16d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x293bfe['revisionName']?_0x293bfe['revisionNameInputView']['errorText']=m(_0x146596,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x62d16d['plugins']['get'](u)['saveRevision']({'name':_0x293bfe['revisionName']}),_0x4f6541['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x38e1a8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4f6541['show']({'id':'revisionSave','title':m(_0x146596,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x62d16d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4f6541['hide']()},{'label':m(_0x62d16d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xba455){_0xba455['bind']('isEnabled')['to'](_0x2159de,'isReady',_0x2159de,'isEnabled',_0x62d16d,'isReadOnly',(_0x3432d1,_0x35c472,_0x481e3c)=>_0x3432d1&&_0x35c472&&!_0x481e3c);},'onExecute':()=>_0x38e1a8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x40941b=this['editor'],_0x34bbdf=_0x40941b['locale'];this['_saveRevisionFormView']=new os(_0x34bbdf,_0x40941b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x466f03{['changeId'];['_model'];constructor(_0x1bd529,_0x4655f8){super(_0x1bd529),this['_model']=_0x4655f8,this['changeId']=_0x4655f8['id'];const _0x5f301a=this['bindTemplate'],_0x1fc51a=m(_0x1bd529,_0x4655f8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4655f8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4655f8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5f301a['to']('type',_0x350a53=>'ck-revision-change__'+_0x350a53)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1fc51a}]},{'text':'\x20'+_0x4655f8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x2dd53b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x44b0e4){super(),this['id']=_0x44b0e4['id']||_0x1e756b(),this['author']=_0x44b0e4['author'],this['type']=_0x44b0e4['type'],this['data']=_0x44b0e4['data']||{},this['rootName']=_0x44b0e4['rootName'],this['set']('createdAt',_0x44b0e4['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(_0x129adb,_0x3a8d02){this['newRevisionId']=_0x129adb,this['oldRevisionId']=_0x3a8d02,this['changes']=new _0x45d5c2();}['_setChanges'](_0x50eef6){for(const _0x2e9702 of _0x50eef6)this['changes']['add'](_0x2e9702);}}const Y={'c':_0x533b4e,'a':_0x38e199,'e':_0xa901c4,'r':_0x115453,'u':_0x41d931};class d extends _0x13fc58{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xc1ab57,_0x515bcc,j];}constructor(_0x5bab43){super(_0x5bab43),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3cee43,_0x459239,_0x4f04af)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5edd57=>{for(const _0x4ba112 of this['editor']['editing']['view']['document']['roots'])_0x4f04af?_0x5edd57['removeClass']('ck-editor__editable__overlay',_0x4ba112):_0x5edd57['addClass']('ck-editor__editable__overlay',_0x4ba112);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2c9e91=>null!==_0x2c9e91),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x11df07,_0x1a946d,_0x47d289)=>_0x11df07&&_0x47d289?_0x1a946d['changes']['getIndex'](_0x47d289):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3666d4,_0x2c1afd)=>_0x3666d4?_0x2c1afd['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x515bcc);}['init'](){const _0x48e67c=this['editor'],_0x26a55c=new yt(_0x48e67c,{'direction':'backward'}),_0x43f61c=new yt(_0x48e67c,{'direction':'forward'});(_0x48e67c['commands']['add']('showPreviousChange',_0x26a55c),_0x48e67c['commands']['add']('showNextChange',_0x43f61c),_0x48e67c['commands']['add']('restoreRevision',new _t(_0x48e67c)),this['on']('change:numberOfChanges',()=>{_0x26a55c['refresh'](),_0x43f61c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x48e67c['enableReadOnlyMode']('revision-viewer'),_0x48e67c['plugins']['has']('WidgetToolbarRepository'))&&_0x48e67c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xb3a506){await this['loadRevisionData'](_0xb3a506);const _0x43394b={};for(const _0x4b5a29 in _0xb3a506['diffData']){if(_0xb3a506['diffData'][_0x4b5a29]['attachChange']&&!_0xb3a506['diffData'][_0x4b5a29]['attachChange']['isAttached'])continue;const _0x25925=this['_removeRevisionMarkers'](JSON['parse'](_0xb3a506['diffData'][_0x4b5a29]['insertions'])),_0x4d0f98=this['editor']['editing']['view']['document'],_0x24f8e5=new _0x46cadc(_0x4d0f98,_0x25925['map'](_0x418e10=>this['_getViewObj'](_0x418e10)));this['editor']['data']['processor']['useFillerType']('marked'),_0x43394b[_0x4b5a29]=this['editor']['data']['processor']['toData'](_0x24f8e5),this['editor']['data']['processor']['useFillerType']('default');}return _0x43394b;}async['getRevisionRootsAttributes'](_0x4ee098){await this['loadRevisionData'](_0x4ee098);const _0x486e12={};for(const _0xf015c6 in _0x4ee098['diffData'])_0x4ee098['diffData'][_0xf015c6]['attachChange']&&!_0x4ee098['diffData'][_0xf015c6]['attachChange']['isAttached']||(_0x486e12[_0xf015c6]=_0x4ee098['diffData'][_0xf015c6]['attributesAfter']||{});return _0x486e12;}['_removeRevisionMarkers'](_0x3171d6){return(_0x3171d6=_0x3171d6['filter'](_0x4c573a=>!_0x4c573a['name']||'revision-start'!==_0x4c573a['name']&&'revision-end'!==_0x4c573a['name']))['forEach'](_0x4ece74=>{'string'!=typeof _0x4ece74&&(_0x4ece74['children']=this['_removeRevisionMarkers'](_0x4ece74['children']),_0x4ece74['attributes']=_0x4ece74['attributes']['filter'](_0x136f3a=>!_0x136f3a[0x0]['startsWith']('data-revision-')));}),_0x3171d6;}async['compare'](_0x1a1179,_0x8a9ba7,_0x4533aa=!0x1){if(!this['isEnabled'])return;const _0x16bb39=this['diff'],_0x4c0323=this['repository'],_0x18491a='string'==typeof _0x1a1179?_0x4c0323['getRevision'](_0x1a1179):_0x1a1179,_0x596ebb='string'==typeof _0x8a9ba7?_0x4c0323['getRevision'](_0x8a9ba7):_0x8a9ba7,_0xd90c90=_0x18491a['id'],_0x41a01c=_0x596ebb?_0x596ebb['id']:null;if(!_0x4533aa&&this['diff']&&this['diff']['newRevisionId']===_0xd90c90&&this['diff']['oldRevisionId']===_0x41a01c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xd90c90,_0x41a01c);const _0x3779e3=this['_getRevisionsRange'](_0x18491a,_0x596ebb,!0x0)['map'](_0x579b1b=>this['loadRevisionData'](_0x579b1b));return _0x3779e3['push'](new Promise(_0x5e5ac5=>{setTimeout(_0x5e5ac5,0x14);})),Promise['all'](_0x3779e3)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x10e928=this['_getDiff'](_0xd90c90,_0x41a01c);for(const _0x7e26a5 of _0x10e928['changes'])this['_changeIdToChange']['set'](_0x7e26a5['id'],_0x7e26a5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e5311=>{for(const _0x3414fc of this['editor']['model']['document']['getRootNames']())_0x3e5311['detachRoot'](_0x3414fc);for(const _0x433040 of Object['keys'](_0x10e928['model'])){const _0x581032=_0x3e5311['addRoot'](_0x433040);for(const _0x319df1 of Object['keys'](_0x10e928['attributes'][_0x433040]))_0x3e5311['setAttribute'](_0x319df1,_0x10e928['attributes'][_0x433040][_0x319df1],_0x581032);_0x3e5311['insert'](_0x10e928['model'][_0x433040],_0x581032,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x10e928['changes'])),this['isReady']=!0x0;})['catch'](_0x37e0e1=>{console['error'](_0x37e0e1),this['_cleanUp'](),_0x16bb39&&(this['diff']=_0x16bb39),this['isReady']=!0x0;});}['addRevisionData'](_0x25ed1d,_0xefeda0){const _0x5666f6=this['repository']['createRevision'](_0x25ed1d);return _0x5666f6['on']('_update',(_0x1c799e,_0x3c6ba9,_0xebfd3b)=>_0xefeda0(_0x3c6ba9,_0xebfd3b,_0x5666f6)),this['repository']['addRevision'](_0x5666f6),_0x5666f6;}['loadRevisionData'](_0xea84e2){if(!_0xea84e2||_0xea84e2['diffData'])return Promise['resolve']();{const _0x3d624b=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3d624b,'revisionId':_0xea84e2['id']})['then'](_0x188188=>{_0xea84e2['_update']({'diffData':_0x188188['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3a525f=>{for(const _0x48b676 of this['editor']['model']['document']['getRootNames']())_0x3a525f['detachRoot'](_0x48b676);});}['_sortAndFilterDiffChanges'](_0x6207c6){const _0x33237e=[],_0x4d8793=new Map();for(const _0x1abe4a of this['editor']['model']['document']['getRootNames']()){const _0x429a28=this['editor']['editing']['view']['getDomRoot'](_0x1abe4a);if(!_0x429a28)continue;const _0xf12152=_0x429a28['getClientRects']()['item'](0x0);_0xf12152&&(_0x33237e['push'](_0x1abe4a),_0x4d8793['set'](_0x1abe4a,_0xf12152));}return _0x33237e['sort']((_0x3623e3,_0x1eb9b1)=>{const _0x332c48=_0x4d8793['get'](_0x3623e3),_0x103eaf=_0x4d8793['get'](_0x1eb9b1);return _0x332c48['y']-_0x103eaf['y']||_0x332c48['x']-_0x103eaf['x'];}),(_0x6207c6=_0x6207c6['filter'](_0x3a1251=>_0x33237e['includes'](_0x3a1251['rootName'])))['sort']((_0x223aa9,_0x4f603d)=>_0x33237e['indexOf'](_0x223aa9['rootName'])-_0x33237e['indexOf'](_0x4f603d['rootName'])),_0x6207c6;}['_makeTape'](_0x2d7589){const _0xae7633=Array['from'](_0x2d7589['markers'])['filter'](([_0x43c274,_0x2deccc])=>_0x43c274['startsWith']('revision:')&&!_0x2deccc['isCollapsed']),_0x15f517=Array['from'](this['editor']['model']['createRangeIn'](_0x2d7589)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xae7633['length'])for(const _0x28db36 of _0x15f517){const [_0x38e20a,_0x449b5b]=_0xae7633[0x0],[,_0x3811ac,_0x4adf85]=_0x38e20a['split'](':');if(_0x449b5b['end']['isEqual'](_0x28db36['nextPosition'])&&_0xae7633['shift'](),(_0x28db36['previousPosition']['isEqual'](_0x449b5b['start'])||_0x28db36['previousPosition']['isAfter'](_0x449b5b['start']))&&('insertion'==_0x3811ac?_0x28db36['isAdded']={'userId':_0x4adf85}:'deletion'==_0x3811ac&&(_0x28db36['isRemoved']={'userId':_0x4adf85})),0x0==_0xae7633['length'])break;}return _0x15f517;}['_refreshStartEndIndex'](_0x58108d){const _0x4e8735=new Map();for(let _0x41c739=0x0;_0x41c739<_0x58108d['length'];_0x41c739++)'text'===_0x58108d[_0x41c739]['type']?(_0x58108d[_0x41c739]['item']['startIndex']=_0x41c739,_0x58108d[_0x41c739]['item']['endIndex']=_0x41c739):('elementStart'===_0x58108d[_0x41c739]['type']?_0x58108d[_0x41c739]['item']['startIndex']=_0x41c739:'elementEnd'===_0x58108d[_0x41c739]['type']&&(_0x58108d[_0x41c739]['item']['endIndex']=_0x41c739),_0x4e8735['set'](_0x58108d[_0x41c739]['id'],_0x41c739));for(const _0x11b551 of _0x4e8735['values']())'elementStart'===_0x58108d[_0x11b551]['type']?_0x58108d[_0x11b551]['item']['endIndex']=_0x4e8735['get'](_0x58108d[_0x11b551]['pairId']):'elementEnd'===_0x58108d[_0x11b551]['type']&&(_0x58108d[_0x11b551]['item']['startIndex']=_0x4e8735['get'](_0x58108d[_0x11b551]['pairId']));}['_processTape'](_0x4acbd5){for(let _0x103580=0x0;_0x103580<_0x4acbd5['length'];_0x103580++){if('elementStart'===_0x4acbd5[_0x103580]['type'])_0x4acbd5[_0x103580]['item']['startIndex']=_0x103580;else{if('elementEnd'===_0x4acbd5[_0x103580]['type']){_0x4acbd5[_0x103580]['item']['endIndex']=_0x103580;const _0x343434=_0x4acbd5[_0x103580]['item']['startIndex'];_0x4acbd5[_0x343434]['pairId']=_0x4acbd5[_0x103580]['id'],_0x4acbd5[_0x103580]['pairId']=_0x4acbd5[_0x343434]['id'];}else _0x4acbd5[_0x103580]['item']['startIndex']=_0x103580,_0x4acbd5[_0x103580]['item']['endIndex']=_0x103580,_0x4acbd5[_0x103580]['pairId']=null;}_0x4acbd5[_0x103580]['markersStart']||(_0x4acbd5[_0x103580]['markersStart']=[],_0x4acbd5[_0x103580]['markersEnd']=[]);}}['_markInsertions'](_0x3bc1b8,_0x3f346b){const _0x92e0d9=_0x3bc1b8['filter'](_0x7f497d=>!_0x7f497d['isAdded']);for(let _0x5bae28=0x0;_0x5bae28<_0x3f346b['length'];_0x5bae28++)_0x3f346b[_0x5bae28]['isAdded']&&(_0x92e0d9[_0x5bae28]['isAdded']=_0x3f346b[_0x5bae28]['isAdded']);}['_makeModelFromViewString'](_0x3e4daa){const _0x4a26da=JSON['parse'](_0x3e4daa),_0x29b314=this['editor']['editing']['view']['document'],_0xe8eeae=new _0x46cadc(_0x29b314,_0x4a26da['map'](_0x4aaa11=>this['_getViewObj'](_0x4aaa11)));return this['editor']['data']['toModel'](_0xe8eeae);}['_getViewObj'](_0x53fdcb){const _0x31dbd2=this['editor']['editing']['view']['document'];if('string'==typeof _0x53fdcb)return new _0x3b3f30(_0x31dbd2,_0x53fdcb);{const _0x1f08c5=_0x53fdcb['children']['map'](_0x93ac14=>this['_getViewObj'](_0x93ac14));return new(Y[_0x53fdcb['type']]||_0x20dfc0)(_0x31dbd2,_0x53fdcb['name'],_0x53fdcb['attributes'],_0x1f08c5);}}['_getDiff'](_0x5bcf16,_0x196bdd=null){const _0x4bc914=this['repository']['getRevision'](_0x5bcf16),_0x597619=_0x196bdd?this['repository']['getRevision'](_0x196bdd):null,_0x129634=this['_getRevisionsRange'](_0x4bc914,_0x597619),_0x4e4635=_0x129634[_0x129634['length']-0x1],_0x2bb8a7=new Map(),_0x49683c={'model':{},'attributes':{},'changes':[]},_0x412fe8=new Set(),_0x3b194f=new Map();for(let _0x340d21=_0x129634['length']-0x1;_0x340d21>=0x0;_0x340d21--){const _0x1758f9=_0x129634[_0x340d21];for(const _0x2e5144 of Object['keys'](_0x1758f9['diffData']))if(_0x1758f9['diffData'][_0x2e5144]['attachChange']){const _0x56e6d7=_0x1758f9['diffData'][_0x2e5144]['attachChange'];_0x56e6d7['isAttached']?(_0x412fe8['add'](_0x2e5144),_0x3b194f['has'](_0x2e5144)&&_0x3b194f['get'](_0x2e5144)['userId']==_0x56e6d7['userId']?_0x3b194f['delete'](_0x2e5144):_0x3b194f['set'](_0x2e5144,_0x56e6d7)):_0x3b194f['has'](_0x2e5144)?(_0x412fe8['delete'](_0x2e5144),_0x3b194f['delete'](_0x2e5144)):(_0x412fe8['add'](_0x2e5144),_0x3b194f['set'](_0x2e5144,_0x56e6d7));}else _0x412fe8['add'](_0x2e5144);}for(const _0x593298 of _0x412fe8){const _0x1c2ac0=_0x3b194f['has'](_0x593298)&&!_0x3b194f['get'](_0x593298)['isAttached'];let _0x26dcb0=_0x1c2ac0?_0x129634['length']-0x1:0x0;const _0x7621c8=_0x1c2ac0?-0x1:0x1;for(;_0x129634[_0x26dcb0];){const _0xece9b2=_0x129634[_0x26dcb0];if(_0xece9b2['diffData'][_0x593298]){const _0x42979e=_0x1c2ac0?_0xece9b2['diffData'][_0x593298]['attributesBefore']:_0xece9b2['diffData'][_0x593298]['attributesAfter'];_0x49683c['attributes'][_0x593298]=_0x42979e?_0x2b5a55(_0x42979e):{};break;}_0x26dcb0+=_0x7621c8;}}for(const _0x5a0a98 of _0x129634){_0x5a0a98['model']={};for(const _0x41e5ff of _0x5a0a98['authors'])_0x2bb8a7['set'](_0x41e5ff['id'],_0x41e5ff);for(const _0x2341fe of _0x412fe8){const _0x3b1008=_0x5a0a98['diffData'][_0x2341fe]?_0x5a0a98['diffData'][_0x2341fe]['insertions']:'[]',_0x152da8=_0x5a0a98['diffData'][_0x2341fe]?_0x5a0a98['diffData'][_0x2341fe]['deletions']:'[]';_0x5a0a98['model'][_0x2341fe]={'insertions':this['_makeModelFromViewString'](_0x3b1008),'deletions':this['_makeModelFromViewString'](_0x152da8)};}}for(const _0x1b07e9 of _0x412fe8){let _0x3ccd4b=null,_0xaa010c=0x0;const _0xf13cda=new Map(Array['from'](_0x4bc914['model'][_0x1b07e9]['insertions']['markers'])['filter'](([_0x754e87])=>!_0x754e87['startsWith']('revision:')));let _0x47a8fa=0x0;for(const _0x671b00 of _0x129634){const _0x236989=this['_makeTape'](_0x671b00['model'][_0x1b07e9]['insertions']);_0x671b00==_0x4bc914?(_0x3ccd4b=_0x236989,_0xaa010c=_0x3ccd4b['length'],_0x3ccd4b['forEach'](_0xae1081=>{_0xae1081['id']=_0x47a8fa++;}),this['_processTape'](_0x3ccd4b)):this['_markInsertions'](_0x3ccd4b,_0x236989);const _0x3e01c3=_0x3ccd4b['filter'](_0x4145d2=>!_0x4145d2['isAdded'])['map'](_0x4c50bc=>_0x4c50bc['id']);let _0x56fc1f=0x0;const _0x32542b=this['_makeTape'](_0x671b00['model'][_0x1b07e9]['deletions']);_0x32542b['forEach'](_0x2a5218=>{_0x2a5218['isRemoved']?_0x2a5218['id']=_0xaa010c++:_0x2a5218['id']=_0x3e01c3[_0x56fc1f++];}),this['_processTape'](_0x32542b),this['_setDistance'](_0x3ccd4b,'isAdded'),this['_setDistance'](_0x32542b,'isRemoved'),_0x671b00==_0x4bc914&&this['_markMarkers'](_0x3ccd4b,_0xf13cda),_0x3ccd4b=this['_joinTapes'](_0x3ccd4b,_0x32542b),this['_refreshStartEndIndex'](_0x3ccd4b),this['_setDistance'](_0x3ccd4b,'isRemoved');}_0x3ccd4b=_0x3ccd4b['filter'](_0x361528=>!(_0x361528['isAdded']&&_0x361528['isRemoved']));const _0x55e7cc=new Map(_0x4e4635['model'][_0x1b07e9]['deletions']['markers']),_0x6e0631=new Set(_0xf13cda['keys']());for(const _0x2aba25 of _0x55e7cc['keys']())_0x6e0631['delete'](_0x2aba25);this['_markSuggestions'](_0x3ccd4b,_0x6e0631),this['_fixObsoleteTags'](_0x3ccd4b),_0x3ccd4b=this['_removeMissingPairs'](_0x3ccd4b),_0x3ccd4b=this['_markMismatchedRemovedTags'](_0x3ccd4b),_0x3ccd4b=this['_removeUnsupportedChanges'](_0x3ccd4b);const {root:_0x4fa05c,changes:_0x4b51a1}=this['_makeModelFromTape'](_0x3ccd4b,_0x2bb8a7,_0x1b07e9);_0x49683c['model'][_0x1b07e9]=_0x4fa05c;const _0x1959f1=_0x3b194f['get'](_0x1b07e9);if(_0x1959f1){const _0x11a662=_0x2bb8a7['get'](_0x1959f1['userId']),_0x2df4f5=new r({'author':_0x11a662,'type':_0x1959f1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1b07e9});_0x4b51a1['unshift'](_0x2df4f5),_0x49683c['attributes'][_0x1b07e9]['revisionHistoryAttachChange']=_0x2df4f5['id'];}_0x49683c['changes']=_0x49683c['changes']['concat'](_0x4b51a1);}return _0x49683c;}['_markMarkers'](_0x25ab9a,_0x310fdc){for(let _0x24cf02=0x0;_0x24cf02<_0x25ab9a['length'];_0x24cf02++)for(const [_0x3457c1,_0x15f305]of _0x310fdc)_0x15f305['start']['isEqual'](_0x25ab9a[_0x24cf02]['previousPosition'])&&_0x25ab9a[_0x24cf02]['markersStart']['push'](_0x3457c1),_0x15f305['end']['isEqual'](_0x25ab9a[_0x24cf02]['nextPosition'])&&_0x25ab9a[_0x24cf02]['markersEnd']['push'](_0x3457c1);}['_joinTapes'](_0x41ccec,_0x986e7e){let _0xd77f7d=[],_0x501a8e=0x0,_0xbf80d9=0x0;for(;_0x501a8e<_0x41ccec['length']||_0xbf80d9<_0x986e7e['length'];){const _0x2ddf9=_0x41ccec[_0x501a8e]||{},_0x5b6c1c=_0x986e7e[_0xbf80d9]||{};if(_0x2ddf9['id']==_0x5b6c1c['id'])_0x501a8e++,_0xbf80d9++,_0xd77f7d['push'](_0x2ddf9);else{if(_0x5b6c1c['isRemoved']&&_0x2ddf9['isAdded']){const {commonTape:_0x21b44e,iEnd:_0x316a5d,jEnd:_0x1cdb03}=this['_threeWayMerge'](_0x41ccec,_0x501a8e,_0x986e7e,_0xbf80d9);_0xd77f7d=_0xd77f7d['concat'](_0x21b44e),_0x501a8e=_0x316a5d,_0xbf80d9=_0x1cdb03;}else _0x5b6c1c['isRemoved']?(_0xbf80d9++,_0xd77f7d['push'](_0x5b6c1c)):(_0x501a8e++,_0xd77f7d['push'](_0x2ddf9));}}return _0xd77f7d;}['_markSuggestions'](_0x514177,_0x4c9fd2){const _0x1428c4=[];for(let _0x210ee2=0x0;_0x210ee2<_0x514177['length'];_0x210ee2++){for(let _0x512c97=0x0;_0x512c97<_0x514177[_0x210ee2]['markersStart']['length'];_0x512c97++){const _0x33a61b=_0x514177[_0x210ee2]['markersStart'][_0x512c97];if(!_0x4c9fd2['has'](_0x33a61b))continue;const {group:_0x44c600,type:_0x4e322f,authorId:_0x134bb2}=_0x297908(_0x33a61b);'revision-suggestion'!=_0x44c600||'insertion'!=_0x4e322f&&'deletion'!=_0x4e322f||(_0x1428c4['unshift']({'type':_0x4e322f,'name':_0x33a61b,'userId':_0x134bb2}),_0x514177[_0x210ee2]['markersStart']['splice'](_0x512c97,0x1),_0x512c97--);}_0x2d3904(_0x514177[_0x210ee2]);for(let _0x35079b=0x0;_0x35079b<_0x514177[_0x210ee2]['markersEnd']['length'];_0x35079b++){const _0x79059b=_0x514177[_0x210ee2]['markersEnd'][_0x35079b];if(!_0x4c9fd2['has'](_0x79059b))continue;const {group:_0xa78232,type:_0x12af76}=_0x297908(_0x79059b);if('revision-suggestion'!=_0xa78232||'insertion'!=_0x12af76&&'deletion'!=_0x12af76)continue;_0x514177[_0x210ee2]['markersEnd']['splice'](_0x35079b,0x1),_0x35079b--;const _0xcd735a=_0x1428c4['findIndex'](_0x4a2510=>_0x4a2510['name']==_0x79059b);_0xcd735a>-0x1&&_0x1428c4['splice'](_0xcd735a,0x1);}}function _0x297908(_0x1d403a){const _0x5c98f1=_0x1d403a['split'](':');return{'group':_0x5c98f1[0x0],'type':_0x5c98f1[0x1],'subType':_0x5c98f1['length']>=0x5?_0x5c98f1[0x2]:null,'id':_0x5c98f1['length']<0x5?_0x5c98f1[0x2]:_0x5c98f1[0x3],'authorId':_0x5c98f1['length']<0x5?_0x5c98f1[0x3]:_0x5c98f1[0x4],'markerCount':0x6==_0x5c98f1['length']?_0x5c98f1[0x5]:null};}function _0x2d3904(_0x3b5899){for(let _0x50944c=0x0;_0x50944c<_0x1428c4['length'];_0x50944c++){if(_0x3b5899['isAdded']&&'insertion'==_0x1428c4[_0x50944c]['type'])return _0x3b5899['isAddSuggestion']=_0x1428c4[_0x50944c],void delete _0x3b5899['isAdded'];if(!_0x3b5899['isAdded']&&!_0x3b5899['isRemoved']&&'deletion'==_0x1428c4[_0x50944c]['type'])return void(_0x3b5899['isRemoveSuggestion']=_0x1428c4[_0x50944c]);}}}['_setDistance'](_0x382a85,_0x4183f5){let _0x3d48fa=0x0,_0x59f807=!0x1;const _0x563631=new Map();for(const _0x4ac7c1 of _0x382a85)_0x4ac7c1[_0x4183f5]?_0x59f807&&(_0x3d48fa++,_0x59f807=!0x1):(_0x3d48fa++,_0x59f807=!0x0),_0x563631['set'](_0x4ac7c1['id'],_0x3d48fa);for(let _0x119ce8=0x0;_0x119ce8<_0x382a85['length'];_0x119ce8++){if('isRemoved'==_0x4183f5&&_0x382a85[_0x119ce8]['isAdded']||'isAdded'==_0x4183f5&&_0x382a85[_0x119ce8]['isRemoved'])continue;if('text'==_0x382a85[_0x119ce8]['type']){_0x382a85[_0x119ce8]['distance']=0x0;continue;}const _0x3c4c82=_0x563631['get'](_0x382a85[_0x119ce8]['pairId']),_0x2ae3de=_0x563631['get'](_0x382a85[_0x119ce8]['id']);_0x382a85[_0x119ce8]['distance']=_0x3c4c82-_0x2ae3de;}}['_getRevisionsRange'](_0x2b3492,_0x469550,_0x141b82=!0x1){const _0x1b10f9=[];let _0x217ff1=this['repository']['getIndex'](_0x2b3492),_0x11cede=this['repository']['getIndex'](_0x469550);for(-0x1==_0x11cede&&(_0x11cede=this['repository']['_revisions']['length'],_0x141b82=!0x1);_0x217ff1<_0x11cede;)_0x1b10f9['push'](this['repository']['getRevision'](_0x217ff1)),_0x217ff1++;return _0x141b82&&_0x1b10f9['push'](this['repository']['getRevision'](_0x217ff1)),_0x1b10f9;}['_threeWayMerge'](_0x2d345a,_0x4dcda7,_0x5034f8,_0x3cccf7){const _0x52c1f9=this['editor']['model']['schema'];let _0x129cf0=_0x4dcda7;for(;_0x2d345a[_0x129cf0]&&_0x2d345a[_0x129cf0]['isAdded'];)_0x129cf0++;let _0xe636bd=_0x3cccf7;for(;_0x5034f8[_0xe636bd]&&_0x5034f8[_0xe636bd]['isRemoved'];)_0xe636bd++;_0x6ada86(_0x2d345a,_0x4dcda7,_0x129cf0),_0x6ada86(_0x5034f8,_0x3cccf7,_0xe636bd);const _0x1d7cf5=_0x5034f8['slice'](_0x3cccf7,_0xe636bd)['concat'](_0x2d345a['slice'](_0x4dcda7,_0x129cf0));return _0x1d7cf5['sort']((_0x315f4b,_0x58012f)=>_0x315f4b['side']!=_0x58012f['side']?_0x315f4b['side']-_0x58012f['side']:_0x315f4b['level']!=_0x58012f['level']?_0x315f4b['level']-_0x58012f['level']:_0x315f4b['distance']!=_0x58012f['distance']?_0x58012f['distance']-_0x315f4b['distance']:!!_0x315f4b['isAdded']!=!!_0x58012f['isAdded']?-0x1==_0x315f4b['side']||0x0==_0x315f4b['side']?_0x315f4b['isAdded']?-0x1:0x1:_0x315f4b['isAdded']?0x1:-0x1:_0x315f4b['index']-_0x58012f['index']),{'commonTape':_0x1d7cf5,'iEnd':_0x129cf0,'jEnd':_0xe636bd};function _0x6ada86(_0x34ef2b,_0x5b6e17,_0x2d642d){let _0x323963=-0x1,_0x19de3d=Number['POSITIVE_INFINITY'],_0x4adcda=!0x0;for(let _0x99dc5a=_0x5b6e17;_0x99dc5a<_0x2d642d;_0x99dc5a++)if(_0x52c1f9['isInline'](_0x34ef2b[_0x99dc5a]['item'])||(_0x4adcda=!0x1),_0x34ef2b[_0x99dc5a]['item']['startIndex']<_0x5b6e17&&(_0x323963=_0x99dc5a),_0x34ef2b[_0x99dc5a]['item']['endIndex']>=_0x2d642d){_0x19de3d=_0x99dc5a;break;}_0x4adcda&&(_0x323963=_0x2d642d-0x1);for(let _0x3aa51e=_0x5b6e17;_0x3aa51e<_0x2d642d;_0x3aa51e++)_0x34ef2b[_0x3aa51e]['side']=_0x3aa51e<=_0x323963?-0x1:_0x3aa51e<_0x19de3d?0x0:0x1,_0x34ef2b[_0x3aa51e]['index']=_0x3aa51e;let _0x4f7d95=0x0;for(let _0x4d75d8=_0x5b6e17;_0x4d75d8<=_0x323963;_0x4d75d8++)0x0==_0x34ef2b[_0x4d75d8]['distance']?_0x34ef2b[_0x4d75d8]['level']=_0x4f7d95:(_0x4f7d95++,_0x34ef2b[_0x4d75d8]['level']=_0x4f7d95,_0x4f7d95++);for(let _0x25164e=_0x5b6e17;_0x25164e<_0x2d642d;_0x25164e++)0x0==_0x34ef2b[_0x25164e]['side']&&(_0x34ef2b[_0x25164e]['level']=_0x4f7d95);_0x4f7d95=0x0;for(let _0x582aa4=_0x2d642d-0x1;_0x582aa4>=_0x19de3d;_0x582aa4--)0x0==_0x34ef2b[_0x582aa4]['distance']?_0x34ef2b[_0x582aa4]['level']=_0x4f7d95:(_0x4f7d95--,_0x34ef2b[_0x582aa4]['level']=_0x4f7d95,_0x4f7d95--);}}['_fixObsoleteTags'](_0x2a9e9e){const _0x4d5217=new Map(),_0x5c4ea9=this['editor']['model']['schema'];for(let _0x2980eb=0x1;_0x2980eb<_0x2a9e9e['length'];_0x2980eb++){let _0x494b95,_0x57192f,_0x35f108;const _0x583363=_0x2a9e9e[_0x2980eb],_0x4a3c32=_0x2a9e9e[_0x2980eb-0x1];if('text'==_0x583363['type'])continue;if(_0x583363['type']!=_0x4a3c32['type'])continue;if(!_0x5c4ea9['isBlock'](_0x4a3c32['item'])||_0x5c4ea9['isLimit'](_0x4a3c32['item']))continue;if(!_0x5c4ea9['isBlock'](_0x583363['item'])||_0x5c4ea9['isLimit'](_0x583363['item']))continue;if((_0x2a9e9e[_0x2980eb]['isAdded']||_0x2a9e9e[_0x2980eb]['isAddSuggestion'])&&_0x2a9e9e[_0x2980eb-0x1]['isRemoved'])_0x494b95=_0x2a9e9e[_0x2980eb],_0x57192f=_0x2a9e9e[_0x2980eb-0x1],_0x35f108=_0x2980eb-0x1;else{if(!_0x2a9e9e[_0x2980eb]['isRemoved']||!_0x2a9e9e[_0x2980eb-0x1]['isAdded']&&!_0x2a9e9e[_0x2980eb-0x1]['isAddSuggestion'])continue;_0x494b95=_0x2a9e9e[_0x2980eb-0x1],_0x57192f=_0x2a9e9e[_0x2980eb],_0x35f108=_0x2980eb;}const _0x1ccc46=_0x494b95['level']==_0x57192f['level'],_0x1320fe=Math['abs'](_0x494b95['level'])<Math['abs'](_0x57192f['level'])&&0x0==_0x57192f['distance'];(_0x1ccc46||_0x1320fe)&&(_0x4d5217['set'](_0x57192f['id'],_0x494b95['id']),_0x2a9e9e['splice'](_0x35f108,0x1),_0x2980eb--,_0x494b95['isAdded']=!0x1);}for(let _0x59fc89=0x0;_0x59fc89<_0x2a9e9e['length'];_0x59fc89++)_0x4d5217['has'](_0x2a9e9e[_0x59fc89]['pairId'])&&(_0x2a9e9e[_0x59fc89]['pairId']=_0x4d5217['get'](_0x2a9e9e[_0x59fc89]['pairId']));}['_removeMissingPairs'](_0x45cbac){const _0x45143d=new Set(_0x45cbac['map'](_0x550c13=>_0x550c13['id']));for(let _0x443305=0x0;_0x443305<_0x45cbac['length'];_0x443305++)_0x45143d['has'](_0x45cbac[_0x443305]['pairId'])||0x0==_0x45cbac[_0x443305]['distance']||(_0x45cbac[_0x443305]['isIncorrect']=!0x0);return _0x45cbac['filter'](_0x263d82=>!_0x263d82['isIncorrect']);}['_markMismatchedRemovedTags'](_0x22a146){const _0xda255a=new Set();for(let _0x7a1625=0x0;_0x7a1625<_0x22a146['length'];_0x7a1625++){if(_0xda255a['has'](_0x22a146[_0x7a1625]['id'])&&_0x22a146[_0x7a1625]['isRemoved']&&(_0x22a146[_0x7a1625]['isIncorrect']=!0x0),_0x22a146[_0x7a1625]['isIncorrect'])continue;if(0x0==_0x22a146[_0x7a1625]['distance'])continue;if('elementStart'!=_0x22a146[_0x7a1625]['type'])continue;if(null==_0x22a146[_0x7a1625]['pairId'])continue;let _0x1d2580=_0x7a1625+0x1,_0x48ace3=0x0;for(;_0x22a146[_0x1d2580]['id']!=_0x22a146[_0x7a1625]['pairId'];)'elementStart'==_0x22a146[_0x1d2580]['type']?_0x48ace3++:'elementEnd'==_0x22a146[_0x1d2580]['type']&&_0x48ace3--,_0x1d2580++;if(0x0!=_0x48ace3){if(_0x22a146[_0x7a1625]['isRemoved'])_0x22a146[_0x7a1625]['isIncorrect']=!0x0;else{for(;_0x1d2580!=_0x7a1625;)_0x22a146[_0x1d2580]['isRemoved']&&0x0!=_0x22a146[_0x1d2580]['distance']&&(_0x22a146[_0x1d2580]['isIncorrect']=!0x0,_0xda255a['add'](_0x22a146[_0x1d2580]['pairId'])),_0x1d2580--;}}}return _0x22a146['filter'](_0x410eba=>!_0x410eba['isIncorrect']);}['_removeUnsupportedChanges'](_0x221566){const _0x38a498=this['editor']['model']['schema'];for(let _0x27d87e=0x0;_0x27d87e<_0x221566['length'];_0x27d87e++){if(!(_0x221566[_0x27d87e]['isAdded']||_0x221566[_0x27d87e]['isAddSuggestion']||_0x221566[_0x27d87e]['isRemoved']||_0x221566[_0x27d87e]['isRemoveSuggestion']))continue;if(0x0==_0x221566[_0x27d87e]['distance'])continue;const _0x32d195=_0x221566[_0x27d87e]['item'];_0x38a498['isBlock'](_0x32d195)||_0x38a498['isLimit'](_0x32d195)||(_0x221566[_0x27d87e]['isAdded']&&delete _0x221566[_0x27d87e]['isAdded'],_0x221566[_0x27d87e]['isAddSuggestion']&&delete _0x221566[_0x27d87e]['isAddSuggestion'],_0x221566[_0x27d87e]['isRemoveSuggestion']&&delete _0x221566[_0x27d87e]['isRemoveSuggestion'],_0x221566[_0x27d87e]['isRemoved']&&(_0x221566[_0x27d87e]['isIncorrect']=!0x0));}return _0x221566['filter'](_0x5695b2=>!_0x5695b2['isIncorrect']);}['_makeModelFromTape'](_0x1fd97f,_0x222eab,_0xdb3e30){const _0xf9e25d=new gt(),_0xd64bc5=[],_0x1bd2d3=new Map(),_0x3f62f2=this['editor']['model'],_0x4ca54e=_0x3f62f2['schema'],_0x43f9cf=[_0xf9e25d],_0xef47fc={},_0x1bfca7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x232781=null;const _0x5cc171=[0x0];for(let _0x162fbf=0x0;_0x162fbf<_0x1fd97f['length'];_0x162fbf++)if('elementStart'===_0x1fd97f[_0x162fbf]['type']){_0x1fd97f[_0x162fbf]['previousPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171);const _0x4aa6f3=new ut(_0x1fd97f[_0x162fbf]['item']['name'],_0x1fd97f[_0x162fbf]['item']['getAttributes']());_0x43f9cf[0x0]['_appendChild'](_0x4aa6f3),_0x5cc171['push'](0x0),_0x43f9cf['unshift'](_0x4aa6f3),_0x1fd97f[_0x162fbf]['nextPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171);}else'elementEnd'===_0x1fd97f[_0x162fbf]['type']?(_0x43f9cf['shift'](),_0x1fd97f[_0x162fbf]['previousPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171),_0x5cc171['pop'](),_0x5cc171[_0x5cc171['length']-0x1]++,_0x1fd97f[_0x162fbf]['nextPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171)):(_0x1fd97f[_0x162fbf]['previousPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171),_0x232781?_0x232781['_data']+=_0x1fd97f[_0x162fbf]['item']['data']:_0x232781=new wt(_0x1fd97f[_0x162fbf]['item']['data'],_0x1fd97f[_0x162fbf]['item']['getAttributes']()),_0x1fd97f[_0x162fbf+0x1]&&'text'===_0x1fd97f[_0x162fbf+0x1]['type']&&_0x42ed2f(_0x232781,_0x1fd97f[_0x162fbf+0x1]['item'])||(_0x43f9cf[0x0]['_appendChild'](_0x232781),_0x232781=null),_0x5cc171[_0x5cc171['length']-0x1]+=_0x1fd97f[_0x162fbf]['item']['offsetSize'],_0x1fd97f[_0x162fbf]['nextPosition']=_0x3f62f2['createPositionFromPath'](_0xf9e25d,_0x5cc171));for(let _0x32507a=0x0;_0x32507a<_0x1fd97f['length'];_0x32507a++){const _0x19c4e1=_0x1fd97f[_0x32507a]['previousPosition'],_0x49f4d9=_0x1fd97f[_0x32507a]['nextPosition'];for(const _0x50b2a9 of _0x1fd97f[_0x32507a]['markersStart'])_0x1bd2d3['set'](_0x50b2a9,{'start':_0x19c4e1,'end':null});_0x368f8f('isRemoveSuggestion',_0x32507a,_0x19c4e1,_0x49f4d9),_0x368f8f('isAddSuggestion',_0x32507a,_0x19c4e1,_0x49f4d9),_0x368f8f('isRemoved',_0x32507a,_0x19c4e1,_0x49f4d9),_0x368f8f('isAdded',_0x32507a,_0x19c4e1,_0x49f4d9);for(const _0x48a756 of _0x1fd97f[_0x32507a]['markersEnd']){_0x1bd2d3['get'](_0x48a756)['end']=_0x49f4d9;}}for(const [_0x2884b5,_0x218a5c]of _0x1bd2d3){const _0x254ef3=this['editor']['model']['createRange'](_0x218a5c['start'],_0x218a5c['end']);_0xf9e25d['markers']['set'](_0x2884b5,_0x254ef3);}return _0xd64bc5['sort']((_0x2c8dbe,_0x2ba4cd)=>{const _0x3e1ca1=_0xf9e25d['markers']['get']('revision:'+_0x2c8dbe['id']),_0x1a5f45=_0xf9e25d['markers']['get']('revision:'+_0x2ba4cd['id']);return _0x3e1ca1['start']['isBefore'](_0x1a5f45['start'])?-0x1:_0x3e1ca1['start']['isAfter'](_0x1a5f45['start'])?0x1:_0x3e1ca1['end']['isBefore'](_0x1a5f45['end'])?-0x1:_0x3e1ca1['end']['isAfter'](_0x1a5f45['end'])?0x1:'add'===_0x2c8dbe['type']?-0x1:0x1;}),{'root':_0xf9e25d,'changes':_0xd64bc5};function _0x368f8f(_0x219a30,_0x3cf583,_0x526303,_0xad154e){const _0x2dbabb=!!_0x1fd97f[_0x3cf583][_0x219a30],_0x365e4d=_0x2dbabb?_0x1fd97f[_0x3cf583][_0x219a30]['userId']:null,_0x1426b3=_0x3cf583===_0x1fd97f['length']-0x1,_0x28daed=_0x1bfca7[_0x219a30][0x0],_0x2896f3=_0x4ca54e['isObject'](_0x1fd97f[_0x3cf583]['item']);!_0xef47fc[_0x219a30]&&_0x2dbabb?_0xef47fc[_0x219a30]={'start':_0x526303,'tapeItem':_0x1fd97f[_0x3cf583],'userId':_0x365e4d,'type':_0x219a30}:_0xef47fc[_0x219a30]&&!_0x2dbabb?(_0xef47fc[_0x219a30]['end']=_0x526303,_0x4bc7f7(_0xef47fc[_0x219a30]),_0xef47fc[_0x219a30]=null):_0xef47fc[_0x219a30]&&_0x2dbabb&&_0xef47fc[_0x219a30]['userId']!==_0x365e4d&&(_0xef47fc[_0x219a30]['end']=_0x526303,_0x28daed&&_0x28daed['userId']===_0xef47fc[_0x219a30]['userId']||_0x4bc7f7(_0xef47fc[_0x219a30]),_0xef47fc[_0x219a30]={'start':_0x526303,'tapeItem':_0x1fd97f[_0x3cf583],'userId':_0x365e4d,'type':_0x219a30}),_0xef47fc[_0x219a30]&&_0x2896f3&&('elementStart'!==_0x1fd97f[_0x3cf583]['type']||_0x28daed&&_0x28daed['userId']===_0x365e4d||_0x1bfca7[_0x219a30]['unshift']({'userId':_0x365e4d,'object':_0x1fd97f[_0x3cf583]['item'],'change':_0xef47fc[_0x219a30]}),'elementEnd'===_0x1fd97f[_0x3cf583]['type']&&_0x28daed&&_0x28daed['object']===_0x1fd97f[_0x3cf583]['item']&&(_0x1bfca7[_0x219a30]['shift'](),_0xef47fc[_0x219a30]=_0x28daed['change'])),_0xef47fc[_0x219a30]&&_0x1426b3&&(_0xef47fc[_0x219a30]['end']=_0xad154e,_0x4bc7f7(_0xef47fc[_0x219a30]),_0xef47fc[_0x219a30]=null);}function _0x4bc7f7({start:_0x4a62c1,end:_0x4e52e4,tapeItem:_0x183631,userId:_0x13a97f,type:_0x56f58f}){const _0x2fb69d=_0x183631['item'],_0x576217=_0x3f62f2['schema']['isBlock'](_0x2fb69d)&&!_0x3f62f2['schema']['isLimit'](_0x2fb69d),_0x4a8868=_0x4a62c1['nodeAfter']==_0x4e52e4['parent']&&_0x4e52e4['isAtStart'];if(_0x576217&&_0x4a8868)return;const _0x224fa5=_0x3f62f2['createRange'](_0x4a62c1,_0x4e52e4),_0xe7e733=_0x222eab['get'](_0x13a97f),_0x5f22c8=new r({'author':_0xe7e733,'type':'isAdded'==_0x56f58f||'isAddSuggestion'==_0x56f58f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x56f58f||'isRemoveSuggestion'==_0x56f58f},'createdAt':new Date(),'rootName':_0xdb3e30});_0xd64bc5['push'](_0x5f22c8),_0xf9e25d['markers']['set']('revision:'+_0x5f22c8['id'],_0x224fa5);}function _0x42ed2f(_0x182a91,_0x4dc89d){const _0x18ffb7=_0x182a91['getAttributes'](),_0x3be431=_0x4dc89d['getAttributes']();for(const _0x435dbb of _0x18ffb7){if(_0x435dbb[0x1]!==_0x4dc89d['getAttribute'](_0x435dbb[0x0]))return!0x1;_0x3be431['next']();}return _0x3be431['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x285e7d=>{const _0xf598ce=_0x285e7d['markerName']['split'](':')[0x1],_0x134cbe=this['_getChangeFromId'](_0xf598ce);if(!_0x134cbe)return null;const _0x2b6e3c='add'==_0x134cbe['type']?'insertion':'deletion',_0x3674e3=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2b6e3c];return _0x134cbe['data']['isSuggestion']&&_0x3674e3['push']('ck-suggestion-marker-'+_0x2b6e3c+'-new'),this['activeChange']==_0x134cbe&&_0x3674e3['push']('ck-suggestion-marker--active'),{'classes':_0x3674e3,'attributes':{'data-change-id':_0xf598ce}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x33c5ad=>{_0x33c5ad['on']('element:pre',(_0x31ea57,_0x54f92e,_0x466c51)=>{const _0x5371f1=_0x54f92e['viewItem']['getChild'](0x0);if(!_0x5371f1||!_0x5371f1['is']('element','code'))return;if(!_0x466c51['consumable']['consume'](_0x5371f1,{'attributes':['vid_start','vid_end']}))return;const _0x2f7ee4=_0x54f92e['modelRange']['start']['nodeAfter'];_0x466c51['writer']['setAttribute']('vid_start',_0x5371f1['getAttribute']('vid_start'),_0x2f7ee4),_0x466c51['writer']['setAttribute']('vid_end',_0x5371f1['getAttribute']('vid_end'),_0x2f7ee4);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x156a26=>{_0x156a26['on']('element',(_0xf1894b,_0x4cd8df,_0x6bfcf0)=>{if(!_0x6bfcf0['consumable']['consume'](_0x4cd8df['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4cd8df['modelRange']['isCollapsed'])return;const _0x180022=_0x4cd8df['modelRange']['start']['nodeAfter'];_0x180022['hasAttribute']('vid_start')||_0x180022['hasAttribute']('vid')||(_0x6bfcf0['writer']['setAttribute']('vid_start',_0x4cd8df['viewItem']['getAttribute']('vid_start'),_0x180022),_0x6bfcf0['writer']['setAttribute']('vid_end',_0x4cd8df['viewItem']['getAttribute']('vid_end'),_0x180022));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3e0cb2=>_0x3e0cb2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x31cc5b,[,_0x465f9c])=>{['vid_start','vid_end','vid']['includes'](_0x465f9c)&&(_0x31cc5b['return']=!0x0,_0x31cc5b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1bfd99=>{_0x1bfd99['on']('attribute:vid',(_0x14ac70,_0x23cf5f,_0x2e5a8f)=>{if('\x20'!=_0x23cf5f['item']['data']||_0x23cf5f['item']['parent']['maxOffset']>0x1)return;if(!_0x2e5a8f['consumable']['consume'](_0x23cf5f['item'],_0x14ac70['name']))return;const _0x218f67=_0x2e5a8f['writer'],_0x459ab6=_0x2e5a8f['mapper']['toViewRange'](_0x23cf5f['range']);_0x218f67['wrap'](_0x459ab6,_0x218f67['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1ca787){const _0x55ef4f=_0x1ca787['plugins']['get']('RevisionViewer');return(_0x26e0f4,_0x3c3221,_0x383124)=>{const _0x436ae1=_0x3c3221['markerName']['split'](':')[0x1],_0xfafd3f=_0x55ef4f['_getChangeFromId'](_0x436ae1);if(!_0xfafd3f)return null;const _0x4aa173='add'==_0xfafd3f['type']?'split':'merge';if(!_0x383124['consumable']['test'](_0x3c3221['markerRange'],_0x26e0f4['name']))return;const _0x2a38bd=_0x3c3221['markerRange']['getWalker'](),_0x52c902=_0x3c3221['markerRange']['start'],_0x486ea5=_0x1ca787['model']['schema'];let _0x4b47d4=null,_0x51f370=null,_0x755fd8=!0x1,_0x442fe=!0x1;for(const _0x349cb6 of _0x2a38bd){const _0x396fa5=_0x349cb6['item'];_0x755fd8=_0x755fd8||_0x486ea5['isContent'](_0x396fa5);const _0x15bb63=_0x383124['mapper']['toViewElement'](_0x396fa5);if(_0x15bb63&&_0x15bb63['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x349cb6['type']&&(_0x486ea5['isBlock'](_0x396fa5)&&!_0x486ea5['isLimit'](_0x396fa5)&&(_0x396fa5['nextSibling']||_0x52c902['isAtEnd']?_0x4b47d4&&_0x4b47d4['parent']==_0x396fa5||(_0x4b47d4=_0x396fa5,_0x5a67f5(_0x349cb6['previousPosition']),_0x442fe=!0x0):_0x51f370=_0x51f370||_0x349cb6['previousPosition']));}function _0x5a67f5(_0x207d1a){const _0xb4b359=_0x383124['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4aa173}),_0x3cca18=_0x383124['mapper']['toViewPosition'](_0x207d1a);_0xfafd3f['data']['isSuggestion']&&_0x383124['writer']['addClass']('ck-suggestion-marker-'+_0x4aa173+'-new',_0xb4b359),_0x55ef4f['activeChange']==_0xfafd3f&&_0x383124['writer']['addClass']('ck-suggestion-marker--active',_0xb4b359),_0x383124['writer']['insert'](_0x3cca18,_0xb4b359),_0x383124['mapper']['bindElementToMarker'](_0xb4b359,_0x3c3221['markerName']);}_0x755fd8||_0x442fe||!_0x51f370||_0x5a67f5(_0x51f370);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x228291,_0x298117,_0x2610dd)=>{const _0x2f7f8d=_0x2610dd['mapper']['markerNameToElements'](_0x298117['markerName']);if(_0x2f7f8d){for(const _0x38a0f3 of _0x2f7f8d)(_0x38a0f3['hasClass']('ck-suggestion-marker-split')||_0x38a0f3['hasClass']('ck-suggestion-marker-merge'))&&(_0x2610dd['mapper']['unbindElementFromMarkerName'](_0x38a0f3,_0x298117['markerName']),_0x2610dd['writer']['remove'](_0x38a0f3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x249c25,_0x490ff3,_0x39bda9)=>{const _0x2962a1=_0x490ff3['markerName']['split'](':')[0x1],_0x59bc33=this['_getChangeFromId'](_0x2962a1);if(!_0x59bc33)return null;const _0x4d706f='add'==_0x59bc33['type']?'split':'merge';if(_0x39bda9['consumable']['test'](_0x490ff3['markerRange'],_0x249c25['name']))for(const _0x24eef3 of _0x490ff3['markerRange']['getItems']()){if(!_0x24eef3['is']('element','softBreak'))continue;const _0x3ed532=_0x39bda9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d706f}),_0x34887a=_0x39bda9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x24eef3));_0x59bc33['data']['isSuggestion']&&_0x39bda9['writer']['addClass']('ck-suggestion-marker-'+_0x4d706f+'-new',_0x3ed532),this['activeChange']==_0x59bc33&&_0x39bda9['writer']['addClass']('ck-suggestion-marker--active',_0x3ed532),_0x39bda9['writer']['insert'](_0x34887a,_0x3ed532),_0x39bda9['mapper']['bindElementToMarker'](_0x3ed532,_0x490ff3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3b9496=>{for(const _0x3c5d3b of this['editor']['model']['document']['getRootNames']()){const _0x3339c8=this['editor']['model']['document']['getRoot'](_0x3c5d3b),_0x4ca778=this['editor']['editing']['view']['document']['getRoot'](_0x3c5d3b);if(_0x4ca778){const _0x5900f6=_0x3339c8['getAttribute']('revisionHistoryAttachChange');if(_0x3b9496['removeAttribute']('data-change-id',_0x4ca778),_0x3b9496['removeClass']('ck-revision-history-root-add',_0x4ca778),_0x3b9496['removeClass']('ck-revision-history-root-remove',_0x4ca778),_0x3b9496['removeClass']('ck-revision-history-root--active',_0x4ca778),_0x5900f6){const _0x1f3832=this['_getChangeFromId'](_0x5900f6);if(!_0x1f3832)return null;_0x3b9496['setAttribute']('data-change-id',_0x5900f6,_0x4ca778),_0x3b9496['addClass']('ck-revision-history-root-'+_0x1f3832['type'],_0x4ca778),this['activeChange']==_0x1f3832&&_0x3b9496['addClass']('ck-revision-history-root--active',_0x4ca778);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2acc47=>'revision-comment:'+_0x2acc47,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x138b15=>'revision-suggestion:'+_0x138b15,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x48dca3=>({'name':'suggestion:'+_0x48dca3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x35f8ef=>{const _0x56d76e=_0x35f8ef['markerName']['split'](':')[0x1];return'insertion'!=_0x56d76e&&'deletion'!=_0x56d76e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x56d76e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x525f58,_0x177d1,_0x23ec0d)=>{const _0x22bd0e=_0x23ec0d['mapper']['markerNameToElements'](_0x177d1['markerName']);if(_0x22bd0e){for(const _0x47619d of _0x22bd0e)_0x47619d['is']('uiElement')&&(_0x23ec0d['mapper']['unbindElementFromMarkerName'](_0x47619d,_0x177d1['markerName']),_0x23ec0d['writer']['remove'](_0x47619d));}},{'priority':'high'});}['_getChangeFromId'](_0x284855){return this['_changeIdToChange']['get'](_0x284855);}['_getViewForChange'](_0x29701b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x29701b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x502461,_0x497438,_0x5aec4a,_0x5d04c7)=>{_0x5d04c7&&this['_balloon']['remove'](_0x5d04c7),_0x5aec4a&&(this['_balloon']['add']({'view':_0x5aec4a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2f1bd5=this['editor']['editing'],_0x38092f=this['_getChangeFromId'](_0x5aec4a['changeId']);let _0x5f30ed;if(_0x38092f['data']['isOnRoot']){const _0x12d5fe=_0x2f1bd5['view']['getDomRoot'](_0x38092f['rootName']);_0x5f30ed=Array['from'](_0x12d5fe['getClientRects']());}else{const _0x54c145=this['editor']['model']['markers']['get']('revision:'+_0x5aec4a['changeId']);_0x5f30ed=Array['from'](_0x2f1bd5['mapper']['markerNameToElements'](_0x54c145['name']))['map'](_0x43ac9f=>_0x2f1bd5['view']['domConverter']['mapViewToDom'](_0x43ac9f))['map'](_0x1850af=>Array['from'](_0x1850af['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5f30ed[0x0];return _0x5f30ed['find'](_0x52af77=>_0x52af77['top']-0x3<=this['_activeViewTarget']['y']&&_0x52af77['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x52af77['left']-0x3<=this['_activeViewTarget']['x']&&_0x52af77['right']+0x3>=this['_activeViewTarget']['x'])||_0x5f30ed[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x25218d,_0x6a823c,_0x2f54c5,_0x18c72e)=>{this['activeView']=_0x2f54c5?this['_getViewForChange'](_0x2f54c5):null,this['editor']['model']['change'](()=>{const _0x18295d=this['editor']['editing'];_0x18c72e&&(_0x18c72e['data']['isOnRoot']?_0x18295d['view']['change'](_0x1ceb2f=>{_0x1ceb2f['removeClass']('ck-revision-history-root--active',_0x18295d['view']['document']['getRoot'](_0x18c72e['rootName']));}):_0x18295d['reconvertMarker']('revision:'+_0x18c72e['id'])),_0x2f54c5&&(_0x2f54c5['data']['isOnRoot']?_0x18295d['view']['change'](_0x317a76=>{_0x317a76['addClass']('ck-revision-history-root--active',_0x18295d['view']['document']['getRoot'](_0x2f54c5['rootName']));}):_0x18295d['reconvertMarker']('revision:'+_0x2f54c5['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2f8ff0,_0x383dcc)=>{if(this['activeChange'])return;const _0x707294=this['_findChangeIdFromDomTarget'](_0x383dcc['target']),_0x1fa118=this['_changeIdToChange']['get'](_0x707294);_0x1fa118?(this['_activeViewTarget']={'x':_0x383dcc['domEvent']['x'],'y':_0x383dcc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1fa118)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x554df8,_0x44518a)=>{const _0x4bd216=this['_findChangeIdFromDomTarget'](_0x44518a['target']),_0x42318b=this['_changeIdToChange']['get'](_0x4bd216);_0x42318b?(this['_activeViewTarget']={'x':_0x44518a['domEvent']['x'],'y':_0x44518a['domEvent']['y']},_0x42318b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x42318b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xe6a1d4){do{const _0x54008c=_0xe6a1d4['getAttribute']('data-change-id');if(_0x54008c)return _0x54008c;_0xe6a1d4=_0xe6a1d4['parent'];}while(_0xe6a1d4);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x270052=>{for(const _0x3e44fa of this['editor']['model']['markers'])_0x270052['removeMarker'](_0x3e44fa);});}}function Z(_0x3067f8,_0x4e9f05){return(_0x189027,_0x2cef39,_0xd68c9d)=>{if(!_0xd68c9d['consumable']['test'](_0x2cef39['markerRange'],_0x189027['name']))return;const _0x27eb4b=_0x2cef39['markerRange']['getWalker'](),_0x4b394e=_0x2cef39['markerRange']['start'],_0x2a4ad8=_0x3067f8['model']['schema'];let _0x4c00b5=null,_0x157455=null,_0x3f0e61=!0x1,_0x15709d=!0x1;for(const _0x40f356 of _0x27eb4b){const _0x1f9e36=_0x40f356['item'];_0x3f0e61=_0x3f0e61||_0x2a4ad8['isContent'](_0x1f9e36);const _0x236a8f=_0xd68c9d['mapper']['toViewElement'](_0x1f9e36);if(_0x236a8f&&_0x236a8f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40f356['type']&&(_0x2a4ad8['isBlock'](_0x1f9e36)&&!_0x2a4ad8['isLimit'](_0x1f9e36)&&(_0x1f9e36['nextSibling']||_0x4b394e['isAtEnd']?_0x4c00b5&&_0x4c00b5['parent']==_0x1f9e36||(_0x4c00b5=_0x1f9e36,_0x3ee60b(_0x40f356['previousPosition']),_0x15709d=!0x0):_0x157455=_0x157455||_0x40f356['previousPosition']));}function _0x3ee60b(_0x39e3ed){const _0x1de803=_0xd68c9d['mapper']['toViewPosition'](_0x39e3ed),_0xe597e1=_0xd68c9d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4e9f05});_0xd68c9d['writer']['insert'](_0x1de803,_0xe597e1),_0xd68c9d['mapper']['bindElementToMarker'](_0xe597e1,_0x2cef39['markerName']);}_0x3f0e61||_0x15709d||!_0x157455||_0x3ee60b(_0x157455);};}class _t extends _0x21058a{constructor(_0x40a1f8){super(_0x40a1f8);const _0x4afb17=_0x40a1f8['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4afb17,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4afb17,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2fcc92=this['editor'],_0x404533=_0x2fcc92['plugins']['get'](d),_0x52938a=_0x404533['isReady']?_0x404533['diff']['newRevisionId']:null;_0x2fcc92['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x52938a);}['refresh'](){const {isReady:_0xaf888e,isEnabled:_0x4cbba8,repository:_0x3425e0,diff:_0x4fae75}=this['editor']['plugins']['get'](d),_0x1e3f45=_0x4fae75&&_0x3425e0['getLaterVisibleRevision'](_0x4fae75['newRevisionId']);this['isEnabled']=_0xaf888e&&_0x4cbba8&&Boolean(_0x1e3f45);}}class yt extends _0x21058a{['_step'];constructor(_0x1adcf1,{direction:_0x1d5efd}){super(_0x1adcf1);const _0x23190e=_0x1adcf1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1d5efd?0x1:-0x1,this['listenTo'](_0x23190e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x23190e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x23190e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2879a9=this['editor'],_0x3cca7d=_0x2879a9['plugins']['get'](d),{isNavigationMode:_0x3a8fde,currentChangeNumber:_0x5d535a}=_0x3cca7d;let _0x420586;if(_0x3cca7d['activeChange']=_0x3a8fde?_0x3cca7d['diff']['changes']['get'](_0x5d535a+this['_step']):_0x3cca7d['diff']['changes']['first'],_0x3cca7d['activeChange']['data']['isOnRoot'])_0x420586=_0x2879a9['editing']['view']['getDomRoot'](_0x3cca7d['activeChange']['rootName']);else{const _0x3cbe9a=_0x2879a9['model']['markers']['get']('revision:'+_0x3cca7d['activeChange']['id']);_0x420586=_0x957fe3(_0x2879a9['editing'],_0x3cbe9a);}_0x1d9212({'target':_0x420586,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3376dd,currentChangeNumber:_0x1f1b90,numberOfChanges:_0x2ee420,isReady:_0x23258d,isEnabled:_0x36e959}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x36e959&&_0x23258d&&_0x2ee420)&&(!_0x3376dd||(0x1===this['_step']?_0x1f1b90<_0x2ee420-0x1:_0x1f1b90>0x0));}}class li extends _0x466f03{constructor(_0x551f2d){super(_0x551f2d);const _0x4e638c=this['bindTemplate'],_0x38f9d2=new _0x491614(_0x551f2d),_0xb6a226=new _0x491614(_0x551f2d);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',(_0x487a91,_0x4a375b)=>_0x487a91&&_0x4a375b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x113c36,_0x7fbfdc,_0x312e11,_0x2c2529)=>{if(!_0x113c36)return m(_0x551f2d,'Loading...');if(!_0x312e11)return m(_0x551f2d,'No\x20changes');const _0x1a1bc9=m(_0x551f2d,'NUMBER_OF_CHANGES',_0x312e11);return _0x2c2529?m(_0x551f2d,'X_OF_Y_CHANGES',[_0x7fbfdc+0x1,_0x312e11]):_0x1a1bc9;}),_0x38f9d2['set']({'label':m(_0x551f2d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x58741e}),_0xb6a226['set']({'label':m(_0x551f2d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5af1f1}),_0x38f9d2['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xb6a226['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x38f9d2['on']('execute',()=>this['fire']('execute','backward')),_0xb6a226['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',_0x4e638c['if']('_isStatusLabelVisible','ck-hidden',_0x34cf3a=>!_0x34cf3a)]},'children':[{'text':_0x4e638c['to']('isNavigationMode',_0x2ebe51=>_0x2ebe51?m(_0x551f2d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x551f2d,'Total')+':\x20')}]},{'text':_0x4e638c['to']('_statusText')}]},new _0x495d60(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x38f9d2,_0xb6a226]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x13fc58{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x44779a=this['editor']['editing']['view'];_0x44779a['change'](_0xf7951d=>{for(const _0x5e6ea1 of _0x44779a['document']['roots'])_0xf7951d['addClass'](ce,_0x5e6ea1);});}['hide'](){const _0x5163da=this['editor']['editing']['view'];_0x5163da['change'](_0x4d9a5d=>{for(const _0x1474e0 of _0x5163da['document']['roots'])_0x4d9a5d['removeClass'](ce,_0x1474e0);});}}class w extends _0x13fc58{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x5cc991=this['editor'],_0x10dfdd=_0x5cc991['plugins']['get'](d),_0x52c096=_0x5cc991['plugins']['get'](le);_0x5cc991['ui']['componentFactory']['add']('exitToEditing',_0x4ca801=>{const _0x2665a1=new _0x491614(_0x4ca801);return _0x2665a1['set']({'label':m(_0x4ca801,'Back\x20to\x20editing'),'icon':_0xb64b68,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2665a1,'execute',()=>{_0x5cc991['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2665a1;}),_0x5cc991['ui']['componentFactory']['add']('restoreRevision',_0xb00730=>{const _0x55125e=new _0x491614(_0xb00730);return _0x55125e['set']({'label':m(_0xb00730,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x55125e['bind']('isEnabled')['to'](_0x5cc991['commands']['get']('restoreRevision')),this['listenTo'](_0x55125e,'execute',()=>_0x5cc991['execute']('restoreRevision')),_0x55125e;}),_0x5cc991['ui']['componentFactory']['add']('changesNavigation',_0x56124c=>{const _0x5de65e=new li(_0x56124c),_0x11f24a=_0x5cc991['commands']['get']('showPreviousChange'),_0x403876=_0x5cc991['commands']['get']('showNextChange');return _0x5de65e['bind']('isBackwardNavigationEnabled')['to'](_0x11f24a,'isEnabled'),_0x5de65e['bind']('isForwardNavigationEnabled')['to'](_0x403876,'isEnabled'),_0x5de65e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x10dfdd),this['listenTo'](_0x5de65e,'execute',(_0x22132c,_0x3af0ab)=>{_0x5cc991['execute']('forward'===_0x3af0ab?'showNextChange':'showPreviousChange');}),_0x5de65e;}),_0x52c096['show'](),_0x10dfdd['on']('change:isReady',(_0xca9ec1,_0x57c8e9,_0x3b2765)=>{_0x3b2765?_0x52c096['hide']():_0x52c096['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x42d388,_0x3f312b){super(_0x42d388,_0x3f312b);const _0x28cd9b=this['bindTemplate'];this['set']({'label':m(_0x42d388,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x42d388,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x28cd9b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x10b70c=this['fieldView']['element'];this['_tooltipString']=_0x10b70c['scrollWidth']>_0x10b70c['clientWidth']&&_0x10b70c['value']||'';}}class oi extends _0x466f03{constructor(_0x1d5cc3,_0x55050c,_0x726db4){super(_0x1d5cc3);const _0x29948c=new _0xf1c75d();_0x29948c['set']({'content':_0x4a3fa1,'viewBox':'0\x200\x2011\x2010'});const _0x3eb001=['ck','ck-revision-history-sidebar__revision-author'];_0x726db4&&_0x3eb001['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1039f4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1d5cc3,_0x726db4?'Revision\x20creator':'Revision\x20author')},'children':[_0x29948c,_0x55050c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3eb001},'children':_0x1039f4});}}function ni(_0x256365,_0x4ed94c){const _0x48065a=_0x256365['bindTemplate'],_0x5319b8=_0x256365['locale'],_0x16f907=_0x1d35f8(_0x5319b8);_0x16f907['panelPosition']='sw';const _0x3801c8=function(_0x2ee2ab,_0x54eb51){const _0x3d2c12=function(_0x4b7053,_0x1af379){const _0x2e439c=_0x4b7053['locale'],_0x4c1941={'Compare\x20against\x20selected':m(_0x2e439c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2e439c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2e439c,'Restore\x20this\x20revision')};return _0x1af379['map'](_0x10faea=>{const _0x4b9c97=_0x4c1941[_0x10faea['name']];return _0x4b9c97&&_0x4b9c97!==_0x10faea['name']&&(_0x10faea['name']=_0x4b9c97),_0x10faea;});}(_0x2ee2ab,_0x54eb51),_0x691894=new _0x45d5c2();for(const _0x440dc5 of _0x3d2c12){const _0x5c3c68={'type':'button','model':new to({'label':_0x440dc5['name'],'class':_0x440dc5['class'],'withText':!0x0,'role':'menuitem','_action':_0x440dc5['action']})};_0x5c3c68['model']['bind']('isEnabled')['to'](_0x2ee2ab,'isActionsDropdownOpen',_0x37b8d2=>'function'!=typeof _0x440dc5['isEnabled']||(!_0x37b8d2||_0x440dc5['isEnabled'](_0x2ee2ab))),_0x691894['add'](_0x5c3c68);}return _0x691894;}(_0x256365,_0x4ed94c);return _0x256365['bind']('isActionsDropdownOpen')['to'](_0x16f907,'isOpen'),_0x16f907['buttonView']['set']({'label':m(_0x5319b8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x19a9ed}),_0x16f907['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x48065a['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x48065a['to'](_0x5a539e=>_0x5a539e['stopPropagation']())}}),_0x16f907['on']('execute',_0xb558fd=>{_0x256365['isReady']&&'function'==typeof _0xb558fd['source']['_action']&&_0xb558fd['source']['_action'](_0x256365);}),_0x15bd0e(_0x16f907,_0x3801c8,{'role':'menu'}),_0x16f907['listenTo'](_0x256365,'change:isActionsDropdownOpen',(_0x110375,_0x3e0577,_0x1d92a9)=>{if(_0x1d92a9)for(const _0x4839cc of _0x16f907['listView']['items']){const _0x179bce=_0x4839cc['children']['first'],_0x4d7b25=_0x4ed94c['find'](_0x31f9a9=>_0x31f9a9['action']===_0x179bce['_action'])['isVisible'];_0x4839cc['isVisible']=void 0x0===_0x4d7b25||_0x4d7b25(_0x256365);}}),_0x16f907;}class ai extends/* #__PURE__ -- @preserve */
26
- _0xf64e34(_0x466f03){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4ace2c,_0x194a4b,_0xf247a3,_0x35e917){super(_0x4ace2c);const _0x4eab49=this['bindTemplate'],_0x157eed=function(_0x9c1073,_0x389f88){const _0x536bd4=Array['from'](_0x389f88['authors'])['filter'](_0x19629b=>_0x19629b!=_0x389f88['creator']);return _0x389f88['creator']&&_0x536bd4['unshift'](_0x389f88['creator']),_0x536bd4['map'](_0x376c8f=>new oi(_0x9c1073,_0x376c8f,_0x376c8f==_0x389f88['creator']));}(_0x4ace2c,_0x194a4b);this['id']=_0x194a4b['id'],this['_revision']=_0x194a4b,this['_requireRevisionName']=_0x35e917,this['bind']('name','createdAt')['to'](_0x194a4b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4309b5=>{return _0x8f72d4=_0x4ace2c['uiLanguage'],(_0x1042e9=_0x4309b5)['toLocaleDateString'](_0x8f72d4,{'month':'long','day':'numeric'})+',\x20'+_0x1042e9['toLocaleTimeString'](_0x8f72d4,{'hour':'numeric','minute':'numeric'});var _0x8f72d4,_0x1042e9;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x4ace2c,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x25a66f=>_0x25a66f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1f7182,_0x1afd75)=>_0x1f7182&&_0x1afd75),this['revisionActionsView']=_0xf247a3&&_0xf247a3['length']?ni(this,_0xf247a3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4eab49['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4eab49['if']('isEnabled','ck-disabled',_0x428ab2=>!_0x428ab2),_0x4eab49['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4eab49['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4eab49['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':_0x4eab49['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':_0x157eed}]},this['revisionActionsView']],'on':{'click':_0x4eab49['to'](_0x5e1c89=>{_0x5e1c89['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xdf4969=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xdf4969,'change',()=>{this['_requireRevisionName']&&!_0xdf4969['value']||this['fire']('setName',{'id':this['id'],'name':_0xdf4969['value']}),_0xdf4969['value']||(_0xdf4969['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x41a3c4,_0x4acb5d){const _0x7b942d=_0x19553e['fromJSDate'](_0x41a3c4)['setLocale'](_0x4acb5d),_0x90d576=_0x19553e['local'](),_0x405c86=_0x90d576['minus']({'days':0x1})['startOf']('day');let _0x11c995,_0x5c8157;return _0x7b942d['hasSame'](_0x90d576,'day')?(_0x11c995=_0x7b942d['startOf']('day')['toJSDate'](),_0x5c8157=_0x7b942d['toRelativeCalendar']()):_0x7b942d['hasSame'](_0x405c86,'day')?(_0x11c995=_0x405c86['toJSDate'](),_0x5c8157=_0x7b942d['toRelativeCalendar']()):_0x7b942d['hasSame'](_0x90d576,'week')?(_0x11c995=_0x7b942d['startOf']('week')['toJSDate'](),_0x5c8157=_0x7b942d['weekdayLong']||''):_0x7b942d['hasSame'](_0x90d576,'year')?(_0x11c995=_0x7b942d['startOf']('month')['toJSDate'](),_0x5c8157=_0x7b942d['monthLong']||''):(_0x11c995=_0x7b942d['startOf']('year')['toJSDate'](),_0x5c8157=String(_0x7b942d['year'])),{'startDate':_0x11c995,'localizedPeriodName':_0x5c8157};}class _i extends _0x466f03{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3c21ad,_0x428573,_0x186d4d,_0xdaf51){super(_0x3c21ad);const _0x3430f8=mi(_0x428573,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x428573,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x186d4d,this['_requireRevisionName']=_0xdaf51,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':_0x3430f8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x142950){const _0x9fbbe4=new ai(this['locale'],_0x142950,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x9fbbe4);}['removeRevision'](_0x37314d){const _0x275cab=this['revisionViews']['find'](_0x3f410c=>_0x3f410c['id']===_0x37314d['id']);this['revisionViews']['remove'](_0x275cab);}}class as extends _0x466f03{constructor(_0x5995bc){super(_0x5995bc);const _0x52862e=new _0xf1c75d();_0x52862e['content']=_0x344f35,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x52862e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5995bc,'Revision\x20history')]}]});}}class vi extends _0x466f03{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5aba83,_0x303051,_0x174ee4,_0x45cbff){super(_0x5aba83);const _0x5aa822=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x303051,this['_revisionActions']=_0x174ee4,this['_requireRevisionName']=_0x45cbff,this['on']('select',(_0x5f4948,_0x39aa3d)=>{this['fire']('revisionSelected',_0x39aa3d);}),this['on']('setName',(_0x5b6d0d,_0x1fba9d)=>{this['fire']('revisionSetName',_0x1fba9d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5aba83),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5aa822['if']('isEnabled','ck-disabled',_0x11e3c0=>!_0x11e3c0)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x16d28d of this['_revisions'])this['_addRevision'](_0x16d28d);this['_revisions']['on']('add',(_0x498c53,_0xbd7718)=>{this['_addRevision'](_0xbd7718);}),this['_revisions']['on']('remove',(_0x437448,_0x54c2ef)=>{this['_removeRevision'](_0x54c2ef);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x42942e=>_0x42942e['revisionViews']['map'](_0x15a965=>_0x15a965))['flat']();}['selectRevision'](_0x149b10){for(const _0x538ca4 of this['revisionViews'])_0x149b10&&_0x149b10['id']===_0x538ca4['id']?_0x538ca4['select']():_0x538ca4['deselect']();}['highlightRevisions'](_0x4c4cda){for(const _0x1b2fae of this['revisionViews'])_0x4c4cda['some'](({id:_0x399a3d})=>_0x399a3d===_0x1b2fae['id'])?_0x1b2fae['highlight']():_0x1b2fae['unhighlight']();}['_addRevision'](_0x28ceae){const _0x4ea9bd=mi(_0x28ceae['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x154fef=this['timePeriodViews']['get'](0x0);_0x154fef&&_0x154fef['startDate']['getTime']()===_0x4ea9bd['getTime']()||(_0x154fef=new _i(this['locale'],_0x4ea9bd,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x154fef)),_0x154fef['addRevision'](_0x28ceae);}['_removeRevision'](_0x3443b2){const _0x38d480=mi(_0x3443b2['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x38d480)['removeRevision'](_0x3443b2);}['_getTimePeriodViewByStartDate'](_0x4f1cdb){return this['timePeriodViews']['find'](_0x5d7498=>_0x5d7498['startDate']['getTime']()===_0x4f1cdb['getTime']());}}class g extends _0x13fc58{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x3fc5f7,uid as _0x5361b9,Collection as _0x40c487,logWarning as _0x2daeb3,FocusTracker as _0x123c18,KeystrokeHandler as _0x581174,scrollViewportToShowTarget as _0x2c4baa,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x35d1bd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1732e6,set as _0x512fd2,unset as _0x5ac697,isEqual as _0x117081}from'es-toolkit/compat';import{Plugin as _0x14ecc6,PendingActions as _0x5399fc,Command as _0x37c248,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x284e29,getMarkerDomElement as _0x2cb365,ConfirmMixin as _0x3db7df,sanitizeEditorConfig as _0x14cad3}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2d59a2,Element as ut,Range as ft,ViewUIElement as _0x2109df,ViewRawElement as _0x5e7aba,ViewEmptyElement as _0x10b4ba,ViewAttributeElement as _0x3c3563,ViewContainerElement as _0xe394ee,Position as vt,ViewText as _0x59d800,ViewElement as _0x1e1e59,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x421696,IconChevronUp as _0x373d05,IconChevronDown as _0x4bc14d,IconUndo as _0x113a8c,IconUser as _0x87f370,IconThreeVerticalDots as _0x223afb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x542a19,injectCssTransitionDisabler as ts,submitHandler as _0x5f2693,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x5c4d53,ListView as _0xfeb93b,ListItemView as _0x113c58,ButtonView as _0x447f48,MenuBarMenuView as _0x1ae48b,MenuBarMenuListView as _0x38fee5,MenuBarMenuListItemView as _0xbd7b4d,MenuBarMenuListItemButtonView as _0x18ac69,ContextualBalloon as _0x325805,ToolbarSeparatorView as _0x381c21,IconView as _0x532fb6,addListToDropdown as _0x3e4a0a,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x136d92}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x3fc5f7(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4c4268){super(),this['id']=_0x4c4268['id']||_0x5361b9(),this['creator']=_0x4c4268['creator']||null,this['authors']=_0x4c4268['authors']||[],this['diffData']=_0x4c4268['diffData']||null,this['toVersion']=_0x4c4268['toVersion']||0x0,this['fromVersion']=_0x4c4268['fromVersion']||0x0,this['set']('name',_0x4c4268['name']||''),this['set']('createdAt',_0x4c4268['createdAt']||new Date()),this['set']('attributes',_0x4c4268['attributes']||{});}['setName'](_0x13f34d){this['_update']({'name':_0x13f34d});}['setAttribute'](_0x59e035,_0x4a4787){const _0x426993=_0x1732e6(this['attributes']);_0x512fd2(_0x426993,_0x59e035,_0x4a4787),this['_update']({'attributes':_0x426993});}['removeAttribute'](_0x1f916d){const _0x47e81f=_0x1732e6(this['attributes']);_0x5ac697(_0x47e81f,_0x1f916d),this['_update']({'attributes':_0x47e81f});}['_update'](_0x334b30,_0x4e23bc=!0x1){let _0x5b9c38=!0x1;const _0x124e4c={'id':this['id']},_0x3a31b9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3281a0 of _0x3a31b9){const _0x5e573c=_0x334b30[_0x3281a0];void 0x0!==_0x5e573c&&_0x5e573c!==this[_0x3281a0]&&(this[_0x3281a0]=_0x5e573c,_0x124e4c[_0x3281a0]=_0x5e573c,_0x5b9c38=!0x0);}_0x5b9c38&&(_0x124e4c['authors']&&(_0x124e4c['authorsIds']=_0x124e4c['authors']['map'](_0x3af4d4=>_0x3af4d4['id']),delete _0x124e4c['authors']),this['fire']('_update',_0x124e4c,_0x4e23bc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4129c3=>_0x4129c3['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x14ecc6{['_revisions'];static get['requires'](){return[_0x284e29];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1cb302){super(_0x1cb302),this['_revisions']=new _0x40c487();}['afterInit'](){!async function(_0x4874c1){const _0x10a861=_0x59bbc4([0x51,0x77,0x5a,0x6c,0x75,0x62,0x74,0x33,0x38,0x56,0x65,0x55,0x4e,0x45,0x79,0x64,0x6a,0x54,0x47,0x59,0x58,0x49,0x44,0x31,0x57,0x63,0x76,0x70,0x53,0x35,0x73,0x36,0x6b,0x4f,0x4d,0x48,0x72,0x7a,0x37,0x71,0x6f,0x4b,0x34,0x46,0x6e,0x66,0x4a,0x32,0x52,0x69,0x61,0x68,0x43,0x41,0x39,0x50,0x78,0x4c,0x30,0x67,0x6d,0x42]),_0x1b853f=0xeb829,_0x458fa7=0x25092522,_0x137043=0x250e47b2^_0x458fa7,_0x566d=window[_0x59bbc4([0x44,0x61,0x74,0x65])][_0x59bbc4([0x6e,0x6f,0x77])](),_0x177df2=_0x4874c1[_0x59bbc4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x485d19=new window[(_0x59bbc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c1b41=>{_0x177df2[_0x59bbc4([0x6f,0x6e,0x63,0x65])](_0x59bbc4([0x72,0x65,0x61,0x64,0x79]),_0x1c1b41);}),_0x316202={[_0x59bbc4([0x6b,0x74,0x79])]:_0x59bbc4([0x45,0x43]),[_0x59bbc4([0x75,0x73,0x65])]:_0x59bbc4([0x73,0x69,0x67]),[_0x59bbc4([0x63,0x72,0x76])]:_0x59bbc4([0x50,0x2d,0x32,0x35,0x36]),[_0x59bbc4([0x78])]:_0x59bbc4([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]),[_0x59bbc4([0x79])]:_0x59bbc4([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]),[_0x59bbc4([0x61,0x6c,0x67])]:_0x59bbc4([0x45,0x53,0x32,0x35,0x36])},_0x56ca9e=_0x177df2[_0x59bbc4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59bbc4([0x67,0x65,0x74])](_0x59bbc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2f1188(){let _0x136d03,_0x4ed501=null,_0x4e8315=null;try{if(_0x56ca9e==_0x59bbc4([0x47,0x50,0x4c]))return _0x59bbc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x136d03=_0x4b4c08(),!_0x136d03)return _0x59bbc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x136d03[_0x59bbc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e8315=_0x1f52e9(_0x136d03[_0x59bbc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x136d03[_0x59bbc4([0x6a,0x74,0x69])])),await _0x314c0b()?_0x4db1c0()?_0x25616a()?_0x59bbc4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x459282()?(_0x136d03[_0x59bbc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59bbc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ed501=_0x611201(_0x59bbc4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x136d03[_0x59bbc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59bbc4([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ed501=_0x611201(_0x59bbc4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x172a8e()):_0x59bbc4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59bbc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59bbc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x53d10c){return _0x59bbc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25616a(){const _0x1826c3=[_0x59bbc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59bbc4([0x74,0x72,0x69,0x61,0x6c])][_0x59bbc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x136d03[_0x59bbc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x566d/0x3e8:0xe10*_0x137043;return _0x136d03[_0x59bbc4([0x65,0x78,0x70])]<_0x1826c3;}function _0x4db1c0(){const _0x4ae41c=_0x136d03[_0x59bbc4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4ae41c)return!0x1;if(_0x4ae41c[_0x59bbc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59bbc4([0x2a])))return!0x0;if(_0x4ae41c[_0x59bbc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59bbc4([0x52,0x48])))return!0x0;if(_0x4ae41c[_0x59bbc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59bbc4([0x52,0x52,0x48]))){if(_0x434058())return!0x0;if(_0x48d814()||_0x4953a5())return!0x0;}return!0x1;}function _0x459282(){const _0x3e81c2=_0x136d03[_0x59bbc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e81c2||0x0==_0x3e81c2[_0x59bbc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43e459}=new URL(window[_0x59bbc4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e81c2[_0x59bbc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43e459))return!0x0;const _0x4ca489=_0x43e459[_0x59bbc4([0x73,0x70,0x6c,0x69,0x74])](_0x59bbc4([0x2e]));return _0x3e81c2[_0x59bbc4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36ca2e=>_0x36ca2e[_0x59bbc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59bbc4([0x2a])))[_0x59bbc4([0x6d,0x61,0x70])](_0x222e86=>_0x222e86[_0x59bbc4([0x73,0x70,0x6c,0x69,0x74])](_0x59bbc4([0x2e])))[_0x59bbc4([0x73,0x6f,0x6d,0x65])](_0x367c16=>_0x4ca489[_0x59bbc4([0x65,0x76,0x65,0x72,0x79])]((_0x1b0444,_0x49112c)=>_0x367c16[_0x49112c]===_0x1b0444||_0x367c16[_0x49112c]===_0x59bbc4([0x2a])));}function _0x172a8e(){return _0x4ed501&&_0x4e8315?new window[(_0x59bbc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x345144,_0x4b3016)=>{_0x4ed501[_0x59bbc4([0x74,0x68,0x65,0x6e])](_0x345144,_0x4b3016),_0x4e8315[_0x59bbc4([0x74,0x68,0x65,0x6e])](_0x3cb05f=>{_0x3cb05f!=_0x59bbc4([0x56,0x61,0x6c,0x69,0x64])&&_0x345144(_0x3cb05f);},_0x4b3016);}):_0x4ed501||_0x4e8315||_0x59bbc4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f52e9(_0x6fcd1e,_0x6aee47){return new window[(_0x59bbc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e1bc7=>{if(_0x421010())return _0x2e1bc7(_0x59bbc4([0x56,0x61,0x6c,0x69,0x64]));_0x22e602(),_0x177df2[_0x59bbc4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59bbc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2859c3=!0x1;const _0x2cdac4=_0x5361b9();function _0x7b4fbb(_0x1dda65){return!!_0x1dda65&&(typeof _0x1dda65===_0x59bbc4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1dda65===_0x59bbc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1dda65[_0x59bbc4([0x74,0x68,0x65,0x6e])]===_0x59bbc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1dda65[_0x59bbc4([0x63,0x61,0x74,0x63,0x68])]===_0x59bbc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xcd4a81(_0x4babc0){_0x56bf48(_0x4babc0)[_0x59bbc4([0x74,0x68,0x65,0x6e])](_0x56b6df=>{if(!_0x56b6df||_0x56b6df[_0x59bbc4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59bbc4([0x6f,0x6b]))return _0x59bbc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a0ea9(_0x25cc58(_0x2cdac4+_0x6aee47))!=_0x56b6df[_0x59bbc4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59bbc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59bbc4([0x56,0x61,0x6c,0x69,0x64]);})[_0x59bbc4([0x74,0x68,0x65,0x6e])](_0x300a5f=>(_0x11aad1(),_0x300a5f),()=>{const _0x5accf0=_0x11f7f1();return null==_0x5accf0?(_0x11aad1(),_0x59bbc4([0x56,0x61,0x6c,0x69,0x64])):_0x59bbc4(_0x566d-_0x5accf0>(0x105a122^_0x458fa7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59bbc4([0x74,0x68,0x65,0x6e])](_0x2e1bc7)[_0x59bbc4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2e1bc7(_0x59bbc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1035a3=0x253fcba2^_0x458fa7;function _0x11aad1(){const _0x10f2a1=_0x59bbc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a0ea9(_0x25cc58(_0x6fcd1e)),_0x50ea7e=_0x404337(_0x5a0ea9(window[_0x59bbc4([0x4d,0x61,0x74,0x68])][_0x59bbc4([0x63,0x65,0x69,0x6c])](_0x566d/_0x1035a3)));window[_0x59bbc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59bbc4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10f2a1,_0x50ea7e);}function _0x11f7f1(){const _0x3835c5=_0x59bbc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a0ea9(_0x25cc58(_0x6fcd1e)),_0x204dcf=window[_0x59bbc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59bbc4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3835c5);return _0x204dcf?window[_0x59bbc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x404337(_0x204dcf),0x10)*_0x1035a3:null;}function _0x56bf48(_0xd20ea0){return new window[(_0x59bbc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f64cc,_0x122410)=>{_0xd20ea0[_0x59bbc4([0x74,0x68,0x65,0x6e])](_0x4f64cc,_0x122410),window[_0x59bbc4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x122410,0x2508f1e2^_0x458fa7);});}}_0x177df2[_0x59bbc4([0x6f,0x6e])](_0x59bbc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57b9bc,_0x25feba)=>{if(_0x25feba[0x0]!=_0x6fcd1e)return _0x2e1bc7(_0x59bbc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x25feba[0x1]={..._0x25feba[0x1],[_0x59bbc4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cdac4};},{[_0x59bbc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59bbc4([0x68,0x69,0x67,0x68])}),_0x177df2[_0x59bbc4([0x6f,0x6e])](_0x59bbc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x410066=>{_0x7b4fbb(_0x410066[_0x59bbc4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2859c3=!0x0,_0xcd4a81(_0x410066[_0x59bbc4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59bbc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59bbc4([0x6c,0x6f,0x77])}),_0x485d19[_0x59bbc4([0x74,0x68,0x65,0x6e])](()=>{_0x2859c3||_0x2e1bc7(_0x59bbc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x421010(){return _0x177df2[_0x59bbc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59bbc4([0x76,0x69,0x65,0x77])][_0x59bbc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59bbc4([0x61,0x75,0x74,0x6f]);}function _0x22e602(){_0x177df2[_0x59bbc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59bbc4([0x76,0x69,0x65,0x77])][_0x59bbc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59bbc4([0x61,0x75,0x74,0x6f]);}}function _0x611201(_0x17adae){const _0x1108d3=[new window[(_0x59bbc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38d95e=>setTimeout(_0x38d95e,0x25001bee^_0x458fa7)),_0x485d19[_0x59bbc4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59bbc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21207d=>{const _0x1e6655=0x25092525^_0x458fa7,_0x47eeac=_0x4874c1[_0x59bbc4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x51f11e(){_0x47eeac[_0x59bbc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1e6655&&_0x21207d();}_0x51f11e(),_0x47eeac[_0x59bbc4([0x6f,0x6e])](_0x59bbc4([0x61,0x64,0x64]),_0x51f11e);})),new window[(_0x59bbc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x115a6d=>{function _0x37b4ed(){for(const _0x4e9b1c in window)if(window[_0x59bbc4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x59bbc4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e9b1c))&&window[_0x4e9b1c]==_0x1b853f)return _0x115a6d();_0x177df2[_0x59bbc4([0x73,0x74,0x61,0x74,0x65])]!=_0x59bbc4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x59bbc4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37b4ed,0x250936aa^_0x458fa7);}_0x40a9a8(_0x59bbc4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x37b4ed();})];return window[_0x59bbc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59bbc4([0x72,0x61,0x63,0x65])](_0x1108d3)[_0x59bbc4([0x74,0x68,0x65,0x6e])](()=>_0x17adae);}async function _0x2f67cd(){if(await _0x485d19,_0x40a9a8(_0x59bbc4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5b1cb4=_0x4874c1[_0x59bbc4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x6bbaad=_0x4874c1[_0x59bbc4([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])](_0x5b1cb4[_0x59bbc4([0x69,0x64])]),_0x3336ea=_0x57190f(_0x59bbc4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3336ea[_0x59bbc4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5b1cb4['id'],_0x6bbaad?_0x6bbaad['id']:null,!0x0),_0x3336ea[_0x59bbc4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x59bbc4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3336ea[_0x59bbc4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3336ea[_0x59bbc4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x45f856,void(_0x3336ea[_0x59bbc4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x45f856);}if(_0x40a9a8(_0x59bbc4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x30444e=_0x57190f(_0x59bbc4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x30444e[_0x59bbc4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x59bbc4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x30444e[_0x59bbc4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x30444e[_0x59bbc4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x45f856,_0x30444e[_0x59bbc4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x45f856;}_0x177df2[_0x59bbc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x59bbc4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45f856,_0x177df2[_0x59bbc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x59bbc4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45f856,_0x177df2[_0x59bbc4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59bbc4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x434058(){return _0x40a9a8(_0x59bbc4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x57190f(_0x59bbc4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59bbc4([0x73,0x74,0x61,0x74,0x65])]==_0x59bbc4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x48d814(){return _0x40a9a8(_0x59bbc4([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 _0x4953a5(){return _0x40a9a8(_0x59bbc4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x19f869(_0x483e6f){const _0x3d2205=_0x4179b3();_0x177df2[_0x3d2205]=_0x59bbc4([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])+_0x483e6f,_0x483e6f[_0x59bbc4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x59bbc4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4179b3()]=_0x1b853f),_0x483e6f!=_0x59bbc4([0x56,0x61,0x6c,0x69,0x64])&&_0x2f67cd();}function _0x4179b3(){const _0x522f2a=window[_0x59bbc4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59bbc4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59bbc4([0x6e,0x6f,0x77])]())[_0x59bbc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59bbc4([0x2e]),'');let _0x32060c=_0x59bbc4([0x51]);for(let _0x10ea6f=0x0;_0x10ea6f<_0x522f2a[_0x59bbc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10ea6f+=0x2){let _0x4a5d7e=window[_0x59bbc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x522f2a[_0x59bbc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10ea6f,_0x10ea6f+0x2));_0x4a5d7e>=_0x10a861[_0x59bbc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a5d7e-=_0x10a861[_0x59bbc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32060c+=_0x10a861[_0x4a5d7e];}return _0x32060c;}function _0x4b4c08(){const _0x1cb9f9=_0x56ca9e[_0x59bbc4([0x73,0x70,0x6c,0x69,0x74])](_0x59bbc4([0x2e]));if(0x3!=_0x1cb9f9[_0x59bbc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39708c(_0x1cb9f9[0x1]);function _0x39708c(_0x4d9950){const _0x48615e=_0xa72152(_0x4d9950);return _0x48615e&&_0x4eb2e9()?_0x48615e:null;function _0x4eb2e9(){const _0x37387f=_0x48615e[_0x59bbc4([0x6a,0x74,0x69])],_0x21fc40=window[_0x59bbc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37387f[_0x59bbc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37387f[_0x59bbc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x292c35={..._0x48615e,[_0x59bbc4([0x6a,0x74,0x69])]:_0x37387f[_0x59bbc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37387f[_0x59bbc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x292c35[_0x59bbc4([0x76,0x63])],_0x25cc58(_0x292c35)==_0x21fc40;}}}async function _0x314c0b(){let _0x2165b1=!0x0;try{const _0x4c44d7=_0x56ca9e[_0x59bbc4([0x73,0x70,0x6c,0x69,0x74])](_0x59bbc4([0x2e])),[_0x329ba2,_0x16e90a,_0x124c02]=_0x4c44d7;return _0x3be3b1(_0x329ba2),await _0x7562ad(_0x329ba2,_0x16e90a,_0x124c02),_0x2165b1;}catch(_0x17eaea){return!0x1;}function _0x3be3b1(_0x129815){const _0x500644=_0xa72152(_0x129815);_0x500644&&_0x500644[_0x59bbc4([0x61,0x6c,0x67])]==_0x59bbc4([0x45,0x53,0x32,0x35,0x36])||(_0x2165b1=!0x1);}async function _0x7562ad(_0x2868f5,_0x23c21d,_0x3019e8){const _0x28bf3d=window[_0x59bbc4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59bbc4([0x66,0x72,0x6f,0x6d])](_0x44058f(_0x3019e8),_0xab3ccf=>_0xab3ccf[_0x59bbc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d8569=new window[(_0x59bbc4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59bbc4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2868f5+_0x59bbc4([0x2e])+_0x23c21d),_0x3f155d=window[_0x59bbc4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59bbc4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f155d)return;const _0xa23196=await _0x3f155d[_0x59bbc4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59bbc4([0x6a,0x77,0x6b]),_0x316202,{[_0x59bbc4([0x6e,0x61,0x6d,0x65])]:_0x59bbc4([0x45,0x43,0x44,0x53,0x41]),[_0x59bbc4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59bbc4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59bbc4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f155d[_0x59bbc4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59bbc4([0x6e,0x61,0x6d,0x65])]:_0x59bbc4([0x45,0x43,0x44,0x53,0x41]),[_0x59bbc4([0x68,0x61,0x73,0x68])]:{[_0x59bbc4([0x6e,0x61,0x6d,0x65])]:_0x59bbc4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa23196,_0x28bf3d,_0x5d8569)||(_0x2165b1=!0x1);}}function _0xa72152(_0xa3e1f6){return _0xa3e1f6[_0x59bbc4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59bbc4([0x65,0x79]))?JSON[_0x59bbc4([0x70,0x61,0x72,0x73,0x65])](_0x44058f(_0xa3e1f6)):null;}function _0x44058f(_0x2e4125){return window[_0x59bbc4([0x61,0x74,0x6f,0x62])](_0x2e4125[_0x59bbc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59bbc4([0x2b]))[_0x59bbc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59bbc4([0x2f])));}function _0x25cc58(_0x5e3b41){let _0x159fd8=0x1505;function _0x2369f1(_0x26b27e){for(let _0x2f54f4=0x0;_0x2f54f4<_0x26b27e[_0x59bbc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f54f4++){const _0x54ed0c=_0x26b27e[_0x59bbc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f54f4);_0x159fd8=(_0x159fd8<<0x5)+_0x159fd8+_0x54ed0c,_0x159fd8&=_0x159fd8;}}function _0xa2396d(_0x1c4509){Array[_0x59bbc4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c4509)?_0x1c4509[_0x59bbc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa2396d):_0x1c4509&&typeof _0x1c4509==_0x59bbc4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59bbc4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c4509)[_0x59bbc4([0x73,0x6f,0x72,0x74])]()[_0x59bbc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b133b,_0x1b5914])=>{_0x2369f1(_0x3b133b),_0xa2396d(_0x1b5914);}):_0x2369f1(window[_0x59bbc4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c4509));}return _0xa2396d(_0x5e3b41),_0x159fd8>>>0x0;}function _0x5a0ea9(_0x22571f){return _0x22571f[_0x59bbc4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59bbc4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59bbc4([0x30]));}function _0x404337(_0x412861){return _0x412861[_0x59bbc4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59bbc4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59bbc4([0x6a,0x6f,0x69,0x6e])]('');}function _0x40a9a8(_0x51dbad){return _0x177df2[_0x59bbc4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59bbc4([0x68,0x61,0x73])](_0x51dbad);}function _0x57190f(_0x4fbb01){return _0x177df2[_0x59bbc4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59bbc4([0x67,0x65,0x74])](_0x4fbb01);}function _0x45f856(){}function _0x59bbc4(_0x28c4af){return _0x28c4af['map'](_0x221022=>String['fromCharCode'](_0x221022))['join']('');}_0x19f869(await _0x2f1188());}(this);}['createRevision'](_0xb57d8f){const _0x5a4f86=this['editor']['plugins']['get']('Users');return new h({'id':_0xb57d8f['id'],'name':_0xb57d8f['name'],'creator':_0xb57d8f['creatorId']?_0x5a4f86['getUser'](_0xb57d8f['creatorId']):null,'diffData':_0xb57d8f['diffData']||_0xb57d8f['data'],'authors':_0xb57d8f['authorsIds']['map'](_0x5e3057=>_0x5a4f86['getUser'](_0x5e3057)),'createdAt':new Date(_0xb57d8f['createdAt']),'attributes':_0xb57d8f['attributes'],'fromVersion':_0xb57d8f['fromVersion'],'toVersion':_0xb57d8f['toVersion']});}['addRevision'](_0x5f20bc,_0x4f1e65=0x0){this['_revisions']['add'](_0x5f20bc,_0x4f1e65);}['getRevision'](_0x4c0935){return this['_revisions']['get'](_0x4c0935);}['getRevisions'](_0x1fe2fa={'toJSON':!0x1}){const _0x1e951a=Array['from'](this['_revisions']);return _0x1e951a['reverse'](),_0x1fe2fa['toJSON']?_0x1e951a['map'](_0x3ac687=>_0x3ac687['toJSON']()):_0x1e951a;}['getIndex'](_0x52663b){return this['_revisions']['getIndex'](_0x52663b);}['getEarlierVisibleRevision'](_0x448949){const [,_0x4c06bc]=this['getRevisionsIterator'](_0x448949,{'direction':'earlier'});return _0x4c06bc;}['getLaterVisibleRevision'](_0x1400f9){const [,_0x4f4791]=this['getRevisionsIterator'](_0x1400f9,{'direction':'later'});return _0x4f4791;}['getRevisionsInDiff'](_0x1289cb){const _0xf56833=[];for(const _0x2ac010 of this['getRevisionsIterator'](_0x1289cb['newRevisionId']))if(_0xf56833['push'](_0x2ac010),_0x2ac010['id']===_0x1289cb['oldRevisionId'])break;return _0xf56833;}*['getRevisionsIterator'](_0x19e6de,{direction:_0x493188='earlier',filter:_0x4930aa=()=>!0x0}={}){const _0x54344c='earlier'===_0x493188?0x1:-0x1;let _0x2c2c0d=this['_revisions']['get'](_0x19e6de),_0xc8f2f9=this['getIndex'](_0x2c2c0d);for(yield _0x2c2c0d;_0x2c2c0d;){if(_0xc8f2f9+=_0x54344c,_0x2c2c0d=this['getRevision'](_0xc8f2f9),!_0x2c2c0d)return;_0x4930aa(_0x2c2c0d)&&(yield _0x2c2c0d);}}}function m(_0x1dc77e,_0x17b11f,_0x15fa3b){const t=_0x1dc77e['t'];switch(_0x17b11f){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'},_0x15fa3b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x15fa3b);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0xe394ee,'a':_0x3c3563,'e':_0x10b4ba,'r':_0x5e7aba,'u':_0x2109df};class u extends _0x14ecc6{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x284e29,j,_0x5399fc];}constructor(_0x4b5e91){super(_0x4b5e91),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1f3724=_0x5361b9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1f3724},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x54226f=this['repository']['getRevision'](0x0),_0x17e301=_0x54226f&&null===_0x54226f['creator']?_0x54226f:null;if(this['_continueCurrentRevision']=!!_0x17e301&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x39cd5b=this['_source']['getCurrentRevisionId'](),_0x208956=this['repository']['getRevision'](_0x39cd5b);if(_0x208956)this['_startingVersion']=_0x208956['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5807b8=this['_source']['history']['_operations']['find'](_0x59ad7e=>!_0x59ad7e['_isInit']),_0xeb2916=_0x5807b8?_0x5807b8['baseVersion']:this['_source']['history']['version'];_0x54226f?(_0x54226f['toVersion']<_0xeb2916&&_0x54226f['_update']({'toVersion':_0xeb2916}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x17e301['id'],this['_startingVersion']=_0x17e301['fromVersion']):(this['_startingVersion']=_0x54226f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xeb2916,this['_continueCurrentRevision']=!0x1);}}else _0x17e301&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x17e301['toVersion'],this['editor']['model']['document']['history']['version']),_0x17e301['fromVersion']===_0x17e301['toVersion']?(0x0!==_0x17e301['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x17e301['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x17e301['id'],this['_startingVersion']=_0x17e301['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',_0x2e4d04=>!_0x2e4d04),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e91be=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a67bd;for(const _0x1d49d0 in _0x5e91be){const _0x42ff16=_0x1d49d0,_0x88f336=_0x5e91be[_0x42ff16];if('revisionHistoryLicenseKeyValid'==_0x88f336||'revisionHistoryLicenseKeyInvalid'==_0x88f336||'revisionHistoryLicenseKeyExpired'==_0x88f336||'revisionHistoryLicenseKeyDomainLimit'==_0x88f336||'revisionHistoryLicenseKeyNotAllowed'==_0x88f336||'revisionHistoryLicenseKeyEvaluationLimit'==_0x88f336||'revisionHistoryLicenseKeyTrialLimit'==_0x88f336||'revisionHistoryLicenseKeyUsageLimit'==_0x88f336){delete _0x5e91be[_0x42ff16],_0x5a67bd=_0x88f336,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5a67bd&&_0x5e91be['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5a67bd&&_0x5e91be['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5a67bd&&_0x5e91be['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5a67bd&&_0x5e91be['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5a67bd&&_0x5e91be['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5a67bd&&_0x5e91be['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5a67bd&&_0x5e91be['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5231c7=this['repository']['getRevision'](0x0),_0x5e9fce=await this['getRevisionDocumentData'](_0x5231c7),_0x4881e3=await this['getRevisionRootsAttributes'](_0x5231c7);this['_replaceEditorDataWithRevisionData'](_0x5e9fce,_0x4881e3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x37a845){this['_source']=_0x37a845;}async['update'](){const _0x4ae9ec=await this['_source']['getLatestVersion']();if(_0x4ae9ec>this['currentRevision']['toVersion']){await this['_loadState']();const _0x15928f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4ae9ec});_0x15928f['authors']=_0x15928f['authorsIds']['map'](_0x39a5c4=>this['editor']['plugins']['get']('Users')['getUser'](_0x39a5c4)),this['currentRevision']['_update'](_0x15928f);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x3423f0={},_0x5a4f13=null){const _0x124aa3=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5a4f13>this['currentRevision']['toVersion']&&(_0x5a4f13=null),null===_0x5a4f13&&(_0x5a4f13=await this['_source']['getLatestVersion']());const _0x1d8027=this['_getFromVersion'](_0x5a4f13),_0x3cd392=this['buildRevisionData']({'from':_0x1d8027,'to':_0x5a4f13});if(this['currentRevision']['toVersion']<_0x5a4f13){const _0x14c235=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5a4f13,'to':_0x5a4f13});_0x14c235['authors']=[],_0x14c235['authorsIds']=[],_0x14c235['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x14c235,!0x0),delete _0x14c235['authors'],_0x124aa3['push'](_0x14c235);}_0x3423f0['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3423f0['name']=_0x3423f0['name']||null,_0x3423f0['id']=_0x3423f0['id']||_0x5361b9(),_0x3423f0={..._0x3423f0,..._0x3cd392};const _0x33648a=this['addRevisionData'](_0x3423f0);_0x124aa3['push'](_0x3423f0);const _0x593f95=this['repository']['getIndex'](_0x33648a);if(0x0!==_0x593f95){const _0x177bf0=this['repository']['getRevision'](_0x593f95-0x1);if(_0x177bf0['fromVersion']!==_0x5a4f13){const _0x208916=this['_revisionDataBuilder']['getData'](_0x5a4f13,_0x177bf0['toVersion']),_0x4b86c1={'id':_0x177bf0['id'],'diffData':_0x208916['diffData'],'authorsIds':_0x208916['authorsIds'],'authors':_0x208916['authorsIds']['map'](_0x3bf275=>this['editor']['plugins']['get']('Users')['getUser'](_0x3bf275)),'fromVersion':_0x5a4f13};_0x177bf0===this['currentRevision']&&(_0x4b86c1['createdAt']=new Date(_0x3423f0['createdAt']['getTime']()+0xa)),_0x177bf0['_update'](_0x4b86c1,!0x0),delete _0x4b86c1['authors'],_0x124aa3['push'](_0x4b86c1);}}if(this['adapter']){for(const _0x2693bb of _0x124aa3)this['_bufferUpdate'](_0x2693bb['id'],_0x2693bb,!0x0);this['sendBufferedUpdates']();}return _0x33648a;}['addRevisionData'](_0x2b784c){const _0x22be1a=this['repository']['createRevision'](_0x2b784c);return this['adapter']&&_0x22be1a['on']('_update',(_0xce5312,_0x48bd69,_0x38409d)=>{_0x38409d||(this['_bufferUpdate'](_0x48bd69['id'],_0x48bd69,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x22be1a,this['_findInsertionIndex'](_0x22be1a)),_0x22be1a;}async['getRevisionDocumentData'](_0x3d09c7){await this['_loadRevisionData'](_0x3d09c7);const _0x14ebda={};for(const _0x519f18 in _0x3d09c7['diffData']){if(_0x3d09c7['diffData'][_0x519f18]['attachChange']&&!_0x3d09c7['diffData'][_0x519f18]['attachChange']['isAttached'])continue;const _0x26349c=this['_removeRevisionMarkers'](JSON['parse'](_0x3d09c7['diffData'][_0x519f18]['insertions'])),_0x474d41=this['editor']['editing']['view']['document'],_0x32ca19=new _0x2d59a2(_0x474d41,_0x26349c['map'](_0xdbdf5f=>P(_0xdbdf5f,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x14ebda[_0x519f18]=this['editor']['data']['processor']['toData'](_0x32ca19),this['editor']['data']['processor']['useFillerType']('default');}return _0x14ebda;}async['getRevisionRootsAttributes'](_0x5a1a3b){await this['_loadRevisionData'](_0x5a1a3b);const _0x81ccad={};for(const _0x8baa71 in _0x5a1a3b['diffData'])_0x5a1a3b['diffData'][_0x8baa71]['attachChange']&&!_0x5a1a3b['diffData'][_0x8baa71]['attachChange']['isAttached']||(_0x81ccad[_0x8baa71]=_0x5a1a3b['diffData'][_0x8baa71]['attributesAfter']||{});return _0x81ccad;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1dfef5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4d34fd=0x0;_0x4d34fd<_0x1dfef5['length'];_0x4d34fd++){const _0x519004=_0x1dfef5[_0x4d34fd];let _0x5d2ddb=!0x1;for(const _0x5da2be of Object['keys'](_0x519004))void 0x0===_0x519004[_0x5da2be]?delete _0x519004[_0x5da2be]:'id'!==_0x5da2be&&(_0x5d2ddb=!0x0);_0x5d2ddb||(_0x1dfef5[_0x4d34fd]=null);}if(_0x1dfef5=_0x1dfef5['filter'](_0x2aa48a=>null!==_0x2aa48a),!_0x1dfef5['length'])return;for(let _0x4333e5=0x0;_0x4333e5<_0x1dfef5['length'];_0x4333e5++){const _0x3ca061=_0x1dfef5[_0x4333e5];void 0x0!==_0x3ca061['fromVersion']&&void 0x0===_0x3ca061['toVersion']&&(_0x3ca061['toVersion']=this['repository']['getRevision'](_0x3ca061['id'])['toVersion']),void 0x0!==_0x3ca061['toVersion']&&void 0x0===_0x3ca061['fromVersion']&&(_0x3ca061['fromVersion']=this['repository']['getRevision'](_0x3ca061['id'])['fromVersion']);}const _0x5b2724=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1dfef5,_0x5b2724)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4c319f=>{if(_0x4c319f){for(const _0x243058 of _0x4c319f)this['setRevisionData']({'id':_0x243058['id'],'createdAt':_0x243058['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x501362,_0x5a78ac){let _0x4d3fea=this['editor']['config']['get']('initialData'),_0x317290=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4d3fea){_0x4d3fea={};for(const _0x215fd1 of this['editor']['model']['document']['getRootNames']())_0x4d3fea[_0x215fd1]='';}if('string'==typeof _0x4d3fea&&(_0x4d3fea={'main':_0x4d3fea}),void 0x0===_0x317290){_0x317290={};for(const _0x14f75a of this['editor']['model']['document']['getRootNames']())_0x317290[_0x14f75a]={};}let _0x225e4c=!0x1;const _0x56391a=Object['keys'](_0x4d3fea),_0x5bb740=Object['keys'](_0x501362);for(const _0x1c6f16 of _0x56391a){if(_0x4d3fea[_0x1c6f16]!==_0x501362[_0x1c6f16]&&''!==_0x4d3fea[_0x1c6f16]['trim']()){_0x225e4c=!0x0;break;}if(!_0x117081(_0x317290[_0x1c6f16],_0x5a78ac[_0x1c6f16])&&Object['keys'](_0x317290[_0x1c6f16])['length']>0x0){_0x225e4c=!0x0;break;}}_0x225e4c||(_0x225e4c=_0x5bb740['some'](_0x4ac9e8=>!this['editor']['model']['document']['getRoot'](_0x4ac9e8))),_0x225e4c&&_0x2daeb3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4d3fea,'editorRootsAttributes':_0x317290,'revisionData':_0x501362,'revisionRootsAttributes':_0x5a78ac}),this['editor']['config']['set']('initialData',_0x501362),this['editor']['config']['set']('rootsAttributes',_0x5a78ac);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x322c48=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x322c48['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2264c0){const _0x38fb3f=this['repository']['getRevisions']();_0x38fb3f['reverse']();let _0x28347d=0x0;for(;_0x28347d<_0x38fb3f['length'];){const _0x2fc231=_0x38fb3f[_0x28347d];if(_0x2fc231===this['currentRevision']){_0x28347d++;continue;}if(_0x2fc231['id']===this['_initialRevisionId'])break;const _0x1a79bc=_0x2264c0['toVersion']-_0x2fc231['toVersion']||_0x2264c0['fromVersion']-_0x2fc231['fromVersion'];if(_0x1a79bc>0x0)break;if(_0x1a79bc<0x0)_0x28347d++;else{if(!_0x2264c0['creator']&&_0x2fc231['creator'])break;if(_0x2fc231['creator']||!_0x2264c0['creator']){if(_0x2264c0['createdAt']>_0x2fc231['createdAt'])break;_0x28347d++;}else _0x28347d++;}}return _0x28347d;}['setRevisionData'](_0x492a7a){const _0x33f6a4=this['repository']['getRevision'](_0x492a7a['id']);if(_0x492a7a['createdAt']&&(_0x492a7a['createdAt']=new Date(_0x492a7a['createdAt'])),_0x492a7a['authorsIds']){const _0x368b79=this['editor']['plugins']['get']('Users');_0x492a7a['authors']=_0x492a7a['authorsIds']['map'](_0x53ce05=>_0x368b79['getUser'](_0x53ce05));}_0x33f6a4['_update'](_0x492a7a,!0x0);}['buildRevisionData']({revision:_0x13a469=null,from:_0x5882c8=null,to:_0x224c62=null}){_0x5882c8=null!==_0x5882c8?_0x5882c8:_0x13a469['fromVersion'],_0x224c62=null!==_0x224c62?_0x224c62:_0x13a469['toVersion'];const _0x96d87e=this['_revisionDataBuilder']['getData'](_0x5882c8,_0x224c62),_0x3a663a={'diffData':_0x96d87e['diffData'],'authorsIds':_0x96d87e['authorsIds'],'fromVersion':_0x5882c8,'toVersion':_0x224c62};if(!_0x13a469||_0x224c62!==_0x13a469['toVersion']){const _0x28819f=_0x224c62-0x1,_0x95faa3=this['_source']['history']['getOperation'](_0x28819f);_0x3a663a['createdAt']=_0x95faa3&&_0x95faa3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5882c8===this['_loadedStateData']['fromVersion']){for(const _0x20313d of this['_loadedStateData']['authors'])_0x3a663a['authorsIds']['includes'](_0x20313d['id'])||_0x3a663a['authorsIds']['push'](_0x20313d['id']);}return _0x3a663a;}['_loadRevisionData'](_0x1d791d){if(!_0x1d791d||_0x1d791d['diffData'])return Promise['resolve']();{const _0x6c3596=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x6c3596,'revisionId':_0x1d791d['id']})['then'](_0x134f8b=>{_0x1d791d['diffData']=_0x134f8b['diffData'];});}}['_bufferUpdate'](_0x22dd0a,_0x15e735,_0x1adf18){if(this['_bufferedUpdates']['has'](_0x22dd0a)){const _0x3e2dd2=this['_bufferedUpdates']['get'](_0x22dd0a);_0x15e735=_0x1adf18?{..._0x3e2dd2,..._0x15e735}:{..._0x15e735,..._0x3e2dd2};}this['_bufferedUpdates']['set'](_0x22dd0a,_0x15e735);}['_getFromVersion'](_0x502f56){const _0xf47459=this['repository']['getRevisions']();_0xf47459['reverse'](),_0xf47459['shift']();const _0x40612f=_0xf47459['find'](_0x4e3fd5=>_0x4e3fd5['toVersion']<=_0x502f56)['toVersion'];return _0x40612f<this['_startingVersion']?this['_startingVersion']:_0x40612f;}['_createInitialRevision'](_0xa216f7){const _0x118094=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x118094)this['_initialRevisionId']=_0x118094['id'];else{const _0x5af2bd=!this['editor']['model']['document']['roots']['find'](_0x376217=>this['editor']['model']['hasContent'](_0x376217)),_0x37690a=this['editor']['plugins']['get']('Users')['me']['id'],_0x1a28e0=m(this['editor']['locale'],_0x5af2bd?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xa216f7,'to':_0xa216f7,'id':this['_initialRevisionId'],'name':_0x1a28e0,'creatorId':_0x37690a});}}['_createCurrentRevision'](_0x43277f){const _0x5a6278=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5a6278),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x43277f,'to':_0x43277f,'id':_0x5a6278,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5ad909,from:_0x5aee81,to:_0x5d8e11,creatorId:_0x474f7f,id:_0x3ca492}){const _0x314a22=this['buildRevisionData']({'from':_0x5aee81,'to':_0x5d8e11});_0x314a22['name']=_0x5ad909,_0x314a22['creatorId']=_0x474f7f,_0x314a22['id']=_0x3ca492;const _0x33339b=this['addRevisionData'](_0x314a22);return this['adapter']&&this['_bufferUpdate'](_0x314a22['id'],_0x314a22,!0x0),_0x33339b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1f4951){return(_0x1f4951=_0x1f4951['filter'](_0x206540=>!_0x206540['name']||'revision-start'!==_0x206540['name']&&'revision-end'!==_0x206540['name']))['forEach'](_0x48616a=>{'string'!=typeof _0x48616a&&(_0x48616a['children']=this['_removeRevisionMarkers'](_0x48616a['children']),_0x48616a['attributes']=_0x48616a['attributes']['filter'](_0x578c6f=>!_0x578c6f[0x0]['startsWith']('data-revision-')));}),_0x1f4951;}}function P(_0x366fea,_0x26b5af){const _0x162bd6=_0x26b5af['editing']['view']['document'];if('string'==typeof _0x366fea)return new _0x59d800(_0x162bd6,_0x366fea);{const _0x4a26d2=_0x366fea['children']['map'](_0xdc342f=>P(_0xdc342f,_0x26b5af));return new(E[_0x366fea['type']]||_0x1e1e59)(_0x162bd6,_0x366fea['name'],_0x366fea['attributes'],_0x4a26d2);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1ecfaf){this['editor']=_0x1ecfaf,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'](_0xdb15d3){this['source']=_0xdb15d3;const _0x3ad25f=new Map(),_0x85b678=new Map(),_0x322303=this['editor']['model']['document']['roots']['map'](_0x12380b=>_0x12380b['rootName']);for(const _0x4dbf56 of _0x322303){const _0x5a22ba=this['editor']['model']['document']['getRoot'](_0x4dbf56),_0x5a9703=T(_0x5a22ba);_0x3ad25f['set'](_0x4dbf56,_0x5a9703),_0x85b678['set'](_0x4dbf56,Object['fromEntries'](_0x5a22ba['getAttributes']()));}const _0x2db1c5=Array['from'](this['editor']['model']['markers'])['map'](_0x261bee=>[_0x261bee['name'],_0x261bee['getRange']()]),_0x4f0427=this['source']['version'];this['_saveMetaData'](_0x4f0427,_0x3ad25f,_0x2db1c5,_0x85b678),this['_startingRevisionId']=this['_revisionId'];const _0x54e7b3=new Map(),_0x2032bb=new Map();for(const _0x59da60 of _0x322303){const _0x371426=F(_0x59da60);_0x54e7b3['set'](_0x59da60,_0x371426),_0x2032bb['set'](_0x59da60,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x54e7b3,[],_0x2032bb);}['getData'](_0xe17e8e,_0x3cf0fa){if(this['_lastFrom']===_0xe17e8e&&this['_lastTo']<=_0x3cf0fa)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3cf0fa,!0x0);else{if(!this['_savedMetaData']['has'](_0xe17e8e)){const _0x21654f=this['_getPreviousFrom'](_0xe17e8e);this['_calculateMetaData'](_0x21654f,_0xe17e8e,!0x1);}this['_calculateMetaData'](_0xe17e8e,_0x3cf0fa,!0x0);}return this['_lastFrom']=_0xe17e8e,this['_lastTo']=_0x3cf0fa,this['_getState']();}['loadState'](_0x3ab558){this['_reset'](),this['_lastFrom']=_0x3ab558['fromVersion'],this['_lastTo']=_0x3ab558['toVersion'];for(const _0xec59ad in _0x3ab558['diffData']){const _0x8aacfd=_0x3ab558['diffData'][_0xec59ad]['attachChange'],_0x44100f=_0x1732e6(_0x3ab558['diffData'][_0xec59ad]['attributesBefore'])||{},_0x5aa21b=this['_makeModelFromViewString'](_0x3ab558['diffData'][_0xec59ad]['deletions']);_0x5aa21b['rootName']=_0xec59ad,_0x5aa21b['_isAttached']=!_0x8aacfd||!_0x8aacfd['isAttached'],_0x5aa21b['isAttached']=()=>_0x5aa21b['_isAttached'],this['_baseRoots']['set'](_0xec59ad,_0x5aa21b),this['_baseRootsAttributes']['set'](_0xec59ad,_0x44100f),_0x8aacfd&&this['_touchedRoots']['set'](_0xec59ad,_0x8aacfd);const _0x425d58=this['_makeIdsRoot'](_0x5aa21b);this['_baseIdsRoots']['set'](_0xec59ad,_0x425d58);for(const [_0x40e447,_0xaf63f3]of _0x5aa21b['markers']){if(!_0x40e447['startsWith']('revision:'))continue;const _0x2c0e0a=_0x40e447['split'](':')[0x2];for(const _0x15759b of _0xaf63f3['getWalker']({'singleCharacters':!0x0})){const _0x5945db=this['_getVidAttributeName'](_0x15759b),_0x5c248d='elementEnd'==_0x15759b['type']?_0x15759b['previousPosition']['path']['slice'](0x0,-0x1):_0x15759b['previousPosition']['path'],_0x1378de=_0x425d58['getNodeByPath'](_0x5c248d)['getAttribute'](_0x5945db);this['_touched']['set'](_0x1378de,{'userId':_0x2c0e0a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x11a545=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5266ec=>!this['_touched']['has'](_0x5266ec));let _0xca3003=0x0;const _0x337678=new Map();for(const _0x531f38 in _0x3ab558['diffData']){const _0x5c6c11=_0x3ab558['diffData'][_0x531f38]['attachChange'],_0x226448=_0x1732e6(_0x3ab558['diffData'][_0x531f38]['attributesAfter'])||{},_0x1c4902=this['_makeModelFromViewString'](_0x3ab558['diffData'][_0x531f38]['insertions']);_0x1c4902['rootName']=_0x531f38,_0x1c4902['_isAttached']=!_0x5c6c11||_0x5c6c11['isAttached'],_0x1c4902['isAttached']=()=>_0x1c4902['_isAttached'],this['_diffRoots']['set'](_0x531f38,_0x1c4902),this['_diffRootsAttributes']['set'](_0x531f38,_0x226448);const _0x1e7478=this['_makeIdsRoot'](_0x1c4902,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x531f38,_0x1e7478),_0x337678['set'](_0x531f38,_0x1c4902['isAttached']()?_0x226448:{});for(const [_0x2960a9,_0x55c9c5]of _0x1c4902['markers']){if(!_0x2960a9['startsWith']('revision:'))continue;const _0x265baa=_0x2960a9['split'](':')[0x2];for(const _0x1d505c of _0x55c9c5['getWalker']({'singleCharacters':!0x0})){const _0x417368=this['_getVidAttributeName'](_0x1d505c),_0x43b607=this['_revisionId']++,_0x1ca616='elementEnd'==_0x1d505c['type']?_0x1d505c['previousPosition']['path']['slice'](0x0,-0x1):_0x1d505c['previousPosition']['path'];_0x1e7478['getNodeByPath'](_0x1ca616)['_setAttribute'](_0x417368,_0x43b607),this['_touched']['set'](_0x43b607,{'userId':_0x265baa});}}for(const _0x49612e of this['editor']['model']['createRangeIn'](_0x1c4902)['getWalker']({'singleCharacters':!0x0})){const _0x30d76f=this['_getVidAttributeName'](_0x49612e),_0x4fbee0='elementEnd'==_0x49612e['type']?_0x49612e['previousPosition']['path']['slice'](0x0,-0x1):_0x49612e['previousPosition']['path'],_0x25488b=_0x1e7478['getNodeByPath'](_0x4fbee0);_0x25488b['getAttribute'](_0x30d76f)>0x0||_0x25488b['_setAttribute'](_0x30d76f,_0x11a545[_0xca3003++]);}for(const [_0x2b5b89,_0x4c9eec]of _0x1c4902['markers'])_0x2b5b89['startsWith']('revision:')||this['_markers']['set'](_0x2b5b89,_0x4c9eec);}const _0x4ee2e1=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4ee2e1),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4ee2e1,0x1));const _0x4b1fbd=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4b1fbd),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4b1fbd,0x1));const _0x4d1426=Array['from'](this['_diffRoots'])['map'](([_0x5c189e,_0x5ae9cc])=>[_0x5c189e,T(_0x5ae9cc)]);this['_saveMetaData'](this['_lastTo'],_0x4d1426,this['_markers'],_0x337678);}['_makeModelFromViewString'](_0x2db3ca){const _0x402849=JSON['parse'](_0x2db3ca),_0x383b53=this['editor']['editing']['view']['document'],_0x52f725=new _0x2d59a2(_0x383b53,_0x402849['map'](_0x10c4c5=>P(_0x10c4c5,this['editor'])));return this['editor']['data']['toModel'](_0x52f725);}['_saveMetaData'](_0x26f5da,_0x31520e,_0x4c62c8,_0x43be07){const _0xe8b08a=new Map(_0x31520e),_0x56bfe7=new Map(_0x1732e6(_0x43be07)),_0xd21357=new Map();for(const [_0xd47008,_0x18034e]of _0x4c62c8)_0xd21357['set'](_0xd47008,{'start':_0x18034e['start']['clone'](),'end':_0x18034e['end']['clone'](),'rootName':_0x18034e['root']['rootName']});this['_savedMetaData']['set'](_0x26f5da,{'roots':_0xe8b08a,'markers':_0xd21357,'rootsAttributes':_0x56bfe7});}['_removeMetaData'](_0x5581cf){this['_savedMetaData']['delete'](_0x5581cf);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x500a14,_0x36b5fe=null){let _0xa1abab=null;_0x500a14['is']('documentFragment')||(_0xa1abab=new ut(_0x500a14['name'],{'vid_start':null===_0x36b5fe?this['_revisionId']++:_0x36b5fe++}));const _0x326437=[];for(const _0x5f1fb9 of _0x500a14['getChildren']())if(_0x5f1fb9['is']('element')){_0x326437['push'](this['_makeIdsRoot'](_0x5f1fb9,_0x36b5fe));const _0x2afdd9=_0x326437[_0x326437['length']-0x1];null!==_0x36b5fe&&(_0x36b5fe=_0x2afdd9['is']('element','$text')?_0x2afdd9['getAttribute']('vid')+0x1:_0x2afdd9['getAttribute']('vid_end')+0x1);}else{for(let _0x31002e=0x0;_0x31002e<_0x5f1fb9['offsetSize'];_0x31002e++)_0x326437['push'](new ut('$text',{'vid':null===_0x36b5fe?this['_revisionId']++:_0x36b5fe++}));}if(_0x500a14['is']('documentFragment')){const _0x213f5d=F(_0x500a14['rootName']);return _0x213f5d['_insertChild'](0x0,_0x326437),_0x213f5d;}return _0xa1abab['_setAttribute']('vid_end',null===_0x36b5fe?this['_revisionId']++:_0x36b5fe++),_0xa1abab['_insertChild'](0x0,_0x326437),_0xa1abab;}['_calculateMetaData'](_0x56cfa9,_0x193b30,_0x29d0bc){this['_reset']();const {roots:_0xe00ed7,markers:_0x4a1086,rootsAttributes:_0x592770}=this['_savedMetaData']['get'](_0x56cfa9);this['_baseRoots']=new Map(_0xe00ed7),this['_baseRootsAttributes']=new Map(_0x1732e6(_0x592770));for(const [_0x4bca23,_0x2d7258]of this['_baseRoots'])if('$graveyard'!==_0x4bca23&&(this['_diffRoots']['set'](_0x4bca23,T(_0x2d7258)),this['_diffRootsAttributes']=new Map(_0x1732e6(_0x592770)),_0x29d0bc)){const _0x7dcb9e=this['_revisionId'];this['_idsRoots']['set'](_0x4bca23,this['_makeIdsRoot'](_0x2d7258)),this['_baseIdsRoots']['set'](_0x4bca23,this['_makeIdsRoot'](_0x2d7258,_0x7dcb9e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x29d0bc&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xbb3b85,_0x4d2b02]of _0x4a1086){const _0x3743af=this['_baseRoots']['get'](_0x4d2b02['rootName']),_0x4f17bb=this['_diffRoots']['get'](_0x4d2b02['rootName']),_0x4f639d=new ft(this['_fixPosition'](_0x4d2b02['start'],_0x3743af),this['_fixPosition'](_0x4d2b02['end'],_0x3743af)),_0x18489f=this['_fixRange'](_0x4f639d,_0x4f17bb);_0x3743af['markers']['set'](_0xbb3b85,_0x4f639d),this['_markers']['set'](_0xbb3b85,_0x18489f);}this['_applyOperations'](_0x56cfa9,_0x193b30,_0x29d0bc);}['_applyOperations'](_0x2c1a53,_0x4a60ec,_0x52a1aa){for(const _0x8e5403 of this['source']['getOperations'](_0x2c1a53,_0x4a60ec))this['_handleOperation'](_0x8e5403,_0x52a1aa);for(const _0x5c96d2 of this['_diffRoots']['values']())_0x5c96d2['markers']['clear']();for(const [_0x5ddd7c,_0x13376]of this['_markers']){this['_diffRoots']['get'](_0x13376['root']['rootName'])['markers']['set'](_0x5ddd7c,_0x13376['clone']());}const _0x2f45c3=new Map(),_0x1024b3=new Map();for(const [_0x431376,_0x5a2402]of this['_diffRoots'])_0x2f45c3['set'](_0x431376,T(_0x5a2402)),_0x1024b3['set'](_0x431376,this['_diffRootsAttributes']['get'](_0x431376));this['_saveMetaData'](_0x4a60ec,_0x2f45c3,this['_markers'],_0x1024b3);}['_getPreviousFrom'](_0x3c1e7d){const _0x5547b1=Array['from'](this['_savedMetaData']['keys']());_0x5547b1['sort']((_0x3181eb,_0x39bd94)=>_0x3181eb-_0x39bd94),_0x5547b1['reverse']();for(const _0x1e19e7 of _0x5547b1)if(_0x1e19e7<_0x3c1e7d)return _0x1e19e7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x15268a,_0x35772b){const _0x2afff8=Array['from'](_0x35772b['markers'])['map'](([_0x1d742d,_0x63cc22])=>[_0x1d742d,this['_fixRange'](_0x63cc22,_0x15268a)]);_0x15268a['markers']=new Map(_0x2afff8);}['_transformMarkers'](_0x494a6e){for(const _0x233ab0 of this['_markers']['values']()){const _0xa7c5bb=_0x233ab0['getTransformedByOperation'](_0x494a6e),_0x1f98f0=ft['_createFromRanges'](_0xa7c5bb);_0x233ab0['start']=_0x1f98f0['start'],_0x233ab0['end']=_0x1f98f0['end'];}}['_handleOperation'](_0x233c04,_0x4c839c){if('addRoot'!=_0x233c04['type']&&'detachRoot'!=_0x233c04['type']){if('insert'==_0x233c04['type']){const _0x368362=_0x233c04['position']['root']['rootName'];this['_diffRoots']['has'](_0x368362)||(this['_diffRoots']['set'](_0x368362,F(_0x368362,!0x0)),this['_diffRootsAttributes']['set'](_0x368362,{}),_0x4c839c&&this['_idsRoots']['set'](_0x368362,F(_0x368362,!0x0)));}else{if('addRootAttribute'==_0x233c04['type']||'removeRootAttribute'==_0x233c04['type']||'changeRootAttribute'==_0x233c04['type'])return void this['_handleRootAttributeOperation'](_0x233c04);'marker'==_0x233c04['type']&&this['_handleMarkerOperation'](_0x233c04);}if('marker'!==_0x233c04['type']){const _0x381f28=this['_cloneOperation'](_0x233c04,this['_diffRoots']);_0x381f28['_execute'](),this['_transformMarkers'](_0x381f28);}if(_0x4c839c)switch(_0x233c04['type']){case'insert':this['_handleInsertOperation'](_0x233c04);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x233c04);break;case'merge':this['_handleMergeOperation'](_0x233c04);break;case'split':this['_handleSplitOperation'](_0x233c04);}}else this['_handleRootOperation'](_0x233c04,_0x4c839c);}['_cloneOperation'](_0x80d129,_0x5243e3){const _0x5ed6c3=_0x80d129['clone']();return _0x5ed6c3['_authorId']=_0x80d129['_authorId'],this['_fixOperation'](_0x5ed6c3,_0x5243e3),_0x5ed6c3;}['_getBaseVids'](_0x4d972d){return _0x4d972d['map'](_0x1ea44b=>{const _0x5377cc=this['_getVidAttributeName'](_0x1ea44b);return Number(_0x1ea44b['item']['getAttribute'](_0x5377cc));});}['_generateTape'](_0x25e6ec,_0x585d6d){if(_0x25e6ec['is']('element','$text'))_0x585d6d['push']({'item':_0x25e6ec,'type':'text'});else{_0x25e6ec['is']('element')&&_0x585d6d['push']({'item':_0x25e6ec,'type':'elementStart'});for(const _0x5589bc of _0x25e6ec['getChildren']())this['_generateTape'](_0x5589bc,_0x585d6d);_0x25e6ec['is']('element')&&_0x585d6d['push']({'item':_0x25e6ec,'type':'elementEnd'});}return _0x585d6d;}['_getState'](){const _0xaee2a=new Map(this['_touched']),_0x3ba0c2=new Map(_0xaee2a),_0x3997ef=new Map(),_0x2b5edd={'insertions':{},'deletions':{}},_0x36262d={'insertions':{},'deletions':{}},_0x5ec5c4=new Map(),_0x1f6202=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1f6202['delete']('$graveyard');for(const _0x32d92d of _0x1f6202){const _0x402733=this['_diffRoots']['get'](_0x32d92d)||F(_0x32d92d,!0x1),_0x3fd873=this['_baseRoots']['get'](_0x32d92d)||F(_0x32d92d,!0x1);_0x402733['isAttached']()||_0x3fd873['isAttached']()?(_0x2b5edd['insertions'][_0x32d92d]=T(_0x402733),_0x2b5edd['deletions'][_0x32d92d]=T(_0x3fd873),this['_copyMarkers'](_0x2b5edd['deletions'][_0x32d92d],_0x3fd873),this['_copyMarkers'](_0x2b5edd['insertions'][_0x32d92d],_0x402733),_0x36262d['insertions'][_0x32d92d]=this['_generateTape'](this['_idsRoots']['get'](_0x32d92d),[]),_0x36262d['deletions'][_0x32d92d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x32d92d)||F(_0x32d92d,!0x1),[])):_0x1f6202['delete'](_0x32d92d);}for(const _0x373bcf of _0x1f6202){const _0x1d59b2=_0x36262d['insertions'][_0x373bcf];for(const _0x1e8023 of _0x1d59b2){const _0x31e3e1=this['_getVidAttributeName'](_0x1e8023),_0x4cfc7d=_0x1e8023['item']['getAttribute'](_0x31e3e1);_0x3ba0c2['delete'](_0x4cfc7d),_0x4cfc7d>=this['_startingRevisionId']&&_0x3997ef['set'](_0x4cfc7d,_0xaee2a['get'](_0x4cfc7d));}}for(const _0x1699d1 of _0x1f6202){const _0x2b8047=_0x36262d['insertions'][_0x1699d1],_0x530af7=this['_getBaseVids'](_0x36262d['deletions'][_0x1699d1]);let _0x5b42e8=0x0;for(const _0x5ea8f2 of _0x2b8047){const _0x1c7e39=this['_getVidAttributeName'](_0x5ea8f2),_0x3cc723=_0x5ea8f2['item']['getAttribute'](_0x1c7e39);if(!_0x3997ef['has'](_0x3cc723)&&!_0x5ec5c4['has'](_0x3cc723)){if(_0x3ba0c2['has'](_0x3cc723))_0x5b42e8++;else{if(_0x3cc723!=_0x530af7[_0x5b42e8]){const _0x4e4f73=_0xaee2a['get'](_0x3cc723)||_0xaee2a['get'](_0x530af7[_0x5b42e8]);for(;_0x3cc723!=_0x530af7[_0x5b42e8];)_0x3ba0c2['has'](_0x530af7[_0x5b42e8])||(_0x5ec5c4['set'](_0x530af7[_0x5b42e8],_0x4e4f73),_0xaee2a['set'](_0x530af7[_0x5b42e8],_0x4e4f73)),_0x5b42e8++;}_0x5b42e8++;}}}}for(const _0x18f917 of _0x1f6202){const _0x274e90=_0x36262d['insertions'][_0x18f917];for(const _0x4c6e95 of _0x274e90){const _0x10c7be=this['_getVidAttributeName'](_0x4c6e95),_0x348c7e=_0x4c6e95['item']['getAttribute'](_0x10c7be);if(_0x5ec5c4['has'](_0x348c7e)){const _0x4e5402=_0x5ec5c4['get'](_0x348c7e);_0x3ba0c2['has'](_0x348c7e)||_0x3ba0c2['set'](_0x348c7e,{..._0x4e5402}),_0x3997ef['set'](_0x348c7e,{..._0x4e5402});}}}for(const _0x162235 of _0x3ba0c2['keys']())_0x162235>=this['_startingRevisionId']&&_0x3ba0c2['delete'](_0x162235);const _0x57036a=new Map();for(const _0x32be9c of _0x1f6202){let _0x572142=_0x36262d['insertions'][_0x32be9c];for(const _0x3c7e7f of _0x572142)if(_0x3c7e7f['item']['is']('element','tableCell')){const _0x25cb01=this['_getVidAttributeName'](_0x3c7e7f),_0x63b0f6=_0x3c7e7f['item']['getAttribute'](_0x25cb01);if(_0x3997ef['has'](_0x63b0f6)){const _0x5ce631=_0x3c7e7f['item']['parent']['parent']['getAttribute']('vid_start'),_0x46cea4=_0x57036a['get'](_0x5ce631)||new Set();_0x46cea4['add'](_0x3997ef['get'](_0x63b0f6)['userId']),_0x57036a['set'](_0x5ce631,_0x46cea4);}}_0x572142=_0x36262d['deletions'][_0x32be9c];for(const _0x3c807d of _0x572142)if(_0x3c807d['item']['is']('element','tableCell')){const _0x75f739=this['_getVidAttributeName'](_0x3c807d),_0x4e9e7d=_0x3c807d['item']['getAttribute'](_0x75f739);if(_0x3ba0c2['has'](_0x4e9e7d)){const _0x43201e=_0x3c807d['item']['parent']['parent']['getAttribute']('vid_start'),_0x363de8=_0x57036a['get'](_0x43201e)||new Set();_0x363de8['add'](_0x3ba0c2['get'](_0x4e9e7d)['userId']),_0x57036a['set'](_0x43201e,_0x363de8);}}for(const _0x3c5c6e of _0x57036a['keys']())(_0x3997ef['has'](_0x3c5c6e)||_0x3ba0c2['has'](_0x3c5c6e))&&_0x57036a['delete'](_0x3c5c6e);}for(const _0x2a7c0b of _0x1f6202){const _0x425bf7=_0x36262d['insertions'][_0x2a7c0b];let _0x260a65=null,_0x21ac81=null;for(const _0x7f0a30 of _0x425bf7){const _0x308b01=this['_getVidAttributeName'](_0x7f0a30),_0x20a828=_0x7f0a30['item']['getAttribute'](_0x308b01),_0x39b894=_0x57036a['get'](_0x20a828);_0x39b894&&'elementStart'==_0x7f0a30['type']&&(_0x260a65=Array['from'](_0x39b894)[0x0],_0x21ac81=_0x7f0a30['item']['getAttribute']('vid_end')),_0x260a65&&(_0x3ba0c2['set'](_0x20a828,{'userId':_0x260a65}),_0x3997ef['set'](_0x20a828,{'userId':_0x260a65})),_0x20a828==_0x21ac81&&(_0x260a65=null,_0x21ac81=null);}}const _0x386ab5={},_0x3cd1c3=new Set();for(const _0x5d0c35 of _0x1f6202){const _0x18d797=_0x2b5edd['deletions'][_0x5d0c35],_0x23547e=_0x2b5edd['insertions'][_0x5d0c35];for(const {userId:_0x2de450}of this['_touchedMarkers']['values']())null!==_0x2de450&&_0x3cd1c3['add'](_0x2de450);for(const {userId:_0x459535}of this['_touchedRoots']['values']())null!==_0x459535&&_0x3cd1c3['add'](_0x459535);this['_markChanges'](_0x23547e,_0x36262d['insertions'][_0x5d0c35],_0x3997ef,'insertion',_0x3cd1c3),this['_markChanges'](_0x18d797,_0x36262d['deletions'][_0x5d0c35],_0x3ba0c2,'deletion',_0x3cd1c3),_0x386ab5[_0x5d0c35]={'insertions':this['_prepareViewToSave'](_0x23547e),'deletions':this['_prepareViewToSave'](_0x18d797),'attachChange':this['_touchedRoots']['get'](_0x5d0c35)||null,'attributesBefore':_0x1732e6(this['_baseRootsAttributes']['get'](_0x5d0c35))||{},'attributesAfter':_0x1732e6(this['_diffRootsAttributes']['get'](_0x5d0c35))};}return{'diffData':_0x386ab5,'authorsIds':Array['from'](_0x3cd1c3)};}['_processRootBeforeSave'](_0x5ecffb){for(const [,_0x44fa95]of _0x5ecffb['markers']){const _0x336c09=_0x44fa95['start']['getAncestors']()['filter'](_0x61d478=>'tableCell'==_0x61d478['name']);for(const _0x4cb35e of _0x336c09)0x1==_0x4cb35e['childCount']&&_0x4cb35e['getChild'](0x0)['is']('element','paragraph')&&_0x4cb35e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4bb18f){this['_processRootBeforeSave'](_0x4bb18f);const _0x19dfc7=this['editor']['data']['toView'](_0x4bb18f,{}),_0x28f6ec=Array['from'](_0x19dfc7['getChildren']())['map'](_0x582799=>this['_getViewJson'](_0x582799));return JSON['stringify'](_0x28f6ec);}['_getViewJson'](_0x59e590){if(_0x59e590['is']('$text'))return _0x59e590['data'];{const _0x4d6ea7=_0x59e590;return{'type':Object['keys'](E)['find'](_0x19de99=>_0x59e590 instanceof E[_0x19de99]),'name':_0x4d6ea7['name'],'attributes':Array['from'](_0x4d6ea7['getAttributes']()),'children':Array['from'](_0x4d6ea7['getChildren']())['map'](_0x4ef27d=>this['_getViewJson'](_0x4ef27d))};}}['_markChanges'](_0xfe8316,_0x16e40e,_0x3bc8bb,_0x94794,_0x4d728b){let _0x345060=null,_0x4f88f8=null,_0x4cc7e5=0x0;const _0x480041=this['editor']['model'];for(let _0x465fe5=0x0;_0x465fe5<_0x16e40e['length'];_0x465fe5++){const _0x36689=this['_getVidAttributeName'](_0x16e40e[_0x465fe5]),_0x2b82a4=_0x16e40e[_0x465fe5]['item']['getAttribute'](_0x36689),_0x2e58af=_0x3bc8bb['get'](_0x2b82a4),_0x549f52=_0x465fe5==_0x16e40e['length']-0x1;(!_0x345060&&_0x2e58af&&(_0x345060=_0x2e58af,_0x4f88f8=_0x16e40e[_0x465fe5]),_0x345060&&(!_0x2e58af||_0x2e58af['userId']!=_0x345060['userId']))&&(_0x117a37(_0x2e58af,B(_0x4f88f8,_0xfe8316,_0x480041),B(_0x16e40e[_0x465fe5],_0xfe8316,_0x480041)),_0x345060=_0x2e58af||null,_0x4f88f8=_0x2e58af?_0x16e40e[_0x465fe5]:null),_0x345060&&_0x549f52&&_0x117a37(_0x2e58af,B(_0x4f88f8,_0xfe8316,_0x480041),J(_0x16e40e[_0x465fe5],_0xfe8316,_0x480041));}function _0x117a37(_0x561cf5,_0x3b9bfe,_0x52230e){const _0x555078=_0x345060['userId'],_0x574981='revision:'+_0x94794+':'+_0x555078+':'+_0x4cc7e5++,_0x9e0c3c=_0x480041['createRange'](_0x3b9bfe,_0x52230e);_0xfe8316['markers']['set'](_0x574981,_0x9e0c3c),null!==_0x555078&&_0x4d728b['add'](_0x555078);}}['_getVidAttributeName'](_0x210417){switch(_0x210417['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x997a6a,_0x19039e){_0x997a6a['baseVersion']=null;for(const _0x9c3481 in _0x997a6a){const _0x571927=_0x997a6a[_0x9c3481];if(_0x571927 instanceof vt){const _0x5b757d=_0x19039e['get'](_0x571927['root']['rootName']);_0x997a6a[_0x9c3481]=this['_fixPosition'](_0x571927,_0x5b757d);}if(_0x571927 instanceof ft){const _0x17257d=_0x19039e['get'](_0x571927['root']['rootName']);_0x997a6a[_0x9c3481]=this['_fixRange'](_0x571927,_0x17257d);}'root'===_0x9c3481&&(_0x997a6a['root']=_0x19039e['get'](_0x997a6a['root']['rootName']));}}['_fixRange'](_0x52688d,_0x33a502){return this['editor']['model']['createRange'](this['_fixPosition'](_0x52688d['start'],_0x33a502),this['_fixPosition'](_0x52688d['end'],_0x33a502));}['_fixPosition'](_0x522fea,_0x318af0){return this['editor']['model']['createPositionFromPath'](_0x318af0,_0x522fea['path'],_0x522fea['stickiness']);}['_handleInsertOperation'](_0xbb0dcb){const _0x2066b1=this['_idsRoots']['get'](_0xbb0dcb['position']['root']['rootName']),_0x5a7154=this['_fixPosition'](_0xbb0dcb['position'],_0x2066b1),_0x3449c7=null===_0xbb0dcb['_authorId']?null:_0xbb0dcb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25e886=_0x5a7154['parent'],_0x2edfa7=this['_revisionId'],_0x33cb37=[];for(const _0x21df1c of _0xbb0dcb['nodes'])if(_0x21df1c['is']('element'))_0x33cb37['push'](this['_makeIdsRoot'](_0x21df1c));else{for(let _0x105108=0x0;_0x105108<_0x21df1c['offsetSize'];_0x105108++)_0x33cb37['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2850a1=this['_revisionId'];for(let _0x280a7c=_0x2edfa7;_0x280a7c<_0x2850a1;_0x280a7c++)this['_touched']['set'](_0x280a7c,{'userId':_0x3449c7});_0x25e886['_insertChild'](_0x5a7154['offset'],_0x33cb37);}['_handleMoveOperation'](_0x292684){(_0x292684=this['_cloneOperation'](_0x292684,this['_idsRoots']))['_execute']();const _0x2bd5b2=null===_0x292684['_authorId']?null:_0x292684['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ee7ed=_0x292684['getMovedRangeStart'](),_0x2207a4=_0x5ee7ed['parent'],_0x47a9aa=_0x5ee7ed['offset'];!function _0xdea3e1(_0x9f5bcf,_0x1aa525,_0x8fd124,_0x47983a){for(let _0xd75f2e=_0x8fd124;_0xd75f2e<_0x47983a;_0xd75f2e++){const _0x451201=_0x1aa525['getChild'](_0xd75f2e);_0x451201['is']('element','$text')?_0x9f5bcf['set'](_0x451201['getAttribute']('vid'),{'userId':_0x2bd5b2}):(_0x9f5bcf['set'](_0x451201['getAttribute']('vid_start'),{'userId':_0x2bd5b2}),_0xdea3e1(_0x9f5bcf,_0x451201,0x0,_0x451201['childCount']),_0x9f5bcf['set'](_0x451201['getAttribute']('vid_end'),{'userId':_0x2bd5b2}));}}(this['_touched'],_0x2207a4,_0x47a9aa,_0x47a9aa+_0x292684['howMany']);}['_handleMergeOperation'](_0x5d552f){const _0x57b642=null===(_0x5d552f=this['_cloneOperation'](_0x5d552f,this['_idsRoots']))['_authorId']?null:_0x5d552f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x712e8c=_0x5d552f['targetPosition']['parent'],_0x451820=_0x5d552f['sourcePosition']['parent'],_0xf60855=_0x712e8c['getAttribute']('vid_end'),_0x76b743=_0x451820['getAttribute']('vid_start');_0x712e8c['_setAttribute']('vid_end',_0x451820['getAttribute']('vid_end')),_0x451820['_setAttribute']('vid_end',_0xf60855),this['_touched']['set'](_0x76b743,{'userId':_0x57b642}),this['_touched']['set'](_0xf60855,{'userId':_0x57b642}),_0x5d552f['_execute']();}['_handleSplitOperation'](_0x55ae6a){const _0x561a35=null===(_0x55ae6a=this['_cloneOperation'](_0x55ae6a,this['_idsRoots']))['_authorId']?null:_0x55ae6a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29f55e=_0x55ae6a['graveyardPosition'],_0x14e06f=_0x55ae6a['splitPosition']['parent'];_0x55ae6a['_execute']();const _0x2a9055=_0x14e06f['getAttribute']('vid_end'),_0x513e7d=_0x55ae6a['insertionPosition']['nodeAfter'];if(_0x29f55e){const _0x2e8306=_0x513e7d['getAttribute']('vid_end'),_0x4f140a=_0x14e06f['getAttribute']('vid_end');_0x14e06f['_setAttribute']('vid_end',_0x2e8306),_0x513e7d['_setAttribute']('vid_end',_0x4f140a),this['_touched']['set'](_0x14e06f['getAttribute']('vid_end'),{'userId':_0x561a35}),this['_touched']['set'](_0x513e7d['getAttribute']('vid_start'),{'userId':_0x561a35});}else{const _0x146900=this['_revisionId']++,_0x5e2320=this['_revisionId']++;_0x14e06f['_setAttribute']('vid_end',_0x146900),_0x513e7d['_setAttribute']('vid_start',_0x5e2320),_0x513e7d['_setAttribute']('vid_end',_0x2a9055),this['_touched']['set'](_0x146900,{'userId':_0x561a35}),this['_touched']['set'](_0x5e2320,{'userId':_0x561a35});}}['_handleMarkerOperation'](_0x474239){if(!_0x474239['affectsData'])return;const _0x47de43=(_0x474239=this['_cloneOperation'](_0x474239,this['_diffRoots']))['oldRange']?_0x474239['oldRange']['root']:null,_0x30c4b4=_0x474239['newRange']?_0x474239['newRange']['root']:null;_0x47de43&&this['_markers']['delete'](_0x474239['name']),_0x30c4b4&&this['_markers']['set'](_0x474239['name'],_0x474239['newRange']['clone']());const _0x1f6753=null===_0x474239['_authorId']?null:_0x474239['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22a049=_0x474239['name'];if(!this['_touchedMarkers']['has'](_0x22a049))return void this['_touchedMarkers']['set'](_0x22a049,{'range':_0x474239['oldRange'],'userId':_0x1f6753});const _0x555732=this['_touchedMarkers']['get'](_0x22a049),_0x5834d1=_0x555732['range'],_0x474138=_0x474239['newRange'];null==_0x5834d1&&null==_0x474138||_0x5834d1&&_0x474138&&_0x5834d1['isEqual'](_0x474138)?this['_touchedMarkers']['delete'](_0x474239['name']):_0x555732['userId']=_0x1f6753;}['_handleRootOperation'](_0x3e1973,_0x50eb54){this['_diffRoots']['has'](_0x3e1973['rootName'])?this['_diffRoots']['get'](_0x3e1973['rootName'])['_isAttached']=_0x3e1973['isAdd']:(this['_diffRoots']['set'](_0x3e1973['rootName'],F(_0x3e1973['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3e1973['rootName'],{}),_0x50eb54&&this['_idsRoots']['set'](_0x3e1973['rootName'],F(_0x3e1973['rootName'],!0x0)));const _0x33e5ac=null===_0x3e1973['_authorId']?null:_0x3e1973['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe04c72=this['_touchedRoots']['get'](_0x3e1973['rootName']);_0xe04c72&&_0xe04c72['userId']===_0x33e5ac?this['_touchedRoots']['delete'](_0x3e1973['rootName']):this['_touchedRoots']['set'](_0x3e1973['rootName'],{'userId':_0x33e5ac,'isAttached':_0x3e1973['isAdd']});}['_handleRootAttributeOperation'](_0x389c11){const _0xdfc8eb=this['_diffRootsAttributes']['get'](_0x389c11['root']['rootName']);null===_0x389c11['newValue']?delete _0xdfc8eb[_0x389c11['key']]:_0xdfc8eb[_0x389c11['key']]=_0x389c11['newValue'];}}function T(_0x49e412){const _0x1088a0=F(_0x49e412['rootName'],_0x49e412['isAttached']());for(const _0x3c3c3d of _0x49e412['getChildren']()){const _0x37266d=_0x3c3c3d['_clone'](!0x0);_0x1088a0['_appendChild'](_0x37266d);}return _0x1088a0;}function F(_0xa87955,_0x1f79d3=!0x0){const _0x516d5d=new gt();return _0x516d5d['rootName']=_0xa87955,_0x516d5d['_isAttached']=_0x1f79d3,_0x516d5d['isAttached']=()=>_0x516d5d['_isAttached'],_0x516d5d;}function B(_0x5e1869,_0x1a3961,_0x536c36){const _0x536793='elementEnd'==_0x5e1869['type']?_0x536c36['createPositionAt'](_0x5e1869['item'],'end'):_0x536c36['createPositionBefore'](_0x5e1869['item']);return _0x536c36['createPositionFromPath'](_0x1a3961,_0x536793['path'],_0x536793['stickiness']);}function J(_0xa9b2c3,_0xc6c4bb,_0x1012d3){const _0x16e0c6='elementStart'==_0xa9b2c3['type']?_0x1012d3['createPositionAt'](_0xa9b2c3['item'],0x0):_0x1012d3['createPositionAfter'](_0xa9b2c3['item']);return _0x1012d3['createPositionFromPath'](_0xc6c4bb,_0x16e0c6['path'],_0x16e0c6['stickiness']);}class hs extends _0x542a19{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4cf8d6,_0x37557a){super(_0x4cf8d6),this['focusTracker']=new _0x123c18(),this['keystrokes']=new _0x581174(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x37557a),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'](),_0x5f2693({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x75061d=_0x1a6903=>_0x1a6903['stopPropagation']();this['keystrokes']['set']('arrowright',_0x75061d),this['keystrokes']['set']('arrowleft',_0x75061d),this['keystrokes']['set']('arrowup',_0x75061d),this['keystrokes']['set']('arrowdown',_0x75061d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x50d20e){this['revisionNameInputView']['fieldView']['element']['value']=_0x50d20e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4df372){const _0x2d9535=new at(this['locale'],ti),_0xd09837=_0x2d9535['fieldView'];_0xd09837['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x13053e=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4df372&&(_0x13053e+='\x20('+m(this['locale'],'optional')+')'),(_0x2d9535['label']=_0x13053e,_0xd09837['on']('input',()=>{this['revisionNameInputValue']=_0xd09837['element']['value']['trim']();}),_0x2d9535);}}class f extends _0x14ecc6{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0xf74139=this['editor'],_0xcdc179=_0xf74139['plugins']['get']('RevisionTracker');_0xf74139['ui']['componentFactory']['add']('revisionHistory',_0x4b4159=>{const _0x1ae9a3=_0x5c4d53(_0x4b4159),_0xcc082a=_0x1ae9a3['panelView']['children'],_0x558094=new _0xfeb93b(_0x4b4159),_0x501d1c=new _0x113c58(_0x4b4159),_0x5684f1=new _0x447f48(_0x4b4159),_0x4d6da5=new _0x113c58(_0x4b4159),_0x20dd7f=new _0x447f48(_0x4b4159);return _0x1ae9a3['bind']('isEnabled')['to'](_0xcdc179,'isReady',_0xcdc179,'isEnabled',_0xf74139,'isReadOnly',(_0x453dc9,_0x16db43,_0x21c0ab)=>_0x453dc9&&_0x16db43&&!_0x21c0ab),_0x1ae9a3['buttonView']['set']({'icon':_0x421696,'label':m(_0x4b4159,'Revision\x20history'),'tooltip':!0x0}),_0x5684f1['set']({'label':m(_0x4b4159,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5684f1['bind']('isEnabled')['to'](_0xcdc179,'isReady',_0xcdc179,'isEnabled',_0xf74139,'isReadOnly',(_0x4e6b12,_0x4436f1,_0x2fa605)=>_0x4e6b12&&_0x4436f1&&!_0x2fa605),_0x5684f1['on']('execute',()=>this['_showDialog']()),_0x20dd7f['set']({'label':m(_0x4b4159,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x20dd7f['bind']('isEnabled')['to'](_0xcdc179,'isReady',_0xf74139,'isReadOnly',(_0x2a99fb,_0x1405ba)=>_0x2a99fb&&!_0x1405ba),_0x20dd7f['on']('execute',()=>{_0xf74139['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1ae9a3['isOpen']=!0x1,_0xf74139['editing']['view']['focus']();}),_0x501d1c['children']['add'](_0x5684f1),_0x4d6da5['children']['add'](_0x20dd7f),_0x558094['role']='menu',_0x558094['items']['addMany']([_0x501d1c,_0x4d6da5]),_0xcc082a['add'](_0x558094),_0x1ae9a3;}),_0xf74139['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3435b2=this['editor'],_0x3266d5=_0x3435b2['locale'],_0x387e39=new _0x1ae48b(_0x3266d5),_0x727856=new _0x38fee5(_0x3266d5);_0x387e39['buttonView']['set']({'icon':_0x421696,'label':m(_0x3266d5,'Revision\x20history')});const _0x17c1c4=new _0xbd7b4d(_0x3266d5,_0x387e39),_0x2ba924=new _0x18ac69(_0x3266d5);_0x2ba924['set']({'label':m(_0x3266d5,'Save\x20current\x20revision')}),_0x2ba924['delegate']('execute')['to'](_0x387e39),_0x2ba924['on']('execute',()=>{this['_showDialog']();}),_0x17c1c4['children']['add'](_0x2ba924),_0x727856['items']['add'](_0x17c1c4);const _0x81bcf8=new _0xbd7b4d(_0x3266d5,_0x387e39),_0x29ed9e=new _0x18ac69(_0x3266d5);return _0x29ed9e['set']({'label':m(_0x3266d5,'Open\x20revision\x20history')}),_0x29ed9e['delegate']('execute')['to'](_0x387e39),_0x29ed9e['on']('execute',()=>{_0x3435b2['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x81bcf8['children']['add'](_0x29ed9e),_0x727856['items']['add'](_0x81bcf8),_0x387e39['panelView']['children']['add'](_0x727856),_0x387e39;}['_showDialog'](){const _0x6c2490=this['editor'],_0x4daf1f=_0x6c2490['locale'],_0x3c25c2=_0x6c2490['plugins']['get']('Dialog'),_0xc97b28=_0x6c2490['plugins']['get']('RevisionTracker');function _0x32e499(_0x5b0349){_0x6c2490['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5b0349['revisionName']?_0x5b0349['revisionNameInputView']['errorText']=m(_0x4daf1f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x6c2490['plugins']['get'](u)['saveRevision']({'name':_0x5b0349['revisionName']}),_0x3c25c2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x32e499(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3c25c2['show']({'id':'revisionSave','title':m(_0x4daf1f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x6c2490['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3c25c2['hide']()},{'label':m(_0x6c2490['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5333cf){_0x5333cf['bind']('isEnabled')['to'](_0xc97b28,'isReady',_0xc97b28,'isEnabled',_0x6c2490,'isReadOnly',(_0x4b3234,_0x110929,_0x3ef4d9)=>_0x4b3234&&_0x110929&&!_0x3ef4d9);},'onExecute':()=>_0x32e499(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2af205=this['editor'],_0xae3808=_0x2af205['locale'];this['_saveRevisionFormView']=new hs(_0xae3808,_0x2af205['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x542a19{['changeId'];['_model'];constructor(_0x9205be,_0x320057){super(_0x9205be),this['_model']=_0x320057,this['changeId']=_0x320057['id'];const _0x473f2d=this['bindTemplate'],_0x5f1221=m(_0x9205be,_0x320057['data']['isSuggestion']?'Suggested\x20by':'add'==_0x320057['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x320057['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x473f2d['to']('type',_0x1ea9b1=>'ck-revision-change__'+_0x1ea9b1)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5f1221}]},{'text':'\x20'+_0x320057['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x3fc5f7(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2f3269){super(),this['id']=_0x2f3269['id']||_0x5361b9(),this['author']=_0x2f3269['author'],this['type']=_0x2f3269['type'],this['data']=_0x2f3269['data']||{},this['rootName']=_0x2f3269['rootName'],this['set']('createdAt',_0x2f3269['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(_0x159eaf,_0x5c4c59){this['newRevisionId']=_0x159eaf,this['oldRevisionId']=_0x5c4c59,this['changes']=new _0x40c487();}['_setChanges'](_0x2e570b){for(const _0x39276e of _0x2e570b)this['changes']['add'](_0x39276e);}}const Y={'c':_0xe394ee,'a':_0x3c3563,'e':_0x10b4ba,'r':_0x5e7aba,'u':_0x2109df};class d extends _0x14ecc6{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x284e29,_0x325805,j];}constructor(_0x37e30e){super(_0x37e30e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x57f5f7,_0x59b0af,_0x3058f3)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4a259c=>{for(const _0x5408cc of this['editor']['editing']['view']['document']['roots'])_0x3058f3?_0x4a259c['removeClass']('ck-editor__editable__overlay',_0x5408cc):_0x4a259c['addClass']('ck-editor__editable__overlay',_0x5408cc);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x8acb72=>null!==_0x8acb72),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x210254,_0x36cfec,_0x1ba3e2)=>_0x210254&&_0x1ba3e2?_0x36cfec['changes']['getIndex'](_0x1ba3e2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x137700,_0x4df78d)=>_0x137700?_0x4df78d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x325805);}['init'](){const _0x3c285e=this['editor'],_0x1e6db1=new yt(_0x3c285e,{'direction':'backward'}),_0x3860eb=new yt(_0x3c285e,{'direction':'forward'});(_0x3c285e['commands']['add']('showPreviousChange',_0x1e6db1),_0x3c285e['commands']['add']('showNextChange',_0x3860eb),_0x3c285e['commands']['add']('restoreRevision',new _t(_0x3c285e)),this['on']('change:numberOfChanges',()=>{_0x1e6db1['refresh'](),_0x3860eb['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3c285e['enableReadOnlyMode']('revision-viewer'),_0x3c285e['plugins']['has']('WidgetToolbarRepository'))&&_0x3c285e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2fc111){await this['loadRevisionData'](_0x2fc111);const _0xe6ae82={};for(const _0x54c6d1 in _0x2fc111['diffData']){if(_0x2fc111['diffData'][_0x54c6d1]['attachChange']&&!_0x2fc111['diffData'][_0x54c6d1]['attachChange']['isAttached'])continue;const _0x1d75ef=this['_removeRevisionMarkers'](JSON['parse'](_0x2fc111['diffData'][_0x54c6d1]['insertions'])),_0x5cab16=this['editor']['editing']['view']['document'],_0x3a4a86=new _0x2d59a2(_0x5cab16,_0x1d75ef['map'](_0x4b39b2=>this['_getViewObj'](_0x4b39b2)));this['editor']['data']['processor']['useFillerType']('marked'),_0xe6ae82[_0x54c6d1]=this['editor']['data']['processor']['toData'](_0x3a4a86),this['editor']['data']['processor']['useFillerType']('default');}return _0xe6ae82;}async['getRevisionRootsAttributes'](_0x357eac){await this['loadRevisionData'](_0x357eac);const _0x38ffa2={};for(const _0x1204df in _0x357eac['diffData'])_0x357eac['diffData'][_0x1204df]['attachChange']&&!_0x357eac['diffData'][_0x1204df]['attachChange']['isAttached']||(_0x38ffa2[_0x1204df]=_0x357eac['diffData'][_0x1204df]['attributesAfter']||{});return _0x38ffa2;}['_removeRevisionMarkers'](_0x37272a){return(_0x37272a=_0x37272a['filter'](_0x223468=>!_0x223468['name']||'revision-start'!==_0x223468['name']&&'revision-end'!==_0x223468['name']))['forEach'](_0x839255=>{'string'!=typeof _0x839255&&(_0x839255['children']=this['_removeRevisionMarkers'](_0x839255['children']),_0x839255['attributes']=_0x839255['attributes']['filter'](_0x38cca6=>!_0x38cca6[0x0]['startsWith']('data-revision-')));}),_0x37272a;}async['compare'](_0x40dc1b,_0x1e0d97,_0x473534=!0x1){if(!this['isEnabled'])return;const _0x443e2e=this['diff'],_0x5d0dda=this['repository'],_0x1881a7='string'==typeof _0x40dc1b?_0x5d0dda['getRevision'](_0x40dc1b):_0x40dc1b,_0x11c934='string'==typeof _0x1e0d97?_0x5d0dda['getRevision'](_0x1e0d97):_0x1e0d97,_0xbd8b5c=_0x1881a7['id'],_0x279e6c=_0x11c934?_0x11c934['id']:null;if(!_0x473534&&this['diff']&&this['diff']['newRevisionId']===_0xbd8b5c&&this['diff']['oldRevisionId']===_0x279e6c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xbd8b5c,_0x279e6c);const _0x4f9c80=this['_getRevisionsRange'](_0x1881a7,_0x11c934,!0x0)['map'](_0x482f57=>this['loadRevisionData'](_0x482f57));return _0x4f9c80['push'](new Promise(_0x2ea1ba=>{setTimeout(_0x2ea1ba,0x14);})),Promise['all'](_0x4f9c80)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x23bf40=this['_getDiff'](_0xbd8b5c,_0x279e6c);for(const _0x530e3c of _0x23bf40['changes'])this['_changeIdToChange']['set'](_0x530e3c['id'],_0x530e3c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x322649=>{for(const _0x394a5e of this['editor']['model']['document']['getRootNames']())_0x322649['detachRoot'](_0x394a5e);for(const _0x16f017 of Object['keys'](_0x23bf40['model'])){const _0x5a7d4b=_0x322649['addRoot'](_0x16f017);for(const _0x5b0054 of Object['keys'](_0x23bf40['attributes'][_0x16f017]))_0x322649['setAttribute'](_0x5b0054,_0x23bf40['attributes'][_0x16f017][_0x5b0054],_0x5a7d4b);_0x322649['insert'](_0x23bf40['model'][_0x16f017],_0x5a7d4b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x23bf40['changes'])),this['isReady']=!0x0;})['catch'](_0x21068e=>{console['error'](_0x21068e),this['_cleanUp'](),_0x443e2e&&(this['diff']=_0x443e2e),this['isReady']=!0x0;});}['addRevisionData'](_0x4bf0e3,_0x1f0116){const _0x15cc51=this['repository']['createRevision'](_0x4bf0e3);return _0x15cc51['on']('_update',(_0x22a45a,_0x31f017,_0x393e01)=>_0x1f0116(_0x31f017,_0x393e01,_0x15cc51)),this['repository']['addRevision'](_0x15cc51),_0x15cc51;}['loadRevisionData'](_0x1337ab){if(!_0x1337ab||_0x1337ab['diffData'])return Promise['resolve']();{const _0x934e8e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x934e8e,'revisionId':_0x1337ab['id']})['then'](_0x22d50b=>{_0x1337ab['_update']({'diffData':_0x22d50b['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x59d33a=>{for(const _0x22714d of this['editor']['model']['document']['getRootNames']())_0x59d33a['detachRoot'](_0x22714d);});}['_sortAndFilterDiffChanges'](_0xc93c87){const _0x11ded2=[],_0x60d228=new Map();for(const _0x1751d1 of this['editor']['model']['document']['getRootNames']()){const _0x56033e=this['editor']['editing']['view']['getDomRoot'](_0x1751d1);if(!_0x56033e)continue;const _0x1ea5f1=_0x56033e['getClientRects']()['item'](0x0);_0x1ea5f1&&(_0x11ded2['push'](_0x1751d1),_0x60d228['set'](_0x1751d1,_0x1ea5f1));}return _0x11ded2['sort']((_0x364dd2,_0x3f8ded)=>{const _0x52d0a=_0x60d228['get'](_0x364dd2),_0x48c25a=_0x60d228['get'](_0x3f8ded);return _0x52d0a['y']-_0x48c25a['y']||_0x52d0a['x']-_0x48c25a['x'];}),(_0xc93c87=_0xc93c87['filter'](_0xd31661=>_0x11ded2['includes'](_0xd31661['rootName'])))['sort']((_0x571b2b,_0x31d570)=>_0x11ded2['indexOf'](_0x571b2b['rootName'])-_0x11ded2['indexOf'](_0x31d570['rootName'])),_0xc93c87;}['_makeTape'](_0xa0e07d){const _0x3beba3=Array['from'](_0xa0e07d['markers'])['filter'](([_0x3b987b,_0x2af1a5])=>_0x3b987b['startsWith']('revision:')&&!_0x2af1a5['isCollapsed']),_0x4a1143=Array['from'](this['editor']['model']['createRangeIn'](_0xa0e07d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3beba3['length'])for(const _0x508740 of _0x4a1143){const [_0x2b38ac,_0x2d2665]=_0x3beba3[0x0],[,_0x418443,_0x73399d]=_0x2b38ac['split'](':');if(_0x2d2665['end']['isEqual'](_0x508740['nextPosition'])&&_0x3beba3['shift'](),(_0x508740['previousPosition']['isEqual'](_0x2d2665['start'])||_0x508740['previousPosition']['isAfter'](_0x2d2665['start']))&&('insertion'==_0x418443?_0x508740['isAdded']={'userId':_0x73399d}:'deletion'==_0x418443&&(_0x508740['isRemoved']={'userId':_0x73399d})),0x0==_0x3beba3['length'])break;}return _0x4a1143;}['_refreshStartEndIndex'](_0x319977){const _0x4789b0=new Map();for(let _0x153197=0x0;_0x153197<_0x319977['length'];_0x153197++)'text'===_0x319977[_0x153197]['type']?(_0x319977[_0x153197]['item']['startIndex']=_0x153197,_0x319977[_0x153197]['item']['endIndex']=_0x153197):('elementStart'===_0x319977[_0x153197]['type']?_0x319977[_0x153197]['item']['startIndex']=_0x153197:'elementEnd'===_0x319977[_0x153197]['type']&&(_0x319977[_0x153197]['item']['endIndex']=_0x153197),_0x4789b0['set'](_0x319977[_0x153197]['id'],_0x153197));for(const _0x47d13e of _0x4789b0['values']())'elementStart'===_0x319977[_0x47d13e]['type']?_0x319977[_0x47d13e]['item']['endIndex']=_0x4789b0['get'](_0x319977[_0x47d13e]['pairId']):'elementEnd'===_0x319977[_0x47d13e]['type']&&(_0x319977[_0x47d13e]['item']['startIndex']=_0x4789b0['get'](_0x319977[_0x47d13e]['pairId']));}['_processTape'](_0x40c42a){for(let _0x31107f=0x0;_0x31107f<_0x40c42a['length'];_0x31107f++){if('elementStart'===_0x40c42a[_0x31107f]['type'])_0x40c42a[_0x31107f]['item']['startIndex']=_0x31107f;else{if('elementEnd'===_0x40c42a[_0x31107f]['type']){_0x40c42a[_0x31107f]['item']['endIndex']=_0x31107f;const _0x5a9423=_0x40c42a[_0x31107f]['item']['startIndex'];_0x40c42a[_0x5a9423]['pairId']=_0x40c42a[_0x31107f]['id'],_0x40c42a[_0x31107f]['pairId']=_0x40c42a[_0x5a9423]['id'];}else _0x40c42a[_0x31107f]['item']['startIndex']=_0x31107f,_0x40c42a[_0x31107f]['item']['endIndex']=_0x31107f,_0x40c42a[_0x31107f]['pairId']=null;}_0x40c42a[_0x31107f]['markersStart']||(_0x40c42a[_0x31107f]['markersStart']=[],_0x40c42a[_0x31107f]['markersEnd']=[]);}}['_markInsertions'](_0x10b6a6,_0x2e8a34){const _0x41709c=_0x10b6a6['filter'](_0x269d86=>!_0x269d86['isAdded']);for(let _0xdb2df9=0x0;_0xdb2df9<_0x2e8a34['length'];_0xdb2df9++)_0x2e8a34[_0xdb2df9]['isAdded']&&(_0x41709c[_0xdb2df9]['isAdded']=_0x2e8a34[_0xdb2df9]['isAdded']);}['_makeModelFromViewString'](_0x17e923){const _0x2ef4da=JSON['parse'](_0x17e923),_0x164a3f=this['editor']['editing']['view']['document'],_0x3a5d09=new _0x2d59a2(_0x164a3f,_0x2ef4da['map'](_0x44f227=>this['_getViewObj'](_0x44f227)));return this['editor']['data']['toModel'](_0x3a5d09);}['_getViewObj'](_0x4bb0db){const _0x57478c=this['editor']['editing']['view']['document'];if('string'==typeof _0x4bb0db)return new _0x59d800(_0x57478c,_0x4bb0db);{const _0x16bcfe=_0x4bb0db['children']['map'](_0x34686b=>this['_getViewObj'](_0x34686b));return new(Y[_0x4bb0db['type']]||_0x1e1e59)(_0x57478c,_0x4bb0db['name'],_0x4bb0db['attributes'],_0x16bcfe);}}['_getDiff'](_0x28288f,_0x3ad960=null){const _0x272039=this['repository']['getRevision'](_0x28288f),_0x33ac40=_0x3ad960?this['repository']['getRevision'](_0x3ad960):null,_0x3a8f94=this['_getRevisionsRange'](_0x272039,_0x33ac40),_0x12fd90=_0x3a8f94[_0x3a8f94['length']-0x1],_0x36395b=new Map(),_0xc3afb2={'model':{},'attributes':{},'changes':[]},_0x290e78=new Set(),_0x118a5a=new Map();for(let _0x194636=_0x3a8f94['length']-0x1;_0x194636>=0x0;_0x194636--){const _0x471052=_0x3a8f94[_0x194636];for(const _0x1a3053 of Object['keys'](_0x471052['diffData']))if(_0x471052['diffData'][_0x1a3053]['attachChange']){const _0x425463=_0x471052['diffData'][_0x1a3053]['attachChange'];_0x425463['isAttached']?(_0x290e78['add'](_0x1a3053),_0x118a5a['has'](_0x1a3053)&&_0x118a5a['get'](_0x1a3053)['userId']==_0x425463['userId']?_0x118a5a['delete'](_0x1a3053):_0x118a5a['set'](_0x1a3053,_0x425463)):_0x118a5a['has'](_0x1a3053)?(_0x290e78['delete'](_0x1a3053),_0x118a5a['delete'](_0x1a3053)):(_0x290e78['add'](_0x1a3053),_0x118a5a['set'](_0x1a3053,_0x425463));}else _0x290e78['add'](_0x1a3053);}for(const _0x276a30 of _0x290e78){const _0x1482a4=_0x118a5a['has'](_0x276a30)&&!_0x118a5a['get'](_0x276a30)['isAttached'];let _0x516d17=_0x1482a4?_0x3a8f94['length']-0x1:0x0;const _0x25f3b1=_0x1482a4?-0x1:0x1;for(;_0x3a8f94[_0x516d17];){const _0x40228a=_0x3a8f94[_0x516d17];if(_0x40228a['diffData'][_0x276a30]){const _0x882ed1=_0x1482a4?_0x40228a['diffData'][_0x276a30]['attributesBefore']:_0x40228a['diffData'][_0x276a30]['attributesAfter'];_0xc3afb2['attributes'][_0x276a30]=_0x882ed1?_0x1732e6(_0x882ed1):{};break;}_0x516d17+=_0x25f3b1;}}for(const _0x3c76d1 of _0x3a8f94){_0x3c76d1['model']={};for(const _0x5bdd53 of _0x3c76d1['authors'])_0x36395b['set'](_0x5bdd53['id'],_0x5bdd53);for(const _0x427c89 of _0x290e78){const _0x1eaa38=_0x3c76d1['diffData'][_0x427c89]?_0x3c76d1['diffData'][_0x427c89]['insertions']:'[]',_0x5b8cef=_0x3c76d1['diffData'][_0x427c89]?_0x3c76d1['diffData'][_0x427c89]['deletions']:'[]';_0x3c76d1['model'][_0x427c89]={'insertions':this['_makeModelFromViewString'](_0x1eaa38),'deletions':this['_makeModelFromViewString'](_0x5b8cef)};}}for(const _0x2532c5 of _0x290e78){let _0x12f8f1=null,_0x11bddb=0x0;const _0x32256b=new Map(Array['from'](_0x272039['model'][_0x2532c5]['insertions']['markers'])['filter'](([_0x4b81be])=>!_0x4b81be['startsWith']('revision:')));let _0x14fe64=0x0;for(const _0x453603 of _0x3a8f94){const _0x5ebc18=this['_makeTape'](_0x453603['model'][_0x2532c5]['insertions']);_0x453603==_0x272039?(_0x12f8f1=_0x5ebc18,_0x11bddb=_0x12f8f1['length'],_0x12f8f1['forEach'](_0x54e3d0=>{_0x54e3d0['id']=_0x14fe64++;}),this['_processTape'](_0x12f8f1)):this['_markInsertions'](_0x12f8f1,_0x5ebc18);const _0x1db5fd=_0x12f8f1['filter'](_0x3b0380=>!_0x3b0380['isAdded'])['map'](_0x48a6af=>_0x48a6af['id']);let _0x21645d=0x0;const _0x52a57b=this['_makeTape'](_0x453603['model'][_0x2532c5]['deletions']);_0x52a57b['forEach'](_0x44b093=>{_0x44b093['isRemoved']?_0x44b093['id']=_0x11bddb++:_0x44b093['id']=_0x1db5fd[_0x21645d++];}),this['_processTape'](_0x52a57b),this['_setDistance'](_0x12f8f1,'isAdded'),this['_setDistance'](_0x52a57b,'isRemoved'),_0x453603==_0x272039&&this['_markMarkers'](_0x12f8f1,_0x32256b),_0x12f8f1=this['_joinTapes'](_0x12f8f1,_0x52a57b),this['_refreshStartEndIndex'](_0x12f8f1),this['_setDistance'](_0x12f8f1,'isRemoved');}_0x12f8f1=_0x12f8f1['filter'](_0x500502=>!(_0x500502['isAdded']&&_0x500502['isRemoved']));const _0x519ecf=new Map(_0x12fd90['model'][_0x2532c5]['deletions']['markers']),_0x3ac115=new Set(_0x32256b['keys']());for(const _0x2206d1 of _0x519ecf['keys']())_0x3ac115['delete'](_0x2206d1);this['_markSuggestions'](_0x12f8f1,_0x3ac115),this['_fixObsoleteTags'](_0x12f8f1),_0x12f8f1=this['_removeMissingPairs'](_0x12f8f1),_0x12f8f1=this['_markMismatchedRemovedTags'](_0x12f8f1),_0x12f8f1=this['_removeUnsupportedChanges'](_0x12f8f1);const {root:_0x39824b,changes:_0x445823}=this['_makeModelFromTape'](_0x12f8f1,_0x36395b,_0x2532c5);_0xc3afb2['model'][_0x2532c5]=_0x39824b;const _0x1d53a7=_0x118a5a['get'](_0x2532c5);if(_0x1d53a7){const _0x4bf811=_0x36395b['get'](_0x1d53a7['userId']),_0x1b20ae=new r({'author':_0x4bf811,'type':_0x1d53a7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2532c5});_0x445823['unshift'](_0x1b20ae),_0xc3afb2['attributes'][_0x2532c5]['revisionHistoryAttachChange']=_0x1b20ae['id'];}_0xc3afb2['changes']=_0xc3afb2['changes']['concat'](_0x445823);}return _0xc3afb2;}['_markMarkers'](_0x371e46,_0x3fea0f){for(let _0x263c8b=0x0;_0x263c8b<_0x371e46['length'];_0x263c8b++)for(const [_0x4eb91e,_0x4a8e6c]of _0x3fea0f)_0x4a8e6c['start']['isEqual'](_0x371e46[_0x263c8b]['previousPosition'])&&_0x371e46[_0x263c8b]['markersStart']['push'](_0x4eb91e),_0x4a8e6c['end']['isEqual'](_0x371e46[_0x263c8b]['nextPosition'])&&_0x371e46[_0x263c8b]['markersEnd']['push'](_0x4eb91e);}['_joinTapes'](_0x596029,_0x370444){let _0x55a836=[],_0x26d6b9=0x0,_0x4bde8c=0x0;for(;_0x26d6b9<_0x596029['length']||_0x4bde8c<_0x370444['length'];){const _0x7f6162=_0x596029[_0x26d6b9]||{},_0x3dfbff=_0x370444[_0x4bde8c]||{};if(_0x7f6162['id']==_0x3dfbff['id'])_0x26d6b9++,_0x4bde8c++,_0x55a836['push'](_0x7f6162);else{if(_0x3dfbff['isRemoved']&&_0x7f6162['isAdded']){const {commonTape:_0x1be68b,iEnd:_0x22fa9e,jEnd:_0x551d1e}=this['_threeWayMerge'](_0x596029,_0x26d6b9,_0x370444,_0x4bde8c);_0x55a836=_0x55a836['concat'](_0x1be68b),_0x26d6b9=_0x22fa9e,_0x4bde8c=_0x551d1e;}else _0x3dfbff['isRemoved']?(_0x4bde8c++,_0x55a836['push'](_0x3dfbff)):(_0x26d6b9++,_0x55a836['push'](_0x7f6162));}}return _0x55a836;}['_markSuggestions'](_0x4e553f,_0xc70e17){const _0x52b06e=[];for(let _0x7f3a3d=0x0;_0x7f3a3d<_0x4e553f['length'];_0x7f3a3d++){for(let _0x1c3091=0x0;_0x1c3091<_0x4e553f[_0x7f3a3d]['markersStart']['length'];_0x1c3091++){const _0xba550=_0x4e553f[_0x7f3a3d]['markersStart'][_0x1c3091];if(!_0xc70e17['has'](_0xba550))continue;const {group:_0x43b7d3,type:_0x316268,authorId:_0x1510bc}=_0x1df8a5(_0xba550);'revision-suggestion'!=_0x43b7d3||'insertion'!=_0x316268&&'deletion'!=_0x316268||(_0x52b06e['unshift']({'type':_0x316268,'name':_0xba550,'userId':_0x1510bc}),_0x4e553f[_0x7f3a3d]['markersStart']['splice'](_0x1c3091,0x1),_0x1c3091--);}_0x40487b(_0x4e553f[_0x7f3a3d]);for(let _0x413d43=0x0;_0x413d43<_0x4e553f[_0x7f3a3d]['markersEnd']['length'];_0x413d43++){const _0xf2cf1c=_0x4e553f[_0x7f3a3d]['markersEnd'][_0x413d43];if(!_0xc70e17['has'](_0xf2cf1c))continue;const {group:_0x810988,type:_0x529d7e}=_0x1df8a5(_0xf2cf1c);if('revision-suggestion'!=_0x810988||'insertion'!=_0x529d7e&&'deletion'!=_0x529d7e)continue;_0x4e553f[_0x7f3a3d]['markersEnd']['splice'](_0x413d43,0x1),_0x413d43--;const _0x26adcc=_0x52b06e['findIndex'](_0x4238d6=>_0x4238d6['name']==_0xf2cf1c);_0x26adcc>-0x1&&_0x52b06e['splice'](_0x26adcc,0x1);}}function _0x1df8a5(_0x4c7981){const _0x3b94ff=_0x4c7981['split'](':');return{'group':_0x3b94ff[0x0],'type':_0x3b94ff[0x1],'subType':_0x3b94ff['length']>=0x5?_0x3b94ff[0x2]:null,'id':_0x3b94ff['length']<0x5?_0x3b94ff[0x2]:_0x3b94ff[0x3],'authorId':_0x3b94ff['length']<0x5?_0x3b94ff[0x3]:_0x3b94ff[0x4],'markerCount':0x6==_0x3b94ff['length']?_0x3b94ff[0x5]:null};}function _0x40487b(_0x286057){for(let _0x2cf52a=0x0;_0x2cf52a<_0x52b06e['length'];_0x2cf52a++){if(_0x286057['isAdded']&&'insertion'==_0x52b06e[_0x2cf52a]['type'])return _0x286057['isAddSuggestion']=_0x52b06e[_0x2cf52a],void delete _0x286057['isAdded'];if(!_0x286057['isAdded']&&!_0x286057['isRemoved']&&'deletion'==_0x52b06e[_0x2cf52a]['type'])return void(_0x286057['isRemoveSuggestion']=_0x52b06e[_0x2cf52a]);}}}['_setDistance'](_0x235970,_0x36fa2d){let _0x18012b=0x0,_0x1f7176=!0x1;const _0x12c2df=new Map();for(const _0x44dc67 of _0x235970)_0x44dc67[_0x36fa2d]?_0x1f7176&&(_0x18012b++,_0x1f7176=!0x1):(_0x18012b++,_0x1f7176=!0x0),_0x12c2df['set'](_0x44dc67['id'],_0x18012b);for(let _0x4fa804=0x0;_0x4fa804<_0x235970['length'];_0x4fa804++){if('isRemoved'==_0x36fa2d&&_0x235970[_0x4fa804]['isAdded']||'isAdded'==_0x36fa2d&&_0x235970[_0x4fa804]['isRemoved'])continue;if('text'==_0x235970[_0x4fa804]['type']){_0x235970[_0x4fa804]['distance']=0x0;continue;}const _0x3671bb=_0x12c2df['get'](_0x235970[_0x4fa804]['pairId']),_0x17b79a=_0x12c2df['get'](_0x235970[_0x4fa804]['id']);_0x235970[_0x4fa804]['distance']=_0x3671bb-_0x17b79a;}}['_getRevisionsRange'](_0x19f958,_0x4679f7,_0x2cd96e=!0x1){const _0x58dfcf=[];let _0x4e3088=this['repository']['getIndex'](_0x19f958),_0x583f28=this['repository']['getIndex'](_0x4679f7);for(-0x1==_0x583f28&&(_0x583f28=this['repository']['_revisions']['length'],_0x2cd96e=!0x1);_0x4e3088<_0x583f28;)_0x58dfcf['push'](this['repository']['getRevision'](_0x4e3088)),_0x4e3088++;return _0x2cd96e&&_0x58dfcf['push'](this['repository']['getRevision'](_0x4e3088)),_0x58dfcf;}['_threeWayMerge'](_0x1194fb,_0x1014f2,_0xf2f1e0,_0x15b45c){const _0xab106d=this['editor']['model']['schema'];let _0x3e0ced=_0x1014f2;for(;_0x1194fb[_0x3e0ced]&&_0x1194fb[_0x3e0ced]['isAdded'];)_0x3e0ced++;let _0x2945ed=_0x15b45c;for(;_0xf2f1e0[_0x2945ed]&&_0xf2f1e0[_0x2945ed]['isRemoved'];)_0x2945ed++;_0xda7a5(_0x1194fb,_0x1014f2,_0x3e0ced),_0xda7a5(_0xf2f1e0,_0x15b45c,_0x2945ed);const _0x46d667=_0xf2f1e0['slice'](_0x15b45c,_0x2945ed)['concat'](_0x1194fb['slice'](_0x1014f2,_0x3e0ced));return _0x46d667['sort']((_0x5101bc,_0x5c476a)=>_0x5101bc['side']!=_0x5c476a['side']?_0x5101bc['side']-_0x5c476a['side']:_0x5101bc['level']!=_0x5c476a['level']?_0x5101bc['level']-_0x5c476a['level']:_0x5101bc['distance']!=_0x5c476a['distance']?_0x5c476a['distance']-_0x5101bc['distance']:!!_0x5101bc['isAdded']!=!!_0x5c476a['isAdded']?-0x1==_0x5101bc['side']||0x0==_0x5101bc['side']?_0x5101bc['isAdded']?-0x1:0x1:_0x5101bc['isAdded']?0x1:-0x1:_0x5101bc['index']-_0x5c476a['index']),{'commonTape':_0x46d667,'iEnd':_0x3e0ced,'jEnd':_0x2945ed};function _0xda7a5(_0x24f26b,_0x458952,_0x28474c){let _0x488886=-0x1,_0x34baed=Number['POSITIVE_INFINITY'],_0x240b41=!0x0;for(let _0x1b3b0f=_0x458952;_0x1b3b0f<_0x28474c;_0x1b3b0f++)if(_0xab106d['isInline'](_0x24f26b[_0x1b3b0f]['item'])||(_0x240b41=!0x1),_0x24f26b[_0x1b3b0f]['item']['startIndex']<_0x458952&&(_0x488886=_0x1b3b0f),_0x24f26b[_0x1b3b0f]['item']['endIndex']>=_0x28474c){_0x34baed=_0x1b3b0f;break;}_0x240b41&&(_0x488886=_0x28474c-0x1);for(let _0xf8449d=_0x458952;_0xf8449d<_0x28474c;_0xf8449d++)_0x24f26b[_0xf8449d]['side']=_0xf8449d<=_0x488886?-0x1:_0xf8449d<_0x34baed?0x0:0x1,_0x24f26b[_0xf8449d]['index']=_0xf8449d;let _0x3fd9b9=0x0;for(let _0x1ca4ee=_0x458952;_0x1ca4ee<=_0x488886;_0x1ca4ee++)0x0==_0x24f26b[_0x1ca4ee]['distance']?_0x24f26b[_0x1ca4ee]['level']=_0x3fd9b9:(_0x3fd9b9++,_0x24f26b[_0x1ca4ee]['level']=_0x3fd9b9,_0x3fd9b9++);for(let _0x4e9bb2=_0x458952;_0x4e9bb2<_0x28474c;_0x4e9bb2++)0x0==_0x24f26b[_0x4e9bb2]['side']&&(_0x24f26b[_0x4e9bb2]['level']=_0x3fd9b9);_0x3fd9b9=0x0;for(let _0x1503bb=_0x28474c-0x1;_0x1503bb>=_0x34baed;_0x1503bb--)0x0==_0x24f26b[_0x1503bb]['distance']?_0x24f26b[_0x1503bb]['level']=_0x3fd9b9:(_0x3fd9b9--,_0x24f26b[_0x1503bb]['level']=_0x3fd9b9,_0x3fd9b9--);}}['_fixObsoleteTags'](_0x168774){const _0x36a13c=new Map(),_0x217b1a=this['editor']['model']['schema'];for(let _0x3bb028=0x1;_0x3bb028<_0x168774['length'];_0x3bb028++){let _0xdb3dba,_0x190eec,_0x29d6f2;const _0x5f4ef5=_0x168774[_0x3bb028],_0x52f5a5=_0x168774[_0x3bb028-0x1];if('text'==_0x5f4ef5['type'])continue;if(_0x5f4ef5['type']!=_0x52f5a5['type'])continue;if(!_0x217b1a['isBlock'](_0x52f5a5['item'])||_0x217b1a['isLimit'](_0x52f5a5['item']))continue;if(!_0x217b1a['isBlock'](_0x5f4ef5['item'])||_0x217b1a['isLimit'](_0x5f4ef5['item']))continue;if((_0x168774[_0x3bb028]['isAdded']||_0x168774[_0x3bb028]['isAddSuggestion'])&&_0x168774[_0x3bb028-0x1]['isRemoved'])_0xdb3dba=_0x168774[_0x3bb028],_0x190eec=_0x168774[_0x3bb028-0x1],_0x29d6f2=_0x3bb028-0x1;else{if(!_0x168774[_0x3bb028]['isRemoved']||!_0x168774[_0x3bb028-0x1]['isAdded']&&!_0x168774[_0x3bb028-0x1]['isAddSuggestion'])continue;_0xdb3dba=_0x168774[_0x3bb028-0x1],_0x190eec=_0x168774[_0x3bb028],_0x29d6f2=_0x3bb028;}const _0x15562c=_0xdb3dba['level']==_0x190eec['level'],_0x45f3a9=Math['abs'](_0xdb3dba['level'])<Math['abs'](_0x190eec['level'])&&0x0==_0x190eec['distance'];(_0x15562c||_0x45f3a9)&&(_0x36a13c['set'](_0x190eec['id'],_0xdb3dba['id']),_0x168774['splice'](_0x29d6f2,0x1),_0x3bb028--,_0xdb3dba['isAdded']=!0x1);}for(let _0xdd2734=0x0;_0xdd2734<_0x168774['length'];_0xdd2734++)_0x36a13c['has'](_0x168774[_0xdd2734]['pairId'])&&(_0x168774[_0xdd2734]['pairId']=_0x36a13c['get'](_0x168774[_0xdd2734]['pairId']));}['_removeMissingPairs'](_0x14eec){const _0x2957a9=new Set(_0x14eec['map'](_0x5b4ba7=>_0x5b4ba7['id']));for(let _0x4dcc69=0x0;_0x4dcc69<_0x14eec['length'];_0x4dcc69++)_0x2957a9['has'](_0x14eec[_0x4dcc69]['pairId'])||0x0==_0x14eec[_0x4dcc69]['distance']||(_0x14eec[_0x4dcc69]['isIncorrect']=!0x0);return _0x14eec['filter'](_0x5b339e=>!_0x5b339e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x594bbd){const _0x15c89e=new Set();for(let _0x357eb4=0x0;_0x357eb4<_0x594bbd['length'];_0x357eb4++){if(_0x15c89e['has'](_0x594bbd[_0x357eb4]['id'])&&_0x594bbd[_0x357eb4]['isRemoved']&&(_0x594bbd[_0x357eb4]['isIncorrect']=!0x0),_0x594bbd[_0x357eb4]['isIncorrect'])continue;if(0x0==_0x594bbd[_0x357eb4]['distance'])continue;if('elementStart'!=_0x594bbd[_0x357eb4]['type'])continue;if(null==_0x594bbd[_0x357eb4]['pairId'])continue;let _0xd67b17=_0x357eb4+0x1,_0x30dddb=0x0;for(;_0x594bbd[_0xd67b17]['id']!=_0x594bbd[_0x357eb4]['pairId'];)'elementStart'==_0x594bbd[_0xd67b17]['type']?_0x30dddb++:'elementEnd'==_0x594bbd[_0xd67b17]['type']&&_0x30dddb--,_0xd67b17++;if(0x0!=_0x30dddb){if(_0x594bbd[_0x357eb4]['isRemoved'])_0x594bbd[_0x357eb4]['isIncorrect']=!0x0;else{for(;_0xd67b17!=_0x357eb4;)_0x594bbd[_0xd67b17]['isRemoved']&&0x0!=_0x594bbd[_0xd67b17]['distance']&&(_0x594bbd[_0xd67b17]['isIncorrect']=!0x0,_0x15c89e['add'](_0x594bbd[_0xd67b17]['pairId'])),_0xd67b17--;}}}return _0x594bbd['filter'](_0x1051b9=>!_0x1051b9['isIncorrect']);}['_removeUnsupportedChanges'](_0x57e0d8){const _0x4e22ad=this['editor']['model']['schema'];for(let _0x58cecf=0x0;_0x58cecf<_0x57e0d8['length'];_0x58cecf++){if(!(_0x57e0d8[_0x58cecf]['isAdded']||_0x57e0d8[_0x58cecf]['isAddSuggestion']||_0x57e0d8[_0x58cecf]['isRemoved']||_0x57e0d8[_0x58cecf]['isRemoveSuggestion']))continue;if(0x0==_0x57e0d8[_0x58cecf]['distance'])continue;const _0x3db549=_0x57e0d8[_0x58cecf]['item'];_0x4e22ad['isBlock'](_0x3db549)||_0x4e22ad['isLimit'](_0x3db549)||(_0x57e0d8[_0x58cecf]['isAdded']&&delete _0x57e0d8[_0x58cecf]['isAdded'],_0x57e0d8[_0x58cecf]['isAddSuggestion']&&delete _0x57e0d8[_0x58cecf]['isAddSuggestion'],_0x57e0d8[_0x58cecf]['isRemoveSuggestion']&&delete _0x57e0d8[_0x58cecf]['isRemoveSuggestion'],_0x57e0d8[_0x58cecf]['isRemoved']&&(_0x57e0d8[_0x58cecf]['isIncorrect']=!0x0));}return _0x57e0d8['filter'](_0x23121e=>!_0x23121e['isIncorrect']);}['_makeModelFromTape'](_0xd6dc2f,_0x24ab77,_0x5ca837){const _0x49b1d2=new gt(),_0x4ca2e0=[],_0x278d78=new Map(),_0x45f794=this['editor']['model'],_0x5c2a1e=_0x45f794['schema'],_0x5ed5f4=[_0x49b1d2],_0x582bc3={},_0x426f98={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xd887fc=null;const _0x309559=[0x0];for(let _0x1418ad=0x0;_0x1418ad<_0xd6dc2f['length'];_0x1418ad++)if('elementStart'===_0xd6dc2f[_0x1418ad]['type']){_0xd6dc2f[_0x1418ad]['previousPosition']=_0x45f794['createPositionFromPath'](_0x49b1d2,_0x309559);const _0x461d84=new ut(_0xd6dc2f[_0x1418ad]['item']['name'],_0xd6dc2f[_0x1418ad]['item']['getAttributes']());_0x5ed5f4[0x0]['_appendChild'](_0x461d84),_0x309559['push'](0x0),_0x5ed5f4['unshift'](_0x461d84),_0xd6dc2f[_0x1418ad]['nextPosition']=_0x45f794['createPositionFromPath'](_0x49b1d2,_0x309559);}else'elementEnd'===_0xd6dc2f[_0x1418ad]['type']?(_0x5ed5f4['shift'](),_0xd6dc2f[_0x1418ad]['previousPosition']=_0x45f794['createPositionFromPath'](_0x49b1d2,_0x309559),_0x309559['pop'](),_0x309559[_0x309559['length']-0x1]++,_0xd6dc2f[_0x1418ad]['nextPosition']=_0x45f794['createPositionFromPath'](_0x49b1d2,_0x309559)):(_0xd6dc2f[_0x1418ad]['previousPosition']=_0x45f794['createPositionFromPath'](_0x49b1d2,_0x309559),_0xd887fc?_0xd887fc['_data']+=_0xd6dc2f[_0x1418ad]['item']['data']:_0xd887fc=new wt(_0xd6dc2f[_0x1418ad]['item']['data'],_0xd6dc2f[_0x1418ad]['item']['getAttributes']()),_0xd6dc2f[_0x1418ad+0x1]&&'text'===_0xd6dc2f[_0x1418ad+0x1]['type']&&_0x25c04a(_0xd887fc,_0xd6dc2f[_0x1418ad+0x1]['item'])||(_0x5ed5f4[0x0]['_appendChild'](_0xd887fc),_0xd887fc=null),_0x309559[_0x309559['length']-0x1]+=_0xd6dc2f[_0x1418ad]['item']['offsetSize'],_0xd6dc2f[_0x1418ad]['nextPosition']=_0x45f794['createPositionFromPath'](_0x49b1d2,_0x309559));for(let _0x168d66=0x0;_0x168d66<_0xd6dc2f['length'];_0x168d66++){const _0xad2509=_0xd6dc2f[_0x168d66]['previousPosition'],_0x430bb0=_0xd6dc2f[_0x168d66]['nextPosition'];for(const _0x12824e of _0xd6dc2f[_0x168d66]['markersStart'])_0x278d78['set'](_0x12824e,{'start':_0xad2509,'end':null});_0x324e23('isRemoveSuggestion',_0x168d66,_0xad2509,_0x430bb0),_0x324e23('isAddSuggestion',_0x168d66,_0xad2509,_0x430bb0),_0x324e23('isRemoved',_0x168d66,_0xad2509,_0x430bb0),_0x324e23('isAdded',_0x168d66,_0xad2509,_0x430bb0);for(const _0x5e1006 of _0xd6dc2f[_0x168d66]['markersEnd']){_0x278d78['get'](_0x5e1006)['end']=_0x430bb0;}}for(const [_0x26a6f1,_0x4fc9c8]of _0x278d78){const _0x48746a=this['editor']['model']['createRange'](_0x4fc9c8['start'],_0x4fc9c8['end']);_0x49b1d2['markers']['set'](_0x26a6f1,_0x48746a);}return _0x4ca2e0['sort']((_0x583b2a,_0x3aba42)=>{const _0x2aa293=_0x49b1d2['markers']['get']('revision:'+_0x583b2a['id']),_0x39bf94=_0x49b1d2['markers']['get']('revision:'+_0x3aba42['id']);return _0x2aa293['start']['isBefore'](_0x39bf94['start'])?-0x1:_0x2aa293['start']['isAfter'](_0x39bf94['start'])?0x1:_0x2aa293['end']['isBefore'](_0x39bf94['end'])?-0x1:_0x2aa293['end']['isAfter'](_0x39bf94['end'])?0x1:'add'===_0x583b2a['type']?-0x1:0x1;}),{'root':_0x49b1d2,'changes':_0x4ca2e0};function _0x324e23(_0x13b013,_0x5ff4c,_0x1d02c4,_0x1b31bd){const _0x45913c=!!_0xd6dc2f[_0x5ff4c][_0x13b013],_0x37ad36=_0x45913c?_0xd6dc2f[_0x5ff4c][_0x13b013]['userId']:null,_0x25c9ba=_0x5ff4c===_0xd6dc2f['length']-0x1,_0x28233d=_0x426f98[_0x13b013][0x0],_0x190672=_0x5c2a1e['isObject'](_0xd6dc2f[_0x5ff4c]['item']);!_0x582bc3[_0x13b013]&&_0x45913c?_0x582bc3[_0x13b013]={'start':_0x1d02c4,'tapeItem':_0xd6dc2f[_0x5ff4c],'userId':_0x37ad36,'type':_0x13b013}:_0x582bc3[_0x13b013]&&!_0x45913c?(_0x582bc3[_0x13b013]['end']=_0x1d02c4,_0x41d483(_0x582bc3[_0x13b013]),_0x582bc3[_0x13b013]=null):_0x582bc3[_0x13b013]&&_0x45913c&&_0x582bc3[_0x13b013]['userId']!==_0x37ad36&&(_0x582bc3[_0x13b013]['end']=_0x1d02c4,_0x28233d&&_0x28233d['userId']===_0x582bc3[_0x13b013]['userId']||_0x41d483(_0x582bc3[_0x13b013]),_0x582bc3[_0x13b013]={'start':_0x1d02c4,'tapeItem':_0xd6dc2f[_0x5ff4c],'userId':_0x37ad36,'type':_0x13b013}),_0x582bc3[_0x13b013]&&_0x190672&&('elementStart'!==_0xd6dc2f[_0x5ff4c]['type']||_0x28233d&&_0x28233d['userId']===_0x37ad36||_0x426f98[_0x13b013]['unshift']({'userId':_0x37ad36,'object':_0xd6dc2f[_0x5ff4c]['item'],'change':_0x582bc3[_0x13b013]}),'elementEnd'===_0xd6dc2f[_0x5ff4c]['type']&&_0x28233d&&_0x28233d['object']===_0xd6dc2f[_0x5ff4c]['item']&&(_0x426f98[_0x13b013]['shift'](),_0x582bc3[_0x13b013]=_0x28233d['change'])),_0x582bc3[_0x13b013]&&_0x25c9ba&&(_0x582bc3[_0x13b013]['end']=_0x1b31bd,_0x41d483(_0x582bc3[_0x13b013]),_0x582bc3[_0x13b013]=null);}function _0x41d483({start:_0x4835bf,end:_0x322d55,tapeItem:_0x528039,userId:_0x447446,type:_0x81ea69}){const _0x871843=_0x528039['item'],_0x324e95=_0x45f794['schema']['isBlock'](_0x871843)&&!_0x45f794['schema']['isLimit'](_0x871843),_0x5e67b0=_0x4835bf['nodeAfter']==_0x322d55['parent']&&_0x322d55['isAtStart'];if(_0x324e95&&_0x5e67b0)return;const _0x3b34c1=_0x45f794['createRange'](_0x4835bf,_0x322d55),_0x5ce4b3=_0x24ab77['get'](_0x447446),_0x1ae0a4=new r({'author':_0x5ce4b3,'type':'isAdded'==_0x81ea69||'isAddSuggestion'==_0x81ea69?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x81ea69||'isRemoveSuggestion'==_0x81ea69},'createdAt':new Date(),'rootName':_0x5ca837});_0x4ca2e0['push'](_0x1ae0a4),_0x49b1d2['markers']['set']('revision:'+_0x1ae0a4['id'],_0x3b34c1);}function _0x25c04a(_0x5e1dd5,_0x4e0dd5){const _0x704bd8=_0x5e1dd5['getAttributes'](),_0x1063eb=_0x4e0dd5['getAttributes']();for(const _0x2b502d of _0x704bd8){if(_0x2b502d[0x1]!==_0x4e0dd5['getAttribute'](_0x2b502d[0x0]))return!0x1;_0x1063eb['next']();}return _0x1063eb['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3489ed=>{const _0x4b9b3e=_0x3489ed['markerName']['split'](':')[0x1],_0x4e8cea=this['_getChangeFromId'](_0x4b9b3e);if(!_0x4e8cea)return null;const _0x1cca21='add'==_0x4e8cea['type']?'insertion':'deletion',_0x46dbf6=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1cca21];return _0x4e8cea['data']['isSuggestion']&&_0x46dbf6['push']('ck-suggestion-marker-'+_0x1cca21+'-new'),this['activeChange']==_0x4e8cea&&_0x46dbf6['push']('ck-suggestion-marker--active'),{'classes':_0x46dbf6,'attributes':{'data-change-id':_0x4b9b3e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xdfa6c0=>{_0xdfa6c0['on']('element:pre',(_0x463815,_0xff594e,_0x4be824)=>{const _0x4b0739=_0xff594e['viewItem']['getChild'](0x0);if(!_0x4b0739||!_0x4b0739['is']('element','code'))return;if(!_0x4be824['consumable']['consume'](_0x4b0739,{'attributes':['vid_start','vid_end']}))return;const _0xd9436=_0xff594e['modelRange']['start']['nodeAfter'];_0x4be824['writer']['setAttribute']('vid_start',_0x4b0739['getAttribute']('vid_start'),_0xd9436),_0x4be824['writer']['setAttribute']('vid_end',_0x4b0739['getAttribute']('vid_end'),_0xd9436);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x579103=>{_0x579103['on']('element',(_0x555603,_0x455da9,_0x5b40cb)=>{if(!_0x5b40cb['consumable']['consume'](_0x455da9['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x455da9['modelRange']['isCollapsed'])return;const _0x58c78e=_0x455da9['modelRange']['start']['nodeAfter'];_0x58c78e['hasAttribute']('vid_start')||_0x58c78e['hasAttribute']('vid')||(_0x5b40cb['writer']['setAttribute']('vid_start',_0x455da9['viewItem']['getAttribute']('vid_start'),_0x58c78e),_0x5b40cb['writer']['setAttribute']('vid_end',_0x455da9['viewItem']['getAttribute']('vid_end'),_0x58c78e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x51f534=>_0x51f534['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x82144b,[,_0x19aed6])=>{['vid_start','vid_end','vid']['includes'](_0x19aed6)&&(_0x82144b['return']=!0x0,_0x82144b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5edf0e=>{_0x5edf0e['on']('attribute:vid',(_0x98b2fb,_0x1aadc9,_0x2755c2)=>{if('\x20'!=_0x1aadc9['item']['data']||_0x1aadc9['item']['parent']['maxOffset']>0x1)return;if(!_0x2755c2['consumable']['consume'](_0x1aadc9['item'],_0x98b2fb['name']))return;const _0x1a870f=_0x2755c2['writer'],_0x1f3cc9=_0x2755c2['mapper']['toViewRange'](_0x1aadc9['range']);_0x1a870f['wrap'](_0x1f3cc9,_0x1a870f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x46e476){const _0x4fd933=_0x46e476['plugins']['get']('RevisionViewer');return(_0x321369,_0x5f0df8,_0x242c22)=>{const _0x18f30f=_0x5f0df8['markerName']['split'](':')[0x1],_0x302272=_0x4fd933['_getChangeFromId'](_0x18f30f);if(!_0x302272)return null;const _0x5d2c7d='add'==_0x302272['type']?'split':'merge';if(!_0x242c22['consumable']['test'](_0x5f0df8['markerRange'],_0x321369['name']))return;const _0x14f9cf=_0x5f0df8['markerRange']['getWalker'](),_0x44786c=_0x5f0df8['markerRange']['start'],_0x59c5b8=_0x46e476['model']['schema'];let _0x383c89=null,_0x424e12=null,_0x136710=!0x1,_0x4f0355=!0x1;for(const _0x4bcd61 of _0x14f9cf){const _0x2375ae=_0x4bcd61['item'];_0x136710=_0x136710||_0x59c5b8['isContent'](_0x2375ae);const _0x366807=_0x242c22['mapper']['toViewElement'](_0x2375ae);if(_0x366807&&_0x366807['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4bcd61['type']&&(_0x59c5b8['isBlock'](_0x2375ae)&&!_0x59c5b8['isLimit'](_0x2375ae)&&(_0x2375ae['nextSibling']||_0x44786c['isAtEnd']?_0x383c89&&_0x383c89['parent']==_0x2375ae||(_0x383c89=_0x2375ae,_0x19346c(_0x4bcd61['previousPosition']),_0x4f0355=!0x0):_0x424e12=_0x424e12||_0x4bcd61['previousPosition']));}function _0x19346c(_0x20904e){const _0x298c46=_0x242c22['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d2c7d}),_0x2621b0=_0x242c22['mapper']['toViewPosition'](_0x20904e);_0x302272['data']['isSuggestion']&&_0x242c22['writer']['addClass']('ck-suggestion-marker-'+_0x5d2c7d+'-new',_0x298c46),_0x4fd933['activeChange']==_0x302272&&_0x242c22['writer']['addClass']('ck-suggestion-marker--active',_0x298c46),_0x242c22['writer']['insert'](_0x2621b0,_0x298c46),_0x242c22['mapper']['bindElementToMarker'](_0x298c46,_0x5f0df8['markerName']);}_0x136710||_0x4f0355||!_0x424e12||_0x19346c(_0x424e12);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1e4f7a,_0x5e411b,_0x4b0e38)=>{const _0x46119d=_0x4b0e38['mapper']['markerNameToElements'](_0x5e411b['markerName']);if(_0x46119d){for(const _0x4b4fdc of _0x46119d)(_0x4b4fdc['hasClass']('ck-suggestion-marker-split')||_0x4b4fdc['hasClass']('ck-suggestion-marker-merge'))&&(_0x4b0e38['mapper']['unbindElementFromMarkerName'](_0x4b4fdc,_0x5e411b['markerName']),_0x4b0e38['writer']['remove'](_0x4b4fdc));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x7e4a42,_0x10b71a,_0x35ddbe)=>{const _0x47f184=_0x10b71a['markerName']['split'](':')[0x1],_0x411c9e=this['_getChangeFromId'](_0x47f184);if(!_0x411c9e)return null;const _0x53fe28='add'==_0x411c9e['type']?'split':'merge';if(_0x35ddbe['consumable']['test'](_0x10b71a['markerRange'],_0x7e4a42['name']))for(const _0x13d689 of _0x10b71a['markerRange']['getItems']()){if(!_0x13d689['is']('element','softBreak'))continue;const _0x1d3da2=_0x35ddbe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x53fe28}),_0x5efe9f=_0x35ddbe['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x13d689));_0x411c9e['data']['isSuggestion']&&_0x35ddbe['writer']['addClass']('ck-suggestion-marker-'+_0x53fe28+'-new',_0x1d3da2),this['activeChange']==_0x411c9e&&_0x35ddbe['writer']['addClass']('ck-suggestion-marker--active',_0x1d3da2),_0x35ddbe['writer']['insert'](_0x5efe9f,_0x1d3da2),_0x35ddbe['mapper']['bindElementToMarker'](_0x1d3da2,_0x10b71a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xee2e30=>{for(const _0xc5d4a9 of this['editor']['model']['document']['getRootNames']()){const _0x396b37=this['editor']['model']['document']['getRoot'](_0xc5d4a9),_0x2d3509=this['editor']['editing']['view']['document']['getRoot'](_0xc5d4a9);if(_0x2d3509){const _0x59b9d2=_0x396b37['getAttribute']('revisionHistoryAttachChange');if(_0xee2e30['removeAttribute']('data-change-id',_0x2d3509),_0xee2e30['removeClass']('ck-revision-history-root-add',_0x2d3509),_0xee2e30['removeClass']('ck-revision-history-root-remove',_0x2d3509),_0xee2e30['removeClass']('ck-revision-history-root--active',_0x2d3509),_0x59b9d2){const _0x686435=this['_getChangeFromId'](_0x59b9d2);if(!_0x686435)return null;_0xee2e30['setAttribute']('data-change-id',_0x59b9d2,_0x2d3509),_0xee2e30['addClass']('ck-revision-history-root-'+_0x686435['type'],_0x2d3509),this['activeChange']==_0x686435&&_0xee2e30['addClass']('ck-revision-history-root--active',_0x2d3509);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x13fced=>'revision-comment:'+_0x13fced,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5c7762=>'revision-suggestion:'+_0x5c7762,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x342bc5=>({'name':'suggestion:'+_0x342bc5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3c9d2c=>{const _0x258a3e=_0x3c9d2c['markerName']['split'](':')[0x1];return'insertion'!=_0x258a3e&&'deletion'!=_0x258a3e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x258a3e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x31d57c,_0x1da611,_0x260e34)=>{const _0x5ebb43=_0x260e34['mapper']['markerNameToElements'](_0x1da611['markerName']);if(_0x5ebb43){for(const _0x51f3c5 of _0x5ebb43)_0x51f3c5['is']('uiElement')&&(_0x260e34['mapper']['unbindElementFromMarkerName'](_0x51f3c5,_0x1da611['markerName']),_0x260e34['writer']['remove'](_0x51f3c5));}},{'priority':'high'});}['_getChangeFromId'](_0x37da5a){return this['_changeIdToChange']['get'](_0x37da5a);}['_getViewForChange'](_0x1c5f7f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1c5f7f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2c1488,_0x269c83,_0x680832,_0x199cae)=>{_0x199cae&&this['_balloon']['remove'](_0x199cae),_0x680832&&(this['_balloon']['add']({'view':_0x680832,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1d0982=this['editor']['editing'],_0x5d0253=this['_getChangeFromId'](_0x680832['changeId']);let _0x4317f1;if(_0x5d0253['data']['isOnRoot']){const _0x325510=_0x1d0982['view']['getDomRoot'](_0x5d0253['rootName']);_0x4317f1=Array['from'](_0x325510['getClientRects']());}else{const _0x37262d=this['editor']['model']['markers']['get']('revision:'+_0x680832['changeId']);_0x4317f1=Array['from'](_0x1d0982['mapper']['markerNameToElements'](_0x37262d['name']))['map'](_0x49512d=>_0x1d0982['view']['domConverter']['mapViewToDom'](_0x49512d))['map'](_0xc277fa=>Array['from'](_0xc277fa['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4317f1[0x0];return _0x4317f1['find'](_0x19d745=>_0x19d745['top']-0x3<=this['_activeViewTarget']['y']&&_0x19d745['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x19d745['left']-0x3<=this['_activeViewTarget']['x']&&_0x19d745['right']+0x3>=this['_activeViewTarget']['x'])||_0x4317f1[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x30684e,_0x710a38,_0x1b46e3,_0x444d5b)=>{this['activeView']=_0x1b46e3?this['_getViewForChange'](_0x1b46e3):null,this['editor']['model']['change'](()=>{const _0x20070b=this['editor']['editing'];_0x444d5b&&(_0x444d5b['data']['isOnRoot']?_0x20070b['view']['change'](_0x4b2073=>{_0x4b2073['removeClass']('ck-revision-history-root--active',_0x20070b['view']['document']['getRoot'](_0x444d5b['rootName']));}):_0x20070b['reconvertMarker']('revision:'+_0x444d5b['id'])),_0x1b46e3&&(_0x1b46e3['data']['isOnRoot']?_0x20070b['view']['change'](_0xf64b9=>{_0xf64b9['addClass']('ck-revision-history-root--active',_0x20070b['view']['document']['getRoot'](_0x1b46e3['rootName']));}):_0x20070b['reconvertMarker']('revision:'+_0x1b46e3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x309d69,_0x184ef3)=>{if(this['activeChange'])return;const _0x3138ce=this['_findChangeIdFromDomTarget'](_0x184ef3['target']),_0xd020ea=this['_changeIdToChange']['get'](_0x3138ce);_0xd020ea?(this['_activeViewTarget']={'x':_0x184ef3['domEvent']['x'],'y':_0x184ef3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xd020ea)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2caf01,_0x1b86ac)=>{const _0x52025a=this['_findChangeIdFromDomTarget'](_0x1b86ac['target']),_0xb92ac1=this['_changeIdToChange']['get'](_0x52025a);_0xb92ac1?(this['_activeViewTarget']={'x':_0x1b86ac['domEvent']['x'],'y':_0x1b86ac['domEvent']['y']},_0xb92ac1===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xb92ac1):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1f2ecc){do{const _0x3edd02=_0x1f2ecc['getAttribute']('data-change-id');if(_0x3edd02)return _0x3edd02;_0x1f2ecc=_0x1f2ecc['parent'];}while(_0x1f2ecc);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xe66017=>{for(const _0x22afa9 of this['editor']['model']['markers'])_0xe66017['removeMarker'](_0x22afa9);});}}function Z(_0x37ecde,_0x3d5a84){return(_0x101430,_0xb1bcab,_0x262d5e)=>{if(!_0x262d5e['consumable']['test'](_0xb1bcab['markerRange'],_0x101430['name']))return;const _0x2d340b=_0xb1bcab['markerRange']['getWalker'](),_0x20f4cd=_0xb1bcab['markerRange']['start'],_0x2bb222=_0x37ecde['model']['schema'];let _0x577d26=null,_0x1841da=null,_0x5390c5=!0x1,_0x3086c5=!0x1;for(const _0xd0de24 of _0x2d340b){const _0x2f2684=_0xd0de24['item'];_0x5390c5=_0x5390c5||_0x2bb222['isContent'](_0x2f2684);const _0x1341c2=_0x262d5e['mapper']['toViewElement'](_0x2f2684);if(_0x1341c2&&_0x1341c2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd0de24['type']&&(_0x2bb222['isBlock'](_0x2f2684)&&!_0x2bb222['isLimit'](_0x2f2684)&&(_0x2f2684['nextSibling']||_0x20f4cd['isAtEnd']?_0x577d26&&_0x577d26['parent']==_0x2f2684||(_0x577d26=_0x2f2684,_0x2a014b(_0xd0de24['previousPosition']),_0x3086c5=!0x0):_0x1841da=_0x1841da||_0xd0de24['previousPosition']));}function _0x2a014b(_0x2d52a1){const _0x2c6964=_0x262d5e['mapper']['toViewPosition'](_0x2d52a1),_0x1cf30c=_0x262d5e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3d5a84});_0x262d5e['writer']['insert'](_0x2c6964,_0x1cf30c),_0x262d5e['mapper']['bindElementToMarker'](_0x1cf30c,_0xb1bcab['markerName']);}_0x5390c5||_0x3086c5||!_0x1841da||_0x2a014b(_0x1841da);};}class _t extends _0x37c248{constructor(_0x48a617){super(_0x48a617);const _0x2bf6b4=_0x48a617['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x2bf6b4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2bf6b4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4441ad=this['editor'],_0x442982=_0x4441ad['plugins']['get'](d),_0x356822=_0x442982['isReady']?_0x442982['diff']['newRevisionId']:null;_0x4441ad['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x356822);}['refresh'](){const {isReady:_0x274644,isEnabled:_0xa3f090,repository:_0x3f3dc8,diff:_0x52f840}=this['editor']['plugins']['get'](d),_0x3f17aa=_0x52f840&&_0x3f3dc8['getLaterVisibleRevision'](_0x52f840['newRevisionId']);this['isEnabled']=_0x274644&&_0xa3f090&&Boolean(_0x3f17aa);}}class yt extends _0x37c248{['_step'];constructor(_0x49e334,{direction:_0x112016}){super(_0x49e334);const _0x18cbd4=_0x49e334['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x112016?0x1:-0x1,this['listenTo'](_0x18cbd4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x18cbd4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x18cbd4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5a6312=this['editor'],_0x332013=_0x5a6312['plugins']['get'](d),{isNavigationMode:_0x2f29b5,currentChangeNumber:_0x32b944}=_0x332013;let _0x1610b1;if(_0x332013['activeChange']=_0x2f29b5?_0x332013['diff']['changes']['get'](_0x32b944+this['_step']):_0x332013['diff']['changes']['first'],_0x332013['activeChange']['data']['isOnRoot'])_0x1610b1=_0x5a6312['editing']['view']['getDomRoot'](_0x332013['activeChange']['rootName']);else{const _0x2e3e6d=_0x5a6312['model']['markers']['get']('revision:'+_0x332013['activeChange']['id']);_0x1610b1=_0x2cb365(_0x5a6312['editing'],_0x2e3e6d);}_0x2c4baa({'target':_0x1610b1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x33b210,currentChangeNumber:_0x33f8b5,numberOfChanges:_0x3008ce,isReady:_0x23c7e3,isEnabled:_0x77caac}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x77caac&&_0x23c7e3&&_0x3008ce)&&(!_0x33b210||(0x1===this['_step']?_0x33f8b5<_0x3008ce-0x1:_0x33f8b5>0x0));}}class bi extends _0x542a19{constructor(_0x248084){super(_0x248084);const _0x5ad102=this['bindTemplate'],_0x2940d5=new _0x447f48(_0x248084),_0x444706=new _0x447f48(_0x248084);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',(_0x2b182e,_0x23cbc9)=>_0x2b182e&&_0x23cbc9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2b1755,_0x2115b7,_0x49b651,_0x2e46d2)=>{if(!_0x2b1755)return m(_0x248084,'Loading...');if(!_0x49b651)return m(_0x248084,'No\x20changes');const _0x258200=m(_0x248084,'NUMBER_OF_CHANGES',_0x49b651);return _0x2e46d2?m(_0x248084,'X_OF_Y_CHANGES',[_0x2115b7+0x1,_0x49b651]):_0x258200;}),_0x2940d5['set']({'label':m(_0x248084,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x373d05}),_0x444706['set']({'label':m(_0x248084,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4bc14d}),_0x2940d5['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x444706['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2940d5['on']('execute',()=>this['fire']('execute','backward')),_0x444706['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',_0x5ad102['if']('_isStatusLabelVisible','ck-hidden',_0xdfdf90=>!_0xdfdf90)]},'children':[{'text':_0x5ad102['to']('isNavigationMode',_0x223495=>_0x223495?m(_0x248084,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x248084,'Total')+':\x20')}]},{'text':_0x5ad102['to']('_statusText')}]},new _0x381c21(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2940d5,_0x444706]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x14ecc6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x916569=this['editor']['editing']['view'];_0x916569['change'](_0x139695=>{for(const _0x367961 of _0x916569['document']['roots'])_0x139695['addClass'](ie,_0x367961);});}['hide'](){const _0x3743d1=this['editor']['editing']['view'];_0x3743d1['change'](_0x21524c=>{for(const _0x48cd04 of _0x3743d1['document']['roots'])_0x21524c['removeClass'](ie,_0x48cd04);});}}class w extends _0x14ecc6{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x190869=this['editor'],_0x427f74=_0x190869['plugins']['get'](d),_0x1f9ad1=_0x190869['plugins']['get'](te);_0x190869['ui']['componentFactory']['add']('exitToEditing',_0x15b0bf=>{const _0x1cf8f1=new _0x447f48(_0x15b0bf);return _0x1cf8f1['set']({'label':m(_0x15b0bf,'Back\x20to\x20editing'),'icon':_0x113a8c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1cf8f1,'execute',()=>{_0x190869['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1cf8f1;}),_0x190869['ui']['componentFactory']['add']('restoreRevision',_0x2eeaa0=>{const _0x5b3c39=new _0x447f48(_0x2eeaa0);return _0x5b3c39['set']({'label':m(_0x2eeaa0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5b3c39['bind']('isEnabled')['to'](_0x190869['commands']['get']('restoreRevision')),this['listenTo'](_0x5b3c39,'execute',()=>_0x190869['execute']('restoreRevision')),_0x5b3c39;}),_0x190869['ui']['componentFactory']['add']('changesNavigation',_0x5322ec=>{const _0x45eb70=new bi(_0x5322ec),_0x42a135=_0x190869['commands']['get']('showPreviousChange'),_0x5e1fe3=_0x190869['commands']['get']('showNextChange');return _0x45eb70['bind']('isBackwardNavigationEnabled')['to'](_0x42a135,'isEnabled'),_0x45eb70['bind']('isForwardNavigationEnabled')['to'](_0x5e1fe3,'isEnabled'),_0x45eb70['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x427f74),this['listenTo'](_0x45eb70,'execute',(_0x5aa544,_0x250848)=>{_0x190869['execute']('forward'===_0x250848?'showNextChange':'showPreviousChange');}),_0x45eb70;}),_0x1f9ad1['show'](),_0x427f74['on']('change:isReady',(_0x43af2d,_0xa45f2e,_0x371c73)=>{_0x371c73?_0x1f9ad1['hide']():_0x1f9ad1['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x46dce8,_0x20c599){super(_0x46dce8,_0x20c599);const _0xe15702=this['bindTemplate'];this['set']({'label':m(_0x46dce8,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x46dce8,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xe15702['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x21dd0a=this['fieldView']['element'];this['_tooltipString']=_0x21dd0a['scrollWidth']>_0x21dd0a['clientWidth']&&_0x21dd0a['value']||'';}}class oi extends _0x542a19{constructor(_0x8d5c4c,_0x7bb4d5,_0x4a901c){super(_0x8d5c4c);const _0x700867=new _0x532fb6();_0x700867['set']({'content':_0x87f370,'viewBox':'0\x200\x2011\x2010'});const _0x429f3b=['ck','ck-revision-history-sidebar__revision-author'];_0x4a901c&&_0x429f3b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2c2545=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x8d5c4c,_0x4a901c?'Revision\x20creator':'Revision\x20author')},'children':[_0x700867,_0x7bb4d5['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x429f3b},'children':_0x2c2545});}}function ni(_0x3f29e6,_0x1adae9){const _0x45dc7d=_0x3f29e6['bindTemplate'],_0x30f35b=_0x3f29e6['locale'],_0x18e0aa=_0x5c4d53(_0x30f35b);_0x18e0aa['panelPosition']='sw';const _0x2010a9=function(_0x5cf602,_0x582e33){const _0x2a5e3f=function(_0x541857,_0x27b928){const _0x4dc73f=_0x541857['locale'],_0x5e4353={'Compare\x20against\x20selected':m(_0x4dc73f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4dc73f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4dc73f,'Restore\x20this\x20revision')};return _0x27b928['map'](_0x3bb899=>{const _0x637787=_0x5e4353[_0x3bb899['name']];return _0x637787&&_0x637787!==_0x3bb899['name']&&(_0x3bb899['name']=_0x637787),_0x3bb899;});}(_0x5cf602,_0x582e33),_0x11e47b=new _0x40c487();for(const _0x49feb0 of _0x2a5e3f){const _0x4ab6c2={'type':'button','model':new to({'label':_0x49feb0['name'],'class':_0x49feb0['class'],'withText':!0x0,'role':'menuitem','_action':_0x49feb0['action']})};_0x4ab6c2['model']['bind']('isEnabled')['to'](_0x5cf602,'isActionsDropdownOpen',_0x43e3bc=>'function'!=typeof _0x49feb0['isEnabled']||(!_0x43e3bc||_0x49feb0['isEnabled'](_0x5cf602))),_0x11e47b['add'](_0x4ab6c2);}return _0x11e47b;}(_0x3f29e6,_0x1adae9);return _0x3f29e6['bind']('isActionsDropdownOpen')['to'](_0x18e0aa,'isOpen'),_0x18e0aa['buttonView']['set']({'label':m(_0x30f35b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x223afb}),_0x18e0aa['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x45dc7d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x45dc7d['to'](_0x13222c=>_0x13222c['stopPropagation']())}}),_0x18e0aa['on']('execute',_0x454853=>{_0x3f29e6['isReady']&&'function'==typeof _0x454853['source']['_action']&&_0x454853['source']['_action'](_0x3f29e6);}),_0x3e4a0a(_0x18e0aa,_0x2010a9,{'role':'menu'}),_0x18e0aa['listenTo'](_0x3f29e6,'change:isActionsDropdownOpen',(_0xce387d,_0x4f315a,_0x2b24a7)=>{if(_0x2b24a7)for(const _0x2d032d of _0x18e0aa['listView']['items']){const _0x3daef1=_0x2d032d['children']['first'],_0x4f8f3c=_0x1adae9['find'](_0x52c166=>_0x52c166['action']===_0x3daef1['_action'])['isVisible'];_0x2d032d['isVisible']=void 0x0===_0x4f8f3c||_0x4f8f3c(_0x3f29e6);}}),_0x18e0aa;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x3db7df(_0x542a19){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x12784d,_0x18146a,_0x52e4dd,_0x4661df){super(_0x12784d);const _0x2a9075=this['bindTemplate'],_0xd36b52=function(_0x1228c6,_0x3b6e07){const _0xac8835=Array['from'](_0x3b6e07['authors'])['filter'](_0x354e00=>_0x354e00!=_0x3b6e07['creator']);return _0x3b6e07['creator']&&_0xac8835['unshift'](_0x3b6e07['creator']),_0xac8835['map'](_0x1d77de=>new oi(_0x1228c6,_0x1d77de,_0x1d77de==_0x3b6e07['creator']));}(_0x12784d,_0x18146a);this['id']=_0x18146a['id'],this['_revision']=_0x18146a,this['_requireRevisionName']=_0x4661df,this['bind']('name','createdAt')['to'](_0x18146a),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1de698=>{return _0x446e67=_0x12784d['uiLanguage'],(_0x164f9d=_0x1de698)['toLocaleDateString'](_0x446e67,{'month':'long','day':'numeric'})+',\x20'+_0x164f9d['toLocaleTimeString'](_0x446e67,{'hour':'numeric','minute':'numeric'});var _0x446e67,_0x164f9d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x12784d,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5a52cb=>_0x5a52cb||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2ec84c,_0x1e63f4)=>_0x2ec84c&&_0x1e63f4),this['revisionActionsView']=_0x52e4dd&&_0x52e4dd['length']?ni(this,_0x52e4dd):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2a9075['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2a9075['if']('isEnabled','ck-disabled',_0x47ebe4=>!_0x47ebe4),_0x2a9075['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2a9075['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2a9075['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':_0x2a9075['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':_0xd36b52}]},this['revisionActionsView']],'on':{'click':_0x2a9075['to'](_0x5ad7d6=>{_0x5ad7d6['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x56f8ce=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x56f8ce,'change',()=>{this['_requireRevisionName']&&!_0x56f8ce['value']||this['fire']('setName',{'id':this['id'],'name':_0x56f8ce['value']}),_0x56f8ce['value']||(_0x56f8ce['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(_0x510697,_0x4f0976){const _0x5ed869=_0x136d92['fromJSDate'](_0x510697)['setLocale'](_0x4f0976),_0x34ec40=_0x136d92['local'](),_0x717532=_0x34ec40['minus']({'days':0x1})['startOf']('day');let _0x2c9549,_0x912301;return _0x5ed869['hasSame'](_0x34ec40,'day')?(_0x2c9549=_0x5ed869['startOf']('day')['toJSDate'](),_0x912301=_0x5ed869['toRelativeCalendar']()):_0x5ed869['hasSame'](_0x717532,'day')?(_0x2c9549=_0x717532['toJSDate'](),_0x912301=_0x5ed869['toRelativeCalendar']()):_0x5ed869['hasSame'](_0x34ec40,'week')?(_0x2c9549=_0x5ed869['startOf']('week')['toJSDate'](),_0x912301=_0x5ed869['weekdayLong']||''):_0x5ed869['hasSame'](_0x34ec40,'year')?(_0x2c9549=_0x5ed869['startOf']('month')['toJSDate'](),_0x912301=_0x5ed869['monthLong']||''):(_0x2c9549=_0x5ed869['startOf']('year')['toJSDate'](),_0x912301=String(_0x5ed869['year'])),{'startDate':_0x2c9549,'localizedPeriodName':_0x912301};}class mi extends _0x542a19{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x535012,_0x4edadb,_0xd205d,_0x1ba8cc){super(_0x535012);const _0x2d8ad8=vi(_0x4edadb,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4edadb,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xd205d,this['_requireRevisionName']=_0x1ba8cc,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':_0x2d8ad8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x27db17){const _0x1e0b05=new ai(this['locale'],_0x27db17,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1e0b05);}['removeRevision'](_0x160500){const _0x22ec9b=this['revisionViews']['find'](_0x348e8b=>_0x348e8b['id']===_0x160500['id']);this['revisionViews']['remove'](_0x22ec9b);}}class is extends _0x542a19{constructor(_0x2ad083){super(_0x2ad083);const _0x5902bc=new _0x532fb6();_0x5902bc['content']=_0x421696,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5902bc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x2ad083,'Revision\x20history')]}]});}}class di extends _0x542a19{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x520136,_0xfdb5b,_0x4727ff,_0x5bcb55){super(_0x520136);const _0x396ff5=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xfdb5b,this['_revisionActions']=_0x4727ff,this['_requireRevisionName']=_0x5bcb55,this['on']('select',(_0x525eaa,_0x580d0c)=>{this['fire']('revisionSelected',_0x580d0c);}),this['on']('setName',(_0x49abcc,_0x2bc9d5)=>{this['fire']('revisionSetName',_0x2bc9d5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new is(_0x520136),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x396ff5['if']('isEnabled','ck-disabled',_0xe06c7e=>!_0xe06c7e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x39276f of this['_revisions'])this['_addRevision'](_0x39276f);this['_revisions']['on']('add',(_0x1b0725,_0x26585c)=>{this['_addRevision'](_0x26585c);}),this['_revisions']['on']('remove',(_0x310946,_0x2cd8d2)=>{this['_removeRevision'](_0x2cd8d2);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x16acfc=>_0x16acfc['revisionViews']['map'](_0x59353f=>_0x59353f))['flat']();}['selectRevision'](_0x27bb4e){for(const _0x468916 of this['revisionViews'])_0x27bb4e&&_0x27bb4e['id']===_0x468916['id']?_0x468916['select']():_0x468916['deselect']();}['highlightRevisions'](_0x45ac5f){for(const _0x45942c of this['revisionViews'])_0x45ac5f['some'](({id:_0x2aed6d})=>_0x2aed6d===_0x45942c['id'])?_0x45942c['highlight']():_0x45942c['unhighlight']();}['_addRevision'](_0x2a3078){const _0x56e32f=vi(_0x2a3078['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x37298d=this['timePeriodViews']['get'](0x0);_0x37298d&&_0x37298d['startDate']['getTime']()===_0x56e32f['getTime']()||(_0x37298d=new mi(this['locale'],_0x56e32f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x37298d)),_0x37298d['addRevision'](_0x2a3078);}['_removeRevision'](_0x40f30f){const _0x532f9b=vi(_0x40f30f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x532f9b)['removeRevision'](_0x40f30f);}['_getTimePeriodViewByStartDate'](_0x30867e){return this['timePeriodViews']['find'](_0x25f8ad=>_0x25f8ad['startDate']['getTime']()===_0x30867e['getTime']());}}class g extends _0x14ecc6{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x56f274){super(_0x56f274),this['_revisionViewer']=_0x56f274['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4ecccc=this['_revisionsRepository']['_revisions'],_0x50cbc8=this['_createRevisionActions'](),_0x375e9c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x4ecccc,_0x50cbc8,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',(_0x32f05f,_0x4aca0a)=>{_0x4aca0a['revisionViews']['on']('add',(_0x5c266e,_0x549498)=>{_0x549498['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)),_0x375e9c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3c0f4f=this['_revisionsRepository']['getRevision'](0x0);if(_0x3c0f4f){const _0x15b0fa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3c0f4f['id']);this['_revisionViewer']['compare'](_0x3c0f4f,_0x15b0fa);}}['_handleRevisionSelected'](_0x2f6dd0,_0x3cd7d4){const _0x1ec2bc=this['_revisionsRepository']['getRevision'](_0x3cd7d4['id']),_0x470160=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1ec2bc['id']);this['_revisionViewer']['compare'](_0x1ec2bc,_0x470160);}['_handleRevisionSetName'](_0x421efd,_0x4ec1a7){this['_revisionsRepository']['getRevision'](_0x4ec1a7['id'])['setName'](_0x4ec1a7['name']);}['_handleDiffChange'](_0x2f8453,_0x55f1af,_0x9c5555){const _0x1dccee=this['_revisionsRepository']['getRevisionsInDiff'](_0x9c5555);_0x1dccee['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1dccee),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1dccee[0x0]));}['_createRevisionActions'](){const _0x35a85e=this['editor'],_0x192a68=g['availableRevisionActions'],_0x27b446=_0x35a85e['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x27b446['length'])return _0x27b446['map'](_0x1f857d=>{const _0x4840f3='string'==typeof _0x1f857d?Object['assign']({},_0x192a68[_0x1f857d]):_0x1f857d;return _0x4840f3['action']=_0x4840f3['action']['bind'](this,_0x35a85e),_0x4840f3['isVisible']&&(_0x4840f3['isVisible']=_0x4840f3['isVisible']['bind'](this,_0x35a85e)),_0x4840f3;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x32e9d7},_0x58578d)=>{const _0x55927b=_0x32e9d7['get'](d),_0x5de26b=_0x55927b['repository'];let _0x3e52cb=_0x55927b['diff']['newRevisionId'],_0x3b090c=_0x58578d['id'];_0x5de26b['getIndex'](_0x3e52cb)>_0x5de26b['getIndex'](_0x3b090c)&&([_0x3e52cb,_0x3b090c]=[_0x3b090c,_0x3e52cb]),_0x55927b['compare'](_0x3e52cb,_0x3b090c);},'isVisible':({plugins:_0x399ce4},_0x4ecd02)=>{const _0x12a32a=_0x399ce4['get'](d);return!(_0x12a32a['repository']['getRevisionsInDiff'](_0x12a32a['diff'])['length']>0x2)&&!_0x4ecd02['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x54be8c,{id:_0x45c4f4})=>{_0x54be8c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x45c4f4);},'isVisible':({plugins:_0x1b5a73},_0x1a632b)=>!!_0x1b5a73['get'](d)['repository']['getLaterVisibleRevision'](_0x1a632b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1e6d63},{id:_0x3a37ad,revisionNameView:_0x58a519})=>{const _0x43ba67=_0x1e6d63['get'](d),_0x10c5d4=_0x43ba67['repository']['getEarlierVisibleRevision'](_0x3a37ad);_0x43ba67['compare'](_0x3a37ad,_0x10c5d4),_0x58a519['focus'](),_0x58a519['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xe49e04,_0x5553a6){super(_0xe49e04),this['_view']=_0x5553a6,this['_toolbarConfig']=ot(_0xe49e04['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x5db5ad){const _0x48f214=this['editor'],_0x213978=this['view'],_0x33e2a4=_0x48f214['editing']['view'],_0x43e23c=_0x213978['editable'],_0x281627=_0x33e2a4['document']['getRoot']();_0x43e23c['name']=_0x281627['rootName'],_0x213978['render']();const _0xbf4b42=_0x43e23c['element'];this['setEditableElement'](_0x43e23c['name'],_0xbf4b42),_0x213978['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x33e2a4['attachDomRoot'](_0xbf4b42),this['_elementReplacer']['replace'](_0x5db5ad,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4d736d=this['view'],_0x596e65=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x596e65['detachDomRoot'](_0x4d736d['editable']['name']),_0x4d736d['destroy']();}['_initToolbar'](){const _0x325888=this['view'];_0x325888['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x325888['stickyPanel']['limiterElement']=_0x325888['element'],_0x325888['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3ab9b8})=>_0x3ab9b8),_0x325888['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x325888['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3a9df3,_0x4cb2cb,_0x107a39={}){super(_0x3a9df3),this['stickyPanel']=new lt(_0x3a9df3),this['toolbar']=new nt(_0x3a9df3,{'shouldGroupWhenFull':_0x107a39['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x3a9df3,_0x4cb2cb);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x421474,_0x30f9f9){super(_0x30f9f9),this['sourceElement']=_0x421474,this['model']['document']['createRoot']();const _0x90164f=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x90164f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x16e8b9,_0x21eee8){const _0x11859d=new this(_0x16e8b9,_0x21eee8);return await _0x11859d['initPlugins'](),await _0x11859d['ui']['init'](_0x16e8b9),await _0x11859d['data']['init'](_0x11859d['config']['get']('initialData')||''),_0x11859d['fire']('ready'),_0x11859d;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x13fc58{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1129bb){function _0x56959c(_0x66edc8){return _0x66edc8['map'](_0x28ce63=>String['fromCharCode'](_0x28ce63))['join']('');}super(_0x1129bb),this['result']='end',_0x1129bb[_0x56959c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56959c([0x76,0x69,0x65,0x77])][_0x56959c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56959c([0x61,0x75,0x74,0x6f]),_0x1129bb[_0x56959c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x56959c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56959c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x56959c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x56959c([0x6f,0x6b])});}}class k extends _0x13fc58{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x90da5c){if(super(_0x90da5c),!this['editor']['config']['get']('revisionHistory'))throw new _0x5ca947('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x14c63d=>this['_showRevisionViewer']({..._0x14c63d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3655d3=>this['_closeRevisionViewer'](_0x3655d3)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x31bca8=>this['_restoreRevision'](_0x31bca8)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x91d605){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x91d605;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5074d4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5074d4);}['getRevision'](_0x4152eb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4152eb);}['getRevisions'](_0x46df50){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x46df50||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x10fc82=this['editor'],_0x1b04e5=_0x227153(_0x10fc82,p),_0x4d3856=_0x10fc82['plugins']['get']('RevisionTracker'),_0x22ce9f=_0x10fc82['plugins']['get']('Users')['users'];return _0x1b04e5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1b04e5['lazyRoots'],(_0x1b04e5['plugins']['push'](Rt,d,w,class extends _0x13fc58{static get['requires'](){return[d,'Users'];}['init'](){const _0x343816=this['editor']['plugins']['get']('Users');for(const _0x5069d7 of _0x22ce9f)_0x5069d7['isAnonymous']||_0x343816['getUser'](_0x5069d7['id'])||_0x343816['addUser'](_0x5069d7);const _0xd83087=_0x4d3856['repository']['getRevisions']();let _0x2b93a9=null;const _0x3ee48f=this['editor']['plugins']['get']('RevisionViewer');_0x3ee48f['adapter']=_0x4d3856['adapter'],_0x3ee48f['bind']('isEnabled')['to'](_0x4d3856),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x10fc82,'isReadOnly',_0x49193d=>!_0x49193d);for(const _0x3cd26a of _0xd83087){const _0x2569d0=null===_0x3cd26a['creator'];if(_0x2569d0&&_0x3cd26a['toVersion']===_0x3cd26a['fromVersion'])continue;const _0xd6fe46=_0x3cd26a['toJSON']();_0x3ee48f['addRevisionData'](_0xd6fe46,(_0x544a85,_0x1d8526,_0x2d0c9f)=>{if(_0x2569d0){if(_0x2b93a9)_0x2b93a9['_update'](_0x544a85,_0x1d8526);else{if(!_0x1d8526){const _0x2d3066=_0x2d0c9f['toJSON']();_0x2d3066['id']=_0x1e756b(),_0x4d3856['saveRevision'](_0x2d3066,_0x2d0c9f['toVersion'])['then'](_0x1d733b=>{_0x2b93a9=_0x1d733b;});}}}else _0x3cd26a['_update'](_0x544a85,_0x1d8526);});}}},g),_0x1b04e5);}['_enhanceShowRevisionViewerCallback'](){const _0x28cf41=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xac0103=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x340155=this['editor']['plugins']['get']('Autosave');await _0x340155['save']();}else await _0xac0103['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x451610=this['editor']['plugins']['get']('Dialog');_0x451610['isOpen']&&_0x451610['hide']();}const _0x207635=this['_getRevisionViewerEditorConfig']();return _0x28cf41(_0x207635)['then'](_0x339b0d=>{return(this['_viewerEditor']=_0x339b0d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x339b0d;})['catch'](_0x48edf9=>(console['error'](_0x48edf9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1885a1=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1885a1(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x441b29=this['editor']['plugins']['get']('Annotations');_0x441b29['refreshVisibility'](),_0x441b29['refreshPositioning']();}})));}['_showRevisionViewer'](_0x34b2ec){const _0x185c8e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x278a6d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x387598=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x387598,_0x34b2ec)['then'](_0xf93ae7=>(_0x278a6d['style']['display']='block',_0x185c8e['style']['display']='none',_0xf93ae7));}['_closeRevisionViewer'](_0x136fe3){const _0x19461d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x19461d['style']['display']='',_0x136fe3['destroy']();}async['_restoreRevision'](_0x29e2fa){const _0x38b4c0=this['editor'],_0x4b27dd=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5406aa=_0x38b4c0['plugins']['get']('RevisionTracker'),_0xe6164b=_0x4b27dd['repository']['getRevision'](_0x29e2fa);let _0x28f273,_0x1b81d0,_0x3423fb;try{_0x28f273=await _0x4b27dd['getRevisionData'](_0xe6164b),_0x1b81d0=await _0x4b27dd['getRevisionRootsAttributes'](_0xe6164b);}catch(_0xce422b){return void console['error'](_0xce422b);}_0x38b4c0['model']['change'](_0x2a0295=>{for(const _0xcce6f9 of Array['from'](_0x38b4c0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2a0295['removeMarker'](_0xcce6f9);}),_0x4b27dd['isReady']=!0x1,_0x38b4c0['model']['enqueueChange'](_0x1b2f80=>{_0x1b2f80['setSelection'](null),_0x1b2f80['removeSelectionAttribute'](_0x38b4c0['model']['document']['selection']['getAttributeKeys']());const _0x1ede0c=Object['keys'](_0x28f273);for(const _0x19e268 of _0x38b4c0['model']['document']['roots'])'$graveyard'!=_0x19e268['rootName']&&_0x19e268['isAttached']()&&!_0x1ede0c['includes'](_0x19e268['rootName'])&&_0x1b2f80['detachRoot'](_0x19e268);for(const _0x2edf9f of _0x1ede0c){let _0x3d1a67=_0x38b4c0['model']['document']['getRoot'](_0x2edf9f);_0x3d1a67&&_0x3d1a67['isAttached']()||(_0x3d1a67=_0x1b2f80['addRoot'](_0x2edf9f));const _0x1f8461=_0x1b81d0[_0x2edf9f],_0x4505cc=Object['keys'](_0x1f8461),_0x4dafda=_0x28f273[_0x2edf9f];for(const _0x31e4c1 of _0x3d1a67['getAttributeKeys']())_0x4505cc['includes'](_0x31e4c1)||_0x1b2f80['removeAttribute'](_0x31e4c1,_0x3d1a67);for(const _0x153471 of _0x4505cc)_0x1b2f80['setAttribute'](_0x153471,_0x1b81d0[_0x2edf9f][_0x153471],_0x3d1a67);_0x1b2f80['remove'](_0x1b2f80['createRangeIn'](_0x3d1a67)),_0x1b2f80['insert'](_0x38b4c0['data']['parse'](_0x4dafda,_0x3d1a67),_0x3d1a67,0x0);}});const _0x180b30=m(_0x38b4c0['locale'],'Restored');if(_0xe6164b['name'])_0x3423fb=-0x1==_0xe6164b['name']['indexOf'](_0x180b30)?_0x180b30+':\x20'+_0xe6164b['name']:_0xe6164b['name'];else _0x3423fb=_0x180b30+':\x20'+(_0xe6164b['createdAt']['toLocaleDateString'](_0x38b4c0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xe6164b['createdAt']['toLocaleTimeString'](_0x38b4c0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5406aa['saveRevision']({'name':_0x3423fb}),_0x4b27dd['isReady']=!0x0,_0x38b4c0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5610c8){super(_0x5610c8),this['_revisionViewer']=_0x5610c8['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2f87f5=this['_revisionsRepository']['_revisions'],_0x2c74ca=this['_createRevisionActions'](),_0xf1c833=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x2f87f5,_0x2c74ca,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',(_0x5a6069,_0x1c8d44)=>{_0x1c8d44['revisionViews']['on']('add',(_0x59d6eb,_0x260187)=>{_0x260187['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)),_0xf1c833['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x45103a=this['_revisionsRepository']['getRevision'](0x0);if(_0x45103a){const _0x3187c1=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x45103a['id']);this['_revisionViewer']['compare'](_0x45103a,_0x3187c1);}}['_handleRevisionSelected'](_0x4713e9,_0xe4cbec){const _0x3138a5=this['_revisionsRepository']['getRevision'](_0xe4cbec['id']),_0x2a25a4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3138a5['id']);this['_revisionViewer']['compare'](_0x3138a5,_0x2a25a4);}['_handleRevisionSetName'](_0x4f29e9,_0x272147){this['_revisionsRepository']['getRevision'](_0x272147['id'])['setName'](_0x272147['name']);}['_handleDiffChange'](_0x191957,_0x290436,_0x55f879){const _0x13af2f=this['_revisionsRepository']['getRevisionsInDiff'](_0x55f879);_0x13af2f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x13af2f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x13af2f[0x0]));}['_createRevisionActions'](){const _0x4c0fc3=this['editor'],_0x1ed398=g['availableRevisionActions'],_0x562db5=_0x4c0fc3['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x562db5['length'])return _0x562db5['map'](_0x1f3bae=>{const _0x5e4837='string'==typeof _0x1f3bae?Object['assign']({},_0x1ed398[_0x1f3bae]):_0x1f3bae;return _0x5e4837['action']=_0x5e4837['action']['bind'](this,_0x4c0fc3),_0x5e4837['isVisible']&&(_0x5e4837['isVisible']=_0x5e4837['isVisible']['bind'](this,_0x4c0fc3)),_0x5e4837;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xce607f},_0x258d45)=>{const _0x34e23e=_0xce607f['get'](d),_0x497633=_0x34e23e['repository'];let _0x478c12=_0x34e23e['diff']['newRevisionId'],_0xc21274=_0x258d45['id'];_0x497633['getIndex'](_0x478c12)>_0x497633['getIndex'](_0xc21274)&&([_0x478c12,_0xc21274]=[_0xc21274,_0x478c12]),_0x34e23e['compare'](_0x478c12,_0xc21274);},'isVisible':({plugins:_0xbe0439},_0x8be055)=>{const _0x4f25b0=_0xbe0439['get'](d);return!(_0x4f25b0['repository']['getRevisionsInDiff'](_0x4f25b0['diff'])['length']>0x2)&&!_0x8be055['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x361922,{id:_0x5753f6})=>{_0x361922['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5753f6);},'isVisible':({plugins:_0x383377},_0x2e5a2a)=>!!_0x383377['get'](d)['repository']['getLaterVisibleRevision'](_0x2e5a2a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xa7c912},{id:_0x3e920d,revisionNameView:_0x37bf8d})=>{const _0x46a7f4=_0xa7c912['get'](d),_0xb35504=_0x46a7f4['repository']['getEarlierVisibleRevision'](_0x3e920d);_0x46a7f4['compare'](_0x3e920d,_0xb35504),_0x37bf8d['focus'](),_0x37bf8d['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x546434,_0x37e809){super(_0x546434),this['_view']=_0x37e809,this['_toolbarConfig']=ot(_0x546434['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x5866cc){const _0x1624b5=this['editor'],_0x2fb331=this['view'],_0x5ab986=_0x1624b5['editing']['view'],_0x4a9633=_0x2fb331['editable'],_0x443b8e=_0x5ab986['document']['getRoot']();_0x4a9633['name']=_0x443b8e['rootName'],_0x2fb331['render']();const _0x3ae507=_0x4a9633['element'];this['setEditableElement'](_0x4a9633['name'],_0x3ae507),_0x2fb331['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5ab986['attachDomRoot'](_0x3ae507),this['_elementReplacer']['replace'](_0x5866cc,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3e0d82=this['view'],_0x47ebc3=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x47ebc3['detachDomRoot'](_0x3e0d82['editable']['name']),_0x3e0d82['destroy']();}['_initToolbar'](){const _0x5a22fc=this['view'];_0x5a22fc['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5a22fc['stickyPanel']['limiterElement']=_0x5a22fc['element'],_0x5a22fc['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x44ca47})=>_0x44ca47),_0x5a22fc['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5a22fc['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5a370f,_0x2fe914,_0x502d70={}){super(_0x5a370f),this['stickyPanel']=new lt(_0x5a370f),this['toolbar']=new nt(_0x5a370f,{'shouldGroupWhenFull':_0x502d70['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x5a370f,_0x2fe914);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x26a4dc,_0x539bd2){super(_0x539bd2),this['sourceElement']=_0x26a4dc,this['model']['document']['createRoot']();const _0x2c631a=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2c631a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5e67ea,_0x53501a){const _0x4297cc=new this(_0x5e67ea,_0x53501a);return await _0x4297cc['initPlugins'](),await _0x4297cc['ui']['init'](_0x5e67ea),await _0x4297cc['data']['init'](_0x4297cc['config']['get']('initialData')||''),_0x4297cc['fire']('ready'),_0x4297cc;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x14ecc6{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x488512){function _0x5b08b4(_0x24d0ce){return _0x24d0ce['map'](_0x308427=>String['fromCharCode'](_0x308427))['join']('');}super(_0x488512),this['result']='end',_0x488512[_0x5b08b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b08b4([0x76,0x69,0x65,0x77])][_0x5b08b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b08b4([0x61,0x75,0x74,0x6f]),_0x488512[_0x5b08b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5b08b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b08b4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5b08b4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5b08b4([0x6f,0x6b])});}}class k extends _0x14ecc6{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x250ef7){if(super(_0x250ef7),!this['editor']['config']['get']('revisionHistory'))throw new _0x35d1bd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5bd989=>this['_showRevisionViewer']({..._0x5bd989,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x47f9a7=>this['_closeRevisionViewer'](_0x47f9a7)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5d9576=>this['_restoreRevision'](_0x5d9576)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4209b9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4209b9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x366667){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x366667);}['getRevision'](_0x576498){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x576498);}['getRevisions'](_0x600c7b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x600c7b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x638e10=this['editor'],_0x93ec23=_0x14cad3(_0x638e10,p),_0x5ebfd6=_0x638e10['plugins']['get']('RevisionTracker'),_0x4ed234=_0x638e10['plugins']['get']('Users')['users'];return _0x93ec23['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x93ec23['lazyRoots'],(_0x93ec23['plugins']['push'](Rt,d,w,class extends _0x14ecc6{static get['requires'](){return[d,'Users'];}['init'](){const _0x4d91dc=this['editor']['plugins']['get']('Users');for(const _0x338078 of _0x4ed234)_0x338078['isAnonymous']||_0x4d91dc['getUser'](_0x338078['id'])||_0x4d91dc['addUser'](_0x338078);const _0x59492c=_0x5ebfd6['repository']['getRevisions']();let _0x4dc770=null;const _0x500186=this['editor']['plugins']['get']('RevisionViewer');_0x500186['adapter']=_0x5ebfd6['adapter'],_0x500186['bind']('isEnabled')['to'](_0x5ebfd6),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x638e10,'isReadOnly',_0x3ca418=>!_0x3ca418);for(const _0x34ad10 of _0x59492c){const _0x248fb2=null===_0x34ad10['creator'];if(_0x248fb2&&_0x34ad10['toVersion']===_0x34ad10['fromVersion'])continue;const _0x35dd36=_0x34ad10['toJSON']();_0x500186['addRevisionData'](_0x35dd36,(_0x3f0122,_0x3fd90f,_0xb99b5b)=>{if(_0x248fb2){if(_0x4dc770)_0x4dc770['_update'](_0x3f0122,_0x3fd90f);else{if(!_0x3fd90f){const _0x479d91=_0xb99b5b['toJSON']();_0x479d91['id']=_0x5361b9(),_0x5ebfd6['saveRevision'](_0x479d91,_0xb99b5b['toVersion'])['then'](_0x1fd312=>{_0x4dc770=_0x1fd312;});}}}else _0x34ad10['_update'](_0x3f0122,_0x3fd90f);});}}},g),_0x93ec23);}['_enhanceShowRevisionViewerCallback'](){const _0x3aa012=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2a5df9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4bb7d0=this['editor']['plugins']['get']('Autosave');await _0x4bb7d0['save']();}else await _0x2a5df9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2e291a=this['editor']['plugins']['get']('Dialog');_0x2e291a['isOpen']&&_0x2e291a['hide']();}const _0x11ddc0=this['_getRevisionViewerEditorConfig']();return _0x3aa012(_0x11ddc0)['then'](_0x9edb8c=>{return(this['_viewerEditor']=_0x9edb8c,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x9edb8c;})['catch'](_0x2e0606=>(console['error'](_0x2e0606),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x212a69=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x212a69(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xcbd5be=this['editor']['plugins']['get']('Annotations');_0xcbd5be['refreshVisibility'](),_0xcbd5be['refreshPositioning']();}})));}['_showRevisionViewer'](_0x21e28b){const _0x117966=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x8c4d8d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xd6dd03=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xd6dd03,_0x21e28b)['then'](_0x183679=>(_0x8c4d8d['style']['display']='block',_0x117966['style']['display']='none',_0x183679));}['_closeRevisionViewer'](_0x4479c6){const _0x841bef=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x841bef['style']['display']='',_0x4479c6['destroy']();}async['_restoreRevision'](_0x453e4a){const _0x71cd3=this['editor'],_0x555389=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x8bdf9a=_0x71cd3['plugins']['get']('RevisionTracker'),_0x3388c8=_0x555389['repository']['getRevision'](_0x453e4a);let _0x26bec9,_0x43be2f,_0x149036;try{_0x26bec9=await _0x555389['getRevisionData'](_0x3388c8),_0x43be2f=await _0x555389['getRevisionRootsAttributes'](_0x3388c8);}catch(_0x481d21){return void console['error'](_0x481d21);}_0x71cd3['model']['change'](_0x333802=>{for(const _0x2dafc1 of Array['from'](_0x71cd3['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x333802['removeMarker'](_0x2dafc1);}),_0x555389['isReady']=!0x1,_0x71cd3['model']['enqueueChange'](_0x5b2a50=>{_0x5b2a50['setSelection'](null),_0x5b2a50['removeSelectionAttribute'](_0x71cd3['model']['document']['selection']['getAttributeKeys']());const _0xa599ab=Object['keys'](_0x26bec9);for(const _0x4b5f5c of _0x71cd3['model']['document']['roots'])'$graveyard'!=_0x4b5f5c['rootName']&&_0x4b5f5c['isAttached']()&&!_0xa599ab['includes'](_0x4b5f5c['rootName'])&&_0x5b2a50['detachRoot'](_0x4b5f5c);for(const _0x5e9a0d of _0xa599ab){let _0x35eef2=_0x71cd3['model']['document']['getRoot'](_0x5e9a0d);_0x35eef2&&_0x35eef2['isAttached']()||(_0x35eef2=_0x5b2a50['addRoot'](_0x5e9a0d));const _0x5c6c35=_0x43be2f[_0x5e9a0d],_0x532d10=Object['keys'](_0x5c6c35),_0x2b619b=_0x26bec9[_0x5e9a0d];for(const _0x1034fc of _0x35eef2['getAttributeKeys']())_0x532d10['includes'](_0x1034fc)||_0x5b2a50['removeAttribute'](_0x1034fc,_0x35eef2);for(const _0x519712 of _0x532d10)_0x5b2a50['setAttribute'](_0x519712,_0x43be2f[_0x5e9a0d][_0x519712],_0x35eef2);_0x5b2a50['remove'](_0x5b2a50['createRangeIn'](_0x35eef2)),_0x5b2a50['insert'](_0x71cd3['data']['parse'](_0x2b619b,_0x35eef2),_0x35eef2,0x0);}});const _0x20c997=m(_0x71cd3['locale'],'Restored');if(_0x3388c8['name'])_0x149036=-0x1==_0x3388c8['name']['indexOf'](_0x20c997)?_0x20c997+':\x20'+_0x3388c8['name']:_0x3388c8['name'];else _0x149036=_0x20c997+':\x20'+(_0x3388c8['createdAt']['toLocaleDateString'](_0x71cd3['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3388c8['createdAt']['toLocaleTimeString'](_0x71cd3['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x8bdf9a['saveRevision']({'name':_0x149036}),_0x555389['isReady']=!0x0,_0x71cd3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};