@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250426.0 → 0.0.0-nightly-20250427.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
|
-
_0x3787d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2e20bf){super(),this['id']=_0x2e20bf['id']||_0x2c0587(),this['creator']=_0x2e20bf['creator']||null,this['authors']=_0x2e20bf['authors']||[],this['diffData']=_0x2e20bf['diffData']||null,this['toVersion']=_0x2e20bf['toVersion']||0x0,this['fromVersion']=_0x2e20bf['fromVersion']||0x0,this['set']('name',_0x2e20bf['name']||''),this['set']('createdAt',_0x2e20bf['createdAt']||new Date()),this['set']('attributes',_0x2e20bf['attributes']||{});}['setName'](_0x2ec64d){this['_update']({'name':_0x2ec64d});}['setAttribute'](_0x3ac0f0,_0x190a3c){const _0x29d941=_0x45cab9(this['attributes']);_0x5e9a30(_0x29d941,_0x3ac0f0,_0x190a3c),this['_update']({'attributes':_0x29d941});}['removeAttribute'](_0x2f81b2){const _0x5845f6=_0x45cab9(this['attributes']);_0x383a2e(_0x5845f6,_0x2f81b2),this['_update']({'attributes':_0x5845f6});}['_update'](_0x57dcbe,_0x37325b=!0x1){let _0x294aba=!0x1;const _0x521d4e={'id':this['id']},_0x3fa6dc=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x46acd3 of _0x3fa6dc){const _0x54a2a2=_0x57dcbe[_0x46acd3];void 0x0!==_0x54a2a2&&_0x54a2a2!==this[_0x46acd3]&&(this[_0x46acd3]=_0x54a2a2,_0x521d4e[_0x46acd3]=_0x54a2a2,_0x294aba=!0x0);}_0x294aba&&(_0x521d4e['authors']&&(_0x521d4e['authorsIds']=_0x521d4e['authors']['map'](_0x5c8080=>_0x5c8080['id']),delete _0x521d4e['authors']),this['fire']('_update',_0x521d4e,_0x37325b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x42fe38=>_0x42fe38['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x59ac4e{['_revisions'];static get['requires'](){return[_0x513552];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x63e003){super(_0x63e003),this['_revisions']=new _0x18d259();}['afterInit'](){!async function(_0x11daed){const _0x14bfe9=_0x5a40c3([0x74,0x30,0x68,0x32,0x6b,0x46,0x56,0x43,0x35,0x63,0x67,0x47,0x65,0x36,0x57,0x75,0x6f,0x66,0x72,0x77,0x4a,0x38,0x61,0x6c,0x52,0x6a,0x73,0x45,0x51,0x39,0x53,0x34,0x59,0x4b,0x78,0x49,0x71,0x70,0x58,0x55,0x4d,0x4c,0x44,0x7a,0x50,0x62,0x6e,0x4f,0x31,0x76,0x48,0x79,0x69,0x42,0x64,0x54,0x4e,0x37,0x41,0x6d,0x33,0x5a]),_0x1a6d14=0xeb829,_0x700eb0=0x2e26ea4c,_0x4c6473=0x2e218c6c^_0x700eb0,_0x4eeb3a=window[_0x5a40c3([0x44,0x61,0x74,0x65])][_0x5a40c3([0x6e,0x6f,0x77])](),_0x1d4318=_0x11daed[_0x5a40c3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e41cf=new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44c3ed=>{_0x1d4318[_0x5a40c3([0x6f,0x6e,0x63,0x65])](_0x5a40c3([0x72,0x65,0x61,0x64,0x79]),_0x44c3ed);}),_0x525834={[_0x5a40c3([0x6b,0x74,0x79])]:_0x5a40c3([0x45,0x43]),[_0x5a40c3([0x75,0x73,0x65])]:_0x5a40c3([0x73,0x69,0x67]),[_0x5a40c3([0x63,0x72,0x76])]:_0x5a40c3([0x50,0x2d,0x32,0x35,0x36]),[_0x5a40c3([0x78])]:_0x5a40c3([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]),[_0x5a40c3([0x79])]:_0x5a40c3([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]),[_0x5a40c3([0x61,0x6c,0x67])]:_0x5a40c3([0x45,0x53,0x32,0x35,0x36])},_0x48d95b=_0x1d4318[_0x5a40c3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a40c3([0x67,0x65,0x74])](_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c2ebb(){let _0x4e5bef,_0x4377e1=null,_0x4c9f2b=null;try{if(_0x48d95b==_0x5a40c3([0x47,0x50,0x4c]))return _0x5a40c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e5bef=_0x3af019(),!_0x4e5bef)return _0x5a40c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e5bef[_0x5a40c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c9f2b=_0x26cbcf(_0x4e5bef[_0x5a40c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e5bef[_0x5a40c3([0x6a,0x74,0x69])])),await _0x295017()?_0x5ce939()?_0x571fca()?_0x5a40c3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c6a38()?(_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a40c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4377e1=_0xaab836(_0x5a40c3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a40c3([0x74,0x72,0x69,0x61,0x6c])&&(_0x4377e1=_0xaab836(_0x5a40c3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28f844()):_0x5a40c3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a40c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a40c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x23ba50){return _0x5a40c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x571fca(){const _0x46428c=[_0x5a40c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a40c3([0x74,0x72,0x69,0x61,0x6c])][_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4eeb3a/0x3e8:0xe10*_0x4c6473;return _0x4e5bef[_0x5a40c3([0x65,0x78,0x70])]<_0x46428c;}function _0x5ce939(){const _0x3ec8ce=_0x4e5bef[_0x5a40c3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ec8ce)return!0x1;if(_0x3ec8ce[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x2a])))return!0x0;if(_0x3ec8ce[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x52,0x48])))return!0x0;if(_0x3ec8ce[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x52,0x52,0x48]))){if(_0x21f432())return!0x0;if(_0x2dc49e()||_0x9b6099())return!0x0;}return!0x1;}function _0x1c6a38(){const _0x453b40=_0x4e5bef[_0x5a40c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x453b40||0x0==_0x453b40[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ca2f6}=new URL(window[_0x5a40c3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x453b40[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ca2f6))return!0x0;const _0x1e5be4=_0x3ca2f6[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e]));return _0x453b40[_0x5a40c3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c0546=>_0x1c0546[_0x5a40c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a40c3([0x2a])))[_0x5a40c3([0x6d,0x61,0x70])](_0x41180c=>_0x41180c[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e])))[_0x5a40c3([0x73,0x6f,0x6d,0x65])](_0x49390e=>_0x1e5be4[_0x5a40c3([0x65,0x76,0x65,0x72,0x79])]((_0x5bf6b2,_0x4266c6)=>_0x49390e[_0x4266c6]===_0x5bf6b2||_0x49390e[_0x4266c6]===_0x5a40c3([0x2a])));}function _0x28f844(){return _0x4377e1&&_0x4c9f2b?new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x480506,_0x28b1f9)=>{_0x4377e1[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x480506,_0x28b1f9),_0x4c9f2b[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x2e76c6=>{_0x2e76c6!=_0x5a40c3([0x56,0x61,0x6c,0x69,0x64])&&_0x480506(_0x2e76c6);},_0x28b1f9);}):_0x4377e1||_0x4c9f2b||_0x5a40c3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26cbcf(_0x6a3639,_0x169251){return new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51ff2f=>{if(_0x54d9e3())return _0x51ff2f(_0x5a40c3([0x56,0x61,0x6c,0x69,0x64]));_0x37b530(),_0x1d4318[_0x5a40c3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a40c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x472f09=!0x1;const _0x16b946=_0x2c0587();function _0x59caf0(_0x4ab85c){return!!_0x4ab85c&&(typeof _0x4ab85c===_0x5a40c3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ab85c===_0x5a40c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ab85c[_0x5a40c3([0x74,0x68,0x65,0x6e])]===_0x5a40c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ab85c[_0x5a40c3([0x63,0x61,0x74,0x63,0x68])]===_0x5a40c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c9a15(_0x30d40b){_0x114209(_0x30d40b)[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x1efdc3=>{if(!_0x1efdc3||_0x1efdc3[_0x5a40c3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a40c3([0x6f,0x6b]))return _0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1813f1(_0x25d60e(_0x16b946+_0x169251))!=_0x1efdc3[_0x5a40c3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a40c3([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x339576=>(_0x5908d7(),_0x339576),()=>{const _0x195ec1=_0x271c34();return null==_0x195ec1?(_0x5908d7(),_0x5a40c3([0x56,0x61,0x6c,0x69,0x64])):_0x5a40c3(_0x4eeb3a-_0x195ec1>(0xa2a6e4c^_0x700eb0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x51ff2f)[_0x5a40c3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51ff2f(_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7e45ad=0x2e1004cc^_0x700eb0;function _0x5908d7(){const _0x2c63cd=_0x5a40c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1813f1(_0x25d60e(_0x6a3639)),_0x36ee26=_0x69073a(_0x1813f1(window[_0x5a40c3([0x4d,0x61,0x74,0x68])][_0x5a40c3([0x63,0x65,0x69,0x6c])](_0x4eeb3a/_0x7e45ad)));window[_0x5a40c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a40c3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c63cd,_0x36ee26);}function _0x271c34(){const _0x3484c1=_0x5a40c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1813f1(_0x25d60e(_0x6a3639)),_0x56f10a=window[_0x5a40c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a40c3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3484c1);return _0x56f10a?window[_0x5a40c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x69073a(_0x56f10a),0x10)*_0x7e45ad:null;}function _0x114209(_0x57cc37){return new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32d812,_0x14ed14)=>{_0x57cc37[_0x5a40c3([0x74,0x68,0x65,0x6e])](_0x32d812,_0x14ed14),window[_0x5a40c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14ed14,0x2e273e8c^_0x700eb0);});}}_0x1d4318[_0x5a40c3([0x6f,0x6e])](_0x5a40c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7ea48e,_0x2db054)=>{if(_0x2db054[0x0]!=_0x6a3639)return _0x51ff2f(_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2db054[0x1]={..._0x2db054[0x1],[_0x5a40c3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16b946};},{[_0x5a40c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a40c3([0x68,0x69,0x67,0x68])}),_0x1d4318[_0x5a40c3([0x6f,0x6e])](_0x5a40c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2717ac=>{_0x59caf0(_0x2717ac[_0x5a40c3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x472f09=!0x0,_0x3c9a15(_0x2717ac[_0x5a40c3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a40c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a40c3([0x6c,0x6f,0x77])}),_0x3e41cf[_0x5a40c3([0x74,0x68,0x65,0x6e])](()=>{_0x472f09||_0x51ff2f(_0x5a40c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54d9e3(){return _0x1d4318[_0x5a40c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a40c3([0x76,0x69,0x65,0x77])][_0x5a40c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a40c3([0x61,0x75,0x74,0x6f]);}function _0x37b530(){_0x1d4318[_0x5a40c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a40c3([0x76,0x69,0x65,0x77])][_0x5a40c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a40c3([0x61,0x75,0x74,0x6f]);}}function _0xaab836(_0x32ae63){const _0x3cde21=[new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59aae8=>setTimeout(_0x59aae8,0x2e2fd480^_0x700eb0)),_0x3e41cf[_0x5a40c3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b32ac=>{const _0x2d925e=0x2e26ea4b^_0x700eb0,_0x53c04c=_0x11daed[_0x5a40c3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x34a2f9(){_0x53c04c[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d925e&&_0x3b32ac();}_0x34a2f9(),_0x53c04c[_0x5a40c3([0x6f,0x6e])](_0x5a40c3([0x61,0x64,0x64]),_0x34a2f9);})),new window[(_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26d693=>{function _0x5dccef(){for(const _0x8509dc in window)if(window[_0x5a40c3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5a40c3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x8509dc))&&window[_0x8509dc]==_0x1a6d14)return _0x26d693();_0x1d4318[_0x5a40c3([0x73,0x74,0x61,0x74,0x65])]!=_0x5a40c3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5a40c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dccef,0x2e26f9c4^_0x700eb0);}_0x2d9d89(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5dccef();})];return window[_0x5a40c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a40c3([0x72,0x61,0x63,0x65])](_0x3cde21)[_0x5a40c3([0x74,0x68,0x65,0x6e])](()=>_0x32ae63);}async function _0x5e2ec8(){if(await _0x3e41cf,_0x2d9d89(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1d7739=_0x11daed[_0x5a40c3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x37577f=_0x11daed[_0x5a40c3([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])](_0x1d7739[_0x5a40c3([0x69,0x64])]),_0x348fb8=_0x468fa5(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x348fb8[_0x5a40c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1d7739['id'],_0x37577f?_0x37577f['id']:null,!0x0),_0x348fb8[_0x5a40c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x348fb8[_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x348fb8[_0x5a40c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5a0127,void(_0x348fb8[_0x5a40c3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5a0127);}if(_0x2d9d89(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x28ef4a=_0x468fa5(_0x5a40c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x28ef4a[_0x5a40c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x28ef4a[_0x5a40c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x28ef4a[_0x5a40c3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5a0127,_0x28ef4a[_0x5a40c3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5a0127;}_0x1d4318[_0x5a40c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a40c3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a0127,_0x1d4318[_0x5a40c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a40c3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a0127,_0x1d4318[_0x5a40c3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a40c3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21f432(){return _0x2d9d89(_0x5a40c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x468fa5(_0x5a40c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a40c3([0x73,0x74,0x61,0x74,0x65])]==_0x5a40c3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2dc49e(){return _0x2d9d89(_0x5a40c3([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 _0x9b6099(){return _0x2d9d89(_0x5a40c3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x53eb14(_0x48068e){const _0xfa5f73=_0xf6259c();_0x1d4318[_0xfa5f73]=_0x5a40c3([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])+_0x48068e,_0x48068e[_0x5a40c3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5a40c3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf6259c()]=_0x1a6d14),_0x48068e!=_0x5a40c3([0x56,0x61,0x6c,0x69,0x64])&&_0x5e2ec8();}function _0xf6259c(){const _0x1ee750=window[_0x5a40c3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a40c3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a40c3([0x6e,0x6f,0x77])]())[_0x5a40c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a40c3([0x2e]),'');let _0x30aed2=_0x5a40c3([0x74]);for(let _0x16c495=0x0;_0x16c495<_0x1ee750[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16c495+=0x2){let _0x213397=window[_0x5a40c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ee750[_0x5a40c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16c495,_0x16c495+0x2));_0x213397>=_0x14bfe9[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x213397-=_0x14bfe9[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30aed2+=_0x14bfe9[_0x213397];}return _0x30aed2;}function _0x3af019(){const _0x35f02e=_0x48d95b[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e]));if(0x3!=_0x35f02e[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x30d4c1(_0x35f02e[0x1]);function _0x30d4c1(_0x21b36e){const _0x13f3a4=_0x56bc21(_0x21b36e);return _0x13f3a4&&_0x3e55d3()?_0x13f3a4:null;function _0x3e55d3(){const _0x277710=_0x13f3a4[_0x5a40c3([0x6a,0x74,0x69])],_0xfe2487=window[_0x5a40c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x277710[_0x5a40c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x277710[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44aafe={..._0x13f3a4,[_0x5a40c3([0x6a,0x74,0x69])]:_0x277710[_0x5a40c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x277710[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44aafe[_0x5a40c3([0x76,0x63])],_0x25d60e(_0x44aafe)==_0xfe2487;}}}async function _0x295017(){let _0x73670f=!0x0;try{const _0xd0d0c2=_0x48d95b[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])](_0x5a40c3([0x2e])),[_0x478bef,_0x4ccb1f,_0x61f1e0]=_0xd0d0c2;return _0x208a95(_0x478bef),await _0x38a7a3(_0x478bef,_0x4ccb1f,_0x61f1e0),_0x73670f;}catch(_0x2f1f0d){return!0x1;}function _0x208a95(_0x52a09f){const _0x1d52de=_0x56bc21(_0x52a09f);_0x1d52de&&_0x1d52de[_0x5a40c3([0x61,0x6c,0x67])]==_0x5a40c3([0x45,0x53,0x32,0x35,0x36])||(_0x73670f=!0x1);}async function _0x38a7a3(_0x2066b4,_0x42424a,_0x27921a){const _0x6b59dc=window[_0x5a40c3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a40c3([0x66,0x72,0x6f,0x6d])](_0x2f27c7(_0x27921a),_0x9710b=>_0x9710b[_0x5a40c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ef8fc=new window[(_0x5a40c3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a40c3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2066b4+_0x5a40c3([0x2e])+_0x42424a),_0x5e401a=window[_0x5a40c3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a40c3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e401a)return;const _0x23e4a7=await _0x5e401a[_0x5a40c3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a40c3([0x6a,0x77,0x6b]),_0x525834,{[_0x5a40c3([0x6e,0x61,0x6d,0x65])]:_0x5a40c3([0x45,0x43,0x44,0x53,0x41]),[_0x5a40c3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a40c3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a40c3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e401a[_0x5a40c3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a40c3([0x6e,0x61,0x6d,0x65])]:_0x5a40c3([0x45,0x43,0x44,0x53,0x41]),[_0x5a40c3([0x68,0x61,0x73,0x68])]:{[_0x5a40c3([0x6e,0x61,0x6d,0x65])]:_0x5a40c3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23e4a7,_0x6b59dc,_0x4ef8fc)||(_0x73670f=!0x1);}}function _0x56bc21(_0x416d8f){return _0x416d8f[_0x5a40c3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a40c3([0x65,0x79]))?JSON[_0x5a40c3([0x70,0x61,0x72,0x73,0x65])](_0x2f27c7(_0x416d8f)):null;}function _0x2f27c7(_0x8141f0){return window[_0x5a40c3([0x61,0x74,0x6f,0x62])](_0x8141f0[_0x5a40c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a40c3([0x2b]))[_0x5a40c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a40c3([0x2f])));}function _0x25d60e(_0x5e0332){let _0x164a8e=0x1505;function _0x1c5b6d(_0x180068){for(let _0x42a599=0x0;_0x42a599<_0x180068[_0x5a40c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42a599++){const _0x15de4a=_0x180068[_0x5a40c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42a599);_0x164a8e=(_0x164a8e<<0x5)+_0x164a8e+_0x15de4a,_0x164a8e&=_0x164a8e;}}function _0x12070d(_0x483e60){Array[_0x5a40c3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x483e60)?_0x483e60[_0x5a40c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12070d):_0x483e60&&typeof _0x483e60==_0x5a40c3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a40c3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x483e60)[_0x5a40c3([0x73,0x6f,0x72,0x74])]()[_0x5a40c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6ad913,_0x3883e0])=>{_0x1c5b6d(_0x6ad913),_0x12070d(_0x3883e0);}):_0x1c5b6d(window[_0x5a40c3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x483e60));}return _0x12070d(_0x5e0332),_0x164a8e>>>0x0;}function _0x1813f1(_0x4e18e7){return _0x4e18e7[_0x5a40c3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a40c3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a40c3([0x30]));}function _0x69073a(_0x4fcbe9){return _0x4fcbe9[_0x5a40c3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a40c3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a40c3([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d9d89(_0x3d90e7){return _0x1d4318[_0x5a40c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a40c3([0x68,0x61,0x73])](_0x3d90e7);}function _0x468fa5(_0x3f9991){return _0x1d4318[_0x5a40c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a40c3([0x67,0x65,0x74])](_0x3f9991);}function _0x5a0127(){}function _0x5a40c3(_0x1a1089){return _0x1a1089['map'](_0x88e028=>String['fromCharCode'](_0x88e028))['join']('');}_0x53eb14(await _0x1c2ebb());}(this);}['createRevision'](_0x1a94b3){const _0x196bf3=this['editor']['plugins']['get']('Users');return new h({'id':_0x1a94b3['id'],'name':_0x1a94b3['name'],'creator':_0x1a94b3['creatorId']?_0x196bf3['getUser'](_0x1a94b3['creatorId']):null,'diffData':_0x1a94b3['diffData']||_0x1a94b3['data'],'authors':_0x1a94b3['authorsIds']['map'](_0x109830=>_0x196bf3['getUser'](_0x109830)),'createdAt':new Date(_0x1a94b3['createdAt']),'attributes':_0x1a94b3['attributes'],'fromVersion':_0x1a94b3['fromVersion'],'toVersion':_0x1a94b3['toVersion']});}['addRevision'](_0x4adcab,_0x2de802=0x0){this['_revisions']['add'](_0x4adcab,_0x2de802);}['getRevision'](_0x44cbbd){return this['_revisions']['get'](_0x44cbbd);}['getRevisions'](_0x3fb0f7={'toJSON':!0x1}){const _0x2a1bb6=Array['from'](this['_revisions']);return _0x2a1bb6['reverse'](),_0x3fb0f7['toJSON']?_0x2a1bb6['map'](_0x448f2b=>_0x448f2b['toJSON']()):_0x2a1bb6;}['getIndex'](_0x328509){return this['_revisions']['getIndex'](_0x328509);}['getEarlierVisibleRevision'](_0xfe1e89){const [,_0xead765]=this['getRevisionsIterator'](_0xfe1e89,{'direction':'earlier'});return _0xead765;}['getLaterVisibleRevision'](_0x4fc04a){const [,_0x12b270]=this['getRevisionsIterator'](_0x4fc04a,{'direction':'later'});return _0x12b270;}['getRevisionsInDiff'](_0x19ae5a){const _0x37a4f3=[];for(const _0x467227 of this['getRevisionsIterator'](_0x19ae5a['newRevisionId']))if(_0x37a4f3['push'](_0x467227),_0x467227['id']===_0x19ae5a['oldRevisionId'])break;return _0x37a4f3;}*['getRevisionsIterator'](_0x3c0bb7,{direction:_0x4c4626='earlier',filter:_0xfad7b8=()=>!0x0}={}){const _0x9ddf62='earlier'===_0x4c4626?0x1:-0x1;let _0x50cc6b=this['_revisions']['get'](_0x3c0bb7),_0x370a02=this['getIndex'](_0x50cc6b);for(yield _0x50cc6b;_0x50cc6b;){if(_0x370a02+=_0x9ddf62,_0x50cc6b=this['getRevision'](_0x370a02),!_0x50cc6b)return;_0xfad7b8(_0x50cc6b)&&(yield _0x50cc6b);}}}class V extends _0x59ac4e{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x20313f,'c'],[_0xe57921,'a'],[_0x3b3679,'e'],[_0x15e205,'r'],[_0x20a68e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x20313f],['a',_0xe57921],['e',_0x3b3679],['r',_0x15e205],['u',_0x20a68e]]);async['loadRevisionData'](_0x3afcf1,_0x285c0f){if(_0x3afcf1['diffData']||!_0x285c0f)return;const _0x15733a=this['editor']['config']['get']('collaboration.channelId'),_0x345a06=await _0x285c0f['getRevision']({'channelId':_0x15733a,'revisionId':_0x3afcf1['id']});_0x3afcf1['diffData']=_0x345a06['diffData'];}['getRevisionDocumentData'](_0x33396d){const _0x1c8e85={};for(const _0x1d438d in _0x33396d['diffData']){if(_0x33396d['diffData'][_0x1d438d]['attachChange']&&!_0x33396d['diffData'][_0x1d438d]['attachChange']['isAttached'])continue;const _0x36c1f8=this['_removeRevisionMarkers'](JSON['parse'](_0x33396d['diffData'][_0x1d438d]['insertions'])),_0x567f5c=this['editor']['editing']['view']['document'],_0x16e9f3=new _0x584496(_0x567f5c,_0x36c1f8['map'](_0x5df24c=>this['_getViewFromDiffObj'](_0x5df24c,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c8e85[_0x1d438d]=this['editor']['data']['processor']['toData'](_0x16e9f3),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c8e85;}['getRevisionRootsAttributes'](_0x5bb236){const _0x179ac0={};for(const _0xc0ba90 in _0x5bb236['diffData'])_0x5bb236['diffData'][_0xc0ba90]['attachChange']&&!_0x5bb236['diffData'][_0xc0ba90]['attachChange']['isAttached']||(_0x179ac0[_0xc0ba90]=_0x5bb236['diffData'][_0xc0ba90]['attributesAfter']||{});return _0x179ac0;}['_getTypeCharForViewElement'](_0x166eca){return this['_viewClassToTypeChar']['get'](_0x166eca['constructor']);}['_getViewFromDiffObj'](_0x27632c,_0x2f357c){const _0x32d500=this['editor']['editing']['view']['document'];if('string'==typeof _0x27632c)return new _0x235ebc(_0x32d500,_0x27632c);{let _0x54aead,_0x134d57;_0x134d57='u'==_0x27632c['type']||'r'==_0x27632c['type']?[]:_0x27632c['children']['map'](_0x512af5=>this['_getViewFromDiffObj'](_0x512af5,_0x2f357c));const _0x14dde2=this['_typeCharToViewClass']['get'](_0x27632c['type'])||_0x1f7f8f,_0x5b47bc=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x54aead=new _0x14dde2(_0x32d500,_0x27632c['name'],_0x27632c['attributes'],_0x134d57),'u'==_0x27632c['type']&&_0x27632c['children'][0x0]){const _0x21fc75=_0x27632c['children'][0x0];if(_0x54aead['render']=function(_0x2934da){const _0x340990=_0x2934da['createElement']('div');return _0x340990['innerHTML']=_0x21fc75,_0x340990['childNodes'][0x0];},_0x2f357c){const _0x3482a5=new _0x584496(_0x32d500);_0x3482a5['_appendChild'](_0x54aead);const _0x213bff=Array['from'](_0x5b47bc['viewChildrenToDom'](_0x3482a5,{'bind':!0x1})),_0x31dc33=_0x5b47bc['domDocument']['createElement']('div');_0x31dc33['append'](..._0x213bff),_0x54aead=Array['from'](_0x5b47bc['domChildrenToView'](_0x31dc33))[0x0];}}else{if('r'==_0x27632c['type']&&_0x27632c['children'][0x0]){const _0x59b820=_0x27632c['children'][0x0];if(_0x54aead['render']=function(_0x2c9a45){_0x2c9a45['innerHTML']=_0x59b820;},_0x2f357c){const _0x4ac849=new _0x584496(_0x32d500);_0x4ac849['_appendChild'](_0x54aead);const _0x191528=Array['from'](_0x5b47bc['viewChildrenToDom'](_0x4ac849,{'bind':!0x1})),_0x581703=_0x5b47bc['domDocument']['createElement']('div');_0x581703['append'](..._0x191528);const _0x24aae8=Array['from'](_0x5b47bc['domChildrenToView'](_0x581703));_0x24aae8['length']>0x1?_0x54aead['_appendChild'](_0x24aae8):_0x54aead=_0x24aae8[0x0];}}}if(_0x27632c['customProperties']){for(const [_0x163701,_0x47e9b8]of _0x27632c['customProperties'])_0x54aead['_setCustomProperty'](_0x163701,_0x47e9b8);}const _0x734685=void 0x0===_0x27632c['fillerOffset']?null:_0x27632c['fillerOffset'];return null!==_0x734685&&(_0x54aead['getFillerOffset']=()=>_0x734685),_0x54aead;}}['_makeModelFromViewString'](_0x74c509){const _0x1a9d7=JSON['parse'](_0x74c509),_0x5bc4c8=this['editor']['editing']['view']['document'],_0x2236c8=new _0x584496(_0x5bc4c8,_0x1a9d7['map'](_0x21552a=>this['_getViewFromDiffObj'](_0x21552a,!0x0)));return this['editor']['data']['toModel'](_0x2236c8);}['_removeRevisionMarkers'](_0x567062){return(_0x567062=_0x567062['filter'](_0x2ec9bc=>!_0x2ec9bc['name']||'revision-start'!==_0x2ec9bc['name']&&'revision-end'!==_0x2ec9bc['name']))['forEach'](_0x66a240=>{'string'!=typeof _0x66a240&&(_0x66a240['children']=this['_removeRevisionMarkers'](_0x66a240['children']),_0x66a240['attributes']=_0x66a240['attributes']['filter'](_0x301160=>!_0x301160[0x0]['startsWith']('data-revision-')));}),_0x567062;}}function g(_0x3f0c36,_0x1e6fab,_0x3453a3){const t=_0x3f0c36['t'];switch(_0x1e6fab){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'},_0x3453a3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3453a3);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 _0x59ac4e{['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[_0x513552,I,V,_0x3240a8];}constructor(_0x528518){super(_0x528518),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 _0x3dbb66=_0x2c0587();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3dbb66},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 _0x4caa73=this['repository']['getRevision'](0x0),_0x25ed72=_0x4caa73&&null===_0x4caa73['creator']?_0x4caa73:null;if(this['_continueCurrentRevision']=!!_0x25ed72&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x13eb51=this['_source']['getCurrentRevisionId'](),_0x230714=this['repository']['getRevision'](_0x13eb51);if(_0x230714)this['_startingVersion']=_0x230714['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5e349e=this['_source']['history']['_operations']['find'](_0x3ba265=>!_0x3ba265['_isInit']),_0x22ec54=_0x5e349e?_0x5e349e['baseVersion']:this['_source']['history']['version'];_0x4caa73?(_0x4caa73['toVersion']<_0x22ec54&&_0x4caa73['_update']({'toVersion':_0x22ec54}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x25ed72['id'],this['_startingVersion']=_0x25ed72['fromVersion']):(this['_startingVersion']=_0x4caa73['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x22ec54,this['_continueCurrentRevision']=!0x1);}}else _0x25ed72&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x25ed72['toVersion'],this['editor']['model']['document']['history']['version']),_0x25ed72['fromVersion']===_0x25ed72['toVersion']?(0x0!==_0x25ed72['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x25ed72['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x25ed72['id'],this['_startingVersion']=_0x25ed72['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',_0x44ff7e=>!_0x44ff7e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a79c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30a2d7;for(const _0x207e5c in _0x3a79c4){const _0x439b05=_0x207e5c,_0x4af774=_0x3a79c4[_0x439b05];if('revisionHistoryLicenseKeyValid'==_0x4af774||'revisionHistoryLicenseKeyInvalid'==_0x4af774||'revisionHistoryLicenseKeyExpired'==_0x4af774||'revisionHistoryLicenseKeyDomainLimit'==_0x4af774||'revisionHistoryLicenseKeyNotAllowed'==_0x4af774||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4af774||'revisionHistoryLicenseKeyTrialLimit'==_0x4af774||'revisionHistoryLicenseKeyUsageLimit'==_0x4af774){delete _0x3a79c4[_0x439b05],_0x30a2d7=_0x4af774,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x30a2d7&&_0x3a79c4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x888584=this['repository']['getRevision'](0x0),_0x992051=await this['getRevisionDocumentData'](_0x888584),_0x2cd712=await this['getRevisionRootsAttributes'](_0x888584);this['_replaceEditorDataWithRevisionData'](_0x992051,_0x2cd712);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x19ee13){this['_source']=_0x19ee13;}async['update'](){const _0xe2ab86=await this['_source']['getLatestVersion']();if(_0xe2ab86>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1bb04b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xe2ab86});_0x1bb04b['authors']=_0x1bb04b['authorsIds']['map'](_0x31aef3=>this['editor']['plugins']['get']('Users')['getUser'](_0x31aef3)),this['currentRevision']['_update'](_0x1bb04b);}}async['saveRevision'](_0xcf2494={},_0x341fd8=null){const _0x1e015e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x341fd8>this['currentRevision']['toVersion']&&(_0x341fd8=null),null===_0x341fd8&&(_0x341fd8=await this['_source']['getLatestVersion']());const _0x5bc1ea=this['_getFromVersion'](_0x341fd8),_0x4bc7af=this['buildRevisionData']({'from':_0x5bc1ea,'to':_0x341fd8});if(this['currentRevision']['toVersion']<_0x341fd8){const _0x34cd6e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x341fd8,'to':_0x341fd8});_0x34cd6e['authors']=[],_0x34cd6e['authorsIds']=[],_0x34cd6e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x34cd6e,!0x0),delete _0x34cd6e['authors'],_0x1e015e['push'](_0x34cd6e);}_0xcf2494['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xcf2494['name']=_0xcf2494['name']||null,_0xcf2494['id']=_0xcf2494['id']||_0x2c0587(),_0xcf2494={..._0xcf2494,..._0x4bc7af};const _0x26294d=this['addRevisionData'](_0xcf2494);_0x1e015e['push'](_0xcf2494);const _0x14cb40=this['repository']['getIndex'](_0x26294d);if(0x0!==_0x14cb40){const _0x93391f=this['repository']['getRevision'](_0x14cb40-0x1);if(_0x93391f['fromVersion']!==_0x341fd8){const _0x33ca03=this['_revisionDataBuilder']['getData'](_0x341fd8,_0x93391f['toVersion']),_0x1dcd4a={'id':_0x93391f['id'],'diffData':_0x33ca03['diffData'],'authorsIds':_0x33ca03['authorsIds'],'authors':_0x33ca03['authorsIds']['map'](_0x3aebd4=>this['editor']['plugins']['get']('Users')['getUser'](_0x3aebd4)),'fromVersion':_0x341fd8};_0x93391f===this['currentRevision']&&(_0x1dcd4a['createdAt']=new Date(_0xcf2494['createdAt']['getTime']()+0xa)),_0x93391f['_update'](_0x1dcd4a,!0x0),delete _0x1dcd4a['authors'],_0x1e015e['push'](_0x1dcd4a);}}if(this['adapter']){for(const _0x2083ad of _0x1e015e)this['_bufferUpdate'](_0x2083ad['id'],_0x2083ad,!0x0);this['sendBufferedUpdates']();}return _0x26294d;}['addRevisionData'](_0x3a8bfc){const _0x1b873b=this['repository']['createRevision'](_0x3a8bfc);return this['adapter']&&_0x1b873b['on']('_update',(_0x28a176,_0x57d513,_0x3c00de)=>{_0x3c00de||(this['_bufferUpdate'](_0x57d513['id'],_0x57d513,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1b873b,this['_findInsertionIndex'](_0x1b873b)),_0x1b873b;}async['getRevisionDocumentData'](_0x468326){return await this['_utils']['loadRevisionData'](_0x468326,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x468326);}async['getRevisionRootsAttributes'](_0x390e07){return await this['_utils']['loadRevisionData'](_0x390e07,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x390e07);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5e0319=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3b336b=0x0;_0x3b336b<_0x5e0319['length'];_0x3b336b++){const _0x3b1305=_0x5e0319[_0x3b336b];let _0x5caac6=!0x1;for(const _0x266b0c of Object['keys'](_0x3b1305))void 0x0===_0x3b1305[_0x266b0c]?delete _0x3b1305[_0x266b0c]:'id'!==_0x266b0c&&(_0x5caac6=!0x0);_0x5caac6||(_0x5e0319[_0x3b336b]=null);}if(_0x5e0319=_0x5e0319['filter'](_0x365558=>null!==_0x365558),!_0x5e0319['length'])return;for(let _0x3758e7=0x0;_0x3758e7<_0x5e0319['length'];_0x3758e7++){const _0x31279f=_0x5e0319[_0x3758e7];void 0x0!==_0x31279f['fromVersion']&&void 0x0===_0x31279f['toVersion']&&(_0x31279f['toVersion']=this['repository']['getRevision'](_0x31279f['id'])['toVersion']),void 0x0!==_0x31279f['toVersion']&&void 0x0===_0x31279f['fromVersion']&&(_0x31279f['fromVersion']=this['repository']['getRevision'](_0x31279f['id'])['fromVersion']);}const _0x24e392=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5e0319,_0x24e392)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x29291d=>{if(_0x29291d){for(const _0x71aae7 of _0x29291d)this['setRevisionData']({'id':_0x71aae7['id'],'createdAt':_0x71aae7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x32d1cc=null,from:_0x5b1549=null,to:_0x5b82c8=null}){_0x5b1549=null!==_0x5b1549?_0x5b1549:_0x32d1cc['fromVersion'],_0x5b82c8=null!==_0x5b82c8?_0x5b82c8:_0x32d1cc['toVersion'];const _0x165381=this['_revisionDataBuilder']['getData'](_0x5b1549,_0x5b82c8),_0x512f26={'diffData':_0x165381['diffData'],'authorsIds':_0x165381['authorsIds'],'fromVersion':_0x5b1549,'toVersion':_0x5b82c8};if(!_0x32d1cc||_0x5b82c8!==_0x32d1cc['toVersion']){const _0x5a2ec1=_0x5b82c8-0x1,_0x287a1f=this['_source']['history']['getOperation'](_0x5a2ec1);_0x512f26['createdAt']=_0x287a1f&&_0x287a1f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5b1549===this['_loadedStateData']['fromVersion']){for(const _0x59d9bb of this['_loadedStateData']['authors'])_0x512f26['authorsIds']['includes'](_0x59d9bb['id'])||_0x512f26['authorsIds']['push'](_0x59d9bb['id']);}return _0x512f26;}['_bufferUpdate'](_0x5c6458,_0x155072,_0x558ffd){if(this['_bufferedUpdates']['has'](_0x5c6458)){const _0x16937a=this['_bufferedUpdates']['get'](_0x5c6458);_0x155072=_0x558ffd?{..._0x16937a,..._0x155072}:{..._0x155072,..._0x16937a};}this['_bufferedUpdates']['set'](_0x5c6458,_0x155072);}['setRevisionData'](_0x2b3c44){const _0x3088fa=this['repository']['getRevision'](_0x2b3c44['id']);if(_0x2b3c44['createdAt']&&(_0x2b3c44['createdAt']=new Date(_0x2b3c44['createdAt'])),_0x2b3c44['authorsIds']){const _0x39e1a8=this['editor']['plugins']['get']('Users');_0x2b3c44['authors']=_0x2b3c44['authorsIds']['map'](_0x146272=>_0x39e1a8['getUser'](_0x146272));}_0x3088fa['_update'](_0x2b3c44,!0x0);}['_createInitialRevision'](_0x2aa14d){const _0x34d43e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x34d43e)this['_initialRevisionId']=_0x34d43e['id'];else{const _0x468ad5=!this['editor']['model']['document']['roots']['find'](_0x3383d2=>this['editor']['model']['hasContent'](_0x3383d2)),_0x3ac77b=this['editor']['plugins']['get']('Users')['me']['id'],_0xc9a397=g(this['editor']['locale'],_0x468ad5?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2aa14d,'to':_0x2aa14d,'id':this['_initialRevisionId'],'name':_0xc9a397,'creatorId':_0x3ac77b});}}['_createCurrentRevision'](_0x27bd85){const _0x3c3b11=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3c3b11),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x27bd85,'to':_0x27bd85,'id':_0x3c3b11,'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'](_0x4c3936,_0xc014fc){let _0x47aed3=this['editor']['config']['get']('initialData'),_0x2dbcb3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x47aed3){_0x47aed3={};for(const _0xa3eff0 of this['editor']['model']['document']['getRootNames']())_0x47aed3[_0xa3eff0]='';}if('string'==typeof _0x47aed3&&(_0x47aed3={'main':_0x47aed3}),void 0x0===_0x2dbcb3){_0x2dbcb3={};for(const _0x137f25 of this['editor']['model']['document']['getRootNames']())_0x2dbcb3[_0x137f25]={};}let _0x30acac=!0x1;const _0x165fb9=Object['keys'](_0x47aed3),_0x3becf4=Object['keys'](_0x4c3936);for(const _0x5d4e4f of _0x165fb9){if(_0x47aed3[_0x5d4e4f]!==_0x4c3936[_0x5d4e4f]&&''!==_0x47aed3[_0x5d4e4f]['trim']()){_0x30acac=!0x0;break;}if(!_0x46a018(_0x2dbcb3[_0x5d4e4f],_0xc014fc[_0x5d4e4f])&&Object['keys'](_0x2dbcb3[_0x5d4e4f])['length']>0x0){_0x30acac=!0x0;break;}}_0x30acac||(_0x30acac=_0x3becf4['some'](_0x221a78=>!this['editor']['model']['document']['getRoot'](_0x221a78))),_0x30acac&&_0x5ca299('editor-initial-data-replaced-with-revision-data',{'editorData':_0x47aed3,'editorRootsAttributes':_0x2dbcb3,'revisionData':_0x4c3936,'revisionRootsAttributes':_0xc014fc}),this['editor']['config']['set']('initialData',_0x4c3936),this['editor']['config']['set']('rootsAttributes',_0xc014fc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x52d68f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x52d68f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x33757b){const _0x4ae474=this['repository']['getRevisions']();_0x4ae474['reverse']();let _0x8ed484=0x0;for(;_0x8ed484<_0x4ae474['length'];){const _0x51a7d6=_0x4ae474[_0x8ed484];if(_0x51a7d6===this['currentRevision']){_0x8ed484++;continue;}if(_0x51a7d6['id']===this['_initialRevisionId'])break;const _0x15d869=_0x33757b['toVersion']-_0x51a7d6['toVersion']||_0x33757b['fromVersion']-_0x51a7d6['fromVersion'];if(_0x15d869>0x0)break;if(_0x15d869<0x0)_0x8ed484++;else{if(!_0x33757b['creator']&&_0x51a7d6['creator'])break;if(_0x51a7d6['creator']||!_0x33757b['creator']){if(_0x33757b['createdAt']>_0x51a7d6['createdAt'])break;_0x8ed484++;}else _0x8ed484++;}}return _0x8ed484;}['_getFromVersion'](_0x5eed79){const _0x1c9c00=this['repository']['getRevisions']();_0x1c9c00['reverse'](),_0x1c9c00['shift']();const _0x11f357=_0x1c9c00['find'](_0x1f6a40=>_0x1f6a40['toVersion']<=_0x5eed79)['toVersion'];return _0x11f357<this['_startingVersion']?this['_startingVersion']:_0x11f357;}['_makeRevision']({name:_0x57fae3,from:_0x2b119f,to:_0x46c17d,creatorId:_0x2b5f78,id:_0x55907a}){const _0x384b02=this['buildRevisionData']({'from':_0x2b119f,'to':_0x46c17d});_0x384b02['name']=_0x57fae3,_0x384b02['creatorId']=_0x2b5f78,_0x384b02['id']=_0x55907a;const _0x399436=this['addRevisionData'](_0x384b02);return this['adapter']&&this['_bufferUpdate'](_0x384b02['id'],_0x384b02,!0x0),_0x399436;}['_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(_0x1b30f9){this['editor']=_0x1b30f9,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'](_0xe77128){this['source']=_0xe77128;const _0x2363bb=new Map(),_0x4dfe7d=new Map(),_0x25dad7=this['editor']['model']['document']['roots']['map'](_0x5339fd=>_0x5339fd['rootName']);for(const _0x1760f7 of _0x25dad7){const _0x33e367=this['editor']['model']['document']['getRoot'](_0x1760f7),_0x5537a1=N(_0x33e367);_0x2363bb['set'](_0x1760f7,_0x5537a1),_0x4dfe7d['set'](_0x1760f7,Object['fromEntries'](_0x33e367['getAttributes']()));}const _0x821fcf=Array['from'](this['editor']['model']['markers'])['map'](_0x28f579=>[_0x28f579['name'],_0x28f579['getRange']()]),_0x1d6098=this['source']['version'];this['_saveMetaData'](_0x1d6098,_0x2363bb,_0x821fcf,_0x4dfe7d),this['_startingRevisionId']=this['_revisionId'];const _0x9e858=new Map(),_0x12d231=new Map();for(const _0x56b0a0 of _0x25dad7){const _0x1ec94c=P(_0x56b0a0);_0x9e858['set'](_0x56b0a0,_0x1ec94c),_0x12d231['set'](_0x56b0a0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x9e858,[],_0x12d231);}['getData'](_0x2c9be1,_0x5b0048){if(this['_lastFrom']===_0x2c9be1&&this['_lastTo']<=_0x5b0048)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5b0048,!0x0);else{if(!this['_savedMetaData']['has'](_0x2c9be1)){const _0x243905=this['_getPreviousFrom'](_0x2c9be1);this['_calculateMetaData'](_0x243905,_0x2c9be1,!0x1);}this['_calculateMetaData'](_0x2c9be1,_0x5b0048,!0x0);}return this['_lastFrom']=_0x2c9be1,this['_lastTo']=_0x5b0048,this['_getState']();}['loadState'](_0x4645c5){const _0x228b31=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4645c5['fromVersion'],this['_lastTo']=_0x4645c5['toVersion'];for(const _0x329dd8 in _0x4645c5['diffData']){const _0x467762=_0x4645c5['diffData'][_0x329dd8]['attachChange'],_0x9fd8ff=_0x45cab9(_0x4645c5['diffData'][_0x329dd8]['attributesBefore'])||{},_0x3c7a9f=_0x228b31['_makeModelFromViewString'](_0x4645c5['diffData'][_0x329dd8]['deletions']);_0x3c7a9f['rootName']=_0x329dd8,_0x3c7a9f['_isAttached']=!_0x467762||!_0x467762['isAttached'],_0x3c7a9f['isAttached']=()=>_0x3c7a9f['_isAttached'],this['_baseRoots']['set'](_0x329dd8,_0x3c7a9f),this['_baseRootsAttributes']['set'](_0x329dd8,_0x9fd8ff),_0x467762&&this['_touchedRoots']['set'](_0x329dd8,_0x467762);const _0x553802=this['_makeIdsRoot'](_0x3c7a9f);this['_baseIdsRoots']['set'](_0x329dd8,_0x553802);for(const [_0x405362,_0x3b0a16]of _0x3c7a9f['markers']){if(!_0x405362['startsWith']('revision:'))continue;const _0x356a1e=_0x405362['split'](':')[0x2];for(const _0x38edb7 of _0x3b0a16['getWalker']({'singleCharacters':!0x0})){const _0x15caf5=this['_getVidAttributeName'](_0x38edb7),_0x89e58e='elementEnd'==_0x38edb7['type']?_0x38edb7['previousPosition']['path']['slice'](0x0,-0x1):_0x38edb7['previousPosition']['path'],_0x3978c9=_0x553802['getNodeByPath'](_0x89e58e)['getAttribute'](_0x15caf5);this['_touched']['set'](_0x3978c9,{'userId':_0x356a1e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x555975=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x478ac1=>!this['_touched']['has'](_0x478ac1));let _0x42fba4=0x0;const _0x5ace5e=new Map();for(const _0x1b09d2 in _0x4645c5['diffData']){const _0x31ec18=_0x4645c5['diffData'][_0x1b09d2]['attachChange'],_0x5eeb09=_0x45cab9(_0x4645c5['diffData'][_0x1b09d2]['attributesAfter'])||{},_0x5b45ca=_0x228b31['_makeModelFromViewString'](_0x4645c5['diffData'][_0x1b09d2]['insertions']);_0x5b45ca['rootName']=_0x1b09d2,_0x5b45ca['_isAttached']=!_0x31ec18||_0x31ec18['isAttached'],_0x5b45ca['isAttached']=()=>_0x5b45ca['_isAttached'],this['_diffRoots']['set'](_0x1b09d2,_0x5b45ca),this['_diffRootsAttributes']['set'](_0x1b09d2,_0x5eeb09);const _0x258bde=this['_makeIdsRoot'](_0x5b45ca,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1b09d2,_0x258bde),_0x5ace5e['set'](_0x1b09d2,_0x5b45ca['isAttached']()?_0x5eeb09:{});for(const [_0x42e46d,_0x5f43a0]of _0x5b45ca['markers']){if(!_0x42e46d['startsWith']('revision:'))continue;const _0x4a2a6a=_0x42e46d['split'](':')[0x2];for(const _0x38339d of _0x5f43a0['getWalker']({'singleCharacters':!0x0})){const _0x59c164=this['_getVidAttributeName'](_0x38339d),_0x41af58=this['_revisionId']++,_0x46797c='elementEnd'==_0x38339d['type']?_0x38339d['previousPosition']['path']['slice'](0x0,-0x1):_0x38339d['previousPosition']['path'];_0x258bde['getNodeByPath'](_0x46797c)['_setAttribute'](_0x59c164,_0x41af58),this['_touched']['set'](_0x41af58,{'userId':_0x4a2a6a});}}for(const _0x72db19 of this['editor']['model']['createRangeIn'](_0x5b45ca)['getWalker']({'singleCharacters':!0x0})){const _0x139b05=this['_getVidAttributeName'](_0x72db19),_0x3f8d3d='elementEnd'==_0x72db19['type']?_0x72db19['previousPosition']['path']['slice'](0x0,-0x1):_0x72db19['previousPosition']['path'],_0x31001d=_0x258bde['getNodeByPath'](_0x3f8d3d);_0x31001d['getAttribute'](_0x139b05)>0x0||_0x31001d['_setAttribute'](_0x139b05,_0x555975[_0x42fba4++]);}for(const [_0x3765d4,_0x27d431]of _0x5b45ca['markers'])_0x3765d4['startsWith']('revision:')||this['_markers']['set'](_0x3765d4,_0x27d431);}const _0xddf969=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xddf969),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xddf969,0x1));const _0x41fda2=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x41fda2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x41fda2,0x1));const _0x27c4a0=Array['from'](this['_diffRoots'])['map'](([_0x194c5e,_0xa432ca])=>[_0x194c5e,N(_0xa432ca)]);this['_saveMetaData'](this['_lastTo'],_0x27c4a0,this['_markers'],_0x5ace5e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2e25f4,_0x365c19,_0x3e55f0,_0x3b4797){const _0x102825=new Map(_0x365c19),_0x118bb8=new Map(_0x45cab9(_0x3b4797)),_0x3ada49=new Map();for(const [_0x186be1,_0x1f23ac]of _0x3e55f0)_0x3ada49['set'](_0x186be1,{'start':_0x1f23ac['start']['clone'](),'end':_0x1f23ac['end']['clone'](),'rootName':_0x1f23ac['root']['rootName']});this['_savedMetaData']['set'](_0x2e25f4,{'roots':_0x102825,'markers':_0x3ada49,'rootsAttributes':_0x118bb8});}['_removeMetaData'](_0x4714de){this['_savedMetaData']['delete'](_0x4714de);}['_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'](_0x53939b,_0x142d65=null){let _0x54ec1c=null;_0x53939b['is']('documentFragment')||(_0x54ec1c=new ut(_0x53939b['name'],{'vid_start':null===_0x142d65?this['_revisionId']++:_0x142d65++}));const _0x38d342=[];for(const _0x88cea9 of _0x53939b['getChildren']())if(_0x88cea9['is']('element')){_0x38d342['push'](this['_makeIdsRoot'](_0x88cea9,_0x142d65));const _0x4c3342=_0x38d342[_0x38d342['length']-0x1];null!==_0x142d65&&(_0x142d65=_0x4c3342['is']('element','$text')?_0x4c3342['getAttribute']('vid')+0x1:_0x4c3342['getAttribute']('vid_end')+0x1);}else{for(let _0x34b5cf=0x0;_0x34b5cf<_0x88cea9['offsetSize'];_0x34b5cf++)_0x38d342['push'](new ut('$text',{'vid':null===_0x142d65?this['_revisionId']++:_0x142d65++}));}if(_0x53939b['is']('documentFragment')){const _0x24745c=P(_0x53939b['rootName']);return _0x24745c['_insertChild'](0x0,_0x38d342),_0x24745c;}return _0x54ec1c['_setAttribute']('vid_end',null===_0x142d65?this['_revisionId']++:_0x142d65++),_0x54ec1c['_insertChild'](0x0,_0x38d342),_0x54ec1c;}['_calculateMetaData'](_0x11a4f7,_0x1203aa,_0x3291ca){this['_reset']();const {roots:_0x429508,markers:_0x18e5af,rootsAttributes:_0xe951d9}=this['_savedMetaData']['get'](_0x11a4f7);this['_baseRoots']=new Map(_0x429508),this['_baseRootsAttributes']=new Map(_0x45cab9(_0xe951d9));for(const [_0x54b019,_0x51a179]of this['_baseRoots'])if('$graveyard'!==_0x54b019&&(this['_diffRoots']['set'](_0x54b019,N(_0x51a179)),this['_diffRootsAttributes']=new Map(_0x45cab9(_0xe951d9)),_0x3291ca)){const _0x5951d5=this['_revisionId'];this['_idsRoots']['set'](_0x54b019,this['_makeIdsRoot'](_0x51a179)),this['_baseIdsRoots']['set'](_0x54b019,this['_makeIdsRoot'](_0x51a179,_0x5951d5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x3291ca&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1661e6,_0x330e49]of _0x18e5af){const _0x3feca6=this['_baseRoots']['get'](_0x330e49['rootName']),_0x408463=this['_diffRoots']['get'](_0x330e49['rootName']),_0x2eeaf6=new lt(this['_fixPosition'](_0x330e49['start'],_0x3feca6),this['_fixPosition'](_0x330e49['end'],_0x3feca6)),_0x1f2688=this['_fixRange'](_0x2eeaf6,_0x408463);_0x3feca6['markers']['set'](_0x1661e6,_0x2eeaf6),this['_markers']['set'](_0x1661e6,_0x1f2688);}this['_applyOperations'](_0x11a4f7,_0x1203aa,_0x3291ca);}['_applyOperations'](_0x9bbaa9,_0x31c411,_0x469575){for(const _0x894978 of this['source']['getOperations'](_0x9bbaa9,_0x31c411))this['_handleOperation'](_0x894978,_0x469575);for(const _0x54fb92 of this['_diffRoots']['values']())_0x54fb92['markers']['clear']();for(const [_0x248dd2,_0x5062bf]of this['_markers']){this['_diffRoots']['get'](_0x5062bf['root']['rootName'])['markers']['set'](_0x248dd2,_0x5062bf['clone']());}const _0x14b382=new Map(),_0x31bc81=new Map();for(const [_0x599828,_0x1bcd63]of this['_diffRoots'])_0x14b382['set'](_0x599828,N(_0x1bcd63)),_0x31bc81['set'](_0x599828,this['_diffRootsAttributes']['get'](_0x599828));this['_saveMetaData'](_0x31c411,_0x14b382,this['_markers'],_0x31bc81);}['_getPreviousFrom'](_0x35714d){const _0x25b69c=Array['from'](this['_savedMetaData']['keys']());_0x25b69c['sort']((_0x253c05,_0x3440ea)=>_0x253c05-_0x3440ea),_0x25b69c['reverse']();for(const _0x5261c3 of _0x25b69c)if(_0x5261c3<_0x35714d)return _0x5261c3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1c9544,_0x1e8e79){const _0x507a7c=Array['from'](_0x1e8e79['markers'])['map'](([_0x412fe8,_0x838bea])=>[_0x412fe8,this['_fixRange'](_0x838bea,_0x1c9544)]);_0x1c9544['markers']=new Map(_0x507a7c);}['_transformMarkers'](_0x385971){for(const _0x38c5aa of this['_markers']['values']()){const _0x1137b6=_0x38c5aa['getTransformedByOperation'](_0x385971),_0x142c45=lt['_createFromRanges'](_0x1137b6);_0x38c5aa['start']=_0x142c45['start'],_0x38c5aa['end']=_0x142c45['end'];}}['_handleOperation'](_0x987433,_0x330554){if('addRoot'!=_0x987433['type']&&'detachRoot'!=_0x987433['type']){if('insert'==_0x987433['type']){const _0x5cbb57=_0x987433['position']['root']['rootName'];this['_diffRoots']['has'](_0x5cbb57)||(this['_diffRoots']['set'](_0x5cbb57,P(_0x5cbb57,!0x0)),this['_diffRootsAttributes']['set'](_0x5cbb57,{}),_0x330554&&this['_idsRoots']['set'](_0x5cbb57,P(_0x5cbb57,!0x0)));}else{if('addRootAttribute'==_0x987433['type']||'removeRootAttribute'==_0x987433['type']||'changeRootAttribute'==_0x987433['type'])return void this['_handleRootAttributeOperation'](_0x987433);'marker'==_0x987433['type']&&this['_handleMarkerOperation'](_0x987433);}if('marker'!==_0x987433['type']){const _0x2d20f7=this['_cloneOperation'](_0x987433,this['_diffRoots']);_0x2d20f7['_execute'](),this['_transformMarkers'](_0x2d20f7);}if(_0x330554)switch(_0x987433['type']){case'insert':this['_handleInsertOperation'](_0x987433);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x987433);break;case'merge':this['_handleMergeOperation'](_0x987433);break;case'split':this['_handleSplitOperation'](_0x987433);}}else this['_handleRootOperation'](_0x987433,_0x330554);}['_cloneOperation'](_0x3d27c3,_0x2c192d){const _0x3987bd=_0x3d27c3['clone']();return _0x3987bd['_authorId']=_0x3d27c3['_authorId'],this['_fixOperation'](_0x3987bd,_0x2c192d),_0x3987bd;}['_getBaseVids'](_0x50fd04){return _0x50fd04['map'](_0x2c7650=>{const _0x4568e9=this['_getVidAttributeName'](_0x2c7650);return Number(_0x2c7650['item']['getAttribute'](_0x4568e9));});}['_generateTape'](_0x5473d2,_0x41ff0e){if(_0x5473d2['is']('element','$text'))_0x41ff0e['push']({'item':_0x5473d2,'type':'text'});else{_0x5473d2['is']('element')&&_0x41ff0e['push']({'item':_0x5473d2,'type':'elementStart'});for(const _0x4307fa of _0x5473d2['getChildren']())this['_generateTape'](_0x4307fa,_0x41ff0e);_0x5473d2['is']('element')&&_0x41ff0e['push']({'item':_0x5473d2,'type':'elementEnd'});}return _0x41ff0e;}['_getState'](){const _0xefd5b4=new Map(this['_touched']),_0x437f15=new Map(_0xefd5b4),_0x35b72e=new Map(),_0x3c55ff={'insertions':{},'deletions':{}},_0x200a4d={'insertions':{},'deletions':{}},_0x5ce56d=new Map(),_0x35c2b8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x35c2b8['delete']('$graveyard');for(const _0x55dedd of _0x35c2b8){const _0x47b86d=this['_diffRoots']['get'](_0x55dedd)||P(_0x55dedd,!0x1),_0x1d812b=this['_baseRoots']['get'](_0x55dedd)||P(_0x55dedd,!0x1);_0x47b86d['isAttached']()||_0x1d812b['isAttached']()?(_0x3c55ff['insertions'][_0x55dedd]=N(_0x47b86d),_0x3c55ff['deletions'][_0x55dedd]=N(_0x1d812b),this['_copyMarkers'](_0x3c55ff['deletions'][_0x55dedd],_0x1d812b),this['_copyMarkers'](_0x3c55ff['insertions'][_0x55dedd],_0x47b86d),_0x200a4d['insertions'][_0x55dedd]=this['_generateTape'](this['_idsRoots']['get'](_0x55dedd),[]),_0x200a4d['deletions'][_0x55dedd]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x55dedd)||P(_0x55dedd,!0x1),[])):_0x35c2b8['delete'](_0x55dedd);}for(const _0x3e2aba of _0x35c2b8){const _0xb00a9f=_0x200a4d['insertions'][_0x3e2aba];for(const _0x24d567 of _0xb00a9f){const _0x121bd1=this['_getVidAttributeName'](_0x24d567),_0x5f0566=_0x24d567['item']['getAttribute'](_0x121bd1);_0x437f15['delete'](_0x5f0566),_0x5f0566>=this['_startingRevisionId']&&_0x35b72e['set'](_0x5f0566,_0xefd5b4['get'](_0x5f0566));}}for(const _0x463263 of _0x35c2b8){const _0x35c88b=_0x200a4d['insertions'][_0x463263],_0x3e2a4c=this['_getBaseVids'](_0x200a4d['deletions'][_0x463263]);let _0x22172a=0x0;for(const _0x145c3e of _0x35c88b){const _0x4c721d=this['_getVidAttributeName'](_0x145c3e),_0x42a1aa=_0x145c3e['item']['getAttribute'](_0x4c721d);if(!_0x35b72e['has'](_0x42a1aa)&&!_0x5ce56d['has'](_0x42a1aa)){if(_0x437f15['has'](_0x42a1aa))_0x22172a++;else{if(_0x42a1aa!=_0x3e2a4c[_0x22172a]){const _0x4a066a=_0xefd5b4['get'](_0x42a1aa)||_0xefd5b4['get'](_0x3e2a4c[_0x22172a]);for(;_0x42a1aa!=_0x3e2a4c[_0x22172a];)_0x437f15['has'](_0x3e2a4c[_0x22172a])||(_0x5ce56d['set'](_0x3e2a4c[_0x22172a],_0x4a066a),_0xefd5b4['set'](_0x3e2a4c[_0x22172a],_0x4a066a)),_0x22172a++;}_0x22172a++;}}}}for(const _0x3067e6 of _0x35c2b8){const _0x4f251e=_0x200a4d['insertions'][_0x3067e6];for(const _0x440a3a of _0x4f251e){const _0x34a7a6=this['_getVidAttributeName'](_0x440a3a),_0x36c808=_0x440a3a['item']['getAttribute'](_0x34a7a6);if(_0x5ce56d['has'](_0x36c808)){const _0x357411=_0x5ce56d['get'](_0x36c808);_0x437f15['has'](_0x36c808)||_0x437f15['set'](_0x36c808,{..._0x357411}),_0x35b72e['set'](_0x36c808,{..._0x357411});}}}for(const _0x1ce2ad of _0x437f15['keys']())_0x1ce2ad>=this['_startingRevisionId']&&_0x437f15['delete'](_0x1ce2ad);const _0x3025a3=new Map();for(const _0x3ba5fe of _0x35c2b8){let _0x4c899f=_0x200a4d['insertions'][_0x3ba5fe];for(const _0x51906a of _0x4c899f)if(_0x51906a['item']['is']('element','tableCell')){const _0x4eae34=this['_getVidAttributeName'](_0x51906a),_0x25cbdc=_0x51906a['item']['getAttribute'](_0x4eae34);if(_0x35b72e['has'](_0x25cbdc)){const _0x16a016=_0x51906a['item']['parent']['parent']['getAttribute']('vid_start'),_0x40731e=_0x3025a3['get'](_0x16a016)||new Set();_0x40731e['add'](_0x35b72e['get'](_0x25cbdc)['userId']),_0x3025a3['set'](_0x16a016,_0x40731e);}}_0x4c899f=_0x200a4d['deletions'][_0x3ba5fe];for(const _0x30d316 of _0x4c899f)if(_0x30d316['item']['is']('element','tableCell')){const _0x2f5c1c=this['_getVidAttributeName'](_0x30d316),_0x11a2fa=_0x30d316['item']['getAttribute'](_0x2f5c1c);if(_0x437f15['has'](_0x11a2fa)){const _0x3cfbac=_0x30d316['item']['parent']['parent']['getAttribute']('vid_start'),_0x22f080=_0x3025a3['get'](_0x3cfbac)||new Set();_0x22f080['add'](_0x437f15['get'](_0x11a2fa)['userId']),_0x3025a3['set'](_0x3cfbac,_0x22f080);}}for(const _0x40a5bb of _0x3025a3['keys']())(_0x35b72e['has'](_0x40a5bb)||_0x437f15['has'](_0x40a5bb))&&_0x3025a3['delete'](_0x40a5bb);}for(const _0x2eb208 of _0x35c2b8){const _0x2d39b1=_0x200a4d['insertions'][_0x2eb208];let _0x5c4d5e=null,_0x35b2a5=null;for(const _0x28168f of _0x2d39b1){const _0x28558a=this['_getVidAttributeName'](_0x28168f),_0xe45a83=_0x28168f['item']['getAttribute'](_0x28558a),_0x4786c8=_0x3025a3['get'](_0xe45a83);_0x4786c8&&'elementStart'==_0x28168f['type']&&(_0x5c4d5e=Array['from'](_0x4786c8)[0x0],_0x35b2a5=_0x28168f['item']['getAttribute']('vid_end')),_0x5c4d5e&&(_0x437f15['set'](_0xe45a83,{'userId':_0x5c4d5e}),_0x35b72e['set'](_0xe45a83,{'userId':_0x5c4d5e})),_0xe45a83==_0x35b2a5&&(_0x5c4d5e=null,_0x35b2a5=null);}}const _0x63f8d9={},_0x49814f=new Set();for(const _0x443a1a of _0x35c2b8){const _0x176340=_0x3c55ff['deletions'][_0x443a1a],_0x1803d6=_0x3c55ff['insertions'][_0x443a1a];for(const {userId:_0x2573bb}of this['_touchedMarkers']['values']())null!==_0x2573bb&&_0x49814f['add'](_0x2573bb);for(const {userId:_0x1a563b}of this['_touchedRoots']['values']())null!==_0x1a563b&&_0x49814f['add'](_0x1a563b);this['_markChanges'](_0x1803d6,_0x200a4d['insertions'][_0x443a1a],_0x35b72e,'insertion',_0x49814f),this['_markChanges'](_0x176340,_0x200a4d['deletions'][_0x443a1a],_0x437f15,'deletion',_0x49814f),_0x63f8d9[_0x443a1a]={'insertions':this['_prepareViewToSave'](_0x1803d6),'deletions':this['_prepareViewToSave'](_0x176340),'attachChange':this['_touchedRoots']['get'](_0x443a1a)||null,'attributesBefore':_0x45cab9(this['_baseRootsAttributes']['get'](_0x443a1a))||{},'attributesAfter':_0x45cab9(this['_diffRootsAttributes']['get'](_0x443a1a))};}return{'diffData':_0x63f8d9,'authorsIds':Array['from'](_0x49814f)};}['_processRootBeforeSave'](_0x388dec){for(const [,_0x5ae3b9]of _0x388dec['markers']){const _0x455ad3=_0x5ae3b9['start']['getAncestors']()['filter'](_0x12c0d9=>'tableCell'==_0x12c0d9['name']);for(const _0xf1e135 of _0x455ad3)0x1==_0xf1e135['childCount']&&_0xf1e135['getChild'](0x0)['is']('element','paragraph')&&_0xf1e135['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3fbd4f){this['_processRootBeforeSave'](_0x3fbd4f);const _0x50d88e=this['editor']['data']['toView'](_0x3fbd4f,{}),_0x5208af=Array['from'](_0x50d88e['getChildren']())['map'](_0xb961b9=>this['_getViewJson'](_0xb961b9));return JSON['stringify'](_0x5208af);}['_getViewJson'](_0x353347){if(_0x353347['is']('$text'))return _0x353347['data'];{const _0x5b7e10=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x75f584=_0x353347,_0x310874=this['editor']['data']['htmlProcessor']['domConverter'],_0x49c26d={'type':_0x5b7e10['_getTypeCharForViewElement'](_0x75f584),'name':_0x75f584['name'],'attributes':Array['from'](_0x75f584['getAttributes']()),'children':Array['from'](_0x75f584['getChildren']())['map'](_0x2c095e=>this['_getViewJson'](_0x2c095e))};if(_0x353347['is']('uiElement')&&'$comment'!=_0x353347['name']){const _0x30115c=_0x353347['render'](_0x310874['domDocument'],_0x310874);_0x49c26d['children']['push'](_0x30115c['outerHTML']);}else{if(_0x353347['is']('rawElement')){const _0x50b0c2=_0x310874['domDocument']['createElement'](_0x75f584['name']);_0x353347['render'](_0x50b0c2,_0x310874),_0x49c26d['children']['push'](_0x50b0c2['innerHTML']);}}const _0x4bb5de=Array['from'](_0x75f584['getCustomProperties']());_0x4bb5de['length']>0x0&&(_0x49c26d['customProperties']=_0x4bb5de);const _0x44feaa=_0x75f584['getFillerOffset']();return null!==_0x44feaa&&(_0x49c26d['fillerOffset']=_0x44feaa),_0x49c26d;}}['_markChanges'](_0x1e5b25,_0xb4593c,_0x20e2d1,_0x27c315,_0x393e38){let _0x513e86=null,_0x5b2eae=null,_0x4f4d56=0x0;const _0x2173da=this['editor']['model'];for(let _0x1ff358=0x0;_0x1ff358<_0xb4593c['length'];_0x1ff358++){const _0x7528=this['_getVidAttributeName'](_0xb4593c[_0x1ff358]),_0x3dd906=_0xb4593c[_0x1ff358]['item']['getAttribute'](_0x7528),_0x103376=_0x20e2d1['get'](_0x3dd906),_0x41f096=_0x1ff358==_0xb4593c['length']-0x1;(!_0x513e86&&_0x103376&&(_0x513e86=_0x103376,_0x5b2eae=_0xb4593c[_0x1ff358]),_0x513e86&&(!_0x103376||_0x103376['userId']!=_0x513e86['userId']))&&(_0x15958f(_0x103376,F(_0x5b2eae,_0x1e5b25,_0x2173da),F(_0xb4593c[_0x1ff358],_0x1e5b25,_0x2173da)),_0x513e86=_0x103376||null,_0x5b2eae=_0x103376?_0xb4593c[_0x1ff358]:null),_0x513e86&&_0x41f096&&_0x15958f(_0x103376,F(_0x5b2eae,_0x1e5b25,_0x2173da),B(_0xb4593c[_0x1ff358],_0x1e5b25,_0x2173da));}function _0x15958f(_0x2972af,_0x1f6612,_0x31ea30){const _0x52f276=_0x513e86['userId'],_0x491fce='revision:'+_0x27c315+':'+_0x52f276+':'+_0x4f4d56++,_0x13c055=_0x2173da['createRange'](_0x1f6612,_0x31ea30);_0x1e5b25['markers']['set'](_0x491fce,_0x13c055),null!==_0x52f276&&_0x393e38['add'](_0x52f276);}}['_getVidAttributeName'](_0x591afc){switch(_0x591afc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2f8cdd,_0x465334){_0x2f8cdd['baseVersion']=null;for(const _0x2cdc98 in _0x2f8cdd){const _0x4c78ab=_0x2f8cdd[_0x2cdc98];if(_0x4c78ab instanceof ft){const _0x1c50e7=_0x465334['get'](_0x4c78ab['root']['rootName']);_0x2f8cdd[_0x2cdc98]=this['_fixPosition'](_0x4c78ab,_0x1c50e7);}if(_0x4c78ab instanceof lt){const _0x149a02=_0x465334['get'](_0x4c78ab['root']['rootName']);_0x2f8cdd[_0x2cdc98]=this['_fixRange'](_0x4c78ab,_0x149a02);}'root'===_0x2cdc98&&(_0x2f8cdd['root']=_0x465334['get'](_0x2f8cdd['root']['rootName']));}}['_fixRange'](_0x4afc2d,_0x148aa7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4afc2d['start'],_0x148aa7),this['_fixPosition'](_0x4afc2d['end'],_0x148aa7));}['_fixPosition'](_0xc80125,_0x3be1d7){return this['editor']['model']['createPositionFromPath'](_0x3be1d7,_0xc80125['path'],_0xc80125['stickiness']);}['_handleInsertOperation'](_0x2c26fc){const _0x323537=this['_idsRoots']['get'](_0x2c26fc['position']['root']['rootName']),_0x3e9b56=this['_fixPosition'](_0x2c26fc['position'],_0x323537),_0x5349f1=null===_0x2c26fc['_authorId']?null:_0x2c26fc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f401e=_0x3e9b56['parent'],_0x2076b9=this['_revisionId'],_0x510198=[];for(const _0x198e32 of _0x2c26fc['nodes'])if(_0x198e32['is']('element'))_0x510198['push'](this['_makeIdsRoot'](_0x198e32));else{for(let _0x4ee9c7=0x0;_0x4ee9c7<_0x198e32['offsetSize'];_0x4ee9c7++)_0x510198['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1f3920=this['_revisionId'];for(let _0x4012eb=_0x2076b9;_0x4012eb<_0x1f3920;_0x4012eb++)this['_touched']['set'](_0x4012eb,{'userId':_0x5349f1});_0x3f401e['_insertChild'](_0x3e9b56['offset'],_0x510198);}['_handleMoveOperation'](_0x4b6e53){(_0x4b6e53=this['_cloneOperation'](_0x4b6e53,this['_idsRoots']))['_execute']();const _0x3fb4e7=null===_0x4b6e53['_authorId']?null:_0x4b6e53['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e695e=_0x4b6e53['getMovedRangeStart'](),_0x644fa4=_0x5e695e['parent'],_0x463451=_0x5e695e['offset'];!function _0x305460(_0xe6ce37,_0x5dc1be,_0x4c022a,_0x4e09e7){for(let _0x3887ee=_0x4c022a;_0x3887ee<_0x4e09e7;_0x3887ee++){const _0x5d501b=_0x5dc1be['getChild'](_0x3887ee);_0x5d501b['is']('element','$text')?_0xe6ce37['set'](_0x5d501b['getAttribute']('vid'),{'userId':_0x3fb4e7}):(_0xe6ce37['set'](_0x5d501b['getAttribute']('vid_start'),{'userId':_0x3fb4e7}),_0x305460(_0xe6ce37,_0x5d501b,0x0,_0x5d501b['childCount']),_0xe6ce37['set'](_0x5d501b['getAttribute']('vid_end'),{'userId':_0x3fb4e7}));}}(this['_touched'],_0x644fa4,_0x463451,_0x463451+_0x4b6e53['howMany']);}['_handleMergeOperation'](_0x1da3cb){const _0xa837c4=null===(_0x1da3cb=this['_cloneOperation'](_0x1da3cb,this['_idsRoots']))['_authorId']?null:_0x1da3cb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f91e8=_0x1da3cb['targetPosition']['parent'],_0x5417fa=_0x1da3cb['sourcePosition']['parent'],_0x4f0a14=_0x2f91e8['getAttribute']('vid_end'),_0x3916ef=_0x5417fa['getAttribute']('vid_start');_0x2f91e8['_setAttribute']('vid_end',_0x5417fa['getAttribute']('vid_end')),_0x5417fa['_setAttribute']('vid_end',_0x4f0a14),this['_touched']['set'](_0x3916ef,{'userId':_0xa837c4}),this['_touched']['set'](_0x4f0a14,{'userId':_0xa837c4}),_0x1da3cb['_execute']();}['_handleSplitOperation'](_0x345e41){const _0x3a3b7d=null===(_0x345e41=this['_cloneOperation'](_0x345e41,this['_idsRoots']))['_authorId']?null:_0x345e41['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f182b=_0x345e41['graveyardPosition'],_0x587baf=_0x345e41['splitPosition']['parent'];_0x345e41['_execute']();const _0x53fd0d=_0x587baf['getAttribute']('vid_end'),_0x1ee012=_0x345e41['insertionPosition']['nodeAfter'];if(_0x3f182b){const _0x1d7d64=_0x1ee012['getAttribute']('vid_end'),_0x455db5=_0x587baf['getAttribute']('vid_end');_0x587baf['_setAttribute']('vid_end',_0x1d7d64),_0x1ee012['_setAttribute']('vid_end',_0x455db5),this['_touched']['set'](_0x587baf['getAttribute']('vid_end'),{'userId':_0x3a3b7d}),this['_touched']['set'](_0x1ee012['getAttribute']('vid_start'),{'userId':_0x3a3b7d});}else{const _0x185e54=this['_revisionId']++,_0x1681db=this['_revisionId']++;_0x587baf['_setAttribute']('vid_end',_0x185e54),_0x1ee012['_setAttribute']('vid_start',_0x1681db),_0x1ee012['_setAttribute']('vid_end',_0x53fd0d),this['_touched']['set'](_0x185e54,{'userId':_0x3a3b7d}),this['_touched']['set'](_0x1681db,{'userId':_0x3a3b7d});}}['_handleMarkerOperation'](_0x4fbeef){if(!_0x4fbeef['affectsData'])return;const _0xf71383=(_0x4fbeef=this['_cloneOperation'](_0x4fbeef,this['_diffRoots']))['oldRange']?_0x4fbeef['oldRange']['root']:null,_0x13f23d=_0x4fbeef['newRange']?_0x4fbeef['newRange']['root']:null;_0xf71383&&this['_markers']['delete'](_0x4fbeef['name']),_0x13f23d&&this['_markers']['set'](_0x4fbeef['name'],_0x4fbeef['newRange']['clone']());const _0x4b5967=null===_0x4fbeef['_authorId']?null:_0x4fbeef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x251f84=_0x4fbeef['name'];if(!this['_touchedMarkers']['has'](_0x251f84))return void this['_touchedMarkers']['set'](_0x251f84,{'range':_0x4fbeef['oldRange'],'userId':_0x4b5967});const _0x1f2e6f=this['_touchedMarkers']['get'](_0x251f84),_0x60a79b=_0x1f2e6f['range'],_0x5e5a6e=_0x4fbeef['newRange'];null==_0x60a79b&&null==_0x5e5a6e||_0x60a79b&&_0x5e5a6e&&_0x60a79b['isEqual'](_0x5e5a6e)?this['_touchedMarkers']['delete'](_0x4fbeef['name']):_0x1f2e6f['userId']=_0x4b5967;}['_handleRootOperation'](_0x3e73ae,_0x5ba692){this['_diffRoots']['has'](_0x3e73ae['rootName'])?this['_diffRoots']['get'](_0x3e73ae['rootName'])['_isAttached']=_0x3e73ae['isAdd']:(this['_diffRoots']['set'](_0x3e73ae['rootName'],P(_0x3e73ae['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3e73ae['rootName'],{}),_0x5ba692&&this['_idsRoots']['set'](_0x3e73ae['rootName'],P(_0x3e73ae['rootName'],!0x0)));const _0x25a623=null===_0x3e73ae['_authorId']?null:_0x3e73ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51c4d6=this['_touchedRoots']['get'](_0x3e73ae['rootName']);_0x51c4d6&&_0x51c4d6['userId']===_0x25a623?this['_touchedRoots']['delete'](_0x3e73ae['rootName']):this['_touchedRoots']['set'](_0x3e73ae['rootName'],{'userId':_0x25a623,'isAttached':_0x3e73ae['isAdd']});}['_handleRootAttributeOperation'](_0x42be74){const _0x3f0af5=this['_diffRootsAttributes']['get'](_0x42be74['root']['rootName']);null===_0x42be74['newValue']?delete _0x3f0af5[_0x42be74['key']]:_0x3f0af5[_0x42be74['key']]=_0x42be74['newValue'];}}function N(_0x3279dc){const _0x26bdd1=P(_0x3279dc['rootName'],_0x3279dc['isAttached']());for(const _0x37351d of _0x3279dc['getChildren']()){const _0x23c8d5=_0x37351d['_clone'](!0x0);_0x26bdd1['_appendChild'](_0x23c8d5);}return _0x26bdd1;}function P(_0x389ee5,_0x58a39c=!0x0){const _0x5dacb4=new vt();return _0x5dacb4['rootName']=_0x389ee5,_0x5dacb4['_isAttached']=_0x58a39c,_0x5dacb4['isAttached']=()=>_0x5dacb4['_isAttached'],_0x5dacb4;}function F(_0x2ac31a,_0x10d38f,_0x463501){const _0x1fd60d='elementEnd'==_0x2ac31a['type']?_0x463501['createPositionAt'](_0x2ac31a['item'],'end'):_0x463501['createPositionBefore'](_0x2ac31a['item']);return _0x463501['createPositionFromPath'](_0x10d38f,_0x1fd60d['path'],_0x1fd60d['stickiness']);}function B(_0x5913da,_0x269de1,_0x5965eb){const _0x191a47='elementStart'==_0x5913da['type']?_0x5965eb['createPositionAt'](_0x5913da['item'],0x0):_0x5965eb['createPositionAfter'](_0x5913da['item']);return _0x5965eb['createPositionFromPath'](_0x269de1,_0x191a47['path'],_0x191a47['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4ca083,_0x144bb3){super(_0x4ca083),this['focusTracker']=new _0x2898dd(),this['keystrokes']=new _0x1a390b(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x144bb3),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0xced402(this);}['render'](){super['render'](),_0x1ba247({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x69d86c=_0x356065=>_0x356065['stopPropagation']();this['keystrokes']['set']('arrowright',_0x69d86c),this['keystrokes']['set']('arrowleft',_0x69d86c),this['keystrokes']['set']('arrowup',_0x69d86c),this['keystrokes']['set']('arrowdown',_0x69d86c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x29bc60){this['revisionNameInputView']['fieldView']['element']['value']=_0x29bc60['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4bff32){const _0x1511aa=new _0x38e6de(this['locale'],_0x1e4d55),_0x57e6d9=_0x1511aa['fieldView'];_0x57e6d9['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x40bdff=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4bff32&&(_0x40bdff+='\x20('+g(this['locale'],'optional')+')'),(_0x1511aa['label']=_0x40bdff,_0x57e6d9['on']('input',()=>{this['revisionNameInputValue']=_0x57e6d9['element']['value']['trim']();}),_0x1511aa);}}class f extends _0x59ac4e{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x161949=this['editor'],_0x3a557a=_0x161949['plugins']['get']('RevisionTracker');_0x161949['ui']['componentFactory']['add']('revisionHistory',_0x5930ca=>{const _0xceef17=_0xd7ef31(_0x5930ca),_0x412910=_0xceef17['panelView']['children'],_0x2f8284=new _0x2f2fec(_0x5930ca),_0xf273b8=new _0x1dbec9(_0x5930ca),_0x117bcd=new te(_0x5930ca),_0xc1626d=new _0x1dbec9(_0x5930ca),_0x4a809d=new te(_0x5930ca);return _0xceef17['bind']('isEnabled')['to'](_0x3a557a,'isReady',_0x3a557a,'isEnabled',_0x161949,'isReadOnly',(_0x574f1b,_0x3f58dd,_0x4a7d94)=>_0x574f1b&&_0x3f58dd&&!_0x4a7d94),_0xceef17['buttonView']['set']({'icon':_0x3a8444,'label':g(_0x5930ca,'Revision\x20history'),'tooltip':!0x0}),_0x117bcd['set']({'label':g(_0x5930ca,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x117bcd['bind']('isEnabled')['to'](_0x3a557a,'isReady',_0x3a557a,'isEnabled',_0x161949,'isReadOnly',(_0x4b13e1,_0x10d9e7,_0x4a0504)=>_0x4b13e1&&_0x10d9e7&&!_0x4a0504),_0x117bcd['on']('execute',()=>this['_showDialog']()),_0x4a809d['set']({'label':g(_0x5930ca,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4a809d['bind']('isEnabled')['to'](_0x3a557a,'isReady',_0x161949,'isReadOnly',(_0x180425,_0x1cf654)=>_0x180425&&!_0x1cf654),_0x4a809d['on']('execute',()=>{_0x161949['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xceef17['isOpen']=!0x1,_0x161949['editing']['view']['focus']();}),_0xf273b8['children']['add'](_0x117bcd),_0xc1626d['children']['add'](_0x4a809d),_0x2f8284['role']='menu',_0x2f8284['items']['addMany']([_0xf273b8,_0xc1626d]),_0x412910['add'](_0x2f8284),_0xceef17;}),_0x161949['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x17cbec=this['editor'],_0x292ace=_0x17cbec['locale'],_0x2ae5e2=new _0x1fa441(_0x292ace),_0x22dd12=new _0x68c44a(_0x292ace);_0x2ae5e2['buttonView']['set']({'icon':_0x3a8444,'label':g(_0x292ace,'Revision\x20history')});const _0x191c8c=new _0x3faf0a(_0x292ace,_0x2ae5e2),_0x27f2f4=new _0x29944e(_0x292ace);_0x27f2f4['set']({'label':g(_0x292ace,'Save\x20current\x20revision')}),_0x27f2f4['delegate']('execute')['to'](_0x2ae5e2),_0x27f2f4['on']('execute',()=>{this['_showDialog']();}),_0x191c8c['children']['add'](_0x27f2f4),_0x22dd12['items']['add'](_0x191c8c);const _0x275298=new _0x3faf0a(_0x292ace,_0x2ae5e2),_0x2dee25=new _0x29944e(_0x292ace);return _0x2dee25['set']({'label':g(_0x292ace,'Open\x20revision\x20history')}),_0x2dee25['delegate']('execute')['to'](_0x2ae5e2),_0x2dee25['on']('execute',()=>{_0x17cbec['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x275298['children']['add'](_0x2dee25),_0x22dd12['items']['add'](_0x275298),_0x2ae5e2['panelView']['children']['add'](_0x22dd12),_0x2ae5e2;}['_showDialog'](){const _0x1fc20d=this['editor'],_0x2236ee=_0x1fc20d['locale'],_0x59fecf=_0x1fc20d['plugins']['get']('Dialog'),_0x3be7e7=_0x1fc20d['plugins']['get']('RevisionTracker');function _0x310ab1(_0x15fc64){_0x1fc20d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x15fc64['revisionName']?_0x15fc64['revisionNameInputView']['errorText']=g(_0x2236ee,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1fc20d['plugins']['get'](u)['saveRevision']({'name':_0x15fc64['revisionName']}),_0x59fecf['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x310ab1(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x59fecf['show']({'id':'revisionSave','title':g(_0x2236ee,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1fc20d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x59fecf['hide']()},{'label':g(_0x1fc20d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x54ed12){_0x54ed12['bind']('isEnabled')['to'](_0x3be7e7,'isReady',_0x3be7e7,'isEnabled',_0x1fc20d,'isReadOnly',(_0x3cd240,_0x3a1ea9,_0x1e66e6)=>_0x3cd240&&_0x3a1ea9&&!_0x1e66e6);},'onExecute':()=>_0x310ab1(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3d43ed=this['editor'],_0x417f32=_0x3d43ed['locale'];this['_saveRevisionFormView']=new hs(_0x417f32,_0x3d43ed['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x31c1a6,_0x387ceb){super(_0x31c1a6),this['_model']=_0x387ceb,this['changeId']=_0x387ceb['id'];const _0x56dea0=this['bindTemplate'],_0x18ac18=g(_0x31c1a6,_0x387ceb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x387ceb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x387ceb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x56dea0['to']('type',_0x4c9775=>'ck-revision-change__'+_0x4c9775)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x18ac18}]},{'text':'\x20'+_0x387ceb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3787d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1a630d){super(),this['id']=_0x1a630d['id']||_0x2c0587(),this['author']=_0x1a630d['author'],this['type']=_0x1a630d['type'],this['data']=_0x1a630d['data']||{},this['rootName']=_0x1a630d['rootName'],this['set']('createdAt',_0x1a630d['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(_0x2a724d,_0x3eb8d9){this['newRevisionId']=_0x2a724d,this['oldRevisionId']=_0x3eb8d9,this['changes']=new _0x18d259();}['_setChanges'](_0xcf5f89){for(const _0x5604c7 of _0xcf5f89)this['changes']['add'](_0x5604c7);}}class m extends _0x59ac4e{['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[_0x513552,_0x2ba9a1,I,V];}constructor(_0x5b6533){super(_0x5b6533),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',(_0x4713e6,_0x3162eb,_0x14244e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x189a4d=>{for(const _0x1e14f6 of this['editor']['editing']['view']['document']['roots'])_0x14244e?_0x189a4d['removeClass']('ck-editor__editable__overlay',_0x1e14f6):_0x189a4d['addClass']('ck-editor__editable__overlay',_0x1e14f6);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x32725c=>null!==_0x32725c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4b0adf,_0x5b1662,_0x564afc)=>_0x4b0adf&&_0x564afc?_0x5b1662['changes']['getIndex'](_0x564afc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x52f3d9,_0xd9f308)=>_0x52f3d9?_0xd9f308['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2ba9a1);}['init'](){const _0x12beff=this['editor'],_0x2ca145=new wt(_0x12beff,{'direction':'backward'}),_0x587db2=new wt(_0x12beff,{'direction':'forward'});(_0x12beff['commands']['add']('showPreviousChange',_0x2ca145),_0x12beff['commands']['add']('showNextChange',_0x587db2),_0x12beff['commands']['add']('restoreRevision',new mt(_0x12beff)),this['on']('change:numberOfChanges',()=>{_0x2ca145['refresh'](),_0x587db2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x12beff['enableReadOnlyMode']('revision-viewer'),_0x12beff['plugins']['has']('WidgetToolbarRepository'))&&_0x12beff['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x220a8a){return await this['_utils']['loadRevisionData'](_0x220a8a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x220a8a);}async['getRevisionRootsAttributes'](_0x59802f){return await this['_utils']['loadRevisionData'](_0x59802f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x59802f);}async['compare'](_0x493212,_0x45c8a3,_0x28092f=!0x1){if(!this['isEnabled'])return;const _0x51b583=this['diff'],_0x24e91c=this['repository'],_0x315f1c='string'==typeof _0x493212?_0x24e91c['getRevision'](_0x493212):_0x493212,_0x5d3874='string'==typeof _0x45c8a3?_0x24e91c['getRevision'](_0x45c8a3):_0x45c8a3,_0x127120=_0x315f1c['id'],_0x10cfce=_0x5d3874?_0x5d3874['id']:null;if(!_0x28092f&&this['diff']&&this['diff']['newRevisionId']===_0x127120&&this['diff']['oldRevisionId']===_0x10cfce)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x127120,_0x10cfce);const _0x423930=this['_getRevisionsRange'](_0x315f1c,_0x5d3874,!0x0)['map'](_0x51122d=>this['_utils']['loadRevisionData'](_0x51122d,this['adapter']));return _0x423930['push'](new Promise(_0x1ac9e3=>{setTimeout(_0x1ac9e3,0x14);})),Promise['all'](_0x423930)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x52a8a0=this['_getDiff'](_0x127120,_0x10cfce);for(const _0x4114ed of _0x52a8a0['changes'])this['_changeIdToChange']['set'](_0x4114ed['id'],_0x4114ed);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x419331=>{for(const _0x1856d3 of this['editor']['model']['document']['getRootNames']())_0x419331['detachRoot'](_0x1856d3);for(const _0xfce87f of Object['keys'](_0x52a8a0['model'])){const _0x57b832=_0x419331['addRoot'](_0xfce87f);for(const _0x2b540c of Object['keys'](_0x52a8a0['attributes'][_0xfce87f]))_0x419331['setAttribute'](_0x2b540c,_0x52a8a0['attributes'][_0xfce87f][_0x2b540c],_0x57b832);_0x419331['insert'](_0x52a8a0['model'][_0xfce87f],_0x57b832,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x52a8a0['changes'])),this['isReady']=!0x0;})['catch'](_0xb222f7=>{console['error'](_0xb222f7),this['_cleanUp'](),_0x51b583&&(this['diff']=_0x51b583),this['isReady']=!0x0;});}['addRevisionData'](_0x12c929,_0x3ffb30){const _0x322b89=this['repository']['createRevision'](_0x12c929);return _0x322b89['on']('_update',(_0x18c5fa,_0x30bd1f,_0x10105a)=>_0x3ffb30(_0x30bd1f,_0x10105a,_0x322b89)),this['repository']['addRevision'](_0x322b89),_0x322b89;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x133db5=>{for(const _0x26f821 of this['editor']['model']['document']['getRootNames']())_0x133db5['detachRoot'](_0x26f821);});}['_sortAndFilterDiffChanges'](_0x5ec4ea){const _0x3941b6=[],_0x249d07=new Map();for(const _0x5f1206 of this['editor']['model']['document']['getRootNames']()){const _0x1eb5d3=this['editor']['editing']['view']['getDomRoot'](_0x5f1206);if(!_0x1eb5d3)continue;const _0x2f04d1=_0x1eb5d3['getClientRects']()['item'](0x0);_0x2f04d1&&(_0x3941b6['push'](_0x5f1206),_0x249d07['set'](_0x5f1206,_0x2f04d1));}return _0x3941b6['sort']((_0x18b3be,_0x3ca8b0)=>{const _0x58bc9d=_0x249d07['get'](_0x18b3be),_0x5d59db=_0x249d07['get'](_0x3ca8b0);return _0x58bc9d['y']-_0x5d59db['y']||_0x58bc9d['x']-_0x5d59db['x'];}),(_0x5ec4ea=_0x5ec4ea['filter'](_0xf8bf6c=>_0x3941b6['includes'](_0xf8bf6c['rootName'])))['sort']((_0x529e63,_0x1b0544)=>_0x3941b6['indexOf'](_0x529e63['rootName'])-_0x3941b6['indexOf'](_0x1b0544['rootName'])),_0x5ec4ea;}['_makeTape'](_0x3d63c7){const _0x763dc=Array['from'](_0x3d63c7['markers'])['filter'](([_0x243edf,_0x30c924])=>_0x243edf['startsWith']('revision:')&&!_0x30c924['isCollapsed']),_0x25ec2e=Array['from'](this['editor']['model']['createRangeIn'](_0x3d63c7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x763dc['length'])for(const _0x4aa1f3 of _0x25ec2e){const [_0x411538,_0x524cbf]=_0x763dc[0x0],[,_0x5d930d,_0x4fa833]=_0x411538['split'](':');if(_0x524cbf['end']['isEqual'](_0x4aa1f3['nextPosition'])&&_0x763dc['shift'](),(_0x4aa1f3['previousPosition']['isEqual'](_0x524cbf['start'])||_0x4aa1f3['previousPosition']['isAfter'](_0x524cbf['start']))&&('insertion'==_0x5d930d?_0x4aa1f3['isAdded']={'userId':_0x4fa833}:'deletion'==_0x5d930d&&(_0x4aa1f3['isRemoved']={'userId':_0x4fa833})),0x0==_0x763dc['length'])break;}return _0x25ec2e;}['_refreshStartEndIndex'](_0x37f7c9){const _0x21eacd=new Map();for(let _0x296ae3=0x0;_0x296ae3<_0x37f7c9['length'];_0x296ae3++)'text'===_0x37f7c9[_0x296ae3]['type']?(_0x37f7c9[_0x296ae3]['item']['startIndex']=_0x296ae3,_0x37f7c9[_0x296ae3]['item']['endIndex']=_0x296ae3):('elementStart'===_0x37f7c9[_0x296ae3]['type']?_0x37f7c9[_0x296ae3]['item']['startIndex']=_0x296ae3:'elementEnd'===_0x37f7c9[_0x296ae3]['type']&&(_0x37f7c9[_0x296ae3]['item']['endIndex']=_0x296ae3),_0x21eacd['set'](_0x37f7c9[_0x296ae3]['id'],_0x296ae3));for(const _0x3248af of _0x21eacd['values']())'elementStart'===_0x37f7c9[_0x3248af]['type']?_0x37f7c9[_0x3248af]['item']['endIndex']=_0x21eacd['get'](_0x37f7c9[_0x3248af]['pairId']):'elementEnd'===_0x37f7c9[_0x3248af]['type']&&(_0x37f7c9[_0x3248af]['item']['startIndex']=_0x21eacd['get'](_0x37f7c9[_0x3248af]['pairId']));}['_processTape'](_0x4ed8ee){for(let _0x1fdc5b=0x0;_0x1fdc5b<_0x4ed8ee['length'];_0x1fdc5b++){if('elementStart'===_0x4ed8ee[_0x1fdc5b]['type'])_0x4ed8ee[_0x1fdc5b]['item']['startIndex']=_0x1fdc5b;else{if('elementEnd'===_0x4ed8ee[_0x1fdc5b]['type']){_0x4ed8ee[_0x1fdc5b]['item']['endIndex']=_0x1fdc5b;const _0x217f08=_0x4ed8ee[_0x1fdc5b]['item']['startIndex'];_0x4ed8ee[_0x217f08]['pairId']=_0x4ed8ee[_0x1fdc5b]['id'],_0x4ed8ee[_0x1fdc5b]['pairId']=_0x4ed8ee[_0x217f08]['id'];}else _0x4ed8ee[_0x1fdc5b]['item']['startIndex']=_0x1fdc5b,_0x4ed8ee[_0x1fdc5b]['item']['endIndex']=_0x1fdc5b,_0x4ed8ee[_0x1fdc5b]['pairId']=null;}_0x4ed8ee[_0x1fdc5b]['markersStart']||(_0x4ed8ee[_0x1fdc5b]['markersStart']=[],_0x4ed8ee[_0x1fdc5b]['markersEnd']=[]);}}['_markInsertions'](_0x1f7dd7,_0x3ded83){const _0x3a63d8=_0x1f7dd7['filter'](_0x3ab30c=>!_0x3ab30c['isAdded']);for(let _0x19e30e=0x0;_0x19e30e<_0x3ded83['length'];_0x19e30e++)_0x3ded83[_0x19e30e]['isAdded']&&(_0x3a63d8[_0x19e30e]['isAdded']=_0x3ded83[_0x19e30e]['isAdded']);}['_getDiff'](_0x360258,_0x15c1ab=null){const _0x689506=this['repository']['getRevision'](_0x360258),_0x551c42=_0x15c1ab?this['repository']['getRevision'](_0x15c1ab):null,_0x54beef=this['_getRevisionsRange'](_0x689506,_0x551c42),_0x471d0a=_0x54beef[_0x54beef['length']-0x1],_0x208bce=new Map(),_0x1ee1c7={'model':{},'attributes':{},'changes':[]},_0x25fb49=new Set(),_0x14c082=new Map();for(let _0x253cb7=_0x54beef['length']-0x1;_0x253cb7>=0x0;_0x253cb7--){const _0x3f8f3f=_0x54beef[_0x253cb7];for(const _0x482087 of Object['keys'](_0x3f8f3f['diffData']))if(_0x3f8f3f['diffData'][_0x482087]['attachChange']){const _0x2bba93=_0x3f8f3f['diffData'][_0x482087]['attachChange'];_0x2bba93['isAttached']?(_0x25fb49['add'](_0x482087),_0x14c082['has'](_0x482087)&&_0x14c082['get'](_0x482087)['userId']==_0x2bba93['userId']?_0x14c082['delete'](_0x482087):_0x14c082['set'](_0x482087,_0x2bba93)):_0x14c082['has'](_0x482087)?(_0x25fb49['delete'](_0x482087),_0x14c082['delete'](_0x482087)):(_0x25fb49['add'](_0x482087),_0x14c082['set'](_0x482087,_0x2bba93));}else _0x25fb49['add'](_0x482087);}for(const _0x57525b of _0x25fb49){const _0x48d302=_0x14c082['has'](_0x57525b)&&!_0x14c082['get'](_0x57525b)['isAttached'];let _0x23d7e2=_0x48d302?_0x54beef['length']-0x1:0x0;const _0x54c725=_0x48d302?-0x1:0x1;for(;_0x54beef[_0x23d7e2];){const _0x4990f1=_0x54beef[_0x23d7e2];if(_0x4990f1['diffData'][_0x57525b]){const _0x517bb3=_0x48d302?_0x4990f1['diffData'][_0x57525b]['attributesBefore']:_0x4990f1['diffData'][_0x57525b]['attributesAfter'];_0x1ee1c7['attributes'][_0x57525b]=_0x517bb3?_0x45cab9(_0x517bb3):{};break;}_0x23d7e2+=_0x54c725;}}for(const _0x42cd83 of _0x54beef){_0x42cd83['model']={};for(const _0xfe99a9 of _0x42cd83['authors'])_0x208bce['set'](_0xfe99a9['id'],_0xfe99a9);for(const _0x152b5f of _0x25fb49){const _0x258c24=_0x42cd83['diffData'][_0x152b5f]?_0x42cd83['diffData'][_0x152b5f]['insertions']:'[]',_0x1443af=_0x42cd83['diffData'][_0x152b5f]?_0x42cd83['diffData'][_0x152b5f]['deletions']:'[]';_0x42cd83['model'][_0x152b5f]={'insertions':this['_utils']['_makeModelFromViewString'](_0x258c24),'deletions':this['_utils']['_makeModelFromViewString'](_0x1443af)};}}for(const _0xadc881 of _0x25fb49){let _0x55414b=null,_0x341d1f=0x0;const _0x4d992a=new Map(Array['from'](_0x689506['model'][_0xadc881]['insertions']['markers'])['filter'](([_0x5f2540])=>!_0x5f2540['startsWith']('revision:')));let _0x1a3e0f=0x0;for(const _0x4330c5 of _0x54beef){const _0x1986b0=this['_makeTape'](_0x4330c5['model'][_0xadc881]['insertions']);_0x4330c5==_0x689506?(_0x55414b=_0x1986b0,_0x341d1f=_0x55414b['length'],_0x55414b['forEach'](_0x53679c=>{_0x53679c['id']=_0x1a3e0f++;}),this['_processTape'](_0x55414b)):this['_markInsertions'](_0x55414b,_0x1986b0);const _0x5e3a6a=_0x55414b['filter'](_0x213c25=>!_0x213c25['isAdded'])['map'](_0x33bd8e=>_0x33bd8e['id']);let _0x4ffeb4=0x0;const _0xa5d63b=this['_makeTape'](_0x4330c5['model'][_0xadc881]['deletions']);_0xa5d63b['forEach'](_0x5316d0=>{_0x5316d0['isRemoved']?_0x5316d0['id']=_0x341d1f++:_0x5316d0['id']=_0x5e3a6a[_0x4ffeb4++];}),this['_processTape'](_0xa5d63b),this['_setDistance'](_0x55414b,'isAdded'),this['_setDistance'](_0xa5d63b,'isRemoved'),_0x4330c5==_0x689506&&this['_markMarkers'](_0x55414b,_0x4d992a),_0x55414b=this['_joinTapes'](_0x55414b,_0xa5d63b),this['_refreshStartEndIndex'](_0x55414b),this['_setDistance'](_0x55414b,'isRemoved');}_0x55414b=_0x55414b['filter'](_0x49227a=>!(_0x49227a['isAdded']&&_0x49227a['isRemoved']));const _0x1897ec=new Map(_0x471d0a['model'][_0xadc881]['deletions']['markers']),_0x3cef64=new Set(_0x4d992a['keys']());for(const _0x37d321 of _0x1897ec['keys']())_0x3cef64['delete'](_0x37d321);this['_markSuggestions'](_0x55414b,_0x3cef64),this['_fixObsoleteTags'](_0x55414b),_0x55414b=this['_removeMissingPairs'](_0x55414b),_0x55414b=this['_markMismatchedRemovedTags'](_0x55414b),_0x55414b=this['_removeUnsupportedChanges'](_0x55414b);const {root:_0x5d0797,changes:_0x2e6de3}=this['_makeModelFromTape'](_0x55414b,_0x208bce,_0xadc881);_0x1ee1c7['model'][_0xadc881]=_0x5d0797;const _0x4aac27=_0x14c082['get'](_0xadc881);if(_0x4aac27){const _0x2c12b5=_0x208bce['get'](_0x4aac27['userId']),_0x5825d1=new r({'author':_0x2c12b5,'type':_0x4aac27['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xadc881});_0x2e6de3['unshift'](_0x5825d1),_0x1ee1c7['attributes'][_0xadc881]['revisionHistoryAttachChange']=_0x5825d1['id'];}_0x1ee1c7['changes']=_0x1ee1c7['changes']['concat'](_0x2e6de3);}return _0x1ee1c7;}['_markMarkers'](_0x3d2021,_0x108293){for(let _0xfa29=0x0;_0xfa29<_0x3d2021['length'];_0xfa29++)for(const [_0x17e767,_0x383f35]of _0x108293)!_0x383f35['isCollapsed']&&_0x383f35['start']['isEqual'](_0x3d2021[_0xfa29]['previousPosition'])&&_0x3d2021[_0xfa29]['markersStart']['push'](_0x17e767),_0x383f35['end']['isEqual'](_0x3d2021[_0xfa29]['nextPosition'])&&_0x3d2021[_0xfa29]['markersEnd']['push'](_0x17e767);}['_joinTapes'](_0x4636d2,_0x2845f6){let _0x5f1af5=[],_0x2d843f=0x0,_0x24e446=0x0;for(;_0x2d843f<_0x4636d2['length']||_0x24e446<_0x2845f6['length'];){const _0x1c4273=_0x4636d2[_0x2d843f]||{},_0x1285d2=_0x2845f6[_0x24e446]||{};if(_0x1c4273['id']==_0x1285d2['id'])_0x2d843f++,_0x24e446++,_0x5f1af5['push'](_0x1c4273);else{if(_0x1285d2['isRemoved']&&_0x1c4273['isAdded']){const {commonTape:_0x3f7a1a,iEnd:_0xa81141,jEnd:_0x2e1ab0}=this['_threeWayMerge'](_0x4636d2,_0x2d843f,_0x2845f6,_0x24e446);_0x5f1af5=_0x5f1af5['concat'](_0x3f7a1a),_0x2d843f=_0xa81141,_0x24e446=_0x2e1ab0;}else _0x1285d2['isRemoved']?(_0x24e446++,_0x5f1af5['push'](_0x1285d2)):(_0x2d843f++,_0x5f1af5['push'](_0x1c4273));}}return _0x5f1af5;}['_markSuggestions'](_0x24cf1d,_0x2aedfb){const _0x59e68c=[];for(let _0x5c658e=0x0;_0x5c658e<_0x24cf1d['length'];_0x5c658e++){for(let _0x52bc7e=0x0;_0x52bc7e<_0x24cf1d[_0x5c658e]['markersStart']['length'];_0x52bc7e++){const _0x1fd5fd=_0x24cf1d[_0x5c658e]['markersStart'][_0x52bc7e];if(!_0x2aedfb['has'](_0x1fd5fd))continue;const {group:_0x3e6f48,type:_0x549a5d,authorId:_0x3753f7}=_0x5dd60a(_0x1fd5fd);'revision-suggestion'!=_0x3e6f48||'insertion'!=_0x549a5d&&'deletion'!=_0x549a5d||(_0x59e68c['unshift']({'type':_0x549a5d,'name':_0x1fd5fd,'userId':_0x3753f7}),_0x24cf1d[_0x5c658e]['markersStart']['splice'](_0x52bc7e,0x1),_0x52bc7e--);}_0x9704c8(_0x24cf1d[_0x5c658e]);for(let _0x5d5e2c=0x0;_0x5d5e2c<_0x24cf1d[_0x5c658e]['markersEnd']['length'];_0x5d5e2c++){const _0x6a2c9=_0x24cf1d[_0x5c658e]['markersEnd'][_0x5d5e2c];if(!_0x2aedfb['has'](_0x6a2c9))continue;const {group:_0x50d6a1,type:_0x394bdc}=_0x5dd60a(_0x6a2c9);if('revision-suggestion'!=_0x50d6a1||'insertion'!=_0x394bdc&&'deletion'!=_0x394bdc)continue;_0x24cf1d[_0x5c658e]['markersEnd']['splice'](_0x5d5e2c,0x1),_0x5d5e2c--;const _0x23bcb1=_0x59e68c['findIndex'](_0x43fb8a=>_0x43fb8a['name']==_0x6a2c9);_0x23bcb1>-0x1&&_0x59e68c['splice'](_0x23bcb1,0x1);}}function _0x5dd60a(_0x1c8c4b){const _0x178282=_0x1c8c4b['split'](':');return{'group':_0x178282[0x0],'type':_0x178282[0x1],'subType':_0x178282['length']>=0x5?_0x178282[0x2]:null,'id':_0x178282['length']<0x5?_0x178282[0x2]:_0x178282[0x3],'authorId':_0x178282['length']<0x5?_0x178282[0x3]:_0x178282[0x4],'markerCount':0x6==_0x178282['length']?_0x178282[0x5]:null};}function _0x9704c8(_0x57d90b){for(let _0x323e92=0x0;_0x323e92<_0x59e68c['length'];_0x323e92++){if(_0x57d90b['isAdded']&&'insertion'==_0x59e68c[_0x323e92]['type'])return _0x57d90b['isAddSuggestion']=_0x59e68c[_0x323e92],void delete _0x57d90b['isAdded'];if(!_0x57d90b['isAdded']&&!_0x57d90b['isRemoved']&&'deletion'==_0x59e68c[_0x323e92]['type'])return void(_0x57d90b['isRemoveSuggestion']=_0x59e68c[_0x323e92]);}}}['_setDistance'](_0xe78b47,_0x26d243){let _0x260da6=0x0,_0x42e5b2=!0x1;const _0x153b6f=new Map();for(const _0x35d787 of _0xe78b47)_0x35d787[_0x26d243]?_0x42e5b2&&(_0x260da6++,_0x42e5b2=!0x1):(_0x260da6++,_0x42e5b2=!0x0),_0x153b6f['set'](_0x35d787['id'],_0x260da6);for(let _0x7944f9=0x0;_0x7944f9<_0xe78b47['length'];_0x7944f9++){if('isRemoved'==_0x26d243&&_0xe78b47[_0x7944f9]['isAdded']||'isAdded'==_0x26d243&&_0xe78b47[_0x7944f9]['isRemoved'])continue;if('text'==_0xe78b47[_0x7944f9]['type']){_0xe78b47[_0x7944f9]['distance']=0x0;continue;}const _0x3a06ee=_0x153b6f['get'](_0xe78b47[_0x7944f9]['pairId']),_0x5b557e=_0x153b6f['get'](_0xe78b47[_0x7944f9]['id']);_0xe78b47[_0x7944f9]['distance']=_0x3a06ee-_0x5b557e;}}['_getRevisionsRange'](_0x29fc40,_0x233569,_0x56f603=!0x1){const _0x9c85e4=[];let _0x3fcfdc=this['repository']['getIndex'](_0x29fc40),_0x9317ca=this['repository']['getIndex'](_0x233569);for(-0x1==_0x9317ca&&(_0x9317ca=this['repository']['_revisions']['length'],_0x56f603=!0x1);_0x3fcfdc<_0x9317ca;)_0x9c85e4['push'](this['repository']['getRevision'](_0x3fcfdc)),_0x3fcfdc++;return _0x56f603&&_0x9c85e4['push'](this['repository']['getRevision'](_0x3fcfdc)),_0x9c85e4;}['_threeWayMerge'](_0x1da89a,_0x24674a,_0x2bb646,_0x12afe1){const _0xe8ab2a=this['editor']['model']['schema'];let _0x293221=_0x24674a;for(;_0x1da89a[_0x293221]&&_0x1da89a[_0x293221]['isAdded'];)_0x293221++;let _0x113385=_0x12afe1;for(;_0x2bb646[_0x113385]&&_0x2bb646[_0x113385]['isRemoved'];)_0x113385++;_0x10c668(_0x1da89a,_0x24674a,_0x293221),_0x10c668(_0x2bb646,_0x12afe1,_0x113385);const _0xeec470=_0x2bb646['slice'](_0x12afe1,_0x113385)['concat'](_0x1da89a['slice'](_0x24674a,_0x293221));return _0xeec470['sort']((_0x1241fd,_0x5ce799)=>_0x1241fd['side']!=_0x5ce799['side']?_0x1241fd['side']-_0x5ce799['side']:_0x1241fd['level']!=_0x5ce799['level']?_0x1241fd['level']-_0x5ce799['level']:_0x1241fd['distance']!=_0x5ce799['distance']?_0x5ce799['distance']-_0x1241fd['distance']:!!_0x1241fd['isAdded']!=!!_0x5ce799['isAdded']?-0x1==_0x1241fd['side']||0x0==_0x1241fd['side']?_0x1241fd['isAdded']?-0x1:0x1:_0x1241fd['isAdded']?0x1:-0x1:_0x1241fd['index']-_0x5ce799['index']),{'commonTape':_0xeec470,'iEnd':_0x293221,'jEnd':_0x113385};function _0x10c668(_0x105ef7,_0x270b7b,_0x285c9e){let _0x421527=-0x1,_0x1c21e6=Number['POSITIVE_INFINITY'],_0x2b67c8=!0x0;for(let _0x3b018d=_0x270b7b;_0x3b018d<_0x285c9e;_0x3b018d++)if(_0xe8ab2a['isInline'](_0x105ef7[_0x3b018d]['item'])||(_0x2b67c8=!0x1),_0x105ef7[_0x3b018d]['item']['startIndex']<_0x270b7b&&(_0x421527=_0x3b018d),_0x105ef7[_0x3b018d]['item']['endIndex']>=_0x285c9e){_0x1c21e6=_0x3b018d;break;}_0x2b67c8&&(_0x421527=_0x285c9e-0x1);for(let _0xd25b56=_0x270b7b;_0xd25b56<_0x285c9e;_0xd25b56++)_0x105ef7[_0xd25b56]['side']=_0xd25b56<=_0x421527?-0x1:_0xd25b56<_0x1c21e6?0x0:0x1,_0x105ef7[_0xd25b56]['index']=_0xd25b56;let _0x194adf=0x0;for(let _0x53ef7d=_0x270b7b;_0x53ef7d<=_0x421527;_0x53ef7d++)0x0==_0x105ef7[_0x53ef7d]['distance']?_0x105ef7[_0x53ef7d]['level']=_0x194adf:(_0x194adf++,_0x105ef7[_0x53ef7d]['level']=_0x194adf,_0x194adf++);for(let _0x1c1cb6=_0x270b7b;_0x1c1cb6<_0x285c9e;_0x1c1cb6++)0x0==_0x105ef7[_0x1c1cb6]['side']&&(_0x105ef7[_0x1c1cb6]['level']=_0x194adf);_0x194adf=0x0;for(let _0x4e0318=_0x285c9e-0x1;_0x4e0318>=_0x1c21e6;_0x4e0318--)0x0==_0x105ef7[_0x4e0318]['distance']?_0x105ef7[_0x4e0318]['level']=_0x194adf:(_0x194adf--,_0x105ef7[_0x4e0318]['level']=_0x194adf,_0x194adf--);}}['_fixObsoleteTags'](_0x357422){const _0x3d0562=new Map(),_0x3bb24b=this['editor']['model']['schema'];for(let _0x287174=0x1;_0x287174<_0x357422['length'];_0x287174++){let _0xa0cd44,_0x152e69,_0x8bba15;const _0x5f0a45=_0x357422[_0x287174],_0x804c18=_0x357422[_0x287174-0x1];if('text'==_0x5f0a45['type'])continue;if(_0x5f0a45['type']!=_0x804c18['type'])continue;if(!_0x3bb24b['isBlock'](_0x804c18['item'])||_0x3bb24b['isLimit'](_0x804c18['item']))continue;if(!_0x3bb24b['isBlock'](_0x5f0a45['item'])||_0x3bb24b['isLimit'](_0x5f0a45['item']))continue;if((_0x357422[_0x287174]['isAdded']||_0x357422[_0x287174]['isAddSuggestion'])&&_0x357422[_0x287174-0x1]['isRemoved'])_0xa0cd44=_0x357422[_0x287174],_0x152e69=_0x357422[_0x287174-0x1],_0x8bba15=_0x287174-0x1;else{if(!_0x357422[_0x287174]['isRemoved']||!_0x357422[_0x287174-0x1]['isAdded']&&!_0x357422[_0x287174-0x1]['isAddSuggestion'])continue;_0xa0cd44=_0x357422[_0x287174-0x1],_0x152e69=_0x357422[_0x287174],_0x8bba15=_0x287174;}const _0x255202=_0xa0cd44['level']==_0x152e69['level'],_0x35c8b9=Math['abs'](_0xa0cd44['level'])<Math['abs'](_0x152e69['level'])&&0x0==_0x152e69['distance'];(_0x255202||_0x35c8b9)&&(_0x3d0562['set'](_0x152e69['id'],_0xa0cd44['id']),_0x357422['splice'](_0x8bba15,0x1),_0x287174--,_0xa0cd44['isAdded']=!0x1);}for(let _0x8ba8bb=0x0;_0x8ba8bb<_0x357422['length'];_0x8ba8bb++)_0x3d0562['has'](_0x357422[_0x8ba8bb]['pairId'])&&(_0x357422[_0x8ba8bb]['pairId']=_0x3d0562['get'](_0x357422[_0x8ba8bb]['pairId']));}['_removeMissingPairs'](_0xa5df4d){const _0x596112=new Set(_0xa5df4d['map'](_0x1b3f5a=>_0x1b3f5a['id']));for(let _0x473e04=0x0;_0x473e04<_0xa5df4d['length'];_0x473e04++)_0x596112['has'](_0xa5df4d[_0x473e04]['pairId'])||0x0==_0xa5df4d[_0x473e04]['distance']||(_0xa5df4d[_0x473e04]['isIncorrect']=!0x0);return _0xa5df4d['filter'](_0x53bd39=>!_0x53bd39['isIncorrect']);}['_markMismatchedRemovedTags'](_0x35722f){const _0x3018c8=new Set();for(let _0x1b5540=0x0;_0x1b5540<_0x35722f['length'];_0x1b5540++){if(_0x3018c8['has'](_0x35722f[_0x1b5540]['id'])&&_0x35722f[_0x1b5540]['isRemoved']&&(_0x35722f[_0x1b5540]['isIncorrect']=!0x0),_0x35722f[_0x1b5540]['isIncorrect'])continue;if(0x0==_0x35722f[_0x1b5540]['distance'])continue;if('elementStart'!=_0x35722f[_0x1b5540]['type'])continue;if(null==_0x35722f[_0x1b5540]['pairId'])continue;let _0x58d91d=_0x1b5540+0x1,_0x22bbc4=0x0;for(;_0x35722f[_0x58d91d]['id']!=_0x35722f[_0x1b5540]['pairId'];)'elementStart'==_0x35722f[_0x58d91d]['type']?_0x22bbc4++:'elementEnd'==_0x35722f[_0x58d91d]['type']&&_0x22bbc4--,_0x58d91d++;if(0x0!=_0x22bbc4){if(_0x35722f[_0x1b5540]['isRemoved'])_0x35722f[_0x1b5540]['isIncorrect']=!0x0;else{for(;_0x58d91d!=_0x1b5540;)_0x35722f[_0x58d91d]['isRemoved']&&0x0!=_0x35722f[_0x58d91d]['distance']&&(_0x35722f[_0x58d91d]['isIncorrect']=!0x0,_0x3018c8['add'](_0x35722f[_0x58d91d]['pairId'])),_0x58d91d--;}}}return _0x35722f['filter'](_0x58dc82=>!_0x58dc82['isIncorrect']);}['_removeUnsupportedChanges'](_0x15039e){const _0x313f5c=this['editor']['model']['schema'];for(let _0x30483b=0x0;_0x30483b<_0x15039e['length'];_0x30483b++){if(!(_0x15039e[_0x30483b]['isAdded']||_0x15039e[_0x30483b]['isAddSuggestion']||_0x15039e[_0x30483b]['isRemoved']||_0x15039e[_0x30483b]['isRemoveSuggestion']))continue;if(0x0==_0x15039e[_0x30483b]['distance'])continue;const _0x3407fa=_0x15039e[_0x30483b]['item'];_0x313f5c['isBlock'](_0x3407fa)||_0x313f5c['isLimit'](_0x3407fa)||(_0x15039e[_0x30483b]['isAdded']&&delete _0x15039e[_0x30483b]['isAdded'],_0x15039e[_0x30483b]['isAddSuggestion']&&delete _0x15039e[_0x30483b]['isAddSuggestion'],_0x15039e[_0x30483b]['isRemoveSuggestion']&&delete _0x15039e[_0x30483b]['isRemoveSuggestion'],_0x15039e[_0x30483b]['isRemoved']&&(_0x15039e[_0x30483b]['isIncorrect']=!0x0));}return _0x15039e['filter'](_0x1b1265=>!_0x1b1265['isIncorrect']);}['_makeModelFromTape'](_0x9233a1,_0x3552bc,_0x4274a8){const _0x39fe64=new vt(),_0x5cceb2=[],_0x3bb58f=new Map(),_0x520313=this['editor']['model'],_0x9ba92a=_0x520313['schema'],_0x53c76e=[_0x39fe64],_0x3509d0={},_0x2d916d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x31776d=null;const _0x191f8b=[0x0];for(let _0x1847ab=0x0;_0x1847ab<_0x9233a1['length'];_0x1847ab++)if('elementStart'===_0x9233a1[_0x1847ab]['type']){_0x9233a1[_0x1847ab]['previousPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b);const _0x2ecd42=new ut(_0x9233a1[_0x1847ab]['item']['name'],_0x9233a1[_0x1847ab]['item']['getAttributes']());_0x53c76e[0x0]['_appendChild'](_0x2ecd42),_0x191f8b['push'](0x0),_0x53c76e['unshift'](_0x2ecd42),_0x9233a1[_0x1847ab]['nextPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b);}else'elementEnd'===_0x9233a1[_0x1847ab]['type']?(_0x53c76e['shift'](),_0x9233a1[_0x1847ab]['previousPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b),_0x191f8b['pop'](),_0x191f8b[_0x191f8b['length']-0x1]++,_0x9233a1[_0x1847ab]['nextPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b)):(_0x9233a1[_0x1847ab]['previousPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b),_0x31776d?_0x31776d['_data']+=_0x9233a1[_0x1847ab]['item']['data']:_0x31776d=new gt(_0x9233a1[_0x1847ab]['item']['data'],_0x9233a1[_0x1847ab]['item']['getAttributes']()),_0x9233a1[_0x1847ab+0x1]&&'text'===_0x9233a1[_0x1847ab+0x1]['type']&&_0x46003d(_0x31776d,_0x9233a1[_0x1847ab+0x1]['item'])||(_0x53c76e[0x0]['_appendChild'](_0x31776d),_0x31776d=null),_0x191f8b[_0x191f8b['length']-0x1]+=_0x9233a1[_0x1847ab]['item']['offsetSize'],_0x9233a1[_0x1847ab]['nextPosition']=_0x520313['createPositionFromPath'](_0x39fe64,_0x191f8b));for(let _0x2f1d47=0x0;_0x2f1d47<_0x9233a1['length'];_0x2f1d47++){const _0x444112=_0x9233a1[_0x2f1d47]['previousPosition'],_0x5c1410=_0x9233a1[_0x2f1d47]['nextPosition'];for(const _0x1274cd of _0x9233a1[_0x2f1d47]['markersStart'])_0x3bb58f['set'](_0x1274cd,{'start':_0x444112,'end':null});_0x184a1f('isRemoveSuggestion',_0x2f1d47,_0x444112,_0x5c1410),_0x184a1f('isAddSuggestion',_0x2f1d47,_0x444112,_0x5c1410),_0x184a1f('isRemoved',_0x2f1d47,_0x444112,_0x5c1410),_0x184a1f('isAdded',_0x2f1d47,_0x444112,_0x5c1410);for(const _0x4e4b15 of _0x9233a1[_0x2f1d47]['markersEnd']){const _0x1fbf4d=_0x3bb58f['get'](_0x4e4b15);_0x1fbf4d?_0x1fbf4d['end']=_0x5c1410:_0x3bb58f['set'](_0x4e4b15,{'start':_0x5c1410,'end':_0x5c1410});}}for(const [_0x3614d9,_0x4200b4]of _0x3bb58f){const _0x19cfc4=this['editor']['model']['createRange'](_0x4200b4['start'],_0x4200b4['end']);_0x39fe64['markers']['set'](_0x3614d9,_0x19cfc4);}return _0x5cceb2['sort']((_0x4fc53,_0x1edc13)=>{const _0x8ad6ba=_0x39fe64['markers']['get']('revision:'+_0x4fc53['id']),_0x49409e=_0x39fe64['markers']['get']('revision:'+_0x1edc13['id']);return _0x8ad6ba['start']['isBefore'](_0x49409e['start'])?-0x1:_0x8ad6ba['start']['isAfter'](_0x49409e['start'])?0x1:_0x8ad6ba['end']['isBefore'](_0x49409e['end'])?-0x1:_0x8ad6ba['end']['isAfter'](_0x49409e['end'])?0x1:'add'===_0x4fc53['type']?-0x1:0x1;}),{'root':_0x39fe64,'changes':_0x5cceb2};function _0x184a1f(_0x77e3c,_0xb9f4aa,_0x4bfee2,_0x2ec67b){const _0x576a0=!!_0x9233a1[_0xb9f4aa][_0x77e3c],_0x19fe9b=_0x576a0?_0x9233a1[_0xb9f4aa][_0x77e3c]['userId']:null,_0x435ba7=_0xb9f4aa===_0x9233a1['length']-0x1,_0x3fc798=_0x2d916d[_0x77e3c][0x0],_0x467b89=_0x9ba92a['isObject'](_0x9233a1[_0xb9f4aa]['item']);!_0x3509d0[_0x77e3c]&&_0x576a0?_0x3509d0[_0x77e3c]={'start':_0x4bfee2,'tapeItem':_0x9233a1[_0xb9f4aa],'userId':_0x19fe9b,'type':_0x77e3c}:_0x3509d0[_0x77e3c]&&!_0x576a0?(_0x3509d0[_0x77e3c]['end']=_0x4bfee2,_0x4c4d08(_0x3509d0[_0x77e3c]),_0x3509d0[_0x77e3c]=null):_0x3509d0[_0x77e3c]&&_0x576a0&&_0x3509d0[_0x77e3c]['userId']!==_0x19fe9b&&(_0x3509d0[_0x77e3c]['end']=_0x4bfee2,_0x3fc798&&_0x3fc798['userId']===_0x3509d0[_0x77e3c]['userId']||_0x4c4d08(_0x3509d0[_0x77e3c]),_0x3509d0[_0x77e3c]={'start':_0x4bfee2,'tapeItem':_0x9233a1[_0xb9f4aa],'userId':_0x19fe9b,'type':_0x77e3c}),_0x3509d0[_0x77e3c]&&_0x467b89&&('elementStart'!==_0x9233a1[_0xb9f4aa]['type']||_0x3fc798&&_0x3fc798['userId']===_0x19fe9b||_0x2d916d[_0x77e3c]['unshift']({'userId':_0x19fe9b,'object':_0x9233a1[_0xb9f4aa]['item'],'change':_0x3509d0[_0x77e3c]}),'elementEnd'===_0x9233a1[_0xb9f4aa]['type']&&_0x3fc798&&_0x3fc798['object']===_0x9233a1[_0xb9f4aa]['item']&&(_0x2d916d[_0x77e3c]['shift'](),_0x3509d0[_0x77e3c]=_0x3fc798['change'])),_0x3509d0[_0x77e3c]&&_0x435ba7&&(_0x3509d0[_0x77e3c]['end']=_0x2ec67b,_0x4c4d08(_0x3509d0[_0x77e3c]),_0x3509d0[_0x77e3c]=null);}function _0x4c4d08({start:_0x299305,end:_0x5f04f2,tapeItem:_0x309ec1,userId:_0x5afaae,type:_0x5ee6d5}){const _0x4644b2=_0x309ec1['item'],_0x234558=_0x520313['schema']['isBlock'](_0x4644b2)&&!_0x520313['schema']['isLimit'](_0x4644b2),_0x9589d9=_0x299305['nodeAfter']==_0x5f04f2['parent']&&_0x5f04f2['isAtStart'];if(_0x234558&&_0x9589d9)return;const _0x3ab5db=_0x520313['createRange'](_0x299305,_0x5f04f2),_0x3a207e=_0x3552bc['get'](_0x5afaae),_0xe2c4fc=new r({'author':_0x3a207e,'type':'isAdded'==_0x5ee6d5||'isAddSuggestion'==_0x5ee6d5?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5ee6d5||'isRemoveSuggestion'==_0x5ee6d5},'createdAt':new Date(),'rootName':_0x4274a8});_0x5cceb2['push'](_0xe2c4fc),_0x39fe64['markers']['set']('revision:'+_0xe2c4fc['id'],_0x3ab5db);}function _0x46003d(_0xb2008d,_0x2e1d97){const _0x35b169=_0xb2008d['getAttributes'](),_0x41d38c=_0x2e1d97['getAttributes']();for(const _0x3c920a of _0x35b169){if(_0x3c920a[0x1]!==_0x2e1d97['getAttribute'](_0x3c920a[0x0]))return!0x1;_0x41d38c['next']();}return _0x41d38c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3857fa=>{const _0x8a18a=_0x3857fa['markerName']['split'](':')[0x1],_0x406ac1=this['_getChangeFromId'](_0x8a18a);if(!_0x406ac1)return null;const _0x59f1c2='add'==_0x406ac1['type']?'insertion':'deletion',_0x4d7f09=['ck-suggestion-marker','ck-suggestion-marker-'+_0x59f1c2];return _0x406ac1['data']['isSuggestion']&&_0x4d7f09['push']('ck-suggestion-marker-'+_0x59f1c2+'-new'),this['activeChange']==_0x406ac1&&_0x4d7f09['push']('ck-suggestion-marker--active'),{'classes':_0x4d7f09,'attributes':{'data-change-id':_0x8a18a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x309733=>{_0x309733['on']('element:pre',(_0x42e95c,_0x36f3c1,_0x287f3e)=>{const _0x1574a6=_0x36f3c1['viewItem']['getChild'](0x0);if(!_0x1574a6||!_0x1574a6['is']('element','code'))return;if(!_0x287f3e['consumable']['consume'](_0x1574a6,{'attributes':['vid_start','vid_end']}))return;const _0x59fcc8=_0x36f3c1['modelRange']['start']['nodeAfter'];_0x287f3e['writer']['setAttribute']('vid_start',_0x1574a6['getAttribute']('vid_start'),_0x59fcc8),_0x287f3e['writer']['setAttribute']('vid_end',_0x1574a6['getAttribute']('vid_end'),_0x59fcc8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3148d9=>{_0x3148d9['on']('element',(_0x3fc268,_0x270342,_0x2a120c)=>{if(!_0x2a120c['consumable']['consume'](_0x270342['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x270342['modelRange']['isCollapsed'])return;const _0x44270f=_0x270342['modelRange']['start']['nodeAfter'];_0x44270f['hasAttribute']('vid_start')||_0x44270f['hasAttribute']('vid')||(_0x2a120c['writer']['setAttribute']('vid_start',_0x270342['viewItem']['getAttribute']('vid_start'),_0x44270f),_0x2a120c['writer']['setAttribute']('vid_end',_0x270342['viewItem']['getAttribute']('vid_end'),_0x44270f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x47485a=>_0x47485a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe0a140,[,_0x26e91d])=>{['vid_start','vid_end','vid']['includes'](_0x26e91d)&&(_0xe0a140['return']=!0x0,_0xe0a140['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x40fc41=>{_0x40fc41['on']('attribute:vid',(_0x453013,_0x196fd0,_0x9009a3)=>{if('\x20'!=_0x196fd0['item']['data']||_0x196fd0['item']['parent']['maxOffset']>0x1)return;if(!_0x9009a3['consumable']['consume'](_0x196fd0['item'],_0x453013['name']))return;const _0x1cdc38=_0x9009a3['writer'],_0x410986=_0x9009a3['mapper']['toViewRange'](_0x196fd0['range']);_0x1cdc38['wrap'](_0x410986,_0x1cdc38['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1a0413){const _0x10b3c6=_0x1a0413['plugins']['get']('RevisionViewer');return(_0x40d708,_0x5249db,_0x5300fc)=>{const _0x119f0c=_0x5249db['markerName']['split'](':')[0x1],_0x4a88a0=_0x10b3c6['_getChangeFromId'](_0x119f0c);if(!_0x4a88a0)return null;const _0x45b0d2='add'==_0x4a88a0['type']?'split':'merge';if(!_0x5300fc['consumable']['test'](_0x5249db['markerRange'],_0x40d708['name']))return;const _0xc52478=_0x5249db['markerRange']['getWalker'](),_0xcc7fca=_0x5249db['markerRange']['start'],_0x2b2d65=_0x1a0413['model']['schema'];let _0x717947=null,_0xff2172=null,_0xb55069=!0x1,_0x36983c=!0x1;for(const _0x16f5bd of _0xc52478){const _0x1481f3=_0x16f5bd['item'];_0xb55069=_0xb55069||_0x2b2d65['isContent'](_0x1481f3);const _0x26292a=_0x5300fc['mapper']['toViewElement'](_0x1481f3);if(_0x26292a&&_0x26292a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x16f5bd['type']&&(_0x2b2d65['isBlock'](_0x1481f3)&&!_0x2b2d65['isLimit'](_0x1481f3)&&(_0x1481f3['nextSibling']||_0xcc7fca['isAtEnd']?_0x717947&&_0x717947['parent']==_0x1481f3||(_0x717947=_0x1481f3,_0x437585(_0x16f5bd['previousPosition']),_0x36983c=!0x0):_0xff2172=_0xff2172||_0x16f5bd['previousPosition']));}function _0x437585(_0x2e1c2d){const _0x3e8428=_0x5300fc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45b0d2}),_0x3845b7=_0x5300fc['mapper']['toViewPosition'](_0x2e1c2d);_0x4a88a0['data']['isSuggestion']&&_0x5300fc['writer']['addClass']('ck-suggestion-marker-'+_0x45b0d2+'-new',_0x3e8428),_0x10b3c6['activeChange']==_0x4a88a0&&_0x5300fc['writer']['addClass']('ck-suggestion-marker--active',_0x3e8428),_0x5300fc['writer']['insert'](_0x3845b7,_0x3e8428),_0x5300fc['mapper']['bindElementToMarker'](_0x3e8428,_0x5249db['markerName']);}_0xb55069||_0x36983c||!_0xff2172||_0x437585(_0xff2172);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x19f967,_0x2b5ecf,_0x1190f5)=>{const _0x591715=_0x1190f5['mapper']['markerNameToElements'](_0x2b5ecf['markerName']);if(_0x591715){for(const _0x25f961 of _0x591715)(_0x25f961['hasClass']('ck-suggestion-marker-split')||_0x25f961['hasClass']('ck-suggestion-marker-merge'))&&(_0x1190f5['mapper']['unbindElementFromMarkerName'](_0x25f961,_0x2b5ecf['markerName']),_0x1190f5['writer']['remove'](_0x25f961));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4f9268,_0x29cca5,_0x5a981b)=>{const _0x2f2d30=_0x29cca5['markerName']['split'](':')[0x1],_0x4c75d1=this['_getChangeFromId'](_0x2f2d30);if(!_0x4c75d1)return null;const _0x534d87='add'==_0x4c75d1['type']?'split':'merge';if(_0x5a981b['consumable']['test'](_0x29cca5['markerRange'],_0x4f9268['name']))for(const _0x48189b of _0x29cca5['markerRange']['getItems']()){if(!_0x48189b['is']('element','softBreak'))continue;const _0x5be92a=_0x5a981b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x534d87}),_0x46ebfd=_0x5a981b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x48189b));_0x4c75d1['data']['isSuggestion']&&_0x5a981b['writer']['addClass']('ck-suggestion-marker-'+_0x534d87+'-new',_0x5be92a),this['activeChange']==_0x4c75d1&&_0x5a981b['writer']['addClass']('ck-suggestion-marker--active',_0x5be92a),_0x5a981b['writer']['insert'](_0x46ebfd,_0x5be92a),_0x5a981b['mapper']['bindElementToMarker'](_0x5be92a,_0x29cca5['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x190eca=>{for(const _0x340cbd of this['editor']['model']['document']['getRootNames']()){const _0x52eb06=this['editor']['model']['document']['getRoot'](_0x340cbd),_0x2442b8=this['editor']['editing']['view']['document']['getRoot'](_0x340cbd);if(_0x2442b8){const _0x7c9dc3=_0x52eb06['getAttribute']('revisionHistoryAttachChange');if(_0x190eca['removeAttribute']('data-change-id',_0x2442b8),_0x190eca['removeClass']('ck-revision-history-root-add',_0x2442b8),_0x190eca['removeClass']('ck-revision-history-root-remove',_0x2442b8),_0x190eca['removeClass']('ck-revision-history-root--active',_0x2442b8),_0x7c9dc3){const _0x505607=this['_getChangeFromId'](_0x7c9dc3);if(!_0x505607)return null;_0x190eca['setAttribute']('data-change-id',_0x7c9dc3,_0x2442b8),_0x190eca['addClass']('ck-revision-history-root-'+_0x505607['type'],_0x2442b8),this['activeChange']==_0x505607&&_0x190eca['addClass']('ck-revision-history-root--active',_0x2442b8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x484511=>'revision-comment:'+_0x484511,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2b69ed=>'revision-suggestion:'+_0x2b69ed,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1da415=>({'name':'suggestion:'+_0x1da415,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x11b90d=>{const _0xcc870b=_0x11b90d['markerName']['split'](':')[0x1];return'insertion'!=_0xcc870b&&'deletion'!=_0xcc870b?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xcc870b]};}}),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',(_0x8f8971,_0x569444,_0x174f2)=>{const _0x271136=_0x174f2['mapper']['markerNameToElements'](_0x569444['markerName']);if(_0x271136){for(const _0x10733b of _0x271136)_0x10733b['is']('uiElement')&&(_0x174f2['mapper']['unbindElementFromMarkerName'](_0x10733b,_0x569444['markerName']),_0x174f2['writer']['remove'](_0x10733b));}},{'priority':'high'});}['_getChangeFromId'](_0x5275e8){return this['_changeIdToChange']['get'](_0x5275e8);}['_getViewForChange'](_0x11ba44){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x11ba44),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5e43d8,_0x51d446,_0x14deac,_0x21d1e9)=>{_0x21d1e9&&this['_balloon']['remove'](_0x21d1e9),_0x14deac&&(this['_balloon']['add']({'view':_0x14deac,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4e02e0=this['editor']['editing'],_0x5655cb=this['_getChangeFromId'](_0x14deac['changeId']);let _0x1dd5c6;if(_0x5655cb['data']['isOnRoot']){const _0xabf462=_0x4e02e0['view']['getDomRoot'](_0x5655cb['rootName']);_0x1dd5c6=Array['from'](_0xabf462['getClientRects']());}else{const _0x50b541=this['editor']['model']['markers']['get']('revision:'+_0x14deac['changeId']);_0x1dd5c6=Array['from'](_0x4e02e0['mapper']['markerNameToElements'](_0x50b541['name']))['map'](_0x2965d1=>_0x4e02e0['view']['domConverter']['mapViewToDom'](_0x2965d1))['map'](_0x3632c7=>Array['from'](_0x3632c7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1dd5c6[0x0];return _0x1dd5c6['find'](_0x196d2c=>_0x196d2c['top']-0x3<=this['_activeViewTarget']['y']&&_0x196d2c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x196d2c['left']-0x3<=this['_activeViewTarget']['x']&&_0x196d2c['right']+0x3>=this['_activeViewTarget']['x'])||_0x1dd5c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3ea215,_0x56a9ae,_0x9a22b3,_0x276e7a)=>{this['activeView']=_0x9a22b3?this['_getViewForChange'](_0x9a22b3):null,this['editor']['model']['change'](()=>{const _0x5da82e=this['editor']['editing'];_0x276e7a&&(_0x276e7a['data']['isOnRoot']?_0x5da82e['view']['change'](_0x2f184a=>{_0x2f184a['removeClass']('ck-revision-history-root--active',_0x5da82e['view']['document']['getRoot'](_0x276e7a['rootName']));}):_0x5da82e['reconvertMarker']('revision:'+_0x276e7a['id'])),_0x9a22b3&&(_0x9a22b3['data']['isOnRoot']?_0x5da82e['view']['change'](_0x4998b0=>{_0x4998b0['addClass']('ck-revision-history-root--active',_0x5da82e['view']['document']['getRoot'](_0x9a22b3['rootName']));}):_0x5da82e['reconvertMarker']('revision:'+_0x9a22b3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x38b90f,_0x5798dd)=>{if(this['activeChange'])return;const _0x431df6=this['_findChangeIdFromDomTarget'](_0x5798dd['target']),_0xe44faa=this['_changeIdToChange']['get'](_0x431df6);_0xe44faa?(this['_activeViewTarget']={'x':_0x5798dd['domEvent']['x'],'y':_0x5798dd['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe44faa)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4c195e,_0x17fa9c)=>{const _0x45e858=this['_findChangeIdFromDomTarget'](_0x17fa9c['target']),_0x33772b=this['_changeIdToChange']['get'](_0x45e858);_0x33772b?(this['_activeViewTarget']={'x':_0x17fa9c['domEvent']['x'],'y':_0x17fa9c['domEvent']['y']},_0x33772b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x33772b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4c607d){do{const _0x4312da=_0x4c607d['getAttribute']('data-change-id');if(_0x4312da)return _0x4312da;_0x4c607d=_0x4c607d['parent'];}while(_0x4c607d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1572a8=>{for(const _0x4ed9c3 of this['editor']['model']['markers'])_0x1572a8['removeMarker'](_0x4ed9c3);});}}function X(_0x31a37e,_0x2b0c29){return(_0x394f08,_0x210121,_0x34cb9a)=>{if(!_0x34cb9a['consumable']['test'](_0x210121['markerRange'],_0x394f08['name']))return;const _0x29808f=_0x210121['markerRange']['getWalker'](),_0x47d7cb=_0x210121['markerRange']['start'],_0x2d20be=_0x31a37e['model']['schema'];let _0x1bfac4=null,_0x52e580=null,_0xb348ec=!0x1,_0xe49420=!0x1;for(const _0x3c7fa2 of _0x29808f){const _0x5a10cd=_0x3c7fa2['item'];_0xb348ec=_0xb348ec||_0x2d20be['isContent'](_0x5a10cd);const _0x3f22e6=_0x34cb9a['mapper']['toViewElement'](_0x5a10cd);if(_0x3f22e6&&_0x3f22e6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c7fa2['type']&&(_0x2d20be['isBlock'](_0x5a10cd)&&!_0x2d20be['isLimit'](_0x5a10cd)&&(_0x5a10cd['nextSibling']||_0x47d7cb['isAtEnd']?_0x1bfac4&&_0x1bfac4['parent']==_0x5a10cd||(_0x1bfac4=_0x5a10cd,_0x3b04a2(_0x3c7fa2['previousPosition']),_0xe49420=!0x0):_0x52e580=_0x52e580||_0x3c7fa2['previousPosition']));}function _0x3b04a2(_0x26f2a7){const _0x3fdd5c=_0x34cb9a['mapper']['toViewPosition'](_0x26f2a7),_0x3dc52f=_0x34cb9a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b0c29});_0x34cb9a['writer']['insert'](_0x3fdd5c,_0x3dc52f),_0x34cb9a['mapper']['bindElementToMarker'](_0x3dc52f,_0x210121['markerName']);}_0xb348ec||_0xe49420||!_0x52e580||_0x3b04a2(_0x52e580);};}class mt extends _0x594d33{constructor(_0x4b722f){super(_0x4b722f);const _0x4d241c=_0x4b722f['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4d241c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4d241c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x55e39e=this['editor'],_0x46039a=_0x55e39e['plugins']['get'](m),_0x17a69f=_0x46039a['isReady']?_0x46039a['diff']['newRevisionId']:null;_0x55e39e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x17a69f);}['refresh'](){const {isReady:_0x4b0614,isEnabled:_0x2771c0,repository:_0x3b7a8c,diff:_0x1ce1aa}=this['editor']['plugins']['get'](m),_0x507636=_0x1ce1aa&&_0x3b7a8c['getLaterVisibleRevision'](_0x1ce1aa['newRevisionId']);this['isEnabled']=_0x4b0614&&_0x2771c0&&Boolean(_0x507636);}}class wt extends _0x594d33{['_step'];constructor(_0x1fbba4,{direction:_0x182a6c}){super(_0x1fbba4);const _0x2271d9=_0x1fbba4['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x182a6c?0x1:-0x1,this['listenTo'](_0x2271d9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2271d9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2271d9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4e5614=this['editor'],_0x402185=_0x4e5614['plugins']['get'](m),{isNavigationMode:_0x1f6f6e,currentChangeNumber:_0x4ef815}=_0x402185;let _0x8818ec;if(_0x402185['activeChange']=_0x1f6f6e?_0x402185['diff']['changes']['get'](_0x4ef815+this['_step']):_0x402185['diff']['changes']['first'],_0x402185['activeChange']['data']['isOnRoot'])_0x8818ec=_0x4e5614['editing']['view']['getDomRoot'](_0x402185['activeChange']['rootName']);else{const _0xdc5cc5=_0x4e5614['model']['markers']['get']('revision:'+_0x402185['activeChange']['id']);_0x8818ec=_0x504600(_0x4e5614['editing'],_0xdc5cc5);}_0x39a608({'target':_0x8818ec,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3581db,currentChangeNumber:_0x395de2,numberOfChanges:_0xe69d13,isReady:_0x956f78,isEnabled:_0x2cf4da}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2cf4da&&_0x956f78&&_0xe69d13)&&(!_0x3581db||(0x1===this['_step']?_0x395de2<_0xe69d13-0x1:_0x395de2>0x0));}}class _i extends ts{constructor(_0x18281d){super(_0x18281d);const _0x3534f3=this['bindTemplate'],_0x566f6d=new te(_0x18281d),_0x137578=new te(_0x18281d);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',(_0xcfb687,_0x129e53)=>_0xcfb687&&_0x129e53>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x35acc4,_0x20569b,_0x2c1b76,_0x5dc15f)=>{if(!_0x35acc4)return g(_0x18281d,'Loading...');if(!_0x2c1b76)return g(_0x18281d,'No\x20changes');const _0x19b4d5=g(_0x18281d,'NUMBER_OF_CHANGES',_0x2c1b76);return _0x5dc15f?g(_0x18281d,'X_OF_Y_CHANGES',[_0x20569b+0x1,_0x2c1b76]):_0x19b4d5;}),_0x566f6d['set']({'label':g(_0x18281d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x23ce80}),_0x137578['set']({'label':g(_0x18281d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x15754f}),_0x566f6d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x137578['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x566f6d['on']('execute',()=>this['fire']('execute','backward')),_0x137578['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',_0x3534f3['if']('_isStatusLabelVisible','ck-hidden',_0x4b4676=>!_0x4b4676)]},'children':[{'text':_0x3534f3['to']('isNavigationMode',_0x449042=>_0x449042?g(_0x18281d,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x18281d,'Total')+':\x20')}]},{'text':_0x3534f3['to']('_statusText')}]},new _0x3d06e5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x566f6d,_0x137578]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x59ac4e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x252983=this['editor']['editing']['view'];_0x252983['change'](_0xee90d1=>{for(const _0x20272a of _0x252983['document']['roots'])_0xee90d1['addClass'](le,_0x20272a);});}['hide'](){const _0x597db3=this['editor']['editing']['view'];_0x597db3['change'](_0x482b2c=>{for(const _0x52e6e4 of _0x597db3['document']['roots'])_0x482b2c['removeClass'](le,_0x52e6e4);});}}class R extends _0x59ac4e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2f442a=this['editor'],_0x510bf6=_0x2f442a['plugins']['get'](m),_0x13ab57=_0x2f442a['plugins']['get'](ge);_0x2f442a['ui']['componentFactory']['add']('exitToEditing',_0x12acd1=>{const _0x240134=new te(_0x12acd1);return _0x240134['set']({'label':g(_0x12acd1,'Back\x20to\x20editing'),'icon':_0x314236,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x240134,'execute',()=>{_0x2f442a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x240134;}),_0x2f442a['ui']['componentFactory']['add']('restoreRevision',_0x4476ce=>{const _0x42c8eb=new te(_0x4476ce);return _0x42c8eb['set']({'label':g(_0x4476ce,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x42c8eb['bind']('isEnabled')['to'](_0x2f442a['commands']['get']('restoreRevision')),this['listenTo'](_0x42c8eb,'execute',()=>_0x2f442a['execute']('restoreRevision')),_0x42c8eb;}),_0x2f442a['ui']['componentFactory']['add']('changesNavigation',_0x9b9c70=>{const _0x1a0e8b=new _i(_0x9b9c70),_0x287f36=_0x2f442a['commands']['get']('showPreviousChange'),_0x4a5ac5=_0x2f442a['commands']['get']('showNextChange');return _0x1a0e8b['bind']('isBackwardNavigationEnabled')['to'](_0x287f36,'isEnabled'),_0x1a0e8b['bind']('isForwardNavigationEnabled')['to'](_0x4a5ac5,'isEnabled'),_0x1a0e8b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x510bf6),this['listenTo'](_0x1a0e8b,'execute',(_0x29f267,_0x21f463)=>{_0x2f442a['execute']('forward'===_0x21f463?'showNextChange':'showPreviousChange');}),_0x1a0e8b;}),_0x13ab57['show'](),_0x510bf6['on']('change:isReady',(_0x55443b,_0x2c436f,_0x33e162)=>{_0x33e162?_0x13ab57['hide']():_0x13ab57['show']();});}}class at extends _0x38e6de{['_resizeObserver']=null;constructor(_0x20d92e,_0xd510db){super(_0x20d92e,_0xd510db);const _0x2f7a73=this['bindTemplate'];this['set']({'label':g(_0x20d92e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x20d92e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2f7a73['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 _0x4ac899=this['fieldView']['element'];this['_tooltipString']=_0x4ac899['scrollWidth']>_0x4ac899['clientWidth']&&_0x4ac899['value']||'';}}class si extends ts{constructor(_0x25cac6,_0x352094,_0x54828d){super(_0x25cac6);const _0x4af8b0=new _0x266c4f();_0x4af8b0['set']({'content':_0xb2492c,'viewBox':'0\x200\x2011\x2010'});const _0x2f80fc=['ck','ck-revision-history-sidebar__revision-author'];_0x54828d&&_0x2f80fc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x29a8ab=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x25cac6,_0x54828d?'Revision\x20creator':'Revision\x20author')},'children':[_0x4af8b0,_0x352094['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2f80fc},'children':_0x29a8ab});}}function oi(_0x2f1169,_0x20f165){const _0x681f91=_0x2f1169['bindTemplate'],_0x100a59=_0x2f1169['locale'],_0x57164a=_0xd7ef31(_0x100a59);_0x57164a['panelPosition']='sw';const _0x2292f0=function(_0x20543b,_0x584ad4){const _0x48c7e8=function(_0x41f5f4,_0x324db1){const _0xa835f9=_0x41f5f4['locale'],_0xff457b={'Compare\x20against\x20selected':g(_0xa835f9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xa835f9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xa835f9,'Restore\x20this\x20revision')};return _0x324db1['map'](_0x4c1068=>{const _0xca596=_0xff457b[_0x4c1068['name']];return _0xca596&&_0xca596!==_0x4c1068['name']&&(_0x4c1068['name']=_0xca596),_0x4c1068;});}(_0x20543b,_0x584ad4),_0x4faf07=new _0x18d259();for(const _0x34a15e of _0x48c7e8){const _0x309964={'type':'button','model':new to({'label':_0x34a15e['name'],'class':_0x34a15e['class'],'withText':!0x0,'role':'menuitem','_action':_0x34a15e['action']})};_0x309964['model']['bind']('isEnabled')['to'](_0x20543b,'isActionsDropdownOpen',_0x240aca=>'function'!=typeof _0x34a15e['isEnabled']||(!_0x240aca||_0x34a15e['isEnabled'](_0x20543b))),_0x4faf07['add'](_0x309964);}return _0x4faf07;}(_0x2f1169,_0x20f165);return _0x2f1169['bind']('isActionsDropdownOpen')['to'](_0x57164a,'isOpen'),_0x57164a['buttonView']['set']({'label':g(_0x100a59,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4cc44b}),_0x57164a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x681f91['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x681f91['to'](_0x5fbe8f=>_0x5fbe8f['stopPropagation']())}}),_0x57164a['on']('execute',_0x3c78d7=>{_0x2f1169['isReady']&&'function'==typeof _0x3c78d7['source']['_action']&&_0x3c78d7['source']['_action'](_0x2f1169);}),_0x3d1927(_0x57164a,_0x2292f0,{'role':'menu'}),_0x57164a['listenTo'](_0x2f1169,'change:isActionsDropdownOpen',(_0x302d32,_0xc663bc,_0x38151b)=>{if(_0x38151b)for(const _0x542a8e of _0x57164a['listView']['items']){const _0x190c5c=_0x542a8e['children']['first'],_0x57ca4f=_0x20f165['find'](_0x4c5380=>_0x4c5380['action']===_0x190c5c['_action'])['isVisible'];_0x542a8e['isVisible']=void 0x0===_0x57ca4f||_0x57ca4f(_0x2f1169);}}),_0x57164a;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x22d55c,uid as _0x3ebcbf,Collection as _0x4b7808,logWarning as _0x5a9d49,FocusTracker as _0x3fc65d,KeystrokeHandler as _0x18c3c0,scrollViewportToShowTarget as _0x2aff8f,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x3cba61}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x35023c,set as _0x42dda0,unset as _0x4b5840,isEqual as _0x2f3b95}from'es-toolkit/compat';import{Plugin as _0x5df236,PendingActions as _0x1081f4,Command as _0x401c69,ElementApiMixin as _0x5a0e26,Editor as _0x2750ff}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3ae4e4,getMarkerDomElement as _0x2c2761,ConfirmMixin as _0x249462,sanitizeEditorConfig as _0x2cd006}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x56137f,ViewAttributeElement as _0x57d156,ViewEmptyElement as _0x263daa,ViewRawElement as _0x3d6ca2,ViewUIElement as _0x445ae7,ViewDocumentFragment as _0x9505ad,ViewText as _0x2dccb5,ViewElement as _0x18702a,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 _0xc1a20f,IconChevronUp as _0x245128,IconChevronDown as _0x5b69b8,IconUndo as _0x249b76,IconUser as _0x395a6e,IconThreeVerticalDots as _0x200883}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x29c029,injectCssTransitionDisabler as ts,submitHandler as _0x23e438,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x3a8b72,ListView as _0x4dae4b,ListItemView as te,ButtonView as _0x4f0d8d,MenuBarMenuView as _0x5e90b9,MenuBarMenuListView as _0x3b5e9a,MenuBarMenuListItemView as _0x24acdb,MenuBarMenuListItemButtonView as _0x3ab0c5,ContextualBalloon as _0x173a33,ToolbarSeparatorView as _0x39e9cc,IconView as _0x6ec42d,addListToDropdown as _0x30b893,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 _0x285df6}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x22d55c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4c402f){super(),this['id']=_0x4c402f['id']||_0x3ebcbf(),this['creator']=_0x4c402f['creator']||null,this['authors']=_0x4c402f['authors']||[],this['diffData']=_0x4c402f['diffData']||null,this['toVersion']=_0x4c402f['toVersion']||0x0,this['fromVersion']=_0x4c402f['fromVersion']||0x0,this['set']('name',_0x4c402f['name']||''),this['set']('createdAt',_0x4c402f['createdAt']||new Date()),this['set']('attributes',_0x4c402f['attributes']||{});}['setName'](_0x5dfd36){this['_update']({'name':_0x5dfd36});}['setAttribute'](_0x3d4406,_0x50b9cc){const _0x53579d=_0x35023c(this['attributes']);_0x42dda0(_0x53579d,_0x3d4406,_0x50b9cc),this['_update']({'attributes':_0x53579d});}['removeAttribute'](_0x575260){const _0x90ff52=_0x35023c(this['attributes']);_0x4b5840(_0x90ff52,_0x575260),this['_update']({'attributes':_0x90ff52});}['_update'](_0x3a51e5,_0x2dec1f=!0x1){let _0x458cca=!0x1;const _0x1cd3e9={'id':this['id']},_0x2ea3c3=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x398657 of _0x2ea3c3){const _0x13bf9a=_0x3a51e5[_0x398657];void 0x0!==_0x13bf9a&&_0x13bf9a!==this[_0x398657]&&(this[_0x398657]=_0x13bf9a,_0x1cd3e9[_0x398657]=_0x13bf9a,_0x458cca=!0x0);}_0x458cca&&(_0x1cd3e9['authors']&&(_0x1cd3e9['authorsIds']=_0x1cd3e9['authors']['map'](_0x3c2deb=>_0x3c2deb['id']),delete _0x1cd3e9['authors']),this['fire']('_update',_0x1cd3e9,_0x2dec1f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x31f6af=>_0x31f6af['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x5df236{['_revisions'];static get['requires'](){return[_0x3ae4e4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x56740b){super(_0x56740b),this['_revisions']=new _0x4b7808();}['afterInit'](){!async function(_0x5d5b54){const _0x250837=_0x5534f0([0x32,0x79,0x44,0x6a,0x57,0x72,0x35,0x64,0x36,0x49,0x4d,0x5a,0x43,0x65,0x46,0x4b,0x56,0x34,0x68,0x52,0x39,0x30,0x6b,0x62,0x6d,0x48,0x7a,0x50,0x6f,0x45,0x31,0x42,0x61,0x41,0x74,0x69,0x73,0x58,0x63,0x71,0x54,0x38,0x47,0x55,0x6c,0x6e,0x51,0x4e,0x4f,0x53,0x78,0x75,0x76,0x4c,0x59,0x4a,0x66,0x37,0x70,0x77,0x67,0x33]),_0x3556aa=0xeb829,_0xc12f21=0x698e9a25,_0x3dfb09=0x6989fc1d^_0xc12f21,_0x505ea6=window[_0x5534f0([0x44,0x61,0x74,0x65])][_0x5534f0([0x6e,0x6f,0x77])](),_0xf74dbc=_0x5d5b54[_0x5534f0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26024d=new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x118d0c=>{_0xf74dbc[_0x5534f0([0x6f,0x6e,0x63,0x65])](_0x5534f0([0x72,0x65,0x61,0x64,0x79]),_0x118d0c);}),_0x18fd39={[_0x5534f0([0x6b,0x74,0x79])]:_0x5534f0([0x45,0x43]),[_0x5534f0([0x75,0x73,0x65])]:_0x5534f0([0x73,0x69,0x67]),[_0x5534f0([0x63,0x72,0x76])]:_0x5534f0([0x50,0x2d,0x32,0x35,0x36]),[_0x5534f0([0x78])]:_0x5534f0([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]),[_0x5534f0([0x79])]:_0x5534f0([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]),[_0x5534f0([0x61,0x6c,0x67])]:_0x5534f0([0x45,0x53,0x32,0x35,0x36])},_0x55b7d6=_0xf74dbc[_0x5534f0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5534f0([0x67,0x65,0x74])](_0x5534f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22f1b8(){let _0x32385d,_0x5e0c41=null,_0x1bf199=null;try{if(_0x55b7d6==_0x5534f0([0x47,0x50,0x4c]))return _0x5534f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32385d=_0x54e91c(),!_0x32385d)return _0x5534f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32385d[_0x5534f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bf199=_0x310989(_0x32385d[_0x5534f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32385d[_0x5534f0([0x6a,0x74,0x69])])),await _0x21c9ef()?_0x2e8aba()?_0x54b927()?_0x5534f0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52a5af()?(_0x32385d[_0x5534f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5534f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e0c41=_0x331db1(_0x5534f0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x32385d[_0x5534f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5534f0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e0c41=_0x331db1(_0x5534f0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c7059()):_0x5534f0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5534f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5534f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x361124){return _0x5534f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x54b927(){const _0x19a1ed=[_0x5534f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5534f0([0x74,0x72,0x69,0x61,0x6c])][_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32385d[_0x5534f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x505ea6/0x3e8:0xe10*_0x3dfb09;return _0x32385d[_0x5534f0([0x65,0x78,0x70])]<_0x19a1ed;}function _0x2e8aba(){const _0x2209a8=_0x32385d[_0x5534f0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2209a8)return!0x1;if(_0x2209a8[_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5534f0([0x2a])))return!0x0;if(_0x2209a8[_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5534f0([0x52,0x48])))return!0x0;if(_0x2209a8[_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5534f0([0x52,0x52,0x48]))){if(_0x2a4015())return!0x0;if(_0x4ff620()||_0x4989d9())return!0x0;}return!0x1;}function _0x52a5af(){const _0x285d48=_0x32385d[_0x5534f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x285d48||0x0==_0x285d48[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x33ceb7}=new URL(window[_0x5534f0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x285d48[_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33ceb7))return!0x0;const _0x17704c=_0x33ceb7[_0x5534f0([0x73,0x70,0x6c,0x69,0x74])](_0x5534f0([0x2e]));return _0x285d48[_0x5534f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b3be0=>_0x5b3be0[_0x5534f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5534f0([0x2a])))[_0x5534f0([0x6d,0x61,0x70])](_0x1784cd=>_0x1784cd[_0x5534f0([0x73,0x70,0x6c,0x69,0x74])](_0x5534f0([0x2e])))[_0x5534f0([0x73,0x6f,0x6d,0x65])](_0x32ae10=>_0x17704c[_0x5534f0([0x65,0x76,0x65,0x72,0x79])]((_0x4861de,_0x15f012)=>_0x32ae10[_0x15f012]===_0x4861de||_0x32ae10[_0x15f012]===_0x5534f0([0x2a])));}function _0x2c7059(){return _0x5e0c41&&_0x1bf199?new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x289de3,_0x38e6ac)=>{_0x5e0c41[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x289de3,_0x38e6ac),_0x1bf199[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x3acf9f=>{_0x3acf9f!=_0x5534f0([0x56,0x61,0x6c,0x69,0x64])&&_0x289de3(_0x3acf9f);},_0x38e6ac);}):_0x5e0c41||_0x1bf199||_0x5534f0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x310989(_0x43383d,_0x1d1f53){return new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39ee71=>{if(_0x3f1391())return _0x39ee71(_0x5534f0([0x56,0x61,0x6c,0x69,0x64]));_0x26547c(),_0xf74dbc[_0x5534f0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5534f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x593e7a=!0x1;const _0x11b9fd=_0x3ebcbf();function _0x232fc1(_0x520b96){return!!_0x520b96&&(typeof _0x520b96===_0x5534f0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x520b96===_0x5534f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x520b96[_0x5534f0([0x74,0x68,0x65,0x6e])]===_0x5534f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x520b96[_0x5534f0([0x63,0x61,0x74,0x63,0x68])]===_0x5534f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39a2b9(_0x153511){_0x497fb2(_0x153511)[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x30ab09=>{if(!_0x30ab09||_0x30ab09[_0x5534f0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5534f0([0x6f,0x6b]))return _0x5534f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x338626(_0x1eed28(_0x11b9fd+_0x1d1f53))!=_0x30ab09[_0x5534f0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5534f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5534f0([0x56,0x61,0x6c,0x69,0x64]);})[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x5dfdba=>(_0x35d3eb(),_0x5dfdba),()=>{const _0x45f171=_0x446b3a();return null==_0x45f171?(_0x35d3eb(),_0x5534f0([0x56,0x61,0x6c,0x69,0x64])):_0x5534f0(_0x505ea6-_0x45f171>(0x4d821e25^_0xc12f21)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x39ee71)[_0x5534f0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39ee71(_0x5534f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x9a8f04=0x69b874a5^_0xc12f21;function _0x35d3eb(){const _0x5762e1=_0x5534f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x338626(_0x1eed28(_0x43383d)),_0x20e138=_0xf20e3a(_0x338626(window[_0x5534f0([0x4d,0x61,0x74,0x68])][_0x5534f0([0x63,0x65,0x69,0x6c])](_0x505ea6/_0x9a8f04)));window[_0x5534f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5534f0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5762e1,_0x20e138);}function _0x446b3a(){const _0x1959ff=_0x5534f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x338626(_0x1eed28(_0x43383d)),_0x671182=window[_0x5534f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5534f0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1959ff);return _0x671182?window[_0x5534f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf20e3a(_0x671182),0x10)*_0x9a8f04:null;}function _0x497fb2(_0x28c357){return new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x527312,_0x2fad36)=>{_0x28c357[_0x5534f0([0x74,0x68,0x65,0x6e])](_0x527312,_0x2fad36),window[_0x5534f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fad36,0x698f4ee5^_0xc12f21);});}}_0xf74dbc[_0x5534f0([0x6f,0x6e])](_0x5534f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x566133,_0x125a13)=>{if(_0x125a13[0x0]!=_0x43383d)return _0x39ee71(_0x5534f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x125a13[0x1]={..._0x125a13[0x1],[_0x5534f0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11b9fd};},{[_0x5534f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5534f0([0x68,0x69,0x67,0x68])}),_0xf74dbc[_0x5534f0([0x6f,0x6e])](_0x5534f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x178885=>{_0x232fc1(_0x178885[_0x5534f0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x593e7a=!0x0,_0x39a2b9(_0x178885[_0x5534f0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5534f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5534f0([0x6c,0x6f,0x77])}),_0x26024d[_0x5534f0([0x74,0x68,0x65,0x6e])](()=>{_0x593e7a||_0x39ee71(_0x5534f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f1391(){return _0xf74dbc[_0x5534f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5534f0([0x76,0x69,0x65,0x77])][_0x5534f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5534f0([0x61,0x75,0x74,0x6f]);}function _0x26547c(){_0xf74dbc[_0x5534f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5534f0([0x76,0x69,0x65,0x77])][_0x5534f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5534f0([0x61,0x75,0x74,0x6f]);}}function _0x331db1(_0x6a697f){const _0x3e7065=[new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5620b6=>setTimeout(_0x5620b6,0x6987a4e9^_0xc12f21)),_0x26024d[_0x5534f0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cbe72=>{const _0x43fdd8=0x698e9a22^_0xc12f21,_0x1e6fb2=_0x5d5b54[_0x5534f0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xd752b5(){_0x1e6fb2[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x43fdd8&&_0x3cbe72();}_0xd752b5(),_0x1e6fb2[_0x5534f0([0x6f,0x6e])](_0x5534f0([0x61,0x64,0x64]),_0xd752b5);})),new window[(_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e6e4d=>{function _0x5b9d54(){for(const _0x4b985c in window)if(window[_0x5534f0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5534f0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4b985c))&&window[_0x4b985c]==_0x3556aa)return _0x3e6e4d();_0xf74dbc[_0x5534f0([0x73,0x74,0x61,0x74,0x65])]!=_0x5534f0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5534f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b9d54,0x698e89ad^_0xc12f21);}_0x2099bf(_0x5534f0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5b9d54();})];return window[_0x5534f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5534f0([0x72,0x61,0x63,0x65])](_0x3e7065)[_0x5534f0([0x74,0x68,0x65,0x6e])](()=>_0x6a697f);}async function _0x5e97b1(){if(await _0x26024d,_0x2099bf(_0x5534f0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3a01d6=_0x5d5b54[_0x5534f0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3a2048=_0x5d5b54[_0x5534f0([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])](_0x3a01d6[_0x5534f0([0x69,0x64])]),_0x5ec069=_0x159412(_0x5534f0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5ec069[_0x5534f0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3a01d6['id'],_0x3a2048?_0x3a2048['id']:null,!0x0),_0x5ec069[_0x5534f0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5534f0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5ec069[_0x5534f0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5ec069[_0x5534f0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1a4b25,void(_0x5ec069[_0x5534f0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1a4b25);}if(_0x2099bf(_0x5534f0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4a75ae=_0x159412(_0x5534f0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4a75ae[_0x5534f0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5534f0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4a75ae[_0x5534f0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4a75ae[_0x5534f0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1a4b25,_0x4a75ae[_0x5534f0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1a4b25;}_0xf74dbc[_0x5534f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5534f0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a4b25,_0xf74dbc[_0x5534f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5534f0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a4b25,_0xf74dbc[_0x5534f0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5534f0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a4015(){return _0x2099bf(_0x5534f0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x159412(_0x5534f0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5534f0([0x73,0x74,0x61,0x74,0x65])]==_0x5534f0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ff620(){return _0x2099bf(_0x5534f0([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 _0x4989d9(){return _0x2099bf(_0x5534f0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9a2a30(_0x3b45de){const _0x36a81e=_0x1a89f1();_0xf74dbc[_0x36a81e]=_0x5534f0([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])+_0x3b45de,_0x3b45de[_0x5534f0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5534f0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1a89f1()]=_0x3556aa),_0x3b45de!=_0x5534f0([0x56,0x61,0x6c,0x69,0x64])&&_0x5e97b1();}function _0x1a89f1(){const _0x2109c2=window[_0x5534f0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5534f0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5534f0([0x6e,0x6f,0x77])]())[_0x5534f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5534f0([0x2e]),'');let _0x5eb1ae=_0x5534f0([0x79]);for(let _0x13483f=0x0;_0x13483f<_0x2109c2[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13483f+=0x2){let _0x3f659b=window[_0x5534f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2109c2[_0x5534f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13483f,_0x13483f+0x2));_0x3f659b>=_0x250837[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f659b-=_0x250837[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5eb1ae+=_0x250837[_0x3f659b];}return _0x5eb1ae;}function _0x54e91c(){const _0x4e2968=_0x55b7d6[_0x5534f0([0x73,0x70,0x6c,0x69,0x74])](_0x5534f0([0x2e]));if(0x3!=_0x4e2968[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x332442(_0x4e2968[0x1]);function _0x332442(_0x4ac592){const _0x2aef9a=_0x1146a2(_0x4ac592);return _0x2aef9a&&_0xf05ade()?_0x2aef9a:null;function _0xf05ade(){const _0x1bab14=_0x2aef9a[_0x5534f0([0x6a,0x74,0x69])],_0xad36e=window[_0x5534f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bab14[_0x5534f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bab14[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45fa6b={..._0x2aef9a,[_0x5534f0([0x6a,0x74,0x69])]:_0x1bab14[_0x5534f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1bab14[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45fa6b[_0x5534f0([0x76,0x63])],_0x1eed28(_0x45fa6b)==_0xad36e;}}}async function _0x21c9ef(){let _0x105518=!0x0;try{const _0x223487=_0x55b7d6[_0x5534f0([0x73,0x70,0x6c,0x69,0x74])](_0x5534f0([0x2e])),[_0x13c390,_0x74cc6d,_0x1b123d]=_0x223487;return _0x28022a(_0x13c390),await _0x3d5619(_0x13c390,_0x74cc6d,_0x1b123d),_0x105518;}catch(_0x383d81){return!0x1;}function _0x28022a(_0x73fba4){const _0xe49196=_0x1146a2(_0x73fba4);_0xe49196&&_0xe49196[_0x5534f0([0x61,0x6c,0x67])]==_0x5534f0([0x45,0x53,0x32,0x35,0x36])||(_0x105518=!0x1);}async function _0x3d5619(_0x43c428,_0x2945ca,_0x31d0db){const _0x49a73a=window[_0x5534f0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5534f0([0x66,0x72,0x6f,0x6d])](_0x2b6758(_0x31d0db),_0x343daf=>_0x343daf[_0x5534f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21f597=new window[(_0x5534f0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5534f0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43c428+_0x5534f0([0x2e])+_0x2945ca),_0xfbbabf=window[_0x5534f0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5534f0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xfbbabf)return;const _0x2e2c53=await _0xfbbabf[_0x5534f0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5534f0([0x6a,0x77,0x6b]),_0x18fd39,{[_0x5534f0([0x6e,0x61,0x6d,0x65])]:_0x5534f0([0x45,0x43,0x44,0x53,0x41]),[_0x5534f0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5534f0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5534f0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xfbbabf[_0x5534f0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5534f0([0x6e,0x61,0x6d,0x65])]:_0x5534f0([0x45,0x43,0x44,0x53,0x41]),[_0x5534f0([0x68,0x61,0x73,0x68])]:{[_0x5534f0([0x6e,0x61,0x6d,0x65])]:_0x5534f0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e2c53,_0x49a73a,_0x21f597)||(_0x105518=!0x1);}}function _0x1146a2(_0x36b31a){return _0x36b31a[_0x5534f0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5534f0([0x65,0x79]))?JSON[_0x5534f0([0x70,0x61,0x72,0x73,0x65])](_0x2b6758(_0x36b31a)):null;}function _0x2b6758(_0x235dd1){return window[_0x5534f0([0x61,0x74,0x6f,0x62])](_0x235dd1[_0x5534f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5534f0([0x2b]))[_0x5534f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5534f0([0x2f])));}function _0x1eed28(_0x49b8d6){let _0x54081a=0x1505;function _0x32e421(_0x25e0f3){for(let _0x128ce0=0x0;_0x128ce0<_0x25e0f3[_0x5534f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x128ce0++){const _0x3b0bdd=_0x25e0f3[_0x5534f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x128ce0);_0x54081a=(_0x54081a<<0x5)+_0x54081a+_0x3b0bdd,_0x54081a&=_0x54081a;}}function _0x20f0c7(_0x114a63){Array[_0x5534f0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x114a63)?_0x114a63[_0x5534f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20f0c7):_0x114a63&&typeof _0x114a63==_0x5534f0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5534f0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x114a63)[_0x5534f0([0x73,0x6f,0x72,0x74])]()[_0x5534f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45f260,_0x2ea39a])=>{_0x32e421(_0x45f260),_0x20f0c7(_0x2ea39a);}):_0x32e421(window[_0x5534f0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x114a63));}return _0x20f0c7(_0x49b8d6),_0x54081a>>>0x0;}function _0x338626(_0x2ce800){return _0x2ce800[_0x5534f0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5534f0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5534f0([0x30]));}function _0xf20e3a(_0x2c24b2){return _0x2c24b2[_0x5534f0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5534f0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5534f0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2099bf(_0x7dfec){return _0xf74dbc[_0x5534f0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5534f0([0x68,0x61,0x73])](_0x7dfec);}function _0x159412(_0x6767dd){return _0xf74dbc[_0x5534f0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5534f0([0x67,0x65,0x74])](_0x6767dd);}function _0x1a4b25(){}function _0x5534f0(_0x25dcaf){return _0x25dcaf['map'](_0x5dadc1=>String['fromCharCode'](_0x5dadc1))['join']('');}_0x9a2a30(await _0x22f1b8());}(this);}['createRevision'](_0x5b7076){const _0x1c5e66=this['editor']['plugins']['get']('Users');return new h({'id':_0x5b7076['id'],'name':_0x5b7076['name'],'creator':_0x5b7076['creatorId']?_0x1c5e66['getUser'](_0x5b7076['creatorId']):null,'diffData':_0x5b7076['diffData']||_0x5b7076['data'],'authors':_0x5b7076['authorsIds']['map'](_0x5abac0=>_0x1c5e66['getUser'](_0x5abac0)),'createdAt':new Date(_0x5b7076['createdAt']),'attributes':_0x5b7076['attributes'],'fromVersion':_0x5b7076['fromVersion'],'toVersion':_0x5b7076['toVersion']});}['addRevision'](_0x1a1689,_0x4daaf1=0x0){this['_revisions']['add'](_0x1a1689,_0x4daaf1);}['getRevision'](_0x36262f){return this['_revisions']['get'](_0x36262f);}['getRevisions'](_0x1e3248={'toJSON':!0x1}){const _0x4e6e00=Array['from'](this['_revisions']);return _0x4e6e00['reverse'](),_0x1e3248['toJSON']?_0x4e6e00['map'](_0x40ce46=>_0x40ce46['toJSON']()):_0x4e6e00;}['getIndex'](_0x1b508e){return this['_revisions']['getIndex'](_0x1b508e);}['getEarlierVisibleRevision'](_0x3ef687){const [,_0xd81660]=this['getRevisionsIterator'](_0x3ef687,{'direction':'earlier'});return _0xd81660;}['getLaterVisibleRevision'](_0x8f1ad7){const [,_0x49fd71]=this['getRevisionsIterator'](_0x8f1ad7,{'direction':'later'});return _0x49fd71;}['getRevisionsInDiff'](_0x49de25){const _0x5962fb=[];for(const _0x137989 of this['getRevisionsIterator'](_0x49de25['newRevisionId']))if(_0x5962fb['push'](_0x137989),_0x137989['id']===_0x49de25['oldRevisionId'])break;return _0x5962fb;}*['getRevisionsIterator'](_0x1e31e2,{direction:_0x39f024='earlier',filter:_0x18a1c5=()=>!0x0}={}){const _0x3aa561='earlier'===_0x39f024?0x1:-0x1;let _0x2f0ead=this['_revisions']['get'](_0x1e31e2),_0x3c917f=this['getIndex'](_0x2f0ead);for(yield _0x2f0ead;_0x2f0ead;){if(_0x3c917f+=_0x3aa561,_0x2f0ead=this['getRevision'](_0x3c917f),!_0x2f0ead)return;_0x18a1c5(_0x2f0ead)&&(yield _0x2f0ead);}}}class V extends _0x5df236{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x56137f,'c'],[_0x57d156,'a'],[_0x263daa,'e'],[_0x3d6ca2,'r'],[_0x445ae7,'u']]);['_typeCharToViewClass']=new Map([['c',_0x56137f],['a',_0x57d156],['e',_0x263daa],['r',_0x3d6ca2],['u',_0x445ae7]]);async['loadRevisionData'](_0xdf212d,_0x45a373){if(_0xdf212d['diffData']||!_0x45a373)return;const _0x411a77=this['editor']['config']['get']('collaboration.channelId'),_0x3189bb=await _0x45a373['getRevision']({'channelId':_0x411a77,'revisionId':_0xdf212d['id']});_0xdf212d['diffData']=_0x3189bb['diffData'];}['getRevisionDocumentData'](_0x399e25){const _0x390cf8={};for(const _0xfd8d3a in _0x399e25['diffData']){if(_0x399e25['diffData'][_0xfd8d3a]['attachChange']&&!_0x399e25['diffData'][_0xfd8d3a]['attachChange']['isAttached'])continue;const _0x4e40e4=this['_removeRevisionMarkers'](JSON['parse'](_0x399e25['diffData'][_0xfd8d3a]['insertions'])),_0x4c2828=this['editor']['editing']['view']['document'],_0x3e4b0f=new _0x9505ad(_0x4c2828,_0x4e40e4['map'](_0x443142=>this['_getViewFromDiffObj'](_0x443142,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x390cf8[_0xfd8d3a]=this['editor']['data']['processor']['toData'](_0x3e4b0f),this['editor']['data']['processor']['useFillerType']('default');}return _0x390cf8;}['getRevisionRootsAttributes'](_0x2c46f0){const _0x5ec939={};for(const _0x121c1e in _0x2c46f0['diffData'])_0x2c46f0['diffData'][_0x121c1e]['attachChange']&&!_0x2c46f0['diffData'][_0x121c1e]['attachChange']['isAttached']||(_0x5ec939[_0x121c1e]=_0x2c46f0['diffData'][_0x121c1e]['attributesAfter']||{});return _0x5ec939;}['_getTypeCharForViewElement'](_0x3e0c6a){return this['_viewClassToTypeChar']['get'](_0x3e0c6a['constructor']);}['_getViewFromDiffObj'](_0x5447f2,_0x115514){const _0x2a93f9=this['editor']['editing']['view']['document'];if('string'==typeof _0x5447f2)return new _0x2dccb5(_0x2a93f9,_0x5447f2);{let _0x154820,_0x3d3699;_0x3d3699='u'==_0x5447f2['type']||'r'==_0x5447f2['type']?[]:_0x5447f2['children']['map'](_0x3ff51e=>this['_getViewFromDiffObj'](_0x3ff51e,_0x115514));const _0x397c7f=this['_typeCharToViewClass']['get'](_0x5447f2['type'])||_0x18702a,_0x5853f0=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x154820=new _0x397c7f(_0x2a93f9,_0x5447f2['name'],_0x5447f2['attributes'],_0x3d3699),'u'==_0x5447f2['type']&&_0x5447f2['children'][0x0]){const _0x15552b=_0x5447f2['children'][0x0];if(_0x154820['render']=function(_0x3c0b61){const _0x5afba2=_0x3c0b61['createElement']('div');return _0x5afba2['innerHTML']=_0x15552b,_0x5afba2['childNodes'][0x0];},_0x115514){const _0x29d0a2=new _0x9505ad(_0x2a93f9);_0x29d0a2['_appendChild'](_0x154820);const _0x857eb4=Array['from'](_0x5853f0['viewChildrenToDom'](_0x29d0a2,{'bind':!0x1})),_0x59e564=_0x5853f0['domDocument']['createElement']('div');_0x59e564['append'](..._0x857eb4),_0x154820=Array['from'](_0x5853f0['domChildrenToView'](_0x59e564))[0x0];}}else{if('r'==_0x5447f2['type']&&_0x5447f2['children'][0x0]){const _0x135b29=_0x5447f2['children'][0x0];if(_0x154820['render']=function(_0x3eafc5){_0x3eafc5['innerHTML']=_0x135b29;},_0x115514){const _0xf39313=new _0x9505ad(_0x2a93f9);_0xf39313['_appendChild'](_0x154820);const _0x1774c8=Array['from'](_0x5853f0['viewChildrenToDom'](_0xf39313,{'bind':!0x1})),_0x5b2dc4=_0x5853f0['domDocument']['createElement']('div');_0x5b2dc4['append'](..._0x1774c8);const _0x534a34=Array['from'](_0x5853f0['domChildrenToView'](_0x5b2dc4));_0x534a34['length']>0x1?_0x154820['_appendChild'](_0x534a34):_0x154820=_0x534a34[0x0];}}}if(_0x5447f2['customProperties']){for(const [_0x51a74f,_0x47726b]of _0x5447f2['customProperties'])_0x154820['_setCustomProperty'](_0x51a74f,_0x47726b);}const _0xb15724=void 0x0===_0x5447f2['fillerOffset']?null:_0x5447f2['fillerOffset'];return null!==_0xb15724&&(_0x154820['getFillerOffset']=()=>_0xb15724),_0x154820;}}['_makeModelFromViewString'](_0x54b37d){const _0x3a7fb7=JSON['parse'](_0x54b37d),_0xe57a03=this['editor']['editing']['view']['document'],_0x5569b0=new _0x9505ad(_0xe57a03,_0x3a7fb7['map'](_0x4a2b48=>this['_getViewFromDiffObj'](_0x4a2b48,!0x0)));return this['editor']['data']['toModel'](_0x5569b0);}['_removeRevisionMarkers'](_0x4c23b8){return(_0x4c23b8=_0x4c23b8['filter'](_0x2c6a3c=>!_0x2c6a3c['name']||'revision-start'!==_0x2c6a3c['name']&&'revision-end'!==_0x2c6a3c['name']))['forEach'](_0x5c3051=>{'string'!=typeof _0x5c3051&&(_0x5c3051['children']=this['_removeRevisionMarkers'](_0x5c3051['children']),_0x5c3051['attributes']=_0x5c3051['attributes']['filter'](_0x94ff88=>!_0x94ff88[0x0]['startsWith']('data-revision-')));}),_0x4c23b8;}}function g(_0x42e7d0,_0x12a1b9,_0x67f81e){const t=_0x42e7d0['t'];switch(_0x12a1b9){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'},_0x67f81e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x67f81e);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 _0x5df236{['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[_0x3ae4e4,I,V,_0x1081f4];}constructor(_0x404675){super(_0x404675),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 _0x59dc73=_0x3ebcbf();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x59dc73},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 _0x580a6e=this['repository']['getRevision'](0x0),_0x58c819=_0x580a6e&&null===_0x580a6e['creator']?_0x580a6e:null;if(this['_continueCurrentRevision']=!!_0x58c819&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2e4525=this['_source']['getCurrentRevisionId'](),_0x265681=this['repository']['getRevision'](_0x2e4525);if(_0x265681)this['_startingVersion']=_0x265681['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1c0dc5=this['_source']['history']['_operations']['find'](_0x3811d8=>!_0x3811d8['_isInit']),_0xb97257=_0x1c0dc5?_0x1c0dc5['baseVersion']:this['_source']['history']['version'];_0x580a6e?(_0x580a6e['toVersion']<_0xb97257&&_0x580a6e['_update']({'toVersion':_0xb97257}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x58c819['id'],this['_startingVersion']=_0x58c819['fromVersion']):(this['_startingVersion']=_0x580a6e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xb97257,this['_continueCurrentRevision']=!0x1);}}else _0x58c819&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x58c819['toVersion'],this['editor']['model']['document']['history']['version']),_0x58c819['fromVersion']===_0x58c819['toVersion']?(0x0!==_0x58c819['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x58c819['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x58c819['id'],this['_startingVersion']=_0x58c819['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',_0x2ab4bd=>!_0x2ab4bd),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xdd1a43=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x21ab41;for(const _0x2a33e4 in _0xdd1a43){const _0x4816da=_0x2a33e4,_0x1376af=_0xdd1a43[_0x4816da];if('revisionHistoryLicenseKeyValid'==_0x1376af||'revisionHistoryLicenseKeyInvalid'==_0x1376af||'revisionHistoryLicenseKeyExpired'==_0x1376af||'revisionHistoryLicenseKeyDomainLimit'==_0x1376af||'revisionHistoryLicenseKeyNotAllowed'==_0x1376af||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1376af||'revisionHistoryLicenseKeyTrialLimit'==_0x1376af||'revisionHistoryLicenseKeyUsageLimit'==_0x1376af){delete _0xdd1a43[_0x4816da],_0x21ab41=_0x1376af,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x21ab41&&_0xdd1a43['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x21ab41&&_0xdd1a43['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x21ab41&&_0xdd1a43['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x21ab41&&_0xdd1a43['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x21ab41&&_0xdd1a43['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x21ab41&&_0xdd1a43['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x21ab41&&_0xdd1a43['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x471aee=this['repository']['getRevision'](0x0),_0x20233f=await this['getRevisionDocumentData'](_0x471aee),_0x1244cf=await this['getRevisionRootsAttributes'](_0x471aee);this['_replaceEditorDataWithRevisionData'](_0x20233f,_0x1244cf);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2a198d){this['_source']=_0x2a198d;}async['update'](){const _0x1a756f=await this['_source']['getLatestVersion']();if(_0x1a756f>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4116de=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1a756f});_0x4116de['authors']=_0x4116de['authorsIds']['map'](_0xd1361=>this['editor']['plugins']['get']('Users')['getUser'](_0xd1361)),this['currentRevision']['_update'](_0x4116de);}}async['saveRevision'](_0x1e60c0={},_0x4f4d3a=null){const _0x38eaaf=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4f4d3a>this['currentRevision']['toVersion']&&(_0x4f4d3a=null),null===_0x4f4d3a&&(_0x4f4d3a=await this['_source']['getLatestVersion']());const _0x5ead66=this['_getFromVersion'](_0x4f4d3a),_0x315931=this['buildRevisionData']({'from':_0x5ead66,'to':_0x4f4d3a});if(this['currentRevision']['toVersion']<_0x4f4d3a){const _0x5e8e84=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4f4d3a,'to':_0x4f4d3a});_0x5e8e84['authors']=[],_0x5e8e84['authorsIds']=[],_0x5e8e84['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5e8e84,!0x0),delete _0x5e8e84['authors'],_0x38eaaf['push'](_0x5e8e84);}_0x1e60c0['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e60c0['name']=_0x1e60c0['name']||null,_0x1e60c0['id']=_0x1e60c0['id']||_0x3ebcbf(),_0x1e60c0={..._0x1e60c0,..._0x315931};const _0x121c5e=this['addRevisionData'](_0x1e60c0);_0x38eaaf['push'](_0x1e60c0);const _0x58f729=this['repository']['getIndex'](_0x121c5e);if(0x0!==_0x58f729){const _0x42b24e=this['repository']['getRevision'](_0x58f729-0x1);if(_0x42b24e['fromVersion']!==_0x4f4d3a){const _0x18ee46=this['_revisionDataBuilder']['getData'](_0x4f4d3a,_0x42b24e['toVersion']),_0x221b47={'id':_0x42b24e['id'],'diffData':_0x18ee46['diffData'],'authorsIds':_0x18ee46['authorsIds'],'authors':_0x18ee46['authorsIds']['map'](_0x5076d4=>this['editor']['plugins']['get']('Users')['getUser'](_0x5076d4)),'fromVersion':_0x4f4d3a};_0x42b24e===this['currentRevision']&&(_0x221b47['createdAt']=new Date(_0x1e60c0['createdAt']['getTime']()+0xa)),_0x42b24e['_update'](_0x221b47,!0x0),delete _0x221b47['authors'],_0x38eaaf['push'](_0x221b47);}}if(this['adapter']){for(const _0x154836 of _0x38eaaf)this['_bufferUpdate'](_0x154836['id'],_0x154836,!0x0);this['sendBufferedUpdates']();}return _0x121c5e;}['addRevisionData'](_0x393c71){const _0x35e756=this['repository']['createRevision'](_0x393c71);return this['adapter']&&_0x35e756['on']('_update',(_0x5caf3a,_0x4530d4,_0x4844fc)=>{_0x4844fc||(this['_bufferUpdate'](_0x4530d4['id'],_0x4530d4,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x35e756,this['_findInsertionIndex'](_0x35e756)),_0x35e756;}async['getRevisionDocumentData'](_0x13db9b){return await this['_utils']['loadRevisionData'](_0x13db9b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x13db9b);}async['getRevisionRootsAttributes'](_0xad9b47){return await this['_utils']['loadRevisionData'](_0xad9b47,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xad9b47);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x383c26=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x13d856=0x0;_0x13d856<_0x383c26['length'];_0x13d856++){const _0x41ac45=_0x383c26[_0x13d856];let _0x1f2f30=!0x1;for(const _0x119191 of Object['keys'](_0x41ac45))void 0x0===_0x41ac45[_0x119191]?delete _0x41ac45[_0x119191]:'id'!==_0x119191&&(_0x1f2f30=!0x0);_0x1f2f30||(_0x383c26[_0x13d856]=null);}if(_0x383c26=_0x383c26['filter'](_0x1e356f=>null!==_0x1e356f),!_0x383c26['length'])return;for(let _0x3c051d=0x0;_0x3c051d<_0x383c26['length'];_0x3c051d++){const _0x6f44b0=_0x383c26[_0x3c051d];void 0x0!==_0x6f44b0['fromVersion']&&void 0x0===_0x6f44b0['toVersion']&&(_0x6f44b0['toVersion']=this['repository']['getRevision'](_0x6f44b0['id'])['toVersion']),void 0x0!==_0x6f44b0['toVersion']&&void 0x0===_0x6f44b0['fromVersion']&&(_0x6f44b0['fromVersion']=this['repository']['getRevision'](_0x6f44b0['id'])['fromVersion']);}const _0x328256=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x383c26,_0x328256)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5a8be6=>{if(_0x5a8be6){for(const _0x5d00e7 of _0x5a8be6)this['setRevisionData']({'id':_0x5d00e7['id'],'createdAt':_0x5d00e7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x8a9937=null,from:_0x48b43e=null,to:_0x4f0a03=null}){_0x48b43e=null!==_0x48b43e?_0x48b43e:_0x8a9937['fromVersion'],_0x4f0a03=null!==_0x4f0a03?_0x4f0a03:_0x8a9937['toVersion'];const _0x5ab00f=this['_revisionDataBuilder']['getData'](_0x48b43e,_0x4f0a03),_0x109227={'diffData':_0x5ab00f['diffData'],'authorsIds':_0x5ab00f['authorsIds'],'fromVersion':_0x48b43e,'toVersion':_0x4f0a03};if(!_0x8a9937||_0x4f0a03!==_0x8a9937['toVersion']){const _0x101440=_0x4f0a03-0x1,_0x3f5992=this['_source']['history']['getOperation'](_0x101440);_0x109227['createdAt']=_0x3f5992&&_0x3f5992['createdAt']||new Date();}if(this['_loadedStateData']&&_0x48b43e===this['_loadedStateData']['fromVersion']){for(const _0x13033b of this['_loadedStateData']['authors'])_0x109227['authorsIds']['includes'](_0x13033b['id'])||_0x109227['authorsIds']['push'](_0x13033b['id']);}return _0x109227;}['_bufferUpdate'](_0x52c655,_0x2e19b6,_0x3f83fa){if(this['_bufferedUpdates']['has'](_0x52c655)){const _0x210111=this['_bufferedUpdates']['get'](_0x52c655);_0x2e19b6=_0x3f83fa?{..._0x210111,..._0x2e19b6}:{..._0x2e19b6,..._0x210111};}this['_bufferedUpdates']['set'](_0x52c655,_0x2e19b6);}['setRevisionData'](_0x547dbd){const _0x6625ec=this['repository']['getRevision'](_0x547dbd['id']);if(_0x547dbd['createdAt']&&(_0x547dbd['createdAt']=new Date(_0x547dbd['createdAt'])),_0x547dbd['authorsIds']){const _0x567715=this['editor']['plugins']['get']('Users');_0x547dbd['authors']=_0x547dbd['authorsIds']['map'](_0xf93156=>_0x567715['getUser'](_0xf93156));}_0x6625ec['_update'](_0x547dbd,!0x0);}['_createInitialRevision'](_0x5c5f75){const _0x51dd79=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x51dd79)this['_initialRevisionId']=_0x51dd79['id'];else{const _0x128dd3=!this['editor']['model']['document']['roots']['find'](_0xda97b4=>this['editor']['model']['hasContent'](_0xda97b4)),_0x3cc979=this['editor']['plugins']['get']('Users')['me']['id'],_0x3281bb=g(this['editor']['locale'],_0x128dd3?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5c5f75,'to':_0x5c5f75,'id':this['_initialRevisionId'],'name':_0x3281bb,'creatorId':_0x3cc979});}}['_createCurrentRevision'](_0x24c827){const _0x588aa6=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x588aa6),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x24c827,'to':_0x24c827,'id':_0x588aa6,'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'](_0x484713,_0x480743){let _0x31f881=this['editor']['config']['get']('initialData'),_0x224be4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x31f881){_0x31f881={};for(const _0x37c983 of this['editor']['model']['document']['getRootNames']())_0x31f881[_0x37c983]='';}if('string'==typeof _0x31f881&&(_0x31f881={'main':_0x31f881}),void 0x0===_0x224be4){_0x224be4={};for(const _0x1dfcca of this['editor']['model']['document']['getRootNames']())_0x224be4[_0x1dfcca]={};}let _0x47de31=!0x1;const _0x3047cb=Object['keys'](_0x31f881),_0x301a38=Object['keys'](_0x484713);for(const _0xceb2a6 of _0x3047cb){if(_0x31f881[_0xceb2a6]!==_0x484713[_0xceb2a6]&&''!==_0x31f881[_0xceb2a6]['trim']()){_0x47de31=!0x0;break;}if(!_0x2f3b95(_0x224be4[_0xceb2a6],_0x480743[_0xceb2a6])&&Object['keys'](_0x224be4[_0xceb2a6])['length']>0x0){_0x47de31=!0x0;break;}}_0x47de31||(_0x47de31=_0x301a38['some'](_0x163cdd=>!this['editor']['model']['document']['getRoot'](_0x163cdd))),_0x47de31&&_0x5a9d49('editor-initial-data-replaced-with-revision-data',{'editorData':_0x31f881,'editorRootsAttributes':_0x224be4,'revisionData':_0x484713,'revisionRootsAttributes':_0x480743}),this['editor']['config']['set']('initialData',_0x484713),this['editor']['config']['set']('rootsAttributes',_0x480743);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x233b54=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x233b54['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5f3074){const _0x35f8a7=this['repository']['getRevisions']();_0x35f8a7['reverse']();let _0x2ef3ac=0x0;for(;_0x2ef3ac<_0x35f8a7['length'];){const _0x44b9bd=_0x35f8a7[_0x2ef3ac];if(_0x44b9bd===this['currentRevision']){_0x2ef3ac++;continue;}if(_0x44b9bd['id']===this['_initialRevisionId'])break;const _0x3cc1dd=_0x5f3074['toVersion']-_0x44b9bd['toVersion']||_0x5f3074['fromVersion']-_0x44b9bd['fromVersion'];if(_0x3cc1dd>0x0)break;if(_0x3cc1dd<0x0)_0x2ef3ac++;else{if(!_0x5f3074['creator']&&_0x44b9bd['creator'])break;if(_0x44b9bd['creator']||!_0x5f3074['creator']){if(_0x5f3074['createdAt']>_0x44b9bd['createdAt'])break;_0x2ef3ac++;}else _0x2ef3ac++;}}return _0x2ef3ac;}['_getFromVersion'](_0x38154c){const _0x443fab=this['repository']['getRevisions']();_0x443fab['reverse'](),_0x443fab['shift']();const _0x3256ba=_0x443fab['find'](_0x3d4066=>_0x3d4066['toVersion']<=_0x38154c)['toVersion'];return _0x3256ba<this['_startingVersion']?this['_startingVersion']:_0x3256ba;}['_makeRevision']({name:_0x52302d,from:_0x5e635d,to:_0x393fe1,creatorId:_0x408d4c,id:_0x1c509c}){const _0x1d0f3f=this['buildRevisionData']({'from':_0x5e635d,'to':_0x393fe1});_0x1d0f3f['name']=_0x52302d,_0x1d0f3f['creatorId']=_0x408d4c,_0x1d0f3f['id']=_0x1c509c;const _0x8900d0=this['addRevisionData'](_0x1d0f3f);return this['adapter']&&this['_bufferUpdate'](_0x1d0f3f['id'],_0x1d0f3f,!0x0),_0x8900d0;}['_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(_0x5f25d4){this['editor']=_0x5f25d4,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'](_0x1f822e){this['source']=_0x1f822e;const _0x5f39e0=new Map(),_0x309f3d=new Map(),_0x3232cc=this['editor']['model']['document']['roots']['map'](_0x4d4df3=>_0x4d4df3['rootName']);for(const _0x525d91 of _0x3232cc){const _0x13974d=this['editor']['model']['document']['getRoot'](_0x525d91),_0x2197b5=N(_0x13974d);_0x5f39e0['set'](_0x525d91,_0x2197b5),_0x309f3d['set'](_0x525d91,Object['fromEntries'](_0x13974d['getAttributes']()));}const _0x399541=Array['from'](this['editor']['model']['markers'])['map'](_0x225733=>[_0x225733['name'],_0x225733['getRange']()]),_0x5c264c=this['source']['version'];this['_saveMetaData'](_0x5c264c,_0x5f39e0,_0x399541,_0x309f3d),this['_startingRevisionId']=this['_revisionId'];const _0x418220=new Map(),_0x409ddd=new Map();for(const _0x5ed5d1 of _0x3232cc){const _0x410eba=P(_0x5ed5d1);_0x418220['set'](_0x5ed5d1,_0x410eba),_0x409ddd['set'](_0x5ed5d1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x418220,[],_0x409ddd);}['getData'](_0x53abfe,_0x37f3ef){if(this['_lastFrom']===_0x53abfe&&this['_lastTo']<=_0x37f3ef)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x37f3ef,!0x0);else{if(!this['_savedMetaData']['has'](_0x53abfe)){const _0xb3b482=this['_getPreviousFrom'](_0x53abfe);this['_calculateMetaData'](_0xb3b482,_0x53abfe,!0x1);}this['_calculateMetaData'](_0x53abfe,_0x37f3ef,!0x0);}return this['_lastFrom']=_0x53abfe,this['_lastTo']=_0x37f3ef,this['_getState']();}['loadState'](_0x5d018f){const _0x4df854=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5d018f['fromVersion'],this['_lastTo']=_0x5d018f['toVersion'];for(const _0x5cd8e4 in _0x5d018f['diffData']){const _0x41481c=_0x5d018f['diffData'][_0x5cd8e4]['attachChange'],_0x4bc90a=_0x35023c(_0x5d018f['diffData'][_0x5cd8e4]['attributesBefore'])||{},_0x385c8d=_0x4df854['_makeModelFromViewString'](_0x5d018f['diffData'][_0x5cd8e4]['deletions']);_0x385c8d['rootName']=_0x5cd8e4,_0x385c8d['_isAttached']=!_0x41481c||!_0x41481c['isAttached'],_0x385c8d['isAttached']=()=>_0x385c8d['_isAttached'],this['_baseRoots']['set'](_0x5cd8e4,_0x385c8d),this['_baseRootsAttributes']['set'](_0x5cd8e4,_0x4bc90a),_0x41481c&&this['_touchedRoots']['set'](_0x5cd8e4,_0x41481c);const _0x5b4642=this['_makeIdsRoot'](_0x385c8d);this['_baseIdsRoots']['set'](_0x5cd8e4,_0x5b4642);for(const [_0x271452,_0x269d36]of _0x385c8d['markers']){if(!_0x271452['startsWith']('revision:'))continue;const _0x30c93a=_0x271452['split'](':')[0x2];for(const _0x1ef8c8 of _0x269d36['getWalker']({'singleCharacters':!0x0})){const _0x5400e3=this['_getVidAttributeName'](_0x1ef8c8),_0x3c2288='elementEnd'==_0x1ef8c8['type']?_0x1ef8c8['previousPosition']['path']['slice'](0x0,-0x1):_0x1ef8c8['previousPosition']['path'],_0x620554=_0x5b4642['getNodeByPath'](_0x3c2288)['getAttribute'](_0x5400e3);this['_touched']['set'](_0x620554,{'userId':_0x30c93a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4ca412=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3654f0=>!this['_touched']['has'](_0x3654f0));let _0x25b1fc=0x0;const _0x2dc047=new Map();for(const _0x188071 in _0x5d018f['diffData']){const _0xe2ee3b=_0x5d018f['diffData'][_0x188071]['attachChange'],_0x3bd727=_0x35023c(_0x5d018f['diffData'][_0x188071]['attributesAfter'])||{},_0xde0180=_0x4df854['_makeModelFromViewString'](_0x5d018f['diffData'][_0x188071]['insertions']);_0xde0180['rootName']=_0x188071,_0xde0180['_isAttached']=!_0xe2ee3b||_0xe2ee3b['isAttached'],_0xde0180['isAttached']=()=>_0xde0180['_isAttached'],this['_diffRoots']['set'](_0x188071,_0xde0180),this['_diffRootsAttributes']['set'](_0x188071,_0x3bd727);const _0x40c835=this['_makeIdsRoot'](_0xde0180,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x188071,_0x40c835),_0x2dc047['set'](_0x188071,_0xde0180['isAttached']()?_0x3bd727:{});for(const [_0x393023,_0x4d9cef]of _0xde0180['markers']){if(!_0x393023['startsWith']('revision:'))continue;const _0x2497ef=_0x393023['split'](':')[0x2];for(const _0x241cb8 of _0x4d9cef['getWalker']({'singleCharacters':!0x0})){const _0x220922=this['_getVidAttributeName'](_0x241cb8),_0x4dfffa=this['_revisionId']++,_0x296a43='elementEnd'==_0x241cb8['type']?_0x241cb8['previousPosition']['path']['slice'](0x0,-0x1):_0x241cb8['previousPosition']['path'];_0x40c835['getNodeByPath'](_0x296a43)['_setAttribute'](_0x220922,_0x4dfffa),this['_touched']['set'](_0x4dfffa,{'userId':_0x2497ef});}}for(const _0xddaeec of this['editor']['model']['createRangeIn'](_0xde0180)['getWalker']({'singleCharacters':!0x0})){const _0x1f06ef=this['_getVidAttributeName'](_0xddaeec),_0x2543ec='elementEnd'==_0xddaeec['type']?_0xddaeec['previousPosition']['path']['slice'](0x0,-0x1):_0xddaeec['previousPosition']['path'],_0x2d9035=_0x40c835['getNodeByPath'](_0x2543ec);_0x2d9035['getAttribute'](_0x1f06ef)>0x0||_0x2d9035['_setAttribute'](_0x1f06ef,_0x4ca412[_0x25b1fc++]);}for(const [_0x3f6bed,_0x24184c]of _0xde0180['markers'])_0x3f6bed['startsWith']('revision:')||this['_markers']['set'](_0x3f6bed,_0x24184c);}const _0x310b02=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x310b02),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x310b02,0x1));const _0x53458a=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x53458a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x53458a,0x1));const _0x55a94f=Array['from'](this['_diffRoots'])['map'](([_0x229ef7,_0x2605ac])=>[_0x229ef7,N(_0x2605ac)]);this['_saveMetaData'](this['_lastTo'],_0x55a94f,this['_markers'],_0x2dc047);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xc12e5,_0x8f7d7e,_0x4f1477,_0x2e9101){const _0x29a8d5=new Map(_0x8f7d7e),_0x3357e8=new Map(_0x35023c(_0x2e9101)),_0x4eb5a6=new Map();for(const [_0x3e4853,_0x93a9d5]of _0x4f1477)_0x4eb5a6['set'](_0x3e4853,{'start':_0x93a9d5['start']['clone'](),'end':_0x93a9d5['end']['clone'](),'rootName':_0x93a9d5['root']['rootName']});this['_savedMetaData']['set'](_0xc12e5,{'roots':_0x29a8d5,'markers':_0x4eb5a6,'rootsAttributes':_0x3357e8});}['_removeMetaData'](_0x1b40d2){this['_savedMetaData']['delete'](_0x1b40d2);}['_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'](_0x62f427,_0x236cd2=null){let _0xc92e5c=null;_0x62f427['is']('documentFragment')||(_0xc92e5c=new ut(_0x62f427['name'],{'vid_start':null===_0x236cd2?this['_revisionId']++:_0x236cd2++}));const _0x4dfece=[];for(const _0x1a6b19 of _0x62f427['getChildren']())if(_0x1a6b19['is']('element')){_0x4dfece['push'](this['_makeIdsRoot'](_0x1a6b19,_0x236cd2));const _0xdd588f=_0x4dfece[_0x4dfece['length']-0x1];null!==_0x236cd2&&(_0x236cd2=_0xdd588f['is']('element','$text')?_0xdd588f['getAttribute']('vid')+0x1:_0xdd588f['getAttribute']('vid_end')+0x1);}else{for(let _0x462307=0x0;_0x462307<_0x1a6b19['offsetSize'];_0x462307++)_0x4dfece['push'](new ut('$text',{'vid':null===_0x236cd2?this['_revisionId']++:_0x236cd2++}));}if(_0x62f427['is']('documentFragment')){const _0x1b1750=P(_0x62f427['rootName']);return _0x1b1750['_insertChild'](0x0,_0x4dfece),_0x1b1750;}return _0xc92e5c['_setAttribute']('vid_end',null===_0x236cd2?this['_revisionId']++:_0x236cd2++),_0xc92e5c['_insertChild'](0x0,_0x4dfece),_0xc92e5c;}['_calculateMetaData'](_0x5810ab,_0x4d0852,_0x3ef73c){this['_reset']();const {roots:_0x51666a,markers:_0x14bb40,rootsAttributes:_0x4672f3}=this['_savedMetaData']['get'](_0x5810ab);this['_baseRoots']=new Map(_0x51666a),this['_baseRootsAttributes']=new Map(_0x35023c(_0x4672f3));for(const [_0x5b0803,_0x5797ec]of this['_baseRoots'])if('$graveyard'!==_0x5b0803&&(this['_diffRoots']['set'](_0x5b0803,N(_0x5797ec)),this['_diffRootsAttributes']=new Map(_0x35023c(_0x4672f3)),_0x3ef73c)){const _0x302e2c=this['_revisionId'];this['_idsRoots']['set'](_0x5b0803,this['_makeIdsRoot'](_0x5797ec)),this['_baseIdsRoots']['set'](_0x5b0803,this['_makeIdsRoot'](_0x5797ec,_0x302e2c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x3ef73c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4c46db,_0x3b90b3]of _0x14bb40){const _0xe16ac1=this['_baseRoots']['get'](_0x3b90b3['rootName']),_0x20929f=this['_diffRoots']['get'](_0x3b90b3['rootName']),_0x338a5c=new ft(this['_fixPosition'](_0x3b90b3['start'],_0xe16ac1),this['_fixPosition'](_0x3b90b3['end'],_0xe16ac1)),_0x5dc539=this['_fixRange'](_0x338a5c,_0x20929f);_0xe16ac1['markers']['set'](_0x4c46db,_0x338a5c),this['_markers']['set'](_0x4c46db,_0x5dc539);}this['_applyOperations'](_0x5810ab,_0x4d0852,_0x3ef73c);}['_applyOperations'](_0x329293,_0x9f03f9,_0x1816d1){for(const _0x42b572 of this['source']['getOperations'](_0x329293,_0x9f03f9))this['_handleOperation'](_0x42b572,_0x1816d1);for(const _0x497999 of this['_diffRoots']['values']())_0x497999['markers']['clear']();for(const [_0x5a6c43,_0x49c6f3]of this['_markers']){this['_diffRoots']['get'](_0x49c6f3['root']['rootName'])['markers']['set'](_0x5a6c43,_0x49c6f3['clone']());}const _0x964f95=new Map(),_0x4c0512=new Map();for(const [_0x3f487c,_0x5669a]of this['_diffRoots'])_0x964f95['set'](_0x3f487c,N(_0x5669a)),_0x4c0512['set'](_0x3f487c,this['_diffRootsAttributes']['get'](_0x3f487c));this['_saveMetaData'](_0x9f03f9,_0x964f95,this['_markers'],_0x4c0512);}['_getPreviousFrom'](_0x60a31b){const _0x4b77b0=Array['from'](this['_savedMetaData']['keys']());_0x4b77b0['sort']((_0x28d2d8,_0x213856)=>_0x28d2d8-_0x213856),_0x4b77b0['reverse']();for(const _0x5aa941 of _0x4b77b0)if(_0x5aa941<_0x60a31b)return _0x5aa941;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4a4119,_0x435435){const _0x5c3977=Array['from'](_0x435435['markers'])['map'](([_0xd73246,_0x5603a1])=>[_0xd73246,this['_fixRange'](_0x5603a1,_0x4a4119)]);_0x4a4119['markers']=new Map(_0x5c3977);}['_transformMarkers'](_0xe0731){for(const _0x7b6083 of this['_markers']['values']()){const _0x1cce6c=_0x7b6083['getTransformedByOperation'](_0xe0731),_0x1081ff=ft['_createFromRanges'](_0x1cce6c);_0x7b6083['start']=_0x1081ff['start'],_0x7b6083['end']=_0x1081ff['end'];}}['_handleOperation'](_0x200e72,_0x17be69){if('addRoot'!=_0x200e72['type']&&'detachRoot'!=_0x200e72['type']){if('insert'==_0x200e72['type']){const _0x34f16a=_0x200e72['position']['root']['rootName'];this['_diffRoots']['has'](_0x34f16a)||(this['_diffRoots']['set'](_0x34f16a,P(_0x34f16a,!0x0)),this['_diffRootsAttributes']['set'](_0x34f16a,{}),_0x17be69&&this['_idsRoots']['set'](_0x34f16a,P(_0x34f16a,!0x0)));}else{if('addRootAttribute'==_0x200e72['type']||'removeRootAttribute'==_0x200e72['type']||'changeRootAttribute'==_0x200e72['type'])return void this['_handleRootAttributeOperation'](_0x200e72);'marker'==_0x200e72['type']&&this['_handleMarkerOperation'](_0x200e72);}if('marker'!==_0x200e72['type']){const _0x5daf63=this['_cloneOperation'](_0x200e72,this['_diffRoots']);_0x5daf63['_execute'](),this['_transformMarkers'](_0x5daf63);}if(_0x17be69)switch(_0x200e72['type']){case'insert':this['_handleInsertOperation'](_0x200e72);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x200e72);break;case'merge':this['_handleMergeOperation'](_0x200e72);break;case'split':this['_handleSplitOperation'](_0x200e72);}}else this['_handleRootOperation'](_0x200e72,_0x17be69);}['_cloneOperation'](_0x284f98,_0x5ed584){const _0x549bb4=_0x284f98['clone']();return _0x549bb4['_authorId']=_0x284f98['_authorId'],this['_fixOperation'](_0x549bb4,_0x5ed584),_0x549bb4;}['_getBaseVids'](_0xeddf52){return _0xeddf52['map'](_0x460647=>{const _0x4623e7=this['_getVidAttributeName'](_0x460647);return Number(_0x460647['item']['getAttribute'](_0x4623e7));});}['_generateTape'](_0x364a53,_0x15552c){if(_0x364a53['is']('element','$text'))_0x15552c['push']({'item':_0x364a53,'type':'text'});else{_0x364a53['is']('element')&&_0x15552c['push']({'item':_0x364a53,'type':'elementStart'});for(const _0x5f210a of _0x364a53['getChildren']())this['_generateTape'](_0x5f210a,_0x15552c);_0x364a53['is']('element')&&_0x15552c['push']({'item':_0x364a53,'type':'elementEnd'});}return _0x15552c;}['_getState'](){const _0x238a4a=new Map(this['_touched']),_0x3cc381=new Map(_0x238a4a),_0x27346b=new Map(),_0x4be560={'insertions':{},'deletions':{}},_0x3453a2={'insertions':{},'deletions':{}},_0x3ebd36=new Map(),_0x98fa3b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x98fa3b['delete']('$graveyard');for(const _0x5d6c51 of _0x98fa3b){const _0x2ce103=this['_diffRoots']['get'](_0x5d6c51)||P(_0x5d6c51,!0x1),_0x4a0cec=this['_baseRoots']['get'](_0x5d6c51)||P(_0x5d6c51,!0x1);_0x2ce103['isAttached']()||_0x4a0cec['isAttached']()?(_0x4be560['insertions'][_0x5d6c51]=N(_0x2ce103),_0x4be560['deletions'][_0x5d6c51]=N(_0x4a0cec),this['_copyMarkers'](_0x4be560['deletions'][_0x5d6c51],_0x4a0cec),this['_copyMarkers'](_0x4be560['insertions'][_0x5d6c51],_0x2ce103),_0x3453a2['insertions'][_0x5d6c51]=this['_generateTape'](this['_idsRoots']['get'](_0x5d6c51),[]),_0x3453a2['deletions'][_0x5d6c51]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5d6c51)||P(_0x5d6c51,!0x1),[])):_0x98fa3b['delete'](_0x5d6c51);}for(const _0x4becb8 of _0x98fa3b){const _0x393c08=_0x3453a2['insertions'][_0x4becb8];for(const _0x358670 of _0x393c08){const _0x29413c=this['_getVidAttributeName'](_0x358670),_0x5c6c6d=_0x358670['item']['getAttribute'](_0x29413c);_0x3cc381['delete'](_0x5c6c6d),_0x5c6c6d>=this['_startingRevisionId']&&_0x27346b['set'](_0x5c6c6d,_0x238a4a['get'](_0x5c6c6d));}}for(const _0x3293e5 of _0x98fa3b){const _0x1ea1a1=_0x3453a2['insertions'][_0x3293e5],_0x53191c=this['_getBaseVids'](_0x3453a2['deletions'][_0x3293e5]);let _0x11f203=0x0;for(const _0x4a73ce of _0x1ea1a1){const _0x423f8e=this['_getVidAttributeName'](_0x4a73ce),_0x52ea8c=_0x4a73ce['item']['getAttribute'](_0x423f8e);if(!_0x27346b['has'](_0x52ea8c)&&!_0x3ebd36['has'](_0x52ea8c)){if(_0x3cc381['has'](_0x52ea8c))_0x11f203++;else{if(_0x52ea8c!=_0x53191c[_0x11f203]){const _0x3582e8=_0x238a4a['get'](_0x52ea8c)||_0x238a4a['get'](_0x53191c[_0x11f203]);for(;_0x52ea8c!=_0x53191c[_0x11f203];)_0x3cc381['has'](_0x53191c[_0x11f203])||(_0x3ebd36['set'](_0x53191c[_0x11f203],_0x3582e8),_0x238a4a['set'](_0x53191c[_0x11f203],_0x3582e8)),_0x11f203++;}_0x11f203++;}}}}for(const _0x470864 of _0x98fa3b){const _0x391870=_0x3453a2['insertions'][_0x470864];for(const _0x4a0f36 of _0x391870){const _0x62b33e=this['_getVidAttributeName'](_0x4a0f36),_0x17765f=_0x4a0f36['item']['getAttribute'](_0x62b33e);if(_0x3ebd36['has'](_0x17765f)){const _0x191cd6=_0x3ebd36['get'](_0x17765f);_0x3cc381['has'](_0x17765f)||_0x3cc381['set'](_0x17765f,{..._0x191cd6}),_0x27346b['set'](_0x17765f,{..._0x191cd6});}}}for(const _0x4e9c17 of _0x3cc381['keys']())_0x4e9c17>=this['_startingRevisionId']&&_0x3cc381['delete'](_0x4e9c17);const _0xd46901=new Map();for(const _0x3fe7f9 of _0x98fa3b){let _0x51fad7=_0x3453a2['insertions'][_0x3fe7f9];for(const _0x23f462 of _0x51fad7)if(_0x23f462['item']['is']('element','tableCell')){const _0x48f06c=this['_getVidAttributeName'](_0x23f462),_0x3ee6f7=_0x23f462['item']['getAttribute'](_0x48f06c);if(_0x27346b['has'](_0x3ee6f7)){const _0x588750=_0x23f462['item']['parent']['parent']['getAttribute']('vid_start'),_0x53e7c6=_0xd46901['get'](_0x588750)||new Set();_0x53e7c6['add'](_0x27346b['get'](_0x3ee6f7)['userId']),_0xd46901['set'](_0x588750,_0x53e7c6);}}_0x51fad7=_0x3453a2['deletions'][_0x3fe7f9];for(const _0x2a4825 of _0x51fad7)if(_0x2a4825['item']['is']('element','tableCell')){const _0x24c4dd=this['_getVidAttributeName'](_0x2a4825),_0x33cf95=_0x2a4825['item']['getAttribute'](_0x24c4dd);if(_0x3cc381['has'](_0x33cf95)){const _0x6196da=_0x2a4825['item']['parent']['parent']['getAttribute']('vid_start'),_0x22a4c6=_0xd46901['get'](_0x6196da)||new Set();_0x22a4c6['add'](_0x3cc381['get'](_0x33cf95)['userId']),_0xd46901['set'](_0x6196da,_0x22a4c6);}}for(const _0x3a7640 of _0xd46901['keys']())(_0x27346b['has'](_0x3a7640)||_0x3cc381['has'](_0x3a7640))&&_0xd46901['delete'](_0x3a7640);}for(const _0x197a8c of _0x98fa3b){const _0x49f16d=_0x3453a2['insertions'][_0x197a8c];let _0x2ed678=null,_0x4f2c65=null;for(const _0x175e8e of _0x49f16d){const _0x281e73=this['_getVidAttributeName'](_0x175e8e),_0x43d38f=_0x175e8e['item']['getAttribute'](_0x281e73),_0x46c54b=_0xd46901['get'](_0x43d38f);_0x46c54b&&'elementStart'==_0x175e8e['type']&&(_0x2ed678=Array['from'](_0x46c54b)[0x0],_0x4f2c65=_0x175e8e['item']['getAttribute']('vid_end')),_0x2ed678&&(_0x3cc381['set'](_0x43d38f,{'userId':_0x2ed678}),_0x27346b['set'](_0x43d38f,{'userId':_0x2ed678})),_0x43d38f==_0x4f2c65&&(_0x2ed678=null,_0x4f2c65=null);}}const _0x19d7b1={},_0x1ee291=new Set();for(const _0x5e1ccb of _0x98fa3b){const _0x509cc5=_0x4be560['deletions'][_0x5e1ccb],_0x3c68e1=_0x4be560['insertions'][_0x5e1ccb];for(const {userId:_0x493e36}of this['_touchedMarkers']['values']())null!==_0x493e36&&_0x1ee291['add'](_0x493e36);for(const {userId:_0x1f9213}of this['_touchedRoots']['values']())null!==_0x1f9213&&_0x1ee291['add'](_0x1f9213);this['_markChanges'](_0x3c68e1,_0x3453a2['insertions'][_0x5e1ccb],_0x27346b,'insertion',_0x1ee291),this['_markChanges'](_0x509cc5,_0x3453a2['deletions'][_0x5e1ccb],_0x3cc381,'deletion',_0x1ee291),_0x19d7b1[_0x5e1ccb]={'insertions':this['_prepareViewToSave'](_0x3c68e1),'deletions':this['_prepareViewToSave'](_0x509cc5),'attachChange':this['_touchedRoots']['get'](_0x5e1ccb)||null,'attributesBefore':_0x35023c(this['_baseRootsAttributes']['get'](_0x5e1ccb))||{},'attributesAfter':_0x35023c(this['_diffRootsAttributes']['get'](_0x5e1ccb))};}return{'diffData':_0x19d7b1,'authorsIds':Array['from'](_0x1ee291)};}['_processRootBeforeSave'](_0x1d2b4f){for(const [,_0x7d8ea1]of _0x1d2b4f['markers']){const _0x1d348f=_0x7d8ea1['start']['getAncestors']()['filter'](_0x172842=>'tableCell'==_0x172842['name']);for(const _0x3bca4b of _0x1d348f)0x1==_0x3bca4b['childCount']&&_0x3bca4b['getChild'](0x0)['is']('element','paragraph')&&_0x3bca4b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x8eef74){this['_processRootBeforeSave'](_0x8eef74);const _0x1bf6c7=this['editor']['data']['toView'](_0x8eef74,{}),_0x1f89d1=Array['from'](_0x1bf6c7['getChildren']())['map'](_0x3dada4=>this['_getViewJson'](_0x3dada4));return JSON['stringify'](_0x1f89d1);}['_getViewJson'](_0x339310){if(_0x339310['is']('$text'))return _0x339310['data'];{const _0x5b5beb=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5cc74a=_0x339310,_0x1550a2=this['editor']['data']['htmlProcessor']['domConverter'],_0x3d6ff5={'type':_0x5b5beb['_getTypeCharForViewElement'](_0x5cc74a),'name':_0x5cc74a['name'],'attributes':Array['from'](_0x5cc74a['getAttributes']()),'children':Array['from'](_0x5cc74a['getChildren']())['map'](_0x339f68=>this['_getViewJson'](_0x339f68))};if(_0x339310['is']('uiElement')&&'$comment'!=_0x339310['name']){const _0x3f830d=_0x339310['render'](_0x1550a2['domDocument'],_0x1550a2);_0x3d6ff5['children']['push'](_0x3f830d['outerHTML']);}else{if(_0x339310['is']('rawElement')){const _0x2f101c=_0x1550a2['domDocument']['createElement'](_0x5cc74a['name']);_0x339310['render'](_0x2f101c,_0x1550a2),_0x3d6ff5['children']['push'](_0x2f101c['innerHTML']);}}const _0x14064d=Array['from'](_0x5cc74a['getCustomProperties']());_0x14064d['length']>0x0&&(_0x3d6ff5['customProperties']=_0x14064d);const _0x4cbbe1=_0x5cc74a['getFillerOffset']();return null!==_0x4cbbe1&&(_0x3d6ff5['fillerOffset']=_0x4cbbe1),_0x3d6ff5;}}['_markChanges'](_0x57eaca,_0x266109,_0x5cd6c5,_0x2e18ee,_0x1437e9){let _0x67d577=null,_0x1809d3=null,_0x14780b=0x0;const _0x5b8bc1=this['editor']['model'];for(let _0x1adc6d=0x0;_0x1adc6d<_0x266109['length'];_0x1adc6d++){const _0x51cceb=this['_getVidAttributeName'](_0x266109[_0x1adc6d]),_0x14979a=_0x266109[_0x1adc6d]['item']['getAttribute'](_0x51cceb),_0x2a51d9=_0x5cd6c5['get'](_0x14979a),_0x27c37f=_0x1adc6d==_0x266109['length']-0x1;(!_0x67d577&&_0x2a51d9&&(_0x67d577=_0x2a51d9,_0x1809d3=_0x266109[_0x1adc6d]),_0x67d577&&(!_0x2a51d9||_0x2a51d9['userId']!=_0x67d577['userId']))&&(_0x346dd2(_0x2a51d9,F(_0x1809d3,_0x57eaca,_0x5b8bc1),F(_0x266109[_0x1adc6d],_0x57eaca,_0x5b8bc1)),_0x67d577=_0x2a51d9||null,_0x1809d3=_0x2a51d9?_0x266109[_0x1adc6d]:null),_0x67d577&&_0x27c37f&&_0x346dd2(_0x2a51d9,F(_0x1809d3,_0x57eaca,_0x5b8bc1),B(_0x266109[_0x1adc6d],_0x57eaca,_0x5b8bc1));}function _0x346dd2(_0x446b5d,_0x3b6317,_0x1c5e72){const _0x1462e2=_0x67d577['userId'],_0x351647='revision:'+_0x2e18ee+':'+_0x1462e2+':'+_0x14780b++,_0x4ba060=_0x5b8bc1['createRange'](_0x3b6317,_0x1c5e72);_0x57eaca['markers']['set'](_0x351647,_0x4ba060),null!==_0x1462e2&&_0x1437e9['add'](_0x1462e2);}}['_getVidAttributeName'](_0x218f28){switch(_0x218f28['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x28d349,_0x4974db){_0x28d349['baseVersion']=null;for(const _0x15f3c5 in _0x28d349){const _0x152dc2=_0x28d349[_0x15f3c5];if(_0x152dc2 instanceof vt){const _0x520b32=_0x4974db['get'](_0x152dc2['root']['rootName']);_0x28d349[_0x15f3c5]=this['_fixPosition'](_0x152dc2,_0x520b32);}if(_0x152dc2 instanceof ft){const _0x4aa521=_0x4974db['get'](_0x152dc2['root']['rootName']);_0x28d349[_0x15f3c5]=this['_fixRange'](_0x152dc2,_0x4aa521);}'root'===_0x15f3c5&&(_0x28d349['root']=_0x4974db['get'](_0x28d349['root']['rootName']));}}['_fixRange'](_0x5e6605,_0x831fad){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5e6605['start'],_0x831fad),this['_fixPosition'](_0x5e6605['end'],_0x831fad));}['_fixPosition'](_0x342da8,_0x4c84ea){return this['editor']['model']['createPositionFromPath'](_0x4c84ea,_0x342da8['path'],_0x342da8['stickiness']);}['_handleInsertOperation'](_0x288b23){const _0x1c9e61=this['_idsRoots']['get'](_0x288b23['position']['root']['rootName']),_0xca2370=this['_fixPosition'](_0x288b23['position'],_0x1c9e61),_0x37c2a8=null===_0x288b23['_authorId']?null:_0x288b23['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33969f=_0xca2370['parent'],_0x20e2a5=this['_revisionId'],_0x29f917=[];for(const _0x37ec45 of _0x288b23['nodes'])if(_0x37ec45['is']('element'))_0x29f917['push'](this['_makeIdsRoot'](_0x37ec45));else{for(let _0x348d1c=0x0;_0x348d1c<_0x37ec45['offsetSize'];_0x348d1c++)_0x29f917['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x5cdf90=this['_revisionId'];for(let _0x45ab3d=_0x20e2a5;_0x45ab3d<_0x5cdf90;_0x45ab3d++)this['_touched']['set'](_0x45ab3d,{'userId':_0x37c2a8});_0x33969f['_insertChild'](_0xca2370['offset'],_0x29f917);}['_handleMoveOperation'](_0x473e90){(_0x473e90=this['_cloneOperation'](_0x473e90,this['_idsRoots']))['_execute']();const _0x35a040=null===_0x473e90['_authorId']?null:_0x473e90['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x84b391=_0x473e90['getMovedRangeStart'](),_0x548bbf=_0x84b391['parent'],_0x3a2068=_0x84b391['offset'];!function _0x3cea6f(_0x4875c9,_0x527494,_0x34cd5f,_0x3b6200){for(let _0x47eb8d=_0x34cd5f;_0x47eb8d<_0x3b6200;_0x47eb8d++){const _0x2a9efd=_0x527494['getChild'](_0x47eb8d);_0x2a9efd['is']('element','$text')?_0x4875c9['set'](_0x2a9efd['getAttribute']('vid'),{'userId':_0x35a040}):(_0x4875c9['set'](_0x2a9efd['getAttribute']('vid_start'),{'userId':_0x35a040}),_0x3cea6f(_0x4875c9,_0x2a9efd,0x0,_0x2a9efd['childCount']),_0x4875c9['set'](_0x2a9efd['getAttribute']('vid_end'),{'userId':_0x35a040}));}}(this['_touched'],_0x548bbf,_0x3a2068,_0x3a2068+_0x473e90['howMany']);}['_handleMergeOperation'](_0x40bcf1){const _0x2785e9=null===(_0x40bcf1=this['_cloneOperation'](_0x40bcf1,this['_idsRoots']))['_authorId']?null:_0x40bcf1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x329e5c=_0x40bcf1['targetPosition']['parent'],_0x1ae165=_0x40bcf1['sourcePosition']['parent'],_0xe0fdae=_0x329e5c['getAttribute']('vid_end'),_0x3c7ebf=_0x1ae165['getAttribute']('vid_start');_0x329e5c['_setAttribute']('vid_end',_0x1ae165['getAttribute']('vid_end')),_0x1ae165['_setAttribute']('vid_end',_0xe0fdae),this['_touched']['set'](_0x3c7ebf,{'userId':_0x2785e9}),this['_touched']['set'](_0xe0fdae,{'userId':_0x2785e9}),_0x40bcf1['_execute']();}['_handleSplitOperation'](_0x2084d1){const _0x3b0501=null===(_0x2084d1=this['_cloneOperation'](_0x2084d1,this['_idsRoots']))['_authorId']?null:_0x2084d1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30e402=_0x2084d1['graveyardPosition'],_0x5a17c2=_0x2084d1['splitPosition']['parent'];_0x2084d1['_execute']();const _0x1bc364=_0x5a17c2['getAttribute']('vid_end'),_0x1e4de4=_0x2084d1['insertionPosition']['nodeAfter'];if(_0x30e402){const _0x4f9c39=_0x1e4de4['getAttribute']('vid_end'),_0x5a7b22=_0x5a17c2['getAttribute']('vid_end');_0x5a17c2['_setAttribute']('vid_end',_0x4f9c39),_0x1e4de4['_setAttribute']('vid_end',_0x5a7b22),this['_touched']['set'](_0x5a17c2['getAttribute']('vid_end'),{'userId':_0x3b0501}),this['_touched']['set'](_0x1e4de4['getAttribute']('vid_start'),{'userId':_0x3b0501});}else{const _0x1c0367=this['_revisionId']++,_0x1d327d=this['_revisionId']++;_0x5a17c2['_setAttribute']('vid_end',_0x1c0367),_0x1e4de4['_setAttribute']('vid_start',_0x1d327d),_0x1e4de4['_setAttribute']('vid_end',_0x1bc364),this['_touched']['set'](_0x1c0367,{'userId':_0x3b0501}),this['_touched']['set'](_0x1d327d,{'userId':_0x3b0501});}}['_handleMarkerOperation'](_0x5e396b){if(!_0x5e396b['affectsData'])return;const _0x450e12=(_0x5e396b=this['_cloneOperation'](_0x5e396b,this['_diffRoots']))['oldRange']?_0x5e396b['oldRange']['root']:null,_0x13b51f=_0x5e396b['newRange']?_0x5e396b['newRange']['root']:null;_0x450e12&&this['_markers']['delete'](_0x5e396b['name']),_0x13b51f&&this['_markers']['set'](_0x5e396b['name'],_0x5e396b['newRange']['clone']());const _0x1ebfdb=null===_0x5e396b['_authorId']?null:_0x5e396b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e910a=_0x5e396b['name'];if(!this['_touchedMarkers']['has'](_0x5e910a))return void this['_touchedMarkers']['set'](_0x5e910a,{'range':_0x5e396b['oldRange'],'userId':_0x1ebfdb});const _0x498755=this['_touchedMarkers']['get'](_0x5e910a),_0x4536a8=_0x498755['range'],_0x1a9dd2=_0x5e396b['newRange'];null==_0x4536a8&&null==_0x1a9dd2||_0x4536a8&&_0x1a9dd2&&_0x4536a8['isEqual'](_0x1a9dd2)?this['_touchedMarkers']['delete'](_0x5e396b['name']):_0x498755['userId']=_0x1ebfdb;}['_handleRootOperation'](_0x4c42d6,_0x4ac75c){this['_diffRoots']['has'](_0x4c42d6['rootName'])?this['_diffRoots']['get'](_0x4c42d6['rootName'])['_isAttached']=_0x4c42d6['isAdd']:(this['_diffRoots']['set'](_0x4c42d6['rootName'],P(_0x4c42d6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4c42d6['rootName'],{}),_0x4ac75c&&this['_idsRoots']['set'](_0x4c42d6['rootName'],P(_0x4c42d6['rootName'],!0x0)));const _0xfa4e3d=null===_0x4c42d6['_authorId']?null:_0x4c42d6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x505e0c=this['_touchedRoots']['get'](_0x4c42d6['rootName']);_0x505e0c&&_0x505e0c['userId']===_0xfa4e3d?this['_touchedRoots']['delete'](_0x4c42d6['rootName']):this['_touchedRoots']['set'](_0x4c42d6['rootName'],{'userId':_0xfa4e3d,'isAttached':_0x4c42d6['isAdd']});}['_handleRootAttributeOperation'](_0x215f31){const _0x22ece5=this['_diffRootsAttributes']['get'](_0x215f31['root']['rootName']);null===_0x215f31['newValue']?delete _0x22ece5[_0x215f31['key']]:_0x22ece5[_0x215f31['key']]=_0x215f31['newValue'];}}function N(_0x177e0a){const _0x385a8d=P(_0x177e0a['rootName'],_0x177e0a['isAttached']());for(const _0x42c8cd of _0x177e0a['getChildren']()){const _0x90a05=_0x42c8cd['_clone'](!0x0);_0x385a8d['_appendChild'](_0x90a05);}return _0x385a8d;}function P(_0x392e64,_0x4c7ba9=!0x0){const _0x3e7bae=new gt();return _0x3e7bae['rootName']=_0x392e64,_0x3e7bae['_isAttached']=_0x4c7ba9,_0x3e7bae['isAttached']=()=>_0x3e7bae['_isAttached'],_0x3e7bae;}function F(_0x463f84,_0x355b54,_0x3be9dd){const _0x4d96cb='elementEnd'==_0x463f84['type']?_0x3be9dd['createPositionAt'](_0x463f84['item'],'end'):_0x3be9dd['createPositionBefore'](_0x463f84['item']);return _0x3be9dd['createPositionFromPath'](_0x355b54,_0x4d96cb['path'],_0x4d96cb['stickiness']);}function B(_0x31af30,_0x7d4674,_0x1b506c){const _0x10db4c='elementStart'==_0x31af30['type']?_0x1b506c['createPositionAt'](_0x31af30['item'],0x0):_0x1b506c['createPositionAfter'](_0x31af30['item']);return _0x1b506c['createPositionFromPath'](_0x7d4674,_0x10db4c['path'],_0x10db4c['stickiness']);}class os extends _0x29c029{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5d6d75,_0xf5958f){super(_0x5d6d75),this['focusTracker']=new _0x3fc65d(),this['keystrokes']=new _0x18c3c0(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xf5958f),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'](),_0x23e438({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x38a8f9=_0x2aa5b9=>_0x2aa5b9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x38a8f9),this['keystrokes']['set']('arrowleft',_0x38a8f9),this['keystrokes']['set']('arrowup',_0x38a8f9),this['keystrokes']['set']('arrowdown',_0x38a8f9);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x56976d){this['revisionNameInputView']['fieldView']['element']['value']=_0x56976d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1708d5){const _0x2db02a=new nt(this['locale'],ti),_0x372e0e=_0x2db02a['fieldView'];_0x372e0e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x58d760=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1708d5&&(_0x58d760+='\x20('+g(this['locale'],'optional')+')'),(_0x2db02a['label']=_0x58d760,_0x372e0e['on']('input',()=>{this['revisionNameInputValue']=_0x372e0e['element']['value']['trim']();}),_0x2db02a);}}class f extends _0x5df236{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x136205=this['editor'],_0xb3a102=_0x136205['plugins']['get']('RevisionTracker');_0x136205['ui']['componentFactory']['add']('revisionHistory',_0x11b0c8=>{const _0x5d82dd=_0x3a8b72(_0x11b0c8),_0x2088e6=_0x5d82dd['panelView']['children'],_0x1851e2=new _0x4dae4b(_0x11b0c8),_0x1f1087=new te(_0x11b0c8),_0x568188=new _0x4f0d8d(_0x11b0c8),_0x418abe=new te(_0x11b0c8),_0x25bf91=new _0x4f0d8d(_0x11b0c8);return _0x5d82dd['bind']('isEnabled')['to'](_0xb3a102,'isReady',_0xb3a102,'isEnabled',_0x136205,'isReadOnly',(_0x18f1c7,_0x12818e,_0x2a767e)=>_0x18f1c7&&_0x12818e&&!_0x2a767e),_0x5d82dd['buttonView']['set']({'icon':_0xc1a20f,'label':g(_0x11b0c8,'Revision\x20history'),'tooltip':!0x0}),_0x568188['set']({'label':g(_0x11b0c8,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x568188['bind']('isEnabled')['to'](_0xb3a102,'isReady',_0xb3a102,'isEnabled',_0x136205,'isReadOnly',(_0x164975,_0x5b2e9f,_0xe6d73f)=>_0x164975&&_0x5b2e9f&&!_0xe6d73f),_0x568188['on']('execute',()=>this['_showDialog']()),_0x25bf91['set']({'label':g(_0x11b0c8,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x25bf91['bind']('isEnabled')['to'](_0xb3a102,'isReady',_0x136205,'isReadOnly',(_0x3eb779,_0x4fa4d4)=>_0x3eb779&&!_0x4fa4d4),_0x25bf91['on']('execute',()=>{_0x136205['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5d82dd['isOpen']=!0x1,_0x136205['editing']['view']['focus']();}),_0x1f1087['children']['add'](_0x568188),_0x418abe['children']['add'](_0x25bf91),_0x1851e2['role']='menu',_0x1851e2['items']['addMany']([_0x1f1087,_0x418abe]),_0x2088e6['add'](_0x1851e2),_0x5d82dd;}),_0x136205['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4e9b4b=this['editor'],_0x160a5d=_0x4e9b4b['locale'],_0x1c0c0f=new _0x5e90b9(_0x160a5d),_0x210da4=new _0x3b5e9a(_0x160a5d);_0x1c0c0f['buttonView']['set']({'icon':_0xc1a20f,'label':g(_0x160a5d,'Revision\x20history')});const _0x47aee6=new _0x24acdb(_0x160a5d,_0x1c0c0f),_0x565e09=new _0x3ab0c5(_0x160a5d);_0x565e09['set']({'label':g(_0x160a5d,'Save\x20current\x20revision')}),_0x565e09['delegate']('execute')['to'](_0x1c0c0f),_0x565e09['on']('execute',()=>{this['_showDialog']();}),_0x47aee6['children']['add'](_0x565e09),_0x210da4['items']['add'](_0x47aee6);const _0xfff7b2=new _0x24acdb(_0x160a5d,_0x1c0c0f),_0x5b2119=new _0x3ab0c5(_0x160a5d);return _0x5b2119['set']({'label':g(_0x160a5d,'Open\x20revision\x20history')}),_0x5b2119['delegate']('execute')['to'](_0x1c0c0f),_0x5b2119['on']('execute',()=>{_0x4e9b4b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xfff7b2['children']['add'](_0x5b2119),_0x210da4['items']['add'](_0xfff7b2),_0x1c0c0f['panelView']['children']['add'](_0x210da4),_0x1c0c0f;}['_showDialog'](){const _0x540333=this['editor'],_0xd413d1=_0x540333['locale'],_0x1360e8=_0x540333['plugins']['get']('Dialog'),_0x452477=_0x540333['plugins']['get']('RevisionTracker');function _0x44e738(_0x2f7285){_0x540333['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2f7285['revisionName']?_0x2f7285['revisionNameInputView']['errorText']=g(_0xd413d1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x540333['plugins']['get'](u)['saveRevision']({'name':_0x2f7285['revisionName']}),_0x1360e8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x44e738(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1360e8['show']({'id':'revisionSave','title':g(_0xd413d1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x540333['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1360e8['hide']()},{'label':g(_0x540333['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x15fbcd){_0x15fbcd['bind']('isEnabled')['to'](_0x452477,'isReady',_0x452477,'isEnabled',_0x540333,'isReadOnly',(_0x2aad15,_0x7177b4,_0x45a022)=>_0x2aad15&&_0x7177b4&&!_0x45a022);},'onExecute':()=>_0x44e738(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3663f2=this['editor'],_0x15e24e=_0x3663f2['locale'];this['_saveRevisionFormView']=new os(_0x15e24e,_0x3663f2['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x29c029{['changeId'];['_model'];constructor(_0x4c422a,_0x2c07bc){super(_0x4c422a),this['_model']=_0x2c07bc,this['changeId']=_0x2c07bc['id'];const _0x388f40=this['bindTemplate'],_0x5bf438=g(_0x4c422a,_0x2c07bc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2c07bc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2c07bc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x388f40['to']('type',_0x1ddfe1=>'ck-revision-change__'+_0x1ddfe1)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5bf438}]},{'text':'\x20'+_0x2c07bc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x22d55c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x230da2){super(),this['id']=_0x230da2['id']||_0x3ebcbf(),this['author']=_0x230da2['author'],this['type']=_0x230da2['type'],this['data']=_0x230da2['data']||{},this['rootName']=_0x230da2['rootName'],this['set']('createdAt',_0x230da2['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(_0x3be819,_0x3f8d5f){this['newRevisionId']=_0x3be819,this['oldRevisionId']=_0x3f8d5f,this['changes']=new _0x4b7808();}['_setChanges'](_0x428eea){for(const _0x393e0d of _0x428eea)this['changes']['add'](_0x393e0d);}}class m extends _0x5df236{['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[_0x3ae4e4,_0x173a33,I,V];}constructor(_0x3f9e09){super(_0x3f9e09),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',(_0x14ac96,_0x4e8fe3,_0x1e7b9f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x528f5b=>{for(const _0x3e449a of this['editor']['editing']['view']['document']['roots'])_0x1e7b9f?_0x528f5b['removeClass']('ck-editor__editable__overlay',_0x3e449a):_0x528f5b['addClass']('ck-editor__editable__overlay',_0x3e449a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x56a80e=>null!==_0x56a80e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x116d9d,_0x2f19cd,_0x49c43b)=>_0x116d9d&&_0x49c43b?_0x2f19cd['changes']['getIndex'](_0x49c43b):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xa28a40,_0x13bcb4)=>_0xa28a40?_0x13bcb4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x173a33);}['init'](){const _0x362c54=this['editor'],_0x3c4419=new pt(_0x362c54,{'direction':'backward'}),_0x57f538=new pt(_0x362c54,{'direction':'forward'});(_0x362c54['commands']['add']('showPreviousChange',_0x3c4419),_0x362c54['commands']['add']('showNextChange',_0x57f538),_0x362c54['commands']['add']('restoreRevision',new wt(_0x362c54)),this['on']('change:numberOfChanges',()=>{_0x3c4419['refresh'](),_0x57f538['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x362c54['enableReadOnlyMode']('revision-viewer'),_0x362c54['plugins']['has']('WidgetToolbarRepository'))&&_0x362c54['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x24899b){return await this['_utils']['loadRevisionData'](_0x24899b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x24899b);}async['getRevisionRootsAttributes'](_0x5d6003){return await this['_utils']['loadRevisionData'](_0x5d6003,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5d6003);}async['compare'](_0x4862bc,_0x1a0f35,_0x25f21a=!0x1){if(!this['isEnabled'])return;const _0x5d1c6f=this['diff'],_0xfde2c9=this['repository'],_0x5cb2cf='string'==typeof _0x4862bc?_0xfde2c9['getRevision'](_0x4862bc):_0x4862bc,_0x5b4d32='string'==typeof _0x1a0f35?_0xfde2c9['getRevision'](_0x1a0f35):_0x1a0f35,_0x50a43f=_0x5cb2cf['id'],_0x28f3a8=_0x5b4d32?_0x5b4d32['id']:null;if(!_0x25f21a&&this['diff']&&this['diff']['newRevisionId']===_0x50a43f&&this['diff']['oldRevisionId']===_0x28f3a8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x50a43f,_0x28f3a8);const _0x5a98f8=this['_getRevisionsRange'](_0x5cb2cf,_0x5b4d32,!0x0)['map'](_0x428218=>this['_utils']['loadRevisionData'](_0x428218,this['adapter']));return _0x5a98f8['push'](new Promise(_0x3578db=>{setTimeout(_0x3578db,0x14);})),Promise['all'](_0x5a98f8)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1b24f9=this['_getDiff'](_0x50a43f,_0x28f3a8);for(const _0x165a2b of _0x1b24f9['changes'])this['_changeIdToChange']['set'](_0x165a2b['id'],_0x165a2b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1c3c14=>{for(const _0x5e2dbd of this['editor']['model']['document']['getRootNames']())_0x1c3c14['detachRoot'](_0x5e2dbd);for(const _0x3817bf of Object['keys'](_0x1b24f9['model'])){const _0x1b0c28=_0x1c3c14['addRoot'](_0x3817bf);for(const _0x3975b8 of Object['keys'](_0x1b24f9['attributes'][_0x3817bf]))_0x1c3c14['setAttribute'](_0x3975b8,_0x1b24f9['attributes'][_0x3817bf][_0x3975b8],_0x1b0c28);_0x1c3c14['insert'](_0x1b24f9['model'][_0x3817bf],_0x1b0c28,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1b24f9['changes'])),this['isReady']=!0x0;})['catch'](_0x30ecf9=>{console['error'](_0x30ecf9),this['_cleanUp'](),_0x5d1c6f&&(this['diff']=_0x5d1c6f),this['isReady']=!0x0;});}['addRevisionData'](_0x53c252,_0x101a02){const _0x550688=this['repository']['createRevision'](_0x53c252);return _0x550688['on']('_update',(_0x7b388b,_0x4c236d,_0xb75dcc)=>_0x101a02(_0x4c236d,_0xb75dcc,_0x550688)),this['repository']['addRevision'](_0x550688),_0x550688;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x571907=>{for(const _0x27bd45 of this['editor']['model']['document']['getRootNames']())_0x571907['detachRoot'](_0x27bd45);});}['_sortAndFilterDiffChanges'](_0x33f476){const _0x4d11d=[],_0x59211c=new Map();for(const _0x23c234 of this['editor']['model']['document']['getRootNames']()){const _0x540e03=this['editor']['editing']['view']['getDomRoot'](_0x23c234);if(!_0x540e03)continue;const _0x28ee72=_0x540e03['getClientRects']()['item'](0x0);_0x28ee72&&(_0x4d11d['push'](_0x23c234),_0x59211c['set'](_0x23c234,_0x28ee72));}return _0x4d11d['sort']((_0x20f978,_0x2ad3f8)=>{const _0x49b6f4=_0x59211c['get'](_0x20f978),_0x456d54=_0x59211c['get'](_0x2ad3f8);return _0x49b6f4['y']-_0x456d54['y']||_0x49b6f4['x']-_0x456d54['x'];}),(_0x33f476=_0x33f476['filter'](_0x3c879f=>_0x4d11d['includes'](_0x3c879f['rootName'])))['sort']((_0x36ad11,_0x50bc4b)=>_0x4d11d['indexOf'](_0x36ad11['rootName'])-_0x4d11d['indexOf'](_0x50bc4b['rootName'])),_0x33f476;}['_makeTape'](_0x1f5056){const _0x33c9df=Array['from'](_0x1f5056['markers'])['filter'](([_0x3b471a,_0x38adb7])=>_0x3b471a['startsWith']('revision:')&&!_0x38adb7['isCollapsed']),_0x594692=Array['from'](this['editor']['model']['createRangeIn'](_0x1f5056)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x33c9df['length'])for(const _0x4975e2 of _0x594692){const [_0x303ca7,_0x91445a]=_0x33c9df[0x0],[,_0x4daa09,_0x42b512]=_0x303ca7['split'](':');if(_0x91445a['end']['isEqual'](_0x4975e2['nextPosition'])&&_0x33c9df['shift'](),(_0x4975e2['previousPosition']['isEqual'](_0x91445a['start'])||_0x4975e2['previousPosition']['isAfter'](_0x91445a['start']))&&('insertion'==_0x4daa09?_0x4975e2['isAdded']={'userId':_0x42b512}:'deletion'==_0x4daa09&&(_0x4975e2['isRemoved']={'userId':_0x42b512})),0x0==_0x33c9df['length'])break;}return _0x594692;}['_refreshStartEndIndex'](_0xbec719){const _0x9d5f17=new Map();for(let _0x1f5491=0x0;_0x1f5491<_0xbec719['length'];_0x1f5491++)'text'===_0xbec719[_0x1f5491]['type']?(_0xbec719[_0x1f5491]['item']['startIndex']=_0x1f5491,_0xbec719[_0x1f5491]['item']['endIndex']=_0x1f5491):('elementStart'===_0xbec719[_0x1f5491]['type']?_0xbec719[_0x1f5491]['item']['startIndex']=_0x1f5491:'elementEnd'===_0xbec719[_0x1f5491]['type']&&(_0xbec719[_0x1f5491]['item']['endIndex']=_0x1f5491),_0x9d5f17['set'](_0xbec719[_0x1f5491]['id'],_0x1f5491));for(const _0x41d779 of _0x9d5f17['values']())'elementStart'===_0xbec719[_0x41d779]['type']?_0xbec719[_0x41d779]['item']['endIndex']=_0x9d5f17['get'](_0xbec719[_0x41d779]['pairId']):'elementEnd'===_0xbec719[_0x41d779]['type']&&(_0xbec719[_0x41d779]['item']['startIndex']=_0x9d5f17['get'](_0xbec719[_0x41d779]['pairId']));}['_processTape'](_0x4e91fb){for(let _0x6891e3=0x0;_0x6891e3<_0x4e91fb['length'];_0x6891e3++){if('elementStart'===_0x4e91fb[_0x6891e3]['type'])_0x4e91fb[_0x6891e3]['item']['startIndex']=_0x6891e3;else{if('elementEnd'===_0x4e91fb[_0x6891e3]['type']){_0x4e91fb[_0x6891e3]['item']['endIndex']=_0x6891e3;const _0x48bbb7=_0x4e91fb[_0x6891e3]['item']['startIndex'];_0x4e91fb[_0x48bbb7]['pairId']=_0x4e91fb[_0x6891e3]['id'],_0x4e91fb[_0x6891e3]['pairId']=_0x4e91fb[_0x48bbb7]['id'];}else _0x4e91fb[_0x6891e3]['item']['startIndex']=_0x6891e3,_0x4e91fb[_0x6891e3]['item']['endIndex']=_0x6891e3,_0x4e91fb[_0x6891e3]['pairId']=null;}_0x4e91fb[_0x6891e3]['markersStart']||(_0x4e91fb[_0x6891e3]['markersStart']=[],_0x4e91fb[_0x6891e3]['markersEnd']=[]);}}['_markInsertions'](_0x5140e6,_0x1eeaba){const _0x43f547=_0x5140e6['filter'](_0x5a4472=>!_0x5a4472['isAdded']);for(let _0x28beee=0x0;_0x28beee<_0x1eeaba['length'];_0x28beee++)_0x1eeaba[_0x28beee]['isAdded']&&(_0x43f547[_0x28beee]['isAdded']=_0x1eeaba[_0x28beee]['isAdded']);}['_getDiff'](_0x1c03c6,_0x19cf8f=null){const _0x14b012=this['repository']['getRevision'](_0x1c03c6),_0x5030e4=_0x19cf8f?this['repository']['getRevision'](_0x19cf8f):null,_0x58b487=this['_getRevisionsRange'](_0x14b012,_0x5030e4),_0x3dd5d9=_0x58b487[_0x58b487['length']-0x1],_0x37e9e1=new Map(),_0x58e9af={'model':{},'attributes':{},'changes':[]},_0x52de15=new Set(),_0x40fcb1=new Map();for(let _0x6c267a=_0x58b487['length']-0x1;_0x6c267a>=0x0;_0x6c267a--){const _0x3aa0e3=_0x58b487[_0x6c267a];for(const _0x1abf99 of Object['keys'](_0x3aa0e3['diffData']))if(_0x3aa0e3['diffData'][_0x1abf99]['attachChange']){const _0x3c3963=_0x3aa0e3['diffData'][_0x1abf99]['attachChange'];_0x3c3963['isAttached']?(_0x52de15['add'](_0x1abf99),_0x40fcb1['has'](_0x1abf99)&&_0x40fcb1['get'](_0x1abf99)['userId']==_0x3c3963['userId']?_0x40fcb1['delete'](_0x1abf99):_0x40fcb1['set'](_0x1abf99,_0x3c3963)):_0x40fcb1['has'](_0x1abf99)?(_0x52de15['delete'](_0x1abf99),_0x40fcb1['delete'](_0x1abf99)):(_0x52de15['add'](_0x1abf99),_0x40fcb1['set'](_0x1abf99,_0x3c3963));}else _0x52de15['add'](_0x1abf99);}for(const _0x5aaf9e of _0x52de15){const _0x5c9735=_0x40fcb1['has'](_0x5aaf9e)&&!_0x40fcb1['get'](_0x5aaf9e)['isAttached'];let _0x1aa414=_0x5c9735?_0x58b487['length']-0x1:0x0;const _0xaba0a=_0x5c9735?-0x1:0x1;for(;_0x58b487[_0x1aa414];){const _0xc925d9=_0x58b487[_0x1aa414];if(_0xc925d9['diffData'][_0x5aaf9e]){const _0x16f4e1=_0x5c9735?_0xc925d9['diffData'][_0x5aaf9e]['attributesBefore']:_0xc925d9['diffData'][_0x5aaf9e]['attributesAfter'];_0x58e9af['attributes'][_0x5aaf9e]=_0x16f4e1?_0x35023c(_0x16f4e1):{};break;}_0x1aa414+=_0xaba0a;}}for(const _0x4e21c9 of _0x58b487){_0x4e21c9['model']={};for(const _0x22f524 of _0x4e21c9['authors'])_0x37e9e1['set'](_0x22f524['id'],_0x22f524);for(const _0x95b018 of _0x52de15){const _0x184414=_0x4e21c9['diffData'][_0x95b018]?_0x4e21c9['diffData'][_0x95b018]['insertions']:'[]',_0xe85956=_0x4e21c9['diffData'][_0x95b018]?_0x4e21c9['diffData'][_0x95b018]['deletions']:'[]';_0x4e21c9['model'][_0x95b018]={'insertions':this['_utils']['_makeModelFromViewString'](_0x184414),'deletions':this['_utils']['_makeModelFromViewString'](_0xe85956)};}}for(const _0x278bed of _0x52de15){let _0x2103ff=null,_0x3344da=0x0;const _0x4ae483=new Map(Array['from'](_0x14b012['model'][_0x278bed]['insertions']['markers'])['filter'](([_0x454998])=>!_0x454998['startsWith']('revision:')));let _0x2cfc02=0x0;for(const _0x321a18 of _0x58b487){const _0x3bc1e6=this['_makeTape'](_0x321a18['model'][_0x278bed]['insertions']);_0x321a18==_0x14b012?(_0x2103ff=_0x3bc1e6,_0x3344da=_0x2103ff['length'],_0x2103ff['forEach'](_0x5ce33e=>{_0x5ce33e['id']=_0x2cfc02++;}),this['_processTape'](_0x2103ff)):this['_markInsertions'](_0x2103ff,_0x3bc1e6);const _0x494013=_0x2103ff['filter'](_0xcf2c4e=>!_0xcf2c4e['isAdded'])['map'](_0x530508=>_0x530508['id']);let _0x4c535b=0x0;const _0x1fdfc3=this['_makeTape'](_0x321a18['model'][_0x278bed]['deletions']);_0x1fdfc3['forEach'](_0x3f3d09=>{_0x3f3d09['isRemoved']?_0x3f3d09['id']=_0x3344da++:_0x3f3d09['id']=_0x494013[_0x4c535b++];}),this['_processTape'](_0x1fdfc3),this['_setDistance'](_0x2103ff,'isAdded'),this['_setDistance'](_0x1fdfc3,'isRemoved'),_0x321a18==_0x14b012&&this['_markMarkers'](_0x2103ff,_0x4ae483),_0x2103ff=this['_joinTapes'](_0x2103ff,_0x1fdfc3),this['_refreshStartEndIndex'](_0x2103ff),this['_setDistance'](_0x2103ff,'isRemoved');}_0x2103ff=_0x2103ff['filter'](_0x467f9b=>!(_0x467f9b['isAdded']&&_0x467f9b['isRemoved']));const _0x487966=new Map(_0x3dd5d9['model'][_0x278bed]['deletions']['markers']),_0x4af5a3=new Set(_0x4ae483['keys']());for(const _0x4d1a9a of _0x487966['keys']())_0x4af5a3['delete'](_0x4d1a9a);this['_markSuggestions'](_0x2103ff,_0x4af5a3),this['_fixObsoleteTags'](_0x2103ff),_0x2103ff=this['_removeMissingPairs'](_0x2103ff),_0x2103ff=this['_markMismatchedRemovedTags'](_0x2103ff),_0x2103ff=this['_removeUnsupportedChanges'](_0x2103ff);const {root:_0x16f719,changes:_0x9c30c0}=this['_makeModelFromTape'](_0x2103ff,_0x37e9e1,_0x278bed);_0x58e9af['model'][_0x278bed]=_0x16f719;const _0x1b85b9=_0x40fcb1['get'](_0x278bed);if(_0x1b85b9){const _0x34c522=_0x37e9e1['get'](_0x1b85b9['userId']),_0x1c20db=new r({'author':_0x34c522,'type':_0x1b85b9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x278bed});_0x9c30c0['unshift'](_0x1c20db),_0x58e9af['attributes'][_0x278bed]['revisionHistoryAttachChange']=_0x1c20db['id'];}_0x58e9af['changes']=_0x58e9af['changes']['concat'](_0x9c30c0);}return _0x58e9af;}['_markMarkers'](_0x3db08c,_0x7e015a){for(let _0x524626=0x0;_0x524626<_0x3db08c['length'];_0x524626++)for(const [_0x45f74c,_0x6ea35f]of _0x7e015a)!_0x6ea35f['isCollapsed']&&_0x6ea35f['start']['isEqual'](_0x3db08c[_0x524626]['previousPosition'])&&_0x3db08c[_0x524626]['markersStart']['push'](_0x45f74c),_0x6ea35f['end']['isEqual'](_0x3db08c[_0x524626]['nextPosition'])&&_0x3db08c[_0x524626]['markersEnd']['push'](_0x45f74c);}['_joinTapes'](_0x1d2719,_0x1f8f2e){let _0x194a89=[],_0x4306e6=0x0,_0x484401=0x0;for(;_0x4306e6<_0x1d2719['length']||_0x484401<_0x1f8f2e['length'];){const _0xc72c11=_0x1d2719[_0x4306e6]||{},_0x2d7f7b=_0x1f8f2e[_0x484401]||{};if(_0xc72c11['id']==_0x2d7f7b['id'])_0x4306e6++,_0x484401++,_0x194a89['push'](_0xc72c11);else{if(_0x2d7f7b['isRemoved']&&_0xc72c11['isAdded']){const {commonTape:_0xbdfce1,iEnd:_0x2be352,jEnd:_0x477295}=this['_threeWayMerge'](_0x1d2719,_0x4306e6,_0x1f8f2e,_0x484401);_0x194a89=_0x194a89['concat'](_0xbdfce1),_0x4306e6=_0x2be352,_0x484401=_0x477295;}else _0x2d7f7b['isRemoved']?(_0x484401++,_0x194a89['push'](_0x2d7f7b)):(_0x4306e6++,_0x194a89['push'](_0xc72c11));}}return _0x194a89;}['_markSuggestions'](_0x569783,_0x1c0164){const _0x5f331d=[];for(let _0x41f584=0x0;_0x41f584<_0x569783['length'];_0x41f584++){for(let _0x76bde0=0x0;_0x76bde0<_0x569783[_0x41f584]['markersStart']['length'];_0x76bde0++){const _0x3bba90=_0x569783[_0x41f584]['markersStart'][_0x76bde0];if(!_0x1c0164['has'](_0x3bba90))continue;const {group:_0x3d7a50,type:_0xf74c0d,authorId:_0x145ff4}=_0x508420(_0x3bba90);'revision-suggestion'!=_0x3d7a50||'insertion'!=_0xf74c0d&&'deletion'!=_0xf74c0d||(_0x5f331d['unshift']({'type':_0xf74c0d,'name':_0x3bba90,'userId':_0x145ff4}),_0x569783[_0x41f584]['markersStart']['splice'](_0x76bde0,0x1),_0x76bde0--);}_0x101a71(_0x569783[_0x41f584]);for(let _0x18b80b=0x0;_0x18b80b<_0x569783[_0x41f584]['markersEnd']['length'];_0x18b80b++){const _0x28a15f=_0x569783[_0x41f584]['markersEnd'][_0x18b80b];if(!_0x1c0164['has'](_0x28a15f))continue;const {group:_0x16d63e,type:_0x2c3823}=_0x508420(_0x28a15f);if('revision-suggestion'!=_0x16d63e||'insertion'!=_0x2c3823&&'deletion'!=_0x2c3823)continue;_0x569783[_0x41f584]['markersEnd']['splice'](_0x18b80b,0x1),_0x18b80b--;const _0x2c454b=_0x5f331d['findIndex'](_0x144fbb=>_0x144fbb['name']==_0x28a15f);_0x2c454b>-0x1&&_0x5f331d['splice'](_0x2c454b,0x1);}}function _0x508420(_0xf15656){const _0x5f067a=_0xf15656['split'](':');return{'group':_0x5f067a[0x0],'type':_0x5f067a[0x1],'subType':_0x5f067a['length']>=0x5?_0x5f067a[0x2]:null,'id':_0x5f067a['length']<0x5?_0x5f067a[0x2]:_0x5f067a[0x3],'authorId':_0x5f067a['length']<0x5?_0x5f067a[0x3]:_0x5f067a[0x4],'markerCount':0x6==_0x5f067a['length']?_0x5f067a[0x5]:null};}function _0x101a71(_0x952cdd){for(let _0x46377a=0x0;_0x46377a<_0x5f331d['length'];_0x46377a++){if(_0x952cdd['isAdded']&&'insertion'==_0x5f331d[_0x46377a]['type'])return _0x952cdd['isAddSuggestion']=_0x5f331d[_0x46377a],void delete _0x952cdd['isAdded'];if(!_0x952cdd['isAdded']&&!_0x952cdd['isRemoved']&&'deletion'==_0x5f331d[_0x46377a]['type'])return void(_0x952cdd['isRemoveSuggestion']=_0x5f331d[_0x46377a]);}}}['_setDistance'](_0x3dd915,_0x23a3b8){let _0x448467=0x0,_0x8157fd=!0x1;const _0x5ce7e5=new Map();for(const _0x5d2507 of _0x3dd915)_0x5d2507[_0x23a3b8]?_0x8157fd&&(_0x448467++,_0x8157fd=!0x1):(_0x448467++,_0x8157fd=!0x0),_0x5ce7e5['set'](_0x5d2507['id'],_0x448467);for(let _0x5b3e5a=0x0;_0x5b3e5a<_0x3dd915['length'];_0x5b3e5a++){if('isRemoved'==_0x23a3b8&&_0x3dd915[_0x5b3e5a]['isAdded']||'isAdded'==_0x23a3b8&&_0x3dd915[_0x5b3e5a]['isRemoved'])continue;if('text'==_0x3dd915[_0x5b3e5a]['type']){_0x3dd915[_0x5b3e5a]['distance']=0x0;continue;}const _0x4c35b8=_0x5ce7e5['get'](_0x3dd915[_0x5b3e5a]['pairId']),_0x1d20d4=_0x5ce7e5['get'](_0x3dd915[_0x5b3e5a]['id']);_0x3dd915[_0x5b3e5a]['distance']=_0x4c35b8-_0x1d20d4;}}['_getRevisionsRange'](_0x61ccf8,_0x3cf7d9,_0x25aecf=!0x1){const _0x3c12ce=[];let _0x593524=this['repository']['getIndex'](_0x61ccf8),_0x27d7a8=this['repository']['getIndex'](_0x3cf7d9);for(-0x1==_0x27d7a8&&(_0x27d7a8=this['repository']['_revisions']['length'],_0x25aecf=!0x1);_0x593524<_0x27d7a8;)_0x3c12ce['push'](this['repository']['getRevision'](_0x593524)),_0x593524++;return _0x25aecf&&_0x3c12ce['push'](this['repository']['getRevision'](_0x593524)),_0x3c12ce;}['_threeWayMerge'](_0x201a7c,_0xe68361,_0x30a471,_0x550b25){const _0x567e7e=this['editor']['model']['schema'];let _0x2be97d=_0xe68361;for(;_0x201a7c[_0x2be97d]&&_0x201a7c[_0x2be97d]['isAdded'];)_0x2be97d++;let _0x3f3441=_0x550b25;for(;_0x30a471[_0x3f3441]&&_0x30a471[_0x3f3441]['isRemoved'];)_0x3f3441++;_0x3ee27b(_0x201a7c,_0xe68361,_0x2be97d),_0x3ee27b(_0x30a471,_0x550b25,_0x3f3441);const _0x2ce5cd=_0x30a471['slice'](_0x550b25,_0x3f3441)['concat'](_0x201a7c['slice'](_0xe68361,_0x2be97d));return _0x2ce5cd['sort']((_0x3c7ad5,_0x49af7e)=>_0x3c7ad5['side']!=_0x49af7e['side']?_0x3c7ad5['side']-_0x49af7e['side']:_0x3c7ad5['level']!=_0x49af7e['level']?_0x3c7ad5['level']-_0x49af7e['level']:_0x3c7ad5['distance']!=_0x49af7e['distance']?_0x49af7e['distance']-_0x3c7ad5['distance']:!!_0x3c7ad5['isAdded']!=!!_0x49af7e['isAdded']?-0x1==_0x3c7ad5['side']||0x0==_0x3c7ad5['side']?_0x3c7ad5['isAdded']?-0x1:0x1:_0x3c7ad5['isAdded']?0x1:-0x1:_0x3c7ad5['index']-_0x49af7e['index']),{'commonTape':_0x2ce5cd,'iEnd':_0x2be97d,'jEnd':_0x3f3441};function _0x3ee27b(_0x7a66bd,_0x16fef9,_0x5c598a){let _0x4c2c40=-0x1,_0x27c23a=Number['POSITIVE_INFINITY'],_0x24c637=!0x0;for(let _0x45e130=_0x16fef9;_0x45e130<_0x5c598a;_0x45e130++)if(_0x567e7e['isInline'](_0x7a66bd[_0x45e130]['item'])||(_0x24c637=!0x1),_0x7a66bd[_0x45e130]['item']['startIndex']<_0x16fef9&&(_0x4c2c40=_0x45e130),_0x7a66bd[_0x45e130]['item']['endIndex']>=_0x5c598a){_0x27c23a=_0x45e130;break;}_0x24c637&&(_0x4c2c40=_0x5c598a-0x1);for(let _0x83ad25=_0x16fef9;_0x83ad25<_0x5c598a;_0x83ad25++)_0x7a66bd[_0x83ad25]['side']=_0x83ad25<=_0x4c2c40?-0x1:_0x83ad25<_0x27c23a?0x0:0x1,_0x7a66bd[_0x83ad25]['index']=_0x83ad25;let _0x3fd2ec=0x0;for(let _0x1d69de=_0x16fef9;_0x1d69de<=_0x4c2c40;_0x1d69de++)0x0==_0x7a66bd[_0x1d69de]['distance']?_0x7a66bd[_0x1d69de]['level']=_0x3fd2ec:(_0x3fd2ec++,_0x7a66bd[_0x1d69de]['level']=_0x3fd2ec,_0x3fd2ec++);for(let _0x48b611=_0x16fef9;_0x48b611<_0x5c598a;_0x48b611++)0x0==_0x7a66bd[_0x48b611]['side']&&(_0x7a66bd[_0x48b611]['level']=_0x3fd2ec);_0x3fd2ec=0x0;for(let _0x2fee22=_0x5c598a-0x1;_0x2fee22>=_0x27c23a;_0x2fee22--)0x0==_0x7a66bd[_0x2fee22]['distance']?_0x7a66bd[_0x2fee22]['level']=_0x3fd2ec:(_0x3fd2ec--,_0x7a66bd[_0x2fee22]['level']=_0x3fd2ec,_0x3fd2ec--);}}['_fixObsoleteTags'](_0x48fe31){const _0xedab24=new Map(),_0x335d61=this['editor']['model']['schema'];for(let _0x241086=0x1;_0x241086<_0x48fe31['length'];_0x241086++){let _0x280d48,_0x269814,_0x544869;const _0x430a11=_0x48fe31[_0x241086],_0x240b78=_0x48fe31[_0x241086-0x1];if('text'==_0x430a11['type'])continue;if(_0x430a11['type']!=_0x240b78['type'])continue;if(!_0x335d61['isBlock'](_0x240b78['item'])||_0x335d61['isLimit'](_0x240b78['item']))continue;if(!_0x335d61['isBlock'](_0x430a11['item'])||_0x335d61['isLimit'](_0x430a11['item']))continue;if((_0x48fe31[_0x241086]['isAdded']||_0x48fe31[_0x241086]['isAddSuggestion'])&&_0x48fe31[_0x241086-0x1]['isRemoved'])_0x280d48=_0x48fe31[_0x241086],_0x269814=_0x48fe31[_0x241086-0x1],_0x544869=_0x241086-0x1;else{if(!_0x48fe31[_0x241086]['isRemoved']||!_0x48fe31[_0x241086-0x1]['isAdded']&&!_0x48fe31[_0x241086-0x1]['isAddSuggestion'])continue;_0x280d48=_0x48fe31[_0x241086-0x1],_0x269814=_0x48fe31[_0x241086],_0x544869=_0x241086;}const _0x3655e5=_0x280d48['level']==_0x269814['level'],_0x49ca51=Math['abs'](_0x280d48['level'])<Math['abs'](_0x269814['level'])&&0x0==_0x269814['distance'];(_0x3655e5||_0x49ca51)&&(_0xedab24['set'](_0x269814['id'],_0x280d48['id']),_0x48fe31['splice'](_0x544869,0x1),_0x241086--,_0x280d48['isAdded']=!0x1);}for(let _0x36aca6=0x0;_0x36aca6<_0x48fe31['length'];_0x36aca6++)_0xedab24['has'](_0x48fe31[_0x36aca6]['pairId'])&&(_0x48fe31[_0x36aca6]['pairId']=_0xedab24['get'](_0x48fe31[_0x36aca6]['pairId']));}['_removeMissingPairs'](_0x16650a){const _0x46d48c=new Set(_0x16650a['map'](_0x410083=>_0x410083['id']));for(let _0x1e271a=0x0;_0x1e271a<_0x16650a['length'];_0x1e271a++)_0x46d48c['has'](_0x16650a[_0x1e271a]['pairId'])||0x0==_0x16650a[_0x1e271a]['distance']||(_0x16650a[_0x1e271a]['isIncorrect']=!0x0);return _0x16650a['filter'](_0x43aa9a=>!_0x43aa9a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x34a562){const _0x4142ce=new Set();for(let _0x5c6089=0x0;_0x5c6089<_0x34a562['length'];_0x5c6089++){if(_0x4142ce['has'](_0x34a562[_0x5c6089]['id'])&&_0x34a562[_0x5c6089]['isRemoved']&&(_0x34a562[_0x5c6089]['isIncorrect']=!0x0),_0x34a562[_0x5c6089]['isIncorrect'])continue;if(0x0==_0x34a562[_0x5c6089]['distance'])continue;if('elementStart'!=_0x34a562[_0x5c6089]['type'])continue;if(null==_0x34a562[_0x5c6089]['pairId'])continue;let _0x5dba83=_0x5c6089+0x1,_0x548550=0x0;for(;_0x34a562[_0x5dba83]['id']!=_0x34a562[_0x5c6089]['pairId'];)'elementStart'==_0x34a562[_0x5dba83]['type']?_0x548550++:'elementEnd'==_0x34a562[_0x5dba83]['type']&&_0x548550--,_0x5dba83++;if(0x0!=_0x548550){if(_0x34a562[_0x5c6089]['isRemoved'])_0x34a562[_0x5c6089]['isIncorrect']=!0x0;else{for(;_0x5dba83!=_0x5c6089;)_0x34a562[_0x5dba83]['isRemoved']&&0x0!=_0x34a562[_0x5dba83]['distance']&&(_0x34a562[_0x5dba83]['isIncorrect']=!0x0,_0x4142ce['add'](_0x34a562[_0x5dba83]['pairId'])),_0x5dba83--;}}}return _0x34a562['filter'](_0x33da1b=>!_0x33da1b['isIncorrect']);}['_removeUnsupportedChanges'](_0x1e8978){const _0x4c65d8=this['editor']['model']['schema'];for(let _0x39edb6=0x0;_0x39edb6<_0x1e8978['length'];_0x39edb6++){if(!(_0x1e8978[_0x39edb6]['isAdded']||_0x1e8978[_0x39edb6]['isAddSuggestion']||_0x1e8978[_0x39edb6]['isRemoved']||_0x1e8978[_0x39edb6]['isRemoveSuggestion']))continue;if(0x0==_0x1e8978[_0x39edb6]['distance'])continue;const _0x22e0a6=_0x1e8978[_0x39edb6]['item'];_0x4c65d8['isBlock'](_0x22e0a6)||_0x4c65d8['isLimit'](_0x22e0a6)||(_0x1e8978[_0x39edb6]['isAdded']&&delete _0x1e8978[_0x39edb6]['isAdded'],_0x1e8978[_0x39edb6]['isAddSuggestion']&&delete _0x1e8978[_0x39edb6]['isAddSuggestion'],_0x1e8978[_0x39edb6]['isRemoveSuggestion']&&delete _0x1e8978[_0x39edb6]['isRemoveSuggestion'],_0x1e8978[_0x39edb6]['isRemoved']&&(_0x1e8978[_0x39edb6]['isIncorrect']=!0x0));}return _0x1e8978['filter'](_0x50b7c9=>!_0x50b7c9['isIncorrect']);}['_makeModelFromTape'](_0x1c86af,_0xceed47,_0x517875){const _0x2d85e1=new gt(),_0x430b7e=[],_0x132979=new Map(),_0x3bc506=this['editor']['model'],_0x32c510=_0x3bc506['schema'],_0x1dfe7f=[_0x2d85e1],_0x2b1503={},_0x453922={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43035c=null;const _0x478f79=[0x0];for(let _0x2c34d5=0x0;_0x2c34d5<_0x1c86af['length'];_0x2c34d5++)if('elementStart'===_0x1c86af[_0x2c34d5]['type']){_0x1c86af[_0x2c34d5]['previousPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79);const _0x5e698e=new ut(_0x1c86af[_0x2c34d5]['item']['name'],_0x1c86af[_0x2c34d5]['item']['getAttributes']());_0x1dfe7f[0x0]['_appendChild'](_0x5e698e),_0x478f79['push'](0x0),_0x1dfe7f['unshift'](_0x5e698e),_0x1c86af[_0x2c34d5]['nextPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79);}else'elementEnd'===_0x1c86af[_0x2c34d5]['type']?(_0x1dfe7f['shift'](),_0x1c86af[_0x2c34d5]['previousPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79),_0x478f79['pop'](),_0x478f79[_0x478f79['length']-0x1]++,_0x1c86af[_0x2c34d5]['nextPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79)):(_0x1c86af[_0x2c34d5]['previousPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79),_0x43035c?_0x43035c['_data']+=_0x1c86af[_0x2c34d5]['item']['data']:_0x43035c=new mt(_0x1c86af[_0x2c34d5]['item']['data'],_0x1c86af[_0x2c34d5]['item']['getAttributes']()),_0x1c86af[_0x2c34d5+0x1]&&'text'===_0x1c86af[_0x2c34d5+0x1]['type']&&_0xd21f17(_0x43035c,_0x1c86af[_0x2c34d5+0x1]['item'])||(_0x1dfe7f[0x0]['_appendChild'](_0x43035c),_0x43035c=null),_0x478f79[_0x478f79['length']-0x1]+=_0x1c86af[_0x2c34d5]['item']['offsetSize'],_0x1c86af[_0x2c34d5]['nextPosition']=_0x3bc506['createPositionFromPath'](_0x2d85e1,_0x478f79));for(let _0x5bc2ce=0x0;_0x5bc2ce<_0x1c86af['length'];_0x5bc2ce++){const _0x4bdb3e=_0x1c86af[_0x5bc2ce]['previousPosition'],_0x21ac9e=_0x1c86af[_0x5bc2ce]['nextPosition'];for(const _0x3c2249 of _0x1c86af[_0x5bc2ce]['markersStart'])_0x132979['set'](_0x3c2249,{'start':_0x4bdb3e,'end':null});_0x1cc8c6('isRemoveSuggestion',_0x5bc2ce,_0x4bdb3e,_0x21ac9e),_0x1cc8c6('isAddSuggestion',_0x5bc2ce,_0x4bdb3e,_0x21ac9e),_0x1cc8c6('isRemoved',_0x5bc2ce,_0x4bdb3e,_0x21ac9e),_0x1cc8c6('isAdded',_0x5bc2ce,_0x4bdb3e,_0x21ac9e);for(const _0x296fa7 of _0x1c86af[_0x5bc2ce]['markersEnd']){const _0x47e876=_0x132979['get'](_0x296fa7);_0x47e876?_0x47e876['end']=_0x21ac9e:_0x132979['set'](_0x296fa7,{'start':_0x21ac9e,'end':_0x21ac9e});}}for(const [_0x23b966,_0x2dece1]of _0x132979){const _0x25ec22=this['editor']['model']['createRange'](_0x2dece1['start'],_0x2dece1['end']);_0x2d85e1['markers']['set'](_0x23b966,_0x25ec22);}return _0x430b7e['sort']((_0x439966,_0x5f0581)=>{const _0x57f456=_0x2d85e1['markers']['get']('revision:'+_0x439966['id']),_0x1fc7b4=_0x2d85e1['markers']['get']('revision:'+_0x5f0581['id']);return _0x57f456['start']['isBefore'](_0x1fc7b4['start'])?-0x1:_0x57f456['start']['isAfter'](_0x1fc7b4['start'])?0x1:_0x57f456['end']['isBefore'](_0x1fc7b4['end'])?-0x1:_0x57f456['end']['isAfter'](_0x1fc7b4['end'])?0x1:'add'===_0x439966['type']?-0x1:0x1;}),{'root':_0x2d85e1,'changes':_0x430b7e};function _0x1cc8c6(_0x7586f,_0x456ace,_0x5d5101,_0xe9f0d8){const _0x23c9ba=!!_0x1c86af[_0x456ace][_0x7586f],_0x341bb4=_0x23c9ba?_0x1c86af[_0x456ace][_0x7586f]['userId']:null,_0xfa4e90=_0x456ace===_0x1c86af['length']-0x1,_0x4dbe32=_0x453922[_0x7586f][0x0],_0x4305b9=_0x32c510['isObject'](_0x1c86af[_0x456ace]['item']);!_0x2b1503[_0x7586f]&&_0x23c9ba?_0x2b1503[_0x7586f]={'start':_0x5d5101,'tapeItem':_0x1c86af[_0x456ace],'userId':_0x341bb4,'type':_0x7586f}:_0x2b1503[_0x7586f]&&!_0x23c9ba?(_0x2b1503[_0x7586f]['end']=_0x5d5101,_0x2aa0ce(_0x2b1503[_0x7586f]),_0x2b1503[_0x7586f]=null):_0x2b1503[_0x7586f]&&_0x23c9ba&&_0x2b1503[_0x7586f]['userId']!==_0x341bb4&&(_0x2b1503[_0x7586f]['end']=_0x5d5101,_0x4dbe32&&_0x4dbe32['userId']===_0x2b1503[_0x7586f]['userId']||_0x2aa0ce(_0x2b1503[_0x7586f]),_0x2b1503[_0x7586f]={'start':_0x5d5101,'tapeItem':_0x1c86af[_0x456ace],'userId':_0x341bb4,'type':_0x7586f}),_0x2b1503[_0x7586f]&&_0x4305b9&&('elementStart'!==_0x1c86af[_0x456ace]['type']||_0x4dbe32&&_0x4dbe32['userId']===_0x341bb4||_0x453922[_0x7586f]['unshift']({'userId':_0x341bb4,'object':_0x1c86af[_0x456ace]['item'],'change':_0x2b1503[_0x7586f]}),'elementEnd'===_0x1c86af[_0x456ace]['type']&&_0x4dbe32&&_0x4dbe32['object']===_0x1c86af[_0x456ace]['item']&&(_0x453922[_0x7586f]['shift'](),_0x2b1503[_0x7586f]=_0x4dbe32['change'])),_0x2b1503[_0x7586f]&&_0xfa4e90&&(_0x2b1503[_0x7586f]['end']=_0xe9f0d8,_0x2aa0ce(_0x2b1503[_0x7586f]),_0x2b1503[_0x7586f]=null);}function _0x2aa0ce({start:_0x18aaed,end:_0x46d6f6,tapeItem:_0x31a7b0,userId:_0x315bb8,type:_0xa6df60}){const _0x372aee=_0x31a7b0['item'],_0x827cb3=_0x3bc506['schema']['isBlock'](_0x372aee)&&!_0x3bc506['schema']['isLimit'](_0x372aee),_0x473b98=_0x18aaed['nodeAfter']==_0x46d6f6['parent']&&_0x46d6f6['isAtStart'];if(_0x827cb3&&_0x473b98)return;const _0x5aeff0=_0x3bc506['createRange'](_0x18aaed,_0x46d6f6),_0x591629=_0xceed47['get'](_0x315bb8),_0x4236ea=new r({'author':_0x591629,'type':'isAdded'==_0xa6df60||'isAddSuggestion'==_0xa6df60?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xa6df60||'isRemoveSuggestion'==_0xa6df60},'createdAt':new Date(),'rootName':_0x517875});_0x430b7e['push'](_0x4236ea),_0x2d85e1['markers']['set']('revision:'+_0x4236ea['id'],_0x5aeff0);}function _0xd21f17(_0x31cd6f,_0x38257c){const _0x81fb47=_0x31cd6f['getAttributes'](),_0xdd985=_0x38257c['getAttributes']();for(const _0x181a68 of _0x81fb47){if(_0x181a68[0x1]!==_0x38257c['getAttribute'](_0x181a68[0x0]))return!0x1;_0xdd985['next']();}return _0xdd985['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x123c25=>{const _0x48eaf5=_0x123c25['markerName']['split'](':')[0x1],_0x365129=this['_getChangeFromId'](_0x48eaf5);if(!_0x365129)return null;const _0x4eb41d='add'==_0x365129['type']?'insertion':'deletion',_0x27c34=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4eb41d];return _0x365129['data']['isSuggestion']&&_0x27c34['push']('ck-suggestion-marker-'+_0x4eb41d+'-new'),this['activeChange']==_0x365129&&_0x27c34['push']('ck-suggestion-marker--active'),{'classes':_0x27c34,'attributes':{'data-change-id':_0x48eaf5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x559f1b=>{_0x559f1b['on']('element:pre',(_0xcac7c5,_0x5b1dbb,_0x2a5878)=>{const _0x5c1b99=_0x5b1dbb['viewItem']['getChild'](0x0);if(!_0x5c1b99||!_0x5c1b99['is']('element','code'))return;if(!_0x2a5878['consumable']['consume'](_0x5c1b99,{'attributes':['vid_start','vid_end']}))return;const _0x133573=_0x5b1dbb['modelRange']['start']['nodeAfter'];_0x2a5878['writer']['setAttribute']('vid_start',_0x5c1b99['getAttribute']('vid_start'),_0x133573),_0x2a5878['writer']['setAttribute']('vid_end',_0x5c1b99['getAttribute']('vid_end'),_0x133573);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x20f681=>{_0x20f681['on']('element',(_0x32438a,_0x2d6ec4,_0x1e51a2)=>{if(!_0x1e51a2['consumable']['consume'](_0x2d6ec4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2d6ec4['modelRange']['isCollapsed'])return;const _0x7ace7a=_0x2d6ec4['modelRange']['start']['nodeAfter'];_0x7ace7a['hasAttribute']('vid_start')||_0x7ace7a['hasAttribute']('vid')||(_0x1e51a2['writer']['setAttribute']('vid_start',_0x2d6ec4['viewItem']['getAttribute']('vid_start'),_0x7ace7a),_0x1e51a2['writer']['setAttribute']('vid_end',_0x2d6ec4['viewItem']['getAttribute']('vid_end'),_0x7ace7a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x15db2c=>_0x15db2c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x283ccb,[,_0x5d959])=>{['vid_start','vid_end','vid']['includes'](_0x5d959)&&(_0x283ccb['return']=!0x0,_0x283ccb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x168842=>{_0x168842['on']('attribute:vid',(_0x49a986,_0x277cb1,_0x26ef62)=>{if('\x20'!=_0x277cb1['item']['data']||_0x277cb1['item']['parent']['maxOffset']>0x1)return;if(!_0x26ef62['consumable']['consume'](_0x277cb1['item'],_0x49a986['name']))return;const _0x3c064f=_0x26ef62['writer'],_0x46e3a3=_0x26ef62['mapper']['toViewRange'](_0x277cb1['range']);_0x3c064f['wrap'](_0x46e3a3,_0x3c064f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2c6154){const _0x421e8a=_0x2c6154['plugins']['get']('RevisionViewer');return(_0x48bbbe,_0x3323a4,_0x4caf01)=>{const _0x1095d6=_0x3323a4['markerName']['split'](':')[0x1],_0x350184=_0x421e8a['_getChangeFromId'](_0x1095d6);if(!_0x350184)return null;const _0x37992b='add'==_0x350184['type']?'split':'merge';if(!_0x4caf01['consumable']['test'](_0x3323a4['markerRange'],_0x48bbbe['name']))return;const _0x5f01d1=_0x3323a4['markerRange']['getWalker'](),_0x1e3f34=_0x3323a4['markerRange']['start'],_0x43cfa7=_0x2c6154['model']['schema'];let _0x56f262=null,_0x4d0791=null,_0x2a4829=!0x1,_0xf111c=!0x1;for(const _0x4a1239 of _0x5f01d1){const _0x127c61=_0x4a1239['item'];_0x2a4829=_0x2a4829||_0x43cfa7['isContent'](_0x127c61);const _0x2401da=_0x4caf01['mapper']['toViewElement'](_0x127c61);if(_0x2401da&&_0x2401da['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a1239['type']&&(_0x43cfa7['isBlock'](_0x127c61)&&!_0x43cfa7['isLimit'](_0x127c61)&&(_0x127c61['nextSibling']||_0x1e3f34['isAtEnd']?_0x56f262&&_0x56f262['parent']==_0x127c61||(_0x56f262=_0x127c61,_0x26ad8f(_0x4a1239['previousPosition']),_0xf111c=!0x0):_0x4d0791=_0x4d0791||_0x4a1239['previousPosition']));}function _0x26ad8f(_0x209d14){const _0x5a89ee=_0x4caf01['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x37992b}),_0x1cecd7=_0x4caf01['mapper']['toViewPosition'](_0x209d14);_0x350184['data']['isSuggestion']&&_0x4caf01['writer']['addClass']('ck-suggestion-marker-'+_0x37992b+'-new',_0x5a89ee),_0x421e8a['activeChange']==_0x350184&&_0x4caf01['writer']['addClass']('ck-suggestion-marker--active',_0x5a89ee),_0x4caf01['writer']['insert'](_0x1cecd7,_0x5a89ee),_0x4caf01['mapper']['bindElementToMarker'](_0x5a89ee,_0x3323a4['markerName']);}_0x2a4829||_0xf111c||!_0x4d0791||_0x26ad8f(_0x4d0791);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xf978c3,_0x34627f,_0x4acf2b)=>{const _0x2be946=_0x4acf2b['mapper']['markerNameToElements'](_0x34627f['markerName']);if(_0x2be946){for(const _0x30c649 of _0x2be946)(_0x30c649['hasClass']('ck-suggestion-marker-split')||_0x30c649['hasClass']('ck-suggestion-marker-merge'))&&(_0x4acf2b['mapper']['unbindElementFromMarkerName'](_0x30c649,_0x34627f['markerName']),_0x4acf2b['writer']['remove'](_0x30c649));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4058ab,_0x4fa416,_0x5ec617)=>{const _0x1ef7ef=_0x4fa416['markerName']['split'](':')[0x1],_0x355501=this['_getChangeFromId'](_0x1ef7ef);if(!_0x355501)return null;const _0x4382ed='add'==_0x355501['type']?'split':'merge';if(_0x5ec617['consumable']['test'](_0x4fa416['markerRange'],_0x4058ab['name']))for(const _0x36c2f1 of _0x4fa416['markerRange']['getItems']()){if(!_0x36c2f1['is']('element','softBreak'))continue;const _0x132a89=_0x5ec617['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4382ed}),_0x49c3ab=_0x5ec617['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x36c2f1));_0x355501['data']['isSuggestion']&&_0x5ec617['writer']['addClass']('ck-suggestion-marker-'+_0x4382ed+'-new',_0x132a89),this['activeChange']==_0x355501&&_0x5ec617['writer']['addClass']('ck-suggestion-marker--active',_0x132a89),_0x5ec617['writer']['insert'](_0x49c3ab,_0x132a89),_0x5ec617['mapper']['bindElementToMarker'](_0x132a89,_0x4fa416['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x311cfa=>{for(const _0x5e16c2 of this['editor']['model']['document']['getRootNames']()){const _0x1c3abe=this['editor']['model']['document']['getRoot'](_0x5e16c2),_0x54fe1d=this['editor']['editing']['view']['document']['getRoot'](_0x5e16c2);if(_0x54fe1d){const _0x18669e=_0x1c3abe['getAttribute']('revisionHistoryAttachChange');if(_0x311cfa['removeAttribute']('data-change-id',_0x54fe1d),_0x311cfa['removeClass']('ck-revision-history-root-add',_0x54fe1d),_0x311cfa['removeClass']('ck-revision-history-root-remove',_0x54fe1d),_0x311cfa['removeClass']('ck-revision-history-root--active',_0x54fe1d),_0x18669e){const _0x46502b=this['_getChangeFromId'](_0x18669e);if(!_0x46502b)return null;_0x311cfa['setAttribute']('data-change-id',_0x18669e,_0x54fe1d),_0x311cfa['addClass']('ck-revision-history-root-'+_0x46502b['type'],_0x54fe1d),this['activeChange']==_0x46502b&&_0x311cfa['addClass']('ck-revision-history-root--active',_0x54fe1d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2761f=>'revision-comment:'+_0x2761f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x323670=>'revision-suggestion:'+_0x323670,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5a0043=>({'name':'suggestion:'+_0x5a0043,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1f6ca4=>{const _0x5132c2=_0x1f6ca4['markerName']['split'](':')[0x1];return'insertion'!=_0x5132c2&&'deletion'!=_0x5132c2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5132c2]};}}),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',(_0x5f570e,_0x229d09,_0x49156c)=>{const _0x5ed0e9=_0x49156c['mapper']['markerNameToElements'](_0x229d09['markerName']);if(_0x5ed0e9){for(const _0x28e86a of _0x5ed0e9)_0x28e86a['is']('uiElement')&&(_0x49156c['mapper']['unbindElementFromMarkerName'](_0x28e86a,_0x229d09['markerName']),_0x49156c['writer']['remove'](_0x28e86a));}},{'priority':'high'});}['_getChangeFromId'](_0x2962fe){return this['_changeIdToChange']['get'](_0x2962fe);}['_getViewForChange'](_0xe6aaff){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0xe6aaff),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x388657,_0x2704d5,_0x4c25c2,_0x59f324)=>{_0x59f324&&this['_balloon']['remove'](_0x59f324),_0x4c25c2&&(this['_balloon']['add']({'view':_0x4c25c2,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x234b2=this['editor']['editing'],_0x405e35=this['_getChangeFromId'](_0x4c25c2['changeId']);let _0x5371f0;if(_0x405e35['data']['isOnRoot']){const _0x51a8b6=_0x234b2['view']['getDomRoot'](_0x405e35['rootName']);_0x5371f0=Array['from'](_0x51a8b6['getClientRects']());}else{const _0x2dda4e=this['editor']['model']['markers']['get']('revision:'+_0x4c25c2['changeId']);_0x5371f0=Array['from'](_0x234b2['mapper']['markerNameToElements'](_0x2dda4e['name']))['map'](_0x414779=>_0x234b2['view']['domConverter']['mapViewToDom'](_0x414779))['map'](_0x13e428=>Array['from'](_0x13e428['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5371f0[0x0];return _0x5371f0['find'](_0x508e05=>_0x508e05['top']-0x3<=this['_activeViewTarget']['y']&&_0x508e05['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x508e05['left']-0x3<=this['_activeViewTarget']['x']&&_0x508e05['right']+0x3>=this['_activeViewTarget']['x'])||_0x5371f0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x39d4c8,_0xc534a6,_0x34a182,_0x5c3d89)=>{this['activeView']=_0x34a182?this['_getViewForChange'](_0x34a182):null,this['editor']['model']['change'](()=>{const _0x4f7156=this['editor']['editing'];_0x5c3d89&&(_0x5c3d89['data']['isOnRoot']?_0x4f7156['view']['change'](_0x3fdd81=>{_0x3fdd81['removeClass']('ck-revision-history-root--active',_0x4f7156['view']['document']['getRoot'](_0x5c3d89['rootName']));}):_0x4f7156['reconvertMarker']('revision:'+_0x5c3d89['id'])),_0x34a182&&(_0x34a182['data']['isOnRoot']?_0x4f7156['view']['change'](_0x2a2fa0=>{_0x2a2fa0['addClass']('ck-revision-history-root--active',_0x4f7156['view']['document']['getRoot'](_0x34a182['rootName']));}):_0x4f7156['reconvertMarker']('revision:'+_0x34a182['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x65802c,_0x10e081)=>{if(this['activeChange'])return;const _0x3d7d23=this['_findChangeIdFromDomTarget'](_0x10e081['target']),_0x5268e7=this['_changeIdToChange']['get'](_0x3d7d23);_0x5268e7?(this['_activeViewTarget']={'x':_0x10e081['domEvent']['x'],'y':_0x10e081['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5268e7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x372fad,_0x31125e)=>{const _0x4ea990=this['_findChangeIdFromDomTarget'](_0x31125e['target']),_0x140597=this['_changeIdToChange']['get'](_0x4ea990);_0x140597?(this['_activeViewTarget']={'x':_0x31125e['domEvent']['x'],'y':_0x31125e['domEvent']['y']},_0x140597===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x140597):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x505eae){do{const _0xc70057=_0x505eae['getAttribute']('data-change-id');if(_0xc70057)return _0xc70057;_0x505eae=_0x505eae['parent'];}while(_0x505eae);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x41ecc9=>{for(const _0x21fd63 of this['editor']['model']['markers'])_0x41ecc9['removeMarker'](_0x21fd63);});}}function X(_0x2d4ceb,_0x4f21b6){return(_0x3790cf,_0x20670e,_0xdae188)=>{if(!_0xdae188['consumable']['test'](_0x20670e['markerRange'],_0x3790cf['name']))return;const _0x1a5e4e=_0x20670e['markerRange']['getWalker'](),_0x209854=_0x20670e['markerRange']['start'],_0x39d304=_0x2d4ceb['model']['schema'];let _0x3f0c42=null,_0x1697ff=null,_0x23ac95=!0x1,_0x3f0333=!0x1;for(const _0x1d6bdf of _0x1a5e4e){const _0x2050dc=_0x1d6bdf['item'];_0x23ac95=_0x23ac95||_0x39d304['isContent'](_0x2050dc);const _0x358e5d=_0xdae188['mapper']['toViewElement'](_0x2050dc);if(_0x358e5d&&_0x358e5d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d6bdf['type']&&(_0x39d304['isBlock'](_0x2050dc)&&!_0x39d304['isLimit'](_0x2050dc)&&(_0x2050dc['nextSibling']||_0x209854['isAtEnd']?_0x3f0c42&&_0x3f0c42['parent']==_0x2050dc||(_0x3f0c42=_0x2050dc,_0x44eceb(_0x1d6bdf['previousPosition']),_0x3f0333=!0x0):_0x1697ff=_0x1697ff||_0x1d6bdf['previousPosition']));}function _0x44eceb(_0x124d4b){const _0x101dae=_0xdae188['mapper']['toViewPosition'](_0x124d4b),_0x5afac5=_0xdae188['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4f21b6});_0xdae188['writer']['insert'](_0x101dae,_0x5afac5),_0xdae188['mapper']['bindElementToMarker'](_0x5afac5,_0x20670e['markerName']);}_0x23ac95||_0x3f0333||!_0x1697ff||_0x44eceb(_0x1697ff);};}class wt extends _0x401c69{constructor(_0x4a7f30){super(_0x4a7f30);const _0x74e3ee=_0x4a7f30['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x74e3ee,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x74e3ee,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x548c08=this['editor'],_0x82acae=_0x548c08['plugins']['get'](m),_0x1e6c49=_0x82acae['isReady']?_0x82acae['diff']['newRevisionId']:null;_0x548c08['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1e6c49);}['refresh'](){const {isReady:_0x33880e,isEnabled:_0x4257d6,repository:_0x4e8ff7,diff:_0x52226d}=this['editor']['plugins']['get'](m),_0x5ac3bf=_0x52226d&&_0x4e8ff7['getLaterVisibleRevision'](_0x52226d['newRevisionId']);this['isEnabled']=_0x33880e&&_0x4257d6&&Boolean(_0x5ac3bf);}}class pt extends _0x401c69{['_step'];constructor(_0x148290,{direction:_0x5ee96c}){super(_0x148290);const _0x523418=_0x148290['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x5ee96c?0x1:-0x1,this['listenTo'](_0x523418,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x523418,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x523418,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x8b4b22=this['editor'],_0x4f55bb=_0x8b4b22['plugins']['get'](m),{isNavigationMode:_0x3e2b9d,currentChangeNumber:_0x39c77b}=_0x4f55bb;let _0x29b9d7;if(_0x4f55bb['activeChange']=_0x3e2b9d?_0x4f55bb['diff']['changes']['get'](_0x39c77b+this['_step']):_0x4f55bb['diff']['changes']['first'],_0x4f55bb['activeChange']['data']['isOnRoot'])_0x29b9d7=_0x8b4b22['editing']['view']['getDomRoot'](_0x4f55bb['activeChange']['rootName']);else{const _0x4cb672=_0x8b4b22['model']['markers']['get']('revision:'+_0x4f55bb['activeChange']['id']);_0x29b9d7=_0x2c2761(_0x8b4b22['editing'],_0x4cb672);}_0x2aff8f({'target':_0x29b9d7,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4681ff,currentChangeNumber:_0x4fafa2,numberOfChanges:_0x48d8c4,isReady:_0x1d4233,isEnabled:_0x23d91f}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x23d91f&&_0x1d4233&&_0x48d8c4)&&(!_0x4681ff||(0x1===this['_step']?_0x4fafa2<_0x48d8c4-0x1:_0x4fafa2>0x0));}}class _i extends _0x29c029{constructor(_0x399a99){super(_0x399a99);const _0x33b327=this['bindTemplate'],_0x1d7f7d=new _0x4f0d8d(_0x399a99),_0x261268=new _0x4f0d8d(_0x399a99);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',(_0xbd468e,_0xdcf3b2)=>_0xbd468e&&_0xdcf3b2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1621b1,_0xb96268,_0x5ac65c,_0x1813c1)=>{if(!_0x1621b1)return g(_0x399a99,'Loading...');if(!_0x5ac65c)return g(_0x399a99,'No\x20changes');const _0x5812f5=g(_0x399a99,'NUMBER_OF_CHANGES',_0x5ac65c);return _0x1813c1?g(_0x399a99,'X_OF_Y_CHANGES',[_0xb96268+0x1,_0x5ac65c]):_0x5812f5;}),_0x1d7f7d['set']({'label':g(_0x399a99,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x245128}),_0x261268['set']({'label':g(_0x399a99,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5b69b8}),_0x1d7f7d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x261268['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1d7f7d['on']('execute',()=>this['fire']('execute','backward')),_0x261268['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',_0x33b327['if']('_isStatusLabelVisible','ck-hidden',_0x343861=>!_0x343861)]},'children':[{'text':_0x33b327['to']('isNavigationMode',_0x347e46=>_0x347e46?g(_0x399a99,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x399a99,'Total')+':\x20')}]},{'text':_0x33b327['to']('_statusText')}]},new _0x39e9cc(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1d7f7d,_0x261268]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5df236{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x551346=this['editor']['editing']['view'];_0x551346['change'](_0x20f851=>{for(const _0x314d26 of _0x551346['document']['roots'])_0x20f851['addClass'](ce,_0x314d26);});}['hide'](){const _0x3f017d=this['editor']['editing']['view'];_0x3f017d['change'](_0x409573=>{for(const _0x23714f of _0x3f017d['document']['roots'])_0x409573['removeClass'](ce,_0x23714f);});}}class R extends _0x5df236{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x70c930=this['editor'],_0xc2906d=_0x70c930['plugins']['get'](m),_0x3da031=_0x70c930['plugins']['get'](le);_0x70c930['ui']['componentFactory']['add']('exitToEditing',_0x1ed836=>{const _0x452726=new _0x4f0d8d(_0x1ed836);return _0x452726['set']({'label':g(_0x1ed836,'Back\x20to\x20editing'),'icon':_0x249b76,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x452726,'execute',()=>{_0x70c930['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x452726;}),_0x70c930['ui']['componentFactory']['add']('restoreRevision',_0x1c77d0=>{const _0x13f903=new _0x4f0d8d(_0x1c77d0);return _0x13f903['set']({'label':g(_0x1c77d0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x13f903['bind']('isEnabled')['to'](_0x70c930['commands']['get']('restoreRevision')),this['listenTo'](_0x13f903,'execute',()=>_0x70c930['execute']('restoreRevision')),_0x13f903;}),_0x70c930['ui']['componentFactory']['add']('changesNavigation',_0x1b8814=>{const _0x3b99dd=new _i(_0x1b8814),_0x56ead2=_0x70c930['commands']['get']('showPreviousChange'),_0x51e472=_0x70c930['commands']['get']('showNextChange');return _0x3b99dd['bind']('isBackwardNavigationEnabled')['to'](_0x56ead2,'isEnabled'),_0x3b99dd['bind']('isForwardNavigationEnabled')['to'](_0x51e472,'isEnabled'),_0x3b99dd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xc2906d),this['listenTo'](_0x3b99dd,'execute',(_0x1e6836,_0x103ac4)=>{_0x70c930['execute']('forward'===_0x103ac4?'showNextChange':'showPreviousChange');}),_0x3b99dd;}),_0x3da031['show'](),_0xc2906d['on']('change:isReady',(_0x2e18c,_0x3347fa,_0xab69d7)=>{_0xab69d7?_0x3da031['hide']():_0x3da031['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x167eb2,_0x52bdd2){super(_0x167eb2,_0x52bdd2);const _0x4fde52=this['bindTemplate'];this['set']({'label':g(_0x167eb2,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x167eb2,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4fde52['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 _0x46d793=this['fieldView']['element'];this['_tooltipString']=_0x46d793['scrollWidth']>_0x46d793['clientWidth']&&_0x46d793['value']||'';}}class oi extends _0x29c029{constructor(_0x856d18,_0x37255e,_0x5c7f1e){super(_0x856d18);const _0x1c8bf2=new _0x6ec42d();_0x1c8bf2['set']({'content':_0x395a6e,'viewBox':'0\x200\x2011\x2010'});const _0x5a3b99=['ck','ck-revision-history-sidebar__revision-author'];_0x5c7f1e&&_0x5a3b99['push']('ck-revision-history-sidebar__revision-author_creator');const _0x260bd0=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x856d18,_0x5c7f1e?'Revision\x20creator':'Revision\x20author')},'children':[_0x1c8bf2,_0x37255e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5a3b99},'children':_0x260bd0});}}function ni(_0x29a89c,_0x3ef0c4){const _0x3da837=_0x29a89c['bindTemplate'],_0x58736d=_0x29a89c['locale'],_0x39603c=_0x3a8b72(_0x58736d);_0x39603c['panelPosition']='sw';const _0x480179=function(_0xc1d3e1,_0x31ffa5){const _0xebde91=function(_0x2025b5,_0x54ceb2){const _0x2aced4=_0x2025b5['locale'],_0x2ae552={'Compare\x20against\x20selected':g(_0x2aced4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2aced4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2aced4,'Restore\x20this\x20revision')};return _0x54ceb2['map'](_0x45a97e=>{const _0x3c6ef1=_0x2ae552[_0x45a97e['name']];return _0x3c6ef1&&_0x3c6ef1!==_0x45a97e['name']&&(_0x45a97e['name']=_0x3c6ef1),_0x45a97e;});}(_0xc1d3e1,_0x31ffa5),_0x5894fe=new _0x4b7808();for(const _0x15b55e of _0xebde91){const _0x198f4b={'type':'button','model':new to({'label':_0x15b55e['name'],'class':_0x15b55e['class'],'withText':!0x0,'role':'menuitem','_action':_0x15b55e['action']})};_0x198f4b['model']['bind']('isEnabled')['to'](_0xc1d3e1,'isActionsDropdownOpen',_0xf1c1a0=>'function'!=typeof _0x15b55e['isEnabled']||(!_0xf1c1a0||_0x15b55e['isEnabled'](_0xc1d3e1))),_0x5894fe['add'](_0x198f4b);}return _0x5894fe;}(_0x29a89c,_0x3ef0c4);return _0x29a89c['bind']('isActionsDropdownOpen')['to'](_0x39603c,'isOpen'),_0x39603c['buttonView']['set']({'label':g(_0x58736d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x200883}),_0x39603c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3da837['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3da837['to'](_0x1a7437=>_0x1a7437['stopPropagation']())}}),_0x39603c['on']('execute',_0x316658=>{_0x29a89c['isReady']&&'function'==typeof _0x316658['source']['_action']&&_0x316658['source']['_action'](_0x29a89c);}),_0x30b893(_0x39603c,_0x480179,{'role':'menu'}),_0x39603c['listenTo'](_0x29a89c,'change:isActionsDropdownOpen',(_0x215325,_0x2b189f,_0x1f41d6)=>{if(_0x1f41d6)for(const _0x4a27c2 of _0x39603c['listView']['items']){const _0x1d6570=_0x4a27c2['children']['first'],_0x350ea3=_0x3ef0c4['find'](_0x4f5903=>_0x4f5903['action']===_0x1d6570['_action'])['isVisible'];_0x4a27c2['isVisible']=void 0x0===_0x350ea3||_0x350ea3(_0x29a89c);}}),_0x39603c;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x249462(_0x29c029){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x568f08,_0x4899fc,_0x242bc7,_0x38e599){super(_0x568f08);const _0x2ca76a=this['bindTemplate'],_0x288fe5=function(_0x3221d9,_0x1e875b){const _0x14862b=Array['from'](_0x1e875b['authors'])['filter'](_0xeeea10=>_0xeeea10!=_0x1e875b['creator']);return _0x1e875b['creator']&&_0x14862b['unshift'](_0x1e875b['creator']),_0x14862b['map'](_0x4b487e=>new oi(_0x3221d9,_0x4b487e,_0x4b487e==_0x1e875b['creator']));}(_0x568f08,_0x4899fc);this['id']=_0x4899fc['id'],this['_revision']=_0x4899fc,this['_requireRevisionName']=_0x38e599,this['bind']('name','createdAt')['to'](_0x4899fc),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3ad27a=>{return _0x3b483d=_0x568f08['uiLanguage'],(_0x4c307c=_0x3ad27a)['toLocaleDateString'](_0x3b483d,{'month':'long','day':'numeric'})+',\x20'+_0x4c307c['toLocaleTimeString'](_0x3b483d,{'hour':'numeric','minute':'numeric'});var _0x3b483d,_0x4c307c;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x568f08,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xc86218=>_0xc86218||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4c6c63,_0x5be323)=>_0x4c6c63&&_0x5be323),this['revisionActionsView']=_0x242bc7&&_0x242bc7['length']?ni(this,_0x242bc7):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2ca76a['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2ca76a['if']('isEnabled','ck-disabled',_0x41e4b9=>!_0x41e4b9),_0x2ca76a['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2ca76a['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2ca76a['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':_0x2ca76a['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':_0x288fe5}]},this['revisionActionsView']],'on':{'click':_0x2ca76a['to'](_0x56d463=>{_0x56d463['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xefe239=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xefe239,'change',()=>{this['_requireRevisionName']&&!_0xefe239['value']||this['fire']('setName',{'id':this['id'],'name':_0xefe239['value']}),_0xefe239['value']||(_0xefe239['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(_0x31aedd,_0x49fcf3){const _0x10be40=_0x285df6['fromJSDate'](_0x31aedd)['setLocale'](_0x49fcf3),_0x2220de=_0x285df6['local'](),_0x11b1f7=_0x2220de['minus']({'days':0x1})['startOf']('day');let _0x387d8a,_0x2faf87;return _0x10be40['hasSame'](_0x2220de,'day')?(_0x387d8a=_0x10be40['startOf']('day')['toJSDate'](),_0x2faf87=_0x10be40['toRelativeCalendar']()):_0x10be40['hasSame'](_0x11b1f7,'day')?(_0x387d8a=_0x11b1f7['toJSDate'](),_0x2faf87=_0x10be40['toRelativeCalendar']()):_0x10be40['hasSame'](_0x2220de,'week')?(_0x387d8a=_0x10be40['startOf']('week')['toJSDate'](),_0x2faf87=_0x10be40['weekdayLong']||''):_0x10be40['hasSame'](_0x2220de,'year')?(_0x387d8a=_0x10be40['startOf']('month')['toJSDate'](),_0x2faf87=_0x10be40['monthLong']||''):(_0x387d8a=_0x10be40['startOf']('year')['toJSDate'](),_0x2faf87=String(_0x10be40['year'])),{'startDate':_0x387d8a,'localizedPeriodName':_0x2faf87};}class mi extends _0x29c029{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x13bbab,_0x15fca3,_0x3b7a8f,_0x368269){super(_0x13bbab);const _0x14a771=vi(_0x15fca3,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x15fca3,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3b7a8f,this['_requireRevisionName']=_0x368269,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':_0x14a771}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x44e454){const _0x48e4d1=new ai(this['locale'],_0x44e454,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x48e4d1);}['removeRevision'](_0xb2bf71){const _0x4336ff=this['revisionViews']['find'](_0x256aff=>_0x256aff['id']===_0xb2bf71['id']);this['revisionViews']['remove'](_0x4336ff);}}class as extends _0x29c029{constructor(_0x38c5a9){super(_0x38c5a9);const _0x1856ef=new _0x6ec42d();_0x1856ef['content']=_0xc1a20f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1856ef,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x38c5a9,'Revision\x20history')]}]});}}class di extends _0x29c029{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xd5ec7f,_0x8f8bdc,_0x14afe3,_0x2310f2){super(_0xd5ec7f);const _0x23a3de=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x8f8bdc,this['_revisionActions']=_0x14afe3,this['_requireRevisionName']=_0x2310f2,this['on']('select',(_0x35a2e2,_0x3a617e)=>{this['fire']('revisionSelected',_0x3a617e);}),this['on']('setName',(_0x1a33e2,_0x3e04dd)=>{this['fire']('revisionSetName',_0x3e04dd);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xd5ec7f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x23a3de['if']('isEnabled','ck-disabled',_0x2b4cf4=>!_0x2b4cf4)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xe05fed of this['_revisions'])this['_addRevision'](_0xe05fed);this['_revisions']['on']('add',(_0x27cb86,_0x3ff108)=>{this['_addRevision'](_0x3ff108);}),this['_revisions']['on']('remove',(_0x5e7340,_0x46ed4c)=>{this['_removeRevision'](_0x46ed4c);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2b07e4=>_0x2b07e4['revisionViews']['map'](_0x3745c5=>_0x3745c5))['flat']();}['selectRevision'](_0xe9ac9e){for(const _0x17d46a of this['revisionViews'])_0xe9ac9e&&_0xe9ac9e['id']===_0x17d46a['id']?_0x17d46a['select']():_0x17d46a['deselect']();}['highlightRevisions'](_0x39b7ba){for(const _0x1fbf83 of this['revisionViews'])_0x39b7ba['some'](({id:_0x4bf4a0})=>_0x4bf4a0===_0x1fbf83['id'])?_0x1fbf83['highlight']():_0x1fbf83['unhighlight']();}['_addRevision'](_0x4db91a){const _0x25ed2d=vi(_0x4db91a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x13cd1d=this['timePeriodViews']['get'](0x0);_0x13cd1d&&_0x13cd1d['startDate']['getTime']()===_0x25ed2d['getTime']()||(_0x13cd1d=new mi(this['locale'],_0x25ed2d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x13cd1d)),_0x13cd1d['addRevision'](_0x4db91a);}['_removeRevision'](_0x12749a){const _0x36caaf=vi(_0x12749a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x36caaf)['removeRevision'](_0x12749a);}['_getTimePeriodViewByStartDate'](_0x59db4c){return this['timePeriodViews']['find'](_0x2ff96c=>_0x2ff96c['startDate']['getTime']()===_0x59db4c['getTime']());}}class d extends _0x5df236{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x138b7b(_0x1fc663){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3f3aed,_0xcb2bef){super(_0xcb2bef),this['sourceElement']=_0x3f3aed,this['model']['document']['createRoot']();const _0x5e0b11=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x5e0b11);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x534df3,_0x29118f){const _0x362c93=new this(_0x534df3,_0x29118f);return await _0x362c93['initPlugins'](),await _0x362c93['ui']['init'](_0x534df3),await _0x362c93['data']['init'](_0x362c93['config']['get']('initialData')||''),_0x362c93['fire']('ready'),_0x362c93;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x59ac4e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30a01d){function _0x1d0165(_0x5d64a6){return _0x5d64a6['map'](_0x5da41c=>String['fromCharCode'](_0x5da41c))['join']('');}super(_0x30a01d),this['result']='end',_0x30a01d[_0x1d0165([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d0165([0x76,0x69,0x65,0x77])][_0x1d0165([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d0165([0x61,0x75,0x74,0x6f]),_0x30a01d[_0x1d0165([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1d0165([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d0165([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1d0165([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1d0165([0x6f,0x6b])});}}class k extends _0x59ac4e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x43404d){if(super(_0x43404d),!this['editor']['config']['get']('revisionHistory'))throw new _0x55c2a5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1bbc92=>this['_showRevisionViewer']({..._0x1bbc92,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2e4455=>this['_closeRevisionViewer'](_0x2e4455)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2519cc=>this['_restoreRevision'](_0x2519cc)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x41690d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x41690d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4e2fb9){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4e2fb9);}['getRevision'](_0x18da4f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x18da4f);}['getRevisions'](_0x39e993){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x39e993||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x534dc8=this['editor'],_0x4ff1bb=_0x389b08(_0x534dc8,p),_0x52abd0=_0x534dc8['plugins']['get']('RevisionTracker'),_0x567c1d=_0x534dc8['plugins']['get']('Users')['users'];return _0x4ff1bb['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4ff1bb['lazyRoots'],(_0x4ff1bb['plugins']['push'](_t,m,R,class extends _0x59ac4e{static get['requires'](){return[m,'Users'];}['init'](){const _0x3a44e3=this['editor']['plugins']['get']('Users');for(const _0x2f4e6a of _0x567c1d)_0x2f4e6a['isAnonymous']||_0x3a44e3['getUser'](_0x2f4e6a['id'])||_0x3a44e3['addUser'](_0x2f4e6a);const _0x280f82=_0x52abd0['repository']['getRevisions']();let _0x219f14=null;const _0x2d5c94=this['editor']['plugins']['get']('RevisionViewer');_0x2d5c94['adapter']=_0x52abd0['adapter'],_0x2d5c94['bind']('isEnabled')['to'](_0x52abd0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x534dc8,'isReadOnly',_0x2a0aa5=>!_0x2a0aa5);for(const _0x73d652 of _0x280f82){const _0x29cc67=null===_0x73d652['creator'];if(_0x29cc67&&_0x73d652['toVersion']===_0x73d652['fromVersion'])continue;const _0x8ef2a8=_0x73d652['toJSON']();_0x2d5c94['addRevisionData'](_0x8ef2a8,(_0x4ec2ff,_0x4bed94,_0x4686a1)=>{if(_0x29cc67){if(_0x219f14)_0x219f14['_update'](_0x4ec2ff,_0x4bed94);else{if(!_0x4bed94){const _0x30c42c=_0x4686a1['toJSON']();_0x30c42c['id']=_0x2c0587(),_0x52abd0['saveRevision'](_0x30c42c,_0x4686a1['toVersion'])['then'](_0x41c9fb=>{_0x219f14=_0x41c9fb;});}}}else _0x73d652['_update'](_0x4ec2ff,_0x4bed94);});}}},d),_0x4ff1bb);}['_enhanceShowRevisionViewerCallback'](){const _0xe867f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xabbd70=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4d1fa1=this['editor']['plugins']['get']('Autosave');await _0x4d1fa1['save']();}else await _0xabbd70['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x59dc8f=this['editor']['plugins']['get']('Dialog');_0x59dc8f['isOpen']&&_0x59dc8f['hide']();}const _0xa2d22b=this['_getRevisionViewerEditorConfig']();return _0xe867f(_0xa2d22b)['then'](_0x259f14=>{return(this['_viewerEditor']=_0x259f14,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'),_0x259f14);})['catch'](_0x3b55c9=>(console['error'](_0x3b55c9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4b37f4=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'](),_0x4b37f4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1ab1e3=this['editor']['plugins']['get']('Annotations');_0x1ab1e3['refreshVisibility'](),_0x1ab1e3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x276926){const _0x3419b1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x333475=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2205bd=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2205bd,_0x276926)['then'](_0x5cee6d=>(_0x333475['style']['display']='block',_0x3419b1['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5cee6d));}['_closeRevisionViewer'](_0x128ea6){const _0x349ae9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x349ae9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x128ea6['destroy']();}async['_restoreRevision'](_0x449d69){const _0x1af4fa=this['editor'],_0xf13895=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x122b20=_0x1af4fa['plugins']['get']('RevisionTracker'),_0x34f9a3=_0x1af4fa['plugins']['get']('RevisionHistoryUtils'),_0x700a60=_0xf13895['repository']['getRevision'](_0x449d69);let _0x5970a2,_0x1513fd,_0x16fba0;try{await _0x34f9a3['loadRevisionData'](_0x700a60,this['adapter']),_0x5970a2=_0x34f9a3['getRevisionDocumentData'](_0x700a60),_0x1513fd=_0x34f9a3['getRevisionRootsAttributes'](_0x700a60);}catch(_0x1b19d2){return void console['error'](_0x1b19d2);}_0x1af4fa['model']['change'](_0x39810f=>{for(const _0x5f4213 of Array['from'](_0x1af4fa['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x39810f['removeMarker'](_0x5f4213);}),_0xf13895['isReady']=!0x1,_0x1af4fa['model']['enqueueChange'](_0x43dcc3=>{_0x43dcc3['setSelection'](null),_0x43dcc3['removeSelectionAttribute'](_0x1af4fa['model']['document']['selection']['getAttributeKeys']());const _0x232daa=Object['keys'](_0x5970a2);for(const _0x998cc6 of _0x1af4fa['model']['document']['roots'])'$graveyard'!=_0x998cc6['rootName']&&_0x998cc6['isAttached']()&&!_0x232daa['includes'](_0x998cc6['rootName'])&&_0x43dcc3['detachRoot'](_0x998cc6);for(const _0x1c8be7 of _0x232daa){let _0x53e459=_0x1af4fa['model']['document']['getRoot'](_0x1c8be7);_0x53e459&&_0x53e459['isAttached']()||(_0x53e459=_0x43dcc3['addRoot'](_0x1c8be7));const _0x28e56c=_0x1513fd[_0x1c8be7],_0x41ea47=Object['keys'](_0x28e56c),_0x4acb3a=_0x5970a2[_0x1c8be7];for(const _0x330617 of _0x53e459['getAttributeKeys']())_0x41ea47['includes'](_0x330617)||_0x43dcc3['removeAttribute'](_0x330617,_0x53e459);for(const _0x508097 of _0x41ea47)_0x43dcc3['setAttribute'](_0x508097,_0x1513fd[_0x1c8be7][_0x508097],_0x53e459);_0x43dcc3['remove'](_0x43dcc3['createRangeIn'](_0x53e459)),_0x43dcc3['insert'](_0x1af4fa['data']['parse'](_0x4acb3a,_0x53e459),_0x53e459,0x0);}});const _0x1e47df=g(_0x1af4fa['locale'],'Restored');if(_0x700a60['name'])_0x16fba0=-0x1==_0x700a60['name']['indexOf'](_0x1e47df)?_0x1e47df+':\x20'+_0x700a60['name']:_0x700a60['name'];else _0x16fba0=_0x1e47df+':\x20'+(_0x700a60['createdAt']['toLocaleDateString'](_0x1af4fa['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x700a60['createdAt']['toLocaleTimeString'](_0x1af4fa['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x122b20['saveRevision']({'name':_0x16fba0}),_0xf13895['isReady']=!0x0,_0x1af4fa['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(_0x902871){super(_0x902871),this['_revisionViewer']=_0x902871['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5ec737=this['_revisionsRepository']['_revisions'],_0x1a8cab=this['_createRevisionActions'](),_0x28d666=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x5ec737,_0x1a8cab,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',(_0x2ee041,_0x28419f)=>{_0x28419f['revisionViews']['on']('add',(_0x5b07b4,_0x3070dc)=>{_0x3070dc['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)),_0x28d666['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x41cf6e=this['_revisionsRepository']['getRevision'](0x0);if(_0x41cf6e){const _0x563a8a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x41cf6e['id']);this['_revisionViewer']['compare'](_0x41cf6e,_0x563a8a);}}['_handleRevisionSelected'](_0x134556,_0x2432e0){const _0x1658d5=this['_revisionsRepository']['getRevision'](_0x2432e0['id']),_0x4179e2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1658d5['id']);this['_revisionViewer']['compare'](_0x1658d5,_0x4179e2);}['_handleRevisionSetName'](_0x5a3efb,_0x2ec877){this['_revisionsRepository']['getRevision'](_0x2ec877['id'])['setName'](_0x2ec877['name']);}['_handleDiffChange'](_0x52e42a,_0x2fa81d,_0x1e06bc){const _0x52c9fe=this['_revisionsRepository']['getRevisionsInDiff'](_0x1e06bc);_0x52c9fe['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x52c9fe),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x52c9fe[0x0]));}['_createRevisionActions'](){const _0x374ca3=this['editor'],_0x3861d3=d['availableRevisionActions'],_0x37a15f=_0x374ca3['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x37a15f['length'])return _0x37a15f['map'](_0x4af69a=>{const _0x17fa3e='string'==typeof _0x4af69a?Object['assign']({},_0x3861d3[_0x4af69a]):_0x4af69a;return _0x17fa3e['action']=_0x17fa3e['action']['bind'](this,_0x374ca3),_0x17fa3e['isVisible']&&(_0x17fa3e['isVisible']=_0x17fa3e['isVisible']['bind'](this,_0x374ca3)),_0x17fa3e;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4e77a5},_0x3e8b1a)=>{const _0x47ae88=_0x4e77a5['get'](m),_0x318441=_0x47ae88['repository'];let _0x394b16=_0x47ae88['diff']['newRevisionId'],_0x2f2852=_0x3e8b1a['id'];_0x318441['getIndex'](_0x394b16)>_0x318441['getIndex'](_0x2f2852)&&([_0x394b16,_0x2f2852]=[_0x2f2852,_0x394b16]),_0x47ae88['compare'](_0x394b16,_0x2f2852);},'isVisible':({plugins:_0x3500aa},_0x46bca6)=>{const _0x49f99c=_0x3500aa['get'](m);return!(_0x49f99c['repository']['getRevisionsInDiff'](_0x49f99c['diff'])['length']>0x2)&&!_0x46bca6['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x53d475,{id:_0x25823f})=>{_0x53d475['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x25823f);},'isVisible':({plugins:_0x575123},_0x1cddf3)=>!!_0x575123['get'](m)['repository']['getLaterVisibleRevision'](_0x1cddf3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x50413a},{id:_0x448a45,revisionNameView:_0x909d77})=>{const _0x5a60f5=_0x50413a['get'](m),_0x14db89=_0x5a60f5['repository']['getEarlierVisibleRevision'](_0x448a45);_0x5a60f5['compare'](_0x448a45,_0x14db89),_0x909d77['focus'](),_0x909d77['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5ab529,_0x91a37f){super(_0x5ab529),this['_view']=_0x91a37f,this['_toolbarConfig']=et(_0x5ab529['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x1cda98){const _0x5abafe=this['editor'],_0x3974e9=this['view'],_0x54a02f=_0x5abafe['editing']['view'],_0x5e3ccd=_0x3974e9['editable'],_0x5f4a84=_0x54a02f['document']['getRoot']();_0x5e3ccd['name']=_0x5f4a84['rootName'],_0x3974e9['render']();const _0x476cae=_0x5e3ccd['element'];this['setEditableElement'](_0x5e3ccd['name'],_0x476cae),_0x3974e9['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x54a02f['attachDomRoot'](_0x476cae),this['_elementReplacer']['replace'](_0x1cda98,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5a1b7d=this['view'],_0x1ce2b4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1ce2b4['detachDomRoot'](_0x5a1b7d['editable']['name']),_0x5a1b7d['destroy']();}['_initToolbar'](){const _0x593020=this['view'];_0x593020['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x593020['stickyPanel']['limiterElement']=_0x593020['element'],_0x593020['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2a0b53})=>_0x2a0b53),_0x593020['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x593020['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x42797e,_0x3950c3,_0x3fc00b={}){super(_0x42797e),this['stickyPanel']=new ht(_0x42797e),this['toolbar']=new dt(_0x42797e,{'shouldGroupWhenFull':_0x3fc00b['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x42797e,_0x3950c3);}['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
|
+
_0x5a0e26(_0x2750ff){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3a9cfa,_0x52b3ab){super(_0x52b3ab),this['sourceElement']=_0x3a9cfa,this['model']['document']['createRoot']();const _0x39c4a3=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x39c4a3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x367285,_0x1babfa){const _0xd689f=new this(_0x367285,_0x1babfa);return await _0xd689f['initPlugins'](),await _0xd689f['ui']['init'](_0x367285),await _0xd689f['data']['init'](_0xd689f['config']['get']('initialData')||''),_0xd689f['fire']('ready'),_0xd689f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x5df236{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a88fb){function _0x2c7a60(_0x1eb4f8){return _0x1eb4f8['map'](_0x3caa64=>String['fromCharCode'](_0x3caa64))['join']('');}super(_0x5a88fb),this['result']='end',_0x5a88fb[_0x2c7a60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c7a60([0x76,0x69,0x65,0x77])][_0x2c7a60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c7a60([0x61,0x75,0x74,0x6f]),_0x5a88fb[_0x2c7a60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c7a60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c7a60([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c7a60([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c7a60([0x6f,0x6b])});}}class k extends _0x5df236{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4c6dea){if(super(_0x4c6dea),!this['editor']['config']['get']('revisionHistory'))throw new _0x3cba61('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x10857e=>this['_showRevisionViewer']({..._0x10857e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4b2f68=>this['_closeRevisionViewer'](_0x4b2f68)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b92e2=>this['_restoreRevision'](_0x3b92e2)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x57a7f1){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x57a7f1;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x454e81){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x454e81);}['getRevision'](_0x567287){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x567287);}['getRevisions'](_0x2d670b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2d670b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xca6f0e=this['editor'],_0x5d4e5f=_0x2cd006(_0xca6f0e,p),_0x5a68d2=_0xca6f0e['plugins']['get']('RevisionTracker'),_0x584251=_0xca6f0e['plugins']['get']('Users')['users'];return _0x5d4e5f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5d4e5f['lazyRoots'],(_0x5d4e5f['plugins']['push'](yt,m,R,class extends _0x5df236{static get['requires'](){return[m,'Users'];}['init'](){const _0x3cc02e=this['editor']['plugins']['get']('Users');for(const _0x306fe2 of _0x584251)_0x306fe2['isAnonymous']||_0x3cc02e['getUser'](_0x306fe2['id'])||_0x3cc02e['addUser'](_0x306fe2);const _0xa29a25=_0x5a68d2['repository']['getRevisions']();let _0x261910=null;const _0x5a7cd6=this['editor']['plugins']['get']('RevisionViewer');_0x5a7cd6['adapter']=_0x5a68d2['adapter'],_0x5a7cd6['bind']('isEnabled')['to'](_0x5a68d2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xca6f0e,'isReadOnly',_0x43e94f=>!_0x43e94f);for(const _0x59de43 of _0xa29a25){const _0x3c63c1=null===_0x59de43['creator'];if(_0x3c63c1&&_0x59de43['toVersion']===_0x59de43['fromVersion'])continue;const _0x639a15=_0x59de43['toJSON']();_0x5a7cd6['addRevisionData'](_0x639a15,(_0xceb179,_0x209e2e,_0x283c9e)=>{if(_0x3c63c1){if(_0x261910)_0x261910['_update'](_0xceb179,_0x209e2e);else{if(!_0x209e2e){const _0x47f3b2=_0x283c9e['toJSON']();_0x47f3b2['id']=_0x3ebcbf(),_0x5a68d2['saveRevision'](_0x47f3b2,_0x283c9e['toVersion'])['then'](_0x4d1d72=>{_0x261910=_0x4d1d72;});}}}else _0x59de43['_update'](_0xceb179,_0x209e2e);});}}},d),_0x5d4e5f);}['_enhanceShowRevisionViewerCallback'](){const _0x4fd223=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3169d6=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x500783=this['editor']['plugins']['get']('Autosave');await _0x500783['save']();}else await _0x3169d6['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x12cc0c=this['editor']['plugins']['get']('Dialog');_0x12cc0c['isOpen']&&_0x12cc0c['hide']();}const _0x2252a1=this['_getRevisionViewerEditorConfig']();return _0x4fd223(_0x2252a1)['then'](_0x59f2e9=>{return(this['_viewerEditor']=_0x59f2e9,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'),_0x59f2e9);})['catch'](_0x1e0e43=>(console['error'](_0x1e0e43),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3321f3=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'](),_0x3321f3(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2c3b35=this['editor']['plugins']['get']('Annotations');_0x2c3b35['refreshVisibility'](),_0x2c3b35['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1dbb27){const _0x365319=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4151b2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5317d4=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5317d4,_0x1dbb27)['then'](_0x34062b=>(_0x4151b2['style']['display']='block',_0x365319['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x34062b));}['_closeRevisionViewer'](_0x49fbce){const _0x1dca02=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1dca02['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x49fbce['destroy']();}async['_restoreRevision'](_0x3d6e89){const _0x4ddf2c=this['editor'],_0x18565b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2ef1c2=_0x4ddf2c['plugins']['get']('RevisionTracker'),_0x11ea48=_0x4ddf2c['plugins']['get']('RevisionHistoryUtils'),_0x2057f1=_0x18565b['repository']['getRevision'](_0x3d6e89);let _0x5ef00d,_0x53f19f,_0x41c3e7;try{await _0x11ea48['loadRevisionData'](_0x2057f1,this['adapter']),_0x5ef00d=_0x11ea48['getRevisionDocumentData'](_0x2057f1),_0x53f19f=_0x11ea48['getRevisionRootsAttributes'](_0x2057f1);}catch(_0x5ec3cb){return void console['error'](_0x5ec3cb);}_0x4ddf2c['model']['change'](_0x5d447a=>{for(const _0x2b5f4d of Array['from'](_0x4ddf2c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5d447a['removeMarker'](_0x2b5f4d);}),_0x18565b['isReady']=!0x1,_0x4ddf2c['model']['enqueueChange'](_0x57566d=>{_0x57566d['setSelection'](null),_0x57566d['removeSelectionAttribute'](_0x4ddf2c['model']['document']['selection']['getAttributeKeys']());const _0x5d57b0=Object['keys'](_0x5ef00d);for(const _0x10b5b1 of _0x4ddf2c['model']['document']['roots'])'$graveyard'!=_0x10b5b1['rootName']&&_0x10b5b1['isAttached']()&&!_0x5d57b0['includes'](_0x10b5b1['rootName'])&&_0x57566d['detachRoot'](_0x10b5b1);for(const _0x21f31d of _0x5d57b0){let _0x3dadfb=_0x4ddf2c['model']['document']['getRoot'](_0x21f31d);_0x3dadfb&&_0x3dadfb['isAttached']()||(_0x3dadfb=_0x57566d['addRoot'](_0x21f31d));const _0x438508=_0x53f19f[_0x21f31d],_0x524c68=Object['keys'](_0x438508),_0x504afb=_0x5ef00d[_0x21f31d];for(const _0x22892a of _0x3dadfb['getAttributeKeys']())_0x524c68['includes'](_0x22892a)||_0x57566d['removeAttribute'](_0x22892a,_0x3dadfb);for(const _0xb54dc of _0x524c68)_0x57566d['setAttribute'](_0xb54dc,_0x53f19f[_0x21f31d][_0xb54dc],_0x3dadfb);_0x57566d['remove'](_0x57566d['createRangeIn'](_0x3dadfb)),_0x57566d['insert'](_0x4ddf2c['data']['parse'](_0x504afb,_0x3dadfb),_0x3dadfb,0x0);}});const _0x23d76c=g(_0x4ddf2c['locale'],'Restored');if(_0x2057f1['name'])_0x41c3e7=-0x1==_0x2057f1['name']['indexOf'](_0x23d76c)?_0x23d76c+':\x20'+_0x2057f1['name']:_0x2057f1['name'];else _0x41c3e7=_0x23d76c+':\x20'+(_0x2057f1['createdAt']['toLocaleDateString'](_0x4ddf2c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2057f1['createdAt']['toLocaleTimeString'](_0x4ddf2c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2ef1c2['saveRevision']({'name':_0x41c3e7}),_0x18565b['isReady']=!0x0,_0x4ddf2c['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};
|