@ckeditor/ckeditor5-revision-history 45.0.0-alpha.3 → 45.0.0-alpha.4

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 _0xd05959,uid as _0x556484,Collection as _0x16f7b0,logWarning as _0x3cf471,FocusTracker as _0x384e90,KeystrokeHandler as _0x20c5b5,scrollViewportToShowTarget as _0x3808f6,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x40e938}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xc162bf,set as _0x4c06ec,unset as _0x3c5d72,isEqual as _0x39bdb9}from'es-toolkit/compat';import{Plugin as _0x13d4c1,PendingActions as _0x4c2613,Command as _0x352de6,ElementApiMixin as _0x582e74,Editor as _0x58a48a}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1f9202,getMarkerDomElement as _0x35fb8c,ConfirmMixin as _0x2d86e9,sanitizeEditorConfig as _0x111232}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x565c74,ViewAttributeElement as _0x1260c3,ViewEmptyElement as _0x4074d9,ViewRawElement as _0x53dbd8,ViewUIElement as _0x11bda9,ViewDocumentFragment as _0x4e5397,ViewText as _0x14a43d,ViewElement as _0x4f5694,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x34f0c9,IconChevronUp as _0x2c449b,IconChevronDown as _0x2a54bb,IconUndo as te,IconUser as _0x8ab3f1,IconThreeVerticalDots as _0x29e41d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x27485a,injectCssTransitionDisabler as ts,submitHandler as _0x5c9583,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x12a8ba,ListView as _0x59dc3d,ListItemView as _0x2495db,ButtonView as _0x3ab2b8,MenuBarMenuView as _0x52d3e1,MenuBarMenuListView as _0x1aeb76,MenuBarMenuListItemView as _0x2c1a79,MenuBarMenuListItemButtonView as _0x18b0e5,ContextualBalloon as _0x22dc4a,ToolbarSeparatorView as _0x4c3bb4,IconView as _0x32afb7,addListToDropdown as _0x1c13b4,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x357f4a}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0xd05959(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x46be31){super(),this['id']=_0x46be31['id']||_0x556484(),this['creator']=_0x46be31['creator']||null,this['authors']=_0x46be31['authors']||[],this['diffData']=_0x46be31['diffData']||null,this['toVersion']=_0x46be31['toVersion']||0x0,this['fromVersion']=_0x46be31['fromVersion']||0x0,this['set']('name',_0x46be31['name']||''),this['set']('createdAt',_0x46be31['createdAt']||new Date()),this['set']('attributes',_0x46be31['attributes']||{});}['setName'](_0x522d09){this['_update']({'name':_0x522d09});}['setAttribute'](_0x1bb017,_0x4ea52c){const _0x57063e=_0xc162bf(this['attributes']);_0x4c06ec(_0x57063e,_0x1bb017,_0x4ea52c),this['_update']({'attributes':_0x57063e});}['removeAttribute'](_0x4d9f5b){const _0x12c2b=_0xc162bf(this['attributes']);_0x3c5d72(_0x12c2b,_0x4d9f5b),this['_update']({'attributes':_0x12c2b});}['_update'](_0x1a1d55,_0x249764=!0x1){let _0x495a00=!0x1;const _0x5d4b11={'id':this['id']},_0x54d290=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x288e84 of _0x54d290){const _0x16bd57=_0x1a1d55[_0x288e84];void 0x0!==_0x16bd57&&_0x16bd57!==this[_0x288e84]&&(this[_0x288e84]=_0x16bd57,_0x5d4b11[_0x288e84]=_0x16bd57,_0x495a00=!0x0);}_0x495a00&&(_0x5d4b11['authors']&&(_0x5d4b11['authorsIds']=_0x5d4b11['authors']['map'](_0x16c3e7=>_0x16c3e7['id']),delete _0x5d4b11['authors']),this['fire']('_update',_0x5d4b11,_0x249764));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x393ab6=>_0x393ab6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x13d4c1{['_revisions'];static get['requires'](){return[_0x1f9202];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3e07f2){super(_0x3e07f2),this['_revisions']=new _0x16f7b0();}['afterInit'](){!async function(_0x278d47){const _0xf50327=_0x29fa5e([0x77,0x45,0x4b,0x6b,0x36,0x4d,0x57,0x6a,0x75,0x68,0x71,0x6c,0x30,0x72,0x48,0x55,0x65,0x56,0x70,0x58,0x53,0x64,0x37,0x5a,0x32,0x63,0x4c,0x67,0x50,0x4a,0x31,0x33,0x39,0x38,0x76,0x62,0x78,0x74,0x6e,0x43,0x59,0x73,0x44,0x4f,0x79,0x4e,0x6f,0x66,0x52,0x42,0x6d,0x47,0x69,0x34,0x35,0x49,0x46,0x54,0x51,0x7a,0x41,0x61]),_0x1e276d=0xeb829,_0x1bdafd=0x67f80106,_0x54d3cc=0x67ff6286^_0x1bdafd,_0x1d3a3f=window[_0x29fa5e([0x44,0x61,0x74,0x65])][_0x29fa5e([0x6e,0x6f,0x77])](),_0x107976=_0x278d47[_0x29fa5e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd5b898=new window[(_0x29fa5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59342e=>{_0x107976[_0x29fa5e([0x6f,0x6e,0x63,0x65])](_0x29fa5e([0x72,0x65,0x61,0x64,0x79]),_0x59342e);}),_0x222401={[_0x29fa5e([0x6b,0x74,0x79])]:_0x29fa5e([0x45,0x43]),[_0x29fa5e([0x75,0x73,0x65])]:_0x29fa5e([0x73,0x69,0x67]),[_0x29fa5e([0x63,0x72,0x76])]:_0x29fa5e([0x50,0x2d,0x32,0x35,0x36]),[_0x29fa5e([0x78])]:_0x29fa5e([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]),[_0x29fa5e([0x79])]:_0x29fa5e([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]),[_0x29fa5e([0x61,0x6c,0x67])]:_0x29fa5e([0x45,0x53,0x32,0x35,0x36])},_0x52e23d=_0x107976[_0x29fa5e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29fa5e([0x67,0x65,0x74])](_0x29fa5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37dd50(){let _0x102ec2,_0x734bb2=null,_0x84f1b3=null;try{if(_0x52e23d==_0x29fa5e([0x47,0x50,0x4c]))return _0x29fa5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x102ec2=_0x1dc83d(),!_0x102ec2)return _0x29fa5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x102ec2[_0x29fa5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x84f1b3=_0x4c5427(_0x102ec2[_0x29fa5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x102ec2[_0x29fa5e([0x6a,0x74,0x69])])),await _0x472909()?_0x2de0b6()?_0x48ab26()?_0x29fa5e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x27d36f()?(_0x102ec2[_0x29fa5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29fa5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x734bb2=_0x137346(_0x29fa5e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x102ec2[_0x29fa5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29fa5e([0x74,0x72,0x69,0x61,0x6c])&&(_0x734bb2=_0x137346(_0x29fa5e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9b88f7()):_0x29fa5e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29fa5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29fa5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x50f630){return _0x29fa5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48ab26(){const _0x3ff358=[_0x29fa5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29fa5e([0x74,0x72,0x69,0x61,0x6c])][_0x29fa5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102ec2[_0x29fa5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d3a3f/0x3e8:0xe10*_0x54d3cc;return _0x102ec2[_0x29fa5e([0x65,0x78,0x70])]<_0x3ff358;}function _0x2de0b6(){const _0x3d6707=_0x102ec2[_0x29fa5e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3d6707)return!0x1;if(_0x3d6707[_0x29fa5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29fa5e([0x2a])))return!0x0;if(_0x3d6707[_0x29fa5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29fa5e([0x52,0x48])))return!0x0;if(_0x3d6707[_0x29fa5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29fa5e([0x52,0x52,0x48]))){if(_0x3bec4b())return!0x0;if(_0x523b3e()||_0x102e92())return!0x0;}return!0x1;}function _0x27d36f(){const _0x230d7e=_0x102ec2[_0x29fa5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x230d7e||0x0==_0x230d7e[_0x29fa5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c96ac}=new URL(window[_0x29fa5e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x230d7e[_0x29fa5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c96ac))return!0x0;const _0xe1f8a2=_0x4c96ac[_0x29fa5e([0x73,0x70,0x6c,0x69,0x74])](_0x29fa5e([0x2e]));return _0x230d7e[_0x29fa5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3502ed=>_0x3502ed[_0x29fa5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29fa5e([0x2a])))[_0x29fa5e([0x6d,0x61,0x70])](_0x398dca=>_0x398dca[_0x29fa5e([0x73,0x70,0x6c,0x69,0x74])](_0x29fa5e([0x2e])))[_0x29fa5e([0x73,0x6f,0x6d,0x65])](_0x2cdc80=>_0xe1f8a2[_0x29fa5e([0x65,0x76,0x65,0x72,0x79])]((_0x25b293,_0x7e206)=>_0x2cdc80[_0x7e206]===_0x25b293||_0x2cdc80[_0x7e206]===_0x29fa5e([0x2a])));}function _0x9b88f7(){return _0x734bb2&&_0x84f1b3?new window[(_0x29fa5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55e9fa,_0x1fdbbe)=>{_0x734bb2[_0x29fa5e([0x74,0x68,0x65,0x6e])](_0x55e9fa,_0x1fdbbe),_0x84f1b3[_0x29fa5e([0x74,0x68,0x65,0x6e])](_0x4302d2=>{_0x4302d2!=_0x29fa5e([0x56,0x61,0x6c,0x69,0x64])&&_0x55e9fa(_0x4302d2);},_0x1fdbbe);}):_0x734bb2||_0x84f1b3||_0x29fa5e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c5427(_0x160654,_0x35d899){return new window[(_0x29fa5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329079=>{if(_0x331e58())return _0x329079(_0x29fa5e([0x56,0x61,0x6c,0x69,0x64]));_0x55752d(),_0x107976[_0x29fa5e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29fa5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17f0e9=!0x1;const _0x410803=_0x556484();function _0x365d93(_0xbe9688){return!!_0xbe9688&&(typeof _0xbe9688===_0x29fa5e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xbe9688===_0x29fa5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xbe9688[_0x29fa5e([0x74,0x68,0x65,0x6e])]===_0x29fa5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xbe9688[_0x29fa5e([0x63,0x61,0x74,0x63,0x68])]===_0x29fa5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc0b1f7(_0x234084){_0x3ad0c9(_0x234084)[_0x29fa5e([0x74,0x68,0x65,0x6e])](_0x1d5ec0=>{if(!_0x1d5ec0||_0x1d5ec0[_0x29fa5e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29fa5e([0x6f,0x6b]))return _0x29fa5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d5058(_0x22a1f4(_0x410803+_0x35d899))!=_0x1d5ec0[_0x29fa5e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29fa5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29fa5e([0x56,0x61,0x6c,0x69,0x64]);})[_0x29fa5e([0x74,0x68,0x65,0x6e])](_0x4c74ba=>(_0x1cd5bc(),_0x4c74ba),()=>{const _0x2324e3=_0x566157();return null==_0x2324e3?(_0x1cd5bc(),_0x29fa5e([0x56,0x61,0x6c,0x69,0x64])):_0x29fa5e(_0x1d3a3f-_0x2324e3>(0x43f48506^_0x1bdafd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29fa5e([0x74,0x68,0x65,0x6e])](_0x329079)[_0x29fa5e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x329079(_0x29fa5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x458b9a=0x67ceef86^_0x1bdafd;function _0x1cd5bc(){const _0x15b8ce=_0x29fa5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d5058(_0x22a1f4(_0x160654)),_0x3fe05a=_0x5eb0f8(_0x3d5058(window[_0x29fa5e([0x4d,0x61,0x74,0x68])][_0x29fa5e([0x63,0x65,0x69,0x6c])](_0x1d3a3f/_0x458b9a)));window[_0x29fa5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29fa5e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b8ce,_0x3fe05a);}function _0x566157(){const _0xd9b40e=_0x29fa5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d5058(_0x22a1f4(_0x160654)),_0x5279ea=window[_0x29fa5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29fa5e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd9b40e);return _0x5279ea?window[_0x29fa5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5eb0f8(_0x5279ea),0x10)*_0x458b9a:null;}function _0x3ad0c9(_0x367c39){return new window[(_0x29fa5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2caa38,_0x1674c5)=>{_0x367c39[_0x29fa5e([0x74,0x68,0x65,0x6e])](_0x2caa38,_0x1674c5),window[_0x29fa5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1674c5,0x67f9d5c6^_0x1bdafd);});}}_0x107976[_0x29fa5e([0x6f,0x6e])](_0x29fa5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41eae0,_0x1ad47a)=>{if(_0x1ad47a[0x0]!=_0x160654)return _0x329079(_0x29fa5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ad47a[0x1]={..._0x1ad47a[0x1],[_0x29fa5e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x410803};},{[_0x29fa5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29fa5e([0x68,0x69,0x67,0x68])}),_0x107976[_0x29fa5e([0x6f,0x6e])](_0x29fa5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xba7a57=>{_0x365d93(_0xba7a57[_0x29fa5e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17f0e9=!0x0,_0xc0b1f7(_0xba7a57[_0x29fa5e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29fa5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29fa5e([0x6c,0x6f,0x77])}),_0xd5b898[_0x29fa5e([0x74,0x68,0x65,0x6e])](()=>{_0x17f0e9||_0x329079(_0x29fa5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x331e58(){return _0x107976[_0x29fa5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29fa5e([0x76,0x69,0x65,0x77])][_0x29fa5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29fa5e([0x61,0x75,0x74,0x6f]);}function _0x55752d(){_0x107976[_0x29fa5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29fa5e([0x76,0x69,0x65,0x77])][_0x29fa5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29fa5e([0x61,0x75,0x74,0x6f]);}}function _0x137346(_0x4910d2){const _0x241fcb=[new window[(_0x29fa5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e7c3f=>setTimeout(_0x1e7c3f,0x67f13fca^_0x1bdafd)),_0xd5b898[_0x29fa5e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29fa5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c50e6=>{const _0x3406b1=0x67f80101^_0x1bdafd,_0x491517=_0x278d47[_0x29fa5e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2a44c8(){_0x491517[_0x29fa5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3406b1&&_0x3c50e6();}_0x2a44c8(),_0x491517[_0x29fa5e([0x6f,0x6e])](_0x29fa5e([0x61,0x64,0x64]),_0x2a44c8);})),new window[(_0x29fa5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb80eb5=>{function _0x4bba4d(){for(const _0x4e68df in window)if(window[_0x29fa5e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x29fa5e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e68df))&&window[_0x4e68df]==_0x1e276d)return _0xb80eb5();_0x107976[_0x29fa5e([0x73,0x74,0x61,0x74,0x65])]!=_0x29fa5e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x29fa5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4bba4d,0x67f8128e^_0x1bdafd);}_0x4027e9(_0x29fa5e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4bba4d();})];return window[_0x29fa5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29fa5e([0x72,0x61,0x63,0x65])](_0x241fcb)[_0x29fa5e([0x74,0x68,0x65,0x6e])](()=>_0x4910d2);}async function _0x388472(){if(await _0xd5b898,_0x4027e9(_0x29fa5e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2a7128=_0x278d47[_0x29fa5e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x36c15c=_0x278d47[_0x29fa5e([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])](_0x2a7128[_0x29fa5e([0x69,0x64])]),_0x29f0b6=_0x3a4a3c(_0x29fa5e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x29f0b6[_0x29fa5e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2a7128['id'],_0x36c15c?_0x36c15c['id']:null,!0x0),_0x29f0b6[_0x29fa5e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x29fa5e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x29f0b6[_0x29fa5e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x29f0b6[_0x29fa5e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x464931,void(_0x29f0b6[_0x29fa5e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x464931);}if(_0x4027e9(_0x29fa5e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x548d23=_0x3a4a3c(_0x29fa5e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x548d23[_0x29fa5e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x29fa5e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x548d23[_0x29fa5e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x548d23[_0x29fa5e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x464931,_0x548d23[_0x29fa5e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x464931;}_0x107976[_0x29fa5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x29fa5e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x464931,_0x107976[_0x29fa5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x29fa5e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x464931,_0x107976[_0x29fa5e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29fa5e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bec4b(){return _0x4027e9(_0x29fa5e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3a4a3c(_0x29fa5e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29fa5e([0x73,0x74,0x61,0x74,0x65])]==_0x29fa5e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x523b3e(){return _0x4027e9(_0x29fa5e([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 _0x102e92(){return _0x4027e9(_0x29fa5e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3dc106(_0x19f072){const _0x7bcae=_0x1f0fdf();_0x107976[_0x7bcae]=_0x29fa5e([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])+_0x19f072,_0x19f072[_0x29fa5e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x29fa5e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1f0fdf()]=_0x1e276d),_0x19f072!=_0x29fa5e([0x56,0x61,0x6c,0x69,0x64])&&_0x388472();}function _0x1f0fdf(){const _0x2b1fd0=window[_0x29fa5e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29fa5e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29fa5e([0x6e,0x6f,0x77])]())[_0x29fa5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29fa5e([0x2e]),'');let _0x35666c=_0x29fa5e([0x77]);for(let _0x5520e1=0x0;_0x5520e1<_0x2b1fd0[_0x29fa5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5520e1+=0x2){let _0x5bc7ea=window[_0x29fa5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b1fd0[_0x29fa5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5520e1,_0x5520e1+0x2));_0x5bc7ea>=_0xf50327[_0x29fa5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bc7ea-=_0xf50327[_0x29fa5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x35666c+=_0xf50327[_0x5bc7ea];}return _0x35666c;}function _0x1dc83d(){const _0xbec81a=_0x52e23d[_0x29fa5e([0x73,0x70,0x6c,0x69,0x74])](_0x29fa5e([0x2e]));if(0x3!=_0xbec81a[_0x29fa5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40dd51(_0xbec81a[0x1]);function _0x40dd51(_0x2f06a7){const _0x4bc620=_0x1b4bf5(_0x2f06a7);return _0x4bc620&&_0x16e5ff()?_0x4bc620:null;function _0x16e5ff(){const _0xe5fc68=_0x4bc620[_0x29fa5e([0x6a,0x74,0x69])],_0x28b9d8=window[_0x29fa5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe5fc68[_0x29fa5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe5fc68[_0x29fa5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5734d6={..._0x4bc620,[_0x29fa5e([0x6a,0x74,0x69])]:_0xe5fc68[_0x29fa5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe5fc68[_0x29fa5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5734d6[_0x29fa5e([0x76,0x63])],_0x22a1f4(_0x5734d6)==_0x28b9d8;}}}async function _0x472909(){let _0x472f66=!0x0;try{const _0x5d7d93=_0x52e23d[_0x29fa5e([0x73,0x70,0x6c,0x69,0x74])](_0x29fa5e([0x2e])),[_0x20a4e0,_0x1b9c1b,_0x12d493]=_0x5d7d93;return _0x3a2225(_0x20a4e0),await _0x37c18d(_0x20a4e0,_0x1b9c1b,_0x12d493),_0x472f66;}catch(_0x30870f){return!0x1;}function _0x3a2225(_0xfb9b5){const _0x130121=_0x1b4bf5(_0xfb9b5);_0x130121&&_0x130121[_0x29fa5e([0x61,0x6c,0x67])]==_0x29fa5e([0x45,0x53,0x32,0x35,0x36])||(_0x472f66=!0x1);}async function _0x37c18d(_0xc99171,_0x5b3f24,_0x7e9928){const _0x510ab7=window[_0x29fa5e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29fa5e([0x66,0x72,0x6f,0x6d])](_0x1cd16c(_0x7e9928),_0x23355f=>_0x23355f[_0x29fa5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f22ee=new window[(_0x29fa5e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29fa5e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc99171+_0x29fa5e([0x2e])+_0x5b3f24),_0x1c8e87=window[_0x29fa5e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29fa5e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c8e87)return;const _0x59d591=await _0x1c8e87[_0x29fa5e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29fa5e([0x6a,0x77,0x6b]),_0x222401,{[_0x29fa5e([0x6e,0x61,0x6d,0x65])]:_0x29fa5e([0x45,0x43,0x44,0x53,0x41]),[_0x29fa5e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29fa5e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29fa5e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c8e87[_0x29fa5e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29fa5e([0x6e,0x61,0x6d,0x65])]:_0x29fa5e([0x45,0x43,0x44,0x53,0x41]),[_0x29fa5e([0x68,0x61,0x73,0x68])]:{[_0x29fa5e([0x6e,0x61,0x6d,0x65])]:_0x29fa5e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59d591,_0x510ab7,_0x5f22ee)||(_0x472f66=!0x1);}}function _0x1b4bf5(_0x5e5169){return _0x5e5169[_0x29fa5e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29fa5e([0x65,0x79]))?JSON[_0x29fa5e([0x70,0x61,0x72,0x73,0x65])](_0x1cd16c(_0x5e5169)):null;}function _0x1cd16c(_0x375122){return window[_0x29fa5e([0x61,0x74,0x6f,0x62])](_0x375122[_0x29fa5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29fa5e([0x2b]))[_0x29fa5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29fa5e([0x2f])));}function _0x22a1f4(_0x2ff09e){let _0x2c8f70=0x1505;function _0x325b2e(_0x49a19c){for(let _0x203e6c=0x0;_0x203e6c<_0x49a19c[_0x29fa5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x203e6c++){const _0x1ad70b=_0x49a19c[_0x29fa5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x203e6c);_0x2c8f70=(_0x2c8f70<<0x5)+_0x2c8f70+_0x1ad70b,_0x2c8f70&=_0x2c8f70;}}function _0x11eb25(_0x31d8e6){Array[_0x29fa5e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31d8e6)?_0x31d8e6[_0x29fa5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x11eb25):_0x31d8e6&&typeof _0x31d8e6==_0x29fa5e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29fa5e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31d8e6)[_0x29fa5e([0x73,0x6f,0x72,0x74])]()[_0x29fa5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36b9ed,_0x23fb7c])=>{_0x325b2e(_0x36b9ed),_0x11eb25(_0x23fb7c);}):_0x325b2e(window[_0x29fa5e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31d8e6));}return _0x11eb25(_0x2ff09e),_0x2c8f70>>>0x0;}function _0x3d5058(_0x2746ec){return _0x2746ec[_0x29fa5e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29fa5e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29fa5e([0x30]));}function _0x5eb0f8(_0x28a52b){return _0x28a52b[_0x29fa5e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29fa5e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29fa5e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4027e9(_0x59730c){return _0x107976[_0x29fa5e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29fa5e([0x68,0x61,0x73])](_0x59730c);}function _0x3a4a3c(_0x56dea1){return _0x107976[_0x29fa5e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29fa5e([0x67,0x65,0x74])](_0x56dea1);}function _0x464931(){}function _0x29fa5e(_0x545af9){return _0x545af9['map'](_0x295480=>String['fromCharCode'](_0x295480))['join']('');}_0x3dc106(await _0x37dd50());}(this);}['createRevision'](_0x6b46bc){const _0x558b43=this['editor']['plugins']['get']('Users');return new h({'id':_0x6b46bc['id'],'name':_0x6b46bc['name'],'creator':_0x6b46bc['creatorId']?_0x558b43['getUser'](_0x6b46bc['creatorId']):null,'diffData':_0x6b46bc['diffData']||_0x6b46bc['data'],'authors':_0x6b46bc['authorsIds']['map'](_0x11f8f6=>_0x558b43['getUser'](_0x11f8f6)),'createdAt':new Date(_0x6b46bc['createdAt']),'attributes':_0x6b46bc['attributes'],'fromVersion':_0x6b46bc['fromVersion'],'toVersion':_0x6b46bc['toVersion']});}['addRevision'](_0x1876e9,_0x1633dd=0x0){this['_revisions']['add'](_0x1876e9,_0x1633dd);}['getRevision'](_0x274691){return this['_revisions']['get'](_0x274691);}['getRevisions'](_0x2c07b2={'toJSON':!0x1}){const _0x3b3142=Array['from'](this['_revisions']);return _0x3b3142['reverse'](),_0x2c07b2['toJSON']?_0x3b3142['map'](_0x19f164=>_0x19f164['toJSON']()):_0x3b3142;}['getIndex'](_0xe9c372){return this['_revisions']['getIndex'](_0xe9c372);}['getEarlierVisibleRevision'](_0x2013e7){const [,_0x15fad8]=this['getRevisionsIterator'](_0x2013e7,{'direction':'earlier'});return _0x15fad8;}['getLaterVisibleRevision'](_0x41dd68){const [,_0xd712a8]=this['getRevisionsIterator'](_0x41dd68,{'direction':'later'});return _0xd712a8;}['getRevisionsInDiff'](_0x2e3394){const _0xd1d0c5=[];for(const _0x5132c9 of this['getRevisionsIterator'](_0x2e3394['newRevisionId']))if(_0xd1d0c5['push'](_0x5132c9),_0x5132c9['id']===_0x2e3394['oldRevisionId'])break;return _0xd1d0c5;}*['getRevisionsIterator'](_0x18006c,{direction:_0x5912fc='earlier',filter:_0x20f5d8=()=>!0x0}={}){const _0x375aee='earlier'===_0x5912fc?0x1:-0x1;let _0x2dcdb4=this['_revisions']['get'](_0x18006c),_0x35ee6e=this['getIndex'](_0x2dcdb4);for(yield _0x2dcdb4;_0x2dcdb4;){if(_0x35ee6e+=_0x375aee,_0x2dcdb4=this['getRevision'](_0x35ee6e),!_0x2dcdb4)return;_0x20f5d8(_0x2dcdb4)&&(yield _0x2dcdb4);}}}class V extends _0x13d4c1{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x565c74,'c'],[_0x1260c3,'a'],[_0x4074d9,'e'],[_0x53dbd8,'r'],[_0x11bda9,'u']]);['_typeCharToViewClass']=new Map([['c',_0x565c74],['a',_0x1260c3],['e',_0x4074d9],['r',_0x53dbd8],['u',_0x11bda9]]);async['loadRevisionData'](_0x87a309,_0x196c94){if(_0x87a309['diffData']||!_0x196c94)return;const _0x22fbbf=this['editor']['config']['get']('collaboration.channelId'),_0x5069c7=await _0x196c94['getRevision']({'channelId':_0x22fbbf,'revisionId':_0x87a309['id']});_0x87a309['diffData']=_0x5069c7['diffData'];}['getRevisionDocumentData'](_0x517d78){const _0x148c97={};for(const _0x2fc370 in _0x517d78['diffData']){if(_0x517d78['diffData'][_0x2fc370]['attachChange']&&!_0x517d78['diffData'][_0x2fc370]['attachChange']['isAttached'])continue;const _0x5c985d=this['_removeRevisionMarkers'](JSON['parse'](_0x517d78['diffData'][_0x2fc370]['insertions'])),_0x1e6b56=this['editor']['editing']['view']['document'],_0x494c2d=new _0x4e5397(_0x1e6b56,_0x5c985d['map'](_0x3e9cfa=>this['_getViewFromDiffObj'](_0x3e9cfa,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x148c97[_0x2fc370]=this['editor']['data']['processor']['toData'](_0x494c2d),this['editor']['data']['processor']['useFillerType']('default');}return _0x148c97;}['getRevisionRootsAttributes'](_0x16deb6){const _0x37bfd5={};for(const _0x239b06 in _0x16deb6['diffData'])_0x16deb6['diffData'][_0x239b06]['attachChange']&&!_0x16deb6['diffData'][_0x239b06]['attachChange']['isAttached']||(_0x37bfd5[_0x239b06]=_0x16deb6['diffData'][_0x239b06]['attributesAfter']||{});return _0x37bfd5;}['_getTypeCharForViewElement'](_0x4c6d88){return this['_viewClassToTypeChar']['get'](_0x4c6d88['constructor']);}['_getViewFromDiffObj'](_0x4df0d4,_0x49f1b8){const _0x3efcea=this['editor']['editing']['view']['document'];if('string'==typeof _0x4df0d4)return new _0x14a43d(_0x3efcea,_0x4df0d4);{let _0xfecc4d,_0x241b4e;_0x241b4e='u'==_0x4df0d4['type']||'r'==_0x4df0d4['type']?[]:_0x4df0d4['children']['map'](_0x56d335=>this['_getViewFromDiffObj'](_0x56d335,_0x49f1b8));const _0x3defb2=this['_typeCharToViewClass']['get'](_0x4df0d4['type'])||_0x4f5694,_0x492491=this['editor']['data']['htmlProcessor']['domConverter'];if(_0xfecc4d=new _0x3defb2(_0x3efcea,_0x4df0d4['name'],_0x4df0d4['attributes'],_0x241b4e),'u'==_0x4df0d4['type']){const _0x333a98=_0x4df0d4['children'][0x0];if(_0xfecc4d['render']=function(_0x44674f){const _0x25a8a2=_0x44674f['createElement']('div');return _0x25a8a2['innerHTML']=_0x333a98,_0x25a8a2['childNodes'][0x0];},_0x49f1b8){const _0x2ba74a=new _0x4e5397(_0x3efcea);_0x2ba74a['_appendChild'](_0xfecc4d);const _0x7f84c7=Array['from'](_0x492491['viewChildrenToDom'](_0x2ba74a,{'bind':!0x1})),_0x105329=_0x492491['domDocument']['createElement']('div');_0x105329['append'](..._0x7f84c7),_0xfecc4d=Array['from'](_0x492491['domChildrenToView'](_0x105329))[0x0];}}else{if('r'==_0x4df0d4['type']){const _0x5a6345=_0x4df0d4['children'][0x0];if(_0xfecc4d['render']=function(_0x265ada){_0x265ada['innerHTML']=_0x5a6345;},_0x49f1b8){const _0x2170f3=new _0x4e5397(_0x3efcea);_0x2170f3['_appendChild'](_0xfecc4d);const _0x38690d=Array['from'](_0x492491['viewChildrenToDom'](_0x2170f3,{'bind':!0x1})),_0x2f7e03=_0x492491['domDocument']['createElement']('div');_0x2f7e03['append'](..._0x38690d);const _0x2b5984=Array['from'](_0x492491['domChildrenToView'](_0x2f7e03));_0x2b5984['length']>0x1?_0xfecc4d['_appendChild'](_0x2b5984):_0xfecc4d=_0x2b5984[0x0];}}}if(_0x4df0d4['customProperties']){for(const [_0x1e5d5f,_0x283e79]of _0x4df0d4['customProperties'])_0xfecc4d['_setCustomProperty'](_0x1e5d5f,_0x283e79);}const _0x539bc6=_0x4df0d4['fillerOffset']||null;return _0xfecc4d['getFillerOffset']=()=>_0x539bc6,_0xfecc4d;}}['_makeModelFromViewString'](_0x4a3e2a){const _0x4fcaba=JSON['parse'](_0x4a3e2a),_0x2cefe8=this['editor']['editing']['view']['document'],_0x58cdfe=new _0x4e5397(_0x2cefe8,_0x4fcaba['map'](_0xfc7b31=>this['_getViewFromDiffObj'](_0xfc7b31,!0x0)));return this['editor']['data']['toModel'](_0x58cdfe);}['_removeRevisionMarkers'](_0x5c0f0b){return(_0x5c0f0b=_0x5c0f0b['filter'](_0x2a2724=>!_0x2a2724['name']||'revision-start'!==_0x2a2724['name']&&'revision-end'!==_0x2a2724['name']))['forEach'](_0x3a6c54=>{'string'!=typeof _0x3a6c54&&(_0x3a6c54['children']=this['_removeRevisionMarkers'](_0x3a6c54['children']),_0x3a6c54['attributes']=_0x3a6c54['attributes']['filter'](_0x2b2951=>!_0x2b2951[0x0]['startsWith']('data-revision-')));}),_0x5c0f0b;}}function g(_0x1a1b1c,_0x5239e9,_0x19f613){const t=_0x1a1b1c['t'];switch(_0x5239e9){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'},_0x19f613);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x19f613);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x13d4c1{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1f9202,I,V,_0x4c2613];}constructor(_0x2ebdc3){super(_0x2ebdc3),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4a08b6=_0x556484();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4a08b6},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x52c87e=this['repository']['getRevision'](0x0),_0x1a84b1=_0x52c87e&&null===_0x52c87e['creator']?_0x52c87e:null;if(this['_continueCurrentRevision']=!!_0x1a84b1&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x53661e=this['_source']['getCurrentRevisionId'](),_0x578048=this['repository']['getRevision'](_0x53661e);if(_0x578048)this['_startingVersion']=_0x578048['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x535970=this['_source']['history']['_operations']['find'](_0x434200=>!_0x434200['_isInit']),_0x3a840b=_0x535970?_0x535970['baseVersion']:this['_source']['history']['version'];_0x52c87e?(_0x52c87e['toVersion']<_0x3a840b&&_0x52c87e['_update']({'toVersion':_0x3a840b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1a84b1['id'],this['_startingVersion']=_0x1a84b1['fromVersion']):(this['_startingVersion']=_0x52c87e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3a840b,this['_continueCurrentRevision']=!0x1);}}else _0x1a84b1&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1a84b1['toVersion'],this['editor']['model']['document']['history']['version']),_0x1a84b1['fromVersion']===_0x1a84b1['toVersion']?(0x0!==_0x1a84b1['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a84b1['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a84b1['id'],this['_startingVersion']=_0x1a84b1['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',_0x1d1973=>!_0x1d1973),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x326b64=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d5268;for(const _0x8e74cb in _0x326b64){const _0x19e8f6=_0x8e74cb,_0x3f8bab=_0x326b64[_0x19e8f6];if('revisionHistoryLicenseKeyValid'==_0x3f8bab||'revisionHistoryLicenseKeyInvalid'==_0x3f8bab||'revisionHistoryLicenseKeyExpired'==_0x3f8bab||'revisionHistoryLicenseKeyDomainLimit'==_0x3f8bab||'revisionHistoryLicenseKeyNotAllowed'==_0x3f8bab||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3f8bab||'revisionHistoryLicenseKeyTrialLimit'==_0x3f8bab||'revisionHistoryLicenseKeyUsageLimit'==_0x3f8bab){delete _0x326b64[_0x19e8f6],_0x5d5268=_0x3f8bab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5d5268&&_0x326b64['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5d5268&&_0x326b64['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5d5268&&_0x326b64['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5d5268&&_0x326b64['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5d5268&&_0x326b64['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5d5268&&_0x326b64['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5d5268&&_0x326b64['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x7520d5=this['repository']['getRevision'](0x0),_0x1f2eb2=await this['getRevisionDocumentData'](_0x7520d5),_0x95291=await this['getRevisionRootsAttributes'](_0x7520d5);this['_replaceEditorDataWithRevisionData'](_0x1f2eb2,_0x95291);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x382177){this['_source']=_0x382177;}async['update'](){const _0x1b8884=await this['_source']['getLatestVersion']();if(_0x1b8884>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1ae315=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b8884});_0x1ae315['authors']=_0x1ae315['authorsIds']['map'](_0x51bcb9=>this['editor']['plugins']['get']('Users')['getUser'](_0x51bcb9)),this['currentRevision']['_update'](_0x1ae315);}}async['saveRevision'](_0x58f649={},_0x3637cd=null){const _0x512c37=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3637cd>this['currentRevision']['toVersion']&&(_0x3637cd=null),null===_0x3637cd&&(_0x3637cd=await this['_source']['getLatestVersion']());const _0x230abb=this['_getFromVersion'](_0x3637cd),_0x3d344a=this['buildRevisionData']({'from':_0x230abb,'to':_0x3637cd});if(this['currentRevision']['toVersion']<_0x3637cd){const _0x51011c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3637cd,'to':_0x3637cd});_0x51011c['authors']=[],_0x51011c['authorsIds']=[],_0x51011c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x51011c,!0x0),delete _0x51011c['authors'],_0x512c37['push'](_0x51011c);}_0x58f649['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x58f649['name']=_0x58f649['name']||null,_0x58f649['id']=_0x58f649['id']||_0x556484(),_0x58f649={..._0x58f649,..._0x3d344a};const _0x32017a=this['addRevisionData'](_0x58f649);_0x512c37['push'](_0x58f649);const _0x10f9b0=this['repository']['getIndex'](_0x32017a);if(0x0!==_0x10f9b0){const _0x300426=this['repository']['getRevision'](_0x10f9b0-0x1);if(_0x300426['fromVersion']!==_0x3637cd){const _0x5402a5=this['_revisionDataBuilder']['getData'](_0x3637cd,_0x300426['toVersion']),_0x56976a={'id':_0x300426['id'],'diffData':_0x5402a5['diffData'],'authorsIds':_0x5402a5['authorsIds'],'authors':_0x5402a5['authorsIds']['map'](_0x1447d3=>this['editor']['plugins']['get']('Users')['getUser'](_0x1447d3)),'fromVersion':_0x3637cd};_0x300426===this['currentRevision']&&(_0x56976a['createdAt']=new Date(_0x58f649['createdAt']['getTime']()+0xa)),_0x300426['_update'](_0x56976a,!0x0),delete _0x56976a['authors'],_0x512c37['push'](_0x56976a);}}if(this['adapter']){for(const _0x433c1e of _0x512c37)this['_bufferUpdate'](_0x433c1e['id'],_0x433c1e,!0x0);this['sendBufferedUpdates']();}return _0x32017a;}['addRevisionData'](_0x8354e3){const _0xf6cb70=this['repository']['createRevision'](_0x8354e3);return this['adapter']&&_0xf6cb70['on']('_update',(_0x31920f,_0x1237f6,_0x4bbe7f)=>{_0x4bbe7f||(this['_bufferUpdate'](_0x1237f6['id'],_0x1237f6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xf6cb70,this['_findInsertionIndex'](_0xf6cb70)),_0xf6cb70;}async['getRevisionDocumentData'](_0x4e3378){return await this['_utils']['loadRevisionData'](_0x4e3378,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4e3378);}async['getRevisionRootsAttributes'](_0x56e02b){return await this['_utils']['loadRevisionData'](_0x56e02b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x56e02b);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x46d508=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x37c294=0x0;_0x37c294<_0x46d508['length'];_0x37c294++){const _0x5d4485=_0x46d508[_0x37c294];let _0x3b1baf=!0x1;for(const _0x565041 of Object['keys'](_0x5d4485))void 0x0===_0x5d4485[_0x565041]?delete _0x5d4485[_0x565041]:'id'!==_0x565041&&(_0x3b1baf=!0x0);_0x3b1baf||(_0x46d508[_0x37c294]=null);}if(_0x46d508=_0x46d508['filter'](_0x2745af=>null!==_0x2745af),!_0x46d508['length'])return;for(let _0x5db75c=0x0;_0x5db75c<_0x46d508['length'];_0x5db75c++){const _0x1aad10=_0x46d508[_0x5db75c];void 0x0!==_0x1aad10['fromVersion']&&void 0x0===_0x1aad10['toVersion']&&(_0x1aad10['toVersion']=this['repository']['getRevision'](_0x1aad10['id'])['toVersion']),void 0x0!==_0x1aad10['toVersion']&&void 0x0===_0x1aad10['fromVersion']&&(_0x1aad10['fromVersion']=this['repository']['getRevision'](_0x1aad10['id'])['fromVersion']);}const _0xf5351a=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x46d508,_0xf5351a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5a6c8a=>{if(_0x5a6c8a){for(const _0x82989f of _0x5a6c8a)this['setRevisionData']({'id':_0x82989f['id'],'createdAt':_0x82989f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2a2f02=null,from:_0x486626=null,to:_0x2e2eb7=null}){_0x486626=null!==_0x486626?_0x486626:_0x2a2f02['fromVersion'],_0x2e2eb7=null!==_0x2e2eb7?_0x2e2eb7:_0x2a2f02['toVersion'];const _0x16ab96=this['_revisionDataBuilder']['getData'](_0x486626,_0x2e2eb7),_0x5d6eb3={'diffData':_0x16ab96['diffData'],'authorsIds':_0x16ab96['authorsIds'],'fromVersion':_0x486626,'toVersion':_0x2e2eb7};if(!_0x2a2f02||_0x2e2eb7!==_0x2a2f02['toVersion']){const _0x409479=_0x2e2eb7-0x1,_0x78370e=this['_source']['history']['getOperation'](_0x409479);_0x5d6eb3['createdAt']=_0x78370e&&_0x78370e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x486626===this['_loadedStateData']['fromVersion']){for(const _0x93ecd2 of this['_loadedStateData']['authors'])_0x5d6eb3['authorsIds']['includes'](_0x93ecd2['id'])||_0x5d6eb3['authorsIds']['push'](_0x93ecd2['id']);}return _0x5d6eb3;}['_bufferUpdate'](_0x217c3e,_0x3d687b,_0x3c4355){if(this['_bufferedUpdates']['has'](_0x217c3e)){const _0x537db9=this['_bufferedUpdates']['get'](_0x217c3e);_0x3d687b=_0x3c4355?{..._0x537db9,..._0x3d687b}:{..._0x3d687b,..._0x537db9};}this['_bufferedUpdates']['set'](_0x217c3e,_0x3d687b);}['setRevisionData'](_0x5a9ede){const _0x24a578=this['repository']['getRevision'](_0x5a9ede['id']);if(_0x5a9ede['createdAt']&&(_0x5a9ede['createdAt']=new Date(_0x5a9ede['createdAt'])),_0x5a9ede['authorsIds']){const _0x9a2959=this['editor']['plugins']['get']('Users');_0x5a9ede['authors']=_0x5a9ede['authorsIds']['map'](_0x5260d2=>_0x9a2959['getUser'](_0x5260d2));}_0x24a578['_update'](_0x5a9ede,!0x0);}['_createInitialRevision'](_0x4bcce4){const _0x30d2a7=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x30d2a7)this['_initialRevisionId']=_0x30d2a7['id'];else{const _0x538f79=!this['editor']['model']['document']['roots']['find'](_0x24511f=>this['editor']['model']['hasContent'](_0x24511f)),_0x519e14=this['editor']['plugins']['get']('Users')['me']['id'],_0x137678=g(this['editor']['locale'],_0x538f79?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4bcce4,'to':_0x4bcce4,'id':this['_initialRevisionId'],'name':_0x137678,'creatorId':_0x519e14});}}['_createCurrentRevision'](_0x307c1a){const _0x14ce36=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x14ce36),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x307c1a,'to':_0x307c1a,'id':_0x14ce36,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x286df4,_0x5b9dbe){let _0x4cf36e=this['editor']['config']['get']('initialData'),_0x2c1ae0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4cf36e){_0x4cf36e={};for(const _0x39f1c3 of this['editor']['model']['document']['getRootNames']())_0x4cf36e[_0x39f1c3]='';}if('string'==typeof _0x4cf36e&&(_0x4cf36e={'main':_0x4cf36e}),void 0x0===_0x2c1ae0){_0x2c1ae0={};for(const _0x36687f of this['editor']['model']['document']['getRootNames']())_0x2c1ae0[_0x36687f]={};}let _0x4346c9=!0x1;const _0x1db584=Object['keys'](_0x4cf36e),_0x533db2=Object['keys'](_0x286df4);for(const _0x4de551 of _0x1db584){if(_0x4cf36e[_0x4de551]!==_0x286df4[_0x4de551]&&''!==_0x4cf36e[_0x4de551]['trim']()){_0x4346c9=!0x0;break;}if(!_0x39bdb9(_0x2c1ae0[_0x4de551],_0x5b9dbe[_0x4de551])&&Object['keys'](_0x2c1ae0[_0x4de551])['length']>0x0){_0x4346c9=!0x0;break;}}_0x4346c9||(_0x4346c9=_0x533db2['some'](_0x5d11ca=>!this['editor']['model']['document']['getRoot'](_0x5d11ca))),_0x4346c9&&_0x3cf471('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4cf36e,'editorRootsAttributes':_0x2c1ae0,'revisionData':_0x286df4,'revisionRootsAttributes':_0x5b9dbe}),this['editor']['config']['set']('initialData',_0x286df4),this['editor']['config']['set']('rootsAttributes',_0x5b9dbe);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4a8c57=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4a8c57['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x517499){const _0x1f6a89=this['repository']['getRevisions']();_0x1f6a89['reverse']();let _0x1acdc1=0x0;for(;_0x1acdc1<_0x1f6a89['length'];){const _0x12ef27=_0x1f6a89[_0x1acdc1];if(_0x12ef27===this['currentRevision']){_0x1acdc1++;continue;}if(_0x12ef27['id']===this['_initialRevisionId'])break;const _0xb91dc7=_0x517499['toVersion']-_0x12ef27['toVersion']||_0x517499['fromVersion']-_0x12ef27['fromVersion'];if(_0xb91dc7>0x0)break;if(_0xb91dc7<0x0)_0x1acdc1++;else{if(!_0x517499['creator']&&_0x12ef27['creator'])break;if(_0x12ef27['creator']||!_0x517499['creator']){if(_0x517499['createdAt']>_0x12ef27['createdAt'])break;_0x1acdc1++;}else _0x1acdc1++;}}return _0x1acdc1;}['_getFromVersion'](_0x2686cc){const _0x391c3e=this['repository']['getRevisions']();_0x391c3e['reverse'](),_0x391c3e['shift']();const _0x592bd6=_0x391c3e['find'](_0x3a5594=>_0x3a5594['toVersion']<=_0x2686cc)['toVersion'];return _0x592bd6<this['_startingVersion']?this['_startingVersion']:_0x592bd6;}['_makeRevision']({name:_0x2a5c18,from:_0x375084,to:_0xe3bbb6,creatorId:_0x403ec0,id:_0x3fe650}){const _0x2d204d=this['buildRevisionData']({'from':_0x375084,'to':_0xe3bbb6});_0x2d204d['name']=_0x2a5c18,_0x2d204d['creatorId']=_0x403ec0,_0x2d204d['id']=_0x3fe650;const _0x59cf56=this['addRevisionData'](_0x2d204d);return this['adapter']&&this['_bufferUpdate'](_0x2d204d['id'],_0x2d204d,!0x0),_0x59cf56;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4efd55){this['editor']=_0x4efd55,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'](_0x20c8c9){this['source']=_0x20c8c9;const _0x37f740=new Map(),_0x28fdd1=new Map(),_0x4708d7=this['editor']['model']['document']['roots']['map'](_0x22f870=>_0x22f870['rootName']);for(const _0x89f6f0 of _0x4708d7){const _0x42dee2=this['editor']['model']['document']['getRoot'](_0x89f6f0),_0x5aa208=N(_0x42dee2);_0x37f740['set'](_0x89f6f0,_0x5aa208),_0x28fdd1['set'](_0x89f6f0,Object['fromEntries'](_0x42dee2['getAttributes']()));}const _0x5824b5=Array['from'](this['editor']['model']['markers'])['map'](_0x4f5ae8=>[_0x4f5ae8['name'],_0x4f5ae8['getRange']()]),_0x126506=this['source']['version'];this['_saveMetaData'](_0x126506,_0x37f740,_0x5824b5,_0x28fdd1),this['_startingRevisionId']=this['_revisionId'];const _0x1e2cd5=new Map(),_0x32290d=new Map();for(const _0x4b6e35 of _0x4708d7){const _0x58b43d=P(_0x4b6e35);_0x1e2cd5['set'](_0x4b6e35,_0x58b43d),_0x32290d['set'](_0x4b6e35,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1e2cd5,[],_0x32290d);}['getData'](_0xb0965e,_0x332154){if(this['_lastFrom']===_0xb0965e&&this['_lastTo']<=_0x332154)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x332154,!0x0);else{if(!this['_savedMetaData']['has'](_0xb0965e)){const _0x9b1c6=this['_getPreviousFrom'](_0xb0965e);this['_calculateMetaData'](_0x9b1c6,_0xb0965e,!0x1);}this['_calculateMetaData'](_0xb0965e,_0x332154,!0x0);}return this['_lastFrom']=_0xb0965e,this['_lastTo']=_0x332154,this['_getState']();}['loadState'](_0x249564){const _0x42a08d=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x249564['fromVersion'],this['_lastTo']=_0x249564['toVersion'];for(const _0x34d28a in _0x249564['diffData']){const _0x5c1325=_0x249564['diffData'][_0x34d28a]['attachChange'],_0x1bb2dc=_0xc162bf(_0x249564['diffData'][_0x34d28a]['attributesBefore'])||{},_0x4ba9cc=_0x42a08d['_makeModelFromViewString'](_0x249564['diffData'][_0x34d28a]['deletions']);_0x4ba9cc['rootName']=_0x34d28a,_0x4ba9cc['_isAttached']=!_0x5c1325||!_0x5c1325['isAttached'],_0x4ba9cc['isAttached']=()=>_0x4ba9cc['_isAttached'],this['_baseRoots']['set'](_0x34d28a,_0x4ba9cc),this['_baseRootsAttributes']['set'](_0x34d28a,_0x1bb2dc),_0x5c1325&&this['_touchedRoots']['set'](_0x34d28a,_0x5c1325);const _0xcaa144=this['_makeIdsRoot'](_0x4ba9cc);this['_baseIdsRoots']['set'](_0x34d28a,_0xcaa144);for(const [_0x4a9993,_0x2e02e1]of _0x4ba9cc['markers']){if(!_0x4a9993['startsWith']('revision:'))continue;const _0x200d2a=_0x4a9993['split'](':')[0x2];for(const _0x461154 of _0x2e02e1['getWalker']({'singleCharacters':!0x0})){const _0x1886e0=this['_getVidAttributeName'](_0x461154),_0x3f52bd='elementEnd'==_0x461154['type']?_0x461154['previousPosition']['path']['slice'](0x0,-0x1):_0x461154['previousPosition']['path'],_0x3327b7=_0xcaa144['getNodeByPath'](_0x3f52bd)['getAttribute'](_0x1886e0);this['_touched']['set'](_0x3327b7,{'userId':_0x200d2a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x123f21=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xe022a8=>!this['_touched']['has'](_0xe022a8));let _0x4412aa=0x0;const _0x3ab903=new Map();for(const _0x3117bd in _0x249564['diffData']){const _0x1608bc=_0x249564['diffData'][_0x3117bd]['attachChange'],_0x5d8932=_0xc162bf(_0x249564['diffData'][_0x3117bd]['attributesAfter'])||{},_0x131da0=_0x42a08d['_makeModelFromViewString'](_0x249564['diffData'][_0x3117bd]['insertions']);_0x131da0['rootName']=_0x3117bd,_0x131da0['_isAttached']=!_0x1608bc||_0x1608bc['isAttached'],_0x131da0['isAttached']=()=>_0x131da0['_isAttached'],this['_diffRoots']['set'](_0x3117bd,_0x131da0),this['_diffRootsAttributes']['set'](_0x3117bd,_0x5d8932);const _0x161123=this['_makeIdsRoot'](_0x131da0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3117bd,_0x161123),_0x3ab903['set'](_0x3117bd,_0x131da0['isAttached']()?_0x5d8932:{});for(const [_0x3b2132,_0x5eef29]of _0x131da0['markers']){if(!_0x3b2132['startsWith']('revision:'))continue;const _0x2add1f=_0x3b2132['split'](':')[0x2];for(const _0x5beb16 of _0x5eef29['getWalker']({'singleCharacters':!0x0})){const _0x4f7b51=this['_getVidAttributeName'](_0x5beb16),_0x1f5023=this['_revisionId']++,_0x345b77='elementEnd'==_0x5beb16['type']?_0x5beb16['previousPosition']['path']['slice'](0x0,-0x1):_0x5beb16['previousPosition']['path'];_0x161123['getNodeByPath'](_0x345b77)['_setAttribute'](_0x4f7b51,_0x1f5023),this['_touched']['set'](_0x1f5023,{'userId':_0x2add1f});}}for(const _0x36902e of this['editor']['model']['createRangeIn'](_0x131da0)['getWalker']({'singleCharacters':!0x0})){const _0x5e4cb8=this['_getVidAttributeName'](_0x36902e),_0x489244='elementEnd'==_0x36902e['type']?_0x36902e['previousPosition']['path']['slice'](0x0,-0x1):_0x36902e['previousPosition']['path'],_0x20c926=_0x161123['getNodeByPath'](_0x489244);_0x20c926['getAttribute'](_0x5e4cb8)>0x0||_0x20c926['_setAttribute'](_0x5e4cb8,_0x123f21[_0x4412aa++]);}for(const [_0xc80045,_0x834e41]of _0x131da0['markers'])_0xc80045['startsWith']('revision:')||this['_markers']['set'](_0xc80045,_0x834e41);}const _0x232210=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x232210),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x232210,0x1));const _0x47bb75=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x47bb75),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x47bb75,0x1));const _0x5d8cdd=Array['from'](this['_diffRoots'])['map'](([_0x5637de,_0x2489b1])=>[_0x5637de,N(_0x2489b1)]);this['_saveMetaData'](this['_lastTo'],_0x5d8cdd,this['_markers'],_0x3ab903);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5230e3,_0x3e392e,_0x38ec31,_0x318f76){const _0x352512=new Map(_0x3e392e),_0x561593=new Map(_0xc162bf(_0x318f76)),_0x1a34ee=new Map();for(const [_0x4e1771,_0x5580df]of _0x38ec31)_0x1a34ee['set'](_0x4e1771,{'start':_0x5580df['start']['clone'](),'end':_0x5580df['end']['clone'](),'rootName':_0x5580df['root']['rootName']});this['_savedMetaData']['set'](_0x5230e3,{'roots':_0x352512,'markers':_0x1a34ee,'rootsAttributes':_0x561593});}['_removeMetaData'](_0x12e0ec){this['_savedMetaData']['delete'](_0x12e0ec);}['_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'](_0x1ed3db,_0xa195a7=null){let _0x382d36=null;_0x1ed3db['is']('documentFragment')||(_0x382d36=new ut(_0x1ed3db['name'],{'vid_start':null===_0xa195a7?this['_revisionId']++:_0xa195a7++}));const _0x254caa=[];for(const _0x5c7579 of _0x1ed3db['getChildren']())if(_0x5c7579['is']('element')){_0x254caa['push'](this['_makeIdsRoot'](_0x5c7579,_0xa195a7));const _0x58fd5b=_0x254caa[_0x254caa['length']-0x1];null!==_0xa195a7&&(_0xa195a7=_0x58fd5b['is']('element','$text')?_0x58fd5b['getAttribute']('vid')+0x1:_0x58fd5b['getAttribute']('vid_end')+0x1);}else{for(let _0x1c8a28=0x0;_0x1c8a28<_0x5c7579['offsetSize'];_0x1c8a28++)_0x254caa['push'](new ut('$text',{'vid':null===_0xa195a7?this['_revisionId']++:_0xa195a7++}));}if(_0x1ed3db['is']('documentFragment')){const _0x3dc2f0=P(_0x1ed3db['rootName']);return _0x3dc2f0['_insertChild'](0x0,_0x254caa),_0x3dc2f0;}return _0x382d36['_setAttribute']('vid_end',null===_0xa195a7?this['_revisionId']++:_0xa195a7++),_0x382d36['_insertChild'](0x0,_0x254caa),_0x382d36;}['_calculateMetaData'](_0x1ff93b,_0x1c1aff,_0x30e661){this['_reset']();const {roots:_0x4b9140,markers:_0xc0365c,rootsAttributes:_0x494e0d}=this['_savedMetaData']['get'](_0x1ff93b);this['_baseRoots']=new Map(_0x4b9140),this['_baseRootsAttributes']=new Map(_0xc162bf(_0x494e0d));for(const [_0x1f0d69,_0xe7de5e]of this['_baseRoots'])if('$graveyard'!==_0x1f0d69&&(this['_diffRoots']['set'](_0x1f0d69,N(_0xe7de5e)),this['_diffRootsAttributes']=new Map(_0xc162bf(_0x494e0d)),_0x30e661)){const _0x9e635=this['_revisionId'];this['_idsRoots']['set'](_0x1f0d69,this['_makeIdsRoot'](_0xe7de5e)),this['_baseIdsRoots']['set'](_0x1f0d69,this['_makeIdsRoot'](_0xe7de5e,_0x9e635));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x30e661&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x30e9a9,_0x371bef]of _0xc0365c){const _0x325ba8=this['_baseRoots']['get'](_0x371bef['rootName']),_0x5e329b=this['_diffRoots']['get'](_0x371bef['rootName']),_0x1aef17=new ft(this['_fixPosition'](_0x371bef['start'],_0x325ba8),this['_fixPosition'](_0x371bef['end'],_0x325ba8)),_0x217903=this['_fixRange'](_0x1aef17,_0x5e329b);_0x325ba8['markers']['set'](_0x30e9a9,_0x1aef17),this['_markers']['set'](_0x30e9a9,_0x217903);}this['_applyOperations'](_0x1ff93b,_0x1c1aff,_0x30e661);}['_applyOperations'](_0x42abe5,_0xbbcd71,_0x286abf){for(const _0x82c6db of this['source']['getOperations'](_0x42abe5,_0xbbcd71))this['_handleOperation'](_0x82c6db,_0x286abf);for(const _0x41ce6d of this['_diffRoots']['values']())_0x41ce6d['markers']['clear']();for(const [_0x105c04,_0x21a4c2]of this['_markers']){this['_diffRoots']['get'](_0x21a4c2['root']['rootName'])['markers']['set'](_0x105c04,_0x21a4c2['clone']());}const _0x59e707=new Map(),_0x233a19=new Map();for(const [_0xbb8494,_0x4bad47]of this['_diffRoots'])_0x59e707['set'](_0xbb8494,N(_0x4bad47)),_0x233a19['set'](_0xbb8494,this['_diffRootsAttributes']['get'](_0xbb8494));this['_saveMetaData'](_0xbbcd71,_0x59e707,this['_markers'],_0x233a19);}['_getPreviousFrom'](_0x215c10){const _0x1f49ae=Array['from'](this['_savedMetaData']['keys']());_0x1f49ae['sort']((_0x4634e8,_0x1e2104)=>_0x4634e8-_0x1e2104),_0x1f49ae['reverse']();for(const _0x1a18bf of _0x1f49ae)if(_0x1a18bf<_0x215c10)return _0x1a18bf;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5f5a6f,_0x21f6a8){const _0x26d6f7=Array['from'](_0x21f6a8['markers'])['map'](([_0x612961,_0x3f1301])=>[_0x612961,this['_fixRange'](_0x3f1301,_0x5f5a6f)]);_0x5f5a6f['markers']=new Map(_0x26d6f7);}['_transformMarkers'](_0x5a3f4b){for(const _0x16036a of this['_markers']['values']()){const _0x51f1ac=_0x16036a['getTransformedByOperation'](_0x5a3f4b),_0x1404f1=ft['_createFromRanges'](_0x51f1ac);_0x16036a['start']=_0x1404f1['start'],_0x16036a['end']=_0x1404f1['end'];}}['_handleOperation'](_0x131d1a,_0x483cfc){if('addRoot'!=_0x131d1a['type']&&'detachRoot'!=_0x131d1a['type']){if('insert'==_0x131d1a['type']){const _0x37cb8f=_0x131d1a['position']['root']['rootName'];this['_diffRoots']['has'](_0x37cb8f)||(this['_diffRoots']['set'](_0x37cb8f,P(_0x37cb8f,!0x0)),this['_diffRootsAttributes']['set'](_0x37cb8f,{}),_0x483cfc&&this['_idsRoots']['set'](_0x37cb8f,P(_0x37cb8f,!0x0)));}else{if('addRootAttribute'==_0x131d1a['type']||'removeRootAttribute'==_0x131d1a['type']||'changeRootAttribute'==_0x131d1a['type'])return void this['_handleRootAttributeOperation'](_0x131d1a);'marker'==_0x131d1a['type']&&this['_handleMarkerOperation'](_0x131d1a);}if('marker'!==_0x131d1a['type']){const _0x630206=this['_cloneOperation'](_0x131d1a,this['_diffRoots']);_0x630206['_execute'](),this['_transformMarkers'](_0x630206);}if(_0x483cfc)switch(_0x131d1a['type']){case'insert':this['_handleInsertOperation'](_0x131d1a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x131d1a);break;case'merge':this['_handleMergeOperation'](_0x131d1a);break;case'split':this['_handleSplitOperation'](_0x131d1a);}}else this['_handleRootOperation'](_0x131d1a,_0x483cfc);}['_cloneOperation'](_0x44bf6c,_0x1d6679){const _0x565d2b=_0x44bf6c['clone']();return _0x565d2b['_authorId']=_0x44bf6c['_authorId'],this['_fixOperation'](_0x565d2b,_0x1d6679),_0x565d2b;}['_getBaseVids'](_0x17a0d3){return _0x17a0d3['map'](_0x1be801=>{const _0xb8bbcf=this['_getVidAttributeName'](_0x1be801);return Number(_0x1be801['item']['getAttribute'](_0xb8bbcf));});}['_generateTape'](_0x2c890b,_0x633ec5){if(_0x2c890b['is']('element','$text'))_0x633ec5['push']({'item':_0x2c890b,'type':'text'});else{_0x2c890b['is']('element')&&_0x633ec5['push']({'item':_0x2c890b,'type':'elementStart'});for(const _0x4c30ed of _0x2c890b['getChildren']())this['_generateTape'](_0x4c30ed,_0x633ec5);_0x2c890b['is']('element')&&_0x633ec5['push']({'item':_0x2c890b,'type':'elementEnd'});}return _0x633ec5;}['_getState'](){const _0x4f54a3=new Map(this['_touched']),_0x36f707=new Map(_0x4f54a3),_0x32d6a5=new Map(),_0x274864={'insertions':{},'deletions':{}},_0x45bc0c={'insertions':{},'deletions':{}},_0x29bbc1=new Map(),_0x36962a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x36962a['delete']('$graveyard');for(const _0x1f5822 of _0x36962a){const _0x1950a7=this['_diffRoots']['get'](_0x1f5822)||P(_0x1f5822,!0x1),_0x4b18d4=this['_baseRoots']['get'](_0x1f5822)||P(_0x1f5822,!0x1);_0x1950a7['isAttached']()||_0x4b18d4['isAttached']()?(_0x274864['insertions'][_0x1f5822]=N(_0x1950a7),_0x274864['deletions'][_0x1f5822]=N(_0x4b18d4),this['_copyMarkers'](_0x274864['deletions'][_0x1f5822],_0x4b18d4),this['_copyMarkers'](_0x274864['insertions'][_0x1f5822],_0x1950a7),_0x45bc0c['insertions'][_0x1f5822]=this['_generateTape'](this['_idsRoots']['get'](_0x1f5822),[]),_0x45bc0c['deletions'][_0x1f5822]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1f5822)||P(_0x1f5822,!0x1),[])):_0x36962a['delete'](_0x1f5822);}for(const _0x36d336 of _0x36962a){const _0x2b1bf0=_0x45bc0c['insertions'][_0x36d336];for(const _0x562c0e of _0x2b1bf0){const _0x3a18f8=this['_getVidAttributeName'](_0x562c0e),_0x189d3c=_0x562c0e['item']['getAttribute'](_0x3a18f8);_0x36f707['delete'](_0x189d3c),_0x189d3c>=this['_startingRevisionId']&&_0x32d6a5['set'](_0x189d3c,_0x4f54a3['get'](_0x189d3c));}}for(const _0x57b4fd of _0x36962a){const _0x2e71a9=_0x45bc0c['insertions'][_0x57b4fd],_0x2c9e47=this['_getBaseVids'](_0x45bc0c['deletions'][_0x57b4fd]);let _0x3a1c24=0x0;for(const _0x43d828 of _0x2e71a9){const _0x74aad8=this['_getVidAttributeName'](_0x43d828),_0x3456ac=_0x43d828['item']['getAttribute'](_0x74aad8);if(!_0x32d6a5['has'](_0x3456ac)&&!_0x29bbc1['has'](_0x3456ac)){if(_0x36f707['has'](_0x3456ac))_0x3a1c24++;else{if(_0x3456ac!=_0x2c9e47[_0x3a1c24]){const _0x1f3c1e=_0x4f54a3['get'](_0x3456ac)||_0x4f54a3['get'](_0x2c9e47[_0x3a1c24]);for(;_0x3456ac!=_0x2c9e47[_0x3a1c24];)_0x36f707['has'](_0x2c9e47[_0x3a1c24])||(_0x29bbc1['set'](_0x2c9e47[_0x3a1c24],_0x1f3c1e),_0x4f54a3['set'](_0x2c9e47[_0x3a1c24],_0x1f3c1e)),_0x3a1c24++;}_0x3a1c24++;}}}}for(const _0x48b42a of _0x36962a){const _0x5f886f=_0x45bc0c['insertions'][_0x48b42a];for(const _0x2d0d31 of _0x5f886f){const _0x1d2845=this['_getVidAttributeName'](_0x2d0d31),_0x19abce=_0x2d0d31['item']['getAttribute'](_0x1d2845);if(_0x29bbc1['has'](_0x19abce)){const _0x44f38f=_0x29bbc1['get'](_0x19abce);_0x36f707['has'](_0x19abce)||_0x36f707['set'](_0x19abce,{..._0x44f38f}),_0x32d6a5['set'](_0x19abce,{..._0x44f38f});}}}for(const _0x48d46e of _0x36f707['keys']())_0x48d46e>=this['_startingRevisionId']&&_0x36f707['delete'](_0x48d46e);const _0x427834=new Map();for(const _0x3cb5a3 of _0x36962a){let _0x2f17ea=_0x45bc0c['insertions'][_0x3cb5a3];for(const _0x39a2d0 of _0x2f17ea)if(_0x39a2d0['item']['is']('element','tableCell')){const _0x5674e1=this['_getVidAttributeName'](_0x39a2d0),_0x2671cb=_0x39a2d0['item']['getAttribute'](_0x5674e1);if(_0x32d6a5['has'](_0x2671cb)){const _0x472859=_0x39a2d0['item']['parent']['parent']['getAttribute']('vid_start'),_0xc0a83a=_0x427834['get'](_0x472859)||new Set();_0xc0a83a['add'](_0x32d6a5['get'](_0x2671cb)['userId']),_0x427834['set'](_0x472859,_0xc0a83a);}}_0x2f17ea=_0x45bc0c['deletions'][_0x3cb5a3];for(const _0x14aa96 of _0x2f17ea)if(_0x14aa96['item']['is']('element','tableCell')){const _0xd8349a=this['_getVidAttributeName'](_0x14aa96),_0x56dc9f=_0x14aa96['item']['getAttribute'](_0xd8349a);if(_0x36f707['has'](_0x56dc9f)){const _0x33431f=_0x14aa96['item']['parent']['parent']['getAttribute']('vid_start'),_0x5caf42=_0x427834['get'](_0x33431f)||new Set();_0x5caf42['add'](_0x36f707['get'](_0x56dc9f)['userId']),_0x427834['set'](_0x33431f,_0x5caf42);}}for(const _0x169d4f of _0x427834['keys']())(_0x32d6a5['has'](_0x169d4f)||_0x36f707['has'](_0x169d4f))&&_0x427834['delete'](_0x169d4f);}for(const _0x382e68 of _0x36962a){const _0x2a8be0=_0x45bc0c['insertions'][_0x382e68];let _0x509ae6=null,_0x1900ec=null;for(const _0x45beab of _0x2a8be0){const _0x205baf=this['_getVidAttributeName'](_0x45beab),_0xf8ec6d=_0x45beab['item']['getAttribute'](_0x205baf),_0x3898e8=_0x427834['get'](_0xf8ec6d);_0x3898e8&&'elementStart'==_0x45beab['type']&&(_0x509ae6=Array['from'](_0x3898e8)[0x0],_0x1900ec=_0x45beab['item']['getAttribute']('vid_end')),_0x509ae6&&(_0x36f707['set'](_0xf8ec6d,{'userId':_0x509ae6}),_0x32d6a5['set'](_0xf8ec6d,{'userId':_0x509ae6})),_0xf8ec6d==_0x1900ec&&(_0x509ae6=null,_0x1900ec=null);}}const _0x2d68dc={},_0x1d59b5=new Set();for(const _0x3d2865 of _0x36962a){const _0xecffff=_0x274864['deletions'][_0x3d2865],_0x3c1ac9=_0x274864['insertions'][_0x3d2865];for(const {userId:_0x41e78e}of this['_touchedMarkers']['values']())null!==_0x41e78e&&_0x1d59b5['add'](_0x41e78e);for(const {userId:_0x342f52}of this['_touchedRoots']['values']())null!==_0x342f52&&_0x1d59b5['add'](_0x342f52);this['_markChanges'](_0x3c1ac9,_0x45bc0c['insertions'][_0x3d2865],_0x32d6a5,'insertion',_0x1d59b5),this['_markChanges'](_0xecffff,_0x45bc0c['deletions'][_0x3d2865],_0x36f707,'deletion',_0x1d59b5),_0x2d68dc[_0x3d2865]={'insertions':this['_prepareViewToSave'](_0x3c1ac9),'deletions':this['_prepareViewToSave'](_0xecffff),'attachChange':this['_touchedRoots']['get'](_0x3d2865)||null,'attributesBefore':_0xc162bf(this['_baseRootsAttributes']['get'](_0x3d2865))||{},'attributesAfter':_0xc162bf(this['_diffRootsAttributes']['get'](_0x3d2865))};}return{'diffData':_0x2d68dc,'authorsIds':Array['from'](_0x1d59b5)};}['_processRootBeforeSave'](_0x82a797){for(const [,_0x124115]of _0x82a797['markers']){const _0x418eff=_0x124115['start']['getAncestors']()['filter'](_0x280fa7=>'tableCell'==_0x280fa7['name']);for(const _0x539634 of _0x418eff)0x1==_0x539634['childCount']&&_0x539634['getChild'](0x0)['is']('element','paragraph')&&_0x539634['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3b9644){this['_processRootBeforeSave'](_0x3b9644);const _0x2302d9=this['editor']['data']['toView'](_0x3b9644,{}),_0xf0afb3=Array['from'](_0x2302d9['getChildren']())['map'](_0x3ff4d5=>this['_getViewJson'](_0x3ff4d5));return JSON['stringify'](_0xf0afb3);}['_getViewJson'](_0x282afe){if(_0x282afe['is']('$text'))return _0x282afe['data'];{const _0x25290a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3501ee=_0x282afe,_0x30b5f2=this['editor']['data']['htmlProcessor']['domConverter'],_0x2397d4={'type':_0x25290a['_getTypeCharForViewElement'](_0x3501ee),'name':_0x3501ee['name'],'attributes':Array['from'](_0x3501ee['getAttributes']()),'children':Array['from'](_0x3501ee['getChildren']())['map'](_0x4875b5=>this['_getViewJson'](_0x4875b5))};if(_0x282afe['is']('uiElement')&&'$comment'!=_0x282afe['name']){const _0x167010=_0x282afe['render'](_0x30b5f2['domDocument'],_0x30b5f2);_0x2397d4['children']['push'](_0x167010['outerHTML']);}else{if(_0x282afe['is']('rawElement')){const _0x3e2e6d=_0x30b5f2['domDocument']['createElement'](_0x3501ee['name']);_0x282afe['render'](_0x3e2e6d,_0x30b5f2),_0x2397d4['children']['push'](_0x3e2e6d['innerHTML']);}}const _0x2c4f38=Array['from'](_0x3501ee['getCustomProperties']());_0x2c4f38['length']>0x0&&(_0x2397d4['customProperties']=_0x2c4f38);const _0x45f750=_0x3501ee['getFillerOffset']();return null!==_0x45f750&&(_0x2397d4['fillerOffset']=_0x45f750),_0x2397d4;}}['_markChanges'](_0x4473d9,_0x4a072b,_0x33be52,_0x13d89a,_0x9d327c){let _0x52013e=null,_0x127101=null,_0x187049=0x0;const _0x595dd3=this['editor']['model'];for(let _0x132130=0x0;_0x132130<_0x4a072b['length'];_0x132130++){const _0x6f2c71=this['_getVidAttributeName'](_0x4a072b[_0x132130]),_0x5af34c=_0x4a072b[_0x132130]['item']['getAttribute'](_0x6f2c71),_0x90d572=_0x33be52['get'](_0x5af34c),_0x1332c0=_0x132130==_0x4a072b['length']-0x1;(!_0x52013e&&_0x90d572&&(_0x52013e=_0x90d572,_0x127101=_0x4a072b[_0x132130]),_0x52013e&&(!_0x90d572||_0x90d572['userId']!=_0x52013e['userId']))&&(_0xa6fd7a(_0x90d572,F(_0x127101,_0x4473d9,_0x595dd3),F(_0x4a072b[_0x132130],_0x4473d9,_0x595dd3)),_0x52013e=_0x90d572||null,_0x127101=_0x90d572?_0x4a072b[_0x132130]:null),_0x52013e&&_0x1332c0&&_0xa6fd7a(_0x90d572,F(_0x127101,_0x4473d9,_0x595dd3),B(_0x4a072b[_0x132130],_0x4473d9,_0x595dd3));}function _0xa6fd7a(_0x22e823,_0x3376ef,_0x50908b){const _0x17818d=_0x52013e['userId'],_0x4510b1='revision:'+_0x13d89a+':'+_0x17818d+':'+_0x187049++,_0x34a686=_0x595dd3['createRange'](_0x3376ef,_0x50908b);_0x4473d9['markers']['set'](_0x4510b1,_0x34a686),null!==_0x17818d&&_0x9d327c['add'](_0x17818d);}}['_getVidAttributeName'](_0x4267ef){switch(_0x4267ef['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x58e19e,_0x163a47){_0x58e19e['baseVersion']=null;for(const _0x4fc594 in _0x58e19e){const _0x149072=_0x58e19e[_0x4fc594];if(_0x149072 instanceof vt){const _0x3cb639=_0x163a47['get'](_0x149072['root']['rootName']);_0x58e19e[_0x4fc594]=this['_fixPosition'](_0x149072,_0x3cb639);}if(_0x149072 instanceof ft){const _0x5c5fb8=_0x163a47['get'](_0x149072['root']['rootName']);_0x58e19e[_0x4fc594]=this['_fixRange'](_0x149072,_0x5c5fb8);}'root'===_0x4fc594&&(_0x58e19e['root']=_0x163a47['get'](_0x58e19e['root']['rootName']));}}['_fixRange'](_0x30ce02,_0x50101a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x30ce02['start'],_0x50101a),this['_fixPosition'](_0x30ce02['end'],_0x50101a));}['_fixPosition'](_0x43c5d2,_0x21c4be){return this['editor']['model']['createPositionFromPath'](_0x21c4be,_0x43c5d2['path'],_0x43c5d2['stickiness']);}['_handleInsertOperation'](_0x371048){const _0x21c16d=this['_idsRoots']['get'](_0x371048['position']['root']['rootName']),_0x17b825=this['_fixPosition'](_0x371048['position'],_0x21c16d),_0x2829b2=null===_0x371048['_authorId']?null:_0x371048['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b000d=_0x17b825['parent'],_0xf92aca=this['_revisionId'],_0x418918=[];for(const _0x4cbc41 of _0x371048['nodes'])if(_0x4cbc41['is']('element'))_0x418918['push'](this['_makeIdsRoot'](_0x4cbc41));else{for(let _0x2f91c7=0x0;_0x2f91c7<_0x4cbc41['offsetSize'];_0x2f91c7++)_0x418918['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x135d34=this['_revisionId'];for(let _0x3461d4=_0xf92aca;_0x3461d4<_0x135d34;_0x3461d4++)this['_touched']['set'](_0x3461d4,{'userId':_0x2829b2});_0x4b000d['_insertChild'](_0x17b825['offset'],_0x418918);}['_handleMoveOperation'](_0x5ebcc7){(_0x5ebcc7=this['_cloneOperation'](_0x5ebcc7,this['_idsRoots']))['_execute']();const _0x34db6a=null===_0x5ebcc7['_authorId']?null:_0x5ebcc7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40f170=_0x5ebcc7['getMovedRangeStart'](),_0x32a201=_0x40f170['parent'],_0x5db2db=_0x40f170['offset'];!function _0xf79b3f(_0x550aeb,_0x51f535,_0x265340,_0x27ffad){for(let _0x22ff2a=_0x265340;_0x22ff2a<_0x27ffad;_0x22ff2a++){const _0x52bf90=_0x51f535['getChild'](_0x22ff2a);_0x52bf90['is']('element','$text')?_0x550aeb['set'](_0x52bf90['getAttribute']('vid'),{'userId':_0x34db6a}):(_0x550aeb['set'](_0x52bf90['getAttribute']('vid_start'),{'userId':_0x34db6a}),_0xf79b3f(_0x550aeb,_0x52bf90,0x0,_0x52bf90['childCount']),_0x550aeb['set'](_0x52bf90['getAttribute']('vid_end'),{'userId':_0x34db6a}));}}(this['_touched'],_0x32a201,_0x5db2db,_0x5db2db+_0x5ebcc7['howMany']);}['_handleMergeOperation'](_0x3b7588){const _0x228c9a=null===(_0x3b7588=this['_cloneOperation'](_0x3b7588,this['_idsRoots']))['_authorId']?null:_0x3b7588['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x31b379=_0x3b7588['targetPosition']['parent'],_0x5eb57b=_0x3b7588['sourcePosition']['parent'],_0x2629cc=_0x31b379['getAttribute']('vid_end'),_0x51cc64=_0x5eb57b['getAttribute']('vid_start');_0x31b379['_setAttribute']('vid_end',_0x5eb57b['getAttribute']('vid_end')),_0x5eb57b['_setAttribute']('vid_end',_0x2629cc),this['_touched']['set'](_0x51cc64,{'userId':_0x228c9a}),this['_touched']['set'](_0x2629cc,{'userId':_0x228c9a}),_0x3b7588['_execute']();}['_handleSplitOperation'](_0x1aec37){const _0x2877bc=null===(_0x1aec37=this['_cloneOperation'](_0x1aec37,this['_idsRoots']))['_authorId']?null:_0x1aec37['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38ada8=_0x1aec37['graveyardPosition'],_0x55db52=_0x1aec37['splitPosition']['parent'];_0x1aec37['_execute']();const _0x561e5f=_0x55db52['getAttribute']('vid_end'),_0x24a8ab=_0x1aec37['insertionPosition']['nodeAfter'];if(_0x38ada8){const _0x33d11e=_0x24a8ab['getAttribute']('vid_end'),_0x3346e8=_0x55db52['getAttribute']('vid_end');_0x55db52['_setAttribute']('vid_end',_0x33d11e),_0x24a8ab['_setAttribute']('vid_end',_0x3346e8),this['_touched']['set'](_0x55db52['getAttribute']('vid_end'),{'userId':_0x2877bc}),this['_touched']['set'](_0x24a8ab['getAttribute']('vid_start'),{'userId':_0x2877bc});}else{const _0x2714f1=this['_revisionId']++,_0x447b71=this['_revisionId']++;_0x55db52['_setAttribute']('vid_end',_0x2714f1),_0x24a8ab['_setAttribute']('vid_start',_0x447b71),_0x24a8ab['_setAttribute']('vid_end',_0x561e5f),this['_touched']['set'](_0x2714f1,{'userId':_0x2877bc}),this['_touched']['set'](_0x447b71,{'userId':_0x2877bc});}}['_handleMarkerOperation'](_0x4b1d21){if(!_0x4b1d21['affectsData'])return;const _0x393048=(_0x4b1d21=this['_cloneOperation'](_0x4b1d21,this['_diffRoots']))['oldRange']?_0x4b1d21['oldRange']['root']:null,_0x54bb86=_0x4b1d21['newRange']?_0x4b1d21['newRange']['root']:null;_0x393048&&this['_markers']['delete'](_0x4b1d21['name']),_0x54bb86&&this['_markers']['set'](_0x4b1d21['name'],_0x4b1d21['newRange']['clone']());const _0x2951cf=null===_0x4b1d21['_authorId']?null:_0x4b1d21['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5f152d=_0x4b1d21['name'];if(!this['_touchedMarkers']['has'](_0x5f152d))return void this['_touchedMarkers']['set'](_0x5f152d,{'range':_0x4b1d21['oldRange'],'userId':_0x2951cf});const _0x351b84=this['_touchedMarkers']['get'](_0x5f152d),_0x105b00=_0x351b84['range'],_0x1a6ce4=_0x4b1d21['newRange'];null==_0x105b00&&null==_0x1a6ce4||_0x105b00&&_0x1a6ce4&&_0x105b00['isEqual'](_0x1a6ce4)?this['_touchedMarkers']['delete'](_0x4b1d21['name']):_0x351b84['userId']=_0x2951cf;}['_handleRootOperation'](_0x2672f6,_0x22b01b){this['_diffRoots']['has'](_0x2672f6['rootName'])?this['_diffRoots']['get'](_0x2672f6['rootName'])['_isAttached']=_0x2672f6['isAdd']:(this['_diffRoots']['set'](_0x2672f6['rootName'],P(_0x2672f6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2672f6['rootName'],{}),_0x22b01b&&this['_idsRoots']['set'](_0x2672f6['rootName'],P(_0x2672f6['rootName'],!0x0)));const _0x55a043=null===_0x2672f6['_authorId']?null:_0x2672f6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x59f45b=this['_touchedRoots']['get'](_0x2672f6['rootName']);_0x59f45b&&_0x59f45b['userId']===_0x55a043?this['_touchedRoots']['delete'](_0x2672f6['rootName']):this['_touchedRoots']['set'](_0x2672f6['rootName'],{'userId':_0x55a043,'isAttached':_0x2672f6['isAdd']});}['_handleRootAttributeOperation'](_0x33f9c9){const _0x2fc6dc=this['_diffRootsAttributes']['get'](_0x33f9c9['root']['rootName']);null===_0x33f9c9['newValue']?delete _0x2fc6dc[_0x33f9c9['key']]:_0x2fc6dc[_0x33f9c9['key']]=_0x33f9c9['newValue'];}}function N(_0x5eb908){const _0xa132fb=P(_0x5eb908['rootName'],_0x5eb908['isAttached']());for(const _0x3ac6f1 of _0x5eb908['getChildren']()){const _0x52e094=_0x3ac6f1['_clone'](!0x0);_0xa132fb['_appendChild'](_0x52e094);}return _0xa132fb;}function P(_0x52ddce,_0x13fdcb=!0x0){const _0x2850b0=new gt();return _0x2850b0['rootName']=_0x52ddce,_0x2850b0['_isAttached']=_0x13fdcb,_0x2850b0['isAttached']=()=>_0x2850b0['_isAttached'],_0x2850b0;}function F(_0x44f6fe,_0x1c295e,_0x180905){const _0x15a952='elementEnd'==_0x44f6fe['type']?_0x180905['createPositionAt'](_0x44f6fe['item'],'end'):_0x180905['createPositionBefore'](_0x44f6fe['item']);return _0x180905['createPositionFromPath'](_0x1c295e,_0x15a952['path'],_0x15a952['stickiness']);}function B(_0x138b61,_0x4384b6,_0x651bb6){const _0x2a3f05='elementStart'==_0x138b61['type']?_0x651bb6['createPositionAt'](_0x138b61['item'],0x0):_0x651bb6['createPositionAfter'](_0x138b61['item']);return _0x651bb6['createPositionFromPath'](_0x4384b6,_0x2a3f05['path'],_0x2a3f05['stickiness']);}class hs extends _0x27485a{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1aeedd,_0x2fcc2e){super(_0x1aeedd),this['focusTracker']=new _0x384e90(),this['keystrokes']=new _0x20c5b5(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2fcc2e),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'](),_0x5c9583({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x362447=_0x1ccf04=>_0x1ccf04['stopPropagation']();this['keystrokes']['set']('arrowright',_0x362447),this['keystrokes']['set']('arrowleft',_0x362447),this['keystrokes']['set']('arrowup',_0x362447),this['keystrokes']['set']('arrowdown',_0x362447);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x160562){this['revisionNameInputView']['fieldView']['element']['value']=_0x160562['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2b018b){const _0x5751d2=new nt(this['locale'],ti),_0x28aae8=_0x5751d2['fieldView'];_0x28aae8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x255a5c=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2b018b&&(_0x255a5c+='\x20('+g(this['locale'],'optional')+')'),(_0x5751d2['label']=_0x255a5c,_0x28aae8['on']('input',()=>{this['revisionNameInputValue']=_0x28aae8['element']['value']['trim']();}),_0x5751d2);}}class f extends _0x13d4c1{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3374cc=this['editor'],_0x184e9b=_0x3374cc['plugins']['get']('RevisionTracker');_0x3374cc['ui']['componentFactory']['add']('revisionHistory',_0x7b5b43=>{const _0x14cfa4=_0x12a8ba(_0x7b5b43),_0x177ce9=_0x14cfa4['panelView']['children'],_0x5de743=new _0x59dc3d(_0x7b5b43),_0x263558=new _0x2495db(_0x7b5b43),_0x123575=new _0x3ab2b8(_0x7b5b43),_0x1d8844=new _0x2495db(_0x7b5b43),_0x1378b5=new _0x3ab2b8(_0x7b5b43);return _0x14cfa4['bind']('isEnabled')['to'](_0x184e9b,'isReady',_0x184e9b,'isEnabled',_0x3374cc,'isReadOnly',(_0x2a49fa,_0x1a4ac4,_0x51aa59)=>_0x2a49fa&&_0x1a4ac4&&!_0x51aa59),_0x14cfa4['buttonView']['set']({'icon':_0x34f0c9,'label':g(_0x7b5b43,'Revision\x20history'),'tooltip':!0x0}),_0x123575['set']({'label':g(_0x7b5b43,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x123575['bind']('isEnabled')['to'](_0x184e9b,'isReady',_0x184e9b,'isEnabled',_0x3374cc,'isReadOnly',(_0x142807,_0x20572d,_0x24cf95)=>_0x142807&&_0x20572d&&!_0x24cf95),_0x123575['on']('execute',()=>this['_showDialog']()),_0x1378b5['set']({'label':g(_0x7b5b43,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1378b5['bind']('isEnabled')['to'](_0x184e9b,'isReady',_0x3374cc,'isReadOnly',(_0x13d91f,_0x906100)=>_0x13d91f&&!_0x906100),_0x1378b5['on']('execute',()=>{_0x3374cc['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x14cfa4['isOpen']=!0x1,_0x3374cc['editing']['view']['focus']();}),_0x263558['children']['add'](_0x123575),_0x1d8844['children']['add'](_0x1378b5),_0x5de743['role']='menu',_0x5de743['items']['addMany']([_0x263558,_0x1d8844]),_0x177ce9['add'](_0x5de743),_0x14cfa4;}),_0x3374cc['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2771aa=this['editor'],_0x2f65df=_0x2771aa['locale'],_0x196990=new _0x52d3e1(_0x2f65df),_0x247cb8=new _0x1aeb76(_0x2f65df);_0x196990['buttonView']['set']({'icon':_0x34f0c9,'label':g(_0x2f65df,'Revision\x20history')});const _0x26505f=new _0x2c1a79(_0x2f65df,_0x196990),_0x26814e=new _0x18b0e5(_0x2f65df);_0x26814e['set']({'label':g(_0x2f65df,'Save\x20current\x20revision')}),_0x26814e['delegate']('execute')['to'](_0x196990),_0x26814e['on']('execute',()=>{this['_showDialog']();}),_0x26505f['children']['add'](_0x26814e),_0x247cb8['items']['add'](_0x26505f);const _0x154bcb=new _0x2c1a79(_0x2f65df,_0x196990),_0xf68a96=new _0x18b0e5(_0x2f65df);return _0xf68a96['set']({'label':g(_0x2f65df,'Open\x20revision\x20history')}),_0xf68a96['delegate']('execute')['to'](_0x196990),_0xf68a96['on']('execute',()=>{_0x2771aa['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x154bcb['children']['add'](_0xf68a96),_0x247cb8['items']['add'](_0x154bcb),_0x196990['panelView']['children']['add'](_0x247cb8),_0x196990;}['_showDialog'](){const _0x2d38ba=this['editor'],_0x270ac0=_0x2d38ba['locale'],_0xc9984=_0x2d38ba['plugins']['get']('Dialog'),_0x1656a0=_0x2d38ba['plugins']['get']('RevisionTracker');function _0x26f330(_0x1febc2){_0x2d38ba['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1febc2['revisionName']?_0x1febc2['revisionNameInputView']['errorText']=g(_0x270ac0,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2d38ba['plugins']['get'](u)['saveRevision']({'name':_0x1febc2['revisionName']}),_0xc9984['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x26f330(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xc9984['show']({'id':'revisionSave','title':g(_0x270ac0,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x2d38ba['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xc9984['hide']()},{'label':g(_0x2d38ba['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x479028){_0x479028['bind']('isEnabled')['to'](_0x1656a0,'isReady',_0x1656a0,'isEnabled',_0x2d38ba,'isReadOnly',(_0x5b02d6,_0x1b36eb,_0x545614)=>_0x5b02d6&&_0x1b36eb&&!_0x545614);},'onExecute':()=>_0x26f330(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3cd316=this['editor'],_0x3b089a=_0x3cd316['locale'];this['_saveRevisionFormView']=new hs(_0x3b089a,_0x3cd316['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x27485a{['changeId'];['_model'];constructor(_0x204262,_0x4ef7dc){super(_0x204262),this['_model']=_0x4ef7dc,this['changeId']=_0x4ef7dc['id'];const _0x5a458b=this['bindTemplate'],_0x5dd513=g(_0x204262,_0x4ef7dc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4ef7dc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4ef7dc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5a458b['to']('type',_0x4652a7=>'ck-revision-change__'+_0x4652a7)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5dd513}]},{'text':'\x20'+_0x4ef7dc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0xd05959(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4c5d12){super(),this['id']=_0x4c5d12['id']||_0x556484(),this['author']=_0x4c5d12['author'],this['type']=_0x4c5d12['type'],this['data']=_0x4c5d12['data']||{},this['rootName']=_0x4c5d12['rootName'],this['set']('createdAt',_0x4c5d12['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(_0x58b21f,_0x1f05c3){this['newRevisionId']=_0x58b21f,this['oldRevisionId']=_0x1f05c3,this['changes']=new _0x16f7b0();}['_setChanges'](_0x48c054){for(const _0x5a696f of _0x48c054)this['changes']['add'](_0x5a696f);}}class m extends _0x13d4c1{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1f9202,_0x22dc4a,I,V];}constructor(_0x4f0143){super(_0x4f0143),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x14d423,_0x346385,_0x477239)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4b66ac=>{for(const _0xbba86b of this['editor']['editing']['view']['document']['roots'])_0x477239?_0x4b66ac['removeClass']('ck-editor__editable__overlay',_0xbba86b):_0x4b66ac['addClass']('ck-editor__editable__overlay',_0xbba86b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x584320=>null!==_0x584320),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1a7350,_0x17f04c,_0x40803e)=>_0x1a7350&&_0x40803e?_0x17f04c['changes']['getIndex'](_0x40803e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2fb7d7,_0x3334b7)=>_0x2fb7d7?_0x3334b7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x22dc4a);}['init'](){const _0x527063=this['editor'],_0x13d283=new pt(_0x527063,{'direction':'backward'}),_0xe2e7d1=new pt(_0x527063,{'direction':'forward'});(_0x527063['commands']['add']('showPreviousChange',_0x13d283),_0x527063['commands']['add']('showNextChange',_0xe2e7d1),_0x527063['commands']['add']('restoreRevision',new wt(_0x527063)),this['on']('change:numberOfChanges',()=>{_0x13d283['refresh'](),_0xe2e7d1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x527063['enableReadOnlyMode']('revision-viewer'),_0x527063['plugins']['has']('WidgetToolbarRepository'))&&_0x527063['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x41af57){return await this['_utils']['loadRevisionData'](_0x41af57,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x41af57);}async['getRevisionRootsAttributes'](_0x3b93f7){return await this['_utils']['loadRevisionData'](_0x3b93f7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3b93f7);}async['compare'](_0x1340ec,_0x2ab7d0,_0x2d4771=!0x1){if(!this['isEnabled'])return;const _0x432147=this['diff'],_0x5b82ff=this['repository'],_0x5f4757='string'==typeof _0x1340ec?_0x5b82ff['getRevision'](_0x1340ec):_0x1340ec,_0x2773dd='string'==typeof _0x2ab7d0?_0x5b82ff['getRevision'](_0x2ab7d0):_0x2ab7d0,_0x363779=_0x5f4757['id'],_0x110156=_0x2773dd?_0x2773dd['id']:null;if(!_0x2d4771&&this['diff']&&this['diff']['newRevisionId']===_0x363779&&this['diff']['oldRevisionId']===_0x110156)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x363779,_0x110156);const _0x574b46=this['_getRevisionsRange'](_0x5f4757,_0x2773dd,!0x0)['map'](_0x84ebd0=>this['_utils']['loadRevisionData'](_0x84ebd0,this['adapter']));return _0x574b46['push'](new Promise(_0x5248f6=>{setTimeout(_0x5248f6,0x14);})),Promise['all'](_0x574b46)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3daf38=this['_getDiff'](_0x363779,_0x110156);for(const _0x47ef41 of _0x3daf38['changes'])this['_changeIdToChange']['set'](_0x47ef41['id'],_0x47ef41);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1487b6=>{for(const _0x45d8d2 of this['editor']['model']['document']['getRootNames']())_0x1487b6['detachRoot'](_0x45d8d2);for(const _0x4d744f of Object['keys'](_0x3daf38['model'])){const _0x21e88f=_0x1487b6['addRoot'](_0x4d744f);for(const _0x1b1d6f of Object['keys'](_0x3daf38['attributes'][_0x4d744f]))_0x1487b6['setAttribute'](_0x1b1d6f,_0x3daf38['attributes'][_0x4d744f][_0x1b1d6f],_0x21e88f);_0x1487b6['insert'](_0x3daf38['model'][_0x4d744f],_0x21e88f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3daf38['changes'])),this['isReady']=!0x0;})['catch'](_0x47c75f=>{console['error'](_0x47c75f),this['_cleanUp'](),_0x432147&&(this['diff']=_0x432147),this['isReady']=!0x0;});}['addRevisionData'](_0x1d5b94,_0x12b988){const _0x261947=this['repository']['createRevision'](_0x1d5b94);return _0x261947['on']('_update',(_0x513fed,_0x206689,_0x164d2c)=>_0x12b988(_0x206689,_0x164d2c,_0x261947)),this['repository']['addRevision'](_0x261947),_0x261947;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x259aed=>{for(const _0x56e96a of this['editor']['model']['document']['getRootNames']())_0x259aed['detachRoot'](_0x56e96a);});}['_sortAndFilterDiffChanges'](_0x4c4fd8){const _0x5bf80e=[],_0x331d60=new Map();for(const _0x2a22da of this['editor']['model']['document']['getRootNames']()){const _0x425464=this['editor']['editing']['view']['getDomRoot'](_0x2a22da);if(!_0x425464)continue;const _0x44ad28=_0x425464['getClientRects']()['item'](0x0);_0x44ad28&&(_0x5bf80e['push'](_0x2a22da),_0x331d60['set'](_0x2a22da,_0x44ad28));}return _0x5bf80e['sort']((_0x4e188d,_0x477390)=>{const _0x17c63f=_0x331d60['get'](_0x4e188d),_0x77504f=_0x331d60['get'](_0x477390);return _0x17c63f['y']-_0x77504f['y']||_0x17c63f['x']-_0x77504f['x'];}),(_0x4c4fd8=_0x4c4fd8['filter'](_0x717833=>_0x5bf80e['includes'](_0x717833['rootName'])))['sort']((_0x4ec0f0,_0x3cfc3b)=>_0x5bf80e['indexOf'](_0x4ec0f0['rootName'])-_0x5bf80e['indexOf'](_0x3cfc3b['rootName'])),_0x4c4fd8;}['_makeTape'](_0x114472){const _0x39aead=Array['from'](_0x114472['markers'])['filter'](([_0xd1a7b6,_0xd5c53c])=>_0xd1a7b6['startsWith']('revision:')&&!_0xd5c53c['isCollapsed']),_0x56b021=Array['from'](this['editor']['model']['createRangeIn'](_0x114472)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x39aead['length'])for(const _0x8e0bf3 of _0x56b021){const [_0x3f285e,_0x1b0555]=_0x39aead[0x0],[,_0x132f06,_0x264c95]=_0x3f285e['split'](':');if(_0x1b0555['end']['isEqual'](_0x8e0bf3['nextPosition'])&&_0x39aead['shift'](),(_0x8e0bf3['previousPosition']['isEqual'](_0x1b0555['start'])||_0x8e0bf3['previousPosition']['isAfter'](_0x1b0555['start']))&&('insertion'==_0x132f06?_0x8e0bf3['isAdded']={'userId':_0x264c95}:'deletion'==_0x132f06&&(_0x8e0bf3['isRemoved']={'userId':_0x264c95})),0x0==_0x39aead['length'])break;}return _0x56b021;}['_refreshStartEndIndex'](_0x3f08ae){const _0x31ebb5=new Map();for(let _0x443dc4=0x0;_0x443dc4<_0x3f08ae['length'];_0x443dc4++)'text'===_0x3f08ae[_0x443dc4]['type']?(_0x3f08ae[_0x443dc4]['item']['startIndex']=_0x443dc4,_0x3f08ae[_0x443dc4]['item']['endIndex']=_0x443dc4):('elementStart'===_0x3f08ae[_0x443dc4]['type']?_0x3f08ae[_0x443dc4]['item']['startIndex']=_0x443dc4:'elementEnd'===_0x3f08ae[_0x443dc4]['type']&&(_0x3f08ae[_0x443dc4]['item']['endIndex']=_0x443dc4),_0x31ebb5['set'](_0x3f08ae[_0x443dc4]['id'],_0x443dc4));for(const _0x26b71a of _0x31ebb5['values']())'elementStart'===_0x3f08ae[_0x26b71a]['type']?_0x3f08ae[_0x26b71a]['item']['endIndex']=_0x31ebb5['get'](_0x3f08ae[_0x26b71a]['pairId']):'elementEnd'===_0x3f08ae[_0x26b71a]['type']&&(_0x3f08ae[_0x26b71a]['item']['startIndex']=_0x31ebb5['get'](_0x3f08ae[_0x26b71a]['pairId']));}['_processTape'](_0x3432fc){for(let _0x560bc3=0x0;_0x560bc3<_0x3432fc['length'];_0x560bc3++){if('elementStart'===_0x3432fc[_0x560bc3]['type'])_0x3432fc[_0x560bc3]['item']['startIndex']=_0x560bc3;else{if('elementEnd'===_0x3432fc[_0x560bc3]['type']){_0x3432fc[_0x560bc3]['item']['endIndex']=_0x560bc3;const _0x355a7d=_0x3432fc[_0x560bc3]['item']['startIndex'];_0x3432fc[_0x355a7d]['pairId']=_0x3432fc[_0x560bc3]['id'],_0x3432fc[_0x560bc3]['pairId']=_0x3432fc[_0x355a7d]['id'];}else _0x3432fc[_0x560bc3]['item']['startIndex']=_0x560bc3,_0x3432fc[_0x560bc3]['item']['endIndex']=_0x560bc3,_0x3432fc[_0x560bc3]['pairId']=null;}_0x3432fc[_0x560bc3]['markersStart']||(_0x3432fc[_0x560bc3]['markersStart']=[],_0x3432fc[_0x560bc3]['markersEnd']=[]);}}['_markInsertions'](_0x82df91,_0x3ac5f2){const _0x397821=_0x82df91['filter'](_0x24e01b=>!_0x24e01b['isAdded']);for(let _0x3b1d27=0x0;_0x3b1d27<_0x3ac5f2['length'];_0x3b1d27++)_0x3ac5f2[_0x3b1d27]['isAdded']&&(_0x397821[_0x3b1d27]['isAdded']=_0x3ac5f2[_0x3b1d27]['isAdded']);}['_getDiff'](_0xabf6d6,_0x5edf74=null){const _0x2c82e4=this['repository']['getRevision'](_0xabf6d6),_0xaaac8c=_0x5edf74?this['repository']['getRevision'](_0x5edf74):null,_0x2a5afc=this['_getRevisionsRange'](_0x2c82e4,_0xaaac8c),_0x11a856=_0x2a5afc[_0x2a5afc['length']-0x1],_0x126fa5=new Map(),_0x4fd5d2={'model':{},'attributes':{},'changes':[]},_0x94d198=new Set(),_0x5768ca=new Map();for(let _0x38e1e8=_0x2a5afc['length']-0x1;_0x38e1e8>=0x0;_0x38e1e8--){const _0x132bfb=_0x2a5afc[_0x38e1e8];for(const _0xf475ff of Object['keys'](_0x132bfb['diffData']))if(_0x132bfb['diffData'][_0xf475ff]['attachChange']){const _0x5a4408=_0x132bfb['diffData'][_0xf475ff]['attachChange'];_0x5a4408['isAttached']?(_0x94d198['add'](_0xf475ff),_0x5768ca['has'](_0xf475ff)&&_0x5768ca['get'](_0xf475ff)['userId']==_0x5a4408['userId']?_0x5768ca['delete'](_0xf475ff):_0x5768ca['set'](_0xf475ff,_0x5a4408)):_0x5768ca['has'](_0xf475ff)?(_0x94d198['delete'](_0xf475ff),_0x5768ca['delete'](_0xf475ff)):(_0x94d198['add'](_0xf475ff),_0x5768ca['set'](_0xf475ff,_0x5a4408));}else _0x94d198['add'](_0xf475ff);}for(const _0x822342 of _0x94d198){const _0x5bca03=_0x5768ca['has'](_0x822342)&&!_0x5768ca['get'](_0x822342)['isAttached'];let _0x439d85=_0x5bca03?_0x2a5afc['length']-0x1:0x0;const _0x28b630=_0x5bca03?-0x1:0x1;for(;_0x2a5afc[_0x439d85];){const _0x133687=_0x2a5afc[_0x439d85];if(_0x133687['diffData'][_0x822342]){const _0x567432=_0x5bca03?_0x133687['diffData'][_0x822342]['attributesBefore']:_0x133687['diffData'][_0x822342]['attributesAfter'];_0x4fd5d2['attributes'][_0x822342]=_0x567432?_0xc162bf(_0x567432):{};break;}_0x439d85+=_0x28b630;}}for(const _0x3557b7 of _0x2a5afc){_0x3557b7['model']={};for(const _0xcff968 of _0x3557b7['authors'])_0x126fa5['set'](_0xcff968['id'],_0xcff968);for(const _0x9ecf0d of _0x94d198){const _0x154d30=_0x3557b7['diffData'][_0x9ecf0d]?_0x3557b7['diffData'][_0x9ecf0d]['insertions']:'[]',_0x288bc4=_0x3557b7['diffData'][_0x9ecf0d]?_0x3557b7['diffData'][_0x9ecf0d]['deletions']:'[]';_0x3557b7['model'][_0x9ecf0d]={'insertions':this['_utils']['_makeModelFromViewString'](_0x154d30),'deletions':this['_utils']['_makeModelFromViewString'](_0x288bc4)};}}for(const _0x358562 of _0x94d198){let _0xb8bfc=null,_0x3fe6c3=0x0;const _0xe37142=new Map(Array['from'](_0x2c82e4['model'][_0x358562]['insertions']['markers'])['filter'](([_0x58a7a1])=>!_0x58a7a1['startsWith']('revision:')));let _0x5b10ce=0x0;for(const _0x552a44 of _0x2a5afc){const _0x1ff911=this['_makeTape'](_0x552a44['model'][_0x358562]['insertions']);_0x552a44==_0x2c82e4?(_0xb8bfc=_0x1ff911,_0x3fe6c3=_0xb8bfc['length'],_0xb8bfc['forEach'](_0x5b7b05=>{_0x5b7b05['id']=_0x5b10ce++;}),this['_processTape'](_0xb8bfc)):this['_markInsertions'](_0xb8bfc,_0x1ff911);const _0xcca64=_0xb8bfc['filter'](_0x2a8230=>!_0x2a8230['isAdded'])['map'](_0x4ed452=>_0x4ed452['id']);let _0xa67c47=0x0;const _0x119ba6=this['_makeTape'](_0x552a44['model'][_0x358562]['deletions']);_0x119ba6['forEach'](_0x61e1c0=>{_0x61e1c0['isRemoved']?_0x61e1c0['id']=_0x3fe6c3++:_0x61e1c0['id']=_0xcca64[_0xa67c47++];}),this['_processTape'](_0x119ba6),this['_setDistance'](_0xb8bfc,'isAdded'),this['_setDistance'](_0x119ba6,'isRemoved'),_0x552a44==_0x2c82e4&&this['_markMarkers'](_0xb8bfc,_0xe37142),_0xb8bfc=this['_joinTapes'](_0xb8bfc,_0x119ba6),this['_refreshStartEndIndex'](_0xb8bfc),this['_setDistance'](_0xb8bfc,'isRemoved');}_0xb8bfc=_0xb8bfc['filter'](_0x4cc8bb=>!(_0x4cc8bb['isAdded']&&_0x4cc8bb['isRemoved']));const _0x30ddee=new Map(_0x11a856['model'][_0x358562]['deletions']['markers']),_0x2c85e7=new Set(_0xe37142['keys']());for(const _0x258523 of _0x30ddee['keys']())_0x2c85e7['delete'](_0x258523);this['_markSuggestions'](_0xb8bfc,_0x2c85e7),this['_fixObsoleteTags'](_0xb8bfc),_0xb8bfc=this['_removeMissingPairs'](_0xb8bfc),_0xb8bfc=this['_markMismatchedRemovedTags'](_0xb8bfc),_0xb8bfc=this['_removeUnsupportedChanges'](_0xb8bfc);const {root:_0x5b0b38,changes:_0x451d3f}=this['_makeModelFromTape'](_0xb8bfc,_0x126fa5,_0x358562);_0x4fd5d2['model'][_0x358562]=_0x5b0b38;const _0x100d3a=_0x5768ca['get'](_0x358562);if(_0x100d3a){const _0x2bd29a=_0x126fa5['get'](_0x100d3a['userId']),_0x1b1beb=new r({'author':_0x2bd29a,'type':_0x100d3a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x358562});_0x451d3f['unshift'](_0x1b1beb),_0x4fd5d2['attributes'][_0x358562]['revisionHistoryAttachChange']=_0x1b1beb['id'];}_0x4fd5d2['changes']=_0x4fd5d2['changes']['concat'](_0x451d3f);}return _0x4fd5d2;}['_markMarkers'](_0x5149bf,_0x58ebc3){for(let _0x2d7d88=0x0;_0x2d7d88<_0x5149bf['length'];_0x2d7d88++)for(const [_0x3ebe31,_0x4324d4]of _0x58ebc3)!_0x4324d4['isCollapsed']&&_0x4324d4['start']['isEqual'](_0x5149bf[_0x2d7d88]['previousPosition'])&&_0x5149bf[_0x2d7d88]['markersStart']['push'](_0x3ebe31),_0x4324d4['end']['isEqual'](_0x5149bf[_0x2d7d88]['nextPosition'])&&_0x5149bf[_0x2d7d88]['markersEnd']['push'](_0x3ebe31);}['_joinTapes'](_0x13e1e0,_0x38fff3){let _0x2b5498=[],_0x170ca7=0x0,_0xf9bf9e=0x0;for(;_0x170ca7<_0x13e1e0['length']||_0xf9bf9e<_0x38fff3['length'];){const _0x18958a=_0x13e1e0[_0x170ca7]||{},_0x16fd84=_0x38fff3[_0xf9bf9e]||{};if(_0x18958a['id']==_0x16fd84['id'])_0x170ca7++,_0xf9bf9e++,_0x2b5498['push'](_0x18958a);else{if(_0x16fd84['isRemoved']&&_0x18958a['isAdded']){const {commonTape:_0x4daaa8,iEnd:_0x5ea0ed,jEnd:_0x1e8434}=this['_threeWayMerge'](_0x13e1e0,_0x170ca7,_0x38fff3,_0xf9bf9e);_0x2b5498=_0x2b5498['concat'](_0x4daaa8),_0x170ca7=_0x5ea0ed,_0xf9bf9e=_0x1e8434;}else _0x16fd84['isRemoved']?(_0xf9bf9e++,_0x2b5498['push'](_0x16fd84)):(_0x170ca7++,_0x2b5498['push'](_0x18958a));}}return _0x2b5498;}['_markSuggestions'](_0x31d691,_0x4c3207){const _0x5ba09d=[];for(let _0x59902b=0x0;_0x59902b<_0x31d691['length'];_0x59902b++){for(let _0x3a4b4e=0x0;_0x3a4b4e<_0x31d691[_0x59902b]['markersStart']['length'];_0x3a4b4e++){const _0x2b6e90=_0x31d691[_0x59902b]['markersStart'][_0x3a4b4e];if(!_0x4c3207['has'](_0x2b6e90))continue;const {group:_0x2a1466,type:_0x32f5e4,authorId:_0x5e09ad}=_0x33b6ad(_0x2b6e90);'revision-suggestion'!=_0x2a1466||'insertion'!=_0x32f5e4&&'deletion'!=_0x32f5e4||(_0x5ba09d['unshift']({'type':_0x32f5e4,'name':_0x2b6e90,'userId':_0x5e09ad}),_0x31d691[_0x59902b]['markersStart']['splice'](_0x3a4b4e,0x1),_0x3a4b4e--);}_0x157a4f(_0x31d691[_0x59902b]);for(let _0x3ce4cd=0x0;_0x3ce4cd<_0x31d691[_0x59902b]['markersEnd']['length'];_0x3ce4cd++){const _0x3ffb89=_0x31d691[_0x59902b]['markersEnd'][_0x3ce4cd];if(!_0x4c3207['has'](_0x3ffb89))continue;const {group:_0x3a77ea,type:_0x29c08d}=_0x33b6ad(_0x3ffb89);if('revision-suggestion'!=_0x3a77ea||'insertion'!=_0x29c08d&&'deletion'!=_0x29c08d)continue;_0x31d691[_0x59902b]['markersEnd']['splice'](_0x3ce4cd,0x1),_0x3ce4cd--;const _0x56c5f7=_0x5ba09d['findIndex'](_0x1aec14=>_0x1aec14['name']==_0x3ffb89);_0x56c5f7>-0x1&&_0x5ba09d['splice'](_0x56c5f7,0x1);}}function _0x33b6ad(_0x2fe283){const _0x744891=_0x2fe283['split'](':');return{'group':_0x744891[0x0],'type':_0x744891[0x1],'subType':_0x744891['length']>=0x5?_0x744891[0x2]:null,'id':_0x744891['length']<0x5?_0x744891[0x2]:_0x744891[0x3],'authorId':_0x744891['length']<0x5?_0x744891[0x3]:_0x744891[0x4],'markerCount':0x6==_0x744891['length']?_0x744891[0x5]:null};}function _0x157a4f(_0x5de3f6){for(let _0x58d7ef=0x0;_0x58d7ef<_0x5ba09d['length'];_0x58d7ef++){if(_0x5de3f6['isAdded']&&'insertion'==_0x5ba09d[_0x58d7ef]['type'])return _0x5de3f6['isAddSuggestion']=_0x5ba09d[_0x58d7ef],void delete _0x5de3f6['isAdded'];if(!_0x5de3f6['isAdded']&&!_0x5de3f6['isRemoved']&&'deletion'==_0x5ba09d[_0x58d7ef]['type'])return void(_0x5de3f6['isRemoveSuggestion']=_0x5ba09d[_0x58d7ef]);}}}['_setDistance'](_0x4dcde8,_0x271408){let _0x40744d=0x0,_0x1e245e=!0x1;const _0x5c5fa4=new Map();for(const _0x4c4731 of _0x4dcde8)_0x4c4731[_0x271408]?_0x1e245e&&(_0x40744d++,_0x1e245e=!0x1):(_0x40744d++,_0x1e245e=!0x0),_0x5c5fa4['set'](_0x4c4731['id'],_0x40744d);for(let _0x5b8823=0x0;_0x5b8823<_0x4dcde8['length'];_0x5b8823++){if('isRemoved'==_0x271408&&_0x4dcde8[_0x5b8823]['isAdded']||'isAdded'==_0x271408&&_0x4dcde8[_0x5b8823]['isRemoved'])continue;if('text'==_0x4dcde8[_0x5b8823]['type']){_0x4dcde8[_0x5b8823]['distance']=0x0;continue;}const _0x36d188=_0x5c5fa4['get'](_0x4dcde8[_0x5b8823]['pairId']),_0x3faadb=_0x5c5fa4['get'](_0x4dcde8[_0x5b8823]['id']);_0x4dcde8[_0x5b8823]['distance']=_0x36d188-_0x3faadb;}}['_getRevisionsRange'](_0x1e0395,_0x2983ee,_0x8689e5=!0x1){const _0x18fb60=[];let _0x3d2ef4=this['repository']['getIndex'](_0x1e0395),_0x2fa9e0=this['repository']['getIndex'](_0x2983ee);for(-0x1==_0x2fa9e0&&(_0x2fa9e0=this['repository']['_revisions']['length'],_0x8689e5=!0x1);_0x3d2ef4<_0x2fa9e0;)_0x18fb60['push'](this['repository']['getRevision'](_0x3d2ef4)),_0x3d2ef4++;return _0x8689e5&&_0x18fb60['push'](this['repository']['getRevision'](_0x3d2ef4)),_0x18fb60;}['_threeWayMerge'](_0x3c0dd0,_0xdd0c03,_0x5b6d6e,_0x3dc4f4){const _0x4bb593=this['editor']['model']['schema'];let _0x48aa28=_0xdd0c03;for(;_0x3c0dd0[_0x48aa28]&&_0x3c0dd0[_0x48aa28]['isAdded'];)_0x48aa28++;let _0x99b315=_0x3dc4f4;for(;_0x5b6d6e[_0x99b315]&&_0x5b6d6e[_0x99b315]['isRemoved'];)_0x99b315++;_0x374eeb(_0x3c0dd0,_0xdd0c03,_0x48aa28),_0x374eeb(_0x5b6d6e,_0x3dc4f4,_0x99b315);const _0x4e4d7b=_0x5b6d6e['slice'](_0x3dc4f4,_0x99b315)['concat'](_0x3c0dd0['slice'](_0xdd0c03,_0x48aa28));return _0x4e4d7b['sort']((_0x285700,_0x2e6aa6)=>_0x285700['side']!=_0x2e6aa6['side']?_0x285700['side']-_0x2e6aa6['side']:_0x285700['level']!=_0x2e6aa6['level']?_0x285700['level']-_0x2e6aa6['level']:_0x285700['distance']!=_0x2e6aa6['distance']?_0x2e6aa6['distance']-_0x285700['distance']:!!_0x285700['isAdded']!=!!_0x2e6aa6['isAdded']?-0x1==_0x285700['side']||0x0==_0x285700['side']?_0x285700['isAdded']?-0x1:0x1:_0x285700['isAdded']?0x1:-0x1:_0x285700['index']-_0x2e6aa6['index']),{'commonTape':_0x4e4d7b,'iEnd':_0x48aa28,'jEnd':_0x99b315};function _0x374eeb(_0x91d840,_0xa4da5b,_0x1f434b){let _0x17a200=-0x1,_0x20a3c5=Number['POSITIVE_INFINITY'],_0x5e9fb7=!0x0;for(let _0x474794=_0xa4da5b;_0x474794<_0x1f434b;_0x474794++)if(_0x4bb593['isInline'](_0x91d840[_0x474794]['item'])||(_0x5e9fb7=!0x1),_0x91d840[_0x474794]['item']['startIndex']<_0xa4da5b&&(_0x17a200=_0x474794),_0x91d840[_0x474794]['item']['endIndex']>=_0x1f434b){_0x20a3c5=_0x474794;break;}_0x5e9fb7&&(_0x17a200=_0x1f434b-0x1);for(let _0x5e70fa=_0xa4da5b;_0x5e70fa<_0x1f434b;_0x5e70fa++)_0x91d840[_0x5e70fa]['side']=_0x5e70fa<=_0x17a200?-0x1:_0x5e70fa<_0x20a3c5?0x0:0x1,_0x91d840[_0x5e70fa]['index']=_0x5e70fa;let _0x3a4e8e=0x0;for(let _0x4cf977=_0xa4da5b;_0x4cf977<=_0x17a200;_0x4cf977++)0x0==_0x91d840[_0x4cf977]['distance']?_0x91d840[_0x4cf977]['level']=_0x3a4e8e:(_0x3a4e8e++,_0x91d840[_0x4cf977]['level']=_0x3a4e8e,_0x3a4e8e++);for(let _0x2b9ccf=_0xa4da5b;_0x2b9ccf<_0x1f434b;_0x2b9ccf++)0x0==_0x91d840[_0x2b9ccf]['side']&&(_0x91d840[_0x2b9ccf]['level']=_0x3a4e8e);_0x3a4e8e=0x0;for(let _0x2bd122=_0x1f434b-0x1;_0x2bd122>=_0x20a3c5;_0x2bd122--)0x0==_0x91d840[_0x2bd122]['distance']?_0x91d840[_0x2bd122]['level']=_0x3a4e8e:(_0x3a4e8e--,_0x91d840[_0x2bd122]['level']=_0x3a4e8e,_0x3a4e8e--);}}['_fixObsoleteTags'](_0x19bf36){const _0x53f2bc=new Map(),_0x45634a=this['editor']['model']['schema'];for(let _0x448189=0x1;_0x448189<_0x19bf36['length'];_0x448189++){let _0x4b5c62,_0x195954,_0x1bc46f;const _0x561c85=_0x19bf36[_0x448189],_0x168a76=_0x19bf36[_0x448189-0x1];if('text'==_0x561c85['type'])continue;if(_0x561c85['type']!=_0x168a76['type'])continue;if(!_0x45634a['isBlock'](_0x168a76['item'])||_0x45634a['isLimit'](_0x168a76['item']))continue;if(!_0x45634a['isBlock'](_0x561c85['item'])||_0x45634a['isLimit'](_0x561c85['item']))continue;if((_0x19bf36[_0x448189]['isAdded']||_0x19bf36[_0x448189]['isAddSuggestion'])&&_0x19bf36[_0x448189-0x1]['isRemoved'])_0x4b5c62=_0x19bf36[_0x448189],_0x195954=_0x19bf36[_0x448189-0x1],_0x1bc46f=_0x448189-0x1;else{if(!_0x19bf36[_0x448189]['isRemoved']||!_0x19bf36[_0x448189-0x1]['isAdded']&&!_0x19bf36[_0x448189-0x1]['isAddSuggestion'])continue;_0x4b5c62=_0x19bf36[_0x448189-0x1],_0x195954=_0x19bf36[_0x448189],_0x1bc46f=_0x448189;}const _0x255d7b=_0x4b5c62['level']==_0x195954['level'],_0x485652=Math['abs'](_0x4b5c62['level'])<Math['abs'](_0x195954['level'])&&0x0==_0x195954['distance'];(_0x255d7b||_0x485652)&&(_0x53f2bc['set'](_0x195954['id'],_0x4b5c62['id']),_0x19bf36['splice'](_0x1bc46f,0x1),_0x448189--,_0x4b5c62['isAdded']=!0x1);}for(let _0x59d42d=0x0;_0x59d42d<_0x19bf36['length'];_0x59d42d++)_0x53f2bc['has'](_0x19bf36[_0x59d42d]['pairId'])&&(_0x19bf36[_0x59d42d]['pairId']=_0x53f2bc['get'](_0x19bf36[_0x59d42d]['pairId']));}['_removeMissingPairs'](_0x292040){const _0x3fee2d=new Set(_0x292040['map'](_0x428d07=>_0x428d07['id']));for(let _0xdfd182=0x0;_0xdfd182<_0x292040['length'];_0xdfd182++)_0x3fee2d['has'](_0x292040[_0xdfd182]['pairId'])||0x0==_0x292040[_0xdfd182]['distance']||(_0x292040[_0xdfd182]['isIncorrect']=!0x0);return _0x292040['filter'](_0x5e8b89=>!_0x5e8b89['isIncorrect']);}['_markMismatchedRemovedTags'](_0x20bee6){const _0x41bf1b=new Set();for(let _0xad51a6=0x0;_0xad51a6<_0x20bee6['length'];_0xad51a6++){if(_0x41bf1b['has'](_0x20bee6[_0xad51a6]['id'])&&_0x20bee6[_0xad51a6]['isRemoved']&&(_0x20bee6[_0xad51a6]['isIncorrect']=!0x0),_0x20bee6[_0xad51a6]['isIncorrect'])continue;if(0x0==_0x20bee6[_0xad51a6]['distance'])continue;if('elementStart'!=_0x20bee6[_0xad51a6]['type'])continue;if(null==_0x20bee6[_0xad51a6]['pairId'])continue;let _0x3446d3=_0xad51a6+0x1,_0x226970=0x0;for(;_0x20bee6[_0x3446d3]['id']!=_0x20bee6[_0xad51a6]['pairId'];)'elementStart'==_0x20bee6[_0x3446d3]['type']?_0x226970++:'elementEnd'==_0x20bee6[_0x3446d3]['type']&&_0x226970--,_0x3446d3++;if(0x0!=_0x226970){if(_0x20bee6[_0xad51a6]['isRemoved'])_0x20bee6[_0xad51a6]['isIncorrect']=!0x0;else{for(;_0x3446d3!=_0xad51a6;)_0x20bee6[_0x3446d3]['isRemoved']&&0x0!=_0x20bee6[_0x3446d3]['distance']&&(_0x20bee6[_0x3446d3]['isIncorrect']=!0x0,_0x41bf1b['add'](_0x20bee6[_0x3446d3]['pairId'])),_0x3446d3--;}}}return _0x20bee6['filter'](_0x494542=>!_0x494542['isIncorrect']);}['_removeUnsupportedChanges'](_0x37f657){const _0x4f3e7e=this['editor']['model']['schema'];for(let _0x57d2e2=0x0;_0x57d2e2<_0x37f657['length'];_0x57d2e2++){if(!(_0x37f657[_0x57d2e2]['isAdded']||_0x37f657[_0x57d2e2]['isAddSuggestion']||_0x37f657[_0x57d2e2]['isRemoved']||_0x37f657[_0x57d2e2]['isRemoveSuggestion']))continue;if(0x0==_0x37f657[_0x57d2e2]['distance'])continue;const _0x5c260c=_0x37f657[_0x57d2e2]['item'];_0x4f3e7e['isBlock'](_0x5c260c)||_0x4f3e7e['isLimit'](_0x5c260c)||(_0x37f657[_0x57d2e2]['isAdded']&&delete _0x37f657[_0x57d2e2]['isAdded'],_0x37f657[_0x57d2e2]['isAddSuggestion']&&delete _0x37f657[_0x57d2e2]['isAddSuggestion'],_0x37f657[_0x57d2e2]['isRemoveSuggestion']&&delete _0x37f657[_0x57d2e2]['isRemoveSuggestion'],_0x37f657[_0x57d2e2]['isRemoved']&&(_0x37f657[_0x57d2e2]['isIncorrect']=!0x0));}return _0x37f657['filter'](_0x3eb776=>!_0x3eb776['isIncorrect']);}['_makeModelFromTape'](_0x5eebef,_0x547cf2,_0x3618f4){const _0x677777=new gt(),_0x544d2e=[],_0x218116=new Map(),_0x29fc2b=this['editor']['model'],_0x33989e=_0x29fc2b['schema'],_0x27011b=[_0x677777],_0x476078={},_0x3288d9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x9d36d1=null;const _0x1859c2=[0x0];for(let _0x21ddf8=0x0;_0x21ddf8<_0x5eebef['length'];_0x21ddf8++)if('elementStart'===_0x5eebef[_0x21ddf8]['type']){_0x5eebef[_0x21ddf8]['previousPosition']=_0x29fc2b['createPositionFromPath'](_0x677777,_0x1859c2);const _0x2d464a=new ut(_0x5eebef[_0x21ddf8]['item']['name'],_0x5eebef[_0x21ddf8]['item']['getAttributes']());_0x27011b[0x0]['_appendChild'](_0x2d464a),_0x1859c2['push'](0x0),_0x27011b['unshift'](_0x2d464a),_0x5eebef[_0x21ddf8]['nextPosition']=_0x29fc2b['createPositionFromPath'](_0x677777,_0x1859c2);}else'elementEnd'===_0x5eebef[_0x21ddf8]['type']?(_0x27011b['shift'](),_0x5eebef[_0x21ddf8]['previousPosition']=_0x29fc2b['createPositionFromPath'](_0x677777,_0x1859c2),_0x1859c2['pop'](),_0x1859c2[_0x1859c2['length']-0x1]++,_0x5eebef[_0x21ddf8]['nextPosition']=_0x29fc2b['createPositionFromPath'](_0x677777,_0x1859c2)):(_0x5eebef[_0x21ddf8]['previousPosition']=_0x29fc2b['createPositionFromPath'](_0x677777,_0x1859c2),_0x9d36d1?_0x9d36d1['_data']+=_0x5eebef[_0x21ddf8]['item']['data']:_0x9d36d1=new mt(_0x5eebef[_0x21ddf8]['item']['data'],_0x5eebef[_0x21ddf8]['item']['getAttributes']()),_0x5eebef[_0x21ddf8+0x1]&&'text'===_0x5eebef[_0x21ddf8+0x1]['type']&&_0x55c95a(_0x9d36d1,_0x5eebef[_0x21ddf8+0x1]['item'])||(_0x27011b[0x0]['_appendChild'](_0x9d36d1),_0x9d36d1=null),_0x1859c2[_0x1859c2['length']-0x1]+=_0x5eebef[_0x21ddf8]['item']['offsetSize'],_0x5eebef[_0x21ddf8]['nextPosition']=_0x29fc2b['createPositionFromPath'](_0x677777,_0x1859c2));for(let _0x36abbe=0x0;_0x36abbe<_0x5eebef['length'];_0x36abbe++){const _0x2ebeff=_0x5eebef[_0x36abbe]['previousPosition'],_0x74b86f=_0x5eebef[_0x36abbe]['nextPosition'];for(const _0xfef2f1 of _0x5eebef[_0x36abbe]['markersStart'])_0x218116['set'](_0xfef2f1,{'start':_0x2ebeff,'end':null});_0x5b66f3('isRemoveSuggestion',_0x36abbe,_0x2ebeff,_0x74b86f),_0x5b66f3('isAddSuggestion',_0x36abbe,_0x2ebeff,_0x74b86f),_0x5b66f3('isRemoved',_0x36abbe,_0x2ebeff,_0x74b86f),_0x5b66f3('isAdded',_0x36abbe,_0x2ebeff,_0x74b86f);for(const _0x4b4ac6 of _0x5eebef[_0x36abbe]['markersEnd']){const _0x1cae80=_0x218116['get'](_0x4b4ac6);_0x1cae80?_0x1cae80['end']=_0x74b86f:_0x218116['set'](_0x4b4ac6,{'start':_0x74b86f,'end':_0x74b86f});}}for(const [_0x2986e3,_0x45f033]of _0x218116){const _0x1f724a=this['editor']['model']['createRange'](_0x45f033['start'],_0x45f033['end']);_0x677777['markers']['set'](_0x2986e3,_0x1f724a);}return _0x544d2e['sort']((_0x284523,_0x5cb95d)=>{const _0x502a19=_0x677777['markers']['get']('revision:'+_0x284523['id']),_0x457952=_0x677777['markers']['get']('revision:'+_0x5cb95d['id']);return _0x502a19['start']['isBefore'](_0x457952['start'])?-0x1:_0x502a19['start']['isAfter'](_0x457952['start'])?0x1:_0x502a19['end']['isBefore'](_0x457952['end'])?-0x1:_0x502a19['end']['isAfter'](_0x457952['end'])?0x1:'add'===_0x284523['type']?-0x1:0x1;}),{'root':_0x677777,'changes':_0x544d2e};function _0x5b66f3(_0x1b09d7,_0x5f2b79,_0x413ff5,_0x1723c8){const _0x1e28f5=!!_0x5eebef[_0x5f2b79][_0x1b09d7],_0x17b7e2=_0x1e28f5?_0x5eebef[_0x5f2b79][_0x1b09d7]['userId']:null,_0x52fe97=_0x5f2b79===_0x5eebef['length']-0x1,_0x536a2f=_0x3288d9[_0x1b09d7][0x0],_0x2c812f=_0x33989e['isObject'](_0x5eebef[_0x5f2b79]['item']);!_0x476078[_0x1b09d7]&&_0x1e28f5?_0x476078[_0x1b09d7]={'start':_0x413ff5,'tapeItem':_0x5eebef[_0x5f2b79],'userId':_0x17b7e2,'type':_0x1b09d7}:_0x476078[_0x1b09d7]&&!_0x1e28f5?(_0x476078[_0x1b09d7]['end']=_0x413ff5,_0x5cd20b(_0x476078[_0x1b09d7]),_0x476078[_0x1b09d7]=null):_0x476078[_0x1b09d7]&&_0x1e28f5&&_0x476078[_0x1b09d7]['userId']!==_0x17b7e2&&(_0x476078[_0x1b09d7]['end']=_0x413ff5,_0x536a2f&&_0x536a2f['userId']===_0x476078[_0x1b09d7]['userId']||_0x5cd20b(_0x476078[_0x1b09d7]),_0x476078[_0x1b09d7]={'start':_0x413ff5,'tapeItem':_0x5eebef[_0x5f2b79],'userId':_0x17b7e2,'type':_0x1b09d7}),_0x476078[_0x1b09d7]&&_0x2c812f&&('elementStart'!==_0x5eebef[_0x5f2b79]['type']||_0x536a2f&&_0x536a2f['userId']===_0x17b7e2||_0x3288d9[_0x1b09d7]['unshift']({'userId':_0x17b7e2,'object':_0x5eebef[_0x5f2b79]['item'],'change':_0x476078[_0x1b09d7]}),'elementEnd'===_0x5eebef[_0x5f2b79]['type']&&_0x536a2f&&_0x536a2f['object']===_0x5eebef[_0x5f2b79]['item']&&(_0x3288d9[_0x1b09d7]['shift'](),_0x476078[_0x1b09d7]=_0x536a2f['change'])),_0x476078[_0x1b09d7]&&_0x52fe97&&(_0x476078[_0x1b09d7]['end']=_0x1723c8,_0x5cd20b(_0x476078[_0x1b09d7]),_0x476078[_0x1b09d7]=null);}function _0x5cd20b({start:_0x57fb18,end:_0x3511b6,tapeItem:_0x41d95c,userId:_0x1bdcb1,type:_0x3e1bfb}){const _0x2e2bb6=_0x41d95c['item'],_0x4d314b=_0x29fc2b['schema']['isBlock'](_0x2e2bb6)&&!_0x29fc2b['schema']['isLimit'](_0x2e2bb6),_0x3f88d2=_0x57fb18['nodeAfter']==_0x3511b6['parent']&&_0x3511b6['isAtStart'];if(_0x4d314b&&_0x3f88d2)return;const _0x4596f1=_0x29fc2b['createRange'](_0x57fb18,_0x3511b6),_0x36e74b=_0x547cf2['get'](_0x1bdcb1),_0x35d2e1=new r({'author':_0x36e74b,'type':'isAdded'==_0x3e1bfb||'isAddSuggestion'==_0x3e1bfb?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3e1bfb||'isRemoveSuggestion'==_0x3e1bfb},'createdAt':new Date(),'rootName':_0x3618f4});_0x544d2e['push'](_0x35d2e1),_0x677777['markers']['set']('revision:'+_0x35d2e1['id'],_0x4596f1);}function _0x55c95a(_0x412802,_0x4fbcce){const _0x4d6181=_0x412802['getAttributes'](),_0x302d9b=_0x4fbcce['getAttributes']();for(const _0x4ea343 of _0x4d6181){if(_0x4ea343[0x1]!==_0x4fbcce['getAttribute'](_0x4ea343[0x0]))return!0x1;_0x302d9b['next']();}return _0x302d9b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x410e83=>{const _0x17bd8d=_0x410e83['markerName']['split'](':')[0x1],_0x13ec7b=this['_getChangeFromId'](_0x17bd8d);if(!_0x13ec7b)return null;const _0x326a91='add'==_0x13ec7b['type']?'insertion':'deletion',_0x3570e5=['ck-suggestion-marker','ck-suggestion-marker-'+_0x326a91];return _0x13ec7b['data']['isSuggestion']&&_0x3570e5['push']('ck-suggestion-marker-'+_0x326a91+'-new'),this['activeChange']==_0x13ec7b&&_0x3570e5['push']('ck-suggestion-marker--active'),{'classes':_0x3570e5,'attributes':{'data-change-id':_0x17bd8d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x345ee5=>{_0x345ee5['on']('element:pre',(_0x443abe,_0x51c8d5,_0x403506)=>{const _0x2fd1ec=_0x51c8d5['viewItem']['getChild'](0x0);if(!_0x2fd1ec||!_0x2fd1ec['is']('element','code'))return;if(!_0x403506['consumable']['consume'](_0x2fd1ec,{'attributes':['vid_start','vid_end']}))return;const _0x26b344=_0x51c8d5['modelRange']['start']['nodeAfter'];_0x403506['writer']['setAttribute']('vid_start',_0x2fd1ec['getAttribute']('vid_start'),_0x26b344),_0x403506['writer']['setAttribute']('vid_end',_0x2fd1ec['getAttribute']('vid_end'),_0x26b344);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5bfb42=>{_0x5bfb42['on']('element',(_0x31484d,_0x30e3ef,_0x10725c)=>{if(!_0x10725c['consumable']['consume'](_0x30e3ef['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x30e3ef['modelRange']['isCollapsed'])return;const _0x34c3d3=_0x30e3ef['modelRange']['start']['nodeAfter'];_0x34c3d3['hasAttribute']('vid_start')||_0x34c3d3['hasAttribute']('vid')||(_0x10725c['writer']['setAttribute']('vid_start',_0x30e3ef['viewItem']['getAttribute']('vid_start'),_0x34c3d3),_0x10725c['writer']['setAttribute']('vid_end',_0x30e3ef['viewItem']['getAttribute']('vid_end'),_0x34c3d3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x14dbb4=>_0x14dbb4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5bd4b6,[,_0x3a6a0b])=>{['vid_start','vid_end','vid']['includes'](_0x3a6a0b)&&(_0x5bd4b6['return']=!0x0,_0x5bd4b6['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x25e787=>{_0x25e787['on']('attribute:vid',(_0x4b379a,_0x1d4f03,_0x58b713)=>{if('\x20'!=_0x1d4f03['item']['data']||_0x1d4f03['item']['parent']['maxOffset']>0x1)return;if(!_0x58b713['consumable']['consume'](_0x1d4f03['item'],_0x4b379a['name']))return;const _0x5a8c02=_0x58b713['writer'],_0x3dc661=_0x58b713['mapper']['toViewRange'](_0x1d4f03['range']);_0x5a8c02['wrap'](_0x3dc661,_0x5a8c02['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x58ec77){const _0x513971=_0x58ec77['plugins']['get']('RevisionViewer');return(_0xd67028,_0x177e5e,_0x104bfb)=>{const _0x5dba25=_0x177e5e['markerName']['split'](':')[0x1],_0x21c524=_0x513971['_getChangeFromId'](_0x5dba25);if(!_0x21c524)return null;const _0x4af951='add'==_0x21c524['type']?'split':'merge';if(!_0x104bfb['consumable']['test'](_0x177e5e['markerRange'],_0xd67028['name']))return;const _0x1c48d4=_0x177e5e['markerRange']['getWalker'](),_0x16879e=_0x177e5e['markerRange']['start'],_0x9735c6=_0x58ec77['model']['schema'];let _0xd3ac1a=null,_0x51ad65=null,_0x3e50e9=!0x1,_0x50c618=!0x1;for(const _0x3ada41 of _0x1c48d4){const _0xb4924c=_0x3ada41['item'];_0x3e50e9=_0x3e50e9||_0x9735c6['isContent'](_0xb4924c);const _0x32d4ea=_0x104bfb['mapper']['toViewElement'](_0xb4924c);if(_0x32d4ea&&_0x32d4ea['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ada41['type']&&(_0x9735c6['isBlock'](_0xb4924c)&&!_0x9735c6['isLimit'](_0xb4924c)&&(_0xb4924c['nextSibling']||_0x16879e['isAtEnd']?_0xd3ac1a&&_0xd3ac1a['parent']==_0xb4924c||(_0xd3ac1a=_0xb4924c,_0x3a7583(_0x3ada41['previousPosition']),_0x50c618=!0x0):_0x51ad65=_0x51ad65||_0x3ada41['previousPosition']));}function _0x3a7583(_0x31272e){const _0x41b4a6=_0x104bfb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4af951}),_0x46fedb=_0x104bfb['mapper']['toViewPosition'](_0x31272e);_0x21c524['data']['isSuggestion']&&_0x104bfb['writer']['addClass']('ck-suggestion-marker-'+_0x4af951+'-new',_0x41b4a6),_0x513971['activeChange']==_0x21c524&&_0x104bfb['writer']['addClass']('ck-suggestion-marker--active',_0x41b4a6),_0x104bfb['writer']['insert'](_0x46fedb,_0x41b4a6),_0x104bfb['mapper']['bindElementToMarker'](_0x41b4a6,_0x177e5e['markerName']);}_0x3e50e9||_0x50c618||!_0x51ad65||_0x3a7583(_0x51ad65);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4a3ffa,_0x1836f3,_0x5e1790)=>{const _0x3eafd5=_0x5e1790['mapper']['markerNameToElements'](_0x1836f3['markerName']);if(_0x3eafd5){for(const _0x4d034e of _0x3eafd5)(_0x4d034e['hasClass']('ck-suggestion-marker-split')||_0x4d034e['hasClass']('ck-suggestion-marker-merge'))&&(_0x5e1790['mapper']['unbindElementFromMarkerName'](_0x4d034e,_0x1836f3['markerName']),_0x5e1790['writer']['remove'](_0x4d034e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x47e602,_0x5b5243,_0x55632f)=>{const _0x4f00a4=_0x5b5243['markerName']['split'](':')[0x1],_0x4f7056=this['_getChangeFromId'](_0x4f00a4);if(!_0x4f7056)return null;const _0x34a54a='add'==_0x4f7056['type']?'split':'merge';if(_0x55632f['consumable']['test'](_0x5b5243['markerRange'],_0x47e602['name']))for(const _0x5d5034 of _0x5b5243['markerRange']['getItems']()){if(!_0x5d5034['is']('element','softBreak'))continue;const _0x465a60=_0x55632f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34a54a}),_0x53b72e=_0x55632f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5d5034));_0x4f7056['data']['isSuggestion']&&_0x55632f['writer']['addClass']('ck-suggestion-marker-'+_0x34a54a+'-new',_0x465a60),this['activeChange']==_0x4f7056&&_0x55632f['writer']['addClass']('ck-suggestion-marker--active',_0x465a60),_0x55632f['writer']['insert'](_0x53b72e,_0x465a60),_0x55632f['mapper']['bindElementToMarker'](_0x465a60,_0x5b5243['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4440c7=>{for(const _0x49f7b8 of this['editor']['model']['document']['getRootNames']()){const _0x56edd3=this['editor']['model']['document']['getRoot'](_0x49f7b8),_0x46eee3=this['editor']['editing']['view']['document']['getRoot'](_0x49f7b8);if(_0x46eee3){const _0x3afdae=_0x56edd3['getAttribute']('revisionHistoryAttachChange');if(_0x4440c7['removeAttribute']('data-change-id',_0x46eee3),_0x4440c7['removeClass']('ck-revision-history-root-add',_0x46eee3),_0x4440c7['removeClass']('ck-revision-history-root-remove',_0x46eee3),_0x4440c7['removeClass']('ck-revision-history-root--active',_0x46eee3),_0x3afdae){const _0x4ebeeb=this['_getChangeFromId'](_0x3afdae);if(!_0x4ebeeb)return null;_0x4440c7['setAttribute']('data-change-id',_0x3afdae,_0x46eee3),_0x4440c7['addClass']('ck-revision-history-root-'+_0x4ebeeb['type'],_0x46eee3),this['activeChange']==_0x4ebeeb&&_0x4440c7['addClass']('ck-revision-history-root--active',_0x46eee3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x559467=>'revision-comment:'+_0x559467,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x273513=>'revision-suggestion:'+_0x273513,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x146c4c=>({'name':'suggestion:'+_0x146c4c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x254edd=>{const _0x2bf268=_0x254edd['markerName']['split'](':')[0x1];return'insertion'!=_0x2bf268&&'deletion'!=_0x2bf268?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2bf268]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x259b0e,_0x3b7fba,_0x54e7a8)=>{const _0x2f71ce=_0x54e7a8['mapper']['markerNameToElements'](_0x3b7fba['markerName']);if(_0x2f71ce){for(const _0x7e06a1 of _0x2f71ce)_0x7e06a1['is']('uiElement')&&(_0x54e7a8['mapper']['unbindElementFromMarkerName'](_0x7e06a1,_0x3b7fba['markerName']),_0x54e7a8['writer']['remove'](_0x7e06a1));}},{'priority':'high'});}['_getChangeFromId'](_0x53fae5){return this['_changeIdToChange']['get'](_0x53fae5);}['_getViewForChange'](_0x5deb45){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5deb45),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4d181e,_0x3a569d,_0x4f62c1,_0x27d9cd)=>{_0x27d9cd&&this['_balloon']['remove'](_0x27d9cd),_0x4f62c1&&(this['_balloon']['add']({'view':_0x4f62c1,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x20d7b4=this['editor']['editing'],_0x4a0162=this['_getChangeFromId'](_0x4f62c1['changeId']);let _0x31811c;if(_0x4a0162['data']['isOnRoot']){const _0x4e8841=_0x20d7b4['view']['getDomRoot'](_0x4a0162['rootName']);_0x31811c=Array['from'](_0x4e8841['getClientRects']());}else{const _0x11db5b=this['editor']['model']['markers']['get']('revision:'+_0x4f62c1['changeId']);_0x31811c=Array['from'](_0x20d7b4['mapper']['markerNameToElements'](_0x11db5b['name']))['map'](_0x313282=>_0x20d7b4['view']['domConverter']['mapViewToDom'](_0x313282))['map'](_0x27b267=>Array['from'](_0x27b267['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x31811c[0x0];return _0x31811c['find'](_0x284ea9=>_0x284ea9['top']-0x3<=this['_activeViewTarget']['y']&&_0x284ea9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x284ea9['left']-0x3<=this['_activeViewTarget']['x']&&_0x284ea9['right']+0x3>=this['_activeViewTarget']['x'])||_0x31811c[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3040f6,_0x587473,_0x5b2ded,_0x41e263)=>{this['activeView']=_0x5b2ded?this['_getViewForChange'](_0x5b2ded):null,this['editor']['model']['change'](()=>{const _0x3781fe=this['editor']['editing'];_0x41e263&&(_0x41e263['data']['isOnRoot']?_0x3781fe['view']['change'](_0xd455a2=>{_0xd455a2['removeClass']('ck-revision-history-root--active',_0x3781fe['view']['document']['getRoot'](_0x41e263['rootName']));}):_0x3781fe['reconvertMarker']('revision:'+_0x41e263['id'])),_0x5b2ded&&(_0x5b2ded['data']['isOnRoot']?_0x3781fe['view']['change'](_0x342ef7=>{_0x342ef7['addClass']('ck-revision-history-root--active',_0x3781fe['view']['document']['getRoot'](_0x5b2ded['rootName']));}):_0x3781fe['reconvertMarker']('revision:'+_0x5b2ded['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4bca23,_0x4689f3)=>{if(this['activeChange'])return;const _0x553549=this['_findChangeIdFromDomTarget'](_0x4689f3['target']),_0x1e3028=this['_changeIdToChange']['get'](_0x553549);_0x1e3028?(this['_activeViewTarget']={'x':_0x4689f3['domEvent']['x'],'y':_0x4689f3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1e3028)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x525e13,_0x45040f)=>{const _0x32c63a=this['_findChangeIdFromDomTarget'](_0x45040f['target']),_0x417f8f=this['_changeIdToChange']['get'](_0x32c63a);_0x417f8f?(this['_activeViewTarget']={'x':_0x45040f['domEvent']['x'],'y':_0x45040f['domEvent']['y']},_0x417f8f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x417f8f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3c4dc0){do{const _0x342b60=_0x3c4dc0['getAttribute']('data-change-id');if(_0x342b60)return _0x342b60;_0x3c4dc0=_0x3c4dc0['parent'];}while(_0x3c4dc0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x7be215=>{for(const _0x57fea5 of this['editor']['model']['markers'])_0x7be215['removeMarker'](_0x57fea5);});}}function X(_0x4dc02f,_0x2ae735){return(_0x2065cd,_0x5ba7b8,_0x5c9096)=>{if(!_0x5c9096['consumable']['test'](_0x5ba7b8['markerRange'],_0x2065cd['name']))return;const _0x35c821=_0x5ba7b8['markerRange']['getWalker'](),_0xf23969=_0x5ba7b8['markerRange']['start'],_0x5bab17=_0x4dc02f['model']['schema'];let _0x614f8d=null,_0x20caa8=null,_0x5c6326=!0x1,_0x16831f=!0x1;for(const _0x2b788c of _0x35c821){const _0x301146=_0x2b788c['item'];_0x5c6326=_0x5c6326||_0x5bab17['isContent'](_0x301146);const _0x5f5858=_0x5c9096['mapper']['toViewElement'](_0x301146);if(_0x5f5858&&_0x5f5858['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2b788c['type']&&(_0x5bab17['isBlock'](_0x301146)&&!_0x5bab17['isLimit'](_0x301146)&&(_0x301146['nextSibling']||_0xf23969['isAtEnd']?_0x614f8d&&_0x614f8d['parent']==_0x301146||(_0x614f8d=_0x301146,_0x40435d(_0x2b788c['previousPosition']),_0x16831f=!0x0):_0x20caa8=_0x20caa8||_0x2b788c['previousPosition']));}function _0x40435d(_0x2a16dd){const _0x4c1206=_0x5c9096['mapper']['toViewPosition'](_0x2a16dd),_0x22d797=_0x5c9096['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2ae735});_0x5c9096['writer']['insert'](_0x4c1206,_0x22d797),_0x5c9096['mapper']['bindElementToMarker'](_0x22d797,_0x5ba7b8['markerName']);}_0x5c6326||_0x16831f||!_0x20caa8||_0x40435d(_0x20caa8);};}class wt extends _0x352de6{constructor(_0x397d54){super(_0x397d54);const _0x5c2d36=_0x397d54['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x5c2d36,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5c2d36,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x22cb52=this['editor'],_0x3237d9=_0x22cb52['plugins']['get'](m),_0x8a57c3=_0x3237d9['isReady']?_0x3237d9['diff']['newRevisionId']:null;_0x22cb52['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x8a57c3);}['refresh'](){const {isReady:_0x4ef387,isEnabled:_0x2aa5a5,repository:_0xff18a,diff:_0x54acc1}=this['editor']['plugins']['get'](m),_0xc08ded=_0x54acc1&&_0xff18a['getLaterVisibleRevision'](_0x54acc1['newRevisionId']);this['isEnabled']=_0x4ef387&&_0x2aa5a5&&Boolean(_0xc08ded);}}class pt extends _0x352de6{['_step'];constructor(_0x4258cb,{direction:_0x7fae79}){super(_0x4258cb);const _0x21b21b=_0x4258cb['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x7fae79?0x1:-0x1,this['listenTo'](_0x21b21b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x21b21b,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x21b21b,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x33469e=this['editor'],_0x4ced2f=_0x33469e['plugins']['get'](m),{isNavigationMode:_0x2d378a,currentChangeNumber:_0x2e20f0}=_0x4ced2f;let _0x5d0ea4;if(_0x4ced2f['activeChange']=_0x2d378a?_0x4ced2f['diff']['changes']['get'](_0x2e20f0+this['_step']):_0x4ced2f['diff']['changes']['first'],_0x4ced2f['activeChange']['data']['isOnRoot'])_0x5d0ea4=_0x33469e['editing']['view']['getDomRoot'](_0x4ced2f['activeChange']['rootName']);else{const _0x3a6c1f=_0x33469e['model']['markers']['get']('revision:'+_0x4ced2f['activeChange']['id']);_0x5d0ea4=_0x35fb8c(_0x33469e['editing'],_0x3a6c1f);}_0x3808f6({'target':_0x5d0ea4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x30f0fe,currentChangeNumber:_0x49d324,numberOfChanges:_0x1c8438,isReady:_0x4aa08a,isEnabled:_0x18ffeb}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x18ffeb&&_0x4aa08a&&_0x1c8438)&&(!_0x30f0fe||(0x1===this['_step']?_0x49d324<_0x1c8438-0x1:_0x49d324>0x0));}}class _i extends _0x27485a{constructor(_0x32c854){super(_0x32c854);const _0x5be44d=this['bindTemplate'],_0x27a0f7=new _0x3ab2b8(_0x32c854),_0x3b9c50=new _0x3ab2b8(_0x32c854);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',(_0x48fd69,_0x45b5ea)=>_0x48fd69&&_0x45b5ea>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x10917a,_0x19a385,_0x194be0,_0x1cf147)=>{if(!_0x10917a)return g(_0x32c854,'Loading...');if(!_0x194be0)return g(_0x32c854,'No\x20changes');const _0x3f26a2=g(_0x32c854,'NUMBER_OF_CHANGES',_0x194be0);return _0x1cf147?g(_0x32c854,'X_OF_Y_CHANGES',[_0x19a385+0x1,_0x194be0]):_0x3f26a2;}),_0x27a0f7['set']({'label':g(_0x32c854,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2c449b}),_0x3b9c50['set']({'label':g(_0x32c854,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2a54bb}),_0x27a0f7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3b9c50['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x27a0f7['on']('execute',()=>this['fire']('execute','backward')),_0x3b9c50['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',_0x5be44d['if']('_isStatusLabelVisible','ck-hidden',_0x5a12cd=>!_0x5a12cd)]},'children':[{'text':_0x5be44d['to']('isNavigationMode',_0x2cdfa6=>_0x2cdfa6?g(_0x32c854,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x32c854,'Total')+':\x20')}]},{'text':_0x5be44d['to']('_statusText')}]},new _0x4c3bb4(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x27a0f7,_0x3b9c50]}]});}}const ee='ck-editor__editable__loading-overlay';class ie extends _0x13d4c1{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x380ac4=this['editor']['editing']['view'];_0x380ac4['change'](_0x3f1bc9=>{for(const _0x33b1e4 of _0x380ac4['document']['roots'])_0x3f1bc9['addClass'](ee,_0x33b1e4);});}['hide'](){const _0x26d4a9=this['editor']['editing']['view'];_0x26d4a9['change'](_0x2d576d=>{for(const _0xaa5ea8 of _0x26d4a9['document']['roots'])_0x2d576d['removeClass'](ee,_0xaa5ea8);});}}class R extends _0x13d4c1{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ie];}['init'](){const _0xe736a3=this['editor'],_0x45ae7b=_0xe736a3['plugins']['get'](m),_0x428eb0=_0xe736a3['plugins']['get'](ie);_0xe736a3['ui']['componentFactory']['add']('exitToEditing',_0x5e2b2e=>{const _0xb3ef03=new _0x3ab2b8(_0x5e2b2e);return _0xb3ef03['set']({'label':g(_0x5e2b2e,'Back\x20to\x20editing'),'icon':te,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xb3ef03,'execute',()=>{_0xe736a3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xb3ef03;}),_0xe736a3['ui']['componentFactory']['add']('restoreRevision',_0x3763d6=>{const _0x1a5f45=new _0x3ab2b8(_0x3763d6);return _0x1a5f45['set']({'label':g(_0x3763d6,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1a5f45['bind']('isEnabled')['to'](_0xe736a3['commands']['get']('restoreRevision')),this['listenTo'](_0x1a5f45,'execute',()=>_0xe736a3['execute']('restoreRevision')),_0x1a5f45;}),_0xe736a3['ui']['componentFactory']['add']('changesNavigation',_0x2726db=>{const _0x58d028=new _i(_0x2726db),_0x1c7da8=_0xe736a3['commands']['get']('showPreviousChange'),_0x5d6220=_0xe736a3['commands']['get']('showNextChange');return _0x58d028['bind']('isBackwardNavigationEnabled')['to'](_0x1c7da8,'isEnabled'),_0x58d028['bind']('isForwardNavigationEnabled')['to'](_0x5d6220,'isEnabled'),_0x58d028['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x45ae7b),this['listenTo'](_0x58d028,'execute',(_0x65aa4f,_0x5c3190)=>{_0xe736a3['execute']('forward'===_0x5c3190?'showNextChange':'showPreviousChange');}),_0x58d028;}),_0x428eb0['show'](),_0x45ae7b['on']('change:isReady',(_0x42067d,_0x1f88c6,_0x5e0c96)=>{_0x5e0c96?_0x428eb0['hide']():_0x428eb0['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x403e4c,_0x43e176){super(_0x403e4c,_0x43e176);const _0x1105e3=this['bindTemplate'];this['set']({'label':g(_0x403e4c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x403e4c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1105e3['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x12dd3a=this['fieldView']['element'];this['_tooltipString']=_0x12dd3a['scrollWidth']>_0x12dd3a['clientWidth']&&_0x12dd3a['value']||'';}}class oi extends _0x27485a{constructor(_0x1d9c47,_0x9d716c,_0x3e2a65){super(_0x1d9c47);const _0x249b44=new _0x32afb7();_0x249b44['set']({'content':_0x8ab3f1,'viewBox':'0\x200\x2011\x2010'});const _0x24922e=['ck','ck-revision-history-sidebar__revision-author'];_0x3e2a65&&_0x24922e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x40e7e4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x1d9c47,_0x3e2a65?'Revision\x20creator':'Revision\x20author')},'children':[_0x249b44,_0x9d716c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x24922e},'children':_0x40e7e4});}}function ni(_0x2846d4,_0x5efd06){const _0x590e61=_0x2846d4['bindTemplate'],_0x122716=_0x2846d4['locale'],_0x17dd18=_0x12a8ba(_0x122716);_0x17dd18['panelPosition']='sw';const _0x28d1cb=function(_0x276a81,_0x582d09){const _0x2ee2de=function(_0x15191d,_0x24d8b2){const _0x2ea922=_0x15191d['locale'],_0x29db27={'Compare\x20against\x20selected':g(_0x2ea922,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2ea922,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2ea922,'Restore\x20this\x20revision')};return _0x24d8b2['map'](_0x47529a=>{const _0x20e265=_0x29db27[_0x47529a['name']];return _0x20e265&&_0x20e265!==_0x47529a['name']&&(_0x47529a['name']=_0x20e265),_0x47529a;});}(_0x276a81,_0x582d09),_0x1712e9=new _0x16f7b0();for(const _0x3db589 of _0x2ee2de){const _0x143a39={'type':'button','model':new to({'label':_0x3db589['name'],'class':_0x3db589['class'],'withText':!0x0,'role':'menuitem','_action':_0x3db589['action']})};_0x143a39['model']['bind']('isEnabled')['to'](_0x276a81,'isActionsDropdownOpen',_0x5cc247=>'function'!=typeof _0x3db589['isEnabled']||(!_0x5cc247||_0x3db589['isEnabled'](_0x276a81))),_0x1712e9['add'](_0x143a39);}return _0x1712e9;}(_0x2846d4,_0x5efd06);return _0x2846d4['bind']('isActionsDropdownOpen')['to'](_0x17dd18,'isOpen'),_0x17dd18['buttonView']['set']({'label':g(_0x122716,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x29e41d}),_0x17dd18['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x590e61['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x590e61['to'](_0x543b65=>_0x543b65['stopPropagation']())}}),_0x17dd18['on']('execute',_0x3d59fc=>{_0x2846d4['isReady']&&'function'==typeof _0x3d59fc['source']['_action']&&_0x3d59fc['source']['_action'](_0x2846d4);}),_0x1c13b4(_0x17dd18,_0x28d1cb,{'role':'menu'}),_0x17dd18['listenTo'](_0x2846d4,'change:isActionsDropdownOpen',(_0x2de520,_0x573e32,_0x172f34)=>{if(_0x172f34)for(const _0x2c7b49 of _0x17dd18['listView']['items']){const _0x38170c=_0x2c7b49['children']['first'],_0x234804=_0x5efd06['find'](_0x16f7d7=>_0x16f7d7['action']===_0x38170c['_action'])['isVisible'];_0x2c7b49['isVisible']=void 0x0===_0x234804||_0x234804(_0x2846d4);}}),_0x17dd18;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x2d86e9(_0x27485a){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3d8ba3,_0x30b60f,_0x5eb0b6,_0x5e6ae1){super(_0x3d8ba3);const _0x333227=this['bindTemplate'],_0x5c9722=function(_0x59448c,_0x14b7ab){const _0xdc44fa=Array['from'](_0x14b7ab['authors'])['filter'](_0x1b331b=>_0x1b331b!=_0x14b7ab['creator']);return _0x14b7ab['creator']&&_0xdc44fa['unshift'](_0x14b7ab['creator']),_0xdc44fa['map'](_0x495888=>new oi(_0x59448c,_0x495888,_0x495888==_0x14b7ab['creator']));}(_0x3d8ba3,_0x30b60f);this['id']=_0x30b60f['id'],this['_revision']=_0x30b60f,this['_requireRevisionName']=_0x5e6ae1,this['bind']('name','createdAt')['to'](_0x30b60f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x44b6e8=>{return _0x46a887=_0x3d8ba3['uiLanguage'],(_0x17e49e=_0x44b6e8)['toLocaleDateString'](_0x46a887,{'month':'long','day':'numeric'})+',\x20'+_0x17e49e['toLocaleTimeString'](_0x46a887,{'hour':'numeric','minute':'numeric'});var _0x46a887,_0x17e49e;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x3d8ba3,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1e6b44=>_0x1e6b44||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2d731d,_0x29e9b5)=>_0x2d731d&&_0x29e9b5),this['revisionActionsView']=_0x5eb0b6&&_0x5eb0b6['length']?ni(this,_0x5eb0b6):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x333227['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x333227['if']('isEnabled','ck-disabled',_0x53aeab=>!_0x53aeab),_0x333227['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x333227['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x333227['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':_0x333227['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':_0x5c9722}]},this['revisionActionsView']],'on':{'click':_0x333227['to'](_0x2116eb=>{_0x2116eb['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x27a79c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x27a79c,'change',()=>{this['_requireRevisionName']&&!_0x27a79c['value']||this['fire']('setName',{'id':this['id'],'name':_0x27a79c['value']}),_0x27a79c['value']||(_0x27a79c['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(_0x127d72,_0x40aef7){const _0x4405a3=_0x357f4a['fromJSDate'](_0x127d72)['setLocale'](_0x40aef7),_0x432323=_0x357f4a['local'](),_0xf80e4d=_0x432323['minus']({'days':0x1})['startOf']('day');let _0x28dec5,_0x5256e6;return _0x4405a3['hasSame'](_0x432323,'day')?(_0x28dec5=_0x4405a3['startOf']('day')['toJSDate'](),_0x5256e6=_0x4405a3['toRelativeCalendar']()):_0x4405a3['hasSame'](_0xf80e4d,'day')?(_0x28dec5=_0xf80e4d['toJSDate'](),_0x5256e6=_0x4405a3['toRelativeCalendar']()):_0x4405a3['hasSame'](_0x432323,'week')?(_0x28dec5=_0x4405a3['startOf']('week')['toJSDate'](),_0x5256e6=_0x4405a3['weekdayLong']||''):_0x4405a3['hasSame'](_0x432323,'year')?(_0x28dec5=_0x4405a3['startOf']('month')['toJSDate'](),_0x5256e6=_0x4405a3['monthLong']||''):(_0x28dec5=_0x4405a3['startOf']('year')['toJSDate'](),_0x5256e6=String(_0x4405a3['year'])),{'startDate':_0x28dec5,'localizedPeriodName':_0x5256e6};}class pi extends _0x27485a{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x14e111,_0x397a79,_0x295159,_0x498706){super(_0x14e111);const _0x189773=mi(_0x397a79,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x397a79,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x295159,this['_requireRevisionName']=_0x498706,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':_0x189773}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x54e4aa){const _0x10ffbd=new ai(this['locale'],_0x54e4aa,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x10ffbd);}['removeRevision'](_0x490593){const _0x1b030b=this['revisionViews']['find'](_0x2406e4=>_0x2406e4['id']===_0x490593['id']);this['revisionViews']['remove'](_0x1b030b);}}class is extends _0x27485a{constructor(_0x4c1cc7){super(_0x4c1cc7);const _0x1eab50=new _0x32afb7();_0x1eab50['content']=_0x34f0c9,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1eab50,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x4c1cc7,'Revision\x20history')]}]});}}class vi extends _0x27485a{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x39cd00,_0xedae58,_0x3a5685,_0x520ad5){super(_0x39cd00);const _0x5441b8=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xedae58,this['_revisionActions']=_0x3a5685,this['_requireRevisionName']=_0x520ad5,this['on']('select',(_0x145c14,_0x3528a6)=>{this['fire']('revisionSelected',_0x3528a6);}),this['on']('setName',(_0x2b18ef,_0x1ca3bf)=>{this['fire']('revisionSetName',_0x1ca3bf);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new is(_0x39cd00),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5441b8['if']('isEnabled','ck-disabled',_0x60dba=>!_0x60dba)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xbd648b of this['_revisions'])this['_addRevision'](_0xbd648b);this['_revisions']['on']('add',(_0x23a622,_0x46f9e6)=>{this['_addRevision'](_0x46f9e6);}),this['_revisions']['on']('remove',(_0x34c5c8,_0x28241d)=>{this['_removeRevision'](_0x28241d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5bfdf2=>_0x5bfdf2['revisionViews']['map'](_0x54c29a=>_0x54c29a))['flat']();}['selectRevision'](_0x3de672){for(const _0x5decba of this['revisionViews'])_0x3de672&&_0x3de672['id']===_0x5decba['id']?_0x5decba['select']():_0x5decba['deselect']();}['highlightRevisions'](_0x391383){for(const _0xa7a766 of this['revisionViews'])_0x391383['some'](({id:_0x5c01cb})=>_0x5c01cb===_0xa7a766['id'])?_0xa7a766['highlight']():_0xa7a766['unhighlight']();}['_addRevision'](_0x774a17){const _0x4e1add=mi(_0x774a17['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x323f56=this['timePeriodViews']['get'](0x0);_0x323f56&&_0x323f56['startDate']['getTime']()===_0x4e1add['getTime']()||(_0x323f56=new pi(this['locale'],_0x4e1add,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x323f56)),_0x323f56['addRevision'](_0x774a17);}['_removeRevision'](_0x22d537){const _0x3ed6af=mi(_0x22d537['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3ed6af)['removeRevision'](_0x22d537);}['_getTimePeriodViewByStartDate'](_0x2bc817){return this['timePeriodViews']['find'](_0x479d94=>_0x479d94['startDate']['getTime']()===_0x2bc817['getTime']());}}class d extends _0x13d4c1{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x590d6c,uid as _0x22d855,Collection as _0x5427d4,logWarning as _0x25ae0a,FocusTracker as _0x19b89a,KeystrokeHandler as _0x25d77a,scrollViewportToShowTarget as _0x5ed825,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x561adb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xa7d56a,set as _0x1e0a95,unset as _0x78cd88,isEqual as _0x4c7a8e}from'es-toolkit/compat';import{Plugin as _0x32d4e7,PendingActions as _0x1ef31a,Command as _0x233537,ElementApiMixin as _0x1c41d4,Editor as _0x575449}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x437ecf,getMarkerDomElement as _0x391391,ConfirmMixin as ti,sanitizeEditorConfig as _0x5b7920}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x19c319,ViewAttributeElement as _0x168c64,ViewEmptyElement as _0x16db82,ViewRawElement as _0x1de83e,ViewUIElement as _0x5d4a4a,ViewDocumentFragment as _0xeaabde,ViewText as _0x48eb00,ViewElement as _0x21c394,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x16a281,IconChevronUp as _0x5cb84a,IconChevronDown as _0x473186,IconUndo as _0x1383b9,IconUser as _0x5c8a6f,IconThreeVerticalDots as _0x13419a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1f2c38,submitHandler as _0x49f257,LabeledFieldView as _0x53ede4,createLabeledInputText as _0x5abb26,createDropdown as _0x3c7a5d,ListView as _0x12ae53,ListItemView as _0x460b48,ButtonView as te,MenuBarMenuView as _0x1d067e,MenuBarMenuListView as _0x5e338e,MenuBarMenuListItemView as _0x2d2284,MenuBarMenuListItemButtonView as _0x2b30fe,ContextualBalloon as _0xf0f501,ToolbarSeparatorView as _0x1ebccf,IconView as _0x3dbdca,addListToDropdown as _0x589ad9,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x56e664}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x590d6c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5c308a){super(),this['id']=_0x5c308a['id']||_0x22d855(),this['creator']=_0x5c308a['creator']||null,this['authors']=_0x5c308a['authors']||[],this['diffData']=_0x5c308a['diffData']||null,this['toVersion']=_0x5c308a['toVersion']||0x0,this['fromVersion']=_0x5c308a['fromVersion']||0x0,this['set']('name',_0x5c308a['name']||''),this['set']('createdAt',_0x5c308a['createdAt']||new Date()),this['set']('attributes',_0x5c308a['attributes']||{});}['setName'](_0x4141df){this['_update']({'name':_0x4141df});}['setAttribute'](_0x32768d,_0x2f37a9){const _0xc1a94f=_0xa7d56a(this['attributes']);_0x1e0a95(_0xc1a94f,_0x32768d,_0x2f37a9),this['_update']({'attributes':_0xc1a94f});}['removeAttribute'](_0x2eb4ac){const _0x47a795=_0xa7d56a(this['attributes']);_0x78cd88(_0x47a795,_0x2eb4ac),this['_update']({'attributes':_0x47a795});}['_update'](_0x4edc9d,_0x4ea961=!0x1){let _0x2d5056=!0x1;const _0x2a6902={'id':this['id']},_0x1ccba7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4596e4 of _0x1ccba7){const _0xeb9f29=_0x4edc9d[_0x4596e4];void 0x0!==_0xeb9f29&&_0xeb9f29!==this[_0x4596e4]&&(this[_0x4596e4]=_0xeb9f29,_0x2a6902[_0x4596e4]=_0xeb9f29,_0x2d5056=!0x0);}_0x2d5056&&(_0x2a6902['authors']&&(_0x2a6902['authorsIds']=_0x2a6902['authors']['map'](_0x568953=>_0x568953['id']),delete _0x2a6902['authors']),this['fire']('_update',_0x2a6902,_0x4ea961));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x469897=>_0x469897['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x32d4e7{['_revisions'];static get['requires'](){return[_0x437ecf];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x19e059){super(_0x19e059),this['_revisions']=new _0x5427d4();}['afterInit'](){!async function(_0x1a9a9c){const _0x4c4f4d=_0x4f6df8([0x6b,0x6e,0x46,0x69,0x7a,0x66,0x6a,0x79,0x48,0x71,0x62,0x47,0x30,0x72,0x42,0x41,0x38,0x34,0x6d,0x77,0x31,0x4c,0x61,0x58,0x54,0x70,0x52,0x63,0x75,0x57,0x6f,0x4f,0x51,0x74,0x4e,0x55,0x43,0x33,0x44,0x59,0x45,0x4a,0x5a,0x64,0x56,0x37,0x76,0x39,0x35,0x78,0x68,0x49,0x73,0x36,0x53,0x65,0x4d,0x32,0x50,0x67,0x4b,0x6c]),_0x20df3e=0xeb829,_0x56131f=0x29bc3a08,_0x56921f=0x29bb5990^_0x56131f,_0x3eb23e=window[_0x4f6df8([0x44,0x61,0x74,0x65])][_0x4f6df8([0x6e,0x6f,0x77])](),_0x3a9343=_0x1a9a9c[_0x4f6df8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1da91e=new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349414=>{_0x3a9343[_0x4f6df8([0x6f,0x6e,0x63,0x65])](_0x4f6df8([0x72,0x65,0x61,0x64,0x79]),_0x349414);}),_0xfa32e9={[_0x4f6df8([0x6b,0x74,0x79])]:_0x4f6df8([0x45,0x43]),[_0x4f6df8([0x75,0x73,0x65])]:_0x4f6df8([0x73,0x69,0x67]),[_0x4f6df8([0x63,0x72,0x76])]:_0x4f6df8([0x50,0x2d,0x32,0x35,0x36]),[_0x4f6df8([0x78])]:_0x4f6df8([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]),[_0x4f6df8([0x79])]:_0x4f6df8([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]),[_0x4f6df8([0x61,0x6c,0x67])]:_0x4f6df8([0x45,0x53,0x32,0x35,0x36])},_0x5a1f4e=_0x3a9343[_0x4f6df8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f6df8([0x67,0x65,0x74])](_0x4f6df8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2113fc(){let _0x4c1be6,_0x446f6c=null,_0x296650=null;try{if(_0x5a1f4e==_0x4f6df8([0x47,0x50,0x4c]))return _0x4f6df8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c1be6=_0x5e69f3(),!_0x4c1be6)return _0x4f6df8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c1be6[_0x4f6df8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x296650=_0x5de0ec(_0x4c1be6[_0x4f6df8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c1be6[_0x4f6df8([0x6a,0x74,0x69])])),await _0x46ab4d()?_0xfcbdfb()?_0x3734f9()?_0x4f6df8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x147900()?(_0x4c1be6[_0x4f6df8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f6df8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x446f6c=_0x40a670(_0x4f6df8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c1be6[_0x4f6df8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f6df8([0x74,0x72,0x69,0x61,0x6c])&&(_0x446f6c=_0x40a670(_0x4f6df8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39f67d()):_0x4f6df8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f6df8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f6df8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2e6ef6){return _0x4f6df8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3734f9(){const _0x51a8a0=[_0x4f6df8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f6df8([0x74,0x72,0x69,0x61,0x6c])][_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c1be6[_0x4f6df8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3eb23e/0x3e8:0xe10*_0x56921f;return _0x4c1be6[_0x4f6df8([0x65,0x78,0x70])]<_0x51a8a0;}function _0xfcbdfb(){const _0x41a2eb=_0x4c1be6[_0x4f6df8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x41a2eb)return!0x1;if(_0x41a2eb[_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6df8([0x2a])))return!0x0;if(_0x41a2eb[_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6df8([0x52,0x48])))return!0x0;if(_0x41a2eb[_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6df8([0x52,0x52,0x48]))){if(_0x248087())return!0x0;if(_0x1c74d7()||_0x14d81c())return!0x0;}return!0x1;}function _0x147900(){const _0x377ab8=_0x4c1be6[_0x4f6df8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x377ab8||0x0==_0x377ab8[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf16a0}=new URL(window[_0x4f6df8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x377ab8[_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf16a0))return!0x0;const _0x1b3173=_0xf16a0[_0x4f6df8([0x73,0x70,0x6c,0x69,0x74])](_0x4f6df8([0x2e]));return _0x377ab8[_0x4f6df8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5005d9=>_0x5005d9[_0x4f6df8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6df8([0x2a])))[_0x4f6df8([0x6d,0x61,0x70])](_0xc35a24=>_0xc35a24[_0x4f6df8([0x73,0x70,0x6c,0x69,0x74])](_0x4f6df8([0x2e])))[_0x4f6df8([0x73,0x6f,0x6d,0x65])](_0x5df515=>_0x1b3173[_0x4f6df8([0x65,0x76,0x65,0x72,0x79])]((_0x118562,_0x5f23a)=>_0x5df515[_0x5f23a]===_0x118562||_0x5df515[_0x5f23a]===_0x4f6df8([0x2a])));}function _0x39f67d(){return _0x446f6c&&_0x296650?new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10611a,_0xc7fa05)=>{_0x446f6c[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x10611a,_0xc7fa05),_0x296650[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x3feb70=>{_0x3feb70!=_0x4f6df8([0x56,0x61,0x6c,0x69,0x64])&&_0x10611a(_0x3feb70);},_0xc7fa05);}):_0x446f6c||_0x296650||_0x4f6df8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5de0ec(_0x115b4a,_0x4023ef){return new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d051c=>{if(_0x39e8ab())return _0x5d051c(_0x4f6df8([0x56,0x61,0x6c,0x69,0x64]));_0x32949e(),_0x3a9343[_0x4f6df8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f6df8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x128ee8=!0x1;const _0x5950b5=_0x22d855();function _0x316128(_0x31e5ff){return!!_0x31e5ff&&(typeof _0x31e5ff===_0x4f6df8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31e5ff===_0x4f6df8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31e5ff[_0x4f6df8([0x74,0x68,0x65,0x6e])]===_0x4f6df8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31e5ff[_0x4f6df8([0x63,0x61,0x74,0x63,0x68])]===_0x4f6df8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7d24f1(_0x3d5880){_0x210fbb(_0x3d5880)[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x449b8c=>{if(!_0x449b8c||_0x449b8c[_0x4f6df8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f6df8([0x6f,0x6b]))return _0x4f6df8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f8e6f(_0x1f9eb3(_0x5950b5+_0x4023ef))!=_0x449b8c[_0x4f6df8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f6df8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f6df8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x99c5d6=>(_0xc656da(),_0x99c5d6),()=>{const _0x5d7efe=_0x44284d();return null==_0x5d7efe?(_0xc656da(),_0x4f6df8([0x56,0x61,0x6c,0x69,0x64])):_0x4f6df8(_0x3eb23e-_0x5d7efe>(0xdb0be08^_0x56131f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x5d051c)[_0x4f6df8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d051c(_0x4f6df8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ac5fc=0x298ad488^_0x56131f;function _0xc656da(){const _0x925f06=_0x4f6df8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f8e6f(_0x1f9eb3(_0x115b4a)),_0x25b147=_0x34f99b(_0x3f8e6f(window[_0x4f6df8([0x4d,0x61,0x74,0x68])][_0x4f6df8([0x63,0x65,0x69,0x6c])](_0x3eb23e/_0x4ac5fc)));window[_0x4f6df8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f6df8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x925f06,_0x25b147);}function _0x44284d(){const _0x277ae4=_0x4f6df8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f8e6f(_0x1f9eb3(_0x115b4a)),_0x41bbb8=window[_0x4f6df8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f6df8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x277ae4);return _0x41bbb8?window[_0x4f6df8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34f99b(_0x41bbb8),0x10)*_0x4ac5fc:null;}function _0x210fbb(_0x1d0158){return new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e97ce,_0x1961be)=>{_0x1d0158[_0x4f6df8([0x74,0x68,0x65,0x6e])](_0x1e97ce,_0x1961be),window[_0x4f6df8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1961be,0x29bdeec8^_0x56131f);});}}_0x3a9343[_0x4f6df8([0x6f,0x6e])](_0x4f6df8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54930b,_0xa439aa)=>{if(_0xa439aa[0x0]!=_0x115b4a)return _0x5d051c(_0x4f6df8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa439aa[0x1]={..._0xa439aa[0x1],[_0x4f6df8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5950b5};},{[_0x4f6df8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f6df8([0x68,0x69,0x67,0x68])}),_0x3a9343[_0x4f6df8([0x6f,0x6e])](_0x4f6df8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x416be3=>{_0x316128(_0x416be3[_0x4f6df8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x128ee8=!0x0,_0x7d24f1(_0x416be3[_0x4f6df8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f6df8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f6df8([0x6c,0x6f,0x77])}),_0x1da91e[_0x4f6df8([0x74,0x68,0x65,0x6e])](()=>{_0x128ee8||_0x5d051c(_0x4f6df8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39e8ab(){return _0x3a9343[_0x4f6df8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f6df8([0x76,0x69,0x65,0x77])][_0x4f6df8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f6df8([0x61,0x75,0x74,0x6f]);}function _0x32949e(){_0x3a9343[_0x4f6df8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f6df8([0x76,0x69,0x65,0x77])][_0x4f6df8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f6df8([0x61,0x75,0x74,0x6f]);}}function _0x40a670(_0x3befe7){const _0x2b32e8=[new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8071=>setTimeout(_0x3b8071,0x29b504c4^_0x56131f)),_0x1da91e[_0x4f6df8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c44d8=>{const _0x7f0df7=0x29bc3a0f^_0x56131f,_0x4367e=_0x1a9a9c[_0x4f6df8([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x34cc40(){_0x4367e[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x7f0df7&&_0x3c44d8();}_0x34cc40(),_0x4367e[_0x4f6df8([0x6f,0x6e])](_0x4f6df8([0x61,0x64,0x64]),_0x34cc40);})),new window[(_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x505433=>{function _0x59e312(){for(const _0x52ac3d in window)if(window[_0x4f6df8([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4f6df8([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x52ac3d))&&window[_0x52ac3d]==_0x20df3e)return _0x505433();_0x3a9343[_0x4f6df8([0x73,0x74,0x61,0x74,0x65])]!=_0x4f6df8([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4f6df8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59e312,0x29bc2980^_0x56131f);}_0x512b4e(_0x4f6df8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x59e312();})];return window[_0x4f6df8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f6df8([0x72,0x61,0x63,0x65])](_0x2b32e8)[_0x4f6df8([0x74,0x68,0x65,0x6e])](()=>_0x3befe7);}async function _0x5ed08d(){if(await _0x1da91e,_0x512b4e(_0x4f6df8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3421f5=_0x1a9a9c[_0x4f6df8([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x12ee49=_0x1a9a9c[_0x4f6df8([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])](_0x3421f5[_0x4f6df8([0x69,0x64])]),_0x58db33=_0x8dca6e(_0x4f6df8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x58db33[_0x4f6df8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3421f5['id'],_0x12ee49?_0x12ee49['id']:null,!0x0),_0x58db33[_0x4f6df8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f6df8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x58db33[_0x4f6df8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x58db33[_0x4f6df8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x106116,void(_0x58db33[_0x4f6df8([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x106116);}if(_0x512b4e(_0x4f6df8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x117094=_0x8dca6e(_0x4f6df8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x117094[_0x4f6df8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f6df8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x117094[_0x4f6df8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x117094[_0x4f6df8([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x106116,_0x117094[_0x4f6df8([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x106116;}_0x3a9343[_0x4f6df8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f6df8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x106116,_0x3a9343[_0x4f6df8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f6df8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x106116,_0x3a9343[_0x4f6df8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f6df8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x248087(){return _0x512b4e(_0x4f6df8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x8dca6e(_0x4f6df8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f6df8([0x73,0x74,0x61,0x74,0x65])]==_0x4f6df8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1c74d7(){return _0x512b4e(_0x4f6df8([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 _0x14d81c(){return _0x512b4e(_0x4f6df8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x35bb70(_0x41ae3f){const _0x4bc407=_0x20df27();_0x3a9343[_0x4bc407]=_0x4f6df8([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])+_0x41ae3f,_0x41ae3f[_0x4f6df8([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4f6df8([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x20df27()]=_0x20df3e),_0x41ae3f!=_0x4f6df8([0x56,0x61,0x6c,0x69,0x64])&&_0x5ed08d();}function _0x20df27(){const _0x136a33=window[_0x4f6df8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f6df8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f6df8([0x6e,0x6f,0x77])]())[_0x4f6df8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f6df8([0x2e]),'');let _0x70e4a3=_0x4f6df8([0x6b]);for(let _0x16fbc0=0x0;_0x16fbc0<_0x136a33[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16fbc0+=0x2){let _0x1345fe=window[_0x4f6df8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x136a33[_0x4f6df8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16fbc0,_0x16fbc0+0x2));_0x1345fe>=_0x4c4f4d[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1345fe-=_0x4c4f4d[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x70e4a3+=_0x4c4f4d[_0x1345fe];}return _0x70e4a3;}function _0x5e69f3(){const _0x45e502=_0x5a1f4e[_0x4f6df8([0x73,0x70,0x6c,0x69,0x74])](_0x4f6df8([0x2e]));if(0x3!=_0x45e502[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43d052(_0x45e502[0x1]);function _0x43d052(_0x51f205){const _0x1ce1e7=_0x116fc4(_0x51f205);return _0x1ce1e7&&_0x1b4066()?_0x1ce1e7:null;function _0x1b4066(){const _0x9e75ac=_0x1ce1e7[_0x4f6df8([0x6a,0x74,0x69])],_0x45b452=window[_0x4f6df8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9e75ac[_0x4f6df8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9e75ac[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x477f03={..._0x1ce1e7,[_0x4f6df8([0x6a,0x74,0x69])]:_0x9e75ac[_0x4f6df8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9e75ac[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x477f03[_0x4f6df8([0x76,0x63])],_0x1f9eb3(_0x477f03)==_0x45b452;}}}async function _0x46ab4d(){let _0xeee0b7=!0x0;try{const _0x4b347e=_0x5a1f4e[_0x4f6df8([0x73,0x70,0x6c,0x69,0x74])](_0x4f6df8([0x2e])),[_0x3b7c8a,_0x1cda36,_0x59dc15]=_0x4b347e;return _0x77c586(_0x3b7c8a),await _0x1f079b(_0x3b7c8a,_0x1cda36,_0x59dc15),_0xeee0b7;}catch(_0x3fe56c){return!0x1;}function _0x77c586(_0x434c0f){const _0x5d7d02=_0x116fc4(_0x434c0f);_0x5d7d02&&_0x5d7d02[_0x4f6df8([0x61,0x6c,0x67])]==_0x4f6df8([0x45,0x53,0x32,0x35,0x36])||(_0xeee0b7=!0x1);}async function _0x1f079b(_0x4af325,_0x531f14,_0x43eaa9){const _0x3a2850=window[_0x4f6df8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f6df8([0x66,0x72,0x6f,0x6d])](_0x79a746(_0x43eaa9),_0x1e066d=>_0x1e066d[_0x4f6df8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b30a1=new window[(_0x4f6df8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f6df8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4af325+_0x4f6df8([0x2e])+_0x531f14),_0x249d48=window[_0x4f6df8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f6df8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x249d48)return;const _0x3a03ab=await _0x249d48[_0x4f6df8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f6df8([0x6a,0x77,0x6b]),_0xfa32e9,{[_0x4f6df8([0x6e,0x61,0x6d,0x65])]:_0x4f6df8([0x45,0x43,0x44,0x53,0x41]),[_0x4f6df8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f6df8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f6df8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x249d48[_0x4f6df8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f6df8([0x6e,0x61,0x6d,0x65])]:_0x4f6df8([0x45,0x43,0x44,0x53,0x41]),[_0x4f6df8([0x68,0x61,0x73,0x68])]:{[_0x4f6df8([0x6e,0x61,0x6d,0x65])]:_0x4f6df8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a03ab,_0x3a2850,_0x3b30a1)||(_0xeee0b7=!0x1);}}function _0x116fc4(_0x334121){return _0x334121[_0x4f6df8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f6df8([0x65,0x79]))?JSON[_0x4f6df8([0x70,0x61,0x72,0x73,0x65])](_0x79a746(_0x334121)):null;}function _0x79a746(_0x10fb92){return window[_0x4f6df8([0x61,0x74,0x6f,0x62])](_0x10fb92[_0x4f6df8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f6df8([0x2b]))[_0x4f6df8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f6df8([0x2f])));}function _0x1f9eb3(_0xb3d0ef){let _0x4c6d29=0x1505;function _0x509bce(_0x5576b6){for(let _0x57e801=0x0;_0x57e801<_0x5576b6[_0x4f6df8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57e801++){const _0x3a0863=_0x5576b6[_0x4f6df8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57e801);_0x4c6d29=(_0x4c6d29<<0x5)+_0x4c6d29+_0x3a0863,_0x4c6d29&=_0x4c6d29;}}function _0x326144(_0xeeb12c){Array[_0x4f6df8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xeeb12c)?_0xeeb12c[_0x4f6df8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x326144):_0xeeb12c&&typeof _0xeeb12c==_0x4f6df8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f6df8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xeeb12c)[_0x4f6df8([0x73,0x6f,0x72,0x74])]()[_0x4f6df8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25c50b,_0x52b3f4])=>{_0x509bce(_0x25c50b),_0x326144(_0x52b3f4);}):_0x509bce(window[_0x4f6df8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xeeb12c));}return _0x326144(_0xb3d0ef),_0x4c6d29>>>0x0;}function _0x3f8e6f(_0x2f2efe){return _0x2f2efe[_0x4f6df8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f6df8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f6df8([0x30]));}function _0x34f99b(_0x29b3ca){return _0x29b3ca[_0x4f6df8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f6df8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f6df8([0x6a,0x6f,0x69,0x6e])]('');}function _0x512b4e(_0x304bd9){return _0x3a9343[_0x4f6df8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f6df8([0x68,0x61,0x73])](_0x304bd9);}function _0x8dca6e(_0x1721dd){return _0x3a9343[_0x4f6df8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f6df8([0x67,0x65,0x74])](_0x1721dd);}function _0x106116(){}function _0x4f6df8(_0x3fd59f){return _0x3fd59f['map'](_0x11c488=>String['fromCharCode'](_0x11c488))['join']('');}_0x35bb70(await _0x2113fc());}(this);}['createRevision'](_0x2fc0e){const _0xea89f9=this['editor']['plugins']['get']('Users');return new h({'id':_0x2fc0e['id'],'name':_0x2fc0e['name'],'creator':_0x2fc0e['creatorId']?_0xea89f9['getUser'](_0x2fc0e['creatorId']):null,'diffData':_0x2fc0e['diffData']||_0x2fc0e['data'],'authors':_0x2fc0e['authorsIds']['map'](_0x164ed8=>_0xea89f9['getUser'](_0x164ed8)),'createdAt':new Date(_0x2fc0e['createdAt']),'attributes':_0x2fc0e['attributes'],'fromVersion':_0x2fc0e['fromVersion'],'toVersion':_0x2fc0e['toVersion']});}['addRevision'](_0x55484a,_0x30521f=0x0){this['_revisions']['add'](_0x55484a,_0x30521f);}['getRevision'](_0x2ef414){return this['_revisions']['get'](_0x2ef414);}['getRevisions'](_0x26954c={'toJSON':!0x1}){const _0x10d57a=Array['from'](this['_revisions']);return _0x10d57a['reverse'](),_0x26954c['toJSON']?_0x10d57a['map'](_0x4d6c28=>_0x4d6c28['toJSON']()):_0x10d57a;}['getIndex'](_0x4917fa){return this['_revisions']['getIndex'](_0x4917fa);}['getEarlierVisibleRevision'](_0x3fc70b){const [,_0x2b0448]=this['getRevisionsIterator'](_0x3fc70b,{'direction':'earlier'});return _0x2b0448;}['getLaterVisibleRevision'](_0x563907){const [,_0x44c601]=this['getRevisionsIterator'](_0x563907,{'direction':'later'});return _0x44c601;}['getRevisionsInDiff'](_0x19012a){const _0x5bb336=[];for(const _0x297608 of this['getRevisionsIterator'](_0x19012a['newRevisionId']))if(_0x5bb336['push'](_0x297608),_0x297608['id']===_0x19012a['oldRevisionId'])break;return _0x5bb336;}*['getRevisionsIterator'](_0x72fe2c,{direction:_0x46ecf9='earlier',filter:_0x412325=()=>!0x0}={}){const _0x15642d='earlier'===_0x46ecf9?0x1:-0x1;let _0x5ed259=this['_revisions']['get'](_0x72fe2c),_0x44b318=this['getIndex'](_0x5ed259);for(yield _0x5ed259;_0x5ed259;){if(_0x44b318+=_0x15642d,_0x5ed259=this['getRevision'](_0x44b318),!_0x5ed259)return;_0x412325(_0x5ed259)&&(yield _0x5ed259);}}}class V extends _0x32d4e7{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x19c319,'c'],[_0x168c64,'a'],[_0x16db82,'e'],[_0x1de83e,'r'],[_0x5d4a4a,'u']]);['_typeCharToViewClass']=new Map([['c',_0x19c319],['a',_0x168c64],['e',_0x16db82],['r',_0x1de83e],['u',_0x5d4a4a]]);async['loadRevisionData'](_0x389906,_0x458f29){if(_0x389906['diffData']||!_0x458f29)return;const _0x54ee7a=this['editor']['config']['get']('collaboration.channelId'),_0x433fa2=await _0x458f29['getRevision']({'channelId':_0x54ee7a,'revisionId':_0x389906['id']});_0x389906['diffData']=_0x433fa2['diffData'];}['getRevisionDocumentData'](_0x203f35){const _0x27500d={};for(const _0x4940e5 in _0x203f35['diffData']){if(_0x203f35['diffData'][_0x4940e5]['attachChange']&&!_0x203f35['diffData'][_0x4940e5]['attachChange']['isAttached'])continue;const _0x446678=this['_removeRevisionMarkers'](JSON['parse'](_0x203f35['diffData'][_0x4940e5]['insertions'])),_0xb60393=this['editor']['editing']['view']['document'],_0xc32836=new _0xeaabde(_0xb60393,_0x446678['map'](_0x60c767=>this['_getViewFromDiffObj'](_0x60c767,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x27500d[_0x4940e5]=this['editor']['data']['processor']['toData'](_0xc32836),this['editor']['data']['processor']['useFillerType']('default');}return _0x27500d;}['getRevisionRootsAttributes'](_0x5d829a){const _0x3f8565={};for(const _0x41b222 in _0x5d829a['diffData'])_0x5d829a['diffData'][_0x41b222]['attachChange']&&!_0x5d829a['diffData'][_0x41b222]['attachChange']['isAttached']||(_0x3f8565[_0x41b222]=_0x5d829a['diffData'][_0x41b222]['attributesAfter']||{});return _0x3f8565;}['_getTypeCharForViewElement'](_0x54be90){return this['_viewClassToTypeChar']['get'](_0x54be90['constructor']);}['_getViewFromDiffObj'](_0x4be422,_0x295b91){const _0x39ddbc=this['editor']['editing']['view']['document'];if('string'==typeof _0x4be422)return new _0x48eb00(_0x39ddbc,_0x4be422);{let _0x380c27,_0x41838c;_0x41838c='u'==_0x4be422['type']||'r'==_0x4be422['type']?[]:_0x4be422['children']['map'](_0x17d800=>this['_getViewFromDiffObj'](_0x17d800,_0x295b91));const _0x1480dd=this['_typeCharToViewClass']['get'](_0x4be422['type'])||_0x21c394,_0x5666fb=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x380c27=new _0x1480dd(_0x39ddbc,_0x4be422['name'],_0x4be422['attributes'],_0x41838c),'u'==_0x4be422['type']){const _0x44f0d7=_0x4be422['children'][0x0];if(_0x380c27['render']=function(_0x25cdf2){const _0x43bfd0=_0x25cdf2['createElement']('div');return _0x43bfd0['innerHTML']=_0x44f0d7,_0x43bfd0['childNodes'][0x0];},_0x295b91){const _0x590dd6=new _0xeaabde(_0x39ddbc);_0x590dd6['_appendChild'](_0x380c27);const _0x416d4f=Array['from'](_0x5666fb['viewChildrenToDom'](_0x590dd6,{'bind':!0x1})),_0x9539d1=_0x5666fb['domDocument']['createElement']('div');_0x9539d1['append'](..._0x416d4f),_0x380c27=Array['from'](_0x5666fb['domChildrenToView'](_0x9539d1))[0x0];}}else{if('r'==_0x4be422['type']){const _0x138598=_0x4be422['children'][0x0];if(_0x380c27['render']=function(_0x1795c5){_0x1795c5['innerHTML']=_0x138598;},_0x295b91){const _0x372d44=new _0xeaabde(_0x39ddbc);_0x372d44['_appendChild'](_0x380c27);const _0x4cd074=Array['from'](_0x5666fb['viewChildrenToDom'](_0x372d44,{'bind':!0x1})),_0x2e1a82=_0x5666fb['domDocument']['createElement']('div');_0x2e1a82['append'](..._0x4cd074);const _0x53dcbf=Array['from'](_0x5666fb['domChildrenToView'](_0x2e1a82));_0x53dcbf['length']>0x1?_0x380c27['_appendChild'](_0x53dcbf):_0x380c27=_0x53dcbf[0x0];}}}if(_0x4be422['customProperties']){for(const [_0x44a4cb,_0x9f713f]of _0x4be422['customProperties'])_0x380c27['_setCustomProperty'](_0x44a4cb,_0x9f713f);}const _0x4fc5f6=_0x4be422['fillerOffset']||null;return _0x380c27['getFillerOffset']=()=>_0x4fc5f6,_0x380c27;}}['_makeModelFromViewString'](_0x3c59f2){const _0x56fc26=JSON['parse'](_0x3c59f2),_0x224195=this['editor']['editing']['view']['document'],_0x279af7=new _0xeaabde(_0x224195,_0x56fc26['map'](_0x597710=>this['_getViewFromDiffObj'](_0x597710,!0x0)));return this['editor']['data']['toModel'](_0x279af7);}['_removeRevisionMarkers'](_0x2f1a76){return(_0x2f1a76=_0x2f1a76['filter'](_0x3e09ad=>!_0x3e09ad['name']||'revision-start'!==_0x3e09ad['name']&&'revision-end'!==_0x3e09ad['name']))['forEach'](_0x8d0f15=>{'string'!=typeof _0x8d0f15&&(_0x8d0f15['children']=this['_removeRevisionMarkers'](_0x8d0f15['children']),_0x8d0f15['attributes']=_0x8d0f15['attributes']['filter'](_0x5c6525=>!_0x5c6525[0x0]['startsWith']('data-revision-')));}),_0x2f1a76;}}function g(_0x4d96ad,_0x473158,_0x2f4276){const t=_0x4d96ad['t'];switch(_0x473158){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'},_0x2f4276);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2f4276);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x32d4e7{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x437ecf,I,V,_0x1ef31a];}constructor(_0x9111b4){super(_0x9111b4),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x50ec70=_0x22d855();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x50ec70},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2e7724=this['repository']['getRevision'](0x0),_0x5d8fed=_0x2e7724&&null===_0x2e7724['creator']?_0x2e7724:null;if(this['_continueCurrentRevision']=!!_0x5d8fed&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3cb015=this['_source']['getCurrentRevisionId'](),_0x567d61=this['repository']['getRevision'](_0x3cb015);if(_0x567d61)this['_startingVersion']=_0x567d61['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1a3429=this['_source']['history']['_operations']['find'](_0x21f5e1=>!_0x21f5e1['_isInit']),_0x35d271=_0x1a3429?_0x1a3429['baseVersion']:this['_source']['history']['version'];_0x2e7724?(_0x2e7724['toVersion']<_0x35d271&&_0x2e7724['_update']({'toVersion':_0x35d271}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5d8fed['id'],this['_startingVersion']=_0x5d8fed['fromVersion']):(this['_startingVersion']=_0x2e7724['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x35d271,this['_continueCurrentRevision']=!0x1);}}else _0x5d8fed&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5d8fed['toVersion'],this['editor']['model']['document']['history']['version']),_0x5d8fed['fromVersion']===_0x5d8fed['toVersion']?(0x0!==_0x5d8fed['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5d8fed['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5d8fed['id'],this['_startingVersion']=_0x5d8fed['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',_0x2ad24f=>!_0x2ad24f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x480e6e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f63b7;for(const _0x4fda05 in _0x480e6e){const _0x62511c=_0x4fda05,_0x46b983=_0x480e6e[_0x62511c];if('revisionHistoryLicenseKeyValid'==_0x46b983||'revisionHistoryLicenseKeyInvalid'==_0x46b983||'revisionHistoryLicenseKeyExpired'==_0x46b983||'revisionHistoryLicenseKeyDomainLimit'==_0x46b983||'revisionHistoryLicenseKeyNotAllowed'==_0x46b983||'revisionHistoryLicenseKeyEvaluationLimit'==_0x46b983||'revisionHistoryLicenseKeyTrialLimit'==_0x46b983||'revisionHistoryLicenseKeyUsageLimit'==_0x46b983){delete _0x480e6e[_0x62511c],_0x2f63b7=_0x46b983,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2f63b7&&_0x480e6e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2f63b7&&_0x480e6e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2f63b7&&_0x480e6e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2f63b7&&_0x480e6e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2f63b7&&_0x480e6e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2f63b7&&_0x480e6e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2f63b7&&_0x480e6e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xe4db90=this['repository']['getRevision'](0x0),_0x42ad16=await this['getRevisionDocumentData'](_0xe4db90),_0x40a80e=await this['getRevisionRootsAttributes'](_0xe4db90);this['_replaceEditorDataWithRevisionData'](_0x42ad16,_0x40a80e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5aa4e9){this['_source']=_0x5aa4e9;}async['update'](){const _0x5a2269=await this['_source']['getLatestVersion']();if(_0x5a2269>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2263b9=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5a2269});_0x2263b9['authors']=_0x2263b9['authorsIds']['map'](_0x39612e=>this['editor']['plugins']['get']('Users')['getUser'](_0x39612e)),this['currentRevision']['_update'](_0x2263b9);}}async['saveRevision'](_0x3d9a21={},_0x125539=null){const _0x2eabd7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x125539>this['currentRevision']['toVersion']&&(_0x125539=null),null===_0x125539&&(_0x125539=await this['_source']['getLatestVersion']());const _0x5dc268=this['_getFromVersion'](_0x125539),_0x402f82=this['buildRevisionData']({'from':_0x5dc268,'to':_0x125539});if(this['currentRevision']['toVersion']<_0x125539){const _0x4ee372=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x125539,'to':_0x125539});_0x4ee372['authors']=[],_0x4ee372['authorsIds']=[],_0x4ee372['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4ee372,!0x0),delete _0x4ee372['authors'],_0x2eabd7['push'](_0x4ee372);}_0x3d9a21['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d9a21['name']=_0x3d9a21['name']||null,_0x3d9a21['id']=_0x3d9a21['id']||_0x22d855(),_0x3d9a21={..._0x3d9a21,..._0x402f82};const _0x50d8ab=this['addRevisionData'](_0x3d9a21);_0x2eabd7['push'](_0x3d9a21);const _0x23d46e=this['repository']['getIndex'](_0x50d8ab);if(0x0!==_0x23d46e){const _0x3389cb=this['repository']['getRevision'](_0x23d46e-0x1);if(_0x3389cb['fromVersion']!==_0x125539){const _0x3fb3ec=this['_revisionDataBuilder']['getData'](_0x125539,_0x3389cb['toVersion']),_0x5c37c3={'id':_0x3389cb['id'],'diffData':_0x3fb3ec['diffData'],'authorsIds':_0x3fb3ec['authorsIds'],'authors':_0x3fb3ec['authorsIds']['map'](_0x469429=>this['editor']['plugins']['get']('Users')['getUser'](_0x469429)),'fromVersion':_0x125539};_0x3389cb===this['currentRevision']&&(_0x5c37c3['createdAt']=new Date(_0x3d9a21['createdAt']['getTime']()+0xa)),_0x3389cb['_update'](_0x5c37c3,!0x0),delete _0x5c37c3['authors'],_0x2eabd7['push'](_0x5c37c3);}}if(this['adapter']){for(const _0x216c6c of _0x2eabd7)this['_bufferUpdate'](_0x216c6c['id'],_0x216c6c,!0x0);this['sendBufferedUpdates']();}return _0x50d8ab;}['addRevisionData'](_0x2cbf6f){const _0x43ff4e=this['repository']['createRevision'](_0x2cbf6f);return this['adapter']&&_0x43ff4e['on']('_update',(_0x37e472,_0x29fb0e,_0x56a01b)=>{_0x56a01b||(this['_bufferUpdate'](_0x29fb0e['id'],_0x29fb0e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x43ff4e,this['_findInsertionIndex'](_0x43ff4e)),_0x43ff4e;}async['getRevisionDocumentData'](_0x3b76a3){return await this['_utils']['loadRevisionData'](_0x3b76a3,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b76a3);}async['getRevisionRootsAttributes'](_0x41fbb7){return await this['_utils']['loadRevisionData'](_0x41fbb7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x41fbb7);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xc8ec2c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2e7757=0x0;_0x2e7757<_0xc8ec2c['length'];_0x2e7757++){const _0x3416fb=_0xc8ec2c[_0x2e7757];let _0x1940ab=!0x1;for(const _0x2ec3e6 of Object['keys'](_0x3416fb))void 0x0===_0x3416fb[_0x2ec3e6]?delete _0x3416fb[_0x2ec3e6]:'id'!==_0x2ec3e6&&(_0x1940ab=!0x0);_0x1940ab||(_0xc8ec2c[_0x2e7757]=null);}if(_0xc8ec2c=_0xc8ec2c['filter'](_0x4fcb13=>null!==_0x4fcb13),!_0xc8ec2c['length'])return;for(let _0x36a061=0x0;_0x36a061<_0xc8ec2c['length'];_0x36a061++){const _0x52588f=_0xc8ec2c[_0x36a061];void 0x0!==_0x52588f['fromVersion']&&void 0x0===_0x52588f['toVersion']&&(_0x52588f['toVersion']=this['repository']['getRevision'](_0x52588f['id'])['toVersion']),void 0x0!==_0x52588f['toVersion']&&void 0x0===_0x52588f['fromVersion']&&(_0x52588f['fromVersion']=this['repository']['getRevision'](_0x52588f['id'])['fromVersion']);}const _0x2bca7c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xc8ec2c,_0x2bca7c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x566d08=>{if(_0x566d08){for(const _0x3ac09e of _0x566d08)this['setRevisionData']({'id':_0x3ac09e['id'],'createdAt':_0x3ac09e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1ab63f=null,from:_0x1db71c=null,to:_0x1fda39=null}){_0x1db71c=null!==_0x1db71c?_0x1db71c:_0x1ab63f['fromVersion'],_0x1fda39=null!==_0x1fda39?_0x1fda39:_0x1ab63f['toVersion'];const _0x59c759=this['_revisionDataBuilder']['getData'](_0x1db71c,_0x1fda39),_0x3883d8={'diffData':_0x59c759['diffData'],'authorsIds':_0x59c759['authorsIds'],'fromVersion':_0x1db71c,'toVersion':_0x1fda39};if(!_0x1ab63f||_0x1fda39!==_0x1ab63f['toVersion']){const _0x55ec65=_0x1fda39-0x1,_0x4b43ae=this['_source']['history']['getOperation'](_0x55ec65);_0x3883d8['createdAt']=_0x4b43ae&&_0x4b43ae['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1db71c===this['_loadedStateData']['fromVersion']){for(const _0x335c53 of this['_loadedStateData']['authors'])_0x3883d8['authorsIds']['includes'](_0x335c53['id'])||_0x3883d8['authorsIds']['push'](_0x335c53['id']);}return _0x3883d8;}['_bufferUpdate'](_0x3e1cfd,_0xd24a8a,_0x52c708){if(this['_bufferedUpdates']['has'](_0x3e1cfd)){const _0x48f240=this['_bufferedUpdates']['get'](_0x3e1cfd);_0xd24a8a=_0x52c708?{..._0x48f240,..._0xd24a8a}:{..._0xd24a8a,..._0x48f240};}this['_bufferedUpdates']['set'](_0x3e1cfd,_0xd24a8a);}['setRevisionData'](_0x3c6a2c){const _0x21fead=this['repository']['getRevision'](_0x3c6a2c['id']);if(_0x3c6a2c['createdAt']&&(_0x3c6a2c['createdAt']=new Date(_0x3c6a2c['createdAt'])),_0x3c6a2c['authorsIds']){const _0x4c3569=this['editor']['plugins']['get']('Users');_0x3c6a2c['authors']=_0x3c6a2c['authorsIds']['map'](_0x36cc33=>_0x4c3569['getUser'](_0x36cc33));}_0x21fead['_update'](_0x3c6a2c,!0x0);}['_createInitialRevision'](_0x1cf4d8){const _0x16ce64=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x16ce64)this['_initialRevisionId']=_0x16ce64['id'];else{const _0x59609b=!this['editor']['model']['document']['roots']['find'](_0x1c3c94=>this['editor']['model']['hasContent'](_0x1c3c94)),_0x257d3e=this['editor']['plugins']['get']('Users')['me']['id'],_0x2b16d1=g(this['editor']['locale'],_0x59609b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1cf4d8,'to':_0x1cf4d8,'id':this['_initialRevisionId'],'name':_0x2b16d1,'creatorId':_0x257d3e});}}['_createCurrentRevision'](_0x5bf958){const _0x291876=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x291876),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5bf958,'to':_0x5bf958,'id':_0x291876,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x20598c,_0x474390){let _0x42bc97=this['editor']['config']['get']('initialData'),_0x284fe5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x42bc97){_0x42bc97={};for(const _0x210132 of this['editor']['model']['document']['getRootNames']())_0x42bc97[_0x210132]='';}if('string'==typeof _0x42bc97&&(_0x42bc97={'main':_0x42bc97}),void 0x0===_0x284fe5){_0x284fe5={};for(const _0x341108 of this['editor']['model']['document']['getRootNames']())_0x284fe5[_0x341108]={};}let _0x519bf4=!0x1;const _0x7ec46c=Object['keys'](_0x42bc97),_0x4405c7=Object['keys'](_0x20598c);for(const _0x3c0d4d of _0x7ec46c){if(_0x42bc97[_0x3c0d4d]!==_0x20598c[_0x3c0d4d]&&''!==_0x42bc97[_0x3c0d4d]['trim']()){_0x519bf4=!0x0;break;}if(!_0x4c7a8e(_0x284fe5[_0x3c0d4d],_0x474390[_0x3c0d4d])&&Object['keys'](_0x284fe5[_0x3c0d4d])['length']>0x0){_0x519bf4=!0x0;break;}}_0x519bf4||(_0x519bf4=_0x4405c7['some'](_0x54d5b8=>!this['editor']['model']['document']['getRoot'](_0x54d5b8))),_0x519bf4&&_0x25ae0a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x42bc97,'editorRootsAttributes':_0x284fe5,'revisionData':_0x20598c,'revisionRootsAttributes':_0x474390}),this['editor']['config']['set']('initialData',_0x20598c),this['editor']['config']['set']('rootsAttributes',_0x474390);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x10dabe=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x10dabe['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1aac8a){const _0xcdd869=this['repository']['getRevisions']();_0xcdd869['reverse']();let _0x5e0057=0x0;for(;_0x5e0057<_0xcdd869['length'];){const _0x4374d5=_0xcdd869[_0x5e0057];if(_0x4374d5===this['currentRevision']){_0x5e0057++;continue;}if(_0x4374d5['id']===this['_initialRevisionId'])break;const _0x37ec55=_0x1aac8a['toVersion']-_0x4374d5['toVersion']||_0x1aac8a['fromVersion']-_0x4374d5['fromVersion'];if(_0x37ec55>0x0)break;if(_0x37ec55<0x0)_0x5e0057++;else{if(!_0x1aac8a['creator']&&_0x4374d5['creator'])break;if(_0x4374d5['creator']||!_0x1aac8a['creator']){if(_0x1aac8a['createdAt']>_0x4374d5['createdAt'])break;_0x5e0057++;}else _0x5e0057++;}}return _0x5e0057;}['_getFromVersion'](_0x55f196){const _0x49d0d0=this['repository']['getRevisions']();_0x49d0d0['reverse'](),_0x49d0d0['shift']();const _0x45005b=_0x49d0d0['find'](_0x75190c=>_0x75190c['toVersion']<=_0x55f196)['toVersion'];return _0x45005b<this['_startingVersion']?this['_startingVersion']:_0x45005b;}['_makeRevision']({name:_0x1a5ffd,from:_0x198784,to:_0xf7835,creatorId:_0x329895,id:_0x286e8e}){const _0x46e655=this['buildRevisionData']({'from':_0x198784,'to':_0xf7835});_0x46e655['name']=_0x1a5ffd,_0x46e655['creatorId']=_0x329895,_0x46e655['id']=_0x286e8e;const _0x2e90de=this['addRevisionData'](_0x46e655);return this['adapter']&&this['_bufferUpdate'](_0x46e655['id'],_0x46e655,!0x0),_0x2e90de;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x33d422){this['editor']=_0x33d422,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'](_0x2fc63c){this['source']=_0x2fc63c;const _0x184993=new Map(),_0x2b718c=new Map(),_0x2106e6=this['editor']['model']['document']['roots']['map'](_0x7b0100=>_0x7b0100['rootName']);for(const _0xadc2df of _0x2106e6){const _0x5c23b7=this['editor']['model']['document']['getRoot'](_0xadc2df),_0x4c0bdd=N(_0x5c23b7);_0x184993['set'](_0xadc2df,_0x4c0bdd),_0x2b718c['set'](_0xadc2df,Object['fromEntries'](_0x5c23b7['getAttributes']()));}const _0x375b79=Array['from'](this['editor']['model']['markers'])['map'](_0x2b6371=>[_0x2b6371['name'],_0x2b6371['getRange']()]),_0x81939f=this['source']['version'];this['_saveMetaData'](_0x81939f,_0x184993,_0x375b79,_0x2b718c),this['_startingRevisionId']=this['_revisionId'];const _0x476fd6=new Map(),_0x3c7618=new Map();for(const _0x58ca10 of _0x2106e6){const _0x470a0e=P(_0x58ca10);_0x476fd6['set'](_0x58ca10,_0x470a0e),_0x3c7618['set'](_0x58ca10,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x476fd6,[],_0x3c7618);}['getData'](_0x35d3a6,_0x12f1db){if(this['_lastFrom']===_0x35d3a6&&this['_lastTo']<=_0x12f1db)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x12f1db,!0x0);else{if(!this['_savedMetaData']['has'](_0x35d3a6)){const _0x4318c6=this['_getPreviousFrom'](_0x35d3a6);this['_calculateMetaData'](_0x4318c6,_0x35d3a6,!0x1);}this['_calculateMetaData'](_0x35d3a6,_0x12f1db,!0x0);}return this['_lastFrom']=_0x35d3a6,this['_lastTo']=_0x12f1db,this['_getState']();}['loadState'](_0x5e595e){const _0x52123b=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5e595e['fromVersion'],this['_lastTo']=_0x5e595e['toVersion'];for(const _0x448d in _0x5e595e['diffData']){const _0x5d02e0=_0x5e595e['diffData'][_0x448d]['attachChange'],_0x2a722d=_0xa7d56a(_0x5e595e['diffData'][_0x448d]['attributesBefore'])||{},_0x131df8=_0x52123b['_makeModelFromViewString'](_0x5e595e['diffData'][_0x448d]['deletions']);_0x131df8['rootName']=_0x448d,_0x131df8['_isAttached']=!_0x5d02e0||!_0x5d02e0['isAttached'],_0x131df8['isAttached']=()=>_0x131df8['_isAttached'],this['_baseRoots']['set'](_0x448d,_0x131df8),this['_baseRootsAttributes']['set'](_0x448d,_0x2a722d),_0x5d02e0&&this['_touchedRoots']['set'](_0x448d,_0x5d02e0);const _0x5a48c0=this['_makeIdsRoot'](_0x131df8);this['_baseIdsRoots']['set'](_0x448d,_0x5a48c0);for(const [_0x41f979,_0x2e9ebe]of _0x131df8['markers']){if(!_0x41f979['startsWith']('revision:'))continue;const _0x551d10=_0x41f979['split'](':')[0x2];for(const _0x38c18d of _0x2e9ebe['getWalker']({'singleCharacters':!0x0})){const _0x319104=this['_getVidAttributeName'](_0x38c18d),_0x2bb368='elementEnd'==_0x38c18d['type']?_0x38c18d['previousPosition']['path']['slice'](0x0,-0x1):_0x38c18d['previousPosition']['path'],_0x2edc5e=_0x5a48c0['getNodeByPath'](_0x2bb368)['getAttribute'](_0x319104);this['_touched']['set'](_0x2edc5e,{'userId':_0x551d10});}}}this['_startingRevisionId']=this['_revisionId'];const _0x41b34a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1570e7=>!this['_touched']['has'](_0x1570e7));let _0x311c49=0x0;const _0x55159f=new Map();for(const _0x504f98 in _0x5e595e['diffData']){const _0x5f9aaa=_0x5e595e['diffData'][_0x504f98]['attachChange'],_0x262d71=_0xa7d56a(_0x5e595e['diffData'][_0x504f98]['attributesAfter'])||{},_0x3b47e5=_0x52123b['_makeModelFromViewString'](_0x5e595e['diffData'][_0x504f98]['insertions']);_0x3b47e5['rootName']=_0x504f98,_0x3b47e5['_isAttached']=!_0x5f9aaa||_0x5f9aaa['isAttached'],_0x3b47e5['isAttached']=()=>_0x3b47e5['_isAttached'],this['_diffRoots']['set'](_0x504f98,_0x3b47e5),this['_diffRootsAttributes']['set'](_0x504f98,_0x262d71);const _0xfba9c2=this['_makeIdsRoot'](_0x3b47e5,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x504f98,_0xfba9c2),_0x55159f['set'](_0x504f98,_0x3b47e5['isAttached']()?_0x262d71:{});for(const [_0x31de34,_0x578035]of _0x3b47e5['markers']){if(!_0x31de34['startsWith']('revision:'))continue;const _0x524cc4=_0x31de34['split'](':')[0x2];for(const _0x2d9b21 of _0x578035['getWalker']({'singleCharacters':!0x0})){const _0x17f666=this['_getVidAttributeName'](_0x2d9b21),_0x5d0574=this['_revisionId']++,_0x5b9b95='elementEnd'==_0x2d9b21['type']?_0x2d9b21['previousPosition']['path']['slice'](0x0,-0x1):_0x2d9b21['previousPosition']['path'];_0xfba9c2['getNodeByPath'](_0x5b9b95)['_setAttribute'](_0x17f666,_0x5d0574),this['_touched']['set'](_0x5d0574,{'userId':_0x524cc4});}}for(const _0x4dedd4 of this['editor']['model']['createRangeIn'](_0x3b47e5)['getWalker']({'singleCharacters':!0x0})){const _0x633ffa=this['_getVidAttributeName'](_0x4dedd4),_0x585551='elementEnd'==_0x4dedd4['type']?_0x4dedd4['previousPosition']['path']['slice'](0x0,-0x1):_0x4dedd4['previousPosition']['path'],_0x31d54a=_0xfba9c2['getNodeByPath'](_0x585551);_0x31d54a['getAttribute'](_0x633ffa)>0x0||_0x31d54a['_setAttribute'](_0x633ffa,_0x41b34a[_0x311c49++]);}for(const [_0x298672,_0x285d9c]of _0x3b47e5['markers'])_0x298672['startsWith']('revision:')||this['_markers']['set'](_0x298672,_0x285d9c);}const _0x32dfa4=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x32dfa4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x32dfa4,0x1));const _0x50ade1=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x50ade1),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x50ade1,0x1));const _0x4bfd28=Array['from'](this['_diffRoots'])['map'](([_0x10bc3f,_0x374a70])=>[_0x10bc3f,N(_0x374a70)]);this['_saveMetaData'](this['_lastTo'],_0x4bfd28,this['_markers'],_0x55159f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x398536,_0xd45654,_0xe37dd2,_0x253fc5){const _0xdb68ed=new Map(_0xd45654),_0x33ce31=new Map(_0xa7d56a(_0x253fc5)),_0x29dd26=new Map();for(const [_0x3f8caf,_0x5d581f]of _0xe37dd2)_0x29dd26['set'](_0x3f8caf,{'start':_0x5d581f['start']['clone'](),'end':_0x5d581f['end']['clone'](),'rootName':_0x5d581f['root']['rootName']});this['_savedMetaData']['set'](_0x398536,{'roots':_0xdb68ed,'markers':_0x29dd26,'rootsAttributes':_0x33ce31});}['_removeMetaData'](_0x11ad5e){this['_savedMetaData']['delete'](_0x11ad5e);}['_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'](_0x5d9036,_0x27a6a7=null){let _0x36c6b1=null;_0x5d9036['is']('documentFragment')||(_0x36c6b1=new ut(_0x5d9036['name'],{'vid_start':null===_0x27a6a7?this['_revisionId']++:_0x27a6a7++}));const _0x25105d=[];for(const _0x2114ed of _0x5d9036['getChildren']())if(_0x2114ed['is']('element')){_0x25105d['push'](this['_makeIdsRoot'](_0x2114ed,_0x27a6a7));const _0x2f7835=_0x25105d[_0x25105d['length']-0x1];null!==_0x27a6a7&&(_0x27a6a7=_0x2f7835['is']('element','$text')?_0x2f7835['getAttribute']('vid')+0x1:_0x2f7835['getAttribute']('vid_end')+0x1);}else{for(let _0x4bd601=0x0;_0x4bd601<_0x2114ed['offsetSize'];_0x4bd601++)_0x25105d['push'](new ut('$text',{'vid':null===_0x27a6a7?this['_revisionId']++:_0x27a6a7++}));}if(_0x5d9036['is']('documentFragment')){const _0x107faa=P(_0x5d9036['rootName']);return _0x107faa['_insertChild'](0x0,_0x25105d),_0x107faa;}return _0x36c6b1['_setAttribute']('vid_end',null===_0x27a6a7?this['_revisionId']++:_0x27a6a7++),_0x36c6b1['_insertChild'](0x0,_0x25105d),_0x36c6b1;}['_calculateMetaData'](_0x4e7aba,_0x4081f1,_0x22d321){this['_reset']();const {roots:_0x9bb3ec,markers:_0x138316,rootsAttributes:_0x4f4f7a}=this['_savedMetaData']['get'](_0x4e7aba);this['_baseRoots']=new Map(_0x9bb3ec),this['_baseRootsAttributes']=new Map(_0xa7d56a(_0x4f4f7a));for(const [_0x4eade3,_0x253041]of this['_baseRoots'])if('$graveyard'!==_0x4eade3&&(this['_diffRoots']['set'](_0x4eade3,N(_0x253041)),this['_diffRootsAttributes']=new Map(_0xa7d56a(_0x4f4f7a)),_0x22d321)){const _0x353745=this['_revisionId'];this['_idsRoots']['set'](_0x4eade3,this['_makeIdsRoot'](_0x253041)),this['_baseIdsRoots']['set'](_0x4eade3,this['_makeIdsRoot'](_0x253041,_0x353745));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x22d321&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x12321c,_0x3ca7e0]of _0x138316){const _0x2ee620=this['_baseRoots']['get'](_0x3ca7e0['rootName']),_0x221ac6=this['_diffRoots']['get'](_0x3ca7e0['rootName']),_0x31df17=new lt(this['_fixPosition'](_0x3ca7e0['start'],_0x2ee620),this['_fixPosition'](_0x3ca7e0['end'],_0x2ee620)),_0x4c0370=this['_fixRange'](_0x31df17,_0x221ac6);_0x2ee620['markers']['set'](_0x12321c,_0x31df17),this['_markers']['set'](_0x12321c,_0x4c0370);}this['_applyOperations'](_0x4e7aba,_0x4081f1,_0x22d321);}['_applyOperations'](_0x539ec2,_0x5b040c,_0x522ef8){for(const _0x15897e of this['source']['getOperations'](_0x539ec2,_0x5b040c))this['_handleOperation'](_0x15897e,_0x522ef8);for(const _0x412988 of this['_diffRoots']['values']())_0x412988['markers']['clear']();for(const [_0x3e4e50,_0x25c21e]of this['_markers']){this['_diffRoots']['get'](_0x25c21e['root']['rootName'])['markers']['set'](_0x3e4e50,_0x25c21e['clone']());}const _0x111913=new Map(),_0x172a04=new Map();for(const [_0x1fac13,_0x1658d8]of this['_diffRoots'])_0x111913['set'](_0x1fac13,N(_0x1658d8)),_0x172a04['set'](_0x1fac13,this['_diffRootsAttributes']['get'](_0x1fac13));this['_saveMetaData'](_0x5b040c,_0x111913,this['_markers'],_0x172a04);}['_getPreviousFrom'](_0x36a04a){const _0x39e205=Array['from'](this['_savedMetaData']['keys']());_0x39e205['sort']((_0x1fc196,_0x502bbd)=>_0x1fc196-_0x502bbd),_0x39e205['reverse']();for(const _0xc4b76e of _0x39e205)if(_0xc4b76e<_0x36a04a)return _0xc4b76e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x552f22,_0x2cecbc){const _0x56b0c6=Array['from'](_0x2cecbc['markers'])['map'](([_0x236ad6,_0x36970e])=>[_0x236ad6,this['_fixRange'](_0x36970e,_0x552f22)]);_0x552f22['markers']=new Map(_0x56b0c6);}['_transformMarkers'](_0x38a5e0){for(const _0x242f29 of this['_markers']['values']()){const _0x382d7c=_0x242f29['getTransformedByOperation'](_0x38a5e0),_0x584d75=lt['_createFromRanges'](_0x382d7c);_0x242f29['start']=_0x584d75['start'],_0x242f29['end']=_0x584d75['end'];}}['_handleOperation'](_0x2cee4f,_0x28e25c){if('addRoot'!=_0x2cee4f['type']&&'detachRoot'!=_0x2cee4f['type']){if('insert'==_0x2cee4f['type']){const _0x2bda12=_0x2cee4f['position']['root']['rootName'];this['_diffRoots']['has'](_0x2bda12)||(this['_diffRoots']['set'](_0x2bda12,P(_0x2bda12,!0x0)),this['_diffRootsAttributes']['set'](_0x2bda12,{}),_0x28e25c&&this['_idsRoots']['set'](_0x2bda12,P(_0x2bda12,!0x0)));}else{if('addRootAttribute'==_0x2cee4f['type']||'removeRootAttribute'==_0x2cee4f['type']||'changeRootAttribute'==_0x2cee4f['type'])return void this['_handleRootAttributeOperation'](_0x2cee4f);'marker'==_0x2cee4f['type']&&this['_handleMarkerOperation'](_0x2cee4f);}if('marker'!==_0x2cee4f['type']){const _0x3372f1=this['_cloneOperation'](_0x2cee4f,this['_diffRoots']);_0x3372f1['_execute'](),this['_transformMarkers'](_0x3372f1);}if(_0x28e25c)switch(_0x2cee4f['type']){case'insert':this['_handleInsertOperation'](_0x2cee4f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2cee4f);break;case'merge':this['_handleMergeOperation'](_0x2cee4f);break;case'split':this['_handleSplitOperation'](_0x2cee4f);}}else this['_handleRootOperation'](_0x2cee4f,_0x28e25c);}['_cloneOperation'](_0x1fda29,_0x2bf65b){const _0x1d7972=_0x1fda29['clone']();return _0x1d7972['_authorId']=_0x1fda29['_authorId'],this['_fixOperation'](_0x1d7972,_0x2bf65b),_0x1d7972;}['_getBaseVids'](_0x50ea82){return _0x50ea82['map'](_0x16907d=>{const _0x36fc94=this['_getVidAttributeName'](_0x16907d);return Number(_0x16907d['item']['getAttribute'](_0x36fc94));});}['_generateTape'](_0x19fc88,_0x5f319d){if(_0x19fc88['is']('element','$text'))_0x5f319d['push']({'item':_0x19fc88,'type':'text'});else{_0x19fc88['is']('element')&&_0x5f319d['push']({'item':_0x19fc88,'type':'elementStart'});for(const _0x3d7de1 of _0x19fc88['getChildren']())this['_generateTape'](_0x3d7de1,_0x5f319d);_0x19fc88['is']('element')&&_0x5f319d['push']({'item':_0x19fc88,'type':'elementEnd'});}return _0x5f319d;}['_getState'](){const _0x352ed6=new Map(this['_touched']),_0x17da25=new Map(_0x352ed6),_0xfbe8d4=new Map(),_0x3da8c3={'insertions':{},'deletions':{}},_0x2aa5b6={'insertions':{},'deletions':{}},_0x4f3d43=new Map(),_0x1f90da=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1f90da['delete']('$graveyard');for(const _0x434d2b of _0x1f90da){const _0x39b870=this['_diffRoots']['get'](_0x434d2b)||P(_0x434d2b,!0x1),_0x30d9bc=this['_baseRoots']['get'](_0x434d2b)||P(_0x434d2b,!0x1);_0x39b870['isAttached']()||_0x30d9bc['isAttached']()?(_0x3da8c3['insertions'][_0x434d2b]=N(_0x39b870),_0x3da8c3['deletions'][_0x434d2b]=N(_0x30d9bc),this['_copyMarkers'](_0x3da8c3['deletions'][_0x434d2b],_0x30d9bc),this['_copyMarkers'](_0x3da8c3['insertions'][_0x434d2b],_0x39b870),_0x2aa5b6['insertions'][_0x434d2b]=this['_generateTape'](this['_idsRoots']['get'](_0x434d2b),[]),_0x2aa5b6['deletions'][_0x434d2b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x434d2b)||P(_0x434d2b,!0x1),[])):_0x1f90da['delete'](_0x434d2b);}for(const _0x3bfa2e of _0x1f90da){const _0xd3c543=_0x2aa5b6['insertions'][_0x3bfa2e];for(const _0x597c85 of _0xd3c543){const _0x513c21=this['_getVidAttributeName'](_0x597c85),_0x2ef5a4=_0x597c85['item']['getAttribute'](_0x513c21);_0x17da25['delete'](_0x2ef5a4),_0x2ef5a4>=this['_startingRevisionId']&&_0xfbe8d4['set'](_0x2ef5a4,_0x352ed6['get'](_0x2ef5a4));}}for(const _0x17a096 of _0x1f90da){const _0xd0220d=_0x2aa5b6['insertions'][_0x17a096],_0x51a2d3=this['_getBaseVids'](_0x2aa5b6['deletions'][_0x17a096]);let _0x5abb6d=0x0;for(const _0x1187a2 of _0xd0220d){const _0x131b4d=this['_getVidAttributeName'](_0x1187a2),_0x4abf40=_0x1187a2['item']['getAttribute'](_0x131b4d);if(!_0xfbe8d4['has'](_0x4abf40)&&!_0x4f3d43['has'](_0x4abf40)){if(_0x17da25['has'](_0x4abf40))_0x5abb6d++;else{if(_0x4abf40!=_0x51a2d3[_0x5abb6d]){const _0x3f792c=_0x352ed6['get'](_0x4abf40)||_0x352ed6['get'](_0x51a2d3[_0x5abb6d]);for(;_0x4abf40!=_0x51a2d3[_0x5abb6d];)_0x17da25['has'](_0x51a2d3[_0x5abb6d])||(_0x4f3d43['set'](_0x51a2d3[_0x5abb6d],_0x3f792c),_0x352ed6['set'](_0x51a2d3[_0x5abb6d],_0x3f792c)),_0x5abb6d++;}_0x5abb6d++;}}}}for(const _0x4ab84a of _0x1f90da){const _0x15ac7c=_0x2aa5b6['insertions'][_0x4ab84a];for(const _0x2f8417 of _0x15ac7c){const _0x3130ce=this['_getVidAttributeName'](_0x2f8417),_0x37b88f=_0x2f8417['item']['getAttribute'](_0x3130ce);if(_0x4f3d43['has'](_0x37b88f)){const _0x17bb34=_0x4f3d43['get'](_0x37b88f);_0x17da25['has'](_0x37b88f)||_0x17da25['set'](_0x37b88f,{..._0x17bb34}),_0xfbe8d4['set'](_0x37b88f,{..._0x17bb34});}}}for(const _0x3ad025 of _0x17da25['keys']())_0x3ad025>=this['_startingRevisionId']&&_0x17da25['delete'](_0x3ad025);const _0x47ed7f=new Map();for(const _0x4c0df3 of _0x1f90da){let _0x3dc8f8=_0x2aa5b6['insertions'][_0x4c0df3];for(const _0x99089e of _0x3dc8f8)if(_0x99089e['item']['is']('element','tableCell')){const _0x1148ce=this['_getVidAttributeName'](_0x99089e),_0x5c22ed=_0x99089e['item']['getAttribute'](_0x1148ce);if(_0xfbe8d4['has'](_0x5c22ed)){const _0x27a5e5=_0x99089e['item']['parent']['parent']['getAttribute']('vid_start'),_0x2d710a=_0x47ed7f['get'](_0x27a5e5)||new Set();_0x2d710a['add'](_0xfbe8d4['get'](_0x5c22ed)['userId']),_0x47ed7f['set'](_0x27a5e5,_0x2d710a);}}_0x3dc8f8=_0x2aa5b6['deletions'][_0x4c0df3];for(const _0x409d40 of _0x3dc8f8)if(_0x409d40['item']['is']('element','tableCell')){const _0x3c6199=this['_getVidAttributeName'](_0x409d40),_0x5c44aa=_0x409d40['item']['getAttribute'](_0x3c6199);if(_0x17da25['has'](_0x5c44aa)){const _0x38d344=_0x409d40['item']['parent']['parent']['getAttribute']('vid_start'),_0x97dfc3=_0x47ed7f['get'](_0x38d344)||new Set();_0x97dfc3['add'](_0x17da25['get'](_0x5c44aa)['userId']),_0x47ed7f['set'](_0x38d344,_0x97dfc3);}}for(const _0x30333e of _0x47ed7f['keys']())(_0xfbe8d4['has'](_0x30333e)||_0x17da25['has'](_0x30333e))&&_0x47ed7f['delete'](_0x30333e);}for(const _0x4ab62c of _0x1f90da){const _0x5e8f39=_0x2aa5b6['insertions'][_0x4ab62c];let _0x1b1331=null,_0x5e78e1=null;for(const _0x4a70bb of _0x5e8f39){const _0x455356=this['_getVidAttributeName'](_0x4a70bb),_0xebc0f5=_0x4a70bb['item']['getAttribute'](_0x455356),_0x57eba=_0x47ed7f['get'](_0xebc0f5);_0x57eba&&'elementStart'==_0x4a70bb['type']&&(_0x1b1331=Array['from'](_0x57eba)[0x0],_0x5e78e1=_0x4a70bb['item']['getAttribute']('vid_end')),_0x1b1331&&(_0x17da25['set'](_0xebc0f5,{'userId':_0x1b1331}),_0xfbe8d4['set'](_0xebc0f5,{'userId':_0x1b1331})),_0xebc0f5==_0x5e78e1&&(_0x1b1331=null,_0x5e78e1=null);}}const _0x31d533={},_0x22816d=new Set();for(const _0x41c177 of _0x1f90da){const _0x40f7d0=_0x3da8c3['deletions'][_0x41c177],_0x3a0933=_0x3da8c3['insertions'][_0x41c177];for(const {userId:_0x294034}of this['_touchedMarkers']['values']())null!==_0x294034&&_0x22816d['add'](_0x294034);for(const {userId:_0x1b6b5e}of this['_touchedRoots']['values']())null!==_0x1b6b5e&&_0x22816d['add'](_0x1b6b5e);this['_markChanges'](_0x3a0933,_0x2aa5b6['insertions'][_0x41c177],_0xfbe8d4,'insertion',_0x22816d),this['_markChanges'](_0x40f7d0,_0x2aa5b6['deletions'][_0x41c177],_0x17da25,'deletion',_0x22816d),_0x31d533[_0x41c177]={'insertions':this['_prepareViewToSave'](_0x3a0933),'deletions':this['_prepareViewToSave'](_0x40f7d0),'attachChange':this['_touchedRoots']['get'](_0x41c177)||null,'attributesBefore':_0xa7d56a(this['_baseRootsAttributes']['get'](_0x41c177))||{},'attributesAfter':_0xa7d56a(this['_diffRootsAttributes']['get'](_0x41c177))};}return{'diffData':_0x31d533,'authorsIds':Array['from'](_0x22816d)};}['_processRootBeforeSave'](_0x21e5f7){for(const [,_0x1be061]of _0x21e5f7['markers']){const _0x3a14c2=_0x1be061['start']['getAncestors']()['filter'](_0x497608=>'tableCell'==_0x497608['name']);for(const _0x2bdd07 of _0x3a14c2)0x1==_0x2bdd07['childCount']&&_0x2bdd07['getChild'](0x0)['is']('element','paragraph')&&_0x2bdd07['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x42df8c){this['_processRootBeforeSave'](_0x42df8c);const _0x219e5a=this['editor']['data']['toView'](_0x42df8c,{}),_0x58e596=Array['from'](_0x219e5a['getChildren']())['map'](_0x157802=>this['_getViewJson'](_0x157802));return JSON['stringify'](_0x58e596);}['_getViewJson'](_0x1ab39f){if(_0x1ab39f['is']('$text'))return _0x1ab39f['data'];{const _0x2e5d29=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x15663b=_0x1ab39f,_0x75fa36=this['editor']['data']['htmlProcessor']['domConverter'],_0x40ec4e={'type':_0x2e5d29['_getTypeCharForViewElement'](_0x15663b),'name':_0x15663b['name'],'attributes':Array['from'](_0x15663b['getAttributes']()),'children':Array['from'](_0x15663b['getChildren']())['map'](_0x4ea9f1=>this['_getViewJson'](_0x4ea9f1))};if(_0x1ab39f['is']('uiElement')&&'$comment'!=_0x1ab39f['name']){const _0x1edce8=_0x1ab39f['render'](_0x75fa36['domDocument'],_0x75fa36);_0x40ec4e['children']['push'](_0x1edce8['outerHTML']);}else{if(_0x1ab39f['is']('rawElement')){const _0x159098=_0x75fa36['domDocument']['createElement'](_0x15663b['name']);_0x1ab39f['render'](_0x159098,_0x75fa36),_0x40ec4e['children']['push'](_0x159098['innerHTML']);}}const _0x4724a5=Array['from'](_0x15663b['getCustomProperties']());_0x4724a5['length']>0x0&&(_0x40ec4e['customProperties']=_0x4724a5);const _0x459681=_0x15663b['getFillerOffset']();return null!==_0x459681&&(_0x40ec4e['fillerOffset']=_0x459681),_0x40ec4e;}}['_markChanges'](_0xfffcc,_0x47d578,_0x4c85a8,_0x29737c,_0x459c8b){let _0x223904=null,_0x459e98=null,_0x52cc5c=0x0;const _0x5283b8=this['editor']['model'];for(let _0x298033=0x0;_0x298033<_0x47d578['length'];_0x298033++){const _0x3a2e8c=this['_getVidAttributeName'](_0x47d578[_0x298033]),_0x487e57=_0x47d578[_0x298033]['item']['getAttribute'](_0x3a2e8c),_0x34bfa9=_0x4c85a8['get'](_0x487e57),_0x48e196=_0x298033==_0x47d578['length']-0x1;(!_0x223904&&_0x34bfa9&&(_0x223904=_0x34bfa9,_0x459e98=_0x47d578[_0x298033]),_0x223904&&(!_0x34bfa9||_0x34bfa9['userId']!=_0x223904['userId']))&&(_0x515873(_0x34bfa9,F(_0x459e98,_0xfffcc,_0x5283b8),F(_0x47d578[_0x298033],_0xfffcc,_0x5283b8)),_0x223904=_0x34bfa9||null,_0x459e98=_0x34bfa9?_0x47d578[_0x298033]:null),_0x223904&&_0x48e196&&_0x515873(_0x34bfa9,F(_0x459e98,_0xfffcc,_0x5283b8),B(_0x47d578[_0x298033],_0xfffcc,_0x5283b8));}function _0x515873(_0x55b5f0,_0x1821f9,_0x23b9ea){const _0x46d659=_0x223904['userId'],_0x22a513='revision:'+_0x29737c+':'+_0x46d659+':'+_0x52cc5c++,_0x1a5d84=_0x5283b8['createRange'](_0x1821f9,_0x23b9ea);_0xfffcc['markers']['set'](_0x22a513,_0x1a5d84),null!==_0x46d659&&_0x459c8b['add'](_0x46d659);}}['_getVidAttributeName'](_0x3ff9ae){switch(_0x3ff9ae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4c5cb4,_0x42c215){_0x4c5cb4['baseVersion']=null;for(const _0x3f2ee in _0x4c5cb4){const _0x113236=_0x4c5cb4[_0x3f2ee];if(_0x113236 instanceof ft){const _0x5ba0fe=_0x42c215['get'](_0x113236['root']['rootName']);_0x4c5cb4[_0x3f2ee]=this['_fixPosition'](_0x113236,_0x5ba0fe);}if(_0x113236 instanceof lt){const _0x502a0e=_0x42c215['get'](_0x113236['root']['rootName']);_0x4c5cb4[_0x3f2ee]=this['_fixRange'](_0x113236,_0x502a0e);}'root'===_0x3f2ee&&(_0x4c5cb4['root']=_0x42c215['get'](_0x4c5cb4['root']['rootName']));}}['_fixRange'](_0x1f4d65,_0x7047a0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1f4d65['start'],_0x7047a0),this['_fixPosition'](_0x1f4d65['end'],_0x7047a0));}['_fixPosition'](_0x2ba8be,_0x4a9d78){return this['editor']['model']['createPositionFromPath'](_0x4a9d78,_0x2ba8be['path'],_0x2ba8be['stickiness']);}['_handleInsertOperation'](_0x5c0a56){const _0x11e6b3=this['_idsRoots']['get'](_0x5c0a56['position']['root']['rootName']),_0x17e6a8=this['_fixPosition'](_0x5c0a56['position'],_0x11e6b3),_0x4fe02b=null===_0x5c0a56['_authorId']?null:_0x5c0a56['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa4ec66=_0x17e6a8['parent'],_0x5ca84f=this['_revisionId'],_0x36a5cb=[];for(const _0x26e9a2 of _0x5c0a56['nodes'])if(_0x26e9a2['is']('element'))_0x36a5cb['push'](this['_makeIdsRoot'](_0x26e9a2));else{for(let _0x79ff53=0x0;_0x79ff53<_0x26e9a2['offsetSize'];_0x79ff53++)_0x36a5cb['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x5f05f2=this['_revisionId'];for(let _0x261ff0=_0x5ca84f;_0x261ff0<_0x5f05f2;_0x261ff0++)this['_touched']['set'](_0x261ff0,{'userId':_0x4fe02b});_0xa4ec66['_insertChild'](_0x17e6a8['offset'],_0x36a5cb);}['_handleMoveOperation'](_0x504c65){(_0x504c65=this['_cloneOperation'](_0x504c65,this['_idsRoots']))['_execute']();const _0x4fa8c6=null===_0x504c65['_authorId']?null:_0x504c65['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x225f33=_0x504c65['getMovedRangeStart'](),_0x4b0f1f=_0x225f33['parent'],_0x4ab0d5=_0x225f33['offset'];!function _0x49b597(_0x5b658e,_0x106550,_0x531530,_0x4dab39){for(let _0x1b6b58=_0x531530;_0x1b6b58<_0x4dab39;_0x1b6b58++){const _0x431c1e=_0x106550['getChild'](_0x1b6b58);_0x431c1e['is']('element','$text')?_0x5b658e['set'](_0x431c1e['getAttribute']('vid'),{'userId':_0x4fa8c6}):(_0x5b658e['set'](_0x431c1e['getAttribute']('vid_start'),{'userId':_0x4fa8c6}),_0x49b597(_0x5b658e,_0x431c1e,0x0,_0x431c1e['childCount']),_0x5b658e['set'](_0x431c1e['getAttribute']('vid_end'),{'userId':_0x4fa8c6}));}}(this['_touched'],_0x4b0f1f,_0x4ab0d5,_0x4ab0d5+_0x504c65['howMany']);}['_handleMergeOperation'](_0x53432c){const _0x2e4e0c=null===(_0x53432c=this['_cloneOperation'](_0x53432c,this['_idsRoots']))['_authorId']?null:_0x53432c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e9b32=_0x53432c['targetPosition']['parent'],_0x4d77fd=_0x53432c['sourcePosition']['parent'],_0x694f72=_0x3e9b32['getAttribute']('vid_end'),_0x2adce8=_0x4d77fd['getAttribute']('vid_start');_0x3e9b32['_setAttribute']('vid_end',_0x4d77fd['getAttribute']('vid_end')),_0x4d77fd['_setAttribute']('vid_end',_0x694f72),this['_touched']['set'](_0x2adce8,{'userId':_0x2e4e0c}),this['_touched']['set'](_0x694f72,{'userId':_0x2e4e0c}),_0x53432c['_execute']();}['_handleSplitOperation'](_0x53b0bb){const _0x3f9554=null===(_0x53b0bb=this['_cloneOperation'](_0x53b0bb,this['_idsRoots']))['_authorId']?null:_0x53b0bb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d6fab=_0x53b0bb['graveyardPosition'],_0x16d92a=_0x53b0bb['splitPosition']['parent'];_0x53b0bb['_execute']();const _0x152619=_0x16d92a['getAttribute']('vid_end'),_0x5ceb20=_0x53b0bb['insertionPosition']['nodeAfter'];if(_0x3d6fab){const _0x2abc77=_0x5ceb20['getAttribute']('vid_end'),_0x4f3675=_0x16d92a['getAttribute']('vid_end');_0x16d92a['_setAttribute']('vid_end',_0x2abc77),_0x5ceb20['_setAttribute']('vid_end',_0x4f3675),this['_touched']['set'](_0x16d92a['getAttribute']('vid_end'),{'userId':_0x3f9554}),this['_touched']['set'](_0x5ceb20['getAttribute']('vid_start'),{'userId':_0x3f9554});}else{const _0x3baabc=this['_revisionId']++,_0x11d433=this['_revisionId']++;_0x16d92a['_setAttribute']('vid_end',_0x3baabc),_0x5ceb20['_setAttribute']('vid_start',_0x11d433),_0x5ceb20['_setAttribute']('vid_end',_0x152619),this['_touched']['set'](_0x3baabc,{'userId':_0x3f9554}),this['_touched']['set'](_0x11d433,{'userId':_0x3f9554});}}['_handleMarkerOperation'](_0x580beb){if(!_0x580beb['affectsData'])return;const _0x212994=(_0x580beb=this['_cloneOperation'](_0x580beb,this['_diffRoots']))['oldRange']?_0x580beb['oldRange']['root']:null,_0x46b4cd=_0x580beb['newRange']?_0x580beb['newRange']['root']:null;_0x212994&&this['_markers']['delete'](_0x580beb['name']),_0x46b4cd&&this['_markers']['set'](_0x580beb['name'],_0x580beb['newRange']['clone']());const _0x46ce24=null===_0x580beb['_authorId']?null:_0x580beb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34380d=_0x580beb['name'];if(!this['_touchedMarkers']['has'](_0x34380d))return void this['_touchedMarkers']['set'](_0x34380d,{'range':_0x580beb['oldRange'],'userId':_0x46ce24});const _0x1c7b44=this['_touchedMarkers']['get'](_0x34380d),_0x362f9d=_0x1c7b44['range'],_0x46f702=_0x580beb['newRange'];null==_0x362f9d&&null==_0x46f702||_0x362f9d&&_0x46f702&&_0x362f9d['isEqual'](_0x46f702)?this['_touchedMarkers']['delete'](_0x580beb['name']):_0x1c7b44['userId']=_0x46ce24;}['_handleRootOperation'](_0x50d8af,_0x215528){this['_diffRoots']['has'](_0x50d8af['rootName'])?this['_diffRoots']['get'](_0x50d8af['rootName'])['_isAttached']=_0x50d8af['isAdd']:(this['_diffRoots']['set'](_0x50d8af['rootName'],P(_0x50d8af['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x50d8af['rootName'],{}),_0x215528&&this['_idsRoots']['set'](_0x50d8af['rootName'],P(_0x50d8af['rootName'],!0x0)));const _0x3f2cbd=null===_0x50d8af['_authorId']?null:_0x50d8af['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x206409=this['_touchedRoots']['get'](_0x50d8af['rootName']);_0x206409&&_0x206409['userId']===_0x3f2cbd?this['_touchedRoots']['delete'](_0x50d8af['rootName']):this['_touchedRoots']['set'](_0x50d8af['rootName'],{'userId':_0x3f2cbd,'isAttached':_0x50d8af['isAdd']});}['_handleRootAttributeOperation'](_0x197242){const _0x32c6bc=this['_diffRootsAttributes']['get'](_0x197242['root']['rootName']);null===_0x197242['newValue']?delete _0x32c6bc[_0x197242['key']]:_0x32c6bc[_0x197242['key']]=_0x197242['newValue'];}}function N(_0x51e530){const _0x4f60be=P(_0x51e530['rootName'],_0x51e530['isAttached']());for(const _0x45ef35 of _0x51e530['getChildren']()){const _0x3f70d9=_0x45ef35['_clone'](!0x0);_0x4f60be['_appendChild'](_0x3f70d9);}return _0x4f60be;}function P(_0x5c6c54,_0x477d83=!0x0){const _0x440a9d=new vt();return _0x440a9d['rootName']=_0x5c6c54,_0x440a9d['_isAttached']=_0x477d83,_0x440a9d['isAttached']=()=>_0x440a9d['_isAttached'],_0x440a9d;}function F(_0x10803c,_0x5d955,_0x2d2903){const _0x3cee25='elementEnd'==_0x10803c['type']?_0x2d2903['createPositionAt'](_0x10803c['item'],'end'):_0x2d2903['createPositionBefore'](_0x10803c['item']);return _0x2d2903['createPositionFromPath'](_0x5d955,_0x3cee25['path'],_0x3cee25['stickiness']);}function B(_0x2d3e3c,_0x49808b,_0x5bb2c4){const _0x3a410a='elementStart'==_0x2d3e3c['type']?_0x5bb2c4['createPositionAt'](_0x2d3e3c['item'],0x0):_0x5bb2c4['createPositionAfter'](_0x2d3e3c['item']);return _0x5bb2c4['createPositionFromPath'](_0x49808b,_0x3a410a['path'],_0x3a410a['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x322c8c,_0x45e3d2){super(_0x322c8c),this['focusTracker']=new _0x19b89a(),this['keystrokes']=new _0x25d77a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x45e3d2),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1f2c38(this);}['render'](){super['render'](),_0x49f257({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xb33f4e=_0x128268=>_0x128268['stopPropagation']();this['keystrokes']['set']('arrowright',_0xb33f4e),this['keystrokes']['set']('arrowleft',_0xb33f4e),this['keystrokes']['set']('arrowup',_0xb33f4e),this['keystrokes']['set']('arrowdown',_0xb33f4e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2a3339){this['revisionNameInputView']['fieldView']['element']['value']=_0x2a3339['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3dcb1b){const _0x438421=new _0x53ede4(this['locale'],_0x5abb26),_0x37e0a1=_0x438421['fieldView'];_0x37e0a1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x29bd6f=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3dcb1b&&(_0x29bd6f+='\x20('+g(this['locale'],'optional')+')'),(_0x438421['label']=_0x29bd6f,_0x37e0a1['on']('input',()=>{this['revisionNameInputValue']=_0x37e0a1['element']['value']['trim']();}),_0x438421);}}class f extends _0x32d4e7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3b2b73=this['editor'],_0x1fd101=_0x3b2b73['plugins']['get']('RevisionTracker');_0x3b2b73['ui']['componentFactory']['add']('revisionHistory',_0x2665eb=>{const _0x327485=_0x3c7a5d(_0x2665eb),_0xf00f6=_0x327485['panelView']['children'],_0x2452df=new _0x12ae53(_0x2665eb),_0x28a8da=new _0x460b48(_0x2665eb),_0x131572=new te(_0x2665eb),_0x4b37c0=new _0x460b48(_0x2665eb),_0x59519c=new te(_0x2665eb);return _0x327485['bind']('isEnabled')['to'](_0x1fd101,'isReady',_0x1fd101,'isEnabled',_0x3b2b73,'isReadOnly',(_0x51092f,_0x263780,_0x1bafc0)=>_0x51092f&&_0x263780&&!_0x1bafc0),_0x327485['buttonView']['set']({'icon':_0x16a281,'label':g(_0x2665eb,'Revision\x20history'),'tooltip':!0x0}),_0x131572['set']({'label':g(_0x2665eb,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x131572['bind']('isEnabled')['to'](_0x1fd101,'isReady',_0x1fd101,'isEnabled',_0x3b2b73,'isReadOnly',(_0x5a6090,_0x1d4db9,_0x56772f)=>_0x5a6090&&_0x1d4db9&&!_0x56772f),_0x131572['on']('execute',()=>this['_showDialog']()),_0x59519c['set']({'label':g(_0x2665eb,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x59519c['bind']('isEnabled')['to'](_0x1fd101,'isReady',_0x3b2b73,'isReadOnly',(_0x15c4e7,_0x5a2a3e)=>_0x15c4e7&&!_0x5a2a3e),_0x59519c['on']('execute',()=>{_0x3b2b73['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x327485['isOpen']=!0x1,_0x3b2b73['editing']['view']['focus']();}),_0x28a8da['children']['add'](_0x131572),_0x4b37c0['children']['add'](_0x59519c),_0x2452df['role']='menu',_0x2452df['items']['addMany']([_0x28a8da,_0x4b37c0]),_0xf00f6['add'](_0x2452df),_0x327485;}),_0x3b2b73['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x51bbfe=this['editor'],_0x23fc9f=_0x51bbfe['locale'],_0x5b43d6=new _0x1d067e(_0x23fc9f),_0x570833=new _0x5e338e(_0x23fc9f);_0x5b43d6['buttonView']['set']({'icon':_0x16a281,'label':g(_0x23fc9f,'Revision\x20history')});const _0x1a67f0=new _0x2d2284(_0x23fc9f,_0x5b43d6),_0x11a988=new _0x2b30fe(_0x23fc9f);_0x11a988['set']({'label':g(_0x23fc9f,'Save\x20current\x20revision')}),_0x11a988['delegate']('execute')['to'](_0x5b43d6),_0x11a988['on']('execute',()=>{this['_showDialog']();}),_0x1a67f0['children']['add'](_0x11a988),_0x570833['items']['add'](_0x1a67f0);const _0x29b0ac=new _0x2d2284(_0x23fc9f,_0x5b43d6),_0x1dcea7=new _0x2b30fe(_0x23fc9f);return _0x1dcea7['set']({'label':g(_0x23fc9f,'Open\x20revision\x20history')}),_0x1dcea7['delegate']('execute')['to'](_0x5b43d6),_0x1dcea7['on']('execute',()=>{_0x51bbfe['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x29b0ac['children']['add'](_0x1dcea7),_0x570833['items']['add'](_0x29b0ac),_0x5b43d6['panelView']['children']['add'](_0x570833),_0x5b43d6;}['_showDialog'](){const _0x1a73fd=this['editor'],_0x1812dd=_0x1a73fd['locale'],_0x22cde3=_0x1a73fd['plugins']['get']('Dialog'),_0x5a1fd9=_0x1a73fd['plugins']['get']('RevisionTracker');function _0x419734(_0x1f854f){_0x1a73fd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1f854f['revisionName']?_0x1f854f['revisionNameInputView']['errorText']=g(_0x1812dd,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1a73fd['plugins']['get'](u)['saveRevision']({'name':_0x1f854f['revisionName']}),_0x22cde3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x419734(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x22cde3['show']({'id':'revisionSave','title':g(_0x1812dd,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1a73fd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x22cde3['hide']()},{'label':g(_0x1a73fd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5cbc41){_0x5cbc41['bind']('isEnabled')['to'](_0x5a1fd9,'isReady',_0x5a1fd9,'isEnabled',_0x1a73fd,'isReadOnly',(_0x4cd337,_0x167ee3,_0x4fd0a7)=>_0x4cd337&&_0x167ee3&&!_0x4fd0a7);},'onExecute':()=>_0x419734(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x40dd24=this['editor'],_0x2b5656=_0x40dd24['locale'];this['_saveRevisionFormView']=new hs(_0x2b5656,_0x40dd24['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1f8c39,_0x3e42ea){super(_0x1f8c39),this['_model']=_0x3e42ea,this['changeId']=_0x3e42ea['id'];const _0x1a9328=this['bindTemplate'],_0x218cf8=g(_0x1f8c39,_0x3e42ea['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3e42ea['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3e42ea['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1a9328['to']('type',_0x138d7b=>'ck-revision-change__'+_0x138d7b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x218cf8}]},{'text':'\x20'+_0x3e42ea['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x590d6c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x15fa4e){super(),this['id']=_0x15fa4e['id']||_0x22d855(),this['author']=_0x15fa4e['author'],this['type']=_0x15fa4e['type'],this['data']=_0x15fa4e['data']||{},this['rootName']=_0x15fa4e['rootName'],this['set']('createdAt',_0x15fa4e['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(_0x506802,_0x4e51cd){this['newRevisionId']=_0x506802,this['oldRevisionId']=_0x4e51cd,this['changes']=new _0x5427d4();}['_setChanges'](_0x41ef37){for(const _0x3aa57d of _0x41ef37)this['changes']['add'](_0x3aa57d);}}class m extends _0x32d4e7{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x437ecf,_0xf0f501,I,V];}constructor(_0x242de2){super(_0x242de2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x260c4a,_0x522deb,_0x1f71d9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5d30bb=>{for(const _0x4bea0e of this['editor']['editing']['view']['document']['roots'])_0x1f71d9?_0x5d30bb['removeClass']('ck-editor__editable__overlay',_0x4bea0e):_0x5d30bb['addClass']('ck-editor__editable__overlay',_0x4bea0e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5b9633=>null!==_0x5b9633),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x503f08,_0x15dc2d,_0x300a8c)=>_0x503f08&&_0x300a8c?_0x15dc2d['changes']['getIndex'](_0x300a8c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x38251f,_0x3c8779)=>_0x38251f?_0x3c8779['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xf0f501);}['init'](){const _0x27d6d1=this['editor'],_0x381a6a=new wt(_0x27d6d1,{'direction':'backward'}),_0x5eb396=new wt(_0x27d6d1,{'direction':'forward'});(_0x27d6d1['commands']['add']('showPreviousChange',_0x381a6a),_0x27d6d1['commands']['add']('showNextChange',_0x5eb396),_0x27d6d1['commands']['add']('restoreRevision',new mt(_0x27d6d1)),this['on']('change:numberOfChanges',()=>{_0x381a6a['refresh'](),_0x5eb396['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x27d6d1['enableReadOnlyMode']('revision-viewer'),_0x27d6d1['plugins']['has']('WidgetToolbarRepository'))&&_0x27d6d1['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1c9d43){return await this['_utils']['loadRevisionData'](_0x1c9d43,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1c9d43);}async['getRevisionRootsAttributes'](_0x29ee74){return await this['_utils']['loadRevisionData'](_0x29ee74,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x29ee74);}async['compare'](_0xbd121c,_0x4fe4fe,_0x16df2b=!0x1){if(!this['isEnabled'])return;const _0xca4089=this['diff'],_0x1cff62=this['repository'],_0x57826e='string'==typeof _0xbd121c?_0x1cff62['getRevision'](_0xbd121c):_0xbd121c,_0x37b6f2='string'==typeof _0x4fe4fe?_0x1cff62['getRevision'](_0x4fe4fe):_0x4fe4fe,_0x1195a1=_0x57826e['id'],_0x33003a=_0x37b6f2?_0x37b6f2['id']:null;if(!_0x16df2b&&this['diff']&&this['diff']['newRevisionId']===_0x1195a1&&this['diff']['oldRevisionId']===_0x33003a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1195a1,_0x33003a);const _0x2e1235=this['_getRevisionsRange'](_0x57826e,_0x37b6f2,!0x0)['map'](_0x239521=>this['_utils']['loadRevisionData'](_0x239521,this['adapter']));return _0x2e1235['push'](new Promise(_0x250f58=>{setTimeout(_0x250f58,0x14);})),Promise['all'](_0x2e1235)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x360f59=this['_getDiff'](_0x1195a1,_0x33003a);for(const _0x82d520 of _0x360f59['changes'])this['_changeIdToChange']['set'](_0x82d520['id'],_0x82d520);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xdfd9b2=>{for(const _0x4a709b of this['editor']['model']['document']['getRootNames']())_0xdfd9b2['detachRoot'](_0x4a709b);for(const _0x4bf53f of Object['keys'](_0x360f59['model'])){const _0x1dead0=_0xdfd9b2['addRoot'](_0x4bf53f);for(const _0x16108c of Object['keys'](_0x360f59['attributes'][_0x4bf53f]))_0xdfd9b2['setAttribute'](_0x16108c,_0x360f59['attributes'][_0x4bf53f][_0x16108c],_0x1dead0);_0xdfd9b2['insert'](_0x360f59['model'][_0x4bf53f],_0x1dead0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x360f59['changes'])),this['isReady']=!0x0;})['catch'](_0x34b096=>{console['error'](_0x34b096),this['_cleanUp'](),_0xca4089&&(this['diff']=_0xca4089),this['isReady']=!0x0;});}['addRevisionData'](_0xbec3c2,_0x4597f8){const _0x2ad657=this['repository']['createRevision'](_0xbec3c2);return _0x2ad657['on']('_update',(_0x77abd7,_0xbc7c0d,_0x1b8803)=>_0x4597f8(_0xbc7c0d,_0x1b8803,_0x2ad657)),this['repository']['addRevision'](_0x2ad657),_0x2ad657;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x23e94b=>{for(const _0x496c9b of this['editor']['model']['document']['getRootNames']())_0x23e94b['detachRoot'](_0x496c9b);});}['_sortAndFilterDiffChanges'](_0x1526be){const _0x1f785f=[],_0x42ecde=new Map();for(const _0x325a44 of this['editor']['model']['document']['getRootNames']()){const _0xd88cf4=this['editor']['editing']['view']['getDomRoot'](_0x325a44);if(!_0xd88cf4)continue;const _0x4bfef0=_0xd88cf4['getClientRects']()['item'](0x0);_0x4bfef0&&(_0x1f785f['push'](_0x325a44),_0x42ecde['set'](_0x325a44,_0x4bfef0));}return _0x1f785f['sort']((_0x5304ba,_0x515286)=>{const _0x36b284=_0x42ecde['get'](_0x5304ba),_0x43c668=_0x42ecde['get'](_0x515286);return _0x36b284['y']-_0x43c668['y']||_0x36b284['x']-_0x43c668['x'];}),(_0x1526be=_0x1526be['filter'](_0x4b7027=>_0x1f785f['includes'](_0x4b7027['rootName'])))['sort']((_0x32e685,_0x396413)=>_0x1f785f['indexOf'](_0x32e685['rootName'])-_0x1f785f['indexOf'](_0x396413['rootName'])),_0x1526be;}['_makeTape'](_0x4aaf17){const _0x1069b6=Array['from'](_0x4aaf17['markers'])['filter'](([_0x95de2f,_0x33c206])=>_0x95de2f['startsWith']('revision:')&&!_0x33c206['isCollapsed']),_0x13252d=Array['from'](this['editor']['model']['createRangeIn'](_0x4aaf17)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1069b6['length'])for(const _0x4ff594 of _0x13252d){const [_0x5e3d65,_0x5159f4]=_0x1069b6[0x0],[,_0x8dc894,_0x5dfc57]=_0x5e3d65['split'](':');if(_0x5159f4['end']['isEqual'](_0x4ff594['nextPosition'])&&_0x1069b6['shift'](),(_0x4ff594['previousPosition']['isEqual'](_0x5159f4['start'])||_0x4ff594['previousPosition']['isAfter'](_0x5159f4['start']))&&('insertion'==_0x8dc894?_0x4ff594['isAdded']={'userId':_0x5dfc57}:'deletion'==_0x8dc894&&(_0x4ff594['isRemoved']={'userId':_0x5dfc57})),0x0==_0x1069b6['length'])break;}return _0x13252d;}['_refreshStartEndIndex'](_0x9d7cc0){const _0x4de343=new Map();for(let _0x266873=0x0;_0x266873<_0x9d7cc0['length'];_0x266873++)'text'===_0x9d7cc0[_0x266873]['type']?(_0x9d7cc0[_0x266873]['item']['startIndex']=_0x266873,_0x9d7cc0[_0x266873]['item']['endIndex']=_0x266873):('elementStart'===_0x9d7cc0[_0x266873]['type']?_0x9d7cc0[_0x266873]['item']['startIndex']=_0x266873:'elementEnd'===_0x9d7cc0[_0x266873]['type']&&(_0x9d7cc0[_0x266873]['item']['endIndex']=_0x266873),_0x4de343['set'](_0x9d7cc0[_0x266873]['id'],_0x266873));for(const _0x4401ca of _0x4de343['values']())'elementStart'===_0x9d7cc0[_0x4401ca]['type']?_0x9d7cc0[_0x4401ca]['item']['endIndex']=_0x4de343['get'](_0x9d7cc0[_0x4401ca]['pairId']):'elementEnd'===_0x9d7cc0[_0x4401ca]['type']&&(_0x9d7cc0[_0x4401ca]['item']['startIndex']=_0x4de343['get'](_0x9d7cc0[_0x4401ca]['pairId']));}['_processTape'](_0x1f1088){for(let _0x145bad=0x0;_0x145bad<_0x1f1088['length'];_0x145bad++){if('elementStart'===_0x1f1088[_0x145bad]['type'])_0x1f1088[_0x145bad]['item']['startIndex']=_0x145bad;else{if('elementEnd'===_0x1f1088[_0x145bad]['type']){_0x1f1088[_0x145bad]['item']['endIndex']=_0x145bad;const _0x4214b6=_0x1f1088[_0x145bad]['item']['startIndex'];_0x1f1088[_0x4214b6]['pairId']=_0x1f1088[_0x145bad]['id'],_0x1f1088[_0x145bad]['pairId']=_0x1f1088[_0x4214b6]['id'];}else _0x1f1088[_0x145bad]['item']['startIndex']=_0x145bad,_0x1f1088[_0x145bad]['item']['endIndex']=_0x145bad,_0x1f1088[_0x145bad]['pairId']=null;}_0x1f1088[_0x145bad]['markersStart']||(_0x1f1088[_0x145bad]['markersStart']=[],_0x1f1088[_0x145bad]['markersEnd']=[]);}}['_markInsertions'](_0x537b24,_0x285b39){const _0x560b5a=_0x537b24['filter'](_0x48b55e=>!_0x48b55e['isAdded']);for(let _0x28a6c8=0x0;_0x28a6c8<_0x285b39['length'];_0x28a6c8++)_0x285b39[_0x28a6c8]['isAdded']&&(_0x560b5a[_0x28a6c8]['isAdded']=_0x285b39[_0x28a6c8]['isAdded']);}['_getDiff'](_0x55b854,_0x2fe311=null){const _0x49ff7f=this['repository']['getRevision'](_0x55b854),_0x3aae0b=_0x2fe311?this['repository']['getRevision'](_0x2fe311):null,_0xec1ea9=this['_getRevisionsRange'](_0x49ff7f,_0x3aae0b),_0x2d6758=_0xec1ea9[_0xec1ea9['length']-0x1],_0x257940=new Map(),_0x2ee276={'model':{},'attributes':{},'changes':[]},_0x23e007=new Set(),_0x3aefff=new Map();for(let _0x3e4fbc=_0xec1ea9['length']-0x1;_0x3e4fbc>=0x0;_0x3e4fbc--){const _0x141652=_0xec1ea9[_0x3e4fbc];for(const _0x31ed32 of Object['keys'](_0x141652['diffData']))if(_0x141652['diffData'][_0x31ed32]['attachChange']){const _0x1a1b6e=_0x141652['diffData'][_0x31ed32]['attachChange'];_0x1a1b6e['isAttached']?(_0x23e007['add'](_0x31ed32),_0x3aefff['has'](_0x31ed32)&&_0x3aefff['get'](_0x31ed32)['userId']==_0x1a1b6e['userId']?_0x3aefff['delete'](_0x31ed32):_0x3aefff['set'](_0x31ed32,_0x1a1b6e)):_0x3aefff['has'](_0x31ed32)?(_0x23e007['delete'](_0x31ed32),_0x3aefff['delete'](_0x31ed32)):(_0x23e007['add'](_0x31ed32),_0x3aefff['set'](_0x31ed32,_0x1a1b6e));}else _0x23e007['add'](_0x31ed32);}for(const _0x3e858a of _0x23e007){const _0x5f3af7=_0x3aefff['has'](_0x3e858a)&&!_0x3aefff['get'](_0x3e858a)['isAttached'];let _0x3811de=_0x5f3af7?_0xec1ea9['length']-0x1:0x0;const _0x32cb78=_0x5f3af7?-0x1:0x1;for(;_0xec1ea9[_0x3811de];){const _0x4eb872=_0xec1ea9[_0x3811de];if(_0x4eb872['diffData'][_0x3e858a]){const _0x2f6917=_0x5f3af7?_0x4eb872['diffData'][_0x3e858a]['attributesBefore']:_0x4eb872['diffData'][_0x3e858a]['attributesAfter'];_0x2ee276['attributes'][_0x3e858a]=_0x2f6917?_0xa7d56a(_0x2f6917):{};break;}_0x3811de+=_0x32cb78;}}for(const _0x17268b of _0xec1ea9){_0x17268b['model']={};for(const _0x298d8f of _0x17268b['authors'])_0x257940['set'](_0x298d8f['id'],_0x298d8f);for(const _0x1aae41 of _0x23e007){const _0x5bacdf=_0x17268b['diffData'][_0x1aae41]?_0x17268b['diffData'][_0x1aae41]['insertions']:'[]',_0x48a282=_0x17268b['diffData'][_0x1aae41]?_0x17268b['diffData'][_0x1aae41]['deletions']:'[]';_0x17268b['model'][_0x1aae41]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5bacdf),'deletions':this['_utils']['_makeModelFromViewString'](_0x48a282)};}}for(const _0x104815 of _0x23e007){let _0x518dd4=null,_0x2f6a78=0x0;const _0x1bc914=new Map(Array['from'](_0x49ff7f['model'][_0x104815]['insertions']['markers'])['filter'](([_0x3690e1])=>!_0x3690e1['startsWith']('revision:')));let _0x9d46e5=0x0;for(const _0x31f68c of _0xec1ea9){const _0x401ebb=this['_makeTape'](_0x31f68c['model'][_0x104815]['insertions']);_0x31f68c==_0x49ff7f?(_0x518dd4=_0x401ebb,_0x2f6a78=_0x518dd4['length'],_0x518dd4['forEach'](_0x40a190=>{_0x40a190['id']=_0x9d46e5++;}),this['_processTape'](_0x518dd4)):this['_markInsertions'](_0x518dd4,_0x401ebb);const _0x59544a=_0x518dd4['filter'](_0x3ed1fa=>!_0x3ed1fa['isAdded'])['map'](_0x3622d5=>_0x3622d5['id']);let _0x417934=0x0;const _0x3cf607=this['_makeTape'](_0x31f68c['model'][_0x104815]['deletions']);_0x3cf607['forEach'](_0x51a7db=>{_0x51a7db['isRemoved']?_0x51a7db['id']=_0x2f6a78++:_0x51a7db['id']=_0x59544a[_0x417934++];}),this['_processTape'](_0x3cf607),this['_setDistance'](_0x518dd4,'isAdded'),this['_setDistance'](_0x3cf607,'isRemoved'),_0x31f68c==_0x49ff7f&&this['_markMarkers'](_0x518dd4,_0x1bc914),_0x518dd4=this['_joinTapes'](_0x518dd4,_0x3cf607),this['_refreshStartEndIndex'](_0x518dd4),this['_setDistance'](_0x518dd4,'isRemoved');}_0x518dd4=_0x518dd4['filter'](_0x5b0141=>!(_0x5b0141['isAdded']&&_0x5b0141['isRemoved']));const _0x2d5431=new Map(_0x2d6758['model'][_0x104815]['deletions']['markers']),_0x5c6aa5=new Set(_0x1bc914['keys']());for(const _0x45b37a of _0x2d5431['keys']())_0x5c6aa5['delete'](_0x45b37a);this['_markSuggestions'](_0x518dd4,_0x5c6aa5),this['_fixObsoleteTags'](_0x518dd4),_0x518dd4=this['_removeMissingPairs'](_0x518dd4),_0x518dd4=this['_markMismatchedRemovedTags'](_0x518dd4),_0x518dd4=this['_removeUnsupportedChanges'](_0x518dd4);const {root:_0x128eae,changes:_0x5674df}=this['_makeModelFromTape'](_0x518dd4,_0x257940,_0x104815);_0x2ee276['model'][_0x104815]=_0x128eae;const _0x4bce0f=_0x3aefff['get'](_0x104815);if(_0x4bce0f){const _0x2c3a88=_0x257940['get'](_0x4bce0f['userId']),_0xc11e3f=new r({'author':_0x2c3a88,'type':_0x4bce0f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x104815});_0x5674df['unshift'](_0xc11e3f),_0x2ee276['attributes'][_0x104815]['revisionHistoryAttachChange']=_0xc11e3f['id'];}_0x2ee276['changes']=_0x2ee276['changes']['concat'](_0x5674df);}return _0x2ee276;}['_markMarkers'](_0x1b0894,_0x2ea834){for(let _0x1246fe=0x0;_0x1246fe<_0x1b0894['length'];_0x1246fe++)for(const [_0x2b6c37,_0x51b269]of _0x2ea834)!_0x51b269['isCollapsed']&&_0x51b269['start']['isEqual'](_0x1b0894[_0x1246fe]['previousPosition'])&&_0x1b0894[_0x1246fe]['markersStart']['push'](_0x2b6c37),_0x51b269['end']['isEqual'](_0x1b0894[_0x1246fe]['nextPosition'])&&_0x1b0894[_0x1246fe]['markersEnd']['push'](_0x2b6c37);}['_joinTapes'](_0x5a0cb0,_0x5eb55b){let _0x2c8423=[],_0x22b137=0x0,_0x341582=0x0;for(;_0x22b137<_0x5a0cb0['length']||_0x341582<_0x5eb55b['length'];){const _0x590798=_0x5a0cb0[_0x22b137]||{},_0x23c212=_0x5eb55b[_0x341582]||{};if(_0x590798['id']==_0x23c212['id'])_0x22b137++,_0x341582++,_0x2c8423['push'](_0x590798);else{if(_0x23c212['isRemoved']&&_0x590798['isAdded']){const {commonTape:_0x485a06,iEnd:_0x5e9951,jEnd:_0x11a621}=this['_threeWayMerge'](_0x5a0cb0,_0x22b137,_0x5eb55b,_0x341582);_0x2c8423=_0x2c8423['concat'](_0x485a06),_0x22b137=_0x5e9951,_0x341582=_0x11a621;}else _0x23c212['isRemoved']?(_0x341582++,_0x2c8423['push'](_0x23c212)):(_0x22b137++,_0x2c8423['push'](_0x590798));}}return _0x2c8423;}['_markSuggestions'](_0x2c2d09,_0x515c19){const _0x2d01b4=[];for(let _0x3c20ba=0x0;_0x3c20ba<_0x2c2d09['length'];_0x3c20ba++){for(let _0x4ff9d8=0x0;_0x4ff9d8<_0x2c2d09[_0x3c20ba]['markersStart']['length'];_0x4ff9d8++){const _0x4aeff6=_0x2c2d09[_0x3c20ba]['markersStart'][_0x4ff9d8];if(!_0x515c19['has'](_0x4aeff6))continue;const {group:_0x318e6c,type:_0x3d5338,authorId:_0x574bc0}=_0x2952f7(_0x4aeff6);'revision-suggestion'!=_0x318e6c||'insertion'!=_0x3d5338&&'deletion'!=_0x3d5338||(_0x2d01b4['unshift']({'type':_0x3d5338,'name':_0x4aeff6,'userId':_0x574bc0}),_0x2c2d09[_0x3c20ba]['markersStart']['splice'](_0x4ff9d8,0x1),_0x4ff9d8--);}_0x23bf37(_0x2c2d09[_0x3c20ba]);for(let _0x2c174b=0x0;_0x2c174b<_0x2c2d09[_0x3c20ba]['markersEnd']['length'];_0x2c174b++){const _0x5c6ac9=_0x2c2d09[_0x3c20ba]['markersEnd'][_0x2c174b];if(!_0x515c19['has'](_0x5c6ac9))continue;const {group:_0x483ca9,type:_0x4e7c2e}=_0x2952f7(_0x5c6ac9);if('revision-suggestion'!=_0x483ca9||'insertion'!=_0x4e7c2e&&'deletion'!=_0x4e7c2e)continue;_0x2c2d09[_0x3c20ba]['markersEnd']['splice'](_0x2c174b,0x1),_0x2c174b--;const _0x122760=_0x2d01b4['findIndex'](_0x3f7b87=>_0x3f7b87['name']==_0x5c6ac9);_0x122760>-0x1&&_0x2d01b4['splice'](_0x122760,0x1);}}function _0x2952f7(_0x55ed90){const _0x273a14=_0x55ed90['split'](':');return{'group':_0x273a14[0x0],'type':_0x273a14[0x1],'subType':_0x273a14['length']>=0x5?_0x273a14[0x2]:null,'id':_0x273a14['length']<0x5?_0x273a14[0x2]:_0x273a14[0x3],'authorId':_0x273a14['length']<0x5?_0x273a14[0x3]:_0x273a14[0x4],'markerCount':0x6==_0x273a14['length']?_0x273a14[0x5]:null};}function _0x23bf37(_0x2e58f2){for(let _0x32b69f=0x0;_0x32b69f<_0x2d01b4['length'];_0x32b69f++){if(_0x2e58f2['isAdded']&&'insertion'==_0x2d01b4[_0x32b69f]['type'])return _0x2e58f2['isAddSuggestion']=_0x2d01b4[_0x32b69f],void delete _0x2e58f2['isAdded'];if(!_0x2e58f2['isAdded']&&!_0x2e58f2['isRemoved']&&'deletion'==_0x2d01b4[_0x32b69f]['type'])return void(_0x2e58f2['isRemoveSuggestion']=_0x2d01b4[_0x32b69f]);}}}['_setDistance'](_0x11a52c,_0x3f1cda){let _0x79b13b=0x0,_0x184258=!0x1;const _0x227993=new Map();for(const _0x49bd6b of _0x11a52c)_0x49bd6b[_0x3f1cda]?_0x184258&&(_0x79b13b++,_0x184258=!0x1):(_0x79b13b++,_0x184258=!0x0),_0x227993['set'](_0x49bd6b['id'],_0x79b13b);for(let _0x4983c2=0x0;_0x4983c2<_0x11a52c['length'];_0x4983c2++){if('isRemoved'==_0x3f1cda&&_0x11a52c[_0x4983c2]['isAdded']||'isAdded'==_0x3f1cda&&_0x11a52c[_0x4983c2]['isRemoved'])continue;if('text'==_0x11a52c[_0x4983c2]['type']){_0x11a52c[_0x4983c2]['distance']=0x0;continue;}const _0x4acdad=_0x227993['get'](_0x11a52c[_0x4983c2]['pairId']),_0x4b90c9=_0x227993['get'](_0x11a52c[_0x4983c2]['id']);_0x11a52c[_0x4983c2]['distance']=_0x4acdad-_0x4b90c9;}}['_getRevisionsRange'](_0x61083a,_0x1cc50c,_0x196f10=!0x1){const _0x15d676=[];let _0x122fdd=this['repository']['getIndex'](_0x61083a),_0x3a6411=this['repository']['getIndex'](_0x1cc50c);for(-0x1==_0x3a6411&&(_0x3a6411=this['repository']['_revisions']['length'],_0x196f10=!0x1);_0x122fdd<_0x3a6411;)_0x15d676['push'](this['repository']['getRevision'](_0x122fdd)),_0x122fdd++;return _0x196f10&&_0x15d676['push'](this['repository']['getRevision'](_0x122fdd)),_0x15d676;}['_threeWayMerge'](_0x294d4b,_0x3a5de6,_0x33d79e,_0x509552){const _0x565f06=this['editor']['model']['schema'];let _0x47bfe3=_0x3a5de6;for(;_0x294d4b[_0x47bfe3]&&_0x294d4b[_0x47bfe3]['isAdded'];)_0x47bfe3++;let _0x37dc90=_0x509552;for(;_0x33d79e[_0x37dc90]&&_0x33d79e[_0x37dc90]['isRemoved'];)_0x37dc90++;_0x49d707(_0x294d4b,_0x3a5de6,_0x47bfe3),_0x49d707(_0x33d79e,_0x509552,_0x37dc90);const _0x4fc5a7=_0x33d79e['slice'](_0x509552,_0x37dc90)['concat'](_0x294d4b['slice'](_0x3a5de6,_0x47bfe3));return _0x4fc5a7['sort']((_0x55e4a9,_0xb3bf58)=>_0x55e4a9['side']!=_0xb3bf58['side']?_0x55e4a9['side']-_0xb3bf58['side']:_0x55e4a9['level']!=_0xb3bf58['level']?_0x55e4a9['level']-_0xb3bf58['level']:_0x55e4a9['distance']!=_0xb3bf58['distance']?_0xb3bf58['distance']-_0x55e4a9['distance']:!!_0x55e4a9['isAdded']!=!!_0xb3bf58['isAdded']?-0x1==_0x55e4a9['side']||0x0==_0x55e4a9['side']?_0x55e4a9['isAdded']?-0x1:0x1:_0x55e4a9['isAdded']?0x1:-0x1:_0x55e4a9['index']-_0xb3bf58['index']),{'commonTape':_0x4fc5a7,'iEnd':_0x47bfe3,'jEnd':_0x37dc90};function _0x49d707(_0x127b0c,_0x45bf05,_0x555ebd){let _0x24ba0f=-0x1,_0x33b870=Number['POSITIVE_INFINITY'],_0x4c71cb=!0x0;for(let _0x215c02=_0x45bf05;_0x215c02<_0x555ebd;_0x215c02++)if(_0x565f06['isInline'](_0x127b0c[_0x215c02]['item'])||(_0x4c71cb=!0x1),_0x127b0c[_0x215c02]['item']['startIndex']<_0x45bf05&&(_0x24ba0f=_0x215c02),_0x127b0c[_0x215c02]['item']['endIndex']>=_0x555ebd){_0x33b870=_0x215c02;break;}_0x4c71cb&&(_0x24ba0f=_0x555ebd-0x1);for(let _0x361688=_0x45bf05;_0x361688<_0x555ebd;_0x361688++)_0x127b0c[_0x361688]['side']=_0x361688<=_0x24ba0f?-0x1:_0x361688<_0x33b870?0x0:0x1,_0x127b0c[_0x361688]['index']=_0x361688;let _0xf3662a=0x0;for(let _0x48c3bc=_0x45bf05;_0x48c3bc<=_0x24ba0f;_0x48c3bc++)0x0==_0x127b0c[_0x48c3bc]['distance']?_0x127b0c[_0x48c3bc]['level']=_0xf3662a:(_0xf3662a++,_0x127b0c[_0x48c3bc]['level']=_0xf3662a,_0xf3662a++);for(let _0x123fb4=_0x45bf05;_0x123fb4<_0x555ebd;_0x123fb4++)0x0==_0x127b0c[_0x123fb4]['side']&&(_0x127b0c[_0x123fb4]['level']=_0xf3662a);_0xf3662a=0x0;for(let _0x4038f3=_0x555ebd-0x1;_0x4038f3>=_0x33b870;_0x4038f3--)0x0==_0x127b0c[_0x4038f3]['distance']?_0x127b0c[_0x4038f3]['level']=_0xf3662a:(_0xf3662a--,_0x127b0c[_0x4038f3]['level']=_0xf3662a,_0xf3662a--);}}['_fixObsoleteTags'](_0x1dd16d){const _0x5728f0=new Map(),_0x244cab=this['editor']['model']['schema'];for(let _0x29e7aa=0x1;_0x29e7aa<_0x1dd16d['length'];_0x29e7aa++){let _0x2b2bb6,_0x77d6c4,_0x5859cc;const _0x27fd9c=_0x1dd16d[_0x29e7aa],_0x1f1559=_0x1dd16d[_0x29e7aa-0x1];if('text'==_0x27fd9c['type'])continue;if(_0x27fd9c['type']!=_0x1f1559['type'])continue;if(!_0x244cab['isBlock'](_0x1f1559['item'])||_0x244cab['isLimit'](_0x1f1559['item']))continue;if(!_0x244cab['isBlock'](_0x27fd9c['item'])||_0x244cab['isLimit'](_0x27fd9c['item']))continue;if((_0x1dd16d[_0x29e7aa]['isAdded']||_0x1dd16d[_0x29e7aa]['isAddSuggestion'])&&_0x1dd16d[_0x29e7aa-0x1]['isRemoved'])_0x2b2bb6=_0x1dd16d[_0x29e7aa],_0x77d6c4=_0x1dd16d[_0x29e7aa-0x1],_0x5859cc=_0x29e7aa-0x1;else{if(!_0x1dd16d[_0x29e7aa]['isRemoved']||!_0x1dd16d[_0x29e7aa-0x1]['isAdded']&&!_0x1dd16d[_0x29e7aa-0x1]['isAddSuggestion'])continue;_0x2b2bb6=_0x1dd16d[_0x29e7aa-0x1],_0x77d6c4=_0x1dd16d[_0x29e7aa],_0x5859cc=_0x29e7aa;}const _0x827309=_0x2b2bb6['level']==_0x77d6c4['level'],_0x35ff5c=Math['abs'](_0x2b2bb6['level'])<Math['abs'](_0x77d6c4['level'])&&0x0==_0x77d6c4['distance'];(_0x827309||_0x35ff5c)&&(_0x5728f0['set'](_0x77d6c4['id'],_0x2b2bb6['id']),_0x1dd16d['splice'](_0x5859cc,0x1),_0x29e7aa--,_0x2b2bb6['isAdded']=!0x1);}for(let _0x29bb23=0x0;_0x29bb23<_0x1dd16d['length'];_0x29bb23++)_0x5728f0['has'](_0x1dd16d[_0x29bb23]['pairId'])&&(_0x1dd16d[_0x29bb23]['pairId']=_0x5728f0['get'](_0x1dd16d[_0x29bb23]['pairId']));}['_removeMissingPairs'](_0x12598b){const _0x14288f=new Set(_0x12598b['map'](_0x57453e=>_0x57453e['id']));for(let _0x55d4ae=0x0;_0x55d4ae<_0x12598b['length'];_0x55d4ae++)_0x14288f['has'](_0x12598b[_0x55d4ae]['pairId'])||0x0==_0x12598b[_0x55d4ae]['distance']||(_0x12598b[_0x55d4ae]['isIncorrect']=!0x0);return _0x12598b['filter'](_0x533e3b=>!_0x533e3b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x18e265){const _0x25988c=new Set();for(let _0x524ae1=0x0;_0x524ae1<_0x18e265['length'];_0x524ae1++){if(_0x25988c['has'](_0x18e265[_0x524ae1]['id'])&&_0x18e265[_0x524ae1]['isRemoved']&&(_0x18e265[_0x524ae1]['isIncorrect']=!0x0),_0x18e265[_0x524ae1]['isIncorrect'])continue;if(0x0==_0x18e265[_0x524ae1]['distance'])continue;if('elementStart'!=_0x18e265[_0x524ae1]['type'])continue;if(null==_0x18e265[_0x524ae1]['pairId'])continue;let _0x4b6d49=_0x524ae1+0x1,_0x223d9a=0x0;for(;_0x18e265[_0x4b6d49]['id']!=_0x18e265[_0x524ae1]['pairId'];)'elementStart'==_0x18e265[_0x4b6d49]['type']?_0x223d9a++:'elementEnd'==_0x18e265[_0x4b6d49]['type']&&_0x223d9a--,_0x4b6d49++;if(0x0!=_0x223d9a){if(_0x18e265[_0x524ae1]['isRemoved'])_0x18e265[_0x524ae1]['isIncorrect']=!0x0;else{for(;_0x4b6d49!=_0x524ae1;)_0x18e265[_0x4b6d49]['isRemoved']&&0x0!=_0x18e265[_0x4b6d49]['distance']&&(_0x18e265[_0x4b6d49]['isIncorrect']=!0x0,_0x25988c['add'](_0x18e265[_0x4b6d49]['pairId'])),_0x4b6d49--;}}}return _0x18e265['filter'](_0x2d98d1=>!_0x2d98d1['isIncorrect']);}['_removeUnsupportedChanges'](_0x5c08e3){const _0x510ee9=this['editor']['model']['schema'];for(let _0x5c485e=0x0;_0x5c485e<_0x5c08e3['length'];_0x5c485e++){if(!(_0x5c08e3[_0x5c485e]['isAdded']||_0x5c08e3[_0x5c485e]['isAddSuggestion']||_0x5c08e3[_0x5c485e]['isRemoved']||_0x5c08e3[_0x5c485e]['isRemoveSuggestion']))continue;if(0x0==_0x5c08e3[_0x5c485e]['distance'])continue;const _0x53c1a4=_0x5c08e3[_0x5c485e]['item'];_0x510ee9['isBlock'](_0x53c1a4)||_0x510ee9['isLimit'](_0x53c1a4)||(_0x5c08e3[_0x5c485e]['isAdded']&&delete _0x5c08e3[_0x5c485e]['isAdded'],_0x5c08e3[_0x5c485e]['isAddSuggestion']&&delete _0x5c08e3[_0x5c485e]['isAddSuggestion'],_0x5c08e3[_0x5c485e]['isRemoveSuggestion']&&delete _0x5c08e3[_0x5c485e]['isRemoveSuggestion'],_0x5c08e3[_0x5c485e]['isRemoved']&&(_0x5c08e3[_0x5c485e]['isIncorrect']=!0x0));}return _0x5c08e3['filter'](_0x51e625=>!_0x51e625['isIncorrect']);}['_makeModelFromTape'](_0x5b9e72,_0x150809,_0x5f2736){const _0x4508e6=new vt(),_0x538328=[],_0x34b8cd=new Map(),_0x825d1a=this['editor']['model'],_0x2a3343=_0x825d1a['schema'],_0x5130a6=[_0x4508e6],_0x90ceea={},_0x1f49ab={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa1d405=null;const _0x541c4d=[0x0];for(let _0x185e1a=0x0;_0x185e1a<_0x5b9e72['length'];_0x185e1a++)if('elementStart'===_0x5b9e72[_0x185e1a]['type']){_0x5b9e72[_0x185e1a]['previousPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d);const _0x53a148=new ut(_0x5b9e72[_0x185e1a]['item']['name'],_0x5b9e72[_0x185e1a]['item']['getAttributes']());_0x5130a6[0x0]['_appendChild'](_0x53a148),_0x541c4d['push'](0x0),_0x5130a6['unshift'](_0x53a148),_0x5b9e72[_0x185e1a]['nextPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d);}else'elementEnd'===_0x5b9e72[_0x185e1a]['type']?(_0x5130a6['shift'](),_0x5b9e72[_0x185e1a]['previousPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d),_0x541c4d['pop'](),_0x541c4d[_0x541c4d['length']-0x1]++,_0x5b9e72[_0x185e1a]['nextPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d)):(_0x5b9e72[_0x185e1a]['previousPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d),_0xa1d405?_0xa1d405['_data']+=_0x5b9e72[_0x185e1a]['item']['data']:_0xa1d405=new gt(_0x5b9e72[_0x185e1a]['item']['data'],_0x5b9e72[_0x185e1a]['item']['getAttributes']()),_0x5b9e72[_0x185e1a+0x1]&&'text'===_0x5b9e72[_0x185e1a+0x1]['type']&&_0x4e3c84(_0xa1d405,_0x5b9e72[_0x185e1a+0x1]['item'])||(_0x5130a6[0x0]['_appendChild'](_0xa1d405),_0xa1d405=null),_0x541c4d[_0x541c4d['length']-0x1]+=_0x5b9e72[_0x185e1a]['item']['offsetSize'],_0x5b9e72[_0x185e1a]['nextPosition']=_0x825d1a['createPositionFromPath'](_0x4508e6,_0x541c4d));for(let _0x173de2=0x0;_0x173de2<_0x5b9e72['length'];_0x173de2++){const _0x1bcb3e=_0x5b9e72[_0x173de2]['previousPosition'],_0x265615=_0x5b9e72[_0x173de2]['nextPosition'];for(const _0x510abd of _0x5b9e72[_0x173de2]['markersStart'])_0x34b8cd['set'](_0x510abd,{'start':_0x1bcb3e,'end':null});_0x1ac3b4('isRemoveSuggestion',_0x173de2,_0x1bcb3e,_0x265615),_0x1ac3b4('isAddSuggestion',_0x173de2,_0x1bcb3e,_0x265615),_0x1ac3b4('isRemoved',_0x173de2,_0x1bcb3e,_0x265615),_0x1ac3b4('isAdded',_0x173de2,_0x1bcb3e,_0x265615);for(const _0x224856 of _0x5b9e72[_0x173de2]['markersEnd']){const _0x45b28e=_0x34b8cd['get'](_0x224856);_0x45b28e?_0x45b28e['end']=_0x265615:_0x34b8cd['set'](_0x224856,{'start':_0x265615,'end':_0x265615});}}for(const [_0x411cca,_0x1ecc0e]of _0x34b8cd){const _0x2c5036=this['editor']['model']['createRange'](_0x1ecc0e['start'],_0x1ecc0e['end']);_0x4508e6['markers']['set'](_0x411cca,_0x2c5036);}return _0x538328['sort']((_0x41380b,_0x39dbcc)=>{const _0x43e5b3=_0x4508e6['markers']['get']('revision:'+_0x41380b['id']),_0x569383=_0x4508e6['markers']['get']('revision:'+_0x39dbcc['id']);return _0x43e5b3['start']['isBefore'](_0x569383['start'])?-0x1:_0x43e5b3['start']['isAfter'](_0x569383['start'])?0x1:_0x43e5b3['end']['isBefore'](_0x569383['end'])?-0x1:_0x43e5b3['end']['isAfter'](_0x569383['end'])?0x1:'add'===_0x41380b['type']?-0x1:0x1;}),{'root':_0x4508e6,'changes':_0x538328};function _0x1ac3b4(_0x574d20,_0x52e87d,_0x26634a,_0x4bcfee){const _0x2a72c1=!!_0x5b9e72[_0x52e87d][_0x574d20],_0x193742=_0x2a72c1?_0x5b9e72[_0x52e87d][_0x574d20]['userId']:null,_0x222f6c=_0x52e87d===_0x5b9e72['length']-0x1,_0x3fda73=_0x1f49ab[_0x574d20][0x0],_0x57510f=_0x2a3343['isObject'](_0x5b9e72[_0x52e87d]['item']);!_0x90ceea[_0x574d20]&&_0x2a72c1?_0x90ceea[_0x574d20]={'start':_0x26634a,'tapeItem':_0x5b9e72[_0x52e87d],'userId':_0x193742,'type':_0x574d20}:_0x90ceea[_0x574d20]&&!_0x2a72c1?(_0x90ceea[_0x574d20]['end']=_0x26634a,_0x2a0bb4(_0x90ceea[_0x574d20]),_0x90ceea[_0x574d20]=null):_0x90ceea[_0x574d20]&&_0x2a72c1&&_0x90ceea[_0x574d20]['userId']!==_0x193742&&(_0x90ceea[_0x574d20]['end']=_0x26634a,_0x3fda73&&_0x3fda73['userId']===_0x90ceea[_0x574d20]['userId']||_0x2a0bb4(_0x90ceea[_0x574d20]),_0x90ceea[_0x574d20]={'start':_0x26634a,'tapeItem':_0x5b9e72[_0x52e87d],'userId':_0x193742,'type':_0x574d20}),_0x90ceea[_0x574d20]&&_0x57510f&&('elementStart'!==_0x5b9e72[_0x52e87d]['type']||_0x3fda73&&_0x3fda73['userId']===_0x193742||_0x1f49ab[_0x574d20]['unshift']({'userId':_0x193742,'object':_0x5b9e72[_0x52e87d]['item'],'change':_0x90ceea[_0x574d20]}),'elementEnd'===_0x5b9e72[_0x52e87d]['type']&&_0x3fda73&&_0x3fda73['object']===_0x5b9e72[_0x52e87d]['item']&&(_0x1f49ab[_0x574d20]['shift'](),_0x90ceea[_0x574d20]=_0x3fda73['change'])),_0x90ceea[_0x574d20]&&_0x222f6c&&(_0x90ceea[_0x574d20]['end']=_0x4bcfee,_0x2a0bb4(_0x90ceea[_0x574d20]),_0x90ceea[_0x574d20]=null);}function _0x2a0bb4({start:_0x2ba8f7,end:_0x344e2c,tapeItem:_0x4b3749,userId:_0x2eead6,type:_0x31f0e1}){const _0x15cf43=_0x4b3749['item'],_0x4fa1f3=_0x825d1a['schema']['isBlock'](_0x15cf43)&&!_0x825d1a['schema']['isLimit'](_0x15cf43),_0x15c785=_0x2ba8f7['nodeAfter']==_0x344e2c['parent']&&_0x344e2c['isAtStart'];if(_0x4fa1f3&&_0x15c785)return;const _0x43b18b=_0x825d1a['createRange'](_0x2ba8f7,_0x344e2c),_0x44f2cc=_0x150809['get'](_0x2eead6),_0x2b5377=new r({'author':_0x44f2cc,'type':'isAdded'==_0x31f0e1||'isAddSuggestion'==_0x31f0e1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x31f0e1||'isRemoveSuggestion'==_0x31f0e1},'createdAt':new Date(),'rootName':_0x5f2736});_0x538328['push'](_0x2b5377),_0x4508e6['markers']['set']('revision:'+_0x2b5377['id'],_0x43b18b);}function _0x4e3c84(_0x28f06e,_0x392869){const _0x1e9979=_0x28f06e['getAttributes'](),_0x26b80f=_0x392869['getAttributes']();for(const _0x4676e1 of _0x1e9979){if(_0x4676e1[0x1]!==_0x392869['getAttribute'](_0x4676e1[0x0]))return!0x1;_0x26b80f['next']();}return _0x26b80f['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xf53dd0=>{const _0x4d23e5=_0xf53dd0['markerName']['split'](':')[0x1],_0x4bf507=this['_getChangeFromId'](_0x4d23e5);if(!_0x4bf507)return null;const _0x418c34='add'==_0x4bf507['type']?'insertion':'deletion',_0x2ac5ac=['ck-suggestion-marker','ck-suggestion-marker-'+_0x418c34];return _0x4bf507['data']['isSuggestion']&&_0x2ac5ac['push']('ck-suggestion-marker-'+_0x418c34+'-new'),this['activeChange']==_0x4bf507&&_0x2ac5ac['push']('ck-suggestion-marker--active'),{'classes':_0x2ac5ac,'attributes':{'data-change-id':_0x4d23e5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x508a71=>{_0x508a71['on']('element:pre',(_0x2ad2e5,_0x36ba1e,_0xdf793a)=>{const _0x2e1273=_0x36ba1e['viewItem']['getChild'](0x0);if(!_0x2e1273||!_0x2e1273['is']('element','code'))return;if(!_0xdf793a['consumable']['consume'](_0x2e1273,{'attributes':['vid_start','vid_end']}))return;const _0x1f2c66=_0x36ba1e['modelRange']['start']['nodeAfter'];_0xdf793a['writer']['setAttribute']('vid_start',_0x2e1273['getAttribute']('vid_start'),_0x1f2c66),_0xdf793a['writer']['setAttribute']('vid_end',_0x2e1273['getAttribute']('vid_end'),_0x1f2c66);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5e2bf5=>{_0x5e2bf5['on']('element',(_0x22994e,_0x339db0,_0x582680)=>{if(!_0x582680['consumable']['consume'](_0x339db0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x339db0['modelRange']['isCollapsed'])return;const _0x5ae09d=_0x339db0['modelRange']['start']['nodeAfter'];_0x5ae09d['hasAttribute']('vid_start')||_0x5ae09d['hasAttribute']('vid')||(_0x582680['writer']['setAttribute']('vid_start',_0x339db0['viewItem']['getAttribute']('vid_start'),_0x5ae09d),_0x582680['writer']['setAttribute']('vid_end',_0x339db0['viewItem']['getAttribute']('vid_end'),_0x5ae09d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x8413e=>_0x8413e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3c6df5,[,_0x500314])=>{['vid_start','vid_end','vid']['includes'](_0x500314)&&(_0x3c6df5['return']=!0x0,_0x3c6df5['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1cfd97=>{_0x1cfd97['on']('attribute:vid',(_0x5a73fb,_0x526c4f,_0x19cf6c)=>{if('\x20'!=_0x526c4f['item']['data']||_0x526c4f['item']['parent']['maxOffset']>0x1)return;if(!_0x19cf6c['consumable']['consume'](_0x526c4f['item'],_0x5a73fb['name']))return;const _0x3d4d38=_0x19cf6c['writer'],_0x4b246b=_0x19cf6c['mapper']['toViewRange'](_0x526c4f['range']);_0x3d4d38['wrap'](_0x4b246b,_0x3d4d38['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x113b69){const _0x967ba=_0x113b69['plugins']['get']('RevisionViewer');return(_0x2b96ec,_0x17ef1e,_0x461ea9)=>{const _0x17f550=_0x17ef1e['markerName']['split'](':')[0x1],_0x4239a1=_0x967ba['_getChangeFromId'](_0x17f550);if(!_0x4239a1)return null;const _0x1dd53e='add'==_0x4239a1['type']?'split':'merge';if(!_0x461ea9['consumable']['test'](_0x17ef1e['markerRange'],_0x2b96ec['name']))return;const _0x4528e9=_0x17ef1e['markerRange']['getWalker'](),_0x51d201=_0x17ef1e['markerRange']['start'],_0x3036b9=_0x113b69['model']['schema'];let _0x4a15a0=null,_0x560af2=null,_0x12a214=!0x1,_0x487f64=!0x1;for(const _0x3b0a60 of _0x4528e9){const _0x6971d6=_0x3b0a60['item'];_0x12a214=_0x12a214||_0x3036b9['isContent'](_0x6971d6);const _0x4fa25e=_0x461ea9['mapper']['toViewElement'](_0x6971d6);if(_0x4fa25e&&_0x4fa25e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3b0a60['type']&&(_0x3036b9['isBlock'](_0x6971d6)&&!_0x3036b9['isLimit'](_0x6971d6)&&(_0x6971d6['nextSibling']||_0x51d201['isAtEnd']?_0x4a15a0&&_0x4a15a0['parent']==_0x6971d6||(_0x4a15a0=_0x6971d6,_0x2caf4d(_0x3b0a60['previousPosition']),_0x487f64=!0x0):_0x560af2=_0x560af2||_0x3b0a60['previousPosition']));}function _0x2caf4d(_0x540987){const _0x3c2dbb=_0x461ea9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1dd53e}),_0x113e67=_0x461ea9['mapper']['toViewPosition'](_0x540987);_0x4239a1['data']['isSuggestion']&&_0x461ea9['writer']['addClass']('ck-suggestion-marker-'+_0x1dd53e+'-new',_0x3c2dbb),_0x967ba['activeChange']==_0x4239a1&&_0x461ea9['writer']['addClass']('ck-suggestion-marker--active',_0x3c2dbb),_0x461ea9['writer']['insert'](_0x113e67,_0x3c2dbb),_0x461ea9['mapper']['bindElementToMarker'](_0x3c2dbb,_0x17ef1e['markerName']);}_0x12a214||_0x487f64||!_0x560af2||_0x2caf4d(_0x560af2);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1bce4e,_0x4cfc3a,_0x403167)=>{const _0x3af620=_0x403167['mapper']['markerNameToElements'](_0x4cfc3a['markerName']);if(_0x3af620){for(const _0x2f2a1f of _0x3af620)(_0x2f2a1f['hasClass']('ck-suggestion-marker-split')||_0x2f2a1f['hasClass']('ck-suggestion-marker-merge'))&&(_0x403167['mapper']['unbindElementFromMarkerName'](_0x2f2a1f,_0x4cfc3a['markerName']),_0x403167['writer']['remove'](_0x2f2a1f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3e8046,_0x2160d6,_0x3daec6)=>{const _0x35cb3f=_0x2160d6['markerName']['split'](':')[0x1],_0x1c01dc=this['_getChangeFromId'](_0x35cb3f);if(!_0x1c01dc)return null;const _0x4fbd3c='add'==_0x1c01dc['type']?'split':'merge';if(_0x3daec6['consumable']['test'](_0x2160d6['markerRange'],_0x3e8046['name']))for(const _0x5c60bd of _0x2160d6['markerRange']['getItems']()){if(!_0x5c60bd['is']('element','softBreak'))continue;const _0x197ebb=_0x3daec6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fbd3c}),_0x3df287=_0x3daec6['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5c60bd));_0x1c01dc['data']['isSuggestion']&&_0x3daec6['writer']['addClass']('ck-suggestion-marker-'+_0x4fbd3c+'-new',_0x197ebb),this['activeChange']==_0x1c01dc&&_0x3daec6['writer']['addClass']('ck-suggestion-marker--active',_0x197ebb),_0x3daec6['writer']['insert'](_0x3df287,_0x197ebb),_0x3daec6['mapper']['bindElementToMarker'](_0x197ebb,_0x2160d6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x35ed41=>{for(const _0x9bbd73 of this['editor']['model']['document']['getRootNames']()){const _0x3771b8=this['editor']['model']['document']['getRoot'](_0x9bbd73),_0x557262=this['editor']['editing']['view']['document']['getRoot'](_0x9bbd73);if(_0x557262){const _0x31cc1a=_0x3771b8['getAttribute']('revisionHistoryAttachChange');if(_0x35ed41['removeAttribute']('data-change-id',_0x557262),_0x35ed41['removeClass']('ck-revision-history-root-add',_0x557262),_0x35ed41['removeClass']('ck-revision-history-root-remove',_0x557262),_0x35ed41['removeClass']('ck-revision-history-root--active',_0x557262),_0x31cc1a){const _0x5b8a29=this['_getChangeFromId'](_0x31cc1a);if(!_0x5b8a29)return null;_0x35ed41['setAttribute']('data-change-id',_0x31cc1a,_0x557262),_0x35ed41['addClass']('ck-revision-history-root-'+_0x5b8a29['type'],_0x557262),this['activeChange']==_0x5b8a29&&_0x35ed41['addClass']('ck-revision-history-root--active',_0x557262);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5095a8=>'revision-comment:'+_0x5095a8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x16f6c1=>'revision-suggestion:'+_0x16f6c1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3a8fb5=>({'name':'suggestion:'+_0x3a8fb5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2e767a=>{const _0x230feb=_0x2e767a['markerName']['split'](':')[0x1];return'insertion'!=_0x230feb&&'deletion'!=_0x230feb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x230feb]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1e01a0,_0x10239e,_0x3a0ea2)=>{const _0x289711=_0x3a0ea2['mapper']['markerNameToElements'](_0x10239e['markerName']);if(_0x289711){for(const _0x51f0da of _0x289711)_0x51f0da['is']('uiElement')&&(_0x3a0ea2['mapper']['unbindElementFromMarkerName'](_0x51f0da,_0x10239e['markerName']),_0x3a0ea2['writer']['remove'](_0x51f0da));}},{'priority':'high'});}['_getChangeFromId'](_0x310816){return this['_changeIdToChange']['get'](_0x310816);}['_getViewForChange'](_0x5a4e42){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5a4e42),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1f2146,_0x549f51,_0x501254,_0x5a4fb9)=>{_0x5a4fb9&&this['_balloon']['remove'](_0x5a4fb9),_0x501254&&(this['_balloon']['add']({'view':_0x501254,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x54240c=this['editor']['editing'],_0x499b72=this['_getChangeFromId'](_0x501254['changeId']);let _0x51fa13;if(_0x499b72['data']['isOnRoot']){const _0x39630b=_0x54240c['view']['getDomRoot'](_0x499b72['rootName']);_0x51fa13=Array['from'](_0x39630b['getClientRects']());}else{const _0x4e5dc0=this['editor']['model']['markers']['get']('revision:'+_0x501254['changeId']);_0x51fa13=Array['from'](_0x54240c['mapper']['markerNameToElements'](_0x4e5dc0['name']))['map'](_0xafff0c=>_0x54240c['view']['domConverter']['mapViewToDom'](_0xafff0c))['map'](_0xbd44cb=>Array['from'](_0xbd44cb['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x51fa13[0x0];return _0x51fa13['find'](_0x449e9f=>_0x449e9f['top']-0x3<=this['_activeViewTarget']['y']&&_0x449e9f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x449e9f['left']-0x3<=this['_activeViewTarget']['x']&&_0x449e9f['right']+0x3>=this['_activeViewTarget']['x'])||_0x51fa13[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x221580,_0x4d8c54,_0x169f94,_0x18fd91)=>{this['activeView']=_0x169f94?this['_getViewForChange'](_0x169f94):null,this['editor']['model']['change'](()=>{const _0x2478e4=this['editor']['editing'];_0x18fd91&&(_0x18fd91['data']['isOnRoot']?_0x2478e4['view']['change'](_0x3f8742=>{_0x3f8742['removeClass']('ck-revision-history-root--active',_0x2478e4['view']['document']['getRoot'](_0x18fd91['rootName']));}):_0x2478e4['reconvertMarker']('revision:'+_0x18fd91['id'])),_0x169f94&&(_0x169f94['data']['isOnRoot']?_0x2478e4['view']['change'](_0x58b544=>{_0x58b544['addClass']('ck-revision-history-root--active',_0x2478e4['view']['document']['getRoot'](_0x169f94['rootName']));}):_0x2478e4['reconvertMarker']('revision:'+_0x169f94['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3490ff,_0x9e8233)=>{if(this['activeChange'])return;const _0x25090f=this['_findChangeIdFromDomTarget'](_0x9e8233['target']),_0x2f7923=this['_changeIdToChange']['get'](_0x25090f);_0x2f7923?(this['_activeViewTarget']={'x':_0x9e8233['domEvent']['x'],'y':_0x9e8233['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2f7923)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1c7985,_0x355e6e)=>{const _0xe12620=this['_findChangeIdFromDomTarget'](_0x355e6e['target']),_0x2f1318=this['_changeIdToChange']['get'](_0xe12620);_0x2f1318?(this['_activeViewTarget']={'x':_0x355e6e['domEvent']['x'],'y':_0x355e6e['domEvent']['y']},_0x2f1318===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2f1318):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f7ddc){do{const _0x5f2e33=_0x2f7ddc['getAttribute']('data-change-id');if(_0x5f2e33)return _0x5f2e33;_0x2f7ddc=_0x2f7ddc['parent'];}while(_0x2f7ddc);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3f8e3f=>{for(const _0x185096 of this['editor']['model']['markers'])_0x3f8e3f['removeMarker'](_0x185096);});}}function X(_0x10b8aa,_0x2bd49f){return(_0x21f235,_0x4524ff,_0x1e1644)=>{if(!_0x1e1644['consumable']['test'](_0x4524ff['markerRange'],_0x21f235['name']))return;const _0x120226=_0x4524ff['markerRange']['getWalker'](),_0x291a52=_0x4524ff['markerRange']['start'],_0x144179=_0x10b8aa['model']['schema'];let _0x572b00=null,_0x24539c=null,_0x1c9cfb=!0x1,_0x12ade5=!0x1;for(const _0x4277a1 of _0x120226){const _0x84df8d=_0x4277a1['item'];_0x1c9cfb=_0x1c9cfb||_0x144179['isContent'](_0x84df8d);const _0x14071e=_0x1e1644['mapper']['toViewElement'](_0x84df8d);if(_0x14071e&&_0x14071e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4277a1['type']&&(_0x144179['isBlock'](_0x84df8d)&&!_0x144179['isLimit'](_0x84df8d)&&(_0x84df8d['nextSibling']||_0x291a52['isAtEnd']?_0x572b00&&_0x572b00['parent']==_0x84df8d||(_0x572b00=_0x84df8d,_0xf3fbc(_0x4277a1['previousPosition']),_0x12ade5=!0x0):_0x24539c=_0x24539c||_0x4277a1['previousPosition']));}function _0xf3fbc(_0x1abccf){const _0x456642=_0x1e1644['mapper']['toViewPosition'](_0x1abccf),_0x18d520=_0x1e1644['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2bd49f});_0x1e1644['writer']['insert'](_0x456642,_0x18d520),_0x1e1644['mapper']['bindElementToMarker'](_0x18d520,_0x4524ff['markerName']);}_0x1c9cfb||_0x12ade5||!_0x24539c||_0xf3fbc(_0x24539c);};}class mt extends _0x233537{constructor(_0x1eacd3){super(_0x1eacd3);const _0x265314=_0x1eacd3['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x265314,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x265314,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x482974=this['editor'],_0x505a03=_0x482974['plugins']['get'](m),_0x4256a3=_0x505a03['isReady']?_0x505a03['diff']['newRevisionId']:null;_0x482974['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4256a3);}['refresh'](){const {isReady:_0x3a52ab,isEnabled:_0x32f193,repository:_0x419462,diff:_0x58fafd}=this['editor']['plugins']['get'](m),_0x8a6170=_0x58fafd&&_0x419462['getLaterVisibleRevision'](_0x58fafd['newRevisionId']);this['isEnabled']=_0x3a52ab&&_0x32f193&&Boolean(_0x8a6170);}}class wt extends _0x233537{['_step'];constructor(_0x381157,{direction:_0x4c8bfc}){super(_0x381157);const _0x5e5252=_0x381157['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4c8bfc?0x1:-0x1,this['listenTo'](_0x5e5252,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5e5252,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5e5252,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x289533=this['editor'],_0x350453=_0x289533['plugins']['get'](m),{isNavigationMode:_0x37c403,currentChangeNumber:_0x15d651}=_0x350453;let _0xedb18d;if(_0x350453['activeChange']=_0x37c403?_0x350453['diff']['changes']['get'](_0x15d651+this['_step']):_0x350453['diff']['changes']['first'],_0x350453['activeChange']['data']['isOnRoot'])_0xedb18d=_0x289533['editing']['view']['getDomRoot'](_0x350453['activeChange']['rootName']);else{const _0x14abc3=_0x289533['model']['markers']['get']('revision:'+_0x350453['activeChange']['id']);_0xedb18d=_0x391391(_0x289533['editing'],_0x14abc3);}_0x5ed825({'target':_0xedb18d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2eb7bb,currentChangeNumber:_0x347874,numberOfChanges:_0x34b3fe,isReady:_0x39d410,isEnabled:_0x43c516}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x43c516&&_0x39d410&&_0x34b3fe)&&(!_0x2eb7bb||(0x1===this['_step']?_0x347874<_0x34b3fe-0x1:_0x347874>0x0));}}class _i extends ts{constructor(_0xcfcbb6){super(_0xcfcbb6);const _0x1e89c9=this['bindTemplate'],_0x14a0ef=new te(_0xcfcbb6),_0x500922=new te(_0xcfcbb6);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',(_0x1f56bf,_0x29cfac)=>_0x1f56bf&&_0x29cfac>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4234d4,_0x1013dd,_0x11ec34,_0x597eaa)=>{if(!_0x4234d4)return g(_0xcfcbb6,'Loading...');if(!_0x11ec34)return g(_0xcfcbb6,'No\x20changes');const _0x24bcc9=g(_0xcfcbb6,'NUMBER_OF_CHANGES',_0x11ec34);return _0x597eaa?g(_0xcfcbb6,'X_OF_Y_CHANGES',[_0x1013dd+0x1,_0x11ec34]):_0x24bcc9;}),_0x14a0ef['set']({'label':g(_0xcfcbb6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5cb84a}),_0x500922['set']({'label':g(_0xcfcbb6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x473186}),_0x14a0ef['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x500922['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x14a0ef['on']('execute',()=>this['fire']('execute','backward')),_0x500922['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',_0x1e89c9['if']('_isStatusLabelVisible','ck-hidden',_0x560d27=>!_0x560d27)]},'children':[{'text':_0x1e89c9['to']('isNavigationMode',_0x4f939e=>_0x4f939e?g(_0xcfcbb6,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0xcfcbb6,'Total')+':\x20')}]},{'text':_0x1e89c9['to']('_statusText')}]},new _0x1ebccf(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x14a0ef,_0x500922]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x32d4e7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xf7997f=this['editor']['editing']['view'];_0xf7997f['change'](_0x370ace=>{for(const _0x545e5c of _0xf7997f['document']['roots'])_0x370ace['addClass'](le,_0x545e5c);});}['hide'](){const _0x1271df=this['editor']['editing']['view'];_0x1271df['change'](_0x2a4442=>{for(const _0x51653a of _0x1271df['document']['roots'])_0x2a4442['removeClass'](le,_0x51653a);});}}class R extends _0x32d4e7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x266e59=this['editor'],_0x9280f6=_0x266e59['plugins']['get'](m),_0x1ac8b2=_0x266e59['plugins']['get'](ge);_0x266e59['ui']['componentFactory']['add']('exitToEditing',_0x285ed0=>{const _0x29cc7a=new te(_0x285ed0);return _0x29cc7a['set']({'label':g(_0x285ed0,'Back\x20to\x20editing'),'icon':_0x1383b9,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x29cc7a,'execute',()=>{_0x266e59['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x29cc7a;}),_0x266e59['ui']['componentFactory']['add']('restoreRevision',_0x5b44d2=>{const _0x29f3c8=new te(_0x5b44d2);return _0x29f3c8['set']({'label':g(_0x5b44d2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x29f3c8['bind']('isEnabled')['to'](_0x266e59['commands']['get']('restoreRevision')),this['listenTo'](_0x29f3c8,'execute',()=>_0x266e59['execute']('restoreRevision')),_0x29f3c8;}),_0x266e59['ui']['componentFactory']['add']('changesNavigation',_0x3c7a0d=>{const _0x4b9722=new _i(_0x3c7a0d),_0x50e25f=_0x266e59['commands']['get']('showPreviousChange'),_0x2745a2=_0x266e59['commands']['get']('showNextChange');return _0x4b9722['bind']('isBackwardNavigationEnabled')['to'](_0x50e25f,'isEnabled'),_0x4b9722['bind']('isForwardNavigationEnabled')['to'](_0x2745a2,'isEnabled'),_0x4b9722['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x9280f6),this['listenTo'](_0x4b9722,'execute',(_0x46147d,_0x2bf88a)=>{_0x266e59['execute']('forward'===_0x2bf88a?'showNextChange':'showPreviousChange');}),_0x4b9722;}),_0x1ac8b2['show'](),_0x9280f6['on']('change:isReady',(_0x121a50,_0x42d6df,_0x684603)=>{_0x684603?_0x1ac8b2['hide']():_0x1ac8b2['show']();});}}class at extends _0x53ede4{['_resizeObserver']=null;constructor(_0x5c99c7,_0x136375){super(_0x5c99c7,_0x136375);const _0x5c082b=this['bindTemplate'];this['set']({'label':g(_0x5c99c7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5c99c7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5c082b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x42d93d=this['fieldView']['element'];this['_tooltipString']=_0x42d93d['scrollWidth']>_0x42d93d['clientWidth']&&_0x42d93d['value']||'';}}class si extends ts{constructor(_0x16848f,_0x505303,_0x29f404){super(_0x16848f);const _0x91e17c=new _0x3dbdca();_0x91e17c['set']({'content':_0x5c8a6f,'viewBox':'0\x200\x2011\x2010'});const _0x48a965=['ck','ck-revision-history-sidebar__revision-author'];_0x29f404&&_0x48a965['push']('ck-revision-history-sidebar__revision-author_creator');const _0x753f2e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x16848f,_0x29f404?'Revision\x20creator':'Revision\x20author')},'children':[_0x91e17c,_0x505303['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x48a965},'children':_0x753f2e});}}function oi(_0x299c1d,_0x13af2b){const _0x1be750=_0x299c1d['bindTemplate'],_0x3a97e8=_0x299c1d['locale'],_0x3e1772=_0x3c7a5d(_0x3a97e8);_0x3e1772['panelPosition']='sw';const _0x56e26d=function(_0x83b76d,_0x4917e1){const _0x117f89=function(_0x3e39ea,_0x40775a){const _0x47f1b1=_0x3e39ea['locale'],_0x5878d7={'Compare\x20against\x20selected':g(_0x47f1b1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x47f1b1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x47f1b1,'Restore\x20this\x20revision')};return _0x40775a['map'](_0x417d50=>{const _0x10087e=_0x5878d7[_0x417d50['name']];return _0x10087e&&_0x10087e!==_0x417d50['name']&&(_0x417d50['name']=_0x10087e),_0x417d50;});}(_0x83b76d,_0x4917e1),_0x1eacc4=new _0x5427d4();for(const _0x3666a3 of _0x117f89){const _0x4f20c6={'type':'button','model':new to({'label':_0x3666a3['name'],'class':_0x3666a3['class'],'withText':!0x0,'role':'menuitem','_action':_0x3666a3['action']})};_0x4f20c6['model']['bind']('isEnabled')['to'](_0x83b76d,'isActionsDropdownOpen',_0x22df34=>'function'!=typeof _0x3666a3['isEnabled']||(!_0x22df34||_0x3666a3['isEnabled'](_0x83b76d))),_0x1eacc4['add'](_0x4f20c6);}return _0x1eacc4;}(_0x299c1d,_0x13af2b);return _0x299c1d['bind']('isActionsDropdownOpen')['to'](_0x3e1772,'isOpen'),_0x3e1772['buttonView']['set']({'label':g(_0x3a97e8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x13419a}),_0x3e1772['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1be750['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1be750['to'](_0x35fc4e=>_0x35fc4e['stopPropagation']())}}),_0x3e1772['on']('execute',_0x2c05e2=>{_0x299c1d['isReady']&&'function'==typeof _0x2c05e2['source']['_action']&&_0x2c05e2['source']['_action'](_0x299c1d);}),_0x589ad9(_0x3e1772,_0x56e26d,{'role':'menu'}),_0x3e1772['listenTo'](_0x299c1d,'change:isActionsDropdownOpen',(_0x1203b2,_0x46e034,_0x351b34)=>{if(_0x351b34)for(const _0x32e3a1 of _0x3e1772['listView']['items']){const _0x246ba6=_0x32e3a1['children']['first'],_0x281a53=_0x13af2b['find'](_0x48a359=>_0x48a359['action']===_0x246ba6['_action'])['isVisible'];_0x32e3a1['isVisible']=void 0x0===_0x281a53||_0x281a53(_0x299c1d);}}),_0x3e1772;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x9b1780,_0xe26ab5,_0x3f1b0f,_0x4c50cc){super(_0x9b1780);const _0x5cc02e=this['bindTemplate'],_0x12be45=function(_0x3f709e,_0x7e917b){const _0x436642=Array['from'](_0x7e917b['authors'])['filter'](_0x4802d8=>_0x4802d8!=_0x7e917b['creator']);return _0x7e917b['creator']&&_0x436642['unshift'](_0x7e917b['creator']),_0x436642['map'](_0x1dbf9c=>new si(_0x3f709e,_0x1dbf9c,_0x1dbf9c==_0x7e917b['creator']));}(_0x9b1780,_0xe26ab5);this['id']=_0xe26ab5['id'],this['_revision']=_0xe26ab5,this['_requireRevisionName']=_0x4c50cc,this['bind']('name','createdAt')['to'](_0xe26ab5),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x11d37a=>{return _0x5b9a0c=_0x9b1780['uiLanguage'],(_0x583fe5=_0x11d37a)['toLocaleDateString'](_0x5b9a0c,{'month':'long','day':'numeric'})+',\x20'+_0x583fe5['toLocaleTimeString'](_0x5b9a0c,{'hour':'numeric','minute':'numeric'});var _0x5b9a0c,_0x583fe5;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x9b1780,_0x5abb26),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1ff286=>_0x1ff286||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x339d85,_0x5980c0)=>_0x339d85&&_0x5980c0),this['revisionActionsView']=_0x3f1b0f&&_0x3f1b0f['length']?oi(this,_0x3f1b0f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5cc02e['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5cc02e['if']('isEnabled','ck-disabled',_0x16cbbf=>!_0x16cbbf),_0x5cc02e['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5cc02e['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5cc02e['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':_0x5cc02e['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':_0x12be45}]},this['revisionActionsView']],'on':{'click':_0x5cc02e['to'](_0x41f49b=>{_0x41f49b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5d1134=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5d1134,'change',()=>{this['_requireRevisionName']&&!_0x5d1134['value']||this['fire']('setName',{'id':this['id'],'name':_0x5d1134['value']}),_0x5d1134['value']||(_0x5d1134['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x5914f2,_0x2b5086){const _0x5d106f=_0x56e664['fromJSDate'](_0x5914f2)['setLocale'](_0x2b5086),_0x144b48=_0x56e664['local'](),_0x5c677a=_0x144b48['minus']({'days':0x1})['startOf']('day');let _0x37e7a2,_0x45e973;return _0x5d106f['hasSame'](_0x144b48,'day')?(_0x37e7a2=_0x5d106f['startOf']('day')['toJSDate'](),_0x45e973=_0x5d106f['toRelativeCalendar']()):_0x5d106f['hasSame'](_0x5c677a,'day')?(_0x37e7a2=_0x5c677a['toJSDate'](),_0x45e973=_0x5d106f['toRelativeCalendar']()):_0x5d106f['hasSame'](_0x144b48,'week')?(_0x37e7a2=_0x5d106f['startOf']('week')['toJSDate'](),_0x45e973=_0x5d106f['weekdayLong']||''):_0x5d106f['hasSame'](_0x144b48,'year')?(_0x37e7a2=_0x5d106f['startOf']('month')['toJSDate'](),_0x45e973=_0x5d106f['monthLong']||''):(_0x37e7a2=_0x5d106f['startOf']('year')['toJSDate'](),_0x45e973=String(_0x5d106f['year'])),{'startDate':_0x37e7a2,'localizedPeriodName':_0x45e973};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x415438,_0x40b495,_0x28b50b,_0x237999){super(_0x415438);const _0x4fb670=ai(_0x40b495,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x40b495,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x28b50b,this['_requireRevisionName']=_0x237999,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':_0x4fb670}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x17f0e1){const _0xf05c45=new hi(this['locale'],_0x17f0e1,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xf05c45);}['removeRevision'](_0x189abe){const _0x44b1d6=this['revisionViews']['find'](_0x3232fa=>_0x3232fa['id']===_0x189abe['id']);this['revisionViews']['remove'](_0x44b1d6);}}class as extends ts{constructor(_0x16a7df){super(_0x16a7df);const _0x4a0b41=new _0x3dbdca();_0x4a0b41['content']=_0x16a281,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4a0b41,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x16a7df,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c2a80,_0x3a7b47,_0x57b166,_0x482236){super(_0x4c2a80);const _0x3190c8=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3a7b47,this['_revisionActions']=_0x57b166,this['_requireRevisionName']=_0x482236,this['on']('select',(_0x413308,_0x1ec63a)=>{this['fire']('revisionSelected',_0x1ec63a);}),this['on']('setName',(_0x4241b8,_0x45877c)=>{this['fire']('revisionSetName',_0x45877c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4c2a80),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3190c8['if']('isEnabled','ck-disabled',_0x504848=>!_0x504848)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4135a6 of this['_revisions'])this['_addRevision'](_0x4135a6);this['_revisions']['on']('add',(_0x22e583,_0x4c64aa)=>{this['_addRevision'](_0x4c64aa);}),this['_revisions']['on']('remove',(_0x52bdd6,_0x61b276)=>{this['_removeRevision'](_0x61b276);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x36b64c=>_0x36b64c['revisionViews']['map'](_0x5a8b0d=>_0x5a8b0d))['flat']();}['selectRevision'](_0x24604e){for(const _0x14755b of this['revisionViews'])_0x24604e&&_0x24604e['id']===_0x14755b['id']?_0x14755b['select']():_0x14755b['deselect']();}['highlightRevisions'](_0x3ee33a){for(const _0x41b561 of this['revisionViews'])_0x3ee33a['some'](({id:_0x3641bf})=>_0x3641bf===_0x41b561['id'])?_0x41b561['highlight']():_0x41b561['unhighlight']();}['_addRevision'](_0xe6b9a5){const _0x2af625=ai(_0xe6b9a5['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5101ca=this['timePeriodViews']['get'](0x0);_0x5101ca&&_0x5101ca['startDate']['getTime']()===_0x2af625['getTime']()||(_0x5101ca=new di(this['locale'],_0x2af625,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5101ca)),_0x5101ca['addRevision'](_0xe6b9a5);}['_removeRevision'](_0x524b8b){const _0x14ccc7=ai(_0x524b8b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x14ccc7)['removeRevision'](_0x524b8b);}['_getTimePeriodViewByStartDate'](_0x5ecd73){return this['timePeriodViews']['find'](_0x2b9d86=>_0x2b9d86['startDate']['getTime']()===_0x5ecd73['getTime']());}}class d extends _0x32d4e7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x1feda6){super(_0x1feda6),this['_revisionViewer']=_0x1feda6['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1d79c7=this['_revisionsRepository']['_revisions'],_0x4b6d54=this['_createRevisionActions'](),_0x273c51=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x1d79c7,_0x4b6d54,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',(_0x5af332,_0xc7daf3)=>{_0xc7daf3['revisionViews']['on']('add',(_0x46112c,_0x17c132)=>{_0x17c132['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)),_0x273c51['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x45f649=this['_revisionsRepository']['getRevision'](0x0);if(_0x45f649){const _0x1798e7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x45f649['id']);this['_revisionViewer']['compare'](_0x45f649,_0x1798e7);}}['_handleRevisionSelected'](_0x4efd91,_0x5c896d){const _0x47527f=this['_revisionsRepository']['getRevision'](_0x5c896d['id']),_0x3ee407=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x47527f['id']);this['_revisionViewer']['compare'](_0x47527f,_0x3ee407);}['_handleRevisionSetName'](_0x5b66fb,_0x4fce2a){this['_revisionsRepository']['getRevision'](_0x4fce2a['id'])['setName'](_0x4fce2a['name']);}['_handleDiffChange'](_0x138195,_0x3d50cf,_0x402e86){const _0x47e58a=this['_revisionsRepository']['getRevisionsInDiff'](_0x402e86);_0x47e58a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x47e58a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x47e58a[0x0]));}['_createRevisionActions'](){const _0xdb3b8a=this['editor'],_0x21f7c7=d['availableRevisionActions'],_0x3837dc=_0xdb3b8a['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x3837dc['length'])return _0x3837dc['map'](_0x42139c=>{const _0x55a7f8='string'==typeof _0x42139c?Object['assign']({},_0x21f7c7[_0x42139c]):_0x42139c;return _0x55a7f8['action']=_0x55a7f8['action']['bind'](this,_0xdb3b8a),_0x55a7f8['isVisible']&&(_0x55a7f8['isVisible']=_0x55a7f8['isVisible']['bind'](this,_0xdb3b8a)),_0x55a7f8;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x549c34},_0x2d4cf5)=>{const _0x358586=_0x549c34['get'](m),_0x521f53=_0x358586['repository'];let _0x562e2d=_0x358586['diff']['newRevisionId'],_0x4e3fa0=_0x2d4cf5['id'];_0x521f53['getIndex'](_0x562e2d)>_0x521f53['getIndex'](_0x4e3fa0)&&([_0x562e2d,_0x4e3fa0]=[_0x4e3fa0,_0x562e2d]),_0x358586['compare'](_0x562e2d,_0x4e3fa0);},'isVisible':({plugins:_0x2ae257},_0x2cf8cd)=>{const _0x4a7e49=_0x2ae257['get'](m);return!(_0x4a7e49['repository']['getRevisionsInDiff'](_0x4a7e49['diff'])['length']>0x2)&&!_0x2cf8cd['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x247905,{id:_0x4f3b7a})=>{_0x247905['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4f3b7a);},'isVisible':({plugins:_0x581f27},_0x5a797b)=>!!_0x581f27['get'](m)['repository']['getLaterVisibleRevision'](_0x5a797b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2a5de0},{id:_0x1159b0,revisionNameView:_0xd4012d})=>{const _0x3027c9=_0x2a5de0['get'](m),_0x5c86dc=_0x3027c9['repository']['getEarlierVisibleRevision'](_0x1159b0);_0x3027c9['compare'](_0x1159b0,_0x5c86dc),_0xd4012d['focus'](),_0xd4012d['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1961aa,_0x5d6d6){super(_0x1961aa),this['_view']=_0x5d6d6,this['_toolbarConfig']=et(_0x1961aa['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x5729c5){const _0x176f08=this['editor'],_0x3bc47a=this['view'],_0x8c727b=_0x176f08['editing']['view'],_0xbd8833=_0x3bc47a['editable'],_0x5daf77=_0x8c727b['document']['getRoot']();_0xbd8833['name']=_0x5daf77['rootName'],_0x3bc47a['render']();const _0x377dc3=_0xbd8833['element'];this['setEditableElement'](_0xbd8833['name'],_0x377dc3),_0x3bc47a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x8c727b['attachDomRoot'](_0x377dc3),this['_elementReplacer']['replace'](_0x5729c5,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3bb717=this['view'],_0x5a6e83=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5a6e83['detachDomRoot'](_0x3bb717['editable']['name']),_0x3bb717['destroy']();}['_initToolbar'](){const _0xfe9080=this['view'];_0xfe9080['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xfe9080['stickyPanel']['limiterElement']=_0xfe9080['element'],_0xfe9080['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x57eaa1})=>_0x57eaa1),_0xfe9080['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xfe9080['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x146ddd,_0xc1e215,_0x275159={}){super(_0x146ddd),this['stickyPanel']=new ht(_0x146ddd),this['toolbar']=new dt(_0x146ddd,{'shouldGroupWhenFull':_0x275159['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x146ddd,_0xc1e215);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- _0x582e74(_0x58a48a){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3b3600,_0x4d312f){super(_0x4d312f),this['sourceElement']=_0x3b3600,this['model']['document']['createRoot']();const _0x3e97b9=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3e97b9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xe58a04,_0x498f2d){const _0xdcf111=new this(_0xe58a04,_0x498f2d);return await _0xdcf111['initPlugins'](),await _0xdcf111['ui']['init'](_0xe58a04),await _0xdcf111['data']['init'](_0xdcf111['config']['get']('initialData')||''),_0xdcf111['fire']('ready'),_0xdcf111;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x13d4c1{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47137b){function _0x27aaab(_0x26a086){return _0x26a086['map'](_0x4287c8=>String['fromCharCode'](_0x4287c8))['join']('');}super(_0x47137b),this['result']='end',_0x47137b[_0x27aaab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27aaab([0x76,0x69,0x65,0x77])][_0x27aaab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27aaab([0x61,0x75,0x74,0x6f]),_0x47137b[_0x27aaab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x27aaab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27aaab([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x27aaab([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x27aaab([0x6f,0x6b])});}}class k extends _0x13d4c1{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2e7513){if(super(_0x2e7513),!this['editor']['config']['get']('revisionHistory'))throw new _0x40e938('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x495ad6=>this['_showRevisionViewer']({..._0x495ad6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3a24c9=>this['_closeRevisionViewer'](_0x3a24c9)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x15e76e=>this['_restoreRevision'](_0x15e76e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5aa134){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5aa134;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x39bd1c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x39bd1c);}['getRevision'](_0x136355){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x136355);}['getRevisions'](_0x312518){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x312518||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5eae04=this['editor'],_0x35fe9f=_0x111232(_0x5eae04,p),_0x1743bb=_0x5eae04['plugins']['get']('RevisionTracker'),_0x454d1c=_0x5eae04['plugins']['get']('Users')['users'];return _0x35fe9f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x35fe9f['lazyRoots'],(_0x35fe9f['plugins']['push'](yt,m,R,class extends _0x13d4c1{static get['requires'](){return[m,'Users'];}['init'](){const _0x510864=this['editor']['plugins']['get']('Users');for(const _0x51d020 of _0x454d1c)_0x51d020['isAnonymous']||_0x510864['getUser'](_0x51d020['id'])||_0x510864['addUser'](_0x51d020);const _0x1207ce=_0x1743bb['repository']['getRevisions']();let _0x56b6c6=null;const _0x327656=this['editor']['plugins']['get']('RevisionViewer');_0x327656['adapter']=_0x1743bb['adapter'],_0x327656['bind']('isEnabled')['to'](_0x1743bb),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5eae04,'isReadOnly',_0x4a8783=>!_0x4a8783);for(const _0x231177 of _0x1207ce){const _0x30e67f=null===_0x231177['creator'];if(_0x30e67f&&_0x231177['toVersion']===_0x231177['fromVersion'])continue;const _0x1fad3f=_0x231177['toJSON']();_0x327656['addRevisionData'](_0x1fad3f,(_0x5b00ff,_0x5a3bd6,_0x5b74c8)=>{if(_0x30e67f){if(_0x56b6c6)_0x56b6c6['_update'](_0x5b00ff,_0x5a3bd6);else{if(!_0x5a3bd6){const _0x21796f=_0x5b74c8['toJSON']();_0x21796f['id']=_0x556484(),_0x1743bb['saveRevision'](_0x21796f,_0x5b74c8['toVersion'])['then'](_0x407bd9=>{_0x56b6c6=_0x407bd9;});}}}else _0x231177['_update'](_0x5b00ff,_0x5a3bd6);});}}},d),_0x35fe9f);}['_enhanceShowRevisionViewerCallback'](){const _0x593f0a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3bbee0=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x531204=this['editor']['plugins']['get']('Autosave');await _0x531204['save']();}else await _0x3bbee0['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x14e704=this['editor']['plugins']['get']('Dialog');_0x14e704['isOpen']&&_0x14e704['hide']();}const _0x596be7=this['_getRevisionViewerEditorConfig']();return _0x593f0a(_0x596be7)['then'](_0x2c1709=>{return(this['_viewerEditor']=_0x2c1709,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x2c1709);})['catch'](_0x2be952=>(console['error'](_0x2be952),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x48bd28=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x48bd28(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1d5190=this['editor']['plugins']['get']('Annotations');_0x1d5190['refreshVisibility'](),_0x1d5190['refreshPositioning']();}})));}['_showRevisionViewer'](_0x41bf23){const _0x395bd2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1799d7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1a1f42=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1a1f42,_0x41bf23)['then'](_0x45b684=>(_0x1799d7['style']['display']='block',_0x395bd2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x45b684));}['_closeRevisionViewer'](_0x1dfd45){const _0x286599=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x286599['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1dfd45['destroy']();}async['_restoreRevision'](_0x2bb214){const _0x3f93be=this['editor'],_0x5e0292=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x30f98e=_0x3f93be['plugins']['get']('RevisionTracker'),_0x4ca805=_0x3f93be['plugins']['get']('RevisionHistoryUtils'),_0x3c2c14=_0x5e0292['repository']['getRevision'](_0x2bb214);let _0x336746,_0x238bd6,_0x3ee669;try{await _0x4ca805['loadRevisionData'](_0x3c2c14,this['adapter']),_0x336746=_0x4ca805['getRevisionDocumentData'](_0x3c2c14),_0x238bd6=_0x4ca805['getRevisionRootsAttributes'](_0x3c2c14);}catch(_0x23e38e){return void console['error'](_0x23e38e);}_0x3f93be['model']['change'](_0x54c32b=>{for(const _0x250cb0 of Array['from'](_0x3f93be['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x54c32b['removeMarker'](_0x250cb0);}),_0x5e0292['isReady']=!0x1,_0x3f93be['model']['enqueueChange'](_0xb4d0ea=>{_0xb4d0ea['setSelection'](null),_0xb4d0ea['removeSelectionAttribute'](_0x3f93be['model']['document']['selection']['getAttributeKeys']());const _0x1c958f=Object['keys'](_0x336746);for(const _0x5a6b8c of _0x3f93be['model']['document']['roots'])'$graveyard'!=_0x5a6b8c['rootName']&&_0x5a6b8c['isAttached']()&&!_0x1c958f['includes'](_0x5a6b8c['rootName'])&&_0xb4d0ea['detachRoot'](_0x5a6b8c);for(const _0xad0712 of _0x1c958f){let _0x3fab8b=_0x3f93be['model']['document']['getRoot'](_0xad0712);_0x3fab8b&&_0x3fab8b['isAttached']()||(_0x3fab8b=_0xb4d0ea['addRoot'](_0xad0712));const _0x106d7e=_0x238bd6[_0xad0712],_0x303d3d=Object['keys'](_0x106d7e),_0x29ac05=_0x336746[_0xad0712];for(const _0x569ccd of _0x3fab8b['getAttributeKeys']())_0x303d3d['includes'](_0x569ccd)||_0xb4d0ea['removeAttribute'](_0x569ccd,_0x3fab8b);for(const _0x54a700 of _0x303d3d)_0xb4d0ea['setAttribute'](_0x54a700,_0x238bd6[_0xad0712][_0x54a700],_0x3fab8b);_0xb4d0ea['remove'](_0xb4d0ea['createRangeIn'](_0x3fab8b)),_0xb4d0ea['insert'](_0x3f93be['data']['parse'](_0x29ac05,_0x3fab8b),_0x3fab8b,0x0);}});const _0x21a821=g(_0x3f93be['locale'],'Restored');if(_0x3c2c14['name'])_0x3ee669=-0x1==_0x3c2c14['name']['indexOf'](_0x21a821)?_0x21a821+':\x20'+_0x3c2c14['name']:_0x3c2c14['name'];else _0x3ee669=_0x21a821+':\x20'+(_0x3c2c14['createdAt']['toLocaleDateString'](_0x3f93be['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3c2c14['createdAt']['toLocaleTimeString'](_0x3f93be['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x30f98e['saveRevision']({'name':_0x3ee669}),_0x5e0292['isReady']=!0x0,_0x3f93be['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ie as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x3c9c4e){super(_0x3c9c4e),this['_revisionViewer']=_0x3c9c4e['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2f15ba=this['_revisionsRepository']['_revisions'],_0x463cb6=this['_createRevisionActions'](),_0xf42cb7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x2f15ba,_0x463cb6,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',(_0x24c092,_0x3490e9)=>{_0x3490e9['revisionViews']['on']('add',(_0x4cf154,_0x361040)=>{_0x361040['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)),_0xf42cb7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2dac37=this['_revisionsRepository']['getRevision'](0x0);if(_0x2dac37){const _0x13a04d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2dac37['id']);this['_revisionViewer']['compare'](_0x2dac37,_0x13a04d);}}['_handleRevisionSelected'](_0x39cacb,_0x5eed7a){const _0x157c56=this['_revisionsRepository']['getRevision'](_0x5eed7a['id']),_0x66cf8a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x157c56['id']);this['_revisionViewer']['compare'](_0x157c56,_0x66cf8a);}['_handleRevisionSetName'](_0x2e89fa,_0x18d8f6){this['_revisionsRepository']['getRevision'](_0x18d8f6['id'])['setName'](_0x18d8f6['name']);}['_handleDiffChange'](_0x1db732,_0x16a25a,_0x22915f){const _0x46e3b9=this['_revisionsRepository']['getRevisionsInDiff'](_0x22915f);_0x46e3b9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x46e3b9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x46e3b9[0x0]));}['_createRevisionActions'](){const _0x3a52fc=this['editor'],_0x43b600=d['availableRevisionActions'],_0x25fe15=_0x3a52fc['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x25fe15['length'])return _0x25fe15['map'](_0x202e29=>{const _0x50580a='string'==typeof _0x202e29?Object['assign']({},_0x43b600[_0x202e29]):_0x202e29;return _0x50580a['action']=_0x50580a['action']['bind'](this,_0x3a52fc),_0x50580a['isVisible']&&(_0x50580a['isVisible']=_0x50580a['isVisible']['bind'](this,_0x3a52fc)),_0x50580a;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x14bf16},_0x2c352f)=>{const _0x2306ae=_0x14bf16['get'](m),_0x12f864=_0x2306ae['repository'];let _0x3252c6=_0x2306ae['diff']['newRevisionId'],_0x44d9aa=_0x2c352f['id'];_0x12f864['getIndex'](_0x3252c6)>_0x12f864['getIndex'](_0x44d9aa)&&([_0x3252c6,_0x44d9aa]=[_0x44d9aa,_0x3252c6]),_0x2306ae['compare'](_0x3252c6,_0x44d9aa);},'isVisible':({plugins:_0x4f8bc4},_0x39c182)=>{const _0x292a15=_0x4f8bc4['get'](m);return!(_0x292a15['repository']['getRevisionsInDiff'](_0x292a15['diff'])['length']>0x2)&&!_0x39c182['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x42c600,{id:_0x317696})=>{_0x42c600['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x317696);},'isVisible':({plugins:_0x2621f1},_0x35b67a)=>!!_0x2621f1['get'](m)['repository']['getLaterVisibleRevision'](_0x35b67a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x100f1c},{id:_0x26e22b,revisionNameView:_0x185298})=>{const _0x38729b=_0x100f1c['get'](m),_0x37d8b8=_0x38729b['repository']['getEarlierVisibleRevision'](_0x26e22b);_0x38729b['compare'](_0x26e22b,_0x37d8b8),_0x185298['focus'](),_0x185298['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xe11aaf,_0x46086c){super(_0xe11aaf),this['_view']=_0x46086c,this['_toolbarConfig']=et(_0xe11aaf['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x32eb0d){const _0x29dec1=this['editor'],_0x2a1edc=this['view'],_0x25c30e=_0x29dec1['editing']['view'],_0x56e897=_0x2a1edc['editable'],_0x19c0c9=_0x25c30e['document']['getRoot']();_0x56e897['name']=_0x19c0c9['rootName'],_0x2a1edc['render']();const _0x592957=_0x56e897['element'];this['setEditableElement'](_0x56e897['name'],_0x592957),_0x2a1edc['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x25c30e['attachDomRoot'](_0x592957),this['_elementReplacer']['replace'](_0x32eb0d,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5a342b=this['view'],_0x266456=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x266456['detachDomRoot'](_0x5a342b['editable']['name']),_0x5a342b['destroy']();}['_initToolbar'](){const _0x13fd45=this['view'];_0x13fd45['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x13fd45['stickyPanel']['limiterElement']=_0x13fd45['element'],_0x13fd45['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3e9b0d})=>_0x3e9b0d),_0x13fd45['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x13fd45['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1eba2a,_0x3edd25,_0x52986e={}){super(_0x1eba2a),this['stickyPanel']=new ht(_0x1eba2a),this['toolbar']=new dt(_0x1eba2a,{'shouldGroupWhenFull':_0x52986e['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x1eba2a,_0x3edd25);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ _0x1c41d4(_0x575449){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x18ad99,_0xf4bc9a){super(_0xf4bc9a),this['sourceElement']=_0x18ad99,this['model']['document']['createRoot']();const _0x3d2eef=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3d2eef);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x105fdd,_0x5da6b2){const _0x5dbf07=new this(_0x105fdd,_0x5da6b2);return await _0x5dbf07['initPlugins'](),await _0x5dbf07['ui']['init'](_0x105fdd),await _0x5dbf07['data']['init'](_0x5dbf07['config']['get']('initialData')||''),_0x5dbf07['fire']('ready'),_0x5dbf07;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x32d4e7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fb8df){function _0x3c0c9e(_0x5368c4){return _0x5368c4['map'](_0x20bd03=>String['fromCharCode'](_0x20bd03))['join']('');}super(_0x2fb8df),this['result']='end',_0x2fb8df[_0x3c0c9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c0c9e([0x76,0x69,0x65,0x77])][_0x3c0c9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c0c9e([0x61,0x75,0x74,0x6f]),_0x2fb8df[_0x3c0c9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3c0c9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c0c9e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3c0c9e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3c0c9e([0x6f,0x6b])});}}class k extends _0x32d4e7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xbc4175){if(super(_0xbc4175),!this['editor']['config']['get']('revisionHistory'))throw new _0x561adb('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x564510=>this['_showRevisionViewer']({..._0x564510,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x40ee14=>this['_closeRevisionViewer'](_0x40ee14)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x24f4dd=>this['_restoreRevision'](_0x24f4dd)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x543323){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x543323;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5416d8){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5416d8);}['getRevision'](_0x1c14da){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1c14da);}['getRevisions'](_0x566aef){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x566aef||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x14d0c7=this['editor'],_0x323ec8=_0x5b7920(_0x14d0c7,p),_0x5db42f=_0x14d0c7['plugins']['get']('RevisionTracker'),_0x4b7233=_0x14d0c7['plugins']['get']('Users')['users'];return _0x323ec8['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x323ec8['lazyRoots'],(_0x323ec8['plugins']['push'](_t,m,R,class extends _0x32d4e7{static get['requires'](){return[m,'Users'];}['init'](){const _0xde180a=this['editor']['plugins']['get']('Users');for(const _0x16f595 of _0x4b7233)_0x16f595['isAnonymous']||_0xde180a['getUser'](_0x16f595['id'])||_0xde180a['addUser'](_0x16f595);const _0x69d53b=_0x5db42f['repository']['getRevisions']();let _0x40f8cf=null;const _0xe18fad=this['editor']['plugins']['get']('RevisionViewer');_0xe18fad['adapter']=_0x5db42f['adapter'],_0xe18fad['bind']('isEnabled')['to'](_0x5db42f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x14d0c7,'isReadOnly',_0xcaddca=>!_0xcaddca);for(const _0x25ad51 of _0x69d53b){const _0x56ddc7=null===_0x25ad51['creator'];if(_0x56ddc7&&_0x25ad51['toVersion']===_0x25ad51['fromVersion'])continue;const _0x5f3cc7=_0x25ad51['toJSON']();_0xe18fad['addRevisionData'](_0x5f3cc7,(_0x2ad83c,_0x2aaf5a,_0x1e80bc)=>{if(_0x56ddc7){if(_0x40f8cf)_0x40f8cf['_update'](_0x2ad83c,_0x2aaf5a);else{if(!_0x2aaf5a){const _0x44ab47=_0x1e80bc['toJSON']();_0x44ab47['id']=_0x22d855(),_0x5db42f['saveRevision'](_0x44ab47,_0x1e80bc['toVersion'])['then'](_0x366199=>{_0x40f8cf=_0x366199;});}}}else _0x25ad51['_update'](_0x2ad83c,_0x2aaf5a);});}}},d),_0x323ec8);}['_enhanceShowRevisionViewerCallback'](){const _0xfe4340=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x10fbf4=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3e3f83=this['editor']['plugins']['get']('Autosave');await _0x3e3f83['save']();}else await _0x10fbf4['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x128419=this['editor']['plugins']['get']('Dialog');_0x128419['isOpen']&&_0x128419['hide']();}const _0x50c91d=this['_getRevisionViewerEditorConfig']();return _0xfe4340(_0x50c91d)['then'](_0x1feede=>{return(this['_viewerEditor']=_0x1feede,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x1feede);})['catch'](_0x21524a=>(console['error'](_0x21524a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x572155=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x572155(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x38b610=this['editor']['plugins']['get']('Annotations');_0x38b610['refreshVisibility'](),_0x38b610['refreshPositioning']();}})));}['_showRevisionViewer'](_0x44ed5d){const _0x32e048=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x96a9f6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4d3b51=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4d3b51,_0x44ed5d)['then'](_0x2f378c=>(_0x96a9f6['style']['display']='block',_0x32e048['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2f378c));}['_closeRevisionViewer'](_0x34f3c2){const _0xb6ab05=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xb6ab05['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x34f3c2['destroy']();}async['_restoreRevision'](_0xf2ccac){const _0x112713=this['editor'],_0x5f174f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2d155f=_0x112713['plugins']['get']('RevisionTracker'),_0xb5c21a=_0x112713['plugins']['get']('RevisionHistoryUtils'),_0x2ba954=_0x5f174f['repository']['getRevision'](_0xf2ccac);let _0x177110,_0x1e8515,_0x187a6c;try{await _0xb5c21a['loadRevisionData'](_0x2ba954,this['adapter']),_0x177110=_0xb5c21a['getRevisionDocumentData'](_0x2ba954),_0x1e8515=_0xb5c21a['getRevisionRootsAttributes'](_0x2ba954);}catch(_0x4f889a){return void console['error'](_0x4f889a);}_0x112713['model']['change'](_0x3d8db5=>{for(const _0x370710 of Array['from'](_0x112713['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3d8db5['removeMarker'](_0x370710);}),_0x5f174f['isReady']=!0x1,_0x112713['model']['enqueueChange'](_0x5ba06a=>{_0x5ba06a['setSelection'](null),_0x5ba06a['removeSelectionAttribute'](_0x112713['model']['document']['selection']['getAttributeKeys']());const _0x32d0c2=Object['keys'](_0x177110);for(const _0x481212 of _0x112713['model']['document']['roots'])'$graveyard'!=_0x481212['rootName']&&_0x481212['isAttached']()&&!_0x32d0c2['includes'](_0x481212['rootName'])&&_0x5ba06a['detachRoot'](_0x481212);for(const _0x5249d1 of _0x32d0c2){let _0x1a9995=_0x112713['model']['document']['getRoot'](_0x5249d1);_0x1a9995&&_0x1a9995['isAttached']()||(_0x1a9995=_0x5ba06a['addRoot'](_0x5249d1));const _0x514b83=_0x1e8515[_0x5249d1],_0x260d1e=Object['keys'](_0x514b83),_0x3e6510=_0x177110[_0x5249d1];for(const _0x21b799 of _0x1a9995['getAttributeKeys']())_0x260d1e['includes'](_0x21b799)||_0x5ba06a['removeAttribute'](_0x21b799,_0x1a9995);for(const _0xccfe29 of _0x260d1e)_0x5ba06a['setAttribute'](_0xccfe29,_0x1e8515[_0x5249d1][_0xccfe29],_0x1a9995);_0x5ba06a['remove'](_0x5ba06a['createRangeIn'](_0x1a9995)),_0x5ba06a['insert'](_0x112713['data']['parse'](_0x3e6510,_0x1a9995),_0x1a9995,0x0);}});const _0x427141=g(_0x112713['locale'],'Restored');if(_0x2ba954['name'])_0x187a6c=-0x1==_0x2ba954['name']['indexOf'](_0x427141)?_0x427141+':\x20'+_0x2ba954['name']:_0x2ba954['name'];else _0x187a6c=_0x427141+':\x20'+(_0x2ba954['createdAt']['toLocaleDateString'](_0x112713['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2ba954['createdAt']['toLocaleTimeString'](_0x112713['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2d155f['saveRevision']({'name':_0x187a6c}),_0x5f174f['isReady']=!0x0,_0x112713['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};