@ckeditor/ckeditor5-revision-history 46.0.0-alpha.4 → 46.0.0-alpha.6
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
|
-
_0x321dc8(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x28c4c3){super(),this['id']=_0x28c4c3['id']||_0xb1be14(),this['creator']=_0x28c4c3['creator']||null,this['authors']=_0x28c4c3['authors']||[],this['diffData']=_0x28c4c3['diffData']||null,this['toVersion']=_0x28c4c3['toVersion']||0x0,this['fromVersion']=_0x28c4c3['fromVersion']||0x0,this['set']('name',_0x28c4c3['name']||''),this['set']('createdAt',_0x28c4c3['createdAt']||new Date()),this['set']('attributes',_0x28c4c3['attributes']||{});}['setName'](_0x54ee18){this['_update']({'name':_0x54ee18});}['setAttribute'](_0x11e34c,_0x1cf509){const _0x21745d=_0x5ac5f2(this['attributes']);_0x46ca65(_0x21745d,_0x11e34c,_0x1cf509),this['_update']({'attributes':_0x21745d});}['removeAttribute'](_0x1ba423){const _0x1f8fb2=_0x5ac5f2(this['attributes']);_0x3625bb(_0x1f8fb2,_0x1ba423),this['_update']({'attributes':_0x1f8fb2});}['_update'](_0x2a43be,_0x264503=!0x1){let _0x3444d0=!0x1;const _0xc4c3f9={'id':this['id']},_0x24ed30=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2b7cbd of _0x24ed30){const _0xe2a1de=_0x2a43be[_0x2b7cbd];void 0x0!==_0xe2a1de&&_0xe2a1de!==this[_0x2b7cbd]&&(this[_0x2b7cbd]=_0xe2a1de,_0xc4c3f9[_0x2b7cbd]=_0xe2a1de,_0x3444d0=!0x0);}_0x3444d0&&(_0xc4c3f9['authors']&&(_0xc4c3f9['authorsIds']=_0xc4c3f9['authors']['map'](_0x45abc7=>_0x45abc7['id']),delete _0xc4c3f9['authors']),this['fire']('_update',_0xc4c3f9,_0x264503));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1e1c53=>_0x1e1c53['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x261da3{['_revisions'];static get['requires'](){return[_0x188d72];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x471d00){super(_0x471d00),this['_revisions']=new _0x33b3a9();}['afterInit'](){!async function(_0x35efe9){const _0x34f141=_0x4d24e9([0x77,0x57,0x33,0x6e,0x37,0x6b,0x39,0x6d,0x6f,0x55,0x52,0x71,0x44,0x48,0x34,0x74,0x68,0x58,0x69,0x31,0x7a,0x70,0x5a,0x4b,0x78,0x4f,0x41,0x35,0x49,0x6c,0x54,0x6a,0x50,0x47,0x56,0x4a,0x79,0x75,0x59,0x51,0x72,0x66,0x4d,0x4c,0x53,0x65,0x67,0x63,0x36,0x30,0x76,0x4e,0x62,0x64,0x38,0x46,0x32,0x73,0x42,0x43,0x45,0x61]),_0x421039=0xeb829,_0x4b5d99=0x5228eece,_0x524290=0x522f827e^_0x4b5d99,_0x3d41b1=window[_0x4d24e9([0x44,0x61,0x74,0x65])][_0x4d24e9([0x6e,0x6f,0x77])](),_0x5de1d2=_0x35efe9[_0x4d24e9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fca90=new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dfa5f=>{_0x5de1d2[_0x4d24e9([0x6f,0x6e,0x63,0x65])](_0x4d24e9([0x72,0x65,0x61,0x64,0x79]),_0x1dfa5f);}),_0x104ab5={[_0x4d24e9([0x6b,0x74,0x79])]:_0x4d24e9([0x45,0x43]),[_0x4d24e9([0x75,0x73,0x65])]:_0x4d24e9([0x73,0x69,0x67]),[_0x4d24e9([0x63,0x72,0x76])]:_0x4d24e9([0x50,0x2d,0x32,0x35,0x36]),[_0x4d24e9([0x78])]:_0x4d24e9([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]),[_0x4d24e9([0x79])]:_0x4d24e9([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]),[_0x4d24e9([0x61,0x6c,0x67])]:_0x4d24e9([0x45,0x53,0x32,0x35,0x36])},_0x3c938b=_0x5de1d2[_0x4d24e9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d24e9([0x67,0x65,0x74])](_0x4d24e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x409bc1(){let _0x1d3c40,_0x406198=null,_0x3f6a7a=null;try{if(_0x3c938b==_0x4d24e9([0x47,0x50,0x4c]))return _0x4d24e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d3c40=_0x13ecfe(),!_0x1d3c40)return _0x4d24e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d3c40[_0x4d24e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f6a7a=_0x125f9e(_0x1d3c40[_0x4d24e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d3c40[_0x4d24e9([0x6a,0x74,0x69])])),await _0xf840da()?_0x23360a()?_0x374935()?_0x4d24e9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ceff4()?(_0x1d3c40[_0x4d24e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d24e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x406198=_0x21a573(_0x4d24e9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d3c40[_0x4d24e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d24e9([0x74,0x72,0x69,0x61,0x6c])&&(_0x406198=_0x21a573(_0x4d24e9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5498ff()):_0x4d24e9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d24e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d24e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4d24e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x374935(){const _0x3af5a5=[_0x4d24e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d24e9([0x74,0x72,0x69,0x61,0x6c])][_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d3c40[_0x4d24e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d41b1/0x3e8:0xe10*_0x524290;return _0x1d3c40[_0x4d24e9([0x65,0x78,0x70])]<_0x3af5a5;}function _0x23360a(){const _0x297f3a=_0x1d3c40[_0x4d24e9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x297f3a)return!0x1;if(_0x297f3a[_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d24e9([0x2a])))return!0x0;if(_0x297f3a[_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d24e9([0x52,0x48])))return!0x0;if(_0x297f3a[_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d24e9([0x52,0x52,0x48]))){if(_0x1bbc98())return!0x0;if(_0xf2333d()||_0x1f1734())return!0x0;}return!0x1;}function _0x2ceff4(){const _0xe380e8=_0x1d3c40[_0x4d24e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe380e8||0x0==_0xe380e8[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25ff24}=new URL(window[_0x4d24e9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe380e8[_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25ff24))return!0x0;const _0x3c97f4=_0x25ff24[_0x4d24e9([0x73,0x70,0x6c,0x69,0x74])](_0x4d24e9([0x2e]));return _0xe380e8[_0x4d24e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2eb17a=>_0x2eb17a[_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d24e9([0x2a])))[_0x4d24e9([0x6d,0x61,0x70])](_0x452af7=>_0x452af7[_0x4d24e9([0x73,0x70,0x6c,0x69,0x74])](_0x4d24e9([0x2e])))[_0x4d24e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x287260=>_0x287260[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c97f4[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d24e9([0x6d,0x61,0x70])](_0x559588=>Array(_0x3c97f4[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x559588[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d24e9([0x66,0x69,0x6c,0x6c])](_0x559588[0x0]===_0x4d24e9([0x2a])?_0x4d24e9([0x2a]):'')[_0x4d24e9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x559588))[_0x4d24e9([0x73,0x6f,0x6d,0x65])](_0x43e2cd=>_0x3c97f4[_0x4d24e9([0x65,0x76,0x65,0x72,0x79])]((_0x225011,_0x946b5c)=>_0x43e2cd[_0x946b5c]===_0x225011||_0x43e2cd[_0x946b5c]===_0x4d24e9([0x2a])));}function _0x5498ff(){return _0x406198&&_0x3f6a7a?new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3867c4,_0x1223db)=>{_0x406198[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x3867c4,_0x1223db),_0x3f6a7a[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x1090aa=>{_0x1090aa!=_0x4d24e9([0x56,0x61,0x6c,0x69,0x64])&&_0x3867c4(_0x1090aa);},_0x1223db);}):_0x406198||_0x3f6a7a||_0x4d24e9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x125f9e(_0x4648c3,_0x37647d){return new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x237c5b=>{if(_0x44a720())return _0x237c5b(_0x4d24e9([0x56,0x61,0x6c,0x69,0x64]));_0x4b3557(),_0x5de1d2[_0x4d24e9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d24e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a4ca8=!0x1;const _0x3d89ec=_0xb1be14();function _0x1ece52(_0x4e300c){return!!_0x4e300c&&(typeof _0x4e300c===_0x4d24e9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e300c===_0x4d24e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e300c[_0x4d24e9([0x74,0x68,0x65,0x6e])]===_0x4d24e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e300c[_0x4d24e9([0x63,0x61,0x74,0x63,0x68])]===_0x4d24e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a47b1(_0x5c6e90){_0x4284e3(_0x5c6e90)[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x3efe38=>{if(!_0x3efe38||_0x3efe38[_0x4d24e9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d24e9([0x6f,0x6b]))return _0x4d24e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b2076(_0x182a3d(_0x3d89ec+_0x37647d))!=_0x3efe38[_0x4d24e9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d24e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d24e9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x335cba=>(_0x8ad06a(),_0x335cba),()=>{const _0x5ed794=_0x41d170();return null==_0x5ed794?(_0x8ad06a(),_0x4d24e9([0x56,0x61,0x6c,0x69,0x64])):_0x4d24e9(_0x3d41b1-_0x5ed794>(0x76246ace^_0x4b5d99)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x237c5b)[_0x4d24e9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x237c5b(_0x4d24e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d9e6a=0x521e004e^_0x4b5d99;function _0x8ad06a(){const _0x290bb7=_0x4d24e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b2076(_0x182a3d(_0x4648c3)),_0x1b21eb=_0x4513d3(_0x5b2076(window[_0x4d24e9([0x4d,0x61,0x74,0x68])][_0x4d24e9([0x63,0x65,0x69,0x6c])](_0x3d41b1/_0x4d9e6a)));window[_0x4d24e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d24e9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x290bb7,_0x1b21eb);}function _0x41d170(){const _0x48a2dd=_0x4d24e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b2076(_0x182a3d(_0x4648c3)),_0x2feec5=window[_0x4d24e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d24e9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48a2dd);return _0x2feec5?window[_0x4d24e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4513d3(_0x2feec5),0x10)*_0x4d9e6a:null;}function _0x4284e3(_0x1c656c){return new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bf9b8,_0x2e7813)=>{_0x1c656c[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x5bf9b8,_0x2e7813),window[_0x4d24e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2e7813,0x52293a0e^_0x4b5d99);});}}_0x5de1d2[_0x4d24e9([0x6f,0x6e])](_0x4d24e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a20c7,_0x3c0cb5)=>{if(_0x3c0cb5[0x0]!=_0x4648c3)return _0x237c5b(_0x4d24e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c0cb5[0x1]={..._0x3c0cb5[0x1],[_0x4d24e9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d89ec};},{[_0x4d24e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d24e9([0x68,0x69,0x67,0x68])}),_0x5de1d2[_0x4d24e9([0x6f,0x6e])](_0x4d24e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1bc1fb=>{_0x1ece52(_0x1bc1fb[_0x4d24e9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a4ca8=!0x0,_0x2a47b1(_0x1bc1fb[_0x4d24e9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d24e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d24e9([0x6c,0x6f,0x77])}),_0x3fca90[_0x4d24e9([0x74,0x68,0x65,0x6e])](()=>{_0x4a4ca8||_0x237c5b(_0x4d24e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44a720(){return _0x5de1d2[_0x4d24e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d24e9([0x76,0x69,0x65,0x77])][_0x4d24e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d24e9([0x61,0x75,0x74,0x6f]);}function _0x4b3557(){_0x5de1d2[_0x4d24e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d24e9([0x76,0x69,0x65,0x77])][_0x4d24e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d24e9([0x61,0x75,0x74,0x6f]);}}function _0x21a573(_0x2b0013){const _0x5881fd=[new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3858f7=>setTimeout(_0x3858f7,0x5221d002^_0x4b5d99)),_0x3fca90[_0x4d24e9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b8c6=>{const _0x1f422b=0x5228eec9^_0x4b5d99,_0x2527da=_0x35efe9[_0x4d24e9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3b5426(){_0x2527da[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1f422b&&_0x11b8c6();}_0x3b5426(),_0x2527da[_0x4d24e9([0x6f,0x6e])](_0x4d24e9([0x61,0x64,0x64]),_0x3b5426);})),new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54b1f9=>{function _0x1385a2(){for(const _0x5f3369 in window)if(window[_0x4d24e9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4d24e9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5f3369))&&window[_0x5f3369]==_0x421039)return _0x54b1f9();_0x5de1d2[_0x4d24e9([0x73,0x74,0x61,0x74,0x65])]!=_0x4d24e9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4d24e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1385a2,0x5228fd46^_0x4b5d99);}_0x3b24fb(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1385a2();})];return window[_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d24e9([0x72,0x61,0x63,0x65])](_0x5881fd)[_0x4d24e9([0x74,0x68,0x65,0x6e])](()=>_0x2b0013);}async function _0x21b060(){if(await _0x3fca90,_0x3b24fb(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2f7db7=_0x35efe9[_0x4d24e9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x209e47=_0x35efe9[_0x4d24e9([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])](_0x2f7db7[_0x4d24e9([0x69,0x64])]),_0x3be427=_0x24a998(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3be427[_0x4d24e9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2f7db7['id'],_0x209e47?_0x209e47['id']:null,!0x0),_0x3be427[_0x4d24e9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d24e9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3be427[_0x4d24e9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3be427[_0x4d24e9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x15c034,void(_0x3be427[_0x4d24e9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x15c034);}if(_0x3b24fb(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x390cae=_0x24a998(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x390cae[_0x4d24e9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d24e9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x390cae[_0x4d24e9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x390cae[_0x4d24e9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x15c034,_0x390cae[_0x4d24e9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x15c034;}_0x5de1d2[_0x4d24e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d24e9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15c034,_0x5de1d2[_0x4d24e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d24e9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15c034,_0x5de1d2[_0x4d24e9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d24e9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1bbc98(){return _0x3b24fb(_0x4d24e9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x24a998(_0x4d24e9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d24e9([0x73,0x74,0x61,0x74,0x65])]==_0x4d24e9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xf2333d(){return _0x3b24fb(_0x4d24e9([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 _0x1f1734(){return _0x3b24fb(_0x4d24e9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x74100f(_0x4f5299){const _0x2f651f=_0x4a935b();_0x5de1d2[_0x2f651f]=_0x4d24e9([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])+_0x4f5299,_0x4f5299[_0x4d24e9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4d24e9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4a935b()]=_0x421039),_0x4f5299!=_0x4d24e9([0x56,0x61,0x6c,0x69,0x64])&&_0x21b060();}function _0x4a935b(){const _0x4a016b=window[_0x4d24e9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d24e9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d24e9([0x6e,0x6f,0x77])]())[_0x4d24e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d24e9([0x2e]),'');let _0x41ba4b=_0x4d24e9([0x77]);for(let _0x3407d9=0x0;_0x3407d9<_0x4a016b[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3407d9+=0x2){let _0x1fd70a=window[_0x4d24e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a016b[_0x4d24e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3407d9,_0x3407d9+0x2));_0x1fd70a>=_0x34f141[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1fd70a-=_0x34f141[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41ba4b+=_0x34f141[_0x1fd70a];}return _0x41ba4b;}function _0x13ecfe(){const _0x558eba=_0x3c938b[_0x4d24e9([0x73,0x70,0x6c,0x69,0x74])](_0x4d24e9([0x2e]));if(0x3!=_0x558eba[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x401f7f(_0x558eba[0x1]);function _0x401f7f(_0xb5879e){const _0x1f53a2=_0xae5fbe(_0xb5879e);return _0x1f53a2&&_0x25e143()?_0x1f53a2:null;function _0x25e143(){const _0x3ef642=_0x1f53a2[_0x4d24e9([0x6a,0x74,0x69])],_0xcf4127=window[_0x4d24e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ef642[_0x4d24e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ef642[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2126f5={..._0x1f53a2,[_0x4d24e9([0x6a,0x74,0x69])]:_0x3ef642[_0x4d24e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ef642[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2126f5[_0x4d24e9([0x76,0x63])],_0x182a3d(_0x2126f5)==_0xcf4127;}}}async function _0xf840da(){let _0x2f2b30=!0x0;try{const _0x26e23d=_0x3c938b[_0x4d24e9([0x73,0x70,0x6c,0x69,0x74])](_0x4d24e9([0x2e])),[_0x2963fd,_0x27503a,_0x4f7bea]=_0x26e23d;return _0x4147b9(_0x2963fd),await _0x15b71d(_0x2963fd,_0x27503a,_0x4f7bea),_0x2f2b30;}catch{return!0x1;}function _0x4147b9(_0x578c4e){const _0x514479=_0xae5fbe(_0x578c4e);_0x514479&&_0x514479[_0x4d24e9([0x61,0x6c,0x67])]==_0x4d24e9([0x45,0x53,0x32,0x35,0x36])||(_0x2f2b30=!0x1);}async function _0x15b71d(_0x5b3c9f,_0x592769,_0x3f8403){const _0x2e41b7=window[_0x4d24e9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d24e9([0x66,0x72,0x6f,0x6d])](_0x48120b(_0x3f8403),_0x39a3b7=>_0x39a3b7[_0x4d24e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c1b60=new window[(_0x4d24e9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d24e9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b3c9f+_0x4d24e9([0x2e])+_0x592769),_0x524847=window[_0x4d24e9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d24e9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x524847)return;const _0x35011e=await _0x524847[_0x4d24e9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d24e9([0x6a,0x77,0x6b]),_0x104ab5,{[_0x4d24e9([0x6e,0x61,0x6d,0x65])]:_0x4d24e9([0x45,0x43,0x44,0x53,0x41]),[_0x4d24e9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d24e9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d24e9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x524847[_0x4d24e9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d24e9([0x6e,0x61,0x6d,0x65])]:_0x4d24e9([0x45,0x43,0x44,0x53,0x41]),[_0x4d24e9([0x68,0x61,0x73,0x68])]:{[_0x4d24e9([0x6e,0x61,0x6d,0x65])]:_0x4d24e9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35011e,_0x2e41b7,_0x4c1b60)||(_0x2f2b30=!0x1);}}function _0xae5fbe(_0x5e9266){return _0x5e9266[_0x4d24e9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d24e9([0x65,0x79]))?JSON[_0x4d24e9([0x70,0x61,0x72,0x73,0x65])](_0x48120b(_0x5e9266)):null;}function _0x48120b(_0x144e97){return window[_0x4d24e9([0x61,0x74,0x6f,0x62])](_0x144e97[_0x4d24e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d24e9([0x2b]))[_0x4d24e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d24e9([0x2f])));}function _0x182a3d(_0x5c2526){let _0x46fb41=0x1505;function _0x27b737(_0x5f0033){for(let _0x1958ea=0x0;_0x1958ea<_0x5f0033[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1958ea++){const _0x136b04=_0x5f0033[_0x4d24e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1958ea);_0x46fb41=(_0x46fb41<<0x5)+_0x46fb41+_0x136b04,_0x46fb41&=_0x46fb41;}}function _0x15fafa(_0x159c68){Array[_0x4d24e9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x159c68)?_0x159c68[_0x4d24e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15fafa):_0x159c68&&typeof _0x159c68==_0x4d24e9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d24e9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x159c68)[_0x4d24e9([0x73,0x6f,0x72,0x74])]()[_0x4d24e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ff928,_0x28ae9b])=>{_0x27b737(_0x4ff928),_0x15fafa(_0x28ae9b);}):_0x27b737(window[_0x4d24e9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x159c68));}return _0x15fafa(_0x5c2526),_0x46fb41>>>0x0;}function _0x5b2076(_0x378655){return _0x378655[_0x4d24e9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d24e9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d24e9([0x30]));}function _0x4513d3(_0x5c8080){return _0x5c8080[_0x4d24e9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d24e9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d24e9([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b24fb(_0x5683be){return _0x5de1d2[_0x4d24e9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d24e9([0x68,0x61,0x73])](_0x5683be);}function _0x24a998(_0x375d36){return _0x5de1d2[_0x4d24e9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d24e9([0x67,0x65,0x74])](_0x375d36);}function _0x15c034(){}function _0x4d24e9(_0x4e453e){return _0x4e453e['map'](_0x36391c=>String['fromCharCode'](_0x36391c))['join']('');}_0x74100f(await _0x409bc1());}(this);}['createRevision'](_0x391779){const _0x5aca2a=this['editor']['plugins']['get']('Users');return new I({'id':_0x391779['id'],'name':_0x391779['name'],'creator':_0x391779['creatorId']?_0x5aca2a['getUser'](_0x391779['creatorId']):null,'diffData':_0x391779['diffData']||_0x391779['data'],'authors':_0x391779['authorsIds']['map'](_0x30a246=>_0x5aca2a['getUser'](_0x30a246)),'createdAt':new Date(_0x391779['createdAt']),'attributes':_0x391779['attributes'],'fromVersion':_0x391779['fromVersion'],'toVersion':_0x391779['toVersion']});}['addRevision'](_0x35d30b,_0x49b330=0x0){this['_revisions']['add'](_0x35d30b,_0x49b330);}['getRevision'](_0x4fbefb){return this['_revisions']['get'](_0x4fbefb);}['getRevisions'](_0x11f8e3={'toJSON':!0x1}){const _0x326792=Array['from'](this['_revisions']);return _0x326792['reverse'](),_0x11f8e3['toJSON']?_0x326792['map'](_0x339621=>_0x339621['toJSON']()):_0x326792;}['getIndex'](_0x62c637){return this['_revisions']['getIndex'](_0x62c637);}['getEarlierVisibleRevision'](_0xd6147a){const [,_0x55b925]=this['getRevisionsIterator'](_0xd6147a,{'direction':'earlier'});return _0x55b925;}['getLaterVisibleRevision'](_0x23fe54){const [,_0x47136b]=this['getRevisionsIterator'](_0x23fe54,{'direction':'later'});return _0x47136b;}['getRevisionsInDiff'](_0x23fa54){const _0x2a98c6=[];for(const _0x7fdd96 of this['getRevisionsIterator'](_0x23fa54['newRevisionId']))if(_0x2a98c6['push'](_0x7fdd96),_0x7fdd96['id']===_0x23fa54['oldRevisionId'])break;return _0x2a98c6;}*['getRevisionsIterator'](_0x504465,{direction:_0x3afa15='earlier',filter:_0x3f8a07=()=>!0x0}={}){const _0x4865c1='earlier'===_0x3afa15?0x1:-0x1;let _0x3b9a66=this['_revisions']['get'](_0x504465),_0x14cdb4=this['getIndex'](_0x3b9a66);for(yield _0x3b9a66;_0x3b9a66;){if(_0x14cdb4+=_0x4865c1,_0x3b9a66=this['getRevision'](_0x14cdb4),!_0x3b9a66)return;_0x3f8a07(_0x3b9a66)&&(yield _0x3b9a66);}}}class $ extends _0x261da3{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x25f4c4,'c'],[_0x361753,'a'],[_0x5c1668,'e'],[_0x1c8fec,'r'],[_0x132b1d,'u']]);['_typeCharToViewClass']=new Map([['c',_0x25f4c4],['a',_0x361753],['e',_0x5c1668],['r',_0x1c8fec],['u',_0x132b1d]]);async['loadRevisionData'](_0x4ef22c,_0x328be6){if(_0x4ef22c['diffData']||!_0x328be6)return;const _0x4141db=this['editor']['config']['get']('collaboration.channelId'),_0x2ae24b=await _0x328be6['getRevision']({'channelId':_0x4141db,'revisionId':_0x4ef22c['id']});_0x4ef22c['diffData']=_0x2ae24b['diffData'];}['getRevisionDocumentData'](_0x2bd249){const _0x21d1ec={};for(const _0x4b2ca4 in _0x2bd249['diffData']){if(_0x2bd249['diffData'][_0x4b2ca4]['attachChange']&&!_0x2bd249['diffData'][_0x4b2ca4]['attachChange']['isAttached'])continue;const _0x1511dd=this['_removeRevisionMarkers'](JSON['parse'](_0x2bd249['diffData'][_0x4b2ca4]['insertions'])),_0x2ee071=this['editor']['editing']['view']['document'],_0x2eae04=new _0x50fa69(_0x2ee071,_0x1511dd['map'](_0x10eb52=>this['_getViewFromDiffObj'](_0x10eb52,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x21d1ec[_0x4b2ca4]=this['editor']['data']['processor']['toData'](_0x2eae04),this['editor']['data']['processor']['useFillerType']('default');}return _0x21d1ec;}['getRevisionRootsAttributes'](_0x36534c){const _0x930812={};for(const _0x2e3c1a in _0x36534c['diffData'])_0x36534c['diffData'][_0x2e3c1a]['attachChange']&&!_0x36534c['diffData'][_0x2e3c1a]['attachChange']['isAttached']||(_0x930812[_0x2e3c1a]=_0x36534c['diffData'][_0x2e3c1a]['attributesAfter']||{});return _0x930812;}['_getTypeCharForViewElement'](_0x17a751){return this['_viewClassToTypeChar']['get'](_0x17a751['constructor']);}['_getViewFromDiffObj'](_0x37fe61,_0x39ec48){const _0x47b13f=this['editor']['editing']['view']['document'];if('string'==typeof _0x37fe61)return new _0x42208e(_0x47b13f,_0x37fe61);{let _0x2b4d03,_0x41dcaf;_0x41dcaf='u'==_0x37fe61['type']||'r'==_0x37fe61['type']?[]:_0x37fe61['children']['map'](_0x4eba8f=>this['_getViewFromDiffObj'](_0x4eba8f,_0x39ec48));const _0x2456f4=this['_typeCharToViewClass']['get'](_0x37fe61['type'])||_0x14c47e,_0x9a9b34=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2b4d03=new _0x2456f4(_0x47b13f,_0x37fe61['name'],_0x37fe61['attributes'],_0x41dcaf),'u'==_0x37fe61['type']&&_0x37fe61['children'][0x0]){const _0x4aa958=_0x37fe61['children'][0x0];if(_0x2b4d03['render']=function(_0x521d82){const _0x1a67f5=_0x521d82['createElement']('div');return _0x1a67f5['innerHTML']=_0x4aa958,_0x1a67f5['childNodes'][0x0];},_0x39ec48){const _0x39f606=new _0x50fa69(_0x47b13f);_0x39f606['_appendChild'](_0x2b4d03);const _0x10c22e=Array['from'](_0x9a9b34['viewChildrenToDom'](_0x39f606,{'bind':!0x1})),_0x7c151b=_0x9a9b34['domDocument']['createElement']('div');_0x7c151b['append'](..._0x10c22e),_0x2b4d03=Array['from'](_0x9a9b34['domChildrenToView'](_0x7c151b))[0x0];}}else{if('r'==_0x37fe61['type']&&_0x37fe61['children'][0x0]){const _0x1dbd62=_0x37fe61['children'][0x0];if(_0x2b4d03['render']=function(_0x595717){_0x595717['innerHTML']=_0x1dbd62;},_0x39ec48){const _0x99a7ca=new _0x50fa69(_0x47b13f);_0x99a7ca['_appendChild'](_0x2b4d03);const _0x2d94b7=Array['from'](_0x9a9b34['viewChildrenToDom'](_0x99a7ca,{'bind':!0x1})),_0x2ad229=_0x9a9b34['domDocument']['createElement']('div');_0x2ad229['append'](..._0x2d94b7);const _0x24abbd=Array['from'](_0x9a9b34['domChildrenToView'](_0x2ad229));_0x24abbd['length']>0x1?_0x2b4d03['_appendChild'](_0x24abbd):_0x2b4d03=_0x24abbd[0x0];}}}if(_0x37fe61['customProperties']){for(const [_0xd941b,_0x14d657]of _0x37fe61['customProperties'])_0x2b4d03['_setCustomProperty'](_0xd941b,_0x14d657);}const _0x59315d=void 0x0===_0x37fe61['fillerOffset']?null:_0x37fe61['fillerOffset'];return null!==_0x59315d&&(_0x2b4d03['getFillerOffset']=()=>_0x59315d),_0x2b4d03;}}['_makeModelFromViewString'](_0xcedbe9){const _0x213bee=JSON['parse'](_0xcedbe9),_0x27201d=this['editor']['editing']['view']['document'],_0x135ddd=new _0x50fa69(_0x27201d,_0x213bee['map'](_0x19b66d=>this['_getViewFromDiffObj'](_0x19b66d,!0x0)));return this['editor']['data']['toModel'](_0x135ddd);}['_removeRevisionMarkers'](_0x480a5c){return(_0x480a5c=_0x480a5c['filter'](_0x5295c6=>!_0x5295c6['name']||'revision-start'!==_0x5295c6['name']&&'revision-end'!==_0x5295c6['name']))['forEach'](_0x3e95ea=>{'string'!=typeof _0x3e95ea&&(_0x3e95ea['children']=this['_removeRevisionMarkers'](_0x3e95ea['children']),_0x3e95ea['attributes']=_0x3e95ea['attributes']['filter'](_0x6465ed=>!_0x6465ed[0x0]['startsWith']('data-revision-')));}),_0x480a5c;}}function R(_0x25f0a9,_0x50a0d2,_0xe5fe5b){const t=_0x25f0a9['t'];switch(_0x50a0d2){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'},_0xe5fe5b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xe5fe5b);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 _0x261da3{['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[_0x188d72,S,$,_0x5f1105];}constructor(_0xcc4679){super(_0xcc4679),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5d8f2b=_0xb1be14();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5d8f2b},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 _0x2773ed=this['repository']['getRevision'](0x0),_0x35f9b7=_0x2773ed&&null===_0x2773ed['creator']?_0x2773ed:null;if(this['_continueCurrentRevision']=!!_0x35f9b7&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x18a399=this['_source']['getCurrentRevisionId'](),_0x1ea56c=this['repository']['getRevision'](_0x18a399);if(_0x1ea56c)this['_startingVersion']=_0x1ea56c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x362b75=this['_source']['history']['_operations']['find'](_0x29749a=>!_0x29749a['_isInit']),_0x4d3458=_0x362b75?_0x362b75['baseVersion']:this['_source']['history']['version'];_0x2773ed?(_0x2773ed['toVersion']<_0x4d3458&&_0x2773ed['_update']({'toVersion':_0x4d3458}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x35f9b7['id'],this['_startingVersion']=_0x35f9b7['fromVersion']):(this['_startingVersion']=_0x2773ed['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4d3458,this['_continueCurrentRevision']=!0x1);}}else _0x35f9b7&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x35f9b7['toVersion'],this['editor']['model']['document']['history']['version']),_0x35f9b7['fromVersion']===_0x35f9b7['toVersion']?(0x0!==_0x35f9b7['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x35f9b7['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x35f9b7['id'],this['_startingVersion']=_0x35f9b7['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',_0x2753a9=>!_0x2753a9),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xcbe4ba=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x267d07;for(const _0x45e465 in _0xcbe4ba){const _0x2957d8=_0x45e465,_0xd30136=_0xcbe4ba[_0x2957d8];if('revisionHistoryLicenseKeyValid'==_0xd30136||'revisionHistoryLicenseKeyInvalid'==_0xd30136||'revisionHistoryLicenseKeyExpired'==_0xd30136||'revisionHistoryLicenseKeyDomainLimit'==_0xd30136||'revisionHistoryLicenseKeyNotAllowed'==_0xd30136||'revisionHistoryLicenseKeyEvaluationLimit'==_0xd30136||'revisionHistoryLicenseKeyTrialLimit'==_0xd30136||'revisionHistoryLicenseKeyUsageLimit'==_0xd30136){delete _0xcbe4ba[_0x2957d8],_0x267d07=_0xd30136,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x267d07&&_0xcbe4ba['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x267d07&&_0xcbe4ba['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x267d07&&_0xcbe4ba['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x267d07&&_0xcbe4ba['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x267d07&&_0xcbe4ba['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x267d07&&_0xcbe4ba['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x267d07&&_0xcbe4ba['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3cae14=this['repository']['getRevision'](0x0),_0x2f7449=await this['getRevisionDocumentData'](_0x3cae14),_0x3a6fc2=await this['getRevisionRootsAttributes'](_0x3cae14);this['_replaceEditorDataWithRevisionData'](_0x2f7449,_0x3a6fc2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x433962){this['_source']=_0x433962;}async['update'](){const _0x37acdd=await this['_source']['getLatestVersion']();if(_0x37acdd>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3dfef3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x37acdd});_0x3dfef3['authors']=_0x3dfef3['authorsIds']['map'](_0x6cae9c=>this['editor']['plugins']['get']('Users')['getUser'](_0x6cae9c)),this['currentRevision']['_update'](_0x3dfef3);}}async['saveRevision'](_0x6f4ff1={},_0x46063f=null){const _0x2371c9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x46063f>this['currentRevision']['toVersion']&&(_0x46063f=null),null===_0x46063f&&(_0x46063f=await this['_source']['getLatestVersion']());const _0x1a5fcc=this['_getFromVersion'](_0x46063f),_0x20ce05=this['buildRevisionData']({'from':_0x1a5fcc,'to':_0x46063f});if(this['currentRevision']['toVersion']<_0x46063f){const _0x1c3e73=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x46063f,'to':_0x46063f});_0x1c3e73['authors']=[],_0x1c3e73['authorsIds']=[],_0x1c3e73['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1c3e73,!0x0),delete _0x1c3e73['authors'],_0x2371c9['push'](_0x1c3e73);}_0x6f4ff1['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x6f4ff1['name']=_0x6f4ff1['name']||null,_0x6f4ff1['id']=_0x6f4ff1['id']||_0xb1be14(),_0x6f4ff1={..._0x6f4ff1,..._0x20ce05};const _0x5145ae=this['addRevisionData'](_0x6f4ff1);_0x2371c9['push'](_0x6f4ff1);const _0x156dfe=this['repository']['getIndex'](_0x5145ae);if(0x0!==_0x156dfe){const _0x22b21d=this['repository']['getRevision'](_0x156dfe-0x1);if(_0x22b21d['fromVersion']!==_0x46063f){const _0x1a278e=this['_revisionDataBuilder']['getData'](_0x46063f,_0x22b21d['toVersion']),_0x3480ad={'id':_0x22b21d['id'],'diffData':_0x1a278e['diffData'],'authorsIds':_0x1a278e['authorsIds'],'authors':_0x1a278e['authorsIds']['map'](_0x1f9c08=>this['editor']['plugins']['get']('Users')['getUser'](_0x1f9c08)),'fromVersion':_0x46063f};_0x22b21d===this['currentRevision']&&(_0x3480ad['createdAt']=new Date(_0x6f4ff1['createdAt']['getTime']()+0xa)),_0x22b21d['_update'](_0x3480ad,!0x0),delete _0x3480ad['authors'],_0x2371c9['push'](_0x3480ad);}}if(this['adapter']){for(const _0x864f57 of _0x2371c9)this['_bufferUpdate'](_0x864f57['id'],_0x864f57,!0x0);this['sendBufferedUpdates']();}return _0x5145ae;}['addRevisionData'](_0x107784){const _0x4ebc53=this['repository']['createRevision'](_0x107784);return this['adapter']&&_0x4ebc53['on']('_update',(_0x48bb4a,_0x591549,_0x29d0c6)=>{_0x29d0c6||(this['_bufferUpdate'](_0x591549['id'],_0x591549,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4ebc53,this['_findInsertionIndex'](_0x4ebc53)),_0x4ebc53;}async['getRevisionDocumentData'](_0x1b54e7){return await this['_utils']['loadRevisionData'](_0x1b54e7,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1b54e7);}async['getRevisionRootsAttributes'](_0x22b67d){return await this['_utils']['loadRevisionData'](_0x22b67d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x22b67d);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4b7a1d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3b6fe2=0x0;_0x3b6fe2<_0x4b7a1d['length'];_0x3b6fe2++){const _0x3b38ab=_0x4b7a1d[_0x3b6fe2];let _0x5e63cb=!0x1;for(const _0x40a0a7 of Object['keys'](_0x3b38ab))void 0x0===_0x3b38ab[_0x40a0a7]?delete _0x3b38ab[_0x40a0a7]:'id'!==_0x40a0a7&&(_0x5e63cb=!0x0);_0x5e63cb||(_0x4b7a1d[_0x3b6fe2]=null);}if(_0x4b7a1d=_0x4b7a1d['filter'](_0x2d7d01=>null!==_0x2d7d01),!_0x4b7a1d['length'])return;for(let _0x2ab450=0x0;_0x2ab450<_0x4b7a1d['length'];_0x2ab450++){const _0x2221bd=_0x4b7a1d[_0x2ab450];void 0x0!==_0x2221bd['fromVersion']&&void 0x0===_0x2221bd['toVersion']&&(_0x2221bd['toVersion']=this['repository']['getRevision'](_0x2221bd['id'])['toVersion']),void 0x0!==_0x2221bd['toVersion']&&void 0x0===_0x2221bd['fromVersion']&&(_0x2221bd['fromVersion']=this['repository']['getRevision'](_0x2221bd['id'])['fromVersion']);}const _0x354305=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4b7a1d,_0x354305)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4344b0=>{if(_0x4344b0){for(const _0x1b7c9b of _0x4344b0)this['setRevisionData']({'id':_0x1b7c9b['id'],'createdAt':_0x1b7c9b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x52d629=null,from:_0x247b20=null,to:_0x3ed70d=null}){_0x247b20=null!==_0x247b20?_0x247b20:_0x52d629['fromVersion'],_0x3ed70d=null!==_0x3ed70d?_0x3ed70d:_0x52d629['toVersion'];const _0x439eaf=this['_revisionDataBuilder']['getData'](_0x247b20,_0x3ed70d),_0xf8df9e={'diffData':_0x439eaf['diffData'],'authorsIds':_0x439eaf['authorsIds'],'fromVersion':_0x247b20,'toVersion':_0x3ed70d};if(!_0x52d629||_0x3ed70d!==_0x52d629['toVersion']){const _0x801b16=_0x3ed70d-0x1,_0x5879fe=this['_source']['history']['getOperation'](_0x801b16);_0xf8df9e['createdAt']=_0x5879fe&&_0x5879fe['createdAt']||new Date();}if(this['_loadedStateData']&&_0x247b20===this['_loadedStateData']['fromVersion']){for(const _0x37614f of this['_loadedStateData']['authors'])_0xf8df9e['authorsIds']['includes'](_0x37614f['id'])||_0xf8df9e['authorsIds']['push'](_0x37614f['id']);}return _0xf8df9e;}['_bufferUpdate'](_0xd984d7,_0x5c43f5,_0x15ada7){if(this['_bufferedUpdates']['has'](_0xd984d7)){const _0x10dbc0=this['_bufferedUpdates']['get'](_0xd984d7);_0x5c43f5=_0x15ada7?{..._0x10dbc0,..._0x5c43f5}:{..._0x5c43f5,..._0x10dbc0};}this['_bufferedUpdates']['set'](_0xd984d7,_0x5c43f5);}['setRevisionData'](_0x39a716){const _0x2f7e4c=this['repository']['getRevision'](_0x39a716['id']);if(_0x39a716['createdAt']&&(_0x39a716['createdAt']=new Date(_0x39a716['createdAt'])),_0x39a716['authorsIds']){const _0x1cd501=this['editor']['plugins']['get']('Users');_0x39a716['authors']=_0x39a716['authorsIds']['map'](_0x295919=>_0x1cd501['getUser'](_0x295919));}_0x2f7e4c['_update'](_0x39a716,!0x0);}['_createInitialRevision'](_0x110d4a){const _0x4c0729=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4c0729)this['_initialRevisionId']=_0x4c0729['id'];else{const _0x376d1a=!this['editor']['model']['document']['roots']['find'](_0x19aba7=>this['editor']['model']['hasContent'](_0x19aba7)),_0x3b6347=this['editor']['plugins']['get']('Users')['me']['id'],_0xd13b37=R(this['editor']['locale'],_0x376d1a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x110d4a,'to':_0x110d4a,'id':this['_initialRevisionId'],'name':_0xd13b37,'creatorId':_0x3b6347});}}['_createCurrentRevision'](_0x5ebb3f){const _0x5c761f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5c761f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5ebb3f,'to':_0x5ebb3f,'id':_0x5c761f,'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'](_0x415fb2,_0x17feac){let _0x144f8f=this['editor']['config']['get']('initialData'),_0x2ce993=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x144f8f){_0x144f8f={};for(const _0x105a1c of this['editor']['model']['document']['getRootNames']())_0x144f8f[_0x105a1c]='';}if('string'==typeof _0x144f8f&&(_0x144f8f={'main':_0x144f8f}),void 0x0===_0x2ce993){_0x2ce993={};for(const _0x2da4a1 of this['editor']['model']['document']['getRootNames']())_0x2ce993[_0x2da4a1]={};}let _0x3aca42=!0x1;const _0x1c5599=Object['keys'](_0x144f8f),_0xe8d9db=Object['keys'](_0x415fb2);for(const _0x58228a of _0x1c5599){if(_0x144f8f[_0x58228a]!==_0x415fb2[_0x58228a]&&''!==_0x144f8f[_0x58228a]['trim']()){_0x3aca42=!0x0;break;}if(!_0x36a01b(_0x2ce993[_0x58228a],_0x17feac[_0x58228a])&&Object['keys'](_0x2ce993[_0x58228a])['length']>0x0){_0x3aca42=!0x0;break;}}_0x3aca42||(_0x3aca42=_0xe8d9db['some'](_0x52ee6e=>!this['editor']['model']['document']['getRoot'](_0x52ee6e))),_0x3aca42&&_0x412eca('editor-initial-data-replaced-with-revision-data',{'editorData':_0x144f8f,'editorRootsAttributes':_0x2ce993,'revisionData':_0x415fb2,'revisionRootsAttributes':_0x17feac}),this['editor']['config']['set']('initialData',_0x415fb2),this['editor']['config']['set']('rootsAttributes',_0x17feac);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4224fa=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4224fa['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x9d8e1d){const _0xda227d=this['repository']['getRevisions']();_0xda227d['reverse']();let _0xffad5f=0x0;for(;_0xffad5f<_0xda227d['length'];){const _0x4ffd89=_0xda227d[_0xffad5f];if(_0x4ffd89===this['currentRevision']){_0xffad5f++;continue;}if(_0x4ffd89['id']===this['_initialRevisionId'])break;const _0x259b04=_0x9d8e1d['toVersion']-_0x4ffd89['toVersion']||_0x9d8e1d['fromVersion']-_0x4ffd89['fromVersion'];if(_0x259b04>0x0)break;if(_0x259b04<0x0)_0xffad5f++;else{if(!_0x9d8e1d['creator']&&_0x4ffd89['creator'])break;if(_0x4ffd89['creator']||!_0x9d8e1d['creator']){if(_0x9d8e1d['createdAt']>_0x4ffd89['createdAt'])break;_0xffad5f++;}else _0xffad5f++;}}return _0xffad5f;}['_getFromVersion'](_0x5d734e){const _0xc1250e=this['repository']['getRevisions']();_0xc1250e['reverse'](),_0xc1250e['shift']();const _0x53ebc6=_0xc1250e['find'](_0x45e927=>_0x45e927['toVersion']<=_0x5d734e)['toVersion'];return _0x53ebc6<this['_startingVersion']?this['_startingVersion']:_0x53ebc6;}['_makeRevision']({name:_0x8490c1,from:_0x1d3cad,to:_0x133668,creatorId:_0x22794d,id:_0x413afe}){const _0x31849f=this['buildRevisionData']({'from':_0x1d3cad,'to':_0x133668});_0x31849f['name']=_0x8490c1,_0x31849f['creatorId']=_0x22794d,_0x31849f['id']=_0x413afe;const _0xdf0872=this['addRevisionData'](_0x31849f);return this['adapter']&&this['_bufferUpdate'](_0x31849f['id'],_0x31849f,!0x0),_0xdf0872;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2f7f93){this['editor']=_0x2f7f93,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'](_0x4e6d6f){this['source']=_0x4e6d6f;const _0x459495=new Map(),_0x183d74=new Map(),_0x22e189=this['editor']['model']['document']['roots']['map'](_0xc87213=>_0xc87213['rootName']);for(const _0x61e2b0 of _0x22e189){const _0x5c77e3=this['editor']['model']['document']['getRoot'](_0x61e2b0),_0x36eaef=x(_0x5c77e3);_0x459495['set'](_0x61e2b0,_0x36eaef),_0x183d74['set'](_0x61e2b0,Object['fromEntries'](_0x5c77e3['getAttributes']()));}const _0x42ac98=Array['from'](this['editor']['model']['markers'])['map'](_0x48c66e=>[_0x48c66e['name'],_0x48c66e['getRange']()]),_0x3ef7f7=this['source']['version'];this['_saveMetaData'](_0x3ef7f7,_0x459495,_0x42ac98,_0x183d74),this['_startingRevisionId']=this['_revisionId'];const _0x5165a6=new Map(),_0x12004d=new Map();for(const _0x3d5c22 of _0x22e189){const _0x30ac37=N(_0x3d5c22);_0x5165a6['set'](_0x3d5c22,_0x30ac37),_0x12004d['set'](_0x3d5c22,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5165a6,[],_0x12004d);}['getData'](_0x3cd1e5,_0x5c1e07){if(this['_lastFrom']===_0x3cd1e5&&this['_lastTo']<=_0x5c1e07)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5c1e07,!0x0);else{if(!this['_savedMetaData']['has'](_0x3cd1e5)){const _0x36389c=this['_getPreviousFrom'](_0x3cd1e5);this['_calculateMetaData'](_0x36389c,_0x3cd1e5,!0x1);}this['_calculateMetaData'](_0x3cd1e5,_0x5c1e07,!0x0);}return this['_lastFrom']=_0x3cd1e5,this['_lastTo']=_0x5c1e07,this['_getState']();}['loadState'](_0x4fe083){const _0x22ab2f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4fe083['fromVersion'],this['_lastTo']=_0x4fe083['toVersion'];for(const _0x51a759 in _0x4fe083['diffData']){const _0x234cd3=_0x4fe083['diffData'][_0x51a759]['attachChange'],_0x5c83fd=_0x5ac5f2(_0x4fe083['diffData'][_0x51a759]['attributesBefore'])||{},_0x59dd09=_0x22ab2f['_makeModelFromViewString'](_0x4fe083['diffData'][_0x51a759]['deletions']);_0x59dd09['rootName']=_0x51a759,_0x59dd09['_isAttached']=!_0x234cd3||!_0x234cd3['isAttached'],_0x59dd09['isAttached']=()=>_0x59dd09['_isAttached'],this['_baseRoots']['set'](_0x51a759,_0x59dd09),this['_baseRootsAttributes']['set'](_0x51a759,_0x5c83fd),_0x234cd3&&this['_touchedRoots']['set'](_0x51a759,_0x234cd3);const _0x6593f8=this['_makeIdsRoot'](_0x59dd09);this['_baseIdsRoots']['set'](_0x51a759,_0x6593f8);for(const [_0x41ea67,_0x59b19c]of _0x59dd09['markers']){if(!_0x41ea67['startsWith']('revision:'))continue;const _0x5aecce=_0x41ea67['split'](':')[0x2];for(const _0x46dd76 of _0x59b19c['getWalker']({'singleCharacters':!0x0})){const _0x2504ab=this['_getVidAttributeName'](_0x46dd76),_0x23362a='elementEnd'==_0x46dd76['type']?_0x46dd76['previousPosition']['path']['slice'](0x0,-0x1):_0x46dd76['previousPosition']['path'],_0xda5052=_0x6593f8['getNodeByPath'](_0x23362a)['getAttribute'](_0x2504ab);this['_touched']['set'](_0xda5052,{'userId':_0x5aecce});}}}this['_startingRevisionId']=this['_revisionId'];const _0x50f99a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5b0df5=>!this['_touched']['has'](_0x5b0df5));let _0x53d485=0x0;const _0x3d97c8=new Map();for(const _0x369af2 in _0x4fe083['diffData']){const _0x535d04=_0x4fe083['diffData'][_0x369af2]['attachChange'],_0x3cb2c0=_0x5ac5f2(_0x4fe083['diffData'][_0x369af2]['attributesAfter'])||{},_0xba1d5a=_0x22ab2f['_makeModelFromViewString'](_0x4fe083['diffData'][_0x369af2]['insertions']);_0xba1d5a['rootName']=_0x369af2,_0xba1d5a['_isAttached']=!_0x535d04||_0x535d04['isAttached'],_0xba1d5a['isAttached']=()=>_0xba1d5a['_isAttached'],this['_diffRoots']['set'](_0x369af2,_0xba1d5a),this['_diffRootsAttributes']['set'](_0x369af2,_0x3cb2c0);const _0x544891=this['_makeIdsRoot'](_0xba1d5a,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x369af2,_0x544891),_0x3d97c8['set'](_0x369af2,_0xba1d5a['isAttached']()?_0x3cb2c0:{});for(const [_0x3a13ad,_0x27e1e8]of _0xba1d5a['markers']){if(!_0x3a13ad['startsWith']('revision:'))continue;const _0x3ff54e=_0x3a13ad['split'](':')[0x2];for(const _0xe6ba83 of _0x27e1e8['getWalker']({'singleCharacters':!0x0})){const _0x26c3f9=this['_getVidAttributeName'](_0xe6ba83),_0x2870b0=this['_revisionId']++,_0x4a742d='elementEnd'==_0xe6ba83['type']?_0xe6ba83['previousPosition']['path']['slice'](0x0,-0x1):_0xe6ba83['previousPosition']['path'];_0x544891['getNodeByPath'](_0x4a742d)['_setAttribute'](_0x26c3f9,_0x2870b0),this['_touched']['set'](_0x2870b0,{'userId':_0x3ff54e});}}for(const _0x4583d7 of this['editor']['model']['createRangeIn'](_0xba1d5a)['getWalker']({'singleCharacters':!0x0})){const _0x40f980=this['_getVidAttributeName'](_0x4583d7),_0x3fb80f='elementEnd'==_0x4583d7['type']?_0x4583d7['previousPosition']['path']['slice'](0x0,-0x1):_0x4583d7['previousPosition']['path'],_0x5dc5e5=_0x544891['getNodeByPath'](_0x3fb80f);_0x5dc5e5['getAttribute'](_0x40f980)>0x0||_0x5dc5e5['_setAttribute'](_0x40f980,_0x50f99a[_0x53d485++]);}for(const [_0x262377,_0x5b7db8]of _0xba1d5a['markers'])_0x262377['startsWith']('revision:')||this['_markers']['set'](_0x262377,_0x5b7db8);}const _0x11931d=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x11931d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x11931d,0x1));const _0x3760f6=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3760f6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3760f6,0x1));const _0xb2a0b3=Array['from'](this['_diffRoots'])['map'](([_0x19d3d2,_0x22f9b2])=>[_0x19d3d2,x(_0x22f9b2)]);this['_saveMetaData'](this['_lastTo'],_0xb2a0b3,this['_markers'],_0x3d97c8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x35ba72,_0x24234b,_0x5e87c3,_0x62c05b){const _0x926d1e=new Map(_0x24234b),_0x3f7fb8=new Map(_0x5ac5f2(_0x62c05b)),_0x4631ea=new Map();for(const [_0x3785b7,_0x25cc43]of _0x5e87c3)_0x4631ea['set'](_0x3785b7,{'start':_0x25cc43['start']['clone'](),'end':_0x25cc43['end']['clone'](),'rootName':_0x25cc43['root']['rootName']});this['_savedMetaData']['set'](_0x35ba72,{'roots':_0x926d1e,'markers':_0x4631ea,'rootsAttributes':_0x3f7fb8});}['_removeMetaData'](_0x3817fd){this['_savedMetaData']['delete'](_0x3817fd);}['_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'](_0x54a3fa,_0x396319=null){let _0x5041ca=null;_0x54a3fa['is']('documentFragment')||(_0x5041ca=new _0x209ccd(_0x54a3fa['name'],{'vid_start':null===_0x396319?this['_revisionId']++:_0x396319++}));const _0x536694=[];for(const _0x22b45d of _0x54a3fa['getChildren']())if(_0x22b45d['is']('element')){_0x536694['push'](this['_makeIdsRoot'](_0x22b45d,_0x396319));const _0x18bbd0=_0x536694[_0x536694['length']-0x1];null!==_0x396319&&(_0x396319=_0x18bbd0['is']('element','$text')?_0x18bbd0['getAttribute']('vid')+0x1:_0x18bbd0['getAttribute']('vid_end')+0x1);}else{for(let _0x368f70=0x0;_0x368f70<_0x22b45d['offsetSize'];_0x368f70++)_0x536694['push'](new _0x209ccd('$text',{'vid':null===_0x396319?this['_revisionId']++:_0x396319++}));}if(_0x54a3fa['is']('documentFragment')){const _0x5904e9=N(_0x54a3fa['rootName']);return _0x5904e9['_insertChild'](0x0,_0x536694),_0x5904e9;}return _0x5041ca['_setAttribute']('vid_end',null===_0x396319?this['_revisionId']++:_0x396319++),_0x5041ca['_insertChild'](0x0,_0x536694),_0x5041ca;}['_calculateMetaData'](_0x1a45a2,_0x1be28d,_0x34b259){this['_reset']();const {roots:_0x318418,markers:_0x2fde9e,rootsAttributes:_0x2a8059}=this['_savedMetaData']['get'](_0x1a45a2);this['_baseRoots']=new Map(_0x318418),this['_baseRootsAttributes']=new Map(_0x5ac5f2(_0x2a8059));for(const [_0x32b66c,_0x3c4c4e]of this['_baseRoots'])if('$graveyard'!==_0x32b66c&&(this['_diffRoots']['set'](_0x32b66c,x(_0x3c4c4e)),this['_diffRootsAttributes']=new Map(_0x5ac5f2(_0x2a8059)),_0x34b259)){const _0x2bdf4d=this['_revisionId'];this['_idsRoots']['set'](_0x32b66c,this['_makeIdsRoot'](_0x3c4c4e)),this['_baseIdsRoots']['set'](_0x32b66c,this['_makeIdsRoot'](_0x3c4c4e,_0x2bdf4d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x34b259&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x180344,_0x3a36a8]of _0x2fde9e){const _0x3d9e53=this['_baseRoots']['get'](_0x3a36a8['rootName']),_0x32686f=this['_diffRoots']['get'](_0x3a36a8['rootName']),_0xc22466=new _0x402d0e(this['_fixPosition'](_0x3a36a8['start'],_0x3d9e53),this['_fixPosition'](_0x3a36a8['end'],_0x3d9e53)),_0x11e97a=this['_fixRange'](_0xc22466,_0x32686f);_0x3d9e53['markers']['set'](_0x180344,_0xc22466),this['_markers']['set'](_0x180344,_0x11e97a);}this['_applyOperations'](_0x1a45a2,_0x1be28d,_0x34b259);}['_applyOperations'](_0x4219ef,_0x2e4cb4,_0x232a11){for(const _0x837f48 of this['source']['getOperations'](_0x4219ef,_0x2e4cb4))this['_handleOperation'](_0x837f48,_0x232a11);for(const _0x5bdd52 of this['_diffRoots']['values']())_0x5bdd52['markers']['clear']();for(const [_0x415b88,_0x41aed0]of this['_markers']){this['_diffRoots']['get'](_0x41aed0['root']['rootName'])['markers']['set'](_0x415b88,_0x41aed0['clone']());}const _0x2de1b3=new Map(),_0x4d9582=new Map();for(const [_0x304af9,_0x2470a9]of this['_diffRoots'])_0x2de1b3['set'](_0x304af9,x(_0x2470a9)),_0x4d9582['set'](_0x304af9,this['_diffRootsAttributes']['get'](_0x304af9));this['_saveMetaData'](_0x2e4cb4,_0x2de1b3,this['_markers'],_0x4d9582);}['_getPreviousFrom'](_0x4d3686){const _0x1bc5da=Array['from'](this['_savedMetaData']['keys']());_0x1bc5da['sort']((_0x326ffa,_0xc55670)=>_0x326ffa-_0xc55670),_0x1bc5da['reverse']();for(const _0x9c3975 of _0x1bc5da)if(_0x9c3975<_0x4d3686)return _0x9c3975;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x473f78,_0x3fb210){const _0xdc9d06=Array['from'](_0x3fb210['markers'])['map'](([_0x4437be,_0x116796])=>[_0x4437be,this['_fixRange'](_0x116796,_0x473f78)]);_0x473f78['markers']=new Map(_0xdc9d06);}['_transformMarkers'](_0x1a7603){for(const _0x128f78 of this['_markers']['values']()){const _0x2eae1f=_0x128f78['getTransformedByOperation'](_0x1a7603),_0x2a2845=_0x402d0e['_createFromRanges'](_0x2eae1f);_0x128f78['start']=_0x2a2845['start'],_0x128f78['end']=_0x2a2845['end'];}}['_handleOperation'](_0x430bb,_0x2f6ce4){if('addRoot'!=_0x430bb['type']&&'detachRoot'!=_0x430bb['type']){if('insert'==_0x430bb['type']){const _0x1bcc9e=_0x430bb['position']['root']['rootName'];this['_diffRoots']['has'](_0x1bcc9e)||(this['_diffRoots']['set'](_0x1bcc9e,N(_0x1bcc9e,!0x0)),this['_diffRootsAttributes']['set'](_0x1bcc9e,{}),_0x2f6ce4&&this['_idsRoots']['set'](_0x1bcc9e,N(_0x1bcc9e,!0x0)));}else{if('addRootAttribute'==_0x430bb['type']||'removeRootAttribute'==_0x430bb['type']||'changeRootAttribute'==_0x430bb['type'])return void this['_handleRootAttributeOperation'](_0x430bb);'marker'==_0x430bb['type']&&this['_handleMarkerOperation'](_0x430bb);}if('marker'!==_0x430bb['type']){const _0x2332ef=this['_cloneOperation'](_0x430bb,this['_diffRoots']);_0x2332ef['_execute'](),this['_transformMarkers'](_0x2332ef);}if(_0x2f6ce4)switch(_0x430bb['type']){case'insert':this['_handleInsertOperation'](_0x430bb);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x430bb);break;case'merge':this['_handleMergeOperation'](_0x430bb);break;case'split':this['_handleSplitOperation'](_0x430bb);}}else this['_handleRootOperation'](_0x430bb,_0x2f6ce4);}['_cloneOperation'](_0x730f07,_0x331d8e){const _0x493a0=_0x730f07['clone']();return _0x493a0['_authorId']=_0x730f07['_authorId'],this['_fixOperation'](_0x493a0,_0x331d8e),_0x493a0;}['_getBaseVids'](_0x235062){return _0x235062['map'](_0x13c97e=>{const _0x489c03=this['_getVidAttributeName'](_0x13c97e);return Number(_0x13c97e['item']['getAttribute'](_0x489c03));});}['_generateTape'](_0x231d89,_0x5229cd){if(_0x231d89['is']('element','$text'))_0x5229cd['push']({'item':_0x231d89,'type':'text'});else{_0x231d89['is']('element')&&_0x5229cd['push']({'item':_0x231d89,'type':'elementStart'});for(const _0x188aa4 of _0x231d89['getChildren']())this['_generateTape'](_0x188aa4,_0x5229cd);_0x231d89['is']('element')&&_0x5229cd['push']({'item':_0x231d89,'type':'elementEnd'});}return _0x5229cd;}['_getState'](){const _0x37abc3=new Map(this['_touched']),_0x4dd349=new Map(_0x37abc3),_0x1040a8=new Map(),_0x23c669={'insertions':{},'deletions':{}},_0x288158={'insertions':{},'deletions':{}},_0xb7bbc7=new Map(),_0x537baa=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x537baa['delete']('$graveyard');for(const _0x53e13c of _0x537baa){const _0x377f7d=this['_diffRoots']['get'](_0x53e13c)||N(_0x53e13c,!0x1),_0x13e1a0=this['_baseRoots']['get'](_0x53e13c)||N(_0x53e13c,!0x1);_0x377f7d['isAttached']()||_0x13e1a0['isAttached']()?(_0x23c669['insertions'][_0x53e13c]=x(_0x377f7d),_0x23c669['deletions'][_0x53e13c]=x(_0x13e1a0),this['_copyMarkers'](_0x23c669['deletions'][_0x53e13c],_0x13e1a0),this['_copyMarkers'](_0x23c669['insertions'][_0x53e13c],_0x377f7d),_0x288158['insertions'][_0x53e13c]=this['_generateTape'](this['_idsRoots']['get'](_0x53e13c),[]),_0x288158['deletions'][_0x53e13c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x53e13c)||N(_0x53e13c,!0x1),[])):_0x537baa['delete'](_0x53e13c);}for(const _0x583e26 of _0x537baa){const _0x281147=_0x288158['insertions'][_0x583e26];for(const _0x358781 of _0x281147){const _0x4b75a7=this['_getVidAttributeName'](_0x358781),_0xb15a4a=_0x358781['item']['getAttribute'](_0x4b75a7);_0x4dd349['delete'](_0xb15a4a),_0xb15a4a>=this['_startingRevisionId']&&_0x1040a8['set'](_0xb15a4a,_0x37abc3['get'](_0xb15a4a));}}for(const _0x577cea of _0x537baa){const _0x28d62c=_0x288158['insertions'][_0x577cea],_0x34e4b5=this['_getBaseVids'](_0x288158['deletions'][_0x577cea]);let _0x52c32d=0x0;for(const _0x16986a of _0x28d62c){const _0xf07d63=this['_getVidAttributeName'](_0x16986a),_0x4b429f=_0x16986a['item']['getAttribute'](_0xf07d63);if(!_0x1040a8['has'](_0x4b429f)&&!_0xb7bbc7['has'](_0x4b429f)){if(_0x4dd349['has'](_0x4b429f))_0x52c32d++;else{if(_0x4b429f!=_0x34e4b5[_0x52c32d]){const _0x97ce6c=_0x37abc3['get'](_0x4b429f)||_0x37abc3['get'](_0x34e4b5[_0x52c32d]);for(;_0x4b429f!=_0x34e4b5[_0x52c32d];)_0x4dd349['has'](_0x34e4b5[_0x52c32d])||(_0xb7bbc7['set'](_0x34e4b5[_0x52c32d],_0x97ce6c),_0x37abc3['set'](_0x34e4b5[_0x52c32d],_0x97ce6c)),_0x52c32d++;}_0x52c32d++;}}}}for(const _0x40e0a7 of _0x537baa){const _0x2f2f28=_0x288158['insertions'][_0x40e0a7];for(const _0x75f1b3 of _0x2f2f28){const _0xe347b1=this['_getVidAttributeName'](_0x75f1b3),_0x595e69=_0x75f1b3['item']['getAttribute'](_0xe347b1);if(_0xb7bbc7['has'](_0x595e69)){const _0x563304=_0xb7bbc7['get'](_0x595e69);_0x4dd349['has'](_0x595e69)||_0x4dd349['set'](_0x595e69,{..._0x563304}),_0x1040a8['set'](_0x595e69,{..._0x563304});}}}for(const _0x55e5c7 of _0x4dd349['keys']())_0x55e5c7>=this['_startingRevisionId']&&_0x4dd349['delete'](_0x55e5c7);const _0x28dad4=new Map();for(const _0x5ded35 of _0x537baa){let _0x52cd64=_0x288158['insertions'][_0x5ded35];for(const _0x43f8c3 of _0x52cd64)if(_0x43f8c3['item']['is']('element','tableCell')){const _0x8fffa=this['_getVidAttributeName'](_0x43f8c3),_0x38d13a=_0x43f8c3['item']['getAttribute'](_0x8fffa);if(_0x1040a8['has'](_0x38d13a)){const _0x561641=_0x43f8c3['item']['parent']['parent']['getAttribute']('vid_start'),_0x3c9d97=_0x28dad4['get'](_0x561641)||new Set();_0x3c9d97['add'](_0x1040a8['get'](_0x38d13a)['userId']),_0x28dad4['set'](_0x561641,_0x3c9d97);}}_0x52cd64=_0x288158['deletions'][_0x5ded35];for(const _0x25e8ff of _0x52cd64)if(_0x25e8ff['item']['is']('element','tableCell')){const _0x1fa242=this['_getVidAttributeName'](_0x25e8ff),_0x3fa74f=_0x25e8ff['item']['getAttribute'](_0x1fa242);if(_0x4dd349['has'](_0x3fa74f)){const _0x3b19ef=_0x25e8ff['item']['parent']['parent']['getAttribute']('vid_start'),_0x507717=_0x28dad4['get'](_0x3b19ef)||new Set();_0x507717['add'](_0x4dd349['get'](_0x3fa74f)['userId']),_0x28dad4['set'](_0x3b19ef,_0x507717);}}for(const _0x174e28 of _0x28dad4['keys']())(_0x1040a8['has'](_0x174e28)||_0x4dd349['has'](_0x174e28))&&_0x28dad4['delete'](_0x174e28);}for(const _0x2ac50e of _0x537baa){const _0xc944a=_0x288158['insertions'][_0x2ac50e];let _0xace311=null,_0x467642=null;for(const _0x5e2f5c of _0xc944a){const _0xed5fcf=this['_getVidAttributeName'](_0x5e2f5c),_0x300628=_0x5e2f5c['item']['getAttribute'](_0xed5fcf),_0x16d3c8=_0x28dad4['get'](_0x300628);_0x16d3c8&&'elementStart'==_0x5e2f5c['type']&&(_0xace311=Array['from'](_0x16d3c8)[0x0],_0x467642=_0x5e2f5c['item']['getAttribute']('vid_end')),_0xace311&&(_0x4dd349['set'](_0x300628,{'userId':_0xace311}),_0x1040a8['set'](_0x300628,{'userId':_0xace311})),_0x300628==_0x467642&&(_0xace311=null,_0x467642=null);}}const _0x5b488b={},_0x215269=new Set();for(const _0x18de8f of _0x537baa){const _0x3b25fc=_0x23c669['deletions'][_0x18de8f],_0xe9891c=_0x23c669['insertions'][_0x18de8f];for(const {userId:_0x537fb8}of this['_touchedMarkers']['values']())null!==_0x537fb8&&_0x215269['add'](_0x537fb8);for(const {userId:_0x529a97}of this['_touchedRoots']['values']())null!==_0x529a97&&_0x215269['add'](_0x529a97);this['_markChanges'](_0xe9891c,_0x288158['insertions'][_0x18de8f],_0x1040a8,'insertion',_0x215269),this['_markChanges'](_0x3b25fc,_0x288158['deletions'][_0x18de8f],_0x4dd349,'deletion',_0x215269),_0x5b488b[_0x18de8f]={'insertions':this['_prepareViewToSave'](_0xe9891c),'deletions':this['_prepareViewToSave'](_0x3b25fc),'attachChange':this['_touchedRoots']['get'](_0x18de8f)||null,'attributesBefore':_0x5ac5f2(this['_baseRootsAttributes']['get'](_0x18de8f))||{},'attributesAfter':_0x5ac5f2(this['_diffRootsAttributes']['get'](_0x18de8f))};}return{'diffData':_0x5b488b,'authorsIds':Array['from'](_0x215269)};}['_processRootBeforeSave'](_0xc75f6f){for(const [,_0x4ce712]of _0xc75f6f['markers']){const _0x26eea7=_0x4ce712['start']['getAncestors']()['filter'](_0x107653=>'tableCell'==_0x107653['name']);for(const _0x234d2c of _0x26eea7)0x1==_0x234d2c['childCount']&&_0x234d2c['getChild'](0x0)['is']('element','paragraph')&&_0x234d2c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x223e21){this['_processRootBeforeSave'](_0x223e21);const _0x3a6a00=this['editor']['data']['toView'](_0x223e21,{}),_0x5512ea=Array['from'](_0x3a6a00['getChildren']())['map'](_0x125086=>this['_getViewJson'](_0x125086));return JSON['stringify'](_0x5512ea);}['_getViewJson'](_0x4202dc){if(_0x4202dc['is']('$text'))return _0x4202dc['data'];{const _0x25f462=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x52d6e1=_0x4202dc,_0x4b00a1=this['editor']['data']['htmlProcessor']['domConverter'],_0x583cca={'type':_0x25f462['_getTypeCharForViewElement'](_0x52d6e1),'name':_0x52d6e1['name'],'attributes':Array['from'](_0x52d6e1['getAttributes']()),'children':Array['from'](_0x52d6e1['getChildren']())['map'](_0x1da7c4=>this['_getViewJson'](_0x1da7c4))};if(_0x4202dc['is']('uiElement')&&'$comment'!=_0x4202dc['name']){const _0x358c51=_0x4202dc['render'](_0x4b00a1['domDocument'],_0x4b00a1);_0x583cca['children']['push'](_0x358c51['outerHTML']);}else{if(_0x4202dc['is']('rawElement')){const _0x1dd9c7=_0x4b00a1['domDocument']['createElement'](_0x52d6e1['name']);_0x4202dc['render'](_0x1dd9c7,_0x4b00a1),_0x583cca['children']['push'](_0x1dd9c7['innerHTML']);}}const _0x21b3e7=Array['from'](_0x52d6e1['getCustomProperties']());_0x21b3e7['length']>0x0&&(_0x583cca['customProperties']=_0x21b3e7);const _0x280903=_0x52d6e1['getFillerOffset']();return null!==_0x280903&&(_0x583cca['fillerOffset']=_0x280903),_0x583cca;}}['_markChanges'](_0x18978f,_0x3c74af,_0x67aeff,_0x2fa839,_0x468942){let _0x197de7=null,_0x113869=null,_0x5ec120=0x0;const _0x19d862=this['editor']['model'];for(let _0x135e44=0x0;_0x135e44<_0x3c74af['length'];_0x135e44++){const _0x2f9479=this['_getVidAttributeName'](_0x3c74af[_0x135e44]),_0x26424d=_0x3c74af[_0x135e44]['item']['getAttribute'](_0x2f9479),_0x13058c=_0x67aeff['get'](_0x26424d),_0x16af1c=_0x135e44==_0x3c74af['length']-0x1;(!_0x197de7&&_0x13058c&&(_0x197de7=_0x13058c,_0x113869=_0x3c74af[_0x135e44]),_0x197de7&&(!_0x13058c||_0x13058c['userId']!=_0x197de7['userId']))&&(_0x241e27(_0x13058c,P(_0x113869,_0x18978f,_0x19d862),P(_0x3c74af[_0x135e44],_0x18978f,_0x19d862)),_0x197de7=_0x13058c||null,_0x113869=_0x13058c?_0x3c74af[_0x135e44]:null),_0x197de7&&_0x16af1c&&_0x241e27(_0x13058c,P(_0x113869,_0x18978f,_0x19d862),V(_0x3c74af[_0x135e44],_0x18978f,_0x19d862));}function _0x241e27(_0x14be31,_0x545d49,_0x4948aa){const _0x566242=_0x197de7['userId'],_0x435c28='revision:'+_0x2fa839+':'+_0x566242+':'+_0x5ec120++,_0x4780df=_0x19d862['createRange'](_0x545d49,_0x4948aa);_0x18978f['markers']['set'](_0x435c28,_0x4780df),null!==_0x566242&&_0x468942['add'](_0x566242);}}['_getVidAttributeName'](_0x4beeba){switch(_0x4beeba['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x239bfc,_0x1d9e8e){_0x239bfc['baseVersion']=null;for(const _0x101722 in _0x239bfc){const _0x1c0b38=_0x239bfc[_0x101722];if(_0x1c0b38 instanceof _0x27fe9e){const _0x2990bf=_0x1d9e8e['get'](_0x1c0b38['root']['rootName']);_0x239bfc[_0x101722]=this['_fixPosition'](_0x1c0b38,_0x2990bf);}if(_0x1c0b38 instanceof _0x402d0e){const _0x3f5e4b=_0x1d9e8e['get'](_0x1c0b38['root']['rootName']);_0x239bfc[_0x101722]=this['_fixRange'](_0x1c0b38,_0x3f5e4b);}'root'===_0x101722&&(_0x239bfc['root']=_0x1d9e8e['get'](_0x239bfc['root']['rootName']));}}['_fixRange'](_0x26bc82,_0x1ff9d5){return this['editor']['model']['createRange'](this['_fixPosition'](_0x26bc82['start'],_0x1ff9d5),this['_fixPosition'](_0x26bc82['end'],_0x1ff9d5));}['_fixPosition'](_0x40179e,_0x5080c5){return this['editor']['model']['createPositionFromPath'](_0x5080c5,_0x40179e['path'],_0x40179e['stickiness']);}['_handleInsertOperation'](_0x5a837c){const _0x1cd8ac=this['_idsRoots']['get'](_0x5a837c['position']['root']['rootName']),_0x276803=this['_fixPosition'](_0x5a837c['position'],_0x1cd8ac),_0x12d432=null===_0x5a837c['_authorId']?null:_0x5a837c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29eb58=_0x276803['parent'],_0x3c57df=this['_revisionId'],_0x395787=[];for(const _0x245a74 of _0x5a837c['nodes'])if(_0x245a74['is']('element'))_0x395787['push'](this['_makeIdsRoot'](_0x245a74));else{for(let _0x1213c7=0x0;_0x1213c7<_0x245a74['offsetSize'];_0x1213c7++)_0x395787['push'](new _0x209ccd('$text',{'vid':this['_revisionId']++}));}const _0x10abc5=this['_revisionId'];for(let _0x5dbf64=_0x3c57df;_0x5dbf64<_0x10abc5;_0x5dbf64++)this['_touched']['set'](_0x5dbf64,{'userId':_0x12d432});_0x29eb58['_insertChild'](_0x276803['offset'],_0x395787);}['_handleMoveOperation'](_0x3af1cf){(_0x3af1cf=this['_cloneOperation'](_0x3af1cf,this['_idsRoots']))['_execute']();const _0x56fcad=null===_0x3af1cf['_authorId']?null:_0x3af1cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x374670=_0x3af1cf['getMovedRangeStart'](),_0x183d07=_0x374670['parent'],_0x23abcb=_0x374670['offset'];!function _0x2c059e(_0x505815,_0x42ab85,_0x2d6a7a,_0x4b206e){for(let _0x5395b9=_0x2d6a7a;_0x5395b9<_0x4b206e;_0x5395b9++){const _0xc10f5f=_0x42ab85['getChild'](_0x5395b9);_0xc10f5f['is']('element','$text')?_0x505815['set'](_0xc10f5f['getAttribute']('vid'),{'userId':_0x56fcad}):(_0x505815['set'](_0xc10f5f['getAttribute']('vid_start'),{'userId':_0x56fcad}),_0x2c059e(_0x505815,_0xc10f5f,0x0,_0xc10f5f['childCount']),_0x505815['set'](_0xc10f5f['getAttribute']('vid_end'),{'userId':_0x56fcad}));}}(this['_touched'],_0x183d07,_0x23abcb,_0x23abcb+_0x3af1cf['howMany']);}['_handleMergeOperation'](_0x662467){const _0x5ad361=null===(_0x662467=this['_cloneOperation'](_0x662467,this['_idsRoots']))['_authorId']?null:_0x662467['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36e425=_0x662467['targetPosition']['parent'],_0x580d72=_0x662467['sourcePosition']['parent'],_0x45a354=_0x36e425['getAttribute']('vid_end'),_0x1a21a7=_0x580d72['getAttribute']('vid_start');_0x36e425['_setAttribute']('vid_end',_0x580d72['getAttribute']('vid_end')),_0x580d72['_setAttribute']('vid_end',_0x45a354),this['_touched']['set'](_0x1a21a7,{'userId':_0x5ad361}),this['_touched']['set'](_0x45a354,{'userId':_0x5ad361}),_0x662467['_execute']();}['_handleSplitOperation'](_0x5a4bdc){const _0x432ee0=null===(_0x5a4bdc=this['_cloneOperation'](_0x5a4bdc,this['_idsRoots']))['_authorId']?null:_0x5a4bdc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5646b2=_0x5a4bdc['graveyardPosition'],_0x20fce5=_0x5a4bdc['splitPosition']['parent'];_0x5a4bdc['_execute']();const _0x3e3bfe=_0x20fce5['getAttribute']('vid_end'),_0x55143a=_0x5a4bdc['insertionPosition']['nodeAfter'];if(_0x5646b2){const _0x1255e7=_0x55143a['getAttribute']('vid_end'),_0x590b67=_0x20fce5['getAttribute']('vid_end');_0x20fce5['_setAttribute']('vid_end',_0x1255e7),_0x55143a['_setAttribute']('vid_end',_0x590b67),this['_touched']['set'](_0x20fce5['getAttribute']('vid_end'),{'userId':_0x432ee0}),this['_touched']['set'](_0x55143a['getAttribute']('vid_start'),{'userId':_0x432ee0});}else{const _0x5c8db5=this['_revisionId']++,_0x50f365=this['_revisionId']++;_0x20fce5['_setAttribute']('vid_end',_0x5c8db5),_0x55143a['_setAttribute']('vid_start',_0x50f365),_0x55143a['_setAttribute']('vid_end',_0x3e3bfe),this['_touched']['set'](_0x5c8db5,{'userId':_0x432ee0}),this['_touched']['set'](_0x50f365,{'userId':_0x432ee0});}}['_handleMarkerOperation'](_0xaa257d){if(!_0xaa257d['affectsData'])return;const _0x2383a2=(_0xaa257d=this['_cloneOperation'](_0xaa257d,this['_diffRoots']))['oldRange']?_0xaa257d['oldRange']['root']:null,_0x4d1691=_0xaa257d['newRange']?_0xaa257d['newRange']['root']:null;_0x2383a2&&this['_markers']['delete'](_0xaa257d['name']),_0x4d1691&&this['_markers']['set'](_0xaa257d['name'],_0xaa257d['newRange']['clone']());const _0x429300=null===_0xaa257d['_authorId']?null:_0xaa257d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x381910=_0xaa257d['name'];if(!this['_touchedMarkers']['has'](_0x381910))return void this['_touchedMarkers']['set'](_0x381910,{'range':_0xaa257d['oldRange'],'userId':_0x429300});const _0x38a11b=this['_touchedMarkers']['get'](_0x381910),_0x1d2158=_0x38a11b['range'],_0x425892=_0xaa257d['newRange'];null==_0x1d2158&&null==_0x425892||_0x1d2158&&_0x425892&&_0x1d2158['isEqual'](_0x425892)?this['_touchedMarkers']['delete'](_0xaa257d['name']):_0x38a11b['userId']=_0x429300;}['_handleRootOperation'](_0x2a4bfb,_0x4ab7b2){this['_diffRoots']['has'](_0x2a4bfb['rootName'])?this['_diffRoots']['get'](_0x2a4bfb['rootName'])['_isAttached']=_0x2a4bfb['isAdd']:(this['_diffRoots']['set'](_0x2a4bfb['rootName'],N(_0x2a4bfb['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2a4bfb['rootName'],{}),_0x4ab7b2&&this['_idsRoots']['set'](_0x2a4bfb['rootName'],N(_0x2a4bfb['rootName'],!0x0)));const _0x486e09=null===_0x2a4bfb['_authorId']?null:_0x2a4bfb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e6c91=this['_touchedRoots']['get'](_0x2a4bfb['rootName']);_0x1e6c91&&_0x1e6c91['userId']===_0x486e09?this['_touchedRoots']['delete'](_0x2a4bfb['rootName']):this['_touchedRoots']['set'](_0x2a4bfb['rootName'],{'userId':_0x486e09,'isAttached':_0x2a4bfb['isAdd']});}['_handleRootAttributeOperation'](_0x32c89a){const _0x50d094=this['_diffRootsAttributes']['get'](_0x32c89a['root']['rootName']);null===_0x32c89a['newValue']?delete _0x50d094[_0x32c89a['key']]:_0x50d094[_0x32c89a['key']]=_0x32c89a['newValue'];}}function x(_0x42f4f9){const _0x10d666=N(_0x42f4f9['rootName'],_0x42f4f9['isAttached']());for(const _0x2f44e3 of _0x42f4f9['getChildren']()){const _0x2c0340=_0x2f44e3['_clone'](!0x0);_0x10d666['_appendChild'](_0x2c0340);}return _0x10d666;}function N(_0x5d6d68,_0x3c3378=!0x0){const _0x2bafd2=new _0x2a83e1();return _0x2bafd2['rootName']=_0x5d6d68,_0x2bafd2['_isAttached']=_0x3c3378,_0x2bafd2['isAttached']=()=>_0x2bafd2['_isAttached'],_0x2bafd2;}function P(_0x42e9e8,_0x547b72,_0xd302e7){const _0x1dd2dc='elementEnd'==_0x42e9e8['type']?_0xd302e7['createPositionAt'](_0x42e9e8['item'],'end'):_0xd302e7['createPositionBefore'](_0x42e9e8['item']);return _0xd302e7['createPositionFromPath'](_0x547b72,_0x1dd2dc['path'],_0x1dd2dc['stickiness']);}function V(_0xf86ca5,_0x1917de,_0xce20b2){const _0x5856bb='elementStart'==_0xf86ca5['type']?_0xce20b2['createPositionAt'](_0xf86ca5['item'],0x0):_0xce20b2['createPositionAfter'](_0xf86ca5['item']);return _0xce20b2['createPositionFromPath'](_0x1917de,_0x5856bb['path'],_0x5856bb['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x321dc8(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5465e9){super(),this['id']=_0x5465e9['id']||_0xb1be14(),this['author']=_0x5465e9['author'],this['type']=_0x5465e9['type'],this['data']=_0x5465e9['data']||{},this['rootName']=_0x5465e9['rootName'],this['set']('createdAt',_0x5465e9['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(_0x480c7f,_0x30bb02){this['newRevisionId']=_0x480c7f,this['oldRevisionId']=_0x30bb02,this['changes']=new _0x33b3a9();}['_setChanges'](_0x17134e){for(const _0x36adbd of _0x17134e)this['changes']['add'](_0x36adbd);}}class l extends _0x261da3{['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[_0x188d72,_0x1434e2,S,$];}constructor(_0x3b77b4){super(_0x3b77b4),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',(_0x55aaf5,_0x51b896,_0x182f5b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x548e92=>{for(const _0x5d7b98 of this['editor']['editing']['view']['document']['roots'])_0x182f5b?_0x548e92['removeClass']('ck-editor__editable__overlay',_0x5d7b98):_0x548e92['addClass']('ck-editor__editable__overlay',_0x5d7b98);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x9d5e8a=>null!==_0x9d5e8a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2cf837,_0x1bccd1,_0x141340)=>_0x2cf837&&_0x141340?_0x1bccd1['changes']['getIndex'](_0x141340):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4cacb2,_0x12dc5c)=>_0x4cacb2?_0x12dc5c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1434e2);}['init'](){const _0x4e8239=this['editor'],_0x9808d9=new ot(_0x4e8239,{'direction':'backward'}),_0x59c4a0=new ot(_0x4e8239,{'direction':'forward'});(_0x4e8239['commands']['add']('showPreviousChange',_0x9808d9),_0x4e8239['commands']['add']('showNextChange',_0x59c4a0),_0x4e8239['commands']['add']('restoreRevision',new nt(_0x4e8239)),this['on']('change:numberOfChanges',()=>{_0x9808d9['refresh'](),_0x59c4a0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4e8239['enableReadOnlyMode']('revision-viewer'),_0x4e8239['plugins']['has']('WidgetToolbarRepository'))&&_0x4e8239['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2f199b){return await this['_utils']['loadRevisionData'](_0x2f199b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2f199b);}async['getRevisionRootsAttributes'](_0x49e6c4){return await this['_utils']['loadRevisionData'](_0x49e6c4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x49e6c4);}async['compare'](_0x39e25d,_0x36afe1,_0x464edb=!0x1){if(!this['isEnabled'])return;const _0x2957e1=this['diff'],_0x2878fb=this['repository'],_0x41bf4d='string'==typeof _0x39e25d?_0x2878fb['getRevision'](_0x39e25d):_0x39e25d,_0x57013a='string'==typeof _0x36afe1?_0x2878fb['getRevision'](_0x36afe1):_0x36afe1,_0x223f58=_0x41bf4d['id'],_0x577a34=_0x57013a?_0x57013a['id']:null;if(!_0x464edb&&this['diff']&&this['diff']['newRevisionId']===_0x223f58&&this['diff']['oldRevisionId']===_0x577a34)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x223f58,_0x577a34);const _0x59f89c=this['_getRevisionsRange'](_0x41bf4d,_0x57013a,!0x0)['map'](_0x31287a=>this['_utils']['loadRevisionData'](_0x31287a,this['adapter']));return _0x59f89c['push'](new Promise(_0x2704ab=>{setTimeout(_0x2704ab,0x14);})),Promise['all'](_0x59f89c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1147ae=this['_getDiff'](_0x223f58,_0x577a34);for(const _0x3fe482 of _0x1147ae['changes'])this['_changeIdToChange']['set'](_0x3fe482['id'],_0x3fe482);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xaa9f44=>{for(const _0x13605b of this['editor']['model']['document']['getRootNames']())_0xaa9f44['detachRoot'](_0x13605b);for(const _0x2f96cf of Object['keys'](_0x1147ae['model'])){const _0x2f8666=_0xaa9f44['addRoot'](_0x2f96cf);for(const _0x27c7e0 of Object['keys'](_0x1147ae['attributes'][_0x2f96cf]))_0xaa9f44['setAttribute'](_0x27c7e0,_0x1147ae['attributes'][_0x2f96cf][_0x27c7e0],_0x2f8666);_0xaa9f44['insert'](_0x1147ae['model'][_0x2f96cf],_0x2f8666,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1147ae['changes'])),this['isReady']=!0x0;})['catch'](_0x488c64=>{console['error'](_0x488c64),this['_cleanUp'](),_0x2957e1&&(this['diff']=_0x2957e1),this['isReady']=!0x0;});}['addRevisionData'](_0x37bdf4,_0x3960e6){const _0x2051a3=this['repository']['createRevision'](_0x37bdf4);return _0x2051a3['on']('_update',(_0x20feb8,_0x4f1f2c,_0x5a8700)=>_0x3960e6(_0x4f1f2c,_0x5a8700,_0x2051a3)),this['repository']['addRevision'](_0x2051a3),_0x2051a3;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x17c9bd=>{for(const _0x120ab1 of this['editor']['model']['document']['getRootNames']())_0x17c9bd['detachRoot'](_0x120ab1);});}['_sortAndFilterDiffChanges'](_0x1db573){const _0x4a6cbe=[],_0x1c2c58=new Map();for(const _0x292ead of this['editor']['model']['document']['getRootNames']()){const _0x5b6160=this['editor']['editing']['view']['getDomRoot'](_0x292ead);if(!_0x5b6160)continue;const _0x56ef02=_0x5b6160['getClientRects']()['item'](0x0);_0x56ef02&&(_0x4a6cbe['push'](_0x292ead),_0x1c2c58['set'](_0x292ead,_0x56ef02));}return _0x4a6cbe['sort']((_0x2e5b10,_0x51cafe)=>{const _0x5571a0=_0x1c2c58['get'](_0x2e5b10),_0xc6de50=_0x1c2c58['get'](_0x51cafe);return _0x5571a0['y']-_0xc6de50['y']||_0x5571a0['x']-_0xc6de50['x'];}),(_0x1db573=_0x1db573['filter'](_0x3e95fa=>_0x4a6cbe['includes'](_0x3e95fa['rootName'])))['sort']((_0x2c92ed,_0x5d8e4c)=>_0x4a6cbe['indexOf'](_0x2c92ed['rootName'])-_0x4a6cbe['indexOf'](_0x5d8e4c['rootName'])),_0x1db573;}['_makeTape'](_0x3bdccc){const _0x50d1f7=Array['from'](_0x3bdccc['markers'])['filter'](([_0x2c26c0,_0x186152])=>_0x2c26c0['startsWith']('revision:')&&!_0x186152['isCollapsed']),_0x2a57af=Array['from'](this['editor']['model']['createRangeIn'](_0x3bdccc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x50d1f7['length'])for(const _0xf132e1 of _0x2a57af){const [_0x282943,_0x23174f]=_0x50d1f7[0x0],[,_0xbed616,_0xde8492]=_0x282943['split'](':');if(_0x23174f['end']['isEqual'](_0xf132e1['nextPosition'])&&_0x50d1f7['shift'](),(_0xf132e1['previousPosition']['isEqual'](_0x23174f['start'])||_0xf132e1['previousPosition']['isAfter'](_0x23174f['start']))&&('insertion'==_0xbed616?_0xf132e1['isAdded']={'userId':_0xde8492}:'deletion'==_0xbed616&&(_0xf132e1['isRemoved']={'userId':_0xde8492})),0x0==_0x50d1f7['length'])break;}return _0x2a57af;}['_refreshStartEndIndex'](_0x47bad4){const _0x3fee36=new Map();for(let _0x14ebfc=0x0;_0x14ebfc<_0x47bad4['length'];_0x14ebfc++)'text'===_0x47bad4[_0x14ebfc]['type']?(_0x47bad4[_0x14ebfc]['item']['startIndex']=_0x14ebfc,_0x47bad4[_0x14ebfc]['item']['endIndex']=_0x14ebfc):('elementStart'===_0x47bad4[_0x14ebfc]['type']?_0x47bad4[_0x14ebfc]['item']['startIndex']=_0x14ebfc:'elementEnd'===_0x47bad4[_0x14ebfc]['type']&&(_0x47bad4[_0x14ebfc]['item']['endIndex']=_0x14ebfc),_0x3fee36['set'](_0x47bad4[_0x14ebfc]['id'],_0x14ebfc));for(const _0x1e0227 of _0x3fee36['values']())'elementStart'===_0x47bad4[_0x1e0227]['type']?_0x47bad4[_0x1e0227]['item']['endIndex']=_0x3fee36['get'](_0x47bad4[_0x1e0227]['pairId']):'elementEnd'===_0x47bad4[_0x1e0227]['type']&&(_0x47bad4[_0x1e0227]['item']['startIndex']=_0x3fee36['get'](_0x47bad4[_0x1e0227]['pairId']));}['_processTape'](_0x12523f){for(let _0x37d65c=0x0;_0x37d65c<_0x12523f['length'];_0x37d65c++){if('elementStart'===_0x12523f[_0x37d65c]['type'])_0x12523f[_0x37d65c]['item']['startIndex']=_0x37d65c;else{if('elementEnd'===_0x12523f[_0x37d65c]['type']){_0x12523f[_0x37d65c]['item']['endIndex']=_0x37d65c;const _0x643be=_0x12523f[_0x37d65c]['item']['startIndex'];_0x12523f[_0x643be]['pairId']=_0x12523f[_0x37d65c]['id'],_0x12523f[_0x37d65c]['pairId']=_0x12523f[_0x643be]['id'];}else _0x12523f[_0x37d65c]['item']['startIndex']=_0x37d65c,_0x12523f[_0x37d65c]['item']['endIndex']=_0x37d65c,_0x12523f[_0x37d65c]['pairId']=null;}_0x12523f[_0x37d65c]['markersStart']||(_0x12523f[_0x37d65c]['markersStart']=[],_0x12523f[_0x37d65c]['markersEnd']=[]);}}['_markInsertions'](_0x42ce69,_0x556abb){const _0x4f72c1=_0x42ce69['filter'](_0x17fb05=>!_0x17fb05['isAdded']);for(let _0x236373=0x0;_0x236373<_0x556abb['length'];_0x236373++)_0x556abb[_0x236373]['isAdded']&&(_0x4f72c1[_0x236373]['isAdded']=_0x556abb[_0x236373]['isAdded']);}['_getDiff'](_0x40364d,_0x4a7477=null){const _0x285acc=this['repository']['getRevision'](_0x40364d),_0x5211b4=_0x4a7477?this['repository']['getRevision'](_0x4a7477):null,_0x2ef095=this['_getRevisionsRange'](_0x285acc,_0x5211b4),_0x36ad2d=_0x2ef095[_0x2ef095['length']-0x1],_0x54eca9=new Map(),_0x20d454={'model':{},'attributes':{},'changes':[]},_0x2a8a2e=new Set(),_0x2705e1=new Map();for(let _0x17a772=_0x2ef095['length']-0x1;_0x17a772>=0x0;_0x17a772--){const _0xd4ffd1=_0x2ef095[_0x17a772];for(const _0x20e068 of Object['keys'](_0xd4ffd1['diffData']))if(_0xd4ffd1['diffData'][_0x20e068]['attachChange']){const _0x283f85=_0xd4ffd1['diffData'][_0x20e068]['attachChange'];_0x283f85['isAttached']?(_0x2a8a2e['add'](_0x20e068),_0x2705e1['has'](_0x20e068)&&_0x2705e1['get'](_0x20e068)['userId']==_0x283f85['userId']?_0x2705e1['delete'](_0x20e068):_0x2705e1['set'](_0x20e068,_0x283f85)):_0x2705e1['has'](_0x20e068)?(_0x2a8a2e['delete'](_0x20e068),_0x2705e1['delete'](_0x20e068)):(_0x2a8a2e['add'](_0x20e068),_0x2705e1['set'](_0x20e068,_0x283f85));}else _0x2a8a2e['add'](_0x20e068);}for(const _0x55416d of _0x2a8a2e){const _0x23d937=_0x2705e1['has'](_0x55416d)&&!_0x2705e1['get'](_0x55416d)['isAttached'];let _0x29f95d=_0x23d937?_0x2ef095['length']-0x1:0x0;const _0x8b470f=_0x23d937?-0x1:0x1;for(;_0x2ef095[_0x29f95d];){const _0x3d2087=_0x2ef095[_0x29f95d];if(_0x3d2087['diffData'][_0x55416d]){const _0x20121c=_0x23d937?_0x3d2087['diffData'][_0x55416d]['attributesBefore']:_0x3d2087['diffData'][_0x55416d]['attributesAfter'];_0x20d454['attributes'][_0x55416d]=_0x20121c?_0x5ac5f2(_0x20121c):{};break;}_0x29f95d+=_0x8b470f;}}for(const _0x38d1d6 of _0x2ef095){_0x38d1d6['model']={};for(const _0x4e5708 of _0x38d1d6['authors'])_0x54eca9['set'](_0x4e5708['id'],_0x4e5708);for(const _0x24752b of _0x2a8a2e){const _0x3cdce2=_0x38d1d6['diffData'][_0x24752b]?_0x38d1d6['diffData'][_0x24752b]['insertions']:'[]',_0x5b23ee=_0x38d1d6['diffData'][_0x24752b]?_0x38d1d6['diffData'][_0x24752b]['deletions']:'[]';_0x38d1d6['model'][_0x24752b]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3cdce2),'deletions':this['_utils']['_makeModelFromViewString'](_0x5b23ee)};}}for(const _0x180e2e of _0x2a8a2e){let _0x4c9d44=null,_0x3905f7=0x0;const _0x3d4d7d=new Map(Array['from'](_0x285acc['model'][_0x180e2e]['insertions']['markers'])['filter'](([_0x453770])=>!_0x453770['startsWith']('revision:')));let _0x61a242=0x0;for(const _0x5aecad of _0x2ef095){const _0x428209=this['_makeTape'](_0x5aecad['model'][_0x180e2e]['insertions']);_0x5aecad==_0x285acc?(_0x4c9d44=_0x428209,_0x3905f7=_0x4c9d44['length'],_0x4c9d44['forEach'](_0x4d5543=>{_0x4d5543['id']=_0x61a242++;}),this['_processTape'](_0x4c9d44)):this['_markInsertions'](_0x4c9d44,_0x428209);const _0x12cd5a=_0x4c9d44['filter'](_0x58bd26=>!_0x58bd26['isAdded'])['map'](_0x3f1a91=>_0x3f1a91['id']);let _0x2a6dcb=0x0;const _0x53e8fb=this['_makeTape'](_0x5aecad['model'][_0x180e2e]['deletions']);_0x53e8fb['forEach'](_0x4a6bb5=>{_0x4a6bb5['isRemoved']?_0x4a6bb5['id']=_0x3905f7++:_0x4a6bb5['id']=_0x12cd5a[_0x2a6dcb++];}),this['_processTape'](_0x53e8fb),this['_setDistance'](_0x4c9d44,'isAdded'),this['_setDistance'](_0x53e8fb,'isRemoved'),_0x5aecad==_0x285acc&&this['_markMarkers'](_0x4c9d44,_0x3d4d7d),_0x4c9d44=this['_joinTapes'](_0x4c9d44,_0x53e8fb),this['_refreshStartEndIndex'](_0x4c9d44),this['_setDistance'](_0x4c9d44,'isRemoved');}_0x4c9d44=_0x4c9d44['filter'](_0x2f64b1=>!(_0x2f64b1['isAdded']&&_0x2f64b1['isRemoved']));const _0x2fcd75=new Map(_0x36ad2d['model'][_0x180e2e]['deletions']['markers']),_0x1b6c8a=new Set(_0x3d4d7d['keys']());for(const _0x4c949d of _0x2fcd75['keys']())_0x1b6c8a['delete'](_0x4c949d);this['_markSuggestions'](_0x4c9d44,_0x1b6c8a),this['_fixObsoleteTags'](_0x4c9d44),_0x4c9d44=this['_removeMissingPairs'](_0x4c9d44),_0x4c9d44=this['_markMismatchedRemovedTags'](_0x4c9d44),_0x4c9d44=this['_removeUnsupportedChanges'](_0x4c9d44);const {root:_0x44f219,changes:_0x1e19be}=this['_makeModelFromTape'](_0x4c9d44,_0x54eca9,_0x180e2e);_0x20d454['model'][_0x180e2e]=_0x44f219;const _0x33f11f=_0x2705e1['get'](_0x180e2e);if(_0x33f11f){const _0x3d0e2d=_0x54eca9['get'](_0x33f11f['userId']),_0x54f127=new G({'author':_0x3d0e2d,'type':_0x33f11f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x180e2e});_0x1e19be['unshift'](_0x54f127),_0x20d454['attributes'][_0x180e2e]['revisionHistoryAttachChange']=_0x54f127['id'];}_0x20d454['changes']=_0x20d454['changes']['concat'](_0x1e19be);}return _0x20d454;}['_markMarkers'](_0x48213e,_0x1d26d4){for(let _0x105e85=0x0;_0x105e85<_0x48213e['length'];_0x105e85++)for(const [_0x356e26,_0x3a0b48]of _0x1d26d4)!_0x3a0b48['isCollapsed']&&_0x3a0b48['start']['isEqual'](_0x48213e[_0x105e85]['previousPosition'])&&_0x48213e[_0x105e85]['markersStart']['push'](_0x356e26),_0x3a0b48['end']['isEqual'](_0x48213e[_0x105e85]['nextPosition'])&&_0x48213e[_0x105e85]['markersEnd']['push'](_0x356e26);}['_joinTapes'](_0x5c9689,_0xbb1710){let _0x5ce9e8=[],_0x346558=0x0,_0x389ea2=0x0;for(;_0x346558<_0x5c9689['length']||_0x389ea2<_0xbb1710['length'];){const _0x194067=_0x5c9689[_0x346558]||{},_0xddbefd=_0xbb1710[_0x389ea2]||{};if(_0x194067['id']==_0xddbefd['id'])_0x346558++,_0x389ea2++,_0x5ce9e8['push'](_0x194067);else{if(_0xddbefd['isRemoved']&&_0x194067['isAdded']){const {commonTape:_0x9cead0,iEnd:_0x4e06c7,jEnd:_0x5ed122}=this['_threeWayMerge'](_0x5c9689,_0x346558,_0xbb1710,_0x389ea2);_0x5ce9e8=_0x5ce9e8['concat'](_0x9cead0),_0x346558=_0x4e06c7,_0x389ea2=_0x5ed122;}else _0xddbefd['isRemoved']?(_0x389ea2++,_0x5ce9e8['push'](_0xddbefd)):(_0x346558++,_0x5ce9e8['push'](_0x194067));}}return _0x5ce9e8;}['_markSuggestions'](_0x141103,_0x38ed2a){const _0x29adc3=[];for(let _0x47d219=0x0;_0x47d219<_0x141103['length'];_0x47d219++){for(let _0x35e661=0x0;_0x35e661<_0x141103[_0x47d219]['markersStart']['length'];_0x35e661++){const _0x1a89f0=_0x141103[_0x47d219]['markersStart'][_0x35e661];if(!_0x38ed2a['has'](_0x1a89f0))continue;const {group:_0x556230,type:_0x18a837,authorId:_0x95ea42}=_0x58b934(_0x1a89f0);'revision-suggestion'!=_0x556230||'insertion'!=_0x18a837&&'deletion'!=_0x18a837||(_0x29adc3['unshift']({'type':_0x18a837,'name':_0x1a89f0,'userId':_0x95ea42}),_0x141103[_0x47d219]['markersStart']['splice'](_0x35e661,0x1),_0x35e661--);}_0x13bc39(_0x141103[_0x47d219]);for(let _0x10d706=0x0;_0x10d706<_0x141103[_0x47d219]['markersEnd']['length'];_0x10d706++){const _0x5c641c=_0x141103[_0x47d219]['markersEnd'][_0x10d706];if(!_0x38ed2a['has'](_0x5c641c))continue;const {group:_0x1f8e26,type:_0x162eee}=_0x58b934(_0x5c641c);if('revision-suggestion'!=_0x1f8e26||'insertion'!=_0x162eee&&'deletion'!=_0x162eee)continue;_0x141103[_0x47d219]['markersEnd']['splice'](_0x10d706,0x1),_0x10d706--;const _0x232925=_0x29adc3['findIndex'](_0x35212e=>_0x35212e['name']==_0x5c641c);_0x232925>-0x1&&_0x29adc3['splice'](_0x232925,0x1);}}function _0x58b934(_0x26da8e){const _0x3945d6=_0x26da8e['split'](':');return{'group':_0x3945d6[0x0],'type':_0x3945d6[0x1],'subType':_0x3945d6['length']>=0x5?_0x3945d6[0x2]:null,'id':_0x3945d6['length']<0x5?_0x3945d6[0x2]:_0x3945d6[0x3],'authorId':_0x3945d6['length']<0x5?_0x3945d6[0x3]:_0x3945d6[0x4],'markerCount':0x6==_0x3945d6['length']?_0x3945d6[0x5]:null};}function _0x13bc39(_0x130816){for(let _0x279e52=0x0;_0x279e52<_0x29adc3['length'];_0x279e52++){if(_0x130816['isAdded']&&'insertion'==_0x29adc3[_0x279e52]['type']&&_0x130816['isAdded']['userId']==_0x29adc3[_0x279e52]['userId'])return _0x130816['isAddSuggestion']=_0x29adc3[_0x279e52],void delete _0x130816['isAdded'];if(!_0x130816['isAdded']&&!_0x130816['isRemoved']&&'deletion'==_0x29adc3[_0x279e52]['type'])return void(_0x130816['isRemoveSuggestion']=_0x29adc3[_0x279e52]);}}}['_setDistance'](_0x280bf5,_0x1fc0d6){let _0x2cd5cf=0x0,_0x4e0507=!0x1;const _0xc07185=new Map();for(const _0x158b59 of _0x280bf5)_0x158b59[_0x1fc0d6]?_0x4e0507&&(_0x2cd5cf++,_0x4e0507=!0x1):(_0x2cd5cf++,_0x4e0507=!0x0),_0xc07185['set'](_0x158b59['id'],_0x2cd5cf);for(let _0x5a11e2=0x0;_0x5a11e2<_0x280bf5['length'];_0x5a11e2++){if('isRemoved'==_0x1fc0d6&&_0x280bf5[_0x5a11e2]['isAdded']||'isAdded'==_0x1fc0d6&&_0x280bf5[_0x5a11e2]['isRemoved'])continue;if('text'==_0x280bf5[_0x5a11e2]['type']){_0x280bf5[_0x5a11e2]['distance']=0x0;continue;}const _0x5946ae=_0xc07185['get'](_0x280bf5[_0x5a11e2]['pairId']),_0x55680e=_0xc07185['get'](_0x280bf5[_0x5a11e2]['id']);_0x280bf5[_0x5a11e2]['distance']=_0x5946ae-_0x55680e;}}['_getRevisionsRange'](_0x5bc88b,_0x1c7d62,_0x4c2c2f=!0x1){const _0x352ad7=[];let _0x37f69b=this['repository']['getIndex'](_0x5bc88b),_0x2a258b=this['repository']['getIndex'](_0x1c7d62);for(-0x1==_0x2a258b&&(_0x2a258b=this['repository']['_revisions']['length'],_0x4c2c2f=!0x1);_0x37f69b<_0x2a258b;)_0x352ad7['push'](this['repository']['getRevision'](_0x37f69b)),_0x37f69b++;return _0x4c2c2f&&_0x352ad7['push'](this['repository']['getRevision'](_0x37f69b)),_0x352ad7;}['_threeWayMerge'](_0x568a37,_0x2c80ac,_0x4f8118,_0x2e320b){const _0x473cf4=this['editor']['model']['schema'];let _0x1cd18b=_0x2c80ac;for(;_0x568a37[_0x1cd18b]&&_0x568a37[_0x1cd18b]['isAdded'];)_0x1cd18b++;let _0xb712f7=_0x2e320b;for(;_0x4f8118[_0xb712f7]&&_0x4f8118[_0xb712f7]['isRemoved'];)_0xb712f7++;_0x9c55e9(_0x568a37,_0x2c80ac,_0x1cd18b),_0x9c55e9(_0x4f8118,_0x2e320b,_0xb712f7);const _0x53c9f7=_0x4f8118['slice'](_0x2e320b,_0xb712f7)['concat'](_0x568a37['slice'](_0x2c80ac,_0x1cd18b));return _0x53c9f7['sort']((_0x1ae23f,_0x534578)=>_0x1ae23f['side']!=_0x534578['side']?_0x1ae23f['side']-_0x534578['side']:_0x1ae23f['level']!=_0x534578['level']?_0x1ae23f['level']-_0x534578['level']:_0x1ae23f['distance']!=_0x534578['distance']?_0x534578['distance']-_0x1ae23f['distance']:!!_0x1ae23f['isAdded']!=!!_0x534578['isAdded']?-0x1==_0x1ae23f['side']||0x0==_0x1ae23f['side']?_0x1ae23f['isAdded']?-0x1:0x1:_0x1ae23f['isAdded']?0x1:-0x1:_0x1ae23f['index']-_0x534578['index']),{'commonTape':_0x53c9f7,'iEnd':_0x1cd18b,'jEnd':_0xb712f7};function _0x9c55e9(_0x21f571,_0x408dd6,_0xc33924){let _0x547173=-0x1,_0x58616b=Number['POSITIVE_INFINITY'],_0x1f705d=!0x0;for(let _0xfd7f03=_0x408dd6;_0xfd7f03<_0xc33924;_0xfd7f03++)if(_0x473cf4['isInline'](_0x21f571[_0xfd7f03]['item'])||(_0x1f705d=!0x1),_0x21f571[_0xfd7f03]['item']['startIndex']<_0x408dd6&&(_0x547173=_0xfd7f03),_0x21f571[_0xfd7f03]['item']['endIndex']>=_0xc33924){_0x58616b=_0xfd7f03;break;}_0x1f705d&&(_0x547173=_0xc33924-0x1);for(let _0x577d51=_0x408dd6;_0x577d51<_0xc33924;_0x577d51++)_0x21f571[_0x577d51]['side']=_0x577d51<=_0x547173?-0x1:_0x577d51<_0x58616b?0x0:0x1,_0x21f571[_0x577d51]['index']=_0x577d51;let _0x5a3780=0x0;for(let _0x43923b=_0x408dd6;_0x43923b<=_0x547173;_0x43923b++)0x0==_0x21f571[_0x43923b]['distance']?_0x21f571[_0x43923b]['level']=_0x5a3780:(_0x5a3780++,_0x21f571[_0x43923b]['level']=_0x5a3780,_0x5a3780++);for(let _0x2cbe84=_0x408dd6;_0x2cbe84<_0xc33924;_0x2cbe84++)0x0==_0x21f571[_0x2cbe84]['side']&&(_0x21f571[_0x2cbe84]['level']=_0x5a3780);_0x5a3780=0x0;for(let _0x39703c=_0xc33924-0x1;_0x39703c>=_0x58616b;_0x39703c--)0x0==_0x21f571[_0x39703c]['distance']?_0x21f571[_0x39703c]['level']=_0x5a3780:(_0x5a3780--,_0x21f571[_0x39703c]['level']=_0x5a3780,_0x5a3780--);}}['_fixObsoleteTags'](_0x2228b3){const _0x35ff9f=new Map(),_0x3cee94=this['editor']['model']['schema'];for(let _0x1bc0b3=0x1;_0x1bc0b3<_0x2228b3['length'];_0x1bc0b3++){let _0x4700d3,_0x47bb5c,_0x57169f;const _0x2d6509=_0x2228b3[_0x1bc0b3],_0x28f065=_0x2228b3[_0x1bc0b3-0x1];if('text'==_0x2d6509['type'])continue;if(_0x2d6509['type']!=_0x28f065['type'])continue;if(!_0x3cee94['isBlock'](_0x28f065['item'])||_0x3cee94['isLimit'](_0x28f065['item']))continue;if(!_0x3cee94['isBlock'](_0x2d6509['item'])||_0x3cee94['isLimit'](_0x2d6509['item']))continue;if((_0x2228b3[_0x1bc0b3]['isAdded']||_0x2228b3[_0x1bc0b3]['isAddSuggestion'])&&_0x2228b3[_0x1bc0b3-0x1]['isRemoved'])_0x4700d3=_0x2228b3[_0x1bc0b3],_0x47bb5c=_0x2228b3[_0x1bc0b3-0x1],_0x57169f=_0x1bc0b3-0x1;else{if(!_0x2228b3[_0x1bc0b3]['isRemoved']||!_0x2228b3[_0x1bc0b3-0x1]['isAdded']&&!_0x2228b3[_0x1bc0b3-0x1]['isAddSuggestion'])continue;_0x4700d3=_0x2228b3[_0x1bc0b3-0x1],_0x47bb5c=_0x2228b3[_0x1bc0b3],_0x57169f=_0x1bc0b3;}const _0xd8f843=_0x4700d3['level']==_0x47bb5c['level'],_0xb59897=Math['abs'](_0x4700d3['level'])<Math['abs'](_0x47bb5c['level'])&&0x0==_0x47bb5c['distance'];(_0xd8f843||_0xb59897)&&(_0x35ff9f['set'](_0x47bb5c['id'],_0x4700d3['id']),_0x2228b3['splice'](_0x57169f,0x1),_0x1bc0b3--,_0x4700d3['isAdded']=!0x1);}for(let _0x14c1a9=0x0;_0x14c1a9<_0x2228b3['length'];_0x14c1a9++)_0x35ff9f['has'](_0x2228b3[_0x14c1a9]['pairId'])&&(_0x2228b3[_0x14c1a9]['pairId']=_0x35ff9f['get'](_0x2228b3[_0x14c1a9]['pairId']));}['_removeMissingPairs'](_0x1e933a){const _0x4db302=new Set(_0x1e933a['map'](_0x3d01af=>_0x3d01af['id']));for(let _0x3f6c29=0x0;_0x3f6c29<_0x1e933a['length'];_0x3f6c29++)_0x4db302['has'](_0x1e933a[_0x3f6c29]['pairId'])||0x0==_0x1e933a[_0x3f6c29]['distance']||(_0x1e933a[_0x3f6c29]['isIncorrect']=!0x0);return _0x1e933a['filter'](_0x2e9f34=>!_0x2e9f34['isIncorrect']);}['_markMismatchedRemovedTags'](_0x195ea2){const _0xad0610=new Set();for(let _0x51c9c4=0x0;_0x51c9c4<_0x195ea2['length'];_0x51c9c4++){if(_0xad0610['has'](_0x195ea2[_0x51c9c4]['id'])&&_0x195ea2[_0x51c9c4]['isRemoved']&&(_0x195ea2[_0x51c9c4]['isIncorrect']=!0x0),_0x195ea2[_0x51c9c4]['isIncorrect'])continue;if(0x0==_0x195ea2[_0x51c9c4]['distance'])continue;if('elementStart'!=_0x195ea2[_0x51c9c4]['type'])continue;if(null==_0x195ea2[_0x51c9c4]['pairId'])continue;let _0x2f51c3=_0x51c9c4+0x1,_0x2945c6=0x0;for(;_0x195ea2[_0x2f51c3]['id']!=_0x195ea2[_0x51c9c4]['pairId'];)'elementStart'==_0x195ea2[_0x2f51c3]['type']?_0x2945c6++:'elementEnd'==_0x195ea2[_0x2f51c3]['type']&&_0x2945c6--,_0x2f51c3++;if(0x0!=_0x2945c6){if(_0x195ea2[_0x51c9c4]['isRemoved'])_0x195ea2[_0x51c9c4]['isIncorrect']=!0x0;else{for(;_0x2f51c3!=_0x51c9c4;)_0x195ea2[_0x2f51c3]['isRemoved']&&0x0!=_0x195ea2[_0x2f51c3]['distance']&&(_0x195ea2[_0x2f51c3]['isIncorrect']=!0x0,_0xad0610['add'](_0x195ea2[_0x2f51c3]['pairId'])),_0x2f51c3--;}}}return _0x195ea2['filter'](_0x48320f=>!_0x48320f['isIncorrect']);}['_removeUnsupportedChanges'](_0xe50b9e){const _0x40d05c=this['editor']['model']['schema'];for(let _0x29f40f=0x0;_0x29f40f<_0xe50b9e['length'];_0x29f40f++){if(!(_0xe50b9e[_0x29f40f]['isAdded']||_0xe50b9e[_0x29f40f]['isAddSuggestion']||_0xe50b9e[_0x29f40f]['isRemoved']||_0xe50b9e[_0x29f40f]['isRemoveSuggestion']))continue;if(0x0==_0xe50b9e[_0x29f40f]['distance'])continue;const _0x82c71c=_0xe50b9e[_0x29f40f]['item'];_0x40d05c['isBlock'](_0x82c71c)||_0x40d05c['isLimit'](_0x82c71c)||(_0xe50b9e[_0x29f40f]['isAdded']&&delete _0xe50b9e[_0x29f40f]['isAdded'],_0xe50b9e[_0x29f40f]['isAddSuggestion']&&delete _0xe50b9e[_0x29f40f]['isAddSuggestion'],_0xe50b9e[_0x29f40f]['isRemoveSuggestion']&&delete _0xe50b9e[_0x29f40f]['isRemoveSuggestion'],_0xe50b9e[_0x29f40f]['isRemoved']&&(_0xe50b9e[_0x29f40f]['isIncorrect']=!0x0));}return _0xe50b9e['filter'](_0x4474d2=>!_0x4474d2['isIncorrect']);}['_makeModelFromTape'](_0x2ac613,_0x203dd2,_0x9be927){const _0x2b40b4=new _0x2a83e1(),_0x46fa20=[],_0x47ee83=new Map(),_0x20418d=this['editor']['model'],_0x32a3c7=_0x20418d['schema'],_0x50d384=[_0x2b40b4],_0x118b62={},_0x5c6182={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x56f01d=null;const _0x3a3015=[0x0];for(let _0x7d3abe=0x0;_0x7d3abe<_0x2ac613['length'];_0x7d3abe++)if('elementStart'===_0x2ac613[_0x7d3abe]['type']){_0x2ac613[_0x7d3abe]['previousPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015);const _0x2b9c92=new _0x209ccd(_0x2ac613[_0x7d3abe]['item']['name'],_0x2ac613[_0x7d3abe]['item']['getAttributes']());_0x50d384[0x0]['_appendChild'](_0x2b9c92),_0x3a3015['push'](0x0),_0x50d384['unshift'](_0x2b9c92),_0x2ac613[_0x7d3abe]['nextPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015);}else'elementEnd'===_0x2ac613[_0x7d3abe]['type']?(_0x50d384['shift'](),_0x2ac613[_0x7d3abe]['previousPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015),_0x3a3015['pop'](),_0x3a3015[_0x3a3015['length']-0x1]++,_0x2ac613[_0x7d3abe]['nextPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015)):(_0x2ac613[_0x7d3abe]['previousPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015),_0x56f01d?_0x56f01d['_data']+=_0x2ac613[_0x7d3abe]['item']['data']:_0x56f01d=new _0x5bf09c(_0x2ac613[_0x7d3abe]['item']['data'],_0x2ac613[_0x7d3abe]['item']['getAttributes']()),_0x2ac613[_0x7d3abe+0x1]&&'text'===_0x2ac613[_0x7d3abe+0x1]['type']&&_0x1c7207(_0x56f01d,_0x2ac613[_0x7d3abe+0x1]['item'])||(_0x50d384[0x0]['_appendChild'](_0x56f01d),_0x56f01d=null),_0x3a3015[_0x3a3015['length']-0x1]+=_0x2ac613[_0x7d3abe]['item']['offsetSize'],_0x2ac613[_0x7d3abe]['nextPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015));for(let _0x5d7d4a=0x0;_0x5d7d4a<_0x2ac613['length'];_0x5d7d4a++){const _0x1ea611=_0x2ac613[_0x5d7d4a]['previousPosition'],_0x51a5a4=_0x2ac613[_0x5d7d4a]['nextPosition'];for(const _0x3a2efa of _0x2ac613[_0x5d7d4a]['markersStart'])_0x47ee83['set'](_0x3a2efa,{'start':_0x1ea611,'end':null});_0x463ddf('isRemoveSuggestion',_0x5d7d4a,_0x1ea611,_0x51a5a4),_0x463ddf('isAddSuggestion',_0x5d7d4a,_0x1ea611,_0x51a5a4),_0x463ddf('isRemoved',_0x5d7d4a,_0x1ea611,_0x51a5a4),_0x463ddf('isAdded',_0x5d7d4a,_0x1ea611,_0x51a5a4);for(const _0x59570a of _0x2ac613[_0x5d7d4a]['markersEnd']){const _0x289a5e=_0x47ee83['get'](_0x59570a);_0x289a5e?_0x289a5e['end']=_0x51a5a4:_0x47ee83['set'](_0x59570a,{'start':_0x51a5a4,'end':_0x51a5a4});}}for(const [_0x345a5b,_0xe610c3]of _0x47ee83){const _0x8908ea=this['editor']['model']['createRange'](_0xe610c3['start'],_0xe610c3['end']);_0x2b40b4['markers']['set'](_0x345a5b,_0x8908ea);}return _0x46fa20['sort']((_0x2de9e6,_0xaef7e6)=>{const _0x4c6225=_0x2b40b4['markers']['get']('revision:'+_0x2de9e6['id']),_0x25d9b4=_0x2b40b4['markers']['get']('revision:'+_0xaef7e6['id']);return _0x4c6225['start']['isBefore'](_0x25d9b4['start'])?-0x1:_0x4c6225['start']['isAfter'](_0x25d9b4['start'])?0x1:_0x4c6225['end']['isBefore'](_0x25d9b4['end'])?-0x1:_0x4c6225['end']['isAfter'](_0x25d9b4['end'])?0x1:'add'===_0x2de9e6['type']?-0x1:0x1;}),{'root':_0x2b40b4,'changes':_0x46fa20};function _0x463ddf(_0x13fa3d,_0x2fe4e0,_0x1f7447,_0x428329){const _0x5d6791=!!_0x2ac613[_0x2fe4e0][_0x13fa3d],_0x12f3e6=_0x5d6791?_0x2ac613[_0x2fe4e0][_0x13fa3d]['userId']:null,_0x5bc396=_0x2fe4e0===_0x2ac613['length']-0x1,_0x31ff93=_0x5c6182[_0x13fa3d][0x0],_0x14782a=_0x32a3c7['isObject'](_0x2ac613[_0x2fe4e0]['item']);!_0x118b62[_0x13fa3d]&&_0x5d6791?_0x118b62[_0x13fa3d]={'start':_0x1f7447,'tapeItem':_0x2ac613[_0x2fe4e0],'userId':_0x12f3e6,'type':_0x13fa3d}:_0x118b62[_0x13fa3d]&&!_0x5d6791?(_0x118b62[_0x13fa3d]['end']=_0x1f7447,_0x1d1180(_0x118b62[_0x13fa3d]),_0x118b62[_0x13fa3d]=null):_0x118b62[_0x13fa3d]&&_0x5d6791&&_0x118b62[_0x13fa3d]['userId']!==_0x12f3e6&&(_0x118b62[_0x13fa3d]['end']=_0x1f7447,_0x31ff93&&_0x31ff93['userId']===_0x118b62[_0x13fa3d]['userId']||_0x1d1180(_0x118b62[_0x13fa3d]),_0x118b62[_0x13fa3d]={'start':_0x1f7447,'tapeItem':_0x2ac613[_0x2fe4e0],'userId':_0x12f3e6,'type':_0x13fa3d}),_0x118b62[_0x13fa3d]&&_0x14782a&&('elementStart'!==_0x2ac613[_0x2fe4e0]['type']||_0x31ff93&&_0x31ff93['userId']===_0x12f3e6||_0x5c6182[_0x13fa3d]['unshift']({'userId':_0x12f3e6,'object':_0x2ac613[_0x2fe4e0]['item'],'change':_0x118b62[_0x13fa3d]}),'elementEnd'===_0x2ac613[_0x2fe4e0]['type']&&_0x31ff93&&_0x31ff93['object']===_0x2ac613[_0x2fe4e0]['item']&&(_0x5c6182[_0x13fa3d]['shift'](),_0x118b62[_0x13fa3d]=_0x31ff93['change'])),_0x118b62[_0x13fa3d]&&_0x5bc396&&(_0x118b62[_0x13fa3d]['end']=_0x428329,_0x1d1180(_0x118b62[_0x13fa3d]),_0x118b62[_0x13fa3d]=null);}function _0x1d1180({start:_0x558f8b,end:_0x360a11,tapeItem:_0x36b241,userId:_0x343e92,type:_0x34ba69}){const _0x56a2ad=_0x36b241['item'],_0x4dbbe6=_0x20418d['schema']['isBlock'](_0x56a2ad)&&!_0x20418d['schema']['isLimit'](_0x56a2ad),_0x15d955=_0x558f8b['nodeAfter']==_0x360a11['parent']&&_0x360a11['isAtStart'];if(_0x4dbbe6&&_0x15d955)return;const _0x115f9d=_0x20418d['createRange'](_0x558f8b,_0x360a11),_0x410036=_0x203dd2['get'](_0x343e92),_0x11e484=new G({'author':_0x410036,'type':'isAdded'==_0x34ba69||'isAddSuggestion'==_0x34ba69?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x34ba69||'isRemoveSuggestion'==_0x34ba69},'createdAt':new Date(),'rootName':_0x9be927});_0x46fa20['push'](_0x11e484),_0x2b40b4['markers']['set']('revision:'+_0x11e484['id'],_0x115f9d);}function _0x1c7207(_0x5eb25a,_0x241088){const _0x6a0d2f=_0x5eb25a['getAttributes'](),_0x2c4867=_0x241088['getAttributes']();for(const _0x4ca37d of _0x6a0d2f){if(_0x4ca37d[0x1]!==_0x241088['getAttribute'](_0x4ca37d[0x0]))return!0x1;_0x2c4867['next']();}return _0x2c4867['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2eb7d2=>{const _0x43e12e=_0x2eb7d2['markerName']['split'](':')[0x1],_0x4fecf6=this['_getChangeFromId'](_0x43e12e);if(!_0x4fecf6)return null;const _0x1e741f='add'==_0x4fecf6['type']?'insertion':'deletion',_0x2ee981=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1e741f];return _0x4fecf6['data']['isSuggestion']&&_0x2ee981['push']('ck-suggestion-marker-'+_0x1e741f+'-new'),this['activeChange']==_0x4fecf6&&_0x2ee981['push']('ck-suggestion-marker--active'),{'classes':_0x2ee981,'attributes':{'data-change-id':_0x43e12e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x42f757=>{_0x42f757['on']('element:pre',(_0x1b218f,_0x215912,_0x15f1d6)=>{const _0x32bd2a=_0x215912['viewItem']['getChild'](0x0);if(!_0x32bd2a||!_0x32bd2a['is']('element','code'))return;if(!_0x15f1d6['consumable']['consume'](_0x32bd2a,{'attributes':['vid_start','vid_end']}))return;const _0x417bf8=_0x215912['modelRange']['start']['nodeAfter'];_0x15f1d6['writer']['setAttribute']('vid_start',_0x32bd2a['getAttribute']('vid_start'),_0x417bf8),_0x15f1d6['writer']['setAttribute']('vid_end',_0x32bd2a['getAttribute']('vid_end'),_0x417bf8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x9e1f82=>{_0x9e1f82['on']('element',(_0x9bc992,_0x3709fb,_0x5cc0f0)=>{if(!_0x5cc0f0['consumable']['consume'](_0x3709fb['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3709fb['modelRange']['isCollapsed'])return;const _0x4b3c00=_0x3709fb['modelRange']['start']['nodeAfter'];_0x4b3c00['hasAttribute']('vid_start')||_0x4b3c00['hasAttribute']('vid')||(_0x5cc0f0['writer']['setAttribute']('vid_start',_0x3709fb['viewItem']['getAttribute']('vid_start'),_0x4b3c00),_0x5cc0f0['writer']['setAttribute']('vid_end',_0x3709fb['viewItem']['getAttribute']('vid_end'),_0x4b3c00));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb11dde=>_0xb11dde['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x9e0023,[,_0x4b101c])=>{['vid_start','vid_end','vid']['includes'](_0x4b101c)&&(_0x9e0023['return']=!0x0,_0x9e0023['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x46d903=>{_0x46d903['on']('attribute:vid',(_0x5a869f,_0x196d29,_0x58ec07)=>{if('\x20'!=_0x196d29['item']['data']||_0x196d29['item']['parent']['maxOffset']>0x1)return;if(!_0x58ec07['consumable']['consume'](_0x196d29['item'],_0x5a869f['name']))return;const _0x28ba33=_0x58ec07['writer'],_0x149da6=_0x58ec07['mapper']['toViewRange'](_0x196d29['range']);_0x28ba33['wrap'](_0x149da6,_0x28ba33['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x597cad){const _0x4218d0=_0x597cad['plugins']['get']('RevisionViewer');return(_0x439217,_0x1cf43a,_0x3b7e9b)=>{const _0x1ba67e=_0x1cf43a['markerName']['split'](':')[0x1],_0x50e21f=_0x4218d0['_getChangeFromId'](_0x1ba67e);if(!_0x50e21f)return null;const _0x1985b5='add'==_0x50e21f['type']?'split':'merge';if(!_0x3b7e9b['consumable']['test'](_0x1cf43a['markerRange'],_0x439217['name']))return;const _0xf0e400=_0x1cf43a['markerRange']['getWalker'](),_0x4a048a=_0x1cf43a['markerRange']['start'],_0x19943b=_0x597cad['model']['schema'];let _0x3e200e=null,_0x14c279=null,_0x500633=!0x1,_0x1efa93=!0x1;for(const _0x528b61 of _0xf0e400){const _0x562d1e=_0x528b61['item'];_0x500633=_0x500633||_0x19943b['isContent'](_0x562d1e);const _0x1eeed3=_0x3b7e9b['mapper']['toViewElement'](_0x562d1e);if(_0x1eeed3&&_0x1eeed3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x528b61['type']&&(_0x19943b['isBlock'](_0x562d1e)&&!_0x19943b['isLimit'](_0x562d1e)&&(_0x562d1e['nextSibling']||_0x4a048a['isAtEnd']?_0x3e200e&&_0x3e200e['parent']==_0x562d1e||(_0x3e200e=_0x562d1e,_0x790b0e(_0x528b61['previousPosition']),_0x1efa93=!0x0):_0x14c279=_0x14c279||_0x528b61['previousPosition']));}function _0x790b0e(_0x1cc3c2){const _0x5d35ad=_0x3b7e9b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1985b5}),_0x172a11=_0x3b7e9b['mapper']['toViewPosition'](_0x1cc3c2);_0x50e21f['data']['isSuggestion']&&_0x3b7e9b['writer']['addClass']('ck-suggestion-marker-'+_0x1985b5+'-new',_0x5d35ad),_0x4218d0['activeChange']==_0x50e21f&&_0x3b7e9b['writer']['addClass']('ck-suggestion-marker--active',_0x5d35ad),_0x3b7e9b['writer']['insert'](_0x172a11,_0x5d35ad),_0x3b7e9b['mapper']['bindElementToMarker'](_0x5d35ad,_0x1cf43a['markerName']);}_0x500633||_0x1efa93||!_0x14c279||_0x790b0e(_0x14c279);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1b9001,_0x15f7d5,_0x524f65)=>{const _0x2c75dc=_0x524f65['mapper']['markerNameToElements'](_0x15f7d5['markerName']);if(_0x2c75dc){for(const _0x380fd1 of _0x2c75dc)(_0x380fd1['hasClass']('ck-suggestion-marker-split')||_0x380fd1['hasClass']('ck-suggestion-marker-merge'))&&(_0x524f65['mapper']['unbindElementFromMarkerName'](_0x380fd1,_0x15f7d5['markerName']),_0x524f65['writer']['remove'](_0x380fd1));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xa2483f,_0x52c6c9,_0x51ed08)=>{const _0xd11766=_0x52c6c9['markerName']['split'](':')[0x1],_0x2dbbba=this['_getChangeFromId'](_0xd11766);if(!_0x2dbbba)return null;const _0x31446d='add'==_0x2dbbba['type']?'split':'merge';if(_0x51ed08['consumable']['test'](_0x52c6c9['markerRange'],_0xa2483f['name']))for(const _0x24c065 of _0x52c6c9['markerRange']['getItems']()){if(!_0x24c065['is']('element','softBreak'))continue;const _0x1cd3f5=_0x51ed08['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31446d}),_0x19cedd=_0x51ed08['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x24c065));_0x2dbbba['data']['isSuggestion']&&_0x51ed08['writer']['addClass']('ck-suggestion-marker-'+_0x31446d+'-new',_0x1cd3f5),this['activeChange']==_0x2dbbba&&_0x51ed08['writer']['addClass']('ck-suggestion-marker--active',_0x1cd3f5),_0x51ed08['writer']['insert'](_0x19cedd,_0x1cd3f5),_0x51ed08['mapper']['bindElementToMarker'](_0x1cd3f5,_0x52c6c9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x576450=>{for(const _0x48c67f of this['editor']['model']['document']['getRootNames']()){const _0x5c9f1d=this['editor']['model']['document']['getRoot'](_0x48c67f),_0x3e0cf7=this['editor']['editing']['view']['document']['getRoot'](_0x48c67f);if(_0x3e0cf7){const _0x31d6c6=_0x5c9f1d['getAttribute']('revisionHistoryAttachChange');if(_0x576450['removeAttribute']('data-change-id',_0x3e0cf7),_0x576450['removeClass']('ck-revision-history-root-add',_0x3e0cf7),_0x576450['removeClass']('ck-revision-history-root-remove',_0x3e0cf7),_0x576450['removeClass']('ck-revision-history-root--active',_0x3e0cf7),_0x31d6c6){const _0x2c1b4d=this['_getChangeFromId'](_0x31d6c6);if(!_0x2c1b4d)return null;_0x576450['setAttribute']('data-change-id',_0x31d6c6,_0x3e0cf7),_0x576450['addClass']('ck-revision-history-root-'+_0x2c1b4d['type'],_0x3e0cf7),this['activeChange']==_0x2c1b4d&&_0x576450['addClass']('ck-revision-history-root--active',_0x3e0cf7);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x593181=>'revision-comment:'+_0x593181,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x84d999=>'revision-suggestion:'+_0x84d999,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x53514b=>({'name':'suggestion:'+_0x53514b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x14156c=>{const _0x4926aa=_0x14156c['markerName']['split'](':')[0x1];return'insertion'!=_0x4926aa&&'deletion'!=_0x4926aa?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4926aa]};}}),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',(_0x2f29e7,_0x148340,_0x188d07)=>{const _0x353e18=_0x188d07['mapper']['markerNameToElements'](_0x148340['markerName']);if(_0x353e18){for(const _0x37e1e9 of _0x353e18)_0x37e1e9['is']('uiElement')&&(_0x188d07['mapper']['unbindElementFromMarkerName'](_0x37e1e9,_0x148340['markerName']),_0x188d07['writer']['remove'](_0x37e1e9));}},{'priority':'high'});}['_getChangeFromId'](_0x56057){return this['_changeIdToChange']['get'](_0x56057);}['_getViewForChange'](_0x706c14){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x706c14),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3dc670,_0x5328c0,_0x31d958,_0x1d283a)=>{_0x1d283a&&this['_balloon']['remove'](_0x1d283a),_0x31d958&&(this['_balloon']['add']({'view':_0x31d958,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x118519=this['editor']['editing'],_0x23895d=this['_getChangeFromId'](_0x31d958['changeId']);let _0x527b49;if(_0x23895d['data']['isOnRoot']){const _0x85e9a4=_0x118519['view']['getDomRoot'](_0x23895d['rootName']);_0x527b49=Array['from'](_0x85e9a4['getClientRects']());}else{const _0x5aaa1e=this['editor']['model']['markers']['get']('revision:'+_0x31d958['changeId']);_0x527b49=Array['from'](_0x118519['mapper']['markerNameToElements'](_0x5aaa1e['name']))['map'](_0x548ef0=>_0x118519['view']['domConverter']['mapViewToDom'](_0x548ef0))['map'](_0x1dfe1c=>Array['from'](_0x1dfe1c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x527b49[0x0];return _0x527b49['find'](_0x4777f5=>_0x4777f5['top']-0x3<=this['_activeViewTarget']['y']&&_0x4777f5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4777f5['left']-0x3<=this['_activeViewTarget']['x']&&_0x4777f5['right']+0x3>=this['_activeViewTarget']['x'])||_0x527b49[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4f6ff1,_0x482b89,_0x3adec8,_0x555f6e)=>{this['activeView']=_0x3adec8?this['_getViewForChange'](_0x3adec8):null,this['editor']['model']['change'](()=>{const _0x3b79a2=this['editor']['editing'];_0x555f6e&&(_0x555f6e['data']['isOnRoot']?_0x3b79a2['view']['change'](_0xe47ced=>{_0xe47ced['removeClass']('ck-revision-history-root--active',_0x3b79a2['view']['document']['getRoot'](_0x555f6e['rootName']));}):_0x3b79a2['reconvertMarker']('revision:'+_0x555f6e['id'])),_0x3adec8&&(_0x3adec8['data']['isOnRoot']?_0x3b79a2['view']['change'](_0xa9cdc=>{_0xa9cdc['addClass']('ck-revision-history-root--active',_0x3b79a2['view']['document']['getRoot'](_0x3adec8['rootName']));}):_0x3b79a2['reconvertMarker']('revision:'+_0x3adec8['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x577982,_0x47ff13)=>{if(this['activeChange'])return;const _0x3cea05=this['_findChangeIdFromDomTarget'](_0x47ff13['target']),_0x5dab5d=this['_changeIdToChange']['get'](_0x3cea05);_0x5dab5d?(this['_activeViewTarget']={'x':_0x47ff13['domEvent']['x'],'y':_0x47ff13['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5dab5d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x37ccd6,_0x13307d)=>{const _0x3939b2=this['_findChangeIdFromDomTarget'](_0x13307d['target']),_0x540498=this['_changeIdToChange']['get'](_0x3939b2);_0x540498?(this['_activeViewTarget']={'x':_0x13307d['domEvent']['x'],'y':_0x13307d['domEvent']['y']},_0x540498===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x540498):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5a674e){do{const _0x4aa6ea=_0x5a674e['getAttribute']('data-change-id');if(_0x4aa6ea)return _0x4aa6ea;_0x5a674e=_0x5a674e['parent'];}while(_0x5a674e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4ff3eb=>{for(const _0x305077 of this['editor']['model']['markers'])_0x4ff3eb['removeMarker'](_0x305077);});}}function Q(_0x2fe23c,_0x2f21d1){return(_0x5cf3d2,_0x66ce03,_0x133e1b)=>{if(!_0x133e1b['consumable']['test'](_0x66ce03['markerRange'],_0x5cf3d2['name']))return;const _0x12c585=_0x66ce03['markerRange']['getWalker'](),_0x36c535=_0x66ce03['markerRange']['start'],_0x166793=_0x2fe23c['model']['schema'];let _0x2d9435=null,_0x4c25da=null,_0x1e9204=!0x1,_0x39be6e=!0x1;for(const _0x2d4340 of _0x12c585){const _0x3a61b3=_0x2d4340['item'];_0x1e9204=_0x1e9204||_0x166793['isContent'](_0x3a61b3);const _0x181d34=_0x133e1b['mapper']['toViewElement'](_0x3a61b3);if(_0x181d34&&_0x181d34['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d4340['type']&&(_0x166793['isBlock'](_0x3a61b3)&&!_0x166793['isLimit'](_0x3a61b3)&&(_0x3a61b3['nextSibling']||_0x36c535['isAtEnd']?_0x2d9435&&_0x2d9435['parent']==_0x3a61b3||(_0x2d9435=_0x3a61b3,_0x59f988(_0x2d4340['previousPosition']),_0x39be6e=!0x0):_0x4c25da=_0x4c25da||_0x2d4340['previousPosition']));}function _0x59f988(_0x8b6f4f){const _0x1192f5=_0x133e1b['mapper']['toViewPosition'](_0x8b6f4f),_0x4def08=_0x133e1b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2f21d1});_0x133e1b['writer']['insert'](_0x1192f5,_0x4def08),_0x133e1b['mapper']['bindElementToMarker'](_0x4def08,_0x66ce03['markerName']);}_0x1e9204||_0x39be6e||!_0x4c25da||_0x59f988(_0x4c25da);};}class nt extends _0x316f0a{constructor(_0x925f94){super(_0x925f94);const _0x58e1c3=_0x925f94['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x58e1c3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x58e1c3,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x483873=this['editor'],_0xad965a=_0x483873['plugins']['get'](l),_0x54913b=_0xad965a['isReady']?_0xad965a['diff']['newRevisionId']:null;_0x483873['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x54913b);}['refresh'](){const {isReady:_0x5095a4,isEnabled:_0x33c788,repository:_0x5205fe,diff:_0x4b16c5}=this['editor']['plugins']['get'](l),_0x224d5d=_0x4b16c5&&_0x5205fe['getLaterVisibleRevision'](_0x4b16c5['newRevisionId']);this['isEnabled']=_0x5095a4&&_0x33c788&&Boolean(_0x224d5d);}}class ot extends _0x316f0a{['_step'];constructor(_0x3e07d1,{direction:_0x3c1d90}){super(_0x3e07d1);const _0x25cec0=_0x3e07d1['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x3c1d90?0x1:-0x1,this['listenTo'](_0x25cec0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25cec0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x25cec0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x21268d=this['editor'],_0x4e6e77=_0x21268d['plugins']['get'](l),{isNavigationMode:_0x2b0bfa,currentChangeNumber:_0x164336}=_0x4e6e77;let _0x1c5bd2;if(_0x4e6e77['activeChange']=_0x2b0bfa?_0x4e6e77['diff']['changes']['get'](_0x164336+this['_step']):_0x4e6e77['diff']['changes']['first'],_0x4e6e77['activeChange']['data']['isOnRoot'])_0x1c5bd2=_0x21268d['editing']['view']['getDomRoot'](_0x4e6e77['activeChange']['rootName']);else{const _0x474117=_0x21268d['model']['markers']['get']('revision:'+_0x4e6e77['activeChange']['id']);_0x1c5bd2=_0x25f5d1(_0x21268d['editing'],_0x474117);}_0x205784({'target':_0x1c5bd2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x11ee75,currentChangeNumber:_0x10cd6,numberOfChanges:_0x358c03,isReady:_0x53d9f2,isEnabled:_0x46946d}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x46946d&&_0x53d9f2&&_0x358c03)&&(!_0x11ee75||(0x1===this['_step']?_0x10cd6<_0x358c03-0x1:_0x10cd6>0x0));}}class Ri extends _0x39ce7d{constructor(_0x2032d3){super(_0x2032d3);const _0x7cf3d4=this['bindTemplate'],_0x5546bb=new _0x1aaef3(_0x2032d3),_0x479ab6=new _0x1aaef3(_0x2032d3);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',(_0x11be19,_0x10320f)=>_0x11be19&&_0x10320f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4a4d4a,_0x4157d0,_0x2e78dc,_0x16cfdd)=>{if(!_0x4a4d4a)return R(_0x2032d3,'Loading...');if(!_0x2e78dc)return R(_0x2032d3,'No\x20changes');const _0x2b4c3a=R(_0x2032d3,'NUMBER_OF_CHANGES',_0x2e78dc);return _0x16cfdd?R(_0x2032d3,'X_OF_Y_CHANGES',[_0x4157d0+0x1,_0x2e78dc]):_0x2b4c3a;}),_0x5546bb['set']({'label':R(_0x2032d3,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5c7dca}),_0x479ab6['set']({'label':R(_0x2032d3,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x902f86}),_0x5546bb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x479ab6['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5546bb['on']('execute',()=>this['fire']('execute','backward')),_0x479ab6['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',_0x7cf3d4['if']('_isStatusLabelVisible','ck-hidden',_0x203600=>!_0x203600)]},'children':[{'text':_0x7cf3d4['to']('isNavigationMode',_0x397a32=>_0x397a32?R(_0x2032d3,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2032d3,'Total')+':\x20')}]},{'text':_0x7cf3d4['to']('_statusText')}]},new _0x50ead5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5546bb,_0x479ab6]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x261da3{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x491f61=this['editor']['editing']['view'];_0x491f61['change'](_0x480329=>{for(const _0x3fe1de of _0x491f61['document']['roots'])_0x480329['addClass'](ge,_0x3fe1de);});}['hide'](){const _0x2df96b=this['editor']['editing']['view'];_0x2df96b['change'](_0x4b7c93=>{for(const _0x19601e of _0x2df96b['document']['roots'])_0x4b7c93['removeClass'](ge,_0x19601e);});}}class u extends _0x261da3{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0xbf11c9=this['editor'],_0x58b4d3=_0xbf11c9['plugins']['get'](l),_0x34753b=_0xbf11c9['plugins']['get'](ji);_0xbf11c9['ui']['componentFactory']['add']('exitToEditing',_0x2ab4b5=>{const _0x5b1613=new _0x1aaef3(_0x2ab4b5);return _0x5b1613['set']({'label':R(_0x2ab4b5,'Back\x20to\x20editing'),'icon':_0x4fb0ee,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5b1613,'execute',()=>{_0xbf11c9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5b1613;}),_0xbf11c9['ui']['componentFactory']['add']('restoreRevision',_0x2220fc=>{const _0x44866c=new _0x1aaef3(_0x2220fc);return _0x44866c['set']({'label':R(_0x2220fc,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x44866c['bind']('isEnabled')['to'](_0xbf11c9['commands']['get']('restoreRevision')),this['listenTo'](_0x44866c,'execute',()=>_0xbf11c9['execute']('restoreRevision')),_0x44866c;}),_0xbf11c9['ui']['componentFactory']['add']('changesNavigation',_0x57f234=>{const _0x2dbaf9=new Ri(_0x57f234),_0x1a48c7=_0xbf11c9['commands']['get']('showPreviousChange'),_0x7aef7c=_0xbf11c9['commands']['get']('showNextChange');return _0x2dbaf9['bind']('isBackwardNavigationEnabled')['to'](_0x1a48c7,'isEnabled'),_0x2dbaf9['bind']('isForwardNavigationEnabled')['to'](_0x7aef7c,'isEnabled'),_0x2dbaf9['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x58b4d3),this['listenTo'](_0x2dbaf9,'execute',(_0x2b0d5a,_0x343467)=>{_0xbf11c9['execute']('forward'===_0x343467?'showNextChange':'showPreviousChange');}),_0x2dbaf9;}),_0x34753b['show'](),_0x58b4d3['on']('change:isReady',(_0x5083b2,_0x316876,_0x3a03e8)=>{_0x3a03e8?_0x34753b['hide']():_0x34753b['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x2a1079,_0x457401){super(_0x2a1079,_0x457401);const _0x50c0b9=this['bindTemplate'];this['set']({'label':R(_0x2a1079,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2a1079,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x50c0b9['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4cf4d0=this['fieldView']['element'];this['_tooltipString']=_0x4cf4d0['scrollWidth']>_0x4cf4d0['clientWidth']&&_0x4cf4d0['value']||'';}}class vi extends _0x39ce7d{constructor(_0x2c7ac6,_0x45be84,_0x23f169){super(_0x2c7ac6);const _0x33e045=new _0x1b1efb();_0x33e045['set']({'content':_0x18a77c,'viewBox':'0\x200\x2011\x2010'});const _0x28469b=['ck','ck-revision-history-sidebar__revision-author'];_0x23f169&&_0x28469b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x36aa2a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2c7ac6,_0x23f169?'Revision\x20creator':'Revision\x20author')},'children':[_0x33e045,_0x45be84['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x28469b},'children':_0x36aa2a});}}function mi(_0x450ed9,_0xa62d29){const _0x130e7c=_0x450ed9['bindTemplate'],_0x3b9b04=_0x450ed9['locale'],_0x35fc09=_0x1d6de6(_0x3b9b04);_0x35fc09['panelPosition']='sw';const _0x5ed7e4=function(_0x52414b,_0x360d6a){const _0x5991d6=function(_0x22c98f,_0x26d41a){const _0x5a4575=_0x22c98f['locale'],_0x397f69={'Compare\x20against\x20selected':R(_0x5a4575,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5a4575,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5a4575,'Restore\x20this\x20revision')};return _0x26d41a['map'](_0x3925a7=>{const _0x11129d=_0x397f69[_0x3925a7['name']];return _0x11129d&&_0x11129d!==_0x3925a7['name']&&(_0x3925a7['name']=_0x11129d),_0x3925a7;});}(_0x52414b,_0x360d6a),_0x53e161=new _0x33b3a9();for(const _0x3e511d of _0x5991d6){const _0x52d1e0={'type':'button','model':new to({'label':_0x3e511d['name'],'class':_0x3e511d['class'],'withText':!0x0,'role':'menuitem','_action':_0x3e511d['action']})};_0x52d1e0['model']['bind']('isEnabled')['to'](_0x52414b,'isActionsDropdownOpen',_0x689269=>'function'!=typeof _0x3e511d['isEnabled']||(!_0x689269||_0x3e511d['isEnabled'](_0x52414b))),_0x53e161['add'](_0x52d1e0);}return _0x53e161;}(_0x450ed9,_0xa62d29);return _0x450ed9['bind']('isActionsDropdownOpen')['to'](_0x35fc09,'isOpen'),_0x35fc09['buttonView']['set']({'label':R(_0x3b9b04,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xed22bc}),_0x35fc09['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x130e7c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x130e7c['to'](_0x29670b=>_0x29670b['stopPropagation']())}}),_0x35fc09['on']('execute',_0x1ba1ec=>{_0x450ed9['isReady']&&'function'==typeof _0x1ba1ec['source']['_action']&&_0x1ba1ec['source']['_action'](_0x450ed9);}),_0x429895(_0x35fc09,_0x5ed7e4,{'role':'menu'}),_0x35fc09['listenTo'](_0x450ed9,'change:isActionsDropdownOpen',(_0x5296c0,_0x32b9f6,_0x156bcc)=>{if(_0x156bcc)for(const _0x3a28d of _0x35fc09['listView']['items']){const _0x3df440=_0x3a28d['children']['first'],_0x2a9325=_0xa62d29['find'](_0x9cc42a=>_0x9cc42a['action']===_0x3df440['_action'])['isVisible'];_0x3a28d['isVisible']=void 0x0===_0x2a9325||_0x2a9325(_0x450ed9);}}),_0x35fc09;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x21bc25,uid as _0x272469,Collection as _0x2b4e5c,logWarning as _0x305b84,FocusTracker as _0x4ae125,KeystrokeHandler as _0x3ff30c,scrollViewportToShowTarget as _0x53e700,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x35e33c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x37d460,set as _0xe618b4,unset as _0x5571f6,isEqual as _0x140e1c}from'es-toolkit/compat';import{Plugin as _0x54fe5b,PendingActions as _0x4f13cd,Command as _0x53290d,ElementApiMixin as _0x1a4533,Editor as _0x2a51c5}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x36c169,getMarkerDomElement as _0x53ffc2,ConfirmMixin as _0xdaf19f,sanitizeEditorConfig as _0x4b66a4}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x1663d7,ViewAttributeElement as _0x2bad89,ViewEmptyElement as _0x36875,ViewRawElement as _0x1f06f6,ViewUIElement as _0x5271bd,ViewDocumentFragment as _0x168e88,ViewText as _0x2bfe94,ViewElement as _0x575ede,ModelElement as _0x5a3bc2,ModelRange as _0x20eafd,ModelPosition as _0x195f9a,ModelDocumentFragment as _0x5b40d3,ModelText as _0x40ee9b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x2e4e90,IconChevronUp as _0x3dc766,IconChevronDown as _0x1ce1a9,IconUndo as _0x3c4bc3,IconUser as _0x20843d,IconThreeVerticalDots as _0x3a89ee}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x4595bb,View as _0x5b9845,submitHandler as _0x93a3e8,LabeledFieldView as ti,createLabeledInputText as _0x413488,createDropdown as _0x3304c7,ListView as _0x9958e7,ListItemView as _0xcb5b06,ButtonView as _0x13d813,MenuBarMenuView as _0x19dba4,MenuBarMenuListView as _0x2f9bd0,MenuBarMenuListItemView as _0x2745dd,MenuBarMenuListItemButtonView as _0x1647af,ContextualBalloon as _0x18d87b,ToolbarSeparatorView as _0x4fb74f,IconView as _0x4bdfc1,addListToDropdown as _0x42fbf9,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x3ff921,StickyPanelView as _0x8b95bf,ToolbarView as _0x3cbc4f,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x577fd7}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x21bc25(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x577d1e){super(),this['id']=_0x577d1e['id']||_0x272469(),this['creator']=_0x577d1e['creator']||null,this['authors']=_0x577d1e['authors']||[],this['diffData']=_0x577d1e['diffData']||null,this['toVersion']=_0x577d1e['toVersion']||0x0,this['fromVersion']=_0x577d1e['fromVersion']||0x0,this['set']('name',_0x577d1e['name']||''),this['set']('createdAt',_0x577d1e['createdAt']||new Date()),this['set']('attributes',_0x577d1e['attributes']||{});}['setName'](_0x4e9a39){this['_update']({'name':_0x4e9a39});}['setAttribute'](_0x446022,_0x492ab6){const _0x2fc6f8=_0x37d460(this['attributes']);_0xe618b4(_0x2fc6f8,_0x446022,_0x492ab6),this['_update']({'attributes':_0x2fc6f8});}['removeAttribute'](_0x3302a7){const _0x2571d0=_0x37d460(this['attributes']);_0x5571f6(_0x2571d0,_0x3302a7),this['_update']({'attributes':_0x2571d0});}['_update'](_0x50ebca,_0x11f9d4=!0x1){let _0x219bca=!0x1;const _0x480b8e={'id':this['id']},_0x4ff7c8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1fe24a of _0x4ff7c8){const _0x38d315=_0x50ebca[_0x1fe24a];void 0x0!==_0x38d315&&_0x38d315!==this[_0x1fe24a]&&(this[_0x1fe24a]=_0x38d315,_0x480b8e[_0x1fe24a]=_0x38d315,_0x219bca=!0x0);}_0x219bca&&(_0x480b8e['authors']&&(_0x480b8e['authorsIds']=_0x480b8e['authors']['map'](_0x3f733a=>_0x3f733a['id']),delete _0x480b8e['authors']),this['fire']('_update',_0x480b8e,_0x11f9d4));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x24243a=>_0x24243a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x54fe5b{['_revisions'];static get['requires'](){return[_0x36c169];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3b58fb){super(_0x3b58fb),this['_revisions']=new _0x2b4e5c();}['afterInit'](){!async function(_0x42da77){const _0x5a6468=_0x1e75d7([0x31,0x48,0x35,0x66,0x71,0x7a,0x74,0x4b,0x67,0x49,0x61,0x69,0x5a,0x6d,0x45,0x55,0x72,0x4f,0x6e,0x79,0x4c,0x50,0x70,0x32,0x73,0x46,0x36,0x77,0x6a,0x78,0x68,0x6c,0x4d,0x6f,0x59,0x64,0x63,0x58,0x62,0x47,0x39,0x76,0x52,0x41,0x38,0x42,0x53,0x37,0x4e,0x75,0x6b,0x43,0x44,0x65,0x51,0x57,0x33,0x54,0x30,0x4a,0x34,0x56]),_0x4a89dc=0xeb829,_0x51a54b=0x5b94ed2,_0x399c91=0x5be2232^_0x51a54b,_0x3c0e5d=window[_0x1e75d7([0x44,0x61,0x74,0x65])][_0x1e75d7([0x6e,0x6f,0x77])](),_0xbedc4c=_0x42da77[_0x1e75d7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x28a7fb=new window[(_0x1e75d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x304a9f=>{_0xbedc4c[_0x1e75d7([0x6f,0x6e,0x63,0x65])](_0x1e75d7([0x72,0x65,0x61,0x64,0x79]),_0x304a9f);}),_0x55e1ca={[_0x1e75d7([0x6b,0x74,0x79])]:_0x1e75d7([0x45,0x43]),[_0x1e75d7([0x75,0x73,0x65])]:_0x1e75d7([0x73,0x69,0x67]),[_0x1e75d7([0x63,0x72,0x76])]:_0x1e75d7([0x50,0x2d,0x32,0x35,0x36]),[_0x1e75d7([0x78])]:_0x1e75d7([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]),[_0x1e75d7([0x79])]:_0x1e75d7([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]),[_0x1e75d7([0x61,0x6c,0x67])]:_0x1e75d7([0x45,0x53,0x32,0x35,0x36])},_0x453b95=_0xbedc4c[_0x1e75d7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e75d7([0x67,0x65,0x74])](_0x1e75d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1efe48(){let _0x2345e6,_0x1de958=null,_0x4edcf4=null;try{if(_0x453b95==_0x1e75d7([0x47,0x50,0x4c]))return _0x1e75d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2345e6=_0xd10e8d(),!_0x2345e6)return _0x1e75d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2345e6[_0x1e75d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4edcf4=_0x1d84cb(_0x2345e6[_0x1e75d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2345e6[_0x1e75d7([0x6a,0x74,0x69])])),await _0x2ff74c()?_0x1663b2()?_0x3cf135()?_0x1e75d7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xeef19b()?(_0x2345e6[_0x1e75d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e75d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1de958=_0x5ba061(_0x1e75d7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2345e6[_0x1e75d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e75d7([0x74,0x72,0x69,0x61,0x6c])&&(_0x1de958=_0x5ba061(_0x1e75d7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f9e2d()):_0x1e75d7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e75d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e75d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e75d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cf135(){const _0x3c1996=[_0x1e75d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e75d7([0x74,0x72,0x69,0x61,0x6c])][_0x1e75d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2345e6[_0x1e75d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c0e5d/0x3e8:0xe10*_0x399c91;return _0x2345e6[_0x1e75d7([0x65,0x78,0x70])]<_0x3c1996;}function _0x1663b2(){const _0x3533b0=_0x2345e6[_0x1e75d7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3533b0)return!0x1;if(_0x3533b0[_0x1e75d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e75d7([0x2a])))return!0x0;if(_0x3533b0[_0x1e75d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e75d7([0x52,0x48])))return!0x0;if(_0x3533b0[_0x1e75d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e75d7([0x52,0x52,0x48]))){if(_0x97ef4())return!0x0;if(_0x3d4f2e()||_0x4d4736())return!0x0;}return!0x1;}function _0xeef19b(){const _0xa0699c=_0x2345e6[_0x1e75d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa0699c||0x0==_0xa0699c[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55f3cb}=new URL(window[_0x1e75d7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa0699c[_0x1e75d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55f3cb))return!0x0;const _0x371dad=_0x55f3cb[_0x1e75d7([0x73,0x70,0x6c,0x69,0x74])](_0x1e75d7([0x2e]));return _0xa0699c[_0x1e75d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x233bb2=>_0x233bb2[_0x1e75d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e75d7([0x2a])))[_0x1e75d7([0x6d,0x61,0x70])](_0x34209b=>_0x34209b[_0x1e75d7([0x73,0x70,0x6c,0x69,0x74])](_0x1e75d7([0x2e])))[_0x1e75d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b586f=>_0x2b586f[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x371dad[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e75d7([0x6d,0x61,0x70])](_0x31f7d4=>Array(_0x371dad[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x31f7d4[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e75d7([0x66,0x69,0x6c,0x6c])](_0x31f7d4[0x0]===_0x1e75d7([0x2a])?_0x1e75d7([0x2a]):'')[_0x1e75d7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x31f7d4))[_0x1e75d7([0x73,0x6f,0x6d,0x65])](_0x2cfc4f=>_0x371dad[_0x1e75d7([0x65,0x76,0x65,0x72,0x79])]((_0x4d3f20,_0x159fb1)=>_0x2cfc4f[_0x159fb1]===_0x4d3f20||_0x2cfc4f[_0x159fb1]===_0x1e75d7([0x2a])));}function _0x1f9e2d(){return _0x1de958&&_0x4edcf4?new window[(_0x1e75d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1266ed,_0x48fd05)=>{_0x1de958[_0x1e75d7([0x74,0x68,0x65,0x6e])](_0x1266ed,_0x48fd05),_0x4edcf4[_0x1e75d7([0x74,0x68,0x65,0x6e])](_0x266ac0=>{_0x266ac0!=_0x1e75d7([0x56,0x61,0x6c,0x69,0x64])&&_0x1266ed(_0x266ac0);},_0x48fd05);}):_0x1de958||_0x4edcf4||_0x1e75d7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d84cb(_0x2bd1d2,_0x4dd3dd){return new window[(_0x1e75d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x235d17=>{if(_0x122739())return _0x235d17(_0x1e75d7([0x56,0x61,0x6c,0x69,0x64]));_0xf4e99e(),_0xbedc4c[_0x1e75d7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e75d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x53f42d=!0x1;const _0xb3a6bb=_0x272469();function _0x24e7ab(_0x393c8c){return!!_0x393c8c&&(typeof _0x393c8c===_0x1e75d7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x393c8c===_0x1e75d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x393c8c[_0x1e75d7([0x74,0x68,0x65,0x6e])]===_0x1e75d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x393c8c[_0x1e75d7([0x63,0x61,0x74,0x63,0x68])]===_0x1e75d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x273a71(_0x3524b2){_0x5acea6(_0x3524b2)[_0x1e75d7([0x74,0x68,0x65,0x6e])](_0x16b44c=>{if(!_0x16b44c||_0x16b44c[_0x1e75d7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e75d7([0x6f,0x6b]))return _0x1e75d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x341212(_0x198319(_0xb3a6bb+_0x4dd3dd))!=_0x16b44c[_0x1e75d7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e75d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e75d7([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e75d7([0x74,0x68,0x65,0x6e])](_0x5da82a=>(_0x3b4105(),_0x5da82a),()=>{const _0x33c3dc=_0x4948ce();return null==_0x33c3dc?(_0x3b4105(),_0x1e75d7([0x56,0x61,0x6c,0x69,0x64])):_0x1e75d7(_0x3c0e5d-_0x33c3dc>(0x21b5cad2^_0x51a54b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e75d7([0x74,0x68,0x65,0x6e])](_0x235d17)[_0x1e75d7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x235d17(_0x1e75d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24cd95=0x58fa052^_0x51a54b;function _0x3b4105(){const _0x27ee87=_0x1e75d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x341212(_0x198319(_0x2bd1d2)),_0x268b23=_0x54181f(_0x341212(window[_0x1e75d7([0x4d,0x61,0x74,0x68])][_0x1e75d7([0x63,0x65,0x69,0x6c])](_0x3c0e5d/_0x24cd95)));window[_0x1e75d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e75d7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27ee87,_0x268b23);}function _0x4948ce(){const _0x32c7c6=_0x1e75d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x341212(_0x198319(_0x2bd1d2)),_0x100852=window[_0x1e75d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e75d7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32c7c6);return _0x100852?window[_0x1e75d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54181f(_0x100852),0x10)*_0x24cd95:null;}function _0x5acea6(_0x236682){return new window[(_0x1e75d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2335ff,_0x311371)=>{_0x236682[_0x1e75d7([0x74,0x68,0x65,0x6e])](_0x2335ff,_0x311371),window[_0x1e75d7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x311371,0x5b89a12^_0x51a54b);});}}_0xbedc4c[_0x1e75d7([0x6f,0x6e])](_0x1e75d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a708b,_0x2adafa)=>{if(_0x2adafa[0x0]!=_0x2bd1d2)return _0x235d17(_0x1e75d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2adafa[0x1]={..._0x2adafa[0x1],[_0x1e75d7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb3a6bb};},{[_0x1e75d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e75d7([0x68,0x69,0x67,0x68])}),_0xbedc4c[_0x1e75d7([0x6f,0x6e])](_0x1e75d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58c17e=>{_0x24e7ab(_0x58c17e[_0x1e75d7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x53f42d=!0x0,_0x273a71(_0x58c17e[_0x1e75d7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e75d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e75d7([0x6c,0x6f,0x77])}),_0x28a7fb[_0x1e75d7([0x74,0x68,0x65,0x6e])](()=>{_0x53f42d||_0x235d17(_0x1e75d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x122739(){return _0xbedc4c[_0x1e75d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e75d7([0x76,0x69,0x65,0x77])][_0x1e75d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e75d7([0x61,0x75,0x74,0x6f]);}function _0xf4e99e(){_0xbedc4c[_0x1e75d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e75d7([0x76,0x69,0x65,0x77])][_0x1e75d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e75d7([0x61,0x75,0x74,0x6f]);}}function _0x5ba061(_0x3c13b3){const _0x18670c=[new window[(_0x1e75d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e87d9=>setTimeout(_0x4e87d9,0x5b0701e^_0x51a54b)),_0x28a7fb[_0x1e75d7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e75d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4230d3=>{const _0x44ac97=0x5b94ed5^_0x51a54b,_0x4b3bc6=_0x42da77[_0x1e75d7([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2dfe4a(){_0x4b3bc6[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x44ac97&&_0x4230d3();}_0x2dfe4a(),_0x4b3bc6[_0x1e75d7([0x6f,0x6e])](_0x1e75d7([0x61,0x64,0x64]),_0x2dfe4a);})),new window[(_0x1e75d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4458c9=>{function _0x47f166(){for(const _0x171867 in window)if(window[_0x1e75d7([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1e75d7([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x171867))&&window[_0x171867]==_0x4a89dc)return _0x4458c9();_0xbedc4c[_0x1e75d7([0x73,0x74,0x61,0x74,0x65])]!=_0x1e75d7([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1e75d7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47f166,0x5b95d5a^_0x51a54b);}_0x370c0c(_0x1e75d7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x47f166();})];return window[_0x1e75d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e75d7([0x72,0x61,0x63,0x65])](_0x18670c)[_0x1e75d7([0x74,0x68,0x65,0x6e])](()=>_0x3c13b3);}async function _0x5b5f27(){if(await _0x28a7fb,_0x370c0c(_0x1e75d7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3ab942=_0x42da77[_0x1e75d7([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x535e13=_0x42da77[_0x1e75d7([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])](_0x3ab942[_0x1e75d7([0x69,0x64])]),_0x62886f=_0x232cf6(_0x1e75d7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x62886f[_0x1e75d7([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3ab942['id'],_0x535e13?_0x535e13['id']:null,!0x0),_0x62886f[_0x1e75d7([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1e75d7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x62886f[_0x1e75d7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x62886f[_0x1e75d7([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5b234d,void(_0x62886f[_0x1e75d7([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5b234d);}if(_0x370c0c(_0x1e75d7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x34c3b6=_0x232cf6(_0x1e75d7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x34c3b6[_0x1e75d7([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1e75d7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x34c3b6[_0x1e75d7([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x34c3b6[_0x1e75d7([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5b234d,_0x34c3b6[_0x1e75d7([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5b234d;}_0xbedc4c[_0x1e75d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e75d7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b234d,_0xbedc4c[_0x1e75d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e75d7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b234d,_0xbedc4c[_0x1e75d7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e75d7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x97ef4(){return _0x370c0c(_0x1e75d7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x232cf6(_0x1e75d7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1e75d7([0x73,0x74,0x61,0x74,0x65])]==_0x1e75d7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3d4f2e(){return _0x370c0c(_0x1e75d7([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 _0x4d4736(){return _0x370c0c(_0x1e75d7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x20508c(_0x20b791){const _0x3e54f0=_0x944dfc();_0xbedc4c[_0x3e54f0]=_0x1e75d7([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])+_0x20b791,_0x20b791[_0x1e75d7([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1e75d7([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x944dfc()]=_0x4a89dc),_0x20b791!=_0x1e75d7([0x56,0x61,0x6c,0x69,0x64])&&_0x5b5f27();}function _0x944dfc(){const _0x1738c2=window[_0x1e75d7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e75d7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e75d7([0x6e,0x6f,0x77])]())[_0x1e75d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e75d7([0x2e]),'');let _0x1f922a=_0x1e75d7([0x48]);for(let _0x466aeb=0x0;_0x466aeb<_0x1738c2[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x466aeb+=0x2){let _0x2a76f8=window[_0x1e75d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1738c2[_0x1e75d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x466aeb,_0x466aeb+0x2));_0x2a76f8>=_0x5a6468[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a76f8-=_0x5a6468[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f922a+=_0x5a6468[_0x2a76f8];}return _0x1f922a;}function _0xd10e8d(){const _0xaa950b=_0x453b95[_0x1e75d7([0x73,0x70,0x6c,0x69,0x74])](_0x1e75d7([0x2e]));if(0x3!=_0xaa950b[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44ba68(_0xaa950b[0x1]);function _0x44ba68(_0x6c66e3){const _0x2f8289=_0x5b8035(_0x6c66e3);return _0x2f8289&&_0x4087f0()?_0x2f8289:null;function _0x4087f0(){const _0x1daa48=_0x2f8289[_0x1e75d7([0x6a,0x74,0x69])],_0x3913af=window[_0x1e75d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1daa48[_0x1e75d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1daa48[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2de5e8={..._0x2f8289,[_0x1e75d7([0x6a,0x74,0x69])]:_0x1daa48[_0x1e75d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1daa48[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2de5e8[_0x1e75d7([0x76,0x63])],_0x198319(_0x2de5e8)==_0x3913af;}}}async function _0x2ff74c(){let _0x15bf49=!0x0;try{const _0x51cd83=_0x453b95[_0x1e75d7([0x73,0x70,0x6c,0x69,0x74])](_0x1e75d7([0x2e])),[_0x1cc677,_0x5589cb,_0x3525e0]=_0x51cd83;return _0x5dae09(_0x1cc677),await _0x22d825(_0x1cc677,_0x5589cb,_0x3525e0),_0x15bf49;}catch{return!0x1;}function _0x5dae09(_0x2a1473){const _0x51bd1b=_0x5b8035(_0x2a1473);_0x51bd1b&&_0x51bd1b[_0x1e75d7([0x61,0x6c,0x67])]==_0x1e75d7([0x45,0x53,0x32,0x35,0x36])||(_0x15bf49=!0x1);}async function _0x22d825(_0x2b6c41,_0x2d0e75,_0x32ada0){const _0x3f4525=window[_0x1e75d7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e75d7([0x66,0x72,0x6f,0x6d])](_0x23d85(_0x32ada0),_0x2c0fa3=>_0x2c0fa3[_0x1e75d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b501a=new window[(_0x1e75d7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e75d7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b6c41+_0x1e75d7([0x2e])+_0x2d0e75),_0x3a9c78=window[_0x1e75d7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e75d7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a9c78)return;const _0x32d956=await _0x3a9c78[_0x1e75d7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e75d7([0x6a,0x77,0x6b]),_0x55e1ca,{[_0x1e75d7([0x6e,0x61,0x6d,0x65])]:_0x1e75d7([0x45,0x43,0x44,0x53,0x41]),[_0x1e75d7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e75d7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e75d7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a9c78[_0x1e75d7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e75d7([0x6e,0x61,0x6d,0x65])]:_0x1e75d7([0x45,0x43,0x44,0x53,0x41]),[_0x1e75d7([0x68,0x61,0x73,0x68])]:{[_0x1e75d7([0x6e,0x61,0x6d,0x65])]:_0x1e75d7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32d956,_0x3f4525,_0x1b501a)||(_0x15bf49=!0x1);}}function _0x5b8035(_0x615d82){return _0x615d82[_0x1e75d7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e75d7([0x65,0x79]))?JSON[_0x1e75d7([0x70,0x61,0x72,0x73,0x65])](_0x23d85(_0x615d82)):null;}function _0x23d85(_0x761bbe){return window[_0x1e75d7([0x61,0x74,0x6f,0x62])](_0x761bbe[_0x1e75d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e75d7([0x2b]))[_0x1e75d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e75d7([0x2f])));}function _0x198319(_0x478e72){let _0x4e733d=0x1505;function _0x3178cb(_0x241dac){for(let _0x10dc04=0x0;_0x10dc04<_0x241dac[_0x1e75d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10dc04++){const _0x5ccc86=_0x241dac[_0x1e75d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10dc04);_0x4e733d=(_0x4e733d<<0x5)+_0x4e733d+_0x5ccc86,_0x4e733d&=_0x4e733d;}}function _0x71a23c(_0xf51711){Array[_0x1e75d7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf51711)?_0xf51711[_0x1e75d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x71a23c):_0xf51711&&typeof _0xf51711==_0x1e75d7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e75d7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf51711)[_0x1e75d7([0x73,0x6f,0x72,0x74])]()[_0x1e75d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5099fd,_0x16d114])=>{_0x3178cb(_0x5099fd),_0x71a23c(_0x16d114);}):_0x3178cb(window[_0x1e75d7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf51711));}return _0x71a23c(_0x478e72),_0x4e733d>>>0x0;}function _0x341212(_0x4ad199){return _0x4ad199[_0x1e75d7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e75d7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e75d7([0x30]));}function _0x54181f(_0x245eb8){return _0x245eb8[_0x1e75d7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e75d7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e75d7([0x6a,0x6f,0x69,0x6e])]('');}function _0x370c0c(_0x14c6bf){return _0xbedc4c[_0x1e75d7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e75d7([0x68,0x61,0x73])](_0x14c6bf);}function _0x232cf6(_0x20fb87){return _0xbedc4c[_0x1e75d7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e75d7([0x67,0x65,0x74])](_0x20fb87);}function _0x5b234d(){}function _0x1e75d7(_0x1307c9){return _0x1307c9['map'](_0x1d6c48=>String['fromCharCode'](_0x1d6c48))['join']('');}_0x20508c(await _0x1efe48());}(this);}['createRevision'](_0x3d537d){const _0x15f24f=this['editor']['plugins']['get']('Users');return new I({'id':_0x3d537d['id'],'name':_0x3d537d['name'],'creator':_0x3d537d['creatorId']?_0x15f24f['getUser'](_0x3d537d['creatorId']):null,'diffData':_0x3d537d['diffData']||_0x3d537d['data'],'authors':_0x3d537d['authorsIds']['map'](_0x56754a=>_0x15f24f['getUser'](_0x56754a)),'createdAt':new Date(_0x3d537d['createdAt']),'attributes':_0x3d537d['attributes'],'fromVersion':_0x3d537d['fromVersion'],'toVersion':_0x3d537d['toVersion']});}['addRevision'](_0x18b45b,_0x487b9a=0x0){this['_revisions']['add'](_0x18b45b,_0x487b9a);}['getRevision'](_0x452cbe){return this['_revisions']['get'](_0x452cbe);}['getRevisions'](_0x46a6d3={'toJSON':!0x1}){const _0x330b1d=Array['from'](this['_revisions']);return _0x330b1d['reverse'](),_0x46a6d3['toJSON']?_0x330b1d['map'](_0x4f4ca8=>_0x4f4ca8['toJSON']()):_0x330b1d;}['getIndex'](_0x253ff1){return this['_revisions']['getIndex'](_0x253ff1);}['getEarlierVisibleRevision'](_0x276c9c){const [,_0x31e7ab]=this['getRevisionsIterator'](_0x276c9c,{'direction':'earlier'});return _0x31e7ab;}['getLaterVisibleRevision'](_0x2a96e7){const [,_0x17d48f]=this['getRevisionsIterator'](_0x2a96e7,{'direction':'later'});return _0x17d48f;}['getRevisionsInDiff'](_0x6d2c2e){const _0x14f6da=[];for(const _0x242ac1 of this['getRevisionsIterator'](_0x6d2c2e['newRevisionId']))if(_0x14f6da['push'](_0x242ac1),_0x242ac1['id']===_0x6d2c2e['oldRevisionId'])break;return _0x14f6da;}*['getRevisionsIterator'](_0x52fec9,{direction:_0x218c96='earlier',filter:_0x1dc08a=()=>!0x0}={}){const _0x1b62e5='earlier'===_0x218c96?0x1:-0x1;let _0x28f3dd=this['_revisions']['get'](_0x52fec9),_0x63538a=this['getIndex'](_0x28f3dd);for(yield _0x28f3dd;_0x28f3dd;){if(_0x63538a+=_0x1b62e5,_0x28f3dd=this['getRevision'](_0x63538a),!_0x28f3dd)return;_0x1dc08a(_0x28f3dd)&&(yield _0x28f3dd);}}}class $ extends _0x54fe5b{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1663d7,'c'],[_0x2bad89,'a'],[_0x36875,'e'],[_0x1f06f6,'r'],[_0x5271bd,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1663d7],['a',_0x2bad89],['e',_0x36875],['r',_0x1f06f6],['u',_0x5271bd]]);async['loadRevisionData'](_0x359dd1,_0x3e4d5e){if(_0x359dd1['diffData']||!_0x3e4d5e)return;const _0x17ff55=this['editor']['config']['get']('collaboration.channelId'),_0x20f8d3=await _0x3e4d5e['getRevision']({'channelId':_0x17ff55,'revisionId':_0x359dd1['id']});_0x359dd1['diffData']=_0x20f8d3['diffData'];}['getRevisionDocumentData'](_0x16961c){const _0x3c7fba={};for(const _0x462df2 in _0x16961c['diffData']){if(_0x16961c['diffData'][_0x462df2]['attachChange']&&!_0x16961c['diffData'][_0x462df2]['attachChange']['isAttached'])continue;const _0x13308f=this['_removeRevisionMarkers'](JSON['parse'](_0x16961c['diffData'][_0x462df2]['insertions'])),_0x366a27=this['editor']['editing']['view']['document'],_0x12fc97=new _0x168e88(_0x366a27,_0x13308f['map'](_0x287fa4=>this['_getViewFromDiffObj'](_0x287fa4,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3c7fba[_0x462df2]=this['editor']['data']['processor']['toData'](_0x12fc97),this['editor']['data']['processor']['useFillerType']('default');}return _0x3c7fba;}['getRevisionRootsAttributes'](_0x4f47dc){const _0x1e81c7={};for(const _0x3f1936 in _0x4f47dc['diffData'])_0x4f47dc['diffData'][_0x3f1936]['attachChange']&&!_0x4f47dc['diffData'][_0x3f1936]['attachChange']['isAttached']||(_0x1e81c7[_0x3f1936]=_0x4f47dc['diffData'][_0x3f1936]['attributesAfter']||{});return _0x1e81c7;}['_getTypeCharForViewElement'](_0x7f166d){return this['_viewClassToTypeChar']['get'](_0x7f166d['constructor']);}['_getViewFromDiffObj'](_0x5ed2d5,_0x2520ea){const _0x505ccf=this['editor']['editing']['view']['document'];if('string'==typeof _0x5ed2d5)return new _0x2bfe94(_0x505ccf,_0x5ed2d5);{let _0x3963c8,_0x3e1a0a;_0x3e1a0a='u'==_0x5ed2d5['type']||'r'==_0x5ed2d5['type']?[]:_0x5ed2d5['children']['map'](_0x4f12e7=>this['_getViewFromDiffObj'](_0x4f12e7,_0x2520ea));const _0x10acf1=this['_typeCharToViewClass']['get'](_0x5ed2d5['type'])||_0x575ede,_0x593c59=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3963c8=new _0x10acf1(_0x505ccf,_0x5ed2d5['name'],_0x5ed2d5['attributes'],_0x3e1a0a),'u'==_0x5ed2d5['type']&&_0x5ed2d5['children'][0x0]){const _0x41c64e=_0x5ed2d5['children'][0x0];if(_0x3963c8['render']=function(_0x244d79){const _0x3ad897=_0x244d79['createElement']('div');return _0x3ad897['innerHTML']=_0x41c64e,_0x3ad897['childNodes'][0x0];},_0x2520ea){const _0x30e28a=new _0x168e88(_0x505ccf);_0x30e28a['_appendChild'](_0x3963c8);const _0x1d1b66=Array['from'](_0x593c59['viewChildrenToDom'](_0x30e28a,{'bind':!0x1})),_0x5b9041=_0x593c59['domDocument']['createElement']('div');_0x5b9041['append'](..._0x1d1b66),_0x3963c8=Array['from'](_0x593c59['domChildrenToView'](_0x5b9041))[0x0];}}else{if('r'==_0x5ed2d5['type']&&_0x5ed2d5['children'][0x0]){const _0x551e44=_0x5ed2d5['children'][0x0];if(_0x3963c8['render']=function(_0x5a07bf){_0x5a07bf['innerHTML']=_0x551e44;},_0x2520ea){const _0x27b015=new _0x168e88(_0x505ccf);_0x27b015['_appendChild'](_0x3963c8);const _0x37f2b2=Array['from'](_0x593c59['viewChildrenToDom'](_0x27b015,{'bind':!0x1})),_0x1fcb59=_0x593c59['domDocument']['createElement']('div');_0x1fcb59['append'](..._0x37f2b2);const _0x498f64=Array['from'](_0x593c59['domChildrenToView'](_0x1fcb59));_0x498f64['length']>0x1?_0x3963c8['_appendChild'](_0x498f64):_0x3963c8=_0x498f64[0x0];}}}if(_0x5ed2d5['customProperties']){for(const [_0x39ae89,_0x503a05]of _0x5ed2d5['customProperties'])_0x3963c8['_setCustomProperty'](_0x39ae89,_0x503a05);}const _0xb93738=void 0x0===_0x5ed2d5['fillerOffset']?null:_0x5ed2d5['fillerOffset'];return null!==_0xb93738&&(_0x3963c8['getFillerOffset']=()=>_0xb93738),_0x3963c8;}}['_makeModelFromViewString'](_0xa40875){const _0x11c016=JSON['parse'](_0xa40875),_0x523d27=this['editor']['editing']['view']['document'],_0x229553=new _0x168e88(_0x523d27,_0x11c016['map'](_0x4144a9=>this['_getViewFromDiffObj'](_0x4144a9,!0x0)));return this['editor']['data']['toModel'](_0x229553);}['_removeRevisionMarkers'](_0x3d3b27){return(_0x3d3b27=_0x3d3b27['filter'](_0xd03024=>!_0xd03024['name']||'revision-start'!==_0xd03024['name']&&'revision-end'!==_0xd03024['name']))['forEach'](_0x36912c=>{'string'!=typeof _0x36912c&&(_0x36912c['children']=this['_removeRevisionMarkers'](_0x36912c['children']),_0x36912c['attributes']=_0x36912c['attributes']['filter'](_0xfe3c9a=>!_0xfe3c9a[0x0]['startsWith']('data-revision-')));}),_0x3d3b27;}}function R(_0x242181,_0xb13752,_0x35fc05){const t=_0x242181['t'];switch(_0xb13752){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'},_0x35fc05);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x35fc05);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 _0x54fe5b{['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[_0x36c169,S,$,_0x4f13cd];}constructor(_0x1be24f){super(_0x1be24f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xbffdc2=_0x272469();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xbffdc2},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 _0x264bac=this['repository']['getRevision'](0x0),_0x5b6b9f=_0x264bac&&null===_0x264bac['creator']?_0x264bac:null;if(this['_continueCurrentRevision']=!!_0x5b6b9f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5e1f47=this['_source']['getCurrentRevisionId'](),_0x2128c7=this['repository']['getRevision'](_0x5e1f47);if(_0x2128c7)this['_startingVersion']=_0x2128c7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x7311f6=this['_source']['history']['_operations']['find'](_0x12bb2d=>!_0x12bb2d['_isInit']),_0x2d08ad=_0x7311f6?_0x7311f6['baseVersion']:this['_source']['history']['version'];_0x264bac?(_0x264bac['toVersion']<_0x2d08ad&&_0x264bac['_update']({'toVersion':_0x2d08ad}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5b6b9f['id'],this['_startingVersion']=_0x5b6b9f['fromVersion']):(this['_startingVersion']=_0x264bac['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2d08ad,this['_continueCurrentRevision']=!0x1);}}else _0x5b6b9f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5b6b9f['toVersion'],this['editor']['model']['document']['history']['version']),_0x5b6b9f['fromVersion']===_0x5b6b9f['toVersion']?(0x0!==_0x5b6b9f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b6b9f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b6b9f['id'],this['_startingVersion']=_0x5b6b9f['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',_0x46ef=>!_0x46ef),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x45d774=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x166857;for(const _0x2f8c5f in _0x45d774){const _0x49ba4e=_0x2f8c5f,_0x3271df=_0x45d774[_0x49ba4e];if('revisionHistoryLicenseKeyValid'==_0x3271df||'revisionHistoryLicenseKeyInvalid'==_0x3271df||'revisionHistoryLicenseKeyExpired'==_0x3271df||'revisionHistoryLicenseKeyDomainLimit'==_0x3271df||'revisionHistoryLicenseKeyNotAllowed'==_0x3271df||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3271df||'revisionHistoryLicenseKeyTrialLimit'==_0x3271df||'revisionHistoryLicenseKeyUsageLimit'==_0x3271df){delete _0x45d774[_0x49ba4e],_0x166857=_0x3271df,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x166857&&_0x45d774['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x166857&&_0x45d774['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x166857&&_0x45d774['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x166857&&_0x45d774['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x166857&&_0x45d774['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x166857&&_0x45d774['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x166857&&_0x45d774['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x13cdc3=this['repository']['getRevision'](0x0),_0x14a51f=await this['getRevisionDocumentData'](_0x13cdc3),_0x901d75=await this['getRevisionRootsAttributes'](_0x13cdc3);this['_replaceEditorDataWithRevisionData'](_0x14a51f,_0x901d75);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x8d0de0){this['_source']=_0x8d0de0;}async['update'](){const _0x5da65c=await this['_source']['getLatestVersion']();if(_0x5da65c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x221fb0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5da65c});_0x221fb0['authors']=_0x221fb0['authorsIds']['map'](_0x2cf430=>this['editor']['plugins']['get']('Users')['getUser'](_0x2cf430)),this['currentRevision']['_update'](_0x221fb0);}}async['saveRevision'](_0x7c34d4={},_0xe603f9=null){const _0xc1ae6d=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xe603f9>this['currentRevision']['toVersion']&&(_0xe603f9=null),null===_0xe603f9&&(_0xe603f9=await this['_source']['getLatestVersion']());const _0x41f88a=this['_getFromVersion'](_0xe603f9),_0x25cb0f=this['buildRevisionData']({'from':_0x41f88a,'to':_0xe603f9});if(this['currentRevision']['toVersion']<_0xe603f9){const _0x11a926=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xe603f9,'to':_0xe603f9});_0x11a926['authors']=[],_0x11a926['authorsIds']=[],_0x11a926['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x11a926,!0x0),delete _0x11a926['authors'],_0xc1ae6d['push'](_0x11a926);}_0x7c34d4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x7c34d4['name']=_0x7c34d4['name']||null,_0x7c34d4['id']=_0x7c34d4['id']||_0x272469(),_0x7c34d4={..._0x7c34d4,..._0x25cb0f};const _0x26af34=this['addRevisionData'](_0x7c34d4);_0xc1ae6d['push'](_0x7c34d4);const _0x108299=this['repository']['getIndex'](_0x26af34);if(0x0!==_0x108299){const _0xc629a7=this['repository']['getRevision'](_0x108299-0x1);if(_0xc629a7['fromVersion']!==_0xe603f9){const _0x2afd17=this['_revisionDataBuilder']['getData'](_0xe603f9,_0xc629a7['toVersion']),_0x1ae6ea={'id':_0xc629a7['id'],'diffData':_0x2afd17['diffData'],'authorsIds':_0x2afd17['authorsIds'],'authors':_0x2afd17['authorsIds']['map'](_0x585090=>this['editor']['plugins']['get']('Users')['getUser'](_0x585090)),'fromVersion':_0xe603f9};_0xc629a7===this['currentRevision']&&(_0x1ae6ea['createdAt']=new Date(_0x7c34d4['createdAt']['getTime']()+0xa)),_0xc629a7['_update'](_0x1ae6ea,!0x0),delete _0x1ae6ea['authors'],_0xc1ae6d['push'](_0x1ae6ea);}}if(this['adapter']){for(const _0x5bd7f6 of _0xc1ae6d)this['_bufferUpdate'](_0x5bd7f6['id'],_0x5bd7f6,!0x0);this['sendBufferedUpdates']();}return _0x26af34;}['addRevisionData'](_0x136fa9){const _0x2ac9a6=this['repository']['createRevision'](_0x136fa9);return this['adapter']&&_0x2ac9a6['on']('_update',(_0x156f54,_0xa6eb07,_0x3d841a)=>{_0x3d841a||(this['_bufferUpdate'](_0xa6eb07['id'],_0xa6eb07,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2ac9a6,this['_findInsertionIndex'](_0x2ac9a6)),_0x2ac9a6;}async['getRevisionDocumentData'](_0x8b1068){return await this['_utils']['loadRevisionData'](_0x8b1068,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x8b1068);}async['getRevisionRootsAttributes'](_0xd7cce7){return await this['_utils']['loadRevisionData'](_0xd7cce7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xd7cce7);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x527d36=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x19a71e=0x0;_0x19a71e<_0x527d36['length'];_0x19a71e++){const _0x48b1ac=_0x527d36[_0x19a71e];let _0x30df10=!0x1;for(const _0x188225 of Object['keys'](_0x48b1ac))void 0x0===_0x48b1ac[_0x188225]?delete _0x48b1ac[_0x188225]:'id'!==_0x188225&&(_0x30df10=!0x0);_0x30df10||(_0x527d36[_0x19a71e]=null);}if(_0x527d36=_0x527d36['filter'](_0x21b6dc=>null!==_0x21b6dc),!_0x527d36['length'])return;for(let _0x2f5d47=0x0;_0x2f5d47<_0x527d36['length'];_0x2f5d47++){const _0x278a0b=_0x527d36[_0x2f5d47];void 0x0!==_0x278a0b['fromVersion']&&void 0x0===_0x278a0b['toVersion']&&(_0x278a0b['toVersion']=this['repository']['getRevision'](_0x278a0b['id'])['toVersion']),void 0x0!==_0x278a0b['toVersion']&&void 0x0===_0x278a0b['fromVersion']&&(_0x278a0b['fromVersion']=this['repository']['getRevision'](_0x278a0b['id'])['fromVersion']);}const _0xea612e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x527d36,_0xea612e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xbd626c=>{if(_0xbd626c){for(const _0x55f0a8 of _0xbd626c)this['setRevisionData']({'id':_0x55f0a8['id'],'createdAt':_0x55f0a8['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x58274b=null,from:_0x2a8812=null,to:_0x183291=null}){_0x2a8812=null!==_0x2a8812?_0x2a8812:_0x58274b['fromVersion'],_0x183291=null!==_0x183291?_0x183291:_0x58274b['toVersion'];const _0x339f33=this['_revisionDataBuilder']['getData'](_0x2a8812,_0x183291),_0x4fc455={'diffData':_0x339f33['diffData'],'authorsIds':_0x339f33['authorsIds'],'fromVersion':_0x2a8812,'toVersion':_0x183291};if(!_0x58274b||_0x183291!==_0x58274b['toVersion']){const _0x8998a9=_0x183291-0x1,_0x1d52ee=this['_source']['history']['getOperation'](_0x8998a9);_0x4fc455['createdAt']=_0x1d52ee&&_0x1d52ee['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2a8812===this['_loadedStateData']['fromVersion']){for(const _0x5393ce of this['_loadedStateData']['authors'])_0x4fc455['authorsIds']['includes'](_0x5393ce['id'])||_0x4fc455['authorsIds']['push'](_0x5393ce['id']);}return _0x4fc455;}['_bufferUpdate'](_0x7f786a,_0x45fd43,_0x544b49){if(this['_bufferedUpdates']['has'](_0x7f786a)){const _0x480e4c=this['_bufferedUpdates']['get'](_0x7f786a);_0x45fd43=_0x544b49?{..._0x480e4c,..._0x45fd43}:{..._0x45fd43,..._0x480e4c};}this['_bufferedUpdates']['set'](_0x7f786a,_0x45fd43);}['setRevisionData'](_0x5b2835){const _0x5a56c0=this['repository']['getRevision'](_0x5b2835['id']);if(_0x5b2835['createdAt']&&(_0x5b2835['createdAt']=new Date(_0x5b2835['createdAt'])),_0x5b2835['authorsIds']){const _0x287ad0=this['editor']['plugins']['get']('Users');_0x5b2835['authors']=_0x5b2835['authorsIds']['map'](_0x259429=>_0x287ad0['getUser'](_0x259429));}_0x5a56c0['_update'](_0x5b2835,!0x0);}['_createInitialRevision'](_0x510d4c){const _0x19fa07=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x19fa07)this['_initialRevisionId']=_0x19fa07['id'];else{const _0x1ba886=!this['editor']['model']['document']['roots']['find'](_0x4230c2=>this['editor']['model']['hasContent'](_0x4230c2)),_0x35c906=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ec76f=R(this['editor']['locale'],_0x1ba886?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x510d4c,'to':_0x510d4c,'id':this['_initialRevisionId'],'name':_0x1ec76f,'creatorId':_0x35c906});}}['_createCurrentRevision'](_0x15ad14){const _0x3a4f30=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3a4f30),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x15ad14,'to':_0x15ad14,'id':_0x3a4f30,'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'](_0x59ba1c,_0xfcfd87){let _0x2f26d3=this['editor']['config']['get']('initialData'),_0x47b9ba=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2f26d3){_0x2f26d3={};for(const _0x22ab82 of this['editor']['model']['document']['getRootNames']())_0x2f26d3[_0x22ab82]='';}if('string'==typeof _0x2f26d3&&(_0x2f26d3={'main':_0x2f26d3}),void 0x0===_0x47b9ba){_0x47b9ba={};for(const _0x158cb4 of this['editor']['model']['document']['getRootNames']())_0x47b9ba[_0x158cb4]={};}let _0x1e55ef=!0x1;const _0x2d45b8=Object['keys'](_0x2f26d3),_0x41c15a=Object['keys'](_0x59ba1c);for(const _0x3a02e7 of _0x2d45b8){if(_0x2f26d3[_0x3a02e7]!==_0x59ba1c[_0x3a02e7]&&''!==_0x2f26d3[_0x3a02e7]['trim']()){_0x1e55ef=!0x0;break;}if(!_0x140e1c(_0x47b9ba[_0x3a02e7],_0xfcfd87[_0x3a02e7])&&Object['keys'](_0x47b9ba[_0x3a02e7])['length']>0x0){_0x1e55ef=!0x0;break;}}_0x1e55ef||(_0x1e55ef=_0x41c15a['some'](_0x1b6869=>!this['editor']['model']['document']['getRoot'](_0x1b6869))),_0x1e55ef&&_0x305b84('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2f26d3,'editorRootsAttributes':_0x47b9ba,'revisionData':_0x59ba1c,'revisionRootsAttributes':_0xfcfd87}),this['editor']['config']['set']('initialData',_0x59ba1c),this['editor']['config']['set']('rootsAttributes',_0xfcfd87);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1ef376=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1ef376['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x43c2ef){const _0x4854c1=this['repository']['getRevisions']();_0x4854c1['reverse']();let _0x40f2b5=0x0;for(;_0x40f2b5<_0x4854c1['length'];){const _0x6a16ab=_0x4854c1[_0x40f2b5];if(_0x6a16ab===this['currentRevision']){_0x40f2b5++;continue;}if(_0x6a16ab['id']===this['_initialRevisionId'])break;const _0x5f3a9e=_0x43c2ef['toVersion']-_0x6a16ab['toVersion']||_0x43c2ef['fromVersion']-_0x6a16ab['fromVersion'];if(_0x5f3a9e>0x0)break;if(_0x5f3a9e<0x0)_0x40f2b5++;else{if(!_0x43c2ef['creator']&&_0x6a16ab['creator'])break;if(_0x6a16ab['creator']||!_0x43c2ef['creator']){if(_0x43c2ef['createdAt']>_0x6a16ab['createdAt'])break;_0x40f2b5++;}else _0x40f2b5++;}}return _0x40f2b5;}['_getFromVersion'](_0xebaac1){const _0x2ed701=this['repository']['getRevisions']();_0x2ed701['reverse'](),_0x2ed701['shift']();const _0x3b85b9=_0x2ed701['find'](_0xb6bd20=>_0xb6bd20['toVersion']<=_0xebaac1)['toVersion'];return _0x3b85b9<this['_startingVersion']?this['_startingVersion']:_0x3b85b9;}['_makeRevision']({name:_0x33d592,from:_0x1a0c06,to:_0x53cd75,creatorId:_0x1ef32f,id:_0x22f11a}){const _0x44a431=this['buildRevisionData']({'from':_0x1a0c06,'to':_0x53cd75});_0x44a431['name']=_0x33d592,_0x44a431['creatorId']=_0x1ef32f,_0x44a431['id']=_0x22f11a;const _0xe5088a=this['addRevisionData'](_0x44a431);return this['adapter']&&this['_bufferUpdate'](_0x44a431['id'],_0x44a431,!0x0),_0xe5088a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x198c4d){this['editor']=_0x198c4d,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'](_0x1399d3){this['source']=_0x1399d3;const _0x247cb5=new Map(),_0x1ad46c=new Map(),_0x2958c9=this['editor']['model']['document']['roots']['map'](_0x2dcc38=>_0x2dcc38['rootName']);for(const _0x2991c1 of _0x2958c9){const _0x2f6b07=this['editor']['model']['document']['getRoot'](_0x2991c1),_0x468d29=x(_0x2f6b07);_0x247cb5['set'](_0x2991c1,_0x468d29),_0x1ad46c['set'](_0x2991c1,Object['fromEntries'](_0x2f6b07['getAttributes']()));}const _0x1a5556=Array['from'](this['editor']['model']['markers'])['map'](_0x34b9fb=>[_0x34b9fb['name'],_0x34b9fb['getRange']()]),_0x46ec61=this['source']['version'];this['_saveMetaData'](_0x46ec61,_0x247cb5,_0x1a5556,_0x1ad46c),this['_startingRevisionId']=this['_revisionId'];const _0x1f5662=new Map(),_0x1b730e=new Map();for(const _0x20c736 of _0x2958c9){const _0x7caa4a=N(_0x20c736);_0x1f5662['set'](_0x20c736,_0x7caa4a),_0x1b730e['set'](_0x20c736,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1f5662,[],_0x1b730e);}['getData'](_0x2aa37d,_0x4c855d){if(this['_lastFrom']===_0x2aa37d&&this['_lastTo']<=_0x4c855d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4c855d,!0x0);else{if(!this['_savedMetaData']['has'](_0x2aa37d)){const _0x411adb=this['_getPreviousFrom'](_0x2aa37d);this['_calculateMetaData'](_0x411adb,_0x2aa37d,!0x1);}this['_calculateMetaData'](_0x2aa37d,_0x4c855d,!0x0);}return this['_lastFrom']=_0x2aa37d,this['_lastTo']=_0x4c855d,this['_getState']();}['loadState'](_0x394797){const _0x140ee0=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x394797['fromVersion'],this['_lastTo']=_0x394797['toVersion'];for(const _0x5e01a5 in _0x394797['diffData']){const _0x43e954=_0x394797['diffData'][_0x5e01a5]['attachChange'],_0x9c4e5a=_0x37d460(_0x394797['diffData'][_0x5e01a5]['attributesBefore'])||{},_0xc04bf8=_0x140ee0['_makeModelFromViewString'](_0x394797['diffData'][_0x5e01a5]['deletions']);_0xc04bf8['rootName']=_0x5e01a5,_0xc04bf8['_isAttached']=!_0x43e954||!_0x43e954['isAttached'],_0xc04bf8['isAttached']=()=>_0xc04bf8['_isAttached'],this['_baseRoots']['set'](_0x5e01a5,_0xc04bf8),this['_baseRootsAttributes']['set'](_0x5e01a5,_0x9c4e5a),_0x43e954&&this['_touchedRoots']['set'](_0x5e01a5,_0x43e954);const _0x12f179=this['_makeIdsRoot'](_0xc04bf8);this['_baseIdsRoots']['set'](_0x5e01a5,_0x12f179);for(const [_0x440d9a,_0x2e0783]of _0xc04bf8['markers']){if(!_0x440d9a['startsWith']('revision:'))continue;const _0x20ccd9=_0x440d9a['split'](':')[0x2];for(const _0x47611d of _0x2e0783['getWalker']({'singleCharacters':!0x0})){const _0x198849=this['_getVidAttributeName'](_0x47611d),_0x19e8b6='elementEnd'==_0x47611d['type']?_0x47611d['previousPosition']['path']['slice'](0x0,-0x1):_0x47611d['previousPosition']['path'],_0x481ac6=_0x12f179['getNodeByPath'](_0x19e8b6)['getAttribute'](_0x198849);this['_touched']['set'](_0x481ac6,{'userId':_0x20ccd9});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4f287a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4cb886=>!this['_touched']['has'](_0x4cb886));let _0x32c357=0x0;const _0x257885=new Map();for(const _0x4f1703 in _0x394797['diffData']){const _0x5ee82d=_0x394797['diffData'][_0x4f1703]['attachChange'],_0x25c132=_0x37d460(_0x394797['diffData'][_0x4f1703]['attributesAfter'])||{},_0x18ad1c=_0x140ee0['_makeModelFromViewString'](_0x394797['diffData'][_0x4f1703]['insertions']);_0x18ad1c['rootName']=_0x4f1703,_0x18ad1c['_isAttached']=!_0x5ee82d||_0x5ee82d['isAttached'],_0x18ad1c['isAttached']=()=>_0x18ad1c['_isAttached'],this['_diffRoots']['set'](_0x4f1703,_0x18ad1c),this['_diffRootsAttributes']['set'](_0x4f1703,_0x25c132);const _0x37257b=this['_makeIdsRoot'](_0x18ad1c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4f1703,_0x37257b),_0x257885['set'](_0x4f1703,_0x18ad1c['isAttached']()?_0x25c132:{});for(const [_0x4719e2,_0x4e8c8b]of _0x18ad1c['markers']){if(!_0x4719e2['startsWith']('revision:'))continue;const _0x329a3e=_0x4719e2['split'](':')[0x2];for(const _0x41cd65 of _0x4e8c8b['getWalker']({'singleCharacters':!0x0})){const _0x30f877=this['_getVidAttributeName'](_0x41cd65),_0x57b209=this['_revisionId']++,_0x53fef9='elementEnd'==_0x41cd65['type']?_0x41cd65['previousPosition']['path']['slice'](0x0,-0x1):_0x41cd65['previousPosition']['path'];_0x37257b['getNodeByPath'](_0x53fef9)['_setAttribute'](_0x30f877,_0x57b209),this['_touched']['set'](_0x57b209,{'userId':_0x329a3e});}}for(const _0x201b73 of this['editor']['model']['createRangeIn'](_0x18ad1c)['getWalker']({'singleCharacters':!0x0})){const _0x29d4d7=this['_getVidAttributeName'](_0x201b73),_0x3abe1e='elementEnd'==_0x201b73['type']?_0x201b73['previousPosition']['path']['slice'](0x0,-0x1):_0x201b73['previousPosition']['path'],_0x52ba84=_0x37257b['getNodeByPath'](_0x3abe1e);_0x52ba84['getAttribute'](_0x29d4d7)>0x0||_0x52ba84['_setAttribute'](_0x29d4d7,_0x4f287a[_0x32c357++]);}for(const [_0xfc1e2a,_0x564c91]of _0x18ad1c['markers'])_0xfc1e2a['startsWith']('revision:')||this['_markers']['set'](_0xfc1e2a,_0x564c91);}const _0x1ddac9=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1ddac9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ddac9,0x1));const _0x31877a=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x31877a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x31877a,0x1));const _0x3990a3=Array['from'](this['_diffRoots'])['map'](([_0x546466,_0x2235d1])=>[_0x546466,x(_0x2235d1)]);this['_saveMetaData'](this['_lastTo'],_0x3990a3,this['_markers'],_0x257885);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x313d71,_0x3b12b0,_0x5d6864,_0x308b91){const _0x5a35a2=new Map(_0x3b12b0),_0x303f8b=new Map(_0x37d460(_0x308b91)),_0x987c0=new Map();for(const [_0x14466e,_0x4706d1]of _0x5d6864)_0x987c0['set'](_0x14466e,{'start':_0x4706d1['start']['clone'](),'end':_0x4706d1['end']['clone'](),'rootName':_0x4706d1['root']['rootName']});this['_savedMetaData']['set'](_0x313d71,{'roots':_0x5a35a2,'markers':_0x987c0,'rootsAttributes':_0x303f8b});}['_removeMetaData'](_0x336abf){this['_savedMetaData']['delete'](_0x336abf);}['_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'](_0x25cf2d,_0x19ed55=null){let _0x5687fc=null;_0x25cf2d['is']('documentFragment')||(_0x5687fc=new _0x5a3bc2(_0x25cf2d['name'],{'vid_start':null===_0x19ed55?this['_revisionId']++:_0x19ed55++}));const _0x290a9f=[];for(const _0x966fd4 of _0x25cf2d['getChildren']())if(_0x966fd4['is']('element')){_0x290a9f['push'](this['_makeIdsRoot'](_0x966fd4,_0x19ed55));const _0x11ee0e=_0x290a9f[_0x290a9f['length']-0x1];null!==_0x19ed55&&(_0x19ed55=_0x11ee0e['is']('element','$text')?_0x11ee0e['getAttribute']('vid')+0x1:_0x11ee0e['getAttribute']('vid_end')+0x1);}else{for(let _0xc18a90=0x0;_0xc18a90<_0x966fd4['offsetSize'];_0xc18a90++)_0x290a9f['push'](new _0x5a3bc2('$text',{'vid':null===_0x19ed55?this['_revisionId']++:_0x19ed55++}));}if(_0x25cf2d['is']('documentFragment')){const _0x167198=N(_0x25cf2d['rootName']);return _0x167198['_insertChild'](0x0,_0x290a9f),_0x167198;}return _0x5687fc['_setAttribute']('vid_end',null===_0x19ed55?this['_revisionId']++:_0x19ed55++),_0x5687fc['_insertChild'](0x0,_0x290a9f),_0x5687fc;}['_calculateMetaData'](_0x3fe37c,_0x23ad77,_0x744f96){this['_reset']();const {roots:_0x3a5bb2,markers:_0x4ffcff,rootsAttributes:_0x418fd1}=this['_savedMetaData']['get'](_0x3fe37c);this['_baseRoots']=new Map(_0x3a5bb2),this['_baseRootsAttributes']=new Map(_0x37d460(_0x418fd1));for(const [_0x287de5,_0xd103e7]of this['_baseRoots'])if('$graveyard'!==_0x287de5&&(this['_diffRoots']['set'](_0x287de5,x(_0xd103e7)),this['_diffRootsAttributes']=new Map(_0x37d460(_0x418fd1)),_0x744f96)){const _0x272b0e=this['_revisionId'];this['_idsRoots']['set'](_0x287de5,this['_makeIdsRoot'](_0xd103e7)),this['_baseIdsRoots']['set'](_0x287de5,this['_makeIdsRoot'](_0xd103e7,_0x272b0e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x744f96&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2c4a90,_0x277957]of _0x4ffcff){const _0x13d55b=this['_baseRoots']['get'](_0x277957['rootName']),_0x2f5a75=this['_diffRoots']['get'](_0x277957['rootName']),_0x5c6099=new _0x20eafd(this['_fixPosition'](_0x277957['start'],_0x13d55b),this['_fixPosition'](_0x277957['end'],_0x13d55b)),_0x1816e9=this['_fixRange'](_0x5c6099,_0x2f5a75);_0x13d55b['markers']['set'](_0x2c4a90,_0x5c6099),this['_markers']['set'](_0x2c4a90,_0x1816e9);}this['_applyOperations'](_0x3fe37c,_0x23ad77,_0x744f96);}['_applyOperations'](_0x3e4fc1,_0x5ad6fc,_0x3c4209){for(const _0x5abf37 of this['source']['getOperations'](_0x3e4fc1,_0x5ad6fc))this['_handleOperation'](_0x5abf37,_0x3c4209);for(const _0x194a4f of this['_diffRoots']['values']())_0x194a4f['markers']['clear']();for(const [_0x688476,_0xd73e52]of this['_markers']){this['_diffRoots']['get'](_0xd73e52['root']['rootName'])['markers']['set'](_0x688476,_0xd73e52['clone']());}const _0x5ccc0c=new Map(),_0x21a253=new Map();for(const [_0x2c0b18,_0x470715]of this['_diffRoots'])_0x5ccc0c['set'](_0x2c0b18,x(_0x470715)),_0x21a253['set'](_0x2c0b18,this['_diffRootsAttributes']['get'](_0x2c0b18));this['_saveMetaData'](_0x5ad6fc,_0x5ccc0c,this['_markers'],_0x21a253);}['_getPreviousFrom'](_0x3f4cde){const _0xe19964=Array['from'](this['_savedMetaData']['keys']());_0xe19964['sort']((_0x44a2b3,_0x4b492b)=>_0x44a2b3-_0x4b492b),_0xe19964['reverse']();for(const _0x444a2c of _0xe19964)if(_0x444a2c<_0x3f4cde)return _0x444a2c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5828a9,_0x52068a){const _0x38fd06=Array['from'](_0x52068a['markers'])['map'](([_0x5b1ddc,_0x20cc40])=>[_0x5b1ddc,this['_fixRange'](_0x20cc40,_0x5828a9)]);_0x5828a9['markers']=new Map(_0x38fd06);}['_transformMarkers'](_0x48229e){for(const _0x4698cb of this['_markers']['values']()){const _0x4de481=_0x4698cb['getTransformedByOperation'](_0x48229e),_0x2053bc=_0x20eafd['_createFromRanges'](_0x4de481);_0x4698cb['start']=_0x2053bc['start'],_0x4698cb['end']=_0x2053bc['end'];}}['_handleOperation'](_0x29eaba,_0x3f2da8){if('addRoot'!=_0x29eaba['type']&&'detachRoot'!=_0x29eaba['type']){if('insert'==_0x29eaba['type']){const _0x45b0eb=_0x29eaba['position']['root']['rootName'];this['_diffRoots']['has'](_0x45b0eb)||(this['_diffRoots']['set'](_0x45b0eb,N(_0x45b0eb,!0x0)),this['_diffRootsAttributes']['set'](_0x45b0eb,{}),_0x3f2da8&&this['_idsRoots']['set'](_0x45b0eb,N(_0x45b0eb,!0x0)));}else{if('addRootAttribute'==_0x29eaba['type']||'removeRootAttribute'==_0x29eaba['type']||'changeRootAttribute'==_0x29eaba['type'])return void this['_handleRootAttributeOperation'](_0x29eaba);'marker'==_0x29eaba['type']&&this['_handleMarkerOperation'](_0x29eaba);}if('marker'!==_0x29eaba['type']){const _0x3a4592=this['_cloneOperation'](_0x29eaba,this['_diffRoots']);_0x3a4592['_execute'](),this['_transformMarkers'](_0x3a4592);}if(_0x3f2da8)switch(_0x29eaba['type']){case'insert':this['_handleInsertOperation'](_0x29eaba);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x29eaba);break;case'merge':this['_handleMergeOperation'](_0x29eaba);break;case'split':this['_handleSplitOperation'](_0x29eaba);}}else this['_handleRootOperation'](_0x29eaba,_0x3f2da8);}['_cloneOperation'](_0x146289,_0x3ab4ad){const _0x4b7e97=_0x146289['clone']();return _0x4b7e97['_authorId']=_0x146289['_authorId'],this['_fixOperation'](_0x4b7e97,_0x3ab4ad),_0x4b7e97;}['_getBaseVids'](_0x1dc894){return _0x1dc894['map'](_0x60e884=>{const _0x5ba790=this['_getVidAttributeName'](_0x60e884);return Number(_0x60e884['item']['getAttribute'](_0x5ba790));});}['_generateTape'](_0xe4efe5,_0x58f1ab){if(_0xe4efe5['is']('element','$text'))_0x58f1ab['push']({'item':_0xe4efe5,'type':'text'});else{_0xe4efe5['is']('element')&&_0x58f1ab['push']({'item':_0xe4efe5,'type':'elementStart'});for(const _0x13e17c of _0xe4efe5['getChildren']())this['_generateTape'](_0x13e17c,_0x58f1ab);_0xe4efe5['is']('element')&&_0x58f1ab['push']({'item':_0xe4efe5,'type':'elementEnd'});}return _0x58f1ab;}['_getState'](){const _0x4df542=new Map(this['_touched']),_0x313d12=new Map(_0x4df542),_0x3036d7=new Map(),_0x21af31={'insertions':{},'deletions':{}},_0x4699de={'insertions':{},'deletions':{}},_0x4b5da1=new Map(),_0x6fd214=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x6fd214['delete']('$graveyard');for(const _0x5ea27e of _0x6fd214){const _0x119c59=this['_diffRoots']['get'](_0x5ea27e)||N(_0x5ea27e,!0x1),_0x12534d=this['_baseRoots']['get'](_0x5ea27e)||N(_0x5ea27e,!0x1);_0x119c59['isAttached']()||_0x12534d['isAttached']()?(_0x21af31['insertions'][_0x5ea27e]=x(_0x119c59),_0x21af31['deletions'][_0x5ea27e]=x(_0x12534d),this['_copyMarkers'](_0x21af31['deletions'][_0x5ea27e],_0x12534d),this['_copyMarkers'](_0x21af31['insertions'][_0x5ea27e],_0x119c59),_0x4699de['insertions'][_0x5ea27e]=this['_generateTape'](this['_idsRoots']['get'](_0x5ea27e),[]),_0x4699de['deletions'][_0x5ea27e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5ea27e)||N(_0x5ea27e,!0x1),[])):_0x6fd214['delete'](_0x5ea27e);}for(const _0x178d8c of _0x6fd214){const _0x21ef9f=_0x4699de['insertions'][_0x178d8c];for(const _0x5ade98 of _0x21ef9f){const _0x3662d5=this['_getVidAttributeName'](_0x5ade98),_0x588ed1=_0x5ade98['item']['getAttribute'](_0x3662d5);_0x313d12['delete'](_0x588ed1),_0x588ed1>=this['_startingRevisionId']&&_0x3036d7['set'](_0x588ed1,_0x4df542['get'](_0x588ed1));}}for(const _0x575415 of _0x6fd214){const _0x546249=_0x4699de['insertions'][_0x575415],_0x55db96=this['_getBaseVids'](_0x4699de['deletions'][_0x575415]);let _0x14cd75=0x0;for(const _0x7fcb18 of _0x546249){const _0x35cdc2=this['_getVidAttributeName'](_0x7fcb18),_0x5a83b0=_0x7fcb18['item']['getAttribute'](_0x35cdc2);if(!_0x3036d7['has'](_0x5a83b0)&&!_0x4b5da1['has'](_0x5a83b0)){if(_0x313d12['has'](_0x5a83b0))_0x14cd75++;else{if(_0x5a83b0!=_0x55db96[_0x14cd75]){const _0x2ca92a=_0x4df542['get'](_0x5a83b0)||_0x4df542['get'](_0x55db96[_0x14cd75]);for(;_0x5a83b0!=_0x55db96[_0x14cd75];)_0x313d12['has'](_0x55db96[_0x14cd75])||(_0x4b5da1['set'](_0x55db96[_0x14cd75],_0x2ca92a),_0x4df542['set'](_0x55db96[_0x14cd75],_0x2ca92a)),_0x14cd75++;}_0x14cd75++;}}}}for(const _0x4ee737 of _0x6fd214){const _0x59f4b3=_0x4699de['insertions'][_0x4ee737];for(const _0x122566 of _0x59f4b3){const _0x2dd13a=this['_getVidAttributeName'](_0x122566),_0xe04be=_0x122566['item']['getAttribute'](_0x2dd13a);if(_0x4b5da1['has'](_0xe04be)){const _0x386252=_0x4b5da1['get'](_0xe04be);_0x313d12['has'](_0xe04be)||_0x313d12['set'](_0xe04be,{..._0x386252}),_0x3036d7['set'](_0xe04be,{..._0x386252});}}}for(const _0x3413c0 of _0x313d12['keys']())_0x3413c0>=this['_startingRevisionId']&&_0x313d12['delete'](_0x3413c0);const _0xa2cb51=new Map();for(const _0x27576b of _0x6fd214){let _0x33e167=_0x4699de['insertions'][_0x27576b];for(const _0x494cc5 of _0x33e167)if(_0x494cc5['item']['is']('element','tableCell')){const _0x243fff=this['_getVidAttributeName'](_0x494cc5),_0x551f96=_0x494cc5['item']['getAttribute'](_0x243fff);if(_0x3036d7['has'](_0x551f96)){const _0x34ced=_0x494cc5['item']['parent']['parent']['getAttribute']('vid_start'),_0x26485a=_0xa2cb51['get'](_0x34ced)||new Set();_0x26485a['add'](_0x3036d7['get'](_0x551f96)['userId']),_0xa2cb51['set'](_0x34ced,_0x26485a);}}_0x33e167=_0x4699de['deletions'][_0x27576b];for(const _0x1333cd of _0x33e167)if(_0x1333cd['item']['is']('element','tableCell')){const _0x375eaa=this['_getVidAttributeName'](_0x1333cd),_0x583806=_0x1333cd['item']['getAttribute'](_0x375eaa);if(_0x313d12['has'](_0x583806)){const _0x40768f=_0x1333cd['item']['parent']['parent']['getAttribute']('vid_start'),_0x56e5ec=_0xa2cb51['get'](_0x40768f)||new Set();_0x56e5ec['add'](_0x313d12['get'](_0x583806)['userId']),_0xa2cb51['set'](_0x40768f,_0x56e5ec);}}for(const _0x4d9107 of _0xa2cb51['keys']())(_0x3036d7['has'](_0x4d9107)||_0x313d12['has'](_0x4d9107))&&_0xa2cb51['delete'](_0x4d9107);}for(const _0x25df85 of _0x6fd214){const _0x5d3e26=_0x4699de['insertions'][_0x25df85];let _0x49dc95=null,_0x2129bd=null;for(const _0x12ef6d of _0x5d3e26){const _0x1dd6ea=this['_getVidAttributeName'](_0x12ef6d),_0x2e3e57=_0x12ef6d['item']['getAttribute'](_0x1dd6ea),_0x344cca=_0xa2cb51['get'](_0x2e3e57);_0x344cca&&'elementStart'==_0x12ef6d['type']&&(_0x49dc95=Array['from'](_0x344cca)[0x0],_0x2129bd=_0x12ef6d['item']['getAttribute']('vid_end')),_0x49dc95&&(_0x313d12['set'](_0x2e3e57,{'userId':_0x49dc95}),_0x3036d7['set'](_0x2e3e57,{'userId':_0x49dc95})),_0x2e3e57==_0x2129bd&&(_0x49dc95=null,_0x2129bd=null);}}const _0x3ad0da={},_0x14f2f6=new Set();for(const _0x396750 of _0x6fd214){const _0x3009b1=_0x21af31['deletions'][_0x396750],_0x39b19c=_0x21af31['insertions'][_0x396750];for(const {userId:_0x201359}of this['_touchedMarkers']['values']())null!==_0x201359&&_0x14f2f6['add'](_0x201359);for(const {userId:_0x5c1ef9}of this['_touchedRoots']['values']())null!==_0x5c1ef9&&_0x14f2f6['add'](_0x5c1ef9);this['_markChanges'](_0x39b19c,_0x4699de['insertions'][_0x396750],_0x3036d7,'insertion',_0x14f2f6),this['_markChanges'](_0x3009b1,_0x4699de['deletions'][_0x396750],_0x313d12,'deletion',_0x14f2f6),_0x3ad0da[_0x396750]={'insertions':this['_prepareViewToSave'](_0x39b19c),'deletions':this['_prepareViewToSave'](_0x3009b1),'attachChange':this['_touchedRoots']['get'](_0x396750)||null,'attributesBefore':_0x37d460(this['_baseRootsAttributes']['get'](_0x396750))||{},'attributesAfter':_0x37d460(this['_diffRootsAttributes']['get'](_0x396750))};}return{'diffData':_0x3ad0da,'authorsIds':Array['from'](_0x14f2f6)};}['_processRootBeforeSave'](_0x590396){for(const [,_0x104bb2]of _0x590396['markers']){const _0x478fc1=_0x104bb2['start']['getAncestors']()['filter'](_0x5925c3=>'tableCell'==_0x5925c3['name']);for(const _0x33e96 of _0x478fc1)0x1==_0x33e96['childCount']&&_0x33e96['getChild'](0x0)['is']('element','paragraph')&&_0x33e96['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x24f642){this['_processRootBeforeSave'](_0x24f642);const _0xb77960=this['editor']['data']['toView'](_0x24f642,{}),_0x4f0653=Array['from'](_0xb77960['getChildren']())['map'](_0x2e968a=>this['_getViewJson'](_0x2e968a));return JSON['stringify'](_0x4f0653);}['_getViewJson'](_0x3882fb){if(_0x3882fb['is']('$text'))return _0x3882fb['data'];{const _0x29c6a4=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4ee27b=_0x3882fb,_0x49d584=this['editor']['data']['htmlProcessor']['domConverter'],_0x5b3584={'type':_0x29c6a4['_getTypeCharForViewElement'](_0x4ee27b),'name':_0x4ee27b['name'],'attributes':Array['from'](_0x4ee27b['getAttributes']()),'children':Array['from'](_0x4ee27b['getChildren']())['map'](_0x4cfc71=>this['_getViewJson'](_0x4cfc71))};if(_0x3882fb['is']('uiElement')&&'$comment'!=_0x3882fb['name']){const _0x22f8be=_0x3882fb['render'](_0x49d584['domDocument'],_0x49d584);_0x5b3584['children']['push'](_0x22f8be['outerHTML']);}else{if(_0x3882fb['is']('rawElement')){const _0x375abe=_0x49d584['domDocument']['createElement'](_0x4ee27b['name']);_0x3882fb['render'](_0x375abe,_0x49d584),_0x5b3584['children']['push'](_0x375abe['innerHTML']);}}const _0x13c8f6=Array['from'](_0x4ee27b['getCustomProperties']());_0x13c8f6['length']>0x0&&(_0x5b3584['customProperties']=_0x13c8f6);const _0x31aa45=_0x4ee27b['getFillerOffset']();return null!==_0x31aa45&&(_0x5b3584['fillerOffset']=_0x31aa45),_0x5b3584;}}['_markChanges'](_0x40a6f0,_0x1bad0e,_0x13f0fd,_0x6f56f4,_0x50207e){let _0x11ec75=null,_0x50a77a=null,_0x1c5e90=0x0;const _0x1e6184=this['editor']['model'];for(let _0x2ce6e3=0x0;_0x2ce6e3<_0x1bad0e['length'];_0x2ce6e3++){const _0x4a35b=this['_getVidAttributeName'](_0x1bad0e[_0x2ce6e3]),_0x1fe5ec=_0x1bad0e[_0x2ce6e3]['item']['getAttribute'](_0x4a35b),_0xde789b=_0x13f0fd['get'](_0x1fe5ec),_0x416b97=_0x2ce6e3==_0x1bad0e['length']-0x1;(!_0x11ec75&&_0xde789b&&(_0x11ec75=_0xde789b,_0x50a77a=_0x1bad0e[_0x2ce6e3]),_0x11ec75&&(!_0xde789b||_0xde789b['userId']!=_0x11ec75['userId']))&&(_0x30b3fa(_0xde789b,P(_0x50a77a,_0x40a6f0,_0x1e6184),P(_0x1bad0e[_0x2ce6e3],_0x40a6f0,_0x1e6184)),_0x11ec75=_0xde789b||null,_0x50a77a=_0xde789b?_0x1bad0e[_0x2ce6e3]:null),_0x11ec75&&_0x416b97&&_0x30b3fa(_0xde789b,P(_0x50a77a,_0x40a6f0,_0x1e6184),V(_0x1bad0e[_0x2ce6e3],_0x40a6f0,_0x1e6184));}function _0x30b3fa(_0x1ace27,_0x147b59,_0x4ac26f){const _0x5895e1=_0x11ec75['userId'],_0x239a88='revision:'+_0x6f56f4+':'+_0x5895e1+':'+_0x1c5e90++,_0x2765f2=_0x1e6184['createRange'](_0x147b59,_0x4ac26f);_0x40a6f0['markers']['set'](_0x239a88,_0x2765f2),null!==_0x5895e1&&_0x50207e['add'](_0x5895e1);}}['_getVidAttributeName'](_0x26ab0b){switch(_0x26ab0b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x466f7d,_0x40d8b3){_0x466f7d['baseVersion']=null;for(const _0x164376 in _0x466f7d){const _0x3f803b=_0x466f7d[_0x164376];if(_0x3f803b instanceof _0x195f9a){const _0x1c9fbc=_0x40d8b3['get'](_0x3f803b['root']['rootName']);_0x466f7d[_0x164376]=this['_fixPosition'](_0x3f803b,_0x1c9fbc);}if(_0x3f803b instanceof _0x20eafd){const _0x11f3f8=_0x40d8b3['get'](_0x3f803b['root']['rootName']);_0x466f7d[_0x164376]=this['_fixRange'](_0x3f803b,_0x11f3f8);}'root'===_0x164376&&(_0x466f7d['root']=_0x40d8b3['get'](_0x466f7d['root']['rootName']));}}['_fixRange'](_0x586247,_0x2ab3eb){return this['editor']['model']['createRange'](this['_fixPosition'](_0x586247['start'],_0x2ab3eb),this['_fixPosition'](_0x586247['end'],_0x2ab3eb));}['_fixPosition'](_0x235052,_0xec995c){return this['editor']['model']['createPositionFromPath'](_0xec995c,_0x235052['path'],_0x235052['stickiness']);}['_handleInsertOperation'](_0x3f2185){const _0x4927ec=this['_idsRoots']['get'](_0x3f2185['position']['root']['rootName']),_0xdd73fb=this['_fixPosition'](_0x3f2185['position'],_0x4927ec),_0x3d42f4=null===_0x3f2185['_authorId']?null:_0x3f2185['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53e41e=_0xdd73fb['parent'],_0x2b243f=this['_revisionId'],_0x779b5d=[];for(const _0x5b2b47 of _0x3f2185['nodes'])if(_0x5b2b47['is']('element'))_0x779b5d['push'](this['_makeIdsRoot'](_0x5b2b47));else{for(let _0x9fd3a2=0x0;_0x9fd3a2<_0x5b2b47['offsetSize'];_0x9fd3a2++)_0x779b5d['push'](new _0x5a3bc2('$text',{'vid':this['_revisionId']++}));}const _0x25fc8a=this['_revisionId'];for(let _0x1e2226=_0x2b243f;_0x1e2226<_0x25fc8a;_0x1e2226++)this['_touched']['set'](_0x1e2226,{'userId':_0x3d42f4});_0x53e41e['_insertChild'](_0xdd73fb['offset'],_0x779b5d);}['_handleMoveOperation'](_0x5388d7){(_0x5388d7=this['_cloneOperation'](_0x5388d7,this['_idsRoots']))['_execute']();const _0xe722df=null===_0x5388d7['_authorId']?null:_0x5388d7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d4ca6=_0x5388d7['getMovedRangeStart'](),_0x2553f5=_0x5d4ca6['parent'],_0x4c6593=_0x5d4ca6['offset'];!function _0x4249d8(_0x39fe5a,_0x4bfe12,_0xd3020d,_0xa1dd28){for(let _0x424c37=_0xd3020d;_0x424c37<_0xa1dd28;_0x424c37++){const _0x4c6541=_0x4bfe12['getChild'](_0x424c37);_0x4c6541['is']('element','$text')?_0x39fe5a['set'](_0x4c6541['getAttribute']('vid'),{'userId':_0xe722df}):(_0x39fe5a['set'](_0x4c6541['getAttribute']('vid_start'),{'userId':_0xe722df}),_0x4249d8(_0x39fe5a,_0x4c6541,0x0,_0x4c6541['childCount']),_0x39fe5a['set'](_0x4c6541['getAttribute']('vid_end'),{'userId':_0xe722df}));}}(this['_touched'],_0x2553f5,_0x4c6593,_0x4c6593+_0x5388d7['howMany']);}['_handleMergeOperation'](_0xfa89b8){const _0x1ebf99=null===(_0xfa89b8=this['_cloneOperation'](_0xfa89b8,this['_idsRoots']))['_authorId']?null:_0xfa89b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17f031=_0xfa89b8['targetPosition']['parent'],_0x288eb3=_0xfa89b8['sourcePosition']['parent'],_0x3fc0d2=_0x17f031['getAttribute']('vid_end'),_0x2bd2e2=_0x288eb3['getAttribute']('vid_start');_0x17f031['_setAttribute']('vid_end',_0x288eb3['getAttribute']('vid_end')),_0x288eb3['_setAttribute']('vid_end',_0x3fc0d2),this['_touched']['set'](_0x2bd2e2,{'userId':_0x1ebf99}),this['_touched']['set'](_0x3fc0d2,{'userId':_0x1ebf99}),_0xfa89b8['_execute']();}['_handleSplitOperation'](_0x76a735){const _0x3f88c0=null===(_0x76a735=this['_cloneOperation'](_0x76a735,this['_idsRoots']))['_authorId']?null:_0x76a735['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28a787=_0x76a735['graveyardPosition'],_0x54ea9a=_0x76a735['splitPosition']['parent'];_0x76a735['_execute']();const _0x26fd36=_0x54ea9a['getAttribute']('vid_end'),_0x1b37c2=_0x76a735['insertionPosition']['nodeAfter'];if(_0x28a787){const _0x1dbf41=_0x1b37c2['getAttribute']('vid_end'),_0x266923=_0x54ea9a['getAttribute']('vid_end');_0x54ea9a['_setAttribute']('vid_end',_0x1dbf41),_0x1b37c2['_setAttribute']('vid_end',_0x266923),this['_touched']['set'](_0x54ea9a['getAttribute']('vid_end'),{'userId':_0x3f88c0}),this['_touched']['set'](_0x1b37c2['getAttribute']('vid_start'),{'userId':_0x3f88c0});}else{const _0x2507bd=this['_revisionId']++,_0x5a4a01=this['_revisionId']++;_0x54ea9a['_setAttribute']('vid_end',_0x2507bd),_0x1b37c2['_setAttribute']('vid_start',_0x5a4a01),_0x1b37c2['_setAttribute']('vid_end',_0x26fd36),this['_touched']['set'](_0x2507bd,{'userId':_0x3f88c0}),this['_touched']['set'](_0x5a4a01,{'userId':_0x3f88c0});}}['_handleMarkerOperation'](_0x4b80aa){if(!_0x4b80aa['affectsData'])return;const _0x46f3ee=(_0x4b80aa=this['_cloneOperation'](_0x4b80aa,this['_diffRoots']))['oldRange']?_0x4b80aa['oldRange']['root']:null,_0x2209ac=_0x4b80aa['newRange']?_0x4b80aa['newRange']['root']:null;_0x46f3ee&&this['_markers']['delete'](_0x4b80aa['name']),_0x2209ac&&this['_markers']['set'](_0x4b80aa['name'],_0x4b80aa['newRange']['clone']());const _0x1271e5=null===_0x4b80aa['_authorId']?null:_0x4b80aa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x405a7f=_0x4b80aa['name'];if(!this['_touchedMarkers']['has'](_0x405a7f))return void this['_touchedMarkers']['set'](_0x405a7f,{'range':_0x4b80aa['oldRange'],'userId':_0x1271e5});const _0x381f97=this['_touchedMarkers']['get'](_0x405a7f),_0x5a2adb=_0x381f97['range'],_0x5b61bd=_0x4b80aa['newRange'];null==_0x5a2adb&&null==_0x5b61bd||_0x5a2adb&&_0x5b61bd&&_0x5a2adb['isEqual'](_0x5b61bd)?this['_touchedMarkers']['delete'](_0x4b80aa['name']):_0x381f97['userId']=_0x1271e5;}['_handleRootOperation'](_0x51df60,_0x344705){this['_diffRoots']['has'](_0x51df60['rootName'])?this['_diffRoots']['get'](_0x51df60['rootName'])['_isAttached']=_0x51df60['isAdd']:(this['_diffRoots']['set'](_0x51df60['rootName'],N(_0x51df60['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x51df60['rootName'],{}),_0x344705&&this['_idsRoots']['set'](_0x51df60['rootName'],N(_0x51df60['rootName'],!0x0)));const _0x36c92d=null===_0x51df60['_authorId']?null:_0x51df60['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e86f8=this['_touchedRoots']['get'](_0x51df60['rootName']);_0x3e86f8&&_0x3e86f8['userId']===_0x36c92d?this['_touchedRoots']['delete'](_0x51df60['rootName']):this['_touchedRoots']['set'](_0x51df60['rootName'],{'userId':_0x36c92d,'isAttached':_0x51df60['isAdd']});}['_handleRootAttributeOperation'](_0x1dc672){const _0x94e1d8=this['_diffRootsAttributes']['get'](_0x1dc672['root']['rootName']);null===_0x1dc672['newValue']?delete _0x94e1d8[_0x1dc672['key']]:_0x94e1d8[_0x1dc672['key']]=_0x1dc672['newValue'];}}function x(_0x39468d){const _0x390f6e=N(_0x39468d['rootName'],_0x39468d['isAttached']());for(const _0x49bfd5 of _0x39468d['getChildren']()){const _0xced0e8=_0x49bfd5['_clone'](!0x0);_0x390f6e['_appendChild'](_0xced0e8);}return _0x390f6e;}function N(_0x42499d,_0x1ade19=!0x0){const _0x29e3ec=new _0x5b40d3();return _0x29e3ec['rootName']=_0x42499d,_0x29e3ec['_isAttached']=_0x1ade19,_0x29e3ec['isAttached']=()=>_0x29e3ec['_isAttached'],_0x29e3ec;}function P(_0x5eb645,_0x2d6811,_0x5d3ddb){const _0x3e1d07='elementEnd'==_0x5eb645['type']?_0x5d3ddb['createPositionAt'](_0x5eb645['item'],'end'):_0x5d3ddb['createPositionBefore'](_0x5eb645['item']);return _0x5d3ddb['createPositionFromPath'](_0x2d6811,_0x3e1d07['path'],_0x3e1d07['stickiness']);}function V(_0x3a2dea,_0x31b84a,_0x3139cf){const _0x1d51eb='elementStart'==_0x3a2dea['type']?_0x3139cf['createPositionAt'](_0x3a2dea['item'],0x0):_0x3139cf['createPositionAfter'](_0x3a2dea['item']);return _0x3139cf['createPositionFromPath'](_0x31b84a,_0x1d51eb['path'],_0x1d51eb['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4595bb(_0x5b9845){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5d3392,_0x22d37d){super(_0x5d3392),this['focusTracker']=new _0x4ae125(),this['keystrokes']=new _0x3ff30c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x22d37d),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'](),_0x93a3e8({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x14aab5=_0x361298=>_0x361298['stopPropagation']();this['keystrokes']['set']('arrowright',_0x14aab5),this['keystrokes']['set']('arrowleft',_0x14aab5),this['keystrokes']['set']('arrowup',_0x14aab5),this['keystrokes']['set']('arrowdown',_0x14aab5);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1ae959){this['revisionNameInputView']['fieldView']['element']['value']=_0x1ae959['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x25574b){const _0x95f9e9=new ti(this['locale'],_0x413488),_0x39c884=_0x95f9e9['fieldView'];_0x39c884['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x479e10=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x25574b&&(_0x479e10+='\x20('+R(this['locale'],'optional')+')'),(_0x95f9e9['label']=_0x479e10,_0x39c884['on']('input',()=>{this['revisionNameInputValue']=_0x39c884['element']['value']['trim']();}),_0x95f9e9);}}class v extends _0x54fe5b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x72db8d=this['editor'],_0x3f5b90=_0x72db8d['plugins']['get']('RevisionTracker');_0x72db8d['ui']['componentFactory']['add']('revisionHistory',_0x49f809=>{const _0x20f89c=_0x3304c7(_0x49f809),_0x37392f=_0x20f89c['panelView']['children'],_0x16ab4f=new _0x9958e7(_0x49f809),_0x1f86df=new _0xcb5b06(_0x49f809),_0x36c3b4=new _0x13d813(_0x49f809),_0x3b8872=new _0xcb5b06(_0x49f809),_0x106cd6=new _0x13d813(_0x49f809);return _0x20f89c['bind']('isEnabled')['to'](_0x3f5b90,'isReady',_0x3f5b90,'isEnabled',_0x72db8d,'isReadOnly',(_0x2a75d0,_0x4101ab,_0x4d592e)=>_0x2a75d0&&_0x4101ab&&!_0x4d592e),_0x20f89c['buttonView']['set']({'icon':_0x2e4e90,'label':R(_0x49f809,'Revision\x20history'),'tooltip':!0x0}),_0x36c3b4['set']({'label':R(_0x49f809,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x36c3b4['bind']('isEnabled')['to'](_0x3f5b90,'isReady',_0x3f5b90,'isEnabled',_0x72db8d,'isReadOnly',(_0x40a4ad,_0x442bb2,_0x4264d3)=>_0x40a4ad&&_0x442bb2&&!_0x4264d3),_0x36c3b4['on']('execute',()=>this['_showDialog']()),_0x106cd6['set']({'label':R(_0x49f809,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x106cd6['bind']('isEnabled')['to'](_0x3f5b90,'isReady',_0x72db8d,'isReadOnly',(_0x4de525,_0x57dc09)=>_0x4de525&&!_0x57dc09),_0x106cd6['on']('execute',()=>{_0x72db8d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x20f89c['isOpen']=!0x1,_0x72db8d['editing']['view']['focus']();}),_0x1f86df['children']['add'](_0x36c3b4),_0x3b8872['children']['add'](_0x106cd6),_0x16ab4f['role']='menu',_0x16ab4f['items']['addMany']([_0x1f86df,_0x3b8872]),_0x37392f['add'](_0x16ab4f),_0x20f89c;}),_0x72db8d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4796f2=this['editor'],_0x5a1edc=_0x4796f2['locale'],_0x42b98e=new _0x19dba4(_0x5a1edc),_0x2ccb7c=new _0x2f9bd0(_0x5a1edc);_0x42b98e['buttonView']['set']({'icon':_0x2e4e90,'label':R(_0x5a1edc,'Revision\x20history')});const _0x272f08=new _0x2745dd(_0x5a1edc,_0x42b98e),_0x46cc83=new _0x1647af(_0x5a1edc);_0x46cc83['set']({'label':R(_0x5a1edc,'Save\x20current\x20revision')}),_0x46cc83['delegate']('execute')['to'](_0x42b98e),_0x46cc83['on']('execute',()=>{this['_showDialog']();}),_0x272f08['children']['add'](_0x46cc83),_0x2ccb7c['items']['add'](_0x272f08);const _0x3b7769=new _0x2745dd(_0x5a1edc,_0x42b98e),_0x564250=new _0x1647af(_0x5a1edc);return _0x564250['set']({'label':R(_0x5a1edc,'Open\x20revision\x20history')}),_0x564250['delegate']('execute')['to'](_0x42b98e),_0x564250['on']('execute',()=>{_0x4796f2['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3b7769['children']['add'](_0x564250),_0x2ccb7c['items']['add'](_0x3b7769),_0x42b98e['panelView']['children']['add'](_0x2ccb7c),_0x42b98e;}['_showDialog'](){const _0x9a7e72=this['editor'],_0x10daf8=_0x9a7e72['locale'],_0x2e32c4=_0x9a7e72['plugins']['get']('Dialog'),_0xe5b805=_0x9a7e72['plugins']['get']('RevisionTracker');function _0x3e9395(_0x27d06a){_0x9a7e72['config']['get']('revisionHistory.requireRevisionName')&&''===_0x27d06a['revisionName']?_0x27d06a['revisionNameInputView']['errorText']=R(_0x10daf8,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x9a7e72['plugins']['get'](h)['saveRevision']({'name':_0x27d06a['revisionName']}),_0x2e32c4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3e9395(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2e32c4['show']({'id':'revisionSave','title':R(_0x10daf8,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x9a7e72['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2e32c4['hide']()},{'label':R(_0x9a7e72['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1d3985){_0x1d3985['bind']('isEnabled')['to'](_0xe5b805,'isReady',_0xe5b805,'isEnabled',_0x9a7e72,'isReadOnly',(_0x5b4502,_0x2d7cab,_0x3ba23b)=>_0x5b4502&&_0x2d7cab&&!_0x3ba23b);},'onExecute':()=>_0x3e9395(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x57de1b=this['editor'],_0x105ab7=_0x57de1b['locale'];this['_saveRevisionFormView']=new he(_0x105ab7,_0x57de1b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x5b9845{['changeId'];['_model'];constructor(_0x4a17f0,_0x468fce){super(_0x4a17f0),this['_model']=_0x468fce,this['changeId']=_0x468fce['id'];const _0x458d76=this['bindTemplate'],_0x312783=R(_0x4a17f0,_0x468fce['data']['isSuggestion']?'Suggested\x20by':'add'==_0x468fce['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x468fce['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x458d76['to']('type',_0x50a6f6=>'ck-revision-change__'+_0x50a6f6)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x312783}]},{'text':'\x20'+_0x468fce['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x21bc25(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4bde6c){super(),this['id']=_0x4bde6c['id']||_0x272469(),this['author']=_0x4bde6c['author'],this['type']=_0x4bde6c['type'],this['data']=_0x4bde6c['data']||{},this['rootName']=_0x4bde6c['rootName'],this['set']('createdAt',_0x4bde6c['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(_0x7deb22,_0x110af7){this['newRevisionId']=_0x7deb22,this['oldRevisionId']=_0x110af7,this['changes']=new _0x2b4e5c();}['_setChanges'](_0x192761){for(const _0x22650c of _0x192761)this['changes']['add'](_0x22650c);}}class l extends _0x54fe5b{['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[_0x36c169,_0x18d87b,S,$];}constructor(_0x48fd6a){super(_0x48fd6a),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',(_0x525a77,_0x43eb86,_0x1badda)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3bc56c=>{for(const _0x13bbe0 of this['editor']['editing']['view']['document']['roots'])_0x1badda?_0x3bc56c['removeClass']('ck-editor__editable__overlay',_0x13bbe0):_0x3bc56c['addClass']('ck-editor__editable__overlay',_0x13bbe0);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3575f6=>null!==_0x3575f6),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x28e012,_0x595856,_0x168e18)=>_0x28e012&&_0x168e18?_0x595856['changes']['getIndex'](_0x168e18):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x39612c,_0x4feb61)=>_0x39612c?_0x4feb61['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x18d87b);}['init'](){const _0x4dc289=this['editor'],_0x1e966a=new ot(_0x4dc289,{'direction':'backward'}),_0x24b53b=new ot(_0x4dc289,{'direction':'forward'});(_0x4dc289['commands']['add']('showPreviousChange',_0x1e966a),_0x4dc289['commands']['add']('showNextChange',_0x24b53b),_0x4dc289['commands']['add']('restoreRevision',new nt(_0x4dc289)),this['on']('change:numberOfChanges',()=>{_0x1e966a['refresh'](),_0x24b53b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4dc289['enableReadOnlyMode']('revision-viewer'),_0x4dc289['plugins']['has']('WidgetToolbarRepository'))&&_0x4dc289['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2e4e59){return await this['_utils']['loadRevisionData'](_0x2e4e59,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2e4e59);}async['getRevisionRootsAttributes'](_0x31cc70){return await this['_utils']['loadRevisionData'](_0x31cc70,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x31cc70);}async['compare'](_0x473d96,_0x3b20fd,_0xa2effe=!0x1){if(!this['isEnabled'])return;const _0x49440=this['diff'],_0x1c0ba6=this['repository'],_0x2b3adf='string'==typeof _0x473d96?_0x1c0ba6['getRevision'](_0x473d96):_0x473d96,_0x22d56b='string'==typeof _0x3b20fd?_0x1c0ba6['getRevision'](_0x3b20fd):_0x3b20fd,_0x5453cd=_0x2b3adf['id'],_0x203346=_0x22d56b?_0x22d56b['id']:null;if(!_0xa2effe&&this['diff']&&this['diff']['newRevisionId']===_0x5453cd&&this['diff']['oldRevisionId']===_0x203346)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x5453cd,_0x203346);const _0xa92349=this['_getRevisionsRange'](_0x2b3adf,_0x22d56b,!0x0)['map'](_0x223a79=>this['_utils']['loadRevisionData'](_0x223a79,this['adapter']));return _0xa92349['push'](new Promise(_0x4c6717=>{setTimeout(_0x4c6717,0x14);})),Promise['all'](_0xa92349)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x90f64a=this['_getDiff'](_0x5453cd,_0x203346);for(const _0x253a34 of _0x90f64a['changes'])this['_changeIdToChange']['set'](_0x253a34['id'],_0x253a34);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5a213a=>{for(const _0x5d7efa of this['editor']['model']['document']['getRootNames']())_0x5a213a['detachRoot'](_0x5d7efa);for(const _0x321e16 of Object['keys'](_0x90f64a['model'])){const _0x395ae7=_0x5a213a['addRoot'](_0x321e16);for(const _0x86b9dd of Object['keys'](_0x90f64a['attributes'][_0x321e16]))_0x5a213a['setAttribute'](_0x86b9dd,_0x90f64a['attributes'][_0x321e16][_0x86b9dd],_0x395ae7);_0x5a213a['insert'](_0x90f64a['model'][_0x321e16],_0x395ae7,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x90f64a['changes'])),this['isReady']=!0x0;})['catch'](_0x2010fb=>{console['error'](_0x2010fb),this['_cleanUp'](),_0x49440&&(this['diff']=_0x49440),this['isReady']=!0x0;});}['addRevisionData'](_0xe43c62,_0x57be65){const _0x40d76e=this['repository']['createRevision'](_0xe43c62);return _0x40d76e['on']('_update',(_0x45814b,_0x572b57,_0xa8170c)=>_0x57be65(_0x572b57,_0xa8170c,_0x40d76e)),this['repository']['addRevision'](_0x40d76e),_0x40d76e;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4d87db=>{for(const _0x306afc of this['editor']['model']['document']['getRootNames']())_0x4d87db['detachRoot'](_0x306afc);});}['_sortAndFilterDiffChanges'](_0x1a3d9c){const _0x583688=[],_0x5363c2=new Map();for(const _0xf87d46 of this['editor']['model']['document']['getRootNames']()){const _0x4087e3=this['editor']['editing']['view']['getDomRoot'](_0xf87d46);if(!_0x4087e3)continue;const _0x55b277=_0x4087e3['getClientRects']()['item'](0x0);_0x55b277&&(_0x583688['push'](_0xf87d46),_0x5363c2['set'](_0xf87d46,_0x55b277));}return _0x583688['sort']((_0x1588dc,_0x1ff7c9)=>{const _0x12b804=_0x5363c2['get'](_0x1588dc),_0x2f9c5c=_0x5363c2['get'](_0x1ff7c9);return _0x12b804['y']-_0x2f9c5c['y']||_0x12b804['x']-_0x2f9c5c['x'];}),(_0x1a3d9c=_0x1a3d9c['filter'](_0x55da48=>_0x583688['includes'](_0x55da48['rootName'])))['sort']((_0x1ad64b,_0x1e5ec6)=>_0x583688['indexOf'](_0x1ad64b['rootName'])-_0x583688['indexOf'](_0x1e5ec6['rootName'])),_0x1a3d9c;}['_makeTape'](_0x369c65){const _0x32204d=Array['from'](_0x369c65['markers'])['filter'](([_0x57ed6b,_0x1c5e3a])=>_0x57ed6b['startsWith']('revision:')&&!_0x1c5e3a['isCollapsed']),_0x1ba23e=Array['from'](this['editor']['model']['createRangeIn'](_0x369c65)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x32204d['length'])for(const _0x2ddacf of _0x1ba23e){const [_0x46be73,_0x273228]=_0x32204d[0x0],[,_0x8ed5b1,_0x5be190]=_0x46be73['split'](':');if(_0x273228['end']['isEqual'](_0x2ddacf['nextPosition'])&&_0x32204d['shift'](),(_0x2ddacf['previousPosition']['isEqual'](_0x273228['start'])||_0x2ddacf['previousPosition']['isAfter'](_0x273228['start']))&&('insertion'==_0x8ed5b1?_0x2ddacf['isAdded']={'userId':_0x5be190}:'deletion'==_0x8ed5b1&&(_0x2ddacf['isRemoved']={'userId':_0x5be190})),0x0==_0x32204d['length'])break;}return _0x1ba23e;}['_refreshStartEndIndex'](_0x14989a){const _0x3fc70a=new Map();for(let _0x4ea551=0x0;_0x4ea551<_0x14989a['length'];_0x4ea551++)'text'===_0x14989a[_0x4ea551]['type']?(_0x14989a[_0x4ea551]['item']['startIndex']=_0x4ea551,_0x14989a[_0x4ea551]['item']['endIndex']=_0x4ea551):('elementStart'===_0x14989a[_0x4ea551]['type']?_0x14989a[_0x4ea551]['item']['startIndex']=_0x4ea551:'elementEnd'===_0x14989a[_0x4ea551]['type']&&(_0x14989a[_0x4ea551]['item']['endIndex']=_0x4ea551),_0x3fc70a['set'](_0x14989a[_0x4ea551]['id'],_0x4ea551));for(const _0x2b59a4 of _0x3fc70a['values']())'elementStart'===_0x14989a[_0x2b59a4]['type']?_0x14989a[_0x2b59a4]['item']['endIndex']=_0x3fc70a['get'](_0x14989a[_0x2b59a4]['pairId']):'elementEnd'===_0x14989a[_0x2b59a4]['type']&&(_0x14989a[_0x2b59a4]['item']['startIndex']=_0x3fc70a['get'](_0x14989a[_0x2b59a4]['pairId']));}['_processTape'](_0x5df79f){for(let _0x144ad9=0x0;_0x144ad9<_0x5df79f['length'];_0x144ad9++){if('elementStart'===_0x5df79f[_0x144ad9]['type'])_0x5df79f[_0x144ad9]['item']['startIndex']=_0x144ad9;else{if('elementEnd'===_0x5df79f[_0x144ad9]['type']){_0x5df79f[_0x144ad9]['item']['endIndex']=_0x144ad9;const _0x18ce83=_0x5df79f[_0x144ad9]['item']['startIndex'];_0x5df79f[_0x18ce83]['pairId']=_0x5df79f[_0x144ad9]['id'],_0x5df79f[_0x144ad9]['pairId']=_0x5df79f[_0x18ce83]['id'];}else _0x5df79f[_0x144ad9]['item']['startIndex']=_0x144ad9,_0x5df79f[_0x144ad9]['item']['endIndex']=_0x144ad9,_0x5df79f[_0x144ad9]['pairId']=null;}_0x5df79f[_0x144ad9]['markersStart']||(_0x5df79f[_0x144ad9]['markersStart']=[],_0x5df79f[_0x144ad9]['markersEnd']=[]);}}['_markInsertions'](_0x564ed3,_0x24868d){const _0x59a0ef=_0x564ed3['filter'](_0x28e692=>!_0x28e692['isAdded']);for(let _0x1bd1e5=0x0;_0x1bd1e5<_0x24868d['length'];_0x1bd1e5++)_0x24868d[_0x1bd1e5]['isAdded']&&(_0x59a0ef[_0x1bd1e5]['isAdded']=_0x24868d[_0x1bd1e5]['isAdded']);}['_getDiff'](_0x105950,_0x2681a1=null){const _0x12c144=this['repository']['getRevision'](_0x105950),_0xa9ce77=_0x2681a1?this['repository']['getRevision'](_0x2681a1):null,_0x3e69ef=this['_getRevisionsRange'](_0x12c144,_0xa9ce77),_0x38426c=_0x3e69ef[_0x3e69ef['length']-0x1],_0x3457b1=new Map(),_0x2c7cba={'model':{},'attributes':{},'changes':[]},_0x4f1e03=new Set(),_0x28c185=new Map();for(let _0x3223c4=_0x3e69ef['length']-0x1;_0x3223c4>=0x0;_0x3223c4--){const _0x2da977=_0x3e69ef[_0x3223c4];for(const _0x394932 of Object['keys'](_0x2da977['diffData']))if(_0x2da977['diffData'][_0x394932]['attachChange']){const _0x23ef90=_0x2da977['diffData'][_0x394932]['attachChange'];_0x23ef90['isAttached']?(_0x4f1e03['add'](_0x394932),_0x28c185['has'](_0x394932)&&_0x28c185['get'](_0x394932)['userId']==_0x23ef90['userId']?_0x28c185['delete'](_0x394932):_0x28c185['set'](_0x394932,_0x23ef90)):_0x28c185['has'](_0x394932)?(_0x4f1e03['delete'](_0x394932),_0x28c185['delete'](_0x394932)):(_0x4f1e03['add'](_0x394932),_0x28c185['set'](_0x394932,_0x23ef90));}else _0x4f1e03['add'](_0x394932);}for(const _0x4197e5 of _0x4f1e03){const _0x523cf9=_0x28c185['has'](_0x4197e5)&&!_0x28c185['get'](_0x4197e5)['isAttached'];let _0x3b22c1=_0x523cf9?_0x3e69ef['length']-0x1:0x0;const _0x5ed9a1=_0x523cf9?-0x1:0x1;for(;_0x3e69ef[_0x3b22c1];){const _0x30aa3c=_0x3e69ef[_0x3b22c1];if(_0x30aa3c['diffData'][_0x4197e5]){const _0x58502a=_0x523cf9?_0x30aa3c['diffData'][_0x4197e5]['attributesBefore']:_0x30aa3c['diffData'][_0x4197e5]['attributesAfter'];_0x2c7cba['attributes'][_0x4197e5]=_0x58502a?_0x37d460(_0x58502a):{};break;}_0x3b22c1+=_0x5ed9a1;}}for(const _0x44d612 of _0x3e69ef){_0x44d612['model']={};for(const _0x129ba6 of _0x44d612['authors'])_0x3457b1['set'](_0x129ba6['id'],_0x129ba6);for(const _0x4dfc0e of _0x4f1e03){const _0x24812c=_0x44d612['diffData'][_0x4dfc0e]?_0x44d612['diffData'][_0x4dfc0e]['insertions']:'[]',_0x565812=_0x44d612['diffData'][_0x4dfc0e]?_0x44d612['diffData'][_0x4dfc0e]['deletions']:'[]';_0x44d612['model'][_0x4dfc0e]={'insertions':this['_utils']['_makeModelFromViewString'](_0x24812c),'deletions':this['_utils']['_makeModelFromViewString'](_0x565812)};}}for(const _0x16991c of _0x4f1e03){let _0x422674=null,_0x12714a=0x0;const _0x4a85f6=new Map(Array['from'](_0x12c144['model'][_0x16991c]['insertions']['markers'])['filter'](([_0x386576])=>!_0x386576['startsWith']('revision:')));let _0x1aba36=0x0;for(const _0xc04a45 of _0x3e69ef){const _0x5d585f=this['_makeTape'](_0xc04a45['model'][_0x16991c]['insertions']);_0xc04a45==_0x12c144?(_0x422674=_0x5d585f,_0x12714a=_0x422674['length'],_0x422674['forEach'](_0x5b6158=>{_0x5b6158['id']=_0x1aba36++;}),this['_processTape'](_0x422674)):this['_markInsertions'](_0x422674,_0x5d585f);const _0x226932=_0x422674['filter'](_0x206d88=>!_0x206d88['isAdded'])['map'](_0x224113=>_0x224113['id']);let _0xe341d9=0x0;const _0x2c010c=this['_makeTape'](_0xc04a45['model'][_0x16991c]['deletions']);_0x2c010c['forEach'](_0x14c330=>{_0x14c330['isRemoved']?_0x14c330['id']=_0x12714a++:_0x14c330['id']=_0x226932[_0xe341d9++];}),this['_processTape'](_0x2c010c),this['_setDistance'](_0x422674,'isAdded'),this['_setDistance'](_0x2c010c,'isRemoved'),_0xc04a45==_0x12c144&&this['_markMarkers'](_0x422674,_0x4a85f6),_0x422674=this['_joinTapes'](_0x422674,_0x2c010c),this['_refreshStartEndIndex'](_0x422674),this['_setDistance'](_0x422674,'isRemoved');}_0x422674=_0x422674['filter'](_0x2c9b90=>!(_0x2c9b90['isAdded']&&_0x2c9b90['isRemoved']));const _0x4dfa99=new Map(_0x38426c['model'][_0x16991c]['deletions']['markers']),_0x4976cc=new Set(_0x4a85f6['keys']());for(const _0x55bbaa of _0x4dfa99['keys']())_0x4976cc['delete'](_0x55bbaa);this['_markSuggestions'](_0x422674,_0x4976cc),this['_fixObsoleteTags'](_0x422674),_0x422674=this['_removeMissingPairs'](_0x422674),_0x422674=this['_markMismatchedRemovedTags'](_0x422674),_0x422674=this['_removeUnsupportedChanges'](_0x422674);const {root:_0x16023d,changes:_0x4e3846}=this['_makeModelFromTape'](_0x422674,_0x3457b1,_0x16991c);_0x2c7cba['model'][_0x16991c]=_0x16023d;const _0x3239a3=_0x28c185['get'](_0x16991c);if(_0x3239a3){const _0x1911ff=_0x3457b1['get'](_0x3239a3['userId']),_0x3b8cca=new G({'author':_0x1911ff,'type':_0x3239a3['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x16991c});_0x4e3846['unshift'](_0x3b8cca),_0x2c7cba['attributes'][_0x16991c]['revisionHistoryAttachChange']=_0x3b8cca['id'];}_0x2c7cba['changes']=_0x2c7cba['changes']['concat'](_0x4e3846);}return _0x2c7cba;}['_markMarkers'](_0x3f1036,_0x4c762d){for(let _0xbc2659=0x0;_0xbc2659<_0x3f1036['length'];_0xbc2659++)for(const [_0x9c0761,_0x58f162]of _0x4c762d)!_0x58f162['isCollapsed']&&_0x58f162['start']['isEqual'](_0x3f1036[_0xbc2659]['previousPosition'])&&_0x3f1036[_0xbc2659]['markersStart']['push'](_0x9c0761),_0x58f162['end']['isEqual'](_0x3f1036[_0xbc2659]['nextPosition'])&&_0x3f1036[_0xbc2659]['markersEnd']['push'](_0x9c0761);}['_joinTapes'](_0x3fbcda,_0xc052ee){let _0x29cf37=[],_0xbb2309=0x0,_0x1a21fa=0x0;for(;_0xbb2309<_0x3fbcda['length']||_0x1a21fa<_0xc052ee['length'];){const _0x5c8f0a=_0x3fbcda[_0xbb2309]||{},_0x4940ce=_0xc052ee[_0x1a21fa]||{};if(_0x5c8f0a['id']==_0x4940ce['id'])_0xbb2309++,_0x1a21fa++,_0x29cf37['push'](_0x5c8f0a);else{if(_0x4940ce['isRemoved']&&_0x5c8f0a['isAdded']){const {commonTape:_0x8f1ad8,iEnd:_0x1a1dda,jEnd:_0x3208f9}=this['_threeWayMerge'](_0x3fbcda,_0xbb2309,_0xc052ee,_0x1a21fa);_0x29cf37=_0x29cf37['concat'](_0x8f1ad8),_0xbb2309=_0x1a1dda,_0x1a21fa=_0x3208f9;}else _0x4940ce['isRemoved']?(_0x1a21fa++,_0x29cf37['push'](_0x4940ce)):(_0xbb2309++,_0x29cf37['push'](_0x5c8f0a));}}return _0x29cf37;}['_markSuggestions'](_0x4054d4,_0x34d2cc){const _0x157aa6=[];for(let _0x280e3d=0x0;_0x280e3d<_0x4054d4['length'];_0x280e3d++){for(let _0x30e9c5=0x0;_0x30e9c5<_0x4054d4[_0x280e3d]['markersStart']['length'];_0x30e9c5++){const _0x1e9efa=_0x4054d4[_0x280e3d]['markersStart'][_0x30e9c5];if(!_0x34d2cc['has'](_0x1e9efa))continue;const {group:_0x419bf8,type:_0x31b803,authorId:_0x4b3332}=_0x2fc0d0(_0x1e9efa);'revision-suggestion'!=_0x419bf8||'insertion'!=_0x31b803&&'deletion'!=_0x31b803||(_0x157aa6['unshift']({'type':_0x31b803,'name':_0x1e9efa,'userId':_0x4b3332}),_0x4054d4[_0x280e3d]['markersStart']['splice'](_0x30e9c5,0x1),_0x30e9c5--);}_0x3fb4b7(_0x4054d4[_0x280e3d]);for(let _0x32951c=0x0;_0x32951c<_0x4054d4[_0x280e3d]['markersEnd']['length'];_0x32951c++){const _0x2c2cad=_0x4054d4[_0x280e3d]['markersEnd'][_0x32951c];if(!_0x34d2cc['has'](_0x2c2cad))continue;const {group:_0x2b51bf,type:_0x458313}=_0x2fc0d0(_0x2c2cad);if('revision-suggestion'!=_0x2b51bf||'insertion'!=_0x458313&&'deletion'!=_0x458313)continue;_0x4054d4[_0x280e3d]['markersEnd']['splice'](_0x32951c,0x1),_0x32951c--;const _0x590c1c=_0x157aa6['findIndex'](_0x14d618=>_0x14d618['name']==_0x2c2cad);_0x590c1c>-0x1&&_0x157aa6['splice'](_0x590c1c,0x1);}}function _0x2fc0d0(_0x47f66c){const _0x508768=_0x47f66c['split'](':');return{'group':_0x508768[0x0],'type':_0x508768[0x1],'subType':_0x508768['length']>=0x5?_0x508768[0x2]:null,'id':_0x508768['length']<0x5?_0x508768[0x2]:_0x508768[0x3],'authorId':_0x508768['length']<0x5?_0x508768[0x3]:_0x508768[0x4],'markerCount':0x6==_0x508768['length']?_0x508768[0x5]:null};}function _0x3fb4b7(_0x192f7a){for(let _0x1d4146=0x0;_0x1d4146<_0x157aa6['length'];_0x1d4146++){if(_0x192f7a['isAdded']&&'insertion'==_0x157aa6[_0x1d4146]['type']&&_0x192f7a['isAdded']['userId']==_0x157aa6[_0x1d4146]['userId'])return _0x192f7a['isAddSuggestion']=_0x157aa6[_0x1d4146],void delete _0x192f7a['isAdded'];if(!_0x192f7a['isAdded']&&!_0x192f7a['isRemoved']&&'deletion'==_0x157aa6[_0x1d4146]['type'])return void(_0x192f7a['isRemoveSuggestion']=_0x157aa6[_0x1d4146]);}}}['_setDistance'](_0x2cd9cb,_0x5bc645){let _0x296156=0x0,_0x35b812=!0x1;const _0x13b822=new Map();for(const _0x3351b0 of _0x2cd9cb)_0x3351b0[_0x5bc645]?_0x35b812&&(_0x296156++,_0x35b812=!0x1):(_0x296156++,_0x35b812=!0x0),_0x13b822['set'](_0x3351b0['id'],_0x296156);for(let _0x3f7a14=0x0;_0x3f7a14<_0x2cd9cb['length'];_0x3f7a14++){if('isRemoved'==_0x5bc645&&_0x2cd9cb[_0x3f7a14]['isAdded']||'isAdded'==_0x5bc645&&_0x2cd9cb[_0x3f7a14]['isRemoved'])continue;if('text'==_0x2cd9cb[_0x3f7a14]['type']){_0x2cd9cb[_0x3f7a14]['distance']=0x0;continue;}const _0x20de80=_0x13b822['get'](_0x2cd9cb[_0x3f7a14]['pairId']),_0x3b0954=_0x13b822['get'](_0x2cd9cb[_0x3f7a14]['id']);_0x2cd9cb[_0x3f7a14]['distance']=_0x20de80-_0x3b0954;}}['_getRevisionsRange'](_0x34821c,_0x281231,_0x4c2565=!0x1){const _0x2c6f86=[];let _0x1b60e3=this['repository']['getIndex'](_0x34821c),_0x35a80c=this['repository']['getIndex'](_0x281231);for(-0x1==_0x35a80c&&(_0x35a80c=this['repository']['_revisions']['length'],_0x4c2565=!0x1);_0x1b60e3<_0x35a80c;)_0x2c6f86['push'](this['repository']['getRevision'](_0x1b60e3)),_0x1b60e3++;return _0x4c2565&&_0x2c6f86['push'](this['repository']['getRevision'](_0x1b60e3)),_0x2c6f86;}['_threeWayMerge'](_0x1f2376,_0x2721bb,_0x8ecfd0,_0x550967){const _0x5b5072=this['editor']['model']['schema'];let _0x3ed30a=_0x2721bb;for(;_0x1f2376[_0x3ed30a]&&_0x1f2376[_0x3ed30a]['isAdded'];)_0x3ed30a++;let _0x367fa9=_0x550967;for(;_0x8ecfd0[_0x367fa9]&&_0x8ecfd0[_0x367fa9]['isRemoved'];)_0x367fa9++;_0x1cf577(_0x1f2376,_0x2721bb,_0x3ed30a),_0x1cf577(_0x8ecfd0,_0x550967,_0x367fa9);const _0x465aa4=_0x8ecfd0['slice'](_0x550967,_0x367fa9)['concat'](_0x1f2376['slice'](_0x2721bb,_0x3ed30a));return _0x465aa4['sort']((_0x5582e2,_0x428ceb)=>_0x5582e2['side']!=_0x428ceb['side']?_0x5582e2['side']-_0x428ceb['side']:_0x5582e2['level']!=_0x428ceb['level']?_0x5582e2['level']-_0x428ceb['level']:_0x5582e2['distance']!=_0x428ceb['distance']?_0x428ceb['distance']-_0x5582e2['distance']:!!_0x5582e2['isAdded']!=!!_0x428ceb['isAdded']?-0x1==_0x5582e2['side']||0x0==_0x5582e2['side']?_0x5582e2['isAdded']?-0x1:0x1:_0x5582e2['isAdded']?0x1:-0x1:_0x5582e2['index']-_0x428ceb['index']),{'commonTape':_0x465aa4,'iEnd':_0x3ed30a,'jEnd':_0x367fa9};function _0x1cf577(_0x41ede0,_0x472f27,_0xe62c53){let _0x3c89ad=-0x1,_0x4fd915=Number['POSITIVE_INFINITY'],_0x1a0477=!0x0;for(let _0x11de54=_0x472f27;_0x11de54<_0xe62c53;_0x11de54++)if(_0x5b5072['isInline'](_0x41ede0[_0x11de54]['item'])||(_0x1a0477=!0x1),_0x41ede0[_0x11de54]['item']['startIndex']<_0x472f27&&(_0x3c89ad=_0x11de54),_0x41ede0[_0x11de54]['item']['endIndex']>=_0xe62c53){_0x4fd915=_0x11de54;break;}_0x1a0477&&(_0x3c89ad=_0xe62c53-0x1);for(let _0x58506e=_0x472f27;_0x58506e<_0xe62c53;_0x58506e++)_0x41ede0[_0x58506e]['side']=_0x58506e<=_0x3c89ad?-0x1:_0x58506e<_0x4fd915?0x0:0x1,_0x41ede0[_0x58506e]['index']=_0x58506e;let _0xebb66=0x0;for(let _0x182ea1=_0x472f27;_0x182ea1<=_0x3c89ad;_0x182ea1++)0x0==_0x41ede0[_0x182ea1]['distance']?_0x41ede0[_0x182ea1]['level']=_0xebb66:(_0xebb66++,_0x41ede0[_0x182ea1]['level']=_0xebb66,_0xebb66++);for(let _0x594aec=_0x472f27;_0x594aec<_0xe62c53;_0x594aec++)0x0==_0x41ede0[_0x594aec]['side']&&(_0x41ede0[_0x594aec]['level']=_0xebb66);_0xebb66=0x0;for(let _0x2f3b51=_0xe62c53-0x1;_0x2f3b51>=_0x4fd915;_0x2f3b51--)0x0==_0x41ede0[_0x2f3b51]['distance']?_0x41ede0[_0x2f3b51]['level']=_0xebb66:(_0xebb66--,_0x41ede0[_0x2f3b51]['level']=_0xebb66,_0xebb66--);}}['_fixObsoleteTags'](_0x1791c9){const _0x50c2bc=new Map(),_0x370444=this['editor']['model']['schema'];for(let _0x49f7a2=0x1;_0x49f7a2<_0x1791c9['length'];_0x49f7a2++){let _0x4f5512,_0x59c275,_0x450363;const _0x837588=_0x1791c9[_0x49f7a2],_0x5ebb11=_0x1791c9[_0x49f7a2-0x1];if('text'==_0x837588['type'])continue;if(_0x837588['type']!=_0x5ebb11['type'])continue;if(!_0x370444['isBlock'](_0x5ebb11['item'])||_0x370444['isLimit'](_0x5ebb11['item']))continue;if(!_0x370444['isBlock'](_0x837588['item'])||_0x370444['isLimit'](_0x837588['item']))continue;if((_0x1791c9[_0x49f7a2]['isAdded']||_0x1791c9[_0x49f7a2]['isAddSuggestion'])&&_0x1791c9[_0x49f7a2-0x1]['isRemoved'])_0x4f5512=_0x1791c9[_0x49f7a2],_0x59c275=_0x1791c9[_0x49f7a2-0x1],_0x450363=_0x49f7a2-0x1;else{if(!_0x1791c9[_0x49f7a2]['isRemoved']||!_0x1791c9[_0x49f7a2-0x1]['isAdded']&&!_0x1791c9[_0x49f7a2-0x1]['isAddSuggestion'])continue;_0x4f5512=_0x1791c9[_0x49f7a2-0x1],_0x59c275=_0x1791c9[_0x49f7a2],_0x450363=_0x49f7a2;}const _0xb5387f=_0x4f5512['level']==_0x59c275['level'],_0x3a8a0d=Math['abs'](_0x4f5512['level'])<Math['abs'](_0x59c275['level'])&&0x0==_0x59c275['distance'];(_0xb5387f||_0x3a8a0d)&&(_0x50c2bc['set'](_0x59c275['id'],_0x4f5512['id']),_0x1791c9['splice'](_0x450363,0x1),_0x49f7a2--,_0x4f5512['isAdded']=!0x1);}for(let _0x4185fd=0x0;_0x4185fd<_0x1791c9['length'];_0x4185fd++)_0x50c2bc['has'](_0x1791c9[_0x4185fd]['pairId'])&&(_0x1791c9[_0x4185fd]['pairId']=_0x50c2bc['get'](_0x1791c9[_0x4185fd]['pairId']));}['_removeMissingPairs'](_0x27621e){const _0x2d81c5=new Set(_0x27621e['map'](_0x5182ed=>_0x5182ed['id']));for(let _0x4e5781=0x0;_0x4e5781<_0x27621e['length'];_0x4e5781++)_0x2d81c5['has'](_0x27621e[_0x4e5781]['pairId'])||0x0==_0x27621e[_0x4e5781]['distance']||(_0x27621e[_0x4e5781]['isIncorrect']=!0x0);return _0x27621e['filter'](_0x410dda=>!_0x410dda['isIncorrect']);}['_markMismatchedRemovedTags'](_0x195210){const _0x2aebe4=new Set();for(let _0x41927b=0x0;_0x41927b<_0x195210['length'];_0x41927b++){if(_0x2aebe4['has'](_0x195210[_0x41927b]['id'])&&_0x195210[_0x41927b]['isRemoved']&&(_0x195210[_0x41927b]['isIncorrect']=!0x0),_0x195210[_0x41927b]['isIncorrect'])continue;if(0x0==_0x195210[_0x41927b]['distance'])continue;if('elementStart'!=_0x195210[_0x41927b]['type'])continue;if(null==_0x195210[_0x41927b]['pairId'])continue;let _0x378770=_0x41927b+0x1,_0xa091d2=0x0;for(;_0x195210[_0x378770]['id']!=_0x195210[_0x41927b]['pairId'];)'elementStart'==_0x195210[_0x378770]['type']?_0xa091d2++:'elementEnd'==_0x195210[_0x378770]['type']&&_0xa091d2--,_0x378770++;if(0x0!=_0xa091d2){if(_0x195210[_0x41927b]['isRemoved'])_0x195210[_0x41927b]['isIncorrect']=!0x0;else{for(;_0x378770!=_0x41927b;)_0x195210[_0x378770]['isRemoved']&&0x0!=_0x195210[_0x378770]['distance']&&(_0x195210[_0x378770]['isIncorrect']=!0x0,_0x2aebe4['add'](_0x195210[_0x378770]['pairId'])),_0x378770--;}}}return _0x195210['filter'](_0x30ecc9=>!_0x30ecc9['isIncorrect']);}['_removeUnsupportedChanges'](_0xaf061e){const _0x51eaec=this['editor']['model']['schema'];for(let _0x3bc5af=0x0;_0x3bc5af<_0xaf061e['length'];_0x3bc5af++){if(!(_0xaf061e[_0x3bc5af]['isAdded']||_0xaf061e[_0x3bc5af]['isAddSuggestion']||_0xaf061e[_0x3bc5af]['isRemoved']||_0xaf061e[_0x3bc5af]['isRemoveSuggestion']))continue;if(0x0==_0xaf061e[_0x3bc5af]['distance'])continue;const _0x21f632=_0xaf061e[_0x3bc5af]['item'];_0x51eaec['isBlock'](_0x21f632)||_0x51eaec['isLimit'](_0x21f632)||(_0xaf061e[_0x3bc5af]['isAdded']&&delete _0xaf061e[_0x3bc5af]['isAdded'],_0xaf061e[_0x3bc5af]['isAddSuggestion']&&delete _0xaf061e[_0x3bc5af]['isAddSuggestion'],_0xaf061e[_0x3bc5af]['isRemoveSuggestion']&&delete _0xaf061e[_0x3bc5af]['isRemoveSuggestion'],_0xaf061e[_0x3bc5af]['isRemoved']&&(_0xaf061e[_0x3bc5af]['isIncorrect']=!0x0));}return _0xaf061e['filter'](_0x295389=>!_0x295389['isIncorrect']);}['_makeModelFromTape'](_0x3982a6,_0x27bc85,_0x252e53){const _0x521a53=new _0x5b40d3(),_0x2983c2=[],_0x18ce96=new Map(),_0x2612cc=this['editor']['model'],_0x3a0223=_0x2612cc['schema'],_0x32301e=[_0x521a53],_0xbb58ad={},_0x1e8b6d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x12d634=null;const _0x3b002b=[0x0];for(let _0x38cca7=0x0;_0x38cca7<_0x3982a6['length'];_0x38cca7++)if('elementStart'===_0x3982a6[_0x38cca7]['type']){_0x3982a6[_0x38cca7]['previousPosition']=_0x2612cc['createPositionFromPath'](_0x521a53,_0x3b002b);const _0x23fde0=new _0x5a3bc2(_0x3982a6[_0x38cca7]['item']['name'],_0x3982a6[_0x38cca7]['item']['getAttributes']());_0x32301e[0x0]['_appendChild'](_0x23fde0),_0x3b002b['push'](0x0),_0x32301e['unshift'](_0x23fde0),_0x3982a6[_0x38cca7]['nextPosition']=_0x2612cc['createPositionFromPath'](_0x521a53,_0x3b002b);}else'elementEnd'===_0x3982a6[_0x38cca7]['type']?(_0x32301e['shift'](),_0x3982a6[_0x38cca7]['previousPosition']=_0x2612cc['createPositionFromPath'](_0x521a53,_0x3b002b),_0x3b002b['pop'](),_0x3b002b[_0x3b002b['length']-0x1]++,_0x3982a6[_0x38cca7]['nextPosition']=_0x2612cc['createPositionFromPath'](_0x521a53,_0x3b002b)):(_0x3982a6[_0x38cca7]['previousPosition']=_0x2612cc['createPositionFromPath'](_0x521a53,_0x3b002b),_0x12d634?_0x12d634['_data']+=_0x3982a6[_0x38cca7]['item']['data']:_0x12d634=new _0x40ee9b(_0x3982a6[_0x38cca7]['item']['data'],_0x3982a6[_0x38cca7]['item']['getAttributes']()),_0x3982a6[_0x38cca7+0x1]&&'text'===_0x3982a6[_0x38cca7+0x1]['type']&&_0x4b8454(_0x12d634,_0x3982a6[_0x38cca7+0x1]['item'])||(_0x32301e[0x0]['_appendChild'](_0x12d634),_0x12d634=null),_0x3b002b[_0x3b002b['length']-0x1]+=_0x3982a6[_0x38cca7]['item']['offsetSize'],_0x3982a6[_0x38cca7]['nextPosition']=_0x2612cc['createPositionFromPath'](_0x521a53,_0x3b002b));for(let _0x19d4d7=0x0;_0x19d4d7<_0x3982a6['length'];_0x19d4d7++){const _0x5ae0be=_0x3982a6[_0x19d4d7]['previousPosition'],_0x1ae726=_0x3982a6[_0x19d4d7]['nextPosition'];for(const _0x4510df of _0x3982a6[_0x19d4d7]['markersStart'])_0x18ce96['set'](_0x4510df,{'start':_0x5ae0be,'end':null});_0x286520('isRemoveSuggestion',_0x19d4d7,_0x5ae0be,_0x1ae726),_0x286520('isAddSuggestion',_0x19d4d7,_0x5ae0be,_0x1ae726),_0x286520('isRemoved',_0x19d4d7,_0x5ae0be,_0x1ae726),_0x286520('isAdded',_0x19d4d7,_0x5ae0be,_0x1ae726);for(const _0x55f14b of _0x3982a6[_0x19d4d7]['markersEnd']){const _0x53a19a=_0x18ce96['get'](_0x55f14b);_0x53a19a?_0x53a19a['end']=_0x1ae726:_0x18ce96['set'](_0x55f14b,{'start':_0x1ae726,'end':_0x1ae726});}}for(const [_0x415891,_0x1ad802]of _0x18ce96){const _0x38ec8a=this['editor']['model']['createRange'](_0x1ad802['start'],_0x1ad802['end']);_0x521a53['markers']['set'](_0x415891,_0x38ec8a);}return _0x2983c2['sort']((_0x37599d,_0x476812)=>{const _0x56c5cf=_0x521a53['markers']['get']('revision:'+_0x37599d['id']),_0x216d1c=_0x521a53['markers']['get']('revision:'+_0x476812['id']);return _0x56c5cf['start']['isBefore'](_0x216d1c['start'])?-0x1:_0x56c5cf['start']['isAfter'](_0x216d1c['start'])?0x1:_0x56c5cf['end']['isBefore'](_0x216d1c['end'])?-0x1:_0x56c5cf['end']['isAfter'](_0x216d1c['end'])?0x1:'add'===_0x37599d['type']?-0x1:0x1;}),{'root':_0x521a53,'changes':_0x2983c2};function _0x286520(_0x29b877,_0x36cae5,_0x43b8c7,_0x4392d6){const _0x2419c2=!!_0x3982a6[_0x36cae5][_0x29b877],_0x15508e=_0x2419c2?_0x3982a6[_0x36cae5][_0x29b877]['userId']:null,_0x52f0cf=_0x36cae5===_0x3982a6['length']-0x1,_0x2c808b=_0x1e8b6d[_0x29b877][0x0],_0x19de13=_0x3a0223['isObject'](_0x3982a6[_0x36cae5]['item']);!_0xbb58ad[_0x29b877]&&_0x2419c2?_0xbb58ad[_0x29b877]={'start':_0x43b8c7,'tapeItem':_0x3982a6[_0x36cae5],'userId':_0x15508e,'type':_0x29b877}:_0xbb58ad[_0x29b877]&&!_0x2419c2?(_0xbb58ad[_0x29b877]['end']=_0x43b8c7,_0x4f1c19(_0xbb58ad[_0x29b877]),_0xbb58ad[_0x29b877]=null):_0xbb58ad[_0x29b877]&&_0x2419c2&&_0xbb58ad[_0x29b877]['userId']!==_0x15508e&&(_0xbb58ad[_0x29b877]['end']=_0x43b8c7,_0x2c808b&&_0x2c808b['userId']===_0xbb58ad[_0x29b877]['userId']||_0x4f1c19(_0xbb58ad[_0x29b877]),_0xbb58ad[_0x29b877]={'start':_0x43b8c7,'tapeItem':_0x3982a6[_0x36cae5],'userId':_0x15508e,'type':_0x29b877}),_0xbb58ad[_0x29b877]&&_0x19de13&&('elementStart'!==_0x3982a6[_0x36cae5]['type']||_0x2c808b&&_0x2c808b['userId']===_0x15508e||_0x1e8b6d[_0x29b877]['unshift']({'userId':_0x15508e,'object':_0x3982a6[_0x36cae5]['item'],'change':_0xbb58ad[_0x29b877]}),'elementEnd'===_0x3982a6[_0x36cae5]['type']&&_0x2c808b&&_0x2c808b['object']===_0x3982a6[_0x36cae5]['item']&&(_0x1e8b6d[_0x29b877]['shift'](),_0xbb58ad[_0x29b877]=_0x2c808b['change'])),_0xbb58ad[_0x29b877]&&_0x52f0cf&&(_0xbb58ad[_0x29b877]['end']=_0x4392d6,_0x4f1c19(_0xbb58ad[_0x29b877]),_0xbb58ad[_0x29b877]=null);}function _0x4f1c19({start:_0x2a5386,end:_0x55480b,tapeItem:_0x5646a4,userId:_0x2ae208,type:_0x2317fc}){const _0x5f46e=_0x5646a4['item'],_0x310a6a=_0x2612cc['schema']['isBlock'](_0x5f46e)&&!_0x2612cc['schema']['isLimit'](_0x5f46e),_0x150812=_0x2a5386['nodeAfter']==_0x55480b['parent']&&_0x55480b['isAtStart'];if(_0x310a6a&&_0x150812)return;const _0x3eb0db=_0x2612cc['createRange'](_0x2a5386,_0x55480b),_0x4c9739=_0x27bc85['get'](_0x2ae208),_0x1c7456=new G({'author':_0x4c9739,'type':'isAdded'==_0x2317fc||'isAddSuggestion'==_0x2317fc?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2317fc||'isRemoveSuggestion'==_0x2317fc},'createdAt':new Date(),'rootName':_0x252e53});_0x2983c2['push'](_0x1c7456),_0x521a53['markers']['set']('revision:'+_0x1c7456['id'],_0x3eb0db);}function _0x4b8454(_0x2df1be,_0x3d4553){const _0x3925f5=_0x2df1be['getAttributes'](),_0x551e0e=_0x3d4553['getAttributes']();for(const _0x119ae1 of _0x3925f5){if(_0x119ae1[0x1]!==_0x3d4553['getAttribute'](_0x119ae1[0x0]))return!0x1;_0x551e0e['next']();}return _0x551e0e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4ddd42=>{const _0x413afc=_0x4ddd42['markerName']['split'](':')[0x1],_0x1b0f7b=this['_getChangeFromId'](_0x413afc);if(!_0x1b0f7b)return null;const _0x5b8a4c='add'==_0x1b0f7b['type']?'insertion':'deletion',_0x1278fe=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5b8a4c];return _0x1b0f7b['data']['isSuggestion']&&_0x1278fe['push']('ck-suggestion-marker-'+_0x5b8a4c+'-new'),this['activeChange']==_0x1b0f7b&&_0x1278fe['push']('ck-suggestion-marker--active'),{'classes':_0x1278fe,'attributes':{'data-change-id':_0x413afc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x20e657=>{_0x20e657['on']('element:pre',(_0x143e5e,_0x17005c,_0x39c2fd)=>{const _0x84ae3b=_0x17005c['viewItem']['getChild'](0x0);if(!_0x84ae3b||!_0x84ae3b['is']('element','code'))return;if(!_0x39c2fd['consumable']['consume'](_0x84ae3b,{'attributes':['vid_start','vid_end']}))return;const _0x55ebea=_0x17005c['modelRange']['start']['nodeAfter'];_0x39c2fd['writer']['setAttribute']('vid_start',_0x84ae3b['getAttribute']('vid_start'),_0x55ebea),_0x39c2fd['writer']['setAttribute']('vid_end',_0x84ae3b['getAttribute']('vid_end'),_0x55ebea);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x143f8c=>{_0x143f8c['on']('element',(_0x3cc31e,_0x411c2d,_0x5ca186)=>{if(!_0x5ca186['consumable']['consume'](_0x411c2d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x411c2d['modelRange']['isCollapsed'])return;const _0x70dbe8=_0x411c2d['modelRange']['start']['nodeAfter'];_0x70dbe8['hasAttribute']('vid_start')||_0x70dbe8['hasAttribute']('vid')||(_0x5ca186['writer']['setAttribute']('vid_start',_0x411c2d['viewItem']['getAttribute']('vid_start'),_0x70dbe8),_0x5ca186['writer']['setAttribute']('vid_end',_0x411c2d['viewItem']['getAttribute']('vid_end'),_0x70dbe8));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4efde2=>_0x4efde2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4ddfc6,[,_0x47e706])=>{['vid_start','vid_end','vid']['includes'](_0x47e706)&&(_0x4ddfc6['return']=!0x0,_0x4ddfc6['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xb83662=>{_0xb83662['on']('attribute:vid',(_0x1ba793,_0x34e221,_0x5ba8f0)=>{if('\x20'!=_0x34e221['item']['data']||_0x34e221['item']['parent']['maxOffset']>0x1)return;if(!_0x5ba8f0['consumable']['consume'](_0x34e221['item'],_0x1ba793['name']))return;const _0x57fcfc=_0x5ba8f0['writer'],_0x1c8ffa=_0x5ba8f0['mapper']['toViewRange'](_0x34e221['range']);_0x57fcfc['wrap'](_0x1c8ffa,_0x57fcfc['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x525226){const _0x325912=_0x525226['plugins']['get']('RevisionViewer');return(_0x34cc52,_0x412e55,_0xc2c549)=>{const _0xf34ed6=_0x412e55['markerName']['split'](':')[0x1],_0x4f3513=_0x325912['_getChangeFromId'](_0xf34ed6);if(!_0x4f3513)return null;const _0x23ea57='add'==_0x4f3513['type']?'split':'merge';if(!_0xc2c549['consumable']['test'](_0x412e55['markerRange'],_0x34cc52['name']))return;const _0x2b55a0=_0x412e55['markerRange']['getWalker'](),_0x1c6778=_0x412e55['markerRange']['start'],_0x5c77ea=_0x525226['model']['schema'];let _0x3c9329=null,_0x342f00=null,_0x4cb6c7=!0x1,_0x417813=!0x1;for(const _0x1f8736 of _0x2b55a0){const _0x2fe265=_0x1f8736['item'];_0x4cb6c7=_0x4cb6c7||_0x5c77ea['isContent'](_0x2fe265);const _0x3204b8=_0xc2c549['mapper']['toViewElement'](_0x2fe265);if(_0x3204b8&&_0x3204b8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f8736['type']&&(_0x5c77ea['isBlock'](_0x2fe265)&&!_0x5c77ea['isLimit'](_0x2fe265)&&(_0x2fe265['nextSibling']||_0x1c6778['isAtEnd']?_0x3c9329&&_0x3c9329['parent']==_0x2fe265||(_0x3c9329=_0x2fe265,_0x37a59f(_0x1f8736['previousPosition']),_0x417813=!0x0):_0x342f00=_0x342f00||_0x1f8736['previousPosition']));}function _0x37a59f(_0x5b1c32){const _0x207d6c=_0xc2c549['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23ea57}),_0x418b6e=_0xc2c549['mapper']['toViewPosition'](_0x5b1c32);_0x4f3513['data']['isSuggestion']&&_0xc2c549['writer']['addClass']('ck-suggestion-marker-'+_0x23ea57+'-new',_0x207d6c),_0x325912['activeChange']==_0x4f3513&&_0xc2c549['writer']['addClass']('ck-suggestion-marker--active',_0x207d6c),_0xc2c549['writer']['insert'](_0x418b6e,_0x207d6c),_0xc2c549['mapper']['bindElementToMarker'](_0x207d6c,_0x412e55['markerName']);}_0x4cb6c7||_0x417813||!_0x342f00||_0x37a59f(_0x342f00);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x118db8,_0x1bf2a7,_0x4968c3)=>{const _0x5a05a5=_0x4968c3['mapper']['markerNameToElements'](_0x1bf2a7['markerName']);if(_0x5a05a5){for(const _0x386120 of _0x5a05a5)(_0x386120['hasClass']('ck-suggestion-marker-split')||_0x386120['hasClass']('ck-suggestion-marker-merge'))&&(_0x4968c3['mapper']['unbindElementFromMarkerName'](_0x386120,_0x1bf2a7['markerName']),_0x4968c3['writer']['remove'](_0x386120));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x16bf3a,_0x4b0d11,_0x2b0023)=>{const _0xdca4e0=_0x4b0d11['markerName']['split'](':')[0x1],_0x1471e6=this['_getChangeFromId'](_0xdca4e0);if(!_0x1471e6)return null;const _0x226709='add'==_0x1471e6['type']?'split':'merge';if(_0x2b0023['consumable']['test'](_0x4b0d11['markerRange'],_0x16bf3a['name']))for(const _0x5ca3c4 of _0x4b0d11['markerRange']['getItems']()){if(!_0x5ca3c4['is']('element','softBreak'))continue;const _0x5b2e17=_0x2b0023['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x226709}),_0x311292=_0x2b0023['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5ca3c4));_0x1471e6['data']['isSuggestion']&&_0x2b0023['writer']['addClass']('ck-suggestion-marker-'+_0x226709+'-new',_0x5b2e17),this['activeChange']==_0x1471e6&&_0x2b0023['writer']['addClass']('ck-suggestion-marker--active',_0x5b2e17),_0x2b0023['writer']['insert'](_0x311292,_0x5b2e17),_0x2b0023['mapper']['bindElementToMarker'](_0x5b2e17,_0x4b0d11['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x144061=>{for(const _0x5d0e7a of this['editor']['model']['document']['getRootNames']()){const _0x1522a7=this['editor']['model']['document']['getRoot'](_0x5d0e7a),_0xa398b3=this['editor']['editing']['view']['document']['getRoot'](_0x5d0e7a);if(_0xa398b3){const _0x2bb4f5=_0x1522a7['getAttribute']('revisionHistoryAttachChange');if(_0x144061['removeAttribute']('data-change-id',_0xa398b3),_0x144061['removeClass']('ck-revision-history-root-add',_0xa398b3),_0x144061['removeClass']('ck-revision-history-root-remove',_0xa398b3),_0x144061['removeClass']('ck-revision-history-root--active',_0xa398b3),_0x2bb4f5){const _0x152cdf=this['_getChangeFromId'](_0x2bb4f5);if(!_0x152cdf)return null;_0x144061['setAttribute']('data-change-id',_0x2bb4f5,_0xa398b3),_0x144061['addClass']('ck-revision-history-root-'+_0x152cdf['type'],_0xa398b3),this['activeChange']==_0x152cdf&&_0x144061['addClass']('ck-revision-history-root--active',_0xa398b3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xafad35=>'revision-comment:'+_0xafad35,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4b0a4c=>'revision-suggestion:'+_0x4b0a4c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x27b10c=>({'name':'suggestion:'+_0x27b10c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xe748a5=>{const _0xa83afd=_0xe748a5['markerName']['split'](':')[0x1];return'insertion'!=_0xa83afd&&'deletion'!=_0xa83afd?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xa83afd]};}}),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',(_0x1ffd4a,_0x23cd0b,_0x53f5cb)=>{const _0x20b789=_0x53f5cb['mapper']['markerNameToElements'](_0x23cd0b['markerName']);if(_0x20b789){for(const _0x573d2f of _0x20b789)_0x573d2f['is']('uiElement')&&(_0x53f5cb['mapper']['unbindElementFromMarkerName'](_0x573d2f,_0x23cd0b['markerName']),_0x53f5cb['writer']['remove'](_0x573d2f));}},{'priority':'high'});}['_getChangeFromId'](_0xbd1d9f){return this['_changeIdToChange']['get'](_0xbd1d9f);}['_getViewForChange'](_0x596508){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x596508),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x77171d,_0x399fc6,_0x16a01e,_0x1264bc)=>{_0x1264bc&&this['_balloon']['remove'](_0x1264bc),_0x16a01e&&(this['_balloon']['add']({'view':_0x16a01e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1d4173=this['editor']['editing'],_0x8a5d1b=this['_getChangeFromId'](_0x16a01e['changeId']);let _0x244ec0;if(_0x8a5d1b['data']['isOnRoot']){const _0x20a939=_0x1d4173['view']['getDomRoot'](_0x8a5d1b['rootName']);_0x244ec0=Array['from'](_0x20a939['getClientRects']());}else{const _0x1148ed=this['editor']['model']['markers']['get']('revision:'+_0x16a01e['changeId']);_0x244ec0=Array['from'](_0x1d4173['mapper']['markerNameToElements'](_0x1148ed['name']))['map'](_0x3bb621=>_0x1d4173['view']['domConverter']['mapViewToDom'](_0x3bb621))['map'](_0x36754d=>Array['from'](_0x36754d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x244ec0[0x0];return _0x244ec0['find'](_0x4cd364=>_0x4cd364['top']-0x3<=this['_activeViewTarget']['y']&&_0x4cd364['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4cd364['left']-0x3<=this['_activeViewTarget']['x']&&_0x4cd364['right']+0x3>=this['_activeViewTarget']['x'])||_0x244ec0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5aaadf,_0x4e54a0,_0x1a9b0e,_0x5d328a)=>{this['activeView']=_0x1a9b0e?this['_getViewForChange'](_0x1a9b0e):null,this['editor']['model']['change'](()=>{const _0x56abdd=this['editor']['editing'];_0x5d328a&&(_0x5d328a['data']['isOnRoot']?_0x56abdd['view']['change'](_0x1b3f31=>{_0x1b3f31['removeClass']('ck-revision-history-root--active',_0x56abdd['view']['document']['getRoot'](_0x5d328a['rootName']));}):_0x56abdd['reconvertMarker']('revision:'+_0x5d328a['id'])),_0x1a9b0e&&(_0x1a9b0e['data']['isOnRoot']?_0x56abdd['view']['change'](_0x13d92b=>{_0x13d92b['addClass']('ck-revision-history-root--active',_0x56abdd['view']['document']['getRoot'](_0x1a9b0e['rootName']));}):_0x56abdd['reconvertMarker']('revision:'+_0x1a9b0e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5decf6,_0xab9463)=>{if(this['activeChange'])return;const _0x3d9ca6=this['_findChangeIdFromDomTarget'](_0xab9463['target']),_0x21c55d=this['_changeIdToChange']['get'](_0x3d9ca6);_0x21c55d?(this['_activeViewTarget']={'x':_0xab9463['domEvent']['x'],'y':_0xab9463['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x21c55d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x314691,_0x4362b9)=>{const _0x2ed49f=this['_findChangeIdFromDomTarget'](_0x4362b9['target']),_0x42ce05=this['_changeIdToChange']['get'](_0x2ed49f);_0x42ce05?(this['_activeViewTarget']={'x':_0x4362b9['domEvent']['x'],'y':_0x4362b9['domEvent']['y']},_0x42ce05===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x42ce05):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x579067){do{const _0x1c010a=_0x579067['getAttribute']('data-change-id');if(_0x1c010a)return _0x1c010a;_0x579067=_0x579067['parent'];}while(_0x579067);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3d17ce=>{for(const _0x420424 of this['editor']['model']['markers'])_0x3d17ce['removeMarker'](_0x420424);});}}function Q(_0x35b7f6,_0x386a5f){return(_0x5edc22,_0x2ed360,_0x1f48d2)=>{if(!_0x1f48d2['consumable']['test'](_0x2ed360['markerRange'],_0x5edc22['name']))return;const _0xb2608b=_0x2ed360['markerRange']['getWalker'](),_0x50fc77=_0x2ed360['markerRange']['start'],_0x5459e2=_0x35b7f6['model']['schema'];let _0x36b52a=null,_0x333d4c=null,_0x499354=!0x1,_0x4dac5e=!0x1;for(const _0x1bcda2 of _0xb2608b){const _0x121e26=_0x1bcda2['item'];_0x499354=_0x499354||_0x5459e2['isContent'](_0x121e26);const _0xc49535=_0x1f48d2['mapper']['toViewElement'](_0x121e26);if(_0xc49535&&_0xc49535['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1bcda2['type']&&(_0x5459e2['isBlock'](_0x121e26)&&!_0x5459e2['isLimit'](_0x121e26)&&(_0x121e26['nextSibling']||_0x50fc77['isAtEnd']?_0x36b52a&&_0x36b52a['parent']==_0x121e26||(_0x36b52a=_0x121e26,_0x53086e(_0x1bcda2['previousPosition']),_0x4dac5e=!0x0):_0x333d4c=_0x333d4c||_0x1bcda2['previousPosition']));}function _0x53086e(_0x348823){const _0x289782=_0x1f48d2['mapper']['toViewPosition'](_0x348823),_0x46f25b=_0x1f48d2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x386a5f});_0x1f48d2['writer']['insert'](_0x289782,_0x46f25b),_0x1f48d2['mapper']['bindElementToMarker'](_0x46f25b,_0x2ed360['markerName']);}_0x499354||_0x4dac5e||!_0x333d4c||_0x53086e(_0x333d4c);};}class nt extends _0x53290d{constructor(_0x20e498){super(_0x20e498);const _0x22d578=_0x20e498['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x22d578,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x22d578,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x587571=this['editor'],_0x3d1128=_0x587571['plugins']['get'](l),_0x55f21e=_0x3d1128['isReady']?_0x3d1128['diff']['newRevisionId']:null;_0x587571['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x55f21e);}['refresh'](){const {isReady:_0x79269a,isEnabled:_0xadd49a,repository:_0x1a8319,diff:_0x24ab77}=this['editor']['plugins']['get'](l),_0x276806=_0x24ab77&&_0x1a8319['getLaterVisibleRevision'](_0x24ab77['newRevisionId']);this['isEnabled']=_0x79269a&&_0xadd49a&&Boolean(_0x276806);}}class ot extends _0x53290d{['_step'];constructor(_0x311d09,{direction:_0xbce999}){super(_0x311d09);const _0x13ea1f=_0x311d09['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0xbce999?0x1:-0x1,this['listenTo'](_0x13ea1f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x13ea1f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x13ea1f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x32811e=this['editor'],_0x1f36a1=_0x32811e['plugins']['get'](l),{isNavigationMode:_0x30bad8,currentChangeNumber:_0x359042}=_0x1f36a1;let _0x59fe51;if(_0x1f36a1['activeChange']=_0x30bad8?_0x1f36a1['diff']['changes']['get'](_0x359042+this['_step']):_0x1f36a1['diff']['changes']['first'],_0x1f36a1['activeChange']['data']['isOnRoot'])_0x59fe51=_0x32811e['editing']['view']['getDomRoot'](_0x1f36a1['activeChange']['rootName']);else{const _0x391cfb=_0x32811e['model']['markers']['get']('revision:'+_0x1f36a1['activeChange']['id']);_0x59fe51=_0x53ffc2(_0x32811e['editing'],_0x391cfb);}_0x53e700({'target':_0x59fe51,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x14da02,currentChangeNumber:_0x355580,numberOfChanges:_0x9c0637,isReady:_0x173d16,isEnabled:_0x6e2a1d}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x6e2a1d&&_0x173d16&&_0x9c0637)&&(!_0x14da02||(0x1===this['_step']?_0x355580<_0x9c0637-0x1:_0x355580>0x0));}}class Ri extends _0x5b9845{constructor(_0x459ca4){super(_0x459ca4);const _0x464669=this['bindTemplate'],_0x2640be=new _0x13d813(_0x459ca4),_0x1ab6ea=new _0x13d813(_0x459ca4);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',(_0x22c59e,_0x230189)=>_0x22c59e&&_0x230189>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1c22c6,_0x53f1b8,_0x1e0382,_0x33bf3d)=>{if(!_0x1c22c6)return R(_0x459ca4,'Loading...');if(!_0x1e0382)return R(_0x459ca4,'No\x20changes');const _0x18b8d7=R(_0x459ca4,'NUMBER_OF_CHANGES',_0x1e0382);return _0x33bf3d?R(_0x459ca4,'X_OF_Y_CHANGES',[_0x53f1b8+0x1,_0x1e0382]):_0x18b8d7;}),_0x2640be['set']({'label':R(_0x459ca4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3dc766}),_0x1ab6ea['set']({'label':R(_0x459ca4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1ce1a9}),_0x2640be['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1ab6ea['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2640be['on']('execute',()=>this['fire']('execute','backward')),_0x1ab6ea['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',_0x464669['if']('_isStatusLabelVisible','ck-hidden',_0x84faef=>!_0x84faef)]},'children':[{'text':_0x464669['to']('isNavigationMode',_0x4b81c0=>_0x4b81c0?R(_0x459ca4,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x459ca4,'Total')+':\x20')}]},{'text':_0x464669['to']('_statusText')}]},new _0x4fb74f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2640be,_0x1ab6ea]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x54fe5b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4670cd=this['editor']['editing']['view'];_0x4670cd['change'](_0x4276da=>{for(const _0x3c2111 of _0x4670cd['document']['roots'])_0x4276da['addClass'](ge,_0x3c2111);});}['hide'](){const _0x1ff79d=this['editor']['editing']['view'];_0x1ff79d['change'](_0xbf6ebc=>{for(const _0x866670 of _0x1ff79d['document']['roots'])_0xbf6ebc['removeClass'](ge,_0x866670);});}}class u extends _0x54fe5b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x4f479e=this['editor'],_0x587315=_0x4f479e['plugins']['get'](l),_0x71749e=_0x4f479e['plugins']['get'](ji);_0x4f479e['ui']['componentFactory']['add']('exitToEditing',_0x4b943f=>{const _0x5db767=new _0x13d813(_0x4b943f);return _0x5db767['set']({'label':R(_0x4b943f,'Back\x20to\x20editing'),'icon':_0x3c4bc3,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5db767,'execute',()=>{_0x4f479e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5db767;}),_0x4f479e['ui']['componentFactory']['add']('restoreRevision',_0x188f1b=>{const _0x9d84ed=new _0x13d813(_0x188f1b);return _0x9d84ed['set']({'label':R(_0x188f1b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x9d84ed['bind']('isEnabled')['to'](_0x4f479e['commands']['get']('restoreRevision')),this['listenTo'](_0x9d84ed,'execute',()=>_0x4f479e['execute']('restoreRevision')),_0x9d84ed;}),_0x4f479e['ui']['componentFactory']['add']('changesNavigation',_0x45b76e=>{const _0xa769a8=new Ri(_0x45b76e),_0x2087b6=_0x4f479e['commands']['get']('showPreviousChange'),_0x109ede=_0x4f479e['commands']['get']('showNextChange');return _0xa769a8['bind']('isBackwardNavigationEnabled')['to'](_0x2087b6,'isEnabled'),_0xa769a8['bind']('isForwardNavigationEnabled')['to'](_0x109ede,'isEnabled'),_0xa769a8['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x587315),this['listenTo'](_0xa769a8,'execute',(_0x15269d,_0x29146a)=>{_0x4f479e['execute']('forward'===_0x29146a?'showNextChange':'showPreviousChange');}),_0xa769a8;}),_0x71749e['show'](),_0x587315['on']('change:isReady',(_0x603a9b,_0xb9d89b,_0x29267c)=>{_0x29267c?_0x71749e['hide']():_0x71749e['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x526a3d,_0x10a4a2){super(_0x526a3d,_0x10a4a2);const _0x37bb9b=this['bindTemplate'];this['set']({'label':R(_0x526a3d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x526a3d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x37bb9b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x52d239=this['fieldView']['element'];this['_tooltipString']=_0x52d239['scrollWidth']>_0x52d239['clientWidth']&&_0x52d239['value']||'';}}class vi extends _0x5b9845{constructor(_0x50d4ea,_0x3bfffc,_0x3c2fe5){super(_0x50d4ea);const _0x19f88d=new _0x4bdfc1();_0x19f88d['set']({'content':_0x20843d,'viewBox':'0\x200\x2011\x2010'});const _0x4a8bba=['ck','ck-revision-history-sidebar__revision-author'];_0x3c2fe5&&_0x4a8bba['push']('ck-revision-history-sidebar__revision-author_creator');const _0x19e620=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x50d4ea,_0x3c2fe5?'Revision\x20creator':'Revision\x20author')},'children':[_0x19f88d,_0x3bfffc['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4a8bba},'children':_0x19e620});}}function mi(_0x5d86fa,_0x48a236){const _0xaecfe6=_0x5d86fa['bindTemplate'],_0x7f1e3c=_0x5d86fa['locale'],_0x30d90b=_0x3304c7(_0x7f1e3c);_0x30d90b['panelPosition']='sw';const _0x263976=function(_0x24d52b,_0x4dbacb){const _0x227567=function(_0xa33fcb,_0x2f3bf1){const _0x121a29=_0xa33fcb['locale'],_0x66dfbc={'Compare\x20against\x20selected':R(_0x121a29,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x121a29,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x121a29,'Restore\x20this\x20revision')};return _0x2f3bf1['map'](_0x502341=>{const _0x4e2770=_0x66dfbc[_0x502341['name']];return _0x4e2770&&_0x4e2770!==_0x502341['name']&&(_0x502341['name']=_0x4e2770),_0x502341;});}(_0x24d52b,_0x4dbacb),_0x5ac694=new _0x2b4e5c();for(const _0x58be36 of _0x227567){const _0xcf8b7c={'type':'button','model':new to({'label':_0x58be36['name'],'class':_0x58be36['class'],'withText':!0x0,'role':'menuitem','_action':_0x58be36['action']})};_0xcf8b7c['model']['bind']('isEnabled')['to'](_0x24d52b,'isActionsDropdownOpen',_0x2bd942=>'function'!=typeof _0x58be36['isEnabled']||(!_0x2bd942||_0x58be36['isEnabled'](_0x24d52b))),_0x5ac694['add'](_0xcf8b7c);}return _0x5ac694;}(_0x5d86fa,_0x48a236);return _0x5d86fa['bind']('isActionsDropdownOpen')['to'](_0x30d90b,'isOpen'),_0x30d90b['buttonView']['set']({'label':R(_0x7f1e3c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3a89ee}),_0x30d90b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xaecfe6['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xaecfe6['to'](_0x5ddaae=>_0x5ddaae['stopPropagation']())}}),_0x30d90b['on']('execute',_0x15c6b2=>{_0x5d86fa['isReady']&&'function'==typeof _0x15c6b2['source']['_action']&&_0x15c6b2['source']['_action'](_0x5d86fa);}),_0x42fbf9(_0x30d90b,_0x263976,{'role':'menu'}),_0x30d90b['listenTo'](_0x5d86fa,'change:isActionsDropdownOpen',(_0x39e158,_0x26cc77,_0x39819a)=>{if(_0x39819a)for(const _0x54acc0 of _0x30d90b['listView']['items']){const _0x23d1a2=_0x54acc0['children']['first'],_0x3d2962=_0x48a236['find'](_0x33849e=>_0x33849e['action']===_0x23d1a2['_action'])['isVisible'];_0x54acc0['isVisible']=void 0x0===_0x3d2962||_0x3d2962(_0x5d86fa);}}),_0x30d90b;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0xdaf19f(_0x5b9845){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x57d804,_0x20e16e,_0x5f19db,_0x455338){super(_0x57d804);const _0x6cfefa=this['bindTemplate'],_0x30ec11=function(_0x5ad11c,_0x1261fd){const _0x4786f7=Array['from'](_0x1261fd['authors'])['filter'](_0x5ab558=>_0x5ab558!=_0x1261fd['creator']);return _0x1261fd['creator']&&_0x4786f7['unshift'](_0x1261fd['creator']),_0x4786f7['map'](_0x5dddec=>new vi(_0x5ad11c,_0x5dddec,_0x5dddec==_0x1261fd['creator']));}(_0x57d804,_0x20e16e);this['id']=_0x20e16e['id'],this['_revision']=_0x20e16e,this['_requireRevisionName']=_0x455338,this['bind']('name','createdAt')['to'](_0x20e16e),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1f2160=>{return _0x4a4546=_0x57d804['uiLanguage'],(_0x12a643=_0x1f2160)['toLocaleDateString'](_0x4a4546,{'month':'long','day':'numeric'})+',\x20'+_0x12a643['toLocaleTimeString'](_0x4a4546,{'hour':'numeric','minute':'numeric'});var _0x4a4546,_0x12a643;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x57d804,_0x413488),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4ef05e=>_0x4ef05e||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4a0cec,_0x30156d)=>_0x4a0cec&&_0x30156d),this['revisionActionsView']=_0x5f19db&&_0x5f19db['length']?mi(this,_0x5f19db):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x6cfefa['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x6cfefa['if']('isEnabled','ck-disabled',_0x113ffc=>!_0x113ffc),_0x6cfefa['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x6cfefa['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x6cfefa['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':_0x6cfefa['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':_0x30ec11}]},this['revisionActionsView']],'on':{'click':_0x6cfefa['to'](_0x3e9f21=>{_0x3e9f21['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x40416c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x40416c,'change',()=>{this['_requireRevisionName']&&!_0x40416c['value']||this['fire']('setName',{'id':this['id'],'name':_0x40416c['value']}),_0x40416c['value']||(_0x40416c['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x2f2f23,_0x5ae00c){const _0x286f1f=_0x577fd7['fromJSDate'](_0x2f2f23)['setLocale'](_0x5ae00c),_0x4bfb3e=_0x577fd7['local'](),_0x7f4f5e=_0x4bfb3e['minus']({'days':0x1})['startOf']('day');let _0x366969,_0x15edea;return _0x286f1f['hasSame'](_0x4bfb3e,'day')?(_0x366969=_0x286f1f['startOf']('day')['toJSDate'](),_0x15edea=_0x286f1f['toRelativeCalendar']()):_0x286f1f['hasSame'](_0x7f4f5e,'day')?(_0x366969=_0x7f4f5e['toJSDate'](),_0x15edea=_0x286f1f['toRelativeCalendar']()):_0x286f1f['hasSame'](_0x4bfb3e,'week')?(_0x366969=_0x286f1f['startOf']('week')['toJSDate'](),_0x15edea=_0x286f1f['weekdayLong']||''):_0x286f1f['hasSame'](_0x4bfb3e,'year')?(_0x366969=_0x286f1f['startOf']('month')['toJSDate'](),_0x15edea=_0x286f1f['monthLong']||''):(_0x366969=_0x286f1f['startOf']('year')['toJSDate'](),_0x15edea=String(_0x286f1f['year'])),{'startDate':_0x366969,'localizedPeriodName':_0x15edea};}class fi extends _0x5b9845{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xcdd762,_0x5744b7,_0xb00a05,_0x3488ed){super(_0xcdd762);const _0x5fe87a=bi(_0x5744b7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5744b7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xb00a05,this['_requireRevisionName']=_0x3488ed,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':_0x5fe87a}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x97d510){const _0x8f238a=new pi(this['locale'],_0x97d510,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x8f238a);}['removeRevision'](_0x2ccbb6){const _0x6e36db=this['revisionViews']['find'](_0x3718ee=>_0x3718ee['id']===_0x2ccbb6['id']);this['revisionViews']['remove'](_0x6e36db);}}class ki extends _0x5b9845{constructor(_0xae6e9a){super(_0xae6e9a);const _0x341118=new _0x4bdfc1();_0x341118['content']=_0x2e4e90,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x341118,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xae6e9a,'Revision\x20history')]}]});}}class ui extends _0x5b9845{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x28c3a6,_0x5cdc01,_0x4c6e84,_0x83b95){super(_0x28c3a6);const _0x167b7c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5cdc01,this['_revisionActions']=_0x4c6e84,this['_requireRevisionName']=_0x83b95,this['on']('select',(_0x5b57e8,_0x451b85)=>{this['fire']('revisionSelected',_0x451b85);}),this['on']('setName',(_0x2598f4,_0x45389d)=>{this['fire']('revisionSetName',_0x45389d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x28c3a6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x167b7c['if']('isEnabled','ck-disabled',_0x2ce8d2=>!_0x2ce8d2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x54d2fb of this['_revisions'])this['_addRevision'](_0x54d2fb);this['_revisions']['on']('add',(_0x2877cd,_0x5e2891)=>{this['_addRevision'](_0x5e2891);}),this['_revisions']['on']('remove',(_0x11d2f7,_0x453e7d)=>{this['_removeRevision'](_0x453e7d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2bbfd7=>_0x2bbfd7['revisionViews']['map'](_0x3351ed=>_0x3351ed))['flat']();}['selectRevision'](_0x24f07e){for(const _0x3a9e99 of this['revisionViews'])_0x24f07e&&_0x24f07e['id']===_0x3a9e99['id']?_0x3a9e99['select']():_0x3a9e99['deselect']();}['highlightRevisions'](_0x4bd3b2){for(const _0xb5e3d5 of this['revisionViews'])_0x4bd3b2['some'](({id:_0x17d67d})=>_0x17d67d===_0xb5e3d5['id'])?_0xb5e3d5['highlight']():_0xb5e3d5['unhighlight']();}['_addRevision'](_0x3fd9e9){const _0x4a7382=bi(_0x3fd9e9['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x21853c=this['timePeriodViews']['get'](0x0);_0x21853c&&_0x21853c['startDate']['getTime']()===_0x4a7382['getTime']()||(_0x21853c=new fi(this['locale'],_0x4a7382,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x21853c)),_0x21853c['addRevision'](_0x3fd9e9);}['_removeRevision'](_0x15f9e0){const _0x2fa6ca=bi(_0x15f9e0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2fa6ca)['removeRevision'](_0x15f9e0);}['_getTimePeriodViewByStartDate'](_0xd9de35){return this['timePeriodViews']['find'](_0x4b4559=>_0x4b4559['startDate']['getTime']()===_0xd9de35['getTime']());}}class f extends _0x54fe5b{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x1a77d3(_0xf51de1){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3e10cf,_0x508e89){super(_0x508e89),this['sourceElement']=_0x3e10cf,this['model']['document']['createRoot']();const _0x1f3d40=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1f3d40);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4d3683,_0x2afd27){const _0x348e1b=new this(_0x4d3683,_0x2afd27);return await _0x348e1b['initPlugins'](),await _0x348e1b['ui']['init'](_0x4d3683),await _0x348e1b['data']['init'](_0x348e1b['config']['get']('initialData')||''),_0x348e1b['fire']('ready'),_0x348e1b;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x261da3{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x322ee8){function _0x17c851(_0x347076){return _0x347076['map'](_0x41a44f=>String['fromCharCode'](_0x41a44f))['join']('');}super(_0x322ee8),this['result']='end',_0x322ee8[_0x17c851([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17c851([0x76,0x69,0x65,0x77])][_0x17c851([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17c851([0x61,0x75,0x74,0x6f]),_0x322ee8[_0x17c851([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17c851([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17c851([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17c851([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17c851([0x6f,0x6b])});}}class ht extends _0x261da3{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x261a70){if(super(_0x261a70),!this['editor']['config']['get']('revisionHistory'))throw new _0x10c066('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x8c4c1=>this['_showRevisionViewer']({..._0x8c4c1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xc9f5ed=>this['_closeRevisionViewer'](_0xc9f5ed)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5aa116=>this['_restoreRevision'](_0x5aa116)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x39cbba){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x39cbba;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x31a67f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x31a67f);}['getRevision'](_0xa10c0f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xa10c0f);}['getRevisions'](_0x55b79e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x55b79e||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xf18f80=this['editor'],_0x301627=_0xc8c43(_0xf18f80,d),_0x535ebc=_0xf18f80['plugins']['get']('RevisionTracker'),_0x337eac=_0xf18f80['plugins']['get']('Users')['users'];return _0x301627['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x301627['lazyRoots'],(_0x301627['plugins']['push'](at,l,u,class extends _0x261da3{static get['requires'](){return[l,'Users'];}['init'](){const _0x4bd984=this['editor']['plugins']['get']('Users');for(const _0x42b364 of _0x337eac)_0x42b364['isAnonymous']||_0x4bd984['getUser'](_0x42b364['id'])||_0x4bd984['addUser'](_0x42b364);const _0x195b43=_0x535ebc['repository']['getRevisions']();let _0x3fdb09=null;const _0x1a0086=this['editor']['plugins']['get']('RevisionViewer');_0x1a0086['adapter']=_0x535ebc['adapter'],_0x1a0086['bind']('isEnabled')['to'](_0x535ebc),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xf18f80,'isReadOnly',_0x104f64=>!_0x104f64);for(const _0x131d75 of _0x195b43){const _0x509d78=null===_0x131d75['creator'];if(_0x509d78&&_0x131d75['toVersion']===_0x131d75['fromVersion'])continue;const _0x1efa70=_0x131d75['toJSON']();_0x1a0086['addRevisionData'](_0x1efa70,(_0x1125c8,_0x583ec4,_0x364a1c)=>{if(_0x509d78){if(_0x3fdb09)_0x3fdb09['_update'](_0x1125c8,_0x583ec4);else{if(!_0x583ec4){const _0x5af3f9=_0x364a1c['toJSON']();_0x5af3f9['id']=_0xb1be14(),_0x535ebc['saveRevision'](_0x5af3f9,_0x364a1c['toVersion'])['then'](_0x238095=>{_0x3fdb09=_0x238095;});}}}else _0x131d75['_update'](_0x1125c8,_0x583ec4);});}}},f),_0x301627);}['_enhanceShowRevisionViewerCallback'](){const _0x377b06=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x143721=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x274803=this['editor']['plugins']['get']('Autosave');await _0x274803['save']();}else await _0x143721['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x53fa0c=this['editor']['plugins']['get']('Dialog');_0x53fa0c['isOpen']&&_0x53fa0c['hide']();}const _0x5a3562=this['_getRevisionViewerEditorConfig']();return _0x377b06(_0x5a3562)['then'](_0x5ece65=>{return(this['_viewerEditor']=_0x5ece65,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'),_0x5ece65);})['catch'](_0x38183c=>(console['error'](_0x38183c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x189cc7=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'](),_0x189cc7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2579dd=this['editor']['plugins']['get']('Annotations');_0x2579dd['refreshVisibility'](),_0x2579dd['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5691ff){const _0x350c37=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xc39662=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5b75ba=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x5b75ba,_0x5691ff)['then'](_0x5b869f=>(_0xc39662['style']['display']='block',_0x350c37['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5b869f));}['_closeRevisionViewer'](_0x4ee53f){const _0x22f12d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x22f12d['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4ee53f['destroy']();}async['_restoreRevision'](_0x5350d){const _0x587f95=this['editor'],_0x2dd34e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x129c0d=_0x587f95['plugins']['get']('RevisionTracker'),_0x4ba614=_0x587f95['plugins']['get']('RevisionHistoryUtils'),_0x3d2d60=_0x2dd34e['repository']['getRevision'](_0x5350d);let _0x2e6d8c,_0x1a0801,_0x3917e7;try{await _0x4ba614['loadRevisionData'](_0x3d2d60,this['adapter']),_0x2e6d8c=_0x4ba614['getRevisionDocumentData'](_0x3d2d60),_0x1a0801=_0x4ba614['getRevisionRootsAttributes'](_0x3d2d60);}catch(_0x535796){return void console['error'](_0x535796);}_0x587f95['model']['change'](_0x3ed029=>{for(const _0x30f679 of Array['from'](_0x587f95['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3ed029['removeMarker'](_0x30f679);}),_0x2dd34e['isReady']=!0x1,_0x587f95['model']['enqueueChange'](_0x38b020=>{_0x38b020['setSelection'](null),_0x38b020['removeSelectionAttribute'](_0x587f95['model']['document']['selection']['getAttributeKeys']());const _0x2a9743=Object['keys'](_0x2e6d8c);for(const _0x11d73f of _0x587f95['model']['document']['roots'])'$graveyard'!=_0x11d73f['rootName']&&_0x11d73f['isAttached']()&&!_0x2a9743['includes'](_0x11d73f['rootName'])&&_0x38b020['detachRoot'](_0x11d73f);for(const _0x5f3e99 of _0x2a9743){let _0x517ff0=_0x587f95['model']['document']['getRoot'](_0x5f3e99);_0x517ff0&&_0x517ff0['isAttached']()||(_0x517ff0=_0x38b020['addRoot'](_0x5f3e99));const _0x1615a6=_0x1a0801[_0x5f3e99],_0x853976=Object['keys'](_0x1615a6),_0xc63601=_0x2e6d8c[_0x5f3e99];for(const _0x20ca16 of _0x517ff0['getAttributeKeys']())_0x853976['includes'](_0x20ca16)||_0x38b020['removeAttribute'](_0x20ca16,_0x517ff0);for(const _0x45d8fe of _0x853976)_0x38b020['setAttribute'](_0x45d8fe,_0x1a0801[_0x5f3e99][_0x45d8fe],_0x517ff0);_0x38b020['remove'](_0x38b020['createRangeIn'](_0x517ff0)),_0x38b020['insert'](_0x587f95['data']['parse'](_0xc63601,_0x517ff0),_0x517ff0,0x0);}});const _0x19e4d1=R(_0x587f95['locale'],'Restored');if(_0x3d2d60['name'])_0x3917e7=-0x1==_0x3d2d60['name']['indexOf'](_0x19e4d1)?_0x19e4d1+':\x20'+_0x3d2d60['name']:_0x3d2d60['name'];else _0x3917e7=_0x19e4d1+':\x20'+(_0x3d2d60['createdAt']['toLocaleDateString'](_0x587f95['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3d2d60['createdAt']['toLocaleTimeString'](_0x587f95['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x129c0d['saveRevision']({'name':_0x3917e7}),_0x2dd34e['isReady']=!0x0,_0x587f95['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht 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,ot as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x3ec0a8){super(_0x3ec0a8),this['_revisionViewer']=_0x3ec0a8['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2033cd=this['_revisionsRepository']['_revisions'],_0x5080d1=this['_createRevisionActions'](),_0x5f2951=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x2033cd,_0x5080d1,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',(_0x2e2b2d,_0x16f1cb)=>{_0x16f1cb['revisionViews']['on']('add',(_0x37a455,_0x1e3ce9)=>{_0x1e3ce9['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)),_0x5f2951['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2975a9=this['_revisionsRepository']['getRevision'](0x0);if(_0x2975a9){const _0x5cadd2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2975a9['id']);this['_revisionViewer']['compare'](_0x2975a9,_0x5cadd2);}}['_handleRevisionSelected'](_0x46c70b,_0x44fe12){const _0x5bac97=this['_revisionsRepository']['getRevision'](_0x44fe12['id']),_0x1aba2d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5bac97['id']);this['_revisionViewer']['compare'](_0x5bac97,_0x1aba2d);}['_handleRevisionSetName'](_0x2cc4f7,_0x3c7537){this['_revisionsRepository']['getRevision'](_0x3c7537['id'])['setName'](_0x3c7537['name']);}['_handleDiffChange'](_0x4452a0,_0x5d6b2c,_0x5e30f2){const _0x30fcb2=this['_revisionsRepository']['getRevisionsInDiff'](_0x5e30f2);_0x30fcb2['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x30fcb2),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x30fcb2[0x0]));}['_createRevisionActions'](){const _0x1f0a11=this['editor'],_0x2e8836=f['availableRevisionActions'],_0x461564=_0x1f0a11['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x461564['length'])return _0x461564['map'](_0x1692d0=>{const _0x3ca87f='string'==typeof _0x1692d0?Object['assign']({},_0x2e8836[_0x1692d0]):_0x1692d0;return _0x3ca87f['action']=_0x3ca87f['action']['bind'](this,_0x1f0a11),_0x3ca87f['isVisible']&&(_0x3ca87f['isVisible']=_0x3ca87f['isVisible']['bind'](this,_0x1f0a11)),_0x3ca87f;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x25c26f},_0x4915cd)=>{const _0x54bd37=_0x25c26f['get'](l),_0x46401f=_0x54bd37['repository'];let _0x1e61fc=_0x54bd37['diff']['newRevisionId'],_0x29b42e=_0x4915cd['id'];_0x46401f['getIndex'](_0x1e61fc)>_0x46401f['getIndex'](_0x29b42e)&&([_0x1e61fc,_0x29b42e]=[_0x29b42e,_0x1e61fc]),_0x54bd37['compare'](_0x1e61fc,_0x29b42e);},'isVisible':({plugins:_0x526b6f},_0x5106c2)=>{const _0x50c1e5=_0x526b6f['get'](l);return!(_0x50c1e5['repository']['getRevisionsInDiff'](_0x50c1e5['diff'])['length']>0x2)&&!_0x5106c2['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1b7ad2,{id:_0x3fc5d9})=>{_0x1b7ad2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3fc5d9);},'isVisible':({plugins:_0x2c493a},_0xbbe060)=>!!_0x2c493a['get'](l)['repository']['getLaterVisibleRevision'](_0xbbe060['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5d8977},{id:_0x408b44,revisionNameView:_0xf8c41b})=>{const _0x3b67cd=_0x5d8977['get'](l),_0x3688d9=_0x3b67cd['repository']['getEarlierVisibleRevision'](_0x408b44);_0x3b67cd['compare'](_0x408b44,_0x3688d9),_0xf8c41b['focus'](),_0xf8c41b['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x271e51,_0x5d73e3){super(_0x271e51),this['_view']=_0x5d73e3,this['_toolbarConfig']=st(_0x271e51['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x428769){const _0x53f535=this['editor'],_0x591adc=this['view'],_0x2e3bc7=_0x53f535['editing']['view'],_0x5f1c91=_0x591adc['editable'],_0x445c5b=_0x2e3bc7['document']['getRoot']();_0x5f1c91['name']=_0x445c5b['rootName'],_0x591adc['render']();const _0xdb2a77=_0x5f1c91['element'];this['setEditableElement'](_0x5f1c91['name'],_0xdb2a77),_0x591adc['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2e3bc7['attachDomRoot'](_0xdb2a77),this['_elementReplacer']['replace'](_0x428769,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4c0aa0=this['view'],_0x275d1c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x275d1c['detachDomRoot'](_0x4c0aa0['editable']['name']),_0x4c0aa0['destroy']();}['_initToolbar'](){const _0x32d4c2=this['view'];_0x32d4c2['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x32d4c2['stickyPanel']['limiterElement']=_0x32d4c2['element'],_0x32d4c2['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4a42be})=>_0x4a42be),_0x32d4c2['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x32d4c2['toolbar']);}}class ii extends _0x3ff921{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2b2fd4,_0x9132b0,_0x208369={}){super(_0x2b2fd4),this['stickyPanel']=new _0x8b95bf(_0x2b2fd4),this['toolbar']=new _0x3cbc4f(_0x2b2fd4,{'shouldGroupWhenFull':_0x208369['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x2b2fd4,_0x9132b0);}['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
|
+
_0x1a4533(_0x2a51c5){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4a1c6a,_0x159056){super(_0x159056),this['sourceElement']=_0x4a1c6a,this['model']['document']['createRoot']();const _0x1e21c2=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1e21c2);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x29d227,_0x2754d5){const _0x33dfbe=new this(_0x29d227,_0x2754d5);return await _0x33dfbe['initPlugins'](),await _0x33dfbe['ui']['init'](_0x29d227),await _0x33dfbe['data']['init'](_0x33dfbe['config']['get']('initialData')||''),_0x33dfbe['fire']('ready'),_0x33dfbe;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x54fe5b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11c4ae){function _0x412745(_0x1b45f9){return _0x1b45f9['map'](_0x1e5abf=>String['fromCharCode'](_0x1e5abf))['join']('');}super(_0x11c4ae),this['result']='end',_0x11c4ae[_0x412745([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x412745([0x76,0x69,0x65,0x77])][_0x412745([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x412745([0x61,0x75,0x74,0x6f]),_0x11c4ae[_0x412745([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x412745([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x412745([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x412745([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x412745([0x6f,0x6b])});}}class ht extends _0x54fe5b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x3963b2){if(super(_0x3963b2),!this['editor']['config']['get']('revisionHistory'))throw new _0x35e33c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x230625=>this['_showRevisionViewer']({..._0x230625,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4aaf77=>this['_closeRevisionViewer'](_0x4aaf77)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5ca968=>this['_restoreRevision'](_0x5ca968)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x43bd5b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x43bd5b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2742e1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2742e1);}['getRevision'](_0xe86a0c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xe86a0c);}['getRevisions'](_0x1616c4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1616c4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x34f107=this['editor'],_0x1f8c2a=_0x4b66a4(_0x34f107,d),_0x542109=_0x34f107['plugins']['get']('RevisionTracker'),_0x209c8=_0x34f107['plugins']['get']('Users')['users'];return _0x1f8c2a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1f8c2a['lazyRoots'],(_0x1f8c2a['plugins']['push'](at,l,u,class extends _0x54fe5b{static get['requires'](){return[l,'Users'];}['init'](){const _0x3afd8b=this['editor']['plugins']['get']('Users');for(const _0x22bcc9 of _0x209c8)_0x22bcc9['isAnonymous']||_0x3afd8b['getUser'](_0x22bcc9['id'])||_0x3afd8b['addUser'](_0x22bcc9);const _0x114e5b=_0x542109['repository']['getRevisions']();let _0x3c42ca=null;const _0x509e2d=this['editor']['plugins']['get']('RevisionViewer');_0x509e2d['adapter']=_0x542109['adapter'],_0x509e2d['bind']('isEnabled')['to'](_0x542109),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x34f107,'isReadOnly',_0x598e31=>!_0x598e31);for(const _0x4255da of _0x114e5b){const _0xe0a160=null===_0x4255da['creator'];if(_0xe0a160&&_0x4255da['toVersion']===_0x4255da['fromVersion'])continue;const _0x585437=_0x4255da['toJSON']();_0x509e2d['addRevisionData'](_0x585437,(_0x28363f,_0x9018d8,_0x1a6dac)=>{if(_0xe0a160){if(_0x3c42ca)_0x3c42ca['_update'](_0x28363f,_0x9018d8);else{if(!_0x9018d8){const _0x2a3634=_0x1a6dac['toJSON']();_0x2a3634['id']=_0x272469(),_0x542109['saveRevision'](_0x2a3634,_0x1a6dac['toVersion'])['then'](_0x169076=>{_0x3c42ca=_0x169076;});}}}else _0x4255da['_update'](_0x28363f,_0x9018d8);});}}},f),_0x1f8c2a);}['_enhanceShowRevisionViewerCallback'](){const _0x1c4968=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x57df04=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x282dec=this['editor']['plugins']['get']('Autosave');await _0x282dec['save']();}else await _0x57df04['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1cb060=this['editor']['plugins']['get']('Dialog');_0x1cb060['isOpen']&&_0x1cb060['hide']();}const _0x55d225=this['_getRevisionViewerEditorConfig']();return _0x1c4968(_0x55d225)['then'](_0x90e99=>{return(this['_viewerEditor']=_0x90e99,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'),_0x90e99);})['catch'](_0x48351b=>(console['error'](_0x48351b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4ca630=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'](),_0x4ca630(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x35f6f0=this['editor']['plugins']['get']('Annotations');_0x35f6f0['refreshVisibility'](),_0x35f6f0['refreshPositioning']();}})));}['_showRevisionViewer'](_0x418c0b){const _0x2d0243=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x54d967=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x157e97=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x157e97,_0x418c0b)['then'](_0x42f37f=>(_0x54d967['style']['display']='block',_0x2d0243['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x42f37f));}['_closeRevisionViewer'](_0x20dc04){const _0x2592c1=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2592c1['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x20dc04['destroy']();}async['_restoreRevision'](_0x54a396){const _0x586026=this['editor'],_0x30f080=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2128f3=_0x586026['plugins']['get']('RevisionTracker'),_0x2f876f=_0x586026['plugins']['get']('RevisionHistoryUtils'),_0xd9678f=_0x30f080['repository']['getRevision'](_0x54a396);let _0x2d2057,_0x1529d5,_0x510b96;try{await _0x2f876f['loadRevisionData'](_0xd9678f,this['adapter']),_0x2d2057=_0x2f876f['getRevisionDocumentData'](_0xd9678f),_0x1529d5=_0x2f876f['getRevisionRootsAttributes'](_0xd9678f);}catch(_0x5089dc){return void console['error'](_0x5089dc);}_0x586026['model']['change'](_0x596b54=>{for(const _0x5e846d of Array['from'](_0x586026['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x596b54['removeMarker'](_0x5e846d);}),_0x30f080['isReady']=!0x1,_0x586026['model']['enqueueChange'](_0xc802e5=>{_0xc802e5['setSelection'](null),_0xc802e5['removeSelectionAttribute'](_0x586026['model']['document']['selection']['getAttributeKeys']());const _0x736d7b=Object['keys'](_0x2d2057);for(const _0x18561b of _0x586026['model']['document']['roots'])'$graveyard'!=_0x18561b['rootName']&&_0x18561b['isAttached']()&&!_0x736d7b['includes'](_0x18561b['rootName'])&&_0xc802e5['detachRoot'](_0x18561b);for(const _0x21d076 of _0x736d7b){let _0x285f5a=_0x586026['model']['document']['getRoot'](_0x21d076);_0x285f5a&&_0x285f5a['isAttached']()||(_0x285f5a=_0xc802e5['addRoot'](_0x21d076));const _0xc3d62d=_0x1529d5[_0x21d076],_0x12168b=Object['keys'](_0xc3d62d),_0x42efbb=_0x2d2057[_0x21d076];for(const _0x2d7f71 of _0x285f5a['getAttributeKeys']())_0x12168b['includes'](_0x2d7f71)||_0xc802e5['removeAttribute'](_0x2d7f71,_0x285f5a);for(const _0x11d5d3 of _0x12168b)_0xc802e5['setAttribute'](_0x11d5d3,_0x1529d5[_0x21d076][_0x11d5d3],_0x285f5a);_0xc802e5['remove'](_0xc802e5['createRangeIn'](_0x285f5a)),_0xc802e5['insert'](_0x586026['data']['parse'](_0x42efbb,_0x285f5a),_0x285f5a,0x0);}});const _0x542ad0=R(_0x586026['locale'],'Restored');if(_0xd9678f['name'])_0x510b96=-0x1==_0xd9678f['name']['indexOf'](_0x542ad0)?_0x542ad0+':\x20'+_0xd9678f['name']:_0xd9678f['name'];else _0x510b96=_0x542ad0+':\x20'+(_0xd9678f['createdAt']['toLocaleDateString'](_0x586026['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xd9678f['createdAt']['toLocaleTimeString'](_0x586026['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2128f3['saveRevision']({'name':_0x510b96}),_0x30f080['isReady']=!0x0,_0x586026['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht 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,ot as ShowChangeCommand};
|