@ckeditor/ckeditor5-revision-history 48.0.1-alpha.0 → 48.0.1

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -20,11 +20,11 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x25f5f0,uid as _0x5b3809,Collection as _0x3b3aab,logWarning as _0x27255a,FocusTracker as _0x3b3572,KeystrokeHandler as _0xa89ba4,scrollViewportToShowTarget as _0x1d1b55,ResizeObserver as _0x5a3d16,ElementReplacer as _0x12e4d6,CKEditorError as _0x5ea1f2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3523f4,set as _0x46f2a1,unset as _0x476038,isEqual as _0x5ef3cb}from'es-toolkit/compat';import{Plugin as _0x213e3a,PendingActions as _0x42c66a,Command as _0x721afc,ElementApiMixin as _0x3b44b3,Editor as _0x5d0872}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3ee47a,getMarkerDomElement as _0x56848e,ConfirmMixin as _0x4b963f,sanitizeEditorConfig as _0x573803}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ViewContainerElement as _0x519ce2,ViewAttributeElement as _0xabb665,ViewEmptyElement as _0x534157,ViewRawElement as _0x61adb0,ViewUIElement as _0x37e8ff,ViewDocumentFragment as _0xe39782,ViewText as _0x572add,ViewElement as _0x414d4e,ModelElement as _0xda4659,ModelRange as _0x19f972,ModelPosition as _0xdbb7b7,ModelDocumentFragment as _0x8aafde,ModelText as _0x28a155}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x19dcaf,IconChevronUp as _0x39edbb,IconChevronDown as _0x53cc03,IconUndo as _0xdf67ea,IconUser as _0x5276e4,IconThreeVerticalDots as _0x4eba00}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x3a6c19,View as _0x368d7b,submitHandler as _0x1247ee,LabeledFieldView as _0x150e64,createLabeledInputText as _0x26b657,createDropdown as _0x50a3b3,ListView as _0x3948f6,ListItemView as _0x5a3c13,ButtonView as _0xe549ae,MenuBarMenuView as _0xb053f7,MenuBarMenuListView as _0x247d40,MenuBarMenuListItemView as tt,MenuBarMenuListItemButtonView as it,ContextualBalloon as st,ToolbarSeparatorView as et,IconView as nt,addListToDropdown as ot,UIModel as rt,EditorUI as at,normalizeToolbarConfig as ht,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as ft}from'luxon';class vt extends/* #__PURE__ -- @preserve */
24
- _0x25f5f0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3a33d0){super(),this['id']=_0x3a33d0['id']||_0x5b3809(),this['creator']=_0x3a33d0['creator']||null,this['authors']=_0x3a33d0['authors']||[],this['diffData']=_0x3a33d0['diffData']||null,this['toVersion']=_0x3a33d0['toVersion']||0x0,this['fromVersion']=_0x3a33d0['fromVersion']||0x0,this['set']('name',_0x3a33d0['name']||''),this['set']('createdAt',_0x3a33d0['createdAt']||new Date()),this['set']('attributes',_0x3a33d0['attributes']||{});}['setName'](_0x4592ef){this['_update']({'name':_0x4592ef});}['setAttribute'](_0x7c7621,_0x4ad7e0){const _0x165286=_0x3523f4(this['attributes']);_0x46f2a1(_0x165286,_0x7c7621,_0x4ad7e0),this['_update']({'attributes':_0x165286});}['removeAttribute'](_0x43f01c){const _0x1e4c63=_0x3523f4(this['attributes']);_0x476038(_0x1e4c63,_0x43f01c),this['_update']({'attributes':_0x1e4c63});}['_update'](_0x102a5f,_0x1be740=!0x1){let _0x2a3af0=!0x1;const _0x53bce6={'id':this['id']},_0x478027=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x87503f of _0x478027){const _0x2a75f6=_0x102a5f[_0x87503f];void 0x0!==_0x2a75f6&&_0x2a75f6!==this[_0x87503f]&&(this[_0x87503f]=_0x2a75f6,_0x53bce6[_0x87503f]=_0x2a75f6,_0x2a3af0=!0x0);}_0x2a3af0&&(_0x53bce6['authors']&&(_0x53bce6['authorsIds']=_0x53bce6['authors']['map'](_0x109871=>_0x109871['id']),delete _0x53bce6['authors']),this['fire']('_update',_0x53bce6,_0x1be740));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x22ca19=>_0x22ca19['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class gt extends _0x213e3a{['_revisions'];static get['requires'](){return[_0x3ee47a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x6ca6d3){super(_0x6ca6d3),this['_revisions']=new _0x3b3aab();}['afterInit'](){!async function(_0x40b5f3){const _0x2b4036=_0xc3c661([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x10f6ac=0xeb829,_0x2b2641=0x359e09b0,_0x1b9b12=0x35998e50^_0x2b2641,_0xe19efc=window[_0xc3c661([0x44,0x61,0x74,0x65])][_0xc3c661([0x6e,0x6f,0x77])](),_0x3f8f50=_0x40b5f3[_0xc3c661([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1884a1=new window[(_0xc3c661([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x260881=>{_0x3f8f50[_0xc3c661([0x6f,0x6e,0x63,0x65])](_0xc3c661([0x72,0x65,0x61,0x64,0x79]),_0x260881);}),_0x4dcee4={[_0xc3c661([0x6b,0x74,0x79])]:_0xc3c661([0x45,0x43]),[_0xc3c661([0x75,0x73,0x65])]:_0xc3c661([0x73,0x69,0x67]),[_0xc3c661([0x63,0x72,0x76])]:_0xc3c661([0x50,0x2d,0x32,0x35,0x36]),[_0xc3c661([0x78])]:_0xc3c661([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]),[_0xc3c661([0x79])]:_0xc3c661([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]),[_0xc3c661([0x61,0x6c,0x67])]:_0xc3c661([0x45,0x53,0x32,0x35,0x36])},_0x4bd11d=_0x3f8f50[_0xc3c661([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc3c661([0x67,0x65,0x74])](_0xc3c661([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d926f(){let _0x28ab07,_0x530c54=null,_0x4415ed=null;try{if(_0x4bd11d==_0xc3c661([0x47,0x50,0x4c]))return _0xc3c661([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28ab07=_0x1d59df(),!_0x28ab07)return _0xc3c661([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28ab07[_0xc3c661([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4415ed=_0x117c3b(_0x28ab07[_0xc3c661([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28ab07[_0xc3c661([0x6a,0x74,0x69])])),await _0x2616db()?_0x15514a()?_0x516761()?_0xc3c661([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c8f5e()?(_0x28ab07[_0xc3c661([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc3c661([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x530c54=_0x77bf3a(_0xc3c661([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b7c9()):_0xc3c661([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc3c661([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc3c661([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xc3c661([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x516761(){const _0x5fb67d=[_0xc3c661([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc3c661([0x74,0x72,0x69,0x61,0x6c])][_0xc3c661([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28ab07[_0xc3c661([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe19efc/0x3e8:0xe10*_0x1b9b12;return _0x28ab07[_0xc3c661([0x65,0x78,0x70])]<_0x5fb67d;}function _0x15514a(){const _0x30a0bd=_0x28ab07[_0xc3c661([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x30a0bd)return!0x1;if(_0x30a0bd[_0xc3c661([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc3c661([0x2a])))return!0x0;if(_0x30a0bd[_0xc3c661([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc3c661([0x52,0x48])))return!0x0;if(_0x30a0bd[_0xc3c661([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc3c661([0x52,0x52,0x48]))){if(_0x101fc3())return!0x0;if(_0x1bc8cb()||_0xc0c647())return!0x0;}return!0x1;}function _0x5c8f5e(){const _0x34eb01=_0x28ab07[_0xc3c661([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34eb01||0x0==_0x34eb01[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x529cef}=new URL(window[_0xc3c661([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34eb01[_0xc3c661([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x529cef))return!0x0;const _0x4be778=_0x529cef[_0xc3c661([0x73,0x70,0x6c,0x69,0x74])](_0xc3c661([0x2e]));return _0x34eb01[_0xc3c661([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d88bc=>_0x1d88bc[_0xc3c661([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc3c661([0x2a])))[_0xc3c661([0x6d,0x61,0x70])](_0x42f078=>_0x42f078[_0xc3c661([0x73,0x70,0x6c,0x69,0x74])](_0xc3c661([0x2e])))[_0xc3c661([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x127f9e=>_0x127f9e[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4be778[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc3c661([0x6d,0x61,0x70])](_0x350c2a=>Array(_0x4be778[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x350c2a[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc3c661([0x66,0x69,0x6c,0x6c])](_0x350c2a[0x0]===_0xc3c661([0x2a])?_0xc3c661([0x2a]):'')[_0xc3c661([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x350c2a))[_0xc3c661([0x73,0x6f,0x6d,0x65])](_0x5491d9=>_0x4be778[_0xc3c661([0x65,0x76,0x65,0x72,0x79])]((_0x2bdad8,_0x26b9a9)=>_0x5491d9[_0x26b9a9]===_0x2bdad8||_0x5491d9[_0x26b9a9]===_0xc3c661([0x2a])));}function _0x5b7c9(){return _0x530c54&&_0x4415ed?new window[(_0xc3c661([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa3e35d,_0x5d9eb6)=>{_0x530c54[_0xc3c661([0x74,0x68,0x65,0x6e])](_0xa3e35d,_0x5d9eb6),_0x4415ed[_0xc3c661([0x74,0x68,0x65,0x6e])](_0x4c0116=>{_0x4c0116!=_0xc3c661([0x56,0x61,0x6c,0x69,0x64])&&_0xa3e35d(_0x4c0116);},_0x5d9eb6);}):_0x530c54||_0x4415ed||_0xc3c661([0x56,0x61,0x6c,0x69,0x64]);}}function _0x117c3b(_0x3bf4f8,_0x3fccac){return new window[(_0xc3c661([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b3172=>{if(_0x70ab87())return _0x3b3172(_0xc3c661([0x56,0x61,0x6c,0x69,0x64]));_0x10e18f(),_0x3f8f50[_0xc3c661([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc3c661([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x234c16=!0x1;const _0x1bcaf3=_0x5b3809();function _0x258ebb(_0x195cac){return!!_0x195cac&&(typeof _0x195cac===_0xc3c661([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x195cac===_0xc3c661([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x195cac[_0xc3c661([0x74,0x68,0x65,0x6e])]===_0xc3c661([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x195cac[_0xc3c661([0x63,0x61,0x74,0x63,0x68])]===_0xc3c661([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f69f0(_0x3429a5){_0x467297(_0x3429a5)[_0xc3c661([0x74,0x68,0x65,0x6e])](_0x313dbb=>{if(!_0x313dbb||_0x313dbb[_0xc3c661([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc3c661([0x6f,0x6b]))return _0xc3c661([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51b248(_0x54f787(_0x1bcaf3+_0x3fccac))!=_0x313dbb[_0xc3c661([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc3c661([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc3c661([0x56,0x61,0x6c,0x69,0x64]);})[_0xc3c661([0x74,0x68,0x65,0x6e])](_0x3c75a2=>(_0x507eae(),_0x3c75a2),()=>{const _0x1c07b1=_0x31545f();return null==_0x1c07b1?(_0x507eae(),_0xc3c661([0x56,0x61,0x6c,0x69,0x64])):_0xc3c661(_0xe19efc-_0x1c07b1>(0x11928db0^_0x2b2641)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc3c661([0x74,0x68,0x65,0x6e])](_0x3b3172)[_0xc3c661([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b3172(_0xc3c661([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f55f6=0x35a8e730^_0x2b2641;function _0x507eae(){const _0x6587a6=_0xc3c661([0x6c,0x6c,0x63,0x74,0x2d])+_0x51b248(_0x54f787(_0x3bf4f8)),_0x496fac=_0xb550e4(_0x51b248(window[_0xc3c661([0x4d,0x61,0x74,0x68])][_0xc3c661([0x63,0x65,0x69,0x6c])](_0xe19efc/_0x3f55f6)));window[_0xc3c661([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc3c661([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6587a6,_0x496fac);}function _0x31545f(){const _0x185401=_0xc3c661([0x6c,0x6c,0x63,0x74,0x2d])+_0x51b248(_0x54f787(_0x3bf4f8)),_0x3cecfa=window[_0xc3c661([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc3c661([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x185401);return _0x3cecfa?window[_0xc3c661([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb550e4(_0x3cecfa),0x10)*_0x3f55f6:null;}function _0x467297(_0x221195){return new window[(_0xc3c661([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ee53a,_0xcc568a)=>{_0x221195[_0xc3c661([0x74,0x68,0x65,0x6e])](_0x5ee53a,_0xcc568a),window[_0xc3c661([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xcc568a,0x359fdd70^_0x2b2641);});}}_0x3f8f50[_0xc3c661([0x6f,0x6e])](_0xc3c661([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x227fe7,_0xb156e9)=>{if(_0xb156e9[0x0]!=_0x3bf4f8)return _0x3b3172(_0xc3c661([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb156e9[0x1]={..._0xb156e9[0x1],[_0xc3c661([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1bcaf3};},{[_0xc3c661([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc3c661([0x68,0x69,0x67,0x68])}),_0x3f8f50[_0xc3c661([0x6f,0x6e])](_0xc3c661([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34b918=>{_0x258ebb(_0x34b918[_0xc3c661([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x234c16=!0x0,_0x4f69f0(_0x34b918[_0xc3c661([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc3c661([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc3c661([0x6c,0x6f,0x77])}),_0x1884a1[_0xc3c661([0x74,0x68,0x65,0x6e])](()=>{_0x234c16||_0x3b3172(_0xc3c661([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x70ab87(){return _0x3f8f50[_0xc3c661([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc3c661([0x76,0x69,0x65,0x77])][_0xc3c661([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc3c661([0x61,0x75,0x74,0x6f]);}function _0x10e18f(){_0x3f8f50[_0xc3c661([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc3c661([0x76,0x69,0x65,0x77])][_0xc3c661([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc3c661([0x61,0x75,0x74,0x6f]);}}function _0x77bf3a(_0xb89b9e){const _0x5c939c=[new window[(_0xc3c661([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37a045=>setTimeout(_0x37a045,0x3597377c^_0x2b2641)),_0x1884a1[_0xc3c661([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc3c661([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b69d3=>{const _0x41e57c=0x359e09b7^_0x2b2641,_0x33c917=_0x40b5f3[_0xc3c661([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5b10de(){_0x33c917[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x41e57c&&_0x3b69d3();}_0x5b10de(),_0x33c917[_0xc3c661([0x6f,0x6e])](_0xc3c661([0x61,0x64,0x64]),_0x5b10de);})),new window[(_0xc3c661([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f3b0a=>{function _0x56ce21(){for(const _0x1710bc in window)if(window[_0xc3c661([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xc3c661([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1710bc))&&window[_0x1710bc]==_0x10f6ac)return _0x1f3b0a();_0x3f8f50[_0xc3c661([0x73,0x74,0x61,0x74,0x65])]!=_0xc3c661([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xc3c661([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56ce21,0x359e1a38^_0x2b2641);}_0x5345cc(_0xc3c661([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x56ce21();})];return window[_0xc3c661([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc3c661([0x72,0x61,0x63,0x65])](_0x5c939c)[_0xc3c661([0x74,0x68,0x65,0x6e])](()=>_0xb89b9e);}async function _0x49dd3b(){if(await _0x1884a1,_0x5345cc(_0xc3c661([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x165e08=_0x40b5f3[_0xc3c661([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x580153=_0x40b5f3[_0xc3c661([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])](_0x165e08[_0xc3c661([0x69,0x64])]),_0x438a12=_0x2cd6a6(_0xc3c661([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x438a12[_0xc3c661([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x165e08['id'],_0x580153?_0x580153['id']:null,!0x0),_0x438a12[_0xc3c661([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xc3c661([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x438a12[_0xc3c661([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x438a12[_0xc3c661([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x360a53,void(_0x438a12[_0xc3c661([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x360a53);}if(_0x5345cc(_0xc3c661([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1cf608=_0x2cd6a6(_0xc3c661([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1cf608[_0xc3c661([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xc3c661([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1cf608[_0xc3c661([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1cf608[_0xc3c661([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x360a53,_0x1cf608[_0xc3c661([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x360a53;}_0x3f8f50[_0xc3c661([0x6d,0x6f,0x64,0x65,0x6c])][_0xc3c661([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x360a53,_0x3f8f50[_0xc3c661([0x6d,0x6f,0x64,0x65,0x6c])][_0xc3c661([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x360a53,_0x3f8f50[_0xc3c661([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc3c661([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x101fc3(){return _0x5345cc(_0xc3c661([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2cd6a6(_0xc3c661([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xc3c661([0x73,0x74,0x61,0x74,0x65])]==_0xc3c661([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1bc8cb(){return _0x5345cc(_0xc3c661([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 _0xc0c647(){return _0x5345cc(_0xc3c661([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3728bf(_0x484564){const _0xf0f1ca=_0x3b2bff();_0x3f8f50[_0xf0f1ca]=_0xc3c661([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])+_0x484564,_0x484564[_0xc3c661([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xc3c661([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3b2bff()]=_0x10f6ac),_0x484564!=_0xc3c661([0x56,0x61,0x6c,0x69,0x64])&&_0x49dd3b();}function _0x3b2bff(){const _0x5a5652=window[_0xc3c661([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc3c661([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc3c661([0x6e,0x6f,0x77])]())[_0xc3c661([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc3c661([0x2e]),'');let _0x666503=_0xc3c661([0x76]);for(let _0x5e4139=0x0;_0x5e4139<_0x5a5652[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e4139+=0x2){let _0x4ba68b=window[_0xc3c661([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a5652[_0xc3c661([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e4139,_0x5e4139+0x2));_0x4ba68b>=_0x2b4036[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ba68b-=_0x2b4036[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x666503+=_0x2b4036[_0x4ba68b];}return _0x666503;}function _0x1d59df(){const _0x3c3868=_0x4bd11d[_0xc3c661([0x73,0x70,0x6c,0x69,0x74])](_0xc3c661([0x2e]));if(0x3!=_0x3c3868[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4771fb(_0x3c3868[0x1]);function _0x4771fb(_0x47ff9f){const _0x8806de=_0x56fa31(_0x47ff9f);return _0x8806de&&_0x1bf28f()?_0x8806de:null;function _0x1bf28f(){const _0x25f06e=_0x8806de[_0xc3c661([0x6a,0x74,0x69])],_0x1a125f=window[_0xc3c661([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25f06e[_0xc3c661([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25f06e[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x583c45={..._0x8806de,[_0xc3c661([0x6a,0x74,0x69])]:_0x25f06e[_0xc3c661([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25f06e[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x583c45[_0xc3c661([0x76,0x63])],_0x54f787(_0x583c45)==_0x1a125f;}}}async function _0x2616db(){let _0x109f3a=!0x0;try{const _0x18ff34=_0x4bd11d[_0xc3c661([0x73,0x70,0x6c,0x69,0x74])](_0xc3c661([0x2e])),[_0x41fe1f,_0x1ad829,_0x1abedb]=_0x18ff34;return _0x266c0e(_0x41fe1f),await _0x491ab4(_0x41fe1f,_0x1ad829,_0x1abedb),_0x109f3a;}catch{return!0x1;}function _0x266c0e(_0x290f4a){const _0x4ef812=_0x56fa31(_0x290f4a);_0x4ef812&&_0x4ef812[_0xc3c661([0x61,0x6c,0x67])]==_0xc3c661([0x45,0x53,0x32,0x35,0x36])||(_0x109f3a=!0x1);}async function _0x491ab4(_0x23230e,_0x1830dc,_0x303abd){const _0x4307fe=window[_0xc3c661([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc3c661([0x66,0x72,0x6f,0x6d])](_0x29c5df(_0x303abd),_0x5438a8=>_0x5438a8[_0xc3c661([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fe569=new window[(_0xc3c661([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc3c661([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23230e+_0xc3c661([0x2e])+_0x1830dc),_0x1a4139=window[_0xc3c661([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc3c661([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a4139)return;const _0x2b0f55=await _0x1a4139[_0xc3c661([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc3c661([0x6a,0x77,0x6b]),_0x4dcee4,{[_0xc3c661([0x6e,0x61,0x6d,0x65])]:_0xc3c661([0x45,0x43,0x44,0x53,0x41]),[_0xc3c661([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc3c661([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc3c661([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a4139[_0xc3c661([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc3c661([0x6e,0x61,0x6d,0x65])]:_0xc3c661([0x45,0x43,0x44,0x53,0x41]),[_0xc3c661([0x68,0x61,0x73,0x68])]:{[_0xc3c661([0x6e,0x61,0x6d,0x65])]:_0xc3c661([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b0f55,_0x4307fe,_0x2fe569)||(_0x109f3a=!0x1);}}function _0x56fa31(_0x4a8a2c){return _0x4a8a2c[_0xc3c661([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc3c661([0x65,0x79]))?JSON[_0xc3c661([0x70,0x61,0x72,0x73,0x65])](_0x29c5df(_0x4a8a2c)):null;}function _0x29c5df(_0x36cdd9){return window[_0xc3c661([0x61,0x74,0x6f,0x62])](_0x36cdd9[_0xc3c661([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc3c661([0x2b]))[_0xc3c661([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc3c661([0x2f])));}function _0x54f787(_0x26cfe5){let _0x20807b=0x1505;function _0x197efc(_0x1666a9){for(let _0x5e15fd=0x0;_0x5e15fd<_0x1666a9[_0xc3c661([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e15fd++){const _0x5935c2=_0x1666a9[_0xc3c661([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5e15fd);_0x20807b=(_0x20807b<<0x5)+_0x20807b+_0x5935c2,_0x20807b&=_0x20807b;}}function _0x3d204b(_0x2b6826){Array[_0xc3c661([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b6826)?_0x2b6826[_0xc3c661([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d204b):_0x2b6826&&typeof _0x2b6826==_0xc3c661([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc3c661([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b6826)[_0xc3c661([0x73,0x6f,0x72,0x74])]()[_0xc3c661([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe0e6cc,_0x2ddab4])=>{_0x197efc(_0xe0e6cc),_0x3d204b(_0x2ddab4);}):_0x197efc(window[_0xc3c661([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b6826));}return _0x3d204b(_0x26cfe5),_0x20807b>>>0x0;}function _0x51b248(_0x467ca0){return _0x467ca0[_0xc3c661([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc3c661([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc3c661([0x30]));}function _0xb550e4(_0x181c55){return _0x181c55[_0xc3c661([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc3c661([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc3c661([0x6a,0x6f,0x69,0x6e])]('');}function _0x5345cc(_0x16cddb){return _0x3f8f50[_0xc3c661([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc3c661([0x68,0x61,0x73])](_0x16cddb);}function _0x2cd6a6(_0x28d675){return _0x3f8f50[_0xc3c661([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc3c661([0x67,0x65,0x74])](_0x28d675);}function _0x360a53(){}function _0xc3c661(_0x1ef929){return _0x1ef929['map'](_0x4010a1=>String['fromCharCode'](_0x4010a1))['join']('');}_0x3728bf(await _0x5d926f());}(this);}['createRevision'](_0x5562f2){const _0x36ebb7=this['editor']['plugins']['get']('Users');return new vt({'id':_0x5562f2['id'],'name':_0x5562f2['name'],'creator':_0x5562f2['creatorId']?_0x36ebb7['getUser'](_0x5562f2['creatorId']):null,'diffData':_0x5562f2['diffData']||_0x5562f2['data'],'authors':_0x5562f2['authorsIds']['map'](_0x1179ec=>_0x36ebb7['getUser'](_0x1179ec)),'createdAt':new Date(_0x5562f2['createdAt']),'attributes':_0x5562f2['attributes'],'fromVersion':_0x5562f2['fromVersion'],'toVersion':_0x5562f2['toVersion']});}['addRevision'](_0xbd9e0a,_0x9be10a=0x0){this['_revisions']['add'](_0xbd9e0a,_0x9be10a);}['getRevision'](_0x2730f1){return this['_revisions']['get'](_0x2730f1);}['getRevisions'](_0x43ffcb={'toJSON':!0x1}){const _0x4fa391=Array['from'](this['_revisions']);return _0x4fa391['reverse'](),_0x43ffcb['toJSON']?_0x4fa391['map'](_0x56382a=>_0x56382a['toJSON']()):_0x4fa391;}['getIndex'](_0x2a67f9){return this['_revisions']['getIndex'](_0x2a67f9);}['getEarlierVisibleRevision'](_0x28e972){const [,_0x39108a]=this['getRevisionsIterator'](_0x28e972,{'direction':'earlier'});return _0x39108a;}['getLaterVisibleRevision'](_0x22147c){const [,_0x4dc3ed]=this['getRevisionsIterator'](_0x22147c,{'direction':'later'});return _0x4dc3ed;}['getRevisionsInDiff'](_0x39dd8c){const _0x42e413=[];for(const _0x52f2ec of this['getRevisionsIterator'](_0x39dd8c['newRevisionId']))if(_0x42e413['push'](_0x52f2ec),_0x52f2ec['id']===_0x39dd8c['oldRevisionId'])break;return _0x42e413;}*['getRevisionsIterator'](_0x475603,{direction:_0x7e7ceb='earlier',filter:_0x16121a=()=>!0x0}={}){const _0x322823='earlier'===_0x7e7ceb?0x1:-0x1;let _0x43b9d9=this['_revisions']['get'](_0x475603),_0x5df5ca=this['getIndex'](_0x43b9d9);for(yield _0x43b9d9;_0x43b9d9;){if(_0x5df5ca+=_0x322823,_0x43b9d9=this['getRevision'](_0x5df5ca),!_0x43b9d9)return;_0x16121a(_0x43b9d9)&&(yield _0x43b9d9);}}}class mt extends _0x213e3a{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x519ce2,'c'],[_0xabb665,'a'],[_0x534157,'e'],[_0x61adb0,'r'],[_0x37e8ff,'u']]);['_typeCharToViewClass']=new Map([['c',_0x519ce2],['a',_0xabb665],['e',_0x534157],['r',_0x61adb0],['u',_0x37e8ff]]);async['loadRevisionData'](_0xbedb00,_0x117688){if(_0xbedb00['diffData']||!_0x117688)return;const _0x6534b0=this['editor']['config']['get']('collaboration.channelId'),_0xcd2af8=await _0x117688['getRevision']({'channelId':_0x6534b0,'revisionId':_0xbedb00['id']});_0xbedb00['diffData']=_0xcd2af8['diffData'];}['getRevisionDocumentData'](_0x2f7709){const _0xfef302={};for(const _0x435765 in _0x2f7709['diffData']){if(_0x2f7709['diffData'][_0x435765]['attachChange']&&!_0x2f7709['diffData'][_0x435765]['attachChange']['isAttached'])continue;const _0x3c1569=this['_removeRevisionMarkers'](JSON['parse'](_0x2f7709['diffData'][_0x435765]['insertions'])),_0x2c90b4=this['editor']['editing']['view']['document'],_0x34aa2e=new _0xe39782(_0x2c90b4,_0x3c1569['map'](_0x307126=>this['_getViewFromDiffObj'](_0x307126,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xfef302[_0x435765]=this['editor']['data']['processor']['toData'](_0x34aa2e),this['editor']['data']['processor']['useFillerType']('default');}return _0xfef302;}['getRevisionRootsAttributes'](_0x5d36e4){const _0x4518ab={};for(const _0x307542 in _0x5d36e4['diffData'])_0x5d36e4['diffData'][_0x307542]['attachChange']&&!_0x5d36e4['diffData'][_0x307542]['attachChange']['isAttached']||(_0x4518ab[_0x307542]=_0x5d36e4['diffData'][_0x307542]['attributesAfter']||{});return _0x4518ab;}['_getTypeCharForViewElement'](_0x2bf638){return this['_viewClassToTypeChar']['get'](_0x2bf638['constructor']);}['_getViewFromDiffObj'](_0x5b5a8c,_0x41813a){const _0x465fe5=this['editor']['editing']['view']['document'];if('string'==typeof _0x5b5a8c)return new _0x572add(_0x465fe5,_0x5b5a8c);{let _0x4646da,_0x426769;_0x426769='u'==_0x5b5a8c['type']||'r'==_0x5b5a8c['type']?[]:_0x5b5a8c['children']['map'](_0x5432b2=>this['_getViewFromDiffObj'](_0x5432b2,_0x41813a));const _0x1efc12=this['_typeCharToViewClass']['get'](_0x5b5a8c['type'])||_0x414d4e,_0x1759e9=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4646da=new _0x1efc12(_0x465fe5,_0x5b5a8c['name'],_0x5b5a8c['attributes'],_0x426769),'u'==_0x5b5a8c['type']&&_0x5b5a8c['children'][0x0]){const _0x441388=_0x5b5a8c['children'][0x0];if(_0x4646da['render']=function(_0x3194d7){const _0x165294=_0x3194d7['createElement']('div');return _0x165294['innerHTML']=_0x441388,_0x165294['childNodes'][0x0];},_0x41813a){const _0x284052=new _0xe39782(_0x465fe5);_0x284052['_appendChild'](_0x4646da);const _0x39784b=Array['from'](_0x1759e9['viewChildrenToDom'](_0x284052,{'bind':!0x1})),_0x551b38=_0x1759e9['domDocument']['createElement']('div');_0x551b38['append'](..._0x39784b),_0x4646da=Array['from'](_0x1759e9['domChildrenToView'](_0x551b38))[0x0];}}else{if('r'==_0x5b5a8c['type']&&_0x5b5a8c['children'][0x0]){const _0x2b5965=_0x5b5a8c['children'][0x0];if(_0x4646da['render']=function(_0x50ebe8){_0x50ebe8['innerHTML']=_0x2b5965;},_0x41813a){const _0x4b7b1d=new _0xe39782(_0x465fe5);_0x4b7b1d['_appendChild'](_0x4646da);const _0x3557a5=Array['from'](_0x1759e9['viewChildrenToDom'](_0x4b7b1d,{'bind':!0x1})),_0x2275e7=_0x1759e9['domDocument']['createElement']('div');_0x2275e7['append'](..._0x3557a5);const _0x28f8f8=Array['from'](_0x1759e9['domChildrenToView'](_0x2275e7));_0x28f8f8['length']>0x1?_0x4646da['_appendChild'](_0x28f8f8):_0x4646da=_0x28f8f8[0x0];}}}if(_0x5b5a8c['customProperties']){for(const [_0x653ebd,_0x425efb]of _0x5b5a8c['customProperties'])_0x4646da['_setCustomProperty'](_0x653ebd,_0x425efb);}const _0x47cb0d=void 0x0===_0x5b5a8c['fillerOffset']?null:_0x5b5a8c['fillerOffset'];return null!==_0x47cb0d&&(_0x4646da['getFillerOffset']=()=>_0x47cb0d),_0x4646da;}}['_makeModelFromViewString'](_0xcaa544){const _0x1e5556=JSON['parse'](_0xcaa544),_0x5c2e5c=this['editor']['editing']['view']['document'],_0x3d0f12=new _0xe39782(_0x5c2e5c,_0x1e5556['map'](_0x4398ac=>this['_getViewFromDiffObj'](_0x4398ac,!0x0)));return this['editor']['data']['toModel'](_0x3d0f12);}['_removeRevisionMarkers'](_0x14224f){return(_0x14224f=_0x14224f['filter'](_0x2da7b3=>!_0x2da7b3['name']||'revision-start'!==_0x2da7b3['name']&&'revision-end'!==_0x2da7b3['name']))['forEach'](_0x5028a4=>{'string'!=typeof _0x5028a4&&(_0x5028a4['children']=this['_removeRevisionMarkers'](_0x5028a4['children']),_0x5028a4['attributes']=_0x5028a4['attributes']['filter'](_0x1836d4=>!_0x1836d4[0x0]['startsWith']('data-revision-')));}),_0x14224f;}}function wt(_0x156539,_0x35b3a3,_0x1b58da){const t=_0x156539['t'];switch(_0x35b3a3){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'},_0x1b58da);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1b58da);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 pt extends _0x213e3a{['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[_0x3ee47a,gt,mt,_0x42c66a];}constructor(_0x55875b){super(_0x55875b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new _t(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3d436f=_0x5b3809();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3d436f},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 _0x538c02=this['repository']['getRevision'](0x0),_0x2d95ac=_0x538c02&&null===_0x538c02['creator']?_0x538c02:null;if(this['_continueCurrentRevision']=!!_0x2d95ac&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2659d2=this['_source']['getCurrentRevisionId'](),_0x58ad86=this['repository']['getRevision'](_0x2659d2);if(_0x58ad86)this['_startingVersion']=_0x58ad86['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xeacad=this['_source']['history']['_operations']['find'](_0x1d6492=>!_0x1d6492['_isInit']),_0x35b11c=_0xeacad?_0xeacad['baseVersion']:this['_source']['history']['version'];_0x538c02?(_0x538c02['toVersion']<_0x35b11c&&_0x538c02['_update']({'toVersion':_0x35b11c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2d95ac['id'],this['_startingVersion']=_0x2d95ac['fromVersion']):(this['_startingVersion']=_0x538c02['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x35b11c,this['_continueCurrentRevision']=!0x1);}}else _0x2d95ac&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2d95ac['toVersion'],this['editor']['model']['document']['history']['version']),_0x2d95ac['fromVersion']===_0x2d95ac['toVersion']?(0x0!==_0x2d95ac['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2d95ac['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2d95ac['id'],this['_startingVersion']=_0x2d95ac['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',_0x45f609=>!_0x45f609),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x589a6b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x168ac5;for(const _0x59bac8 in _0x589a6b){const _0x1ed8e6=_0x59bac8,_0x55f0bd=_0x589a6b[_0x1ed8e6];if('revisionHistoryLicenseKeyValid'==_0x55f0bd||'revisionHistoryLicenseKeyInvalid'==_0x55f0bd||'revisionHistoryLicenseKeyExpired'==_0x55f0bd||'revisionHistoryLicenseKeyDomainLimit'==_0x55f0bd||'revisionHistoryLicenseKeyNotAllowed'==_0x55f0bd||'revisionHistoryLicenseKeyEvaluationLimit'==_0x55f0bd||'revisionHistoryLicenseKeyUsageLimit'==_0x55f0bd){delete _0x589a6b[_0x1ed8e6],_0x168ac5=_0x55f0bd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x168ac5&&_0x589a6b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x168ac5&&_0x589a6b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x168ac5&&_0x589a6b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x168ac5&&_0x589a6b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x168ac5&&_0x589a6b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x168ac5&&_0x589a6b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5447c6=this['repository']['getRevision'](0x0),_0x80a30f=await this['getRevisionDocumentData'](_0x5447c6),_0x26c781=await this['getRevisionRootsAttributes'](_0x5447c6);this['_replaceEditorDataWithRevisionData'](_0x80a30f,_0x26c781);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x12049a){this['_source']=_0x12049a;}async['update'](){const _0x274ff7=await this['_source']['getLatestVersion']();if(_0x274ff7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x191432=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x274ff7});_0x191432['authors']=_0x191432['authorsIds']['map'](_0x138ce0=>this['editor']['plugins']['get']('Users')['getUser'](_0x138ce0)),this['currentRevision']['_update'](_0x191432);}}async['saveRevision'](_0x107088={},_0x2d929d=null){const _0x4cc115=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2d929d>this['currentRevision']['toVersion']&&(_0x2d929d=null),null===_0x2d929d&&(_0x2d929d=await this['_source']['getLatestVersion']());const _0xeb3fe9=this['_getFromVersion'](_0x2d929d),_0x11f8a5=this['buildRevisionData']({'from':_0xeb3fe9,'to':_0x2d929d});if(this['currentRevision']['toVersion']<_0x2d929d){const _0x435fc9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2d929d,'to':_0x2d929d});_0x435fc9['authors']=[],_0x435fc9['authorsIds']=[],_0x435fc9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x435fc9,!0x0),delete _0x435fc9['authors'],_0x4cc115['push'](_0x435fc9);}_0x107088['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x107088['name']=_0x107088['name']||null,_0x107088['id']=_0x107088['id']||_0x5b3809(),_0x107088={..._0x107088,..._0x11f8a5};const _0x333ced=this['addRevisionData'](_0x107088);_0x4cc115['push'](_0x107088);const _0x392863=this['repository']['getIndex'](_0x333ced);if(0x0!==_0x392863){const _0x2df4cc=this['repository']['getRevision'](_0x392863-0x1);if(_0x2df4cc['fromVersion']!==_0x2d929d){const _0x2ce490=this['_revisionDataBuilder']['getData'](_0x2d929d,_0x2df4cc['toVersion']),_0x572148={'id':_0x2df4cc['id'],'diffData':_0x2ce490['diffData'],'authorsIds':_0x2ce490['authorsIds'],'authors':_0x2ce490['authorsIds']['map'](_0x4e1004=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e1004)),'fromVersion':_0x2d929d};_0x2df4cc===this['currentRevision']&&(_0x572148['createdAt']=new Date(_0x107088['createdAt']['getTime']()+0xa)),_0x2df4cc['_update'](_0x572148,!0x0),delete _0x572148['authors'],_0x4cc115['push'](_0x572148);}}if(this['adapter']){for(const _0x528d9d of _0x4cc115)this['_bufferUpdate'](_0x528d9d['id'],_0x528d9d,!0x0);this['sendBufferedUpdates']();}return _0x333ced;}['addRevisionData'](_0x97aaf4){const _0x365e1d=this['repository']['createRevision'](_0x97aaf4);return this['adapter']&&_0x365e1d['on']('_update',(_0x3692da,_0x5c5f45,_0x3bc7bf)=>{_0x3bc7bf||(this['_bufferUpdate'](_0x5c5f45['id'],_0x5c5f45,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x365e1d,this['_findInsertionIndex'](_0x365e1d)),_0x365e1d;}async['getRevisionDocumentData'](_0x67d15){return await this['_utils']['loadRevisionData'](_0x67d15,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x67d15);}async['getRevisionRootsAttributes'](_0x5dce14){return await this['_utils']['loadRevisionData'](_0x5dce14,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5dce14);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5505c1=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5d72fd=0x0;_0x5d72fd<_0x5505c1['length'];_0x5d72fd++){const _0x118541=_0x5505c1[_0x5d72fd];let _0x5a5174=!0x1;for(const _0x1d92ec of Object['keys'](_0x118541))void 0x0===_0x118541[_0x1d92ec]?delete _0x118541[_0x1d92ec]:'id'!==_0x1d92ec&&(_0x5a5174=!0x0);_0x5a5174||(_0x5505c1[_0x5d72fd]=null);}if(_0x5505c1=_0x5505c1['filter'](_0x538fce=>null!==_0x538fce),!_0x5505c1['length'])return;for(let _0x1177f4=0x0;_0x1177f4<_0x5505c1['length'];_0x1177f4++){const _0x4452bd=_0x5505c1[_0x1177f4];void 0x0!==_0x4452bd['fromVersion']&&void 0x0===_0x4452bd['toVersion']&&(_0x4452bd['toVersion']=this['repository']['getRevision'](_0x4452bd['id'])['toVersion']),void 0x0!==_0x4452bd['toVersion']&&void 0x0===_0x4452bd['fromVersion']&&(_0x4452bd['fromVersion']=this['repository']['getRevision'](_0x4452bd['id'])['fromVersion']);}const _0x4c99c1=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5505c1,_0x4c99c1)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xb67402=>{if(_0xb67402){for(const _0x1f1f1a of _0xb67402)this['setRevisionData']({'id':_0x1f1f1a['id'],'createdAt':_0x1f1f1a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x136a99=null,from:_0x253b8b=null,to:_0x4a9caa=null}){_0x253b8b=null!==_0x253b8b?_0x253b8b:_0x136a99['fromVersion'],_0x4a9caa=null!==_0x4a9caa?_0x4a9caa:_0x136a99['toVersion'];const _0x11d78f=this['_revisionDataBuilder']['getData'](_0x253b8b,_0x4a9caa),_0x1abb8a={'diffData':_0x11d78f['diffData'],'authorsIds':_0x11d78f['authorsIds'],'fromVersion':_0x253b8b,'toVersion':_0x4a9caa};if(!_0x136a99||_0x4a9caa!==_0x136a99['toVersion']){const _0x2ca51e=_0x4a9caa-0x1,_0x4b1bd2=this['_source']['history']['getOperation'](_0x2ca51e);_0x1abb8a['createdAt']=_0x4b1bd2&&_0x4b1bd2['createdAt']||new Date();}if(this['_loadedStateData']&&_0x253b8b===this['_loadedStateData']['fromVersion']){for(const _0x1429c9 of this['_loadedStateData']['authors'])_0x1abb8a['authorsIds']['includes'](_0x1429c9['id'])||_0x1abb8a['authorsIds']['push'](_0x1429c9['id']);}return _0x1abb8a;}['_bufferUpdate'](_0x2cf775,_0x3e8171,_0x1c3a5a){if(this['_bufferedUpdates']['has'](_0x2cf775)){const _0x2a54cc=this['_bufferedUpdates']['get'](_0x2cf775);_0x3e8171=_0x1c3a5a?{..._0x2a54cc,..._0x3e8171}:{..._0x3e8171,..._0x2a54cc};}this['_bufferedUpdates']['set'](_0x2cf775,_0x3e8171);}['setRevisionData'](_0x124cfd){const _0x38f0c7=this['repository']['getRevision'](_0x124cfd['id']);if(_0x124cfd['createdAt']&&(_0x124cfd['createdAt']=new Date(_0x124cfd['createdAt'])),_0x124cfd['authorsIds']){const _0x1fe9d2=this['editor']['plugins']['get']('Users');_0x124cfd['authors']=_0x124cfd['authorsIds']['map'](_0x3a1527=>_0x1fe9d2['getUser'](_0x3a1527));}_0x38f0c7['_update'](_0x124cfd,!0x0);}['_createInitialRevision'](_0x4590cd){const _0x36ec24=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x36ec24)this['_initialRevisionId']=_0x36ec24['id'];else{const _0x1ed611=!this['editor']['model']['document']['roots']['find'](_0x54c11a=>this['editor']['model']['hasContent'](_0x54c11a)),_0x3d62d7=this['editor']['plugins']['get']('Users')['me']['id'],_0x23b2b7=wt(this['editor']['locale'],_0x1ed611?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4590cd,'to':_0x4590cd,'id':this['_initialRevisionId'],'name':_0x23b2b7,'creatorId':_0x3d62d7});}}['_createCurrentRevision'](_0x18ca3d){const _0x39f106=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x39f106),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x18ca3d,'to':_0x18ca3d,'id':_0x39f106,'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'](_0x119418,_0x2910c3){const _0x17f787={},_0x4c7ba6={},_0x45ec11=this['editor']['config']['get']('roots')||{};for(const [_0x5d0d3a,_0x3a9bbc]of Object['entries'](_0x45ec11))_0x3a9bbc['lazyLoad']||(_0x17f787[_0x5d0d3a]=_0x3a9bbc['initialData']??'',_0x4c7ba6[_0x5d0d3a]=_0x3a9bbc['modelAttributes']||{});for(const _0x1724db of this['editor']['model']['document']['getRootNames']())_0x17f787[_0x1724db]??='',_0x4c7ba6[_0x1724db]??={};let _0x5dbc71=!0x1;const _0x31c003=Object['keys'](_0x17f787),_0xa3a358=Object['keys'](_0x119418);for(const _0x28097a of _0x31c003){if(_0x17f787[_0x28097a]!==_0x119418[_0x28097a]&&''!==_0x17f787[_0x28097a]['trim']()){_0x5dbc71=!0x0;break;}if(!_0x5ef3cb(_0x4c7ba6[_0x28097a],_0x2910c3[_0x28097a])&&Object['keys'](_0x4c7ba6[_0x28097a])['length']>0x0){_0x5dbc71=!0x0;break;}}_0x5dbc71||(_0x5dbc71=_0xa3a358['some'](_0x1585a9=>!this['editor']['model']['document']['getRoot'](_0x1585a9))),_0x5dbc71&&_0x27255a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x17f787,'editorRootsAttributes':_0x4c7ba6,'revisionData':_0x119418,'revisionRootsAttributes':_0x2910c3});for(const [_0x5d4729,_0x558c75]of Object['entries'](_0x119418))this['editor']['config']['set']('roots.'+_0x5d4729+'.initialData',_0x558c75);for(const [_0x471dca,_0x34100a]of Object['entries'](_0x2910c3))this['editor']['config']['set']('roots.'+_0x471dca+'.modelAttributes',_0x34100a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4d53b5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4d53b5['add'](wt(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xa581c2){const _0x4b30d9=this['repository']['getRevisions']();_0x4b30d9['reverse']();let _0x588ad6=0x0;for(;_0x588ad6<_0x4b30d9['length'];){const _0x16bf69=_0x4b30d9[_0x588ad6];if(_0x16bf69===this['currentRevision']){_0x588ad6++;continue;}if(_0x16bf69['id']===this['_initialRevisionId'])break;const _0x5313d4=_0xa581c2['toVersion']-_0x16bf69['toVersion']||_0xa581c2['fromVersion']-_0x16bf69['fromVersion'];if(_0x5313d4>0x0)break;if(_0x5313d4<0x0)_0x588ad6++;else{if(!_0xa581c2['creator']&&_0x16bf69['creator'])break;if(_0x16bf69['creator']||!_0xa581c2['creator']){if(_0xa581c2['createdAt']>_0x16bf69['createdAt'])break;_0x588ad6++;}else _0x588ad6++;}}return _0x588ad6;}['_getFromVersion'](_0x5119e0){const _0x284942=this['repository']['getRevisions']();_0x284942['reverse'](),_0x284942['shift']();const _0x1e34fd=_0x284942['find'](_0x2cea15=>_0x2cea15['toVersion']<=_0x5119e0)['toVersion'];return _0x1e34fd<this['_startingVersion']?this['_startingVersion']:_0x1e34fd;}['_makeRevision']({name:_0x546215,from:_0x5863d5,to:_0x4050a1,creatorId:_0xdf883f,id:_0x2e7f91}){const _0x3804f2=this['buildRevisionData']({'from':_0x5863d5,'to':_0x4050a1});_0x3804f2['name']=_0x546215,_0x3804f2['creatorId']=_0xdf883f,_0x3804f2['id']=_0x2e7f91;const _0x2fde24=this['addRevisionData'](_0x3804f2);return this['adapter']&&this['_bufferUpdate'](_0x3804f2['id'],_0x3804f2,!0x0),_0x2fde24;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class _t{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x546161){this['editor']=_0x546161,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'](_0x480534){this['source']=_0x480534;const _0x3672f3=new Map(),_0x4e62d5=new Map(),_0x1363ac=this['editor']['model']['document']['roots']['map'](_0x5b8baf=>_0x5b8baf['rootName']);for(const _0x1d92bf of _0x1363ac){const _0x1d54ec=this['editor']['model']['document']['getRoot'](_0x1d92bf),_0x3376ce=yt(_0x1d54ec);_0x3672f3['set'](_0x1d92bf,_0x3376ce),_0x4e62d5['set'](_0x1d92bf,Object['fromEntries'](_0x1d54ec['getAttributes']()));}const _0x10297b=Array['from'](this['editor']['model']['markers'])['map'](_0x5e240d=>[_0x5e240d['name'],_0x5e240d['getRange']()]),_0x547768=this['source']['version'];this['_saveMetaData'](_0x547768,_0x3672f3,_0x10297b,_0x4e62d5),this['_startingRevisionId']=this['_revisionId'];const _0x160b5d=new Map(),_0x4faf0b=new Map();for(const _0x25db66 of _0x1363ac){const _0x576165=bt(_0x25db66);_0x160b5d['set'](_0x25db66,_0x576165),_0x4faf0b['set'](_0x25db66,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x160b5d,[],_0x4faf0b);}['getData'](_0x396a36,_0x10a984){if(this['_lastFrom']===_0x396a36&&this['_lastTo']<=_0x10a984)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x10a984,!0x0);else{if(!this['_savedMetaData']['has'](_0x396a36)){const _0x1953e9=this['_getPreviousFrom'](_0x396a36);this['_calculateMetaData'](_0x1953e9,_0x396a36,!0x1);}this['_calculateMetaData'](_0x396a36,_0x10a984,!0x0);}return this['_lastFrom']=_0x396a36,this['_lastTo']=_0x10a984,this['_getState']();}['loadState'](_0x5a4dc8){if(!this['_savedMetaData']['has'](_0x5a4dc8['fromVersion'])){const _0x1462f5=this['_getPreviousFrom'](_0x5a4dc8['fromVersion']);this['_calculateMetaData'](_0x1462f5,_0x5a4dc8['fromVersion'],!0x1);}this['_calculateMetaData'](_0x5a4dc8['fromVersion'],_0x5a4dc8['toVersion'],!0x1);const _0x394add=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5a4dc8['fromVersion'],this['_lastTo']=_0x5a4dc8['toVersion'];for(const _0x17e7eb in _0x5a4dc8['diffData']){const _0x5db163=_0x5a4dc8['diffData'][_0x17e7eb]['attachChange'],_0x5a79aa=_0x3523f4(_0x5a4dc8['diffData'][_0x17e7eb]['attributesBefore'])||{},_0x4234cf=_0x394add['_makeModelFromViewString'](_0x5a4dc8['diffData'][_0x17e7eb]['deletions']);_0x4234cf['rootName']=_0x17e7eb,_0x4234cf['_isAttached']=!_0x5db163||!_0x5db163['isAttached'],_0x4234cf['isAttached']=()=>_0x4234cf['_isAttached'],this['_baseRoots']['set'](_0x17e7eb,_0x4234cf),this['_baseRootsAttributes']['set'](_0x17e7eb,_0x5a79aa),_0x5db163&&this['_touchedRoots']['set'](_0x17e7eb,_0x5db163);const _0x438d37=this['_makeIdsRoot'](_0x4234cf);this['_baseIdsRoots']['set'](_0x17e7eb,_0x438d37);for(const [_0x4b8d2b,_0x119174]of _0x4234cf['markers']){if(!_0x4b8d2b['startsWith']('revision:'))continue;const _0x3882d6=_0x4b8d2b['split'](':')[0x2];for(const _0x4ffcd7 of _0x119174['getWalker']({'singleCharacters':!0x0})){const _0xeb9505=this['_getVidAttributeName'](_0x4ffcd7),_0x2c67b2='elementEnd'==_0x4ffcd7['type']?_0x4ffcd7['previousPosition']['path']['slice'](0x0,-0x1):_0x4ffcd7['previousPosition']['path'],_0x4c3d26=_0x438d37['getNodeByPath'](_0x2c67b2)['getAttribute'](_0xeb9505);this['_touched']['set'](_0x4c3d26,{'userId':_0x3882d6});}_0x4234cf['markers']['delete'](_0x4b8d2b);}}this['_startingRevisionId']=this['_revisionId'];const _0x247b48=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2a1a51=>!this['_touched']['has'](_0x2a1a51));let _0x31caa2=0x0;const _0x2b9188=new Map();for(const _0x21995b in _0x5a4dc8['diffData']){const _0x26afe2=_0x5a4dc8['diffData'][_0x21995b]['attachChange'],_0x1c3edd=_0x3523f4(_0x5a4dc8['diffData'][_0x21995b]['attributesAfter'])||{},_0x7ec71e=_0x394add['_makeModelFromViewString'](_0x5a4dc8['diffData'][_0x21995b]['insertions']);_0x7ec71e['rootName']=_0x21995b,_0x7ec71e['_isAttached']=!_0x26afe2||_0x26afe2['isAttached'],_0x7ec71e['isAttached']=()=>_0x7ec71e['_isAttached'],this['_diffRoots']['set'](_0x21995b,_0x7ec71e),this['_diffRootsAttributes']['set'](_0x21995b,_0x1c3edd);const _0xd46038=this['_makeIdsRoot'](_0x7ec71e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x21995b,_0xd46038),_0x2b9188['set'](_0x21995b,_0x7ec71e['isAttached']()?_0x1c3edd:{});for(const [_0x4a2d7d,_0x442c9c]of _0x7ec71e['markers']){if(!_0x4a2d7d['startsWith']('revision:'))continue;const _0xf2c5a0=_0x4a2d7d['split'](':')[0x2];for(const _0x9d84c0 of _0x442c9c['getWalker']({'singleCharacters':!0x0})){const _0xcffa19=this['_getVidAttributeName'](_0x9d84c0),_0x3f65bd=this['_revisionId']++,_0x3d91ce='elementEnd'==_0x9d84c0['type']?_0x9d84c0['previousPosition']['path']['slice'](0x0,-0x1):_0x9d84c0['previousPosition']['path'];_0xd46038['getNodeByPath'](_0x3d91ce)['_setAttribute'](_0xcffa19,_0x3f65bd),this['_touched']['set'](_0x3f65bd,{'userId':_0xf2c5a0});}_0x7ec71e['markers']['delete'](_0x4a2d7d);}for(const _0x47597a of this['editor']['model']['createRangeIn'](_0x7ec71e)['getWalker']({'singleCharacters':!0x0})){const _0x60bef5=this['_getVidAttributeName'](_0x47597a),_0x122797='elementEnd'==_0x47597a['type']?_0x47597a['previousPosition']['path']['slice'](0x0,-0x1):_0x47597a['previousPosition']['path'],_0x42bd15=_0xd46038['getNodeByPath'](_0x122797);_0x42bd15['getAttribute'](_0x60bef5)>0x0||_0x42bd15['_setAttribute'](_0x60bef5,_0x247b48[_0x31caa2++]);}for(const [_0x532de5,_0x5696fb]of _0x7ec71e['markers'])_0x532de5['startsWith']('revision:')||this['_markers']['set'](_0x532de5,_0x5696fb);}const {roots:_0x4fc79f}=this['_savedMetaData']['get'](_0x5a4dc8['fromVersion']),{roots:_0x5c7005}=this['_savedMetaData']['get'](_0x5a4dc8['toVersion']),_0x566889=yt(_0x4fc79f['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x566889),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x566889,Number['NEGATIVE_INFINITY']));const _0x322520=yt(_0x5c7005['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x322520),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x322520));const _0xd9c798=Array['from'](this['_diffRoots'])['map'](([_0x36ca6e,_0x101110])=>[_0x36ca6e,yt(_0x101110)]);this['_saveMetaData'](this['_lastTo'],_0xd9c798,this['_markers'],_0x2b9188);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x36c0f7,_0x3337db,_0x4dcb18,_0x4b4e04){const _0x22913f=new Map(_0x3337db),_0xa611a4=new Map(_0x3523f4(_0x4b4e04)),_0x5b7225=new Map();for(const [_0x2bbcb8,_0x3f8462]of _0x4dcb18)_0x5b7225['set'](_0x2bbcb8,{'start':_0x3f8462['start']['clone'](),'end':_0x3f8462['end']['clone'](),'rootName':_0x3f8462['root']['rootName']});this['_savedMetaData']['set'](_0x36c0f7,{'roots':_0x22913f,'markers':_0x5b7225,'rootsAttributes':_0xa611a4});}['_removeMetaData'](_0x33a7b7){this['_savedMetaData']['delete'](_0x33a7b7);}['_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'](_0x256d94,_0xb3ddf=null){let _0x205e44=null;_0x256d94['is']('documentFragment')||(_0x205e44=new _0xda4659(_0x256d94['name'],{'vid_start':null===_0xb3ddf?this['_revisionId']++:_0xb3ddf++}));const _0x2cba03=[];for(const _0xf11705 of _0x256d94['getChildren']())if(_0xf11705['is']('element')){_0x2cba03['push'](this['_makeIdsRoot'](_0xf11705,_0xb3ddf));const _0x16d1c1=_0x2cba03[_0x2cba03['length']-0x1];null!==_0xb3ddf&&(_0xb3ddf=_0x16d1c1['is']('element','$text')?_0x16d1c1['getAttribute']('vid')+0x1:_0x16d1c1['getAttribute']('vid_end')+0x1);}else{for(let _0x434222=0x0;_0x434222<_0xf11705['offsetSize'];_0x434222++)_0x2cba03['push'](new _0xda4659('$text',{'vid':null===_0xb3ddf?this['_revisionId']++:_0xb3ddf++}));}if(_0x256d94['is']('documentFragment')){const _0x27b8ce=bt(_0x256d94['rootName']);return _0x27b8ce['_insertChild'](0x0,_0x2cba03),_0x27b8ce;}return _0x205e44['_setAttribute']('vid_end',null===_0xb3ddf?this['_revisionId']++:_0xb3ddf++),_0x205e44['_insertChild'](0x0,_0x2cba03),_0x205e44;}['_calculateMetaData'](_0x2dc7ff,_0x404df3,_0x552c9f){this['_reset']();const {roots:_0x3bb0e7,markers:_0xb8c34f,rootsAttributes:_0x48801d}=this['_savedMetaData']['get'](_0x2dc7ff);this['_baseRoots']=new Map(_0x3bb0e7),this['_baseRootsAttributes']=new Map(_0x3523f4(_0x48801d));for(const [_0x3dd383,_0x13fa86]of this['_baseRoots'])if('$graveyard'!==_0x3dd383&&(this['_diffRoots']['set'](_0x3dd383,yt(_0x13fa86)),this['_diffRootsAttributes']=new Map(_0x3523f4(_0x48801d)),_0x552c9f)){const _0x345262=this['_revisionId'];this['_idsRoots']['set'](_0x3dd383,this['_makeIdsRoot'](_0x13fa86)),this['_baseIdsRoots']['set'](_0x3dd383,this['_makeIdsRoot'](_0x13fa86,_0x345262));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',yt(this['_baseRoots']['get']('$graveyard'))),_0x552c9f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x44b3cb,_0x2c312a]of _0xb8c34f){const _0x1a1fcf=this['_baseRoots']['get'](_0x2c312a['rootName']),_0x28d0b2=this['_diffRoots']['get'](_0x2c312a['rootName']),_0x3a9967=new _0x19f972(this['_fixPosition'](_0x2c312a['start'],_0x1a1fcf),this['_fixPosition'](_0x2c312a['end'],_0x1a1fcf)),_0x1677e5=this['_fixRange'](_0x3a9967,_0x28d0b2);_0x1a1fcf['markers']['set'](_0x44b3cb,_0x3a9967),this['_markers']['set'](_0x44b3cb,_0x1677e5);}this['_applyOperations'](_0x2dc7ff,_0x404df3,_0x552c9f);}['_applyOperations'](_0x2b4d36,_0x561139,_0x13ed59){for(const _0x23e3f5 of this['source']['getOperations'](_0x2b4d36,_0x561139))this['_handleOperation'](_0x23e3f5,_0x13ed59);for(const _0x4e2722 of this['_diffRoots']['values']())_0x4e2722['markers']['clear']();for(const [_0x443011,_0x3e4a16]of this['_markers']){this['_diffRoots']['get'](_0x3e4a16['root']['rootName'])['markers']['set'](_0x443011,_0x3e4a16['clone']());}const _0x1213ba=new Map(),_0x302bcc=new Map();for(const [_0x21732f,_0x1feda3]of this['_diffRoots'])_0x1213ba['set'](_0x21732f,yt(_0x1feda3)),_0x302bcc['set'](_0x21732f,this['_diffRootsAttributes']['get'](_0x21732f));this['_saveMetaData'](_0x561139,_0x1213ba,this['_markers'],_0x302bcc);}['_getPreviousFrom'](_0x4e0f53){const _0x30b2b1=Array['from'](this['_savedMetaData']['keys']());_0x30b2b1['sort']((_0x19e22b,_0x17a55b)=>_0x19e22b-_0x17a55b),_0x30b2b1['reverse']();for(const _0x21b653 of _0x30b2b1)if(_0x21b653<_0x4e0f53)return _0x21b653;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3643cc,_0x21496f){const _0x10c3e5=Array['from'](_0x21496f['markers'])['map'](([_0x5a4836,_0x483a3a])=>[_0x5a4836,this['_fixRange'](_0x483a3a,_0x3643cc)]);_0x3643cc['markers']=new Map(_0x10c3e5);}['_transformMarkers'](_0x4010be){for(const _0x8211b2 of this['_markers']['values']()){const _0x35fe35=_0x8211b2['getTransformedByOperation'](_0x4010be),_0x3242c8=_0x19f972['_createFromRanges'](_0x35fe35);_0x8211b2['start']=_0x3242c8['start'],_0x8211b2['end']=_0x3242c8['end'];}}['_handleOperation'](_0x797206,_0x231ada){if('addRoot'!=_0x797206['type']&&'detachRoot'!=_0x797206['type']){if('insert'==_0x797206['type']){const _0x433961=_0x797206['position']['root']['rootName'];this['_diffRoots']['has'](_0x433961)||(this['_diffRoots']['set'](_0x433961,bt(_0x433961,!0x0)),this['_diffRootsAttributes']['set'](_0x433961,{}),_0x231ada&&this['_idsRoots']['set'](_0x433961,bt(_0x433961,!0x0)));}else{if('addRootAttribute'==_0x797206['type']||'removeRootAttribute'==_0x797206['type']||'changeRootAttribute'==_0x797206['type'])return void this['_handleRootAttributeOperation'](_0x797206);'marker'==_0x797206['type']&&this['_handleMarkerOperation'](_0x797206);}if('marker'!==_0x797206['type']){const _0x272758=this['_cloneOperation'](_0x797206,this['_diffRoots']);_0x272758['_execute'](),this['_transformMarkers'](_0x272758);}if(_0x231ada)switch(_0x797206['type']){case'insert':this['_handleInsertOperation'](_0x797206);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x797206);break;case'merge':this['_handleMergeOperation'](_0x797206);break;case'split':this['_handleSplitOperation'](_0x797206);}}else this['_handleRootOperation'](_0x797206,_0x231ada);}['_cloneOperation'](_0x3a59d7,_0x1f1fb3){const _0x504350=_0x3a59d7['clone']();return _0x504350['_authorId']=_0x3a59d7['_authorId'],this['_fixOperation'](_0x504350,_0x1f1fb3),_0x504350;}['_getBaseVids'](_0x1e68c8){return _0x1e68c8['map'](_0x385498=>{const _0x270347=this['_getVidAttributeName'](_0x385498);return Number(_0x385498['item']['getAttribute'](_0x270347));});}['_generateTape'](_0x417a36,_0x4eb18c){if(_0x417a36['is']('element','$text'))_0x4eb18c['push']({'item':_0x417a36,'type':'text'});else{_0x417a36['is']('element')&&_0x4eb18c['push']({'item':_0x417a36,'type':'elementStart'});for(const _0x2b8649 of _0x417a36['getChildren']())this['_generateTape'](_0x2b8649,_0x4eb18c);_0x417a36['is']('element')&&_0x4eb18c['push']({'item':_0x417a36,'type':'elementEnd'});}return _0x4eb18c;}['_getState'](){const _0x318b30=new Map(this['_touched']),_0x34c5ff=new Map(_0x318b30),_0x1a2aee=new Map(),_0x309c9d={'insertions':{},'deletions':{}},_0x4a3f3f={'insertions':{},'deletions':{}},_0x4b7e3a=new Map(),_0x13d68a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x13d68a['delete']('$graveyard');for(const _0x22e409 of _0x13d68a){const _0x16a1f2=this['_diffRoots']['get'](_0x22e409)||bt(_0x22e409,!0x1),_0x4d281d=this['_baseRoots']['get'](_0x22e409)||bt(_0x22e409,!0x1);_0x16a1f2['isAttached']()||_0x4d281d['isAttached']()?(_0x309c9d['insertions'][_0x22e409]=yt(_0x16a1f2),_0x309c9d['deletions'][_0x22e409]=yt(_0x4d281d),this['_copyMarkers'](_0x309c9d['deletions'][_0x22e409],_0x4d281d),this['_copyMarkers'](_0x309c9d['insertions'][_0x22e409],_0x16a1f2),_0x4a3f3f['insertions'][_0x22e409]=this['_generateTape'](this['_idsRoots']['get'](_0x22e409),[]),_0x4a3f3f['deletions'][_0x22e409]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x22e409)||bt(_0x22e409,!0x1),[])):_0x13d68a['delete'](_0x22e409);}for(const _0x12e602 of _0x13d68a){const _0xd71537=_0x4a3f3f['insertions'][_0x12e602];for(const _0x5125d0 of _0xd71537){const _0x4e5f7d=this['_getVidAttributeName'](_0x5125d0),_0x31316e=_0x5125d0['item']['getAttribute'](_0x4e5f7d);_0x34c5ff['delete'](_0x31316e),_0x31316e>=this['_startingRevisionId']&&_0x1a2aee['set'](_0x31316e,_0x318b30['get'](_0x31316e));}}for(const _0x24a9fb of _0x13d68a){const _0xf71659=_0x4a3f3f['insertions'][_0x24a9fb],_0x4aeb3f=this['_getBaseVids'](_0x4a3f3f['deletions'][_0x24a9fb]);let _0x1b99ce=0x0;for(const _0x55d934 of _0xf71659){const _0x10d20e=this['_getVidAttributeName'](_0x55d934),_0x402699=_0x55d934['item']['getAttribute'](_0x10d20e);if(!_0x1a2aee['has'](_0x402699)&&!_0x4b7e3a['has'](_0x402699)){if(_0x34c5ff['has'](_0x402699))_0x1b99ce++;else{if(_0x402699!=_0x4aeb3f[_0x1b99ce]){const _0x2a88fe=_0x318b30['get'](_0x402699)||_0x318b30['get'](_0x4aeb3f[_0x1b99ce]);for(;_0x402699!=_0x4aeb3f[_0x1b99ce];)_0x34c5ff['has'](_0x4aeb3f[_0x1b99ce])||(_0x4b7e3a['set'](_0x4aeb3f[_0x1b99ce],_0x2a88fe),_0x318b30['set'](_0x4aeb3f[_0x1b99ce],_0x2a88fe)),_0x1b99ce++;}_0x1b99ce++;}}}}for(const _0x36f99c of _0x13d68a){const _0x2b0d36=_0x4a3f3f['insertions'][_0x36f99c];for(const _0x4ff60b of _0x2b0d36){const _0x15104f=this['_getVidAttributeName'](_0x4ff60b),_0x29a4ba=_0x4ff60b['item']['getAttribute'](_0x15104f);if(_0x4b7e3a['has'](_0x29a4ba)){const _0x15da2c=_0x4b7e3a['get'](_0x29a4ba);_0x34c5ff['has'](_0x29a4ba)||_0x34c5ff['set'](_0x29a4ba,{..._0x15da2c}),_0x1a2aee['set'](_0x29a4ba,{..._0x15da2c});}}}for(const _0x5459de of _0x34c5ff['keys']())_0x5459de>=this['_startingRevisionId']&&_0x34c5ff['delete'](_0x5459de);const _0xa67044=new Map();for(const _0x3fcddb of _0x13d68a){let _0x3bc6a1=_0x4a3f3f['insertions'][_0x3fcddb];for(const _0x4fcaa9 of _0x3bc6a1)if(_0x4fcaa9['item']['is']('element','tableCell')){const _0x238df2=this['_getVidAttributeName'](_0x4fcaa9),_0x181f86=_0x4fcaa9['item']['getAttribute'](_0x238df2);if(_0x1a2aee['has'](_0x181f86)){const _0x281699=_0x4fcaa9['item']['parent']['parent']['getAttribute']('vid_start'),_0x46bdc2=_0xa67044['get'](_0x281699)||new Set();_0x46bdc2['add'](_0x1a2aee['get'](_0x181f86)['userId']),_0xa67044['set'](_0x281699,_0x46bdc2);}}_0x3bc6a1=_0x4a3f3f['deletions'][_0x3fcddb];for(const _0xddf660 of _0x3bc6a1)if(_0xddf660['item']['is']('element','tableCell')){const _0x57836d=this['_getVidAttributeName'](_0xddf660),_0x2da8ac=_0xddf660['item']['getAttribute'](_0x57836d);if(_0x34c5ff['has'](_0x2da8ac)){const _0x51dbca=_0xddf660['item']['parent']['parent']['getAttribute']('vid_start'),_0x159e14=_0xa67044['get'](_0x51dbca)||new Set();_0x159e14['add'](_0x34c5ff['get'](_0x2da8ac)['userId']),_0xa67044['set'](_0x51dbca,_0x159e14);}}for(const _0x5d9966 of _0xa67044['keys']())(_0x1a2aee['has'](_0x5d9966)||_0x34c5ff['has'](_0x5d9966))&&_0xa67044['delete'](_0x5d9966);}for(const _0x18eb4e of _0x13d68a){const _0x427ebe=_0x4a3f3f['insertions'][_0x18eb4e];let _0x1bc7a0=null,_0x79188f=null;for(const _0x409ad9 of _0x427ebe){const _0x3fe08b=this['_getVidAttributeName'](_0x409ad9),_0x383455=_0x409ad9['item']['getAttribute'](_0x3fe08b),_0x53f3b6=_0xa67044['get'](_0x383455);_0x53f3b6&&'elementStart'==_0x409ad9['type']&&(_0x1bc7a0=Array['from'](_0x53f3b6)[0x0],_0x79188f=_0x409ad9['item']['getAttribute']('vid_end')),_0x1bc7a0&&(_0x34c5ff['set'](_0x383455,{'userId':_0x1bc7a0}),_0x1a2aee['set'](_0x383455,{'userId':_0x1bc7a0})),_0x383455==_0x79188f&&(_0x1bc7a0=null,_0x79188f=null);}}const _0x17a7ae={},_0xecc47f=new Set();for(const _0x4ba534 of _0x13d68a){const _0x47104e=_0x309c9d['deletions'][_0x4ba534],_0x601524=_0x309c9d['insertions'][_0x4ba534];for(const {userId:_0x52a1dd}of this['_touchedMarkers']['values']())null!==_0x52a1dd&&_0xecc47f['add'](_0x52a1dd);for(const {userId:_0x59b7cb}of this['_touchedRoots']['values']())null!==_0x59b7cb&&_0xecc47f['add'](_0x59b7cb);this['_markChanges'](_0x601524,_0x4a3f3f['insertions'][_0x4ba534],_0x1a2aee,'insertion',_0xecc47f),this['_markChanges'](_0x47104e,_0x4a3f3f['deletions'][_0x4ba534],_0x34c5ff,'deletion',_0xecc47f),_0x17a7ae[_0x4ba534]={'insertions':this['_prepareViewToSave'](_0x601524),'deletions':this['_prepareViewToSave'](_0x47104e),'attachChange':this['_touchedRoots']['get'](_0x4ba534)||null,'attributesBefore':_0x3523f4(this['_baseRootsAttributes']['get'](_0x4ba534))||{},'attributesAfter':_0x3523f4(this['_diffRootsAttributes']['get'](_0x4ba534))};}return{'diffData':_0x17a7ae,'authorsIds':Array['from'](_0xecc47f)};}['_processRootBeforeSave'](_0x2f893a){for(const [,_0x48a056]of _0x2f893a['markers']){const _0x204493=_0x48a056['start']['getAncestors']()['filter'](_0x48f750=>'tableCell'==_0x48f750['name']);for(const _0x307a72 of _0x204493)0x1==_0x307a72['childCount']&&_0x307a72['getChild'](0x0)['is']('element','paragraph')&&_0x307a72['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1cf3e0){this['_processRootBeforeSave'](_0x1cf3e0);const _0x48ea31=this['editor']['data']['toView'](_0x1cf3e0,{}),_0x158fd2=Array['from'](_0x48ea31['getChildren']())['map'](_0xef2a30=>this['_getViewJson'](_0xef2a30));return JSON['stringify'](_0x158fd2);}['_getViewJson'](_0x4dbd7a){if(_0x4dbd7a['is']('$text'))return _0x4dbd7a['data'];{const _0x567e56=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2684f4=_0x4dbd7a,_0x124882=this['editor']['data']['htmlProcessor']['domConverter'],_0x424641={'type':_0x567e56['_getTypeCharForViewElement'](_0x2684f4),'name':_0x2684f4['name'],'attributes':Array['from'](_0x2684f4['getAttributes']()),'children':Array['from'](_0x2684f4['getChildren']())['map'](_0x17caca=>this['_getViewJson'](_0x17caca))};if(_0x4dbd7a['is']('uiElement')&&'$comment'!=_0x4dbd7a['name']){const _0x924c8e=_0x4dbd7a['render'](_0x124882['domDocument'],_0x124882);_0x424641['children']['push'](_0x924c8e['outerHTML']);}else{if(_0x4dbd7a['is']('rawElement')){const _0x4f0595=_0x124882['domDocument']['createElement'](_0x2684f4['name']);_0x4dbd7a['render'](_0x4f0595,_0x124882),_0x424641['children']['push'](_0x4f0595['innerHTML']);}}const _0x152eef=Array['from'](_0x2684f4['getCustomProperties']());_0x152eef['length']>0x0&&(_0x424641['customProperties']=_0x152eef);const _0x41e766=_0x2684f4['getFillerOffset']();return null!==_0x41e766&&(_0x424641['fillerOffset']=_0x41e766),_0x424641;}}['_markChanges'](_0x122918,_0x47e916,_0x378140,_0x7644bb,_0x40f83a){let _0x1a264c=null,_0x476af9=null,_0x59164f=0x0;const _0x434776=this['editor']['model'];for(let _0x38d196=0x0;_0x38d196<_0x47e916['length'];_0x38d196++){const _0x1a368f=this['_getVidAttributeName'](_0x47e916[_0x38d196]),_0x21122b=_0x47e916[_0x38d196]['item']['getAttribute'](_0x1a368f),_0x2bf103=_0x378140['get'](_0x21122b),_0x5bb1dd=_0x38d196==_0x47e916['length']-0x1;(!_0x1a264c&&_0x2bf103&&(_0x1a264c=_0x2bf103,_0x476af9=_0x47e916[_0x38d196]),_0x1a264c&&(!_0x2bf103||_0x2bf103['userId']!=_0x1a264c['userId']))&&(_0x4bd7c4(_0x2bf103,Rt(_0x476af9,_0x122918,_0x434776),Rt(_0x47e916[_0x38d196],_0x122918,_0x434776)),_0x1a264c=_0x2bf103||null,_0x476af9=_0x2bf103?_0x47e916[_0x38d196]:null),_0x1a264c&&_0x5bb1dd&&_0x4bd7c4(_0x2bf103,Rt(_0x476af9,_0x122918,_0x434776),kt(_0x47e916[_0x38d196],_0x122918,_0x434776));}function _0x4bd7c4(_0x2c32bc,_0x6dec82,_0x593d27){const _0x5c6420=_0x1a264c['userId'],_0x552c24='revision:'+_0x7644bb+':'+_0x5c6420+':'+_0x59164f++,_0x195e42=_0x434776['createRange'](_0x6dec82,_0x593d27);_0x122918['markers']['set'](_0x552c24,_0x195e42),null!==_0x5c6420&&_0x40f83a['add'](_0x5c6420);}}['_getVidAttributeName'](_0x2a1734){switch(_0x2a1734['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1235e5,_0x53b7c0){_0x1235e5['baseVersion']=null;for(const _0x4ebc33 in _0x1235e5){const _0x1e1a53=_0x1235e5[_0x4ebc33];if(_0x1e1a53 instanceof _0xdbb7b7){const _0x49aea9=_0x53b7c0['get'](_0x1e1a53['root']['rootName']);_0x1235e5[_0x4ebc33]=this['_fixPosition'](_0x1e1a53,_0x49aea9);}if(_0x1e1a53 instanceof _0x19f972){const _0x36ee38=_0x53b7c0['get'](_0x1e1a53['root']['rootName']);_0x1235e5[_0x4ebc33]=this['_fixRange'](_0x1e1a53,_0x36ee38);}'root'===_0x4ebc33&&(_0x1235e5['root']=_0x53b7c0['get'](_0x1235e5['root']['rootName']));}}['_fixRange'](_0x15eb92,_0x539a4c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x15eb92['start'],_0x539a4c),this['_fixPosition'](_0x15eb92['end'],_0x539a4c));}['_fixPosition'](_0x246552,_0x1eebe7){return this['editor']['model']['createPositionFromPath'](_0x1eebe7,_0x246552['path'],_0x246552['stickiness']);}['_handleInsertOperation'](_0x4f3945){const _0x59e345=this['_idsRoots']['get'](_0x4f3945['position']['root']['rootName']),_0x13b5e8=this['_fixPosition'](_0x4f3945['position'],_0x59e345),_0x5447fa=null===_0x4f3945['_authorId']?null:_0x4f3945['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f61c0=_0x13b5e8['parent'],_0x172b0c=this['_revisionId'],_0x1044fd=[];for(const _0x88598e of _0x4f3945['nodes'])if(_0x88598e['is']('element'))_0x1044fd['push'](this['_makeIdsRoot'](_0x88598e));else{for(let _0x5e1a62=0x0;_0x5e1a62<_0x88598e['offsetSize'];_0x5e1a62++)_0x1044fd['push'](new _0xda4659('$text',{'vid':this['_revisionId']++}));}const _0x342003=this['_revisionId'];for(let _0x2b6a6c=_0x172b0c;_0x2b6a6c<_0x342003;_0x2b6a6c++)this['_touched']['set'](_0x2b6a6c,{'userId':_0x5447fa});_0x2f61c0['_insertChild'](_0x13b5e8['offset'],_0x1044fd);}['_handleMoveOperation'](_0xc83a19){(_0xc83a19=this['_cloneOperation'](_0xc83a19,this['_idsRoots']))['_execute']();const _0x3699d3=null===_0xc83a19['_authorId']?null:_0xc83a19['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xaf318a=_0xc83a19['getMovedRangeStart'](),_0x127376=_0xaf318a['parent'],_0x306243=_0xaf318a['offset'];!function _0x335d6b(_0x259f18,_0x1e9470,_0x26c90e,_0x1513db){for(let _0x1b7863=_0x26c90e;_0x1b7863<_0x1513db;_0x1b7863++){const _0x59ee03=_0x1e9470['getChild'](_0x1b7863);_0x59ee03['is']('element','$text')?_0x259f18['set'](_0x59ee03['getAttribute']('vid'),{'userId':_0x3699d3}):(_0x259f18['set'](_0x59ee03['getAttribute']('vid_start'),{'userId':_0x3699d3}),_0x335d6b(_0x259f18,_0x59ee03,0x0,_0x59ee03['childCount']),_0x259f18['set'](_0x59ee03['getAttribute']('vid_end'),{'userId':_0x3699d3}));}}(this['_touched'],_0x127376,_0x306243,_0x306243+_0xc83a19['howMany']);}['_handleMergeOperation'](_0x308f7b){const _0x6d4d50=null===(_0x308f7b=this['_cloneOperation'](_0x308f7b,this['_idsRoots']))['_authorId']?null:_0x308f7b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x536232=_0x308f7b['targetPosition']['parent'],_0x1bd0d2=_0x308f7b['sourcePosition']['parent'],_0x396d7b=_0x536232['getAttribute']('vid_end'),_0x3984bd=_0x1bd0d2['getAttribute']('vid_start');_0x536232['_setAttribute']('vid_end',_0x1bd0d2['getAttribute']('vid_end')),_0x1bd0d2['_setAttribute']('vid_end',_0x396d7b),this['_touched']['set'](_0x3984bd,{'userId':_0x6d4d50}),this['_touched']['set'](_0x396d7b,{'userId':_0x6d4d50}),_0x308f7b['_execute']();}['_handleSplitOperation'](_0x1aa459){const _0x4edb62=null===(_0x1aa459=this['_cloneOperation'](_0x1aa459,this['_idsRoots']))['_authorId']?null:_0x1aa459['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x343f7c=_0x1aa459['graveyardPosition'],_0x28bd3d=_0x1aa459['splitPosition']['parent'];_0x1aa459['_execute']();const _0x42868d=_0x28bd3d['getAttribute']('vid_end'),_0x2e06aa=_0x1aa459['insertionPosition']['nodeAfter'];if(_0x343f7c){const _0x57218e=_0x2e06aa['getAttribute']('vid_end'),_0x5be2ab=_0x28bd3d['getAttribute']('vid_end');_0x28bd3d['_setAttribute']('vid_end',_0x57218e),_0x2e06aa['_setAttribute']('vid_end',_0x5be2ab),this['_touched']['set'](_0x28bd3d['getAttribute']('vid_end'),{'userId':_0x4edb62}),this['_touched']['set'](_0x2e06aa['getAttribute']('vid_start'),{'userId':_0x4edb62});}else{const _0x117e2a=this['_revisionId']++,_0x415f62=this['_revisionId']++;_0x28bd3d['_setAttribute']('vid_end',_0x117e2a),_0x2e06aa['_setAttribute']('vid_start',_0x415f62),_0x2e06aa['_setAttribute']('vid_end',_0x42868d),this['_touched']['set'](_0x117e2a,{'userId':_0x4edb62}),this['_touched']['set'](_0x415f62,{'userId':_0x4edb62});}}['_handleMarkerOperation'](_0x4fafeb){if(!_0x4fafeb['affectsData'])return;const _0x30dcfa=(_0x4fafeb=this['_cloneOperation'](_0x4fafeb,this['_diffRoots']))['oldRange']?_0x4fafeb['oldRange']['root']:null,_0x324ea3=_0x4fafeb['newRange']?_0x4fafeb['newRange']['root']:null;_0x30dcfa&&this['_markers']['delete'](_0x4fafeb['name']),_0x324ea3&&this['_markers']['set'](_0x4fafeb['name'],_0x4fafeb['newRange']['clone']());const _0x2dde49=null===_0x4fafeb['_authorId']?null:_0x4fafeb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf8a915=_0x4fafeb['name'];if(!this['_touchedMarkers']['has'](_0xf8a915))return void this['_touchedMarkers']['set'](_0xf8a915,{'range':_0x4fafeb['oldRange'],'userId':_0x2dde49});const _0x4ee328=this['_touchedMarkers']['get'](_0xf8a915),_0x537c78=_0x4ee328['range'],_0x38ae34=_0x4fafeb['newRange'];null==_0x537c78&&null==_0x38ae34||_0x537c78&&_0x38ae34&&_0x537c78['isEqual'](_0x38ae34)?this['_touchedMarkers']['delete'](_0x4fafeb['name']):_0x4ee328['userId']=_0x2dde49;}['_handleRootOperation'](_0x4df003,_0x227a0b){this['_diffRoots']['has'](_0x4df003['rootName'])?this['_diffRoots']['get'](_0x4df003['rootName'])['_isAttached']=_0x4df003['isAdd']:(this['_diffRoots']['set'](_0x4df003['rootName'],bt(_0x4df003['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4df003['rootName'],{}),_0x227a0b&&this['_idsRoots']['set'](_0x4df003['rootName'],bt(_0x4df003['rootName'],!0x0)));const _0x366557=null===_0x4df003['_authorId']?null:_0x4df003['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c18ef=this['_touchedRoots']['get'](_0x4df003['rootName']);_0x1c18ef&&_0x1c18ef['userId']===_0x366557?this['_touchedRoots']['delete'](_0x4df003['rootName']):this['_touchedRoots']['set'](_0x4df003['rootName'],{'userId':_0x366557,'isAttached':_0x4df003['isAdd']});}['_handleRootAttributeOperation'](_0xd1da49){const _0x126e38=this['_diffRootsAttributes']['get'](_0xd1da49['root']['rootName']);null===_0xd1da49['newValue']?delete _0x126e38[_0xd1da49['key']]:_0x126e38[_0xd1da49['key']]=_0xd1da49['newValue'];}}function yt(_0x1bff50){const _0x201dcd=bt(_0x1bff50['rootName'],_0x1bff50['isAttached']());for(const _0x459695 of _0x1bff50['getChildren']()){const _0xdfbe71=_0x459695['_clone'](!0x0);_0x201dcd['_appendChild'](_0xdfbe71);}return _0x201dcd;}function bt(_0x4062a8,_0x2bde3b=!0x0){const _0x452b37=new _0x8aafde();return _0x452b37['rootName']=_0x4062a8,_0x452b37['_isAttached']=_0x2bde3b,_0x452b37['isAttached']=()=>_0x452b37['_isAttached'],_0x452b37;}function Rt(_0x18f1a4,_0x253afb,_0x24494f){const _0x3210c5='elementEnd'==_0x18f1a4['type']?_0x24494f['createPositionAt'](_0x18f1a4['item'],'end'):_0x24494f['createPositionBefore'](_0x18f1a4['item']);return _0x24494f['createPositionFromPath'](_0x253afb,_0x3210c5['path'],_0x3210c5['stickiness']);}function kt(_0x4e883e,_0x7ad24,_0x3668c6){const _0x1c3189='elementStart'==_0x4e883e['type']?_0x3668c6['createPositionAt'](_0x4e883e['item'],0x0):_0x3668c6['createPositionAfter'](_0x4e883e['item']);return _0x3668c6['createPositionFromPath'](_0x7ad24,_0x1c3189['path'],_0x1c3189['stickiness']);}class At extends/* #__PURE__ -- @preserve */
25
- _0x3a6c19(_0x368d7b){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4043c8,_0x45a7c4){super(_0x4043c8),this['focusTracker']=new _0x3b3572(),this['keystrokes']=new _0xa89ba4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x45a7c4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x1247ee({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x428efd=_0x1e7b25=>_0x1e7b25['stopPropagation']();this['keystrokes']['set']('arrowright',_0x428efd),this['keystrokes']['set']('arrowleft',_0x428efd),this['keystrokes']['set']('arrowup',_0x428efd),this['keystrokes']['set']('arrowdown',_0x428efd);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3e0ab5){this['revisionNameInputView']['fieldView']['element']['value']=_0x3e0ab5['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x28c25b){const _0x103db2=new _0x150e64(this['locale'],_0x26b657),_0x200bf5=_0x103db2['fieldView'];_0x200bf5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4ae9b3=wt(this['locale'],'Name\x20of\x20the\x20revision');return!_0x28c25b&&(_0x4ae9b3+='\x20('+wt(this['locale'],'optional')+')'),(_0x103db2['label']=_0x4ae9b3,_0x200bf5['on']('input',()=>{this['revisionNameInputValue']=_0x200bf5['element']['value']['trim']();}),_0x103db2);}}class It extends _0x213e3a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[pt];}['_saveRevisionFormView'];['init'](){const _0x41c52e=this['editor'],_0x21d8df=_0x41c52e['plugins']['get']('RevisionTracker');_0x41c52e['ui']['componentFactory']['add']('revisionHistory',_0x51d404=>{const _0x399916=_0x50a3b3(_0x51d404),_0x39e3b2=_0x399916['panelView']['children'],_0x5a7c59=new _0x3948f6(_0x51d404),_0x3270c3=new _0x5a3c13(_0x51d404),_0x4b2288=this['_createSaveRevisionButton'](_0xe549ae),_0x4463b8=new _0x5a3c13(_0x51d404),_0x3e955c=this['_createOpenRevisionButton'](_0xe549ae);return _0x399916['bind']('isEnabled')['to'](_0x21d8df,'isReady',_0x21d8df,'isEnabled',_0x41c52e,'isReadOnly',(_0x34425a,_0x2d36de,_0x12ac10)=>_0x34425a&&_0x2d36de&&!_0x12ac10),_0x399916['buttonView']['set']({'icon':_0x19dcaf,'label':wt(_0x51d404,'Revision\x20history'),'tooltip':!0x0}),_0x4b2288['set']({'withText':!0x0,'role':'menuitem'}),_0x3e955c['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x3e955c,'execute',()=>{_0x399916['isOpen']=!0x1,_0x41c52e['editing']['view']['focus']();},{'priority':'low'}),_0x3270c3['children']['add'](_0x4b2288),_0x4463b8['children']['add'](_0x3e955c),_0x5a7c59['role']='menu',_0x5a7c59['items']['addMany']([_0x3270c3,_0x4463b8]),_0x39e3b2['add'](_0x5a7c59),_0x399916;}),_0x41c52e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x35eb32=this['editor'],_0x341429=_0x35eb32['locale'],_0x1cef31=_0x35eb32['plugins']['get']('RevisionTracker'),_0x17d5c8=new _0xb053f7(_0x341429),_0x3efbf0=new _0x247d40(_0x341429);_0x17d5c8['bind']('isEnabled')['to'](_0x1cef31,'isReady',_0x1cef31,'isEnabled',_0x35eb32,'isReadOnly',(_0x1afbdd,_0xf81c6c,_0x3d9f81)=>_0x1afbdd&&_0xf81c6c&&!_0x3d9f81),_0x17d5c8['buttonView']['set']({'icon':_0x19dcaf,'label':wt(_0x341429,'Revision\x20history')});const _0x4de1e3=new tt(_0x341429,_0x17d5c8),_0x47c952=this['_createSaveRevisionButton'](it);_0x47c952['delegate']('execute')['to'](_0x17d5c8),_0x4de1e3['children']['add'](_0x47c952),_0x3efbf0['items']['add'](_0x4de1e3);const _0xfd384e=new tt(_0x341429,_0x17d5c8),_0x1df71e=this['_createOpenRevisionButton'](it);return _0x1df71e['delegate']('execute')['to'](_0x17d5c8),_0xfd384e['children']['add'](_0x1df71e),_0x3efbf0['items']['add'](_0xfd384e),_0x17d5c8['panelView']['children']['add'](_0x3efbf0),_0x17d5c8;}['_createSaveRevisionButton'](_0x1ff7f1){const _0x489fd3=this['editor'],_0x36888f=_0x489fd3['plugins']['get']('RevisionTracker'),_0x3341df=new _0x1ff7f1(_0x489fd3['locale']);return _0x3341df['set']({'label':wt(_0x489fd3['locale'],'Save\x20current\x20revision')}),_0x3341df['bind']('isEnabled')['to'](_0x36888f,'isReady',_0x36888f,'isEnabled',_0x489fd3,'isReadOnly',(_0x31d33e,_0x3cf1c8,_0x2a6430)=>_0x31d33e&&_0x3cf1c8&&!_0x2a6430),this['listenTo'](_0x3341df,'execute',()=>{this['_showDialog']();}),_0x3341df;}['_createOpenRevisionButton'](_0x159379){const _0x10c238=this['editor'],_0x154f64=_0x10c238['plugins']['get']('RevisionTracker'),_0x39c6b5=new _0x159379(_0x10c238['locale']);return _0x39c6b5['set']({'label':wt(_0x10c238['locale'],'Open\x20revision\x20history')}),_0x39c6b5['bind']('isEnabled')['to'](_0x154f64,'isReady',_0x10c238,'isReadOnly',(_0x313624,_0x5af850)=>_0x313624&&!_0x5af850),this['listenTo'](_0x39c6b5,'execute',()=>{_0x10c238['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x39c6b5;}['_showDialog'](){const _0x2f101c=this['editor'],_0x1ed648=_0x2f101c['locale'],_0x2a605e=_0x2f101c['plugins']['get']('Dialog'),_0x5c6da9=_0x2f101c['plugins']['get']('RevisionTracker');function _0x606959(_0x1ca730){_0x2f101c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1ca730['revisionName']?_0x1ca730['revisionNameInputView']['errorText']=wt(_0x1ed648,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2f101c['plugins']['get'](pt)['saveRevision']({'name':_0x1ca730['revisionName']}),_0x2a605e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x606959(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2a605e['show']({'id':'revisionSave','title':wt(_0x1ed648,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':wt(_0x2f101c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2a605e['hide']()},{'label':wt(_0x2f101c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5596a2){_0x5596a2['bind']('isEnabled')['to'](_0x5c6da9,'isReady',_0x5c6da9,'isEnabled',_0x2f101c,'isReadOnly',(_0x3a1c96,_0x52c294,_0x1f4f59)=>_0x3a1c96&&_0x52c294&&!_0x1f4f59);},'onExecute':()=>_0x606959(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x914db6=this['editor'],_0x235be4=_0x914db6['locale'];this['_saveRevisionFormView']=new At(_0x235be4,_0x914db6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Nt extends _0x368d7b{['changeId'];['_model'];constructor(_0x4ac660,_0x2d0516){super(_0x4ac660),this['_model']=_0x2d0516,this['changeId']=_0x2d0516['id'];const _0x34b04a=this['bindTemplate'],_0x614943=wt(_0x4ac660,_0x2d0516['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2d0516['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2d0516['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x34b04a['to']('type',_0x23a610=>'ck-revision-change__'+_0x23a610)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x614943}]},{'text':'\x20'+_0x2d0516['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class xt extends/* #__PURE__ -- @preserve */
26
- _0x25f5f0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2d2082){super(),this['id']=_0x2d2082['id']||_0x5b3809(),this['author']=_0x2d2082['author'],this['type']=_0x2d2082['type'],this['data']=_0x2d2082['data']||{},this['rootName']=_0x2d2082['rootName'],this['set']('createdAt',_0x2d2082['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class Et{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xe17143,_0x5d359e){this['newRevisionId']=_0xe17143,this['oldRevisionId']=_0x5d359e,this['changes']=new _0x3b3aab();}['_setChanges'](_0x32d7e2){for(const _0x15f5af of _0x32d7e2)this['changes']['add'](_0x15f5af);}}class St extends _0x213e3a{['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[_0x3ee47a,st,gt,mt];}constructor(_0x5c2ab0){super(_0x5c2ab0),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',(_0x58f287,_0x1c5163,_0x29fea5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x31e322=>{for(const _0x24013b of this['editor']['editing']['view']['document']['roots'])_0x29fea5?_0x31e322['removeClass']('ck-editor__editable__overlay',_0x24013b):_0x31e322['addClass']('ck-editor__editable__overlay',_0x24013b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x594f85=>null!==_0x594f85),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x38b8c6,_0x1c03d3,_0x22e4d4)=>_0x38b8c6&&_0x22e4d4?_0x1c03d3['changes']['getIndex'](_0x22e4d4):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4aaacd,_0x97264a)=>_0x4aaacd?_0x97264a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](st);}['init'](){const _0xcb53dc=this['editor'],_0x27e139=new Mt(_0xcb53dc,{'direction':'backward'}),_0x5edef9=new Mt(_0xcb53dc,{'direction':'forward'});(_0xcb53dc['commands']['add']('showPreviousChange',_0x27e139),_0xcb53dc['commands']['add']('showNextChange',_0x5edef9),_0xcb53dc['commands']['add']('restoreRevision',new Ct(_0xcb53dc)),this['on']('change:numberOfChanges',()=>{_0x27e139['refresh'](),_0x5edef9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xcb53dc['enableReadOnlyMode']('revision-viewer'),_0xcb53dc['plugins']['has']('WidgetToolbarRepository'))&&_0xcb53dc['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x51b912){return await this['_utils']['loadRevisionData'](_0x51b912,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x51b912);}async['getRevisionRootsAttributes'](_0x3314b3){return await this['_utils']['loadRevisionData'](_0x3314b3,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3314b3);}async['compare'](_0x349d92,_0x2dea36,_0xbd593d=!0x1){if(!this['isEnabled'])return;const _0x23f688=this['diff'],_0x29a99d=this['repository'],_0x4ffdcb='string'==typeof _0x349d92?_0x29a99d['getRevision'](_0x349d92):_0x349d92,_0x58c447='string'==typeof _0x2dea36?_0x29a99d['getRevision'](_0x2dea36):_0x2dea36,_0xa8a05a=_0x4ffdcb['id'],_0x22aca5=_0x58c447?_0x58c447['id']:null;if(!_0xbd593d&&this['diff']&&this['diff']['newRevisionId']===_0xa8a05a&&this['diff']['oldRevisionId']===_0x22aca5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new Et(_0xa8a05a,_0x22aca5);const _0x23cbe2=this['_getRevisionsRange'](_0x4ffdcb,_0x58c447,!0x0)['map'](_0x52bef2=>this['_utils']['loadRevisionData'](_0x52bef2,this['adapter']));return _0x23cbe2['push'](new Promise(_0x3e46a5=>{setTimeout(_0x3e46a5,0x14);})),Promise['all'](_0x23cbe2)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3d967e=this['_getDiff'](_0xa8a05a,_0x22aca5);for(const _0x45431c of _0x3d967e['changes'])this['_changeIdToChange']['set'](_0x45431c['id'],_0x45431c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x41969d=>{for(const _0x289f5a of this['editor']['model']['document']['getRootNames']())_0x41969d['detachRoot'](_0x289f5a);for(const _0x247185 of Object['keys'](_0x3d967e['model'])){const _0x2c04e1=_0x41969d['addRoot'](_0x247185);for(const _0x591aeb of Object['keys'](_0x3d967e['attributes'][_0x247185]))_0x41969d['setAttribute'](_0x591aeb,_0x3d967e['attributes'][_0x247185][_0x591aeb],_0x2c04e1);_0x41969d['insert'](_0x3d967e['model'][_0x247185],_0x2c04e1,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3d967e['changes'])),this['isReady']=!0x0;})['catch'](_0x601a68=>{console['error'](_0x601a68),this['_cleanUp'](),_0x23f688&&(this['diff']=_0x23f688),this['isReady']=!0x0;});}['addRevisionData'](_0x24bdad,_0x328589){const _0x474983=this['repository']['createRevision'](_0x24bdad);return _0x474983['on']('_update',(_0x1a78f2,_0x148999,_0x3d21f3)=>_0x328589(_0x148999,_0x3d21f3,_0x474983)),this['repository']['addRevision'](_0x474983),_0x474983;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5434e8=>{for(const _0x552183 of this['editor']['model']['document']['getRootNames']())_0x5434e8['detachRoot'](_0x552183);});}['_sortAndFilterDiffChanges'](_0x4f82da){const _0x29d601=[],_0x3a58d6=new Map();for(const _0x4c372b of this['editor']['model']['document']['getRootNames']()){const _0x2b394f=this['editor']['editing']['view']['getDomRoot'](_0x4c372b);if(!_0x2b394f)continue;const _0x426bc0=_0x2b394f['getClientRects']()['item'](0x0);_0x426bc0&&(_0x29d601['push'](_0x4c372b),_0x3a58d6['set'](_0x4c372b,_0x426bc0));}return _0x29d601['sort']((_0x5e963e,_0x4c0cc1)=>{const _0x57b983=_0x3a58d6['get'](_0x5e963e),_0x8dac12=_0x3a58d6['get'](_0x4c0cc1);return _0x57b983['y']-_0x8dac12['y']||_0x57b983['x']-_0x8dac12['x'];}),(_0x4f82da=_0x4f82da['filter'](_0x2c40ae=>_0x29d601['includes'](_0x2c40ae['rootName'])))['sort']((_0x38ec3e,_0x2ff384)=>_0x29d601['indexOf'](_0x38ec3e['rootName'])-_0x29d601['indexOf'](_0x2ff384['rootName'])),_0x4f82da;}['_makeTape'](_0x28e1d8){const _0x5c1683=Array['from'](_0x28e1d8['markers'])['filter'](([_0x1cff13,_0x59aad5])=>_0x1cff13['startsWith']('revision:')&&!_0x59aad5['isCollapsed']),_0x3998df=Array['from'](this['editor']['model']['createRangeIn'](_0x28e1d8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5c1683['length'])for(const _0x329e3d of _0x3998df){const [_0x3cdebd,_0x4dc6ca]=_0x5c1683[0x0],[,_0x227630,_0x3588b0]=_0x3cdebd['split'](':');if(_0x4dc6ca['end']['isEqual'](_0x329e3d['nextPosition'])&&_0x5c1683['shift'](),(_0x329e3d['previousPosition']['isEqual'](_0x4dc6ca['start'])||_0x329e3d['previousPosition']['isAfter'](_0x4dc6ca['start']))&&('insertion'==_0x227630?_0x329e3d['isAdded']={'userId':_0x3588b0}:'deletion'==_0x227630&&(_0x329e3d['isRemoved']={'userId':_0x3588b0})),0x0==_0x5c1683['length'])break;}return _0x3998df;}['_refreshStartEndIndex'](_0x58e921){const _0x433f32=new Map();for(let _0x431ee0=0x0;_0x431ee0<_0x58e921['length'];_0x431ee0++)'text'===_0x58e921[_0x431ee0]['type']?(_0x58e921[_0x431ee0]['item']['startIndex']=_0x431ee0,_0x58e921[_0x431ee0]['item']['endIndex']=_0x431ee0):('elementStart'===_0x58e921[_0x431ee0]['type']?_0x58e921[_0x431ee0]['item']['startIndex']=_0x431ee0:'elementEnd'===_0x58e921[_0x431ee0]['type']&&(_0x58e921[_0x431ee0]['item']['endIndex']=_0x431ee0),_0x433f32['set'](_0x58e921[_0x431ee0]['id'],_0x431ee0));for(const _0x498f62 of _0x433f32['values']())'elementStart'===_0x58e921[_0x498f62]['type']?_0x58e921[_0x498f62]['item']['endIndex']=_0x433f32['get'](_0x58e921[_0x498f62]['pairId']):'elementEnd'===_0x58e921[_0x498f62]['type']&&(_0x58e921[_0x498f62]['item']['startIndex']=_0x433f32['get'](_0x58e921[_0x498f62]['pairId']));}['_processTape'](_0x4c228a){for(let _0x5c4924=0x0;_0x5c4924<_0x4c228a['length'];_0x5c4924++){if('elementStart'===_0x4c228a[_0x5c4924]['type'])_0x4c228a[_0x5c4924]['item']['startIndex']=_0x5c4924;else{if('elementEnd'===_0x4c228a[_0x5c4924]['type']){_0x4c228a[_0x5c4924]['item']['endIndex']=_0x5c4924;const _0x37383b=_0x4c228a[_0x5c4924]['item']['startIndex'];_0x4c228a[_0x37383b]['pairId']=_0x4c228a[_0x5c4924]['id'],_0x4c228a[_0x5c4924]['pairId']=_0x4c228a[_0x37383b]['id'];}else _0x4c228a[_0x5c4924]['item']['startIndex']=_0x5c4924,_0x4c228a[_0x5c4924]['item']['endIndex']=_0x5c4924,_0x4c228a[_0x5c4924]['pairId']=null;}_0x4c228a[_0x5c4924]['markersStart']||(_0x4c228a[_0x5c4924]['markersStart']=[],_0x4c228a[_0x5c4924]['markersEnd']=[]);}}['_markInsertions'](_0x1f6f54,_0x2f5fdb){const _0x1acaaa=_0x1f6f54['filter'](_0x27b15e=>!_0x27b15e['isAdded']);for(let _0x3792ad=0x0;_0x3792ad<_0x2f5fdb['length'];_0x3792ad++)_0x2f5fdb[_0x3792ad]['isAdded']&&(_0x1acaaa[_0x3792ad]['isAdded']=_0x2f5fdb[_0x3792ad]['isAdded']);}['_getDiff'](_0x3e290d,_0x98ee4d=null){const _0x52b0c7=this['repository']['getRevision'](_0x3e290d),_0x38a66a=_0x98ee4d?this['repository']['getRevision'](_0x98ee4d):null,_0x51b201=this['_getRevisionsRange'](_0x52b0c7,_0x38a66a),_0x23334f=_0x51b201[_0x51b201['length']-0x1],_0x44a284=new Map(),_0x40d92e={'model':{},'attributes':{},'changes':[]},_0x502b25=new Set(),_0xe8dfb4=new Map();for(let _0x25847d=_0x51b201['length']-0x1;_0x25847d>=0x0;_0x25847d--){const _0x25d33b=_0x51b201[_0x25847d];for(const _0x249b0c of Object['keys'](_0x25d33b['diffData']))if(_0x25d33b['diffData'][_0x249b0c]['attachChange']){const _0x1697c0=_0x25d33b['diffData'][_0x249b0c]['attachChange'];_0x1697c0['isAttached']?(_0x502b25['add'](_0x249b0c),_0xe8dfb4['has'](_0x249b0c)&&_0xe8dfb4['get'](_0x249b0c)['userId']==_0x1697c0['userId']?_0xe8dfb4['delete'](_0x249b0c):_0xe8dfb4['set'](_0x249b0c,_0x1697c0)):_0xe8dfb4['has'](_0x249b0c)?(_0x502b25['delete'](_0x249b0c),_0xe8dfb4['delete'](_0x249b0c)):(_0x502b25['add'](_0x249b0c),_0xe8dfb4['set'](_0x249b0c,_0x1697c0));}else _0x502b25['add'](_0x249b0c);}for(const _0x1882f4 of _0x502b25){const _0xff711d=_0xe8dfb4['has'](_0x1882f4)&&!_0xe8dfb4['get'](_0x1882f4)['isAttached'];let _0x5cb929=_0xff711d?_0x51b201['length']-0x1:0x0;const _0x498954=_0xff711d?-0x1:0x1;for(;_0x51b201[_0x5cb929];){const _0xc9ae45=_0x51b201[_0x5cb929];if(_0xc9ae45['diffData'][_0x1882f4]){const _0x35c1e9=_0xff711d?_0xc9ae45['diffData'][_0x1882f4]['attributesBefore']:_0xc9ae45['diffData'][_0x1882f4]['attributesAfter'];_0x40d92e['attributes'][_0x1882f4]=_0x35c1e9?_0x3523f4(_0x35c1e9):{};break;}_0x5cb929+=_0x498954;}}for(const _0x89a72c of _0x51b201){_0x89a72c['model']={};for(const _0xde6201 of _0x89a72c['authors'])_0x44a284['set'](_0xde6201['id'],_0xde6201);for(const _0x4e4711 of _0x502b25){const _0x29c4a9=_0x89a72c['diffData'][_0x4e4711]?_0x89a72c['diffData'][_0x4e4711]['insertions']:'[]',_0x262735=_0x89a72c['diffData'][_0x4e4711]?_0x89a72c['diffData'][_0x4e4711]['deletions']:'[]';_0x89a72c['model'][_0x4e4711]={'insertions':this['_utils']['_makeModelFromViewString'](_0x29c4a9),'deletions':this['_utils']['_makeModelFromViewString'](_0x262735)};}}for(const _0x37677a of _0x502b25){let _0x1c71fa=null,_0x1c1ee5=0x0;const _0x2d73cb=new Map(Array['from'](_0x52b0c7['model'][_0x37677a]['insertions']['markers'])['filter'](([_0x6ed9fb])=>!_0x6ed9fb['startsWith']('revision:')));let _0x4cd944=0x0;for(const _0x4fb4ee of _0x51b201){const _0x352e35=this['_makeTape'](_0x4fb4ee['model'][_0x37677a]['insertions']);_0x4fb4ee==_0x52b0c7?(_0x1c71fa=_0x352e35,_0x1c1ee5=_0x1c71fa['length'],_0x1c71fa['forEach'](_0x273840=>{_0x273840['id']=_0x4cd944++;}),this['_processTape'](_0x1c71fa)):this['_markInsertions'](_0x1c71fa,_0x352e35);const _0xa3c82f=_0x1c71fa['filter'](_0xa41ecc=>!_0xa41ecc['isAdded'])['map'](_0xe22b73=>_0xe22b73['id']);let _0x4569c9=0x0;const _0x38fca4=this['_makeTape'](_0x4fb4ee['model'][_0x37677a]['deletions']);_0x38fca4['forEach'](_0x40509b=>{_0x40509b['isRemoved']?_0x40509b['id']=_0x1c1ee5++:_0x40509b['id']=_0xa3c82f[_0x4569c9++];}),this['_processTape'](_0x38fca4),this['_setDistance'](_0x1c71fa,'isAdded'),this['_setDistance'](_0x38fca4,'isRemoved'),_0x4fb4ee==_0x52b0c7&&this['_markMarkers'](_0x1c71fa,_0x2d73cb),_0x1c71fa=this['_joinTapes'](_0x1c71fa,_0x38fca4),this['_refreshStartEndIndex'](_0x1c71fa),this['_setDistance'](_0x1c71fa,'isRemoved');}_0x1c71fa=_0x1c71fa['filter'](_0x1b6d82=>!(_0x1b6d82['isAdded']&&_0x1b6d82['isRemoved']));const _0x4fca8b=new Map(_0x23334f['model'][_0x37677a]['deletions']['markers']),_0x1bc67f=new Set(_0x2d73cb['keys']());for(const _0x2846c6 of _0x4fca8b['keys']())_0x1bc67f['delete'](_0x2846c6);this['_markSuggestions'](_0x1c71fa,_0x1bc67f),this['_fixObsoleteTags'](_0x1c71fa),_0x1c71fa=this['_removeMissingPairs'](_0x1c71fa),_0x1c71fa=this['_markMismatchedRemovedTags'](_0x1c71fa),_0x1c71fa=this['_removeUnsupportedChanges'](_0x1c71fa);const {root:_0x1a1682,changes:_0x51f967}=this['_makeModelFromTape'](_0x1c71fa,_0x44a284,_0x37677a);_0x40d92e['model'][_0x37677a]=_0x1a1682;const _0x3a2334=_0xe8dfb4['get'](_0x37677a);if(_0x3a2334){const _0x448845=_0x44a284['get'](_0x3a2334['userId']),_0x1314f9=new xt({'author':_0x448845,'type':_0x3a2334['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x37677a});_0x51f967['unshift'](_0x1314f9),_0x40d92e['attributes'][_0x37677a]['revisionHistoryAttachChange']=_0x1314f9['id'];}_0x40d92e['changes']=_0x40d92e['changes']['concat'](_0x51f967);}return _0x40d92e;}['_markMarkers'](_0x4ef559,_0x1a026c){for(let _0x173429=0x0;_0x173429<_0x4ef559['length'];_0x173429++)for(const [_0x231edc,_0x1b5d68]of _0x1a026c)!_0x1b5d68['isCollapsed']&&_0x1b5d68['start']['isEqual'](_0x4ef559[_0x173429]['previousPosition'])&&_0x4ef559[_0x173429]['markersStart']['push'](_0x231edc),_0x1b5d68['end']['isEqual'](_0x4ef559[_0x173429]['nextPosition'])&&_0x4ef559[_0x173429]['markersEnd']['push'](_0x231edc);}['_joinTapes'](_0x4b7a55,_0x4fca20){let _0x519828=[],_0x2b40c6=0x0,_0x15e34e=0x0;for(;_0x2b40c6<_0x4b7a55['length']||_0x15e34e<_0x4fca20['length'];){const _0x245b7f=_0x4b7a55[_0x2b40c6]||{},_0x4f2df2=_0x4fca20[_0x15e34e]||{};if(_0x245b7f['id']==_0x4f2df2['id'])_0x2b40c6++,_0x15e34e++,_0x519828['push'](_0x245b7f);else{if(_0x4f2df2['isRemoved']&&_0x245b7f['isAdded']){const {commonTape:_0x12c96a,iEnd:_0xd91f98,jEnd:_0x5c5deb}=this['_threeWayMerge'](_0x4b7a55,_0x2b40c6,_0x4fca20,_0x15e34e);_0x519828=_0x519828['concat'](_0x12c96a),_0x2b40c6=_0xd91f98,_0x15e34e=_0x5c5deb;}else _0x4f2df2['isRemoved']?(_0x15e34e++,_0x519828['push'](_0x4f2df2)):(_0x2b40c6++,_0x519828['push'](_0x245b7f));}}return _0x519828;}['_markSuggestions'](_0x559cbc,_0x119121){const _0x2ef886=[];for(let _0x555e4=0x0;_0x555e4<_0x559cbc['length'];_0x555e4++){for(let _0x24052b=0x0;_0x24052b<_0x559cbc[_0x555e4]['markersStart']['length'];_0x24052b++){const _0x73f1ea=_0x559cbc[_0x555e4]['markersStart'][_0x24052b];if(!_0x119121['has'](_0x73f1ea))continue;const {group:_0x402b34,type:_0x3ecf4b,authorId:_0x561b69}=_0x2c6fa0(_0x73f1ea);'revision-suggestion'!=_0x402b34||'insertion'!=_0x3ecf4b&&'deletion'!=_0x3ecf4b||(_0x2ef886['unshift']({'type':_0x3ecf4b,'name':_0x73f1ea,'userId':_0x561b69}),_0x559cbc[_0x555e4]['markersStart']['splice'](_0x24052b,0x1),_0x24052b--);}_0x616b78(_0x559cbc[_0x555e4]);for(let _0x1ba8ea=0x0;_0x1ba8ea<_0x559cbc[_0x555e4]['markersEnd']['length'];_0x1ba8ea++){const _0x1cf05a=_0x559cbc[_0x555e4]['markersEnd'][_0x1ba8ea];if(!_0x119121['has'](_0x1cf05a))continue;const {group:_0x5e0c3e,type:_0x15ca6c}=_0x2c6fa0(_0x1cf05a);if('revision-suggestion'!=_0x5e0c3e||'insertion'!=_0x15ca6c&&'deletion'!=_0x15ca6c)continue;_0x559cbc[_0x555e4]['markersEnd']['splice'](_0x1ba8ea,0x1),_0x1ba8ea--;const _0x1111e2=_0x2ef886['findIndex'](_0x4fd07f=>_0x4fd07f['name']==_0x1cf05a);_0x1111e2>-0x1&&_0x2ef886['splice'](_0x1111e2,0x1);}}function _0x2c6fa0(_0x4d666c){const _0x43bf82=_0x4d666c['split'](':');return{'group':_0x43bf82[0x0],'type':_0x43bf82[0x1],'subType':_0x43bf82['length']>=0x5?_0x43bf82[0x2]:null,'id':_0x43bf82['length']<0x5?_0x43bf82[0x2]:_0x43bf82[0x3],'authorId':_0x43bf82['length']<0x5?_0x43bf82[0x3]:_0x43bf82[0x4],'markerCount':0x6==_0x43bf82['length']?_0x43bf82[0x5]:null};}function _0x616b78(_0x5b8320){for(let _0x2d61db=0x0;_0x2d61db<_0x2ef886['length'];_0x2d61db++){if(_0x5b8320['isAdded']&&'insertion'==_0x2ef886[_0x2d61db]['type']&&_0x5b8320['isAdded']['userId']==_0x2ef886[_0x2d61db]['userId'])return _0x5b8320['isAddSuggestion']=_0x2ef886[_0x2d61db],void delete _0x5b8320['isAdded'];if(!_0x5b8320['isAdded']&&!_0x5b8320['isRemoved']&&'deletion'==_0x2ef886[_0x2d61db]['type'])return void(_0x5b8320['isRemoveSuggestion']=_0x2ef886[_0x2d61db]);}}}['_setDistance'](_0x1bfa01,_0x1dcfc4){let _0x351ea0=0x0,_0x2dd155=!0x1;const _0x22f34b=new Map();for(const _0x149588 of _0x1bfa01)_0x149588[_0x1dcfc4]?_0x2dd155&&(_0x351ea0++,_0x2dd155=!0x1):(_0x351ea0++,_0x2dd155=!0x0),_0x22f34b['set'](_0x149588['id'],_0x351ea0);for(let _0x3d2ee6=0x0;_0x3d2ee6<_0x1bfa01['length'];_0x3d2ee6++){if('isRemoved'==_0x1dcfc4&&_0x1bfa01[_0x3d2ee6]['isAdded']||'isAdded'==_0x1dcfc4&&_0x1bfa01[_0x3d2ee6]['isRemoved'])continue;if('text'==_0x1bfa01[_0x3d2ee6]['type']){_0x1bfa01[_0x3d2ee6]['distance']=0x0;continue;}const _0xa7f25a=_0x22f34b['get'](_0x1bfa01[_0x3d2ee6]['pairId']),_0x5ce9fa=_0x22f34b['get'](_0x1bfa01[_0x3d2ee6]['id']);_0x1bfa01[_0x3d2ee6]['distance']=_0xa7f25a-_0x5ce9fa;}}['_getRevisionsRange'](_0xb22c70,_0x542d11,_0x56533f=!0x1){const _0x4e3fac=[];let _0x34a0b0=this['repository']['getIndex'](_0xb22c70),_0x1b0b31=this['repository']['getIndex'](_0x542d11);for(-0x1==_0x1b0b31&&(_0x1b0b31=this['repository']['_revisions']['length'],_0x56533f=!0x1);_0x34a0b0<_0x1b0b31;)_0x4e3fac['push'](this['repository']['getRevision'](_0x34a0b0)),_0x34a0b0++;return _0x56533f&&_0x4e3fac['push'](this['repository']['getRevision'](_0x34a0b0)),_0x4e3fac;}['_threeWayMerge'](_0x292459,_0x1f9ef6,_0x156b99,_0x19f0a0){const _0xd627c4=this['editor']['model']['schema'];let _0x46ef8d=_0x1f9ef6;for(;_0x292459[_0x46ef8d]&&_0x292459[_0x46ef8d]['isAdded'];)_0x46ef8d++;let _0x4d26ee=_0x19f0a0;for(;_0x156b99[_0x4d26ee]&&_0x156b99[_0x4d26ee]['isRemoved'];)_0x4d26ee++;_0x1e824e(_0x292459,_0x1f9ef6,_0x46ef8d),_0x1e824e(_0x156b99,_0x19f0a0,_0x4d26ee);const _0x29fe13=_0x156b99['slice'](_0x19f0a0,_0x4d26ee)['concat'](_0x292459['slice'](_0x1f9ef6,_0x46ef8d));return _0x29fe13['sort']((_0x3e1c2a,_0x122f5f)=>_0x3e1c2a['side']!=_0x122f5f['side']?_0x3e1c2a['side']-_0x122f5f['side']:_0x3e1c2a['level']!=_0x122f5f['level']?_0x3e1c2a['level']-_0x122f5f['level']:_0x3e1c2a['distance']!=_0x122f5f['distance']?_0x122f5f['distance']-_0x3e1c2a['distance']:!!_0x3e1c2a['isAdded']!=!!_0x122f5f['isAdded']?-0x1==_0x3e1c2a['side']||0x0==_0x3e1c2a['side']?_0x3e1c2a['isAdded']?-0x1:0x1:_0x3e1c2a['isAdded']?0x1:-0x1:_0x3e1c2a['index']-_0x122f5f['index']),{'commonTape':_0x29fe13,'iEnd':_0x46ef8d,'jEnd':_0x4d26ee};function _0x1e824e(_0x317b08,_0x4008b1,_0x52ca5a){let _0x2fbb12=-0x1,_0x1ebc1f=Number['POSITIVE_INFINITY'],_0x2246a3=!0x0;for(let _0x4ef187=_0x4008b1;_0x4ef187<_0x52ca5a;_0x4ef187++)if(_0xd627c4['isInline'](_0x317b08[_0x4ef187]['item'])||(_0x2246a3=!0x1),_0x317b08[_0x4ef187]['item']['startIndex']<_0x4008b1&&(_0x2fbb12=_0x4ef187),_0x317b08[_0x4ef187]['item']['endIndex']>=_0x52ca5a){_0x1ebc1f=_0x4ef187;break;}_0x2246a3&&(_0x2fbb12=_0x52ca5a-0x1);for(let _0x1ddb58=_0x4008b1;_0x1ddb58<_0x52ca5a;_0x1ddb58++)_0x317b08[_0x1ddb58]['side']=_0x1ddb58<=_0x2fbb12?-0x1:_0x1ddb58<_0x1ebc1f?0x0:0x1,_0x317b08[_0x1ddb58]['index']=_0x1ddb58;let _0x2eeb27=0x0;for(let _0x1cdd52=_0x4008b1;_0x1cdd52<=_0x2fbb12;_0x1cdd52++)0x0==_0x317b08[_0x1cdd52]['distance']?_0x317b08[_0x1cdd52]['level']=_0x2eeb27:(_0x2eeb27++,_0x317b08[_0x1cdd52]['level']=_0x2eeb27,_0x2eeb27++);for(let _0x4540bb=_0x4008b1;_0x4540bb<_0x52ca5a;_0x4540bb++)0x0==_0x317b08[_0x4540bb]['side']&&(_0x317b08[_0x4540bb]['level']=_0x2eeb27);_0x2eeb27=0x0;for(let _0x42651d=_0x52ca5a-0x1;_0x42651d>=_0x1ebc1f;_0x42651d--)0x0==_0x317b08[_0x42651d]['distance']?_0x317b08[_0x42651d]['level']=_0x2eeb27:(_0x2eeb27--,_0x317b08[_0x42651d]['level']=_0x2eeb27,_0x2eeb27--);}}['_fixObsoleteTags'](_0x46509f){const _0x315b3c=new Map(),_0x1d35bb=this['editor']['model']['schema'];for(let _0x24e4af=0x1;_0x24e4af<_0x46509f['length'];_0x24e4af++){let _0x1ddf56,_0x53323e,_0x5dafaf;const _0x4cba39=_0x46509f[_0x24e4af],_0x2c9f8b=_0x46509f[_0x24e4af-0x1];if('text'==_0x4cba39['type'])continue;if(_0x4cba39['type']!=_0x2c9f8b['type'])continue;if(!_0x1d35bb['isBlock'](_0x2c9f8b['item'])||_0x1d35bb['isLimit'](_0x2c9f8b['item']))continue;if(!_0x1d35bb['isBlock'](_0x4cba39['item'])||_0x1d35bb['isLimit'](_0x4cba39['item']))continue;if((_0x46509f[_0x24e4af]['isAdded']||_0x46509f[_0x24e4af]['isAddSuggestion'])&&_0x46509f[_0x24e4af-0x1]['isRemoved'])_0x1ddf56=_0x46509f[_0x24e4af],_0x53323e=_0x46509f[_0x24e4af-0x1],_0x5dafaf=_0x24e4af-0x1;else{if(!_0x46509f[_0x24e4af]['isRemoved']||!_0x46509f[_0x24e4af-0x1]['isAdded']&&!_0x46509f[_0x24e4af-0x1]['isAddSuggestion'])continue;_0x1ddf56=_0x46509f[_0x24e4af-0x1],_0x53323e=_0x46509f[_0x24e4af],_0x5dafaf=_0x24e4af;}const _0x4e4986=_0x1ddf56['level']==_0x53323e['level'],_0x5f4762=Math['abs'](_0x1ddf56['level'])<Math['abs'](_0x53323e['level'])&&0x0==_0x53323e['distance'];(_0x4e4986||_0x5f4762)&&(_0x315b3c['set'](_0x53323e['id'],_0x1ddf56['id']),_0x46509f['splice'](_0x5dafaf,0x1),_0x24e4af--,_0x1ddf56['isAdded']=!0x1);}for(let _0x49a6f4=0x0;_0x49a6f4<_0x46509f['length'];_0x49a6f4++)_0x315b3c['has'](_0x46509f[_0x49a6f4]['pairId'])&&(_0x46509f[_0x49a6f4]['pairId']=_0x315b3c['get'](_0x46509f[_0x49a6f4]['pairId']));}['_removeMissingPairs'](_0x5df84c){const _0x210201=new Set(_0x5df84c['map'](_0x53c1a0=>_0x53c1a0['id']));for(let _0x2985ca=0x0;_0x2985ca<_0x5df84c['length'];_0x2985ca++)_0x210201['has'](_0x5df84c[_0x2985ca]['pairId'])||0x0==_0x5df84c[_0x2985ca]['distance']||(_0x5df84c[_0x2985ca]['isIncorrect']=!0x0);return _0x5df84c['filter'](_0x23cfbf=>!_0x23cfbf['isIncorrect']);}['_markMismatchedRemovedTags'](_0xa2f790){const _0x126285=new Set();for(let _0x3771a1=0x0;_0x3771a1<_0xa2f790['length'];_0x3771a1++){if(_0x126285['has'](_0xa2f790[_0x3771a1]['id'])&&_0xa2f790[_0x3771a1]['isRemoved']&&(_0xa2f790[_0x3771a1]['isIncorrect']=!0x0),_0xa2f790[_0x3771a1]['isIncorrect'])continue;if(0x0==_0xa2f790[_0x3771a1]['distance'])continue;if('elementStart'!=_0xa2f790[_0x3771a1]['type'])continue;if(null==_0xa2f790[_0x3771a1]['pairId'])continue;let _0x45d65a=_0x3771a1+0x1,_0x2290cc=0x0;for(;_0xa2f790[_0x45d65a]['id']!=_0xa2f790[_0x3771a1]['pairId'];)'elementStart'==_0xa2f790[_0x45d65a]['type']?_0x2290cc++:'elementEnd'==_0xa2f790[_0x45d65a]['type']&&_0x2290cc--,_0x45d65a++;if(0x0!=_0x2290cc){if(_0xa2f790[_0x3771a1]['isRemoved'])_0xa2f790[_0x3771a1]['isIncorrect']=!0x0;else{for(;_0x45d65a!=_0x3771a1;)_0xa2f790[_0x45d65a]['isRemoved']&&0x0!=_0xa2f790[_0x45d65a]['distance']&&(_0xa2f790[_0x45d65a]['isIncorrect']=!0x0,_0x126285['add'](_0xa2f790[_0x45d65a]['pairId'])),_0x45d65a--;}}}return _0xa2f790['filter'](_0x24cea7=>!_0x24cea7['isIncorrect']);}['_removeUnsupportedChanges'](_0x194e1d){const _0x2b4b03=this['editor']['model']['schema'];for(let _0x445db6=0x0;_0x445db6<_0x194e1d['length'];_0x445db6++){if(!(_0x194e1d[_0x445db6]['isAdded']||_0x194e1d[_0x445db6]['isAddSuggestion']||_0x194e1d[_0x445db6]['isRemoved']||_0x194e1d[_0x445db6]['isRemoveSuggestion']))continue;if(0x0==_0x194e1d[_0x445db6]['distance'])continue;const _0x2b42d8=_0x194e1d[_0x445db6]['item'];_0x2b4b03['isBlock'](_0x2b42d8)||_0x2b4b03['isLimit'](_0x2b42d8)||(_0x194e1d[_0x445db6]['isAdded']&&delete _0x194e1d[_0x445db6]['isAdded'],_0x194e1d[_0x445db6]['isAddSuggestion']&&delete _0x194e1d[_0x445db6]['isAddSuggestion'],_0x194e1d[_0x445db6]['isRemoveSuggestion']&&delete _0x194e1d[_0x445db6]['isRemoveSuggestion'],_0x194e1d[_0x445db6]['isRemoved']&&(_0x194e1d[_0x445db6]['isIncorrect']=!0x0));}return _0x194e1d['filter'](_0x48915d=>!_0x48915d['isIncorrect']);}['_makeModelFromTape'](_0x2811c9,_0x4ae987,_0x2537e6){const _0x306106=new _0x8aafde(),_0x3459c5=[],_0x2eb767=new Map(),_0x40e4e2=this['editor']['model'],_0xbca1be=_0x40e4e2['schema'],_0x4284d7=[_0x306106],_0x4e469e={},_0x5e29f2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x269cdc=null;const _0x3bda27=[0x0];for(let _0x434ce8=0x0;_0x434ce8<_0x2811c9['length'];_0x434ce8++)if('elementStart'===_0x2811c9[_0x434ce8]['type']){_0x2811c9[_0x434ce8]['previousPosition']=_0x40e4e2['createPositionFromPath'](_0x306106,_0x3bda27);const _0x168a35=new _0xda4659(_0x2811c9[_0x434ce8]['item']['name'],_0x2811c9[_0x434ce8]['item']['getAttributes']());_0x4284d7[0x0]['_appendChild'](_0x168a35),_0x3bda27['push'](0x0),_0x4284d7['unshift'](_0x168a35),_0x2811c9[_0x434ce8]['nextPosition']=_0x40e4e2['createPositionFromPath'](_0x306106,_0x3bda27);}else'elementEnd'===_0x2811c9[_0x434ce8]['type']?(_0x4284d7['shift'](),_0x2811c9[_0x434ce8]['previousPosition']=_0x40e4e2['createPositionFromPath'](_0x306106,_0x3bda27),_0x3bda27['pop'](),_0x3bda27[_0x3bda27['length']-0x1]++,_0x2811c9[_0x434ce8]['nextPosition']=_0x40e4e2['createPositionFromPath'](_0x306106,_0x3bda27)):(_0x2811c9[_0x434ce8]['previousPosition']=_0x40e4e2['createPositionFromPath'](_0x306106,_0x3bda27),_0x269cdc?_0x269cdc['_data']+=_0x2811c9[_0x434ce8]['item']['data']:_0x269cdc=new _0x28a155(_0x2811c9[_0x434ce8]['item']['data'],_0x2811c9[_0x434ce8]['item']['getAttributes']()),_0x2811c9[_0x434ce8+0x1]&&'text'===_0x2811c9[_0x434ce8+0x1]['type']&&_0x5cc22a(_0x269cdc,_0x2811c9[_0x434ce8+0x1]['item'])||(_0x4284d7[0x0]['_appendChild'](_0x269cdc),_0x269cdc=null),_0x3bda27[_0x3bda27['length']-0x1]+=_0x2811c9[_0x434ce8]['item']['offsetSize'],_0x2811c9[_0x434ce8]['nextPosition']=_0x40e4e2['createPositionFromPath'](_0x306106,_0x3bda27));for(let _0x30c586=0x0;_0x30c586<_0x2811c9['length'];_0x30c586++){const _0x532f04=_0x2811c9[_0x30c586]['previousPosition'],_0x58aeba=_0x2811c9[_0x30c586]['nextPosition'];for(const _0xb92e7a of _0x2811c9[_0x30c586]['markersStart'])_0x2eb767['set'](_0xb92e7a,{'start':_0x532f04,'end':null});_0x2d523f('isRemoveSuggestion',_0x30c586,_0x532f04,_0x58aeba),_0x2d523f('isAddSuggestion',_0x30c586,_0x532f04,_0x58aeba),_0x2d523f('isRemoved',_0x30c586,_0x532f04,_0x58aeba),_0x2d523f('isAdded',_0x30c586,_0x532f04,_0x58aeba);for(const _0x1045bd of _0x2811c9[_0x30c586]['markersEnd']){const _0x2540ff=_0x2eb767['get'](_0x1045bd);_0x2540ff?_0x2540ff['end']=_0x58aeba:_0x2eb767['set'](_0x1045bd,{'start':_0x58aeba,'end':_0x58aeba});}}for(const [_0x3b6069,_0x91c318]of _0x2eb767){const _0x76b93a=this['editor']['model']['createRange'](_0x91c318['start'],_0x91c318['end']);_0x306106['markers']['set'](_0x3b6069,_0x76b93a);}return _0x3459c5['sort']((_0x86dcd2,_0x679b5f)=>{const _0x5a0726=_0x306106['markers']['get']('revision:'+_0x86dcd2['id']),_0x4eb11a=_0x306106['markers']['get']('revision:'+_0x679b5f['id']);return _0x5a0726['start']['isBefore'](_0x4eb11a['start'])?-0x1:_0x5a0726['start']['isAfter'](_0x4eb11a['start'])?0x1:_0x5a0726['end']['isBefore'](_0x4eb11a['end'])?-0x1:_0x5a0726['end']['isAfter'](_0x4eb11a['end'])?0x1:'add'===_0x86dcd2['type']?-0x1:0x1;}),{'root':_0x306106,'changes':_0x3459c5};function _0x2d523f(_0x11d696,_0xf17003,_0x1d211a,_0x1e309b){const _0x3b8543=!!_0x2811c9[_0xf17003][_0x11d696],_0x331b3f=_0x3b8543?_0x2811c9[_0xf17003][_0x11d696]['userId']:null,_0x47d913=_0xf17003===_0x2811c9['length']-0x1,_0x57f1d8=_0x5e29f2[_0x11d696][0x0],_0x1682fa=_0xbca1be['isObject'](_0x2811c9[_0xf17003]['item']);!_0x4e469e[_0x11d696]&&_0x3b8543?_0x4e469e[_0x11d696]={'start':_0x1d211a,'tapeItem':_0x2811c9[_0xf17003],'userId':_0x331b3f,'type':_0x11d696}:_0x4e469e[_0x11d696]&&!_0x3b8543?(_0x4e469e[_0x11d696]['end']=_0x1d211a,_0xfb6b22(_0x4e469e[_0x11d696]),_0x4e469e[_0x11d696]=null):_0x4e469e[_0x11d696]&&_0x3b8543&&_0x4e469e[_0x11d696]['userId']!==_0x331b3f&&(_0x4e469e[_0x11d696]['end']=_0x1d211a,_0x57f1d8&&_0x57f1d8['userId']===_0x4e469e[_0x11d696]['userId']||_0xfb6b22(_0x4e469e[_0x11d696]),_0x4e469e[_0x11d696]={'start':_0x1d211a,'tapeItem':_0x2811c9[_0xf17003],'userId':_0x331b3f,'type':_0x11d696}),_0x4e469e[_0x11d696]&&_0x1682fa&&('elementStart'!==_0x2811c9[_0xf17003]['type']||_0x57f1d8&&_0x57f1d8['userId']===_0x331b3f||_0x5e29f2[_0x11d696]['unshift']({'userId':_0x331b3f,'object':_0x2811c9[_0xf17003]['item'],'change':_0x4e469e[_0x11d696]}),'elementEnd'===_0x2811c9[_0xf17003]['type']&&_0x57f1d8&&_0x57f1d8['object']===_0x2811c9[_0xf17003]['item']&&(_0x5e29f2[_0x11d696]['shift'](),_0x4e469e[_0x11d696]=_0x57f1d8['change'])),_0x4e469e[_0x11d696]&&_0x47d913&&(_0x4e469e[_0x11d696]['end']=_0x1e309b,_0xfb6b22(_0x4e469e[_0x11d696]),_0x4e469e[_0x11d696]=null);}function _0xfb6b22({start:_0x138197,end:_0x1b4e78,tapeItem:_0x6f2959,userId:_0x3f317b,type:_0x3b7c5a}){const _0x5d570d=_0x6f2959['item'],_0x2750ba=_0x40e4e2['schema']['isBlock'](_0x5d570d)&&!_0x40e4e2['schema']['isLimit'](_0x5d570d),_0x4269ae=_0x138197['nodeAfter']==_0x1b4e78['parent']&&_0x1b4e78['isAtStart'];if(_0x2750ba&&_0x4269ae)return;const _0x28f26c=_0x40e4e2['createRange'](_0x138197,_0x1b4e78),_0x118d65=_0x4ae987['get'](_0x3f317b),_0x32c79c=new xt({'author':_0x118d65,'type':'isAdded'==_0x3b7c5a||'isAddSuggestion'==_0x3b7c5a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3b7c5a||'isRemoveSuggestion'==_0x3b7c5a},'createdAt':new Date(),'rootName':_0x2537e6});_0x3459c5['push'](_0x32c79c),_0x306106['markers']['set']('revision:'+_0x32c79c['id'],_0x28f26c);}function _0x5cc22a(_0x2464bc,_0x1acfe2){const _0x5ef2a7=_0x2464bc['getAttributes'](),_0x110675=_0x1acfe2['getAttributes']();for(const _0x2c7db9 of _0x5ef2a7){if(_0x2c7db9[0x1]!==_0x1acfe2['getAttribute'](_0x2c7db9[0x0]))return!0x1;_0x110675['next']();}return _0x110675['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x588fca=>{const _0x540938=_0x588fca['markerName']['split'](':')[0x1],_0x1398bb=this['_getChangeFromId'](_0x540938);if(!_0x1398bb)return null;const _0x5305d9='add'==_0x1398bb['type']?'insertion':'deletion',_0x532bfd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5305d9];return _0x1398bb['data']['isSuggestion']&&_0x532bfd['push']('ck-suggestion-marker-'+_0x5305d9+'-new'),this['activeChange']==_0x1398bb&&_0x532bfd['push']('ck-suggestion-marker--active'),{'classes':_0x532bfd,'attributes':{'data-change-id':_0x540938}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2ee0a0=>{_0x2ee0a0['on']('element:pre',(_0x45d9fc,_0x4cfc31,_0x3982be)=>{const _0x5c0092=_0x4cfc31['viewItem']['getChild'](0x0);if(!_0x5c0092||!_0x5c0092['is']('element','code'))return;if(!_0x3982be['consumable']['consume'](_0x5c0092,{'attributes':['vid_start','vid_end']}))return;const _0x1a0ac4=_0x4cfc31['modelRange']['start']['nodeAfter'];_0x3982be['writer']['setAttribute']('vid_start',_0x5c0092['getAttribute']('vid_start'),_0x1a0ac4),_0x3982be['writer']['setAttribute']('vid_end',_0x5c0092['getAttribute']('vid_end'),_0x1a0ac4);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3d2948=>{_0x3d2948['on']('element',(_0x150052,_0x170301,_0x2d6b03)=>{if(!_0x2d6b03['consumable']['consume'](_0x170301['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x170301['modelRange']['isCollapsed'])return;const _0x4cf2dd=_0x170301['modelRange']['start']['nodeAfter'];_0x4cf2dd['hasAttribute']('vid_start')||_0x4cf2dd['hasAttribute']('vid')||(_0x2d6b03['writer']['setAttribute']('vid_start',_0x170301['viewItem']['getAttribute']('vid_start'),_0x4cf2dd),_0x2d6b03['writer']['setAttribute']('vid_end',_0x170301['viewItem']['getAttribute']('vid_end'),_0x4cf2dd));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4c4aa5=>_0x4c4aa5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5d5c34,[,_0x5e284c])=>{['vid_start','vid_end','vid']['includes'](_0x5e284c)&&(_0x5d5c34['return']=!0x0,_0x5d5c34['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xf82f97=>{_0xf82f97['on']('attribute:vid',(_0x1c7c5c,_0x299253,_0x245735)=>{if('\x20'!=_0x299253['item']['data']||_0x299253['item']['parent']['maxOffset']>0x1)return;if(!_0x245735['consumable']['consume'](_0x299253['item'],_0x1c7c5c['name']))return;const _0x125b82=_0x245735['writer'],_0x4894b4=_0x245735['mapper']['toViewRange'](_0x299253['range']);_0x125b82['wrap'](_0x4894b4,_0x125b82['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x272e9b){const _0x10ff88=_0x272e9b['plugins']['get']('RevisionViewer');return(_0x2d52bd,_0x239790,_0x1fbc86)=>{const _0x2fadbd=_0x239790['markerName']['split'](':')[0x1],_0x43ebfb=_0x10ff88['_getChangeFromId'](_0x2fadbd);if(!_0x43ebfb)return null;const _0x5edd6b='add'==_0x43ebfb['type']?'split':'merge';if(!_0x1fbc86['consumable']['test'](_0x239790['markerRange'],_0x2d52bd['name']))return;const _0x4dd977=_0x239790['markerRange']['getWalker'](),_0x475cc3=_0x239790['markerRange']['start'],_0x43967b=_0x272e9b['model']['schema'];let _0x16c94b=null,_0x3b8c55=null,_0x2307d4=!0x1,_0x4b7c69=!0x1;for(const _0x4106a7 of _0x4dd977){const _0x341cec=_0x4106a7['item'];_0x2307d4=_0x2307d4||_0x43967b['isContent'](_0x341cec);const _0x27b3af=_0x1fbc86['mapper']['toViewElement'](_0x341cec);if(_0x27b3af&&_0x27b3af['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4106a7['type']&&(_0x43967b['isBlock'](_0x341cec)&&!_0x43967b['isLimit'](_0x341cec)&&(_0x341cec['nextSibling']||_0x475cc3['isAtEnd']?_0x16c94b&&_0x16c94b['parent']==_0x341cec||(_0x16c94b=_0x341cec,_0x50279a(_0x4106a7['previousPosition']),_0x4b7c69=!0x0):_0x3b8c55=_0x3b8c55||_0x4106a7['previousPosition']));}function _0x50279a(_0x29b60f){const _0x585f09=_0x1fbc86['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5edd6b}),_0x3278e3=_0x1fbc86['mapper']['toViewPosition'](_0x29b60f);_0x43ebfb['data']['isSuggestion']&&_0x1fbc86['writer']['addClass']('ck-suggestion-marker-'+_0x5edd6b+'-new',_0x585f09),_0x10ff88['activeChange']==_0x43ebfb&&_0x1fbc86['writer']['addClass']('ck-suggestion-marker--active',_0x585f09),_0x1fbc86['writer']['insert'](_0x3278e3,_0x585f09),_0x1fbc86['mapper']['bindElementToMarker'](_0x585f09,_0x239790['markerName']);}_0x2307d4||_0x4b7c69||!_0x3b8c55||_0x50279a(_0x3b8c55);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x153ba1,_0x102a67,_0x4f4dcf)=>{const _0x577746=_0x4f4dcf['mapper']['markerNameToElements'](_0x102a67['markerName']);if(_0x577746){for(const _0x3625af of _0x577746)(_0x3625af['hasClass']('ck-suggestion-marker-split')||_0x3625af['hasClass']('ck-suggestion-marker-merge'))&&(_0x4f4dcf['mapper']['unbindElementFromMarkerName'](_0x3625af,_0x102a67['markerName']),_0x4f4dcf['writer']['remove'](_0x3625af));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xbfd5b3,_0x5c54ce,_0x2f1c5c)=>{const _0x507bd7=_0x5c54ce['markerName']['split'](':')[0x1],_0x163e64=this['_getChangeFromId'](_0x507bd7);if(!_0x163e64)return null;const _0x45c818='add'==_0x163e64['type']?'split':'merge';if(_0x2f1c5c['consumable']['test'](_0x5c54ce['markerRange'],_0xbfd5b3['name']))for(const _0x196674 of _0x5c54ce['markerRange']['getItems']()){if(!_0x196674['is']('element','softBreak'))continue;const _0x2decbc=_0x2f1c5c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45c818}),_0x5f0c76=_0x2f1c5c['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x196674));_0x163e64['data']['isSuggestion']&&_0x2f1c5c['writer']['addClass']('ck-suggestion-marker-'+_0x45c818+'-new',_0x2decbc),this['activeChange']==_0x163e64&&_0x2f1c5c['writer']['addClass']('ck-suggestion-marker--active',_0x2decbc),_0x2f1c5c['writer']['insert'](_0x5f0c76,_0x2decbc),_0x2f1c5c['mapper']['bindElementToMarker'](_0x2decbc,_0x5c54ce['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2c322a=>{for(const _0x11b57d of this['editor']['model']['document']['getRootNames']()){const _0x50c4cc=this['editor']['model']['document']['getRoot'](_0x11b57d),_0x491d9f=this['editor']['editing']['view']['document']['getRoot'](_0x11b57d);if(_0x491d9f){const _0x5d330b=_0x50c4cc['getAttribute']('revisionHistoryAttachChange');if(_0x2c322a['removeAttribute']('data-change-id',_0x491d9f),_0x2c322a['removeClass']('ck-revision-history-root-add',_0x491d9f),_0x2c322a['removeClass']('ck-revision-history-root-remove',_0x491d9f),_0x2c322a['removeClass']('ck-revision-history-root--active',_0x491d9f),_0x5d330b){const _0x3bb58c=this['_getChangeFromId'](_0x5d330b);if(!_0x3bb58c)return null;_0x2c322a['setAttribute']('data-change-id',_0x5d330b,_0x491d9f),_0x2c322a['addClass']('ck-revision-history-root-'+_0x3bb58c['type'],_0x491d9f),this['activeChange']==_0x3bb58c&&_0x2c322a['addClass']('ck-revision-history-root--active',_0x491d9f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1cafbe=>'revision-comment:'+_0x1cafbe,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4b68ea=>'revision-suggestion:'+_0x4b68ea,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x549534=>({'name':'suggestion:'+_0x549534,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x372982=>{const _0x46112e=_0x372982['markerName']['split'](':')[0x1];return'insertion'!=_0x46112e&&'deletion'!=_0x46112e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x46112e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Ot(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Ot(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x370988,_0x4f5b28,_0x16c19d)=>{const _0x30a3a7=_0x16c19d['mapper']['markerNameToElements'](_0x4f5b28['markerName']);if(_0x30a3a7){for(const _0x543105 of _0x30a3a7)_0x543105['is']('uiElement')&&(_0x16c19d['mapper']['unbindElementFromMarkerName'](_0x543105,_0x4f5b28['markerName']),_0x16c19d['writer']['remove'](_0x543105));}},{'priority':'high'});}['_getChangeFromId'](_0x5cd85c){return this['_changeIdToChange']['get'](_0x5cd85c);}['_getViewForChange'](_0x95643c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Nt(this['editor']['locale'],_0x95643c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x58ba89,_0x44e4cf,_0x470b6b,_0x13a39f)=>{_0x13a39f&&this['_balloon']['remove'](_0x13a39f),_0x470b6b&&(this['_balloon']['add']({'view':_0x470b6b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x246924=this['editor']['editing'],_0x418b7a=this['_getChangeFromId'](_0x470b6b['changeId']);let _0x19e8c4;if(_0x418b7a['data']['isOnRoot']){const _0x2e436a=_0x246924['view']['getDomRoot'](_0x418b7a['rootName']);_0x19e8c4=Array['from'](_0x2e436a['getClientRects']());}else{const _0x2b591f=this['editor']['model']['markers']['get']('revision:'+_0x470b6b['changeId']);_0x19e8c4=Array['from'](_0x246924['mapper']['markerNameToElements'](_0x2b591f['name']))['map'](_0x18f2ad=>_0x246924['view']['domConverter']['mapViewToDom'](_0x18f2ad))['map'](_0x1db634=>Array['from'](_0x1db634['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x19e8c4[0x0];return _0x19e8c4['find'](_0x19cb2d=>_0x19cb2d['top']-0x3<=this['_activeViewTarget']['y']&&_0x19cb2d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x19cb2d['left']-0x3<=this['_activeViewTarget']['x']&&_0x19cb2d['right']+0x3>=this['_activeViewTarget']['x'])||_0x19e8c4[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1a48c7,_0x3301d6,_0x38a639,_0x20ec38)=>{this['activeView']=_0x38a639?this['_getViewForChange'](_0x38a639):null,this['editor']['model']['change'](()=>{const _0xa6d8a0=this['editor']['editing'];_0x20ec38&&(_0x20ec38['data']['isOnRoot']?_0xa6d8a0['view']['change'](_0x48e91a=>{_0x48e91a['removeClass']('ck-revision-history-root--active',_0xa6d8a0['view']['document']['getRoot'](_0x20ec38['rootName']));}):_0xa6d8a0['reconvertMarker']('revision:'+_0x20ec38['id'])),_0x38a639&&(_0x38a639['data']['isOnRoot']?_0xa6d8a0['view']['change'](_0x1bfa20=>{_0x1bfa20['addClass']('ck-revision-history-root--active',_0xa6d8a0['view']['document']['getRoot'](_0x38a639['rootName']));}):_0xa6d8a0['reconvertMarker']('revision:'+_0x38a639['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2d3925,_0x309778)=>{if(this['activeChange'])return;const _0x3105fe=this['_findChangeIdFromDomTarget'](_0x309778['target']),_0x579a58=this['_changeIdToChange']['get'](_0x3105fe);_0x579a58?(this['_activeViewTarget']={'x':_0x309778['domEvent']['x'],'y':_0x309778['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x579a58)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xad1fc4,_0x1a79f6)=>{const _0x19728b=this['_findChangeIdFromDomTarget'](_0x1a79f6['target']),_0x410d39=this['_changeIdToChange']['get'](_0x19728b);_0x410d39?(this['_activeViewTarget']={'x':_0x1a79f6['domEvent']['x'],'y':_0x1a79f6['domEvent']['y']},_0x410d39===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x410d39):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x582b35){do{const _0x1a1bfa=_0x582b35['getAttribute']('data-change-id');if(_0x1a1bfa)return _0x1a1bfa;_0x582b35=_0x582b35['parent'];}while(_0x582b35);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4f938a=>{for(const _0x3c997f of this['editor']['model']['markers'])_0x4f938a['removeMarker'](_0x3c997f);});}}function Ot(_0x1d2eb7,_0x58edee){return(_0x423018,_0x37e6c5,_0x27ac0c)=>{if(!_0x27ac0c['consumable']['test'](_0x37e6c5['markerRange'],_0x423018['name']))return;const _0x5bba94=_0x37e6c5['markerRange']['getWalker'](),_0x4de292=_0x37e6c5['markerRange']['start'],_0x2f6842=_0x1d2eb7['model']['schema'];let _0x33f0cc=null,_0x3f4b9c=null,_0x6218c=!0x1,_0x17d8c4=!0x1;for(const _0x444ce6 of _0x5bba94){const _0x1e9e23=_0x444ce6['item'];_0x6218c=_0x6218c||_0x2f6842['isContent'](_0x1e9e23);const _0x4e2e50=_0x27ac0c['mapper']['toViewElement'](_0x1e9e23);if(_0x4e2e50&&_0x4e2e50['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x444ce6['type']&&(_0x2f6842['isBlock'](_0x1e9e23)&&!_0x2f6842['isLimit'](_0x1e9e23)&&(_0x1e9e23['nextSibling']||_0x4de292['isAtEnd']?_0x33f0cc&&_0x33f0cc['parent']==_0x1e9e23||(_0x33f0cc=_0x1e9e23,_0x33c743(_0x444ce6['previousPosition']),_0x17d8c4=!0x0):_0x3f4b9c=_0x3f4b9c||_0x444ce6['previousPosition']));}function _0x33c743(_0x52d706){const _0x369798=_0x27ac0c['mapper']['toViewPosition'](_0x52d706),_0x101765=_0x27ac0c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x58edee});_0x27ac0c['writer']['insert'](_0x369798,_0x101765),_0x27ac0c['mapper']['bindElementToMarker'](_0x101765,_0x37e6c5['markerName']);}_0x6218c||_0x17d8c4||!_0x3f4b9c||_0x33c743(_0x3f4b9c);};}class Ct extends _0x721afc{constructor(_0x2aea30){super(_0x2aea30);const _0x23cb25=_0x2aea30['plugins']['get'](St);this['affectsData']=!0x1,this['listenTo'](_0x23cb25,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x23cb25,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x53b9c6=this['editor'],_0x104aaa=_0x53b9c6['plugins']['get'](St),_0x229de0=_0x104aaa['isReady']?_0x104aaa['diff']['newRevisionId']:null;_0x53b9c6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x229de0);}['refresh'](){const {isReady:_0x1b71d0,isEnabled:_0x3d0ed7,repository:_0x9da698,diff:_0x18a0e4}=this['editor']['plugins']['get'](St),_0x66d8f9=_0x18a0e4&&_0x9da698['getLaterVisibleRevision'](_0x18a0e4['newRevisionId']);this['isEnabled']=_0x1b71d0&&_0x3d0ed7&&Boolean(_0x66d8f9);}}class Mt extends _0x721afc{['_step'];constructor(_0x5038be,{direction:_0x1b7fa4}){super(_0x5038be);const _0x274000=_0x5038be['plugins']['get'](St);this['affectsData']=!0x1,this['_step']='forward'===_0x1b7fa4?0x1:-0x1,this['listenTo'](_0x274000,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x274000,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x274000,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x27d7bc=this['editor'],_0x5f0691=_0x27d7bc['plugins']['get'](St),{isNavigationMode:_0x37f52a,currentChangeNumber:_0x3e3a56}=_0x5f0691;let _0x6ac5bb;if(_0x5f0691['activeChange']=_0x37f52a?_0x5f0691['diff']['changes']['get'](_0x3e3a56+this['_step']):_0x5f0691['diff']['changes']['first'],_0x5f0691['activeChange']['data']['isOnRoot'])_0x6ac5bb=_0x27d7bc['editing']['view']['getDomRoot'](_0x5f0691['activeChange']['rootName']);else{const _0x215f48=_0x27d7bc['model']['markers']['get']('revision:'+_0x5f0691['activeChange']['id']);_0x6ac5bb=_0x56848e(_0x27d7bc['editing'],_0x215f48);}_0x1d1b55({'target':_0x6ac5bb,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4c7fec,currentChangeNumber:_0x73612c,numberOfChanges:_0x52489a,isReady:_0x5d9801,isEnabled:_0x147bf5}=this['editor']['plugins']['get'](St);this['isEnabled']=!!(_0x147bf5&&_0x5d9801&&_0x52489a)&&(!_0x4c7fec||(0x1===this['_step']?_0x73612c<_0x52489a-0x1:_0x73612c>0x0));}}class Dt extends _0x368d7b{constructor(_0x45509e){super(_0x45509e);const _0xb0f012=this['bindTemplate'],_0x4bab13=new _0xe549ae(_0x45509e),_0x2a3555=new _0xe549ae(_0x45509e);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',(_0x32ebd4,_0x563452)=>_0x32ebd4&&_0x563452>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5a9919,_0x2595b3,_0x3d17d7,_0x7a0742)=>{if(!_0x5a9919)return wt(_0x45509e,'Loading...');if(!_0x3d17d7)return wt(_0x45509e,'No\x20changes');const _0x5ad27f=wt(_0x45509e,'NUMBER_OF_CHANGES',_0x3d17d7);return _0x7a0742?wt(_0x45509e,'X_OF_Y_CHANGES',[_0x2595b3+0x1,_0x3d17d7]):_0x5ad27f;}),_0x4bab13['set']({'label':wt(_0x45509e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x39edbb}),_0x2a3555['set']({'label':wt(_0x45509e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x53cc03}),_0x4bab13['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2a3555['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4bab13['on']('execute',()=>this['fire']('execute','backward')),_0x2a3555['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',_0xb0f012['if']('_isStatusLabelVisible','ck-hidden',_0x181e96=>!_0x181e96)]},'children':[{'text':_0xb0f012['to']('isNavigationMode',_0x7fd661=>_0x7fd661?wt(_0x45509e,'EDIT_X_OF_Y_REVISIONS')+':\x20':wt(_0x45509e,'Total')+':\x20')}]},{'text':_0xb0f012['to']('_statusText')}]},new et(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4bab13,_0x2a3555]}]});}}const Tt='ck-editor__editable__loading-overlay';class Vt extends _0x213e3a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x37bdf9=this['editor']['editing']['view'];_0x37bdf9['change'](_0x56bb17=>{for(const _0x84b70f of _0x37bdf9['document']['roots'])_0x56bb17['addClass'](Tt,_0x84b70f);});}['hide'](){const _0x46bc1a=this['editor']['editing']['view'];_0x46bc1a['change'](_0x3119dd=>{for(const _0x3202d3 of _0x46bc1a['document']['roots'])_0x3119dd['removeClass'](Tt,_0x3202d3);});}}class Ht extends _0x213e3a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[St,Vt];}['init'](){const _0x23b6d9=this['editor'],_0x39652b=_0x23b6d9['plugins']['get'](St),_0x2a5359=_0x23b6d9['plugins']['get'](Vt);_0x23b6d9['ui']['componentFactory']['add']('exitToEditing',_0x42afbd=>{const _0x51c239=new _0xe549ae(_0x42afbd);return _0x51c239['set']({'label':wt(_0x42afbd,'Back\x20to\x20editing'),'icon':_0xdf67ea,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x51c239,'execute',()=>{_0x23b6d9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x51c239;}),_0x23b6d9['ui']['componentFactory']['add']('restoreRevision',_0x7e8cd8=>{const _0x41b567=new _0xe549ae(_0x7e8cd8);return _0x41b567['set']({'label':wt(_0x7e8cd8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x41b567['bind']('isEnabled')['to'](_0x23b6d9['commands']['get']('restoreRevision')),this['listenTo'](_0x41b567,'execute',()=>_0x23b6d9['execute']('restoreRevision')),_0x41b567;}),_0x23b6d9['ui']['componentFactory']['add']('changesNavigation',_0x2aa7eb=>{const _0x1f0644=new Dt(_0x2aa7eb),_0x4e3255=_0x23b6d9['commands']['get']('showPreviousChange'),_0x3ab457=_0x23b6d9['commands']['get']('showNextChange');return _0x1f0644['bind']('isBackwardNavigationEnabled')['to'](_0x4e3255,'isEnabled'),_0x1f0644['bind']('isForwardNavigationEnabled')['to'](_0x3ab457,'isEnabled'),_0x1f0644['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39652b),this['listenTo'](_0x1f0644,'execute',(_0x1663bd,_0x206f8a)=>{_0x23b6d9['execute']('forward'===_0x206f8a?'showNextChange':'showPreviousChange');}),_0x1f0644;}),_0x2a5359['show'](),_0x39652b['on']('change:isReady',(_0x271ad2,_0x152137,_0x28025f)=>{_0x28025f?_0x2a5359['hide']():_0x2a5359['show']();});}}class Pt extends _0x150e64{['_resizeObserver']=null;constructor(_0x18c47a,_0x28eb84){super(_0x18c47a,_0x28eb84);const _0x19a773=this['bindTemplate'];this['set']({'label':wt(_0x18c47a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=wt(_0x18c47a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x19a773['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new _0x5a3d16(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x288bba=this['fieldView']['element'];this['_tooltipString']=_0x288bba['scrollWidth']>_0x288bba['clientWidth']&&_0x288bba['value']||'';}}class Ut extends _0x368d7b{constructor(_0x27fbfb,_0x45e0db,_0x27f47c){super(_0x27fbfb);const _0x207529=new nt();_0x207529['set']({'content':_0x5276e4,'viewBox':'0\x200\x2011\x2010'});const _0x10e9c7=['ck','ck-revision-history-sidebar__revision-author'];_0x27f47c&&_0x10e9c7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4324c9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':wt(_0x27fbfb,_0x27f47c?'Revision\x20creator':'Revision\x20author')},'children':[_0x207529,_0x45e0db['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x10e9c7},'children':_0x4324c9});}}function Lt(_0x10e990,_0x47b08d){const _0x324893=_0x10e990['bindTemplate'],_0x4ecc01=_0x10e990['locale'],_0x490a75=_0x50a3b3(_0x4ecc01);_0x490a75['panelPosition']='sw';const _0x3aa594=function(_0x4123e8,_0xc0ef51){const _0xf77696=function(_0x34b452,_0x1a7f1d){const _0xd0aeb4=_0x34b452['locale'],_0x32024a={'Compare\x20against\x20selected':wt(_0xd0aeb4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':wt(_0xd0aeb4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':wt(_0xd0aeb4,'Restore\x20this\x20revision')};return _0x1a7f1d['map'](_0x2e5df0=>{const _0x51c72a=_0x32024a[_0x2e5df0['name']];return _0x51c72a&&_0x51c72a!==_0x2e5df0['name']&&(_0x2e5df0['name']=_0x51c72a),_0x2e5df0;});}(_0x4123e8,_0xc0ef51),_0xa83bbb=new _0x3b3aab();for(const _0x330a07 of _0xf77696){const _0x4d140c={'type':'button','model':new rt({'label':_0x330a07['name'],'class':_0x330a07['class'],'withText':!0x0,'role':'menuitem','_action':_0x330a07['action']})};_0x4d140c['model']['bind']('isEnabled')['to'](_0x4123e8,'isActionsDropdownOpen',_0x4091d7=>'function'!=typeof _0x330a07['isEnabled']||(!_0x4091d7||_0x330a07['isEnabled'](_0x4123e8))),_0xa83bbb['add'](_0x4d140c);}return _0xa83bbb;}(_0x10e990,_0x47b08d);return _0x10e990['bind']('isActionsDropdownOpen')['to'](_0x490a75,'isOpen'),_0x490a75['buttonView']['set']({'label':wt(_0x4ecc01,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4eba00}),_0x490a75['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x324893['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x324893['to'](_0x574253=>_0x574253['stopPropagation']())}}),_0x490a75['on']('execute',_0x283a72=>{_0x10e990['isReady']&&'function'==typeof _0x283a72['source']['_action']&&_0x283a72['source']['_action'](_0x10e990);}),ot(_0x490a75,_0x3aa594,{'role':'menu'}),_0x490a75['listenTo'](_0x10e990,'change:isActionsDropdownOpen',(_0x3f22ba,_0x455224,_0x26e536)=>{if(_0x26e536)for(const _0x313148 of _0x490a75['listView']['items']){const _0x3282fc=_0x313148['children']['first'],_0x194cde=_0x47b08d['find'](_0x519a0c=>_0x519a0c['action']===_0x3282fc['_action'])['isVisible'];_0x313148['isVisible']=void 0x0===_0x194cde||_0x194cde(_0x10e990);}}),_0x490a75;}class Ft extends/* #__PURE__ -- @preserve */
27
- _0x4b963f(_0x368d7b){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x55e2c6,_0x5c4433,_0x534a3e,_0x21268f){super(_0x55e2c6);const _0x78f05f=this['bindTemplate'],_0x2acfc9=function(_0x393a72,_0x1cdda1){const _0x44b461=Array['from'](_0x1cdda1['authors'])['filter'](_0x175bd1=>_0x175bd1!=_0x1cdda1['creator']);return _0x1cdda1['creator']&&_0x44b461['unshift'](_0x1cdda1['creator']),_0x44b461['map'](_0x2a4d16=>new Ut(_0x393a72,_0x2a4d16,_0x2a4d16==_0x1cdda1['creator']));}(_0x55e2c6,_0x5c4433);this['id']=_0x5c4433['id'],this['_revision']=_0x5c4433,this['_requireRevisionName']=_0x21268f,this['bind']('name','createdAt')['to'](_0x5c4433),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x432e5c=>{return _0x2fbfcc=_0x55e2c6['uiLanguage'],(_0x2340f5=_0x432e5c)['toLocaleDateString'](_0x2fbfcc,{'month':'long','day':'numeric'})+',\x20'+_0x2340f5['toLocaleTimeString'](_0x2fbfcc,{'hour':'numeric','minute':'numeric'});var _0x2fbfcc,_0x2340f5;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new Pt(_0x55e2c6,_0x26b657),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x228d74=>_0x228d74||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x224a5b,_0x1686e1)=>_0x224a5b&&_0x1686e1),this['revisionActionsView']=_0x534a3e&&_0x534a3e['length']?Lt(this,_0x534a3e):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x78f05f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x78f05f['if']('isEnabled','ck-disabled',_0x561123=>!_0x561123),_0x78f05f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x78f05f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x78f05f['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':_0x78f05f['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':_0x2acfc9}]},this['revisionActionsView']],'on':{'click':_0x78f05f['to'](_0x5f1b0f=>{_0x5f1b0f['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4ed0df=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4ed0df,'change',()=>{this['_requireRevisionName']&&!_0x4ed0df['value']||this['fire']('setName',{'id':this['id'],'name':_0x4ed0df['value']}),_0x4ed0df['value']||(_0x4ed0df['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function $t(_0x16a6c9,_0x1e6de5){const _0x4c7b2a=ft['fromJSDate'](_0x16a6c9)['setLocale'](_0x1e6de5),_0x2d5aa0=ft['local'](),_0x2994e2=_0x2d5aa0['minus']({'days':0x1})['startOf']('day');let _0x2e2f90,_0x1e94b0;return _0x4c7b2a['hasSame'](_0x2d5aa0,'day')?(_0x2e2f90=_0x4c7b2a['startOf']('day')['toJSDate'](),_0x1e94b0=_0x4c7b2a['toRelativeCalendar']()):_0x4c7b2a['hasSame'](_0x2994e2,'day')?(_0x2e2f90=_0x2994e2['toJSDate'](),_0x1e94b0=_0x4c7b2a['toRelativeCalendar']()):_0x4c7b2a['hasSame'](_0x2d5aa0,'week')?(_0x2e2f90=_0x4c7b2a['startOf']('week')['toJSDate'](),_0x1e94b0=_0x4c7b2a['weekdayLong']||''):_0x4c7b2a['hasSame'](_0x2d5aa0,'year')?(_0x2e2f90=_0x4c7b2a['startOf']('month')['toJSDate'](),_0x1e94b0=_0x4c7b2a['monthLong']||''):(_0x2e2f90=_0x4c7b2a['startOf']('year')['toJSDate'](),_0x1e94b0=String(_0x4c7b2a['year'])),{'startDate':_0x2e2f90,'localizedPeriodName':_0x1e94b0};}class jt extends _0x368d7b{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x251ca6,_0x27f2a3,_0x524495,_0x10b0dc){super(_0x251ca6);const _0xe934aa=$t(_0x27f2a3,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x27f2a3,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x524495,this['_requireRevisionName']=_0x10b0dc,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':_0xe934aa}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x416cb5){const _0x4aedf0=new Ft(this['locale'],_0x416cb5,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4aedf0);}['removeRevision'](_0x3ff6ad){const _0x272382=this['revisionViews']['find'](_0x3bcf3b=>_0x3bcf3b['id']===_0x3ff6ad['id']);this['revisionViews']['remove'](_0x272382);}}class Bt extends _0x368d7b{constructor(_0x93e373){super(_0x93e373);const _0x4ed28c=new nt();_0x4ed28c['content']=_0x19dcaf,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4ed28c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[wt(_0x93e373,'Revision\x20history')]}]});}}class Kt extends _0x368d7b{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3e90e0,_0x30a622,_0x39e714,_0x3312af){super(_0x3e90e0);const _0x3aec4e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x30a622,this['_revisionActions']=_0x39e714,this['_requireRevisionName']=_0x3312af,this['on']('select',(_0xcc683d,_0x599099)=>{this['fire']('revisionSelected',_0x599099);}),this['on']('setName',(_0x1d6015,_0x5cbbff)=>{this['fire']('revisionSetName',_0x5cbbff);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Bt(_0x3e90e0),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3aec4e['if']('isEnabled','ck-disabled',_0x16064c=>!_0x16064c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x545709 of this['_revisions'])this['_addRevision'](_0x545709);this['_revisions']['on']('add',(_0xe031f0,_0x50743c)=>{this['_addRevision'](_0x50743c);}),this['_revisions']['on']('remove',(_0x41436e,_0x56bfa5)=>{this['_removeRevision'](_0x56bfa5);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4a562a=>_0x4a562a['revisionViews']['map'](_0x315e27=>_0x315e27))['flat']();}['selectRevision'](_0x5a3d83){for(const _0x125123 of this['revisionViews'])_0x5a3d83&&_0x5a3d83['id']===_0x125123['id']?_0x125123['select']():_0x125123['deselect']();}['highlightRevisions'](_0xa86d68){for(const _0x267147 of this['revisionViews'])_0xa86d68['some'](({id:_0x3ab31a})=>_0x3ab31a===_0x267147['id'])?_0x267147['highlight']():_0x267147['unhighlight']();}['_addRevision'](_0xaa88e0){const _0x201299=$t(_0xaa88e0['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x519b6e=this['timePeriodViews']['get'](0x0);_0x519b6e&&_0x519b6e['startDate']['getTime']()===_0x201299['getTime']()||(_0x519b6e=new jt(this['locale'],_0x201299,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x519b6e)),_0x519b6e['addRevision'](_0xaa88e0);}['_removeRevision'](_0x495cd6){const _0x8026be=$t(_0x495cd6['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x8026be)['removeRevision'](_0x495cd6);}['_getTimePeriodViewByStartDate'](_0x4d1c0c){return this['timePeriodViews']['find'](_0x4b3d08=>_0x4b3d08['startDate']['getTime']()===_0x4d1c0c['getTime']());}}class qt extends _0x213e3a{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x291460,uid as _0x52b761,Collection as _0x1cde0c,logWarning as _0x5c54ca,FocusTracker as _0x5ba765,KeystrokeHandler as _0x3bd9b0,scrollViewportToShowTarget as _0x459e9b,ResizeObserver as _0x3f4331,ElementReplacer as _0x15275e,CKEditorError as _0x12e49f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2fa55e,set as _0x3edbfc,unset as _0x5d62af,isEqual as _0xf9d81b}from'es-toolkit/compat';import{Plugin as _0x559650,PendingActions as _0x421006,Command as _0x7c0307,ElementApiMixin as _0x37e804,Editor as _0x551525}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3cd60e,getMarkerDomElement as _0xb4ec44,ConfirmMixin as _0x37d554,sanitizeEditorConfig as _0x22db97}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ViewContainerElement as _0x515d8e,ViewAttributeElement as _0x57c054,ViewEmptyElement as _0x5b0d31,ViewRawElement as _0x20f6e4,ViewUIElement as _0x2658b1,ViewDocumentFragment as _0x148e60,ViewText as _0x1c6ccf,ViewElement as _0x555208,ModelElement as _0x52bbda,ModelRange as _0x31a34f,ModelPosition as _0x211968,ModelDocumentFragment as _0x50023d,ModelText as _0x122bf9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4c4daa,IconChevronUp as _0x1a3214,IconChevronDown as _0x3ff616,IconUndo as _0x27acbb,IconUser as _0x5572f7,IconThreeVerticalDots as _0x9fbd2c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0xb55e7d,View as _0xca4fb9,submitHandler as _0x2527b5,LabeledFieldView as _0xe3a080,createLabeledInputText as _0x401eb8,createDropdown as _0x12c2f1,ListView as _0x1c0eaf,ListItemView as _0x37ec86,ButtonView as _0xf43743,MenuBarMenuView as _0x492a74,MenuBarMenuListView as _0x146b6c,MenuBarMenuListItemView as tt,MenuBarMenuListItemButtonView as it,ContextualBalloon as st,ToolbarSeparatorView as et,IconView as nt,addListToDropdown as ot,UIModel as rt,EditorUI as at,normalizeToolbarConfig as ht,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as ft}from'luxon';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x291460(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x426074){super(),this['id']=_0x426074['id']||_0x52b761(),this['creator']=_0x426074['creator']||null,this['authors']=_0x426074['authors']||[],this['diffData']=_0x426074['diffData']||null,this['toVersion']=_0x426074['toVersion']||0x0,this['fromVersion']=_0x426074['fromVersion']||0x0,this['set']('name',_0x426074['name']||''),this['set']('createdAt',_0x426074['createdAt']||new Date()),this['set']('attributes',_0x426074['attributes']||{});}['setName'](_0x2d21d0){this['_update']({'name':_0x2d21d0});}['setAttribute'](_0x342e8b,_0x14c81f){const _0x2186a3=_0x2fa55e(this['attributes']);_0x3edbfc(_0x2186a3,_0x342e8b,_0x14c81f),this['_update']({'attributes':_0x2186a3});}['removeAttribute'](_0x2ce9a4){const _0x218dcb=_0x2fa55e(this['attributes']);_0x5d62af(_0x218dcb,_0x2ce9a4),this['_update']({'attributes':_0x218dcb});}['_update'](_0x4e91d4,_0x1b276b=!0x1){let _0x13f4f1=!0x1;const _0x3b83d0={'id':this['id']},_0x212815=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2ed8f4 of _0x212815){const _0x4b2c84=_0x4e91d4[_0x2ed8f4];void 0x0!==_0x4b2c84&&_0x4b2c84!==this[_0x2ed8f4]&&(this[_0x2ed8f4]=_0x4b2c84,_0x3b83d0[_0x2ed8f4]=_0x4b2c84,_0x13f4f1=!0x0);}_0x13f4f1&&(_0x3b83d0['authors']&&(_0x3b83d0['authorsIds']=_0x3b83d0['authors']['map'](_0x573a2d=>_0x573a2d['id']),delete _0x3b83d0['authors']),this['fire']('_update',_0x3b83d0,_0x1b276b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x212fa0=>_0x212fa0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class gt extends _0x559650{['_revisions'];static get['requires'](){return[_0x3cd60e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x272042){super(_0x272042),this['_revisions']=new _0x1cde0c();}['afterInit'](){!async function(_0xf126ba){const _0x2adf14=_0x598982([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0xcc0747=0xeb829,_0x2a7b2d=0x359e09b0,_0x182080=0x35998e48^_0x2a7b2d,_0x4c57fb=window[_0x598982([0x44,0x61,0x74,0x65])][_0x598982([0x6e,0x6f,0x77])](),_0x5159dd=_0xf126ba[_0x598982([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f31e3=new window[(_0x598982([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x163e78=>{_0x5159dd[_0x598982([0x6f,0x6e,0x63,0x65])](_0x598982([0x72,0x65,0x61,0x64,0x79]),_0x163e78);}),_0x502524={[_0x598982([0x6b,0x74,0x79])]:_0x598982([0x45,0x43]),[_0x598982([0x75,0x73,0x65])]:_0x598982([0x73,0x69,0x67]),[_0x598982([0x63,0x72,0x76])]:_0x598982([0x50,0x2d,0x32,0x35,0x36]),[_0x598982([0x78])]:_0x598982([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]),[_0x598982([0x79])]:_0x598982([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]),[_0x598982([0x61,0x6c,0x67])]:_0x598982([0x45,0x53,0x32,0x35,0x36])},_0x25981e=_0x5159dd[_0x598982([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x598982([0x67,0x65,0x74])](_0x598982([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54fa94(){let _0x45c15c,_0x165072=null,_0x18e1c0=null;try{if(_0x25981e==_0x598982([0x47,0x50,0x4c]))return _0x598982([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45c15c=_0x509ce1(),!_0x45c15c)return _0x598982([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45c15c[_0x598982([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18e1c0=_0x6163ac(_0x45c15c[_0x598982([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45c15c[_0x598982([0x6a,0x74,0x69])])),await _0x263950()?_0x41f600()?_0x3877c8()?_0x598982([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28eb6c()?(_0x45c15c[_0x598982([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x598982([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x165072=_0xd1ff95(_0x598982([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x268476()):_0x598982([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x598982([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x598982([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x598982([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3877c8(){const _0x3e1373=[_0x598982([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x598982([0x74,0x72,0x69,0x61,0x6c])][_0x598982([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c15c[_0x598982([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c57fb/0x3e8:0xe10*_0x182080;return _0x45c15c[_0x598982([0x65,0x78,0x70])]<_0x3e1373;}function _0x41f600(){const _0x3995fe=_0x45c15c[_0x598982([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3995fe)return!0x1;if(_0x3995fe[_0x598982([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598982([0x2a])))return!0x0;if(_0x3995fe[_0x598982([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598982([0x52,0x48])))return!0x0;if(_0x3995fe[_0x598982([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598982([0x52,0x52,0x48]))){if(_0x13dcfc())return!0x0;if(_0x160c00()||_0xa148df())return!0x0;}return!0x1;}function _0x28eb6c(){const _0x16be3e=_0x45c15c[_0x598982([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16be3e||0x0==_0x16be3e[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32b9f7}=new URL(window[_0x598982([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x16be3e[_0x598982([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32b9f7))return!0x0;const _0x20d30f=_0x32b9f7[_0x598982([0x73,0x70,0x6c,0x69,0x74])](_0x598982([0x2e]));return _0x16be3e[_0x598982([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3edaf6=>_0x3edaf6[_0x598982([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598982([0x2a])))[_0x598982([0x6d,0x61,0x70])](_0x102413=>_0x102413[_0x598982([0x73,0x70,0x6c,0x69,0x74])](_0x598982([0x2e])))[_0x598982([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x448fa=>_0x448fa[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x20d30f[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x598982([0x6d,0x61,0x70])](_0xab780e=>Array(_0x20d30f[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xab780e[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x598982([0x66,0x69,0x6c,0x6c])](_0xab780e[0x0]===_0x598982([0x2a])?_0x598982([0x2a]):'')[_0x598982([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xab780e))[_0x598982([0x73,0x6f,0x6d,0x65])](_0x203da0=>_0x20d30f[_0x598982([0x65,0x76,0x65,0x72,0x79])]((_0x3301f5,_0x4418cf)=>_0x203da0[_0x4418cf]===_0x3301f5||_0x203da0[_0x4418cf]===_0x598982([0x2a])));}function _0x268476(){return _0x165072&&_0x18e1c0?new window[(_0x598982([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x492f5a,_0x4deca3)=>{_0x165072[_0x598982([0x74,0x68,0x65,0x6e])](_0x492f5a,_0x4deca3),_0x18e1c0[_0x598982([0x74,0x68,0x65,0x6e])](_0x8d8b9=>{_0x8d8b9!=_0x598982([0x56,0x61,0x6c,0x69,0x64])&&_0x492f5a(_0x8d8b9);},_0x4deca3);}):_0x165072||_0x18e1c0||_0x598982([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6163ac(_0x13b08b,_0x31d47d){return new window[(_0x598982([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x227821=>{if(_0x203f09())return _0x227821(_0x598982([0x56,0x61,0x6c,0x69,0x64]));_0x177e15(),_0x5159dd[_0x598982([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x598982([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4354fa=!0x1;const _0x5bd02e=_0x52b761();function _0xd01a24(_0x1668dd){return!!_0x1668dd&&(typeof _0x1668dd===_0x598982([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1668dd===_0x598982([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1668dd[_0x598982([0x74,0x68,0x65,0x6e])]===_0x598982([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1668dd[_0x598982([0x63,0x61,0x74,0x63,0x68])]===_0x598982([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bcf58(_0x1daa26){_0x42a897(_0x1daa26)[_0x598982([0x74,0x68,0x65,0x6e])](_0x458968=>{if(!_0x458968||_0x458968[_0x598982([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x598982([0x6f,0x6b]))return _0x598982([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x184168(_0x2c9d08(_0x5bd02e+_0x31d47d))!=_0x458968[_0x598982([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x598982([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x598982([0x56,0x61,0x6c,0x69,0x64]);})[_0x598982([0x74,0x68,0x65,0x6e])](_0x1c4981=>(_0xfa1e74(),_0x1c4981),()=>{const _0x4b3be8=_0x10b34e();return null==_0x4b3be8?(_0xfa1e74(),_0x598982([0x56,0x61,0x6c,0x69,0x64])):_0x598982(_0x4c57fb-_0x4b3be8>(0x11928db0^_0x2a7b2d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x598982([0x74,0x68,0x65,0x6e])](_0x227821)[_0x598982([0x63,0x61,0x74,0x63,0x68])](()=>{_0x227821(_0x598982([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e7b89=0x35a8e730^_0x2a7b2d;function _0xfa1e74(){const _0xc5bc4b=_0x598982([0x6c,0x6c,0x63,0x74,0x2d])+_0x184168(_0x2c9d08(_0x13b08b)),_0x3d193c=_0x4ef4e4(_0x184168(window[_0x598982([0x4d,0x61,0x74,0x68])][_0x598982([0x63,0x65,0x69,0x6c])](_0x4c57fb/_0x3e7b89)));window[_0x598982([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x598982([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc5bc4b,_0x3d193c);}function _0x10b34e(){const _0x1e5532=_0x598982([0x6c,0x6c,0x63,0x74,0x2d])+_0x184168(_0x2c9d08(_0x13b08b)),_0x1f9eec=window[_0x598982([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x598982([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e5532);return _0x1f9eec?window[_0x598982([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ef4e4(_0x1f9eec),0x10)*_0x3e7b89:null;}function _0x42a897(_0x3f5115){return new window[(_0x598982([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ee75a,_0x488a4b)=>{_0x3f5115[_0x598982([0x74,0x68,0x65,0x6e])](_0x3ee75a,_0x488a4b),window[_0x598982([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x488a4b,0x359fdd70^_0x2a7b2d);});}}_0x5159dd[_0x598982([0x6f,0x6e])](_0x598982([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x146754,_0x186b12)=>{if(_0x186b12[0x0]!=_0x13b08b)return _0x227821(_0x598982([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x186b12[0x1]={..._0x186b12[0x1],[_0x598982([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5bd02e};},{[_0x598982([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x598982([0x68,0x69,0x67,0x68])}),_0x5159dd[_0x598982([0x6f,0x6e])](_0x598982([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a8e28=>{_0xd01a24(_0x4a8e28[_0x598982([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4354fa=!0x0,_0x5bcf58(_0x4a8e28[_0x598982([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x598982([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x598982([0x6c,0x6f,0x77])}),_0x4f31e3[_0x598982([0x74,0x68,0x65,0x6e])](()=>{_0x4354fa||_0x227821(_0x598982([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x203f09(){return _0x5159dd[_0x598982([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x598982([0x76,0x69,0x65,0x77])][_0x598982([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x598982([0x61,0x75,0x74,0x6f]);}function _0x177e15(){_0x5159dd[_0x598982([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x598982([0x76,0x69,0x65,0x77])][_0x598982([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x598982([0x61,0x75,0x74,0x6f]);}}function _0xd1ff95(_0x5d15b1){const _0x228811=[new window[(_0x598982([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32fdff=>setTimeout(_0x32fdff,0x3597377c^_0x2a7b2d)),_0x4f31e3[_0x598982([0x74,0x68,0x65,0x6e])](()=>new window[(_0x598982([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b85c2=>{const _0x1988e4=0x359e09b7^_0x2a7b2d,_0x223bb2=_0xf126ba[_0x598982([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1d8cbd(){_0x223bb2[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1988e4&&_0x3b85c2();}_0x1d8cbd(),_0x223bb2[_0x598982([0x6f,0x6e])](_0x598982([0x61,0x64,0x64]),_0x1d8cbd);})),new window[(_0x598982([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53a6a9=>{function _0xdcee88(){for(const _0xd3ce97 in window)if(window[_0x598982([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x598982([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xd3ce97))&&window[_0xd3ce97]==_0xcc0747)return _0x53a6a9();_0x5159dd[_0x598982([0x73,0x74,0x61,0x74,0x65])]!=_0x598982([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x598982([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdcee88,0x359e1a38^_0x2a7b2d);}_0x59094d(_0x598982([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xdcee88();})];return window[_0x598982([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x598982([0x72,0x61,0x63,0x65])](_0x228811)[_0x598982([0x74,0x68,0x65,0x6e])](()=>_0x5d15b1);}async function _0x19b83b(){if(await _0x4f31e3,_0x59094d(_0x598982([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x42e7c0=_0xf126ba[_0x598982([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xd9c3e2=_0xf126ba[_0x598982([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])](_0x42e7c0[_0x598982([0x69,0x64])]),_0x761ef4=_0x25f5e0(_0x598982([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x761ef4[_0x598982([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x42e7c0['id'],_0xd9c3e2?_0xd9c3e2['id']:null,!0x0),_0x761ef4[_0x598982([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x598982([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x761ef4[_0x598982([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x761ef4[_0x598982([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1cb1a2,void(_0x761ef4[_0x598982([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1cb1a2);}if(_0x59094d(_0x598982([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5f6b95=_0x25f5e0(_0x598982([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5f6b95[_0x598982([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x598982([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5f6b95[_0x598982([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5f6b95[_0x598982([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1cb1a2,_0x5f6b95[_0x598982([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1cb1a2;}_0x5159dd[_0x598982([0x6d,0x6f,0x64,0x65,0x6c])][_0x598982([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1cb1a2,_0x5159dd[_0x598982([0x6d,0x6f,0x64,0x65,0x6c])][_0x598982([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1cb1a2,_0x5159dd[_0x598982([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x598982([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13dcfc(){return _0x59094d(_0x598982([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x25f5e0(_0x598982([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x598982([0x73,0x74,0x61,0x74,0x65])]==_0x598982([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x160c00(){return _0x59094d(_0x598982([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 _0xa148df(){return _0x59094d(_0x598982([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x172cef(_0x144ba5){const _0x2a5653=_0x2bba9a();_0x5159dd[_0x2a5653]=_0x598982([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])+_0x144ba5,_0x144ba5[_0x598982([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x598982([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2bba9a()]=_0xcc0747),_0x144ba5!=_0x598982([0x56,0x61,0x6c,0x69,0x64])&&_0x19b83b();}function _0x2bba9a(){const _0x133a7f=window[_0x598982([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x598982([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x598982([0x6e,0x6f,0x77])]())[_0x598982([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x598982([0x2e]),'');let _0x5ac425=_0x598982([0x76]);for(let _0x2510e6=0x0;_0x2510e6<_0x133a7f[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2510e6+=0x2){let _0x446655=window[_0x598982([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x133a7f[_0x598982([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2510e6,_0x2510e6+0x2));_0x446655>=_0x2adf14[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x446655-=_0x2adf14[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ac425+=_0x2adf14[_0x446655];}return _0x5ac425;}function _0x509ce1(){const _0x2eb9bd=_0x25981e[_0x598982([0x73,0x70,0x6c,0x69,0x74])](_0x598982([0x2e]));if(0x3!=_0x2eb9bd[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5afb34(_0x2eb9bd[0x1]);function _0x5afb34(_0x3dbd5a){const _0x167c92=_0x2459f2(_0x3dbd5a);return _0x167c92&&_0x49266f()?_0x167c92:null;function _0x49266f(){const _0x40cee6=_0x167c92[_0x598982([0x6a,0x74,0x69])],_0x217eb2=window[_0x598982([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40cee6[_0x598982([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40cee6[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a98a9={..._0x167c92,[_0x598982([0x6a,0x74,0x69])]:_0x40cee6[_0x598982([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40cee6[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a98a9[_0x598982([0x76,0x63])],_0x2c9d08(_0x3a98a9)==_0x217eb2;}}}async function _0x263950(){let _0x4ad14b=!0x0;try{const _0xccc3cc=_0x25981e[_0x598982([0x73,0x70,0x6c,0x69,0x74])](_0x598982([0x2e])),[_0x5abd34,_0x415a3a,_0x43eb17]=_0xccc3cc;return _0x2ca017(_0x5abd34),await _0x4b7ac9(_0x5abd34,_0x415a3a,_0x43eb17),_0x4ad14b;}catch{return!0x1;}function _0x2ca017(_0x18b802){const _0x1bf8ae=_0x2459f2(_0x18b802);_0x1bf8ae&&_0x1bf8ae[_0x598982([0x61,0x6c,0x67])]==_0x598982([0x45,0x53,0x32,0x35,0x36])||(_0x4ad14b=!0x1);}async function _0x4b7ac9(_0x33f0c0,_0x4841d8,_0x5ac3cb){const _0x32a4a0=window[_0x598982([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x598982([0x66,0x72,0x6f,0x6d])](_0x1ffa12(_0x5ac3cb),_0x3e4c06=>_0x3e4c06[_0x598982([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ff166=new window[(_0x598982([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x598982([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33f0c0+_0x598982([0x2e])+_0x4841d8),_0x45b744=window[_0x598982([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x598982([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x45b744)return;const _0x34b111=await _0x45b744[_0x598982([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x598982([0x6a,0x77,0x6b]),_0x502524,{[_0x598982([0x6e,0x61,0x6d,0x65])]:_0x598982([0x45,0x43,0x44,0x53,0x41]),[_0x598982([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x598982([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x598982([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x45b744[_0x598982([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x598982([0x6e,0x61,0x6d,0x65])]:_0x598982([0x45,0x43,0x44,0x53,0x41]),[_0x598982([0x68,0x61,0x73,0x68])]:{[_0x598982([0x6e,0x61,0x6d,0x65])]:_0x598982([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34b111,_0x32a4a0,_0x1ff166)||(_0x4ad14b=!0x1);}}function _0x2459f2(_0x5295cf){return _0x5295cf[_0x598982([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x598982([0x65,0x79]))?JSON[_0x598982([0x70,0x61,0x72,0x73,0x65])](_0x1ffa12(_0x5295cf)):null;}function _0x1ffa12(_0x2a681b){return window[_0x598982([0x61,0x74,0x6f,0x62])](_0x2a681b[_0x598982([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x598982([0x2b]))[_0x598982([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x598982([0x2f])));}function _0x2c9d08(_0x356964){let _0x434675=0x1505;function _0x547af2(_0x27745f){for(let _0x312083=0x0;_0x312083<_0x27745f[_0x598982([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x312083++){const _0x5cf41e=_0x27745f[_0x598982([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x312083);_0x434675=(_0x434675<<0x5)+_0x434675+_0x5cf41e,_0x434675&=_0x434675;}}function _0x507d76(_0x4de7ff){Array[_0x598982([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4de7ff)?_0x4de7ff[_0x598982([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x507d76):_0x4de7ff&&typeof _0x4de7ff==_0x598982([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x598982([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4de7ff)[_0x598982([0x73,0x6f,0x72,0x74])]()[_0x598982([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x523d73,_0x2f9caa])=>{_0x547af2(_0x523d73),_0x507d76(_0x2f9caa);}):_0x547af2(window[_0x598982([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4de7ff));}return _0x507d76(_0x356964),_0x434675>>>0x0;}function _0x184168(_0x4fa3eb){return _0x4fa3eb[_0x598982([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x598982([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x598982([0x30]));}function _0x4ef4e4(_0x540c37){return _0x540c37[_0x598982([0x73,0x70,0x6c,0x69,0x74])]('')[_0x598982([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x598982([0x6a,0x6f,0x69,0x6e])]('');}function _0x59094d(_0x52ad78){return _0x5159dd[_0x598982([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x598982([0x68,0x61,0x73])](_0x52ad78);}function _0x25f5e0(_0x423187){return _0x5159dd[_0x598982([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x598982([0x67,0x65,0x74])](_0x423187);}function _0x1cb1a2(){}function _0x598982(_0x1c0e99){return _0x1c0e99['map'](_0x2f084f=>String['fromCharCode'](_0x2f084f))['join']('');}_0x172cef(await _0x54fa94());}(this);}['createRevision'](_0x11b0dd){const _0x57544a=this['editor']['plugins']['get']('Users');return new vt({'id':_0x11b0dd['id'],'name':_0x11b0dd['name'],'creator':_0x11b0dd['creatorId']?_0x57544a['getUser'](_0x11b0dd['creatorId']):null,'diffData':_0x11b0dd['diffData']||_0x11b0dd['data'],'authors':_0x11b0dd['authorsIds']['map'](_0x4bcfcc=>_0x57544a['getUser'](_0x4bcfcc)),'createdAt':new Date(_0x11b0dd['createdAt']),'attributes':_0x11b0dd['attributes'],'fromVersion':_0x11b0dd['fromVersion'],'toVersion':_0x11b0dd['toVersion']});}['addRevision'](_0x15b9db,_0x1ac076=0x0){this['_revisions']['add'](_0x15b9db,_0x1ac076);}['getRevision'](_0x41b270){return this['_revisions']['get'](_0x41b270);}['getRevisions'](_0x2b7df6={'toJSON':!0x1}){const _0x409cdf=Array['from'](this['_revisions']);return _0x409cdf['reverse'](),_0x2b7df6['toJSON']?_0x409cdf['map'](_0x425602=>_0x425602['toJSON']()):_0x409cdf;}['getIndex'](_0x3b9a10){return this['_revisions']['getIndex'](_0x3b9a10);}['getEarlierVisibleRevision'](_0x3d0e54){const [,_0x171685]=this['getRevisionsIterator'](_0x3d0e54,{'direction':'earlier'});return _0x171685;}['getLaterVisibleRevision'](_0x2130b7){const [,_0x752560]=this['getRevisionsIterator'](_0x2130b7,{'direction':'later'});return _0x752560;}['getRevisionsInDiff'](_0x3f8bf5){const _0x37b24f=[];for(const _0x162694 of this['getRevisionsIterator'](_0x3f8bf5['newRevisionId']))if(_0x37b24f['push'](_0x162694),_0x162694['id']===_0x3f8bf5['oldRevisionId'])break;return _0x37b24f;}*['getRevisionsIterator'](_0x355eb9,{direction:_0x1636a2='earlier',filter:_0x4aa4fd=()=>!0x0}={}){const _0x4519dc='earlier'===_0x1636a2?0x1:-0x1;let _0x1549ca=this['_revisions']['get'](_0x355eb9),_0x45d920=this['getIndex'](_0x1549ca);for(yield _0x1549ca;_0x1549ca;){if(_0x45d920+=_0x4519dc,_0x1549ca=this['getRevision'](_0x45d920),!_0x1549ca)return;_0x4aa4fd(_0x1549ca)&&(yield _0x1549ca);}}}class mt extends _0x559650{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x515d8e,'c'],[_0x57c054,'a'],[_0x5b0d31,'e'],[_0x20f6e4,'r'],[_0x2658b1,'u']]);['_typeCharToViewClass']=new Map([['c',_0x515d8e],['a',_0x57c054],['e',_0x5b0d31],['r',_0x20f6e4],['u',_0x2658b1]]);async['loadRevisionData'](_0x173836,_0x16dc71){if(_0x173836['diffData']||!_0x16dc71)return;const _0x2ffe90=this['editor']['config']['get']('collaboration.channelId'),_0x147f8f=await _0x16dc71['getRevision']({'channelId':_0x2ffe90,'revisionId':_0x173836['id']});_0x173836['diffData']=_0x147f8f['diffData'];}['getRevisionDocumentData'](_0x3ade26){const _0x5ba692={};for(const _0x29d334 in _0x3ade26['diffData']){if(_0x3ade26['diffData'][_0x29d334]['attachChange']&&!_0x3ade26['diffData'][_0x29d334]['attachChange']['isAttached'])continue;const _0x2aba71=this['_removeRevisionMarkers'](JSON['parse'](_0x3ade26['diffData'][_0x29d334]['insertions'])),_0x42d4bb=this['editor']['editing']['view']['document'],_0x28efa9=new _0x148e60(_0x42d4bb,_0x2aba71['map'](_0x2c8e9a=>this['_getViewFromDiffObj'](_0x2c8e9a,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5ba692[_0x29d334]=this['editor']['data']['processor']['toData'](_0x28efa9),this['editor']['data']['processor']['useFillerType']('default');}return _0x5ba692;}['getRevisionRootsAttributes'](_0x22cca7){const _0x180305={};for(const _0x47d64b in _0x22cca7['diffData'])_0x22cca7['diffData'][_0x47d64b]['attachChange']&&!_0x22cca7['diffData'][_0x47d64b]['attachChange']['isAttached']||(_0x180305[_0x47d64b]=_0x22cca7['diffData'][_0x47d64b]['attributesAfter']||{});return _0x180305;}['_getTypeCharForViewElement'](_0x28d3f4){return this['_viewClassToTypeChar']['get'](_0x28d3f4['constructor']);}['_getViewFromDiffObj'](_0x177e31,_0x16b673){const _0x41e082=this['editor']['editing']['view']['document'];if('string'==typeof _0x177e31)return new _0x1c6ccf(_0x41e082,_0x177e31);{let _0x5853e4,_0x46e2e7;_0x46e2e7='u'==_0x177e31['type']||'r'==_0x177e31['type']?[]:_0x177e31['children']['map'](_0x539d09=>this['_getViewFromDiffObj'](_0x539d09,_0x16b673));const _0x1fa0ad=this['_typeCharToViewClass']['get'](_0x177e31['type'])||_0x555208,_0x532bff=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5853e4=new _0x1fa0ad(_0x41e082,_0x177e31['name'],_0x177e31['attributes'],_0x46e2e7),'u'==_0x177e31['type']&&_0x177e31['children'][0x0]){const _0x2200cc=_0x177e31['children'][0x0];if(_0x5853e4['render']=function(_0x1f2d3b){const _0x359287=_0x1f2d3b['createElement']('div');return _0x359287['innerHTML']=_0x2200cc,_0x359287['childNodes'][0x0];},_0x16b673){const _0x2224b5=new _0x148e60(_0x41e082);_0x2224b5['_appendChild'](_0x5853e4);const _0x36f37c=Array['from'](_0x532bff['viewChildrenToDom'](_0x2224b5,{'bind':!0x1})),_0x100d63=_0x532bff['domDocument']['createElement']('div');_0x100d63['append'](..._0x36f37c),_0x5853e4=Array['from'](_0x532bff['domChildrenToView'](_0x100d63))[0x0];}}else{if('r'==_0x177e31['type']&&_0x177e31['children'][0x0]){const _0x421fbf=_0x177e31['children'][0x0];if(_0x5853e4['render']=function(_0x21a9f9){_0x21a9f9['innerHTML']=_0x421fbf;},_0x16b673){const _0x4fddf8=new _0x148e60(_0x41e082);_0x4fddf8['_appendChild'](_0x5853e4);const _0x5e5a7e=Array['from'](_0x532bff['viewChildrenToDom'](_0x4fddf8,{'bind':!0x1})),_0x121b30=_0x532bff['domDocument']['createElement']('div');_0x121b30['append'](..._0x5e5a7e);const _0x1a571c=Array['from'](_0x532bff['domChildrenToView'](_0x121b30));_0x1a571c['length']>0x1?_0x5853e4['_appendChild'](_0x1a571c):_0x5853e4=_0x1a571c[0x0];}}}if(_0x177e31['customProperties']){for(const [_0x59190a,_0x3eb3e4]of _0x177e31['customProperties'])_0x5853e4['_setCustomProperty'](_0x59190a,_0x3eb3e4);}const _0x46c72d=void 0x0===_0x177e31['fillerOffset']?null:_0x177e31['fillerOffset'];return null!==_0x46c72d&&(_0x5853e4['getFillerOffset']=()=>_0x46c72d),_0x5853e4;}}['_makeModelFromViewString'](_0x1feedc){const _0x538273=JSON['parse'](_0x1feedc),_0x1eb2ec=this['editor']['editing']['view']['document'],_0x1893dc=new _0x148e60(_0x1eb2ec,_0x538273['map'](_0x401974=>this['_getViewFromDiffObj'](_0x401974,!0x0)));return this['editor']['data']['toModel'](_0x1893dc);}['_removeRevisionMarkers'](_0x39f02e){return(_0x39f02e=_0x39f02e['filter'](_0x54327f=>!_0x54327f['name']||'revision-start'!==_0x54327f['name']&&'revision-end'!==_0x54327f['name']))['forEach'](_0xad4045=>{'string'!=typeof _0xad4045&&(_0xad4045['children']=this['_removeRevisionMarkers'](_0xad4045['children']),_0xad4045['attributes']=_0xad4045['attributes']['filter'](_0x3ff10b=>!_0x3ff10b[0x0]['startsWith']('data-revision-')));}),_0x39f02e;}}function wt(_0x332924,_0x2025b8,_0x250c49){const t=_0x332924['t'];switch(_0x2025b8){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'},_0x250c49);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x250c49);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 pt extends _0x559650{['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[_0x3cd60e,gt,mt,_0x421006];}constructor(_0x1cc277){super(_0x1cc277),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new _t(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x50336f=_0x52b761();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x50336f},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 _0x579865=this['repository']['getRevision'](0x0),_0x251cfa=_0x579865&&null===_0x579865['creator']?_0x579865:null;if(this['_continueCurrentRevision']=!!_0x251cfa&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x15f2b7=this['_source']['getCurrentRevisionId'](),_0x3df86a=this['repository']['getRevision'](_0x15f2b7);if(_0x3df86a)this['_startingVersion']=_0x3df86a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1d88e3=this['_source']['history']['_operations']['find'](_0x4bc8dd=>!_0x4bc8dd['_isInit']),_0x37c78e=_0x1d88e3?_0x1d88e3['baseVersion']:this['_source']['history']['version'];_0x579865?(_0x579865['toVersion']<_0x37c78e&&_0x579865['_update']({'toVersion':_0x37c78e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x251cfa['id'],this['_startingVersion']=_0x251cfa['fromVersion']):(this['_startingVersion']=_0x579865['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x37c78e,this['_continueCurrentRevision']=!0x1);}}else _0x251cfa&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x251cfa['toVersion'],this['editor']['model']['document']['history']['version']),_0x251cfa['fromVersion']===_0x251cfa['toVersion']?(0x0!==_0x251cfa['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x251cfa['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x251cfa['id'],this['_startingVersion']=_0x251cfa['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',_0x223284=>!_0x223284),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x15cc2f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3cad24;for(const _0x4ec052 in _0x15cc2f){const _0x35d4d1=_0x4ec052,_0x37ec67=_0x15cc2f[_0x35d4d1];if('revisionHistoryLicenseKeyValid'==_0x37ec67||'revisionHistoryLicenseKeyInvalid'==_0x37ec67||'revisionHistoryLicenseKeyExpired'==_0x37ec67||'revisionHistoryLicenseKeyDomainLimit'==_0x37ec67||'revisionHistoryLicenseKeyNotAllowed'==_0x37ec67||'revisionHistoryLicenseKeyEvaluationLimit'==_0x37ec67||'revisionHistoryLicenseKeyUsageLimit'==_0x37ec67){delete _0x15cc2f[_0x35d4d1],_0x3cad24=_0x37ec67,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3cad24&&_0x15cc2f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3cad24&&_0x15cc2f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3cad24&&_0x15cc2f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3cad24&&_0x15cc2f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3cad24&&_0x15cc2f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3cad24&&_0x15cc2f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2d7419=this['repository']['getRevision'](0x0),_0x325da6=await this['getRevisionDocumentData'](_0x2d7419),_0x5950cf=await this['getRevisionRootsAttributes'](_0x2d7419);this['_replaceEditorDataWithRevisionData'](_0x325da6,_0x5950cf);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x101362){this['_source']=_0x101362;}async['update'](){const _0xd47bdf=await this['_source']['getLatestVersion']();if(_0xd47bdf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x22598b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xd47bdf});_0x22598b['authors']=_0x22598b['authorsIds']['map'](_0x1dc679=>this['editor']['plugins']['get']('Users')['getUser'](_0x1dc679)),this['currentRevision']['_update'](_0x22598b);}}async['saveRevision'](_0x30a153={},_0x3d6729=null){const _0x1b9f51=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3d6729>this['currentRevision']['toVersion']&&(_0x3d6729=null),null===_0x3d6729&&(_0x3d6729=await this['_source']['getLatestVersion']());const _0x5961a1=this['_getFromVersion'](_0x3d6729),_0x2dae15=this['buildRevisionData']({'from':_0x5961a1,'to':_0x3d6729});if(this['currentRevision']['toVersion']<_0x3d6729){const _0x498356=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3d6729,'to':_0x3d6729});_0x498356['authors']=[],_0x498356['authorsIds']=[],_0x498356['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x498356,!0x0),delete _0x498356['authors'],_0x1b9f51['push'](_0x498356);}_0x30a153['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x30a153['name']=_0x30a153['name']||null,_0x30a153['id']=_0x30a153['id']||_0x52b761(),_0x30a153={..._0x30a153,..._0x2dae15};const _0x337f4f=this['addRevisionData'](_0x30a153);_0x1b9f51['push'](_0x30a153);const _0x5742c5=this['repository']['getIndex'](_0x337f4f);if(0x0!==_0x5742c5){const _0x3243f9=this['repository']['getRevision'](_0x5742c5-0x1);if(_0x3243f9['fromVersion']!==_0x3d6729){const _0x331f25=this['_revisionDataBuilder']['getData'](_0x3d6729,_0x3243f9['toVersion']),_0xf7fe4e={'id':_0x3243f9['id'],'diffData':_0x331f25['diffData'],'authorsIds':_0x331f25['authorsIds'],'authors':_0x331f25['authorsIds']['map'](_0x49372e=>this['editor']['plugins']['get']('Users')['getUser'](_0x49372e)),'fromVersion':_0x3d6729};_0x3243f9===this['currentRevision']&&(_0xf7fe4e['createdAt']=new Date(_0x30a153['createdAt']['getTime']()+0xa)),_0x3243f9['_update'](_0xf7fe4e,!0x0),delete _0xf7fe4e['authors'],_0x1b9f51['push'](_0xf7fe4e);}}if(this['adapter']){for(const _0x77b82d of _0x1b9f51)this['_bufferUpdate'](_0x77b82d['id'],_0x77b82d,!0x0);this['sendBufferedUpdates']();}return _0x337f4f;}['addRevisionData'](_0x29e679){const _0x209fc2=this['repository']['createRevision'](_0x29e679);return this['adapter']&&_0x209fc2['on']('_update',(_0x396bbf,_0x4f3d4c,_0xd987cb)=>{_0xd987cb||(this['_bufferUpdate'](_0x4f3d4c['id'],_0x4f3d4c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x209fc2,this['_findInsertionIndex'](_0x209fc2)),_0x209fc2;}async['getRevisionDocumentData'](_0x385735){return await this['_utils']['loadRevisionData'](_0x385735,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x385735);}async['getRevisionRootsAttributes'](_0x3da524){return await this['_utils']['loadRevisionData'](_0x3da524,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3da524);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5377dc=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x324e49=0x0;_0x324e49<_0x5377dc['length'];_0x324e49++){const _0x1ee6c8=_0x5377dc[_0x324e49];let _0x4fa581=!0x1;for(const _0x54b294 of Object['keys'](_0x1ee6c8))void 0x0===_0x1ee6c8[_0x54b294]?delete _0x1ee6c8[_0x54b294]:'id'!==_0x54b294&&(_0x4fa581=!0x0);_0x4fa581||(_0x5377dc[_0x324e49]=null);}if(_0x5377dc=_0x5377dc['filter'](_0x14cd80=>null!==_0x14cd80),!_0x5377dc['length'])return;for(let _0x5dfe7c=0x0;_0x5dfe7c<_0x5377dc['length'];_0x5dfe7c++){const _0x2c4254=_0x5377dc[_0x5dfe7c];void 0x0!==_0x2c4254['fromVersion']&&void 0x0===_0x2c4254['toVersion']&&(_0x2c4254['toVersion']=this['repository']['getRevision'](_0x2c4254['id'])['toVersion']),void 0x0!==_0x2c4254['toVersion']&&void 0x0===_0x2c4254['fromVersion']&&(_0x2c4254['fromVersion']=this['repository']['getRevision'](_0x2c4254['id'])['fromVersion']);}const _0x5dbcd5=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5377dc,_0x5dbcd5)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2e127c=>{if(_0x2e127c){for(const _0x4b0fb9 of _0x2e127c)this['setRevisionData']({'id':_0x4b0fb9['id'],'createdAt':_0x4b0fb9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x46e1b9=null,from:_0x41fa8a=null,to:_0x429cc9=null}){_0x41fa8a=null!==_0x41fa8a?_0x41fa8a:_0x46e1b9['fromVersion'],_0x429cc9=null!==_0x429cc9?_0x429cc9:_0x46e1b9['toVersion'];const _0x4fcd6e=this['_revisionDataBuilder']['getData'](_0x41fa8a,_0x429cc9),_0x51c6b9={'diffData':_0x4fcd6e['diffData'],'authorsIds':_0x4fcd6e['authorsIds'],'fromVersion':_0x41fa8a,'toVersion':_0x429cc9};if(!_0x46e1b9||_0x429cc9!==_0x46e1b9['toVersion']){const _0x2e6d22=_0x429cc9-0x1,_0x447b01=this['_source']['history']['getOperation'](_0x2e6d22);_0x51c6b9['createdAt']=_0x447b01&&_0x447b01['createdAt']||new Date();}if(this['_loadedStateData']&&_0x41fa8a===this['_loadedStateData']['fromVersion']){for(const _0x2aaa88 of this['_loadedStateData']['authors'])_0x51c6b9['authorsIds']['includes'](_0x2aaa88['id'])||_0x51c6b9['authorsIds']['push'](_0x2aaa88['id']);}return _0x51c6b9;}['_bufferUpdate'](_0x21bd98,_0x5844e8,_0x402ce5){if(this['_bufferedUpdates']['has'](_0x21bd98)){const _0x64a34d=this['_bufferedUpdates']['get'](_0x21bd98);_0x5844e8=_0x402ce5?{..._0x64a34d,..._0x5844e8}:{..._0x5844e8,..._0x64a34d};}this['_bufferedUpdates']['set'](_0x21bd98,_0x5844e8);}['setRevisionData'](_0xa4f259){const _0x12ce55=this['repository']['getRevision'](_0xa4f259['id']);if(_0xa4f259['createdAt']&&(_0xa4f259['createdAt']=new Date(_0xa4f259['createdAt'])),_0xa4f259['authorsIds']){const _0x290a65=this['editor']['plugins']['get']('Users');_0xa4f259['authors']=_0xa4f259['authorsIds']['map'](_0x410301=>_0x290a65['getUser'](_0x410301));}_0x12ce55['_update'](_0xa4f259,!0x0);}['_createInitialRevision'](_0x187c17){const _0x5878b5=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5878b5)this['_initialRevisionId']=_0x5878b5['id'];else{const _0x30f005=!this['editor']['model']['document']['roots']['find'](_0x573577=>this['editor']['model']['hasContent'](_0x573577)),_0x334c1a=this['editor']['plugins']['get']('Users')['me']['id'],_0x4eee39=wt(this['editor']['locale'],_0x30f005?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x187c17,'to':_0x187c17,'id':this['_initialRevisionId'],'name':_0x4eee39,'creatorId':_0x334c1a});}}['_createCurrentRevision'](_0xfd7155){const _0xa5b714=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xa5b714),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xfd7155,'to':_0xfd7155,'id':_0xa5b714,'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'](_0x27a35f,_0x44f8d6){const _0x1a6d83={},_0x19da4d={},_0x591770=this['editor']['config']['get']('roots')||{};for(const [_0x432f03,_0x219a29]of Object['entries'](_0x591770))_0x219a29['lazyLoad']||(_0x1a6d83[_0x432f03]=_0x219a29['initialData']??'',_0x19da4d[_0x432f03]=_0x219a29['modelAttributes']||{});for(const _0x397f9b of this['editor']['model']['document']['getRootNames']())_0x1a6d83[_0x397f9b]??='',_0x19da4d[_0x397f9b]??={};let _0xed1199=!0x1;const _0x2b6110=Object['keys'](_0x1a6d83),_0x59d121=Object['keys'](_0x27a35f);for(const _0x2dfde9 of _0x2b6110){if(_0x1a6d83[_0x2dfde9]!==_0x27a35f[_0x2dfde9]&&''!==_0x1a6d83[_0x2dfde9]['trim']()){_0xed1199=!0x0;break;}if(!_0xf9d81b(_0x19da4d[_0x2dfde9],_0x44f8d6[_0x2dfde9])&&Object['keys'](_0x19da4d[_0x2dfde9])['length']>0x0){_0xed1199=!0x0;break;}}_0xed1199||(_0xed1199=_0x59d121['some'](_0x7dc551=>!this['editor']['model']['document']['getRoot'](_0x7dc551))),_0xed1199&&_0x5c54ca('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1a6d83,'editorRootsAttributes':_0x19da4d,'revisionData':_0x27a35f,'revisionRootsAttributes':_0x44f8d6});for(const [_0x2bc98f,_0x502367]of Object['entries'](_0x27a35f))this['editor']['config']['set']('roots.'+_0x2bc98f+'.initialData',_0x502367);for(const [_0x2cfec5,_0x28eff1]of Object['entries'](_0x44f8d6))this['editor']['config']['set']('roots.'+_0x2cfec5+'.modelAttributes',_0x28eff1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x48afb3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x48afb3['add'](wt(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2d3917){const _0x58f2ba=this['repository']['getRevisions']();_0x58f2ba['reverse']();let _0x59bc66=0x0;for(;_0x59bc66<_0x58f2ba['length'];){const _0x1ea8d8=_0x58f2ba[_0x59bc66];if(_0x1ea8d8===this['currentRevision']){_0x59bc66++;continue;}if(_0x1ea8d8['id']===this['_initialRevisionId'])break;const _0x2e2648=_0x2d3917['toVersion']-_0x1ea8d8['toVersion']||_0x2d3917['fromVersion']-_0x1ea8d8['fromVersion'];if(_0x2e2648>0x0)break;if(_0x2e2648<0x0)_0x59bc66++;else{if(!_0x2d3917['creator']&&_0x1ea8d8['creator'])break;if(_0x1ea8d8['creator']||!_0x2d3917['creator']){if(_0x2d3917['createdAt']>_0x1ea8d8['createdAt'])break;_0x59bc66++;}else _0x59bc66++;}}return _0x59bc66;}['_getFromVersion'](_0x466a37){const _0x413688=this['repository']['getRevisions']();_0x413688['reverse'](),_0x413688['shift']();const _0x515a55=_0x413688['find'](_0xe5e4b5=>_0xe5e4b5['toVersion']<=_0x466a37)['toVersion'];return _0x515a55<this['_startingVersion']?this['_startingVersion']:_0x515a55;}['_makeRevision']({name:_0xeb09fe,from:_0x4c0a1e,to:_0x4ca67d,creatorId:_0x27cee7,id:_0x4d3f70}){const _0x44872b=this['buildRevisionData']({'from':_0x4c0a1e,'to':_0x4ca67d});_0x44872b['name']=_0xeb09fe,_0x44872b['creatorId']=_0x27cee7,_0x44872b['id']=_0x4d3f70;const _0x204360=this['addRevisionData'](_0x44872b);return this['adapter']&&this['_bufferUpdate'](_0x44872b['id'],_0x44872b,!0x0),_0x204360;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class _t{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xf647ea){this['editor']=_0xf647ea,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'](_0x4e2c68){this['source']=_0x4e2c68;const _0x1a1ac7=new Map(),_0x1eeede=new Map(),_0x6b98c4=this['editor']['model']['document']['roots']['map'](_0x106ad1=>_0x106ad1['rootName']);for(const _0x2ce15e of _0x6b98c4){const _0x1a1ae4=this['editor']['model']['document']['getRoot'](_0x2ce15e),_0x12f997=yt(_0x1a1ae4);_0x1a1ac7['set'](_0x2ce15e,_0x12f997),_0x1eeede['set'](_0x2ce15e,Object['fromEntries'](_0x1a1ae4['getAttributes']()));}const _0x4551d6=Array['from'](this['editor']['model']['markers'])['map'](_0x22ef26=>[_0x22ef26['name'],_0x22ef26['getRange']()]),_0xadbef0=this['source']['version'];this['_saveMetaData'](_0xadbef0,_0x1a1ac7,_0x4551d6,_0x1eeede),this['_startingRevisionId']=this['_revisionId'];const _0x4e7379=new Map(),_0x571088=new Map();for(const _0x2f91d8 of _0x6b98c4){const _0x386ad2=bt(_0x2f91d8);_0x4e7379['set'](_0x2f91d8,_0x386ad2),_0x571088['set'](_0x2f91d8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4e7379,[],_0x571088);}['getData'](_0x117b0f,_0x2aee72){if(this['_lastFrom']===_0x117b0f&&this['_lastTo']<=_0x2aee72)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2aee72,!0x0);else{if(!this['_savedMetaData']['has'](_0x117b0f)){const _0x3ce1fa=this['_getPreviousFrom'](_0x117b0f);this['_calculateMetaData'](_0x3ce1fa,_0x117b0f,!0x1);}this['_calculateMetaData'](_0x117b0f,_0x2aee72,!0x0);}return this['_lastFrom']=_0x117b0f,this['_lastTo']=_0x2aee72,this['_getState']();}['loadState'](_0x2ab760){if(!this['_savedMetaData']['has'](_0x2ab760['fromVersion'])){const _0x30c328=this['_getPreviousFrom'](_0x2ab760['fromVersion']);this['_calculateMetaData'](_0x30c328,_0x2ab760['fromVersion'],!0x1);}this['_calculateMetaData'](_0x2ab760['fromVersion'],_0x2ab760['toVersion'],!0x1);const _0x4782c4=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2ab760['fromVersion'],this['_lastTo']=_0x2ab760['toVersion'];for(const _0x5445cb in _0x2ab760['diffData']){const _0x2ec8d0=_0x2ab760['diffData'][_0x5445cb]['attachChange'],_0x2e8660=_0x2fa55e(_0x2ab760['diffData'][_0x5445cb]['attributesBefore'])||{},_0x4c4215=_0x4782c4['_makeModelFromViewString'](_0x2ab760['diffData'][_0x5445cb]['deletions']);_0x4c4215['rootName']=_0x5445cb,_0x4c4215['_isAttached']=!_0x2ec8d0||!_0x2ec8d0['isAttached'],_0x4c4215['isAttached']=()=>_0x4c4215['_isAttached'],this['_baseRoots']['set'](_0x5445cb,_0x4c4215),this['_baseRootsAttributes']['set'](_0x5445cb,_0x2e8660),_0x2ec8d0&&this['_touchedRoots']['set'](_0x5445cb,_0x2ec8d0);const _0x3c3e19=this['_makeIdsRoot'](_0x4c4215);this['_baseIdsRoots']['set'](_0x5445cb,_0x3c3e19);for(const [_0x5111d8,_0x4f4aa8]of _0x4c4215['markers']){if(!_0x5111d8['startsWith']('revision:'))continue;const _0x2c69ac=_0x5111d8['split'](':')[0x2];for(const _0x3d36f2 of _0x4f4aa8['getWalker']({'singleCharacters':!0x0})){const _0x22f4fd=this['_getVidAttributeName'](_0x3d36f2),_0xf5319c='elementEnd'==_0x3d36f2['type']?_0x3d36f2['previousPosition']['path']['slice'](0x0,-0x1):_0x3d36f2['previousPosition']['path'],_0x1094e4=_0x3c3e19['getNodeByPath'](_0xf5319c)['getAttribute'](_0x22f4fd);this['_touched']['set'](_0x1094e4,{'userId':_0x2c69ac});}_0x4c4215['markers']['delete'](_0x5111d8);}}this['_startingRevisionId']=this['_revisionId'];const _0xd0335b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3a7e7c=>!this['_touched']['has'](_0x3a7e7c));let _0x5226ff=0x0;const _0x2cbc69=new Map();for(const _0x3eac77 in _0x2ab760['diffData']){const _0x53c7a0=_0x2ab760['diffData'][_0x3eac77]['attachChange'],_0x5e63ba=_0x2fa55e(_0x2ab760['diffData'][_0x3eac77]['attributesAfter'])||{},_0xbd07a9=_0x4782c4['_makeModelFromViewString'](_0x2ab760['diffData'][_0x3eac77]['insertions']);_0xbd07a9['rootName']=_0x3eac77,_0xbd07a9['_isAttached']=!_0x53c7a0||_0x53c7a0['isAttached'],_0xbd07a9['isAttached']=()=>_0xbd07a9['_isAttached'],this['_diffRoots']['set'](_0x3eac77,_0xbd07a9),this['_diffRootsAttributes']['set'](_0x3eac77,_0x5e63ba);const _0x5efd0e=this['_makeIdsRoot'](_0xbd07a9,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3eac77,_0x5efd0e),_0x2cbc69['set'](_0x3eac77,_0xbd07a9['isAttached']()?_0x5e63ba:{});for(const [_0x1931ea,_0x5cbbe2]of _0xbd07a9['markers']){if(!_0x1931ea['startsWith']('revision:'))continue;const _0x8af569=_0x1931ea['split'](':')[0x2];for(const _0x5509bb of _0x5cbbe2['getWalker']({'singleCharacters':!0x0})){const _0xb6170a=this['_getVidAttributeName'](_0x5509bb),_0x1dc577=this['_revisionId']++,_0x55f50e='elementEnd'==_0x5509bb['type']?_0x5509bb['previousPosition']['path']['slice'](0x0,-0x1):_0x5509bb['previousPosition']['path'];_0x5efd0e['getNodeByPath'](_0x55f50e)['_setAttribute'](_0xb6170a,_0x1dc577),this['_touched']['set'](_0x1dc577,{'userId':_0x8af569});}_0xbd07a9['markers']['delete'](_0x1931ea);}for(const _0x4fd9ad of this['editor']['model']['createRangeIn'](_0xbd07a9)['getWalker']({'singleCharacters':!0x0})){const _0x3fd887=this['_getVidAttributeName'](_0x4fd9ad),_0x56c32d='elementEnd'==_0x4fd9ad['type']?_0x4fd9ad['previousPosition']['path']['slice'](0x0,-0x1):_0x4fd9ad['previousPosition']['path'],_0x1c6ec5=_0x5efd0e['getNodeByPath'](_0x56c32d);_0x1c6ec5['getAttribute'](_0x3fd887)>0x0||_0x1c6ec5['_setAttribute'](_0x3fd887,_0xd0335b[_0x5226ff++]);}for(const [_0x3cc570,_0x262df3]of _0xbd07a9['markers'])_0x3cc570['startsWith']('revision:')||this['_markers']['set'](_0x3cc570,_0x262df3);}const {roots:_0x5e3dd2}=this['_savedMetaData']['get'](_0x2ab760['fromVersion']),{roots:_0x3399a3}=this['_savedMetaData']['get'](_0x2ab760['toVersion']),_0x324f79=yt(_0x5e3dd2['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x324f79),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x324f79,Number['NEGATIVE_INFINITY']));const _0x4c51f0=yt(_0x3399a3['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x4c51f0),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4c51f0));const _0x23bb31=Array['from'](this['_diffRoots'])['map'](([_0x4fdb47,_0x2d6c0c])=>[_0x4fdb47,yt(_0x2d6c0c)]);this['_saveMetaData'](this['_lastTo'],_0x23bb31,this['_markers'],_0x2cbc69);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2b694d,_0x31a995,_0x26d0bd,_0x2eda6c){const _0x2d68b0=new Map(_0x31a995),_0x128a62=new Map(_0x2fa55e(_0x2eda6c)),_0x291251=new Map();for(const [_0x459d99,_0x58466b]of _0x26d0bd)_0x291251['set'](_0x459d99,{'start':_0x58466b['start']['clone'](),'end':_0x58466b['end']['clone'](),'rootName':_0x58466b['root']['rootName']});this['_savedMetaData']['set'](_0x2b694d,{'roots':_0x2d68b0,'markers':_0x291251,'rootsAttributes':_0x128a62});}['_removeMetaData'](_0x117b84){this['_savedMetaData']['delete'](_0x117b84);}['_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'](_0x2c3cd7,_0x2dbc58=null){let _0x5aae94=null;_0x2c3cd7['is']('documentFragment')||(_0x5aae94=new _0x52bbda(_0x2c3cd7['name'],{'vid_start':null===_0x2dbc58?this['_revisionId']++:_0x2dbc58++}));const _0x273ffa=[];for(const _0x15c5b5 of _0x2c3cd7['getChildren']())if(_0x15c5b5['is']('element')){_0x273ffa['push'](this['_makeIdsRoot'](_0x15c5b5,_0x2dbc58));const _0x4e300e=_0x273ffa[_0x273ffa['length']-0x1];null!==_0x2dbc58&&(_0x2dbc58=_0x4e300e['is']('element','$text')?_0x4e300e['getAttribute']('vid')+0x1:_0x4e300e['getAttribute']('vid_end')+0x1);}else{for(let _0x8ba746=0x0;_0x8ba746<_0x15c5b5['offsetSize'];_0x8ba746++)_0x273ffa['push'](new _0x52bbda('$text',{'vid':null===_0x2dbc58?this['_revisionId']++:_0x2dbc58++}));}if(_0x2c3cd7['is']('documentFragment')){const _0x41f786=bt(_0x2c3cd7['rootName']);return _0x41f786['_insertChild'](0x0,_0x273ffa),_0x41f786;}return _0x5aae94['_setAttribute']('vid_end',null===_0x2dbc58?this['_revisionId']++:_0x2dbc58++),_0x5aae94['_insertChild'](0x0,_0x273ffa),_0x5aae94;}['_calculateMetaData'](_0x4ba390,_0x336927,_0x33228d){this['_reset']();const {roots:_0x1cd91b,markers:_0xe553f7,rootsAttributes:_0xa9c4a4}=this['_savedMetaData']['get'](_0x4ba390);this['_baseRoots']=new Map(_0x1cd91b),this['_baseRootsAttributes']=new Map(_0x2fa55e(_0xa9c4a4));for(const [_0x423fb1,_0x71eee8]of this['_baseRoots'])if('$graveyard'!==_0x423fb1&&(this['_diffRoots']['set'](_0x423fb1,yt(_0x71eee8)),this['_diffRootsAttributes']=new Map(_0x2fa55e(_0xa9c4a4)),_0x33228d)){const _0x2a91f9=this['_revisionId'];this['_idsRoots']['set'](_0x423fb1,this['_makeIdsRoot'](_0x71eee8)),this['_baseIdsRoots']['set'](_0x423fb1,this['_makeIdsRoot'](_0x71eee8,_0x2a91f9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',yt(this['_baseRoots']['get']('$graveyard'))),_0x33228d&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x48933a,_0x2949be]of _0xe553f7){const _0x57b79c=this['_baseRoots']['get'](_0x2949be['rootName']),_0x59cc42=this['_diffRoots']['get'](_0x2949be['rootName']),_0x2a9895=new _0x31a34f(this['_fixPosition'](_0x2949be['start'],_0x57b79c),this['_fixPosition'](_0x2949be['end'],_0x57b79c)),_0x43755c=this['_fixRange'](_0x2a9895,_0x59cc42);_0x57b79c['markers']['set'](_0x48933a,_0x2a9895),this['_markers']['set'](_0x48933a,_0x43755c);}this['_applyOperations'](_0x4ba390,_0x336927,_0x33228d);}['_applyOperations'](_0x4e0286,_0x484778,_0xd6f8cf){for(const _0x56509b of this['source']['getOperations'](_0x4e0286,_0x484778))this['_handleOperation'](_0x56509b,_0xd6f8cf);for(const _0x5dec86 of this['_diffRoots']['values']())_0x5dec86['markers']['clear']();for(const [_0x49979a,_0x36b236]of this['_markers']){this['_diffRoots']['get'](_0x36b236['root']['rootName'])['markers']['set'](_0x49979a,_0x36b236['clone']());}const _0x22825c=new Map(),_0x5edc66=new Map();for(const [_0x5851f4,_0xdf0761]of this['_diffRoots'])_0x22825c['set'](_0x5851f4,yt(_0xdf0761)),_0x5edc66['set'](_0x5851f4,this['_diffRootsAttributes']['get'](_0x5851f4));this['_saveMetaData'](_0x484778,_0x22825c,this['_markers'],_0x5edc66);}['_getPreviousFrom'](_0x3c2537){const _0x3089f5=Array['from'](this['_savedMetaData']['keys']());_0x3089f5['sort']((_0x503f18,_0x2ea3e7)=>_0x503f18-_0x2ea3e7),_0x3089f5['reverse']();for(const _0x3d09a3 of _0x3089f5)if(_0x3d09a3<_0x3c2537)return _0x3d09a3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x15a3c1,_0x5af4d4){const _0x5b2a13=Array['from'](_0x5af4d4['markers'])['map'](([_0xedd8ef,_0xfcdcd7])=>[_0xedd8ef,this['_fixRange'](_0xfcdcd7,_0x15a3c1)]);_0x15a3c1['markers']=new Map(_0x5b2a13);}['_transformMarkers'](_0x4420f1){for(const _0x2d9871 of this['_markers']['values']()){const _0x3d5928=_0x2d9871['getTransformedByOperation'](_0x4420f1),_0x4cf46b=_0x31a34f['_createFromRanges'](_0x3d5928);_0x2d9871['start']=_0x4cf46b['start'],_0x2d9871['end']=_0x4cf46b['end'];}}['_handleOperation'](_0x2e9427,_0x50ef0a){if('addRoot'!=_0x2e9427['type']&&'detachRoot'!=_0x2e9427['type']){if('insert'==_0x2e9427['type']){const _0x3b3b26=_0x2e9427['position']['root']['rootName'];this['_diffRoots']['has'](_0x3b3b26)||(this['_diffRoots']['set'](_0x3b3b26,bt(_0x3b3b26,!0x0)),this['_diffRootsAttributes']['set'](_0x3b3b26,{}),_0x50ef0a&&this['_idsRoots']['set'](_0x3b3b26,bt(_0x3b3b26,!0x0)));}else{if('addRootAttribute'==_0x2e9427['type']||'removeRootAttribute'==_0x2e9427['type']||'changeRootAttribute'==_0x2e9427['type'])return void this['_handleRootAttributeOperation'](_0x2e9427);'marker'==_0x2e9427['type']&&this['_handleMarkerOperation'](_0x2e9427);}if('marker'!==_0x2e9427['type']){const _0x10fd5b=this['_cloneOperation'](_0x2e9427,this['_diffRoots']);_0x10fd5b['_execute'](),this['_transformMarkers'](_0x10fd5b);}if(_0x50ef0a)switch(_0x2e9427['type']){case'insert':this['_handleInsertOperation'](_0x2e9427);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2e9427);break;case'merge':this['_handleMergeOperation'](_0x2e9427);break;case'split':this['_handleSplitOperation'](_0x2e9427);}}else this['_handleRootOperation'](_0x2e9427,_0x50ef0a);}['_cloneOperation'](_0x3aa5e2,_0x10444d){const _0x518987=_0x3aa5e2['clone']();return _0x518987['_authorId']=_0x3aa5e2['_authorId'],this['_fixOperation'](_0x518987,_0x10444d),_0x518987;}['_getBaseVids'](_0xf7be26){return _0xf7be26['map'](_0x4b8c0f=>{const _0xf7ee88=this['_getVidAttributeName'](_0x4b8c0f);return Number(_0x4b8c0f['item']['getAttribute'](_0xf7ee88));});}['_generateTape'](_0x3359fc,_0x183abe){if(_0x3359fc['is']('element','$text'))_0x183abe['push']({'item':_0x3359fc,'type':'text'});else{_0x3359fc['is']('element')&&_0x183abe['push']({'item':_0x3359fc,'type':'elementStart'});for(const _0x10ccc6 of _0x3359fc['getChildren']())this['_generateTape'](_0x10ccc6,_0x183abe);_0x3359fc['is']('element')&&_0x183abe['push']({'item':_0x3359fc,'type':'elementEnd'});}return _0x183abe;}['_getState'](){const _0x4aae1a=new Map(this['_touched']),_0x4af14d=new Map(_0x4aae1a),_0x2236c8=new Map(),_0x5efa5e={'insertions':{},'deletions':{}},_0x4359fa={'insertions':{},'deletions':{}},_0x5062d8=new Map(),_0x136d0a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x136d0a['delete']('$graveyard');for(const _0x2aa1e9 of _0x136d0a){const _0x18dc51=this['_diffRoots']['get'](_0x2aa1e9)||bt(_0x2aa1e9,!0x1),_0x23dbbf=this['_baseRoots']['get'](_0x2aa1e9)||bt(_0x2aa1e9,!0x1);_0x18dc51['isAttached']()||_0x23dbbf['isAttached']()?(_0x5efa5e['insertions'][_0x2aa1e9]=yt(_0x18dc51),_0x5efa5e['deletions'][_0x2aa1e9]=yt(_0x23dbbf),this['_copyMarkers'](_0x5efa5e['deletions'][_0x2aa1e9],_0x23dbbf),this['_copyMarkers'](_0x5efa5e['insertions'][_0x2aa1e9],_0x18dc51),_0x4359fa['insertions'][_0x2aa1e9]=this['_generateTape'](this['_idsRoots']['get'](_0x2aa1e9),[]),_0x4359fa['deletions'][_0x2aa1e9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2aa1e9)||bt(_0x2aa1e9,!0x1),[])):_0x136d0a['delete'](_0x2aa1e9);}for(const _0x542fbc of _0x136d0a){const _0x5ef73b=_0x4359fa['insertions'][_0x542fbc];for(const _0x4faa27 of _0x5ef73b){const _0x36ba6e=this['_getVidAttributeName'](_0x4faa27),_0x5c99d5=_0x4faa27['item']['getAttribute'](_0x36ba6e);_0x4af14d['delete'](_0x5c99d5),_0x5c99d5>=this['_startingRevisionId']&&_0x2236c8['set'](_0x5c99d5,_0x4aae1a['get'](_0x5c99d5));}}for(const _0xa11b05 of _0x136d0a){const _0xdab761=_0x4359fa['insertions'][_0xa11b05],_0x1bc27f=this['_getBaseVids'](_0x4359fa['deletions'][_0xa11b05]);let _0xf1c17e=0x0;for(const _0x282639 of _0xdab761){const _0x214bc8=this['_getVidAttributeName'](_0x282639),_0x50eba5=_0x282639['item']['getAttribute'](_0x214bc8);if(!_0x2236c8['has'](_0x50eba5)&&!_0x5062d8['has'](_0x50eba5)){if(_0x4af14d['has'](_0x50eba5))_0xf1c17e++;else{if(_0x50eba5!=_0x1bc27f[_0xf1c17e]){const _0x254fa3=_0x4aae1a['get'](_0x50eba5)||_0x4aae1a['get'](_0x1bc27f[_0xf1c17e]);for(;_0x50eba5!=_0x1bc27f[_0xf1c17e];)_0x4af14d['has'](_0x1bc27f[_0xf1c17e])||(_0x5062d8['set'](_0x1bc27f[_0xf1c17e],_0x254fa3),_0x4aae1a['set'](_0x1bc27f[_0xf1c17e],_0x254fa3)),_0xf1c17e++;}_0xf1c17e++;}}}}for(const _0xd62c28 of _0x136d0a){const _0x5f5dd1=_0x4359fa['insertions'][_0xd62c28];for(const _0x3310b6 of _0x5f5dd1){const _0x398d42=this['_getVidAttributeName'](_0x3310b6),_0x601b67=_0x3310b6['item']['getAttribute'](_0x398d42);if(_0x5062d8['has'](_0x601b67)){const _0x4ad3df=_0x5062d8['get'](_0x601b67);_0x4af14d['has'](_0x601b67)||_0x4af14d['set'](_0x601b67,{..._0x4ad3df}),_0x2236c8['set'](_0x601b67,{..._0x4ad3df});}}}for(const _0x2ae03c of _0x4af14d['keys']())_0x2ae03c>=this['_startingRevisionId']&&_0x4af14d['delete'](_0x2ae03c);const _0x5172c=new Map();for(const _0x1b1c8f of _0x136d0a){let _0x2b9e65=_0x4359fa['insertions'][_0x1b1c8f];for(const _0x25e94e of _0x2b9e65)if(_0x25e94e['item']['is']('element','tableCell')){const _0x260592=this['_getVidAttributeName'](_0x25e94e),_0x4afd1e=_0x25e94e['item']['getAttribute'](_0x260592);if(_0x2236c8['has'](_0x4afd1e)){const _0xb4be33=_0x25e94e['item']['parent']['parent']['getAttribute']('vid_start'),_0x2f19ee=_0x5172c['get'](_0xb4be33)||new Set();_0x2f19ee['add'](_0x2236c8['get'](_0x4afd1e)['userId']),_0x5172c['set'](_0xb4be33,_0x2f19ee);}}_0x2b9e65=_0x4359fa['deletions'][_0x1b1c8f];for(const _0x2e256c of _0x2b9e65)if(_0x2e256c['item']['is']('element','tableCell')){const _0x33162a=this['_getVidAttributeName'](_0x2e256c),_0x1759d2=_0x2e256c['item']['getAttribute'](_0x33162a);if(_0x4af14d['has'](_0x1759d2)){const _0x29d51b=_0x2e256c['item']['parent']['parent']['getAttribute']('vid_start'),_0x24715a=_0x5172c['get'](_0x29d51b)||new Set();_0x24715a['add'](_0x4af14d['get'](_0x1759d2)['userId']),_0x5172c['set'](_0x29d51b,_0x24715a);}}for(const _0x514867 of _0x5172c['keys']())(_0x2236c8['has'](_0x514867)||_0x4af14d['has'](_0x514867))&&_0x5172c['delete'](_0x514867);}for(const _0x4e37ee of _0x136d0a){const _0x2f9bd7=_0x4359fa['insertions'][_0x4e37ee];let _0x21d371=null,_0x2cbad3=null;for(const _0x21b109 of _0x2f9bd7){const _0x5356c1=this['_getVidAttributeName'](_0x21b109),_0x296949=_0x21b109['item']['getAttribute'](_0x5356c1),_0xf29689=_0x5172c['get'](_0x296949);_0xf29689&&'elementStart'==_0x21b109['type']&&(_0x21d371=Array['from'](_0xf29689)[0x0],_0x2cbad3=_0x21b109['item']['getAttribute']('vid_end')),_0x21d371&&(_0x4af14d['set'](_0x296949,{'userId':_0x21d371}),_0x2236c8['set'](_0x296949,{'userId':_0x21d371})),_0x296949==_0x2cbad3&&(_0x21d371=null,_0x2cbad3=null);}}const _0xfcd223={},_0x555676=new Set();for(const _0x3f326a of _0x136d0a){const _0x3e5329=_0x5efa5e['deletions'][_0x3f326a],_0x69da01=_0x5efa5e['insertions'][_0x3f326a];for(const {userId:_0x118474}of this['_touchedMarkers']['values']())null!==_0x118474&&_0x555676['add'](_0x118474);for(const {userId:_0x1227eb}of this['_touchedRoots']['values']())null!==_0x1227eb&&_0x555676['add'](_0x1227eb);this['_markChanges'](_0x69da01,_0x4359fa['insertions'][_0x3f326a],_0x2236c8,'insertion',_0x555676),this['_markChanges'](_0x3e5329,_0x4359fa['deletions'][_0x3f326a],_0x4af14d,'deletion',_0x555676),_0xfcd223[_0x3f326a]={'insertions':this['_prepareViewToSave'](_0x69da01),'deletions':this['_prepareViewToSave'](_0x3e5329),'attachChange':this['_touchedRoots']['get'](_0x3f326a)||null,'attributesBefore':_0x2fa55e(this['_baseRootsAttributes']['get'](_0x3f326a))||{},'attributesAfter':_0x2fa55e(this['_diffRootsAttributes']['get'](_0x3f326a))};}return{'diffData':_0xfcd223,'authorsIds':Array['from'](_0x555676)};}['_processRootBeforeSave'](_0x18750f){for(const [,_0x2d4b69]of _0x18750f['markers']){const _0x4ad496=_0x2d4b69['start']['getAncestors']()['filter'](_0x1d6606=>'tableCell'==_0x1d6606['name']);for(const _0x511bbf of _0x4ad496)0x1==_0x511bbf['childCount']&&_0x511bbf['getChild'](0x0)['is']('element','paragraph')&&_0x511bbf['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1090db){this['_processRootBeforeSave'](_0x1090db);const _0x340104=this['editor']['data']['toView'](_0x1090db,{}),_0x221b78=Array['from'](_0x340104['getChildren']())['map'](_0x4c017d=>this['_getViewJson'](_0x4c017d));return JSON['stringify'](_0x221b78);}['_getViewJson'](_0x2b1ff3){if(_0x2b1ff3['is']('$text'))return _0x2b1ff3['data'];{const _0x2535ab=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x437590=_0x2b1ff3,_0x514b8b=this['editor']['data']['htmlProcessor']['domConverter'],_0x165a0d={'type':_0x2535ab['_getTypeCharForViewElement'](_0x437590),'name':_0x437590['name'],'attributes':Array['from'](_0x437590['getAttributes']()),'children':Array['from'](_0x437590['getChildren']())['map'](_0x4b6dfb=>this['_getViewJson'](_0x4b6dfb))};if(_0x2b1ff3['is']('uiElement')&&'$comment'!=_0x2b1ff3['name']){const _0x559cb3=_0x2b1ff3['render'](_0x514b8b['domDocument'],_0x514b8b);_0x165a0d['children']['push'](_0x559cb3['outerHTML']);}else{if(_0x2b1ff3['is']('rawElement')){const _0xf1045=_0x514b8b['domDocument']['createElement'](_0x437590['name']);_0x2b1ff3['render'](_0xf1045,_0x514b8b),_0x165a0d['children']['push'](_0xf1045['innerHTML']);}}const _0x85f4a6=Array['from'](_0x437590['getCustomProperties']());_0x85f4a6['length']>0x0&&(_0x165a0d['customProperties']=_0x85f4a6);const _0x340927=_0x437590['getFillerOffset']();return null!==_0x340927&&(_0x165a0d['fillerOffset']=_0x340927),_0x165a0d;}}['_markChanges'](_0xc49cbb,_0x81998e,_0x4128b9,_0x1f3e45,_0xdfe7a7){let _0x5e8530=null,_0x85c2aa=null,_0x3ea265=0x0;const _0x13de35=this['editor']['model'];for(let _0x69f36b=0x0;_0x69f36b<_0x81998e['length'];_0x69f36b++){const _0x42c7bb=this['_getVidAttributeName'](_0x81998e[_0x69f36b]),_0x59cbda=_0x81998e[_0x69f36b]['item']['getAttribute'](_0x42c7bb),_0x17ad41=_0x4128b9['get'](_0x59cbda),_0x5dddce=_0x69f36b==_0x81998e['length']-0x1;(!_0x5e8530&&_0x17ad41&&(_0x5e8530=_0x17ad41,_0x85c2aa=_0x81998e[_0x69f36b]),_0x5e8530&&(!_0x17ad41||_0x17ad41['userId']!=_0x5e8530['userId']))&&(_0x47bc96(_0x17ad41,Rt(_0x85c2aa,_0xc49cbb,_0x13de35),Rt(_0x81998e[_0x69f36b],_0xc49cbb,_0x13de35)),_0x5e8530=_0x17ad41||null,_0x85c2aa=_0x17ad41?_0x81998e[_0x69f36b]:null),_0x5e8530&&_0x5dddce&&_0x47bc96(_0x17ad41,Rt(_0x85c2aa,_0xc49cbb,_0x13de35),kt(_0x81998e[_0x69f36b],_0xc49cbb,_0x13de35));}function _0x47bc96(_0x30824b,_0x54ddd9,_0x368d62){const _0x2dc53c=_0x5e8530['userId'],_0x3418c3='revision:'+_0x1f3e45+':'+_0x2dc53c+':'+_0x3ea265++,_0x9d14ad=_0x13de35['createRange'](_0x54ddd9,_0x368d62);_0xc49cbb['markers']['set'](_0x3418c3,_0x9d14ad),null!==_0x2dc53c&&_0xdfe7a7['add'](_0x2dc53c);}}['_getVidAttributeName'](_0x24534f){switch(_0x24534f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x593afe,_0x20aae6){_0x593afe['baseVersion']=null;for(const _0x1f2d3c in _0x593afe){const _0x586f63=_0x593afe[_0x1f2d3c];if(_0x586f63 instanceof _0x211968){const _0x3f0e89=_0x20aae6['get'](_0x586f63['root']['rootName']);_0x593afe[_0x1f2d3c]=this['_fixPosition'](_0x586f63,_0x3f0e89);}if(_0x586f63 instanceof _0x31a34f){const _0x44381a=_0x20aae6['get'](_0x586f63['root']['rootName']);_0x593afe[_0x1f2d3c]=this['_fixRange'](_0x586f63,_0x44381a);}'root'===_0x1f2d3c&&(_0x593afe['root']=_0x20aae6['get'](_0x593afe['root']['rootName']));}}['_fixRange'](_0x426823,_0x101548){return this['editor']['model']['createRange'](this['_fixPosition'](_0x426823['start'],_0x101548),this['_fixPosition'](_0x426823['end'],_0x101548));}['_fixPosition'](_0x310857,_0x364164){return this['editor']['model']['createPositionFromPath'](_0x364164,_0x310857['path'],_0x310857['stickiness']);}['_handleInsertOperation'](_0x19caaf){const _0x4f9e5b=this['_idsRoots']['get'](_0x19caaf['position']['root']['rootName']),_0x5719c4=this['_fixPosition'](_0x19caaf['position'],_0x4f9e5b),_0x4178dc=null===_0x19caaf['_authorId']?null:_0x19caaf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x268400=_0x5719c4['parent'],_0x3b5ba5=this['_revisionId'],_0x596550=[];for(const _0x4def90 of _0x19caaf['nodes'])if(_0x4def90['is']('element'))_0x596550['push'](this['_makeIdsRoot'](_0x4def90));else{for(let _0x4776c3=0x0;_0x4776c3<_0x4def90['offsetSize'];_0x4776c3++)_0x596550['push'](new _0x52bbda('$text',{'vid':this['_revisionId']++}));}const _0x3dbb36=this['_revisionId'];for(let _0x3cccfd=_0x3b5ba5;_0x3cccfd<_0x3dbb36;_0x3cccfd++)this['_touched']['set'](_0x3cccfd,{'userId':_0x4178dc});_0x268400['_insertChild'](_0x5719c4['offset'],_0x596550);}['_handleMoveOperation'](_0x3996a5){(_0x3996a5=this['_cloneOperation'](_0x3996a5,this['_idsRoots']))['_execute']();const _0x132ad5=null===_0x3996a5['_authorId']?null:_0x3996a5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x13b79e=_0x3996a5['getMovedRangeStart'](),_0x4a0e9c=_0x13b79e['parent'],_0x5d33b6=_0x13b79e['offset'];!function _0x52e3c1(_0xe8a738,_0x3f30bd,_0x5617b3,_0x84b3ae){for(let _0xbe0871=_0x5617b3;_0xbe0871<_0x84b3ae;_0xbe0871++){const _0x480ca1=_0x3f30bd['getChild'](_0xbe0871);_0x480ca1['is']('element','$text')?_0xe8a738['set'](_0x480ca1['getAttribute']('vid'),{'userId':_0x132ad5}):(_0xe8a738['set'](_0x480ca1['getAttribute']('vid_start'),{'userId':_0x132ad5}),_0x52e3c1(_0xe8a738,_0x480ca1,0x0,_0x480ca1['childCount']),_0xe8a738['set'](_0x480ca1['getAttribute']('vid_end'),{'userId':_0x132ad5}));}}(this['_touched'],_0x4a0e9c,_0x5d33b6,_0x5d33b6+_0x3996a5['howMany']);}['_handleMergeOperation'](_0x541f44){const _0x3d8a36=null===(_0x541f44=this['_cloneOperation'](_0x541f44,this['_idsRoots']))['_authorId']?null:_0x541f44['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x59b219=_0x541f44['targetPosition']['parent'],_0x2fc244=_0x541f44['sourcePosition']['parent'],_0x116e0c=_0x59b219['getAttribute']('vid_end'),_0x41b98a=_0x2fc244['getAttribute']('vid_start');_0x59b219['_setAttribute']('vid_end',_0x2fc244['getAttribute']('vid_end')),_0x2fc244['_setAttribute']('vid_end',_0x116e0c),this['_touched']['set'](_0x41b98a,{'userId':_0x3d8a36}),this['_touched']['set'](_0x116e0c,{'userId':_0x3d8a36}),_0x541f44['_execute']();}['_handleSplitOperation'](_0x24cae7){const _0x1db6b0=null===(_0x24cae7=this['_cloneOperation'](_0x24cae7,this['_idsRoots']))['_authorId']?null:_0x24cae7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41c6d4=_0x24cae7['graveyardPosition'],_0x421cde=_0x24cae7['splitPosition']['parent'];_0x24cae7['_execute']();const _0x1248fa=_0x421cde['getAttribute']('vid_end'),_0x44a339=_0x24cae7['insertionPosition']['nodeAfter'];if(_0x41c6d4){const _0x26d001=_0x44a339['getAttribute']('vid_end'),_0x4c5c4b=_0x421cde['getAttribute']('vid_end');_0x421cde['_setAttribute']('vid_end',_0x26d001),_0x44a339['_setAttribute']('vid_end',_0x4c5c4b),this['_touched']['set'](_0x421cde['getAttribute']('vid_end'),{'userId':_0x1db6b0}),this['_touched']['set'](_0x44a339['getAttribute']('vid_start'),{'userId':_0x1db6b0});}else{const _0x23fc67=this['_revisionId']++,_0xf4a4a2=this['_revisionId']++;_0x421cde['_setAttribute']('vid_end',_0x23fc67),_0x44a339['_setAttribute']('vid_start',_0xf4a4a2),_0x44a339['_setAttribute']('vid_end',_0x1248fa),this['_touched']['set'](_0x23fc67,{'userId':_0x1db6b0}),this['_touched']['set'](_0xf4a4a2,{'userId':_0x1db6b0});}}['_handleMarkerOperation'](_0x721895){if(!_0x721895['affectsData'])return;const _0x1d665d=(_0x721895=this['_cloneOperation'](_0x721895,this['_diffRoots']))['oldRange']?_0x721895['oldRange']['root']:null,_0x51838a=_0x721895['newRange']?_0x721895['newRange']['root']:null;_0x1d665d&&this['_markers']['delete'](_0x721895['name']),_0x51838a&&this['_markers']['set'](_0x721895['name'],_0x721895['newRange']['clone']());const _0x1a20ca=null===_0x721895['_authorId']?null:_0x721895['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xae89cd=_0x721895['name'];if(!this['_touchedMarkers']['has'](_0xae89cd))return void this['_touchedMarkers']['set'](_0xae89cd,{'range':_0x721895['oldRange'],'userId':_0x1a20ca});const _0xa8c679=this['_touchedMarkers']['get'](_0xae89cd),_0x5c49f6=_0xa8c679['range'],_0x266f15=_0x721895['newRange'];null==_0x5c49f6&&null==_0x266f15||_0x5c49f6&&_0x266f15&&_0x5c49f6['isEqual'](_0x266f15)?this['_touchedMarkers']['delete'](_0x721895['name']):_0xa8c679['userId']=_0x1a20ca;}['_handleRootOperation'](_0x4addba,_0x3d5210){this['_diffRoots']['has'](_0x4addba['rootName'])?this['_diffRoots']['get'](_0x4addba['rootName'])['_isAttached']=_0x4addba['isAdd']:(this['_diffRoots']['set'](_0x4addba['rootName'],bt(_0x4addba['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4addba['rootName'],{}),_0x3d5210&&this['_idsRoots']['set'](_0x4addba['rootName'],bt(_0x4addba['rootName'],!0x0)));const _0x5c7c10=null===_0x4addba['_authorId']?null:_0x4addba['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a28ee=this['_touchedRoots']['get'](_0x4addba['rootName']);_0x5a28ee&&_0x5a28ee['userId']===_0x5c7c10?this['_touchedRoots']['delete'](_0x4addba['rootName']):this['_touchedRoots']['set'](_0x4addba['rootName'],{'userId':_0x5c7c10,'isAttached':_0x4addba['isAdd']});}['_handleRootAttributeOperation'](_0x1ef08f){const _0x225ea4=this['_diffRootsAttributes']['get'](_0x1ef08f['root']['rootName']);null===_0x1ef08f['newValue']?delete _0x225ea4[_0x1ef08f['key']]:_0x225ea4[_0x1ef08f['key']]=_0x1ef08f['newValue'];}}function yt(_0x53c0a3){const _0x128040=bt(_0x53c0a3['rootName'],_0x53c0a3['isAttached']());for(const _0xb971b5 of _0x53c0a3['getChildren']()){const _0x2a330d=_0xb971b5['_clone'](!0x0);_0x128040['_appendChild'](_0x2a330d);}return _0x128040;}function bt(_0x22c391,_0xcc7e1d=!0x0){const _0x313605=new _0x50023d();return _0x313605['rootName']=_0x22c391,_0x313605['_isAttached']=_0xcc7e1d,_0x313605['isAttached']=()=>_0x313605['_isAttached'],_0x313605;}function Rt(_0x51550c,_0xe64eda,_0x34b39f){const _0xbe049='elementEnd'==_0x51550c['type']?_0x34b39f['createPositionAt'](_0x51550c['item'],'end'):_0x34b39f['createPositionBefore'](_0x51550c['item']);return _0x34b39f['createPositionFromPath'](_0xe64eda,_0xbe049['path'],_0xbe049['stickiness']);}function kt(_0x2f8a17,_0x177921,_0xd96de2){const _0x89ebe6='elementStart'==_0x2f8a17['type']?_0xd96de2['createPositionAt'](_0x2f8a17['item'],0x0):_0xd96de2['createPositionAfter'](_0x2f8a17['item']);return _0xd96de2['createPositionFromPath'](_0x177921,_0x89ebe6['path'],_0x89ebe6['stickiness']);}class At extends/* #__PURE__ -- @preserve */
25
+ _0xb55e7d(_0xca4fb9){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xf07100,_0x53d60d){super(_0xf07100),this['focusTracker']=new _0x5ba765(),this['keystrokes']=new _0x3bd9b0(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x53d60d),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x2527b5({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x190303=_0x5854d3=>_0x5854d3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x190303),this['keystrokes']['set']('arrowleft',_0x190303),this['keystrokes']['set']('arrowup',_0x190303),this['keystrokes']['set']('arrowdown',_0x190303);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5cb3e){this['revisionNameInputView']['fieldView']['element']['value']=_0x5cb3e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4906c0){const _0x521234=new _0xe3a080(this['locale'],_0x401eb8),_0x20f63a=_0x521234['fieldView'];_0x20f63a['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xb29f2d=wt(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4906c0&&(_0xb29f2d+='\x20('+wt(this['locale'],'optional')+')'),(_0x521234['label']=_0xb29f2d,_0x20f63a['on']('input',()=>{this['revisionNameInputValue']=_0x20f63a['element']['value']['trim']();}),_0x521234);}}class It extends _0x559650{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[pt];}['_saveRevisionFormView'];['init'](){const _0x59a5da=this['editor'],_0x5aebda=_0x59a5da['plugins']['get']('RevisionTracker');_0x59a5da['ui']['componentFactory']['add']('revisionHistory',_0x2e06f4=>{const _0x2970b1=_0x12c2f1(_0x2e06f4),_0x3dca24=_0x2970b1['panelView']['children'],_0x1fa52a=new _0x1c0eaf(_0x2e06f4),_0x25e3a9=new _0x37ec86(_0x2e06f4),_0x1c5d24=this['_createSaveRevisionButton'](_0xf43743),_0x2fb396=new _0x37ec86(_0x2e06f4),_0x2f14f8=this['_createOpenRevisionButton'](_0xf43743);return _0x2970b1['bind']('isEnabled')['to'](_0x5aebda,'isReady',_0x5aebda,'isEnabled',_0x59a5da,'isReadOnly',(_0x57f0e5,_0x1850d1,_0x283180)=>_0x57f0e5&&_0x1850d1&&!_0x283180),_0x2970b1['buttonView']['set']({'icon':_0x4c4daa,'label':wt(_0x2e06f4,'Revision\x20history'),'tooltip':!0x0}),_0x1c5d24['set']({'withText':!0x0,'role':'menuitem'}),_0x2f14f8['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x2f14f8,'execute',()=>{_0x2970b1['isOpen']=!0x1,_0x59a5da['editing']['view']['focus']();},{'priority':'low'}),_0x25e3a9['children']['add'](_0x1c5d24),_0x2fb396['children']['add'](_0x2f14f8),_0x1fa52a['role']='menu',_0x1fa52a['items']['addMany']([_0x25e3a9,_0x2fb396]),_0x3dca24['add'](_0x1fa52a),_0x2970b1;}),_0x59a5da['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x421cf4=this['editor'],_0x59d38d=_0x421cf4['locale'],_0x41f53d=_0x421cf4['plugins']['get']('RevisionTracker'),_0x31d54f=new _0x492a74(_0x59d38d),_0x40757f=new _0x146b6c(_0x59d38d);_0x31d54f['bind']('isEnabled')['to'](_0x41f53d,'isReady',_0x41f53d,'isEnabled',_0x421cf4,'isReadOnly',(_0x2ea946,_0x554f5f,_0x2180c9)=>_0x2ea946&&_0x554f5f&&!_0x2180c9),_0x31d54f['buttonView']['set']({'icon':_0x4c4daa,'label':wt(_0x59d38d,'Revision\x20history')});const _0x55c101=new tt(_0x59d38d,_0x31d54f),_0x17753b=this['_createSaveRevisionButton'](it);_0x17753b['delegate']('execute')['to'](_0x31d54f),_0x55c101['children']['add'](_0x17753b),_0x40757f['items']['add'](_0x55c101);const _0x1f44a9=new tt(_0x59d38d,_0x31d54f),_0x486493=this['_createOpenRevisionButton'](it);return _0x486493['delegate']('execute')['to'](_0x31d54f),_0x1f44a9['children']['add'](_0x486493),_0x40757f['items']['add'](_0x1f44a9),_0x31d54f['panelView']['children']['add'](_0x40757f),_0x31d54f;}['_createSaveRevisionButton'](_0x4b6e19){const _0x8e52c1=this['editor'],_0x1deb06=_0x8e52c1['plugins']['get']('RevisionTracker'),_0x23d4d0=new _0x4b6e19(_0x8e52c1['locale']);return _0x23d4d0['set']({'label':wt(_0x8e52c1['locale'],'Save\x20current\x20revision')}),_0x23d4d0['bind']('isEnabled')['to'](_0x1deb06,'isReady',_0x1deb06,'isEnabled',_0x8e52c1,'isReadOnly',(_0x2ac652,_0x1f7e02,_0x1d3459)=>_0x2ac652&&_0x1f7e02&&!_0x1d3459),this['listenTo'](_0x23d4d0,'execute',()=>{this['_showDialog']();}),_0x23d4d0;}['_createOpenRevisionButton'](_0x341c6b){const _0x824fb3=this['editor'],_0x589753=_0x824fb3['plugins']['get']('RevisionTracker'),_0x585c63=new _0x341c6b(_0x824fb3['locale']);return _0x585c63['set']({'label':wt(_0x824fb3['locale'],'Open\x20revision\x20history')}),_0x585c63['bind']('isEnabled')['to'](_0x589753,'isReady',_0x824fb3,'isReadOnly',(_0x5b3eb8,_0x24fee3)=>_0x5b3eb8&&!_0x24fee3),this['listenTo'](_0x585c63,'execute',()=>{_0x824fb3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x585c63;}['_showDialog'](){const _0x101b37=this['editor'],_0x3d191e=_0x101b37['locale'],_0x1d5a0b=_0x101b37['plugins']['get']('Dialog'),_0x12f671=_0x101b37['plugins']['get']('RevisionTracker');function _0x3023f9(_0x2627e2){_0x101b37['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2627e2['revisionName']?_0x2627e2['revisionNameInputView']['errorText']=wt(_0x3d191e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x101b37['plugins']['get'](pt)['saveRevision']({'name':_0x2627e2['revisionName']}),_0x1d5a0b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3023f9(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1d5a0b['show']({'id':'revisionSave','title':wt(_0x3d191e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':wt(_0x101b37['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1d5a0b['hide']()},{'label':wt(_0x101b37['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xb81e5d){_0xb81e5d['bind']('isEnabled')['to'](_0x12f671,'isReady',_0x12f671,'isEnabled',_0x101b37,'isReadOnly',(_0x30bb89,_0x65579d,_0x4b865c)=>_0x30bb89&&_0x65579d&&!_0x4b865c);},'onExecute':()=>_0x3023f9(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x433418=this['editor'],_0x1320a0=_0x433418['locale'];this['_saveRevisionFormView']=new At(_0x1320a0,_0x433418['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Nt extends _0xca4fb9{['changeId'];['_model'];constructor(_0x7f8635,_0x392f65){super(_0x7f8635),this['_model']=_0x392f65,this['changeId']=_0x392f65['id'];const _0xe07124=this['bindTemplate'],_0x5ad709=wt(_0x7f8635,_0x392f65['data']['isSuggestion']?'Suggested\x20by':'add'==_0x392f65['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x392f65['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xe07124['to']('type',_0x141c13=>'ck-revision-change__'+_0x141c13)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5ad709}]},{'text':'\x20'+_0x392f65['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class xt extends/* #__PURE__ -- @preserve */
26
+ _0x291460(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x28ed2f){super(),this['id']=_0x28ed2f['id']||_0x52b761(),this['author']=_0x28ed2f['author'],this['type']=_0x28ed2f['type'],this['data']=_0x28ed2f['data']||{},this['rootName']=_0x28ed2f['rootName'],this['set']('createdAt',_0x28ed2f['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class Et{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x16124e,_0x4f22c6){this['newRevisionId']=_0x16124e,this['oldRevisionId']=_0x4f22c6,this['changes']=new _0x1cde0c();}['_setChanges'](_0x30b1b0){for(const _0x1685ab of _0x30b1b0)this['changes']['add'](_0x1685ab);}}class St extends _0x559650{['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[_0x3cd60e,st,gt,mt];}constructor(_0x4543de){super(_0x4543de),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',(_0x58c905,_0x6662df,_0x5e9e2a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x18f6c3=>{for(const _0x14b594 of this['editor']['editing']['view']['document']['roots'])_0x5e9e2a?_0x18f6c3['removeClass']('ck-editor__editable__overlay',_0x14b594):_0x18f6c3['addClass']('ck-editor__editable__overlay',_0x14b594);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2120e1=>null!==_0x2120e1),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x403c58,_0x933cd8,_0x1f676c)=>_0x403c58&&_0x1f676c?_0x933cd8['changes']['getIndex'](_0x1f676c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x7c930e,_0x1b94c1)=>_0x7c930e?_0x1b94c1['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](st);}['init'](){const _0x44c146=this['editor'],_0x5ae01a=new Mt(_0x44c146,{'direction':'backward'}),_0x1ffc0a=new Mt(_0x44c146,{'direction':'forward'});(_0x44c146['commands']['add']('showPreviousChange',_0x5ae01a),_0x44c146['commands']['add']('showNextChange',_0x1ffc0a),_0x44c146['commands']['add']('restoreRevision',new Ct(_0x44c146)),this['on']('change:numberOfChanges',()=>{_0x5ae01a['refresh'](),_0x1ffc0a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x44c146['enableReadOnlyMode']('revision-viewer'),_0x44c146['plugins']['has']('WidgetToolbarRepository'))&&_0x44c146['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x6cd4ba){return await this['_utils']['loadRevisionData'](_0x6cd4ba,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x6cd4ba);}async['getRevisionRootsAttributes'](_0x1ffa1f){return await this['_utils']['loadRevisionData'](_0x1ffa1f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1ffa1f);}async['compare'](_0x469e74,_0xc902f9,_0x3a9d1f=!0x1){if(!this['isEnabled'])return;const _0xb6a0f7=this['diff'],_0x2f6102=this['repository'],_0x3227a4='string'==typeof _0x469e74?_0x2f6102['getRevision'](_0x469e74):_0x469e74,_0x290cab='string'==typeof _0xc902f9?_0x2f6102['getRevision'](_0xc902f9):_0xc902f9,_0x298469=_0x3227a4['id'],_0x563b4f=_0x290cab?_0x290cab['id']:null;if(!_0x3a9d1f&&this['diff']&&this['diff']['newRevisionId']===_0x298469&&this['diff']['oldRevisionId']===_0x563b4f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new Et(_0x298469,_0x563b4f);const _0x26c6a1=this['_getRevisionsRange'](_0x3227a4,_0x290cab,!0x0)['map'](_0x540372=>this['_utils']['loadRevisionData'](_0x540372,this['adapter']));return _0x26c6a1['push'](new Promise(_0x4ab185=>{setTimeout(_0x4ab185,0x14);})),Promise['all'](_0x26c6a1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x474995=this['_getDiff'](_0x298469,_0x563b4f);for(const _0x39306f of _0x474995['changes'])this['_changeIdToChange']['set'](_0x39306f['id'],_0x39306f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3a5175=>{for(const _0x45e9d2 of this['editor']['model']['document']['getRootNames']())_0x3a5175['detachRoot'](_0x45e9d2);for(const _0x5480d3 of Object['keys'](_0x474995['model'])){const _0x58c607=_0x3a5175['addRoot'](_0x5480d3);for(const _0x17e54b of Object['keys'](_0x474995['attributes'][_0x5480d3]))_0x3a5175['setAttribute'](_0x17e54b,_0x474995['attributes'][_0x5480d3][_0x17e54b],_0x58c607);_0x3a5175['insert'](_0x474995['model'][_0x5480d3],_0x58c607,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x474995['changes'])),this['isReady']=!0x0;})['catch'](_0x356680=>{console['error'](_0x356680),this['_cleanUp'](),_0xb6a0f7&&(this['diff']=_0xb6a0f7),this['isReady']=!0x0;});}['addRevisionData'](_0x38af98,_0x502e55){const _0x1c1671=this['repository']['createRevision'](_0x38af98);return _0x1c1671['on']('_update',(_0x57a99c,_0x2239e8,_0x586b7e)=>_0x502e55(_0x2239e8,_0x586b7e,_0x1c1671)),this['repository']['addRevision'](_0x1c1671),_0x1c1671;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1e4e91=>{for(const _0x309b76 of this['editor']['model']['document']['getRootNames']())_0x1e4e91['detachRoot'](_0x309b76);});}['_sortAndFilterDiffChanges'](_0x54237e){const _0x274128=[],_0x2a5246=new Map();for(const _0x53891f of this['editor']['model']['document']['getRootNames']()){const _0x5c1b0f=this['editor']['editing']['view']['getDomRoot'](_0x53891f);if(!_0x5c1b0f)continue;const _0xe0bd57=_0x5c1b0f['getClientRects']()['item'](0x0);_0xe0bd57&&(_0x274128['push'](_0x53891f),_0x2a5246['set'](_0x53891f,_0xe0bd57));}return _0x274128['sort']((_0xf6ad92,_0x593121)=>{const _0x422c61=_0x2a5246['get'](_0xf6ad92),_0x31e9b1=_0x2a5246['get'](_0x593121);return _0x422c61['y']-_0x31e9b1['y']||_0x422c61['x']-_0x31e9b1['x'];}),(_0x54237e=_0x54237e['filter'](_0x1aca33=>_0x274128['includes'](_0x1aca33['rootName'])))['sort']((_0x574f31,_0x126980)=>_0x274128['indexOf'](_0x574f31['rootName'])-_0x274128['indexOf'](_0x126980['rootName'])),_0x54237e;}['_makeTape'](_0x5d1095){const _0x2bacd0=Array['from'](_0x5d1095['markers'])['filter'](([_0x34bbd5,_0x403eba])=>_0x34bbd5['startsWith']('revision:')&&!_0x403eba['isCollapsed']),_0x11929e=Array['from'](this['editor']['model']['createRangeIn'](_0x5d1095)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2bacd0['length'])for(const _0x57f978 of _0x11929e){const [_0x5a57ee,_0x445aed]=_0x2bacd0[0x0],[,_0x3b6c85,_0x1064fd]=_0x5a57ee['split'](':');if(_0x445aed['end']['isEqual'](_0x57f978['nextPosition'])&&_0x2bacd0['shift'](),(_0x57f978['previousPosition']['isEqual'](_0x445aed['start'])||_0x57f978['previousPosition']['isAfter'](_0x445aed['start']))&&('insertion'==_0x3b6c85?_0x57f978['isAdded']={'userId':_0x1064fd}:'deletion'==_0x3b6c85&&(_0x57f978['isRemoved']={'userId':_0x1064fd})),0x0==_0x2bacd0['length'])break;}return _0x11929e;}['_refreshStartEndIndex'](_0x370f79){const _0x3f8874=new Map();for(let _0x46c0a9=0x0;_0x46c0a9<_0x370f79['length'];_0x46c0a9++)'text'===_0x370f79[_0x46c0a9]['type']?(_0x370f79[_0x46c0a9]['item']['startIndex']=_0x46c0a9,_0x370f79[_0x46c0a9]['item']['endIndex']=_0x46c0a9):('elementStart'===_0x370f79[_0x46c0a9]['type']?_0x370f79[_0x46c0a9]['item']['startIndex']=_0x46c0a9:'elementEnd'===_0x370f79[_0x46c0a9]['type']&&(_0x370f79[_0x46c0a9]['item']['endIndex']=_0x46c0a9),_0x3f8874['set'](_0x370f79[_0x46c0a9]['id'],_0x46c0a9));for(const _0xc6990d of _0x3f8874['values']())'elementStart'===_0x370f79[_0xc6990d]['type']?_0x370f79[_0xc6990d]['item']['endIndex']=_0x3f8874['get'](_0x370f79[_0xc6990d]['pairId']):'elementEnd'===_0x370f79[_0xc6990d]['type']&&(_0x370f79[_0xc6990d]['item']['startIndex']=_0x3f8874['get'](_0x370f79[_0xc6990d]['pairId']));}['_processTape'](_0x378e16){for(let _0x1ec7b9=0x0;_0x1ec7b9<_0x378e16['length'];_0x1ec7b9++){if('elementStart'===_0x378e16[_0x1ec7b9]['type'])_0x378e16[_0x1ec7b9]['item']['startIndex']=_0x1ec7b9;else{if('elementEnd'===_0x378e16[_0x1ec7b9]['type']){_0x378e16[_0x1ec7b9]['item']['endIndex']=_0x1ec7b9;const _0x2936a2=_0x378e16[_0x1ec7b9]['item']['startIndex'];_0x378e16[_0x2936a2]['pairId']=_0x378e16[_0x1ec7b9]['id'],_0x378e16[_0x1ec7b9]['pairId']=_0x378e16[_0x2936a2]['id'];}else _0x378e16[_0x1ec7b9]['item']['startIndex']=_0x1ec7b9,_0x378e16[_0x1ec7b9]['item']['endIndex']=_0x1ec7b9,_0x378e16[_0x1ec7b9]['pairId']=null;}_0x378e16[_0x1ec7b9]['markersStart']||(_0x378e16[_0x1ec7b9]['markersStart']=[],_0x378e16[_0x1ec7b9]['markersEnd']=[]);}}['_markInsertions'](_0x5556b8,_0x1bdf76){const _0x202dba=_0x5556b8['filter'](_0x173892=>!_0x173892['isAdded']);for(let _0x4a96ae=0x0;_0x4a96ae<_0x1bdf76['length'];_0x4a96ae++)_0x1bdf76[_0x4a96ae]['isAdded']&&(_0x202dba[_0x4a96ae]['isAdded']=_0x1bdf76[_0x4a96ae]['isAdded']);}['_getDiff'](_0x36797f,_0x2e65c7=null){const _0x48bab0=this['repository']['getRevision'](_0x36797f),_0x1e7823=_0x2e65c7?this['repository']['getRevision'](_0x2e65c7):null,_0x190fbd=this['_getRevisionsRange'](_0x48bab0,_0x1e7823),_0x2522c1=_0x190fbd[_0x190fbd['length']-0x1],_0xb49d1a=new Map(),_0x5678b3={'model':{},'attributes':{},'changes':[]},_0xe74f07=new Set(),_0x3d7be5=new Map();for(let _0x3f41ed=_0x190fbd['length']-0x1;_0x3f41ed>=0x0;_0x3f41ed--){const _0x1454e5=_0x190fbd[_0x3f41ed];for(const _0x1e1c8a of Object['keys'](_0x1454e5['diffData']))if(_0x1454e5['diffData'][_0x1e1c8a]['attachChange']){const _0x532fde=_0x1454e5['diffData'][_0x1e1c8a]['attachChange'];_0x532fde['isAttached']?(_0xe74f07['add'](_0x1e1c8a),_0x3d7be5['has'](_0x1e1c8a)&&_0x3d7be5['get'](_0x1e1c8a)['userId']==_0x532fde['userId']?_0x3d7be5['delete'](_0x1e1c8a):_0x3d7be5['set'](_0x1e1c8a,_0x532fde)):_0x3d7be5['has'](_0x1e1c8a)?(_0xe74f07['delete'](_0x1e1c8a),_0x3d7be5['delete'](_0x1e1c8a)):(_0xe74f07['add'](_0x1e1c8a),_0x3d7be5['set'](_0x1e1c8a,_0x532fde));}else _0xe74f07['add'](_0x1e1c8a);}for(const _0x56a8b8 of _0xe74f07){const _0x4b2c3e=_0x3d7be5['has'](_0x56a8b8)&&!_0x3d7be5['get'](_0x56a8b8)['isAttached'];let _0x4c0196=_0x4b2c3e?_0x190fbd['length']-0x1:0x0;const _0x2014de=_0x4b2c3e?-0x1:0x1;for(;_0x190fbd[_0x4c0196];){const _0xfb108a=_0x190fbd[_0x4c0196];if(_0xfb108a['diffData'][_0x56a8b8]){const _0x4713aa=_0x4b2c3e?_0xfb108a['diffData'][_0x56a8b8]['attributesBefore']:_0xfb108a['diffData'][_0x56a8b8]['attributesAfter'];_0x5678b3['attributes'][_0x56a8b8]=_0x4713aa?_0x2fa55e(_0x4713aa):{};break;}_0x4c0196+=_0x2014de;}}for(const _0x1afa8a of _0x190fbd){_0x1afa8a['model']={};for(const _0xfc81ad of _0x1afa8a['authors'])_0xb49d1a['set'](_0xfc81ad['id'],_0xfc81ad);for(const _0x29dd32 of _0xe74f07){const _0x3c9aac=_0x1afa8a['diffData'][_0x29dd32]?_0x1afa8a['diffData'][_0x29dd32]['insertions']:'[]',_0x2de1bf=_0x1afa8a['diffData'][_0x29dd32]?_0x1afa8a['diffData'][_0x29dd32]['deletions']:'[]';_0x1afa8a['model'][_0x29dd32]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3c9aac),'deletions':this['_utils']['_makeModelFromViewString'](_0x2de1bf)};}}for(const _0x6abbb8 of _0xe74f07){let _0x506d38=null,_0x31f575=0x0;const _0x42fe47=new Map(Array['from'](_0x48bab0['model'][_0x6abbb8]['insertions']['markers'])['filter'](([_0xaacc8f])=>!_0xaacc8f['startsWith']('revision:')));let _0x351fda=0x0;for(const _0x2e910a of _0x190fbd){const _0xdc7e5f=this['_makeTape'](_0x2e910a['model'][_0x6abbb8]['insertions']);_0x2e910a==_0x48bab0?(_0x506d38=_0xdc7e5f,_0x31f575=_0x506d38['length'],_0x506d38['forEach'](_0x540e10=>{_0x540e10['id']=_0x351fda++;}),this['_processTape'](_0x506d38)):this['_markInsertions'](_0x506d38,_0xdc7e5f);const _0x4f9bd1=_0x506d38['filter'](_0x188e1a=>!_0x188e1a['isAdded'])['map'](_0x1c90af=>_0x1c90af['id']);let _0x44169b=0x0;const _0x37c998=this['_makeTape'](_0x2e910a['model'][_0x6abbb8]['deletions']);_0x37c998['forEach'](_0x111ced=>{_0x111ced['isRemoved']?_0x111ced['id']=_0x31f575++:_0x111ced['id']=_0x4f9bd1[_0x44169b++];}),this['_processTape'](_0x37c998),this['_setDistance'](_0x506d38,'isAdded'),this['_setDistance'](_0x37c998,'isRemoved'),_0x2e910a==_0x48bab0&&this['_markMarkers'](_0x506d38,_0x42fe47),_0x506d38=this['_joinTapes'](_0x506d38,_0x37c998),this['_refreshStartEndIndex'](_0x506d38),this['_setDistance'](_0x506d38,'isRemoved');}_0x506d38=_0x506d38['filter'](_0xc63784=>!(_0xc63784['isAdded']&&_0xc63784['isRemoved']));const _0x51efbf=new Map(_0x2522c1['model'][_0x6abbb8]['deletions']['markers']),_0x52201d=new Set(_0x42fe47['keys']());for(const _0x5dc083 of _0x51efbf['keys']())_0x52201d['delete'](_0x5dc083);this['_markSuggestions'](_0x506d38,_0x52201d),this['_fixObsoleteTags'](_0x506d38),_0x506d38=this['_removeMissingPairs'](_0x506d38),_0x506d38=this['_markMismatchedRemovedTags'](_0x506d38),_0x506d38=this['_removeUnsupportedChanges'](_0x506d38);const {root:_0x566ee4,changes:_0x248b21}=this['_makeModelFromTape'](_0x506d38,_0xb49d1a,_0x6abbb8);_0x5678b3['model'][_0x6abbb8]=_0x566ee4;const _0x1c6d44=_0x3d7be5['get'](_0x6abbb8);if(_0x1c6d44){const _0x590d66=_0xb49d1a['get'](_0x1c6d44['userId']),_0x31b5e5=new xt({'author':_0x590d66,'type':_0x1c6d44['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x6abbb8});_0x248b21['unshift'](_0x31b5e5),_0x5678b3['attributes'][_0x6abbb8]['revisionHistoryAttachChange']=_0x31b5e5['id'];}_0x5678b3['changes']=_0x5678b3['changes']['concat'](_0x248b21);}return _0x5678b3;}['_markMarkers'](_0x2484c3,_0x1131ed){for(let _0x3c74ee=0x0;_0x3c74ee<_0x2484c3['length'];_0x3c74ee++)for(const [_0x2b886a,_0xdf48c4]of _0x1131ed)!_0xdf48c4['isCollapsed']&&_0xdf48c4['start']['isEqual'](_0x2484c3[_0x3c74ee]['previousPosition'])&&_0x2484c3[_0x3c74ee]['markersStart']['push'](_0x2b886a),_0xdf48c4['end']['isEqual'](_0x2484c3[_0x3c74ee]['nextPosition'])&&_0x2484c3[_0x3c74ee]['markersEnd']['push'](_0x2b886a);}['_joinTapes'](_0x24909c,_0x43a13b){let _0x16c69d=[],_0x1774ea=0x0,_0x2edd2d=0x0;for(;_0x1774ea<_0x24909c['length']||_0x2edd2d<_0x43a13b['length'];){const _0x1928de=_0x24909c[_0x1774ea]||{},_0x18294e=_0x43a13b[_0x2edd2d]||{};if(_0x1928de['id']==_0x18294e['id'])_0x1774ea++,_0x2edd2d++,_0x16c69d['push'](_0x1928de);else{if(_0x18294e['isRemoved']&&_0x1928de['isAdded']){const {commonTape:_0x2f7742,iEnd:_0x195334,jEnd:_0x28f7b0}=this['_threeWayMerge'](_0x24909c,_0x1774ea,_0x43a13b,_0x2edd2d);_0x16c69d=_0x16c69d['concat'](_0x2f7742),_0x1774ea=_0x195334,_0x2edd2d=_0x28f7b0;}else _0x18294e['isRemoved']?(_0x2edd2d++,_0x16c69d['push'](_0x18294e)):(_0x1774ea++,_0x16c69d['push'](_0x1928de));}}return _0x16c69d;}['_markSuggestions'](_0x315a88,_0x1ae15a){const _0x198ebb=[];for(let _0x138131=0x0;_0x138131<_0x315a88['length'];_0x138131++){for(let _0x3b74a6=0x0;_0x3b74a6<_0x315a88[_0x138131]['markersStart']['length'];_0x3b74a6++){const _0x2046a3=_0x315a88[_0x138131]['markersStart'][_0x3b74a6];if(!_0x1ae15a['has'](_0x2046a3))continue;const {group:_0x3f5024,type:_0x3c29cd,authorId:_0xca17fd}=_0x6947a0(_0x2046a3);'revision-suggestion'!=_0x3f5024||'insertion'!=_0x3c29cd&&'deletion'!=_0x3c29cd||(_0x198ebb['unshift']({'type':_0x3c29cd,'name':_0x2046a3,'userId':_0xca17fd}),_0x315a88[_0x138131]['markersStart']['splice'](_0x3b74a6,0x1),_0x3b74a6--);}_0x3136f0(_0x315a88[_0x138131]);for(let _0x5413b1=0x0;_0x5413b1<_0x315a88[_0x138131]['markersEnd']['length'];_0x5413b1++){const _0x4fe193=_0x315a88[_0x138131]['markersEnd'][_0x5413b1];if(!_0x1ae15a['has'](_0x4fe193))continue;const {group:_0x2a27a7,type:_0x1966b0}=_0x6947a0(_0x4fe193);if('revision-suggestion'!=_0x2a27a7||'insertion'!=_0x1966b0&&'deletion'!=_0x1966b0)continue;_0x315a88[_0x138131]['markersEnd']['splice'](_0x5413b1,0x1),_0x5413b1--;const _0x541117=_0x198ebb['findIndex'](_0x1d0efb=>_0x1d0efb['name']==_0x4fe193);_0x541117>-0x1&&_0x198ebb['splice'](_0x541117,0x1);}}function _0x6947a0(_0x579c7d){const _0xc383c1=_0x579c7d['split'](':');return{'group':_0xc383c1[0x0],'type':_0xc383c1[0x1],'subType':_0xc383c1['length']>=0x5?_0xc383c1[0x2]:null,'id':_0xc383c1['length']<0x5?_0xc383c1[0x2]:_0xc383c1[0x3],'authorId':_0xc383c1['length']<0x5?_0xc383c1[0x3]:_0xc383c1[0x4],'markerCount':0x6==_0xc383c1['length']?_0xc383c1[0x5]:null};}function _0x3136f0(_0x357b85){for(let _0x5d1422=0x0;_0x5d1422<_0x198ebb['length'];_0x5d1422++){if(_0x357b85['isAdded']&&'insertion'==_0x198ebb[_0x5d1422]['type']&&_0x357b85['isAdded']['userId']==_0x198ebb[_0x5d1422]['userId'])return _0x357b85['isAddSuggestion']=_0x198ebb[_0x5d1422],void delete _0x357b85['isAdded'];if(!_0x357b85['isAdded']&&!_0x357b85['isRemoved']&&'deletion'==_0x198ebb[_0x5d1422]['type'])return void(_0x357b85['isRemoveSuggestion']=_0x198ebb[_0x5d1422]);}}}['_setDistance'](_0x1983ae,_0x31e5d4){let _0x5178dd=0x0,_0xfeb20c=!0x1;const _0x4dbd75=new Map();for(const _0x46f429 of _0x1983ae)_0x46f429[_0x31e5d4]?_0xfeb20c&&(_0x5178dd++,_0xfeb20c=!0x1):(_0x5178dd++,_0xfeb20c=!0x0),_0x4dbd75['set'](_0x46f429['id'],_0x5178dd);for(let _0x5a78a7=0x0;_0x5a78a7<_0x1983ae['length'];_0x5a78a7++){if('isRemoved'==_0x31e5d4&&_0x1983ae[_0x5a78a7]['isAdded']||'isAdded'==_0x31e5d4&&_0x1983ae[_0x5a78a7]['isRemoved'])continue;if('text'==_0x1983ae[_0x5a78a7]['type']){_0x1983ae[_0x5a78a7]['distance']=0x0;continue;}const _0x554e25=_0x4dbd75['get'](_0x1983ae[_0x5a78a7]['pairId']),_0xb46cdc=_0x4dbd75['get'](_0x1983ae[_0x5a78a7]['id']);_0x1983ae[_0x5a78a7]['distance']=_0x554e25-_0xb46cdc;}}['_getRevisionsRange'](_0x5b05df,_0x23748f,_0x627d3e=!0x1){const _0xdfe84f=[];let _0x55d4c6=this['repository']['getIndex'](_0x5b05df),_0x2f60ad=this['repository']['getIndex'](_0x23748f);for(-0x1==_0x2f60ad&&(_0x2f60ad=this['repository']['_revisions']['length'],_0x627d3e=!0x1);_0x55d4c6<_0x2f60ad;)_0xdfe84f['push'](this['repository']['getRevision'](_0x55d4c6)),_0x55d4c6++;return _0x627d3e&&_0xdfe84f['push'](this['repository']['getRevision'](_0x55d4c6)),_0xdfe84f;}['_threeWayMerge'](_0x1e88fc,_0x44a8ce,_0x5b6153,_0x131c29){const _0x183ae0=this['editor']['model']['schema'];let _0x1eb813=_0x44a8ce;for(;_0x1e88fc[_0x1eb813]&&_0x1e88fc[_0x1eb813]['isAdded'];)_0x1eb813++;let _0x87eac5=_0x131c29;for(;_0x5b6153[_0x87eac5]&&_0x5b6153[_0x87eac5]['isRemoved'];)_0x87eac5++;_0x2ba0f3(_0x1e88fc,_0x44a8ce,_0x1eb813),_0x2ba0f3(_0x5b6153,_0x131c29,_0x87eac5);const _0x5d2f9a=_0x5b6153['slice'](_0x131c29,_0x87eac5)['concat'](_0x1e88fc['slice'](_0x44a8ce,_0x1eb813));return _0x5d2f9a['sort']((_0x14920a,_0x245b30)=>_0x14920a['side']!=_0x245b30['side']?_0x14920a['side']-_0x245b30['side']:_0x14920a['level']!=_0x245b30['level']?_0x14920a['level']-_0x245b30['level']:_0x14920a['distance']!=_0x245b30['distance']?_0x245b30['distance']-_0x14920a['distance']:!!_0x14920a['isAdded']!=!!_0x245b30['isAdded']?-0x1==_0x14920a['side']||0x0==_0x14920a['side']?_0x14920a['isAdded']?-0x1:0x1:_0x14920a['isAdded']?0x1:-0x1:_0x14920a['index']-_0x245b30['index']),{'commonTape':_0x5d2f9a,'iEnd':_0x1eb813,'jEnd':_0x87eac5};function _0x2ba0f3(_0x5ba91b,_0x254b48,_0x2b6ec8){let _0xf7be9e=-0x1,_0xf5551=Number['POSITIVE_INFINITY'],_0x1c3e30=!0x0;for(let _0x3499be=_0x254b48;_0x3499be<_0x2b6ec8;_0x3499be++)if(_0x183ae0['isInline'](_0x5ba91b[_0x3499be]['item'])||(_0x1c3e30=!0x1),_0x5ba91b[_0x3499be]['item']['startIndex']<_0x254b48&&(_0xf7be9e=_0x3499be),_0x5ba91b[_0x3499be]['item']['endIndex']>=_0x2b6ec8){_0xf5551=_0x3499be;break;}_0x1c3e30&&(_0xf7be9e=_0x2b6ec8-0x1);for(let _0x4247dd=_0x254b48;_0x4247dd<_0x2b6ec8;_0x4247dd++)_0x5ba91b[_0x4247dd]['side']=_0x4247dd<=_0xf7be9e?-0x1:_0x4247dd<_0xf5551?0x0:0x1,_0x5ba91b[_0x4247dd]['index']=_0x4247dd;let _0x10ba13=0x0;for(let _0x1cdb75=_0x254b48;_0x1cdb75<=_0xf7be9e;_0x1cdb75++)0x0==_0x5ba91b[_0x1cdb75]['distance']?_0x5ba91b[_0x1cdb75]['level']=_0x10ba13:(_0x10ba13++,_0x5ba91b[_0x1cdb75]['level']=_0x10ba13,_0x10ba13++);for(let _0x4b3dc7=_0x254b48;_0x4b3dc7<_0x2b6ec8;_0x4b3dc7++)0x0==_0x5ba91b[_0x4b3dc7]['side']&&(_0x5ba91b[_0x4b3dc7]['level']=_0x10ba13);_0x10ba13=0x0;for(let _0x5f1254=_0x2b6ec8-0x1;_0x5f1254>=_0xf5551;_0x5f1254--)0x0==_0x5ba91b[_0x5f1254]['distance']?_0x5ba91b[_0x5f1254]['level']=_0x10ba13:(_0x10ba13--,_0x5ba91b[_0x5f1254]['level']=_0x10ba13,_0x10ba13--);}}['_fixObsoleteTags'](_0x5652d0){const _0xfc17b1=new Map(),_0xd89613=this['editor']['model']['schema'];for(let _0x45d653=0x1;_0x45d653<_0x5652d0['length'];_0x45d653++){let _0x55c4e4,_0x2c07e1,_0x409a42;const _0x3db85b=_0x5652d0[_0x45d653],_0x54b516=_0x5652d0[_0x45d653-0x1];if('text'==_0x3db85b['type'])continue;if(_0x3db85b['type']!=_0x54b516['type'])continue;if(!_0xd89613['isBlock'](_0x54b516['item'])||_0xd89613['isLimit'](_0x54b516['item']))continue;if(!_0xd89613['isBlock'](_0x3db85b['item'])||_0xd89613['isLimit'](_0x3db85b['item']))continue;if((_0x5652d0[_0x45d653]['isAdded']||_0x5652d0[_0x45d653]['isAddSuggestion'])&&_0x5652d0[_0x45d653-0x1]['isRemoved'])_0x55c4e4=_0x5652d0[_0x45d653],_0x2c07e1=_0x5652d0[_0x45d653-0x1],_0x409a42=_0x45d653-0x1;else{if(!_0x5652d0[_0x45d653]['isRemoved']||!_0x5652d0[_0x45d653-0x1]['isAdded']&&!_0x5652d0[_0x45d653-0x1]['isAddSuggestion'])continue;_0x55c4e4=_0x5652d0[_0x45d653-0x1],_0x2c07e1=_0x5652d0[_0x45d653],_0x409a42=_0x45d653;}const _0x8044a1=_0x55c4e4['level']==_0x2c07e1['level'],_0x9817ad=Math['abs'](_0x55c4e4['level'])<Math['abs'](_0x2c07e1['level'])&&0x0==_0x2c07e1['distance'];(_0x8044a1||_0x9817ad)&&(_0xfc17b1['set'](_0x2c07e1['id'],_0x55c4e4['id']),_0x5652d0['splice'](_0x409a42,0x1),_0x45d653--,_0x55c4e4['isAdded']=!0x1);}for(let _0x5488b3=0x0;_0x5488b3<_0x5652d0['length'];_0x5488b3++)_0xfc17b1['has'](_0x5652d0[_0x5488b3]['pairId'])&&(_0x5652d0[_0x5488b3]['pairId']=_0xfc17b1['get'](_0x5652d0[_0x5488b3]['pairId']));}['_removeMissingPairs'](_0x38dff9){const _0x3e1df7=new Set(_0x38dff9['map'](_0x133669=>_0x133669['id']));for(let _0x21e362=0x0;_0x21e362<_0x38dff9['length'];_0x21e362++)_0x3e1df7['has'](_0x38dff9[_0x21e362]['pairId'])||0x0==_0x38dff9[_0x21e362]['distance']||(_0x38dff9[_0x21e362]['isIncorrect']=!0x0);return _0x38dff9['filter'](_0x20f2e0=>!_0x20f2e0['isIncorrect']);}['_markMismatchedRemovedTags'](_0x10710d){const _0x21cca5=new Set();for(let _0x2f4f98=0x0;_0x2f4f98<_0x10710d['length'];_0x2f4f98++){if(_0x21cca5['has'](_0x10710d[_0x2f4f98]['id'])&&_0x10710d[_0x2f4f98]['isRemoved']&&(_0x10710d[_0x2f4f98]['isIncorrect']=!0x0),_0x10710d[_0x2f4f98]['isIncorrect'])continue;if(0x0==_0x10710d[_0x2f4f98]['distance'])continue;if('elementStart'!=_0x10710d[_0x2f4f98]['type'])continue;if(null==_0x10710d[_0x2f4f98]['pairId'])continue;let _0x46c292=_0x2f4f98+0x1,_0x4c08eb=0x0;for(;_0x10710d[_0x46c292]['id']!=_0x10710d[_0x2f4f98]['pairId'];)'elementStart'==_0x10710d[_0x46c292]['type']?_0x4c08eb++:'elementEnd'==_0x10710d[_0x46c292]['type']&&_0x4c08eb--,_0x46c292++;if(0x0!=_0x4c08eb){if(_0x10710d[_0x2f4f98]['isRemoved'])_0x10710d[_0x2f4f98]['isIncorrect']=!0x0;else{for(;_0x46c292!=_0x2f4f98;)_0x10710d[_0x46c292]['isRemoved']&&0x0!=_0x10710d[_0x46c292]['distance']&&(_0x10710d[_0x46c292]['isIncorrect']=!0x0,_0x21cca5['add'](_0x10710d[_0x46c292]['pairId'])),_0x46c292--;}}}return _0x10710d['filter'](_0x2e708b=>!_0x2e708b['isIncorrect']);}['_removeUnsupportedChanges'](_0x18cc21){const _0x26372e=this['editor']['model']['schema'];for(let _0x164b4d=0x0;_0x164b4d<_0x18cc21['length'];_0x164b4d++){if(!(_0x18cc21[_0x164b4d]['isAdded']||_0x18cc21[_0x164b4d]['isAddSuggestion']||_0x18cc21[_0x164b4d]['isRemoved']||_0x18cc21[_0x164b4d]['isRemoveSuggestion']))continue;if(0x0==_0x18cc21[_0x164b4d]['distance'])continue;const _0x4413d6=_0x18cc21[_0x164b4d]['item'];_0x26372e['isBlock'](_0x4413d6)||_0x26372e['isLimit'](_0x4413d6)||(_0x18cc21[_0x164b4d]['isAdded']&&delete _0x18cc21[_0x164b4d]['isAdded'],_0x18cc21[_0x164b4d]['isAddSuggestion']&&delete _0x18cc21[_0x164b4d]['isAddSuggestion'],_0x18cc21[_0x164b4d]['isRemoveSuggestion']&&delete _0x18cc21[_0x164b4d]['isRemoveSuggestion'],_0x18cc21[_0x164b4d]['isRemoved']&&(_0x18cc21[_0x164b4d]['isIncorrect']=!0x0));}return _0x18cc21['filter'](_0x30bba8=>!_0x30bba8['isIncorrect']);}['_makeModelFromTape'](_0x16b7e0,_0x43107b,_0x58fe5b){const _0x1f2a13=new _0x50023d(),_0x143512=[],_0xf05d4b=new Map(),_0x130bda=this['editor']['model'],_0x595aa8=_0x130bda['schema'],_0x2f094c=[_0x1f2a13],_0x343421={},_0x4bc86c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x68d3ba=null;const _0x597866=[0x0];for(let _0x10fa8e=0x0;_0x10fa8e<_0x16b7e0['length'];_0x10fa8e++)if('elementStart'===_0x16b7e0[_0x10fa8e]['type']){_0x16b7e0[_0x10fa8e]['previousPosition']=_0x130bda['createPositionFromPath'](_0x1f2a13,_0x597866);const _0x24954d=new _0x52bbda(_0x16b7e0[_0x10fa8e]['item']['name'],_0x16b7e0[_0x10fa8e]['item']['getAttributes']());_0x2f094c[0x0]['_appendChild'](_0x24954d),_0x597866['push'](0x0),_0x2f094c['unshift'](_0x24954d),_0x16b7e0[_0x10fa8e]['nextPosition']=_0x130bda['createPositionFromPath'](_0x1f2a13,_0x597866);}else'elementEnd'===_0x16b7e0[_0x10fa8e]['type']?(_0x2f094c['shift'](),_0x16b7e0[_0x10fa8e]['previousPosition']=_0x130bda['createPositionFromPath'](_0x1f2a13,_0x597866),_0x597866['pop'](),_0x597866[_0x597866['length']-0x1]++,_0x16b7e0[_0x10fa8e]['nextPosition']=_0x130bda['createPositionFromPath'](_0x1f2a13,_0x597866)):(_0x16b7e0[_0x10fa8e]['previousPosition']=_0x130bda['createPositionFromPath'](_0x1f2a13,_0x597866),_0x68d3ba?_0x68d3ba['_data']+=_0x16b7e0[_0x10fa8e]['item']['data']:_0x68d3ba=new _0x122bf9(_0x16b7e0[_0x10fa8e]['item']['data'],_0x16b7e0[_0x10fa8e]['item']['getAttributes']()),_0x16b7e0[_0x10fa8e+0x1]&&'text'===_0x16b7e0[_0x10fa8e+0x1]['type']&&_0x596518(_0x68d3ba,_0x16b7e0[_0x10fa8e+0x1]['item'])||(_0x2f094c[0x0]['_appendChild'](_0x68d3ba),_0x68d3ba=null),_0x597866[_0x597866['length']-0x1]+=_0x16b7e0[_0x10fa8e]['item']['offsetSize'],_0x16b7e0[_0x10fa8e]['nextPosition']=_0x130bda['createPositionFromPath'](_0x1f2a13,_0x597866));for(let _0x20c851=0x0;_0x20c851<_0x16b7e0['length'];_0x20c851++){const _0x194876=_0x16b7e0[_0x20c851]['previousPosition'],_0x48972c=_0x16b7e0[_0x20c851]['nextPosition'];for(const _0x2cf46e of _0x16b7e0[_0x20c851]['markersStart'])_0xf05d4b['set'](_0x2cf46e,{'start':_0x194876,'end':null});_0x3cca32('isRemoveSuggestion',_0x20c851,_0x194876,_0x48972c),_0x3cca32('isAddSuggestion',_0x20c851,_0x194876,_0x48972c),_0x3cca32('isRemoved',_0x20c851,_0x194876,_0x48972c),_0x3cca32('isAdded',_0x20c851,_0x194876,_0x48972c);for(const _0x1e9fae of _0x16b7e0[_0x20c851]['markersEnd']){const _0x440a69=_0xf05d4b['get'](_0x1e9fae);_0x440a69?_0x440a69['end']=_0x48972c:_0xf05d4b['set'](_0x1e9fae,{'start':_0x48972c,'end':_0x48972c});}}for(const [_0x3377e1,_0x3b306e]of _0xf05d4b){const _0x33e6db=this['editor']['model']['createRange'](_0x3b306e['start'],_0x3b306e['end']);_0x1f2a13['markers']['set'](_0x3377e1,_0x33e6db);}return _0x143512['sort']((_0x2926dc,_0x535246)=>{const _0xb5a8=_0x1f2a13['markers']['get']('revision:'+_0x2926dc['id']),_0x3a6d40=_0x1f2a13['markers']['get']('revision:'+_0x535246['id']);return _0xb5a8['start']['isBefore'](_0x3a6d40['start'])?-0x1:_0xb5a8['start']['isAfter'](_0x3a6d40['start'])?0x1:_0xb5a8['end']['isBefore'](_0x3a6d40['end'])?-0x1:_0xb5a8['end']['isAfter'](_0x3a6d40['end'])?0x1:'add'===_0x2926dc['type']?-0x1:0x1;}),{'root':_0x1f2a13,'changes':_0x143512};function _0x3cca32(_0x2d0f49,_0x9237b1,_0x2a9c5b,_0x318286){const _0x45ea7b=!!_0x16b7e0[_0x9237b1][_0x2d0f49],_0x5820f3=_0x45ea7b?_0x16b7e0[_0x9237b1][_0x2d0f49]['userId']:null,_0x313aa5=_0x9237b1===_0x16b7e0['length']-0x1,_0x8df7e=_0x4bc86c[_0x2d0f49][0x0],_0x311ccd=_0x595aa8['isObject'](_0x16b7e0[_0x9237b1]['item']);!_0x343421[_0x2d0f49]&&_0x45ea7b?_0x343421[_0x2d0f49]={'start':_0x2a9c5b,'tapeItem':_0x16b7e0[_0x9237b1],'userId':_0x5820f3,'type':_0x2d0f49}:_0x343421[_0x2d0f49]&&!_0x45ea7b?(_0x343421[_0x2d0f49]['end']=_0x2a9c5b,_0x5bb641(_0x343421[_0x2d0f49]),_0x343421[_0x2d0f49]=null):_0x343421[_0x2d0f49]&&_0x45ea7b&&_0x343421[_0x2d0f49]['userId']!==_0x5820f3&&(_0x343421[_0x2d0f49]['end']=_0x2a9c5b,_0x8df7e&&_0x8df7e['userId']===_0x343421[_0x2d0f49]['userId']||_0x5bb641(_0x343421[_0x2d0f49]),_0x343421[_0x2d0f49]={'start':_0x2a9c5b,'tapeItem':_0x16b7e0[_0x9237b1],'userId':_0x5820f3,'type':_0x2d0f49}),_0x343421[_0x2d0f49]&&_0x311ccd&&('elementStart'!==_0x16b7e0[_0x9237b1]['type']||_0x8df7e&&_0x8df7e['userId']===_0x5820f3||_0x4bc86c[_0x2d0f49]['unshift']({'userId':_0x5820f3,'object':_0x16b7e0[_0x9237b1]['item'],'change':_0x343421[_0x2d0f49]}),'elementEnd'===_0x16b7e0[_0x9237b1]['type']&&_0x8df7e&&_0x8df7e['object']===_0x16b7e0[_0x9237b1]['item']&&(_0x4bc86c[_0x2d0f49]['shift'](),_0x343421[_0x2d0f49]=_0x8df7e['change'])),_0x343421[_0x2d0f49]&&_0x313aa5&&(_0x343421[_0x2d0f49]['end']=_0x318286,_0x5bb641(_0x343421[_0x2d0f49]),_0x343421[_0x2d0f49]=null);}function _0x5bb641({start:_0x4c60b6,end:_0x5d3e24,tapeItem:_0x489f6e,userId:_0x58ed17,type:_0x543ba4}){const _0x46aa5a=_0x489f6e['item'],_0x41c237=_0x130bda['schema']['isBlock'](_0x46aa5a)&&!_0x130bda['schema']['isLimit'](_0x46aa5a),_0x4260f2=_0x4c60b6['nodeAfter']==_0x5d3e24['parent']&&_0x5d3e24['isAtStart'];if(_0x41c237&&_0x4260f2)return;const _0x520e06=_0x130bda['createRange'](_0x4c60b6,_0x5d3e24),_0x46c8f6=_0x43107b['get'](_0x58ed17),_0x261f30=new xt({'author':_0x46c8f6,'type':'isAdded'==_0x543ba4||'isAddSuggestion'==_0x543ba4?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x543ba4||'isRemoveSuggestion'==_0x543ba4},'createdAt':new Date(),'rootName':_0x58fe5b});_0x143512['push'](_0x261f30),_0x1f2a13['markers']['set']('revision:'+_0x261f30['id'],_0x520e06);}function _0x596518(_0x309a13,_0x34aa8c){const _0x101466=_0x309a13['getAttributes'](),_0x2f4474=_0x34aa8c['getAttributes']();for(const _0x5b65e4 of _0x101466){if(_0x5b65e4[0x1]!==_0x34aa8c['getAttribute'](_0x5b65e4[0x0]))return!0x1;_0x2f4474['next']();}return _0x2f4474['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x150964=>{const _0x15d092=_0x150964['markerName']['split'](':')[0x1],_0x5426f1=this['_getChangeFromId'](_0x15d092);if(!_0x5426f1)return null;const _0x3b7774='add'==_0x5426f1['type']?'insertion':'deletion',_0x24444c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3b7774];return _0x5426f1['data']['isSuggestion']&&_0x24444c['push']('ck-suggestion-marker-'+_0x3b7774+'-new'),this['activeChange']==_0x5426f1&&_0x24444c['push']('ck-suggestion-marker--active'),{'classes':_0x24444c,'attributes':{'data-change-id':_0x15d092}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x56df9c=>{_0x56df9c['on']('element:pre',(_0xaacfa4,_0x20068f,_0x1d7587)=>{const _0x18d1cf=_0x20068f['viewItem']['getChild'](0x0);if(!_0x18d1cf||!_0x18d1cf['is']('element','code'))return;if(!_0x1d7587['consumable']['consume'](_0x18d1cf,{'attributes':['vid_start','vid_end']}))return;const _0x46ad44=_0x20068f['modelRange']['start']['nodeAfter'];_0x1d7587['writer']['setAttribute']('vid_start',_0x18d1cf['getAttribute']('vid_start'),_0x46ad44),_0x1d7587['writer']['setAttribute']('vid_end',_0x18d1cf['getAttribute']('vid_end'),_0x46ad44);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x27ecd3=>{_0x27ecd3['on']('element',(_0x58f3e4,_0x40f887,_0x34f4e3)=>{if(!_0x34f4e3['consumable']['consume'](_0x40f887['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x40f887['modelRange']['isCollapsed'])return;const _0x2386f3=_0x40f887['modelRange']['start']['nodeAfter'];_0x2386f3['hasAttribute']('vid_start')||_0x2386f3['hasAttribute']('vid')||(_0x34f4e3['writer']['setAttribute']('vid_start',_0x40f887['viewItem']['getAttribute']('vid_start'),_0x2386f3),_0x34f4e3['writer']['setAttribute']('vid_end',_0x40f887['viewItem']['getAttribute']('vid_end'),_0x2386f3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4f2c68=>_0x4f2c68['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x38980,[,_0x3846db])=>{['vid_start','vid_end','vid']['includes'](_0x3846db)&&(_0x38980['return']=!0x0,_0x38980['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x29f820=>{_0x29f820['on']('attribute:vid',(_0x19311e,_0x43e230,_0x574803)=>{if('\x20'!=_0x43e230['item']['data']||_0x43e230['item']['parent']['maxOffset']>0x1)return;if(!_0x574803['consumable']['consume'](_0x43e230['item'],_0x19311e['name']))return;const _0x21c675=_0x574803['writer'],_0x57d994=_0x574803['mapper']['toViewRange'](_0x43e230['range']);_0x21c675['wrap'](_0x57d994,_0x21c675['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x36fa0c){const _0x17bb17=_0x36fa0c['plugins']['get']('RevisionViewer');return(_0x27d0b1,_0x2f9469,_0x3f2ef8)=>{const _0x11fbdb=_0x2f9469['markerName']['split'](':')[0x1],_0x49f36e=_0x17bb17['_getChangeFromId'](_0x11fbdb);if(!_0x49f36e)return null;const _0x2d7623='add'==_0x49f36e['type']?'split':'merge';if(!_0x3f2ef8['consumable']['test'](_0x2f9469['markerRange'],_0x27d0b1['name']))return;const _0x14aee8=_0x2f9469['markerRange']['getWalker'](),_0x5493aa=_0x2f9469['markerRange']['start'],_0x37df3e=_0x36fa0c['model']['schema'];let _0x28b60c=null,_0xe5499=null,_0x1d4e0c=!0x1,_0x28190f=!0x1;for(const _0x49f50d of _0x14aee8){const _0x5d46bb=_0x49f50d['item'];_0x1d4e0c=_0x1d4e0c||_0x37df3e['isContent'](_0x5d46bb);const _0x514c21=_0x3f2ef8['mapper']['toViewElement'](_0x5d46bb);if(_0x514c21&&_0x514c21['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49f50d['type']&&(_0x37df3e['isBlock'](_0x5d46bb)&&!_0x37df3e['isLimit'](_0x5d46bb)&&(_0x5d46bb['nextSibling']||_0x5493aa['isAtEnd']?_0x28b60c&&_0x28b60c['parent']==_0x5d46bb||(_0x28b60c=_0x5d46bb,_0x83a7b4(_0x49f50d['previousPosition']),_0x28190f=!0x0):_0xe5499=_0xe5499||_0x49f50d['previousPosition']));}function _0x83a7b4(_0x2bf2a8){const _0x1fd49c=_0x3f2ef8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d7623}),_0x1c5cbb=_0x3f2ef8['mapper']['toViewPosition'](_0x2bf2a8);_0x49f36e['data']['isSuggestion']&&_0x3f2ef8['writer']['addClass']('ck-suggestion-marker-'+_0x2d7623+'-new',_0x1fd49c),_0x17bb17['activeChange']==_0x49f36e&&_0x3f2ef8['writer']['addClass']('ck-suggestion-marker--active',_0x1fd49c),_0x3f2ef8['writer']['insert'](_0x1c5cbb,_0x1fd49c),_0x3f2ef8['mapper']['bindElementToMarker'](_0x1fd49c,_0x2f9469['markerName']);}_0x1d4e0c||_0x28190f||!_0xe5499||_0x83a7b4(_0xe5499);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x203146,_0x101e53,_0xfa2f19)=>{const _0x121cd3=_0xfa2f19['mapper']['markerNameToElements'](_0x101e53['markerName']);if(_0x121cd3){for(const _0x5019c5 of _0x121cd3)(_0x5019c5['hasClass']('ck-suggestion-marker-split')||_0x5019c5['hasClass']('ck-suggestion-marker-merge'))&&(_0xfa2f19['mapper']['unbindElementFromMarkerName'](_0x5019c5,_0x101e53['markerName']),_0xfa2f19['writer']['remove'](_0x5019c5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x35c358,_0x5a847a,_0x488798)=>{const _0x53421a=_0x5a847a['markerName']['split'](':')[0x1],_0x583df6=this['_getChangeFromId'](_0x53421a);if(!_0x583df6)return null;const _0x1b4c52='add'==_0x583df6['type']?'split':'merge';if(_0x488798['consumable']['test'](_0x5a847a['markerRange'],_0x35c358['name']))for(const _0x1b89cd of _0x5a847a['markerRange']['getItems']()){if(!_0x1b89cd['is']('element','softBreak'))continue;const _0x4e6487=_0x488798['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b4c52}),_0xc29c97=_0x488798['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1b89cd));_0x583df6['data']['isSuggestion']&&_0x488798['writer']['addClass']('ck-suggestion-marker-'+_0x1b4c52+'-new',_0x4e6487),this['activeChange']==_0x583df6&&_0x488798['writer']['addClass']('ck-suggestion-marker--active',_0x4e6487),_0x488798['writer']['insert'](_0xc29c97,_0x4e6487),_0x488798['mapper']['bindElementToMarker'](_0x4e6487,_0x5a847a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5d8b9c=>{for(const _0x30ab7c of this['editor']['model']['document']['getRootNames']()){const _0x5cb841=this['editor']['model']['document']['getRoot'](_0x30ab7c),_0x590c97=this['editor']['editing']['view']['document']['getRoot'](_0x30ab7c);if(_0x590c97){const _0x263bac=_0x5cb841['getAttribute']('revisionHistoryAttachChange');if(_0x5d8b9c['removeAttribute']('data-change-id',_0x590c97),_0x5d8b9c['removeClass']('ck-revision-history-root-add',_0x590c97),_0x5d8b9c['removeClass']('ck-revision-history-root-remove',_0x590c97),_0x5d8b9c['removeClass']('ck-revision-history-root--active',_0x590c97),_0x263bac){const _0x1d230b=this['_getChangeFromId'](_0x263bac);if(!_0x1d230b)return null;_0x5d8b9c['setAttribute']('data-change-id',_0x263bac,_0x590c97),_0x5d8b9c['addClass']('ck-revision-history-root-'+_0x1d230b['type'],_0x590c97),this['activeChange']==_0x1d230b&&_0x5d8b9c['addClass']('ck-revision-history-root--active',_0x590c97);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x30afc0=>'revision-comment:'+_0x30afc0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2651d6=>'revision-suggestion:'+_0x2651d6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1d3d3e=>({'name':'suggestion:'+_0x1d3d3e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x247276=>{const _0x2e7e37=_0x247276['markerName']['split'](':')[0x1];return'insertion'!=_0x2e7e37&&'deletion'!=_0x2e7e37?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2e7e37]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Ot(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Ot(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4ee6cf,_0x973bf2,_0x1224bf)=>{const _0x1be155=_0x1224bf['mapper']['markerNameToElements'](_0x973bf2['markerName']);if(_0x1be155){for(const _0x22ec36 of _0x1be155)_0x22ec36['is']('uiElement')&&(_0x1224bf['mapper']['unbindElementFromMarkerName'](_0x22ec36,_0x973bf2['markerName']),_0x1224bf['writer']['remove'](_0x22ec36));}},{'priority':'high'});}['_getChangeFromId'](_0x33baa8){return this['_changeIdToChange']['get'](_0x33baa8);}['_getViewForChange'](_0x249cb3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Nt(this['editor']['locale'],_0x249cb3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xa73d51,_0x4ec4f1,_0x43e186,_0x51b142)=>{_0x51b142&&this['_balloon']['remove'](_0x51b142),_0x43e186&&(this['_balloon']['add']({'view':_0x43e186,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x12bdfa=this['editor']['editing'],_0x562b86=this['_getChangeFromId'](_0x43e186['changeId']);let _0x187951;if(_0x562b86['data']['isOnRoot']){const _0x17ea9=_0x12bdfa['view']['getDomRoot'](_0x562b86['rootName']);_0x187951=Array['from'](_0x17ea9['getClientRects']());}else{const _0x305bf1=this['editor']['model']['markers']['get']('revision:'+_0x43e186['changeId']);_0x187951=Array['from'](_0x12bdfa['mapper']['markerNameToElements'](_0x305bf1['name']))['map'](_0x214092=>_0x12bdfa['view']['domConverter']['mapViewToDom'](_0x214092))['map'](_0x52ccc3=>Array['from'](_0x52ccc3['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x187951[0x0];return _0x187951['find'](_0x377fd0=>_0x377fd0['top']-0x3<=this['_activeViewTarget']['y']&&_0x377fd0['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x377fd0['left']-0x3<=this['_activeViewTarget']['x']&&_0x377fd0['right']+0x3>=this['_activeViewTarget']['x'])||_0x187951[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5b80c4,_0x30089f,_0x1fa429,_0x43fd7a)=>{this['activeView']=_0x1fa429?this['_getViewForChange'](_0x1fa429):null,this['editor']['model']['change'](()=>{const _0x3fb925=this['editor']['editing'];_0x43fd7a&&(_0x43fd7a['data']['isOnRoot']?_0x3fb925['view']['change'](_0x725d77=>{_0x725d77['removeClass']('ck-revision-history-root--active',_0x3fb925['view']['document']['getRoot'](_0x43fd7a['rootName']));}):_0x3fb925['reconvertMarker']('revision:'+_0x43fd7a['id'])),_0x1fa429&&(_0x1fa429['data']['isOnRoot']?_0x3fb925['view']['change'](_0x17948e=>{_0x17948e['addClass']('ck-revision-history-root--active',_0x3fb925['view']['document']['getRoot'](_0x1fa429['rootName']));}):_0x3fb925['reconvertMarker']('revision:'+_0x1fa429['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x271fb8,_0x35169)=>{if(this['activeChange'])return;const _0x39218f=this['_findChangeIdFromDomTarget'](_0x35169['target']),_0x136b0e=this['_changeIdToChange']['get'](_0x39218f);_0x136b0e?(this['_activeViewTarget']={'x':_0x35169['domEvent']['x'],'y':_0x35169['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x136b0e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5916a9,_0x4f5b6c)=>{const _0x182473=this['_findChangeIdFromDomTarget'](_0x4f5b6c['target']),_0x429b5b=this['_changeIdToChange']['get'](_0x182473);_0x429b5b?(this['_activeViewTarget']={'x':_0x4f5b6c['domEvent']['x'],'y':_0x4f5b6c['domEvent']['y']},_0x429b5b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x429b5b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1faea6){do{const _0x5f0735=_0x1faea6['getAttribute']('data-change-id');if(_0x5f0735)return _0x5f0735;_0x1faea6=_0x1faea6['parent'];}while(_0x1faea6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xf0f832=>{for(const _0x573df1 of this['editor']['model']['markers'])_0xf0f832['removeMarker'](_0x573df1);});}}function Ot(_0x33389a,_0x22d79e){return(_0x58298a,_0x484a91,_0x15a333)=>{if(!_0x15a333['consumable']['test'](_0x484a91['markerRange'],_0x58298a['name']))return;const _0x3be126=_0x484a91['markerRange']['getWalker'](),_0x1c0d8a=_0x484a91['markerRange']['start'],_0xdd1de5=_0x33389a['model']['schema'];let _0x48b5d4=null,_0x13a4db=null,_0x3f4624=!0x1,_0x254ddd=!0x1;for(const _0x5d4c54 of _0x3be126){const _0x59eac7=_0x5d4c54['item'];_0x3f4624=_0x3f4624||_0xdd1de5['isContent'](_0x59eac7);const _0x12d269=_0x15a333['mapper']['toViewElement'](_0x59eac7);if(_0x12d269&&_0x12d269['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5d4c54['type']&&(_0xdd1de5['isBlock'](_0x59eac7)&&!_0xdd1de5['isLimit'](_0x59eac7)&&(_0x59eac7['nextSibling']||_0x1c0d8a['isAtEnd']?_0x48b5d4&&_0x48b5d4['parent']==_0x59eac7||(_0x48b5d4=_0x59eac7,_0x3cb12e(_0x5d4c54['previousPosition']),_0x254ddd=!0x0):_0x13a4db=_0x13a4db||_0x5d4c54['previousPosition']));}function _0x3cb12e(_0x1dbdec){const _0x441fc3=_0x15a333['mapper']['toViewPosition'](_0x1dbdec),_0x12bb2f=_0x15a333['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x22d79e});_0x15a333['writer']['insert'](_0x441fc3,_0x12bb2f),_0x15a333['mapper']['bindElementToMarker'](_0x12bb2f,_0x484a91['markerName']);}_0x3f4624||_0x254ddd||!_0x13a4db||_0x3cb12e(_0x13a4db);};}class Ct extends _0x7c0307{constructor(_0x209ed9){super(_0x209ed9);const _0x5034a3=_0x209ed9['plugins']['get'](St);this['affectsData']=!0x1,this['listenTo'](_0x5034a3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5034a3,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x16b7c4=this['editor'],_0x2b9386=_0x16b7c4['plugins']['get'](St),_0x311757=_0x2b9386['isReady']?_0x2b9386['diff']['newRevisionId']:null;_0x16b7c4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x311757);}['refresh'](){const {isReady:_0x3e6983,isEnabled:_0x1aaa00,repository:_0x52480b,diff:_0x5508a7}=this['editor']['plugins']['get'](St),_0x407479=_0x5508a7&&_0x52480b['getLaterVisibleRevision'](_0x5508a7['newRevisionId']);this['isEnabled']=_0x3e6983&&_0x1aaa00&&Boolean(_0x407479);}}class Mt extends _0x7c0307{['_step'];constructor(_0x11a50a,{direction:_0x3e985e}){super(_0x11a50a);const _0x183414=_0x11a50a['plugins']['get'](St);this['affectsData']=!0x1,this['_step']='forward'===_0x3e985e?0x1:-0x1,this['listenTo'](_0x183414,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x183414,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x183414,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4133d9=this['editor'],_0x1ca00e=_0x4133d9['plugins']['get'](St),{isNavigationMode:_0x2a95ef,currentChangeNumber:_0x2b2e01}=_0x1ca00e;let _0x3beee3;if(_0x1ca00e['activeChange']=_0x2a95ef?_0x1ca00e['diff']['changes']['get'](_0x2b2e01+this['_step']):_0x1ca00e['diff']['changes']['first'],_0x1ca00e['activeChange']['data']['isOnRoot'])_0x3beee3=_0x4133d9['editing']['view']['getDomRoot'](_0x1ca00e['activeChange']['rootName']);else{const _0x5a37fc=_0x4133d9['model']['markers']['get']('revision:'+_0x1ca00e['activeChange']['id']);_0x3beee3=_0xb4ec44(_0x4133d9['editing'],_0x5a37fc);}_0x459e9b({'target':_0x3beee3,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3a433a,currentChangeNumber:_0x2cabfd,numberOfChanges:_0x581bf2,isReady:_0x4202e7,isEnabled:_0x29c54b}=this['editor']['plugins']['get'](St);this['isEnabled']=!!(_0x29c54b&&_0x4202e7&&_0x581bf2)&&(!_0x3a433a||(0x1===this['_step']?_0x2cabfd<_0x581bf2-0x1:_0x2cabfd>0x0));}}class Dt extends _0xca4fb9{constructor(_0x305507){super(_0x305507);const _0x5d86cb=this['bindTemplate'],_0x699b05=new _0xf43743(_0x305507),_0x528b75=new _0xf43743(_0x305507);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',(_0x415a5b,_0x422765)=>_0x415a5b&&_0x422765>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x6632d0,_0x50fdaf,_0x5aa971,_0x542fc8)=>{if(!_0x6632d0)return wt(_0x305507,'Loading...');if(!_0x5aa971)return wt(_0x305507,'No\x20changes');const _0x2f5b92=wt(_0x305507,'NUMBER_OF_CHANGES',_0x5aa971);return _0x542fc8?wt(_0x305507,'X_OF_Y_CHANGES',[_0x50fdaf+0x1,_0x5aa971]):_0x2f5b92;}),_0x699b05['set']({'label':wt(_0x305507,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1a3214}),_0x528b75['set']({'label':wt(_0x305507,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x3ff616}),_0x699b05['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x528b75['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x699b05['on']('execute',()=>this['fire']('execute','backward')),_0x528b75['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',_0x5d86cb['if']('_isStatusLabelVisible','ck-hidden',_0x45a34d=>!_0x45a34d)]},'children':[{'text':_0x5d86cb['to']('isNavigationMode',_0x4d5df1=>_0x4d5df1?wt(_0x305507,'EDIT_X_OF_Y_REVISIONS')+':\x20':wt(_0x305507,'Total')+':\x20')}]},{'text':_0x5d86cb['to']('_statusText')}]},new et(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x699b05,_0x528b75]}]});}}const Tt='ck-editor__editable__loading-overlay';class Vt extends _0x559650{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x187aab=this['editor']['editing']['view'];_0x187aab['change'](_0x2baeea=>{for(const _0xf92cad of _0x187aab['document']['roots'])_0x2baeea['addClass'](Tt,_0xf92cad);});}['hide'](){const _0x1cf45e=this['editor']['editing']['view'];_0x1cf45e['change'](_0x35df61=>{for(const _0x1ee894 of _0x1cf45e['document']['roots'])_0x35df61['removeClass'](Tt,_0x1ee894);});}}class Ht extends _0x559650{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[St,Vt];}['init'](){const _0xf79234=this['editor'],_0x22040b=_0xf79234['plugins']['get'](St),_0x545d98=_0xf79234['plugins']['get'](Vt);_0xf79234['ui']['componentFactory']['add']('exitToEditing',_0x246a86=>{const _0x1e4e57=new _0xf43743(_0x246a86);return _0x1e4e57['set']({'label':wt(_0x246a86,'Back\x20to\x20editing'),'icon':_0x27acbb,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1e4e57,'execute',()=>{_0xf79234['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1e4e57;}),_0xf79234['ui']['componentFactory']['add']('restoreRevision',_0x409a12=>{const _0x1bcbe9=new _0xf43743(_0x409a12);return _0x1bcbe9['set']({'label':wt(_0x409a12,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1bcbe9['bind']('isEnabled')['to'](_0xf79234['commands']['get']('restoreRevision')),this['listenTo'](_0x1bcbe9,'execute',()=>_0xf79234['execute']('restoreRevision')),_0x1bcbe9;}),_0xf79234['ui']['componentFactory']['add']('changesNavigation',_0x1ecb2c=>{const _0x6245ab=new Dt(_0x1ecb2c),_0x4a3667=_0xf79234['commands']['get']('showPreviousChange'),_0x3fefa4=_0xf79234['commands']['get']('showNextChange');return _0x6245ab['bind']('isBackwardNavigationEnabled')['to'](_0x4a3667,'isEnabled'),_0x6245ab['bind']('isForwardNavigationEnabled')['to'](_0x3fefa4,'isEnabled'),_0x6245ab['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x22040b),this['listenTo'](_0x6245ab,'execute',(_0x58f962,_0x2acec6)=>{_0xf79234['execute']('forward'===_0x2acec6?'showNextChange':'showPreviousChange');}),_0x6245ab;}),_0x545d98['show'](),_0x22040b['on']('change:isReady',(_0x4cb611,_0x353cea,_0x5181d8)=>{_0x5181d8?_0x545d98['hide']():_0x545d98['show']();});}}class Pt extends _0xe3a080{['_resizeObserver']=null;constructor(_0x23db86,_0x22b16d){super(_0x23db86,_0x22b16d);const _0x5787bc=this['bindTemplate'];this['set']({'label':wt(_0x23db86,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=wt(_0x23db86,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5787bc['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new _0x3f4331(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x922b4=this['fieldView']['element'];this['_tooltipString']=_0x922b4['scrollWidth']>_0x922b4['clientWidth']&&_0x922b4['value']||'';}}class Ut extends _0xca4fb9{constructor(_0x20c734,_0x26376a,_0x59a6a3){super(_0x20c734);const _0x31e168=new nt();_0x31e168['set']({'content':_0x5572f7,'viewBox':'0\x200\x2011\x2010'});const _0x3751ea=['ck','ck-revision-history-sidebar__revision-author'];_0x59a6a3&&_0x3751ea['push']('ck-revision-history-sidebar__revision-author_creator');const _0x583150=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':wt(_0x20c734,_0x59a6a3?'Revision\x20creator':'Revision\x20author')},'children':[_0x31e168,_0x26376a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3751ea},'children':_0x583150});}}function Lt(_0x184577,_0x2b28f9){const _0x3435bb=_0x184577['bindTemplate'],_0x17f468=_0x184577['locale'],_0x10d78d=_0x12c2f1(_0x17f468);_0x10d78d['panelPosition']='sw';const _0x53d788=function(_0x23e930,_0x2c2e11){const _0x5e815e=function(_0x2d9558,_0x4e28f2){const _0x10c72a=_0x2d9558['locale'],_0x468414={'Compare\x20against\x20selected':wt(_0x10c72a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':wt(_0x10c72a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':wt(_0x10c72a,'Restore\x20this\x20revision')};return _0x4e28f2['map'](_0x589b08=>{const _0x2ca500=_0x468414[_0x589b08['name']];return _0x2ca500&&_0x2ca500!==_0x589b08['name']&&(_0x589b08['name']=_0x2ca500),_0x589b08;});}(_0x23e930,_0x2c2e11),_0x2220c9=new _0x1cde0c();for(const _0x218eef of _0x5e815e){const _0x3a65dc={'type':'button','model':new rt({'label':_0x218eef['name'],'class':_0x218eef['class'],'withText':!0x0,'role':'menuitem','_action':_0x218eef['action']})};_0x3a65dc['model']['bind']('isEnabled')['to'](_0x23e930,'isActionsDropdownOpen',_0x130fe5=>'function'!=typeof _0x218eef['isEnabled']||(!_0x130fe5||_0x218eef['isEnabled'](_0x23e930))),_0x2220c9['add'](_0x3a65dc);}return _0x2220c9;}(_0x184577,_0x2b28f9);return _0x184577['bind']('isActionsDropdownOpen')['to'](_0x10d78d,'isOpen'),_0x10d78d['buttonView']['set']({'label':wt(_0x17f468,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x9fbd2c}),_0x10d78d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3435bb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3435bb['to'](_0x3fc2d8=>_0x3fc2d8['stopPropagation']())}}),_0x10d78d['on']('execute',_0x14927f=>{_0x184577['isReady']&&'function'==typeof _0x14927f['source']['_action']&&_0x14927f['source']['_action'](_0x184577);}),ot(_0x10d78d,_0x53d788,{'role':'menu'}),_0x10d78d['listenTo'](_0x184577,'change:isActionsDropdownOpen',(_0x5546a0,_0x38baf4,_0x521847)=>{if(_0x521847)for(const _0x37b9a4 of _0x10d78d['listView']['items']){const _0x14d71a=_0x37b9a4['children']['first'],_0x381b07=_0x2b28f9['find'](_0x349a6f=>_0x349a6f['action']===_0x14d71a['_action'])['isVisible'];_0x37b9a4['isVisible']=void 0x0===_0x381b07||_0x381b07(_0x184577);}}),_0x10d78d;}class Ft extends/* #__PURE__ -- @preserve */
27
+ _0x37d554(_0xca4fb9){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x52bb61,_0x3727f3,_0x38808d,_0x77782b){super(_0x52bb61);const _0x265751=this['bindTemplate'],_0x5957bc=function(_0x2867b1,_0x3490d2){const _0x28a273=Array['from'](_0x3490d2['authors'])['filter'](_0x54c38c=>_0x54c38c!=_0x3490d2['creator']);return _0x3490d2['creator']&&_0x28a273['unshift'](_0x3490d2['creator']),_0x28a273['map'](_0x2fe774=>new Ut(_0x2867b1,_0x2fe774,_0x2fe774==_0x3490d2['creator']));}(_0x52bb61,_0x3727f3);this['id']=_0x3727f3['id'],this['_revision']=_0x3727f3,this['_requireRevisionName']=_0x77782b,this['bind']('name','createdAt')['to'](_0x3727f3),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2fa763=>{return _0x2587e0=_0x52bb61['uiLanguage'],(_0x4a06b9=_0x2fa763)['toLocaleDateString'](_0x2587e0,{'month':'long','day':'numeric'})+',\x20'+_0x4a06b9['toLocaleTimeString'](_0x2587e0,{'hour':'numeric','minute':'numeric'});var _0x2587e0,_0x4a06b9;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new Pt(_0x52bb61,_0x401eb8),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x39e02e=>_0x39e02e||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4bfc8a,_0xe62b43)=>_0x4bfc8a&&_0xe62b43),this['revisionActionsView']=_0x38808d&&_0x38808d['length']?Lt(this,_0x38808d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x265751['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x265751['if']('isEnabled','ck-disabled',_0x5d6a8b=>!_0x5d6a8b),_0x265751['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x265751['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x265751['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':_0x265751['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':_0x5957bc}]},this['revisionActionsView']],'on':{'click':_0x265751['to'](_0xdbcf82=>{_0xdbcf82['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4e2885=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4e2885,'change',()=>{this['_requireRevisionName']&&!_0x4e2885['value']||this['fire']('setName',{'id':this['id'],'name':_0x4e2885['value']}),_0x4e2885['value']||(_0x4e2885['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function $t(_0x22d613,_0x46d6e6){const _0x1e26df=ft['fromJSDate'](_0x22d613)['setLocale'](_0x46d6e6),_0x1887da=ft['local'](),_0x237f3f=_0x1887da['minus']({'days':0x1})['startOf']('day');let _0x3f1c95,_0x42858f;return _0x1e26df['hasSame'](_0x1887da,'day')?(_0x3f1c95=_0x1e26df['startOf']('day')['toJSDate'](),_0x42858f=_0x1e26df['toRelativeCalendar']()):_0x1e26df['hasSame'](_0x237f3f,'day')?(_0x3f1c95=_0x237f3f['toJSDate'](),_0x42858f=_0x1e26df['toRelativeCalendar']()):_0x1e26df['hasSame'](_0x1887da,'week')?(_0x3f1c95=_0x1e26df['startOf']('week')['toJSDate'](),_0x42858f=_0x1e26df['weekdayLong']||''):_0x1e26df['hasSame'](_0x1887da,'year')?(_0x3f1c95=_0x1e26df['startOf']('month')['toJSDate'](),_0x42858f=_0x1e26df['monthLong']||''):(_0x3f1c95=_0x1e26df['startOf']('year')['toJSDate'](),_0x42858f=String(_0x1e26df['year'])),{'startDate':_0x3f1c95,'localizedPeriodName':_0x42858f};}class jt extends _0xca4fb9{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xda57b,_0x5d4180,_0x4e1908,_0x147d54){super(_0xda57b);const _0x52159b=$t(_0x5d4180,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5d4180,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4e1908,this['_requireRevisionName']=_0x147d54,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':_0x52159b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x509bd9){const _0x4c05cc=new Ft(this['locale'],_0x509bd9,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4c05cc);}['removeRevision'](_0x3710c8){const _0x5097fa=this['revisionViews']['find'](_0x3a13fb=>_0x3a13fb['id']===_0x3710c8['id']);this['revisionViews']['remove'](_0x5097fa);}}class Bt extends _0xca4fb9{constructor(_0x2cfaf4){super(_0x2cfaf4);const _0x2887dd=new nt();_0x2887dd['content']=_0x4c4daa,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2887dd,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[wt(_0x2cfaf4,'Revision\x20history')]}]});}}class Kt extends _0xca4fb9{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x458829,_0x34d838,_0x17c471,_0x3c562b){super(_0x458829);const _0x2a6d66=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x34d838,this['_revisionActions']=_0x17c471,this['_requireRevisionName']=_0x3c562b,this['on']('select',(_0x26ac23,_0x544b3b)=>{this['fire']('revisionSelected',_0x544b3b);}),this['on']('setName',(_0x572db9,_0x350b3d)=>{this['fire']('revisionSetName',_0x350b3d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Bt(_0x458829),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2a6d66['if']('isEnabled','ck-disabled',_0x5e2c3d=>!_0x5e2c3d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5a0b80 of this['_revisions'])this['_addRevision'](_0x5a0b80);this['_revisions']['on']('add',(_0x30cc56,_0x1042de)=>{this['_addRevision'](_0x1042de);}),this['_revisions']['on']('remove',(_0x492901,_0x12d072)=>{this['_removeRevision'](_0x12d072);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xbd0af0=>_0xbd0af0['revisionViews']['map'](_0x31009d=>_0x31009d))['flat']();}['selectRevision'](_0x392b45){for(const _0x1f9c19 of this['revisionViews'])_0x392b45&&_0x392b45['id']===_0x1f9c19['id']?_0x1f9c19['select']():_0x1f9c19['deselect']();}['highlightRevisions'](_0x10105c){for(const _0x1f6f4d of this['revisionViews'])_0x10105c['some'](({id:_0x19109b})=>_0x19109b===_0x1f6f4d['id'])?_0x1f6f4d['highlight']():_0x1f6f4d['unhighlight']();}['_addRevision'](_0x38600c){const _0xb6a128=$t(_0x38600c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x784219=this['timePeriodViews']['get'](0x0);_0x784219&&_0x784219['startDate']['getTime']()===_0xb6a128['getTime']()||(_0x784219=new jt(this['locale'],_0xb6a128,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x784219)),_0x784219['addRevision'](_0x38600c);}['_removeRevision'](_0x3b3280){const _0x4fec1d=$t(_0x3b3280['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4fec1d)['removeRevision'](_0x3b3280);}['_getTimePeriodViewByStartDate'](_0x2e014b){return this['timePeriodViews']['find'](_0x1364ca=>_0x1364ca['startDate']['getTime']()===_0x2e014b['getTime']());}}class qt extends _0x559650{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
28
28
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
29
- Gt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[St];}constructor(_0x12d567){super(_0x12d567),this['_revisionViewer']=_0x12d567['plugins']['get'](St),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3f5ddd=this['_revisionsRepository']['_revisions'],_0x413253=this['_createRevisionActions'](),_0x1ba5b3=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Kt(this['editor']['locale'],_0x3f5ddd,_0x413253,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',(_0x301fe2,_0x144511)=>{_0x144511['revisionViews']['on']('add',(_0x4f6904,_0x14d00f)=>{_0x14d00f['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)),_0x1ba5b3['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x308744=this['_revisionsRepository']['getRevision'](0x0);if(_0x308744){const _0xa7a772=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x308744['id']);this['_revisionViewer']['compare'](_0x308744,_0xa7a772);}}['_handleRevisionSelected'](_0x41c6a7,_0x59ca22){const _0xa6e14c=this['_revisionsRepository']['getRevision'](_0x59ca22['id']),_0x186c22=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xa6e14c['id']);this['_revisionViewer']['compare'](_0xa6e14c,_0x186c22);}['_handleRevisionSetName'](_0x3ec5f5,_0x49af27){this['_revisionsRepository']['getRevision'](_0x49af27['id'])['setName'](_0x49af27['name']);}['_handleDiffChange'](_0x2ace0b,_0x58f9ae,_0x3f1bd8){const _0x36c42e=this['_revisionsRepository']['getRevisionsInDiff'](_0x3f1bd8);_0x36c42e['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x36c42e),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x36c42e[0x0]));}['_createRevisionActions'](){const _0x3e2815=this['editor'],_0x2c452b=qt['availableRevisionActions'],_0x2d001c=_0x3e2815['config']['get']('revisionHistory.revisionActions')||qt['defaultRevisionActions'];if(_0x2d001c['length'])return _0x2d001c['map'](_0x347ec8=>{const _0x449513='string'==typeof _0x347ec8?Object['assign']({},_0x2c452b[_0x347ec8]):_0x347ec8;return _0x449513['action']=_0x449513['action']['bind'](this,_0x3e2815),_0x449513['isVisible']&&(_0x449513['isVisible']=_0x449513['isVisible']['bind'](this,_0x3e2815)),_0x449513;});}}function Gt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x7c36e9},_0x13155b)=>{const _0x21b364=_0x7c36e9['get'](St),_0x42360f=_0x21b364['repository'];let _0x5a6086=_0x21b364['diff']['newRevisionId'],_0x587c37=_0x13155b['id'];_0x42360f['getIndex'](_0x5a6086)>_0x42360f['getIndex'](_0x587c37)&&([_0x5a6086,_0x587c37]=[_0x587c37,_0x5a6086]),_0x21b364['compare'](_0x5a6086,_0x587c37);},'isVisible':({plugins:_0x41de21},_0x2ed4fb)=>{const _0x3d6d25=_0x41de21['get'](St);return!(_0x3d6d25['repository']['getRevisionsInDiff'](_0x3d6d25['diff'])['length']>0x2)&&!_0x2ed4fb['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3b35f0,{id:_0x595f66})=>{_0x3b35f0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x595f66);},'isVisible':({plugins:_0x45bf1c},_0xd52a7d)=>!!_0x45bf1c['get'](St)['repository']['getLaterVisibleRevision'](_0xd52a7d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x317c0b},{id:_0x335d23,revisionNameView:_0x237ace})=>{const _0x29cdac=_0x317c0b['get'](St),_0x1a71eb=_0x29cdac['repository']['getEarlierVisibleRevision'](_0x335d23);_0x29cdac['compare'](_0x335d23,_0x1a71eb),_0x237ace['focus'](),_0x237ace['fieldView']['select']();}}};}class Jt extends at{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2f2d48,_0x2eeaa9){super(_0x2f2d48),this['_view']=_0x2eeaa9,this['_toolbarConfig']=ht(_0x2f2d48['config']['get']('toolbar')),this['_elementReplacer']=new _0x12e4d6();}get['element'](){return this['view']['element'];}['init'](_0x561b77){const _0x4430e2=this['editor'],_0xb86e7f=this['view'],_0x428cb0=_0x4430e2['editing']['view'],_0x45f814=_0xb86e7f['editable'],_0x5104a0=_0x428cb0['document']['getRoot']();_0x45f814['name']=_0x5104a0['rootName'],_0xb86e7f['render']();const _0x52dbef=_0x45f814['element'];this['setEditableElement'](_0x45f814['name'],_0x52dbef),_0xb86e7f['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x428cb0['attachDomRoot'](_0x52dbef),this['_elementReplacer']['replace'](_0x561b77,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3f65c4=this['view'],_0x177608=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x177608['detachDomRoot'](_0x3f65c4['editable']['name']),_0x3f65c4['destroy']();}['_initToolbar'](){const _0x438e2c=this['view'];_0x438e2c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x438e2c['stickyPanel']['limiterElement']=_0x438e2c['element'],_0x438e2c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x284eb6})=>_0x284eb6),_0x438e2c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x438e2c['toolbar']);}}class Yt extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5316ab,_0x31dd39,_0x3a49b1={}){super(_0x5316ab),this['stickyPanel']=new ut(_0x5316ab),this['toolbar']=new lt(_0x5316ab,{'shouldGroupWhenFull':_0x3a49b1['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x5316ab,_0x31dd39);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class Wt extends/* #__PURE__ -- @preserve */
30
- _0x3b44b3(_0x5d0872){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x15bb63,_0x2d6094){super(_0x2d6094),this['sourceElement']=_0x15bb63,this['model']['document']['createRoot']();const _0x79c778=new Yt(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Jt(this,_0x79c778);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5e9252,_0x2c64ff){const _0x5b8b39=new this(_0x5e9252,_0x2c64ff);return await _0x5b8b39['initPlugins'](),await _0x5b8b39['ui']['init'](_0x5e9252),await _0x5b8b39['data']['init'](_0x5b8b39['config']['get']('initialData')||''),_0x5b8b39['fire']('ready'),_0x5b8b39;}}const Xt=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions','AIChatShortcuts','AITranslate'];class zt extends _0x213e3a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21ac55){function _0x453532(_0x48fed7){return _0x48fed7['map'](_0x23a277=>String['fromCharCode'](_0x23a277))['join']('');}super(_0x21ac55),this['result']='end',_0x21ac55[_0x453532([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x453532([0x76,0x69,0x65,0x77])][_0x453532([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x453532([0x61,0x75,0x74,0x6f]),_0x21ac55[_0x453532([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x453532([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x453532([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x453532([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x453532([0x6f,0x6b])});}}class Qt extends _0x213e3a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[pt,It];}constructor(_0x8da7e6){if(super(_0x8da7e6),!this['editor']['config']['get']('revisionHistory'))throw new _0x5ea1f2('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2dc92d=>this['_showRevisionViewer']({..._0x2dc92d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5f43a2=>this['_closeRevisionViewer'](_0x5f43a2)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x272318=>this['_restoreRevision'](_0x272318)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x27e41f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x27e41f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2e95f3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2e95f3);}['getRevision'](_0x457397){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x457397);}['getRevisions'](_0x42d32c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x42d32c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1ef9ba=this['editor'],_0x89a485=_0x573803(_0x1ef9ba,Xt),_0x595c28=_0x1ef9ba['plugins']['get']('RevisionTracker'),_0xb1b304=_0x1ef9ba['plugins']['get'](_0x3ee47a)['users'];return _0x89a485['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x89a485['lazyRoots'],(_0x89a485['plugins']['push'](zt,St,Ht,class extends _0x213e3a{static get['requires'](){return[St,_0x3ee47a];}['init'](){const _0x2aaf68=this['editor']['plugins']['get'](_0x3ee47a);for(const _0x46aeaa of _0xb1b304)_0x46aeaa['isAnonymous']||_0x2aaf68['getUser'](_0x46aeaa['id'])||_0x2aaf68['addUser'](_0x46aeaa);const _0x51f40e=_0x595c28['repository']['getRevisions']();let _0x57ac90=null;const _0x29feaf=this['editor']['plugins']['get']('RevisionViewer');_0x29feaf['adapter']=_0x595c28['adapter'],_0x29feaf['bind']('isEnabled')['to'](_0x595c28),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1ef9ba,'isReadOnly',_0x3f947b=>!_0x3f947b);for(const _0x27ffbe of _0x51f40e){const _0x39572c=null===_0x27ffbe['creator'];if(_0x39572c&&_0x27ffbe['toVersion']===_0x27ffbe['fromVersion'])continue;const _0x1f0f84=_0x27ffbe['toJSON']();_0x29feaf['addRevisionData'](_0x1f0f84,(_0x59a955,_0x4987a1,_0x3d9212)=>{if(_0x39572c){if(_0x57ac90)_0x57ac90['_update'](_0x59a955,_0x4987a1);else{if(!_0x4987a1){const _0x414ed0=_0x3d9212['toJSON']();_0x414ed0['id']=_0x5b3809(),_0x595c28['saveRevision'](_0x414ed0,_0x3d9212['toVersion'])['then'](_0xc0747a=>{_0x57ac90=_0xc0747a;});}}}else _0x27ffbe['_update'](_0x59a955,_0x4987a1);});}}},qt),_0x89a485);}['_enhanceShowRevisionViewerCallback'](){const _0x34dbda=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3f94ae=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5377c5=this['editor']['plugins']['get']('Autosave');await _0x5377c5['save']();}else await _0x3f94ae['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x472b20=this['editor']['plugins']['get']('Dialog');_0x472b20['isOpen']&&_0x472b20['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x46ae21=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x5ebf45 of _0x46ae21)_0x5ebf45['class']=_0x5ebf45['class']?_0x5ebf45['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x467dc7=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x467dc7&&_0x467dc7['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1f8c85=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1f8c85&&_0x1f8c85['setAttribute']('tabindex','-1');}}const _0xcff4e4=this['_getRevisionViewerEditorConfig']();return _0x34dbda(_0xcff4e4)['then'](_0x30b14a=>{return(this['_viewerEditor']=_0x30b14a,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'),_0x30b14a);})['catch'](_0x52f3b6=>(console['error'](_0x52f3b6),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5e6fc7=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x5e6779=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x48be48 of _0x5e6779)_0x48be48['class']='ck-tab-panel_disabled'===_0x48be48['class']?'':_0x48be48['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x49c464=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x49c464&&_0x49c464['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x2b5a72=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x2b5a72&&_0x2b5a72['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5e6fc7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x396867=this['editor']['plugins']['get']('Annotations');_0x396867['refreshVisibility'](),_0x396867['refreshPositioning']();}});});}['_showRevisionViewer'](_0x5a44f1){const _0x4fffda=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2451ad=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x33a833=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return Wt['create'](_0x33a833,_0x5a44f1)['then'](_0x4e0763=>(_0x2451ad['style']['display']='block',_0x4fffda['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4e0763));}['_closeRevisionViewer'](_0x532854){const _0x468d89=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x468d89['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x532854['destroy']();}async['_restoreRevision'](_0x4067eb){const _0x19935f=this['editor'],_0xb61028=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x14b7f4=_0x19935f['plugins']['get']('RevisionTracker'),_0x179f65=_0x19935f['plugins']['get']('RevisionHistoryUtils'),_0x319136=_0xb61028['repository']['getRevision'](_0x4067eb);let _0x19431d,_0x52b299,_0x56747a;try{await _0x179f65['loadRevisionData'](_0x319136,this['adapter']),_0x19431d=_0x179f65['getRevisionDocumentData'](_0x319136),_0x52b299=_0x179f65['getRevisionRootsAttributes'](_0x319136);}catch(_0x53196f){return void console['error'](_0x53196f);}_0x19935f['model']['change'](_0x14e219=>{for(const _0x1c6f97 of Array['from'](_0x19935f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x14e219['removeMarker'](_0x1c6f97);}),_0xb61028['isReady']=!0x1,_0x19935f['model']['enqueueChange'](_0x13d597=>{_0x13d597['setSelection'](null),_0x13d597['removeSelectionAttribute'](_0x19935f['model']['document']['selection']['getAttributeKeys']());const _0x50980b=Object['keys'](_0x19431d);for(const _0x355190 of _0x19935f['model']['document']['roots'])'$graveyard'!=_0x355190['rootName']&&_0x355190['isAttached']()&&!_0x50980b['includes'](_0x355190['rootName'])&&_0x13d597['detachRoot'](_0x355190);for(const _0x51cb17 of _0x50980b){let _0x1f08a7=_0x19935f['model']['document']['getRoot'](_0x51cb17);_0x1f08a7&&_0x1f08a7['isAttached']()||(_0x1f08a7=_0x13d597['addRoot'](_0x51cb17));const _0x58ecfe=_0x52b299[_0x51cb17],_0x388f8c=Object['keys'](_0x58ecfe),_0x50394d=_0x19431d[_0x51cb17];for(const _0x2873ce of _0x1f08a7['getAttributeKeys']())_0x388f8c['includes'](_0x2873ce)||_0x13d597['removeAttribute'](_0x2873ce,_0x1f08a7);for(const _0x3c00e9 of _0x388f8c)_0x13d597['setAttribute'](_0x3c00e9,_0x52b299[_0x51cb17][_0x3c00e9],_0x1f08a7);_0x13d597['remove'](_0x13d597['createRangeIn'](_0x1f08a7)),_0x13d597['insert'](_0x19935f['data']['parse'](_0x50394d,_0x1f08a7),_0x1f08a7,0x0);}});const _0x555051=wt(_0x19935f['locale'],'Restored');if(_0x319136['name'])_0x56747a=-0x1==_0x319136['name']['indexOf'](_0x555051)?_0x555051+':\x20'+_0x319136['name']:_0x319136['name'];else _0x56747a=_0x555051+':\x20'+(_0x319136['createdAt']['toLocaleDateString'](_0x19935f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x319136['createdAt']['toLocaleTimeString'](_0x19935f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x14b7f4['saveRevision']({'name':_0x56747a}),_0xb61028['isReady']=!0x0,_0x19935f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{Ct as RestoreRevisionCommand,vt as Revision,Qt as RevisionHistory,It as RevisionHistoryUI,mt as RevisionHistoryUtils,pt as RevisionTracker,St as RevisionViewer,Wt as RevisionViewerEditor,zt as RevisionViewerIntegration,Vt as RevisionViewerLoadingOverlay,Ht as RevisionViewerUI,gt as RevisionsRepository,qt as RevisionsSidebar,Mt as ShowChangeCommand};
29
+ Gt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[St];}constructor(_0x535723){super(_0x535723),this['_revisionViewer']=_0x535723['plugins']['get'](St),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x66f83f=this['_revisionsRepository']['_revisions'],_0x5d1a62=this['_createRevisionActions'](),_0x328bfb=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Kt(this['editor']['locale'],_0x66f83f,_0x5d1a62,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',(_0x4b9c97,_0x34f3d2)=>{_0x34f3d2['revisionViews']['on']('add',(_0x1f43fd,_0x4fad91)=>{_0x4fad91['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)),_0x328bfb['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x42a014=this['_revisionsRepository']['getRevision'](0x0);if(_0x42a014){const _0x5d7f77=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x42a014['id']);this['_revisionViewer']['compare'](_0x42a014,_0x5d7f77);}}['_handleRevisionSelected'](_0x5def32,_0x3c0f48){const _0x5d3ad4=this['_revisionsRepository']['getRevision'](_0x3c0f48['id']),_0xa6b32e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5d3ad4['id']);this['_revisionViewer']['compare'](_0x5d3ad4,_0xa6b32e);}['_handleRevisionSetName'](_0x5be4ee,_0x5b36cb){this['_revisionsRepository']['getRevision'](_0x5b36cb['id'])['setName'](_0x5b36cb['name']);}['_handleDiffChange'](_0x1b825b,_0x5c90ae,_0x54eed1){const _0x274be0=this['_revisionsRepository']['getRevisionsInDiff'](_0x54eed1);_0x274be0['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x274be0),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x274be0[0x0]));}['_createRevisionActions'](){const _0x1c4038=this['editor'],_0x1a47b8=qt['availableRevisionActions'],_0x16854b=_0x1c4038['config']['get']('revisionHistory.revisionActions')||qt['defaultRevisionActions'];if(_0x16854b['length'])return _0x16854b['map'](_0x3267e6=>{const _0x11cb22='string'==typeof _0x3267e6?Object['assign']({},_0x1a47b8[_0x3267e6]):_0x3267e6;return _0x11cb22['action']=_0x11cb22['action']['bind'](this,_0x1c4038),_0x11cb22['isVisible']&&(_0x11cb22['isVisible']=_0x11cb22['isVisible']['bind'](this,_0x1c4038)),_0x11cb22;});}}function Gt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x6042c},_0x43b40c)=>{const _0x18ee38=_0x6042c['get'](St),_0x35214f=_0x18ee38['repository'];let _0x30a36b=_0x18ee38['diff']['newRevisionId'],_0x136782=_0x43b40c['id'];_0x35214f['getIndex'](_0x30a36b)>_0x35214f['getIndex'](_0x136782)&&([_0x30a36b,_0x136782]=[_0x136782,_0x30a36b]),_0x18ee38['compare'](_0x30a36b,_0x136782);},'isVisible':({plugins:_0x464795},_0x5cfa15)=>{const _0x326914=_0x464795['get'](St);return!(_0x326914['repository']['getRevisionsInDiff'](_0x326914['diff'])['length']>0x2)&&!_0x5cfa15['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x38cdfd,{id:_0x393230})=>{_0x38cdfd['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x393230);},'isVisible':({plugins:_0x41c84e},_0x421b00)=>!!_0x41c84e['get'](St)['repository']['getLaterVisibleRevision'](_0x421b00['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4756e3},{id:_0xbbb1d2,revisionNameView:_0xceb02d})=>{const _0x2b3810=_0x4756e3['get'](St),_0x4783f9=_0x2b3810['repository']['getEarlierVisibleRevision'](_0xbbb1d2);_0x2b3810['compare'](_0xbbb1d2,_0x4783f9),_0xceb02d['focus'](),_0xceb02d['fieldView']['select']();}}};}class Jt extends at{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4effaf,_0x25839f){super(_0x4effaf),this['_view']=_0x25839f,this['_toolbarConfig']=ht(_0x4effaf['config']['get']('toolbar')),this['_elementReplacer']=new _0x15275e();}get['element'](){return this['view']['element'];}['init'](_0x382579){const _0x61fd0f=this['editor'],_0x51fc6a=this['view'],_0x1c4715=_0x61fd0f['editing']['view'],_0x38b65a=_0x51fc6a['editable'],_0x51245f=_0x1c4715['document']['getRoot']();_0x38b65a['name']=_0x51245f['rootName'],_0x51fc6a['render']();const _0xa24649=_0x38b65a['element'];this['setEditableElement'](_0x38b65a['name'],_0xa24649),_0x51fc6a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1c4715['attachDomRoot'](_0xa24649),this['_elementReplacer']['replace'](_0x382579,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x52bc12=this['view'],_0xa84dc9=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xa84dc9['detachDomRoot'](_0x52bc12['editable']['name']),_0x52bc12['destroy']();}['_initToolbar'](){const _0x3bde22=this['view'];_0x3bde22['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3bde22['stickyPanel']['limiterElement']=_0x3bde22['element'],_0x3bde22['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4abaf8})=>_0x4abaf8),_0x3bde22['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3bde22['toolbar']);}}class Yt extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x28e3e5,_0x31a6f0,_0x22d3af={}){super(_0x28e3e5),this['stickyPanel']=new ut(_0x28e3e5),this['toolbar']=new lt(_0x28e3e5,{'shouldGroupWhenFull':_0x22d3af['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x28e3e5,_0x31a6f0);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class Wt extends/* #__PURE__ -- @preserve */
30
+ _0x37e804(_0x551525){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x346ae4,_0x48dfec){super(_0x48dfec),this['sourceElement']=_0x346ae4,this['model']['document']['createRoot']();const _0x169057=new Yt(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Jt(this,_0x169057);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xe0ed22,_0x45d8c7){const _0x218ac4=new this(_0xe0ed22,_0x45d8c7);return await _0x218ac4['initPlugins'](),await _0x218ac4['ui']['init'](_0xe0ed22),await _0x218ac4['data']['init'](_0x218ac4['config']['get']('initialData')||''),_0x218ac4['fire']('ready'),_0x218ac4;}}const Xt=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions','AIChatShortcuts','AITranslate'];class zt extends _0x559650{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b0b88){function _0x15e829(_0x3e7b35){return _0x3e7b35['map'](_0x4f4f4c=>String['fromCharCode'](_0x4f4f4c))['join']('');}super(_0x4b0b88),this['result']='end',_0x4b0b88[_0x15e829([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15e829([0x76,0x69,0x65,0x77])][_0x15e829([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15e829([0x61,0x75,0x74,0x6f]),_0x4b0b88[_0x15e829([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x15e829([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15e829([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x15e829([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x15e829([0x6f,0x6b])});}}class Qt extends _0x559650{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[pt,It];}constructor(_0xb2122b){if(super(_0xb2122b),!this['editor']['config']['get']('revisionHistory'))throw new _0x12e49f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4f2c7b=>this['_showRevisionViewer']({..._0x4f2c7b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x142c72=>this['_closeRevisionViewer'](_0x142c72)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x574308=>this['_restoreRevision'](_0x574308)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xca4f81){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xca4f81;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4a46df){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4a46df);}['getRevision'](_0x5903ca){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5903ca);}['getRevisions'](_0x2322e8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2322e8||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x202c61=this['editor'],_0x58f24f=_0x22db97(_0x202c61,Xt),_0x5a1d21=_0x202c61['plugins']['get']('RevisionTracker'),_0x541e2e=_0x202c61['plugins']['get'](_0x3cd60e)['users'];return _0x58f24f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x58f24f['lazyRoots'],(_0x58f24f['plugins']['push'](zt,St,Ht,class extends _0x559650{static get['requires'](){return[St,_0x3cd60e];}['init'](){const _0x4d509f=this['editor']['plugins']['get'](_0x3cd60e);for(const _0x1072c3 of _0x541e2e)_0x1072c3['isAnonymous']||_0x4d509f['getUser'](_0x1072c3['id'])||_0x4d509f['addUser'](_0x1072c3);const _0xc19048=_0x5a1d21['repository']['getRevisions']();let _0x52f791=null;const _0x274ea4=this['editor']['plugins']['get']('RevisionViewer');_0x274ea4['adapter']=_0x5a1d21['adapter'],_0x274ea4['bind']('isEnabled')['to'](_0x5a1d21),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x202c61,'isReadOnly',_0x12c358=>!_0x12c358);for(const _0x36a4a6 of _0xc19048){const _0x54beba=null===_0x36a4a6['creator'];if(_0x54beba&&_0x36a4a6['toVersion']===_0x36a4a6['fromVersion'])continue;const _0x1b746b=_0x36a4a6['toJSON']();_0x274ea4['addRevisionData'](_0x1b746b,(_0x2d5765,_0x151a54,_0x4d5259)=>{if(_0x54beba){if(_0x52f791)_0x52f791['_update'](_0x2d5765,_0x151a54);else{if(!_0x151a54){const _0x19c315=_0x4d5259['toJSON']();_0x19c315['id']=_0x52b761(),_0x5a1d21['saveRevision'](_0x19c315,_0x4d5259['toVersion'])['then'](_0x318539=>{_0x52f791=_0x318539;});}}}else _0x36a4a6['_update'](_0x2d5765,_0x151a54);});}}},qt),_0x58f24f);}['_enhanceShowRevisionViewerCallback'](){const _0x5c2c48=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x308e76=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3128a1=this['editor']['plugins']['get']('Autosave');await _0x3128a1['save']();}else await _0x308e76['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5ee389=this['editor']['plugins']['get']('Dialog');_0x5ee389['isOpen']&&_0x5ee389['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x2cf681=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2fdec6 of _0x2cf681)_0x2fdec6['class']=_0x2fdec6['class']?_0x2fdec6['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x118794=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x118794&&_0x118794['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x888d22=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x888d22&&_0x888d22['setAttribute']('tabindex','-1');}}const _0xa5e8d8=this['_getRevisionViewerEditorConfig']();return _0x5c2c48(_0xa5e8d8)['then'](_0x4b050f=>{return(this['_viewerEditor']=_0x4b050f,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'),_0x4b050f);})['catch'](_0x29f850=>(console['error'](_0x29f850),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x598a1d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x6f6404=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x509c92 of _0x6f6404)_0x509c92['class']='ck-tab-panel_disabled'===_0x509c92['class']?'':_0x509c92['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x4c024f=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x4c024f&&_0x4c024f['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x58b734=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x58b734&&_0x58b734['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x598a1d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2f1f3b=this['editor']['plugins']['get']('Annotations');_0x2f1f3b['refreshVisibility'](),_0x2f1f3b['refreshPositioning']();}});});}['_showRevisionViewer'](_0x48da9a){const _0x501224=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4b09f7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4d16a9=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return Wt['create'](_0x4d16a9,_0x48da9a)['then'](_0x4004a1=>(_0x4b09f7['style']['display']='block',_0x501224['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4004a1));}['_closeRevisionViewer'](_0xccb840){const _0x5ca4d4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5ca4d4['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0xccb840['destroy']();}async['_restoreRevision'](_0x4d02a7){const _0x346ea2=this['editor'],_0x3d7161=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x17f5de=_0x346ea2['plugins']['get']('RevisionTracker'),_0x4bf9ad=_0x346ea2['plugins']['get']('RevisionHistoryUtils'),_0x1f028b=_0x3d7161['repository']['getRevision'](_0x4d02a7);let _0x25b01d,_0x20d46c,_0x4b908f;try{await _0x4bf9ad['loadRevisionData'](_0x1f028b,this['adapter']),_0x25b01d=_0x4bf9ad['getRevisionDocumentData'](_0x1f028b),_0x20d46c=_0x4bf9ad['getRevisionRootsAttributes'](_0x1f028b);}catch(_0x1be3b0){return void console['error'](_0x1be3b0);}_0x346ea2['model']['change'](_0x4baf9f=>{for(const _0x296f81 of Array['from'](_0x346ea2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4baf9f['removeMarker'](_0x296f81);}),_0x3d7161['isReady']=!0x1,_0x346ea2['model']['enqueueChange'](_0x3179d3=>{_0x3179d3['setSelection'](null),_0x3179d3['removeSelectionAttribute'](_0x346ea2['model']['document']['selection']['getAttributeKeys']());const _0x4ee632=Object['keys'](_0x25b01d);for(const _0x1abd5f of _0x346ea2['model']['document']['roots'])'$graveyard'!=_0x1abd5f['rootName']&&_0x1abd5f['isAttached']()&&!_0x4ee632['includes'](_0x1abd5f['rootName'])&&_0x3179d3['detachRoot'](_0x1abd5f);for(const _0x257933 of _0x4ee632){let _0x34f9fa=_0x346ea2['model']['document']['getRoot'](_0x257933);_0x34f9fa&&_0x34f9fa['isAttached']()||(_0x34f9fa=_0x3179d3['addRoot'](_0x257933));const _0x103cec=_0x20d46c[_0x257933],_0x2c4673=Object['keys'](_0x103cec),_0x58da23=_0x25b01d[_0x257933];for(const _0x403d16 of _0x34f9fa['getAttributeKeys']())_0x2c4673['includes'](_0x403d16)||_0x3179d3['removeAttribute'](_0x403d16,_0x34f9fa);for(const _0x1e3f19 of _0x2c4673)_0x3179d3['setAttribute'](_0x1e3f19,_0x20d46c[_0x257933][_0x1e3f19],_0x34f9fa);_0x3179d3['remove'](_0x3179d3['createRangeIn'](_0x34f9fa)),_0x3179d3['insert'](_0x346ea2['data']['parse'](_0x58da23,_0x34f9fa),_0x34f9fa,0x0);}});const _0x3389e0=wt(_0x346ea2['locale'],'Restored');if(_0x1f028b['name'])_0x4b908f=-0x1==_0x1f028b['name']['indexOf'](_0x3389e0)?_0x3389e0+':\x20'+_0x1f028b['name']:_0x1f028b['name'];else _0x4b908f=_0x3389e0+':\x20'+(_0x1f028b['createdAt']['toLocaleDateString'](_0x346ea2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1f028b['createdAt']['toLocaleTimeString'](_0x346ea2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x17f5de['saveRevision']({'name':_0x4b908f}),_0x3d7161['isReady']=!0x0,_0x346ea2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{Ct as RestoreRevisionCommand,vt as Revision,Qt as RevisionHistory,It as RevisionHistoryUI,mt as RevisionHistoryUtils,pt as RevisionTracker,St as RevisionViewer,Wt as RevisionViewerEditor,zt as RevisionViewerIntegration,Vt as RevisionViewerLoadingOverlay,Ht as RevisionViewerUI,gt as RevisionsRepository,qt as RevisionsSidebar,Mt as ShowChangeCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-revision-history",
3
- "version": "48.0.1-alpha.0",
3
+ "version": "48.0.1",
4
4
  "description": "Document revision history feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -34,15 +34,15 @@
34
34
  "./package.json": "./package.json"
35
35
  },
36
36
  "dependencies": {
37
- "@ckeditor/ckeditor5-autosave": "48.0.1-alpha.0",
38
- "@ckeditor/ckeditor5-collaboration-core": "48.0.1-alpha.0",
39
- "@ckeditor/ckeditor5-comments": "48.0.1-alpha.0",
40
- "@ckeditor/ckeditor5-core": "48.0.1-alpha.0",
41
- "@ckeditor/ckeditor5-engine": "48.0.1-alpha.0",
42
- "@ckeditor/ckeditor5-icons": "48.0.1-alpha.0",
43
- "@ckeditor/ckeditor5-ui": "48.0.1-alpha.0",
44
- "@ckeditor/ckeditor5-utils": "48.0.1-alpha.0",
45
- "@ckeditor/ckeditor5-widget": "48.0.1-alpha.0",
37
+ "@ckeditor/ckeditor5-autosave": "48.0.1",
38
+ "@ckeditor/ckeditor5-collaboration-core": "48.0.1",
39
+ "@ckeditor/ckeditor5-comments": "48.0.1",
40
+ "@ckeditor/ckeditor5-core": "48.0.1",
41
+ "@ckeditor/ckeditor5-engine": "48.0.1",
42
+ "@ckeditor/ckeditor5-icons": "48.0.1",
43
+ "@ckeditor/ckeditor5-ui": "48.0.1",
44
+ "@ckeditor/ckeditor5-utils": "48.0.1",
45
+ "@ckeditor/ckeditor5-widget": "48.0.1",
46
46
  "@types/luxon": "3.6.2",
47
47
  "es-toolkit": "1.45.1",
48
48
  "luxon": "3.6.1"