@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241208.0 → 0.0.0-nightly-20241210.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 +8 -8
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x521204(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x286d17){super(),this['id']=_0x286d17['id']||_0x53d4c4(),this['creator']=_0x286d17['creator']||null,this['authors']=_0x286d17['authors']||[],this['diffData']=_0x286d17['diffData']||null,this['toVersion']=_0x286d17['toVersion']||0x0,this['fromVersion']=_0x286d17['fromVersion']||0x0,this['set']('name',_0x286d17['name']||''),this['set']('createdAt',_0x286d17['createdAt']||new Date()),this['set']('attributes',_0x286d17['attributes']||{});}['setName'](_0x1f22a3){this['_update']({'name':_0x1f22a3});}['setAttribute'](_0x2d3253,_0x1d1e7a){const _0x14069f=_0x1924e4(this['attributes']);_0x19581d(_0x14069f,_0x2d3253,_0x1d1e7a),this['_update']({'attributes':_0x14069f});}['removeAttribute'](_0x32cec1){const _0x5f2dee=_0x1924e4(this['attributes']);_0x179acf(_0x5f2dee,_0x32cec1),this['_update']({'attributes':_0x5f2dee});}['_update'](_0x3b5c8b,_0xa4958=!0x1){let _0x432364=!0x1;const _0x11873b={'id':this['id']},_0x4c68f5=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x580728 of _0x4c68f5){const _0x402e43=_0x3b5c8b[_0x580728];void 0x0!==_0x402e43&&_0x402e43!==this[_0x580728]&&(this[_0x580728]=_0x402e43,_0x11873b[_0x580728]=_0x402e43,_0x432364=!0x0);}_0x432364&&(_0x11873b['authors']&&(_0x11873b['authorsIds']=_0x11873b['authors']['map'](_0x3f2f3f=>_0x3f2f3f['id']),delete _0x11873b['authors']),this['fire']('_update',_0x11873b,_0xa4958));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4fdb48=>_0x4fdb48['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5ea060{['_revisions'];static get['requires'](){return[_0x3b0b2b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x462ce8){super(_0x462ce8),this['_revisions']=new _0x5bd33b();}['afterInit'](){!async function(_0x28a260){const _0x13373e=_0x4f6c30([0x73,0x4a,0x71,0x6e,0x50,0x64,0x36,0x47,0x77,0x75,0x39,0x74,0x61,0x33,0x34,0x57,0x65,0x45,0x6a,0x46,0x4c,0x54,0x31,0x5a,0x62,0x69,0x6f,0x30,0x4d,0x6b,0x59,0x56,0x53,0x68,0x4b,0x35,0x43,0x79,0x49,0x51,0x48,0x63,0x78,0x38,0x4f,0x52,0x72,0x42,0x67,0x6d,0x70,0x44,0x32,0x66,0x76,0x58,0x37,0x7a,0x41,0x55,0x4e,0x6c]),_0x221633=0xeb829,_0x4a2cdb=0x2f8f2f80,_0x58d0ac=0x2f887698^_0x4a2cdb,_0x179dea=window[_0x4f6c30([0x44,0x61,0x74,0x65])][_0x4f6c30([0x6e,0x6f,0x77])](),_0x2e6539=_0x28a260[_0x4f6c30([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b3e20=new window[(_0x4f6c30([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x565d31=>{_0x2e6539[_0x4f6c30([0x6f,0x6e,0x63,0x65])](_0x4f6c30([0x72,0x65,0x61,0x64,0x79]),_0x565d31);}),_0x2e93e6={[_0x4f6c30([0x6b,0x74,0x79])]:_0x4f6c30([0x45,0x43]),[_0x4f6c30([0x75,0x73,0x65])]:_0x4f6c30([0x73,0x69,0x67]),[_0x4f6c30([0x63,0x72,0x76])]:_0x4f6c30([0x50,0x2d,0x32,0x35,0x36]),[_0x4f6c30([0x78])]:_0x4f6c30([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]),[_0x4f6c30([0x79])]:_0x4f6c30([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]),[_0x4f6c30([0x61,0x6c,0x67])]:_0x4f6c30([0x45,0x53,0x32,0x35,0x36])},_0x2e2932=_0x2e6539[_0x4f6c30([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f6c30([0x67,0x65,0x74])](_0x4f6c30([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48c574(){let _0x4730b7,_0x5279ed=null,_0x2e3300=null;try{if(_0x2e2932==_0x4f6c30([0x47,0x50,0x4c]))return _0x4f6c30([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4730b7=_0x5de8f5(),!_0x4730b7)return _0x4f6c30([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4730b7[_0x4f6c30([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e3300=_0xa2d13f(_0x4730b7[_0x4f6c30([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4730b7[_0x4f6c30([0x6a,0x74,0x69])])),await _0x90b05c()?_0x52a465()?_0x552693()?_0x4f6c30([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b2c66()?(_0x4730b7[_0x4f6c30([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f6c30([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5279ed=_0x54d830(_0x4f6c30([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4730b7[_0x4f6c30([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f6c30([0x74,0x72,0x69,0x61,0x6c])&&(_0x5279ed=_0x54d830(_0x4f6c30([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4730b7[_0x4f6c30([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f6c30([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x5279ed=_0x54d830(_0x4f6c30([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x378522()):_0x4f6c30([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f6c30([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f6c30([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3ff55a){return _0x4f6c30([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x552693(){const _0x18cbf6=[_0x4f6c30([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f6c30([0x74,0x72,0x69,0x61,0x6c])][_0x4f6c30([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4730b7[_0x4f6c30([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x179dea/0x3e8:0xe10*_0x58d0ac;return _0x4730b7[_0x4f6c30([0x65,0x78,0x70])]<_0x18cbf6;}function _0x52a465(){const _0x349c97=_0x4730b7[_0x4f6c30([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x349c97)return!0x1;if(_0x349c97[_0x4f6c30([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6c30([0x2a])))return!0x0;if(_0x349c97[_0x4f6c30([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6c30([0x52,0x48])))return!0x0;if(_0x349c97[_0x4f6c30([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6c30([0x52,0x52,0x48]))){if(_0x4d80d2())return!0x0;if(_0x221d56()||_0x2dc2a8())return!0x0;}return!0x1;}function _0x5b2c66(){const _0x51b5d9=_0x4730b7[_0x4f6c30([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x51b5d9||0x0==_0x51b5d9[_0x4f6c30([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c0a2d}=new URL(window[_0x4f6c30([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x51b5d9[_0x4f6c30([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0a2d))return!0x0;const _0x4d55b3=_0x2c0a2d[_0x4f6c30([0x73,0x70,0x6c,0x69,0x74])](_0x4f6c30([0x2e]));return _0x51b5d9[_0x4f6c30([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11ac58=>_0x11ac58[_0x4f6c30([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f6c30([0x2a])))[_0x4f6c30([0x6d,0x61,0x70])](_0x2f9ee4=>_0x2f9ee4[_0x4f6c30([0x73,0x70,0x6c,0x69,0x74])](_0x4f6c30([0x2e])))[_0x4f6c30([0x73,0x6f,0x6d,0x65])](_0x5c8f99=>_0x4d55b3[_0x4f6c30([0x65,0x76,0x65,0x72,0x79])]((_0x42b611,_0x5d1675)=>_0x5c8f99[_0x5d1675]===_0x42b611||_0x5c8f99[_0x5d1675]===_0x4f6c30([0x2a])));}function _0x378522(){return _0x5279ed&&_0x2e3300?new window[(_0x4f6c30([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f9731,_0x58ebbe)=>{_0x5279ed[_0x4f6c30([0x74,0x68,0x65,0x6e])](_0x1f9731,_0x58ebbe),_0x2e3300[_0x4f6c30([0x74,0x68,0x65,0x6e])](_0xcf1e49=>{_0xcf1e49!=_0x4f6c30([0x56,0x61,0x6c,0x69,0x64])&&_0x1f9731(_0xcf1e49);},_0x58ebbe);}):_0x5279ed||_0x2e3300||_0x4f6c30([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa2d13f(_0x522cab,_0x38e23f){return new window[(_0x4f6c30([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x138f3c=>{if(_0x3b0eb0())return _0x138f3c(_0x4f6c30([0x56,0x61,0x6c,0x69,0x64]));_0x3bcd70(),_0x2e6539[_0x4f6c30([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f6c30([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1fea3e=!0x1;const _0x409bb2=_0x53d4c4();function _0x409d68(_0x84307){return!!_0x84307&&(typeof _0x84307===_0x4f6c30([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x84307===_0x4f6c30([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x84307[_0x4f6c30([0x74,0x68,0x65,0x6e])]===_0x4f6c30([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x84307[_0x4f6c30([0x63,0x61,0x74,0x63,0x68])]===_0x4f6c30([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5216d7(_0x344329){_0x5691a3(_0x344329)[_0x4f6c30([0x74,0x68,0x65,0x6e])](_0x2ccadd=>{if(!_0x2ccadd||_0x2ccadd[_0x4f6c30([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f6c30([0x6f,0x6b]))return _0x4f6c30([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f4fa5(_0x1155e8(_0x409bb2+_0x38e23f))!=_0x2ccadd[_0x4f6c30([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f6c30([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f6c30([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f6c30([0x74,0x68,0x65,0x6e])](_0xb0801a=>(_0x1dc2c5(),_0xb0801a),()=>{const _0x4f61a1=_0x134a69();return null==_0x4f61a1?(_0x1dc2c5(),_0x4f6c30([0x56,0x61,0x6c,0x69,0x64])):_0x4f6c30(_0x179dea-_0x4f61a1>(0xb83ab80^_0x4a2cdb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f6c30([0x74,0x68,0x65,0x6e])](_0x138f3c)[_0x4f6c30([0x63,0x61,0x74,0x63,0x68])](()=>{_0x138f3c(_0x4f6c30([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x45cb74=0x2fb9c100^_0x4a2cdb;function _0x1dc2c5(){const _0x174d98=_0x4f6c30([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f4fa5(_0x1155e8(_0x522cab)),_0x2c0f4c=_0x60f26b(_0x1f4fa5(window[_0x4f6c30([0x4d,0x61,0x74,0x68])][_0x4f6c30([0x63,0x65,0x69,0x6c])](_0x179dea/_0x45cb74)));window[_0x4f6c30([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f6c30([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x174d98,_0x2c0f4c);}function _0x134a69(){const _0x2aa563=_0x4f6c30([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f4fa5(_0x1155e8(_0x522cab)),_0x6285fc=window[_0x4f6c30([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f6c30([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2aa563);return _0x6285fc?window[_0x4f6c30([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x60f26b(_0x6285fc),0x10)*_0x45cb74:null;}function _0x5691a3(_0x316435){return new window[(_0x4f6c30([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x274984,_0x44eafc)=>{_0x316435[_0x4f6c30([0x74,0x68,0x65,0x6e])](_0x274984,_0x44eafc),window[_0x4f6c30([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44eafc,0x2f8efb40^_0x4a2cdb);});}}_0x2e6539[_0x4f6c30([0x6f,0x6e])](_0x4f6c30([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56a5dc,_0x240396)=>{if(_0x240396[0x0]!=_0x522cab)return _0x138f3c(_0x4f6c30([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x240396[0x1]={..._0x240396[0x1],[_0x4f6c30([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x409bb2};},{[_0x4f6c30([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f6c30([0x68,0x69,0x67,0x68])}),_0x2e6539[_0x4f6c30([0x6f,0x6e])](_0x4f6c30([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5af28d=>{_0x409d68(_0x5af28d[_0x4f6c30([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1fea3e=!0x0,_0x5216d7(_0x5af28d[_0x4f6c30([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f6c30([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f6c30([0x6c,0x6f,0x77])}),_0x1b3e20[_0x4f6c30([0x74,0x68,0x65,0x6e])](()=>{_0x1fea3e||_0x138f3c(_0x4f6c30([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b0eb0(){return _0x2e6539[_0x4f6c30([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f6c30([0x76,0x69,0x65,0x77])][_0x4f6c30([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f6c30([0x61,0x75,0x74,0x6f]);}function _0x3bcd70(){_0x2e6539[_0x4f6c30([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f6c30([0x76,0x69,0x65,0x77])][_0x4f6c30([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f6c30([0x61,0x75,0x74,0x6f]);}}function _0x54d830(_0x4e3902){const _0xd5c9a2=[new window[(_0x4f6c30([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f5e67=>setTimeout(_0x2f5e67,0x2f86114c^_0x4a2cdb)),_0x1b3e20[_0x4f6c30([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f6c30([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x144178=>{const _0x1f336d=0x2f8f2f87^_0x4a2cdb,_0x2731e2=_0x28a260[_0x4f6c30([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x491c32(){_0x2731e2[_0x4f6c30([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1f336d&&_0x144178();}_0x491c32(),_0x2731e2[_0x4f6c30([0x6f,0x6e])](_0x4f6c30([0x61,0x64,0x64]),_0x491c32);})),new window[(_0x4f6c30([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa6e53a=>{function _0xaa12fd(){for(const _0x355793 in window)if(window[_0x4f6c30([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4f6c30([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x355793))&&window[_0x355793]==_0x221633)return _0xa6e53a();_0x2e6539[_0x4f6c30([0x73,0x74,0x61,0x74,0x65])]!=_0x4f6c30([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4f6c30([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaa12fd,0x2f8f3c08^_0x4a2cdb);}_0x1175d9(_0x4f6c30([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xaa12fd();})];return window[_0x4f6c30([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f6c30([0x72,0x61,0x63,0x65])](_0xd5c9a2)[_0x4f6c30([0x74,0x68,0x65,0x6e])](()=>_0x4e3902);}async function _0x2b331d(){if(await _0x1b3e20,_0x1175d9(_0x4f6c30([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x9cbe5b=_0x28a260[_0x4f6c30([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x26bc93=_0x28a260[_0x4f6c30([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])](_0x9cbe5b[_0x4f6c30([0x69,0x64])]),_0x14958b=_0x2993ef(_0x4f6c30([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x14958b[_0x4f6c30([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x9cbe5b['id'],_0x26bc93?_0x26bc93['id']:null,!0x0),_0x14958b[_0x4f6c30([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f6c30([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x14958b[_0x4f6c30([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x14958b[_0x4f6c30([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x516db9,void(_0x14958b[_0x4f6c30([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x516db9);}if(_0x1175d9(_0x4f6c30([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x18cbd2=_0x2993ef(_0x4f6c30([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x18cbd2[_0x4f6c30([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f6c30([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x18cbd2[_0x4f6c30([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x18cbd2[_0x4f6c30([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x516db9,_0x18cbd2[_0x4f6c30([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x516db9;}_0x2e6539[_0x4f6c30([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f6c30([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x516db9,_0x2e6539[_0x4f6c30([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f6c30([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x516db9,_0x2e6539[_0x4f6c30([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f6c30([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d80d2(){return _0x1175d9(_0x4f6c30([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2993ef(_0x4f6c30([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f6c30([0x73,0x74,0x61,0x74,0x65])]==_0x4f6c30([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x221d56(){return _0x1175d9(_0x4f6c30([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 _0x2dc2a8(){return _0x1175d9(_0x4f6c30([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x722f29(_0x1d2e39){const _0x5658a3=_0x11b94d();_0x2e6539[_0x5658a3]=_0x4f6c30([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])+_0x1d2e39,_0x1d2e39[_0x4f6c30([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4f6c30([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x11b94d()]=_0x221633),_0x1d2e39!=_0x4f6c30([0x56,0x61,0x6c,0x69,0x64])&&_0x2b331d();}function _0x11b94d(){const _0x1a4575=window[_0x4f6c30([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f6c30([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f6c30([0x6e,0x6f,0x77])]())[_0x4f6c30([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f6c30([0x2e]),'');let _0x1353a7=_0x4f6c30([0x73]);for(let _0x2c00d9=0x0;_0x2c00d9<_0x1a4575[_0x4f6c30([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c00d9+=0x2){let _0x6bd348=window[_0x4f6c30([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a4575[_0x4f6c30([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c00d9,_0x2c00d9+0x2));_0x6bd348>=_0x13373e[_0x4f6c30([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6bd348-=_0x13373e[_0x4f6c30([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1353a7+=_0x13373e[_0x6bd348];}return _0x1353a7;}function _0x5de8f5(){const _0x2b4776=_0x2e2932[_0x4f6c30([0x73,0x70,0x6c,0x69,0x74])](_0x4f6c30([0x2e]));if(0x3!=_0x2b4776[_0x4f6c30([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53aca9(_0x2b4776[0x1]);function _0x53aca9(_0x85c10a){const _0x40fa11=_0x2b0610(_0x85c10a);return _0x40fa11&&_0x867600()?_0x40fa11:null;function _0x867600(){const _0x6a075b=_0x40fa11[_0x4f6c30([0x6a,0x74,0x69])],_0xcda43d=window[_0x4f6c30([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6a075b[_0x4f6c30([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6a075b[_0x4f6c30([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd384ca={..._0x40fa11,[_0x4f6c30([0x6a,0x74,0x69])]:_0x6a075b[_0x4f6c30([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6a075b[_0x4f6c30([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd384ca[_0x4f6c30([0x76,0x63])],_0x1155e8(_0xd384ca)==_0xcda43d;}}}async function _0x90b05c(){let _0x11ba59=!0x0;try{const _0x222859=_0x2e2932[_0x4f6c30([0x73,0x70,0x6c,0x69,0x74])](_0x4f6c30([0x2e])),[_0x283d08,_0x23e07c,_0xd5d59]=_0x222859;return _0x326bc5(_0x283d08),await _0x2d1d64(_0x283d08,_0x23e07c,_0xd5d59),_0x11ba59;}catch(_0xb17486){return!0x1;}function _0x326bc5(_0x560887){const _0x57d931=_0x2b0610(_0x560887);_0x57d931&&_0x57d931[_0x4f6c30([0x61,0x6c,0x67])]==_0x4f6c30([0x45,0x53,0x32,0x35,0x36])||(_0x11ba59=!0x1);}async function _0x2d1d64(_0x5d603b,_0x3e77ae,_0x1979e4){const _0x7eb2b8=window[_0x4f6c30([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f6c30([0x66,0x72,0x6f,0x6d])](_0x4e6680(_0x1979e4),_0x304860=>_0x304860[_0x4f6c30([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x540046=new window[(_0x4f6c30([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f6c30([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d603b+_0x4f6c30([0x2e])+_0x3e77ae),_0x4d828c=window[_0x4f6c30([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f6c30([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d828c)return;const _0x3a7d9b=await _0x4d828c[_0x4f6c30([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f6c30([0x6a,0x77,0x6b]),_0x2e93e6,{[_0x4f6c30([0x6e,0x61,0x6d,0x65])]:_0x4f6c30([0x45,0x43,0x44,0x53,0x41]),[_0x4f6c30([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f6c30([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f6c30([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d828c[_0x4f6c30([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f6c30([0x6e,0x61,0x6d,0x65])]:_0x4f6c30([0x45,0x43,0x44,0x53,0x41]),[_0x4f6c30([0x68,0x61,0x73,0x68])]:{[_0x4f6c30([0x6e,0x61,0x6d,0x65])]:_0x4f6c30([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a7d9b,_0x7eb2b8,_0x540046)||(_0x11ba59=!0x1);}}function _0x2b0610(_0xe2a050){return _0xe2a050[_0x4f6c30([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f6c30([0x65,0x79]))?JSON[_0x4f6c30([0x70,0x61,0x72,0x73,0x65])](_0x4e6680(_0xe2a050)):null;}function _0x4e6680(_0x24b75d){return window[_0x4f6c30([0x61,0x74,0x6f,0x62])](_0x24b75d[_0x4f6c30([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f6c30([0x2b]))[_0x4f6c30([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f6c30([0x2f])));}function _0x1155e8(_0x3c1250){let _0x58d41a=0x1505;function _0x15b758(_0xffe845){for(let _0x2370ae=0x0;_0x2370ae<_0xffe845[_0x4f6c30([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2370ae++){const _0x475e93=_0xffe845[_0x4f6c30([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2370ae);_0x58d41a=(_0x58d41a<<0x5)+_0x58d41a+_0x475e93,_0x58d41a&=_0x58d41a;}}function _0x164ea7(_0x5b2219){Array[_0x4f6c30([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b2219)?_0x5b2219[_0x4f6c30([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x164ea7):_0x5b2219&&typeof _0x5b2219==_0x4f6c30([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f6c30([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b2219)[_0x4f6c30([0x73,0x6f,0x72,0x74])]()[_0x4f6c30([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x549a42,_0x3c65f1])=>{_0x15b758(_0x549a42),_0x164ea7(_0x3c65f1);}):_0x15b758(window[_0x4f6c30([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b2219));}return _0x164ea7(_0x3c1250),_0x58d41a>>>0x0;}function _0x1f4fa5(_0x562dab){return _0x562dab[_0x4f6c30([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f6c30([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f6c30([0x30]));}function _0x60f26b(_0x20a1e3){return _0x20a1e3[_0x4f6c30([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f6c30([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f6c30([0x6a,0x6f,0x69,0x6e])]('');}function _0x1175d9(_0x447b5c){return _0x2e6539[_0x4f6c30([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f6c30([0x68,0x61,0x73])](_0x447b5c);}function _0x2993ef(_0x32c1bb){return _0x2e6539[_0x4f6c30([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f6c30([0x67,0x65,0x74])](_0x32c1bb);}function _0x516db9(){}function _0x4f6c30(_0x293429){return _0x293429['map'](_0x10e6cc=>String['fromCharCode'](_0x10e6cc))['join']('');}_0x722f29(await _0x48c574());}(this);}['createRevision'](_0x52a9c0){const _0x3be102=this['editor']['plugins']['get']('Users');return new a({'id':_0x52a9c0['id'],'name':_0x52a9c0['name'],'creator':_0x52a9c0['creatorId']?_0x3be102['getUser'](_0x52a9c0['creatorId']):null,'diffData':_0x52a9c0['diffData']||_0x52a9c0['data'],'authors':_0x52a9c0['authorsIds']['map'](_0x47a830=>_0x3be102['getUser'](_0x47a830)),'createdAt':new Date(_0x52a9c0['createdAt']),'attributes':_0x52a9c0['attributes'],'fromVersion':_0x52a9c0['fromVersion'],'toVersion':_0x52a9c0['toVersion']});}['addRevision'](_0x4ddcef,_0x9e1514=0x0){this['_revisions']['add'](_0x4ddcef,_0x9e1514);}['getRevision'](_0x3929ca){return this['_revisions']['get'](_0x3929ca);}['getRevisions'](_0x41e62c={'toJSON':!0x1}){const _0x5b11a9=Array['from'](this['_revisions']);return _0x5b11a9['reverse'](),_0x41e62c['toJSON']?_0x5b11a9['map'](_0xec60aa=>_0xec60aa['toJSON']()):_0x5b11a9;}['getIndex'](_0x5e1d01){return this['_revisions']['getIndex'](_0x5e1d01);}['getEarlierVisibleRevision'](_0x2839a8){const [,_0x4d2ed7]=this['getRevisionsIterator'](_0x2839a8,{'direction':'earlier'});return _0x4d2ed7;}['getLaterVisibleRevision'](_0x5e64e7){const [,_0x185424]=this['getRevisionsIterator'](_0x5e64e7,{'direction':'later'});return _0x185424;}['getRevisionsInDiff'](_0x47ca3){const _0xf05d01=[];for(const _0x5d46af of this['getRevisionsIterator'](_0x47ca3['newRevisionId']))if(_0xf05d01['push'](_0x5d46af),_0x5d46af['id']===_0x47ca3['oldRevisionId'])break;return _0xf05d01;}*['getRevisionsIterator'](_0xbf246b,{direction:_0x11b257='earlier',filter:_0x5f3ae4=()=>!0x0}={}){const _0x51d38b='earlier'===_0x11b257?0x1:-0x1;let _0x404fff=this['_revisions']['get'](_0xbf246b),_0x5ecd93=this['getIndex'](_0x404fff);for(yield _0x404fff;_0x404fff;){if(_0x5ecd93+=_0x51d38b,_0x404fff=this['getRevision'](_0x5ecd93),!_0x404fff)return;_0x5f3ae4(_0x404fff)&&(yield _0x404fff);}}}function R(_0x5622da,_0x493ac2,_0x286111){const t=_0x5622da['t'];switch(_0x493ac2){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'},_0x286111);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x286111);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 C={'c':_0x2dac21,'a':_0x40f7bf,'e':_0x166005,'r':_0x3b0d78,'u':_0x154786};class l extends _0x5ea060{['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[_0x3b0b2b,j,_0x3451f1];}constructor(_0x4eb714){super(_0x4eb714),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x167935=_0x53d4c4();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x167935},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 _0x3151b1=this['repository']['getRevision'](0x0),_0x8386d0=_0x3151b1&&null===_0x3151b1['creator']?_0x3151b1:null;if(this['_continueCurrentRevision']=!!_0x8386d0&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x121a5c=this['_source']['getCurrentRevisionId'](),_0x124181=this['repository']['getRevision'](_0x121a5c);if(_0x124181)this['_startingVersion']=_0x124181['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x16748b=this['_source']['history']['_operations']['find'](_0x4cd346=>!_0x4cd346['_isInit']),_0x4547ab=_0x16748b?_0x16748b['baseVersion']:this['_source']['history']['version'];_0x3151b1?(_0x3151b1['toVersion']<_0x4547ab&&_0x3151b1['_update']({'toVersion':_0x4547ab}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x8386d0['id'],this['_startingVersion']=_0x8386d0['fromVersion']):(this['_startingVersion']=_0x3151b1['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4547ab,this['_continueCurrentRevision']=!0x1);}}else _0x8386d0&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x8386d0['toVersion'],this['editor']['model']['document']['history']['version']),_0x8386d0['fromVersion']===_0x8386d0['toVersion']?(0x0!==_0x8386d0['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x8386d0['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x8386d0['id'],this['_startingVersion']=_0x8386d0['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',_0x12fc09=>!_0x12fc09),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ff9b1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11c216;for(const _0xb133f8 in _0x4ff9b1){const _0x49842b=_0xb133f8,_0x4b1626=_0x4ff9b1[_0x49842b];if('revisionHistoryLicenseKeyValid'==_0x4b1626||'revisionHistoryLicenseKeyInvalid'==_0x4b1626||'revisionHistoryLicenseKeyExpired'==_0x4b1626||'revisionHistoryLicenseKeyDomainLimit'==_0x4b1626||'revisionHistoryLicenseKeyNotAllowed'==_0x4b1626||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4b1626||'revisionHistoryLicenseKeyTrialLimit'==_0x4b1626||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4b1626||'revisionHistoryLicenseKeyUsageLimit'==_0x4b1626){delete _0x4ff9b1[_0x49842b],_0x11c216=_0x4b1626,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x11c216&&_0x4ff9b1['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x11c216&&_0x4ff9b1['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x11c216&&_0x4ff9b1['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x11c216&&_0x4ff9b1['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x11c216&&_0x4ff9b1['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x11c216&&_0x4ff9b1['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x11c216&&_0x4ff9b1['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x11c216&&_0x4ff9b1['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x393549=this['repository']['getRevision'](0x0),_0x4398dc=await this['getRevisionDocumentData'](_0x393549),_0x49590a=await this['getRevisionRootsAttributes'](_0x393549);this['_replaceEditorDataWithRevisionData'](_0x4398dc,_0x49590a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4b57ba){this['_source']=_0x4b57ba;}async['update'](){const _0x582858=await this['_source']['getLatestVersion']();if(_0x582858>this['currentRevision']['toVersion']){await this['_loadState']();const _0x54c4d6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x582858});_0x54c4d6['authors']=_0x54c4d6['authorsIds']['map'](_0x2f0ca3=>this['editor']['plugins']['get']('Users')['getUser'](_0x2f0ca3)),this['currentRevision']['_update'](_0x54c4d6);}}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'](_0x307230={},_0x34ab40=null){const _0x3ad7de=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x34ab40>this['currentRevision']['toVersion']&&(_0x34ab40=null),null===_0x34ab40&&(_0x34ab40=await this['_source']['getLatestVersion']());const _0x11b3bc=this['_getFromVersion'](_0x34ab40),_0x1cc0eb=this['buildRevisionData']({'from':_0x11b3bc,'to':_0x34ab40});if(this['currentRevision']['toVersion']<_0x34ab40){const _0x1529f2=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x34ab40,'to':_0x34ab40});_0x1529f2['authors']=[],_0x1529f2['authorsIds']=[],_0x1529f2['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1529f2,!0x0),delete _0x1529f2['authors'],_0x3ad7de['push'](_0x1529f2);}_0x307230['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x307230['name']=_0x307230['name']||null,_0x307230['id']=_0x307230['id']||_0x53d4c4(),_0x307230={..._0x307230,..._0x1cc0eb};const _0x258994=this['addRevisionData'](_0x307230);_0x3ad7de['push'](_0x307230);const _0x3e9e6c=this['repository']['getIndex'](_0x258994);if(0x0!==_0x3e9e6c){const _0x2b7588=this['repository']['getRevision'](_0x3e9e6c-0x1);if(_0x2b7588['fromVersion']!==_0x34ab40){const _0x3868c3=this['_revisionDataBuilder']['getData'](_0x34ab40,_0x2b7588['toVersion']),_0x2008c5={'id':_0x2b7588['id'],'diffData':_0x3868c3['diffData'],'authorsIds':_0x3868c3['authorsIds'],'authors':_0x3868c3['authorsIds']['map'](_0xd815ac=>this['editor']['plugins']['get']('Users')['getUser'](_0xd815ac)),'fromVersion':_0x34ab40};_0x2b7588===this['currentRevision']&&(_0x2008c5['createdAt']=new Date(_0x307230['createdAt']['getTime']()+0xa)),_0x2b7588['_update'](_0x2008c5,!0x0),delete _0x2008c5['authors'],_0x3ad7de['push'](_0x2008c5);}}if(this['adapter']){for(const _0x21f3e2 of _0x3ad7de)this['_bufferUpdate'](_0x21f3e2['id'],_0x21f3e2,!0x0);this['sendBufferedUpdates']();}return _0x258994;}['addRevisionData'](_0x1ebad7){const _0x1f8501=this['repository']['createRevision'](_0x1ebad7);return this['adapter']&&_0x1f8501['on']('_update',(_0x13981a,_0x29fd56,_0x3ae62b)=>{_0x3ae62b||(this['_bufferUpdate'](_0x29fd56['id'],_0x29fd56,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1f8501,this['_findInsertionIndex'](_0x1f8501)),_0x1f8501;}async['getRevisionDocumentData'](_0x4b9a6f){await this['_loadRevisionData'](_0x4b9a6f);const _0x221784={};for(const _0x1d4074 in _0x4b9a6f['diffData']){if(_0x4b9a6f['diffData'][_0x1d4074]['attachChange']&&!_0x4b9a6f['diffData'][_0x1d4074]['attachChange']['isAttached'])continue;const _0x443248=this['_removeRevisionMarkers'](JSON['parse'](_0x4b9a6f['diffData'][_0x1d4074]['insertions'])),_0x21d076=this['editor']['editing']['view']['document'],_0x22607d=new _0x503e8b(_0x21d076,_0x443248['map'](_0x34c1d0=>V(_0x34c1d0,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x221784[_0x1d4074]=this['editor']['data']['processor']['toData'](_0x22607d),this['editor']['data']['processor']['useFillerType']('default');}return _0x221784;}async['getRevisionRootsAttributes'](_0x382abd){await this['_loadRevisionData'](_0x382abd);const _0x20b840={};for(const _0x1e72b9 in _0x382abd['diffData'])_0x382abd['diffData'][_0x1e72b9]['attachChange']&&!_0x382abd['diffData'][_0x1e72b9]['attachChange']['isAttached']||(_0x20b840[_0x1e72b9]=_0x382abd['diffData'][_0x1e72b9]['attributesAfter']||{});return _0x20b840;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2f7764=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x558c42=0x0;_0x558c42<_0x2f7764['length'];_0x558c42++){const _0x1b9583=_0x2f7764[_0x558c42];let _0xdd2daf=!0x1;for(const _0x4be406 of Object['keys'](_0x1b9583))void 0x0===_0x1b9583[_0x4be406]?delete _0x1b9583[_0x4be406]:'id'!==_0x4be406&&(_0xdd2daf=!0x0);_0xdd2daf||(_0x2f7764[_0x558c42]=null);}if(_0x2f7764=_0x2f7764['filter'](_0x164184=>null!==_0x164184),!_0x2f7764['length'])return;for(let _0x511143=0x0;_0x511143<_0x2f7764['length'];_0x511143++){const _0x25a205=_0x2f7764[_0x511143];void 0x0!==_0x25a205['fromVersion']&&void 0x0===_0x25a205['toVersion']&&(_0x25a205['toVersion']=this['repository']['getRevision'](_0x25a205['id'])['toVersion']),void 0x0!==_0x25a205['toVersion']&&void 0x0===_0x25a205['fromVersion']&&(_0x25a205['fromVersion']=this['repository']['getRevision'](_0x25a205['id'])['fromVersion']);}const _0x122ab4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2f7764,_0x122ab4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4a65be=>{if(_0x4a65be){for(const _0x1cf759 of _0x4a65be)this['setRevisionData']({'id':_0x1cf759['id'],'createdAt':_0x1cf759['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x453282,_0x838a64){let _0x3c6f9c=this['editor']['config']['get']('initialData'),_0xc46797=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3c6f9c){_0x3c6f9c={};for(const _0x30e1c4 of this['editor']['model']['document']['getRootNames']())_0x3c6f9c[_0x30e1c4]='';}if('string'==typeof _0x3c6f9c&&(_0x3c6f9c={'main':_0x3c6f9c}),void 0x0===_0xc46797){_0xc46797={};for(const _0x491b0a of this['editor']['model']['document']['getRootNames']())_0xc46797[_0x491b0a]={};}let _0x64017f=!0x1;const _0xa1781a=Object['keys'](_0x3c6f9c),_0x30a93b=Object['keys'](_0x453282);for(const _0x531233 of _0xa1781a){if(_0x3c6f9c[_0x531233]!==_0x453282[_0x531233]&&''!==_0x3c6f9c[_0x531233]['trim']()){_0x64017f=!0x0;break;}if(!_0x49da14(_0xc46797[_0x531233],_0x838a64[_0x531233])&&Object['keys'](_0xc46797[_0x531233])['length']>0x0){_0x64017f=!0x0;break;}}_0x64017f||(_0x64017f=_0x30a93b['some'](_0x3ddfb9=>!this['editor']['model']['document']['getRoot'](_0x3ddfb9))),_0x64017f&&_0x1753e6('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3c6f9c,'editorRootsAttributes':_0xc46797,'revisionData':_0x453282,'revisionRootsAttributes':_0x838a64}),this['editor']['config']['set']('initialData',_0x453282),this['editor']['config']['set']('rootsAttributes',_0x838a64);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x47c31c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x47c31c['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xc9483e){const _0x1a7bd9=this['repository']['getRevisions']();_0x1a7bd9['reverse']();let _0x255b96=0x0;for(;_0x255b96<_0x1a7bd9['length'];){const _0x24e46b=_0x1a7bd9[_0x255b96];if(_0x24e46b===this['currentRevision']){_0x255b96++;continue;}if(_0x24e46b['id']===this['_initialRevisionId'])break;const _0x35b0c3=_0xc9483e['toVersion']-_0x24e46b['toVersion']||_0xc9483e['fromVersion']-_0x24e46b['fromVersion'];if(_0x35b0c3>0x0)break;if(_0x35b0c3<0x0)_0x255b96++;else{if(!_0xc9483e['creator']&&_0x24e46b['creator'])break;if(_0x24e46b['creator']||!_0xc9483e['creator']){if(_0xc9483e['createdAt']>_0x24e46b['createdAt'])break;_0x255b96++;}else _0x255b96++;}}return _0x255b96;}['setRevisionData'](_0x29cba8){const _0x21c861=this['repository']['getRevision'](_0x29cba8['id']);if(_0x29cba8['createdAt']&&(_0x29cba8['createdAt']=new Date(_0x29cba8['createdAt'])),_0x29cba8['authorsIds']){const _0x5d19c2=this['editor']['plugins']['get']('Users');_0x29cba8['authors']=_0x29cba8['authorsIds']['map'](_0x5a156d=>_0x5d19c2['getUser'](_0x5a156d));}_0x21c861['_update'](_0x29cba8,!0x0);}['buildRevisionData']({revision:_0x3a980a=null,from:_0x22921a=null,to:_0x798d1e=null}){_0x22921a=null!==_0x22921a?_0x22921a:_0x3a980a['fromVersion'],_0x798d1e=null!==_0x798d1e?_0x798d1e:_0x3a980a['toVersion'];const _0x1673a7=this['_revisionDataBuilder']['getData'](_0x22921a,_0x798d1e),_0x390974={'diffData':_0x1673a7['diffData'],'authorsIds':_0x1673a7['authorsIds'],'fromVersion':_0x22921a,'toVersion':_0x798d1e};if(!_0x3a980a||_0x798d1e!==_0x3a980a['toVersion']){const _0xc441af=_0x798d1e-0x1,_0xcf4052=this['_source']['history']['getOperation'](_0xc441af);_0x390974['createdAt']=_0xcf4052&&_0xcf4052['createdAt']||new Date();}if(this['_loadedStateData']&&_0x22921a===this['_loadedStateData']['fromVersion']){for(const _0x410cbd of this['_loadedStateData']['authors'])_0x390974['authorsIds']['includes'](_0x410cbd['id'])||_0x390974['authorsIds']['push'](_0x410cbd['id']);}return _0x390974;}['_loadRevisionData'](_0x47153d){if(!_0x47153d||_0x47153d['diffData'])return Promise['resolve']();{const _0x532a65=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x532a65,'revisionId':_0x47153d['id']})['then'](_0x2a89b7=>{_0x47153d['diffData']=_0x2a89b7['diffData'];});}}['_bufferUpdate'](_0x17c110,_0x308aea,_0x162bd8){if(this['_bufferedUpdates']['has'](_0x17c110)){const _0x58593e=this['_bufferedUpdates']['get'](_0x17c110);_0x308aea=_0x162bd8?{..._0x58593e,..._0x308aea}:{..._0x308aea,..._0x58593e};}this['_bufferedUpdates']['set'](_0x17c110,_0x308aea);}['_getFromVersion'](_0x1c88a6){const _0xcf0140=this['repository']['getRevisions']();_0xcf0140['reverse'](),_0xcf0140['shift']();const _0x2a043e=_0xcf0140['find'](_0x1d78a4=>_0x1d78a4['toVersion']<=_0x1c88a6)['toVersion'];return _0x2a043e<this['_startingVersion']?this['_startingVersion']:_0x2a043e;}['_createInitialRevision'](_0x4373b0){const _0x561c97=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x561c97)this['_initialRevisionId']=_0x561c97['id'];else{const _0x33deb0=!this['editor']['model']['document']['roots']['find'](_0x2c92a1=>this['editor']['model']['hasContent'](_0x2c92a1)),_0x237315=this['editor']['plugins']['get']('Users')['me']['id'],_0x25e733=R(this['editor']['locale'],_0x33deb0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4373b0,'to':_0x4373b0,'id':this['_initialRevisionId'],'name':_0x25e733,'creatorId':_0x237315});}}['_createCurrentRevision'](_0x1a9930){const _0x194ce3=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x194ce3),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1a9930,'to':_0x1a9930,'id':_0x194ce3,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5597af,from:_0x33c55a,to:_0x1fce5c,creatorId:_0xaf1762,id:_0x1b8fe9}){const _0x504b20=this['buildRevisionData']({'from':_0x33c55a,'to':_0x1fce5c});_0x504b20['name']=_0x5597af,_0x504b20['creatorId']=_0xaf1762,_0x504b20['id']=_0x1b8fe9;const _0x27b80c=this['addRevisionData'](_0x504b20);return this['adapter']&&this['_bufferUpdate'](_0x504b20['id'],_0x504b20,!0x0),_0x27b80c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2fd077){return(_0x2fd077=_0x2fd077['filter'](_0x3611c7=>!_0x3611c7['name']||'revision-start'!==_0x3611c7['name']&&'revision-end'!==_0x3611c7['name']))['forEach'](_0x1dd452=>{'string'!=typeof _0x1dd452&&(_0x1dd452['children']=this['_removeRevisionMarkers'](_0x1dd452['children']),_0x1dd452['attributes']=_0x1dd452['attributes']['filter'](_0x2d95cf=>!_0x2d95cf[0x0]['startsWith']('data-revision-')));}),_0x2fd077;}}function V(_0x2668b3,_0x1326ae){const _0x471d55=_0x1326ae['editing']['view']['document'];if('string'==typeof _0x2668b3)return new _0x5e7678(_0x471d55,_0x2668b3);{const _0x419f57=_0x2668b3['children']['map'](_0x3360e7=>V(_0x3360e7,_0x1326ae));return new(C[_0x2668b3['type']]||_0x6314ee)(_0x471d55,_0x2668b3['name'],_0x2668b3['attributes'],_0x419f57);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1cc6fb){this['editor']=_0x1cc6fb,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'](_0x22af79){this['source']=_0x22af79;const _0x53922c=new Map(),_0x44d049=new Map(),_0x1ada88=this['editor']['model']['document']['roots']['map'](_0x4dd0e7=>_0x4dd0e7['rootName']);for(const _0x38da10 of _0x1ada88){const _0x3662c8=this['editor']['model']['document']['getRoot'](_0x38da10),_0x489c49=F(_0x3662c8);_0x53922c['set'](_0x38da10,_0x489c49),_0x44d049['set'](_0x38da10,Object['fromEntries'](_0x3662c8['getAttributes']()));}const _0x4ac8b5=Array['from'](this['editor']['model']['markers'])['map'](_0x474e42=>[_0x474e42['name'],_0x474e42['getRange']()]),_0x3d353e=this['source']['version'];this['_saveMetaData'](_0x3d353e,_0x53922c,_0x4ac8b5,_0x44d049),this['_startingRevisionId']=this['_revisionId'];const _0x465c0a=new Map(),_0x4d51aa=new Map();for(const _0xd3adfe of _0x1ada88){const _0x109055=B(_0xd3adfe);_0x465c0a['set'](_0xd3adfe,_0x109055),_0x4d51aa['set'](_0xd3adfe,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x465c0a,[],_0x4d51aa);}['getData'](_0x517358,_0x25233e){if(this['_lastFrom']===_0x517358&&this['_lastTo']<=_0x25233e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x25233e,!0x0);else{if(!this['_savedMetaData']['has'](_0x517358)){const _0x51a9bb=this['_getPreviousFrom'](_0x517358);this['_calculateMetaData'](_0x51a9bb,_0x517358,!0x1);}this['_calculateMetaData'](_0x517358,_0x25233e,!0x0);}return this['_lastFrom']=_0x517358,this['_lastTo']=_0x25233e,this['_getState']();}['loadState'](_0x4f8c1b){this['_reset'](),this['_lastFrom']=_0x4f8c1b['fromVersion'],this['_lastTo']=_0x4f8c1b['toVersion'];for(const _0x390952 in _0x4f8c1b['diffData']){const _0x448a26=_0x4f8c1b['diffData'][_0x390952]['attachChange'],_0x87ee99=_0x1924e4(_0x4f8c1b['diffData'][_0x390952]['attributesBefore'])||{},_0xcb92aa=this['_makeModelFromViewString'](_0x4f8c1b['diffData'][_0x390952]['deletions']);_0xcb92aa['rootName']=_0x390952,_0xcb92aa['_isAttached']=!_0x448a26||!_0x448a26['isAttached'],_0xcb92aa['isAttached']=()=>_0xcb92aa['_isAttached'],this['_baseRoots']['set'](_0x390952,_0xcb92aa),this['_baseRootsAttributes']['set'](_0x390952,_0x87ee99),_0x448a26&&this['_touchedRoots']['set'](_0x390952,_0x448a26);const _0x4ddf5a=this['_makeIdsRoot'](_0xcb92aa);this['_baseIdsRoots']['set'](_0x390952,_0x4ddf5a);for(const [_0x2f2aff,_0x57020b]of _0xcb92aa['markers']){if(!_0x2f2aff['startsWith']('revision:'))continue;const _0x44ca54=_0x2f2aff['split'](':')[0x2];for(const _0x2100aa of _0x57020b['getWalker']({'singleCharacters':!0x0})){const _0x35cb7a=this['_getVidAttributeName'](_0x2100aa),_0x3a9476='elementEnd'==_0x2100aa['type']?_0x2100aa['previousPosition']['path']['slice'](0x0,-0x1):_0x2100aa['previousPosition']['path'],_0x27e92a=_0x4ddf5a['getNodeByPath'](_0x3a9476)['getAttribute'](_0x35cb7a);this['_touched']['set'](_0x27e92a,{'userId':_0x44ca54});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3a598b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x17c396=>!this['_touched']['has'](_0x17c396));let _0x5bd988=0x0;const _0x3142b3=new Map();for(const _0x3d8f79 in _0x4f8c1b['diffData']){const _0x566a2b=_0x4f8c1b['diffData'][_0x3d8f79]['attachChange'],_0x5c23a4=_0x1924e4(_0x4f8c1b['diffData'][_0x3d8f79]['attributesAfter'])||{},_0xe4f970=this['_makeModelFromViewString'](_0x4f8c1b['diffData'][_0x3d8f79]['insertions']);_0xe4f970['rootName']=_0x3d8f79,_0xe4f970['_isAttached']=!_0x566a2b||_0x566a2b['isAttached'],_0xe4f970['isAttached']=()=>_0xe4f970['_isAttached'],this['_diffRoots']['set'](_0x3d8f79,_0xe4f970),this['_diffRootsAttributes']['set'](_0x3d8f79,_0x5c23a4);const _0x21c644=this['_makeIdsRoot'](_0xe4f970,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3d8f79,_0x21c644),_0x3142b3['set'](_0x3d8f79,_0xe4f970['isAttached']()?_0x5c23a4:{});for(const [_0x2703b6,_0xb4e94f]of _0xe4f970['markers']){if(!_0x2703b6['startsWith']('revision:'))continue;const _0xba0bb1=_0x2703b6['split'](':')[0x2];for(const _0x317e14 of _0xb4e94f['getWalker']({'singleCharacters':!0x0})){const _0x1481ca=this['_getVidAttributeName'](_0x317e14),_0x177ef1=this['_revisionId']++,_0x1912a6='elementEnd'==_0x317e14['type']?_0x317e14['previousPosition']['path']['slice'](0x0,-0x1):_0x317e14['previousPosition']['path'];_0x21c644['getNodeByPath'](_0x1912a6)['_setAttribute'](_0x1481ca,_0x177ef1),this['_touched']['set'](_0x177ef1,{'userId':_0xba0bb1});}}for(const _0x5aa3c0 of this['editor']['model']['createRangeIn'](_0xe4f970)['getWalker']({'singleCharacters':!0x0})){const _0x171225=this['_getVidAttributeName'](_0x5aa3c0),_0x594769='elementEnd'==_0x5aa3c0['type']?_0x5aa3c0['previousPosition']['path']['slice'](0x0,-0x1):_0x5aa3c0['previousPosition']['path'],_0x10d50f=_0x21c644['getNodeByPath'](_0x594769);_0x10d50f['getAttribute'](_0x171225)>0x0||_0x10d50f['_setAttribute'](_0x171225,_0x3a598b[_0x5bd988++]);}for(const [_0x301e73,_0x4374f9]of _0xe4f970['markers'])_0x301e73['startsWith']('revision:')||this['_markers']['set'](_0x301e73,_0x4374f9);}const _0x138dba=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x138dba),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x138dba,0x1));const _0x4106b4=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4106b4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4106b4,0x1));const _0x1ecfc6=Array['from'](this['_diffRoots'])['map'](([_0x3e63c2,_0x24e901])=>[_0x3e63c2,F(_0x24e901)]);this['_saveMetaData'](this['_lastTo'],_0x1ecfc6,this['_markers'],_0x3142b3);}['_makeModelFromViewString'](_0x225e94){const _0x38669d=JSON['parse'](_0x225e94),_0x4ac03f=this['editor']['editing']['view']['document'],_0x136097=new _0x503e8b(_0x4ac03f,_0x38669d['map'](_0x235250=>V(_0x235250,this['editor'])));return this['editor']['data']['toModel'](_0x136097);}['_saveMetaData'](_0xee3bb,_0x2d1dfa,_0x586dc5,_0x279bb5){const _0x35484d=new Map(_0x2d1dfa),_0x4a3a5c=new Map(_0x1924e4(_0x279bb5)),_0x3da1e5=new Map();for(const [_0x30eba6,_0x9cb0c7]of _0x586dc5)_0x3da1e5['set'](_0x30eba6,{'start':_0x9cb0c7['start']['clone'](),'end':_0x9cb0c7['end']['clone'](),'rootName':_0x9cb0c7['root']['rootName']});this['_savedMetaData']['set'](_0xee3bb,{'roots':_0x35484d,'markers':_0x3da1e5,'rootsAttributes':_0x4a3a5c});}['_removeMetaData'](_0x13b3aa){this['_savedMetaData']['delete'](_0x13b3aa);}['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'](_0x14de45,_0x59dc29=null){let _0x4b0efc=null;_0x14de45['is']('documentFragment')||(_0x4b0efc=new ft(_0x14de45['name'],{'vid_start':null===_0x59dc29?this['_revisionId']++:_0x59dc29++}));const _0x4fff5a=[];for(const _0x1381d2 of _0x14de45['getChildren']())if(_0x1381d2['is']('element')){_0x4fff5a['push'](this['_makeIdsRoot'](_0x1381d2,_0x59dc29));const _0x50c8d4=_0x4fff5a[_0x4fff5a['length']-0x1];null!==_0x59dc29&&(_0x59dc29=_0x50c8d4['is']('element','$text')?_0x50c8d4['getAttribute']('vid')+0x1:_0x50c8d4['getAttribute']('vid_end')+0x1);}else{for(let _0x3cd55e=0x0;_0x3cd55e<_0x1381d2['offsetSize'];_0x3cd55e++)_0x4fff5a['push'](new ft('$text',{'vid':null===_0x59dc29?this['_revisionId']++:_0x59dc29++}));}if(_0x14de45['is']('documentFragment')){const _0x250160=B(_0x14de45['rootName']);return _0x250160['_insertChild'](0x0,_0x4fff5a),_0x250160;}return _0x4b0efc['_setAttribute']('vid_end',null===_0x59dc29?this['_revisionId']++:_0x59dc29++),_0x4b0efc['_insertChild'](0x0,_0x4fff5a),_0x4b0efc;}['_calculateMetaData'](_0x15b0ce,_0x2ed39a,_0x2fbac4){this['_reset']();const {roots:_0x436b27,markers:_0x564015,rootsAttributes:_0x97b528}=this['_savedMetaData']['get'](_0x15b0ce);this['_baseRoots']=new Map(_0x436b27),this['_baseRootsAttributes']=new Map(_0x1924e4(_0x97b528));for(const [_0x20127e,_0x8387f0]of this['_baseRoots'])if('$graveyard'!==_0x20127e&&(this['_diffRoots']['set'](_0x20127e,F(_0x8387f0)),this['_diffRootsAttributes']=new Map(_0x1924e4(_0x97b528)),_0x2fbac4)){const _0x5f00c4=this['_revisionId'];this['_idsRoots']['set'](_0x20127e,this['_makeIdsRoot'](_0x8387f0)),this['_baseIdsRoots']['set'](_0x20127e,this['_makeIdsRoot'](_0x8387f0,_0x5f00c4));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x2fbac4&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4fd355,_0x56e580]of _0x564015){const _0x572c4b=this['_baseRoots']['get'](_0x56e580['rootName']),_0x4ebc0d=this['_diffRoots']['get'](_0x56e580['rootName']),_0x36c09f=new vt(this['_fixPosition'](_0x56e580['start'],_0x572c4b),this['_fixPosition'](_0x56e580['end'],_0x572c4b)),_0x42c67d=this['_fixRange'](_0x36c09f,_0x4ebc0d);_0x572c4b['markers']['set'](_0x4fd355,_0x36c09f),this['_markers']['set'](_0x4fd355,_0x42c67d);}this['_applyOperations'](_0x15b0ce,_0x2ed39a,_0x2fbac4);}['_applyOperations'](_0x413095,_0x547e6d,_0x36b75f){for(const _0x5b8d5b of this['source']['getOperations'](_0x413095,_0x547e6d))this['_handleOperation'](_0x5b8d5b,_0x36b75f);for(const _0x4dc2e4 of this['_diffRoots']['values']())_0x4dc2e4['markers']['clear']();for(const [_0x5e55a6,_0x13ba03]of this['_markers']){this['_diffRoots']['get'](_0x13ba03['root']['rootName'])['markers']['set'](_0x5e55a6,_0x13ba03['clone']());}const _0x522e69=new Map(),_0x36346b=new Map();for(const [_0xc9c1,_0x35c248]of this['_diffRoots'])_0x522e69['set'](_0xc9c1,F(_0x35c248)),_0x36346b['set'](_0xc9c1,this['_diffRootsAttributes']['get'](_0xc9c1));this['_saveMetaData'](_0x547e6d,_0x522e69,this['_markers'],_0x36346b);}['_getPreviousFrom'](_0x40bf70){const _0x1a2005=Array['from'](this['_savedMetaData']['keys']());_0x1a2005['sort']((_0x1bb7f7,_0x4eaeb3)=>_0x1bb7f7-_0x4eaeb3),_0x1a2005['reverse']();for(const _0x5a8a15 of _0x1a2005)if(_0x5a8a15<_0x40bf70)return _0x5a8a15;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xf6599e,_0x8bf74f){const _0x5a33e5=Array['from'](_0x8bf74f['markers'])['map'](([_0x23cda6,_0x3f9ce7])=>[_0x23cda6,this['_fixRange'](_0x3f9ce7,_0xf6599e)]);_0xf6599e['markers']=new Map(_0x5a33e5);}['_transformMarkers'](_0x115b37){for(const _0x395d74 of this['_markers']['values']()){const _0x1f0d03=_0x395d74['getTransformedByOperation'](_0x115b37),_0x5318c4=vt['_createFromRanges'](_0x1f0d03);_0x395d74['start']=_0x5318c4['start'],_0x395d74['end']=_0x5318c4['end'];}}['_handleOperation'](_0x1ad3aa,_0x5a1823){if('addRoot'!=_0x1ad3aa['type']&&'detachRoot'!=_0x1ad3aa['type']){if('insert'==_0x1ad3aa['type']){const _0x4d7b2e=_0x1ad3aa['position']['root']['rootName'];this['_diffRoots']['has'](_0x4d7b2e)||(this['_diffRoots']['set'](_0x4d7b2e,B(_0x4d7b2e,!0x0)),this['_diffRootsAttributes']['set'](_0x4d7b2e,{}),_0x5a1823&&this['_idsRoots']['set'](_0x4d7b2e,B(_0x4d7b2e,!0x0)));}else{if('addRootAttribute'==_0x1ad3aa['type']||'removeRootAttribute'==_0x1ad3aa['type']||'changeRootAttribute'==_0x1ad3aa['type'])return void this['_handleRootAttributeOperation'](_0x1ad3aa);'marker'==_0x1ad3aa['type']&&this['_handleMarkerOperation'](_0x1ad3aa);}if('marker'!==_0x1ad3aa['type']){const _0xb0dc5c=this['_cloneOperation'](_0x1ad3aa,this['_diffRoots']);_0xb0dc5c['_execute'](),this['_transformMarkers'](_0xb0dc5c);}if(_0x5a1823)switch(_0x1ad3aa['type']){case'insert':this['_handleInsertOperation'](_0x1ad3aa);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1ad3aa);break;case'merge':this['_handleMergeOperation'](_0x1ad3aa);break;case'split':this['_handleSplitOperation'](_0x1ad3aa);}}else this['_handleRootOperation'](_0x1ad3aa,_0x5a1823);}['_cloneOperation'](_0x1e527a,_0x5226eb){const _0x48ac25=_0x1e527a['clone']();return _0x48ac25['_authorId']=_0x1e527a['_authorId'],this['_fixOperation'](_0x48ac25,_0x5226eb),_0x48ac25;}['_getBaseVids'](_0x44051a){return _0x44051a['map'](_0x406cfb=>{const _0x1911ea=this['_getVidAttributeName'](_0x406cfb);return Number(_0x406cfb['item']['getAttribute'](_0x1911ea));});}['_generateTape'](_0x158b44,_0x455532){if(_0x158b44['is']('element','$text'))_0x455532['push']({'item':_0x158b44,'type':'text'});else{_0x158b44['is']('element')&&_0x455532['push']({'item':_0x158b44,'type':'elementStart'});for(const _0x198525 of _0x158b44['getChildren']())this['_generateTape'](_0x198525,_0x455532);_0x158b44['is']('element')&&_0x455532['push']({'item':_0x158b44,'type':'elementEnd'});}return _0x455532;}['_getState'](){const _0x175e18=new Map(this['_touched']),_0x2f4f5d=new Map(_0x175e18),_0x17ac91=new Map(),_0x2d5187={'insertions':{},'deletions':{}},_0xb32299={'insertions':{},'deletions':{}},_0x358f7e=new Map(),_0x435f6f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x435f6f['delete']('$graveyard');for(const _0x36ed8a of _0x435f6f){const _0x1b7c71=this['_diffRoots']['get'](_0x36ed8a)||B(_0x36ed8a,!0x1),_0x37b93f=this['_baseRoots']['get'](_0x36ed8a)||B(_0x36ed8a,!0x1);_0x1b7c71['isAttached']()||_0x37b93f['isAttached']()?(_0x2d5187['insertions'][_0x36ed8a]=F(_0x1b7c71),_0x2d5187['deletions'][_0x36ed8a]=F(_0x37b93f),this['_copyMarkers'](_0x2d5187['deletions'][_0x36ed8a],_0x37b93f),this['_copyMarkers'](_0x2d5187['insertions'][_0x36ed8a],_0x1b7c71),_0xb32299['insertions'][_0x36ed8a]=this['_generateTape'](this['_idsRoots']['get'](_0x36ed8a),[]),_0xb32299['deletions'][_0x36ed8a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x36ed8a)||B(_0x36ed8a,!0x1),[])):_0x435f6f['delete'](_0x36ed8a);}for(const _0x69b21 of _0x435f6f){const _0x9f87a9=_0xb32299['insertions'][_0x69b21];for(const _0x5b283f of _0x9f87a9){const _0x5b1eeb=this['_getVidAttributeName'](_0x5b283f),_0x20aed8=_0x5b283f['item']['getAttribute'](_0x5b1eeb);_0x2f4f5d['delete'](_0x20aed8),_0x20aed8>=this['_startingRevisionId']&&_0x17ac91['set'](_0x20aed8,_0x175e18['get'](_0x20aed8));}}for(const _0x12914c of _0x435f6f){const _0x16c325=_0xb32299['insertions'][_0x12914c],_0x4639f4=this['_getBaseVids'](_0xb32299['deletions'][_0x12914c]);let _0x36a7b8=0x0;for(const _0xd6a241 of _0x16c325){const _0x432468=this['_getVidAttributeName'](_0xd6a241),_0x24154c=_0xd6a241['item']['getAttribute'](_0x432468);if(!_0x17ac91['has'](_0x24154c)&&!_0x358f7e['has'](_0x24154c)){if(_0x2f4f5d['has'](_0x24154c))_0x36a7b8++;else{if(_0x24154c!=_0x4639f4[_0x36a7b8]){const _0x890055=_0x175e18['get'](_0x24154c)||_0x175e18['get'](_0x4639f4[_0x36a7b8]);for(;_0x24154c!=_0x4639f4[_0x36a7b8];)_0x2f4f5d['has'](_0x4639f4[_0x36a7b8])||(_0x358f7e['set'](_0x4639f4[_0x36a7b8],_0x890055),_0x175e18['set'](_0x4639f4[_0x36a7b8],_0x890055)),_0x36a7b8++;}_0x36a7b8++;}}}}for(const _0x1fd66f of _0x435f6f){const _0x52731b=_0xb32299['insertions'][_0x1fd66f];for(const _0x2e7868 of _0x52731b){const _0x2f227b=this['_getVidAttributeName'](_0x2e7868),_0x52055c=_0x2e7868['item']['getAttribute'](_0x2f227b);if(_0x358f7e['has'](_0x52055c)){const _0x29ccef=_0x358f7e['get'](_0x52055c);_0x2f4f5d['has'](_0x52055c)||_0x2f4f5d['set'](_0x52055c,{..._0x29ccef}),_0x17ac91['set'](_0x52055c,{..._0x29ccef});}}}for(const _0x489b43 of _0x2f4f5d['keys']())_0x489b43>=this['_startingRevisionId']&&_0x2f4f5d['delete'](_0x489b43);const _0x4b63eb=new Map();for(const _0x29ca05 of _0x435f6f){let _0x46c946=_0xb32299['insertions'][_0x29ca05];for(const _0x1e8f09 of _0x46c946)if(_0x1e8f09['item']['is']('element','tableCell')){const _0x4caf20=this['_getVidAttributeName'](_0x1e8f09),_0x2a85bb=_0x1e8f09['item']['getAttribute'](_0x4caf20);if(_0x17ac91['has'](_0x2a85bb)){const _0x40fe9c=_0x1e8f09['item']['parent']['parent']['getAttribute']('vid_start'),_0x4a5bc6=_0x4b63eb['get'](_0x40fe9c)||new Set();_0x4a5bc6['add'](_0x17ac91['get'](_0x2a85bb)['userId']),_0x4b63eb['set'](_0x40fe9c,_0x4a5bc6);}}_0x46c946=_0xb32299['deletions'][_0x29ca05];for(const _0x56f88e of _0x46c946)if(_0x56f88e['item']['is']('element','tableCell')){const _0x295439=this['_getVidAttributeName'](_0x56f88e),_0x5e6705=_0x56f88e['item']['getAttribute'](_0x295439);if(_0x2f4f5d['has'](_0x5e6705)){const _0x4a2cd0=_0x56f88e['item']['parent']['parent']['getAttribute']('vid_start'),_0x3bdb92=_0x4b63eb['get'](_0x4a2cd0)||new Set();_0x3bdb92['add'](_0x2f4f5d['get'](_0x5e6705)['userId']),_0x4b63eb['set'](_0x4a2cd0,_0x3bdb92);}}for(const _0x5d31b2 of _0x4b63eb['keys']())(_0x17ac91['has'](_0x5d31b2)||_0x2f4f5d['has'](_0x5d31b2))&&_0x4b63eb['delete'](_0x5d31b2);}for(const _0x4227f7 of _0x435f6f){const _0x4398d5=_0xb32299['insertions'][_0x4227f7];let _0x471b8e=null,_0xe8556d=null;for(const _0xe18afa of _0x4398d5){const _0x1eb837=this['_getVidAttributeName'](_0xe18afa),_0x4be5c7=_0xe18afa['item']['getAttribute'](_0x1eb837),_0x25f441=_0x4b63eb['get'](_0x4be5c7);_0x25f441&&'elementStart'==_0xe18afa['type']&&(_0x471b8e=Array['from'](_0x25f441)[0x0],_0xe8556d=_0xe18afa['item']['getAttribute']('vid_end')),_0x471b8e&&(_0x2f4f5d['set'](_0x4be5c7,{'userId':_0x471b8e}),_0x17ac91['set'](_0x4be5c7,{'userId':_0x471b8e})),_0x4be5c7==_0xe8556d&&(_0x471b8e=null,_0xe8556d=null);}}const _0x39ced7={},_0x88d2d7=new Set();for(const _0x265b09 of _0x435f6f){const _0x51c8f8=_0x2d5187['deletions'][_0x265b09],_0x3581dd=_0x2d5187['insertions'][_0x265b09];for(const {userId:_0x2f37e5}of this['_touchedMarkers']['values']())null!==_0x2f37e5&&_0x88d2d7['add'](_0x2f37e5);for(const {userId:_0x167d19}of this['_touchedRoots']['values']())null!==_0x167d19&&_0x88d2d7['add'](_0x167d19);this['_markChanges'](_0x3581dd,_0xb32299['insertions'][_0x265b09],_0x17ac91,'insertion',_0x88d2d7),this['_markChanges'](_0x51c8f8,_0xb32299['deletions'][_0x265b09],_0x2f4f5d,'deletion',_0x88d2d7),_0x39ced7[_0x265b09]={'insertions':this['_prepareViewToSave'](_0x3581dd),'deletions':this['_prepareViewToSave'](_0x51c8f8),'attachChange':this['_touchedRoots']['get'](_0x265b09)||null,'attributesBefore':_0x1924e4(this['_baseRootsAttributes']['get'](_0x265b09))||{},'attributesAfter':_0x1924e4(this['_diffRootsAttributes']['get'](_0x265b09))};}return{'diffData':_0x39ced7,'authorsIds':Array['from'](_0x88d2d7)};}['_processRootBeforeSave'](_0x25bf93){for(const [,_0x5c19c5]of _0x25bf93['markers']){const _0x3d8336=_0x5c19c5['start']['getAncestors']()['filter'](_0x1c9621=>'tableCell'==_0x1c9621['name']);for(const _0x46c42d of _0x3d8336)0x1==_0x46c42d['childCount']&&_0x46c42d['getChild'](0x0)['is']('element','paragraph')&&_0x46c42d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x341eaf){this['_processRootBeforeSave'](_0x341eaf);const _0x2b11e3=this['editor']['data']['toView'](_0x341eaf,{}),_0x547b8a=Array['from'](_0x2b11e3['getChildren']())['map'](_0x170aed=>this['_getViewJson'](_0x170aed));return JSON['stringify'](_0x547b8a);}['_getViewJson'](_0x4ea940){if(_0x4ea940['is']('$text'))return _0x4ea940['data'];{const _0xfbee85=_0x4ea940;return{'type':Object['keys'](C)['find'](_0x2280cb=>_0x4ea940 instanceof C[_0x2280cb]),'name':_0xfbee85['name'],'attributes':Array['from'](_0xfbee85['getAttributes']()),'children':Array['from'](_0xfbee85['getChildren']())['map'](_0x2ac18c=>this['_getViewJson'](_0x2ac18c))};}}['_markChanges'](_0x3b933d,_0x4f583e,_0xb9521d,_0x4598f9,_0x900303){let _0x29e797=null,_0x287130=null,_0xc18a83=0x0;const _0x39a6ba=this['editor']['model'];for(let _0x2c73f8=0x0;_0x2c73f8<_0x4f583e['length'];_0x2c73f8++){const _0x3607d1=this['_getVidAttributeName'](_0x4f583e[_0x2c73f8]),_0x13c16f=_0x4f583e[_0x2c73f8]['item']['getAttribute'](_0x3607d1),_0x1251aa=_0xb9521d['get'](_0x13c16f),_0x283501=_0x2c73f8==_0x4f583e['length']-0x1;(!_0x29e797&&_0x1251aa&&(_0x29e797=_0x1251aa,_0x287130=_0x4f583e[_0x2c73f8]),_0x29e797&&(!_0x1251aa||_0x1251aa['userId']!=_0x29e797['userId']))&&(_0x370591(_0x1251aa,J(_0x287130,_0x3b933d,_0x39a6ba),J(_0x4f583e[_0x2c73f8],_0x3b933d,_0x39a6ba)),_0x29e797=_0x1251aa||null,_0x287130=_0x1251aa?_0x4f583e[_0x2c73f8]:null),_0x29e797&&_0x283501&&_0x370591(_0x1251aa,J(_0x287130,_0x3b933d,_0x39a6ba),q(_0x4f583e[_0x2c73f8],_0x3b933d,_0x39a6ba));}function _0x370591(_0xed045e,_0x5c37da,_0x2716e5){const _0x4c3eb2=_0x29e797['userId'],_0x4a42b4='revision:'+_0x4598f9+':'+_0x4c3eb2+':'+_0xc18a83++,_0x3097e0=_0x39a6ba['createRange'](_0x5c37da,_0x2716e5);_0x3b933d['markers']['set'](_0x4a42b4,_0x3097e0),null!==_0x4c3eb2&&_0x900303['add'](_0x4c3eb2);}}['_getVidAttributeName'](_0x2cf4a8){switch(_0x2cf4a8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x51688a,_0x5b653c){_0x51688a['baseVersion']=null;for(const _0x5856d2 in _0x51688a){const _0xa1f00b=_0x51688a[_0x5856d2];if(_0xa1f00b instanceof gt){const _0x174a2d=_0x5b653c['get'](_0xa1f00b['root']['rootName']);_0x51688a[_0x5856d2]=this['_fixPosition'](_0xa1f00b,_0x174a2d);}if(_0xa1f00b instanceof vt){const _0x415ab1=_0x5b653c['get'](_0xa1f00b['root']['rootName']);_0x51688a[_0x5856d2]=this['_fixRange'](_0xa1f00b,_0x415ab1);}'root'===_0x5856d2&&(_0x51688a['root']=_0x5b653c['get'](_0x51688a['root']['rootName']));}}['_fixRange'](_0x1b2482,_0x1fab5a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1b2482['start'],_0x1fab5a),this['_fixPosition'](_0x1b2482['end'],_0x1fab5a));}['_fixPosition'](_0x42dabb,_0x408fdc){return this['editor']['model']['createPositionFromPath'](_0x408fdc,_0x42dabb['path'],_0x42dabb['stickiness']);}['_handleInsertOperation'](_0x43a0b8){const _0x463860=this['_idsRoots']['get'](_0x43a0b8['position']['root']['rootName']),_0x5e6f43=this['_fixPosition'](_0x43a0b8['position'],_0x463860),_0xbdae28=null===_0x43a0b8['_authorId']?null:_0x43a0b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34b2b9=_0x5e6f43['parent'],_0x3ad459=this['_revisionId'],_0x508e82=[];for(const _0x442242 of _0x43a0b8['nodes'])if(_0x442242['is']('element'))_0x508e82['push'](this['_makeIdsRoot'](_0x442242));else{for(let _0x5766ea=0x0;_0x5766ea<_0x442242['offsetSize'];_0x5766ea++)_0x508e82['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x35859c=this['_revisionId'];for(let _0x2f31f4=_0x3ad459;_0x2f31f4<_0x35859c;_0x2f31f4++)this['_touched']['set'](_0x2f31f4,{'userId':_0xbdae28});_0x34b2b9['_insertChild'](_0x5e6f43['offset'],_0x508e82);}['_handleMoveOperation'](_0x29873b){(_0x29873b=this['_cloneOperation'](_0x29873b,this['_idsRoots']))['_execute']();const _0x31ad81=null===_0x29873b['_authorId']?null:_0x29873b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x511085=_0x29873b['getMovedRangeStart'](),_0x1f4db0=_0x511085['parent'],_0x5a28ca=_0x511085['offset'];!function _0x2896e2(_0x5d24ff,_0x196c1b,_0x273a30,_0x5814f0){for(let _0x486bfd=_0x273a30;_0x486bfd<_0x5814f0;_0x486bfd++){const _0x56e861=_0x196c1b['getChild'](_0x486bfd);_0x56e861['is']('element','$text')?_0x5d24ff['set'](_0x56e861['getAttribute']('vid'),{'userId':_0x31ad81}):(_0x5d24ff['set'](_0x56e861['getAttribute']('vid_start'),{'userId':_0x31ad81}),_0x2896e2(_0x5d24ff,_0x56e861,0x0,_0x56e861['childCount']),_0x5d24ff['set'](_0x56e861['getAttribute']('vid_end'),{'userId':_0x31ad81}));}}(this['_touched'],_0x1f4db0,_0x5a28ca,_0x5a28ca+_0x29873b['howMany']);}['_handleMergeOperation'](_0x1f777f){const _0x1411ea=null===(_0x1f777f=this['_cloneOperation'](_0x1f777f,this['_idsRoots']))['_authorId']?null:_0x1f777f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37837b=_0x1f777f['targetPosition']['parent'],_0x5c2d9e=_0x1f777f['sourcePosition']['parent'],_0x6d90b=_0x37837b['getAttribute']('vid_end'),_0x4ba3b8=_0x5c2d9e['getAttribute']('vid_start');_0x37837b['_setAttribute']('vid_end',_0x5c2d9e['getAttribute']('vid_end')),_0x5c2d9e['_setAttribute']('vid_end',_0x6d90b),this['_touched']['set'](_0x4ba3b8,{'userId':_0x1411ea}),this['_touched']['set'](_0x6d90b,{'userId':_0x1411ea}),_0x1f777f['_execute']();}['_handleSplitOperation'](_0x4bece7){const _0x5c161d=null===(_0x4bece7=this['_cloneOperation'](_0x4bece7,this['_idsRoots']))['_authorId']?null:_0x4bece7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1dd822=_0x4bece7['graveyardPosition'],_0x22777c=_0x4bece7['splitPosition']['parent'];_0x4bece7['_execute']();const _0x470c5d=_0x22777c['getAttribute']('vid_end'),_0x2b4f37=_0x4bece7['insertionPosition']['nodeAfter'];if(_0x1dd822){const _0x2077a1=_0x2b4f37['getAttribute']('vid_end'),_0x3aa3a7=_0x22777c['getAttribute']('vid_end');_0x22777c['_setAttribute']('vid_end',_0x2077a1),_0x2b4f37['_setAttribute']('vid_end',_0x3aa3a7),this['_touched']['set'](_0x22777c['getAttribute']('vid_end'),{'userId':_0x5c161d}),this['_touched']['set'](_0x2b4f37['getAttribute']('vid_start'),{'userId':_0x5c161d});}else{const _0x762a8e=this['_revisionId']++,_0x154bb3=this['_revisionId']++;_0x22777c['_setAttribute']('vid_end',_0x762a8e),_0x2b4f37['_setAttribute']('vid_start',_0x154bb3),_0x2b4f37['_setAttribute']('vid_end',_0x470c5d),this['_touched']['set'](_0x762a8e,{'userId':_0x5c161d}),this['_touched']['set'](_0x154bb3,{'userId':_0x5c161d});}}['_handleMarkerOperation'](_0x4f51db){if(!_0x4f51db['affectsData'])return;const _0x52bedf=(_0x4f51db=this['_cloneOperation'](_0x4f51db,this['_diffRoots']))['oldRange']?_0x4f51db['oldRange']['root']:null,_0x57e1ec=_0x4f51db['newRange']?_0x4f51db['newRange']['root']:null;_0x52bedf&&this['_markers']['delete'](_0x4f51db['name']),_0x57e1ec&&this['_markers']['set'](_0x4f51db['name'],_0x4f51db['newRange']['clone']());const _0x51d5d1=null===_0x4f51db['_authorId']?null:_0x4f51db['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x19f64d=_0x4f51db['name'];if(!this['_touchedMarkers']['has'](_0x19f64d))return void this['_touchedMarkers']['set'](_0x19f64d,{'range':_0x4f51db['oldRange'],'userId':_0x51d5d1});const _0x1e4c52=this['_touchedMarkers']['get'](_0x19f64d),_0x54b2e7=_0x1e4c52['range'],_0x531a1e=_0x4f51db['newRange'];null==_0x54b2e7&&null==_0x531a1e||_0x54b2e7&&_0x531a1e&&_0x54b2e7['isEqual'](_0x531a1e)?this['_touchedMarkers']['delete'](_0x4f51db['name']):_0x1e4c52['userId']=_0x51d5d1;}['_handleRootOperation'](_0x227fab,_0x209e42){this['_diffRoots']['has'](_0x227fab['rootName'])?this['_diffRoots']['get'](_0x227fab['rootName'])['_isAttached']=_0x227fab['isAdd']:(this['_diffRoots']['set'](_0x227fab['rootName'],B(_0x227fab['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x227fab['rootName'],{}),_0x209e42&&this['_idsRoots']['set'](_0x227fab['rootName'],B(_0x227fab['rootName'],!0x0)));const _0x2bf05c=null===_0x227fab['_authorId']?null:_0x227fab['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ac776=this['_touchedRoots']['get'](_0x227fab['rootName']);_0x1ac776&&_0x1ac776['userId']===_0x2bf05c?this['_touchedRoots']['delete'](_0x227fab['rootName']):this['_touchedRoots']['set'](_0x227fab['rootName'],{'userId':_0x2bf05c,'isAttached':_0x227fab['isAdd']});}['_handleRootAttributeOperation'](_0x51dad2){const _0x136d8f=this['_diffRootsAttributes']['get'](_0x51dad2['root']['rootName']);null===_0x51dad2['newValue']?delete _0x136d8f[_0x51dad2['key']]:_0x136d8f[_0x51dad2['key']]=_0x51dad2['newValue'];}}function F(_0x334c34){const _0x178b4c=B(_0x334c34['rootName'],_0x334c34['isAttached']());for(const _0x2d95b0 of _0x334c34['getChildren']()){const _0x30b524=_0x2d95b0['_clone'](!0x0);_0x178b4c['_appendChild'](_0x30b524);}return _0x178b4c;}function B(_0x26f6c9,_0x15a886=!0x0){const _0x4d67c0=new wt();return _0x4d67c0['rootName']=_0x26f6c9,_0x4d67c0['_isAttached']=_0x15a886,_0x4d67c0['isAttached']=()=>_0x4d67c0['_isAttached'],_0x4d67c0;}function J(_0x4e32d9,_0x2f395d,_0x102f4b){const _0x29786c='elementEnd'==_0x4e32d9['type']?_0x102f4b['createPositionAt'](_0x4e32d9['item'],'end'):_0x102f4b['createPositionBefore'](_0x4e32d9['item']);return _0x102f4b['createPositionFromPath'](_0x2f395d,_0x29786c['path'],_0x29786c['stickiness']);}function q(_0x5e7f7d,_0x7d8625,_0xea874b){const _0x4488e6='elementStart'==_0x5e7f7d['type']?_0xea874b['createPositionAt'](_0x5e7f7d['item'],0x0):_0xea874b['createPositionAfter'](_0x5e7f7d['item']);return _0xea874b['createPositionFromPath'](_0x7d8625,_0x4488e6['path'],_0x4488e6['stickiness']);}class ms extends at{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3293bb,_0x1b4b03){super(_0x3293bb),this['focusTracker']=new _0x27a2a7(),this['keystrokes']=new _0x4c7ffd(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1b4b03),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4fce3c(this);}['render'](){super['render'](),_0x846033({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1e875b=_0x1aa38d=>_0x1aa38d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1e875b),this['keystrokes']['set']('arrowleft',_0x1e875b),this['keystrokes']['set']('arrowup',_0x1e875b),this['keystrokes']['set']('arrowdown',_0x1e875b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x566ecd){this['revisionNameInputView']['fieldView']['element']['value']=_0x566ecd['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xc09138){const _0x65f593=new ts(this['locale'],_0x2f0962),_0x465d06=_0x65f593['fieldView'];_0x465d06['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1d5c87=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0xc09138&&(_0x1d5c87+='\x20('+R(this['locale'],'optional')+')'),(_0x65f593['label']=_0x1d5c87,_0x465d06['on']('input',()=>{this['revisionNameInputValue']=_0x465d06['element']['value']['trim']();}),_0x65f593);}}class u extends _0x5ea060{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1e6e15=this['editor'],_0x1f3ab8=_0x1e6e15['plugins']['get']('RevisionTracker');_0x1e6e15['ui']['componentFactory']['add']('revisionHistory',_0x566272=>{const _0x475641=_0x1b77bf(_0x566272),_0x156c80=_0x475641['panelView']['children'],_0xbf3375=new _0x502fd3(_0x566272),_0xed2853=new _0x200fc7(_0x566272),_0xe33fc5=new _0x1b818d(_0x566272),_0x5da369=new _0x200fc7(_0x566272),_0x4d4e9d=new _0x1b818d(_0x566272);return _0x475641['bind']('isEnabled')['to'](_0x1f3ab8,'isReady',_0x1f3ab8,'isEnabled',_0x1e6e15,'isReadOnly',(_0x45518d,_0x165dbf,_0x11eefc)=>_0x45518d&&_0x165dbf&&!_0x11eefc),_0x475641['buttonView']['set']({'icon':te['history'],'label':R(_0x566272,'Revision\x20history'),'tooltip':!0x0}),_0xe33fc5['set']({'label':R(_0x566272,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xe33fc5['bind']('isEnabled')['to'](_0x1f3ab8,'isReady',_0x1f3ab8,'isEnabled',_0x1e6e15,'isReadOnly',(_0x5eb87e,_0x464518,_0x47b2a4)=>_0x5eb87e&&_0x464518&&!_0x47b2a4),_0xe33fc5['on']('execute',()=>this['_showDialog']()),_0x4d4e9d['set']({'label':R(_0x566272,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4d4e9d['bind']('isEnabled')['to'](_0x1f3ab8,'isReady',_0x1e6e15,'isReadOnly',(_0x2d85bc,_0x577e8e)=>_0x2d85bc&&!_0x577e8e),_0x4d4e9d['on']('execute',()=>{_0x1e6e15['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x475641['isOpen']=!0x1,_0x1e6e15['editing']['view']['focus']();}),_0xed2853['children']['add'](_0xe33fc5),_0x5da369['children']['add'](_0x4d4e9d),_0xbf3375['role']='menu',_0xbf3375['items']['addMany']([_0xed2853,_0x5da369]),_0x156c80['add'](_0xbf3375),_0x475641;}),_0x1e6e15['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x315c6e=this['editor'],_0x5e5c54=_0x315c6e['locale'],_0x586c6=new _0x3bc38d(_0x5e5c54),_0xaa5fc7=new _0x40d078(_0x5e5c54);_0x586c6['buttonView']['set']({'icon':te['history'],'label':R(_0x5e5c54,'Revision\x20history')});const _0x2dd92d=new _0x172106(_0x5e5c54,_0x586c6),_0x2023dc=new _0x4003ec(_0x5e5c54);_0x2023dc['set']({'label':R(_0x5e5c54,'Save\x20current\x20revision')}),_0x2023dc['delegate']('execute')['to'](_0x586c6),_0x2023dc['on']('execute',()=>{this['_showDialog']();}),_0x2dd92d['children']['add'](_0x2023dc),_0xaa5fc7['items']['add'](_0x2dd92d);const _0x2266a6=new _0x172106(_0x5e5c54,_0x586c6),_0x53f805=new _0x4003ec(_0x5e5c54);return _0x53f805['set']({'label':R(_0x5e5c54,'Open\x20revision\x20history')}),_0x53f805['delegate']('execute')['to'](_0x586c6),_0x53f805['on']('execute',()=>{_0x315c6e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2266a6['children']['add'](_0x53f805),_0xaa5fc7['items']['add'](_0x2266a6),_0x586c6['panelView']['children']['add'](_0xaa5fc7),_0x586c6;}['_showDialog'](){const _0x3f3746=this['editor'],_0x538b3c=_0x3f3746['locale'],_0xb511df=_0x3f3746['plugins']['get']('Dialog'),_0x7358b9=_0x3f3746['plugins']['get']('RevisionTracker');function _0xd823ce(_0x489dbb){_0x3f3746['config']['get']('revisionHistory.requireRevisionName')&&''===_0x489dbb['revisionName']?_0x489dbb['revisionNameInputView']['errorText']=R(_0x538b3c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3f3746['plugins']['get'](l)['saveRevision']({'name':_0x489dbb['revisionName']}),_0xb511df['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xd823ce(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xb511df['show']({'id':'revisionSave','title':R(_0x538b3c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x3f3746['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xb511df['hide']()},{'label':R(_0x3f3746['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2bd23a){_0x2bd23a['bind']('isEnabled')['to'](_0x7358b9,'isReady',_0x7358b9,'isEnabled',_0x3f3746,'isReadOnly',(_0x4b1c84,_0x1f09ec,_0x47fb42)=>_0x4b1c84&&_0x1f09ec&&!_0x47fb42);},'onExecute':()=>_0xd823ce(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4b5b66=this['editor'],_0x53e7c1=_0x4b5b66['locale'];this['_saveRevisionFormView']=new ms(_0x53e7c1,_0x4b5b66['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends at{['changeId'];['_model'];constructor(_0x1911b8,_0x3f0ffc){super(_0x1911b8),this['_model']=_0x3f0ffc,this['changeId']=_0x3f0ffc['id'];const _0x344045=this['bindTemplate'],_0x278a04=R(_0x1911b8,_0x3f0ffc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3f0ffc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3f0ffc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x344045['to']('type',_0xe76199=>'ck-revision-change__'+_0xe76199)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x278a04}]},{'text':'\x20'+_0x3f0ffc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x521204(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x50b8bd){super(),this['id']=_0x50b8bd['id']||_0x53d4c4(),this['author']=_0x50b8bd['author'],this['type']=_0x50b8bd['type'],this['data']=_0x50b8bd['data']||{},this['rootName']=_0x50b8bd['rootName'],this['set']('createdAt',_0x50b8bd['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x58e67c,_0x270c63){this['newRevisionId']=_0x58e67c,this['oldRevisionId']=_0x270c63,this['changes']=new _0x5bd33b();}['_setChanges'](_0xbb908f){for(const _0x49e67a of _0xbb908f)this['changes']['add'](_0x49e67a);}}const Z={'c':_0x2dac21,'a':_0x40f7bf,'e':_0x166005,'r':_0x3b0d78,'u':_0x154786};class d extends _0x5ea060{['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[_0x3b0b2b,_0x3ef274,j];}constructor(_0x316bf8){super(_0x316bf8),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',(_0x9fa278,_0x31949d,_0x36853a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x148092=>{for(const _0x13c1e9 of this['editor']['editing']['view']['document']['roots'])_0x36853a?_0x148092['removeClass']('ck-editor__editable__overlay',_0x13c1e9):_0x148092['addClass']('ck-editor__editable__overlay',_0x13c1e9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x44c032=>null!==_0x44c032),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3a7318,_0x259aa4,_0xd5006d)=>_0x3a7318&&_0xd5006d?_0x259aa4['changes']['getIndex'](_0xd5006d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x45c0ee,_0x2bdaa3)=>_0x45c0ee?_0x2bdaa3['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3ef274);}['init'](){const _0x3476fc=this['editor'],_0x1451d9=new bt(_0x3476fc,{'direction':'backward'}),_0x4b87bb=new bt(_0x3476fc,{'direction':'forward'});(_0x3476fc['commands']['add']('showPreviousChange',_0x1451d9),_0x3476fc['commands']['add']('showNextChange',_0x4b87bb),_0x3476fc['commands']['add']('restoreRevision',new yt(_0x3476fc)),this['on']('change:numberOfChanges',()=>{_0x1451d9['refresh'](),_0x4b87bb['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3476fc['enableReadOnlyMode']('revision-viewer'),_0x3476fc['plugins']['has']('WidgetToolbarRepository'))&&_0x3476fc['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x126e30){await this['loadRevisionData'](_0x126e30);const _0x35f70c={};for(const _0x14c277 in _0x126e30['diffData']){if(_0x126e30['diffData'][_0x14c277]['attachChange']&&!_0x126e30['diffData'][_0x14c277]['attachChange']['isAttached'])continue;const _0x18ccca=this['_removeRevisionMarkers'](JSON['parse'](_0x126e30['diffData'][_0x14c277]['insertions'])),_0x4794cf=this['editor']['editing']['view']['document'],_0x335f55=new _0x503e8b(_0x4794cf,_0x18ccca['map'](_0x5641c8=>this['_getViewObj'](_0x5641c8)));this['editor']['data']['processor']['useFillerType']('marked'),_0x35f70c[_0x14c277]=this['editor']['data']['processor']['toData'](_0x335f55),this['editor']['data']['processor']['useFillerType']('default');}return _0x35f70c;}async['getRevisionRootsAttributes'](_0xb8ee9){await this['loadRevisionData'](_0xb8ee9);const _0x27f181={};for(const _0x21618d in _0xb8ee9['diffData'])_0xb8ee9['diffData'][_0x21618d]['attachChange']&&!_0xb8ee9['diffData'][_0x21618d]['attachChange']['isAttached']||(_0x27f181[_0x21618d]=_0xb8ee9['diffData'][_0x21618d]['attributesAfter']||{});return _0x27f181;}['_removeRevisionMarkers'](_0x42f130){return(_0x42f130=_0x42f130['filter'](_0x27ced3=>!_0x27ced3['name']||'revision-start'!==_0x27ced3['name']&&'revision-end'!==_0x27ced3['name']))['forEach'](_0x3ddde2=>{'string'!=typeof _0x3ddde2&&(_0x3ddde2['children']=this['_removeRevisionMarkers'](_0x3ddde2['children']),_0x3ddde2['attributes']=_0x3ddde2['attributes']['filter'](_0x40dde4=>!_0x40dde4[0x0]['startsWith']('data-revision-')));}),_0x42f130;}async['compare'](_0x41ecd6,_0x317db9,_0x35da7e=!0x1){if(!this['isEnabled'])return;const _0x22c678=this['diff'],_0x4305e6=this['repository'],_0x349223='string'==typeof _0x41ecd6?_0x4305e6['getRevision'](_0x41ecd6):_0x41ecd6,_0x1455bc='string'==typeof _0x317db9?_0x4305e6['getRevision'](_0x317db9):_0x317db9,_0x4f6086=_0x349223['id'],_0x1a13fa=_0x1455bc?_0x1455bc['id']:null;if(!_0x35da7e&&this['diff']&&this['diff']['newRevisionId']===_0x4f6086&&this['diff']['oldRevisionId']===_0x1a13fa)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4f6086,_0x1a13fa);const _0x11fc7c=this['_getRevisionsRange'](_0x349223,_0x1455bc,!0x0)['map'](_0x109e11=>this['loadRevisionData'](_0x109e11));return _0x11fc7c['push'](new Promise(_0x163762=>{setTimeout(_0x163762,0x14);})),Promise['all'](_0x11fc7c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1d9c72=this['_getDiff'](_0x4f6086,_0x1a13fa);for(const _0x24e11e of _0x1d9c72['changes'])this['_changeIdToChange']['set'](_0x24e11e['id'],_0x24e11e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1dd797=>{for(const _0x3addfc of this['editor']['model']['document']['getRootNames']())_0x1dd797['detachRoot'](_0x3addfc);for(const _0x1e889c of Object['keys'](_0x1d9c72['model'])){const _0x190480=_0x1dd797['addRoot'](_0x1e889c);for(const _0x5d6767 of Object['keys'](_0x1d9c72['attributes'][_0x1e889c]))_0x1dd797['setAttribute'](_0x5d6767,_0x1d9c72['attributes'][_0x1e889c][_0x5d6767],_0x190480);_0x1dd797['insert'](_0x1d9c72['model'][_0x1e889c],_0x190480,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1d9c72['changes'])),this['isReady']=!0x0;})['catch'](_0x69b967=>{console['error'](_0x69b967),this['_cleanUp'](),_0x22c678&&(this['diff']=_0x22c678),this['isReady']=!0x0;});}['addRevisionData'](_0x4267e0,_0x10294d){const _0x13498d=this['repository']['createRevision'](_0x4267e0);return _0x13498d['on']('_update',(_0x3746dd,_0xef2c8d,_0x471105)=>_0x10294d(_0xef2c8d,_0x471105,_0x13498d)),this['repository']['addRevision'](_0x13498d),_0x13498d;}['loadRevisionData'](_0x1bfe05){if(!_0x1bfe05||_0x1bfe05['diffData'])return Promise['resolve']();{const _0x23dafa=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x23dafa,'revisionId':_0x1bfe05['id']})['then'](_0x51d39a=>{_0x1bfe05['_update']({'diffData':_0x51d39a['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},_0x4f1720=>{for(const _0x44655f of this['editor']['model']['document']['getRootNames']())_0x4f1720['detachRoot'](_0x44655f);});}['_sortAndFilterDiffChanges'](_0x5e149f){const _0x175b24=[],_0x559c09=new Map();for(const _0x532539 of this['editor']['model']['document']['getRootNames']()){const _0x2e4eca=this['editor']['editing']['view']['getDomRoot'](_0x532539);if(!_0x2e4eca)continue;const _0xf881eb=_0x2e4eca['getClientRects']()['item'](0x0);_0xf881eb&&(_0x175b24['push'](_0x532539),_0x559c09['set'](_0x532539,_0xf881eb));}return _0x175b24['sort']((_0x515dcf,_0x220e44)=>{const _0x102936=_0x559c09['get'](_0x515dcf),_0x401e34=_0x559c09['get'](_0x220e44);return _0x102936['y']-_0x401e34['y']||_0x102936['x']-_0x401e34['x'];}),(_0x5e149f=_0x5e149f['filter'](_0x1f85b3=>_0x175b24['includes'](_0x1f85b3['rootName'])))['sort']((_0x962156,_0x52a8c5)=>_0x175b24['indexOf'](_0x962156['rootName'])-_0x175b24['indexOf'](_0x52a8c5['rootName'])),_0x5e149f;}['_makeTape'](_0x441231){const _0x5020c5=Array['from'](_0x441231['markers'])['filter'](([_0x37b632,_0x27d38e])=>_0x37b632['startsWith']('revision:')&&!_0x27d38e['isCollapsed']),_0x5554ce=Array['from'](this['editor']['model']['createRangeIn'](_0x441231)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5020c5['length'])for(const _0x5b385f of _0x5554ce){const [_0x758f1e,_0x4698d1]=_0x5020c5[0x0],[,_0x33115a,_0x583ffa]=_0x758f1e['split'](':');if(_0x4698d1['end']['isEqual'](_0x5b385f['nextPosition'])&&_0x5020c5['shift'](),(_0x5b385f['previousPosition']['isEqual'](_0x4698d1['start'])||_0x5b385f['previousPosition']['isAfter'](_0x4698d1['start']))&&('insertion'==_0x33115a?_0x5b385f['isAdded']={'userId':_0x583ffa}:'deletion'==_0x33115a&&(_0x5b385f['isRemoved']={'userId':_0x583ffa})),0x0==_0x5020c5['length'])break;}return _0x5554ce;}['_refreshStartEndIndex'](_0x36aeb0){const _0x4a24b5=new Map();for(let _0x1d4474=0x0;_0x1d4474<_0x36aeb0['length'];_0x1d4474++)'text'===_0x36aeb0[_0x1d4474]['type']?(_0x36aeb0[_0x1d4474]['item']['startIndex']=_0x1d4474,_0x36aeb0[_0x1d4474]['item']['endIndex']=_0x1d4474):('elementStart'===_0x36aeb0[_0x1d4474]['type']?_0x36aeb0[_0x1d4474]['item']['startIndex']=_0x1d4474:'elementEnd'===_0x36aeb0[_0x1d4474]['type']&&(_0x36aeb0[_0x1d4474]['item']['endIndex']=_0x1d4474),_0x4a24b5['set'](_0x36aeb0[_0x1d4474]['id'],_0x1d4474));for(const _0x33b226 of _0x4a24b5['values']())'elementStart'===_0x36aeb0[_0x33b226]['type']?_0x36aeb0[_0x33b226]['item']['endIndex']=_0x4a24b5['get'](_0x36aeb0[_0x33b226]['pairId']):'elementEnd'===_0x36aeb0[_0x33b226]['type']&&(_0x36aeb0[_0x33b226]['item']['startIndex']=_0x4a24b5['get'](_0x36aeb0[_0x33b226]['pairId']));}['_processTape'](_0x27449c){for(let _0xc64e1f=0x0;_0xc64e1f<_0x27449c['length'];_0xc64e1f++){if('elementStart'===_0x27449c[_0xc64e1f]['type'])_0x27449c[_0xc64e1f]['item']['startIndex']=_0xc64e1f;else{if('elementEnd'===_0x27449c[_0xc64e1f]['type']){_0x27449c[_0xc64e1f]['item']['endIndex']=_0xc64e1f;const _0x4c1c5b=_0x27449c[_0xc64e1f]['item']['startIndex'];_0x27449c[_0x4c1c5b]['pairId']=_0x27449c[_0xc64e1f]['id'],_0x27449c[_0xc64e1f]['pairId']=_0x27449c[_0x4c1c5b]['id'];}else _0x27449c[_0xc64e1f]['item']['startIndex']=_0xc64e1f,_0x27449c[_0xc64e1f]['item']['endIndex']=_0xc64e1f,_0x27449c[_0xc64e1f]['pairId']=null;}_0x27449c[_0xc64e1f]['markersStart']||(_0x27449c[_0xc64e1f]['markersStart']=[],_0x27449c[_0xc64e1f]['markersEnd']=[]);}}['_markInsertions'](_0x22ef52,_0x4da003){const _0x2aad75=_0x22ef52['filter'](_0x589895=>!_0x589895['isAdded']);for(let _0x33ee2f=0x0;_0x33ee2f<_0x4da003['length'];_0x33ee2f++)_0x4da003[_0x33ee2f]['isAdded']&&(_0x2aad75[_0x33ee2f]['isAdded']=_0x4da003[_0x33ee2f]['isAdded']);}['_makeModelFromViewString'](_0x42724a){const _0x55b59d=JSON['parse'](_0x42724a),_0x50773a=this['editor']['editing']['view']['document'],_0x1001be=new _0x503e8b(_0x50773a,_0x55b59d['map'](_0x2de4e6=>this['_getViewObj'](_0x2de4e6)));return this['editor']['data']['toModel'](_0x1001be);}['_getViewObj'](_0x472c4f){const _0xc35584=this['editor']['editing']['view']['document'];if('string'==typeof _0x472c4f)return new _0x5e7678(_0xc35584,_0x472c4f);{const _0x5cb928=_0x472c4f['children']['map'](_0x43859f=>this['_getViewObj'](_0x43859f));return new(Z[_0x472c4f['type']]||_0x6314ee)(_0xc35584,_0x472c4f['name'],_0x472c4f['attributes'],_0x5cb928);}}['_getDiff'](_0x283610,_0x28ac10=null){const _0x328ab5=this['repository']['getRevision'](_0x283610),_0x204134=_0x28ac10?this['repository']['getRevision'](_0x28ac10):null,_0x2f0b26=this['_getRevisionsRange'](_0x328ab5,_0x204134),_0x248a04=_0x2f0b26[_0x2f0b26['length']-0x1],_0x9a46a9=new Map(),_0x60f641={'model':{},'attributes':{},'changes':[]},_0x141475=new Set(),_0x5b31c4=new Map();for(let _0x323741=_0x2f0b26['length']-0x1;_0x323741>=0x0;_0x323741--){const _0x466f2f=_0x2f0b26[_0x323741];for(const _0x45deb7 of Object['keys'](_0x466f2f['diffData']))if(_0x466f2f['diffData'][_0x45deb7]['attachChange']){const _0x527755=_0x466f2f['diffData'][_0x45deb7]['attachChange'];_0x527755['isAttached']?(_0x141475['add'](_0x45deb7),_0x5b31c4['has'](_0x45deb7)&&_0x5b31c4['get'](_0x45deb7)['userId']==_0x527755['userId']?_0x5b31c4['delete'](_0x45deb7):_0x5b31c4['set'](_0x45deb7,_0x527755)):_0x5b31c4['has'](_0x45deb7)?(_0x141475['delete'](_0x45deb7),_0x5b31c4['delete'](_0x45deb7)):(_0x141475['add'](_0x45deb7),_0x5b31c4['set'](_0x45deb7,_0x527755));}else _0x141475['add'](_0x45deb7);}for(const _0x1d3e77 of _0x141475){const _0x5f30c4=_0x5b31c4['has'](_0x1d3e77)&&!_0x5b31c4['get'](_0x1d3e77)['isAttached'];let _0x240bb4=_0x5f30c4?_0x2f0b26['length']-0x1:0x0;const _0x40d372=_0x5f30c4?-0x1:0x1;for(;_0x2f0b26[_0x240bb4];){const _0x1a335b=_0x2f0b26[_0x240bb4];if(_0x1a335b['diffData'][_0x1d3e77]){const _0x56369e=_0x5f30c4?_0x1a335b['diffData'][_0x1d3e77]['attributesBefore']:_0x1a335b['diffData'][_0x1d3e77]['attributesAfter'];_0x60f641['attributes'][_0x1d3e77]=_0x56369e?_0x1924e4(_0x56369e):{};break;}_0x240bb4+=_0x40d372;}}for(const _0x36e655 of _0x2f0b26){_0x36e655['model']={};for(const _0x3ffaf5 of _0x36e655['authors'])_0x9a46a9['set'](_0x3ffaf5['id'],_0x3ffaf5);for(const _0x544d75 of _0x141475){const _0x1161ab=_0x36e655['diffData'][_0x544d75]?_0x36e655['diffData'][_0x544d75]['insertions']:'[]',_0x3a0c64=_0x36e655['diffData'][_0x544d75]?_0x36e655['diffData'][_0x544d75]['deletions']:'[]';_0x36e655['model'][_0x544d75]={'insertions':this['_makeModelFromViewString'](_0x1161ab),'deletions':this['_makeModelFromViewString'](_0x3a0c64)};}}for(const _0x37a219 of _0x141475){let _0x5c557a=null,_0x3da78f=0x0;const _0x402b5f=new Map(Array['from'](_0x328ab5['model'][_0x37a219]['insertions']['markers'])['filter'](([_0x2a64f6])=>!_0x2a64f6['startsWith']('revision:')));let _0x2d187a=0x0;for(const _0x107638 of _0x2f0b26){const _0x8d9f51=this['_makeTape'](_0x107638['model'][_0x37a219]['insertions']);_0x107638==_0x328ab5?(_0x5c557a=_0x8d9f51,_0x3da78f=_0x5c557a['length'],_0x5c557a['forEach'](_0x238c11=>{_0x238c11['id']=_0x2d187a++;}),this['_processTape'](_0x5c557a)):this['_markInsertions'](_0x5c557a,_0x8d9f51);const _0x1211ad=_0x5c557a['filter'](_0x258361=>!_0x258361['isAdded'])['map'](_0x3a2069=>_0x3a2069['id']);let _0x4ca980=0x0;const _0x1ed87c=this['_makeTape'](_0x107638['model'][_0x37a219]['deletions']);_0x1ed87c['forEach'](_0x13faa3=>{_0x13faa3['isRemoved']?_0x13faa3['id']=_0x3da78f++:_0x13faa3['id']=_0x1211ad[_0x4ca980++];}),this['_processTape'](_0x1ed87c),this['_setDistance'](_0x5c557a,'isAdded'),this['_setDistance'](_0x1ed87c,'isRemoved'),_0x107638==_0x328ab5&&this['_markMarkers'](_0x5c557a,_0x402b5f),_0x5c557a=this['_joinTapes'](_0x5c557a,_0x1ed87c),this['_refreshStartEndIndex'](_0x5c557a),this['_setDistance'](_0x5c557a,'isRemoved');}_0x5c557a=_0x5c557a['filter'](_0x3c28c3=>!(_0x3c28c3['isAdded']&&_0x3c28c3['isRemoved']));const _0x17023f=new Map(_0x248a04['model'][_0x37a219]['deletions']['markers']),_0x12f4de=new Set(_0x402b5f['keys']());for(const _0x4e4e84 of _0x17023f['keys']())_0x12f4de['delete'](_0x4e4e84);this['_markSuggestions'](_0x5c557a,_0x12f4de),this['_fixObsoleteTags'](_0x5c557a),_0x5c557a=this['_removeMissingPairs'](_0x5c557a),_0x5c557a=this['_markMismatchedRemovedTags'](_0x5c557a),_0x5c557a=this['_removeUnsupportedChanges'](_0x5c557a);const {root:_0x568254,changes:_0x59446c}=this['_makeModelFromTape'](_0x5c557a,_0x9a46a9,_0x37a219);_0x60f641['model'][_0x37a219]=_0x568254;const _0x4629db=_0x5b31c4['get'](_0x37a219);if(_0x4629db){const _0x456a5c=_0x9a46a9['get'](_0x4629db['userId']),_0x296510=new r({'author':_0x456a5c,'type':_0x4629db['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x37a219});_0x59446c['unshift'](_0x296510),_0x60f641['attributes'][_0x37a219]['revisionHistoryAttachChange']=_0x296510['id'];}_0x60f641['changes']=_0x60f641['changes']['concat'](_0x59446c);}return _0x60f641;}['_markMarkers'](_0x1df54e,_0x5d976f){for(let _0x13ba2b=0x0;_0x13ba2b<_0x1df54e['length'];_0x13ba2b++)for(const [_0x1cc0cc,_0x2007b8]of _0x5d976f)_0x2007b8['start']['isEqual'](_0x1df54e[_0x13ba2b]['previousPosition'])&&_0x1df54e[_0x13ba2b]['markersStart']['push'](_0x1cc0cc),_0x2007b8['end']['isEqual'](_0x1df54e[_0x13ba2b]['nextPosition'])&&_0x1df54e[_0x13ba2b]['markersEnd']['push'](_0x1cc0cc);}['_joinTapes'](_0x18e42a,_0x587011){let _0x57354c=[],_0x2e0e52=0x0,_0x11698a=0x0;for(;_0x2e0e52<_0x18e42a['length']||_0x11698a<_0x587011['length'];){const _0x2e9a3e=_0x18e42a[_0x2e0e52]||{},_0x4a909b=_0x587011[_0x11698a]||{};if(_0x2e9a3e['id']==_0x4a909b['id'])_0x2e0e52++,_0x11698a++,_0x57354c['push'](_0x2e9a3e);else{if(_0x4a909b['isRemoved']&&_0x2e9a3e['isAdded']){const {commonTape:_0x2955fd,iEnd:_0x19a401,jEnd:_0xcd265d}=this['_threeWayMerge'](_0x18e42a,_0x2e0e52,_0x587011,_0x11698a);_0x57354c=_0x57354c['concat'](_0x2955fd),_0x2e0e52=_0x19a401,_0x11698a=_0xcd265d;}else _0x4a909b['isRemoved']?(_0x11698a++,_0x57354c['push'](_0x4a909b)):(_0x2e0e52++,_0x57354c['push'](_0x2e9a3e));}}return _0x57354c;}['_markSuggestions'](_0x199856,_0x46495f){const _0x184f50=[];for(let _0x5963d5=0x0;_0x5963d5<_0x199856['length'];_0x5963d5++){for(let _0xeeba63=0x0;_0xeeba63<_0x199856[_0x5963d5]['markersStart']['length'];_0xeeba63++){const _0x2612fe=_0x199856[_0x5963d5]['markersStart'][_0xeeba63];if(!_0x46495f['has'](_0x2612fe))continue;const {group:_0xda2754,type:_0x5b9035,authorId:_0xada9bf}=_0x4443d5(_0x2612fe);'revision-suggestion'!=_0xda2754||'insertion'!=_0x5b9035&&'deletion'!=_0x5b9035||(_0x184f50['unshift']({'type':_0x5b9035,'name':_0x2612fe,'userId':_0xada9bf}),_0x199856[_0x5963d5]['markersStart']['splice'](_0xeeba63,0x1),_0xeeba63--);}_0x5c97f0(_0x199856[_0x5963d5]);for(let _0x48ad84=0x0;_0x48ad84<_0x199856[_0x5963d5]['markersEnd']['length'];_0x48ad84++){const _0x3fdab3=_0x199856[_0x5963d5]['markersEnd'][_0x48ad84];if(!_0x46495f['has'](_0x3fdab3))continue;const {group:_0x3e6a12,type:_0x362edd}=_0x4443d5(_0x3fdab3);if('revision-suggestion'!=_0x3e6a12||'insertion'!=_0x362edd&&'deletion'!=_0x362edd)continue;_0x199856[_0x5963d5]['markersEnd']['splice'](_0x48ad84,0x1),_0x48ad84--;const _0x1cc1ae=_0x184f50['findIndex'](_0x13d3ff=>_0x13d3ff['name']==_0x3fdab3);_0x1cc1ae>-0x1&&_0x184f50['splice'](_0x1cc1ae,0x1);}}function _0x4443d5(_0x5c6307){const _0xb78011=_0x5c6307['split'](':');return{'group':_0xb78011[0x0],'type':_0xb78011[0x1],'subType':_0xb78011['length']>=0x5?_0xb78011[0x2]:null,'id':_0xb78011['length']<0x5?_0xb78011[0x2]:_0xb78011[0x3],'authorId':_0xb78011['length']<0x5?_0xb78011[0x3]:_0xb78011[0x4],'markerCount':0x6==_0xb78011['length']?_0xb78011[0x5]:null};}function _0x5c97f0(_0x3db5c6){for(let _0x2803df=0x0;_0x2803df<_0x184f50['length'];_0x2803df++){if(_0x3db5c6['isAdded']&&'insertion'==_0x184f50[_0x2803df]['type'])return _0x3db5c6['isAddSuggestion']=_0x184f50[_0x2803df],void delete _0x3db5c6['isAdded'];if(!_0x3db5c6['isAdded']&&!_0x3db5c6['isRemoved']&&'deletion'==_0x184f50[_0x2803df]['type'])return void(_0x3db5c6['isRemoveSuggestion']=_0x184f50[_0x2803df]);}}}['_setDistance'](_0x4b391e,_0x268c8a){let _0x1a1d7f=0x0,_0x4fbe26=!0x1;const _0x180b98=new Map();for(const _0x5dedc5 of _0x4b391e)_0x5dedc5[_0x268c8a]?_0x4fbe26&&(_0x1a1d7f++,_0x4fbe26=!0x1):(_0x1a1d7f++,_0x4fbe26=!0x0),_0x180b98['set'](_0x5dedc5['id'],_0x1a1d7f);for(let _0x34d6ba=0x0;_0x34d6ba<_0x4b391e['length'];_0x34d6ba++){if('isRemoved'==_0x268c8a&&_0x4b391e[_0x34d6ba]['isAdded']||'isAdded'==_0x268c8a&&_0x4b391e[_0x34d6ba]['isRemoved'])continue;if('text'==_0x4b391e[_0x34d6ba]['type']){_0x4b391e[_0x34d6ba]['distance']=0x0;continue;}const _0x8ec09=_0x180b98['get'](_0x4b391e[_0x34d6ba]['pairId']),_0x2e5612=_0x180b98['get'](_0x4b391e[_0x34d6ba]['id']);_0x4b391e[_0x34d6ba]['distance']=_0x8ec09-_0x2e5612;}}['_getRevisionsRange'](_0x35dc11,_0x3a9041,_0x1bafcb=!0x1){const _0x26dcd6=[];let _0x5283ba=this['repository']['getIndex'](_0x35dc11),_0x16e9bd=this['repository']['getIndex'](_0x3a9041);for(-0x1==_0x16e9bd&&(_0x16e9bd=this['repository']['_revisions']['length'],_0x1bafcb=!0x1);_0x5283ba<_0x16e9bd;)_0x26dcd6['push'](this['repository']['getRevision'](_0x5283ba)),_0x5283ba++;return _0x1bafcb&&_0x26dcd6['push'](this['repository']['getRevision'](_0x5283ba)),_0x26dcd6;}['_threeWayMerge'](_0x360fa0,_0x3ce4b0,_0x17030f,_0x480e42){const _0x53ff97=this['editor']['model']['schema'];let _0x1397f5=_0x3ce4b0;for(;_0x360fa0[_0x1397f5]&&_0x360fa0[_0x1397f5]['isAdded'];)_0x1397f5++;let _0xf43d14=_0x480e42;for(;_0x17030f[_0xf43d14]&&_0x17030f[_0xf43d14]['isRemoved'];)_0xf43d14++;_0x5ad86a(_0x360fa0,_0x3ce4b0,_0x1397f5),_0x5ad86a(_0x17030f,_0x480e42,_0xf43d14);const _0x431eca=_0x17030f['slice'](_0x480e42,_0xf43d14)['concat'](_0x360fa0['slice'](_0x3ce4b0,_0x1397f5));return _0x431eca['sort']((_0x2f7e7a,_0x7ad385)=>_0x2f7e7a['side']!=_0x7ad385['side']?_0x2f7e7a['side']-_0x7ad385['side']:_0x2f7e7a['level']!=_0x7ad385['level']?_0x2f7e7a['level']-_0x7ad385['level']:_0x2f7e7a['distance']!=_0x7ad385['distance']?_0x7ad385['distance']-_0x2f7e7a['distance']:!!_0x2f7e7a['isAdded']!=!!_0x7ad385['isAdded']?-0x1==_0x2f7e7a['side']||0x0==_0x2f7e7a['side']?_0x2f7e7a['isAdded']?-0x1:0x1:_0x2f7e7a['isAdded']?0x1:-0x1:_0x2f7e7a['index']-_0x7ad385['index']),{'commonTape':_0x431eca,'iEnd':_0x1397f5,'jEnd':_0xf43d14};function _0x5ad86a(_0x1f6877,_0x26974f,_0x202a63){let _0x386af5=-0x1,_0x4009a3=Number['POSITIVE_INFINITY'],_0x349cad=!0x0;for(let _0x3fb5ad=_0x26974f;_0x3fb5ad<_0x202a63;_0x3fb5ad++)if(_0x53ff97['isInline'](_0x1f6877[_0x3fb5ad]['item'])||(_0x349cad=!0x1),_0x1f6877[_0x3fb5ad]['item']['startIndex']<_0x26974f&&(_0x386af5=_0x3fb5ad),_0x1f6877[_0x3fb5ad]['item']['endIndex']>=_0x202a63){_0x4009a3=_0x3fb5ad;break;}_0x349cad&&(_0x386af5=_0x202a63-0x1);for(let _0x59795f=_0x26974f;_0x59795f<_0x202a63;_0x59795f++)_0x1f6877[_0x59795f]['side']=_0x59795f<=_0x386af5?-0x1:_0x59795f<_0x4009a3?0x0:0x1,_0x1f6877[_0x59795f]['index']=_0x59795f;let _0x3268ce=0x0;for(let _0x18102d=_0x26974f;_0x18102d<=_0x386af5;_0x18102d++)0x0==_0x1f6877[_0x18102d]['distance']?_0x1f6877[_0x18102d]['level']=_0x3268ce:(_0x3268ce++,_0x1f6877[_0x18102d]['level']=_0x3268ce,_0x3268ce++);for(let _0x4cfad9=_0x26974f;_0x4cfad9<_0x202a63;_0x4cfad9++)0x0==_0x1f6877[_0x4cfad9]['side']&&(_0x1f6877[_0x4cfad9]['level']=_0x3268ce);_0x3268ce=0x0;for(let _0x54072d=_0x202a63-0x1;_0x54072d>=_0x4009a3;_0x54072d--)0x0==_0x1f6877[_0x54072d]['distance']?_0x1f6877[_0x54072d]['level']=_0x3268ce:(_0x3268ce--,_0x1f6877[_0x54072d]['level']=_0x3268ce,_0x3268ce--);}}['_fixObsoleteTags'](_0x327e82){const _0x1fc5e5=new Map(),_0x2015b0=this['editor']['model']['schema'];for(let _0x504d31=0x1;_0x504d31<_0x327e82['length'];_0x504d31++){let _0x48bb6c,_0x376bd2,_0x2c7c08;const _0x1c2790=_0x327e82[_0x504d31],_0xc2aa5a=_0x327e82[_0x504d31-0x1];if('text'==_0x1c2790['type'])continue;if(_0x1c2790['type']!=_0xc2aa5a['type'])continue;if(!_0x2015b0['isBlock'](_0xc2aa5a['item'])||_0x2015b0['isLimit'](_0xc2aa5a['item']))continue;if(!_0x2015b0['isBlock'](_0x1c2790['item'])||_0x2015b0['isLimit'](_0x1c2790['item']))continue;if((_0x327e82[_0x504d31]['isAdded']||_0x327e82[_0x504d31]['isAddSuggestion'])&&_0x327e82[_0x504d31-0x1]['isRemoved'])_0x48bb6c=_0x327e82[_0x504d31],_0x376bd2=_0x327e82[_0x504d31-0x1],_0x2c7c08=_0x504d31-0x1;else{if(!_0x327e82[_0x504d31]['isRemoved']||!_0x327e82[_0x504d31-0x1]['isAdded']&&!_0x327e82[_0x504d31-0x1]['isAddSuggestion'])continue;_0x48bb6c=_0x327e82[_0x504d31-0x1],_0x376bd2=_0x327e82[_0x504d31],_0x2c7c08=_0x504d31;}const _0x44d2ee=_0x48bb6c['level']==_0x376bd2['level'],_0x414c7f=Math['abs'](_0x48bb6c['level'])<Math['abs'](_0x376bd2['level'])&&0x0==_0x376bd2['distance'];(_0x44d2ee||_0x414c7f)&&(_0x1fc5e5['set'](_0x376bd2['id'],_0x48bb6c['id']),_0x327e82['splice'](_0x2c7c08,0x1),_0x504d31--,_0x48bb6c['isAdded']=!0x1);}for(let _0x4cdf60=0x0;_0x4cdf60<_0x327e82['length'];_0x4cdf60++)_0x1fc5e5['has'](_0x327e82[_0x4cdf60]['pairId'])&&(_0x327e82[_0x4cdf60]['pairId']=_0x1fc5e5['get'](_0x327e82[_0x4cdf60]['pairId']));}['_removeMissingPairs'](_0x40d81a){const _0xa6142a=new Set(_0x40d81a['map'](_0x195baf=>_0x195baf['id']));for(let _0xd4a674=0x0;_0xd4a674<_0x40d81a['length'];_0xd4a674++)_0xa6142a['has'](_0x40d81a[_0xd4a674]['pairId'])||0x0==_0x40d81a[_0xd4a674]['distance']||(_0x40d81a[_0xd4a674]['isIncorrect']=!0x0);return _0x40d81a['filter'](_0x3ec676=>!_0x3ec676['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5a1ac9){const _0x56f26a=new Set();for(let _0x375730=0x0;_0x375730<_0x5a1ac9['length'];_0x375730++){if(_0x56f26a['has'](_0x5a1ac9[_0x375730]['id'])&&_0x5a1ac9[_0x375730]['isRemoved']&&(_0x5a1ac9[_0x375730]['isIncorrect']=!0x0),_0x5a1ac9[_0x375730]['isIncorrect'])continue;if(0x0==_0x5a1ac9[_0x375730]['distance'])continue;if('elementStart'!=_0x5a1ac9[_0x375730]['type'])continue;if(null==_0x5a1ac9[_0x375730]['pairId'])continue;let _0x722804=_0x375730+0x1,_0x3cb2d3=0x0;for(;_0x5a1ac9[_0x722804]['id']!=_0x5a1ac9[_0x375730]['pairId'];)'elementStart'==_0x5a1ac9[_0x722804]['type']?_0x3cb2d3++:'elementEnd'==_0x5a1ac9[_0x722804]['type']&&_0x3cb2d3--,_0x722804++;if(0x0!=_0x3cb2d3){if(_0x5a1ac9[_0x375730]['isRemoved'])_0x5a1ac9[_0x375730]['isIncorrect']=!0x0;else{for(;_0x722804!=_0x375730;)_0x5a1ac9[_0x722804]['isRemoved']&&0x0!=_0x5a1ac9[_0x722804]['distance']&&(_0x5a1ac9[_0x722804]['isIncorrect']=!0x0,_0x56f26a['add'](_0x5a1ac9[_0x722804]['pairId'])),_0x722804--;}}}return _0x5a1ac9['filter'](_0x53cafb=>!_0x53cafb['isIncorrect']);}['_removeUnsupportedChanges'](_0x4f72fa){const _0x24651c=this['editor']['model']['schema'];for(let _0x395285=0x0;_0x395285<_0x4f72fa['length'];_0x395285++){if(!(_0x4f72fa[_0x395285]['isAdded']||_0x4f72fa[_0x395285]['isAddSuggestion']||_0x4f72fa[_0x395285]['isRemoved']||_0x4f72fa[_0x395285]['isRemoveSuggestion']))continue;if(0x0==_0x4f72fa[_0x395285]['distance'])continue;const _0x10633c=_0x4f72fa[_0x395285]['item'];_0x24651c['isBlock'](_0x10633c)||_0x24651c['isLimit'](_0x10633c)||(_0x4f72fa[_0x395285]['isAdded']&&delete _0x4f72fa[_0x395285]['isAdded'],_0x4f72fa[_0x395285]['isAddSuggestion']&&delete _0x4f72fa[_0x395285]['isAddSuggestion'],_0x4f72fa[_0x395285]['isRemoveSuggestion']&&delete _0x4f72fa[_0x395285]['isRemoveSuggestion'],_0x4f72fa[_0x395285]['isRemoved']&&(_0x4f72fa[_0x395285]['isIncorrect']=!0x0));}return _0x4f72fa['filter'](_0x21b33d=>!_0x21b33d['isIncorrect']);}['_makeModelFromTape'](_0x27247b,_0x2f7190,_0x48f4ad){const _0x2ba192=new wt(),_0x1d5a3d=[],_0x556beb=new Map(),_0x281c23=this['editor']['model'],_0x210a83=_0x281c23['schema'],_0x3228f9=[_0x2ba192],_0x4d266a={},_0x52e016={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3855cc=null;const _0x3e9d3b=[0x0];for(let _0x138f47=0x0;_0x138f47<_0x27247b['length'];_0x138f47++)if('elementStart'===_0x27247b[_0x138f47]['type']){_0x27247b[_0x138f47]['previousPosition']=_0x281c23['createPositionFromPath'](_0x2ba192,_0x3e9d3b);const _0x296d2b=new ft(_0x27247b[_0x138f47]['item']['name'],_0x27247b[_0x138f47]['item']['getAttributes']());_0x3228f9[0x0]['_appendChild'](_0x296d2b),_0x3e9d3b['push'](0x0),_0x3228f9['unshift'](_0x296d2b),_0x27247b[_0x138f47]['nextPosition']=_0x281c23['createPositionFromPath'](_0x2ba192,_0x3e9d3b);}else'elementEnd'===_0x27247b[_0x138f47]['type']?(_0x3228f9['shift'](),_0x27247b[_0x138f47]['previousPosition']=_0x281c23['createPositionFromPath'](_0x2ba192,_0x3e9d3b),_0x3e9d3b['pop'](),_0x3e9d3b[_0x3e9d3b['length']-0x1]++,_0x27247b[_0x138f47]['nextPosition']=_0x281c23['createPositionFromPath'](_0x2ba192,_0x3e9d3b)):(_0x27247b[_0x138f47]['previousPosition']=_0x281c23['createPositionFromPath'](_0x2ba192,_0x3e9d3b),_0x3855cc?_0x3855cc['_data']+=_0x27247b[_0x138f47]['item']['data']:_0x3855cc=new _t(_0x27247b[_0x138f47]['item']['data'],_0x27247b[_0x138f47]['item']['getAttributes']()),_0x27247b[_0x138f47+0x1]&&'text'===_0x27247b[_0x138f47+0x1]['type']&&_0x1991a5(_0x3855cc,_0x27247b[_0x138f47+0x1]['item'])||(_0x3228f9[0x0]['_appendChild'](_0x3855cc),_0x3855cc=null),_0x3e9d3b[_0x3e9d3b['length']-0x1]+=_0x27247b[_0x138f47]['item']['offsetSize'],_0x27247b[_0x138f47]['nextPosition']=_0x281c23['createPositionFromPath'](_0x2ba192,_0x3e9d3b));for(let _0x89ae87=0x0;_0x89ae87<_0x27247b['length'];_0x89ae87++){const _0x24007c=_0x27247b[_0x89ae87]['previousPosition'],_0x3ca876=_0x27247b[_0x89ae87]['nextPosition'];for(const _0x41cc23 of _0x27247b[_0x89ae87]['markersStart'])_0x556beb['set'](_0x41cc23,{'start':_0x24007c,'end':null});_0x4fc94f('isRemoveSuggestion',_0x89ae87,_0x24007c,_0x3ca876),_0x4fc94f('isAddSuggestion',_0x89ae87,_0x24007c,_0x3ca876),_0x4fc94f('isRemoved',_0x89ae87,_0x24007c,_0x3ca876),_0x4fc94f('isAdded',_0x89ae87,_0x24007c,_0x3ca876);for(const _0x1c5152 of _0x27247b[_0x89ae87]['markersEnd']){_0x556beb['get'](_0x1c5152)['end']=_0x3ca876;}}for(const [_0x5816b2,_0x285879]of _0x556beb){const _0x91041b=this['editor']['model']['createRange'](_0x285879['start'],_0x285879['end']);_0x2ba192['markers']['set'](_0x5816b2,_0x91041b);}return _0x1d5a3d['sort']((_0x3ad59c,_0x92c8cb)=>{const _0x36ac9e=_0x2ba192['markers']['get']('revision:'+_0x3ad59c['id']),_0x190d9d=_0x2ba192['markers']['get']('revision:'+_0x92c8cb['id']);return _0x36ac9e['start']['isBefore'](_0x190d9d['start'])?-0x1:_0x36ac9e['start']['isAfter'](_0x190d9d['start'])?0x1:_0x36ac9e['end']['isBefore'](_0x190d9d['end'])?-0x1:_0x36ac9e['end']['isAfter'](_0x190d9d['end'])?0x1:'add'===_0x3ad59c['type']?-0x1:0x1;}),{'root':_0x2ba192,'changes':_0x1d5a3d};function _0x4fc94f(_0x2263fe,_0x507f54,_0x18beef,_0x5824e8){const _0x5ad9f6=!!_0x27247b[_0x507f54][_0x2263fe],_0x2df191=_0x5ad9f6?_0x27247b[_0x507f54][_0x2263fe]['userId']:null,_0x381a5e=_0x507f54===_0x27247b['length']-0x1,_0x3eac0b=_0x52e016[_0x2263fe][0x0],_0x17113e=_0x210a83['isObject'](_0x27247b[_0x507f54]['item']);!_0x4d266a[_0x2263fe]&&_0x5ad9f6?_0x4d266a[_0x2263fe]={'start':_0x18beef,'tapeItem':_0x27247b[_0x507f54],'userId':_0x2df191,'type':_0x2263fe}:_0x4d266a[_0x2263fe]&&!_0x5ad9f6?(_0x4d266a[_0x2263fe]['end']=_0x18beef,_0x25c67d(_0x4d266a[_0x2263fe]),_0x4d266a[_0x2263fe]=null):_0x4d266a[_0x2263fe]&&_0x5ad9f6&&_0x4d266a[_0x2263fe]['userId']!==_0x2df191&&(_0x4d266a[_0x2263fe]['end']=_0x18beef,_0x3eac0b&&_0x3eac0b['userId']===_0x4d266a[_0x2263fe]['userId']||_0x25c67d(_0x4d266a[_0x2263fe]),_0x4d266a[_0x2263fe]={'start':_0x18beef,'tapeItem':_0x27247b[_0x507f54],'userId':_0x2df191,'type':_0x2263fe}),_0x4d266a[_0x2263fe]&&_0x17113e&&('elementStart'!==_0x27247b[_0x507f54]['type']||_0x3eac0b&&_0x3eac0b['userId']===_0x2df191||_0x52e016[_0x2263fe]['unshift']({'userId':_0x2df191,'object':_0x27247b[_0x507f54]['item'],'change':_0x4d266a[_0x2263fe]}),'elementEnd'===_0x27247b[_0x507f54]['type']&&_0x3eac0b&&_0x3eac0b['object']===_0x27247b[_0x507f54]['item']&&(_0x52e016[_0x2263fe]['shift'](),_0x4d266a[_0x2263fe]=_0x3eac0b['change'])),_0x4d266a[_0x2263fe]&&_0x381a5e&&(_0x4d266a[_0x2263fe]['end']=_0x5824e8,_0x25c67d(_0x4d266a[_0x2263fe]),_0x4d266a[_0x2263fe]=null);}function _0x25c67d({start:_0x27f393,end:_0x2de343,tapeItem:_0x29c081,userId:_0x161a61,type:_0x24abca}){const _0x54970d=_0x29c081['item'],_0x4be207=_0x281c23['schema']['isBlock'](_0x54970d)&&!_0x281c23['schema']['isLimit'](_0x54970d),_0x4c0140=_0x27f393['nodeAfter']==_0x2de343['parent']&&_0x2de343['isAtStart'];if(_0x4be207&&_0x4c0140)return;const _0x4bda6f=_0x281c23['createRange'](_0x27f393,_0x2de343),_0x21e92b=_0x2f7190['get'](_0x161a61),_0x455335=new r({'author':_0x21e92b,'type':'isAdded'==_0x24abca||'isAddSuggestion'==_0x24abca?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x24abca||'isRemoveSuggestion'==_0x24abca},'createdAt':new Date(),'rootName':_0x48f4ad});_0x1d5a3d['push'](_0x455335),_0x2ba192['markers']['set']('revision:'+_0x455335['id'],_0x4bda6f);}function _0x1991a5(_0x3273e6,_0x4e082a){const _0x1206a3=_0x3273e6['getAttributes'](),_0xcd1262=_0x4e082a['getAttributes']();for(const _0x4ed711 of _0x1206a3){if(_0x4ed711[0x1]!==_0x4e082a['getAttribute'](_0x4ed711[0x0]))return!0x1;_0xcd1262['next']();}return _0xcd1262['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x29d9ea=>{const _0x4a1884=_0x29d9ea['markerName']['split'](':')[0x1],_0x29a04f=this['_getChangeFromId'](_0x4a1884);if(!_0x29a04f)return null;const _0x4f8a9c='add'==_0x29a04f['type']?'insertion':'deletion',_0x26b337=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4f8a9c];return _0x29a04f['data']['isSuggestion']&&_0x26b337['push']('ck-suggestion-marker-'+_0x4f8a9c+'-new'),this['activeChange']==_0x29a04f&&_0x26b337['push']('ck-suggestion-marker--active'),{'classes':_0x26b337,'attributes':{'data-change-id':_0x4a1884}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1266d7=>{_0x1266d7['on']('element:pre',(_0x55a486,_0x1988ba,_0x165618)=>{const _0x10d7ea=_0x1988ba['viewItem']['getChild'](0x0);if(!_0x10d7ea||!_0x10d7ea['is']('element','code'))return;if(!_0x165618['consumable']['consume'](_0x10d7ea,{'attributes':['vid_start','vid_end']}))return;const _0x33d220=_0x1988ba['modelRange']['start']['nodeAfter'];_0x165618['writer']['setAttribute']('vid_start',_0x10d7ea['getAttribute']('vid_start'),_0x33d220),_0x165618['writer']['setAttribute']('vid_end',_0x10d7ea['getAttribute']('vid_end'),_0x33d220);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x805497=>{_0x805497['on']('element',(_0x8ffa8e,_0x5eda00,_0x2de492)=>{if(!_0x2de492['consumable']['consume'](_0x5eda00['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5eda00['modelRange']['isCollapsed'])return;const _0x39344b=_0x5eda00['modelRange']['start']['nodeAfter'];_0x39344b['hasAttribute']('vid_start')||_0x39344b['hasAttribute']('vid')||(_0x2de492['writer']['setAttribute']('vid_start',_0x5eda00['viewItem']['getAttribute']('vid_start'),_0x39344b),_0x2de492['writer']['setAttribute']('vid_end',_0x5eda00['viewItem']['getAttribute']('vid_end'),_0x39344b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x25ef6e=>_0x25ef6e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x567a19,[,_0x289055])=>{['vid_start','vid_end','vid']['includes'](_0x289055)&&(_0x567a19['return']=!0x0,_0x567a19['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x44ffc6=>{_0x44ffc6['on']('attribute:vid',(_0xa0b420,_0xadb45f,_0x12167d)=>{if('\x20'!=_0xadb45f['item']['data']||_0xadb45f['item']['parent']['maxOffset']>0x1)return;if(!_0x12167d['consumable']['consume'](_0xadb45f['item'],_0xa0b420['name']))return;const _0xd763ea=_0x12167d['writer'],_0x23a4bc=_0x12167d['mapper']['toViewRange'](_0xadb45f['range']);_0xd763ea['wrap'](_0x23a4bc,_0xd763ea['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x139a78){const _0x4c03f3=_0x139a78['plugins']['get']('RevisionViewer');return(_0x43f841,_0x3f58ff,_0x1d5003)=>{const _0x3e1c6a=_0x3f58ff['markerName']['split'](':')[0x1],_0x171cfc=_0x4c03f3['_getChangeFromId'](_0x3e1c6a);if(!_0x171cfc)return null;const _0x4f8829='add'==_0x171cfc['type']?'split':'merge';if(!_0x1d5003['consumable']['test'](_0x3f58ff['markerRange'],_0x43f841['name']))return;const _0x45e03f=_0x3f58ff['markerRange']['getWalker'](),_0x14d452=_0x3f58ff['markerRange']['start'],_0x41361e=_0x139a78['model']['schema'];let _0x353595=null,_0x2c010a=null,_0x4fbf99=!0x1,_0x3d0a26=!0x1;for(const _0x1f316e of _0x45e03f){const _0x209a8b=_0x1f316e['item'];_0x4fbf99=_0x4fbf99||_0x41361e['isContent'](_0x209a8b);const _0x4605e7=_0x1d5003['mapper']['toViewElement'](_0x209a8b);if(_0x4605e7&&_0x4605e7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f316e['type']&&(_0x41361e['isBlock'](_0x209a8b)&&!_0x41361e['isLimit'](_0x209a8b)&&(_0x209a8b['nextSibling']||_0x14d452['isAtEnd']?_0x353595&&_0x353595['parent']==_0x209a8b||(_0x353595=_0x209a8b,_0x4b65bd(_0x1f316e['previousPosition']),_0x3d0a26=!0x0):_0x2c010a=_0x2c010a||_0x1f316e['previousPosition']));}function _0x4b65bd(_0x1f2dda){const _0x570158=_0x1d5003['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f8829}),_0x4250fa=_0x1d5003['mapper']['toViewPosition'](_0x1f2dda);_0x171cfc['data']['isSuggestion']&&_0x1d5003['writer']['addClass']('ck-suggestion-marker-'+_0x4f8829+'-new',_0x570158),_0x4c03f3['activeChange']==_0x171cfc&&_0x1d5003['writer']['addClass']('ck-suggestion-marker--active',_0x570158),_0x1d5003['writer']['insert'](_0x4250fa,_0x570158),_0x1d5003['mapper']['bindElementToMarker'](_0x570158,_0x3f58ff['markerName']);}_0x4fbf99||_0x3d0a26||!_0x2c010a||_0x4b65bd(_0x2c010a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x53b579,_0x597063,_0x1d1a76)=>{const _0x35696a=_0x1d1a76['mapper']['markerNameToElements'](_0x597063['markerName']);if(_0x35696a){for(const _0x2e9947 of _0x35696a)(_0x2e9947['hasClass']('ck-suggestion-marker-split')||_0x2e9947['hasClass']('ck-suggestion-marker-merge'))&&(_0x1d1a76['mapper']['unbindElementFromMarkerName'](_0x2e9947,_0x597063['markerName']),_0x1d1a76['writer']['remove'](_0x2e9947));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x45b238,_0x37dcb1,_0x52f873)=>{const _0x3bd383=_0x37dcb1['markerName']['split'](':')[0x1],_0x5d1fa7=this['_getChangeFromId'](_0x3bd383);if(!_0x5d1fa7)return null;const _0xbc86b1='add'==_0x5d1fa7['type']?'split':'merge';if(_0x52f873['consumable']['test'](_0x37dcb1['markerRange'],_0x45b238['name']))for(const _0x4e0e85 of _0x37dcb1['markerRange']['getItems']()){if(!_0x4e0e85['is']('element','softBreak'))continue;const _0x2ae650=_0x52f873['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbc86b1}),_0x39f7df=_0x52f873['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4e0e85));_0x5d1fa7['data']['isSuggestion']&&_0x52f873['writer']['addClass']('ck-suggestion-marker-'+_0xbc86b1+'-new',_0x2ae650),this['activeChange']==_0x5d1fa7&&_0x52f873['writer']['addClass']('ck-suggestion-marker--active',_0x2ae650),_0x52f873['writer']['insert'](_0x39f7df,_0x2ae650),_0x52f873['mapper']['bindElementToMarker'](_0x2ae650,_0x37dcb1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1410c7=>{for(const _0x466724 of this['editor']['model']['document']['getRootNames']()){const _0x268069=this['editor']['model']['document']['getRoot'](_0x466724),_0x2d5c89=this['editor']['editing']['view']['document']['getRoot'](_0x466724);if(_0x2d5c89){const _0x541935=_0x268069['getAttribute']('revisionHistoryAttachChange');if(_0x1410c7['removeAttribute']('data-change-id',_0x2d5c89),_0x1410c7['removeClass']('ck-revision-history-root-add',_0x2d5c89),_0x1410c7['removeClass']('ck-revision-history-root-remove',_0x2d5c89),_0x1410c7['removeClass']('ck-revision-history-root--active',_0x2d5c89),_0x541935){const _0x5cb774=this['_getChangeFromId'](_0x541935);if(!_0x5cb774)return null;_0x1410c7['setAttribute']('data-change-id',_0x541935,_0x2d5c89),_0x1410c7['addClass']('ck-revision-history-root-'+_0x5cb774['type'],_0x2d5c89),this['activeChange']==_0x5cb774&&_0x1410c7['addClass']('ck-revision-history-root--active',_0x2d5c89);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5a4095=>'revision-comment:'+_0x5a4095,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1f3f67=>'revision-suggestion:'+_0x1f3f67,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2ab006=>({'name':'suggestion:'+_0x2ab006,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3eb274=>{const _0x1880d4=_0x3eb274['markerName']['split'](':')[0x1];return'insertion'!=_0x1880d4&&'deletion'!=_0x1880d4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1880d4]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x25bfd6,_0x5d6b98,_0x363e2e)=>{const _0x3b8a6a=_0x363e2e['mapper']['markerNameToElements'](_0x5d6b98['markerName']);if(_0x3b8a6a){for(const _0x569006 of _0x3b8a6a)_0x569006['is']('uiElement')&&(_0x363e2e['mapper']['unbindElementFromMarkerName'](_0x569006,_0x5d6b98['markerName']),_0x363e2e['writer']['remove'](_0x569006));}},{'priority':'high'});}['_getChangeFromId'](_0x559e4b){return this['_changeIdToChange']['get'](_0x559e4b);}['_getViewForChange'](_0x159542){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x159542),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2100a4,_0x6f2ba0,_0x233b84,_0x5752bf)=>{_0x5752bf&&this['_balloon']['remove'](_0x5752bf),_0x233b84&&(this['_balloon']['add']({'view':_0x233b84,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x157347=this['editor']['editing'],_0x57e9f0=this['_getChangeFromId'](_0x233b84['changeId']);let _0x4522f6;if(_0x57e9f0['data']['isOnRoot']){const _0x1f9cdc=_0x157347['view']['getDomRoot'](_0x57e9f0['rootName']);_0x4522f6=Array['from'](_0x1f9cdc['getClientRects']());}else{const _0x57906a=this['editor']['model']['markers']['get']('revision:'+_0x233b84['changeId']);_0x4522f6=Array['from'](_0x157347['mapper']['markerNameToElements'](_0x57906a['name']))['map'](_0x41579b=>_0x157347['view']['domConverter']['mapViewToDom'](_0x41579b))['map'](_0x507235=>Array['from'](_0x507235['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4522f6[0x0];return _0x4522f6['find'](_0x351816=>_0x351816['top']-0x3<=this['_activeViewTarget']['y']&&_0x351816['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x351816['left']-0x3<=this['_activeViewTarget']['x']&&_0x351816['right']+0x3>=this['_activeViewTarget']['x'])||_0x4522f6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3eebbc,_0x1f4371,_0x5c1d51,_0x426e98)=>{this['activeView']=_0x5c1d51?this['_getViewForChange'](_0x5c1d51):null,this['editor']['model']['change'](()=>{const _0x9e7618=this['editor']['editing'];_0x426e98&&(_0x426e98['data']['isOnRoot']?_0x9e7618['view']['change'](_0x116b46=>{_0x116b46['removeClass']('ck-revision-history-root--active',_0x9e7618['view']['document']['getRoot'](_0x426e98['rootName']));}):_0x9e7618['reconvertMarker']('revision:'+_0x426e98['id'])),_0x5c1d51&&(_0x5c1d51['data']['isOnRoot']?_0x9e7618['view']['change'](_0x445e60=>{_0x445e60['addClass']('ck-revision-history-root--active',_0x9e7618['view']['document']['getRoot'](_0x5c1d51['rootName']));}):_0x9e7618['reconvertMarker']('revision:'+_0x5c1d51['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x371b4b,_0x37e3df)=>{if(this['activeChange'])return;const _0x410b4b=this['_findChangeIdFromDomTarget'](_0x37e3df['target']),_0x83e6c6=this['_changeIdToChange']['get'](_0x410b4b);_0x83e6c6?(this['_activeViewTarget']={'x':_0x37e3df['domEvent']['x'],'y':_0x37e3df['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x83e6c6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x20245b,_0x3432a0)=>{const _0x3a4ae1=this['_findChangeIdFromDomTarget'](_0x3432a0['target']),_0x3dcece=this['_changeIdToChange']['get'](_0x3a4ae1);_0x3dcece?(this['_activeViewTarget']={'x':_0x3432a0['domEvent']['x'],'y':_0x3432a0['domEvent']['y']},_0x3dcece===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3dcece):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1a561d){do{const _0x425c7d=_0x1a561d['getAttribute']('data-change-id');if(_0x425c7d)return _0x425c7d;_0x1a561d=_0x1a561d['parent'];}while(_0x1a561d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x309406=>{for(const _0x2a4f1d of this['editor']['model']['markers'])_0x309406['removeMarker'](_0x2a4f1d);});}}function tt(_0x2cea32,_0x209700){return(_0x319aae,_0x4c08bd,_0x2f73e4)=>{if(!_0x2f73e4['consumable']['test'](_0x4c08bd['markerRange'],_0x319aae['name']))return;const _0x13770c=_0x4c08bd['markerRange']['getWalker'](),_0x234e94=_0x4c08bd['markerRange']['start'],_0x2dd71d=_0x2cea32['model']['schema'];let _0x2d9b8f=null,_0x5abc21=null,_0x5ce207=!0x1,_0x432afa=!0x1;for(const _0x37d5a6 of _0x13770c){const _0x1e0486=_0x37d5a6['item'];_0x5ce207=_0x5ce207||_0x2dd71d['isContent'](_0x1e0486);const _0x19a292=_0x2f73e4['mapper']['toViewElement'](_0x1e0486);if(_0x19a292&&_0x19a292['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x37d5a6['type']&&(_0x2dd71d['isBlock'](_0x1e0486)&&!_0x2dd71d['isLimit'](_0x1e0486)&&(_0x1e0486['nextSibling']||_0x234e94['isAtEnd']?_0x2d9b8f&&_0x2d9b8f['parent']==_0x1e0486||(_0x2d9b8f=_0x1e0486,_0xd27c26(_0x37d5a6['previousPosition']),_0x432afa=!0x0):_0x5abc21=_0x5abc21||_0x37d5a6['previousPosition']));}function _0xd27c26(_0x41b7ec){const _0x4043f1=_0x2f73e4['mapper']['toViewPosition'](_0x41b7ec),_0x180409=_0x2f73e4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x209700});_0x2f73e4['writer']['insert'](_0x4043f1,_0x180409),_0x2f73e4['mapper']['bindElementToMarker'](_0x180409,_0x4c08bd['markerName']);}_0x5ce207||_0x432afa||!_0x5abc21||_0xd27c26(_0x5abc21);};}class yt extends _0xc571b{constructor(_0x55c2a0){super(_0x55c2a0);const _0x312de5=_0x55c2a0['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x312de5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x312de5,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x340e9b=this['editor'],_0x3a87b7=_0x340e9b['plugins']['get'](d),_0x55f3b8=_0x3a87b7['isReady']?_0x3a87b7['diff']['newRevisionId']:null;_0x340e9b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x55f3b8);}['refresh'](){const {isReady:_0x28e3c8,isEnabled:_0x2baf0d}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x28e3c8&&_0x2baf0d;}}class bt extends _0xc571b{['_step'];constructor(_0x38d02b,{direction:_0x273538}){super(_0x38d02b);const _0x44e87d=_0x38d02b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x273538?0x1:-0x1,this['listenTo'](_0x44e87d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x44e87d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x44e87d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x9df2ff=this['editor'],_0x1abad4=_0x9df2ff['plugins']['get'](d),{isNavigationMode:_0x29f922,currentChangeNumber:_0x1d9673}=_0x1abad4;let _0x4db1dc;if(_0x1abad4['activeChange']=_0x29f922?_0x1abad4['diff']['changes']['get'](_0x1d9673+this['_step']):_0x1abad4['diff']['changes']['first'],_0x1abad4['activeChange']['data']['isOnRoot'])_0x4db1dc=_0x9df2ff['editing']['view']['getDomRoot'](_0x1abad4['activeChange']['rootName']);else{const _0x49655a=_0x9df2ff['model']['markers']['get']('revision:'+_0x1abad4['activeChange']['id']);_0x4db1dc=_0x2d5c92(_0x9df2ff['editing'],_0x49655a);}_0x577373({'target':_0x4db1dc,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4d46f1,currentChangeNumber:_0x3d5515,numberOfChanges:_0x5270b9,isReady:_0x418478,isEnabled:_0x22801a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x22801a&&_0x418478&&_0x5270b9)&&(!_0x4d46f1||(0x1===this['_step']?_0x3d5515<_0x5270b9-0x1:_0x3d5515>0x0));}}class ai extends at{constructor(_0x4c0bdd){super(_0x4c0bdd);const _0x32399f=this['bindTemplate'],_0x290d9d=new _0x1b818d(_0x4c0bdd),_0x3bedd0=new _0x1b818d(_0x4c0bdd);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',(_0x3c28f7,_0x1e8222)=>_0x3c28f7&&_0x1e8222>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x52e27c,_0x22b471,_0x5287de,_0x1ccc26)=>{if(!_0x52e27c)return R(_0x4c0bdd,'Loading...');if(!_0x5287de)return R(_0x4c0bdd,'No\x20changes');const _0xb8530e=R(_0x4c0bdd,'NUMBER_OF_CHANGES',_0x5287de);return _0x1ccc26?R(_0x4c0bdd,'X_OF_Y_CHANGES',[_0x22b471+0x1,_0x5287de]):_0xb8530e;}),_0x290d9d['set']({'label':R(_0x4c0bdd,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x3bedd0['set']({'label':R(_0x4c0bdd,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x290d9d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3bedd0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x290d9d['on']('execute',()=>this['fire']('execute','backward')),_0x3bedd0['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',_0x32399f['if']('_isStatusLabelVisible','ck-hidden',_0x325200=>!_0x325200)]},'children':[{'text':_0x32399f['to']('isNavigationMode',_0x499088=>_0x499088?R(_0x4c0bdd,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4c0bdd,'Total')+':\x20')}]},{'text':_0x32399f['to']('_statusText')}]},new ti(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x290d9d,_0x3bedd0]}]});}}const ee='ck-editor__editable__loading-overlay';class ie extends _0x5ea060{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1493ae=this['editor']['editing']['view'];_0x1493ae['change'](_0x130d89=>{for(const _0x3d55b8 of _0x1493ae['document']['roots'])_0x130d89['addClass'](ee,_0x3d55b8);});}['hide'](){const _0x3bd510=this['editor']['editing']['view'];_0x3bd510['change'](_0x1cbcc8=>{for(const _0x21965c of _0x3bd510['document']['roots'])_0x1cbcc8['removeClass'](ee,_0x21965c);});}}class m extends _0x5ea060{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ie];}['init'](){const _0x2b4be4=this['editor'],_0x186057=_0x2b4be4['plugins']['get'](d),_0x304be2=_0x2b4be4['plugins']['get'](ie);_0x2b4be4['ui']['componentFactory']['add']('exitToEditing',_0x2ea594=>{const _0x4f3a94=new _0x1b818d(_0x2ea594);return _0x4f3a94['set']({'label':R(_0x2ea594,'Back\x20to\x20editing'),'icon':te['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4f3a94,'execute',()=>{_0x2b4be4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4f3a94;}),_0x2b4be4['ui']['componentFactory']['add']('restoreRevision',_0x10f934=>{const _0x5dfbc0=new _0x1b818d(_0x10f934);return _0x5dfbc0['set']({'label':R(_0x10f934,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5dfbc0['bind']('isEnabled')['to'](_0x2b4be4['commands']['get']('restoreRevision')),this['listenTo'](_0x5dfbc0,'execute',()=>_0x2b4be4['execute']('restoreRevision')),_0x5dfbc0;}),_0x2b4be4['ui']['componentFactory']['add']('changesNavigation',_0x194c6a=>{const _0x695b90=new ai(_0x194c6a),_0x1456a9=_0x2b4be4['commands']['get']('showPreviousChange'),_0x42bc78=_0x2b4be4['commands']['get']('showNextChange');return _0x695b90['bind']('isBackwardNavigationEnabled')['to'](_0x1456a9,'isEnabled'),_0x695b90['bind']('isForwardNavigationEnabled')['to'](_0x42bc78,'isEnabled'),_0x695b90['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x186057),this['listenTo'](_0x695b90,'execute',(_0x2c1313,_0x2c8b60)=>{_0x2b4be4['execute']('forward'===_0x2c8b60?'showNextChange':'showPreviousChange');}),_0x695b90;}),_0x304be2['show'](),_0x186057['on']('change:isReady',(_0xd3c6fc,_0x348ed3,_0xf9c724)=>{_0xf9c724?_0x304be2['hide']():_0x304be2['show']();});}}class mt extends ts{['_resizeObserver']=null;constructor(_0x7e3876,_0x103692){super(_0x7e3876,_0x103692);const _0x5a1856=this['bindTemplate'];this['set']({'label':R(_0x7e3876,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x7e3876,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5a1856['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x504715=this['fieldView']['element'];this['_tooltipString']=_0x504715['scrollWidth']>_0x504715['clientWidth']&&_0x504715['value']||'';}}class ui extends at{constructor(_0x131624,_0x6a3161,_0x409af0){super(_0x131624);const _0x9b4044=new _0x4c16f6();_0x9b4044['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x5a6c17=['ck','ck-revision-history-sidebar__revision-author'];_0x409af0&&_0x5a6c17['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1b3383=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x131624,_0x409af0?'Revision\x20creator':'Revision\x20author')},'children':[_0x9b4044,_0x6a3161['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5a6c17},'children':_0x1b3383});}}function _i(_0x33748d,_0x4d98fe){const _0x4ceebb=_0x33748d['bindTemplate'],_0x4b9bb3=_0x33748d['locale'],_0x38b23b=_0x1b77bf(_0x4b9bb3);_0x38b23b['panelPosition']='sw';const _0x2f2b96=function(_0x12fdab,_0x3fb169){const _0x103d0f=function(_0x4c9c24,_0x53d434){const _0xce46e9=_0x4c9c24['locale'],_0x5de227={'Compare\x20against\x20selected':R(_0xce46e9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0xce46e9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0xce46e9,'Restore\x20this\x20revision')};return _0x53d434['map'](_0x43c61c=>{const _0x3eaa5d=_0x5de227[_0x43c61c['name']];return _0x3eaa5d&&_0x3eaa5d!==_0x43c61c['name']&&(_0x43c61c['name']=_0x3eaa5d),_0x43c61c;});}(_0x12fdab,_0x3fb169),_0x582bdf=new _0x5bd33b();for(const _0x19e54d of _0x103d0f){const _0x3e0e72={'type':'button','model':new _0x386715({'label':_0x19e54d['name'],'class':_0x19e54d['class'],'withText':!0x0,'role':'menuitem','_action':_0x19e54d['action']})};_0x3e0e72['model']['bind']('isEnabled')['to'](_0x12fdab,'isActionsDropdownOpen',_0x16f255=>'function'!=typeof _0x19e54d['isEnabled']||(!_0x16f255||_0x19e54d['isEnabled'](_0x12fdab))),_0x582bdf['add'](_0x3e0e72);}return _0x582bdf;}(_0x33748d,_0x4d98fe);return _0x33748d['bind']('isActionsDropdownOpen')['to'](_0x38b23b,'isOpen'),_0x38b23b['buttonView']['set']({'label':R(_0x4b9bb3,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':te['threeVerticalDots']}),_0x38b23b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4ceebb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4ceebb['to'](_0x31c491=>_0x31c491['stopPropagation']())}}),_0x38b23b['on']('execute',_0x3a0977=>{_0x33748d['isReady']&&'function'==typeof _0x3a0977['source']['_action']&&_0x3a0977['source']['_action'](_0x33748d);}),to(_0x38b23b,_0x2f2b96,{'role':'menu'}),_0x38b23b['listenTo'](_0x33748d,'change:isActionsDropdownOpen',(_0x400a94,_0x25801a,_0x41df65)=>{if(_0x41df65)for(const _0x1e1b66 of _0x38b23b['listView']['items']){const _0x18c282=_0x1e1b66['children']['first'],_0xabe6fb=_0x4d98fe['find'](_0x11e396=>_0x11e396['action']===_0x18c282['_action'])['isVisible'];_0x1e1b66['isVisible']=void 0x0===_0xabe6fb||_0xabe6fb(_0x33748d);}}),_0x38b23b;}class ri extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x429bfb,uid as _0x4fb206,Collection as _0x35ddfb,logWarning as _0x3c206e,FocusTracker as _0x4d1095,KeystrokeHandler as _0xd9c6cc,scrollViewportToShowTarget as _0x19448f,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x29c262}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2fd224,set as _0x5a199f,unset as _0x15498d,isEqual as _0x53d9b6}from'lodash-es';import{Plugin as _0x5025c2,PendingActions as _0x5a095e,icons as _0x75562c,Command as _0x3d421b,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x537e60,getMarkerDomElement as _0x240b25,ConfirmMixin as ti,sanitizeEditorConfig as _0x5e210e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x14c48c,ViewText as _0x4dec75,ViewElement as _0x195c96,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x27273a,ViewAttributeElement as _0x18f5a0,ViewEmptyElement as _0x36684c,ViewRawElement as _0x16c422,ViewUIElement as _0x5f2150,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x25f3d0,submitHandler as _0x1faf24,LabeledFieldView as _0x30bc25,createLabeledInputText as _0x41e485,createDropdown as _0x2abbe3,ListView as _0x1744fc,ListItemView as _0x1bf823,ButtonView as te,MenuBarMenuView as _0x50599e,MenuBarMenuListView as _0x3c8172,MenuBarMenuListItemView as _0x172e45,MenuBarMenuListItemButtonView as _0x5900b2,ContextualBalloon as _0x4ab179,ToolbarSeparatorView as _0x280233,IconView as _0x5bb643,addListToDropdown as to,ViewModel as _0x4c16ca,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2feaf2}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x429bfb(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x488089){super(),this['id']=_0x488089['id']||_0x4fb206(),this['creator']=_0x488089['creator']||null,this['authors']=_0x488089['authors']||[],this['diffData']=_0x488089['diffData']||null,this['toVersion']=_0x488089['toVersion']||0x0,this['fromVersion']=_0x488089['fromVersion']||0x0,this['set']('name',_0x488089['name']||''),this['set']('createdAt',_0x488089['createdAt']||new Date()),this['set']('attributes',_0x488089['attributes']||{});}['setName'](_0x2d6b84){this['_update']({'name':_0x2d6b84});}['setAttribute'](_0x3fbe8a,_0x388fa6){const _0x3ef9dc=_0x2fd224(this['attributes']);_0x5a199f(_0x3ef9dc,_0x3fbe8a,_0x388fa6),this['_update']({'attributes':_0x3ef9dc});}['removeAttribute'](_0x134170){const _0x145d43=_0x2fd224(this['attributes']);_0x15498d(_0x145d43,_0x134170),this['_update']({'attributes':_0x145d43});}['_update'](_0x134bc5,_0x2f774e=!0x1){let _0x402d37=!0x1;const _0x5fbe79={'id':this['id']},_0x4e9557=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4e4f40 of _0x4e9557){const _0x160daf=_0x134bc5[_0x4e4f40];void 0x0!==_0x160daf&&_0x160daf!==this[_0x4e4f40]&&(this[_0x4e4f40]=_0x160daf,_0x5fbe79[_0x4e4f40]=_0x160daf,_0x402d37=!0x0);}_0x402d37&&(_0x5fbe79['authors']&&(_0x5fbe79['authorsIds']=_0x5fbe79['authors']['map'](_0x5e1761=>_0x5e1761['id']),delete _0x5fbe79['authors']),this['fire']('_update',_0x5fbe79,_0x2f774e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x34fc2f=>_0x34fc2f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5025c2{['_revisions'];static get['requires'](){return[_0x537e60];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x636036){super(_0x636036),this['_revisions']=new _0x35ddfb();}['afterInit'](){!async function(_0xda90df){const _0x50c4e0=_0x39f8a2([0x70,0x51,0x55,0x6e,0x44,0x66,0x34,0x4c,0x30,0x65,0x7a,0x53,0x5a,0x74,0x76,0x47,0x36,0x79,0x35,0x32,0x69,0x78,0x52,0x62,0x56,0x58,0x68,0x33,0x6d,0x6a,0x31,0x45,0x4d,0x50,0x4b,0x49,0x77,0x73,0x48,0x61,0x72,0x4a,0x41,0x64,0x46,0x57,0x6c,0x75,0x39,0x59,0x71,0x67,0x6f,0x54,0x37,0x63,0x6b,0x4e,0x42,0x38,0x4f,0x43]),_0x4c2ccf=0xeb829,_0x5c1f03=0x57872304,_0x5897ec=0x57807a4c^_0x5c1f03,_0x5c3df7=window[_0x39f8a2([0x44,0x61,0x74,0x65])][_0x39f8a2([0x6e,0x6f,0x77])](),_0x578d37=_0xda90df[_0x39f8a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d432b=new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ebff0=>{_0x578d37[_0x39f8a2([0x6f,0x6e,0x63,0x65])](_0x39f8a2([0x72,0x65,0x61,0x64,0x79]),_0x4ebff0);}),_0x4f77ae={[_0x39f8a2([0x6b,0x74,0x79])]:_0x39f8a2([0x45,0x43]),[_0x39f8a2([0x75,0x73,0x65])]:_0x39f8a2([0x73,0x69,0x67]),[_0x39f8a2([0x63,0x72,0x76])]:_0x39f8a2([0x50,0x2d,0x32,0x35,0x36]),[_0x39f8a2([0x78])]:_0x39f8a2([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]),[_0x39f8a2([0x79])]:_0x39f8a2([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]),[_0x39f8a2([0x61,0x6c,0x67])]:_0x39f8a2([0x45,0x53,0x32,0x35,0x36])},_0x517a13=_0x578d37[_0x39f8a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39f8a2([0x67,0x65,0x74])](_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23b9a5(){let _0xa29264,_0x59ba93=null,_0x8a328f=null;try{if(_0x517a13==_0x39f8a2([0x47,0x50,0x4c]))return _0x39f8a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa29264=_0x20bfb7(),!_0xa29264)return _0x39f8a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa29264[_0x39f8a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8a328f=_0x55692e(_0xa29264[_0x39f8a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa29264[_0x39f8a2([0x6a,0x74,0x69])])),await _0x50c630()?_0x57c6c2()?_0x209239()?_0x39f8a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41f96f()?(_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f8a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59ba93=_0x32c309(_0x39f8a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f8a2([0x74,0x72,0x69,0x61,0x6c])&&(_0x59ba93=_0x32c309(_0x39f8a2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f8a2([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x59ba93=_0x32c309(_0x39f8a2([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59ef58()):_0x39f8a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39f8a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39f8a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x789968){return _0x39f8a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x209239(){const _0x5688fe=[_0x39f8a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39f8a2([0x74,0x72,0x69,0x61,0x6c])][_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c3df7/0x3e8:0xe10*_0x5897ec;return _0xa29264[_0x39f8a2([0x65,0x78,0x70])]<_0x5688fe;}function _0x57c6c2(){const _0x55f65b=_0xa29264[_0x39f8a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x55f65b)return!0x1;if(_0x55f65b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x2a])))return!0x0;if(_0x55f65b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x52,0x48])))return!0x0;if(_0x55f65b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x52,0x52,0x48]))){if(_0x4380d4())return!0x0;if(_0x10eef0()||_0x48132f())return!0x0;}return!0x1;}function _0x41f96f(){const _0xee186b=_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xee186b||0x0==_0xee186b[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31af79}=new URL(window[_0x39f8a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xee186b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31af79))return!0x0;const _0x2d656f=_0x31af79[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e]));return _0xee186b[_0x39f8a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x442b29=>_0x442b29[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x2a])))[_0x39f8a2([0x6d,0x61,0x70])](_0x1997cf=>_0x1997cf[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e])))[_0x39f8a2([0x73,0x6f,0x6d,0x65])](_0x2a4f0f=>_0x2d656f[_0x39f8a2([0x65,0x76,0x65,0x72,0x79])]((_0x1fe04b,_0x4ce824)=>_0x2a4f0f[_0x4ce824]===_0x1fe04b||_0x2a4f0f[_0x4ce824]===_0x39f8a2([0x2a])));}function _0x59ef58(){return _0x59ba93&&_0x8a328f?new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47d147,_0x44f91a)=>{_0x59ba93[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x47d147,_0x44f91a),_0x8a328f[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x349a05=>{_0x349a05!=_0x39f8a2([0x56,0x61,0x6c,0x69,0x64])&&_0x47d147(_0x349a05);},_0x44f91a);}):_0x59ba93||_0x8a328f||_0x39f8a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55692e(_0x42ef2a,_0x4d9843){return new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad95e=>{if(_0x45c7ea())return _0x3ad95e(_0x39f8a2([0x56,0x61,0x6c,0x69,0x64]));_0x189f0f(),_0x578d37[_0x39f8a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39f8a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x101275=!0x1;const _0x496465=_0x4fb206();function _0x3ddf33(_0x1aa6f4){return!!_0x1aa6f4&&(typeof _0x1aa6f4===_0x39f8a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1aa6f4===_0x39f8a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1aa6f4[_0x39f8a2([0x74,0x68,0x65,0x6e])]===_0x39f8a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1aa6f4[_0x39f8a2([0x63,0x61,0x74,0x63,0x68])]===_0x39f8a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f8c1e(_0x28471c){_0x30133b(_0x28471c)[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x31e207=>{if(!_0x31e207||_0x31e207[_0x39f8a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39f8a2([0x6f,0x6b]))return _0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2504c3(_0x480eb6(_0x496465+_0x4d9843))!=_0x31e207[_0x39f8a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39f8a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x48cd53=>(_0x99e8e(),_0x48cd53),()=>{const _0x4e5275=_0x3c011c();return null==_0x4e5275?(_0x99e8e(),_0x39f8a2([0x56,0x61,0x6c,0x69,0x64])):_0x39f8a2(_0x5c3df7-_0x4e5275>(0x738ba704^_0x5c1f03)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x3ad95e)[_0x39f8a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ad95e(_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x529ec9=0x57b1cd84^_0x5c1f03;function _0x99e8e(){const _0x26a089=_0x39f8a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2504c3(_0x480eb6(_0x42ef2a)),_0x3e212d=_0xd182c6(_0x2504c3(window[_0x39f8a2([0x4d,0x61,0x74,0x68])][_0x39f8a2([0x63,0x65,0x69,0x6c])](_0x5c3df7/_0x529ec9)));window[_0x39f8a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39f8a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26a089,_0x3e212d);}function _0x3c011c(){const _0x2fe168=_0x39f8a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2504c3(_0x480eb6(_0x42ef2a)),_0x5874b5=window[_0x39f8a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39f8a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fe168);return _0x5874b5?window[_0x39f8a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd182c6(_0x5874b5),0x10)*_0x529ec9:null;}function _0x30133b(_0x2451ba){return new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd955f6,_0x1f10ab)=>{_0x2451ba[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0xd955f6,_0x1f10ab),window[_0x39f8a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f10ab,0x5786f7c4^_0x5c1f03);});}}_0x578d37[_0x39f8a2([0x6f,0x6e])](_0x39f8a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15c873,_0x3dc5ee)=>{if(_0x3dc5ee[0x0]!=_0x42ef2a)return _0x3ad95e(_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3dc5ee[0x1]={..._0x3dc5ee[0x1],[_0x39f8a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x496465};},{[_0x39f8a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39f8a2([0x68,0x69,0x67,0x68])}),_0x578d37[_0x39f8a2([0x6f,0x6e])](_0x39f8a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45028b=>{_0x3ddf33(_0x45028b[_0x39f8a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x101275=!0x0,_0x2f8c1e(_0x45028b[_0x39f8a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39f8a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39f8a2([0x6c,0x6f,0x77])}),_0x2d432b[_0x39f8a2([0x74,0x68,0x65,0x6e])](()=>{_0x101275||_0x3ad95e(_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45c7ea(){return _0x578d37[_0x39f8a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f8a2([0x76,0x69,0x65,0x77])][_0x39f8a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39f8a2([0x61,0x75,0x74,0x6f]);}function _0x189f0f(){_0x578d37[_0x39f8a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f8a2([0x76,0x69,0x65,0x77])][_0x39f8a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39f8a2([0x61,0x75,0x74,0x6f]);}}function _0x32c309(_0x3aa745){const _0x2c9e2c=[new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e32f5=>setTimeout(_0x3e32f5,0x578e1dc8^_0x5c1f03)),_0x2d432b[_0x39f8a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x495f3f=>{const _0x269e04=0x57872303^_0x5c1f03,_0x2d14fc=_0xda90df[_0x39f8a2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x22108e(){_0x2d14fc[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x269e04&&_0x495f3f();}_0x22108e(),_0x2d14fc[_0x39f8a2([0x6f,0x6e])](_0x39f8a2([0x61,0x64,0x64]),_0x22108e);})),new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cde61=>{function _0x38c282(){for(const _0x2a1c4f in window)if(window[_0x39f8a2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x39f8a2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a1c4f))&&window[_0x2a1c4f]==_0x4c2ccf)return _0x3cde61();_0x578d37[_0x39f8a2([0x73,0x74,0x61,0x74,0x65])]!=_0x39f8a2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x39f8a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38c282,0x5787308c^_0x5c1f03);}_0x49ba63(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x38c282();})];return window[_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39f8a2([0x72,0x61,0x63,0x65])](_0x2c9e2c)[_0x39f8a2([0x74,0x68,0x65,0x6e])](()=>_0x3aa745);}async function _0x493b63(){if(await _0x2d432b,_0x49ba63(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x336976=_0xda90df[_0x39f8a2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5536d8=_0xda90df[_0x39f8a2([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])](_0x336976[_0x39f8a2([0x69,0x64])]),_0x113c6a=_0x420786(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x113c6a[_0x39f8a2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x336976['id'],_0x5536d8?_0x5536d8['id']:null,!0x0),_0x113c6a[_0x39f8a2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x113c6a[_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x113c6a[_0x39f8a2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x44374a,void(_0x113c6a[_0x39f8a2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x44374a);}if(_0x49ba63(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x184b75=_0x420786(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x184b75[_0x39f8a2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x184b75[_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x184b75[_0x39f8a2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x44374a,_0x184b75[_0x39f8a2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x44374a;}_0x578d37[_0x39f8a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x39f8a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44374a,_0x578d37[_0x39f8a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x39f8a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44374a,_0x578d37[_0x39f8a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39f8a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4380d4(){return _0x49ba63(_0x39f8a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x420786(_0x39f8a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x39f8a2([0x73,0x74,0x61,0x74,0x65])]==_0x39f8a2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x10eef0(){return _0x49ba63(_0x39f8a2([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 _0x48132f(){return _0x49ba63(_0x39f8a2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4067d2(_0xa23c8d){const _0x40fc45=_0x36f052();_0x578d37[_0x40fc45]=_0x39f8a2([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])+_0xa23c8d,_0xa23c8d[_0x39f8a2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x39f8a2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x36f052()]=_0x4c2ccf),_0xa23c8d!=_0x39f8a2([0x56,0x61,0x6c,0x69,0x64])&&_0x493b63();}function _0x36f052(){const _0x371315=window[_0x39f8a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39f8a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39f8a2([0x6e,0x6f,0x77])]())[_0x39f8a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39f8a2([0x2e]),'');let _0x507e89=_0x39f8a2([0x70]);for(let _0xc0d753=0x0;_0xc0d753<_0x371315[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc0d753+=0x2){let _0x563c40=window[_0x39f8a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x371315[_0x39f8a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc0d753,_0xc0d753+0x2));_0x563c40>=_0x50c4e0[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x563c40-=_0x50c4e0[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x507e89+=_0x50c4e0[_0x563c40];}return _0x507e89;}function _0x20bfb7(){const _0x41707b=_0x517a13[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e]));if(0x3!=_0x41707b[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x124210(_0x41707b[0x1]);function _0x124210(_0x551778){const _0x5de607=_0x595447(_0x551778);return _0x5de607&&_0x1d4615()?_0x5de607:null;function _0x1d4615(){const _0x33aaba=_0x5de607[_0x39f8a2([0x6a,0x74,0x69])],_0xd1620b=window[_0x39f8a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33aaba[_0x39f8a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33aaba[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1195e6={..._0x5de607,[_0x39f8a2([0x6a,0x74,0x69])]:_0x33aaba[_0x39f8a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33aaba[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1195e6[_0x39f8a2([0x76,0x63])],_0x480eb6(_0x1195e6)==_0xd1620b;}}}async function _0x50c630(){let _0x180c7d=!0x0;try{const _0x247650=_0x517a13[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e])),[_0x38200c,_0x3ff823,_0x47c89c]=_0x247650;return _0x59066c(_0x38200c),await _0x1f1b42(_0x38200c,_0x3ff823,_0x47c89c),_0x180c7d;}catch(_0x32476c){return!0x1;}function _0x59066c(_0x25e13e){const _0x513bdf=_0x595447(_0x25e13e);_0x513bdf&&_0x513bdf[_0x39f8a2([0x61,0x6c,0x67])]==_0x39f8a2([0x45,0x53,0x32,0x35,0x36])||(_0x180c7d=!0x1);}async function _0x1f1b42(_0x3a7a73,_0x530389,_0xf304d3){const _0x15b2d9=window[_0x39f8a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39f8a2([0x66,0x72,0x6f,0x6d])](_0xe98b8c(_0xf304d3),_0x2b75eb=>_0x2b75eb[_0x39f8a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c90af=new window[(_0x39f8a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39f8a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a7a73+_0x39f8a2([0x2e])+_0x530389),_0x3fdd61=window[_0x39f8a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39f8a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3fdd61)return;const _0x3534cb=await _0x3fdd61[_0x39f8a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39f8a2([0x6a,0x77,0x6b]),_0x4f77ae,{[_0x39f8a2([0x6e,0x61,0x6d,0x65])]:_0x39f8a2([0x45,0x43,0x44,0x53,0x41]),[_0x39f8a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39f8a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39f8a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3fdd61[_0x39f8a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39f8a2([0x6e,0x61,0x6d,0x65])]:_0x39f8a2([0x45,0x43,0x44,0x53,0x41]),[_0x39f8a2([0x68,0x61,0x73,0x68])]:{[_0x39f8a2([0x6e,0x61,0x6d,0x65])]:_0x39f8a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3534cb,_0x15b2d9,_0x5c90af)||(_0x180c7d=!0x1);}}function _0x595447(_0x2143e3){return _0x2143e3[_0x39f8a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39f8a2([0x65,0x79]))?JSON[_0x39f8a2([0x70,0x61,0x72,0x73,0x65])](_0xe98b8c(_0x2143e3)):null;}function _0xe98b8c(_0x7f4fe0){return window[_0x39f8a2([0x61,0x74,0x6f,0x62])](_0x7f4fe0[_0x39f8a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39f8a2([0x2b]))[_0x39f8a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39f8a2([0x2f])));}function _0x480eb6(_0x592c97){let _0x4863c1=0x1505;function _0x526208(_0x3cb97c){for(let _0x39eb5e=0x0;_0x39eb5e<_0x3cb97c[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39eb5e++){const _0xd5c802=_0x3cb97c[_0x39f8a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x39eb5e);_0x4863c1=(_0x4863c1<<0x5)+_0x4863c1+_0xd5c802,_0x4863c1&=_0x4863c1;}}function _0x338882(_0x1f8934){Array[_0x39f8a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f8934)?_0x1f8934[_0x39f8a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x338882):_0x1f8934&&typeof _0x1f8934==_0x39f8a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39f8a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f8934)[_0x39f8a2([0x73,0x6f,0x72,0x74])]()[_0x39f8a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20fadd,_0x50bec4])=>{_0x526208(_0x20fadd),_0x338882(_0x50bec4);}):_0x526208(window[_0x39f8a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f8934));}return _0x338882(_0x592c97),_0x4863c1>>>0x0;}function _0x2504c3(_0x1aaffa){return _0x1aaffa[_0x39f8a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39f8a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39f8a2([0x30]));}function _0xd182c6(_0x584642){return _0x584642[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39f8a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39f8a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x49ba63(_0x2c4479){return _0x578d37[_0x39f8a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39f8a2([0x68,0x61,0x73])](_0x2c4479);}function _0x420786(_0x5322c5){return _0x578d37[_0x39f8a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39f8a2([0x67,0x65,0x74])](_0x5322c5);}function _0x44374a(){}function _0x39f8a2(_0x4cbef9){return _0x4cbef9['map'](_0x3bd4dd=>String['fromCharCode'](_0x3bd4dd))['join']('');}_0x4067d2(await _0x23b9a5());}(this);}['createRevision'](_0x536efe){const _0x48bdae=this['editor']['plugins']['get']('Users');return new a({'id':_0x536efe['id'],'name':_0x536efe['name'],'creator':_0x536efe['creatorId']?_0x48bdae['getUser'](_0x536efe['creatorId']):null,'diffData':_0x536efe['diffData']||_0x536efe['data'],'authors':_0x536efe['authorsIds']['map'](_0x4f5626=>_0x48bdae['getUser'](_0x4f5626)),'createdAt':new Date(_0x536efe['createdAt']),'attributes':_0x536efe['attributes'],'fromVersion':_0x536efe['fromVersion'],'toVersion':_0x536efe['toVersion']});}['addRevision'](_0x3d6dc0,_0xdf726=0x0){this['_revisions']['add'](_0x3d6dc0,_0xdf726);}['getRevision'](_0x56d47f){return this['_revisions']['get'](_0x56d47f);}['getRevisions'](_0x4de626={'toJSON':!0x1}){const _0x6e71e0=Array['from'](this['_revisions']);return _0x6e71e0['reverse'](),_0x4de626['toJSON']?_0x6e71e0['map'](_0x780b17=>_0x780b17['toJSON']()):_0x6e71e0;}['getIndex'](_0x4cc439){return this['_revisions']['getIndex'](_0x4cc439);}['getEarlierVisibleRevision'](_0x4607b0){const [,_0x177898]=this['getRevisionsIterator'](_0x4607b0,{'direction':'earlier'});return _0x177898;}['getLaterVisibleRevision'](_0x1c396d){const [,_0x38aae7]=this['getRevisionsIterator'](_0x1c396d,{'direction':'later'});return _0x38aae7;}['getRevisionsInDiff'](_0x5dcae5){const _0x323fba=[];for(const _0x414978 of this['getRevisionsIterator'](_0x5dcae5['newRevisionId']))if(_0x323fba['push'](_0x414978),_0x414978['id']===_0x5dcae5['oldRevisionId'])break;return _0x323fba;}*['getRevisionsIterator'](_0xbf386f,{direction:_0x43e283='earlier',filter:_0x446a7c=()=>!0x0}={}){const _0x432a90='earlier'===_0x43e283?0x1:-0x1;let _0x4460ab=this['_revisions']['get'](_0xbf386f),_0x7225b1=this['getIndex'](_0x4460ab);for(yield _0x4460ab;_0x4460ab;){if(_0x7225b1+=_0x432a90,_0x4460ab=this['getRevision'](_0x7225b1),!_0x4460ab)return;_0x446a7c(_0x4460ab)&&(yield _0x4460ab);}}}function R(_0x10c11a,_0x4be4c3,_0x228d3f){const t=_0x10c11a['t'];switch(_0x4be4c3){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'},_0x228d3f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x228d3f);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 C={'c':_0x27273a,'a':_0x18f5a0,'e':_0x36684c,'r':_0x16c422,'u':_0x5f2150};class l extends _0x5025c2{['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[_0x537e60,j,_0x5a095e];}constructor(_0x33a784){super(_0x33a784),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5ebdce=_0x4fb206();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5ebdce},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 _0x426c4d=this['repository']['getRevision'](0x0),_0x251db4=_0x426c4d&&null===_0x426c4d['creator']?_0x426c4d:null;if(this['_continueCurrentRevision']=!!_0x251db4&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5685a2=this['_source']['getCurrentRevisionId'](),_0x1feafb=this['repository']['getRevision'](_0x5685a2);if(_0x1feafb)this['_startingVersion']=_0x1feafb['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x54f76c=this['_source']['history']['_operations']['find'](_0x5544ac=>!_0x5544ac['_isInit']),_0x1351ec=_0x54f76c?_0x54f76c['baseVersion']:this['_source']['history']['version'];_0x426c4d?(_0x426c4d['toVersion']<_0x1351ec&&_0x426c4d['_update']({'toVersion':_0x1351ec}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x251db4['id'],this['_startingVersion']=_0x251db4['fromVersion']):(this['_startingVersion']=_0x426c4d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1351ec,this['_continueCurrentRevision']=!0x1);}}else _0x251db4&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x251db4['toVersion'],this['editor']['model']['document']['history']['version']),_0x251db4['fromVersion']===_0x251db4['toVersion']?(0x0!==_0x251db4['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x251db4['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x251db4['id'],this['_startingVersion']=_0x251db4['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',_0x520a5f=>!_0x520a5f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe0735a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x436c4b;for(const _0x47d270 in _0xe0735a){const _0x33889e=_0x47d270,_0x186f7c=_0xe0735a[_0x33889e];if('revisionHistoryLicenseKeyValid'==_0x186f7c||'revisionHistoryLicenseKeyInvalid'==_0x186f7c||'revisionHistoryLicenseKeyExpired'==_0x186f7c||'revisionHistoryLicenseKeyDomainLimit'==_0x186f7c||'revisionHistoryLicenseKeyNotAllowed'==_0x186f7c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x186f7c||'revisionHistoryLicenseKeyTrialLimit'==_0x186f7c||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x186f7c||'revisionHistoryLicenseKeyUsageLimit'==_0x186f7c){delete _0xe0735a[_0x33889e],_0x436c4b=_0x186f7c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x436c4b&&_0xe0735a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x436c4b&&_0xe0735a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x436c4b&&_0xe0735a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x294305=this['repository']['getRevision'](0x0),_0x265329=await this['getRevisionDocumentData'](_0x294305),_0x252e97=await this['getRevisionRootsAttributes'](_0x294305);this['_replaceEditorDataWithRevisionData'](_0x265329,_0x252e97);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x43175a){this['_source']=_0x43175a;}async['update'](){const _0x50a291=await this['_source']['getLatestVersion']();if(_0x50a291>this['currentRevision']['toVersion']){await this['_loadState']();const _0x598ef4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x50a291});_0x598ef4['authors']=_0x598ef4['authorsIds']['map'](_0x30a12c=>this['editor']['plugins']['get']('Users')['getUser'](_0x30a12c)),this['currentRevision']['_update'](_0x598ef4);}}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'](_0x1e7f59={},_0x430a7c=null){const _0x8df32=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x430a7c>this['currentRevision']['toVersion']&&(_0x430a7c=null),null===_0x430a7c&&(_0x430a7c=await this['_source']['getLatestVersion']());const _0xb05e48=this['_getFromVersion'](_0x430a7c),_0x5a0aaa=this['buildRevisionData']({'from':_0xb05e48,'to':_0x430a7c});if(this['currentRevision']['toVersion']<_0x430a7c){const _0x2e20f5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x430a7c,'to':_0x430a7c});_0x2e20f5['authors']=[],_0x2e20f5['authorsIds']=[],_0x2e20f5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2e20f5,!0x0),delete _0x2e20f5['authors'],_0x8df32['push'](_0x2e20f5);}_0x1e7f59['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e7f59['name']=_0x1e7f59['name']||null,_0x1e7f59['id']=_0x1e7f59['id']||_0x4fb206(),_0x1e7f59={..._0x1e7f59,..._0x5a0aaa};const _0xd74779=this['addRevisionData'](_0x1e7f59);_0x8df32['push'](_0x1e7f59);const _0x16d903=this['repository']['getIndex'](_0xd74779);if(0x0!==_0x16d903){const _0x453d3e=this['repository']['getRevision'](_0x16d903-0x1);if(_0x453d3e['fromVersion']!==_0x430a7c){const _0x3cfb1f=this['_revisionDataBuilder']['getData'](_0x430a7c,_0x453d3e['toVersion']),_0x4de958={'id':_0x453d3e['id'],'diffData':_0x3cfb1f['diffData'],'authorsIds':_0x3cfb1f['authorsIds'],'authors':_0x3cfb1f['authorsIds']['map'](_0x1bd9a0=>this['editor']['plugins']['get']('Users')['getUser'](_0x1bd9a0)),'fromVersion':_0x430a7c};_0x453d3e===this['currentRevision']&&(_0x4de958['createdAt']=new Date(_0x1e7f59['createdAt']['getTime']()+0xa)),_0x453d3e['_update'](_0x4de958,!0x0),delete _0x4de958['authors'],_0x8df32['push'](_0x4de958);}}if(this['adapter']){for(const _0x379a85 of _0x8df32)this['_bufferUpdate'](_0x379a85['id'],_0x379a85,!0x0);this['sendBufferedUpdates']();}return _0xd74779;}['addRevisionData'](_0x233fd){const _0x1fce7a=this['repository']['createRevision'](_0x233fd);return this['adapter']&&_0x1fce7a['on']('_update',(_0x48ac66,_0x1dfe3d,_0x139f0b)=>{_0x139f0b||(this['_bufferUpdate'](_0x1dfe3d['id'],_0x1dfe3d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1fce7a,this['_findInsertionIndex'](_0x1fce7a)),_0x1fce7a;}async['getRevisionDocumentData'](_0x3166b6){await this['_loadRevisionData'](_0x3166b6);const _0x2797e1={};for(const _0x5a9288 in _0x3166b6['diffData']){if(_0x3166b6['diffData'][_0x5a9288]['attachChange']&&!_0x3166b6['diffData'][_0x5a9288]['attachChange']['isAttached'])continue;const _0x809b45=this['_removeRevisionMarkers'](JSON['parse'](_0x3166b6['diffData'][_0x5a9288]['insertions'])),_0x4aa7b3=this['editor']['editing']['view']['document'],_0x5d3352=new _0x14c48c(_0x4aa7b3,_0x809b45['map'](_0x303aa9=>V(_0x303aa9,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2797e1[_0x5a9288]=this['editor']['data']['processor']['toData'](_0x5d3352),this['editor']['data']['processor']['useFillerType']('default');}return _0x2797e1;}async['getRevisionRootsAttributes'](_0x161d09){await this['_loadRevisionData'](_0x161d09);const _0x259489={};for(const _0xdde1d1 in _0x161d09['diffData'])_0x161d09['diffData'][_0xdde1d1]['attachChange']&&!_0x161d09['diffData'][_0xdde1d1]['attachChange']['isAttached']||(_0x259489[_0xdde1d1]=_0x161d09['diffData'][_0xdde1d1]['attributesAfter']||{});return _0x259489;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x58f78c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1b2694=0x0;_0x1b2694<_0x58f78c['length'];_0x1b2694++){const _0x39c37a=_0x58f78c[_0x1b2694];let _0x92e5c9=!0x1;for(const _0x23ed56 of Object['keys'](_0x39c37a))void 0x0===_0x39c37a[_0x23ed56]?delete _0x39c37a[_0x23ed56]:'id'!==_0x23ed56&&(_0x92e5c9=!0x0);_0x92e5c9||(_0x58f78c[_0x1b2694]=null);}if(_0x58f78c=_0x58f78c['filter'](_0x77331d=>null!==_0x77331d),!_0x58f78c['length'])return;for(let _0x75d99e=0x0;_0x75d99e<_0x58f78c['length'];_0x75d99e++){const _0x4b5d12=_0x58f78c[_0x75d99e];void 0x0!==_0x4b5d12['fromVersion']&&void 0x0===_0x4b5d12['toVersion']&&(_0x4b5d12['toVersion']=this['repository']['getRevision'](_0x4b5d12['id'])['toVersion']),void 0x0!==_0x4b5d12['toVersion']&&void 0x0===_0x4b5d12['fromVersion']&&(_0x4b5d12['fromVersion']=this['repository']['getRevision'](_0x4b5d12['id'])['fromVersion']);}const _0xcc2121=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x58f78c,_0xcc2121)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1d675=>{if(_0x1d675){for(const _0x5af47d of _0x1d675)this['setRevisionData']({'id':_0x5af47d['id'],'createdAt':_0x5af47d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2768f5,_0x1f22dc){let _0x5aac19=this['editor']['config']['get']('initialData'),_0x378db5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5aac19){_0x5aac19={};for(const _0x1ef662 of this['editor']['model']['document']['getRootNames']())_0x5aac19[_0x1ef662]='';}if('string'==typeof _0x5aac19&&(_0x5aac19={'main':_0x5aac19}),void 0x0===_0x378db5){_0x378db5={};for(const _0x574d84 of this['editor']['model']['document']['getRootNames']())_0x378db5[_0x574d84]={};}let _0x4fc0a1=!0x1;const _0x468339=Object['keys'](_0x5aac19),_0x32ba0f=Object['keys'](_0x2768f5);for(const _0x8957fb of _0x468339){if(_0x5aac19[_0x8957fb]!==_0x2768f5[_0x8957fb]&&''!==_0x5aac19[_0x8957fb]['trim']()){_0x4fc0a1=!0x0;break;}if(!_0x53d9b6(_0x378db5[_0x8957fb],_0x1f22dc[_0x8957fb])&&Object['keys'](_0x378db5[_0x8957fb])['length']>0x0){_0x4fc0a1=!0x0;break;}}_0x4fc0a1||(_0x4fc0a1=_0x32ba0f['some'](_0x463fbf=>!this['editor']['model']['document']['getRoot'](_0x463fbf))),_0x4fc0a1&&_0x3c206e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5aac19,'editorRootsAttributes':_0x378db5,'revisionData':_0x2768f5,'revisionRootsAttributes':_0x1f22dc}),this['editor']['config']['set']('initialData',_0x2768f5),this['editor']['config']['set']('rootsAttributes',_0x1f22dc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x227fa6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x227fa6['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3432fc){const _0x95f548=this['repository']['getRevisions']();_0x95f548['reverse']();let _0x3b034d=0x0;for(;_0x3b034d<_0x95f548['length'];){const _0x1d318a=_0x95f548[_0x3b034d];if(_0x1d318a===this['currentRevision']){_0x3b034d++;continue;}if(_0x1d318a['id']===this['_initialRevisionId'])break;const _0x53db7b=_0x3432fc['toVersion']-_0x1d318a['toVersion']||_0x3432fc['fromVersion']-_0x1d318a['fromVersion'];if(_0x53db7b>0x0)break;if(_0x53db7b<0x0)_0x3b034d++;else{if(!_0x3432fc['creator']&&_0x1d318a['creator'])break;if(_0x1d318a['creator']||!_0x3432fc['creator']){if(_0x3432fc['createdAt']>_0x1d318a['createdAt'])break;_0x3b034d++;}else _0x3b034d++;}}return _0x3b034d;}['setRevisionData'](_0x25897e){const _0x4b112a=this['repository']['getRevision'](_0x25897e['id']);if(_0x25897e['createdAt']&&(_0x25897e['createdAt']=new Date(_0x25897e['createdAt'])),_0x25897e['authorsIds']){const _0xb1256b=this['editor']['plugins']['get']('Users');_0x25897e['authors']=_0x25897e['authorsIds']['map'](_0xe40341=>_0xb1256b['getUser'](_0xe40341));}_0x4b112a['_update'](_0x25897e,!0x0);}['buildRevisionData']({revision:_0xc7067b=null,from:_0x4a963d=null,to:_0x434de0=null}){_0x4a963d=null!==_0x4a963d?_0x4a963d:_0xc7067b['fromVersion'],_0x434de0=null!==_0x434de0?_0x434de0:_0xc7067b['toVersion'];const _0x4e25c1=this['_revisionDataBuilder']['getData'](_0x4a963d,_0x434de0),_0x420247={'diffData':_0x4e25c1['diffData'],'authorsIds':_0x4e25c1['authorsIds'],'fromVersion':_0x4a963d,'toVersion':_0x434de0};if(!_0xc7067b||_0x434de0!==_0xc7067b['toVersion']){const _0x3c212f=_0x434de0-0x1,_0x1c5d02=this['_source']['history']['getOperation'](_0x3c212f);_0x420247['createdAt']=_0x1c5d02&&_0x1c5d02['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4a963d===this['_loadedStateData']['fromVersion']){for(const _0x1ab140 of this['_loadedStateData']['authors'])_0x420247['authorsIds']['includes'](_0x1ab140['id'])||_0x420247['authorsIds']['push'](_0x1ab140['id']);}return _0x420247;}['_loadRevisionData'](_0x3e3246){if(!_0x3e3246||_0x3e3246['diffData'])return Promise['resolve']();{const _0x268b7e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x268b7e,'revisionId':_0x3e3246['id']})['then'](_0x4dcc32=>{_0x3e3246['diffData']=_0x4dcc32['diffData'];});}}['_bufferUpdate'](_0x3bb7,_0x29540f,_0x2c07dc){if(this['_bufferedUpdates']['has'](_0x3bb7)){const _0x135ef2=this['_bufferedUpdates']['get'](_0x3bb7);_0x29540f=_0x2c07dc?{..._0x135ef2,..._0x29540f}:{..._0x29540f,..._0x135ef2};}this['_bufferedUpdates']['set'](_0x3bb7,_0x29540f);}['_getFromVersion'](_0x54f437){const _0x27ab44=this['repository']['getRevisions']();_0x27ab44['reverse'](),_0x27ab44['shift']();const _0x2aa03f=_0x27ab44['find'](_0x22dadf=>_0x22dadf['toVersion']<=_0x54f437)['toVersion'];return _0x2aa03f<this['_startingVersion']?this['_startingVersion']:_0x2aa03f;}['_createInitialRevision'](_0x561a09){const _0x8aaeb6=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x8aaeb6)this['_initialRevisionId']=_0x8aaeb6['id'];else{const _0x1258e9=!this['editor']['model']['document']['roots']['find'](_0x56d7e4=>this['editor']['model']['hasContent'](_0x56d7e4)),_0xf26f56=this['editor']['plugins']['get']('Users')['me']['id'],_0x2597fa=R(this['editor']['locale'],_0x1258e9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x561a09,'to':_0x561a09,'id':this['_initialRevisionId'],'name':_0x2597fa,'creatorId':_0xf26f56});}}['_createCurrentRevision'](_0x4a397b){const _0x4c7251=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4c7251),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a397b,'to':_0x4a397b,'id':_0x4c7251,'name':'','creatorId':null}));}['_makeRevision']({name:_0x138cd3,from:_0x5e084a,to:_0x467f11,creatorId:_0x584412,id:_0x4fe6e4}){const _0x199838=this['buildRevisionData']({'from':_0x5e084a,'to':_0x467f11});_0x199838['name']=_0x138cd3,_0x199838['creatorId']=_0x584412,_0x199838['id']=_0x4fe6e4;const _0xdc1ad0=this['addRevisionData'](_0x199838);return this['adapter']&&this['_bufferUpdate'](_0x199838['id'],_0x199838,!0x0),_0xdc1ad0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3ae049){return(_0x3ae049=_0x3ae049['filter'](_0x4113ef=>!_0x4113ef['name']||'revision-start'!==_0x4113ef['name']&&'revision-end'!==_0x4113ef['name']))['forEach'](_0x47f207=>{'string'!=typeof _0x47f207&&(_0x47f207['children']=this['_removeRevisionMarkers'](_0x47f207['children']),_0x47f207['attributes']=_0x47f207['attributes']['filter'](_0x32a3d5=>!_0x32a3d5[0x0]['startsWith']('data-revision-')));}),_0x3ae049;}}function V(_0x2625fc,_0x2f437f){const _0x36a9a6=_0x2f437f['editing']['view']['document'];if('string'==typeof _0x2625fc)return new _0x4dec75(_0x36a9a6,_0x2625fc);{const _0x46f892=_0x2625fc['children']['map'](_0x5f44dc=>V(_0x5f44dc,_0x2f437f));return new(C[_0x2625fc['type']]||_0x195c96)(_0x36a9a6,_0x2625fc['name'],_0x2625fc['attributes'],_0x46f892);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2aed38){this['editor']=_0x2aed38,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'](_0x239fb4){this['source']=_0x239fb4;const _0x33e426=new Map(),_0x1797c3=new Map(),_0x58815c=this['editor']['model']['document']['roots']['map'](_0x44d41e=>_0x44d41e['rootName']);for(const _0x2d1e94 of _0x58815c){const _0x22a655=this['editor']['model']['document']['getRoot'](_0x2d1e94),_0x56e219=F(_0x22a655);_0x33e426['set'](_0x2d1e94,_0x56e219),_0x1797c3['set'](_0x2d1e94,Object['fromEntries'](_0x22a655['getAttributes']()));}const _0x398096=Array['from'](this['editor']['model']['markers'])['map'](_0x3d651d=>[_0x3d651d['name'],_0x3d651d['getRange']()]),_0x1153c2=this['source']['version'];this['_saveMetaData'](_0x1153c2,_0x33e426,_0x398096,_0x1797c3),this['_startingRevisionId']=this['_revisionId'];const _0x27452d=new Map(),_0x46aedd=new Map();for(const _0x4d6e23 of _0x58815c){const _0x3c580a=B(_0x4d6e23);_0x27452d['set'](_0x4d6e23,_0x3c580a),_0x46aedd['set'](_0x4d6e23,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x27452d,[],_0x46aedd);}['getData'](_0x5c59c6,_0x1c225d){if(this['_lastFrom']===_0x5c59c6&&this['_lastTo']<=_0x1c225d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1c225d,!0x0);else{if(!this['_savedMetaData']['has'](_0x5c59c6)){const _0x4af44b=this['_getPreviousFrom'](_0x5c59c6);this['_calculateMetaData'](_0x4af44b,_0x5c59c6,!0x1);}this['_calculateMetaData'](_0x5c59c6,_0x1c225d,!0x0);}return this['_lastFrom']=_0x5c59c6,this['_lastTo']=_0x1c225d,this['_getState']();}['loadState'](_0x3c4d34){this['_reset'](),this['_lastFrom']=_0x3c4d34['fromVersion'],this['_lastTo']=_0x3c4d34['toVersion'];for(const _0x244bcc in _0x3c4d34['diffData']){const _0x29c503=_0x3c4d34['diffData'][_0x244bcc]['attachChange'],_0x3debe0=_0x2fd224(_0x3c4d34['diffData'][_0x244bcc]['attributesBefore'])||{},_0x55d88e=this['_makeModelFromViewString'](_0x3c4d34['diffData'][_0x244bcc]['deletions']);_0x55d88e['rootName']=_0x244bcc,_0x55d88e['_isAttached']=!_0x29c503||!_0x29c503['isAttached'],_0x55d88e['isAttached']=()=>_0x55d88e['_isAttached'],this['_baseRoots']['set'](_0x244bcc,_0x55d88e),this['_baseRootsAttributes']['set'](_0x244bcc,_0x3debe0),_0x29c503&&this['_touchedRoots']['set'](_0x244bcc,_0x29c503);const _0x57128c=this['_makeIdsRoot'](_0x55d88e);this['_baseIdsRoots']['set'](_0x244bcc,_0x57128c);for(const [_0x3b40c6,_0x1d3032]of _0x55d88e['markers']){if(!_0x3b40c6['startsWith']('revision:'))continue;const _0x2f978f=_0x3b40c6['split'](':')[0x2];for(const _0x294e0e of _0x1d3032['getWalker']({'singleCharacters':!0x0})){const _0x2cd44b=this['_getVidAttributeName'](_0x294e0e),_0x487e60='elementEnd'==_0x294e0e['type']?_0x294e0e['previousPosition']['path']['slice'](0x0,-0x1):_0x294e0e['previousPosition']['path'],_0x1d280e=_0x57128c['getNodeByPath'](_0x487e60)['getAttribute'](_0x2cd44b);this['_touched']['set'](_0x1d280e,{'userId':_0x2f978f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x509b13=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x231d92=>!this['_touched']['has'](_0x231d92));let _0x3d3c51=0x0;const _0xd47304=new Map();for(const _0x4f2835 in _0x3c4d34['diffData']){const _0x5c68aa=_0x3c4d34['diffData'][_0x4f2835]['attachChange'],_0x59bb34=_0x2fd224(_0x3c4d34['diffData'][_0x4f2835]['attributesAfter'])||{},_0x5265f1=this['_makeModelFromViewString'](_0x3c4d34['diffData'][_0x4f2835]['insertions']);_0x5265f1['rootName']=_0x4f2835,_0x5265f1['_isAttached']=!_0x5c68aa||_0x5c68aa['isAttached'],_0x5265f1['isAttached']=()=>_0x5265f1['_isAttached'],this['_diffRoots']['set'](_0x4f2835,_0x5265f1),this['_diffRootsAttributes']['set'](_0x4f2835,_0x59bb34);const _0xcde1d3=this['_makeIdsRoot'](_0x5265f1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4f2835,_0xcde1d3),_0xd47304['set'](_0x4f2835,_0x5265f1['isAttached']()?_0x59bb34:{});for(const [_0x48053d,_0xcac702]of _0x5265f1['markers']){if(!_0x48053d['startsWith']('revision:'))continue;const _0x36a002=_0x48053d['split'](':')[0x2];for(const _0x1316fa of _0xcac702['getWalker']({'singleCharacters':!0x0})){const _0x458b2a=this['_getVidAttributeName'](_0x1316fa),_0x516d55=this['_revisionId']++,_0x1f4703='elementEnd'==_0x1316fa['type']?_0x1316fa['previousPosition']['path']['slice'](0x0,-0x1):_0x1316fa['previousPosition']['path'];_0xcde1d3['getNodeByPath'](_0x1f4703)['_setAttribute'](_0x458b2a,_0x516d55),this['_touched']['set'](_0x516d55,{'userId':_0x36a002});}}for(const _0x1762ec of this['editor']['model']['createRangeIn'](_0x5265f1)['getWalker']({'singleCharacters':!0x0})){const _0xf69a0f=this['_getVidAttributeName'](_0x1762ec),_0x53ec8a='elementEnd'==_0x1762ec['type']?_0x1762ec['previousPosition']['path']['slice'](0x0,-0x1):_0x1762ec['previousPosition']['path'],_0x518cc2=_0xcde1d3['getNodeByPath'](_0x53ec8a);_0x518cc2['getAttribute'](_0xf69a0f)>0x0||_0x518cc2['_setAttribute'](_0xf69a0f,_0x509b13[_0x3d3c51++]);}for(const [_0x588f2f,_0x13152d]of _0x5265f1['markers'])_0x588f2f['startsWith']('revision:')||this['_markers']['set'](_0x588f2f,_0x13152d);}const _0x59493f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x59493f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59493f,0x1));const _0x51f7a6=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x51f7a6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x51f7a6,0x1));const _0x541084=Array['from'](this['_diffRoots'])['map'](([_0x4f0f20,_0x3caf75])=>[_0x4f0f20,F(_0x3caf75)]);this['_saveMetaData'](this['_lastTo'],_0x541084,this['_markers'],_0xd47304);}['_makeModelFromViewString'](_0xf28ab){const _0x4274c5=JSON['parse'](_0xf28ab),_0x47e9df=this['editor']['editing']['view']['document'],_0x13d715=new _0x14c48c(_0x47e9df,_0x4274c5['map'](_0x29f2cf=>V(_0x29f2cf,this['editor'])));return this['editor']['data']['toModel'](_0x13d715);}['_saveMetaData'](_0x5e99d3,_0x60353b,_0x16c610,_0x346530){const _0x395d56=new Map(_0x60353b),_0x13acb9=new Map(_0x2fd224(_0x346530)),_0x1c9736=new Map();for(const [_0x3941fd,_0x13ed9c]of _0x16c610)_0x1c9736['set'](_0x3941fd,{'start':_0x13ed9c['start']['clone'](),'end':_0x13ed9c['end']['clone'](),'rootName':_0x13ed9c['root']['rootName']});this['_savedMetaData']['set'](_0x5e99d3,{'roots':_0x395d56,'markers':_0x1c9736,'rootsAttributes':_0x13acb9});}['_removeMetaData'](_0x59c2eb){this['_savedMetaData']['delete'](_0x59c2eb);}['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'](_0x5e2e35,_0x52b74c=null){let _0x5d3dbb=null;_0x5e2e35['is']('documentFragment')||(_0x5d3dbb=new ft(_0x5e2e35['name'],{'vid_start':null===_0x52b74c?this['_revisionId']++:_0x52b74c++}));const _0xd47d5d=[];for(const _0x44d30e of _0x5e2e35['getChildren']())if(_0x44d30e['is']('element')){_0xd47d5d['push'](this['_makeIdsRoot'](_0x44d30e,_0x52b74c));const _0xebb09=_0xd47d5d[_0xd47d5d['length']-0x1];null!==_0x52b74c&&(_0x52b74c=_0xebb09['is']('element','$text')?_0xebb09['getAttribute']('vid')+0x1:_0xebb09['getAttribute']('vid_end')+0x1);}else{for(let _0x3ec223=0x0;_0x3ec223<_0x44d30e['offsetSize'];_0x3ec223++)_0xd47d5d['push'](new ft('$text',{'vid':null===_0x52b74c?this['_revisionId']++:_0x52b74c++}));}if(_0x5e2e35['is']('documentFragment')){const _0x4cfa7f=B(_0x5e2e35['rootName']);return _0x4cfa7f['_insertChild'](0x0,_0xd47d5d),_0x4cfa7f;}return _0x5d3dbb['_setAttribute']('vid_end',null===_0x52b74c?this['_revisionId']++:_0x52b74c++),_0x5d3dbb['_insertChild'](0x0,_0xd47d5d),_0x5d3dbb;}['_calculateMetaData'](_0x1146af,_0x2ed3ae,_0x5e2dbf){this['_reset']();const {roots:_0x1c7578,markers:_0x304863,rootsAttributes:_0x2cf30a}=this['_savedMetaData']['get'](_0x1146af);this['_baseRoots']=new Map(_0x1c7578),this['_baseRootsAttributes']=new Map(_0x2fd224(_0x2cf30a));for(const [_0x565aef,_0x1bfb2c]of this['_baseRoots'])if('$graveyard'!==_0x565aef&&(this['_diffRoots']['set'](_0x565aef,F(_0x1bfb2c)),this['_diffRootsAttributes']=new Map(_0x2fd224(_0x2cf30a)),_0x5e2dbf)){const _0x5791b7=this['_revisionId'];this['_idsRoots']['set'](_0x565aef,this['_makeIdsRoot'](_0x1bfb2c)),this['_baseIdsRoots']['set'](_0x565aef,this['_makeIdsRoot'](_0x1bfb2c,_0x5791b7));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5e2dbf&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x208a87,_0x5bc6b7]of _0x304863){const _0x11d3b7=this['_baseRoots']['get'](_0x5bc6b7['rootName']),_0xe5e753=this['_diffRoots']['get'](_0x5bc6b7['rootName']),_0x465564=new vt(this['_fixPosition'](_0x5bc6b7['start'],_0x11d3b7),this['_fixPosition'](_0x5bc6b7['end'],_0x11d3b7)),_0x438031=this['_fixRange'](_0x465564,_0xe5e753);_0x11d3b7['markers']['set'](_0x208a87,_0x465564),this['_markers']['set'](_0x208a87,_0x438031);}this['_applyOperations'](_0x1146af,_0x2ed3ae,_0x5e2dbf);}['_applyOperations'](_0x5343ed,_0x48024a,_0x516931){for(const _0x1bae29 of this['source']['getOperations'](_0x5343ed,_0x48024a))this['_handleOperation'](_0x1bae29,_0x516931);for(const _0x44940e of this['_diffRoots']['values']())_0x44940e['markers']['clear']();for(const [_0x37b249,_0x103402]of this['_markers']){this['_diffRoots']['get'](_0x103402['root']['rootName'])['markers']['set'](_0x37b249,_0x103402['clone']());}const _0x4aaeb0=new Map(),_0x345fea=new Map();for(const [_0x316c91,_0x2e11e3]of this['_diffRoots'])_0x4aaeb0['set'](_0x316c91,F(_0x2e11e3)),_0x345fea['set'](_0x316c91,this['_diffRootsAttributes']['get'](_0x316c91));this['_saveMetaData'](_0x48024a,_0x4aaeb0,this['_markers'],_0x345fea);}['_getPreviousFrom'](_0x39d371){const _0x374f33=Array['from'](this['_savedMetaData']['keys']());_0x374f33['sort']((_0x13862e,_0xb1ea86)=>_0x13862e-_0xb1ea86),_0x374f33['reverse']();for(const _0x21e8a0 of _0x374f33)if(_0x21e8a0<_0x39d371)return _0x21e8a0;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x18f541,_0x4f2a03){const _0x36339a=Array['from'](_0x4f2a03['markers'])['map'](([_0x4226ba,_0x4f9128])=>[_0x4226ba,this['_fixRange'](_0x4f9128,_0x18f541)]);_0x18f541['markers']=new Map(_0x36339a);}['_transformMarkers'](_0x3590b5){for(const _0x5c52bb of this['_markers']['values']()){const _0xd51cd7=_0x5c52bb['getTransformedByOperation'](_0x3590b5),_0x5b8c81=vt['_createFromRanges'](_0xd51cd7);_0x5c52bb['start']=_0x5b8c81['start'],_0x5c52bb['end']=_0x5b8c81['end'];}}['_handleOperation'](_0x2d9550,_0x315faf){if('addRoot'!=_0x2d9550['type']&&'detachRoot'!=_0x2d9550['type']){if('insert'==_0x2d9550['type']){const _0x40e066=_0x2d9550['position']['root']['rootName'];this['_diffRoots']['has'](_0x40e066)||(this['_diffRoots']['set'](_0x40e066,B(_0x40e066,!0x0)),this['_diffRootsAttributes']['set'](_0x40e066,{}),_0x315faf&&this['_idsRoots']['set'](_0x40e066,B(_0x40e066,!0x0)));}else{if('addRootAttribute'==_0x2d9550['type']||'removeRootAttribute'==_0x2d9550['type']||'changeRootAttribute'==_0x2d9550['type'])return void this['_handleRootAttributeOperation'](_0x2d9550);'marker'==_0x2d9550['type']&&this['_handleMarkerOperation'](_0x2d9550);}if('marker'!==_0x2d9550['type']){const _0x22a6e3=this['_cloneOperation'](_0x2d9550,this['_diffRoots']);_0x22a6e3['_execute'](),this['_transformMarkers'](_0x22a6e3);}if(_0x315faf)switch(_0x2d9550['type']){case'insert':this['_handleInsertOperation'](_0x2d9550);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2d9550);break;case'merge':this['_handleMergeOperation'](_0x2d9550);break;case'split':this['_handleSplitOperation'](_0x2d9550);}}else this['_handleRootOperation'](_0x2d9550,_0x315faf);}['_cloneOperation'](_0x4418e5,_0x1a965e){const _0x74013f=_0x4418e5['clone']();return _0x74013f['_authorId']=_0x4418e5['_authorId'],this['_fixOperation'](_0x74013f,_0x1a965e),_0x74013f;}['_getBaseVids'](_0x1414c8){return _0x1414c8['map'](_0x475b04=>{const _0x1cfb67=this['_getVidAttributeName'](_0x475b04);return Number(_0x475b04['item']['getAttribute'](_0x1cfb67));});}['_generateTape'](_0x30c2c7,_0x4d9f2c){if(_0x30c2c7['is']('element','$text'))_0x4d9f2c['push']({'item':_0x30c2c7,'type':'text'});else{_0x30c2c7['is']('element')&&_0x4d9f2c['push']({'item':_0x30c2c7,'type':'elementStart'});for(const _0x30a28e of _0x30c2c7['getChildren']())this['_generateTape'](_0x30a28e,_0x4d9f2c);_0x30c2c7['is']('element')&&_0x4d9f2c['push']({'item':_0x30c2c7,'type':'elementEnd'});}return _0x4d9f2c;}['_getState'](){const _0x2a78ef=new Map(this['_touched']),_0x5229ba=new Map(_0x2a78ef),_0x5c1501=new Map(),_0x249acc={'insertions':{},'deletions':{}},_0x579460={'insertions':{},'deletions':{}},_0x296068=new Map(),_0x3c0617=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3c0617['delete']('$graveyard');for(const _0x66c3a2 of _0x3c0617){const _0x3ed8b0=this['_diffRoots']['get'](_0x66c3a2)||B(_0x66c3a2,!0x1),_0x4dff91=this['_baseRoots']['get'](_0x66c3a2)||B(_0x66c3a2,!0x1);_0x3ed8b0['isAttached']()||_0x4dff91['isAttached']()?(_0x249acc['insertions'][_0x66c3a2]=F(_0x3ed8b0),_0x249acc['deletions'][_0x66c3a2]=F(_0x4dff91),this['_copyMarkers'](_0x249acc['deletions'][_0x66c3a2],_0x4dff91),this['_copyMarkers'](_0x249acc['insertions'][_0x66c3a2],_0x3ed8b0),_0x579460['insertions'][_0x66c3a2]=this['_generateTape'](this['_idsRoots']['get'](_0x66c3a2),[]),_0x579460['deletions'][_0x66c3a2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x66c3a2)||B(_0x66c3a2,!0x1),[])):_0x3c0617['delete'](_0x66c3a2);}for(const _0x56d13b of _0x3c0617){const _0x382fde=_0x579460['insertions'][_0x56d13b];for(const _0xe8758 of _0x382fde){const _0x4391f1=this['_getVidAttributeName'](_0xe8758),_0x4651b5=_0xe8758['item']['getAttribute'](_0x4391f1);_0x5229ba['delete'](_0x4651b5),_0x4651b5>=this['_startingRevisionId']&&_0x5c1501['set'](_0x4651b5,_0x2a78ef['get'](_0x4651b5));}}for(const _0x503379 of _0x3c0617){const _0xcc9d1f=_0x579460['insertions'][_0x503379],_0x385bcf=this['_getBaseVids'](_0x579460['deletions'][_0x503379]);let _0x467a1d=0x0;for(const _0x372264 of _0xcc9d1f){const _0x1d48b3=this['_getVidAttributeName'](_0x372264),_0x485064=_0x372264['item']['getAttribute'](_0x1d48b3);if(!_0x5c1501['has'](_0x485064)&&!_0x296068['has'](_0x485064)){if(_0x5229ba['has'](_0x485064))_0x467a1d++;else{if(_0x485064!=_0x385bcf[_0x467a1d]){const _0x494419=_0x2a78ef['get'](_0x485064)||_0x2a78ef['get'](_0x385bcf[_0x467a1d]);for(;_0x485064!=_0x385bcf[_0x467a1d];)_0x5229ba['has'](_0x385bcf[_0x467a1d])||(_0x296068['set'](_0x385bcf[_0x467a1d],_0x494419),_0x2a78ef['set'](_0x385bcf[_0x467a1d],_0x494419)),_0x467a1d++;}_0x467a1d++;}}}}for(const _0x338271 of _0x3c0617){const _0x268a8f=_0x579460['insertions'][_0x338271];for(const _0x125640 of _0x268a8f){const _0x5b14ca=this['_getVidAttributeName'](_0x125640),_0x4667c1=_0x125640['item']['getAttribute'](_0x5b14ca);if(_0x296068['has'](_0x4667c1)){const _0x4dd25c=_0x296068['get'](_0x4667c1);_0x5229ba['has'](_0x4667c1)||_0x5229ba['set'](_0x4667c1,{..._0x4dd25c}),_0x5c1501['set'](_0x4667c1,{..._0x4dd25c});}}}for(const _0x185fd4 of _0x5229ba['keys']())_0x185fd4>=this['_startingRevisionId']&&_0x5229ba['delete'](_0x185fd4);const _0x51a2c1=new Map();for(const _0x29141e of _0x3c0617){let _0x335485=_0x579460['insertions'][_0x29141e];for(const _0xc1f87d of _0x335485)if(_0xc1f87d['item']['is']('element','tableCell')){const _0x58539f=this['_getVidAttributeName'](_0xc1f87d),_0x121f9e=_0xc1f87d['item']['getAttribute'](_0x58539f);if(_0x5c1501['has'](_0x121f9e)){const _0x169384=_0xc1f87d['item']['parent']['parent']['getAttribute']('vid_start'),_0x537f76=_0x51a2c1['get'](_0x169384)||new Set();_0x537f76['add'](_0x5c1501['get'](_0x121f9e)['userId']),_0x51a2c1['set'](_0x169384,_0x537f76);}}_0x335485=_0x579460['deletions'][_0x29141e];for(const _0x69bfb4 of _0x335485)if(_0x69bfb4['item']['is']('element','tableCell')){const _0x4801b2=this['_getVidAttributeName'](_0x69bfb4),_0x495a81=_0x69bfb4['item']['getAttribute'](_0x4801b2);if(_0x5229ba['has'](_0x495a81)){const _0x254324=_0x69bfb4['item']['parent']['parent']['getAttribute']('vid_start'),_0x568e5c=_0x51a2c1['get'](_0x254324)||new Set();_0x568e5c['add'](_0x5229ba['get'](_0x495a81)['userId']),_0x51a2c1['set'](_0x254324,_0x568e5c);}}for(const _0x5df562 of _0x51a2c1['keys']())(_0x5c1501['has'](_0x5df562)||_0x5229ba['has'](_0x5df562))&&_0x51a2c1['delete'](_0x5df562);}for(const _0x56d74f of _0x3c0617){const _0x3ea6a8=_0x579460['insertions'][_0x56d74f];let _0x57195b=null,_0x95dd6=null;for(const _0x1f5ac3 of _0x3ea6a8){const _0x405d57=this['_getVidAttributeName'](_0x1f5ac3),_0x28fd42=_0x1f5ac3['item']['getAttribute'](_0x405d57),_0x1ac7cb=_0x51a2c1['get'](_0x28fd42);_0x1ac7cb&&'elementStart'==_0x1f5ac3['type']&&(_0x57195b=Array['from'](_0x1ac7cb)[0x0],_0x95dd6=_0x1f5ac3['item']['getAttribute']('vid_end')),_0x57195b&&(_0x5229ba['set'](_0x28fd42,{'userId':_0x57195b}),_0x5c1501['set'](_0x28fd42,{'userId':_0x57195b})),_0x28fd42==_0x95dd6&&(_0x57195b=null,_0x95dd6=null);}}const _0x2f9593={},_0x2c8f27=new Set();for(const _0x3fdcea of _0x3c0617){const _0x5dce4b=_0x249acc['deletions'][_0x3fdcea],_0x19432c=_0x249acc['insertions'][_0x3fdcea];for(const {userId:_0x5b4bb4}of this['_touchedMarkers']['values']())null!==_0x5b4bb4&&_0x2c8f27['add'](_0x5b4bb4);for(const {userId:_0x5974ca}of this['_touchedRoots']['values']())null!==_0x5974ca&&_0x2c8f27['add'](_0x5974ca);this['_markChanges'](_0x19432c,_0x579460['insertions'][_0x3fdcea],_0x5c1501,'insertion',_0x2c8f27),this['_markChanges'](_0x5dce4b,_0x579460['deletions'][_0x3fdcea],_0x5229ba,'deletion',_0x2c8f27),_0x2f9593[_0x3fdcea]={'insertions':this['_prepareViewToSave'](_0x19432c),'deletions':this['_prepareViewToSave'](_0x5dce4b),'attachChange':this['_touchedRoots']['get'](_0x3fdcea)||null,'attributesBefore':_0x2fd224(this['_baseRootsAttributes']['get'](_0x3fdcea))||{},'attributesAfter':_0x2fd224(this['_diffRootsAttributes']['get'](_0x3fdcea))};}return{'diffData':_0x2f9593,'authorsIds':Array['from'](_0x2c8f27)};}['_processRootBeforeSave'](_0x32384d){for(const [,_0x48c11d]of _0x32384d['markers']){const _0x51ac09=_0x48c11d['start']['getAncestors']()['filter'](_0x2c9b4f=>'tableCell'==_0x2c9b4f['name']);for(const _0x7f45eb of _0x51ac09)0x1==_0x7f45eb['childCount']&&_0x7f45eb['getChild'](0x0)['is']('element','paragraph')&&_0x7f45eb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5401fd){this['_processRootBeforeSave'](_0x5401fd);const _0x32ba1d=this['editor']['data']['toView'](_0x5401fd,{}),_0x3a2f97=Array['from'](_0x32ba1d['getChildren']())['map'](_0x3ad512=>this['_getViewJson'](_0x3ad512));return JSON['stringify'](_0x3a2f97);}['_getViewJson'](_0x37692d){if(_0x37692d['is']('$text'))return _0x37692d['data'];{const _0x2039f2=_0x37692d;return{'type':Object['keys'](C)['find'](_0x5486a4=>_0x37692d instanceof C[_0x5486a4]),'name':_0x2039f2['name'],'attributes':Array['from'](_0x2039f2['getAttributes']()),'children':Array['from'](_0x2039f2['getChildren']())['map'](_0x48dcc1=>this['_getViewJson'](_0x48dcc1))};}}['_markChanges'](_0x42c40d,_0x1ab684,_0x4b0483,_0x140de0,_0x1f567f){let _0x304dde=null,_0x5abda9=null,_0x45c18e=0x0;const _0x1cdd83=this['editor']['model'];for(let _0x2002b5=0x0;_0x2002b5<_0x1ab684['length'];_0x2002b5++){const _0x338125=this['_getVidAttributeName'](_0x1ab684[_0x2002b5]),_0x325fc9=_0x1ab684[_0x2002b5]['item']['getAttribute'](_0x338125),_0x5e5d34=_0x4b0483['get'](_0x325fc9),_0x591450=_0x2002b5==_0x1ab684['length']-0x1;(!_0x304dde&&_0x5e5d34&&(_0x304dde=_0x5e5d34,_0x5abda9=_0x1ab684[_0x2002b5]),_0x304dde&&(!_0x5e5d34||_0x5e5d34['userId']!=_0x304dde['userId']))&&(_0xf9632d(_0x5e5d34,J(_0x5abda9,_0x42c40d,_0x1cdd83),J(_0x1ab684[_0x2002b5],_0x42c40d,_0x1cdd83)),_0x304dde=_0x5e5d34||null,_0x5abda9=_0x5e5d34?_0x1ab684[_0x2002b5]:null),_0x304dde&&_0x591450&&_0xf9632d(_0x5e5d34,J(_0x5abda9,_0x42c40d,_0x1cdd83),q(_0x1ab684[_0x2002b5],_0x42c40d,_0x1cdd83));}function _0xf9632d(_0x568a3c,_0x1c54c3,_0x3f21bf){const _0x1b0449=_0x304dde['userId'],_0x172a14='revision:'+_0x140de0+':'+_0x1b0449+':'+_0x45c18e++,_0x3e6101=_0x1cdd83['createRange'](_0x1c54c3,_0x3f21bf);_0x42c40d['markers']['set'](_0x172a14,_0x3e6101),null!==_0x1b0449&&_0x1f567f['add'](_0x1b0449);}}['_getVidAttributeName'](_0x484732){switch(_0x484732['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1834fb,_0x3dcef8){_0x1834fb['baseVersion']=null;for(const _0x2de2e7 in _0x1834fb){const _0x289945=_0x1834fb[_0x2de2e7];if(_0x289945 instanceof gt){const _0x33cad6=_0x3dcef8['get'](_0x289945['root']['rootName']);_0x1834fb[_0x2de2e7]=this['_fixPosition'](_0x289945,_0x33cad6);}if(_0x289945 instanceof vt){const _0x4f42cc=_0x3dcef8['get'](_0x289945['root']['rootName']);_0x1834fb[_0x2de2e7]=this['_fixRange'](_0x289945,_0x4f42cc);}'root'===_0x2de2e7&&(_0x1834fb['root']=_0x3dcef8['get'](_0x1834fb['root']['rootName']));}}['_fixRange'](_0x2e33f2,_0x47b0c4){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2e33f2['start'],_0x47b0c4),this['_fixPosition'](_0x2e33f2['end'],_0x47b0c4));}['_fixPosition'](_0x12e5d8,_0x221d6f){return this['editor']['model']['createPositionFromPath'](_0x221d6f,_0x12e5d8['path'],_0x12e5d8['stickiness']);}['_handleInsertOperation'](_0x2c9941){const _0x2e9f08=this['_idsRoots']['get'](_0x2c9941['position']['root']['rootName']),_0xcca516=this['_fixPosition'](_0x2c9941['position'],_0x2e9f08),_0x6ce5de=null===_0x2c9941['_authorId']?null:_0x2c9941['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22120d=_0xcca516['parent'],_0x45dd2c=this['_revisionId'],_0x5f2333=[];for(const _0x525eea of _0x2c9941['nodes'])if(_0x525eea['is']('element'))_0x5f2333['push'](this['_makeIdsRoot'](_0x525eea));else{for(let _0x5ba724=0x0;_0x5ba724<_0x525eea['offsetSize'];_0x5ba724++)_0x5f2333['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3ddb9e=this['_revisionId'];for(let _0x69c146=_0x45dd2c;_0x69c146<_0x3ddb9e;_0x69c146++)this['_touched']['set'](_0x69c146,{'userId':_0x6ce5de});_0x22120d['_insertChild'](_0xcca516['offset'],_0x5f2333);}['_handleMoveOperation'](_0x2901e7){(_0x2901e7=this['_cloneOperation'](_0x2901e7,this['_idsRoots']))['_execute']();const _0x510e15=null===_0x2901e7['_authorId']?null:_0x2901e7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b73c3=_0x2901e7['getMovedRangeStart'](),_0x922a11=_0x2b73c3['parent'],_0x1fac0d=_0x2b73c3['offset'];!function _0x573f04(_0x1d0f5c,_0x8f29f0,_0x48e85f,_0x3012c5){for(let _0xb34b45=_0x48e85f;_0xb34b45<_0x3012c5;_0xb34b45++){const _0x163e3c=_0x8f29f0['getChild'](_0xb34b45);_0x163e3c['is']('element','$text')?_0x1d0f5c['set'](_0x163e3c['getAttribute']('vid'),{'userId':_0x510e15}):(_0x1d0f5c['set'](_0x163e3c['getAttribute']('vid_start'),{'userId':_0x510e15}),_0x573f04(_0x1d0f5c,_0x163e3c,0x0,_0x163e3c['childCount']),_0x1d0f5c['set'](_0x163e3c['getAttribute']('vid_end'),{'userId':_0x510e15}));}}(this['_touched'],_0x922a11,_0x1fac0d,_0x1fac0d+_0x2901e7['howMany']);}['_handleMergeOperation'](_0x27cf8f){const _0x4b548c=null===(_0x27cf8f=this['_cloneOperation'](_0x27cf8f,this['_idsRoots']))['_authorId']?null:_0x27cf8f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44da2f=_0x27cf8f['targetPosition']['parent'],_0x2f0a04=_0x27cf8f['sourcePosition']['parent'],_0x1576a9=_0x44da2f['getAttribute']('vid_end'),_0x28d97b=_0x2f0a04['getAttribute']('vid_start');_0x44da2f['_setAttribute']('vid_end',_0x2f0a04['getAttribute']('vid_end')),_0x2f0a04['_setAttribute']('vid_end',_0x1576a9),this['_touched']['set'](_0x28d97b,{'userId':_0x4b548c}),this['_touched']['set'](_0x1576a9,{'userId':_0x4b548c}),_0x27cf8f['_execute']();}['_handleSplitOperation'](_0x3c4b31){const _0x43740f=null===(_0x3c4b31=this['_cloneOperation'](_0x3c4b31,this['_idsRoots']))['_authorId']?null:_0x3c4b31['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10a7dd=_0x3c4b31['graveyardPosition'],_0x563996=_0x3c4b31['splitPosition']['parent'];_0x3c4b31['_execute']();const _0x316b59=_0x563996['getAttribute']('vid_end'),_0x34e57e=_0x3c4b31['insertionPosition']['nodeAfter'];if(_0x10a7dd){const _0x4718b4=_0x34e57e['getAttribute']('vid_end'),_0x382f7e=_0x563996['getAttribute']('vid_end');_0x563996['_setAttribute']('vid_end',_0x4718b4),_0x34e57e['_setAttribute']('vid_end',_0x382f7e),this['_touched']['set'](_0x563996['getAttribute']('vid_end'),{'userId':_0x43740f}),this['_touched']['set'](_0x34e57e['getAttribute']('vid_start'),{'userId':_0x43740f});}else{const _0x11b9e5=this['_revisionId']++,_0x23c7cf=this['_revisionId']++;_0x563996['_setAttribute']('vid_end',_0x11b9e5),_0x34e57e['_setAttribute']('vid_start',_0x23c7cf),_0x34e57e['_setAttribute']('vid_end',_0x316b59),this['_touched']['set'](_0x11b9e5,{'userId':_0x43740f}),this['_touched']['set'](_0x23c7cf,{'userId':_0x43740f});}}['_handleMarkerOperation'](_0x1a70b7){if(!_0x1a70b7['affectsData'])return;const _0x1ad79c=(_0x1a70b7=this['_cloneOperation'](_0x1a70b7,this['_diffRoots']))['oldRange']?_0x1a70b7['oldRange']['root']:null,_0x97a73d=_0x1a70b7['newRange']?_0x1a70b7['newRange']['root']:null;_0x1ad79c&&this['_markers']['delete'](_0x1a70b7['name']),_0x97a73d&&this['_markers']['set'](_0x1a70b7['name'],_0x1a70b7['newRange']['clone']());const _0x3b4b2b=null===_0x1a70b7['_authorId']?null:_0x1a70b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x543498=_0x1a70b7['name'];if(!this['_touchedMarkers']['has'](_0x543498))return void this['_touchedMarkers']['set'](_0x543498,{'range':_0x1a70b7['oldRange'],'userId':_0x3b4b2b});const _0x4e8f29=this['_touchedMarkers']['get'](_0x543498),_0x24413c=_0x4e8f29['range'],_0x4682b9=_0x1a70b7['newRange'];null==_0x24413c&&null==_0x4682b9||_0x24413c&&_0x4682b9&&_0x24413c['isEqual'](_0x4682b9)?this['_touchedMarkers']['delete'](_0x1a70b7['name']):_0x4e8f29['userId']=_0x3b4b2b;}['_handleRootOperation'](_0x46a26f,_0x55ccb0){this['_diffRoots']['has'](_0x46a26f['rootName'])?this['_diffRoots']['get'](_0x46a26f['rootName'])['_isAttached']=_0x46a26f['isAdd']:(this['_diffRoots']['set'](_0x46a26f['rootName'],B(_0x46a26f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x46a26f['rootName'],{}),_0x55ccb0&&this['_idsRoots']['set'](_0x46a26f['rootName'],B(_0x46a26f['rootName'],!0x0)));const _0x210d57=null===_0x46a26f['_authorId']?null:_0x46a26f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3123a7=this['_touchedRoots']['get'](_0x46a26f['rootName']);_0x3123a7&&_0x3123a7['userId']===_0x210d57?this['_touchedRoots']['delete'](_0x46a26f['rootName']):this['_touchedRoots']['set'](_0x46a26f['rootName'],{'userId':_0x210d57,'isAttached':_0x46a26f['isAdd']});}['_handleRootAttributeOperation'](_0x1384c7){const _0x31863b=this['_diffRootsAttributes']['get'](_0x1384c7['root']['rootName']);null===_0x1384c7['newValue']?delete _0x31863b[_0x1384c7['key']]:_0x31863b[_0x1384c7['key']]=_0x1384c7['newValue'];}}function F(_0x62b126){const _0x457ae7=B(_0x62b126['rootName'],_0x62b126['isAttached']());for(const _0x1ed98a of _0x62b126['getChildren']()){const _0x59d49c=_0x1ed98a['_clone'](!0x0);_0x457ae7['_appendChild'](_0x59d49c);}return _0x457ae7;}function B(_0x3f01dc,_0x40bede=!0x0){const _0x1fefd8=new mt();return _0x1fefd8['rootName']=_0x3f01dc,_0x1fefd8['_isAttached']=_0x40bede,_0x1fefd8['isAttached']=()=>_0x1fefd8['_isAttached'],_0x1fefd8;}function J(_0x276417,_0x11321f,_0x27d1c6){const _0x192059='elementEnd'==_0x276417['type']?_0x27d1c6['createPositionAt'](_0x276417['item'],'end'):_0x27d1c6['createPositionBefore'](_0x276417['item']);return _0x27d1c6['createPositionFromPath'](_0x11321f,_0x192059['path'],_0x192059['stickiness']);}function q(_0x394d01,_0x37b164,_0x57d14d){const _0x3e7eea='elementStart'==_0x394d01['type']?_0x57d14d['createPositionAt'](_0x394d01['item'],0x0):_0x57d14d['createPositionAfter'](_0x394d01['item']);return _0x57d14d['createPositionFromPath'](_0x37b164,_0x3e7eea['path'],_0x3e7eea['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1150cc,_0x1bc255){super(_0x1150cc),this['focusTracker']=new _0x4d1095(),this['keystrokes']=new _0xd9c6cc(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1bc255),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x25f3d0(this);}['render'](){super['render'](),_0x1faf24({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x32a994=_0x2c430a=>_0x2c430a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x32a994),this['keystrokes']['set']('arrowleft',_0x32a994),this['keystrokes']['set']('arrowup',_0x32a994),this['keystrokes']['set']('arrowdown',_0x32a994);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3dff1c){this['revisionNameInputView']['fieldView']['element']['value']=_0x3dff1c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1e85fb){const _0x21297e=new _0x30bc25(this['locale'],_0x41e485),_0x219bb8=_0x21297e['fieldView'];_0x219bb8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x364868=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1e85fb&&(_0x364868+='\x20('+R(this['locale'],'optional')+')'),(_0x21297e['label']=_0x364868,_0x219bb8['on']('input',()=>{this['revisionNameInputValue']=_0x219bb8['element']['value']['trim']();}),_0x21297e);}}class u extends _0x5025c2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3f8d6c=this['editor'],_0x58235e=_0x3f8d6c['plugins']['get']('RevisionTracker');_0x3f8d6c['ui']['componentFactory']['add']('revisionHistory',_0x98b13d=>{const _0x1236e1=_0x2abbe3(_0x98b13d),_0x240848=_0x1236e1['panelView']['children'],_0x381ad8=new _0x1744fc(_0x98b13d),_0x558e00=new _0x1bf823(_0x98b13d),_0x2fa097=new te(_0x98b13d),_0x38afd6=new _0x1bf823(_0x98b13d),_0x204646=new te(_0x98b13d);return _0x1236e1['bind']('isEnabled')['to'](_0x58235e,'isReady',_0x58235e,'isEnabled',_0x3f8d6c,'isReadOnly',(_0x5d8f6c,_0x29e4a3,_0x13b5a7)=>_0x5d8f6c&&_0x29e4a3&&!_0x13b5a7),_0x1236e1['buttonView']['set']({'icon':_0x75562c['history'],'label':R(_0x98b13d,'Revision\x20history'),'tooltip':!0x0}),_0x2fa097['set']({'label':R(_0x98b13d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2fa097['bind']('isEnabled')['to'](_0x58235e,'isReady',_0x58235e,'isEnabled',_0x3f8d6c,'isReadOnly',(_0x2615d4,_0x246fb4,_0x515fcf)=>_0x2615d4&&_0x246fb4&&!_0x515fcf),_0x2fa097['on']('execute',()=>this['_showDialog']()),_0x204646['set']({'label':R(_0x98b13d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x204646['bind']('isEnabled')['to'](_0x58235e,'isReady',_0x3f8d6c,'isReadOnly',(_0x4ec913,_0x4fca65)=>_0x4ec913&&!_0x4fca65),_0x204646['on']('execute',()=>{_0x3f8d6c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1236e1['isOpen']=!0x1,_0x3f8d6c['editing']['view']['focus']();}),_0x558e00['children']['add'](_0x2fa097),_0x38afd6['children']['add'](_0x204646),_0x381ad8['role']='menu',_0x381ad8['items']['addMany']([_0x558e00,_0x38afd6]),_0x240848['add'](_0x381ad8),_0x1236e1;}),_0x3f8d6c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5b7d29=this['editor'],_0x72eaa0=_0x5b7d29['locale'],_0x51e621=new _0x50599e(_0x72eaa0),_0x303b53=new _0x3c8172(_0x72eaa0);_0x51e621['buttonView']['set']({'icon':_0x75562c['history'],'label':R(_0x72eaa0,'Revision\x20history')});const _0x1a6dc3=new _0x172e45(_0x72eaa0,_0x51e621),_0x157dfe=new _0x5900b2(_0x72eaa0);_0x157dfe['set']({'label':R(_0x72eaa0,'Save\x20current\x20revision')}),_0x157dfe['delegate']('execute')['to'](_0x51e621),_0x157dfe['on']('execute',()=>{this['_showDialog']();}),_0x1a6dc3['children']['add'](_0x157dfe),_0x303b53['items']['add'](_0x1a6dc3);const _0x175072=new _0x172e45(_0x72eaa0,_0x51e621),_0x1e8af3=new _0x5900b2(_0x72eaa0);return _0x1e8af3['set']({'label':R(_0x72eaa0,'Open\x20revision\x20history')}),_0x1e8af3['delegate']('execute')['to'](_0x51e621),_0x1e8af3['on']('execute',()=>{_0x5b7d29['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x175072['children']['add'](_0x1e8af3),_0x303b53['items']['add'](_0x175072),_0x51e621['panelView']['children']['add'](_0x303b53),_0x51e621;}['_showDialog'](){const _0x43bb30=this['editor'],_0x3906c1=_0x43bb30['locale'],_0x34cc93=_0x43bb30['plugins']['get']('Dialog'),_0x344530=_0x43bb30['plugins']['get']('RevisionTracker');function _0x31ff29(_0x2be39d){_0x43bb30['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2be39d['revisionName']?_0x2be39d['revisionNameInputView']['errorText']=R(_0x3906c1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x43bb30['plugins']['get'](l)['saveRevision']({'name':_0x2be39d['revisionName']}),_0x34cc93['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x31ff29(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x34cc93['show']({'id':'revisionSave','title':R(_0x3906c1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x43bb30['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x34cc93['hide']()},{'label':R(_0x43bb30['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5ce02c){_0x5ce02c['bind']('isEnabled')['to'](_0x344530,'isReady',_0x344530,'isEnabled',_0x43bb30,'isReadOnly',(_0x36fce9,_0x330b98,_0x487e5c)=>_0x36fce9&&_0x330b98&&!_0x487e5c);},'onExecute':()=>_0x31ff29(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2bd513=this['editor'],_0x16670b=_0x2bd513['locale'];this['_saveRevisionFormView']=new hs(_0x16670b,_0x2bd513['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x22af58,_0x40efc){super(_0x22af58),this['_model']=_0x40efc,this['changeId']=_0x40efc['id'];const _0x3f502c=this['bindTemplate'],_0x3efe3e=R(_0x22af58,_0x40efc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x40efc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x40efc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3f502c['to']('type',_0x43fae4=>'ck-revision-change__'+_0x43fae4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3efe3e}]},{'text':'\x20'+_0x40efc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x429bfb(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x382cf9){super(),this['id']=_0x382cf9['id']||_0x4fb206(),this['author']=_0x382cf9['author'],this['type']=_0x382cf9['type'],this['data']=_0x382cf9['data']||{},this['rootName']=_0x382cf9['rootName'],this['set']('createdAt',_0x382cf9['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2b629a,_0x5d1d8e){this['newRevisionId']=_0x2b629a,this['oldRevisionId']=_0x5d1d8e,this['changes']=new _0x35ddfb();}['_setChanges'](_0x5e2ea2){for(const _0x1e84ea of _0x5e2ea2)this['changes']['add'](_0x1e84ea);}}const Z={'c':_0x27273a,'a':_0x18f5a0,'e':_0x36684c,'r':_0x16c422,'u':_0x5f2150};class d extends _0x5025c2{['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[_0x537e60,_0x4ab179,j];}constructor(_0x29c1cb){super(_0x29c1cb),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',(_0x1f4932,_0x3d2bdf,_0x2ed482)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3fe825=>{for(const _0xf808f3 of this['editor']['editing']['view']['document']['roots'])_0x2ed482?_0x3fe825['removeClass']('ck-editor__editable__overlay',_0xf808f3):_0x3fe825['addClass']('ck-editor__editable__overlay',_0xf808f3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x481fc7=>null!==_0x481fc7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x405f91,_0x25bfb6,_0x2cfd52)=>_0x405f91&&_0x2cfd52?_0x25bfb6['changes']['getIndex'](_0x2cfd52):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x266a3d,_0x4e3767)=>_0x266a3d?_0x4e3767['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4ab179);}['init'](){const _0x59c562=this['editor'],_0x467c3f=new yt(_0x59c562,{'direction':'backward'}),_0x520e29=new yt(_0x59c562,{'direction':'forward'});(_0x59c562['commands']['add']('showPreviousChange',_0x467c3f),_0x59c562['commands']['add']('showNextChange',_0x520e29),_0x59c562['commands']['add']('restoreRevision',new _t(_0x59c562)),this['on']('change:numberOfChanges',()=>{_0x467c3f['refresh'](),_0x520e29['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x59c562['enableReadOnlyMode']('revision-viewer'),_0x59c562['plugins']['has']('WidgetToolbarRepository'))&&_0x59c562['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3c6263){await this['loadRevisionData'](_0x3c6263);const _0x1e46ce={};for(const _0x2b4256 in _0x3c6263['diffData']){if(_0x3c6263['diffData'][_0x2b4256]['attachChange']&&!_0x3c6263['diffData'][_0x2b4256]['attachChange']['isAttached'])continue;const _0x243bc7=this['_removeRevisionMarkers'](JSON['parse'](_0x3c6263['diffData'][_0x2b4256]['insertions'])),_0x3a7177=this['editor']['editing']['view']['document'],_0x428a54=new _0x14c48c(_0x3a7177,_0x243bc7['map'](_0x599337=>this['_getViewObj'](_0x599337)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1e46ce[_0x2b4256]=this['editor']['data']['processor']['toData'](_0x428a54),this['editor']['data']['processor']['useFillerType']('default');}return _0x1e46ce;}async['getRevisionRootsAttributes'](_0x12fdcb){await this['loadRevisionData'](_0x12fdcb);const _0x10f865={};for(const _0x175c9c in _0x12fdcb['diffData'])_0x12fdcb['diffData'][_0x175c9c]['attachChange']&&!_0x12fdcb['diffData'][_0x175c9c]['attachChange']['isAttached']||(_0x10f865[_0x175c9c]=_0x12fdcb['diffData'][_0x175c9c]['attributesAfter']||{});return _0x10f865;}['_removeRevisionMarkers'](_0x287eef){return(_0x287eef=_0x287eef['filter'](_0x9ddcea=>!_0x9ddcea['name']||'revision-start'!==_0x9ddcea['name']&&'revision-end'!==_0x9ddcea['name']))['forEach'](_0x216105=>{'string'!=typeof _0x216105&&(_0x216105['children']=this['_removeRevisionMarkers'](_0x216105['children']),_0x216105['attributes']=_0x216105['attributes']['filter'](_0x294182=>!_0x294182[0x0]['startsWith']('data-revision-')));}),_0x287eef;}async['compare'](_0x1d4595,_0x27725d,_0x544741=!0x1){if(!this['isEnabled'])return;const _0x5bcd02=this['diff'],_0x49aaaf=this['repository'],_0x11b46e='string'==typeof _0x1d4595?_0x49aaaf['getRevision'](_0x1d4595):_0x1d4595,_0x47c6e6='string'==typeof _0x27725d?_0x49aaaf['getRevision'](_0x27725d):_0x27725d,_0x5e979c=_0x11b46e['id'],_0x5d25da=_0x47c6e6?_0x47c6e6['id']:null;if(!_0x544741&&this['diff']&&this['diff']['newRevisionId']===_0x5e979c&&this['diff']['oldRevisionId']===_0x5d25da)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5e979c,_0x5d25da);const _0x340266=this['_getRevisionsRange'](_0x11b46e,_0x47c6e6,!0x0)['map'](_0x3a3806=>this['loadRevisionData'](_0x3a3806));return _0x340266['push'](new Promise(_0x95a7c1=>{setTimeout(_0x95a7c1,0x14);})),Promise['all'](_0x340266)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x230002=this['_getDiff'](_0x5e979c,_0x5d25da);for(const _0x50bfb1 of _0x230002['changes'])this['_changeIdToChange']['set'](_0x50bfb1['id'],_0x50bfb1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xfd7ee3=>{for(const _0x580ddc of this['editor']['model']['document']['getRootNames']())_0xfd7ee3['detachRoot'](_0x580ddc);for(const _0x548ea3 of Object['keys'](_0x230002['model'])){const _0xab51d0=_0xfd7ee3['addRoot'](_0x548ea3);for(const _0x1e1441 of Object['keys'](_0x230002['attributes'][_0x548ea3]))_0xfd7ee3['setAttribute'](_0x1e1441,_0x230002['attributes'][_0x548ea3][_0x1e1441],_0xab51d0);_0xfd7ee3['insert'](_0x230002['model'][_0x548ea3],_0xab51d0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x230002['changes'])),this['isReady']=!0x0;})['catch'](_0x1d8280=>{console['error'](_0x1d8280),this['_cleanUp'](),_0x5bcd02&&(this['diff']=_0x5bcd02),this['isReady']=!0x0;});}['addRevisionData'](_0x30b3f2,_0x522ed1){const _0x382572=this['repository']['createRevision'](_0x30b3f2);return _0x382572['on']('_update',(_0x2c743c,_0x385660,_0x5d8392)=>_0x522ed1(_0x385660,_0x5d8392,_0x382572)),this['repository']['addRevision'](_0x382572),_0x382572;}['loadRevisionData'](_0xfe0cfe){if(!_0xfe0cfe||_0xfe0cfe['diffData'])return Promise['resolve']();{const _0x2d2841=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2d2841,'revisionId':_0xfe0cfe['id']})['then'](_0x31942e=>{_0xfe0cfe['_update']({'diffData':_0x31942e['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},_0x4de7b1=>{for(const _0x4a1035 of this['editor']['model']['document']['getRootNames']())_0x4de7b1['detachRoot'](_0x4a1035);});}['_sortAndFilterDiffChanges'](_0x133895){const _0x211091=[],_0x478402=new Map();for(const _0x51e188 of this['editor']['model']['document']['getRootNames']()){const _0x12ce34=this['editor']['editing']['view']['getDomRoot'](_0x51e188);if(!_0x12ce34)continue;const _0x935e0a=_0x12ce34['getClientRects']()['item'](0x0);_0x935e0a&&(_0x211091['push'](_0x51e188),_0x478402['set'](_0x51e188,_0x935e0a));}return _0x211091['sort']((_0x249b62,_0x5246f4)=>{const _0x52f5c2=_0x478402['get'](_0x249b62),_0x5b20ea=_0x478402['get'](_0x5246f4);return _0x52f5c2['y']-_0x5b20ea['y']||_0x52f5c2['x']-_0x5b20ea['x'];}),(_0x133895=_0x133895['filter'](_0x1c3d3c=>_0x211091['includes'](_0x1c3d3c['rootName'])))['sort']((_0x4c4214,_0x39bd1c)=>_0x211091['indexOf'](_0x4c4214['rootName'])-_0x211091['indexOf'](_0x39bd1c['rootName'])),_0x133895;}['_makeTape'](_0x26d6fa){const _0x2cb1dd=Array['from'](_0x26d6fa['markers'])['filter'](([_0x4f9c8b,_0x1fc2b7])=>_0x4f9c8b['startsWith']('revision:')&&!_0x1fc2b7['isCollapsed']),_0x1c4291=Array['from'](this['editor']['model']['createRangeIn'](_0x26d6fa)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2cb1dd['length'])for(const _0x333f13 of _0x1c4291){const [_0x5185b9,_0x37720c]=_0x2cb1dd[0x0],[,_0xc62f9d,_0x3c6c77]=_0x5185b9['split'](':');if(_0x37720c['end']['isEqual'](_0x333f13['nextPosition'])&&_0x2cb1dd['shift'](),(_0x333f13['previousPosition']['isEqual'](_0x37720c['start'])||_0x333f13['previousPosition']['isAfter'](_0x37720c['start']))&&('insertion'==_0xc62f9d?_0x333f13['isAdded']={'userId':_0x3c6c77}:'deletion'==_0xc62f9d&&(_0x333f13['isRemoved']={'userId':_0x3c6c77})),0x0==_0x2cb1dd['length'])break;}return _0x1c4291;}['_refreshStartEndIndex'](_0x4317bb){const _0x56a5a1=new Map();for(let _0x2a2b11=0x0;_0x2a2b11<_0x4317bb['length'];_0x2a2b11++)'text'===_0x4317bb[_0x2a2b11]['type']?(_0x4317bb[_0x2a2b11]['item']['startIndex']=_0x2a2b11,_0x4317bb[_0x2a2b11]['item']['endIndex']=_0x2a2b11):('elementStart'===_0x4317bb[_0x2a2b11]['type']?_0x4317bb[_0x2a2b11]['item']['startIndex']=_0x2a2b11:'elementEnd'===_0x4317bb[_0x2a2b11]['type']&&(_0x4317bb[_0x2a2b11]['item']['endIndex']=_0x2a2b11),_0x56a5a1['set'](_0x4317bb[_0x2a2b11]['id'],_0x2a2b11));for(const _0x33cd7e of _0x56a5a1['values']())'elementStart'===_0x4317bb[_0x33cd7e]['type']?_0x4317bb[_0x33cd7e]['item']['endIndex']=_0x56a5a1['get'](_0x4317bb[_0x33cd7e]['pairId']):'elementEnd'===_0x4317bb[_0x33cd7e]['type']&&(_0x4317bb[_0x33cd7e]['item']['startIndex']=_0x56a5a1['get'](_0x4317bb[_0x33cd7e]['pairId']));}['_processTape'](_0x859eb6){for(let _0x3c1350=0x0;_0x3c1350<_0x859eb6['length'];_0x3c1350++){if('elementStart'===_0x859eb6[_0x3c1350]['type'])_0x859eb6[_0x3c1350]['item']['startIndex']=_0x3c1350;else{if('elementEnd'===_0x859eb6[_0x3c1350]['type']){_0x859eb6[_0x3c1350]['item']['endIndex']=_0x3c1350;const _0x1ebfc7=_0x859eb6[_0x3c1350]['item']['startIndex'];_0x859eb6[_0x1ebfc7]['pairId']=_0x859eb6[_0x3c1350]['id'],_0x859eb6[_0x3c1350]['pairId']=_0x859eb6[_0x1ebfc7]['id'];}else _0x859eb6[_0x3c1350]['item']['startIndex']=_0x3c1350,_0x859eb6[_0x3c1350]['item']['endIndex']=_0x3c1350,_0x859eb6[_0x3c1350]['pairId']=null;}_0x859eb6[_0x3c1350]['markersStart']||(_0x859eb6[_0x3c1350]['markersStart']=[],_0x859eb6[_0x3c1350]['markersEnd']=[]);}}['_markInsertions'](_0x23341a,_0x537be7){const _0x3b8d30=_0x23341a['filter'](_0x289e45=>!_0x289e45['isAdded']);for(let _0x24d0f9=0x0;_0x24d0f9<_0x537be7['length'];_0x24d0f9++)_0x537be7[_0x24d0f9]['isAdded']&&(_0x3b8d30[_0x24d0f9]['isAdded']=_0x537be7[_0x24d0f9]['isAdded']);}['_makeModelFromViewString'](_0x2ddeb0){const _0x5c11ad=JSON['parse'](_0x2ddeb0),_0x255057=this['editor']['editing']['view']['document'],_0x4c59c8=new _0x14c48c(_0x255057,_0x5c11ad['map'](_0x3a0abc=>this['_getViewObj'](_0x3a0abc)));return this['editor']['data']['toModel'](_0x4c59c8);}['_getViewObj'](_0xa55afd){const _0x3e97bd=this['editor']['editing']['view']['document'];if('string'==typeof _0xa55afd)return new _0x4dec75(_0x3e97bd,_0xa55afd);{const _0x15ce7c=_0xa55afd['children']['map'](_0x52c567=>this['_getViewObj'](_0x52c567));return new(Z[_0xa55afd['type']]||_0x195c96)(_0x3e97bd,_0xa55afd['name'],_0xa55afd['attributes'],_0x15ce7c);}}['_getDiff'](_0xa1683d,_0xb07923=null){const _0x43f857=this['repository']['getRevision'](_0xa1683d),_0x3a89ee=_0xb07923?this['repository']['getRevision'](_0xb07923):null,_0x16f921=this['_getRevisionsRange'](_0x43f857,_0x3a89ee),_0x5963c5=_0x16f921[_0x16f921['length']-0x1],_0x4f1252=new Map(),_0xd5778b={'model':{},'attributes':{},'changes':[]},_0x225be8=new Set(),_0x4043c7=new Map();for(let _0x290a7a=_0x16f921['length']-0x1;_0x290a7a>=0x0;_0x290a7a--){const _0x11a816=_0x16f921[_0x290a7a];for(const _0x5795c2 of Object['keys'](_0x11a816['diffData']))if(_0x11a816['diffData'][_0x5795c2]['attachChange']){const _0x90a160=_0x11a816['diffData'][_0x5795c2]['attachChange'];_0x90a160['isAttached']?(_0x225be8['add'](_0x5795c2),_0x4043c7['has'](_0x5795c2)&&_0x4043c7['get'](_0x5795c2)['userId']==_0x90a160['userId']?_0x4043c7['delete'](_0x5795c2):_0x4043c7['set'](_0x5795c2,_0x90a160)):_0x4043c7['has'](_0x5795c2)?(_0x225be8['delete'](_0x5795c2),_0x4043c7['delete'](_0x5795c2)):(_0x225be8['add'](_0x5795c2),_0x4043c7['set'](_0x5795c2,_0x90a160));}else _0x225be8['add'](_0x5795c2);}for(const _0x169cd7 of _0x225be8){const _0x5f148b=_0x4043c7['has'](_0x169cd7)&&!_0x4043c7['get'](_0x169cd7)['isAttached'];let _0x28a2d0=_0x5f148b?_0x16f921['length']-0x1:0x0;const _0x2d73e9=_0x5f148b?-0x1:0x1;for(;_0x16f921[_0x28a2d0];){const _0x1157ca=_0x16f921[_0x28a2d0];if(_0x1157ca['diffData'][_0x169cd7]){const _0xff9982=_0x5f148b?_0x1157ca['diffData'][_0x169cd7]['attributesBefore']:_0x1157ca['diffData'][_0x169cd7]['attributesAfter'];_0xd5778b['attributes'][_0x169cd7]=_0xff9982?_0x2fd224(_0xff9982):{};break;}_0x28a2d0+=_0x2d73e9;}}for(const _0x399261 of _0x16f921){_0x399261['model']={};for(const _0x109d99 of _0x399261['authors'])_0x4f1252['set'](_0x109d99['id'],_0x109d99);for(const _0x1bb1ed of _0x225be8){const _0x4f2a25=_0x399261['diffData'][_0x1bb1ed]?_0x399261['diffData'][_0x1bb1ed]['insertions']:'[]',_0x484354=_0x399261['diffData'][_0x1bb1ed]?_0x399261['diffData'][_0x1bb1ed]['deletions']:'[]';_0x399261['model'][_0x1bb1ed]={'insertions':this['_makeModelFromViewString'](_0x4f2a25),'deletions':this['_makeModelFromViewString'](_0x484354)};}}for(const _0x33f34e of _0x225be8){let _0x1adcb3=null,_0x2d3d31=0x0;const _0x392e75=new Map(Array['from'](_0x43f857['model'][_0x33f34e]['insertions']['markers'])['filter'](([_0x1c9b7e])=>!_0x1c9b7e['startsWith']('revision:')));let _0x102795=0x0;for(const _0x5e65ce of _0x16f921){const _0x59a18f=this['_makeTape'](_0x5e65ce['model'][_0x33f34e]['insertions']);_0x5e65ce==_0x43f857?(_0x1adcb3=_0x59a18f,_0x2d3d31=_0x1adcb3['length'],_0x1adcb3['forEach'](_0x521b2b=>{_0x521b2b['id']=_0x102795++;}),this['_processTape'](_0x1adcb3)):this['_markInsertions'](_0x1adcb3,_0x59a18f);const _0x51a7f8=_0x1adcb3['filter'](_0x2c87e0=>!_0x2c87e0['isAdded'])['map'](_0x2a5965=>_0x2a5965['id']);let _0x34a71b=0x0;const _0x537579=this['_makeTape'](_0x5e65ce['model'][_0x33f34e]['deletions']);_0x537579['forEach'](_0x30b90c=>{_0x30b90c['isRemoved']?_0x30b90c['id']=_0x2d3d31++:_0x30b90c['id']=_0x51a7f8[_0x34a71b++];}),this['_processTape'](_0x537579),this['_setDistance'](_0x1adcb3,'isAdded'),this['_setDistance'](_0x537579,'isRemoved'),_0x5e65ce==_0x43f857&&this['_markMarkers'](_0x1adcb3,_0x392e75),_0x1adcb3=this['_joinTapes'](_0x1adcb3,_0x537579),this['_refreshStartEndIndex'](_0x1adcb3),this['_setDistance'](_0x1adcb3,'isRemoved');}_0x1adcb3=_0x1adcb3['filter'](_0x29aed8=>!(_0x29aed8['isAdded']&&_0x29aed8['isRemoved']));const _0x449e4d=new Map(_0x5963c5['model'][_0x33f34e]['deletions']['markers']),_0x147be5=new Set(_0x392e75['keys']());for(const _0x3529d7 of _0x449e4d['keys']())_0x147be5['delete'](_0x3529d7);this['_markSuggestions'](_0x1adcb3,_0x147be5),this['_fixObsoleteTags'](_0x1adcb3),_0x1adcb3=this['_removeMissingPairs'](_0x1adcb3),_0x1adcb3=this['_markMismatchedRemovedTags'](_0x1adcb3),_0x1adcb3=this['_removeUnsupportedChanges'](_0x1adcb3);const {root:_0x4843ca,changes:_0x4d84ac}=this['_makeModelFromTape'](_0x1adcb3,_0x4f1252,_0x33f34e);_0xd5778b['model'][_0x33f34e]=_0x4843ca;const _0x5d0bde=_0x4043c7['get'](_0x33f34e);if(_0x5d0bde){const _0x3a2755=_0x4f1252['get'](_0x5d0bde['userId']),_0x45f2a3=new r({'author':_0x3a2755,'type':_0x5d0bde['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x33f34e});_0x4d84ac['unshift'](_0x45f2a3),_0xd5778b['attributes'][_0x33f34e]['revisionHistoryAttachChange']=_0x45f2a3['id'];}_0xd5778b['changes']=_0xd5778b['changes']['concat'](_0x4d84ac);}return _0xd5778b;}['_markMarkers'](_0x437bce,_0x30dcda){for(let _0x4d13da=0x0;_0x4d13da<_0x437bce['length'];_0x4d13da++)for(const [_0x3d25e7,_0x37e777]of _0x30dcda)_0x37e777['start']['isEqual'](_0x437bce[_0x4d13da]['previousPosition'])&&_0x437bce[_0x4d13da]['markersStart']['push'](_0x3d25e7),_0x37e777['end']['isEqual'](_0x437bce[_0x4d13da]['nextPosition'])&&_0x437bce[_0x4d13da]['markersEnd']['push'](_0x3d25e7);}['_joinTapes'](_0x59cb6f,_0x5e30f8){let _0x2b84bc=[],_0x5c5aa9=0x0,_0x2b391f=0x0;for(;_0x5c5aa9<_0x59cb6f['length']||_0x2b391f<_0x5e30f8['length'];){const _0x3ae7b8=_0x59cb6f[_0x5c5aa9]||{},_0x25f760=_0x5e30f8[_0x2b391f]||{};if(_0x3ae7b8['id']==_0x25f760['id'])_0x5c5aa9++,_0x2b391f++,_0x2b84bc['push'](_0x3ae7b8);else{if(_0x25f760['isRemoved']&&_0x3ae7b8['isAdded']){const {commonTape:_0x3fddae,iEnd:_0x233978,jEnd:_0x59f0a5}=this['_threeWayMerge'](_0x59cb6f,_0x5c5aa9,_0x5e30f8,_0x2b391f);_0x2b84bc=_0x2b84bc['concat'](_0x3fddae),_0x5c5aa9=_0x233978,_0x2b391f=_0x59f0a5;}else _0x25f760['isRemoved']?(_0x2b391f++,_0x2b84bc['push'](_0x25f760)):(_0x5c5aa9++,_0x2b84bc['push'](_0x3ae7b8));}}return _0x2b84bc;}['_markSuggestions'](_0x3089fc,_0x1724c3){const _0x2e67b1=[];for(let _0x563f8d=0x0;_0x563f8d<_0x3089fc['length'];_0x563f8d++){for(let _0x166775=0x0;_0x166775<_0x3089fc[_0x563f8d]['markersStart']['length'];_0x166775++){const _0xce7e9f=_0x3089fc[_0x563f8d]['markersStart'][_0x166775];if(!_0x1724c3['has'](_0xce7e9f))continue;const {group:_0x51e689,type:_0x572e10,authorId:_0x34f41a}=_0x6e54e(_0xce7e9f);'revision-suggestion'!=_0x51e689||'insertion'!=_0x572e10&&'deletion'!=_0x572e10||(_0x2e67b1['unshift']({'type':_0x572e10,'name':_0xce7e9f,'userId':_0x34f41a}),_0x3089fc[_0x563f8d]['markersStart']['splice'](_0x166775,0x1),_0x166775--);}_0x3d9801(_0x3089fc[_0x563f8d]);for(let _0x3bcada=0x0;_0x3bcada<_0x3089fc[_0x563f8d]['markersEnd']['length'];_0x3bcada++){const _0x4c67f5=_0x3089fc[_0x563f8d]['markersEnd'][_0x3bcada];if(!_0x1724c3['has'](_0x4c67f5))continue;const {group:_0x521727,type:_0x3bc45e}=_0x6e54e(_0x4c67f5);if('revision-suggestion'!=_0x521727||'insertion'!=_0x3bc45e&&'deletion'!=_0x3bc45e)continue;_0x3089fc[_0x563f8d]['markersEnd']['splice'](_0x3bcada,0x1),_0x3bcada--;const _0x3e544d=_0x2e67b1['findIndex'](_0xc7be98=>_0xc7be98['name']==_0x4c67f5);_0x3e544d>-0x1&&_0x2e67b1['splice'](_0x3e544d,0x1);}}function _0x6e54e(_0x178e99){const _0x342bd1=_0x178e99['split'](':');return{'group':_0x342bd1[0x0],'type':_0x342bd1[0x1],'subType':_0x342bd1['length']>=0x5?_0x342bd1[0x2]:null,'id':_0x342bd1['length']<0x5?_0x342bd1[0x2]:_0x342bd1[0x3],'authorId':_0x342bd1['length']<0x5?_0x342bd1[0x3]:_0x342bd1[0x4],'markerCount':0x6==_0x342bd1['length']?_0x342bd1[0x5]:null};}function _0x3d9801(_0x279fc3){for(let _0x5c14ba=0x0;_0x5c14ba<_0x2e67b1['length'];_0x5c14ba++){if(_0x279fc3['isAdded']&&'insertion'==_0x2e67b1[_0x5c14ba]['type'])return _0x279fc3['isAddSuggestion']=_0x2e67b1[_0x5c14ba],void delete _0x279fc3['isAdded'];if(!_0x279fc3['isAdded']&&!_0x279fc3['isRemoved']&&'deletion'==_0x2e67b1[_0x5c14ba]['type'])return void(_0x279fc3['isRemoveSuggestion']=_0x2e67b1[_0x5c14ba]);}}}['_setDistance'](_0x4d45f7,_0x50a9e9){let _0x2d0504=0x0,_0x41f49e=!0x1;const _0x2777f7=new Map();for(const _0x57bfb0 of _0x4d45f7)_0x57bfb0[_0x50a9e9]?_0x41f49e&&(_0x2d0504++,_0x41f49e=!0x1):(_0x2d0504++,_0x41f49e=!0x0),_0x2777f7['set'](_0x57bfb0['id'],_0x2d0504);for(let _0x7c7af7=0x0;_0x7c7af7<_0x4d45f7['length'];_0x7c7af7++){if('isRemoved'==_0x50a9e9&&_0x4d45f7[_0x7c7af7]['isAdded']||'isAdded'==_0x50a9e9&&_0x4d45f7[_0x7c7af7]['isRemoved'])continue;if('text'==_0x4d45f7[_0x7c7af7]['type']){_0x4d45f7[_0x7c7af7]['distance']=0x0;continue;}const _0x161940=_0x2777f7['get'](_0x4d45f7[_0x7c7af7]['pairId']),_0x25febe=_0x2777f7['get'](_0x4d45f7[_0x7c7af7]['id']);_0x4d45f7[_0x7c7af7]['distance']=_0x161940-_0x25febe;}}['_getRevisionsRange'](_0x3d6c4e,_0x23f303,_0x35ee2a=!0x1){const _0x24249c=[];let _0x53d2b6=this['repository']['getIndex'](_0x3d6c4e),_0x2f80b2=this['repository']['getIndex'](_0x23f303);for(-0x1==_0x2f80b2&&(_0x2f80b2=this['repository']['_revisions']['length'],_0x35ee2a=!0x1);_0x53d2b6<_0x2f80b2;)_0x24249c['push'](this['repository']['getRevision'](_0x53d2b6)),_0x53d2b6++;return _0x35ee2a&&_0x24249c['push'](this['repository']['getRevision'](_0x53d2b6)),_0x24249c;}['_threeWayMerge'](_0xbd6af8,_0x5177d2,_0x40eff9,_0x387859){const _0x15d94c=this['editor']['model']['schema'];let _0x36d61f=_0x5177d2;for(;_0xbd6af8[_0x36d61f]&&_0xbd6af8[_0x36d61f]['isAdded'];)_0x36d61f++;let _0x3545a4=_0x387859;for(;_0x40eff9[_0x3545a4]&&_0x40eff9[_0x3545a4]['isRemoved'];)_0x3545a4++;_0x46880a(_0xbd6af8,_0x5177d2,_0x36d61f),_0x46880a(_0x40eff9,_0x387859,_0x3545a4);const _0x1e6200=_0x40eff9['slice'](_0x387859,_0x3545a4)['concat'](_0xbd6af8['slice'](_0x5177d2,_0x36d61f));return _0x1e6200['sort']((_0x2b3af0,_0xf63608)=>_0x2b3af0['side']!=_0xf63608['side']?_0x2b3af0['side']-_0xf63608['side']:_0x2b3af0['level']!=_0xf63608['level']?_0x2b3af0['level']-_0xf63608['level']:_0x2b3af0['distance']!=_0xf63608['distance']?_0xf63608['distance']-_0x2b3af0['distance']:!!_0x2b3af0['isAdded']!=!!_0xf63608['isAdded']?-0x1==_0x2b3af0['side']||0x0==_0x2b3af0['side']?_0x2b3af0['isAdded']?-0x1:0x1:_0x2b3af0['isAdded']?0x1:-0x1:_0x2b3af0['index']-_0xf63608['index']),{'commonTape':_0x1e6200,'iEnd':_0x36d61f,'jEnd':_0x3545a4};function _0x46880a(_0x3e9b24,_0x596788,_0x21cbd0){let _0x4210ab=-0x1,_0x24281b=Number['POSITIVE_INFINITY'],_0x35a6d9=!0x0;for(let _0x584fbe=_0x596788;_0x584fbe<_0x21cbd0;_0x584fbe++)if(_0x15d94c['isInline'](_0x3e9b24[_0x584fbe]['item'])||(_0x35a6d9=!0x1),_0x3e9b24[_0x584fbe]['item']['startIndex']<_0x596788&&(_0x4210ab=_0x584fbe),_0x3e9b24[_0x584fbe]['item']['endIndex']>=_0x21cbd0){_0x24281b=_0x584fbe;break;}_0x35a6d9&&(_0x4210ab=_0x21cbd0-0x1);for(let _0x122cd5=_0x596788;_0x122cd5<_0x21cbd0;_0x122cd5++)_0x3e9b24[_0x122cd5]['side']=_0x122cd5<=_0x4210ab?-0x1:_0x122cd5<_0x24281b?0x0:0x1,_0x3e9b24[_0x122cd5]['index']=_0x122cd5;let _0x30155c=0x0;for(let _0x54c370=_0x596788;_0x54c370<=_0x4210ab;_0x54c370++)0x0==_0x3e9b24[_0x54c370]['distance']?_0x3e9b24[_0x54c370]['level']=_0x30155c:(_0x30155c++,_0x3e9b24[_0x54c370]['level']=_0x30155c,_0x30155c++);for(let _0x2b34f4=_0x596788;_0x2b34f4<_0x21cbd0;_0x2b34f4++)0x0==_0x3e9b24[_0x2b34f4]['side']&&(_0x3e9b24[_0x2b34f4]['level']=_0x30155c);_0x30155c=0x0;for(let _0x11757f=_0x21cbd0-0x1;_0x11757f>=_0x24281b;_0x11757f--)0x0==_0x3e9b24[_0x11757f]['distance']?_0x3e9b24[_0x11757f]['level']=_0x30155c:(_0x30155c--,_0x3e9b24[_0x11757f]['level']=_0x30155c,_0x30155c--);}}['_fixObsoleteTags'](_0x287060){const _0x530893=new Map(),_0xfd5e5f=this['editor']['model']['schema'];for(let _0x3e8164=0x1;_0x3e8164<_0x287060['length'];_0x3e8164++){let _0x3f312a,_0x25253b,_0x28b3ae;const _0x4c8e89=_0x287060[_0x3e8164],_0x553411=_0x287060[_0x3e8164-0x1];if('text'==_0x4c8e89['type'])continue;if(_0x4c8e89['type']!=_0x553411['type'])continue;if(!_0xfd5e5f['isBlock'](_0x553411['item'])||_0xfd5e5f['isLimit'](_0x553411['item']))continue;if(!_0xfd5e5f['isBlock'](_0x4c8e89['item'])||_0xfd5e5f['isLimit'](_0x4c8e89['item']))continue;if((_0x287060[_0x3e8164]['isAdded']||_0x287060[_0x3e8164]['isAddSuggestion'])&&_0x287060[_0x3e8164-0x1]['isRemoved'])_0x3f312a=_0x287060[_0x3e8164],_0x25253b=_0x287060[_0x3e8164-0x1],_0x28b3ae=_0x3e8164-0x1;else{if(!_0x287060[_0x3e8164]['isRemoved']||!_0x287060[_0x3e8164-0x1]['isAdded']&&!_0x287060[_0x3e8164-0x1]['isAddSuggestion'])continue;_0x3f312a=_0x287060[_0x3e8164-0x1],_0x25253b=_0x287060[_0x3e8164],_0x28b3ae=_0x3e8164;}const _0x267809=_0x3f312a['level']==_0x25253b['level'],_0x5314f2=Math['abs'](_0x3f312a['level'])<Math['abs'](_0x25253b['level'])&&0x0==_0x25253b['distance'];(_0x267809||_0x5314f2)&&(_0x530893['set'](_0x25253b['id'],_0x3f312a['id']),_0x287060['splice'](_0x28b3ae,0x1),_0x3e8164--,_0x3f312a['isAdded']=!0x1);}for(let _0x5efc24=0x0;_0x5efc24<_0x287060['length'];_0x5efc24++)_0x530893['has'](_0x287060[_0x5efc24]['pairId'])&&(_0x287060[_0x5efc24]['pairId']=_0x530893['get'](_0x287060[_0x5efc24]['pairId']));}['_removeMissingPairs'](_0x149a96){const _0x4ca7a7=new Set(_0x149a96['map'](_0x147111=>_0x147111['id']));for(let _0x5a1ac8=0x0;_0x5a1ac8<_0x149a96['length'];_0x5a1ac8++)_0x4ca7a7['has'](_0x149a96[_0x5a1ac8]['pairId'])||0x0==_0x149a96[_0x5a1ac8]['distance']||(_0x149a96[_0x5a1ac8]['isIncorrect']=!0x0);return _0x149a96['filter'](_0x413b22=>!_0x413b22['isIncorrect']);}['_markMismatchedRemovedTags'](_0x233b71){const _0x4e50ba=new Set();for(let _0xd8f3de=0x0;_0xd8f3de<_0x233b71['length'];_0xd8f3de++){if(_0x4e50ba['has'](_0x233b71[_0xd8f3de]['id'])&&_0x233b71[_0xd8f3de]['isRemoved']&&(_0x233b71[_0xd8f3de]['isIncorrect']=!0x0),_0x233b71[_0xd8f3de]['isIncorrect'])continue;if(0x0==_0x233b71[_0xd8f3de]['distance'])continue;if('elementStart'!=_0x233b71[_0xd8f3de]['type'])continue;if(null==_0x233b71[_0xd8f3de]['pairId'])continue;let _0x4d090d=_0xd8f3de+0x1,_0x59ca8c=0x0;for(;_0x233b71[_0x4d090d]['id']!=_0x233b71[_0xd8f3de]['pairId'];)'elementStart'==_0x233b71[_0x4d090d]['type']?_0x59ca8c++:'elementEnd'==_0x233b71[_0x4d090d]['type']&&_0x59ca8c--,_0x4d090d++;if(0x0!=_0x59ca8c){if(_0x233b71[_0xd8f3de]['isRemoved'])_0x233b71[_0xd8f3de]['isIncorrect']=!0x0;else{for(;_0x4d090d!=_0xd8f3de;)_0x233b71[_0x4d090d]['isRemoved']&&0x0!=_0x233b71[_0x4d090d]['distance']&&(_0x233b71[_0x4d090d]['isIncorrect']=!0x0,_0x4e50ba['add'](_0x233b71[_0x4d090d]['pairId'])),_0x4d090d--;}}}return _0x233b71['filter'](_0x50744b=>!_0x50744b['isIncorrect']);}['_removeUnsupportedChanges'](_0x34ac0f){const _0x5d6441=this['editor']['model']['schema'];for(let _0x1e7d9c=0x0;_0x1e7d9c<_0x34ac0f['length'];_0x1e7d9c++){if(!(_0x34ac0f[_0x1e7d9c]['isAdded']||_0x34ac0f[_0x1e7d9c]['isAddSuggestion']||_0x34ac0f[_0x1e7d9c]['isRemoved']||_0x34ac0f[_0x1e7d9c]['isRemoveSuggestion']))continue;if(0x0==_0x34ac0f[_0x1e7d9c]['distance'])continue;const _0x3851d1=_0x34ac0f[_0x1e7d9c]['item'];_0x5d6441['isBlock'](_0x3851d1)||_0x5d6441['isLimit'](_0x3851d1)||(_0x34ac0f[_0x1e7d9c]['isAdded']&&delete _0x34ac0f[_0x1e7d9c]['isAdded'],_0x34ac0f[_0x1e7d9c]['isAddSuggestion']&&delete _0x34ac0f[_0x1e7d9c]['isAddSuggestion'],_0x34ac0f[_0x1e7d9c]['isRemoveSuggestion']&&delete _0x34ac0f[_0x1e7d9c]['isRemoveSuggestion'],_0x34ac0f[_0x1e7d9c]['isRemoved']&&(_0x34ac0f[_0x1e7d9c]['isIncorrect']=!0x0));}return _0x34ac0f['filter'](_0x3c423f=>!_0x3c423f['isIncorrect']);}['_makeModelFromTape'](_0x229fb5,_0x2c7a77,_0x4e83aa){const _0x4e1236=new mt(),_0x15e67a=[],_0x2ceee4=new Map(),_0x2f6a56=this['editor']['model'],_0x8b1935=_0x2f6a56['schema'],_0x22f84b=[_0x4e1236],_0x382c4d={},_0x5cf479={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2a785f=null;const _0x4c098=[0x0];for(let _0x57f0c4=0x0;_0x57f0c4<_0x229fb5['length'];_0x57f0c4++)if('elementStart'===_0x229fb5[_0x57f0c4]['type']){_0x229fb5[_0x57f0c4]['previousPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098);const _0x1e960e=new ft(_0x229fb5[_0x57f0c4]['item']['name'],_0x229fb5[_0x57f0c4]['item']['getAttributes']());_0x22f84b[0x0]['_appendChild'](_0x1e960e),_0x4c098['push'](0x0),_0x22f84b['unshift'](_0x1e960e),_0x229fb5[_0x57f0c4]['nextPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098);}else'elementEnd'===_0x229fb5[_0x57f0c4]['type']?(_0x22f84b['shift'](),_0x229fb5[_0x57f0c4]['previousPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098),_0x4c098['pop'](),_0x4c098[_0x4c098['length']-0x1]++,_0x229fb5[_0x57f0c4]['nextPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098)):(_0x229fb5[_0x57f0c4]['previousPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098),_0x2a785f?_0x2a785f['_data']+=_0x229fb5[_0x57f0c4]['item']['data']:_0x2a785f=new wt(_0x229fb5[_0x57f0c4]['item']['data'],_0x229fb5[_0x57f0c4]['item']['getAttributes']()),_0x229fb5[_0x57f0c4+0x1]&&'text'===_0x229fb5[_0x57f0c4+0x1]['type']&&_0x246712(_0x2a785f,_0x229fb5[_0x57f0c4+0x1]['item'])||(_0x22f84b[0x0]['_appendChild'](_0x2a785f),_0x2a785f=null),_0x4c098[_0x4c098['length']-0x1]+=_0x229fb5[_0x57f0c4]['item']['offsetSize'],_0x229fb5[_0x57f0c4]['nextPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098));for(let _0x4c33e0=0x0;_0x4c33e0<_0x229fb5['length'];_0x4c33e0++){const _0x4ad880=_0x229fb5[_0x4c33e0]['previousPosition'],_0x186d2b=_0x229fb5[_0x4c33e0]['nextPosition'];for(const _0x8d6218 of _0x229fb5[_0x4c33e0]['markersStart'])_0x2ceee4['set'](_0x8d6218,{'start':_0x4ad880,'end':null});_0x24de9d('isRemoveSuggestion',_0x4c33e0,_0x4ad880,_0x186d2b),_0x24de9d('isAddSuggestion',_0x4c33e0,_0x4ad880,_0x186d2b),_0x24de9d('isRemoved',_0x4c33e0,_0x4ad880,_0x186d2b),_0x24de9d('isAdded',_0x4c33e0,_0x4ad880,_0x186d2b);for(const _0x2fc763 of _0x229fb5[_0x4c33e0]['markersEnd']){_0x2ceee4['get'](_0x2fc763)['end']=_0x186d2b;}}for(const [_0x4325da,_0x3e9c38]of _0x2ceee4){const _0x53bf1d=this['editor']['model']['createRange'](_0x3e9c38['start'],_0x3e9c38['end']);_0x4e1236['markers']['set'](_0x4325da,_0x53bf1d);}return _0x15e67a['sort']((_0x248a05,_0x55248b)=>{const _0x244e5f=_0x4e1236['markers']['get']('revision:'+_0x248a05['id']),_0x2d129c=_0x4e1236['markers']['get']('revision:'+_0x55248b['id']);return _0x244e5f['start']['isBefore'](_0x2d129c['start'])?-0x1:_0x244e5f['start']['isAfter'](_0x2d129c['start'])?0x1:_0x244e5f['end']['isBefore'](_0x2d129c['end'])?-0x1:_0x244e5f['end']['isAfter'](_0x2d129c['end'])?0x1:'add'===_0x248a05['type']?-0x1:0x1;}),{'root':_0x4e1236,'changes':_0x15e67a};function _0x24de9d(_0x1decd1,_0x37cf37,_0x5433b4,_0x165698){const _0x307413=!!_0x229fb5[_0x37cf37][_0x1decd1],_0x57f5d5=_0x307413?_0x229fb5[_0x37cf37][_0x1decd1]['userId']:null,_0xf7a3fe=_0x37cf37===_0x229fb5['length']-0x1,_0x574cdc=_0x5cf479[_0x1decd1][0x0],_0xc99dd0=_0x8b1935['isObject'](_0x229fb5[_0x37cf37]['item']);!_0x382c4d[_0x1decd1]&&_0x307413?_0x382c4d[_0x1decd1]={'start':_0x5433b4,'tapeItem':_0x229fb5[_0x37cf37],'userId':_0x57f5d5,'type':_0x1decd1}:_0x382c4d[_0x1decd1]&&!_0x307413?(_0x382c4d[_0x1decd1]['end']=_0x5433b4,_0x3ef7fa(_0x382c4d[_0x1decd1]),_0x382c4d[_0x1decd1]=null):_0x382c4d[_0x1decd1]&&_0x307413&&_0x382c4d[_0x1decd1]['userId']!==_0x57f5d5&&(_0x382c4d[_0x1decd1]['end']=_0x5433b4,_0x574cdc&&_0x574cdc['userId']===_0x382c4d[_0x1decd1]['userId']||_0x3ef7fa(_0x382c4d[_0x1decd1]),_0x382c4d[_0x1decd1]={'start':_0x5433b4,'tapeItem':_0x229fb5[_0x37cf37],'userId':_0x57f5d5,'type':_0x1decd1}),_0x382c4d[_0x1decd1]&&_0xc99dd0&&('elementStart'!==_0x229fb5[_0x37cf37]['type']||_0x574cdc&&_0x574cdc['userId']===_0x57f5d5||_0x5cf479[_0x1decd1]['unshift']({'userId':_0x57f5d5,'object':_0x229fb5[_0x37cf37]['item'],'change':_0x382c4d[_0x1decd1]}),'elementEnd'===_0x229fb5[_0x37cf37]['type']&&_0x574cdc&&_0x574cdc['object']===_0x229fb5[_0x37cf37]['item']&&(_0x5cf479[_0x1decd1]['shift'](),_0x382c4d[_0x1decd1]=_0x574cdc['change'])),_0x382c4d[_0x1decd1]&&_0xf7a3fe&&(_0x382c4d[_0x1decd1]['end']=_0x165698,_0x3ef7fa(_0x382c4d[_0x1decd1]),_0x382c4d[_0x1decd1]=null);}function _0x3ef7fa({start:_0x1ddcac,end:_0x54bb8a,tapeItem:_0x14482e,userId:_0x10f9e0,type:_0x33f834}){const _0x332d30=_0x14482e['item'],_0x48eb84=_0x2f6a56['schema']['isBlock'](_0x332d30)&&!_0x2f6a56['schema']['isLimit'](_0x332d30),_0x45fd46=_0x1ddcac['nodeAfter']==_0x54bb8a['parent']&&_0x54bb8a['isAtStart'];if(_0x48eb84&&_0x45fd46)return;const _0x15b285=_0x2f6a56['createRange'](_0x1ddcac,_0x54bb8a),_0x1e1b5c=_0x2c7a77['get'](_0x10f9e0),_0xb46e88=new r({'author':_0x1e1b5c,'type':'isAdded'==_0x33f834||'isAddSuggestion'==_0x33f834?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33f834||'isRemoveSuggestion'==_0x33f834},'createdAt':new Date(),'rootName':_0x4e83aa});_0x15e67a['push'](_0xb46e88),_0x4e1236['markers']['set']('revision:'+_0xb46e88['id'],_0x15b285);}function _0x246712(_0x5e2f07,_0xca86b2){const _0x8f4004=_0x5e2f07['getAttributes'](),_0x2a38df=_0xca86b2['getAttributes']();for(const _0x4c2f75 of _0x8f4004){if(_0x4c2f75[0x1]!==_0xca86b2['getAttribute'](_0x4c2f75[0x0]))return!0x1;_0x2a38df['next']();}return _0x2a38df['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x55e812=>{const _0x4f9d15=_0x55e812['markerName']['split'](':')[0x1],_0x3f78a3=this['_getChangeFromId'](_0x4f9d15);if(!_0x3f78a3)return null;const _0x86f386='add'==_0x3f78a3['type']?'insertion':'deletion',_0x39f66f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x86f386];return _0x3f78a3['data']['isSuggestion']&&_0x39f66f['push']('ck-suggestion-marker-'+_0x86f386+'-new'),this['activeChange']==_0x3f78a3&&_0x39f66f['push']('ck-suggestion-marker--active'),{'classes':_0x39f66f,'attributes':{'data-change-id':_0x4f9d15}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x21679d=>{_0x21679d['on']('element:pre',(_0x2b12d4,_0xc44153,_0x317b47)=>{const _0x44e663=_0xc44153['viewItem']['getChild'](0x0);if(!_0x44e663||!_0x44e663['is']('element','code'))return;if(!_0x317b47['consumable']['consume'](_0x44e663,{'attributes':['vid_start','vid_end']}))return;const _0x593d25=_0xc44153['modelRange']['start']['nodeAfter'];_0x317b47['writer']['setAttribute']('vid_start',_0x44e663['getAttribute']('vid_start'),_0x593d25),_0x317b47['writer']['setAttribute']('vid_end',_0x44e663['getAttribute']('vid_end'),_0x593d25);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2af02f=>{_0x2af02f['on']('element',(_0x29e2d5,_0x19e308,_0x39dda4)=>{if(!_0x39dda4['consumable']['consume'](_0x19e308['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x19e308['modelRange']['isCollapsed'])return;const _0x106514=_0x19e308['modelRange']['start']['nodeAfter'];_0x106514['hasAttribute']('vid_start')||_0x106514['hasAttribute']('vid')||(_0x39dda4['writer']['setAttribute']('vid_start',_0x19e308['viewItem']['getAttribute']('vid_start'),_0x106514),_0x39dda4['writer']['setAttribute']('vid_end',_0x19e308['viewItem']['getAttribute']('vid_end'),_0x106514));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3ed17b=>_0x3ed17b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4badb8,[,_0x35d65b])=>{['vid_start','vid_end','vid']['includes'](_0x35d65b)&&(_0x4badb8['return']=!0x0,_0x4badb8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5d0238=>{_0x5d0238['on']('attribute:vid',(_0x24779d,_0x1a356f,_0x5d13f8)=>{if('\x20'!=_0x1a356f['item']['data']||_0x1a356f['item']['parent']['maxOffset']>0x1)return;if(!_0x5d13f8['consumable']['consume'](_0x1a356f['item'],_0x24779d['name']))return;const _0x14da96=_0x5d13f8['writer'],_0x168170=_0x5d13f8['mapper']['toViewRange'](_0x1a356f['range']);_0x14da96['wrap'](_0x168170,_0x14da96['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x318770){const _0x43e686=_0x318770['plugins']['get']('RevisionViewer');return(_0x271636,_0x53fc2a,_0x78df7e)=>{const _0x3d86c4=_0x53fc2a['markerName']['split'](':')[0x1],_0x5b30ad=_0x43e686['_getChangeFromId'](_0x3d86c4);if(!_0x5b30ad)return null;const _0x2b8463='add'==_0x5b30ad['type']?'split':'merge';if(!_0x78df7e['consumable']['test'](_0x53fc2a['markerRange'],_0x271636['name']))return;const _0x5676d3=_0x53fc2a['markerRange']['getWalker'](),_0x5c15a4=_0x53fc2a['markerRange']['start'],_0x3214b5=_0x318770['model']['schema'];let _0x297cc4=null,_0x4380f1=null,_0x2a39a6=!0x1,_0x44b231=!0x1;for(const _0x4e01d4 of _0x5676d3){const _0x74f1ed=_0x4e01d4['item'];_0x2a39a6=_0x2a39a6||_0x3214b5['isContent'](_0x74f1ed);const _0x514647=_0x78df7e['mapper']['toViewElement'](_0x74f1ed);if(_0x514647&&_0x514647['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e01d4['type']&&(_0x3214b5['isBlock'](_0x74f1ed)&&!_0x3214b5['isLimit'](_0x74f1ed)&&(_0x74f1ed['nextSibling']||_0x5c15a4['isAtEnd']?_0x297cc4&&_0x297cc4['parent']==_0x74f1ed||(_0x297cc4=_0x74f1ed,_0x578a3d(_0x4e01d4['previousPosition']),_0x44b231=!0x0):_0x4380f1=_0x4380f1||_0x4e01d4['previousPosition']));}function _0x578a3d(_0x1d6868){const _0x44324f=_0x78df7e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b8463}),_0x2e5950=_0x78df7e['mapper']['toViewPosition'](_0x1d6868);_0x5b30ad['data']['isSuggestion']&&_0x78df7e['writer']['addClass']('ck-suggestion-marker-'+_0x2b8463+'-new',_0x44324f),_0x43e686['activeChange']==_0x5b30ad&&_0x78df7e['writer']['addClass']('ck-suggestion-marker--active',_0x44324f),_0x78df7e['writer']['insert'](_0x2e5950,_0x44324f),_0x78df7e['mapper']['bindElementToMarker'](_0x44324f,_0x53fc2a['markerName']);}_0x2a39a6||_0x44b231||!_0x4380f1||_0x578a3d(_0x4380f1);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1616e8,_0x5ec54e,_0x4754a2)=>{const _0x50f712=_0x4754a2['mapper']['markerNameToElements'](_0x5ec54e['markerName']);if(_0x50f712){for(const _0x254e0e of _0x50f712)(_0x254e0e['hasClass']('ck-suggestion-marker-split')||_0x254e0e['hasClass']('ck-suggestion-marker-merge'))&&(_0x4754a2['mapper']['unbindElementFromMarkerName'](_0x254e0e,_0x5ec54e['markerName']),_0x4754a2['writer']['remove'](_0x254e0e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x13d5e2,_0x24993e,_0x5c8cc3)=>{const _0x2ac450=_0x24993e['markerName']['split'](':')[0x1],_0x2ef1f1=this['_getChangeFromId'](_0x2ac450);if(!_0x2ef1f1)return null;const _0x5b1217='add'==_0x2ef1f1['type']?'split':'merge';if(_0x5c8cc3['consumable']['test'](_0x24993e['markerRange'],_0x13d5e2['name']))for(const _0x491652 of _0x24993e['markerRange']['getItems']()){if(!_0x491652['is']('element','softBreak'))continue;const _0x33fef4=_0x5c8cc3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b1217}),_0x426db8=_0x5c8cc3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x491652));_0x2ef1f1['data']['isSuggestion']&&_0x5c8cc3['writer']['addClass']('ck-suggestion-marker-'+_0x5b1217+'-new',_0x33fef4),this['activeChange']==_0x2ef1f1&&_0x5c8cc3['writer']['addClass']('ck-suggestion-marker--active',_0x33fef4),_0x5c8cc3['writer']['insert'](_0x426db8,_0x33fef4),_0x5c8cc3['mapper']['bindElementToMarker'](_0x33fef4,_0x24993e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2dfe24=>{for(const _0x2025ab of this['editor']['model']['document']['getRootNames']()){const _0x3bde3c=this['editor']['model']['document']['getRoot'](_0x2025ab),_0x1cc469=this['editor']['editing']['view']['document']['getRoot'](_0x2025ab);if(_0x1cc469){const _0x7b78e6=_0x3bde3c['getAttribute']('revisionHistoryAttachChange');if(_0x2dfe24['removeAttribute']('data-change-id',_0x1cc469),_0x2dfe24['removeClass']('ck-revision-history-root-add',_0x1cc469),_0x2dfe24['removeClass']('ck-revision-history-root-remove',_0x1cc469),_0x2dfe24['removeClass']('ck-revision-history-root--active',_0x1cc469),_0x7b78e6){const _0x56459f=this['_getChangeFromId'](_0x7b78e6);if(!_0x56459f)return null;_0x2dfe24['setAttribute']('data-change-id',_0x7b78e6,_0x1cc469),_0x2dfe24['addClass']('ck-revision-history-root-'+_0x56459f['type'],_0x1cc469),this['activeChange']==_0x56459f&&_0x2dfe24['addClass']('ck-revision-history-root--active',_0x1cc469);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x311332=>'revision-comment:'+_0x311332,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2e9120=>'revision-suggestion:'+_0x2e9120,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x14f5d9=>({'name':'suggestion:'+_0x14f5d9,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x451194=>{const _0xbc0ed0=_0x451194['markerName']['split'](':')[0x1];return'insertion'!=_0xbc0ed0&&'deletion'!=_0xbc0ed0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xbc0ed0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x21abab,_0x5d2ce9,_0x53fc5e)=>{const _0x30dcd3=_0x53fc5e['mapper']['markerNameToElements'](_0x5d2ce9['markerName']);if(_0x30dcd3){for(const _0x2af0e1 of _0x30dcd3)_0x2af0e1['is']('uiElement')&&(_0x53fc5e['mapper']['unbindElementFromMarkerName'](_0x2af0e1,_0x5d2ce9['markerName']),_0x53fc5e['writer']['remove'](_0x2af0e1));}},{'priority':'high'});}['_getChangeFromId'](_0x1bef98){return this['_changeIdToChange']['get'](_0x1bef98);}['_getViewForChange'](_0x3afa15){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x3afa15),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x306940,_0x4b86c1,_0x3bdb56,_0x3ebfb6)=>{_0x3ebfb6&&this['_balloon']['remove'](_0x3ebfb6),_0x3bdb56&&(this['_balloon']['add']({'view':_0x3bdb56,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3db8a5=this['editor']['editing'],_0x4b72a1=this['_getChangeFromId'](_0x3bdb56['changeId']);let _0x4ca2ab;if(_0x4b72a1['data']['isOnRoot']){const _0x127dd4=_0x3db8a5['view']['getDomRoot'](_0x4b72a1['rootName']);_0x4ca2ab=Array['from'](_0x127dd4['getClientRects']());}else{const _0x185fa1=this['editor']['model']['markers']['get']('revision:'+_0x3bdb56['changeId']);_0x4ca2ab=Array['from'](_0x3db8a5['mapper']['markerNameToElements'](_0x185fa1['name']))['map'](_0x50bbbd=>_0x3db8a5['view']['domConverter']['mapViewToDom'](_0x50bbbd))['map'](_0x1194f2=>Array['from'](_0x1194f2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4ca2ab[0x0];return _0x4ca2ab['find'](_0x46b0ec=>_0x46b0ec['top']-0x3<=this['_activeViewTarget']['y']&&_0x46b0ec['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x46b0ec['left']-0x3<=this['_activeViewTarget']['x']&&_0x46b0ec['right']+0x3>=this['_activeViewTarget']['x'])||_0x4ca2ab[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5163cc,_0x1649fa,_0x5857ae,_0x4a357e)=>{this['activeView']=_0x5857ae?this['_getViewForChange'](_0x5857ae):null,this['editor']['model']['change'](()=>{const _0x4047f6=this['editor']['editing'];_0x4a357e&&(_0x4a357e['data']['isOnRoot']?_0x4047f6['view']['change'](_0x3e2b4e=>{_0x3e2b4e['removeClass']('ck-revision-history-root--active',_0x4047f6['view']['document']['getRoot'](_0x4a357e['rootName']));}):_0x4047f6['reconvertMarker']('revision:'+_0x4a357e['id'])),_0x5857ae&&(_0x5857ae['data']['isOnRoot']?_0x4047f6['view']['change'](_0x56e40c=>{_0x56e40c['addClass']('ck-revision-history-root--active',_0x4047f6['view']['document']['getRoot'](_0x5857ae['rootName']));}):_0x4047f6['reconvertMarker']('revision:'+_0x5857ae['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x406aad,_0x455a3a)=>{if(this['activeChange'])return;const _0x2699ed=this['_findChangeIdFromDomTarget'](_0x455a3a['target']),_0xd248d2=this['_changeIdToChange']['get'](_0x2699ed);_0xd248d2?(this['_activeViewTarget']={'x':_0x455a3a['domEvent']['x'],'y':_0x455a3a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xd248d2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x7bf701,_0x1f0697)=>{const _0x52bd6a=this['_findChangeIdFromDomTarget'](_0x1f0697['target']),_0x28095c=this['_changeIdToChange']['get'](_0x52bd6a);_0x28095c?(this['_activeViewTarget']={'x':_0x1f0697['domEvent']['x'],'y':_0x1f0697['domEvent']['y']},_0x28095c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x28095c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3bb146){do{const _0x3a0f5d=_0x3bb146['getAttribute']('data-change-id');if(_0x3a0f5d)return _0x3a0f5d;_0x3bb146=_0x3bb146['parent'];}while(_0x3bb146);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5dcbf5=>{for(const _0xd445c9 of this['editor']['model']['markers'])_0x5dcbf5['removeMarker'](_0xd445c9);});}}function tt(_0x57bb23,_0x4da3b9){return(_0x87c094,_0x1c0042,_0x58e72b)=>{if(!_0x58e72b['consumable']['test'](_0x1c0042['markerRange'],_0x87c094['name']))return;const _0x11a6f7=_0x1c0042['markerRange']['getWalker'](),_0x1b339f=_0x1c0042['markerRange']['start'],_0x100697=_0x57bb23['model']['schema'];let _0x482dd3=null,_0x5b8cb1=null,_0x176460=!0x1,_0x2a1f11=!0x1;for(const _0x1920e9 of _0x11a6f7){const _0x3dbf3f=_0x1920e9['item'];_0x176460=_0x176460||_0x100697['isContent'](_0x3dbf3f);const _0x501cf0=_0x58e72b['mapper']['toViewElement'](_0x3dbf3f);if(_0x501cf0&&_0x501cf0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1920e9['type']&&(_0x100697['isBlock'](_0x3dbf3f)&&!_0x100697['isLimit'](_0x3dbf3f)&&(_0x3dbf3f['nextSibling']||_0x1b339f['isAtEnd']?_0x482dd3&&_0x482dd3['parent']==_0x3dbf3f||(_0x482dd3=_0x3dbf3f,_0x2deb59(_0x1920e9['previousPosition']),_0x2a1f11=!0x0):_0x5b8cb1=_0x5b8cb1||_0x1920e9['previousPosition']));}function _0x2deb59(_0x2148d6){const _0x7107b5=_0x58e72b['mapper']['toViewPosition'](_0x2148d6),_0xf88441=_0x58e72b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4da3b9});_0x58e72b['writer']['insert'](_0x7107b5,_0xf88441),_0x58e72b['mapper']['bindElementToMarker'](_0xf88441,_0x1c0042['markerName']);}_0x176460||_0x2a1f11||!_0x5b8cb1||_0x2deb59(_0x5b8cb1);};}class _t extends _0x3d421b{constructor(_0x2e2363){super(_0x2e2363);const _0x5625e8=_0x2e2363['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5625e8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5625e8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x10699c=this['editor'],_0x4835d4=_0x10699c['plugins']['get'](d),_0x61ee59=_0x4835d4['isReady']?_0x4835d4['diff']['newRevisionId']:null;_0x10699c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x61ee59);}['refresh'](){const {isReady:_0xebc0e8,isEnabled:_0x227b3b}=this['editor']['plugins']['get'](d);this['isEnabled']=_0xebc0e8&&_0x227b3b;}}class yt extends _0x3d421b{['_step'];constructor(_0x29523d,{direction:_0x12b090}){super(_0x29523d);const _0x80efb0=_0x29523d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x12b090?0x1:-0x1,this['listenTo'](_0x80efb0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x80efb0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x80efb0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3284e6=this['editor'],_0x487333=_0x3284e6['plugins']['get'](d),{isNavigationMode:_0x1bd5e9,currentChangeNumber:_0x3bc258}=_0x487333;let _0x740424;if(_0x487333['activeChange']=_0x1bd5e9?_0x487333['diff']['changes']['get'](_0x3bc258+this['_step']):_0x487333['diff']['changes']['first'],_0x487333['activeChange']['data']['isOnRoot'])_0x740424=_0x3284e6['editing']['view']['getDomRoot'](_0x487333['activeChange']['rootName']);else{const _0x333c37=_0x3284e6['model']['markers']['get']('revision:'+_0x487333['activeChange']['id']);_0x740424=_0x240b25(_0x3284e6['editing'],_0x333c37);}_0x19448f({'target':_0x740424,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1343ee,currentChangeNumber:_0x37c5f8,numberOfChanges:_0x240ecb,isReady:_0x103a1c,isEnabled:_0x2dda0e}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2dda0e&&_0x103a1c&&_0x240ecb)&&(!_0x1343ee||(0x1===this['_step']?_0x37c5f8<_0x240ecb-0x1:_0x37c5f8>0x0));}}class ui extends ts{constructor(_0x385cdf){super(_0x385cdf);const _0x5c2504=this['bindTemplate'],_0x5a14aa=new te(_0x385cdf),_0x5c12d5=new te(_0x385cdf);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',(_0x595276,_0x27764b)=>_0x595276&&_0x27764b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x35f6c6,_0x5358b2,_0x3b2a59,_0xed917e)=>{if(!_0x35f6c6)return R(_0x385cdf,'Loading...');if(!_0x3b2a59)return R(_0x385cdf,'No\x20changes');const _0x501dcf=R(_0x385cdf,'NUMBER_OF_CHANGES',_0x3b2a59);return _0xed917e?R(_0x385cdf,'X_OF_Y_CHANGES',[_0x5358b2+0x1,_0x3b2a59]):_0x501dcf;}),_0x5a14aa['set']({'label':R(_0x385cdf,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x5c12d5['set']({'label':R(_0x385cdf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x5a14aa['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5c12d5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5a14aa['on']('execute',()=>this['fire']('execute','backward')),_0x5c12d5['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',_0x5c2504['if']('_isStatusLabelVisible','ck-hidden',_0x479bff=>!_0x479bff)]},'children':[{'text':_0x5c2504['to']('isNavigationMode',_0x374274=>_0x374274?R(_0x385cdf,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x385cdf,'Total')+':\x20')}]},{'text':_0x5c2504['to']('_statusText')}]},new _0x280233(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5a14aa,_0x5c12d5]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x5025c2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x11689e=this['editor']['editing']['view'];_0x11689e['change'](_0x31e64f=>{for(const _0x46aeac of _0x11689e['document']['roots'])_0x31e64f['addClass'](le,_0x46aeac);});}['hide'](){const _0x536292=this['editor']['editing']['view'];_0x536292['change'](_0x3096bf=>{for(const _0x40b4a6 of _0x536292['document']['roots'])_0x3096bf['removeClass'](le,_0x40b4a6);});}}class m extends _0x5025c2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x15315f=this['editor'],_0x4b9e41=_0x15315f['plugins']['get'](d),_0x878c12=_0x15315f['plugins']['get'](de);_0x15315f['ui']['componentFactory']['add']('exitToEditing',_0x11a7e8=>{const _0x262203=new te(_0x11a7e8);return _0x262203['set']({'label':R(_0x11a7e8,'Back\x20to\x20editing'),'icon':_0x75562c['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x262203,'execute',()=>{_0x15315f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x262203;}),_0x15315f['ui']['componentFactory']['add']('restoreRevision',_0x465377=>{const _0x4a2cb4=new te(_0x465377);return _0x4a2cb4['set']({'label':R(_0x465377,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4a2cb4['bind']('isEnabled')['to'](_0x15315f['commands']['get']('restoreRevision')),this['listenTo'](_0x4a2cb4,'execute',()=>_0x15315f['execute']('restoreRevision')),_0x4a2cb4;}),_0x15315f['ui']['componentFactory']['add']('changesNavigation',_0x6bd45=>{const _0x5547b2=new ui(_0x6bd45),_0x34dce4=_0x15315f['commands']['get']('showPreviousChange'),_0x3923f3=_0x15315f['commands']['get']('showNextChange');return _0x5547b2['bind']('isBackwardNavigationEnabled')['to'](_0x34dce4,'isEnabled'),_0x5547b2['bind']('isForwardNavigationEnabled')['to'](_0x3923f3,'isEnabled'),_0x5547b2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4b9e41),this['listenTo'](_0x5547b2,'execute',(_0x4bf105,_0x5918d2)=>{_0x15315f['execute']('forward'===_0x5918d2?'showNextChange':'showPreviousChange');}),_0x5547b2;}),_0x878c12['show'](),_0x4b9e41['on']('change:isReady',(_0x18189c,_0x1282be,_0xfccd3f)=>{_0xfccd3f?_0x878c12['hide']():_0x878c12['show']();});}}class pt extends _0x30bc25{['_resizeObserver']=null;constructor(_0xfb19d2,_0x1e2aa7){super(_0xfb19d2,_0x1e2aa7);const _0x4ef2d3=this['bindTemplate'];this['set']({'label':R(_0xfb19d2,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xfb19d2,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ef2d3['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 _0x4efb82=this['fieldView']['element'];this['_tooltipString']=_0x4efb82['scrollWidth']>_0x4efb82['clientWidth']&&_0x4efb82['value']||'';}}class ri extends ts{constructor(_0x35b9c7,_0x262db2,_0x2d8e28){super(_0x35b9c7);const _0x3dd8ce=new _0x5bb643();_0x3dd8ce['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x40b8e4=['ck','ck-revision-history-sidebar__revision-author'];_0x2d8e28&&_0x40b8e4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5054f3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x35b9c7,_0x2d8e28?'Revision\x20creator':'Revision\x20author')},'children':[_0x3dd8ce,_0x262db2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x40b8e4},'children':_0x5054f3});}}function oi(_0xe4a294,_0x48e215){const _0x37a2b8=_0xe4a294['bindTemplate'],_0x442842=_0xe4a294['locale'],_0x10854c=_0x2abbe3(_0x442842);_0x10854c['panelPosition']='sw';const _0x3c998c=function(_0x4c2ac6,_0x5af6db){const _0x117e47=function(_0xae103e,_0x4457a6){const _0x1d842e=_0xae103e['locale'],_0x1c5f5a={'Compare\x20against\x20selected':R(_0x1d842e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x1d842e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x1d842e,'Restore\x20this\x20revision')};return _0x4457a6['map'](_0x1650b8=>{const _0x47029a=_0x1c5f5a[_0x1650b8['name']];return _0x47029a&&_0x47029a!==_0x1650b8['name']&&(_0x1650b8['name']=_0x47029a),_0x1650b8;});}(_0x4c2ac6,_0x5af6db),_0x4916ab=new _0x35ddfb();for(const _0x42cfa8 of _0x117e47){const _0x41025a={'type':'button','model':new _0x4c16ca({'label':_0x42cfa8['name'],'class':_0x42cfa8['class'],'withText':!0x0,'role':'menuitem','_action':_0x42cfa8['action']})};_0x41025a['model']['bind']('isEnabled')['to'](_0x4c2ac6,'isActionsDropdownOpen',_0x545e61=>'function'!=typeof _0x42cfa8['isEnabled']||(!_0x545e61||_0x42cfa8['isEnabled'](_0x4c2ac6))),_0x4916ab['add'](_0x41025a);}return _0x4916ab;}(_0xe4a294,_0x48e215);return _0xe4a294['bind']('isActionsDropdownOpen')['to'](_0x10854c,'isOpen'),_0x10854c['buttonView']['set']({'label':R(_0x442842,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x75562c['threeVerticalDots']}),_0x10854c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x37a2b8['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x37a2b8['to'](_0x5dc68b=>_0x5dc68b['stopPropagation']())}}),_0x10854c['on']('execute',_0x52ed6f=>{_0xe4a294['isReady']&&'function'==typeof _0x52ed6f['source']['_action']&&_0x52ed6f['source']['_action'](_0xe4a294);}),to(_0x10854c,_0x3c998c,{'role':'menu'}),_0x10854c['listenTo'](_0xe4a294,'change:isActionsDropdownOpen',(_0x40673b,_0x4544cd,_0x363190)=>{if(_0x363190)for(const _0x1c09b2 of _0x10854c['listView']['items']){const _0x58b2b0=_0x1c09b2['children']['first'],_0x181253=_0x48e215['find'](_0x2b9952=>_0x2b9952['action']===_0x58b2b0['_action'])['isVisible'];_0x1c09b2['isVisible']=void 0x0===_0x181253||_0x181253(_0xe4a294);}}),_0x10854c;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1ae9f5,_0x211023,_0x45df65,_0x3a2349){super(_0x1ae9f5);const _0x53be8b=this['bindTemplate'],_0x51cb5=function(_0x125faa,_0x6a1a2d){const _0x34b6b5=Array['from'](_0x6a1a2d['authors'])['filter'](_0x35f922=>_0x35f922!=_0x6a1a2d['creator']);return _0x6a1a2d['creator']&&_0x34b6b5['unshift'](_0x6a1a2d['creator']),_0x34b6b5['map'](_0x14db84=>new ri(_0x125faa,_0x14db84,_0x14db84==_0x6a1a2d['creator']));}(_0x1ae9f5,_0x211023);this['id']=_0x211023['id'],this['_revision']=_0x211023,this['_requireRevisionName']=_0x3a2349,this['bind']('name','createdAt')['to'](_0x211023),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xcabc50=>{return _0x34b709=_0x1ae9f5['uiLanguage'],(_0x5ac892=_0xcabc50)['toLocaleDateString'](_0x34b709,{'month':'long','day':'numeric'})+',\x20'+_0x5ac892['toLocaleTimeString'](_0x34b709,{'hour':'numeric','minute':'numeric'});var _0x34b709,_0x5ac892;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x1ae9f5,_0x41e485),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x19d79c=>_0x19d79c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x605e65,_0x3b87c9)=>_0x605e65&&_0x3b87c9),this['revisionActionsView']=_0x45df65&&_0x45df65['length']?oi(this,_0x45df65):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x53be8b['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x53be8b['if']('isEnabled','ck-disabled',_0x3cd38e=>!_0x3cd38e),_0x53be8b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x53be8b['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x53be8b['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':_0x53be8b['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':_0x51cb5}]},this['revisionActionsView']],'on':{'click':_0x53be8b['to'](_0x12ef63=>{_0x12ef63['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1faa04=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1faa04,'change',()=>{this['_requireRevisionName']&&!_0x1faa04['value']||this['fire']('setName',{'id':this['id'],'name':_0x1faa04['value']}),_0x1faa04['value']||(_0x1faa04['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x3718a8,_0x58e401){const _0x30b1c1=_0x2feaf2['fromJSDate'](_0x3718a8)['setLocale'](_0x58e401),_0xd1e3bc=_0x2feaf2['local'](),_0x290e50=_0xd1e3bc['minus']({'days':0x1})['startOf']('day');let _0x5e4a3c,_0x544880;return _0x30b1c1['hasSame'](_0xd1e3bc,'day')?(_0x5e4a3c=_0x30b1c1['startOf']('day')['toJSDate'](),_0x544880=_0x30b1c1['toRelativeCalendar']()):_0x30b1c1['hasSame'](_0x290e50,'day')?(_0x5e4a3c=_0x290e50['toJSDate'](),_0x544880=_0x30b1c1['toRelativeCalendar']()):_0x30b1c1['hasSame'](_0xd1e3bc,'week')?(_0x5e4a3c=_0x30b1c1['startOf']('week')['toJSDate'](),_0x544880=_0x30b1c1['weekdayLong']||''):_0x30b1c1['hasSame'](_0xd1e3bc,'year')?(_0x5e4a3c=_0x30b1c1['startOf']('month')['toJSDate'](),_0x544880=_0x30b1c1['monthLong']||''):(_0x5e4a3c=_0x30b1c1['startOf']('year')['toJSDate'](),_0x544880=String(_0x30b1c1['year'])),{'startDate':_0x5e4a3c,'localizedPeriodName':_0x544880};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x593018,_0x1d19a7,_0x209e59,_0xdd0fd5){super(_0x593018);const _0x386b56=mi(_0x1d19a7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1d19a7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x209e59,this['_requireRevisionName']=_0xdd0fd5,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':_0x386b56}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xa0e007){const _0x9c2b8f=new hi(this['locale'],_0xa0e007,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x9c2b8f);}['removeRevision'](_0x22af6c){const _0x29e878=this['revisionViews']['find'](_0x32d00e=>_0x32d00e['id']===_0x22af6c['id']);this['revisionViews']['remove'](_0x29e878);}}class as extends ts{constructor(_0xba5ebf){super(_0xba5ebf);const _0x18802c=new _0x5bb643();_0x18802c['content']=_0x75562c['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x18802c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xba5ebf,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x159ca1,_0x3c43fe,_0x20b03c,_0x2f3982){super(_0x159ca1);const _0x509b19=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3c43fe,this['_revisionActions']=_0x20b03c,this['_requireRevisionName']=_0x2f3982,this['on']('select',(_0x5579ac,_0x47d33c)=>{this['fire']('revisionSelected',_0x47d33c);}),this['on']('setName',(_0x3abeea,_0xfd67db)=>{this['fire']('revisionSetName',_0xfd67db);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x159ca1),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x509b19['if']('isEnabled','ck-disabled',_0x205481=>!_0x205481)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3c92f9 of this['_revisions'])this['_addRevision'](_0x3c92f9);this['_revisions']['on']('add',(_0x3ebec4,_0x6be843)=>{this['_addRevision'](_0x6be843);}),this['_revisions']['on']('remove',(_0x58ab7a,_0x5c6aea)=>{this['_removeRevision'](_0x5c6aea);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x370625=>_0x370625['revisionViews']['map'](_0x171712=>_0x171712))['flat']();}['selectRevision'](_0x2fa63f){for(const _0x2f884b of this['revisionViews'])_0x2fa63f&&_0x2fa63f['id']===_0x2f884b['id']?_0x2f884b['select']():_0x2f884b['deselect']();}['highlightRevisions'](_0x4ec35b){for(const _0x3ddce5 of this['revisionViews'])_0x4ec35b['some'](({id:_0x3b36a7})=>_0x3b36a7===_0x3ddce5['id'])?_0x3ddce5['highlight']():_0x3ddce5['unhighlight']();}['_addRevision'](_0x296256){const _0x50fc01=mi(_0x296256['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3a6589=this['timePeriodViews']['get'](0x0);_0x3a6589&&_0x3a6589['startDate']['getTime']()===_0x50fc01['getTime']()||(_0x3a6589=new vi(this['locale'],_0x50fc01,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3a6589)),_0x3a6589['addRevision'](_0x296256);}['_removeRevision'](_0x2af635){const _0x58e576=mi(_0x2af635['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x58e576)['removeRevision'](_0x2af635);}['_getTimePeriodViewByStartDate'](_0x1a6510){return this['timePeriodViews']['find'](_0xe65bd2=>_0xe65bd2['startDate']['getTime']()===_0x1a6510['getTime']());}}class g extends _0x5025c2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x185bfe,_0x100fde){super(_0x100fde),this['sourceElement']=_0x185bfe,this['model']['document']['createRoot']();const _0xa349d8=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0xa349d8);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x46f5ea,_0x1ad4d0){const _0x5da229=new this(_0x46f5ea,_0x1ad4d0);return await _0x5da229['initPlugins'](),await _0x5da229['ui']['init'](_0x46f5ea),await _0x5da229['data']['init'](_0x5da229['config']['get']('initialData')||''),_0x5da229['fire']('ready'),_0x5da229;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5ea060{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f8d81){function _0x45026b(_0x497ea4){return _0x497ea4['map'](_0x460c35=>String['fromCharCode'](_0x460c35))['join']('');}super(_0x4f8d81),this['result']='end',_0x4f8d81[_0x45026b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45026b([0x76,0x69,0x65,0x77])][_0x45026b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45026b([0x61,0x75,0x74,0x6f]),_0x4f8d81[_0x45026b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x45026b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45026b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x45026b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x45026b([0x6f,0x6b])});}}class H extends _0x5ea060{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x488fef){if(super(_0x488fef),!this['editor']['config']['get']('revisionHistory'))throw new _0x1e7a4c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x59c2ec=>this['_showRevisionViewer']({..._0x59c2ec,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5bea4c=>this['_closeRevisionViewer'](_0x5bea4c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x115972=>this['_restoreRevision'](_0x115972)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x50e00e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x50e00e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x26ac0f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x26ac0f);}['getRevision'](_0x163166){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x163166);}['getRevisions'](_0x28c028){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x28c028||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1a0c1e=this['editor'],_0x44b63f=_0x3f1fa8(_0x1a0c1e,p),_0x5c37b2=_0x1a0c1e['plugins']['get']('RevisionTracker'),_0x15c0b5=_0x1a0c1e['plugins']['get']('Users')['users'];return _0x44b63f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x44b63f['lazyRoots'],(_0x44b63f['plugins']['push'](k,d,m,class extends _0x5ea060{static get['requires'](){return[d,'Users'];}['init'](){const _0x42d314=this['editor']['plugins']['get']('Users');for(const _0x520be9 of _0x15c0b5)_0x520be9['isAnonymous']||_0x42d314['getUser'](_0x520be9['id'])||_0x42d314['addUser'](_0x520be9);const _0x26188e=_0x5c37b2['repository']['getRevisions']();let _0x14efc3=null;const _0xc50187=this['editor']['plugins']['get']('RevisionViewer');_0xc50187['adapter']=_0x5c37b2['adapter'],_0xc50187['bind']('isEnabled')['to'](_0x5c37b2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1a0c1e,'isReadOnly',_0x486b95=>!_0x486b95);for(const _0x1db1ec of _0x26188e){const _0x2aff1f=null===_0x1db1ec['creator'];if(_0x2aff1f&&_0x1db1ec['toVersion']===_0x1db1ec['fromVersion'])continue;const _0x5d38fb=_0x1db1ec['toJSON']();_0xc50187['addRevisionData'](_0x5d38fb,(_0x19b046,_0x435835,_0x54069e)=>{if(_0x2aff1f){if(_0x14efc3)_0x14efc3['_update'](_0x19b046,_0x435835);else{if(!_0x435835){const _0x553261=_0x54069e['toJSON']();_0x553261['id']=_0x53d4c4(),_0x5c37b2['saveRevision'](_0x553261,_0x54069e['toVersion'])['then'](_0x41e0a7=>{_0x14efc3=_0x41e0a7;});}}}else _0x1db1ec['_update'](_0x19b046,_0x435835);});}}},g),_0x44b63f);}['_enhanceShowRevisionViewerCallback'](){const _0x23f4e6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1f21a5=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x52501a=this['editor']['plugins']['get']('Autosave');await _0x52501a['save']();}else await _0x1f21a5['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x18df30=this['editor']['plugins']['get']('Dialog');_0x18df30['isOpen']&&_0x18df30['hide']();}const _0x39e368=this['_getRevisionViewerEditorConfig']();return _0x23f4e6(_0x39e368)['then'](_0x3c3bde=>{return(this['_viewerEditor']=_0x3c3bde,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3c3bde;})['catch'](_0x2824e7=>(console['error'](_0x2824e7),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4d6577=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'](),_0x4d6577(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x449240=this['editor']['plugins']['get']('Annotations');_0x449240['refreshVisibility'](),_0x449240['refreshPositioning']();}})));}['_showRevisionViewer'](_0x26c35a){const _0x2eb60c=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x41192f=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x268955=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x268955,_0x26c35a)['then'](_0x5d3e1d=>(_0x41192f['style']['display']='block',_0x2eb60c['style']['display']='none',_0x5d3e1d));}['_closeRevisionViewer'](_0x51b615){const _0x2fdf2d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2fdf2d['style']['display']='',_0x51b615['destroy']();}async['_restoreRevision'](_0x4ac31a){const _0x7a6d49=this['editor'],_0x55858a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1176e0=_0x7a6d49['plugins']['get']('RevisionTracker'),_0x3f5d61=_0x55858a['repository']['getRevision'](_0x4ac31a);let _0x2ab1a0,_0x25f28f,_0x1f610f;try{_0x2ab1a0=await _0x55858a['getRevisionData'](_0x3f5d61),_0x25f28f=await _0x55858a['getRevisionRootsAttributes'](_0x3f5d61);}catch(_0x48b22d){return void console['error'](_0x48b22d);}_0x7a6d49['model']['change'](_0x4e7976=>{for(const _0xfb910d of Array['from'](_0x7a6d49['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4e7976['removeMarker'](_0xfb910d);}),_0x55858a['isReady']=!0x1,_0x7a6d49['model']['enqueueChange'](_0x1f7887=>{_0x1f7887['setSelection'](null),_0x1f7887['removeSelectionAttribute'](_0x7a6d49['model']['document']['selection']['getAttributeKeys']());const _0x119e9b=Object['keys'](_0x2ab1a0);for(const _0x440c3b of _0x7a6d49['model']['document']['roots'])'$graveyard'!=_0x440c3b['rootName']&&_0x440c3b['isAttached']()&&!_0x119e9b['includes'](_0x440c3b['rootName'])&&_0x1f7887['detachRoot'](_0x440c3b);for(const _0x3bdbc0 of _0x119e9b){let _0x2a0f5f=_0x7a6d49['model']['document']['getRoot'](_0x3bdbc0);_0x2a0f5f&&_0x2a0f5f['isAttached']()||(_0x2a0f5f=_0x1f7887['addRoot'](_0x3bdbc0));const _0x3b513e=_0x25f28f[_0x3bdbc0],_0x5efe15=Object['keys'](_0x3b513e),_0x426b67=_0x2ab1a0[_0x3bdbc0];for(const _0x2a465d of _0x2a0f5f['getAttributeKeys']())_0x5efe15['includes'](_0x2a465d)||_0x1f7887['removeAttribute'](_0x2a465d,_0x2a0f5f);for(const _0x5379eb of _0x5efe15)_0x1f7887['setAttribute'](_0x5379eb,_0x25f28f[_0x3bdbc0][_0x5379eb],_0x2a0f5f);_0x1f7887['remove'](_0x1f7887['createRangeIn'](_0x2a0f5f)),_0x1f7887['insert'](_0x7a6d49['data']['parse'](_0x426b67,_0x2a0f5f),_0x2a0f5f,0x0);}});const _0xf557c2=R(_0x7a6d49['locale'],'Restored');if(_0x3f5d61['name'])_0x1f610f=-0x1==_0x3f5d61['name']['indexOf'](_0xf557c2)?_0xf557c2+':\x20'+_0x3f5d61['name']:_0x3f5d61['name'];else _0x1f610f=_0xf557c2+':\x20'+(_0x3f5d61['createdAt']['toLocaleDateString'](_0x7a6d49['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3f5d61['createdAt']['toLocaleTimeString'](_0x7a6d49['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1176e0['saveRevision']({'name':_0x1f610f}),_0x55858a['isReady']=!0x0,_0x7a6d49['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ie as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x583ad3){super(_0x583ad3),this['_revisionViewer']=_0x583ad3['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4ace8a=this['_revisionsRepository']['_revisions'],_0x9306b3=this['_createRevisionActions'](),_0xc9450c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x4ace8a,_0x9306b3,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',(_0x3cecac,_0xa16da)=>{_0xa16da['revisionViews']['on']('add',(_0x59d82e,_0x2d463e)=>{_0x2d463e['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)),_0xc9450c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x14aef3=this['_revisionsRepository']['getRevision'](0x0);if(_0x14aef3){const _0x452e4f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x14aef3['id']);this['_revisionViewer']['compare'](_0x14aef3,_0x452e4f);}}['_handleRevisionSelected'](_0x3aae52,_0x334775){const _0x19277a=this['_revisionsRepository']['getRevision'](_0x334775['id']),_0x315b20=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x19277a['id']);this['_revisionViewer']['compare'](_0x19277a,_0x315b20);}['_handleRevisionSetName'](_0x48de1b,_0x32ed4e){this['_revisionsRepository']['getRevision'](_0x32ed4e['id'])['setName'](_0x32ed4e['name']);}['_handleDiffChange'](_0x2b024c,_0x56657e,_0x43b628){const _0x438d47=this['_revisionsRepository']['getRevisionsInDiff'](_0x43b628);_0x438d47['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x438d47),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x438d47[0x0]));}['_createRevisionActions'](){const _0x48789c=this['editor'],_0x171f7c=g['availableRevisionActions'],_0x216820=_0x48789c['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x216820['length'])return _0x216820['map'](_0x4d55ae=>{const _0x56ec13='string'==typeof _0x4d55ae?Object['assign']({},_0x171f7c[_0x4d55ae]):_0x4d55ae;return _0x56ec13['action']=_0x56ec13['action']['bind'](this,_0x48789c),_0x56ec13['isVisible']&&(_0x56ec13['isVisible']=_0x56ec13['isVisible']['bind'](this,_0x48789c)),_0x56ec13;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4e23f1},_0x4bbaf9)=>{const _0x301b53=_0x4e23f1['get'](d),_0x1436a4=_0x301b53['repository'];let _0x137f8e=_0x301b53['diff']['newRevisionId'],_0x5131d8=_0x4bbaf9['id'];_0x1436a4['getIndex'](_0x137f8e)>_0x1436a4['getIndex'](_0x5131d8)&&([_0x137f8e,_0x5131d8]=[_0x5131d8,_0x137f8e]),_0x301b53['compare'](_0x137f8e,_0x5131d8);},'isVisible':({plugins:_0x1c2881},_0x3d6f92)=>{const _0x261207=_0x1c2881['get'](d);return!(_0x261207['repository']['getRevisionsInDiff'](_0x261207['diff'])['length']>0x2)&&!_0x3d6f92['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x46717c,{id:_0x32ce84})=>{_0x46717c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x32ce84);},'isVisible':({plugins:_0x26ff13},_0x22b616)=>!!_0x26ff13['get'](d)['repository']['getLaterVisibleRevision'](_0x22b616['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3db243},{id:_0x1ca876,revisionNameView:_0x565f25})=>{const _0x101d17=_0x3db243['get'](d),_0x20ef73=_0x101d17['repository']['getEarlierVisibleRevision'](_0x1ca876);_0x101d17['compare'](_0x1ca876,_0x20ef73),_0x565f25['focus'](),_0x565f25['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x229513,_0x1a0f2c){super(_0x229513),this['_view']=_0x1a0f2c,this['_toolbarConfig']=ht(_0x229513['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x3bf818){const _0x21548a=this['editor'],_0x5bacb0=this['view'],_0xdcc87e=_0x21548a['editing']['view'],_0x2dece2=_0x5bacb0['editable'],_0x35f618=_0xdcc87e['document']['getRoot']();_0x2dece2['name']=_0x35f618['rootName'],_0x5bacb0['render']();const _0x5bbf82=_0x2dece2['element'];this['setEditableElement'](_0x2dece2['name'],_0x5bbf82),_0x5bacb0['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xdcc87e['attachDomRoot'](_0x5bbf82),this['_elementReplacer']['replace'](_0x3bf818,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3d5c49=this['view'],_0x5cf01c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5cf01c['detachDomRoot'](_0x3d5c49['editable']['name']),_0x3d5c49['destroy']();}['_initToolbar'](){const _0x139cb2=this['view'];_0x139cb2['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x139cb2['stickyPanel']['limiterElement']=_0x139cb2['element'],_0x139cb2['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x470c42})=>_0x470c42),_0x139cb2['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x139cb2['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x497401,_0x3f758d,_0x281d9c={}){super(_0x497401),this['stickyPanel']=new lt(_0x497401),this['toolbar']=new nt(_0x497401,{'shouldGroupWhenFull':_0x281d9c['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x497401,_0x3f758d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3ab7ec,_0x11dea4){super(_0x11dea4),this['sourceElement']=_0x3ab7ec,this['model']['document']['createRoot']();const _0x4c8cdb=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x4c8cdb);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3fc35f,_0x13f8d5){const _0x2ac880=new this(_0x3fc35f,_0x13f8d5);return await _0x2ac880['initPlugins'](),await _0x2ac880['ui']['init'](_0x3fc35f),await _0x2ac880['data']['init'](_0x2ac880['config']['get']('initialData')||''),_0x2ac880['fire']('ready'),_0x2ac880;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5025c2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3aa389){function _0x41172e(_0x26ee0e){return _0x26ee0e['map'](_0x5001a6=>String['fromCharCode'](_0x5001a6))['join']('');}super(_0x3aa389),this['result']='end',_0x3aa389[_0x41172e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41172e([0x76,0x69,0x65,0x77])][_0x41172e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41172e([0x61,0x75,0x74,0x6f]),_0x3aa389[_0x41172e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x41172e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41172e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x41172e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x41172e([0x6f,0x6b])});}}class H extends _0x5025c2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x494f0a){if(super(_0x494f0a),!this['editor']['config']['get']('revisionHistory'))throw new _0x29c262('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3383a5=>this['_showRevisionViewer']({..._0x3383a5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2a05ae=>this['_closeRevisionViewer'](_0x2a05ae)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x33bc00=>this['_restoreRevision'](_0x33bc00)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4b8bd0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4b8bd0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4eb164){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4eb164);}['getRevision'](_0x13ab73){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x13ab73);}['getRevisions'](_0x2330db){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2330db||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3375fd=this['editor'],_0x3f5e5b=_0x5e210e(_0x3375fd,p),_0x322d2d=_0x3375fd['plugins']['get']('RevisionTracker'),_0x1b99b2=_0x3375fd['plugins']['get']('Users')['users'];return _0x3f5e5b['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3f5e5b['lazyRoots'],(_0x3f5e5b['plugins']['push'](k,d,m,class extends _0x5025c2{static get['requires'](){return[d,'Users'];}['init'](){const _0x4b0e78=this['editor']['plugins']['get']('Users');for(const _0x4c21bf of _0x1b99b2)_0x4c21bf['isAnonymous']||_0x4b0e78['getUser'](_0x4c21bf['id'])||_0x4b0e78['addUser'](_0x4c21bf);const _0x3d4c05=_0x322d2d['repository']['getRevisions']();let _0x326444=null;const _0x1c9b68=this['editor']['plugins']['get']('RevisionViewer');_0x1c9b68['adapter']=_0x322d2d['adapter'],_0x1c9b68['bind']('isEnabled')['to'](_0x322d2d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3375fd,'isReadOnly',_0x233a3b=>!_0x233a3b);for(const _0x2e546e of _0x3d4c05){const _0x55fb15=null===_0x2e546e['creator'];if(_0x55fb15&&_0x2e546e['toVersion']===_0x2e546e['fromVersion'])continue;const _0x285982=_0x2e546e['toJSON']();_0x1c9b68['addRevisionData'](_0x285982,(_0x17202e,_0x4b2869,_0x93cf61)=>{if(_0x55fb15){if(_0x326444)_0x326444['_update'](_0x17202e,_0x4b2869);else{if(!_0x4b2869){const _0x310cd3=_0x93cf61['toJSON']();_0x310cd3['id']=_0x4fb206(),_0x322d2d['saveRevision'](_0x310cd3,_0x93cf61['toVersion'])['then'](_0x43708f=>{_0x326444=_0x43708f;});}}}else _0x2e546e['_update'](_0x17202e,_0x4b2869);});}}},g),_0x3f5e5b);}['_enhanceShowRevisionViewerCallback'](){const _0x340eda=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x30f6ca=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1be970=this['editor']['plugins']['get']('Autosave');await _0x1be970['save']();}else await _0x30f6ca['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x93ba8b=this['editor']['plugins']['get']('Dialog');_0x93ba8b['isOpen']&&_0x93ba8b['hide']();}const _0xd827c0=this['_getRevisionViewerEditorConfig']();return _0x340eda(_0xd827c0)['then'](_0x102f8d=>{return(this['_viewerEditor']=_0x102f8d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x102f8d;})['catch'](_0x571572=>(console['error'](_0x571572),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x222d40=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'](),_0x222d40(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4488a1=this['editor']['plugins']['get']('Annotations');_0x4488a1['refreshVisibility'](),_0x4488a1['refreshPositioning']();}})));}['_showRevisionViewer'](_0x373b60){const _0xcf358e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x190129=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5af98c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5af98c,_0x373b60)['then'](_0x186cc1=>(_0x190129['style']['display']='block',_0xcf358e['style']['display']='none',_0x186cc1));}['_closeRevisionViewer'](_0x406bf2){const _0x403367=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x403367['style']['display']='',_0x406bf2['destroy']();}async['_restoreRevision'](_0x2c97e2){const _0x56c2cc=this['editor'],_0x1e6d78=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x51cd5a=_0x56c2cc['plugins']['get']('RevisionTracker'),_0x384173=_0x1e6d78['repository']['getRevision'](_0x2c97e2);let _0x50051e,_0x5c2c3e,_0x41b72f;try{_0x50051e=await _0x1e6d78['getRevisionData'](_0x384173),_0x5c2c3e=await _0x1e6d78['getRevisionRootsAttributes'](_0x384173);}catch(_0x1c0224){return void console['error'](_0x1c0224);}_0x56c2cc['model']['change'](_0x3e0243=>{for(const _0x2156b of Array['from'](_0x56c2cc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3e0243['removeMarker'](_0x2156b);}),_0x1e6d78['isReady']=!0x1,_0x56c2cc['model']['enqueueChange'](_0x44ec01=>{_0x44ec01['setSelection'](null),_0x44ec01['removeSelectionAttribute'](_0x56c2cc['model']['document']['selection']['getAttributeKeys']());const _0x57775e=Object['keys'](_0x50051e);for(const _0x44452f of _0x56c2cc['model']['document']['roots'])'$graveyard'!=_0x44452f['rootName']&&_0x44452f['isAttached']()&&!_0x57775e['includes'](_0x44452f['rootName'])&&_0x44ec01['detachRoot'](_0x44452f);for(const _0x45d7ed of _0x57775e){let _0x2fc508=_0x56c2cc['model']['document']['getRoot'](_0x45d7ed);_0x2fc508&&_0x2fc508['isAttached']()||(_0x2fc508=_0x44ec01['addRoot'](_0x45d7ed));const _0x36bd83=_0x5c2c3e[_0x45d7ed],_0xc3a810=Object['keys'](_0x36bd83),_0x5145c5=_0x50051e[_0x45d7ed];for(const _0x2ff3ca of _0x2fc508['getAttributeKeys']())_0xc3a810['includes'](_0x2ff3ca)||_0x44ec01['removeAttribute'](_0x2ff3ca,_0x2fc508);for(const _0x40bd37 of _0xc3a810)_0x44ec01['setAttribute'](_0x40bd37,_0x5c2c3e[_0x45d7ed][_0x40bd37],_0x2fc508);_0x44ec01['remove'](_0x44ec01['createRangeIn'](_0x2fc508)),_0x44ec01['insert'](_0x56c2cc['data']['parse'](_0x5145c5,_0x2fc508),_0x2fc508,0x0);}});const _0x3cb7c0=R(_0x56c2cc['locale'],'Restored');if(_0x384173['name'])_0x41b72f=-0x1==_0x384173['name']['indexOf'](_0x3cb7c0)?_0x3cb7c0+':\x20'+_0x384173['name']:_0x384173['name'];else _0x41b72f=_0x3cb7c0+':\x20'+(_0x384173['createdAt']['toLocaleDateString'](_0x56c2cc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x384173['createdAt']['toLocaleTimeString'](_0x56c2cc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x51cd5a['saveRevision']({'name':_0x41b72f}),_0x1e6d78['isReady']=!0x0,_0x56c2cc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|