@ckeditor/ckeditor5-revision-history 47.0.0-alpha.3 → 47.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/package.json +12 -12
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x903d2c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x351b49){super(),this['id']=_0x351b49['id']||_0x25d6ef(),this['creator']=_0x351b49['creator']||null,this['authors']=_0x351b49['authors']||[],this['diffData']=_0x351b49['diffData']||null,this['toVersion']=_0x351b49['toVersion']||0x0,this['fromVersion']=_0x351b49['fromVersion']||0x0,this['set']('name',_0x351b49['name']||''),this['set']('createdAt',_0x351b49['createdAt']||new Date()),this['set']('attributes',_0x351b49['attributes']||{});}['setName'](_0x476cbf){this['_update']({'name':_0x476cbf});}['setAttribute'](_0x1a7cce,_0x46470a){const _0x5681ff=_0x36f024(this['attributes']);_0x2ea4a2(_0x5681ff,_0x1a7cce,_0x46470a),this['_update']({'attributes':_0x5681ff});}['removeAttribute'](_0x193654){const _0x206b38=_0x36f024(this['attributes']);_0xfec04e(_0x206b38,_0x193654),this['_update']({'attributes':_0x206b38});}['_update'](_0x3e925f,_0x4c1066=!0x1){let _0x296639=!0x1;const _0x4d7e9e={'id':this['id']},_0x1ac546=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x18220d of _0x1ac546){const _0x1794b1=_0x3e925f[_0x18220d];void 0x0!==_0x1794b1&&_0x1794b1!==this[_0x18220d]&&(this[_0x18220d]=_0x1794b1,_0x4d7e9e[_0x18220d]=_0x1794b1,_0x296639=!0x0);}_0x296639&&(_0x4d7e9e['authors']&&(_0x4d7e9e['authorsIds']=_0x4d7e9e['authors']['map'](_0x49b8e6=>_0x49b8e6['id']),delete _0x4d7e9e['authors']),this['fire']('_update',_0x4d7e9e,_0x4c1066));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x906980=>_0x906980['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2a66d6{['_revisions'];static get['requires'](){return[_0xe8c0a4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x47ec76){super(_0x47ec76),this['_revisions']=new _0x28d875();}['afterInit'](){!async function(_0x96a686){const _0x232bd4=_0x3f7083([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x14cf39=0xeb829,_0x9d2ac6=0x7374585f,_0x444d46=0x73732ccf^_0x9d2ac6,_0x36d43d=window[_0x3f7083([0x44,0x61,0x74,0x65])][_0x3f7083([0x6e,0x6f,0x77])](),_0x2cc372=_0x96a686[_0x3f7083([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe378ee=new window[(_0x3f7083([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b8949=>{_0x2cc372[_0x3f7083([0x6f,0x6e,0x63,0x65])](_0x3f7083([0x72,0x65,0x61,0x64,0x79]),_0x2b8949);}),_0x455210={[_0x3f7083([0x6b,0x74,0x79])]:_0x3f7083([0x45,0x43]),[_0x3f7083([0x75,0x73,0x65])]:_0x3f7083([0x73,0x69,0x67]),[_0x3f7083([0x63,0x72,0x76])]:_0x3f7083([0x50,0x2d,0x32,0x35,0x36]),[_0x3f7083([0x78])]:_0x3f7083([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]),[_0x3f7083([0x79])]:_0x3f7083([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]),[_0x3f7083([0x61,0x6c,0x67])]:_0x3f7083([0x45,0x53,0x32,0x35,0x36])},_0xb6807a=_0x2cc372[_0x3f7083([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f7083([0x67,0x65,0x74])](_0x3f7083([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5aab29(){let _0x102667,_0x4e0756=null,_0x343850=null;try{if(_0xb6807a==_0x3f7083([0x47,0x50,0x4c]))return _0x3f7083([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x102667=_0x4f85ad(),!_0x102667)return _0x3f7083([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x102667[_0x3f7083([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x343850=_0x27a438(_0x102667[_0x3f7083([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x102667[_0x3f7083([0x6a,0x74,0x69])])),await _0x23a566()?_0x173a72()?_0x3cf053()?_0x3f7083([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58a063()?(_0x102667[_0x3f7083([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f7083([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e0756=_0x51e240(_0x3f7083([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x102667[_0x3f7083([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f7083([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e0756=_0x51e240(_0x3f7083([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5393b1()):_0x3f7083([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f7083([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f7083([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3f7083([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cf053(){const _0x3bf10a=[_0x3f7083([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f7083([0x74,0x72,0x69,0x61,0x6c])][_0x3f7083([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102667[_0x3f7083([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36d43d/0x3e8:0xe10*_0x444d46;return _0x102667[_0x3f7083([0x65,0x78,0x70])]<_0x3bf10a;}function _0x173a72(){const _0x4d4826=_0x102667[_0x3f7083([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d4826)return!0x1;if(_0x4d4826[_0x3f7083([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f7083([0x2a])))return!0x0;if(_0x4d4826[_0x3f7083([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f7083([0x52,0x48])))return!0x0;if(_0x4d4826[_0x3f7083([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f7083([0x52,0x52,0x48]))){if(_0x3ad5d5())return!0x0;if(_0xd4afd8()||_0x56f3ea())return!0x0;}return!0x1;}function _0x58a063(){const _0x3ffa14=_0x102667[_0x3f7083([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ffa14||0x0==_0x3ffa14[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x468db8}=new URL(window[_0x3f7083([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ffa14[_0x3f7083([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468db8))return!0x0;const _0x59d588=_0x468db8[_0x3f7083([0x73,0x70,0x6c,0x69,0x74])](_0x3f7083([0x2e]));return _0x3ffa14[_0x3f7083([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd6c484=>_0xd6c484[_0x3f7083([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f7083([0x2a])))[_0x3f7083([0x6d,0x61,0x70])](_0x3fdb8e=>_0x3fdb8e[_0x3f7083([0x73,0x70,0x6c,0x69,0x74])](_0x3f7083([0x2e])))[_0x3f7083([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x60384a=>_0x60384a[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x59d588[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f7083([0x6d,0x61,0x70])](_0x59f5e2=>Array(_0x59d588[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59f5e2[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f7083([0x66,0x69,0x6c,0x6c])](_0x59f5e2[0x0]===_0x3f7083([0x2a])?_0x3f7083([0x2a]):'')[_0x3f7083([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59f5e2))[_0x3f7083([0x73,0x6f,0x6d,0x65])](_0xfc4153=>_0x59d588[_0x3f7083([0x65,0x76,0x65,0x72,0x79])]((_0x2b0632,_0x5234aa)=>_0xfc4153[_0x5234aa]===_0x2b0632||_0xfc4153[_0x5234aa]===_0x3f7083([0x2a])));}function _0x5393b1(){return _0x4e0756&&_0x343850?new window[(_0x3f7083([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb99589,_0x4b9131)=>{_0x4e0756[_0x3f7083([0x74,0x68,0x65,0x6e])](_0xb99589,_0x4b9131),_0x343850[_0x3f7083([0x74,0x68,0x65,0x6e])](_0x17a4c8=>{_0x17a4c8!=_0x3f7083([0x56,0x61,0x6c,0x69,0x64])&&_0xb99589(_0x17a4c8);},_0x4b9131);}):_0x4e0756||_0x343850||_0x3f7083([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27a438(_0x3ea797,_0x391aa7){return new window[(_0x3f7083([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56c76d=>{if(_0x210461())return _0x56c76d(_0x3f7083([0x56,0x61,0x6c,0x69,0x64]));_0x51bdc9(),_0x2cc372[_0x3f7083([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f7083([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2af7b5=!0x1;const _0x359fda=_0x25d6ef();function _0x484cd6(_0x5616be){return!!_0x5616be&&(typeof _0x5616be===_0x3f7083([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5616be===_0x3f7083([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5616be[_0x3f7083([0x74,0x68,0x65,0x6e])]===_0x3f7083([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5616be[_0x3f7083([0x63,0x61,0x74,0x63,0x68])]===_0x3f7083([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8d9079(_0x3f7694){_0x3f8251(_0x3f7694)[_0x3f7083([0x74,0x68,0x65,0x6e])](_0x233e13=>{if(!_0x233e13||_0x233e13[_0x3f7083([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f7083([0x6f,0x6b]))return _0x3f7083([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6142ce(_0x403f82(_0x359fda+_0x391aa7))!=_0x233e13[_0x3f7083([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f7083([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f7083([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f7083([0x74,0x68,0x65,0x6e])](_0x5f806b=>(_0x12205b(),_0x5f806b),()=>{const _0x58516a=_0x5a5c8a();return null==_0x58516a?(_0x12205b(),_0x3f7083([0x56,0x61,0x6c,0x69,0x64])):_0x3f7083(_0x36d43d-_0x58516a>(0x5778dc5f^_0x9d2ac6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f7083([0x74,0x68,0x65,0x6e])](_0x56c76d)[_0x3f7083([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56c76d(_0x3f7083([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30a136=0x7342b6df^_0x9d2ac6;function _0x12205b(){const _0x38baa9=_0x3f7083([0x6c,0x6c,0x63,0x74,0x2d])+_0x6142ce(_0x403f82(_0x3ea797)),_0x5b3e3b=_0x25b055(_0x6142ce(window[_0x3f7083([0x4d,0x61,0x74,0x68])][_0x3f7083([0x63,0x65,0x69,0x6c])](_0x36d43d/_0x30a136)));window[_0x3f7083([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f7083([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38baa9,_0x5b3e3b);}function _0x5a5c8a(){const _0x3b4372=_0x3f7083([0x6c,0x6c,0x63,0x74,0x2d])+_0x6142ce(_0x403f82(_0x3ea797)),_0x2d7cdb=window[_0x3f7083([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f7083([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b4372);return _0x2d7cdb?window[_0x3f7083([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25b055(_0x2d7cdb),0x10)*_0x30a136:null;}function _0x3f8251(_0x376ca5){return new window[(_0x3f7083([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29195e,_0x5d2a33)=>{_0x376ca5[_0x3f7083([0x74,0x68,0x65,0x6e])](_0x29195e,_0x5d2a33),window[_0x3f7083([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d2a33,0x73758c9f^_0x9d2ac6);});}}_0x2cc372[_0x3f7083([0x6f,0x6e])](_0x3f7083([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x455195,_0x53528a)=>{if(_0x53528a[0x0]!=_0x3ea797)return _0x56c76d(_0x3f7083([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53528a[0x1]={..._0x53528a[0x1],[_0x3f7083([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x359fda};},{[_0x3f7083([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f7083([0x68,0x69,0x67,0x68])}),_0x2cc372[_0x3f7083([0x6f,0x6e])](_0x3f7083([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x507ea7=>{_0x484cd6(_0x507ea7[_0x3f7083([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2af7b5=!0x0,_0x8d9079(_0x507ea7[_0x3f7083([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f7083([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f7083([0x6c,0x6f,0x77])}),_0xe378ee[_0x3f7083([0x74,0x68,0x65,0x6e])](()=>{_0x2af7b5||_0x56c76d(_0x3f7083([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x210461(){return _0x2cc372[_0x3f7083([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f7083([0x76,0x69,0x65,0x77])][_0x3f7083([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f7083([0x61,0x75,0x74,0x6f]);}function _0x51bdc9(){_0x2cc372[_0x3f7083([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f7083([0x76,0x69,0x65,0x77])][_0x3f7083([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f7083([0x61,0x75,0x74,0x6f]);}}function _0x51e240(_0xf7591){const _0x553934=[new window[(_0x3f7083([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c13ee=>setTimeout(_0x1c13ee,0x737d6693^_0x9d2ac6)),_0xe378ee[_0x3f7083([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f7083([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c7d07=>{const _0xfc345a=0x73745858^_0x9d2ac6,_0xa30164=_0x96a686[_0x3f7083([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xc4df23(){_0xa30164[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xfc345a&&_0x5c7d07();}_0xc4df23(),_0xa30164[_0x3f7083([0x6f,0x6e])](_0x3f7083([0x61,0x64,0x64]),_0xc4df23);})),new window[(_0x3f7083([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45126a=>{function _0x49198d(){for(const _0x55d0c8 in window)if(window[_0x3f7083([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3f7083([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x55d0c8))&&window[_0x55d0c8]==_0x14cf39)return _0x45126a();_0x2cc372[_0x3f7083([0x73,0x74,0x61,0x74,0x65])]!=_0x3f7083([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3f7083([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49198d,0x73744bd7^_0x9d2ac6);}_0x5d756d(_0x3f7083([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x49198d();})];return window[_0x3f7083([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f7083([0x72,0x61,0x63,0x65])](_0x553934)[_0x3f7083([0x74,0x68,0x65,0x6e])](()=>_0xf7591);}async function _0x464e3f(){if(await _0xe378ee,_0x5d756d(_0x3f7083([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x252dbc=_0x96a686[_0x3f7083([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x54ac58=_0x96a686[_0x3f7083([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])](_0x252dbc[_0x3f7083([0x69,0x64])]),_0x4139c0=_0xd5185f(_0x3f7083([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4139c0[_0x3f7083([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x252dbc['id'],_0x54ac58?_0x54ac58['id']:null,!0x0),_0x4139c0[_0x3f7083([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3f7083([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4139c0[_0x3f7083([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4139c0[_0x3f7083([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x36f080,void(_0x4139c0[_0x3f7083([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x36f080);}if(_0x5d756d(_0x3f7083([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x593f03=_0xd5185f(_0x3f7083([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x593f03[_0x3f7083([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3f7083([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x593f03[_0x3f7083([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x593f03[_0x3f7083([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x36f080,_0x593f03[_0x3f7083([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x36f080;}_0x2cc372[_0x3f7083([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f7083([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36f080,_0x2cc372[_0x3f7083([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f7083([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36f080,_0x2cc372[_0x3f7083([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f7083([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ad5d5(){return _0x5d756d(_0x3f7083([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xd5185f(_0x3f7083([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3f7083([0x73,0x74,0x61,0x74,0x65])]==_0x3f7083([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xd4afd8(){return _0x5d756d(_0x3f7083([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 _0x56f3ea(){return _0x5d756d(_0x3f7083([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5991e5(_0x2c8403){const _0x10c25e=_0x5026a0();_0x2cc372[_0x10c25e]=_0x3f7083([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])+_0x2c8403,_0x2c8403[_0x3f7083([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3f7083([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5026a0()]=_0x14cf39),_0x2c8403!=_0x3f7083([0x56,0x61,0x6c,0x69,0x64])&&_0x464e3f();}function _0x5026a0(){const _0x16cce5=window[_0x3f7083([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f7083([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f7083([0x6e,0x6f,0x77])]())[_0x3f7083([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f7083([0x2e]),'');let _0x3d423c=_0x3f7083([0x73]);for(let _0x19fcaa=0x0;_0x19fcaa<_0x16cce5[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19fcaa+=0x2){let _0xad4089=window[_0x3f7083([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16cce5[_0x3f7083([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19fcaa,_0x19fcaa+0x2));_0xad4089>=_0x232bd4[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xad4089-=_0x232bd4[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d423c+=_0x232bd4[_0xad4089];}return _0x3d423c;}function _0x4f85ad(){const _0x18cd93=_0xb6807a[_0x3f7083([0x73,0x70,0x6c,0x69,0x74])](_0x3f7083([0x2e]));if(0x3!=_0x18cd93[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a150c(_0x18cd93[0x1]);function _0x3a150c(_0x336155){const _0x4b46d8=_0x3596ec(_0x336155);return _0x4b46d8&&_0x4bc15f()?_0x4b46d8:null;function _0x4bc15f(){const _0x2f2a29=_0x4b46d8[_0x3f7083([0x6a,0x74,0x69])],_0x2fd228=window[_0x3f7083([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f2a29[_0x3f7083([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f2a29[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x442248={..._0x4b46d8,[_0x3f7083([0x6a,0x74,0x69])]:_0x2f2a29[_0x3f7083([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f2a29[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x442248[_0x3f7083([0x76,0x63])],_0x403f82(_0x442248)==_0x2fd228;}}}async function _0x23a566(){let _0x44fd8e=!0x0;try{const _0x96dc05=_0xb6807a[_0x3f7083([0x73,0x70,0x6c,0x69,0x74])](_0x3f7083([0x2e])),[_0x3ddbde,_0x384380,_0x3c9b3a]=_0x96dc05;return _0x55d868(_0x3ddbde),await _0x35b0ab(_0x3ddbde,_0x384380,_0x3c9b3a),_0x44fd8e;}catch{return!0x1;}function _0x55d868(_0x348648){const _0x20a8af=_0x3596ec(_0x348648);_0x20a8af&&_0x20a8af[_0x3f7083([0x61,0x6c,0x67])]==_0x3f7083([0x45,0x53,0x32,0x35,0x36])||(_0x44fd8e=!0x1);}async function _0x35b0ab(_0x5dd364,_0x41a548,_0x8cbf0e){const _0x57157=window[_0x3f7083([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f7083([0x66,0x72,0x6f,0x6d])](_0x4a7db3(_0x8cbf0e),_0x1058fd=>_0x1058fd[_0x3f7083([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x221bc0=new window[(_0x3f7083([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f7083([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5dd364+_0x3f7083([0x2e])+_0x41a548),_0x4bf53e=window[_0x3f7083([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f7083([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4bf53e)return;const _0x189eb3=await _0x4bf53e[_0x3f7083([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f7083([0x6a,0x77,0x6b]),_0x455210,{[_0x3f7083([0x6e,0x61,0x6d,0x65])]:_0x3f7083([0x45,0x43,0x44,0x53,0x41]),[_0x3f7083([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f7083([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f7083([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4bf53e[_0x3f7083([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f7083([0x6e,0x61,0x6d,0x65])]:_0x3f7083([0x45,0x43,0x44,0x53,0x41]),[_0x3f7083([0x68,0x61,0x73,0x68])]:{[_0x3f7083([0x6e,0x61,0x6d,0x65])]:_0x3f7083([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x189eb3,_0x57157,_0x221bc0)||(_0x44fd8e=!0x1);}}function _0x3596ec(_0x118a00){return _0x118a00[_0x3f7083([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f7083([0x65,0x79]))?JSON[_0x3f7083([0x70,0x61,0x72,0x73,0x65])](_0x4a7db3(_0x118a00)):null;}function _0x4a7db3(_0xd48407){return window[_0x3f7083([0x61,0x74,0x6f,0x62])](_0xd48407[_0x3f7083([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f7083([0x2b]))[_0x3f7083([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f7083([0x2f])));}function _0x403f82(_0x2e0390){let _0x48f1e0=0x1505;function _0x493e1a(_0x2f29f2){for(let _0x2cbf6e=0x0;_0x2cbf6e<_0x2f29f2[_0x3f7083([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cbf6e++){const _0x3e3cc4=_0x2f29f2[_0x3f7083([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2cbf6e);_0x48f1e0=(_0x48f1e0<<0x5)+_0x48f1e0+_0x3e3cc4,_0x48f1e0&=_0x48f1e0;}}function _0xc95129(_0x27aefd){Array[_0x3f7083([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27aefd)?_0x27aefd[_0x3f7083([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc95129):_0x27aefd&&typeof _0x27aefd==_0x3f7083([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f7083([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27aefd)[_0x3f7083([0x73,0x6f,0x72,0x74])]()[_0x3f7083([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x98ebaf,_0x56401b])=>{_0x493e1a(_0x98ebaf),_0xc95129(_0x56401b);}):_0x493e1a(window[_0x3f7083([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27aefd));}return _0xc95129(_0x2e0390),_0x48f1e0>>>0x0;}function _0x6142ce(_0x319f73){return _0x319f73[_0x3f7083([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f7083([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f7083([0x30]));}function _0x25b055(_0x437f84){return _0x437f84[_0x3f7083([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f7083([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f7083([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d756d(_0x377257){return _0x2cc372[_0x3f7083([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3f7083([0x68,0x61,0x73])](_0x377257);}function _0xd5185f(_0x4e7a5c){return _0x2cc372[_0x3f7083([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3f7083([0x67,0x65,0x74])](_0x4e7a5c);}function _0x36f080(){}function _0x3f7083(_0x18c157){return _0x18c157['map'](_0x12c148=>String['fromCharCode'](_0x12c148))['join']('');}_0x5991e5(await _0x5aab29());}(this);}['createRevision'](_0x110a4b){const _0x3c61c7=this['editor']['plugins']['get']('Users');return new I({'id':_0x110a4b['id'],'name':_0x110a4b['name'],'creator':_0x110a4b['creatorId']?_0x3c61c7['getUser'](_0x110a4b['creatorId']):null,'diffData':_0x110a4b['diffData']||_0x110a4b['data'],'authors':_0x110a4b['authorsIds']['map'](_0x4bc7d9=>_0x3c61c7['getUser'](_0x4bc7d9)),'createdAt':new Date(_0x110a4b['createdAt']),'attributes':_0x110a4b['attributes'],'fromVersion':_0x110a4b['fromVersion'],'toVersion':_0x110a4b['toVersion']});}['addRevision'](_0x6ae80,_0x22624d=0x0){this['_revisions']['add'](_0x6ae80,_0x22624d);}['getRevision'](_0x1af553){return this['_revisions']['get'](_0x1af553);}['getRevisions'](_0x1e1d89={'toJSON':!0x1}){const _0x4e9583=Array['from'](this['_revisions']);return _0x4e9583['reverse'](),_0x1e1d89['toJSON']?_0x4e9583['map'](_0x10e779=>_0x10e779['toJSON']()):_0x4e9583;}['getIndex'](_0x9e3c66){return this['_revisions']['getIndex'](_0x9e3c66);}['getEarlierVisibleRevision'](_0x2c9055){const [,_0x46c91e]=this['getRevisionsIterator'](_0x2c9055,{'direction':'earlier'});return _0x46c91e;}['getLaterVisibleRevision'](_0x2c1633){const [,_0x9b7546]=this['getRevisionsIterator'](_0x2c1633,{'direction':'later'});return _0x9b7546;}['getRevisionsInDiff'](_0x4bb6e0){const _0x2b0c70=[];for(const _0x45615a of this['getRevisionsIterator'](_0x4bb6e0['newRevisionId']))if(_0x2b0c70['push'](_0x45615a),_0x45615a['id']===_0x4bb6e0['oldRevisionId'])break;return _0x2b0c70;}*['getRevisionsIterator'](_0x41b83a,{direction:_0x4926c1='earlier',filter:_0x104dd0=()=>!0x0}={}){const _0x4c375a='earlier'===_0x4926c1?0x1:-0x1;let _0xa11da9=this['_revisions']['get'](_0x41b83a),_0xcdcec7=this['getIndex'](_0xa11da9);for(yield _0xa11da9;_0xa11da9;){if(_0xcdcec7+=_0x4c375a,_0xa11da9=this['getRevision'](_0xcdcec7),!_0xa11da9)return;_0x104dd0(_0xa11da9)&&(yield _0xa11da9);}}}class $ extends _0x2a66d6{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0xb89129,'c'],[_0xd70e5b,'a'],[_0x2f1f67,'e'],[_0x85ff5b,'r'],[_0x477a17,'u']]);['_typeCharToViewClass']=new Map([['c',_0xb89129],['a',_0xd70e5b],['e',_0x2f1f67],['r',_0x85ff5b],['u',_0x477a17]]);async['loadRevisionData'](_0x10392c,_0x3c3817){if(_0x10392c['diffData']||!_0x3c3817)return;const _0x49e55f=this['editor']['config']['get']('collaboration.channelId'),_0x25b08f=await _0x3c3817['getRevision']({'channelId':_0x49e55f,'revisionId':_0x10392c['id']});_0x10392c['diffData']=_0x25b08f['diffData'];}['getRevisionDocumentData'](_0x3ec5da){const _0xb025eb={};for(const _0x127553 in _0x3ec5da['diffData']){if(_0x3ec5da['diffData'][_0x127553]['attachChange']&&!_0x3ec5da['diffData'][_0x127553]['attachChange']['isAttached'])continue;const _0x5cdc76=this['_removeRevisionMarkers'](JSON['parse'](_0x3ec5da['diffData'][_0x127553]['insertions'])),_0x1b5a79=this['editor']['editing']['view']['document'],_0x4f57ac=new _0x17f4ea(_0x1b5a79,_0x5cdc76['map'](_0x2839a9=>this['_getViewFromDiffObj'](_0x2839a9,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xb025eb[_0x127553]=this['editor']['data']['processor']['toData'](_0x4f57ac),this['editor']['data']['processor']['useFillerType']('default');}return _0xb025eb;}['getRevisionRootsAttributes'](_0x1862a2){const _0x2bd9d1={};for(const _0x542a44 in _0x1862a2['diffData'])_0x1862a2['diffData'][_0x542a44]['attachChange']&&!_0x1862a2['diffData'][_0x542a44]['attachChange']['isAttached']||(_0x2bd9d1[_0x542a44]=_0x1862a2['diffData'][_0x542a44]['attributesAfter']||{});return _0x2bd9d1;}['_getTypeCharForViewElement'](_0x11300a){return this['_viewClassToTypeChar']['get'](_0x11300a['constructor']);}['_getViewFromDiffObj'](_0x392f87,_0x58281a){const _0x3893e3=this['editor']['editing']['view']['document'];if('string'==typeof _0x392f87)return new _0x34f478(_0x3893e3,_0x392f87);{let _0x1cf720,_0xe5025a;_0xe5025a='u'==_0x392f87['type']||'r'==_0x392f87['type']?[]:_0x392f87['children']['map'](_0x23dcf9=>this['_getViewFromDiffObj'](_0x23dcf9,_0x58281a));const _0x160cac=this['_typeCharToViewClass']['get'](_0x392f87['type'])||_0x5a958d,_0x194732=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1cf720=new _0x160cac(_0x3893e3,_0x392f87['name'],_0x392f87['attributes'],_0xe5025a),'u'==_0x392f87['type']&&_0x392f87['children'][0x0]){const _0x4db8fb=_0x392f87['children'][0x0];if(_0x1cf720['render']=function(_0x46f270){const _0x462be4=_0x46f270['createElement']('div');return _0x462be4['innerHTML']=_0x4db8fb,_0x462be4['childNodes'][0x0];},_0x58281a){const _0x48d44d=new _0x17f4ea(_0x3893e3);_0x48d44d['_appendChild'](_0x1cf720);const _0x14ca79=Array['from'](_0x194732['viewChildrenToDom'](_0x48d44d,{'bind':!0x1})),_0x14e810=_0x194732['domDocument']['createElement']('div');_0x14e810['append'](..._0x14ca79),_0x1cf720=Array['from'](_0x194732['domChildrenToView'](_0x14e810))[0x0];}}else{if('r'==_0x392f87['type']&&_0x392f87['children'][0x0]){const _0x4fd373=_0x392f87['children'][0x0];if(_0x1cf720['render']=function(_0x340cd1){_0x340cd1['innerHTML']=_0x4fd373;},_0x58281a){const _0x202c5f=new _0x17f4ea(_0x3893e3);_0x202c5f['_appendChild'](_0x1cf720);const _0x378fa0=Array['from'](_0x194732['viewChildrenToDom'](_0x202c5f,{'bind':!0x1})),_0x21e300=_0x194732['domDocument']['createElement']('div');_0x21e300['append'](..._0x378fa0);const _0xa129e8=Array['from'](_0x194732['domChildrenToView'](_0x21e300));_0xa129e8['length']>0x1?_0x1cf720['_appendChild'](_0xa129e8):_0x1cf720=_0xa129e8[0x0];}}}if(_0x392f87['customProperties']){for(const [_0x14ed1a,_0x497f3e]of _0x392f87['customProperties'])_0x1cf720['_setCustomProperty'](_0x14ed1a,_0x497f3e);}const _0x3d24be=void 0x0===_0x392f87['fillerOffset']?null:_0x392f87['fillerOffset'];return null!==_0x3d24be&&(_0x1cf720['getFillerOffset']=()=>_0x3d24be),_0x1cf720;}}['_makeModelFromViewString'](_0x5a49b2){const _0x210124=JSON['parse'](_0x5a49b2),_0x24f687=this['editor']['editing']['view']['document'],_0x14ec80=new _0x17f4ea(_0x24f687,_0x210124['map'](_0x55822e=>this['_getViewFromDiffObj'](_0x55822e,!0x0)));return this['editor']['data']['toModel'](_0x14ec80);}['_removeRevisionMarkers'](_0x177e93){return(_0x177e93=_0x177e93['filter'](_0x30c86a=>!_0x30c86a['name']||'revision-start'!==_0x30c86a['name']&&'revision-end'!==_0x30c86a['name']))['forEach'](_0x1449eb=>{'string'!=typeof _0x1449eb&&(_0x1449eb['children']=this['_removeRevisionMarkers'](_0x1449eb['children']),_0x1449eb['attributes']=_0x1449eb['attributes']['filter'](_0x12b72c=>!_0x12b72c[0x0]['startsWith']('data-revision-')));}),_0x177e93;}}function R(_0x502768,_0x43f582,_0x258bc3){const t=_0x502768['t'];switch(_0x43f582){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'},_0x258bc3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x258bc3);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 _0x2a66d6{['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[_0xe8c0a4,S,$,_0x364808];}constructor(_0x1503e1){super(_0x1503e1),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 _0x3a9ec9=_0x25d6ef();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3a9ec9},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 _0x18c572=this['repository']['getRevision'](0x0),_0x25edea=_0x18c572&&null===_0x18c572['creator']?_0x18c572:null;if(this['_continueCurrentRevision']=!!_0x25edea&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x50f07b=this['_source']['getCurrentRevisionId'](),_0x11f8da=this['repository']['getRevision'](_0x50f07b);if(_0x11f8da)this['_startingVersion']=_0x11f8da['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xb3286f=this['_source']['history']['_operations']['find'](_0x396793=>!_0x396793['_isInit']),_0x3ab43e=_0xb3286f?_0xb3286f['baseVersion']:this['_source']['history']['version'];_0x18c572?(_0x18c572['toVersion']<_0x3ab43e&&_0x18c572['_update']({'toVersion':_0x3ab43e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x25edea['id'],this['_startingVersion']=_0x25edea['fromVersion']):(this['_startingVersion']=_0x18c572['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3ab43e,this['_continueCurrentRevision']=!0x1);}}else _0x25edea&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x25edea['toVersion'],this['editor']['model']['document']['history']['version']),_0x25edea['fromVersion']===_0x25edea['toVersion']?(0x0!==_0x25edea['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x25edea['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x25edea['id'],this['_startingVersion']=_0x25edea['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',_0xd8c7ba=>!_0xd8c7ba),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5f4ad3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5effdc;for(const _0x50c8c0 in _0x5f4ad3){const _0x284f1d=_0x50c8c0,_0x1edf5b=_0x5f4ad3[_0x284f1d];if('revisionHistoryLicenseKeyValid'==_0x1edf5b||'revisionHistoryLicenseKeyInvalid'==_0x1edf5b||'revisionHistoryLicenseKeyExpired'==_0x1edf5b||'revisionHistoryLicenseKeyDomainLimit'==_0x1edf5b||'revisionHistoryLicenseKeyNotAllowed'==_0x1edf5b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1edf5b||'revisionHistoryLicenseKeyTrialLimit'==_0x1edf5b||'revisionHistoryLicenseKeyUsageLimit'==_0x1edf5b){delete _0x5f4ad3[_0x284f1d],_0x5effdc=_0x1edf5b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5effdc&&_0x5f4ad3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5effdc&&_0x5f4ad3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5effdc&&_0x5f4ad3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5effdc&&_0x5f4ad3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5effdc&&_0x5f4ad3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5effdc&&_0x5f4ad3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5effdc&&_0x5f4ad3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3d9776=this['repository']['getRevision'](0x0),_0x3df21b=await this['getRevisionDocumentData'](_0x3d9776),_0x1c8c45=await this['getRevisionRootsAttributes'](_0x3d9776);this['_replaceEditorDataWithRevisionData'](_0x3df21b,_0x1c8c45);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x48128e){this['_source']=_0x48128e;}async['update'](){const _0xde6ed7=await this['_source']['getLatestVersion']();if(_0xde6ed7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4940ea=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xde6ed7});_0x4940ea['authors']=_0x4940ea['authorsIds']['map'](_0x575e69=>this['editor']['plugins']['get']('Users')['getUser'](_0x575e69)),this['currentRevision']['_update'](_0x4940ea);}}async['saveRevision'](_0x46126d={},_0x102794=null){const _0x4f51c0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x102794>this['currentRevision']['toVersion']&&(_0x102794=null),null===_0x102794&&(_0x102794=await this['_source']['getLatestVersion']());const _0x362e08=this['_getFromVersion'](_0x102794),_0x5c1303=this['buildRevisionData']({'from':_0x362e08,'to':_0x102794});if(this['currentRevision']['toVersion']<_0x102794){const _0x347d67=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x102794,'to':_0x102794});_0x347d67['authors']=[],_0x347d67['authorsIds']=[],_0x347d67['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x347d67,!0x0),delete _0x347d67['authors'],_0x4f51c0['push'](_0x347d67);}_0x46126d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x46126d['name']=_0x46126d['name']||null,_0x46126d['id']=_0x46126d['id']||_0x25d6ef(),_0x46126d={..._0x46126d,..._0x5c1303};const _0x58aa82=this['addRevisionData'](_0x46126d);_0x4f51c0['push'](_0x46126d);const _0xf4766d=this['repository']['getIndex'](_0x58aa82);if(0x0!==_0xf4766d){const _0x1ca49b=this['repository']['getRevision'](_0xf4766d-0x1);if(_0x1ca49b['fromVersion']!==_0x102794){const _0xb422c=this['_revisionDataBuilder']['getData'](_0x102794,_0x1ca49b['toVersion']),_0x2ee167={'id':_0x1ca49b['id'],'diffData':_0xb422c['diffData'],'authorsIds':_0xb422c['authorsIds'],'authors':_0xb422c['authorsIds']['map'](_0x20fa5c=>this['editor']['plugins']['get']('Users')['getUser'](_0x20fa5c)),'fromVersion':_0x102794};_0x1ca49b===this['currentRevision']&&(_0x2ee167['createdAt']=new Date(_0x46126d['createdAt']['getTime']()+0xa)),_0x1ca49b['_update'](_0x2ee167,!0x0),delete _0x2ee167['authors'],_0x4f51c0['push'](_0x2ee167);}}if(this['adapter']){for(const _0x547ab2 of _0x4f51c0)this['_bufferUpdate'](_0x547ab2['id'],_0x547ab2,!0x0);this['sendBufferedUpdates']();}return _0x58aa82;}['addRevisionData'](_0x385f8d){const _0x331bbd=this['repository']['createRevision'](_0x385f8d);return this['adapter']&&_0x331bbd['on']('_update',(_0x43caca,_0x21decb,_0x215163)=>{_0x215163||(this['_bufferUpdate'](_0x21decb['id'],_0x21decb,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x331bbd,this['_findInsertionIndex'](_0x331bbd)),_0x331bbd;}async['getRevisionDocumentData'](_0xf4fa4f){return await this['_utils']['loadRevisionData'](_0xf4fa4f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xf4fa4f);}async['getRevisionRootsAttributes'](_0x3b1836){return await this['_utils']['loadRevisionData'](_0x3b1836,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3b1836);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2d047b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x45d7f8=0x0;_0x45d7f8<_0x2d047b['length'];_0x45d7f8++){const _0x1c56eb=_0x2d047b[_0x45d7f8];let _0x4f2037=!0x1;for(const _0x51cca7 of Object['keys'](_0x1c56eb))void 0x0===_0x1c56eb[_0x51cca7]?delete _0x1c56eb[_0x51cca7]:'id'!==_0x51cca7&&(_0x4f2037=!0x0);_0x4f2037||(_0x2d047b[_0x45d7f8]=null);}if(_0x2d047b=_0x2d047b['filter'](_0x130f08=>null!==_0x130f08),!_0x2d047b['length'])return;for(let _0x8a8794=0x0;_0x8a8794<_0x2d047b['length'];_0x8a8794++){const _0x48d169=_0x2d047b[_0x8a8794];void 0x0!==_0x48d169['fromVersion']&&void 0x0===_0x48d169['toVersion']&&(_0x48d169['toVersion']=this['repository']['getRevision'](_0x48d169['id'])['toVersion']),void 0x0!==_0x48d169['toVersion']&&void 0x0===_0x48d169['fromVersion']&&(_0x48d169['fromVersion']=this['repository']['getRevision'](_0x48d169['id'])['fromVersion']);}const _0x3d1081=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2d047b,_0x3d1081)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x12bca3=>{if(_0x12bca3){for(const _0x4a451e of _0x12bca3)this['setRevisionData']({'id':_0x4a451e['id'],'createdAt':_0x4a451e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1fab40=null,from:_0x44dc37=null,to:_0x1455ea=null}){_0x44dc37=null!==_0x44dc37?_0x44dc37:_0x1fab40['fromVersion'],_0x1455ea=null!==_0x1455ea?_0x1455ea:_0x1fab40['toVersion'];const _0x4976f0=this['_revisionDataBuilder']['getData'](_0x44dc37,_0x1455ea),_0x3b75b4={'diffData':_0x4976f0['diffData'],'authorsIds':_0x4976f0['authorsIds'],'fromVersion':_0x44dc37,'toVersion':_0x1455ea};if(!_0x1fab40||_0x1455ea!==_0x1fab40['toVersion']){const _0x13f8cf=_0x1455ea-0x1,_0x37d7c9=this['_source']['history']['getOperation'](_0x13f8cf);_0x3b75b4['createdAt']=_0x37d7c9&&_0x37d7c9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x44dc37===this['_loadedStateData']['fromVersion']){for(const _0x3a796d of this['_loadedStateData']['authors'])_0x3b75b4['authorsIds']['includes'](_0x3a796d['id'])||_0x3b75b4['authorsIds']['push'](_0x3a796d['id']);}return _0x3b75b4;}['_bufferUpdate'](_0xd7e8db,_0x589860,_0xfd706a){if(this['_bufferedUpdates']['has'](_0xd7e8db)){const _0xc26dd0=this['_bufferedUpdates']['get'](_0xd7e8db);_0x589860=_0xfd706a?{..._0xc26dd0,..._0x589860}:{..._0x589860,..._0xc26dd0};}this['_bufferedUpdates']['set'](_0xd7e8db,_0x589860);}['setRevisionData'](_0x45d288){const _0x255a84=this['repository']['getRevision'](_0x45d288['id']);if(_0x45d288['createdAt']&&(_0x45d288['createdAt']=new Date(_0x45d288['createdAt'])),_0x45d288['authorsIds']){const _0x5eef31=this['editor']['plugins']['get']('Users');_0x45d288['authors']=_0x45d288['authorsIds']['map'](_0x9078cf=>_0x5eef31['getUser'](_0x9078cf));}_0x255a84['_update'](_0x45d288,!0x0);}['_createInitialRevision'](_0x3f6133){const _0x3240ce=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3240ce)this['_initialRevisionId']=_0x3240ce['id'];else{const _0x59d90d=!this['editor']['model']['document']['roots']['find'](_0x25ecc7=>this['editor']['model']['hasContent'](_0x25ecc7)),_0xbb1d45=this['editor']['plugins']['get']('Users')['me']['id'],_0x426885=R(this['editor']['locale'],_0x59d90d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3f6133,'to':_0x3f6133,'id':this['_initialRevisionId'],'name':_0x426885,'creatorId':_0xbb1d45});}}['_createCurrentRevision'](_0x44a498){const _0x3a27fc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3a27fc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x44a498,'to':_0x44a498,'id':_0x3a27fc,'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'](_0x2dd708,_0x1366ef){let _0x3dfaa6=this['editor']['config']['get']('initialData'),_0xf2876f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3dfaa6){_0x3dfaa6={};for(const _0x9fbcba of this['editor']['model']['document']['getRootNames']())_0x3dfaa6[_0x9fbcba]='';}if('string'==typeof _0x3dfaa6&&(_0x3dfaa6={'main':_0x3dfaa6}),void 0x0===_0xf2876f){_0xf2876f={};for(const _0x4000a9 of this['editor']['model']['document']['getRootNames']())_0xf2876f[_0x4000a9]={};}let _0x14e959=!0x1;const _0x5e47bb=Object['keys'](_0x3dfaa6),_0x39e817=Object['keys'](_0x2dd708);for(const _0x5bb2fb of _0x5e47bb){if(_0x3dfaa6[_0x5bb2fb]!==_0x2dd708[_0x5bb2fb]&&''!==_0x3dfaa6[_0x5bb2fb]['trim']()){_0x14e959=!0x0;break;}if(!_0x55ad3a(_0xf2876f[_0x5bb2fb],_0x1366ef[_0x5bb2fb])&&Object['keys'](_0xf2876f[_0x5bb2fb])['length']>0x0){_0x14e959=!0x0;break;}}_0x14e959||(_0x14e959=_0x39e817['some'](_0x3c3173=>!this['editor']['model']['document']['getRoot'](_0x3c3173))),_0x14e959&&_0x15941e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3dfaa6,'editorRootsAttributes':_0xf2876f,'revisionData':_0x2dd708,'revisionRootsAttributes':_0x1366ef}),this['editor']['config']['set']('initialData',_0x2dd708),this['editor']['config']['set']('rootsAttributes',_0x1366ef);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5454fc=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5454fc['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x51ffb0){const _0x571fa8=this['repository']['getRevisions']();_0x571fa8['reverse']();let _0x4867c6=0x0;for(;_0x4867c6<_0x571fa8['length'];){const _0x42961a=_0x571fa8[_0x4867c6];if(_0x42961a===this['currentRevision']){_0x4867c6++;continue;}if(_0x42961a['id']===this['_initialRevisionId'])break;const _0x4c7c2f=_0x51ffb0['toVersion']-_0x42961a['toVersion']||_0x51ffb0['fromVersion']-_0x42961a['fromVersion'];if(_0x4c7c2f>0x0)break;if(_0x4c7c2f<0x0)_0x4867c6++;else{if(!_0x51ffb0['creator']&&_0x42961a['creator'])break;if(_0x42961a['creator']||!_0x51ffb0['creator']){if(_0x51ffb0['createdAt']>_0x42961a['createdAt'])break;_0x4867c6++;}else _0x4867c6++;}}return _0x4867c6;}['_getFromVersion'](_0x440d06){const _0x251faa=this['repository']['getRevisions']();_0x251faa['reverse'](),_0x251faa['shift']();const _0x190668=_0x251faa['find'](_0x30da1f=>_0x30da1f['toVersion']<=_0x440d06)['toVersion'];return _0x190668<this['_startingVersion']?this['_startingVersion']:_0x190668;}['_makeRevision']({name:_0x588bcd,from:_0x4432ee,to:_0x46d47b,creatorId:_0x5cb4fd,id:_0x20cddb}){const _0xcb8131=this['buildRevisionData']({'from':_0x4432ee,'to':_0x46d47b});_0xcb8131['name']=_0x588bcd,_0xcb8131['creatorId']=_0x5cb4fd,_0xcb8131['id']=_0x20cddb;const _0x41b4f7=this['addRevisionData'](_0xcb8131);return this['adapter']&&this['_bufferUpdate'](_0xcb8131['id'],_0xcb8131,!0x0),_0x41b4f7;}['_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(_0x3bf5db){this['editor']=_0x3bf5db,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'](_0x360af7){this['source']=_0x360af7;const _0x4880bc=new Map(),_0x2527e4=new Map(),_0x1a1c24=this['editor']['model']['document']['roots']['map'](_0x48a757=>_0x48a757['rootName']);for(const _0x477e0a of _0x1a1c24){const _0x386516=this['editor']['model']['document']['getRoot'](_0x477e0a),_0x3d34a5=x(_0x386516);_0x4880bc['set'](_0x477e0a,_0x3d34a5),_0x2527e4['set'](_0x477e0a,Object['fromEntries'](_0x386516['getAttributes']()));}const _0x5dfe09=Array['from'](this['editor']['model']['markers'])['map'](_0xf0120=>[_0xf0120['name'],_0xf0120['getRange']()]),_0xdaed59=this['source']['version'];this['_saveMetaData'](_0xdaed59,_0x4880bc,_0x5dfe09,_0x2527e4),this['_startingRevisionId']=this['_revisionId'];const _0xe734f9=new Map(),_0x35a199=new Map();for(const _0x1fe603 of _0x1a1c24){const _0x10d62c=N(_0x1fe603);_0xe734f9['set'](_0x1fe603,_0x10d62c),_0x35a199['set'](_0x1fe603,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xe734f9,[],_0x35a199);}['getData'](_0x61dc64,_0x137ddb){if(this['_lastFrom']===_0x61dc64&&this['_lastTo']<=_0x137ddb)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x137ddb,!0x0);else{if(!this['_savedMetaData']['has'](_0x61dc64)){const _0x38cb77=this['_getPreviousFrom'](_0x61dc64);this['_calculateMetaData'](_0x38cb77,_0x61dc64,!0x1);}this['_calculateMetaData'](_0x61dc64,_0x137ddb,!0x0);}return this['_lastFrom']=_0x61dc64,this['_lastTo']=_0x137ddb,this['_getState']();}['loadState'](_0x7c3cfc){if(!this['_savedMetaData']['has'](_0x7c3cfc['fromVersion'])){const _0x15b578=this['_getPreviousFrom'](_0x7c3cfc['fromVersion']);this['_calculateMetaData'](_0x15b578,_0x7c3cfc['fromVersion'],!0x1);}this['_calculateMetaData'](_0x7c3cfc['fromVersion'],_0x7c3cfc['toVersion'],!0x1);const _0x42e58f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x7c3cfc['fromVersion'],this['_lastTo']=_0x7c3cfc['toVersion'];for(const _0xdaf6c1 in _0x7c3cfc['diffData']){const _0x2603f7=_0x7c3cfc['diffData'][_0xdaf6c1]['attachChange'],_0xad23d=_0x36f024(_0x7c3cfc['diffData'][_0xdaf6c1]['attributesBefore'])||{},_0x4ebcc5=_0x42e58f['_makeModelFromViewString'](_0x7c3cfc['diffData'][_0xdaf6c1]['deletions']);_0x4ebcc5['rootName']=_0xdaf6c1,_0x4ebcc5['_isAttached']=!_0x2603f7||!_0x2603f7['isAttached'],_0x4ebcc5['isAttached']=()=>_0x4ebcc5['_isAttached'],this['_baseRoots']['set'](_0xdaf6c1,_0x4ebcc5),this['_baseRootsAttributes']['set'](_0xdaf6c1,_0xad23d),_0x2603f7&&this['_touchedRoots']['set'](_0xdaf6c1,_0x2603f7);const _0x276bf7=this['_makeIdsRoot'](_0x4ebcc5);this['_baseIdsRoots']['set'](_0xdaf6c1,_0x276bf7);for(const [_0x4a150c,_0x1e7a2d]of _0x4ebcc5['markers']){if(!_0x4a150c['startsWith']('revision:'))continue;const _0x53ce74=_0x4a150c['split'](':')[0x2];for(const _0x10dc21 of _0x1e7a2d['getWalker']({'singleCharacters':!0x0})){const _0x27dba4=this['_getVidAttributeName'](_0x10dc21),_0x36bfff='elementEnd'==_0x10dc21['type']?_0x10dc21['previousPosition']['path']['slice'](0x0,-0x1):_0x10dc21['previousPosition']['path'],_0x58bb44=_0x276bf7['getNodeByPath'](_0x36bfff)['getAttribute'](_0x27dba4);this['_touched']['set'](_0x58bb44,{'userId':_0x53ce74});}}}this['_startingRevisionId']=this['_revisionId'];const _0xda9928=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x127699=>!this['_touched']['has'](_0x127699));let _0x4a4ca5=0x0;const _0x17bbbd=new Map();for(const _0x561790 in _0x7c3cfc['diffData']){const _0x4776da=_0x7c3cfc['diffData'][_0x561790]['attachChange'],_0x456102=_0x36f024(_0x7c3cfc['diffData'][_0x561790]['attributesAfter'])||{},_0x28e5e5=_0x42e58f['_makeModelFromViewString'](_0x7c3cfc['diffData'][_0x561790]['insertions']);_0x28e5e5['rootName']=_0x561790,_0x28e5e5['_isAttached']=!_0x4776da||_0x4776da['isAttached'],_0x28e5e5['isAttached']=()=>_0x28e5e5['_isAttached'],this['_diffRoots']['set'](_0x561790,_0x28e5e5),this['_diffRootsAttributes']['set'](_0x561790,_0x456102);const _0x34775c=this['_makeIdsRoot'](_0x28e5e5,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x561790,_0x34775c),_0x17bbbd['set'](_0x561790,_0x28e5e5['isAttached']()?_0x456102:{});for(const [_0x1ebf8b,_0x45635c]of _0x28e5e5['markers']){if(!_0x1ebf8b['startsWith']('revision:'))continue;const _0x130cbe=_0x1ebf8b['split'](':')[0x2];for(const _0x4ad958 of _0x45635c['getWalker']({'singleCharacters':!0x0})){const _0x3e6060=this['_getVidAttributeName'](_0x4ad958),_0x28c28c=this['_revisionId']++,_0x17de4e='elementEnd'==_0x4ad958['type']?_0x4ad958['previousPosition']['path']['slice'](0x0,-0x1):_0x4ad958['previousPosition']['path'];_0x34775c['getNodeByPath'](_0x17de4e)['_setAttribute'](_0x3e6060,_0x28c28c),this['_touched']['set'](_0x28c28c,{'userId':_0x130cbe});}}for(const _0x21ffbb of this['editor']['model']['createRangeIn'](_0x28e5e5)['getWalker']({'singleCharacters':!0x0})){const _0x2facbb=this['_getVidAttributeName'](_0x21ffbb),_0x3304b1='elementEnd'==_0x21ffbb['type']?_0x21ffbb['previousPosition']['path']['slice'](0x0,-0x1):_0x21ffbb['previousPosition']['path'],_0x1f20de=_0x34775c['getNodeByPath'](_0x3304b1);_0x1f20de['getAttribute'](_0x2facbb)>0x0||_0x1f20de['_setAttribute'](_0x2facbb,_0xda9928[_0x4a4ca5++]);}for(const [_0xd786a4,_0x3973ee]of _0x28e5e5['markers'])_0xd786a4['startsWith']('revision:')||this['_markers']['set'](_0xd786a4,_0x3973ee);}const {roots:_0xd1bcaf}=this['_savedMetaData']['get'](_0x7c3cfc['fromVersion']),{roots:_0x3cef0b}=this['_savedMetaData']['get'](_0x7c3cfc['toVersion']),_0x302296=x(_0xd1bcaf['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x302296),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x302296,Number['NEGATIVE_INFINITY']));const _0x6a82e0=x(_0x3cef0b['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x6a82e0),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x6a82e0));const _0x3d8d4f=Array['from'](this['_diffRoots'])['map'](([_0x51fb51,_0x17042d])=>[_0x51fb51,x(_0x17042d)]);this['_saveMetaData'](this['_lastTo'],_0x3d8d4f,this['_markers'],_0x17bbbd);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5c6509,_0x364174,_0x59696e,_0x1b80ee){const _0x14e9d4=new Map(_0x364174),_0x36c78e=new Map(_0x36f024(_0x1b80ee)),_0x131831=new Map();for(const [_0x559a60,_0x27358f]of _0x59696e)_0x131831['set'](_0x559a60,{'start':_0x27358f['start']['clone'](),'end':_0x27358f['end']['clone'](),'rootName':_0x27358f['root']['rootName']});this['_savedMetaData']['set'](_0x5c6509,{'roots':_0x14e9d4,'markers':_0x131831,'rootsAttributes':_0x36c78e});}['_removeMetaData'](_0x1683f9){this['_savedMetaData']['delete'](_0x1683f9);}['_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'](_0x4f368d,_0x10f535=null){let _0x56c57f=null;_0x4f368d['is']('documentFragment')||(_0x56c57f=new _0xaec574(_0x4f368d['name'],{'vid_start':null===_0x10f535?this['_revisionId']++:_0x10f535++}));const _0xf0ff18=[];for(const _0x4400c7 of _0x4f368d['getChildren']())if(_0x4400c7['is']('element')){_0xf0ff18['push'](this['_makeIdsRoot'](_0x4400c7,_0x10f535));const _0x42cb5b=_0xf0ff18[_0xf0ff18['length']-0x1];null!==_0x10f535&&(_0x10f535=_0x42cb5b['is']('element','$text')?_0x42cb5b['getAttribute']('vid')+0x1:_0x42cb5b['getAttribute']('vid_end')+0x1);}else{for(let _0x275393=0x0;_0x275393<_0x4400c7['offsetSize'];_0x275393++)_0xf0ff18['push'](new _0xaec574('$text',{'vid':null===_0x10f535?this['_revisionId']++:_0x10f535++}));}if(_0x4f368d['is']('documentFragment')){const _0xfbd361=N(_0x4f368d['rootName']);return _0xfbd361['_insertChild'](0x0,_0xf0ff18),_0xfbd361;}return _0x56c57f['_setAttribute']('vid_end',null===_0x10f535?this['_revisionId']++:_0x10f535++),_0x56c57f['_insertChild'](0x0,_0xf0ff18),_0x56c57f;}['_calculateMetaData'](_0x4b9737,_0x581761,_0x408579){this['_reset']();const {roots:_0x24a88b,markers:_0xb6c9a6,rootsAttributes:_0x364c4a}=this['_savedMetaData']['get'](_0x4b9737);this['_baseRoots']=new Map(_0x24a88b),this['_baseRootsAttributes']=new Map(_0x36f024(_0x364c4a));for(const [_0x4be5a5,_0x5514fa]of this['_baseRoots'])if('$graveyard'!==_0x4be5a5&&(this['_diffRoots']['set'](_0x4be5a5,x(_0x5514fa)),this['_diffRootsAttributes']=new Map(_0x36f024(_0x364c4a)),_0x408579)){const _0x3aa602=this['_revisionId'];this['_idsRoots']['set'](_0x4be5a5,this['_makeIdsRoot'](_0x5514fa)),this['_baseIdsRoots']['set'](_0x4be5a5,this['_makeIdsRoot'](_0x5514fa,_0x3aa602));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x408579&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x94d0fd,_0x141c37]of _0xb6c9a6){const _0x3e6454=this['_baseRoots']['get'](_0x141c37['rootName']),_0x14fb84=this['_diffRoots']['get'](_0x141c37['rootName']),_0x25f95c=new _0x33fa35(this['_fixPosition'](_0x141c37['start'],_0x3e6454),this['_fixPosition'](_0x141c37['end'],_0x3e6454)),_0x24c87c=this['_fixRange'](_0x25f95c,_0x14fb84);_0x3e6454['markers']['set'](_0x94d0fd,_0x25f95c),this['_markers']['set'](_0x94d0fd,_0x24c87c);}this['_applyOperations'](_0x4b9737,_0x581761,_0x408579);}['_applyOperations'](_0x1fa9a4,_0x58cd16,_0x1e867e){for(const _0x4c0188 of this['source']['getOperations'](_0x1fa9a4,_0x58cd16))this['_handleOperation'](_0x4c0188,_0x1e867e);for(const _0x2142e4 of this['_diffRoots']['values']())_0x2142e4['markers']['clear']();for(const [_0x5a4947,_0x40d5c7]of this['_markers']){this['_diffRoots']['get'](_0x40d5c7['root']['rootName'])['markers']['set'](_0x5a4947,_0x40d5c7['clone']());}const _0x412e37=new Map(),_0x3486a7=new Map();for(const [_0x343ed0,_0x249f7]of this['_diffRoots'])_0x412e37['set'](_0x343ed0,x(_0x249f7)),_0x3486a7['set'](_0x343ed0,this['_diffRootsAttributes']['get'](_0x343ed0));this['_saveMetaData'](_0x58cd16,_0x412e37,this['_markers'],_0x3486a7);}['_getPreviousFrom'](_0x15ef82){const _0x12ddfb=Array['from'](this['_savedMetaData']['keys']());_0x12ddfb['sort']((_0xe25b9c,_0x3bea3f)=>_0xe25b9c-_0x3bea3f),_0x12ddfb['reverse']();for(const _0x5be1e7 of _0x12ddfb)if(_0x5be1e7<_0x15ef82)return _0x5be1e7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3791b5,_0x1e7869){const _0x2d01fe=Array['from'](_0x1e7869['markers'])['map'](([_0x3e616a,_0x350609])=>[_0x3e616a,this['_fixRange'](_0x350609,_0x3791b5)]);_0x3791b5['markers']=new Map(_0x2d01fe);}['_transformMarkers'](_0x2b209d){for(const _0x92c150 of this['_markers']['values']()){const _0x48f749=_0x92c150['getTransformedByOperation'](_0x2b209d),_0x2bdd6d=_0x33fa35['_createFromRanges'](_0x48f749);_0x92c150['start']=_0x2bdd6d['start'],_0x92c150['end']=_0x2bdd6d['end'];}}['_handleOperation'](_0x5725d7,_0x415ffd){if('addRoot'!=_0x5725d7['type']&&'detachRoot'!=_0x5725d7['type']){if('insert'==_0x5725d7['type']){const _0x181a56=_0x5725d7['position']['root']['rootName'];this['_diffRoots']['has'](_0x181a56)||(this['_diffRoots']['set'](_0x181a56,N(_0x181a56,!0x0)),this['_diffRootsAttributes']['set'](_0x181a56,{}),_0x415ffd&&this['_idsRoots']['set'](_0x181a56,N(_0x181a56,!0x0)));}else{if('addRootAttribute'==_0x5725d7['type']||'removeRootAttribute'==_0x5725d7['type']||'changeRootAttribute'==_0x5725d7['type'])return void this['_handleRootAttributeOperation'](_0x5725d7);'marker'==_0x5725d7['type']&&this['_handleMarkerOperation'](_0x5725d7);}if('marker'!==_0x5725d7['type']){const _0xf82b77=this['_cloneOperation'](_0x5725d7,this['_diffRoots']);_0xf82b77['_execute'](),this['_transformMarkers'](_0xf82b77);}if(_0x415ffd)switch(_0x5725d7['type']){case'insert':this['_handleInsertOperation'](_0x5725d7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5725d7);break;case'merge':this['_handleMergeOperation'](_0x5725d7);break;case'split':this['_handleSplitOperation'](_0x5725d7);}}else this['_handleRootOperation'](_0x5725d7,_0x415ffd);}['_cloneOperation'](_0x3fbe12,_0x514ffa){const _0x51c9d2=_0x3fbe12['clone']();return _0x51c9d2['_authorId']=_0x3fbe12['_authorId'],this['_fixOperation'](_0x51c9d2,_0x514ffa),_0x51c9d2;}['_getBaseVids'](_0x58182e){return _0x58182e['map'](_0x5d4d73=>{const _0x516a26=this['_getVidAttributeName'](_0x5d4d73);return Number(_0x5d4d73['item']['getAttribute'](_0x516a26));});}['_generateTape'](_0xcbf63,_0x1a9abc){if(_0xcbf63['is']('element','$text'))_0x1a9abc['push']({'item':_0xcbf63,'type':'text'});else{_0xcbf63['is']('element')&&_0x1a9abc['push']({'item':_0xcbf63,'type':'elementStart'});for(const _0x2e25ea of _0xcbf63['getChildren']())this['_generateTape'](_0x2e25ea,_0x1a9abc);_0xcbf63['is']('element')&&_0x1a9abc['push']({'item':_0xcbf63,'type':'elementEnd'});}return _0x1a9abc;}['_getState'](){const _0x4813f8=new Map(this['_touched']),_0x301ac6=new Map(_0x4813f8),_0x1bdc24=new Map(),_0x3c18fb={'insertions':{},'deletions':{}},_0x17ba68={'insertions':{},'deletions':{}},_0x544758=new Map(),_0x3fb4a4=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3fb4a4['delete']('$graveyard');for(const _0xeda660 of _0x3fb4a4){const _0x36acab=this['_diffRoots']['get'](_0xeda660)||N(_0xeda660,!0x1),_0x513fb3=this['_baseRoots']['get'](_0xeda660)||N(_0xeda660,!0x1);_0x36acab['isAttached']()||_0x513fb3['isAttached']()?(_0x3c18fb['insertions'][_0xeda660]=x(_0x36acab),_0x3c18fb['deletions'][_0xeda660]=x(_0x513fb3),this['_copyMarkers'](_0x3c18fb['deletions'][_0xeda660],_0x513fb3),this['_copyMarkers'](_0x3c18fb['insertions'][_0xeda660],_0x36acab),_0x17ba68['insertions'][_0xeda660]=this['_generateTape'](this['_idsRoots']['get'](_0xeda660),[]),_0x17ba68['deletions'][_0xeda660]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xeda660)||N(_0xeda660,!0x1),[])):_0x3fb4a4['delete'](_0xeda660);}for(const _0x12b4da of _0x3fb4a4){const _0x1b6819=_0x17ba68['insertions'][_0x12b4da];for(const _0xa808a1 of _0x1b6819){const _0x3d885a=this['_getVidAttributeName'](_0xa808a1),_0x26802e=_0xa808a1['item']['getAttribute'](_0x3d885a);_0x301ac6['delete'](_0x26802e),_0x26802e>=this['_startingRevisionId']&&_0x1bdc24['set'](_0x26802e,_0x4813f8['get'](_0x26802e));}}for(const _0xbf3b04 of _0x3fb4a4){const _0x63a13d=_0x17ba68['insertions'][_0xbf3b04],_0xc39d1d=this['_getBaseVids'](_0x17ba68['deletions'][_0xbf3b04]);let _0x13cbc3=0x0;for(const _0x37d887 of _0x63a13d){const _0xe44581=this['_getVidAttributeName'](_0x37d887),_0x1667fd=_0x37d887['item']['getAttribute'](_0xe44581);if(!_0x1bdc24['has'](_0x1667fd)&&!_0x544758['has'](_0x1667fd)){if(_0x301ac6['has'](_0x1667fd))_0x13cbc3++;else{if(_0x1667fd!=_0xc39d1d[_0x13cbc3]){const _0x334923=_0x4813f8['get'](_0x1667fd)||_0x4813f8['get'](_0xc39d1d[_0x13cbc3]);for(;_0x1667fd!=_0xc39d1d[_0x13cbc3];)_0x301ac6['has'](_0xc39d1d[_0x13cbc3])||(_0x544758['set'](_0xc39d1d[_0x13cbc3],_0x334923),_0x4813f8['set'](_0xc39d1d[_0x13cbc3],_0x334923)),_0x13cbc3++;}_0x13cbc3++;}}}}for(const _0x3db861 of _0x3fb4a4){const _0x561748=_0x17ba68['insertions'][_0x3db861];for(const _0x2900bd of _0x561748){const _0x167097=this['_getVidAttributeName'](_0x2900bd),_0x97782b=_0x2900bd['item']['getAttribute'](_0x167097);if(_0x544758['has'](_0x97782b)){const _0x216a49=_0x544758['get'](_0x97782b);_0x301ac6['has'](_0x97782b)||_0x301ac6['set'](_0x97782b,{..._0x216a49}),_0x1bdc24['set'](_0x97782b,{..._0x216a49});}}}for(const _0x5aa3d1 of _0x301ac6['keys']())_0x5aa3d1>=this['_startingRevisionId']&&_0x301ac6['delete'](_0x5aa3d1);const _0x40c902=new Map();for(const _0x286580 of _0x3fb4a4){let _0x2ebd5d=_0x17ba68['insertions'][_0x286580];for(const _0x31fe6a of _0x2ebd5d)if(_0x31fe6a['item']['is']('element','tableCell')){const _0x31ef53=this['_getVidAttributeName'](_0x31fe6a),_0x497bca=_0x31fe6a['item']['getAttribute'](_0x31ef53);if(_0x1bdc24['has'](_0x497bca)){const _0x2d4f82=_0x31fe6a['item']['parent']['parent']['getAttribute']('vid_start'),_0x506479=_0x40c902['get'](_0x2d4f82)||new Set();_0x506479['add'](_0x1bdc24['get'](_0x497bca)['userId']),_0x40c902['set'](_0x2d4f82,_0x506479);}}_0x2ebd5d=_0x17ba68['deletions'][_0x286580];for(const _0x480e8a of _0x2ebd5d)if(_0x480e8a['item']['is']('element','tableCell')){const _0x41904b=this['_getVidAttributeName'](_0x480e8a),_0x3e72d8=_0x480e8a['item']['getAttribute'](_0x41904b);if(_0x301ac6['has'](_0x3e72d8)){const _0x31bfc2=_0x480e8a['item']['parent']['parent']['getAttribute']('vid_start'),_0x52087c=_0x40c902['get'](_0x31bfc2)||new Set();_0x52087c['add'](_0x301ac6['get'](_0x3e72d8)['userId']),_0x40c902['set'](_0x31bfc2,_0x52087c);}}for(const _0x1e953f of _0x40c902['keys']())(_0x1bdc24['has'](_0x1e953f)||_0x301ac6['has'](_0x1e953f))&&_0x40c902['delete'](_0x1e953f);}for(const _0x4aa94b of _0x3fb4a4){const _0x1d162c=_0x17ba68['insertions'][_0x4aa94b];let _0x55264e=null,_0x30c7fd=null;for(const _0x4b42c7 of _0x1d162c){const _0x175f27=this['_getVidAttributeName'](_0x4b42c7),_0x326212=_0x4b42c7['item']['getAttribute'](_0x175f27),_0x3d28d6=_0x40c902['get'](_0x326212);_0x3d28d6&&'elementStart'==_0x4b42c7['type']&&(_0x55264e=Array['from'](_0x3d28d6)[0x0],_0x30c7fd=_0x4b42c7['item']['getAttribute']('vid_end')),_0x55264e&&(_0x301ac6['set'](_0x326212,{'userId':_0x55264e}),_0x1bdc24['set'](_0x326212,{'userId':_0x55264e})),_0x326212==_0x30c7fd&&(_0x55264e=null,_0x30c7fd=null);}}const _0x1f8ad0={},_0x5a6228=new Set();for(const _0x5cecf6 of _0x3fb4a4){const _0x40828e=_0x3c18fb['deletions'][_0x5cecf6],_0x429791=_0x3c18fb['insertions'][_0x5cecf6];for(const {userId:_0x3f5dd0}of this['_touchedMarkers']['values']())null!==_0x3f5dd0&&_0x5a6228['add'](_0x3f5dd0);for(const {userId:_0x658fd6}of this['_touchedRoots']['values']())null!==_0x658fd6&&_0x5a6228['add'](_0x658fd6);this['_markChanges'](_0x429791,_0x17ba68['insertions'][_0x5cecf6],_0x1bdc24,'insertion',_0x5a6228),this['_markChanges'](_0x40828e,_0x17ba68['deletions'][_0x5cecf6],_0x301ac6,'deletion',_0x5a6228),_0x1f8ad0[_0x5cecf6]={'insertions':this['_prepareViewToSave'](_0x429791),'deletions':this['_prepareViewToSave'](_0x40828e),'attachChange':this['_touchedRoots']['get'](_0x5cecf6)||null,'attributesBefore':_0x36f024(this['_baseRootsAttributes']['get'](_0x5cecf6))||{},'attributesAfter':_0x36f024(this['_diffRootsAttributes']['get'](_0x5cecf6))};}return{'diffData':_0x1f8ad0,'authorsIds':Array['from'](_0x5a6228)};}['_processRootBeforeSave'](_0x293088){for(const [,_0x1c6863]of _0x293088['markers']){const _0x570b47=_0x1c6863['start']['getAncestors']()['filter'](_0x10b64d=>'tableCell'==_0x10b64d['name']);for(const _0x105f64 of _0x570b47)0x1==_0x105f64['childCount']&&_0x105f64['getChild'](0x0)['is']('element','paragraph')&&_0x105f64['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3d2623){this['_processRootBeforeSave'](_0x3d2623);const _0x7fe164=this['editor']['data']['toView'](_0x3d2623,{}),_0x3c0ac2=Array['from'](_0x7fe164['getChildren']())['map'](_0x93d4bc=>this['_getViewJson'](_0x93d4bc));return JSON['stringify'](_0x3c0ac2);}['_getViewJson'](_0x5e403a){if(_0x5e403a['is']('$text'))return _0x5e403a['data'];{const _0x6ee812=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x170122=_0x5e403a,_0x421420=this['editor']['data']['htmlProcessor']['domConverter'],_0x1b9e5d={'type':_0x6ee812['_getTypeCharForViewElement'](_0x170122),'name':_0x170122['name'],'attributes':Array['from'](_0x170122['getAttributes']()),'children':Array['from'](_0x170122['getChildren']())['map'](_0x1cbf70=>this['_getViewJson'](_0x1cbf70))};if(_0x5e403a['is']('uiElement')&&'$comment'!=_0x5e403a['name']){const _0x43f4bb=_0x5e403a['render'](_0x421420['domDocument'],_0x421420);_0x1b9e5d['children']['push'](_0x43f4bb['outerHTML']);}else{if(_0x5e403a['is']('rawElement')){const _0x20a050=_0x421420['domDocument']['createElement'](_0x170122['name']);_0x5e403a['render'](_0x20a050,_0x421420),_0x1b9e5d['children']['push'](_0x20a050['innerHTML']);}}const _0x5980db=Array['from'](_0x170122['getCustomProperties']());_0x5980db['length']>0x0&&(_0x1b9e5d['customProperties']=_0x5980db);const _0x3020ab=_0x170122['getFillerOffset']();return null!==_0x3020ab&&(_0x1b9e5d['fillerOffset']=_0x3020ab),_0x1b9e5d;}}['_markChanges'](_0x1d1d38,_0x190cfb,_0x2ace1e,_0x526d6a,_0x474f4d){let _0x54f560=null,_0x48c1d4=null,_0x47793a=0x0;const _0x2ba061=this['editor']['model'];for(let _0x3455bd=0x0;_0x3455bd<_0x190cfb['length'];_0x3455bd++){const _0x1f9786=this['_getVidAttributeName'](_0x190cfb[_0x3455bd]),_0xd3cce4=_0x190cfb[_0x3455bd]['item']['getAttribute'](_0x1f9786),_0x42003a=_0x2ace1e['get'](_0xd3cce4),_0x1727f0=_0x3455bd==_0x190cfb['length']-0x1;(!_0x54f560&&_0x42003a&&(_0x54f560=_0x42003a,_0x48c1d4=_0x190cfb[_0x3455bd]),_0x54f560&&(!_0x42003a||_0x42003a['userId']!=_0x54f560['userId']))&&(_0x41f8b7(_0x42003a,P(_0x48c1d4,_0x1d1d38,_0x2ba061),P(_0x190cfb[_0x3455bd],_0x1d1d38,_0x2ba061)),_0x54f560=_0x42003a||null,_0x48c1d4=_0x42003a?_0x190cfb[_0x3455bd]:null),_0x54f560&&_0x1727f0&&_0x41f8b7(_0x42003a,P(_0x48c1d4,_0x1d1d38,_0x2ba061),V(_0x190cfb[_0x3455bd],_0x1d1d38,_0x2ba061));}function _0x41f8b7(_0x325256,_0x3d9e59,_0x462a63){const _0x1d15ca=_0x54f560['userId'],_0x220731='revision:'+_0x526d6a+':'+_0x1d15ca+':'+_0x47793a++,_0x391328=_0x2ba061['createRange'](_0x3d9e59,_0x462a63);_0x1d1d38['markers']['set'](_0x220731,_0x391328),null!==_0x1d15ca&&_0x474f4d['add'](_0x1d15ca);}}['_getVidAttributeName'](_0x48dfe3){switch(_0x48dfe3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3eb3e8,_0x410ab6){_0x3eb3e8['baseVersion']=null;for(const _0x491143 in _0x3eb3e8){const _0x3b383d=_0x3eb3e8[_0x491143];if(_0x3b383d instanceof _0x1e76f0){const _0x140782=_0x410ab6['get'](_0x3b383d['root']['rootName']);_0x3eb3e8[_0x491143]=this['_fixPosition'](_0x3b383d,_0x140782);}if(_0x3b383d instanceof _0x33fa35){const _0x2eb61d=_0x410ab6['get'](_0x3b383d['root']['rootName']);_0x3eb3e8[_0x491143]=this['_fixRange'](_0x3b383d,_0x2eb61d);}'root'===_0x491143&&(_0x3eb3e8['root']=_0x410ab6['get'](_0x3eb3e8['root']['rootName']));}}['_fixRange'](_0xdca759,_0xe628ba){return this['editor']['model']['createRange'](this['_fixPosition'](_0xdca759['start'],_0xe628ba),this['_fixPosition'](_0xdca759['end'],_0xe628ba));}['_fixPosition'](_0x3b503d,_0xc26672){return this['editor']['model']['createPositionFromPath'](_0xc26672,_0x3b503d['path'],_0x3b503d['stickiness']);}['_handleInsertOperation'](_0x2eb869){const _0x4a5fe2=this['_idsRoots']['get'](_0x2eb869['position']['root']['rootName']),_0x4d0927=this['_fixPosition'](_0x2eb869['position'],_0x4a5fe2),_0x168925=null===_0x2eb869['_authorId']?null:_0x2eb869['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1291ba=_0x4d0927['parent'],_0x33ed02=this['_revisionId'],_0x1be6c7=[];for(const _0x587ec9 of _0x2eb869['nodes'])if(_0x587ec9['is']('element'))_0x1be6c7['push'](this['_makeIdsRoot'](_0x587ec9));else{for(let _0x3748c5=0x0;_0x3748c5<_0x587ec9['offsetSize'];_0x3748c5++)_0x1be6c7['push'](new _0xaec574('$text',{'vid':this['_revisionId']++}));}const _0x104926=this['_revisionId'];for(let _0x4a23b1=_0x33ed02;_0x4a23b1<_0x104926;_0x4a23b1++)this['_touched']['set'](_0x4a23b1,{'userId':_0x168925});_0x1291ba['_insertChild'](_0x4d0927['offset'],_0x1be6c7);}['_handleMoveOperation'](_0x4a8207){(_0x4a8207=this['_cloneOperation'](_0x4a8207,this['_idsRoots']))['_execute']();const _0x2608cf=null===_0x4a8207['_authorId']?null:_0x4a8207['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17ba60=_0x4a8207['getMovedRangeStart'](),_0x20a7b1=_0x17ba60['parent'],_0x407420=_0x17ba60['offset'];!function _0x566562(_0x23c257,_0x596a5c,_0x388968,_0x6fcd5e){for(let _0x3cf76f=_0x388968;_0x3cf76f<_0x6fcd5e;_0x3cf76f++){const _0x380835=_0x596a5c['getChild'](_0x3cf76f);_0x380835['is']('element','$text')?_0x23c257['set'](_0x380835['getAttribute']('vid'),{'userId':_0x2608cf}):(_0x23c257['set'](_0x380835['getAttribute']('vid_start'),{'userId':_0x2608cf}),_0x566562(_0x23c257,_0x380835,0x0,_0x380835['childCount']),_0x23c257['set'](_0x380835['getAttribute']('vid_end'),{'userId':_0x2608cf}));}}(this['_touched'],_0x20a7b1,_0x407420,_0x407420+_0x4a8207['howMany']);}['_handleMergeOperation'](_0x4e2254){const _0x108e93=null===(_0x4e2254=this['_cloneOperation'](_0x4e2254,this['_idsRoots']))['_authorId']?null:_0x4e2254['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x549713=_0x4e2254['targetPosition']['parent'],_0x228c1a=_0x4e2254['sourcePosition']['parent'],_0x52ea8f=_0x549713['getAttribute']('vid_end'),_0x640145=_0x228c1a['getAttribute']('vid_start');_0x549713['_setAttribute']('vid_end',_0x228c1a['getAttribute']('vid_end')),_0x228c1a['_setAttribute']('vid_end',_0x52ea8f),this['_touched']['set'](_0x640145,{'userId':_0x108e93}),this['_touched']['set'](_0x52ea8f,{'userId':_0x108e93}),_0x4e2254['_execute']();}['_handleSplitOperation'](_0x5af174){const _0x2a221f=null===(_0x5af174=this['_cloneOperation'](_0x5af174,this['_idsRoots']))['_authorId']?null:_0x5af174['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39a217=_0x5af174['graveyardPosition'],_0x55e0ca=_0x5af174['splitPosition']['parent'];_0x5af174['_execute']();const _0x2436d4=_0x55e0ca['getAttribute']('vid_end'),_0x5d22f2=_0x5af174['insertionPosition']['nodeAfter'];if(_0x39a217){const _0x31225e=_0x5d22f2['getAttribute']('vid_end'),_0x4137b7=_0x55e0ca['getAttribute']('vid_end');_0x55e0ca['_setAttribute']('vid_end',_0x31225e),_0x5d22f2['_setAttribute']('vid_end',_0x4137b7),this['_touched']['set'](_0x55e0ca['getAttribute']('vid_end'),{'userId':_0x2a221f}),this['_touched']['set'](_0x5d22f2['getAttribute']('vid_start'),{'userId':_0x2a221f});}else{const _0x17346f=this['_revisionId']++,_0x166ba8=this['_revisionId']++;_0x55e0ca['_setAttribute']('vid_end',_0x17346f),_0x5d22f2['_setAttribute']('vid_start',_0x166ba8),_0x5d22f2['_setAttribute']('vid_end',_0x2436d4),this['_touched']['set'](_0x17346f,{'userId':_0x2a221f}),this['_touched']['set'](_0x166ba8,{'userId':_0x2a221f});}}['_handleMarkerOperation'](_0x5cb23c){if(!_0x5cb23c['affectsData'])return;const _0x29507a=(_0x5cb23c=this['_cloneOperation'](_0x5cb23c,this['_diffRoots']))['oldRange']?_0x5cb23c['oldRange']['root']:null,_0x2bae6c=_0x5cb23c['newRange']?_0x5cb23c['newRange']['root']:null;_0x29507a&&this['_markers']['delete'](_0x5cb23c['name']),_0x2bae6c&&this['_markers']['set'](_0x5cb23c['name'],_0x5cb23c['newRange']['clone']());const _0x50187b=null===_0x5cb23c['_authorId']?null:_0x5cb23c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x173ef8=_0x5cb23c['name'];if(!this['_touchedMarkers']['has'](_0x173ef8))return void this['_touchedMarkers']['set'](_0x173ef8,{'range':_0x5cb23c['oldRange'],'userId':_0x50187b});const _0x547ce9=this['_touchedMarkers']['get'](_0x173ef8),_0xcfcf09=_0x547ce9['range'],_0x12874f=_0x5cb23c['newRange'];null==_0xcfcf09&&null==_0x12874f||_0xcfcf09&&_0x12874f&&_0xcfcf09['isEqual'](_0x12874f)?this['_touchedMarkers']['delete'](_0x5cb23c['name']):_0x547ce9['userId']=_0x50187b;}['_handleRootOperation'](_0x503ecb,_0x52303b){this['_diffRoots']['has'](_0x503ecb['rootName'])?this['_diffRoots']['get'](_0x503ecb['rootName'])['_isAttached']=_0x503ecb['isAdd']:(this['_diffRoots']['set'](_0x503ecb['rootName'],N(_0x503ecb['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x503ecb['rootName'],{}),_0x52303b&&this['_idsRoots']['set'](_0x503ecb['rootName'],N(_0x503ecb['rootName'],!0x0)));const _0x9798dc=null===_0x503ecb['_authorId']?null:_0x503ecb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x530018=this['_touchedRoots']['get'](_0x503ecb['rootName']);_0x530018&&_0x530018['userId']===_0x9798dc?this['_touchedRoots']['delete'](_0x503ecb['rootName']):this['_touchedRoots']['set'](_0x503ecb['rootName'],{'userId':_0x9798dc,'isAttached':_0x503ecb['isAdd']});}['_handleRootAttributeOperation'](_0x226338){const _0xc5b780=this['_diffRootsAttributes']['get'](_0x226338['root']['rootName']);null===_0x226338['newValue']?delete _0xc5b780[_0x226338['key']]:_0xc5b780[_0x226338['key']]=_0x226338['newValue'];}}function x(_0x2328e0){const _0x221637=N(_0x2328e0['rootName'],_0x2328e0['isAttached']());for(const _0x4e218f of _0x2328e0['getChildren']()){const _0x2fd9ce=_0x4e218f['_clone'](!0x0);_0x221637['_appendChild'](_0x2fd9ce);}return _0x221637;}function N(_0x2a1dc5,_0x3c26b4=!0x0){const _0x36fb4d=new _0x4e6cb3();return _0x36fb4d['rootName']=_0x2a1dc5,_0x36fb4d['_isAttached']=_0x3c26b4,_0x36fb4d['isAttached']=()=>_0x36fb4d['_isAttached'],_0x36fb4d;}function P(_0x5c1e3d,_0x4c0981,_0x326958){const _0x419227='elementEnd'==_0x5c1e3d['type']?_0x326958['createPositionAt'](_0x5c1e3d['item'],'end'):_0x326958['createPositionBefore'](_0x5c1e3d['item']);return _0x326958['createPositionFromPath'](_0x4c0981,_0x419227['path'],_0x419227['stickiness']);}function V(_0x457cb3,_0x4191ba,_0x283e2e){const _0x526b79='elementStart'==_0x457cb3['type']?_0x283e2e['createPositionAt'](_0x457cb3['item'],0x0):_0x283e2e['createPositionAfter'](_0x457cb3['item']);return _0x283e2e['createPositionFromPath'](_0x4191ba,_0x526b79['path'],_0x526b79['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x903d2c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4ac377){super(),this['id']=_0x4ac377['id']||_0x25d6ef(),this['author']=_0x4ac377['author'],this['type']=_0x4ac377['type'],this['data']=_0x4ac377['data']||{},this['rootName']=_0x4ac377['rootName'],this['set']('createdAt',_0x4ac377['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(_0x28a654,_0x4fb180){this['newRevisionId']=_0x28a654,this['oldRevisionId']=_0x4fb180,this['changes']=new _0x28d875();}['_setChanges'](_0x5a867b){for(const _0x128408 of _0x5a867b)this['changes']['add'](_0x128408);}}class l extends _0x2a66d6{['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[_0xe8c0a4,_0xb3d812,S,$];}constructor(_0x51b3a2){super(_0x51b3a2),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',(_0x186afe,_0x5431b7,_0x304046)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x125d9b=>{for(const _0x5ecf39 of this['editor']['editing']['view']['document']['roots'])_0x304046?_0x125d9b['removeClass']('ck-editor__editable__overlay',_0x5ecf39):_0x125d9b['addClass']('ck-editor__editable__overlay',_0x5ecf39);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xc0facb=>null!==_0xc0facb),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x30db19,_0x3bfe05,_0x2399b2)=>_0x30db19&&_0x2399b2?_0x3bfe05['changes']['getIndex'](_0x2399b2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x18b8e6,_0x3613f7)=>_0x18b8e6?_0x3613f7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xb3d812);}['init'](){const _0x42ac4b=this['editor'],_0x1f18fb=new rt(_0x42ac4b,{'direction':'backward'}),_0x77b8aa=new rt(_0x42ac4b,{'direction':'forward'});(_0x42ac4b['commands']['add']('showPreviousChange',_0x1f18fb),_0x42ac4b['commands']['add']('showNextChange',_0x77b8aa),_0x42ac4b['commands']['add']('restoreRevision',new nt(_0x42ac4b)),this['on']('change:numberOfChanges',()=>{_0x1f18fb['refresh'](),_0x77b8aa['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x42ac4b['enableReadOnlyMode']('revision-viewer'),_0x42ac4b['plugins']['has']('WidgetToolbarRepository'))&&_0x42ac4b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xddc7e7){return await this['_utils']['loadRevisionData'](_0xddc7e7,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xddc7e7);}async['getRevisionRootsAttributes'](_0x574a99){return await this['_utils']['loadRevisionData'](_0x574a99,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x574a99);}async['compare'](_0x2123a7,_0x1b7131,_0x1dab52=!0x1){if(!this['isEnabled'])return;const _0xa84268=this['diff'],_0x5d687c=this['repository'],_0x103cda='string'==typeof _0x2123a7?_0x5d687c['getRevision'](_0x2123a7):_0x2123a7,_0x2753c2='string'==typeof _0x1b7131?_0x5d687c['getRevision'](_0x1b7131):_0x1b7131,_0x21ab44=_0x103cda['id'],_0xdc2926=_0x2753c2?_0x2753c2['id']:null;if(!_0x1dab52&&this['diff']&&this['diff']['newRevisionId']===_0x21ab44&&this['diff']['oldRevisionId']===_0xdc2926)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x21ab44,_0xdc2926);const _0x183f1a=this['_getRevisionsRange'](_0x103cda,_0x2753c2,!0x0)['map'](_0x77f5e5=>this['_utils']['loadRevisionData'](_0x77f5e5,this['adapter']));return _0x183f1a['push'](new Promise(_0x44a752=>{setTimeout(_0x44a752,0x14);})),Promise['all'](_0x183f1a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2de0cd=this['_getDiff'](_0x21ab44,_0xdc2926);for(const _0x13e304 of _0x2de0cd['changes'])this['_changeIdToChange']['set'](_0x13e304['id'],_0x13e304);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5051ce=>{for(const _0x150ef6 of this['editor']['model']['document']['getRootNames']())_0x5051ce['detachRoot'](_0x150ef6);for(const _0x15e5c8 of Object['keys'](_0x2de0cd['model'])){const _0x121111=_0x5051ce['addRoot'](_0x15e5c8);for(const _0x5bd80f of Object['keys'](_0x2de0cd['attributes'][_0x15e5c8]))_0x5051ce['setAttribute'](_0x5bd80f,_0x2de0cd['attributes'][_0x15e5c8][_0x5bd80f],_0x121111);_0x5051ce['insert'](_0x2de0cd['model'][_0x15e5c8],_0x121111,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2de0cd['changes'])),this['isReady']=!0x0;})['catch'](_0x596d4b=>{console['error'](_0x596d4b),this['_cleanUp'](),_0xa84268&&(this['diff']=_0xa84268),this['isReady']=!0x0;});}['addRevisionData'](_0x51587f,_0x150afc){const _0x5ddd67=this['repository']['createRevision'](_0x51587f);return _0x5ddd67['on']('_update',(_0x5bf537,_0xa14931,_0x5b77fb)=>_0x150afc(_0xa14931,_0x5b77fb,_0x5ddd67)),this['repository']['addRevision'](_0x5ddd67),_0x5ddd67;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x40406a=>{for(const _0xf3b74a of this['editor']['model']['document']['getRootNames']())_0x40406a['detachRoot'](_0xf3b74a);});}['_sortAndFilterDiffChanges'](_0x3a6279){const _0x5e6e24=[],_0x3f5614=new Map();for(const _0x26d750 of this['editor']['model']['document']['getRootNames']()){const _0x5f1de6=this['editor']['editing']['view']['getDomRoot'](_0x26d750);if(!_0x5f1de6)continue;const _0x5376ae=_0x5f1de6['getClientRects']()['item'](0x0);_0x5376ae&&(_0x5e6e24['push'](_0x26d750),_0x3f5614['set'](_0x26d750,_0x5376ae));}return _0x5e6e24['sort']((_0x814733,_0x3a9a89)=>{const _0x198518=_0x3f5614['get'](_0x814733),_0xe95df=_0x3f5614['get'](_0x3a9a89);return _0x198518['y']-_0xe95df['y']||_0x198518['x']-_0xe95df['x'];}),(_0x3a6279=_0x3a6279['filter'](_0x29cade=>_0x5e6e24['includes'](_0x29cade['rootName'])))['sort']((_0x4bcc6e,_0x3901f5)=>_0x5e6e24['indexOf'](_0x4bcc6e['rootName'])-_0x5e6e24['indexOf'](_0x3901f5['rootName'])),_0x3a6279;}['_makeTape'](_0x2dbae4){const _0x55cce8=Array['from'](_0x2dbae4['markers'])['filter'](([_0x3083ce,_0x5e96f2])=>_0x3083ce['startsWith']('revision:')&&!_0x5e96f2['isCollapsed']),_0x109e97=Array['from'](this['editor']['model']['createRangeIn'](_0x2dbae4)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x55cce8['length'])for(const _0xfbdd38 of _0x109e97){const [_0x529bc9,_0x4a337c]=_0x55cce8[0x0],[,_0x553338,_0x4bc342]=_0x529bc9['split'](':');if(_0x4a337c['end']['isEqual'](_0xfbdd38['nextPosition'])&&_0x55cce8['shift'](),(_0xfbdd38['previousPosition']['isEqual'](_0x4a337c['start'])||_0xfbdd38['previousPosition']['isAfter'](_0x4a337c['start']))&&('insertion'==_0x553338?_0xfbdd38['isAdded']={'userId':_0x4bc342}:'deletion'==_0x553338&&(_0xfbdd38['isRemoved']={'userId':_0x4bc342})),0x0==_0x55cce8['length'])break;}return _0x109e97;}['_refreshStartEndIndex'](_0x2e30ed){const _0x49e86d=new Map();for(let _0x264eee=0x0;_0x264eee<_0x2e30ed['length'];_0x264eee++)'text'===_0x2e30ed[_0x264eee]['type']?(_0x2e30ed[_0x264eee]['item']['startIndex']=_0x264eee,_0x2e30ed[_0x264eee]['item']['endIndex']=_0x264eee):('elementStart'===_0x2e30ed[_0x264eee]['type']?_0x2e30ed[_0x264eee]['item']['startIndex']=_0x264eee:'elementEnd'===_0x2e30ed[_0x264eee]['type']&&(_0x2e30ed[_0x264eee]['item']['endIndex']=_0x264eee),_0x49e86d['set'](_0x2e30ed[_0x264eee]['id'],_0x264eee));for(const _0x1057bc of _0x49e86d['values']())'elementStart'===_0x2e30ed[_0x1057bc]['type']?_0x2e30ed[_0x1057bc]['item']['endIndex']=_0x49e86d['get'](_0x2e30ed[_0x1057bc]['pairId']):'elementEnd'===_0x2e30ed[_0x1057bc]['type']&&(_0x2e30ed[_0x1057bc]['item']['startIndex']=_0x49e86d['get'](_0x2e30ed[_0x1057bc]['pairId']));}['_processTape'](_0xcadc03){for(let _0x2ee380=0x0;_0x2ee380<_0xcadc03['length'];_0x2ee380++){if('elementStart'===_0xcadc03[_0x2ee380]['type'])_0xcadc03[_0x2ee380]['item']['startIndex']=_0x2ee380;else{if('elementEnd'===_0xcadc03[_0x2ee380]['type']){_0xcadc03[_0x2ee380]['item']['endIndex']=_0x2ee380;const _0x184ba1=_0xcadc03[_0x2ee380]['item']['startIndex'];_0xcadc03[_0x184ba1]['pairId']=_0xcadc03[_0x2ee380]['id'],_0xcadc03[_0x2ee380]['pairId']=_0xcadc03[_0x184ba1]['id'];}else _0xcadc03[_0x2ee380]['item']['startIndex']=_0x2ee380,_0xcadc03[_0x2ee380]['item']['endIndex']=_0x2ee380,_0xcadc03[_0x2ee380]['pairId']=null;}_0xcadc03[_0x2ee380]['markersStart']||(_0xcadc03[_0x2ee380]['markersStart']=[],_0xcadc03[_0x2ee380]['markersEnd']=[]);}}['_markInsertions'](_0x48e5dd,_0x41600c){const _0x426283=_0x48e5dd['filter'](_0xc2eaf2=>!_0xc2eaf2['isAdded']);for(let _0x17e7c2=0x0;_0x17e7c2<_0x41600c['length'];_0x17e7c2++)_0x41600c[_0x17e7c2]['isAdded']&&(_0x426283[_0x17e7c2]['isAdded']=_0x41600c[_0x17e7c2]['isAdded']);}['_getDiff'](_0x3ddc1f,_0x570933=null){const _0x3d0782=this['repository']['getRevision'](_0x3ddc1f),_0x2b344f=_0x570933?this['repository']['getRevision'](_0x570933):null,_0x8984b2=this['_getRevisionsRange'](_0x3d0782,_0x2b344f),_0xea87d1=_0x8984b2[_0x8984b2['length']-0x1],_0xa9e638=new Map(),_0x1ec467={'model':{},'attributes':{},'changes':[]},_0x35664b=new Set(),_0x18599c=new Map();for(let _0x329be0=_0x8984b2['length']-0x1;_0x329be0>=0x0;_0x329be0--){const _0x22bccb=_0x8984b2[_0x329be0];for(const _0x40cc15 of Object['keys'](_0x22bccb['diffData']))if(_0x22bccb['diffData'][_0x40cc15]['attachChange']){const _0x1b9aa5=_0x22bccb['diffData'][_0x40cc15]['attachChange'];_0x1b9aa5['isAttached']?(_0x35664b['add'](_0x40cc15),_0x18599c['has'](_0x40cc15)&&_0x18599c['get'](_0x40cc15)['userId']==_0x1b9aa5['userId']?_0x18599c['delete'](_0x40cc15):_0x18599c['set'](_0x40cc15,_0x1b9aa5)):_0x18599c['has'](_0x40cc15)?(_0x35664b['delete'](_0x40cc15),_0x18599c['delete'](_0x40cc15)):(_0x35664b['add'](_0x40cc15),_0x18599c['set'](_0x40cc15,_0x1b9aa5));}else _0x35664b['add'](_0x40cc15);}for(const _0x2def87 of _0x35664b){const _0x50e13a=_0x18599c['has'](_0x2def87)&&!_0x18599c['get'](_0x2def87)['isAttached'];let _0x47ca02=_0x50e13a?_0x8984b2['length']-0x1:0x0;const _0x42d6b7=_0x50e13a?-0x1:0x1;for(;_0x8984b2[_0x47ca02];){const _0x564b79=_0x8984b2[_0x47ca02];if(_0x564b79['diffData'][_0x2def87]){const _0x252411=_0x50e13a?_0x564b79['diffData'][_0x2def87]['attributesBefore']:_0x564b79['diffData'][_0x2def87]['attributesAfter'];_0x1ec467['attributes'][_0x2def87]=_0x252411?_0x36f024(_0x252411):{};break;}_0x47ca02+=_0x42d6b7;}}for(const _0x8705b8 of _0x8984b2){_0x8705b8['model']={};for(const _0x5e9b3f of _0x8705b8['authors'])_0xa9e638['set'](_0x5e9b3f['id'],_0x5e9b3f);for(const _0x362d35 of _0x35664b){const _0x32294e=_0x8705b8['diffData'][_0x362d35]?_0x8705b8['diffData'][_0x362d35]['insertions']:'[]',_0x459867=_0x8705b8['diffData'][_0x362d35]?_0x8705b8['diffData'][_0x362d35]['deletions']:'[]';_0x8705b8['model'][_0x362d35]={'insertions':this['_utils']['_makeModelFromViewString'](_0x32294e),'deletions':this['_utils']['_makeModelFromViewString'](_0x459867)};}}for(const _0x338183 of _0x35664b){let _0x30448a=null,_0x2eee9f=0x0;const _0x429d94=new Map(Array['from'](_0x3d0782['model'][_0x338183]['insertions']['markers'])['filter'](([_0x57c067])=>!_0x57c067['startsWith']('revision:')));let _0x11cc2a=0x0;for(const _0x55b3ee of _0x8984b2){const _0x368b41=this['_makeTape'](_0x55b3ee['model'][_0x338183]['insertions']);_0x55b3ee==_0x3d0782?(_0x30448a=_0x368b41,_0x2eee9f=_0x30448a['length'],_0x30448a['forEach'](_0x455b4e=>{_0x455b4e['id']=_0x11cc2a++;}),this['_processTape'](_0x30448a)):this['_markInsertions'](_0x30448a,_0x368b41);const _0x1e4ca8=_0x30448a['filter'](_0x25fea6=>!_0x25fea6['isAdded'])['map'](_0xcb2797=>_0xcb2797['id']);let _0x468159=0x0;const _0x3f1a1a=this['_makeTape'](_0x55b3ee['model'][_0x338183]['deletions']);_0x3f1a1a['forEach'](_0x3f9480=>{_0x3f9480['isRemoved']?_0x3f9480['id']=_0x2eee9f++:_0x3f9480['id']=_0x1e4ca8[_0x468159++];}),this['_processTape'](_0x3f1a1a),this['_setDistance'](_0x30448a,'isAdded'),this['_setDistance'](_0x3f1a1a,'isRemoved'),_0x55b3ee==_0x3d0782&&this['_markMarkers'](_0x30448a,_0x429d94),_0x30448a=this['_joinTapes'](_0x30448a,_0x3f1a1a),this['_refreshStartEndIndex'](_0x30448a),this['_setDistance'](_0x30448a,'isRemoved');}_0x30448a=_0x30448a['filter'](_0x5b0d16=>!(_0x5b0d16['isAdded']&&_0x5b0d16['isRemoved']));const _0xef92c3=new Map(_0xea87d1['model'][_0x338183]['deletions']['markers']),_0xc0d44c=new Set(_0x429d94['keys']());for(const _0x43350c of _0xef92c3['keys']())_0xc0d44c['delete'](_0x43350c);this['_markSuggestions'](_0x30448a,_0xc0d44c),this['_fixObsoleteTags'](_0x30448a),_0x30448a=this['_removeMissingPairs'](_0x30448a),_0x30448a=this['_markMismatchedRemovedTags'](_0x30448a),_0x30448a=this['_removeUnsupportedChanges'](_0x30448a);const {root:_0x3c6052,changes:_0x1e4701}=this['_makeModelFromTape'](_0x30448a,_0xa9e638,_0x338183);_0x1ec467['model'][_0x338183]=_0x3c6052;const _0x23c55e=_0x18599c['get'](_0x338183);if(_0x23c55e){const _0x4ad8c4=_0xa9e638['get'](_0x23c55e['userId']),_0xf8c77=new G({'author':_0x4ad8c4,'type':_0x23c55e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x338183});_0x1e4701['unshift'](_0xf8c77),_0x1ec467['attributes'][_0x338183]['revisionHistoryAttachChange']=_0xf8c77['id'];}_0x1ec467['changes']=_0x1ec467['changes']['concat'](_0x1e4701);}return _0x1ec467;}['_markMarkers'](_0x587a5a,_0x229317){for(let _0xaea308=0x0;_0xaea308<_0x587a5a['length'];_0xaea308++)for(const [_0x33a8fd,_0x3c9aa7]of _0x229317)!_0x3c9aa7['isCollapsed']&&_0x3c9aa7['start']['isEqual'](_0x587a5a[_0xaea308]['previousPosition'])&&_0x587a5a[_0xaea308]['markersStart']['push'](_0x33a8fd),_0x3c9aa7['end']['isEqual'](_0x587a5a[_0xaea308]['nextPosition'])&&_0x587a5a[_0xaea308]['markersEnd']['push'](_0x33a8fd);}['_joinTapes'](_0x20b7e3,_0x570574){let _0x951636=[],_0x38a3d2=0x0,_0x1b28a4=0x0;for(;_0x38a3d2<_0x20b7e3['length']||_0x1b28a4<_0x570574['length'];){const _0x44386a=_0x20b7e3[_0x38a3d2]||{},_0xb9bedd=_0x570574[_0x1b28a4]||{};if(_0x44386a['id']==_0xb9bedd['id'])_0x38a3d2++,_0x1b28a4++,_0x951636['push'](_0x44386a);else{if(_0xb9bedd['isRemoved']&&_0x44386a['isAdded']){const {commonTape:_0x43ef9e,iEnd:_0x32961b,jEnd:_0x17b1ae}=this['_threeWayMerge'](_0x20b7e3,_0x38a3d2,_0x570574,_0x1b28a4);_0x951636=_0x951636['concat'](_0x43ef9e),_0x38a3d2=_0x32961b,_0x1b28a4=_0x17b1ae;}else _0xb9bedd['isRemoved']?(_0x1b28a4++,_0x951636['push'](_0xb9bedd)):(_0x38a3d2++,_0x951636['push'](_0x44386a));}}return _0x951636;}['_markSuggestions'](_0x106b61,_0x2907ae){const _0x434efb=[];for(let _0x2477ee=0x0;_0x2477ee<_0x106b61['length'];_0x2477ee++){for(let _0x1feb0f=0x0;_0x1feb0f<_0x106b61[_0x2477ee]['markersStart']['length'];_0x1feb0f++){const _0xb0dd31=_0x106b61[_0x2477ee]['markersStart'][_0x1feb0f];if(!_0x2907ae['has'](_0xb0dd31))continue;const {group:_0x28bd29,type:_0x38472e,authorId:_0x5727e6}=_0x262e53(_0xb0dd31);'revision-suggestion'!=_0x28bd29||'insertion'!=_0x38472e&&'deletion'!=_0x38472e||(_0x434efb['unshift']({'type':_0x38472e,'name':_0xb0dd31,'userId':_0x5727e6}),_0x106b61[_0x2477ee]['markersStart']['splice'](_0x1feb0f,0x1),_0x1feb0f--);}_0x273cca(_0x106b61[_0x2477ee]);for(let _0x213f39=0x0;_0x213f39<_0x106b61[_0x2477ee]['markersEnd']['length'];_0x213f39++){const _0x428781=_0x106b61[_0x2477ee]['markersEnd'][_0x213f39];if(!_0x2907ae['has'](_0x428781))continue;const {group:_0x566613,type:_0x3ff432}=_0x262e53(_0x428781);if('revision-suggestion'!=_0x566613||'insertion'!=_0x3ff432&&'deletion'!=_0x3ff432)continue;_0x106b61[_0x2477ee]['markersEnd']['splice'](_0x213f39,0x1),_0x213f39--;const _0x4fe9e2=_0x434efb['findIndex'](_0x262382=>_0x262382['name']==_0x428781);_0x4fe9e2>-0x1&&_0x434efb['splice'](_0x4fe9e2,0x1);}}function _0x262e53(_0x15a8e1){const _0x315e95=_0x15a8e1['split'](':');return{'group':_0x315e95[0x0],'type':_0x315e95[0x1],'subType':_0x315e95['length']>=0x5?_0x315e95[0x2]:null,'id':_0x315e95['length']<0x5?_0x315e95[0x2]:_0x315e95[0x3],'authorId':_0x315e95['length']<0x5?_0x315e95[0x3]:_0x315e95[0x4],'markerCount':0x6==_0x315e95['length']?_0x315e95[0x5]:null};}function _0x273cca(_0x2fa90b){for(let _0x5313f6=0x0;_0x5313f6<_0x434efb['length'];_0x5313f6++){if(_0x2fa90b['isAdded']&&'insertion'==_0x434efb[_0x5313f6]['type']&&_0x2fa90b['isAdded']['userId']==_0x434efb[_0x5313f6]['userId'])return _0x2fa90b['isAddSuggestion']=_0x434efb[_0x5313f6],void delete _0x2fa90b['isAdded'];if(!_0x2fa90b['isAdded']&&!_0x2fa90b['isRemoved']&&'deletion'==_0x434efb[_0x5313f6]['type'])return void(_0x2fa90b['isRemoveSuggestion']=_0x434efb[_0x5313f6]);}}}['_setDistance'](_0x4cd7e5,_0x4bd90f){let _0x219110=0x0,_0x34611b=!0x1;const _0x22e00b=new Map();for(const _0x3e5bc9 of _0x4cd7e5)_0x3e5bc9[_0x4bd90f]?_0x34611b&&(_0x219110++,_0x34611b=!0x1):(_0x219110++,_0x34611b=!0x0),_0x22e00b['set'](_0x3e5bc9['id'],_0x219110);for(let _0x2d34c5=0x0;_0x2d34c5<_0x4cd7e5['length'];_0x2d34c5++){if('isRemoved'==_0x4bd90f&&_0x4cd7e5[_0x2d34c5]['isAdded']||'isAdded'==_0x4bd90f&&_0x4cd7e5[_0x2d34c5]['isRemoved'])continue;if('text'==_0x4cd7e5[_0x2d34c5]['type']){_0x4cd7e5[_0x2d34c5]['distance']=0x0;continue;}const _0x1735c3=_0x22e00b['get'](_0x4cd7e5[_0x2d34c5]['pairId']),_0x4d86b8=_0x22e00b['get'](_0x4cd7e5[_0x2d34c5]['id']);_0x4cd7e5[_0x2d34c5]['distance']=_0x1735c3-_0x4d86b8;}}['_getRevisionsRange'](_0x461ea0,_0x2e28e6,_0x5dd6c3=!0x1){const _0x5b3dca=[];let _0x1083e6=this['repository']['getIndex'](_0x461ea0),_0x5a9167=this['repository']['getIndex'](_0x2e28e6);for(-0x1==_0x5a9167&&(_0x5a9167=this['repository']['_revisions']['length'],_0x5dd6c3=!0x1);_0x1083e6<_0x5a9167;)_0x5b3dca['push'](this['repository']['getRevision'](_0x1083e6)),_0x1083e6++;return _0x5dd6c3&&_0x5b3dca['push'](this['repository']['getRevision'](_0x1083e6)),_0x5b3dca;}['_threeWayMerge'](_0x1a0eab,_0x215aed,_0x33e276,_0x55d9db){const _0x24738e=this['editor']['model']['schema'];let _0x3dd75a=_0x215aed;for(;_0x1a0eab[_0x3dd75a]&&_0x1a0eab[_0x3dd75a]['isAdded'];)_0x3dd75a++;let _0xbf7ca5=_0x55d9db;for(;_0x33e276[_0xbf7ca5]&&_0x33e276[_0xbf7ca5]['isRemoved'];)_0xbf7ca5++;_0x327d4c(_0x1a0eab,_0x215aed,_0x3dd75a),_0x327d4c(_0x33e276,_0x55d9db,_0xbf7ca5);const _0xde3acb=_0x33e276['slice'](_0x55d9db,_0xbf7ca5)['concat'](_0x1a0eab['slice'](_0x215aed,_0x3dd75a));return _0xde3acb['sort']((_0x32dfd5,_0x19c1ae)=>_0x32dfd5['side']!=_0x19c1ae['side']?_0x32dfd5['side']-_0x19c1ae['side']:_0x32dfd5['level']!=_0x19c1ae['level']?_0x32dfd5['level']-_0x19c1ae['level']:_0x32dfd5['distance']!=_0x19c1ae['distance']?_0x19c1ae['distance']-_0x32dfd5['distance']:!!_0x32dfd5['isAdded']!=!!_0x19c1ae['isAdded']?-0x1==_0x32dfd5['side']||0x0==_0x32dfd5['side']?_0x32dfd5['isAdded']?-0x1:0x1:_0x32dfd5['isAdded']?0x1:-0x1:_0x32dfd5['index']-_0x19c1ae['index']),{'commonTape':_0xde3acb,'iEnd':_0x3dd75a,'jEnd':_0xbf7ca5};function _0x327d4c(_0x440b56,_0xe2e23c,_0xbd3f1d){let _0x27c5fc=-0x1,_0x532a7d=Number['POSITIVE_INFINITY'],_0x435d77=!0x0;for(let _0x26ae38=_0xe2e23c;_0x26ae38<_0xbd3f1d;_0x26ae38++)if(_0x24738e['isInline'](_0x440b56[_0x26ae38]['item'])||(_0x435d77=!0x1),_0x440b56[_0x26ae38]['item']['startIndex']<_0xe2e23c&&(_0x27c5fc=_0x26ae38),_0x440b56[_0x26ae38]['item']['endIndex']>=_0xbd3f1d){_0x532a7d=_0x26ae38;break;}_0x435d77&&(_0x27c5fc=_0xbd3f1d-0x1);for(let _0x365f0f=_0xe2e23c;_0x365f0f<_0xbd3f1d;_0x365f0f++)_0x440b56[_0x365f0f]['side']=_0x365f0f<=_0x27c5fc?-0x1:_0x365f0f<_0x532a7d?0x0:0x1,_0x440b56[_0x365f0f]['index']=_0x365f0f;let _0x45354e=0x0;for(let _0x576eeb=_0xe2e23c;_0x576eeb<=_0x27c5fc;_0x576eeb++)0x0==_0x440b56[_0x576eeb]['distance']?_0x440b56[_0x576eeb]['level']=_0x45354e:(_0x45354e++,_0x440b56[_0x576eeb]['level']=_0x45354e,_0x45354e++);for(let _0x4ae4dd=_0xe2e23c;_0x4ae4dd<_0xbd3f1d;_0x4ae4dd++)0x0==_0x440b56[_0x4ae4dd]['side']&&(_0x440b56[_0x4ae4dd]['level']=_0x45354e);_0x45354e=0x0;for(let _0x3d0ca5=_0xbd3f1d-0x1;_0x3d0ca5>=_0x532a7d;_0x3d0ca5--)0x0==_0x440b56[_0x3d0ca5]['distance']?_0x440b56[_0x3d0ca5]['level']=_0x45354e:(_0x45354e--,_0x440b56[_0x3d0ca5]['level']=_0x45354e,_0x45354e--);}}['_fixObsoleteTags'](_0x23a066){const _0x36ba7d=new Map(),_0x26f89a=this['editor']['model']['schema'];for(let _0x457428=0x1;_0x457428<_0x23a066['length'];_0x457428++){let _0x1f90d0,_0x20c522,_0x391aa4;const _0x30ec46=_0x23a066[_0x457428],_0x56b8a2=_0x23a066[_0x457428-0x1];if('text'==_0x30ec46['type'])continue;if(_0x30ec46['type']!=_0x56b8a2['type'])continue;if(!_0x26f89a['isBlock'](_0x56b8a2['item'])||_0x26f89a['isLimit'](_0x56b8a2['item']))continue;if(!_0x26f89a['isBlock'](_0x30ec46['item'])||_0x26f89a['isLimit'](_0x30ec46['item']))continue;if((_0x23a066[_0x457428]['isAdded']||_0x23a066[_0x457428]['isAddSuggestion'])&&_0x23a066[_0x457428-0x1]['isRemoved'])_0x1f90d0=_0x23a066[_0x457428],_0x20c522=_0x23a066[_0x457428-0x1],_0x391aa4=_0x457428-0x1;else{if(!_0x23a066[_0x457428]['isRemoved']||!_0x23a066[_0x457428-0x1]['isAdded']&&!_0x23a066[_0x457428-0x1]['isAddSuggestion'])continue;_0x1f90d0=_0x23a066[_0x457428-0x1],_0x20c522=_0x23a066[_0x457428],_0x391aa4=_0x457428;}const _0x198a2f=_0x1f90d0['level']==_0x20c522['level'],_0x1ef914=Math['abs'](_0x1f90d0['level'])<Math['abs'](_0x20c522['level'])&&0x0==_0x20c522['distance'];(_0x198a2f||_0x1ef914)&&(_0x36ba7d['set'](_0x20c522['id'],_0x1f90d0['id']),_0x23a066['splice'](_0x391aa4,0x1),_0x457428--,_0x1f90d0['isAdded']=!0x1);}for(let _0x1a4012=0x0;_0x1a4012<_0x23a066['length'];_0x1a4012++)_0x36ba7d['has'](_0x23a066[_0x1a4012]['pairId'])&&(_0x23a066[_0x1a4012]['pairId']=_0x36ba7d['get'](_0x23a066[_0x1a4012]['pairId']));}['_removeMissingPairs'](_0x6dcad0){const _0x6f7ed2=new Set(_0x6dcad0['map'](_0x1ec58e=>_0x1ec58e['id']));for(let _0x87af1d=0x0;_0x87af1d<_0x6dcad0['length'];_0x87af1d++)_0x6f7ed2['has'](_0x6dcad0[_0x87af1d]['pairId'])||0x0==_0x6dcad0[_0x87af1d]['distance']||(_0x6dcad0[_0x87af1d]['isIncorrect']=!0x0);return _0x6dcad0['filter'](_0x332de1=>!_0x332de1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x587f34){const _0x1319e7=new Set();for(let _0x16edb1=0x0;_0x16edb1<_0x587f34['length'];_0x16edb1++){if(_0x1319e7['has'](_0x587f34[_0x16edb1]['id'])&&_0x587f34[_0x16edb1]['isRemoved']&&(_0x587f34[_0x16edb1]['isIncorrect']=!0x0),_0x587f34[_0x16edb1]['isIncorrect'])continue;if(0x0==_0x587f34[_0x16edb1]['distance'])continue;if('elementStart'!=_0x587f34[_0x16edb1]['type'])continue;if(null==_0x587f34[_0x16edb1]['pairId'])continue;let _0xba0c7b=_0x16edb1+0x1,_0x39f8d1=0x0;for(;_0x587f34[_0xba0c7b]['id']!=_0x587f34[_0x16edb1]['pairId'];)'elementStart'==_0x587f34[_0xba0c7b]['type']?_0x39f8d1++:'elementEnd'==_0x587f34[_0xba0c7b]['type']&&_0x39f8d1--,_0xba0c7b++;if(0x0!=_0x39f8d1){if(_0x587f34[_0x16edb1]['isRemoved'])_0x587f34[_0x16edb1]['isIncorrect']=!0x0;else{for(;_0xba0c7b!=_0x16edb1;)_0x587f34[_0xba0c7b]['isRemoved']&&0x0!=_0x587f34[_0xba0c7b]['distance']&&(_0x587f34[_0xba0c7b]['isIncorrect']=!0x0,_0x1319e7['add'](_0x587f34[_0xba0c7b]['pairId'])),_0xba0c7b--;}}}return _0x587f34['filter'](_0x36edb7=>!_0x36edb7['isIncorrect']);}['_removeUnsupportedChanges'](_0x5d7355){const _0x107228=this['editor']['model']['schema'];for(let _0x5adea8=0x0;_0x5adea8<_0x5d7355['length'];_0x5adea8++){if(!(_0x5d7355[_0x5adea8]['isAdded']||_0x5d7355[_0x5adea8]['isAddSuggestion']||_0x5d7355[_0x5adea8]['isRemoved']||_0x5d7355[_0x5adea8]['isRemoveSuggestion']))continue;if(0x0==_0x5d7355[_0x5adea8]['distance'])continue;const _0x1c9026=_0x5d7355[_0x5adea8]['item'];_0x107228['isBlock'](_0x1c9026)||_0x107228['isLimit'](_0x1c9026)||(_0x5d7355[_0x5adea8]['isAdded']&&delete _0x5d7355[_0x5adea8]['isAdded'],_0x5d7355[_0x5adea8]['isAddSuggestion']&&delete _0x5d7355[_0x5adea8]['isAddSuggestion'],_0x5d7355[_0x5adea8]['isRemoveSuggestion']&&delete _0x5d7355[_0x5adea8]['isRemoveSuggestion'],_0x5d7355[_0x5adea8]['isRemoved']&&(_0x5d7355[_0x5adea8]['isIncorrect']=!0x0));}return _0x5d7355['filter'](_0xc8a776=>!_0xc8a776['isIncorrect']);}['_makeModelFromTape'](_0x1ff06d,_0x40c037,_0x2431bf){const _0x1dbcf8=new _0x4e6cb3(),_0x1ed5f0=[],_0x1f295b=new Map(),_0x2f4906=this['editor']['model'],_0x1e951d=_0x2f4906['schema'],_0x329ae0=[_0x1dbcf8],_0xb235f1={},_0x2b965a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x25040b=null;const _0xeb0983=[0x0];for(let _0x264cd5=0x0;_0x264cd5<_0x1ff06d['length'];_0x264cd5++)if('elementStart'===_0x1ff06d[_0x264cd5]['type']){_0x1ff06d[_0x264cd5]['previousPosition']=_0x2f4906['createPositionFromPath'](_0x1dbcf8,_0xeb0983);const _0x45eedb=new _0xaec574(_0x1ff06d[_0x264cd5]['item']['name'],_0x1ff06d[_0x264cd5]['item']['getAttributes']());_0x329ae0[0x0]['_appendChild'](_0x45eedb),_0xeb0983['push'](0x0),_0x329ae0['unshift'](_0x45eedb),_0x1ff06d[_0x264cd5]['nextPosition']=_0x2f4906['createPositionFromPath'](_0x1dbcf8,_0xeb0983);}else'elementEnd'===_0x1ff06d[_0x264cd5]['type']?(_0x329ae0['shift'](),_0x1ff06d[_0x264cd5]['previousPosition']=_0x2f4906['createPositionFromPath'](_0x1dbcf8,_0xeb0983),_0xeb0983['pop'](),_0xeb0983[_0xeb0983['length']-0x1]++,_0x1ff06d[_0x264cd5]['nextPosition']=_0x2f4906['createPositionFromPath'](_0x1dbcf8,_0xeb0983)):(_0x1ff06d[_0x264cd5]['previousPosition']=_0x2f4906['createPositionFromPath'](_0x1dbcf8,_0xeb0983),_0x25040b?_0x25040b['_data']+=_0x1ff06d[_0x264cd5]['item']['data']:_0x25040b=new _0x1f56f0(_0x1ff06d[_0x264cd5]['item']['data'],_0x1ff06d[_0x264cd5]['item']['getAttributes']()),_0x1ff06d[_0x264cd5+0x1]&&'text'===_0x1ff06d[_0x264cd5+0x1]['type']&&_0x41499d(_0x25040b,_0x1ff06d[_0x264cd5+0x1]['item'])||(_0x329ae0[0x0]['_appendChild'](_0x25040b),_0x25040b=null),_0xeb0983[_0xeb0983['length']-0x1]+=_0x1ff06d[_0x264cd5]['item']['offsetSize'],_0x1ff06d[_0x264cd5]['nextPosition']=_0x2f4906['createPositionFromPath'](_0x1dbcf8,_0xeb0983));for(let _0x3214ed=0x0;_0x3214ed<_0x1ff06d['length'];_0x3214ed++){const _0xe203a8=_0x1ff06d[_0x3214ed]['previousPosition'],_0x38ac88=_0x1ff06d[_0x3214ed]['nextPosition'];for(const _0x287a7e of _0x1ff06d[_0x3214ed]['markersStart'])_0x1f295b['set'](_0x287a7e,{'start':_0xe203a8,'end':null});_0x4ed050('isRemoveSuggestion',_0x3214ed,_0xe203a8,_0x38ac88),_0x4ed050('isAddSuggestion',_0x3214ed,_0xe203a8,_0x38ac88),_0x4ed050('isRemoved',_0x3214ed,_0xe203a8,_0x38ac88),_0x4ed050('isAdded',_0x3214ed,_0xe203a8,_0x38ac88);for(const _0x230577 of _0x1ff06d[_0x3214ed]['markersEnd']){const _0x3494d1=_0x1f295b['get'](_0x230577);_0x3494d1?_0x3494d1['end']=_0x38ac88:_0x1f295b['set'](_0x230577,{'start':_0x38ac88,'end':_0x38ac88});}}for(const [_0x539f64,_0xed5f32]of _0x1f295b){const _0x270319=this['editor']['model']['createRange'](_0xed5f32['start'],_0xed5f32['end']);_0x1dbcf8['markers']['set'](_0x539f64,_0x270319);}return _0x1ed5f0['sort']((_0x3b8bee,_0x1fe23b)=>{const _0x493ec9=_0x1dbcf8['markers']['get']('revision:'+_0x3b8bee['id']),_0xb7ec6b=_0x1dbcf8['markers']['get']('revision:'+_0x1fe23b['id']);return _0x493ec9['start']['isBefore'](_0xb7ec6b['start'])?-0x1:_0x493ec9['start']['isAfter'](_0xb7ec6b['start'])?0x1:_0x493ec9['end']['isBefore'](_0xb7ec6b['end'])?-0x1:_0x493ec9['end']['isAfter'](_0xb7ec6b['end'])?0x1:'add'===_0x3b8bee['type']?-0x1:0x1;}),{'root':_0x1dbcf8,'changes':_0x1ed5f0};function _0x4ed050(_0x349f12,_0x2c15c0,_0x55017e,_0x5d8663){const _0x100fc6=!!_0x1ff06d[_0x2c15c0][_0x349f12],_0x523f5c=_0x100fc6?_0x1ff06d[_0x2c15c0][_0x349f12]['userId']:null,_0x2f65b4=_0x2c15c0===_0x1ff06d['length']-0x1,_0x43c407=_0x2b965a[_0x349f12][0x0],_0x379e0c=_0x1e951d['isObject'](_0x1ff06d[_0x2c15c0]['item']);!_0xb235f1[_0x349f12]&&_0x100fc6?_0xb235f1[_0x349f12]={'start':_0x55017e,'tapeItem':_0x1ff06d[_0x2c15c0],'userId':_0x523f5c,'type':_0x349f12}:_0xb235f1[_0x349f12]&&!_0x100fc6?(_0xb235f1[_0x349f12]['end']=_0x55017e,_0x73556(_0xb235f1[_0x349f12]),_0xb235f1[_0x349f12]=null):_0xb235f1[_0x349f12]&&_0x100fc6&&_0xb235f1[_0x349f12]['userId']!==_0x523f5c&&(_0xb235f1[_0x349f12]['end']=_0x55017e,_0x43c407&&_0x43c407['userId']===_0xb235f1[_0x349f12]['userId']||_0x73556(_0xb235f1[_0x349f12]),_0xb235f1[_0x349f12]={'start':_0x55017e,'tapeItem':_0x1ff06d[_0x2c15c0],'userId':_0x523f5c,'type':_0x349f12}),_0xb235f1[_0x349f12]&&_0x379e0c&&('elementStart'!==_0x1ff06d[_0x2c15c0]['type']||_0x43c407&&_0x43c407['userId']===_0x523f5c||_0x2b965a[_0x349f12]['unshift']({'userId':_0x523f5c,'object':_0x1ff06d[_0x2c15c0]['item'],'change':_0xb235f1[_0x349f12]}),'elementEnd'===_0x1ff06d[_0x2c15c0]['type']&&_0x43c407&&_0x43c407['object']===_0x1ff06d[_0x2c15c0]['item']&&(_0x2b965a[_0x349f12]['shift'](),_0xb235f1[_0x349f12]=_0x43c407['change'])),_0xb235f1[_0x349f12]&&_0x2f65b4&&(_0xb235f1[_0x349f12]['end']=_0x5d8663,_0x73556(_0xb235f1[_0x349f12]),_0xb235f1[_0x349f12]=null);}function _0x73556({start:_0x1821fa,end:_0x460529,tapeItem:_0x2c427a,userId:_0x184803,type:_0xb4b235}){const _0x38415c=_0x2c427a['item'],_0x1a2997=_0x2f4906['schema']['isBlock'](_0x38415c)&&!_0x2f4906['schema']['isLimit'](_0x38415c),_0x45058c=_0x1821fa['nodeAfter']==_0x460529['parent']&&_0x460529['isAtStart'];if(_0x1a2997&&_0x45058c)return;const _0x46369b=_0x2f4906['createRange'](_0x1821fa,_0x460529),_0x3a7c07=_0x40c037['get'](_0x184803),_0x1663eb=new G({'author':_0x3a7c07,'type':'isAdded'==_0xb4b235||'isAddSuggestion'==_0xb4b235?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xb4b235||'isRemoveSuggestion'==_0xb4b235},'createdAt':new Date(),'rootName':_0x2431bf});_0x1ed5f0['push'](_0x1663eb),_0x1dbcf8['markers']['set']('revision:'+_0x1663eb['id'],_0x46369b);}function _0x41499d(_0x15209f,_0x266b71){const _0x33810d=_0x15209f['getAttributes'](),_0x146e77=_0x266b71['getAttributes']();for(const _0x2a3cd6 of _0x33810d){if(_0x2a3cd6[0x1]!==_0x266b71['getAttribute'](_0x2a3cd6[0x0]))return!0x1;_0x146e77['next']();}return _0x146e77['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xa78212=>{const _0x123d1a=_0xa78212['markerName']['split'](':')[0x1],_0x1112b5=this['_getChangeFromId'](_0x123d1a);if(!_0x1112b5)return null;const _0x22591d='add'==_0x1112b5['type']?'insertion':'deletion',_0x37b4a3=['ck-suggestion-marker','ck-suggestion-marker-'+_0x22591d];return _0x1112b5['data']['isSuggestion']&&_0x37b4a3['push']('ck-suggestion-marker-'+_0x22591d+'-new'),this['activeChange']==_0x1112b5&&_0x37b4a3['push']('ck-suggestion-marker--active'),{'classes':_0x37b4a3,'attributes':{'data-change-id':_0x123d1a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5911c3=>{_0x5911c3['on']('element:pre',(_0x33df56,_0x3c5d4b,_0x1bf390)=>{const _0x20d1ba=_0x3c5d4b['viewItem']['getChild'](0x0);if(!_0x20d1ba||!_0x20d1ba['is']('element','code'))return;if(!_0x1bf390['consumable']['consume'](_0x20d1ba,{'attributes':['vid_start','vid_end']}))return;const _0x11405a=_0x3c5d4b['modelRange']['start']['nodeAfter'];_0x1bf390['writer']['setAttribute']('vid_start',_0x20d1ba['getAttribute']('vid_start'),_0x11405a),_0x1bf390['writer']['setAttribute']('vid_end',_0x20d1ba['getAttribute']('vid_end'),_0x11405a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x25c973=>{_0x25c973['on']('element',(_0x5db9c6,_0xa7e387,_0x2a1a8c)=>{if(!_0x2a1a8c['consumable']['consume'](_0xa7e387['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xa7e387['modelRange']['isCollapsed'])return;const _0x2c72a8=_0xa7e387['modelRange']['start']['nodeAfter'];_0x2c72a8['hasAttribute']('vid_start')||_0x2c72a8['hasAttribute']('vid')||(_0x2a1a8c['writer']['setAttribute']('vid_start',_0xa7e387['viewItem']['getAttribute']('vid_start'),_0x2c72a8),_0x2a1a8c['writer']['setAttribute']('vid_end',_0xa7e387['viewItem']['getAttribute']('vid_end'),_0x2c72a8));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x537f35=>_0x537f35['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x56baa3,[,_0x5da962])=>{['vid_start','vid_end','vid']['includes'](_0x5da962)&&(_0x56baa3['return']=!0x0,_0x56baa3['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x54dfbc=>{_0x54dfbc['on']('attribute:vid',(_0xc570b,_0x3db178,_0x5866cc)=>{if('\x20'!=_0x3db178['item']['data']||_0x3db178['item']['parent']['maxOffset']>0x1)return;if(!_0x5866cc['consumable']['consume'](_0x3db178['item'],_0xc570b['name']))return;const _0x56bb0a=_0x5866cc['writer'],_0x5bcc0b=_0x5866cc['mapper']['toViewRange'](_0x3db178['range']);_0x56bb0a['wrap'](_0x5bcc0b,_0x56bb0a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x8006c){const _0xa9f80e=_0x8006c['plugins']['get']('RevisionViewer');return(_0x8450d1,_0x346365,_0x538c3a)=>{const _0x179ed9=_0x346365['markerName']['split'](':')[0x1],_0x5a771d=_0xa9f80e['_getChangeFromId'](_0x179ed9);if(!_0x5a771d)return null;const _0x264203='add'==_0x5a771d['type']?'split':'merge';if(!_0x538c3a['consumable']['test'](_0x346365['markerRange'],_0x8450d1['name']))return;const _0x4c3431=_0x346365['markerRange']['getWalker'](),_0x106b65=_0x346365['markerRange']['start'],_0x1c17f1=_0x8006c['model']['schema'];let _0x1fe82d=null,_0x21a451=null,_0xbce5c7=!0x1,_0x2ecfbd=!0x1;for(const _0x319599 of _0x4c3431){const _0x2bbbd9=_0x319599['item'];_0xbce5c7=_0xbce5c7||_0x1c17f1['isContent'](_0x2bbbd9);const _0x3c9501=_0x538c3a['mapper']['toViewElement'](_0x2bbbd9);if(_0x3c9501&&_0x3c9501['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x319599['type']&&(_0x1c17f1['isBlock'](_0x2bbbd9)&&!_0x1c17f1['isLimit'](_0x2bbbd9)&&(_0x2bbbd9['nextSibling']||_0x106b65['isAtEnd']?_0x1fe82d&&_0x1fe82d['parent']==_0x2bbbd9||(_0x1fe82d=_0x2bbbd9,_0x4f0e84(_0x319599['previousPosition']),_0x2ecfbd=!0x0):_0x21a451=_0x21a451||_0x319599['previousPosition']));}function _0x4f0e84(_0x4ae25d){const _0x227855=_0x538c3a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x264203}),_0x55bc5f=_0x538c3a['mapper']['toViewPosition'](_0x4ae25d);_0x5a771d['data']['isSuggestion']&&_0x538c3a['writer']['addClass']('ck-suggestion-marker-'+_0x264203+'-new',_0x227855),_0xa9f80e['activeChange']==_0x5a771d&&_0x538c3a['writer']['addClass']('ck-suggestion-marker--active',_0x227855),_0x538c3a['writer']['insert'](_0x55bc5f,_0x227855),_0x538c3a['mapper']['bindElementToMarker'](_0x227855,_0x346365['markerName']);}_0xbce5c7||_0x2ecfbd||!_0x21a451||_0x4f0e84(_0x21a451);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xfa5cf1,_0x51ab86,_0x163190)=>{const _0x538b2c=_0x163190['mapper']['markerNameToElements'](_0x51ab86['markerName']);if(_0x538b2c){for(const _0x14f788 of _0x538b2c)(_0x14f788['hasClass']('ck-suggestion-marker-split')||_0x14f788['hasClass']('ck-suggestion-marker-merge'))&&(_0x163190['mapper']['unbindElementFromMarkerName'](_0x14f788,_0x51ab86['markerName']),_0x163190['writer']['remove'](_0x14f788));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5372e2,_0x36f10e,_0x21207b)=>{const _0x59c995=_0x36f10e['markerName']['split'](':')[0x1],_0x495b38=this['_getChangeFromId'](_0x59c995);if(!_0x495b38)return null;const _0xaacc27='add'==_0x495b38['type']?'split':'merge';if(_0x21207b['consumable']['test'](_0x36f10e['markerRange'],_0x5372e2['name']))for(const _0x1c1de0 of _0x36f10e['markerRange']['getItems']()){if(!_0x1c1de0['is']('element','softBreak'))continue;const _0x737938=_0x21207b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xaacc27}),_0x506b89=_0x21207b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1c1de0));_0x495b38['data']['isSuggestion']&&_0x21207b['writer']['addClass']('ck-suggestion-marker-'+_0xaacc27+'-new',_0x737938),this['activeChange']==_0x495b38&&_0x21207b['writer']['addClass']('ck-suggestion-marker--active',_0x737938),_0x21207b['writer']['insert'](_0x506b89,_0x737938),_0x21207b['mapper']['bindElementToMarker'](_0x737938,_0x36f10e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x21806d=>{for(const _0x11cecc of this['editor']['model']['document']['getRootNames']()){const _0x20eb7b=this['editor']['model']['document']['getRoot'](_0x11cecc),_0x5a10a3=this['editor']['editing']['view']['document']['getRoot'](_0x11cecc);if(_0x5a10a3){const _0x4921a5=_0x20eb7b['getAttribute']('revisionHistoryAttachChange');if(_0x21806d['removeAttribute']('data-change-id',_0x5a10a3),_0x21806d['removeClass']('ck-revision-history-root-add',_0x5a10a3),_0x21806d['removeClass']('ck-revision-history-root-remove',_0x5a10a3),_0x21806d['removeClass']('ck-revision-history-root--active',_0x5a10a3),_0x4921a5){const _0x630223=this['_getChangeFromId'](_0x4921a5);if(!_0x630223)return null;_0x21806d['setAttribute']('data-change-id',_0x4921a5,_0x5a10a3),_0x21806d['addClass']('ck-revision-history-root-'+_0x630223['type'],_0x5a10a3),this['activeChange']==_0x630223&&_0x21806d['addClass']('ck-revision-history-root--active',_0x5a10a3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x292126=>'revision-comment:'+_0x292126,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x15d83f=>'revision-suggestion:'+_0x15d83f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x212825=>({'name':'suggestion:'+_0x212825,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3cb4a7=>{const _0x27842d=_0x3cb4a7['markerName']['split'](':')[0x1];return'insertion'!=_0x27842d&&'deletion'!=_0x27842d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x27842d]};}}),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',(_0x4a4690,_0x465617,_0x4ca793)=>{const _0x279731=_0x4ca793['mapper']['markerNameToElements'](_0x465617['markerName']);if(_0x279731){for(const _0x289421 of _0x279731)_0x289421['is']('uiElement')&&(_0x4ca793['mapper']['unbindElementFromMarkerName'](_0x289421,_0x465617['markerName']),_0x4ca793['writer']['remove'](_0x289421));}},{'priority':'high'});}['_getChangeFromId'](_0x50da16){return this['_changeIdToChange']['get'](_0x50da16);}['_getViewForChange'](_0x5ebbca){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5ebbca),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x16f60f,_0x598b3c,_0x337e8d,_0x2cee52)=>{_0x2cee52&&this['_balloon']['remove'](_0x2cee52),_0x337e8d&&(this['_balloon']['add']({'view':_0x337e8d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x438430=this['editor']['editing'],_0x4d348b=this['_getChangeFromId'](_0x337e8d['changeId']);let _0x168e2d;if(_0x4d348b['data']['isOnRoot']){const _0x27d15d=_0x438430['view']['getDomRoot'](_0x4d348b['rootName']);_0x168e2d=Array['from'](_0x27d15d['getClientRects']());}else{const _0x48d115=this['editor']['model']['markers']['get']('revision:'+_0x337e8d['changeId']);_0x168e2d=Array['from'](_0x438430['mapper']['markerNameToElements'](_0x48d115['name']))['map'](_0xf27356=>_0x438430['view']['domConverter']['mapViewToDom'](_0xf27356))['map'](_0xa351c7=>Array['from'](_0xa351c7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x168e2d[0x0];return _0x168e2d['find'](_0x55e9a8=>_0x55e9a8['top']-0x3<=this['_activeViewTarget']['y']&&_0x55e9a8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x55e9a8['left']-0x3<=this['_activeViewTarget']['x']&&_0x55e9a8['right']+0x3>=this['_activeViewTarget']['x'])||_0x168e2d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1854a3,_0x1b5fca,_0x2482be,_0x15debe)=>{this['activeView']=_0x2482be?this['_getViewForChange'](_0x2482be):null,this['editor']['model']['change'](()=>{const _0x265de4=this['editor']['editing'];_0x15debe&&(_0x15debe['data']['isOnRoot']?_0x265de4['view']['change'](_0x54c00c=>{_0x54c00c['removeClass']('ck-revision-history-root--active',_0x265de4['view']['document']['getRoot'](_0x15debe['rootName']));}):_0x265de4['reconvertMarker']('revision:'+_0x15debe['id'])),_0x2482be&&(_0x2482be['data']['isOnRoot']?_0x265de4['view']['change'](_0x4b6f68=>{_0x4b6f68['addClass']('ck-revision-history-root--active',_0x265de4['view']['document']['getRoot'](_0x2482be['rootName']));}):_0x265de4['reconvertMarker']('revision:'+_0x2482be['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2ba735,_0x5827cc)=>{if(this['activeChange'])return;const _0x126281=this['_findChangeIdFromDomTarget'](_0x5827cc['target']),_0x3c2d2a=this['_changeIdToChange']['get'](_0x126281);_0x3c2d2a?(this['_activeViewTarget']={'x':_0x5827cc['domEvent']['x'],'y':_0x5827cc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3c2d2a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x471084,_0x37b619)=>{const _0x46281e=this['_findChangeIdFromDomTarget'](_0x37b619['target']),_0x26a36d=this['_changeIdToChange']['get'](_0x46281e);_0x26a36d?(this['_activeViewTarget']={'x':_0x37b619['domEvent']['x'],'y':_0x37b619['domEvent']['y']},_0x26a36d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x26a36d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2cd22a){do{const _0x37dc21=_0x2cd22a['getAttribute']('data-change-id');if(_0x37dc21)return _0x37dc21;_0x2cd22a=_0x2cd22a['parent'];}while(_0x2cd22a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2132fb=>{for(const _0x520bb0 of this['editor']['model']['markers'])_0x2132fb['removeMarker'](_0x520bb0);});}}function Q(_0x1680b0,_0x508441){return(_0x57fb16,_0x40cef9,_0x3332ee)=>{if(!_0x3332ee['consumable']['test'](_0x40cef9['markerRange'],_0x57fb16['name']))return;const _0x429811=_0x40cef9['markerRange']['getWalker'](),_0x2d812b=_0x40cef9['markerRange']['start'],_0x4a3add=_0x1680b0['model']['schema'];let _0x581253=null,_0x500405=null,_0x1e25c=!0x1,_0x108698=!0x1;for(const _0x64da2e of _0x429811){const _0xf1a545=_0x64da2e['item'];_0x1e25c=_0x1e25c||_0x4a3add['isContent'](_0xf1a545);const _0x213e45=_0x3332ee['mapper']['toViewElement'](_0xf1a545);if(_0x213e45&&_0x213e45['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x64da2e['type']&&(_0x4a3add['isBlock'](_0xf1a545)&&!_0x4a3add['isLimit'](_0xf1a545)&&(_0xf1a545['nextSibling']||_0x2d812b['isAtEnd']?_0x581253&&_0x581253['parent']==_0xf1a545||(_0x581253=_0xf1a545,_0x120f6e(_0x64da2e['previousPosition']),_0x108698=!0x0):_0x500405=_0x500405||_0x64da2e['previousPosition']));}function _0x120f6e(_0x4abb54){const _0x106b5b=_0x3332ee['mapper']['toViewPosition'](_0x4abb54),_0x5f2766=_0x3332ee['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x508441});_0x3332ee['writer']['insert'](_0x106b5b,_0x5f2766),_0x3332ee['mapper']['bindElementToMarker'](_0x5f2766,_0x40cef9['markerName']);}_0x1e25c||_0x108698||!_0x500405||_0x120f6e(_0x500405);};}class nt extends _0x16aaeb{constructor(_0x287dff){super(_0x287dff);const _0x15f603=_0x287dff['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x15f603,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x15f603,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x9813e2=this['editor'],_0x5c5d86=_0x9813e2['plugins']['get'](l),_0x4c787e=_0x5c5d86['isReady']?_0x5c5d86['diff']['newRevisionId']:null;_0x9813e2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4c787e);}['refresh'](){const {isReady:_0x43b3a3,isEnabled:_0x28ae30,repository:_0x5b263d,diff:_0x5d2509}=this['editor']['plugins']['get'](l),_0x5b5cb=_0x5d2509&&_0x5b263d['getLaterVisibleRevision'](_0x5d2509['newRevisionId']);this['isEnabled']=_0x43b3a3&&_0x28ae30&&Boolean(_0x5b5cb);}}class rt extends _0x16aaeb{['_step'];constructor(_0x244f5e,{direction:_0x5bde85}){super(_0x244f5e);const _0x47fa73=_0x244f5e['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x5bde85?0x1:-0x1,this['listenTo'](_0x47fa73,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x47fa73,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x47fa73,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2a7854=this['editor'],_0xf4c3f8=_0x2a7854['plugins']['get'](l),{isNavigationMode:_0x301257,currentChangeNumber:_0x23b857}=_0xf4c3f8;let _0x12ca98;if(_0xf4c3f8['activeChange']=_0x301257?_0xf4c3f8['diff']['changes']['get'](_0x23b857+this['_step']):_0xf4c3f8['diff']['changes']['first'],_0xf4c3f8['activeChange']['data']['isOnRoot'])_0x12ca98=_0x2a7854['editing']['view']['getDomRoot'](_0xf4c3f8['activeChange']['rootName']);else{const _0x275d96=_0x2a7854['model']['markers']['get']('revision:'+_0xf4c3f8['activeChange']['id']);_0x12ca98=_0x296bc8(_0x2a7854['editing'],_0x275d96);}_0xb0aa02({'target':_0x12ca98,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xf79c9d,currentChangeNumber:_0x3ea828,numberOfChanges:_0x1b958c,isReady:_0x2e7c43,isEnabled:_0x5297af}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x5297af&&_0x2e7c43&&_0x1b958c)&&(!_0xf79c9d||(0x1===this['_step']?_0x3ea828<_0x1b958c-0x1:_0x3ea828>0x0));}}class Ri extends _0x467c3e{constructor(_0x1063ce){super(_0x1063ce);const _0x3cf3e9=this['bindTemplate'],_0x3b0c77=new _0x405dce(_0x1063ce),_0x1c02aa=new _0x405dce(_0x1063ce);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',(_0x361e6b,_0x34c2db)=>_0x361e6b&&_0x34c2db>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xbfb456,_0x136b05,_0x449362,_0x21d2a7)=>{if(!_0xbfb456)return R(_0x1063ce,'Loading...');if(!_0x449362)return R(_0x1063ce,'No\x20changes');const _0x42c137=R(_0x1063ce,'NUMBER_OF_CHANGES',_0x449362);return _0x21d2a7?R(_0x1063ce,'X_OF_Y_CHANGES',[_0x136b05+0x1,_0x449362]):_0x42c137;}),_0x3b0c77['set']({'label':R(_0x1063ce,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3f5724}),_0x1c02aa['set']({'label':R(_0x1063ce,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x142f7a}),_0x3b0c77['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1c02aa['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3b0c77['on']('execute',()=>this['fire']('execute','backward')),_0x1c02aa['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',_0x3cf3e9['if']('_isStatusLabelVisible','ck-hidden',_0x15b506=>!_0x15b506)]},'children':[{'text':_0x3cf3e9['to']('isNavigationMode',_0x14ad0f=>_0x14ad0f?R(_0x1063ce,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x1063ce,'Total')+':\x20')}]},{'text':_0x3cf3e9['to']('_statusText')}]},new _0xfd77b6(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3b0c77,_0x1c02aa]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x2a66d6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4aaf33=this['editor']['editing']['view'];_0x4aaf33['change'](_0x396c5f=>{for(const _0x5ee677 of _0x4aaf33['document']['roots'])_0x396c5f['addClass'](ge,_0x5ee677);});}['hide'](){const _0x38a09c=this['editor']['editing']['view'];_0x38a09c['change'](_0x20d462=>{for(const _0x3c1ff7 of _0x38a09c['document']['roots'])_0x20d462['removeClass'](ge,_0x3c1ff7);});}}class u extends _0x2a66d6{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x178a36=this['editor'],_0x4d2b90=_0x178a36['plugins']['get'](l),_0x108645=_0x178a36['plugins']['get'](ji);_0x178a36['ui']['componentFactory']['add']('exitToEditing',_0xbd4209=>{const _0x6f4ee9=new _0x405dce(_0xbd4209);return _0x6f4ee9['set']({'label':R(_0xbd4209,'Back\x20to\x20editing'),'icon':_0x5c6ca6,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x6f4ee9,'execute',()=>{_0x178a36['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x6f4ee9;}),_0x178a36['ui']['componentFactory']['add']('restoreRevision',_0x4b3a0c=>{const _0x55af09=new _0x405dce(_0x4b3a0c);return _0x55af09['set']({'label':R(_0x4b3a0c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x55af09['bind']('isEnabled')['to'](_0x178a36['commands']['get']('restoreRevision')),this['listenTo'](_0x55af09,'execute',()=>_0x178a36['execute']('restoreRevision')),_0x55af09;}),_0x178a36['ui']['componentFactory']['add']('changesNavigation',_0x192d60=>{const _0x584d75=new Ri(_0x192d60),_0x1e302d=_0x178a36['commands']['get']('showPreviousChange'),_0x12d236=_0x178a36['commands']['get']('showNextChange');return _0x584d75['bind']('isBackwardNavigationEnabled')['to'](_0x1e302d,'isEnabled'),_0x584d75['bind']('isForwardNavigationEnabled')['to'](_0x12d236,'isEnabled'),_0x584d75['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4d2b90),this['listenTo'](_0x584d75,'execute',(_0x57c875,_0x3b78a2)=>{_0x178a36['execute']('forward'===_0x3b78a2?'showNextChange':'showPreviousChange');}),_0x584d75;}),_0x108645['show'](),_0x4d2b90['on']('change:isReady',(_0x3d0ee0,_0x14e0db,_0x42bbbc)=>{_0x42bbbc?_0x108645['hide']():_0x108645['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x2fcca5,_0x30b317){super(_0x2fcca5,_0x30b317);const _0x54a0ad=this['bindTemplate'];this['set']({'label':R(_0x2fcca5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2fcca5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x54a0ad['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2fd104=this['fieldView']['element'];this['_tooltipString']=_0x2fd104['scrollWidth']>_0x2fd104['clientWidth']&&_0x2fd104['value']||'';}}class ni extends _0x467c3e{constructor(_0x27b639,_0x59615d,_0x393f26){super(_0x27b639);const _0x32283c=new _0x3280e5();_0x32283c['set']({'content':_0x4288bf,'viewBox':'0\x200\x2011\x2010'});const _0x2e043e=['ck','ck-revision-history-sidebar__revision-author'];_0x393f26&&_0x2e043e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3c0350=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x27b639,_0x393f26?'Revision\x20creator':'Revision\x20author')},'children':[_0x32283c,_0x59615d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2e043e},'children':_0x3c0350});}}function ai(_0x358e2e,_0x4dabd4){const _0x2555d1=_0x358e2e['bindTemplate'],_0x3a522c=_0x358e2e['locale'],_0x504edd=_0x8fbb5e(_0x3a522c);_0x504edd['panelPosition']='sw';const _0x160a2b=function(_0x356e71,_0x16af2a){const _0x1a9e79=function(_0x1d9844,_0x43d611){const _0x4a1ff9=_0x1d9844['locale'],_0x302501={'Compare\x20against\x20selected':R(_0x4a1ff9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4a1ff9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4a1ff9,'Restore\x20this\x20revision')};return _0x43d611['map'](_0x5b9a1d=>{const _0x4041c7=_0x302501[_0x5b9a1d['name']];return _0x4041c7&&_0x4041c7!==_0x5b9a1d['name']&&(_0x5b9a1d['name']=_0x4041c7),_0x5b9a1d;});}(_0x356e71,_0x16af2a),_0xdfdd41=new _0x28d875();for(const _0x26c762 of _0x1a9e79){const _0x2164f2={'type':'button','model':new to({'label':_0x26c762['name'],'class':_0x26c762['class'],'withText':!0x0,'role':'menuitem','_action':_0x26c762['action']})};_0x2164f2['model']['bind']('isEnabled')['to'](_0x356e71,'isActionsDropdownOpen',_0x1a6a1f=>'function'!=typeof _0x26c762['isEnabled']||(!_0x1a6a1f||_0x26c762['isEnabled'](_0x356e71))),_0xdfdd41['add'](_0x2164f2);}return _0xdfdd41;}(_0x358e2e,_0x4dabd4);return _0x358e2e['bind']('isActionsDropdownOpen')['to'](_0x504edd,'isOpen'),_0x504edd['buttonView']['set']({'label':R(_0x3a522c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xf3c484}),_0x504edd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2555d1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2555d1['to'](_0x4df4da=>_0x4df4da['stopPropagation']())}}),_0x504edd['on']('execute',_0x278972=>{_0x358e2e['isReady']&&'function'==typeof _0x278972['source']['_action']&&_0x278972['source']['_action'](_0x358e2e);}),_0x53265f(_0x504edd,_0x160a2b,{'role':'menu'}),_0x504edd['listenTo'](_0x358e2e,'change:isActionsDropdownOpen',(_0x58d9d6,_0x2dadd6,_0x3de569)=>{if(_0x3de569)for(const _0x3f20de of _0x504edd['listView']['items']){const _0x50bca5=_0x3f20de['children']['first'],_0x302453=_0x4dabd4['find'](_0x1f4505=>_0x1f4505['action']===_0x50bca5['_action'])['isVisible'];_0x3f20de['isVisible']=void 0x0===_0x302453||_0x302453(_0x358e2e);}}),_0x504edd;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0xcaaf5a,uid as _0x549feb,Collection as _0x305a29,logWarning as _0x318b89,FocusTracker as _0x50d8e5,KeystrokeHandler as _0x5e366e,scrollViewportToShowTarget as _0x560f73,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x4c83d9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x8fd207,set as _0x496e69,unset as _0x1725f0,isEqual as _0x1c23ea}from'es-toolkit/compat';import{Plugin as _0x38daca,PendingActions as _0x1d34c4,Command as _0x1ba99d,ElementApiMixin as _0xfbbd9f,Editor as _0x30d67e}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x19dd7a,getMarkerDomElement as _0x1fa1ef,ConfirmMixin as _0x432fc9,sanitizeEditorConfig as _0x1e3f31}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x1d56ce,ViewAttributeElement as _0xc57422,ViewEmptyElement as _0x28a0c8,ViewRawElement as _0x441a03,ViewUIElement as _0x2c0032,ViewDocumentFragment as _0x30865c,ViewText as _0x40b0ee,ViewElement as _0x5067f2,ModelElement as _0x41a41f,ModelRange as _0x112776,ModelPosition as _0x29d0f4,ModelDocumentFragment as _0xc50dea,ModelText as _0x3ce3e7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0xcc2774,IconChevronUp as _0x5c74cd,IconChevronDown as _0x3d35bd,IconUndo as _0xac4242,IconUser as _0x5cb480,IconThreeVerticalDots as _0x3ac663}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x4d61fa,View as _0x299af1,submitHandler as _0x337037,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0xaf28b8,ListView as _0x2fb142,ListItemView as _0x40817e,ButtonView as _0xb62761,MenuBarMenuView as _0x26778,MenuBarMenuListView as _0x4ec19c,MenuBarMenuListItemView as _0x559fae,MenuBarMenuListItemButtonView as _0x1cdd2e,ContextualBalloon as _0x4b341c,ToolbarSeparatorView as _0x422ac3,IconView as _0x2168e8,addListToDropdown as _0x29459b,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0xdaacb8,StickyPanelView as _0x141afb,ToolbarView as _0x3cc536,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1731b6}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xcaaf5a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x55e588){super(),this['id']=_0x55e588['id']||_0x549feb(),this['creator']=_0x55e588['creator']||null,this['authors']=_0x55e588['authors']||[],this['diffData']=_0x55e588['diffData']||null,this['toVersion']=_0x55e588['toVersion']||0x0,this['fromVersion']=_0x55e588['fromVersion']||0x0,this['set']('name',_0x55e588['name']||''),this['set']('createdAt',_0x55e588['createdAt']||new Date()),this['set']('attributes',_0x55e588['attributes']||{});}['setName'](_0x2c51b0){this['_update']({'name':_0x2c51b0});}['setAttribute'](_0x46d436,_0x4b4169){const _0x567abe=_0x8fd207(this['attributes']);_0x496e69(_0x567abe,_0x46d436,_0x4b4169),this['_update']({'attributes':_0x567abe});}['removeAttribute'](_0x361798){const _0x54ecc3=_0x8fd207(this['attributes']);_0x1725f0(_0x54ecc3,_0x361798),this['_update']({'attributes':_0x54ecc3});}['_update'](_0x1b8837,_0x45622e=!0x1){let _0x2aff65=!0x1;const _0x5405e5={'id':this['id']},_0xfa9c59=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5005a3 of _0xfa9c59){const _0x2bfcad=_0x1b8837[_0x5005a3];void 0x0!==_0x2bfcad&&_0x2bfcad!==this[_0x5005a3]&&(this[_0x5005a3]=_0x2bfcad,_0x5405e5[_0x5005a3]=_0x2bfcad,_0x2aff65=!0x0);}_0x2aff65&&(_0x5405e5['authors']&&(_0x5405e5['authorsIds']=_0x5405e5['authors']['map'](_0x4434ff=>_0x4434ff['id']),delete _0x5405e5['authors']),this['fire']('_update',_0x5405e5,_0x45622e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4fc0fb=>_0x4fc0fb['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x38daca{['_revisions'];static get['requires'](){return[_0x19dd7a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2c55bf){super(_0x2c55bf),this['_revisions']=new _0x305a29();}['afterInit'](){!async function(_0x2be60c){const _0x4ff3d4=_0x164f7b([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x10b557=0xeb829,_0x31a085=0x7374585f,_0x18ea0f=0x73732cf7^_0x31a085,_0x2ccb9e=window[_0x164f7b([0x44,0x61,0x74,0x65])][_0x164f7b([0x6e,0x6f,0x77])](),_0x73d58d=_0x2be60c[_0x164f7b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c293a=new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x490e33=>{_0x73d58d[_0x164f7b([0x6f,0x6e,0x63,0x65])](_0x164f7b([0x72,0x65,0x61,0x64,0x79]),_0x490e33);}),_0x52c250={[_0x164f7b([0x6b,0x74,0x79])]:_0x164f7b([0x45,0x43]),[_0x164f7b([0x75,0x73,0x65])]:_0x164f7b([0x73,0x69,0x67]),[_0x164f7b([0x63,0x72,0x76])]:_0x164f7b([0x50,0x2d,0x32,0x35,0x36]),[_0x164f7b([0x78])]:_0x164f7b([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]),[_0x164f7b([0x79])]:_0x164f7b([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]),[_0x164f7b([0x61,0x6c,0x67])]:_0x164f7b([0x45,0x53,0x32,0x35,0x36])},_0x47640e=_0x73d58d[_0x164f7b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x164f7b([0x67,0x65,0x74])](_0x164f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8fe15a(){let _0x24b062,_0x1b81fb=null,_0x453282=null;try{if(_0x47640e==_0x164f7b([0x47,0x50,0x4c]))return _0x164f7b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24b062=_0x331571(),!_0x24b062)return _0x164f7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24b062[_0x164f7b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x453282=_0x28c5f5(_0x24b062[_0x164f7b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24b062[_0x164f7b([0x6a,0x74,0x69])])),await _0x42eb26()?_0x14be06()?_0x2aca08()?_0x164f7b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a1636()?(_0x24b062[_0x164f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x164f7b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b81fb=_0xa8b00(_0x164f7b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24b062[_0x164f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x164f7b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1b81fb=_0xa8b00(_0x164f7b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb2d82e()):_0x164f7b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x164f7b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x164f7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x164f7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2aca08(){const _0x1f50fb=[_0x164f7b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x164f7b([0x74,0x72,0x69,0x61,0x6c])][_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24b062[_0x164f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ccb9e/0x3e8:0xe10*_0x18ea0f;return _0x24b062[_0x164f7b([0x65,0x78,0x70])]<_0x1f50fb;}function _0x14be06(){const _0x2008ee=_0x24b062[_0x164f7b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2008ee)return!0x1;if(_0x2008ee[_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164f7b([0x2a])))return!0x0;if(_0x2008ee[_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164f7b([0x52,0x48])))return!0x0;if(_0x2008ee[_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164f7b([0x52,0x52,0x48]))){if(_0x117d6e())return!0x0;if(_0x20c2ac()||_0x3631af())return!0x0;}return!0x1;}function _0x3a1636(){const _0x5a683e=_0x24b062[_0x164f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a683e||0x0==_0x5a683e[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x329b03}=new URL(window[_0x164f7b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a683e[_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x329b03))return!0x0;const _0x25e013=_0x329b03[_0x164f7b([0x73,0x70,0x6c,0x69,0x74])](_0x164f7b([0x2e]));return _0x5a683e[_0x164f7b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x421574=>_0x421574[_0x164f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164f7b([0x2a])))[_0x164f7b([0x6d,0x61,0x70])](_0x20f22b=>_0x20f22b[_0x164f7b([0x73,0x70,0x6c,0x69,0x74])](_0x164f7b([0x2e])))[_0x164f7b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cae19=>_0x5cae19[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x25e013[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x164f7b([0x6d,0x61,0x70])](_0x290a5e=>Array(_0x25e013[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x290a5e[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x164f7b([0x66,0x69,0x6c,0x6c])](_0x290a5e[0x0]===_0x164f7b([0x2a])?_0x164f7b([0x2a]):'')[_0x164f7b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x290a5e))[_0x164f7b([0x73,0x6f,0x6d,0x65])](_0x549c2b=>_0x25e013[_0x164f7b([0x65,0x76,0x65,0x72,0x79])]((_0x787d17,_0x543210)=>_0x549c2b[_0x543210]===_0x787d17||_0x549c2b[_0x543210]===_0x164f7b([0x2a])));}function _0xb2d82e(){return _0x1b81fb&&_0x453282?new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa54fb7,_0x1d2da5)=>{_0x1b81fb[_0x164f7b([0x74,0x68,0x65,0x6e])](_0xa54fb7,_0x1d2da5),_0x453282[_0x164f7b([0x74,0x68,0x65,0x6e])](_0x2452c5=>{_0x2452c5!=_0x164f7b([0x56,0x61,0x6c,0x69,0x64])&&_0xa54fb7(_0x2452c5);},_0x1d2da5);}):_0x1b81fb||_0x453282||_0x164f7b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28c5f5(_0x3b476e,_0x44e376){return new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x228fcc=>{if(_0x4b1b7d())return _0x228fcc(_0x164f7b([0x56,0x61,0x6c,0x69,0x64]));_0x14232d(),_0x73d58d[_0x164f7b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x164f7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a08ef=!0x1;const _0x3f8cea=_0x549feb();function _0x20bed2(_0x235bcb){return!!_0x235bcb&&(typeof _0x235bcb===_0x164f7b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x235bcb===_0x164f7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x235bcb[_0x164f7b([0x74,0x68,0x65,0x6e])]===_0x164f7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x235bcb[_0x164f7b([0x63,0x61,0x74,0x63,0x68])]===_0x164f7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13e3fc(_0x2eb054){_0x46bd25(_0x2eb054)[_0x164f7b([0x74,0x68,0x65,0x6e])](_0x5b9371=>{if(!_0x5b9371||_0x5b9371[_0x164f7b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x164f7b([0x6f,0x6b]))return _0x164f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x223fab(_0x5db129(_0x3f8cea+_0x44e376))!=_0x5b9371[_0x164f7b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x164f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x164f7b([0x56,0x61,0x6c,0x69,0x64]);})[_0x164f7b([0x74,0x68,0x65,0x6e])](_0x282fe2=>(_0x487170(),_0x282fe2),()=>{const _0x1a3077=_0x1b8e72();return null==_0x1a3077?(_0x487170(),_0x164f7b([0x56,0x61,0x6c,0x69,0x64])):_0x164f7b(_0x2ccb9e-_0x1a3077>(0x5778dc5f^_0x31a085)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x164f7b([0x74,0x68,0x65,0x6e])](_0x228fcc)[_0x164f7b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x228fcc(_0x164f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4cdaf5=0x7342b6df^_0x31a085;function _0x487170(){const _0x35ecc3=_0x164f7b([0x6c,0x6c,0x63,0x74,0x2d])+_0x223fab(_0x5db129(_0x3b476e)),_0x46912b=_0x443920(_0x223fab(window[_0x164f7b([0x4d,0x61,0x74,0x68])][_0x164f7b([0x63,0x65,0x69,0x6c])](_0x2ccb9e/_0x4cdaf5)));window[_0x164f7b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x164f7b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35ecc3,_0x46912b);}function _0x1b8e72(){const _0x43fe5c=_0x164f7b([0x6c,0x6c,0x63,0x74,0x2d])+_0x223fab(_0x5db129(_0x3b476e)),_0xcf3584=window[_0x164f7b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x164f7b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43fe5c);return _0xcf3584?window[_0x164f7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x443920(_0xcf3584),0x10)*_0x4cdaf5:null;}function _0x46bd25(_0x433533){return new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc5fb80,_0x1e62b1)=>{_0x433533[_0x164f7b([0x74,0x68,0x65,0x6e])](_0xc5fb80,_0x1e62b1),window[_0x164f7b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e62b1,0x73758c9f^_0x31a085);});}}_0x73d58d[_0x164f7b([0x6f,0x6e])](_0x164f7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8dac29,_0x2d732d)=>{if(_0x2d732d[0x0]!=_0x3b476e)return _0x228fcc(_0x164f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d732d[0x1]={..._0x2d732d[0x1],[_0x164f7b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f8cea};},{[_0x164f7b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x164f7b([0x68,0x69,0x67,0x68])}),_0x73d58d[_0x164f7b([0x6f,0x6e])](_0x164f7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46eeee=>{_0x20bed2(_0x46eeee[_0x164f7b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a08ef=!0x0,_0x13e3fc(_0x46eeee[_0x164f7b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x164f7b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x164f7b([0x6c,0x6f,0x77])}),_0x5c293a[_0x164f7b([0x74,0x68,0x65,0x6e])](()=>{_0x5a08ef||_0x228fcc(_0x164f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b1b7d(){return _0x73d58d[_0x164f7b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x164f7b([0x76,0x69,0x65,0x77])][_0x164f7b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x164f7b([0x61,0x75,0x74,0x6f]);}function _0x14232d(){_0x73d58d[_0x164f7b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x164f7b([0x76,0x69,0x65,0x77])][_0x164f7b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x164f7b([0x61,0x75,0x74,0x6f]);}}function _0xa8b00(_0x25d02b){const _0xf914d9=[new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ff3ba=>setTimeout(_0x3ff3ba,0x737d6693^_0x31a085)),_0x5c293a[_0x164f7b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38c5fe=>{const _0x55bc1e=0x73745858^_0x31a085,_0x1a531a=_0x2be60c[_0x164f7b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x51e051(){_0x1a531a[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x55bc1e&&_0x38c5fe();}_0x51e051(),_0x1a531a[_0x164f7b([0x6f,0x6e])](_0x164f7b([0x61,0x64,0x64]),_0x51e051);})),new window[(_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x458167=>{function _0x21e4be(){for(const _0x2a55cd in window)if(window[_0x164f7b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x164f7b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a55cd))&&window[_0x2a55cd]==_0x10b557)return _0x458167();_0x73d58d[_0x164f7b([0x73,0x74,0x61,0x74,0x65])]!=_0x164f7b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x164f7b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21e4be,0x73744bd7^_0x31a085);}_0x5deee5(_0x164f7b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x21e4be();})];return window[_0x164f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x164f7b([0x72,0x61,0x63,0x65])](_0xf914d9)[_0x164f7b([0x74,0x68,0x65,0x6e])](()=>_0x25d02b);}async function _0x5ac861(){if(await _0x5c293a,_0x5deee5(_0x164f7b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2f286b=_0x2be60c[_0x164f7b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x167144=_0x2be60c[_0x164f7b([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])](_0x2f286b[_0x164f7b([0x69,0x64])]),_0x11251e=_0x412b95(_0x164f7b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x11251e[_0x164f7b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2f286b['id'],_0x167144?_0x167144['id']:null,!0x0),_0x11251e[_0x164f7b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x164f7b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x11251e[_0x164f7b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x11251e[_0x164f7b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4346a0,void(_0x11251e[_0x164f7b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4346a0);}if(_0x5deee5(_0x164f7b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1b235c=_0x412b95(_0x164f7b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1b235c[_0x164f7b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x164f7b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1b235c[_0x164f7b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1b235c[_0x164f7b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4346a0,_0x1b235c[_0x164f7b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4346a0;}_0x73d58d[_0x164f7b([0x6d,0x6f,0x64,0x65,0x6c])][_0x164f7b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4346a0,_0x73d58d[_0x164f7b([0x6d,0x6f,0x64,0x65,0x6c])][_0x164f7b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4346a0,_0x73d58d[_0x164f7b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x164f7b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x117d6e(){return _0x5deee5(_0x164f7b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x412b95(_0x164f7b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x164f7b([0x73,0x74,0x61,0x74,0x65])]==_0x164f7b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x20c2ac(){return _0x5deee5(_0x164f7b([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 _0x3631af(){return _0x5deee5(_0x164f7b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1f6337(_0x2c664b){const _0xf379dc=_0x437876();_0x73d58d[_0xf379dc]=_0x164f7b([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])+_0x2c664b,_0x2c664b[_0x164f7b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x164f7b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x437876()]=_0x10b557),_0x2c664b!=_0x164f7b([0x56,0x61,0x6c,0x69,0x64])&&_0x5ac861();}function _0x437876(){const _0xe56984=window[_0x164f7b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x164f7b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x164f7b([0x6e,0x6f,0x77])]())[_0x164f7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x164f7b([0x2e]),'');let _0x568a94=_0x164f7b([0x73]);for(let _0x1edd0b=0x0;_0x1edd0b<_0xe56984[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1edd0b+=0x2){let _0x54a3b3=window[_0x164f7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe56984[_0x164f7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1edd0b,_0x1edd0b+0x2));_0x54a3b3>=_0x4ff3d4[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54a3b3-=_0x4ff3d4[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x568a94+=_0x4ff3d4[_0x54a3b3];}return _0x568a94;}function _0x331571(){const _0x293d9a=_0x47640e[_0x164f7b([0x73,0x70,0x6c,0x69,0x74])](_0x164f7b([0x2e]));if(0x3!=_0x293d9a[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c4e47(_0x293d9a[0x1]);function _0x3c4e47(_0x272b34){const _0xec0e78=_0x51f66a(_0x272b34);return _0xec0e78&&_0x1d4349()?_0xec0e78:null;function _0x1d4349(){const _0x112e72=_0xec0e78[_0x164f7b([0x6a,0x74,0x69])],_0x5c92ca=window[_0x164f7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x112e72[_0x164f7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x112e72[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x388aa3={..._0xec0e78,[_0x164f7b([0x6a,0x74,0x69])]:_0x112e72[_0x164f7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x112e72[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x388aa3[_0x164f7b([0x76,0x63])],_0x5db129(_0x388aa3)==_0x5c92ca;}}}async function _0x42eb26(){let _0xbd11cd=!0x0;try{const _0x2f796a=_0x47640e[_0x164f7b([0x73,0x70,0x6c,0x69,0x74])](_0x164f7b([0x2e])),[_0x292b40,_0xfeda44,_0x1483d3]=_0x2f796a;return _0x5001a5(_0x292b40),await _0x33eb25(_0x292b40,_0xfeda44,_0x1483d3),_0xbd11cd;}catch{return!0x1;}function _0x5001a5(_0x1ce604){const _0x3f885e=_0x51f66a(_0x1ce604);_0x3f885e&&_0x3f885e[_0x164f7b([0x61,0x6c,0x67])]==_0x164f7b([0x45,0x53,0x32,0x35,0x36])||(_0xbd11cd=!0x1);}async function _0x33eb25(_0x3799b7,_0x155c95,_0x324a2e){const _0x3dcb68=window[_0x164f7b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x164f7b([0x66,0x72,0x6f,0x6d])](_0x3feede(_0x324a2e),_0x1fef2b=>_0x1fef2b[_0x164f7b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x558356=new window[(_0x164f7b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x164f7b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3799b7+_0x164f7b([0x2e])+_0x155c95),_0x42c594=window[_0x164f7b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x164f7b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42c594)return;const _0x4cb5ec=await _0x42c594[_0x164f7b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x164f7b([0x6a,0x77,0x6b]),_0x52c250,{[_0x164f7b([0x6e,0x61,0x6d,0x65])]:_0x164f7b([0x45,0x43,0x44,0x53,0x41]),[_0x164f7b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x164f7b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x164f7b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42c594[_0x164f7b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x164f7b([0x6e,0x61,0x6d,0x65])]:_0x164f7b([0x45,0x43,0x44,0x53,0x41]),[_0x164f7b([0x68,0x61,0x73,0x68])]:{[_0x164f7b([0x6e,0x61,0x6d,0x65])]:_0x164f7b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cb5ec,_0x3dcb68,_0x558356)||(_0xbd11cd=!0x1);}}function _0x51f66a(_0x2e48ab){return _0x2e48ab[_0x164f7b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x164f7b([0x65,0x79]))?JSON[_0x164f7b([0x70,0x61,0x72,0x73,0x65])](_0x3feede(_0x2e48ab)):null;}function _0x3feede(_0x414587){return window[_0x164f7b([0x61,0x74,0x6f,0x62])](_0x414587[_0x164f7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x164f7b([0x2b]))[_0x164f7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x164f7b([0x2f])));}function _0x5db129(_0x2b4d82){let _0x216233=0x1505;function _0xb0afa9(_0x241bf4){for(let _0x29d49d=0x0;_0x29d49d<_0x241bf4[_0x164f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29d49d++){const _0x3c4b7a=_0x241bf4[_0x164f7b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29d49d);_0x216233=(_0x216233<<0x5)+_0x216233+_0x3c4b7a,_0x216233&=_0x216233;}}function _0x93ac1(_0x20ded7){Array[_0x164f7b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20ded7)?_0x20ded7[_0x164f7b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x93ac1):_0x20ded7&&typeof _0x20ded7==_0x164f7b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x164f7b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20ded7)[_0x164f7b([0x73,0x6f,0x72,0x74])]()[_0x164f7b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43ebde,_0x1d4801])=>{_0xb0afa9(_0x43ebde),_0x93ac1(_0x1d4801);}):_0xb0afa9(window[_0x164f7b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20ded7));}return _0x93ac1(_0x2b4d82),_0x216233>>>0x0;}function _0x223fab(_0x2f6a81){return _0x2f6a81[_0x164f7b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x164f7b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x164f7b([0x30]));}function _0x443920(_0x1cbdbc){return _0x1cbdbc[_0x164f7b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x164f7b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x164f7b([0x6a,0x6f,0x69,0x6e])]('');}function _0x5deee5(_0x8f6d99){return _0x73d58d[_0x164f7b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x164f7b([0x68,0x61,0x73])](_0x8f6d99);}function _0x412b95(_0x324959){return _0x73d58d[_0x164f7b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x164f7b([0x67,0x65,0x74])](_0x324959);}function _0x4346a0(){}function _0x164f7b(_0x58c01e){return _0x58c01e['map'](_0x24f00a=>String['fromCharCode'](_0x24f00a))['join']('');}_0x1f6337(await _0x8fe15a());}(this);}['createRevision'](_0x5e5fbe){const _0x384eee=this['editor']['plugins']['get']('Users');return new I({'id':_0x5e5fbe['id'],'name':_0x5e5fbe['name'],'creator':_0x5e5fbe['creatorId']?_0x384eee['getUser'](_0x5e5fbe['creatorId']):null,'diffData':_0x5e5fbe['diffData']||_0x5e5fbe['data'],'authors':_0x5e5fbe['authorsIds']['map'](_0x26dae1=>_0x384eee['getUser'](_0x26dae1)),'createdAt':new Date(_0x5e5fbe['createdAt']),'attributes':_0x5e5fbe['attributes'],'fromVersion':_0x5e5fbe['fromVersion'],'toVersion':_0x5e5fbe['toVersion']});}['addRevision'](_0x15a256,_0x28df91=0x0){this['_revisions']['add'](_0x15a256,_0x28df91);}['getRevision'](_0xa6febb){return this['_revisions']['get'](_0xa6febb);}['getRevisions'](_0x3cd709={'toJSON':!0x1}){const _0x353c67=Array['from'](this['_revisions']);return _0x353c67['reverse'](),_0x3cd709['toJSON']?_0x353c67['map'](_0x4d1296=>_0x4d1296['toJSON']()):_0x353c67;}['getIndex'](_0xcc13f5){return this['_revisions']['getIndex'](_0xcc13f5);}['getEarlierVisibleRevision'](_0x5f52b0){const [,_0x3daf83]=this['getRevisionsIterator'](_0x5f52b0,{'direction':'earlier'});return _0x3daf83;}['getLaterVisibleRevision'](_0x15542){const [,_0x2faef9]=this['getRevisionsIterator'](_0x15542,{'direction':'later'});return _0x2faef9;}['getRevisionsInDiff'](_0x36250b){const _0x31f98e=[];for(const _0x55d781 of this['getRevisionsIterator'](_0x36250b['newRevisionId']))if(_0x31f98e['push'](_0x55d781),_0x55d781['id']===_0x36250b['oldRevisionId'])break;return _0x31f98e;}*['getRevisionsIterator'](_0x16da86,{direction:_0x1c5ed7='earlier',filter:_0x46d4a6=()=>!0x0}={}){const _0x40e2ed='earlier'===_0x1c5ed7?0x1:-0x1;let _0x14b7d9=this['_revisions']['get'](_0x16da86),_0x276a08=this['getIndex'](_0x14b7d9);for(yield _0x14b7d9;_0x14b7d9;){if(_0x276a08+=_0x40e2ed,_0x14b7d9=this['getRevision'](_0x276a08),!_0x14b7d9)return;_0x46d4a6(_0x14b7d9)&&(yield _0x14b7d9);}}}class $ extends _0x38daca{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1d56ce,'c'],[_0xc57422,'a'],[_0x28a0c8,'e'],[_0x441a03,'r'],[_0x2c0032,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1d56ce],['a',_0xc57422],['e',_0x28a0c8],['r',_0x441a03],['u',_0x2c0032]]);async['loadRevisionData'](_0x50a72a,_0x5dcc7f){if(_0x50a72a['diffData']||!_0x5dcc7f)return;const _0x37535f=this['editor']['config']['get']('collaboration.channelId'),_0x261ff3=await _0x5dcc7f['getRevision']({'channelId':_0x37535f,'revisionId':_0x50a72a['id']});_0x50a72a['diffData']=_0x261ff3['diffData'];}['getRevisionDocumentData'](_0x12e8e5){const _0x25ca74={};for(const _0x5879d4 in _0x12e8e5['diffData']){if(_0x12e8e5['diffData'][_0x5879d4]['attachChange']&&!_0x12e8e5['diffData'][_0x5879d4]['attachChange']['isAttached'])continue;const _0x243821=this['_removeRevisionMarkers'](JSON['parse'](_0x12e8e5['diffData'][_0x5879d4]['insertions'])),_0x4b1830=this['editor']['editing']['view']['document'],_0x25f155=new _0x30865c(_0x4b1830,_0x243821['map'](_0x197945=>this['_getViewFromDiffObj'](_0x197945,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x25ca74[_0x5879d4]=this['editor']['data']['processor']['toData'](_0x25f155),this['editor']['data']['processor']['useFillerType']('default');}return _0x25ca74;}['getRevisionRootsAttributes'](_0x1e977b){const _0x2c3309={};for(const _0x5621ba in _0x1e977b['diffData'])_0x1e977b['diffData'][_0x5621ba]['attachChange']&&!_0x1e977b['diffData'][_0x5621ba]['attachChange']['isAttached']||(_0x2c3309[_0x5621ba]=_0x1e977b['diffData'][_0x5621ba]['attributesAfter']||{});return _0x2c3309;}['_getTypeCharForViewElement'](_0xa58b3f){return this['_viewClassToTypeChar']['get'](_0xa58b3f['constructor']);}['_getViewFromDiffObj'](_0x14118f,_0xe8b259){const _0x3f5e5e=this['editor']['editing']['view']['document'];if('string'==typeof _0x14118f)return new _0x40b0ee(_0x3f5e5e,_0x14118f);{let _0x55af00,_0x5032df;_0x5032df='u'==_0x14118f['type']||'r'==_0x14118f['type']?[]:_0x14118f['children']['map'](_0x711ade=>this['_getViewFromDiffObj'](_0x711ade,_0xe8b259));const _0x171096=this['_typeCharToViewClass']['get'](_0x14118f['type'])||_0x5067f2,_0x575605=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x55af00=new _0x171096(_0x3f5e5e,_0x14118f['name'],_0x14118f['attributes'],_0x5032df),'u'==_0x14118f['type']&&_0x14118f['children'][0x0]){const _0x4a089b=_0x14118f['children'][0x0];if(_0x55af00['render']=function(_0xc05684){const _0x11528f=_0xc05684['createElement']('div');return _0x11528f['innerHTML']=_0x4a089b,_0x11528f['childNodes'][0x0];},_0xe8b259){const _0x22a657=new _0x30865c(_0x3f5e5e);_0x22a657['_appendChild'](_0x55af00);const _0x2a9ce3=Array['from'](_0x575605['viewChildrenToDom'](_0x22a657,{'bind':!0x1})),_0x3c4a80=_0x575605['domDocument']['createElement']('div');_0x3c4a80['append'](..._0x2a9ce3),_0x55af00=Array['from'](_0x575605['domChildrenToView'](_0x3c4a80))[0x0];}}else{if('r'==_0x14118f['type']&&_0x14118f['children'][0x0]){const _0x4b6b63=_0x14118f['children'][0x0];if(_0x55af00['render']=function(_0x27db59){_0x27db59['innerHTML']=_0x4b6b63;},_0xe8b259){const _0x5539b6=new _0x30865c(_0x3f5e5e);_0x5539b6['_appendChild'](_0x55af00);const _0x59b585=Array['from'](_0x575605['viewChildrenToDom'](_0x5539b6,{'bind':!0x1})),_0x4968de=_0x575605['domDocument']['createElement']('div');_0x4968de['append'](..._0x59b585);const _0x5385d5=Array['from'](_0x575605['domChildrenToView'](_0x4968de));_0x5385d5['length']>0x1?_0x55af00['_appendChild'](_0x5385d5):_0x55af00=_0x5385d5[0x0];}}}if(_0x14118f['customProperties']){for(const [_0x58a6bb,_0x150fdc]of _0x14118f['customProperties'])_0x55af00['_setCustomProperty'](_0x58a6bb,_0x150fdc);}const _0x549d31=void 0x0===_0x14118f['fillerOffset']?null:_0x14118f['fillerOffset'];return null!==_0x549d31&&(_0x55af00['getFillerOffset']=()=>_0x549d31),_0x55af00;}}['_makeModelFromViewString'](_0x2a4cd2){const _0x24e61e=JSON['parse'](_0x2a4cd2),_0x5480b2=this['editor']['editing']['view']['document'],_0x45f67a=new _0x30865c(_0x5480b2,_0x24e61e['map'](_0x3e64b9=>this['_getViewFromDiffObj'](_0x3e64b9,!0x0)));return this['editor']['data']['toModel'](_0x45f67a);}['_removeRevisionMarkers'](_0x58ad58){return(_0x58ad58=_0x58ad58['filter'](_0xee15ab=>!_0xee15ab['name']||'revision-start'!==_0xee15ab['name']&&'revision-end'!==_0xee15ab['name']))['forEach'](_0x4bd947=>{'string'!=typeof _0x4bd947&&(_0x4bd947['children']=this['_removeRevisionMarkers'](_0x4bd947['children']),_0x4bd947['attributes']=_0x4bd947['attributes']['filter'](_0x3f46fe=>!_0x3f46fe[0x0]['startsWith']('data-revision-')));}),_0x58ad58;}}function R(_0x1a94c0,_0x1fa66c,_0x4f1fec){const t=_0x1a94c0['t'];switch(_0x1fa66c){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'},_0x4f1fec);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4f1fec);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 _0x38daca{['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[_0x19dd7a,S,$,_0x1d34c4];}constructor(_0xafd66b){super(_0xafd66b),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 _0x2505e1=_0x549feb();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2505e1},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 _0x24c140=this['repository']['getRevision'](0x0),_0x429922=_0x24c140&&null===_0x24c140['creator']?_0x24c140:null;if(this['_continueCurrentRevision']=!!_0x429922&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4e8bcd=this['_source']['getCurrentRevisionId'](),_0x19ab31=this['repository']['getRevision'](_0x4e8bcd);if(_0x19ab31)this['_startingVersion']=_0x19ab31['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5b453f=this['_source']['history']['_operations']['find'](_0x5ce5bb=>!_0x5ce5bb['_isInit']),_0x12e649=_0x5b453f?_0x5b453f['baseVersion']:this['_source']['history']['version'];_0x24c140?(_0x24c140['toVersion']<_0x12e649&&_0x24c140['_update']({'toVersion':_0x12e649}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x429922['id'],this['_startingVersion']=_0x429922['fromVersion']):(this['_startingVersion']=_0x24c140['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x12e649,this['_continueCurrentRevision']=!0x1);}}else _0x429922&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x429922['toVersion'],this['editor']['model']['document']['history']['version']),_0x429922['fromVersion']===_0x429922['toVersion']?(0x0!==_0x429922['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x429922['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x429922['id'],this['_startingVersion']=_0x429922['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',_0x36e472=>!_0x36e472),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x31bfbb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3208e5;for(const _0x3eb814 in _0x31bfbb){const _0x166311=_0x3eb814,_0x30904d=_0x31bfbb[_0x166311];if('revisionHistoryLicenseKeyValid'==_0x30904d||'revisionHistoryLicenseKeyInvalid'==_0x30904d||'revisionHistoryLicenseKeyExpired'==_0x30904d||'revisionHistoryLicenseKeyDomainLimit'==_0x30904d||'revisionHistoryLicenseKeyNotAllowed'==_0x30904d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x30904d||'revisionHistoryLicenseKeyTrialLimit'==_0x30904d||'revisionHistoryLicenseKeyUsageLimit'==_0x30904d){delete _0x31bfbb[_0x166311],_0x3208e5=_0x30904d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3208e5&&_0x31bfbb['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3208e5&&_0x31bfbb['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3208e5&&_0x31bfbb['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3208e5&&_0x31bfbb['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3208e5&&_0x31bfbb['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3208e5&&_0x31bfbb['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3208e5&&_0x31bfbb['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x29999c=this['repository']['getRevision'](0x0),_0x3b6f2d=await this['getRevisionDocumentData'](_0x29999c),_0x40ab11=await this['getRevisionRootsAttributes'](_0x29999c);this['_replaceEditorDataWithRevisionData'](_0x3b6f2d,_0x40ab11);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x452d23){this['_source']=_0x452d23;}async['update'](){const _0x278fec=await this['_source']['getLatestVersion']();if(_0x278fec>this['currentRevision']['toVersion']){await this['_loadState']();const _0x154897=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x278fec});_0x154897['authors']=_0x154897['authorsIds']['map'](_0x4c65d5=>this['editor']['plugins']['get']('Users')['getUser'](_0x4c65d5)),this['currentRevision']['_update'](_0x154897);}}async['saveRevision'](_0x44c677={},_0x4c33c2=null){const _0x3d0a62=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4c33c2>this['currentRevision']['toVersion']&&(_0x4c33c2=null),null===_0x4c33c2&&(_0x4c33c2=await this['_source']['getLatestVersion']());const _0x3a10d4=this['_getFromVersion'](_0x4c33c2),_0x2855fa=this['buildRevisionData']({'from':_0x3a10d4,'to':_0x4c33c2});if(this['currentRevision']['toVersion']<_0x4c33c2){const _0x34ac5a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4c33c2,'to':_0x4c33c2});_0x34ac5a['authors']=[],_0x34ac5a['authorsIds']=[],_0x34ac5a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x34ac5a,!0x0),delete _0x34ac5a['authors'],_0x3d0a62['push'](_0x34ac5a);}_0x44c677['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x44c677['name']=_0x44c677['name']||null,_0x44c677['id']=_0x44c677['id']||_0x549feb(),_0x44c677={..._0x44c677,..._0x2855fa};const _0x22802a=this['addRevisionData'](_0x44c677);_0x3d0a62['push'](_0x44c677);const _0x2a3fee=this['repository']['getIndex'](_0x22802a);if(0x0!==_0x2a3fee){const _0x3ba16b=this['repository']['getRevision'](_0x2a3fee-0x1);if(_0x3ba16b['fromVersion']!==_0x4c33c2){const _0x3df8a7=this['_revisionDataBuilder']['getData'](_0x4c33c2,_0x3ba16b['toVersion']),_0x19ba4f={'id':_0x3ba16b['id'],'diffData':_0x3df8a7['diffData'],'authorsIds':_0x3df8a7['authorsIds'],'authors':_0x3df8a7['authorsIds']['map'](_0x34f974=>this['editor']['plugins']['get']('Users')['getUser'](_0x34f974)),'fromVersion':_0x4c33c2};_0x3ba16b===this['currentRevision']&&(_0x19ba4f['createdAt']=new Date(_0x44c677['createdAt']['getTime']()+0xa)),_0x3ba16b['_update'](_0x19ba4f,!0x0),delete _0x19ba4f['authors'],_0x3d0a62['push'](_0x19ba4f);}}if(this['adapter']){for(const _0x5f2bdf of _0x3d0a62)this['_bufferUpdate'](_0x5f2bdf['id'],_0x5f2bdf,!0x0);this['sendBufferedUpdates']();}return _0x22802a;}['addRevisionData'](_0x85b7db){const _0x5e4469=this['repository']['createRevision'](_0x85b7db);return this['adapter']&&_0x5e4469['on']('_update',(_0x51b3c7,_0x56647d,_0x599bc5)=>{_0x599bc5||(this['_bufferUpdate'](_0x56647d['id'],_0x56647d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5e4469,this['_findInsertionIndex'](_0x5e4469)),_0x5e4469;}async['getRevisionDocumentData'](_0xc6c383){return await this['_utils']['loadRevisionData'](_0xc6c383,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xc6c383);}async['getRevisionRootsAttributes'](_0x4b967c){return await this['_utils']['loadRevisionData'](_0x4b967c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4b967c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x231e80=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x23e5ee=0x0;_0x23e5ee<_0x231e80['length'];_0x23e5ee++){const _0x325183=_0x231e80[_0x23e5ee];let _0x56a388=!0x1;for(const _0x3e2051 of Object['keys'](_0x325183))void 0x0===_0x325183[_0x3e2051]?delete _0x325183[_0x3e2051]:'id'!==_0x3e2051&&(_0x56a388=!0x0);_0x56a388||(_0x231e80[_0x23e5ee]=null);}if(_0x231e80=_0x231e80['filter'](_0x2ad654=>null!==_0x2ad654),!_0x231e80['length'])return;for(let _0x4a8f0c=0x0;_0x4a8f0c<_0x231e80['length'];_0x4a8f0c++){const _0x28bb2c=_0x231e80[_0x4a8f0c];void 0x0!==_0x28bb2c['fromVersion']&&void 0x0===_0x28bb2c['toVersion']&&(_0x28bb2c['toVersion']=this['repository']['getRevision'](_0x28bb2c['id'])['toVersion']),void 0x0!==_0x28bb2c['toVersion']&&void 0x0===_0x28bb2c['fromVersion']&&(_0x28bb2c['fromVersion']=this['repository']['getRevision'](_0x28bb2c['id'])['fromVersion']);}const _0x2cb6ee=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x231e80,_0x2cb6ee)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3ec38a=>{if(_0x3ec38a){for(const _0xf4ecc7 of _0x3ec38a)this['setRevisionData']({'id':_0xf4ecc7['id'],'createdAt':_0xf4ecc7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4d4e14=null,from:_0x5ee79a=null,to:_0x33a94d=null}){_0x5ee79a=null!==_0x5ee79a?_0x5ee79a:_0x4d4e14['fromVersion'],_0x33a94d=null!==_0x33a94d?_0x33a94d:_0x4d4e14['toVersion'];const _0x5d5954=this['_revisionDataBuilder']['getData'](_0x5ee79a,_0x33a94d),_0x45bc7d={'diffData':_0x5d5954['diffData'],'authorsIds':_0x5d5954['authorsIds'],'fromVersion':_0x5ee79a,'toVersion':_0x33a94d};if(!_0x4d4e14||_0x33a94d!==_0x4d4e14['toVersion']){const _0x5202bf=_0x33a94d-0x1,_0x5470dd=this['_source']['history']['getOperation'](_0x5202bf);_0x45bc7d['createdAt']=_0x5470dd&&_0x5470dd['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5ee79a===this['_loadedStateData']['fromVersion']){for(const _0x19e0c5 of this['_loadedStateData']['authors'])_0x45bc7d['authorsIds']['includes'](_0x19e0c5['id'])||_0x45bc7d['authorsIds']['push'](_0x19e0c5['id']);}return _0x45bc7d;}['_bufferUpdate'](_0x28a1a6,_0x1add79,_0x34430e){if(this['_bufferedUpdates']['has'](_0x28a1a6)){const _0x566338=this['_bufferedUpdates']['get'](_0x28a1a6);_0x1add79=_0x34430e?{..._0x566338,..._0x1add79}:{..._0x1add79,..._0x566338};}this['_bufferedUpdates']['set'](_0x28a1a6,_0x1add79);}['setRevisionData'](_0x48dfd1){const _0x3bb9a6=this['repository']['getRevision'](_0x48dfd1['id']);if(_0x48dfd1['createdAt']&&(_0x48dfd1['createdAt']=new Date(_0x48dfd1['createdAt'])),_0x48dfd1['authorsIds']){const _0x2e8ea4=this['editor']['plugins']['get']('Users');_0x48dfd1['authors']=_0x48dfd1['authorsIds']['map'](_0x4f6e79=>_0x2e8ea4['getUser'](_0x4f6e79));}_0x3bb9a6['_update'](_0x48dfd1,!0x0);}['_createInitialRevision'](_0x43f729){const _0x1e7774=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1e7774)this['_initialRevisionId']=_0x1e7774['id'];else{const _0x25c276=!this['editor']['model']['document']['roots']['find'](_0xa4af38=>this['editor']['model']['hasContent'](_0xa4af38)),_0x13df9f=this['editor']['plugins']['get']('Users')['me']['id'],_0x4059c6=R(this['editor']['locale'],_0x25c276?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x43f729,'to':_0x43f729,'id':this['_initialRevisionId'],'name':_0x4059c6,'creatorId':_0x13df9f});}}['_createCurrentRevision'](_0x189873){const _0x5da1fd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5da1fd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x189873,'to':_0x189873,'id':_0x5da1fd,'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'](_0x5970a3,_0x4479df){let _0x2c1c72=this['editor']['config']['get']('initialData'),_0x25945d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2c1c72){_0x2c1c72={};for(const _0x2c1092 of this['editor']['model']['document']['getRootNames']())_0x2c1c72[_0x2c1092]='';}if('string'==typeof _0x2c1c72&&(_0x2c1c72={'main':_0x2c1c72}),void 0x0===_0x25945d){_0x25945d={};for(const _0x12ee6b of this['editor']['model']['document']['getRootNames']())_0x25945d[_0x12ee6b]={};}let _0x2a728f=!0x1;const _0x27a7b8=Object['keys'](_0x2c1c72),_0xaa0a06=Object['keys'](_0x5970a3);for(const _0x550d25 of _0x27a7b8){if(_0x2c1c72[_0x550d25]!==_0x5970a3[_0x550d25]&&''!==_0x2c1c72[_0x550d25]['trim']()){_0x2a728f=!0x0;break;}if(!_0x1c23ea(_0x25945d[_0x550d25],_0x4479df[_0x550d25])&&Object['keys'](_0x25945d[_0x550d25])['length']>0x0){_0x2a728f=!0x0;break;}}_0x2a728f||(_0x2a728f=_0xaa0a06['some'](_0x2f7fb5=>!this['editor']['model']['document']['getRoot'](_0x2f7fb5))),_0x2a728f&&_0x318b89('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2c1c72,'editorRootsAttributes':_0x25945d,'revisionData':_0x5970a3,'revisionRootsAttributes':_0x4479df}),this['editor']['config']['set']('initialData',_0x5970a3),this['editor']['config']['set']('rootsAttributes',_0x4479df);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2828c1=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2828c1['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x55c9a6){const _0x351dce=this['repository']['getRevisions']();_0x351dce['reverse']();let _0x545eaf=0x0;for(;_0x545eaf<_0x351dce['length'];){const _0x30522c=_0x351dce[_0x545eaf];if(_0x30522c===this['currentRevision']){_0x545eaf++;continue;}if(_0x30522c['id']===this['_initialRevisionId'])break;const _0x3881e4=_0x55c9a6['toVersion']-_0x30522c['toVersion']||_0x55c9a6['fromVersion']-_0x30522c['fromVersion'];if(_0x3881e4>0x0)break;if(_0x3881e4<0x0)_0x545eaf++;else{if(!_0x55c9a6['creator']&&_0x30522c['creator'])break;if(_0x30522c['creator']||!_0x55c9a6['creator']){if(_0x55c9a6['createdAt']>_0x30522c['createdAt'])break;_0x545eaf++;}else _0x545eaf++;}}return _0x545eaf;}['_getFromVersion'](_0x21b3fb){const _0x2c5fde=this['repository']['getRevisions']();_0x2c5fde['reverse'](),_0x2c5fde['shift']();const _0x3313ab=_0x2c5fde['find'](_0x5052f3=>_0x5052f3['toVersion']<=_0x21b3fb)['toVersion'];return _0x3313ab<this['_startingVersion']?this['_startingVersion']:_0x3313ab;}['_makeRevision']({name:_0x5916c0,from:_0x317f2f,to:_0x4d26a8,creatorId:_0x24ec8b,id:_0x33b771}){const _0x51fc0c=this['buildRevisionData']({'from':_0x317f2f,'to':_0x4d26a8});_0x51fc0c['name']=_0x5916c0,_0x51fc0c['creatorId']=_0x24ec8b,_0x51fc0c['id']=_0x33b771;const _0x5be562=this['addRevisionData'](_0x51fc0c);return this['adapter']&&this['_bufferUpdate'](_0x51fc0c['id'],_0x51fc0c,!0x0),_0x5be562;}['_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(_0xc42668){this['editor']=_0xc42668,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'](_0x51eae9){this['source']=_0x51eae9;const _0x4c4c2c=new Map(),_0x586644=new Map(),_0x139079=this['editor']['model']['document']['roots']['map'](_0x51f596=>_0x51f596['rootName']);for(const _0x131444 of _0x139079){const _0x4a4809=this['editor']['model']['document']['getRoot'](_0x131444),_0x50bb53=x(_0x4a4809);_0x4c4c2c['set'](_0x131444,_0x50bb53),_0x586644['set'](_0x131444,Object['fromEntries'](_0x4a4809['getAttributes']()));}const _0x180ba3=Array['from'](this['editor']['model']['markers'])['map'](_0xa275bf=>[_0xa275bf['name'],_0xa275bf['getRange']()]),_0x121622=this['source']['version'];this['_saveMetaData'](_0x121622,_0x4c4c2c,_0x180ba3,_0x586644),this['_startingRevisionId']=this['_revisionId'];const _0x33f96c=new Map(),_0x5890bb=new Map();for(const _0x5537f3 of _0x139079){const _0x18a751=N(_0x5537f3);_0x33f96c['set'](_0x5537f3,_0x18a751),_0x5890bb['set'](_0x5537f3,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x33f96c,[],_0x5890bb);}['getData'](_0x3e6701,_0x2ffda3){if(this['_lastFrom']===_0x3e6701&&this['_lastTo']<=_0x2ffda3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2ffda3,!0x0);else{if(!this['_savedMetaData']['has'](_0x3e6701)){const _0x551cdd=this['_getPreviousFrom'](_0x3e6701);this['_calculateMetaData'](_0x551cdd,_0x3e6701,!0x1);}this['_calculateMetaData'](_0x3e6701,_0x2ffda3,!0x0);}return this['_lastFrom']=_0x3e6701,this['_lastTo']=_0x2ffda3,this['_getState']();}['loadState'](_0x39e0bd){if(!this['_savedMetaData']['has'](_0x39e0bd['fromVersion'])){const _0x45d439=this['_getPreviousFrom'](_0x39e0bd['fromVersion']);this['_calculateMetaData'](_0x45d439,_0x39e0bd['fromVersion'],!0x1);}this['_calculateMetaData'](_0x39e0bd['fromVersion'],_0x39e0bd['toVersion'],!0x1);const _0x1c3b66=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x39e0bd['fromVersion'],this['_lastTo']=_0x39e0bd['toVersion'];for(const _0x5e40b4 in _0x39e0bd['diffData']){const _0x45d539=_0x39e0bd['diffData'][_0x5e40b4]['attachChange'],_0x37efac=_0x8fd207(_0x39e0bd['diffData'][_0x5e40b4]['attributesBefore'])||{},_0x2f7ee9=_0x1c3b66['_makeModelFromViewString'](_0x39e0bd['diffData'][_0x5e40b4]['deletions']);_0x2f7ee9['rootName']=_0x5e40b4,_0x2f7ee9['_isAttached']=!_0x45d539||!_0x45d539['isAttached'],_0x2f7ee9['isAttached']=()=>_0x2f7ee9['_isAttached'],this['_baseRoots']['set'](_0x5e40b4,_0x2f7ee9),this['_baseRootsAttributes']['set'](_0x5e40b4,_0x37efac),_0x45d539&&this['_touchedRoots']['set'](_0x5e40b4,_0x45d539);const _0x52ffa=this['_makeIdsRoot'](_0x2f7ee9);this['_baseIdsRoots']['set'](_0x5e40b4,_0x52ffa);for(const [_0x418fbf,_0x4a2b56]of _0x2f7ee9['markers']){if(!_0x418fbf['startsWith']('revision:'))continue;const _0x50f726=_0x418fbf['split'](':')[0x2];for(const _0x51914c of _0x4a2b56['getWalker']({'singleCharacters':!0x0})){const _0x65dcb9=this['_getVidAttributeName'](_0x51914c),_0x2ee3b5='elementEnd'==_0x51914c['type']?_0x51914c['previousPosition']['path']['slice'](0x0,-0x1):_0x51914c['previousPosition']['path'],_0x19a79e=_0x52ffa['getNodeByPath'](_0x2ee3b5)['getAttribute'](_0x65dcb9);this['_touched']['set'](_0x19a79e,{'userId':_0x50f726});}}}this['_startingRevisionId']=this['_revisionId'];const _0x58a989=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x33b2d4=>!this['_touched']['has'](_0x33b2d4));let _0x3ca994=0x0;const _0x18e8fc=new Map();for(const _0x28a358 in _0x39e0bd['diffData']){const _0x35ad0c=_0x39e0bd['diffData'][_0x28a358]['attachChange'],_0x5a2a76=_0x8fd207(_0x39e0bd['diffData'][_0x28a358]['attributesAfter'])||{},_0x2d994e=_0x1c3b66['_makeModelFromViewString'](_0x39e0bd['diffData'][_0x28a358]['insertions']);_0x2d994e['rootName']=_0x28a358,_0x2d994e['_isAttached']=!_0x35ad0c||_0x35ad0c['isAttached'],_0x2d994e['isAttached']=()=>_0x2d994e['_isAttached'],this['_diffRoots']['set'](_0x28a358,_0x2d994e),this['_diffRootsAttributes']['set'](_0x28a358,_0x5a2a76);const _0x49cc18=this['_makeIdsRoot'](_0x2d994e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x28a358,_0x49cc18),_0x18e8fc['set'](_0x28a358,_0x2d994e['isAttached']()?_0x5a2a76:{});for(const [_0x469294,_0x32c5a2]of _0x2d994e['markers']){if(!_0x469294['startsWith']('revision:'))continue;const _0x2aaf19=_0x469294['split'](':')[0x2];for(const _0x139873 of _0x32c5a2['getWalker']({'singleCharacters':!0x0})){const _0x1e58e7=this['_getVidAttributeName'](_0x139873),_0x2a0ccd=this['_revisionId']++,_0x40b651='elementEnd'==_0x139873['type']?_0x139873['previousPosition']['path']['slice'](0x0,-0x1):_0x139873['previousPosition']['path'];_0x49cc18['getNodeByPath'](_0x40b651)['_setAttribute'](_0x1e58e7,_0x2a0ccd),this['_touched']['set'](_0x2a0ccd,{'userId':_0x2aaf19});}}for(const _0xd9de14 of this['editor']['model']['createRangeIn'](_0x2d994e)['getWalker']({'singleCharacters':!0x0})){const _0x49d4b0=this['_getVidAttributeName'](_0xd9de14),_0x540ba4='elementEnd'==_0xd9de14['type']?_0xd9de14['previousPosition']['path']['slice'](0x0,-0x1):_0xd9de14['previousPosition']['path'],_0x24edbe=_0x49cc18['getNodeByPath'](_0x540ba4);_0x24edbe['getAttribute'](_0x49d4b0)>0x0||_0x24edbe['_setAttribute'](_0x49d4b0,_0x58a989[_0x3ca994++]);}for(const [_0x2a059e,_0x5a893d]of _0x2d994e['markers'])_0x2a059e['startsWith']('revision:')||this['_markers']['set'](_0x2a059e,_0x5a893d);}const {roots:_0x3456c6}=this['_savedMetaData']['get'](_0x39e0bd['fromVersion']),{roots:_0x155bb9}=this['_savedMetaData']['get'](_0x39e0bd['toVersion']),_0xd834f8=x(_0x3456c6['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0xd834f8),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xd834f8,Number['NEGATIVE_INFINITY']));const _0x18fb6c=x(_0x155bb9['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x18fb6c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x18fb6c));const _0x4ce270=Array['from'](this['_diffRoots'])['map'](([_0x2d4581,_0x2793b4])=>[_0x2d4581,x(_0x2793b4)]);this['_saveMetaData'](this['_lastTo'],_0x4ce270,this['_markers'],_0x18e8fc);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x416e13,_0x2b1a70,_0x62c908,_0x87faa0){const _0x2fef32=new Map(_0x2b1a70),_0x1a969b=new Map(_0x8fd207(_0x87faa0)),_0x160152=new Map();for(const [_0x30b4a7,_0x3d5d2f]of _0x62c908)_0x160152['set'](_0x30b4a7,{'start':_0x3d5d2f['start']['clone'](),'end':_0x3d5d2f['end']['clone'](),'rootName':_0x3d5d2f['root']['rootName']});this['_savedMetaData']['set'](_0x416e13,{'roots':_0x2fef32,'markers':_0x160152,'rootsAttributes':_0x1a969b});}['_removeMetaData'](_0x162f8c){this['_savedMetaData']['delete'](_0x162f8c);}['_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'](_0x13f2cb,_0x358b87=null){let _0x3eddca=null;_0x13f2cb['is']('documentFragment')||(_0x3eddca=new _0x41a41f(_0x13f2cb['name'],{'vid_start':null===_0x358b87?this['_revisionId']++:_0x358b87++}));const _0x5293de=[];for(const _0x37f7f9 of _0x13f2cb['getChildren']())if(_0x37f7f9['is']('element')){_0x5293de['push'](this['_makeIdsRoot'](_0x37f7f9,_0x358b87));const _0x2e8120=_0x5293de[_0x5293de['length']-0x1];null!==_0x358b87&&(_0x358b87=_0x2e8120['is']('element','$text')?_0x2e8120['getAttribute']('vid')+0x1:_0x2e8120['getAttribute']('vid_end')+0x1);}else{for(let _0x45e319=0x0;_0x45e319<_0x37f7f9['offsetSize'];_0x45e319++)_0x5293de['push'](new _0x41a41f('$text',{'vid':null===_0x358b87?this['_revisionId']++:_0x358b87++}));}if(_0x13f2cb['is']('documentFragment')){const _0x337583=N(_0x13f2cb['rootName']);return _0x337583['_insertChild'](0x0,_0x5293de),_0x337583;}return _0x3eddca['_setAttribute']('vid_end',null===_0x358b87?this['_revisionId']++:_0x358b87++),_0x3eddca['_insertChild'](0x0,_0x5293de),_0x3eddca;}['_calculateMetaData'](_0x58d1f8,_0x42cd60,_0x3f64b9){this['_reset']();const {roots:_0x1c288d,markers:_0x2ad4c7,rootsAttributes:_0x2c0aea}=this['_savedMetaData']['get'](_0x58d1f8);this['_baseRoots']=new Map(_0x1c288d),this['_baseRootsAttributes']=new Map(_0x8fd207(_0x2c0aea));for(const [_0xd4c87a,_0x406216]of this['_baseRoots'])if('$graveyard'!==_0xd4c87a&&(this['_diffRoots']['set'](_0xd4c87a,x(_0x406216)),this['_diffRootsAttributes']=new Map(_0x8fd207(_0x2c0aea)),_0x3f64b9)){const _0x463e86=this['_revisionId'];this['_idsRoots']['set'](_0xd4c87a,this['_makeIdsRoot'](_0x406216)),this['_baseIdsRoots']['set'](_0xd4c87a,this['_makeIdsRoot'](_0x406216,_0x463e86));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3f64b9&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x15b1a6,_0x1af42a]of _0x2ad4c7){const _0x394a3a=this['_baseRoots']['get'](_0x1af42a['rootName']),_0x277d67=this['_diffRoots']['get'](_0x1af42a['rootName']),_0x4531ee=new _0x112776(this['_fixPosition'](_0x1af42a['start'],_0x394a3a),this['_fixPosition'](_0x1af42a['end'],_0x394a3a)),_0x2c2fe2=this['_fixRange'](_0x4531ee,_0x277d67);_0x394a3a['markers']['set'](_0x15b1a6,_0x4531ee),this['_markers']['set'](_0x15b1a6,_0x2c2fe2);}this['_applyOperations'](_0x58d1f8,_0x42cd60,_0x3f64b9);}['_applyOperations'](_0x1f09b6,_0xcd8846,_0xb1e36c){for(const _0x28983d of this['source']['getOperations'](_0x1f09b6,_0xcd8846))this['_handleOperation'](_0x28983d,_0xb1e36c);for(const _0x56f84c of this['_diffRoots']['values']())_0x56f84c['markers']['clear']();for(const [_0x4a171b,_0x2da813]of this['_markers']){this['_diffRoots']['get'](_0x2da813['root']['rootName'])['markers']['set'](_0x4a171b,_0x2da813['clone']());}const _0x10eb45=new Map(),_0x35cf18=new Map();for(const [_0x58cff9,_0x3aff31]of this['_diffRoots'])_0x10eb45['set'](_0x58cff9,x(_0x3aff31)),_0x35cf18['set'](_0x58cff9,this['_diffRootsAttributes']['get'](_0x58cff9));this['_saveMetaData'](_0xcd8846,_0x10eb45,this['_markers'],_0x35cf18);}['_getPreviousFrom'](_0x1129fb){const _0x368a37=Array['from'](this['_savedMetaData']['keys']());_0x368a37['sort']((_0x458808,_0xdb8c5)=>_0x458808-_0xdb8c5),_0x368a37['reverse']();for(const _0x285ade of _0x368a37)if(_0x285ade<_0x1129fb)return _0x285ade;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2da8af,_0x11043d){const _0x481042=Array['from'](_0x11043d['markers'])['map'](([_0x4e6c08,_0x5e3fec])=>[_0x4e6c08,this['_fixRange'](_0x5e3fec,_0x2da8af)]);_0x2da8af['markers']=new Map(_0x481042);}['_transformMarkers'](_0x27735c){for(const _0x254798 of this['_markers']['values']()){const _0x3b776b=_0x254798['getTransformedByOperation'](_0x27735c),_0x539e51=_0x112776['_createFromRanges'](_0x3b776b);_0x254798['start']=_0x539e51['start'],_0x254798['end']=_0x539e51['end'];}}['_handleOperation'](_0x522d0a,_0x4fba2d){if('addRoot'!=_0x522d0a['type']&&'detachRoot'!=_0x522d0a['type']){if('insert'==_0x522d0a['type']){const _0x4e2e62=_0x522d0a['position']['root']['rootName'];this['_diffRoots']['has'](_0x4e2e62)||(this['_diffRoots']['set'](_0x4e2e62,N(_0x4e2e62,!0x0)),this['_diffRootsAttributes']['set'](_0x4e2e62,{}),_0x4fba2d&&this['_idsRoots']['set'](_0x4e2e62,N(_0x4e2e62,!0x0)));}else{if('addRootAttribute'==_0x522d0a['type']||'removeRootAttribute'==_0x522d0a['type']||'changeRootAttribute'==_0x522d0a['type'])return void this['_handleRootAttributeOperation'](_0x522d0a);'marker'==_0x522d0a['type']&&this['_handleMarkerOperation'](_0x522d0a);}if('marker'!==_0x522d0a['type']){const _0x6339fb=this['_cloneOperation'](_0x522d0a,this['_diffRoots']);_0x6339fb['_execute'](),this['_transformMarkers'](_0x6339fb);}if(_0x4fba2d)switch(_0x522d0a['type']){case'insert':this['_handleInsertOperation'](_0x522d0a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x522d0a);break;case'merge':this['_handleMergeOperation'](_0x522d0a);break;case'split':this['_handleSplitOperation'](_0x522d0a);}}else this['_handleRootOperation'](_0x522d0a,_0x4fba2d);}['_cloneOperation'](_0x4dee29,_0x207afa){const _0xbee775=_0x4dee29['clone']();return _0xbee775['_authorId']=_0x4dee29['_authorId'],this['_fixOperation'](_0xbee775,_0x207afa),_0xbee775;}['_getBaseVids'](_0x4f519d){return _0x4f519d['map'](_0x54585a=>{const _0x52991a=this['_getVidAttributeName'](_0x54585a);return Number(_0x54585a['item']['getAttribute'](_0x52991a));});}['_generateTape'](_0x3e6332,_0x1392c4){if(_0x3e6332['is']('element','$text'))_0x1392c4['push']({'item':_0x3e6332,'type':'text'});else{_0x3e6332['is']('element')&&_0x1392c4['push']({'item':_0x3e6332,'type':'elementStart'});for(const _0x56c4e9 of _0x3e6332['getChildren']())this['_generateTape'](_0x56c4e9,_0x1392c4);_0x3e6332['is']('element')&&_0x1392c4['push']({'item':_0x3e6332,'type':'elementEnd'});}return _0x1392c4;}['_getState'](){const _0x43278b=new Map(this['_touched']),_0x1caf16=new Map(_0x43278b),_0x3247d4=new Map(),_0x58bf7f={'insertions':{},'deletions':{}},_0x1bfa60={'insertions':{},'deletions':{}},_0x29e215=new Map(),_0x4f8d3d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4f8d3d['delete']('$graveyard');for(const _0x340026 of _0x4f8d3d){const _0x33b0a1=this['_diffRoots']['get'](_0x340026)||N(_0x340026,!0x1),_0x5a75ea=this['_baseRoots']['get'](_0x340026)||N(_0x340026,!0x1);_0x33b0a1['isAttached']()||_0x5a75ea['isAttached']()?(_0x58bf7f['insertions'][_0x340026]=x(_0x33b0a1),_0x58bf7f['deletions'][_0x340026]=x(_0x5a75ea),this['_copyMarkers'](_0x58bf7f['deletions'][_0x340026],_0x5a75ea),this['_copyMarkers'](_0x58bf7f['insertions'][_0x340026],_0x33b0a1),_0x1bfa60['insertions'][_0x340026]=this['_generateTape'](this['_idsRoots']['get'](_0x340026),[]),_0x1bfa60['deletions'][_0x340026]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x340026)||N(_0x340026,!0x1),[])):_0x4f8d3d['delete'](_0x340026);}for(const _0x3dd5e4 of _0x4f8d3d){const _0x167ffb=_0x1bfa60['insertions'][_0x3dd5e4];for(const _0xe52c83 of _0x167ffb){const _0x2bbf00=this['_getVidAttributeName'](_0xe52c83),_0x10dad5=_0xe52c83['item']['getAttribute'](_0x2bbf00);_0x1caf16['delete'](_0x10dad5),_0x10dad5>=this['_startingRevisionId']&&_0x3247d4['set'](_0x10dad5,_0x43278b['get'](_0x10dad5));}}for(const _0x585918 of _0x4f8d3d){const _0xe35439=_0x1bfa60['insertions'][_0x585918],_0x3bf072=this['_getBaseVids'](_0x1bfa60['deletions'][_0x585918]);let _0x476d6c=0x0;for(const _0x50c540 of _0xe35439){const _0x21b324=this['_getVidAttributeName'](_0x50c540),_0x5be25c=_0x50c540['item']['getAttribute'](_0x21b324);if(!_0x3247d4['has'](_0x5be25c)&&!_0x29e215['has'](_0x5be25c)){if(_0x1caf16['has'](_0x5be25c))_0x476d6c++;else{if(_0x5be25c!=_0x3bf072[_0x476d6c]){const _0x2fbb85=_0x43278b['get'](_0x5be25c)||_0x43278b['get'](_0x3bf072[_0x476d6c]);for(;_0x5be25c!=_0x3bf072[_0x476d6c];)_0x1caf16['has'](_0x3bf072[_0x476d6c])||(_0x29e215['set'](_0x3bf072[_0x476d6c],_0x2fbb85),_0x43278b['set'](_0x3bf072[_0x476d6c],_0x2fbb85)),_0x476d6c++;}_0x476d6c++;}}}}for(const _0x48296b of _0x4f8d3d){const _0x3a4c79=_0x1bfa60['insertions'][_0x48296b];for(const _0x5c573c of _0x3a4c79){const _0x5d3fa8=this['_getVidAttributeName'](_0x5c573c),_0x3f4bac=_0x5c573c['item']['getAttribute'](_0x5d3fa8);if(_0x29e215['has'](_0x3f4bac)){const _0x3cc4a0=_0x29e215['get'](_0x3f4bac);_0x1caf16['has'](_0x3f4bac)||_0x1caf16['set'](_0x3f4bac,{..._0x3cc4a0}),_0x3247d4['set'](_0x3f4bac,{..._0x3cc4a0});}}}for(const _0x2d006a of _0x1caf16['keys']())_0x2d006a>=this['_startingRevisionId']&&_0x1caf16['delete'](_0x2d006a);const _0x4e30bf=new Map();for(const _0x211684 of _0x4f8d3d){let _0x3a5611=_0x1bfa60['insertions'][_0x211684];for(const _0x37b3ac of _0x3a5611)if(_0x37b3ac['item']['is']('element','tableCell')){const _0x142b70=this['_getVidAttributeName'](_0x37b3ac),_0x55c493=_0x37b3ac['item']['getAttribute'](_0x142b70);if(_0x3247d4['has'](_0x55c493)){const _0x1aedfe=_0x37b3ac['item']['parent']['parent']['getAttribute']('vid_start'),_0x42670a=_0x4e30bf['get'](_0x1aedfe)||new Set();_0x42670a['add'](_0x3247d4['get'](_0x55c493)['userId']),_0x4e30bf['set'](_0x1aedfe,_0x42670a);}}_0x3a5611=_0x1bfa60['deletions'][_0x211684];for(const _0x2abcce of _0x3a5611)if(_0x2abcce['item']['is']('element','tableCell')){const _0x1d5d3e=this['_getVidAttributeName'](_0x2abcce),_0x59bf15=_0x2abcce['item']['getAttribute'](_0x1d5d3e);if(_0x1caf16['has'](_0x59bf15)){const _0x1b76d9=_0x2abcce['item']['parent']['parent']['getAttribute']('vid_start'),_0x2942fb=_0x4e30bf['get'](_0x1b76d9)||new Set();_0x2942fb['add'](_0x1caf16['get'](_0x59bf15)['userId']),_0x4e30bf['set'](_0x1b76d9,_0x2942fb);}}for(const _0x4c575d of _0x4e30bf['keys']())(_0x3247d4['has'](_0x4c575d)||_0x1caf16['has'](_0x4c575d))&&_0x4e30bf['delete'](_0x4c575d);}for(const _0x3ae175 of _0x4f8d3d){const _0x7e0b7b=_0x1bfa60['insertions'][_0x3ae175];let _0xed4d03=null,_0x3dab6e=null;for(const _0x2f253f of _0x7e0b7b){const _0x199adc=this['_getVidAttributeName'](_0x2f253f),_0x3a3d56=_0x2f253f['item']['getAttribute'](_0x199adc),_0x4779d8=_0x4e30bf['get'](_0x3a3d56);_0x4779d8&&'elementStart'==_0x2f253f['type']&&(_0xed4d03=Array['from'](_0x4779d8)[0x0],_0x3dab6e=_0x2f253f['item']['getAttribute']('vid_end')),_0xed4d03&&(_0x1caf16['set'](_0x3a3d56,{'userId':_0xed4d03}),_0x3247d4['set'](_0x3a3d56,{'userId':_0xed4d03})),_0x3a3d56==_0x3dab6e&&(_0xed4d03=null,_0x3dab6e=null);}}const _0x3a29dd={},_0x1f5fbb=new Set();for(const _0x129ac2 of _0x4f8d3d){const _0x37546c=_0x58bf7f['deletions'][_0x129ac2],_0x43039f=_0x58bf7f['insertions'][_0x129ac2];for(const {userId:_0x5446b2}of this['_touchedMarkers']['values']())null!==_0x5446b2&&_0x1f5fbb['add'](_0x5446b2);for(const {userId:_0x516c5d}of this['_touchedRoots']['values']())null!==_0x516c5d&&_0x1f5fbb['add'](_0x516c5d);this['_markChanges'](_0x43039f,_0x1bfa60['insertions'][_0x129ac2],_0x3247d4,'insertion',_0x1f5fbb),this['_markChanges'](_0x37546c,_0x1bfa60['deletions'][_0x129ac2],_0x1caf16,'deletion',_0x1f5fbb),_0x3a29dd[_0x129ac2]={'insertions':this['_prepareViewToSave'](_0x43039f),'deletions':this['_prepareViewToSave'](_0x37546c),'attachChange':this['_touchedRoots']['get'](_0x129ac2)||null,'attributesBefore':_0x8fd207(this['_baseRootsAttributes']['get'](_0x129ac2))||{},'attributesAfter':_0x8fd207(this['_diffRootsAttributes']['get'](_0x129ac2))};}return{'diffData':_0x3a29dd,'authorsIds':Array['from'](_0x1f5fbb)};}['_processRootBeforeSave'](_0x4821eb){for(const [,_0x2f4857]of _0x4821eb['markers']){const _0x1db836=_0x2f4857['start']['getAncestors']()['filter'](_0x2716dd=>'tableCell'==_0x2716dd['name']);for(const _0x26e1a9 of _0x1db836)0x1==_0x26e1a9['childCount']&&_0x26e1a9['getChild'](0x0)['is']('element','paragraph')&&_0x26e1a9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x78d25){this['_processRootBeforeSave'](_0x78d25);const _0xf76f95=this['editor']['data']['toView'](_0x78d25,{}),_0xd6b8aa=Array['from'](_0xf76f95['getChildren']())['map'](_0xf12cb8=>this['_getViewJson'](_0xf12cb8));return JSON['stringify'](_0xd6b8aa);}['_getViewJson'](_0x1c709f){if(_0x1c709f['is']('$text'))return _0x1c709f['data'];{const _0x128921=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xed63b1=_0x1c709f,_0x762a9c=this['editor']['data']['htmlProcessor']['domConverter'],_0x26b34a={'type':_0x128921['_getTypeCharForViewElement'](_0xed63b1),'name':_0xed63b1['name'],'attributes':Array['from'](_0xed63b1['getAttributes']()),'children':Array['from'](_0xed63b1['getChildren']())['map'](_0x2688e6=>this['_getViewJson'](_0x2688e6))};if(_0x1c709f['is']('uiElement')&&'$comment'!=_0x1c709f['name']){const _0x509545=_0x1c709f['render'](_0x762a9c['domDocument'],_0x762a9c);_0x26b34a['children']['push'](_0x509545['outerHTML']);}else{if(_0x1c709f['is']('rawElement')){const _0x30078f=_0x762a9c['domDocument']['createElement'](_0xed63b1['name']);_0x1c709f['render'](_0x30078f,_0x762a9c),_0x26b34a['children']['push'](_0x30078f['innerHTML']);}}const _0x3c5135=Array['from'](_0xed63b1['getCustomProperties']());_0x3c5135['length']>0x0&&(_0x26b34a['customProperties']=_0x3c5135);const _0x4f1023=_0xed63b1['getFillerOffset']();return null!==_0x4f1023&&(_0x26b34a['fillerOffset']=_0x4f1023),_0x26b34a;}}['_markChanges'](_0x466489,_0x46cf30,_0x2d37eb,_0x2d7c5c,_0xed176b){let _0x110a82=null,_0x5a93d6=null,_0x33820f=0x0;const _0x4d00da=this['editor']['model'];for(let _0xe14fcc=0x0;_0xe14fcc<_0x46cf30['length'];_0xe14fcc++){const _0x3f9ddc=this['_getVidAttributeName'](_0x46cf30[_0xe14fcc]),_0x520c30=_0x46cf30[_0xe14fcc]['item']['getAttribute'](_0x3f9ddc),_0x754871=_0x2d37eb['get'](_0x520c30),_0x1908b9=_0xe14fcc==_0x46cf30['length']-0x1;(!_0x110a82&&_0x754871&&(_0x110a82=_0x754871,_0x5a93d6=_0x46cf30[_0xe14fcc]),_0x110a82&&(!_0x754871||_0x754871['userId']!=_0x110a82['userId']))&&(_0xe414ba(_0x754871,P(_0x5a93d6,_0x466489,_0x4d00da),P(_0x46cf30[_0xe14fcc],_0x466489,_0x4d00da)),_0x110a82=_0x754871||null,_0x5a93d6=_0x754871?_0x46cf30[_0xe14fcc]:null),_0x110a82&&_0x1908b9&&_0xe414ba(_0x754871,P(_0x5a93d6,_0x466489,_0x4d00da),V(_0x46cf30[_0xe14fcc],_0x466489,_0x4d00da));}function _0xe414ba(_0x6c89a5,_0x229724,_0xd84da7){const _0x4bcdc0=_0x110a82['userId'],_0x249c13='revision:'+_0x2d7c5c+':'+_0x4bcdc0+':'+_0x33820f++,_0x3249e4=_0x4d00da['createRange'](_0x229724,_0xd84da7);_0x466489['markers']['set'](_0x249c13,_0x3249e4),null!==_0x4bcdc0&&_0xed176b['add'](_0x4bcdc0);}}['_getVidAttributeName'](_0x200aca){switch(_0x200aca['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x28411a,_0x329879){_0x28411a['baseVersion']=null;for(const _0x22226e in _0x28411a){const _0x2c0e08=_0x28411a[_0x22226e];if(_0x2c0e08 instanceof _0x29d0f4){const _0x469544=_0x329879['get'](_0x2c0e08['root']['rootName']);_0x28411a[_0x22226e]=this['_fixPosition'](_0x2c0e08,_0x469544);}if(_0x2c0e08 instanceof _0x112776){const _0x50a449=_0x329879['get'](_0x2c0e08['root']['rootName']);_0x28411a[_0x22226e]=this['_fixRange'](_0x2c0e08,_0x50a449);}'root'===_0x22226e&&(_0x28411a['root']=_0x329879['get'](_0x28411a['root']['rootName']));}}['_fixRange'](_0x5ddd28,_0x2fc8ae){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5ddd28['start'],_0x2fc8ae),this['_fixPosition'](_0x5ddd28['end'],_0x2fc8ae));}['_fixPosition'](_0x47c0a5,_0xc43067){return this['editor']['model']['createPositionFromPath'](_0xc43067,_0x47c0a5['path'],_0x47c0a5['stickiness']);}['_handleInsertOperation'](_0x216fa5){const _0x549419=this['_idsRoots']['get'](_0x216fa5['position']['root']['rootName']),_0x1d35b1=this['_fixPosition'](_0x216fa5['position'],_0x549419),_0x3bf9af=null===_0x216fa5['_authorId']?null:_0x216fa5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x281de8=_0x1d35b1['parent'],_0x35d24d=this['_revisionId'],_0x218919=[];for(const _0x4d315f of _0x216fa5['nodes'])if(_0x4d315f['is']('element'))_0x218919['push'](this['_makeIdsRoot'](_0x4d315f));else{for(let _0xb21966=0x0;_0xb21966<_0x4d315f['offsetSize'];_0xb21966++)_0x218919['push'](new _0x41a41f('$text',{'vid':this['_revisionId']++}));}const _0x189afa=this['_revisionId'];for(let _0x264673=_0x35d24d;_0x264673<_0x189afa;_0x264673++)this['_touched']['set'](_0x264673,{'userId':_0x3bf9af});_0x281de8['_insertChild'](_0x1d35b1['offset'],_0x218919);}['_handleMoveOperation'](_0x7d4453){(_0x7d4453=this['_cloneOperation'](_0x7d4453,this['_idsRoots']))['_execute']();const _0x3eab7a=null===_0x7d4453['_authorId']?null:_0x7d4453['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2481be=_0x7d4453['getMovedRangeStart'](),_0x20df5a=_0x2481be['parent'],_0x5e61df=_0x2481be['offset'];!function _0x96bd70(_0x5a9a74,_0x42f52f,_0x3fbbb7,_0x3cdd7c){for(let _0x36f854=_0x3fbbb7;_0x36f854<_0x3cdd7c;_0x36f854++){const _0x24ee32=_0x42f52f['getChild'](_0x36f854);_0x24ee32['is']('element','$text')?_0x5a9a74['set'](_0x24ee32['getAttribute']('vid'),{'userId':_0x3eab7a}):(_0x5a9a74['set'](_0x24ee32['getAttribute']('vid_start'),{'userId':_0x3eab7a}),_0x96bd70(_0x5a9a74,_0x24ee32,0x0,_0x24ee32['childCount']),_0x5a9a74['set'](_0x24ee32['getAttribute']('vid_end'),{'userId':_0x3eab7a}));}}(this['_touched'],_0x20df5a,_0x5e61df,_0x5e61df+_0x7d4453['howMany']);}['_handleMergeOperation'](_0x165d9e){const _0xa03067=null===(_0x165d9e=this['_cloneOperation'](_0x165d9e,this['_idsRoots']))['_authorId']?null:_0x165d9e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8d2b0d=_0x165d9e['targetPosition']['parent'],_0x304c02=_0x165d9e['sourcePosition']['parent'],_0x5d4626=_0x8d2b0d['getAttribute']('vid_end'),_0x41d4bf=_0x304c02['getAttribute']('vid_start');_0x8d2b0d['_setAttribute']('vid_end',_0x304c02['getAttribute']('vid_end')),_0x304c02['_setAttribute']('vid_end',_0x5d4626),this['_touched']['set'](_0x41d4bf,{'userId':_0xa03067}),this['_touched']['set'](_0x5d4626,{'userId':_0xa03067}),_0x165d9e['_execute']();}['_handleSplitOperation'](_0xd50183){const _0x302adb=null===(_0xd50183=this['_cloneOperation'](_0xd50183,this['_idsRoots']))['_authorId']?null:_0xd50183['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12fc75=_0xd50183['graveyardPosition'],_0x3694a7=_0xd50183['splitPosition']['parent'];_0xd50183['_execute']();const _0x39e7c0=_0x3694a7['getAttribute']('vid_end'),_0x17894d=_0xd50183['insertionPosition']['nodeAfter'];if(_0x12fc75){const _0xa35e5f=_0x17894d['getAttribute']('vid_end'),_0xf32404=_0x3694a7['getAttribute']('vid_end');_0x3694a7['_setAttribute']('vid_end',_0xa35e5f),_0x17894d['_setAttribute']('vid_end',_0xf32404),this['_touched']['set'](_0x3694a7['getAttribute']('vid_end'),{'userId':_0x302adb}),this['_touched']['set'](_0x17894d['getAttribute']('vid_start'),{'userId':_0x302adb});}else{const _0x2d6857=this['_revisionId']++,_0x329a9d=this['_revisionId']++;_0x3694a7['_setAttribute']('vid_end',_0x2d6857),_0x17894d['_setAttribute']('vid_start',_0x329a9d),_0x17894d['_setAttribute']('vid_end',_0x39e7c0),this['_touched']['set'](_0x2d6857,{'userId':_0x302adb}),this['_touched']['set'](_0x329a9d,{'userId':_0x302adb});}}['_handleMarkerOperation'](_0x4a8abd){if(!_0x4a8abd['affectsData'])return;const _0x4a004a=(_0x4a8abd=this['_cloneOperation'](_0x4a8abd,this['_diffRoots']))['oldRange']?_0x4a8abd['oldRange']['root']:null,_0x2f39ba=_0x4a8abd['newRange']?_0x4a8abd['newRange']['root']:null;_0x4a004a&&this['_markers']['delete'](_0x4a8abd['name']),_0x2f39ba&&this['_markers']['set'](_0x4a8abd['name'],_0x4a8abd['newRange']['clone']());const _0x15359b=null===_0x4a8abd['_authorId']?null:_0x4a8abd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56a328=_0x4a8abd['name'];if(!this['_touchedMarkers']['has'](_0x56a328))return void this['_touchedMarkers']['set'](_0x56a328,{'range':_0x4a8abd['oldRange'],'userId':_0x15359b});const _0x301bf7=this['_touchedMarkers']['get'](_0x56a328),_0x51bed2=_0x301bf7['range'],_0x109245=_0x4a8abd['newRange'];null==_0x51bed2&&null==_0x109245||_0x51bed2&&_0x109245&&_0x51bed2['isEqual'](_0x109245)?this['_touchedMarkers']['delete'](_0x4a8abd['name']):_0x301bf7['userId']=_0x15359b;}['_handleRootOperation'](_0xf4d902,_0x133851){this['_diffRoots']['has'](_0xf4d902['rootName'])?this['_diffRoots']['get'](_0xf4d902['rootName'])['_isAttached']=_0xf4d902['isAdd']:(this['_diffRoots']['set'](_0xf4d902['rootName'],N(_0xf4d902['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xf4d902['rootName'],{}),_0x133851&&this['_idsRoots']['set'](_0xf4d902['rootName'],N(_0xf4d902['rootName'],!0x0)));const _0x5df727=null===_0xf4d902['_authorId']?null:_0xf4d902['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e6df4=this['_touchedRoots']['get'](_0xf4d902['rootName']);_0x4e6df4&&_0x4e6df4['userId']===_0x5df727?this['_touchedRoots']['delete'](_0xf4d902['rootName']):this['_touchedRoots']['set'](_0xf4d902['rootName'],{'userId':_0x5df727,'isAttached':_0xf4d902['isAdd']});}['_handleRootAttributeOperation'](_0x1cbb1c){const _0x5d9e65=this['_diffRootsAttributes']['get'](_0x1cbb1c['root']['rootName']);null===_0x1cbb1c['newValue']?delete _0x5d9e65[_0x1cbb1c['key']]:_0x5d9e65[_0x1cbb1c['key']]=_0x1cbb1c['newValue'];}}function x(_0x3b1f6d){const _0x82d190=N(_0x3b1f6d['rootName'],_0x3b1f6d['isAttached']());for(const _0x45b388 of _0x3b1f6d['getChildren']()){const _0x4107ae=_0x45b388['_clone'](!0x0);_0x82d190['_appendChild'](_0x4107ae);}return _0x82d190;}function N(_0x1c724e,_0x440797=!0x0){const _0x27484b=new _0xc50dea();return _0x27484b['rootName']=_0x1c724e,_0x27484b['_isAttached']=_0x440797,_0x27484b['isAttached']=()=>_0x27484b['_isAttached'],_0x27484b;}function P(_0x302952,_0x3d798f,_0x43c32c){const _0x4f7bc6='elementEnd'==_0x302952['type']?_0x43c32c['createPositionAt'](_0x302952['item'],'end'):_0x43c32c['createPositionBefore'](_0x302952['item']);return _0x43c32c['createPositionFromPath'](_0x3d798f,_0x4f7bc6['path'],_0x4f7bc6['stickiness']);}function V(_0x295f40,_0x1f45ef,_0xd62e6){const _0xf4aff8='elementStart'==_0x295f40['type']?_0xd62e6['createPositionAt'](_0x295f40['item'],0x0):_0xd62e6['createPositionAfter'](_0x295f40['item']);return _0xd62e6['createPositionFromPath'](_0x1f45ef,_0xf4aff8['path'],_0xf4aff8['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4d61fa(_0x299af1){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1eb59b,_0x358fd8){super(_0x1eb59b),this['focusTracker']=new _0x50d8e5(),this['keystrokes']=new _0x5e366e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x358fd8),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'](),_0x337037({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x12cca0=_0x113a6d=>_0x113a6d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x12cca0),this['keystrokes']['set']('arrowleft',_0x12cca0),this['keystrokes']['set']('arrowup',_0x12cca0),this['keystrokes']['set']('arrowdown',_0x12cca0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x547053){this['revisionNameInputView']['fieldView']['element']['value']=_0x547053['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x27e42d){const _0x2c1f18=new et(this['locale'],ti),_0x12e92b=_0x2c1f18['fieldView'];_0x12e92b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x362b93=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x27e42d&&(_0x362b93+='\x20('+R(this['locale'],'optional')+')'),(_0x2c1f18['label']=_0x362b93,_0x12e92b['on']('input',()=>{this['revisionNameInputValue']=_0x12e92b['element']['value']['trim']();}),_0x2c1f18);}}class v extends _0x38daca{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x34564e=this['editor'],_0x271725=_0x34564e['plugins']['get']('RevisionTracker');_0x34564e['ui']['componentFactory']['add']('revisionHistory',_0x11d9ef=>{const _0x2079e8=_0xaf28b8(_0x11d9ef),_0x23f5f1=_0x2079e8['panelView']['children'],_0x4407bd=new _0x2fb142(_0x11d9ef),_0x2ab67b=new _0x40817e(_0x11d9ef),_0x4e7bda=new _0xb62761(_0x11d9ef),_0x1dbb84=new _0x40817e(_0x11d9ef),_0x5596d4=new _0xb62761(_0x11d9ef);return _0x2079e8['bind']('isEnabled')['to'](_0x271725,'isReady',_0x271725,'isEnabled',_0x34564e,'isReadOnly',(_0x166d23,_0x4588e9,_0x408f8f)=>_0x166d23&&_0x4588e9&&!_0x408f8f),_0x2079e8['buttonView']['set']({'icon':_0xcc2774,'label':R(_0x11d9ef,'Revision\x20history'),'tooltip':!0x0}),_0x4e7bda['set']({'label':R(_0x11d9ef,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4e7bda['bind']('isEnabled')['to'](_0x271725,'isReady',_0x271725,'isEnabled',_0x34564e,'isReadOnly',(_0x2206e3,_0x4b1e47,_0x2ef3fb)=>_0x2206e3&&_0x4b1e47&&!_0x2ef3fb),_0x4e7bda['on']('execute',()=>this['_showDialog']()),_0x5596d4['set']({'label':R(_0x11d9ef,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5596d4['bind']('isEnabled')['to'](_0x271725,'isReady',_0x34564e,'isReadOnly',(_0x15378d,_0x3ec96f)=>_0x15378d&&!_0x3ec96f),_0x5596d4['on']('execute',()=>{_0x34564e['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2079e8['isOpen']=!0x1,_0x34564e['editing']['view']['focus']();}),_0x2ab67b['children']['add'](_0x4e7bda),_0x1dbb84['children']['add'](_0x5596d4),_0x4407bd['role']='menu',_0x4407bd['items']['addMany']([_0x2ab67b,_0x1dbb84]),_0x23f5f1['add'](_0x4407bd),_0x2079e8;}),_0x34564e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x36d1bd=this['editor'],_0x5d79f8=_0x36d1bd['locale'],_0x153c8a=new _0x26778(_0x5d79f8),_0x557625=new _0x4ec19c(_0x5d79f8);_0x153c8a['buttonView']['set']({'icon':_0xcc2774,'label':R(_0x5d79f8,'Revision\x20history')});const _0x418c22=new _0x559fae(_0x5d79f8,_0x153c8a),_0x35a59b=new _0x1cdd2e(_0x5d79f8);_0x35a59b['set']({'label':R(_0x5d79f8,'Save\x20current\x20revision')}),_0x35a59b['delegate']('execute')['to'](_0x153c8a),_0x35a59b['on']('execute',()=>{this['_showDialog']();}),_0x418c22['children']['add'](_0x35a59b),_0x557625['items']['add'](_0x418c22);const _0x1fb7e7=new _0x559fae(_0x5d79f8,_0x153c8a),_0x47fc73=new _0x1cdd2e(_0x5d79f8);return _0x47fc73['set']({'label':R(_0x5d79f8,'Open\x20revision\x20history')}),_0x47fc73['delegate']('execute')['to'](_0x153c8a),_0x47fc73['on']('execute',()=>{_0x36d1bd['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1fb7e7['children']['add'](_0x47fc73),_0x557625['items']['add'](_0x1fb7e7),_0x153c8a['panelView']['children']['add'](_0x557625),_0x153c8a;}['_showDialog'](){const _0x15399a=this['editor'],_0x54e1bf=_0x15399a['locale'],_0x303af4=_0x15399a['plugins']['get']('Dialog'),_0x84f096=_0x15399a['plugins']['get']('RevisionTracker');function _0x4b4b39(_0x37f019){_0x15399a['config']['get']('revisionHistory.requireRevisionName')&&''===_0x37f019['revisionName']?_0x37f019['revisionNameInputView']['errorText']=R(_0x54e1bf,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x15399a['plugins']['get'](h)['saveRevision']({'name':_0x37f019['revisionName']}),_0x303af4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4b4b39(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x303af4['show']({'id':'revisionSave','title':R(_0x54e1bf,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x15399a['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x303af4['hide']()},{'label':R(_0x15399a['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4035ea){_0x4035ea['bind']('isEnabled')['to'](_0x84f096,'isReady',_0x84f096,'isEnabled',_0x15399a,'isReadOnly',(_0x49d868,_0x424e8b,_0x453892)=>_0x49d868&&_0x424e8b&&!_0x453892);},'onExecute':()=>_0x4b4b39(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x295caf=this['editor'],_0x49d8ce=_0x295caf['locale'];this['_saveRevisionFormView']=new me(_0x49d8ce,_0x295caf['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x299af1{['changeId'];['_model'];constructor(_0x2c2fbc,_0x2cc34){super(_0x2c2fbc),this['_model']=_0x2cc34,this['changeId']=_0x2cc34['id'];const _0xf1be68=this['bindTemplate'],_0x1c1529=R(_0x2c2fbc,_0x2cc34['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2cc34['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2cc34['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xf1be68['to']('type',_0x422dc8=>'ck-revision-change__'+_0x422dc8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1c1529}]},{'text':'\x20'+_0x2cc34['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xcaaf5a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2453f1){super(),this['id']=_0x2453f1['id']||_0x549feb(),this['author']=_0x2453f1['author'],this['type']=_0x2453f1['type'],this['data']=_0x2453f1['data']||{},this['rootName']=_0x2453f1['rootName'],this['set']('createdAt',_0x2453f1['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(_0x153466,_0x2f7f23){this['newRevisionId']=_0x153466,this['oldRevisionId']=_0x2f7f23,this['changes']=new _0x305a29();}['_setChanges'](_0xcaf3e6){for(const _0x154f71 of _0xcaf3e6)this['changes']['add'](_0x154f71);}}class l extends _0x38daca{['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[_0x19dd7a,_0x4b341c,S,$];}constructor(_0x272cda){super(_0x272cda),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',(_0x2105c8,_0x1a0bb8,_0x321a4e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x11b625=>{for(const _0x377206 of this['editor']['editing']['view']['document']['roots'])_0x321a4e?_0x11b625['removeClass']('ck-editor__editable__overlay',_0x377206):_0x11b625['addClass']('ck-editor__editable__overlay',_0x377206);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1eb02f=>null!==_0x1eb02f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x18eace,_0x3d85e5,_0x4b7adc)=>_0x18eace&&_0x4b7adc?_0x3d85e5['changes']['getIndex'](_0x4b7adc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x21c574,_0x15da29)=>_0x21c574?_0x15da29['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4b341c);}['init'](){const _0x2dcca9=this['editor'],_0x43300f=new rt(_0x2dcca9,{'direction':'backward'}),_0xab416d=new rt(_0x2dcca9,{'direction':'forward'});(_0x2dcca9['commands']['add']('showPreviousChange',_0x43300f),_0x2dcca9['commands']['add']('showNextChange',_0xab416d),_0x2dcca9['commands']['add']('restoreRevision',new nt(_0x2dcca9)),this['on']('change:numberOfChanges',()=>{_0x43300f['refresh'](),_0xab416d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2dcca9['enableReadOnlyMode']('revision-viewer'),_0x2dcca9['plugins']['has']('WidgetToolbarRepository'))&&_0x2dcca9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x371f5f){return await this['_utils']['loadRevisionData'](_0x371f5f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x371f5f);}async['getRevisionRootsAttributes'](_0x456918){return await this['_utils']['loadRevisionData'](_0x456918,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x456918);}async['compare'](_0x4903d2,_0x1be4f8,_0x1ab2c2=!0x1){if(!this['isEnabled'])return;const _0x5a9e3a=this['diff'],_0x5cefe0=this['repository'],_0x528613='string'==typeof _0x4903d2?_0x5cefe0['getRevision'](_0x4903d2):_0x4903d2,_0x3b5d26='string'==typeof _0x1be4f8?_0x5cefe0['getRevision'](_0x1be4f8):_0x1be4f8,_0x54744d=_0x528613['id'],_0x470083=_0x3b5d26?_0x3b5d26['id']:null;if(!_0x1ab2c2&&this['diff']&&this['diff']['newRevisionId']===_0x54744d&&this['diff']['oldRevisionId']===_0x470083)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x54744d,_0x470083);const _0x8eab07=this['_getRevisionsRange'](_0x528613,_0x3b5d26,!0x0)['map'](_0x33ff07=>this['_utils']['loadRevisionData'](_0x33ff07,this['adapter']));return _0x8eab07['push'](new Promise(_0xbbc209=>{setTimeout(_0xbbc209,0x14);})),Promise['all'](_0x8eab07)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xf42459=this['_getDiff'](_0x54744d,_0x470083);for(const _0x7e36ee of _0xf42459['changes'])this['_changeIdToChange']['set'](_0x7e36ee['id'],_0x7e36ee);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1b7a34=>{for(const _0x5ace21 of this['editor']['model']['document']['getRootNames']())_0x1b7a34['detachRoot'](_0x5ace21);for(const _0xd9b63b of Object['keys'](_0xf42459['model'])){const _0x5d295b=_0x1b7a34['addRoot'](_0xd9b63b);for(const _0x5a45f6 of Object['keys'](_0xf42459['attributes'][_0xd9b63b]))_0x1b7a34['setAttribute'](_0x5a45f6,_0xf42459['attributes'][_0xd9b63b][_0x5a45f6],_0x5d295b);_0x1b7a34['insert'](_0xf42459['model'][_0xd9b63b],_0x5d295b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xf42459['changes'])),this['isReady']=!0x0;})['catch'](_0x1eb59e=>{console['error'](_0x1eb59e),this['_cleanUp'](),_0x5a9e3a&&(this['diff']=_0x5a9e3a),this['isReady']=!0x0;});}['addRevisionData'](_0x245f20,_0x379bc9){const _0x69ce03=this['repository']['createRevision'](_0x245f20);return _0x69ce03['on']('_update',(_0x931152,_0x5028dc,_0x335561)=>_0x379bc9(_0x5028dc,_0x335561,_0x69ce03)),this['repository']['addRevision'](_0x69ce03),_0x69ce03;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x411035=>{for(const _0x298ade of this['editor']['model']['document']['getRootNames']())_0x411035['detachRoot'](_0x298ade);});}['_sortAndFilterDiffChanges'](_0x2b178d){const _0x514169=[],_0x36814c=new Map();for(const _0x488880 of this['editor']['model']['document']['getRootNames']()){const _0x1d12db=this['editor']['editing']['view']['getDomRoot'](_0x488880);if(!_0x1d12db)continue;const _0x332bbf=_0x1d12db['getClientRects']()['item'](0x0);_0x332bbf&&(_0x514169['push'](_0x488880),_0x36814c['set'](_0x488880,_0x332bbf));}return _0x514169['sort']((_0x5e44d1,_0x743851)=>{const _0x26f582=_0x36814c['get'](_0x5e44d1),_0x3feef6=_0x36814c['get'](_0x743851);return _0x26f582['y']-_0x3feef6['y']||_0x26f582['x']-_0x3feef6['x'];}),(_0x2b178d=_0x2b178d['filter'](_0x190fd4=>_0x514169['includes'](_0x190fd4['rootName'])))['sort']((_0x51d127,_0x264c7e)=>_0x514169['indexOf'](_0x51d127['rootName'])-_0x514169['indexOf'](_0x264c7e['rootName'])),_0x2b178d;}['_makeTape'](_0x2c5523){const _0x28ad60=Array['from'](_0x2c5523['markers'])['filter'](([_0x281e87,_0x526013])=>_0x281e87['startsWith']('revision:')&&!_0x526013['isCollapsed']),_0x2cb46e=Array['from'](this['editor']['model']['createRangeIn'](_0x2c5523)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x28ad60['length'])for(const _0x46ebb7 of _0x2cb46e){const [_0x24e68d,_0x323200]=_0x28ad60[0x0],[,_0x2799a8,_0x3d8748]=_0x24e68d['split'](':');if(_0x323200['end']['isEqual'](_0x46ebb7['nextPosition'])&&_0x28ad60['shift'](),(_0x46ebb7['previousPosition']['isEqual'](_0x323200['start'])||_0x46ebb7['previousPosition']['isAfter'](_0x323200['start']))&&('insertion'==_0x2799a8?_0x46ebb7['isAdded']={'userId':_0x3d8748}:'deletion'==_0x2799a8&&(_0x46ebb7['isRemoved']={'userId':_0x3d8748})),0x0==_0x28ad60['length'])break;}return _0x2cb46e;}['_refreshStartEndIndex'](_0x29a816){const _0x5c258c=new Map();for(let _0xa05420=0x0;_0xa05420<_0x29a816['length'];_0xa05420++)'text'===_0x29a816[_0xa05420]['type']?(_0x29a816[_0xa05420]['item']['startIndex']=_0xa05420,_0x29a816[_0xa05420]['item']['endIndex']=_0xa05420):('elementStart'===_0x29a816[_0xa05420]['type']?_0x29a816[_0xa05420]['item']['startIndex']=_0xa05420:'elementEnd'===_0x29a816[_0xa05420]['type']&&(_0x29a816[_0xa05420]['item']['endIndex']=_0xa05420),_0x5c258c['set'](_0x29a816[_0xa05420]['id'],_0xa05420));for(const _0x1699ae of _0x5c258c['values']())'elementStart'===_0x29a816[_0x1699ae]['type']?_0x29a816[_0x1699ae]['item']['endIndex']=_0x5c258c['get'](_0x29a816[_0x1699ae]['pairId']):'elementEnd'===_0x29a816[_0x1699ae]['type']&&(_0x29a816[_0x1699ae]['item']['startIndex']=_0x5c258c['get'](_0x29a816[_0x1699ae]['pairId']));}['_processTape'](_0x2f4935){for(let _0xa7d7b4=0x0;_0xa7d7b4<_0x2f4935['length'];_0xa7d7b4++){if('elementStart'===_0x2f4935[_0xa7d7b4]['type'])_0x2f4935[_0xa7d7b4]['item']['startIndex']=_0xa7d7b4;else{if('elementEnd'===_0x2f4935[_0xa7d7b4]['type']){_0x2f4935[_0xa7d7b4]['item']['endIndex']=_0xa7d7b4;const _0x27716d=_0x2f4935[_0xa7d7b4]['item']['startIndex'];_0x2f4935[_0x27716d]['pairId']=_0x2f4935[_0xa7d7b4]['id'],_0x2f4935[_0xa7d7b4]['pairId']=_0x2f4935[_0x27716d]['id'];}else _0x2f4935[_0xa7d7b4]['item']['startIndex']=_0xa7d7b4,_0x2f4935[_0xa7d7b4]['item']['endIndex']=_0xa7d7b4,_0x2f4935[_0xa7d7b4]['pairId']=null;}_0x2f4935[_0xa7d7b4]['markersStart']||(_0x2f4935[_0xa7d7b4]['markersStart']=[],_0x2f4935[_0xa7d7b4]['markersEnd']=[]);}}['_markInsertions'](_0x4cd426,_0x86e3ce){const _0x283b4a=_0x4cd426['filter'](_0x3143d1=>!_0x3143d1['isAdded']);for(let _0x26d933=0x0;_0x26d933<_0x86e3ce['length'];_0x26d933++)_0x86e3ce[_0x26d933]['isAdded']&&(_0x283b4a[_0x26d933]['isAdded']=_0x86e3ce[_0x26d933]['isAdded']);}['_getDiff'](_0x2073ac,_0x39385b=null){const _0x1d6732=this['repository']['getRevision'](_0x2073ac),_0x3554e7=_0x39385b?this['repository']['getRevision'](_0x39385b):null,_0x46cc05=this['_getRevisionsRange'](_0x1d6732,_0x3554e7),_0x3142c3=_0x46cc05[_0x46cc05['length']-0x1],_0x2186f7=new Map(),_0x58a57b={'model':{},'attributes':{},'changes':[]},_0x4082af=new Set(),_0x56bfbe=new Map();for(let _0x5e49bd=_0x46cc05['length']-0x1;_0x5e49bd>=0x0;_0x5e49bd--){const _0x2877c3=_0x46cc05[_0x5e49bd];for(const _0x2bc2bd of Object['keys'](_0x2877c3['diffData']))if(_0x2877c3['diffData'][_0x2bc2bd]['attachChange']){const _0x239be1=_0x2877c3['diffData'][_0x2bc2bd]['attachChange'];_0x239be1['isAttached']?(_0x4082af['add'](_0x2bc2bd),_0x56bfbe['has'](_0x2bc2bd)&&_0x56bfbe['get'](_0x2bc2bd)['userId']==_0x239be1['userId']?_0x56bfbe['delete'](_0x2bc2bd):_0x56bfbe['set'](_0x2bc2bd,_0x239be1)):_0x56bfbe['has'](_0x2bc2bd)?(_0x4082af['delete'](_0x2bc2bd),_0x56bfbe['delete'](_0x2bc2bd)):(_0x4082af['add'](_0x2bc2bd),_0x56bfbe['set'](_0x2bc2bd,_0x239be1));}else _0x4082af['add'](_0x2bc2bd);}for(const _0x2a41d8 of _0x4082af){const _0x6f51df=_0x56bfbe['has'](_0x2a41d8)&&!_0x56bfbe['get'](_0x2a41d8)['isAttached'];let _0x4f0557=_0x6f51df?_0x46cc05['length']-0x1:0x0;const _0x8429b5=_0x6f51df?-0x1:0x1;for(;_0x46cc05[_0x4f0557];){const _0xf3da25=_0x46cc05[_0x4f0557];if(_0xf3da25['diffData'][_0x2a41d8]){const _0x35f430=_0x6f51df?_0xf3da25['diffData'][_0x2a41d8]['attributesBefore']:_0xf3da25['diffData'][_0x2a41d8]['attributesAfter'];_0x58a57b['attributes'][_0x2a41d8]=_0x35f430?_0x8fd207(_0x35f430):{};break;}_0x4f0557+=_0x8429b5;}}for(const _0x3a201b of _0x46cc05){_0x3a201b['model']={};for(const _0x21c366 of _0x3a201b['authors'])_0x2186f7['set'](_0x21c366['id'],_0x21c366);for(const _0x2d1844 of _0x4082af){const _0x2ae764=_0x3a201b['diffData'][_0x2d1844]?_0x3a201b['diffData'][_0x2d1844]['insertions']:'[]',_0x459d41=_0x3a201b['diffData'][_0x2d1844]?_0x3a201b['diffData'][_0x2d1844]['deletions']:'[]';_0x3a201b['model'][_0x2d1844]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2ae764),'deletions':this['_utils']['_makeModelFromViewString'](_0x459d41)};}}for(const _0x54d112 of _0x4082af){let _0x45f083=null,_0x5bd3f3=0x0;const _0x322df2=new Map(Array['from'](_0x1d6732['model'][_0x54d112]['insertions']['markers'])['filter'](([_0xa69481])=>!_0xa69481['startsWith']('revision:')));let _0x206c00=0x0;for(const _0x3677d0 of _0x46cc05){const _0x6ba826=this['_makeTape'](_0x3677d0['model'][_0x54d112]['insertions']);_0x3677d0==_0x1d6732?(_0x45f083=_0x6ba826,_0x5bd3f3=_0x45f083['length'],_0x45f083['forEach'](_0xc6209e=>{_0xc6209e['id']=_0x206c00++;}),this['_processTape'](_0x45f083)):this['_markInsertions'](_0x45f083,_0x6ba826);const _0x131e53=_0x45f083['filter'](_0x1f054d=>!_0x1f054d['isAdded'])['map'](_0x755786=>_0x755786['id']);let _0x172eb6=0x0;const _0xae7da0=this['_makeTape'](_0x3677d0['model'][_0x54d112]['deletions']);_0xae7da0['forEach'](_0x4439c6=>{_0x4439c6['isRemoved']?_0x4439c6['id']=_0x5bd3f3++:_0x4439c6['id']=_0x131e53[_0x172eb6++];}),this['_processTape'](_0xae7da0),this['_setDistance'](_0x45f083,'isAdded'),this['_setDistance'](_0xae7da0,'isRemoved'),_0x3677d0==_0x1d6732&&this['_markMarkers'](_0x45f083,_0x322df2),_0x45f083=this['_joinTapes'](_0x45f083,_0xae7da0),this['_refreshStartEndIndex'](_0x45f083),this['_setDistance'](_0x45f083,'isRemoved');}_0x45f083=_0x45f083['filter'](_0x56f510=>!(_0x56f510['isAdded']&&_0x56f510['isRemoved']));const _0x47f1ef=new Map(_0x3142c3['model'][_0x54d112]['deletions']['markers']),_0x2db303=new Set(_0x322df2['keys']());for(const _0x4c4cd5 of _0x47f1ef['keys']())_0x2db303['delete'](_0x4c4cd5);this['_markSuggestions'](_0x45f083,_0x2db303),this['_fixObsoleteTags'](_0x45f083),_0x45f083=this['_removeMissingPairs'](_0x45f083),_0x45f083=this['_markMismatchedRemovedTags'](_0x45f083),_0x45f083=this['_removeUnsupportedChanges'](_0x45f083);const {root:_0x4182fa,changes:_0x2d9c16}=this['_makeModelFromTape'](_0x45f083,_0x2186f7,_0x54d112);_0x58a57b['model'][_0x54d112]=_0x4182fa;const _0x179a94=_0x56bfbe['get'](_0x54d112);if(_0x179a94){const _0x2976b5=_0x2186f7['get'](_0x179a94['userId']),_0x4aacac=new G({'author':_0x2976b5,'type':_0x179a94['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x54d112});_0x2d9c16['unshift'](_0x4aacac),_0x58a57b['attributes'][_0x54d112]['revisionHistoryAttachChange']=_0x4aacac['id'];}_0x58a57b['changes']=_0x58a57b['changes']['concat'](_0x2d9c16);}return _0x58a57b;}['_markMarkers'](_0x10231e,_0x25fb78){for(let _0x2b19ec=0x0;_0x2b19ec<_0x10231e['length'];_0x2b19ec++)for(const [_0x5e8826,_0x18089c]of _0x25fb78)!_0x18089c['isCollapsed']&&_0x18089c['start']['isEqual'](_0x10231e[_0x2b19ec]['previousPosition'])&&_0x10231e[_0x2b19ec]['markersStart']['push'](_0x5e8826),_0x18089c['end']['isEqual'](_0x10231e[_0x2b19ec]['nextPosition'])&&_0x10231e[_0x2b19ec]['markersEnd']['push'](_0x5e8826);}['_joinTapes'](_0x12ad31,_0x3f3632){let _0x1c0947=[],_0x53ae77=0x0,_0x5b5ad4=0x0;for(;_0x53ae77<_0x12ad31['length']||_0x5b5ad4<_0x3f3632['length'];){const _0x293c21=_0x12ad31[_0x53ae77]||{},_0x183148=_0x3f3632[_0x5b5ad4]||{};if(_0x293c21['id']==_0x183148['id'])_0x53ae77++,_0x5b5ad4++,_0x1c0947['push'](_0x293c21);else{if(_0x183148['isRemoved']&&_0x293c21['isAdded']){const {commonTape:_0x411e2f,iEnd:_0xe714a8,jEnd:_0x1feb9b}=this['_threeWayMerge'](_0x12ad31,_0x53ae77,_0x3f3632,_0x5b5ad4);_0x1c0947=_0x1c0947['concat'](_0x411e2f),_0x53ae77=_0xe714a8,_0x5b5ad4=_0x1feb9b;}else _0x183148['isRemoved']?(_0x5b5ad4++,_0x1c0947['push'](_0x183148)):(_0x53ae77++,_0x1c0947['push'](_0x293c21));}}return _0x1c0947;}['_markSuggestions'](_0x19c6f1,_0x4fe1b6){const _0x1e8d52=[];for(let _0x4d2ea0=0x0;_0x4d2ea0<_0x19c6f1['length'];_0x4d2ea0++){for(let _0x2ba9a6=0x0;_0x2ba9a6<_0x19c6f1[_0x4d2ea0]['markersStart']['length'];_0x2ba9a6++){const _0x3e6558=_0x19c6f1[_0x4d2ea0]['markersStart'][_0x2ba9a6];if(!_0x4fe1b6['has'](_0x3e6558))continue;const {group:_0xafbd47,type:_0x36f88d,authorId:_0x1a377e}=_0x26ec3e(_0x3e6558);'revision-suggestion'!=_0xafbd47||'insertion'!=_0x36f88d&&'deletion'!=_0x36f88d||(_0x1e8d52['unshift']({'type':_0x36f88d,'name':_0x3e6558,'userId':_0x1a377e}),_0x19c6f1[_0x4d2ea0]['markersStart']['splice'](_0x2ba9a6,0x1),_0x2ba9a6--);}_0x29a842(_0x19c6f1[_0x4d2ea0]);for(let _0x137d6c=0x0;_0x137d6c<_0x19c6f1[_0x4d2ea0]['markersEnd']['length'];_0x137d6c++){const _0x5d8e31=_0x19c6f1[_0x4d2ea0]['markersEnd'][_0x137d6c];if(!_0x4fe1b6['has'](_0x5d8e31))continue;const {group:_0x2f2825,type:_0x53fb3e}=_0x26ec3e(_0x5d8e31);if('revision-suggestion'!=_0x2f2825||'insertion'!=_0x53fb3e&&'deletion'!=_0x53fb3e)continue;_0x19c6f1[_0x4d2ea0]['markersEnd']['splice'](_0x137d6c,0x1),_0x137d6c--;const _0x48a090=_0x1e8d52['findIndex'](_0x34a34d=>_0x34a34d['name']==_0x5d8e31);_0x48a090>-0x1&&_0x1e8d52['splice'](_0x48a090,0x1);}}function _0x26ec3e(_0x55acc7){const _0x10c21a=_0x55acc7['split'](':');return{'group':_0x10c21a[0x0],'type':_0x10c21a[0x1],'subType':_0x10c21a['length']>=0x5?_0x10c21a[0x2]:null,'id':_0x10c21a['length']<0x5?_0x10c21a[0x2]:_0x10c21a[0x3],'authorId':_0x10c21a['length']<0x5?_0x10c21a[0x3]:_0x10c21a[0x4],'markerCount':0x6==_0x10c21a['length']?_0x10c21a[0x5]:null};}function _0x29a842(_0x45cccb){for(let _0x1800fd=0x0;_0x1800fd<_0x1e8d52['length'];_0x1800fd++){if(_0x45cccb['isAdded']&&'insertion'==_0x1e8d52[_0x1800fd]['type']&&_0x45cccb['isAdded']['userId']==_0x1e8d52[_0x1800fd]['userId'])return _0x45cccb['isAddSuggestion']=_0x1e8d52[_0x1800fd],void delete _0x45cccb['isAdded'];if(!_0x45cccb['isAdded']&&!_0x45cccb['isRemoved']&&'deletion'==_0x1e8d52[_0x1800fd]['type'])return void(_0x45cccb['isRemoveSuggestion']=_0x1e8d52[_0x1800fd]);}}}['_setDistance'](_0x38f6ca,_0x1e47ae){let _0x52ec64=0x0,_0x2e34d2=!0x1;const _0x464132=new Map();for(const _0x54568e of _0x38f6ca)_0x54568e[_0x1e47ae]?_0x2e34d2&&(_0x52ec64++,_0x2e34d2=!0x1):(_0x52ec64++,_0x2e34d2=!0x0),_0x464132['set'](_0x54568e['id'],_0x52ec64);for(let _0x1b7328=0x0;_0x1b7328<_0x38f6ca['length'];_0x1b7328++){if('isRemoved'==_0x1e47ae&&_0x38f6ca[_0x1b7328]['isAdded']||'isAdded'==_0x1e47ae&&_0x38f6ca[_0x1b7328]['isRemoved'])continue;if('text'==_0x38f6ca[_0x1b7328]['type']){_0x38f6ca[_0x1b7328]['distance']=0x0;continue;}const _0x653de8=_0x464132['get'](_0x38f6ca[_0x1b7328]['pairId']),_0x12095e=_0x464132['get'](_0x38f6ca[_0x1b7328]['id']);_0x38f6ca[_0x1b7328]['distance']=_0x653de8-_0x12095e;}}['_getRevisionsRange'](_0x4a0ce0,_0x30b26f,_0xbff4f3=!0x1){const _0x506405=[];let _0x524d30=this['repository']['getIndex'](_0x4a0ce0),_0xb42dd0=this['repository']['getIndex'](_0x30b26f);for(-0x1==_0xb42dd0&&(_0xb42dd0=this['repository']['_revisions']['length'],_0xbff4f3=!0x1);_0x524d30<_0xb42dd0;)_0x506405['push'](this['repository']['getRevision'](_0x524d30)),_0x524d30++;return _0xbff4f3&&_0x506405['push'](this['repository']['getRevision'](_0x524d30)),_0x506405;}['_threeWayMerge'](_0xfb6243,_0x2544b0,_0x1a8d2b,_0x237356){const _0x38d672=this['editor']['model']['schema'];let _0xd4dd30=_0x2544b0;for(;_0xfb6243[_0xd4dd30]&&_0xfb6243[_0xd4dd30]['isAdded'];)_0xd4dd30++;let _0x167d25=_0x237356;for(;_0x1a8d2b[_0x167d25]&&_0x1a8d2b[_0x167d25]['isRemoved'];)_0x167d25++;_0x59ceea(_0xfb6243,_0x2544b0,_0xd4dd30),_0x59ceea(_0x1a8d2b,_0x237356,_0x167d25);const _0x18d8f2=_0x1a8d2b['slice'](_0x237356,_0x167d25)['concat'](_0xfb6243['slice'](_0x2544b0,_0xd4dd30));return _0x18d8f2['sort']((_0x52f53b,_0x4e63d6)=>_0x52f53b['side']!=_0x4e63d6['side']?_0x52f53b['side']-_0x4e63d6['side']:_0x52f53b['level']!=_0x4e63d6['level']?_0x52f53b['level']-_0x4e63d6['level']:_0x52f53b['distance']!=_0x4e63d6['distance']?_0x4e63d6['distance']-_0x52f53b['distance']:!!_0x52f53b['isAdded']!=!!_0x4e63d6['isAdded']?-0x1==_0x52f53b['side']||0x0==_0x52f53b['side']?_0x52f53b['isAdded']?-0x1:0x1:_0x52f53b['isAdded']?0x1:-0x1:_0x52f53b['index']-_0x4e63d6['index']),{'commonTape':_0x18d8f2,'iEnd':_0xd4dd30,'jEnd':_0x167d25};function _0x59ceea(_0x4df5b9,_0x36c632,_0xba7ff){let _0x17b50d=-0x1,_0x35bd1e=Number['POSITIVE_INFINITY'],_0x824bf8=!0x0;for(let _0x4035b0=_0x36c632;_0x4035b0<_0xba7ff;_0x4035b0++)if(_0x38d672['isInline'](_0x4df5b9[_0x4035b0]['item'])||(_0x824bf8=!0x1),_0x4df5b9[_0x4035b0]['item']['startIndex']<_0x36c632&&(_0x17b50d=_0x4035b0),_0x4df5b9[_0x4035b0]['item']['endIndex']>=_0xba7ff){_0x35bd1e=_0x4035b0;break;}_0x824bf8&&(_0x17b50d=_0xba7ff-0x1);for(let _0x4896f0=_0x36c632;_0x4896f0<_0xba7ff;_0x4896f0++)_0x4df5b9[_0x4896f0]['side']=_0x4896f0<=_0x17b50d?-0x1:_0x4896f0<_0x35bd1e?0x0:0x1,_0x4df5b9[_0x4896f0]['index']=_0x4896f0;let _0x25d313=0x0;for(let _0x57bf44=_0x36c632;_0x57bf44<=_0x17b50d;_0x57bf44++)0x0==_0x4df5b9[_0x57bf44]['distance']?_0x4df5b9[_0x57bf44]['level']=_0x25d313:(_0x25d313++,_0x4df5b9[_0x57bf44]['level']=_0x25d313,_0x25d313++);for(let _0x19be79=_0x36c632;_0x19be79<_0xba7ff;_0x19be79++)0x0==_0x4df5b9[_0x19be79]['side']&&(_0x4df5b9[_0x19be79]['level']=_0x25d313);_0x25d313=0x0;for(let _0x4f1c2f=_0xba7ff-0x1;_0x4f1c2f>=_0x35bd1e;_0x4f1c2f--)0x0==_0x4df5b9[_0x4f1c2f]['distance']?_0x4df5b9[_0x4f1c2f]['level']=_0x25d313:(_0x25d313--,_0x4df5b9[_0x4f1c2f]['level']=_0x25d313,_0x25d313--);}}['_fixObsoleteTags'](_0x5c1dc8){const _0x395f1b=new Map(),_0x2837bb=this['editor']['model']['schema'];for(let _0x4e75c8=0x1;_0x4e75c8<_0x5c1dc8['length'];_0x4e75c8++){let _0x48fe27,_0x2539f6,_0x4564c8;const _0x36d154=_0x5c1dc8[_0x4e75c8],_0x630bc9=_0x5c1dc8[_0x4e75c8-0x1];if('text'==_0x36d154['type'])continue;if(_0x36d154['type']!=_0x630bc9['type'])continue;if(!_0x2837bb['isBlock'](_0x630bc9['item'])||_0x2837bb['isLimit'](_0x630bc9['item']))continue;if(!_0x2837bb['isBlock'](_0x36d154['item'])||_0x2837bb['isLimit'](_0x36d154['item']))continue;if((_0x5c1dc8[_0x4e75c8]['isAdded']||_0x5c1dc8[_0x4e75c8]['isAddSuggestion'])&&_0x5c1dc8[_0x4e75c8-0x1]['isRemoved'])_0x48fe27=_0x5c1dc8[_0x4e75c8],_0x2539f6=_0x5c1dc8[_0x4e75c8-0x1],_0x4564c8=_0x4e75c8-0x1;else{if(!_0x5c1dc8[_0x4e75c8]['isRemoved']||!_0x5c1dc8[_0x4e75c8-0x1]['isAdded']&&!_0x5c1dc8[_0x4e75c8-0x1]['isAddSuggestion'])continue;_0x48fe27=_0x5c1dc8[_0x4e75c8-0x1],_0x2539f6=_0x5c1dc8[_0x4e75c8],_0x4564c8=_0x4e75c8;}const _0x2e25e9=_0x48fe27['level']==_0x2539f6['level'],_0x5612ed=Math['abs'](_0x48fe27['level'])<Math['abs'](_0x2539f6['level'])&&0x0==_0x2539f6['distance'];(_0x2e25e9||_0x5612ed)&&(_0x395f1b['set'](_0x2539f6['id'],_0x48fe27['id']),_0x5c1dc8['splice'](_0x4564c8,0x1),_0x4e75c8--,_0x48fe27['isAdded']=!0x1);}for(let _0x3b04dd=0x0;_0x3b04dd<_0x5c1dc8['length'];_0x3b04dd++)_0x395f1b['has'](_0x5c1dc8[_0x3b04dd]['pairId'])&&(_0x5c1dc8[_0x3b04dd]['pairId']=_0x395f1b['get'](_0x5c1dc8[_0x3b04dd]['pairId']));}['_removeMissingPairs'](_0x2c2f7e){const _0x49662f=new Set(_0x2c2f7e['map'](_0x3f794b=>_0x3f794b['id']));for(let _0x47ff69=0x0;_0x47ff69<_0x2c2f7e['length'];_0x47ff69++)_0x49662f['has'](_0x2c2f7e[_0x47ff69]['pairId'])||0x0==_0x2c2f7e[_0x47ff69]['distance']||(_0x2c2f7e[_0x47ff69]['isIncorrect']=!0x0);return _0x2c2f7e['filter'](_0x3f96b3=>!_0x3f96b3['isIncorrect']);}['_markMismatchedRemovedTags'](_0xf7921c){const _0x26c1bc=new Set();for(let _0x46f69a=0x0;_0x46f69a<_0xf7921c['length'];_0x46f69a++){if(_0x26c1bc['has'](_0xf7921c[_0x46f69a]['id'])&&_0xf7921c[_0x46f69a]['isRemoved']&&(_0xf7921c[_0x46f69a]['isIncorrect']=!0x0),_0xf7921c[_0x46f69a]['isIncorrect'])continue;if(0x0==_0xf7921c[_0x46f69a]['distance'])continue;if('elementStart'!=_0xf7921c[_0x46f69a]['type'])continue;if(null==_0xf7921c[_0x46f69a]['pairId'])continue;let _0x2cc6b7=_0x46f69a+0x1,_0x1a19cd=0x0;for(;_0xf7921c[_0x2cc6b7]['id']!=_0xf7921c[_0x46f69a]['pairId'];)'elementStart'==_0xf7921c[_0x2cc6b7]['type']?_0x1a19cd++:'elementEnd'==_0xf7921c[_0x2cc6b7]['type']&&_0x1a19cd--,_0x2cc6b7++;if(0x0!=_0x1a19cd){if(_0xf7921c[_0x46f69a]['isRemoved'])_0xf7921c[_0x46f69a]['isIncorrect']=!0x0;else{for(;_0x2cc6b7!=_0x46f69a;)_0xf7921c[_0x2cc6b7]['isRemoved']&&0x0!=_0xf7921c[_0x2cc6b7]['distance']&&(_0xf7921c[_0x2cc6b7]['isIncorrect']=!0x0,_0x26c1bc['add'](_0xf7921c[_0x2cc6b7]['pairId'])),_0x2cc6b7--;}}}return _0xf7921c['filter'](_0x12c122=>!_0x12c122['isIncorrect']);}['_removeUnsupportedChanges'](_0x46e79f){const _0x87afd5=this['editor']['model']['schema'];for(let _0x1656bf=0x0;_0x1656bf<_0x46e79f['length'];_0x1656bf++){if(!(_0x46e79f[_0x1656bf]['isAdded']||_0x46e79f[_0x1656bf]['isAddSuggestion']||_0x46e79f[_0x1656bf]['isRemoved']||_0x46e79f[_0x1656bf]['isRemoveSuggestion']))continue;if(0x0==_0x46e79f[_0x1656bf]['distance'])continue;const _0x2d38b0=_0x46e79f[_0x1656bf]['item'];_0x87afd5['isBlock'](_0x2d38b0)||_0x87afd5['isLimit'](_0x2d38b0)||(_0x46e79f[_0x1656bf]['isAdded']&&delete _0x46e79f[_0x1656bf]['isAdded'],_0x46e79f[_0x1656bf]['isAddSuggestion']&&delete _0x46e79f[_0x1656bf]['isAddSuggestion'],_0x46e79f[_0x1656bf]['isRemoveSuggestion']&&delete _0x46e79f[_0x1656bf]['isRemoveSuggestion'],_0x46e79f[_0x1656bf]['isRemoved']&&(_0x46e79f[_0x1656bf]['isIncorrect']=!0x0));}return _0x46e79f['filter'](_0x2098ef=>!_0x2098ef['isIncorrect']);}['_makeModelFromTape'](_0x45f64f,_0x2cd887,_0x301fef){const _0x218075=new _0xc50dea(),_0x5cc771=[],_0x330665=new Map(),_0x46f266=this['editor']['model'],_0x15c1cc=_0x46f266['schema'],_0x4f525d=[_0x218075],_0x41e3c6={},_0x19d3b8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x45901a=null;const _0xf83c02=[0x0];for(let _0x32ac1e=0x0;_0x32ac1e<_0x45f64f['length'];_0x32ac1e++)if('elementStart'===_0x45f64f[_0x32ac1e]['type']){_0x45f64f[_0x32ac1e]['previousPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02);const _0x5e4020=new _0x41a41f(_0x45f64f[_0x32ac1e]['item']['name'],_0x45f64f[_0x32ac1e]['item']['getAttributes']());_0x4f525d[0x0]['_appendChild'](_0x5e4020),_0xf83c02['push'](0x0),_0x4f525d['unshift'](_0x5e4020),_0x45f64f[_0x32ac1e]['nextPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02);}else'elementEnd'===_0x45f64f[_0x32ac1e]['type']?(_0x4f525d['shift'](),_0x45f64f[_0x32ac1e]['previousPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02),_0xf83c02['pop'](),_0xf83c02[_0xf83c02['length']-0x1]++,_0x45f64f[_0x32ac1e]['nextPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02)):(_0x45f64f[_0x32ac1e]['previousPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02),_0x45901a?_0x45901a['_data']+=_0x45f64f[_0x32ac1e]['item']['data']:_0x45901a=new _0x3ce3e7(_0x45f64f[_0x32ac1e]['item']['data'],_0x45f64f[_0x32ac1e]['item']['getAttributes']()),_0x45f64f[_0x32ac1e+0x1]&&'text'===_0x45f64f[_0x32ac1e+0x1]['type']&&_0x5be0e5(_0x45901a,_0x45f64f[_0x32ac1e+0x1]['item'])||(_0x4f525d[0x0]['_appendChild'](_0x45901a),_0x45901a=null),_0xf83c02[_0xf83c02['length']-0x1]+=_0x45f64f[_0x32ac1e]['item']['offsetSize'],_0x45f64f[_0x32ac1e]['nextPosition']=_0x46f266['createPositionFromPath'](_0x218075,_0xf83c02));for(let _0x243e11=0x0;_0x243e11<_0x45f64f['length'];_0x243e11++){const _0x5be892=_0x45f64f[_0x243e11]['previousPosition'],_0x43c6dd=_0x45f64f[_0x243e11]['nextPosition'];for(const _0x483d57 of _0x45f64f[_0x243e11]['markersStart'])_0x330665['set'](_0x483d57,{'start':_0x5be892,'end':null});_0x4b8167('isRemoveSuggestion',_0x243e11,_0x5be892,_0x43c6dd),_0x4b8167('isAddSuggestion',_0x243e11,_0x5be892,_0x43c6dd),_0x4b8167('isRemoved',_0x243e11,_0x5be892,_0x43c6dd),_0x4b8167('isAdded',_0x243e11,_0x5be892,_0x43c6dd);for(const _0x245b60 of _0x45f64f[_0x243e11]['markersEnd']){const _0xda8e9f=_0x330665['get'](_0x245b60);_0xda8e9f?_0xda8e9f['end']=_0x43c6dd:_0x330665['set'](_0x245b60,{'start':_0x43c6dd,'end':_0x43c6dd});}}for(const [_0x1687dd,_0x462033]of _0x330665){const _0x5c02ae=this['editor']['model']['createRange'](_0x462033['start'],_0x462033['end']);_0x218075['markers']['set'](_0x1687dd,_0x5c02ae);}return _0x5cc771['sort']((_0xa7321d,_0x54b04e)=>{const _0x173fcc=_0x218075['markers']['get']('revision:'+_0xa7321d['id']),_0x3bc6d8=_0x218075['markers']['get']('revision:'+_0x54b04e['id']);return _0x173fcc['start']['isBefore'](_0x3bc6d8['start'])?-0x1:_0x173fcc['start']['isAfter'](_0x3bc6d8['start'])?0x1:_0x173fcc['end']['isBefore'](_0x3bc6d8['end'])?-0x1:_0x173fcc['end']['isAfter'](_0x3bc6d8['end'])?0x1:'add'===_0xa7321d['type']?-0x1:0x1;}),{'root':_0x218075,'changes':_0x5cc771};function _0x4b8167(_0x5ac274,_0x5e79a1,_0x833552,_0x38e472){const _0x156e80=!!_0x45f64f[_0x5e79a1][_0x5ac274],_0x544ba2=_0x156e80?_0x45f64f[_0x5e79a1][_0x5ac274]['userId']:null,_0x69a4d4=_0x5e79a1===_0x45f64f['length']-0x1,_0xae8aca=_0x19d3b8[_0x5ac274][0x0],_0x49ec66=_0x15c1cc['isObject'](_0x45f64f[_0x5e79a1]['item']);!_0x41e3c6[_0x5ac274]&&_0x156e80?_0x41e3c6[_0x5ac274]={'start':_0x833552,'tapeItem':_0x45f64f[_0x5e79a1],'userId':_0x544ba2,'type':_0x5ac274}:_0x41e3c6[_0x5ac274]&&!_0x156e80?(_0x41e3c6[_0x5ac274]['end']=_0x833552,_0x3f2ad2(_0x41e3c6[_0x5ac274]),_0x41e3c6[_0x5ac274]=null):_0x41e3c6[_0x5ac274]&&_0x156e80&&_0x41e3c6[_0x5ac274]['userId']!==_0x544ba2&&(_0x41e3c6[_0x5ac274]['end']=_0x833552,_0xae8aca&&_0xae8aca['userId']===_0x41e3c6[_0x5ac274]['userId']||_0x3f2ad2(_0x41e3c6[_0x5ac274]),_0x41e3c6[_0x5ac274]={'start':_0x833552,'tapeItem':_0x45f64f[_0x5e79a1],'userId':_0x544ba2,'type':_0x5ac274}),_0x41e3c6[_0x5ac274]&&_0x49ec66&&('elementStart'!==_0x45f64f[_0x5e79a1]['type']||_0xae8aca&&_0xae8aca['userId']===_0x544ba2||_0x19d3b8[_0x5ac274]['unshift']({'userId':_0x544ba2,'object':_0x45f64f[_0x5e79a1]['item'],'change':_0x41e3c6[_0x5ac274]}),'elementEnd'===_0x45f64f[_0x5e79a1]['type']&&_0xae8aca&&_0xae8aca['object']===_0x45f64f[_0x5e79a1]['item']&&(_0x19d3b8[_0x5ac274]['shift'](),_0x41e3c6[_0x5ac274]=_0xae8aca['change'])),_0x41e3c6[_0x5ac274]&&_0x69a4d4&&(_0x41e3c6[_0x5ac274]['end']=_0x38e472,_0x3f2ad2(_0x41e3c6[_0x5ac274]),_0x41e3c6[_0x5ac274]=null);}function _0x3f2ad2({start:_0x5689bd,end:_0x4ab3a7,tapeItem:_0x227568,userId:_0xc64816,type:_0xe3f1d0}){const _0x19d3e7=_0x227568['item'],_0x6ce376=_0x46f266['schema']['isBlock'](_0x19d3e7)&&!_0x46f266['schema']['isLimit'](_0x19d3e7),_0x5a0b99=_0x5689bd['nodeAfter']==_0x4ab3a7['parent']&&_0x4ab3a7['isAtStart'];if(_0x6ce376&&_0x5a0b99)return;const _0x1b4f28=_0x46f266['createRange'](_0x5689bd,_0x4ab3a7),_0x1fa2e7=_0x2cd887['get'](_0xc64816),_0x362c7e=new G({'author':_0x1fa2e7,'type':'isAdded'==_0xe3f1d0||'isAddSuggestion'==_0xe3f1d0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xe3f1d0||'isRemoveSuggestion'==_0xe3f1d0},'createdAt':new Date(),'rootName':_0x301fef});_0x5cc771['push'](_0x362c7e),_0x218075['markers']['set']('revision:'+_0x362c7e['id'],_0x1b4f28);}function _0x5be0e5(_0xd968fa,_0x486a78){const _0x5082f2=_0xd968fa['getAttributes'](),_0x3854d9=_0x486a78['getAttributes']();for(const _0x1c264c of _0x5082f2){if(_0x1c264c[0x1]!==_0x486a78['getAttribute'](_0x1c264c[0x0]))return!0x1;_0x3854d9['next']();}return _0x3854d9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1ed336=>{const _0x4d7f89=_0x1ed336['markerName']['split'](':')[0x1],_0x10c634=this['_getChangeFromId'](_0x4d7f89);if(!_0x10c634)return null;const _0x781120='add'==_0x10c634['type']?'insertion':'deletion',_0x415f84=['ck-suggestion-marker','ck-suggestion-marker-'+_0x781120];return _0x10c634['data']['isSuggestion']&&_0x415f84['push']('ck-suggestion-marker-'+_0x781120+'-new'),this['activeChange']==_0x10c634&&_0x415f84['push']('ck-suggestion-marker--active'),{'classes':_0x415f84,'attributes':{'data-change-id':_0x4d7f89}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5706c5=>{_0x5706c5['on']('element:pre',(_0xed75d9,_0x574a30,_0x8fe0ed)=>{const _0x37700e=_0x574a30['viewItem']['getChild'](0x0);if(!_0x37700e||!_0x37700e['is']('element','code'))return;if(!_0x8fe0ed['consumable']['consume'](_0x37700e,{'attributes':['vid_start','vid_end']}))return;const _0x5aede5=_0x574a30['modelRange']['start']['nodeAfter'];_0x8fe0ed['writer']['setAttribute']('vid_start',_0x37700e['getAttribute']('vid_start'),_0x5aede5),_0x8fe0ed['writer']['setAttribute']('vid_end',_0x37700e['getAttribute']('vid_end'),_0x5aede5);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3b6f1c=>{_0x3b6f1c['on']('element',(_0x35ba9b,_0x24078a,_0x2948a2)=>{if(!_0x2948a2['consumable']['consume'](_0x24078a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x24078a['modelRange']['isCollapsed'])return;const _0x1a5e26=_0x24078a['modelRange']['start']['nodeAfter'];_0x1a5e26['hasAttribute']('vid_start')||_0x1a5e26['hasAttribute']('vid')||(_0x2948a2['writer']['setAttribute']('vid_start',_0x24078a['viewItem']['getAttribute']('vid_start'),_0x1a5e26),_0x2948a2['writer']['setAttribute']('vid_end',_0x24078a['viewItem']['getAttribute']('vid_end'),_0x1a5e26));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x52f4f6=>_0x52f4f6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x405006,[,_0x47fced])=>{['vid_start','vid_end','vid']['includes'](_0x47fced)&&(_0x405006['return']=!0x0,_0x405006['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2ff101=>{_0x2ff101['on']('attribute:vid',(_0x515d5a,_0x454d97,_0x4370a5)=>{if('\x20'!=_0x454d97['item']['data']||_0x454d97['item']['parent']['maxOffset']>0x1)return;if(!_0x4370a5['consumable']['consume'](_0x454d97['item'],_0x515d5a['name']))return;const _0x449cb0=_0x4370a5['writer'],_0x45135b=_0x4370a5['mapper']['toViewRange'](_0x454d97['range']);_0x449cb0['wrap'](_0x45135b,_0x449cb0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x21279a){const _0x2a7acd=_0x21279a['plugins']['get']('RevisionViewer');return(_0x149635,_0x339447,_0x5177c7)=>{const _0x4c16b0=_0x339447['markerName']['split'](':')[0x1],_0x5776b7=_0x2a7acd['_getChangeFromId'](_0x4c16b0);if(!_0x5776b7)return null;const _0x1b232a='add'==_0x5776b7['type']?'split':'merge';if(!_0x5177c7['consumable']['test'](_0x339447['markerRange'],_0x149635['name']))return;const _0x1b10d0=_0x339447['markerRange']['getWalker'](),_0x3de2bd=_0x339447['markerRange']['start'],_0x67fa81=_0x21279a['model']['schema'];let _0x38be01=null,_0x1b98d6=null,_0x1b2593=!0x1,_0x139177=!0x1;for(const _0x55391c of _0x1b10d0){const _0x1b67ed=_0x55391c['item'];_0x1b2593=_0x1b2593||_0x67fa81['isContent'](_0x1b67ed);const _0x35895b=_0x5177c7['mapper']['toViewElement'](_0x1b67ed);if(_0x35895b&&_0x35895b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55391c['type']&&(_0x67fa81['isBlock'](_0x1b67ed)&&!_0x67fa81['isLimit'](_0x1b67ed)&&(_0x1b67ed['nextSibling']||_0x3de2bd['isAtEnd']?_0x38be01&&_0x38be01['parent']==_0x1b67ed||(_0x38be01=_0x1b67ed,_0x90cd9f(_0x55391c['previousPosition']),_0x139177=!0x0):_0x1b98d6=_0x1b98d6||_0x55391c['previousPosition']));}function _0x90cd9f(_0x43477b){const _0x2de592=_0x5177c7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b232a}),_0x412569=_0x5177c7['mapper']['toViewPosition'](_0x43477b);_0x5776b7['data']['isSuggestion']&&_0x5177c7['writer']['addClass']('ck-suggestion-marker-'+_0x1b232a+'-new',_0x2de592),_0x2a7acd['activeChange']==_0x5776b7&&_0x5177c7['writer']['addClass']('ck-suggestion-marker--active',_0x2de592),_0x5177c7['writer']['insert'](_0x412569,_0x2de592),_0x5177c7['mapper']['bindElementToMarker'](_0x2de592,_0x339447['markerName']);}_0x1b2593||_0x139177||!_0x1b98d6||_0x90cd9f(_0x1b98d6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2b2a15,_0x361159,_0x38e13d)=>{const _0x1b94d0=_0x38e13d['mapper']['markerNameToElements'](_0x361159['markerName']);if(_0x1b94d0){for(const _0x3b26ed of _0x1b94d0)(_0x3b26ed['hasClass']('ck-suggestion-marker-split')||_0x3b26ed['hasClass']('ck-suggestion-marker-merge'))&&(_0x38e13d['mapper']['unbindElementFromMarkerName'](_0x3b26ed,_0x361159['markerName']),_0x38e13d['writer']['remove'](_0x3b26ed));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x47bf53,_0x1c1770,_0x2ddf7a)=>{const _0x2b978a=_0x1c1770['markerName']['split'](':')[0x1],_0x729d9e=this['_getChangeFromId'](_0x2b978a);if(!_0x729d9e)return null;const _0x15bd45='add'==_0x729d9e['type']?'split':'merge';if(_0x2ddf7a['consumable']['test'](_0x1c1770['markerRange'],_0x47bf53['name']))for(const _0x3a7907 of _0x1c1770['markerRange']['getItems']()){if(!_0x3a7907['is']('element','softBreak'))continue;const _0xb50b17=_0x2ddf7a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15bd45}),_0xe68b28=_0x2ddf7a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3a7907));_0x729d9e['data']['isSuggestion']&&_0x2ddf7a['writer']['addClass']('ck-suggestion-marker-'+_0x15bd45+'-new',_0xb50b17),this['activeChange']==_0x729d9e&&_0x2ddf7a['writer']['addClass']('ck-suggestion-marker--active',_0xb50b17),_0x2ddf7a['writer']['insert'](_0xe68b28,_0xb50b17),_0x2ddf7a['mapper']['bindElementToMarker'](_0xb50b17,_0x1c1770['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x310ec2=>{for(const _0x5b9b5f of this['editor']['model']['document']['getRootNames']()){const _0x41d318=this['editor']['model']['document']['getRoot'](_0x5b9b5f),_0x44f170=this['editor']['editing']['view']['document']['getRoot'](_0x5b9b5f);if(_0x44f170){const _0x538d6f=_0x41d318['getAttribute']('revisionHistoryAttachChange');if(_0x310ec2['removeAttribute']('data-change-id',_0x44f170),_0x310ec2['removeClass']('ck-revision-history-root-add',_0x44f170),_0x310ec2['removeClass']('ck-revision-history-root-remove',_0x44f170),_0x310ec2['removeClass']('ck-revision-history-root--active',_0x44f170),_0x538d6f){const _0x3dda35=this['_getChangeFromId'](_0x538d6f);if(!_0x3dda35)return null;_0x310ec2['setAttribute']('data-change-id',_0x538d6f,_0x44f170),_0x310ec2['addClass']('ck-revision-history-root-'+_0x3dda35['type'],_0x44f170),this['activeChange']==_0x3dda35&&_0x310ec2['addClass']('ck-revision-history-root--active',_0x44f170);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3e7bab=>'revision-comment:'+_0x3e7bab,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2cb6d5=>'revision-suggestion:'+_0x2cb6d5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x36004e=>({'name':'suggestion:'+_0x36004e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x223948=>{const _0x5bb9ff=_0x223948['markerName']['split'](':')[0x1];return'insertion'!=_0x5bb9ff&&'deletion'!=_0x5bb9ff?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5bb9ff]};}}),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',(_0x1b8d86,_0x4e2dd9,_0x2c34b0)=>{const _0x4c35aa=_0x2c34b0['mapper']['markerNameToElements'](_0x4e2dd9['markerName']);if(_0x4c35aa){for(const _0x580c70 of _0x4c35aa)_0x580c70['is']('uiElement')&&(_0x2c34b0['mapper']['unbindElementFromMarkerName'](_0x580c70,_0x4e2dd9['markerName']),_0x2c34b0['writer']['remove'](_0x580c70));}},{'priority':'high'});}['_getChangeFromId'](_0x30e0c5){return this['_changeIdToChange']['get'](_0x30e0c5);}['_getViewForChange'](_0x51e6e0){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x51e6e0),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4308aa,_0x5dd5ca,_0x2f3e0b,_0x57c0b3)=>{_0x57c0b3&&this['_balloon']['remove'](_0x57c0b3),_0x2f3e0b&&(this['_balloon']['add']({'view':_0x2f3e0b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x44754=this['editor']['editing'],_0x3a3f87=this['_getChangeFromId'](_0x2f3e0b['changeId']);let _0x493472;if(_0x3a3f87['data']['isOnRoot']){const _0x2e80ef=_0x44754['view']['getDomRoot'](_0x3a3f87['rootName']);_0x493472=Array['from'](_0x2e80ef['getClientRects']());}else{const _0x37c7e1=this['editor']['model']['markers']['get']('revision:'+_0x2f3e0b['changeId']);_0x493472=Array['from'](_0x44754['mapper']['markerNameToElements'](_0x37c7e1['name']))['map'](_0x4f13ec=>_0x44754['view']['domConverter']['mapViewToDom'](_0x4f13ec))['map'](_0x32a41b=>Array['from'](_0x32a41b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x493472[0x0];return _0x493472['find'](_0x29ca0c=>_0x29ca0c['top']-0x3<=this['_activeViewTarget']['y']&&_0x29ca0c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x29ca0c['left']-0x3<=this['_activeViewTarget']['x']&&_0x29ca0c['right']+0x3>=this['_activeViewTarget']['x'])||_0x493472[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x366855,_0x1cea18,_0x5c02d8,_0x1493ec)=>{this['activeView']=_0x5c02d8?this['_getViewForChange'](_0x5c02d8):null,this['editor']['model']['change'](()=>{const _0x47b983=this['editor']['editing'];_0x1493ec&&(_0x1493ec['data']['isOnRoot']?_0x47b983['view']['change'](_0xddbb31=>{_0xddbb31['removeClass']('ck-revision-history-root--active',_0x47b983['view']['document']['getRoot'](_0x1493ec['rootName']));}):_0x47b983['reconvertMarker']('revision:'+_0x1493ec['id'])),_0x5c02d8&&(_0x5c02d8['data']['isOnRoot']?_0x47b983['view']['change'](_0x4ec28b=>{_0x4ec28b['addClass']('ck-revision-history-root--active',_0x47b983['view']['document']['getRoot'](_0x5c02d8['rootName']));}):_0x47b983['reconvertMarker']('revision:'+_0x5c02d8['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x542cff,_0x23b301)=>{if(this['activeChange'])return;const _0x23ed45=this['_findChangeIdFromDomTarget'](_0x23b301['target']),_0x1966d5=this['_changeIdToChange']['get'](_0x23ed45);_0x1966d5?(this['_activeViewTarget']={'x':_0x23b301['domEvent']['x'],'y':_0x23b301['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1966d5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4f1cc7,_0x5b7962)=>{const _0x23b438=this['_findChangeIdFromDomTarget'](_0x5b7962['target']),_0x38fc5e=this['_changeIdToChange']['get'](_0x23b438);_0x38fc5e?(this['_activeViewTarget']={'x':_0x5b7962['domEvent']['x'],'y':_0x5b7962['domEvent']['y']},_0x38fc5e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x38fc5e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x136967){do{const _0x147c5c=_0x136967['getAttribute']('data-change-id');if(_0x147c5c)return _0x147c5c;_0x136967=_0x136967['parent'];}while(_0x136967);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1f658c=>{for(const _0x583c07 of this['editor']['model']['markers'])_0x1f658c['removeMarker'](_0x583c07);});}}function Q(_0x3c204a,_0x2ffe44){return(_0x422603,_0x1cea3b,_0x49ad49)=>{if(!_0x49ad49['consumable']['test'](_0x1cea3b['markerRange'],_0x422603['name']))return;const _0xc17d29=_0x1cea3b['markerRange']['getWalker'](),_0x444fb8=_0x1cea3b['markerRange']['start'],_0x572e56=_0x3c204a['model']['schema'];let _0x2b8cf7=null,_0x5751a4=null,_0x2300e4=!0x1,_0x47c03c=!0x1;for(const _0xdc5c80 of _0xc17d29){const _0x55381b=_0xdc5c80['item'];_0x2300e4=_0x2300e4||_0x572e56['isContent'](_0x55381b);const _0x18794c=_0x49ad49['mapper']['toViewElement'](_0x55381b);if(_0x18794c&&_0x18794c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdc5c80['type']&&(_0x572e56['isBlock'](_0x55381b)&&!_0x572e56['isLimit'](_0x55381b)&&(_0x55381b['nextSibling']||_0x444fb8['isAtEnd']?_0x2b8cf7&&_0x2b8cf7['parent']==_0x55381b||(_0x2b8cf7=_0x55381b,_0x7d564a(_0xdc5c80['previousPosition']),_0x47c03c=!0x0):_0x5751a4=_0x5751a4||_0xdc5c80['previousPosition']));}function _0x7d564a(_0x4e9b42){const _0x2889be=_0x49ad49['mapper']['toViewPosition'](_0x4e9b42),_0x301c53=_0x49ad49['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2ffe44});_0x49ad49['writer']['insert'](_0x2889be,_0x301c53),_0x49ad49['mapper']['bindElementToMarker'](_0x301c53,_0x1cea3b['markerName']);}_0x2300e4||_0x47c03c||!_0x5751a4||_0x7d564a(_0x5751a4);};}class nt extends _0x1ba99d{constructor(_0x729ba7){super(_0x729ba7);const _0x13276c=_0x729ba7['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x13276c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x13276c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2bd14b=this['editor'],_0x505d1c=_0x2bd14b['plugins']['get'](l),_0x182fba=_0x505d1c['isReady']?_0x505d1c['diff']['newRevisionId']:null;_0x2bd14b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x182fba);}['refresh'](){const {isReady:_0x119b40,isEnabled:_0x585316,repository:_0x31c460,diff:_0x590296}=this['editor']['plugins']['get'](l),_0x5c2797=_0x590296&&_0x31c460['getLaterVisibleRevision'](_0x590296['newRevisionId']);this['isEnabled']=_0x119b40&&_0x585316&&Boolean(_0x5c2797);}}class rt extends _0x1ba99d{['_step'];constructor(_0x4a38ec,{direction:_0x3c2876}){super(_0x4a38ec);const _0x19f520=_0x4a38ec['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x3c2876?0x1:-0x1,this['listenTo'](_0x19f520,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x19f520,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x19f520,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x327cc7=this['editor'],_0x30717f=_0x327cc7['plugins']['get'](l),{isNavigationMode:_0x5cc2c9,currentChangeNumber:_0x21bf44}=_0x30717f;let _0x167d1e;if(_0x30717f['activeChange']=_0x5cc2c9?_0x30717f['diff']['changes']['get'](_0x21bf44+this['_step']):_0x30717f['diff']['changes']['first'],_0x30717f['activeChange']['data']['isOnRoot'])_0x167d1e=_0x327cc7['editing']['view']['getDomRoot'](_0x30717f['activeChange']['rootName']);else{const _0x5c1231=_0x327cc7['model']['markers']['get']('revision:'+_0x30717f['activeChange']['id']);_0x167d1e=_0x1fa1ef(_0x327cc7['editing'],_0x5c1231);}_0x560f73({'target':_0x167d1e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5227a2,currentChangeNumber:_0x1d0044,numberOfChanges:_0x2ab62b,isReady:_0x17b075,isEnabled:_0x34fc7f}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x34fc7f&&_0x17b075&&_0x2ab62b)&&(!_0x5227a2||(0x1===this['_step']?_0x1d0044<_0x2ab62b-0x1:_0x1d0044>0x0));}}class Ri extends _0x299af1{constructor(_0xa7f404){super(_0xa7f404);const _0x37ed20=this['bindTemplate'],_0x1748c5=new _0xb62761(_0xa7f404),_0x5e4d73=new _0xb62761(_0xa7f404);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',(_0x5ae91a,_0x31e7cc)=>_0x5ae91a&&_0x31e7cc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3e6ad3,_0x4b77ef,_0x1c82a4,_0x1661d5)=>{if(!_0x3e6ad3)return R(_0xa7f404,'Loading...');if(!_0x1c82a4)return R(_0xa7f404,'No\x20changes');const _0x4f2006=R(_0xa7f404,'NUMBER_OF_CHANGES',_0x1c82a4);return _0x1661d5?R(_0xa7f404,'X_OF_Y_CHANGES',[_0x4b77ef+0x1,_0x1c82a4]):_0x4f2006;}),_0x1748c5['set']({'label':R(_0xa7f404,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5c74cd}),_0x5e4d73['set']({'label':R(_0xa7f404,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x3d35bd}),_0x1748c5['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5e4d73['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1748c5['on']('execute',()=>this['fire']('execute','backward')),_0x5e4d73['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',_0x37ed20['if']('_isStatusLabelVisible','ck-hidden',_0x2eb564=>!_0x2eb564)]},'children':[{'text':_0x37ed20['to']('isNavigationMode',_0x3d588e=>_0x3d588e?R(_0xa7f404,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0xa7f404,'Total')+':\x20')}]},{'text':_0x37ed20['to']('_statusText')}]},new _0x422ac3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1748c5,_0x5e4d73]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x38daca{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3f25c9=this['editor']['editing']['view'];_0x3f25c9['change'](_0x1f5121=>{for(const _0x335f09 of _0x3f25c9['document']['roots'])_0x1f5121['addClass'](ge,_0x335f09);});}['hide'](){const _0x1cf9a1=this['editor']['editing']['view'];_0x1cf9a1['change'](_0x230a21=>{for(const _0x2272fa of _0x1cf9a1['document']['roots'])_0x230a21['removeClass'](ge,_0x2272fa);});}}class u extends _0x38daca{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x149125=this['editor'],_0x4a3aca=_0x149125['plugins']['get'](l),_0x58f22a=_0x149125['plugins']['get'](ji);_0x149125['ui']['componentFactory']['add']('exitToEditing',_0xcd9cd2=>{const _0x57e2b4=new _0xb62761(_0xcd9cd2);return _0x57e2b4['set']({'label':R(_0xcd9cd2,'Back\x20to\x20editing'),'icon':_0xac4242,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x57e2b4,'execute',()=>{_0x149125['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x57e2b4;}),_0x149125['ui']['componentFactory']['add']('restoreRevision',_0x427f03=>{const _0x29069b=new _0xb62761(_0x427f03);return _0x29069b['set']({'label':R(_0x427f03,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x29069b['bind']('isEnabled')['to'](_0x149125['commands']['get']('restoreRevision')),this['listenTo'](_0x29069b,'execute',()=>_0x149125['execute']('restoreRevision')),_0x29069b;}),_0x149125['ui']['componentFactory']['add']('changesNavigation',_0x25b429=>{const _0x5d157f=new Ri(_0x25b429),_0x176393=_0x149125['commands']['get']('showPreviousChange'),_0x2c0857=_0x149125['commands']['get']('showNextChange');return _0x5d157f['bind']('isBackwardNavigationEnabled')['to'](_0x176393,'isEnabled'),_0x5d157f['bind']('isForwardNavigationEnabled')['to'](_0x2c0857,'isEnabled'),_0x5d157f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4a3aca),this['listenTo'](_0x5d157f,'execute',(_0x575baf,_0x12401e)=>{_0x149125['execute']('forward'===_0x12401e?'showNextChange':'showPreviousChange');}),_0x5d157f;}),_0x58f22a['show'](),_0x4a3aca['on']('change:isReady',(_0x4e916a,_0x3bac3b,_0x483665)=>{_0x483665?_0x58f22a['hide']():_0x58f22a['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x2bcb45,_0x21b0a4){super(_0x2bcb45,_0x21b0a4);const _0x228d86=this['bindTemplate'];this['set']({'label':R(_0x2bcb45,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2bcb45,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x228d86['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x64c65e=this['fieldView']['element'];this['_tooltipString']=_0x64c65e['scrollWidth']>_0x64c65e['clientWidth']&&_0x64c65e['value']||'';}}class ni extends _0x299af1{constructor(_0x490d95,_0x4e528c,_0x5d100c){super(_0x490d95);const _0x10f182=new _0x2168e8();_0x10f182['set']({'content':_0x5cb480,'viewBox':'0\x200\x2011\x2010'});const _0x3e2e79=['ck','ck-revision-history-sidebar__revision-author'];_0x5d100c&&_0x3e2e79['push']('ck-revision-history-sidebar__revision-author_creator');const _0x26246d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x490d95,_0x5d100c?'Revision\x20creator':'Revision\x20author')},'children':[_0x10f182,_0x4e528c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3e2e79},'children':_0x26246d});}}function ai(_0x126e7e,_0x1a929b){const _0x1b51f2=_0x126e7e['bindTemplate'],_0x479693=_0x126e7e['locale'],_0x427973=_0xaf28b8(_0x479693);_0x427973['panelPosition']='sw';const _0xbadb0a=function(_0x5630c7,_0x2f4bdb){const _0x3193eb=function(_0x177ed8,_0x4a5ae7){const _0x1c8727=_0x177ed8['locale'],_0x3f465b={'Compare\x20against\x20selected':R(_0x1c8727,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x1c8727,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x1c8727,'Restore\x20this\x20revision')};return _0x4a5ae7['map'](_0x59a57b=>{const _0x22eb96=_0x3f465b[_0x59a57b['name']];return _0x22eb96&&_0x22eb96!==_0x59a57b['name']&&(_0x59a57b['name']=_0x22eb96),_0x59a57b;});}(_0x5630c7,_0x2f4bdb),_0xd28838=new _0x305a29();for(const _0x9924e8 of _0x3193eb){const _0x136f5e={'type':'button','model':new to({'label':_0x9924e8['name'],'class':_0x9924e8['class'],'withText':!0x0,'role':'menuitem','_action':_0x9924e8['action']})};_0x136f5e['model']['bind']('isEnabled')['to'](_0x5630c7,'isActionsDropdownOpen',_0x18db91=>'function'!=typeof _0x9924e8['isEnabled']||(!_0x18db91||_0x9924e8['isEnabled'](_0x5630c7))),_0xd28838['add'](_0x136f5e);}return _0xd28838;}(_0x126e7e,_0x1a929b);return _0x126e7e['bind']('isActionsDropdownOpen')['to'](_0x427973,'isOpen'),_0x427973['buttonView']['set']({'label':R(_0x479693,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3ac663}),_0x427973['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b51f2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b51f2['to'](_0x140f96=>_0x140f96['stopPropagation']())}}),_0x427973['on']('execute',_0x2352e8=>{_0x126e7e['isReady']&&'function'==typeof _0x2352e8['source']['_action']&&_0x2352e8['source']['_action'](_0x126e7e);}),_0x29459b(_0x427973,_0xbadb0a,{'role':'menu'}),_0x427973['listenTo'](_0x126e7e,'change:isActionsDropdownOpen',(_0x9be82b,_0x585264,_0x18d297)=>{if(_0x18d297)for(const _0x295c89 of _0x427973['listView']['items']){const _0x5767fa=_0x295c89['children']['first'],_0x3dbeee=_0x1a929b['find'](_0x3de5cb=>_0x3de5cb['action']===_0x5767fa['_action'])['isVisible'];_0x295c89['isVisible']=void 0x0===_0x3dbeee||_0x3dbeee(_0x126e7e);}}),_0x427973;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x432fc9(_0x299af1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1482f4,_0x414872,_0x271127,_0x425f3e){super(_0x1482f4);const _0x1dae4f=this['bindTemplate'],_0x15e15c=function(_0xc1a1b2,_0xa1a0aa){const _0x1935c1=Array['from'](_0xa1a0aa['authors'])['filter'](_0xbb667c=>_0xbb667c!=_0xa1a0aa['creator']);return _0xa1a0aa['creator']&&_0x1935c1['unshift'](_0xa1a0aa['creator']),_0x1935c1['map'](_0x28e617=>new ni(_0xc1a1b2,_0x28e617,_0x28e617==_0xa1a0aa['creator']));}(_0x1482f4,_0x414872);this['id']=_0x414872['id'],this['_revision']=_0x414872,this['_requireRevisionName']=_0x425f3e,this['bind']('name','createdAt')['to'](_0x414872),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4f9618=>{return _0x1d29bd=_0x1482f4['uiLanguage'],(_0x2af8b5=_0x4f9618)['toLocaleDateString'](_0x1d29bd,{'month':'long','day':'numeric'})+',\x20'+_0x2af8b5['toLocaleTimeString'](_0x1d29bd,{'hour':'numeric','minute':'numeric'});var _0x1d29bd,_0x2af8b5;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x1482f4,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3fc560=>_0x3fc560||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1fc0a6,_0x1a2e94)=>_0x1fc0a6&&_0x1a2e94),this['revisionActionsView']=_0x271127&&_0x271127['length']?ai(this,_0x271127):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1dae4f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1dae4f['if']('isEnabled','ck-disabled',_0x43d39f=>!_0x43d39f),_0x1dae4f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1dae4f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1dae4f['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':_0x1dae4f['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':_0x15e15c}]},this['revisionActionsView']],'on':{'click':_0x1dae4f['to'](_0x17c31e=>{_0x17c31e['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1ae565=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1ae565,'change',()=>{this['_requireRevisionName']&&!_0x1ae565['value']||this['fire']('setName',{'id':this['id'],'name':_0x1ae565['value']}),_0x1ae565['value']||(_0x1ae565['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x2d665b,_0xb9dc7){const _0x244b62=_0x1731b6['fromJSDate'](_0x2d665b)['setLocale'](_0xb9dc7),_0x1c5d32=_0x1731b6['local'](),_0x29ec65=_0x1c5d32['minus']({'days':0x1})['startOf']('day');let _0x33e278,_0x4d059d;return _0x244b62['hasSame'](_0x1c5d32,'day')?(_0x33e278=_0x244b62['startOf']('day')['toJSDate'](),_0x4d059d=_0x244b62['toRelativeCalendar']()):_0x244b62['hasSame'](_0x29ec65,'day')?(_0x33e278=_0x29ec65['toJSDate'](),_0x4d059d=_0x244b62['toRelativeCalendar']()):_0x244b62['hasSame'](_0x1c5d32,'week')?(_0x33e278=_0x244b62['startOf']('week')['toJSDate'](),_0x4d059d=_0x244b62['weekdayLong']||''):_0x244b62['hasSame'](_0x1c5d32,'year')?(_0x33e278=_0x244b62['startOf']('month')['toJSDate'](),_0x4d059d=_0x244b62['monthLong']||''):(_0x33e278=_0x244b62['startOf']('year')['toJSDate'](),_0x4d059d=String(_0x244b62['year'])),{'startDate':_0x33e278,'localizedPeriodName':_0x4d059d};}class bi extends _0x299af1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x27f81f,_0x32e4c7,_0xd5890e,_0x4f7456){super(_0x27f81f);const _0x5a3c8d=li(_0x32e4c7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x32e4c7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xd5890e,this['_requireRevisionName']=_0x4f7456,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':_0x5a3c8d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2eef11){const _0x193038=new _i(this['locale'],_0x2eef11,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x193038);}['removeRevision'](_0x2be5cc){const _0x53305a=this['revisionViews']['find'](_0x4c539e=>_0x4c539e['id']===_0x2be5cc['id']);this['revisionViews']['remove'](_0x53305a);}}class fi extends _0x299af1{constructor(_0x36d24a){super(_0x36d24a);const _0x3a9aae=new _0x2168e8();_0x3a9aae['content']=_0xcc2774,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3a9aae,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x36d24a,'Revision\x20history')]}]});}}class di extends _0x299af1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x47f50e,_0x2ef4c2,_0x35e803,_0x3deab2){super(_0x47f50e);const _0x3aea90=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2ef4c2,this['_revisionActions']=_0x35e803,this['_requireRevisionName']=_0x3deab2,this['on']('select',(_0x296772,_0x4e931)=>{this['fire']('revisionSelected',_0x4e931);}),this['on']('setName',(_0x3ba850,_0x2a6bed)=>{this['fire']('revisionSetName',_0x2a6bed);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x47f50e),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3aea90['if']('isEnabled','ck-disabled',_0x491c44=>!_0x491c44)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2a52a of this['_revisions'])this['_addRevision'](_0x2a52a);this['_revisions']['on']('add',(_0x13f1eb,_0xcb8b26)=>{this['_addRevision'](_0xcb8b26);}),this['_revisions']['on']('remove',(_0xe098d1,_0x1ad2ba)=>{this['_removeRevision'](_0x1ad2ba);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1f535b=>_0x1f535b['revisionViews']['map'](_0x1726c9=>_0x1726c9))['flat']();}['selectRevision'](_0x5dadbf){for(const _0x250dbd of this['revisionViews'])_0x5dadbf&&_0x5dadbf['id']===_0x250dbd['id']?_0x250dbd['select']():_0x250dbd['deselect']();}['highlightRevisions'](_0x48e6a2){for(const _0x4ddc49 of this['revisionViews'])_0x48e6a2['some'](({id:_0x54b5ff})=>_0x54b5ff===_0x4ddc49['id'])?_0x4ddc49['highlight']():_0x4ddc49['unhighlight']();}['_addRevision'](_0x12c309){const _0x4e9390=li(_0x12c309['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xf1ec75=this['timePeriodViews']['get'](0x0);_0xf1ec75&&_0xf1ec75['startDate']['getTime']()===_0x4e9390['getTime']()||(_0xf1ec75=new bi(this['locale'],_0x4e9390,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xf1ec75)),_0xf1ec75['addRevision'](_0x12c309);}['_removeRevision'](_0x1c607f){const _0x13afcc=li(_0x1c607f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x13afcc)['removeRevision'](_0x1c607f);}['_getTimePeriodViewByStartDate'](_0x37515b){return this['timePeriodViews']['find'](_0x4d6b35=>_0x4d6b35['startDate']['getTime']()===_0x37515b['getTime']());}}class f extends _0x38daca{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x5d150f(_0x2057ff){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x118e46,_0x4db06e){super(_0x4db06e),this['sourceElement']=_0x118e46,this['model']['document']['createRoot']();const _0x2a38a7=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x2a38a7);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4be26a,_0xf1758f){const _0x9e5adf=new this(_0x4be26a,_0xf1758f);return await _0x9e5adf['initPlugins'](),await _0x9e5adf['ui']['init'](_0x4be26a),await _0x9e5adf['data']['init'](_0x9e5adf['config']['get']('initialData')||''),_0x9e5adf['fire']('ready'),_0x9e5adf;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x2a66d6{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57cb8c){function _0x1a7143(_0x2efa3b){return _0x2efa3b['map'](_0x3f9612=>String['fromCharCode'](_0x3f9612))['join']('');}super(_0x57cb8c),this['result']='end',_0x57cb8c[_0x1a7143([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a7143([0x76,0x69,0x65,0x77])][_0x1a7143([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a7143([0x61,0x75,0x74,0x6f]),_0x57cb8c[_0x1a7143([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1a7143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a7143([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1a7143([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1a7143([0x6f,0x6b])});}}class ct extends _0x2a66d6{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x1f003d){if(super(_0x1f003d),!this['editor']['config']['get']('revisionHistory'))throw new _0x183c1e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x23a9e9=>this['_showRevisionViewer']({..._0x23a9e9,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2bafe4=>this['_closeRevisionViewer'](_0x2bafe4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5e856c=>this['_restoreRevision'](_0x5e856c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x56edac){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x56edac;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xad1632){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xad1632);}['getRevision'](_0x4ef57f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4ef57f);}['getRevisions'](_0x3ace9c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3ace9c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x499528=this['editor'],_0x209a67=_0x21fccf(_0x499528,d),_0x2b622a=_0x499528['plugins']['get']('RevisionTracker'),_0xada54e=_0x499528['plugins']['get']('Users')['users'];return _0x209a67['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x209a67['lazyRoots'],(_0x209a67['plugins']['push'](ht,l,u,class extends _0x2a66d6{static get['requires'](){return[l,'Users'];}['init'](){const _0x26e5b3=this['editor']['plugins']['get']('Users');for(const _0x275632 of _0xada54e)_0x275632['isAnonymous']||_0x26e5b3['getUser'](_0x275632['id'])||_0x26e5b3['addUser'](_0x275632);const _0x3f6ca6=_0x2b622a['repository']['getRevisions']();let _0x273ed1=null;const _0x8d4cca=this['editor']['plugins']['get']('RevisionViewer');_0x8d4cca['adapter']=_0x2b622a['adapter'],_0x8d4cca['bind']('isEnabled')['to'](_0x2b622a),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x499528,'isReadOnly',_0x3a11ce=>!_0x3a11ce);for(const _0x2ec8a0 of _0x3f6ca6){const _0x212f9d=null===_0x2ec8a0['creator'];if(_0x212f9d&&_0x2ec8a0['toVersion']===_0x2ec8a0['fromVersion'])continue;const _0x3c128e=_0x2ec8a0['toJSON']();_0x8d4cca['addRevisionData'](_0x3c128e,(_0x2da8f3,_0x2f0021,_0x528e0f)=>{if(_0x212f9d){if(_0x273ed1)_0x273ed1['_update'](_0x2da8f3,_0x2f0021);else{if(!_0x2f0021){const _0x12bf27=_0x528e0f['toJSON']();_0x12bf27['id']=_0x25d6ef(),_0x2b622a['saveRevision'](_0x12bf27,_0x528e0f['toVersion'])['then'](_0x3460a1=>{_0x273ed1=_0x3460a1;});}}}else _0x2ec8a0['_update'](_0x2da8f3,_0x2f0021);});}}},f),_0x209a67);}['_enhanceShowRevisionViewerCallback'](){const _0x21823d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x34b362=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x242a16=this['editor']['plugins']['get']('Autosave');await _0x242a16['save']();}else await _0x34b362['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x16fbd2=this['editor']['plugins']['get']('Dialog');_0x16fbd2['isOpen']&&_0x16fbd2['hide']();}const _0x59b34e=this['_getRevisionViewerEditorConfig']();return _0x21823d(_0x59b34e)['then'](_0x3f17c2=>{return(this['_viewerEditor']=_0x3f17c2,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'),_0x3f17c2);})['catch'](_0x152ad6=>(console['error'](_0x152ad6),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x8c6113=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'](),_0x8c6113(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5d71d4=this['editor']['plugins']['get']('Annotations');_0x5d71d4['refreshVisibility'](),_0x5d71d4['refreshPositioning']();}})));}['_showRevisionViewer'](_0x334ad1){const _0x1e6a25=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3f713b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3f48f5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x3f48f5,_0x334ad1)['then'](_0x1a42fb=>(_0x3f713b['style']['display']='block',_0x1e6a25['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1a42fb));}['_closeRevisionViewer'](_0x5a9b53){const _0x2a19a7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2a19a7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5a9b53['destroy']();}async['_restoreRevision'](_0x399979){const _0x4a12bc=this['editor'],_0x4a25f9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x8ee30e=_0x4a12bc['plugins']['get']('RevisionTracker'),_0x2c2259=_0x4a12bc['plugins']['get']('RevisionHistoryUtils'),_0x2da1ed=_0x4a25f9['repository']['getRevision'](_0x399979);let _0x483639,_0x1432ee,_0x57d4aa;try{await _0x2c2259['loadRevisionData'](_0x2da1ed,this['adapter']),_0x483639=_0x2c2259['getRevisionDocumentData'](_0x2da1ed),_0x1432ee=_0x2c2259['getRevisionRootsAttributes'](_0x2da1ed);}catch(_0x58b45d){return void console['error'](_0x58b45d);}_0x4a12bc['model']['change'](_0x3c80cc=>{for(const _0x3791fe of Array['from'](_0x4a12bc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3c80cc['removeMarker'](_0x3791fe);}),_0x4a25f9['isReady']=!0x1,_0x4a12bc['model']['enqueueChange'](_0xe72ab1=>{_0xe72ab1['setSelection'](null),_0xe72ab1['removeSelectionAttribute'](_0x4a12bc['model']['document']['selection']['getAttributeKeys']());const _0x1d89e9=Object['keys'](_0x483639);for(const _0x43f83a of _0x4a12bc['model']['document']['roots'])'$graveyard'!=_0x43f83a['rootName']&&_0x43f83a['isAttached']()&&!_0x1d89e9['includes'](_0x43f83a['rootName'])&&_0xe72ab1['detachRoot'](_0x43f83a);for(const _0x16391b of _0x1d89e9){let _0x30cf7d=_0x4a12bc['model']['document']['getRoot'](_0x16391b);_0x30cf7d&&_0x30cf7d['isAttached']()||(_0x30cf7d=_0xe72ab1['addRoot'](_0x16391b));const _0x1d70b4=_0x1432ee[_0x16391b],_0x4b7c4c=Object['keys'](_0x1d70b4),_0x33a144=_0x483639[_0x16391b];for(const _0x5cf499 of _0x30cf7d['getAttributeKeys']())_0x4b7c4c['includes'](_0x5cf499)||_0xe72ab1['removeAttribute'](_0x5cf499,_0x30cf7d);for(const _0x39be0b of _0x4b7c4c)_0xe72ab1['setAttribute'](_0x39be0b,_0x1432ee[_0x16391b][_0x39be0b],_0x30cf7d);_0xe72ab1['remove'](_0xe72ab1['createRangeIn'](_0x30cf7d)),_0xe72ab1['insert'](_0x4a12bc['data']['parse'](_0x33a144,_0x30cf7d),_0x30cf7d,0x0);}});const _0x1a5ff0=R(_0x4a12bc['locale'],'Restored');if(_0x2da1ed['name'])_0x57d4aa=-0x1==_0x2da1ed['name']['indexOf'](_0x1a5ff0)?_0x1a5ff0+':\x20'+_0x2da1ed['name']:_0x2da1ed['name'];else _0x57d4aa=_0x1a5ff0+':\x20'+(_0x2da1ed['createdAt']['toLocaleDateString'](_0x4a12bc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2da1ed['createdAt']['toLocaleTimeString'](_0x4a12bc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x8ee30e['saveRevision']({'name':_0x57d4aa}),_0x4a25f9['isReady']=!0x0,_0x4a12bc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x3dc323){super(_0x3dc323),this['_revisionViewer']=_0x3dc323['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x31db8=this['_revisionsRepository']['_revisions'],_0x19f6fa=this['_createRevisionActions'](),_0x5b9cf4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x31db8,_0x19f6fa,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',(_0x23dcc2,_0x548863)=>{_0x548863['revisionViews']['on']('add',(_0x484cbe,_0xc20585)=>{_0xc20585['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)),_0x5b9cf4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4c14bb=this['_revisionsRepository']['getRevision'](0x0);if(_0x4c14bb){const _0x40a6d1=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4c14bb['id']);this['_revisionViewer']['compare'](_0x4c14bb,_0x40a6d1);}}['_handleRevisionSelected'](_0xa57e40,_0x426752){const _0x15340b=this['_revisionsRepository']['getRevision'](_0x426752['id']),_0x5584db=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x15340b['id']);this['_revisionViewer']['compare'](_0x15340b,_0x5584db);}['_handleRevisionSetName'](_0x3a6f36,_0x3662db){this['_revisionsRepository']['getRevision'](_0x3662db['id'])['setName'](_0x3662db['name']);}['_handleDiffChange'](_0x5d0cc1,_0x55e5e8,_0x38386f){const _0x10e720=this['_revisionsRepository']['getRevisionsInDiff'](_0x38386f);_0x10e720['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x10e720),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x10e720[0x0]));}['_createRevisionActions'](){const _0x1a86e1=this['editor'],_0x3876ce=f['availableRevisionActions'],_0x3aa165=_0x1a86e1['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x3aa165['length'])return _0x3aa165['map'](_0x13e531=>{const _0x22c405='string'==typeof _0x13e531?Object['assign']({},_0x3876ce[_0x13e531]):_0x13e531;return _0x22c405['action']=_0x22c405['action']['bind'](this,_0x1a86e1),_0x22c405['isVisible']&&(_0x22c405['isVisible']=_0x22c405['isVisible']['bind'](this,_0x1a86e1)),_0x22c405;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x869cb0},_0x1d80ab)=>{const _0x347011=_0x869cb0['get'](l),_0x5b4f3a=_0x347011['repository'];let _0x22fdef=_0x347011['diff']['newRevisionId'],_0x38306d=_0x1d80ab['id'];_0x5b4f3a['getIndex'](_0x22fdef)>_0x5b4f3a['getIndex'](_0x38306d)&&([_0x22fdef,_0x38306d]=[_0x38306d,_0x22fdef]),_0x347011['compare'](_0x22fdef,_0x38306d);},'isVisible':({plugins:_0x3f2e77},_0x1c6497)=>{const _0x4e2b92=_0x3f2e77['get'](l);return!(_0x4e2b92['repository']['getRevisionsInDiff'](_0x4e2b92['diff'])['length']>0x2)&&!_0x1c6497['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x269a88,{id:_0x5cdf8e})=>{_0x269a88['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5cdf8e);},'isVisible':({plugins:_0x4b0e9c},_0x5facfe)=>!!_0x4b0e9c['get'](l)['repository']['getLaterVisibleRevision'](_0x5facfe['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2841c6},{id:_0x59be04,revisionNameView:_0x130520})=>{const _0x4cd160=_0x2841c6['get'](l),_0x18640b=_0x4cd160['repository']['getEarlierVisibleRevision'](_0x59be04);_0x4cd160['compare'](_0x59be04,_0x18640b),_0x130520['focus'](),_0x130520['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x22cb1a,_0x9e60c5){super(_0x22cb1a),this['_view']=_0x9e60c5,this['_toolbarConfig']=st(_0x22cb1a['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x487f72){const _0x5d4b8e=this['editor'],_0x3fb577=this['view'],_0x31ee77=_0x5d4b8e['editing']['view'],_0x3d1c5c=_0x3fb577['editable'],_0x1c1802=_0x31ee77['document']['getRoot']();_0x3d1c5c['name']=_0x1c1802['rootName'],_0x3fb577['render']();const _0x2b573c=_0x3d1c5c['element'];this['setEditableElement'](_0x3d1c5c['name'],_0x2b573c),_0x3fb577['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x31ee77['attachDomRoot'](_0x2b573c),this['_elementReplacer']['replace'](_0x487f72,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xe8cbd2=this['view'],_0x49c7c5=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x49c7c5['detachDomRoot'](_0xe8cbd2['editable']['name']),_0xe8cbd2['destroy']();}['_initToolbar'](){const _0x19310=this['view'];_0x19310['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x19310['stickyPanel']['limiterElement']=_0x19310['element'],_0x19310['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x48060e})=>_0x48060e),_0x19310['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x19310['toolbar']);}}class ii extends _0xdaacb8{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x8facbc,_0xf3fad2,_0x136a55={}){super(_0x8facbc),this['stickyPanel']=new _0x141afb(_0x8facbc),this['toolbar']=new _0x3cc536(_0x8facbc,{'shouldGroupWhenFull':_0x136a55['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x8facbc,_0xf3fad2);}['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
|
+
_0xfbbd9f(_0x30d67e){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4584ca,_0x3d35d1){super(_0x3d35d1),this['sourceElement']=_0x4584ca,this['model']['document']['createRoot']();const _0x3661a0=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3661a0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5ae66a,_0x227045){const _0x4a3597=new this(_0x5ae66a,_0x227045);return await _0x4a3597['initPlugins'](),await _0x4a3597['ui']['init'](_0x5ae66a),await _0x4a3597['data']['init'](_0x4a3597['config']['get']('initialData')||''),_0x4a3597['fire']('ready'),_0x4a3597;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x38daca{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2be803){function _0x17c51c(_0x521e8c){return _0x521e8c['map'](_0x40b27b=>String['fromCharCode'](_0x40b27b))['join']('');}super(_0x2be803),this['result']='end',_0x2be803[_0x17c51c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17c51c([0x76,0x69,0x65,0x77])][_0x17c51c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17c51c([0x61,0x75,0x74,0x6f]),_0x2be803[_0x17c51c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17c51c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17c51c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17c51c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17c51c([0x6f,0x6b])});}}class ct extends _0x38daca{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x586cc5){if(super(_0x586cc5),!this['editor']['config']['get']('revisionHistory'))throw new _0x4c83d9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5bff52=>this['_showRevisionViewer']({..._0x5bff52,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xdf933a=>this['_closeRevisionViewer'](_0xdf933a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3645d5=>this['_restoreRevision'](_0x3645d5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2f8ed3){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2f8ed3;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x8f96e2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x8f96e2);}['getRevision'](_0x3bda0c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3bda0c);}['getRevisions'](_0x37734b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x37734b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1075de=this['editor'],_0x3c4970=_0x1e3f31(_0x1075de,d),_0x553571=_0x1075de['plugins']['get']('RevisionTracker'),_0x11107d=_0x1075de['plugins']['get']('Users')['users'];return _0x3c4970['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3c4970['lazyRoots'],(_0x3c4970['plugins']['push'](ht,l,u,class extends _0x38daca{static get['requires'](){return[l,'Users'];}['init'](){const _0x45e659=this['editor']['plugins']['get']('Users');for(const _0x1adbe1 of _0x11107d)_0x1adbe1['isAnonymous']||_0x45e659['getUser'](_0x1adbe1['id'])||_0x45e659['addUser'](_0x1adbe1);const _0x5c64af=_0x553571['repository']['getRevisions']();let _0x208fb1=null;const _0x563b6a=this['editor']['plugins']['get']('RevisionViewer');_0x563b6a['adapter']=_0x553571['adapter'],_0x563b6a['bind']('isEnabled')['to'](_0x553571),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1075de,'isReadOnly',_0x163217=>!_0x163217);for(const _0x4d3014 of _0x5c64af){const _0x3e0be7=null===_0x4d3014['creator'];if(_0x3e0be7&&_0x4d3014['toVersion']===_0x4d3014['fromVersion'])continue;const _0x4f3449=_0x4d3014['toJSON']();_0x563b6a['addRevisionData'](_0x4f3449,(_0x568815,_0x311102,_0x115527)=>{if(_0x3e0be7){if(_0x208fb1)_0x208fb1['_update'](_0x568815,_0x311102);else{if(!_0x311102){const _0xd49caa=_0x115527['toJSON']();_0xd49caa['id']=_0x549feb(),_0x553571['saveRevision'](_0xd49caa,_0x115527['toVersion'])['then'](_0x42930d=>{_0x208fb1=_0x42930d;});}}}else _0x4d3014['_update'](_0x568815,_0x311102);});}}},f),_0x3c4970);}['_enhanceShowRevisionViewerCallback'](){const _0x30eb0f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4d036b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x278f2b=this['editor']['plugins']['get']('Autosave');await _0x278f2b['save']();}else await _0x4d036b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x226a6f=this['editor']['plugins']['get']('Dialog');_0x226a6f['isOpen']&&_0x226a6f['hide']();}const _0x526d18=this['_getRevisionViewerEditorConfig']();return _0x30eb0f(_0x526d18)['then'](_0x125d41=>{return(this['_viewerEditor']=_0x125d41,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'),_0x125d41);})['catch'](_0x3ad661=>(console['error'](_0x3ad661),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2297a8=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'](),_0x2297a8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x493019=this['editor']['plugins']['get']('Annotations');_0x493019['refreshVisibility'](),_0x493019['refreshPositioning']();}})));}['_showRevisionViewer'](_0x8cec45){const _0xb88b87=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x33e1bc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4116f5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4116f5,_0x8cec45)['then'](_0x3e2d9b=>(_0x33e1bc['style']['display']='block',_0xb88b87['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3e2d9b));}['_closeRevisionViewer'](_0x42e231){const _0x253d7c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x253d7c['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x42e231['destroy']();}async['_restoreRevision'](_0x2541e2){const _0x56381d=this['editor'],_0x3e3030=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x29928e=_0x56381d['plugins']['get']('RevisionTracker'),_0x1c0304=_0x56381d['plugins']['get']('RevisionHistoryUtils'),_0x2fe4d3=_0x3e3030['repository']['getRevision'](_0x2541e2);let _0x31e157,_0x9f246d,_0xc0a6e0;try{await _0x1c0304['loadRevisionData'](_0x2fe4d3,this['adapter']),_0x31e157=_0x1c0304['getRevisionDocumentData'](_0x2fe4d3),_0x9f246d=_0x1c0304['getRevisionRootsAttributes'](_0x2fe4d3);}catch(_0x27e5a0){return void console['error'](_0x27e5a0);}_0x56381d['model']['change'](_0x111c75=>{for(const _0x4b6935 of Array['from'](_0x56381d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x111c75['removeMarker'](_0x4b6935);}),_0x3e3030['isReady']=!0x1,_0x56381d['model']['enqueueChange'](_0x4d2c85=>{_0x4d2c85['setSelection'](null),_0x4d2c85['removeSelectionAttribute'](_0x56381d['model']['document']['selection']['getAttributeKeys']());const _0x3728b5=Object['keys'](_0x31e157);for(const _0xd69acd of _0x56381d['model']['document']['roots'])'$graveyard'!=_0xd69acd['rootName']&&_0xd69acd['isAttached']()&&!_0x3728b5['includes'](_0xd69acd['rootName'])&&_0x4d2c85['detachRoot'](_0xd69acd);for(const _0x3b5710 of _0x3728b5){let _0x23e4d2=_0x56381d['model']['document']['getRoot'](_0x3b5710);_0x23e4d2&&_0x23e4d2['isAttached']()||(_0x23e4d2=_0x4d2c85['addRoot'](_0x3b5710));const _0x3aa21e=_0x9f246d[_0x3b5710],_0x12db4e=Object['keys'](_0x3aa21e),_0x46719b=_0x31e157[_0x3b5710];for(const _0x27a693 of _0x23e4d2['getAttributeKeys']())_0x12db4e['includes'](_0x27a693)||_0x4d2c85['removeAttribute'](_0x27a693,_0x23e4d2);for(const _0x11070a of _0x12db4e)_0x4d2c85['setAttribute'](_0x11070a,_0x9f246d[_0x3b5710][_0x11070a],_0x23e4d2);_0x4d2c85['remove'](_0x4d2c85['createRangeIn'](_0x23e4d2)),_0x4d2c85['insert'](_0x56381d['data']['parse'](_0x46719b,_0x23e4d2),_0x23e4d2,0x0);}});const _0x5c0775=R(_0x56381d['locale'],'Restored');if(_0x2fe4d3['name'])_0xc0a6e0=-0x1==_0x2fe4d3['name']['indexOf'](_0x5c0775)?_0x5c0775+':\x20'+_0x2fe4d3['name']:_0x2fe4d3['name'];else _0xc0a6e0=_0x5c0775+':\x20'+(_0x2fe4d3['createdAt']['toLocaleDateString'](_0x56381d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2fe4d3['createdAt']['toLocaleTimeString'](_0x56381d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x29928e['saveRevision']({'name':_0xc0a6e0}),_0x3e3030['isReady']=!0x0,_0x56381d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|