@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250614.0 → 0.0.0-nightly-20250616.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/package.json +11 -11
- package/src/revisionsrepository.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x26b56e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x27aa1c){super(),this['id']=_0x27aa1c['id']||_0x173cdc(),this['creator']=_0x27aa1c['creator']||null,this['authors']=_0x27aa1c['authors']||[],this['diffData']=_0x27aa1c['diffData']||null,this['toVersion']=_0x27aa1c['toVersion']||0x0,this['fromVersion']=_0x27aa1c['fromVersion']||0x0,this['set']('name',_0x27aa1c['name']||''),this['set']('createdAt',_0x27aa1c['createdAt']||new Date()),this['set']('attributes',_0x27aa1c['attributes']||{});}['setName'](_0x49ed12){this['_update']({'name':_0x49ed12});}['setAttribute'](_0x1eeaf5,_0x4dd603){const _0x1046e3=_0x1fabc1(this['attributes']);_0x58d335(_0x1046e3,_0x1eeaf5,_0x4dd603),this['_update']({'attributes':_0x1046e3});}['removeAttribute'](_0x347d66){const _0x4caa1a=_0x1fabc1(this['attributes']);_0x1c871a(_0x4caa1a,_0x347d66),this['_update']({'attributes':_0x4caa1a});}['_update'](_0x1f1f61,_0x4e7f0b=!0x1){let _0x1e13b8=!0x1;const _0x345bad={'id':this['id']},_0x41c81b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x539734 of _0x41c81b){const _0x445408=_0x1f1f61[_0x539734];void 0x0!==_0x445408&&_0x445408!==this[_0x539734]&&(this[_0x539734]=_0x445408,_0x345bad[_0x539734]=_0x445408,_0x1e13b8=!0x0);}_0x1e13b8&&(_0x345bad['authors']&&(_0x345bad['authorsIds']=_0x345bad['authors']['map'](_0x348e18=>_0x348e18['id']),delete _0x345bad['authors']),this['fire']('_update',_0x345bad,_0x4e7f0b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4f6579=>_0x4f6579['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x1973ac{['_revisions'];static get['requires'](){return[_0x4a7029];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xbf65dc){super(_0xbf65dc),this['_revisions']=new _0x28f4f5();}['afterInit'](){!async function(_0x3d57ba){const _0x201e5f=_0x1835b4([0x73,0x67,0x50,0x31,0x53,0x76,0x4d,0x6c,0x38,0x44,0x70,0x48,0x59,0x6d,0x34,0x57,0x55,0x63,0x32,0x6a,0x7a,0x47,0x33,0x78,0x30,0x42,0x62,0x4a,0x58,0x6b,0x54,0x68,0x49,0x56,0x37,0x41,0x4c,0x43,0x52,0x69,0x72,0x45,0x71,0x64,0x5a,0x6f,0x75,0x46,0x77,0x66,0x74,0x39,0x51,0x4f,0x4e,0x6e,0x4b,0x61,0x35,0x79,0x36,0x65]),_0x5092f5=0xeb829,_0x52a1d4=0xe8fa9ce,_0x2cd334=0xe88c376^_0x52a1d4,_0x412975=window[_0x1835b4([0x44,0x61,0x74,0x65])][_0x1835b4([0x6e,0x6f,0x77])](),_0x32fef6=_0x3d57ba[_0x1835b4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d6db0=new window[(_0x1835b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583a69=>{_0x32fef6[_0x1835b4([0x6f,0x6e,0x63,0x65])](_0x1835b4([0x72,0x65,0x61,0x64,0x79]),_0x583a69);}),_0x297a03={[_0x1835b4([0x6b,0x74,0x79])]:_0x1835b4([0x45,0x43]),[_0x1835b4([0x75,0x73,0x65])]:_0x1835b4([0x73,0x69,0x67]),[_0x1835b4([0x63,0x72,0x76])]:_0x1835b4([0x50,0x2d,0x32,0x35,0x36]),[_0x1835b4([0x78])]:_0x1835b4([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]),[_0x1835b4([0x79])]:_0x1835b4([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]),[_0x1835b4([0x61,0x6c,0x67])]:_0x1835b4([0x45,0x53,0x32,0x35,0x36])},_0x4b2bfa=_0x32fef6[_0x1835b4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1835b4([0x67,0x65,0x74])](_0x1835b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56a52a(){let _0x2992da,_0x4fdf46=null,_0xbb2de2=null;try{if(_0x4b2bfa==_0x1835b4([0x47,0x50,0x4c]))return _0x1835b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2992da=_0x33eea4(),!_0x2992da)return _0x1835b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2992da[_0x1835b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbb2de2=_0x44235c(_0x2992da[_0x1835b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2992da[_0x1835b4([0x6a,0x74,0x69])])),await _0x67a536()?_0x17d013()?_0x3e458c()?_0x1835b4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25152f()?(_0x2992da[_0x1835b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1835b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fdf46=_0x36c5cb(_0x1835b4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2992da[_0x1835b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1835b4([0x74,0x72,0x69,0x61,0x6c])&&(_0x4fdf46=_0x36c5cb(_0x1835b4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe01c63()):_0x1835b4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1835b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1835b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1835b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e458c(){const _0x1dafce=[_0x1835b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1835b4([0x74,0x72,0x69,0x61,0x6c])][_0x1835b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2992da[_0x1835b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x412975/0x3e8:0xe10*_0x2cd334;return _0x2992da[_0x1835b4([0x65,0x78,0x70])]<_0x1dafce;}function _0x17d013(){const _0x4352db=_0x2992da[_0x1835b4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4352db)return!0x1;if(_0x4352db[_0x1835b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1835b4([0x2a])))return!0x0;if(_0x4352db[_0x1835b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1835b4([0x52,0x48])))return!0x0;if(_0x4352db[_0x1835b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1835b4([0x52,0x52,0x48]))){if(_0x4a9afa())return!0x0;if(_0x1089b5()||_0x5f09ca())return!0x0;}return!0x1;}function _0x25152f(){const _0x2aba3f=_0x2992da[_0x1835b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2aba3f||0x0==_0x2aba3f[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a30f5}=new URL(window[_0x1835b4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2aba3f[_0x1835b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a30f5))return!0x0;const _0xd05576=_0x3a30f5[_0x1835b4([0x73,0x70,0x6c,0x69,0x74])](_0x1835b4([0x2e]));return _0x2aba3f[_0x1835b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb10e8a=>_0xb10e8a[_0x1835b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1835b4([0x2a])))[_0x1835b4([0x6d,0x61,0x70])](_0x1a0697=>_0x1a0697[_0x1835b4([0x73,0x70,0x6c,0x69,0x74])](_0x1835b4([0x2e])))[_0x1835b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2aa05f=>_0x2aa05f[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd05576[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1835b4([0x6d,0x61,0x70])](_0x2160b2=>Array(_0xd05576[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2160b2[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1835b4([0x66,0x69,0x6c,0x6c])](_0x2160b2[0x0]===_0x1835b4([0x2a])?_0x1835b4([0x2a]):'')[_0x1835b4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2160b2))[_0x1835b4([0x73,0x6f,0x6d,0x65])](_0xfa5bb7=>_0xd05576[_0x1835b4([0x65,0x76,0x65,0x72,0x79])]((_0x58a7c3,_0x592e98)=>_0xfa5bb7[_0x592e98]===_0x58a7c3||_0xfa5bb7[_0x592e98]===_0x1835b4([0x2a])));}function _0xe01c63(){return _0x4fdf46&&_0xbb2de2?new window[(_0x1835b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x179052,_0x2b37c3)=>{_0x4fdf46[_0x1835b4([0x74,0x68,0x65,0x6e])](_0x179052,_0x2b37c3),_0xbb2de2[_0x1835b4([0x74,0x68,0x65,0x6e])](_0x239528=>{_0x239528!=_0x1835b4([0x56,0x61,0x6c,0x69,0x64])&&_0x179052(_0x239528);},_0x2b37c3);}):_0x4fdf46||_0xbb2de2||_0x1835b4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x44235c(_0xe82fa,_0x201c95){return new window[(_0x1835b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14a472=>{if(_0x499150())return _0x14a472(_0x1835b4([0x56,0x61,0x6c,0x69,0x64]));_0x38edae(),_0x32fef6[_0x1835b4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1835b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c77b8=!0x1;const _0x34a330=_0x173cdc();function _0x526500(_0x1e2549){return!!_0x1e2549&&(typeof _0x1e2549===_0x1835b4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e2549===_0x1835b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e2549[_0x1835b4([0x74,0x68,0x65,0x6e])]===_0x1835b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e2549[_0x1835b4([0x63,0x61,0x74,0x63,0x68])]===_0x1835b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x462cb1(_0x3c3064){_0x29f84b(_0x3c3064)[_0x1835b4([0x74,0x68,0x65,0x6e])](_0x5a20bf=>{if(!_0x5a20bf||_0x5a20bf[_0x1835b4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1835b4([0x6f,0x6b]))return _0x1835b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x583360(_0x3a6ea1(_0x34a330+_0x201c95))!=_0x5a20bf[_0x1835b4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1835b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1835b4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1835b4([0x74,0x68,0x65,0x6e])](_0xe03428=>(_0x5e2873(),_0xe03428),()=>{const _0x10b71f=_0x15ad3d();return null==_0x10b71f?(_0x5e2873(),_0x1835b4([0x56,0x61,0x6c,0x69,0x64])):_0x1835b4(_0x412975-_0x10b71f>(0x2a832dce^_0x52a1d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1835b4([0x74,0x68,0x65,0x6e])](_0x14a472)[_0x1835b4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x14a472(_0x1835b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bb2c6=0xeb9474e^_0x52a1d4;function _0x5e2873(){const _0x230861=_0x1835b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x583360(_0x3a6ea1(_0xe82fa)),_0x3ccce1=_0x33610b(_0x583360(window[_0x1835b4([0x4d,0x61,0x74,0x68])][_0x1835b4([0x63,0x65,0x69,0x6c])](_0x412975/_0x1bb2c6)));window[_0x1835b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1835b4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x230861,_0x3ccce1);}function _0x15ad3d(){const _0xf363d4=_0x1835b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x583360(_0x3a6ea1(_0xe82fa)),_0xdc6075=window[_0x1835b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1835b4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf363d4);return _0xdc6075?window[_0x1835b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33610b(_0xdc6075),0x10)*_0x1bb2c6:null;}function _0x29f84b(_0x183df5){return new window[(_0x1835b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15c7e7,_0x62dab6)=>{_0x183df5[_0x1835b4([0x74,0x68,0x65,0x6e])](_0x15c7e7,_0x62dab6),window[_0x1835b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x62dab6,0xe8e7d0e^_0x52a1d4);});}}_0x32fef6[_0x1835b4([0x6f,0x6e])](_0x1835b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x286e75,_0x220955)=>{if(_0x220955[0x0]!=_0xe82fa)return _0x14a472(_0x1835b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x220955[0x1]={..._0x220955[0x1],[_0x1835b4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34a330};},{[_0x1835b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1835b4([0x68,0x69,0x67,0x68])}),_0x32fef6[_0x1835b4([0x6f,0x6e])](_0x1835b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x149015=>{_0x526500(_0x149015[_0x1835b4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c77b8=!0x0,_0x462cb1(_0x149015[_0x1835b4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1835b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1835b4([0x6c,0x6f,0x77])}),_0x4d6db0[_0x1835b4([0x74,0x68,0x65,0x6e])](()=>{_0x4c77b8||_0x14a472(_0x1835b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x499150(){return _0x32fef6[_0x1835b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1835b4([0x76,0x69,0x65,0x77])][_0x1835b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1835b4([0x61,0x75,0x74,0x6f]);}function _0x38edae(){_0x32fef6[_0x1835b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1835b4([0x76,0x69,0x65,0x77])][_0x1835b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1835b4([0x61,0x75,0x74,0x6f]);}}function _0x36c5cb(_0x441ffa){const _0x34e3b5=[new window[(_0x1835b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xebf8ca=>setTimeout(_0xebf8ca,0xe869702^_0x52a1d4)),_0x4d6db0[_0x1835b4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1835b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4586a2=>{const _0x407ed5=0xe8fa9c9^_0x52a1d4,_0x55f953=_0x3d57ba[_0x1835b4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x39972d(){_0x55f953[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x407ed5&&_0x4586a2();}_0x39972d(),_0x55f953[_0x1835b4([0x6f,0x6e])](_0x1835b4([0x61,0x64,0x64]),_0x39972d);})),new window[(_0x1835b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x402064=>{function _0x2a8dac(){for(const _0x4f981d in window)if(window[_0x1835b4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1835b4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4f981d))&&window[_0x4f981d]==_0x5092f5)return _0x402064();_0x32fef6[_0x1835b4([0x73,0x74,0x61,0x74,0x65])]!=_0x1835b4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1835b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a8dac,0xe8fba46^_0x52a1d4);}_0x50c744(_0x1835b4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2a8dac();})];return window[_0x1835b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1835b4([0x72,0x61,0x63,0x65])](_0x34e3b5)[_0x1835b4([0x74,0x68,0x65,0x6e])](()=>_0x441ffa);}async function _0x55a8b2(){if(await _0x4d6db0,_0x50c744(_0x1835b4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4e8666=_0x3d57ba[_0x1835b4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1ac732=_0x3d57ba[_0x1835b4([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])](_0x4e8666[_0x1835b4([0x69,0x64])]),_0x2f107f=_0x399479(_0x1835b4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2f107f[_0x1835b4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4e8666['id'],_0x1ac732?_0x1ac732['id']:null,!0x0),_0x2f107f[_0x1835b4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1835b4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2f107f[_0x1835b4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2f107f[_0x1835b4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x621696,void(_0x2f107f[_0x1835b4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x621696);}if(_0x50c744(_0x1835b4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x15bbbb=_0x399479(_0x1835b4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x15bbbb[_0x1835b4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1835b4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x15bbbb[_0x1835b4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x15bbbb[_0x1835b4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x621696,_0x15bbbb[_0x1835b4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x621696;}_0x32fef6[_0x1835b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1835b4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x621696,_0x32fef6[_0x1835b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1835b4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x621696,_0x32fef6[_0x1835b4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1835b4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a9afa(){return _0x50c744(_0x1835b4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x399479(_0x1835b4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1835b4([0x73,0x74,0x61,0x74,0x65])]==_0x1835b4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1089b5(){return _0x50c744(_0x1835b4([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 _0x5f09ca(){return _0x50c744(_0x1835b4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ede00(_0x1c8ac9){const _0x45d5ab=_0x4e2ab0();_0x32fef6[_0x45d5ab]=_0x1835b4([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])+_0x1c8ac9,_0x1c8ac9[_0x1835b4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1835b4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4e2ab0()]=_0x5092f5),_0x1c8ac9!=_0x1835b4([0x56,0x61,0x6c,0x69,0x64])&&_0x55a8b2();}function _0x4e2ab0(){const _0x3a1809=window[_0x1835b4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1835b4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1835b4([0x6e,0x6f,0x77])]())[_0x1835b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1835b4([0x2e]),'');let _0xd3c373=_0x1835b4([0x73]);for(let _0x502d82=0x0;_0x502d82<_0x3a1809[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x502d82+=0x2){let _0x5d821d=window[_0x1835b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a1809[_0x1835b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x502d82,_0x502d82+0x2));_0x5d821d>=_0x201e5f[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d821d-=_0x201e5f[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd3c373+=_0x201e5f[_0x5d821d];}return _0xd3c373;}function _0x33eea4(){const _0x127d2f=_0x4b2bfa[_0x1835b4([0x73,0x70,0x6c,0x69,0x74])](_0x1835b4([0x2e]));if(0x3!=_0x127d2f[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2cf902(_0x127d2f[0x1]);function _0x2cf902(_0x4d2287){const _0x23bc30=_0x3e1134(_0x4d2287);return _0x23bc30&&_0x1ccc93()?_0x23bc30:null;function _0x1ccc93(){const _0x54fb6f=_0x23bc30[_0x1835b4([0x6a,0x74,0x69])],_0xbe17b=window[_0x1835b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54fb6f[_0x1835b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54fb6f[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfebd5={..._0x23bc30,[_0x1835b4([0x6a,0x74,0x69])]:_0x54fb6f[_0x1835b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54fb6f[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfebd5[_0x1835b4([0x76,0x63])],_0x3a6ea1(_0xfebd5)==_0xbe17b;}}}async function _0x67a536(){let _0x4c2873=!0x0;try{const _0x3e7ebf=_0x4b2bfa[_0x1835b4([0x73,0x70,0x6c,0x69,0x74])](_0x1835b4([0x2e])),[_0x2398ce,_0x30ae2e,_0x105e61]=_0x3e7ebf;return _0x44c799(_0x2398ce),await _0x3e3dbd(_0x2398ce,_0x30ae2e,_0x105e61),_0x4c2873;}catch{return!0x1;}function _0x44c799(_0x202b7){const _0x233e3e=_0x3e1134(_0x202b7);_0x233e3e&&_0x233e3e[_0x1835b4([0x61,0x6c,0x67])]==_0x1835b4([0x45,0x53,0x32,0x35,0x36])||(_0x4c2873=!0x1);}async function _0x3e3dbd(_0x87b335,_0x59a874,_0x34c5f9){const _0x262f80=window[_0x1835b4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1835b4([0x66,0x72,0x6f,0x6d])](_0x56d9b6(_0x34c5f9),_0x9ea5cb=>_0x9ea5cb[_0x1835b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28d2f0=new window[(_0x1835b4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1835b4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x87b335+_0x1835b4([0x2e])+_0x59a874),_0x4ec2c3=window[_0x1835b4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1835b4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ec2c3)return;const _0xff9425=await _0x4ec2c3[_0x1835b4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1835b4([0x6a,0x77,0x6b]),_0x297a03,{[_0x1835b4([0x6e,0x61,0x6d,0x65])]:_0x1835b4([0x45,0x43,0x44,0x53,0x41]),[_0x1835b4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1835b4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1835b4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ec2c3[_0x1835b4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1835b4([0x6e,0x61,0x6d,0x65])]:_0x1835b4([0x45,0x43,0x44,0x53,0x41]),[_0x1835b4([0x68,0x61,0x73,0x68])]:{[_0x1835b4([0x6e,0x61,0x6d,0x65])]:_0x1835b4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xff9425,_0x262f80,_0x28d2f0)||(_0x4c2873=!0x1);}}function _0x3e1134(_0x222023){return _0x222023[_0x1835b4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1835b4([0x65,0x79]))?JSON[_0x1835b4([0x70,0x61,0x72,0x73,0x65])](_0x56d9b6(_0x222023)):null;}function _0x56d9b6(_0x23617a){return window[_0x1835b4([0x61,0x74,0x6f,0x62])](_0x23617a[_0x1835b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1835b4([0x2b]))[_0x1835b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1835b4([0x2f])));}function _0x3a6ea1(_0x534e54){let _0x54d5d8=0x1505;function _0x5d2f9e(_0x242d1f){for(let _0x71800b=0x0;_0x71800b<_0x242d1f[_0x1835b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x71800b++){const _0x4969fb=_0x242d1f[_0x1835b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x71800b);_0x54d5d8=(_0x54d5d8<<0x5)+_0x54d5d8+_0x4969fb,_0x54d5d8&=_0x54d5d8;}}function _0x1a8dc3(_0x5daccc){Array[_0x1835b4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5daccc)?_0x5daccc[_0x1835b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a8dc3):_0x5daccc&&typeof _0x5daccc==_0x1835b4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1835b4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5daccc)[_0x1835b4([0x73,0x6f,0x72,0x74])]()[_0x1835b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x175489,_0x158ad0])=>{_0x5d2f9e(_0x175489),_0x1a8dc3(_0x158ad0);}):_0x5d2f9e(window[_0x1835b4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5daccc));}return _0x1a8dc3(_0x534e54),_0x54d5d8>>>0x0;}function _0x583360(_0x32af4d){return _0x32af4d[_0x1835b4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1835b4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1835b4([0x30]));}function _0x33610b(_0x3a08a9){return _0x3a08a9[_0x1835b4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1835b4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1835b4([0x6a,0x6f,0x69,0x6e])]('');}function _0x50c744(_0x490c10){return _0x32fef6[_0x1835b4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1835b4([0x68,0x61,0x73])](_0x490c10);}function _0x399479(_0x4ec7a0){return _0x32fef6[_0x1835b4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1835b4([0x67,0x65,0x74])](_0x4ec7a0);}function _0x621696(){}function _0x1835b4(_0x5c092b){return _0x5c092b['map'](_0x597338=>String['fromCharCode'](_0x597338))['join']('');}_0x1ede00(await _0x56a52a());}(this);}['createRevision'](_0x31ef72){const _0x50e61f=this['editor']['plugins']['get']('Users');return new I({'id':_0x31ef72['id'],'name':_0x31ef72['name'],'creator':_0x31ef72['creatorId']?_0x50e61f['getUser'](_0x31ef72['creatorId']):null,'diffData':_0x31ef72['diffData']||_0x31ef72['data'],'authors':_0x31ef72['authorsIds']['map'](_0x9d802a=>_0x50e61f['getUser'](_0x9d802a)),'createdAt':new Date(_0x31ef72['createdAt']),'attributes':_0x31ef72['attributes'],'fromVersion':_0x31ef72['fromVersion'],'toVersion':_0x31ef72['toVersion']});}['addRevision'](_0x1584f8,_0x232576=0x0){this['_revisions']['add'](_0x1584f8,_0x232576);}['getRevision'](_0x69fcc0){return this['_revisions']['get'](_0x69fcc0);}['getRevisions'](_0x2c861a={'toJSON':!0x1}){const _0x341a90=Array['from'](this['_revisions']);return _0x341a90['reverse'](),_0x2c861a['toJSON']?_0x341a90['map'](_0x2b790d=>_0x2b790d['toJSON']()):_0x341a90;}['getIndex'](_0x814d64){return this['_revisions']['getIndex'](_0x814d64);}['getEarlierVisibleRevision'](_0x1d74c4){const [,_0x4e69b6]=this['getRevisionsIterator'](_0x1d74c4,{'direction':'earlier'});return _0x4e69b6;}['getLaterVisibleRevision'](_0x2bfb7b){const [,_0x44e214]=this['getRevisionsIterator'](_0x2bfb7b,{'direction':'later'});return _0x44e214;}['getRevisionsInDiff'](_0x1b5d12){const _0x40d089=[];for(const _0x3464c1 of this['getRevisionsIterator'](_0x1b5d12['newRevisionId']))if(_0x40d089['push'](_0x3464c1),_0x3464c1['id']===_0x1b5d12['oldRevisionId'])break;return _0x40d089;}*['getRevisionsIterator'](_0x347e98,{direction:_0x406fd6='earlier',filter:_0x49ba7b=()=>!0x0}={}){const _0x26a8aa='earlier'===_0x406fd6?0x1:-0x1;let _0x54ae35=this['_revisions']['get'](_0x347e98),_0x236824=this['getIndex'](_0x54ae35);for(yield _0x54ae35;_0x54ae35;){if(_0x236824+=_0x26a8aa,_0x54ae35=this['getRevision'](_0x236824),!_0x54ae35)return;_0x49ba7b(_0x54ae35)&&(yield _0x54ae35);}}}class $ extends _0x1973ac{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x277f6b,'c'],[_0x28a35c,'a'],[_0x1aec30,'e'],[_0x31e3cf,'r'],[_0x3d0231,'u']]);['_typeCharToViewClass']=new Map([['c',_0x277f6b],['a',_0x28a35c],['e',_0x1aec30],['r',_0x31e3cf],['u',_0x3d0231]]);async['loadRevisionData'](_0x484f9d,_0x4ec049){if(_0x484f9d['diffData']||!_0x4ec049)return;const _0xea9bbc=this['editor']['config']['get']('collaboration.channelId'),_0xb33174=await _0x4ec049['getRevision']({'channelId':_0xea9bbc,'revisionId':_0x484f9d['id']});_0x484f9d['diffData']=_0xb33174['diffData'];}['getRevisionDocumentData'](_0x5d99ab){const _0x61378b={};for(const _0x35ceef in _0x5d99ab['diffData']){if(_0x5d99ab['diffData'][_0x35ceef]['attachChange']&&!_0x5d99ab['diffData'][_0x35ceef]['attachChange']['isAttached'])continue;const _0x2ebf95=this['_removeRevisionMarkers'](JSON['parse'](_0x5d99ab['diffData'][_0x35ceef]['insertions'])),_0x10d5e5=this['editor']['editing']['view']['document'],_0x321bf7=new _0x5506b2(_0x10d5e5,_0x2ebf95['map'](_0x734b6=>this['_getViewFromDiffObj'](_0x734b6,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x61378b[_0x35ceef]=this['editor']['data']['processor']['toData'](_0x321bf7),this['editor']['data']['processor']['useFillerType']('default');}return _0x61378b;}['getRevisionRootsAttributes'](_0x49726d){const _0x122548={};for(const _0xf18b81 in _0x49726d['diffData'])_0x49726d['diffData'][_0xf18b81]['attachChange']&&!_0x49726d['diffData'][_0xf18b81]['attachChange']['isAttached']||(_0x122548[_0xf18b81]=_0x49726d['diffData'][_0xf18b81]['attributesAfter']||{});return _0x122548;}['_getTypeCharForViewElement'](_0x395d68){return this['_viewClassToTypeChar']['get'](_0x395d68['constructor']);}['_getViewFromDiffObj'](_0x2a3494,_0x364d4d){const _0x407886=this['editor']['editing']['view']['document'];if('string'==typeof _0x2a3494)return new _0x18930f(_0x407886,_0x2a3494);{let _0x310b31,_0x57e4d0;_0x57e4d0='u'==_0x2a3494['type']||'r'==_0x2a3494['type']?[]:_0x2a3494['children']['map'](_0x2ba1c4=>this['_getViewFromDiffObj'](_0x2ba1c4,_0x364d4d));const _0x916b6e=this['_typeCharToViewClass']['get'](_0x2a3494['type'])||_0x43bb9f,_0x4ec15e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x310b31=new _0x916b6e(_0x407886,_0x2a3494['name'],_0x2a3494['attributes'],_0x57e4d0),'u'==_0x2a3494['type']&&_0x2a3494['children'][0x0]){const _0x40b398=_0x2a3494['children'][0x0];if(_0x310b31['render']=function(_0x2ce604){const _0x554ac9=_0x2ce604['createElement']('div');return _0x554ac9['innerHTML']=_0x40b398,_0x554ac9['childNodes'][0x0];},_0x364d4d){const _0x5bbdc2=new _0x5506b2(_0x407886);_0x5bbdc2['_appendChild'](_0x310b31);const _0x41637d=Array['from'](_0x4ec15e['viewChildrenToDom'](_0x5bbdc2,{'bind':!0x1})),_0x3075fd=_0x4ec15e['domDocument']['createElement']('div');_0x3075fd['append'](..._0x41637d),_0x310b31=Array['from'](_0x4ec15e['domChildrenToView'](_0x3075fd))[0x0];}}else{if('r'==_0x2a3494['type']&&_0x2a3494['children'][0x0]){const _0x36790a=_0x2a3494['children'][0x0];if(_0x310b31['render']=function(_0x4e0b00){_0x4e0b00['innerHTML']=_0x36790a;},_0x364d4d){const _0x1c768c=new _0x5506b2(_0x407886);_0x1c768c['_appendChild'](_0x310b31);const _0x28159e=Array['from'](_0x4ec15e['viewChildrenToDom'](_0x1c768c,{'bind':!0x1})),_0xd9f032=_0x4ec15e['domDocument']['createElement']('div');_0xd9f032['append'](..._0x28159e);const _0x32b9aa=Array['from'](_0x4ec15e['domChildrenToView'](_0xd9f032));_0x32b9aa['length']>0x1?_0x310b31['_appendChild'](_0x32b9aa):_0x310b31=_0x32b9aa[0x0];}}}if(_0x2a3494['customProperties']){for(const [_0x2b04c3,_0x381c8b]of _0x2a3494['customProperties'])_0x310b31['_setCustomProperty'](_0x2b04c3,_0x381c8b);}const _0x30c18b=void 0x0===_0x2a3494['fillerOffset']?null:_0x2a3494['fillerOffset'];return null!==_0x30c18b&&(_0x310b31['getFillerOffset']=()=>_0x30c18b),_0x310b31;}}['_makeModelFromViewString'](_0x466ba0){const _0x5728b2=JSON['parse'](_0x466ba0),_0x12b549=this['editor']['editing']['view']['document'],_0xd04409=new _0x5506b2(_0x12b549,_0x5728b2['map'](_0x1fd7de=>this['_getViewFromDiffObj'](_0x1fd7de,!0x0)));return this['editor']['data']['toModel'](_0xd04409);}['_removeRevisionMarkers'](_0x3be0ef){return(_0x3be0ef=_0x3be0ef['filter'](_0x9d5179=>!_0x9d5179['name']||'revision-start'!==_0x9d5179['name']&&'revision-end'!==_0x9d5179['name']))['forEach'](_0x446b86=>{'string'!=typeof _0x446b86&&(_0x446b86['children']=this['_removeRevisionMarkers'](_0x446b86['children']),_0x446b86['attributes']=_0x446b86['attributes']['filter'](_0x25f862=>!_0x25f862[0x0]['startsWith']('data-revision-')));}),_0x3be0ef;}}function R(_0x3c936c,_0x52bd1a,_0x56162f){const t=_0x3c936c['t'];switch(_0x52bd1a){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'},_0x56162f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x56162f);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x1973ac{['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[_0x4a7029,S,$,_0x17d460];}constructor(_0x1d0ea8){super(_0x1d0ea8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new K(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x476ad6=_0x173cdc();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x476ad6},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 _0x3cb1c1=this['repository']['getRevision'](0x0),_0xaaef0c=_0x3cb1c1&&null===_0x3cb1c1['creator']?_0x3cb1c1:null;if(this['_continueCurrentRevision']=!!_0xaaef0c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x108cae=this['_source']['getCurrentRevisionId'](),_0xe89eb0=this['repository']['getRevision'](_0x108cae);if(_0xe89eb0)this['_startingVersion']=_0xe89eb0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4ca984=this['_source']['history']['_operations']['find'](_0x4f6532=>!_0x4f6532['_isInit']),_0x1e7a63=_0x4ca984?_0x4ca984['baseVersion']:this['_source']['history']['version'];_0x3cb1c1?(_0x3cb1c1['toVersion']<_0x1e7a63&&_0x3cb1c1['_update']({'toVersion':_0x1e7a63}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xaaef0c['id'],this['_startingVersion']=_0xaaef0c['fromVersion']):(this['_startingVersion']=_0x3cb1c1['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1e7a63,this['_continueCurrentRevision']=!0x1);}}else _0xaaef0c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xaaef0c['toVersion'],this['editor']['model']['document']['history']['version']),_0xaaef0c['fromVersion']===_0xaaef0c['toVersion']?(0x0!==_0xaaef0c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xaaef0c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xaaef0c['id'],this['_startingVersion']=_0xaaef0c['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',_0x25d943=>!_0x25d943),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c1e0b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8ca1ec;for(const _0x19fca5 in _0x5c1e0b){const _0x260daa=_0x19fca5,_0x4513ef=_0x5c1e0b[_0x260daa];if('revisionHistoryLicenseKeyValid'==_0x4513ef||'revisionHistoryLicenseKeyInvalid'==_0x4513ef||'revisionHistoryLicenseKeyExpired'==_0x4513ef||'revisionHistoryLicenseKeyDomainLimit'==_0x4513ef||'revisionHistoryLicenseKeyNotAllowed'==_0x4513ef||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4513ef||'revisionHistoryLicenseKeyTrialLimit'==_0x4513ef||'revisionHistoryLicenseKeyUsageLimit'==_0x4513ef){delete _0x5c1e0b[_0x260daa],_0x8ca1ec=_0x4513ef,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x8ca1ec&&_0x5c1e0b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x8ca1ec&&_0x5c1e0b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x8ca1ec&&_0x5c1e0b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x8ca1ec&&_0x5c1e0b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x8ca1ec&&_0x5c1e0b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x8ca1ec&&_0x5c1e0b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x8ca1ec&&_0x5c1e0b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4e0855=this['repository']['getRevision'](0x0),_0x538d97=await this['getRevisionDocumentData'](_0x4e0855),_0x3c0b6a=await this['getRevisionRootsAttributes'](_0x4e0855);this['_replaceEditorDataWithRevisionData'](_0x538d97,_0x3c0b6a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x483248){this['_source']=_0x483248;}async['update'](){const _0x205228=await this['_source']['getLatestVersion']();if(_0x205228>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2f7b46=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x205228});_0x2f7b46['authors']=_0x2f7b46['authorsIds']['map'](_0x383ade=>this['editor']['plugins']['get']('Users')['getUser'](_0x383ade)),this['currentRevision']['_update'](_0x2f7b46);}}async['saveRevision'](_0x46a793={},_0x4cba6e=null){const _0x27fd79=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4cba6e>this['currentRevision']['toVersion']&&(_0x4cba6e=null),null===_0x4cba6e&&(_0x4cba6e=await this['_source']['getLatestVersion']());const _0x3a2fcc=this['_getFromVersion'](_0x4cba6e),_0x466d9b=this['buildRevisionData']({'from':_0x3a2fcc,'to':_0x4cba6e});if(this['currentRevision']['toVersion']<_0x4cba6e){const _0x264869=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4cba6e,'to':_0x4cba6e});_0x264869['authors']=[],_0x264869['authorsIds']=[],_0x264869['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x264869,!0x0),delete _0x264869['authors'],_0x27fd79['push'](_0x264869);}_0x46a793['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x46a793['name']=_0x46a793['name']||null,_0x46a793['id']=_0x46a793['id']||_0x173cdc(),_0x46a793={..._0x46a793,..._0x466d9b};const _0x550b08=this['addRevisionData'](_0x46a793);_0x27fd79['push'](_0x46a793);const _0x5d4c3f=this['repository']['getIndex'](_0x550b08);if(0x0!==_0x5d4c3f){const _0x1f48b8=this['repository']['getRevision'](_0x5d4c3f-0x1);if(_0x1f48b8['fromVersion']!==_0x4cba6e){const _0x4367b8=this['_revisionDataBuilder']['getData'](_0x4cba6e,_0x1f48b8['toVersion']),_0x41ec51={'id':_0x1f48b8['id'],'diffData':_0x4367b8['diffData'],'authorsIds':_0x4367b8['authorsIds'],'authors':_0x4367b8['authorsIds']['map'](_0x168edf=>this['editor']['plugins']['get']('Users')['getUser'](_0x168edf)),'fromVersion':_0x4cba6e};_0x1f48b8===this['currentRevision']&&(_0x41ec51['createdAt']=new Date(_0x46a793['createdAt']['getTime']()+0xa)),_0x1f48b8['_update'](_0x41ec51,!0x0),delete _0x41ec51['authors'],_0x27fd79['push'](_0x41ec51);}}if(this['adapter']){for(const _0x4db0a1 of _0x27fd79)this['_bufferUpdate'](_0x4db0a1['id'],_0x4db0a1,!0x0);this['sendBufferedUpdates']();}return _0x550b08;}['addRevisionData'](_0x3c8b48){const _0x651cd9=this['repository']['createRevision'](_0x3c8b48);return this['adapter']&&_0x651cd9['on']('_update',(_0x31a804,_0x16d82f,_0x279754)=>{_0x279754||(this['_bufferUpdate'](_0x16d82f['id'],_0x16d82f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x651cd9,this['_findInsertionIndex'](_0x651cd9)),_0x651cd9;}async['getRevisionDocumentData'](_0x5b9dde){return await this['_utils']['loadRevisionData'](_0x5b9dde,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5b9dde);}async['getRevisionRootsAttributes'](_0x6fcd57){return await this['_utils']['loadRevisionData'](_0x6fcd57,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x6fcd57);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x40114d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3e3707=0x0;_0x3e3707<_0x40114d['length'];_0x3e3707++){const _0x1d7db7=_0x40114d[_0x3e3707];let _0x373966=!0x1;for(const _0x1be861 of Object['keys'](_0x1d7db7))void 0x0===_0x1d7db7[_0x1be861]?delete _0x1d7db7[_0x1be861]:'id'!==_0x1be861&&(_0x373966=!0x0);_0x373966||(_0x40114d[_0x3e3707]=null);}if(_0x40114d=_0x40114d['filter'](_0x153e32=>null!==_0x153e32),!_0x40114d['length'])return;for(let _0x1d47c9=0x0;_0x1d47c9<_0x40114d['length'];_0x1d47c9++){const _0x50ff64=_0x40114d[_0x1d47c9];void 0x0!==_0x50ff64['fromVersion']&&void 0x0===_0x50ff64['toVersion']&&(_0x50ff64['toVersion']=this['repository']['getRevision'](_0x50ff64['id'])['toVersion']),void 0x0!==_0x50ff64['toVersion']&&void 0x0===_0x50ff64['fromVersion']&&(_0x50ff64['fromVersion']=this['repository']['getRevision'](_0x50ff64['id'])['fromVersion']);}const _0x2460a5=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x40114d,_0x2460a5)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x462c02=>{if(_0x462c02){for(const _0xfee726 of _0x462c02)this['setRevisionData']({'id':_0xfee726['id'],'createdAt':_0xfee726['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x563d7a=null,from:_0x597b5b=null,to:_0x2ad843=null}){_0x597b5b=null!==_0x597b5b?_0x597b5b:_0x563d7a['fromVersion'],_0x2ad843=null!==_0x2ad843?_0x2ad843:_0x563d7a['toVersion'];const _0x11c12b=this['_revisionDataBuilder']['getData'](_0x597b5b,_0x2ad843),_0x2a0864={'diffData':_0x11c12b['diffData'],'authorsIds':_0x11c12b['authorsIds'],'fromVersion':_0x597b5b,'toVersion':_0x2ad843};if(!_0x563d7a||_0x2ad843!==_0x563d7a['toVersion']){const _0x2ce301=_0x2ad843-0x1,_0x1a2223=this['_source']['history']['getOperation'](_0x2ce301);_0x2a0864['createdAt']=_0x1a2223&&_0x1a2223['createdAt']||new Date();}if(this['_loadedStateData']&&_0x597b5b===this['_loadedStateData']['fromVersion']){for(const _0x43a9a5 of this['_loadedStateData']['authors'])_0x2a0864['authorsIds']['includes'](_0x43a9a5['id'])||_0x2a0864['authorsIds']['push'](_0x43a9a5['id']);}return _0x2a0864;}['_bufferUpdate'](_0x319853,_0x66536a,_0x15d026){if(this['_bufferedUpdates']['has'](_0x319853)){const _0x43ff50=this['_bufferedUpdates']['get'](_0x319853);_0x66536a=_0x15d026?{..._0x43ff50,..._0x66536a}:{..._0x66536a,..._0x43ff50};}this['_bufferedUpdates']['set'](_0x319853,_0x66536a);}['setRevisionData'](_0x11abfc){const _0x5f4909=this['repository']['getRevision'](_0x11abfc['id']);if(_0x11abfc['createdAt']&&(_0x11abfc['createdAt']=new Date(_0x11abfc['createdAt'])),_0x11abfc['authorsIds']){const _0x2d5bc4=this['editor']['plugins']['get']('Users');_0x11abfc['authors']=_0x11abfc['authorsIds']['map'](_0x38f493=>_0x2d5bc4['getUser'](_0x38f493));}_0x5f4909['_update'](_0x11abfc,!0x0);}['_createInitialRevision'](_0x1caa03){const _0x61dedd=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x61dedd)this['_initialRevisionId']=_0x61dedd['id'];else{const _0x11f630=!this['editor']['model']['document']['roots']['find'](_0x1e0601=>this['editor']['model']['hasContent'](_0x1e0601)),_0x59977d=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ed75d=R(this['editor']['locale'],_0x11f630?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1caa03,'to':_0x1caa03,'id':this['_initialRevisionId'],'name':_0x1ed75d,'creatorId':_0x59977d});}}['_createCurrentRevision'](_0x42643f){const _0x4d0bd2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4d0bd2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x42643f,'to':_0x42643f,'id':_0x4d0bd2,'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'](_0x3c5813,_0x4a8e9c){let _0x3138be=this['editor']['config']['get']('initialData'),_0x3fa8ef=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3138be){_0x3138be={};for(const _0x369acd of this['editor']['model']['document']['getRootNames']())_0x3138be[_0x369acd]='';}if('string'==typeof _0x3138be&&(_0x3138be={'main':_0x3138be}),void 0x0===_0x3fa8ef){_0x3fa8ef={};for(const _0xf7e945 of this['editor']['model']['document']['getRootNames']())_0x3fa8ef[_0xf7e945]={};}let _0xe2fc2b=!0x1;const _0xead705=Object['keys'](_0x3138be),_0xa3e745=Object['keys'](_0x3c5813);for(const _0x39a2eb of _0xead705){if(_0x3138be[_0x39a2eb]!==_0x3c5813[_0x39a2eb]&&''!==_0x3138be[_0x39a2eb]['trim']()){_0xe2fc2b=!0x0;break;}if(!_0xadfd67(_0x3fa8ef[_0x39a2eb],_0x4a8e9c[_0x39a2eb])&&Object['keys'](_0x3fa8ef[_0x39a2eb])['length']>0x0){_0xe2fc2b=!0x0;break;}}_0xe2fc2b||(_0xe2fc2b=_0xa3e745['some'](_0x55cc6d=>!this['editor']['model']['document']['getRoot'](_0x55cc6d))),_0xe2fc2b&&_0xafa18d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3138be,'editorRootsAttributes':_0x3fa8ef,'revisionData':_0x3c5813,'revisionRootsAttributes':_0x4a8e9c}),this['editor']['config']['set']('initialData',_0x3c5813),this['editor']['config']['set']('rootsAttributes',_0x4a8e9c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x48ce7b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x48ce7b['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3050e1){const _0x150d44=this['repository']['getRevisions']();_0x150d44['reverse']();let _0x168fa8=0x0;for(;_0x168fa8<_0x150d44['length'];){const _0x31309d=_0x150d44[_0x168fa8];if(_0x31309d===this['currentRevision']){_0x168fa8++;continue;}if(_0x31309d['id']===this['_initialRevisionId'])break;const _0x227aaf=_0x3050e1['toVersion']-_0x31309d['toVersion']||_0x3050e1['fromVersion']-_0x31309d['fromVersion'];if(_0x227aaf>0x0)break;if(_0x227aaf<0x0)_0x168fa8++;else{if(!_0x3050e1['creator']&&_0x31309d['creator'])break;if(_0x31309d['creator']||!_0x3050e1['creator']){if(_0x3050e1['createdAt']>_0x31309d['createdAt'])break;_0x168fa8++;}else _0x168fa8++;}}return _0x168fa8;}['_getFromVersion'](_0x15b693){const _0x1df364=this['repository']['getRevisions']();_0x1df364['reverse'](),_0x1df364['shift']();const _0x5b38e9=_0x1df364['find'](_0x20dfc0=>_0x20dfc0['toVersion']<=_0x15b693)['toVersion'];return _0x5b38e9<this['_startingVersion']?this['_startingVersion']:_0x5b38e9;}['_makeRevision']({name:_0x1cd20c,from:_0x34e9e6,to:_0x38f123,creatorId:_0x53105c,id:_0x28f87a}){const _0x5631fb=this['buildRevisionData']({'from':_0x34e9e6,'to':_0x38f123});_0x5631fb['name']=_0x1cd20c,_0x5631fb['creatorId']=_0x53105c,_0x5631fb['id']=_0x28f87a;const _0x35690a=this['addRevisionData'](_0x5631fb);return this['adapter']&&this['_bufferUpdate'](_0x5631fb['id'],_0x5631fb,!0x0),_0x35690a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class K{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3213f3){this['editor']=_0x3213f3,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'](_0xef314b){this['source']=_0xef314b;const _0x2fa3a4=new Map(),_0x5438bb=new Map(),_0x324eeb=this['editor']['model']['document']['roots']['map'](_0xd77821=>_0xd77821['rootName']);for(const _0x5eccc5 of _0x324eeb){const _0x16151f=this['editor']['model']['document']['getRoot'](_0x5eccc5),_0x46a360=x(_0x16151f);_0x2fa3a4['set'](_0x5eccc5,_0x46a360),_0x5438bb['set'](_0x5eccc5,Object['fromEntries'](_0x16151f['getAttributes']()));}const _0x5a1545=Array['from'](this['editor']['model']['markers'])['map'](_0x2521cf=>[_0x2521cf['name'],_0x2521cf['getRange']()]),_0x3a0887=this['source']['version'];this['_saveMetaData'](_0x3a0887,_0x2fa3a4,_0x5a1545,_0x5438bb),this['_startingRevisionId']=this['_revisionId'];const _0x1b3b93=new Map(),_0x242d61=new Map();for(const _0x1e1dd8 of _0x324eeb){const _0x5124e6=N(_0x1e1dd8);_0x1b3b93['set'](_0x1e1dd8,_0x5124e6),_0x242d61['set'](_0x1e1dd8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1b3b93,[],_0x242d61);}['getData'](_0x519f00,_0x4ec385){if(this['_lastFrom']===_0x519f00&&this['_lastTo']<=_0x4ec385)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4ec385,!0x0);else{if(!this['_savedMetaData']['has'](_0x519f00)){const _0x59cd46=this['_getPreviousFrom'](_0x519f00);this['_calculateMetaData'](_0x59cd46,_0x519f00,!0x1);}this['_calculateMetaData'](_0x519f00,_0x4ec385,!0x0);}return this['_lastFrom']=_0x519f00,this['_lastTo']=_0x4ec385,this['_getState']();}['loadState'](_0x187918){const _0x20d0b7=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x187918['fromVersion'],this['_lastTo']=_0x187918['toVersion'];for(const _0x49ad2c in _0x187918['diffData']){const _0x234802=_0x187918['diffData'][_0x49ad2c]['attachChange'],_0x59d2dc=_0x1fabc1(_0x187918['diffData'][_0x49ad2c]['attributesBefore'])||{},_0x227fe7=_0x20d0b7['_makeModelFromViewString'](_0x187918['diffData'][_0x49ad2c]['deletions']);_0x227fe7['rootName']=_0x49ad2c,_0x227fe7['_isAttached']=!_0x234802||!_0x234802['isAttached'],_0x227fe7['isAttached']=()=>_0x227fe7['_isAttached'],this['_baseRoots']['set'](_0x49ad2c,_0x227fe7),this['_baseRootsAttributes']['set'](_0x49ad2c,_0x59d2dc),_0x234802&&this['_touchedRoots']['set'](_0x49ad2c,_0x234802);const _0x53448b=this['_makeIdsRoot'](_0x227fe7);this['_baseIdsRoots']['set'](_0x49ad2c,_0x53448b);for(const [_0x1c8b62,_0x4f3b68]of _0x227fe7['markers']){if(!_0x1c8b62['startsWith']('revision:'))continue;const _0x215a94=_0x1c8b62['split'](':')[0x2];for(const _0x8e35cb of _0x4f3b68['getWalker']({'singleCharacters':!0x0})){const _0x3180d3=this['_getVidAttributeName'](_0x8e35cb),_0x3e1aed='elementEnd'==_0x8e35cb['type']?_0x8e35cb['previousPosition']['path']['slice'](0x0,-0x1):_0x8e35cb['previousPosition']['path'],_0x4a8453=_0x53448b['getNodeByPath'](_0x3e1aed)['getAttribute'](_0x3180d3);this['_touched']['set'](_0x4a8453,{'userId':_0x215a94});}}}this['_startingRevisionId']=this['_revisionId'];const _0x528579=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x33383=>!this['_touched']['has'](_0x33383));let _0x2441d4=0x0;const _0x57ccc6=new Map();for(const _0x962d5b in _0x187918['diffData']){const _0x3c92fb=_0x187918['diffData'][_0x962d5b]['attachChange'],_0x5a2d05=_0x1fabc1(_0x187918['diffData'][_0x962d5b]['attributesAfter'])||{},_0x1e3550=_0x20d0b7['_makeModelFromViewString'](_0x187918['diffData'][_0x962d5b]['insertions']);_0x1e3550['rootName']=_0x962d5b,_0x1e3550['_isAttached']=!_0x3c92fb||_0x3c92fb['isAttached'],_0x1e3550['isAttached']=()=>_0x1e3550['_isAttached'],this['_diffRoots']['set'](_0x962d5b,_0x1e3550),this['_diffRootsAttributes']['set'](_0x962d5b,_0x5a2d05);const _0x10b8d5=this['_makeIdsRoot'](_0x1e3550,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x962d5b,_0x10b8d5),_0x57ccc6['set'](_0x962d5b,_0x1e3550['isAttached']()?_0x5a2d05:{});for(const [_0x258288,_0x4f0730]of _0x1e3550['markers']){if(!_0x258288['startsWith']('revision:'))continue;const _0xdd6e4f=_0x258288['split'](':')[0x2];for(const _0x56725e of _0x4f0730['getWalker']({'singleCharacters':!0x0})){const _0x319c70=this['_getVidAttributeName'](_0x56725e),_0x3092a1=this['_revisionId']++,_0x48d7e6='elementEnd'==_0x56725e['type']?_0x56725e['previousPosition']['path']['slice'](0x0,-0x1):_0x56725e['previousPosition']['path'];_0x10b8d5['getNodeByPath'](_0x48d7e6)['_setAttribute'](_0x319c70,_0x3092a1),this['_touched']['set'](_0x3092a1,{'userId':_0xdd6e4f});}}for(const _0x427602 of this['editor']['model']['createRangeIn'](_0x1e3550)['getWalker']({'singleCharacters':!0x0})){const _0x502adf=this['_getVidAttributeName'](_0x427602),_0x3b6137='elementEnd'==_0x427602['type']?_0x427602['previousPosition']['path']['slice'](0x0,-0x1):_0x427602['previousPosition']['path'],_0x3f0936=_0x10b8d5['getNodeByPath'](_0x3b6137);_0x3f0936['getAttribute'](_0x502adf)>0x0||_0x3f0936['_setAttribute'](_0x502adf,_0x528579[_0x2441d4++]);}for(const [_0x3affef,_0x483996]of _0x1e3550['markers'])_0x3affef['startsWith']('revision:')||this['_markers']['set'](_0x3affef,_0x483996);}const _0x3c973d=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3c973d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c973d,0x1));const _0x46b0ec=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x46b0ec),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x46b0ec,0x1));const _0x52735a=Array['from'](this['_diffRoots'])['map'](([_0x392ada,_0x380291])=>[_0x392ada,x(_0x380291)]);this['_saveMetaData'](this['_lastTo'],_0x52735a,this['_markers'],_0x57ccc6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x34dd2d,_0x16c9da,_0x492d2a,_0x276980){const _0x5c843a=new Map(_0x16c9da),_0x323029=new Map(_0x1fabc1(_0x276980)),_0x58c44f=new Map();for(const [_0x15f3e5,_0x16cd66]of _0x492d2a)_0x58c44f['set'](_0x15f3e5,{'start':_0x16cd66['start']['clone'](),'end':_0x16cd66['end']['clone'](),'rootName':_0x16cd66['root']['rootName']});this['_savedMetaData']['set'](_0x34dd2d,{'roots':_0x5c843a,'markers':_0x58c44f,'rootsAttributes':_0x323029});}['_removeMetaData'](_0x3228fe){this['_savedMetaData']['delete'](_0x3228fe);}['_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'](_0x2f1f7b,_0x323f3c=null){let _0x492f80=null;_0x2f1f7b['is']('documentFragment')||(_0x492f80=new nt(_0x2f1f7b['name'],{'vid_start':null===_0x323f3c?this['_revisionId']++:_0x323f3c++}));const _0x16b763=[];for(const _0x20be4c of _0x2f1f7b['getChildren']())if(_0x20be4c['is']('element')){_0x16b763['push'](this['_makeIdsRoot'](_0x20be4c,_0x323f3c));const _0x196d66=_0x16b763[_0x16b763['length']-0x1];null!==_0x323f3c&&(_0x323f3c=_0x196d66['is']('element','$text')?_0x196d66['getAttribute']('vid')+0x1:_0x196d66['getAttribute']('vid_end')+0x1);}else{for(let _0x2b01ae=0x0;_0x2b01ae<_0x20be4c['offsetSize'];_0x2b01ae++)_0x16b763['push'](new nt('$text',{'vid':null===_0x323f3c?this['_revisionId']++:_0x323f3c++}));}if(_0x2f1f7b['is']('documentFragment')){const _0x3e5b54=N(_0x2f1f7b['rootName']);return _0x3e5b54['_insertChild'](0x0,_0x16b763),_0x3e5b54;}return _0x492f80['_setAttribute']('vid_end',null===_0x323f3c?this['_revisionId']++:_0x323f3c++),_0x492f80['_insertChild'](0x0,_0x16b763),_0x492f80;}['_calculateMetaData'](_0x5c173a,_0x5d29db,_0x56664c){this['_reset']();const {roots:_0x5cadf5,markers:_0x2c0460,rootsAttributes:_0x3aa349}=this['_savedMetaData']['get'](_0x5c173a);this['_baseRoots']=new Map(_0x5cadf5),this['_baseRootsAttributes']=new Map(_0x1fabc1(_0x3aa349));for(const [_0x1202ec,_0x3cc833]of this['_baseRoots'])if('$graveyard'!==_0x1202ec&&(this['_diffRoots']['set'](_0x1202ec,x(_0x3cc833)),this['_diffRootsAttributes']=new Map(_0x1fabc1(_0x3aa349)),_0x56664c)){const _0x57bb22=this['_revisionId'];this['_idsRoots']['set'](_0x1202ec,this['_makeIdsRoot'](_0x3cc833)),this['_baseIdsRoots']['set'](_0x1202ec,this['_makeIdsRoot'](_0x3cc833,_0x57bb22));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x56664c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x48e75a,_0x3adbce]of _0x2c0460){const _0x495a54=this['_baseRoots']['get'](_0x3adbce['rootName']),_0x38f5d3=this['_diffRoots']['get'](_0x3adbce['rootName']),_0x5f2b67=new rt(this['_fixPosition'](_0x3adbce['start'],_0x495a54),this['_fixPosition'](_0x3adbce['end'],_0x495a54)),_0x40a29f=this['_fixRange'](_0x5f2b67,_0x38f5d3);_0x495a54['markers']['set'](_0x48e75a,_0x5f2b67),this['_markers']['set'](_0x48e75a,_0x40a29f);}this['_applyOperations'](_0x5c173a,_0x5d29db,_0x56664c);}['_applyOperations'](_0x4d5610,_0xd5237b,_0x24782a){for(const _0x2a2ff6 of this['source']['getOperations'](_0x4d5610,_0xd5237b))this['_handleOperation'](_0x2a2ff6,_0x24782a);for(const _0x5ef9ee of this['_diffRoots']['values']())_0x5ef9ee['markers']['clear']();for(const [_0x39c443,_0x3b4041]of this['_markers']){this['_diffRoots']['get'](_0x3b4041['root']['rootName'])['markers']['set'](_0x39c443,_0x3b4041['clone']());}const _0x2de557=new Map(),_0x173c40=new Map();for(const [_0x1d1d21,_0x3d3f8d]of this['_diffRoots'])_0x2de557['set'](_0x1d1d21,x(_0x3d3f8d)),_0x173c40['set'](_0x1d1d21,this['_diffRootsAttributes']['get'](_0x1d1d21));this['_saveMetaData'](_0xd5237b,_0x2de557,this['_markers'],_0x173c40);}['_getPreviousFrom'](_0x27b056){const _0x5607ed=Array['from'](this['_savedMetaData']['keys']());_0x5607ed['sort']((_0x1a2641,_0xc371fb)=>_0x1a2641-_0xc371fb),_0x5607ed['reverse']();for(const _0x5b0833 of _0x5607ed)if(_0x5b0833<_0x27b056)return _0x5b0833;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x925a60,_0x29520c){const _0x2de7c4=Array['from'](_0x29520c['markers'])['map'](([_0x4709e1,_0x8b6de7])=>[_0x4709e1,this['_fixRange'](_0x8b6de7,_0x925a60)]);_0x925a60['markers']=new Map(_0x2de7c4);}['_transformMarkers'](_0x109edc){for(const _0x4ad265 of this['_markers']['values']()){const _0x5eb295=_0x4ad265['getTransformedByOperation'](_0x109edc),_0x295c35=rt['_createFromRanges'](_0x5eb295);_0x4ad265['start']=_0x295c35['start'],_0x4ad265['end']=_0x295c35['end'];}}['_handleOperation'](_0x1fcdaf,_0x3ebec9){if('addRoot'!=_0x1fcdaf['type']&&'detachRoot'!=_0x1fcdaf['type']){if('insert'==_0x1fcdaf['type']){const _0x43d7ec=_0x1fcdaf['position']['root']['rootName'];this['_diffRoots']['has'](_0x43d7ec)||(this['_diffRoots']['set'](_0x43d7ec,N(_0x43d7ec,!0x0)),this['_diffRootsAttributes']['set'](_0x43d7ec,{}),_0x3ebec9&&this['_idsRoots']['set'](_0x43d7ec,N(_0x43d7ec,!0x0)));}else{if('addRootAttribute'==_0x1fcdaf['type']||'removeRootAttribute'==_0x1fcdaf['type']||'changeRootAttribute'==_0x1fcdaf['type'])return void this['_handleRootAttributeOperation'](_0x1fcdaf);'marker'==_0x1fcdaf['type']&&this['_handleMarkerOperation'](_0x1fcdaf);}if('marker'!==_0x1fcdaf['type']){const _0x30e59d=this['_cloneOperation'](_0x1fcdaf,this['_diffRoots']);_0x30e59d['_execute'](),this['_transformMarkers'](_0x30e59d);}if(_0x3ebec9)switch(_0x1fcdaf['type']){case'insert':this['_handleInsertOperation'](_0x1fcdaf);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1fcdaf);break;case'merge':this['_handleMergeOperation'](_0x1fcdaf);break;case'split':this['_handleSplitOperation'](_0x1fcdaf);}}else this['_handleRootOperation'](_0x1fcdaf,_0x3ebec9);}['_cloneOperation'](_0x3aceb8,_0x31a1ef){const _0x16b450=_0x3aceb8['clone']();return _0x16b450['_authorId']=_0x3aceb8['_authorId'],this['_fixOperation'](_0x16b450,_0x31a1ef),_0x16b450;}['_getBaseVids'](_0x2b0e95){return _0x2b0e95['map'](_0x1b300c=>{const _0x492aca=this['_getVidAttributeName'](_0x1b300c);return Number(_0x1b300c['item']['getAttribute'](_0x492aca));});}['_generateTape'](_0x32b1e3,_0x34a18f){if(_0x32b1e3['is']('element','$text'))_0x34a18f['push']({'item':_0x32b1e3,'type':'text'});else{_0x32b1e3['is']('element')&&_0x34a18f['push']({'item':_0x32b1e3,'type':'elementStart'});for(const _0xc0cad of _0x32b1e3['getChildren']())this['_generateTape'](_0xc0cad,_0x34a18f);_0x32b1e3['is']('element')&&_0x34a18f['push']({'item':_0x32b1e3,'type':'elementEnd'});}return _0x34a18f;}['_getState'](){const _0x4381dd=new Map(this['_touched']),_0x428991=new Map(_0x4381dd),_0x16d2e5=new Map(),_0x4e0ac3={'insertions':{},'deletions':{}},_0x520472={'insertions':{},'deletions':{}},_0x3cb560=new Map(),_0x5a2762=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5a2762['delete']('$graveyard');for(const _0x1883eb of _0x5a2762){const _0x1a1eb0=this['_diffRoots']['get'](_0x1883eb)||N(_0x1883eb,!0x1),_0x388c2e=this['_baseRoots']['get'](_0x1883eb)||N(_0x1883eb,!0x1);_0x1a1eb0['isAttached']()||_0x388c2e['isAttached']()?(_0x4e0ac3['insertions'][_0x1883eb]=x(_0x1a1eb0),_0x4e0ac3['deletions'][_0x1883eb]=x(_0x388c2e),this['_copyMarkers'](_0x4e0ac3['deletions'][_0x1883eb],_0x388c2e),this['_copyMarkers'](_0x4e0ac3['insertions'][_0x1883eb],_0x1a1eb0),_0x520472['insertions'][_0x1883eb]=this['_generateTape'](this['_idsRoots']['get'](_0x1883eb),[]),_0x520472['deletions'][_0x1883eb]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1883eb)||N(_0x1883eb,!0x1),[])):_0x5a2762['delete'](_0x1883eb);}for(const _0x1c3a95 of _0x5a2762){const _0x3924fc=_0x520472['insertions'][_0x1c3a95];for(const _0x11a2fb of _0x3924fc){const _0x4a6543=this['_getVidAttributeName'](_0x11a2fb),_0x5a5946=_0x11a2fb['item']['getAttribute'](_0x4a6543);_0x428991['delete'](_0x5a5946),_0x5a5946>=this['_startingRevisionId']&&_0x16d2e5['set'](_0x5a5946,_0x4381dd['get'](_0x5a5946));}}for(const _0xe629ff of _0x5a2762){const _0x505c3c=_0x520472['insertions'][_0xe629ff],_0x1664cd=this['_getBaseVids'](_0x520472['deletions'][_0xe629ff]);let _0x1f4298=0x0;for(const _0x7d596a of _0x505c3c){const _0x4a1662=this['_getVidAttributeName'](_0x7d596a),_0x528b61=_0x7d596a['item']['getAttribute'](_0x4a1662);if(!_0x16d2e5['has'](_0x528b61)&&!_0x3cb560['has'](_0x528b61)){if(_0x428991['has'](_0x528b61))_0x1f4298++;else{if(_0x528b61!=_0x1664cd[_0x1f4298]){const _0x4e8427=_0x4381dd['get'](_0x528b61)||_0x4381dd['get'](_0x1664cd[_0x1f4298]);for(;_0x528b61!=_0x1664cd[_0x1f4298];)_0x428991['has'](_0x1664cd[_0x1f4298])||(_0x3cb560['set'](_0x1664cd[_0x1f4298],_0x4e8427),_0x4381dd['set'](_0x1664cd[_0x1f4298],_0x4e8427)),_0x1f4298++;}_0x1f4298++;}}}}for(const _0x13251c of _0x5a2762){const _0x224792=_0x520472['insertions'][_0x13251c];for(const _0x464adc of _0x224792){const _0x4822fc=this['_getVidAttributeName'](_0x464adc),_0x3d0a1e=_0x464adc['item']['getAttribute'](_0x4822fc);if(_0x3cb560['has'](_0x3d0a1e)){const _0xbdbcae=_0x3cb560['get'](_0x3d0a1e);_0x428991['has'](_0x3d0a1e)||_0x428991['set'](_0x3d0a1e,{..._0xbdbcae}),_0x16d2e5['set'](_0x3d0a1e,{..._0xbdbcae});}}}for(const _0x4177ba of _0x428991['keys']())_0x4177ba>=this['_startingRevisionId']&&_0x428991['delete'](_0x4177ba);const _0x1af14e=new Map();for(const _0x385104 of _0x5a2762){let _0x4e017f=_0x520472['insertions'][_0x385104];for(const _0x252106 of _0x4e017f)if(_0x252106['item']['is']('element','tableCell')){const _0x2022e2=this['_getVidAttributeName'](_0x252106),_0x44e8ad=_0x252106['item']['getAttribute'](_0x2022e2);if(_0x16d2e5['has'](_0x44e8ad)){const _0x469639=_0x252106['item']['parent']['parent']['getAttribute']('vid_start'),_0x58e846=_0x1af14e['get'](_0x469639)||new Set();_0x58e846['add'](_0x16d2e5['get'](_0x44e8ad)['userId']),_0x1af14e['set'](_0x469639,_0x58e846);}}_0x4e017f=_0x520472['deletions'][_0x385104];for(const _0x350308 of _0x4e017f)if(_0x350308['item']['is']('element','tableCell')){const _0x27c61a=this['_getVidAttributeName'](_0x350308),_0x123598=_0x350308['item']['getAttribute'](_0x27c61a);if(_0x428991['has'](_0x123598)){const _0x488ccc=_0x350308['item']['parent']['parent']['getAttribute']('vid_start'),_0x1bf512=_0x1af14e['get'](_0x488ccc)||new Set();_0x1bf512['add'](_0x428991['get'](_0x123598)['userId']),_0x1af14e['set'](_0x488ccc,_0x1bf512);}}for(const _0x20697c of _0x1af14e['keys']())(_0x16d2e5['has'](_0x20697c)||_0x428991['has'](_0x20697c))&&_0x1af14e['delete'](_0x20697c);}for(const _0x13e563 of _0x5a2762){const _0x3997db=_0x520472['insertions'][_0x13e563];let _0x300466=null,_0xf30e80=null;for(const _0x33afd4 of _0x3997db){const _0x19a698=this['_getVidAttributeName'](_0x33afd4),_0x1c6ee3=_0x33afd4['item']['getAttribute'](_0x19a698),_0x421860=_0x1af14e['get'](_0x1c6ee3);_0x421860&&'elementStart'==_0x33afd4['type']&&(_0x300466=Array['from'](_0x421860)[0x0],_0xf30e80=_0x33afd4['item']['getAttribute']('vid_end')),_0x300466&&(_0x428991['set'](_0x1c6ee3,{'userId':_0x300466}),_0x16d2e5['set'](_0x1c6ee3,{'userId':_0x300466})),_0x1c6ee3==_0xf30e80&&(_0x300466=null,_0xf30e80=null);}}const _0x2a8c72={},_0x4100fc=new Set();for(const _0x4ca575 of _0x5a2762){const _0x55d3b5=_0x4e0ac3['deletions'][_0x4ca575],_0x281f5c=_0x4e0ac3['insertions'][_0x4ca575];for(const {userId:_0x2f768b}of this['_touchedMarkers']['values']())null!==_0x2f768b&&_0x4100fc['add'](_0x2f768b);for(const {userId:_0x122914}of this['_touchedRoots']['values']())null!==_0x122914&&_0x4100fc['add'](_0x122914);this['_markChanges'](_0x281f5c,_0x520472['insertions'][_0x4ca575],_0x16d2e5,'insertion',_0x4100fc),this['_markChanges'](_0x55d3b5,_0x520472['deletions'][_0x4ca575],_0x428991,'deletion',_0x4100fc),_0x2a8c72[_0x4ca575]={'insertions':this['_prepareViewToSave'](_0x281f5c),'deletions':this['_prepareViewToSave'](_0x55d3b5),'attachChange':this['_touchedRoots']['get'](_0x4ca575)||null,'attributesBefore':_0x1fabc1(this['_baseRootsAttributes']['get'](_0x4ca575))||{},'attributesAfter':_0x1fabc1(this['_diffRootsAttributes']['get'](_0x4ca575))};}return{'diffData':_0x2a8c72,'authorsIds':Array['from'](_0x4100fc)};}['_processRootBeforeSave'](_0x574d63){for(const [,_0x2e02bf]of _0x574d63['markers']){const _0x56353b=_0x2e02bf['start']['getAncestors']()['filter'](_0x269ed4=>'tableCell'==_0x269ed4['name']);for(const _0x565d46 of _0x56353b)0x1==_0x565d46['childCount']&&_0x565d46['getChild'](0x0)['is']('element','paragraph')&&_0x565d46['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x6580fd){this['_processRootBeforeSave'](_0x6580fd);const _0x555c8f=this['editor']['data']['toView'](_0x6580fd,{}),_0x41b92a=Array['from'](_0x555c8f['getChildren']())['map'](_0x3a62f2=>this['_getViewJson'](_0x3a62f2));return JSON['stringify'](_0x41b92a);}['_getViewJson'](_0xb15827){if(_0xb15827['is']('$text'))return _0xb15827['data'];{const _0x476967=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x54c626=_0xb15827,_0x1e1319=this['editor']['data']['htmlProcessor']['domConverter'],_0x9d125e={'type':_0x476967['_getTypeCharForViewElement'](_0x54c626),'name':_0x54c626['name'],'attributes':Array['from'](_0x54c626['getAttributes']()),'children':Array['from'](_0x54c626['getChildren']())['map'](_0x31d848=>this['_getViewJson'](_0x31d848))};if(_0xb15827['is']('uiElement')&&'$comment'!=_0xb15827['name']){const _0x100ed1=_0xb15827['render'](_0x1e1319['domDocument'],_0x1e1319);_0x9d125e['children']['push'](_0x100ed1['outerHTML']);}else{if(_0xb15827['is']('rawElement')){const _0x4f30ca=_0x1e1319['domDocument']['createElement'](_0x54c626['name']);_0xb15827['render'](_0x4f30ca,_0x1e1319),_0x9d125e['children']['push'](_0x4f30ca['innerHTML']);}}const _0x261abf=Array['from'](_0x54c626['getCustomProperties']());_0x261abf['length']>0x0&&(_0x9d125e['customProperties']=_0x261abf);const _0x5e41ad=_0x54c626['getFillerOffset']();return null!==_0x5e41ad&&(_0x9d125e['fillerOffset']=_0x5e41ad),_0x9d125e;}}['_markChanges'](_0x246c04,_0x2bbc22,_0x2ffaac,_0x567137,_0x1f3a81){let _0x20defa=null,_0x477ed1=null,_0x16b910=0x0;const _0x1370ac=this['editor']['model'];for(let _0x2361c5=0x0;_0x2361c5<_0x2bbc22['length'];_0x2361c5++){const _0x5cb0b2=this['_getVidAttributeName'](_0x2bbc22[_0x2361c5]),_0x112243=_0x2bbc22[_0x2361c5]['item']['getAttribute'](_0x5cb0b2),_0x3bd699=_0x2ffaac['get'](_0x112243),_0x170cd2=_0x2361c5==_0x2bbc22['length']-0x1;(!_0x20defa&&_0x3bd699&&(_0x20defa=_0x3bd699,_0x477ed1=_0x2bbc22[_0x2361c5]),_0x20defa&&(!_0x3bd699||_0x3bd699['userId']!=_0x20defa['userId']))&&(_0x62978a(_0x3bd699,P(_0x477ed1,_0x246c04,_0x1370ac),P(_0x2bbc22[_0x2361c5],_0x246c04,_0x1370ac)),_0x20defa=_0x3bd699||null,_0x477ed1=_0x3bd699?_0x2bbc22[_0x2361c5]:null),_0x20defa&&_0x170cd2&&_0x62978a(_0x3bd699,P(_0x477ed1,_0x246c04,_0x1370ac),V(_0x2bbc22[_0x2361c5],_0x246c04,_0x1370ac));}function _0x62978a(_0x1f7776,_0x169d1b,_0x2377b0){const _0x528ba4=_0x20defa['userId'],_0x35b8f4='revision:'+_0x567137+':'+_0x528ba4+':'+_0x16b910++,_0x2b91fa=_0x1370ac['createRange'](_0x169d1b,_0x2377b0);_0x246c04['markers']['set'](_0x35b8f4,_0x2b91fa),null!==_0x528ba4&&_0x1f3a81['add'](_0x528ba4);}}['_getVidAttributeName'](_0x31435f){switch(_0x31435f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4d2863,_0x58a57c){_0x4d2863['baseVersion']=null;for(const _0x13b3eb in _0x4d2863){const _0x5e4f5b=_0x4d2863[_0x13b3eb];if(_0x5e4f5b instanceof at){const _0x4e1112=_0x58a57c['get'](_0x5e4f5b['root']['rootName']);_0x4d2863[_0x13b3eb]=this['_fixPosition'](_0x5e4f5b,_0x4e1112);}if(_0x5e4f5b instanceof rt){const _0x356088=_0x58a57c['get'](_0x5e4f5b['root']['rootName']);_0x4d2863[_0x13b3eb]=this['_fixRange'](_0x5e4f5b,_0x356088);}'root'===_0x13b3eb&&(_0x4d2863['root']=_0x58a57c['get'](_0x4d2863['root']['rootName']));}}['_fixRange'](_0x54834e,_0x4b8c0e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x54834e['start'],_0x4b8c0e),this['_fixPosition'](_0x54834e['end'],_0x4b8c0e));}['_fixPosition'](_0x228421,_0x27731d){return this['editor']['model']['createPositionFromPath'](_0x27731d,_0x228421['path'],_0x228421['stickiness']);}['_handleInsertOperation'](_0x2ca303){const _0x4fbdc7=this['_idsRoots']['get'](_0x2ca303['position']['root']['rootName']),_0x373e39=this['_fixPosition'](_0x2ca303['position'],_0x4fbdc7),_0x34921b=null===_0x2ca303['_authorId']?null:_0x2ca303['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x380554=_0x373e39['parent'],_0x412fcd=this['_revisionId'],_0x2b07ba=[];for(const _0x60f868 of _0x2ca303['nodes'])if(_0x60f868['is']('element'))_0x2b07ba['push'](this['_makeIdsRoot'](_0x60f868));else{for(let _0x5e1a04=0x0;_0x5e1a04<_0x60f868['offsetSize'];_0x5e1a04++)_0x2b07ba['push'](new nt('$text',{'vid':this['_revisionId']++}));}const _0x2aac0b=this['_revisionId'];for(let _0x13d324=_0x412fcd;_0x13d324<_0x2aac0b;_0x13d324++)this['_touched']['set'](_0x13d324,{'userId':_0x34921b});_0x380554['_insertChild'](_0x373e39['offset'],_0x2b07ba);}['_handleMoveOperation'](_0xf870cc){(_0xf870cc=this['_cloneOperation'](_0xf870cc,this['_idsRoots']))['_execute']();const _0x590ff3=null===_0xf870cc['_authorId']?null:_0xf870cc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40945d=_0xf870cc['getMovedRangeStart'](),_0x142860=_0x40945d['parent'],_0x452108=_0x40945d['offset'];!function _0x472dd8(_0x390049,_0x406fde,_0x39649d,_0x2a9451){for(let _0x3eeab4=_0x39649d;_0x3eeab4<_0x2a9451;_0x3eeab4++){const _0x9d21b1=_0x406fde['getChild'](_0x3eeab4);_0x9d21b1['is']('element','$text')?_0x390049['set'](_0x9d21b1['getAttribute']('vid'),{'userId':_0x590ff3}):(_0x390049['set'](_0x9d21b1['getAttribute']('vid_start'),{'userId':_0x590ff3}),_0x472dd8(_0x390049,_0x9d21b1,0x0,_0x9d21b1['childCount']),_0x390049['set'](_0x9d21b1['getAttribute']('vid_end'),{'userId':_0x590ff3}));}}(this['_touched'],_0x142860,_0x452108,_0x452108+_0xf870cc['howMany']);}['_handleMergeOperation'](_0x1ef35c){const _0x295040=null===(_0x1ef35c=this['_cloneOperation'](_0x1ef35c,this['_idsRoots']))['_authorId']?null:_0x1ef35c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42541a=_0x1ef35c['targetPosition']['parent'],_0x3061c8=_0x1ef35c['sourcePosition']['parent'],_0x18a151=_0x42541a['getAttribute']('vid_end'),_0x3a6d1c=_0x3061c8['getAttribute']('vid_start');_0x42541a['_setAttribute']('vid_end',_0x3061c8['getAttribute']('vid_end')),_0x3061c8['_setAttribute']('vid_end',_0x18a151),this['_touched']['set'](_0x3a6d1c,{'userId':_0x295040}),this['_touched']['set'](_0x18a151,{'userId':_0x295040}),_0x1ef35c['_execute']();}['_handleSplitOperation'](_0x26ddf4){const _0x3624ba=null===(_0x26ddf4=this['_cloneOperation'](_0x26ddf4,this['_idsRoots']))['_authorId']?null:_0x26ddf4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54d291=_0x26ddf4['graveyardPosition'],_0x231637=_0x26ddf4['splitPosition']['parent'];_0x26ddf4['_execute']();const _0x1c81e9=_0x231637['getAttribute']('vid_end'),_0x4a4582=_0x26ddf4['insertionPosition']['nodeAfter'];if(_0x54d291){const _0x1e237a=_0x4a4582['getAttribute']('vid_end'),_0x24a0fa=_0x231637['getAttribute']('vid_end');_0x231637['_setAttribute']('vid_end',_0x1e237a),_0x4a4582['_setAttribute']('vid_end',_0x24a0fa),this['_touched']['set'](_0x231637['getAttribute']('vid_end'),{'userId':_0x3624ba}),this['_touched']['set'](_0x4a4582['getAttribute']('vid_start'),{'userId':_0x3624ba});}else{const _0x26c2b5=this['_revisionId']++,_0x403a04=this['_revisionId']++;_0x231637['_setAttribute']('vid_end',_0x26c2b5),_0x4a4582['_setAttribute']('vid_start',_0x403a04),_0x4a4582['_setAttribute']('vid_end',_0x1c81e9),this['_touched']['set'](_0x26c2b5,{'userId':_0x3624ba}),this['_touched']['set'](_0x403a04,{'userId':_0x3624ba});}}['_handleMarkerOperation'](_0x3e5f9f){if(!_0x3e5f9f['affectsData'])return;const _0x383b15=(_0x3e5f9f=this['_cloneOperation'](_0x3e5f9f,this['_diffRoots']))['oldRange']?_0x3e5f9f['oldRange']['root']:null,_0x4ef6a3=_0x3e5f9f['newRange']?_0x3e5f9f['newRange']['root']:null;_0x383b15&&this['_markers']['delete'](_0x3e5f9f['name']),_0x4ef6a3&&this['_markers']['set'](_0x3e5f9f['name'],_0x3e5f9f['newRange']['clone']());const _0x47971f=null===_0x3e5f9f['_authorId']?null:_0x3e5f9f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x149ffd=_0x3e5f9f['name'];if(!this['_touchedMarkers']['has'](_0x149ffd))return void this['_touchedMarkers']['set'](_0x149ffd,{'range':_0x3e5f9f['oldRange'],'userId':_0x47971f});const _0x164b95=this['_touchedMarkers']['get'](_0x149ffd),_0x55b143=_0x164b95['range'],_0x31c406=_0x3e5f9f['newRange'];null==_0x55b143&&null==_0x31c406||_0x55b143&&_0x31c406&&_0x55b143['isEqual'](_0x31c406)?this['_touchedMarkers']['delete'](_0x3e5f9f['name']):_0x164b95['userId']=_0x47971f;}['_handleRootOperation'](_0x4f184d,_0x345c1a){this['_diffRoots']['has'](_0x4f184d['rootName'])?this['_diffRoots']['get'](_0x4f184d['rootName'])['_isAttached']=_0x4f184d['isAdd']:(this['_diffRoots']['set'](_0x4f184d['rootName'],N(_0x4f184d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4f184d['rootName'],{}),_0x345c1a&&this['_idsRoots']['set'](_0x4f184d['rootName'],N(_0x4f184d['rootName'],!0x0)));const _0x2b5aa8=null===_0x4f184d['_authorId']?null:_0x4f184d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29c289=this['_touchedRoots']['get'](_0x4f184d['rootName']);_0x29c289&&_0x29c289['userId']===_0x2b5aa8?this['_touchedRoots']['delete'](_0x4f184d['rootName']):this['_touchedRoots']['set'](_0x4f184d['rootName'],{'userId':_0x2b5aa8,'isAttached':_0x4f184d['isAdd']});}['_handleRootAttributeOperation'](_0x2a47fd){const _0x220665=this['_diffRootsAttributes']['get'](_0x2a47fd['root']['rootName']);null===_0x2a47fd['newValue']?delete _0x220665[_0x2a47fd['key']]:_0x220665[_0x2a47fd['key']]=_0x2a47fd['newValue'];}}function x(_0x1de38d){const _0x18b416=N(_0x1de38d['rootName'],_0x1de38d['isAttached']());for(const _0x4f6886 of _0x1de38d['getChildren']()){const _0x59104b=_0x4f6886['_clone'](!0x0);_0x18b416['_appendChild'](_0x59104b);}return _0x18b416;}function N(_0x6130d6,_0x5db180=!0x0){const _0x354589=new ht();return _0x354589['rootName']=_0x6130d6,_0x354589['_isAttached']=_0x5db180,_0x354589['isAttached']=()=>_0x354589['_isAttached'],_0x354589;}function P(_0x2d6273,_0x5f3cf0,_0x5dc9eb){const _0x363e94='elementEnd'==_0x2d6273['type']?_0x5dc9eb['createPositionAt'](_0x2d6273['item'],'end'):_0x5dc9eb['createPositionBefore'](_0x2d6273['item']);return _0x5dc9eb['createPositionFromPath'](_0x5f3cf0,_0x363e94['path'],_0x363e94['stickiness']);}function V(_0x1fc6b6,_0x99c709,_0x277c89){const _0x28d904='elementStart'==_0x1fc6b6['type']?_0x277c89['createPositionAt'](_0x1fc6b6['item'],0x0):_0x277c89['createPositionAfter'](_0x1fc6b6['item']);return _0x277c89['createPositionFromPath'](_0x99c709,_0x28d904['path'],_0x28d904['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x26b56e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x54db2e){super(),this['id']=_0x54db2e['id']||_0x173cdc(),this['author']=_0x54db2e['author'],this['type']=_0x54db2e['type'],this['data']=_0x54db2e['data']||{},this['rootName']=_0x54db2e['rootName'],this['set']('createdAt',_0x54db2e['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x486a77,_0x3f92a7){this['newRevisionId']=_0x486a77,this['oldRevisionId']=_0x3f92a7,this['changes']=new _0x28f4f5();}['_setChanges'](_0x2d80e3){for(const _0x39e5b8 of _0x2d80e3)this['changes']['add'](_0x39e5b8);}}class l extends _0x1973ac{['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[_0x4a7029,_0x5f3da8,S,$];}constructor(_0x27eb68){super(_0x27eb68),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',(_0x1d8393,_0x19789f,_0x1f2a2d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x336746=>{for(const _0x31583b of this['editor']['editing']['view']['document']['roots'])_0x1f2a2d?_0x336746['removeClass']('ck-editor__editable__overlay',_0x31583b):_0x336746['addClass']('ck-editor__editable__overlay',_0x31583b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xb7211e=>null!==_0xb7211e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x39d34c,_0x714008,_0x424ca7)=>_0x39d34c&&_0x424ca7?_0x714008['changes']['getIndex'](_0x424ca7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1a2670,_0x385262)=>_0x1a2670?_0x385262['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5f3da8);}['init'](){const _0x48f338=this['editor'],_0x103c7c=new lt(_0x48f338,{'direction':'backward'}),_0x992a28=new lt(_0x48f338,{'direction':'forward'});(_0x48f338['commands']['add']('showPreviousChange',_0x103c7c),_0x48f338['commands']['add']('showNextChange',_0x992a28),_0x48f338['commands']['add']('restoreRevision',new ut(_0x48f338)),this['on']('change:numberOfChanges',()=>{_0x103c7c['refresh'](),_0x992a28['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x48f338['enableReadOnlyMode']('revision-viewer'),_0x48f338['plugins']['has']('WidgetToolbarRepository'))&&_0x48f338['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5d5910){return await this['_utils']['loadRevisionData'](_0x5d5910,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5d5910);}async['getRevisionRootsAttributes'](_0x40e639){return await this['_utils']['loadRevisionData'](_0x40e639,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x40e639);}async['compare'](_0x154908,_0x264261,_0x41a342=!0x1){if(!this['isEnabled'])return;const _0x27c020=this['diff'],_0x459308=this['repository'],_0x299b48='string'==typeof _0x154908?_0x459308['getRevision'](_0x154908):_0x154908,_0x123458='string'==typeof _0x264261?_0x459308['getRevision'](_0x264261):_0x264261,_0x1d6dd2=_0x299b48['id'],_0xc65a48=_0x123458?_0x123458['id']:null;if(!_0x41a342&&this['diff']&&this['diff']['newRevisionId']===_0x1d6dd2&&this['diff']['oldRevisionId']===_0xc65a48)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x1d6dd2,_0xc65a48);const _0x3019bc=this['_getRevisionsRange'](_0x299b48,_0x123458,!0x0)['map'](_0x590d9b=>this['_utils']['loadRevisionData'](_0x590d9b,this['adapter']));return _0x3019bc['push'](new Promise(_0x2c41fd=>{setTimeout(_0x2c41fd,0x14);})),Promise['all'](_0x3019bc)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1b2a14=this['_getDiff'](_0x1d6dd2,_0xc65a48);for(const _0xc7986f of _0x1b2a14['changes'])this['_changeIdToChange']['set'](_0xc7986f['id'],_0xc7986f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x18399f=>{for(const _0x423370 of this['editor']['model']['document']['getRootNames']())_0x18399f['detachRoot'](_0x423370);for(const _0x5e9127 of Object['keys'](_0x1b2a14['model'])){const _0x474657=_0x18399f['addRoot'](_0x5e9127);for(const _0x12ba22 of Object['keys'](_0x1b2a14['attributes'][_0x5e9127]))_0x18399f['setAttribute'](_0x12ba22,_0x1b2a14['attributes'][_0x5e9127][_0x12ba22],_0x474657);_0x18399f['insert'](_0x1b2a14['model'][_0x5e9127],_0x474657,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1b2a14['changes'])),this['isReady']=!0x0;})['catch'](_0x6f7d98=>{console['error'](_0x6f7d98),this['_cleanUp'](),_0x27c020&&(this['diff']=_0x27c020),this['isReady']=!0x0;});}['addRevisionData'](_0x2752bd,_0xde2f43){const _0x4b7577=this['repository']['createRevision'](_0x2752bd);return _0x4b7577['on']('_update',(_0xa872b6,_0x19b298,_0x2d5e3f)=>_0xde2f43(_0x19b298,_0x2d5e3f,_0x4b7577)),this['repository']['addRevision'](_0x4b7577),_0x4b7577;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4dabf6=>{for(const _0x5578d1 of this['editor']['model']['document']['getRootNames']())_0x4dabf6['detachRoot'](_0x5578d1);});}['_sortAndFilterDiffChanges'](_0x528e2c){const _0x184f8b=[],_0x25b82a=new Map();for(const _0x3d0393 of this['editor']['model']['document']['getRootNames']()){const _0x1c2d98=this['editor']['editing']['view']['getDomRoot'](_0x3d0393);if(!_0x1c2d98)continue;const _0x4e72e1=_0x1c2d98['getClientRects']()['item'](0x0);_0x4e72e1&&(_0x184f8b['push'](_0x3d0393),_0x25b82a['set'](_0x3d0393,_0x4e72e1));}return _0x184f8b['sort']((_0x131f39,_0x585a03)=>{const _0x6c13ad=_0x25b82a['get'](_0x131f39),_0x1d9515=_0x25b82a['get'](_0x585a03);return _0x6c13ad['y']-_0x1d9515['y']||_0x6c13ad['x']-_0x1d9515['x'];}),(_0x528e2c=_0x528e2c['filter'](_0x4a8218=>_0x184f8b['includes'](_0x4a8218['rootName'])))['sort']((_0x2ccb12,_0x5c7e09)=>_0x184f8b['indexOf'](_0x2ccb12['rootName'])-_0x184f8b['indexOf'](_0x5c7e09['rootName'])),_0x528e2c;}['_makeTape'](_0x556193){const _0x2642a2=Array['from'](_0x556193['markers'])['filter'](([_0x4ed5fb,_0x2604a9])=>_0x4ed5fb['startsWith']('revision:')&&!_0x2604a9['isCollapsed']),_0xf537ad=Array['from'](this['editor']['model']['createRangeIn'](_0x556193)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2642a2['length'])for(const _0xc2d839 of _0xf537ad){const [_0x385023,_0x5717a7]=_0x2642a2[0x0],[,_0x36be9a,_0x2327dd]=_0x385023['split'](':');if(_0x5717a7['end']['isEqual'](_0xc2d839['nextPosition'])&&_0x2642a2['shift'](),(_0xc2d839['previousPosition']['isEqual'](_0x5717a7['start'])||_0xc2d839['previousPosition']['isAfter'](_0x5717a7['start']))&&('insertion'==_0x36be9a?_0xc2d839['isAdded']={'userId':_0x2327dd}:'deletion'==_0x36be9a&&(_0xc2d839['isRemoved']={'userId':_0x2327dd})),0x0==_0x2642a2['length'])break;}return _0xf537ad;}['_refreshStartEndIndex'](_0x52dbb0){const _0x1bc1f6=new Map();for(let _0x359905=0x0;_0x359905<_0x52dbb0['length'];_0x359905++)'text'===_0x52dbb0[_0x359905]['type']?(_0x52dbb0[_0x359905]['item']['startIndex']=_0x359905,_0x52dbb0[_0x359905]['item']['endIndex']=_0x359905):('elementStart'===_0x52dbb0[_0x359905]['type']?_0x52dbb0[_0x359905]['item']['startIndex']=_0x359905:'elementEnd'===_0x52dbb0[_0x359905]['type']&&(_0x52dbb0[_0x359905]['item']['endIndex']=_0x359905),_0x1bc1f6['set'](_0x52dbb0[_0x359905]['id'],_0x359905));for(const _0x24ccfd of _0x1bc1f6['values']())'elementStart'===_0x52dbb0[_0x24ccfd]['type']?_0x52dbb0[_0x24ccfd]['item']['endIndex']=_0x1bc1f6['get'](_0x52dbb0[_0x24ccfd]['pairId']):'elementEnd'===_0x52dbb0[_0x24ccfd]['type']&&(_0x52dbb0[_0x24ccfd]['item']['startIndex']=_0x1bc1f6['get'](_0x52dbb0[_0x24ccfd]['pairId']));}['_processTape'](_0x15fe28){for(let _0x2912f7=0x0;_0x2912f7<_0x15fe28['length'];_0x2912f7++){if('elementStart'===_0x15fe28[_0x2912f7]['type'])_0x15fe28[_0x2912f7]['item']['startIndex']=_0x2912f7;else{if('elementEnd'===_0x15fe28[_0x2912f7]['type']){_0x15fe28[_0x2912f7]['item']['endIndex']=_0x2912f7;const _0x179a6b=_0x15fe28[_0x2912f7]['item']['startIndex'];_0x15fe28[_0x179a6b]['pairId']=_0x15fe28[_0x2912f7]['id'],_0x15fe28[_0x2912f7]['pairId']=_0x15fe28[_0x179a6b]['id'];}else _0x15fe28[_0x2912f7]['item']['startIndex']=_0x2912f7,_0x15fe28[_0x2912f7]['item']['endIndex']=_0x2912f7,_0x15fe28[_0x2912f7]['pairId']=null;}_0x15fe28[_0x2912f7]['markersStart']||(_0x15fe28[_0x2912f7]['markersStart']=[],_0x15fe28[_0x2912f7]['markersEnd']=[]);}}['_markInsertions'](_0x27ac57,_0x110d71){const _0x559705=_0x27ac57['filter'](_0x558137=>!_0x558137['isAdded']);for(let _0x421ca5=0x0;_0x421ca5<_0x110d71['length'];_0x421ca5++)_0x110d71[_0x421ca5]['isAdded']&&(_0x559705[_0x421ca5]['isAdded']=_0x110d71[_0x421ca5]['isAdded']);}['_getDiff'](_0x505078,_0xc8a4b1=null){const _0x4193b7=this['repository']['getRevision'](_0x505078),_0x562238=_0xc8a4b1?this['repository']['getRevision'](_0xc8a4b1):null,_0x449bb3=this['_getRevisionsRange'](_0x4193b7,_0x562238),_0x5e2f93=_0x449bb3[_0x449bb3['length']-0x1],_0x52881a=new Map(),_0x233678={'model':{},'attributes':{},'changes':[]},_0x3c2b32=new Set(),_0xbc4467=new Map();for(let _0xe6ed2d=_0x449bb3['length']-0x1;_0xe6ed2d>=0x0;_0xe6ed2d--){const _0x15ae25=_0x449bb3[_0xe6ed2d];for(const _0x532d2f of Object['keys'](_0x15ae25['diffData']))if(_0x15ae25['diffData'][_0x532d2f]['attachChange']){const _0x343a2a=_0x15ae25['diffData'][_0x532d2f]['attachChange'];_0x343a2a['isAttached']?(_0x3c2b32['add'](_0x532d2f),_0xbc4467['has'](_0x532d2f)&&_0xbc4467['get'](_0x532d2f)['userId']==_0x343a2a['userId']?_0xbc4467['delete'](_0x532d2f):_0xbc4467['set'](_0x532d2f,_0x343a2a)):_0xbc4467['has'](_0x532d2f)?(_0x3c2b32['delete'](_0x532d2f),_0xbc4467['delete'](_0x532d2f)):(_0x3c2b32['add'](_0x532d2f),_0xbc4467['set'](_0x532d2f,_0x343a2a));}else _0x3c2b32['add'](_0x532d2f);}for(const _0x212c1e of _0x3c2b32){const _0x5c4818=_0xbc4467['has'](_0x212c1e)&&!_0xbc4467['get'](_0x212c1e)['isAttached'];let _0x151a5b=_0x5c4818?_0x449bb3['length']-0x1:0x0;const _0x517321=_0x5c4818?-0x1:0x1;for(;_0x449bb3[_0x151a5b];){const _0x323024=_0x449bb3[_0x151a5b];if(_0x323024['diffData'][_0x212c1e]){const _0x268df0=_0x5c4818?_0x323024['diffData'][_0x212c1e]['attributesBefore']:_0x323024['diffData'][_0x212c1e]['attributesAfter'];_0x233678['attributes'][_0x212c1e]=_0x268df0?_0x1fabc1(_0x268df0):{};break;}_0x151a5b+=_0x517321;}}for(const _0x46eb1f of _0x449bb3){_0x46eb1f['model']={};for(const _0x38a722 of _0x46eb1f['authors'])_0x52881a['set'](_0x38a722['id'],_0x38a722);for(const _0x6c06d2 of _0x3c2b32){const _0x401481=_0x46eb1f['diffData'][_0x6c06d2]?_0x46eb1f['diffData'][_0x6c06d2]['insertions']:'[]',_0x2f6198=_0x46eb1f['diffData'][_0x6c06d2]?_0x46eb1f['diffData'][_0x6c06d2]['deletions']:'[]';_0x46eb1f['model'][_0x6c06d2]={'insertions':this['_utils']['_makeModelFromViewString'](_0x401481),'deletions':this['_utils']['_makeModelFromViewString'](_0x2f6198)};}}for(const _0x112e35 of _0x3c2b32){let _0x5c1acf=null,_0x16b046=0x0;const _0x599c0d=new Map(Array['from'](_0x4193b7['model'][_0x112e35]['insertions']['markers'])['filter'](([_0x55db09])=>!_0x55db09['startsWith']('revision:')));let _0x342e63=0x0;for(const _0x2752ac of _0x449bb3){const _0x178e41=this['_makeTape'](_0x2752ac['model'][_0x112e35]['insertions']);_0x2752ac==_0x4193b7?(_0x5c1acf=_0x178e41,_0x16b046=_0x5c1acf['length'],_0x5c1acf['forEach'](_0x33db7c=>{_0x33db7c['id']=_0x342e63++;}),this['_processTape'](_0x5c1acf)):this['_markInsertions'](_0x5c1acf,_0x178e41);const _0x922093=_0x5c1acf['filter'](_0x19c18e=>!_0x19c18e['isAdded'])['map'](_0x47f1fe=>_0x47f1fe['id']);let _0x49115f=0x0;const _0x48120f=this['_makeTape'](_0x2752ac['model'][_0x112e35]['deletions']);_0x48120f['forEach'](_0x4152a4=>{_0x4152a4['isRemoved']?_0x4152a4['id']=_0x16b046++:_0x4152a4['id']=_0x922093[_0x49115f++];}),this['_processTape'](_0x48120f),this['_setDistance'](_0x5c1acf,'isAdded'),this['_setDistance'](_0x48120f,'isRemoved'),_0x2752ac==_0x4193b7&&this['_markMarkers'](_0x5c1acf,_0x599c0d),_0x5c1acf=this['_joinTapes'](_0x5c1acf,_0x48120f),this['_refreshStartEndIndex'](_0x5c1acf),this['_setDistance'](_0x5c1acf,'isRemoved');}_0x5c1acf=_0x5c1acf['filter'](_0x294ebd=>!(_0x294ebd['isAdded']&&_0x294ebd['isRemoved']));const _0x59e287=new Map(_0x5e2f93['model'][_0x112e35]['deletions']['markers']),_0x3c9e4f=new Set(_0x599c0d['keys']());for(const _0x17c064 of _0x59e287['keys']())_0x3c9e4f['delete'](_0x17c064);this['_markSuggestions'](_0x5c1acf,_0x3c9e4f),this['_fixObsoleteTags'](_0x5c1acf),_0x5c1acf=this['_removeMissingPairs'](_0x5c1acf),_0x5c1acf=this['_markMismatchedRemovedTags'](_0x5c1acf),_0x5c1acf=this['_removeUnsupportedChanges'](_0x5c1acf);const {root:_0x51bfa6,changes:_0x278005}=this['_makeModelFromTape'](_0x5c1acf,_0x52881a,_0x112e35);_0x233678['model'][_0x112e35]=_0x51bfa6;const _0x5c09e8=_0xbc4467['get'](_0x112e35);if(_0x5c09e8){const _0x3c5a7b=_0x52881a['get'](_0x5c09e8['userId']),_0x5b0fff=new G({'author':_0x3c5a7b,'type':_0x5c09e8['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x112e35});_0x278005['unshift'](_0x5b0fff),_0x233678['attributes'][_0x112e35]['revisionHistoryAttachChange']=_0x5b0fff['id'];}_0x233678['changes']=_0x233678['changes']['concat'](_0x278005);}return _0x233678;}['_markMarkers'](_0x1ffb51,_0x54a2cf){for(let _0x2a80ef=0x0;_0x2a80ef<_0x1ffb51['length'];_0x2a80ef++)for(const [_0xfb8853,_0x533be7]of _0x54a2cf)!_0x533be7['isCollapsed']&&_0x533be7['start']['isEqual'](_0x1ffb51[_0x2a80ef]['previousPosition'])&&_0x1ffb51[_0x2a80ef]['markersStart']['push'](_0xfb8853),_0x533be7['end']['isEqual'](_0x1ffb51[_0x2a80ef]['nextPosition'])&&_0x1ffb51[_0x2a80ef]['markersEnd']['push'](_0xfb8853);}['_joinTapes'](_0x3f2a01,_0x427f2a){let _0x594d60=[],_0x39abd0=0x0,_0x52e50e=0x0;for(;_0x39abd0<_0x3f2a01['length']||_0x52e50e<_0x427f2a['length'];){const _0x522c84=_0x3f2a01[_0x39abd0]||{},_0x419e97=_0x427f2a[_0x52e50e]||{};if(_0x522c84['id']==_0x419e97['id'])_0x39abd0++,_0x52e50e++,_0x594d60['push'](_0x522c84);else{if(_0x419e97['isRemoved']&&_0x522c84['isAdded']){const {commonTape:_0x4975e1,iEnd:_0x3e8890,jEnd:_0x25a41b}=this['_threeWayMerge'](_0x3f2a01,_0x39abd0,_0x427f2a,_0x52e50e);_0x594d60=_0x594d60['concat'](_0x4975e1),_0x39abd0=_0x3e8890,_0x52e50e=_0x25a41b;}else _0x419e97['isRemoved']?(_0x52e50e++,_0x594d60['push'](_0x419e97)):(_0x39abd0++,_0x594d60['push'](_0x522c84));}}return _0x594d60;}['_markSuggestions'](_0x3e5eae,_0x8aa3f2){const _0xe77d0b=[];for(let _0x4266ff=0x0;_0x4266ff<_0x3e5eae['length'];_0x4266ff++){for(let _0x2b6e0b=0x0;_0x2b6e0b<_0x3e5eae[_0x4266ff]['markersStart']['length'];_0x2b6e0b++){const _0x2059c9=_0x3e5eae[_0x4266ff]['markersStart'][_0x2b6e0b];if(!_0x8aa3f2['has'](_0x2059c9))continue;const {group:_0x16ef60,type:_0x4d8070,authorId:_0x2fc62e}=_0xec841d(_0x2059c9);'revision-suggestion'!=_0x16ef60||'insertion'!=_0x4d8070&&'deletion'!=_0x4d8070||(_0xe77d0b['unshift']({'type':_0x4d8070,'name':_0x2059c9,'userId':_0x2fc62e}),_0x3e5eae[_0x4266ff]['markersStart']['splice'](_0x2b6e0b,0x1),_0x2b6e0b--);}_0x29ca3d(_0x3e5eae[_0x4266ff]);for(let _0x49da84=0x0;_0x49da84<_0x3e5eae[_0x4266ff]['markersEnd']['length'];_0x49da84++){const _0x2f26a4=_0x3e5eae[_0x4266ff]['markersEnd'][_0x49da84];if(!_0x8aa3f2['has'](_0x2f26a4))continue;const {group:_0x36b906,type:_0x40b20a}=_0xec841d(_0x2f26a4);if('revision-suggestion'!=_0x36b906||'insertion'!=_0x40b20a&&'deletion'!=_0x40b20a)continue;_0x3e5eae[_0x4266ff]['markersEnd']['splice'](_0x49da84,0x1),_0x49da84--;const _0x3f0ab8=_0xe77d0b['findIndex'](_0x3ba6a9=>_0x3ba6a9['name']==_0x2f26a4);_0x3f0ab8>-0x1&&_0xe77d0b['splice'](_0x3f0ab8,0x1);}}function _0xec841d(_0x1a01fb){const _0x5e0842=_0x1a01fb['split'](':');return{'group':_0x5e0842[0x0],'type':_0x5e0842[0x1],'subType':_0x5e0842['length']>=0x5?_0x5e0842[0x2]:null,'id':_0x5e0842['length']<0x5?_0x5e0842[0x2]:_0x5e0842[0x3],'authorId':_0x5e0842['length']<0x5?_0x5e0842[0x3]:_0x5e0842[0x4],'markerCount':0x6==_0x5e0842['length']?_0x5e0842[0x5]:null};}function _0x29ca3d(_0x1344c3){for(let _0x54fa66=0x0;_0x54fa66<_0xe77d0b['length'];_0x54fa66++){if(_0x1344c3['isAdded']&&'insertion'==_0xe77d0b[_0x54fa66]['type']&&_0x1344c3['isAdded']['userId']==_0xe77d0b[_0x54fa66]['userId'])return _0x1344c3['isAddSuggestion']=_0xe77d0b[_0x54fa66],void delete _0x1344c3['isAdded'];if(!_0x1344c3['isAdded']&&!_0x1344c3['isRemoved']&&'deletion'==_0xe77d0b[_0x54fa66]['type'])return void(_0x1344c3['isRemoveSuggestion']=_0xe77d0b[_0x54fa66]);}}}['_setDistance'](_0x1960d2,_0x40421c){let _0x4c72f0=0x0,_0x2154bf=!0x1;const _0x218a5b=new Map();for(const _0x178fa9 of _0x1960d2)_0x178fa9[_0x40421c]?_0x2154bf&&(_0x4c72f0++,_0x2154bf=!0x1):(_0x4c72f0++,_0x2154bf=!0x0),_0x218a5b['set'](_0x178fa9['id'],_0x4c72f0);for(let _0x1bd0c0=0x0;_0x1bd0c0<_0x1960d2['length'];_0x1bd0c0++){if('isRemoved'==_0x40421c&&_0x1960d2[_0x1bd0c0]['isAdded']||'isAdded'==_0x40421c&&_0x1960d2[_0x1bd0c0]['isRemoved'])continue;if('text'==_0x1960d2[_0x1bd0c0]['type']){_0x1960d2[_0x1bd0c0]['distance']=0x0;continue;}const _0x47d63b=_0x218a5b['get'](_0x1960d2[_0x1bd0c0]['pairId']),_0x4ff757=_0x218a5b['get'](_0x1960d2[_0x1bd0c0]['id']);_0x1960d2[_0x1bd0c0]['distance']=_0x47d63b-_0x4ff757;}}['_getRevisionsRange'](_0x251af8,_0x5af19c,_0x12b242=!0x1){const _0x3f95db=[];let _0x43916b=this['repository']['getIndex'](_0x251af8),_0x368c4c=this['repository']['getIndex'](_0x5af19c);for(-0x1==_0x368c4c&&(_0x368c4c=this['repository']['_revisions']['length'],_0x12b242=!0x1);_0x43916b<_0x368c4c;)_0x3f95db['push'](this['repository']['getRevision'](_0x43916b)),_0x43916b++;return _0x12b242&&_0x3f95db['push'](this['repository']['getRevision'](_0x43916b)),_0x3f95db;}['_threeWayMerge'](_0x330040,_0x5ae9cf,_0x41f4ee,_0xc0defa){const _0x29d1e1=this['editor']['model']['schema'];let _0x18907b=_0x5ae9cf;for(;_0x330040[_0x18907b]&&_0x330040[_0x18907b]['isAdded'];)_0x18907b++;let _0x3d842e=_0xc0defa;for(;_0x41f4ee[_0x3d842e]&&_0x41f4ee[_0x3d842e]['isRemoved'];)_0x3d842e++;_0xb75b57(_0x330040,_0x5ae9cf,_0x18907b),_0xb75b57(_0x41f4ee,_0xc0defa,_0x3d842e);const _0x5385ac=_0x41f4ee['slice'](_0xc0defa,_0x3d842e)['concat'](_0x330040['slice'](_0x5ae9cf,_0x18907b));return _0x5385ac['sort']((_0x232e71,_0x48277f)=>_0x232e71['side']!=_0x48277f['side']?_0x232e71['side']-_0x48277f['side']:_0x232e71['level']!=_0x48277f['level']?_0x232e71['level']-_0x48277f['level']:_0x232e71['distance']!=_0x48277f['distance']?_0x48277f['distance']-_0x232e71['distance']:!!_0x232e71['isAdded']!=!!_0x48277f['isAdded']?-0x1==_0x232e71['side']||0x0==_0x232e71['side']?_0x232e71['isAdded']?-0x1:0x1:_0x232e71['isAdded']?0x1:-0x1:_0x232e71['index']-_0x48277f['index']),{'commonTape':_0x5385ac,'iEnd':_0x18907b,'jEnd':_0x3d842e};function _0xb75b57(_0x13f6da,_0x2a5433,_0x2de2a4){let _0x279241=-0x1,_0x527102=Number['POSITIVE_INFINITY'],_0x2b8cee=!0x0;for(let _0x2a8d47=_0x2a5433;_0x2a8d47<_0x2de2a4;_0x2a8d47++)if(_0x29d1e1['isInline'](_0x13f6da[_0x2a8d47]['item'])||(_0x2b8cee=!0x1),_0x13f6da[_0x2a8d47]['item']['startIndex']<_0x2a5433&&(_0x279241=_0x2a8d47),_0x13f6da[_0x2a8d47]['item']['endIndex']>=_0x2de2a4){_0x527102=_0x2a8d47;break;}_0x2b8cee&&(_0x279241=_0x2de2a4-0x1);for(let _0x2e466c=_0x2a5433;_0x2e466c<_0x2de2a4;_0x2e466c++)_0x13f6da[_0x2e466c]['side']=_0x2e466c<=_0x279241?-0x1:_0x2e466c<_0x527102?0x0:0x1,_0x13f6da[_0x2e466c]['index']=_0x2e466c;let _0x1e97c9=0x0;for(let _0x7a153c=_0x2a5433;_0x7a153c<=_0x279241;_0x7a153c++)0x0==_0x13f6da[_0x7a153c]['distance']?_0x13f6da[_0x7a153c]['level']=_0x1e97c9:(_0x1e97c9++,_0x13f6da[_0x7a153c]['level']=_0x1e97c9,_0x1e97c9++);for(let _0x530289=_0x2a5433;_0x530289<_0x2de2a4;_0x530289++)0x0==_0x13f6da[_0x530289]['side']&&(_0x13f6da[_0x530289]['level']=_0x1e97c9);_0x1e97c9=0x0;for(let _0x11e4b7=_0x2de2a4-0x1;_0x11e4b7>=_0x527102;_0x11e4b7--)0x0==_0x13f6da[_0x11e4b7]['distance']?_0x13f6da[_0x11e4b7]['level']=_0x1e97c9:(_0x1e97c9--,_0x13f6da[_0x11e4b7]['level']=_0x1e97c9,_0x1e97c9--);}}['_fixObsoleteTags'](_0xe730e9){const _0x26b091=new Map(),_0x1586ce=this['editor']['model']['schema'];for(let _0x1557d8=0x1;_0x1557d8<_0xe730e9['length'];_0x1557d8++){let _0x8416b2,_0x49d1cd,_0x483cb7;const _0x1e6267=_0xe730e9[_0x1557d8],_0x284da6=_0xe730e9[_0x1557d8-0x1];if('text'==_0x1e6267['type'])continue;if(_0x1e6267['type']!=_0x284da6['type'])continue;if(!_0x1586ce['isBlock'](_0x284da6['item'])||_0x1586ce['isLimit'](_0x284da6['item']))continue;if(!_0x1586ce['isBlock'](_0x1e6267['item'])||_0x1586ce['isLimit'](_0x1e6267['item']))continue;if((_0xe730e9[_0x1557d8]['isAdded']||_0xe730e9[_0x1557d8]['isAddSuggestion'])&&_0xe730e9[_0x1557d8-0x1]['isRemoved'])_0x8416b2=_0xe730e9[_0x1557d8],_0x49d1cd=_0xe730e9[_0x1557d8-0x1],_0x483cb7=_0x1557d8-0x1;else{if(!_0xe730e9[_0x1557d8]['isRemoved']||!_0xe730e9[_0x1557d8-0x1]['isAdded']&&!_0xe730e9[_0x1557d8-0x1]['isAddSuggestion'])continue;_0x8416b2=_0xe730e9[_0x1557d8-0x1],_0x49d1cd=_0xe730e9[_0x1557d8],_0x483cb7=_0x1557d8;}const _0x208030=_0x8416b2['level']==_0x49d1cd['level'],_0x27eeb2=Math['abs'](_0x8416b2['level'])<Math['abs'](_0x49d1cd['level'])&&0x0==_0x49d1cd['distance'];(_0x208030||_0x27eeb2)&&(_0x26b091['set'](_0x49d1cd['id'],_0x8416b2['id']),_0xe730e9['splice'](_0x483cb7,0x1),_0x1557d8--,_0x8416b2['isAdded']=!0x1);}for(let _0x2af459=0x0;_0x2af459<_0xe730e9['length'];_0x2af459++)_0x26b091['has'](_0xe730e9[_0x2af459]['pairId'])&&(_0xe730e9[_0x2af459]['pairId']=_0x26b091['get'](_0xe730e9[_0x2af459]['pairId']));}['_removeMissingPairs'](_0x2b896b){const _0x134f01=new Set(_0x2b896b['map'](_0x382539=>_0x382539['id']));for(let _0x6a7aca=0x0;_0x6a7aca<_0x2b896b['length'];_0x6a7aca++)_0x134f01['has'](_0x2b896b[_0x6a7aca]['pairId'])||0x0==_0x2b896b[_0x6a7aca]['distance']||(_0x2b896b[_0x6a7aca]['isIncorrect']=!0x0);return _0x2b896b['filter'](_0x1e208e=>!_0x1e208e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2e84f4){const _0x5799f7=new Set();for(let _0x26bffb=0x0;_0x26bffb<_0x2e84f4['length'];_0x26bffb++){if(_0x5799f7['has'](_0x2e84f4[_0x26bffb]['id'])&&_0x2e84f4[_0x26bffb]['isRemoved']&&(_0x2e84f4[_0x26bffb]['isIncorrect']=!0x0),_0x2e84f4[_0x26bffb]['isIncorrect'])continue;if(0x0==_0x2e84f4[_0x26bffb]['distance'])continue;if('elementStart'!=_0x2e84f4[_0x26bffb]['type'])continue;if(null==_0x2e84f4[_0x26bffb]['pairId'])continue;let _0x58894d=_0x26bffb+0x1,_0x53ab36=0x0;for(;_0x2e84f4[_0x58894d]['id']!=_0x2e84f4[_0x26bffb]['pairId'];)'elementStart'==_0x2e84f4[_0x58894d]['type']?_0x53ab36++:'elementEnd'==_0x2e84f4[_0x58894d]['type']&&_0x53ab36--,_0x58894d++;if(0x0!=_0x53ab36){if(_0x2e84f4[_0x26bffb]['isRemoved'])_0x2e84f4[_0x26bffb]['isIncorrect']=!0x0;else{for(;_0x58894d!=_0x26bffb;)_0x2e84f4[_0x58894d]['isRemoved']&&0x0!=_0x2e84f4[_0x58894d]['distance']&&(_0x2e84f4[_0x58894d]['isIncorrect']=!0x0,_0x5799f7['add'](_0x2e84f4[_0x58894d]['pairId'])),_0x58894d--;}}}return _0x2e84f4['filter'](_0x339540=>!_0x339540['isIncorrect']);}['_removeUnsupportedChanges'](_0x3a2aae){const _0x53dc87=this['editor']['model']['schema'];for(let _0x16838c=0x0;_0x16838c<_0x3a2aae['length'];_0x16838c++){if(!(_0x3a2aae[_0x16838c]['isAdded']||_0x3a2aae[_0x16838c]['isAddSuggestion']||_0x3a2aae[_0x16838c]['isRemoved']||_0x3a2aae[_0x16838c]['isRemoveSuggestion']))continue;if(0x0==_0x3a2aae[_0x16838c]['distance'])continue;const _0x90dbd7=_0x3a2aae[_0x16838c]['item'];_0x53dc87['isBlock'](_0x90dbd7)||_0x53dc87['isLimit'](_0x90dbd7)||(_0x3a2aae[_0x16838c]['isAdded']&&delete _0x3a2aae[_0x16838c]['isAdded'],_0x3a2aae[_0x16838c]['isAddSuggestion']&&delete _0x3a2aae[_0x16838c]['isAddSuggestion'],_0x3a2aae[_0x16838c]['isRemoveSuggestion']&&delete _0x3a2aae[_0x16838c]['isRemoveSuggestion'],_0x3a2aae[_0x16838c]['isRemoved']&&(_0x3a2aae[_0x16838c]['isIncorrect']=!0x0));}return _0x3a2aae['filter'](_0x5e9ccd=>!_0x5e9ccd['isIncorrect']);}['_makeModelFromTape'](_0x525f77,_0x2bf039,_0x5f22ee){const _0x5342b7=new ht(),_0x4b8d56=[],_0x4c0328=new Map(),_0x5c763f=this['editor']['model'],_0x4c7e8e=_0x5c763f['schema'],_0xc47a9c=[_0x5342b7],_0x318ff6={},_0x1cd8a0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x271b9b=null;const _0xe59c44=[0x0];for(let _0x343ffc=0x0;_0x343ffc<_0x525f77['length'];_0x343ffc++)if('elementStart'===_0x525f77[_0x343ffc]['type']){_0x525f77[_0x343ffc]['previousPosition']=_0x5c763f['createPositionFromPath'](_0x5342b7,_0xe59c44);const _0x3fa9cf=new nt(_0x525f77[_0x343ffc]['item']['name'],_0x525f77[_0x343ffc]['item']['getAttributes']());_0xc47a9c[0x0]['_appendChild'](_0x3fa9cf),_0xe59c44['push'](0x0),_0xc47a9c['unshift'](_0x3fa9cf),_0x525f77[_0x343ffc]['nextPosition']=_0x5c763f['createPositionFromPath'](_0x5342b7,_0xe59c44);}else'elementEnd'===_0x525f77[_0x343ffc]['type']?(_0xc47a9c['shift'](),_0x525f77[_0x343ffc]['previousPosition']=_0x5c763f['createPositionFromPath'](_0x5342b7,_0xe59c44),_0xe59c44['pop'](),_0xe59c44[_0xe59c44['length']-0x1]++,_0x525f77[_0x343ffc]['nextPosition']=_0x5c763f['createPositionFromPath'](_0x5342b7,_0xe59c44)):(_0x525f77[_0x343ffc]['previousPosition']=_0x5c763f['createPositionFromPath'](_0x5342b7,_0xe59c44),_0x271b9b?_0x271b9b['_data']+=_0x525f77[_0x343ffc]['item']['data']:_0x271b9b=new ct(_0x525f77[_0x343ffc]['item']['data'],_0x525f77[_0x343ffc]['item']['getAttributes']()),_0x525f77[_0x343ffc+0x1]&&'text'===_0x525f77[_0x343ffc+0x1]['type']&&_0x1d5adb(_0x271b9b,_0x525f77[_0x343ffc+0x1]['item'])||(_0xc47a9c[0x0]['_appendChild'](_0x271b9b),_0x271b9b=null),_0xe59c44[_0xe59c44['length']-0x1]+=_0x525f77[_0x343ffc]['item']['offsetSize'],_0x525f77[_0x343ffc]['nextPosition']=_0x5c763f['createPositionFromPath'](_0x5342b7,_0xe59c44));for(let _0x5e2f1e=0x0;_0x5e2f1e<_0x525f77['length'];_0x5e2f1e++){const _0x36fd3a=_0x525f77[_0x5e2f1e]['previousPosition'],_0x165a48=_0x525f77[_0x5e2f1e]['nextPosition'];for(const _0x355010 of _0x525f77[_0x5e2f1e]['markersStart'])_0x4c0328['set'](_0x355010,{'start':_0x36fd3a,'end':null});_0x43bcd0('isRemoveSuggestion',_0x5e2f1e,_0x36fd3a,_0x165a48),_0x43bcd0('isAddSuggestion',_0x5e2f1e,_0x36fd3a,_0x165a48),_0x43bcd0('isRemoved',_0x5e2f1e,_0x36fd3a,_0x165a48),_0x43bcd0('isAdded',_0x5e2f1e,_0x36fd3a,_0x165a48);for(const _0x4cc2cd of _0x525f77[_0x5e2f1e]['markersEnd']){const _0xb34c11=_0x4c0328['get'](_0x4cc2cd);_0xb34c11?_0xb34c11['end']=_0x165a48:_0x4c0328['set'](_0x4cc2cd,{'start':_0x165a48,'end':_0x165a48});}}for(const [_0x3216dd,_0x2409d7]of _0x4c0328){const _0x4f8b76=this['editor']['model']['createRange'](_0x2409d7['start'],_0x2409d7['end']);_0x5342b7['markers']['set'](_0x3216dd,_0x4f8b76);}return _0x4b8d56['sort']((_0x2e307f,_0x440614)=>{const _0x5b7f8e=_0x5342b7['markers']['get']('revision:'+_0x2e307f['id']),_0x30ad51=_0x5342b7['markers']['get']('revision:'+_0x440614['id']);return _0x5b7f8e['start']['isBefore'](_0x30ad51['start'])?-0x1:_0x5b7f8e['start']['isAfter'](_0x30ad51['start'])?0x1:_0x5b7f8e['end']['isBefore'](_0x30ad51['end'])?-0x1:_0x5b7f8e['end']['isAfter'](_0x30ad51['end'])?0x1:'add'===_0x2e307f['type']?-0x1:0x1;}),{'root':_0x5342b7,'changes':_0x4b8d56};function _0x43bcd0(_0x4409d1,_0x1da8d8,_0x3b1035,_0x4e04d5){const _0xba9e75=!!_0x525f77[_0x1da8d8][_0x4409d1],_0x2a5d2b=_0xba9e75?_0x525f77[_0x1da8d8][_0x4409d1]['userId']:null,_0x12d646=_0x1da8d8===_0x525f77['length']-0x1,_0x288e35=_0x1cd8a0[_0x4409d1][0x0],_0x358557=_0x4c7e8e['isObject'](_0x525f77[_0x1da8d8]['item']);!_0x318ff6[_0x4409d1]&&_0xba9e75?_0x318ff6[_0x4409d1]={'start':_0x3b1035,'tapeItem':_0x525f77[_0x1da8d8],'userId':_0x2a5d2b,'type':_0x4409d1}:_0x318ff6[_0x4409d1]&&!_0xba9e75?(_0x318ff6[_0x4409d1]['end']=_0x3b1035,_0xc9541(_0x318ff6[_0x4409d1]),_0x318ff6[_0x4409d1]=null):_0x318ff6[_0x4409d1]&&_0xba9e75&&_0x318ff6[_0x4409d1]['userId']!==_0x2a5d2b&&(_0x318ff6[_0x4409d1]['end']=_0x3b1035,_0x288e35&&_0x288e35['userId']===_0x318ff6[_0x4409d1]['userId']||_0xc9541(_0x318ff6[_0x4409d1]),_0x318ff6[_0x4409d1]={'start':_0x3b1035,'tapeItem':_0x525f77[_0x1da8d8],'userId':_0x2a5d2b,'type':_0x4409d1}),_0x318ff6[_0x4409d1]&&_0x358557&&('elementStart'!==_0x525f77[_0x1da8d8]['type']||_0x288e35&&_0x288e35['userId']===_0x2a5d2b||_0x1cd8a0[_0x4409d1]['unshift']({'userId':_0x2a5d2b,'object':_0x525f77[_0x1da8d8]['item'],'change':_0x318ff6[_0x4409d1]}),'elementEnd'===_0x525f77[_0x1da8d8]['type']&&_0x288e35&&_0x288e35['object']===_0x525f77[_0x1da8d8]['item']&&(_0x1cd8a0[_0x4409d1]['shift'](),_0x318ff6[_0x4409d1]=_0x288e35['change'])),_0x318ff6[_0x4409d1]&&_0x12d646&&(_0x318ff6[_0x4409d1]['end']=_0x4e04d5,_0xc9541(_0x318ff6[_0x4409d1]),_0x318ff6[_0x4409d1]=null);}function _0xc9541({start:_0x4e43d7,end:_0x3c6b76,tapeItem:_0x59d371,userId:_0x554cb2,type:_0x46fe86}){const _0x1585a4=_0x59d371['item'],_0x1a067e=_0x5c763f['schema']['isBlock'](_0x1585a4)&&!_0x5c763f['schema']['isLimit'](_0x1585a4),_0x42c434=_0x4e43d7['nodeAfter']==_0x3c6b76['parent']&&_0x3c6b76['isAtStart'];if(_0x1a067e&&_0x42c434)return;const _0x119b4d=_0x5c763f['createRange'](_0x4e43d7,_0x3c6b76),_0x8bc4b5=_0x2bf039['get'](_0x554cb2),_0x16abd1=new G({'author':_0x8bc4b5,'type':'isAdded'==_0x46fe86||'isAddSuggestion'==_0x46fe86?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x46fe86||'isRemoveSuggestion'==_0x46fe86},'createdAt':new Date(),'rootName':_0x5f22ee});_0x4b8d56['push'](_0x16abd1),_0x5342b7['markers']['set']('revision:'+_0x16abd1['id'],_0x119b4d);}function _0x1d5adb(_0x5c2a6b,_0x36c403){const _0x2d7d4c=_0x5c2a6b['getAttributes'](),_0x3d395e=_0x36c403['getAttributes']();for(const _0x14c726 of _0x2d7d4c){if(_0x14c726[0x1]!==_0x36c403['getAttribute'](_0x14c726[0x0]))return!0x1;_0x3d395e['next']();}return _0x3d395e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xdef617=>{const _0x46b689=_0xdef617['markerName']['split'](':')[0x1],_0x25e932=this['_getChangeFromId'](_0x46b689);if(!_0x25e932)return null;const _0x20eeb7='add'==_0x25e932['type']?'insertion':'deletion',_0x3a6b69=['ck-suggestion-marker','ck-suggestion-marker-'+_0x20eeb7];return _0x25e932['data']['isSuggestion']&&_0x3a6b69['push']('ck-suggestion-marker-'+_0x20eeb7+'-new'),this['activeChange']==_0x25e932&&_0x3a6b69['push']('ck-suggestion-marker--active'),{'classes':_0x3a6b69,'attributes':{'data-change-id':_0x46b689}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x54b05c=>{_0x54b05c['on']('element:pre',(_0x3a944a,_0x40f318,_0x252c97)=>{const _0x152867=_0x40f318['viewItem']['getChild'](0x0);if(!_0x152867||!_0x152867['is']('element','code'))return;if(!_0x252c97['consumable']['consume'](_0x152867,{'attributes':['vid_start','vid_end']}))return;const _0x51bc44=_0x40f318['modelRange']['start']['nodeAfter'];_0x252c97['writer']['setAttribute']('vid_start',_0x152867['getAttribute']('vid_start'),_0x51bc44),_0x252c97['writer']['setAttribute']('vid_end',_0x152867['getAttribute']('vid_end'),_0x51bc44);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x453fd7=>{_0x453fd7['on']('element',(_0x1fbf08,_0x52a77f,_0x7fedd8)=>{if(!_0x7fedd8['consumable']['consume'](_0x52a77f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x52a77f['modelRange']['isCollapsed'])return;const _0x22664b=_0x52a77f['modelRange']['start']['nodeAfter'];_0x22664b['hasAttribute']('vid_start')||_0x22664b['hasAttribute']('vid')||(_0x7fedd8['writer']['setAttribute']('vid_start',_0x52a77f['viewItem']['getAttribute']('vid_start'),_0x22664b),_0x7fedd8['writer']['setAttribute']('vid_end',_0x52a77f['viewItem']['getAttribute']('vid_end'),_0x22664b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x35725e=>_0x35725e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2a5855,[,_0x271993])=>{['vid_start','vid_end','vid']['includes'](_0x271993)&&(_0x2a5855['return']=!0x0,_0x2a5855['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x92930f=>{_0x92930f['on']('attribute:vid',(_0x3a3d92,_0x4e5600,_0x32e59d)=>{if('\x20'!=_0x4e5600['item']['data']||_0x4e5600['item']['parent']['maxOffset']>0x1)return;if(!_0x32e59d['consumable']['consume'](_0x4e5600['item'],_0x3a3d92['name']))return;const _0x46e991=_0x32e59d['writer'],_0x95f299=_0x32e59d['mapper']['toViewRange'](_0x4e5600['range']);_0x46e991['wrap'](_0x95f299,_0x46e991['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2fab1e){const _0x2fcd50=_0x2fab1e['plugins']['get']('RevisionViewer');return(_0x50c7e2,_0x489959,_0x5f3d56)=>{const _0x25f1db=_0x489959['markerName']['split'](':')[0x1],_0x50cd72=_0x2fcd50['_getChangeFromId'](_0x25f1db);if(!_0x50cd72)return null;const _0x253acd='add'==_0x50cd72['type']?'split':'merge';if(!_0x5f3d56['consumable']['test'](_0x489959['markerRange'],_0x50c7e2['name']))return;const _0x27a31a=_0x489959['markerRange']['getWalker'](),_0x3686c9=_0x489959['markerRange']['start'],_0x288a80=_0x2fab1e['model']['schema'];let _0x4e8793=null,_0x7ecd79=null,_0x1087e9=!0x1,_0x552951=!0x1;for(const _0x444ca1 of _0x27a31a){const _0x33ecec=_0x444ca1['item'];_0x1087e9=_0x1087e9||_0x288a80['isContent'](_0x33ecec);const _0x4b9c8b=_0x5f3d56['mapper']['toViewElement'](_0x33ecec);if(_0x4b9c8b&&_0x4b9c8b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x444ca1['type']&&(_0x288a80['isBlock'](_0x33ecec)&&!_0x288a80['isLimit'](_0x33ecec)&&(_0x33ecec['nextSibling']||_0x3686c9['isAtEnd']?_0x4e8793&&_0x4e8793['parent']==_0x33ecec||(_0x4e8793=_0x33ecec,_0x2a055b(_0x444ca1['previousPosition']),_0x552951=!0x0):_0x7ecd79=_0x7ecd79||_0x444ca1['previousPosition']));}function _0x2a055b(_0x419b98){const _0x54b8e8=_0x5f3d56['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x253acd}),_0x4a7684=_0x5f3d56['mapper']['toViewPosition'](_0x419b98);_0x50cd72['data']['isSuggestion']&&_0x5f3d56['writer']['addClass']('ck-suggestion-marker-'+_0x253acd+'-new',_0x54b8e8),_0x2fcd50['activeChange']==_0x50cd72&&_0x5f3d56['writer']['addClass']('ck-suggestion-marker--active',_0x54b8e8),_0x5f3d56['writer']['insert'](_0x4a7684,_0x54b8e8),_0x5f3d56['mapper']['bindElementToMarker'](_0x54b8e8,_0x489959['markerName']);}_0x1087e9||_0x552951||!_0x7ecd79||_0x2a055b(_0x7ecd79);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2c4b22,_0x23e632,_0x21f64b)=>{const _0x928655=_0x21f64b['mapper']['markerNameToElements'](_0x23e632['markerName']);if(_0x928655){for(const _0x21d634 of _0x928655)(_0x21d634['hasClass']('ck-suggestion-marker-split')||_0x21d634['hasClass']('ck-suggestion-marker-merge'))&&(_0x21f64b['mapper']['unbindElementFromMarkerName'](_0x21d634,_0x23e632['markerName']),_0x21f64b['writer']['remove'](_0x21d634));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x380255,_0x21822a,_0xd84035)=>{const _0xe176d0=_0x21822a['markerName']['split'](':')[0x1],_0x3859e4=this['_getChangeFromId'](_0xe176d0);if(!_0x3859e4)return null;const _0x2091b6='add'==_0x3859e4['type']?'split':'merge';if(_0xd84035['consumable']['test'](_0x21822a['markerRange'],_0x380255['name']))for(const _0x2b5417 of _0x21822a['markerRange']['getItems']()){if(!_0x2b5417['is']('element','softBreak'))continue;const _0x92170c=_0xd84035['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2091b6}),_0x1d47f4=_0xd84035['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2b5417));_0x3859e4['data']['isSuggestion']&&_0xd84035['writer']['addClass']('ck-suggestion-marker-'+_0x2091b6+'-new',_0x92170c),this['activeChange']==_0x3859e4&&_0xd84035['writer']['addClass']('ck-suggestion-marker--active',_0x92170c),_0xd84035['writer']['insert'](_0x1d47f4,_0x92170c),_0xd84035['mapper']['bindElementToMarker'](_0x92170c,_0x21822a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3da15d=>{for(const _0x277c11 of this['editor']['model']['document']['getRootNames']()){const _0x297b44=this['editor']['model']['document']['getRoot'](_0x277c11),_0x526ee4=this['editor']['editing']['view']['document']['getRoot'](_0x277c11);if(_0x526ee4){const _0x6329ca=_0x297b44['getAttribute']('revisionHistoryAttachChange');if(_0x3da15d['removeAttribute']('data-change-id',_0x526ee4),_0x3da15d['removeClass']('ck-revision-history-root-add',_0x526ee4),_0x3da15d['removeClass']('ck-revision-history-root-remove',_0x526ee4),_0x3da15d['removeClass']('ck-revision-history-root--active',_0x526ee4),_0x6329ca){const _0x1e436c=this['_getChangeFromId'](_0x6329ca);if(!_0x1e436c)return null;_0x3da15d['setAttribute']('data-change-id',_0x6329ca,_0x526ee4),_0x3da15d['addClass']('ck-revision-history-root-'+_0x1e436c['type'],_0x526ee4),this['activeChange']==_0x1e436c&&_0x3da15d['addClass']('ck-revision-history-root--active',_0x526ee4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2511a3=>'revision-comment:'+_0x2511a3,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x45cf84=>'revision-suggestion:'+_0x45cf84,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x429ac1=>({'name':'suggestion:'+_0x429ac1,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3f145b=>{const _0xbe0fb3=_0x3f145b['markerName']['split'](':')[0x1];return'insertion'!=_0xbe0fb3&&'deletion'!=_0xbe0fb3?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xbe0fb3]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2d5bbc,_0x5a4113,_0x47083a)=>{const _0x30a5ef=_0x47083a['mapper']['markerNameToElements'](_0x5a4113['markerName']);if(_0x30a5ef){for(const _0x4b37bb of _0x30a5ef)_0x4b37bb['is']('uiElement')&&(_0x47083a['mapper']['unbindElementFromMarkerName'](_0x4b37bb,_0x5a4113['markerName']),_0x47083a['writer']['remove'](_0x4b37bb));}},{'priority':'high'});}['_getChangeFromId'](_0x217caf){return this['_changeIdToChange']['get'](_0x217caf);}['_getViewForChange'](_0x344b52){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x344b52),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x287f13,_0xc5fa36,_0x1c7ec3,_0x20919b)=>{_0x20919b&&this['_balloon']['remove'](_0x20919b),_0x1c7ec3&&(this['_balloon']['add']({'view':_0x1c7ec3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x470ba9=this['editor']['editing'],_0x547484=this['_getChangeFromId'](_0x1c7ec3['changeId']);let _0x1c7c01;if(_0x547484['data']['isOnRoot']){const _0x1adfd7=_0x470ba9['view']['getDomRoot'](_0x547484['rootName']);_0x1c7c01=Array['from'](_0x1adfd7['getClientRects']());}else{const _0x56fa51=this['editor']['model']['markers']['get']('revision:'+_0x1c7ec3['changeId']);_0x1c7c01=Array['from'](_0x470ba9['mapper']['markerNameToElements'](_0x56fa51['name']))['map'](_0x490c90=>_0x470ba9['view']['domConverter']['mapViewToDom'](_0x490c90))['map'](_0x1681eb=>Array['from'](_0x1681eb['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1c7c01[0x0];return _0x1c7c01['find'](_0x261fd4=>_0x261fd4['top']-0x3<=this['_activeViewTarget']['y']&&_0x261fd4['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x261fd4['left']-0x3<=this['_activeViewTarget']['x']&&_0x261fd4['right']+0x3>=this['_activeViewTarget']['x'])||_0x1c7c01[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x341443,_0x231d46,_0x5d4f88,_0x165f07)=>{this['activeView']=_0x5d4f88?this['_getViewForChange'](_0x5d4f88):null,this['editor']['model']['change'](()=>{const _0x2a5938=this['editor']['editing'];_0x165f07&&(_0x165f07['data']['isOnRoot']?_0x2a5938['view']['change'](_0xee3425=>{_0xee3425['removeClass']('ck-revision-history-root--active',_0x2a5938['view']['document']['getRoot'](_0x165f07['rootName']));}):_0x2a5938['reconvertMarker']('revision:'+_0x165f07['id'])),_0x5d4f88&&(_0x5d4f88['data']['isOnRoot']?_0x2a5938['view']['change'](_0x1fedc6=>{_0x1fedc6['addClass']('ck-revision-history-root--active',_0x2a5938['view']['document']['getRoot'](_0x5d4f88['rootName']));}):_0x2a5938['reconvertMarker']('revision:'+_0x5d4f88['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1bb0d2,_0x4f095a)=>{if(this['activeChange'])return;const _0xcab9b7=this['_findChangeIdFromDomTarget'](_0x4f095a['target']),_0x40f79e=this['_changeIdToChange']['get'](_0xcab9b7);_0x40f79e?(this['_activeViewTarget']={'x':_0x4f095a['domEvent']['x'],'y':_0x4f095a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x40f79e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x372ec6,_0x1f9281)=>{const _0x38c985=this['_findChangeIdFromDomTarget'](_0x1f9281['target']),_0x5d0e3e=this['_changeIdToChange']['get'](_0x38c985);_0x5d0e3e?(this['_activeViewTarget']={'x':_0x1f9281['domEvent']['x'],'y':_0x1f9281['domEvent']['y']},_0x5d0e3e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5d0e3e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x45835c){do{const _0x528d0e=_0x45835c['getAttribute']('data-change-id');if(_0x528d0e)return _0x528d0e;_0x45835c=_0x45835c['parent'];}while(_0x45835c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4a3b69=>{for(const _0x2a05f3 of this['editor']['model']['markers'])_0x4a3b69['removeMarker'](_0x2a05f3);});}}function Q(_0x35e895,_0xf7fdd5){return(_0x4f8eb7,_0x3cb5b8,_0x5505c6)=>{if(!_0x5505c6['consumable']['test'](_0x3cb5b8['markerRange'],_0x4f8eb7['name']))return;const _0x1afae9=_0x3cb5b8['markerRange']['getWalker'](),_0x409651=_0x3cb5b8['markerRange']['start'],_0x17b206=_0x35e895['model']['schema'];let _0x5aded3=null,_0x100a47=null,_0x1e41ea=!0x1,_0x47d93e=!0x1;for(const _0x12dc65 of _0x1afae9){const _0x3ae4b5=_0x12dc65['item'];_0x1e41ea=_0x1e41ea||_0x17b206['isContent'](_0x3ae4b5);const _0x2f7d74=_0x5505c6['mapper']['toViewElement'](_0x3ae4b5);if(_0x2f7d74&&_0x2f7d74['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x12dc65['type']&&(_0x17b206['isBlock'](_0x3ae4b5)&&!_0x17b206['isLimit'](_0x3ae4b5)&&(_0x3ae4b5['nextSibling']||_0x409651['isAtEnd']?_0x5aded3&&_0x5aded3['parent']==_0x3ae4b5||(_0x5aded3=_0x3ae4b5,_0x21e720(_0x12dc65['previousPosition']),_0x47d93e=!0x0):_0x100a47=_0x100a47||_0x12dc65['previousPosition']));}function _0x21e720(_0x582838){const _0xbf9a0d=_0x5505c6['mapper']['toViewPosition'](_0x582838),_0x52ecbc=_0x5505c6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xf7fdd5});_0x5505c6['writer']['insert'](_0xbf9a0d,_0x52ecbc),_0x5505c6['mapper']['bindElementToMarker'](_0x52ecbc,_0x3cb5b8['markerName']);}_0x1e41ea||_0x47d93e||!_0x100a47||_0x21e720(_0x100a47);};}class ut extends _0x3c48a2{constructor(_0x45346b){super(_0x45346b);const _0x3dca9a=_0x45346b['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x3dca9a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3dca9a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2705a8=this['editor'],_0x45a537=_0x2705a8['plugins']['get'](l),_0x557f70=_0x45a537['isReady']?_0x45a537['diff']['newRevisionId']:null;_0x2705a8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x557f70);}['refresh'](){const {isReady:_0x3d2898,isEnabled:_0x5263b1,repository:_0x1673a4,diff:_0x28c7e1}=this['editor']['plugins']['get'](l),_0x428db6=_0x28c7e1&&_0x1673a4['getLaterVisibleRevision'](_0x28c7e1['newRevisionId']);this['isEnabled']=_0x3d2898&&_0x5263b1&&Boolean(_0x428db6);}}class lt extends _0x3c48a2{['_step'];constructor(_0x59935d,{direction:_0x50f5b2}){super(_0x59935d);const _0x2b87ee=_0x59935d['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x50f5b2?0x1:-0x1,this['listenTo'](_0x2b87ee,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2b87ee,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2b87ee,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2a170c=this['editor'],_0xe47bbf=_0x2a170c['plugins']['get'](l),{isNavigationMode:_0x21c786,currentChangeNumber:_0x37c0b8}=_0xe47bbf;let _0x1b4243;if(_0xe47bbf['activeChange']=_0x21c786?_0xe47bbf['diff']['changes']['get'](_0x37c0b8+this['_step']):_0xe47bbf['diff']['changes']['first'],_0xe47bbf['activeChange']['data']['isOnRoot'])_0x1b4243=_0x2a170c['editing']['view']['getDomRoot'](_0xe47bbf['activeChange']['rootName']);else{const _0x1fdfb3=_0x2a170c['model']['markers']['get']('revision:'+_0xe47bbf['activeChange']['id']);_0x1b4243=_0x41a099(_0x2a170c['editing'],_0x1fdfb3);}_0x13bd49({'target':_0x1b4243,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1390bc,currentChangeNumber:_0x5a623f,numberOfChanges:_0x1c5796,isReady:_0x343026,isEnabled:_0x3bb034}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3bb034&&_0x343026&&_0x1c5796)&&(!_0x1390bc||(0x1===this['_step']?_0x5a623f<_0x1c5796-0x1:_0x5a623f>0x0));}}class Ri extends _0x3269ad{constructor(_0x3c282e){super(_0x3c282e);const _0x4ce3e0=this['bindTemplate'],_0x2d48ab=new _0x4bd511(_0x3c282e),_0x4d3bbf=new _0x4bd511(_0x3c282e);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',(_0x5eba39,_0xc8dbad)=>_0x5eba39&&_0xc8dbad>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xa79642,_0x36c21f,_0x5b8e38,_0x594cd7)=>{if(!_0xa79642)return R(_0x3c282e,'Loading...');if(!_0x5b8e38)return R(_0x3c282e,'No\x20changes');const _0x22aa35=R(_0x3c282e,'NUMBER_OF_CHANGES',_0x5b8e38);return _0x594cd7?R(_0x3c282e,'X_OF_Y_CHANGES',[_0x36c21f+0x1,_0x5b8e38]):_0x22aa35;}),_0x2d48ab['set']({'label':R(_0x3c282e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3cd2e9}),_0x4d3bbf['set']({'label':R(_0x3c282e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x570090}),_0x2d48ab['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4d3bbf['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2d48ab['on']('execute',()=>this['fire']('execute','backward')),_0x4d3bbf['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',_0x4ce3e0['if']('_isStatusLabelVisible','ck-hidden',_0x51d368=>!_0x51d368)]},'children':[{'text':_0x4ce3e0['to']('isNavigationMode',_0x14e10d=>_0x14e10d?R(_0x3c282e,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3c282e,'Total')+':\x20')}]},{'text':_0x4ce3e0['to']('_statusText')}]},new _0x5e45f2(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2d48ab,_0x4d3bbf]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x1973ac{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x21772b=this['editor']['editing']['view'];_0x21772b['change'](_0x39e238=>{for(const _0x1a9a38 of _0x21772b['document']['roots'])_0x39e238['addClass'](ge,_0x1a9a38);});}['hide'](){const _0xd1f21d=this['editor']['editing']['view'];_0xd1f21d['change'](_0x404bbf=>{for(const _0x397e64 of _0xd1f21d['document']['roots'])_0x404bbf['removeClass'](ge,_0x397e64);});}}class u extends _0x1973ac{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x3d6769=this['editor'],_0x16dc89=_0x3d6769['plugins']['get'](l),_0x15e952=_0x3d6769['plugins']['get'](ji);_0x3d6769['ui']['componentFactory']['add']('exitToEditing',_0x302b71=>{const _0x26eb90=new _0x4bd511(_0x302b71);return _0x26eb90['set']({'label':R(_0x302b71,'Back\x20to\x20editing'),'icon':_0x2b3260,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x26eb90,'execute',()=>{_0x3d6769['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x26eb90;}),_0x3d6769['ui']['componentFactory']['add']('restoreRevision',_0x5d1cf1=>{const _0x1bfe7c=new _0x4bd511(_0x5d1cf1);return _0x1bfe7c['set']({'label':R(_0x5d1cf1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1bfe7c['bind']('isEnabled')['to'](_0x3d6769['commands']['get']('restoreRevision')),this['listenTo'](_0x1bfe7c,'execute',()=>_0x3d6769['execute']('restoreRevision')),_0x1bfe7c;}),_0x3d6769['ui']['componentFactory']['add']('changesNavigation',_0x37f49a=>{const _0x5141eb=new Ri(_0x37f49a),_0x11c9dc=_0x3d6769['commands']['get']('showPreviousChange'),_0x627cca=_0x3d6769['commands']['get']('showNextChange');return _0x5141eb['bind']('isBackwardNavigationEnabled')['to'](_0x11c9dc,'isEnabled'),_0x5141eb['bind']('isForwardNavigationEnabled')['to'](_0x627cca,'isEnabled'),_0x5141eb['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x16dc89),this['listenTo'](_0x5141eb,'execute',(_0x1f718f,_0x1b33fc)=>{_0x3d6769['execute']('forward'===_0x1b33fc?'showNextChange':'showPreviousChange');}),_0x5141eb;}),_0x15e952['show'](),_0x16dc89['on']('change:isReady',(_0x309a08,_0x425b7f,_0x457fb7)=>{_0x457fb7?_0x15e952['hide']():_0x15e952['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x3d4b65,_0x123f58){super(_0x3d4b65,_0x123f58);const _0xf7c6ed=this['bindTemplate'];this['set']({'label':R(_0x3d4b65,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3d4b65,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xf7c6ed['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2166d3=this['fieldView']['element'];this['_tooltipString']=_0x2166d3['scrollWidth']>_0x2166d3['clientWidth']&&_0x2166d3['value']||'';}}class ni extends _0x3269ad{constructor(_0x1b3359,_0x5d022a,_0x123e51){super(_0x1b3359);const _0x575665=new _0x5f034c();_0x575665['set']({'content':_0x2a0aaa,'viewBox':'0\x200\x2011\x2010'});const _0x23f4cf=['ck','ck-revision-history-sidebar__revision-author'];_0x123e51&&_0x23f4cf['push']('ck-revision-history-sidebar__revision-author_creator');const _0x43a0ab=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1b3359,_0x123e51?'Revision\x20creator':'Revision\x20author')},'children':[_0x575665,_0x5d022a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x23f4cf},'children':_0x43a0ab});}}function ci(_0x30398c,_0x3187ec){const _0x2a1774=_0x30398c['bindTemplate'],_0x410a02=_0x30398c['locale'],_0x13a0c9=_0x35ed0a(_0x410a02);_0x13a0c9['panelPosition']='sw';const _0xca68b6=function(_0x31074a,_0x9117c3){const _0x177811=function(_0x538847,_0x102522){const _0x1d1354=_0x538847['locale'],_0x5011f6={'Compare\x20against\x20selected':R(_0x1d1354,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x1d1354,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x1d1354,'Restore\x20this\x20revision')};return _0x102522['map'](_0x33a451=>{const _0x55548c=_0x5011f6[_0x33a451['name']];return _0x55548c&&_0x55548c!==_0x33a451['name']&&(_0x33a451['name']=_0x55548c),_0x33a451;});}(_0x31074a,_0x9117c3),_0x5d5cb7=new _0x28f4f5();for(const _0x2cc007 of _0x177811){const _0x23c732={'type':'button','model':new to({'label':_0x2cc007['name'],'class':_0x2cc007['class'],'withText':!0x0,'role':'menuitem','_action':_0x2cc007['action']})};_0x23c732['model']['bind']('isEnabled')['to'](_0x31074a,'isActionsDropdownOpen',_0x12dec0=>'function'!=typeof _0x2cc007['isEnabled']||(!_0x12dec0||_0x2cc007['isEnabled'](_0x31074a))),_0x5d5cb7['add'](_0x23c732);}return _0x5d5cb7;}(_0x30398c,_0x3187ec);return _0x30398c['bind']('isActionsDropdownOpen')['to'](_0x13a0c9,'isOpen'),_0x13a0c9['buttonView']['set']({'label':R(_0x410a02,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xeddefb}),_0x13a0c9['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2a1774['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2a1774['to'](_0x3ebdd6=>_0x3ebdd6['stopPropagation']())}}),_0x13a0c9['on']('execute',_0x12b78a=>{_0x30398c['isReady']&&'function'==typeof _0x12b78a['source']['_action']&&_0x12b78a['source']['_action'](_0x30398c);}),_0x3e203f(_0x13a0c9,_0xca68b6,{'role':'menu'}),_0x13a0c9['listenTo'](_0x30398c,'change:isActionsDropdownOpen',(_0x1c1813,_0x325148,_0x5cfd9d)=>{if(_0x5cfd9d)for(const _0x11de66 of _0x13a0c9['listView']['items']){const _0x4cd321=_0x11de66['children']['first'],_0x17abd9=_0x3187ec['find'](_0x5f4f2f=>_0x5f4f2f['action']===_0x4cd321['_action'])['isVisible'];_0x11de66['isVisible']=void 0x0===_0x17abd9||_0x17abd9(_0x30398c);}}),_0x13a0c9;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x5334d0,uid as _0x16b0b,Collection as _0x46abbb,logWarning as _0x8ba4a9,FocusTracker as _0x3773ee,KeystrokeHandler as _0x10b3a7,scrollViewportToShowTarget as _0x380874,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x51cd85}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1fd9bb,set as _0x17f8a7,unset as _0x2cec44,isEqual as _0x4b2597}from'es-toolkit/compat';import{Plugin as _0x3c3b37,PendingActions as _0x5aed72,Command as _0x175100,ElementApiMixin as _0x273a70,Editor as _0x153047}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x274b00,getMarkerDomElement as _0x256ef8,ConfirmMixin as _0xd7bd11,sanitizeEditorConfig as _0xebf896}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5eaf37,ViewAttributeElement as _0x458876,ViewEmptyElement as _0x35bc26,ViewRawElement as _0x4eb785,ViewUIElement as _0x923927,ViewDocumentFragment as _0x1dd5f6,ViewText as _0x4a9d98,ViewElement as _0x42fd3b,Element as nt,Range as rt,Position as at,DocumentFragment as ht,Text as ct}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4d8013,IconChevronUp as _0x506bfb,IconChevronDown as _0x12ad05,IconUndo as _0x41500f,IconUser as _0x5ee8cd,IconThreeVerticalDots as _0x4d6d9a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x2f7aff,View as _0x2a7ba6,submitHandler as _0x353b4f,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x41dae4,ListView as _0xcbdfc4,ListItemView as _0x37ae3b,ButtonView as _0xe89d0,MenuBarMenuView as _0x3a1519,MenuBarMenuListView as _0x20fe1e,MenuBarMenuListItemView as _0x5788fc,MenuBarMenuListItemButtonView as _0x131ca5,ContextualBalloon as _0x341159,ToolbarSeparatorView as _0x252087,IconView as _0x3b96c7,addListToDropdown as _0x4b3d45,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x38a6ea,StickyPanelView as _0x132c56,ToolbarView as _0x1e6515,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2cbe6c}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5334d0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x19352c){super(),this['id']=_0x19352c['id']||_0x16b0b(),this['creator']=_0x19352c['creator']||null,this['authors']=_0x19352c['authors']||[],this['diffData']=_0x19352c['diffData']||null,this['toVersion']=_0x19352c['toVersion']||0x0,this['fromVersion']=_0x19352c['fromVersion']||0x0,this['set']('name',_0x19352c['name']||''),this['set']('createdAt',_0x19352c['createdAt']||new Date()),this['set']('attributes',_0x19352c['attributes']||{});}['setName'](_0xa9ee13){this['_update']({'name':_0xa9ee13});}['setAttribute'](_0x4749b8,_0x4ebf84){const _0x142f52=_0x1fd9bb(this['attributes']);_0x17f8a7(_0x142f52,_0x4749b8,_0x4ebf84),this['_update']({'attributes':_0x142f52});}['removeAttribute'](_0x4bd03f){const _0x3fccf7=_0x1fd9bb(this['attributes']);_0x2cec44(_0x3fccf7,_0x4bd03f),this['_update']({'attributes':_0x3fccf7});}['_update'](_0x287d11,_0x4369ef=!0x1){let _0x5f08a4=!0x1;const _0x4960eb={'id':this['id']},_0x1071e5=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x436fe9 of _0x1071e5){const _0x15ec91=_0x287d11[_0x436fe9];void 0x0!==_0x15ec91&&_0x15ec91!==this[_0x436fe9]&&(this[_0x436fe9]=_0x15ec91,_0x4960eb[_0x436fe9]=_0x15ec91,_0x5f08a4=!0x0);}_0x5f08a4&&(_0x4960eb['authors']&&(_0x4960eb['authorsIds']=_0x4960eb['authors']['map'](_0x5a8cfb=>_0x5a8cfb['id']),delete _0x4960eb['authors']),this['fire']('_update',_0x4960eb,_0x4369ef));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xcffd06=>_0xcffd06['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x3c3b37{['_revisions'];static get['requires'](){return[_0x274b00];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xcd6121){super(_0xcd6121),this['_revisions']=new _0x46abbb();}['afterInit'](){!async function(_0x513b41){const _0x178b41=_0x2c6390([0x6e,0x72,0x6d,0x32,0x41,0x76,0x4f,0x44,0x52,0x65,0x45,0x30,0x49,0x4d,0x68,0x37,0x36,0x51,0x4e,0x78,0x33,0x59,0x35,0x54,0x6f,0x43,0x6c,0x62,0x46,0x56,0x67,0x34,0x47,0x66,0x6a,0x57,0x70,0x50,0x73,0x42,0x75,0x39,0x55,0x61,0x79,0x69,0x74,0x64,0x6b,0x4b,0x77,0x53,0x31,0x4a,0x7a,0x4c,0x5a,0x63,0x58,0x48,0x38,0x71]),_0x5b172a=0xeb829,_0x4632bc=0x770e436c,_0x593616=0x77092984^_0x4632bc,_0x5a0548=window[_0x2c6390([0x44,0x61,0x74,0x65])][_0x2c6390([0x6e,0x6f,0x77])](),_0xe69df0=_0x513b41[_0x2c6390([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x472793=new window[(_0x2c6390([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49efeb=>{_0xe69df0[_0x2c6390([0x6f,0x6e,0x63,0x65])](_0x2c6390([0x72,0x65,0x61,0x64,0x79]),_0x49efeb);}),_0xf32acf={[_0x2c6390([0x6b,0x74,0x79])]:_0x2c6390([0x45,0x43]),[_0x2c6390([0x75,0x73,0x65])]:_0x2c6390([0x73,0x69,0x67]),[_0x2c6390([0x63,0x72,0x76])]:_0x2c6390([0x50,0x2d,0x32,0x35,0x36]),[_0x2c6390([0x78])]:_0x2c6390([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]),[_0x2c6390([0x79])]:_0x2c6390([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]),[_0x2c6390([0x61,0x6c,0x67])]:_0x2c6390([0x45,0x53,0x32,0x35,0x36])},_0x4e3f90=_0xe69df0[_0x2c6390([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c6390([0x67,0x65,0x74])](_0x2c6390([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x341736(){let _0x64ddd0,_0x1a4098=null,_0x1704d4=null;try{if(_0x4e3f90==_0x2c6390([0x47,0x50,0x4c]))return _0x2c6390([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x64ddd0=_0x2b0782(),!_0x64ddd0)return _0x2c6390([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x64ddd0[_0x2c6390([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1704d4=_0x332437(_0x64ddd0[_0x2c6390([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x64ddd0[_0x2c6390([0x6a,0x74,0x69])])),await _0x4645c6()?_0x2b763e()?_0x4911ec()?_0x2c6390([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52cfd4()?(_0x64ddd0[_0x2c6390([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c6390([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a4098=_0x18bee7(_0x2c6390([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x64ddd0[_0x2c6390([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c6390([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a4098=_0x18bee7(_0x2c6390([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1fdd1c()):_0x2c6390([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c6390([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c6390([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c6390([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4911ec(){const _0x18245a=[_0x2c6390([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c6390([0x74,0x72,0x69,0x61,0x6c])][_0x2c6390([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x64ddd0[_0x2c6390([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a0548/0x3e8:0xe10*_0x593616;return _0x64ddd0[_0x2c6390([0x65,0x78,0x70])]<_0x18245a;}function _0x2b763e(){const _0x64812e=_0x64ddd0[_0x2c6390([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x64812e)return!0x1;if(_0x64812e[_0x2c6390([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c6390([0x2a])))return!0x0;if(_0x64812e[_0x2c6390([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c6390([0x52,0x48])))return!0x0;if(_0x64812e[_0x2c6390([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c6390([0x52,0x52,0x48]))){if(_0x403542())return!0x0;if(_0x89f0b0()||_0x228bf5())return!0x0;}return!0x1;}function _0x52cfd4(){const _0x4e6995=_0x64ddd0[_0x2c6390([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e6995||0x0==_0x4e6995[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c026f}=new URL(window[_0x2c6390([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e6995[_0x2c6390([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c026f))return!0x0;const _0x49800d=_0x5c026f[_0x2c6390([0x73,0x70,0x6c,0x69,0x74])](_0x2c6390([0x2e]));return _0x4e6995[_0x2c6390([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fe2a9=>_0x1fe2a9[_0x2c6390([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c6390([0x2a])))[_0x2c6390([0x6d,0x61,0x70])](_0x26a7d5=>_0x26a7d5[_0x2c6390([0x73,0x70,0x6c,0x69,0x74])](_0x2c6390([0x2e])))[_0x2c6390([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54e3d1=>_0x54e3d1[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49800d[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c6390([0x6d,0x61,0x70])](_0x101a74=>Array(_0x49800d[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x101a74[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c6390([0x66,0x69,0x6c,0x6c])](_0x101a74[0x0]===_0x2c6390([0x2a])?_0x2c6390([0x2a]):'')[_0x2c6390([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x101a74))[_0x2c6390([0x73,0x6f,0x6d,0x65])](_0x394e93=>_0x49800d[_0x2c6390([0x65,0x76,0x65,0x72,0x79])]((_0x1f2fc8,_0x5021c1)=>_0x394e93[_0x5021c1]===_0x1f2fc8||_0x394e93[_0x5021c1]===_0x2c6390([0x2a])));}function _0x1fdd1c(){return _0x1a4098&&_0x1704d4?new window[(_0x2c6390([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x577129,_0x5f5c38)=>{_0x1a4098[_0x2c6390([0x74,0x68,0x65,0x6e])](_0x577129,_0x5f5c38),_0x1704d4[_0x2c6390([0x74,0x68,0x65,0x6e])](_0x286dbe=>{_0x286dbe!=_0x2c6390([0x56,0x61,0x6c,0x69,0x64])&&_0x577129(_0x286dbe);},_0x5f5c38);}):_0x1a4098||_0x1704d4||_0x2c6390([0x56,0x61,0x6c,0x69,0x64]);}}function _0x332437(_0xfe50dc,_0x48f9ec){return new window[(_0x2c6390([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15b6d0=>{if(_0x5808e6())return _0x15b6d0(_0x2c6390([0x56,0x61,0x6c,0x69,0x64]));_0x1897f8(),_0xe69df0[_0x2c6390([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c6390([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d19cb=!0x1;const _0x14c5cf=_0x16b0b();function _0x16b1ed(_0x35ceeb){return!!_0x35ceeb&&(typeof _0x35ceeb===_0x2c6390([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35ceeb===_0x2c6390([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35ceeb[_0x2c6390([0x74,0x68,0x65,0x6e])]===_0x2c6390([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35ceeb[_0x2c6390([0x63,0x61,0x74,0x63,0x68])]===_0x2c6390([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x49b852(_0x21fa56){_0x30ef3b(_0x21fa56)[_0x2c6390([0x74,0x68,0x65,0x6e])](_0x1b123e=>{if(!_0x1b123e||_0x1b123e[_0x2c6390([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c6390([0x6f,0x6b]))return _0x2c6390([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1fd85c(_0x1d0eef(_0x14c5cf+_0x48f9ec))!=_0x1b123e[_0x2c6390([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c6390([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c6390([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c6390([0x74,0x68,0x65,0x6e])](_0x5097d7=>(_0x3c7e4d(),_0x5097d7),()=>{const _0x3ac745=_0x25c9a3();return null==_0x3ac745?(_0x3c7e4d(),_0x2c6390([0x56,0x61,0x6c,0x69,0x64])):_0x2c6390(_0x5a0548-_0x3ac745>(0x5302c76c^_0x4632bc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c6390([0x74,0x68,0x65,0x6e])](_0x15b6d0)[_0x2c6390([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15b6d0(_0x2c6390([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x588c7a=0x7738adec^_0x4632bc;function _0x3c7e4d(){const _0x1e6ec9=_0x2c6390([0x6c,0x6c,0x63,0x74,0x2d])+_0x1fd85c(_0x1d0eef(_0xfe50dc)),_0xf9558b=_0x36e836(_0x1fd85c(window[_0x2c6390([0x4d,0x61,0x74,0x68])][_0x2c6390([0x63,0x65,0x69,0x6c])](_0x5a0548/_0x588c7a)));window[_0x2c6390([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c6390([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e6ec9,_0xf9558b);}function _0x25c9a3(){const _0x11ecfb=_0x2c6390([0x6c,0x6c,0x63,0x74,0x2d])+_0x1fd85c(_0x1d0eef(_0xfe50dc)),_0x331ac0=window[_0x2c6390([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c6390([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11ecfb);return _0x331ac0?window[_0x2c6390([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36e836(_0x331ac0),0x10)*_0x588c7a:null;}function _0x30ef3b(_0x22bde2){return new window[(_0x2c6390([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x498096,_0x4bb856)=>{_0x22bde2[_0x2c6390([0x74,0x68,0x65,0x6e])](_0x498096,_0x4bb856),window[_0x2c6390([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4bb856,0x770f97ac^_0x4632bc);});}}_0xe69df0[_0x2c6390([0x6f,0x6e])](_0x2c6390([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x85c49d,_0x18a6b2)=>{if(_0x18a6b2[0x0]!=_0xfe50dc)return _0x15b6d0(_0x2c6390([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18a6b2[0x1]={..._0x18a6b2[0x1],[_0x2c6390([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14c5cf};},{[_0x2c6390([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c6390([0x68,0x69,0x67,0x68])}),_0xe69df0[_0x2c6390([0x6f,0x6e])](_0x2c6390([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ebb6f=>{_0x16b1ed(_0x3ebb6f[_0x2c6390([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d19cb=!0x0,_0x49b852(_0x3ebb6f[_0x2c6390([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c6390([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c6390([0x6c,0x6f,0x77])}),_0x472793[_0x2c6390([0x74,0x68,0x65,0x6e])](()=>{_0x1d19cb||_0x15b6d0(_0x2c6390([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5808e6(){return _0xe69df0[_0x2c6390([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c6390([0x76,0x69,0x65,0x77])][_0x2c6390([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c6390([0x61,0x75,0x74,0x6f]);}function _0x1897f8(){_0xe69df0[_0x2c6390([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c6390([0x76,0x69,0x65,0x77])][_0x2c6390([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c6390([0x61,0x75,0x74,0x6f]);}}function _0x18bee7(_0x3ffca1){const _0x1fa0c3=[new window[(_0x2c6390([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35660f=>setTimeout(_0x35660f,0x77077da0^_0x4632bc)),_0x472793[_0x2c6390([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c6390([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58b530=>{const _0x13ed06=0x770e436b^_0x4632bc,_0x27de99=_0x513b41[_0x2c6390([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x21585b(){_0x27de99[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x13ed06&&_0x58b530();}_0x21585b(),_0x27de99[_0x2c6390([0x6f,0x6e])](_0x2c6390([0x61,0x64,0x64]),_0x21585b);})),new window[(_0x2c6390([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc41bf5=>{function _0x15719d(){for(const _0x412374 in window)if(window[_0x2c6390([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2c6390([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x412374))&&window[_0x412374]==_0x5b172a)return _0xc41bf5();_0xe69df0[_0x2c6390([0x73,0x74,0x61,0x74,0x65])]!=_0x2c6390([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2c6390([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15719d,0x770e50e4^_0x4632bc);}_0x1946c8(_0x2c6390([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x15719d();})];return window[_0x2c6390([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c6390([0x72,0x61,0x63,0x65])](_0x1fa0c3)[_0x2c6390([0x74,0x68,0x65,0x6e])](()=>_0x3ffca1);}async function _0x417438(){if(await _0x472793,_0x1946c8(_0x2c6390([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2a4c9d=_0x513b41[_0x2c6390([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x865b50=_0x513b41[_0x2c6390([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])](_0x2a4c9d[_0x2c6390([0x69,0x64])]),_0x377110=_0x5d2356(_0x2c6390([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x377110[_0x2c6390([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2a4c9d['id'],_0x865b50?_0x865b50['id']:null,!0x0),_0x377110[_0x2c6390([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c6390([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x377110[_0x2c6390([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x377110[_0x2c6390([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x28231b,void(_0x377110[_0x2c6390([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x28231b);}if(_0x1946c8(_0x2c6390([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x130e14=_0x5d2356(_0x2c6390([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x130e14[_0x2c6390([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c6390([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x130e14[_0x2c6390([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x130e14[_0x2c6390([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x28231b,_0x130e14[_0x2c6390([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x28231b;}_0xe69df0[_0x2c6390([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c6390([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28231b,_0xe69df0[_0x2c6390([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c6390([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28231b,_0xe69df0[_0x2c6390([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c6390([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x403542(){return _0x1946c8(_0x2c6390([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5d2356(_0x2c6390([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c6390([0x73,0x74,0x61,0x74,0x65])]==_0x2c6390([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x89f0b0(){return _0x1946c8(_0x2c6390([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 _0x228bf5(){return _0x1946c8(_0x2c6390([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4c36fa(_0xdb2443){const _0x9fc0cf=_0xd989cc();_0xe69df0[_0x9fc0cf]=_0x2c6390([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])+_0xdb2443,_0xdb2443[_0x2c6390([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2c6390([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xd989cc()]=_0x5b172a),_0xdb2443!=_0x2c6390([0x56,0x61,0x6c,0x69,0x64])&&_0x417438();}function _0xd989cc(){const _0xf8a9aa=window[_0x2c6390([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c6390([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c6390([0x6e,0x6f,0x77])]())[_0x2c6390([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c6390([0x2e]),'');let _0x40733f=_0x2c6390([0x6e]);for(let _0x40b5f5=0x0;_0x40b5f5<_0xf8a9aa[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40b5f5+=0x2){let _0x2533b4=window[_0x2c6390([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf8a9aa[_0x2c6390([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40b5f5,_0x40b5f5+0x2));_0x2533b4>=_0x178b41[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2533b4-=_0x178b41[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40733f+=_0x178b41[_0x2533b4];}return _0x40733f;}function _0x2b0782(){const _0x4118a7=_0x4e3f90[_0x2c6390([0x73,0x70,0x6c,0x69,0x74])](_0x2c6390([0x2e]));if(0x3!=_0x4118a7[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25ce92(_0x4118a7[0x1]);function _0x25ce92(_0x5cf934){const _0x44df4f=_0x56915e(_0x5cf934);return _0x44df4f&&_0x57c1b4()?_0x44df4f:null;function _0x57c1b4(){const _0x287638=_0x44df4f[_0x2c6390([0x6a,0x74,0x69])],_0xc67538=window[_0x2c6390([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287638[_0x2c6390([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x287638[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a0474={..._0x44df4f,[_0x2c6390([0x6a,0x74,0x69])]:_0x287638[_0x2c6390([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x287638[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a0474[_0x2c6390([0x76,0x63])],_0x1d0eef(_0x3a0474)==_0xc67538;}}}async function _0x4645c6(){let _0x42a76e=!0x0;try{const _0x371a04=_0x4e3f90[_0x2c6390([0x73,0x70,0x6c,0x69,0x74])](_0x2c6390([0x2e])),[_0x44dcb1,_0x17fed7,_0x29efcb]=_0x371a04;return _0x14d9dc(_0x44dcb1),await _0x4f0c1e(_0x44dcb1,_0x17fed7,_0x29efcb),_0x42a76e;}catch{return!0x1;}function _0x14d9dc(_0x443a8f){const _0x3ed287=_0x56915e(_0x443a8f);_0x3ed287&&_0x3ed287[_0x2c6390([0x61,0x6c,0x67])]==_0x2c6390([0x45,0x53,0x32,0x35,0x36])||(_0x42a76e=!0x1);}async function _0x4f0c1e(_0x24d285,_0x1b3593,_0x5c387a){const _0xa29016=window[_0x2c6390([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c6390([0x66,0x72,0x6f,0x6d])](_0x14a061(_0x5c387a),_0x23a2fd=>_0x23a2fd[_0x2c6390([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc5f43d=new window[(_0x2c6390([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c6390([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24d285+_0x2c6390([0x2e])+_0x1b3593),_0x38872e=window[_0x2c6390([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c6390([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38872e)return;const _0x5ccad5=await _0x38872e[_0x2c6390([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c6390([0x6a,0x77,0x6b]),_0xf32acf,{[_0x2c6390([0x6e,0x61,0x6d,0x65])]:_0x2c6390([0x45,0x43,0x44,0x53,0x41]),[_0x2c6390([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c6390([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c6390([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38872e[_0x2c6390([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c6390([0x6e,0x61,0x6d,0x65])]:_0x2c6390([0x45,0x43,0x44,0x53,0x41]),[_0x2c6390([0x68,0x61,0x73,0x68])]:{[_0x2c6390([0x6e,0x61,0x6d,0x65])]:_0x2c6390([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ccad5,_0xa29016,_0xc5f43d)||(_0x42a76e=!0x1);}}function _0x56915e(_0x4626be){return _0x4626be[_0x2c6390([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c6390([0x65,0x79]))?JSON[_0x2c6390([0x70,0x61,0x72,0x73,0x65])](_0x14a061(_0x4626be)):null;}function _0x14a061(_0x158ace){return window[_0x2c6390([0x61,0x74,0x6f,0x62])](_0x158ace[_0x2c6390([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c6390([0x2b]))[_0x2c6390([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c6390([0x2f])));}function _0x1d0eef(_0x3274e8){let _0x499d54=0x1505;function _0x51638d(_0x25fd96){for(let _0xcaf052=0x0;_0xcaf052<_0x25fd96[_0x2c6390([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcaf052++){const _0x2c6f54=_0x25fd96[_0x2c6390([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xcaf052);_0x499d54=(_0x499d54<<0x5)+_0x499d54+_0x2c6f54,_0x499d54&=_0x499d54;}}function _0x5b11a5(_0x5193ee){Array[_0x2c6390([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5193ee)?_0x5193ee[_0x2c6390([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b11a5):_0x5193ee&&typeof _0x5193ee==_0x2c6390([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c6390([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5193ee)[_0x2c6390([0x73,0x6f,0x72,0x74])]()[_0x2c6390([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6fa974,_0x53de5c])=>{_0x51638d(_0x6fa974),_0x5b11a5(_0x53de5c);}):_0x51638d(window[_0x2c6390([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5193ee));}return _0x5b11a5(_0x3274e8),_0x499d54>>>0x0;}function _0x1fd85c(_0x55f3ef){return _0x55f3ef[_0x2c6390([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c6390([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c6390([0x30]));}function _0x36e836(_0x4662dc){return _0x4662dc[_0x2c6390([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c6390([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c6390([0x6a,0x6f,0x69,0x6e])]('');}function _0x1946c8(_0x4fd542){return _0xe69df0[_0x2c6390([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c6390([0x68,0x61,0x73])](_0x4fd542);}function _0x5d2356(_0x4ac610){return _0xe69df0[_0x2c6390([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c6390([0x67,0x65,0x74])](_0x4ac610);}function _0x28231b(){}function _0x2c6390(_0x46e4b1){return _0x46e4b1['map'](_0x1611b6=>String['fromCharCode'](_0x1611b6))['join']('');}_0x4c36fa(await _0x341736());}(this);}['createRevision'](_0x259ce7){const _0x43f1ed=this['editor']['plugins']['get']('Users');return new I({'id':_0x259ce7['id'],'name':_0x259ce7['name'],'creator':_0x259ce7['creatorId']?_0x43f1ed['getUser'](_0x259ce7['creatorId']):null,'diffData':_0x259ce7['diffData']||_0x259ce7['data'],'authors':_0x259ce7['authorsIds']['map'](_0x529cb6=>_0x43f1ed['getUser'](_0x529cb6)),'createdAt':new Date(_0x259ce7['createdAt']),'attributes':_0x259ce7['attributes'],'fromVersion':_0x259ce7['fromVersion'],'toVersion':_0x259ce7['toVersion']});}['addRevision'](_0x311476,_0x50dccf=0x0){this['_revisions']['add'](_0x311476,_0x50dccf);}['getRevision'](_0x5085b1){return this['_revisions']['get'](_0x5085b1);}['getRevisions'](_0x3a76f7={'toJSON':!0x1}){const _0x3c0d60=Array['from'](this['_revisions']);return _0x3c0d60['reverse'](),_0x3a76f7['toJSON']?_0x3c0d60['map'](_0x307534=>_0x307534['toJSON']()):_0x3c0d60;}['getIndex'](_0x30a78b){return this['_revisions']['getIndex'](_0x30a78b);}['getEarlierVisibleRevision'](_0xe3e891){const [,_0x15988d]=this['getRevisionsIterator'](_0xe3e891,{'direction':'earlier'});return _0x15988d;}['getLaterVisibleRevision'](_0x2d76ab){const [,_0x24a924]=this['getRevisionsIterator'](_0x2d76ab,{'direction':'later'});return _0x24a924;}['getRevisionsInDiff'](_0x4fa211){const _0x5d8a5b=[];for(const _0x23b4c4 of this['getRevisionsIterator'](_0x4fa211['newRevisionId']))if(_0x5d8a5b['push'](_0x23b4c4),_0x23b4c4['id']===_0x4fa211['oldRevisionId'])break;return _0x5d8a5b;}*['getRevisionsIterator'](_0x2c59bc,{direction:_0x328cc1='earlier',filter:_0x42a15f=()=>!0x0}={}){const _0xdc8aa4='earlier'===_0x328cc1?0x1:-0x1;let _0x2e9954=this['_revisions']['get'](_0x2c59bc),_0x1cf553=this['getIndex'](_0x2e9954);for(yield _0x2e9954;_0x2e9954;){if(_0x1cf553+=_0xdc8aa4,_0x2e9954=this['getRevision'](_0x1cf553),!_0x2e9954)return;_0x42a15f(_0x2e9954)&&(yield _0x2e9954);}}}class $ extends _0x3c3b37{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5eaf37,'c'],[_0x458876,'a'],[_0x35bc26,'e'],[_0x4eb785,'r'],[_0x923927,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5eaf37],['a',_0x458876],['e',_0x35bc26],['r',_0x4eb785],['u',_0x923927]]);async['loadRevisionData'](_0x9491f4,_0x4885c3){if(_0x9491f4['diffData']||!_0x4885c3)return;const _0x581c0a=this['editor']['config']['get']('collaboration.channelId'),_0x506f98=await _0x4885c3['getRevision']({'channelId':_0x581c0a,'revisionId':_0x9491f4['id']});_0x9491f4['diffData']=_0x506f98['diffData'];}['getRevisionDocumentData'](_0x4b2ffa){const _0x77556b={};for(const _0x302173 in _0x4b2ffa['diffData']){if(_0x4b2ffa['diffData'][_0x302173]['attachChange']&&!_0x4b2ffa['diffData'][_0x302173]['attachChange']['isAttached'])continue;const _0x408bf8=this['_removeRevisionMarkers'](JSON['parse'](_0x4b2ffa['diffData'][_0x302173]['insertions'])),_0x356efe=this['editor']['editing']['view']['document'],_0x40e011=new _0x1dd5f6(_0x356efe,_0x408bf8['map'](_0x2a928e=>this['_getViewFromDiffObj'](_0x2a928e,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x77556b[_0x302173]=this['editor']['data']['processor']['toData'](_0x40e011),this['editor']['data']['processor']['useFillerType']('default');}return _0x77556b;}['getRevisionRootsAttributes'](_0x1fdba0){const _0x58809f={};for(const _0x47d1d5 in _0x1fdba0['diffData'])_0x1fdba0['diffData'][_0x47d1d5]['attachChange']&&!_0x1fdba0['diffData'][_0x47d1d5]['attachChange']['isAttached']||(_0x58809f[_0x47d1d5]=_0x1fdba0['diffData'][_0x47d1d5]['attributesAfter']||{});return _0x58809f;}['_getTypeCharForViewElement'](_0x50185d){return this['_viewClassToTypeChar']['get'](_0x50185d['constructor']);}['_getViewFromDiffObj'](_0xedbd36,_0x31791f){const _0x13f8f8=this['editor']['editing']['view']['document'];if('string'==typeof _0xedbd36)return new _0x4a9d98(_0x13f8f8,_0xedbd36);{let _0x5097fd,_0xde7e23;_0xde7e23='u'==_0xedbd36['type']||'r'==_0xedbd36['type']?[]:_0xedbd36['children']['map'](_0xba6876=>this['_getViewFromDiffObj'](_0xba6876,_0x31791f));const _0x263574=this['_typeCharToViewClass']['get'](_0xedbd36['type'])||_0x42fd3b,_0x9a3e51=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5097fd=new _0x263574(_0x13f8f8,_0xedbd36['name'],_0xedbd36['attributes'],_0xde7e23),'u'==_0xedbd36['type']&&_0xedbd36['children'][0x0]){const _0x52b74a=_0xedbd36['children'][0x0];if(_0x5097fd['render']=function(_0x35c3e5){const _0x155dee=_0x35c3e5['createElement']('div');return _0x155dee['innerHTML']=_0x52b74a,_0x155dee['childNodes'][0x0];},_0x31791f){const _0x53af4a=new _0x1dd5f6(_0x13f8f8);_0x53af4a['_appendChild'](_0x5097fd);const _0xf60909=Array['from'](_0x9a3e51['viewChildrenToDom'](_0x53af4a,{'bind':!0x1})),_0x68c79c=_0x9a3e51['domDocument']['createElement']('div');_0x68c79c['append'](..._0xf60909),_0x5097fd=Array['from'](_0x9a3e51['domChildrenToView'](_0x68c79c))[0x0];}}else{if('r'==_0xedbd36['type']&&_0xedbd36['children'][0x0]){const _0x2ba83e=_0xedbd36['children'][0x0];if(_0x5097fd['render']=function(_0x642536){_0x642536['innerHTML']=_0x2ba83e;},_0x31791f){const _0x417df3=new _0x1dd5f6(_0x13f8f8);_0x417df3['_appendChild'](_0x5097fd);const _0x392662=Array['from'](_0x9a3e51['viewChildrenToDom'](_0x417df3,{'bind':!0x1})),_0x4b7e17=_0x9a3e51['domDocument']['createElement']('div');_0x4b7e17['append'](..._0x392662);const _0x28ee47=Array['from'](_0x9a3e51['domChildrenToView'](_0x4b7e17));_0x28ee47['length']>0x1?_0x5097fd['_appendChild'](_0x28ee47):_0x5097fd=_0x28ee47[0x0];}}}if(_0xedbd36['customProperties']){for(const [_0xddf4ab,_0x39d73e]of _0xedbd36['customProperties'])_0x5097fd['_setCustomProperty'](_0xddf4ab,_0x39d73e);}const _0x2965c0=void 0x0===_0xedbd36['fillerOffset']?null:_0xedbd36['fillerOffset'];return null!==_0x2965c0&&(_0x5097fd['getFillerOffset']=()=>_0x2965c0),_0x5097fd;}}['_makeModelFromViewString'](_0x34cea4){const _0x51b587=JSON['parse'](_0x34cea4),_0x2f827a=this['editor']['editing']['view']['document'],_0x5ebc8e=new _0x1dd5f6(_0x2f827a,_0x51b587['map'](_0xb602be=>this['_getViewFromDiffObj'](_0xb602be,!0x0)));return this['editor']['data']['toModel'](_0x5ebc8e);}['_removeRevisionMarkers'](_0x68a804){return(_0x68a804=_0x68a804['filter'](_0x534e2d=>!_0x534e2d['name']||'revision-start'!==_0x534e2d['name']&&'revision-end'!==_0x534e2d['name']))['forEach'](_0x498f26=>{'string'!=typeof _0x498f26&&(_0x498f26['children']=this['_removeRevisionMarkers'](_0x498f26['children']),_0x498f26['attributes']=_0x498f26['attributes']['filter'](_0x1a4bac=>!_0x1a4bac[0x0]['startsWith']('data-revision-')));}),_0x68a804;}}function R(_0x1d417f,_0x2c0151,_0x5607c2){const t=_0x1d417f['t'];switch(_0x2c0151){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'},_0x5607c2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5607c2);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x3c3b37{['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[_0x274b00,S,$,_0x5aed72];}constructor(_0x31153f){super(_0x31153f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new K(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x11dddb=_0x16b0b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x11dddb},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 _0x45ed4d=this['repository']['getRevision'](0x0),_0x5f4284=_0x45ed4d&&null===_0x45ed4d['creator']?_0x45ed4d:null;if(this['_continueCurrentRevision']=!!_0x5f4284&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x38c362=this['_source']['getCurrentRevisionId'](),_0xd87a16=this['repository']['getRevision'](_0x38c362);if(_0xd87a16)this['_startingVersion']=_0xd87a16['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x548fac=this['_source']['history']['_operations']['find'](_0x8276cf=>!_0x8276cf['_isInit']),_0x24f786=_0x548fac?_0x548fac['baseVersion']:this['_source']['history']['version'];_0x45ed4d?(_0x45ed4d['toVersion']<_0x24f786&&_0x45ed4d['_update']({'toVersion':_0x24f786}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5f4284['id'],this['_startingVersion']=_0x5f4284['fromVersion']):(this['_startingVersion']=_0x45ed4d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x24f786,this['_continueCurrentRevision']=!0x1);}}else _0x5f4284&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5f4284['toVersion'],this['editor']['model']['document']['history']['version']),_0x5f4284['fromVersion']===_0x5f4284['toVersion']?(0x0!==_0x5f4284['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5f4284['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5f4284['id'],this['_startingVersion']=_0x5f4284['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',_0x872183=>!_0x872183),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x399b46=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x462faa;for(const _0x51ec8d in _0x399b46){const _0x38e978=_0x51ec8d,_0xdeee27=_0x399b46[_0x38e978];if('revisionHistoryLicenseKeyValid'==_0xdeee27||'revisionHistoryLicenseKeyInvalid'==_0xdeee27||'revisionHistoryLicenseKeyExpired'==_0xdeee27||'revisionHistoryLicenseKeyDomainLimit'==_0xdeee27||'revisionHistoryLicenseKeyNotAllowed'==_0xdeee27||'revisionHistoryLicenseKeyEvaluationLimit'==_0xdeee27||'revisionHistoryLicenseKeyTrialLimit'==_0xdeee27||'revisionHistoryLicenseKeyUsageLimit'==_0xdeee27){delete _0x399b46[_0x38e978],_0x462faa=_0xdeee27,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x462faa&&_0x399b46['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x462faa&&_0x399b46['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x462faa&&_0x399b46['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x462faa&&_0x399b46['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x462faa&&_0x399b46['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x462faa&&_0x399b46['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x462faa&&_0x399b46['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5616fb=this['repository']['getRevision'](0x0),_0x2b829a=await this['getRevisionDocumentData'](_0x5616fb),_0x25d3c3=await this['getRevisionRootsAttributes'](_0x5616fb);this['_replaceEditorDataWithRevisionData'](_0x2b829a,_0x25d3c3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xb45a61){this['_source']=_0xb45a61;}async['update'](){const _0x40c9df=await this['_source']['getLatestVersion']();if(_0x40c9df>this['currentRevision']['toVersion']){await this['_loadState']();const _0x187b00=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x40c9df});_0x187b00['authors']=_0x187b00['authorsIds']['map'](_0x237c50=>this['editor']['plugins']['get']('Users')['getUser'](_0x237c50)),this['currentRevision']['_update'](_0x187b00);}}async['saveRevision'](_0x1b94a7={},_0x10a480=null){const _0x170c78=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x10a480>this['currentRevision']['toVersion']&&(_0x10a480=null),null===_0x10a480&&(_0x10a480=await this['_source']['getLatestVersion']());const _0x202b1d=this['_getFromVersion'](_0x10a480),_0x884a1=this['buildRevisionData']({'from':_0x202b1d,'to':_0x10a480});if(this['currentRevision']['toVersion']<_0x10a480){const _0x2f4bae=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x10a480,'to':_0x10a480});_0x2f4bae['authors']=[],_0x2f4bae['authorsIds']=[],_0x2f4bae['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2f4bae,!0x0),delete _0x2f4bae['authors'],_0x170c78['push'](_0x2f4bae);}_0x1b94a7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1b94a7['name']=_0x1b94a7['name']||null,_0x1b94a7['id']=_0x1b94a7['id']||_0x16b0b(),_0x1b94a7={..._0x1b94a7,..._0x884a1};const _0x2e8db4=this['addRevisionData'](_0x1b94a7);_0x170c78['push'](_0x1b94a7);const _0x6b6adc=this['repository']['getIndex'](_0x2e8db4);if(0x0!==_0x6b6adc){const _0x682a53=this['repository']['getRevision'](_0x6b6adc-0x1);if(_0x682a53['fromVersion']!==_0x10a480){const _0x2bdafa=this['_revisionDataBuilder']['getData'](_0x10a480,_0x682a53['toVersion']),_0x19ef6d={'id':_0x682a53['id'],'diffData':_0x2bdafa['diffData'],'authorsIds':_0x2bdafa['authorsIds'],'authors':_0x2bdafa['authorsIds']['map'](_0x59875e=>this['editor']['plugins']['get']('Users')['getUser'](_0x59875e)),'fromVersion':_0x10a480};_0x682a53===this['currentRevision']&&(_0x19ef6d['createdAt']=new Date(_0x1b94a7['createdAt']['getTime']()+0xa)),_0x682a53['_update'](_0x19ef6d,!0x0),delete _0x19ef6d['authors'],_0x170c78['push'](_0x19ef6d);}}if(this['adapter']){for(const _0x53ee27 of _0x170c78)this['_bufferUpdate'](_0x53ee27['id'],_0x53ee27,!0x0);this['sendBufferedUpdates']();}return _0x2e8db4;}['addRevisionData'](_0x54575a){const _0x2b35ea=this['repository']['createRevision'](_0x54575a);return this['adapter']&&_0x2b35ea['on']('_update',(_0x41452b,_0x4daf0e,_0x26a66b)=>{_0x26a66b||(this['_bufferUpdate'](_0x4daf0e['id'],_0x4daf0e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2b35ea,this['_findInsertionIndex'](_0x2b35ea)),_0x2b35ea;}async['getRevisionDocumentData'](_0x1d268e){return await this['_utils']['loadRevisionData'](_0x1d268e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1d268e);}async['getRevisionRootsAttributes'](_0x2097cb){return await this['_utils']['loadRevisionData'](_0x2097cb,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2097cb);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xec6398=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2faf32=0x0;_0x2faf32<_0xec6398['length'];_0x2faf32++){const _0x380748=_0xec6398[_0x2faf32];let _0xfbbf9a=!0x1;for(const _0x4d1ffd of Object['keys'](_0x380748))void 0x0===_0x380748[_0x4d1ffd]?delete _0x380748[_0x4d1ffd]:'id'!==_0x4d1ffd&&(_0xfbbf9a=!0x0);_0xfbbf9a||(_0xec6398[_0x2faf32]=null);}if(_0xec6398=_0xec6398['filter'](_0x3b0ce1=>null!==_0x3b0ce1),!_0xec6398['length'])return;for(let _0x18d0f8=0x0;_0x18d0f8<_0xec6398['length'];_0x18d0f8++){const _0x156ebf=_0xec6398[_0x18d0f8];void 0x0!==_0x156ebf['fromVersion']&&void 0x0===_0x156ebf['toVersion']&&(_0x156ebf['toVersion']=this['repository']['getRevision'](_0x156ebf['id'])['toVersion']),void 0x0!==_0x156ebf['toVersion']&&void 0x0===_0x156ebf['fromVersion']&&(_0x156ebf['fromVersion']=this['repository']['getRevision'](_0x156ebf['id'])['fromVersion']);}const _0x21a146=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xec6398,_0x21a146)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2497a1=>{if(_0x2497a1){for(const _0x3a571c of _0x2497a1)this['setRevisionData']({'id':_0x3a571c['id'],'createdAt':_0x3a571c['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x56ab4a=null,from:_0x24c84d=null,to:_0x2f7c99=null}){_0x24c84d=null!==_0x24c84d?_0x24c84d:_0x56ab4a['fromVersion'],_0x2f7c99=null!==_0x2f7c99?_0x2f7c99:_0x56ab4a['toVersion'];const _0x16d4bf=this['_revisionDataBuilder']['getData'](_0x24c84d,_0x2f7c99),_0x3d723f={'diffData':_0x16d4bf['diffData'],'authorsIds':_0x16d4bf['authorsIds'],'fromVersion':_0x24c84d,'toVersion':_0x2f7c99};if(!_0x56ab4a||_0x2f7c99!==_0x56ab4a['toVersion']){const _0x214088=_0x2f7c99-0x1,_0x474d85=this['_source']['history']['getOperation'](_0x214088);_0x3d723f['createdAt']=_0x474d85&&_0x474d85['createdAt']||new Date();}if(this['_loadedStateData']&&_0x24c84d===this['_loadedStateData']['fromVersion']){for(const _0x450fda of this['_loadedStateData']['authors'])_0x3d723f['authorsIds']['includes'](_0x450fda['id'])||_0x3d723f['authorsIds']['push'](_0x450fda['id']);}return _0x3d723f;}['_bufferUpdate'](_0x1cc171,_0x4ee026,_0x55a184){if(this['_bufferedUpdates']['has'](_0x1cc171)){const _0x1171da=this['_bufferedUpdates']['get'](_0x1cc171);_0x4ee026=_0x55a184?{..._0x1171da,..._0x4ee026}:{..._0x4ee026,..._0x1171da};}this['_bufferedUpdates']['set'](_0x1cc171,_0x4ee026);}['setRevisionData'](_0x21d411){const _0x234ecd=this['repository']['getRevision'](_0x21d411['id']);if(_0x21d411['createdAt']&&(_0x21d411['createdAt']=new Date(_0x21d411['createdAt'])),_0x21d411['authorsIds']){const _0x91314b=this['editor']['plugins']['get']('Users');_0x21d411['authors']=_0x21d411['authorsIds']['map'](_0x155bf6=>_0x91314b['getUser'](_0x155bf6));}_0x234ecd['_update'](_0x21d411,!0x0);}['_createInitialRevision'](_0x2b3c29){const _0x280321=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x280321)this['_initialRevisionId']=_0x280321['id'];else{const _0x166649=!this['editor']['model']['document']['roots']['find'](_0xb8de1e=>this['editor']['model']['hasContent'](_0xb8de1e)),_0x3052ca=this['editor']['plugins']['get']('Users')['me']['id'],_0x16fa7d=R(this['editor']['locale'],_0x166649?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2b3c29,'to':_0x2b3c29,'id':this['_initialRevisionId'],'name':_0x16fa7d,'creatorId':_0x3052ca});}}['_createCurrentRevision'](_0x551d64){const _0x11ede1=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x11ede1),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x551d64,'to':_0x551d64,'id':_0x11ede1,'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'](_0x33f8ca,_0x4aed7b){let _0x4f63b0=this['editor']['config']['get']('initialData'),_0x38f1ab=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4f63b0){_0x4f63b0={};for(const _0x582748 of this['editor']['model']['document']['getRootNames']())_0x4f63b0[_0x582748]='';}if('string'==typeof _0x4f63b0&&(_0x4f63b0={'main':_0x4f63b0}),void 0x0===_0x38f1ab){_0x38f1ab={};for(const _0x175260 of this['editor']['model']['document']['getRootNames']())_0x38f1ab[_0x175260]={};}let _0x26c713=!0x1;const _0x2156e2=Object['keys'](_0x4f63b0),_0x2ac5e2=Object['keys'](_0x33f8ca);for(const _0x2bba46 of _0x2156e2){if(_0x4f63b0[_0x2bba46]!==_0x33f8ca[_0x2bba46]&&''!==_0x4f63b0[_0x2bba46]['trim']()){_0x26c713=!0x0;break;}if(!_0x4b2597(_0x38f1ab[_0x2bba46],_0x4aed7b[_0x2bba46])&&Object['keys'](_0x38f1ab[_0x2bba46])['length']>0x0){_0x26c713=!0x0;break;}}_0x26c713||(_0x26c713=_0x2ac5e2['some'](_0x13af36=>!this['editor']['model']['document']['getRoot'](_0x13af36))),_0x26c713&&_0x8ba4a9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4f63b0,'editorRootsAttributes':_0x38f1ab,'revisionData':_0x33f8ca,'revisionRootsAttributes':_0x4aed7b}),this['editor']['config']['set']('initialData',_0x33f8ca),this['editor']['config']['set']('rootsAttributes',_0x4aed7b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xaf6519=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xaf6519['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x272258){const _0x26739a=this['repository']['getRevisions']();_0x26739a['reverse']();let _0x4de59e=0x0;for(;_0x4de59e<_0x26739a['length'];){const _0x35fed2=_0x26739a[_0x4de59e];if(_0x35fed2===this['currentRevision']){_0x4de59e++;continue;}if(_0x35fed2['id']===this['_initialRevisionId'])break;const _0x2efda5=_0x272258['toVersion']-_0x35fed2['toVersion']||_0x272258['fromVersion']-_0x35fed2['fromVersion'];if(_0x2efda5>0x0)break;if(_0x2efda5<0x0)_0x4de59e++;else{if(!_0x272258['creator']&&_0x35fed2['creator'])break;if(_0x35fed2['creator']||!_0x272258['creator']){if(_0x272258['createdAt']>_0x35fed2['createdAt'])break;_0x4de59e++;}else _0x4de59e++;}}return _0x4de59e;}['_getFromVersion'](_0xd9b920){const _0x319fd9=this['repository']['getRevisions']();_0x319fd9['reverse'](),_0x319fd9['shift']();const _0x555c0e=_0x319fd9['find'](_0x13d682=>_0x13d682['toVersion']<=_0xd9b920)['toVersion'];return _0x555c0e<this['_startingVersion']?this['_startingVersion']:_0x555c0e;}['_makeRevision']({name:_0x4f740c,from:_0x1ca1bc,to:_0x179bd8,creatorId:_0x828eed,id:_0x10049c}){const _0x421dd8=this['buildRevisionData']({'from':_0x1ca1bc,'to':_0x179bd8});_0x421dd8['name']=_0x4f740c,_0x421dd8['creatorId']=_0x828eed,_0x421dd8['id']=_0x10049c;const _0x4e8a7b=this['addRevisionData'](_0x421dd8);return this['adapter']&&this['_bufferUpdate'](_0x421dd8['id'],_0x421dd8,!0x0),_0x4e8a7b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class K{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x15d8c4){this['editor']=_0x15d8c4,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'](_0x2f1865){this['source']=_0x2f1865;const _0x1c7206=new Map(),_0x7e9f70=new Map(),_0x32a10a=this['editor']['model']['document']['roots']['map'](_0x55b358=>_0x55b358['rootName']);for(const _0x3b504b of _0x32a10a){const _0x714f06=this['editor']['model']['document']['getRoot'](_0x3b504b),_0x5ba8dc=x(_0x714f06);_0x1c7206['set'](_0x3b504b,_0x5ba8dc),_0x7e9f70['set'](_0x3b504b,Object['fromEntries'](_0x714f06['getAttributes']()));}const _0x4201b4=Array['from'](this['editor']['model']['markers'])['map'](_0x194909=>[_0x194909['name'],_0x194909['getRange']()]),_0x24ce05=this['source']['version'];this['_saveMetaData'](_0x24ce05,_0x1c7206,_0x4201b4,_0x7e9f70),this['_startingRevisionId']=this['_revisionId'];const _0x36309c=new Map(),_0x8c1c57=new Map();for(const _0x1ba41c of _0x32a10a){const _0x2f61ce=N(_0x1ba41c);_0x36309c['set'](_0x1ba41c,_0x2f61ce),_0x8c1c57['set'](_0x1ba41c,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x36309c,[],_0x8c1c57);}['getData'](_0x3dbaf5,_0x5cf482){if(this['_lastFrom']===_0x3dbaf5&&this['_lastTo']<=_0x5cf482)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5cf482,!0x0);else{if(!this['_savedMetaData']['has'](_0x3dbaf5)){const _0xbab537=this['_getPreviousFrom'](_0x3dbaf5);this['_calculateMetaData'](_0xbab537,_0x3dbaf5,!0x1);}this['_calculateMetaData'](_0x3dbaf5,_0x5cf482,!0x0);}return this['_lastFrom']=_0x3dbaf5,this['_lastTo']=_0x5cf482,this['_getState']();}['loadState'](_0x496edc){const _0xed0224=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x496edc['fromVersion'],this['_lastTo']=_0x496edc['toVersion'];for(const _0x5aa51b in _0x496edc['diffData']){const _0x72f85a=_0x496edc['diffData'][_0x5aa51b]['attachChange'],_0x330c6b=_0x1fd9bb(_0x496edc['diffData'][_0x5aa51b]['attributesBefore'])||{},_0x42096f=_0xed0224['_makeModelFromViewString'](_0x496edc['diffData'][_0x5aa51b]['deletions']);_0x42096f['rootName']=_0x5aa51b,_0x42096f['_isAttached']=!_0x72f85a||!_0x72f85a['isAttached'],_0x42096f['isAttached']=()=>_0x42096f['_isAttached'],this['_baseRoots']['set'](_0x5aa51b,_0x42096f),this['_baseRootsAttributes']['set'](_0x5aa51b,_0x330c6b),_0x72f85a&&this['_touchedRoots']['set'](_0x5aa51b,_0x72f85a);const _0x179b02=this['_makeIdsRoot'](_0x42096f);this['_baseIdsRoots']['set'](_0x5aa51b,_0x179b02);for(const [_0x3e01f2,_0x24e8a0]of _0x42096f['markers']){if(!_0x3e01f2['startsWith']('revision:'))continue;const _0x26b24f=_0x3e01f2['split'](':')[0x2];for(const _0x49e5d6 of _0x24e8a0['getWalker']({'singleCharacters':!0x0})){const _0x1c6357=this['_getVidAttributeName'](_0x49e5d6),_0xb83ef8='elementEnd'==_0x49e5d6['type']?_0x49e5d6['previousPosition']['path']['slice'](0x0,-0x1):_0x49e5d6['previousPosition']['path'],_0xd59457=_0x179b02['getNodeByPath'](_0xb83ef8)['getAttribute'](_0x1c6357);this['_touched']['set'](_0xd59457,{'userId':_0x26b24f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x29c5ff=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x312f2a=>!this['_touched']['has'](_0x312f2a));let _0x4e3e71=0x0;const _0x3371e9=new Map();for(const _0x53226d in _0x496edc['diffData']){const _0x1d38b3=_0x496edc['diffData'][_0x53226d]['attachChange'],_0x5074c6=_0x1fd9bb(_0x496edc['diffData'][_0x53226d]['attributesAfter'])||{},_0x260a20=_0xed0224['_makeModelFromViewString'](_0x496edc['diffData'][_0x53226d]['insertions']);_0x260a20['rootName']=_0x53226d,_0x260a20['_isAttached']=!_0x1d38b3||_0x1d38b3['isAttached'],_0x260a20['isAttached']=()=>_0x260a20['_isAttached'],this['_diffRoots']['set'](_0x53226d,_0x260a20),this['_diffRootsAttributes']['set'](_0x53226d,_0x5074c6);const _0x366507=this['_makeIdsRoot'](_0x260a20,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x53226d,_0x366507),_0x3371e9['set'](_0x53226d,_0x260a20['isAttached']()?_0x5074c6:{});for(const [_0x48e6e3,_0xffd7f9]of _0x260a20['markers']){if(!_0x48e6e3['startsWith']('revision:'))continue;const _0xe79487=_0x48e6e3['split'](':')[0x2];for(const _0x513fe4 of _0xffd7f9['getWalker']({'singleCharacters':!0x0})){const _0x436c0d=this['_getVidAttributeName'](_0x513fe4),_0x95ba0a=this['_revisionId']++,_0x18d2f6='elementEnd'==_0x513fe4['type']?_0x513fe4['previousPosition']['path']['slice'](0x0,-0x1):_0x513fe4['previousPosition']['path'];_0x366507['getNodeByPath'](_0x18d2f6)['_setAttribute'](_0x436c0d,_0x95ba0a),this['_touched']['set'](_0x95ba0a,{'userId':_0xe79487});}}for(const _0x34af6b of this['editor']['model']['createRangeIn'](_0x260a20)['getWalker']({'singleCharacters':!0x0})){const _0x331cae=this['_getVidAttributeName'](_0x34af6b),_0x31d81d='elementEnd'==_0x34af6b['type']?_0x34af6b['previousPosition']['path']['slice'](0x0,-0x1):_0x34af6b['previousPosition']['path'],_0x3698c2=_0x366507['getNodeByPath'](_0x31d81d);_0x3698c2['getAttribute'](_0x331cae)>0x0||_0x3698c2['_setAttribute'](_0x331cae,_0x29c5ff[_0x4e3e71++]);}for(const [_0x416513,_0x537763]of _0x260a20['markers'])_0x416513['startsWith']('revision:')||this['_markers']['set'](_0x416513,_0x537763);}const _0x30f42c=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x30f42c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x30f42c,0x1));const _0x5c8ea3=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5c8ea3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c8ea3,0x1));const _0x2881ec=Array['from'](this['_diffRoots'])['map'](([_0x212712,_0x37ae09])=>[_0x212712,x(_0x37ae09)]);this['_saveMetaData'](this['_lastTo'],_0x2881ec,this['_markers'],_0x3371e9);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5e6035,_0xa71bba,_0xd12f9b,_0x1cb716){const _0x398afc=new Map(_0xa71bba),_0x15a68b=new Map(_0x1fd9bb(_0x1cb716)),_0x3abca2=new Map();for(const [_0x2ec6b0,_0x29a566]of _0xd12f9b)_0x3abca2['set'](_0x2ec6b0,{'start':_0x29a566['start']['clone'](),'end':_0x29a566['end']['clone'](),'rootName':_0x29a566['root']['rootName']});this['_savedMetaData']['set'](_0x5e6035,{'roots':_0x398afc,'markers':_0x3abca2,'rootsAttributes':_0x15a68b});}['_removeMetaData'](_0x56109e){this['_savedMetaData']['delete'](_0x56109e);}['_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'](_0x54119f,_0x224314=null){let _0x5b14f5=null;_0x54119f['is']('documentFragment')||(_0x5b14f5=new nt(_0x54119f['name'],{'vid_start':null===_0x224314?this['_revisionId']++:_0x224314++}));const _0x1f72f6=[];for(const _0x36c661 of _0x54119f['getChildren']())if(_0x36c661['is']('element')){_0x1f72f6['push'](this['_makeIdsRoot'](_0x36c661,_0x224314));const _0x25583a=_0x1f72f6[_0x1f72f6['length']-0x1];null!==_0x224314&&(_0x224314=_0x25583a['is']('element','$text')?_0x25583a['getAttribute']('vid')+0x1:_0x25583a['getAttribute']('vid_end')+0x1);}else{for(let _0x3b8b70=0x0;_0x3b8b70<_0x36c661['offsetSize'];_0x3b8b70++)_0x1f72f6['push'](new nt('$text',{'vid':null===_0x224314?this['_revisionId']++:_0x224314++}));}if(_0x54119f['is']('documentFragment')){const _0x3fb727=N(_0x54119f['rootName']);return _0x3fb727['_insertChild'](0x0,_0x1f72f6),_0x3fb727;}return _0x5b14f5['_setAttribute']('vid_end',null===_0x224314?this['_revisionId']++:_0x224314++),_0x5b14f5['_insertChild'](0x0,_0x1f72f6),_0x5b14f5;}['_calculateMetaData'](_0x434657,_0x330980,_0x95b6ae){this['_reset']();const {roots:_0x2cc456,markers:_0x31a577,rootsAttributes:_0x1c1841}=this['_savedMetaData']['get'](_0x434657);this['_baseRoots']=new Map(_0x2cc456),this['_baseRootsAttributes']=new Map(_0x1fd9bb(_0x1c1841));for(const [_0x14a1ab,_0x3ecac7]of this['_baseRoots'])if('$graveyard'!==_0x14a1ab&&(this['_diffRoots']['set'](_0x14a1ab,x(_0x3ecac7)),this['_diffRootsAttributes']=new Map(_0x1fd9bb(_0x1c1841)),_0x95b6ae)){const _0x2ae5eb=this['_revisionId'];this['_idsRoots']['set'](_0x14a1ab,this['_makeIdsRoot'](_0x3ecac7)),this['_baseIdsRoots']['set'](_0x14a1ab,this['_makeIdsRoot'](_0x3ecac7,_0x2ae5eb));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x95b6ae&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x31b31e,_0x229a30]of _0x31a577){const _0x1aac7c=this['_baseRoots']['get'](_0x229a30['rootName']),_0x35618f=this['_diffRoots']['get'](_0x229a30['rootName']),_0xdf3fa3=new rt(this['_fixPosition'](_0x229a30['start'],_0x1aac7c),this['_fixPosition'](_0x229a30['end'],_0x1aac7c)),_0x2e0138=this['_fixRange'](_0xdf3fa3,_0x35618f);_0x1aac7c['markers']['set'](_0x31b31e,_0xdf3fa3),this['_markers']['set'](_0x31b31e,_0x2e0138);}this['_applyOperations'](_0x434657,_0x330980,_0x95b6ae);}['_applyOperations'](_0x1debc3,_0x3eb721,_0x3a991c){for(const _0x32a6b2 of this['source']['getOperations'](_0x1debc3,_0x3eb721))this['_handleOperation'](_0x32a6b2,_0x3a991c);for(const _0x5e7683 of this['_diffRoots']['values']())_0x5e7683['markers']['clear']();for(const [_0x471936,_0x228838]of this['_markers']){this['_diffRoots']['get'](_0x228838['root']['rootName'])['markers']['set'](_0x471936,_0x228838['clone']());}const _0x1ce69a=new Map(),_0x18517f=new Map();for(const [_0x51d8c3,_0x1bd4c]of this['_diffRoots'])_0x1ce69a['set'](_0x51d8c3,x(_0x1bd4c)),_0x18517f['set'](_0x51d8c3,this['_diffRootsAttributes']['get'](_0x51d8c3));this['_saveMetaData'](_0x3eb721,_0x1ce69a,this['_markers'],_0x18517f);}['_getPreviousFrom'](_0x3910b8){const _0x5eadc3=Array['from'](this['_savedMetaData']['keys']());_0x5eadc3['sort']((_0x5a1ffe,_0x495306)=>_0x5a1ffe-_0x495306),_0x5eadc3['reverse']();for(const _0xb05112 of _0x5eadc3)if(_0xb05112<_0x3910b8)return _0xb05112;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4be749,_0x5b5b2e){const _0x38ed1f=Array['from'](_0x5b5b2e['markers'])['map'](([_0x45d644,_0x34107a])=>[_0x45d644,this['_fixRange'](_0x34107a,_0x4be749)]);_0x4be749['markers']=new Map(_0x38ed1f);}['_transformMarkers'](_0x3ee435){for(const _0x3927f5 of this['_markers']['values']()){const _0x15d714=_0x3927f5['getTransformedByOperation'](_0x3ee435),_0x5aea4e=rt['_createFromRanges'](_0x15d714);_0x3927f5['start']=_0x5aea4e['start'],_0x3927f5['end']=_0x5aea4e['end'];}}['_handleOperation'](_0x438492,_0x462e55){if('addRoot'!=_0x438492['type']&&'detachRoot'!=_0x438492['type']){if('insert'==_0x438492['type']){const _0x467209=_0x438492['position']['root']['rootName'];this['_diffRoots']['has'](_0x467209)||(this['_diffRoots']['set'](_0x467209,N(_0x467209,!0x0)),this['_diffRootsAttributes']['set'](_0x467209,{}),_0x462e55&&this['_idsRoots']['set'](_0x467209,N(_0x467209,!0x0)));}else{if('addRootAttribute'==_0x438492['type']||'removeRootAttribute'==_0x438492['type']||'changeRootAttribute'==_0x438492['type'])return void this['_handleRootAttributeOperation'](_0x438492);'marker'==_0x438492['type']&&this['_handleMarkerOperation'](_0x438492);}if('marker'!==_0x438492['type']){const _0x143ca9=this['_cloneOperation'](_0x438492,this['_diffRoots']);_0x143ca9['_execute'](),this['_transformMarkers'](_0x143ca9);}if(_0x462e55)switch(_0x438492['type']){case'insert':this['_handleInsertOperation'](_0x438492);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x438492);break;case'merge':this['_handleMergeOperation'](_0x438492);break;case'split':this['_handleSplitOperation'](_0x438492);}}else this['_handleRootOperation'](_0x438492,_0x462e55);}['_cloneOperation'](_0x220d3b,_0x584f94){const _0x2105ad=_0x220d3b['clone']();return _0x2105ad['_authorId']=_0x220d3b['_authorId'],this['_fixOperation'](_0x2105ad,_0x584f94),_0x2105ad;}['_getBaseVids'](_0x1f1451){return _0x1f1451['map'](_0x2e178a=>{const _0x1717f7=this['_getVidAttributeName'](_0x2e178a);return Number(_0x2e178a['item']['getAttribute'](_0x1717f7));});}['_generateTape'](_0x1ad833,_0x5bc528){if(_0x1ad833['is']('element','$text'))_0x5bc528['push']({'item':_0x1ad833,'type':'text'});else{_0x1ad833['is']('element')&&_0x5bc528['push']({'item':_0x1ad833,'type':'elementStart'});for(const _0x48737b of _0x1ad833['getChildren']())this['_generateTape'](_0x48737b,_0x5bc528);_0x1ad833['is']('element')&&_0x5bc528['push']({'item':_0x1ad833,'type':'elementEnd'});}return _0x5bc528;}['_getState'](){const _0x39da76=new Map(this['_touched']),_0x192ffa=new Map(_0x39da76),_0x291dfa=new Map(),_0x175906={'insertions':{},'deletions':{}},_0xe44e2d={'insertions':{},'deletions':{}},_0x26a403=new Map(),_0x2402c4=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2402c4['delete']('$graveyard');for(const _0x355555 of _0x2402c4){const _0x4238b6=this['_diffRoots']['get'](_0x355555)||N(_0x355555,!0x1),_0x3973da=this['_baseRoots']['get'](_0x355555)||N(_0x355555,!0x1);_0x4238b6['isAttached']()||_0x3973da['isAttached']()?(_0x175906['insertions'][_0x355555]=x(_0x4238b6),_0x175906['deletions'][_0x355555]=x(_0x3973da),this['_copyMarkers'](_0x175906['deletions'][_0x355555],_0x3973da),this['_copyMarkers'](_0x175906['insertions'][_0x355555],_0x4238b6),_0xe44e2d['insertions'][_0x355555]=this['_generateTape'](this['_idsRoots']['get'](_0x355555),[]),_0xe44e2d['deletions'][_0x355555]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x355555)||N(_0x355555,!0x1),[])):_0x2402c4['delete'](_0x355555);}for(const _0x113225 of _0x2402c4){const _0x4368b2=_0xe44e2d['insertions'][_0x113225];for(const _0x1fade2 of _0x4368b2){const _0x505e6a=this['_getVidAttributeName'](_0x1fade2),_0x26d0a1=_0x1fade2['item']['getAttribute'](_0x505e6a);_0x192ffa['delete'](_0x26d0a1),_0x26d0a1>=this['_startingRevisionId']&&_0x291dfa['set'](_0x26d0a1,_0x39da76['get'](_0x26d0a1));}}for(const _0x5c372e of _0x2402c4){const _0x3e094b=_0xe44e2d['insertions'][_0x5c372e],_0xc56d81=this['_getBaseVids'](_0xe44e2d['deletions'][_0x5c372e]);let _0x547479=0x0;for(const _0x45477f of _0x3e094b){const _0x5d6502=this['_getVidAttributeName'](_0x45477f),_0x45b5dc=_0x45477f['item']['getAttribute'](_0x5d6502);if(!_0x291dfa['has'](_0x45b5dc)&&!_0x26a403['has'](_0x45b5dc)){if(_0x192ffa['has'](_0x45b5dc))_0x547479++;else{if(_0x45b5dc!=_0xc56d81[_0x547479]){const _0x2f7fe0=_0x39da76['get'](_0x45b5dc)||_0x39da76['get'](_0xc56d81[_0x547479]);for(;_0x45b5dc!=_0xc56d81[_0x547479];)_0x192ffa['has'](_0xc56d81[_0x547479])||(_0x26a403['set'](_0xc56d81[_0x547479],_0x2f7fe0),_0x39da76['set'](_0xc56d81[_0x547479],_0x2f7fe0)),_0x547479++;}_0x547479++;}}}}for(const _0x4b5d10 of _0x2402c4){const _0x44c310=_0xe44e2d['insertions'][_0x4b5d10];for(const _0x2f0aee of _0x44c310){const _0x2e4a66=this['_getVidAttributeName'](_0x2f0aee),_0x488f73=_0x2f0aee['item']['getAttribute'](_0x2e4a66);if(_0x26a403['has'](_0x488f73)){const _0x5ac317=_0x26a403['get'](_0x488f73);_0x192ffa['has'](_0x488f73)||_0x192ffa['set'](_0x488f73,{..._0x5ac317}),_0x291dfa['set'](_0x488f73,{..._0x5ac317});}}}for(const _0x81820e of _0x192ffa['keys']())_0x81820e>=this['_startingRevisionId']&&_0x192ffa['delete'](_0x81820e);const _0x41c159=new Map();for(const _0x25f75f of _0x2402c4){let _0x2d2e3a=_0xe44e2d['insertions'][_0x25f75f];for(const _0x298dc9 of _0x2d2e3a)if(_0x298dc9['item']['is']('element','tableCell')){const _0x268ede=this['_getVidAttributeName'](_0x298dc9),_0x1b6be0=_0x298dc9['item']['getAttribute'](_0x268ede);if(_0x291dfa['has'](_0x1b6be0)){const _0x529e45=_0x298dc9['item']['parent']['parent']['getAttribute']('vid_start'),_0xb834cf=_0x41c159['get'](_0x529e45)||new Set();_0xb834cf['add'](_0x291dfa['get'](_0x1b6be0)['userId']),_0x41c159['set'](_0x529e45,_0xb834cf);}}_0x2d2e3a=_0xe44e2d['deletions'][_0x25f75f];for(const _0x353c18 of _0x2d2e3a)if(_0x353c18['item']['is']('element','tableCell')){const _0x20e2d6=this['_getVidAttributeName'](_0x353c18),_0x29645a=_0x353c18['item']['getAttribute'](_0x20e2d6);if(_0x192ffa['has'](_0x29645a)){const _0xe6ba48=_0x353c18['item']['parent']['parent']['getAttribute']('vid_start'),_0x390064=_0x41c159['get'](_0xe6ba48)||new Set();_0x390064['add'](_0x192ffa['get'](_0x29645a)['userId']),_0x41c159['set'](_0xe6ba48,_0x390064);}}for(const _0x359cf9 of _0x41c159['keys']())(_0x291dfa['has'](_0x359cf9)||_0x192ffa['has'](_0x359cf9))&&_0x41c159['delete'](_0x359cf9);}for(const _0x55610c of _0x2402c4){const _0x31a68d=_0xe44e2d['insertions'][_0x55610c];let _0x512e23=null,_0x2c3613=null;for(const _0x61ca3 of _0x31a68d){const _0x4af7dc=this['_getVidAttributeName'](_0x61ca3),_0x34562b=_0x61ca3['item']['getAttribute'](_0x4af7dc),_0x2341cf=_0x41c159['get'](_0x34562b);_0x2341cf&&'elementStart'==_0x61ca3['type']&&(_0x512e23=Array['from'](_0x2341cf)[0x0],_0x2c3613=_0x61ca3['item']['getAttribute']('vid_end')),_0x512e23&&(_0x192ffa['set'](_0x34562b,{'userId':_0x512e23}),_0x291dfa['set'](_0x34562b,{'userId':_0x512e23})),_0x34562b==_0x2c3613&&(_0x512e23=null,_0x2c3613=null);}}const _0x538c39={},_0x34dc2d=new Set();for(const _0x55f40b of _0x2402c4){const _0x571b7b=_0x175906['deletions'][_0x55f40b],_0x5ce960=_0x175906['insertions'][_0x55f40b];for(const {userId:_0x475c49}of this['_touchedMarkers']['values']())null!==_0x475c49&&_0x34dc2d['add'](_0x475c49);for(const {userId:_0x2b04c3}of this['_touchedRoots']['values']())null!==_0x2b04c3&&_0x34dc2d['add'](_0x2b04c3);this['_markChanges'](_0x5ce960,_0xe44e2d['insertions'][_0x55f40b],_0x291dfa,'insertion',_0x34dc2d),this['_markChanges'](_0x571b7b,_0xe44e2d['deletions'][_0x55f40b],_0x192ffa,'deletion',_0x34dc2d),_0x538c39[_0x55f40b]={'insertions':this['_prepareViewToSave'](_0x5ce960),'deletions':this['_prepareViewToSave'](_0x571b7b),'attachChange':this['_touchedRoots']['get'](_0x55f40b)||null,'attributesBefore':_0x1fd9bb(this['_baseRootsAttributes']['get'](_0x55f40b))||{},'attributesAfter':_0x1fd9bb(this['_diffRootsAttributes']['get'](_0x55f40b))};}return{'diffData':_0x538c39,'authorsIds':Array['from'](_0x34dc2d)};}['_processRootBeforeSave'](_0x27dda1){for(const [,_0x4395af]of _0x27dda1['markers']){const _0x3010b9=_0x4395af['start']['getAncestors']()['filter'](_0x46bace=>'tableCell'==_0x46bace['name']);for(const _0x5a0826 of _0x3010b9)0x1==_0x5a0826['childCount']&&_0x5a0826['getChild'](0x0)['is']('element','paragraph')&&_0x5a0826['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x988ccb){this['_processRootBeforeSave'](_0x988ccb);const _0x223b47=this['editor']['data']['toView'](_0x988ccb,{}),_0x46271b=Array['from'](_0x223b47['getChildren']())['map'](_0x29b0ed=>this['_getViewJson'](_0x29b0ed));return JSON['stringify'](_0x46271b);}['_getViewJson'](_0x175649){if(_0x175649['is']('$text'))return _0x175649['data'];{const _0x4ddc93=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x236dd1=_0x175649,_0xd121cb=this['editor']['data']['htmlProcessor']['domConverter'],_0x14cbc2={'type':_0x4ddc93['_getTypeCharForViewElement'](_0x236dd1),'name':_0x236dd1['name'],'attributes':Array['from'](_0x236dd1['getAttributes']()),'children':Array['from'](_0x236dd1['getChildren']())['map'](_0x4353bf=>this['_getViewJson'](_0x4353bf))};if(_0x175649['is']('uiElement')&&'$comment'!=_0x175649['name']){const _0x11b624=_0x175649['render'](_0xd121cb['domDocument'],_0xd121cb);_0x14cbc2['children']['push'](_0x11b624['outerHTML']);}else{if(_0x175649['is']('rawElement')){const _0x43a339=_0xd121cb['domDocument']['createElement'](_0x236dd1['name']);_0x175649['render'](_0x43a339,_0xd121cb),_0x14cbc2['children']['push'](_0x43a339['innerHTML']);}}const _0x3485c9=Array['from'](_0x236dd1['getCustomProperties']());_0x3485c9['length']>0x0&&(_0x14cbc2['customProperties']=_0x3485c9);const _0x13462d=_0x236dd1['getFillerOffset']();return null!==_0x13462d&&(_0x14cbc2['fillerOffset']=_0x13462d),_0x14cbc2;}}['_markChanges'](_0x510264,_0x21740b,_0x15ab2c,_0x2e72fa,_0x17878e){let _0x360dcb=null,_0x14804f=null,_0x1e9115=0x0;const _0x2d1f83=this['editor']['model'];for(let _0xd4ba5f=0x0;_0xd4ba5f<_0x21740b['length'];_0xd4ba5f++){const _0x801660=this['_getVidAttributeName'](_0x21740b[_0xd4ba5f]),_0x395663=_0x21740b[_0xd4ba5f]['item']['getAttribute'](_0x801660),_0x11cee0=_0x15ab2c['get'](_0x395663),_0x35acef=_0xd4ba5f==_0x21740b['length']-0x1;(!_0x360dcb&&_0x11cee0&&(_0x360dcb=_0x11cee0,_0x14804f=_0x21740b[_0xd4ba5f]),_0x360dcb&&(!_0x11cee0||_0x11cee0['userId']!=_0x360dcb['userId']))&&(_0x3400ae(_0x11cee0,P(_0x14804f,_0x510264,_0x2d1f83),P(_0x21740b[_0xd4ba5f],_0x510264,_0x2d1f83)),_0x360dcb=_0x11cee0||null,_0x14804f=_0x11cee0?_0x21740b[_0xd4ba5f]:null),_0x360dcb&&_0x35acef&&_0x3400ae(_0x11cee0,P(_0x14804f,_0x510264,_0x2d1f83),V(_0x21740b[_0xd4ba5f],_0x510264,_0x2d1f83));}function _0x3400ae(_0x291eeb,_0x16c893,_0x3c86e3){const _0x106ed9=_0x360dcb['userId'],_0x348b17='revision:'+_0x2e72fa+':'+_0x106ed9+':'+_0x1e9115++,_0x55713d=_0x2d1f83['createRange'](_0x16c893,_0x3c86e3);_0x510264['markers']['set'](_0x348b17,_0x55713d),null!==_0x106ed9&&_0x17878e['add'](_0x106ed9);}}['_getVidAttributeName'](_0x5a9c80){switch(_0x5a9c80['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2390f4,_0xe5175){_0x2390f4['baseVersion']=null;for(const _0x26c863 in _0x2390f4){const _0x57e5a1=_0x2390f4[_0x26c863];if(_0x57e5a1 instanceof at){const _0x1b643d=_0xe5175['get'](_0x57e5a1['root']['rootName']);_0x2390f4[_0x26c863]=this['_fixPosition'](_0x57e5a1,_0x1b643d);}if(_0x57e5a1 instanceof rt){const _0x277050=_0xe5175['get'](_0x57e5a1['root']['rootName']);_0x2390f4[_0x26c863]=this['_fixRange'](_0x57e5a1,_0x277050);}'root'===_0x26c863&&(_0x2390f4['root']=_0xe5175['get'](_0x2390f4['root']['rootName']));}}['_fixRange'](_0x2b7f99,_0xfd39e1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2b7f99['start'],_0xfd39e1),this['_fixPosition'](_0x2b7f99['end'],_0xfd39e1));}['_fixPosition'](_0x4beaf8,_0x15b124){return this['editor']['model']['createPositionFromPath'](_0x15b124,_0x4beaf8['path'],_0x4beaf8['stickiness']);}['_handleInsertOperation'](_0x42d0d7){const _0x537d68=this['_idsRoots']['get'](_0x42d0d7['position']['root']['rootName']),_0x401157=this['_fixPosition'](_0x42d0d7['position'],_0x537d68),_0x2b9830=null===_0x42d0d7['_authorId']?null:_0x42d0d7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x596473=_0x401157['parent'],_0x12625c=this['_revisionId'],_0x2ad04c=[];for(const _0x5a0dd4 of _0x42d0d7['nodes'])if(_0x5a0dd4['is']('element'))_0x2ad04c['push'](this['_makeIdsRoot'](_0x5a0dd4));else{for(let _0x288fe6=0x0;_0x288fe6<_0x5a0dd4['offsetSize'];_0x288fe6++)_0x2ad04c['push'](new nt('$text',{'vid':this['_revisionId']++}));}const _0x3e9407=this['_revisionId'];for(let _0x37d0cf=_0x12625c;_0x37d0cf<_0x3e9407;_0x37d0cf++)this['_touched']['set'](_0x37d0cf,{'userId':_0x2b9830});_0x596473['_insertChild'](_0x401157['offset'],_0x2ad04c);}['_handleMoveOperation'](_0x253463){(_0x253463=this['_cloneOperation'](_0x253463,this['_idsRoots']))['_execute']();const _0x58c1eb=null===_0x253463['_authorId']?null:_0x253463['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c437e=_0x253463['getMovedRangeStart'](),_0xcd7d69=_0x1c437e['parent'],_0x554818=_0x1c437e['offset'];!function _0x60a3dd(_0x538ead,_0x4f10c7,_0x508932,_0x5c0ba7){for(let _0x4d5918=_0x508932;_0x4d5918<_0x5c0ba7;_0x4d5918++){const _0x24d910=_0x4f10c7['getChild'](_0x4d5918);_0x24d910['is']('element','$text')?_0x538ead['set'](_0x24d910['getAttribute']('vid'),{'userId':_0x58c1eb}):(_0x538ead['set'](_0x24d910['getAttribute']('vid_start'),{'userId':_0x58c1eb}),_0x60a3dd(_0x538ead,_0x24d910,0x0,_0x24d910['childCount']),_0x538ead['set'](_0x24d910['getAttribute']('vid_end'),{'userId':_0x58c1eb}));}}(this['_touched'],_0xcd7d69,_0x554818,_0x554818+_0x253463['howMany']);}['_handleMergeOperation'](_0x210f7f){const _0x3ea652=null===(_0x210f7f=this['_cloneOperation'](_0x210f7f,this['_idsRoots']))['_authorId']?null:_0x210f7f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42955b=_0x210f7f['targetPosition']['parent'],_0x373de5=_0x210f7f['sourcePosition']['parent'],_0x190350=_0x42955b['getAttribute']('vid_end'),_0x50508e=_0x373de5['getAttribute']('vid_start');_0x42955b['_setAttribute']('vid_end',_0x373de5['getAttribute']('vid_end')),_0x373de5['_setAttribute']('vid_end',_0x190350),this['_touched']['set'](_0x50508e,{'userId':_0x3ea652}),this['_touched']['set'](_0x190350,{'userId':_0x3ea652}),_0x210f7f['_execute']();}['_handleSplitOperation'](_0x4c91a3){const _0x360a8e=null===(_0x4c91a3=this['_cloneOperation'](_0x4c91a3,this['_idsRoots']))['_authorId']?null:_0x4c91a3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43e276=_0x4c91a3['graveyardPosition'],_0x13e670=_0x4c91a3['splitPosition']['parent'];_0x4c91a3['_execute']();const _0x16f402=_0x13e670['getAttribute']('vid_end'),_0xe95248=_0x4c91a3['insertionPosition']['nodeAfter'];if(_0x43e276){const _0x3b3a85=_0xe95248['getAttribute']('vid_end'),_0x6c9d01=_0x13e670['getAttribute']('vid_end');_0x13e670['_setAttribute']('vid_end',_0x3b3a85),_0xe95248['_setAttribute']('vid_end',_0x6c9d01),this['_touched']['set'](_0x13e670['getAttribute']('vid_end'),{'userId':_0x360a8e}),this['_touched']['set'](_0xe95248['getAttribute']('vid_start'),{'userId':_0x360a8e});}else{const _0x15e340=this['_revisionId']++,_0x53ee72=this['_revisionId']++;_0x13e670['_setAttribute']('vid_end',_0x15e340),_0xe95248['_setAttribute']('vid_start',_0x53ee72),_0xe95248['_setAttribute']('vid_end',_0x16f402),this['_touched']['set'](_0x15e340,{'userId':_0x360a8e}),this['_touched']['set'](_0x53ee72,{'userId':_0x360a8e});}}['_handleMarkerOperation'](_0x516db1){if(!_0x516db1['affectsData'])return;const _0x4bcc83=(_0x516db1=this['_cloneOperation'](_0x516db1,this['_diffRoots']))['oldRange']?_0x516db1['oldRange']['root']:null,_0xa18535=_0x516db1['newRange']?_0x516db1['newRange']['root']:null;_0x4bcc83&&this['_markers']['delete'](_0x516db1['name']),_0xa18535&&this['_markers']['set'](_0x516db1['name'],_0x516db1['newRange']['clone']());const _0x2defd1=null===_0x516db1['_authorId']?null:_0x516db1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e366c=_0x516db1['name'];if(!this['_touchedMarkers']['has'](_0x3e366c))return void this['_touchedMarkers']['set'](_0x3e366c,{'range':_0x516db1['oldRange'],'userId':_0x2defd1});const _0x463f0c=this['_touchedMarkers']['get'](_0x3e366c),_0x2a243b=_0x463f0c['range'],_0x6186da=_0x516db1['newRange'];null==_0x2a243b&&null==_0x6186da||_0x2a243b&&_0x6186da&&_0x2a243b['isEqual'](_0x6186da)?this['_touchedMarkers']['delete'](_0x516db1['name']):_0x463f0c['userId']=_0x2defd1;}['_handleRootOperation'](_0x4b9f66,_0x30d386){this['_diffRoots']['has'](_0x4b9f66['rootName'])?this['_diffRoots']['get'](_0x4b9f66['rootName'])['_isAttached']=_0x4b9f66['isAdd']:(this['_diffRoots']['set'](_0x4b9f66['rootName'],N(_0x4b9f66['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4b9f66['rootName'],{}),_0x30d386&&this['_idsRoots']['set'](_0x4b9f66['rootName'],N(_0x4b9f66['rootName'],!0x0)));const _0x2760a5=null===_0x4b9f66['_authorId']?null:_0x4b9f66['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40bb62=this['_touchedRoots']['get'](_0x4b9f66['rootName']);_0x40bb62&&_0x40bb62['userId']===_0x2760a5?this['_touchedRoots']['delete'](_0x4b9f66['rootName']):this['_touchedRoots']['set'](_0x4b9f66['rootName'],{'userId':_0x2760a5,'isAttached':_0x4b9f66['isAdd']});}['_handleRootAttributeOperation'](_0x2ac97d){const _0x4a310b=this['_diffRootsAttributes']['get'](_0x2ac97d['root']['rootName']);null===_0x2ac97d['newValue']?delete _0x4a310b[_0x2ac97d['key']]:_0x4a310b[_0x2ac97d['key']]=_0x2ac97d['newValue'];}}function x(_0x31f864){const _0x23cc9e=N(_0x31f864['rootName'],_0x31f864['isAttached']());for(const _0x550029 of _0x31f864['getChildren']()){const _0x2a13af=_0x550029['_clone'](!0x0);_0x23cc9e['_appendChild'](_0x2a13af);}return _0x23cc9e;}function N(_0x275c8a,_0xcdaab7=!0x0){const _0x99495a=new ht();return _0x99495a['rootName']=_0x275c8a,_0x99495a['_isAttached']=_0xcdaab7,_0x99495a['isAttached']=()=>_0x99495a['_isAttached'],_0x99495a;}function P(_0x3fc4a9,_0xec4d24,_0x1bb2e7){const _0x5c5066='elementEnd'==_0x3fc4a9['type']?_0x1bb2e7['createPositionAt'](_0x3fc4a9['item'],'end'):_0x1bb2e7['createPositionBefore'](_0x3fc4a9['item']);return _0x1bb2e7['createPositionFromPath'](_0xec4d24,_0x5c5066['path'],_0x5c5066['stickiness']);}function V(_0x516d92,_0x33b915,_0x4ed555){const _0x48c9d9='elementStart'==_0x516d92['type']?_0x4ed555['createPositionAt'](_0x516d92['item'],0x0):_0x4ed555['createPositionAfter'](_0x516d92['item']);return _0x4ed555['createPositionFromPath'](_0x33b915,_0x48c9d9['path'],_0x48c9d9['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2f7aff(_0x2a7ba6){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3fec7b,_0x1111cc){super(_0x3fec7b),this['focusTracker']=new _0x3773ee(),this['keystrokes']=new _0x10b3a7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1111cc),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'](),_0x353b4f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x43f13e=_0x1254d1=>_0x1254d1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x43f13e),this['keystrokes']['set']('arrowleft',_0x43f13e),this['keystrokes']['set']('arrowup',_0x43f13e),this['keystrokes']['set']('arrowdown',_0x43f13e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3cac69){this['revisionNameInputView']['fieldView']['element']['value']=_0x3cac69['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xf986f3){const _0x6cbecb=new et(this['locale'],ti),_0x452409=_0x6cbecb['fieldView'];_0x452409['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x594efd=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0xf986f3&&(_0x594efd+='\x20('+R(this['locale'],'optional')+')'),(_0x6cbecb['label']=_0x594efd,_0x452409['on']('input',()=>{this['revisionNameInputValue']=_0x452409['element']['value']['trim']();}),_0x6cbecb);}}class v extends _0x3c3b37{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x3b19ff=this['editor'],_0x983238=_0x3b19ff['plugins']['get']('RevisionTracker');_0x3b19ff['ui']['componentFactory']['add']('revisionHistory',_0xcb36ff=>{const _0x8f0d06=_0x41dae4(_0xcb36ff),_0x2e5457=_0x8f0d06['panelView']['children'],_0x35f30d=new _0xcbdfc4(_0xcb36ff),_0x1d60c0=new _0x37ae3b(_0xcb36ff),_0x2aff2c=new _0xe89d0(_0xcb36ff),_0x529100=new _0x37ae3b(_0xcb36ff),_0x2249b5=new _0xe89d0(_0xcb36ff);return _0x8f0d06['bind']('isEnabled')['to'](_0x983238,'isReady',_0x983238,'isEnabled',_0x3b19ff,'isReadOnly',(_0x2dc9f0,_0x2c2bc3,_0xd83051)=>_0x2dc9f0&&_0x2c2bc3&&!_0xd83051),_0x8f0d06['buttonView']['set']({'icon':_0x4d8013,'label':R(_0xcb36ff,'Revision\x20history'),'tooltip':!0x0}),_0x2aff2c['set']({'label':R(_0xcb36ff,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2aff2c['bind']('isEnabled')['to'](_0x983238,'isReady',_0x983238,'isEnabled',_0x3b19ff,'isReadOnly',(_0xb37210,_0x56fb09,_0x4626a6)=>_0xb37210&&_0x56fb09&&!_0x4626a6),_0x2aff2c['on']('execute',()=>this['_showDialog']()),_0x2249b5['set']({'label':R(_0xcb36ff,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2249b5['bind']('isEnabled')['to'](_0x983238,'isReady',_0x3b19ff,'isReadOnly',(_0x1b8def,_0xf12f06)=>_0x1b8def&&!_0xf12f06),_0x2249b5['on']('execute',()=>{_0x3b19ff['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x8f0d06['isOpen']=!0x1,_0x3b19ff['editing']['view']['focus']();}),_0x1d60c0['children']['add'](_0x2aff2c),_0x529100['children']['add'](_0x2249b5),_0x35f30d['role']='menu',_0x35f30d['items']['addMany']([_0x1d60c0,_0x529100]),_0x2e5457['add'](_0x35f30d),_0x8f0d06;}),_0x3b19ff['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x369c5f=this['editor'],_0x4646d1=_0x369c5f['locale'],_0x229fa6=new _0x3a1519(_0x4646d1),_0x313bff=new _0x20fe1e(_0x4646d1);_0x229fa6['buttonView']['set']({'icon':_0x4d8013,'label':R(_0x4646d1,'Revision\x20history')});const _0x451e4b=new _0x5788fc(_0x4646d1,_0x229fa6),_0x541a3d=new _0x131ca5(_0x4646d1);_0x541a3d['set']({'label':R(_0x4646d1,'Save\x20current\x20revision')}),_0x541a3d['delegate']('execute')['to'](_0x229fa6),_0x541a3d['on']('execute',()=>{this['_showDialog']();}),_0x451e4b['children']['add'](_0x541a3d),_0x313bff['items']['add'](_0x451e4b);const _0x4447f7=new _0x5788fc(_0x4646d1,_0x229fa6),_0x36036c=new _0x131ca5(_0x4646d1);return _0x36036c['set']({'label':R(_0x4646d1,'Open\x20revision\x20history')}),_0x36036c['delegate']('execute')['to'](_0x229fa6),_0x36036c['on']('execute',()=>{_0x369c5f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4447f7['children']['add'](_0x36036c),_0x313bff['items']['add'](_0x4447f7),_0x229fa6['panelView']['children']['add'](_0x313bff),_0x229fa6;}['_showDialog'](){const _0x216c1f=this['editor'],_0x522b93=_0x216c1f['locale'],_0x165477=_0x216c1f['plugins']['get']('Dialog'),_0x537769=_0x216c1f['plugins']['get']('RevisionTracker');function _0x27dc40(_0x1875f4){_0x216c1f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1875f4['revisionName']?_0x1875f4['revisionNameInputView']['errorText']=R(_0x522b93,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x216c1f['plugins']['get'](h)['saveRevision']({'name':_0x1875f4['revisionName']}),_0x165477['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x27dc40(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x165477['show']({'id':'revisionSave','title':R(_0x522b93,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x216c1f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x165477['hide']()},{'label':R(_0x216c1f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5ac64e){_0x5ac64e['bind']('isEnabled')['to'](_0x537769,'isReady',_0x537769,'isEnabled',_0x216c1f,'isReadOnly',(_0x48665b,_0x292140,_0xbdf742)=>_0x48665b&&_0x292140&&!_0xbdf742);},'onExecute':()=>_0x27dc40(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xd3d9f9=this['editor'],_0x258abe=_0xd3d9f9['locale'];this['_saveRevisionFormView']=new me(_0x258abe,_0xd3d9f9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2a7ba6{['changeId'];['_model'];constructor(_0xd5a9c8,_0x367e5d){super(_0xd5a9c8),this['_model']=_0x367e5d,this['changeId']=_0x367e5d['id'];const _0xf4fe8d=this['bindTemplate'],_0x1b13f8=R(_0xd5a9c8,_0x367e5d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x367e5d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x367e5d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xf4fe8d['to']('type',_0x1b1aa4=>'ck-revision-change__'+_0x1b1aa4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1b13f8}]},{'text':'\x20'+_0x367e5d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5334d0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3ac056){super(),this['id']=_0x3ac056['id']||_0x16b0b(),this['author']=_0x3ac056['author'],this['type']=_0x3ac056['type'],this['data']=_0x3ac056['data']||{},this['rootName']=_0x3ac056['rootName'],this['set']('createdAt',_0x3ac056['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2ecebe,_0x441cec){this['newRevisionId']=_0x2ecebe,this['oldRevisionId']=_0x441cec,this['changes']=new _0x46abbb();}['_setChanges'](_0x34feb4){for(const _0x1c4d7f of _0x34feb4)this['changes']['add'](_0x1c4d7f);}}class l extends _0x3c3b37{['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[_0x274b00,_0x341159,S,$];}constructor(_0x552d3b){super(_0x552d3b),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',(_0x1edb7d,_0x2a9cca,_0x1a1599)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4ee229=>{for(const _0x5eab3e of this['editor']['editing']['view']['document']['roots'])_0x1a1599?_0x4ee229['removeClass']('ck-editor__editable__overlay',_0x5eab3e):_0x4ee229['addClass']('ck-editor__editable__overlay',_0x5eab3e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xe4d234=>null!==_0xe4d234),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x47b60e,_0x3eed00,_0x2f2b3e)=>_0x47b60e&&_0x2f2b3e?_0x3eed00['changes']['getIndex'](_0x2f2b3e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5287f0,_0x3b4c52)=>_0x5287f0?_0x3b4c52['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x341159);}['init'](){const _0x56de37=this['editor'],_0x259b60=new lt(_0x56de37,{'direction':'backward'}),_0x3af5fc=new lt(_0x56de37,{'direction':'forward'});(_0x56de37['commands']['add']('showPreviousChange',_0x259b60),_0x56de37['commands']['add']('showNextChange',_0x3af5fc),_0x56de37['commands']['add']('restoreRevision',new ut(_0x56de37)),this['on']('change:numberOfChanges',()=>{_0x259b60['refresh'](),_0x3af5fc['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x56de37['enableReadOnlyMode']('revision-viewer'),_0x56de37['plugins']['has']('WidgetToolbarRepository'))&&_0x56de37['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x471e84){return await this['_utils']['loadRevisionData'](_0x471e84,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x471e84);}async['getRevisionRootsAttributes'](_0x43ba5b){return await this['_utils']['loadRevisionData'](_0x43ba5b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x43ba5b);}async['compare'](_0x2c3974,_0x17e5ba,_0x17e10a=!0x1){if(!this['isEnabled'])return;const _0x34ead9=this['diff'],_0x4f2792=this['repository'],_0x44fb52='string'==typeof _0x2c3974?_0x4f2792['getRevision'](_0x2c3974):_0x2c3974,_0x25623b='string'==typeof _0x17e5ba?_0x4f2792['getRevision'](_0x17e5ba):_0x17e5ba,_0x5ec906=_0x44fb52['id'],_0x51f253=_0x25623b?_0x25623b['id']:null;if(!_0x17e10a&&this['diff']&&this['diff']['newRevisionId']===_0x5ec906&&this['diff']['oldRevisionId']===_0x51f253)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x5ec906,_0x51f253);const _0x5447e0=this['_getRevisionsRange'](_0x44fb52,_0x25623b,!0x0)['map'](_0x19be1c=>this['_utils']['loadRevisionData'](_0x19be1c,this['adapter']));return _0x5447e0['push'](new Promise(_0x61fcc5=>{setTimeout(_0x61fcc5,0x14);})),Promise['all'](_0x5447e0)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x49a1d6=this['_getDiff'](_0x5ec906,_0x51f253);for(const _0x1ead5d of _0x49a1d6['changes'])this['_changeIdToChange']['set'](_0x1ead5d['id'],_0x1ead5d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x464dc5=>{for(const _0x2419ba of this['editor']['model']['document']['getRootNames']())_0x464dc5['detachRoot'](_0x2419ba);for(const _0x26a315 of Object['keys'](_0x49a1d6['model'])){const _0x4352c0=_0x464dc5['addRoot'](_0x26a315);for(const _0x2ca584 of Object['keys'](_0x49a1d6['attributes'][_0x26a315]))_0x464dc5['setAttribute'](_0x2ca584,_0x49a1d6['attributes'][_0x26a315][_0x2ca584],_0x4352c0);_0x464dc5['insert'](_0x49a1d6['model'][_0x26a315],_0x4352c0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x49a1d6['changes'])),this['isReady']=!0x0;})['catch'](_0x14a022=>{console['error'](_0x14a022),this['_cleanUp'](),_0x34ead9&&(this['diff']=_0x34ead9),this['isReady']=!0x0;});}['addRevisionData'](_0x597b60,_0x18e7fe){const _0x121235=this['repository']['createRevision'](_0x597b60);return _0x121235['on']('_update',(_0xa41251,_0x5e3c9c,_0x1bcd06)=>_0x18e7fe(_0x5e3c9c,_0x1bcd06,_0x121235)),this['repository']['addRevision'](_0x121235),_0x121235;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x195118=>{for(const _0x1f246f of this['editor']['model']['document']['getRootNames']())_0x195118['detachRoot'](_0x1f246f);});}['_sortAndFilterDiffChanges'](_0x349b4d){const _0xcd4b76=[],_0x1b61f9=new Map();for(const _0xe193f of this['editor']['model']['document']['getRootNames']()){const _0x2f59a4=this['editor']['editing']['view']['getDomRoot'](_0xe193f);if(!_0x2f59a4)continue;const _0x1bf5d8=_0x2f59a4['getClientRects']()['item'](0x0);_0x1bf5d8&&(_0xcd4b76['push'](_0xe193f),_0x1b61f9['set'](_0xe193f,_0x1bf5d8));}return _0xcd4b76['sort']((_0x4e1f50,_0x1faf2f)=>{const _0x47fbf4=_0x1b61f9['get'](_0x4e1f50),_0x58a006=_0x1b61f9['get'](_0x1faf2f);return _0x47fbf4['y']-_0x58a006['y']||_0x47fbf4['x']-_0x58a006['x'];}),(_0x349b4d=_0x349b4d['filter'](_0x54f71c=>_0xcd4b76['includes'](_0x54f71c['rootName'])))['sort']((_0x1f0df2,_0x52f9fb)=>_0xcd4b76['indexOf'](_0x1f0df2['rootName'])-_0xcd4b76['indexOf'](_0x52f9fb['rootName'])),_0x349b4d;}['_makeTape'](_0x2a1bec){const _0x1a2c1a=Array['from'](_0x2a1bec['markers'])['filter'](([_0x41335f,_0x464d24])=>_0x41335f['startsWith']('revision:')&&!_0x464d24['isCollapsed']),_0x1563c4=Array['from'](this['editor']['model']['createRangeIn'](_0x2a1bec)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1a2c1a['length'])for(const _0x75c2b5 of _0x1563c4){const [_0x3cb847,_0x41b7f4]=_0x1a2c1a[0x0],[,_0x260389,_0x86945a]=_0x3cb847['split'](':');if(_0x41b7f4['end']['isEqual'](_0x75c2b5['nextPosition'])&&_0x1a2c1a['shift'](),(_0x75c2b5['previousPosition']['isEqual'](_0x41b7f4['start'])||_0x75c2b5['previousPosition']['isAfter'](_0x41b7f4['start']))&&('insertion'==_0x260389?_0x75c2b5['isAdded']={'userId':_0x86945a}:'deletion'==_0x260389&&(_0x75c2b5['isRemoved']={'userId':_0x86945a})),0x0==_0x1a2c1a['length'])break;}return _0x1563c4;}['_refreshStartEndIndex'](_0xcb3a08){const _0x43acbc=new Map();for(let _0x1804c4=0x0;_0x1804c4<_0xcb3a08['length'];_0x1804c4++)'text'===_0xcb3a08[_0x1804c4]['type']?(_0xcb3a08[_0x1804c4]['item']['startIndex']=_0x1804c4,_0xcb3a08[_0x1804c4]['item']['endIndex']=_0x1804c4):('elementStart'===_0xcb3a08[_0x1804c4]['type']?_0xcb3a08[_0x1804c4]['item']['startIndex']=_0x1804c4:'elementEnd'===_0xcb3a08[_0x1804c4]['type']&&(_0xcb3a08[_0x1804c4]['item']['endIndex']=_0x1804c4),_0x43acbc['set'](_0xcb3a08[_0x1804c4]['id'],_0x1804c4));for(const _0x2c1e0a of _0x43acbc['values']())'elementStart'===_0xcb3a08[_0x2c1e0a]['type']?_0xcb3a08[_0x2c1e0a]['item']['endIndex']=_0x43acbc['get'](_0xcb3a08[_0x2c1e0a]['pairId']):'elementEnd'===_0xcb3a08[_0x2c1e0a]['type']&&(_0xcb3a08[_0x2c1e0a]['item']['startIndex']=_0x43acbc['get'](_0xcb3a08[_0x2c1e0a]['pairId']));}['_processTape'](_0x10b601){for(let _0x3ec917=0x0;_0x3ec917<_0x10b601['length'];_0x3ec917++){if('elementStart'===_0x10b601[_0x3ec917]['type'])_0x10b601[_0x3ec917]['item']['startIndex']=_0x3ec917;else{if('elementEnd'===_0x10b601[_0x3ec917]['type']){_0x10b601[_0x3ec917]['item']['endIndex']=_0x3ec917;const _0x371ef6=_0x10b601[_0x3ec917]['item']['startIndex'];_0x10b601[_0x371ef6]['pairId']=_0x10b601[_0x3ec917]['id'],_0x10b601[_0x3ec917]['pairId']=_0x10b601[_0x371ef6]['id'];}else _0x10b601[_0x3ec917]['item']['startIndex']=_0x3ec917,_0x10b601[_0x3ec917]['item']['endIndex']=_0x3ec917,_0x10b601[_0x3ec917]['pairId']=null;}_0x10b601[_0x3ec917]['markersStart']||(_0x10b601[_0x3ec917]['markersStart']=[],_0x10b601[_0x3ec917]['markersEnd']=[]);}}['_markInsertions'](_0x684777,_0x458c46){const _0xe76289=_0x684777['filter'](_0x8ed64e=>!_0x8ed64e['isAdded']);for(let _0x25cac7=0x0;_0x25cac7<_0x458c46['length'];_0x25cac7++)_0x458c46[_0x25cac7]['isAdded']&&(_0xe76289[_0x25cac7]['isAdded']=_0x458c46[_0x25cac7]['isAdded']);}['_getDiff'](_0x3ba2a4,_0x34fc38=null){const _0x4dbebd=this['repository']['getRevision'](_0x3ba2a4),_0x2c30af=_0x34fc38?this['repository']['getRevision'](_0x34fc38):null,_0x409188=this['_getRevisionsRange'](_0x4dbebd,_0x2c30af),_0x42a600=_0x409188[_0x409188['length']-0x1],_0x58caa5=new Map(),_0x1529f1={'model':{},'attributes':{},'changes':[]},_0xf91bb7=new Set(),_0x4390ba=new Map();for(let _0x451dcf=_0x409188['length']-0x1;_0x451dcf>=0x0;_0x451dcf--){const _0x23cf8b=_0x409188[_0x451dcf];for(const _0x22249f of Object['keys'](_0x23cf8b['diffData']))if(_0x23cf8b['diffData'][_0x22249f]['attachChange']){const _0x528d5b=_0x23cf8b['diffData'][_0x22249f]['attachChange'];_0x528d5b['isAttached']?(_0xf91bb7['add'](_0x22249f),_0x4390ba['has'](_0x22249f)&&_0x4390ba['get'](_0x22249f)['userId']==_0x528d5b['userId']?_0x4390ba['delete'](_0x22249f):_0x4390ba['set'](_0x22249f,_0x528d5b)):_0x4390ba['has'](_0x22249f)?(_0xf91bb7['delete'](_0x22249f),_0x4390ba['delete'](_0x22249f)):(_0xf91bb7['add'](_0x22249f),_0x4390ba['set'](_0x22249f,_0x528d5b));}else _0xf91bb7['add'](_0x22249f);}for(const _0x3982e9 of _0xf91bb7){const _0x226aff=_0x4390ba['has'](_0x3982e9)&&!_0x4390ba['get'](_0x3982e9)['isAttached'];let _0x4e9cd2=_0x226aff?_0x409188['length']-0x1:0x0;const _0x2a4bdd=_0x226aff?-0x1:0x1;for(;_0x409188[_0x4e9cd2];){const _0x4b1745=_0x409188[_0x4e9cd2];if(_0x4b1745['diffData'][_0x3982e9]){const _0x27e201=_0x226aff?_0x4b1745['diffData'][_0x3982e9]['attributesBefore']:_0x4b1745['diffData'][_0x3982e9]['attributesAfter'];_0x1529f1['attributes'][_0x3982e9]=_0x27e201?_0x1fd9bb(_0x27e201):{};break;}_0x4e9cd2+=_0x2a4bdd;}}for(const _0x1167c5 of _0x409188){_0x1167c5['model']={};for(const _0x71ac18 of _0x1167c5['authors'])_0x58caa5['set'](_0x71ac18['id'],_0x71ac18);for(const _0x4a7694 of _0xf91bb7){const _0x2f810d=_0x1167c5['diffData'][_0x4a7694]?_0x1167c5['diffData'][_0x4a7694]['insertions']:'[]',_0x17288c=_0x1167c5['diffData'][_0x4a7694]?_0x1167c5['diffData'][_0x4a7694]['deletions']:'[]';_0x1167c5['model'][_0x4a7694]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2f810d),'deletions':this['_utils']['_makeModelFromViewString'](_0x17288c)};}}for(const _0x217d40 of _0xf91bb7){let _0x7aa96=null,_0x18dac0=0x0;const _0x4974ed=new Map(Array['from'](_0x4dbebd['model'][_0x217d40]['insertions']['markers'])['filter'](([_0x4ea858])=>!_0x4ea858['startsWith']('revision:')));let _0x4ea48c=0x0;for(const _0x3c0653 of _0x409188){const _0xad0c54=this['_makeTape'](_0x3c0653['model'][_0x217d40]['insertions']);_0x3c0653==_0x4dbebd?(_0x7aa96=_0xad0c54,_0x18dac0=_0x7aa96['length'],_0x7aa96['forEach'](_0x4e13d7=>{_0x4e13d7['id']=_0x4ea48c++;}),this['_processTape'](_0x7aa96)):this['_markInsertions'](_0x7aa96,_0xad0c54);const _0x203332=_0x7aa96['filter'](_0x4db350=>!_0x4db350['isAdded'])['map'](_0x4c99ed=>_0x4c99ed['id']);let _0x41af16=0x0;const _0x1efde4=this['_makeTape'](_0x3c0653['model'][_0x217d40]['deletions']);_0x1efde4['forEach'](_0xb4f6a1=>{_0xb4f6a1['isRemoved']?_0xb4f6a1['id']=_0x18dac0++:_0xb4f6a1['id']=_0x203332[_0x41af16++];}),this['_processTape'](_0x1efde4),this['_setDistance'](_0x7aa96,'isAdded'),this['_setDistance'](_0x1efde4,'isRemoved'),_0x3c0653==_0x4dbebd&&this['_markMarkers'](_0x7aa96,_0x4974ed),_0x7aa96=this['_joinTapes'](_0x7aa96,_0x1efde4),this['_refreshStartEndIndex'](_0x7aa96),this['_setDistance'](_0x7aa96,'isRemoved');}_0x7aa96=_0x7aa96['filter'](_0x442587=>!(_0x442587['isAdded']&&_0x442587['isRemoved']));const _0x339156=new Map(_0x42a600['model'][_0x217d40]['deletions']['markers']),_0x2f7307=new Set(_0x4974ed['keys']());for(const _0x2af819 of _0x339156['keys']())_0x2f7307['delete'](_0x2af819);this['_markSuggestions'](_0x7aa96,_0x2f7307),this['_fixObsoleteTags'](_0x7aa96),_0x7aa96=this['_removeMissingPairs'](_0x7aa96),_0x7aa96=this['_markMismatchedRemovedTags'](_0x7aa96),_0x7aa96=this['_removeUnsupportedChanges'](_0x7aa96);const {root:_0x22b6c5,changes:_0x19d053}=this['_makeModelFromTape'](_0x7aa96,_0x58caa5,_0x217d40);_0x1529f1['model'][_0x217d40]=_0x22b6c5;const _0x342c00=_0x4390ba['get'](_0x217d40);if(_0x342c00){const _0x5325f4=_0x58caa5['get'](_0x342c00['userId']),_0x5749b9=new G({'author':_0x5325f4,'type':_0x342c00['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x217d40});_0x19d053['unshift'](_0x5749b9),_0x1529f1['attributes'][_0x217d40]['revisionHistoryAttachChange']=_0x5749b9['id'];}_0x1529f1['changes']=_0x1529f1['changes']['concat'](_0x19d053);}return _0x1529f1;}['_markMarkers'](_0x20b26c,_0x2dde70){for(let _0x811c6c=0x0;_0x811c6c<_0x20b26c['length'];_0x811c6c++)for(const [_0x106430,_0x379ab3]of _0x2dde70)!_0x379ab3['isCollapsed']&&_0x379ab3['start']['isEqual'](_0x20b26c[_0x811c6c]['previousPosition'])&&_0x20b26c[_0x811c6c]['markersStart']['push'](_0x106430),_0x379ab3['end']['isEqual'](_0x20b26c[_0x811c6c]['nextPosition'])&&_0x20b26c[_0x811c6c]['markersEnd']['push'](_0x106430);}['_joinTapes'](_0x211246,_0x27ce28){let _0x1eb12c=[],_0x5d9dae=0x0,_0x28316f=0x0;for(;_0x5d9dae<_0x211246['length']||_0x28316f<_0x27ce28['length'];){const _0x95050e=_0x211246[_0x5d9dae]||{},_0x24b435=_0x27ce28[_0x28316f]||{};if(_0x95050e['id']==_0x24b435['id'])_0x5d9dae++,_0x28316f++,_0x1eb12c['push'](_0x95050e);else{if(_0x24b435['isRemoved']&&_0x95050e['isAdded']){const {commonTape:_0x116cf1,iEnd:_0x4b6fc6,jEnd:_0x247e1b}=this['_threeWayMerge'](_0x211246,_0x5d9dae,_0x27ce28,_0x28316f);_0x1eb12c=_0x1eb12c['concat'](_0x116cf1),_0x5d9dae=_0x4b6fc6,_0x28316f=_0x247e1b;}else _0x24b435['isRemoved']?(_0x28316f++,_0x1eb12c['push'](_0x24b435)):(_0x5d9dae++,_0x1eb12c['push'](_0x95050e));}}return _0x1eb12c;}['_markSuggestions'](_0x779bb0,_0x59015e){const _0x2b8119=[];for(let _0x3b7eae=0x0;_0x3b7eae<_0x779bb0['length'];_0x3b7eae++){for(let _0x5f2a79=0x0;_0x5f2a79<_0x779bb0[_0x3b7eae]['markersStart']['length'];_0x5f2a79++){const _0x22c83c=_0x779bb0[_0x3b7eae]['markersStart'][_0x5f2a79];if(!_0x59015e['has'](_0x22c83c))continue;const {group:_0x2e4389,type:_0x45fafc,authorId:_0x17f6f6}=_0x390014(_0x22c83c);'revision-suggestion'!=_0x2e4389||'insertion'!=_0x45fafc&&'deletion'!=_0x45fafc||(_0x2b8119['unshift']({'type':_0x45fafc,'name':_0x22c83c,'userId':_0x17f6f6}),_0x779bb0[_0x3b7eae]['markersStart']['splice'](_0x5f2a79,0x1),_0x5f2a79--);}_0x1fbbaa(_0x779bb0[_0x3b7eae]);for(let _0x3e1f6f=0x0;_0x3e1f6f<_0x779bb0[_0x3b7eae]['markersEnd']['length'];_0x3e1f6f++){const _0x1136aa=_0x779bb0[_0x3b7eae]['markersEnd'][_0x3e1f6f];if(!_0x59015e['has'](_0x1136aa))continue;const {group:_0x21f94d,type:_0x3ee2f4}=_0x390014(_0x1136aa);if('revision-suggestion'!=_0x21f94d||'insertion'!=_0x3ee2f4&&'deletion'!=_0x3ee2f4)continue;_0x779bb0[_0x3b7eae]['markersEnd']['splice'](_0x3e1f6f,0x1),_0x3e1f6f--;const _0x224c46=_0x2b8119['findIndex'](_0x311677=>_0x311677['name']==_0x1136aa);_0x224c46>-0x1&&_0x2b8119['splice'](_0x224c46,0x1);}}function _0x390014(_0x31b78b){const _0x58e2c5=_0x31b78b['split'](':');return{'group':_0x58e2c5[0x0],'type':_0x58e2c5[0x1],'subType':_0x58e2c5['length']>=0x5?_0x58e2c5[0x2]:null,'id':_0x58e2c5['length']<0x5?_0x58e2c5[0x2]:_0x58e2c5[0x3],'authorId':_0x58e2c5['length']<0x5?_0x58e2c5[0x3]:_0x58e2c5[0x4],'markerCount':0x6==_0x58e2c5['length']?_0x58e2c5[0x5]:null};}function _0x1fbbaa(_0x338e84){for(let _0x5ea377=0x0;_0x5ea377<_0x2b8119['length'];_0x5ea377++){if(_0x338e84['isAdded']&&'insertion'==_0x2b8119[_0x5ea377]['type']&&_0x338e84['isAdded']['userId']==_0x2b8119[_0x5ea377]['userId'])return _0x338e84['isAddSuggestion']=_0x2b8119[_0x5ea377],void delete _0x338e84['isAdded'];if(!_0x338e84['isAdded']&&!_0x338e84['isRemoved']&&'deletion'==_0x2b8119[_0x5ea377]['type'])return void(_0x338e84['isRemoveSuggestion']=_0x2b8119[_0x5ea377]);}}}['_setDistance'](_0x4e38a9,_0x4b4793){let _0x455b96=0x0,_0x441a87=!0x1;const _0x3154ca=new Map();for(const _0x4fe4b1 of _0x4e38a9)_0x4fe4b1[_0x4b4793]?_0x441a87&&(_0x455b96++,_0x441a87=!0x1):(_0x455b96++,_0x441a87=!0x0),_0x3154ca['set'](_0x4fe4b1['id'],_0x455b96);for(let _0x3b0ea9=0x0;_0x3b0ea9<_0x4e38a9['length'];_0x3b0ea9++){if('isRemoved'==_0x4b4793&&_0x4e38a9[_0x3b0ea9]['isAdded']||'isAdded'==_0x4b4793&&_0x4e38a9[_0x3b0ea9]['isRemoved'])continue;if('text'==_0x4e38a9[_0x3b0ea9]['type']){_0x4e38a9[_0x3b0ea9]['distance']=0x0;continue;}const _0x2375d4=_0x3154ca['get'](_0x4e38a9[_0x3b0ea9]['pairId']),_0x28fdf9=_0x3154ca['get'](_0x4e38a9[_0x3b0ea9]['id']);_0x4e38a9[_0x3b0ea9]['distance']=_0x2375d4-_0x28fdf9;}}['_getRevisionsRange'](_0x3e963c,_0x13cfc5,_0x36793f=!0x1){const _0x5199f9=[];let _0x46a650=this['repository']['getIndex'](_0x3e963c),_0x4f5473=this['repository']['getIndex'](_0x13cfc5);for(-0x1==_0x4f5473&&(_0x4f5473=this['repository']['_revisions']['length'],_0x36793f=!0x1);_0x46a650<_0x4f5473;)_0x5199f9['push'](this['repository']['getRevision'](_0x46a650)),_0x46a650++;return _0x36793f&&_0x5199f9['push'](this['repository']['getRevision'](_0x46a650)),_0x5199f9;}['_threeWayMerge'](_0x15fb86,_0x924511,_0xf5404,_0x2444ed){const _0x51d451=this['editor']['model']['schema'];let _0xf2e09c=_0x924511;for(;_0x15fb86[_0xf2e09c]&&_0x15fb86[_0xf2e09c]['isAdded'];)_0xf2e09c++;let _0x5e8f97=_0x2444ed;for(;_0xf5404[_0x5e8f97]&&_0xf5404[_0x5e8f97]['isRemoved'];)_0x5e8f97++;_0x1c45b5(_0x15fb86,_0x924511,_0xf2e09c),_0x1c45b5(_0xf5404,_0x2444ed,_0x5e8f97);const _0x3cc627=_0xf5404['slice'](_0x2444ed,_0x5e8f97)['concat'](_0x15fb86['slice'](_0x924511,_0xf2e09c));return _0x3cc627['sort']((_0x4391c2,_0x48610c)=>_0x4391c2['side']!=_0x48610c['side']?_0x4391c2['side']-_0x48610c['side']:_0x4391c2['level']!=_0x48610c['level']?_0x4391c2['level']-_0x48610c['level']:_0x4391c2['distance']!=_0x48610c['distance']?_0x48610c['distance']-_0x4391c2['distance']:!!_0x4391c2['isAdded']!=!!_0x48610c['isAdded']?-0x1==_0x4391c2['side']||0x0==_0x4391c2['side']?_0x4391c2['isAdded']?-0x1:0x1:_0x4391c2['isAdded']?0x1:-0x1:_0x4391c2['index']-_0x48610c['index']),{'commonTape':_0x3cc627,'iEnd':_0xf2e09c,'jEnd':_0x5e8f97};function _0x1c45b5(_0x2b5528,_0x3e62db,_0x137e9a){let _0xe3ae01=-0x1,_0x535a24=Number['POSITIVE_INFINITY'],_0x5ee55f=!0x0;for(let _0x1da6f8=_0x3e62db;_0x1da6f8<_0x137e9a;_0x1da6f8++)if(_0x51d451['isInline'](_0x2b5528[_0x1da6f8]['item'])||(_0x5ee55f=!0x1),_0x2b5528[_0x1da6f8]['item']['startIndex']<_0x3e62db&&(_0xe3ae01=_0x1da6f8),_0x2b5528[_0x1da6f8]['item']['endIndex']>=_0x137e9a){_0x535a24=_0x1da6f8;break;}_0x5ee55f&&(_0xe3ae01=_0x137e9a-0x1);for(let _0x2c3156=_0x3e62db;_0x2c3156<_0x137e9a;_0x2c3156++)_0x2b5528[_0x2c3156]['side']=_0x2c3156<=_0xe3ae01?-0x1:_0x2c3156<_0x535a24?0x0:0x1,_0x2b5528[_0x2c3156]['index']=_0x2c3156;let _0x5db10c=0x0;for(let _0x3d0d88=_0x3e62db;_0x3d0d88<=_0xe3ae01;_0x3d0d88++)0x0==_0x2b5528[_0x3d0d88]['distance']?_0x2b5528[_0x3d0d88]['level']=_0x5db10c:(_0x5db10c++,_0x2b5528[_0x3d0d88]['level']=_0x5db10c,_0x5db10c++);for(let _0x3a06b3=_0x3e62db;_0x3a06b3<_0x137e9a;_0x3a06b3++)0x0==_0x2b5528[_0x3a06b3]['side']&&(_0x2b5528[_0x3a06b3]['level']=_0x5db10c);_0x5db10c=0x0;for(let _0x28309d=_0x137e9a-0x1;_0x28309d>=_0x535a24;_0x28309d--)0x0==_0x2b5528[_0x28309d]['distance']?_0x2b5528[_0x28309d]['level']=_0x5db10c:(_0x5db10c--,_0x2b5528[_0x28309d]['level']=_0x5db10c,_0x5db10c--);}}['_fixObsoleteTags'](_0x5a891f){const _0x35f463=new Map(),_0x1efcd9=this['editor']['model']['schema'];for(let _0x1df6f2=0x1;_0x1df6f2<_0x5a891f['length'];_0x1df6f2++){let _0x364f27,_0x4bedc2,_0x1e68ab;const _0x5b861b=_0x5a891f[_0x1df6f2],_0x300875=_0x5a891f[_0x1df6f2-0x1];if('text'==_0x5b861b['type'])continue;if(_0x5b861b['type']!=_0x300875['type'])continue;if(!_0x1efcd9['isBlock'](_0x300875['item'])||_0x1efcd9['isLimit'](_0x300875['item']))continue;if(!_0x1efcd9['isBlock'](_0x5b861b['item'])||_0x1efcd9['isLimit'](_0x5b861b['item']))continue;if((_0x5a891f[_0x1df6f2]['isAdded']||_0x5a891f[_0x1df6f2]['isAddSuggestion'])&&_0x5a891f[_0x1df6f2-0x1]['isRemoved'])_0x364f27=_0x5a891f[_0x1df6f2],_0x4bedc2=_0x5a891f[_0x1df6f2-0x1],_0x1e68ab=_0x1df6f2-0x1;else{if(!_0x5a891f[_0x1df6f2]['isRemoved']||!_0x5a891f[_0x1df6f2-0x1]['isAdded']&&!_0x5a891f[_0x1df6f2-0x1]['isAddSuggestion'])continue;_0x364f27=_0x5a891f[_0x1df6f2-0x1],_0x4bedc2=_0x5a891f[_0x1df6f2],_0x1e68ab=_0x1df6f2;}const _0x4fcb5a=_0x364f27['level']==_0x4bedc2['level'],_0x2d651f=Math['abs'](_0x364f27['level'])<Math['abs'](_0x4bedc2['level'])&&0x0==_0x4bedc2['distance'];(_0x4fcb5a||_0x2d651f)&&(_0x35f463['set'](_0x4bedc2['id'],_0x364f27['id']),_0x5a891f['splice'](_0x1e68ab,0x1),_0x1df6f2--,_0x364f27['isAdded']=!0x1);}for(let _0x4e200c=0x0;_0x4e200c<_0x5a891f['length'];_0x4e200c++)_0x35f463['has'](_0x5a891f[_0x4e200c]['pairId'])&&(_0x5a891f[_0x4e200c]['pairId']=_0x35f463['get'](_0x5a891f[_0x4e200c]['pairId']));}['_removeMissingPairs'](_0xdd2329){const _0x402fd8=new Set(_0xdd2329['map'](_0x22a3f5=>_0x22a3f5['id']));for(let _0x2dbcdd=0x0;_0x2dbcdd<_0xdd2329['length'];_0x2dbcdd++)_0x402fd8['has'](_0xdd2329[_0x2dbcdd]['pairId'])||0x0==_0xdd2329[_0x2dbcdd]['distance']||(_0xdd2329[_0x2dbcdd]['isIncorrect']=!0x0);return _0xdd2329['filter'](_0x36cdc9=>!_0x36cdc9['isIncorrect']);}['_markMismatchedRemovedTags'](_0x510a20){const _0x3a7fd1=new Set();for(let _0x2f6802=0x0;_0x2f6802<_0x510a20['length'];_0x2f6802++){if(_0x3a7fd1['has'](_0x510a20[_0x2f6802]['id'])&&_0x510a20[_0x2f6802]['isRemoved']&&(_0x510a20[_0x2f6802]['isIncorrect']=!0x0),_0x510a20[_0x2f6802]['isIncorrect'])continue;if(0x0==_0x510a20[_0x2f6802]['distance'])continue;if('elementStart'!=_0x510a20[_0x2f6802]['type'])continue;if(null==_0x510a20[_0x2f6802]['pairId'])continue;let _0x2e3763=_0x2f6802+0x1,_0x382e12=0x0;for(;_0x510a20[_0x2e3763]['id']!=_0x510a20[_0x2f6802]['pairId'];)'elementStart'==_0x510a20[_0x2e3763]['type']?_0x382e12++:'elementEnd'==_0x510a20[_0x2e3763]['type']&&_0x382e12--,_0x2e3763++;if(0x0!=_0x382e12){if(_0x510a20[_0x2f6802]['isRemoved'])_0x510a20[_0x2f6802]['isIncorrect']=!0x0;else{for(;_0x2e3763!=_0x2f6802;)_0x510a20[_0x2e3763]['isRemoved']&&0x0!=_0x510a20[_0x2e3763]['distance']&&(_0x510a20[_0x2e3763]['isIncorrect']=!0x0,_0x3a7fd1['add'](_0x510a20[_0x2e3763]['pairId'])),_0x2e3763--;}}}return _0x510a20['filter'](_0x386f2e=>!_0x386f2e['isIncorrect']);}['_removeUnsupportedChanges'](_0x4877f1){const _0x59c154=this['editor']['model']['schema'];for(let _0x13401e=0x0;_0x13401e<_0x4877f1['length'];_0x13401e++){if(!(_0x4877f1[_0x13401e]['isAdded']||_0x4877f1[_0x13401e]['isAddSuggestion']||_0x4877f1[_0x13401e]['isRemoved']||_0x4877f1[_0x13401e]['isRemoveSuggestion']))continue;if(0x0==_0x4877f1[_0x13401e]['distance'])continue;const _0x22085a=_0x4877f1[_0x13401e]['item'];_0x59c154['isBlock'](_0x22085a)||_0x59c154['isLimit'](_0x22085a)||(_0x4877f1[_0x13401e]['isAdded']&&delete _0x4877f1[_0x13401e]['isAdded'],_0x4877f1[_0x13401e]['isAddSuggestion']&&delete _0x4877f1[_0x13401e]['isAddSuggestion'],_0x4877f1[_0x13401e]['isRemoveSuggestion']&&delete _0x4877f1[_0x13401e]['isRemoveSuggestion'],_0x4877f1[_0x13401e]['isRemoved']&&(_0x4877f1[_0x13401e]['isIncorrect']=!0x0));}return _0x4877f1['filter'](_0x282502=>!_0x282502['isIncorrect']);}['_makeModelFromTape'](_0x284e23,_0xac7b91,_0x2af015){const _0x28326e=new ht(),_0x16a1b8=[],_0x344833=new Map(),_0x5348e8=this['editor']['model'],_0x421a53=_0x5348e8['schema'],_0x130a39=[_0x28326e],_0x102ab2={},_0x54467d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4396d4=null;const _0x9f6c37=[0x0];for(let _0x444bd5=0x0;_0x444bd5<_0x284e23['length'];_0x444bd5++)if('elementStart'===_0x284e23[_0x444bd5]['type']){_0x284e23[_0x444bd5]['previousPosition']=_0x5348e8['createPositionFromPath'](_0x28326e,_0x9f6c37);const _0x5557ab=new nt(_0x284e23[_0x444bd5]['item']['name'],_0x284e23[_0x444bd5]['item']['getAttributes']());_0x130a39[0x0]['_appendChild'](_0x5557ab),_0x9f6c37['push'](0x0),_0x130a39['unshift'](_0x5557ab),_0x284e23[_0x444bd5]['nextPosition']=_0x5348e8['createPositionFromPath'](_0x28326e,_0x9f6c37);}else'elementEnd'===_0x284e23[_0x444bd5]['type']?(_0x130a39['shift'](),_0x284e23[_0x444bd5]['previousPosition']=_0x5348e8['createPositionFromPath'](_0x28326e,_0x9f6c37),_0x9f6c37['pop'](),_0x9f6c37[_0x9f6c37['length']-0x1]++,_0x284e23[_0x444bd5]['nextPosition']=_0x5348e8['createPositionFromPath'](_0x28326e,_0x9f6c37)):(_0x284e23[_0x444bd5]['previousPosition']=_0x5348e8['createPositionFromPath'](_0x28326e,_0x9f6c37),_0x4396d4?_0x4396d4['_data']+=_0x284e23[_0x444bd5]['item']['data']:_0x4396d4=new ct(_0x284e23[_0x444bd5]['item']['data'],_0x284e23[_0x444bd5]['item']['getAttributes']()),_0x284e23[_0x444bd5+0x1]&&'text'===_0x284e23[_0x444bd5+0x1]['type']&&_0x27e1dd(_0x4396d4,_0x284e23[_0x444bd5+0x1]['item'])||(_0x130a39[0x0]['_appendChild'](_0x4396d4),_0x4396d4=null),_0x9f6c37[_0x9f6c37['length']-0x1]+=_0x284e23[_0x444bd5]['item']['offsetSize'],_0x284e23[_0x444bd5]['nextPosition']=_0x5348e8['createPositionFromPath'](_0x28326e,_0x9f6c37));for(let _0x3797ef=0x0;_0x3797ef<_0x284e23['length'];_0x3797ef++){const _0x59779a=_0x284e23[_0x3797ef]['previousPosition'],_0x5e633d=_0x284e23[_0x3797ef]['nextPosition'];for(const _0x2ea349 of _0x284e23[_0x3797ef]['markersStart'])_0x344833['set'](_0x2ea349,{'start':_0x59779a,'end':null});_0x409d7e('isRemoveSuggestion',_0x3797ef,_0x59779a,_0x5e633d),_0x409d7e('isAddSuggestion',_0x3797ef,_0x59779a,_0x5e633d),_0x409d7e('isRemoved',_0x3797ef,_0x59779a,_0x5e633d),_0x409d7e('isAdded',_0x3797ef,_0x59779a,_0x5e633d);for(const _0x2d54e2 of _0x284e23[_0x3797ef]['markersEnd']){const _0xb01a=_0x344833['get'](_0x2d54e2);_0xb01a?_0xb01a['end']=_0x5e633d:_0x344833['set'](_0x2d54e2,{'start':_0x5e633d,'end':_0x5e633d});}}for(const [_0x4dc7ce,_0x14224d]of _0x344833){const _0x16fc40=this['editor']['model']['createRange'](_0x14224d['start'],_0x14224d['end']);_0x28326e['markers']['set'](_0x4dc7ce,_0x16fc40);}return _0x16a1b8['sort']((_0x32604b,_0x3279cf)=>{const _0x399870=_0x28326e['markers']['get']('revision:'+_0x32604b['id']),_0x38eb52=_0x28326e['markers']['get']('revision:'+_0x3279cf['id']);return _0x399870['start']['isBefore'](_0x38eb52['start'])?-0x1:_0x399870['start']['isAfter'](_0x38eb52['start'])?0x1:_0x399870['end']['isBefore'](_0x38eb52['end'])?-0x1:_0x399870['end']['isAfter'](_0x38eb52['end'])?0x1:'add'===_0x32604b['type']?-0x1:0x1;}),{'root':_0x28326e,'changes':_0x16a1b8};function _0x409d7e(_0x21332e,_0x265bfb,_0x456699,_0x143adb){const _0xbc3913=!!_0x284e23[_0x265bfb][_0x21332e],_0x2bcb6d=_0xbc3913?_0x284e23[_0x265bfb][_0x21332e]['userId']:null,_0x5848ff=_0x265bfb===_0x284e23['length']-0x1,_0x114684=_0x54467d[_0x21332e][0x0],_0x334d46=_0x421a53['isObject'](_0x284e23[_0x265bfb]['item']);!_0x102ab2[_0x21332e]&&_0xbc3913?_0x102ab2[_0x21332e]={'start':_0x456699,'tapeItem':_0x284e23[_0x265bfb],'userId':_0x2bcb6d,'type':_0x21332e}:_0x102ab2[_0x21332e]&&!_0xbc3913?(_0x102ab2[_0x21332e]['end']=_0x456699,_0x58d145(_0x102ab2[_0x21332e]),_0x102ab2[_0x21332e]=null):_0x102ab2[_0x21332e]&&_0xbc3913&&_0x102ab2[_0x21332e]['userId']!==_0x2bcb6d&&(_0x102ab2[_0x21332e]['end']=_0x456699,_0x114684&&_0x114684['userId']===_0x102ab2[_0x21332e]['userId']||_0x58d145(_0x102ab2[_0x21332e]),_0x102ab2[_0x21332e]={'start':_0x456699,'tapeItem':_0x284e23[_0x265bfb],'userId':_0x2bcb6d,'type':_0x21332e}),_0x102ab2[_0x21332e]&&_0x334d46&&('elementStart'!==_0x284e23[_0x265bfb]['type']||_0x114684&&_0x114684['userId']===_0x2bcb6d||_0x54467d[_0x21332e]['unshift']({'userId':_0x2bcb6d,'object':_0x284e23[_0x265bfb]['item'],'change':_0x102ab2[_0x21332e]}),'elementEnd'===_0x284e23[_0x265bfb]['type']&&_0x114684&&_0x114684['object']===_0x284e23[_0x265bfb]['item']&&(_0x54467d[_0x21332e]['shift'](),_0x102ab2[_0x21332e]=_0x114684['change'])),_0x102ab2[_0x21332e]&&_0x5848ff&&(_0x102ab2[_0x21332e]['end']=_0x143adb,_0x58d145(_0x102ab2[_0x21332e]),_0x102ab2[_0x21332e]=null);}function _0x58d145({start:_0x593d7b,end:_0x441a2a,tapeItem:_0x245dc8,userId:_0x11df99,type:_0x259d30}){const _0x30fb90=_0x245dc8['item'],_0x86d716=_0x5348e8['schema']['isBlock'](_0x30fb90)&&!_0x5348e8['schema']['isLimit'](_0x30fb90),_0x3ec689=_0x593d7b['nodeAfter']==_0x441a2a['parent']&&_0x441a2a['isAtStart'];if(_0x86d716&&_0x3ec689)return;const _0x3d3f01=_0x5348e8['createRange'](_0x593d7b,_0x441a2a),_0xa25c04=_0xac7b91['get'](_0x11df99),_0x45bed1=new G({'author':_0xa25c04,'type':'isAdded'==_0x259d30||'isAddSuggestion'==_0x259d30?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x259d30||'isRemoveSuggestion'==_0x259d30},'createdAt':new Date(),'rootName':_0x2af015});_0x16a1b8['push'](_0x45bed1),_0x28326e['markers']['set']('revision:'+_0x45bed1['id'],_0x3d3f01);}function _0x27e1dd(_0x3f5e83,_0x81d1f7){const _0x4e7ecd=_0x3f5e83['getAttributes'](),_0x1c4469=_0x81d1f7['getAttributes']();for(const _0x178881 of _0x4e7ecd){if(_0x178881[0x1]!==_0x81d1f7['getAttribute'](_0x178881[0x0]))return!0x1;_0x1c4469['next']();}return _0x1c4469['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1ca2df=>{const _0x2bd4c9=_0x1ca2df['markerName']['split'](':')[0x1],_0x202f40=this['_getChangeFromId'](_0x2bd4c9);if(!_0x202f40)return null;const _0x16ba94='add'==_0x202f40['type']?'insertion':'deletion',_0x12c83b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x16ba94];return _0x202f40['data']['isSuggestion']&&_0x12c83b['push']('ck-suggestion-marker-'+_0x16ba94+'-new'),this['activeChange']==_0x202f40&&_0x12c83b['push']('ck-suggestion-marker--active'),{'classes':_0x12c83b,'attributes':{'data-change-id':_0x2bd4c9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xce641f=>{_0xce641f['on']('element:pre',(_0x2ec9d3,_0xf0b439,_0x2dacfb)=>{const _0x2c1ef3=_0xf0b439['viewItem']['getChild'](0x0);if(!_0x2c1ef3||!_0x2c1ef3['is']('element','code'))return;if(!_0x2dacfb['consumable']['consume'](_0x2c1ef3,{'attributes':['vid_start','vid_end']}))return;const _0x180088=_0xf0b439['modelRange']['start']['nodeAfter'];_0x2dacfb['writer']['setAttribute']('vid_start',_0x2c1ef3['getAttribute']('vid_start'),_0x180088),_0x2dacfb['writer']['setAttribute']('vid_end',_0x2c1ef3['getAttribute']('vid_end'),_0x180088);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2109b6=>{_0x2109b6['on']('element',(_0x597b01,_0x27b44a,_0x598389)=>{if(!_0x598389['consumable']['consume'](_0x27b44a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x27b44a['modelRange']['isCollapsed'])return;const _0x164836=_0x27b44a['modelRange']['start']['nodeAfter'];_0x164836['hasAttribute']('vid_start')||_0x164836['hasAttribute']('vid')||(_0x598389['writer']['setAttribute']('vid_start',_0x27b44a['viewItem']['getAttribute']('vid_start'),_0x164836),_0x598389['writer']['setAttribute']('vid_end',_0x27b44a['viewItem']['getAttribute']('vid_end'),_0x164836));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x148066=>_0x148066['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x21eea6,[,_0x15c2d8])=>{['vid_start','vid_end','vid']['includes'](_0x15c2d8)&&(_0x21eea6['return']=!0x0,_0x21eea6['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3d4a26=>{_0x3d4a26['on']('attribute:vid',(_0xc79c24,_0x1e59d4,_0x159752)=>{if('\x20'!=_0x1e59d4['item']['data']||_0x1e59d4['item']['parent']['maxOffset']>0x1)return;if(!_0x159752['consumable']['consume'](_0x1e59d4['item'],_0xc79c24['name']))return;const _0x14a152=_0x159752['writer'],_0x4e7703=_0x159752['mapper']['toViewRange'](_0x1e59d4['range']);_0x14a152['wrap'](_0x4e7703,_0x14a152['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x406f57){const _0x151003=_0x406f57['plugins']['get']('RevisionViewer');return(_0x428fb8,_0x3fb3b3,_0x437633)=>{const _0x269cdf=_0x3fb3b3['markerName']['split'](':')[0x1],_0x2f29e9=_0x151003['_getChangeFromId'](_0x269cdf);if(!_0x2f29e9)return null;const _0x5c6ff3='add'==_0x2f29e9['type']?'split':'merge';if(!_0x437633['consumable']['test'](_0x3fb3b3['markerRange'],_0x428fb8['name']))return;const _0x363f99=_0x3fb3b3['markerRange']['getWalker'](),_0x4d8b4d=_0x3fb3b3['markerRange']['start'],_0x588c2c=_0x406f57['model']['schema'];let _0xb81668=null,_0x33cbea=null,_0x4122e2=!0x1,_0x2720b0=!0x1;for(const _0x20c2a9 of _0x363f99){const _0x1548b9=_0x20c2a9['item'];_0x4122e2=_0x4122e2||_0x588c2c['isContent'](_0x1548b9);const _0x21a89e=_0x437633['mapper']['toViewElement'](_0x1548b9);if(_0x21a89e&&_0x21a89e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x20c2a9['type']&&(_0x588c2c['isBlock'](_0x1548b9)&&!_0x588c2c['isLimit'](_0x1548b9)&&(_0x1548b9['nextSibling']||_0x4d8b4d['isAtEnd']?_0xb81668&&_0xb81668['parent']==_0x1548b9||(_0xb81668=_0x1548b9,_0x1a5eca(_0x20c2a9['previousPosition']),_0x2720b0=!0x0):_0x33cbea=_0x33cbea||_0x20c2a9['previousPosition']));}function _0x1a5eca(_0x194579){const _0x113338=_0x437633['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c6ff3}),_0x214e2c=_0x437633['mapper']['toViewPosition'](_0x194579);_0x2f29e9['data']['isSuggestion']&&_0x437633['writer']['addClass']('ck-suggestion-marker-'+_0x5c6ff3+'-new',_0x113338),_0x151003['activeChange']==_0x2f29e9&&_0x437633['writer']['addClass']('ck-suggestion-marker--active',_0x113338),_0x437633['writer']['insert'](_0x214e2c,_0x113338),_0x437633['mapper']['bindElementToMarker'](_0x113338,_0x3fb3b3['markerName']);}_0x4122e2||_0x2720b0||!_0x33cbea||_0x1a5eca(_0x33cbea);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4b3deb,_0xf48be0,_0x18fa30)=>{const _0x3b6a04=_0x18fa30['mapper']['markerNameToElements'](_0xf48be0['markerName']);if(_0x3b6a04){for(const _0x1e0701 of _0x3b6a04)(_0x1e0701['hasClass']('ck-suggestion-marker-split')||_0x1e0701['hasClass']('ck-suggestion-marker-merge'))&&(_0x18fa30['mapper']['unbindElementFromMarkerName'](_0x1e0701,_0xf48be0['markerName']),_0x18fa30['writer']['remove'](_0x1e0701));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x32b5b1,_0x1057d9,_0x52bb8b)=>{const _0x5adf16=_0x1057d9['markerName']['split'](':')[0x1],_0x8d088d=this['_getChangeFromId'](_0x5adf16);if(!_0x8d088d)return null;const _0x12e592='add'==_0x8d088d['type']?'split':'merge';if(_0x52bb8b['consumable']['test'](_0x1057d9['markerRange'],_0x32b5b1['name']))for(const _0x498135 of _0x1057d9['markerRange']['getItems']()){if(!_0x498135['is']('element','softBreak'))continue;const _0xc5b58f=_0x52bb8b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12e592}),_0x259a6a=_0x52bb8b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x498135));_0x8d088d['data']['isSuggestion']&&_0x52bb8b['writer']['addClass']('ck-suggestion-marker-'+_0x12e592+'-new',_0xc5b58f),this['activeChange']==_0x8d088d&&_0x52bb8b['writer']['addClass']('ck-suggestion-marker--active',_0xc5b58f),_0x52bb8b['writer']['insert'](_0x259a6a,_0xc5b58f),_0x52bb8b['mapper']['bindElementToMarker'](_0xc5b58f,_0x1057d9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x57f909=>{for(const _0x756021 of this['editor']['model']['document']['getRootNames']()){const _0x9cc792=this['editor']['model']['document']['getRoot'](_0x756021),_0x128fc1=this['editor']['editing']['view']['document']['getRoot'](_0x756021);if(_0x128fc1){const _0x1e3fe4=_0x9cc792['getAttribute']('revisionHistoryAttachChange');if(_0x57f909['removeAttribute']('data-change-id',_0x128fc1),_0x57f909['removeClass']('ck-revision-history-root-add',_0x128fc1),_0x57f909['removeClass']('ck-revision-history-root-remove',_0x128fc1),_0x57f909['removeClass']('ck-revision-history-root--active',_0x128fc1),_0x1e3fe4){const _0x2da958=this['_getChangeFromId'](_0x1e3fe4);if(!_0x2da958)return null;_0x57f909['setAttribute']('data-change-id',_0x1e3fe4,_0x128fc1),_0x57f909['addClass']('ck-revision-history-root-'+_0x2da958['type'],_0x128fc1),this['activeChange']==_0x2da958&&_0x57f909['addClass']('ck-revision-history-root--active',_0x128fc1);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4b6f61=>'revision-comment:'+_0x4b6f61,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x106178=>'revision-suggestion:'+_0x106178,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2f18bf=>({'name':'suggestion:'+_0x2f18bf,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2b8435=>{const _0x3992d5=_0x2b8435['markerName']['split'](':')[0x1];return'insertion'!=_0x3992d5&&'deletion'!=_0x3992d5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3992d5]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x20a779,_0x23000c,_0x201fc7)=>{const _0x5c9a8f=_0x201fc7['mapper']['markerNameToElements'](_0x23000c['markerName']);if(_0x5c9a8f){for(const _0x5a0b45 of _0x5c9a8f)_0x5a0b45['is']('uiElement')&&(_0x201fc7['mapper']['unbindElementFromMarkerName'](_0x5a0b45,_0x23000c['markerName']),_0x201fc7['writer']['remove'](_0x5a0b45));}},{'priority':'high'});}['_getChangeFromId'](_0x574395){return this['_changeIdToChange']['get'](_0x574395);}['_getViewForChange'](_0x556ed2){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x556ed2),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x34b0ed,_0xcc70d5,_0x37091d,_0x44e180)=>{_0x44e180&&this['_balloon']['remove'](_0x44e180),_0x37091d&&(this['_balloon']['add']({'view':_0x37091d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3bc8e4=this['editor']['editing'],_0x99540b=this['_getChangeFromId'](_0x37091d['changeId']);let _0x5a8f27;if(_0x99540b['data']['isOnRoot']){const _0x6bc528=_0x3bc8e4['view']['getDomRoot'](_0x99540b['rootName']);_0x5a8f27=Array['from'](_0x6bc528['getClientRects']());}else{const _0x1b739b=this['editor']['model']['markers']['get']('revision:'+_0x37091d['changeId']);_0x5a8f27=Array['from'](_0x3bc8e4['mapper']['markerNameToElements'](_0x1b739b['name']))['map'](_0x9fef83=>_0x3bc8e4['view']['domConverter']['mapViewToDom'](_0x9fef83))['map'](_0x3acd8c=>Array['from'](_0x3acd8c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5a8f27[0x0];return _0x5a8f27['find'](_0x1c3495=>_0x1c3495['top']-0x3<=this['_activeViewTarget']['y']&&_0x1c3495['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1c3495['left']-0x3<=this['_activeViewTarget']['x']&&_0x1c3495['right']+0x3>=this['_activeViewTarget']['x'])||_0x5a8f27[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1548d2,_0x247b4b,_0x4d5fa2,_0x50cbb6)=>{this['activeView']=_0x4d5fa2?this['_getViewForChange'](_0x4d5fa2):null,this['editor']['model']['change'](()=>{const _0x254141=this['editor']['editing'];_0x50cbb6&&(_0x50cbb6['data']['isOnRoot']?_0x254141['view']['change'](_0x2ff254=>{_0x2ff254['removeClass']('ck-revision-history-root--active',_0x254141['view']['document']['getRoot'](_0x50cbb6['rootName']));}):_0x254141['reconvertMarker']('revision:'+_0x50cbb6['id'])),_0x4d5fa2&&(_0x4d5fa2['data']['isOnRoot']?_0x254141['view']['change'](_0x3d00af=>{_0x3d00af['addClass']('ck-revision-history-root--active',_0x254141['view']['document']['getRoot'](_0x4d5fa2['rootName']));}):_0x254141['reconvertMarker']('revision:'+_0x4d5fa2['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2e14d9,_0x2a055c)=>{if(this['activeChange'])return;const _0xa789b0=this['_findChangeIdFromDomTarget'](_0x2a055c['target']),_0x4777b8=this['_changeIdToChange']['get'](_0xa789b0);_0x4777b8?(this['_activeViewTarget']={'x':_0x2a055c['domEvent']['x'],'y':_0x2a055c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4777b8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xb918b5,_0x5d2b2c)=>{const _0x5122fa=this['_findChangeIdFromDomTarget'](_0x5d2b2c['target']),_0x59da50=this['_changeIdToChange']['get'](_0x5122fa);_0x59da50?(this['_activeViewTarget']={'x':_0x5d2b2c['domEvent']['x'],'y':_0x5d2b2c['domEvent']['y']},_0x59da50===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x59da50):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f2da3){do{const _0x55fab7=_0x2f2da3['getAttribute']('data-change-id');if(_0x55fab7)return _0x55fab7;_0x2f2da3=_0x2f2da3['parent'];}while(_0x2f2da3);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xc8f7=>{for(const _0x1a1c27 of this['editor']['model']['markers'])_0xc8f7['removeMarker'](_0x1a1c27);});}}function Q(_0x577fe9,_0x50f674){return(_0x3a528f,_0x551385,_0x52f2ec)=>{if(!_0x52f2ec['consumable']['test'](_0x551385['markerRange'],_0x3a528f['name']))return;const _0x54663f=_0x551385['markerRange']['getWalker'](),_0x37aff6=_0x551385['markerRange']['start'],_0xcc0ac5=_0x577fe9['model']['schema'];let _0x5f5e0f=null,_0x16feef=null,_0x2c01c8=!0x1,_0x509ce0=!0x1;for(const _0x1f82dc of _0x54663f){const _0x4a9eba=_0x1f82dc['item'];_0x2c01c8=_0x2c01c8||_0xcc0ac5['isContent'](_0x4a9eba);const _0x53be1a=_0x52f2ec['mapper']['toViewElement'](_0x4a9eba);if(_0x53be1a&&_0x53be1a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f82dc['type']&&(_0xcc0ac5['isBlock'](_0x4a9eba)&&!_0xcc0ac5['isLimit'](_0x4a9eba)&&(_0x4a9eba['nextSibling']||_0x37aff6['isAtEnd']?_0x5f5e0f&&_0x5f5e0f['parent']==_0x4a9eba||(_0x5f5e0f=_0x4a9eba,_0x271190(_0x1f82dc['previousPosition']),_0x509ce0=!0x0):_0x16feef=_0x16feef||_0x1f82dc['previousPosition']));}function _0x271190(_0x3f3fac){const _0x2c7270=_0x52f2ec['mapper']['toViewPosition'](_0x3f3fac),_0x1eaf7f=_0x52f2ec['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x50f674});_0x52f2ec['writer']['insert'](_0x2c7270,_0x1eaf7f),_0x52f2ec['mapper']['bindElementToMarker'](_0x1eaf7f,_0x551385['markerName']);}_0x2c01c8||_0x509ce0||!_0x16feef||_0x271190(_0x16feef);};}class ut extends _0x175100{constructor(_0x3fab35){super(_0x3fab35);const _0x5e2017=_0x3fab35['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x5e2017,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5e2017,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x599ca0=this['editor'],_0x8626a5=_0x599ca0['plugins']['get'](l),_0x1366f0=_0x8626a5['isReady']?_0x8626a5['diff']['newRevisionId']:null;_0x599ca0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1366f0);}['refresh'](){const {isReady:_0x31d48,isEnabled:_0x140ba2,repository:_0x801ea2,diff:_0x118a7f}=this['editor']['plugins']['get'](l),_0xe78ce=_0x118a7f&&_0x801ea2['getLaterVisibleRevision'](_0x118a7f['newRevisionId']);this['isEnabled']=_0x31d48&&_0x140ba2&&Boolean(_0xe78ce);}}class lt extends _0x175100{['_step'];constructor(_0x5cce0e,{direction:_0x6ee276}){super(_0x5cce0e);const _0x2fbb92=_0x5cce0e['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x6ee276?0x1:-0x1,this['listenTo'](_0x2fbb92,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2fbb92,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2fbb92,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2017d8=this['editor'],_0x1cb313=_0x2017d8['plugins']['get'](l),{isNavigationMode:_0xd31afe,currentChangeNumber:_0x1b2d02}=_0x1cb313;let _0x15d8ef;if(_0x1cb313['activeChange']=_0xd31afe?_0x1cb313['diff']['changes']['get'](_0x1b2d02+this['_step']):_0x1cb313['diff']['changes']['first'],_0x1cb313['activeChange']['data']['isOnRoot'])_0x15d8ef=_0x2017d8['editing']['view']['getDomRoot'](_0x1cb313['activeChange']['rootName']);else{const _0x463673=_0x2017d8['model']['markers']['get']('revision:'+_0x1cb313['activeChange']['id']);_0x15d8ef=_0x256ef8(_0x2017d8['editing'],_0x463673);}_0x380874({'target':_0x15d8ef,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x36bc7e,currentChangeNumber:_0x6223cc,numberOfChanges:_0x4f38da,isReady:_0x4a534f,isEnabled:_0x336e38}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x336e38&&_0x4a534f&&_0x4f38da)&&(!_0x36bc7e||(0x1===this['_step']?_0x6223cc<_0x4f38da-0x1:_0x6223cc>0x0));}}class Ri extends _0x2a7ba6{constructor(_0x36d67e){super(_0x36d67e);const _0x48e56e=this['bindTemplate'],_0x2e23a8=new _0xe89d0(_0x36d67e),_0x40204d=new _0xe89d0(_0x36d67e);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',(_0x2f31ac,_0x2f44cc)=>_0x2f31ac&&_0x2f44cc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x41ad2a,_0x27a473,_0x45c27f,_0x57324a)=>{if(!_0x41ad2a)return R(_0x36d67e,'Loading...');if(!_0x45c27f)return R(_0x36d67e,'No\x20changes');const _0x3c9512=R(_0x36d67e,'NUMBER_OF_CHANGES',_0x45c27f);return _0x57324a?R(_0x36d67e,'X_OF_Y_CHANGES',[_0x27a473+0x1,_0x45c27f]):_0x3c9512;}),_0x2e23a8['set']({'label':R(_0x36d67e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x506bfb}),_0x40204d['set']({'label':R(_0x36d67e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x12ad05}),_0x2e23a8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x40204d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2e23a8['on']('execute',()=>this['fire']('execute','backward')),_0x40204d['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',_0x48e56e['if']('_isStatusLabelVisible','ck-hidden',_0x4863b8=>!_0x4863b8)]},'children':[{'text':_0x48e56e['to']('isNavigationMode',_0x320b96=>_0x320b96?R(_0x36d67e,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x36d67e,'Total')+':\x20')}]},{'text':_0x48e56e['to']('_statusText')}]},new _0x252087(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2e23a8,_0x40204d]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x3c3b37{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5c27a2=this['editor']['editing']['view'];_0x5c27a2['change'](_0x46735e=>{for(const _0x475e27 of _0x5c27a2['document']['roots'])_0x46735e['addClass'](ge,_0x475e27);});}['hide'](){const _0x31ca98=this['editor']['editing']['view'];_0x31ca98['change'](_0x2d0c78=>{for(const _0x3f0fe0 of _0x31ca98['document']['roots'])_0x2d0c78['removeClass'](ge,_0x3f0fe0);});}}class u extends _0x3c3b37{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x57d0b8=this['editor'],_0x3e07d4=_0x57d0b8['plugins']['get'](l),_0x592624=_0x57d0b8['plugins']['get'](ji);_0x57d0b8['ui']['componentFactory']['add']('exitToEditing',_0x3d75bf=>{const _0x1f4c27=new _0xe89d0(_0x3d75bf);return _0x1f4c27['set']({'label':R(_0x3d75bf,'Back\x20to\x20editing'),'icon':_0x41500f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1f4c27,'execute',()=>{_0x57d0b8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1f4c27;}),_0x57d0b8['ui']['componentFactory']['add']('restoreRevision',_0x26ffcb=>{const _0x1670f6=new _0xe89d0(_0x26ffcb);return _0x1670f6['set']({'label':R(_0x26ffcb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1670f6['bind']('isEnabled')['to'](_0x57d0b8['commands']['get']('restoreRevision')),this['listenTo'](_0x1670f6,'execute',()=>_0x57d0b8['execute']('restoreRevision')),_0x1670f6;}),_0x57d0b8['ui']['componentFactory']['add']('changesNavigation',_0x7ec397=>{const _0x161938=new Ri(_0x7ec397),_0x359525=_0x57d0b8['commands']['get']('showPreviousChange'),_0x2ad764=_0x57d0b8['commands']['get']('showNextChange');return _0x161938['bind']('isBackwardNavigationEnabled')['to'](_0x359525,'isEnabled'),_0x161938['bind']('isForwardNavigationEnabled')['to'](_0x2ad764,'isEnabled'),_0x161938['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3e07d4),this['listenTo'](_0x161938,'execute',(_0x2c8210,_0x5db0b7)=>{_0x57d0b8['execute']('forward'===_0x5db0b7?'showNextChange':'showPreviousChange');}),_0x161938;}),_0x592624['show'](),_0x3e07d4['on']('change:isReady',(_0x26c233,_0x4696f1,_0x58e057)=>{_0x58e057?_0x592624['hide']():_0x592624['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x16fdb5,_0x409b24){super(_0x16fdb5,_0x409b24);const _0x41d29c=this['bindTemplate'];this['set']({'label':R(_0x16fdb5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x16fdb5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x41d29c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2a4d8a=this['fieldView']['element'];this['_tooltipString']=_0x2a4d8a['scrollWidth']>_0x2a4d8a['clientWidth']&&_0x2a4d8a['value']||'';}}class ni extends _0x2a7ba6{constructor(_0x5b9d56,_0x40cb73,_0x2dc8fb){super(_0x5b9d56);const _0x55cb82=new _0x3b96c7();_0x55cb82['set']({'content':_0x5ee8cd,'viewBox':'0\x200\x2011\x2010'});const _0x515eee=['ck','ck-revision-history-sidebar__revision-author'];_0x2dc8fb&&_0x515eee['push']('ck-revision-history-sidebar__revision-author_creator');const _0x54e920=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x5b9d56,_0x2dc8fb?'Revision\x20creator':'Revision\x20author')},'children':[_0x55cb82,_0x40cb73['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x515eee},'children':_0x54e920});}}function ci(_0x4a32aa,_0xba1634){const _0x1f0308=_0x4a32aa['bindTemplate'],_0x146521=_0x4a32aa['locale'],_0x2ee3d8=_0x41dae4(_0x146521);_0x2ee3d8['panelPosition']='sw';const _0x5f522f=function(_0x3f64f3,_0x4a084f){const _0xb998f8=function(_0xc22eb3,_0x1e8dde){const _0x3cb185=_0xc22eb3['locale'],_0x9e6a1d={'Compare\x20against\x20selected':R(_0x3cb185,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x3cb185,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x3cb185,'Restore\x20this\x20revision')};return _0x1e8dde['map'](_0x12abb8=>{const _0x46475e=_0x9e6a1d[_0x12abb8['name']];return _0x46475e&&_0x46475e!==_0x12abb8['name']&&(_0x12abb8['name']=_0x46475e),_0x12abb8;});}(_0x3f64f3,_0x4a084f),_0x139744=new _0x46abbb();for(const _0xaf4916 of _0xb998f8){const _0x4c74d3={'type':'button','model':new to({'label':_0xaf4916['name'],'class':_0xaf4916['class'],'withText':!0x0,'role':'menuitem','_action':_0xaf4916['action']})};_0x4c74d3['model']['bind']('isEnabled')['to'](_0x3f64f3,'isActionsDropdownOpen',_0x3985ea=>'function'!=typeof _0xaf4916['isEnabled']||(!_0x3985ea||_0xaf4916['isEnabled'](_0x3f64f3))),_0x139744['add'](_0x4c74d3);}return _0x139744;}(_0x4a32aa,_0xba1634);return _0x4a32aa['bind']('isActionsDropdownOpen')['to'](_0x2ee3d8,'isOpen'),_0x2ee3d8['buttonView']['set']({'label':R(_0x146521,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4d6d9a}),_0x2ee3d8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1f0308['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1f0308['to'](_0x20f7d8=>_0x20f7d8['stopPropagation']())}}),_0x2ee3d8['on']('execute',_0x52189c=>{_0x4a32aa['isReady']&&'function'==typeof _0x52189c['source']['_action']&&_0x52189c['source']['_action'](_0x4a32aa);}),_0x4b3d45(_0x2ee3d8,_0x5f522f,{'role':'menu'}),_0x2ee3d8['listenTo'](_0x4a32aa,'change:isActionsDropdownOpen',(_0x5f0945,_0x29319d,_0x5004c6)=>{if(_0x5004c6)for(const _0x286062 of _0x2ee3d8['listView']['items']){const _0xc00c9a=_0x286062['children']['first'],_0x2b3106=_0xba1634['find'](_0x350737=>_0x350737['action']===_0xc00c9a['_action'])['isVisible'];_0x286062['isVisible']=void 0x0===_0x2b3106||_0x2b3106(_0x4a32aa);}}),_0x2ee3d8;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0xd7bd11(_0x2a7ba6){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x9d68fe,_0x271558,_0x2522b6,_0x58d866){super(_0x9d68fe);const _0x4cc080=this['bindTemplate'],_0x45d41f=function(_0xc7aa7a,_0x325395){const _0x45e162=Array['from'](_0x325395['authors'])['filter'](_0x38abfc=>_0x38abfc!=_0x325395['creator']);return _0x325395['creator']&&_0x45e162['unshift'](_0x325395['creator']),_0x45e162['map'](_0x2e1055=>new ni(_0xc7aa7a,_0x2e1055,_0x2e1055==_0x325395['creator']));}(_0x9d68fe,_0x271558);this['id']=_0x271558['id'],this['_revision']=_0x271558,this['_requireRevisionName']=_0x58d866,this['bind']('name','createdAt')['to'](_0x271558),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x28db64=>{return _0x151b8b=_0x9d68fe['uiLanguage'],(_0x2fd362=_0x28db64)['toLocaleDateString'](_0x151b8b,{'month':'long','day':'numeric'})+',\x20'+_0x2fd362['toLocaleTimeString'](_0x151b8b,{'hour':'numeric','minute':'numeric'});var _0x151b8b,_0x2fd362;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x9d68fe,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5092d5=>_0x5092d5||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x7d7b6e,_0x4c30c0)=>_0x7d7b6e&&_0x4c30c0),this['revisionActionsView']=_0x2522b6&&_0x2522b6['length']?ci(this,_0x2522b6):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4cc080['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4cc080['if']('isEnabled','ck-disabled',_0x467883=>!_0x467883),_0x4cc080['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4cc080['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4cc080['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':_0x4cc080['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':_0x45d41f}]},this['revisionActionsView']],'on':{'click':_0x4cc080['to'](_0x5ec6e3=>{_0x5ec6e3['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x45e0a6=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x45e0a6,'change',()=>{this['_requireRevisionName']&&!_0x45e0a6['value']||this['fire']('setName',{'id':this['id'],'name':_0x45e0a6['value']}),_0x45e0a6['value']||(_0x45e0a6['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x27fd15,_0x2e5ea5){const _0x5de067=_0x2cbe6c['fromJSDate'](_0x27fd15)['setLocale'](_0x2e5ea5),_0x47738e=_0x2cbe6c['local'](),_0x4d212e=_0x47738e['minus']({'days':0x1})['startOf']('day');let _0x516763,_0x4290d0;return _0x5de067['hasSame'](_0x47738e,'day')?(_0x516763=_0x5de067['startOf']('day')['toJSDate'](),_0x4290d0=_0x5de067['toRelativeCalendar']()):_0x5de067['hasSame'](_0x4d212e,'day')?(_0x516763=_0x4d212e['toJSDate'](),_0x4290d0=_0x5de067['toRelativeCalendar']()):_0x5de067['hasSame'](_0x47738e,'week')?(_0x516763=_0x5de067['startOf']('week')['toJSDate'](),_0x4290d0=_0x5de067['weekdayLong']||''):_0x5de067['hasSame'](_0x47738e,'year')?(_0x516763=_0x5de067['startOf']('month')['toJSDate'](),_0x4290d0=_0x5de067['monthLong']||''):(_0x516763=_0x5de067['startOf']('year')['toJSDate'](),_0x4290d0=String(_0x5de067['year'])),{'startDate':_0x516763,'localizedPeriodName':_0x4290d0};}class li extends _0x2a7ba6{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x27155c,_0x54b2e5,_0x32e7e5,_0x21dab0){super(_0x27155c);const _0x34a3b9=mi(_0x54b2e5,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x54b2e5,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x32e7e5,this['_requireRevisionName']=_0x21dab0,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':_0x34a3b9}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x505749){const _0x146507=new vi(this['locale'],_0x505749,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x146507);}['removeRevision'](_0x43f855){const _0x15fe6a=this['revisionViews']['find'](_0x317c4e=>_0x317c4e['id']===_0x43f855['id']);this['revisionViews']['remove'](_0x15fe6a);}}class bi extends _0x2a7ba6{constructor(_0x1461fd){super(_0x1461fd);const _0x5e75dc=new _0x3b96c7();_0x5e75dc['content']=_0x4d8013,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5e75dc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x1461fd,'Revision\x20history')]}]});}}class di extends _0x2a7ba6{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x51bc25,_0x525f26,_0x8c1810,_0x25b90d){super(_0x51bc25);const _0x1b74fe=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x525f26,this['_revisionActions']=_0x8c1810,this['_requireRevisionName']=_0x25b90d,this['on']('select',(_0x753b4d,_0x3cb50f)=>{this['fire']('revisionSelected',_0x3cb50f);}),this['on']('setName',(_0x583bc3,_0x7afb97)=>{this['fire']('revisionSetName',_0x7afb97);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new bi(_0x51bc25),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1b74fe['if']('isEnabled','ck-disabled',_0x4c2b5d=>!_0x4c2b5d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5bace8 of this['_revisions'])this['_addRevision'](_0x5bace8);this['_revisions']['on']('add',(_0x1b935f,_0x3bac93)=>{this['_addRevision'](_0x3bac93);}),this['_revisions']['on']('remove',(_0x250f13,_0x37effe)=>{this['_removeRevision'](_0x37effe);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x233e0b=>_0x233e0b['revisionViews']['map'](_0x2841d2=>_0x2841d2))['flat']();}['selectRevision'](_0xca3f3c){for(const _0x3e9226 of this['revisionViews'])_0xca3f3c&&_0xca3f3c['id']===_0x3e9226['id']?_0x3e9226['select']():_0x3e9226['deselect']();}['highlightRevisions'](_0x54deb9){for(const _0xed93a9 of this['revisionViews'])_0x54deb9['some'](({id:_0x3d2596})=>_0x3d2596===_0xed93a9['id'])?_0xed93a9['highlight']():_0xed93a9['unhighlight']();}['_addRevision'](_0x46ba28){const _0x480977=mi(_0x46ba28['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x351e30=this['timePeriodViews']['get'](0x0);_0x351e30&&_0x351e30['startDate']['getTime']()===_0x480977['getTime']()||(_0x351e30=new li(this['locale'],_0x480977,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x351e30)),_0x351e30['addRevision'](_0x46ba28);}['_removeRevision'](_0x5e68ff){const _0x4ac165=mi(_0x5e68ff['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4ac165)['removeRevision'](_0x5e68ff);}['_getTimePeriodViewByStartDate'](_0x4e3362){return this['timePeriodViews']['find'](_0x4c126e=>_0x4c126e['startDate']['getTime']()===_0x4e3362['getTime']());}}class f extends _0x3c3b37{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
dt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x31b8b8(_0x4dfa8c){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x11a0e3,_0x4483cb){super(_0x4483cb),this['sourceElement']=_0x11a0e3,this['model']['document']['createRoot']();const _0x5e6417=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5e6417);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x13d0c5,_0x4cb8bb){const _0x20bcb4=new this(_0x13d0c5,_0x4cb8bb);return await _0x20bcb4['initPlugins'](),await _0x20bcb4['ui']['init'](_0x13d0c5),await _0x20bcb4['data']['init'](_0x20bcb4['config']['get']('initialData')||''),_0x20bcb4['fire']('ready'),_0x20bcb4;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ft extends _0x1973ac{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11d240){function _0x1f1368(_0x2832b8){return _0x2832b8['map'](_0x2a6371=>String['fromCharCode'](_0x2a6371))['join']('');}super(_0x11d240),this['result']='end',_0x11d240[_0x1f1368([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1368([0x76,0x69,0x65,0x77])][_0x1f1368([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1368([0x61,0x75,0x74,0x6f]),_0x11d240[_0x1f1368([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1f1368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1368([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1f1368([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1f1368([0x6f,0x6b])});}}class vt extends _0x1973ac{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x41cd5b){if(super(_0x41cd5b),!this['editor']['config']['get']('revisionHistory'))throw new _0x22ea28('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4665b9=>this['_showRevisionViewer']({..._0x4665b9,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4ed6c9=>this['_closeRevisionViewer'](_0x4ed6c9)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2c6e95=>this['_restoreRevision'](_0x2c6e95)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2fb473){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2fb473;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3a064e){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3a064e);}['getRevision'](_0x218e0f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x218e0f);}['getRevisions'](_0x4f2bdc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4f2bdc||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x571eba=this['editor'],_0x3398e7=_0x2a2211(_0x571eba,d),_0x15d7ea=_0x571eba['plugins']['get']('RevisionTracker'),_0x4d4908=_0x571eba['plugins']['get']('Users')['users'];return _0x3398e7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3398e7['lazyRoots'],(_0x3398e7['plugins']['push'](ft,l,u,class extends _0x1973ac{static get['requires'](){return[l,'Users'];}['init'](){const _0x153825=this['editor']['plugins']['get']('Users');for(const _0x2f5da9 of _0x4d4908)_0x2f5da9['isAnonymous']||_0x153825['getUser'](_0x2f5da9['id'])||_0x153825['addUser'](_0x2f5da9);const _0x34f11d=_0x15d7ea['repository']['getRevisions']();let _0x554562=null;const _0x45c679=this['editor']['plugins']['get']('RevisionViewer');_0x45c679['adapter']=_0x15d7ea['adapter'],_0x45c679['bind']('isEnabled')['to'](_0x15d7ea),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x571eba,'isReadOnly',_0x17a289=>!_0x17a289);for(const _0x6e2e36 of _0x34f11d){const _0x293a10=null===_0x6e2e36['creator'];if(_0x293a10&&_0x6e2e36['toVersion']===_0x6e2e36['fromVersion'])continue;const _0x5f5784=_0x6e2e36['toJSON']();_0x45c679['addRevisionData'](_0x5f5784,(_0x480828,_0x4f26b2,_0x2d00d0)=>{if(_0x293a10){if(_0x554562)_0x554562['_update'](_0x480828,_0x4f26b2);else{if(!_0x4f26b2){const _0xfd6ff2=_0x2d00d0['toJSON']();_0xfd6ff2['id']=_0x173cdc(),_0x15d7ea['saveRevision'](_0xfd6ff2,_0x2d00d0['toVersion'])['then'](_0x1cf001=>{_0x554562=_0x1cf001;});}}}else _0x6e2e36['_update'](_0x480828,_0x4f26b2);});}}},f),_0x3398e7);}['_enhanceShowRevisionViewerCallback'](){const _0x1c8155=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3fa701=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x52f035=this['editor']['plugins']['get']('Autosave');await _0x52f035['save']();}else await _0x3fa701['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x133dbf=this['editor']['plugins']['get']('Dialog');_0x133dbf['isOpen']&&_0x133dbf['hide']();}const _0x2a0996=this['_getRevisionViewerEditorConfig']();return _0x1c8155(_0x2a0996)['then'](_0x247456=>{return(this['_viewerEditor']=_0x247456,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'),_0x247456);})['catch'](_0x3aa011=>(console['error'](_0x3aa011),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x40848b=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x40848b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x12d7ee=this['editor']['plugins']['get']('Annotations');_0x12d7ee['refreshVisibility'](),_0x12d7ee['refreshPositioning']();}})));}['_showRevisionViewer'](_0x32880c){const _0xf1f134=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x314a3a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x31f67a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x31f67a,_0x32880c)['then'](_0x339c09=>(_0x314a3a['style']['display']='block',_0xf1f134['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x339c09));}['_closeRevisionViewer'](_0x325cf0){const _0x5c33e4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5c33e4['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x325cf0['destroy']();}async['_restoreRevision'](_0x2ed7be){const _0x1e8715=this['editor'],_0x1d5b1c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1e269c=_0x1e8715['plugins']['get']('RevisionTracker'),_0x4418d2=_0x1e8715['plugins']['get']('RevisionHistoryUtils'),_0x3c839f=_0x1d5b1c['repository']['getRevision'](_0x2ed7be);let _0x5e57e6,_0x4330be,_0x58f079;try{await _0x4418d2['loadRevisionData'](_0x3c839f,this['adapter']),_0x5e57e6=_0x4418d2['getRevisionDocumentData'](_0x3c839f),_0x4330be=_0x4418d2['getRevisionRootsAttributes'](_0x3c839f);}catch(_0x5c96dd){return void console['error'](_0x5c96dd);}_0x1e8715['model']['change'](_0xdc14bf=>{for(const _0x119d4a of Array['from'](_0x1e8715['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xdc14bf['removeMarker'](_0x119d4a);}),_0x1d5b1c['isReady']=!0x1,_0x1e8715['model']['enqueueChange'](_0x4a5e15=>{_0x4a5e15['setSelection'](null),_0x4a5e15['removeSelectionAttribute'](_0x1e8715['model']['document']['selection']['getAttributeKeys']());const _0x4c5a14=Object['keys'](_0x5e57e6);for(const _0x151b4b of _0x1e8715['model']['document']['roots'])'$graveyard'!=_0x151b4b['rootName']&&_0x151b4b['isAttached']()&&!_0x4c5a14['includes'](_0x151b4b['rootName'])&&_0x4a5e15['detachRoot'](_0x151b4b);for(const _0xaa219 of _0x4c5a14){let _0x4d12a3=_0x1e8715['model']['document']['getRoot'](_0xaa219);_0x4d12a3&&_0x4d12a3['isAttached']()||(_0x4d12a3=_0x4a5e15['addRoot'](_0xaa219));const _0x34533a=_0x4330be[_0xaa219],_0x5b6ed7=Object['keys'](_0x34533a),_0x443e14=_0x5e57e6[_0xaa219];for(const _0x3cdd14 of _0x4d12a3['getAttributeKeys']())_0x5b6ed7['includes'](_0x3cdd14)||_0x4a5e15['removeAttribute'](_0x3cdd14,_0x4d12a3);for(const _0x117368 of _0x5b6ed7)_0x4a5e15['setAttribute'](_0x117368,_0x4330be[_0xaa219][_0x117368],_0x4d12a3);_0x4a5e15['remove'](_0x4a5e15['createRangeIn'](_0x4d12a3)),_0x4a5e15['insert'](_0x1e8715['data']['parse'](_0x443e14,_0x4d12a3),_0x4d12a3,0x0);}});const _0x458c2f=R(_0x1e8715['locale'],'Restored');if(_0x3c839f['name'])_0x58f079=-0x1==_0x3c839f['name']['indexOf'](_0x458c2f)?_0x458c2f+':\x20'+_0x3c839f['name']:_0x3c839f['name'];else _0x58f079=_0x458c2f+':\x20'+(_0x3c839f['createdAt']['toLocaleDateString'](_0x1e8715['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3c839f['createdAt']['toLocaleTimeString'](_0x1e8715['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1e269c['saveRevision']({'name':_0x58f079}),_0x1d5b1c['isReady']=!0x0,_0x1e8715['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{ut as RestoreRevisionCommand,I as Revision,vt as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,lt as ShowChangeCommand};
|
|
29
|
+
dt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x293ecb){super(_0x293ecb),this['_revisionViewer']=_0x293ecb['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3e1a17=this['_revisionsRepository']['_revisions'],_0x3389bd=this['_createRevisionActions'](),_0x249d8d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x3e1a17,_0x3389bd,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',(_0x2d4198,_0x5b97a5)=>{_0x5b97a5['revisionViews']['on']('add',(_0x1e208c,_0x31c43e)=>{_0x31c43e['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)),_0x249d8d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x100282=this['_revisionsRepository']['getRevision'](0x0);if(_0x100282){const _0xc9de97=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x100282['id']);this['_revisionViewer']['compare'](_0x100282,_0xc9de97);}}['_handleRevisionSelected'](_0x242315,_0x7dc996){const _0x45334b=this['_revisionsRepository']['getRevision'](_0x7dc996['id']),_0xeb18e5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x45334b['id']);this['_revisionViewer']['compare'](_0x45334b,_0xeb18e5);}['_handleRevisionSetName'](_0x565e1d,_0x4d2fff){this['_revisionsRepository']['getRevision'](_0x4d2fff['id'])['setName'](_0x4d2fff['name']);}['_handleDiffChange'](_0x1acf1a,_0x393b05,_0x1087f2){const _0x5a4c04=this['_revisionsRepository']['getRevisionsInDiff'](_0x1087f2);_0x5a4c04['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5a4c04),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5a4c04[0x0]));}['_createRevisionActions'](){const _0x424833=this['editor'],_0x67568c=f['availableRevisionActions'],_0x4bb8e2=_0x424833['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x4bb8e2['length'])return _0x4bb8e2['map'](_0x23d94a=>{const _0x1fcfce='string'==typeof _0x23d94a?Object['assign']({},_0x67568c[_0x23d94a]):_0x23d94a;return _0x1fcfce['action']=_0x1fcfce['action']['bind'](this,_0x424833),_0x1fcfce['isVisible']&&(_0x1fcfce['isVisible']=_0x1fcfce['isVisible']['bind'](this,_0x424833)),_0x1fcfce;});}}function dt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x252828},_0x35ee32)=>{const _0x2ff23f=_0x252828['get'](l),_0x3fcd8e=_0x2ff23f['repository'];let _0x398349=_0x2ff23f['diff']['newRevisionId'],_0x36bbe7=_0x35ee32['id'];_0x3fcd8e['getIndex'](_0x398349)>_0x3fcd8e['getIndex'](_0x36bbe7)&&([_0x398349,_0x36bbe7]=[_0x36bbe7,_0x398349]),_0x2ff23f['compare'](_0x398349,_0x36bbe7);},'isVisible':({plugins:_0x5439bd},_0x485387)=>{const _0x4971ef=_0x5439bd['get'](l);return!(_0x4971ef['repository']['getRevisionsInDiff'](_0x4971ef['diff'])['length']>0x2)&&!_0x485387['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x54338b,{id:_0x2663b3})=>{_0x54338b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2663b3);},'isVisible':({plugins:_0x415b6d},_0x5e1908)=>!!_0x415b6d['get'](l)['repository']['getLaterVisibleRevision'](_0x5e1908['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xc328e5},{id:_0x4971b8,revisionNameView:_0x1f9a21})=>{const _0x159fbc=_0xc328e5['get'](l),_0x3facf7=_0x159fbc['repository']['getEarlierVisibleRevision'](_0x4971b8);_0x159fbc['compare'](_0x4971b8,_0x3facf7),_0x1f9a21['focus'](),_0x1f9a21['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2b767d,_0x126e44){super(_0x2b767d),this['_view']=_0x126e44,this['_toolbarConfig']=st(_0x2b767d['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x542299){const _0x4f2581=this['editor'],_0x364b6e=this['view'],_0x1c08bb=_0x4f2581['editing']['view'],_0x533db6=_0x364b6e['editable'],_0x2f433b=_0x1c08bb['document']['getRoot']();_0x533db6['name']=_0x2f433b['rootName'],_0x364b6e['render']();const _0x53178a=_0x533db6['element'];this['setEditableElement'](_0x533db6['name'],_0x53178a),_0x364b6e['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1c08bb['attachDomRoot'](_0x53178a),this['_elementReplacer']['replace'](_0x542299,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x46256=this['view'],_0x3a05d6=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3a05d6['detachDomRoot'](_0x46256['editable']['name']),_0x46256['destroy']();}['_initToolbar'](){const _0x561471=this['view'];_0x561471['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x561471['stickyPanel']['limiterElement']=_0x561471['element'],_0x561471['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x58490b})=>_0x58490b),_0x561471['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x561471['toolbar']);}}class ii extends _0x38a6ea{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x52313e,_0x2ca43c,_0x38115a={}){super(_0x52313e),this['stickyPanel']=new _0x132c56(_0x52313e),this['toolbar']=new _0x1e6515(_0x52313e,{'shouldGroupWhenFull':_0x38115a['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x52313e,_0x2ca43c);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x273a70(_0x153047){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3491bc,_0x135885){super(_0x135885),this['sourceElement']=_0x3491bc,this['model']['document']['createRoot']();const _0x4e4d9d=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4e4d9d);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5a9eea,_0x215e19){const _0x4a0d77=new this(_0x5a9eea,_0x215e19);return await _0x4a0d77['initPlugins'](),await _0x4a0d77['ui']['init'](_0x5a9eea),await _0x4a0d77['data']['init'](_0x4a0d77['config']['get']('initialData')||''),_0x4a0d77['fire']('ready'),_0x4a0d77;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ft extends _0x3c3b37{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22ad27){function _0x335737(_0x5c46fb){return _0x5c46fb['map'](_0x300df9=>String['fromCharCode'](_0x300df9))['join']('');}super(_0x22ad27),this['result']='end',_0x22ad27[_0x335737([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x335737([0x76,0x69,0x65,0x77])][_0x335737([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x335737([0x61,0x75,0x74,0x6f]),_0x22ad27[_0x335737([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x335737([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x335737([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x335737([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x335737([0x6f,0x6b])});}}class vt extends _0x3c3b37{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x1b754e){if(super(_0x1b754e),!this['editor']['config']['get']('revisionHistory'))throw new _0x51cd85('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5d0da4=>this['_showRevisionViewer']({..._0x5d0da4,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x45eaab=>this['_closeRevisionViewer'](_0x45eaab)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1c7e98=>this['_restoreRevision'](_0x1c7e98)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x29bcea){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x29bcea;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1f1de1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1f1de1);}['getRevision'](_0x72952f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x72952f);}['getRevisions'](_0x6b4195){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x6b4195||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x271dcb=this['editor'],_0x42badd=_0xebf896(_0x271dcb,d),_0xd43ec2=_0x271dcb['plugins']['get']('RevisionTracker'),_0x5e6571=_0x271dcb['plugins']['get']('Users')['users'];return _0x42badd['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x42badd['lazyRoots'],(_0x42badd['plugins']['push'](ft,l,u,class extends _0x3c3b37{static get['requires'](){return[l,'Users'];}['init'](){const _0xc62500=this['editor']['plugins']['get']('Users');for(const _0x7c6682 of _0x5e6571)_0x7c6682['isAnonymous']||_0xc62500['getUser'](_0x7c6682['id'])||_0xc62500['addUser'](_0x7c6682);const _0x3fc890=_0xd43ec2['repository']['getRevisions']();let _0x4fbfb9=null;const _0x5f0e14=this['editor']['plugins']['get']('RevisionViewer');_0x5f0e14['adapter']=_0xd43ec2['adapter'],_0x5f0e14['bind']('isEnabled')['to'](_0xd43ec2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x271dcb,'isReadOnly',_0x4ec592=>!_0x4ec592);for(const _0x9af11e of _0x3fc890){const _0x565c0b=null===_0x9af11e['creator'];if(_0x565c0b&&_0x9af11e['toVersion']===_0x9af11e['fromVersion'])continue;const _0x4ca73f=_0x9af11e['toJSON']();_0x5f0e14['addRevisionData'](_0x4ca73f,(_0x59b082,_0x346606,_0x3118b9)=>{if(_0x565c0b){if(_0x4fbfb9)_0x4fbfb9['_update'](_0x59b082,_0x346606);else{if(!_0x346606){const _0x1c969d=_0x3118b9['toJSON']();_0x1c969d['id']=_0x16b0b(),_0xd43ec2['saveRevision'](_0x1c969d,_0x3118b9['toVersion'])['then'](_0x3cd222=>{_0x4fbfb9=_0x3cd222;});}}}else _0x9af11e['_update'](_0x59b082,_0x346606);});}}},f),_0x42badd);}['_enhanceShowRevisionViewerCallback'](){const _0x1f1b5c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x12a257=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x140587=this['editor']['plugins']['get']('Autosave');await _0x140587['save']();}else await _0x12a257['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2900c8=this['editor']['plugins']['get']('Dialog');_0x2900c8['isOpen']&&_0x2900c8['hide']();}const _0x2eb87a=this['_getRevisionViewerEditorConfig']();return _0x1f1b5c(_0x2eb87a)['then'](_0x560550=>{return(this['_viewerEditor']=_0x560550,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'),_0x560550);})['catch'](_0x1e84ae=>(console['error'](_0x1e84ae),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x13279f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x13279f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5ae2e9=this['editor']['plugins']['get']('Annotations');_0x5ae2e9['refreshVisibility'](),_0x5ae2e9['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4a4abe){const _0x61aa40=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5c00be=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1fb4dd=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x1fb4dd,_0x4a4abe)['then'](_0x7439be=>(_0x5c00be['style']['display']='block',_0x61aa40['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x7439be));}['_closeRevisionViewer'](_0x2b23c6){const _0x580576=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x580576['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2b23c6['destroy']();}async['_restoreRevision'](_0x26e682){const _0x29c4fa=this['editor'],_0x38f32b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1672e4=_0x29c4fa['plugins']['get']('RevisionTracker'),_0x2397ae=_0x29c4fa['plugins']['get']('RevisionHistoryUtils'),_0x188681=_0x38f32b['repository']['getRevision'](_0x26e682);let _0x56cb08,_0x106001,_0x4a8c8c;try{await _0x2397ae['loadRevisionData'](_0x188681,this['adapter']),_0x56cb08=_0x2397ae['getRevisionDocumentData'](_0x188681),_0x106001=_0x2397ae['getRevisionRootsAttributes'](_0x188681);}catch(_0x4c90c5){return void console['error'](_0x4c90c5);}_0x29c4fa['model']['change'](_0x2cee9c=>{for(const _0x6293ae of Array['from'](_0x29c4fa['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2cee9c['removeMarker'](_0x6293ae);}),_0x38f32b['isReady']=!0x1,_0x29c4fa['model']['enqueueChange'](_0x5f2c92=>{_0x5f2c92['setSelection'](null),_0x5f2c92['removeSelectionAttribute'](_0x29c4fa['model']['document']['selection']['getAttributeKeys']());const _0x2d81af=Object['keys'](_0x56cb08);for(const _0x2a3894 of _0x29c4fa['model']['document']['roots'])'$graveyard'!=_0x2a3894['rootName']&&_0x2a3894['isAttached']()&&!_0x2d81af['includes'](_0x2a3894['rootName'])&&_0x5f2c92['detachRoot'](_0x2a3894);for(const _0x553753 of _0x2d81af){let _0x11bf75=_0x29c4fa['model']['document']['getRoot'](_0x553753);_0x11bf75&&_0x11bf75['isAttached']()||(_0x11bf75=_0x5f2c92['addRoot'](_0x553753));const _0x3621c6=_0x106001[_0x553753],_0x407fe9=Object['keys'](_0x3621c6),_0x22f881=_0x56cb08[_0x553753];for(const _0x201b35 of _0x11bf75['getAttributeKeys']())_0x407fe9['includes'](_0x201b35)||_0x5f2c92['removeAttribute'](_0x201b35,_0x11bf75);for(const _0x2801c3 of _0x407fe9)_0x5f2c92['setAttribute'](_0x2801c3,_0x106001[_0x553753][_0x2801c3],_0x11bf75);_0x5f2c92['remove'](_0x5f2c92['createRangeIn'](_0x11bf75)),_0x5f2c92['insert'](_0x29c4fa['data']['parse'](_0x22f881,_0x11bf75),_0x11bf75,0x0);}});const _0x39d5ee=R(_0x29c4fa['locale'],'Restored');if(_0x188681['name'])_0x4a8c8c=-0x1==_0x188681['name']['indexOf'](_0x39d5ee)?_0x39d5ee+':\x20'+_0x188681['name']:_0x188681['name'];else _0x4a8c8c=_0x39d5ee+':\x20'+(_0x188681['createdAt']['toLocaleDateString'](_0x29c4fa['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x188681['createdAt']['toLocaleTimeString'](_0x29c4fa['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1672e4['saveRevision']({'name':_0x4a8c8c}),_0x38f32b['isReady']=!0x0,_0x29c4fa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{ut as RestoreRevisionCommand,I as Revision,vt as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,lt as ShowChangeCommand};
|