@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250522.0 → 0.0.0-nightly-20250523.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +11 -11
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.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/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x3d8fc4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x256c61){super(),this['id']=_0x256c61['id']||_0x2edd7b(),this['creator']=_0x256c61['creator']||null,this['authors']=_0x256c61['authors']||[],this['diffData']=_0x256c61['diffData']||null,this['toVersion']=_0x256c61['toVersion']||0x0,this['fromVersion']=_0x256c61['fromVersion']||0x0,this['set']('name',_0x256c61['name']||''),this['set']('createdAt',_0x256c61['createdAt']||new Date()),this['set']('attributes',_0x256c61['attributes']||{});}['setName'](_0x315a9c){this['_update']({'name':_0x315a9c});}['setAttribute'](_0x404308,_0x17256d){const _0xb1c631=_0x2db13b(this['attributes']);_0x1105d7(_0xb1c631,_0x404308,_0x17256d),this['_update']({'attributes':_0xb1c631});}['removeAttribute'](_0x56bff1){const _0x16f148=_0x2db13b(this['attributes']);_0x4e79b8(_0x16f148,_0x56bff1),this['_update']({'attributes':_0x16f148});}['_update'](_0x26172b,_0x14b250=!0x1){let _0x136e6d=!0x1;const _0x4a337f={'id':this['id']},_0x34717f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x121907 of _0x34717f){const _0x185c52=_0x26172b[_0x121907];void 0x0!==_0x185c52&&_0x185c52!==this[_0x121907]&&(this[_0x121907]=_0x185c52,_0x4a337f[_0x121907]=_0x185c52,_0x136e6d=!0x0);}_0x136e6d&&(_0x4a337f['authors']&&(_0x4a337f['authorsIds']=_0x4a337f['authors']['map'](_0x1c93cf=>_0x1c93cf['id']),delete _0x4a337f['authors']),this['fire']('_update',_0x4a337f,_0x14b250));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x573915=>_0x573915['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x53ef20{['_revisions'];static get['requires'](){return[_0x41560f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4057ba){super(_0x4057ba),this['_revisions']=new _0x34482f();}['afterInit'](){!async function(_0x34653f){const _0x28a5a0=_0x20cff4([0x6e,0x61,0x79,0x46,0x37,0x6a,0x54,0x6b,0x4f,0x65,0x56,0x32,0x6d,0x4d,0x38,0x6f,0x48,0x50,0x5a,0x64,0x39,0x74,0x43,0x7a,0x51,0x34,0x73,0x57,0x47,0x33,0x42,0x45,0x66,0x58,0x35,0x68,0x59,0x4c,0x71,0x72,0x52,0x41,0x53,0x4e,0x75,0x4b,0x63,0x62,0x36,0x4a,0x30,0x49,0x78,0x77,0x55,0x67,0x76,0x6c,0x69,0x31,0x70,0x44]),_0x17088c=0xeb829,_0x116a75=0x462f24dd,_0x3ff648=0x46284c4d^_0x116a75,_0x2ea0c8=window[_0x20cff4([0x44,0x61,0x74,0x65])][_0x20cff4([0x6e,0x6f,0x77])](),_0xef9b48=_0x34653f[_0x20cff4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ad44b=new window[(_0x20cff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x472af2=>{_0xef9b48[_0x20cff4([0x6f,0x6e,0x63,0x65])](_0x20cff4([0x72,0x65,0x61,0x64,0x79]),_0x472af2);}),_0x10f2ee={[_0x20cff4([0x6b,0x74,0x79])]:_0x20cff4([0x45,0x43]),[_0x20cff4([0x75,0x73,0x65])]:_0x20cff4([0x73,0x69,0x67]),[_0x20cff4([0x63,0x72,0x76])]:_0x20cff4([0x50,0x2d,0x32,0x35,0x36]),[_0x20cff4([0x78])]:_0x20cff4([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]),[_0x20cff4([0x79])]:_0x20cff4([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]),[_0x20cff4([0x61,0x6c,0x67])]:_0x20cff4([0x45,0x53,0x32,0x35,0x36])},_0x295198=_0xef9b48[_0x20cff4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20cff4([0x67,0x65,0x74])](_0x20cff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb2c326(){let _0x46f866,_0x36d088=null,_0x360275=null;try{if(_0x295198==_0x20cff4([0x47,0x50,0x4c]))return _0x20cff4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x46f866=_0x185fd5(),!_0x46f866)return _0x20cff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x46f866[_0x20cff4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x360275=_0x443e41(_0x46f866[_0x20cff4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x46f866[_0x20cff4([0x6a,0x74,0x69])])),await _0x5b6a82()?_0x8bd98c()?_0x2d0c85()?_0x20cff4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2edbc5()?(_0x46f866[_0x20cff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20cff4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36d088=_0x3bf4b3(_0x20cff4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x46f866[_0x20cff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20cff4([0x74,0x72,0x69,0x61,0x6c])&&(_0x36d088=_0x3bf4b3(_0x20cff4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1fbb33()):_0x20cff4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20cff4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20cff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1ca064){return _0x20cff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d0c85(){const _0x2033fa=[_0x20cff4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20cff4([0x74,0x72,0x69,0x61,0x6c])][_0x20cff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46f866[_0x20cff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ea0c8/0x3e8:0xe10*_0x3ff648;return _0x46f866[_0x20cff4([0x65,0x78,0x70])]<_0x2033fa;}function _0x8bd98c(){const _0x35caa8=_0x46f866[_0x20cff4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x35caa8)return!0x1;if(_0x35caa8[_0x20cff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20cff4([0x2a])))return!0x0;if(_0x35caa8[_0x20cff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20cff4([0x52,0x48])))return!0x0;if(_0x35caa8[_0x20cff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20cff4([0x52,0x52,0x48]))){if(_0x2ddc47())return!0x0;if(_0x1d3f85()||_0x28c55b())return!0x0;}return!0x1;}function _0x2edbc5(){const _0x50c7da=_0x46f866[_0x20cff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50c7da||0x0==_0x50c7da[_0x20cff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a30cd}=new URL(window[_0x20cff4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50c7da[_0x20cff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a30cd))return!0x0;const _0x12010d=_0x1a30cd[_0x20cff4([0x73,0x70,0x6c,0x69,0x74])](_0x20cff4([0x2e]));return _0x50c7da[_0x20cff4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25e921=>_0x25e921[_0x20cff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20cff4([0x2a])))[_0x20cff4([0x6d,0x61,0x70])](_0x5b04dd=>_0x5b04dd[_0x20cff4([0x73,0x70,0x6c,0x69,0x74])](_0x20cff4([0x2e])))[_0x20cff4([0x73,0x6f,0x6d,0x65])](_0x43859d=>_0x12010d[_0x20cff4([0x65,0x76,0x65,0x72,0x79])]((_0x5ea9a5,_0x394b20)=>_0x43859d[_0x394b20]===_0x5ea9a5||_0x43859d[_0x394b20]===_0x20cff4([0x2a])));}function _0x1fbb33(){return _0x36d088&&_0x360275?new window[(_0x20cff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43fab3,_0xbe909b)=>{_0x36d088[_0x20cff4([0x74,0x68,0x65,0x6e])](_0x43fab3,_0xbe909b),_0x360275[_0x20cff4([0x74,0x68,0x65,0x6e])](_0x15a39b=>{_0x15a39b!=_0x20cff4([0x56,0x61,0x6c,0x69,0x64])&&_0x43fab3(_0x15a39b);},_0xbe909b);}):_0x36d088||_0x360275||_0x20cff4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x443e41(_0x5704e6,_0x373187){return new window[(_0x20cff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbe2532=>{if(_0x42a955())return _0xbe2532(_0x20cff4([0x56,0x61,0x6c,0x69,0x64]));_0x33528e(),_0xef9b48[_0x20cff4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20cff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1645db=!0x1;const _0x1975f9=_0x2edd7b();function _0x1cb337(_0x188f55){return!!_0x188f55&&(typeof _0x188f55===_0x20cff4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x188f55===_0x20cff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x188f55[_0x20cff4([0x74,0x68,0x65,0x6e])]===_0x20cff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x188f55[_0x20cff4([0x63,0x61,0x74,0x63,0x68])]===_0x20cff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x148733(_0x1ac529){_0xa625ae(_0x1ac529)[_0x20cff4([0x74,0x68,0x65,0x6e])](_0x17bc76=>{if(!_0x17bc76||_0x17bc76[_0x20cff4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20cff4([0x6f,0x6b]))return _0x20cff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27e755(_0x36e5f7(_0x1975f9+_0x373187))!=_0x17bc76[_0x20cff4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20cff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20cff4([0x56,0x61,0x6c,0x69,0x64]);})[_0x20cff4([0x74,0x68,0x65,0x6e])](_0x3ba55c=>(_0x4c565c(),_0x3ba55c),()=>{const _0x2c2666=_0x55de83();return null==_0x2c2666?(_0x4c565c(),_0x20cff4([0x56,0x61,0x6c,0x69,0x64])):_0x20cff4(_0x2ea0c8-_0x2c2666>(0x6223a0dd^_0x116a75)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20cff4([0x74,0x68,0x65,0x6e])](_0xbe2532)[_0x20cff4([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbe2532(_0x20cff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53e9ef=0x4619ca5d^_0x116a75;function _0x4c565c(){const _0x23dfd1=_0x20cff4([0x6c,0x6c,0x63,0x74,0x2d])+_0x27e755(_0x36e5f7(_0x5704e6)),_0x82f9dc=_0x440fa0(_0x27e755(window[_0x20cff4([0x4d,0x61,0x74,0x68])][_0x20cff4([0x63,0x65,0x69,0x6c])](_0x2ea0c8/_0x53e9ef)));window[_0x20cff4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20cff4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23dfd1,_0x82f9dc);}function _0x55de83(){const _0x54bfc4=_0x20cff4([0x6c,0x6c,0x63,0x74,0x2d])+_0x27e755(_0x36e5f7(_0x5704e6)),_0xa03f47=window[_0x20cff4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20cff4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54bfc4);return _0xa03f47?window[_0x20cff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x440fa0(_0xa03f47),0x10)*_0x53e9ef:null;}function _0xa625ae(_0x4bebf4){return new window[(_0x20cff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20c2b3,_0x2865da)=>{_0x4bebf4[_0x20cff4([0x74,0x68,0x65,0x6e])](_0x20c2b3,_0x2865da),window[_0x20cff4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2865da,0x462ef01d^_0x116a75);});}}_0xef9b48[_0x20cff4([0x6f,0x6e])](_0x20cff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49dde1,_0x869c84)=>{if(_0x869c84[0x0]!=_0x5704e6)return _0xbe2532(_0x20cff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x869c84[0x1]={..._0x869c84[0x1],[_0x20cff4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1975f9};},{[_0x20cff4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20cff4([0x68,0x69,0x67,0x68])}),_0xef9b48[_0x20cff4([0x6f,0x6e])](_0x20cff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5dae29=>{_0x1cb337(_0x5dae29[_0x20cff4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1645db=!0x0,_0x148733(_0x5dae29[_0x20cff4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20cff4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20cff4([0x6c,0x6f,0x77])}),_0x1ad44b[_0x20cff4([0x74,0x68,0x65,0x6e])](()=>{_0x1645db||_0xbe2532(_0x20cff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42a955(){return _0xef9b48[_0x20cff4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20cff4([0x76,0x69,0x65,0x77])][_0x20cff4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20cff4([0x61,0x75,0x74,0x6f]);}function _0x33528e(){_0xef9b48[_0x20cff4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20cff4([0x76,0x69,0x65,0x77])][_0x20cff4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20cff4([0x61,0x75,0x74,0x6f]);}}function _0x3bf4b3(_0x56098d){const _0x2a8dd5=[new window[(_0x20cff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41f10d=>setTimeout(_0x41f10d,0x46261a11^_0x116a75)),_0x1ad44b[_0x20cff4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20cff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf96aea=>{const _0x381c98=0x462f24da^_0x116a75,_0x36cf5f=_0x34653f[_0x20cff4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x502ccc(){_0x36cf5f[_0x20cff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x381c98&&_0xf96aea();}_0x502ccc(),_0x36cf5f[_0x20cff4([0x6f,0x6e])](_0x20cff4([0x61,0x64,0x64]),_0x502ccc);})),new window[(_0x20cff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1102c2=>{function _0x4aff57(){for(const _0x4e6a74 in window)if(window[_0x20cff4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x20cff4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e6a74))&&window[_0x4e6a74]==_0x17088c)return _0x1102c2();_0xef9b48[_0x20cff4([0x73,0x74,0x61,0x74,0x65])]!=_0x20cff4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x20cff4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4aff57,0x462f3755^_0x116a75);}_0x45718d(_0x20cff4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4aff57();})];return window[_0x20cff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20cff4([0x72,0x61,0x63,0x65])](_0x2a8dd5)[_0x20cff4([0x74,0x68,0x65,0x6e])](()=>_0x56098d);}async function _0x296310(){if(await _0x1ad44b,_0x45718d(_0x20cff4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xf8f606=_0x34653f[_0x20cff4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3e416b=_0x34653f[_0x20cff4([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])](_0xf8f606[_0x20cff4([0x69,0x64])]),_0x52951a=_0x20c5b9(_0x20cff4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x52951a[_0x20cff4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xf8f606['id'],_0x3e416b?_0x3e416b['id']:null,!0x0),_0x52951a[_0x20cff4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x20cff4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x52951a[_0x20cff4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x52951a[_0x20cff4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x40df1d,void(_0x52951a[_0x20cff4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x40df1d);}if(_0x45718d(_0x20cff4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x50d15c=_0x20c5b9(_0x20cff4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x50d15c[_0x20cff4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x20cff4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x50d15c[_0x20cff4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x50d15c[_0x20cff4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x40df1d,_0x50d15c[_0x20cff4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x40df1d;}_0xef9b48[_0x20cff4([0x6d,0x6f,0x64,0x65,0x6c])][_0x20cff4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40df1d,_0xef9b48[_0x20cff4([0x6d,0x6f,0x64,0x65,0x6c])][_0x20cff4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40df1d,_0xef9b48[_0x20cff4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20cff4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ddc47(){return _0x45718d(_0x20cff4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x20c5b9(_0x20cff4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x20cff4([0x73,0x74,0x61,0x74,0x65])]==_0x20cff4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1d3f85(){return _0x45718d(_0x20cff4([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 _0x28c55b(){return _0x45718d(_0x20cff4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x23b111(_0x42e58d){const _0x1b238a=_0x12b8a1();_0xef9b48[_0x1b238a]=_0x20cff4([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])+_0x42e58d,_0x42e58d[_0x20cff4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x20cff4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x12b8a1()]=_0x17088c),_0x42e58d!=_0x20cff4([0x56,0x61,0x6c,0x69,0x64])&&_0x296310();}function _0x12b8a1(){const _0x4ac07f=window[_0x20cff4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20cff4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20cff4([0x6e,0x6f,0x77])]())[_0x20cff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20cff4([0x2e]),'');let _0x146da1=_0x20cff4([0x6e]);for(let _0x51f1f8=0x0;_0x51f1f8<_0x4ac07f[_0x20cff4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51f1f8+=0x2){let _0x52bd66=window[_0x20cff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ac07f[_0x20cff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51f1f8,_0x51f1f8+0x2));_0x52bd66>=_0x28a5a0[_0x20cff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52bd66-=_0x28a5a0[_0x20cff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x146da1+=_0x28a5a0[_0x52bd66];}return _0x146da1;}function _0x185fd5(){const _0x1d9f71=_0x295198[_0x20cff4([0x73,0x70,0x6c,0x69,0x74])](_0x20cff4([0x2e]));if(0x3!=_0x1d9f71[_0x20cff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x914527(_0x1d9f71[0x1]);function _0x914527(_0x357417){const _0x17d6da=_0x2486b2(_0x357417);return _0x17d6da&&_0x161fd5()?_0x17d6da:null;function _0x161fd5(){const _0x442141=_0x17d6da[_0x20cff4([0x6a,0x74,0x69])],_0x1c5f0b=window[_0x20cff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x442141[_0x20cff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x442141[_0x20cff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30a3a0={..._0x17d6da,[_0x20cff4([0x6a,0x74,0x69])]:_0x442141[_0x20cff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x442141[_0x20cff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30a3a0[_0x20cff4([0x76,0x63])],_0x36e5f7(_0x30a3a0)==_0x1c5f0b;}}}async function _0x5b6a82(){let _0x62eb39=!0x0;try{const _0x5108dd=_0x295198[_0x20cff4([0x73,0x70,0x6c,0x69,0x74])](_0x20cff4([0x2e])),[_0x5aab4c,_0x1a9b29,_0x12ff09]=_0x5108dd;return _0x3344cf(_0x5aab4c),await _0x5850ed(_0x5aab4c,_0x1a9b29,_0x12ff09),_0x62eb39;}catch(_0x3230dd){return!0x1;}function _0x3344cf(_0x2c90e7){const _0x1e5008=_0x2486b2(_0x2c90e7);_0x1e5008&&_0x1e5008[_0x20cff4([0x61,0x6c,0x67])]==_0x20cff4([0x45,0x53,0x32,0x35,0x36])||(_0x62eb39=!0x1);}async function _0x5850ed(_0x50c71c,_0x125bcb,_0x391843){const _0x57e8f6=window[_0x20cff4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20cff4([0x66,0x72,0x6f,0x6d])](_0x1f9195(_0x391843),_0x99d2fe=>_0x99d2fe[_0x20cff4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x360e2d=new window[(_0x20cff4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20cff4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50c71c+_0x20cff4([0x2e])+_0x125bcb),_0x30160b=window[_0x20cff4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20cff4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30160b)return;const _0x544eb4=await _0x30160b[_0x20cff4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20cff4([0x6a,0x77,0x6b]),_0x10f2ee,{[_0x20cff4([0x6e,0x61,0x6d,0x65])]:_0x20cff4([0x45,0x43,0x44,0x53,0x41]),[_0x20cff4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20cff4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20cff4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30160b[_0x20cff4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20cff4([0x6e,0x61,0x6d,0x65])]:_0x20cff4([0x45,0x43,0x44,0x53,0x41]),[_0x20cff4([0x68,0x61,0x73,0x68])]:{[_0x20cff4([0x6e,0x61,0x6d,0x65])]:_0x20cff4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x544eb4,_0x57e8f6,_0x360e2d)||(_0x62eb39=!0x1);}}function _0x2486b2(_0x194d30){return _0x194d30[_0x20cff4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20cff4([0x65,0x79]))?JSON[_0x20cff4([0x70,0x61,0x72,0x73,0x65])](_0x1f9195(_0x194d30)):null;}function _0x1f9195(_0x797bf2){return window[_0x20cff4([0x61,0x74,0x6f,0x62])](_0x797bf2[_0x20cff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20cff4([0x2b]))[_0x20cff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20cff4([0x2f])));}function _0x36e5f7(_0x3c672e){let _0x520c68=0x1505;function _0xb3196a(_0x5193a5){for(let _0x17b99c=0x0;_0x17b99c<_0x5193a5[_0x20cff4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17b99c++){const _0x532e17=_0x5193a5[_0x20cff4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17b99c);_0x520c68=(_0x520c68<<0x5)+_0x520c68+_0x532e17,_0x520c68&=_0x520c68;}}function _0x5b9f85(_0x59c25e){Array[_0x20cff4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59c25e)?_0x59c25e[_0x20cff4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b9f85):_0x59c25e&&typeof _0x59c25e==_0x20cff4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20cff4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59c25e)[_0x20cff4([0x73,0x6f,0x72,0x74])]()[_0x20cff4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50e6e7,_0x9e591d])=>{_0xb3196a(_0x50e6e7),_0x5b9f85(_0x9e591d);}):_0xb3196a(window[_0x20cff4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59c25e));}return _0x5b9f85(_0x3c672e),_0x520c68>>>0x0;}function _0x27e755(_0x56f8c0){return _0x56f8c0[_0x20cff4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20cff4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20cff4([0x30]));}function _0x440fa0(_0xc8e42a){return _0xc8e42a[_0x20cff4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20cff4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20cff4([0x6a,0x6f,0x69,0x6e])]('');}function _0x45718d(_0x1e122e){return _0xef9b48[_0x20cff4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20cff4([0x68,0x61,0x73])](_0x1e122e);}function _0x20c5b9(_0x4b1913){return _0xef9b48[_0x20cff4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20cff4([0x67,0x65,0x74])](_0x4b1913);}function _0x40df1d(){}function _0x20cff4(_0x3f4fb8){return _0x3f4fb8['map'](_0x4484cf=>String['fromCharCode'](_0x4484cf))['join']('');}_0x23b111(await _0xb2c326());}(this);}['createRevision'](_0x21563c){const _0x2afd75=this['editor']['plugins']['get']('Users');return new h({'id':_0x21563c['id'],'name':_0x21563c['name'],'creator':_0x21563c['creatorId']?_0x2afd75['getUser'](_0x21563c['creatorId']):null,'diffData':_0x21563c['diffData']||_0x21563c['data'],'authors':_0x21563c['authorsIds']['map'](_0x127cfc=>_0x2afd75['getUser'](_0x127cfc)),'createdAt':new Date(_0x21563c['createdAt']),'attributes':_0x21563c['attributes'],'fromVersion':_0x21563c['fromVersion'],'toVersion':_0x21563c['toVersion']});}['addRevision'](_0xaada57,_0x31ee56=0x0){this['_revisions']['add'](_0xaada57,_0x31ee56);}['getRevision'](_0x5bcebf){return this['_revisions']['get'](_0x5bcebf);}['getRevisions'](_0x3f0b30={'toJSON':!0x1}){const _0x159ec6=Array['from'](this['_revisions']);return _0x159ec6['reverse'](),_0x3f0b30['toJSON']?_0x159ec6['map'](_0x28c56a=>_0x28c56a['toJSON']()):_0x159ec6;}['getIndex'](_0x34ae40){return this['_revisions']['getIndex'](_0x34ae40);}['getEarlierVisibleRevision'](_0x17b992){const [,_0x1c6e12]=this['getRevisionsIterator'](_0x17b992,{'direction':'earlier'});return _0x1c6e12;}['getLaterVisibleRevision'](_0x334a3f){const [,_0x160dc6]=this['getRevisionsIterator'](_0x334a3f,{'direction':'later'});return _0x160dc6;}['getRevisionsInDiff'](_0x4e78a6){const _0x4f3aea=[];for(const _0x2a42fb of this['getRevisionsIterator'](_0x4e78a6['newRevisionId']))if(_0x4f3aea['push'](_0x2a42fb),_0x2a42fb['id']===_0x4e78a6['oldRevisionId'])break;return _0x4f3aea;}*['getRevisionsIterator'](_0x8de018,{direction:_0x367966='earlier',filter:_0x4ef394=()=>!0x0}={}){const _0x341192='earlier'===_0x367966?0x1:-0x1;let _0x4e718f=this['_revisions']['get'](_0x8de018),_0x487e66=this['getIndex'](_0x4e718f);for(yield _0x4e718f;_0x4e718f;){if(_0x487e66+=_0x341192,_0x4e718f=this['getRevision'](_0x487e66),!_0x4e718f)return;_0x4ef394(_0x4e718f)&&(yield _0x4e718f);}}}class V extends _0x53ef20{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x42bbda,'c'],[_0x36f542,'a'],[_0x1277dd,'e'],[_0x3e9162,'r'],[_0x15b3a9,'u']]);['_typeCharToViewClass']=new Map([['c',_0x42bbda],['a',_0x36f542],['e',_0x1277dd],['r',_0x3e9162],['u',_0x15b3a9]]);async['loadRevisionData'](_0x257dec,_0x586f65){if(_0x257dec['diffData']||!_0x586f65)return;const _0x553dd3=this['editor']['config']['get']('collaboration.channelId'),_0x580b63=await _0x586f65['getRevision']({'channelId':_0x553dd3,'revisionId':_0x257dec['id']});_0x257dec['diffData']=_0x580b63['diffData'];}['getRevisionDocumentData'](_0x11d796){const _0x4d5494={};for(const _0x4d788f in _0x11d796['diffData']){if(_0x11d796['diffData'][_0x4d788f]['attachChange']&&!_0x11d796['diffData'][_0x4d788f]['attachChange']['isAttached'])continue;const _0x1d7de2=this['_removeRevisionMarkers'](JSON['parse'](_0x11d796['diffData'][_0x4d788f]['insertions'])),_0x4f27b7=this['editor']['editing']['view']['document'],_0xae9437=new _0x8938bf(_0x4f27b7,_0x1d7de2['map'](_0x348be8=>this['_getViewFromDiffObj'](_0x348be8,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4d5494[_0x4d788f]=this['editor']['data']['processor']['toData'](_0xae9437),this['editor']['data']['processor']['useFillerType']('default');}return _0x4d5494;}['getRevisionRootsAttributes'](_0x43e0a9){const _0x12a15f={};for(const _0x1664d1 in _0x43e0a9['diffData'])_0x43e0a9['diffData'][_0x1664d1]['attachChange']&&!_0x43e0a9['diffData'][_0x1664d1]['attachChange']['isAttached']||(_0x12a15f[_0x1664d1]=_0x43e0a9['diffData'][_0x1664d1]['attributesAfter']||{});return _0x12a15f;}['_getTypeCharForViewElement'](_0x3fb378){return this['_viewClassToTypeChar']['get'](_0x3fb378['constructor']);}['_getViewFromDiffObj'](_0x20e4e4,_0x5e94e7){const _0xe3d209=this['editor']['editing']['view']['document'];if('string'==typeof _0x20e4e4)return new _0x65cc58(_0xe3d209,_0x20e4e4);{let _0x52996b,_0x5cb95b;_0x5cb95b='u'==_0x20e4e4['type']||'r'==_0x20e4e4['type']?[]:_0x20e4e4['children']['map'](_0x3f1af2=>this['_getViewFromDiffObj'](_0x3f1af2,_0x5e94e7));const _0x36a6fb=this['_typeCharToViewClass']['get'](_0x20e4e4['type'])||_0x3343b5,_0x37a4fe=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x52996b=new _0x36a6fb(_0xe3d209,_0x20e4e4['name'],_0x20e4e4['attributes'],_0x5cb95b),'u'==_0x20e4e4['type']&&_0x20e4e4['children'][0x0]){const _0x57e835=_0x20e4e4['children'][0x0];if(_0x52996b['render']=function(_0x1a5a25){const _0x48f598=_0x1a5a25['createElement']('div');return _0x48f598['innerHTML']=_0x57e835,_0x48f598['childNodes'][0x0];},_0x5e94e7){const _0x3a7610=new _0x8938bf(_0xe3d209);_0x3a7610['_appendChild'](_0x52996b);const _0x2e6d2d=Array['from'](_0x37a4fe['viewChildrenToDom'](_0x3a7610,{'bind':!0x1})),_0x45430a=_0x37a4fe['domDocument']['createElement']('div');_0x45430a['append'](..._0x2e6d2d),_0x52996b=Array['from'](_0x37a4fe['domChildrenToView'](_0x45430a))[0x0];}}else{if('r'==_0x20e4e4['type']&&_0x20e4e4['children'][0x0]){const _0x448b52=_0x20e4e4['children'][0x0];if(_0x52996b['render']=function(_0x77b6ef){_0x77b6ef['innerHTML']=_0x448b52;},_0x5e94e7){const _0xaf1725=new _0x8938bf(_0xe3d209);_0xaf1725['_appendChild'](_0x52996b);const _0x1222e8=Array['from'](_0x37a4fe['viewChildrenToDom'](_0xaf1725,{'bind':!0x1})),_0x3f11ba=_0x37a4fe['domDocument']['createElement']('div');_0x3f11ba['append'](..._0x1222e8);const _0x4ac39d=Array['from'](_0x37a4fe['domChildrenToView'](_0x3f11ba));_0x4ac39d['length']>0x1?_0x52996b['_appendChild'](_0x4ac39d):_0x52996b=_0x4ac39d[0x0];}}}if(_0x20e4e4['customProperties']){for(const [_0x4ac2fe,_0x3bdaf1]of _0x20e4e4['customProperties'])_0x52996b['_setCustomProperty'](_0x4ac2fe,_0x3bdaf1);}const _0x454b36=void 0x0===_0x20e4e4['fillerOffset']?null:_0x20e4e4['fillerOffset'];return null!==_0x454b36&&(_0x52996b['getFillerOffset']=()=>_0x454b36),_0x52996b;}}['_makeModelFromViewString'](_0x390238){const _0x575197=JSON['parse'](_0x390238),_0x68fbe7=this['editor']['editing']['view']['document'],_0x46883d=new _0x8938bf(_0x68fbe7,_0x575197['map'](_0x17b032=>this['_getViewFromDiffObj'](_0x17b032,!0x0)));return this['editor']['data']['toModel'](_0x46883d);}['_removeRevisionMarkers'](_0x9379cb){return(_0x9379cb=_0x9379cb['filter'](_0x17098a=>!_0x17098a['name']||'revision-start'!==_0x17098a['name']&&'revision-end'!==_0x17098a['name']))['forEach'](_0x3f7985=>{'string'!=typeof _0x3f7985&&(_0x3f7985['children']=this['_removeRevisionMarkers'](_0x3f7985['children']),_0x3f7985['attributes']=_0x3f7985['attributes']['filter'](_0x2d0bcc=>!_0x2d0bcc[0x0]['startsWith']('data-revision-')));}),_0x9379cb;}}function g(_0x3c8271,_0x115204,_0x313843){const t=_0x3c8271['t'];switch(_0x115204){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'},_0x313843);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x313843);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x53ef20{['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[_0x41560f,I,V,_0x55028e];}constructor(_0x57bdeb){super(_0x57bdeb),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x352025=_0x2edd7b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x352025},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 _0x241292=this['repository']['getRevision'](0x0),_0x5ede3d=_0x241292&&null===_0x241292['creator']?_0x241292:null;if(this['_continueCurrentRevision']=!!_0x5ede3d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4b214d=this['_source']['getCurrentRevisionId'](),_0x5f4db2=this['repository']['getRevision'](_0x4b214d);if(_0x5f4db2)this['_startingVersion']=_0x5f4db2['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3c4879=this['_source']['history']['_operations']['find'](_0x31f902=>!_0x31f902['_isInit']),_0x5bf061=_0x3c4879?_0x3c4879['baseVersion']:this['_source']['history']['version'];_0x241292?(_0x241292['toVersion']<_0x5bf061&&_0x241292['_update']({'toVersion':_0x5bf061}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5ede3d['id'],this['_startingVersion']=_0x5ede3d['fromVersion']):(this['_startingVersion']=_0x241292['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5bf061,this['_continueCurrentRevision']=!0x1);}}else _0x5ede3d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5ede3d['toVersion'],this['editor']['model']['document']['history']['version']),_0x5ede3d['fromVersion']===_0x5ede3d['toVersion']?(0x0!==_0x5ede3d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5ede3d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5ede3d['id'],this['_startingVersion']=_0x5ede3d['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',_0x547688=>!_0x547688),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x169f4b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8569cc;for(const _0x28d90f in _0x169f4b){const _0x283088=_0x28d90f,_0xe8b2d4=_0x169f4b[_0x283088];if('revisionHistoryLicenseKeyValid'==_0xe8b2d4||'revisionHistoryLicenseKeyInvalid'==_0xe8b2d4||'revisionHistoryLicenseKeyExpired'==_0xe8b2d4||'revisionHistoryLicenseKeyDomainLimit'==_0xe8b2d4||'revisionHistoryLicenseKeyNotAllowed'==_0xe8b2d4||'revisionHistoryLicenseKeyEvaluationLimit'==_0xe8b2d4||'revisionHistoryLicenseKeyTrialLimit'==_0xe8b2d4||'revisionHistoryLicenseKeyUsageLimit'==_0xe8b2d4){delete _0x169f4b[_0x283088],_0x8569cc=_0xe8b2d4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x8569cc&&_0x169f4b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x8569cc&&_0x169f4b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x8569cc&&_0x169f4b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x8569cc&&_0x169f4b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x8569cc&&_0x169f4b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x8569cc&&_0x169f4b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x8569cc&&_0x169f4b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x450e68=this['repository']['getRevision'](0x0),_0xd2df5d=await this['getRevisionDocumentData'](_0x450e68),_0x5de239=await this['getRevisionRootsAttributes'](_0x450e68);this['_replaceEditorDataWithRevisionData'](_0xd2df5d,_0x5de239);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x428f10){this['_source']=_0x428f10;}async['update'](){const _0x25d3a0=await this['_source']['getLatestVersion']();if(_0x25d3a0>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1c4dbd=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x25d3a0});_0x1c4dbd['authors']=_0x1c4dbd['authorsIds']['map'](_0x4d9a59=>this['editor']['plugins']['get']('Users')['getUser'](_0x4d9a59)),this['currentRevision']['_update'](_0x1c4dbd);}}async['saveRevision'](_0x38111c={},_0x2830e5=null){const _0x525fad=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2830e5>this['currentRevision']['toVersion']&&(_0x2830e5=null),null===_0x2830e5&&(_0x2830e5=await this['_source']['getLatestVersion']());const _0x2e4a96=this['_getFromVersion'](_0x2830e5),_0x425e13=this['buildRevisionData']({'from':_0x2e4a96,'to':_0x2830e5});if(this['currentRevision']['toVersion']<_0x2830e5){const _0xc8353b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2830e5,'to':_0x2830e5});_0xc8353b['authors']=[],_0xc8353b['authorsIds']=[],_0xc8353b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xc8353b,!0x0),delete _0xc8353b['authors'],_0x525fad['push'](_0xc8353b);}_0x38111c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x38111c['name']=_0x38111c['name']||null,_0x38111c['id']=_0x38111c['id']||_0x2edd7b(),_0x38111c={..._0x38111c,..._0x425e13};const _0x7619a9=this['addRevisionData'](_0x38111c);_0x525fad['push'](_0x38111c);const _0x57bb64=this['repository']['getIndex'](_0x7619a9);if(0x0!==_0x57bb64){const _0x576683=this['repository']['getRevision'](_0x57bb64-0x1);if(_0x576683['fromVersion']!==_0x2830e5){const _0x1d686b=this['_revisionDataBuilder']['getData'](_0x2830e5,_0x576683['toVersion']),_0x25c331={'id':_0x576683['id'],'diffData':_0x1d686b['diffData'],'authorsIds':_0x1d686b['authorsIds'],'authors':_0x1d686b['authorsIds']['map'](_0xaedc5c=>this['editor']['plugins']['get']('Users')['getUser'](_0xaedc5c)),'fromVersion':_0x2830e5};_0x576683===this['currentRevision']&&(_0x25c331['createdAt']=new Date(_0x38111c['createdAt']['getTime']()+0xa)),_0x576683['_update'](_0x25c331,!0x0),delete _0x25c331['authors'],_0x525fad['push'](_0x25c331);}}if(this['adapter']){for(const _0x70cfdb of _0x525fad)this['_bufferUpdate'](_0x70cfdb['id'],_0x70cfdb,!0x0);this['sendBufferedUpdates']();}return _0x7619a9;}['addRevisionData'](_0x2bebc7){const _0x6e86ad=this['repository']['createRevision'](_0x2bebc7);return this['adapter']&&_0x6e86ad['on']('_update',(_0x511204,_0x1726a4,_0x380301)=>{_0x380301||(this['_bufferUpdate'](_0x1726a4['id'],_0x1726a4,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x6e86ad,this['_findInsertionIndex'](_0x6e86ad)),_0x6e86ad;}async['getRevisionDocumentData'](_0x22e1e6){return await this['_utils']['loadRevisionData'](_0x22e1e6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x22e1e6);}async['getRevisionRootsAttributes'](_0x35d07e){return await this['_utils']['loadRevisionData'](_0x35d07e,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x35d07e);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x29ac8c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x6f6eb1=0x0;_0x6f6eb1<_0x29ac8c['length'];_0x6f6eb1++){const _0x417940=_0x29ac8c[_0x6f6eb1];let _0x224270=!0x1;for(const _0x2cdb39 of Object['keys'](_0x417940))void 0x0===_0x417940[_0x2cdb39]?delete _0x417940[_0x2cdb39]:'id'!==_0x2cdb39&&(_0x224270=!0x0);_0x224270||(_0x29ac8c[_0x6f6eb1]=null);}if(_0x29ac8c=_0x29ac8c['filter'](_0x3fb471=>null!==_0x3fb471),!_0x29ac8c['length'])return;for(let _0x1d2104=0x0;_0x1d2104<_0x29ac8c['length'];_0x1d2104++){const _0x213b11=_0x29ac8c[_0x1d2104];void 0x0!==_0x213b11['fromVersion']&&void 0x0===_0x213b11['toVersion']&&(_0x213b11['toVersion']=this['repository']['getRevision'](_0x213b11['id'])['toVersion']),void 0x0!==_0x213b11['toVersion']&&void 0x0===_0x213b11['fromVersion']&&(_0x213b11['fromVersion']=this['repository']['getRevision'](_0x213b11['id'])['fromVersion']);}const _0xcf5206=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x29ac8c,_0xcf5206)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x523559=>{if(_0x523559){for(const _0xb0d68d of _0x523559)this['setRevisionData']({'id':_0xb0d68d['id'],'createdAt':_0xb0d68d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1c1c18=null,from:_0x3faf8b=null,to:_0x32a67e=null}){_0x3faf8b=null!==_0x3faf8b?_0x3faf8b:_0x1c1c18['fromVersion'],_0x32a67e=null!==_0x32a67e?_0x32a67e:_0x1c1c18['toVersion'];const _0x275249=this['_revisionDataBuilder']['getData'](_0x3faf8b,_0x32a67e),_0x34ff40={'diffData':_0x275249['diffData'],'authorsIds':_0x275249['authorsIds'],'fromVersion':_0x3faf8b,'toVersion':_0x32a67e};if(!_0x1c1c18||_0x32a67e!==_0x1c1c18['toVersion']){const _0x1c53c4=_0x32a67e-0x1,_0x2bb8ef=this['_source']['history']['getOperation'](_0x1c53c4);_0x34ff40['createdAt']=_0x2bb8ef&&_0x2bb8ef['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3faf8b===this['_loadedStateData']['fromVersion']){for(const _0x17baf4 of this['_loadedStateData']['authors'])_0x34ff40['authorsIds']['includes'](_0x17baf4['id'])||_0x34ff40['authorsIds']['push'](_0x17baf4['id']);}return _0x34ff40;}['_bufferUpdate'](_0x84a689,_0x19c64a,_0x143318){if(this['_bufferedUpdates']['has'](_0x84a689)){const _0x387a79=this['_bufferedUpdates']['get'](_0x84a689);_0x19c64a=_0x143318?{..._0x387a79,..._0x19c64a}:{..._0x19c64a,..._0x387a79};}this['_bufferedUpdates']['set'](_0x84a689,_0x19c64a);}['setRevisionData'](_0xe3eeee){const _0x2c44c0=this['repository']['getRevision'](_0xe3eeee['id']);if(_0xe3eeee['createdAt']&&(_0xe3eeee['createdAt']=new Date(_0xe3eeee['createdAt'])),_0xe3eeee['authorsIds']){const _0x541adc=this['editor']['plugins']['get']('Users');_0xe3eeee['authors']=_0xe3eeee['authorsIds']['map'](_0xe292a1=>_0x541adc['getUser'](_0xe292a1));}_0x2c44c0['_update'](_0xe3eeee,!0x0);}['_createInitialRevision'](_0xf4aff4){const _0x1b034a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1b034a)this['_initialRevisionId']=_0x1b034a['id'];else{const _0xc964b=!this['editor']['model']['document']['roots']['find'](_0x14013f=>this['editor']['model']['hasContent'](_0x14013f)),_0x282766=this['editor']['plugins']['get']('Users')['me']['id'],_0xbcb4d=g(this['editor']['locale'],_0xc964b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xf4aff4,'to':_0xf4aff4,'id':this['_initialRevisionId'],'name':_0xbcb4d,'creatorId':_0x282766});}}['_createCurrentRevision'](_0x54ecdd){const _0x582c2f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x582c2f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x54ecdd,'to':_0x54ecdd,'id':_0x582c2f,'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'](_0x2ea547,_0x88b1d4){let _0x1168c0=this['editor']['config']['get']('initialData'),_0x58f642=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1168c0){_0x1168c0={};for(const _0x1ffa2a of this['editor']['model']['document']['getRootNames']())_0x1168c0[_0x1ffa2a]='';}if('string'==typeof _0x1168c0&&(_0x1168c0={'main':_0x1168c0}),void 0x0===_0x58f642){_0x58f642={};for(const _0x555450 of this['editor']['model']['document']['getRootNames']())_0x58f642[_0x555450]={};}let _0x25a406=!0x1;const _0x512c8f=Object['keys'](_0x1168c0),_0x5ac75d=Object['keys'](_0x2ea547);for(const _0x37336f of _0x512c8f){if(_0x1168c0[_0x37336f]!==_0x2ea547[_0x37336f]&&''!==_0x1168c0[_0x37336f]['trim']()){_0x25a406=!0x0;break;}if(!_0x355bad(_0x58f642[_0x37336f],_0x88b1d4[_0x37336f])&&Object['keys'](_0x58f642[_0x37336f])['length']>0x0){_0x25a406=!0x0;break;}}_0x25a406||(_0x25a406=_0x5ac75d['some'](_0x32509b=>!this['editor']['model']['document']['getRoot'](_0x32509b))),_0x25a406&&_0x6118ee('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1168c0,'editorRootsAttributes':_0x58f642,'revisionData':_0x2ea547,'revisionRootsAttributes':_0x88b1d4}),this['editor']['config']['set']('initialData',_0x2ea547),this['editor']['config']['set']('rootsAttributes',_0x88b1d4);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xae733=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xae733['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xc80fe2){const _0x5225b0=this['repository']['getRevisions']();_0x5225b0['reverse']();let _0x16f10a=0x0;for(;_0x16f10a<_0x5225b0['length'];){const _0x2a1e0a=_0x5225b0[_0x16f10a];if(_0x2a1e0a===this['currentRevision']){_0x16f10a++;continue;}if(_0x2a1e0a['id']===this['_initialRevisionId'])break;const _0x230bca=_0xc80fe2['toVersion']-_0x2a1e0a['toVersion']||_0xc80fe2['fromVersion']-_0x2a1e0a['fromVersion'];if(_0x230bca>0x0)break;if(_0x230bca<0x0)_0x16f10a++;else{if(!_0xc80fe2['creator']&&_0x2a1e0a['creator'])break;if(_0x2a1e0a['creator']||!_0xc80fe2['creator']){if(_0xc80fe2['createdAt']>_0x2a1e0a['createdAt'])break;_0x16f10a++;}else _0x16f10a++;}}return _0x16f10a;}['_getFromVersion'](_0x5e8329){const _0x61507a=this['repository']['getRevisions']();_0x61507a['reverse'](),_0x61507a['shift']();const _0x250a60=_0x61507a['find'](_0x3b3019=>_0x3b3019['toVersion']<=_0x5e8329)['toVersion'];return _0x250a60<this['_startingVersion']?this['_startingVersion']:_0x250a60;}['_makeRevision']({name:_0x261344,from:_0x277ae8,to:_0x1639fd,creatorId:_0x3e347e,id:_0x8bda65}){const _0x5a8e8d=this['buildRevisionData']({'from':_0x277ae8,'to':_0x1639fd});_0x5a8e8d['name']=_0x261344,_0x5a8e8d['creatorId']=_0x3e347e,_0x5a8e8d['id']=_0x8bda65;const _0x585f25=this['addRevisionData'](_0x5a8e8d);return this['adapter']&&this['_bufferUpdate'](_0x5a8e8d['id'],_0x5a8e8d,!0x0),_0x585f25;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x30eaec){this['editor']=_0x30eaec,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'](_0x36ee1d){this['source']=_0x36ee1d;const _0x162c27=new Map(),_0x13c526=new Map(),_0x93db52=this['editor']['model']['document']['roots']['map'](_0x5badef=>_0x5badef['rootName']);for(const _0xabb0db of _0x93db52){const _0x347378=this['editor']['model']['document']['getRoot'](_0xabb0db),_0x49114c=N(_0x347378);_0x162c27['set'](_0xabb0db,_0x49114c),_0x13c526['set'](_0xabb0db,Object['fromEntries'](_0x347378['getAttributes']()));}const _0xfdf0a3=Array['from'](this['editor']['model']['markers'])['map'](_0x310c96=>[_0x310c96['name'],_0x310c96['getRange']()]),_0x1030fd=this['source']['version'];this['_saveMetaData'](_0x1030fd,_0x162c27,_0xfdf0a3,_0x13c526),this['_startingRevisionId']=this['_revisionId'];const _0x3632e5=new Map(),_0x5e3b97=new Map();for(const _0x36be37 of _0x93db52){const _0x30004b=P(_0x36be37);_0x3632e5['set'](_0x36be37,_0x30004b),_0x5e3b97['set'](_0x36be37,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3632e5,[],_0x5e3b97);}['getData'](_0x459a1e,_0x1f32ea){if(this['_lastFrom']===_0x459a1e&&this['_lastTo']<=_0x1f32ea)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1f32ea,!0x0);else{if(!this['_savedMetaData']['has'](_0x459a1e)){const _0x3ca3dc=this['_getPreviousFrom'](_0x459a1e);this['_calculateMetaData'](_0x3ca3dc,_0x459a1e,!0x1);}this['_calculateMetaData'](_0x459a1e,_0x1f32ea,!0x0);}return this['_lastFrom']=_0x459a1e,this['_lastTo']=_0x1f32ea,this['_getState']();}['loadState'](_0x44cc67){const _0x250ff9=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x44cc67['fromVersion'],this['_lastTo']=_0x44cc67['toVersion'];for(const _0x3b330b in _0x44cc67['diffData']){const _0x454885=_0x44cc67['diffData'][_0x3b330b]['attachChange'],_0x1abbeb=_0x2db13b(_0x44cc67['diffData'][_0x3b330b]['attributesBefore'])||{},_0x3ca5b7=_0x250ff9['_makeModelFromViewString'](_0x44cc67['diffData'][_0x3b330b]['deletions']);_0x3ca5b7['rootName']=_0x3b330b,_0x3ca5b7['_isAttached']=!_0x454885||!_0x454885['isAttached'],_0x3ca5b7['isAttached']=()=>_0x3ca5b7['_isAttached'],this['_baseRoots']['set'](_0x3b330b,_0x3ca5b7),this['_baseRootsAttributes']['set'](_0x3b330b,_0x1abbeb),_0x454885&&this['_touchedRoots']['set'](_0x3b330b,_0x454885);const _0x23320e=this['_makeIdsRoot'](_0x3ca5b7);this['_baseIdsRoots']['set'](_0x3b330b,_0x23320e);for(const [_0xcecd5f,_0x21911d]of _0x3ca5b7['markers']){if(!_0xcecd5f['startsWith']('revision:'))continue;const _0x28e059=_0xcecd5f['split'](':')[0x2];for(const _0xdd0500 of _0x21911d['getWalker']({'singleCharacters':!0x0})){const _0xe8c597=this['_getVidAttributeName'](_0xdd0500),_0x13f54d='elementEnd'==_0xdd0500['type']?_0xdd0500['previousPosition']['path']['slice'](0x0,-0x1):_0xdd0500['previousPosition']['path'],_0x11d224=_0x23320e['getNodeByPath'](_0x13f54d)['getAttribute'](_0xe8c597);this['_touched']['set'](_0x11d224,{'userId':_0x28e059});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4e424c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3642fd=>!this['_touched']['has'](_0x3642fd));let _0x166ab7=0x0;const _0x23602b=new Map();for(const _0x3c5da1 in _0x44cc67['diffData']){const _0x5b32c2=_0x44cc67['diffData'][_0x3c5da1]['attachChange'],_0x2a834f=_0x2db13b(_0x44cc67['diffData'][_0x3c5da1]['attributesAfter'])||{},_0x570c8a=_0x250ff9['_makeModelFromViewString'](_0x44cc67['diffData'][_0x3c5da1]['insertions']);_0x570c8a['rootName']=_0x3c5da1,_0x570c8a['_isAttached']=!_0x5b32c2||_0x5b32c2['isAttached'],_0x570c8a['isAttached']=()=>_0x570c8a['_isAttached'],this['_diffRoots']['set'](_0x3c5da1,_0x570c8a),this['_diffRootsAttributes']['set'](_0x3c5da1,_0x2a834f);const _0x461e0c=this['_makeIdsRoot'](_0x570c8a,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3c5da1,_0x461e0c),_0x23602b['set'](_0x3c5da1,_0x570c8a['isAttached']()?_0x2a834f:{});for(const [_0x4217ef,_0x5d13b6]of _0x570c8a['markers']){if(!_0x4217ef['startsWith']('revision:'))continue;const _0x381050=_0x4217ef['split'](':')[0x2];for(const _0x579788 of _0x5d13b6['getWalker']({'singleCharacters':!0x0})){const _0xcd5f8b=this['_getVidAttributeName'](_0x579788),_0x2e5592=this['_revisionId']++,_0x271f40='elementEnd'==_0x579788['type']?_0x579788['previousPosition']['path']['slice'](0x0,-0x1):_0x579788['previousPosition']['path'];_0x461e0c['getNodeByPath'](_0x271f40)['_setAttribute'](_0xcd5f8b,_0x2e5592),this['_touched']['set'](_0x2e5592,{'userId':_0x381050});}}for(const _0x5aa252 of this['editor']['model']['createRangeIn'](_0x570c8a)['getWalker']({'singleCharacters':!0x0})){const _0x170f34=this['_getVidAttributeName'](_0x5aa252),_0x1e1ce5='elementEnd'==_0x5aa252['type']?_0x5aa252['previousPosition']['path']['slice'](0x0,-0x1):_0x5aa252['previousPosition']['path'],_0x2f2054=_0x461e0c['getNodeByPath'](_0x1e1ce5);_0x2f2054['getAttribute'](_0x170f34)>0x0||_0x2f2054['_setAttribute'](_0x170f34,_0x4e424c[_0x166ab7++]);}for(const [_0x2bf3da,_0x2dde70]of _0x570c8a['markers'])_0x2bf3da['startsWith']('revision:')||this['_markers']['set'](_0x2bf3da,_0x2dde70);}const _0x33c2c2=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x33c2c2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33c2c2,0x1));const _0x454108=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x454108),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x454108,0x1));const _0x36440b=Array['from'](this['_diffRoots'])['map'](([_0x8e82e0,_0x4d96e0])=>[_0x8e82e0,N(_0x4d96e0)]);this['_saveMetaData'](this['_lastTo'],_0x36440b,this['_markers'],_0x23602b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x354bda,_0x38851b,_0x24a36f,_0x269129){const _0x38911e=new Map(_0x38851b),_0x24d1d1=new Map(_0x2db13b(_0x269129)),_0x5a7899=new Map();for(const [_0x2725ad,_0x333da4]of _0x24a36f)_0x5a7899['set'](_0x2725ad,{'start':_0x333da4['start']['clone'](),'end':_0x333da4['end']['clone'](),'rootName':_0x333da4['root']['rootName']});this['_savedMetaData']['set'](_0x354bda,{'roots':_0x38911e,'markers':_0x5a7899,'rootsAttributes':_0x24d1d1});}['_removeMetaData'](_0x1b93ba){this['_savedMetaData']['delete'](_0x1b93ba);}['_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'](_0x457769,_0x3f0ce9=null){let _0x580ae4=null;_0x457769['is']('documentFragment')||(_0x580ae4=new ut(_0x457769['name'],{'vid_start':null===_0x3f0ce9?this['_revisionId']++:_0x3f0ce9++}));const _0x4967db=[];for(const _0x3cce77 of _0x457769['getChildren']())if(_0x3cce77['is']('element')){_0x4967db['push'](this['_makeIdsRoot'](_0x3cce77,_0x3f0ce9));const _0x4de273=_0x4967db[_0x4967db['length']-0x1];null!==_0x3f0ce9&&(_0x3f0ce9=_0x4de273['is']('element','$text')?_0x4de273['getAttribute']('vid')+0x1:_0x4de273['getAttribute']('vid_end')+0x1);}else{for(let _0x98b20e=0x0;_0x98b20e<_0x3cce77['offsetSize'];_0x98b20e++)_0x4967db['push'](new ut('$text',{'vid':null===_0x3f0ce9?this['_revisionId']++:_0x3f0ce9++}));}if(_0x457769['is']('documentFragment')){const _0x4f4c0d=P(_0x457769['rootName']);return _0x4f4c0d['_insertChild'](0x0,_0x4967db),_0x4f4c0d;}return _0x580ae4['_setAttribute']('vid_end',null===_0x3f0ce9?this['_revisionId']++:_0x3f0ce9++),_0x580ae4['_insertChild'](0x0,_0x4967db),_0x580ae4;}['_calculateMetaData'](_0x5c479f,_0x5343d,_0x197aaa){this['_reset']();const {roots:_0x20a48b,markers:_0xe21f1b,rootsAttributes:_0x5736fc}=this['_savedMetaData']['get'](_0x5c479f);this['_baseRoots']=new Map(_0x20a48b),this['_baseRootsAttributes']=new Map(_0x2db13b(_0x5736fc));for(const [_0x2a80dd,_0x1fcc51]of this['_baseRoots'])if('$graveyard'!==_0x2a80dd&&(this['_diffRoots']['set'](_0x2a80dd,N(_0x1fcc51)),this['_diffRootsAttributes']=new Map(_0x2db13b(_0x5736fc)),_0x197aaa)){const _0x5f59cb=this['_revisionId'];this['_idsRoots']['set'](_0x2a80dd,this['_makeIdsRoot'](_0x1fcc51)),this['_baseIdsRoots']['set'](_0x2a80dd,this['_makeIdsRoot'](_0x1fcc51,_0x5f59cb));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x197aaa&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x16ab34,_0x4b5af4]of _0xe21f1b){const _0x279199=this['_baseRoots']['get'](_0x4b5af4['rootName']),_0x48a028=this['_diffRoots']['get'](_0x4b5af4['rootName']),_0x4a341d=new lt(this['_fixPosition'](_0x4b5af4['start'],_0x279199),this['_fixPosition'](_0x4b5af4['end'],_0x279199)),_0x52ae3b=this['_fixRange'](_0x4a341d,_0x48a028);_0x279199['markers']['set'](_0x16ab34,_0x4a341d),this['_markers']['set'](_0x16ab34,_0x52ae3b);}this['_applyOperations'](_0x5c479f,_0x5343d,_0x197aaa);}['_applyOperations'](_0x2336ec,_0x25c7b9,_0x20d739){for(const _0x5808ee of this['source']['getOperations'](_0x2336ec,_0x25c7b9))this['_handleOperation'](_0x5808ee,_0x20d739);for(const _0x40a4a2 of this['_diffRoots']['values']())_0x40a4a2['markers']['clear']();for(const [_0x2eeb4c,_0x263e23]of this['_markers']){this['_diffRoots']['get'](_0x263e23['root']['rootName'])['markers']['set'](_0x2eeb4c,_0x263e23['clone']());}const _0x1e4bfc=new Map(),_0x1c0cc1=new Map();for(const [_0x48e8c8,_0x3adb3f]of this['_diffRoots'])_0x1e4bfc['set'](_0x48e8c8,N(_0x3adb3f)),_0x1c0cc1['set'](_0x48e8c8,this['_diffRootsAttributes']['get'](_0x48e8c8));this['_saveMetaData'](_0x25c7b9,_0x1e4bfc,this['_markers'],_0x1c0cc1);}['_getPreviousFrom'](_0x2deb8c){const _0x823077=Array['from'](this['_savedMetaData']['keys']());_0x823077['sort']((_0x954325,_0x11356b)=>_0x954325-_0x11356b),_0x823077['reverse']();for(const _0x44e06a of _0x823077)if(_0x44e06a<_0x2deb8c)return _0x44e06a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5b996c,_0x3dd566){const _0x203ee6=Array['from'](_0x3dd566['markers'])['map'](([_0x193708,_0x2740e5])=>[_0x193708,this['_fixRange'](_0x2740e5,_0x5b996c)]);_0x5b996c['markers']=new Map(_0x203ee6);}['_transformMarkers'](_0x2b1c7b){for(const _0x5e59be of this['_markers']['values']()){const _0xafdc43=_0x5e59be['getTransformedByOperation'](_0x2b1c7b),_0x450221=lt['_createFromRanges'](_0xafdc43);_0x5e59be['start']=_0x450221['start'],_0x5e59be['end']=_0x450221['end'];}}['_handleOperation'](_0x295f0f,_0x454450){if('addRoot'!=_0x295f0f['type']&&'detachRoot'!=_0x295f0f['type']){if('insert'==_0x295f0f['type']){const _0x4428b1=_0x295f0f['position']['root']['rootName'];this['_diffRoots']['has'](_0x4428b1)||(this['_diffRoots']['set'](_0x4428b1,P(_0x4428b1,!0x0)),this['_diffRootsAttributes']['set'](_0x4428b1,{}),_0x454450&&this['_idsRoots']['set'](_0x4428b1,P(_0x4428b1,!0x0)));}else{if('addRootAttribute'==_0x295f0f['type']||'removeRootAttribute'==_0x295f0f['type']||'changeRootAttribute'==_0x295f0f['type'])return void this['_handleRootAttributeOperation'](_0x295f0f);'marker'==_0x295f0f['type']&&this['_handleMarkerOperation'](_0x295f0f);}if('marker'!==_0x295f0f['type']){const _0x13e07e=this['_cloneOperation'](_0x295f0f,this['_diffRoots']);_0x13e07e['_execute'](),this['_transformMarkers'](_0x13e07e);}if(_0x454450)switch(_0x295f0f['type']){case'insert':this['_handleInsertOperation'](_0x295f0f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x295f0f);break;case'merge':this['_handleMergeOperation'](_0x295f0f);break;case'split':this['_handleSplitOperation'](_0x295f0f);}}else this['_handleRootOperation'](_0x295f0f,_0x454450);}['_cloneOperation'](_0xca1803,_0x48250e){const _0x53fb6c=_0xca1803['clone']();return _0x53fb6c['_authorId']=_0xca1803['_authorId'],this['_fixOperation'](_0x53fb6c,_0x48250e),_0x53fb6c;}['_getBaseVids'](_0x2c2a08){return _0x2c2a08['map'](_0x2b82d7=>{const _0x3f5d8f=this['_getVidAttributeName'](_0x2b82d7);return Number(_0x2b82d7['item']['getAttribute'](_0x3f5d8f));});}['_generateTape'](_0x7ed1fe,_0x53909f){if(_0x7ed1fe['is']('element','$text'))_0x53909f['push']({'item':_0x7ed1fe,'type':'text'});else{_0x7ed1fe['is']('element')&&_0x53909f['push']({'item':_0x7ed1fe,'type':'elementStart'});for(const _0x1fda12 of _0x7ed1fe['getChildren']())this['_generateTape'](_0x1fda12,_0x53909f);_0x7ed1fe['is']('element')&&_0x53909f['push']({'item':_0x7ed1fe,'type':'elementEnd'});}return _0x53909f;}['_getState'](){const _0x482926=new Map(this['_touched']),_0x511fd1=new Map(_0x482926),_0xef44ba=new Map(),_0x232611={'insertions':{},'deletions':{}},_0x16f87c={'insertions':{},'deletions':{}},_0x1e94f3=new Map(),_0x14ddda=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x14ddda['delete']('$graveyard');for(const _0x490724 of _0x14ddda){const _0xcfc859=this['_diffRoots']['get'](_0x490724)||P(_0x490724,!0x1),_0xd024d6=this['_baseRoots']['get'](_0x490724)||P(_0x490724,!0x1);_0xcfc859['isAttached']()||_0xd024d6['isAttached']()?(_0x232611['insertions'][_0x490724]=N(_0xcfc859),_0x232611['deletions'][_0x490724]=N(_0xd024d6),this['_copyMarkers'](_0x232611['deletions'][_0x490724],_0xd024d6),this['_copyMarkers'](_0x232611['insertions'][_0x490724],_0xcfc859),_0x16f87c['insertions'][_0x490724]=this['_generateTape'](this['_idsRoots']['get'](_0x490724),[]),_0x16f87c['deletions'][_0x490724]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x490724)||P(_0x490724,!0x1),[])):_0x14ddda['delete'](_0x490724);}for(const _0x4ed653 of _0x14ddda){const _0x36247e=_0x16f87c['insertions'][_0x4ed653];for(const _0x523177 of _0x36247e){const _0x542a6d=this['_getVidAttributeName'](_0x523177),_0x3f701e=_0x523177['item']['getAttribute'](_0x542a6d);_0x511fd1['delete'](_0x3f701e),_0x3f701e>=this['_startingRevisionId']&&_0xef44ba['set'](_0x3f701e,_0x482926['get'](_0x3f701e));}}for(const _0x46e65d of _0x14ddda){const _0x31402c=_0x16f87c['insertions'][_0x46e65d],_0x25a190=this['_getBaseVids'](_0x16f87c['deletions'][_0x46e65d]);let _0x4c03d4=0x0;for(const _0x403573 of _0x31402c){const _0x4a269f=this['_getVidAttributeName'](_0x403573),_0x587905=_0x403573['item']['getAttribute'](_0x4a269f);if(!_0xef44ba['has'](_0x587905)&&!_0x1e94f3['has'](_0x587905)){if(_0x511fd1['has'](_0x587905))_0x4c03d4++;else{if(_0x587905!=_0x25a190[_0x4c03d4]){const _0x4291cb=_0x482926['get'](_0x587905)||_0x482926['get'](_0x25a190[_0x4c03d4]);for(;_0x587905!=_0x25a190[_0x4c03d4];)_0x511fd1['has'](_0x25a190[_0x4c03d4])||(_0x1e94f3['set'](_0x25a190[_0x4c03d4],_0x4291cb),_0x482926['set'](_0x25a190[_0x4c03d4],_0x4291cb)),_0x4c03d4++;}_0x4c03d4++;}}}}for(const _0x140c3f of _0x14ddda){const _0x142840=_0x16f87c['insertions'][_0x140c3f];for(const _0x9c0220 of _0x142840){const _0x1bf687=this['_getVidAttributeName'](_0x9c0220),_0x12fa31=_0x9c0220['item']['getAttribute'](_0x1bf687);if(_0x1e94f3['has'](_0x12fa31)){const _0x40f8ba=_0x1e94f3['get'](_0x12fa31);_0x511fd1['has'](_0x12fa31)||_0x511fd1['set'](_0x12fa31,{..._0x40f8ba}),_0xef44ba['set'](_0x12fa31,{..._0x40f8ba});}}}for(const _0x4951d8 of _0x511fd1['keys']())_0x4951d8>=this['_startingRevisionId']&&_0x511fd1['delete'](_0x4951d8);const _0x38738d=new Map();for(const _0x38429b of _0x14ddda){let _0x318e5b=_0x16f87c['insertions'][_0x38429b];for(const _0x51826f of _0x318e5b)if(_0x51826f['item']['is']('element','tableCell')){const _0x55e96c=this['_getVidAttributeName'](_0x51826f),_0x5d9171=_0x51826f['item']['getAttribute'](_0x55e96c);if(_0xef44ba['has'](_0x5d9171)){const _0x40fc9e=_0x51826f['item']['parent']['parent']['getAttribute']('vid_start'),_0x1bc4e9=_0x38738d['get'](_0x40fc9e)||new Set();_0x1bc4e9['add'](_0xef44ba['get'](_0x5d9171)['userId']),_0x38738d['set'](_0x40fc9e,_0x1bc4e9);}}_0x318e5b=_0x16f87c['deletions'][_0x38429b];for(const _0x28b30c of _0x318e5b)if(_0x28b30c['item']['is']('element','tableCell')){const _0x42e218=this['_getVidAttributeName'](_0x28b30c),_0x150fee=_0x28b30c['item']['getAttribute'](_0x42e218);if(_0x511fd1['has'](_0x150fee)){const _0x32d224=_0x28b30c['item']['parent']['parent']['getAttribute']('vid_start'),_0x2a6aaa=_0x38738d['get'](_0x32d224)||new Set();_0x2a6aaa['add'](_0x511fd1['get'](_0x150fee)['userId']),_0x38738d['set'](_0x32d224,_0x2a6aaa);}}for(const _0x2d0c14 of _0x38738d['keys']())(_0xef44ba['has'](_0x2d0c14)||_0x511fd1['has'](_0x2d0c14))&&_0x38738d['delete'](_0x2d0c14);}for(const _0x5029ff of _0x14ddda){const _0x206459=_0x16f87c['insertions'][_0x5029ff];let _0x45bf86=null,_0x52d6f1=null;for(const _0x49d41d of _0x206459){const _0x4df8d8=this['_getVidAttributeName'](_0x49d41d),_0x30c34d=_0x49d41d['item']['getAttribute'](_0x4df8d8),_0xf4122b=_0x38738d['get'](_0x30c34d);_0xf4122b&&'elementStart'==_0x49d41d['type']&&(_0x45bf86=Array['from'](_0xf4122b)[0x0],_0x52d6f1=_0x49d41d['item']['getAttribute']('vid_end')),_0x45bf86&&(_0x511fd1['set'](_0x30c34d,{'userId':_0x45bf86}),_0xef44ba['set'](_0x30c34d,{'userId':_0x45bf86})),_0x30c34d==_0x52d6f1&&(_0x45bf86=null,_0x52d6f1=null);}}const _0x3e2339={},_0x78dd90=new Set();for(const _0x345582 of _0x14ddda){const _0x4c2434=_0x232611['deletions'][_0x345582],_0x2d4455=_0x232611['insertions'][_0x345582];for(const {userId:_0x740049}of this['_touchedMarkers']['values']())null!==_0x740049&&_0x78dd90['add'](_0x740049);for(const {userId:_0x14cdca}of this['_touchedRoots']['values']())null!==_0x14cdca&&_0x78dd90['add'](_0x14cdca);this['_markChanges'](_0x2d4455,_0x16f87c['insertions'][_0x345582],_0xef44ba,'insertion',_0x78dd90),this['_markChanges'](_0x4c2434,_0x16f87c['deletions'][_0x345582],_0x511fd1,'deletion',_0x78dd90),_0x3e2339[_0x345582]={'insertions':this['_prepareViewToSave'](_0x2d4455),'deletions':this['_prepareViewToSave'](_0x4c2434),'attachChange':this['_touchedRoots']['get'](_0x345582)||null,'attributesBefore':_0x2db13b(this['_baseRootsAttributes']['get'](_0x345582))||{},'attributesAfter':_0x2db13b(this['_diffRootsAttributes']['get'](_0x345582))};}return{'diffData':_0x3e2339,'authorsIds':Array['from'](_0x78dd90)};}['_processRootBeforeSave'](_0x56ab0d){for(const [,_0x3f5bfe]of _0x56ab0d['markers']){const _0x4ab2f5=_0x3f5bfe['start']['getAncestors']()['filter'](_0x46e07b=>'tableCell'==_0x46e07b['name']);for(const _0x121ea2 of _0x4ab2f5)0x1==_0x121ea2['childCount']&&_0x121ea2['getChild'](0x0)['is']('element','paragraph')&&_0x121ea2['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x17b1e0){this['_processRootBeforeSave'](_0x17b1e0);const _0x56d5f2=this['editor']['data']['toView'](_0x17b1e0,{}),_0x5783c4=Array['from'](_0x56d5f2['getChildren']())['map'](_0xcb22be=>this['_getViewJson'](_0xcb22be));return JSON['stringify'](_0x5783c4);}['_getViewJson'](_0x4de087){if(_0x4de087['is']('$text'))return _0x4de087['data'];{const _0x13e084=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x32601a=_0x4de087,_0x17c6d4=this['editor']['data']['htmlProcessor']['domConverter'],_0x1be83a={'type':_0x13e084['_getTypeCharForViewElement'](_0x32601a),'name':_0x32601a['name'],'attributes':Array['from'](_0x32601a['getAttributes']()),'children':Array['from'](_0x32601a['getChildren']())['map'](_0x533753=>this['_getViewJson'](_0x533753))};if(_0x4de087['is']('uiElement')&&'$comment'!=_0x4de087['name']){const _0x2f7dd3=_0x4de087['render'](_0x17c6d4['domDocument'],_0x17c6d4);_0x1be83a['children']['push'](_0x2f7dd3['outerHTML']);}else{if(_0x4de087['is']('rawElement')){const _0x341693=_0x17c6d4['domDocument']['createElement'](_0x32601a['name']);_0x4de087['render'](_0x341693,_0x17c6d4),_0x1be83a['children']['push'](_0x341693['innerHTML']);}}const _0x1926cf=Array['from'](_0x32601a['getCustomProperties']());_0x1926cf['length']>0x0&&(_0x1be83a['customProperties']=_0x1926cf);const _0x24d556=_0x32601a['getFillerOffset']();return null!==_0x24d556&&(_0x1be83a['fillerOffset']=_0x24d556),_0x1be83a;}}['_markChanges'](_0x5827f,_0x2be5e4,_0x5f407a,_0x3deddc,_0x3bdb98){let _0x309986=null,_0x4587a5=null,_0x7c3922=0x0;const _0x557eed=this['editor']['model'];for(let _0x4fe35c=0x0;_0x4fe35c<_0x2be5e4['length'];_0x4fe35c++){const _0x2f378f=this['_getVidAttributeName'](_0x2be5e4[_0x4fe35c]),_0x5e2bcc=_0x2be5e4[_0x4fe35c]['item']['getAttribute'](_0x2f378f),_0x4ed7f7=_0x5f407a['get'](_0x5e2bcc),_0x5da682=_0x4fe35c==_0x2be5e4['length']-0x1;(!_0x309986&&_0x4ed7f7&&(_0x309986=_0x4ed7f7,_0x4587a5=_0x2be5e4[_0x4fe35c]),_0x309986&&(!_0x4ed7f7||_0x4ed7f7['userId']!=_0x309986['userId']))&&(_0x560a71(_0x4ed7f7,F(_0x4587a5,_0x5827f,_0x557eed),F(_0x2be5e4[_0x4fe35c],_0x5827f,_0x557eed)),_0x309986=_0x4ed7f7||null,_0x4587a5=_0x4ed7f7?_0x2be5e4[_0x4fe35c]:null),_0x309986&&_0x5da682&&_0x560a71(_0x4ed7f7,F(_0x4587a5,_0x5827f,_0x557eed),B(_0x2be5e4[_0x4fe35c],_0x5827f,_0x557eed));}function _0x560a71(_0xdda58c,_0x4e9b2e,_0x3b6e12){const _0x189f7e=_0x309986['userId'],_0x5aa9de='revision:'+_0x3deddc+':'+_0x189f7e+':'+_0x7c3922++,_0x3b07cd=_0x557eed['createRange'](_0x4e9b2e,_0x3b6e12);_0x5827f['markers']['set'](_0x5aa9de,_0x3b07cd),null!==_0x189f7e&&_0x3bdb98['add'](_0x189f7e);}}['_getVidAttributeName'](_0x13361f){switch(_0x13361f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3f935d,_0x5de9aa){_0x3f935d['baseVersion']=null;for(const _0x1e1451 in _0x3f935d){const _0x2fd6ac=_0x3f935d[_0x1e1451];if(_0x2fd6ac instanceof ft){const _0x2fab8b=_0x5de9aa['get'](_0x2fd6ac['root']['rootName']);_0x3f935d[_0x1e1451]=this['_fixPosition'](_0x2fd6ac,_0x2fab8b);}if(_0x2fd6ac instanceof lt){const _0xad931d=_0x5de9aa['get'](_0x2fd6ac['root']['rootName']);_0x3f935d[_0x1e1451]=this['_fixRange'](_0x2fd6ac,_0xad931d);}'root'===_0x1e1451&&(_0x3f935d['root']=_0x5de9aa['get'](_0x3f935d['root']['rootName']));}}['_fixRange'](_0x1d7e8b,_0x235e3b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1d7e8b['start'],_0x235e3b),this['_fixPosition'](_0x1d7e8b['end'],_0x235e3b));}['_fixPosition'](_0x420150,_0x5ae9ee){return this['editor']['model']['createPositionFromPath'](_0x5ae9ee,_0x420150['path'],_0x420150['stickiness']);}['_handleInsertOperation'](_0x5cd1c9){const _0x3b26d3=this['_idsRoots']['get'](_0x5cd1c9['position']['root']['rootName']),_0x2190e7=this['_fixPosition'](_0x5cd1c9['position'],_0x3b26d3),_0xa5399b=null===_0x5cd1c9['_authorId']?null:_0x5cd1c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3921fa=_0x2190e7['parent'],_0x1038fa=this['_revisionId'],_0x2b348a=[];for(const _0x2f886b of _0x5cd1c9['nodes'])if(_0x2f886b['is']('element'))_0x2b348a['push'](this['_makeIdsRoot'](_0x2f886b));else{for(let _0x4d9bd5=0x0;_0x4d9bd5<_0x2f886b['offsetSize'];_0x4d9bd5++)_0x2b348a['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x9e6c0f=this['_revisionId'];for(let _0x2bd1e1=_0x1038fa;_0x2bd1e1<_0x9e6c0f;_0x2bd1e1++)this['_touched']['set'](_0x2bd1e1,{'userId':_0xa5399b});_0x3921fa['_insertChild'](_0x2190e7['offset'],_0x2b348a);}['_handleMoveOperation'](_0x59c00d){(_0x59c00d=this['_cloneOperation'](_0x59c00d,this['_idsRoots']))['_execute']();const _0x3d436d=null===_0x59c00d['_authorId']?null:_0x59c00d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d6a45=_0x59c00d['getMovedRangeStart'](),_0x2599b9=_0x4d6a45['parent'],_0x21c258=_0x4d6a45['offset'];!function _0x4274b8(_0xa873b8,_0x4dce9e,_0x12c077,_0x4ae680){for(let _0x39b2d4=_0x12c077;_0x39b2d4<_0x4ae680;_0x39b2d4++){const _0x10d98b=_0x4dce9e['getChild'](_0x39b2d4);_0x10d98b['is']('element','$text')?_0xa873b8['set'](_0x10d98b['getAttribute']('vid'),{'userId':_0x3d436d}):(_0xa873b8['set'](_0x10d98b['getAttribute']('vid_start'),{'userId':_0x3d436d}),_0x4274b8(_0xa873b8,_0x10d98b,0x0,_0x10d98b['childCount']),_0xa873b8['set'](_0x10d98b['getAttribute']('vid_end'),{'userId':_0x3d436d}));}}(this['_touched'],_0x2599b9,_0x21c258,_0x21c258+_0x59c00d['howMany']);}['_handleMergeOperation'](_0xe693c3){const _0xec72bd=null===(_0xe693c3=this['_cloneOperation'](_0xe693c3,this['_idsRoots']))['_authorId']?null:_0xe693c3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d16af=_0xe693c3['targetPosition']['parent'],_0x2dcaea=_0xe693c3['sourcePosition']['parent'],_0x415893=_0x5d16af['getAttribute']('vid_end'),_0x4e3ebe=_0x2dcaea['getAttribute']('vid_start');_0x5d16af['_setAttribute']('vid_end',_0x2dcaea['getAttribute']('vid_end')),_0x2dcaea['_setAttribute']('vid_end',_0x415893),this['_touched']['set'](_0x4e3ebe,{'userId':_0xec72bd}),this['_touched']['set'](_0x415893,{'userId':_0xec72bd}),_0xe693c3['_execute']();}['_handleSplitOperation'](_0x555bc0){const _0x36f35b=null===(_0x555bc0=this['_cloneOperation'](_0x555bc0,this['_idsRoots']))['_authorId']?null:_0x555bc0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4aff55=_0x555bc0['graveyardPosition'],_0x58b153=_0x555bc0['splitPosition']['parent'];_0x555bc0['_execute']();const _0x192e4c=_0x58b153['getAttribute']('vid_end'),_0x383e41=_0x555bc0['insertionPosition']['nodeAfter'];if(_0x4aff55){const _0x5393bd=_0x383e41['getAttribute']('vid_end'),_0x1802a0=_0x58b153['getAttribute']('vid_end');_0x58b153['_setAttribute']('vid_end',_0x5393bd),_0x383e41['_setAttribute']('vid_end',_0x1802a0),this['_touched']['set'](_0x58b153['getAttribute']('vid_end'),{'userId':_0x36f35b}),this['_touched']['set'](_0x383e41['getAttribute']('vid_start'),{'userId':_0x36f35b});}else{const _0x194fc0=this['_revisionId']++,_0x4ec675=this['_revisionId']++;_0x58b153['_setAttribute']('vid_end',_0x194fc0),_0x383e41['_setAttribute']('vid_start',_0x4ec675),_0x383e41['_setAttribute']('vid_end',_0x192e4c),this['_touched']['set'](_0x194fc0,{'userId':_0x36f35b}),this['_touched']['set'](_0x4ec675,{'userId':_0x36f35b});}}['_handleMarkerOperation'](_0x581834){if(!_0x581834['affectsData'])return;const _0x2e7c51=(_0x581834=this['_cloneOperation'](_0x581834,this['_diffRoots']))['oldRange']?_0x581834['oldRange']['root']:null,_0x475e3f=_0x581834['newRange']?_0x581834['newRange']['root']:null;_0x2e7c51&&this['_markers']['delete'](_0x581834['name']),_0x475e3f&&this['_markers']['set'](_0x581834['name'],_0x581834['newRange']['clone']());const _0xe589c8=null===_0x581834['_authorId']?null:_0x581834['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5279b9=_0x581834['name'];if(!this['_touchedMarkers']['has'](_0x5279b9))return void this['_touchedMarkers']['set'](_0x5279b9,{'range':_0x581834['oldRange'],'userId':_0xe589c8});const _0x3fb081=this['_touchedMarkers']['get'](_0x5279b9),_0x38c2d1=_0x3fb081['range'],_0x38c228=_0x581834['newRange'];null==_0x38c2d1&&null==_0x38c228||_0x38c2d1&&_0x38c228&&_0x38c2d1['isEqual'](_0x38c228)?this['_touchedMarkers']['delete'](_0x581834['name']):_0x3fb081['userId']=_0xe589c8;}['_handleRootOperation'](_0x1bbcd1,_0x1384e7){this['_diffRoots']['has'](_0x1bbcd1['rootName'])?this['_diffRoots']['get'](_0x1bbcd1['rootName'])['_isAttached']=_0x1bbcd1['isAdd']:(this['_diffRoots']['set'](_0x1bbcd1['rootName'],P(_0x1bbcd1['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1bbcd1['rootName'],{}),_0x1384e7&&this['_idsRoots']['set'](_0x1bbcd1['rootName'],P(_0x1bbcd1['rootName'],!0x0)));const _0x593ee6=null===_0x1bbcd1['_authorId']?null:_0x1bbcd1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ecdcd=this['_touchedRoots']['get'](_0x1bbcd1['rootName']);_0x1ecdcd&&_0x1ecdcd['userId']===_0x593ee6?this['_touchedRoots']['delete'](_0x1bbcd1['rootName']):this['_touchedRoots']['set'](_0x1bbcd1['rootName'],{'userId':_0x593ee6,'isAttached':_0x1bbcd1['isAdd']});}['_handleRootAttributeOperation'](_0x5f2e6d){const _0x405633=this['_diffRootsAttributes']['get'](_0x5f2e6d['root']['rootName']);null===_0x5f2e6d['newValue']?delete _0x405633[_0x5f2e6d['key']]:_0x405633[_0x5f2e6d['key']]=_0x5f2e6d['newValue'];}}function N(_0x13202){const _0x4f0aef=P(_0x13202['rootName'],_0x13202['isAttached']());for(const _0x29316d of _0x13202['getChildren']()){const _0x218339=_0x29316d['_clone'](!0x0);_0x4f0aef['_appendChild'](_0x218339);}return _0x4f0aef;}function P(_0x3125c4,_0x54024d=!0x0){const _0x25b8fe=new vt();return _0x25b8fe['rootName']=_0x3125c4,_0x25b8fe['_isAttached']=_0x54024d,_0x25b8fe['isAttached']=()=>_0x25b8fe['_isAttached'],_0x25b8fe;}function F(_0x2a6bc3,_0xf48986,_0x2aa530){const _0x220577='elementEnd'==_0x2a6bc3['type']?_0x2aa530['createPositionAt'](_0x2a6bc3['item'],'end'):_0x2aa530['createPositionBefore'](_0x2a6bc3['item']);return _0x2aa530['createPositionFromPath'](_0xf48986,_0x220577['path'],_0x220577['stickiness']);}function B(_0x103c43,_0x18969c,_0x2bb204){const _0x14314b='elementStart'==_0x103c43['type']?_0x2bb204['createPositionAt'](_0x103c43['item'],0x0):_0x2bb204['createPositionAfter'](_0x103c43['item']);return _0x2bb204['createPositionFromPath'](_0x18969c,_0x14314b['path'],_0x14314b['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x49a074,_0x11b9b9){super(_0x49a074),this['focusTracker']=new _0x433e71(),this['keystrokes']=new _0x51171c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x11b9b9),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1423e0(this);}['render'](){super['render'](),_0x3aa81d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5d2882=_0xfd44b9=>_0xfd44b9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5d2882),this['keystrokes']['set']('arrowleft',_0x5d2882),this['keystrokes']['set']('arrowup',_0x5d2882),this['keystrokes']['set']('arrowdown',_0x5d2882);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x176e2f){this['revisionNameInputView']['fieldView']['element']['value']=_0x176e2f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x34c975){const _0x2c02c8=new _0x5cfe1e(this['locale'],_0x2ba5b0),_0x14d3e6=_0x2c02c8['fieldView'];_0x14d3e6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x195447=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x34c975&&(_0x195447+='\x20('+g(this['locale'],'optional')+')'),(_0x2c02c8['label']=_0x195447,_0x14d3e6['on']('input',()=>{this['revisionNameInputValue']=_0x14d3e6['element']['value']['trim']();}),_0x2c02c8);}}class f extends _0x53ef20{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x232624=this['editor'],_0x44abbe=_0x232624['plugins']['get']('RevisionTracker');_0x232624['ui']['componentFactory']['add']('revisionHistory',_0x9f7305=>{const _0x45d9f0=_0x41a004(_0x9f7305),_0x4694c9=_0x45d9f0['panelView']['children'],_0x21d32c=new _0x5dab03(_0x9f7305),_0x4ad7b5=new _0xe22dd5(_0x9f7305),_0x121a9b=new te(_0x9f7305),_0x3981e5=new _0xe22dd5(_0x9f7305),_0x3f6e4c=new te(_0x9f7305);return _0x45d9f0['bind']('isEnabled')['to'](_0x44abbe,'isReady',_0x44abbe,'isEnabled',_0x232624,'isReadOnly',(_0x28d1d6,_0x1fe6aa,_0x14f941)=>_0x28d1d6&&_0x1fe6aa&&!_0x14f941),_0x45d9f0['buttonView']['set']({'icon':_0x12d848,'label':g(_0x9f7305,'Revision\x20history'),'tooltip':!0x0}),_0x121a9b['set']({'label':g(_0x9f7305,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x121a9b['bind']('isEnabled')['to'](_0x44abbe,'isReady',_0x44abbe,'isEnabled',_0x232624,'isReadOnly',(_0x42bb7f,_0x4d85f3,_0x41602b)=>_0x42bb7f&&_0x4d85f3&&!_0x41602b),_0x121a9b['on']('execute',()=>this['_showDialog']()),_0x3f6e4c['set']({'label':g(_0x9f7305,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3f6e4c['bind']('isEnabled')['to'](_0x44abbe,'isReady',_0x232624,'isReadOnly',(_0x271d25,_0x4b872c)=>_0x271d25&&!_0x4b872c),_0x3f6e4c['on']('execute',()=>{_0x232624['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x45d9f0['isOpen']=!0x1,_0x232624['editing']['view']['focus']();}),_0x4ad7b5['children']['add'](_0x121a9b),_0x3981e5['children']['add'](_0x3f6e4c),_0x21d32c['role']='menu',_0x21d32c['items']['addMany']([_0x4ad7b5,_0x3981e5]),_0x4694c9['add'](_0x21d32c),_0x45d9f0;}),_0x232624['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x44e710=this['editor'],_0x5f5a76=_0x44e710['locale'],_0x145e72=new _0x4400fd(_0x5f5a76),_0x38b614=new _0x32035c(_0x5f5a76);_0x145e72['buttonView']['set']({'icon':_0x12d848,'label':g(_0x5f5a76,'Revision\x20history')});const _0x2abf89=new _0x3fbde5(_0x5f5a76,_0x145e72),_0x1eea1f=new _0x3727be(_0x5f5a76);_0x1eea1f['set']({'label':g(_0x5f5a76,'Save\x20current\x20revision')}),_0x1eea1f['delegate']('execute')['to'](_0x145e72),_0x1eea1f['on']('execute',()=>{this['_showDialog']();}),_0x2abf89['children']['add'](_0x1eea1f),_0x38b614['items']['add'](_0x2abf89);const _0x5a58ef=new _0x3fbde5(_0x5f5a76,_0x145e72),_0x50b5a5=new _0x3727be(_0x5f5a76);return _0x50b5a5['set']({'label':g(_0x5f5a76,'Open\x20revision\x20history')}),_0x50b5a5['delegate']('execute')['to'](_0x145e72),_0x50b5a5['on']('execute',()=>{_0x44e710['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5a58ef['children']['add'](_0x50b5a5),_0x38b614['items']['add'](_0x5a58ef),_0x145e72['panelView']['children']['add'](_0x38b614),_0x145e72;}['_showDialog'](){const _0x4d1826=this['editor'],_0x393838=_0x4d1826['locale'],_0x2901b9=_0x4d1826['plugins']['get']('Dialog'),_0x407ded=_0x4d1826['plugins']['get']('RevisionTracker');function _0x252088(_0x51d95c){_0x4d1826['config']['get']('revisionHistory.requireRevisionName')&&''===_0x51d95c['revisionName']?_0x51d95c['revisionNameInputView']['errorText']=g(_0x393838,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4d1826['plugins']['get'](u)['saveRevision']({'name':_0x51d95c['revisionName']}),_0x2901b9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x252088(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2901b9['show']({'id':'revisionSave','title':g(_0x393838,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4d1826['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2901b9['hide']()},{'label':g(_0x4d1826['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x594204){_0x594204['bind']('isEnabled')['to'](_0x407ded,'isReady',_0x407ded,'isEnabled',_0x4d1826,'isReadOnly',(_0x59c675,_0x594162,_0x5847b0)=>_0x59c675&&_0x594162&&!_0x5847b0);},'onExecute':()=>_0x252088(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x419883=this['editor'],_0x335e6e=_0x419883['locale'];this['_saveRevisionFormView']=new hs(_0x335e6e,_0x419883['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x527a96,_0x12fa40){super(_0x527a96),this['_model']=_0x12fa40,this['changeId']=_0x12fa40['id'];const _0x3f9aaf=this['bindTemplate'],_0x2d174c=g(_0x527a96,_0x12fa40['data']['isSuggestion']?'Suggested\x20by':'add'==_0x12fa40['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x12fa40['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3f9aaf['to']('type',_0x1ce0af=>'ck-revision-change__'+_0x1ce0af)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2d174c}]},{'text':'\x20'+_0x12fa40['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3d8fc4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x86f2ce){super(),this['id']=_0x86f2ce['id']||_0x2edd7b(),this['author']=_0x86f2ce['author'],this['type']=_0x86f2ce['type'],this['data']=_0x86f2ce['data']||{},this['rootName']=_0x86f2ce['rootName'],this['set']('createdAt',_0x86f2ce['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1c013e,_0x413c72){this['newRevisionId']=_0x1c013e,this['oldRevisionId']=_0x413c72,this['changes']=new _0x34482f();}['_setChanges'](_0x4b70bd){for(const _0x56a433 of _0x4b70bd)this['changes']['add'](_0x56a433);}}class m extends _0x53ef20{['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[_0x41560f,_0x3324bd,I,V];}constructor(_0x28a2ac){super(_0x28a2ac),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',(_0x1c0790,_0x3d753b,_0x32c336)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x511c0d=>{for(const _0x497c7d of this['editor']['editing']['view']['document']['roots'])_0x32c336?_0x511c0d['removeClass']('ck-editor__editable__overlay',_0x497c7d):_0x511c0d['addClass']('ck-editor__editable__overlay',_0x497c7d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x36f6ed=>null!==_0x36f6ed),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x197e54,_0x1d9b3f,_0x1d21dd)=>_0x197e54&&_0x1d21dd?_0x1d9b3f['changes']['getIndex'](_0x1d21dd):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4c7445,_0x5adb8d)=>_0x4c7445?_0x5adb8d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3324bd);}['init'](){const _0x32addf=this['editor'],_0x13f6ea=new wt(_0x32addf,{'direction':'backward'}),_0x49109b=new wt(_0x32addf,{'direction':'forward'});(_0x32addf['commands']['add']('showPreviousChange',_0x13f6ea),_0x32addf['commands']['add']('showNextChange',_0x49109b),_0x32addf['commands']['add']('restoreRevision',new mt(_0x32addf)),this['on']('change:numberOfChanges',()=>{_0x13f6ea['refresh'](),_0x49109b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x32addf['enableReadOnlyMode']('revision-viewer'),_0x32addf['plugins']['has']('WidgetToolbarRepository'))&&_0x32addf['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x318f4f){return await this['_utils']['loadRevisionData'](_0x318f4f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x318f4f);}async['getRevisionRootsAttributes'](_0x4dcd08){return await this['_utils']['loadRevisionData'](_0x4dcd08,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4dcd08);}async['compare'](_0x5088e4,_0xff0088,_0x1d695b=!0x1){if(!this['isEnabled'])return;const _0x23da5b=this['diff'],_0x259c33=this['repository'],_0x106d31='string'==typeof _0x5088e4?_0x259c33['getRevision'](_0x5088e4):_0x5088e4,_0x2e16a6='string'==typeof _0xff0088?_0x259c33['getRevision'](_0xff0088):_0xff0088,_0x43aca0=_0x106d31['id'],_0x13da69=_0x2e16a6?_0x2e16a6['id']:null;if(!_0x1d695b&&this['diff']&&this['diff']['newRevisionId']===_0x43aca0&&this['diff']['oldRevisionId']===_0x13da69)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x43aca0,_0x13da69);const _0x4c81e2=this['_getRevisionsRange'](_0x106d31,_0x2e16a6,!0x0)['map'](_0x2cea91=>this['_utils']['loadRevisionData'](_0x2cea91,this['adapter']));return _0x4c81e2['push'](new Promise(_0x80aad6=>{setTimeout(_0x80aad6,0x14);})),Promise['all'](_0x4c81e2)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5202fe=this['_getDiff'](_0x43aca0,_0x13da69);for(const _0x3958f6 of _0x5202fe['changes'])this['_changeIdToChange']['set'](_0x3958f6['id'],_0x3958f6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2ed0f1=>{for(const _0x5a5600 of this['editor']['model']['document']['getRootNames']())_0x2ed0f1['detachRoot'](_0x5a5600);for(const _0x4149cd of Object['keys'](_0x5202fe['model'])){const _0x28868d=_0x2ed0f1['addRoot'](_0x4149cd);for(const _0x49073f of Object['keys'](_0x5202fe['attributes'][_0x4149cd]))_0x2ed0f1['setAttribute'](_0x49073f,_0x5202fe['attributes'][_0x4149cd][_0x49073f],_0x28868d);_0x2ed0f1['insert'](_0x5202fe['model'][_0x4149cd],_0x28868d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5202fe['changes'])),this['isReady']=!0x0;})['catch'](_0x2ff8ea=>{console['error'](_0x2ff8ea),this['_cleanUp'](),_0x23da5b&&(this['diff']=_0x23da5b),this['isReady']=!0x0;});}['addRevisionData'](_0x589505,_0x16f6fe){const _0x8e7c21=this['repository']['createRevision'](_0x589505);return _0x8e7c21['on']('_update',(_0x5e4cda,_0x4a3b50,_0x4fa250)=>_0x16f6fe(_0x4a3b50,_0x4fa250,_0x8e7c21)),this['repository']['addRevision'](_0x8e7c21),_0x8e7c21;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x245edb=>{for(const _0x246608 of this['editor']['model']['document']['getRootNames']())_0x245edb['detachRoot'](_0x246608);});}['_sortAndFilterDiffChanges'](_0x2de36d){const _0x358185=[],_0x2e0537=new Map();for(const _0x36335a of this['editor']['model']['document']['getRootNames']()){const _0x585636=this['editor']['editing']['view']['getDomRoot'](_0x36335a);if(!_0x585636)continue;const _0x538289=_0x585636['getClientRects']()['item'](0x0);_0x538289&&(_0x358185['push'](_0x36335a),_0x2e0537['set'](_0x36335a,_0x538289));}return _0x358185['sort']((_0x38f528,_0x5e72f1)=>{const _0x21067d=_0x2e0537['get'](_0x38f528),_0x3e262f=_0x2e0537['get'](_0x5e72f1);return _0x21067d['y']-_0x3e262f['y']||_0x21067d['x']-_0x3e262f['x'];}),(_0x2de36d=_0x2de36d['filter'](_0x5df704=>_0x358185['includes'](_0x5df704['rootName'])))['sort']((_0x31c21c,_0x4ce3b3)=>_0x358185['indexOf'](_0x31c21c['rootName'])-_0x358185['indexOf'](_0x4ce3b3['rootName'])),_0x2de36d;}['_makeTape'](_0xcaa141){const _0x235250=Array['from'](_0xcaa141['markers'])['filter'](([_0x3fb938,_0x1d2521])=>_0x3fb938['startsWith']('revision:')&&!_0x1d2521['isCollapsed']),_0x1ffca0=Array['from'](this['editor']['model']['createRangeIn'](_0xcaa141)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x235250['length'])for(const _0x2cd52d of _0x1ffca0){const [_0x57f7c2,_0x289054]=_0x235250[0x0],[,_0x1776dc,_0x53e880]=_0x57f7c2['split'](':');if(_0x289054['end']['isEqual'](_0x2cd52d['nextPosition'])&&_0x235250['shift'](),(_0x2cd52d['previousPosition']['isEqual'](_0x289054['start'])||_0x2cd52d['previousPosition']['isAfter'](_0x289054['start']))&&('insertion'==_0x1776dc?_0x2cd52d['isAdded']={'userId':_0x53e880}:'deletion'==_0x1776dc&&(_0x2cd52d['isRemoved']={'userId':_0x53e880})),0x0==_0x235250['length'])break;}return _0x1ffca0;}['_refreshStartEndIndex'](_0x5482b2){const _0x590c41=new Map();for(let _0x4f31b8=0x0;_0x4f31b8<_0x5482b2['length'];_0x4f31b8++)'text'===_0x5482b2[_0x4f31b8]['type']?(_0x5482b2[_0x4f31b8]['item']['startIndex']=_0x4f31b8,_0x5482b2[_0x4f31b8]['item']['endIndex']=_0x4f31b8):('elementStart'===_0x5482b2[_0x4f31b8]['type']?_0x5482b2[_0x4f31b8]['item']['startIndex']=_0x4f31b8:'elementEnd'===_0x5482b2[_0x4f31b8]['type']&&(_0x5482b2[_0x4f31b8]['item']['endIndex']=_0x4f31b8),_0x590c41['set'](_0x5482b2[_0x4f31b8]['id'],_0x4f31b8));for(const _0xc1fb6a of _0x590c41['values']())'elementStart'===_0x5482b2[_0xc1fb6a]['type']?_0x5482b2[_0xc1fb6a]['item']['endIndex']=_0x590c41['get'](_0x5482b2[_0xc1fb6a]['pairId']):'elementEnd'===_0x5482b2[_0xc1fb6a]['type']&&(_0x5482b2[_0xc1fb6a]['item']['startIndex']=_0x590c41['get'](_0x5482b2[_0xc1fb6a]['pairId']));}['_processTape'](_0x284677){for(let _0x1d7f7f=0x0;_0x1d7f7f<_0x284677['length'];_0x1d7f7f++){if('elementStart'===_0x284677[_0x1d7f7f]['type'])_0x284677[_0x1d7f7f]['item']['startIndex']=_0x1d7f7f;else{if('elementEnd'===_0x284677[_0x1d7f7f]['type']){_0x284677[_0x1d7f7f]['item']['endIndex']=_0x1d7f7f;const _0x30b008=_0x284677[_0x1d7f7f]['item']['startIndex'];_0x284677[_0x30b008]['pairId']=_0x284677[_0x1d7f7f]['id'],_0x284677[_0x1d7f7f]['pairId']=_0x284677[_0x30b008]['id'];}else _0x284677[_0x1d7f7f]['item']['startIndex']=_0x1d7f7f,_0x284677[_0x1d7f7f]['item']['endIndex']=_0x1d7f7f,_0x284677[_0x1d7f7f]['pairId']=null;}_0x284677[_0x1d7f7f]['markersStart']||(_0x284677[_0x1d7f7f]['markersStart']=[],_0x284677[_0x1d7f7f]['markersEnd']=[]);}}['_markInsertions'](_0x4d6d33,_0x2745ed){const _0x3c7343=_0x4d6d33['filter'](_0x4141f0=>!_0x4141f0['isAdded']);for(let _0x5dba24=0x0;_0x5dba24<_0x2745ed['length'];_0x5dba24++)_0x2745ed[_0x5dba24]['isAdded']&&(_0x3c7343[_0x5dba24]['isAdded']=_0x2745ed[_0x5dba24]['isAdded']);}['_getDiff'](_0x69deee,_0x3767ac=null){const _0x1e4830=this['repository']['getRevision'](_0x69deee),_0x44d619=_0x3767ac?this['repository']['getRevision'](_0x3767ac):null,_0x4d12b0=this['_getRevisionsRange'](_0x1e4830,_0x44d619),_0x256727=_0x4d12b0[_0x4d12b0['length']-0x1],_0x2c1be0=new Map(),_0x5067d9={'model':{},'attributes':{},'changes':[]},_0x4afde3=new Set(),_0x595c69=new Map();for(let _0x1e72a6=_0x4d12b0['length']-0x1;_0x1e72a6>=0x0;_0x1e72a6--){const _0x2f4272=_0x4d12b0[_0x1e72a6];for(const _0x12273b of Object['keys'](_0x2f4272['diffData']))if(_0x2f4272['diffData'][_0x12273b]['attachChange']){const _0x301b2f=_0x2f4272['diffData'][_0x12273b]['attachChange'];_0x301b2f['isAttached']?(_0x4afde3['add'](_0x12273b),_0x595c69['has'](_0x12273b)&&_0x595c69['get'](_0x12273b)['userId']==_0x301b2f['userId']?_0x595c69['delete'](_0x12273b):_0x595c69['set'](_0x12273b,_0x301b2f)):_0x595c69['has'](_0x12273b)?(_0x4afde3['delete'](_0x12273b),_0x595c69['delete'](_0x12273b)):(_0x4afde3['add'](_0x12273b),_0x595c69['set'](_0x12273b,_0x301b2f));}else _0x4afde3['add'](_0x12273b);}for(const _0x5767e5 of _0x4afde3){const _0x4dd10a=_0x595c69['has'](_0x5767e5)&&!_0x595c69['get'](_0x5767e5)['isAttached'];let _0x74cebc=_0x4dd10a?_0x4d12b0['length']-0x1:0x0;const _0x3094bd=_0x4dd10a?-0x1:0x1;for(;_0x4d12b0[_0x74cebc];){const _0x12aed0=_0x4d12b0[_0x74cebc];if(_0x12aed0['diffData'][_0x5767e5]){const _0x15cbd1=_0x4dd10a?_0x12aed0['diffData'][_0x5767e5]['attributesBefore']:_0x12aed0['diffData'][_0x5767e5]['attributesAfter'];_0x5067d9['attributes'][_0x5767e5]=_0x15cbd1?_0x2db13b(_0x15cbd1):{};break;}_0x74cebc+=_0x3094bd;}}for(const _0xca3f3b of _0x4d12b0){_0xca3f3b['model']={};for(const _0x108819 of _0xca3f3b['authors'])_0x2c1be0['set'](_0x108819['id'],_0x108819);for(const _0x41bda0 of _0x4afde3){const _0x2bcd4e=_0xca3f3b['diffData'][_0x41bda0]?_0xca3f3b['diffData'][_0x41bda0]['insertions']:'[]',_0x413757=_0xca3f3b['diffData'][_0x41bda0]?_0xca3f3b['diffData'][_0x41bda0]['deletions']:'[]';_0xca3f3b['model'][_0x41bda0]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2bcd4e),'deletions':this['_utils']['_makeModelFromViewString'](_0x413757)};}}for(const _0x7dda8a of _0x4afde3){let _0x190baa=null,_0x4d7e51=0x0;const _0x4ff75b=new Map(Array['from'](_0x1e4830['model'][_0x7dda8a]['insertions']['markers'])['filter'](([_0x55839b])=>!_0x55839b['startsWith']('revision:')));let _0x30c4ac=0x0;for(const _0x439153 of _0x4d12b0){const _0x53a019=this['_makeTape'](_0x439153['model'][_0x7dda8a]['insertions']);_0x439153==_0x1e4830?(_0x190baa=_0x53a019,_0x4d7e51=_0x190baa['length'],_0x190baa['forEach'](_0x521e24=>{_0x521e24['id']=_0x30c4ac++;}),this['_processTape'](_0x190baa)):this['_markInsertions'](_0x190baa,_0x53a019);const _0x2a0e2b=_0x190baa['filter'](_0x4f6723=>!_0x4f6723['isAdded'])['map'](_0x2623d1=>_0x2623d1['id']);let _0x8bd0b4=0x0;const _0x4e409c=this['_makeTape'](_0x439153['model'][_0x7dda8a]['deletions']);_0x4e409c['forEach'](_0x38ab7b=>{_0x38ab7b['isRemoved']?_0x38ab7b['id']=_0x4d7e51++:_0x38ab7b['id']=_0x2a0e2b[_0x8bd0b4++];}),this['_processTape'](_0x4e409c),this['_setDistance'](_0x190baa,'isAdded'),this['_setDistance'](_0x4e409c,'isRemoved'),_0x439153==_0x1e4830&&this['_markMarkers'](_0x190baa,_0x4ff75b),_0x190baa=this['_joinTapes'](_0x190baa,_0x4e409c),this['_refreshStartEndIndex'](_0x190baa),this['_setDistance'](_0x190baa,'isRemoved');}_0x190baa=_0x190baa['filter'](_0x2a02d4=>!(_0x2a02d4['isAdded']&&_0x2a02d4['isRemoved']));const _0x354959=new Map(_0x256727['model'][_0x7dda8a]['deletions']['markers']),_0x1ff6f5=new Set(_0x4ff75b['keys']());for(const _0x459f65 of _0x354959['keys']())_0x1ff6f5['delete'](_0x459f65);this['_markSuggestions'](_0x190baa,_0x1ff6f5),this['_fixObsoleteTags'](_0x190baa),_0x190baa=this['_removeMissingPairs'](_0x190baa),_0x190baa=this['_markMismatchedRemovedTags'](_0x190baa),_0x190baa=this['_removeUnsupportedChanges'](_0x190baa);const {root:_0x30abe0,changes:_0x152210}=this['_makeModelFromTape'](_0x190baa,_0x2c1be0,_0x7dda8a);_0x5067d9['model'][_0x7dda8a]=_0x30abe0;const _0x27e781=_0x595c69['get'](_0x7dda8a);if(_0x27e781){const _0x52a372=_0x2c1be0['get'](_0x27e781['userId']),_0x4191cf=new r({'author':_0x52a372,'type':_0x27e781['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x7dda8a});_0x152210['unshift'](_0x4191cf),_0x5067d9['attributes'][_0x7dda8a]['revisionHistoryAttachChange']=_0x4191cf['id'];}_0x5067d9['changes']=_0x5067d9['changes']['concat'](_0x152210);}return _0x5067d9;}['_markMarkers'](_0x473365,_0x27c923){for(let _0x37fe70=0x0;_0x37fe70<_0x473365['length'];_0x37fe70++)for(const [_0x82f9d4,_0xc4f9d1]of _0x27c923)!_0xc4f9d1['isCollapsed']&&_0xc4f9d1['start']['isEqual'](_0x473365[_0x37fe70]['previousPosition'])&&_0x473365[_0x37fe70]['markersStart']['push'](_0x82f9d4),_0xc4f9d1['end']['isEqual'](_0x473365[_0x37fe70]['nextPosition'])&&_0x473365[_0x37fe70]['markersEnd']['push'](_0x82f9d4);}['_joinTapes'](_0x42aeca,_0x32879e){let _0x2b33a6=[],_0x14ef18=0x0,_0x63f827=0x0;for(;_0x14ef18<_0x42aeca['length']||_0x63f827<_0x32879e['length'];){const _0xdf8e6a=_0x42aeca[_0x14ef18]||{},_0x31ceb6=_0x32879e[_0x63f827]||{};if(_0xdf8e6a['id']==_0x31ceb6['id'])_0x14ef18++,_0x63f827++,_0x2b33a6['push'](_0xdf8e6a);else{if(_0x31ceb6['isRemoved']&&_0xdf8e6a['isAdded']){const {commonTape:_0xbcc010,iEnd:_0x18b5d7,jEnd:_0x2762bb}=this['_threeWayMerge'](_0x42aeca,_0x14ef18,_0x32879e,_0x63f827);_0x2b33a6=_0x2b33a6['concat'](_0xbcc010),_0x14ef18=_0x18b5d7,_0x63f827=_0x2762bb;}else _0x31ceb6['isRemoved']?(_0x63f827++,_0x2b33a6['push'](_0x31ceb6)):(_0x14ef18++,_0x2b33a6['push'](_0xdf8e6a));}}return _0x2b33a6;}['_markSuggestions'](_0x42e517,_0x31e62e){const _0x14bb6d=[];for(let _0x30d8e1=0x0;_0x30d8e1<_0x42e517['length'];_0x30d8e1++){for(let _0x3edf6f=0x0;_0x3edf6f<_0x42e517[_0x30d8e1]['markersStart']['length'];_0x3edf6f++){const _0x2905fa=_0x42e517[_0x30d8e1]['markersStart'][_0x3edf6f];if(!_0x31e62e['has'](_0x2905fa))continue;const {group:_0xa805dd,type:_0x3c2f54,authorId:_0x6b9944}=_0x5f523f(_0x2905fa);'revision-suggestion'!=_0xa805dd||'insertion'!=_0x3c2f54&&'deletion'!=_0x3c2f54||(_0x14bb6d['unshift']({'type':_0x3c2f54,'name':_0x2905fa,'userId':_0x6b9944}),_0x42e517[_0x30d8e1]['markersStart']['splice'](_0x3edf6f,0x1),_0x3edf6f--);}_0x36a166(_0x42e517[_0x30d8e1]);for(let _0x4cd6b9=0x0;_0x4cd6b9<_0x42e517[_0x30d8e1]['markersEnd']['length'];_0x4cd6b9++){const _0x3d9f95=_0x42e517[_0x30d8e1]['markersEnd'][_0x4cd6b9];if(!_0x31e62e['has'](_0x3d9f95))continue;const {group:_0x469ac9,type:_0x3f2fa2}=_0x5f523f(_0x3d9f95);if('revision-suggestion'!=_0x469ac9||'insertion'!=_0x3f2fa2&&'deletion'!=_0x3f2fa2)continue;_0x42e517[_0x30d8e1]['markersEnd']['splice'](_0x4cd6b9,0x1),_0x4cd6b9--;const _0x208a82=_0x14bb6d['findIndex'](_0x2927e1=>_0x2927e1['name']==_0x3d9f95);_0x208a82>-0x1&&_0x14bb6d['splice'](_0x208a82,0x1);}}function _0x5f523f(_0x157097){const _0x4d9df1=_0x157097['split'](':');return{'group':_0x4d9df1[0x0],'type':_0x4d9df1[0x1],'subType':_0x4d9df1['length']>=0x5?_0x4d9df1[0x2]:null,'id':_0x4d9df1['length']<0x5?_0x4d9df1[0x2]:_0x4d9df1[0x3],'authorId':_0x4d9df1['length']<0x5?_0x4d9df1[0x3]:_0x4d9df1[0x4],'markerCount':0x6==_0x4d9df1['length']?_0x4d9df1[0x5]:null};}function _0x36a166(_0x4153bb){for(let _0x2d9ede=0x0;_0x2d9ede<_0x14bb6d['length'];_0x2d9ede++){if(_0x4153bb['isAdded']&&'insertion'==_0x14bb6d[_0x2d9ede]['type']&&_0x4153bb['isAdded']['userId']==_0x14bb6d[_0x2d9ede]['userId'])return _0x4153bb['isAddSuggestion']=_0x14bb6d[_0x2d9ede],void delete _0x4153bb['isAdded'];if(!_0x4153bb['isAdded']&&!_0x4153bb['isRemoved']&&'deletion'==_0x14bb6d[_0x2d9ede]['type'])return void(_0x4153bb['isRemoveSuggestion']=_0x14bb6d[_0x2d9ede]);}}}['_setDistance'](_0x27583e,_0x52f150){let _0x2adf97=0x0,_0x2cfc66=!0x1;const _0x18da8f=new Map();for(const _0x1e0d59 of _0x27583e)_0x1e0d59[_0x52f150]?_0x2cfc66&&(_0x2adf97++,_0x2cfc66=!0x1):(_0x2adf97++,_0x2cfc66=!0x0),_0x18da8f['set'](_0x1e0d59['id'],_0x2adf97);for(let _0x5760c1=0x0;_0x5760c1<_0x27583e['length'];_0x5760c1++){if('isRemoved'==_0x52f150&&_0x27583e[_0x5760c1]['isAdded']||'isAdded'==_0x52f150&&_0x27583e[_0x5760c1]['isRemoved'])continue;if('text'==_0x27583e[_0x5760c1]['type']){_0x27583e[_0x5760c1]['distance']=0x0;continue;}const _0x8b3442=_0x18da8f['get'](_0x27583e[_0x5760c1]['pairId']),_0x3999cd=_0x18da8f['get'](_0x27583e[_0x5760c1]['id']);_0x27583e[_0x5760c1]['distance']=_0x8b3442-_0x3999cd;}}['_getRevisionsRange'](_0x1c6bcb,_0x559351,_0x13fde4=!0x1){const _0x55e270=[];let _0xadd065=this['repository']['getIndex'](_0x1c6bcb),_0x5c2ed8=this['repository']['getIndex'](_0x559351);for(-0x1==_0x5c2ed8&&(_0x5c2ed8=this['repository']['_revisions']['length'],_0x13fde4=!0x1);_0xadd065<_0x5c2ed8;)_0x55e270['push'](this['repository']['getRevision'](_0xadd065)),_0xadd065++;return _0x13fde4&&_0x55e270['push'](this['repository']['getRevision'](_0xadd065)),_0x55e270;}['_threeWayMerge'](_0x1b993d,_0x395602,_0x12b0bb,_0x1f0e6b){const _0x932d35=this['editor']['model']['schema'];let _0x2bec05=_0x395602;for(;_0x1b993d[_0x2bec05]&&_0x1b993d[_0x2bec05]['isAdded'];)_0x2bec05++;let _0x563431=_0x1f0e6b;for(;_0x12b0bb[_0x563431]&&_0x12b0bb[_0x563431]['isRemoved'];)_0x563431++;_0x300440(_0x1b993d,_0x395602,_0x2bec05),_0x300440(_0x12b0bb,_0x1f0e6b,_0x563431);const _0x147206=_0x12b0bb['slice'](_0x1f0e6b,_0x563431)['concat'](_0x1b993d['slice'](_0x395602,_0x2bec05));return _0x147206['sort']((_0x5a65b5,_0xf407b6)=>_0x5a65b5['side']!=_0xf407b6['side']?_0x5a65b5['side']-_0xf407b6['side']:_0x5a65b5['level']!=_0xf407b6['level']?_0x5a65b5['level']-_0xf407b6['level']:_0x5a65b5['distance']!=_0xf407b6['distance']?_0xf407b6['distance']-_0x5a65b5['distance']:!!_0x5a65b5['isAdded']!=!!_0xf407b6['isAdded']?-0x1==_0x5a65b5['side']||0x0==_0x5a65b5['side']?_0x5a65b5['isAdded']?-0x1:0x1:_0x5a65b5['isAdded']?0x1:-0x1:_0x5a65b5['index']-_0xf407b6['index']),{'commonTape':_0x147206,'iEnd':_0x2bec05,'jEnd':_0x563431};function _0x300440(_0x195946,_0x127524,_0x3c6156){let _0x467476=-0x1,_0x347500=Number['POSITIVE_INFINITY'],_0xf91296=!0x0;for(let _0x3e46d4=_0x127524;_0x3e46d4<_0x3c6156;_0x3e46d4++)if(_0x932d35['isInline'](_0x195946[_0x3e46d4]['item'])||(_0xf91296=!0x1),_0x195946[_0x3e46d4]['item']['startIndex']<_0x127524&&(_0x467476=_0x3e46d4),_0x195946[_0x3e46d4]['item']['endIndex']>=_0x3c6156){_0x347500=_0x3e46d4;break;}_0xf91296&&(_0x467476=_0x3c6156-0x1);for(let _0xbedb4e=_0x127524;_0xbedb4e<_0x3c6156;_0xbedb4e++)_0x195946[_0xbedb4e]['side']=_0xbedb4e<=_0x467476?-0x1:_0xbedb4e<_0x347500?0x0:0x1,_0x195946[_0xbedb4e]['index']=_0xbedb4e;let _0x520ac7=0x0;for(let _0x24338b=_0x127524;_0x24338b<=_0x467476;_0x24338b++)0x0==_0x195946[_0x24338b]['distance']?_0x195946[_0x24338b]['level']=_0x520ac7:(_0x520ac7++,_0x195946[_0x24338b]['level']=_0x520ac7,_0x520ac7++);for(let _0x2d07e9=_0x127524;_0x2d07e9<_0x3c6156;_0x2d07e9++)0x0==_0x195946[_0x2d07e9]['side']&&(_0x195946[_0x2d07e9]['level']=_0x520ac7);_0x520ac7=0x0;for(let _0x2772e5=_0x3c6156-0x1;_0x2772e5>=_0x347500;_0x2772e5--)0x0==_0x195946[_0x2772e5]['distance']?_0x195946[_0x2772e5]['level']=_0x520ac7:(_0x520ac7--,_0x195946[_0x2772e5]['level']=_0x520ac7,_0x520ac7--);}}['_fixObsoleteTags'](_0x229ede){const _0x20c587=new Map(),_0x27faaf=this['editor']['model']['schema'];for(let _0x3da718=0x1;_0x3da718<_0x229ede['length'];_0x3da718++){let _0x357818,_0x14f9d9,_0x4589d4;const _0xfee7d8=_0x229ede[_0x3da718],_0x1193d4=_0x229ede[_0x3da718-0x1];if('text'==_0xfee7d8['type'])continue;if(_0xfee7d8['type']!=_0x1193d4['type'])continue;if(!_0x27faaf['isBlock'](_0x1193d4['item'])||_0x27faaf['isLimit'](_0x1193d4['item']))continue;if(!_0x27faaf['isBlock'](_0xfee7d8['item'])||_0x27faaf['isLimit'](_0xfee7d8['item']))continue;if((_0x229ede[_0x3da718]['isAdded']||_0x229ede[_0x3da718]['isAddSuggestion'])&&_0x229ede[_0x3da718-0x1]['isRemoved'])_0x357818=_0x229ede[_0x3da718],_0x14f9d9=_0x229ede[_0x3da718-0x1],_0x4589d4=_0x3da718-0x1;else{if(!_0x229ede[_0x3da718]['isRemoved']||!_0x229ede[_0x3da718-0x1]['isAdded']&&!_0x229ede[_0x3da718-0x1]['isAddSuggestion'])continue;_0x357818=_0x229ede[_0x3da718-0x1],_0x14f9d9=_0x229ede[_0x3da718],_0x4589d4=_0x3da718;}const _0x33a4f9=_0x357818['level']==_0x14f9d9['level'],_0x2f34b5=Math['abs'](_0x357818['level'])<Math['abs'](_0x14f9d9['level'])&&0x0==_0x14f9d9['distance'];(_0x33a4f9||_0x2f34b5)&&(_0x20c587['set'](_0x14f9d9['id'],_0x357818['id']),_0x229ede['splice'](_0x4589d4,0x1),_0x3da718--,_0x357818['isAdded']=!0x1);}for(let _0x36def2=0x0;_0x36def2<_0x229ede['length'];_0x36def2++)_0x20c587['has'](_0x229ede[_0x36def2]['pairId'])&&(_0x229ede[_0x36def2]['pairId']=_0x20c587['get'](_0x229ede[_0x36def2]['pairId']));}['_removeMissingPairs'](_0x1e0483){const _0x4caa89=new Set(_0x1e0483['map'](_0x5cc425=>_0x5cc425['id']));for(let _0xa6f4e2=0x0;_0xa6f4e2<_0x1e0483['length'];_0xa6f4e2++)_0x4caa89['has'](_0x1e0483[_0xa6f4e2]['pairId'])||0x0==_0x1e0483[_0xa6f4e2]['distance']||(_0x1e0483[_0xa6f4e2]['isIncorrect']=!0x0);return _0x1e0483['filter'](_0x1d56fe=>!_0x1d56fe['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1adc66){const _0x2b3869=new Set();for(let _0x242491=0x0;_0x242491<_0x1adc66['length'];_0x242491++){if(_0x2b3869['has'](_0x1adc66[_0x242491]['id'])&&_0x1adc66[_0x242491]['isRemoved']&&(_0x1adc66[_0x242491]['isIncorrect']=!0x0),_0x1adc66[_0x242491]['isIncorrect'])continue;if(0x0==_0x1adc66[_0x242491]['distance'])continue;if('elementStart'!=_0x1adc66[_0x242491]['type'])continue;if(null==_0x1adc66[_0x242491]['pairId'])continue;let _0x3fbc07=_0x242491+0x1,_0x4c86b8=0x0;for(;_0x1adc66[_0x3fbc07]['id']!=_0x1adc66[_0x242491]['pairId'];)'elementStart'==_0x1adc66[_0x3fbc07]['type']?_0x4c86b8++:'elementEnd'==_0x1adc66[_0x3fbc07]['type']&&_0x4c86b8--,_0x3fbc07++;if(0x0!=_0x4c86b8){if(_0x1adc66[_0x242491]['isRemoved'])_0x1adc66[_0x242491]['isIncorrect']=!0x0;else{for(;_0x3fbc07!=_0x242491;)_0x1adc66[_0x3fbc07]['isRemoved']&&0x0!=_0x1adc66[_0x3fbc07]['distance']&&(_0x1adc66[_0x3fbc07]['isIncorrect']=!0x0,_0x2b3869['add'](_0x1adc66[_0x3fbc07]['pairId'])),_0x3fbc07--;}}}return _0x1adc66['filter'](_0x35436a=>!_0x35436a['isIncorrect']);}['_removeUnsupportedChanges'](_0x164c9b){const _0x1d88bf=this['editor']['model']['schema'];for(let _0x3b6c58=0x0;_0x3b6c58<_0x164c9b['length'];_0x3b6c58++){if(!(_0x164c9b[_0x3b6c58]['isAdded']||_0x164c9b[_0x3b6c58]['isAddSuggestion']||_0x164c9b[_0x3b6c58]['isRemoved']||_0x164c9b[_0x3b6c58]['isRemoveSuggestion']))continue;if(0x0==_0x164c9b[_0x3b6c58]['distance'])continue;const _0x31ef02=_0x164c9b[_0x3b6c58]['item'];_0x1d88bf['isBlock'](_0x31ef02)||_0x1d88bf['isLimit'](_0x31ef02)||(_0x164c9b[_0x3b6c58]['isAdded']&&delete _0x164c9b[_0x3b6c58]['isAdded'],_0x164c9b[_0x3b6c58]['isAddSuggestion']&&delete _0x164c9b[_0x3b6c58]['isAddSuggestion'],_0x164c9b[_0x3b6c58]['isRemoveSuggestion']&&delete _0x164c9b[_0x3b6c58]['isRemoveSuggestion'],_0x164c9b[_0x3b6c58]['isRemoved']&&(_0x164c9b[_0x3b6c58]['isIncorrect']=!0x0));}return _0x164c9b['filter'](_0x24dafa=>!_0x24dafa['isIncorrect']);}['_makeModelFromTape'](_0x440cd9,_0x1f17c3,_0x187a25){const _0xfb850c=new vt(),_0x58f557=[],_0x3d523b=new Map(),_0x15f521=this['editor']['model'],_0x5653a2=_0x15f521['schema'],_0x12a4a4=[_0xfb850c],_0x3624fb={},_0x1327dd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x232675=null;const _0x8cfd6c=[0x0];for(let _0x51be7b=0x0;_0x51be7b<_0x440cd9['length'];_0x51be7b++)if('elementStart'===_0x440cd9[_0x51be7b]['type']){_0x440cd9[_0x51be7b]['previousPosition']=_0x15f521['createPositionFromPath'](_0xfb850c,_0x8cfd6c);const _0x3f0bb0=new ut(_0x440cd9[_0x51be7b]['item']['name'],_0x440cd9[_0x51be7b]['item']['getAttributes']());_0x12a4a4[0x0]['_appendChild'](_0x3f0bb0),_0x8cfd6c['push'](0x0),_0x12a4a4['unshift'](_0x3f0bb0),_0x440cd9[_0x51be7b]['nextPosition']=_0x15f521['createPositionFromPath'](_0xfb850c,_0x8cfd6c);}else'elementEnd'===_0x440cd9[_0x51be7b]['type']?(_0x12a4a4['shift'](),_0x440cd9[_0x51be7b]['previousPosition']=_0x15f521['createPositionFromPath'](_0xfb850c,_0x8cfd6c),_0x8cfd6c['pop'](),_0x8cfd6c[_0x8cfd6c['length']-0x1]++,_0x440cd9[_0x51be7b]['nextPosition']=_0x15f521['createPositionFromPath'](_0xfb850c,_0x8cfd6c)):(_0x440cd9[_0x51be7b]['previousPosition']=_0x15f521['createPositionFromPath'](_0xfb850c,_0x8cfd6c),_0x232675?_0x232675['_data']+=_0x440cd9[_0x51be7b]['item']['data']:_0x232675=new gt(_0x440cd9[_0x51be7b]['item']['data'],_0x440cd9[_0x51be7b]['item']['getAttributes']()),_0x440cd9[_0x51be7b+0x1]&&'text'===_0x440cd9[_0x51be7b+0x1]['type']&&_0xbd197d(_0x232675,_0x440cd9[_0x51be7b+0x1]['item'])||(_0x12a4a4[0x0]['_appendChild'](_0x232675),_0x232675=null),_0x8cfd6c[_0x8cfd6c['length']-0x1]+=_0x440cd9[_0x51be7b]['item']['offsetSize'],_0x440cd9[_0x51be7b]['nextPosition']=_0x15f521['createPositionFromPath'](_0xfb850c,_0x8cfd6c));for(let _0x2afb99=0x0;_0x2afb99<_0x440cd9['length'];_0x2afb99++){const _0x1a7aeb=_0x440cd9[_0x2afb99]['previousPosition'],_0x298fe1=_0x440cd9[_0x2afb99]['nextPosition'];for(const _0x3e6cb0 of _0x440cd9[_0x2afb99]['markersStart'])_0x3d523b['set'](_0x3e6cb0,{'start':_0x1a7aeb,'end':null});_0x39ff82('isRemoveSuggestion',_0x2afb99,_0x1a7aeb,_0x298fe1),_0x39ff82('isAddSuggestion',_0x2afb99,_0x1a7aeb,_0x298fe1),_0x39ff82('isRemoved',_0x2afb99,_0x1a7aeb,_0x298fe1),_0x39ff82('isAdded',_0x2afb99,_0x1a7aeb,_0x298fe1);for(const _0x5d2f60 of _0x440cd9[_0x2afb99]['markersEnd']){const _0x353cb8=_0x3d523b['get'](_0x5d2f60);_0x353cb8?_0x353cb8['end']=_0x298fe1:_0x3d523b['set'](_0x5d2f60,{'start':_0x298fe1,'end':_0x298fe1});}}for(const [_0x162638,_0x3011c9]of _0x3d523b){const _0x50c046=this['editor']['model']['createRange'](_0x3011c9['start'],_0x3011c9['end']);_0xfb850c['markers']['set'](_0x162638,_0x50c046);}return _0x58f557['sort']((_0x328c1b,_0x226a94)=>{const _0x2bc3c9=_0xfb850c['markers']['get']('revision:'+_0x328c1b['id']),_0x5e1be7=_0xfb850c['markers']['get']('revision:'+_0x226a94['id']);return _0x2bc3c9['start']['isBefore'](_0x5e1be7['start'])?-0x1:_0x2bc3c9['start']['isAfter'](_0x5e1be7['start'])?0x1:_0x2bc3c9['end']['isBefore'](_0x5e1be7['end'])?-0x1:_0x2bc3c9['end']['isAfter'](_0x5e1be7['end'])?0x1:'add'===_0x328c1b['type']?-0x1:0x1;}),{'root':_0xfb850c,'changes':_0x58f557};function _0x39ff82(_0x3f1be3,_0xbe20a9,_0x2a52b7,_0x1f1562){const _0x513402=!!_0x440cd9[_0xbe20a9][_0x3f1be3],_0x4b225c=_0x513402?_0x440cd9[_0xbe20a9][_0x3f1be3]['userId']:null,_0x4d40c5=_0xbe20a9===_0x440cd9['length']-0x1,_0x3b78fb=_0x1327dd[_0x3f1be3][0x0],_0x4e18c1=_0x5653a2['isObject'](_0x440cd9[_0xbe20a9]['item']);!_0x3624fb[_0x3f1be3]&&_0x513402?_0x3624fb[_0x3f1be3]={'start':_0x2a52b7,'tapeItem':_0x440cd9[_0xbe20a9],'userId':_0x4b225c,'type':_0x3f1be3}:_0x3624fb[_0x3f1be3]&&!_0x513402?(_0x3624fb[_0x3f1be3]['end']=_0x2a52b7,_0x5a2d69(_0x3624fb[_0x3f1be3]),_0x3624fb[_0x3f1be3]=null):_0x3624fb[_0x3f1be3]&&_0x513402&&_0x3624fb[_0x3f1be3]['userId']!==_0x4b225c&&(_0x3624fb[_0x3f1be3]['end']=_0x2a52b7,_0x3b78fb&&_0x3b78fb['userId']===_0x3624fb[_0x3f1be3]['userId']||_0x5a2d69(_0x3624fb[_0x3f1be3]),_0x3624fb[_0x3f1be3]={'start':_0x2a52b7,'tapeItem':_0x440cd9[_0xbe20a9],'userId':_0x4b225c,'type':_0x3f1be3}),_0x3624fb[_0x3f1be3]&&_0x4e18c1&&('elementStart'!==_0x440cd9[_0xbe20a9]['type']||_0x3b78fb&&_0x3b78fb['userId']===_0x4b225c||_0x1327dd[_0x3f1be3]['unshift']({'userId':_0x4b225c,'object':_0x440cd9[_0xbe20a9]['item'],'change':_0x3624fb[_0x3f1be3]}),'elementEnd'===_0x440cd9[_0xbe20a9]['type']&&_0x3b78fb&&_0x3b78fb['object']===_0x440cd9[_0xbe20a9]['item']&&(_0x1327dd[_0x3f1be3]['shift'](),_0x3624fb[_0x3f1be3]=_0x3b78fb['change'])),_0x3624fb[_0x3f1be3]&&_0x4d40c5&&(_0x3624fb[_0x3f1be3]['end']=_0x1f1562,_0x5a2d69(_0x3624fb[_0x3f1be3]),_0x3624fb[_0x3f1be3]=null);}function _0x5a2d69({start:_0x2502cf,end:_0x2cce0d,tapeItem:_0x1c83fe,userId:_0x42cdf9,type:_0x36bc0c}){const _0x5395ab=_0x1c83fe['item'],_0x201414=_0x15f521['schema']['isBlock'](_0x5395ab)&&!_0x15f521['schema']['isLimit'](_0x5395ab),_0x46e58d=_0x2502cf['nodeAfter']==_0x2cce0d['parent']&&_0x2cce0d['isAtStart'];if(_0x201414&&_0x46e58d)return;const _0xc1d48c=_0x15f521['createRange'](_0x2502cf,_0x2cce0d),_0x20c8e8=_0x1f17c3['get'](_0x42cdf9),_0x388064=new r({'author':_0x20c8e8,'type':'isAdded'==_0x36bc0c||'isAddSuggestion'==_0x36bc0c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x36bc0c||'isRemoveSuggestion'==_0x36bc0c},'createdAt':new Date(),'rootName':_0x187a25});_0x58f557['push'](_0x388064),_0xfb850c['markers']['set']('revision:'+_0x388064['id'],_0xc1d48c);}function _0xbd197d(_0x1a92d1,_0x57033e){const _0x419f71=_0x1a92d1['getAttributes'](),_0x32fd8d=_0x57033e['getAttributes']();for(const _0x240a11 of _0x419f71){if(_0x240a11[0x1]!==_0x57033e['getAttribute'](_0x240a11[0x0]))return!0x1;_0x32fd8d['next']();}return _0x32fd8d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x56b267=>{const _0x39687e=_0x56b267['markerName']['split'](':')[0x1],_0x5940e9=this['_getChangeFromId'](_0x39687e);if(!_0x5940e9)return null;const _0x5f4186='add'==_0x5940e9['type']?'insertion':'deletion',_0x59e2e1=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5f4186];return _0x5940e9['data']['isSuggestion']&&_0x59e2e1['push']('ck-suggestion-marker-'+_0x5f4186+'-new'),this['activeChange']==_0x5940e9&&_0x59e2e1['push']('ck-suggestion-marker--active'),{'classes':_0x59e2e1,'attributes':{'data-change-id':_0x39687e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x221106=>{_0x221106['on']('element:pre',(_0x156f30,_0x8ea143,_0x2ff3a6)=>{const _0x118be7=_0x8ea143['viewItem']['getChild'](0x0);if(!_0x118be7||!_0x118be7['is']('element','code'))return;if(!_0x2ff3a6['consumable']['consume'](_0x118be7,{'attributes':['vid_start','vid_end']}))return;const _0x324622=_0x8ea143['modelRange']['start']['nodeAfter'];_0x2ff3a6['writer']['setAttribute']('vid_start',_0x118be7['getAttribute']('vid_start'),_0x324622),_0x2ff3a6['writer']['setAttribute']('vid_end',_0x118be7['getAttribute']('vid_end'),_0x324622);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x385286=>{_0x385286['on']('element',(_0x7cb12,_0x112be4,_0x14e3ef)=>{if(!_0x14e3ef['consumable']['consume'](_0x112be4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x112be4['modelRange']['isCollapsed'])return;const _0xba8b57=_0x112be4['modelRange']['start']['nodeAfter'];_0xba8b57['hasAttribute']('vid_start')||_0xba8b57['hasAttribute']('vid')||(_0x14e3ef['writer']['setAttribute']('vid_start',_0x112be4['viewItem']['getAttribute']('vid_start'),_0xba8b57),_0x14e3ef['writer']['setAttribute']('vid_end',_0x112be4['viewItem']['getAttribute']('vid_end'),_0xba8b57));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x10ea2b=>_0x10ea2b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x62845,[,_0x53cd23])=>{['vid_start','vid_end','vid']['includes'](_0x53cd23)&&(_0x62845['return']=!0x0,_0x62845['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x55597d=>{_0x55597d['on']('attribute:vid',(_0x311ec5,_0x578bfb,_0x3bf218)=>{if('\x20'!=_0x578bfb['item']['data']||_0x578bfb['item']['parent']['maxOffset']>0x1)return;if(!_0x3bf218['consumable']['consume'](_0x578bfb['item'],_0x311ec5['name']))return;const _0x417c47=_0x3bf218['writer'],_0x150954=_0x3bf218['mapper']['toViewRange'](_0x578bfb['range']);_0x417c47['wrap'](_0x150954,_0x417c47['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1a4ea1){const _0x4d4a5e=_0x1a4ea1['plugins']['get']('RevisionViewer');return(_0x2c3c6e,_0x41bb0c,_0x3d9b14)=>{const _0xf9550c=_0x41bb0c['markerName']['split'](':')[0x1],_0x3831dc=_0x4d4a5e['_getChangeFromId'](_0xf9550c);if(!_0x3831dc)return null;const _0x4cf5cf='add'==_0x3831dc['type']?'split':'merge';if(!_0x3d9b14['consumable']['test'](_0x41bb0c['markerRange'],_0x2c3c6e['name']))return;const _0x5ec114=_0x41bb0c['markerRange']['getWalker'](),_0x3a1da1=_0x41bb0c['markerRange']['start'],_0x3a12bb=_0x1a4ea1['model']['schema'];let _0x1d6a4d=null,_0x42a66d=null,_0x4b593f=!0x1,_0x2e8763=!0x1;for(const _0x11bc7b of _0x5ec114){const _0x2abd4c=_0x11bc7b['item'];_0x4b593f=_0x4b593f||_0x3a12bb['isContent'](_0x2abd4c);const _0x42abfc=_0x3d9b14['mapper']['toViewElement'](_0x2abd4c);if(_0x42abfc&&_0x42abfc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x11bc7b['type']&&(_0x3a12bb['isBlock'](_0x2abd4c)&&!_0x3a12bb['isLimit'](_0x2abd4c)&&(_0x2abd4c['nextSibling']||_0x3a1da1['isAtEnd']?_0x1d6a4d&&_0x1d6a4d['parent']==_0x2abd4c||(_0x1d6a4d=_0x2abd4c,_0x3c7a40(_0x11bc7b['previousPosition']),_0x2e8763=!0x0):_0x42a66d=_0x42a66d||_0x11bc7b['previousPosition']));}function _0x3c7a40(_0x2d4144){const _0x1dd1ff=_0x3d9b14['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4cf5cf}),_0x1b44a4=_0x3d9b14['mapper']['toViewPosition'](_0x2d4144);_0x3831dc['data']['isSuggestion']&&_0x3d9b14['writer']['addClass']('ck-suggestion-marker-'+_0x4cf5cf+'-new',_0x1dd1ff),_0x4d4a5e['activeChange']==_0x3831dc&&_0x3d9b14['writer']['addClass']('ck-suggestion-marker--active',_0x1dd1ff),_0x3d9b14['writer']['insert'](_0x1b44a4,_0x1dd1ff),_0x3d9b14['mapper']['bindElementToMarker'](_0x1dd1ff,_0x41bb0c['markerName']);}_0x4b593f||_0x2e8763||!_0x42a66d||_0x3c7a40(_0x42a66d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x40e5ff,_0x4b915e,_0x1048c3)=>{const _0x3ccdfd=_0x1048c3['mapper']['markerNameToElements'](_0x4b915e['markerName']);if(_0x3ccdfd){for(const _0x1d23f0 of _0x3ccdfd)(_0x1d23f0['hasClass']('ck-suggestion-marker-split')||_0x1d23f0['hasClass']('ck-suggestion-marker-merge'))&&(_0x1048c3['mapper']['unbindElementFromMarkerName'](_0x1d23f0,_0x4b915e['markerName']),_0x1048c3['writer']['remove'](_0x1d23f0));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x38d127,_0x4a2756,_0x1f5a23)=>{const _0x55ff29=_0x4a2756['markerName']['split'](':')[0x1],_0x2f670f=this['_getChangeFromId'](_0x55ff29);if(!_0x2f670f)return null;const _0xe10ae0='add'==_0x2f670f['type']?'split':'merge';if(_0x1f5a23['consumable']['test'](_0x4a2756['markerRange'],_0x38d127['name']))for(const _0x2d525f of _0x4a2756['markerRange']['getItems']()){if(!_0x2d525f['is']('element','softBreak'))continue;const _0x47b43a=_0x1f5a23['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe10ae0}),_0x571d70=_0x1f5a23['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2d525f));_0x2f670f['data']['isSuggestion']&&_0x1f5a23['writer']['addClass']('ck-suggestion-marker-'+_0xe10ae0+'-new',_0x47b43a),this['activeChange']==_0x2f670f&&_0x1f5a23['writer']['addClass']('ck-suggestion-marker--active',_0x47b43a),_0x1f5a23['writer']['insert'](_0x571d70,_0x47b43a),_0x1f5a23['mapper']['bindElementToMarker'](_0x47b43a,_0x4a2756['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1ffc16=>{for(const _0x7ceb03 of this['editor']['model']['document']['getRootNames']()){const _0x550125=this['editor']['model']['document']['getRoot'](_0x7ceb03),_0x5acdad=this['editor']['editing']['view']['document']['getRoot'](_0x7ceb03);if(_0x5acdad){const _0x4a04a1=_0x550125['getAttribute']('revisionHistoryAttachChange');if(_0x1ffc16['removeAttribute']('data-change-id',_0x5acdad),_0x1ffc16['removeClass']('ck-revision-history-root-add',_0x5acdad),_0x1ffc16['removeClass']('ck-revision-history-root-remove',_0x5acdad),_0x1ffc16['removeClass']('ck-revision-history-root--active',_0x5acdad),_0x4a04a1){const _0x29a943=this['_getChangeFromId'](_0x4a04a1);if(!_0x29a943)return null;_0x1ffc16['setAttribute']('data-change-id',_0x4a04a1,_0x5acdad),_0x1ffc16['addClass']('ck-revision-history-root-'+_0x29a943['type'],_0x5acdad),this['activeChange']==_0x29a943&&_0x1ffc16['addClass']('ck-revision-history-root--active',_0x5acdad);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4f34d7=>'revision-comment:'+_0x4f34d7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1787c4=>'revision-suggestion:'+_0x1787c4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x32c466=>({'name':'suggestion:'+_0x32c466,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1c4bc0=>{const _0x196ab1=_0x1c4bc0['markerName']['split'](':')[0x1];return'insertion'!=_0x196ab1&&'deletion'!=_0x196ab1?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x196ab1]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xa660f1,_0x22af7d,_0x54289b)=>{const _0x148d4b=_0x54289b['mapper']['markerNameToElements'](_0x22af7d['markerName']);if(_0x148d4b){for(const _0x59968c of _0x148d4b)_0x59968c['is']('uiElement')&&(_0x54289b['mapper']['unbindElementFromMarkerName'](_0x59968c,_0x22af7d['markerName']),_0x54289b['writer']['remove'](_0x59968c));}},{'priority':'high'});}['_getChangeFromId'](_0x440457){return this['_changeIdToChange']['get'](_0x440457);}['_getViewForChange'](_0x3af46c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x3af46c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x59d180,_0x452c89,_0x2a7396,_0x41baa3)=>{_0x41baa3&&this['_balloon']['remove'](_0x41baa3),_0x2a7396&&(this['_balloon']['add']({'view':_0x2a7396,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x10b22b=this['editor']['editing'],_0x2fe928=this['_getChangeFromId'](_0x2a7396['changeId']);let _0x5ef3c2;if(_0x2fe928['data']['isOnRoot']){const _0x5bd570=_0x10b22b['view']['getDomRoot'](_0x2fe928['rootName']);_0x5ef3c2=Array['from'](_0x5bd570['getClientRects']());}else{const _0x5bee2a=this['editor']['model']['markers']['get']('revision:'+_0x2a7396['changeId']);_0x5ef3c2=Array['from'](_0x10b22b['mapper']['markerNameToElements'](_0x5bee2a['name']))['map'](_0x4faed8=>_0x10b22b['view']['domConverter']['mapViewToDom'](_0x4faed8))['map'](_0x4bebad=>Array['from'](_0x4bebad['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5ef3c2[0x0];return _0x5ef3c2['find'](_0x500c92=>_0x500c92['top']-0x3<=this['_activeViewTarget']['y']&&_0x500c92['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x500c92['left']-0x3<=this['_activeViewTarget']['x']&&_0x500c92['right']+0x3>=this['_activeViewTarget']['x'])||_0x5ef3c2[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x20cb52,_0x3297c0,_0x2b7498,_0x1ff2bb)=>{this['activeView']=_0x2b7498?this['_getViewForChange'](_0x2b7498):null,this['editor']['model']['change'](()=>{const _0x5ebb5e=this['editor']['editing'];_0x1ff2bb&&(_0x1ff2bb['data']['isOnRoot']?_0x5ebb5e['view']['change'](_0x2420a5=>{_0x2420a5['removeClass']('ck-revision-history-root--active',_0x5ebb5e['view']['document']['getRoot'](_0x1ff2bb['rootName']));}):_0x5ebb5e['reconvertMarker']('revision:'+_0x1ff2bb['id'])),_0x2b7498&&(_0x2b7498['data']['isOnRoot']?_0x5ebb5e['view']['change'](_0x365a96=>{_0x365a96['addClass']('ck-revision-history-root--active',_0x5ebb5e['view']['document']['getRoot'](_0x2b7498['rootName']));}):_0x5ebb5e['reconvertMarker']('revision:'+_0x2b7498['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3f7479,_0xf9c95)=>{if(this['activeChange'])return;const _0x2ae939=this['_findChangeIdFromDomTarget'](_0xf9c95['target']),_0xc5386=this['_changeIdToChange']['get'](_0x2ae939);_0xc5386?(this['_activeViewTarget']={'x':_0xf9c95['domEvent']['x'],'y':_0xf9c95['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xc5386)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x536ac5,_0x55cc08)=>{const _0x1e368b=this['_findChangeIdFromDomTarget'](_0x55cc08['target']),_0x183964=this['_changeIdToChange']['get'](_0x1e368b);_0x183964?(this['_activeViewTarget']={'x':_0x55cc08['domEvent']['x'],'y':_0x55cc08['domEvent']['y']},_0x183964===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x183964):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3c54d4){do{const _0x2872d4=_0x3c54d4['getAttribute']('data-change-id');if(_0x2872d4)return _0x2872d4;_0x3c54d4=_0x3c54d4['parent'];}while(_0x3c54d4);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x132e6f=>{for(const _0x3eda6b of this['editor']['model']['markers'])_0x132e6f['removeMarker'](_0x3eda6b);});}}function X(_0x353258,_0x4abf1b){return(_0x40edad,_0xa01749,_0x2dbaee)=>{if(!_0x2dbaee['consumable']['test'](_0xa01749['markerRange'],_0x40edad['name']))return;const _0xbe65f9=_0xa01749['markerRange']['getWalker'](),_0x31418f=_0xa01749['markerRange']['start'],_0xd50786=_0x353258['model']['schema'];let _0x546a87=null,_0x10a4b1=null,_0x35c133=!0x1,_0x434bfe=!0x1;for(const _0x20eb34 of _0xbe65f9){const _0x5e4f7a=_0x20eb34['item'];_0x35c133=_0x35c133||_0xd50786['isContent'](_0x5e4f7a);const _0x2f324a=_0x2dbaee['mapper']['toViewElement'](_0x5e4f7a);if(_0x2f324a&&_0x2f324a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x20eb34['type']&&(_0xd50786['isBlock'](_0x5e4f7a)&&!_0xd50786['isLimit'](_0x5e4f7a)&&(_0x5e4f7a['nextSibling']||_0x31418f['isAtEnd']?_0x546a87&&_0x546a87['parent']==_0x5e4f7a||(_0x546a87=_0x5e4f7a,_0x3b1fd8(_0x20eb34['previousPosition']),_0x434bfe=!0x0):_0x10a4b1=_0x10a4b1||_0x20eb34['previousPosition']));}function _0x3b1fd8(_0x3ef08b){const _0x1f7693=_0x2dbaee['mapper']['toViewPosition'](_0x3ef08b),_0x4c53d0=_0x2dbaee['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4abf1b});_0x2dbaee['writer']['insert'](_0x1f7693,_0x4c53d0),_0x2dbaee['mapper']['bindElementToMarker'](_0x4c53d0,_0xa01749['markerName']);}_0x35c133||_0x434bfe||!_0x10a4b1||_0x3b1fd8(_0x10a4b1);};}class mt extends _0x25ac75{constructor(_0x3e151d){super(_0x3e151d);const _0x1f9239=_0x3e151d['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1f9239,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1f9239,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3bbe40=this['editor'],_0x1acab1=_0x3bbe40['plugins']['get'](m),_0x5f29e7=_0x1acab1['isReady']?_0x1acab1['diff']['newRevisionId']:null;_0x3bbe40['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5f29e7);}['refresh'](){const {isReady:_0x360f7d,isEnabled:_0x2aafe9,repository:_0x520473,diff:_0xffb33b}=this['editor']['plugins']['get'](m),_0x49508b=_0xffb33b&&_0x520473['getLaterVisibleRevision'](_0xffb33b['newRevisionId']);this['isEnabled']=_0x360f7d&&_0x2aafe9&&Boolean(_0x49508b);}}class wt extends _0x25ac75{['_step'];constructor(_0x84e941,{direction:_0x4ee3bf}){super(_0x84e941);const _0x514f63=_0x84e941['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4ee3bf?0x1:-0x1,this['listenTo'](_0x514f63,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x514f63,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x514f63,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x84ec9b=this['editor'],_0x5e80c0=_0x84ec9b['plugins']['get'](m),{isNavigationMode:_0x231f58,currentChangeNumber:_0xa99efc}=_0x5e80c0;let _0x3a7bb6;if(_0x5e80c0['activeChange']=_0x231f58?_0x5e80c0['diff']['changes']['get'](_0xa99efc+this['_step']):_0x5e80c0['diff']['changes']['first'],_0x5e80c0['activeChange']['data']['isOnRoot'])_0x3a7bb6=_0x84ec9b['editing']['view']['getDomRoot'](_0x5e80c0['activeChange']['rootName']);else{const _0x5783e6=_0x84ec9b['model']['markers']['get']('revision:'+_0x5e80c0['activeChange']['id']);_0x3a7bb6=_0x1c3283(_0x84ec9b['editing'],_0x5783e6);}_0x29fbf4({'target':_0x3a7bb6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x288b98,currentChangeNumber:_0x3a75e2,numberOfChanges:_0x27f0b0,isReady:_0x8da0ed,isEnabled:_0x166d47}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x166d47&&_0x8da0ed&&_0x27f0b0)&&(!_0x288b98||(0x1===this['_step']?_0x3a75e2<_0x27f0b0-0x1:_0x3a75e2>0x0));}}class oi extends ts{constructor(_0x2dcfab){super(_0x2dcfab);const _0x2227bd=this['bindTemplate'],_0x598257=new te(_0x2dcfab),_0x3deb9b=new te(_0x2dcfab);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',(_0x14a330,_0x5d4bde)=>_0x14a330&&_0x5d4bde>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3f443d,_0x56e647,_0x55ea12,_0x6e6318)=>{if(!_0x3f443d)return g(_0x2dcfab,'Loading...');if(!_0x55ea12)return g(_0x2dcfab,'No\x20changes');const _0x33e3f9=g(_0x2dcfab,'NUMBER_OF_CHANGES',_0x55ea12);return _0x6e6318?g(_0x2dcfab,'X_OF_Y_CHANGES',[_0x56e647+0x1,_0x55ea12]):_0x33e3f9;}),_0x598257['set']({'label':g(_0x2dcfab,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2f620a}),_0x3deb9b['set']({'label':g(_0x2dcfab,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2e3d6c}),_0x598257['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3deb9b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x598257['on']('execute',()=>this['fire']('execute','backward')),_0x3deb9b['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',_0x2227bd['if']('_isStatusLabelVisible','ck-hidden',_0x435e53=>!_0x435e53)]},'children':[{'text':_0x2227bd['to']('isNavigationMode',_0x1717ae=>_0x1717ae?g(_0x2dcfab,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x2dcfab,'Total')+':\x20')}]},{'text':_0x2227bd['to']('_statusText')}]},new _0x13ae70(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x598257,_0x3deb9b]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x53ef20{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3785b9=this['editor']['editing']['view'];_0x3785b9['change'](_0x1e1c77=>{for(const _0x4bc358 of _0x3785b9['document']['roots'])_0x1e1c77['addClass'](le,_0x4bc358);});}['hide'](){const _0x5bf811=this['editor']['editing']['view'];_0x5bf811['change'](_0x136609=>{for(const _0x220e2c of _0x5bf811['document']['roots'])_0x136609['removeClass'](le,_0x220e2c);});}}class R extends _0x53ef20{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x28e1f1=this['editor'],_0x4c1d33=_0x28e1f1['plugins']['get'](m),_0x3d4d8=_0x28e1f1['plugins']['get'](ge);_0x28e1f1['ui']['componentFactory']['add']('exitToEditing',_0x4b9a24=>{const _0x43b9d2=new te(_0x4b9a24);return _0x43b9d2['set']({'label':g(_0x4b9a24,'Back\x20to\x20editing'),'icon':_0x1f2dc0,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x43b9d2,'execute',()=>{_0x28e1f1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x43b9d2;}),_0x28e1f1['ui']['componentFactory']['add']('restoreRevision',_0x33cc4a=>{const _0x4c594d=new te(_0x33cc4a);return _0x4c594d['set']({'label':g(_0x33cc4a,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4c594d['bind']('isEnabled')['to'](_0x28e1f1['commands']['get']('restoreRevision')),this['listenTo'](_0x4c594d,'execute',()=>_0x28e1f1['execute']('restoreRevision')),_0x4c594d;}),_0x28e1f1['ui']['componentFactory']['add']('changesNavigation',_0x2ca62c=>{const _0x145153=new oi(_0x2ca62c),_0x52a9e4=_0x28e1f1['commands']['get']('showPreviousChange'),_0x3c886c=_0x28e1f1['commands']['get']('showNextChange');return _0x145153['bind']('isBackwardNavigationEnabled')['to'](_0x52a9e4,'isEnabled'),_0x145153['bind']('isForwardNavigationEnabled')['to'](_0x3c886c,'isEnabled'),_0x145153['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4c1d33),this['listenTo'](_0x145153,'execute',(_0x273928,_0xb81796)=>{_0x28e1f1['execute']('forward'===_0xb81796?'showNextChange':'showPreviousChange');}),_0x145153;}),_0x3d4d8['show'](),_0x4c1d33['on']('change:isReady',(_0x38ac98,_0x41523a,_0x3b31c1)=>{_0x3b31c1?_0x3d4d8['hide']():_0x3d4d8['show']();});}}class at extends _0x5cfe1e{['_resizeObserver']=null;constructor(_0x11fd38,_0x3acc6a){super(_0x11fd38,_0x3acc6a);const _0xaf115=this['bindTemplate'];this['set']({'label':g(_0x11fd38,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x11fd38,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xaf115['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x24779c=this['fieldView']['element'];this['_tooltipString']=_0x24779c['scrollWidth']>_0x24779c['clientWidth']&&_0x24779c['value']||'';}}class hi extends ts{constructor(_0x26d3fc,_0x123b91,_0x1057aa){super(_0x26d3fc);const _0x9685e6=new _0xe099f5();_0x9685e6['set']({'content':_0x146a70,'viewBox':'0\x200\x2011\x2010'});const _0x3a8f1e=['ck','ck-revision-history-sidebar__revision-author'];_0x1057aa&&_0x3a8f1e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5bab4a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x26d3fc,_0x1057aa?'Revision\x20creator':'Revision\x20author')},'children':[_0x9685e6,_0x123b91['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3a8f1e},'children':_0x5bab4a});}}function vi(_0x5e5bea,_0x41a5a3){const _0x45b1b5=_0x5e5bea['bindTemplate'],_0x30f3a2=_0x5e5bea['locale'],_0x3b59c2=_0x41a004(_0x30f3a2);_0x3b59c2['panelPosition']='sw';const _0x58b6c3=function(_0x3477de,_0xdd2b50){const _0x3e5182=function(_0x5de05f,_0x33e45d){const _0x33d913=_0x5de05f['locale'],_0xa1868f={'Compare\x20against\x20selected':g(_0x33d913,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x33d913,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x33d913,'Restore\x20this\x20revision')};return _0x33e45d['map'](_0x2df6ee=>{const _0x34ce39=_0xa1868f[_0x2df6ee['name']];return _0x34ce39&&_0x34ce39!==_0x2df6ee['name']&&(_0x2df6ee['name']=_0x34ce39),_0x2df6ee;});}(_0x3477de,_0xdd2b50),_0x3c77ed=new _0x34482f();for(const _0x56d006 of _0x3e5182){const _0x4515c0={'type':'button','model':new to({'label':_0x56d006['name'],'class':_0x56d006['class'],'withText':!0x0,'role':'menuitem','_action':_0x56d006['action']})};_0x4515c0['model']['bind']('isEnabled')['to'](_0x3477de,'isActionsDropdownOpen',_0x582d89=>'function'!=typeof _0x56d006['isEnabled']||(!_0x582d89||_0x56d006['isEnabled'](_0x3477de))),_0x3c77ed['add'](_0x4515c0);}return _0x3c77ed;}(_0x5e5bea,_0x41a5a3);return _0x5e5bea['bind']('isActionsDropdownOpen')['to'](_0x3b59c2,'isOpen'),_0x3b59c2['buttonView']['set']({'label':g(_0x30f3a2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2e111c}),_0x3b59c2['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x45b1b5['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x45b1b5['to'](_0x1e4641=>_0x1e4641['stopPropagation']())}}),_0x3b59c2['on']('execute',_0x5c046f=>{_0x5e5bea['isReady']&&'function'==typeof _0x5c046f['source']['_action']&&_0x5c046f['source']['_action'](_0x5e5bea);}),_0x45e256(_0x3b59c2,_0x58b6c3,{'role':'menu'}),_0x3b59c2['listenTo'](_0x5e5bea,'change:isActionsDropdownOpen',(_0x14d577,_0x3bf29b,_0x46bd32)=>{if(_0x46bd32)for(const _0x41f4ae of _0x3b59c2['listView']['items']){const _0x19073=_0x41f4ae['children']['first'],_0x459bf0=_0x41a5a3['find'](_0x22e8a4=>_0x22e8a4['action']===_0x19073['_action'])['isVisible'];_0x41f4ae['isVisible']=void 0x0===_0x459bf0||_0x459bf0(_0x5e5bea);}}),_0x3b59c2;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x80fd2,uid as _0x32ff0a,Collection as _0x4cc644,logWarning as _0x156045,FocusTracker as _0x1473a9,KeystrokeHandler as _0x2ff732,scrollViewportToShowTarget as _0x1e191f,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x4cce17}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4cdb56,set as _0x173cf2,unset as _0x2c1494,isEqual as _0x410915}from'es-toolkit/compat';import{Plugin as _0x156834,PendingActions as _0x50d6a9,Command as _0x1122d0,ElementApiMixin as _0x40fadd,Editor as _0x1ed093}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x543348,getMarkerDomElement as _0x1d4af0,ConfirmMixin as _0xc597a8,sanitizeEditorConfig as _0x3e03d9}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5ecb95,ViewAttributeElement as _0x1dd94f,ViewEmptyElement as _0x18272e,ViewRawElement as _0x4bc277,ViewUIElement as _0x49fee3,ViewDocumentFragment as _0x36a44f,ViewText as _0x16094e,ViewElement as _0x4ab02e,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5cdd2b,IconChevronUp as _0x183156,IconChevronDown as _0x5debcc,IconUndo as _0x5533ee,IconUser as _0x419668,IconThreeVerticalDots as _0x351c46}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x2cb964,injectCssTransitionDisabler as ts,submitHandler as _0x7434ff,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x3a34e7,ListView as _0x587ef5,ListItemView as te,ButtonView as _0x9857a7,MenuBarMenuView as _0x390ac1,MenuBarMenuListView as _0x110ce8,MenuBarMenuListItemView as _0x230e5f,MenuBarMenuListItemButtonView as _0x4d2c08,ContextualBalloon as _0x3953ff,ToolbarSeparatorView as _0x354a4f,IconView as _0x502b31,addListToDropdown as _0x1dd5d5,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2a97cf}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x80fd2(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2efdcd){super(),this['id']=_0x2efdcd['id']||_0x32ff0a(),this['creator']=_0x2efdcd['creator']||null,this['authors']=_0x2efdcd['authors']||[],this['diffData']=_0x2efdcd['diffData']||null,this['toVersion']=_0x2efdcd['toVersion']||0x0,this['fromVersion']=_0x2efdcd['fromVersion']||0x0,this['set']('name',_0x2efdcd['name']||''),this['set']('createdAt',_0x2efdcd['createdAt']||new Date()),this['set']('attributes',_0x2efdcd['attributes']||{});}['setName'](_0x2179a6){this['_update']({'name':_0x2179a6});}['setAttribute'](_0x3909a6,_0x4771b5){const _0x14d30e=_0x4cdb56(this['attributes']);_0x173cf2(_0x14d30e,_0x3909a6,_0x4771b5),this['_update']({'attributes':_0x14d30e});}['removeAttribute'](_0x1397b1){const _0x3881eb=_0x4cdb56(this['attributes']);_0x2c1494(_0x3881eb,_0x1397b1),this['_update']({'attributes':_0x3881eb});}['_update'](_0x402b22,_0xa70b40=!0x1){let _0x1262b3=!0x1;const _0x572876={'id':this['id']},_0x23e368=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5a2bfc of _0x23e368){const _0x1e6f41=_0x402b22[_0x5a2bfc];void 0x0!==_0x1e6f41&&_0x1e6f41!==this[_0x5a2bfc]&&(this[_0x5a2bfc]=_0x1e6f41,_0x572876[_0x5a2bfc]=_0x1e6f41,_0x1262b3=!0x0);}_0x1262b3&&(_0x572876['authors']&&(_0x572876['authorsIds']=_0x572876['authors']['map'](_0x36c073=>_0x36c073['id']),delete _0x572876['authors']),this['fire']('_update',_0x572876,_0xa70b40));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x17441b=>_0x17441b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x156834{['_revisions'];static get['requires'](){return[_0x543348];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x34bd2f){super(_0x34bd2f),this['_revisions']=new _0x4cc644();}['afterInit'](){!async function(_0x2e81ab){const _0x56d3de=_0x4821a3([0x39,0x52,0x69,0x79,0x4f,0x4e,0x4b,0x50,0x5a,0x6b,0x4d,0x72,0x77,0x34,0x33,0x58,0x45,0x56,0x76,0x6e,0x36,0x31,0x54,0x47,0x49,0x53,0x35,0x48,0x57,0x73,0x37,0x63,0x62,0x65,0x6a,0x43,0x64,0x71,0x74,0x30,0x61,0x55,0x6c,0x44,0x42,0x70,0x51,0x6f,0x68,0x67,0x32,0x75,0x41,0x66,0x46,0x6d,0x78,0x59,0x4c,0x7a,0x38,0x4a]),_0x14c884=0xeb829,_0x5c68de=0x51081c42,_0x3df795=0x510f74ea^_0x5c68de,_0x2cd1a5=window[_0x4821a3([0x44,0x61,0x74,0x65])][_0x4821a3([0x6e,0x6f,0x77])](),_0x38b444=_0x2e81ab[_0x4821a3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a3d13=new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x494cbd=>{_0x38b444[_0x4821a3([0x6f,0x6e,0x63,0x65])](_0x4821a3([0x72,0x65,0x61,0x64,0x79]),_0x494cbd);}),_0x23e598={[_0x4821a3([0x6b,0x74,0x79])]:_0x4821a3([0x45,0x43]),[_0x4821a3([0x75,0x73,0x65])]:_0x4821a3([0x73,0x69,0x67]),[_0x4821a3([0x63,0x72,0x76])]:_0x4821a3([0x50,0x2d,0x32,0x35,0x36]),[_0x4821a3([0x78])]:_0x4821a3([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]),[_0x4821a3([0x79])]:_0x4821a3([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]),[_0x4821a3([0x61,0x6c,0x67])]:_0x4821a3([0x45,0x53,0x32,0x35,0x36])},_0x4fa59c=_0x38b444[_0x4821a3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4821a3([0x67,0x65,0x74])](_0x4821a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x361a96(){let _0x245843,_0x4e8085=null,_0x11b174=null;try{if(_0x4fa59c==_0x4821a3([0x47,0x50,0x4c]))return _0x4821a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x245843=_0x3a0480(),!_0x245843)return _0x4821a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x245843[_0x4821a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11b174=_0x3c8c8c(_0x245843[_0x4821a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x245843[_0x4821a3([0x6a,0x74,0x69])])),await _0x326b0a()?_0x3c0dcc()?_0x14316()?_0x4821a3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d414f()?(_0x245843[_0x4821a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4821a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e8085=_0x900005(_0x4821a3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x245843[_0x4821a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4821a3([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e8085=_0x900005(_0x4821a3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1db764()):_0x4821a3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4821a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4821a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4e6e73){return _0x4821a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14316(){const _0x3c53ef=[_0x4821a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4821a3([0x74,0x72,0x69,0x61,0x6c])][_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x245843[_0x4821a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cd1a5/0x3e8:0xe10*_0x3df795;return _0x245843[_0x4821a3([0x65,0x78,0x70])]<_0x3c53ef;}function _0x3c0dcc(){const _0x55e9fe=_0x245843[_0x4821a3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x55e9fe)return!0x1;if(_0x55e9fe[_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a3([0x2a])))return!0x0;if(_0x55e9fe[_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a3([0x52,0x48])))return!0x0;if(_0x55e9fe[_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a3([0x52,0x52,0x48]))){if(_0x26ae3f())return!0x0;if(_0x462e9a()||_0x532903())return!0x0;}return!0x1;}function _0x2d414f(){const _0x538467=_0x245843[_0x4821a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x538467||0x0==_0x538467[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x239750}=new URL(window[_0x4821a3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x538467[_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x239750))return!0x0;const _0x2abf04=_0x239750[_0x4821a3([0x73,0x70,0x6c,0x69,0x74])](_0x4821a3([0x2e]));return _0x538467[_0x4821a3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2406e=>_0x2406e[_0x4821a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4821a3([0x2a])))[_0x4821a3([0x6d,0x61,0x70])](_0x47d4fc=>_0x47d4fc[_0x4821a3([0x73,0x70,0x6c,0x69,0x74])](_0x4821a3([0x2e])))[_0x4821a3([0x73,0x6f,0x6d,0x65])](_0x1c892d=>_0x2abf04[_0x4821a3([0x65,0x76,0x65,0x72,0x79])]((_0x4cdbde,_0x9463dd)=>_0x1c892d[_0x9463dd]===_0x4cdbde||_0x1c892d[_0x9463dd]===_0x4821a3([0x2a])));}function _0x1db764(){return _0x4e8085&&_0x11b174?new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b3adf,_0x542cf5)=>{_0x4e8085[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x3b3adf,_0x542cf5),_0x11b174[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x4596eb=>{_0x4596eb!=_0x4821a3([0x56,0x61,0x6c,0x69,0x64])&&_0x3b3adf(_0x4596eb);},_0x542cf5);}):_0x4e8085||_0x11b174||_0x4821a3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c8c8c(_0x290009,_0x4203ea){return new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ca11a=>{if(_0x5723fd())return _0x2ca11a(_0x4821a3([0x56,0x61,0x6c,0x69,0x64]));_0x153520(),_0x38b444[_0x4821a3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4821a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7c8bdf=!0x1;const _0x57782d=_0x32ff0a();function _0x471073(_0x22abc5){return!!_0x22abc5&&(typeof _0x22abc5===_0x4821a3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22abc5===_0x4821a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22abc5[_0x4821a3([0x74,0x68,0x65,0x6e])]===_0x4821a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22abc5[_0x4821a3([0x63,0x61,0x74,0x63,0x68])]===_0x4821a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x422ab2(_0x4c89e3){_0x13a26a(_0x4c89e3)[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x28ae1c=>{if(!_0x28ae1c||_0x28ae1c[_0x4821a3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4821a3([0x6f,0x6b]))return _0x4821a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d4c6a(_0x51aaa7(_0x57782d+_0x4203ea))!=_0x28ae1c[_0x4821a3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4821a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4821a3([0x56,0x61,0x6c,0x69,0x64]);})[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x15b569=>(_0x58a8ed(),_0x15b569),()=>{const _0x5b841b=_0x70bbfe();return null==_0x5b841b?(_0x58a8ed(),_0x4821a3([0x56,0x61,0x6c,0x69,0x64])):_0x4821a3(_0x2cd1a5-_0x5b841b>(0x75049842^_0x5c68de)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x2ca11a)[_0x4821a3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ca11a(_0x4821a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x258a50=0x513ef2c2^_0x5c68de;function _0x58a8ed(){const _0xb6e758=_0x4821a3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d4c6a(_0x51aaa7(_0x290009)),_0x52132a=_0x482c2e(_0x1d4c6a(window[_0x4821a3([0x4d,0x61,0x74,0x68])][_0x4821a3([0x63,0x65,0x69,0x6c])](_0x2cd1a5/_0x258a50)));window[_0x4821a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4821a3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb6e758,_0x52132a);}function _0x70bbfe(){const _0x2fd9f1=_0x4821a3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d4c6a(_0x51aaa7(_0x290009)),_0x58de1c=window[_0x4821a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4821a3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fd9f1);return _0x58de1c?window[_0x4821a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x482c2e(_0x58de1c),0x10)*_0x258a50:null;}function _0x13a26a(_0x54f74d){return new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17e3a6,_0x4e6ada)=>{_0x54f74d[_0x4821a3([0x74,0x68,0x65,0x6e])](_0x17e3a6,_0x4e6ada),window[_0x4821a3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e6ada,0x5109c882^_0x5c68de);});}}_0x38b444[_0x4821a3([0x6f,0x6e])](_0x4821a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19ca55,_0x1fe303)=>{if(_0x1fe303[0x0]!=_0x290009)return _0x2ca11a(_0x4821a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fe303[0x1]={..._0x1fe303[0x1],[_0x4821a3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57782d};},{[_0x4821a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4821a3([0x68,0x69,0x67,0x68])}),_0x38b444[_0x4821a3([0x6f,0x6e])](_0x4821a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5afbfe=>{_0x471073(_0x5afbfe[_0x4821a3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7c8bdf=!0x0,_0x422ab2(_0x5afbfe[_0x4821a3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4821a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4821a3([0x6c,0x6f,0x77])}),_0x5a3d13[_0x4821a3([0x74,0x68,0x65,0x6e])](()=>{_0x7c8bdf||_0x2ca11a(_0x4821a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5723fd(){return _0x38b444[_0x4821a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4821a3([0x76,0x69,0x65,0x77])][_0x4821a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4821a3([0x61,0x75,0x74,0x6f]);}function _0x153520(){_0x38b444[_0x4821a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4821a3([0x76,0x69,0x65,0x77])][_0x4821a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4821a3([0x61,0x75,0x74,0x6f]);}}function _0x900005(_0x4db3c4){const _0x1c2a6e=[new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x730c1=>setTimeout(_0x730c1,0x5101228e^_0x5c68de)),_0x5a3d13[_0x4821a3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3569ce=>{const _0xa81be5=0x51081c45^_0x5c68de,_0x28c9=_0x2e81ab[_0x4821a3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x517151(){_0x28c9[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xa81be5&&_0x3569ce();}_0x517151(),_0x28c9[_0x4821a3([0x6f,0x6e])](_0x4821a3([0x61,0x64,0x64]),_0x517151);})),new window[(_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57dbc2=>{function _0x21cee8(){for(const _0x5254dd in window)if(window[_0x4821a3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4821a3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5254dd))&&window[_0x5254dd]==_0x14c884)return _0x57dbc2();_0x38b444[_0x4821a3([0x73,0x74,0x61,0x74,0x65])]!=_0x4821a3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4821a3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21cee8,0x51080fca^_0x5c68de);}_0x37f198(_0x4821a3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x21cee8();})];return window[_0x4821a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4821a3([0x72,0x61,0x63,0x65])](_0x1c2a6e)[_0x4821a3([0x74,0x68,0x65,0x6e])](()=>_0x4db3c4);}async function _0xba297e(){if(await _0x5a3d13,_0x37f198(_0x4821a3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x360c6f=_0x2e81ab[_0x4821a3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2d5750=_0x2e81ab[_0x4821a3([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])](_0x360c6f[_0x4821a3([0x69,0x64])]),_0x558c71=_0x2e61df(_0x4821a3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x558c71[_0x4821a3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x360c6f['id'],_0x2d5750?_0x2d5750['id']:null,!0x0),_0x558c71[_0x4821a3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4821a3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x558c71[_0x4821a3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x558c71[_0x4821a3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5c2e7f,void(_0x558c71[_0x4821a3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5c2e7f);}if(_0x37f198(_0x4821a3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1aae72=_0x2e61df(_0x4821a3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1aae72[_0x4821a3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4821a3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1aae72[_0x4821a3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1aae72[_0x4821a3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5c2e7f,_0x1aae72[_0x4821a3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5c2e7f;}_0x38b444[_0x4821a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4821a3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c2e7f,_0x38b444[_0x4821a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4821a3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c2e7f,_0x38b444[_0x4821a3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4821a3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26ae3f(){return _0x37f198(_0x4821a3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e61df(_0x4821a3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4821a3([0x73,0x74,0x61,0x74,0x65])]==_0x4821a3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x462e9a(){return _0x37f198(_0x4821a3([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 _0x532903(){return _0x37f198(_0x4821a3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x58a5f4(_0x1ea4a5){const _0x4aa918=_0x5a4108();_0x38b444[_0x4aa918]=_0x4821a3([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])+_0x1ea4a5,_0x1ea4a5[_0x4821a3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4821a3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5a4108()]=_0x14c884),_0x1ea4a5!=_0x4821a3([0x56,0x61,0x6c,0x69,0x64])&&_0xba297e();}function _0x5a4108(){const _0x419a00=window[_0x4821a3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4821a3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4821a3([0x6e,0x6f,0x77])]())[_0x4821a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4821a3([0x2e]),'');let _0x4c79de=_0x4821a3([0x52]);for(let _0x786da=0x0;_0x786da<_0x419a00[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x786da+=0x2){let _0x5883c9=window[_0x4821a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x419a00[_0x4821a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x786da,_0x786da+0x2));_0x5883c9>=_0x56d3de[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5883c9-=_0x56d3de[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c79de+=_0x56d3de[_0x5883c9];}return _0x4c79de;}function _0x3a0480(){const _0x18c165=_0x4fa59c[_0x4821a3([0x73,0x70,0x6c,0x69,0x74])](_0x4821a3([0x2e]));if(0x3!=_0x18c165[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c30ee(_0x18c165[0x1]);function _0x2c30ee(_0x2b204f){const _0x38e809=_0x18195b(_0x2b204f);return _0x38e809&&_0x3b78cb()?_0x38e809:null;function _0x3b78cb(){const _0x4347eb=_0x38e809[_0x4821a3([0x6a,0x74,0x69])],_0x177a7b=window[_0x4821a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4347eb[_0x4821a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4347eb[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20c78a={..._0x38e809,[_0x4821a3([0x6a,0x74,0x69])]:_0x4347eb[_0x4821a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4347eb[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20c78a[_0x4821a3([0x76,0x63])],_0x51aaa7(_0x20c78a)==_0x177a7b;}}}async function _0x326b0a(){let _0x44fba9=!0x0;try{const _0x171370=_0x4fa59c[_0x4821a3([0x73,0x70,0x6c,0x69,0x74])](_0x4821a3([0x2e])),[_0x5c2342,_0x51376d,_0x9a7302]=_0x171370;return _0x4299bc(_0x5c2342),await _0x553808(_0x5c2342,_0x51376d,_0x9a7302),_0x44fba9;}catch(_0x1b839b){return!0x1;}function _0x4299bc(_0x369d9e){const _0xe60264=_0x18195b(_0x369d9e);_0xe60264&&_0xe60264[_0x4821a3([0x61,0x6c,0x67])]==_0x4821a3([0x45,0x53,0x32,0x35,0x36])||(_0x44fba9=!0x1);}async function _0x553808(_0x11deb9,_0x573aaa,_0x2526a4){const _0x4bef14=window[_0x4821a3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4821a3([0x66,0x72,0x6f,0x6d])](_0x46559f(_0x2526a4),_0x411854=>_0x411854[_0x4821a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12dc01=new window[(_0x4821a3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4821a3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11deb9+_0x4821a3([0x2e])+_0x573aaa),_0x6282c1=window[_0x4821a3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4821a3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6282c1)return;const _0x1f9f49=await _0x6282c1[_0x4821a3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4821a3([0x6a,0x77,0x6b]),_0x23e598,{[_0x4821a3([0x6e,0x61,0x6d,0x65])]:_0x4821a3([0x45,0x43,0x44,0x53,0x41]),[_0x4821a3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4821a3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4821a3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6282c1[_0x4821a3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4821a3([0x6e,0x61,0x6d,0x65])]:_0x4821a3([0x45,0x43,0x44,0x53,0x41]),[_0x4821a3([0x68,0x61,0x73,0x68])]:{[_0x4821a3([0x6e,0x61,0x6d,0x65])]:_0x4821a3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f9f49,_0x4bef14,_0x12dc01)||(_0x44fba9=!0x1);}}function _0x18195b(_0xd6a920){return _0xd6a920[_0x4821a3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4821a3([0x65,0x79]))?JSON[_0x4821a3([0x70,0x61,0x72,0x73,0x65])](_0x46559f(_0xd6a920)):null;}function _0x46559f(_0x15f274){return window[_0x4821a3([0x61,0x74,0x6f,0x62])](_0x15f274[_0x4821a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4821a3([0x2b]))[_0x4821a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4821a3([0x2f])));}function _0x51aaa7(_0x24136d){let _0x4ce059=0x1505;function _0x6adc77(_0x514da0){for(let _0x1aa4c0=0x0;_0x1aa4c0<_0x514da0[_0x4821a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa4c0++){const _0x5d8f24=_0x514da0[_0x4821a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1aa4c0);_0x4ce059=(_0x4ce059<<0x5)+_0x4ce059+_0x5d8f24,_0x4ce059&=_0x4ce059;}}function _0x347b5b(_0x32cb75){Array[_0x4821a3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32cb75)?_0x32cb75[_0x4821a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x347b5b):_0x32cb75&&typeof _0x32cb75==_0x4821a3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4821a3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32cb75)[_0x4821a3([0x73,0x6f,0x72,0x74])]()[_0x4821a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x560f2c,_0x3d6ce9])=>{_0x6adc77(_0x560f2c),_0x347b5b(_0x3d6ce9);}):_0x6adc77(window[_0x4821a3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32cb75));}return _0x347b5b(_0x24136d),_0x4ce059>>>0x0;}function _0x1d4c6a(_0x3cb8c2){return _0x3cb8c2[_0x4821a3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4821a3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4821a3([0x30]));}function _0x482c2e(_0x2ef28b){return _0x2ef28b[_0x4821a3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4821a3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4821a3([0x6a,0x6f,0x69,0x6e])]('');}function _0x37f198(_0x1098e7){return _0x38b444[_0x4821a3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4821a3([0x68,0x61,0x73])](_0x1098e7);}function _0x2e61df(_0x274e26){return _0x38b444[_0x4821a3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4821a3([0x67,0x65,0x74])](_0x274e26);}function _0x5c2e7f(){}function _0x4821a3(_0x425da0){return _0x425da0['map'](_0x478d47=>String['fromCharCode'](_0x478d47))['join']('');}_0x58a5f4(await _0x361a96());}(this);}['createRevision'](_0x163c0d){const _0x23d62c=this['editor']['plugins']['get']('Users');return new h({'id':_0x163c0d['id'],'name':_0x163c0d['name'],'creator':_0x163c0d['creatorId']?_0x23d62c['getUser'](_0x163c0d['creatorId']):null,'diffData':_0x163c0d['diffData']||_0x163c0d['data'],'authors':_0x163c0d['authorsIds']['map'](_0xe6c1be=>_0x23d62c['getUser'](_0xe6c1be)),'createdAt':new Date(_0x163c0d['createdAt']),'attributes':_0x163c0d['attributes'],'fromVersion':_0x163c0d['fromVersion'],'toVersion':_0x163c0d['toVersion']});}['addRevision'](_0x51ecda,_0x44ed87=0x0){this['_revisions']['add'](_0x51ecda,_0x44ed87);}['getRevision'](_0x1bd544){return this['_revisions']['get'](_0x1bd544);}['getRevisions'](_0x1ff38e={'toJSON':!0x1}){const _0x464707=Array['from'](this['_revisions']);return _0x464707['reverse'](),_0x1ff38e['toJSON']?_0x464707['map'](_0x3252dd=>_0x3252dd['toJSON']()):_0x464707;}['getIndex'](_0x474133){return this['_revisions']['getIndex'](_0x474133);}['getEarlierVisibleRevision'](_0x6a29e2){const [,_0x4b4ba1]=this['getRevisionsIterator'](_0x6a29e2,{'direction':'earlier'});return _0x4b4ba1;}['getLaterVisibleRevision'](_0x553a68){const [,_0x22f4ff]=this['getRevisionsIterator'](_0x553a68,{'direction':'later'});return _0x22f4ff;}['getRevisionsInDiff'](_0x829021){const _0x299970=[];for(const _0x2d986e of this['getRevisionsIterator'](_0x829021['newRevisionId']))if(_0x299970['push'](_0x2d986e),_0x2d986e['id']===_0x829021['oldRevisionId'])break;return _0x299970;}*['getRevisionsIterator'](_0x46c44c,{direction:_0x440704='earlier',filter:_0x5535f2=()=>!0x0}={}){const _0x4ad36d='earlier'===_0x440704?0x1:-0x1;let _0x5026aa=this['_revisions']['get'](_0x46c44c),_0x55c6de=this['getIndex'](_0x5026aa);for(yield _0x5026aa;_0x5026aa;){if(_0x55c6de+=_0x4ad36d,_0x5026aa=this['getRevision'](_0x55c6de),!_0x5026aa)return;_0x5535f2(_0x5026aa)&&(yield _0x5026aa);}}}class V extends _0x156834{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5ecb95,'c'],[_0x1dd94f,'a'],[_0x18272e,'e'],[_0x4bc277,'r'],[_0x49fee3,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5ecb95],['a',_0x1dd94f],['e',_0x18272e],['r',_0x4bc277],['u',_0x49fee3]]);async['loadRevisionData'](_0x2d429b,_0x210554){if(_0x2d429b['diffData']||!_0x210554)return;const _0x2d882=this['editor']['config']['get']('collaboration.channelId'),_0x1636a2=await _0x210554['getRevision']({'channelId':_0x2d882,'revisionId':_0x2d429b['id']});_0x2d429b['diffData']=_0x1636a2['diffData'];}['getRevisionDocumentData'](_0x4817c1){const _0x2994d2={};for(const _0x37fc02 in _0x4817c1['diffData']){if(_0x4817c1['diffData'][_0x37fc02]['attachChange']&&!_0x4817c1['diffData'][_0x37fc02]['attachChange']['isAttached'])continue;const _0xa6c863=this['_removeRevisionMarkers'](JSON['parse'](_0x4817c1['diffData'][_0x37fc02]['insertions'])),_0x2ff2b0=this['editor']['editing']['view']['document'],_0x58857b=new _0x36a44f(_0x2ff2b0,_0xa6c863['map'](_0x5c779f=>this['_getViewFromDiffObj'](_0x5c779f,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2994d2[_0x37fc02]=this['editor']['data']['processor']['toData'](_0x58857b),this['editor']['data']['processor']['useFillerType']('default');}return _0x2994d2;}['getRevisionRootsAttributes'](_0x5a6893){const _0x4c2751={};for(const _0x4d511f in _0x5a6893['diffData'])_0x5a6893['diffData'][_0x4d511f]['attachChange']&&!_0x5a6893['diffData'][_0x4d511f]['attachChange']['isAttached']||(_0x4c2751[_0x4d511f]=_0x5a6893['diffData'][_0x4d511f]['attributesAfter']||{});return _0x4c2751;}['_getTypeCharForViewElement'](_0x2d5ea3){return this['_viewClassToTypeChar']['get'](_0x2d5ea3['constructor']);}['_getViewFromDiffObj'](_0x56591d,_0x41d7c9){const _0x330b01=this['editor']['editing']['view']['document'];if('string'==typeof _0x56591d)return new _0x16094e(_0x330b01,_0x56591d);{let _0x236450,_0x53ca8f;_0x53ca8f='u'==_0x56591d['type']||'r'==_0x56591d['type']?[]:_0x56591d['children']['map'](_0x5698cb=>this['_getViewFromDiffObj'](_0x5698cb,_0x41d7c9));const _0x5a0f7f=this['_typeCharToViewClass']['get'](_0x56591d['type'])||_0x4ab02e,_0x4dea3b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x236450=new _0x5a0f7f(_0x330b01,_0x56591d['name'],_0x56591d['attributes'],_0x53ca8f),'u'==_0x56591d['type']&&_0x56591d['children'][0x0]){const _0x1e89b0=_0x56591d['children'][0x0];if(_0x236450['render']=function(_0x4bbf74){const _0x5c6bf6=_0x4bbf74['createElement']('div');return _0x5c6bf6['innerHTML']=_0x1e89b0,_0x5c6bf6['childNodes'][0x0];},_0x41d7c9){const _0x404cf5=new _0x36a44f(_0x330b01);_0x404cf5['_appendChild'](_0x236450);const _0x3e9b8e=Array['from'](_0x4dea3b['viewChildrenToDom'](_0x404cf5,{'bind':!0x1})),_0x436f23=_0x4dea3b['domDocument']['createElement']('div');_0x436f23['append'](..._0x3e9b8e),_0x236450=Array['from'](_0x4dea3b['domChildrenToView'](_0x436f23))[0x0];}}else{if('r'==_0x56591d['type']&&_0x56591d['children'][0x0]){const _0x27515f=_0x56591d['children'][0x0];if(_0x236450['render']=function(_0x1ff1c4){_0x1ff1c4['innerHTML']=_0x27515f;},_0x41d7c9){const _0x4deb2a=new _0x36a44f(_0x330b01);_0x4deb2a['_appendChild'](_0x236450);const _0x46ad8b=Array['from'](_0x4dea3b['viewChildrenToDom'](_0x4deb2a,{'bind':!0x1})),_0x188800=_0x4dea3b['domDocument']['createElement']('div');_0x188800['append'](..._0x46ad8b);const _0x35c7b6=Array['from'](_0x4dea3b['domChildrenToView'](_0x188800));_0x35c7b6['length']>0x1?_0x236450['_appendChild'](_0x35c7b6):_0x236450=_0x35c7b6[0x0];}}}if(_0x56591d['customProperties']){for(const [_0x4719d1,_0x59bca7]of _0x56591d['customProperties'])_0x236450['_setCustomProperty'](_0x4719d1,_0x59bca7);}const _0x5b4dbb=void 0x0===_0x56591d['fillerOffset']?null:_0x56591d['fillerOffset'];return null!==_0x5b4dbb&&(_0x236450['getFillerOffset']=()=>_0x5b4dbb),_0x236450;}}['_makeModelFromViewString'](_0x2d1de3){const _0x5816b0=JSON['parse'](_0x2d1de3),_0x56b57c=this['editor']['editing']['view']['document'],_0x396727=new _0x36a44f(_0x56b57c,_0x5816b0['map'](_0xbd2f6c=>this['_getViewFromDiffObj'](_0xbd2f6c,!0x0)));return this['editor']['data']['toModel'](_0x396727);}['_removeRevisionMarkers'](_0x4b8dc8){return(_0x4b8dc8=_0x4b8dc8['filter'](_0x1c5454=>!_0x1c5454['name']||'revision-start'!==_0x1c5454['name']&&'revision-end'!==_0x1c5454['name']))['forEach'](_0x2b3d89=>{'string'!=typeof _0x2b3d89&&(_0x2b3d89['children']=this['_removeRevisionMarkers'](_0x2b3d89['children']),_0x2b3d89['attributes']=_0x2b3d89['attributes']['filter'](_0xfee82=>!_0xfee82[0x0]['startsWith']('data-revision-')));}),_0x4b8dc8;}}function g(_0x4ae1be,_0x5d574f,_0x2e9002){const t=_0x4ae1be['t'];switch(_0x5d574f){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'},_0x2e9002);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2e9002);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x156834{['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[_0x543348,I,V,_0x50d6a9];}constructor(_0x478d6d){super(_0x478d6d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x248048=_0x32ff0a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x248048},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 _0x56c4a6=this['repository']['getRevision'](0x0),_0x43e555=_0x56c4a6&&null===_0x56c4a6['creator']?_0x56c4a6:null;if(this['_continueCurrentRevision']=!!_0x43e555&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3f7f58=this['_source']['getCurrentRevisionId'](),_0x2e21aa=this['repository']['getRevision'](_0x3f7f58);if(_0x2e21aa)this['_startingVersion']=_0x2e21aa['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x38f2a4=this['_source']['history']['_operations']['find'](_0x1ab918=>!_0x1ab918['_isInit']),_0x5c1198=_0x38f2a4?_0x38f2a4['baseVersion']:this['_source']['history']['version'];_0x56c4a6?(_0x56c4a6['toVersion']<_0x5c1198&&_0x56c4a6['_update']({'toVersion':_0x5c1198}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x43e555['id'],this['_startingVersion']=_0x43e555['fromVersion']):(this['_startingVersion']=_0x56c4a6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5c1198,this['_continueCurrentRevision']=!0x1);}}else _0x43e555&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x43e555['toVersion'],this['editor']['model']['document']['history']['version']),_0x43e555['fromVersion']===_0x43e555['toVersion']?(0x0!==_0x43e555['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x43e555['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x43e555['id'],this['_startingVersion']=_0x43e555['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',_0x35bcc5=>!_0x35bcc5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c9dda=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a2222;for(const _0x118b6d in _0x5c9dda){const _0x2a3ec5=_0x118b6d,_0x770437=_0x5c9dda[_0x2a3ec5];if('revisionHistoryLicenseKeyValid'==_0x770437||'revisionHistoryLicenseKeyInvalid'==_0x770437||'revisionHistoryLicenseKeyExpired'==_0x770437||'revisionHistoryLicenseKeyDomainLimit'==_0x770437||'revisionHistoryLicenseKeyNotAllowed'==_0x770437||'revisionHistoryLicenseKeyEvaluationLimit'==_0x770437||'revisionHistoryLicenseKeyTrialLimit'==_0x770437||'revisionHistoryLicenseKeyUsageLimit'==_0x770437){delete _0x5c9dda[_0x2a3ec5],_0x4a2222=_0x770437,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4a2222&&_0x5c9dda['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4a2222&&_0x5c9dda['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4a2222&&_0x5c9dda['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4a2222&&_0x5c9dda['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a2222&&_0x5c9dda['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4a2222&&_0x5c9dda['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4a2222&&_0x5c9dda['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x513c24=this['repository']['getRevision'](0x0),_0x10c137=await this['getRevisionDocumentData'](_0x513c24),_0x40bd8b=await this['getRevisionRootsAttributes'](_0x513c24);this['_replaceEditorDataWithRevisionData'](_0x10c137,_0x40bd8b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1d5349){this['_source']=_0x1d5349;}async['update'](){const _0xce30ae=await this['_source']['getLatestVersion']();if(_0xce30ae>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5cf965=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xce30ae});_0x5cf965['authors']=_0x5cf965['authorsIds']['map'](_0x10518d=>this['editor']['plugins']['get']('Users')['getUser'](_0x10518d)),this['currentRevision']['_update'](_0x5cf965);}}async['saveRevision'](_0x3fc902={},_0x1a7aca=null){const _0x1bbba6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1a7aca>this['currentRevision']['toVersion']&&(_0x1a7aca=null),null===_0x1a7aca&&(_0x1a7aca=await this['_source']['getLatestVersion']());const _0x5dbdaa=this['_getFromVersion'](_0x1a7aca),_0x57ba87=this['buildRevisionData']({'from':_0x5dbdaa,'to':_0x1a7aca});if(this['currentRevision']['toVersion']<_0x1a7aca){const _0x59f6f9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1a7aca,'to':_0x1a7aca});_0x59f6f9['authors']=[],_0x59f6f9['authorsIds']=[],_0x59f6f9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x59f6f9,!0x0),delete _0x59f6f9['authors'],_0x1bbba6['push'](_0x59f6f9);}_0x3fc902['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3fc902['name']=_0x3fc902['name']||null,_0x3fc902['id']=_0x3fc902['id']||_0x32ff0a(),_0x3fc902={..._0x3fc902,..._0x57ba87};const _0x1fde9c=this['addRevisionData'](_0x3fc902);_0x1bbba6['push'](_0x3fc902);const _0x328054=this['repository']['getIndex'](_0x1fde9c);if(0x0!==_0x328054){const _0x5739f0=this['repository']['getRevision'](_0x328054-0x1);if(_0x5739f0['fromVersion']!==_0x1a7aca){const _0x135ccf=this['_revisionDataBuilder']['getData'](_0x1a7aca,_0x5739f0['toVersion']),_0x4a19d9={'id':_0x5739f0['id'],'diffData':_0x135ccf['diffData'],'authorsIds':_0x135ccf['authorsIds'],'authors':_0x135ccf['authorsIds']['map'](_0x2e12ac=>this['editor']['plugins']['get']('Users')['getUser'](_0x2e12ac)),'fromVersion':_0x1a7aca};_0x5739f0===this['currentRevision']&&(_0x4a19d9['createdAt']=new Date(_0x3fc902['createdAt']['getTime']()+0xa)),_0x5739f0['_update'](_0x4a19d9,!0x0),delete _0x4a19d9['authors'],_0x1bbba6['push'](_0x4a19d9);}}if(this['adapter']){for(const _0x120058 of _0x1bbba6)this['_bufferUpdate'](_0x120058['id'],_0x120058,!0x0);this['sendBufferedUpdates']();}return _0x1fde9c;}['addRevisionData'](_0x24651a){const _0x474cc4=this['repository']['createRevision'](_0x24651a);return this['adapter']&&_0x474cc4['on']('_update',(_0x39750a,_0x55c460,_0x19adb6)=>{_0x19adb6||(this['_bufferUpdate'](_0x55c460['id'],_0x55c460,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x474cc4,this['_findInsertionIndex'](_0x474cc4)),_0x474cc4;}async['getRevisionDocumentData'](_0x542ba7){return await this['_utils']['loadRevisionData'](_0x542ba7,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x542ba7);}async['getRevisionRootsAttributes'](_0x2396ae){return await this['_utils']['loadRevisionData'](_0x2396ae,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2396ae);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x43c382=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x283669=0x0;_0x283669<_0x43c382['length'];_0x283669++){const _0xe528a2=_0x43c382[_0x283669];let _0x2d6c8b=!0x1;for(const _0x3d6c88 of Object['keys'](_0xe528a2))void 0x0===_0xe528a2[_0x3d6c88]?delete _0xe528a2[_0x3d6c88]:'id'!==_0x3d6c88&&(_0x2d6c8b=!0x0);_0x2d6c8b||(_0x43c382[_0x283669]=null);}if(_0x43c382=_0x43c382['filter'](_0x70cf70=>null!==_0x70cf70),!_0x43c382['length'])return;for(let _0x5004de=0x0;_0x5004de<_0x43c382['length'];_0x5004de++){const _0x54f76b=_0x43c382[_0x5004de];void 0x0!==_0x54f76b['fromVersion']&&void 0x0===_0x54f76b['toVersion']&&(_0x54f76b['toVersion']=this['repository']['getRevision'](_0x54f76b['id'])['toVersion']),void 0x0!==_0x54f76b['toVersion']&&void 0x0===_0x54f76b['fromVersion']&&(_0x54f76b['fromVersion']=this['repository']['getRevision'](_0x54f76b['id'])['fromVersion']);}const _0xa7dfa3=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x43c382,_0xa7dfa3)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x23d1a7=>{if(_0x23d1a7){for(const _0x36c9f0 of _0x23d1a7)this['setRevisionData']({'id':_0x36c9f0['id'],'createdAt':_0x36c9f0['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3c4f68=null,from:_0x3a214c=null,to:_0x426743=null}){_0x3a214c=null!==_0x3a214c?_0x3a214c:_0x3c4f68['fromVersion'],_0x426743=null!==_0x426743?_0x426743:_0x3c4f68['toVersion'];const _0x4bd291=this['_revisionDataBuilder']['getData'](_0x3a214c,_0x426743),_0xb8f601={'diffData':_0x4bd291['diffData'],'authorsIds':_0x4bd291['authorsIds'],'fromVersion':_0x3a214c,'toVersion':_0x426743};if(!_0x3c4f68||_0x426743!==_0x3c4f68['toVersion']){const _0x112830=_0x426743-0x1,_0x142a0e=this['_source']['history']['getOperation'](_0x112830);_0xb8f601['createdAt']=_0x142a0e&&_0x142a0e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3a214c===this['_loadedStateData']['fromVersion']){for(const _0x381904 of this['_loadedStateData']['authors'])_0xb8f601['authorsIds']['includes'](_0x381904['id'])||_0xb8f601['authorsIds']['push'](_0x381904['id']);}return _0xb8f601;}['_bufferUpdate'](_0x40f2c2,_0x231599,_0x517a7b){if(this['_bufferedUpdates']['has'](_0x40f2c2)){const _0x41335f=this['_bufferedUpdates']['get'](_0x40f2c2);_0x231599=_0x517a7b?{..._0x41335f,..._0x231599}:{..._0x231599,..._0x41335f};}this['_bufferedUpdates']['set'](_0x40f2c2,_0x231599);}['setRevisionData'](_0x11a3f6){const _0x1b5192=this['repository']['getRevision'](_0x11a3f6['id']);if(_0x11a3f6['createdAt']&&(_0x11a3f6['createdAt']=new Date(_0x11a3f6['createdAt'])),_0x11a3f6['authorsIds']){const _0x213bf0=this['editor']['plugins']['get']('Users');_0x11a3f6['authors']=_0x11a3f6['authorsIds']['map'](_0x38a5a8=>_0x213bf0['getUser'](_0x38a5a8));}_0x1b5192['_update'](_0x11a3f6,!0x0);}['_createInitialRevision'](_0xd205c){const _0x593216=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x593216)this['_initialRevisionId']=_0x593216['id'];else{const _0x5a0419=!this['editor']['model']['document']['roots']['find'](_0x3514f4=>this['editor']['model']['hasContent'](_0x3514f4)),_0x590afe=this['editor']['plugins']['get']('Users')['me']['id'],_0x44f4f1=g(this['editor']['locale'],_0x5a0419?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xd205c,'to':_0xd205c,'id':this['_initialRevisionId'],'name':_0x44f4f1,'creatorId':_0x590afe});}}['_createCurrentRevision'](_0x1f1553){const _0x872737=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x872737),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1f1553,'to':_0x1f1553,'id':_0x872737,'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'](_0x6913ce,_0x395280){let _0x51141b=this['editor']['config']['get']('initialData'),_0x542352=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x51141b){_0x51141b={};for(const _0x25ef44 of this['editor']['model']['document']['getRootNames']())_0x51141b[_0x25ef44]='';}if('string'==typeof _0x51141b&&(_0x51141b={'main':_0x51141b}),void 0x0===_0x542352){_0x542352={};for(const _0x2abaa6 of this['editor']['model']['document']['getRootNames']())_0x542352[_0x2abaa6]={};}let _0x3b404a=!0x1;const _0xd42058=Object['keys'](_0x51141b),_0x21a14b=Object['keys'](_0x6913ce);for(const _0x4dabb2 of _0xd42058){if(_0x51141b[_0x4dabb2]!==_0x6913ce[_0x4dabb2]&&''!==_0x51141b[_0x4dabb2]['trim']()){_0x3b404a=!0x0;break;}if(!_0x410915(_0x542352[_0x4dabb2],_0x395280[_0x4dabb2])&&Object['keys'](_0x542352[_0x4dabb2])['length']>0x0){_0x3b404a=!0x0;break;}}_0x3b404a||(_0x3b404a=_0x21a14b['some'](_0x2303aa=>!this['editor']['model']['document']['getRoot'](_0x2303aa))),_0x3b404a&&_0x156045('editor-initial-data-replaced-with-revision-data',{'editorData':_0x51141b,'editorRootsAttributes':_0x542352,'revisionData':_0x6913ce,'revisionRootsAttributes':_0x395280}),this['editor']['config']['set']('initialData',_0x6913ce),this['editor']['config']['set']('rootsAttributes',_0x395280);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x356df4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x356df4['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x20a550){const _0xa908a9=this['repository']['getRevisions']();_0xa908a9['reverse']();let _0x31b312=0x0;for(;_0x31b312<_0xa908a9['length'];){const _0x3cdef9=_0xa908a9[_0x31b312];if(_0x3cdef9===this['currentRevision']){_0x31b312++;continue;}if(_0x3cdef9['id']===this['_initialRevisionId'])break;const _0xb35ba5=_0x20a550['toVersion']-_0x3cdef9['toVersion']||_0x20a550['fromVersion']-_0x3cdef9['fromVersion'];if(_0xb35ba5>0x0)break;if(_0xb35ba5<0x0)_0x31b312++;else{if(!_0x20a550['creator']&&_0x3cdef9['creator'])break;if(_0x3cdef9['creator']||!_0x20a550['creator']){if(_0x20a550['createdAt']>_0x3cdef9['createdAt'])break;_0x31b312++;}else _0x31b312++;}}return _0x31b312;}['_getFromVersion'](_0x6271f0){const _0x44a738=this['repository']['getRevisions']();_0x44a738['reverse'](),_0x44a738['shift']();const _0x501153=_0x44a738['find'](_0x1e030d=>_0x1e030d['toVersion']<=_0x6271f0)['toVersion'];return _0x501153<this['_startingVersion']?this['_startingVersion']:_0x501153;}['_makeRevision']({name:_0x3f1e0a,from:_0x48ba6d,to:_0x4045cf,creatorId:_0x180ed2,id:_0x5e6742}){const _0x4a8a5f=this['buildRevisionData']({'from':_0x48ba6d,'to':_0x4045cf});_0x4a8a5f['name']=_0x3f1e0a,_0x4a8a5f['creatorId']=_0x180ed2,_0x4a8a5f['id']=_0x5e6742;const _0x3ff8c0=this['addRevisionData'](_0x4a8a5f);return this['adapter']&&this['_bufferUpdate'](_0x4a8a5f['id'],_0x4a8a5f,!0x0),_0x3ff8c0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x947537){this['editor']=_0x947537,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'](_0x2fa625){this['source']=_0x2fa625;const _0x317d29=new Map(),_0x3db382=new Map(),_0x3f2a63=this['editor']['model']['document']['roots']['map'](_0x5254da=>_0x5254da['rootName']);for(const _0x3ae0fb of _0x3f2a63){const _0x1077a6=this['editor']['model']['document']['getRoot'](_0x3ae0fb),_0x1151a3=N(_0x1077a6);_0x317d29['set'](_0x3ae0fb,_0x1151a3),_0x3db382['set'](_0x3ae0fb,Object['fromEntries'](_0x1077a6['getAttributes']()));}const _0xe56eb6=Array['from'](this['editor']['model']['markers'])['map'](_0x4846f6=>[_0x4846f6['name'],_0x4846f6['getRange']()]),_0x17354a=this['source']['version'];this['_saveMetaData'](_0x17354a,_0x317d29,_0xe56eb6,_0x3db382),this['_startingRevisionId']=this['_revisionId'];const _0x9a949d=new Map(),_0x2a4df4=new Map();for(const _0x37e523 of _0x3f2a63){const _0x44b55c=P(_0x37e523);_0x9a949d['set'](_0x37e523,_0x44b55c),_0x2a4df4['set'](_0x37e523,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x9a949d,[],_0x2a4df4);}['getData'](_0x2dfa32,_0x2ed94a){if(this['_lastFrom']===_0x2dfa32&&this['_lastTo']<=_0x2ed94a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2ed94a,!0x0);else{if(!this['_savedMetaData']['has'](_0x2dfa32)){const _0x4cfce2=this['_getPreviousFrom'](_0x2dfa32);this['_calculateMetaData'](_0x4cfce2,_0x2dfa32,!0x1);}this['_calculateMetaData'](_0x2dfa32,_0x2ed94a,!0x0);}return this['_lastFrom']=_0x2dfa32,this['_lastTo']=_0x2ed94a,this['_getState']();}['loadState'](_0x2e70b0){const _0x3c0bb9=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2e70b0['fromVersion'],this['_lastTo']=_0x2e70b0['toVersion'];for(const _0x5679ea in _0x2e70b0['diffData']){const _0xfa5081=_0x2e70b0['diffData'][_0x5679ea]['attachChange'],_0x458978=_0x4cdb56(_0x2e70b0['diffData'][_0x5679ea]['attributesBefore'])||{},_0x213bed=_0x3c0bb9['_makeModelFromViewString'](_0x2e70b0['diffData'][_0x5679ea]['deletions']);_0x213bed['rootName']=_0x5679ea,_0x213bed['_isAttached']=!_0xfa5081||!_0xfa5081['isAttached'],_0x213bed['isAttached']=()=>_0x213bed['_isAttached'],this['_baseRoots']['set'](_0x5679ea,_0x213bed),this['_baseRootsAttributes']['set'](_0x5679ea,_0x458978),_0xfa5081&&this['_touchedRoots']['set'](_0x5679ea,_0xfa5081);const _0x1692c5=this['_makeIdsRoot'](_0x213bed);this['_baseIdsRoots']['set'](_0x5679ea,_0x1692c5);for(const [_0x3f57ff,_0x17c24e]of _0x213bed['markers']){if(!_0x3f57ff['startsWith']('revision:'))continue;const _0x5d4431=_0x3f57ff['split'](':')[0x2];for(const _0x21914a of _0x17c24e['getWalker']({'singleCharacters':!0x0})){const _0x4bdf3b=this['_getVidAttributeName'](_0x21914a),_0x142fcb='elementEnd'==_0x21914a['type']?_0x21914a['previousPosition']['path']['slice'](0x0,-0x1):_0x21914a['previousPosition']['path'],_0x229775=_0x1692c5['getNodeByPath'](_0x142fcb)['getAttribute'](_0x4bdf3b);this['_touched']['set'](_0x229775,{'userId':_0x5d4431});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3dfe10=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x15c477=>!this['_touched']['has'](_0x15c477));let _0x55bed0=0x0;const _0x4119d1=new Map();for(const _0x5d83ce in _0x2e70b0['diffData']){const _0x36fa04=_0x2e70b0['diffData'][_0x5d83ce]['attachChange'],_0x3a672c=_0x4cdb56(_0x2e70b0['diffData'][_0x5d83ce]['attributesAfter'])||{},_0x1365a2=_0x3c0bb9['_makeModelFromViewString'](_0x2e70b0['diffData'][_0x5d83ce]['insertions']);_0x1365a2['rootName']=_0x5d83ce,_0x1365a2['_isAttached']=!_0x36fa04||_0x36fa04['isAttached'],_0x1365a2['isAttached']=()=>_0x1365a2['_isAttached'],this['_diffRoots']['set'](_0x5d83ce,_0x1365a2),this['_diffRootsAttributes']['set'](_0x5d83ce,_0x3a672c);const _0x46f989=this['_makeIdsRoot'](_0x1365a2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5d83ce,_0x46f989),_0x4119d1['set'](_0x5d83ce,_0x1365a2['isAttached']()?_0x3a672c:{});for(const [_0x50aa16,_0x1a36a3]of _0x1365a2['markers']){if(!_0x50aa16['startsWith']('revision:'))continue;const _0x21579b=_0x50aa16['split'](':')[0x2];for(const _0x59f8da of _0x1a36a3['getWalker']({'singleCharacters':!0x0})){const _0xa8a8cc=this['_getVidAttributeName'](_0x59f8da),_0xa22610=this['_revisionId']++,_0xeb4d91='elementEnd'==_0x59f8da['type']?_0x59f8da['previousPosition']['path']['slice'](0x0,-0x1):_0x59f8da['previousPosition']['path'];_0x46f989['getNodeByPath'](_0xeb4d91)['_setAttribute'](_0xa8a8cc,_0xa22610),this['_touched']['set'](_0xa22610,{'userId':_0x21579b});}}for(const _0x141abd of this['editor']['model']['createRangeIn'](_0x1365a2)['getWalker']({'singleCharacters':!0x0})){const _0x175b80=this['_getVidAttributeName'](_0x141abd),_0x315b55='elementEnd'==_0x141abd['type']?_0x141abd['previousPosition']['path']['slice'](0x0,-0x1):_0x141abd['previousPosition']['path'],_0x496873=_0x46f989['getNodeByPath'](_0x315b55);_0x496873['getAttribute'](_0x175b80)>0x0||_0x496873['_setAttribute'](_0x175b80,_0x3dfe10[_0x55bed0++]);}for(const [_0x4c4cf4,_0x3c37f2]of _0x1365a2['markers'])_0x4c4cf4['startsWith']('revision:')||this['_markers']['set'](_0x4c4cf4,_0x3c37f2);}const _0x5d9b7a=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5d9b7a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5d9b7a,0x1));const _0x4bf35c=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4bf35c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4bf35c,0x1));const _0x52524e=Array['from'](this['_diffRoots'])['map'](([_0x1f62dd,_0x5b2650])=>[_0x1f62dd,N(_0x5b2650)]);this['_saveMetaData'](this['_lastTo'],_0x52524e,this['_markers'],_0x4119d1);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d5e63,_0x41a898,_0x10bb96,_0x323aa1){const _0x54ac77=new Map(_0x41a898),_0x4ea21c=new Map(_0x4cdb56(_0x323aa1)),_0x292534=new Map();for(const [_0x174cf5,_0x2d8c39]of _0x10bb96)_0x292534['set'](_0x174cf5,{'start':_0x2d8c39['start']['clone'](),'end':_0x2d8c39['end']['clone'](),'rootName':_0x2d8c39['root']['rootName']});this['_savedMetaData']['set'](_0x4d5e63,{'roots':_0x54ac77,'markers':_0x292534,'rootsAttributes':_0x4ea21c});}['_removeMetaData'](_0x883a07){this['_savedMetaData']['delete'](_0x883a07);}['_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'](_0x3b0919,_0x3e6c4c=null){let _0x21fbb9=null;_0x3b0919['is']('documentFragment')||(_0x21fbb9=new ut(_0x3b0919['name'],{'vid_start':null===_0x3e6c4c?this['_revisionId']++:_0x3e6c4c++}));const _0x325ce2=[];for(const _0x22b305 of _0x3b0919['getChildren']())if(_0x22b305['is']('element')){_0x325ce2['push'](this['_makeIdsRoot'](_0x22b305,_0x3e6c4c));const _0x1f433a=_0x325ce2[_0x325ce2['length']-0x1];null!==_0x3e6c4c&&(_0x3e6c4c=_0x1f433a['is']('element','$text')?_0x1f433a['getAttribute']('vid')+0x1:_0x1f433a['getAttribute']('vid_end')+0x1);}else{for(let _0x334932=0x0;_0x334932<_0x22b305['offsetSize'];_0x334932++)_0x325ce2['push'](new ut('$text',{'vid':null===_0x3e6c4c?this['_revisionId']++:_0x3e6c4c++}));}if(_0x3b0919['is']('documentFragment')){const _0x2b74cc=P(_0x3b0919['rootName']);return _0x2b74cc['_insertChild'](0x0,_0x325ce2),_0x2b74cc;}return _0x21fbb9['_setAttribute']('vid_end',null===_0x3e6c4c?this['_revisionId']++:_0x3e6c4c++),_0x21fbb9['_insertChild'](0x0,_0x325ce2),_0x21fbb9;}['_calculateMetaData'](_0x530828,_0x514305,_0x101375){this['_reset']();const {roots:_0x56402c,markers:_0x21e1a7,rootsAttributes:_0x169020}=this['_savedMetaData']['get'](_0x530828);this['_baseRoots']=new Map(_0x56402c),this['_baseRootsAttributes']=new Map(_0x4cdb56(_0x169020));for(const [_0x53f199,_0x5ad32a]of this['_baseRoots'])if('$graveyard'!==_0x53f199&&(this['_diffRoots']['set'](_0x53f199,N(_0x5ad32a)),this['_diffRootsAttributes']=new Map(_0x4cdb56(_0x169020)),_0x101375)){const _0x17fe21=this['_revisionId'];this['_idsRoots']['set'](_0x53f199,this['_makeIdsRoot'](_0x5ad32a)),this['_baseIdsRoots']['set'](_0x53f199,this['_makeIdsRoot'](_0x5ad32a,_0x17fe21));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x101375&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x379ba3,_0x361543]of _0x21e1a7){const _0x20ee79=this['_baseRoots']['get'](_0x361543['rootName']),_0x3d5b40=this['_diffRoots']['get'](_0x361543['rootName']),_0x5b8186=new ft(this['_fixPosition'](_0x361543['start'],_0x20ee79),this['_fixPosition'](_0x361543['end'],_0x20ee79)),_0x3d8613=this['_fixRange'](_0x5b8186,_0x3d5b40);_0x20ee79['markers']['set'](_0x379ba3,_0x5b8186),this['_markers']['set'](_0x379ba3,_0x3d8613);}this['_applyOperations'](_0x530828,_0x514305,_0x101375);}['_applyOperations'](_0x4b47cb,_0x53937f,_0x32840f){for(const _0x1aa540 of this['source']['getOperations'](_0x4b47cb,_0x53937f))this['_handleOperation'](_0x1aa540,_0x32840f);for(const _0x37fa0d of this['_diffRoots']['values']())_0x37fa0d['markers']['clear']();for(const [_0x243db0,_0x679f64]of this['_markers']){this['_diffRoots']['get'](_0x679f64['root']['rootName'])['markers']['set'](_0x243db0,_0x679f64['clone']());}const _0x23ce30=new Map(),_0x409a21=new Map();for(const [_0x19d919,_0x2afa50]of this['_diffRoots'])_0x23ce30['set'](_0x19d919,N(_0x2afa50)),_0x409a21['set'](_0x19d919,this['_diffRootsAttributes']['get'](_0x19d919));this['_saveMetaData'](_0x53937f,_0x23ce30,this['_markers'],_0x409a21);}['_getPreviousFrom'](_0x54f035){const _0x520e70=Array['from'](this['_savedMetaData']['keys']());_0x520e70['sort']((_0x5120d5,_0xa94866)=>_0x5120d5-_0xa94866),_0x520e70['reverse']();for(const _0x5cce5d of _0x520e70)if(_0x5cce5d<_0x54f035)return _0x5cce5d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x557b53,_0xd6f2f1){const _0x957a3b=Array['from'](_0xd6f2f1['markers'])['map'](([_0x25b92f,_0x30f556])=>[_0x25b92f,this['_fixRange'](_0x30f556,_0x557b53)]);_0x557b53['markers']=new Map(_0x957a3b);}['_transformMarkers'](_0x5c0f33){for(const _0x435225 of this['_markers']['values']()){const _0x323cdd=_0x435225['getTransformedByOperation'](_0x5c0f33),_0x20c3e6=ft['_createFromRanges'](_0x323cdd);_0x435225['start']=_0x20c3e6['start'],_0x435225['end']=_0x20c3e6['end'];}}['_handleOperation'](_0x1146f3,_0x4746ca){if('addRoot'!=_0x1146f3['type']&&'detachRoot'!=_0x1146f3['type']){if('insert'==_0x1146f3['type']){const _0x127c8f=_0x1146f3['position']['root']['rootName'];this['_diffRoots']['has'](_0x127c8f)||(this['_diffRoots']['set'](_0x127c8f,P(_0x127c8f,!0x0)),this['_diffRootsAttributes']['set'](_0x127c8f,{}),_0x4746ca&&this['_idsRoots']['set'](_0x127c8f,P(_0x127c8f,!0x0)));}else{if('addRootAttribute'==_0x1146f3['type']||'removeRootAttribute'==_0x1146f3['type']||'changeRootAttribute'==_0x1146f3['type'])return void this['_handleRootAttributeOperation'](_0x1146f3);'marker'==_0x1146f3['type']&&this['_handleMarkerOperation'](_0x1146f3);}if('marker'!==_0x1146f3['type']){const _0x19107d=this['_cloneOperation'](_0x1146f3,this['_diffRoots']);_0x19107d['_execute'](),this['_transformMarkers'](_0x19107d);}if(_0x4746ca)switch(_0x1146f3['type']){case'insert':this['_handleInsertOperation'](_0x1146f3);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1146f3);break;case'merge':this['_handleMergeOperation'](_0x1146f3);break;case'split':this['_handleSplitOperation'](_0x1146f3);}}else this['_handleRootOperation'](_0x1146f3,_0x4746ca);}['_cloneOperation'](_0x588883,_0xe76f04){const _0x2cbd8f=_0x588883['clone']();return _0x2cbd8f['_authorId']=_0x588883['_authorId'],this['_fixOperation'](_0x2cbd8f,_0xe76f04),_0x2cbd8f;}['_getBaseVids'](_0x4a6eb7){return _0x4a6eb7['map'](_0x9fd5b1=>{const _0x541005=this['_getVidAttributeName'](_0x9fd5b1);return Number(_0x9fd5b1['item']['getAttribute'](_0x541005));});}['_generateTape'](_0x12e4f2,_0xbe51f3){if(_0x12e4f2['is']('element','$text'))_0xbe51f3['push']({'item':_0x12e4f2,'type':'text'});else{_0x12e4f2['is']('element')&&_0xbe51f3['push']({'item':_0x12e4f2,'type':'elementStart'});for(const _0x39b36b of _0x12e4f2['getChildren']())this['_generateTape'](_0x39b36b,_0xbe51f3);_0x12e4f2['is']('element')&&_0xbe51f3['push']({'item':_0x12e4f2,'type':'elementEnd'});}return _0xbe51f3;}['_getState'](){const _0x4cf49e=new Map(this['_touched']),_0x5d2d7b=new Map(_0x4cf49e),_0x549a8d=new Map(),_0x48b4c6={'insertions':{},'deletions':{}},_0x39741b={'insertions':{},'deletions':{}},_0x181440=new Map(),_0x179d0e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x179d0e['delete']('$graveyard');for(const _0x3e9af7 of _0x179d0e){const _0x4e639c=this['_diffRoots']['get'](_0x3e9af7)||P(_0x3e9af7,!0x1),_0x540915=this['_baseRoots']['get'](_0x3e9af7)||P(_0x3e9af7,!0x1);_0x4e639c['isAttached']()||_0x540915['isAttached']()?(_0x48b4c6['insertions'][_0x3e9af7]=N(_0x4e639c),_0x48b4c6['deletions'][_0x3e9af7]=N(_0x540915),this['_copyMarkers'](_0x48b4c6['deletions'][_0x3e9af7],_0x540915),this['_copyMarkers'](_0x48b4c6['insertions'][_0x3e9af7],_0x4e639c),_0x39741b['insertions'][_0x3e9af7]=this['_generateTape'](this['_idsRoots']['get'](_0x3e9af7),[]),_0x39741b['deletions'][_0x3e9af7]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3e9af7)||P(_0x3e9af7,!0x1),[])):_0x179d0e['delete'](_0x3e9af7);}for(const _0x2d88da of _0x179d0e){const _0x4995c7=_0x39741b['insertions'][_0x2d88da];for(const _0x18c37b of _0x4995c7){const _0x384d27=this['_getVidAttributeName'](_0x18c37b),_0x1b9a7f=_0x18c37b['item']['getAttribute'](_0x384d27);_0x5d2d7b['delete'](_0x1b9a7f),_0x1b9a7f>=this['_startingRevisionId']&&_0x549a8d['set'](_0x1b9a7f,_0x4cf49e['get'](_0x1b9a7f));}}for(const _0x27e9bb of _0x179d0e){const _0x15c2cc=_0x39741b['insertions'][_0x27e9bb],_0x171c07=this['_getBaseVids'](_0x39741b['deletions'][_0x27e9bb]);let _0x587832=0x0;for(const _0x4c51e0 of _0x15c2cc){const _0x507483=this['_getVidAttributeName'](_0x4c51e0),_0x9f6b75=_0x4c51e0['item']['getAttribute'](_0x507483);if(!_0x549a8d['has'](_0x9f6b75)&&!_0x181440['has'](_0x9f6b75)){if(_0x5d2d7b['has'](_0x9f6b75))_0x587832++;else{if(_0x9f6b75!=_0x171c07[_0x587832]){const _0x495cf7=_0x4cf49e['get'](_0x9f6b75)||_0x4cf49e['get'](_0x171c07[_0x587832]);for(;_0x9f6b75!=_0x171c07[_0x587832];)_0x5d2d7b['has'](_0x171c07[_0x587832])||(_0x181440['set'](_0x171c07[_0x587832],_0x495cf7),_0x4cf49e['set'](_0x171c07[_0x587832],_0x495cf7)),_0x587832++;}_0x587832++;}}}}for(const _0x58f4f3 of _0x179d0e){const _0x5e4301=_0x39741b['insertions'][_0x58f4f3];for(const _0x5ae028 of _0x5e4301){const _0x3c1bdf=this['_getVidAttributeName'](_0x5ae028),_0x1df41c=_0x5ae028['item']['getAttribute'](_0x3c1bdf);if(_0x181440['has'](_0x1df41c)){const _0xc4188b=_0x181440['get'](_0x1df41c);_0x5d2d7b['has'](_0x1df41c)||_0x5d2d7b['set'](_0x1df41c,{..._0xc4188b}),_0x549a8d['set'](_0x1df41c,{..._0xc4188b});}}}for(const _0x131abb of _0x5d2d7b['keys']())_0x131abb>=this['_startingRevisionId']&&_0x5d2d7b['delete'](_0x131abb);const _0x2b965d=new Map();for(const _0x3ca31a of _0x179d0e){let _0x5e3543=_0x39741b['insertions'][_0x3ca31a];for(const _0x2cd2b7 of _0x5e3543)if(_0x2cd2b7['item']['is']('element','tableCell')){const _0x544cee=this['_getVidAttributeName'](_0x2cd2b7),_0x292244=_0x2cd2b7['item']['getAttribute'](_0x544cee);if(_0x549a8d['has'](_0x292244)){const _0x414353=_0x2cd2b7['item']['parent']['parent']['getAttribute']('vid_start'),_0x43f93c=_0x2b965d['get'](_0x414353)||new Set();_0x43f93c['add'](_0x549a8d['get'](_0x292244)['userId']),_0x2b965d['set'](_0x414353,_0x43f93c);}}_0x5e3543=_0x39741b['deletions'][_0x3ca31a];for(const _0x4c0f29 of _0x5e3543)if(_0x4c0f29['item']['is']('element','tableCell')){const _0x3b2aa1=this['_getVidAttributeName'](_0x4c0f29),_0x12e713=_0x4c0f29['item']['getAttribute'](_0x3b2aa1);if(_0x5d2d7b['has'](_0x12e713)){const _0x700e7c=_0x4c0f29['item']['parent']['parent']['getAttribute']('vid_start'),_0x33786d=_0x2b965d['get'](_0x700e7c)||new Set();_0x33786d['add'](_0x5d2d7b['get'](_0x12e713)['userId']),_0x2b965d['set'](_0x700e7c,_0x33786d);}}for(const _0x5d7932 of _0x2b965d['keys']())(_0x549a8d['has'](_0x5d7932)||_0x5d2d7b['has'](_0x5d7932))&&_0x2b965d['delete'](_0x5d7932);}for(const _0x1b1233 of _0x179d0e){const _0x3ab46f=_0x39741b['insertions'][_0x1b1233];let _0x1f0016=null,_0x28bcd4=null;for(const _0xeeee74 of _0x3ab46f){const _0x36e430=this['_getVidAttributeName'](_0xeeee74),_0x223c85=_0xeeee74['item']['getAttribute'](_0x36e430),_0x1f50fc=_0x2b965d['get'](_0x223c85);_0x1f50fc&&'elementStart'==_0xeeee74['type']&&(_0x1f0016=Array['from'](_0x1f50fc)[0x0],_0x28bcd4=_0xeeee74['item']['getAttribute']('vid_end')),_0x1f0016&&(_0x5d2d7b['set'](_0x223c85,{'userId':_0x1f0016}),_0x549a8d['set'](_0x223c85,{'userId':_0x1f0016})),_0x223c85==_0x28bcd4&&(_0x1f0016=null,_0x28bcd4=null);}}const _0x360019={},_0x25a1de=new Set();for(const _0x4db3b7 of _0x179d0e){const _0x3bd5b1=_0x48b4c6['deletions'][_0x4db3b7],_0xe94e5c=_0x48b4c6['insertions'][_0x4db3b7];for(const {userId:_0xcc6168}of this['_touchedMarkers']['values']())null!==_0xcc6168&&_0x25a1de['add'](_0xcc6168);for(const {userId:_0x246efe}of this['_touchedRoots']['values']())null!==_0x246efe&&_0x25a1de['add'](_0x246efe);this['_markChanges'](_0xe94e5c,_0x39741b['insertions'][_0x4db3b7],_0x549a8d,'insertion',_0x25a1de),this['_markChanges'](_0x3bd5b1,_0x39741b['deletions'][_0x4db3b7],_0x5d2d7b,'deletion',_0x25a1de),_0x360019[_0x4db3b7]={'insertions':this['_prepareViewToSave'](_0xe94e5c),'deletions':this['_prepareViewToSave'](_0x3bd5b1),'attachChange':this['_touchedRoots']['get'](_0x4db3b7)||null,'attributesBefore':_0x4cdb56(this['_baseRootsAttributes']['get'](_0x4db3b7))||{},'attributesAfter':_0x4cdb56(this['_diffRootsAttributes']['get'](_0x4db3b7))};}return{'diffData':_0x360019,'authorsIds':Array['from'](_0x25a1de)};}['_processRootBeforeSave'](_0x259f18){for(const [,_0x184569]of _0x259f18['markers']){const _0x57884e=_0x184569['start']['getAncestors']()['filter'](_0x43ac61=>'tableCell'==_0x43ac61['name']);for(const _0x3087cf of _0x57884e)0x1==_0x3087cf['childCount']&&_0x3087cf['getChild'](0x0)['is']('element','paragraph')&&_0x3087cf['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x21025b){this['_processRootBeforeSave'](_0x21025b);const _0x2ba6ae=this['editor']['data']['toView'](_0x21025b,{}),_0x401caa=Array['from'](_0x2ba6ae['getChildren']())['map'](_0x2111ad=>this['_getViewJson'](_0x2111ad));return JSON['stringify'](_0x401caa);}['_getViewJson'](_0x525729){if(_0x525729['is']('$text'))return _0x525729['data'];{const _0x29b730=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x31d776=_0x525729,_0xedd454=this['editor']['data']['htmlProcessor']['domConverter'],_0x5eebc7={'type':_0x29b730['_getTypeCharForViewElement'](_0x31d776),'name':_0x31d776['name'],'attributes':Array['from'](_0x31d776['getAttributes']()),'children':Array['from'](_0x31d776['getChildren']())['map'](_0x2f4171=>this['_getViewJson'](_0x2f4171))};if(_0x525729['is']('uiElement')&&'$comment'!=_0x525729['name']){const _0x477b40=_0x525729['render'](_0xedd454['domDocument'],_0xedd454);_0x5eebc7['children']['push'](_0x477b40['outerHTML']);}else{if(_0x525729['is']('rawElement')){const _0xfdaf74=_0xedd454['domDocument']['createElement'](_0x31d776['name']);_0x525729['render'](_0xfdaf74,_0xedd454),_0x5eebc7['children']['push'](_0xfdaf74['innerHTML']);}}const _0x396d69=Array['from'](_0x31d776['getCustomProperties']());_0x396d69['length']>0x0&&(_0x5eebc7['customProperties']=_0x396d69);const _0x15d845=_0x31d776['getFillerOffset']();return null!==_0x15d845&&(_0x5eebc7['fillerOffset']=_0x15d845),_0x5eebc7;}}['_markChanges'](_0x10a33c,_0xea6c01,_0x5b807b,_0x4269c5,_0x32a809){let _0x415300=null,_0x34cffd=null,_0x165e38=0x0;const _0x215626=this['editor']['model'];for(let _0x7baf5b=0x0;_0x7baf5b<_0xea6c01['length'];_0x7baf5b++){const _0x14c62d=this['_getVidAttributeName'](_0xea6c01[_0x7baf5b]),_0x175915=_0xea6c01[_0x7baf5b]['item']['getAttribute'](_0x14c62d),_0x497229=_0x5b807b['get'](_0x175915),_0x6aeb27=_0x7baf5b==_0xea6c01['length']-0x1;(!_0x415300&&_0x497229&&(_0x415300=_0x497229,_0x34cffd=_0xea6c01[_0x7baf5b]),_0x415300&&(!_0x497229||_0x497229['userId']!=_0x415300['userId']))&&(_0x12a877(_0x497229,F(_0x34cffd,_0x10a33c,_0x215626),F(_0xea6c01[_0x7baf5b],_0x10a33c,_0x215626)),_0x415300=_0x497229||null,_0x34cffd=_0x497229?_0xea6c01[_0x7baf5b]:null),_0x415300&&_0x6aeb27&&_0x12a877(_0x497229,F(_0x34cffd,_0x10a33c,_0x215626),B(_0xea6c01[_0x7baf5b],_0x10a33c,_0x215626));}function _0x12a877(_0x3eab32,_0x4d90de,_0x5b633f){const _0x4995de=_0x415300['userId'],_0x2ab049='revision:'+_0x4269c5+':'+_0x4995de+':'+_0x165e38++,_0x55d285=_0x215626['createRange'](_0x4d90de,_0x5b633f);_0x10a33c['markers']['set'](_0x2ab049,_0x55d285),null!==_0x4995de&&_0x32a809['add'](_0x4995de);}}['_getVidAttributeName'](_0x4298b0){switch(_0x4298b0['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x55eb52,_0x1cd4be){_0x55eb52['baseVersion']=null;for(const _0x4ed7c2 in _0x55eb52){const _0x1052fd=_0x55eb52[_0x4ed7c2];if(_0x1052fd instanceof vt){const _0x420c95=_0x1cd4be['get'](_0x1052fd['root']['rootName']);_0x55eb52[_0x4ed7c2]=this['_fixPosition'](_0x1052fd,_0x420c95);}if(_0x1052fd instanceof ft){const _0x158a13=_0x1cd4be['get'](_0x1052fd['root']['rootName']);_0x55eb52[_0x4ed7c2]=this['_fixRange'](_0x1052fd,_0x158a13);}'root'===_0x4ed7c2&&(_0x55eb52['root']=_0x1cd4be['get'](_0x55eb52['root']['rootName']));}}['_fixRange'](_0x443fa8,_0x50a7fe){return this['editor']['model']['createRange'](this['_fixPosition'](_0x443fa8['start'],_0x50a7fe),this['_fixPosition'](_0x443fa8['end'],_0x50a7fe));}['_fixPosition'](_0x5a0381,_0x3a6aec){return this['editor']['model']['createPositionFromPath'](_0x3a6aec,_0x5a0381['path'],_0x5a0381['stickiness']);}['_handleInsertOperation'](_0x16c051){const _0x3392ca=this['_idsRoots']['get'](_0x16c051['position']['root']['rootName']),_0x2fcfa8=this['_fixPosition'](_0x16c051['position'],_0x3392ca),_0x2d3e9a=null===_0x16c051['_authorId']?null:_0x16c051['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34eb30=_0x2fcfa8['parent'],_0x482733=this['_revisionId'],_0x388962=[];for(const _0x448629 of _0x16c051['nodes'])if(_0x448629['is']('element'))_0x388962['push'](this['_makeIdsRoot'](_0x448629));else{for(let _0x4c1893=0x0;_0x4c1893<_0x448629['offsetSize'];_0x4c1893++)_0x388962['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x45221d=this['_revisionId'];for(let _0x533be5=_0x482733;_0x533be5<_0x45221d;_0x533be5++)this['_touched']['set'](_0x533be5,{'userId':_0x2d3e9a});_0x34eb30['_insertChild'](_0x2fcfa8['offset'],_0x388962);}['_handleMoveOperation'](_0x25f4be){(_0x25f4be=this['_cloneOperation'](_0x25f4be,this['_idsRoots']))['_execute']();const _0x68c55a=null===_0x25f4be['_authorId']?null:_0x25f4be['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16fd9c=_0x25f4be['getMovedRangeStart'](),_0x5ab586=_0x16fd9c['parent'],_0xf77d17=_0x16fd9c['offset'];!function _0x4f515e(_0x483ed1,_0x55a3d2,_0x2b3f9c,_0x2f1778){for(let _0x4e84dd=_0x2b3f9c;_0x4e84dd<_0x2f1778;_0x4e84dd++){const _0x45ab4c=_0x55a3d2['getChild'](_0x4e84dd);_0x45ab4c['is']('element','$text')?_0x483ed1['set'](_0x45ab4c['getAttribute']('vid'),{'userId':_0x68c55a}):(_0x483ed1['set'](_0x45ab4c['getAttribute']('vid_start'),{'userId':_0x68c55a}),_0x4f515e(_0x483ed1,_0x45ab4c,0x0,_0x45ab4c['childCount']),_0x483ed1['set'](_0x45ab4c['getAttribute']('vid_end'),{'userId':_0x68c55a}));}}(this['_touched'],_0x5ab586,_0xf77d17,_0xf77d17+_0x25f4be['howMany']);}['_handleMergeOperation'](_0x5cda56){const _0x66429e=null===(_0x5cda56=this['_cloneOperation'](_0x5cda56,this['_idsRoots']))['_authorId']?null:_0x5cda56['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b2edc=_0x5cda56['targetPosition']['parent'],_0x36584f=_0x5cda56['sourcePosition']['parent'],_0x3f5704=_0x4b2edc['getAttribute']('vid_end'),_0x3ee99d=_0x36584f['getAttribute']('vid_start');_0x4b2edc['_setAttribute']('vid_end',_0x36584f['getAttribute']('vid_end')),_0x36584f['_setAttribute']('vid_end',_0x3f5704),this['_touched']['set'](_0x3ee99d,{'userId':_0x66429e}),this['_touched']['set'](_0x3f5704,{'userId':_0x66429e}),_0x5cda56['_execute']();}['_handleSplitOperation'](_0x566390){const _0x3f42b3=null===(_0x566390=this['_cloneOperation'](_0x566390,this['_idsRoots']))['_authorId']?null:_0x566390['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x172c57=_0x566390['graveyardPosition'],_0x3ea32b=_0x566390['splitPosition']['parent'];_0x566390['_execute']();const _0x694949=_0x3ea32b['getAttribute']('vid_end'),_0x279f82=_0x566390['insertionPosition']['nodeAfter'];if(_0x172c57){const _0x2fd9e9=_0x279f82['getAttribute']('vid_end'),_0x345579=_0x3ea32b['getAttribute']('vid_end');_0x3ea32b['_setAttribute']('vid_end',_0x2fd9e9),_0x279f82['_setAttribute']('vid_end',_0x345579),this['_touched']['set'](_0x3ea32b['getAttribute']('vid_end'),{'userId':_0x3f42b3}),this['_touched']['set'](_0x279f82['getAttribute']('vid_start'),{'userId':_0x3f42b3});}else{const _0x40aa85=this['_revisionId']++,_0x28a1b8=this['_revisionId']++;_0x3ea32b['_setAttribute']('vid_end',_0x40aa85),_0x279f82['_setAttribute']('vid_start',_0x28a1b8),_0x279f82['_setAttribute']('vid_end',_0x694949),this['_touched']['set'](_0x40aa85,{'userId':_0x3f42b3}),this['_touched']['set'](_0x28a1b8,{'userId':_0x3f42b3});}}['_handleMarkerOperation'](_0x358a0c){if(!_0x358a0c['affectsData'])return;const _0x4e6abf=(_0x358a0c=this['_cloneOperation'](_0x358a0c,this['_diffRoots']))['oldRange']?_0x358a0c['oldRange']['root']:null,_0x337933=_0x358a0c['newRange']?_0x358a0c['newRange']['root']:null;_0x4e6abf&&this['_markers']['delete'](_0x358a0c['name']),_0x337933&&this['_markers']['set'](_0x358a0c['name'],_0x358a0c['newRange']['clone']());const _0x499e6b=null===_0x358a0c['_authorId']?null:_0x358a0c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xcb92fa=_0x358a0c['name'];if(!this['_touchedMarkers']['has'](_0xcb92fa))return void this['_touchedMarkers']['set'](_0xcb92fa,{'range':_0x358a0c['oldRange'],'userId':_0x499e6b});const _0x4bdaf3=this['_touchedMarkers']['get'](_0xcb92fa),_0x22e3d5=_0x4bdaf3['range'],_0x24fc2c=_0x358a0c['newRange'];null==_0x22e3d5&&null==_0x24fc2c||_0x22e3d5&&_0x24fc2c&&_0x22e3d5['isEqual'](_0x24fc2c)?this['_touchedMarkers']['delete'](_0x358a0c['name']):_0x4bdaf3['userId']=_0x499e6b;}['_handleRootOperation'](_0x30fd6a,_0x5f5bb4){this['_diffRoots']['has'](_0x30fd6a['rootName'])?this['_diffRoots']['get'](_0x30fd6a['rootName'])['_isAttached']=_0x30fd6a['isAdd']:(this['_diffRoots']['set'](_0x30fd6a['rootName'],P(_0x30fd6a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x30fd6a['rootName'],{}),_0x5f5bb4&&this['_idsRoots']['set'](_0x30fd6a['rootName'],P(_0x30fd6a['rootName'],!0x0)));const _0x515cf4=null===_0x30fd6a['_authorId']?null:_0x30fd6a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d7735=this['_touchedRoots']['get'](_0x30fd6a['rootName']);_0x3d7735&&_0x3d7735['userId']===_0x515cf4?this['_touchedRoots']['delete'](_0x30fd6a['rootName']):this['_touchedRoots']['set'](_0x30fd6a['rootName'],{'userId':_0x515cf4,'isAttached':_0x30fd6a['isAdd']});}['_handleRootAttributeOperation'](_0x38b877){const _0x4c50a7=this['_diffRootsAttributes']['get'](_0x38b877['root']['rootName']);null===_0x38b877['newValue']?delete _0x4c50a7[_0x38b877['key']]:_0x4c50a7[_0x38b877['key']]=_0x38b877['newValue'];}}function N(_0x3f7832){const _0xce45b5=P(_0x3f7832['rootName'],_0x3f7832['isAttached']());for(const _0x2af88b of _0x3f7832['getChildren']()){const _0x3ab3e9=_0x2af88b['_clone'](!0x0);_0xce45b5['_appendChild'](_0x3ab3e9);}return _0xce45b5;}function P(_0x225225,_0x16756f=!0x0){const _0x2b7d71=new gt();return _0x2b7d71['rootName']=_0x225225,_0x2b7d71['_isAttached']=_0x16756f,_0x2b7d71['isAttached']=()=>_0x2b7d71['_isAttached'],_0x2b7d71;}function F(_0x4c895c,_0x47ebc2,_0x283ec9){const _0x1fc6f9='elementEnd'==_0x4c895c['type']?_0x283ec9['createPositionAt'](_0x4c895c['item'],'end'):_0x283ec9['createPositionBefore'](_0x4c895c['item']);return _0x283ec9['createPositionFromPath'](_0x47ebc2,_0x1fc6f9['path'],_0x1fc6f9['stickiness']);}function B(_0x25c09a,_0x7e6553,_0x30fd72){const _0x1e8801='elementStart'==_0x25c09a['type']?_0x30fd72['createPositionAt'](_0x25c09a['item'],0x0):_0x30fd72['createPositionAfter'](_0x25c09a['item']);return _0x30fd72['createPositionFromPath'](_0x7e6553,_0x1e8801['path'],_0x1e8801['stickiness']);}class os extends _0x2cb964{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3f7688,_0x1de11e){super(_0x3f7688),this['focusTracker']=new _0x1473a9(),this['keystrokes']=new _0x2ff732(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1de11e),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x7434ff({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3275b5=_0x1e8812=>_0x1e8812['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3275b5),this['keystrokes']['set']('arrowleft',_0x3275b5),this['keystrokes']['set']('arrowup',_0x3275b5),this['keystrokes']['set']('arrowdown',_0x3275b5);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3ab160){this['revisionNameInputView']['fieldView']['element']['value']=_0x3ab160['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3b0b6d){const _0x1fe5a2=new nt(this['locale'],ti),_0x32a6e4=_0x1fe5a2['fieldView'];_0x32a6e4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x37860a=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3b0b6d&&(_0x37860a+='\x20('+g(this['locale'],'optional')+')'),(_0x1fe5a2['label']=_0x37860a,_0x32a6e4['on']('input',()=>{this['revisionNameInputValue']=_0x32a6e4['element']['value']['trim']();}),_0x1fe5a2);}}class f extends _0x156834{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4e00fd=this['editor'],_0x42fdde=_0x4e00fd['plugins']['get']('RevisionTracker');_0x4e00fd['ui']['componentFactory']['add']('revisionHistory',_0x3af155=>{const _0x405415=_0x3a34e7(_0x3af155),_0x23671f=_0x405415['panelView']['children'],_0x4cb51f=new _0x587ef5(_0x3af155),_0xcdb124=new te(_0x3af155),_0x48b45c=new _0x9857a7(_0x3af155),_0x29bd5e=new te(_0x3af155),_0x450b1a=new _0x9857a7(_0x3af155);return _0x405415['bind']('isEnabled')['to'](_0x42fdde,'isReady',_0x42fdde,'isEnabled',_0x4e00fd,'isReadOnly',(_0xc70f88,_0x10457a,_0x3dcf60)=>_0xc70f88&&_0x10457a&&!_0x3dcf60),_0x405415['buttonView']['set']({'icon':_0x5cdd2b,'label':g(_0x3af155,'Revision\x20history'),'tooltip':!0x0}),_0x48b45c['set']({'label':g(_0x3af155,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x48b45c['bind']('isEnabled')['to'](_0x42fdde,'isReady',_0x42fdde,'isEnabled',_0x4e00fd,'isReadOnly',(_0x341c55,_0x5f343e,_0x4c1c60)=>_0x341c55&&_0x5f343e&&!_0x4c1c60),_0x48b45c['on']('execute',()=>this['_showDialog']()),_0x450b1a['set']({'label':g(_0x3af155,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x450b1a['bind']('isEnabled')['to'](_0x42fdde,'isReady',_0x4e00fd,'isReadOnly',(_0x1844f2,_0x1802c3)=>_0x1844f2&&!_0x1802c3),_0x450b1a['on']('execute',()=>{_0x4e00fd['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x405415['isOpen']=!0x1,_0x4e00fd['editing']['view']['focus']();}),_0xcdb124['children']['add'](_0x48b45c),_0x29bd5e['children']['add'](_0x450b1a),_0x4cb51f['role']='menu',_0x4cb51f['items']['addMany']([_0xcdb124,_0x29bd5e]),_0x23671f['add'](_0x4cb51f),_0x405415;}),_0x4e00fd['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x331ced=this['editor'],_0x7eb1f9=_0x331ced['locale'],_0x180f2a=new _0x390ac1(_0x7eb1f9),_0x4eebfb=new _0x110ce8(_0x7eb1f9);_0x180f2a['buttonView']['set']({'icon':_0x5cdd2b,'label':g(_0x7eb1f9,'Revision\x20history')});const _0x182937=new _0x230e5f(_0x7eb1f9,_0x180f2a),_0x76e1b0=new _0x4d2c08(_0x7eb1f9);_0x76e1b0['set']({'label':g(_0x7eb1f9,'Save\x20current\x20revision')}),_0x76e1b0['delegate']('execute')['to'](_0x180f2a),_0x76e1b0['on']('execute',()=>{this['_showDialog']();}),_0x182937['children']['add'](_0x76e1b0),_0x4eebfb['items']['add'](_0x182937);const _0x13ef75=new _0x230e5f(_0x7eb1f9,_0x180f2a),_0x284b2a=new _0x4d2c08(_0x7eb1f9);return _0x284b2a['set']({'label':g(_0x7eb1f9,'Open\x20revision\x20history')}),_0x284b2a['delegate']('execute')['to'](_0x180f2a),_0x284b2a['on']('execute',()=>{_0x331ced['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x13ef75['children']['add'](_0x284b2a),_0x4eebfb['items']['add'](_0x13ef75),_0x180f2a['panelView']['children']['add'](_0x4eebfb),_0x180f2a;}['_showDialog'](){const _0x4c0579=this['editor'],_0x4a743a=_0x4c0579['locale'],_0x4146a5=_0x4c0579['plugins']['get']('Dialog'),_0x749bae=_0x4c0579['plugins']['get']('RevisionTracker');function _0x3fa9b7(_0x582a49){_0x4c0579['config']['get']('revisionHistory.requireRevisionName')&&''===_0x582a49['revisionName']?_0x582a49['revisionNameInputView']['errorText']=g(_0x4a743a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4c0579['plugins']['get'](u)['saveRevision']({'name':_0x582a49['revisionName']}),_0x4146a5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3fa9b7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4146a5['show']({'id':'revisionSave','title':g(_0x4a743a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4c0579['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4146a5['hide']()},{'label':g(_0x4c0579['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x6d4e29){_0x6d4e29['bind']('isEnabled')['to'](_0x749bae,'isReady',_0x749bae,'isEnabled',_0x4c0579,'isReadOnly',(_0x344c0e,_0x38eb19,_0x36cc4e)=>_0x344c0e&&_0x38eb19&&!_0x36cc4e);},'onExecute':()=>_0x3fa9b7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x43fe73=this['editor'],_0x5799e2=_0x43fe73['locale'];this['_saveRevisionFormView']=new os(_0x5799e2,_0x43fe73['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x2cb964{['changeId'];['_model'];constructor(_0x32bd8b,_0x3959e7){super(_0x32bd8b),this['_model']=_0x3959e7,this['changeId']=_0x3959e7['id'];const _0x55af0c=this['bindTemplate'],_0x559564=g(_0x32bd8b,_0x3959e7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3959e7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3959e7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x55af0c['to']('type',_0x4cfc15=>'ck-revision-change__'+_0x4cfc15)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x559564}]},{'text':'\x20'+_0x3959e7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x80fd2(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xbff25c){super(),this['id']=_0xbff25c['id']||_0x32ff0a(),this['author']=_0xbff25c['author'],this['type']=_0xbff25c['type'],this['data']=_0xbff25c['data']||{},this['rootName']=_0xbff25c['rootName'],this['set']('createdAt',_0xbff25c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4128b5,_0x390458){this['newRevisionId']=_0x4128b5,this['oldRevisionId']=_0x390458,this['changes']=new _0x4cc644();}['_setChanges'](_0x533807){for(const _0x3e3833 of _0x533807)this['changes']['add'](_0x3e3833);}}class m extends _0x156834{['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[_0x543348,_0x3953ff,I,V];}constructor(_0x2427a6){super(_0x2427a6),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',(_0x5ee045,_0x3b5092,_0x51372f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x9091f7=>{for(const _0x599e4c of this['editor']['editing']['view']['document']['roots'])_0x51372f?_0x9091f7['removeClass']('ck-editor__editable__overlay',_0x599e4c):_0x9091f7['addClass']('ck-editor__editable__overlay',_0x599e4c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1de65e=>null!==_0x1de65e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1af48a,_0x5f2f5b,_0x10ef01)=>_0x1af48a&&_0x10ef01?_0x5f2f5b['changes']['getIndex'](_0x10ef01):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4434cb,_0x18cb48)=>_0x4434cb?_0x18cb48['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3953ff);}['init'](){const _0x581da2=this['editor'],_0x55af58=new pt(_0x581da2,{'direction':'backward'}),_0x532453=new pt(_0x581da2,{'direction':'forward'});(_0x581da2['commands']['add']('showPreviousChange',_0x55af58),_0x581da2['commands']['add']('showNextChange',_0x532453),_0x581da2['commands']['add']('restoreRevision',new wt(_0x581da2)),this['on']('change:numberOfChanges',()=>{_0x55af58['refresh'](),_0x532453['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x581da2['enableReadOnlyMode']('revision-viewer'),_0x581da2['plugins']['has']('WidgetToolbarRepository'))&&_0x581da2['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x143fcc){return await this['_utils']['loadRevisionData'](_0x143fcc,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x143fcc);}async['getRevisionRootsAttributes'](_0x21fb71){return await this['_utils']['loadRevisionData'](_0x21fb71,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x21fb71);}async['compare'](_0x24b997,_0x3db42c,_0x399c12=!0x1){if(!this['isEnabled'])return;const _0x51aab3=this['diff'],_0x3a7ce9=this['repository'],_0x185469='string'==typeof _0x24b997?_0x3a7ce9['getRevision'](_0x24b997):_0x24b997,_0x14bf76='string'==typeof _0x3db42c?_0x3a7ce9['getRevision'](_0x3db42c):_0x3db42c,_0x2de598=_0x185469['id'],_0x74942=_0x14bf76?_0x14bf76['id']:null;if(!_0x399c12&&this['diff']&&this['diff']['newRevisionId']===_0x2de598&&this['diff']['oldRevisionId']===_0x74942)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x2de598,_0x74942);const _0x40f956=this['_getRevisionsRange'](_0x185469,_0x14bf76,!0x0)['map'](_0x3ba213=>this['_utils']['loadRevisionData'](_0x3ba213,this['adapter']));return _0x40f956['push'](new Promise(_0xa786bc=>{setTimeout(_0xa786bc,0x14);})),Promise['all'](_0x40f956)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2c80da=this['_getDiff'](_0x2de598,_0x74942);for(const _0x259480 of _0x2c80da['changes'])this['_changeIdToChange']['set'](_0x259480['id'],_0x259480);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x154ae8=>{for(const _0x35c9e4 of this['editor']['model']['document']['getRootNames']())_0x154ae8['detachRoot'](_0x35c9e4);for(const _0x1981aa of Object['keys'](_0x2c80da['model'])){const _0xf94d58=_0x154ae8['addRoot'](_0x1981aa);for(const _0x3c9457 of Object['keys'](_0x2c80da['attributes'][_0x1981aa]))_0x154ae8['setAttribute'](_0x3c9457,_0x2c80da['attributes'][_0x1981aa][_0x3c9457],_0xf94d58);_0x154ae8['insert'](_0x2c80da['model'][_0x1981aa],_0xf94d58,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2c80da['changes'])),this['isReady']=!0x0;})['catch'](_0x51b18c=>{console['error'](_0x51b18c),this['_cleanUp'](),_0x51aab3&&(this['diff']=_0x51aab3),this['isReady']=!0x0;});}['addRevisionData'](_0x6a4766,_0x24d518){const _0xd3ebb7=this['repository']['createRevision'](_0x6a4766);return _0xd3ebb7['on']('_update',(_0x53557f,_0x212663,_0x9e0fe6)=>_0x24d518(_0x212663,_0x9e0fe6,_0xd3ebb7)),this['repository']['addRevision'](_0xd3ebb7),_0xd3ebb7;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x456123=>{for(const _0x21dce9 of this['editor']['model']['document']['getRootNames']())_0x456123['detachRoot'](_0x21dce9);});}['_sortAndFilterDiffChanges'](_0x2fc2d3){const _0x18c004=[],_0x3c7bf1=new Map();for(const _0x454f1 of this['editor']['model']['document']['getRootNames']()){const _0x1ba221=this['editor']['editing']['view']['getDomRoot'](_0x454f1);if(!_0x1ba221)continue;const _0x28f201=_0x1ba221['getClientRects']()['item'](0x0);_0x28f201&&(_0x18c004['push'](_0x454f1),_0x3c7bf1['set'](_0x454f1,_0x28f201));}return _0x18c004['sort']((_0x3468c1,_0x395765)=>{const _0x3c8c58=_0x3c7bf1['get'](_0x3468c1),_0x3f069f=_0x3c7bf1['get'](_0x395765);return _0x3c8c58['y']-_0x3f069f['y']||_0x3c8c58['x']-_0x3f069f['x'];}),(_0x2fc2d3=_0x2fc2d3['filter'](_0x22d857=>_0x18c004['includes'](_0x22d857['rootName'])))['sort']((_0x2e1d36,_0x4e19bf)=>_0x18c004['indexOf'](_0x2e1d36['rootName'])-_0x18c004['indexOf'](_0x4e19bf['rootName'])),_0x2fc2d3;}['_makeTape'](_0x1d90a7){const _0x875472=Array['from'](_0x1d90a7['markers'])['filter'](([_0x5f00f5,_0x1d5c6a])=>_0x5f00f5['startsWith']('revision:')&&!_0x1d5c6a['isCollapsed']),_0x17d6d4=Array['from'](this['editor']['model']['createRangeIn'](_0x1d90a7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x875472['length'])for(const _0x3501ee of _0x17d6d4){const [_0x1821c2,_0x27b4d6]=_0x875472[0x0],[,_0x36adda,_0x18c07e]=_0x1821c2['split'](':');if(_0x27b4d6['end']['isEqual'](_0x3501ee['nextPosition'])&&_0x875472['shift'](),(_0x3501ee['previousPosition']['isEqual'](_0x27b4d6['start'])||_0x3501ee['previousPosition']['isAfter'](_0x27b4d6['start']))&&('insertion'==_0x36adda?_0x3501ee['isAdded']={'userId':_0x18c07e}:'deletion'==_0x36adda&&(_0x3501ee['isRemoved']={'userId':_0x18c07e})),0x0==_0x875472['length'])break;}return _0x17d6d4;}['_refreshStartEndIndex'](_0x32d079){const _0x2ffeef=new Map();for(let _0x1ed8e5=0x0;_0x1ed8e5<_0x32d079['length'];_0x1ed8e5++)'text'===_0x32d079[_0x1ed8e5]['type']?(_0x32d079[_0x1ed8e5]['item']['startIndex']=_0x1ed8e5,_0x32d079[_0x1ed8e5]['item']['endIndex']=_0x1ed8e5):('elementStart'===_0x32d079[_0x1ed8e5]['type']?_0x32d079[_0x1ed8e5]['item']['startIndex']=_0x1ed8e5:'elementEnd'===_0x32d079[_0x1ed8e5]['type']&&(_0x32d079[_0x1ed8e5]['item']['endIndex']=_0x1ed8e5),_0x2ffeef['set'](_0x32d079[_0x1ed8e5]['id'],_0x1ed8e5));for(const _0x6b44ab of _0x2ffeef['values']())'elementStart'===_0x32d079[_0x6b44ab]['type']?_0x32d079[_0x6b44ab]['item']['endIndex']=_0x2ffeef['get'](_0x32d079[_0x6b44ab]['pairId']):'elementEnd'===_0x32d079[_0x6b44ab]['type']&&(_0x32d079[_0x6b44ab]['item']['startIndex']=_0x2ffeef['get'](_0x32d079[_0x6b44ab]['pairId']));}['_processTape'](_0x2fc431){for(let _0x59805b=0x0;_0x59805b<_0x2fc431['length'];_0x59805b++){if('elementStart'===_0x2fc431[_0x59805b]['type'])_0x2fc431[_0x59805b]['item']['startIndex']=_0x59805b;else{if('elementEnd'===_0x2fc431[_0x59805b]['type']){_0x2fc431[_0x59805b]['item']['endIndex']=_0x59805b;const _0x5172de=_0x2fc431[_0x59805b]['item']['startIndex'];_0x2fc431[_0x5172de]['pairId']=_0x2fc431[_0x59805b]['id'],_0x2fc431[_0x59805b]['pairId']=_0x2fc431[_0x5172de]['id'];}else _0x2fc431[_0x59805b]['item']['startIndex']=_0x59805b,_0x2fc431[_0x59805b]['item']['endIndex']=_0x59805b,_0x2fc431[_0x59805b]['pairId']=null;}_0x2fc431[_0x59805b]['markersStart']||(_0x2fc431[_0x59805b]['markersStart']=[],_0x2fc431[_0x59805b]['markersEnd']=[]);}}['_markInsertions'](_0x323789,_0x4dfc57){const _0x392311=_0x323789['filter'](_0x5cbcee=>!_0x5cbcee['isAdded']);for(let _0x8d2d48=0x0;_0x8d2d48<_0x4dfc57['length'];_0x8d2d48++)_0x4dfc57[_0x8d2d48]['isAdded']&&(_0x392311[_0x8d2d48]['isAdded']=_0x4dfc57[_0x8d2d48]['isAdded']);}['_getDiff'](_0x1c68d2,_0x193732=null){const _0x46a6c3=this['repository']['getRevision'](_0x1c68d2),_0x5271fb=_0x193732?this['repository']['getRevision'](_0x193732):null,_0x4827b0=this['_getRevisionsRange'](_0x46a6c3,_0x5271fb),_0x84d8f7=_0x4827b0[_0x4827b0['length']-0x1],_0x4d85a3=new Map(),_0x28d678={'model':{},'attributes':{},'changes':[]},_0x3728a4=new Set(),_0x23561f=new Map();for(let _0x28c656=_0x4827b0['length']-0x1;_0x28c656>=0x0;_0x28c656--){const _0x591797=_0x4827b0[_0x28c656];for(const _0x800409 of Object['keys'](_0x591797['diffData']))if(_0x591797['diffData'][_0x800409]['attachChange']){const _0x8cbec2=_0x591797['diffData'][_0x800409]['attachChange'];_0x8cbec2['isAttached']?(_0x3728a4['add'](_0x800409),_0x23561f['has'](_0x800409)&&_0x23561f['get'](_0x800409)['userId']==_0x8cbec2['userId']?_0x23561f['delete'](_0x800409):_0x23561f['set'](_0x800409,_0x8cbec2)):_0x23561f['has'](_0x800409)?(_0x3728a4['delete'](_0x800409),_0x23561f['delete'](_0x800409)):(_0x3728a4['add'](_0x800409),_0x23561f['set'](_0x800409,_0x8cbec2));}else _0x3728a4['add'](_0x800409);}for(const _0x5f162e of _0x3728a4){const _0xc181c8=_0x23561f['has'](_0x5f162e)&&!_0x23561f['get'](_0x5f162e)['isAttached'];let _0x143abd=_0xc181c8?_0x4827b0['length']-0x1:0x0;const _0x3198ef=_0xc181c8?-0x1:0x1;for(;_0x4827b0[_0x143abd];){const _0x2f55d5=_0x4827b0[_0x143abd];if(_0x2f55d5['diffData'][_0x5f162e]){const _0x183d58=_0xc181c8?_0x2f55d5['diffData'][_0x5f162e]['attributesBefore']:_0x2f55d5['diffData'][_0x5f162e]['attributesAfter'];_0x28d678['attributes'][_0x5f162e]=_0x183d58?_0x4cdb56(_0x183d58):{};break;}_0x143abd+=_0x3198ef;}}for(const _0x528719 of _0x4827b0){_0x528719['model']={};for(const _0x1f9c21 of _0x528719['authors'])_0x4d85a3['set'](_0x1f9c21['id'],_0x1f9c21);for(const _0x5da523 of _0x3728a4){const _0xadad3b=_0x528719['diffData'][_0x5da523]?_0x528719['diffData'][_0x5da523]['insertions']:'[]',_0x4cfe13=_0x528719['diffData'][_0x5da523]?_0x528719['diffData'][_0x5da523]['deletions']:'[]';_0x528719['model'][_0x5da523]={'insertions':this['_utils']['_makeModelFromViewString'](_0xadad3b),'deletions':this['_utils']['_makeModelFromViewString'](_0x4cfe13)};}}for(const _0x39b744 of _0x3728a4){let _0x434f24=null,_0x4a7004=0x0;const _0xe1bd6f=new Map(Array['from'](_0x46a6c3['model'][_0x39b744]['insertions']['markers'])['filter'](([_0x28e33f])=>!_0x28e33f['startsWith']('revision:')));let _0x1d1a66=0x0;for(const _0x43fbda of _0x4827b0){const _0x43f627=this['_makeTape'](_0x43fbda['model'][_0x39b744]['insertions']);_0x43fbda==_0x46a6c3?(_0x434f24=_0x43f627,_0x4a7004=_0x434f24['length'],_0x434f24['forEach'](_0x41146d=>{_0x41146d['id']=_0x1d1a66++;}),this['_processTape'](_0x434f24)):this['_markInsertions'](_0x434f24,_0x43f627);const _0x11b3fa=_0x434f24['filter'](_0x2a8e9c=>!_0x2a8e9c['isAdded'])['map'](_0x5aabc5=>_0x5aabc5['id']);let _0x49241d=0x0;const _0x2338b4=this['_makeTape'](_0x43fbda['model'][_0x39b744]['deletions']);_0x2338b4['forEach'](_0x4a9eb5=>{_0x4a9eb5['isRemoved']?_0x4a9eb5['id']=_0x4a7004++:_0x4a9eb5['id']=_0x11b3fa[_0x49241d++];}),this['_processTape'](_0x2338b4),this['_setDistance'](_0x434f24,'isAdded'),this['_setDistance'](_0x2338b4,'isRemoved'),_0x43fbda==_0x46a6c3&&this['_markMarkers'](_0x434f24,_0xe1bd6f),_0x434f24=this['_joinTapes'](_0x434f24,_0x2338b4),this['_refreshStartEndIndex'](_0x434f24),this['_setDistance'](_0x434f24,'isRemoved');}_0x434f24=_0x434f24['filter'](_0x570abc=>!(_0x570abc['isAdded']&&_0x570abc['isRemoved']));const _0x45a893=new Map(_0x84d8f7['model'][_0x39b744]['deletions']['markers']),_0x4a1536=new Set(_0xe1bd6f['keys']());for(const _0x3627e6 of _0x45a893['keys']())_0x4a1536['delete'](_0x3627e6);this['_markSuggestions'](_0x434f24,_0x4a1536),this['_fixObsoleteTags'](_0x434f24),_0x434f24=this['_removeMissingPairs'](_0x434f24),_0x434f24=this['_markMismatchedRemovedTags'](_0x434f24),_0x434f24=this['_removeUnsupportedChanges'](_0x434f24);const {root:_0x2de83c,changes:_0x90ab1}=this['_makeModelFromTape'](_0x434f24,_0x4d85a3,_0x39b744);_0x28d678['model'][_0x39b744]=_0x2de83c;const _0x1f080e=_0x23561f['get'](_0x39b744);if(_0x1f080e){const _0x504a3c=_0x4d85a3['get'](_0x1f080e['userId']),_0x218b65=new r({'author':_0x504a3c,'type':_0x1f080e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x39b744});_0x90ab1['unshift'](_0x218b65),_0x28d678['attributes'][_0x39b744]['revisionHistoryAttachChange']=_0x218b65['id'];}_0x28d678['changes']=_0x28d678['changes']['concat'](_0x90ab1);}return _0x28d678;}['_markMarkers'](_0x11739a,_0x15011c){for(let _0x19f824=0x0;_0x19f824<_0x11739a['length'];_0x19f824++)for(const [_0x43f29d,_0x250a11]of _0x15011c)!_0x250a11['isCollapsed']&&_0x250a11['start']['isEqual'](_0x11739a[_0x19f824]['previousPosition'])&&_0x11739a[_0x19f824]['markersStart']['push'](_0x43f29d),_0x250a11['end']['isEqual'](_0x11739a[_0x19f824]['nextPosition'])&&_0x11739a[_0x19f824]['markersEnd']['push'](_0x43f29d);}['_joinTapes'](_0xfd7821,_0x3087c8){let _0xe732b1=[],_0x1e744f=0x0,_0xbb5561=0x0;for(;_0x1e744f<_0xfd7821['length']||_0xbb5561<_0x3087c8['length'];){const _0x3f6d38=_0xfd7821[_0x1e744f]||{},_0x377938=_0x3087c8[_0xbb5561]||{};if(_0x3f6d38['id']==_0x377938['id'])_0x1e744f++,_0xbb5561++,_0xe732b1['push'](_0x3f6d38);else{if(_0x377938['isRemoved']&&_0x3f6d38['isAdded']){const {commonTape:_0x5732a6,iEnd:_0x59ed67,jEnd:_0x53f097}=this['_threeWayMerge'](_0xfd7821,_0x1e744f,_0x3087c8,_0xbb5561);_0xe732b1=_0xe732b1['concat'](_0x5732a6),_0x1e744f=_0x59ed67,_0xbb5561=_0x53f097;}else _0x377938['isRemoved']?(_0xbb5561++,_0xe732b1['push'](_0x377938)):(_0x1e744f++,_0xe732b1['push'](_0x3f6d38));}}return _0xe732b1;}['_markSuggestions'](_0x49ffb3,_0x5aabcb){const _0x80fe96=[];for(let _0x1d0ddb=0x0;_0x1d0ddb<_0x49ffb3['length'];_0x1d0ddb++){for(let _0xb662bc=0x0;_0xb662bc<_0x49ffb3[_0x1d0ddb]['markersStart']['length'];_0xb662bc++){const _0x26d7d5=_0x49ffb3[_0x1d0ddb]['markersStart'][_0xb662bc];if(!_0x5aabcb['has'](_0x26d7d5))continue;const {group:_0x2be387,type:_0x7ec528,authorId:_0x218937}=_0xb98330(_0x26d7d5);'revision-suggestion'!=_0x2be387||'insertion'!=_0x7ec528&&'deletion'!=_0x7ec528||(_0x80fe96['unshift']({'type':_0x7ec528,'name':_0x26d7d5,'userId':_0x218937}),_0x49ffb3[_0x1d0ddb]['markersStart']['splice'](_0xb662bc,0x1),_0xb662bc--);}_0x1fdffa(_0x49ffb3[_0x1d0ddb]);for(let _0x104722=0x0;_0x104722<_0x49ffb3[_0x1d0ddb]['markersEnd']['length'];_0x104722++){const _0x54b960=_0x49ffb3[_0x1d0ddb]['markersEnd'][_0x104722];if(!_0x5aabcb['has'](_0x54b960))continue;const {group:_0x1b2beb,type:_0x2e6787}=_0xb98330(_0x54b960);if('revision-suggestion'!=_0x1b2beb||'insertion'!=_0x2e6787&&'deletion'!=_0x2e6787)continue;_0x49ffb3[_0x1d0ddb]['markersEnd']['splice'](_0x104722,0x1),_0x104722--;const _0x318061=_0x80fe96['findIndex'](_0x5092ba=>_0x5092ba['name']==_0x54b960);_0x318061>-0x1&&_0x80fe96['splice'](_0x318061,0x1);}}function _0xb98330(_0x2bef55){const _0x50f28c=_0x2bef55['split'](':');return{'group':_0x50f28c[0x0],'type':_0x50f28c[0x1],'subType':_0x50f28c['length']>=0x5?_0x50f28c[0x2]:null,'id':_0x50f28c['length']<0x5?_0x50f28c[0x2]:_0x50f28c[0x3],'authorId':_0x50f28c['length']<0x5?_0x50f28c[0x3]:_0x50f28c[0x4],'markerCount':0x6==_0x50f28c['length']?_0x50f28c[0x5]:null};}function _0x1fdffa(_0x2a4cdd){for(let _0x5cc5f8=0x0;_0x5cc5f8<_0x80fe96['length'];_0x5cc5f8++){if(_0x2a4cdd['isAdded']&&'insertion'==_0x80fe96[_0x5cc5f8]['type']&&_0x2a4cdd['isAdded']['userId']==_0x80fe96[_0x5cc5f8]['userId'])return _0x2a4cdd['isAddSuggestion']=_0x80fe96[_0x5cc5f8],void delete _0x2a4cdd['isAdded'];if(!_0x2a4cdd['isAdded']&&!_0x2a4cdd['isRemoved']&&'deletion'==_0x80fe96[_0x5cc5f8]['type'])return void(_0x2a4cdd['isRemoveSuggestion']=_0x80fe96[_0x5cc5f8]);}}}['_setDistance'](_0x1f8081,_0x5a371c){let _0x1b5574=0x0,_0x3eab0d=!0x1;const _0x148e13=new Map();for(const _0x1f3b90 of _0x1f8081)_0x1f3b90[_0x5a371c]?_0x3eab0d&&(_0x1b5574++,_0x3eab0d=!0x1):(_0x1b5574++,_0x3eab0d=!0x0),_0x148e13['set'](_0x1f3b90['id'],_0x1b5574);for(let _0x4fde96=0x0;_0x4fde96<_0x1f8081['length'];_0x4fde96++){if('isRemoved'==_0x5a371c&&_0x1f8081[_0x4fde96]['isAdded']||'isAdded'==_0x5a371c&&_0x1f8081[_0x4fde96]['isRemoved'])continue;if('text'==_0x1f8081[_0x4fde96]['type']){_0x1f8081[_0x4fde96]['distance']=0x0;continue;}const _0x21c3de=_0x148e13['get'](_0x1f8081[_0x4fde96]['pairId']),_0x483c4b=_0x148e13['get'](_0x1f8081[_0x4fde96]['id']);_0x1f8081[_0x4fde96]['distance']=_0x21c3de-_0x483c4b;}}['_getRevisionsRange'](_0x4f332e,_0x418931,_0x137d0b=!0x1){const _0x1201d2=[];let _0x25010b=this['repository']['getIndex'](_0x4f332e),_0x3c2871=this['repository']['getIndex'](_0x418931);for(-0x1==_0x3c2871&&(_0x3c2871=this['repository']['_revisions']['length'],_0x137d0b=!0x1);_0x25010b<_0x3c2871;)_0x1201d2['push'](this['repository']['getRevision'](_0x25010b)),_0x25010b++;return _0x137d0b&&_0x1201d2['push'](this['repository']['getRevision'](_0x25010b)),_0x1201d2;}['_threeWayMerge'](_0x52b386,_0xba87c1,_0x39ed06,_0x23ed69){const _0x51d4b4=this['editor']['model']['schema'];let _0xae5086=_0xba87c1;for(;_0x52b386[_0xae5086]&&_0x52b386[_0xae5086]['isAdded'];)_0xae5086++;let _0x23c3e1=_0x23ed69;for(;_0x39ed06[_0x23c3e1]&&_0x39ed06[_0x23c3e1]['isRemoved'];)_0x23c3e1++;_0x3c640c(_0x52b386,_0xba87c1,_0xae5086),_0x3c640c(_0x39ed06,_0x23ed69,_0x23c3e1);const _0x39d75f=_0x39ed06['slice'](_0x23ed69,_0x23c3e1)['concat'](_0x52b386['slice'](_0xba87c1,_0xae5086));return _0x39d75f['sort']((_0x4a5100,_0x14b92b)=>_0x4a5100['side']!=_0x14b92b['side']?_0x4a5100['side']-_0x14b92b['side']:_0x4a5100['level']!=_0x14b92b['level']?_0x4a5100['level']-_0x14b92b['level']:_0x4a5100['distance']!=_0x14b92b['distance']?_0x14b92b['distance']-_0x4a5100['distance']:!!_0x4a5100['isAdded']!=!!_0x14b92b['isAdded']?-0x1==_0x4a5100['side']||0x0==_0x4a5100['side']?_0x4a5100['isAdded']?-0x1:0x1:_0x4a5100['isAdded']?0x1:-0x1:_0x4a5100['index']-_0x14b92b['index']),{'commonTape':_0x39d75f,'iEnd':_0xae5086,'jEnd':_0x23c3e1};function _0x3c640c(_0x5d0251,_0x2f73b1,_0x39e0a7){let _0x47413f=-0x1,_0x4381d9=Number['POSITIVE_INFINITY'],_0x4ff3e1=!0x0;for(let _0x2f254a=_0x2f73b1;_0x2f254a<_0x39e0a7;_0x2f254a++)if(_0x51d4b4['isInline'](_0x5d0251[_0x2f254a]['item'])||(_0x4ff3e1=!0x1),_0x5d0251[_0x2f254a]['item']['startIndex']<_0x2f73b1&&(_0x47413f=_0x2f254a),_0x5d0251[_0x2f254a]['item']['endIndex']>=_0x39e0a7){_0x4381d9=_0x2f254a;break;}_0x4ff3e1&&(_0x47413f=_0x39e0a7-0x1);for(let _0x4e31f5=_0x2f73b1;_0x4e31f5<_0x39e0a7;_0x4e31f5++)_0x5d0251[_0x4e31f5]['side']=_0x4e31f5<=_0x47413f?-0x1:_0x4e31f5<_0x4381d9?0x0:0x1,_0x5d0251[_0x4e31f5]['index']=_0x4e31f5;let _0x4d9ebc=0x0;for(let _0x4ccd72=_0x2f73b1;_0x4ccd72<=_0x47413f;_0x4ccd72++)0x0==_0x5d0251[_0x4ccd72]['distance']?_0x5d0251[_0x4ccd72]['level']=_0x4d9ebc:(_0x4d9ebc++,_0x5d0251[_0x4ccd72]['level']=_0x4d9ebc,_0x4d9ebc++);for(let _0x230ddf=_0x2f73b1;_0x230ddf<_0x39e0a7;_0x230ddf++)0x0==_0x5d0251[_0x230ddf]['side']&&(_0x5d0251[_0x230ddf]['level']=_0x4d9ebc);_0x4d9ebc=0x0;for(let _0xf97572=_0x39e0a7-0x1;_0xf97572>=_0x4381d9;_0xf97572--)0x0==_0x5d0251[_0xf97572]['distance']?_0x5d0251[_0xf97572]['level']=_0x4d9ebc:(_0x4d9ebc--,_0x5d0251[_0xf97572]['level']=_0x4d9ebc,_0x4d9ebc--);}}['_fixObsoleteTags'](_0x293618){const _0xce0458=new Map(),_0x56695d=this['editor']['model']['schema'];for(let _0x53de32=0x1;_0x53de32<_0x293618['length'];_0x53de32++){let _0xc9b8ef,_0x1cfda0,_0x115381;const _0x5b2661=_0x293618[_0x53de32],_0x368f78=_0x293618[_0x53de32-0x1];if('text'==_0x5b2661['type'])continue;if(_0x5b2661['type']!=_0x368f78['type'])continue;if(!_0x56695d['isBlock'](_0x368f78['item'])||_0x56695d['isLimit'](_0x368f78['item']))continue;if(!_0x56695d['isBlock'](_0x5b2661['item'])||_0x56695d['isLimit'](_0x5b2661['item']))continue;if((_0x293618[_0x53de32]['isAdded']||_0x293618[_0x53de32]['isAddSuggestion'])&&_0x293618[_0x53de32-0x1]['isRemoved'])_0xc9b8ef=_0x293618[_0x53de32],_0x1cfda0=_0x293618[_0x53de32-0x1],_0x115381=_0x53de32-0x1;else{if(!_0x293618[_0x53de32]['isRemoved']||!_0x293618[_0x53de32-0x1]['isAdded']&&!_0x293618[_0x53de32-0x1]['isAddSuggestion'])continue;_0xc9b8ef=_0x293618[_0x53de32-0x1],_0x1cfda0=_0x293618[_0x53de32],_0x115381=_0x53de32;}const _0x37760d=_0xc9b8ef['level']==_0x1cfda0['level'],_0x3befc2=Math['abs'](_0xc9b8ef['level'])<Math['abs'](_0x1cfda0['level'])&&0x0==_0x1cfda0['distance'];(_0x37760d||_0x3befc2)&&(_0xce0458['set'](_0x1cfda0['id'],_0xc9b8ef['id']),_0x293618['splice'](_0x115381,0x1),_0x53de32--,_0xc9b8ef['isAdded']=!0x1);}for(let _0xe47694=0x0;_0xe47694<_0x293618['length'];_0xe47694++)_0xce0458['has'](_0x293618[_0xe47694]['pairId'])&&(_0x293618[_0xe47694]['pairId']=_0xce0458['get'](_0x293618[_0xe47694]['pairId']));}['_removeMissingPairs'](_0x1e5673){const _0x1ac2b4=new Set(_0x1e5673['map'](_0x16d386=>_0x16d386['id']));for(let _0x5728c3=0x0;_0x5728c3<_0x1e5673['length'];_0x5728c3++)_0x1ac2b4['has'](_0x1e5673[_0x5728c3]['pairId'])||0x0==_0x1e5673[_0x5728c3]['distance']||(_0x1e5673[_0x5728c3]['isIncorrect']=!0x0);return _0x1e5673['filter'](_0x5e5160=>!_0x5e5160['isIncorrect']);}['_markMismatchedRemovedTags'](_0x45d5fc){const _0xf1232c=new Set();for(let _0x108fe9=0x0;_0x108fe9<_0x45d5fc['length'];_0x108fe9++){if(_0xf1232c['has'](_0x45d5fc[_0x108fe9]['id'])&&_0x45d5fc[_0x108fe9]['isRemoved']&&(_0x45d5fc[_0x108fe9]['isIncorrect']=!0x0),_0x45d5fc[_0x108fe9]['isIncorrect'])continue;if(0x0==_0x45d5fc[_0x108fe9]['distance'])continue;if('elementStart'!=_0x45d5fc[_0x108fe9]['type'])continue;if(null==_0x45d5fc[_0x108fe9]['pairId'])continue;let _0x586110=_0x108fe9+0x1,_0x51dd7a=0x0;for(;_0x45d5fc[_0x586110]['id']!=_0x45d5fc[_0x108fe9]['pairId'];)'elementStart'==_0x45d5fc[_0x586110]['type']?_0x51dd7a++:'elementEnd'==_0x45d5fc[_0x586110]['type']&&_0x51dd7a--,_0x586110++;if(0x0!=_0x51dd7a){if(_0x45d5fc[_0x108fe9]['isRemoved'])_0x45d5fc[_0x108fe9]['isIncorrect']=!0x0;else{for(;_0x586110!=_0x108fe9;)_0x45d5fc[_0x586110]['isRemoved']&&0x0!=_0x45d5fc[_0x586110]['distance']&&(_0x45d5fc[_0x586110]['isIncorrect']=!0x0,_0xf1232c['add'](_0x45d5fc[_0x586110]['pairId'])),_0x586110--;}}}return _0x45d5fc['filter'](_0x3ba14b=>!_0x3ba14b['isIncorrect']);}['_removeUnsupportedChanges'](_0x1515eb){const _0x5af319=this['editor']['model']['schema'];for(let _0x563007=0x0;_0x563007<_0x1515eb['length'];_0x563007++){if(!(_0x1515eb[_0x563007]['isAdded']||_0x1515eb[_0x563007]['isAddSuggestion']||_0x1515eb[_0x563007]['isRemoved']||_0x1515eb[_0x563007]['isRemoveSuggestion']))continue;if(0x0==_0x1515eb[_0x563007]['distance'])continue;const _0x1c95fe=_0x1515eb[_0x563007]['item'];_0x5af319['isBlock'](_0x1c95fe)||_0x5af319['isLimit'](_0x1c95fe)||(_0x1515eb[_0x563007]['isAdded']&&delete _0x1515eb[_0x563007]['isAdded'],_0x1515eb[_0x563007]['isAddSuggestion']&&delete _0x1515eb[_0x563007]['isAddSuggestion'],_0x1515eb[_0x563007]['isRemoveSuggestion']&&delete _0x1515eb[_0x563007]['isRemoveSuggestion'],_0x1515eb[_0x563007]['isRemoved']&&(_0x1515eb[_0x563007]['isIncorrect']=!0x0));}return _0x1515eb['filter'](_0x2957bc=>!_0x2957bc['isIncorrect']);}['_makeModelFromTape'](_0x1b3afc,_0x3ba3f2,_0x56870c){const _0x4e5126=new gt(),_0x40bec4=[],_0x1a7cde=new Map(),_0x26fdbb=this['editor']['model'],_0x6460a4=_0x26fdbb['schema'],_0x5a802a=[_0x4e5126],_0x482d50={},_0x343407={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3c01e8=null;const _0x414acb=[0x0];for(let _0x3f9cc4=0x0;_0x3f9cc4<_0x1b3afc['length'];_0x3f9cc4++)if('elementStart'===_0x1b3afc[_0x3f9cc4]['type']){_0x1b3afc[_0x3f9cc4]['previousPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb);const _0x305caa=new ut(_0x1b3afc[_0x3f9cc4]['item']['name'],_0x1b3afc[_0x3f9cc4]['item']['getAttributes']());_0x5a802a[0x0]['_appendChild'](_0x305caa),_0x414acb['push'](0x0),_0x5a802a['unshift'](_0x305caa),_0x1b3afc[_0x3f9cc4]['nextPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb);}else'elementEnd'===_0x1b3afc[_0x3f9cc4]['type']?(_0x5a802a['shift'](),_0x1b3afc[_0x3f9cc4]['previousPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb),_0x414acb['pop'](),_0x414acb[_0x414acb['length']-0x1]++,_0x1b3afc[_0x3f9cc4]['nextPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb)):(_0x1b3afc[_0x3f9cc4]['previousPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb),_0x3c01e8?_0x3c01e8['_data']+=_0x1b3afc[_0x3f9cc4]['item']['data']:_0x3c01e8=new mt(_0x1b3afc[_0x3f9cc4]['item']['data'],_0x1b3afc[_0x3f9cc4]['item']['getAttributes']()),_0x1b3afc[_0x3f9cc4+0x1]&&'text'===_0x1b3afc[_0x3f9cc4+0x1]['type']&&_0x5793d1(_0x3c01e8,_0x1b3afc[_0x3f9cc4+0x1]['item'])||(_0x5a802a[0x0]['_appendChild'](_0x3c01e8),_0x3c01e8=null),_0x414acb[_0x414acb['length']-0x1]+=_0x1b3afc[_0x3f9cc4]['item']['offsetSize'],_0x1b3afc[_0x3f9cc4]['nextPosition']=_0x26fdbb['createPositionFromPath'](_0x4e5126,_0x414acb));for(let _0x50a42e=0x0;_0x50a42e<_0x1b3afc['length'];_0x50a42e++){const _0x3e2690=_0x1b3afc[_0x50a42e]['previousPosition'],_0x3c7fb8=_0x1b3afc[_0x50a42e]['nextPosition'];for(const _0x49fa25 of _0x1b3afc[_0x50a42e]['markersStart'])_0x1a7cde['set'](_0x49fa25,{'start':_0x3e2690,'end':null});_0x146982('isRemoveSuggestion',_0x50a42e,_0x3e2690,_0x3c7fb8),_0x146982('isAddSuggestion',_0x50a42e,_0x3e2690,_0x3c7fb8),_0x146982('isRemoved',_0x50a42e,_0x3e2690,_0x3c7fb8),_0x146982('isAdded',_0x50a42e,_0x3e2690,_0x3c7fb8);for(const _0x3b1aa0 of _0x1b3afc[_0x50a42e]['markersEnd']){const _0x56c867=_0x1a7cde['get'](_0x3b1aa0);_0x56c867?_0x56c867['end']=_0x3c7fb8:_0x1a7cde['set'](_0x3b1aa0,{'start':_0x3c7fb8,'end':_0x3c7fb8});}}for(const [_0xf13f51,_0x395d73]of _0x1a7cde){const _0x2c39d2=this['editor']['model']['createRange'](_0x395d73['start'],_0x395d73['end']);_0x4e5126['markers']['set'](_0xf13f51,_0x2c39d2);}return _0x40bec4['sort']((_0x504500,_0x20755c)=>{const _0xf5b430=_0x4e5126['markers']['get']('revision:'+_0x504500['id']),_0x3d8b5e=_0x4e5126['markers']['get']('revision:'+_0x20755c['id']);return _0xf5b430['start']['isBefore'](_0x3d8b5e['start'])?-0x1:_0xf5b430['start']['isAfter'](_0x3d8b5e['start'])?0x1:_0xf5b430['end']['isBefore'](_0x3d8b5e['end'])?-0x1:_0xf5b430['end']['isAfter'](_0x3d8b5e['end'])?0x1:'add'===_0x504500['type']?-0x1:0x1;}),{'root':_0x4e5126,'changes':_0x40bec4};function _0x146982(_0xf317fa,_0x3b00cb,_0x33470d,_0x2a2832){const _0x40ca12=!!_0x1b3afc[_0x3b00cb][_0xf317fa],_0x4d3116=_0x40ca12?_0x1b3afc[_0x3b00cb][_0xf317fa]['userId']:null,_0x15d9be=_0x3b00cb===_0x1b3afc['length']-0x1,_0x1a3f64=_0x343407[_0xf317fa][0x0],_0x1665ef=_0x6460a4['isObject'](_0x1b3afc[_0x3b00cb]['item']);!_0x482d50[_0xf317fa]&&_0x40ca12?_0x482d50[_0xf317fa]={'start':_0x33470d,'tapeItem':_0x1b3afc[_0x3b00cb],'userId':_0x4d3116,'type':_0xf317fa}:_0x482d50[_0xf317fa]&&!_0x40ca12?(_0x482d50[_0xf317fa]['end']=_0x33470d,_0x1b5c99(_0x482d50[_0xf317fa]),_0x482d50[_0xf317fa]=null):_0x482d50[_0xf317fa]&&_0x40ca12&&_0x482d50[_0xf317fa]['userId']!==_0x4d3116&&(_0x482d50[_0xf317fa]['end']=_0x33470d,_0x1a3f64&&_0x1a3f64['userId']===_0x482d50[_0xf317fa]['userId']||_0x1b5c99(_0x482d50[_0xf317fa]),_0x482d50[_0xf317fa]={'start':_0x33470d,'tapeItem':_0x1b3afc[_0x3b00cb],'userId':_0x4d3116,'type':_0xf317fa}),_0x482d50[_0xf317fa]&&_0x1665ef&&('elementStart'!==_0x1b3afc[_0x3b00cb]['type']||_0x1a3f64&&_0x1a3f64['userId']===_0x4d3116||_0x343407[_0xf317fa]['unshift']({'userId':_0x4d3116,'object':_0x1b3afc[_0x3b00cb]['item'],'change':_0x482d50[_0xf317fa]}),'elementEnd'===_0x1b3afc[_0x3b00cb]['type']&&_0x1a3f64&&_0x1a3f64['object']===_0x1b3afc[_0x3b00cb]['item']&&(_0x343407[_0xf317fa]['shift'](),_0x482d50[_0xf317fa]=_0x1a3f64['change'])),_0x482d50[_0xf317fa]&&_0x15d9be&&(_0x482d50[_0xf317fa]['end']=_0x2a2832,_0x1b5c99(_0x482d50[_0xf317fa]),_0x482d50[_0xf317fa]=null);}function _0x1b5c99({start:_0x3ab4ce,end:_0x47fa62,tapeItem:_0x2f8a52,userId:_0x2987d7,type:_0x317c94}){const _0x5d1d0c=_0x2f8a52['item'],_0x1487a6=_0x26fdbb['schema']['isBlock'](_0x5d1d0c)&&!_0x26fdbb['schema']['isLimit'](_0x5d1d0c),_0x4f9e56=_0x3ab4ce['nodeAfter']==_0x47fa62['parent']&&_0x47fa62['isAtStart'];if(_0x1487a6&&_0x4f9e56)return;const _0x4f9d43=_0x26fdbb['createRange'](_0x3ab4ce,_0x47fa62),_0x135ce0=_0x3ba3f2['get'](_0x2987d7),_0x38a1e0=new r({'author':_0x135ce0,'type':'isAdded'==_0x317c94||'isAddSuggestion'==_0x317c94?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x317c94||'isRemoveSuggestion'==_0x317c94},'createdAt':new Date(),'rootName':_0x56870c});_0x40bec4['push'](_0x38a1e0),_0x4e5126['markers']['set']('revision:'+_0x38a1e0['id'],_0x4f9d43);}function _0x5793d1(_0x1a847f,_0x21deda){const _0x489110=_0x1a847f['getAttributes'](),_0xddf9c8=_0x21deda['getAttributes']();for(const _0x28e0bc of _0x489110){if(_0x28e0bc[0x1]!==_0x21deda['getAttribute'](_0x28e0bc[0x0]))return!0x1;_0xddf9c8['next']();}return _0xddf9c8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xe8fdfb=>{const _0x5a4289=_0xe8fdfb['markerName']['split'](':')[0x1],_0x2ad885=this['_getChangeFromId'](_0x5a4289);if(!_0x2ad885)return null;const _0x390706='add'==_0x2ad885['type']?'insertion':'deletion',_0x5d4600=['ck-suggestion-marker','ck-suggestion-marker-'+_0x390706];return _0x2ad885['data']['isSuggestion']&&_0x5d4600['push']('ck-suggestion-marker-'+_0x390706+'-new'),this['activeChange']==_0x2ad885&&_0x5d4600['push']('ck-suggestion-marker--active'),{'classes':_0x5d4600,'attributes':{'data-change-id':_0x5a4289}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3e7d03=>{_0x3e7d03['on']('element:pre',(_0x17554c,_0x28d062,_0x4c1b8b)=>{const _0x3bd151=_0x28d062['viewItem']['getChild'](0x0);if(!_0x3bd151||!_0x3bd151['is']('element','code'))return;if(!_0x4c1b8b['consumable']['consume'](_0x3bd151,{'attributes':['vid_start','vid_end']}))return;const _0x464cc0=_0x28d062['modelRange']['start']['nodeAfter'];_0x4c1b8b['writer']['setAttribute']('vid_start',_0x3bd151['getAttribute']('vid_start'),_0x464cc0),_0x4c1b8b['writer']['setAttribute']('vid_end',_0x3bd151['getAttribute']('vid_end'),_0x464cc0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x33bcb1=>{_0x33bcb1['on']('element',(_0xf35485,_0x24521e,_0x208df0)=>{if(!_0x208df0['consumable']['consume'](_0x24521e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x24521e['modelRange']['isCollapsed'])return;const _0x50bfed=_0x24521e['modelRange']['start']['nodeAfter'];_0x50bfed['hasAttribute']('vid_start')||_0x50bfed['hasAttribute']('vid')||(_0x208df0['writer']['setAttribute']('vid_start',_0x24521e['viewItem']['getAttribute']('vid_start'),_0x50bfed),_0x208df0['writer']['setAttribute']('vid_end',_0x24521e['viewItem']['getAttribute']('vid_end'),_0x50bfed));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4c251a=>_0x4c251a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40a5d5,[,_0x272194])=>{['vid_start','vid_end','vid']['includes'](_0x272194)&&(_0x40a5d5['return']=!0x0,_0x40a5d5['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1dc3f9=>{_0x1dc3f9['on']('attribute:vid',(_0x41b3cc,_0xdab97e,_0x5e851c)=>{if('\x20'!=_0xdab97e['item']['data']||_0xdab97e['item']['parent']['maxOffset']>0x1)return;if(!_0x5e851c['consumable']['consume'](_0xdab97e['item'],_0x41b3cc['name']))return;const _0x4e92cf=_0x5e851c['writer'],_0x490146=_0x5e851c['mapper']['toViewRange'](_0xdab97e['range']);_0x4e92cf['wrap'](_0x490146,_0x4e92cf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x13556b){const _0x578be3=_0x13556b['plugins']['get']('RevisionViewer');return(_0x31b339,_0x59bdd8,_0x1baf76)=>{const _0x1476c5=_0x59bdd8['markerName']['split'](':')[0x1],_0x27a433=_0x578be3['_getChangeFromId'](_0x1476c5);if(!_0x27a433)return null;const _0x354465='add'==_0x27a433['type']?'split':'merge';if(!_0x1baf76['consumable']['test'](_0x59bdd8['markerRange'],_0x31b339['name']))return;const _0x48ccbd=_0x59bdd8['markerRange']['getWalker'](),_0x53d9d4=_0x59bdd8['markerRange']['start'],_0x23f216=_0x13556b['model']['schema'];let _0x4d0d6b=null,_0x2f8b66=null,_0x4580fd=!0x1,_0x346d32=!0x1;for(const _0x24011b of _0x48ccbd){const _0x17beb0=_0x24011b['item'];_0x4580fd=_0x4580fd||_0x23f216['isContent'](_0x17beb0);const _0x29b01e=_0x1baf76['mapper']['toViewElement'](_0x17beb0);if(_0x29b01e&&_0x29b01e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x24011b['type']&&(_0x23f216['isBlock'](_0x17beb0)&&!_0x23f216['isLimit'](_0x17beb0)&&(_0x17beb0['nextSibling']||_0x53d9d4['isAtEnd']?_0x4d0d6b&&_0x4d0d6b['parent']==_0x17beb0||(_0x4d0d6b=_0x17beb0,_0x483a0a(_0x24011b['previousPosition']),_0x346d32=!0x0):_0x2f8b66=_0x2f8b66||_0x24011b['previousPosition']));}function _0x483a0a(_0x359771){const _0x261479=_0x1baf76['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x354465}),_0x55e0af=_0x1baf76['mapper']['toViewPosition'](_0x359771);_0x27a433['data']['isSuggestion']&&_0x1baf76['writer']['addClass']('ck-suggestion-marker-'+_0x354465+'-new',_0x261479),_0x578be3['activeChange']==_0x27a433&&_0x1baf76['writer']['addClass']('ck-suggestion-marker--active',_0x261479),_0x1baf76['writer']['insert'](_0x55e0af,_0x261479),_0x1baf76['mapper']['bindElementToMarker'](_0x261479,_0x59bdd8['markerName']);}_0x4580fd||_0x346d32||!_0x2f8b66||_0x483a0a(_0x2f8b66);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xcf0a8a,_0x449939,_0xf325ce)=>{const _0x1ae4ce=_0xf325ce['mapper']['markerNameToElements'](_0x449939['markerName']);if(_0x1ae4ce){for(const _0x340030 of _0x1ae4ce)(_0x340030['hasClass']('ck-suggestion-marker-split')||_0x340030['hasClass']('ck-suggestion-marker-merge'))&&(_0xf325ce['mapper']['unbindElementFromMarkerName'](_0x340030,_0x449939['markerName']),_0xf325ce['writer']['remove'](_0x340030));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xc5d717,_0x512928,_0x1dea7b)=>{const _0x313c18=_0x512928['markerName']['split'](':')[0x1],_0x52c4f7=this['_getChangeFromId'](_0x313c18);if(!_0x52c4f7)return null;const _0x2d3916='add'==_0x52c4f7['type']?'split':'merge';if(_0x1dea7b['consumable']['test'](_0x512928['markerRange'],_0xc5d717['name']))for(const _0x455e2d of _0x512928['markerRange']['getItems']()){if(!_0x455e2d['is']('element','softBreak'))continue;const _0x50bb15=_0x1dea7b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d3916}),_0x3466eb=_0x1dea7b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x455e2d));_0x52c4f7['data']['isSuggestion']&&_0x1dea7b['writer']['addClass']('ck-suggestion-marker-'+_0x2d3916+'-new',_0x50bb15),this['activeChange']==_0x52c4f7&&_0x1dea7b['writer']['addClass']('ck-suggestion-marker--active',_0x50bb15),_0x1dea7b['writer']['insert'](_0x3466eb,_0x50bb15),_0x1dea7b['mapper']['bindElementToMarker'](_0x50bb15,_0x512928['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1aa40c=>{for(const _0x371ae7 of this['editor']['model']['document']['getRootNames']()){const _0x5a9241=this['editor']['model']['document']['getRoot'](_0x371ae7),_0x552fff=this['editor']['editing']['view']['document']['getRoot'](_0x371ae7);if(_0x552fff){const _0x56c2ac=_0x5a9241['getAttribute']('revisionHistoryAttachChange');if(_0x1aa40c['removeAttribute']('data-change-id',_0x552fff),_0x1aa40c['removeClass']('ck-revision-history-root-add',_0x552fff),_0x1aa40c['removeClass']('ck-revision-history-root-remove',_0x552fff),_0x1aa40c['removeClass']('ck-revision-history-root--active',_0x552fff),_0x56c2ac){const _0x5aae70=this['_getChangeFromId'](_0x56c2ac);if(!_0x5aae70)return null;_0x1aa40c['setAttribute']('data-change-id',_0x56c2ac,_0x552fff),_0x1aa40c['addClass']('ck-revision-history-root-'+_0x5aae70['type'],_0x552fff),this['activeChange']==_0x5aae70&&_0x1aa40c['addClass']('ck-revision-history-root--active',_0x552fff);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2ff188=>'revision-comment:'+_0x2ff188,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x28478c=>'revision-suggestion:'+_0x28478c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2feac9=>({'name':'suggestion:'+_0x2feac9,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x53dfe8=>{const _0x29b7db=_0x53dfe8['markerName']['split'](':')[0x1];return'insertion'!=_0x29b7db&&'deletion'!=_0x29b7db?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x29b7db]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3456d2,_0x2dedfa,_0x389ace)=>{const _0x2eabdc=_0x389ace['mapper']['markerNameToElements'](_0x2dedfa['markerName']);if(_0x2eabdc){for(const _0x3167d1 of _0x2eabdc)_0x3167d1['is']('uiElement')&&(_0x389ace['mapper']['unbindElementFromMarkerName'](_0x3167d1,_0x2dedfa['markerName']),_0x389ace['writer']['remove'](_0x3167d1));}},{'priority':'high'});}['_getChangeFromId'](_0x41083a){return this['_changeIdToChange']['get'](_0x41083a);}['_getViewForChange'](_0x4ac64f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x4ac64f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x172f99,_0x2daed8,_0x166ccf,_0x2b841c)=>{_0x2b841c&&this['_balloon']['remove'](_0x2b841c),_0x166ccf&&(this['_balloon']['add']({'view':_0x166ccf,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3cfa5c=this['editor']['editing'],_0x54303d=this['_getChangeFromId'](_0x166ccf['changeId']);let _0x388409;if(_0x54303d['data']['isOnRoot']){const _0x36ecfb=_0x3cfa5c['view']['getDomRoot'](_0x54303d['rootName']);_0x388409=Array['from'](_0x36ecfb['getClientRects']());}else{const _0x4e3b87=this['editor']['model']['markers']['get']('revision:'+_0x166ccf['changeId']);_0x388409=Array['from'](_0x3cfa5c['mapper']['markerNameToElements'](_0x4e3b87['name']))['map'](_0x395d9b=>_0x3cfa5c['view']['domConverter']['mapViewToDom'](_0x395d9b))['map'](_0x7f7695=>Array['from'](_0x7f7695['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x388409[0x0];return _0x388409['find'](_0x1e54f7=>_0x1e54f7['top']-0x3<=this['_activeViewTarget']['y']&&_0x1e54f7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1e54f7['left']-0x3<=this['_activeViewTarget']['x']&&_0x1e54f7['right']+0x3>=this['_activeViewTarget']['x'])||_0x388409[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x262e6f,_0x9f772d,_0x58367f,_0x2cebb5)=>{this['activeView']=_0x58367f?this['_getViewForChange'](_0x58367f):null,this['editor']['model']['change'](()=>{const _0x4ddd0d=this['editor']['editing'];_0x2cebb5&&(_0x2cebb5['data']['isOnRoot']?_0x4ddd0d['view']['change'](_0x510e03=>{_0x510e03['removeClass']('ck-revision-history-root--active',_0x4ddd0d['view']['document']['getRoot'](_0x2cebb5['rootName']));}):_0x4ddd0d['reconvertMarker']('revision:'+_0x2cebb5['id'])),_0x58367f&&(_0x58367f['data']['isOnRoot']?_0x4ddd0d['view']['change'](_0x4a1c7b=>{_0x4a1c7b['addClass']('ck-revision-history-root--active',_0x4ddd0d['view']['document']['getRoot'](_0x58367f['rootName']));}):_0x4ddd0d['reconvertMarker']('revision:'+_0x58367f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3db247,_0x3bd035)=>{if(this['activeChange'])return;const _0x3ce437=this['_findChangeIdFromDomTarget'](_0x3bd035['target']),_0x68d7a7=this['_changeIdToChange']['get'](_0x3ce437);_0x68d7a7?(this['_activeViewTarget']={'x':_0x3bd035['domEvent']['x'],'y':_0x3bd035['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x68d7a7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5be1cb,_0x7ff850)=>{const _0x5ebc18=this['_findChangeIdFromDomTarget'](_0x7ff850['target']),_0x26ab77=this['_changeIdToChange']['get'](_0x5ebc18);_0x26ab77?(this['_activeViewTarget']={'x':_0x7ff850['domEvent']['x'],'y':_0x7ff850['domEvent']['y']},_0x26ab77===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x26ab77):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2d0503){do{const _0x284e69=_0x2d0503['getAttribute']('data-change-id');if(_0x284e69)return _0x284e69;_0x2d0503=_0x2d0503['parent'];}while(_0x2d0503);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x16fd09=>{for(const _0x3529a1 of this['editor']['model']['markers'])_0x16fd09['removeMarker'](_0x3529a1);});}}function X(_0x5d93e0,_0x429e23){return(_0x244690,_0x3227c3,_0x33417f)=>{if(!_0x33417f['consumable']['test'](_0x3227c3['markerRange'],_0x244690['name']))return;const _0x28a9fd=_0x3227c3['markerRange']['getWalker'](),_0x5db541=_0x3227c3['markerRange']['start'],_0x4825a3=_0x5d93e0['model']['schema'];let _0x12e0f9=null,_0x4292b9=null,_0x167284=!0x1,_0x171460=!0x1;for(const _0x9d7c7 of _0x28a9fd){const _0x334fca=_0x9d7c7['item'];_0x167284=_0x167284||_0x4825a3['isContent'](_0x334fca);const _0x4467a5=_0x33417f['mapper']['toViewElement'](_0x334fca);if(_0x4467a5&&_0x4467a5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x9d7c7['type']&&(_0x4825a3['isBlock'](_0x334fca)&&!_0x4825a3['isLimit'](_0x334fca)&&(_0x334fca['nextSibling']||_0x5db541['isAtEnd']?_0x12e0f9&&_0x12e0f9['parent']==_0x334fca||(_0x12e0f9=_0x334fca,_0x13f725(_0x9d7c7['previousPosition']),_0x171460=!0x0):_0x4292b9=_0x4292b9||_0x9d7c7['previousPosition']));}function _0x13f725(_0x2f90ac){const _0x36e4a2=_0x33417f['mapper']['toViewPosition'](_0x2f90ac),_0x356559=_0x33417f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x429e23});_0x33417f['writer']['insert'](_0x36e4a2,_0x356559),_0x33417f['mapper']['bindElementToMarker'](_0x356559,_0x3227c3['markerName']);}_0x167284||_0x171460||!_0x4292b9||_0x13f725(_0x4292b9);};}class wt extends _0x1122d0{constructor(_0x5384c3){super(_0x5384c3);const _0x4e4f94=_0x5384c3['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4e4f94,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4e4f94,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x38883b=this['editor'],_0x587706=_0x38883b['plugins']['get'](m),_0x3a123b=_0x587706['isReady']?_0x587706['diff']['newRevisionId']:null;_0x38883b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3a123b);}['refresh'](){const {isReady:_0x3537fa,isEnabled:_0x35830a,repository:_0x7d90cb,diff:_0x180a61}=this['editor']['plugins']['get'](m),_0x18ec94=_0x180a61&&_0x7d90cb['getLaterVisibleRevision'](_0x180a61['newRevisionId']);this['isEnabled']=_0x3537fa&&_0x35830a&&Boolean(_0x18ec94);}}class pt extends _0x1122d0{['_step'];constructor(_0x450a2c,{direction:_0x4fcb1e}){super(_0x450a2c);const _0x5605fe=_0x450a2c['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4fcb1e?0x1:-0x1,this['listenTo'](_0x5605fe,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5605fe,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5605fe,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x105e91=this['editor'],_0x37e80a=_0x105e91['plugins']['get'](m),{isNavigationMode:_0x5b480b,currentChangeNumber:_0x54a25d}=_0x37e80a;let _0x263dde;if(_0x37e80a['activeChange']=_0x5b480b?_0x37e80a['diff']['changes']['get'](_0x54a25d+this['_step']):_0x37e80a['diff']['changes']['first'],_0x37e80a['activeChange']['data']['isOnRoot'])_0x263dde=_0x105e91['editing']['view']['getDomRoot'](_0x37e80a['activeChange']['rootName']);else{const _0x36a26b=_0x105e91['model']['markers']['get']('revision:'+_0x37e80a['activeChange']['id']);_0x263dde=_0x1d4af0(_0x105e91['editing'],_0x36a26b);}_0x1e191f({'target':_0x263dde,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xd3ec8c,currentChangeNumber:_0xd9ea12,numberOfChanges:_0x6c369b,isReady:_0x157344,isEnabled:_0x48ed7c}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x48ed7c&&_0x157344&&_0x6c369b)&&(!_0xd3ec8c||(0x1===this['_step']?_0xd9ea12<_0x6c369b-0x1:_0xd9ea12>0x0));}}class _i extends _0x2cb964{constructor(_0x31d3cb){super(_0x31d3cb);const _0x44a39d=this['bindTemplate'],_0xa0808d=new _0x9857a7(_0x31d3cb),_0x2482d4=new _0x9857a7(_0x31d3cb);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',(_0x55cec4,_0x311778)=>_0x55cec4&&_0x311778>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2da7b4,_0x1cb613,_0x448cb0,_0x3ab322)=>{if(!_0x2da7b4)return g(_0x31d3cb,'Loading...');if(!_0x448cb0)return g(_0x31d3cb,'No\x20changes');const _0x2545b5=g(_0x31d3cb,'NUMBER_OF_CHANGES',_0x448cb0);return _0x3ab322?g(_0x31d3cb,'X_OF_Y_CHANGES',[_0x1cb613+0x1,_0x448cb0]):_0x2545b5;}),_0xa0808d['set']({'label':g(_0x31d3cb,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x183156}),_0x2482d4['set']({'label':g(_0x31d3cb,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5debcc}),_0xa0808d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2482d4['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xa0808d['on']('execute',()=>this['fire']('execute','backward')),_0x2482d4['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',_0x44a39d['if']('_isStatusLabelVisible','ck-hidden',_0x2c869c=>!_0x2c869c)]},'children':[{'text':_0x44a39d['to']('isNavigationMode',_0x4f7a70=>_0x4f7a70?g(_0x31d3cb,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x31d3cb,'Total')+':\x20')}]},{'text':_0x44a39d['to']('_statusText')}]},new _0x354a4f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xa0808d,_0x2482d4]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x156834{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x38c69d=this['editor']['editing']['view'];_0x38c69d['change'](_0x1fade9=>{for(const _0x224f56 of _0x38c69d['document']['roots'])_0x1fade9['addClass'](ce,_0x224f56);});}['hide'](){const _0x5bf199=this['editor']['editing']['view'];_0x5bf199['change'](_0x2a76b4=>{for(const _0x117a92 of _0x5bf199['document']['roots'])_0x2a76b4['removeClass'](ce,_0x117a92);});}}class R extends _0x156834{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x24222f=this['editor'],_0x496cd2=_0x24222f['plugins']['get'](m),_0x22b510=_0x24222f['plugins']['get'](le);_0x24222f['ui']['componentFactory']['add']('exitToEditing',_0x15afe2=>{const _0x5e823f=new _0x9857a7(_0x15afe2);return _0x5e823f['set']({'label':g(_0x15afe2,'Back\x20to\x20editing'),'icon':_0x5533ee,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5e823f,'execute',()=>{_0x24222f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5e823f;}),_0x24222f['ui']['componentFactory']['add']('restoreRevision',_0x433580=>{const _0x49a7f3=new _0x9857a7(_0x433580);return _0x49a7f3['set']({'label':g(_0x433580,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x49a7f3['bind']('isEnabled')['to'](_0x24222f['commands']['get']('restoreRevision')),this['listenTo'](_0x49a7f3,'execute',()=>_0x24222f['execute']('restoreRevision')),_0x49a7f3;}),_0x24222f['ui']['componentFactory']['add']('changesNavigation',_0xcfb5cb=>{const _0x280b5e=new _i(_0xcfb5cb),_0xbf63ab=_0x24222f['commands']['get']('showPreviousChange'),_0x4607b2=_0x24222f['commands']['get']('showNextChange');return _0x280b5e['bind']('isBackwardNavigationEnabled')['to'](_0xbf63ab,'isEnabled'),_0x280b5e['bind']('isForwardNavigationEnabled')['to'](_0x4607b2,'isEnabled'),_0x280b5e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x496cd2),this['listenTo'](_0x280b5e,'execute',(_0xe787ca,_0x51406b)=>{_0x24222f['execute']('forward'===_0x51406b?'showNextChange':'showPreviousChange');}),_0x280b5e;}),_0x22b510['show'](),_0x496cd2['on']('change:isReady',(_0x23a9e3,_0x16e56b,_0xc8ff2a)=>{_0xc8ff2a?_0x22b510['hide']():_0x22b510['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x8d2973,_0x25d68b){super(_0x8d2973,_0x25d68b);const _0xeebf26=this['bindTemplate'];this['set']({'label':g(_0x8d2973,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x8d2973,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xeebf26['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x284695=this['fieldView']['element'];this['_tooltipString']=_0x284695['scrollWidth']>_0x284695['clientWidth']&&_0x284695['value']||'';}}class oi extends _0x2cb964{constructor(_0x50f719,_0x333425,_0x49f369){super(_0x50f719);const _0x3d1ac0=new _0x502b31();_0x3d1ac0['set']({'content':_0x419668,'viewBox':'0\x200\x2011\x2010'});const _0x114fce=['ck','ck-revision-history-sidebar__revision-author'];_0x49f369&&_0x114fce['push']('ck-revision-history-sidebar__revision-author_creator');const _0x470f47=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x50f719,_0x49f369?'Revision\x20creator':'Revision\x20author')},'children':[_0x3d1ac0,_0x333425['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x114fce},'children':_0x470f47});}}function ni(_0x3cc3b4,_0x49a11b){const _0x4f2fc0=_0x3cc3b4['bindTemplate'],_0xffbe35=_0x3cc3b4['locale'],_0x1d366f=_0x3a34e7(_0xffbe35);_0x1d366f['panelPosition']='sw';const _0x154b13=function(_0x5d8849,_0x380c42){const _0x113c3a=function(_0x3187e8,_0x5abcd7){const _0x37fc58=_0x3187e8['locale'],_0x44343f={'Compare\x20against\x20selected':g(_0x37fc58,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x37fc58,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x37fc58,'Restore\x20this\x20revision')};return _0x5abcd7['map'](_0x45a07b=>{const _0x26d3fb=_0x44343f[_0x45a07b['name']];return _0x26d3fb&&_0x26d3fb!==_0x45a07b['name']&&(_0x45a07b['name']=_0x26d3fb),_0x45a07b;});}(_0x5d8849,_0x380c42),_0x4938cb=new _0x4cc644();for(const _0x3c12fc of _0x113c3a){const _0x2adc42={'type':'button','model':new to({'label':_0x3c12fc['name'],'class':_0x3c12fc['class'],'withText':!0x0,'role':'menuitem','_action':_0x3c12fc['action']})};_0x2adc42['model']['bind']('isEnabled')['to'](_0x5d8849,'isActionsDropdownOpen',_0x5f1ed9=>'function'!=typeof _0x3c12fc['isEnabled']||(!_0x5f1ed9||_0x3c12fc['isEnabled'](_0x5d8849))),_0x4938cb['add'](_0x2adc42);}return _0x4938cb;}(_0x3cc3b4,_0x49a11b);return _0x3cc3b4['bind']('isActionsDropdownOpen')['to'](_0x1d366f,'isOpen'),_0x1d366f['buttonView']['set']({'label':g(_0xffbe35,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x351c46}),_0x1d366f['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4f2fc0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4f2fc0['to'](_0xdc477f=>_0xdc477f['stopPropagation']())}}),_0x1d366f['on']('execute',_0xb00b5d=>{_0x3cc3b4['isReady']&&'function'==typeof _0xb00b5d['source']['_action']&&_0xb00b5d['source']['_action'](_0x3cc3b4);}),_0x1dd5d5(_0x1d366f,_0x154b13,{'role':'menu'}),_0x1d366f['listenTo'](_0x3cc3b4,'change:isActionsDropdownOpen',(_0x5764c1,_0x208881,_0x53b6e9)=>{if(_0x53b6e9)for(const _0x2de8f3 of _0x1d366f['listView']['items']){const _0x103e8f=_0x2de8f3['children']['first'],_0x3c3fdd=_0x49a11b['find'](_0x2f534e=>_0x2f534e['action']===_0x103e8f['_action'])['isVisible'];_0x2de8f3['isVisible']=void 0x0===_0x3c3fdd||_0x3c3fdd(_0x3cc3b4);}}),_0x1d366f;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xc597a8(_0x2cb964){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x23506b,_0x2f935f,_0x3d8151,_0x3cc86c){super(_0x23506b);const _0x51eacf=this['bindTemplate'],_0x6988da=function(_0x3f856f,_0x384f32){const _0x36d900=Array['from'](_0x384f32['authors'])['filter'](_0x518fcd=>_0x518fcd!=_0x384f32['creator']);return _0x384f32['creator']&&_0x36d900['unshift'](_0x384f32['creator']),_0x36d900['map'](_0x44a3fb=>new oi(_0x3f856f,_0x44a3fb,_0x44a3fb==_0x384f32['creator']));}(_0x23506b,_0x2f935f);this['id']=_0x2f935f['id'],this['_revision']=_0x2f935f,this['_requireRevisionName']=_0x3cc86c,this['bind']('name','createdAt')['to'](_0x2f935f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4a51b5=>{return _0x97f7a6=_0x23506b['uiLanguage'],(_0x4e8133=_0x4a51b5)['toLocaleDateString'](_0x97f7a6,{'month':'long','day':'numeric'})+',\x20'+_0x4e8133['toLocaleTimeString'](_0x97f7a6,{'hour':'numeric','minute':'numeric'});var _0x97f7a6,_0x4e8133;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x23506b,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x42072a=>_0x42072a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x58ea77,_0x4041ec)=>_0x58ea77&&_0x4041ec),this['revisionActionsView']=_0x3d8151&&_0x3d8151['length']?ni(this,_0x3d8151):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x51eacf['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x51eacf['if']('isEnabled','ck-disabled',_0x395249=>!_0x395249),_0x51eacf['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x51eacf['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x51eacf['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':_0x51eacf['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':_0x6988da}]},this['revisionActionsView']],'on':{'click':_0x51eacf['to'](_0x11d3c8=>{_0x11d3c8['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x9ae661=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x9ae661,'change',()=>{this['_requireRevisionName']&&!_0x9ae661['value']||this['fire']('setName',{'id':this['id'],'name':_0x9ae661['value']}),_0x9ae661['value']||(_0x9ae661['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x3c0d27,_0x4b466d){const _0x54b034=_0x2a97cf['fromJSDate'](_0x3c0d27)['setLocale'](_0x4b466d),_0x234e32=_0x2a97cf['local'](),_0x3e59d7=_0x234e32['minus']({'days':0x1})['startOf']('day');let _0x1af682,_0x4fcacd;return _0x54b034['hasSame'](_0x234e32,'day')?(_0x1af682=_0x54b034['startOf']('day')['toJSDate'](),_0x4fcacd=_0x54b034['toRelativeCalendar']()):_0x54b034['hasSame'](_0x3e59d7,'day')?(_0x1af682=_0x3e59d7['toJSDate'](),_0x4fcacd=_0x54b034['toRelativeCalendar']()):_0x54b034['hasSame'](_0x234e32,'week')?(_0x1af682=_0x54b034['startOf']('week')['toJSDate'](),_0x4fcacd=_0x54b034['weekdayLong']||''):_0x54b034['hasSame'](_0x234e32,'year')?(_0x1af682=_0x54b034['startOf']('month')['toJSDate'](),_0x4fcacd=_0x54b034['monthLong']||''):(_0x1af682=_0x54b034['startOf']('year')['toJSDate'](),_0x4fcacd=String(_0x54b034['year'])),{'startDate':_0x1af682,'localizedPeriodName':_0x4fcacd};}class mi extends _0x2cb964{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3a645f,_0x5afb08,_0x47aafa,_0x31d833){super(_0x3a645f);const _0x5f27e8=vi(_0x5afb08,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5afb08,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x47aafa,this['_requireRevisionName']=_0x31d833,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':_0x5f27e8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x87cb05){const _0x16def7=new ai(this['locale'],_0x87cb05,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x16def7);}['removeRevision'](_0x8763b0){const _0x1c2097=this['revisionViews']['find'](_0x1c785c=>_0x1c785c['id']===_0x8763b0['id']);this['revisionViews']['remove'](_0x1c2097);}}class as extends _0x2cb964{constructor(_0x5d864f){super(_0x5d864f);const _0x31e1d4=new _0x502b31();_0x31e1d4['content']=_0x5cdd2b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x31e1d4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x5d864f,'Revision\x20history')]}]});}}class di extends _0x2cb964{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2958fa,_0x27769b,_0x4f8fd3,_0x36b508){super(_0x2958fa);const _0x230520=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x27769b,this['_revisionActions']=_0x4f8fd3,this['_requireRevisionName']=_0x36b508,this['on']('select',(_0x54bd66,_0x31d767)=>{this['fire']('revisionSelected',_0x31d767);}),this['on']('setName',(_0x14979d,_0x4058e5)=>{this['fire']('revisionSetName',_0x4058e5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2958fa),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x230520['if']('isEnabled','ck-disabled',_0x1d2171=>!_0x1d2171)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x38dc57 of this['_revisions'])this['_addRevision'](_0x38dc57);this['_revisions']['on']('add',(_0x12f13d,_0x5b7959)=>{this['_addRevision'](_0x5b7959);}),this['_revisions']['on']('remove',(_0x45a6bc,_0xd395c3)=>{this['_removeRevision'](_0xd395c3);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x255531=>_0x255531['revisionViews']['map'](_0x251749=>_0x251749))['flat']();}['selectRevision'](_0x21c59a){for(const _0x398740 of this['revisionViews'])_0x21c59a&&_0x21c59a['id']===_0x398740['id']?_0x398740['select']():_0x398740['deselect']();}['highlightRevisions'](_0x28751c){for(const _0x423d9a of this['revisionViews'])_0x28751c['some'](({id:_0x650d5f})=>_0x650d5f===_0x423d9a['id'])?_0x423d9a['highlight']():_0x423d9a['unhighlight']();}['_addRevision'](_0x1c872d){const _0x2b2733=vi(_0x1c872d['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x476c12=this['timePeriodViews']['get'](0x0);_0x476c12&&_0x476c12['startDate']['getTime']()===_0x2b2733['getTime']()||(_0x476c12=new mi(this['locale'],_0x2b2733,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x476c12)),_0x476c12['addRevision'](_0x1c872d);}['_removeRevision'](_0x570373){const _0x13a745=vi(_0x570373['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x13a745)['removeRevision'](_0x570373);}['_getTimePeriodViewByStartDate'](_0x2eda59){return this['timePeriodViews']['find'](_0x4ce93e=>_0x4ce93e['startDate']['getTime']()===_0x2eda59['getTime']());}}class d extends _0x156834{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x43490c(_0x5d0ace){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x460b2a,_0x4070b3){super(_0x4070b3),this['sourceElement']=_0x460b2a,this['model']['document']['createRoot']();const _0x38228c=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x38228c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x17505e,_0x19c9f0){const _0x40afa0=new this(_0x17505e,_0x19c9f0);return await _0x40afa0['initPlugins'](),await _0x40afa0['ui']['init'](_0x17505e),await _0x40afa0['data']['init'](_0x40afa0['config']['get']('initialData')||''),_0x40afa0['fire']('ready'),_0x40afa0;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x53ef20{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6ac57d){function _0x23764e(_0x8301cc){return _0x8301cc['map'](_0x392eda=>String['fromCharCode'](_0x392eda))['join']('');}super(_0x6ac57d),this['result']='end',_0x6ac57d[_0x23764e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23764e([0x76,0x69,0x65,0x77])][_0x23764e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23764e([0x61,0x75,0x74,0x6f]),_0x6ac57d[_0x23764e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x23764e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23764e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x23764e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x23764e([0x6f,0x6b])});}}class k extends _0x53ef20{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x21d3d0){if(super(_0x21d3d0),!this['editor']['config']['get']('revisionHistory'))throw new _0x21afe5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x188582=>this['_showRevisionViewer']({..._0x188582,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5483d3=>this['_closeRevisionViewer'](_0x5483d3)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5bec85=>this['_restoreRevision'](_0x5bec85)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x31fded){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x31fded;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5e58c1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5e58c1);}['getRevision'](_0x45afc5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x45afc5);}['getRevisions'](_0x3aeb79){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3aeb79||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4511ef=this['editor'],_0x1b6f9a=_0x5c11ef(_0x4511ef,p),_0x5c15ef=_0x4511ef['plugins']['get']('RevisionTracker'),_0x492100=_0x4511ef['plugins']['get']('Users')['users'];return _0x1b6f9a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1b6f9a['lazyRoots'],(_0x1b6f9a['plugins']['push'](_t,m,R,class extends _0x53ef20{static get['requires'](){return[m,'Users'];}['init'](){const _0x58dbde=this['editor']['plugins']['get']('Users');for(const _0x4063bf of _0x492100)_0x4063bf['isAnonymous']||_0x58dbde['getUser'](_0x4063bf['id'])||_0x58dbde['addUser'](_0x4063bf);const _0x178224=_0x5c15ef['repository']['getRevisions']();let _0x5d6622=null;const _0x157b6f=this['editor']['plugins']['get']('RevisionViewer');_0x157b6f['adapter']=_0x5c15ef['adapter'],_0x157b6f['bind']('isEnabled')['to'](_0x5c15ef),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4511ef,'isReadOnly',_0x5046e7=>!_0x5046e7);for(const _0x21731a of _0x178224){const _0x5ade7d=null===_0x21731a['creator'];if(_0x5ade7d&&_0x21731a['toVersion']===_0x21731a['fromVersion'])continue;const _0x5a4bf0=_0x21731a['toJSON']();_0x157b6f['addRevisionData'](_0x5a4bf0,(_0x13e0d3,_0x1eb789,_0x506e4f)=>{if(_0x5ade7d){if(_0x5d6622)_0x5d6622['_update'](_0x13e0d3,_0x1eb789);else{if(!_0x1eb789){const _0x213752=_0x506e4f['toJSON']();_0x213752['id']=_0x2edd7b(),_0x5c15ef['saveRevision'](_0x213752,_0x506e4f['toVersion'])['then'](_0x1a99e0=>{_0x5d6622=_0x1a99e0;});}}}else _0x21731a['_update'](_0x13e0d3,_0x1eb789);});}}},d),_0x1b6f9a);}['_enhanceShowRevisionViewerCallback'](){const _0xd633fe=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x11ce37=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x555b29=this['editor']['plugins']['get']('Autosave');await _0x555b29['save']();}else await _0x11ce37['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xa7894c=this['editor']['plugins']['get']('Dialog');_0xa7894c['isOpen']&&_0xa7894c['hide']();}const _0x163ad5=this['_getRevisionViewerEditorConfig']();return _0xd633fe(_0x163ad5)['then'](_0xecbfa3=>{return(this['_viewerEditor']=_0xecbfa3,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'),_0xecbfa3);})['catch'](_0x375de=>(console['error'](_0x375de),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x89f98a=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'](),_0x89f98a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x40567c=this['editor']['plugins']['get']('Annotations');_0x40567c['refreshVisibility'](),_0x40567c['refreshPositioning']();}})));}['_showRevisionViewer'](_0xcf7567){const _0x3db6d2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x26324e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4d2306=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4d2306,_0xcf7567)['then'](_0x46d0e4=>(_0x26324e['style']['display']='block',_0x3db6d2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x46d0e4));}['_closeRevisionViewer'](_0x1d1e21){const _0x3ae7a4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3ae7a4['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1d1e21['destroy']();}async['_restoreRevision'](_0x11618a){const _0x464a9c=this['editor'],_0x3b409e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x43da9f=_0x464a9c['plugins']['get']('RevisionTracker'),_0x117c32=_0x464a9c['plugins']['get']('RevisionHistoryUtils'),_0x5e4db1=_0x3b409e['repository']['getRevision'](_0x11618a);let _0x4dd87e,_0x259f30,_0x1ef8a3;try{await _0x117c32['loadRevisionData'](_0x5e4db1,this['adapter']),_0x4dd87e=_0x117c32['getRevisionDocumentData'](_0x5e4db1),_0x259f30=_0x117c32['getRevisionRootsAttributes'](_0x5e4db1);}catch(_0x761714){return void console['error'](_0x761714);}_0x464a9c['model']['change'](_0x145f61=>{for(const _0x4ad2b6 of Array['from'](_0x464a9c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x145f61['removeMarker'](_0x4ad2b6);}),_0x3b409e['isReady']=!0x1,_0x464a9c['model']['enqueueChange'](_0xec0a20=>{_0xec0a20['setSelection'](null),_0xec0a20['removeSelectionAttribute'](_0x464a9c['model']['document']['selection']['getAttributeKeys']());const _0x35724f=Object['keys'](_0x4dd87e);for(const _0x5b833d of _0x464a9c['model']['document']['roots'])'$graveyard'!=_0x5b833d['rootName']&&_0x5b833d['isAttached']()&&!_0x35724f['includes'](_0x5b833d['rootName'])&&_0xec0a20['detachRoot'](_0x5b833d);for(const _0x1b81d4 of _0x35724f){let _0x4e134e=_0x464a9c['model']['document']['getRoot'](_0x1b81d4);_0x4e134e&&_0x4e134e['isAttached']()||(_0x4e134e=_0xec0a20['addRoot'](_0x1b81d4));const _0x2d6139=_0x259f30[_0x1b81d4],_0x1a65a2=Object['keys'](_0x2d6139),_0x1c0a86=_0x4dd87e[_0x1b81d4];for(const _0x13ce7e of _0x4e134e['getAttributeKeys']())_0x1a65a2['includes'](_0x13ce7e)||_0xec0a20['removeAttribute'](_0x13ce7e,_0x4e134e);for(const _0x490111 of _0x1a65a2)_0xec0a20['setAttribute'](_0x490111,_0x259f30[_0x1b81d4][_0x490111],_0x4e134e);_0xec0a20['remove'](_0xec0a20['createRangeIn'](_0x4e134e)),_0xec0a20['insert'](_0x464a9c['data']['parse'](_0x1c0a86,_0x4e134e),_0x4e134e,0x0);}});const _0x482f44=g(_0x464a9c['locale'],'Restored');if(_0x5e4db1['name'])_0x1ef8a3=-0x1==_0x5e4db1['name']['indexOf'](_0x482f44)?_0x482f44+':\x20'+_0x5e4db1['name']:_0x5e4db1['name'];else _0x1ef8a3=_0x482f44+':\x20'+(_0x5e4db1['createdAt']['toLocaleDateString'](_0x464a9c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5e4db1['createdAt']['toLocaleTimeString'](_0x464a9c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x43da9f['saveRevision']({'name':_0x1ef8a3}),_0x3b409e['isReady']=!0x0,_0x464a9c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x435b00){super(_0x435b00),this['_revisionViewer']=_0x435b00['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x37b1b2=this['_revisionsRepository']['_revisions'],_0x5a6f78=this['_createRevisionActions'](),_0x530eda=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x37b1b2,_0x5a6f78,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',(_0x2cacdf,_0x322724)=>{_0x322724['revisionViews']['on']('add',(_0x2b8dd3,_0xe7a84e)=>{_0xe7a84e['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)),_0x530eda['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x166199=this['_revisionsRepository']['getRevision'](0x0);if(_0x166199){const _0xbe8e8e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x166199['id']);this['_revisionViewer']['compare'](_0x166199,_0xbe8e8e);}}['_handleRevisionSelected'](_0x34a903,_0x126591){const _0x57d16e=this['_revisionsRepository']['getRevision'](_0x126591['id']),_0x521159=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x57d16e['id']);this['_revisionViewer']['compare'](_0x57d16e,_0x521159);}['_handleRevisionSetName'](_0xcf5dad,_0x35661a){this['_revisionsRepository']['getRevision'](_0x35661a['id'])['setName'](_0x35661a['name']);}['_handleDiffChange'](_0x391237,_0x162422,_0x1dd982){const _0x4de6d7=this['_revisionsRepository']['getRevisionsInDiff'](_0x1dd982);_0x4de6d7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4de6d7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4de6d7[0x0]));}['_createRevisionActions'](){const _0x10ef0e=this['editor'],_0xddadd2=d['availableRevisionActions'],_0x2b5cb2=_0x10ef0e['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x2b5cb2['length'])return _0x2b5cb2['map'](_0x17b0fd=>{const _0x4f0cd6='string'==typeof _0x17b0fd?Object['assign']({},_0xddadd2[_0x17b0fd]):_0x17b0fd;return _0x4f0cd6['action']=_0x4f0cd6['action']['bind'](this,_0x10ef0e),_0x4f0cd6['isVisible']&&(_0x4f0cd6['isVisible']=_0x4f0cd6['isVisible']['bind'](this,_0x10ef0e)),_0x4f0cd6;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4bda28},_0x172c37)=>{const _0x52e04d=_0x4bda28['get'](m),_0x7ab5f9=_0x52e04d['repository'];let _0x40688f=_0x52e04d['diff']['newRevisionId'],_0x3fd429=_0x172c37['id'];_0x7ab5f9['getIndex'](_0x40688f)>_0x7ab5f9['getIndex'](_0x3fd429)&&([_0x40688f,_0x3fd429]=[_0x3fd429,_0x40688f]),_0x52e04d['compare'](_0x40688f,_0x3fd429);},'isVisible':({plugins:_0x5ec947},_0x59f62a)=>{const _0x441c6c=_0x5ec947['get'](m);return!(_0x441c6c['repository']['getRevisionsInDiff'](_0x441c6c['diff'])['length']>0x2)&&!_0x59f62a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x503599,{id:_0xc462fc})=>{_0x503599['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xc462fc);},'isVisible':({plugins:_0x16fb7a},_0x34ca02)=>!!_0x16fb7a['get'](m)['repository']['getLaterVisibleRevision'](_0x34ca02['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x15e22a},{id:_0x1c4d34,revisionNameView:_0x1abbd7})=>{const _0x2b1c4d=_0x15e22a['get'](m),_0x2692f7=_0x2b1c4d['repository']['getEarlierVisibleRevision'](_0x1c4d34);_0x2b1c4d['compare'](_0x1c4d34,_0x2692f7),_0x1abbd7['focus'](),_0x1abbd7['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3a3f3c,_0x5f1c10){super(_0x3a3f3c),this['_view']=_0x5f1c10,this['_toolbarConfig']=et(_0x3a3f3c['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x30b508){const _0x177eb7=this['editor'],_0x3ac973=this['view'],_0x317ba7=_0x177eb7['editing']['view'],_0x4bcb43=_0x3ac973['editable'],_0x148f69=_0x317ba7['document']['getRoot']();_0x4bcb43['name']=_0x148f69['rootName'],_0x3ac973['render']();const _0x9f7c4f=_0x4bcb43['element'];this['setEditableElement'](_0x4bcb43['name'],_0x9f7c4f),_0x3ac973['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x317ba7['attachDomRoot'](_0x9f7c4f),this['_elementReplacer']['replace'](_0x30b508,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x30e05c=this['view'],_0x5dc84d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5dc84d['detachDomRoot'](_0x30e05c['editable']['name']),_0x30e05c['destroy']();}['_initToolbar'](){const _0x863df6=this['view'];_0x863df6['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x863df6['stickyPanel']['limiterElement']=_0x863df6['element'],_0x863df6['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5975ac})=>_0x5975ac),_0x863df6['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x863df6['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x39b605,_0x4e2171,_0x292a65={}){super(_0x39b605),this['stickyPanel']=new ht(_0x39b605),this['toolbar']=new dt(_0x39b605,{'shouldGroupWhenFull':_0x292a65['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x39b605,_0x4e2171);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x40fadd(_0x1ed093){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x16ede7,_0x1ce30c){super(_0x1ce30c),this['sourceElement']=_0x16ede7,this['model']['document']['createRoot']();const _0x55f170=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x55f170);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x562f6a,_0x31a075){const _0x945306=new this(_0x562f6a,_0x31a075);return await _0x945306['initPlugins'](),await _0x945306['ui']['init'](_0x562f6a),await _0x945306['data']['init'](_0x945306['config']['get']('initialData')||''),_0x945306['fire']('ready'),_0x945306;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x156834{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14cae0){function _0x3c83b9(_0x2977fd){return _0x2977fd['map'](_0xb88c1e=>String['fromCharCode'](_0xb88c1e))['join']('');}super(_0x14cae0),this['result']='end',_0x14cae0[_0x3c83b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c83b9([0x76,0x69,0x65,0x77])][_0x3c83b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c83b9([0x61,0x75,0x74,0x6f]),_0x14cae0[_0x3c83b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3c83b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c83b9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3c83b9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3c83b9([0x6f,0x6b])});}}class k extends _0x156834{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4e4d36){if(super(_0x4e4d36),!this['editor']['config']['get']('revisionHistory'))throw new _0x4cce17('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x472fd6=>this['_showRevisionViewer']({..._0x472fd6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x38bb0c=>this['_closeRevisionViewer'](_0x38bb0c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x49cd91=>this['_restoreRevision'](_0x49cd91)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x594066){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x594066;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xc76708){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xc76708);}['getRevision'](_0x317a52){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x317a52);}['getRevisions'](_0x481fe6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x481fe6||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x235454=this['editor'],_0x1de04e=_0x3e03d9(_0x235454,p),_0x4c49d0=_0x235454['plugins']['get']('RevisionTracker'),_0x157b8c=_0x235454['plugins']['get']('Users')['users'];return _0x1de04e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1de04e['lazyRoots'],(_0x1de04e['plugins']['push'](yt,m,R,class extends _0x156834{static get['requires'](){return[m,'Users'];}['init'](){const _0x7c8e61=this['editor']['plugins']['get']('Users');for(const _0x53cbde of _0x157b8c)_0x53cbde['isAnonymous']||_0x7c8e61['getUser'](_0x53cbde['id'])||_0x7c8e61['addUser'](_0x53cbde);const _0x3aeded=_0x4c49d0['repository']['getRevisions']();let _0x20ee05=null;const _0x1405e3=this['editor']['plugins']['get']('RevisionViewer');_0x1405e3['adapter']=_0x4c49d0['adapter'],_0x1405e3['bind']('isEnabled')['to'](_0x4c49d0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x235454,'isReadOnly',_0xc19d0d=>!_0xc19d0d);for(const _0x5977bb of _0x3aeded){const _0x216ae3=null===_0x5977bb['creator'];if(_0x216ae3&&_0x5977bb['toVersion']===_0x5977bb['fromVersion'])continue;const _0x1c638e=_0x5977bb['toJSON']();_0x1405e3['addRevisionData'](_0x1c638e,(_0x2f2410,_0x25091a,_0x3a80bf)=>{if(_0x216ae3){if(_0x20ee05)_0x20ee05['_update'](_0x2f2410,_0x25091a);else{if(!_0x25091a){const _0x5dc712=_0x3a80bf['toJSON']();_0x5dc712['id']=_0x32ff0a(),_0x4c49d0['saveRevision'](_0x5dc712,_0x3a80bf['toVersion'])['then'](_0x3ce270=>{_0x20ee05=_0x3ce270;});}}}else _0x5977bb['_update'](_0x2f2410,_0x25091a);});}}},d),_0x1de04e);}['_enhanceShowRevisionViewerCallback'](){const _0x302ec2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3195e3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4bcf58=this['editor']['plugins']['get']('Autosave');await _0x4bcf58['save']();}else await _0x3195e3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x19ff68=this['editor']['plugins']['get']('Dialog');_0x19ff68['isOpen']&&_0x19ff68['hide']();}const _0x27b229=this['_getRevisionViewerEditorConfig']();return _0x302ec2(_0x27b229)['then'](_0x4c8bac=>{return(this['_viewerEditor']=_0x4c8bac,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'),_0x4c8bac);})['catch'](_0x3687a4=>(console['error'](_0x3687a4),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x299734=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'](),_0x299734(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xf3417d=this['editor']['plugins']['get']('Annotations');_0xf3417d['refreshVisibility'](),_0xf3417d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5668b7){const _0x528bea=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4e4ecf=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1f2742=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1f2742,_0x5668b7)['then'](_0x3d09ba=>(_0x4e4ecf['style']['display']='block',_0x528bea['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3d09ba));}['_closeRevisionViewer'](_0xb5f117){const _0x411c26=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x411c26['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0xb5f117['destroy']();}async['_restoreRevision'](_0x5efd2f){const _0x247bfa=this['editor'],_0xec6e81=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5388db=_0x247bfa['plugins']['get']('RevisionTracker'),_0xb97e14=_0x247bfa['plugins']['get']('RevisionHistoryUtils'),_0x4a8d02=_0xec6e81['repository']['getRevision'](_0x5efd2f);let _0x47efc7,_0x28efd2,_0x3d39b4;try{await _0xb97e14['loadRevisionData'](_0x4a8d02,this['adapter']),_0x47efc7=_0xb97e14['getRevisionDocumentData'](_0x4a8d02),_0x28efd2=_0xb97e14['getRevisionRootsAttributes'](_0x4a8d02);}catch(_0x56b848){return void console['error'](_0x56b848);}_0x247bfa['model']['change'](_0x50a9ef=>{for(const _0x2c3cdb of Array['from'](_0x247bfa['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x50a9ef['removeMarker'](_0x2c3cdb);}),_0xec6e81['isReady']=!0x1,_0x247bfa['model']['enqueueChange'](_0x2d1d60=>{_0x2d1d60['setSelection'](null),_0x2d1d60['removeSelectionAttribute'](_0x247bfa['model']['document']['selection']['getAttributeKeys']());const _0x40e818=Object['keys'](_0x47efc7);for(const _0xddf05e of _0x247bfa['model']['document']['roots'])'$graveyard'!=_0xddf05e['rootName']&&_0xddf05e['isAttached']()&&!_0x40e818['includes'](_0xddf05e['rootName'])&&_0x2d1d60['detachRoot'](_0xddf05e);for(const _0x434200 of _0x40e818){let _0xc0e6ef=_0x247bfa['model']['document']['getRoot'](_0x434200);_0xc0e6ef&&_0xc0e6ef['isAttached']()||(_0xc0e6ef=_0x2d1d60['addRoot'](_0x434200));const _0x338968=_0x28efd2[_0x434200],_0x253b5d=Object['keys'](_0x338968),_0x1a0448=_0x47efc7[_0x434200];for(const _0x416384 of _0xc0e6ef['getAttributeKeys']())_0x253b5d['includes'](_0x416384)||_0x2d1d60['removeAttribute'](_0x416384,_0xc0e6ef);for(const _0x3dcac5 of _0x253b5d)_0x2d1d60['setAttribute'](_0x3dcac5,_0x28efd2[_0x434200][_0x3dcac5],_0xc0e6ef);_0x2d1d60['remove'](_0x2d1d60['createRangeIn'](_0xc0e6ef)),_0x2d1d60['insert'](_0x247bfa['data']['parse'](_0x1a0448,_0xc0e6ef),_0xc0e6ef,0x0);}});const _0x1c6674=g(_0x247bfa['locale'],'Restored');if(_0x4a8d02['name'])_0x3d39b4=-0x1==_0x4a8d02['name']['indexOf'](_0x1c6674)?_0x1c6674+':\x20'+_0x4a8d02['name']:_0x4a8d02['name'];else _0x3d39b4=_0x1c6674+':\x20'+(_0x4a8d02['createdAt']['toLocaleDateString'](_0x247bfa['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4a8d02['createdAt']['toLocaleTimeString'](_0x247bfa['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5388db['saveRevision']({'name':_0x3d39b4}),_0xec6e81['isReady']=!0x0,_0x247bfa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|