@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250309.0 → 0.0.0-nightly-20250310.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/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x40dcb4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x24bd27){super(),this['id']=_0x24bd27['id']||_0x1916c0(),this['creator']=_0x24bd27['creator']||null,this['authors']=_0x24bd27['authors']||[],this['diffData']=_0x24bd27['diffData']||null,this['toVersion']=_0x24bd27['toVersion']||0x0,this['fromVersion']=_0x24bd27['fromVersion']||0x0,this['set']('name',_0x24bd27['name']||''),this['set']('createdAt',_0x24bd27['createdAt']||new Date()),this['set']('attributes',_0x24bd27['attributes']||{});}['setName'](_0x19dee4){this['_update']({'name':_0x19dee4});}['setAttribute'](_0x40284b,_0x44ab04){const _0x253881=_0x7494e5(this['attributes']);_0x178db5(_0x253881,_0x40284b,_0x44ab04),this['_update']({'attributes':_0x253881});}['removeAttribute'](_0x8d9ce5){const _0x478fb7=_0x7494e5(this['attributes']);_0x38bb2f(_0x478fb7,_0x8d9ce5),this['_update']({'attributes':_0x478fb7});}['_update'](_0x44cdba,_0x30f48b=!0x1){let _0x4af3a2=!0x1;const _0x3cd844={'id':this['id']},_0x5228ad=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x35e986 of _0x5228ad){const _0x542f76=_0x44cdba[_0x35e986];void 0x0!==_0x542f76&&_0x542f76!==this[_0x35e986]&&(this[_0x35e986]=_0x542f76,_0x3cd844[_0x35e986]=_0x542f76,_0x4af3a2=!0x0);}_0x4af3a2&&(_0x3cd844['authors']&&(_0x3cd844['authorsIds']=_0x3cd844['authors']['map'](_0xce5cdd=>_0xce5cdd['id']),delete _0x3cd844['authors']),this['fire']('_update',_0x3cd844,_0x30f48b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5d2eb8=>_0x5d2eb8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x657f6f{['_revisions'];static get['requires'](){return[_0x54c8db];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5649f6){super(_0x5649f6),this['_revisions']=new _0x3c6e40();}['afterInit'](){!async function(_0x2ffb4d){const _0x185cc6=_0x3b61eb([0x64,0x4c,0x4e,0x46,0x39,0x34,0x4a,0x6d,0x43,0x70,0x38,0x45,0x49,0x54,0x35,0x78,0x76,0x33,0x68,0x58,0x62,0x75,0x6f,0x50,0x51,0x71,0x67,0x7a,0x44,0x36,0x37,0x31,0x6a,0x59,0x6c,0x4d,0x6e,0x66,0x30,0x53,0x65,0x41,0x52,0x47,0x55,0x61,0x32,0x63,0x4f,0x4b,0x77,0x56,0x6b,0x48,0x74,0x5a,0x73,0x57,0x79,0x72,0x69,0x42]),_0x551ca9=0xeb829,_0x24b18c=0x396c8159,_0x23b3f1=0x396be0f9^_0x24b18c,_0x3b3a99=window[_0x3b61eb([0x44,0x61,0x74,0x65])][_0x3b61eb([0x6e,0x6f,0x77])](),_0x226912=_0x2ffb4d[_0x3b61eb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x229bd3=new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56e467=>{_0x226912[_0x3b61eb([0x6f,0x6e,0x63,0x65])](_0x3b61eb([0x72,0x65,0x61,0x64,0x79]),_0x56e467);}),_0x316ce5={[_0x3b61eb([0x6b,0x74,0x79])]:_0x3b61eb([0x45,0x43]),[_0x3b61eb([0x75,0x73,0x65])]:_0x3b61eb([0x73,0x69,0x67]),[_0x3b61eb([0x63,0x72,0x76])]:_0x3b61eb([0x50,0x2d,0x32,0x35,0x36]),[_0x3b61eb([0x78])]:_0x3b61eb([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]),[_0x3b61eb([0x79])]:_0x3b61eb([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]),[_0x3b61eb([0x61,0x6c,0x67])]:_0x3b61eb([0x45,0x53,0x32,0x35,0x36])},_0x24f5c8=_0x226912[_0x3b61eb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b61eb([0x67,0x65,0x74])](_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c5a2f(){let _0x91027e,_0x2877c2=null,_0x289175=null;try{if(_0x24f5c8==_0x3b61eb([0x47,0x50,0x4c]))return _0x3b61eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x91027e=_0x57274f(),!_0x91027e)return _0x3b61eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x91027e[_0x3b61eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x289175=_0x3161b4(_0x91027e[_0x3b61eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x91027e[_0x3b61eb([0x6a,0x74,0x69])])),await _0x55d88f()?_0x45f06e()?_0x481159()?_0x3b61eb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2beaed()?(_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b61eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2877c2=_0x569e87(_0x3b61eb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b61eb([0x74,0x72,0x69,0x61,0x6c])&&(_0x2877c2=_0x569e87(_0x3b61eb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x381793()):_0x3b61eb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b61eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b61eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x42ed17){return _0x3b61eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x481159(){const _0x2e25c0=[_0x3b61eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b61eb([0x74,0x72,0x69,0x61,0x6c])][_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b3a99/0x3e8:0xe10*_0x23b3f1;return _0x91027e[_0x3b61eb([0x65,0x78,0x70])]<_0x2e25c0;}function _0x45f06e(){const _0x17dbf7=_0x91027e[_0x3b61eb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x17dbf7)return!0x1;if(_0x17dbf7[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x2a])))return!0x0;if(_0x17dbf7[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x52,0x48])))return!0x0;if(_0x17dbf7[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x52,0x52,0x48]))){if(_0x303d0a())return!0x0;if(_0x141662()||_0x16c9ce())return!0x0;}return!0x1;}function _0x2beaed(){const _0x24f630=_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24f630||0x0==_0x24f630[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ca0e4}=new URL(window[_0x3b61eb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24f630[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ca0e4))return!0x0;const _0x5e5923=_0x1ca0e4[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e]));return _0x24f630[_0x3b61eb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b3a5c=>_0x3b3a5c[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x2a])))[_0x3b61eb([0x6d,0x61,0x70])](_0xcfc9d7=>_0xcfc9d7[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e])))[_0x3b61eb([0x73,0x6f,0x6d,0x65])](_0x41d514=>_0x5e5923[_0x3b61eb([0x65,0x76,0x65,0x72,0x79])]((_0xc8caf3,_0x55b82a)=>_0x41d514[_0x55b82a]===_0xc8caf3||_0x41d514[_0x55b82a]===_0x3b61eb([0x2a])));}function _0x381793(){return _0x2877c2&&_0x289175?new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x194f01,_0x2ab87b)=>{_0x2877c2[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x194f01,_0x2ab87b),_0x289175[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x549f33=>{_0x549f33!=_0x3b61eb([0x56,0x61,0x6c,0x69,0x64])&&_0x194f01(_0x549f33);},_0x2ab87b);}):_0x2877c2||_0x289175||_0x3b61eb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3161b4(_0x5c654c,_0x3375ba){return new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271208=>{if(_0x5bddeb())return _0x271208(_0x3b61eb([0x56,0x61,0x6c,0x69,0x64]));_0x585819(),_0x226912[_0x3b61eb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b61eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ebb9d=!0x1;const _0x490fd5=_0x1916c0();function _0x104565(_0x4430b0){return!!_0x4430b0&&(typeof _0x4430b0===_0x3b61eb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4430b0===_0x3b61eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4430b0[_0x3b61eb([0x74,0x68,0x65,0x6e])]===_0x3b61eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4430b0[_0x3b61eb([0x63,0x61,0x74,0x63,0x68])]===_0x3b61eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28b304(_0xfdda5){_0x8d6f34(_0xfdda5)[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x27b85f=>{if(!_0x27b85f||_0x27b85f[_0x3b61eb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b61eb([0x6f,0x6b]))return _0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27717a(_0x26e325(_0x490fd5+_0x3375ba))!=_0x27b85f[_0x3b61eb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b61eb([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x519699=>(_0x5c705b(),_0x519699),()=>{const _0x4c0683=_0x44bef9();return null==_0x4c0683?(_0x5c705b(),_0x3b61eb([0x56,0x61,0x6c,0x69,0x64])):_0x3b61eb(_0x3b3a99-_0x4c0683>(0x1d600559^_0x24b18c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x271208)[_0x3b61eb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x271208(_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47370e=0x395a6fd9^_0x24b18c;function _0x5c705b(){const _0x5757ad=_0x3b61eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x27717a(_0x26e325(_0x5c654c)),_0x51878d=_0x513022(_0x27717a(window[_0x3b61eb([0x4d,0x61,0x74,0x68])][_0x3b61eb([0x63,0x65,0x69,0x6c])](_0x3b3a99/_0x47370e)));window[_0x3b61eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b61eb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5757ad,_0x51878d);}function _0x44bef9(){const _0x328246=_0x3b61eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x27717a(_0x26e325(_0x5c654c)),_0x2362bd=window[_0x3b61eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b61eb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x328246);return _0x2362bd?window[_0x3b61eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x513022(_0x2362bd),0x10)*_0x47370e:null;}function _0x8d6f34(_0x2c8a75){return new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x406865,_0x744f87)=>{_0x2c8a75[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x406865,_0x744f87),window[_0x3b61eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x744f87,0x396d5599^_0x24b18c);});}}_0x226912[_0x3b61eb([0x6f,0x6e])](_0x3b61eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b3ba7,_0x3f45aa)=>{if(_0x3f45aa[0x0]!=_0x5c654c)return _0x271208(_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f45aa[0x1]={..._0x3f45aa[0x1],[_0x3b61eb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x490fd5};},{[_0x3b61eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b61eb([0x68,0x69,0x67,0x68])}),_0x226912[_0x3b61eb([0x6f,0x6e])](_0x3b61eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c6086=>{_0x104565(_0x3c6086[_0x3b61eb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ebb9d=!0x0,_0x28b304(_0x3c6086[_0x3b61eb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b61eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b61eb([0x6c,0x6f,0x77])}),_0x229bd3[_0x3b61eb([0x74,0x68,0x65,0x6e])](()=>{_0x4ebb9d||_0x271208(_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bddeb(){return _0x226912[_0x3b61eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b61eb([0x76,0x69,0x65,0x77])][_0x3b61eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b61eb([0x61,0x75,0x74,0x6f]);}function _0x585819(){_0x226912[_0x3b61eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b61eb([0x76,0x69,0x65,0x77])][_0x3b61eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b61eb([0x61,0x75,0x74,0x6f]);}}function _0x569e87(_0x2f4a85){const _0x237871=[new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dc5c3=>setTimeout(_0x3dc5c3,0x3965bf95^_0x24b18c)),_0x229bd3[_0x3b61eb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35dd70=>{const _0x35fb77=0x396c815e^_0x24b18c,_0x438b39=_0x2ffb4d[_0x3b61eb([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3bc670(){_0x438b39[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35fb77&&_0x35dd70();}_0x3bc670(),_0x438b39[_0x3b61eb([0x6f,0x6e])](_0x3b61eb([0x61,0x64,0x64]),_0x3bc670);})),new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdf2188=>{function _0x2bd679(){for(const _0x1a3744 in window)if(window[_0x3b61eb([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3b61eb([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1a3744))&&window[_0x1a3744]==_0x551ca9)return _0xdf2188();_0x226912[_0x3b61eb([0x73,0x74,0x61,0x74,0x65])]!=_0x3b61eb([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3b61eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bd679,0x396c92d1^_0x24b18c);}_0x355ba2(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2bd679();})];return window[_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b61eb([0x72,0x61,0x63,0x65])](_0x237871)[_0x3b61eb([0x74,0x68,0x65,0x6e])](()=>_0x2f4a85);}async function _0x5ed59c(){if(await _0x229bd3,_0x355ba2(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x381893=_0x2ffb4d[_0x3b61eb([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x18ec8e=_0x2ffb4d[_0x3b61eb([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])](_0x381893[_0x3b61eb([0x69,0x64])]),_0x27e3f3=_0x38d00e(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x27e3f3[_0x3b61eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x381893['id'],_0x18ec8e?_0x18ec8e['id']:null,!0x0),_0x27e3f3[_0x3b61eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x27e3f3[_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x27e3f3[_0x3b61eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x8ad599,void(_0x27e3f3[_0x3b61eb([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x8ad599);}if(_0x355ba2(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x36044d=_0x38d00e(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x36044d[_0x3b61eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x36044d[_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x36044d[_0x3b61eb([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x8ad599,_0x36044d[_0x3b61eb([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x8ad599;}_0x226912[_0x3b61eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b61eb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8ad599,_0x226912[_0x3b61eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b61eb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8ad599,_0x226912[_0x3b61eb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b61eb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x303d0a(){return _0x355ba2(_0x3b61eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x38d00e(_0x3b61eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b61eb([0x73,0x74,0x61,0x74,0x65])]==_0x3b61eb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x141662(){return _0x355ba2(_0x3b61eb([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 _0x16c9ce(){return _0x355ba2(_0x3b61eb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x485754(_0xaa8efc){const _0x2e3c4d=_0x257473();_0x226912[_0x2e3c4d]=_0x3b61eb([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])+_0xaa8efc,_0xaa8efc[_0x3b61eb([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3b61eb([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x257473()]=_0x551ca9),_0xaa8efc!=_0x3b61eb([0x56,0x61,0x6c,0x69,0x64])&&_0x5ed59c();}function _0x257473(){const _0x5ba080=window[_0x3b61eb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b61eb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b61eb([0x6e,0x6f,0x77])]())[_0x3b61eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b61eb([0x2e]),'');let _0x132c84=_0x3b61eb([0x64]);for(let _0x4d580c=0x0;_0x4d580c<_0x5ba080[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d580c+=0x2){let _0x33fa7c=window[_0x3b61eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ba080[_0x3b61eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d580c,_0x4d580c+0x2));_0x33fa7c>=_0x185cc6[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33fa7c-=_0x185cc6[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x132c84+=_0x185cc6[_0x33fa7c];}return _0x132c84;}function _0x57274f(){const _0xfc39f=_0x24f5c8[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e]));if(0x3!=_0xfc39f[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34f385(_0xfc39f[0x1]);function _0x34f385(_0x1481ce){const _0x3b8eea=_0x214a75(_0x1481ce);return _0x3b8eea&&_0x4f6d7f()?_0x3b8eea:null;function _0x4f6d7f(){const _0xebcb0f=_0x3b8eea[_0x3b61eb([0x6a,0x74,0x69])],_0x2984f9=window[_0x3b61eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xebcb0f[_0x3b61eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xebcb0f[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f6885={..._0x3b8eea,[_0x3b61eb([0x6a,0x74,0x69])]:_0xebcb0f[_0x3b61eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xebcb0f[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f6885[_0x3b61eb([0x76,0x63])],_0x26e325(_0x2f6885)==_0x2984f9;}}}async function _0x55d88f(){let _0x21a94e=!0x0;try{const _0x5a8238=_0x24f5c8[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e])),[_0x59716b,_0xfdf7b5,_0x596ca9]=_0x5a8238;return _0x517a15(_0x59716b),await _0x488d82(_0x59716b,_0xfdf7b5,_0x596ca9),_0x21a94e;}catch(_0x529acd){return!0x1;}function _0x517a15(_0x20df35){const _0x130d73=_0x214a75(_0x20df35);_0x130d73&&_0x130d73[_0x3b61eb([0x61,0x6c,0x67])]==_0x3b61eb([0x45,0x53,0x32,0x35,0x36])||(_0x21a94e=!0x1);}async function _0x488d82(_0x4280b3,_0x26f855,_0x262857){const _0x1c2200=window[_0x3b61eb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b61eb([0x66,0x72,0x6f,0x6d])](_0x5815cd(_0x262857),_0x135dda=>_0x135dda[_0x3b61eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10ce19=new window[(_0x3b61eb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b61eb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4280b3+_0x3b61eb([0x2e])+_0x26f855),_0x472661=window[_0x3b61eb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b61eb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x472661)return;const _0x2aa4f7=await _0x472661[_0x3b61eb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b61eb([0x6a,0x77,0x6b]),_0x316ce5,{[_0x3b61eb([0x6e,0x61,0x6d,0x65])]:_0x3b61eb([0x45,0x43,0x44,0x53,0x41]),[_0x3b61eb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b61eb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b61eb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x472661[_0x3b61eb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b61eb([0x6e,0x61,0x6d,0x65])]:_0x3b61eb([0x45,0x43,0x44,0x53,0x41]),[_0x3b61eb([0x68,0x61,0x73,0x68])]:{[_0x3b61eb([0x6e,0x61,0x6d,0x65])]:_0x3b61eb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2aa4f7,_0x1c2200,_0x10ce19)||(_0x21a94e=!0x1);}}function _0x214a75(_0x12a6a8){return _0x12a6a8[_0x3b61eb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b61eb([0x65,0x79]))?JSON[_0x3b61eb([0x70,0x61,0x72,0x73,0x65])](_0x5815cd(_0x12a6a8)):null;}function _0x5815cd(_0x4e70f7){return window[_0x3b61eb([0x61,0x74,0x6f,0x62])](_0x4e70f7[_0x3b61eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b61eb([0x2b]))[_0x3b61eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b61eb([0x2f])));}function _0x26e325(_0x3e9008){let _0x3f37a2=0x1505;function _0x3a04ae(_0x279e85){for(let _0x2f38c0=0x0;_0x2f38c0<_0x279e85[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f38c0++){const _0x26c1e4=_0x279e85[_0x3b61eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f38c0);_0x3f37a2=(_0x3f37a2<<0x5)+_0x3f37a2+_0x26c1e4,_0x3f37a2&=_0x3f37a2;}}function _0x5c1b96(_0x1bca83){Array[_0x3b61eb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1bca83)?_0x1bca83[_0x3b61eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c1b96):_0x1bca83&&typeof _0x1bca83==_0x3b61eb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b61eb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1bca83)[_0x3b61eb([0x73,0x6f,0x72,0x74])]()[_0x3b61eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37cfc6,_0x333a5a])=>{_0x3a04ae(_0x37cfc6),_0x5c1b96(_0x333a5a);}):_0x3a04ae(window[_0x3b61eb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1bca83));}return _0x5c1b96(_0x3e9008),_0x3f37a2>>>0x0;}function _0x27717a(_0x110f22){return _0x110f22[_0x3b61eb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b61eb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b61eb([0x30]));}function _0x513022(_0x901ac4){return _0x901ac4[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b61eb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b61eb([0x6a,0x6f,0x69,0x6e])]('');}function _0x355ba2(_0xf0eda5){return _0x226912[_0x3b61eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b61eb([0x68,0x61,0x73])](_0xf0eda5);}function _0x38d00e(_0x6c0573){return _0x226912[_0x3b61eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b61eb([0x67,0x65,0x74])](_0x6c0573);}function _0x8ad599(){}function _0x3b61eb(_0x4188ea){return _0x4188ea['map'](_0x37deb2=>String['fromCharCode'](_0x37deb2))['join']('');}_0x485754(await _0x4c5a2f());}(this);}['createRevision'](_0x14960e){const _0x58d661=this['editor']['plugins']['get']('Users');return new h({'id':_0x14960e['id'],'name':_0x14960e['name'],'creator':_0x14960e['creatorId']?_0x58d661['getUser'](_0x14960e['creatorId']):null,'diffData':_0x14960e['diffData']||_0x14960e['data'],'authors':_0x14960e['authorsIds']['map'](_0x5dd0d9=>_0x58d661['getUser'](_0x5dd0d9)),'createdAt':new Date(_0x14960e['createdAt']),'attributes':_0x14960e['attributes'],'fromVersion':_0x14960e['fromVersion'],'toVersion':_0x14960e['toVersion']});}['addRevision'](_0x2edbc,_0x3c620d=0x0){this['_revisions']['add'](_0x2edbc,_0x3c620d);}['getRevision'](_0x39f3e0){return this['_revisions']['get'](_0x39f3e0);}['getRevisions'](_0x4903b9={'toJSON':!0x1}){const _0x47f71c=Array['from'](this['_revisions']);return _0x47f71c['reverse'](),_0x4903b9['toJSON']?_0x47f71c['map'](_0x33d01c=>_0x33d01c['toJSON']()):_0x47f71c;}['getIndex'](_0x49365e){return this['_revisions']['getIndex'](_0x49365e);}['getEarlierVisibleRevision'](_0x4f4487){const [,_0x54c28d]=this['getRevisionsIterator'](_0x4f4487,{'direction':'earlier'});return _0x54c28d;}['getLaterVisibleRevision'](_0x16f169){const [,_0x48d63f]=this['getRevisionsIterator'](_0x16f169,{'direction':'later'});return _0x48d63f;}['getRevisionsInDiff'](_0x4de9db){const _0x550de5=[];for(const _0x5c5998 of this['getRevisionsIterator'](_0x4de9db['newRevisionId']))if(_0x550de5['push'](_0x5c5998),_0x5c5998['id']===_0x4de9db['oldRevisionId'])break;return _0x550de5;}*['getRevisionsIterator'](_0x3cf004,{direction:_0x51d83d='earlier',filter:_0x1c613c=()=>!0x0}={}){const _0x599ea9='earlier'===_0x51d83d?0x1:-0x1;let _0x3d1118=this['_revisions']['get'](_0x3cf004),_0xa0cdbc=this['getIndex'](_0x3d1118);for(yield _0x3d1118;_0x3d1118;){if(_0xa0cdbc+=_0x599ea9,_0x3d1118=this['getRevision'](_0xa0cdbc),!_0x3d1118)return;_0x1c613c(_0x3d1118)&&(yield _0x3d1118);}}}function m(_0x27170c,_0x10eb55,_0x4ee914){const t=_0x27170c['t'];switch(_0x10eb55){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'},_0x4ee914);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ee914);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'';}}const E={'c':_0x1523ca,'a':_0x287f2b,'e':_0x24a98b,'r':_0x333e25,'u':_0x486d16};class u extends _0x657f6f{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x54c8db,j,_0x26dbef];}constructor(_0x40a8fe){super(_0x40a8fe),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x522d11=_0x1916c0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x522d11},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['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4b3b1d=this['repository']['getRevision'](0x0),_0x300d1a=_0x4b3b1d&&null===_0x4b3b1d['creator']?_0x4b3b1d:null;if(this['_continueCurrentRevision']=!!_0x300d1a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4b9ebc=this['_source']['getCurrentRevisionId'](),_0x3058c7=this['repository']['getRevision'](_0x4b9ebc);if(_0x3058c7)this['_startingVersion']=_0x3058c7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x51f8ee=this['_source']['history']['_operations']['find'](_0x506710=>!_0x506710['_isInit']),_0x1a9734=_0x51f8ee?_0x51f8ee['baseVersion']:this['_source']['history']['version'];_0x4b3b1d?(_0x4b3b1d['toVersion']<_0x1a9734&&_0x4b3b1d['_update']({'toVersion':_0x1a9734}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x300d1a['id'],this['_startingVersion']=_0x300d1a['fromVersion']):(this['_startingVersion']=_0x4b3b1d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1a9734,this['_continueCurrentRevision']=!0x1);}}else _0x300d1a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x300d1a['toVersion'],this['editor']['model']['document']['history']['version']),_0x300d1a['fromVersion']===_0x300d1a['toVersion']?(0x0!==_0x300d1a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x300d1a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x300d1a['id'],this['_startingVersion']=_0x300d1a['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',_0x445bdd=>!_0x445bdd),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x289634=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x487ecb;for(const _0x1b547b in _0x289634){const _0x1c2b26=_0x1b547b,_0x104c6b=_0x289634[_0x1c2b26];if('revisionHistoryLicenseKeyValid'==_0x104c6b||'revisionHistoryLicenseKeyInvalid'==_0x104c6b||'revisionHistoryLicenseKeyExpired'==_0x104c6b||'revisionHistoryLicenseKeyDomainLimit'==_0x104c6b||'revisionHistoryLicenseKeyNotAllowed'==_0x104c6b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x104c6b||'revisionHistoryLicenseKeyTrialLimit'==_0x104c6b||'revisionHistoryLicenseKeyUsageLimit'==_0x104c6b){delete _0x289634[_0x1c2b26],_0x487ecb=_0x104c6b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x487ecb&&_0x289634['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x487ecb&&_0x289634['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x487ecb&&_0x289634['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x487ecb&&_0x289634['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x487ecb&&_0x289634['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x487ecb&&_0x289634['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x487ecb&&_0x289634['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1d8007=this['repository']['getRevision'](0x0),_0x3dd8ea=await this['getRevisionDocumentData'](_0x1d8007),_0x143af3=await this['getRevisionRootsAttributes'](_0x1d8007);this['_replaceEditorDataWithRevisionData'](_0x3dd8ea,_0x143af3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1857e4){this['_source']=_0x1857e4;}async['update'](){const _0x5e1155=await this['_source']['getLatestVersion']();if(_0x5e1155>this['currentRevision']['toVersion']){await this['_loadState']();const _0xce00a8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5e1155});_0xce00a8['authors']=_0xce00a8['authorsIds']['map'](_0x35b287=>this['editor']['plugins']['get']('Users')['getUser'](_0x35b287)),this['currentRevision']['_update'](_0xce00a8);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0xcbc496={},_0x2fb9f9=null){const _0x1d5e67=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2fb9f9>this['currentRevision']['toVersion']&&(_0x2fb9f9=null),null===_0x2fb9f9&&(_0x2fb9f9=await this['_source']['getLatestVersion']());const _0x156d9e=this['_getFromVersion'](_0x2fb9f9),_0x39cc13=this['buildRevisionData']({'from':_0x156d9e,'to':_0x2fb9f9});if(this['currentRevision']['toVersion']<_0x2fb9f9){const _0x25ddb5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2fb9f9,'to':_0x2fb9f9});_0x25ddb5['authors']=[],_0x25ddb5['authorsIds']=[],_0x25ddb5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x25ddb5,!0x0),delete _0x25ddb5['authors'],_0x1d5e67['push'](_0x25ddb5);}_0xcbc496['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xcbc496['name']=_0xcbc496['name']||null,_0xcbc496['id']=_0xcbc496['id']||_0x1916c0(),_0xcbc496={..._0xcbc496,..._0x39cc13};const _0x56ccea=this['addRevisionData'](_0xcbc496);_0x1d5e67['push'](_0xcbc496);const _0x19bdd4=this['repository']['getIndex'](_0x56ccea);if(0x0!==_0x19bdd4){const _0x36f95d=this['repository']['getRevision'](_0x19bdd4-0x1);if(_0x36f95d['fromVersion']!==_0x2fb9f9){const _0x5bf0ea=this['_revisionDataBuilder']['getData'](_0x2fb9f9,_0x36f95d['toVersion']),_0x33f4dc={'id':_0x36f95d['id'],'diffData':_0x5bf0ea['diffData'],'authorsIds':_0x5bf0ea['authorsIds'],'authors':_0x5bf0ea['authorsIds']['map'](_0xcaccdb=>this['editor']['plugins']['get']('Users')['getUser'](_0xcaccdb)),'fromVersion':_0x2fb9f9};_0x36f95d===this['currentRevision']&&(_0x33f4dc['createdAt']=new Date(_0xcbc496['createdAt']['getTime']()+0xa)),_0x36f95d['_update'](_0x33f4dc,!0x0),delete _0x33f4dc['authors'],_0x1d5e67['push'](_0x33f4dc);}}if(this['adapter']){for(const _0x17677d of _0x1d5e67)this['_bufferUpdate'](_0x17677d['id'],_0x17677d,!0x0);this['sendBufferedUpdates']();}return _0x56ccea;}['addRevisionData'](_0x297005){const _0x547916=this['repository']['createRevision'](_0x297005);return this['adapter']&&_0x547916['on']('_update',(_0x4f5522,_0x388bca,_0x44faa0)=>{_0x44faa0||(this['_bufferUpdate'](_0x388bca['id'],_0x388bca,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x547916,this['_findInsertionIndex'](_0x547916)),_0x547916;}async['getRevisionDocumentData'](_0x2dca0b){await this['_loadRevisionData'](_0x2dca0b);const _0x3c97b0={};for(const _0x1c689c in _0x2dca0b['diffData']){if(_0x2dca0b['diffData'][_0x1c689c]['attachChange']&&!_0x2dca0b['diffData'][_0x1c689c]['attachChange']['isAttached'])continue;const _0x101efc=this['_removeRevisionMarkers'](JSON['parse'](_0x2dca0b['diffData'][_0x1c689c]['insertions'])),_0x1685c7=this['editor']['editing']['view']['document'],_0x326018=new _0x42c523(_0x1685c7,_0x101efc['map'](_0x1cfbb4=>P(_0x1cfbb4,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3c97b0[_0x1c689c]=this['editor']['data']['processor']['toData'](_0x326018),this['editor']['data']['processor']['useFillerType']('default');}return _0x3c97b0;}async['getRevisionRootsAttributes'](_0x168cbb){await this['_loadRevisionData'](_0x168cbb);const _0x4c6d72={};for(const _0x49a5bf in _0x168cbb['diffData'])_0x168cbb['diffData'][_0x49a5bf]['attachChange']&&!_0x168cbb['diffData'][_0x49a5bf]['attachChange']['isAttached']||(_0x4c6d72[_0x49a5bf]=_0x168cbb['diffData'][_0x49a5bf]['attributesAfter']||{});return _0x4c6d72;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x476086=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4dd868=0x0;_0x4dd868<_0x476086['length'];_0x4dd868++){const _0x131a30=_0x476086[_0x4dd868];let _0x28a62c=!0x1;for(const _0x3b900b of Object['keys'](_0x131a30))void 0x0===_0x131a30[_0x3b900b]?delete _0x131a30[_0x3b900b]:'id'!==_0x3b900b&&(_0x28a62c=!0x0);_0x28a62c||(_0x476086[_0x4dd868]=null);}if(_0x476086=_0x476086['filter'](_0x3d6331=>null!==_0x3d6331),!_0x476086['length'])return;for(let _0x51d2f3=0x0;_0x51d2f3<_0x476086['length'];_0x51d2f3++){const _0x1e43f1=_0x476086[_0x51d2f3];void 0x0!==_0x1e43f1['fromVersion']&&void 0x0===_0x1e43f1['toVersion']&&(_0x1e43f1['toVersion']=this['repository']['getRevision'](_0x1e43f1['id'])['toVersion']),void 0x0!==_0x1e43f1['toVersion']&&void 0x0===_0x1e43f1['fromVersion']&&(_0x1e43f1['fromVersion']=this['repository']['getRevision'](_0x1e43f1['id'])['fromVersion']);}const _0x48f15d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x476086,_0x48f15d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x8b8c28=>{if(_0x8b8c28){for(const _0x42a4cf of _0x8b8c28)this['setRevisionData']({'id':_0x42a4cf['id'],'createdAt':_0x42a4cf['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x83e33b,_0x3bc21c){let _0x58d723=this['editor']['config']['get']('initialData'),_0x103176=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x58d723){_0x58d723={};for(const _0x458eab of this['editor']['model']['document']['getRootNames']())_0x58d723[_0x458eab]='';}if('string'==typeof _0x58d723&&(_0x58d723={'main':_0x58d723}),void 0x0===_0x103176){_0x103176={};for(const _0x5d7f88 of this['editor']['model']['document']['getRootNames']())_0x103176[_0x5d7f88]={};}let _0xe8705c=!0x1;const _0x230fc5=Object['keys'](_0x58d723),_0xdeb4e7=Object['keys'](_0x83e33b);for(const _0x2ede7a of _0x230fc5){if(_0x58d723[_0x2ede7a]!==_0x83e33b[_0x2ede7a]&&''!==_0x58d723[_0x2ede7a]['trim']()){_0xe8705c=!0x0;break;}if(!_0x1e33ae(_0x103176[_0x2ede7a],_0x3bc21c[_0x2ede7a])&&Object['keys'](_0x103176[_0x2ede7a])['length']>0x0){_0xe8705c=!0x0;break;}}_0xe8705c||(_0xe8705c=_0xdeb4e7['some'](_0x358eb0=>!this['editor']['model']['document']['getRoot'](_0x358eb0))),_0xe8705c&&_0x2f4f67('editor-initial-data-replaced-with-revision-data',{'editorData':_0x58d723,'editorRootsAttributes':_0x103176,'revisionData':_0x83e33b,'revisionRootsAttributes':_0x3bc21c}),this['editor']['config']['set']('initialData',_0x83e33b),this['editor']['config']['set']('rootsAttributes',_0x3bc21c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x36f928=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x36f928['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x28ee74){const _0x3694e6=this['repository']['getRevisions']();_0x3694e6['reverse']();let _0x2c5950=0x0;for(;_0x2c5950<_0x3694e6['length'];){const _0x1e74c8=_0x3694e6[_0x2c5950];if(_0x1e74c8===this['currentRevision']){_0x2c5950++;continue;}if(_0x1e74c8['id']===this['_initialRevisionId'])break;const _0x1c31c2=_0x28ee74['toVersion']-_0x1e74c8['toVersion']||_0x28ee74['fromVersion']-_0x1e74c8['fromVersion'];if(_0x1c31c2>0x0)break;if(_0x1c31c2<0x0)_0x2c5950++;else{if(!_0x28ee74['creator']&&_0x1e74c8['creator'])break;if(_0x1e74c8['creator']||!_0x28ee74['creator']){if(_0x28ee74['createdAt']>_0x1e74c8['createdAt'])break;_0x2c5950++;}else _0x2c5950++;}}return _0x2c5950;}['setRevisionData'](_0x46ad35){const _0x4c1b20=this['repository']['getRevision'](_0x46ad35['id']);if(_0x46ad35['createdAt']&&(_0x46ad35['createdAt']=new Date(_0x46ad35['createdAt'])),_0x46ad35['authorsIds']){const _0x28ebfc=this['editor']['plugins']['get']('Users');_0x46ad35['authors']=_0x46ad35['authorsIds']['map'](_0x53a43d=>_0x28ebfc['getUser'](_0x53a43d));}_0x4c1b20['_update'](_0x46ad35,!0x0);}['buildRevisionData']({revision:_0x96d7cc=null,from:_0x2797f4=null,to:_0x5b000f=null}){_0x2797f4=null!==_0x2797f4?_0x2797f4:_0x96d7cc['fromVersion'],_0x5b000f=null!==_0x5b000f?_0x5b000f:_0x96d7cc['toVersion'];const _0x19c76a=this['_revisionDataBuilder']['getData'](_0x2797f4,_0x5b000f),_0xb6c5e6={'diffData':_0x19c76a['diffData'],'authorsIds':_0x19c76a['authorsIds'],'fromVersion':_0x2797f4,'toVersion':_0x5b000f};if(!_0x96d7cc||_0x5b000f!==_0x96d7cc['toVersion']){const _0x4388c3=_0x5b000f-0x1,_0x59d8c0=this['_source']['history']['getOperation'](_0x4388c3);_0xb6c5e6['createdAt']=_0x59d8c0&&_0x59d8c0['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2797f4===this['_loadedStateData']['fromVersion']){for(const _0x2316db of this['_loadedStateData']['authors'])_0xb6c5e6['authorsIds']['includes'](_0x2316db['id'])||_0xb6c5e6['authorsIds']['push'](_0x2316db['id']);}return _0xb6c5e6;}['_loadRevisionData'](_0x556248){if(!_0x556248||_0x556248['diffData'])return Promise['resolve']();{const _0x299f8f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x299f8f,'revisionId':_0x556248['id']})['then'](_0x1b18a5=>{_0x556248['diffData']=_0x1b18a5['diffData'];});}}['_bufferUpdate'](_0x4764ea,_0x356790,_0x514283){if(this['_bufferedUpdates']['has'](_0x4764ea)){const _0xc72b78=this['_bufferedUpdates']['get'](_0x4764ea);_0x356790=_0x514283?{..._0xc72b78,..._0x356790}:{..._0x356790,..._0xc72b78};}this['_bufferedUpdates']['set'](_0x4764ea,_0x356790);}['_getFromVersion'](_0x11762c){const _0x1d1555=this['repository']['getRevisions']();_0x1d1555['reverse'](),_0x1d1555['shift']();const _0x2671e2=_0x1d1555['find'](_0x21a0a4=>_0x21a0a4['toVersion']<=_0x11762c)['toVersion'];return _0x2671e2<this['_startingVersion']?this['_startingVersion']:_0x2671e2;}['_createInitialRevision'](_0x265d84){const _0x13b799=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x13b799)this['_initialRevisionId']=_0x13b799['id'];else{const _0x3345bc=!this['editor']['model']['document']['roots']['find'](_0x1e9225=>this['editor']['model']['hasContent'](_0x1e9225)),_0x50ea35=this['editor']['plugins']['get']('Users')['me']['id'],_0x1df5cf=m(this['editor']['locale'],_0x3345bc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x265d84,'to':_0x265d84,'id':this['_initialRevisionId'],'name':_0x1df5cf,'creatorId':_0x50ea35});}}['_createCurrentRevision'](_0x1d8444){const _0x3cf838=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3cf838),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1d8444,'to':_0x1d8444,'id':_0x3cf838,'name':'','creatorId':null}));}['_makeRevision']({name:_0xb3e9cc,from:_0xfd048f,to:_0x1cd926,creatorId:_0x571823,id:_0x5d7128}){const _0x2f301f=this['buildRevisionData']({'from':_0xfd048f,'to':_0x1cd926});_0x2f301f['name']=_0xb3e9cc,_0x2f301f['creatorId']=_0x571823,_0x2f301f['id']=_0x5d7128;const _0x4f900e=this['addRevisionData'](_0x2f301f);return this['adapter']&&this['_bufferUpdate'](_0x2f301f['id'],_0x2f301f,!0x0),_0x4f900e;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4769ee){return(_0x4769ee=_0x4769ee['filter'](_0x5e1477=>!_0x5e1477['name']||'revision-start'!==_0x5e1477['name']&&'revision-end'!==_0x5e1477['name']))['forEach'](_0xb0f8eb=>{'string'!=typeof _0xb0f8eb&&(_0xb0f8eb['children']=this['_removeRevisionMarkers'](_0xb0f8eb['children']),_0xb0f8eb['attributes']=_0xb0f8eb['attributes']['filter'](_0x195a4d=>!_0x195a4d[0x0]['startsWith']('data-revision-')));}),_0x4769ee;}}function P(_0x3fa631,_0x26c461){const _0x1b30c7=_0x26c461['editing']['view']['document'];if('string'==typeof _0x3fa631)return new _0x39cc50(_0x1b30c7,_0x3fa631);{const _0x4b865e=_0x3fa631['children']['map'](_0xd879d8=>P(_0xd879d8,_0x26c461));return new(E[_0x3fa631['type']]||_0x1e70bc)(_0x1b30c7,_0x3fa631['name'],_0x3fa631['attributes'],_0x4b865e);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xc6f697){this['editor']=_0xc6f697,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'](_0x5a716b){this['source']=_0x5a716b;const _0x436df6=new Map(),_0x12c728=new Map(),_0x5cabac=this['editor']['model']['document']['roots']['map'](_0xb435c0=>_0xb435c0['rootName']);for(const _0x115a23 of _0x5cabac){const _0x3bda51=this['editor']['model']['document']['getRoot'](_0x115a23),_0x7154da=T(_0x3bda51);_0x436df6['set'](_0x115a23,_0x7154da),_0x12c728['set'](_0x115a23,Object['fromEntries'](_0x3bda51['getAttributes']()));}const _0x3ad175=Array['from'](this['editor']['model']['markers'])['map'](_0x476756=>[_0x476756['name'],_0x476756['getRange']()]),_0x107aaf=this['source']['version'];this['_saveMetaData'](_0x107aaf,_0x436df6,_0x3ad175,_0x12c728),this['_startingRevisionId']=this['_revisionId'];const _0x1f5df5=new Map(),_0x138e91=new Map();for(const _0x3cff7a of _0x5cabac){const _0x49ae81=F(_0x3cff7a);_0x1f5df5['set'](_0x3cff7a,_0x49ae81),_0x138e91['set'](_0x3cff7a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1f5df5,[],_0x138e91);}['getData'](_0x2fe3ce,_0x1cfdc6){if(this['_lastFrom']===_0x2fe3ce&&this['_lastTo']<=_0x1cfdc6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1cfdc6,!0x0);else{if(!this['_savedMetaData']['has'](_0x2fe3ce)){const _0x1daac3=this['_getPreviousFrom'](_0x2fe3ce);this['_calculateMetaData'](_0x1daac3,_0x2fe3ce,!0x1);}this['_calculateMetaData'](_0x2fe3ce,_0x1cfdc6,!0x0);}return this['_lastFrom']=_0x2fe3ce,this['_lastTo']=_0x1cfdc6,this['_getState']();}['loadState'](_0x222c2d){this['_reset'](),this['_lastFrom']=_0x222c2d['fromVersion'],this['_lastTo']=_0x222c2d['toVersion'];for(const _0x5b0d59 in _0x222c2d['diffData']){const _0x30c35c=_0x222c2d['diffData'][_0x5b0d59]['attachChange'],_0x51e772=_0x7494e5(_0x222c2d['diffData'][_0x5b0d59]['attributesBefore'])||{},_0x1aa4ba=this['_makeModelFromViewString'](_0x222c2d['diffData'][_0x5b0d59]['deletions']);_0x1aa4ba['rootName']=_0x5b0d59,_0x1aa4ba['_isAttached']=!_0x30c35c||!_0x30c35c['isAttached'],_0x1aa4ba['isAttached']=()=>_0x1aa4ba['_isAttached'],this['_baseRoots']['set'](_0x5b0d59,_0x1aa4ba),this['_baseRootsAttributes']['set'](_0x5b0d59,_0x51e772),_0x30c35c&&this['_touchedRoots']['set'](_0x5b0d59,_0x30c35c);const _0x506af4=this['_makeIdsRoot'](_0x1aa4ba);this['_baseIdsRoots']['set'](_0x5b0d59,_0x506af4);for(const [_0x2240fc,_0x410ac7]of _0x1aa4ba['markers']){if(!_0x2240fc['startsWith']('revision:'))continue;const _0x1ae12f=_0x2240fc['split'](':')[0x2];for(const _0x3998e7 of _0x410ac7['getWalker']({'singleCharacters':!0x0})){const _0x133f0b=this['_getVidAttributeName'](_0x3998e7),_0x5eccc5='elementEnd'==_0x3998e7['type']?_0x3998e7['previousPosition']['path']['slice'](0x0,-0x1):_0x3998e7['previousPosition']['path'],_0x42d647=_0x506af4['getNodeByPath'](_0x5eccc5)['getAttribute'](_0x133f0b);this['_touched']['set'](_0x42d647,{'userId':_0x1ae12f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x26af0b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4d628c=>!this['_touched']['has'](_0x4d628c));let _0x13428c=0x0;const _0x1cf96b=new Map();for(const _0x359d2f in _0x222c2d['diffData']){const _0x3c4fd3=_0x222c2d['diffData'][_0x359d2f]['attachChange'],_0x3324e4=_0x7494e5(_0x222c2d['diffData'][_0x359d2f]['attributesAfter'])||{},_0x1b3e67=this['_makeModelFromViewString'](_0x222c2d['diffData'][_0x359d2f]['insertions']);_0x1b3e67['rootName']=_0x359d2f,_0x1b3e67['_isAttached']=!_0x3c4fd3||_0x3c4fd3['isAttached'],_0x1b3e67['isAttached']=()=>_0x1b3e67['_isAttached'],this['_diffRoots']['set'](_0x359d2f,_0x1b3e67),this['_diffRootsAttributes']['set'](_0x359d2f,_0x3324e4);const _0x2986b2=this['_makeIdsRoot'](_0x1b3e67,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x359d2f,_0x2986b2),_0x1cf96b['set'](_0x359d2f,_0x1b3e67['isAttached']()?_0x3324e4:{});for(const [_0x7dcb1b,_0x318aa1]of _0x1b3e67['markers']){if(!_0x7dcb1b['startsWith']('revision:'))continue;const _0x69a76b=_0x7dcb1b['split'](':')[0x2];for(const _0x4ed330 of _0x318aa1['getWalker']({'singleCharacters':!0x0})){const _0x48ea19=this['_getVidAttributeName'](_0x4ed330),_0x580743=this['_revisionId']++,_0x4b1ff1='elementEnd'==_0x4ed330['type']?_0x4ed330['previousPosition']['path']['slice'](0x0,-0x1):_0x4ed330['previousPosition']['path'];_0x2986b2['getNodeByPath'](_0x4b1ff1)['_setAttribute'](_0x48ea19,_0x580743),this['_touched']['set'](_0x580743,{'userId':_0x69a76b});}}for(const _0x1dad44 of this['editor']['model']['createRangeIn'](_0x1b3e67)['getWalker']({'singleCharacters':!0x0})){const _0x15c82c=this['_getVidAttributeName'](_0x1dad44),_0x14d997='elementEnd'==_0x1dad44['type']?_0x1dad44['previousPosition']['path']['slice'](0x0,-0x1):_0x1dad44['previousPosition']['path'],_0x1e926f=_0x2986b2['getNodeByPath'](_0x14d997);_0x1e926f['getAttribute'](_0x15c82c)>0x0||_0x1e926f['_setAttribute'](_0x15c82c,_0x26af0b[_0x13428c++]);}for(const [_0x3d8ae9,_0x173389]of _0x1b3e67['markers'])_0x3d8ae9['startsWith']('revision:')||this['_markers']['set'](_0x3d8ae9,_0x173389);}const _0x3d2f17=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3d2f17),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3d2f17,0x1));const _0xc88af9=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xc88af9),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc88af9,0x1));const _0x5cd046=Array['from'](this['_diffRoots'])['map'](([_0x4e0080,_0x16b120])=>[_0x4e0080,T(_0x16b120)]);this['_saveMetaData'](this['_lastTo'],_0x5cd046,this['_markers'],_0x1cf96b);}['_makeModelFromViewString'](_0x352530){const _0x192f1c=JSON['parse'](_0x352530),_0x493928=this['editor']['editing']['view']['document'],_0xe938ef=new _0x42c523(_0x493928,_0x192f1c['map'](_0x1b6d66=>P(_0x1b6d66,this['editor'])));return this['editor']['data']['toModel'](_0xe938ef);}['_saveMetaData'](_0x5282e5,_0x423b8c,_0x26d5fa,_0x189fe2){const _0x56df79=new Map(_0x423b8c),_0x488612=new Map(_0x7494e5(_0x189fe2)),_0xb808af=new Map();for(const [_0x1db198,_0x39dba5]of _0x26d5fa)_0xb808af['set'](_0x1db198,{'start':_0x39dba5['start']['clone'](),'end':_0x39dba5['end']['clone'](),'rootName':_0x39dba5['root']['rootName']});this['_savedMetaData']['set'](_0x5282e5,{'roots':_0x56df79,'markers':_0xb808af,'rootsAttributes':_0x488612});}['_removeMetaData'](_0x5c3e61){this['_savedMetaData']['delete'](_0x5c3e61);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_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'](_0x4f252d,_0x1a8b83=null){let _0x429e40=null;_0x4f252d['is']('documentFragment')||(_0x429e40=new ut(_0x4f252d['name'],{'vid_start':null===_0x1a8b83?this['_revisionId']++:_0x1a8b83++}));const _0xc84167=[];for(const _0x2b4bdb of _0x4f252d['getChildren']())if(_0x2b4bdb['is']('element')){_0xc84167['push'](this['_makeIdsRoot'](_0x2b4bdb,_0x1a8b83));const _0x17349f=_0xc84167[_0xc84167['length']-0x1];null!==_0x1a8b83&&(_0x1a8b83=_0x17349f['is']('element','$text')?_0x17349f['getAttribute']('vid')+0x1:_0x17349f['getAttribute']('vid_end')+0x1);}else{for(let _0x4a522a=0x0;_0x4a522a<_0x2b4bdb['offsetSize'];_0x4a522a++)_0xc84167['push'](new ut('$text',{'vid':null===_0x1a8b83?this['_revisionId']++:_0x1a8b83++}));}if(_0x4f252d['is']('documentFragment')){const _0x528e83=F(_0x4f252d['rootName']);return _0x528e83['_insertChild'](0x0,_0xc84167),_0x528e83;}return _0x429e40['_setAttribute']('vid_end',null===_0x1a8b83?this['_revisionId']++:_0x1a8b83++),_0x429e40['_insertChild'](0x0,_0xc84167),_0x429e40;}['_calculateMetaData'](_0x5d745f,_0x103740,_0x2b6a11){this['_reset']();const {roots:_0x980c55,markers:_0x8fc7bd,rootsAttributes:_0xca1b8c}=this['_savedMetaData']['get'](_0x5d745f);this['_baseRoots']=new Map(_0x980c55),this['_baseRootsAttributes']=new Map(_0x7494e5(_0xca1b8c));for(const [_0x3934ea,_0x2798d7]of this['_baseRoots'])if('$graveyard'!==_0x3934ea&&(this['_diffRoots']['set'](_0x3934ea,T(_0x2798d7)),this['_diffRootsAttributes']=new Map(_0x7494e5(_0xca1b8c)),_0x2b6a11)){const _0x487970=this['_revisionId'];this['_idsRoots']['set'](_0x3934ea,this['_makeIdsRoot'](_0x2798d7)),this['_baseIdsRoots']['set'](_0x3934ea,this['_makeIdsRoot'](_0x2798d7,_0x487970));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2b6a11&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x53332a,_0x3a7f35]of _0x8fc7bd){const _0x484d8d=this['_baseRoots']['get'](_0x3a7f35['rootName']),_0x291da1=this['_diffRoots']['get'](_0x3a7f35['rootName']),_0x3b4969=new ft(this['_fixPosition'](_0x3a7f35['start'],_0x484d8d),this['_fixPosition'](_0x3a7f35['end'],_0x484d8d)),_0x5ad8aa=this['_fixRange'](_0x3b4969,_0x291da1);_0x484d8d['markers']['set'](_0x53332a,_0x3b4969),this['_markers']['set'](_0x53332a,_0x5ad8aa);}this['_applyOperations'](_0x5d745f,_0x103740,_0x2b6a11);}['_applyOperations'](_0x35c45d,_0x219011,_0x4290db){for(const _0x31ac3e of this['source']['getOperations'](_0x35c45d,_0x219011))this['_handleOperation'](_0x31ac3e,_0x4290db);for(const _0x40b590 of this['_diffRoots']['values']())_0x40b590['markers']['clear']();for(const [_0x359b5d,_0x468c3e]of this['_markers']){this['_diffRoots']['get'](_0x468c3e['root']['rootName'])['markers']['set'](_0x359b5d,_0x468c3e['clone']());}const _0x4a03d1=new Map(),_0x580c1a=new Map();for(const [_0x1ceda9,_0x208b5f]of this['_diffRoots'])_0x4a03d1['set'](_0x1ceda9,T(_0x208b5f)),_0x580c1a['set'](_0x1ceda9,this['_diffRootsAttributes']['get'](_0x1ceda9));this['_saveMetaData'](_0x219011,_0x4a03d1,this['_markers'],_0x580c1a);}['_getPreviousFrom'](_0x1c1a2e){const _0x771ea=Array['from'](this['_savedMetaData']['keys']());_0x771ea['sort']((_0x208d72,_0x28c998)=>_0x208d72-_0x28c998),_0x771ea['reverse']();for(const _0x1b5c75 of _0x771ea)if(_0x1b5c75<_0x1c1a2e)return _0x1b5c75;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x160bc4,_0x3798f1){const _0x570565=Array['from'](_0x3798f1['markers'])['map'](([_0x129032,_0x59a208])=>[_0x129032,this['_fixRange'](_0x59a208,_0x160bc4)]);_0x160bc4['markers']=new Map(_0x570565);}['_transformMarkers'](_0x48ad88){for(const _0x2be322 of this['_markers']['values']()){const _0x17b47a=_0x2be322['getTransformedByOperation'](_0x48ad88),_0x40ca1e=ft['_createFromRanges'](_0x17b47a);_0x2be322['start']=_0x40ca1e['start'],_0x2be322['end']=_0x40ca1e['end'];}}['_handleOperation'](_0x36d24b,_0x2eb3b9){if('addRoot'!=_0x36d24b['type']&&'detachRoot'!=_0x36d24b['type']){if('insert'==_0x36d24b['type']){const _0x4178d3=_0x36d24b['position']['root']['rootName'];this['_diffRoots']['has'](_0x4178d3)||(this['_diffRoots']['set'](_0x4178d3,F(_0x4178d3,!0x0)),this['_diffRootsAttributes']['set'](_0x4178d3,{}),_0x2eb3b9&&this['_idsRoots']['set'](_0x4178d3,F(_0x4178d3,!0x0)));}else{if('addRootAttribute'==_0x36d24b['type']||'removeRootAttribute'==_0x36d24b['type']||'changeRootAttribute'==_0x36d24b['type'])return void this['_handleRootAttributeOperation'](_0x36d24b);'marker'==_0x36d24b['type']&&this['_handleMarkerOperation'](_0x36d24b);}if('marker'!==_0x36d24b['type']){const _0x33129a=this['_cloneOperation'](_0x36d24b,this['_diffRoots']);_0x33129a['_execute'](),this['_transformMarkers'](_0x33129a);}if(_0x2eb3b9)switch(_0x36d24b['type']){case'insert':this['_handleInsertOperation'](_0x36d24b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x36d24b);break;case'merge':this['_handleMergeOperation'](_0x36d24b);break;case'split':this['_handleSplitOperation'](_0x36d24b);}}else this['_handleRootOperation'](_0x36d24b,_0x2eb3b9);}['_cloneOperation'](_0x44340c,_0x2f5223){const _0x4cdd59=_0x44340c['clone']();return _0x4cdd59['_authorId']=_0x44340c['_authorId'],this['_fixOperation'](_0x4cdd59,_0x2f5223),_0x4cdd59;}['_getBaseVids'](_0x7ad7a7){return _0x7ad7a7['map'](_0x716531=>{const _0x375f89=this['_getVidAttributeName'](_0x716531);return Number(_0x716531['item']['getAttribute'](_0x375f89));});}['_generateTape'](_0x22943e,_0x537dc9){if(_0x22943e['is']('element','$text'))_0x537dc9['push']({'item':_0x22943e,'type':'text'});else{_0x22943e['is']('element')&&_0x537dc9['push']({'item':_0x22943e,'type':'elementStart'});for(const _0x284378 of _0x22943e['getChildren']())this['_generateTape'](_0x284378,_0x537dc9);_0x22943e['is']('element')&&_0x537dc9['push']({'item':_0x22943e,'type':'elementEnd'});}return _0x537dc9;}['_getState'](){const _0x37b38d=new Map(this['_touched']),_0x4f1196=new Map(_0x37b38d),_0x55ebc5=new Map(),_0x26a2e7={'insertions':{},'deletions':{}},_0x1e68ad={'insertions':{},'deletions':{}},_0x2d4b36=new Map(),_0x1467ee=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1467ee['delete']('$graveyard');for(const _0x187d84 of _0x1467ee){const _0x171e3e=this['_diffRoots']['get'](_0x187d84)||F(_0x187d84,!0x1),_0x33ed05=this['_baseRoots']['get'](_0x187d84)||F(_0x187d84,!0x1);_0x171e3e['isAttached']()||_0x33ed05['isAttached']()?(_0x26a2e7['insertions'][_0x187d84]=T(_0x171e3e),_0x26a2e7['deletions'][_0x187d84]=T(_0x33ed05),this['_copyMarkers'](_0x26a2e7['deletions'][_0x187d84],_0x33ed05),this['_copyMarkers'](_0x26a2e7['insertions'][_0x187d84],_0x171e3e),_0x1e68ad['insertions'][_0x187d84]=this['_generateTape'](this['_idsRoots']['get'](_0x187d84),[]),_0x1e68ad['deletions'][_0x187d84]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x187d84)||F(_0x187d84,!0x1),[])):_0x1467ee['delete'](_0x187d84);}for(const _0x3a62bd of _0x1467ee){const _0x1999f6=_0x1e68ad['insertions'][_0x3a62bd];for(const _0x10307b of _0x1999f6){const _0x32f113=this['_getVidAttributeName'](_0x10307b),_0x29eb4f=_0x10307b['item']['getAttribute'](_0x32f113);_0x4f1196['delete'](_0x29eb4f),_0x29eb4f>=this['_startingRevisionId']&&_0x55ebc5['set'](_0x29eb4f,_0x37b38d['get'](_0x29eb4f));}}for(const _0x1071b2 of _0x1467ee){const _0x16d755=_0x1e68ad['insertions'][_0x1071b2],_0x8e5904=this['_getBaseVids'](_0x1e68ad['deletions'][_0x1071b2]);let _0x3ed0bf=0x0;for(const _0x22bb30 of _0x16d755){const _0x45fe24=this['_getVidAttributeName'](_0x22bb30),_0x3835a8=_0x22bb30['item']['getAttribute'](_0x45fe24);if(!_0x55ebc5['has'](_0x3835a8)&&!_0x2d4b36['has'](_0x3835a8)){if(_0x4f1196['has'](_0x3835a8))_0x3ed0bf++;else{if(_0x3835a8!=_0x8e5904[_0x3ed0bf]){const _0x3b6305=_0x37b38d['get'](_0x3835a8)||_0x37b38d['get'](_0x8e5904[_0x3ed0bf]);for(;_0x3835a8!=_0x8e5904[_0x3ed0bf];)_0x4f1196['has'](_0x8e5904[_0x3ed0bf])||(_0x2d4b36['set'](_0x8e5904[_0x3ed0bf],_0x3b6305),_0x37b38d['set'](_0x8e5904[_0x3ed0bf],_0x3b6305)),_0x3ed0bf++;}_0x3ed0bf++;}}}}for(const _0x4eb32b of _0x1467ee){const _0xe46e52=_0x1e68ad['insertions'][_0x4eb32b];for(const _0x5d2ac8 of _0xe46e52){const _0x35f8c1=this['_getVidAttributeName'](_0x5d2ac8),_0x3eafe8=_0x5d2ac8['item']['getAttribute'](_0x35f8c1);if(_0x2d4b36['has'](_0x3eafe8)){const _0x59e292=_0x2d4b36['get'](_0x3eafe8);_0x4f1196['has'](_0x3eafe8)||_0x4f1196['set'](_0x3eafe8,{..._0x59e292}),_0x55ebc5['set'](_0x3eafe8,{..._0x59e292});}}}for(const _0x38ae2c of _0x4f1196['keys']())_0x38ae2c>=this['_startingRevisionId']&&_0x4f1196['delete'](_0x38ae2c);const _0x5b244e=new Map();for(const _0x42d077 of _0x1467ee){let _0x192e69=_0x1e68ad['insertions'][_0x42d077];for(const _0x37e594 of _0x192e69)if(_0x37e594['item']['is']('element','tableCell')){const _0x5d77ae=this['_getVidAttributeName'](_0x37e594),_0x21fa94=_0x37e594['item']['getAttribute'](_0x5d77ae);if(_0x55ebc5['has'](_0x21fa94)){const _0x25b59a=_0x37e594['item']['parent']['parent']['getAttribute']('vid_start'),_0x4aa4a3=_0x5b244e['get'](_0x25b59a)||new Set();_0x4aa4a3['add'](_0x55ebc5['get'](_0x21fa94)['userId']),_0x5b244e['set'](_0x25b59a,_0x4aa4a3);}}_0x192e69=_0x1e68ad['deletions'][_0x42d077];for(const _0x577997 of _0x192e69)if(_0x577997['item']['is']('element','tableCell')){const _0xf6a1c3=this['_getVidAttributeName'](_0x577997),_0x6e5c85=_0x577997['item']['getAttribute'](_0xf6a1c3);if(_0x4f1196['has'](_0x6e5c85)){const _0x5e03c3=_0x577997['item']['parent']['parent']['getAttribute']('vid_start'),_0x1344db=_0x5b244e['get'](_0x5e03c3)||new Set();_0x1344db['add'](_0x4f1196['get'](_0x6e5c85)['userId']),_0x5b244e['set'](_0x5e03c3,_0x1344db);}}for(const _0x109f69 of _0x5b244e['keys']())(_0x55ebc5['has'](_0x109f69)||_0x4f1196['has'](_0x109f69))&&_0x5b244e['delete'](_0x109f69);}for(const _0x5bffbb of _0x1467ee){const _0x1193dc=_0x1e68ad['insertions'][_0x5bffbb];let _0x2da643=null,_0x58b06d=null;for(const _0x244bbe of _0x1193dc){const _0x396c8c=this['_getVidAttributeName'](_0x244bbe),_0x2d98eb=_0x244bbe['item']['getAttribute'](_0x396c8c),_0x2c7953=_0x5b244e['get'](_0x2d98eb);_0x2c7953&&'elementStart'==_0x244bbe['type']&&(_0x2da643=Array['from'](_0x2c7953)[0x0],_0x58b06d=_0x244bbe['item']['getAttribute']('vid_end')),_0x2da643&&(_0x4f1196['set'](_0x2d98eb,{'userId':_0x2da643}),_0x55ebc5['set'](_0x2d98eb,{'userId':_0x2da643})),_0x2d98eb==_0x58b06d&&(_0x2da643=null,_0x58b06d=null);}}const _0x42d1ee={},_0x3a5f29=new Set();for(const _0x5f3dcf of _0x1467ee){const _0x32c934=_0x26a2e7['deletions'][_0x5f3dcf],_0x2103c4=_0x26a2e7['insertions'][_0x5f3dcf];for(const {userId:_0x496fa9}of this['_touchedMarkers']['values']())null!==_0x496fa9&&_0x3a5f29['add'](_0x496fa9);for(const {userId:_0x2800a0}of this['_touchedRoots']['values']())null!==_0x2800a0&&_0x3a5f29['add'](_0x2800a0);this['_markChanges'](_0x2103c4,_0x1e68ad['insertions'][_0x5f3dcf],_0x55ebc5,'insertion',_0x3a5f29),this['_markChanges'](_0x32c934,_0x1e68ad['deletions'][_0x5f3dcf],_0x4f1196,'deletion',_0x3a5f29),_0x42d1ee[_0x5f3dcf]={'insertions':this['_prepareViewToSave'](_0x2103c4),'deletions':this['_prepareViewToSave'](_0x32c934),'attachChange':this['_touchedRoots']['get'](_0x5f3dcf)||null,'attributesBefore':_0x7494e5(this['_baseRootsAttributes']['get'](_0x5f3dcf))||{},'attributesAfter':_0x7494e5(this['_diffRootsAttributes']['get'](_0x5f3dcf))};}return{'diffData':_0x42d1ee,'authorsIds':Array['from'](_0x3a5f29)};}['_processRootBeforeSave'](_0x3bf7b4){for(const [,_0xc5aca8]of _0x3bf7b4['markers']){const _0x2a815a=_0xc5aca8['start']['getAncestors']()['filter'](_0x1c2fa8=>'tableCell'==_0x1c2fa8['name']);for(const _0xcc47f4 of _0x2a815a)0x1==_0xcc47f4['childCount']&&_0xcc47f4['getChild'](0x0)['is']('element','paragraph')&&_0xcc47f4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x469fd3){this['_processRootBeforeSave'](_0x469fd3);const _0x265f06=this['editor']['data']['toView'](_0x469fd3,{}),_0x5b7336=Array['from'](_0x265f06['getChildren']())['map'](_0x388518=>this['_getViewJson'](_0x388518));return JSON['stringify'](_0x5b7336);}['_getViewJson'](_0x1b7c21){if(_0x1b7c21['is']('$text'))return _0x1b7c21['data'];{const _0xc415c2=_0x1b7c21;return{'type':Object['keys'](E)['find'](_0x145eac=>_0x1b7c21 instanceof E[_0x145eac]),'name':_0xc415c2['name'],'attributes':Array['from'](_0xc415c2['getAttributes']()),'children':Array['from'](_0xc415c2['getChildren']())['map'](_0x131fcd=>this['_getViewJson'](_0x131fcd))};}}['_markChanges'](_0x4be8eb,_0x280fdf,_0x141101,_0x3fd663,_0x198319){let _0x12c655=null,_0x546ba5=null,_0x3c6451=0x0;const _0x14cba9=this['editor']['model'];for(let _0x7f6c61=0x0;_0x7f6c61<_0x280fdf['length'];_0x7f6c61++){const _0x162e9e=this['_getVidAttributeName'](_0x280fdf[_0x7f6c61]),_0x459864=_0x280fdf[_0x7f6c61]['item']['getAttribute'](_0x162e9e),_0x76d257=_0x141101['get'](_0x459864),_0x28df9f=_0x7f6c61==_0x280fdf['length']-0x1;(!_0x12c655&&_0x76d257&&(_0x12c655=_0x76d257,_0x546ba5=_0x280fdf[_0x7f6c61]),_0x12c655&&(!_0x76d257||_0x76d257['userId']!=_0x12c655['userId']))&&(_0x251de2(_0x76d257,B(_0x546ba5,_0x4be8eb,_0x14cba9),B(_0x280fdf[_0x7f6c61],_0x4be8eb,_0x14cba9)),_0x12c655=_0x76d257||null,_0x546ba5=_0x76d257?_0x280fdf[_0x7f6c61]:null),_0x12c655&&_0x28df9f&&_0x251de2(_0x76d257,B(_0x546ba5,_0x4be8eb,_0x14cba9),J(_0x280fdf[_0x7f6c61],_0x4be8eb,_0x14cba9));}function _0x251de2(_0x5be0f9,_0x184107,_0x1919c6){const _0x57c235=_0x12c655['userId'],_0x27987e='revision:'+_0x3fd663+':'+_0x57c235+':'+_0x3c6451++,_0x6b6e8c=_0x14cba9['createRange'](_0x184107,_0x1919c6);_0x4be8eb['markers']['set'](_0x27987e,_0x6b6e8c),null!==_0x57c235&&_0x198319['add'](_0x57c235);}}['_getVidAttributeName'](_0x273051){switch(_0x273051['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x8ed2f6,_0x2206a6){_0x8ed2f6['baseVersion']=null;for(const _0x1ed0e0 in _0x8ed2f6){const _0x4bd9d2=_0x8ed2f6[_0x1ed0e0];if(_0x4bd9d2 instanceof vt){const _0x29b636=_0x2206a6['get'](_0x4bd9d2['root']['rootName']);_0x8ed2f6[_0x1ed0e0]=this['_fixPosition'](_0x4bd9d2,_0x29b636);}if(_0x4bd9d2 instanceof ft){const _0x3d4644=_0x2206a6['get'](_0x4bd9d2['root']['rootName']);_0x8ed2f6[_0x1ed0e0]=this['_fixRange'](_0x4bd9d2,_0x3d4644);}'root'===_0x1ed0e0&&(_0x8ed2f6['root']=_0x2206a6['get'](_0x8ed2f6['root']['rootName']));}}['_fixRange'](_0x4b45ab,_0x4f75d7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4b45ab['start'],_0x4f75d7),this['_fixPosition'](_0x4b45ab['end'],_0x4f75d7));}['_fixPosition'](_0x86c923,_0x382a96){return this['editor']['model']['createPositionFromPath'](_0x382a96,_0x86c923['path'],_0x86c923['stickiness']);}['_handleInsertOperation'](_0x1af2c2){const _0x41e3ba=this['_idsRoots']['get'](_0x1af2c2['position']['root']['rootName']),_0x856675=this['_fixPosition'](_0x1af2c2['position'],_0x41e3ba),_0x2cdecb=null===_0x1af2c2['_authorId']?null:_0x1af2c2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41e100=_0x856675['parent'],_0x4b7be0=this['_revisionId'],_0x27c83d=[];for(const _0x42dd15 of _0x1af2c2['nodes'])if(_0x42dd15['is']('element'))_0x27c83d['push'](this['_makeIdsRoot'](_0x42dd15));else{for(let _0x27d904=0x0;_0x27d904<_0x42dd15['offsetSize'];_0x27d904++)_0x27c83d['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3d4aef=this['_revisionId'];for(let _0x4d20e6=_0x4b7be0;_0x4d20e6<_0x3d4aef;_0x4d20e6++)this['_touched']['set'](_0x4d20e6,{'userId':_0x2cdecb});_0x41e100['_insertChild'](_0x856675['offset'],_0x27c83d);}['_handleMoveOperation'](_0x2f2aa9){(_0x2f2aa9=this['_cloneOperation'](_0x2f2aa9,this['_idsRoots']))['_execute']();const _0x340c53=null===_0x2f2aa9['_authorId']?null:_0x2f2aa9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3076f0=_0x2f2aa9['getMovedRangeStart'](),_0x2e68b4=_0x3076f0['parent'],_0x4c758f=_0x3076f0['offset'];!function _0x2af333(_0x14bb82,_0x5e51af,_0x13dfb8,_0x10882c){for(let _0x38232f=_0x13dfb8;_0x38232f<_0x10882c;_0x38232f++){const _0x2eab43=_0x5e51af['getChild'](_0x38232f);_0x2eab43['is']('element','$text')?_0x14bb82['set'](_0x2eab43['getAttribute']('vid'),{'userId':_0x340c53}):(_0x14bb82['set'](_0x2eab43['getAttribute']('vid_start'),{'userId':_0x340c53}),_0x2af333(_0x14bb82,_0x2eab43,0x0,_0x2eab43['childCount']),_0x14bb82['set'](_0x2eab43['getAttribute']('vid_end'),{'userId':_0x340c53}));}}(this['_touched'],_0x2e68b4,_0x4c758f,_0x4c758f+_0x2f2aa9['howMany']);}['_handleMergeOperation'](_0x234b60){const _0x39f723=null===(_0x234b60=this['_cloneOperation'](_0x234b60,this['_idsRoots']))['_authorId']?null:_0x234b60['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28c4a2=_0x234b60['targetPosition']['parent'],_0x421729=_0x234b60['sourcePosition']['parent'],_0x322d5e=_0x28c4a2['getAttribute']('vid_end'),_0x49ae72=_0x421729['getAttribute']('vid_start');_0x28c4a2['_setAttribute']('vid_end',_0x421729['getAttribute']('vid_end')),_0x421729['_setAttribute']('vid_end',_0x322d5e),this['_touched']['set'](_0x49ae72,{'userId':_0x39f723}),this['_touched']['set'](_0x322d5e,{'userId':_0x39f723}),_0x234b60['_execute']();}['_handleSplitOperation'](_0x486fcb){const _0x5577c0=null===(_0x486fcb=this['_cloneOperation'](_0x486fcb,this['_idsRoots']))['_authorId']?null:_0x486fcb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x467ea3=_0x486fcb['graveyardPosition'],_0x3e3e22=_0x486fcb['splitPosition']['parent'];_0x486fcb['_execute']();const _0x215e4f=_0x3e3e22['getAttribute']('vid_end'),_0x3848db=_0x486fcb['insertionPosition']['nodeAfter'];if(_0x467ea3){const _0x414d69=_0x3848db['getAttribute']('vid_end'),_0x349fa9=_0x3e3e22['getAttribute']('vid_end');_0x3e3e22['_setAttribute']('vid_end',_0x414d69),_0x3848db['_setAttribute']('vid_end',_0x349fa9),this['_touched']['set'](_0x3e3e22['getAttribute']('vid_end'),{'userId':_0x5577c0}),this['_touched']['set'](_0x3848db['getAttribute']('vid_start'),{'userId':_0x5577c0});}else{const _0x28fe7b=this['_revisionId']++,_0x3673fd=this['_revisionId']++;_0x3e3e22['_setAttribute']('vid_end',_0x28fe7b),_0x3848db['_setAttribute']('vid_start',_0x3673fd),_0x3848db['_setAttribute']('vid_end',_0x215e4f),this['_touched']['set'](_0x28fe7b,{'userId':_0x5577c0}),this['_touched']['set'](_0x3673fd,{'userId':_0x5577c0});}}['_handleMarkerOperation'](_0x5a82d4){if(!_0x5a82d4['affectsData'])return;const _0x3945f2=(_0x5a82d4=this['_cloneOperation'](_0x5a82d4,this['_diffRoots']))['oldRange']?_0x5a82d4['oldRange']['root']:null,_0x128e4f=_0x5a82d4['newRange']?_0x5a82d4['newRange']['root']:null;_0x3945f2&&this['_markers']['delete'](_0x5a82d4['name']),_0x128e4f&&this['_markers']['set'](_0x5a82d4['name'],_0x5a82d4['newRange']['clone']());const _0x4a61e5=null===_0x5a82d4['_authorId']?null:_0x5a82d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51c9b7=_0x5a82d4['name'];if(!this['_touchedMarkers']['has'](_0x51c9b7))return void this['_touchedMarkers']['set'](_0x51c9b7,{'range':_0x5a82d4['oldRange'],'userId':_0x4a61e5});const _0x29e483=this['_touchedMarkers']['get'](_0x51c9b7),_0x4afc62=_0x29e483['range'],_0x4f54fb=_0x5a82d4['newRange'];null==_0x4afc62&&null==_0x4f54fb||_0x4afc62&&_0x4f54fb&&_0x4afc62['isEqual'](_0x4f54fb)?this['_touchedMarkers']['delete'](_0x5a82d4['name']):_0x29e483['userId']=_0x4a61e5;}['_handleRootOperation'](_0x1e09cb,_0x2f6c54){this['_diffRoots']['has'](_0x1e09cb['rootName'])?this['_diffRoots']['get'](_0x1e09cb['rootName'])['_isAttached']=_0x1e09cb['isAdd']:(this['_diffRoots']['set'](_0x1e09cb['rootName'],F(_0x1e09cb['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e09cb['rootName'],{}),_0x2f6c54&&this['_idsRoots']['set'](_0x1e09cb['rootName'],F(_0x1e09cb['rootName'],!0x0)));const _0x22681b=null===_0x1e09cb['_authorId']?null:_0x1e09cb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d1ab3=this['_touchedRoots']['get'](_0x1e09cb['rootName']);_0x4d1ab3&&_0x4d1ab3['userId']===_0x22681b?this['_touchedRoots']['delete'](_0x1e09cb['rootName']):this['_touchedRoots']['set'](_0x1e09cb['rootName'],{'userId':_0x22681b,'isAttached':_0x1e09cb['isAdd']});}['_handleRootAttributeOperation'](_0x3fe07d){const _0x3b2322=this['_diffRootsAttributes']['get'](_0x3fe07d['root']['rootName']);null===_0x3fe07d['newValue']?delete _0x3b2322[_0x3fe07d['key']]:_0x3b2322[_0x3fe07d['key']]=_0x3fe07d['newValue'];}}function T(_0x61015a){const _0x368d35=F(_0x61015a['rootName'],_0x61015a['isAttached']());for(const _0x3acf8d of _0x61015a['getChildren']()){const _0x5aa493=_0x3acf8d['_clone'](!0x0);_0x368d35['_appendChild'](_0x5aa493);}return _0x368d35;}function F(_0x2ca2b2,_0xa086cd=!0x0){const _0x3afb59=new gt();return _0x3afb59['rootName']=_0x2ca2b2,_0x3afb59['_isAttached']=_0xa086cd,_0x3afb59['isAttached']=()=>_0x3afb59['_isAttached'],_0x3afb59;}function B(_0x597610,_0x48593a,_0x4331c0){const _0x4a04dd='elementEnd'==_0x597610['type']?_0x4331c0['createPositionAt'](_0x597610['item'],'end'):_0x4331c0['createPositionBefore'](_0x597610['item']);return _0x4331c0['createPositionFromPath'](_0x48593a,_0x4a04dd['path'],_0x4a04dd['stickiness']);}function J(_0x2ccbdb,_0x45f8b6,_0x39534c){const _0x336e6d='elementStart'==_0x2ccbdb['type']?_0x39534c['createPositionAt'](_0x2ccbdb['item'],0x0):_0x39534c['createPositionAfter'](_0x2ccbdb['item']);return _0x39534c['createPositionFromPath'](_0x45f8b6,_0x336e6d['path'],_0x336e6d['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x31e7c1,_0x1a2bb4){super(_0x31e7c1),this['focusTracker']=new _0x99741a(),this['keystrokes']=new _0x243516(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1a2bb4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x407e11(this);}['render'](){super['render'](),_0x3c3987({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x24f07d=_0xcb9831=>_0xcb9831['stopPropagation']();this['keystrokes']['set']('arrowright',_0x24f07d),this['keystrokes']['set']('arrowleft',_0x24f07d),this['keystrokes']['set']('arrowup',_0x24f07d),this['keystrokes']['set']('arrowdown',_0x24f07d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x366929){this['revisionNameInputView']['fieldView']['element']['value']=_0x366929['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x57281d){const _0x2e3ba6=new _0x4f90d2(this['locale'],_0x1a5665),_0x464865=_0x2e3ba6['fieldView'];_0x464865['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1bd404=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x57281d&&(_0x1bd404+='\x20('+m(this['locale'],'optional')+')'),(_0x2e3ba6['label']=_0x1bd404,_0x464865['on']('input',()=>{this['revisionNameInputValue']=_0x464865['element']['value']['trim']();}),_0x2e3ba6);}}class f extends _0x657f6f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x34895c=this['editor'],_0x1bea14=_0x34895c['plugins']['get']('RevisionTracker');_0x34895c['ui']['componentFactory']['add']('revisionHistory',_0xffd878=>{const _0x1ee0d6=_0xabbbe1(_0xffd878),_0x316072=_0x1ee0d6['panelView']['children'],_0x178dfe=new _0x2f8ba0(_0xffd878),_0x401057=new _0x493811(_0xffd878),_0x3eabb5=new te(_0xffd878),_0x19f386=new _0x493811(_0xffd878),_0x29726b=new te(_0xffd878);return _0x1ee0d6['bind']('isEnabled')['to'](_0x1bea14,'isReady',_0x1bea14,'isEnabled',_0x34895c,'isReadOnly',(_0x5bb957,_0x59374f,_0x466a6b)=>_0x5bb957&&_0x59374f&&!_0x466a6b),_0x1ee0d6['buttonView']['set']({'icon':_0x3f127c,'label':m(_0xffd878,'Revision\x20history'),'tooltip':!0x0}),_0x3eabb5['set']({'label':m(_0xffd878,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3eabb5['bind']('isEnabled')['to'](_0x1bea14,'isReady',_0x1bea14,'isEnabled',_0x34895c,'isReadOnly',(_0x96ab80,_0x3efa1a,_0x551a3a)=>_0x96ab80&&_0x3efa1a&&!_0x551a3a),_0x3eabb5['on']('execute',()=>this['_showDialog']()),_0x29726b['set']({'label':m(_0xffd878,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x29726b['bind']('isEnabled')['to'](_0x1bea14,'isReady',_0x34895c,'isReadOnly',(_0x50440e,_0x4d7a93)=>_0x50440e&&!_0x4d7a93),_0x29726b['on']('execute',()=>{_0x34895c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1ee0d6['isOpen']=!0x1,_0x34895c['editing']['view']['focus']();}),_0x401057['children']['add'](_0x3eabb5),_0x19f386['children']['add'](_0x29726b),_0x178dfe['role']='menu',_0x178dfe['items']['addMany']([_0x401057,_0x19f386]),_0x316072['add'](_0x178dfe),_0x1ee0d6;}),_0x34895c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x13ba25=this['editor'],_0x49d624=_0x13ba25['locale'],_0xae0ec7=new _0x2f28bb(_0x49d624),_0x540f90=new _0x3ed85c(_0x49d624);_0xae0ec7['buttonView']['set']({'icon':_0x3f127c,'label':m(_0x49d624,'Revision\x20history')});const _0x1ff0af=new _0x8bb199(_0x49d624,_0xae0ec7),_0x15016e=new _0x4160e3(_0x49d624);_0x15016e['set']({'label':m(_0x49d624,'Save\x20current\x20revision')}),_0x15016e['delegate']('execute')['to'](_0xae0ec7),_0x15016e['on']('execute',()=>{this['_showDialog']();}),_0x1ff0af['children']['add'](_0x15016e),_0x540f90['items']['add'](_0x1ff0af);const _0x1ce26d=new _0x8bb199(_0x49d624,_0xae0ec7),_0x4b4a77=new _0x4160e3(_0x49d624);return _0x4b4a77['set']({'label':m(_0x49d624,'Open\x20revision\x20history')}),_0x4b4a77['delegate']('execute')['to'](_0xae0ec7),_0x4b4a77['on']('execute',()=>{_0x13ba25['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1ce26d['children']['add'](_0x4b4a77),_0x540f90['items']['add'](_0x1ce26d),_0xae0ec7['panelView']['children']['add'](_0x540f90),_0xae0ec7;}['_showDialog'](){const _0x134ccc=this['editor'],_0x2d10af=_0x134ccc['locale'],_0x279269=_0x134ccc['plugins']['get']('Dialog'),_0x32971f=_0x134ccc['plugins']['get']('RevisionTracker');function _0x5cf6c0(_0x546c8f){_0x134ccc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x546c8f['revisionName']?_0x546c8f['revisionNameInputView']['errorText']=m(_0x2d10af,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x134ccc['plugins']['get'](u)['saveRevision']({'name':_0x546c8f['revisionName']}),_0x279269['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5cf6c0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x279269['show']({'id':'revisionSave','title':m(_0x2d10af,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x134ccc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x279269['hide']()},{'label':m(_0x134ccc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4d9778){_0x4d9778['bind']('isEnabled')['to'](_0x32971f,'isReady',_0x32971f,'isEnabled',_0x134ccc,'isReadOnly',(_0x16778f,_0x364837,_0x561d6d)=>_0x16778f&&_0x364837&&!_0x561d6d);},'onExecute':()=>_0x5cf6c0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xbd2c90=this['editor'],_0x5af08e=_0xbd2c90['locale'];this['_saveRevisionFormView']=new hs(_0x5af08e,_0xbd2c90['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x3251fe,_0x365a97){super(_0x3251fe),this['_model']=_0x365a97,this['changeId']=_0x365a97['id'];const _0x33554e=this['bindTemplate'],_0x24dbd3=m(_0x3251fe,_0x365a97['data']['isSuggestion']?'Suggested\x20by':'add'==_0x365a97['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x365a97['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x33554e['to']('type',_0x4aaaad=>'ck-revision-change__'+_0x4aaaad)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x24dbd3}]},{'text':'\x20'+_0x365a97['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x40dcb4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5f39a1){super(),this['id']=_0x5f39a1['id']||_0x1916c0(),this['author']=_0x5f39a1['author'],this['type']=_0x5f39a1['type'],this['data']=_0x5f39a1['data']||{},this['rootName']=_0x5f39a1['rootName'],this['set']('createdAt',_0x5f39a1['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(_0x1207b0,_0x32d019){this['newRevisionId']=_0x1207b0,this['oldRevisionId']=_0x32d019,this['changes']=new _0x3c6e40();}['_setChanges'](_0x29424d){for(const _0xfc22b0 of _0x29424d)this['changes']['add'](_0xfc22b0);}}const Y={'c':_0x1523ca,'a':_0x287f2b,'e':_0x24a98b,'r':_0x333e25,'u':_0x486d16};class d extends _0x657f6f{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x54c8db,_0x431a50,j];}constructor(_0x5c5b68){super(_0x5c5b68),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),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',(_0x15d391,_0x175a61,_0xd664c4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x198557=>{for(const _0x5c4db4 of this['editor']['editing']['view']['document']['roots'])_0xd664c4?_0x198557['removeClass']('ck-editor__editable__overlay',_0x5c4db4):_0x198557['addClass']('ck-editor__editable__overlay',_0x5c4db4);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x495545=>null!==_0x495545),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4aa6ed,_0xa7ef69,_0x565b89)=>_0x4aa6ed&&_0x565b89?_0xa7ef69['changes']['getIndex'](_0x565b89):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4bb494,_0x33418f)=>_0x4bb494?_0x33418f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x431a50);}['init'](){const _0x562d86=this['editor'],_0x46bea7=new _t(_0x562d86,{'direction':'backward'}),_0x1db7c9=new _t(_0x562d86,{'direction':'forward'});(_0x562d86['commands']['add']('showPreviousChange',_0x46bea7),_0x562d86['commands']['add']('showNextChange',_0x1db7c9),_0x562d86['commands']['add']('restoreRevision',new wt(_0x562d86)),this['on']('change:numberOfChanges',()=>{_0x46bea7['refresh'](),_0x1db7c9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x562d86['enableReadOnlyMode']('revision-viewer'),_0x562d86['plugins']['has']('WidgetToolbarRepository'))&&_0x562d86['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x163a52){await this['loadRevisionData'](_0x163a52);const _0x35288b={};for(const _0x21fc3c in _0x163a52['diffData']){if(_0x163a52['diffData'][_0x21fc3c]['attachChange']&&!_0x163a52['diffData'][_0x21fc3c]['attachChange']['isAttached'])continue;const _0x568894=this['_removeRevisionMarkers'](JSON['parse'](_0x163a52['diffData'][_0x21fc3c]['insertions'])),_0xf977e6=this['editor']['editing']['view']['document'],_0x36ce24=new _0x42c523(_0xf977e6,_0x568894['map'](_0x2372b9=>this['_getViewObj'](_0x2372b9)));this['editor']['data']['processor']['useFillerType']('marked'),_0x35288b[_0x21fc3c]=this['editor']['data']['processor']['toData'](_0x36ce24),this['editor']['data']['processor']['useFillerType']('default');}return _0x35288b;}async['getRevisionRootsAttributes'](_0x2d5e68){await this['loadRevisionData'](_0x2d5e68);const _0x2697c1={};for(const _0x14ed57 in _0x2d5e68['diffData'])_0x2d5e68['diffData'][_0x14ed57]['attachChange']&&!_0x2d5e68['diffData'][_0x14ed57]['attachChange']['isAttached']||(_0x2697c1[_0x14ed57]=_0x2d5e68['diffData'][_0x14ed57]['attributesAfter']||{});return _0x2697c1;}['_removeRevisionMarkers'](_0x45a696){return(_0x45a696=_0x45a696['filter'](_0x33af7c=>!_0x33af7c['name']||'revision-start'!==_0x33af7c['name']&&'revision-end'!==_0x33af7c['name']))['forEach'](_0x3245b8=>{'string'!=typeof _0x3245b8&&(_0x3245b8['children']=this['_removeRevisionMarkers'](_0x3245b8['children']),_0x3245b8['attributes']=_0x3245b8['attributes']['filter'](_0x2c0138=>!_0x2c0138[0x0]['startsWith']('data-revision-')));}),_0x45a696;}async['compare'](_0x160d5b,_0x115ea7,_0x55b3bf=!0x1){if(!this['isEnabled'])return;const _0x5275d9=this['diff'],_0x385762=this['repository'],_0x142f02='string'==typeof _0x160d5b?_0x385762['getRevision'](_0x160d5b):_0x160d5b,_0x411fb9='string'==typeof _0x115ea7?_0x385762['getRevision'](_0x115ea7):_0x115ea7,_0x55d32f=_0x142f02['id'],_0x72264f=_0x411fb9?_0x411fb9['id']:null;if(!_0x55b3bf&&this['diff']&&this['diff']['newRevisionId']===_0x55d32f&&this['diff']['oldRevisionId']===_0x72264f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x55d32f,_0x72264f);const _0x1c8fdf=this['_getRevisionsRange'](_0x142f02,_0x411fb9,!0x0)['map'](_0x2cf2e2=>this['loadRevisionData'](_0x2cf2e2));return _0x1c8fdf['push'](new Promise(_0x3d56ff=>{setTimeout(_0x3d56ff,0x14);})),Promise['all'](_0x1c8fdf)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3222a2=this['_getDiff'](_0x55d32f,_0x72264f);for(const _0x40162c of _0x3222a2['changes'])this['_changeIdToChange']['set'](_0x40162c['id'],_0x40162c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x9bac83=>{for(const _0x1036a4 of this['editor']['model']['document']['getRootNames']())_0x9bac83['detachRoot'](_0x1036a4);for(const _0x4e462d of Object['keys'](_0x3222a2['model'])){const _0x19fa0e=_0x9bac83['addRoot'](_0x4e462d);for(const _0x1805e8 of Object['keys'](_0x3222a2['attributes'][_0x4e462d]))_0x9bac83['setAttribute'](_0x1805e8,_0x3222a2['attributes'][_0x4e462d][_0x1805e8],_0x19fa0e);_0x9bac83['insert'](_0x3222a2['model'][_0x4e462d],_0x19fa0e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3222a2['changes'])),this['isReady']=!0x0;})['catch'](_0x57e440=>{console['error'](_0x57e440),this['_cleanUp'](),_0x5275d9&&(this['diff']=_0x5275d9),this['isReady']=!0x0;});}['addRevisionData'](_0x20d8b5,_0x481a92){const _0xa0adf5=this['repository']['createRevision'](_0x20d8b5);return _0xa0adf5['on']('_update',(_0x1e1879,_0x4c456e,_0x4fd453)=>_0x481a92(_0x4c456e,_0x4fd453,_0xa0adf5)),this['repository']['addRevision'](_0xa0adf5),_0xa0adf5;}['loadRevisionData'](_0x291fd3){if(!_0x291fd3||_0x291fd3['diffData'])return Promise['resolve']();{const _0x3c866f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3c866f,'revisionId':_0x291fd3['id']})['then'](_0x503cbb=>{_0x291fd3['_update']({'diffData':_0x503cbb['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5132a9=>{for(const _0x3ac5d9 of this['editor']['model']['document']['getRootNames']())_0x5132a9['detachRoot'](_0x3ac5d9);});}['_sortAndFilterDiffChanges'](_0x992f3){const _0x591a4a=[],_0x2c5a35=new Map();for(const _0x18af65 of this['editor']['model']['document']['getRootNames']()){const _0x2527b7=this['editor']['editing']['view']['getDomRoot'](_0x18af65);if(!_0x2527b7)continue;const _0x2b1597=_0x2527b7['getClientRects']()['item'](0x0);_0x2b1597&&(_0x591a4a['push'](_0x18af65),_0x2c5a35['set'](_0x18af65,_0x2b1597));}return _0x591a4a['sort']((_0x14a90f,_0x2b607d)=>{const _0x4babc6=_0x2c5a35['get'](_0x14a90f),_0x13340d=_0x2c5a35['get'](_0x2b607d);return _0x4babc6['y']-_0x13340d['y']||_0x4babc6['x']-_0x13340d['x'];}),(_0x992f3=_0x992f3['filter'](_0x446d64=>_0x591a4a['includes'](_0x446d64['rootName'])))['sort']((_0xaebfc2,_0x330728)=>_0x591a4a['indexOf'](_0xaebfc2['rootName'])-_0x591a4a['indexOf'](_0x330728['rootName'])),_0x992f3;}['_makeTape'](_0x14fd67){const _0x20394f=Array['from'](_0x14fd67['markers'])['filter'](([_0x43167f,_0x404863])=>_0x43167f['startsWith']('revision:')&&!_0x404863['isCollapsed']),_0x24be0f=Array['from'](this['editor']['model']['createRangeIn'](_0x14fd67)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x20394f['length'])for(const _0x462240 of _0x24be0f){const [_0x48d7c8,_0x58857a]=_0x20394f[0x0],[,_0x31cc22,_0x56f7e3]=_0x48d7c8['split'](':');if(_0x58857a['end']['isEqual'](_0x462240['nextPosition'])&&_0x20394f['shift'](),(_0x462240['previousPosition']['isEqual'](_0x58857a['start'])||_0x462240['previousPosition']['isAfter'](_0x58857a['start']))&&('insertion'==_0x31cc22?_0x462240['isAdded']={'userId':_0x56f7e3}:'deletion'==_0x31cc22&&(_0x462240['isRemoved']={'userId':_0x56f7e3})),0x0==_0x20394f['length'])break;}return _0x24be0f;}['_refreshStartEndIndex'](_0x3bde7c){const _0x22a3a1=new Map();for(let _0x315015=0x0;_0x315015<_0x3bde7c['length'];_0x315015++)'text'===_0x3bde7c[_0x315015]['type']?(_0x3bde7c[_0x315015]['item']['startIndex']=_0x315015,_0x3bde7c[_0x315015]['item']['endIndex']=_0x315015):('elementStart'===_0x3bde7c[_0x315015]['type']?_0x3bde7c[_0x315015]['item']['startIndex']=_0x315015:'elementEnd'===_0x3bde7c[_0x315015]['type']&&(_0x3bde7c[_0x315015]['item']['endIndex']=_0x315015),_0x22a3a1['set'](_0x3bde7c[_0x315015]['id'],_0x315015));for(const _0x5e024d of _0x22a3a1['values']())'elementStart'===_0x3bde7c[_0x5e024d]['type']?_0x3bde7c[_0x5e024d]['item']['endIndex']=_0x22a3a1['get'](_0x3bde7c[_0x5e024d]['pairId']):'elementEnd'===_0x3bde7c[_0x5e024d]['type']&&(_0x3bde7c[_0x5e024d]['item']['startIndex']=_0x22a3a1['get'](_0x3bde7c[_0x5e024d]['pairId']));}['_processTape'](_0x1387ca){for(let _0x2fc3dd=0x0;_0x2fc3dd<_0x1387ca['length'];_0x2fc3dd++){if('elementStart'===_0x1387ca[_0x2fc3dd]['type'])_0x1387ca[_0x2fc3dd]['item']['startIndex']=_0x2fc3dd;else{if('elementEnd'===_0x1387ca[_0x2fc3dd]['type']){_0x1387ca[_0x2fc3dd]['item']['endIndex']=_0x2fc3dd;const _0x5dad1b=_0x1387ca[_0x2fc3dd]['item']['startIndex'];_0x1387ca[_0x5dad1b]['pairId']=_0x1387ca[_0x2fc3dd]['id'],_0x1387ca[_0x2fc3dd]['pairId']=_0x1387ca[_0x5dad1b]['id'];}else _0x1387ca[_0x2fc3dd]['item']['startIndex']=_0x2fc3dd,_0x1387ca[_0x2fc3dd]['item']['endIndex']=_0x2fc3dd,_0x1387ca[_0x2fc3dd]['pairId']=null;}_0x1387ca[_0x2fc3dd]['markersStart']||(_0x1387ca[_0x2fc3dd]['markersStart']=[],_0x1387ca[_0x2fc3dd]['markersEnd']=[]);}}['_markInsertions'](_0x237477,_0xa7c2f9){const _0x49774e=_0x237477['filter'](_0xd6fa89=>!_0xd6fa89['isAdded']);for(let _0xbda576=0x0;_0xbda576<_0xa7c2f9['length'];_0xbda576++)_0xa7c2f9[_0xbda576]['isAdded']&&(_0x49774e[_0xbda576]['isAdded']=_0xa7c2f9[_0xbda576]['isAdded']);}['_makeModelFromViewString'](_0x489d33){const _0x390707=JSON['parse'](_0x489d33),_0x4251c2=this['editor']['editing']['view']['document'],_0x201585=new _0x42c523(_0x4251c2,_0x390707['map'](_0x5297df=>this['_getViewObj'](_0x5297df)));return this['editor']['data']['toModel'](_0x201585);}['_getViewObj'](_0x4e7e6a){const _0x2f0873=this['editor']['editing']['view']['document'];if('string'==typeof _0x4e7e6a)return new _0x39cc50(_0x2f0873,_0x4e7e6a);{const _0x4f3935=_0x4e7e6a['children']['map'](_0x4283d4=>this['_getViewObj'](_0x4283d4));return new(Y[_0x4e7e6a['type']]||_0x1e70bc)(_0x2f0873,_0x4e7e6a['name'],_0x4e7e6a['attributes'],_0x4f3935);}}['_getDiff'](_0x46ff85,_0x41ec5d=null){const _0x189d6c=this['repository']['getRevision'](_0x46ff85),_0x32e220=_0x41ec5d?this['repository']['getRevision'](_0x41ec5d):null,_0x421ac5=this['_getRevisionsRange'](_0x189d6c,_0x32e220),_0x919671=_0x421ac5[_0x421ac5['length']-0x1],_0x396718=new Map(),_0x48f199={'model':{},'attributes':{},'changes':[]},_0x907305=new Set(),_0x4ae5bb=new Map();for(let _0x362ad5=_0x421ac5['length']-0x1;_0x362ad5>=0x0;_0x362ad5--){const _0x58b38a=_0x421ac5[_0x362ad5];for(const _0x1a663a of Object['keys'](_0x58b38a['diffData']))if(_0x58b38a['diffData'][_0x1a663a]['attachChange']){const _0x26e06b=_0x58b38a['diffData'][_0x1a663a]['attachChange'];_0x26e06b['isAttached']?(_0x907305['add'](_0x1a663a),_0x4ae5bb['has'](_0x1a663a)&&_0x4ae5bb['get'](_0x1a663a)['userId']==_0x26e06b['userId']?_0x4ae5bb['delete'](_0x1a663a):_0x4ae5bb['set'](_0x1a663a,_0x26e06b)):_0x4ae5bb['has'](_0x1a663a)?(_0x907305['delete'](_0x1a663a),_0x4ae5bb['delete'](_0x1a663a)):(_0x907305['add'](_0x1a663a),_0x4ae5bb['set'](_0x1a663a,_0x26e06b));}else _0x907305['add'](_0x1a663a);}for(const _0x533727 of _0x907305){const _0x49296e=_0x4ae5bb['has'](_0x533727)&&!_0x4ae5bb['get'](_0x533727)['isAttached'];let _0x25b595=_0x49296e?_0x421ac5['length']-0x1:0x0;const _0x74e46a=_0x49296e?-0x1:0x1;for(;_0x421ac5[_0x25b595];){const _0x3030b3=_0x421ac5[_0x25b595];if(_0x3030b3['diffData'][_0x533727]){const _0x4dede2=_0x49296e?_0x3030b3['diffData'][_0x533727]['attributesBefore']:_0x3030b3['diffData'][_0x533727]['attributesAfter'];_0x48f199['attributes'][_0x533727]=_0x4dede2?_0x7494e5(_0x4dede2):{};break;}_0x25b595+=_0x74e46a;}}for(const _0x22efa5 of _0x421ac5){_0x22efa5['model']={};for(const _0x4866a6 of _0x22efa5['authors'])_0x396718['set'](_0x4866a6['id'],_0x4866a6);for(const _0x996d15 of _0x907305){const _0x9585c6=_0x22efa5['diffData'][_0x996d15]?_0x22efa5['diffData'][_0x996d15]['insertions']:'[]',_0x2faabc=_0x22efa5['diffData'][_0x996d15]?_0x22efa5['diffData'][_0x996d15]['deletions']:'[]';_0x22efa5['model'][_0x996d15]={'insertions':this['_makeModelFromViewString'](_0x9585c6),'deletions':this['_makeModelFromViewString'](_0x2faabc)};}}for(const _0x2fb85c of _0x907305){let _0x5a6134=null,_0x4aeb18=0x0;const _0x429801=new Map(Array['from'](_0x189d6c['model'][_0x2fb85c]['insertions']['markers'])['filter'](([_0x4370f8])=>!_0x4370f8['startsWith']('revision:')));let _0x582db7=0x0;for(const _0x504e1b of _0x421ac5){const _0x401020=this['_makeTape'](_0x504e1b['model'][_0x2fb85c]['insertions']);_0x504e1b==_0x189d6c?(_0x5a6134=_0x401020,_0x4aeb18=_0x5a6134['length'],_0x5a6134['forEach'](_0x58b2c8=>{_0x58b2c8['id']=_0x582db7++;}),this['_processTape'](_0x5a6134)):this['_markInsertions'](_0x5a6134,_0x401020);const _0x111f96=_0x5a6134['filter'](_0x544dc1=>!_0x544dc1['isAdded'])['map'](_0x2d3ea0=>_0x2d3ea0['id']);let _0x5c35b2=0x0;const _0x578a65=this['_makeTape'](_0x504e1b['model'][_0x2fb85c]['deletions']);_0x578a65['forEach'](_0x3d5387=>{_0x3d5387['isRemoved']?_0x3d5387['id']=_0x4aeb18++:_0x3d5387['id']=_0x111f96[_0x5c35b2++];}),this['_processTape'](_0x578a65),this['_setDistance'](_0x5a6134,'isAdded'),this['_setDistance'](_0x578a65,'isRemoved'),_0x504e1b==_0x189d6c&&this['_markMarkers'](_0x5a6134,_0x429801),_0x5a6134=this['_joinTapes'](_0x5a6134,_0x578a65),this['_refreshStartEndIndex'](_0x5a6134),this['_setDistance'](_0x5a6134,'isRemoved');}_0x5a6134=_0x5a6134['filter'](_0x5c959c=>!(_0x5c959c['isAdded']&&_0x5c959c['isRemoved']));const _0x3ca659=new Map(_0x919671['model'][_0x2fb85c]['deletions']['markers']),_0xb96cf9=new Set(_0x429801['keys']());for(const _0x3fe412 of _0x3ca659['keys']())_0xb96cf9['delete'](_0x3fe412);this['_markSuggestions'](_0x5a6134,_0xb96cf9),this['_fixObsoleteTags'](_0x5a6134),_0x5a6134=this['_removeMissingPairs'](_0x5a6134),_0x5a6134=this['_markMismatchedRemovedTags'](_0x5a6134),_0x5a6134=this['_removeUnsupportedChanges'](_0x5a6134);const {root:_0x9d388f,changes:_0x446e41}=this['_makeModelFromTape'](_0x5a6134,_0x396718,_0x2fb85c);_0x48f199['model'][_0x2fb85c]=_0x9d388f;const _0x46b34a=_0x4ae5bb['get'](_0x2fb85c);if(_0x46b34a){const _0x57e817=_0x396718['get'](_0x46b34a['userId']),_0x14fcbd=new r({'author':_0x57e817,'type':_0x46b34a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2fb85c});_0x446e41['unshift'](_0x14fcbd),_0x48f199['attributes'][_0x2fb85c]['revisionHistoryAttachChange']=_0x14fcbd['id'];}_0x48f199['changes']=_0x48f199['changes']['concat'](_0x446e41);}return _0x48f199;}['_markMarkers'](_0x11c5d1,_0x301fc5){for(let _0x5df2b6=0x0;_0x5df2b6<_0x11c5d1['length'];_0x5df2b6++)for(const [_0x56e7aa,_0x19fffd]of _0x301fc5)_0x19fffd['start']['isEqual'](_0x11c5d1[_0x5df2b6]['previousPosition'])&&_0x11c5d1[_0x5df2b6]['markersStart']['push'](_0x56e7aa),_0x19fffd['end']['isEqual'](_0x11c5d1[_0x5df2b6]['nextPosition'])&&_0x11c5d1[_0x5df2b6]['markersEnd']['push'](_0x56e7aa);}['_joinTapes'](_0x41c691,_0x35c22f){let _0x21f849=[],_0x152341=0x0,_0x20768a=0x0;for(;_0x152341<_0x41c691['length']||_0x20768a<_0x35c22f['length'];){const _0x385155=_0x41c691[_0x152341]||{},_0x373b63=_0x35c22f[_0x20768a]||{};if(_0x385155['id']==_0x373b63['id'])_0x152341++,_0x20768a++,_0x21f849['push'](_0x385155);else{if(_0x373b63['isRemoved']&&_0x385155['isAdded']){const {commonTape:_0x36e43a,iEnd:_0x3ce047,jEnd:_0x2172c7}=this['_threeWayMerge'](_0x41c691,_0x152341,_0x35c22f,_0x20768a);_0x21f849=_0x21f849['concat'](_0x36e43a),_0x152341=_0x3ce047,_0x20768a=_0x2172c7;}else _0x373b63['isRemoved']?(_0x20768a++,_0x21f849['push'](_0x373b63)):(_0x152341++,_0x21f849['push'](_0x385155));}}return _0x21f849;}['_markSuggestions'](_0x4f6a03,_0x18a984){const _0x475e20=[];for(let _0x2283a6=0x0;_0x2283a6<_0x4f6a03['length'];_0x2283a6++){for(let _0x3c9898=0x0;_0x3c9898<_0x4f6a03[_0x2283a6]['markersStart']['length'];_0x3c9898++){const _0x548edf=_0x4f6a03[_0x2283a6]['markersStart'][_0x3c9898];if(!_0x18a984['has'](_0x548edf))continue;const {group:_0x4de553,type:_0x1fc557,authorId:_0x439451}=_0x16ab64(_0x548edf);'revision-suggestion'!=_0x4de553||'insertion'!=_0x1fc557&&'deletion'!=_0x1fc557||(_0x475e20['unshift']({'type':_0x1fc557,'name':_0x548edf,'userId':_0x439451}),_0x4f6a03[_0x2283a6]['markersStart']['splice'](_0x3c9898,0x1),_0x3c9898--);}_0x3f39fd(_0x4f6a03[_0x2283a6]);for(let _0x3ceb1f=0x0;_0x3ceb1f<_0x4f6a03[_0x2283a6]['markersEnd']['length'];_0x3ceb1f++){const _0x308cb7=_0x4f6a03[_0x2283a6]['markersEnd'][_0x3ceb1f];if(!_0x18a984['has'](_0x308cb7))continue;const {group:_0xbef35a,type:_0x2b151e}=_0x16ab64(_0x308cb7);if('revision-suggestion'!=_0xbef35a||'insertion'!=_0x2b151e&&'deletion'!=_0x2b151e)continue;_0x4f6a03[_0x2283a6]['markersEnd']['splice'](_0x3ceb1f,0x1),_0x3ceb1f--;const _0x104067=_0x475e20['findIndex'](_0x4fd630=>_0x4fd630['name']==_0x308cb7);_0x104067>-0x1&&_0x475e20['splice'](_0x104067,0x1);}}function _0x16ab64(_0x2a2d5b){const _0xf07ca5=_0x2a2d5b['split'](':');return{'group':_0xf07ca5[0x0],'type':_0xf07ca5[0x1],'subType':_0xf07ca5['length']>=0x5?_0xf07ca5[0x2]:null,'id':_0xf07ca5['length']<0x5?_0xf07ca5[0x2]:_0xf07ca5[0x3],'authorId':_0xf07ca5['length']<0x5?_0xf07ca5[0x3]:_0xf07ca5[0x4],'markerCount':0x6==_0xf07ca5['length']?_0xf07ca5[0x5]:null};}function _0x3f39fd(_0x2ebe47){for(let _0x16d274=0x0;_0x16d274<_0x475e20['length'];_0x16d274++){if(_0x2ebe47['isAdded']&&'insertion'==_0x475e20[_0x16d274]['type'])return _0x2ebe47['isAddSuggestion']=_0x475e20[_0x16d274],void delete _0x2ebe47['isAdded'];if(!_0x2ebe47['isAdded']&&!_0x2ebe47['isRemoved']&&'deletion'==_0x475e20[_0x16d274]['type'])return void(_0x2ebe47['isRemoveSuggestion']=_0x475e20[_0x16d274]);}}}['_setDistance'](_0x516f08,_0x2696b8){let _0x57a4fe=0x0,_0x260333=!0x1;const _0xdfd7ab=new Map();for(const _0x3e141e of _0x516f08)_0x3e141e[_0x2696b8]?_0x260333&&(_0x57a4fe++,_0x260333=!0x1):(_0x57a4fe++,_0x260333=!0x0),_0xdfd7ab['set'](_0x3e141e['id'],_0x57a4fe);for(let _0x4ba251=0x0;_0x4ba251<_0x516f08['length'];_0x4ba251++){if('isRemoved'==_0x2696b8&&_0x516f08[_0x4ba251]['isAdded']||'isAdded'==_0x2696b8&&_0x516f08[_0x4ba251]['isRemoved'])continue;if('text'==_0x516f08[_0x4ba251]['type']){_0x516f08[_0x4ba251]['distance']=0x0;continue;}const _0x32b557=_0xdfd7ab['get'](_0x516f08[_0x4ba251]['pairId']),_0x273582=_0xdfd7ab['get'](_0x516f08[_0x4ba251]['id']);_0x516f08[_0x4ba251]['distance']=_0x32b557-_0x273582;}}['_getRevisionsRange'](_0x49ed49,_0x5eafe8,_0x5cff8b=!0x1){const _0x4f1c0a=[];let _0x6d8370=this['repository']['getIndex'](_0x49ed49),_0xd6aa9c=this['repository']['getIndex'](_0x5eafe8);for(-0x1==_0xd6aa9c&&(_0xd6aa9c=this['repository']['_revisions']['length'],_0x5cff8b=!0x1);_0x6d8370<_0xd6aa9c;)_0x4f1c0a['push'](this['repository']['getRevision'](_0x6d8370)),_0x6d8370++;return _0x5cff8b&&_0x4f1c0a['push'](this['repository']['getRevision'](_0x6d8370)),_0x4f1c0a;}['_threeWayMerge'](_0x14b47e,_0x2f8b3b,_0x1de197,_0x34fa62){const _0x275e34=this['editor']['model']['schema'];let _0x806cd1=_0x2f8b3b;for(;_0x14b47e[_0x806cd1]&&_0x14b47e[_0x806cd1]['isAdded'];)_0x806cd1++;let _0x2ca0c2=_0x34fa62;for(;_0x1de197[_0x2ca0c2]&&_0x1de197[_0x2ca0c2]['isRemoved'];)_0x2ca0c2++;_0x566cb1(_0x14b47e,_0x2f8b3b,_0x806cd1),_0x566cb1(_0x1de197,_0x34fa62,_0x2ca0c2);const _0x50a4e5=_0x1de197['slice'](_0x34fa62,_0x2ca0c2)['concat'](_0x14b47e['slice'](_0x2f8b3b,_0x806cd1));return _0x50a4e5['sort']((_0x2bf6e3,_0x11641d)=>_0x2bf6e3['side']!=_0x11641d['side']?_0x2bf6e3['side']-_0x11641d['side']:_0x2bf6e3['level']!=_0x11641d['level']?_0x2bf6e3['level']-_0x11641d['level']:_0x2bf6e3['distance']!=_0x11641d['distance']?_0x11641d['distance']-_0x2bf6e3['distance']:!!_0x2bf6e3['isAdded']!=!!_0x11641d['isAdded']?-0x1==_0x2bf6e3['side']||0x0==_0x2bf6e3['side']?_0x2bf6e3['isAdded']?-0x1:0x1:_0x2bf6e3['isAdded']?0x1:-0x1:_0x2bf6e3['index']-_0x11641d['index']),{'commonTape':_0x50a4e5,'iEnd':_0x806cd1,'jEnd':_0x2ca0c2};function _0x566cb1(_0x476105,_0x1094cd,_0x3d10bc){let _0x4479b6=-0x1,_0x53b3b9=Number['POSITIVE_INFINITY'],_0x2c360d=!0x0;for(let _0x53ce53=_0x1094cd;_0x53ce53<_0x3d10bc;_0x53ce53++)if(_0x275e34['isInline'](_0x476105[_0x53ce53]['item'])||(_0x2c360d=!0x1),_0x476105[_0x53ce53]['item']['startIndex']<_0x1094cd&&(_0x4479b6=_0x53ce53),_0x476105[_0x53ce53]['item']['endIndex']>=_0x3d10bc){_0x53b3b9=_0x53ce53;break;}_0x2c360d&&(_0x4479b6=_0x3d10bc-0x1);for(let _0x27ddc9=_0x1094cd;_0x27ddc9<_0x3d10bc;_0x27ddc9++)_0x476105[_0x27ddc9]['side']=_0x27ddc9<=_0x4479b6?-0x1:_0x27ddc9<_0x53b3b9?0x0:0x1,_0x476105[_0x27ddc9]['index']=_0x27ddc9;let _0x10f175=0x0;for(let _0x555c07=_0x1094cd;_0x555c07<=_0x4479b6;_0x555c07++)0x0==_0x476105[_0x555c07]['distance']?_0x476105[_0x555c07]['level']=_0x10f175:(_0x10f175++,_0x476105[_0x555c07]['level']=_0x10f175,_0x10f175++);for(let _0x3546c3=_0x1094cd;_0x3546c3<_0x3d10bc;_0x3546c3++)0x0==_0x476105[_0x3546c3]['side']&&(_0x476105[_0x3546c3]['level']=_0x10f175);_0x10f175=0x0;for(let _0x8ddea5=_0x3d10bc-0x1;_0x8ddea5>=_0x53b3b9;_0x8ddea5--)0x0==_0x476105[_0x8ddea5]['distance']?_0x476105[_0x8ddea5]['level']=_0x10f175:(_0x10f175--,_0x476105[_0x8ddea5]['level']=_0x10f175,_0x10f175--);}}['_fixObsoleteTags'](_0x4be9ca){const _0x1c57da=new Map(),_0x27e699=this['editor']['model']['schema'];for(let _0x3bad2b=0x1;_0x3bad2b<_0x4be9ca['length'];_0x3bad2b++){let _0x2202aa,_0x1ba0d6,_0x11e22c;const _0x4135d4=_0x4be9ca[_0x3bad2b],_0x2962e1=_0x4be9ca[_0x3bad2b-0x1];if('text'==_0x4135d4['type'])continue;if(_0x4135d4['type']!=_0x2962e1['type'])continue;if(!_0x27e699['isBlock'](_0x2962e1['item'])||_0x27e699['isLimit'](_0x2962e1['item']))continue;if(!_0x27e699['isBlock'](_0x4135d4['item'])||_0x27e699['isLimit'](_0x4135d4['item']))continue;if((_0x4be9ca[_0x3bad2b]['isAdded']||_0x4be9ca[_0x3bad2b]['isAddSuggestion'])&&_0x4be9ca[_0x3bad2b-0x1]['isRemoved'])_0x2202aa=_0x4be9ca[_0x3bad2b],_0x1ba0d6=_0x4be9ca[_0x3bad2b-0x1],_0x11e22c=_0x3bad2b-0x1;else{if(!_0x4be9ca[_0x3bad2b]['isRemoved']||!_0x4be9ca[_0x3bad2b-0x1]['isAdded']&&!_0x4be9ca[_0x3bad2b-0x1]['isAddSuggestion'])continue;_0x2202aa=_0x4be9ca[_0x3bad2b-0x1],_0x1ba0d6=_0x4be9ca[_0x3bad2b],_0x11e22c=_0x3bad2b;}const _0x263c82=_0x2202aa['level']==_0x1ba0d6['level'],_0xad4142=Math['abs'](_0x2202aa['level'])<Math['abs'](_0x1ba0d6['level'])&&0x0==_0x1ba0d6['distance'];(_0x263c82||_0xad4142)&&(_0x1c57da['set'](_0x1ba0d6['id'],_0x2202aa['id']),_0x4be9ca['splice'](_0x11e22c,0x1),_0x3bad2b--,_0x2202aa['isAdded']=!0x1);}for(let _0x5731b2=0x0;_0x5731b2<_0x4be9ca['length'];_0x5731b2++)_0x1c57da['has'](_0x4be9ca[_0x5731b2]['pairId'])&&(_0x4be9ca[_0x5731b2]['pairId']=_0x1c57da['get'](_0x4be9ca[_0x5731b2]['pairId']));}['_removeMissingPairs'](_0x4813fa){const _0x3a545d=new Set(_0x4813fa['map'](_0x2fd4cd=>_0x2fd4cd['id']));for(let _0x5cc56a=0x0;_0x5cc56a<_0x4813fa['length'];_0x5cc56a++)_0x3a545d['has'](_0x4813fa[_0x5cc56a]['pairId'])||0x0==_0x4813fa[_0x5cc56a]['distance']||(_0x4813fa[_0x5cc56a]['isIncorrect']=!0x0);return _0x4813fa['filter'](_0x5d2a2a=>!_0x5d2a2a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x23134f){const _0x394ae8=new Set();for(let _0x7fb241=0x0;_0x7fb241<_0x23134f['length'];_0x7fb241++){if(_0x394ae8['has'](_0x23134f[_0x7fb241]['id'])&&_0x23134f[_0x7fb241]['isRemoved']&&(_0x23134f[_0x7fb241]['isIncorrect']=!0x0),_0x23134f[_0x7fb241]['isIncorrect'])continue;if(0x0==_0x23134f[_0x7fb241]['distance'])continue;if('elementStart'!=_0x23134f[_0x7fb241]['type'])continue;if(null==_0x23134f[_0x7fb241]['pairId'])continue;let _0x87440f=_0x7fb241+0x1,_0x4426a3=0x0;for(;_0x23134f[_0x87440f]['id']!=_0x23134f[_0x7fb241]['pairId'];)'elementStart'==_0x23134f[_0x87440f]['type']?_0x4426a3++:'elementEnd'==_0x23134f[_0x87440f]['type']&&_0x4426a3--,_0x87440f++;if(0x0!=_0x4426a3){if(_0x23134f[_0x7fb241]['isRemoved'])_0x23134f[_0x7fb241]['isIncorrect']=!0x0;else{for(;_0x87440f!=_0x7fb241;)_0x23134f[_0x87440f]['isRemoved']&&0x0!=_0x23134f[_0x87440f]['distance']&&(_0x23134f[_0x87440f]['isIncorrect']=!0x0,_0x394ae8['add'](_0x23134f[_0x87440f]['pairId'])),_0x87440f--;}}}return _0x23134f['filter'](_0x2a3471=>!_0x2a3471['isIncorrect']);}['_removeUnsupportedChanges'](_0x14a467){const _0x1089d7=this['editor']['model']['schema'];for(let _0x2850d4=0x0;_0x2850d4<_0x14a467['length'];_0x2850d4++){if(!(_0x14a467[_0x2850d4]['isAdded']||_0x14a467[_0x2850d4]['isAddSuggestion']||_0x14a467[_0x2850d4]['isRemoved']||_0x14a467[_0x2850d4]['isRemoveSuggestion']))continue;if(0x0==_0x14a467[_0x2850d4]['distance'])continue;const _0x4a30b9=_0x14a467[_0x2850d4]['item'];_0x1089d7['isBlock'](_0x4a30b9)||_0x1089d7['isLimit'](_0x4a30b9)||(_0x14a467[_0x2850d4]['isAdded']&&delete _0x14a467[_0x2850d4]['isAdded'],_0x14a467[_0x2850d4]['isAddSuggestion']&&delete _0x14a467[_0x2850d4]['isAddSuggestion'],_0x14a467[_0x2850d4]['isRemoveSuggestion']&&delete _0x14a467[_0x2850d4]['isRemoveSuggestion'],_0x14a467[_0x2850d4]['isRemoved']&&(_0x14a467[_0x2850d4]['isIncorrect']=!0x0));}return _0x14a467['filter'](_0x44e1a1=>!_0x44e1a1['isIncorrect']);}['_makeModelFromTape'](_0x2db77d,_0x2d083d,_0x59ca9d){const _0x41af87=new gt(),_0x5ea960=[],_0x4d8685=new Map(),_0x56fa44=this['editor']['model'],_0x47266a=_0x56fa44['schema'],_0x1d0054=[_0x41af87],_0xf3722f={},_0x5ab81a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3a4a06=null;const _0x56147c=[0x0];for(let _0x1ff51b=0x0;_0x1ff51b<_0x2db77d['length'];_0x1ff51b++)if('elementStart'===_0x2db77d[_0x1ff51b]['type']){_0x2db77d[_0x1ff51b]['previousPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c);const _0xa54c1a=new ut(_0x2db77d[_0x1ff51b]['item']['name'],_0x2db77d[_0x1ff51b]['item']['getAttributes']());_0x1d0054[0x0]['_appendChild'](_0xa54c1a),_0x56147c['push'](0x0),_0x1d0054['unshift'](_0xa54c1a),_0x2db77d[_0x1ff51b]['nextPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c);}else'elementEnd'===_0x2db77d[_0x1ff51b]['type']?(_0x1d0054['shift'](),_0x2db77d[_0x1ff51b]['previousPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c),_0x56147c['pop'](),_0x56147c[_0x56147c['length']-0x1]++,_0x2db77d[_0x1ff51b]['nextPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c)):(_0x2db77d[_0x1ff51b]['previousPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c),_0x3a4a06?_0x3a4a06['_data']+=_0x2db77d[_0x1ff51b]['item']['data']:_0x3a4a06=new mt(_0x2db77d[_0x1ff51b]['item']['data'],_0x2db77d[_0x1ff51b]['item']['getAttributes']()),_0x2db77d[_0x1ff51b+0x1]&&'text'===_0x2db77d[_0x1ff51b+0x1]['type']&&_0x690d53(_0x3a4a06,_0x2db77d[_0x1ff51b+0x1]['item'])||(_0x1d0054[0x0]['_appendChild'](_0x3a4a06),_0x3a4a06=null),_0x56147c[_0x56147c['length']-0x1]+=_0x2db77d[_0x1ff51b]['item']['offsetSize'],_0x2db77d[_0x1ff51b]['nextPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c));for(let _0x4bc5d2=0x0;_0x4bc5d2<_0x2db77d['length'];_0x4bc5d2++){const _0x25afb5=_0x2db77d[_0x4bc5d2]['previousPosition'],_0x491ebc=_0x2db77d[_0x4bc5d2]['nextPosition'];for(const _0x325022 of _0x2db77d[_0x4bc5d2]['markersStart'])_0x4d8685['set'](_0x325022,{'start':_0x25afb5,'end':null});_0x4c207b('isRemoveSuggestion',_0x4bc5d2,_0x25afb5,_0x491ebc),_0x4c207b('isAddSuggestion',_0x4bc5d2,_0x25afb5,_0x491ebc),_0x4c207b('isRemoved',_0x4bc5d2,_0x25afb5,_0x491ebc),_0x4c207b('isAdded',_0x4bc5d2,_0x25afb5,_0x491ebc);for(const _0x30ea6e of _0x2db77d[_0x4bc5d2]['markersEnd']){_0x4d8685['get'](_0x30ea6e)['end']=_0x491ebc;}}for(const [_0x25d10f,_0x4d8f4c]of _0x4d8685){const _0x484d30=this['editor']['model']['createRange'](_0x4d8f4c['start'],_0x4d8f4c['end']);_0x41af87['markers']['set'](_0x25d10f,_0x484d30);}return _0x5ea960['sort']((_0x5abfaf,_0xdf5fce)=>{const _0x23026b=_0x41af87['markers']['get']('revision:'+_0x5abfaf['id']),_0x50c5d4=_0x41af87['markers']['get']('revision:'+_0xdf5fce['id']);return _0x23026b['start']['isBefore'](_0x50c5d4['start'])?-0x1:_0x23026b['start']['isAfter'](_0x50c5d4['start'])?0x1:_0x23026b['end']['isBefore'](_0x50c5d4['end'])?-0x1:_0x23026b['end']['isAfter'](_0x50c5d4['end'])?0x1:'add'===_0x5abfaf['type']?-0x1:0x1;}),{'root':_0x41af87,'changes':_0x5ea960};function _0x4c207b(_0x68ba0,_0x456988,_0x2bf92a,_0x65b265){const _0x3045fe=!!_0x2db77d[_0x456988][_0x68ba0],_0x8aa62c=_0x3045fe?_0x2db77d[_0x456988][_0x68ba0]['userId']:null,_0x3a6e85=_0x456988===_0x2db77d['length']-0x1,_0x52fedd=_0x5ab81a[_0x68ba0][0x0],_0x406b88=_0x47266a['isObject'](_0x2db77d[_0x456988]['item']);!_0xf3722f[_0x68ba0]&&_0x3045fe?_0xf3722f[_0x68ba0]={'start':_0x2bf92a,'tapeItem':_0x2db77d[_0x456988],'userId':_0x8aa62c,'type':_0x68ba0}:_0xf3722f[_0x68ba0]&&!_0x3045fe?(_0xf3722f[_0x68ba0]['end']=_0x2bf92a,_0x2f6335(_0xf3722f[_0x68ba0]),_0xf3722f[_0x68ba0]=null):_0xf3722f[_0x68ba0]&&_0x3045fe&&_0xf3722f[_0x68ba0]['userId']!==_0x8aa62c&&(_0xf3722f[_0x68ba0]['end']=_0x2bf92a,_0x52fedd&&_0x52fedd['userId']===_0xf3722f[_0x68ba0]['userId']||_0x2f6335(_0xf3722f[_0x68ba0]),_0xf3722f[_0x68ba0]={'start':_0x2bf92a,'tapeItem':_0x2db77d[_0x456988],'userId':_0x8aa62c,'type':_0x68ba0}),_0xf3722f[_0x68ba0]&&_0x406b88&&('elementStart'!==_0x2db77d[_0x456988]['type']||_0x52fedd&&_0x52fedd['userId']===_0x8aa62c||_0x5ab81a[_0x68ba0]['unshift']({'userId':_0x8aa62c,'object':_0x2db77d[_0x456988]['item'],'change':_0xf3722f[_0x68ba0]}),'elementEnd'===_0x2db77d[_0x456988]['type']&&_0x52fedd&&_0x52fedd['object']===_0x2db77d[_0x456988]['item']&&(_0x5ab81a[_0x68ba0]['shift'](),_0xf3722f[_0x68ba0]=_0x52fedd['change'])),_0xf3722f[_0x68ba0]&&_0x3a6e85&&(_0xf3722f[_0x68ba0]['end']=_0x65b265,_0x2f6335(_0xf3722f[_0x68ba0]),_0xf3722f[_0x68ba0]=null);}function _0x2f6335({start:_0x1986ca,end:_0x30830a,tapeItem:_0x2ca5f4,userId:_0x287456,type:_0x14f34a}){const _0x27a115=_0x2ca5f4['item'],_0x2d307b=_0x56fa44['schema']['isBlock'](_0x27a115)&&!_0x56fa44['schema']['isLimit'](_0x27a115),_0x2324eb=_0x1986ca['nodeAfter']==_0x30830a['parent']&&_0x30830a['isAtStart'];if(_0x2d307b&&_0x2324eb)return;const _0x19dc46=_0x56fa44['createRange'](_0x1986ca,_0x30830a),_0x1f70f1=_0x2d083d['get'](_0x287456),_0x57f0da=new r({'author':_0x1f70f1,'type':'isAdded'==_0x14f34a||'isAddSuggestion'==_0x14f34a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x14f34a||'isRemoveSuggestion'==_0x14f34a},'createdAt':new Date(),'rootName':_0x59ca9d});_0x5ea960['push'](_0x57f0da),_0x41af87['markers']['set']('revision:'+_0x57f0da['id'],_0x19dc46);}function _0x690d53(_0x42078b,_0x462b64){const _0x4806be=_0x42078b['getAttributes'](),_0x3ccf1d=_0x462b64['getAttributes']();for(const _0x224dd3 of _0x4806be){if(_0x224dd3[0x1]!==_0x462b64['getAttribute'](_0x224dd3[0x0]))return!0x1;_0x3ccf1d['next']();}return _0x3ccf1d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5c4a46=>{const _0x15724e=_0x5c4a46['markerName']['split'](':')[0x1],_0x1414e0=this['_getChangeFromId'](_0x15724e);if(!_0x1414e0)return null;const _0x3f785b='add'==_0x1414e0['type']?'insertion':'deletion',_0x5bea66=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3f785b];return _0x1414e0['data']['isSuggestion']&&_0x5bea66['push']('ck-suggestion-marker-'+_0x3f785b+'-new'),this['activeChange']==_0x1414e0&&_0x5bea66['push']('ck-suggestion-marker--active'),{'classes':_0x5bea66,'attributes':{'data-change-id':_0x15724e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e3da8=>{_0x5e3da8['on']('element:pre',(_0x4f20e3,_0x2b2ef7,_0x929ebc)=>{const _0x5ac293=_0x2b2ef7['viewItem']['getChild'](0x0);if(!_0x5ac293||!_0x5ac293['is']('element','code'))return;if(!_0x929ebc['consumable']['consume'](_0x5ac293,{'attributes':['vid_start','vid_end']}))return;const _0x3243d0=_0x2b2ef7['modelRange']['start']['nodeAfter'];_0x929ebc['writer']['setAttribute']('vid_start',_0x5ac293['getAttribute']('vid_start'),_0x3243d0),_0x929ebc['writer']['setAttribute']('vid_end',_0x5ac293['getAttribute']('vid_end'),_0x3243d0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x95fa95=>{_0x95fa95['on']('element',(_0x3a1945,_0x3ad58b,_0x1047b7)=>{if(!_0x1047b7['consumable']['consume'](_0x3ad58b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ad58b['modelRange']['isCollapsed'])return;const _0x4e8270=_0x3ad58b['modelRange']['start']['nodeAfter'];_0x4e8270['hasAttribute']('vid_start')||_0x4e8270['hasAttribute']('vid')||(_0x1047b7['writer']['setAttribute']('vid_start',_0x3ad58b['viewItem']['getAttribute']('vid_start'),_0x4e8270),_0x1047b7['writer']['setAttribute']('vid_end',_0x3ad58b['viewItem']['getAttribute']('vid_end'),_0x4e8270));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x11659d=>_0x11659d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3fb7eb,[,_0x5656e3])=>{['vid_start','vid_end','vid']['includes'](_0x5656e3)&&(_0x3fb7eb['return']=!0x0,_0x3fb7eb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1a083c=>{_0x1a083c['on']('attribute:vid',(_0x59cf76,_0x298bf5,_0x571bf2)=>{if('\x20'!=_0x298bf5['item']['data']||_0x298bf5['item']['parent']['maxOffset']>0x1)return;if(!_0x571bf2['consumable']['consume'](_0x298bf5['item'],_0x59cf76['name']))return;const _0x5ea26f=_0x571bf2['writer'],_0x4ee99e=_0x571bf2['mapper']['toViewRange'](_0x298bf5['range']);_0x5ea26f['wrap'](_0x4ee99e,_0x5ea26f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x101105){const _0x5133a5=_0x101105['plugins']['get']('RevisionViewer');return(_0x480532,_0x161f2e,_0x7ed922)=>{const _0x25bbaa=_0x161f2e['markerName']['split'](':')[0x1],_0xe83398=_0x5133a5['_getChangeFromId'](_0x25bbaa);if(!_0xe83398)return null;const _0x4db226='add'==_0xe83398['type']?'split':'merge';if(!_0x7ed922['consumable']['test'](_0x161f2e['markerRange'],_0x480532['name']))return;const _0x203ab1=_0x161f2e['markerRange']['getWalker'](),_0x238694=_0x161f2e['markerRange']['start'],_0x5ec547=_0x101105['model']['schema'];let _0x5f1fd3=null,_0x591109=null,_0x60bf41=!0x1,_0x3f94cf=!0x1;for(const _0xbabf60 of _0x203ab1){const _0x3c7230=_0xbabf60['item'];_0x60bf41=_0x60bf41||_0x5ec547['isContent'](_0x3c7230);const _0x165565=_0x7ed922['mapper']['toViewElement'](_0x3c7230);if(_0x165565&&_0x165565['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xbabf60['type']&&(_0x5ec547['isBlock'](_0x3c7230)&&!_0x5ec547['isLimit'](_0x3c7230)&&(_0x3c7230['nextSibling']||_0x238694['isAtEnd']?_0x5f1fd3&&_0x5f1fd3['parent']==_0x3c7230||(_0x5f1fd3=_0x3c7230,_0x4b8e62(_0xbabf60['previousPosition']),_0x3f94cf=!0x0):_0x591109=_0x591109||_0xbabf60['previousPosition']));}function _0x4b8e62(_0xb0ce39){const _0x4aedc0=_0x7ed922['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4db226}),_0x5b28dd=_0x7ed922['mapper']['toViewPosition'](_0xb0ce39);_0xe83398['data']['isSuggestion']&&_0x7ed922['writer']['addClass']('ck-suggestion-marker-'+_0x4db226+'-new',_0x4aedc0),_0x5133a5['activeChange']==_0xe83398&&_0x7ed922['writer']['addClass']('ck-suggestion-marker--active',_0x4aedc0),_0x7ed922['writer']['insert'](_0x5b28dd,_0x4aedc0),_0x7ed922['mapper']['bindElementToMarker'](_0x4aedc0,_0x161f2e['markerName']);}_0x60bf41||_0x3f94cf||!_0x591109||_0x4b8e62(_0x591109);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x30078e,_0x159090,_0x42924d)=>{const _0x1f0725=_0x42924d['mapper']['markerNameToElements'](_0x159090['markerName']);if(_0x1f0725){for(const _0x4a0174 of _0x1f0725)(_0x4a0174['hasClass']('ck-suggestion-marker-split')||_0x4a0174['hasClass']('ck-suggestion-marker-merge'))&&(_0x42924d['mapper']['unbindElementFromMarkerName'](_0x4a0174,_0x159090['markerName']),_0x42924d['writer']['remove'](_0x4a0174));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x211c98,_0x3b8214,_0x3c317f)=>{const _0x1b2943=_0x3b8214['markerName']['split'](':')[0x1],_0x1fbb4d=this['_getChangeFromId'](_0x1b2943);if(!_0x1fbb4d)return null;const _0x4b1bc7='add'==_0x1fbb4d['type']?'split':'merge';if(_0x3c317f['consumable']['test'](_0x3b8214['markerRange'],_0x211c98['name']))for(const _0x2f7c2d of _0x3b8214['markerRange']['getItems']()){if(!_0x2f7c2d['is']('element','softBreak'))continue;const _0x5f2b0d=_0x3c317f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b1bc7}),_0x49eb3e=_0x3c317f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2f7c2d));_0x1fbb4d['data']['isSuggestion']&&_0x3c317f['writer']['addClass']('ck-suggestion-marker-'+_0x4b1bc7+'-new',_0x5f2b0d),this['activeChange']==_0x1fbb4d&&_0x3c317f['writer']['addClass']('ck-suggestion-marker--active',_0x5f2b0d),_0x3c317f['writer']['insert'](_0x49eb3e,_0x5f2b0d),_0x3c317f['mapper']['bindElementToMarker'](_0x5f2b0d,_0x3b8214['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1f13ea=>{for(const _0x3e821c of this['editor']['model']['document']['getRootNames']()){const _0xd9e242=this['editor']['model']['document']['getRoot'](_0x3e821c),_0x5e507c=this['editor']['editing']['view']['document']['getRoot'](_0x3e821c);if(_0x5e507c){const _0x666792=_0xd9e242['getAttribute']('revisionHistoryAttachChange');if(_0x1f13ea['removeAttribute']('data-change-id',_0x5e507c),_0x1f13ea['removeClass']('ck-revision-history-root-add',_0x5e507c),_0x1f13ea['removeClass']('ck-revision-history-root-remove',_0x5e507c),_0x1f13ea['removeClass']('ck-revision-history-root--active',_0x5e507c),_0x666792){const _0xf8bc2b=this['_getChangeFromId'](_0x666792);if(!_0xf8bc2b)return null;_0x1f13ea['setAttribute']('data-change-id',_0x666792,_0x5e507c),_0x1f13ea['addClass']('ck-revision-history-root-'+_0xf8bc2b['type'],_0x5e507c),this['activeChange']==_0xf8bc2b&&_0x1f13ea['addClass']('ck-revision-history-root--active',_0x5e507c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x31e3aa=>'revision-comment:'+_0x31e3aa,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5235fa=>'revision-suggestion:'+_0x5235fa,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x840779=>({'name':'suggestion:'+_0x840779,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x403a5e=>{const _0x5e3670=_0x403a5e['markerName']['split'](':')[0x1];return'insertion'!=_0x5e3670&&'deletion'!=_0x5e3670?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5e3670]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x164edb,_0x1ada71,_0x163fa7)=>{const _0xa6780e=_0x163fa7['mapper']['markerNameToElements'](_0x1ada71['markerName']);if(_0xa6780e){for(const _0x2c46df of _0xa6780e)_0x2c46df['is']('uiElement')&&(_0x163fa7['mapper']['unbindElementFromMarkerName'](_0x2c46df,_0x1ada71['markerName']),_0x163fa7['writer']['remove'](_0x2c46df));}},{'priority':'high'});}['_getChangeFromId'](_0x39b031){return this['_changeIdToChange']['get'](_0x39b031);}['_getViewForChange'](_0x572003){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x572003),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x18ab7e,_0x520f49,_0x5e1d17,_0xbb5406)=>{_0xbb5406&&this['_balloon']['remove'](_0xbb5406),_0x5e1d17&&(this['_balloon']['add']({'view':_0x5e1d17,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x49b891=this['editor']['editing'],_0x35d144=this['_getChangeFromId'](_0x5e1d17['changeId']);let _0x185fc0;if(_0x35d144['data']['isOnRoot']){const _0x210d8f=_0x49b891['view']['getDomRoot'](_0x35d144['rootName']);_0x185fc0=Array['from'](_0x210d8f['getClientRects']());}else{const _0x4ac919=this['editor']['model']['markers']['get']('revision:'+_0x5e1d17['changeId']);_0x185fc0=Array['from'](_0x49b891['mapper']['markerNameToElements'](_0x4ac919['name']))['map'](_0x3b2463=>_0x49b891['view']['domConverter']['mapViewToDom'](_0x3b2463))['map'](_0x6020ed=>Array['from'](_0x6020ed['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x185fc0[0x0];return _0x185fc0['find'](_0x192210=>_0x192210['top']-0x3<=this['_activeViewTarget']['y']&&_0x192210['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x192210['left']-0x3<=this['_activeViewTarget']['x']&&_0x192210['right']+0x3>=this['_activeViewTarget']['x'])||_0x185fc0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x366b30,_0x1f58ca,_0xfd0500,_0x2fbb08)=>{this['activeView']=_0xfd0500?this['_getViewForChange'](_0xfd0500):null,this['editor']['model']['change'](()=>{const _0x4cf1dd=this['editor']['editing'];_0x2fbb08&&(_0x2fbb08['data']['isOnRoot']?_0x4cf1dd['view']['change'](_0x5937e1=>{_0x5937e1['removeClass']('ck-revision-history-root--active',_0x4cf1dd['view']['document']['getRoot'](_0x2fbb08['rootName']));}):_0x4cf1dd['reconvertMarker']('revision:'+_0x2fbb08['id'])),_0xfd0500&&(_0xfd0500['data']['isOnRoot']?_0x4cf1dd['view']['change'](_0x16b579=>{_0x16b579['addClass']('ck-revision-history-root--active',_0x4cf1dd['view']['document']['getRoot'](_0xfd0500['rootName']));}):_0x4cf1dd['reconvertMarker']('revision:'+_0xfd0500['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1cb482,_0x413dc0)=>{if(this['activeChange'])return;const _0x36a068=this['_findChangeIdFromDomTarget'](_0x413dc0['target']),_0xbfd41c=this['_changeIdToChange']['get'](_0x36a068);_0xbfd41c?(this['_activeViewTarget']={'x':_0x413dc0['domEvent']['x'],'y':_0x413dc0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xbfd41c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1dfdd4,_0x49691d)=>{const _0x543fed=this['_findChangeIdFromDomTarget'](_0x49691d['target']),_0x27fcb4=this['_changeIdToChange']['get'](_0x543fed);_0x27fcb4?(this['_activeViewTarget']={'x':_0x49691d['domEvent']['x'],'y':_0x49691d['domEvent']['y']},_0x27fcb4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x27fcb4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x360e4f){do{const _0x4c98ce=_0x360e4f['getAttribute']('data-change-id');if(_0x4c98ce)return _0x4c98ce;_0x360e4f=_0x360e4f['parent'];}while(_0x360e4f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1c5ca3=>{for(const _0x1a14e0 of this['editor']['model']['markers'])_0x1c5ca3['removeMarker'](_0x1a14e0);});}}function Z(_0x433b78,_0x1b335b){return(_0x4e5cab,_0x3e97dd,_0x5e5c00)=>{if(!_0x5e5c00['consumable']['test'](_0x3e97dd['markerRange'],_0x4e5cab['name']))return;const _0x54bf46=_0x3e97dd['markerRange']['getWalker'](),_0x221cac=_0x3e97dd['markerRange']['start'],_0x45fa0a=_0x433b78['model']['schema'];let _0x3eeca7=null,_0x3c12ae=null,_0x275772=!0x1,_0x31c065=!0x1;for(const _0x2eb3b5 of _0x54bf46){const _0x162865=_0x2eb3b5['item'];_0x275772=_0x275772||_0x45fa0a['isContent'](_0x162865);const _0x46a2fa=_0x5e5c00['mapper']['toViewElement'](_0x162865);if(_0x46a2fa&&_0x46a2fa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2eb3b5['type']&&(_0x45fa0a['isBlock'](_0x162865)&&!_0x45fa0a['isLimit'](_0x162865)&&(_0x162865['nextSibling']||_0x221cac['isAtEnd']?_0x3eeca7&&_0x3eeca7['parent']==_0x162865||(_0x3eeca7=_0x162865,_0x3613d2(_0x2eb3b5['previousPosition']),_0x31c065=!0x0):_0x3c12ae=_0x3c12ae||_0x2eb3b5['previousPosition']));}function _0x3613d2(_0x2511c7){const _0x4434b9=_0x5e5c00['mapper']['toViewPosition'](_0x2511c7),_0x2841c9=_0x5e5c00['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1b335b});_0x5e5c00['writer']['insert'](_0x4434b9,_0x2841c9),_0x5e5c00['mapper']['bindElementToMarker'](_0x2841c9,_0x3e97dd['markerName']);}_0x275772||_0x31c065||!_0x3c12ae||_0x3613d2(_0x3c12ae);};}class wt extends _0xb699a1{constructor(_0x5d94d5){super(_0x5d94d5);const _0x10df61=_0x5d94d5['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x10df61,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10df61,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2ef014=this['editor'],_0xde929c=_0x2ef014['plugins']['get'](d),_0x572f6e=_0xde929c['isReady']?_0xde929c['diff']['newRevisionId']:null;_0x2ef014['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x572f6e);}['refresh'](){const {isReady:_0x281119,isEnabled:_0x4f232f,repository:_0x510e04,diff:_0x2bd317}=this['editor']['plugins']['get'](d),_0x39edb5=_0x2bd317&&_0x510e04['getLaterVisibleRevision'](_0x2bd317['newRevisionId']);this['isEnabled']=_0x281119&&_0x4f232f&&Boolean(_0x39edb5);}}class _t extends _0xb699a1{['_step'];constructor(_0x3de1a9,{direction:_0x424362}){super(_0x3de1a9);const _0x296e90=_0x3de1a9['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x424362?0x1:-0x1,this['listenTo'](_0x296e90,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x296e90,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x296e90,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x31e8e7=this['editor'],_0x562a4e=_0x31e8e7['plugins']['get'](d),{isNavigationMode:_0x935e9c,currentChangeNumber:_0x577d4f}=_0x562a4e;let _0x53ec07;if(_0x562a4e['activeChange']=_0x935e9c?_0x562a4e['diff']['changes']['get'](_0x577d4f+this['_step']):_0x562a4e['diff']['changes']['first'],_0x562a4e['activeChange']['data']['isOnRoot'])_0x53ec07=_0x31e8e7['editing']['view']['getDomRoot'](_0x562a4e['activeChange']['rootName']);else{const _0x5d5259=_0x31e8e7['model']['markers']['get']('revision:'+_0x562a4e['activeChange']['id']);_0x53ec07=_0x54c68b(_0x31e8e7['editing'],_0x5d5259);}_0x437d98({'target':_0x53ec07,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x15bb8e,currentChangeNumber:_0x155259,numberOfChanges:_0x52a596,isReady:_0x3f9a43,isEnabled:_0x1a0a33}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1a0a33&&_0x3f9a43&&_0x52a596)&&(!_0x15bb8e||(0x1===this['_step']?_0x155259<_0x52a596-0x1:_0x155259>0x0));}}class di extends ts{constructor(_0x94356d){super(_0x94356d);const _0x19609b=this['bindTemplate'],_0x12546f=new te(_0x94356d),_0x229b8b=new te(_0x94356d);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',(_0x51225b,_0x2db920)=>_0x51225b&&_0x2db920>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x189484,_0x473e2d,_0x37f523,_0x44cf90)=>{if(!_0x189484)return m(_0x94356d,'Loading...');if(!_0x37f523)return m(_0x94356d,'No\x20changes');const _0x55b355=m(_0x94356d,'NUMBER_OF_CHANGES',_0x37f523);return _0x44cf90?m(_0x94356d,'X_OF_Y_CHANGES',[_0x473e2d+0x1,_0x37f523]):_0x55b355;}),_0x12546f['set']({'label':m(_0x94356d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xf1e0bd}),_0x229b8b['set']({'label':m(_0x94356d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x533264}),_0x12546f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x229b8b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x12546f['on']('execute',()=>this['fire']('execute','backward')),_0x229b8b['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',_0x19609b['if']('_isStatusLabelVisible','ck-hidden',_0x48f79e=>!_0x48f79e)]},'children':[{'text':_0x19609b['to']('isNavigationMode',_0x503fbb=>_0x503fbb?m(_0x94356d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x94356d,'Total')+':\x20')}]},{'text':_0x19609b['to']('_statusText')}]},new _0x4fe4cd(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x12546f,_0x229b8b]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x657f6f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x500616=this['editor']['editing']['view'];_0x500616['change'](_0x4518b4=>{for(const _0x10fded of _0x500616['document']['roots'])_0x4518b4['addClass'](le,_0x10fded);});}['hide'](){const _0x283aaf=this['editor']['editing']['view'];_0x283aaf['change'](_0x4d0474=>{for(const _0x38911d of _0x283aaf['document']['roots'])_0x4d0474['removeClass'](le,_0x38911d);});}}class w extends _0x657f6f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x301276=this['editor'],_0x4ea0c2=_0x301276['plugins']['get'](d),_0x7a393=_0x301276['plugins']['get'](de);_0x301276['ui']['componentFactory']['add']('exitToEditing',_0x2813ed=>{const _0x2eaecc=new te(_0x2813ed);return _0x2eaecc['set']({'label':m(_0x2813ed,'Back\x20to\x20editing'),'icon':_0x28f7d6,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2eaecc,'execute',()=>{_0x301276['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2eaecc;}),_0x301276['ui']['componentFactory']['add']('restoreRevision',_0x56e355=>{const _0x2378bc=new te(_0x56e355);return _0x2378bc['set']({'label':m(_0x56e355,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2378bc['bind']('isEnabled')['to'](_0x301276['commands']['get']('restoreRevision')),this['listenTo'](_0x2378bc,'execute',()=>_0x301276['execute']('restoreRevision')),_0x2378bc;}),_0x301276['ui']['componentFactory']['add']('changesNavigation',_0x3395d0=>{const _0x54c7ec=new di(_0x3395d0),_0x40ac89=_0x301276['commands']['get']('showPreviousChange'),_0x3c6e5e=_0x301276['commands']['get']('showNextChange');return _0x54c7ec['bind']('isBackwardNavigationEnabled')['to'](_0x40ac89,'isEnabled'),_0x54c7ec['bind']('isForwardNavigationEnabled')['to'](_0x3c6e5e,'isEnabled'),_0x54c7ec['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4ea0c2),this['listenTo'](_0x54c7ec,'execute',(_0xb56233,_0x515812)=>{_0x301276['execute']('forward'===_0x515812?'showNextChange':'showPreviousChange');}),_0x54c7ec;}),_0x7a393['show'](),_0x4ea0c2['on']('change:isReady',(_0x75a648,_0x18524d,_0x4d0c82)=>{_0x4d0c82?_0x7a393['hide']():_0x7a393['show']();});}}class pt extends _0x4f90d2{['_resizeObserver']=null;constructor(_0x509fc7,_0x39bc8e){super(_0x509fc7,_0x39bc8e);const _0x5d9cab=this['bindTemplate'];this['set']({'label':m(_0x509fc7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x509fc7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5d9cab['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 _0x3f156a=this['fieldView']['element'];this['_tooltipString']=_0x3f156a['scrollWidth']>_0x3f156a['clientWidth']&&_0x3f156a['value']||'';}}class si extends ts{constructor(_0x4fc03a,_0x5fc88f,_0x12837a){super(_0x4fc03a);const _0x3a2a5e=new _0xc8a0bd();_0x3a2a5e['set']({'content':_0x53afc8,'viewBox':'0\x200\x2011\x2010'});const _0x4ee7e5=['ck','ck-revision-history-sidebar__revision-author'];_0x12837a&&_0x4ee7e5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3c247d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4fc03a,_0x12837a?'Revision\x20creator':'Revision\x20author')},'children':[_0x3a2a5e,_0x5fc88f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4ee7e5},'children':_0x3c247d});}}function oi(_0x4a34c8,_0x499f12){const _0x575d29=_0x4a34c8['bindTemplate'],_0x126f96=_0x4a34c8['locale'],_0x108143=_0xabbbe1(_0x126f96);_0x108143['panelPosition']='sw';const _0x22c31b=function(_0x485083,_0x21f3d8){const _0x495c79=function(_0x126b52,_0x11e122){const _0x26baf3=_0x126b52['locale'],_0xe58ed7={'Compare\x20against\x20selected':m(_0x26baf3,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x26baf3,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x26baf3,'Restore\x20this\x20revision')};return _0x11e122['map'](_0x2430ba=>{const _0x50256d=_0xe58ed7[_0x2430ba['name']];return _0x50256d&&_0x50256d!==_0x2430ba['name']&&(_0x2430ba['name']=_0x50256d),_0x2430ba;});}(_0x485083,_0x21f3d8),_0x207679=new _0x3c6e40();for(const _0x85b1d8 of _0x495c79){const _0x2b2e04={'type':'button','model':new to({'label':_0x85b1d8['name'],'class':_0x85b1d8['class'],'withText':!0x0,'role':'menuitem','_action':_0x85b1d8['action']})};_0x2b2e04['model']['bind']('isEnabled')['to'](_0x485083,'isActionsDropdownOpen',_0x381a46=>'function'!=typeof _0x85b1d8['isEnabled']||(!_0x381a46||_0x85b1d8['isEnabled'](_0x485083))),_0x207679['add'](_0x2b2e04);}return _0x207679;}(_0x4a34c8,_0x499f12);return _0x4a34c8['bind']('isActionsDropdownOpen')['to'](_0x108143,'isOpen'),_0x108143['buttonView']['set']({'label':m(_0x126f96,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x50c83d}),_0x108143['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x575d29['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x575d29['to'](_0x4d8823=>_0x4d8823['stopPropagation']())}}),_0x108143['on']('execute',_0x2d52dc=>{_0x4a34c8['isReady']&&'function'==typeof _0x2d52dc['source']['_action']&&_0x2d52dc['source']['_action'](_0x4a34c8);}),_0x3fbca8(_0x108143,_0x22c31b,{'role':'menu'}),_0x108143['listenTo'](_0x4a34c8,'change:isActionsDropdownOpen',(_0x4573f7,_0x5ea9f7,_0x64a1e3)=>{if(_0x64a1e3)for(const _0x3e399f of _0x108143['listView']['items']){const _0x352a45=_0x3e399f['children']['first'],_0x1fb66a=_0x499f12['find'](_0x4d0f27=>_0x4d0f27['action']===_0x352a45['_action'])['isVisible'];_0x3e399f['isVisible']=void 0x0===_0x1fb66a||_0x1fb66a(_0x4a34c8);}}),_0x108143;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x12e48c,uid as _0x11cac6,Collection as _0x3c9798,logWarning as _0x26f557,FocusTracker as _0xb58d78,KeystrokeHandler as _0x22b2b6,scrollViewportToShowTarget as _0x4675b1,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x2fa8d8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xd3d7c6,set as _0x4a343f,unset as _0x373b32,isEqual as _0x426189}from'es-toolkit/compat';import{Plugin as _0x1947b9,PendingActions as _0x98a53,Command as _0x27c93a,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3da1a3,getMarkerDomElement as _0x43daf5,ConfirmMixin as ti,sanitizeEditorConfig as _0xd0e0b6}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x26a069,Element as ut,Range as ft,ViewUIElement as _0x14dc4c,ViewRawElement as _0x226a61,ViewEmptyElement as _0x155563,ViewAttributeElement as _0x544f6d,ViewContainerElement as _0x30d263,Position as vt,ViewText as _0x29f1b1,ViewElement as _0x59bd53,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4b0f09,IconChevronUp as _0x37c493,IconChevronDown as _0x14e1f8,IconUndo as _0x13e63e,IconUser as _0x48a0fb,IconThreeVerticalDots as _0x25edbc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x52b994,submitHandler as _0xbcc6bc,LabeledFieldView as _0x3230b0,createLabeledInputText as _0x30c57f,createDropdown as _0x5ae326,ListView as _0x575510,ListItemView as _0x1fc11a,ButtonView as te,MenuBarMenuView as _0x3d315a,MenuBarMenuListView as _0x489dbe,MenuBarMenuListItemView as _0x5b8bda,MenuBarMenuListItemButtonView as _0x31e280,ContextualBalloon as _0x57e549,ToolbarSeparatorView as _0x332562,IconView as _0x33aa8f,addListToDropdown as _0x40c490,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x19df88}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x12e48c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xf18be1){super(),this['id']=_0xf18be1['id']||_0x11cac6(),this['creator']=_0xf18be1['creator']||null,this['authors']=_0xf18be1['authors']||[],this['diffData']=_0xf18be1['diffData']||null,this['toVersion']=_0xf18be1['toVersion']||0x0,this['fromVersion']=_0xf18be1['fromVersion']||0x0,this['set']('name',_0xf18be1['name']||''),this['set']('createdAt',_0xf18be1['createdAt']||new Date()),this['set']('attributes',_0xf18be1['attributes']||{});}['setName'](_0x3c2d8c){this['_update']({'name':_0x3c2d8c});}['setAttribute'](_0x592e44,_0x36b154){const _0x56009a=_0xd3d7c6(this['attributes']);_0x4a343f(_0x56009a,_0x592e44,_0x36b154),this['_update']({'attributes':_0x56009a});}['removeAttribute'](_0x39d48c){const _0x10f6af=_0xd3d7c6(this['attributes']);_0x373b32(_0x10f6af,_0x39d48c),this['_update']({'attributes':_0x10f6af});}['_update'](_0x419302,_0x2909bb=!0x1){let _0x3e84df=!0x1;const _0xc347f={'id':this['id']},_0xe5ae2=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x312dcb of _0xe5ae2){const _0x118b10=_0x419302[_0x312dcb];void 0x0!==_0x118b10&&_0x118b10!==this[_0x312dcb]&&(this[_0x312dcb]=_0x118b10,_0xc347f[_0x312dcb]=_0x118b10,_0x3e84df=!0x0);}_0x3e84df&&(_0xc347f['authors']&&(_0xc347f['authorsIds']=_0xc347f['authors']['map'](_0x4f52bc=>_0x4f52bc['id']),delete _0xc347f['authors']),this['fire']('_update',_0xc347f,_0x2909bb));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x185db7=>_0x185db7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1947b9{['_revisions'];static get['requires'](){return[_0x3da1a3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2d1ed5){super(_0x2d1ed5),this['_revisions']=new _0x3c9798();}['afterInit'](){!async function(_0x35c228){const _0x2d31ae=_0x4b7cbd([0x79,0x54,0x36,0x4d,0x49,0x35,0x63,0x75,0x51,0x4f,0x7a,0x6c,0x66,0x4e,0x55,0x76,0x46,0x78,0x74,0x42,0x4a,0x4c,0x52,0x48,0x77,0x44,0x50,0x47,0x6e,0x61,0x62,0x37,0x6f,0x65,0x58,0x64,0x57,0x41,0x70,0x45,0x73,0x6d,0x33,0x68,0x34,0x38,0x56,0x53,0x6b,0x30,0x67,0x32,0x5a,0x39,0x43,0x72,0x59,0x69,0x4b,0x31,0x71,0x6a]),_0x4e10cc=0xeb829,_0x322501=0x66cc27bb,_0x1cfd17=0x66cb4603^_0x322501,_0x19affa=window[_0x4b7cbd([0x44,0x61,0x74,0x65])][_0x4b7cbd([0x6e,0x6f,0x77])](),_0x5885a6=_0x35c228[_0x4b7cbd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c4d69=new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe2901e=>{_0x5885a6[_0x4b7cbd([0x6f,0x6e,0x63,0x65])](_0x4b7cbd([0x72,0x65,0x61,0x64,0x79]),_0xe2901e);}),_0x356fcf={[_0x4b7cbd([0x6b,0x74,0x79])]:_0x4b7cbd([0x45,0x43]),[_0x4b7cbd([0x75,0x73,0x65])]:_0x4b7cbd([0x73,0x69,0x67]),[_0x4b7cbd([0x63,0x72,0x76])]:_0x4b7cbd([0x50,0x2d,0x32,0x35,0x36]),[_0x4b7cbd([0x78])]:_0x4b7cbd([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]),[_0x4b7cbd([0x79])]:_0x4b7cbd([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]),[_0x4b7cbd([0x61,0x6c,0x67])]:_0x4b7cbd([0x45,0x53,0x32,0x35,0x36])},_0x35ee55=_0x5885a6[_0x4b7cbd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b7cbd([0x67,0x65,0x74])](_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a63dc(){let _0xf2bdb1,_0x6c4cef=null,_0x3706a5=null;try{if(_0x35ee55==_0x4b7cbd([0x47,0x50,0x4c]))return _0x4b7cbd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf2bdb1=_0x5d6222(),!_0xf2bdb1)return _0x4b7cbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf2bdb1[_0x4b7cbd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3706a5=_0x4d959b(_0xf2bdb1[_0x4b7cbd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf2bdb1[_0x4b7cbd([0x6a,0x74,0x69])])),await _0x19fca9()?_0x129f56()?_0x5da176()?_0x4b7cbd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51be32()?(_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b7cbd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6c4cef=_0x25ed22(_0x4b7cbd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b7cbd([0x74,0x72,0x69,0x61,0x6c])&&(_0x6c4cef=_0x25ed22(_0x4b7cbd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16e9c4()):_0x4b7cbd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b7cbd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b7cbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x41942c){return _0x4b7cbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5da176(){const _0x51f84b=[_0x4b7cbd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b7cbd([0x74,0x72,0x69,0x61,0x6c])][_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19affa/0x3e8:0xe10*_0x1cfd17;return _0xf2bdb1[_0x4b7cbd([0x65,0x78,0x70])]<_0x51f84b;}function _0x129f56(){const _0x4190d9=_0xf2bdb1[_0x4b7cbd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4190d9)return!0x1;if(_0x4190d9[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x2a])))return!0x0;if(_0x4190d9[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x52,0x48])))return!0x0;if(_0x4190d9[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x52,0x52,0x48]))){if(_0x131f93())return!0x0;if(_0x3b9145()||_0x5ce27d())return!0x0;}return!0x1;}function _0x51be32(){const _0x23c5c5=_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23c5c5||0x0==_0x23c5c5[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x232f20}=new URL(window[_0x4b7cbd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23c5c5[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x232f20))return!0x0;const _0x112d09=_0x232f20[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e]));return _0x23c5c5[_0x4b7cbd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bf85d=>_0x3bf85d[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x2a])))[_0x4b7cbd([0x6d,0x61,0x70])](_0x131b9d=>_0x131b9d[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e])))[_0x4b7cbd([0x73,0x6f,0x6d,0x65])](_0x137921=>_0x112d09[_0x4b7cbd([0x65,0x76,0x65,0x72,0x79])]((_0x3e8130,_0x44d5a5)=>_0x137921[_0x44d5a5]===_0x3e8130||_0x137921[_0x44d5a5]===_0x4b7cbd([0x2a])));}function _0x16e9c4(){return _0x6c4cef&&_0x3706a5?new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39172a,_0x5e55d3)=>{_0x6c4cef[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x39172a,_0x5e55d3),_0x3706a5[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x1fa348=>{_0x1fa348!=_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64])&&_0x39172a(_0x1fa348);},_0x5e55d3);}):_0x6c4cef||_0x3706a5||_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d959b(_0x20ac21,_0x5b2be8){return new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a392a=>{if(_0x5760c2())return _0x3a392a(_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64]));_0x2a4b1a(),_0x5885a6[_0x4b7cbd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b7cbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22500f=!0x1;const _0x411340=_0x11cac6();function _0x1bc9d1(_0x174ce5){return!!_0x174ce5&&(typeof _0x174ce5===_0x4b7cbd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x174ce5===_0x4b7cbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x174ce5[_0x4b7cbd([0x74,0x68,0x65,0x6e])]===_0x4b7cbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x174ce5[_0x4b7cbd([0x63,0x61,0x74,0x63,0x68])]===_0x4b7cbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa80e67(_0x344188){_0x47a62d(_0x344188)[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x2a7497=>{if(!_0x2a7497||_0x2a7497[_0x4b7cbd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b7cbd([0x6f,0x6b]))return _0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x513f15(_0x285a49(_0x411340+_0x5b2be8))!=_0x2a7497[_0x4b7cbd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x436661=>(_0x9a5e99(),_0x436661),()=>{const _0x59341a=_0x3e22d8();return null==_0x59341a?(_0x9a5e99(),_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64])):_0x4b7cbd(_0x19affa-_0x59341a>(0x42c0a3bb^_0x322501)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x3a392a)[_0x4b7cbd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a392a(_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x564cd1=0x66fac93b^_0x322501;function _0x9a5e99(){const _0x4356bf=_0x4b7cbd([0x6c,0x6c,0x63,0x74,0x2d])+_0x513f15(_0x285a49(_0x20ac21)),_0x1923d3=_0x5894bd(_0x513f15(window[_0x4b7cbd([0x4d,0x61,0x74,0x68])][_0x4b7cbd([0x63,0x65,0x69,0x6c])](_0x19affa/_0x564cd1)));window[_0x4b7cbd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b7cbd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4356bf,_0x1923d3);}function _0x3e22d8(){const _0x3f52f0=_0x4b7cbd([0x6c,0x6c,0x63,0x74,0x2d])+_0x513f15(_0x285a49(_0x20ac21)),_0x263d9f=window[_0x4b7cbd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b7cbd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f52f0);return _0x263d9f?window[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5894bd(_0x263d9f),0x10)*_0x564cd1:null;}function _0x47a62d(_0x2babe4){return new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10162f,_0xe96d29)=>{_0x2babe4[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x10162f,_0xe96d29),window[_0x4b7cbd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe96d29,0x66cdf37b^_0x322501);});}}_0x5885a6[_0x4b7cbd([0x6f,0x6e])](_0x4b7cbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x143e93,_0x5902cb)=>{if(_0x5902cb[0x0]!=_0x20ac21)return _0x3a392a(_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5902cb[0x1]={..._0x5902cb[0x1],[_0x4b7cbd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x411340};},{[_0x4b7cbd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b7cbd([0x68,0x69,0x67,0x68])}),_0x5885a6[_0x4b7cbd([0x6f,0x6e])](_0x4b7cbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40f514=>{_0x1bc9d1(_0x40f514[_0x4b7cbd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22500f=!0x0,_0xa80e67(_0x40f514[_0x4b7cbd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b7cbd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b7cbd([0x6c,0x6f,0x77])}),_0x1c4d69[_0x4b7cbd([0x74,0x68,0x65,0x6e])](()=>{_0x22500f||_0x3a392a(_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5760c2(){return _0x5885a6[_0x4b7cbd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b7cbd([0x76,0x69,0x65,0x77])][_0x4b7cbd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b7cbd([0x61,0x75,0x74,0x6f]);}function _0x2a4b1a(){_0x5885a6[_0x4b7cbd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b7cbd([0x76,0x69,0x65,0x77])][_0x4b7cbd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b7cbd([0x61,0x75,0x74,0x6f]);}}function _0x25ed22(_0x44929f){const _0x21cc1d=[new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aec14=>setTimeout(_0x3aec14,0x66c51977^_0x322501)),_0x1c4d69[_0x4b7cbd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34bf08=>{const _0x3b5305=0x66cc27bc^_0x322501,_0x1a1fb6=_0x35c228[_0x4b7cbd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2056a3(){_0x1a1fb6[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3b5305&&_0x34bf08();}_0x2056a3(),_0x1a1fb6[_0x4b7cbd([0x6f,0x6e])](_0x4b7cbd([0x61,0x64,0x64]),_0x2056a3);})),new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f241f=>{function _0x226298(){for(const _0x43da2f in window)if(window[_0x4b7cbd([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4b7cbd([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x43da2f))&&window[_0x43da2f]==_0x4e10cc)return _0x2f241f();_0x5885a6[_0x4b7cbd([0x73,0x74,0x61,0x74,0x65])]!=_0x4b7cbd([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4b7cbd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x226298,0x66cc3433^_0x322501);}_0x9b6393(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x226298();})];return window[_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b7cbd([0x72,0x61,0x63,0x65])](_0x21cc1d)[_0x4b7cbd([0x74,0x68,0x65,0x6e])](()=>_0x44929f);}async function _0x2c7a55(){if(await _0x1c4d69,_0x9b6393(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11c2b8=_0x35c228[_0x4b7cbd([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2133af=_0x35c228[_0x4b7cbd([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])](_0x11c2b8[_0x4b7cbd([0x69,0x64])]),_0x1bbd3e=_0x1457f9(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1bbd3e[_0x4b7cbd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11c2b8['id'],_0x2133af?_0x2133af['id']:null,!0x0),_0x1bbd3e[_0x4b7cbd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bbd3e[_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bbd3e[_0x4b7cbd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5cf779,void(_0x1bbd3e[_0x4b7cbd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5cf779);}if(_0x9b6393(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4907ad=_0x1457f9(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4907ad[_0x4b7cbd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4907ad[_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4907ad[_0x4b7cbd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5cf779,_0x4907ad[_0x4b7cbd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5cf779;}_0x5885a6[_0x4b7cbd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b7cbd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cf779,_0x5885a6[_0x4b7cbd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b7cbd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cf779,_0x5885a6[_0x4b7cbd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b7cbd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x131f93(){return _0x9b6393(_0x4b7cbd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1457f9(_0x4b7cbd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4b7cbd([0x73,0x74,0x61,0x74,0x65])]==_0x4b7cbd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3b9145(){return _0x9b6393(_0x4b7cbd([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 _0x5ce27d(){return _0x9b6393(_0x4b7cbd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9293bc(_0x504367){const _0x43c6f3=_0x634712();_0x5885a6[_0x43c6f3]=_0x4b7cbd([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])+_0x504367,_0x504367[_0x4b7cbd([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4b7cbd([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x634712()]=_0x4e10cc),_0x504367!=_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64])&&_0x2c7a55();}function _0x634712(){const _0xa4343c=window[_0x4b7cbd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b7cbd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b7cbd([0x6e,0x6f,0x77])]())[_0x4b7cbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b7cbd([0x2e]),'');let _0x1039de=_0x4b7cbd([0x79]);for(let _0x385885=0x0;_0x385885<_0xa4343c[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x385885+=0x2){let _0x1f4678=window[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa4343c[_0x4b7cbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x385885,_0x385885+0x2));_0x1f4678>=_0x2d31ae[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f4678-=_0x2d31ae[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1039de+=_0x2d31ae[_0x1f4678];}return _0x1039de;}function _0x5d6222(){const _0x27ac5e=_0x35ee55[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e]));if(0x3!=_0x27ac5e[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d0eab(_0x27ac5e[0x1]);function _0x2d0eab(_0xce6310){const _0x1e03dc=_0x3b2d49(_0xce6310);return _0x1e03dc&&_0x580c7f()?_0x1e03dc:null;function _0x580c7f(){const _0x1fc083=_0x1e03dc[_0x4b7cbd([0x6a,0x74,0x69])],_0x454c4d=window[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fc083[_0x4b7cbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fc083[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d7015={..._0x1e03dc,[_0x4b7cbd([0x6a,0x74,0x69])]:_0x1fc083[_0x4b7cbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fc083[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d7015[_0x4b7cbd([0x76,0x63])],_0x285a49(_0x3d7015)==_0x454c4d;}}}async function _0x19fca9(){let _0x167f60=!0x0;try{const _0x19e8df=_0x35ee55[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e])),[_0x2b19a2,_0x52ff4c,_0x28aff9]=_0x19e8df;return _0x362a9f(_0x2b19a2),await _0x5b5a8b(_0x2b19a2,_0x52ff4c,_0x28aff9),_0x167f60;}catch(_0x36646d){return!0x1;}function _0x362a9f(_0x26ccae){const _0x14a756=_0x3b2d49(_0x26ccae);_0x14a756&&_0x14a756[_0x4b7cbd([0x61,0x6c,0x67])]==_0x4b7cbd([0x45,0x53,0x32,0x35,0x36])||(_0x167f60=!0x1);}async function _0x5b5a8b(_0x23b0fb,_0x18a11a,_0x1d7acf){const _0x30c899=window[_0x4b7cbd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b7cbd([0x66,0x72,0x6f,0x6d])](_0x2a4649(_0x1d7acf),_0x4d2161=>_0x4d2161[_0x4b7cbd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x118a19=new window[(_0x4b7cbd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b7cbd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23b0fb+_0x4b7cbd([0x2e])+_0x18a11a),_0x18d573=window[_0x4b7cbd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b7cbd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18d573)return;const _0x18db43=await _0x18d573[_0x4b7cbd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b7cbd([0x6a,0x77,0x6b]),_0x356fcf,{[_0x4b7cbd([0x6e,0x61,0x6d,0x65])]:_0x4b7cbd([0x45,0x43,0x44,0x53,0x41]),[_0x4b7cbd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b7cbd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b7cbd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18d573[_0x4b7cbd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b7cbd([0x6e,0x61,0x6d,0x65])]:_0x4b7cbd([0x45,0x43,0x44,0x53,0x41]),[_0x4b7cbd([0x68,0x61,0x73,0x68])]:{[_0x4b7cbd([0x6e,0x61,0x6d,0x65])]:_0x4b7cbd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18db43,_0x30c899,_0x118a19)||(_0x167f60=!0x1);}}function _0x3b2d49(_0x10932d){return _0x10932d[_0x4b7cbd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b7cbd([0x65,0x79]))?JSON[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65])](_0x2a4649(_0x10932d)):null;}function _0x2a4649(_0x4a31f5){return window[_0x4b7cbd([0x61,0x74,0x6f,0x62])](_0x4a31f5[_0x4b7cbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b7cbd([0x2b]))[_0x4b7cbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b7cbd([0x2f])));}function _0x285a49(_0x4e7871){let _0x17ae49=0x1505;function _0x4487b5(_0xfc62cc){for(let _0x40503b=0x0;_0x40503b<_0xfc62cc[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40503b++){const _0x514c5e=_0xfc62cc[_0x4b7cbd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40503b);_0x17ae49=(_0x17ae49<<0x5)+_0x17ae49+_0x514c5e,_0x17ae49&=_0x17ae49;}}function _0x9f8332(_0x39bed5){Array[_0x4b7cbd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39bed5)?_0x39bed5[_0x4b7cbd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9f8332):_0x39bed5&&typeof _0x39bed5==_0x4b7cbd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b7cbd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39bed5)[_0x4b7cbd([0x73,0x6f,0x72,0x74])]()[_0x4b7cbd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51957b,_0x50b26f])=>{_0x4487b5(_0x51957b),_0x9f8332(_0x50b26f);}):_0x4487b5(window[_0x4b7cbd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39bed5));}return _0x9f8332(_0x4e7871),_0x17ae49>>>0x0;}function _0x513f15(_0x89ca0){return _0x89ca0[_0x4b7cbd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b7cbd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b7cbd([0x30]));}function _0x5894bd(_0x2ab4d6){return _0x2ab4d6[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b7cbd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b7cbd([0x6a,0x6f,0x69,0x6e])]('');}function _0x9b6393(_0x448706){return _0x5885a6[_0x4b7cbd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b7cbd([0x68,0x61,0x73])](_0x448706);}function _0x1457f9(_0x5da43e){return _0x5885a6[_0x4b7cbd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b7cbd([0x67,0x65,0x74])](_0x5da43e);}function _0x5cf779(){}function _0x4b7cbd(_0x1a8cfd){return _0x1a8cfd['map'](_0x39a781=>String['fromCharCode'](_0x39a781))['join']('');}_0x9293bc(await _0x4a63dc());}(this);}['createRevision'](_0x40053b){const _0x3da2cb=this['editor']['plugins']['get']('Users');return new h({'id':_0x40053b['id'],'name':_0x40053b['name'],'creator':_0x40053b['creatorId']?_0x3da2cb['getUser'](_0x40053b['creatorId']):null,'diffData':_0x40053b['diffData']||_0x40053b['data'],'authors':_0x40053b['authorsIds']['map'](_0x88531e=>_0x3da2cb['getUser'](_0x88531e)),'createdAt':new Date(_0x40053b['createdAt']),'attributes':_0x40053b['attributes'],'fromVersion':_0x40053b['fromVersion'],'toVersion':_0x40053b['toVersion']});}['addRevision'](_0x9bb991,_0x1660cd=0x0){this['_revisions']['add'](_0x9bb991,_0x1660cd);}['getRevision'](_0x38fa52){return this['_revisions']['get'](_0x38fa52);}['getRevisions'](_0x1975d0={'toJSON':!0x1}){const _0x35965b=Array['from'](this['_revisions']);return _0x35965b['reverse'](),_0x1975d0['toJSON']?_0x35965b['map'](_0x46407e=>_0x46407e['toJSON']()):_0x35965b;}['getIndex'](_0x9274cd){return this['_revisions']['getIndex'](_0x9274cd);}['getEarlierVisibleRevision'](_0x5d7407){const [,_0x80ec36]=this['getRevisionsIterator'](_0x5d7407,{'direction':'earlier'});return _0x80ec36;}['getLaterVisibleRevision'](_0x41c34b){const [,_0x54c978]=this['getRevisionsIterator'](_0x41c34b,{'direction':'later'});return _0x54c978;}['getRevisionsInDiff'](_0x5b8a45){const _0x444951=[];for(const _0x1677d3 of this['getRevisionsIterator'](_0x5b8a45['newRevisionId']))if(_0x444951['push'](_0x1677d3),_0x1677d3['id']===_0x5b8a45['oldRevisionId'])break;return _0x444951;}*['getRevisionsIterator'](_0x2a120f,{direction:_0xeb49fa='earlier',filter:_0x911658=()=>!0x0}={}){const _0x3030e1='earlier'===_0xeb49fa?0x1:-0x1;let _0x5f2cda=this['_revisions']['get'](_0x2a120f),_0x51ea4c=this['getIndex'](_0x5f2cda);for(yield _0x5f2cda;_0x5f2cda;){if(_0x51ea4c+=_0x3030e1,_0x5f2cda=this['getRevision'](_0x51ea4c),!_0x5f2cda)return;_0x911658(_0x5f2cda)&&(yield _0x5f2cda);}}}function m(_0x2d1d3a,_0x1bff92,_0x475b45){const t=_0x2d1d3a['t'];switch(_0x1bff92){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'},_0x475b45);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x475b45);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'';}}const E={'c':_0x30d263,'a':_0x544f6d,'e':_0x155563,'r':_0x226a61,'u':_0x14dc4c};class u extends _0x1947b9{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3da1a3,j,_0x98a53];}constructor(_0x2a027f){super(_0x2a027f),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4e521a=_0x11cac6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4e521a},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['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5a2e8b=this['repository']['getRevision'](0x0),_0x16fdaa=_0x5a2e8b&&null===_0x5a2e8b['creator']?_0x5a2e8b:null;if(this['_continueCurrentRevision']=!!_0x16fdaa&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xa550c6=this['_source']['getCurrentRevisionId'](),_0x3d93c4=this['repository']['getRevision'](_0xa550c6);if(_0x3d93c4)this['_startingVersion']=_0x3d93c4['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2ef583=this['_source']['history']['_operations']['find'](_0x55c6a1=>!_0x55c6a1['_isInit']),_0x31f170=_0x2ef583?_0x2ef583['baseVersion']:this['_source']['history']['version'];_0x5a2e8b?(_0x5a2e8b['toVersion']<_0x31f170&&_0x5a2e8b['_update']({'toVersion':_0x31f170}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x16fdaa['id'],this['_startingVersion']=_0x16fdaa['fromVersion']):(this['_startingVersion']=_0x5a2e8b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x31f170,this['_continueCurrentRevision']=!0x1);}}else _0x16fdaa&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x16fdaa['toVersion'],this['editor']['model']['document']['history']['version']),_0x16fdaa['fromVersion']===_0x16fdaa['toVersion']?(0x0!==_0x16fdaa['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x16fdaa['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x16fdaa['id'],this['_startingVersion']=_0x16fdaa['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',_0x301486=>!_0x301486),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x159f47=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22d362;for(const _0x33d03c in _0x159f47){const _0x55892b=_0x33d03c,_0x1913c7=_0x159f47[_0x55892b];if('revisionHistoryLicenseKeyValid'==_0x1913c7||'revisionHistoryLicenseKeyInvalid'==_0x1913c7||'revisionHistoryLicenseKeyExpired'==_0x1913c7||'revisionHistoryLicenseKeyDomainLimit'==_0x1913c7||'revisionHistoryLicenseKeyNotAllowed'==_0x1913c7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1913c7||'revisionHistoryLicenseKeyTrialLimit'==_0x1913c7||'revisionHistoryLicenseKeyUsageLimit'==_0x1913c7){delete _0x159f47[_0x55892b],_0x22d362=_0x1913c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x22d362&&_0x159f47['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x22d362&&_0x159f47['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x22d362&&_0x159f47['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x22d362&&_0x159f47['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x22d362&&_0x159f47['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x22d362&&_0x159f47['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x22d362&&_0x159f47['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xef2029=this['repository']['getRevision'](0x0),_0x519b66=await this['getRevisionDocumentData'](_0xef2029),_0xcf51b6=await this['getRevisionRootsAttributes'](_0xef2029);this['_replaceEditorDataWithRevisionData'](_0x519b66,_0xcf51b6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x17e360){this['_source']=_0x17e360;}async['update'](){const _0x229092=await this['_source']['getLatestVersion']();if(_0x229092>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4c9cc7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x229092});_0x4c9cc7['authors']=_0x4c9cc7['authorsIds']['map'](_0x335339=>this['editor']['plugins']['get']('Users')['getUser'](_0x335339)),this['currentRevision']['_update'](_0x4c9cc7);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x2f6739={},_0x5aeb74=null){const _0x2f9378=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5aeb74>this['currentRevision']['toVersion']&&(_0x5aeb74=null),null===_0x5aeb74&&(_0x5aeb74=await this['_source']['getLatestVersion']());const _0x3b92a7=this['_getFromVersion'](_0x5aeb74),_0x32447c=this['buildRevisionData']({'from':_0x3b92a7,'to':_0x5aeb74});if(this['currentRevision']['toVersion']<_0x5aeb74){const _0x36ef9b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5aeb74,'to':_0x5aeb74});_0x36ef9b['authors']=[],_0x36ef9b['authorsIds']=[],_0x36ef9b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x36ef9b,!0x0),delete _0x36ef9b['authors'],_0x2f9378['push'](_0x36ef9b);}_0x2f6739['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f6739['name']=_0x2f6739['name']||null,_0x2f6739['id']=_0x2f6739['id']||_0x11cac6(),_0x2f6739={..._0x2f6739,..._0x32447c};const _0x3b8cb9=this['addRevisionData'](_0x2f6739);_0x2f9378['push'](_0x2f6739);const _0x1a2af1=this['repository']['getIndex'](_0x3b8cb9);if(0x0!==_0x1a2af1){const _0x50b4e4=this['repository']['getRevision'](_0x1a2af1-0x1);if(_0x50b4e4['fromVersion']!==_0x5aeb74){const _0x17591f=this['_revisionDataBuilder']['getData'](_0x5aeb74,_0x50b4e4['toVersion']),_0x135a6c={'id':_0x50b4e4['id'],'diffData':_0x17591f['diffData'],'authorsIds':_0x17591f['authorsIds'],'authors':_0x17591f['authorsIds']['map'](_0x238af8=>this['editor']['plugins']['get']('Users')['getUser'](_0x238af8)),'fromVersion':_0x5aeb74};_0x50b4e4===this['currentRevision']&&(_0x135a6c['createdAt']=new Date(_0x2f6739['createdAt']['getTime']()+0xa)),_0x50b4e4['_update'](_0x135a6c,!0x0),delete _0x135a6c['authors'],_0x2f9378['push'](_0x135a6c);}}if(this['adapter']){for(const _0x3faea7 of _0x2f9378)this['_bufferUpdate'](_0x3faea7['id'],_0x3faea7,!0x0);this['sendBufferedUpdates']();}return _0x3b8cb9;}['addRevisionData'](_0x564aed){const _0x1bb9cb=this['repository']['createRevision'](_0x564aed);return this['adapter']&&_0x1bb9cb['on']('_update',(_0x4b2d46,_0x558869,_0x3bea6e)=>{_0x3bea6e||(this['_bufferUpdate'](_0x558869['id'],_0x558869,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1bb9cb,this['_findInsertionIndex'](_0x1bb9cb)),_0x1bb9cb;}async['getRevisionDocumentData'](_0x58cfb0){await this['_loadRevisionData'](_0x58cfb0);const _0x111fb0={};for(const _0x1475f4 in _0x58cfb0['diffData']){if(_0x58cfb0['diffData'][_0x1475f4]['attachChange']&&!_0x58cfb0['diffData'][_0x1475f4]['attachChange']['isAttached'])continue;const _0x974c10=this['_removeRevisionMarkers'](JSON['parse'](_0x58cfb0['diffData'][_0x1475f4]['insertions'])),_0x3740e3=this['editor']['editing']['view']['document'],_0x1853e7=new _0x26a069(_0x3740e3,_0x974c10['map'](_0x29c917=>P(_0x29c917,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x111fb0[_0x1475f4]=this['editor']['data']['processor']['toData'](_0x1853e7),this['editor']['data']['processor']['useFillerType']('default');}return _0x111fb0;}async['getRevisionRootsAttributes'](_0x50423c){await this['_loadRevisionData'](_0x50423c);const _0x495c04={};for(const _0x4245e8 in _0x50423c['diffData'])_0x50423c['diffData'][_0x4245e8]['attachChange']&&!_0x50423c['diffData'][_0x4245e8]['attachChange']['isAttached']||(_0x495c04[_0x4245e8]=_0x50423c['diffData'][_0x4245e8]['attributesAfter']||{});return _0x495c04;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x140843=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x11287d=0x0;_0x11287d<_0x140843['length'];_0x11287d++){const _0x1f72c8=_0x140843[_0x11287d];let _0x431d45=!0x1;for(const _0x2b59cc of Object['keys'](_0x1f72c8))void 0x0===_0x1f72c8[_0x2b59cc]?delete _0x1f72c8[_0x2b59cc]:'id'!==_0x2b59cc&&(_0x431d45=!0x0);_0x431d45||(_0x140843[_0x11287d]=null);}if(_0x140843=_0x140843['filter'](_0x3726dc=>null!==_0x3726dc),!_0x140843['length'])return;for(let _0xd766c3=0x0;_0xd766c3<_0x140843['length'];_0xd766c3++){const _0x2b2e91=_0x140843[_0xd766c3];void 0x0!==_0x2b2e91['fromVersion']&&void 0x0===_0x2b2e91['toVersion']&&(_0x2b2e91['toVersion']=this['repository']['getRevision'](_0x2b2e91['id'])['toVersion']),void 0x0!==_0x2b2e91['toVersion']&&void 0x0===_0x2b2e91['fromVersion']&&(_0x2b2e91['fromVersion']=this['repository']['getRevision'](_0x2b2e91['id'])['fromVersion']);}const _0x39b341=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x140843,_0x39b341)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1945aa=>{if(_0x1945aa){for(const _0x32c738 of _0x1945aa)this['setRevisionData']({'id':_0x32c738['id'],'createdAt':_0x32c738['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1a5893,_0x19139e){let _0x59ad5a=this['editor']['config']['get']('initialData'),_0xbb7bdb=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x59ad5a){_0x59ad5a={};for(const _0xed4963 of this['editor']['model']['document']['getRootNames']())_0x59ad5a[_0xed4963]='';}if('string'==typeof _0x59ad5a&&(_0x59ad5a={'main':_0x59ad5a}),void 0x0===_0xbb7bdb){_0xbb7bdb={};for(const _0x193218 of this['editor']['model']['document']['getRootNames']())_0xbb7bdb[_0x193218]={};}let _0x46446a=!0x1;const _0x1461d1=Object['keys'](_0x59ad5a),_0x16f906=Object['keys'](_0x1a5893);for(const _0x2d76f5 of _0x1461d1){if(_0x59ad5a[_0x2d76f5]!==_0x1a5893[_0x2d76f5]&&''!==_0x59ad5a[_0x2d76f5]['trim']()){_0x46446a=!0x0;break;}if(!_0x426189(_0xbb7bdb[_0x2d76f5],_0x19139e[_0x2d76f5])&&Object['keys'](_0xbb7bdb[_0x2d76f5])['length']>0x0){_0x46446a=!0x0;break;}}_0x46446a||(_0x46446a=_0x16f906['some'](_0x26f5e4=>!this['editor']['model']['document']['getRoot'](_0x26f5e4))),_0x46446a&&_0x26f557('editor-initial-data-replaced-with-revision-data',{'editorData':_0x59ad5a,'editorRootsAttributes':_0xbb7bdb,'revisionData':_0x1a5893,'revisionRootsAttributes':_0x19139e}),this['editor']['config']['set']('initialData',_0x1a5893),this['editor']['config']['set']('rootsAttributes',_0x19139e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1f4ff6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1f4ff6['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5cd74f){const _0x45a9d6=this['repository']['getRevisions']();_0x45a9d6['reverse']();let _0x4813dd=0x0;for(;_0x4813dd<_0x45a9d6['length'];){const _0xf06323=_0x45a9d6[_0x4813dd];if(_0xf06323===this['currentRevision']){_0x4813dd++;continue;}if(_0xf06323['id']===this['_initialRevisionId'])break;const _0x176cd5=_0x5cd74f['toVersion']-_0xf06323['toVersion']||_0x5cd74f['fromVersion']-_0xf06323['fromVersion'];if(_0x176cd5>0x0)break;if(_0x176cd5<0x0)_0x4813dd++;else{if(!_0x5cd74f['creator']&&_0xf06323['creator'])break;if(_0xf06323['creator']||!_0x5cd74f['creator']){if(_0x5cd74f['createdAt']>_0xf06323['createdAt'])break;_0x4813dd++;}else _0x4813dd++;}}return _0x4813dd;}['setRevisionData'](_0x29c467){const _0x10edef=this['repository']['getRevision'](_0x29c467['id']);if(_0x29c467['createdAt']&&(_0x29c467['createdAt']=new Date(_0x29c467['createdAt'])),_0x29c467['authorsIds']){const _0x27f06f=this['editor']['plugins']['get']('Users');_0x29c467['authors']=_0x29c467['authorsIds']['map'](_0x578ee0=>_0x27f06f['getUser'](_0x578ee0));}_0x10edef['_update'](_0x29c467,!0x0);}['buildRevisionData']({revision:_0x192e61=null,from:_0x4dfbd0=null,to:_0x5ebdde=null}){_0x4dfbd0=null!==_0x4dfbd0?_0x4dfbd0:_0x192e61['fromVersion'],_0x5ebdde=null!==_0x5ebdde?_0x5ebdde:_0x192e61['toVersion'];const _0x43f5b6=this['_revisionDataBuilder']['getData'](_0x4dfbd0,_0x5ebdde),_0x1e6959={'diffData':_0x43f5b6['diffData'],'authorsIds':_0x43f5b6['authorsIds'],'fromVersion':_0x4dfbd0,'toVersion':_0x5ebdde};if(!_0x192e61||_0x5ebdde!==_0x192e61['toVersion']){const _0x4ecda5=_0x5ebdde-0x1,_0x5870da=this['_source']['history']['getOperation'](_0x4ecda5);_0x1e6959['createdAt']=_0x5870da&&_0x5870da['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4dfbd0===this['_loadedStateData']['fromVersion']){for(const _0x80d08f of this['_loadedStateData']['authors'])_0x1e6959['authorsIds']['includes'](_0x80d08f['id'])||_0x1e6959['authorsIds']['push'](_0x80d08f['id']);}return _0x1e6959;}['_loadRevisionData'](_0x12a6f1){if(!_0x12a6f1||_0x12a6f1['diffData'])return Promise['resolve']();{const _0x48be1d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x48be1d,'revisionId':_0x12a6f1['id']})['then'](_0x4d3c19=>{_0x12a6f1['diffData']=_0x4d3c19['diffData'];});}}['_bufferUpdate'](_0x1a324e,_0x4f1250,_0x13999a){if(this['_bufferedUpdates']['has'](_0x1a324e)){const _0x2d0480=this['_bufferedUpdates']['get'](_0x1a324e);_0x4f1250=_0x13999a?{..._0x2d0480,..._0x4f1250}:{..._0x4f1250,..._0x2d0480};}this['_bufferedUpdates']['set'](_0x1a324e,_0x4f1250);}['_getFromVersion'](_0x32fa6a){const _0x10e934=this['repository']['getRevisions']();_0x10e934['reverse'](),_0x10e934['shift']();const _0x5ba07f=_0x10e934['find'](_0x2d6443=>_0x2d6443['toVersion']<=_0x32fa6a)['toVersion'];return _0x5ba07f<this['_startingVersion']?this['_startingVersion']:_0x5ba07f;}['_createInitialRevision'](_0x1dff86){const _0x58ed8e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x58ed8e)this['_initialRevisionId']=_0x58ed8e['id'];else{const _0x3c8d99=!this['editor']['model']['document']['roots']['find'](_0x55471d=>this['editor']['model']['hasContent'](_0x55471d)),_0x427ae3=this['editor']['plugins']['get']('Users')['me']['id'],_0x6d73f5=m(this['editor']['locale'],_0x3c8d99?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1dff86,'to':_0x1dff86,'id':this['_initialRevisionId'],'name':_0x6d73f5,'creatorId':_0x427ae3});}}['_createCurrentRevision'](_0x49f20d){const _0x54da1b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x54da1b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x49f20d,'to':_0x49f20d,'id':_0x54da1b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x221f3d,from:_0x478d18,to:_0x2de09c,creatorId:_0x2203c9,id:_0x22121b}){const _0x2019fd=this['buildRevisionData']({'from':_0x478d18,'to':_0x2de09c});_0x2019fd['name']=_0x221f3d,_0x2019fd['creatorId']=_0x2203c9,_0x2019fd['id']=_0x22121b;const _0x2e03ca=this['addRevisionData'](_0x2019fd);return this['adapter']&&this['_bufferUpdate'](_0x2019fd['id'],_0x2019fd,!0x0),_0x2e03ca;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4aba9a){return(_0x4aba9a=_0x4aba9a['filter'](_0x144ece=>!_0x144ece['name']||'revision-start'!==_0x144ece['name']&&'revision-end'!==_0x144ece['name']))['forEach'](_0x22bf06=>{'string'!=typeof _0x22bf06&&(_0x22bf06['children']=this['_removeRevisionMarkers'](_0x22bf06['children']),_0x22bf06['attributes']=_0x22bf06['attributes']['filter'](_0x5ae73f=>!_0x5ae73f[0x0]['startsWith']('data-revision-')));}),_0x4aba9a;}}function P(_0x3513d8,_0x3193b5){const _0x679610=_0x3193b5['editing']['view']['document'];if('string'==typeof _0x3513d8)return new _0x29f1b1(_0x679610,_0x3513d8);{const _0x373576=_0x3513d8['children']['map'](_0x5f2404=>P(_0x5f2404,_0x3193b5));return new(E[_0x3513d8['type']]||_0x59bd53)(_0x679610,_0x3513d8['name'],_0x3513d8['attributes'],_0x373576);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3b788b){this['editor']=_0x3b788b,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'](_0x2053d7){this['source']=_0x2053d7;const _0x5ceb1c=new Map(),_0x3844=new Map(),_0x118685=this['editor']['model']['document']['roots']['map'](_0x537992=>_0x537992['rootName']);for(const _0x22d633 of _0x118685){const _0x196294=this['editor']['model']['document']['getRoot'](_0x22d633),_0x47dc4c=T(_0x196294);_0x5ceb1c['set'](_0x22d633,_0x47dc4c),_0x3844['set'](_0x22d633,Object['fromEntries'](_0x196294['getAttributes']()));}const _0x3fe638=Array['from'](this['editor']['model']['markers'])['map'](_0x1128d2=>[_0x1128d2['name'],_0x1128d2['getRange']()]),_0x84cc45=this['source']['version'];this['_saveMetaData'](_0x84cc45,_0x5ceb1c,_0x3fe638,_0x3844),this['_startingRevisionId']=this['_revisionId'];const _0x383a78=new Map(),_0x48c23f=new Map();for(const _0x286a31 of _0x118685){const _0x1b95c1=F(_0x286a31);_0x383a78['set'](_0x286a31,_0x1b95c1),_0x48c23f['set'](_0x286a31,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x383a78,[],_0x48c23f);}['getData'](_0x384180,_0xe73747){if(this['_lastFrom']===_0x384180&&this['_lastTo']<=_0xe73747)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xe73747,!0x0);else{if(!this['_savedMetaData']['has'](_0x384180)){const _0x47d049=this['_getPreviousFrom'](_0x384180);this['_calculateMetaData'](_0x47d049,_0x384180,!0x1);}this['_calculateMetaData'](_0x384180,_0xe73747,!0x0);}return this['_lastFrom']=_0x384180,this['_lastTo']=_0xe73747,this['_getState']();}['loadState'](_0x490707){this['_reset'](),this['_lastFrom']=_0x490707['fromVersion'],this['_lastTo']=_0x490707['toVersion'];for(const _0x43a50b in _0x490707['diffData']){const _0x129191=_0x490707['diffData'][_0x43a50b]['attachChange'],_0x3b1cf8=_0xd3d7c6(_0x490707['diffData'][_0x43a50b]['attributesBefore'])||{},_0x39981e=this['_makeModelFromViewString'](_0x490707['diffData'][_0x43a50b]['deletions']);_0x39981e['rootName']=_0x43a50b,_0x39981e['_isAttached']=!_0x129191||!_0x129191['isAttached'],_0x39981e['isAttached']=()=>_0x39981e['_isAttached'],this['_baseRoots']['set'](_0x43a50b,_0x39981e),this['_baseRootsAttributes']['set'](_0x43a50b,_0x3b1cf8),_0x129191&&this['_touchedRoots']['set'](_0x43a50b,_0x129191);const _0x41a8d7=this['_makeIdsRoot'](_0x39981e);this['_baseIdsRoots']['set'](_0x43a50b,_0x41a8d7);for(const [_0x326e98,_0x5c5111]of _0x39981e['markers']){if(!_0x326e98['startsWith']('revision:'))continue;const _0x28563e=_0x326e98['split'](':')[0x2];for(const _0x538de2 of _0x5c5111['getWalker']({'singleCharacters':!0x0})){const _0x438adc=this['_getVidAttributeName'](_0x538de2),_0x3d49e4='elementEnd'==_0x538de2['type']?_0x538de2['previousPosition']['path']['slice'](0x0,-0x1):_0x538de2['previousPosition']['path'],_0xdae3d1=_0x41a8d7['getNodeByPath'](_0x3d49e4)['getAttribute'](_0x438adc);this['_touched']['set'](_0xdae3d1,{'userId':_0x28563e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x18cac7=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x32beea=>!this['_touched']['has'](_0x32beea));let _0x18cafd=0x0;const _0x1ea706=new Map();for(const _0x3b1ace in _0x490707['diffData']){const _0x16997d=_0x490707['diffData'][_0x3b1ace]['attachChange'],_0xeca1b1=_0xd3d7c6(_0x490707['diffData'][_0x3b1ace]['attributesAfter'])||{},_0x344648=this['_makeModelFromViewString'](_0x490707['diffData'][_0x3b1ace]['insertions']);_0x344648['rootName']=_0x3b1ace,_0x344648['_isAttached']=!_0x16997d||_0x16997d['isAttached'],_0x344648['isAttached']=()=>_0x344648['_isAttached'],this['_diffRoots']['set'](_0x3b1ace,_0x344648),this['_diffRootsAttributes']['set'](_0x3b1ace,_0xeca1b1);const _0x3509b4=this['_makeIdsRoot'](_0x344648,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3b1ace,_0x3509b4),_0x1ea706['set'](_0x3b1ace,_0x344648['isAttached']()?_0xeca1b1:{});for(const [_0x985e50,_0x21e6e3]of _0x344648['markers']){if(!_0x985e50['startsWith']('revision:'))continue;const _0x1c83c6=_0x985e50['split'](':')[0x2];for(const _0x1d1b5b of _0x21e6e3['getWalker']({'singleCharacters':!0x0})){const _0x3690c3=this['_getVidAttributeName'](_0x1d1b5b),_0x2204f1=this['_revisionId']++,_0x5a51d8='elementEnd'==_0x1d1b5b['type']?_0x1d1b5b['previousPosition']['path']['slice'](0x0,-0x1):_0x1d1b5b['previousPosition']['path'];_0x3509b4['getNodeByPath'](_0x5a51d8)['_setAttribute'](_0x3690c3,_0x2204f1),this['_touched']['set'](_0x2204f1,{'userId':_0x1c83c6});}}for(const _0x3f844f of this['editor']['model']['createRangeIn'](_0x344648)['getWalker']({'singleCharacters':!0x0})){const _0x225c08=this['_getVidAttributeName'](_0x3f844f),_0x49303f='elementEnd'==_0x3f844f['type']?_0x3f844f['previousPosition']['path']['slice'](0x0,-0x1):_0x3f844f['previousPosition']['path'],_0x4d1520=_0x3509b4['getNodeByPath'](_0x49303f);_0x4d1520['getAttribute'](_0x225c08)>0x0||_0x4d1520['_setAttribute'](_0x225c08,_0x18cac7[_0x18cafd++]);}for(const [_0x147607,_0x5805f0]of _0x344648['markers'])_0x147607['startsWith']('revision:')||this['_markers']['set'](_0x147607,_0x5805f0);}const _0x4177f4=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4177f4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4177f4,0x1));const _0x387475=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x387475),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x387475,0x1));const _0x6af5d9=Array['from'](this['_diffRoots'])['map'](([_0x3ba2d5,_0x4e6c32])=>[_0x3ba2d5,T(_0x4e6c32)]);this['_saveMetaData'](this['_lastTo'],_0x6af5d9,this['_markers'],_0x1ea706);}['_makeModelFromViewString'](_0x45dc8a){const _0x25a038=JSON['parse'](_0x45dc8a),_0x392f5d=this['editor']['editing']['view']['document'],_0x4dafe2=new _0x26a069(_0x392f5d,_0x25a038['map'](_0x3b909b=>P(_0x3b909b,this['editor'])));return this['editor']['data']['toModel'](_0x4dafe2);}['_saveMetaData'](_0xf028b8,_0x23b2b4,_0x122f62,_0x2e2abf){const _0x2fffe4=new Map(_0x23b2b4),_0x35bced=new Map(_0xd3d7c6(_0x2e2abf)),_0x22128d=new Map();for(const [_0x2ce0c2,_0x1c8741]of _0x122f62)_0x22128d['set'](_0x2ce0c2,{'start':_0x1c8741['start']['clone'](),'end':_0x1c8741['end']['clone'](),'rootName':_0x1c8741['root']['rootName']});this['_savedMetaData']['set'](_0xf028b8,{'roots':_0x2fffe4,'markers':_0x22128d,'rootsAttributes':_0x35bced});}['_removeMetaData'](_0x1f658f){this['_savedMetaData']['delete'](_0x1f658f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_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'](_0x365d01,_0x3038e8=null){let _0x449276=null;_0x365d01['is']('documentFragment')||(_0x449276=new ut(_0x365d01['name'],{'vid_start':null===_0x3038e8?this['_revisionId']++:_0x3038e8++}));const _0x4e40ea=[];for(const _0x484206 of _0x365d01['getChildren']())if(_0x484206['is']('element')){_0x4e40ea['push'](this['_makeIdsRoot'](_0x484206,_0x3038e8));const _0x5cca25=_0x4e40ea[_0x4e40ea['length']-0x1];null!==_0x3038e8&&(_0x3038e8=_0x5cca25['is']('element','$text')?_0x5cca25['getAttribute']('vid')+0x1:_0x5cca25['getAttribute']('vid_end')+0x1);}else{for(let _0x13559e=0x0;_0x13559e<_0x484206['offsetSize'];_0x13559e++)_0x4e40ea['push'](new ut('$text',{'vid':null===_0x3038e8?this['_revisionId']++:_0x3038e8++}));}if(_0x365d01['is']('documentFragment')){const _0x3aa743=F(_0x365d01['rootName']);return _0x3aa743['_insertChild'](0x0,_0x4e40ea),_0x3aa743;}return _0x449276['_setAttribute']('vid_end',null===_0x3038e8?this['_revisionId']++:_0x3038e8++),_0x449276['_insertChild'](0x0,_0x4e40ea),_0x449276;}['_calculateMetaData'](_0x52f264,_0x3eb795,_0x2b9503){this['_reset']();const {roots:_0x110cd5,markers:_0x39ee0d,rootsAttributes:_0xf3ff4b}=this['_savedMetaData']['get'](_0x52f264);this['_baseRoots']=new Map(_0x110cd5),this['_baseRootsAttributes']=new Map(_0xd3d7c6(_0xf3ff4b));for(const [_0x57e363,_0x106378]of this['_baseRoots'])if('$graveyard'!==_0x57e363&&(this['_diffRoots']['set'](_0x57e363,T(_0x106378)),this['_diffRootsAttributes']=new Map(_0xd3d7c6(_0xf3ff4b)),_0x2b9503)){const _0x2ca0eb=this['_revisionId'];this['_idsRoots']['set'](_0x57e363,this['_makeIdsRoot'](_0x106378)),this['_baseIdsRoots']['set'](_0x57e363,this['_makeIdsRoot'](_0x106378,_0x2ca0eb));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2b9503&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xf5826d,_0x473fe4]of _0x39ee0d){const _0x3beb8f=this['_baseRoots']['get'](_0x473fe4['rootName']),_0xb6c27=this['_diffRoots']['get'](_0x473fe4['rootName']),_0xfaebf9=new ft(this['_fixPosition'](_0x473fe4['start'],_0x3beb8f),this['_fixPosition'](_0x473fe4['end'],_0x3beb8f)),_0x1a235b=this['_fixRange'](_0xfaebf9,_0xb6c27);_0x3beb8f['markers']['set'](_0xf5826d,_0xfaebf9),this['_markers']['set'](_0xf5826d,_0x1a235b);}this['_applyOperations'](_0x52f264,_0x3eb795,_0x2b9503);}['_applyOperations'](_0x4bcd27,_0x228bbc,_0x58dc8a){for(const _0x30b3d4 of this['source']['getOperations'](_0x4bcd27,_0x228bbc))this['_handleOperation'](_0x30b3d4,_0x58dc8a);for(const _0x83e924 of this['_diffRoots']['values']())_0x83e924['markers']['clear']();for(const [_0x16685c,_0x548723]of this['_markers']){this['_diffRoots']['get'](_0x548723['root']['rootName'])['markers']['set'](_0x16685c,_0x548723['clone']());}const _0x5c9487=new Map(),_0xc8eaa0=new Map();for(const [_0x5cd10a,_0x1abad2]of this['_diffRoots'])_0x5c9487['set'](_0x5cd10a,T(_0x1abad2)),_0xc8eaa0['set'](_0x5cd10a,this['_diffRootsAttributes']['get'](_0x5cd10a));this['_saveMetaData'](_0x228bbc,_0x5c9487,this['_markers'],_0xc8eaa0);}['_getPreviousFrom'](_0x312834){const _0x2eba11=Array['from'](this['_savedMetaData']['keys']());_0x2eba11['sort']((_0xa4929c,_0x303bb4)=>_0xa4929c-_0x303bb4),_0x2eba11['reverse']();for(const _0xc67c04 of _0x2eba11)if(_0xc67c04<_0x312834)return _0xc67c04;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x12a99c,_0x59ca31){const _0x46119a=Array['from'](_0x59ca31['markers'])['map'](([_0x10d80c,_0x471b58])=>[_0x10d80c,this['_fixRange'](_0x471b58,_0x12a99c)]);_0x12a99c['markers']=new Map(_0x46119a);}['_transformMarkers'](_0x5b46ea){for(const _0x286902 of this['_markers']['values']()){const _0x55851a=_0x286902['getTransformedByOperation'](_0x5b46ea),_0x3f92db=ft['_createFromRanges'](_0x55851a);_0x286902['start']=_0x3f92db['start'],_0x286902['end']=_0x3f92db['end'];}}['_handleOperation'](_0x1deae0,_0x23443e){if('addRoot'!=_0x1deae0['type']&&'detachRoot'!=_0x1deae0['type']){if('insert'==_0x1deae0['type']){const _0x1c4f61=_0x1deae0['position']['root']['rootName'];this['_diffRoots']['has'](_0x1c4f61)||(this['_diffRoots']['set'](_0x1c4f61,F(_0x1c4f61,!0x0)),this['_diffRootsAttributes']['set'](_0x1c4f61,{}),_0x23443e&&this['_idsRoots']['set'](_0x1c4f61,F(_0x1c4f61,!0x0)));}else{if('addRootAttribute'==_0x1deae0['type']||'removeRootAttribute'==_0x1deae0['type']||'changeRootAttribute'==_0x1deae0['type'])return void this['_handleRootAttributeOperation'](_0x1deae0);'marker'==_0x1deae0['type']&&this['_handleMarkerOperation'](_0x1deae0);}if('marker'!==_0x1deae0['type']){const _0x1b60a4=this['_cloneOperation'](_0x1deae0,this['_diffRoots']);_0x1b60a4['_execute'](),this['_transformMarkers'](_0x1b60a4);}if(_0x23443e)switch(_0x1deae0['type']){case'insert':this['_handleInsertOperation'](_0x1deae0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1deae0);break;case'merge':this['_handleMergeOperation'](_0x1deae0);break;case'split':this['_handleSplitOperation'](_0x1deae0);}}else this['_handleRootOperation'](_0x1deae0,_0x23443e);}['_cloneOperation'](_0x4c1d48,_0x39f9b4){const _0x33803e=_0x4c1d48['clone']();return _0x33803e['_authorId']=_0x4c1d48['_authorId'],this['_fixOperation'](_0x33803e,_0x39f9b4),_0x33803e;}['_getBaseVids'](_0x4edcc3){return _0x4edcc3['map'](_0x368a63=>{const _0x444648=this['_getVidAttributeName'](_0x368a63);return Number(_0x368a63['item']['getAttribute'](_0x444648));});}['_generateTape'](_0x10d716,_0x45cc60){if(_0x10d716['is']('element','$text'))_0x45cc60['push']({'item':_0x10d716,'type':'text'});else{_0x10d716['is']('element')&&_0x45cc60['push']({'item':_0x10d716,'type':'elementStart'});for(const _0x3be7fe of _0x10d716['getChildren']())this['_generateTape'](_0x3be7fe,_0x45cc60);_0x10d716['is']('element')&&_0x45cc60['push']({'item':_0x10d716,'type':'elementEnd'});}return _0x45cc60;}['_getState'](){const _0x1dfc3f=new Map(this['_touched']),_0x1d142a=new Map(_0x1dfc3f),_0x482892=new Map(),_0x5de88d={'insertions':{},'deletions':{}},_0x236748={'insertions':{},'deletions':{}},_0x529753=new Map(),_0x36edb5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x36edb5['delete']('$graveyard');for(const _0x32777a of _0x36edb5){const _0x25929b=this['_diffRoots']['get'](_0x32777a)||F(_0x32777a,!0x1),_0x3563a2=this['_baseRoots']['get'](_0x32777a)||F(_0x32777a,!0x1);_0x25929b['isAttached']()||_0x3563a2['isAttached']()?(_0x5de88d['insertions'][_0x32777a]=T(_0x25929b),_0x5de88d['deletions'][_0x32777a]=T(_0x3563a2),this['_copyMarkers'](_0x5de88d['deletions'][_0x32777a],_0x3563a2),this['_copyMarkers'](_0x5de88d['insertions'][_0x32777a],_0x25929b),_0x236748['insertions'][_0x32777a]=this['_generateTape'](this['_idsRoots']['get'](_0x32777a),[]),_0x236748['deletions'][_0x32777a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x32777a)||F(_0x32777a,!0x1),[])):_0x36edb5['delete'](_0x32777a);}for(const _0x3bf69d of _0x36edb5){const _0xdac229=_0x236748['insertions'][_0x3bf69d];for(const _0x350c52 of _0xdac229){const _0x1d66e4=this['_getVidAttributeName'](_0x350c52),_0x2eb0bd=_0x350c52['item']['getAttribute'](_0x1d66e4);_0x1d142a['delete'](_0x2eb0bd),_0x2eb0bd>=this['_startingRevisionId']&&_0x482892['set'](_0x2eb0bd,_0x1dfc3f['get'](_0x2eb0bd));}}for(const _0x218841 of _0x36edb5){const _0x88867b=_0x236748['insertions'][_0x218841],_0x524cab=this['_getBaseVids'](_0x236748['deletions'][_0x218841]);let _0x3595cc=0x0;for(const _0x5b181b of _0x88867b){const _0x268991=this['_getVidAttributeName'](_0x5b181b),_0x7b3fe7=_0x5b181b['item']['getAttribute'](_0x268991);if(!_0x482892['has'](_0x7b3fe7)&&!_0x529753['has'](_0x7b3fe7)){if(_0x1d142a['has'](_0x7b3fe7))_0x3595cc++;else{if(_0x7b3fe7!=_0x524cab[_0x3595cc]){const _0x38b6da=_0x1dfc3f['get'](_0x7b3fe7)||_0x1dfc3f['get'](_0x524cab[_0x3595cc]);for(;_0x7b3fe7!=_0x524cab[_0x3595cc];)_0x1d142a['has'](_0x524cab[_0x3595cc])||(_0x529753['set'](_0x524cab[_0x3595cc],_0x38b6da),_0x1dfc3f['set'](_0x524cab[_0x3595cc],_0x38b6da)),_0x3595cc++;}_0x3595cc++;}}}}for(const _0x1a1b4d of _0x36edb5){const _0x434f64=_0x236748['insertions'][_0x1a1b4d];for(const _0x19cc77 of _0x434f64){const _0x51706f=this['_getVidAttributeName'](_0x19cc77),_0xd2ee65=_0x19cc77['item']['getAttribute'](_0x51706f);if(_0x529753['has'](_0xd2ee65)){const _0x1901bd=_0x529753['get'](_0xd2ee65);_0x1d142a['has'](_0xd2ee65)||_0x1d142a['set'](_0xd2ee65,{..._0x1901bd}),_0x482892['set'](_0xd2ee65,{..._0x1901bd});}}}for(const _0x55458e of _0x1d142a['keys']())_0x55458e>=this['_startingRevisionId']&&_0x1d142a['delete'](_0x55458e);const _0x319c1b=new Map();for(const _0x32841d of _0x36edb5){let _0xea6072=_0x236748['insertions'][_0x32841d];for(const _0x17eea8 of _0xea6072)if(_0x17eea8['item']['is']('element','tableCell')){const _0x1877e0=this['_getVidAttributeName'](_0x17eea8),_0x2bfa93=_0x17eea8['item']['getAttribute'](_0x1877e0);if(_0x482892['has'](_0x2bfa93)){const _0x3ccca4=_0x17eea8['item']['parent']['parent']['getAttribute']('vid_start'),_0x373668=_0x319c1b['get'](_0x3ccca4)||new Set();_0x373668['add'](_0x482892['get'](_0x2bfa93)['userId']),_0x319c1b['set'](_0x3ccca4,_0x373668);}}_0xea6072=_0x236748['deletions'][_0x32841d];for(const _0x3ae163 of _0xea6072)if(_0x3ae163['item']['is']('element','tableCell')){const _0x114f6e=this['_getVidAttributeName'](_0x3ae163),_0x2a9a78=_0x3ae163['item']['getAttribute'](_0x114f6e);if(_0x1d142a['has'](_0x2a9a78)){const _0x4839f5=_0x3ae163['item']['parent']['parent']['getAttribute']('vid_start'),_0x121879=_0x319c1b['get'](_0x4839f5)||new Set();_0x121879['add'](_0x1d142a['get'](_0x2a9a78)['userId']),_0x319c1b['set'](_0x4839f5,_0x121879);}}for(const _0x4eec73 of _0x319c1b['keys']())(_0x482892['has'](_0x4eec73)||_0x1d142a['has'](_0x4eec73))&&_0x319c1b['delete'](_0x4eec73);}for(const _0x39abbd of _0x36edb5){const _0x1ed2a3=_0x236748['insertions'][_0x39abbd];let _0x4d3c66=null,_0xcb3af3=null;for(const _0x3e2dc4 of _0x1ed2a3){const _0x5c58ab=this['_getVidAttributeName'](_0x3e2dc4),_0x3cd408=_0x3e2dc4['item']['getAttribute'](_0x5c58ab),_0x142125=_0x319c1b['get'](_0x3cd408);_0x142125&&'elementStart'==_0x3e2dc4['type']&&(_0x4d3c66=Array['from'](_0x142125)[0x0],_0xcb3af3=_0x3e2dc4['item']['getAttribute']('vid_end')),_0x4d3c66&&(_0x1d142a['set'](_0x3cd408,{'userId':_0x4d3c66}),_0x482892['set'](_0x3cd408,{'userId':_0x4d3c66})),_0x3cd408==_0xcb3af3&&(_0x4d3c66=null,_0xcb3af3=null);}}const _0x3b5d14={},_0x1e8a2a=new Set();for(const _0x1aac82 of _0x36edb5){const _0x2da901=_0x5de88d['deletions'][_0x1aac82],_0x2a3e7a=_0x5de88d['insertions'][_0x1aac82];for(const {userId:_0x4e2844}of this['_touchedMarkers']['values']())null!==_0x4e2844&&_0x1e8a2a['add'](_0x4e2844);for(const {userId:_0x27217a}of this['_touchedRoots']['values']())null!==_0x27217a&&_0x1e8a2a['add'](_0x27217a);this['_markChanges'](_0x2a3e7a,_0x236748['insertions'][_0x1aac82],_0x482892,'insertion',_0x1e8a2a),this['_markChanges'](_0x2da901,_0x236748['deletions'][_0x1aac82],_0x1d142a,'deletion',_0x1e8a2a),_0x3b5d14[_0x1aac82]={'insertions':this['_prepareViewToSave'](_0x2a3e7a),'deletions':this['_prepareViewToSave'](_0x2da901),'attachChange':this['_touchedRoots']['get'](_0x1aac82)||null,'attributesBefore':_0xd3d7c6(this['_baseRootsAttributes']['get'](_0x1aac82))||{},'attributesAfter':_0xd3d7c6(this['_diffRootsAttributes']['get'](_0x1aac82))};}return{'diffData':_0x3b5d14,'authorsIds':Array['from'](_0x1e8a2a)};}['_processRootBeforeSave'](_0x26d4db){for(const [,_0x3d501b]of _0x26d4db['markers']){const _0x243f97=_0x3d501b['start']['getAncestors']()['filter'](_0x4bf7fe=>'tableCell'==_0x4bf7fe['name']);for(const _0x37066c of _0x243f97)0x1==_0x37066c['childCount']&&_0x37066c['getChild'](0x0)['is']('element','paragraph')&&_0x37066c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1c7477){this['_processRootBeforeSave'](_0x1c7477);const _0x3dbbc6=this['editor']['data']['toView'](_0x1c7477,{}),_0x4db852=Array['from'](_0x3dbbc6['getChildren']())['map'](_0x16d72b=>this['_getViewJson'](_0x16d72b));return JSON['stringify'](_0x4db852);}['_getViewJson'](_0x43b1e3){if(_0x43b1e3['is']('$text'))return _0x43b1e3['data'];{const _0x18554a=_0x43b1e3;return{'type':Object['keys'](E)['find'](_0x535bc6=>_0x43b1e3 instanceof E[_0x535bc6]),'name':_0x18554a['name'],'attributes':Array['from'](_0x18554a['getAttributes']()),'children':Array['from'](_0x18554a['getChildren']())['map'](_0x14d3a9=>this['_getViewJson'](_0x14d3a9))};}}['_markChanges'](_0x46b7a8,_0x4e0d25,_0xa2065f,_0x4dde3f,_0x1223e4){let _0x34c6d5=null,_0x46d444=null,_0x498876=0x0;const _0xf3b1e7=this['editor']['model'];for(let _0x39013a=0x0;_0x39013a<_0x4e0d25['length'];_0x39013a++){const _0x305727=this['_getVidAttributeName'](_0x4e0d25[_0x39013a]),_0x47c890=_0x4e0d25[_0x39013a]['item']['getAttribute'](_0x305727),_0x2ab2cb=_0xa2065f['get'](_0x47c890),_0x498b5d=_0x39013a==_0x4e0d25['length']-0x1;(!_0x34c6d5&&_0x2ab2cb&&(_0x34c6d5=_0x2ab2cb,_0x46d444=_0x4e0d25[_0x39013a]),_0x34c6d5&&(!_0x2ab2cb||_0x2ab2cb['userId']!=_0x34c6d5['userId']))&&(_0x2a5606(_0x2ab2cb,B(_0x46d444,_0x46b7a8,_0xf3b1e7),B(_0x4e0d25[_0x39013a],_0x46b7a8,_0xf3b1e7)),_0x34c6d5=_0x2ab2cb||null,_0x46d444=_0x2ab2cb?_0x4e0d25[_0x39013a]:null),_0x34c6d5&&_0x498b5d&&_0x2a5606(_0x2ab2cb,B(_0x46d444,_0x46b7a8,_0xf3b1e7),J(_0x4e0d25[_0x39013a],_0x46b7a8,_0xf3b1e7));}function _0x2a5606(_0x424cc0,_0x582b56,_0x51351d){const _0x48cdb1=_0x34c6d5['userId'],_0x3228a5='revision:'+_0x4dde3f+':'+_0x48cdb1+':'+_0x498876++,_0x228aa6=_0xf3b1e7['createRange'](_0x582b56,_0x51351d);_0x46b7a8['markers']['set'](_0x3228a5,_0x228aa6),null!==_0x48cdb1&&_0x1223e4['add'](_0x48cdb1);}}['_getVidAttributeName'](_0x4a68db){switch(_0x4a68db['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x40f770,_0x15edb3){_0x40f770['baseVersion']=null;for(const _0x4515b9 in _0x40f770){const _0x3628c8=_0x40f770[_0x4515b9];if(_0x3628c8 instanceof vt){const _0x365c8b=_0x15edb3['get'](_0x3628c8['root']['rootName']);_0x40f770[_0x4515b9]=this['_fixPosition'](_0x3628c8,_0x365c8b);}if(_0x3628c8 instanceof ft){const _0x54648e=_0x15edb3['get'](_0x3628c8['root']['rootName']);_0x40f770[_0x4515b9]=this['_fixRange'](_0x3628c8,_0x54648e);}'root'===_0x4515b9&&(_0x40f770['root']=_0x15edb3['get'](_0x40f770['root']['rootName']));}}['_fixRange'](_0x2c8072,_0x2c3cc5){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2c8072['start'],_0x2c3cc5),this['_fixPosition'](_0x2c8072['end'],_0x2c3cc5));}['_fixPosition'](_0x42c928,_0x1f8fb6){return this['editor']['model']['createPositionFromPath'](_0x1f8fb6,_0x42c928['path'],_0x42c928['stickiness']);}['_handleInsertOperation'](_0x5d591a){const _0x30acd5=this['_idsRoots']['get'](_0x5d591a['position']['root']['rootName']),_0x276e0=this['_fixPosition'](_0x5d591a['position'],_0x30acd5),_0x28fa12=null===_0x5d591a['_authorId']?null:_0x5d591a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2681c4=_0x276e0['parent'],_0x56334f=this['_revisionId'],_0x155457=[];for(const _0x2edb5a of _0x5d591a['nodes'])if(_0x2edb5a['is']('element'))_0x155457['push'](this['_makeIdsRoot'](_0x2edb5a));else{for(let _0x4e618e=0x0;_0x4e618e<_0x2edb5a['offsetSize'];_0x4e618e++)_0x155457['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x411baf=this['_revisionId'];for(let _0xe60540=_0x56334f;_0xe60540<_0x411baf;_0xe60540++)this['_touched']['set'](_0xe60540,{'userId':_0x28fa12});_0x2681c4['_insertChild'](_0x276e0['offset'],_0x155457);}['_handleMoveOperation'](_0x30613d){(_0x30613d=this['_cloneOperation'](_0x30613d,this['_idsRoots']))['_execute']();const _0x21fe03=null===_0x30613d['_authorId']?null:_0x30613d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27650e=_0x30613d['getMovedRangeStart'](),_0x46a014=_0x27650e['parent'],_0x47d880=_0x27650e['offset'];!function _0x1030e7(_0x218d50,_0x24e313,_0x47461c,_0x204ad2){for(let _0x49dae9=_0x47461c;_0x49dae9<_0x204ad2;_0x49dae9++){const _0x58ab38=_0x24e313['getChild'](_0x49dae9);_0x58ab38['is']('element','$text')?_0x218d50['set'](_0x58ab38['getAttribute']('vid'),{'userId':_0x21fe03}):(_0x218d50['set'](_0x58ab38['getAttribute']('vid_start'),{'userId':_0x21fe03}),_0x1030e7(_0x218d50,_0x58ab38,0x0,_0x58ab38['childCount']),_0x218d50['set'](_0x58ab38['getAttribute']('vid_end'),{'userId':_0x21fe03}));}}(this['_touched'],_0x46a014,_0x47d880,_0x47d880+_0x30613d['howMany']);}['_handleMergeOperation'](_0x4c3dde){const _0x5788a8=null===(_0x4c3dde=this['_cloneOperation'](_0x4c3dde,this['_idsRoots']))['_authorId']?null:_0x4c3dde['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53a0df=_0x4c3dde['targetPosition']['parent'],_0x51c5b8=_0x4c3dde['sourcePosition']['parent'],_0x54936c=_0x53a0df['getAttribute']('vid_end'),_0x494415=_0x51c5b8['getAttribute']('vid_start');_0x53a0df['_setAttribute']('vid_end',_0x51c5b8['getAttribute']('vid_end')),_0x51c5b8['_setAttribute']('vid_end',_0x54936c),this['_touched']['set'](_0x494415,{'userId':_0x5788a8}),this['_touched']['set'](_0x54936c,{'userId':_0x5788a8}),_0x4c3dde['_execute']();}['_handleSplitOperation'](_0x5a1ae6){const _0x1d0a12=null===(_0x5a1ae6=this['_cloneOperation'](_0x5a1ae6,this['_idsRoots']))['_authorId']?null:_0x5a1ae6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30ff=_0x5a1ae6['graveyardPosition'],_0x140a25=_0x5a1ae6['splitPosition']['parent'];_0x5a1ae6['_execute']();const _0x10e999=_0x140a25['getAttribute']('vid_end'),_0xc6bd04=_0x5a1ae6['insertionPosition']['nodeAfter'];if(_0x30ff){const _0x43d45d=_0xc6bd04['getAttribute']('vid_end'),_0xf4552c=_0x140a25['getAttribute']('vid_end');_0x140a25['_setAttribute']('vid_end',_0x43d45d),_0xc6bd04['_setAttribute']('vid_end',_0xf4552c),this['_touched']['set'](_0x140a25['getAttribute']('vid_end'),{'userId':_0x1d0a12}),this['_touched']['set'](_0xc6bd04['getAttribute']('vid_start'),{'userId':_0x1d0a12});}else{const _0x54a557=this['_revisionId']++,_0x446e4e=this['_revisionId']++;_0x140a25['_setAttribute']('vid_end',_0x54a557),_0xc6bd04['_setAttribute']('vid_start',_0x446e4e),_0xc6bd04['_setAttribute']('vid_end',_0x10e999),this['_touched']['set'](_0x54a557,{'userId':_0x1d0a12}),this['_touched']['set'](_0x446e4e,{'userId':_0x1d0a12});}}['_handleMarkerOperation'](_0x542491){if(!_0x542491['affectsData'])return;const _0x2b0458=(_0x542491=this['_cloneOperation'](_0x542491,this['_diffRoots']))['oldRange']?_0x542491['oldRange']['root']:null,_0x21974b=_0x542491['newRange']?_0x542491['newRange']['root']:null;_0x2b0458&&this['_markers']['delete'](_0x542491['name']),_0x21974b&&this['_markers']['set'](_0x542491['name'],_0x542491['newRange']['clone']());const _0x5f15fc=null===_0x542491['_authorId']?null:_0x542491['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f7ec4=_0x542491['name'];if(!this['_touchedMarkers']['has'](_0x2f7ec4))return void this['_touchedMarkers']['set'](_0x2f7ec4,{'range':_0x542491['oldRange'],'userId':_0x5f15fc});const _0x479af0=this['_touchedMarkers']['get'](_0x2f7ec4),_0x54c6c2=_0x479af0['range'],_0x423bfb=_0x542491['newRange'];null==_0x54c6c2&&null==_0x423bfb||_0x54c6c2&&_0x423bfb&&_0x54c6c2['isEqual'](_0x423bfb)?this['_touchedMarkers']['delete'](_0x542491['name']):_0x479af0['userId']=_0x5f15fc;}['_handleRootOperation'](_0x223a26,_0x5c6285){this['_diffRoots']['has'](_0x223a26['rootName'])?this['_diffRoots']['get'](_0x223a26['rootName'])['_isAttached']=_0x223a26['isAdd']:(this['_diffRoots']['set'](_0x223a26['rootName'],F(_0x223a26['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x223a26['rootName'],{}),_0x5c6285&&this['_idsRoots']['set'](_0x223a26['rootName'],F(_0x223a26['rootName'],!0x0)));const _0x49337d=null===_0x223a26['_authorId']?null:_0x223a26['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12f967=this['_touchedRoots']['get'](_0x223a26['rootName']);_0x12f967&&_0x12f967['userId']===_0x49337d?this['_touchedRoots']['delete'](_0x223a26['rootName']):this['_touchedRoots']['set'](_0x223a26['rootName'],{'userId':_0x49337d,'isAttached':_0x223a26['isAdd']});}['_handleRootAttributeOperation'](_0x2620e3){const _0x17f94b=this['_diffRootsAttributes']['get'](_0x2620e3['root']['rootName']);null===_0x2620e3['newValue']?delete _0x17f94b[_0x2620e3['key']]:_0x17f94b[_0x2620e3['key']]=_0x2620e3['newValue'];}}function T(_0x5159a1){const _0x2f4e75=F(_0x5159a1['rootName'],_0x5159a1['isAttached']());for(const _0x1389b1 of _0x5159a1['getChildren']()){const _0xdb68e6=_0x1389b1['_clone'](!0x0);_0x2f4e75['_appendChild'](_0xdb68e6);}return _0x2f4e75;}function F(_0x4e9e,_0x19d63d=!0x0){const _0x519fec=new gt();return _0x519fec['rootName']=_0x4e9e,_0x519fec['_isAttached']=_0x19d63d,_0x519fec['isAttached']=()=>_0x519fec['_isAttached'],_0x519fec;}function B(_0x5c2710,_0x140140,_0x3775ca){const _0x5a7466='elementEnd'==_0x5c2710['type']?_0x3775ca['createPositionAt'](_0x5c2710['item'],'end'):_0x3775ca['createPositionBefore'](_0x5c2710['item']);return _0x3775ca['createPositionFromPath'](_0x140140,_0x5a7466['path'],_0x5a7466['stickiness']);}function J(_0x209c4b,_0x10584f,_0x5af940){const _0x53994a='elementStart'==_0x209c4b['type']?_0x5af940['createPositionAt'](_0x209c4b['item'],0x0):_0x5af940['createPositionAfter'](_0x209c4b['item']);return _0x5af940['createPositionFromPath'](_0x10584f,_0x53994a['path'],_0x53994a['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x26b41a,_0x5260eb){super(_0x26b41a),this['focusTracker']=new _0xb58d78(),this['keystrokes']=new _0x22b2b6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5260eb),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x52b994(this);}['render'](){super['render'](),_0xbcc6bc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4cb75f=_0x21d6ba=>_0x21d6ba['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4cb75f),this['keystrokes']['set']('arrowleft',_0x4cb75f),this['keystrokes']['set']('arrowup',_0x4cb75f),this['keystrokes']['set']('arrowdown',_0x4cb75f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x405d56){this['revisionNameInputView']['fieldView']['element']['value']=_0x405d56['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x52e9de){const _0x51c0c9=new _0x3230b0(this['locale'],_0x30c57f),_0x466932=_0x51c0c9['fieldView'];_0x466932['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x24f774=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x52e9de&&(_0x24f774+='\x20('+m(this['locale'],'optional')+')'),(_0x51c0c9['label']=_0x24f774,_0x466932['on']('input',()=>{this['revisionNameInputValue']=_0x466932['element']['value']['trim']();}),_0x51c0c9);}}class f extends _0x1947b9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3e39e7=this['editor'],_0xbe88fb=_0x3e39e7['plugins']['get']('RevisionTracker');_0x3e39e7['ui']['componentFactory']['add']('revisionHistory',_0x48c413=>{const _0x243b46=_0x5ae326(_0x48c413),_0x18da42=_0x243b46['panelView']['children'],_0x4eb5e1=new _0x575510(_0x48c413),_0x42a0fc=new _0x1fc11a(_0x48c413),_0x429506=new te(_0x48c413),_0x759742=new _0x1fc11a(_0x48c413),_0x2afd5a=new te(_0x48c413);return _0x243b46['bind']('isEnabled')['to'](_0xbe88fb,'isReady',_0xbe88fb,'isEnabled',_0x3e39e7,'isReadOnly',(_0x2d3d48,_0x14dc84,_0x195f6c)=>_0x2d3d48&&_0x14dc84&&!_0x195f6c),_0x243b46['buttonView']['set']({'icon':_0x4b0f09,'label':m(_0x48c413,'Revision\x20history'),'tooltip':!0x0}),_0x429506['set']({'label':m(_0x48c413,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x429506['bind']('isEnabled')['to'](_0xbe88fb,'isReady',_0xbe88fb,'isEnabled',_0x3e39e7,'isReadOnly',(_0x1e0fe1,_0x5725e1,_0x2b9db2)=>_0x1e0fe1&&_0x5725e1&&!_0x2b9db2),_0x429506['on']('execute',()=>this['_showDialog']()),_0x2afd5a['set']({'label':m(_0x48c413,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2afd5a['bind']('isEnabled')['to'](_0xbe88fb,'isReady',_0x3e39e7,'isReadOnly',(_0x41dec0,_0x2a3164)=>_0x41dec0&&!_0x2a3164),_0x2afd5a['on']('execute',()=>{_0x3e39e7['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x243b46['isOpen']=!0x1,_0x3e39e7['editing']['view']['focus']();}),_0x42a0fc['children']['add'](_0x429506),_0x759742['children']['add'](_0x2afd5a),_0x4eb5e1['role']='menu',_0x4eb5e1['items']['addMany']([_0x42a0fc,_0x759742]),_0x18da42['add'](_0x4eb5e1),_0x243b46;}),_0x3e39e7['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5bd7a3=this['editor'],_0x23b7b8=_0x5bd7a3['locale'],_0x4490dd=new _0x3d315a(_0x23b7b8),_0x30e52e=new _0x489dbe(_0x23b7b8);_0x4490dd['buttonView']['set']({'icon':_0x4b0f09,'label':m(_0x23b7b8,'Revision\x20history')});const _0x3d2de7=new _0x5b8bda(_0x23b7b8,_0x4490dd),_0x105ca9=new _0x31e280(_0x23b7b8);_0x105ca9['set']({'label':m(_0x23b7b8,'Save\x20current\x20revision')}),_0x105ca9['delegate']('execute')['to'](_0x4490dd),_0x105ca9['on']('execute',()=>{this['_showDialog']();}),_0x3d2de7['children']['add'](_0x105ca9),_0x30e52e['items']['add'](_0x3d2de7);const _0x350808=new _0x5b8bda(_0x23b7b8,_0x4490dd),_0x33391c=new _0x31e280(_0x23b7b8);return _0x33391c['set']({'label':m(_0x23b7b8,'Open\x20revision\x20history')}),_0x33391c['delegate']('execute')['to'](_0x4490dd),_0x33391c['on']('execute',()=>{_0x5bd7a3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x350808['children']['add'](_0x33391c),_0x30e52e['items']['add'](_0x350808),_0x4490dd['panelView']['children']['add'](_0x30e52e),_0x4490dd;}['_showDialog'](){const _0x29d7cc=this['editor'],_0xa1ad21=_0x29d7cc['locale'],_0x206f27=_0x29d7cc['plugins']['get']('Dialog'),_0xf3ea83=_0x29d7cc['plugins']['get']('RevisionTracker');function _0x4b9122(_0x4d0de3){_0x29d7cc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4d0de3['revisionName']?_0x4d0de3['revisionNameInputView']['errorText']=m(_0xa1ad21,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x29d7cc['plugins']['get'](u)['saveRevision']({'name':_0x4d0de3['revisionName']}),_0x206f27['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4b9122(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x206f27['show']({'id':'revisionSave','title':m(_0xa1ad21,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x29d7cc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x206f27['hide']()},{'label':m(_0x29d7cc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2c6344){_0x2c6344['bind']('isEnabled')['to'](_0xf3ea83,'isReady',_0xf3ea83,'isEnabled',_0x29d7cc,'isReadOnly',(_0x3790ae,_0x2ea75a,_0x5a249e)=>_0x3790ae&&_0x2ea75a&&!_0x5a249e);},'onExecute':()=>_0x4b9122(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1ad3c1=this['editor'],_0x372823=_0x1ad3c1['locale'];this['_saveRevisionFormView']=new hs(_0x372823,_0x1ad3c1['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x4f91d7,_0x5b68bb){super(_0x4f91d7),this['_model']=_0x5b68bb,this['changeId']=_0x5b68bb['id'];const _0x20b97e=this['bindTemplate'],_0x39ec55=m(_0x4f91d7,_0x5b68bb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5b68bb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5b68bb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x20b97e['to']('type',_0x18021d=>'ck-revision-change__'+_0x18021d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x39ec55}]},{'text':'\x20'+_0x5b68bb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x12e48c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x50aabc){super(),this['id']=_0x50aabc['id']||_0x11cac6(),this['author']=_0x50aabc['author'],this['type']=_0x50aabc['type'],this['data']=_0x50aabc['data']||{},this['rootName']=_0x50aabc['rootName'],this['set']('createdAt',_0x50aabc['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(_0x3292ec,_0x449549){this['newRevisionId']=_0x3292ec,this['oldRevisionId']=_0x449549,this['changes']=new _0x3c9798();}['_setChanges'](_0xbbdde7){for(const _0x5294b7 of _0xbbdde7)this['changes']['add'](_0x5294b7);}}const Y={'c':_0x30d263,'a':_0x544f6d,'e':_0x155563,'r':_0x226a61,'u':_0x14dc4c};class d extends _0x1947b9{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3da1a3,_0x57e549,j];}constructor(_0x4d3625){super(_0x4d3625),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),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',(_0x5cbcac,_0x500aca,_0x2d4283)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4d219b=>{for(const _0x1e3ced of this['editor']['editing']['view']['document']['roots'])_0x2d4283?_0x4d219b['removeClass']('ck-editor__editable__overlay',_0x1e3ced):_0x4d219b['addClass']('ck-editor__editable__overlay',_0x1e3ced);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1a53ef=>null!==_0x1a53ef),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1a1b83,_0x5ab5dc,_0x307aac)=>_0x1a1b83&&_0x307aac?_0x5ab5dc['changes']['getIndex'](_0x307aac):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf1dcb3,_0x506112)=>_0xf1dcb3?_0x506112['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x57e549);}['init'](){const _0x639ae6=this['editor'],_0x5939b6=new _t(_0x639ae6,{'direction':'backward'}),_0x35efd6=new _t(_0x639ae6,{'direction':'forward'});(_0x639ae6['commands']['add']('showPreviousChange',_0x5939b6),_0x639ae6['commands']['add']('showNextChange',_0x35efd6),_0x639ae6['commands']['add']('restoreRevision',new wt(_0x639ae6)),this['on']('change:numberOfChanges',()=>{_0x5939b6['refresh'](),_0x35efd6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x639ae6['enableReadOnlyMode']('revision-viewer'),_0x639ae6['plugins']['has']('WidgetToolbarRepository'))&&_0x639ae6['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x535403){await this['loadRevisionData'](_0x535403);const _0x5f57be={};for(const _0x28a8cc in _0x535403['diffData']){if(_0x535403['diffData'][_0x28a8cc]['attachChange']&&!_0x535403['diffData'][_0x28a8cc]['attachChange']['isAttached'])continue;const _0x2cca8a=this['_removeRevisionMarkers'](JSON['parse'](_0x535403['diffData'][_0x28a8cc]['insertions'])),_0x19e837=this['editor']['editing']['view']['document'],_0x441d4b=new _0x26a069(_0x19e837,_0x2cca8a['map'](_0x529b0b=>this['_getViewObj'](_0x529b0b)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5f57be[_0x28a8cc]=this['editor']['data']['processor']['toData'](_0x441d4b),this['editor']['data']['processor']['useFillerType']('default');}return _0x5f57be;}async['getRevisionRootsAttributes'](_0x1ab559){await this['loadRevisionData'](_0x1ab559);const _0x1c71c7={};for(const _0x5d739c in _0x1ab559['diffData'])_0x1ab559['diffData'][_0x5d739c]['attachChange']&&!_0x1ab559['diffData'][_0x5d739c]['attachChange']['isAttached']||(_0x1c71c7[_0x5d739c]=_0x1ab559['diffData'][_0x5d739c]['attributesAfter']||{});return _0x1c71c7;}['_removeRevisionMarkers'](_0x3787ac){return(_0x3787ac=_0x3787ac['filter'](_0x221be3=>!_0x221be3['name']||'revision-start'!==_0x221be3['name']&&'revision-end'!==_0x221be3['name']))['forEach'](_0x226277=>{'string'!=typeof _0x226277&&(_0x226277['children']=this['_removeRevisionMarkers'](_0x226277['children']),_0x226277['attributes']=_0x226277['attributes']['filter'](_0x583565=>!_0x583565[0x0]['startsWith']('data-revision-')));}),_0x3787ac;}async['compare'](_0x53785f,_0xcc9743,_0x6f7afc=!0x1){if(!this['isEnabled'])return;const _0x680503=this['diff'],_0x1107a4=this['repository'],_0x518ebd='string'==typeof _0x53785f?_0x1107a4['getRevision'](_0x53785f):_0x53785f,_0x581d33='string'==typeof _0xcc9743?_0x1107a4['getRevision'](_0xcc9743):_0xcc9743,_0x17c1a0=_0x518ebd['id'],_0x4bb949=_0x581d33?_0x581d33['id']:null;if(!_0x6f7afc&&this['diff']&&this['diff']['newRevisionId']===_0x17c1a0&&this['diff']['oldRevisionId']===_0x4bb949)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x17c1a0,_0x4bb949);const _0x5305b6=this['_getRevisionsRange'](_0x518ebd,_0x581d33,!0x0)['map'](_0x5933dc=>this['loadRevisionData'](_0x5933dc));return _0x5305b6['push'](new Promise(_0x345005=>{setTimeout(_0x345005,0x14);})),Promise['all'](_0x5305b6)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x38f67f=this['_getDiff'](_0x17c1a0,_0x4bb949);for(const _0x1169b6 of _0x38f67f['changes'])this['_changeIdToChange']['set'](_0x1169b6['id'],_0x1169b6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x33788e=>{for(const _0x329e08 of this['editor']['model']['document']['getRootNames']())_0x33788e['detachRoot'](_0x329e08);for(const _0xf0afb of Object['keys'](_0x38f67f['model'])){const _0x55743f=_0x33788e['addRoot'](_0xf0afb);for(const _0x377eb2 of Object['keys'](_0x38f67f['attributes'][_0xf0afb]))_0x33788e['setAttribute'](_0x377eb2,_0x38f67f['attributes'][_0xf0afb][_0x377eb2],_0x55743f);_0x33788e['insert'](_0x38f67f['model'][_0xf0afb],_0x55743f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x38f67f['changes'])),this['isReady']=!0x0;})['catch'](_0x27a1dd=>{console['error'](_0x27a1dd),this['_cleanUp'](),_0x680503&&(this['diff']=_0x680503),this['isReady']=!0x0;});}['addRevisionData'](_0x432d83,_0x248f48){const _0x4f9bc8=this['repository']['createRevision'](_0x432d83);return _0x4f9bc8['on']('_update',(_0xa53ae3,_0x4ccc06,_0xf4feee)=>_0x248f48(_0x4ccc06,_0xf4feee,_0x4f9bc8)),this['repository']['addRevision'](_0x4f9bc8),_0x4f9bc8;}['loadRevisionData'](_0x16142e){if(!_0x16142e||_0x16142e['diffData'])return Promise['resolve']();{const _0x1ef334=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1ef334,'revisionId':_0x16142e['id']})['then'](_0x469f2e=>{_0x16142e['_update']({'diffData':_0x469f2e['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xa50eab=>{for(const _0x4de404 of this['editor']['model']['document']['getRootNames']())_0xa50eab['detachRoot'](_0x4de404);});}['_sortAndFilterDiffChanges'](_0x18ae70){const _0xe5dea1=[],_0x474504=new Map();for(const _0x1b5273 of this['editor']['model']['document']['getRootNames']()){const _0x5a8ba8=this['editor']['editing']['view']['getDomRoot'](_0x1b5273);if(!_0x5a8ba8)continue;const _0x1b96e3=_0x5a8ba8['getClientRects']()['item'](0x0);_0x1b96e3&&(_0xe5dea1['push'](_0x1b5273),_0x474504['set'](_0x1b5273,_0x1b96e3));}return _0xe5dea1['sort']((_0x49512b,_0x3d4c89)=>{const _0x5ad726=_0x474504['get'](_0x49512b),_0x364ffc=_0x474504['get'](_0x3d4c89);return _0x5ad726['y']-_0x364ffc['y']||_0x5ad726['x']-_0x364ffc['x'];}),(_0x18ae70=_0x18ae70['filter'](_0x16b2fc=>_0xe5dea1['includes'](_0x16b2fc['rootName'])))['sort']((_0x4a66bf,_0xb43339)=>_0xe5dea1['indexOf'](_0x4a66bf['rootName'])-_0xe5dea1['indexOf'](_0xb43339['rootName'])),_0x18ae70;}['_makeTape'](_0x16329b){const _0x1fd3dc=Array['from'](_0x16329b['markers'])['filter'](([_0x119c09,_0x406f99])=>_0x119c09['startsWith']('revision:')&&!_0x406f99['isCollapsed']),_0x217f05=Array['from'](this['editor']['model']['createRangeIn'](_0x16329b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1fd3dc['length'])for(const _0x3483b5 of _0x217f05){const [_0x11d7ff,_0x5ebf77]=_0x1fd3dc[0x0],[,_0x2de26d,_0x48c547]=_0x11d7ff['split'](':');if(_0x5ebf77['end']['isEqual'](_0x3483b5['nextPosition'])&&_0x1fd3dc['shift'](),(_0x3483b5['previousPosition']['isEqual'](_0x5ebf77['start'])||_0x3483b5['previousPosition']['isAfter'](_0x5ebf77['start']))&&('insertion'==_0x2de26d?_0x3483b5['isAdded']={'userId':_0x48c547}:'deletion'==_0x2de26d&&(_0x3483b5['isRemoved']={'userId':_0x48c547})),0x0==_0x1fd3dc['length'])break;}return _0x217f05;}['_refreshStartEndIndex'](_0x48785a){const _0x5731a4=new Map();for(let _0x3374ce=0x0;_0x3374ce<_0x48785a['length'];_0x3374ce++)'text'===_0x48785a[_0x3374ce]['type']?(_0x48785a[_0x3374ce]['item']['startIndex']=_0x3374ce,_0x48785a[_0x3374ce]['item']['endIndex']=_0x3374ce):('elementStart'===_0x48785a[_0x3374ce]['type']?_0x48785a[_0x3374ce]['item']['startIndex']=_0x3374ce:'elementEnd'===_0x48785a[_0x3374ce]['type']&&(_0x48785a[_0x3374ce]['item']['endIndex']=_0x3374ce),_0x5731a4['set'](_0x48785a[_0x3374ce]['id'],_0x3374ce));for(const _0x403080 of _0x5731a4['values']())'elementStart'===_0x48785a[_0x403080]['type']?_0x48785a[_0x403080]['item']['endIndex']=_0x5731a4['get'](_0x48785a[_0x403080]['pairId']):'elementEnd'===_0x48785a[_0x403080]['type']&&(_0x48785a[_0x403080]['item']['startIndex']=_0x5731a4['get'](_0x48785a[_0x403080]['pairId']));}['_processTape'](_0x2f307f){for(let _0x254b6f=0x0;_0x254b6f<_0x2f307f['length'];_0x254b6f++){if('elementStart'===_0x2f307f[_0x254b6f]['type'])_0x2f307f[_0x254b6f]['item']['startIndex']=_0x254b6f;else{if('elementEnd'===_0x2f307f[_0x254b6f]['type']){_0x2f307f[_0x254b6f]['item']['endIndex']=_0x254b6f;const _0x4df430=_0x2f307f[_0x254b6f]['item']['startIndex'];_0x2f307f[_0x4df430]['pairId']=_0x2f307f[_0x254b6f]['id'],_0x2f307f[_0x254b6f]['pairId']=_0x2f307f[_0x4df430]['id'];}else _0x2f307f[_0x254b6f]['item']['startIndex']=_0x254b6f,_0x2f307f[_0x254b6f]['item']['endIndex']=_0x254b6f,_0x2f307f[_0x254b6f]['pairId']=null;}_0x2f307f[_0x254b6f]['markersStart']||(_0x2f307f[_0x254b6f]['markersStart']=[],_0x2f307f[_0x254b6f]['markersEnd']=[]);}}['_markInsertions'](_0x49800e,_0x1f4e34){const _0x104178=_0x49800e['filter'](_0x59892e=>!_0x59892e['isAdded']);for(let _0x4e486c=0x0;_0x4e486c<_0x1f4e34['length'];_0x4e486c++)_0x1f4e34[_0x4e486c]['isAdded']&&(_0x104178[_0x4e486c]['isAdded']=_0x1f4e34[_0x4e486c]['isAdded']);}['_makeModelFromViewString'](_0x49ae17){const _0x3731a2=JSON['parse'](_0x49ae17),_0x589315=this['editor']['editing']['view']['document'],_0x1ac469=new _0x26a069(_0x589315,_0x3731a2['map'](_0x36760e=>this['_getViewObj'](_0x36760e)));return this['editor']['data']['toModel'](_0x1ac469);}['_getViewObj'](_0x319fb7){const _0x48e48d=this['editor']['editing']['view']['document'];if('string'==typeof _0x319fb7)return new _0x29f1b1(_0x48e48d,_0x319fb7);{const _0x2cd808=_0x319fb7['children']['map'](_0x42e8b7=>this['_getViewObj'](_0x42e8b7));return new(Y[_0x319fb7['type']]||_0x59bd53)(_0x48e48d,_0x319fb7['name'],_0x319fb7['attributes'],_0x2cd808);}}['_getDiff'](_0x546b65,_0x16478e=null){const _0x3b5443=this['repository']['getRevision'](_0x546b65),_0x4c7184=_0x16478e?this['repository']['getRevision'](_0x16478e):null,_0x5ae167=this['_getRevisionsRange'](_0x3b5443,_0x4c7184),_0x3829ff=_0x5ae167[_0x5ae167['length']-0x1],_0x22d2bc=new Map(),_0x3cc564={'model':{},'attributes':{},'changes':[]},_0x6cdb2b=new Set(),_0x502073=new Map();for(let _0x239131=_0x5ae167['length']-0x1;_0x239131>=0x0;_0x239131--){const _0x5f1d60=_0x5ae167[_0x239131];for(const _0x4f844e of Object['keys'](_0x5f1d60['diffData']))if(_0x5f1d60['diffData'][_0x4f844e]['attachChange']){const _0x4bdc2d=_0x5f1d60['diffData'][_0x4f844e]['attachChange'];_0x4bdc2d['isAttached']?(_0x6cdb2b['add'](_0x4f844e),_0x502073['has'](_0x4f844e)&&_0x502073['get'](_0x4f844e)['userId']==_0x4bdc2d['userId']?_0x502073['delete'](_0x4f844e):_0x502073['set'](_0x4f844e,_0x4bdc2d)):_0x502073['has'](_0x4f844e)?(_0x6cdb2b['delete'](_0x4f844e),_0x502073['delete'](_0x4f844e)):(_0x6cdb2b['add'](_0x4f844e),_0x502073['set'](_0x4f844e,_0x4bdc2d));}else _0x6cdb2b['add'](_0x4f844e);}for(const _0x4f5edb of _0x6cdb2b){const _0x50c9fb=_0x502073['has'](_0x4f5edb)&&!_0x502073['get'](_0x4f5edb)['isAttached'];let _0x487f1f=_0x50c9fb?_0x5ae167['length']-0x1:0x0;const _0x2da110=_0x50c9fb?-0x1:0x1;for(;_0x5ae167[_0x487f1f];){const _0x3df42d=_0x5ae167[_0x487f1f];if(_0x3df42d['diffData'][_0x4f5edb]){const _0x55c2b6=_0x50c9fb?_0x3df42d['diffData'][_0x4f5edb]['attributesBefore']:_0x3df42d['diffData'][_0x4f5edb]['attributesAfter'];_0x3cc564['attributes'][_0x4f5edb]=_0x55c2b6?_0xd3d7c6(_0x55c2b6):{};break;}_0x487f1f+=_0x2da110;}}for(const _0x54e59e of _0x5ae167){_0x54e59e['model']={};for(const _0x2fa2f0 of _0x54e59e['authors'])_0x22d2bc['set'](_0x2fa2f0['id'],_0x2fa2f0);for(const _0xa3eb3f of _0x6cdb2b){const _0x2596e5=_0x54e59e['diffData'][_0xa3eb3f]?_0x54e59e['diffData'][_0xa3eb3f]['insertions']:'[]',_0x14eaeb=_0x54e59e['diffData'][_0xa3eb3f]?_0x54e59e['diffData'][_0xa3eb3f]['deletions']:'[]';_0x54e59e['model'][_0xa3eb3f]={'insertions':this['_makeModelFromViewString'](_0x2596e5),'deletions':this['_makeModelFromViewString'](_0x14eaeb)};}}for(const _0x8a9d9 of _0x6cdb2b){let _0x10217c=null,_0xd985ef=0x0;const _0x4020d2=new Map(Array['from'](_0x3b5443['model'][_0x8a9d9]['insertions']['markers'])['filter'](([_0x5cb1c8])=>!_0x5cb1c8['startsWith']('revision:')));let _0x220319=0x0;for(const _0x588070 of _0x5ae167){const _0x5dacc1=this['_makeTape'](_0x588070['model'][_0x8a9d9]['insertions']);_0x588070==_0x3b5443?(_0x10217c=_0x5dacc1,_0xd985ef=_0x10217c['length'],_0x10217c['forEach'](_0x4cb32b=>{_0x4cb32b['id']=_0x220319++;}),this['_processTape'](_0x10217c)):this['_markInsertions'](_0x10217c,_0x5dacc1);const _0xddf684=_0x10217c['filter'](_0x34fd60=>!_0x34fd60['isAdded'])['map'](_0xd244e8=>_0xd244e8['id']);let _0x589876=0x0;const _0x2972d1=this['_makeTape'](_0x588070['model'][_0x8a9d9]['deletions']);_0x2972d1['forEach'](_0x2e9df1=>{_0x2e9df1['isRemoved']?_0x2e9df1['id']=_0xd985ef++:_0x2e9df1['id']=_0xddf684[_0x589876++];}),this['_processTape'](_0x2972d1),this['_setDistance'](_0x10217c,'isAdded'),this['_setDistance'](_0x2972d1,'isRemoved'),_0x588070==_0x3b5443&&this['_markMarkers'](_0x10217c,_0x4020d2),_0x10217c=this['_joinTapes'](_0x10217c,_0x2972d1),this['_refreshStartEndIndex'](_0x10217c),this['_setDistance'](_0x10217c,'isRemoved');}_0x10217c=_0x10217c['filter'](_0xc84a0a=>!(_0xc84a0a['isAdded']&&_0xc84a0a['isRemoved']));const _0x50d32a=new Map(_0x3829ff['model'][_0x8a9d9]['deletions']['markers']),_0x5928e4=new Set(_0x4020d2['keys']());for(const _0x5aa767 of _0x50d32a['keys']())_0x5928e4['delete'](_0x5aa767);this['_markSuggestions'](_0x10217c,_0x5928e4),this['_fixObsoleteTags'](_0x10217c),_0x10217c=this['_removeMissingPairs'](_0x10217c),_0x10217c=this['_markMismatchedRemovedTags'](_0x10217c),_0x10217c=this['_removeUnsupportedChanges'](_0x10217c);const {root:_0x25a608,changes:_0x311131}=this['_makeModelFromTape'](_0x10217c,_0x22d2bc,_0x8a9d9);_0x3cc564['model'][_0x8a9d9]=_0x25a608;const _0x40e2c1=_0x502073['get'](_0x8a9d9);if(_0x40e2c1){const _0x59f482=_0x22d2bc['get'](_0x40e2c1['userId']),_0x5cf729=new r({'author':_0x59f482,'type':_0x40e2c1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x8a9d9});_0x311131['unshift'](_0x5cf729),_0x3cc564['attributes'][_0x8a9d9]['revisionHistoryAttachChange']=_0x5cf729['id'];}_0x3cc564['changes']=_0x3cc564['changes']['concat'](_0x311131);}return _0x3cc564;}['_markMarkers'](_0x5c68b4,_0x431294){for(let _0x220d8f=0x0;_0x220d8f<_0x5c68b4['length'];_0x220d8f++)for(const [_0x20fc75,_0x3035a0]of _0x431294)_0x3035a0['start']['isEqual'](_0x5c68b4[_0x220d8f]['previousPosition'])&&_0x5c68b4[_0x220d8f]['markersStart']['push'](_0x20fc75),_0x3035a0['end']['isEqual'](_0x5c68b4[_0x220d8f]['nextPosition'])&&_0x5c68b4[_0x220d8f]['markersEnd']['push'](_0x20fc75);}['_joinTapes'](_0x30bfa1,_0x2983ce){let _0x4f3c14=[],_0x5e1ebd=0x0,_0x4219cc=0x0;for(;_0x5e1ebd<_0x30bfa1['length']||_0x4219cc<_0x2983ce['length'];){const _0x2d9aa0=_0x30bfa1[_0x5e1ebd]||{},_0x223068=_0x2983ce[_0x4219cc]||{};if(_0x2d9aa0['id']==_0x223068['id'])_0x5e1ebd++,_0x4219cc++,_0x4f3c14['push'](_0x2d9aa0);else{if(_0x223068['isRemoved']&&_0x2d9aa0['isAdded']){const {commonTape:_0x4e7472,iEnd:_0x5a0ac1,jEnd:_0x9e541f}=this['_threeWayMerge'](_0x30bfa1,_0x5e1ebd,_0x2983ce,_0x4219cc);_0x4f3c14=_0x4f3c14['concat'](_0x4e7472),_0x5e1ebd=_0x5a0ac1,_0x4219cc=_0x9e541f;}else _0x223068['isRemoved']?(_0x4219cc++,_0x4f3c14['push'](_0x223068)):(_0x5e1ebd++,_0x4f3c14['push'](_0x2d9aa0));}}return _0x4f3c14;}['_markSuggestions'](_0x3326ee,_0x2531b3){const _0x1f0706=[];for(let _0x19f19b=0x0;_0x19f19b<_0x3326ee['length'];_0x19f19b++){for(let _0x4f7b2b=0x0;_0x4f7b2b<_0x3326ee[_0x19f19b]['markersStart']['length'];_0x4f7b2b++){const _0x55a5c1=_0x3326ee[_0x19f19b]['markersStart'][_0x4f7b2b];if(!_0x2531b3['has'](_0x55a5c1))continue;const {group:_0x3ecf17,type:_0x47405d,authorId:_0x35856d}=_0x58c6a8(_0x55a5c1);'revision-suggestion'!=_0x3ecf17||'insertion'!=_0x47405d&&'deletion'!=_0x47405d||(_0x1f0706['unshift']({'type':_0x47405d,'name':_0x55a5c1,'userId':_0x35856d}),_0x3326ee[_0x19f19b]['markersStart']['splice'](_0x4f7b2b,0x1),_0x4f7b2b--);}_0x457d49(_0x3326ee[_0x19f19b]);for(let _0x17d951=0x0;_0x17d951<_0x3326ee[_0x19f19b]['markersEnd']['length'];_0x17d951++){const _0xd3bd66=_0x3326ee[_0x19f19b]['markersEnd'][_0x17d951];if(!_0x2531b3['has'](_0xd3bd66))continue;const {group:_0x5d7136,type:_0x4c794a}=_0x58c6a8(_0xd3bd66);if('revision-suggestion'!=_0x5d7136||'insertion'!=_0x4c794a&&'deletion'!=_0x4c794a)continue;_0x3326ee[_0x19f19b]['markersEnd']['splice'](_0x17d951,0x1),_0x17d951--;const _0x427017=_0x1f0706['findIndex'](_0x17d49e=>_0x17d49e['name']==_0xd3bd66);_0x427017>-0x1&&_0x1f0706['splice'](_0x427017,0x1);}}function _0x58c6a8(_0x3918a8){const _0x42093f=_0x3918a8['split'](':');return{'group':_0x42093f[0x0],'type':_0x42093f[0x1],'subType':_0x42093f['length']>=0x5?_0x42093f[0x2]:null,'id':_0x42093f['length']<0x5?_0x42093f[0x2]:_0x42093f[0x3],'authorId':_0x42093f['length']<0x5?_0x42093f[0x3]:_0x42093f[0x4],'markerCount':0x6==_0x42093f['length']?_0x42093f[0x5]:null};}function _0x457d49(_0x1f21fc){for(let _0x111de8=0x0;_0x111de8<_0x1f0706['length'];_0x111de8++){if(_0x1f21fc['isAdded']&&'insertion'==_0x1f0706[_0x111de8]['type'])return _0x1f21fc['isAddSuggestion']=_0x1f0706[_0x111de8],void delete _0x1f21fc['isAdded'];if(!_0x1f21fc['isAdded']&&!_0x1f21fc['isRemoved']&&'deletion'==_0x1f0706[_0x111de8]['type'])return void(_0x1f21fc['isRemoveSuggestion']=_0x1f0706[_0x111de8]);}}}['_setDistance'](_0x576159,_0x4cc2ed){let _0x4caba6=0x0,_0x5243b6=!0x1;const _0x2c0dbe=new Map();for(const _0x34da24 of _0x576159)_0x34da24[_0x4cc2ed]?_0x5243b6&&(_0x4caba6++,_0x5243b6=!0x1):(_0x4caba6++,_0x5243b6=!0x0),_0x2c0dbe['set'](_0x34da24['id'],_0x4caba6);for(let _0x48174c=0x0;_0x48174c<_0x576159['length'];_0x48174c++){if('isRemoved'==_0x4cc2ed&&_0x576159[_0x48174c]['isAdded']||'isAdded'==_0x4cc2ed&&_0x576159[_0x48174c]['isRemoved'])continue;if('text'==_0x576159[_0x48174c]['type']){_0x576159[_0x48174c]['distance']=0x0;continue;}const _0x4ad56a=_0x2c0dbe['get'](_0x576159[_0x48174c]['pairId']),_0x42f8ca=_0x2c0dbe['get'](_0x576159[_0x48174c]['id']);_0x576159[_0x48174c]['distance']=_0x4ad56a-_0x42f8ca;}}['_getRevisionsRange'](_0x4fd1ab,_0x8d2ba3,_0x5b5fca=!0x1){const _0x5b23fc=[];let _0x33ade2=this['repository']['getIndex'](_0x4fd1ab),_0x2c14f1=this['repository']['getIndex'](_0x8d2ba3);for(-0x1==_0x2c14f1&&(_0x2c14f1=this['repository']['_revisions']['length'],_0x5b5fca=!0x1);_0x33ade2<_0x2c14f1;)_0x5b23fc['push'](this['repository']['getRevision'](_0x33ade2)),_0x33ade2++;return _0x5b5fca&&_0x5b23fc['push'](this['repository']['getRevision'](_0x33ade2)),_0x5b23fc;}['_threeWayMerge'](_0x4b9b83,_0x13216a,_0x1a33f5,_0x3b9294){const _0x53888c=this['editor']['model']['schema'];let _0x65b0c0=_0x13216a;for(;_0x4b9b83[_0x65b0c0]&&_0x4b9b83[_0x65b0c0]['isAdded'];)_0x65b0c0++;let _0x72c37=_0x3b9294;for(;_0x1a33f5[_0x72c37]&&_0x1a33f5[_0x72c37]['isRemoved'];)_0x72c37++;_0x75a21f(_0x4b9b83,_0x13216a,_0x65b0c0),_0x75a21f(_0x1a33f5,_0x3b9294,_0x72c37);const _0x29f406=_0x1a33f5['slice'](_0x3b9294,_0x72c37)['concat'](_0x4b9b83['slice'](_0x13216a,_0x65b0c0));return _0x29f406['sort']((_0x43af65,_0x2cec31)=>_0x43af65['side']!=_0x2cec31['side']?_0x43af65['side']-_0x2cec31['side']:_0x43af65['level']!=_0x2cec31['level']?_0x43af65['level']-_0x2cec31['level']:_0x43af65['distance']!=_0x2cec31['distance']?_0x2cec31['distance']-_0x43af65['distance']:!!_0x43af65['isAdded']!=!!_0x2cec31['isAdded']?-0x1==_0x43af65['side']||0x0==_0x43af65['side']?_0x43af65['isAdded']?-0x1:0x1:_0x43af65['isAdded']?0x1:-0x1:_0x43af65['index']-_0x2cec31['index']),{'commonTape':_0x29f406,'iEnd':_0x65b0c0,'jEnd':_0x72c37};function _0x75a21f(_0x3d66c7,_0x20dfa0,_0x58f844){let _0x465a6a=-0x1,_0x2514a8=Number['POSITIVE_INFINITY'],_0x7863bc=!0x0;for(let _0x16306b=_0x20dfa0;_0x16306b<_0x58f844;_0x16306b++)if(_0x53888c['isInline'](_0x3d66c7[_0x16306b]['item'])||(_0x7863bc=!0x1),_0x3d66c7[_0x16306b]['item']['startIndex']<_0x20dfa0&&(_0x465a6a=_0x16306b),_0x3d66c7[_0x16306b]['item']['endIndex']>=_0x58f844){_0x2514a8=_0x16306b;break;}_0x7863bc&&(_0x465a6a=_0x58f844-0x1);for(let _0x57158f=_0x20dfa0;_0x57158f<_0x58f844;_0x57158f++)_0x3d66c7[_0x57158f]['side']=_0x57158f<=_0x465a6a?-0x1:_0x57158f<_0x2514a8?0x0:0x1,_0x3d66c7[_0x57158f]['index']=_0x57158f;let _0x4ad6fb=0x0;for(let _0x20e2ae=_0x20dfa0;_0x20e2ae<=_0x465a6a;_0x20e2ae++)0x0==_0x3d66c7[_0x20e2ae]['distance']?_0x3d66c7[_0x20e2ae]['level']=_0x4ad6fb:(_0x4ad6fb++,_0x3d66c7[_0x20e2ae]['level']=_0x4ad6fb,_0x4ad6fb++);for(let _0x31f0df=_0x20dfa0;_0x31f0df<_0x58f844;_0x31f0df++)0x0==_0x3d66c7[_0x31f0df]['side']&&(_0x3d66c7[_0x31f0df]['level']=_0x4ad6fb);_0x4ad6fb=0x0;for(let _0x545d95=_0x58f844-0x1;_0x545d95>=_0x2514a8;_0x545d95--)0x0==_0x3d66c7[_0x545d95]['distance']?_0x3d66c7[_0x545d95]['level']=_0x4ad6fb:(_0x4ad6fb--,_0x3d66c7[_0x545d95]['level']=_0x4ad6fb,_0x4ad6fb--);}}['_fixObsoleteTags'](_0x32b0a2){const _0x2aeee9=new Map(),_0x2bcd77=this['editor']['model']['schema'];for(let _0x17c604=0x1;_0x17c604<_0x32b0a2['length'];_0x17c604++){let _0x5e511e,_0x11aa8d,_0x410960;const _0x460ddc=_0x32b0a2[_0x17c604],_0x113be4=_0x32b0a2[_0x17c604-0x1];if('text'==_0x460ddc['type'])continue;if(_0x460ddc['type']!=_0x113be4['type'])continue;if(!_0x2bcd77['isBlock'](_0x113be4['item'])||_0x2bcd77['isLimit'](_0x113be4['item']))continue;if(!_0x2bcd77['isBlock'](_0x460ddc['item'])||_0x2bcd77['isLimit'](_0x460ddc['item']))continue;if((_0x32b0a2[_0x17c604]['isAdded']||_0x32b0a2[_0x17c604]['isAddSuggestion'])&&_0x32b0a2[_0x17c604-0x1]['isRemoved'])_0x5e511e=_0x32b0a2[_0x17c604],_0x11aa8d=_0x32b0a2[_0x17c604-0x1],_0x410960=_0x17c604-0x1;else{if(!_0x32b0a2[_0x17c604]['isRemoved']||!_0x32b0a2[_0x17c604-0x1]['isAdded']&&!_0x32b0a2[_0x17c604-0x1]['isAddSuggestion'])continue;_0x5e511e=_0x32b0a2[_0x17c604-0x1],_0x11aa8d=_0x32b0a2[_0x17c604],_0x410960=_0x17c604;}const _0x5a422c=_0x5e511e['level']==_0x11aa8d['level'],_0x20e586=Math['abs'](_0x5e511e['level'])<Math['abs'](_0x11aa8d['level'])&&0x0==_0x11aa8d['distance'];(_0x5a422c||_0x20e586)&&(_0x2aeee9['set'](_0x11aa8d['id'],_0x5e511e['id']),_0x32b0a2['splice'](_0x410960,0x1),_0x17c604--,_0x5e511e['isAdded']=!0x1);}for(let _0x1c9e48=0x0;_0x1c9e48<_0x32b0a2['length'];_0x1c9e48++)_0x2aeee9['has'](_0x32b0a2[_0x1c9e48]['pairId'])&&(_0x32b0a2[_0x1c9e48]['pairId']=_0x2aeee9['get'](_0x32b0a2[_0x1c9e48]['pairId']));}['_removeMissingPairs'](_0x502481){const _0x133657=new Set(_0x502481['map'](_0x4819ea=>_0x4819ea['id']));for(let _0x2d1e8e=0x0;_0x2d1e8e<_0x502481['length'];_0x2d1e8e++)_0x133657['has'](_0x502481[_0x2d1e8e]['pairId'])||0x0==_0x502481[_0x2d1e8e]['distance']||(_0x502481[_0x2d1e8e]['isIncorrect']=!0x0);return _0x502481['filter'](_0x323ad8=>!_0x323ad8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2a440d){const _0x131821=new Set();for(let _0x44fe19=0x0;_0x44fe19<_0x2a440d['length'];_0x44fe19++){if(_0x131821['has'](_0x2a440d[_0x44fe19]['id'])&&_0x2a440d[_0x44fe19]['isRemoved']&&(_0x2a440d[_0x44fe19]['isIncorrect']=!0x0),_0x2a440d[_0x44fe19]['isIncorrect'])continue;if(0x0==_0x2a440d[_0x44fe19]['distance'])continue;if('elementStart'!=_0x2a440d[_0x44fe19]['type'])continue;if(null==_0x2a440d[_0x44fe19]['pairId'])continue;let _0x4ced61=_0x44fe19+0x1,_0x2ab9b0=0x0;for(;_0x2a440d[_0x4ced61]['id']!=_0x2a440d[_0x44fe19]['pairId'];)'elementStart'==_0x2a440d[_0x4ced61]['type']?_0x2ab9b0++:'elementEnd'==_0x2a440d[_0x4ced61]['type']&&_0x2ab9b0--,_0x4ced61++;if(0x0!=_0x2ab9b0){if(_0x2a440d[_0x44fe19]['isRemoved'])_0x2a440d[_0x44fe19]['isIncorrect']=!0x0;else{for(;_0x4ced61!=_0x44fe19;)_0x2a440d[_0x4ced61]['isRemoved']&&0x0!=_0x2a440d[_0x4ced61]['distance']&&(_0x2a440d[_0x4ced61]['isIncorrect']=!0x0,_0x131821['add'](_0x2a440d[_0x4ced61]['pairId'])),_0x4ced61--;}}}return _0x2a440d['filter'](_0x459a16=>!_0x459a16['isIncorrect']);}['_removeUnsupportedChanges'](_0x498fa5){const _0x4f53f1=this['editor']['model']['schema'];for(let _0xc8e4a2=0x0;_0xc8e4a2<_0x498fa5['length'];_0xc8e4a2++){if(!(_0x498fa5[_0xc8e4a2]['isAdded']||_0x498fa5[_0xc8e4a2]['isAddSuggestion']||_0x498fa5[_0xc8e4a2]['isRemoved']||_0x498fa5[_0xc8e4a2]['isRemoveSuggestion']))continue;if(0x0==_0x498fa5[_0xc8e4a2]['distance'])continue;const _0x41bf79=_0x498fa5[_0xc8e4a2]['item'];_0x4f53f1['isBlock'](_0x41bf79)||_0x4f53f1['isLimit'](_0x41bf79)||(_0x498fa5[_0xc8e4a2]['isAdded']&&delete _0x498fa5[_0xc8e4a2]['isAdded'],_0x498fa5[_0xc8e4a2]['isAddSuggestion']&&delete _0x498fa5[_0xc8e4a2]['isAddSuggestion'],_0x498fa5[_0xc8e4a2]['isRemoveSuggestion']&&delete _0x498fa5[_0xc8e4a2]['isRemoveSuggestion'],_0x498fa5[_0xc8e4a2]['isRemoved']&&(_0x498fa5[_0xc8e4a2]['isIncorrect']=!0x0));}return _0x498fa5['filter'](_0x1a24fc=>!_0x1a24fc['isIncorrect']);}['_makeModelFromTape'](_0x537955,_0x36f885,_0x108bec){const _0xa2d451=new gt(),_0x199653=[],_0x2c7579=new Map(),_0x135d01=this['editor']['model'],_0x11c630=_0x135d01['schema'],_0x1960d4=[_0xa2d451],_0x700481={},_0x3a974d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x92ebf5=null;const _0xf281cf=[0x0];for(let _0x3c9ceb=0x0;_0x3c9ceb<_0x537955['length'];_0x3c9ceb++)if('elementStart'===_0x537955[_0x3c9ceb]['type']){_0x537955[_0x3c9ceb]['previousPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf);const _0x200e4d=new ut(_0x537955[_0x3c9ceb]['item']['name'],_0x537955[_0x3c9ceb]['item']['getAttributes']());_0x1960d4[0x0]['_appendChild'](_0x200e4d),_0xf281cf['push'](0x0),_0x1960d4['unshift'](_0x200e4d),_0x537955[_0x3c9ceb]['nextPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf);}else'elementEnd'===_0x537955[_0x3c9ceb]['type']?(_0x1960d4['shift'](),_0x537955[_0x3c9ceb]['previousPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf),_0xf281cf['pop'](),_0xf281cf[_0xf281cf['length']-0x1]++,_0x537955[_0x3c9ceb]['nextPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf)):(_0x537955[_0x3c9ceb]['previousPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf),_0x92ebf5?_0x92ebf5['_data']+=_0x537955[_0x3c9ceb]['item']['data']:_0x92ebf5=new mt(_0x537955[_0x3c9ceb]['item']['data'],_0x537955[_0x3c9ceb]['item']['getAttributes']()),_0x537955[_0x3c9ceb+0x1]&&'text'===_0x537955[_0x3c9ceb+0x1]['type']&&_0x472f87(_0x92ebf5,_0x537955[_0x3c9ceb+0x1]['item'])||(_0x1960d4[0x0]['_appendChild'](_0x92ebf5),_0x92ebf5=null),_0xf281cf[_0xf281cf['length']-0x1]+=_0x537955[_0x3c9ceb]['item']['offsetSize'],_0x537955[_0x3c9ceb]['nextPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf));for(let _0x51aad8=0x0;_0x51aad8<_0x537955['length'];_0x51aad8++){const _0x41ab21=_0x537955[_0x51aad8]['previousPosition'],_0x40483e=_0x537955[_0x51aad8]['nextPosition'];for(const _0x13394b of _0x537955[_0x51aad8]['markersStart'])_0x2c7579['set'](_0x13394b,{'start':_0x41ab21,'end':null});_0x13fa88('isRemoveSuggestion',_0x51aad8,_0x41ab21,_0x40483e),_0x13fa88('isAddSuggestion',_0x51aad8,_0x41ab21,_0x40483e),_0x13fa88('isRemoved',_0x51aad8,_0x41ab21,_0x40483e),_0x13fa88('isAdded',_0x51aad8,_0x41ab21,_0x40483e);for(const _0xab7ae4 of _0x537955[_0x51aad8]['markersEnd']){_0x2c7579['get'](_0xab7ae4)['end']=_0x40483e;}}for(const [_0x4bd553,_0x482fe2]of _0x2c7579){const _0x11dfd1=this['editor']['model']['createRange'](_0x482fe2['start'],_0x482fe2['end']);_0xa2d451['markers']['set'](_0x4bd553,_0x11dfd1);}return _0x199653['sort']((_0x5444a9,_0x348bed)=>{const _0x1a1d35=_0xa2d451['markers']['get']('revision:'+_0x5444a9['id']),_0x22f054=_0xa2d451['markers']['get']('revision:'+_0x348bed['id']);return _0x1a1d35['start']['isBefore'](_0x22f054['start'])?-0x1:_0x1a1d35['start']['isAfter'](_0x22f054['start'])?0x1:_0x1a1d35['end']['isBefore'](_0x22f054['end'])?-0x1:_0x1a1d35['end']['isAfter'](_0x22f054['end'])?0x1:'add'===_0x5444a9['type']?-0x1:0x1;}),{'root':_0xa2d451,'changes':_0x199653};function _0x13fa88(_0x2058a4,_0x5364ea,_0x30cc06,_0xc67e8d){const _0x485638=!!_0x537955[_0x5364ea][_0x2058a4],_0x7bd1ed=_0x485638?_0x537955[_0x5364ea][_0x2058a4]['userId']:null,_0x3ec2da=_0x5364ea===_0x537955['length']-0x1,_0x169810=_0x3a974d[_0x2058a4][0x0],_0x321f12=_0x11c630['isObject'](_0x537955[_0x5364ea]['item']);!_0x700481[_0x2058a4]&&_0x485638?_0x700481[_0x2058a4]={'start':_0x30cc06,'tapeItem':_0x537955[_0x5364ea],'userId':_0x7bd1ed,'type':_0x2058a4}:_0x700481[_0x2058a4]&&!_0x485638?(_0x700481[_0x2058a4]['end']=_0x30cc06,_0x33543d(_0x700481[_0x2058a4]),_0x700481[_0x2058a4]=null):_0x700481[_0x2058a4]&&_0x485638&&_0x700481[_0x2058a4]['userId']!==_0x7bd1ed&&(_0x700481[_0x2058a4]['end']=_0x30cc06,_0x169810&&_0x169810['userId']===_0x700481[_0x2058a4]['userId']||_0x33543d(_0x700481[_0x2058a4]),_0x700481[_0x2058a4]={'start':_0x30cc06,'tapeItem':_0x537955[_0x5364ea],'userId':_0x7bd1ed,'type':_0x2058a4}),_0x700481[_0x2058a4]&&_0x321f12&&('elementStart'!==_0x537955[_0x5364ea]['type']||_0x169810&&_0x169810['userId']===_0x7bd1ed||_0x3a974d[_0x2058a4]['unshift']({'userId':_0x7bd1ed,'object':_0x537955[_0x5364ea]['item'],'change':_0x700481[_0x2058a4]}),'elementEnd'===_0x537955[_0x5364ea]['type']&&_0x169810&&_0x169810['object']===_0x537955[_0x5364ea]['item']&&(_0x3a974d[_0x2058a4]['shift'](),_0x700481[_0x2058a4]=_0x169810['change'])),_0x700481[_0x2058a4]&&_0x3ec2da&&(_0x700481[_0x2058a4]['end']=_0xc67e8d,_0x33543d(_0x700481[_0x2058a4]),_0x700481[_0x2058a4]=null);}function _0x33543d({start:_0x1138e8,end:_0x156be5,tapeItem:_0x1b7cf8,userId:_0x1be429,type:_0x33711e}){const _0x5dd079=_0x1b7cf8['item'],_0x796fd2=_0x135d01['schema']['isBlock'](_0x5dd079)&&!_0x135d01['schema']['isLimit'](_0x5dd079),_0x1d5c9f=_0x1138e8['nodeAfter']==_0x156be5['parent']&&_0x156be5['isAtStart'];if(_0x796fd2&&_0x1d5c9f)return;const _0x2a03b3=_0x135d01['createRange'](_0x1138e8,_0x156be5),_0x3124d3=_0x36f885['get'](_0x1be429),_0x524752=new r({'author':_0x3124d3,'type':'isAdded'==_0x33711e||'isAddSuggestion'==_0x33711e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33711e||'isRemoveSuggestion'==_0x33711e},'createdAt':new Date(),'rootName':_0x108bec});_0x199653['push'](_0x524752),_0xa2d451['markers']['set']('revision:'+_0x524752['id'],_0x2a03b3);}function _0x472f87(_0x13ee24,_0x1d846c){const _0x246c16=_0x13ee24['getAttributes'](),_0x13915e=_0x1d846c['getAttributes']();for(const _0x4d639e of _0x246c16){if(_0x4d639e[0x1]!==_0x1d846c['getAttribute'](_0x4d639e[0x0]))return!0x1;_0x13915e['next']();}return _0x13915e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x59c9e4=>{const _0x1ad07c=_0x59c9e4['markerName']['split'](':')[0x1],_0x4c8204=this['_getChangeFromId'](_0x1ad07c);if(!_0x4c8204)return null;const _0x1ff159='add'==_0x4c8204['type']?'insertion':'deletion',_0x3acd5c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1ff159];return _0x4c8204['data']['isSuggestion']&&_0x3acd5c['push']('ck-suggestion-marker-'+_0x1ff159+'-new'),this['activeChange']==_0x4c8204&&_0x3acd5c['push']('ck-suggestion-marker--active'),{'classes':_0x3acd5c,'attributes':{'data-change-id':_0x1ad07c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x24eeb0=>{_0x24eeb0['on']('element:pre',(_0x46118f,_0xbc6084,_0x1ac4ac)=>{const _0x3b4356=_0xbc6084['viewItem']['getChild'](0x0);if(!_0x3b4356||!_0x3b4356['is']('element','code'))return;if(!_0x1ac4ac['consumable']['consume'](_0x3b4356,{'attributes':['vid_start','vid_end']}))return;const _0x1fbef8=_0xbc6084['modelRange']['start']['nodeAfter'];_0x1ac4ac['writer']['setAttribute']('vid_start',_0x3b4356['getAttribute']('vid_start'),_0x1fbef8),_0x1ac4ac['writer']['setAttribute']('vid_end',_0x3b4356['getAttribute']('vid_end'),_0x1fbef8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1d665d=>{_0x1d665d['on']('element',(_0x125cc0,_0x44958c,_0x1b31ad)=>{if(!_0x1b31ad['consumable']['consume'](_0x44958c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x44958c['modelRange']['isCollapsed'])return;const _0x1adbd1=_0x44958c['modelRange']['start']['nodeAfter'];_0x1adbd1['hasAttribute']('vid_start')||_0x1adbd1['hasAttribute']('vid')||(_0x1b31ad['writer']['setAttribute']('vid_start',_0x44958c['viewItem']['getAttribute']('vid_start'),_0x1adbd1),_0x1b31ad['writer']['setAttribute']('vid_end',_0x44958c['viewItem']['getAttribute']('vid_end'),_0x1adbd1));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x43ff80=>_0x43ff80['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3e7cc8,[,_0x1d398a])=>{['vid_start','vid_end','vid']['includes'](_0x1d398a)&&(_0x3e7cc8['return']=!0x0,_0x3e7cc8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4f187f=>{_0x4f187f['on']('attribute:vid',(_0x55ebcb,_0xa27156,_0x39cca8)=>{if('\x20'!=_0xa27156['item']['data']||_0xa27156['item']['parent']['maxOffset']>0x1)return;if(!_0x39cca8['consumable']['consume'](_0xa27156['item'],_0x55ebcb['name']))return;const _0x56e617=_0x39cca8['writer'],_0x302438=_0x39cca8['mapper']['toViewRange'](_0xa27156['range']);_0x56e617['wrap'](_0x302438,_0x56e617['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2ee7dc){const _0x3d815d=_0x2ee7dc['plugins']['get']('RevisionViewer');return(_0x73edc2,_0x5017b2,_0x3c6a99)=>{const _0x125b91=_0x5017b2['markerName']['split'](':')[0x1],_0x390b20=_0x3d815d['_getChangeFromId'](_0x125b91);if(!_0x390b20)return null;const _0x5880eb='add'==_0x390b20['type']?'split':'merge';if(!_0x3c6a99['consumable']['test'](_0x5017b2['markerRange'],_0x73edc2['name']))return;const _0xdc1fa7=_0x5017b2['markerRange']['getWalker'](),_0x55b342=_0x5017b2['markerRange']['start'],_0x3c9cd2=_0x2ee7dc['model']['schema'];let _0x3ca213=null,_0x5e7973=null,_0x2ab943=!0x1,_0x364e94=!0x1;for(const _0x2bd958 of _0xdc1fa7){const _0x4a30a6=_0x2bd958['item'];_0x2ab943=_0x2ab943||_0x3c9cd2['isContent'](_0x4a30a6);const _0x5cc97c=_0x3c6a99['mapper']['toViewElement'](_0x4a30a6);if(_0x5cc97c&&_0x5cc97c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2bd958['type']&&(_0x3c9cd2['isBlock'](_0x4a30a6)&&!_0x3c9cd2['isLimit'](_0x4a30a6)&&(_0x4a30a6['nextSibling']||_0x55b342['isAtEnd']?_0x3ca213&&_0x3ca213['parent']==_0x4a30a6||(_0x3ca213=_0x4a30a6,_0x5028e8(_0x2bd958['previousPosition']),_0x364e94=!0x0):_0x5e7973=_0x5e7973||_0x2bd958['previousPosition']));}function _0x5028e8(_0x2628a0){const _0x4ebf1b=_0x3c6a99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5880eb}),_0x44b9d7=_0x3c6a99['mapper']['toViewPosition'](_0x2628a0);_0x390b20['data']['isSuggestion']&&_0x3c6a99['writer']['addClass']('ck-suggestion-marker-'+_0x5880eb+'-new',_0x4ebf1b),_0x3d815d['activeChange']==_0x390b20&&_0x3c6a99['writer']['addClass']('ck-suggestion-marker--active',_0x4ebf1b),_0x3c6a99['writer']['insert'](_0x44b9d7,_0x4ebf1b),_0x3c6a99['mapper']['bindElementToMarker'](_0x4ebf1b,_0x5017b2['markerName']);}_0x2ab943||_0x364e94||!_0x5e7973||_0x5028e8(_0x5e7973);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5a7136,_0x2bf7bc,_0x37a526)=>{const _0x37dfe0=_0x37a526['mapper']['markerNameToElements'](_0x2bf7bc['markerName']);if(_0x37dfe0){for(const _0x145c34 of _0x37dfe0)(_0x145c34['hasClass']('ck-suggestion-marker-split')||_0x145c34['hasClass']('ck-suggestion-marker-merge'))&&(_0x37a526['mapper']['unbindElementFromMarkerName'](_0x145c34,_0x2bf7bc['markerName']),_0x37a526['writer']['remove'](_0x145c34));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4334d8,_0x3cd2e4,_0x130bf5)=>{const _0x98d2b9=_0x3cd2e4['markerName']['split'](':')[0x1],_0x133094=this['_getChangeFromId'](_0x98d2b9);if(!_0x133094)return null;const _0x4c71a9='add'==_0x133094['type']?'split':'merge';if(_0x130bf5['consumable']['test'](_0x3cd2e4['markerRange'],_0x4334d8['name']))for(const _0x169cb9 of _0x3cd2e4['markerRange']['getItems']()){if(!_0x169cb9['is']('element','softBreak'))continue;const _0x5407e9=_0x130bf5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c71a9}),_0x293871=_0x130bf5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x169cb9));_0x133094['data']['isSuggestion']&&_0x130bf5['writer']['addClass']('ck-suggestion-marker-'+_0x4c71a9+'-new',_0x5407e9),this['activeChange']==_0x133094&&_0x130bf5['writer']['addClass']('ck-suggestion-marker--active',_0x5407e9),_0x130bf5['writer']['insert'](_0x293871,_0x5407e9),_0x130bf5['mapper']['bindElementToMarker'](_0x5407e9,_0x3cd2e4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4173c7=>{for(const _0x30bd9d of this['editor']['model']['document']['getRootNames']()){const _0x20472a=this['editor']['model']['document']['getRoot'](_0x30bd9d),_0x289045=this['editor']['editing']['view']['document']['getRoot'](_0x30bd9d);if(_0x289045){const _0x209c82=_0x20472a['getAttribute']('revisionHistoryAttachChange');if(_0x4173c7['removeAttribute']('data-change-id',_0x289045),_0x4173c7['removeClass']('ck-revision-history-root-add',_0x289045),_0x4173c7['removeClass']('ck-revision-history-root-remove',_0x289045),_0x4173c7['removeClass']('ck-revision-history-root--active',_0x289045),_0x209c82){const _0x217a85=this['_getChangeFromId'](_0x209c82);if(!_0x217a85)return null;_0x4173c7['setAttribute']('data-change-id',_0x209c82,_0x289045),_0x4173c7['addClass']('ck-revision-history-root-'+_0x217a85['type'],_0x289045),this['activeChange']==_0x217a85&&_0x4173c7['addClass']('ck-revision-history-root--active',_0x289045);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x47f700=>'revision-comment:'+_0x47f700,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4259d2=>'revision-suggestion:'+_0x4259d2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x158b46=>({'name':'suggestion:'+_0x158b46,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2b5347=>{const _0x4efa79=_0x2b5347['markerName']['split'](':')[0x1];return'insertion'!=_0x4efa79&&'deletion'!=_0x4efa79?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4efa79]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4446ba,_0x9f039e,_0x30aea3)=>{const _0x5232f8=_0x30aea3['mapper']['markerNameToElements'](_0x9f039e['markerName']);if(_0x5232f8){for(const _0x3ffa9a of _0x5232f8)_0x3ffa9a['is']('uiElement')&&(_0x30aea3['mapper']['unbindElementFromMarkerName'](_0x3ffa9a,_0x9f039e['markerName']),_0x30aea3['writer']['remove'](_0x3ffa9a));}},{'priority':'high'});}['_getChangeFromId'](_0x45534d){return this['_changeIdToChange']['get'](_0x45534d);}['_getViewForChange'](_0x503475){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x503475),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1c49f5,_0x3f987a,_0x5c06e2,_0x2ac6dc)=>{_0x2ac6dc&&this['_balloon']['remove'](_0x2ac6dc),_0x5c06e2&&(this['_balloon']['add']({'view':_0x5c06e2,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2cf06d=this['editor']['editing'],_0x5a84e8=this['_getChangeFromId'](_0x5c06e2['changeId']);let _0x3da5ed;if(_0x5a84e8['data']['isOnRoot']){const _0x2fdc94=_0x2cf06d['view']['getDomRoot'](_0x5a84e8['rootName']);_0x3da5ed=Array['from'](_0x2fdc94['getClientRects']());}else{const _0xba9fa4=this['editor']['model']['markers']['get']('revision:'+_0x5c06e2['changeId']);_0x3da5ed=Array['from'](_0x2cf06d['mapper']['markerNameToElements'](_0xba9fa4['name']))['map'](_0x208ce1=>_0x2cf06d['view']['domConverter']['mapViewToDom'](_0x208ce1))['map'](_0x13e118=>Array['from'](_0x13e118['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3da5ed[0x0];return _0x3da5ed['find'](_0x56da1d=>_0x56da1d['top']-0x3<=this['_activeViewTarget']['y']&&_0x56da1d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x56da1d['left']-0x3<=this['_activeViewTarget']['x']&&_0x56da1d['right']+0x3>=this['_activeViewTarget']['x'])||_0x3da5ed[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x52fa9b,_0x2035a4,_0x33a974,_0x4795f3)=>{this['activeView']=_0x33a974?this['_getViewForChange'](_0x33a974):null,this['editor']['model']['change'](()=>{const _0x5410e5=this['editor']['editing'];_0x4795f3&&(_0x4795f3['data']['isOnRoot']?_0x5410e5['view']['change'](_0x5089c1=>{_0x5089c1['removeClass']('ck-revision-history-root--active',_0x5410e5['view']['document']['getRoot'](_0x4795f3['rootName']));}):_0x5410e5['reconvertMarker']('revision:'+_0x4795f3['id'])),_0x33a974&&(_0x33a974['data']['isOnRoot']?_0x5410e5['view']['change'](_0x202667=>{_0x202667['addClass']('ck-revision-history-root--active',_0x5410e5['view']['document']['getRoot'](_0x33a974['rootName']));}):_0x5410e5['reconvertMarker']('revision:'+_0x33a974['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4725f6,_0x4d89f0)=>{if(this['activeChange'])return;const _0x11f49f=this['_findChangeIdFromDomTarget'](_0x4d89f0['target']),_0x2171bc=this['_changeIdToChange']['get'](_0x11f49f);_0x2171bc?(this['_activeViewTarget']={'x':_0x4d89f0['domEvent']['x'],'y':_0x4d89f0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2171bc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x16634e,_0x272932)=>{const _0x2a37e1=this['_findChangeIdFromDomTarget'](_0x272932['target']),_0x470cae=this['_changeIdToChange']['get'](_0x2a37e1);_0x470cae?(this['_activeViewTarget']={'x':_0x272932['domEvent']['x'],'y':_0x272932['domEvent']['y']},_0x470cae===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x470cae):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x52afad){do{const _0x258af0=_0x52afad['getAttribute']('data-change-id');if(_0x258af0)return _0x258af0;_0x52afad=_0x52afad['parent'];}while(_0x52afad);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x576321=>{for(const _0x13a697 of this['editor']['model']['markers'])_0x576321['removeMarker'](_0x13a697);});}}function Z(_0x1b4c6d,_0x7637e8){return(_0xfb002d,_0x3418d3,_0x33d39f)=>{if(!_0x33d39f['consumable']['test'](_0x3418d3['markerRange'],_0xfb002d['name']))return;const _0x573047=_0x3418d3['markerRange']['getWalker'](),_0x2185f4=_0x3418d3['markerRange']['start'],_0x561062=_0x1b4c6d['model']['schema'];let _0x1cf9da=null,_0x3937f0=null,_0x2f0102=!0x1,_0x52f47b=!0x1;for(const _0x591aae of _0x573047){const _0x34a2f7=_0x591aae['item'];_0x2f0102=_0x2f0102||_0x561062['isContent'](_0x34a2f7);const _0x5aed5d=_0x33d39f['mapper']['toViewElement'](_0x34a2f7);if(_0x5aed5d&&_0x5aed5d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x591aae['type']&&(_0x561062['isBlock'](_0x34a2f7)&&!_0x561062['isLimit'](_0x34a2f7)&&(_0x34a2f7['nextSibling']||_0x2185f4['isAtEnd']?_0x1cf9da&&_0x1cf9da['parent']==_0x34a2f7||(_0x1cf9da=_0x34a2f7,_0x1c7c7c(_0x591aae['previousPosition']),_0x52f47b=!0x0):_0x3937f0=_0x3937f0||_0x591aae['previousPosition']));}function _0x1c7c7c(_0x297597){const _0x4b7f9c=_0x33d39f['mapper']['toViewPosition'](_0x297597),_0x34d856=_0x33d39f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x7637e8});_0x33d39f['writer']['insert'](_0x4b7f9c,_0x34d856),_0x33d39f['mapper']['bindElementToMarker'](_0x34d856,_0x3418d3['markerName']);}_0x2f0102||_0x52f47b||!_0x3937f0||_0x1c7c7c(_0x3937f0);};}class wt extends _0x27c93a{constructor(_0x209c57){super(_0x209c57);const _0x239e64=_0x209c57['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x239e64,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x239e64,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5cfc5e=this['editor'],_0x40d3ab=_0x5cfc5e['plugins']['get'](d),_0x3004fe=_0x40d3ab['isReady']?_0x40d3ab['diff']['newRevisionId']:null;_0x5cfc5e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3004fe);}['refresh'](){const {isReady:_0x496527,isEnabled:_0x1e9348,repository:_0x3fe34b,diff:_0x410989}=this['editor']['plugins']['get'](d),_0x15ff94=_0x410989&&_0x3fe34b['getLaterVisibleRevision'](_0x410989['newRevisionId']);this['isEnabled']=_0x496527&&_0x1e9348&&Boolean(_0x15ff94);}}class _t extends _0x27c93a{['_step'];constructor(_0x44b746,{direction:_0x3d7241}){super(_0x44b746);const _0x185595=_0x44b746['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3d7241?0x1:-0x1,this['listenTo'](_0x185595,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x185595,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x185595,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1f5e1a=this['editor'],_0xa3819f=_0x1f5e1a['plugins']['get'](d),{isNavigationMode:_0x1b2b8d,currentChangeNumber:_0x1bc213}=_0xa3819f;let _0x482971;if(_0xa3819f['activeChange']=_0x1b2b8d?_0xa3819f['diff']['changes']['get'](_0x1bc213+this['_step']):_0xa3819f['diff']['changes']['first'],_0xa3819f['activeChange']['data']['isOnRoot'])_0x482971=_0x1f5e1a['editing']['view']['getDomRoot'](_0xa3819f['activeChange']['rootName']);else{const _0x1e78b6=_0x1f5e1a['model']['markers']['get']('revision:'+_0xa3819f['activeChange']['id']);_0x482971=_0x43daf5(_0x1f5e1a['editing'],_0x1e78b6);}_0x4675b1({'target':_0x482971,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xdbb9f1,currentChangeNumber:_0x447daa,numberOfChanges:_0x23fe66,isReady:_0x473b51,isEnabled:_0x1994ae}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1994ae&&_0x473b51&&_0x23fe66)&&(!_0xdbb9f1||(0x1===this['_step']?_0x447daa<_0x23fe66-0x1:_0x447daa>0x0));}}class di extends ts{constructor(_0x2884f4){super(_0x2884f4);const _0x4aa26e=this['bindTemplate'],_0x56e7d3=new te(_0x2884f4),_0x37e11f=new te(_0x2884f4);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',(_0x3094b4,_0x599b3a)=>_0x3094b4&&_0x599b3a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5196b6,_0x46e29b,_0x1e5218,_0x118f8e)=>{if(!_0x5196b6)return m(_0x2884f4,'Loading...');if(!_0x1e5218)return m(_0x2884f4,'No\x20changes');const _0x2574ff=m(_0x2884f4,'NUMBER_OF_CHANGES',_0x1e5218);return _0x118f8e?m(_0x2884f4,'X_OF_Y_CHANGES',[_0x46e29b+0x1,_0x1e5218]):_0x2574ff;}),_0x56e7d3['set']({'label':m(_0x2884f4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x37c493}),_0x37e11f['set']({'label':m(_0x2884f4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x14e1f8}),_0x56e7d3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x37e11f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x56e7d3['on']('execute',()=>this['fire']('execute','backward')),_0x37e11f['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',_0x4aa26e['if']('_isStatusLabelVisible','ck-hidden',_0x2fcb7d=>!_0x2fcb7d)]},'children':[{'text':_0x4aa26e['to']('isNavigationMode',_0xc4acb1=>_0xc4acb1?m(_0x2884f4,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2884f4,'Total')+':\x20')}]},{'text':_0x4aa26e['to']('_statusText')}]},new _0x332562(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x56e7d3,_0x37e11f]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x1947b9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x99e81b=this['editor']['editing']['view'];_0x99e81b['change'](_0x2b09cc=>{for(const _0x5aa5dd of _0x99e81b['document']['roots'])_0x2b09cc['addClass'](le,_0x5aa5dd);});}['hide'](){const _0x915a88=this['editor']['editing']['view'];_0x915a88['change'](_0x3839c7=>{for(const _0x805845 of _0x915a88['document']['roots'])_0x3839c7['removeClass'](le,_0x805845);});}}class w extends _0x1947b9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x43c895=this['editor'],_0x37f9cc=_0x43c895['plugins']['get'](d),_0x3a282a=_0x43c895['plugins']['get'](de);_0x43c895['ui']['componentFactory']['add']('exitToEditing',_0x2d608d=>{const _0x1f2feb=new te(_0x2d608d);return _0x1f2feb['set']({'label':m(_0x2d608d,'Back\x20to\x20editing'),'icon':_0x13e63e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1f2feb,'execute',()=>{_0x43c895['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1f2feb;}),_0x43c895['ui']['componentFactory']['add']('restoreRevision',_0x2a4366=>{const _0x4ef31d=new te(_0x2a4366);return _0x4ef31d['set']({'label':m(_0x2a4366,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ef31d['bind']('isEnabled')['to'](_0x43c895['commands']['get']('restoreRevision')),this['listenTo'](_0x4ef31d,'execute',()=>_0x43c895['execute']('restoreRevision')),_0x4ef31d;}),_0x43c895['ui']['componentFactory']['add']('changesNavigation',_0x2229eb=>{const _0x24415e=new di(_0x2229eb),_0x446caf=_0x43c895['commands']['get']('showPreviousChange'),_0x5ef780=_0x43c895['commands']['get']('showNextChange');return _0x24415e['bind']('isBackwardNavigationEnabled')['to'](_0x446caf,'isEnabled'),_0x24415e['bind']('isForwardNavigationEnabled')['to'](_0x5ef780,'isEnabled'),_0x24415e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x37f9cc),this['listenTo'](_0x24415e,'execute',(_0x57449c,_0x511d8b)=>{_0x43c895['execute']('forward'===_0x511d8b?'showNextChange':'showPreviousChange');}),_0x24415e;}),_0x3a282a['show'](),_0x37f9cc['on']('change:isReady',(_0x200e60,_0x43b986,_0x3b2336)=>{_0x3b2336?_0x3a282a['hide']():_0x3a282a['show']();});}}class pt extends _0x3230b0{['_resizeObserver']=null;constructor(_0x367a3d,_0x1cf6a4){super(_0x367a3d,_0x1cf6a4);const _0x438a31=this['bindTemplate'];this['set']({'label':m(_0x367a3d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x367a3d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x438a31['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 _0x3261a0=this['fieldView']['element'];this['_tooltipString']=_0x3261a0['scrollWidth']>_0x3261a0['clientWidth']&&_0x3261a0['value']||'';}}class si extends ts{constructor(_0x28e5bf,_0x538b4b,_0x1d02c7){super(_0x28e5bf);const _0x2b4d27=new _0x33aa8f();_0x2b4d27['set']({'content':_0x48a0fb,'viewBox':'0\x200\x2011\x2010'});const _0x3e395d=['ck','ck-revision-history-sidebar__revision-author'];_0x1d02c7&&_0x3e395d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x50d1d3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x28e5bf,_0x1d02c7?'Revision\x20creator':'Revision\x20author')},'children':[_0x2b4d27,_0x538b4b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3e395d},'children':_0x50d1d3});}}function oi(_0x2b4f12,_0x590c5d){const _0x49b1e9=_0x2b4f12['bindTemplate'],_0x3cb86b=_0x2b4f12['locale'],_0x8a969b=_0x5ae326(_0x3cb86b);_0x8a969b['panelPosition']='sw';const _0x5c3b12=function(_0x1b42c0,_0x3d33fc){const _0x1598d6=function(_0x16d70d,_0x546ca1){const _0x546346=_0x16d70d['locale'],_0x2eb167={'Compare\x20against\x20selected':m(_0x546346,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x546346,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x546346,'Restore\x20this\x20revision')};return _0x546ca1['map'](_0x382fc2=>{const _0x525cc9=_0x2eb167[_0x382fc2['name']];return _0x525cc9&&_0x525cc9!==_0x382fc2['name']&&(_0x382fc2['name']=_0x525cc9),_0x382fc2;});}(_0x1b42c0,_0x3d33fc),_0x386b42=new _0x3c9798();for(const _0x42e496 of _0x1598d6){const _0x2dfd83={'type':'button','model':new to({'label':_0x42e496['name'],'class':_0x42e496['class'],'withText':!0x0,'role':'menuitem','_action':_0x42e496['action']})};_0x2dfd83['model']['bind']('isEnabled')['to'](_0x1b42c0,'isActionsDropdownOpen',_0xad660=>'function'!=typeof _0x42e496['isEnabled']||(!_0xad660||_0x42e496['isEnabled'](_0x1b42c0))),_0x386b42['add'](_0x2dfd83);}return _0x386b42;}(_0x2b4f12,_0x590c5d);return _0x2b4f12['bind']('isActionsDropdownOpen')['to'](_0x8a969b,'isOpen'),_0x8a969b['buttonView']['set']({'label':m(_0x3cb86b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x25edbc}),_0x8a969b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x49b1e9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x49b1e9['to'](_0x6010d8=>_0x6010d8['stopPropagation']())}}),_0x8a969b['on']('execute',_0xcfe028=>{_0x2b4f12['isReady']&&'function'==typeof _0xcfe028['source']['_action']&&_0xcfe028['source']['_action'](_0x2b4f12);}),_0x40c490(_0x8a969b,_0x5c3b12,{'role':'menu'}),_0x8a969b['listenTo'](_0x2b4f12,'change:isActionsDropdownOpen',(_0x597beb,_0x8c4935,_0x48ca51)=>{if(_0x48ca51)for(const _0x51a043 of _0x8a969b['listView']['items']){const _0x32f968=_0x51a043['children']['first'],_0x4faa25=_0x590c5d['find'](_0x27e3d1=>_0x27e3d1['action']===_0x32f968['_action'])['isVisible'];_0x51a043['isVisible']=void 0x0===_0x4faa25||_0x4faa25(_0x2b4f12);}}),_0x8a969b;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2c2d93,_0x45b623,_0x58ffb0,_0x2fade2){super(_0x2c2d93);const _0x1fc60d=this['bindTemplate'],_0x135100=function(_0x5a6ac1,_0xc54e2b){const _0x59d7d1=Array['from'](_0xc54e2b['authors'])['filter'](_0x80e5ed=>_0x80e5ed!=_0xc54e2b['creator']);return _0xc54e2b['creator']&&_0x59d7d1['unshift'](_0xc54e2b['creator']),_0x59d7d1['map'](_0x5a57a8=>new si(_0x5a6ac1,_0x5a57a8,_0x5a57a8==_0xc54e2b['creator']));}(_0x2c2d93,_0x45b623);this['id']=_0x45b623['id'],this['_revision']=_0x45b623,this['_requireRevisionName']=_0x2fade2,this['bind']('name','createdAt')['to'](_0x45b623),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x443da5=>{return _0x343234=_0x2c2d93['uiLanguage'],(_0x5b88e6=_0x443da5)['toLocaleDateString'](_0x343234,{'month':'long','day':'numeric'})+',\x20'+_0x5b88e6['toLocaleTimeString'](_0x343234,{'hour':'numeric','minute':'numeric'});var _0x343234,_0x5b88e6;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2c2d93,_0x30c57f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x33e3e2=>_0x33e3e2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2ff650,_0x33d7d1)=>_0x2ff650&&_0x33d7d1),this['revisionActionsView']=_0x58ffb0&&_0x58ffb0['length']?oi(this,_0x58ffb0):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1fc60d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1fc60d['if']('isEnabled','ck-disabled',_0x444b74=>!_0x444b74),_0x1fc60d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1fc60d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1fc60d['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':_0x1fc60d['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':_0x135100}]},this['revisionActionsView']],'on':{'click':_0x1fc60d['to'](_0x3c8f36=>{_0x3c8f36['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x32f9af=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x32f9af,'change',()=>{this['_requireRevisionName']&&!_0x32f9af['value']||this['fire']('setName',{'id':this['id'],'name':_0x32f9af['value']}),_0x32f9af['value']||(_0x32f9af['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(_0x3a0c20,_0x379090){const _0x53de1b=_0x19df88['fromJSDate'](_0x3a0c20)['setLocale'](_0x379090),_0x15cd8f=_0x19df88['local'](),_0x12d0e6=_0x15cd8f['minus']({'days':0x1})['startOf']('day');let _0x296827,_0x23983e;return _0x53de1b['hasSame'](_0x15cd8f,'day')?(_0x296827=_0x53de1b['startOf']('day')['toJSDate'](),_0x23983e=_0x53de1b['toRelativeCalendar']()):_0x53de1b['hasSame'](_0x12d0e6,'day')?(_0x296827=_0x12d0e6['toJSDate'](),_0x23983e=_0x53de1b['toRelativeCalendar']()):_0x53de1b['hasSame'](_0x15cd8f,'week')?(_0x296827=_0x53de1b['startOf']('week')['toJSDate'](),_0x23983e=_0x53de1b['weekdayLong']||''):_0x53de1b['hasSame'](_0x15cd8f,'year')?(_0x296827=_0x53de1b['startOf']('month')['toJSDate'](),_0x23983e=_0x53de1b['monthLong']||''):(_0x296827=_0x53de1b['startOf']('year')['toJSDate'](),_0x23983e=String(_0x53de1b['year'])),{'startDate':_0x296827,'localizedPeriodName':_0x23983e};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x544e67,_0x21eefe,_0x319f1e,_0x16ecc7){super(_0x544e67);const _0x469b95=vi(_0x21eefe,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x21eefe,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x319f1e,this['_requireRevisionName']=_0x16ecc7,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':_0x469b95}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x162aa1){const _0x34400d=new hi(this['locale'],_0x162aa1,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x34400d);}['removeRevision'](_0x343200){const _0x5b8869=this['revisionViews']['find'](_0xcb605f=>_0xcb605f['id']===_0x343200['id']);this['revisionViews']['remove'](_0x5b8869);}}class as extends ts{constructor(_0x21d64d){super(_0x21d64d);const _0xd01b40=new _0x33aa8f();_0xd01b40['content']=_0x4b0f09,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xd01b40,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x21d64d,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5e4e32,_0x54300f,_0x4b95f8,_0x447baf){super(_0x5e4e32);const _0x21a678=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x54300f,this['_revisionActions']=_0x4b95f8,this['_requireRevisionName']=_0x447baf,this['on']('select',(_0x332aab,_0x351b5b)=>{this['fire']('revisionSelected',_0x351b5b);}),this['on']('setName',(_0x3cfcf9,_0x399200)=>{this['fire']('revisionSetName',_0x399200);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5e4e32),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x21a678['if']('isEnabled','ck-disabled',_0x5d0230=>!_0x5d0230)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x286bcb of this['_revisions'])this['_addRevision'](_0x286bcb);this['_revisions']['on']('add',(_0x2fd1dc,_0x256df4)=>{this['_addRevision'](_0x256df4);}),this['_revisions']['on']('remove',(_0x5e4961,_0xef44f7)=>{this['_removeRevision'](_0xef44f7);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5a9d6a=>_0x5a9d6a['revisionViews']['map'](_0x3840f8=>_0x3840f8))['flat']();}['selectRevision'](_0x18a35e){for(const _0x151951 of this['revisionViews'])_0x18a35e&&_0x18a35e['id']===_0x151951['id']?_0x151951['select']():_0x151951['deselect']();}['highlightRevisions'](_0x889e4c){for(const _0x51215c of this['revisionViews'])_0x889e4c['some'](({id:_0x3f17e5})=>_0x3f17e5===_0x51215c['id'])?_0x51215c['highlight']():_0x51215c['unhighlight']();}['_addRevision'](_0x3cd6c6){const _0xcadf62=vi(_0x3cd6c6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x136e20=this['timePeriodViews']['get'](0x0);_0x136e20&&_0x136e20['startDate']['getTime']()===_0xcadf62['getTime']()||(_0x136e20=new mi(this['locale'],_0xcadf62,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x136e20)),_0x136e20['addRevision'](_0x3cd6c6);}['_removeRevision'](_0x326be2){const _0x607b11=vi(_0x326be2['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x607b11)['removeRevision'](_0x326be2);}['_getTimePeriodViewByStartDate'](_0x2dfdf1){return this['timePeriodViews']['find'](_0x158b0e=>_0x158b0e['startDate']['getTime']()===_0x2dfdf1['getTime']());}}class g extends _0x1947b9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x495bad,_0x219f1c){super(_0x219f1c),this['sourceElement']=_0x495bad,this['model']['document']['createRoot']();const _0x40ad29=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x40ad29);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4aa87d,_0x4e4446){const _0x2481cd=new this(_0x4aa87d,_0x4e4446);return await _0x2481cd['initPlugins'](),await _0x2481cd['ui']['init'](_0x4aa87d),await _0x2481cd['data']['init'](_0x2481cd['config']['get']('initialData')||''),_0x2481cd['fire']('ready'),_0x2481cd;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x657f6f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a6714){function _0x15f77b(_0x2860fc){return _0x2860fc['map'](_0x64b0d3=>String['fromCharCode'](_0x64b0d3))['join']('');}super(_0x5a6714),this['result']='end',_0x5a6714[_0x15f77b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15f77b([0x76,0x69,0x65,0x77])][_0x15f77b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15f77b([0x61,0x75,0x74,0x6f]),_0x5a6714[_0x15f77b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x15f77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15f77b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x15f77b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x15f77b([0x6f,0x6b])});}}class k extends _0x657f6f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xb3d427){if(super(_0xb3d427),!this['editor']['config']['get']('revisionHistory'))throw new _0x2159a5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xc349d1=>this['_showRevisionViewer']({..._0xc349d1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x345d79=>this['_closeRevisionViewer'](_0x345d79)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xcc0f78=>this['_restoreRevision'](_0xcc0f78)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x51879b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x51879b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5d095f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5d095f);}['getRevision'](_0x5d9587){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5d9587);}['getRevisions'](_0x402329){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x402329||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x15abc7=this['editor'],_0x4e9707=_0x49f976(_0x15abc7,p),_0x533b04=_0x15abc7['plugins']['get']('RevisionTracker'),_0x4e37c1=_0x15abc7['plugins']['get']('Users')['users'];return _0x4e9707['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4e9707['lazyRoots'],(_0x4e9707['plugins']['push'](bt,d,w,class extends _0x657f6f{static get['requires'](){return[d,'Users'];}['init'](){const _0x21c4a8=this['editor']['plugins']['get']('Users');for(const _0x11cc18 of _0x4e37c1)_0x11cc18['isAnonymous']||_0x21c4a8['getUser'](_0x11cc18['id'])||_0x21c4a8['addUser'](_0x11cc18);const _0x54f5d4=_0x533b04['repository']['getRevisions']();let _0x5d8fc2=null;const _0x41b1f1=this['editor']['plugins']['get']('RevisionViewer');_0x41b1f1['adapter']=_0x533b04['adapter'],_0x41b1f1['bind']('isEnabled')['to'](_0x533b04),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x15abc7,'isReadOnly',_0x24f503=>!_0x24f503);for(const _0x1e33f7 of _0x54f5d4){const _0x45bdad=null===_0x1e33f7['creator'];if(_0x45bdad&&_0x1e33f7['toVersion']===_0x1e33f7['fromVersion'])continue;const _0x3d6ee7=_0x1e33f7['toJSON']();_0x41b1f1['addRevisionData'](_0x3d6ee7,(_0x57c450,_0x5b9efd,_0x5a1181)=>{if(_0x45bdad){if(_0x5d8fc2)_0x5d8fc2['_update'](_0x57c450,_0x5b9efd);else{if(!_0x5b9efd){const _0x2e3e57=_0x5a1181['toJSON']();_0x2e3e57['id']=_0x1916c0(),_0x533b04['saveRevision'](_0x2e3e57,_0x5a1181['toVersion'])['then'](_0x5487a7=>{_0x5d8fc2=_0x5487a7;});}}}else _0x1e33f7['_update'](_0x57c450,_0x5b9efd);});}}},g),_0x4e9707);}['_enhanceShowRevisionViewerCallback'](){const _0x4acd20=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5ca2f1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x67c255=this['editor']['plugins']['get']('Autosave');await _0x67c255['save']();}else await _0x5ca2f1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4589cf=this['editor']['plugins']['get']('Dialog');_0x4589cf['isOpen']&&_0x4589cf['hide']();}const _0x19a588=this['_getRevisionViewerEditorConfig']();return _0x4acd20(_0x19a588)['then'](_0x301596=>{return(this['_viewerEditor']=_0x301596,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x301596;})['catch'](_0x18400d=>(console['error'](_0x18400d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x326f46=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x326f46(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1ce2cc=this['editor']['plugins']['get']('Annotations');_0x1ce2cc['refreshVisibility'](),_0x1ce2cc['refreshPositioning']();}})));}['_showRevisionViewer'](_0x52ce99){const _0x224715=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x43dfa6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xac9335=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xac9335,_0x52ce99)['then'](_0x28ede8=>(_0x43dfa6['style']['display']='block',_0x224715['style']['display']='none',_0x28ede8));}['_closeRevisionViewer'](_0x3f4217){const _0x45c649=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x45c649['style']['display']='',_0x3f4217['destroy']();}async['_restoreRevision'](_0x229e39){const _0x4e2559=this['editor'],_0x58206e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3a5029=_0x4e2559['plugins']['get']('RevisionTracker'),_0x3cf4b7=_0x58206e['repository']['getRevision'](_0x229e39);let _0x7aa299,_0x237d1c,_0x3b0073;try{_0x7aa299=await _0x58206e['getRevisionData'](_0x3cf4b7),_0x237d1c=await _0x58206e['getRevisionRootsAttributes'](_0x3cf4b7);}catch(_0x230899){return void console['error'](_0x230899);}_0x4e2559['model']['change'](_0x4e6eb3=>{for(const _0x7ed547 of Array['from'](_0x4e2559['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4e6eb3['removeMarker'](_0x7ed547);}),_0x58206e['isReady']=!0x1,_0x4e2559['model']['enqueueChange'](_0x382a24=>{_0x382a24['setSelection'](null),_0x382a24['removeSelectionAttribute'](_0x4e2559['model']['document']['selection']['getAttributeKeys']());const _0x57811c=Object['keys'](_0x7aa299);for(const _0x42eceb of _0x4e2559['model']['document']['roots'])'$graveyard'!=_0x42eceb['rootName']&&_0x42eceb['isAttached']()&&!_0x57811c['includes'](_0x42eceb['rootName'])&&_0x382a24['detachRoot'](_0x42eceb);for(const _0x54731b of _0x57811c){let _0x55a4b8=_0x4e2559['model']['document']['getRoot'](_0x54731b);_0x55a4b8&&_0x55a4b8['isAttached']()||(_0x55a4b8=_0x382a24['addRoot'](_0x54731b));const _0x980b80=_0x237d1c[_0x54731b],_0x330d52=Object['keys'](_0x980b80),_0x4f4316=_0x7aa299[_0x54731b];for(const _0x6ca00f of _0x55a4b8['getAttributeKeys']())_0x330d52['includes'](_0x6ca00f)||_0x382a24['removeAttribute'](_0x6ca00f,_0x55a4b8);for(const _0x2a9205 of _0x330d52)_0x382a24['setAttribute'](_0x2a9205,_0x237d1c[_0x54731b][_0x2a9205],_0x55a4b8);_0x382a24['remove'](_0x382a24['createRangeIn'](_0x55a4b8)),_0x382a24['insert'](_0x4e2559['data']['parse'](_0x4f4316,_0x55a4b8),_0x55a4b8,0x0);}});const _0x44c17d=m(_0x4e2559['locale'],'Restored');if(_0x3cf4b7['name'])_0x3b0073=-0x1==_0x3cf4b7['name']['indexOf'](_0x44c17d)?_0x44c17d+':\x20'+_0x3cf4b7['name']:_0x3cf4b7['name'];else _0x3b0073=_0x44c17d+':\x20'+(_0x3cf4b7['createdAt']['toLocaleDateString'](_0x4e2559['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3cf4b7['createdAt']['toLocaleTimeString'](_0x4e2559['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3a5029['saveRevision']({'name':_0x3b0073}),_0x58206e['isReady']=!0x0,_0x4e2559['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x424287){super(_0x424287),this['_revisionViewer']=_0x424287['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5860e3=this['_revisionsRepository']['_revisions'],_0x37dcf2=this['_createRevisionActions'](),_0x527808=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x5860e3,_0x37dcf2,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',(_0x596c53,_0x4402ae)=>{_0x4402ae['revisionViews']['on']('add',(_0x52cb18,_0x2ff156)=>{_0x2ff156['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)),_0x527808['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2c0c02=this['_revisionsRepository']['getRevision'](0x0);if(_0x2c0c02){const _0x17d3e2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2c0c02['id']);this['_revisionViewer']['compare'](_0x2c0c02,_0x17d3e2);}}['_handleRevisionSelected'](_0x38c1f6,_0x2886f5){const _0x4e5684=this['_revisionsRepository']['getRevision'](_0x2886f5['id']),_0x1bcb17=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4e5684['id']);this['_revisionViewer']['compare'](_0x4e5684,_0x1bcb17);}['_handleRevisionSetName'](_0x47f097,_0x352edb){this['_revisionsRepository']['getRevision'](_0x352edb['id'])['setName'](_0x352edb['name']);}['_handleDiffChange'](_0x409e87,_0x6b7c64,_0x8909a1){const _0x2a0c80=this['_revisionsRepository']['getRevisionsInDiff'](_0x8909a1);_0x2a0c80['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2a0c80),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2a0c80[0x0]));}['_createRevisionActions'](){const _0x3e4633=this['editor'],_0x211369=g['availableRevisionActions'],_0x40ea64=_0x3e4633['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x40ea64['length'])return _0x40ea64['map'](_0x4f510b=>{const _0x1ff445='string'==typeof _0x4f510b?Object['assign']({},_0x211369[_0x4f510b]):_0x4f510b;return _0x1ff445['action']=_0x1ff445['action']['bind'](this,_0x3e4633),_0x1ff445['isVisible']&&(_0x1ff445['isVisible']=_0x1ff445['isVisible']['bind'](this,_0x3e4633)),_0x1ff445;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2ff45c},_0x6cfa32)=>{const _0x5b6c0a=_0x2ff45c['get'](d),_0x40fee7=_0x5b6c0a['repository'];let _0x2f80c0=_0x5b6c0a['diff']['newRevisionId'],_0x12f11a=_0x6cfa32['id'];_0x40fee7['getIndex'](_0x2f80c0)>_0x40fee7['getIndex'](_0x12f11a)&&([_0x2f80c0,_0x12f11a]=[_0x12f11a,_0x2f80c0]),_0x5b6c0a['compare'](_0x2f80c0,_0x12f11a);},'isVisible':({plugins:_0xf35c57},_0x358bde)=>{const _0x2efb74=_0xf35c57['get'](d);return!(_0x2efb74['repository']['getRevisionsInDiff'](_0x2efb74['diff'])['length']>0x2)&&!_0x358bde['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3d9656,{id:_0x2bc4c6})=>{_0x3d9656['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2bc4c6);},'isVisible':({plugins:_0x4e73a4},_0x1214ee)=>!!_0x4e73a4['get'](d)['repository']['getLaterVisibleRevision'](_0x1214ee['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x143fbc},{id:_0x557d82,revisionNameView:_0x30cea4})=>{const _0x5afcf1=_0x143fbc['get'](d),_0x3610cc=_0x5afcf1['repository']['getEarlierVisibleRevision'](_0x557d82);_0x5afcf1['compare'](_0x557d82,_0x3610cc),_0x30cea4['focus'](),_0x30cea4['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1eae1f,_0x3cc7ff){super(_0x1eae1f),this['_view']=_0x3cc7ff,this['_toolbarConfig']=ot(_0x1eae1f['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x432ef3){const _0x5f153a=this['editor'],_0x415fc3=this['view'],_0x5e8433=_0x5f153a['editing']['view'],_0x2242d6=_0x415fc3['editable'],_0x2ce343=_0x5e8433['document']['getRoot']();_0x2242d6['name']=_0x2ce343['rootName'],_0x415fc3['render']();const _0x3e80ea=_0x2242d6['element'];this['setEditableElement'](_0x2242d6['name'],_0x3e80ea),_0x415fc3['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5e8433['attachDomRoot'](_0x3e80ea),this['_elementReplacer']['replace'](_0x432ef3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3e757c=this['view'],_0x191f20=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x191f20['detachDomRoot'](_0x3e757c['editable']['name']),_0x3e757c['destroy']();}['_initToolbar'](){const _0x3b9e4e=this['view'];_0x3b9e4e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3b9e4e['stickyPanel']['limiterElement']=_0x3b9e4e['element'],_0x3b9e4e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x51e80f})=>_0x51e80f),_0x3b9e4e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3b9e4e['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x46dd48,_0x2e0eb9,_0x4150b8={}){super(_0x46dd48),this['stickyPanel']=new lt(_0x46dd48),this['toolbar']=new nt(_0x46dd48,{'shouldGroupWhenFull':_0x4150b8['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x46dd48,_0x2e0eb9);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3e917a,_0x3332b4){super(_0x3332b4),this['sourceElement']=_0x3e917a,this['model']['document']['createRoot']();const _0x473bfc=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x473bfc);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xc63914,_0x54e735){const _0x12fbc3=new this(_0xc63914,_0x54e735);return await _0x12fbc3['initPlugins'](),await _0x12fbc3['ui']['init'](_0xc63914),await _0x12fbc3['data']['init'](_0x12fbc3['config']['get']('initialData')||''),_0x12fbc3['fire']('ready'),_0x12fbc3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x1947b9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36519f){function _0x335dd8(_0x10a19e){return _0x10a19e['map'](_0x919151=>String['fromCharCode'](_0x919151))['join']('');}super(_0x36519f),this['result']='end',_0x36519f[_0x335dd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x335dd8([0x76,0x69,0x65,0x77])][_0x335dd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x335dd8([0x61,0x75,0x74,0x6f]),_0x36519f[_0x335dd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x335dd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x335dd8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x335dd8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x335dd8([0x6f,0x6b])});}}class k extends _0x1947b9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x59153a){if(super(_0x59153a),!this['editor']['config']['get']('revisionHistory'))throw new _0x2fa8d8('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5cfea3=>this['_showRevisionViewer']({..._0x5cfea3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x18b20b=>this['_closeRevisionViewer'](_0x18b20b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2ecaa9=>this['_restoreRevision'](_0x2ecaa9)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x335e8f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x335e8f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x57d2c6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x57d2c6);}['getRevision'](_0x3b0cae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3b0cae);}['getRevisions'](_0x349f2c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x349f2c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5d373e=this['editor'],_0x3524b2=_0xd0e0b6(_0x5d373e,p),_0x206100=_0x5d373e['plugins']['get']('RevisionTracker'),_0xb115c9=_0x5d373e['plugins']['get']('Users')['users'];return _0x3524b2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3524b2['lazyRoots'],(_0x3524b2['plugins']['push'](bt,d,w,class extends _0x1947b9{static get['requires'](){return[d,'Users'];}['init'](){const _0x594707=this['editor']['plugins']['get']('Users');for(const _0x3999d8 of _0xb115c9)_0x3999d8['isAnonymous']||_0x594707['getUser'](_0x3999d8['id'])||_0x594707['addUser'](_0x3999d8);const _0x2773db=_0x206100['repository']['getRevisions']();let _0x475df8=null;const _0x126d19=this['editor']['plugins']['get']('RevisionViewer');_0x126d19['adapter']=_0x206100['adapter'],_0x126d19['bind']('isEnabled')['to'](_0x206100),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5d373e,'isReadOnly',_0x355367=>!_0x355367);for(const _0x42c512 of _0x2773db){const _0xc6b98d=null===_0x42c512['creator'];if(_0xc6b98d&&_0x42c512['toVersion']===_0x42c512['fromVersion'])continue;const _0x2cd272=_0x42c512['toJSON']();_0x126d19['addRevisionData'](_0x2cd272,(_0x43b813,_0x14748d,_0x162a4c)=>{if(_0xc6b98d){if(_0x475df8)_0x475df8['_update'](_0x43b813,_0x14748d);else{if(!_0x14748d){const _0x4f3e39=_0x162a4c['toJSON']();_0x4f3e39['id']=_0x11cac6(),_0x206100['saveRevision'](_0x4f3e39,_0x162a4c['toVersion'])['then'](_0x3155df=>{_0x475df8=_0x3155df;});}}}else _0x42c512['_update'](_0x43b813,_0x14748d);});}}},g),_0x3524b2);}['_enhanceShowRevisionViewerCallback'](){const _0x56d331=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5ba0fd=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4eec07=this['editor']['plugins']['get']('Autosave');await _0x4eec07['save']();}else await _0x5ba0fd['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x96622c=this['editor']['plugins']['get']('Dialog');_0x96622c['isOpen']&&_0x96622c['hide']();}const _0x49a400=this['_getRevisionViewerEditorConfig']();return _0x56d331(_0x49a400)['then'](_0x55dbeb=>{return(this['_viewerEditor']=_0x55dbeb,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x55dbeb;})['catch'](_0x1b5f0f=>(console['error'](_0x1b5f0f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2445b0=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2445b0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3b3b86=this['editor']['plugins']['get']('Annotations');_0x3b3b86['refreshVisibility'](),_0x3b3b86['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3ea387){const _0x59c0da=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x22c341=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1a1346=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1a1346,_0x3ea387)['then'](_0x445afa=>(_0x22c341['style']['display']='block',_0x59c0da['style']['display']='none',_0x445afa));}['_closeRevisionViewer'](_0x47ef65){const _0x372d1b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x372d1b['style']['display']='',_0x47ef65['destroy']();}async['_restoreRevision'](_0x140e7f){const _0x730ef3=this['editor'],_0x42fa72=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1f98c6=_0x730ef3['plugins']['get']('RevisionTracker'),_0x25b317=_0x42fa72['repository']['getRevision'](_0x140e7f);let _0x201d6e,_0x4e7e39,_0x4a14bc;try{_0x201d6e=await _0x42fa72['getRevisionData'](_0x25b317),_0x4e7e39=await _0x42fa72['getRevisionRootsAttributes'](_0x25b317);}catch(_0x4ed590){return void console['error'](_0x4ed590);}_0x730ef3['model']['change'](_0x34630e=>{for(const _0x5390c8 of Array['from'](_0x730ef3['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x34630e['removeMarker'](_0x5390c8);}),_0x42fa72['isReady']=!0x1,_0x730ef3['model']['enqueueChange'](_0xb0218a=>{_0xb0218a['setSelection'](null),_0xb0218a['removeSelectionAttribute'](_0x730ef3['model']['document']['selection']['getAttributeKeys']());const _0x4d1f6f=Object['keys'](_0x201d6e);for(const _0x5931a0 of _0x730ef3['model']['document']['roots'])'$graveyard'!=_0x5931a0['rootName']&&_0x5931a0['isAttached']()&&!_0x4d1f6f['includes'](_0x5931a0['rootName'])&&_0xb0218a['detachRoot'](_0x5931a0);for(const _0x3c4b85 of _0x4d1f6f){let _0xa76f0b=_0x730ef3['model']['document']['getRoot'](_0x3c4b85);_0xa76f0b&&_0xa76f0b['isAttached']()||(_0xa76f0b=_0xb0218a['addRoot'](_0x3c4b85));const _0xbbc4cf=_0x4e7e39[_0x3c4b85],_0x24cfd4=Object['keys'](_0xbbc4cf),_0x2d9bb=_0x201d6e[_0x3c4b85];for(const _0x367be4 of _0xa76f0b['getAttributeKeys']())_0x24cfd4['includes'](_0x367be4)||_0xb0218a['removeAttribute'](_0x367be4,_0xa76f0b);for(const _0x121daf of _0x24cfd4)_0xb0218a['setAttribute'](_0x121daf,_0x4e7e39[_0x3c4b85][_0x121daf],_0xa76f0b);_0xb0218a['remove'](_0xb0218a['createRangeIn'](_0xa76f0b)),_0xb0218a['insert'](_0x730ef3['data']['parse'](_0x2d9bb,_0xa76f0b),_0xa76f0b,0x0);}});const _0x4c8bd8=m(_0x730ef3['locale'],'Restored');if(_0x25b317['name'])_0x4a14bc=-0x1==_0x25b317['name']['indexOf'](_0x4c8bd8)?_0x4c8bd8+':\x20'+_0x25b317['name']:_0x25b317['name'];else _0x4a14bc=_0x4c8bd8+':\x20'+(_0x25b317['createdAt']['toLocaleDateString'](_0x730ef3['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x25b317['createdAt']['toLocaleTimeString'](_0x730ef3['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1f98c6['saveRevision']({'name':_0x4a14bc}),_0x42fa72['isReady']=!0x0,_0x730ef3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|