@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241208.0 → 0.0.0-nightly-20241209.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 _0x22c111,uid as _0x4a2e00,Collection as _0x5a5c64,logWarning as _0x14c8c1,FocusTracker as _0x431090,KeystrokeHandler as _0x433897,scrollViewportToShowTarget as _0x32e163,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x8b8fdd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1875bd,set as _0x506795,unset as _0x32b4e3,isEqual as _0x3ee46e}from'lodash-es';import{Plugin as _0x5b577d,PendingActions as _0x294576,icons as _0x105b1a,Command as _0x260265,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x36f408,getMarkerDomElement as _0x46d363,ConfirmMixin as ti,sanitizeEditorConfig as _0xfd0b49}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4a4d01,ViewText as _0x275fe8,ViewElement as _0x26ab22,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x11b6b8,ViewAttributeElement as _0x485951,ViewEmptyElement as _0x49d971,ViewRawElement as _0x523d4a,ViewUIElement as _0x10d7dc,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x191e69,submitHandler as _0xf2cc1a,LabeledFieldView as _0x11290e,createLabeledInputText as _0x5f48cb,createDropdown as _0x4c94ed,ListView as _0x1ac7e1,ListItemView as _0x333270,ButtonView as te,MenuBarMenuView as _0x39d19f,MenuBarMenuListView as _0x41953e,MenuBarMenuListItemView as _0x13e6b2,MenuBarMenuListItemButtonView as _0x1ea060,ContextualBalloon as _0x4ad402,ToolbarSeparatorView as _0xab97bf,IconView as _0x4f1258,addListToDropdown as to,ViewModel as _0x31a29d,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 _0x5d0133}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x22c111(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x20d1f0){super(),this['id']=_0x20d1f0['id']||_0x4a2e00(),this['creator']=_0x20d1f0['creator']||null,this['authors']=_0x20d1f0['authors']||[],this['diffData']=_0x20d1f0['diffData']||null,this['toVersion']=_0x20d1f0['toVersion']||0x0,this['fromVersion']=_0x20d1f0['fromVersion']||0x0,this['set']('name',_0x20d1f0['name']||''),this['set']('createdAt',_0x20d1f0['createdAt']||new Date()),this['set']('attributes',_0x20d1f0['attributes']||{});}['setName'](_0x5b5dd3){this['_update']({'name':_0x5b5dd3});}['setAttribute'](_0x78572e,_0x1c3a6d){const _0x3c4e8b=_0x1875bd(this['attributes']);_0x506795(_0x3c4e8b,_0x78572e,_0x1c3a6d),this['_update']({'attributes':_0x3c4e8b});}['removeAttribute'](_0x4cd5ef){const _0x3ec8c3=_0x1875bd(this['attributes']);_0x32b4e3(_0x3ec8c3,_0x4cd5ef),this['_update']({'attributes':_0x3ec8c3});}['_update'](_0x1f8658,_0x1daeff=!0x1){let _0x39075b=!0x1;const _0x3f39f6={'id':this['id']},_0x2d898e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x64f7e of _0x2d898e){const _0x380246=_0x1f8658[_0x64f7e];void 0x0!==_0x380246&&_0x380246!==this[_0x64f7e]&&(this[_0x64f7e]=_0x380246,_0x3f39f6[_0x64f7e]=_0x380246,_0x39075b=!0x0);}_0x39075b&&(_0x3f39f6['authors']&&(_0x3f39f6['authorsIds']=_0x3f39f6['authors']['map'](_0x372d0c=>_0x372d0c['id']),delete _0x3f39f6['authors']),this['fire']('_update',_0x3f39f6,_0x1daeff));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x178fe6=>_0x178fe6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5b577d{['_revisions'];static get['requires'](){return[_0x36f408];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x172679){super(_0x172679),this['_revisions']=new _0x5a5c64();}['afterInit'](){!async function(_0x448661){const _0x12c6fe=_0x15073e([0x46,0x55,0x58,0x45,0x75,0x34,0x57,0x54,0x79,0x6d,0x71,0x7a,0x6b,0x72,0x43,0x78,0x38,0x70,0x4e,0x6c,0x36,0x6f,0x63,0x64,0x65,0x68,0x6e,0x33,0x53,0x4d,0x39,0x48,0x76,0x35,0x50,0x41,0x52,0x47,0x59,0x49,0x44,0x69,0x51,0x74,0x30,0x4a,0x42,0x4c,0x56,0x73,0x4f,0x31,0x37,0x5a,0x61,0x77,0x62,0x67,0x6a,0x32,0x66,0x4b]),_0xf4f13b=0xeb829,_0x14447a=0x4d8b7c39,_0x1d2be2=0x4d8c2509^_0x14447a,_0x3b4009=window[_0x15073e([0x44,0x61,0x74,0x65])][_0x15073e([0x6e,0x6f,0x77])](),_0x1c5df8=_0x448661[_0x15073e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c0c25=new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119410=>{_0x1c5df8[_0x15073e([0x6f,0x6e,0x63,0x65])](_0x15073e([0x72,0x65,0x61,0x64,0x79]),_0x119410);}),_0x2000d9={[_0x15073e([0x6b,0x74,0x79])]:_0x15073e([0x45,0x43]),[_0x15073e([0x75,0x73,0x65])]:_0x15073e([0x73,0x69,0x67]),[_0x15073e([0x63,0x72,0x76])]:_0x15073e([0x50,0x2d,0x32,0x35,0x36]),[_0x15073e([0x78])]:_0x15073e([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]),[_0x15073e([0x79])]:_0x15073e([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]),[_0x15073e([0x61,0x6c,0x67])]:_0x15073e([0x45,0x53,0x32,0x35,0x36])},_0x507a87=_0x1c5df8[_0x15073e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15073e([0x67,0x65,0x74])](_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x116dae(){let _0x42d2a3,_0x4cdfef=null,_0x409201=null;try{if(_0x507a87==_0x15073e([0x47,0x50,0x4c]))return _0x15073e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42d2a3=_0x33c074(),!_0x42d2a3)return _0x15073e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42d2a3[_0x15073e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x409201=_0x40aed6(_0x42d2a3[_0x15073e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42d2a3[_0x15073e([0x6a,0x74,0x69])])),await _0xde47f8()?_0x5cee47()?_0x56d4d5()?_0x15073e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bc15b()?(_0x42d2a3[_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15073e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4cdfef=_0x1982bc(_0x15073e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42d2a3[_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15073e([0x74,0x72,0x69,0x61,0x6c])&&(_0x4cdfef=_0x1982bc(_0x15073e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x42d2a3[_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15073e([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4cdfef=_0x1982bc(_0x15073e([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59d4d9()):_0x15073e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15073e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15073e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5d5749){return _0x15073e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56d4d5(){const _0x3cc4a3=[_0x15073e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15073e([0x74,0x72,0x69,0x61,0x6c])][_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d2a3[_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b4009/0x3e8:0xe10*_0x1d2be2;return _0x42d2a3[_0x15073e([0x65,0x78,0x70])]<_0x3cc4a3;}function _0x5cee47(){const _0x4694aa=_0x42d2a3[_0x15073e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4694aa)return!0x1;if(_0x4694aa[_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15073e([0x2a])))return!0x0;if(_0x4694aa[_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15073e([0x52,0x48])))return!0x0;if(_0x4694aa[_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15073e([0x52,0x52,0x48]))){if(_0x2ec0ec())return!0x0;if(_0x1ec31d()||_0x1a0340())return!0x0;}return!0x1;}function _0x2bc15b(){const _0x19a1fc=_0x42d2a3[_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x19a1fc||0x0==_0x19a1fc[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4dfb4c}=new URL(window[_0x15073e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x19a1fc[_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dfb4c))return!0x0;const _0x27a0be=_0x4dfb4c[_0x15073e([0x73,0x70,0x6c,0x69,0x74])](_0x15073e([0x2e]));return _0x19a1fc[_0x15073e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x116a11=>_0x116a11[_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15073e([0x2a])))[_0x15073e([0x6d,0x61,0x70])](_0x12b4b4=>_0x12b4b4[_0x15073e([0x73,0x70,0x6c,0x69,0x74])](_0x15073e([0x2e])))[_0x15073e([0x73,0x6f,0x6d,0x65])](_0x566972=>_0x27a0be[_0x15073e([0x65,0x76,0x65,0x72,0x79])]((_0x2f7a4a,_0x2e2bb2)=>_0x566972[_0x2e2bb2]===_0x2f7a4a||_0x566972[_0x2e2bb2]===_0x15073e([0x2a])));}function _0x59d4d9(){return _0x4cdfef&&_0x409201?new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x475585,_0x2ff68e)=>{_0x4cdfef[_0x15073e([0x74,0x68,0x65,0x6e])](_0x475585,_0x2ff68e),_0x409201[_0x15073e([0x74,0x68,0x65,0x6e])](_0x19d487=>{_0x19d487!=_0x15073e([0x56,0x61,0x6c,0x69,0x64])&&_0x475585(_0x19d487);},_0x2ff68e);}):_0x4cdfef||_0x409201||_0x15073e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40aed6(_0x41fadc,_0x25f92f){return new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33a566=>{if(_0x1e14de())return _0x33a566(_0x15073e([0x56,0x61,0x6c,0x69,0x64]));_0x133f3e(),_0x1c5df8[_0x15073e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15073e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x316bb6=!0x1;const _0x2b2c0c=_0x4a2e00();function _0x2d1328(_0x5021e5){return!!_0x5021e5&&(typeof _0x5021e5===_0x15073e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5021e5===_0x15073e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5021e5[_0x15073e([0x74,0x68,0x65,0x6e])]===_0x15073e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5021e5[_0x15073e([0x63,0x61,0x74,0x63,0x68])]===_0x15073e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x165cf6(_0x4fbed1){_0x5acdd8(_0x4fbed1)[_0x15073e([0x74,0x68,0x65,0x6e])](_0x4e1e39=>{if(!_0x4e1e39||_0x4e1e39[_0x15073e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15073e([0x6f,0x6b]))return _0x15073e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x139d06(_0xfdc51c(_0x2b2c0c+_0x25f92f))!=_0x4e1e39[_0x15073e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15073e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15073e([0x56,0x61,0x6c,0x69,0x64]);})[_0x15073e([0x74,0x68,0x65,0x6e])](_0x45e4d6=>(_0x35a73d(),_0x45e4d6),()=>{const _0x3533f8=_0x579b45();return null==_0x3533f8?(_0x35a73d(),_0x15073e([0x56,0x61,0x6c,0x69,0x64])):_0x15073e(_0x3b4009-_0x3533f8>(0x6987f839^_0x14447a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15073e([0x74,0x68,0x65,0x6e])](_0x33a566)[_0x15073e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33a566(_0x15073e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c0585=0x4dbd92b9^_0x14447a;function _0x35a73d(){const _0x4e8692=_0x15073e([0x6c,0x6c,0x63,0x74,0x2d])+_0x139d06(_0xfdc51c(_0x41fadc)),_0x174f21=_0x5b6be5(_0x139d06(window[_0x15073e([0x4d,0x61,0x74,0x68])][_0x15073e([0x63,0x65,0x69,0x6c])](_0x3b4009/_0x4c0585)));window[_0x15073e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15073e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e8692,_0x174f21);}function _0x579b45(){const _0x2ff006=_0x15073e([0x6c,0x6c,0x63,0x74,0x2d])+_0x139d06(_0xfdc51c(_0x41fadc)),_0x3f662d=window[_0x15073e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15073e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ff006);return _0x3f662d?window[_0x15073e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b6be5(_0x3f662d),0x10)*_0x4c0585:null;}function _0x5acdd8(_0x55c229){return new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8b908b,_0x369349)=>{_0x55c229[_0x15073e([0x74,0x68,0x65,0x6e])](_0x8b908b,_0x369349),window[_0x15073e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x369349,0x4d8aa8f9^_0x14447a);});}}_0x1c5df8[_0x15073e([0x6f,0x6e])](_0x15073e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23f324,_0x156f5d)=>{if(_0x156f5d[0x0]!=_0x41fadc)return _0x33a566(_0x15073e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x156f5d[0x1]={..._0x156f5d[0x1],[_0x15073e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b2c0c};},{[_0x15073e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15073e([0x68,0x69,0x67,0x68])}),_0x1c5df8[_0x15073e([0x6f,0x6e])](_0x15073e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x338314=>{_0x2d1328(_0x338314[_0x15073e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x316bb6=!0x0,_0x165cf6(_0x338314[_0x15073e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15073e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15073e([0x6c,0x6f,0x77])}),_0x2c0c25[_0x15073e([0x74,0x68,0x65,0x6e])](()=>{_0x316bb6||_0x33a566(_0x15073e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e14de(){return _0x1c5df8[_0x15073e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15073e([0x76,0x69,0x65,0x77])][_0x15073e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15073e([0x61,0x75,0x74,0x6f]);}function _0x133f3e(){_0x1c5df8[_0x15073e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15073e([0x76,0x69,0x65,0x77])][_0x15073e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15073e([0x61,0x75,0x74,0x6f]);}}function _0x1982bc(_0x1b8df3){const _0x53b8ab=[new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107cd0=>setTimeout(_0x107cd0,0x4d8242f5^_0x14447a)),_0x2c0c25[_0x15073e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x224f28=>{const _0x166bf4=0x4d8b7c3e^_0x14447a,_0x479ce8=_0x448661[_0x15073e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1a1521(){_0x479ce8[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x166bf4&&_0x224f28();}_0x1a1521(),_0x479ce8[_0x15073e([0x6f,0x6e])](_0x15073e([0x61,0x64,0x64]),_0x1a1521);})),new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x181e60=>{function _0x1efb3c(){for(const _0x5ec8fa in window)if(window[_0x15073e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x15073e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5ec8fa))&&window[_0x5ec8fa]==_0xf4f13b)return _0x181e60();_0x1c5df8[_0x15073e([0x73,0x74,0x61,0x74,0x65])]!=_0x15073e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x15073e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1efb3c,0x4d8b6fb1^_0x14447a);}_0x4767bb(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1efb3c();})];return window[_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15073e([0x72,0x61,0x63,0x65])](_0x53b8ab)[_0x15073e([0x74,0x68,0x65,0x6e])](()=>_0x1b8df3);}async function _0x907393(){if(await _0x2c0c25,_0x4767bb(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x497da4=_0x448661[_0x15073e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x155bbe=_0x448661[_0x15073e([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])](_0x497da4[_0x15073e([0x69,0x64])]),_0x59de26=_0x44d906(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x59de26[_0x15073e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x497da4['id'],_0x155bbe?_0x155bbe['id']:null,!0x0),_0x59de26[_0x15073e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x15073e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59de26[_0x15073e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59de26[_0x15073e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5875ea,void(_0x59de26[_0x15073e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5875ea);}if(_0x4767bb(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x11e41a=_0x44d906(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x11e41a[_0x15073e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x15073e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x11e41a[_0x15073e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x11e41a[_0x15073e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5875ea,_0x11e41a[_0x15073e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5875ea;}_0x1c5df8[_0x15073e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15073e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5875ea,_0x1c5df8[_0x15073e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15073e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5875ea,_0x1c5df8[_0x15073e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15073e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ec0ec(){return _0x4767bb(_0x15073e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x44d906(_0x15073e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15073e([0x73,0x74,0x61,0x74,0x65])]==_0x15073e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ec31d(){return _0x4767bb(_0x15073e([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 _0x1a0340(){return _0x4767bb(_0x15073e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x15a5ba(_0x11f02d){const _0x10668c=_0x1a4f52();_0x1c5df8[_0x10668c]=_0x15073e([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])+_0x11f02d,_0x11f02d[_0x15073e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x15073e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1a4f52()]=_0xf4f13b),_0x11f02d!=_0x15073e([0x56,0x61,0x6c,0x69,0x64])&&_0x907393();}function _0x1a4f52(){const _0x578002=window[_0x15073e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15073e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15073e([0x6e,0x6f,0x77])]())[_0x15073e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15073e([0x2e]),'');let _0x5b5da7=_0x15073e([0x46]);for(let _0x1828c0=0x0;_0x1828c0<_0x578002[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1828c0+=0x2){let _0x14f382=window[_0x15073e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x578002[_0x15073e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1828c0,_0x1828c0+0x2));_0x14f382>=_0x12c6fe[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14f382-=_0x12c6fe[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b5da7+=_0x12c6fe[_0x14f382];}return _0x5b5da7;}function _0x33c074(){const _0x5abdf8=_0x507a87[_0x15073e([0x73,0x70,0x6c,0x69,0x74])](_0x15073e([0x2e]));if(0x3!=_0x5abdf8[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x547fd7(_0x5abdf8[0x1]);function _0x547fd7(_0x549b1f){const _0x187568=_0x15fd3e(_0x549b1f);return _0x187568&&_0x3b7c9d()?_0x187568:null;function _0x3b7c9d(){const _0x4386a9=_0x187568[_0x15073e([0x6a,0x74,0x69])],_0x3c017f=window[_0x15073e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4386a9[_0x15073e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4386a9[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13ccc4={..._0x187568,[_0x15073e([0x6a,0x74,0x69])]:_0x4386a9[_0x15073e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4386a9[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13ccc4[_0x15073e([0x76,0x63])],_0xfdc51c(_0x13ccc4)==_0x3c017f;}}}async function _0xde47f8(){let _0x1c6f1a=!0x0;try{const _0x3303ee=_0x507a87[_0x15073e([0x73,0x70,0x6c,0x69,0x74])](_0x15073e([0x2e])),[_0x4478c7,_0x4b4771,_0x564558]=_0x3303ee;return _0x19254e(_0x4478c7),await _0x54b254(_0x4478c7,_0x4b4771,_0x564558),_0x1c6f1a;}catch(_0xd491b){return!0x1;}function _0x19254e(_0x450b77){const _0x2680d1=_0x15fd3e(_0x450b77);_0x2680d1&&_0x2680d1[_0x15073e([0x61,0x6c,0x67])]==_0x15073e([0x45,0x53,0x32,0x35,0x36])||(_0x1c6f1a=!0x1);}async function _0x54b254(_0x2b55d5,_0x36ed81,_0x399c50){const _0x48f516=window[_0x15073e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15073e([0x66,0x72,0x6f,0x6d])](_0x1223ae(_0x399c50),_0x22eab8=>_0x22eab8[_0x15073e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x540bd7=new window[(_0x15073e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15073e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b55d5+_0x15073e([0x2e])+_0x36ed81),_0xaae41f=window[_0x15073e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15073e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xaae41f)return;const _0x5c5a2e=await _0xaae41f[_0x15073e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15073e([0x6a,0x77,0x6b]),_0x2000d9,{[_0x15073e([0x6e,0x61,0x6d,0x65])]:_0x15073e([0x45,0x43,0x44,0x53,0x41]),[_0x15073e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15073e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15073e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xaae41f[_0x15073e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15073e([0x6e,0x61,0x6d,0x65])]:_0x15073e([0x45,0x43,0x44,0x53,0x41]),[_0x15073e([0x68,0x61,0x73,0x68])]:{[_0x15073e([0x6e,0x61,0x6d,0x65])]:_0x15073e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c5a2e,_0x48f516,_0x540bd7)||(_0x1c6f1a=!0x1);}}function _0x15fd3e(_0x2e21a5){return _0x2e21a5[_0x15073e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15073e([0x65,0x79]))?JSON[_0x15073e([0x70,0x61,0x72,0x73,0x65])](_0x1223ae(_0x2e21a5)):null;}function _0x1223ae(_0x1bac3c){return window[_0x15073e([0x61,0x74,0x6f,0x62])](_0x1bac3c[_0x15073e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15073e([0x2b]))[_0x15073e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15073e([0x2f])));}function _0xfdc51c(_0x24f063){let _0x563355=0x1505;function _0x3ff281(_0x7c1824){for(let _0x31c07c=0x0;_0x31c07c<_0x7c1824[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31c07c++){const _0x43605a=_0x7c1824[_0x15073e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31c07c);_0x563355=(_0x563355<<0x5)+_0x563355+_0x43605a,_0x563355&=_0x563355;}}function _0x45e997(_0x58f036){Array[_0x15073e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58f036)?_0x58f036[_0x15073e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45e997):_0x58f036&&typeof _0x58f036==_0x15073e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15073e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58f036)[_0x15073e([0x73,0x6f,0x72,0x74])]()[_0x15073e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31547c,_0x3cfeb6])=>{_0x3ff281(_0x31547c),_0x45e997(_0x3cfeb6);}):_0x3ff281(window[_0x15073e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58f036));}return _0x45e997(_0x24f063),_0x563355>>>0x0;}function _0x139d06(_0x631d69){return _0x631d69[_0x15073e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15073e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15073e([0x30]));}function _0x5b6be5(_0x587c67){return _0x587c67[_0x15073e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15073e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15073e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4767bb(_0x3df298){return _0x1c5df8[_0x15073e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15073e([0x68,0x61,0x73])](_0x3df298);}function _0x44d906(_0x3d3c63){return _0x1c5df8[_0x15073e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15073e([0x67,0x65,0x74])](_0x3d3c63);}function _0x5875ea(){}function _0x15073e(_0x27769d){return _0x27769d['map'](_0x4168f8=>String['fromCharCode'](_0x4168f8))['join']('');}_0x15a5ba(await _0x116dae());}(this);}['createRevision'](_0x4fd858){const _0xebb00f=this['editor']['plugins']['get']('Users');return new a({'id':_0x4fd858['id'],'name':_0x4fd858['name'],'creator':_0x4fd858['creatorId']?_0xebb00f['getUser'](_0x4fd858['creatorId']):null,'diffData':_0x4fd858['diffData']||_0x4fd858['data'],'authors':_0x4fd858['authorsIds']['map'](_0xb4ef76=>_0xebb00f['getUser'](_0xb4ef76)),'createdAt':new Date(_0x4fd858['createdAt']),'attributes':_0x4fd858['attributes'],'fromVersion':_0x4fd858['fromVersion'],'toVersion':_0x4fd858['toVersion']});}['addRevision'](_0x3b1077,_0x5deaa2=0x0){this['_revisions']['add'](_0x3b1077,_0x5deaa2);}['getRevision'](_0x3f0863){return this['_revisions']['get'](_0x3f0863);}['getRevisions'](_0x891863={'toJSON':!0x1}){const _0x1dcfec=Array['from'](this['_revisions']);return _0x1dcfec['reverse'](),_0x891863['toJSON']?_0x1dcfec['map'](_0x5c2991=>_0x5c2991['toJSON']()):_0x1dcfec;}['getIndex'](_0xb6bcdc){return this['_revisions']['getIndex'](_0xb6bcdc);}['getEarlierVisibleRevision'](_0x4b32ee){const [,_0x449bd1]=this['getRevisionsIterator'](_0x4b32ee,{'direction':'earlier'});return _0x449bd1;}['getLaterVisibleRevision'](_0x817558){const [,_0x5f5939]=this['getRevisionsIterator'](_0x817558,{'direction':'later'});return _0x5f5939;}['getRevisionsInDiff'](_0x7cf228){const _0x553c88=[];for(const _0x420801 of this['getRevisionsIterator'](_0x7cf228['newRevisionId']))if(_0x553c88['push'](_0x420801),_0x420801['id']===_0x7cf228['oldRevisionId'])break;return _0x553c88;}*['getRevisionsIterator'](_0x4994dc,{direction:_0x567a39='earlier',filter:_0x1ceb24=()=>!0x0}={}){const _0xb41cb4='earlier'===_0x567a39?0x1:-0x1;let _0x3ee521=this['_revisions']['get'](_0x4994dc),_0x38996e=this['getIndex'](_0x3ee521);for(yield _0x3ee521;_0x3ee521;){if(_0x38996e+=_0xb41cb4,_0x3ee521=this['getRevision'](_0x38996e),!_0x3ee521)return;_0x1ceb24(_0x3ee521)&&(yield _0x3ee521);}}}function R(_0x49a97d,_0x4b8c9f,_0x4dd3e1){const t=_0x49a97d['t'];switch(_0x4b8c9f){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'},_0x4dd3e1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4dd3e1);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':_0x11b6b8,'a':_0x485951,'e':_0x49d971,'r':_0x523d4a,'u':_0x10d7dc};class l extends _0x5b577d{['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[_0x36f408,j,_0x294576];}constructor(_0x3f22d1){super(_0x3f22d1),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 _0x205d3c=_0x4a2e00();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x205d3c},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 _0x3a33ba=this['repository']['getRevision'](0x0),_0xa5f015=_0x3a33ba&&null===_0x3a33ba['creator']?_0x3a33ba:null;if(this['_continueCurrentRevision']=!!_0xa5f015&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2cec07=this['_source']['getCurrentRevisionId'](),_0x45649d=this['repository']['getRevision'](_0x2cec07);if(_0x45649d)this['_startingVersion']=_0x45649d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x14fa95=this['_source']['history']['_operations']['find'](_0x4489f5=>!_0x4489f5['_isInit']),_0x12ff5a=_0x14fa95?_0x14fa95['baseVersion']:this['_source']['history']['version'];_0x3a33ba?(_0x3a33ba['toVersion']<_0x12ff5a&&_0x3a33ba['_update']({'toVersion':_0x12ff5a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xa5f015['id'],this['_startingVersion']=_0xa5f015['fromVersion']):(this['_startingVersion']=_0x3a33ba['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x12ff5a,this['_continueCurrentRevision']=!0x1);}}else _0xa5f015&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xa5f015['toVersion'],this['editor']['model']['document']['history']['version']),_0xa5f015['fromVersion']===_0xa5f015['toVersion']?(0x0!==_0xa5f015['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xa5f015['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xa5f015['id'],this['_startingVersion']=_0xa5f015['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',_0x2dc499=>!_0x2dc499),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a0552=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2681a5;for(const _0x1d49cb in _0x4a0552){const _0x1461d0=_0x1d49cb,_0x1ce1ec=_0x4a0552[_0x1461d0];if('revisionHistoryLicenseKeyValid'==_0x1ce1ec||'revisionHistoryLicenseKeyInvalid'==_0x1ce1ec||'revisionHistoryLicenseKeyExpired'==_0x1ce1ec||'revisionHistoryLicenseKeyDomainLimit'==_0x1ce1ec||'revisionHistoryLicenseKeyNotAllowed'==_0x1ce1ec||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1ce1ec||'revisionHistoryLicenseKeyTrialLimit'==_0x1ce1ec||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1ce1ec||'revisionHistoryLicenseKeyUsageLimit'==_0x1ce1ec){delete _0x4a0552[_0x1461d0],_0x2681a5=_0x1ce1ec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2681a5&&_0x4a0552['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2681a5&&_0x4a0552['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2681a5&&_0x4a0552['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2681a5&&_0x4a0552['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2681a5&&_0x4a0552['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2681a5&&_0x4a0552['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2681a5&&_0x4a0552['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2681a5&&_0x4a0552['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x22a304=this['repository']['getRevision'](0x0),_0x5c7425=await this['getRevisionDocumentData'](_0x22a304),_0x1f59d5=await this['getRevisionRootsAttributes'](_0x22a304);this['_replaceEditorDataWithRevisionData'](_0x5c7425,_0x1f59d5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x36283e){this['_source']=_0x36283e;}async['update'](){const _0x324ae0=await this['_source']['getLatestVersion']();if(_0x324ae0>this['currentRevision']['toVersion']){await this['_loadState']();const _0x34a835=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x324ae0});_0x34a835['authors']=_0x34a835['authorsIds']['map'](_0x1a6ace=>this['editor']['plugins']['get']('Users')['getUser'](_0x1a6ace)),this['currentRevision']['_update'](_0x34a835);}}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'](_0xeafa9d={},_0x30016f=null){const _0x37e874=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x30016f>this['currentRevision']['toVersion']&&(_0x30016f=null),null===_0x30016f&&(_0x30016f=await this['_source']['getLatestVersion']());const _0x1edf8e=this['_getFromVersion'](_0x30016f),_0x31a37b=this['buildRevisionData']({'from':_0x1edf8e,'to':_0x30016f});if(this['currentRevision']['toVersion']<_0x30016f){const _0x37c337=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x30016f,'to':_0x30016f});_0x37c337['authors']=[],_0x37c337['authorsIds']=[],_0x37c337['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x37c337,!0x0),delete _0x37c337['authors'],_0x37e874['push'](_0x37c337);}_0xeafa9d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xeafa9d['name']=_0xeafa9d['name']||null,_0xeafa9d['id']=_0xeafa9d['id']||_0x4a2e00(),_0xeafa9d={..._0xeafa9d,..._0x31a37b};const _0xdf172f=this['addRevisionData'](_0xeafa9d);_0x37e874['push'](_0xeafa9d);const _0x2839ad=this['repository']['getIndex'](_0xdf172f);if(0x0!==_0x2839ad){const _0x46d040=this['repository']['getRevision'](_0x2839ad-0x1);if(_0x46d040['fromVersion']!==_0x30016f){const _0xe2b9e0=this['_revisionDataBuilder']['getData'](_0x30016f,_0x46d040['toVersion']),_0x431913={'id':_0x46d040['id'],'diffData':_0xe2b9e0['diffData'],'authorsIds':_0xe2b9e0['authorsIds'],'authors':_0xe2b9e0['authorsIds']['map'](_0x495522=>this['editor']['plugins']['get']('Users')['getUser'](_0x495522)),'fromVersion':_0x30016f};_0x46d040===this['currentRevision']&&(_0x431913['createdAt']=new Date(_0xeafa9d['createdAt']['getTime']()+0xa)),_0x46d040['_update'](_0x431913,!0x0),delete _0x431913['authors'],_0x37e874['push'](_0x431913);}}if(this['adapter']){for(const _0x4c76d4 of _0x37e874)this['_bufferUpdate'](_0x4c76d4['id'],_0x4c76d4,!0x0);this['sendBufferedUpdates']();}return _0xdf172f;}['addRevisionData'](_0x347b3d){const _0x1052db=this['repository']['createRevision'](_0x347b3d);return this['adapter']&&_0x1052db['on']('_update',(_0x52276f,_0x456cda,_0x8b245c)=>{_0x8b245c||(this['_bufferUpdate'](_0x456cda['id'],_0x456cda,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1052db,this['_findInsertionIndex'](_0x1052db)),_0x1052db;}async['getRevisionDocumentData'](_0x31f0aa){await this['_loadRevisionData'](_0x31f0aa);const _0x434fc9={};for(const _0x3c10e1 in _0x31f0aa['diffData']){if(_0x31f0aa['diffData'][_0x3c10e1]['attachChange']&&!_0x31f0aa['diffData'][_0x3c10e1]['attachChange']['isAttached'])continue;const _0x5026b3=this['_removeRevisionMarkers'](JSON['parse'](_0x31f0aa['diffData'][_0x3c10e1]['insertions'])),_0x243b5e=this['editor']['editing']['view']['document'],_0x3dc5d9=new _0x4a4d01(_0x243b5e,_0x5026b3['map'](_0x552931=>V(_0x552931,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x434fc9[_0x3c10e1]=this['editor']['data']['processor']['toData'](_0x3dc5d9),this['editor']['data']['processor']['useFillerType']('default');}return _0x434fc9;}async['getRevisionRootsAttributes'](_0x53e688){await this['_loadRevisionData'](_0x53e688);const _0xf47484={};for(const _0x58c6f2 in _0x53e688['diffData'])_0x53e688['diffData'][_0x58c6f2]['attachChange']&&!_0x53e688['diffData'][_0x58c6f2]['attachChange']['isAttached']||(_0xf47484[_0x58c6f2]=_0x53e688['diffData'][_0x58c6f2]['attributesAfter']||{});return _0xf47484;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2af181=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4ed249=0x0;_0x4ed249<_0x2af181['length'];_0x4ed249++){const _0xfaa5d6=_0x2af181[_0x4ed249];let _0xf4b570=!0x1;for(const _0x9e4825 of Object['keys'](_0xfaa5d6))void 0x0===_0xfaa5d6[_0x9e4825]?delete _0xfaa5d6[_0x9e4825]:'id'!==_0x9e4825&&(_0xf4b570=!0x0);_0xf4b570||(_0x2af181[_0x4ed249]=null);}if(_0x2af181=_0x2af181['filter'](_0x4fa853=>null!==_0x4fa853),!_0x2af181['length'])return;for(let _0x561dbe=0x0;_0x561dbe<_0x2af181['length'];_0x561dbe++){const _0x270873=_0x2af181[_0x561dbe];void 0x0!==_0x270873['fromVersion']&&void 0x0===_0x270873['toVersion']&&(_0x270873['toVersion']=this['repository']['getRevision'](_0x270873['id'])['toVersion']),void 0x0!==_0x270873['toVersion']&&void 0x0===_0x270873['fromVersion']&&(_0x270873['fromVersion']=this['repository']['getRevision'](_0x270873['id'])['fromVersion']);}const _0x5e673f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2af181,_0x5e673f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x28c58a=>{if(_0x28c58a){for(const _0x4816f8 of _0x28c58a)this['setRevisionData']({'id':_0x4816f8['id'],'createdAt':_0x4816f8['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4b2bfe,_0x3ac968){let _0x16190a=this['editor']['config']['get']('initialData'),_0x4df0fa=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x16190a){_0x16190a={};for(const _0x1618f2 of this['editor']['model']['document']['getRootNames']())_0x16190a[_0x1618f2]='';}if('string'==typeof _0x16190a&&(_0x16190a={'main':_0x16190a}),void 0x0===_0x4df0fa){_0x4df0fa={};for(const _0x23e811 of this['editor']['model']['document']['getRootNames']())_0x4df0fa[_0x23e811]={};}let _0x5bd97f=!0x1;const _0x581f77=Object['keys'](_0x16190a),_0x4b1e8c=Object['keys'](_0x4b2bfe);for(const _0x4918d8 of _0x581f77){if(_0x16190a[_0x4918d8]!==_0x4b2bfe[_0x4918d8]&&''!==_0x16190a[_0x4918d8]['trim']()){_0x5bd97f=!0x0;break;}if(!_0x3ee46e(_0x4df0fa[_0x4918d8],_0x3ac968[_0x4918d8])&&Object['keys'](_0x4df0fa[_0x4918d8])['length']>0x0){_0x5bd97f=!0x0;break;}}_0x5bd97f||(_0x5bd97f=_0x4b1e8c['some'](_0x23862b=>!this['editor']['model']['document']['getRoot'](_0x23862b))),_0x5bd97f&&_0x14c8c1('editor-initial-data-replaced-with-revision-data',{'editorData':_0x16190a,'editorRootsAttributes':_0x4df0fa,'revisionData':_0x4b2bfe,'revisionRootsAttributes':_0x3ac968}),this['editor']['config']['set']('initialData',_0x4b2bfe),this['editor']['config']['set']('rootsAttributes',_0x3ac968);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x537dbb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x537dbb['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x31c16c){const _0x266b8f=this['repository']['getRevisions']();_0x266b8f['reverse']();let _0x2bf5b6=0x0;for(;_0x2bf5b6<_0x266b8f['length'];){const _0x3db206=_0x266b8f[_0x2bf5b6];if(_0x3db206===this['currentRevision']){_0x2bf5b6++;continue;}if(_0x3db206['id']===this['_initialRevisionId'])break;const _0x271912=_0x31c16c['toVersion']-_0x3db206['toVersion']||_0x31c16c['fromVersion']-_0x3db206['fromVersion'];if(_0x271912>0x0)break;if(_0x271912<0x0)_0x2bf5b6++;else{if(!_0x31c16c['creator']&&_0x3db206['creator'])break;if(_0x3db206['creator']||!_0x31c16c['creator']){if(_0x31c16c['createdAt']>_0x3db206['createdAt'])break;_0x2bf5b6++;}else _0x2bf5b6++;}}return _0x2bf5b6;}['setRevisionData'](_0x45ec88){const _0x25d4a6=this['repository']['getRevision'](_0x45ec88['id']);if(_0x45ec88['createdAt']&&(_0x45ec88['createdAt']=new Date(_0x45ec88['createdAt'])),_0x45ec88['authorsIds']){const _0x3e3f16=this['editor']['plugins']['get']('Users');_0x45ec88['authors']=_0x45ec88['authorsIds']['map'](_0x3f01f0=>_0x3e3f16['getUser'](_0x3f01f0));}_0x25d4a6['_update'](_0x45ec88,!0x0);}['buildRevisionData']({revision:_0x57ef70=null,from:_0x2cbc94=null,to:_0x35ea85=null}){_0x2cbc94=null!==_0x2cbc94?_0x2cbc94:_0x57ef70['fromVersion'],_0x35ea85=null!==_0x35ea85?_0x35ea85:_0x57ef70['toVersion'];const _0x3c5887=this['_revisionDataBuilder']['getData'](_0x2cbc94,_0x35ea85),_0x4f50b0={'diffData':_0x3c5887['diffData'],'authorsIds':_0x3c5887['authorsIds'],'fromVersion':_0x2cbc94,'toVersion':_0x35ea85};if(!_0x57ef70||_0x35ea85!==_0x57ef70['toVersion']){const _0x2f38e6=_0x35ea85-0x1,_0x49f69f=this['_source']['history']['getOperation'](_0x2f38e6);_0x4f50b0['createdAt']=_0x49f69f&&_0x49f69f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2cbc94===this['_loadedStateData']['fromVersion']){for(const _0x308d4d of this['_loadedStateData']['authors'])_0x4f50b0['authorsIds']['includes'](_0x308d4d['id'])||_0x4f50b0['authorsIds']['push'](_0x308d4d['id']);}return _0x4f50b0;}['_loadRevisionData'](_0x1324ff){if(!_0x1324ff||_0x1324ff['diffData'])return Promise['resolve']();{const _0x5dcd9b=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5dcd9b,'revisionId':_0x1324ff['id']})['then'](_0x8058f1=>{_0x1324ff['diffData']=_0x8058f1['diffData'];});}}['_bufferUpdate'](_0x28cec5,_0x3014eb,_0x57df46){if(this['_bufferedUpdates']['has'](_0x28cec5)){const _0x41720c=this['_bufferedUpdates']['get'](_0x28cec5);_0x3014eb=_0x57df46?{..._0x41720c,..._0x3014eb}:{..._0x3014eb,..._0x41720c};}this['_bufferedUpdates']['set'](_0x28cec5,_0x3014eb);}['_getFromVersion'](_0x2e2fa6){const _0x2e03ea=this['repository']['getRevisions']();_0x2e03ea['reverse'](),_0x2e03ea['shift']();const _0x19c62b=_0x2e03ea['find'](_0x57d6a1=>_0x57d6a1['toVersion']<=_0x2e2fa6)['toVersion'];return _0x19c62b<this['_startingVersion']?this['_startingVersion']:_0x19c62b;}['_createInitialRevision'](_0x3ad4ff){const _0x5e5032=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5e5032)this['_initialRevisionId']=_0x5e5032['id'];else{const _0x4fbc9f=!this['editor']['model']['document']['roots']['find'](_0x55de3=>this['editor']['model']['hasContent'](_0x55de3)),_0x17492b=this['editor']['plugins']['get']('Users')['me']['id'],_0x423314=R(this['editor']['locale'],_0x4fbc9f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3ad4ff,'to':_0x3ad4ff,'id':this['_initialRevisionId'],'name':_0x423314,'creatorId':_0x17492b});}}['_createCurrentRevision'](_0x150ccc){const _0x254ac0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x254ac0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x150ccc,'to':_0x150ccc,'id':_0x254ac0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x160027,from:_0x47d0f2,to:_0x47a9df,creatorId:_0x4f2248,id:_0x5891fb}){const _0x46104a=this['buildRevisionData']({'from':_0x47d0f2,'to':_0x47a9df});_0x46104a['name']=_0x160027,_0x46104a['creatorId']=_0x4f2248,_0x46104a['id']=_0x5891fb;const _0x2d407c=this['addRevisionData'](_0x46104a);return this['adapter']&&this['_bufferUpdate'](_0x46104a['id'],_0x46104a,!0x0),_0x2d407c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x307cc0){return(_0x307cc0=_0x307cc0['filter'](_0x3206cf=>!_0x3206cf['name']||'revision-start'!==_0x3206cf['name']&&'revision-end'!==_0x3206cf['name']))['forEach'](_0x57b1a9=>{'string'!=typeof _0x57b1a9&&(_0x57b1a9['children']=this['_removeRevisionMarkers'](_0x57b1a9['children']),_0x57b1a9['attributes']=_0x57b1a9['attributes']['filter'](_0x4f37a5=>!_0x4f37a5[0x0]['startsWith']('data-revision-')));}),_0x307cc0;}}function V(_0x30a0e4,_0x53d730){const _0x35d634=_0x53d730['editing']['view']['document'];if('string'==typeof _0x30a0e4)return new _0x275fe8(_0x35d634,_0x30a0e4);{const _0x19ecf6=_0x30a0e4['children']['map'](_0xb800b3=>V(_0xb800b3,_0x53d730));return new(C[_0x30a0e4['type']]||_0x26ab22)(_0x35d634,_0x30a0e4['name'],_0x30a0e4['attributes'],_0x19ecf6);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x53ea2d){this['editor']=_0x53ea2d,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'](_0x6cbbb2){this['source']=_0x6cbbb2;const _0x16fda0=new Map(),_0x42e117=new Map(),_0x3522af=this['editor']['model']['document']['roots']['map'](_0x4aec89=>_0x4aec89['rootName']);for(const _0x2a2b01 of _0x3522af){const _0x4c535b=this['editor']['model']['document']['getRoot'](_0x2a2b01),_0x11b835=F(_0x4c535b);_0x16fda0['set'](_0x2a2b01,_0x11b835),_0x42e117['set'](_0x2a2b01,Object['fromEntries'](_0x4c535b['getAttributes']()));}const _0x23777f=Array['from'](this['editor']['model']['markers'])['map'](_0x413ba1=>[_0x413ba1['name'],_0x413ba1['getRange']()]),_0x26e63c=this['source']['version'];this['_saveMetaData'](_0x26e63c,_0x16fda0,_0x23777f,_0x42e117),this['_startingRevisionId']=this['_revisionId'];const _0xab2014=new Map(),_0x42ad7d=new Map();for(const _0x53139e of _0x3522af){const _0x57a78f=B(_0x53139e);_0xab2014['set'](_0x53139e,_0x57a78f),_0x42ad7d['set'](_0x53139e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xab2014,[],_0x42ad7d);}['getData'](_0x588afa,_0xae6886){if(this['_lastFrom']===_0x588afa&&this['_lastTo']<=_0xae6886)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xae6886,!0x0);else{if(!this['_savedMetaData']['has'](_0x588afa)){const _0x5da8ad=this['_getPreviousFrom'](_0x588afa);this['_calculateMetaData'](_0x5da8ad,_0x588afa,!0x1);}this['_calculateMetaData'](_0x588afa,_0xae6886,!0x0);}return this['_lastFrom']=_0x588afa,this['_lastTo']=_0xae6886,this['_getState']();}['loadState'](_0x130199){this['_reset'](),this['_lastFrom']=_0x130199['fromVersion'],this['_lastTo']=_0x130199['toVersion'];for(const _0x4549fc in _0x130199['diffData']){const _0x5bae10=_0x130199['diffData'][_0x4549fc]['attachChange'],_0x37be30=_0x1875bd(_0x130199['diffData'][_0x4549fc]['attributesBefore'])||{},_0x4a9d79=this['_makeModelFromViewString'](_0x130199['diffData'][_0x4549fc]['deletions']);_0x4a9d79['rootName']=_0x4549fc,_0x4a9d79['_isAttached']=!_0x5bae10||!_0x5bae10['isAttached'],_0x4a9d79['isAttached']=()=>_0x4a9d79['_isAttached'],this['_baseRoots']['set'](_0x4549fc,_0x4a9d79),this['_baseRootsAttributes']['set'](_0x4549fc,_0x37be30),_0x5bae10&&this['_touchedRoots']['set'](_0x4549fc,_0x5bae10);const _0x15c781=this['_makeIdsRoot'](_0x4a9d79);this['_baseIdsRoots']['set'](_0x4549fc,_0x15c781);for(const [_0x376981,_0x76ecd3]of _0x4a9d79['markers']){if(!_0x376981['startsWith']('revision:'))continue;const _0x232a35=_0x376981['split'](':')[0x2];for(const _0x200cbe of _0x76ecd3['getWalker']({'singleCharacters':!0x0})){const _0x4b59ff=this['_getVidAttributeName'](_0x200cbe),_0xe2f353='elementEnd'==_0x200cbe['type']?_0x200cbe['previousPosition']['path']['slice'](0x0,-0x1):_0x200cbe['previousPosition']['path'],_0x5a9160=_0x15c781['getNodeByPath'](_0xe2f353)['getAttribute'](_0x4b59ff);this['_touched']['set'](_0x5a9160,{'userId':_0x232a35});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4140bb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x496d3f=>!this['_touched']['has'](_0x496d3f));let _0x1ad83c=0x0;const _0x3f2588=new Map();for(const _0xf91dc7 in _0x130199['diffData']){const _0x4cc857=_0x130199['diffData'][_0xf91dc7]['attachChange'],_0xc126a1=_0x1875bd(_0x130199['diffData'][_0xf91dc7]['attributesAfter'])||{},_0x66cad0=this['_makeModelFromViewString'](_0x130199['diffData'][_0xf91dc7]['insertions']);_0x66cad0['rootName']=_0xf91dc7,_0x66cad0['_isAttached']=!_0x4cc857||_0x4cc857['isAttached'],_0x66cad0['isAttached']=()=>_0x66cad0['_isAttached'],this['_diffRoots']['set'](_0xf91dc7,_0x66cad0),this['_diffRootsAttributes']['set'](_0xf91dc7,_0xc126a1);const _0x2b7aaf=this['_makeIdsRoot'](_0x66cad0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xf91dc7,_0x2b7aaf),_0x3f2588['set'](_0xf91dc7,_0x66cad0['isAttached']()?_0xc126a1:{});for(const [_0x2e8163,_0x5b2070]of _0x66cad0['markers']){if(!_0x2e8163['startsWith']('revision:'))continue;const _0x541ecc=_0x2e8163['split'](':')[0x2];for(const _0x46d506 of _0x5b2070['getWalker']({'singleCharacters':!0x0})){const _0x424dec=this['_getVidAttributeName'](_0x46d506),_0x51e5c3=this['_revisionId']++,_0x9d960='elementEnd'==_0x46d506['type']?_0x46d506['previousPosition']['path']['slice'](0x0,-0x1):_0x46d506['previousPosition']['path'];_0x2b7aaf['getNodeByPath'](_0x9d960)['_setAttribute'](_0x424dec,_0x51e5c3),this['_touched']['set'](_0x51e5c3,{'userId':_0x541ecc});}}for(const _0xb75cb9 of this['editor']['model']['createRangeIn'](_0x66cad0)['getWalker']({'singleCharacters':!0x0})){const _0x35a592=this['_getVidAttributeName'](_0xb75cb9),_0x3ca51f='elementEnd'==_0xb75cb9['type']?_0xb75cb9['previousPosition']['path']['slice'](0x0,-0x1):_0xb75cb9['previousPosition']['path'],_0x17d826=_0x2b7aaf['getNodeByPath'](_0x3ca51f);_0x17d826['getAttribute'](_0x35a592)>0x0||_0x17d826['_setAttribute'](_0x35a592,_0x4140bb[_0x1ad83c++]);}for(const [_0x383e43,_0x5e31dc]of _0x66cad0['markers'])_0x383e43['startsWith']('revision:')||this['_markers']['set'](_0x383e43,_0x5e31dc);}const _0x5e1d9f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5e1d9f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5e1d9f,0x1));const _0x1ed385=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1ed385),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ed385,0x1));const _0x469d4c=Array['from'](this['_diffRoots'])['map'](([_0x447b4f,_0x216df0])=>[_0x447b4f,F(_0x216df0)]);this['_saveMetaData'](this['_lastTo'],_0x469d4c,this['_markers'],_0x3f2588);}['_makeModelFromViewString'](_0x3aef9b){const _0x2e5c0a=JSON['parse'](_0x3aef9b),_0x1613df=this['editor']['editing']['view']['document'],_0x276962=new _0x4a4d01(_0x1613df,_0x2e5c0a['map'](_0x54ecee=>V(_0x54ecee,this['editor'])));return this['editor']['data']['toModel'](_0x276962);}['_saveMetaData'](_0x19cf54,_0xf17c3c,_0x558917,_0x32b03a){const _0x3c5c31=new Map(_0xf17c3c),_0x28ff71=new Map(_0x1875bd(_0x32b03a)),_0x355173=new Map();for(const [_0x840cd8,_0x2b7f29]of _0x558917)_0x355173['set'](_0x840cd8,{'start':_0x2b7f29['start']['clone'](),'end':_0x2b7f29['end']['clone'](),'rootName':_0x2b7f29['root']['rootName']});this['_savedMetaData']['set'](_0x19cf54,{'roots':_0x3c5c31,'markers':_0x355173,'rootsAttributes':_0x28ff71});}['_removeMetaData'](_0x22af86){this['_savedMetaData']['delete'](_0x22af86);}['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'](_0x5099bf,_0x5c8949=null){let _0x2566ec=null;_0x5099bf['is']('documentFragment')||(_0x2566ec=new ft(_0x5099bf['name'],{'vid_start':null===_0x5c8949?this['_revisionId']++:_0x5c8949++}));const _0x345a1f=[];for(const _0xfeec06 of _0x5099bf['getChildren']())if(_0xfeec06['is']('element')){_0x345a1f['push'](this['_makeIdsRoot'](_0xfeec06,_0x5c8949));const _0x34ae27=_0x345a1f[_0x345a1f['length']-0x1];null!==_0x5c8949&&(_0x5c8949=_0x34ae27['is']('element','$text')?_0x34ae27['getAttribute']('vid')+0x1:_0x34ae27['getAttribute']('vid_end')+0x1);}else{for(let _0x50b37c=0x0;_0x50b37c<_0xfeec06['offsetSize'];_0x50b37c++)_0x345a1f['push'](new ft('$text',{'vid':null===_0x5c8949?this['_revisionId']++:_0x5c8949++}));}if(_0x5099bf['is']('documentFragment')){const _0x2f06b1=B(_0x5099bf['rootName']);return _0x2f06b1['_insertChild'](0x0,_0x345a1f),_0x2f06b1;}return _0x2566ec['_setAttribute']('vid_end',null===_0x5c8949?this['_revisionId']++:_0x5c8949++),_0x2566ec['_insertChild'](0x0,_0x345a1f),_0x2566ec;}['_calculateMetaData'](_0x24bcbe,_0x57b420,_0x3fd5b3){this['_reset']();const {roots:_0x2c77a8,markers:_0x4ab6b1,rootsAttributes:_0x5a5f3d}=this['_savedMetaData']['get'](_0x24bcbe);this['_baseRoots']=new Map(_0x2c77a8),this['_baseRootsAttributes']=new Map(_0x1875bd(_0x5a5f3d));for(const [_0x209cba,_0x4a3db6]of this['_baseRoots'])if('$graveyard'!==_0x209cba&&(this['_diffRoots']['set'](_0x209cba,F(_0x4a3db6)),this['_diffRootsAttributes']=new Map(_0x1875bd(_0x5a5f3d)),_0x3fd5b3)){const _0x21396c=this['_revisionId'];this['_idsRoots']['set'](_0x209cba,this['_makeIdsRoot'](_0x4a3db6)),this['_baseIdsRoots']['set'](_0x209cba,this['_makeIdsRoot'](_0x4a3db6,_0x21396c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3fd5b3&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xfa3bff,_0x3492fd]of _0x4ab6b1){const _0x52aaaf=this['_baseRoots']['get'](_0x3492fd['rootName']),_0x25f2a3=this['_diffRoots']['get'](_0x3492fd['rootName']),_0x169195=new vt(this['_fixPosition'](_0x3492fd['start'],_0x52aaaf),this['_fixPosition'](_0x3492fd['end'],_0x52aaaf)),_0xa2fc3b=this['_fixRange'](_0x169195,_0x25f2a3);_0x52aaaf['markers']['set'](_0xfa3bff,_0x169195),this['_markers']['set'](_0xfa3bff,_0xa2fc3b);}this['_applyOperations'](_0x24bcbe,_0x57b420,_0x3fd5b3);}['_applyOperations'](_0x23232b,_0x5056ee,_0x2d1cf6){for(const _0x281c66 of this['source']['getOperations'](_0x23232b,_0x5056ee))this['_handleOperation'](_0x281c66,_0x2d1cf6);for(const _0x5a32ad of this['_diffRoots']['values']())_0x5a32ad['markers']['clear']();for(const [_0x54d0b7,_0x44a615]of this['_markers']){this['_diffRoots']['get'](_0x44a615['root']['rootName'])['markers']['set'](_0x54d0b7,_0x44a615['clone']());}const _0x3e48c0=new Map(),_0x19e4c3=new Map();for(const [_0x310597,_0x85ca2f]of this['_diffRoots'])_0x3e48c0['set'](_0x310597,F(_0x85ca2f)),_0x19e4c3['set'](_0x310597,this['_diffRootsAttributes']['get'](_0x310597));this['_saveMetaData'](_0x5056ee,_0x3e48c0,this['_markers'],_0x19e4c3);}['_getPreviousFrom'](_0x209acf){const _0x3d3ba9=Array['from'](this['_savedMetaData']['keys']());_0x3d3ba9['sort']((_0x414dad,_0x243651)=>_0x414dad-_0x243651),_0x3d3ba9['reverse']();for(const _0x355b8a of _0x3d3ba9)if(_0x355b8a<_0x209acf)return _0x355b8a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1e45ef,_0x5ee3ed){const _0x3545f2=Array['from'](_0x5ee3ed['markers'])['map'](([_0xf12cea,_0x4e9e5d])=>[_0xf12cea,this['_fixRange'](_0x4e9e5d,_0x1e45ef)]);_0x1e45ef['markers']=new Map(_0x3545f2);}['_transformMarkers'](_0x4b9708){for(const _0x3cbe42 of this['_markers']['values']()){const _0x416a37=_0x3cbe42['getTransformedByOperation'](_0x4b9708),_0x141045=vt['_createFromRanges'](_0x416a37);_0x3cbe42['start']=_0x141045['start'],_0x3cbe42['end']=_0x141045['end'];}}['_handleOperation'](_0x53507a,_0x5be788){if('addRoot'!=_0x53507a['type']&&'detachRoot'!=_0x53507a['type']){if('insert'==_0x53507a['type']){const _0x2206fb=_0x53507a['position']['root']['rootName'];this['_diffRoots']['has'](_0x2206fb)||(this['_diffRoots']['set'](_0x2206fb,B(_0x2206fb,!0x0)),this['_diffRootsAttributes']['set'](_0x2206fb,{}),_0x5be788&&this['_idsRoots']['set'](_0x2206fb,B(_0x2206fb,!0x0)));}else{if('addRootAttribute'==_0x53507a['type']||'removeRootAttribute'==_0x53507a['type']||'changeRootAttribute'==_0x53507a['type'])return void this['_handleRootAttributeOperation'](_0x53507a);'marker'==_0x53507a['type']&&this['_handleMarkerOperation'](_0x53507a);}if('marker'!==_0x53507a['type']){const _0x1478d7=this['_cloneOperation'](_0x53507a,this['_diffRoots']);_0x1478d7['_execute'](),this['_transformMarkers'](_0x1478d7);}if(_0x5be788)switch(_0x53507a['type']){case'insert':this['_handleInsertOperation'](_0x53507a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x53507a);break;case'merge':this['_handleMergeOperation'](_0x53507a);break;case'split':this['_handleSplitOperation'](_0x53507a);}}else this['_handleRootOperation'](_0x53507a,_0x5be788);}['_cloneOperation'](_0x1714f0,_0x2d5de0){const _0x2065fe=_0x1714f0['clone']();return _0x2065fe['_authorId']=_0x1714f0['_authorId'],this['_fixOperation'](_0x2065fe,_0x2d5de0),_0x2065fe;}['_getBaseVids'](_0x3bacf5){return _0x3bacf5['map'](_0x2920ba=>{const _0x32df14=this['_getVidAttributeName'](_0x2920ba);return Number(_0x2920ba['item']['getAttribute'](_0x32df14));});}['_generateTape'](_0x519912,_0x43c5c1){if(_0x519912['is']('element','$text'))_0x43c5c1['push']({'item':_0x519912,'type':'text'});else{_0x519912['is']('element')&&_0x43c5c1['push']({'item':_0x519912,'type':'elementStart'});for(const _0x562556 of _0x519912['getChildren']())this['_generateTape'](_0x562556,_0x43c5c1);_0x519912['is']('element')&&_0x43c5c1['push']({'item':_0x519912,'type':'elementEnd'});}return _0x43c5c1;}['_getState'](){const _0xc429b=new Map(this['_touched']),_0x33d26d=new Map(_0xc429b),_0x3b0e6a=new Map(),_0x216498={'insertions':{},'deletions':{}},_0x1276ff={'insertions':{},'deletions':{}},_0x66b5b3=new Map(),_0x552f7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x552f7['delete']('$graveyard');for(const _0x30ff03 of _0x552f7){const _0xdba1a3=this['_diffRoots']['get'](_0x30ff03)||B(_0x30ff03,!0x1),_0x1473a4=this['_baseRoots']['get'](_0x30ff03)||B(_0x30ff03,!0x1);_0xdba1a3['isAttached']()||_0x1473a4['isAttached']()?(_0x216498['insertions'][_0x30ff03]=F(_0xdba1a3),_0x216498['deletions'][_0x30ff03]=F(_0x1473a4),this['_copyMarkers'](_0x216498['deletions'][_0x30ff03],_0x1473a4),this['_copyMarkers'](_0x216498['insertions'][_0x30ff03],_0xdba1a3),_0x1276ff['insertions'][_0x30ff03]=this['_generateTape'](this['_idsRoots']['get'](_0x30ff03),[]),_0x1276ff['deletions'][_0x30ff03]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x30ff03)||B(_0x30ff03,!0x1),[])):_0x552f7['delete'](_0x30ff03);}for(const _0x3cb238 of _0x552f7){const _0x38f3fe=_0x1276ff['insertions'][_0x3cb238];for(const _0x10109f of _0x38f3fe){const _0x2571d3=this['_getVidAttributeName'](_0x10109f),_0x468f8b=_0x10109f['item']['getAttribute'](_0x2571d3);_0x33d26d['delete'](_0x468f8b),_0x468f8b>=this['_startingRevisionId']&&_0x3b0e6a['set'](_0x468f8b,_0xc429b['get'](_0x468f8b));}}for(const _0x4638ed of _0x552f7){const _0x15f3e6=_0x1276ff['insertions'][_0x4638ed],_0x4b5b5b=this['_getBaseVids'](_0x1276ff['deletions'][_0x4638ed]);let _0x5cee9b=0x0;for(const _0x49c717 of _0x15f3e6){const _0x30fe74=this['_getVidAttributeName'](_0x49c717),_0x5de28a=_0x49c717['item']['getAttribute'](_0x30fe74);if(!_0x3b0e6a['has'](_0x5de28a)&&!_0x66b5b3['has'](_0x5de28a)){if(_0x33d26d['has'](_0x5de28a))_0x5cee9b++;else{if(_0x5de28a!=_0x4b5b5b[_0x5cee9b]){const _0x501c07=_0xc429b['get'](_0x5de28a)||_0xc429b['get'](_0x4b5b5b[_0x5cee9b]);for(;_0x5de28a!=_0x4b5b5b[_0x5cee9b];)_0x33d26d['has'](_0x4b5b5b[_0x5cee9b])||(_0x66b5b3['set'](_0x4b5b5b[_0x5cee9b],_0x501c07),_0xc429b['set'](_0x4b5b5b[_0x5cee9b],_0x501c07)),_0x5cee9b++;}_0x5cee9b++;}}}}for(const _0x35a635 of _0x552f7){const _0x2fe991=_0x1276ff['insertions'][_0x35a635];for(const _0x1cfc13 of _0x2fe991){const _0x555c1e=this['_getVidAttributeName'](_0x1cfc13),_0x4bae2c=_0x1cfc13['item']['getAttribute'](_0x555c1e);if(_0x66b5b3['has'](_0x4bae2c)){const _0x4554d9=_0x66b5b3['get'](_0x4bae2c);_0x33d26d['has'](_0x4bae2c)||_0x33d26d['set'](_0x4bae2c,{..._0x4554d9}),_0x3b0e6a['set'](_0x4bae2c,{..._0x4554d9});}}}for(const _0x107456 of _0x33d26d['keys']())_0x107456>=this['_startingRevisionId']&&_0x33d26d['delete'](_0x107456);const _0x5d8636=new Map();for(const _0x4f1a54 of _0x552f7){let _0xb96dc=_0x1276ff['insertions'][_0x4f1a54];for(const _0x1ead1c of _0xb96dc)if(_0x1ead1c['item']['is']('element','tableCell')){const _0x5004e0=this['_getVidAttributeName'](_0x1ead1c),_0x4036bb=_0x1ead1c['item']['getAttribute'](_0x5004e0);if(_0x3b0e6a['has'](_0x4036bb)){const _0x2a7d68=_0x1ead1c['item']['parent']['parent']['getAttribute']('vid_start'),_0x1ce73e=_0x5d8636['get'](_0x2a7d68)||new Set();_0x1ce73e['add'](_0x3b0e6a['get'](_0x4036bb)['userId']),_0x5d8636['set'](_0x2a7d68,_0x1ce73e);}}_0xb96dc=_0x1276ff['deletions'][_0x4f1a54];for(const _0x1f8443 of _0xb96dc)if(_0x1f8443['item']['is']('element','tableCell')){const _0x46a111=this['_getVidAttributeName'](_0x1f8443),_0x5ecf2c=_0x1f8443['item']['getAttribute'](_0x46a111);if(_0x33d26d['has'](_0x5ecf2c)){const _0x522c4e=_0x1f8443['item']['parent']['parent']['getAttribute']('vid_start'),_0x1e2a42=_0x5d8636['get'](_0x522c4e)||new Set();_0x1e2a42['add'](_0x33d26d['get'](_0x5ecf2c)['userId']),_0x5d8636['set'](_0x522c4e,_0x1e2a42);}}for(const _0x39feaf of _0x5d8636['keys']())(_0x3b0e6a['has'](_0x39feaf)||_0x33d26d['has'](_0x39feaf))&&_0x5d8636['delete'](_0x39feaf);}for(const _0x1c4962 of _0x552f7){const _0x232d05=_0x1276ff['insertions'][_0x1c4962];let _0x805fa5=null,_0x440d83=null;for(const _0x3b8b55 of _0x232d05){const _0x5465c1=this['_getVidAttributeName'](_0x3b8b55),_0x2c8ab5=_0x3b8b55['item']['getAttribute'](_0x5465c1),_0x38ef6d=_0x5d8636['get'](_0x2c8ab5);_0x38ef6d&&'elementStart'==_0x3b8b55['type']&&(_0x805fa5=Array['from'](_0x38ef6d)[0x0],_0x440d83=_0x3b8b55['item']['getAttribute']('vid_end')),_0x805fa5&&(_0x33d26d['set'](_0x2c8ab5,{'userId':_0x805fa5}),_0x3b0e6a['set'](_0x2c8ab5,{'userId':_0x805fa5})),_0x2c8ab5==_0x440d83&&(_0x805fa5=null,_0x440d83=null);}}const _0x5bec5d={},_0x170793=new Set();for(const _0x5ecabc of _0x552f7){const _0x1d023d=_0x216498['deletions'][_0x5ecabc],_0x96c83a=_0x216498['insertions'][_0x5ecabc];for(const {userId:_0x2a75d9}of this['_touchedMarkers']['values']())null!==_0x2a75d9&&_0x170793['add'](_0x2a75d9);for(const {userId:_0x269548}of this['_touchedRoots']['values']())null!==_0x269548&&_0x170793['add'](_0x269548);this['_markChanges'](_0x96c83a,_0x1276ff['insertions'][_0x5ecabc],_0x3b0e6a,'insertion',_0x170793),this['_markChanges'](_0x1d023d,_0x1276ff['deletions'][_0x5ecabc],_0x33d26d,'deletion',_0x170793),_0x5bec5d[_0x5ecabc]={'insertions':this['_prepareViewToSave'](_0x96c83a),'deletions':this['_prepareViewToSave'](_0x1d023d),'attachChange':this['_touchedRoots']['get'](_0x5ecabc)||null,'attributesBefore':_0x1875bd(this['_baseRootsAttributes']['get'](_0x5ecabc))||{},'attributesAfter':_0x1875bd(this['_diffRootsAttributes']['get'](_0x5ecabc))};}return{'diffData':_0x5bec5d,'authorsIds':Array['from'](_0x170793)};}['_processRootBeforeSave'](_0x17cca2){for(const [,_0x169f10]of _0x17cca2['markers']){const _0x18db20=_0x169f10['start']['getAncestors']()['filter'](_0x879eed=>'tableCell'==_0x879eed['name']);for(const _0x36fdaf of _0x18db20)0x1==_0x36fdaf['childCount']&&_0x36fdaf['getChild'](0x0)['is']('element','paragraph')&&_0x36fdaf['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x172305){this['_processRootBeforeSave'](_0x172305);const _0x21969a=this['editor']['data']['toView'](_0x172305,{}),_0x48cefb=Array['from'](_0x21969a['getChildren']())['map'](_0x200bf3=>this['_getViewJson'](_0x200bf3));return JSON['stringify'](_0x48cefb);}['_getViewJson'](_0x122497){if(_0x122497['is']('$text'))return _0x122497['data'];{const _0x216c2c=_0x122497;return{'type':Object['keys'](C)['find'](_0x429daf=>_0x122497 instanceof C[_0x429daf]),'name':_0x216c2c['name'],'attributes':Array['from'](_0x216c2c['getAttributes']()),'children':Array['from'](_0x216c2c['getChildren']())['map'](_0xff08ed=>this['_getViewJson'](_0xff08ed))};}}['_markChanges'](_0x16e1b5,_0x2f2884,_0x5463af,_0x57f9b3,_0x52b46d){let _0x2c1424=null,_0x5bf1da=null,_0xd238c8=0x0;const _0x421e0c=this['editor']['model'];for(let _0x55f056=0x0;_0x55f056<_0x2f2884['length'];_0x55f056++){const _0x5bcdd9=this['_getVidAttributeName'](_0x2f2884[_0x55f056]),_0x4c0d3a=_0x2f2884[_0x55f056]['item']['getAttribute'](_0x5bcdd9),_0x543228=_0x5463af['get'](_0x4c0d3a),_0x457b52=_0x55f056==_0x2f2884['length']-0x1;(!_0x2c1424&&_0x543228&&(_0x2c1424=_0x543228,_0x5bf1da=_0x2f2884[_0x55f056]),_0x2c1424&&(!_0x543228||_0x543228['userId']!=_0x2c1424['userId']))&&(_0x6a15a3(_0x543228,J(_0x5bf1da,_0x16e1b5,_0x421e0c),J(_0x2f2884[_0x55f056],_0x16e1b5,_0x421e0c)),_0x2c1424=_0x543228||null,_0x5bf1da=_0x543228?_0x2f2884[_0x55f056]:null),_0x2c1424&&_0x457b52&&_0x6a15a3(_0x543228,J(_0x5bf1da,_0x16e1b5,_0x421e0c),q(_0x2f2884[_0x55f056],_0x16e1b5,_0x421e0c));}function _0x6a15a3(_0x11cfd4,_0x1ea746,_0x370296){const _0xd47034=_0x2c1424['userId'],_0x3ec65f='revision:'+_0x57f9b3+':'+_0xd47034+':'+_0xd238c8++,_0x2abe19=_0x421e0c['createRange'](_0x1ea746,_0x370296);_0x16e1b5['markers']['set'](_0x3ec65f,_0x2abe19),null!==_0xd47034&&_0x52b46d['add'](_0xd47034);}}['_getVidAttributeName'](_0x47624f){switch(_0x47624f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xe07734,_0x14311c){_0xe07734['baseVersion']=null;for(const _0x5463fa in _0xe07734){const _0x8c5cee=_0xe07734[_0x5463fa];if(_0x8c5cee instanceof gt){const _0x147561=_0x14311c['get'](_0x8c5cee['root']['rootName']);_0xe07734[_0x5463fa]=this['_fixPosition'](_0x8c5cee,_0x147561);}if(_0x8c5cee instanceof vt){const _0x492141=_0x14311c['get'](_0x8c5cee['root']['rootName']);_0xe07734[_0x5463fa]=this['_fixRange'](_0x8c5cee,_0x492141);}'root'===_0x5463fa&&(_0xe07734['root']=_0x14311c['get'](_0xe07734['root']['rootName']));}}['_fixRange'](_0xbcd7a5,_0x555900){return this['editor']['model']['createRange'](this['_fixPosition'](_0xbcd7a5['start'],_0x555900),this['_fixPosition'](_0xbcd7a5['end'],_0x555900));}['_fixPosition'](_0x9674ac,_0x5f0cd0){return this['editor']['model']['createPositionFromPath'](_0x5f0cd0,_0x9674ac['path'],_0x9674ac['stickiness']);}['_handleInsertOperation'](_0x91ee23){const _0x2fb0f8=this['_idsRoots']['get'](_0x91ee23['position']['root']['rootName']),_0x1442b3=this['_fixPosition'](_0x91ee23['position'],_0x2fb0f8),_0x199126=null===_0x91ee23['_authorId']?null:_0x91ee23['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46e7cb=_0x1442b3['parent'],_0x3117a3=this['_revisionId'],_0x48904e=[];for(const _0x8487f0 of _0x91ee23['nodes'])if(_0x8487f0['is']('element'))_0x48904e['push'](this['_makeIdsRoot'](_0x8487f0));else{for(let _0x31faa5=0x0;_0x31faa5<_0x8487f0['offsetSize'];_0x31faa5++)_0x48904e['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x299aad=this['_revisionId'];for(let _0x3509b2=_0x3117a3;_0x3509b2<_0x299aad;_0x3509b2++)this['_touched']['set'](_0x3509b2,{'userId':_0x199126});_0x46e7cb['_insertChild'](_0x1442b3['offset'],_0x48904e);}['_handleMoveOperation'](_0x24b14a){(_0x24b14a=this['_cloneOperation'](_0x24b14a,this['_idsRoots']))['_execute']();const _0x50770e=null===_0x24b14a['_authorId']?null:_0x24b14a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x396e44=_0x24b14a['getMovedRangeStart'](),_0x38b110=_0x396e44['parent'],_0x5366f8=_0x396e44['offset'];!function _0x18bbd9(_0x416b77,_0x4e7c9c,_0x4c89f5,_0x1e0955){for(let _0x36748d=_0x4c89f5;_0x36748d<_0x1e0955;_0x36748d++){const _0x479851=_0x4e7c9c['getChild'](_0x36748d);_0x479851['is']('element','$text')?_0x416b77['set'](_0x479851['getAttribute']('vid'),{'userId':_0x50770e}):(_0x416b77['set'](_0x479851['getAttribute']('vid_start'),{'userId':_0x50770e}),_0x18bbd9(_0x416b77,_0x479851,0x0,_0x479851['childCount']),_0x416b77['set'](_0x479851['getAttribute']('vid_end'),{'userId':_0x50770e}));}}(this['_touched'],_0x38b110,_0x5366f8,_0x5366f8+_0x24b14a['howMany']);}['_handleMergeOperation'](_0x223edb){const _0x1d60f6=null===(_0x223edb=this['_cloneOperation'](_0x223edb,this['_idsRoots']))['_authorId']?null:_0x223edb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xea39a0=_0x223edb['targetPosition']['parent'],_0x888cad=_0x223edb['sourcePosition']['parent'],_0x40cf14=_0xea39a0['getAttribute']('vid_end'),_0x10137e=_0x888cad['getAttribute']('vid_start');_0xea39a0['_setAttribute']('vid_end',_0x888cad['getAttribute']('vid_end')),_0x888cad['_setAttribute']('vid_end',_0x40cf14),this['_touched']['set'](_0x10137e,{'userId':_0x1d60f6}),this['_touched']['set'](_0x40cf14,{'userId':_0x1d60f6}),_0x223edb['_execute']();}['_handleSplitOperation'](_0x2e843d){const _0x13079e=null===(_0x2e843d=this['_cloneOperation'](_0x2e843d,this['_idsRoots']))['_authorId']?null:_0x2e843d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f0652=_0x2e843d['graveyardPosition'],_0x23a52d=_0x2e843d['splitPosition']['parent'];_0x2e843d['_execute']();const _0x1e565e=_0x23a52d['getAttribute']('vid_end'),_0x5e1ad8=_0x2e843d['insertionPosition']['nodeAfter'];if(_0x1f0652){const _0x2b3865=_0x5e1ad8['getAttribute']('vid_end'),_0x4e927b=_0x23a52d['getAttribute']('vid_end');_0x23a52d['_setAttribute']('vid_end',_0x2b3865),_0x5e1ad8['_setAttribute']('vid_end',_0x4e927b),this['_touched']['set'](_0x23a52d['getAttribute']('vid_end'),{'userId':_0x13079e}),this['_touched']['set'](_0x5e1ad8['getAttribute']('vid_start'),{'userId':_0x13079e});}else{const _0x406ae3=this['_revisionId']++,_0x492121=this['_revisionId']++;_0x23a52d['_setAttribute']('vid_end',_0x406ae3),_0x5e1ad8['_setAttribute']('vid_start',_0x492121),_0x5e1ad8['_setAttribute']('vid_end',_0x1e565e),this['_touched']['set'](_0x406ae3,{'userId':_0x13079e}),this['_touched']['set'](_0x492121,{'userId':_0x13079e});}}['_handleMarkerOperation'](_0x57caa6){if(!_0x57caa6['affectsData'])return;const _0x2b51de=(_0x57caa6=this['_cloneOperation'](_0x57caa6,this['_diffRoots']))['oldRange']?_0x57caa6['oldRange']['root']:null,_0x4fee92=_0x57caa6['newRange']?_0x57caa6['newRange']['root']:null;_0x2b51de&&this['_markers']['delete'](_0x57caa6['name']),_0x4fee92&&this['_markers']['set'](_0x57caa6['name'],_0x57caa6['newRange']['clone']());const _0x218a5d=null===_0x57caa6['_authorId']?null:_0x57caa6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53cd2c=_0x57caa6['name'];if(!this['_touchedMarkers']['has'](_0x53cd2c))return void this['_touchedMarkers']['set'](_0x53cd2c,{'range':_0x57caa6['oldRange'],'userId':_0x218a5d});const _0x1fdc13=this['_touchedMarkers']['get'](_0x53cd2c),_0x149828=_0x1fdc13['range'],_0x4ad03b=_0x57caa6['newRange'];null==_0x149828&&null==_0x4ad03b||_0x149828&&_0x4ad03b&&_0x149828['isEqual'](_0x4ad03b)?this['_touchedMarkers']['delete'](_0x57caa6['name']):_0x1fdc13['userId']=_0x218a5d;}['_handleRootOperation'](_0x5be1f0,_0x146d4b){this['_diffRoots']['has'](_0x5be1f0['rootName'])?this['_diffRoots']['get'](_0x5be1f0['rootName'])['_isAttached']=_0x5be1f0['isAdd']:(this['_diffRoots']['set'](_0x5be1f0['rootName'],B(_0x5be1f0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5be1f0['rootName'],{}),_0x146d4b&&this['_idsRoots']['set'](_0x5be1f0['rootName'],B(_0x5be1f0['rootName'],!0x0)));const _0x130d35=null===_0x5be1f0['_authorId']?null:_0x5be1f0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e8d03=this['_touchedRoots']['get'](_0x5be1f0['rootName']);_0x2e8d03&&_0x2e8d03['userId']===_0x130d35?this['_touchedRoots']['delete'](_0x5be1f0['rootName']):this['_touchedRoots']['set'](_0x5be1f0['rootName'],{'userId':_0x130d35,'isAttached':_0x5be1f0['isAdd']});}['_handleRootAttributeOperation'](_0x486457){const _0x20a28c=this['_diffRootsAttributes']['get'](_0x486457['root']['rootName']);null===_0x486457['newValue']?delete _0x20a28c[_0x486457['key']]:_0x20a28c[_0x486457['key']]=_0x486457['newValue'];}}function F(_0x38a681){const _0x59a181=B(_0x38a681['rootName'],_0x38a681['isAttached']());for(const _0xe9294b of _0x38a681['getChildren']()){const _0x92f732=_0xe9294b['_clone'](!0x0);_0x59a181['_appendChild'](_0x92f732);}return _0x59a181;}function B(_0x28685c,_0x3a4a39=!0x0){const _0x351e15=new mt();return _0x351e15['rootName']=_0x28685c,_0x351e15['_isAttached']=_0x3a4a39,_0x351e15['isAttached']=()=>_0x351e15['_isAttached'],_0x351e15;}function J(_0x507d9a,_0x95d60b,_0x301945){const _0x5a11b8='elementEnd'==_0x507d9a['type']?_0x301945['createPositionAt'](_0x507d9a['item'],'end'):_0x301945['createPositionBefore'](_0x507d9a['item']);return _0x301945['createPositionFromPath'](_0x95d60b,_0x5a11b8['path'],_0x5a11b8['stickiness']);}function q(_0x5991fb,_0x398b17,_0x43476b){const _0x57145b='elementStart'==_0x5991fb['type']?_0x43476b['createPositionAt'](_0x5991fb['item'],0x0):_0x43476b['createPositionAfter'](_0x5991fb['item']);return _0x43476b['createPositionFromPath'](_0x398b17,_0x57145b['path'],_0x57145b['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x194204,_0x432a01){super(_0x194204),this['focusTracker']=new _0x431090(),this['keystrokes']=new _0x433897(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x432a01),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x191e69(this);}['render'](){super['render'](),_0xf2cc1a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2d0091=_0x3f2f2d=>_0x3f2f2d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2d0091),this['keystrokes']['set']('arrowleft',_0x2d0091),this['keystrokes']['set']('arrowup',_0x2d0091),this['keystrokes']['set']('arrowdown',_0x2d0091);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5c4ae4){this['revisionNameInputView']['fieldView']['element']['value']=_0x5c4ae4['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x12223e){const _0x460aef=new _0x11290e(this['locale'],_0x5f48cb),_0x7ff1d7=_0x460aef['fieldView'];_0x7ff1d7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x21ba44=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x12223e&&(_0x21ba44+='\x20('+R(this['locale'],'optional')+')'),(_0x460aef['label']=_0x21ba44,_0x7ff1d7['on']('input',()=>{this['revisionNameInputValue']=_0x7ff1d7['element']['value']['trim']();}),_0x460aef);}}class u extends _0x5b577d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x190f1c=this['editor'],_0x85d2b8=_0x190f1c['plugins']['get']('RevisionTracker');_0x190f1c['ui']['componentFactory']['add']('revisionHistory',_0x6e2abb=>{const _0x2fc32e=_0x4c94ed(_0x6e2abb),_0x1af81b=_0x2fc32e['panelView']['children'],_0x22c9be=new _0x1ac7e1(_0x6e2abb),_0x314ea4=new _0x333270(_0x6e2abb),_0x653d78=new te(_0x6e2abb),_0x142ada=new _0x333270(_0x6e2abb),_0x25523c=new te(_0x6e2abb);return _0x2fc32e['bind']('isEnabled')['to'](_0x85d2b8,'isReady',_0x85d2b8,'isEnabled',_0x190f1c,'isReadOnly',(_0x221a2f,_0x3e49f0,_0x851348)=>_0x221a2f&&_0x3e49f0&&!_0x851348),_0x2fc32e['buttonView']['set']({'icon':_0x105b1a['history'],'label':R(_0x6e2abb,'Revision\x20history'),'tooltip':!0x0}),_0x653d78['set']({'label':R(_0x6e2abb,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x653d78['bind']('isEnabled')['to'](_0x85d2b8,'isReady',_0x85d2b8,'isEnabled',_0x190f1c,'isReadOnly',(_0x4b34c6,_0x4df30c,_0x370f3)=>_0x4b34c6&&_0x4df30c&&!_0x370f3),_0x653d78['on']('execute',()=>this['_showDialog']()),_0x25523c['set']({'label':R(_0x6e2abb,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x25523c['bind']('isEnabled')['to'](_0x85d2b8,'isReady',_0x190f1c,'isReadOnly',(_0x563403,_0x29a0dd)=>_0x563403&&!_0x29a0dd),_0x25523c['on']('execute',()=>{_0x190f1c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2fc32e['isOpen']=!0x1,_0x190f1c['editing']['view']['focus']();}),_0x314ea4['children']['add'](_0x653d78),_0x142ada['children']['add'](_0x25523c),_0x22c9be['role']='menu',_0x22c9be['items']['addMany']([_0x314ea4,_0x142ada]),_0x1af81b['add'](_0x22c9be),_0x2fc32e;}),_0x190f1c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4899ca=this['editor'],_0x39aa07=_0x4899ca['locale'],_0x88c6cd=new _0x39d19f(_0x39aa07),_0x57efee=new _0x41953e(_0x39aa07);_0x88c6cd['buttonView']['set']({'icon':_0x105b1a['history'],'label':R(_0x39aa07,'Revision\x20history')});const _0x5bc106=new _0x13e6b2(_0x39aa07,_0x88c6cd),_0x2b54e2=new _0x1ea060(_0x39aa07);_0x2b54e2['set']({'label':R(_0x39aa07,'Save\x20current\x20revision')}),_0x2b54e2['delegate']('execute')['to'](_0x88c6cd),_0x2b54e2['on']('execute',()=>{this['_showDialog']();}),_0x5bc106['children']['add'](_0x2b54e2),_0x57efee['items']['add'](_0x5bc106);const _0x1bfd49=new _0x13e6b2(_0x39aa07,_0x88c6cd),_0x43b8f5=new _0x1ea060(_0x39aa07);return _0x43b8f5['set']({'label':R(_0x39aa07,'Open\x20revision\x20history')}),_0x43b8f5['delegate']('execute')['to'](_0x88c6cd),_0x43b8f5['on']('execute',()=>{_0x4899ca['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1bfd49['children']['add'](_0x43b8f5),_0x57efee['items']['add'](_0x1bfd49),_0x88c6cd['panelView']['children']['add'](_0x57efee),_0x88c6cd;}['_showDialog'](){const _0x12fb6f=this['editor'],_0xd88a29=_0x12fb6f['locale'],_0x179da1=_0x12fb6f['plugins']['get']('Dialog'),_0x28a245=_0x12fb6f['plugins']['get']('RevisionTracker');function _0x21312d(_0x45e6ac){_0x12fb6f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x45e6ac['revisionName']?_0x45e6ac['revisionNameInputView']['errorText']=R(_0xd88a29,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x12fb6f['plugins']['get'](l)['saveRevision']({'name':_0x45e6ac['revisionName']}),_0x179da1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x21312d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x179da1['show']({'id':'revisionSave','title':R(_0xd88a29,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x12fb6f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x179da1['hide']()},{'label':R(_0x12fb6f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xcbf34e){_0xcbf34e['bind']('isEnabled')['to'](_0x28a245,'isReady',_0x28a245,'isEnabled',_0x12fb6f,'isReadOnly',(_0x64ba01,_0x44e6ed,_0x529fe3)=>_0x64ba01&&_0x44e6ed&&!_0x529fe3);},'onExecute':()=>_0x21312d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x46f1d5=this['editor'],_0x38a3a6=_0x46f1d5['locale'];this['_saveRevisionFormView']=new hs(_0x38a3a6,_0x46f1d5['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x319bca,_0x51da95){super(_0x319bca),this['_model']=_0x51da95,this['changeId']=_0x51da95['id'];const _0x2127cc=this['bindTemplate'],_0x3f45ad=R(_0x319bca,_0x51da95['data']['isSuggestion']?'Suggested\x20by':'add'==_0x51da95['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x51da95['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2127cc['to']('type',_0x2083f9=>'ck-revision-change__'+_0x2083f9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3f45ad}]},{'text':'\x20'+_0x51da95['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x22c111(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x34c158){super(),this['id']=_0x34c158['id']||_0x4a2e00(),this['author']=_0x34c158['author'],this['type']=_0x34c158['type'],this['data']=_0x34c158['data']||{},this['rootName']=_0x34c158['rootName'],this['set']('createdAt',_0x34c158['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(_0x30aca7,_0x34da1c){this['newRevisionId']=_0x30aca7,this['oldRevisionId']=_0x34da1c,this['changes']=new _0x5a5c64();}['_setChanges'](_0x367d50){for(const _0x16d548 of _0x367d50)this['changes']['add'](_0x16d548);}}const Z={'c':_0x11b6b8,'a':_0x485951,'e':_0x49d971,'r':_0x523d4a,'u':_0x10d7dc};class d extends _0x5b577d{['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[_0x36f408,_0x4ad402,j];}constructor(_0x279cdd){super(_0x279cdd),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',(_0x4d36a0,_0x412432,_0x1e9f5a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x21076f=>{for(const _0x5edd56 of this['editor']['editing']['view']['document']['roots'])_0x1e9f5a?_0x21076f['removeClass']('ck-editor__editable__overlay',_0x5edd56):_0x21076f['addClass']('ck-editor__editable__overlay',_0x5edd56);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x42a705=>null!==_0x42a705),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x29cf0b,_0x2b08ff,_0x2a102e)=>_0x29cf0b&&_0x2a102e?_0x2b08ff['changes']['getIndex'](_0x2a102e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x15be55,_0x44743a)=>_0x15be55?_0x44743a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4ad402);}['init'](){const _0x420994=this['editor'],_0x4850d5=new yt(_0x420994,{'direction':'backward'}),_0x4f8945=new yt(_0x420994,{'direction':'forward'});(_0x420994['commands']['add']('showPreviousChange',_0x4850d5),_0x420994['commands']['add']('showNextChange',_0x4f8945),_0x420994['commands']['add']('restoreRevision',new _t(_0x420994)),this['on']('change:numberOfChanges',()=>{_0x4850d5['refresh'](),_0x4f8945['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x420994['enableReadOnlyMode']('revision-viewer'),_0x420994['plugins']['has']('WidgetToolbarRepository'))&&_0x420994['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5e6984){await this['loadRevisionData'](_0x5e6984);const _0x4b2f88={};for(const _0xfe57ee in _0x5e6984['diffData']){if(_0x5e6984['diffData'][_0xfe57ee]['attachChange']&&!_0x5e6984['diffData'][_0xfe57ee]['attachChange']['isAttached'])continue;const _0x5cd5ab=this['_removeRevisionMarkers'](JSON['parse'](_0x5e6984['diffData'][_0xfe57ee]['insertions'])),_0x1e2fc1=this['editor']['editing']['view']['document'],_0x5a6402=new _0x4a4d01(_0x1e2fc1,_0x5cd5ab['map'](_0x24f5e1=>this['_getViewObj'](_0x24f5e1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4b2f88[_0xfe57ee]=this['editor']['data']['processor']['toData'](_0x5a6402),this['editor']['data']['processor']['useFillerType']('default');}return _0x4b2f88;}async['getRevisionRootsAttributes'](_0x48989e){await this['loadRevisionData'](_0x48989e);const _0x211606={};for(const _0x3094bb in _0x48989e['diffData'])_0x48989e['diffData'][_0x3094bb]['attachChange']&&!_0x48989e['diffData'][_0x3094bb]['attachChange']['isAttached']||(_0x211606[_0x3094bb]=_0x48989e['diffData'][_0x3094bb]['attributesAfter']||{});return _0x211606;}['_removeRevisionMarkers'](_0x46ef7f){return(_0x46ef7f=_0x46ef7f['filter'](_0x2325d3=>!_0x2325d3['name']||'revision-start'!==_0x2325d3['name']&&'revision-end'!==_0x2325d3['name']))['forEach'](_0x178adb=>{'string'!=typeof _0x178adb&&(_0x178adb['children']=this['_removeRevisionMarkers'](_0x178adb['children']),_0x178adb['attributes']=_0x178adb['attributes']['filter'](_0x53a03e=>!_0x53a03e[0x0]['startsWith']('data-revision-')));}),_0x46ef7f;}async['compare'](_0x11defc,_0x4563c4,_0x253846=!0x1){if(!this['isEnabled'])return;const _0x4890f9=this['diff'],_0xdf02dc=this['repository'],_0x39a079='string'==typeof _0x11defc?_0xdf02dc['getRevision'](_0x11defc):_0x11defc,_0x7b9aa7='string'==typeof _0x4563c4?_0xdf02dc['getRevision'](_0x4563c4):_0x4563c4,_0x2044f4=_0x39a079['id'],_0x467432=_0x7b9aa7?_0x7b9aa7['id']:null;if(!_0x253846&&this['diff']&&this['diff']['newRevisionId']===_0x2044f4&&this['diff']['oldRevisionId']===_0x467432)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2044f4,_0x467432);const _0x3236d0=this['_getRevisionsRange'](_0x39a079,_0x7b9aa7,!0x0)['map'](_0x25b749=>this['loadRevisionData'](_0x25b749));return _0x3236d0['push'](new Promise(_0x38d4ce=>{setTimeout(_0x38d4ce,0x14);})),Promise['all'](_0x3236d0)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x36b18a=this['_getDiff'](_0x2044f4,_0x467432);for(const _0x57ed67 of _0x36b18a['changes'])this['_changeIdToChange']['set'](_0x57ed67['id'],_0x57ed67);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x24a4ef=>{for(const _0x15f25e of this['editor']['model']['document']['getRootNames']())_0x24a4ef['detachRoot'](_0x15f25e);for(const _0x3e0cce of Object['keys'](_0x36b18a['model'])){const _0x176cc8=_0x24a4ef['addRoot'](_0x3e0cce);for(const _0x4bd3da of Object['keys'](_0x36b18a['attributes'][_0x3e0cce]))_0x24a4ef['setAttribute'](_0x4bd3da,_0x36b18a['attributes'][_0x3e0cce][_0x4bd3da],_0x176cc8);_0x24a4ef['insert'](_0x36b18a['model'][_0x3e0cce],_0x176cc8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x36b18a['changes'])),this['isReady']=!0x0;})['catch'](_0x48276a=>{console['error'](_0x48276a),this['_cleanUp'](),_0x4890f9&&(this['diff']=_0x4890f9),this['isReady']=!0x0;});}['addRevisionData'](_0x598248,_0x5b0ce3){const _0x26d6af=this['repository']['createRevision'](_0x598248);return _0x26d6af['on']('_update',(_0x3574e2,_0x4a5a3d,_0x2c223a)=>_0x5b0ce3(_0x4a5a3d,_0x2c223a,_0x26d6af)),this['repository']['addRevision'](_0x26d6af),_0x26d6af;}['loadRevisionData'](_0x1efdbf){if(!_0x1efdbf||_0x1efdbf['diffData'])return Promise['resolve']();{const _0x13f30c=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x13f30c,'revisionId':_0x1efdbf['id']})['then'](_0x1f595c=>{_0x1efdbf['_update']({'diffData':_0x1f595c['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},_0x10f3c4=>{for(const _0x161f72 of this['editor']['model']['document']['getRootNames']())_0x10f3c4['detachRoot'](_0x161f72);});}['_sortAndFilterDiffChanges'](_0x374d55){const _0x32a8b3=[],_0x5dc79b=new Map();for(const _0x704a7b of this['editor']['model']['document']['getRootNames']()){const _0x347711=this['editor']['editing']['view']['getDomRoot'](_0x704a7b);if(!_0x347711)continue;const _0x1a3e9a=_0x347711['getClientRects']()['item'](0x0);_0x1a3e9a&&(_0x32a8b3['push'](_0x704a7b),_0x5dc79b['set'](_0x704a7b,_0x1a3e9a));}return _0x32a8b3['sort']((_0x16a74,_0xe63c0d)=>{const _0x490c0e=_0x5dc79b['get'](_0x16a74),_0x1c7423=_0x5dc79b['get'](_0xe63c0d);return _0x490c0e['y']-_0x1c7423['y']||_0x490c0e['x']-_0x1c7423['x'];}),(_0x374d55=_0x374d55['filter'](_0x309d42=>_0x32a8b3['includes'](_0x309d42['rootName'])))['sort']((_0x2eb82d,_0x56b2e8)=>_0x32a8b3['indexOf'](_0x2eb82d['rootName'])-_0x32a8b3['indexOf'](_0x56b2e8['rootName'])),_0x374d55;}['_makeTape'](_0x3ee9ed){const _0x2d545c=Array['from'](_0x3ee9ed['markers'])['filter'](([_0x53b7ff,_0x4983ee])=>_0x53b7ff['startsWith']('revision:')&&!_0x4983ee['isCollapsed']),_0x21b457=Array['from'](this['editor']['model']['createRangeIn'](_0x3ee9ed)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2d545c['length'])for(const _0xa92048 of _0x21b457){const [_0x3b60aa,_0x3a8683]=_0x2d545c[0x0],[,_0x2e574e,_0x2be25a]=_0x3b60aa['split'](':');if(_0x3a8683['end']['isEqual'](_0xa92048['nextPosition'])&&_0x2d545c['shift'](),(_0xa92048['previousPosition']['isEqual'](_0x3a8683['start'])||_0xa92048['previousPosition']['isAfter'](_0x3a8683['start']))&&('insertion'==_0x2e574e?_0xa92048['isAdded']={'userId':_0x2be25a}:'deletion'==_0x2e574e&&(_0xa92048['isRemoved']={'userId':_0x2be25a})),0x0==_0x2d545c['length'])break;}return _0x21b457;}['_refreshStartEndIndex'](_0x4d6e67){const _0x476581=new Map();for(let _0x52996a=0x0;_0x52996a<_0x4d6e67['length'];_0x52996a++)'text'===_0x4d6e67[_0x52996a]['type']?(_0x4d6e67[_0x52996a]['item']['startIndex']=_0x52996a,_0x4d6e67[_0x52996a]['item']['endIndex']=_0x52996a):('elementStart'===_0x4d6e67[_0x52996a]['type']?_0x4d6e67[_0x52996a]['item']['startIndex']=_0x52996a:'elementEnd'===_0x4d6e67[_0x52996a]['type']&&(_0x4d6e67[_0x52996a]['item']['endIndex']=_0x52996a),_0x476581['set'](_0x4d6e67[_0x52996a]['id'],_0x52996a));for(const _0x5cdbd2 of _0x476581['values']())'elementStart'===_0x4d6e67[_0x5cdbd2]['type']?_0x4d6e67[_0x5cdbd2]['item']['endIndex']=_0x476581['get'](_0x4d6e67[_0x5cdbd2]['pairId']):'elementEnd'===_0x4d6e67[_0x5cdbd2]['type']&&(_0x4d6e67[_0x5cdbd2]['item']['startIndex']=_0x476581['get'](_0x4d6e67[_0x5cdbd2]['pairId']));}['_processTape'](_0x3f0349){for(let _0x445d0f=0x0;_0x445d0f<_0x3f0349['length'];_0x445d0f++){if('elementStart'===_0x3f0349[_0x445d0f]['type'])_0x3f0349[_0x445d0f]['item']['startIndex']=_0x445d0f;else{if('elementEnd'===_0x3f0349[_0x445d0f]['type']){_0x3f0349[_0x445d0f]['item']['endIndex']=_0x445d0f;const _0x36d5c5=_0x3f0349[_0x445d0f]['item']['startIndex'];_0x3f0349[_0x36d5c5]['pairId']=_0x3f0349[_0x445d0f]['id'],_0x3f0349[_0x445d0f]['pairId']=_0x3f0349[_0x36d5c5]['id'];}else _0x3f0349[_0x445d0f]['item']['startIndex']=_0x445d0f,_0x3f0349[_0x445d0f]['item']['endIndex']=_0x445d0f,_0x3f0349[_0x445d0f]['pairId']=null;}_0x3f0349[_0x445d0f]['markersStart']||(_0x3f0349[_0x445d0f]['markersStart']=[],_0x3f0349[_0x445d0f]['markersEnd']=[]);}}['_markInsertions'](_0x1920f0,_0x30263e){const _0x39187f=_0x1920f0['filter'](_0x6990c1=>!_0x6990c1['isAdded']);for(let _0x494184=0x0;_0x494184<_0x30263e['length'];_0x494184++)_0x30263e[_0x494184]['isAdded']&&(_0x39187f[_0x494184]['isAdded']=_0x30263e[_0x494184]['isAdded']);}['_makeModelFromViewString'](_0x2d72de){const _0x267eed=JSON['parse'](_0x2d72de),_0x45e074=this['editor']['editing']['view']['document'],_0x1a4caf=new _0x4a4d01(_0x45e074,_0x267eed['map'](_0x55d00d=>this['_getViewObj'](_0x55d00d)));return this['editor']['data']['toModel'](_0x1a4caf);}['_getViewObj'](_0x226d60){const _0x232be7=this['editor']['editing']['view']['document'];if('string'==typeof _0x226d60)return new _0x275fe8(_0x232be7,_0x226d60);{const _0x393e01=_0x226d60['children']['map'](_0x5c896e=>this['_getViewObj'](_0x5c896e));return new(Z[_0x226d60['type']]||_0x26ab22)(_0x232be7,_0x226d60['name'],_0x226d60['attributes'],_0x393e01);}}['_getDiff'](_0x19a69f,_0x767eeb=null){const _0x258503=this['repository']['getRevision'](_0x19a69f),_0x50b613=_0x767eeb?this['repository']['getRevision'](_0x767eeb):null,_0x5973fe=this['_getRevisionsRange'](_0x258503,_0x50b613),_0x3ddb24=_0x5973fe[_0x5973fe['length']-0x1],_0x13c71a=new Map(),_0x5e299e={'model':{},'attributes':{},'changes':[]},_0x1341eb=new Set(),_0x5ed9ea=new Map();for(let _0x187a22=_0x5973fe['length']-0x1;_0x187a22>=0x0;_0x187a22--){const _0x41e3d5=_0x5973fe[_0x187a22];for(const _0x31dc7e of Object['keys'](_0x41e3d5['diffData']))if(_0x41e3d5['diffData'][_0x31dc7e]['attachChange']){const _0x5b91f5=_0x41e3d5['diffData'][_0x31dc7e]['attachChange'];_0x5b91f5['isAttached']?(_0x1341eb['add'](_0x31dc7e),_0x5ed9ea['has'](_0x31dc7e)&&_0x5ed9ea['get'](_0x31dc7e)['userId']==_0x5b91f5['userId']?_0x5ed9ea['delete'](_0x31dc7e):_0x5ed9ea['set'](_0x31dc7e,_0x5b91f5)):_0x5ed9ea['has'](_0x31dc7e)?(_0x1341eb['delete'](_0x31dc7e),_0x5ed9ea['delete'](_0x31dc7e)):(_0x1341eb['add'](_0x31dc7e),_0x5ed9ea['set'](_0x31dc7e,_0x5b91f5));}else _0x1341eb['add'](_0x31dc7e);}for(const _0x993776 of _0x1341eb){const _0x265bd2=_0x5ed9ea['has'](_0x993776)&&!_0x5ed9ea['get'](_0x993776)['isAttached'];let _0x36e545=_0x265bd2?_0x5973fe['length']-0x1:0x0;const _0x4a6125=_0x265bd2?-0x1:0x1;for(;_0x5973fe[_0x36e545];){const _0x2710e0=_0x5973fe[_0x36e545];if(_0x2710e0['diffData'][_0x993776]){const _0x1950bc=_0x265bd2?_0x2710e0['diffData'][_0x993776]['attributesBefore']:_0x2710e0['diffData'][_0x993776]['attributesAfter'];_0x5e299e['attributes'][_0x993776]=_0x1950bc?_0x1875bd(_0x1950bc):{};break;}_0x36e545+=_0x4a6125;}}for(const _0x50e0d4 of _0x5973fe){_0x50e0d4['model']={};for(const _0x18594b of _0x50e0d4['authors'])_0x13c71a['set'](_0x18594b['id'],_0x18594b);for(const _0x117078 of _0x1341eb){const _0x4363de=_0x50e0d4['diffData'][_0x117078]?_0x50e0d4['diffData'][_0x117078]['insertions']:'[]',_0x3ad22d=_0x50e0d4['diffData'][_0x117078]?_0x50e0d4['diffData'][_0x117078]['deletions']:'[]';_0x50e0d4['model'][_0x117078]={'insertions':this['_makeModelFromViewString'](_0x4363de),'deletions':this['_makeModelFromViewString'](_0x3ad22d)};}}for(const _0x1bf16a of _0x1341eb){let _0x272936=null,_0x2ad098=0x0;const _0x1e3261=new Map(Array['from'](_0x258503['model'][_0x1bf16a]['insertions']['markers'])['filter'](([_0x5b887f])=>!_0x5b887f['startsWith']('revision:')));let _0x8832d7=0x0;for(const _0x46216c of _0x5973fe){const _0x4cd27e=this['_makeTape'](_0x46216c['model'][_0x1bf16a]['insertions']);_0x46216c==_0x258503?(_0x272936=_0x4cd27e,_0x2ad098=_0x272936['length'],_0x272936['forEach'](_0x33f33f=>{_0x33f33f['id']=_0x8832d7++;}),this['_processTape'](_0x272936)):this['_markInsertions'](_0x272936,_0x4cd27e);const _0x2cb767=_0x272936['filter'](_0x3a403a=>!_0x3a403a['isAdded'])['map'](_0x3d6107=>_0x3d6107['id']);let _0x5a447e=0x0;const _0x12942f=this['_makeTape'](_0x46216c['model'][_0x1bf16a]['deletions']);_0x12942f['forEach'](_0x5186a2=>{_0x5186a2['isRemoved']?_0x5186a2['id']=_0x2ad098++:_0x5186a2['id']=_0x2cb767[_0x5a447e++];}),this['_processTape'](_0x12942f),this['_setDistance'](_0x272936,'isAdded'),this['_setDistance'](_0x12942f,'isRemoved'),_0x46216c==_0x258503&&this['_markMarkers'](_0x272936,_0x1e3261),_0x272936=this['_joinTapes'](_0x272936,_0x12942f),this['_refreshStartEndIndex'](_0x272936),this['_setDistance'](_0x272936,'isRemoved');}_0x272936=_0x272936['filter'](_0x1edf82=>!(_0x1edf82['isAdded']&&_0x1edf82['isRemoved']));const _0x137a37=new Map(_0x3ddb24['model'][_0x1bf16a]['deletions']['markers']),_0x1000ec=new Set(_0x1e3261['keys']());for(const _0x2bad5a of _0x137a37['keys']())_0x1000ec['delete'](_0x2bad5a);this['_markSuggestions'](_0x272936,_0x1000ec),this['_fixObsoleteTags'](_0x272936),_0x272936=this['_removeMissingPairs'](_0x272936),_0x272936=this['_markMismatchedRemovedTags'](_0x272936),_0x272936=this['_removeUnsupportedChanges'](_0x272936);const {root:_0x297904,changes:_0xd6ddbd}=this['_makeModelFromTape'](_0x272936,_0x13c71a,_0x1bf16a);_0x5e299e['model'][_0x1bf16a]=_0x297904;const _0x3af292=_0x5ed9ea['get'](_0x1bf16a);if(_0x3af292){const _0x41dc0b=_0x13c71a['get'](_0x3af292['userId']),_0x492d6e=new r({'author':_0x41dc0b,'type':_0x3af292['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1bf16a});_0xd6ddbd['unshift'](_0x492d6e),_0x5e299e['attributes'][_0x1bf16a]['revisionHistoryAttachChange']=_0x492d6e['id'];}_0x5e299e['changes']=_0x5e299e['changes']['concat'](_0xd6ddbd);}return _0x5e299e;}['_markMarkers'](_0x169fad,_0x366e38){for(let _0x1c666d=0x0;_0x1c666d<_0x169fad['length'];_0x1c666d++)for(const [_0x442047,_0x40007a]of _0x366e38)_0x40007a['start']['isEqual'](_0x169fad[_0x1c666d]['previousPosition'])&&_0x169fad[_0x1c666d]['markersStart']['push'](_0x442047),_0x40007a['end']['isEqual'](_0x169fad[_0x1c666d]['nextPosition'])&&_0x169fad[_0x1c666d]['markersEnd']['push'](_0x442047);}['_joinTapes'](_0x2d8ec3,_0x101866){let _0x2f36b1=[],_0x25af1b=0x0,_0x4a7803=0x0;for(;_0x25af1b<_0x2d8ec3['length']||_0x4a7803<_0x101866['length'];){const _0x1aee28=_0x2d8ec3[_0x25af1b]||{},_0x16b991=_0x101866[_0x4a7803]||{};if(_0x1aee28['id']==_0x16b991['id'])_0x25af1b++,_0x4a7803++,_0x2f36b1['push'](_0x1aee28);else{if(_0x16b991['isRemoved']&&_0x1aee28['isAdded']){const {commonTape:_0x2c5967,iEnd:_0x832174,jEnd:_0x47a652}=this['_threeWayMerge'](_0x2d8ec3,_0x25af1b,_0x101866,_0x4a7803);_0x2f36b1=_0x2f36b1['concat'](_0x2c5967),_0x25af1b=_0x832174,_0x4a7803=_0x47a652;}else _0x16b991['isRemoved']?(_0x4a7803++,_0x2f36b1['push'](_0x16b991)):(_0x25af1b++,_0x2f36b1['push'](_0x1aee28));}}return _0x2f36b1;}['_markSuggestions'](_0x2230d1,_0x5e0ca){const _0x40adb5=[];for(let _0x24d3d7=0x0;_0x24d3d7<_0x2230d1['length'];_0x24d3d7++){for(let _0x27caef=0x0;_0x27caef<_0x2230d1[_0x24d3d7]['markersStart']['length'];_0x27caef++){const _0x27eeb2=_0x2230d1[_0x24d3d7]['markersStart'][_0x27caef];if(!_0x5e0ca['has'](_0x27eeb2))continue;const {group:_0x2d0cce,type:_0x352fde,authorId:_0x38d814}=_0x27f969(_0x27eeb2);'revision-suggestion'!=_0x2d0cce||'insertion'!=_0x352fde&&'deletion'!=_0x352fde||(_0x40adb5['unshift']({'type':_0x352fde,'name':_0x27eeb2,'userId':_0x38d814}),_0x2230d1[_0x24d3d7]['markersStart']['splice'](_0x27caef,0x1),_0x27caef--);}_0x1b35b6(_0x2230d1[_0x24d3d7]);for(let _0x1c22ff=0x0;_0x1c22ff<_0x2230d1[_0x24d3d7]['markersEnd']['length'];_0x1c22ff++){const _0x3971fe=_0x2230d1[_0x24d3d7]['markersEnd'][_0x1c22ff];if(!_0x5e0ca['has'](_0x3971fe))continue;const {group:_0x2243ef,type:_0x5439ad}=_0x27f969(_0x3971fe);if('revision-suggestion'!=_0x2243ef||'insertion'!=_0x5439ad&&'deletion'!=_0x5439ad)continue;_0x2230d1[_0x24d3d7]['markersEnd']['splice'](_0x1c22ff,0x1),_0x1c22ff--;const _0x1f1424=_0x40adb5['findIndex'](_0x132caa=>_0x132caa['name']==_0x3971fe);_0x1f1424>-0x1&&_0x40adb5['splice'](_0x1f1424,0x1);}}function _0x27f969(_0x4fb408){const _0x4a4794=_0x4fb408['split'](':');return{'group':_0x4a4794[0x0],'type':_0x4a4794[0x1],'subType':_0x4a4794['length']>=0x5?_0x4a4794[0x2]:null,'id':_0x4a4794['length']<0x5?_0x4a4794[0x2]:_0x4a4794[0x3],'authorId':_0x4a4794['length']<0x5?_0x4a4794[0x3]:_0x4a4794[0x4],'markerCount':0x6==_0x4a4794['length']?_0x4a4794[0x5]:null};}function _0x1b35b6(_0x2852f1){for(let _0x174fc7=0x0;_0x174fc7<_0x40adb5['length'];_0x174fc7++){if(_0x2852f1['isAdded']&&'insertion'==_0x40adb5[_0x174fc7]['type'])return _0x2852f1['isAddSuggestion']=_0x40adb5[_0x174fc7],void delete _0x2852f1['isAdded'];if(!_0x2852f1['isAdded']&&!_0x2852f1['isRemoved']&&'deletion'==_0x40adb5[_0x174fc7]['type'])return void(_0x2852f1['isRemoveSuggestion']=_0x40adb5[_0x174fc7]);}}}['_setDistance'](_0x35157b,_0x5d02aa){let _0x4b1869=0x0,_0x139018=!0x1;const _0x11814c=new Map();for(const _0x5b8143 of _0x35157b)_0x5b8143[_0x5d02aa]?_0x139018&&(_0x4b1869++,_0x139018=!0x1):(_0x4b1869++,_0x139018=!0x0),_0x11814c['set'](_0x5b8143['id'],_0x4b1869);for(let _0x454a91=0x0;_0x454a91<_0x35157b['length'];_0x454a91++){if('isRemoved'==_0x5d02aa&&_0x35157b[_0x454a91]['isAdded']||'isAdded'==_0x5d02aa&&_0x35157b[_0x454a91]['isRemoved'])continue;if('text'==_0x35157b[_0x454a91]['type']){_0x35157b[_0x454a91]['distance']=0x0;continue;}const _0x4b1877=_0x11814c['get'](_0x35157b[_0x454a91]['pairId']),_0x1b4061=_0x11814c['get'](_0x35157b[_0x454a91]['id']);_0x35157b[_0x454a91]['distance']=_0x4b1877-_0x1b4061;}}['_getRevisionsRange'](_0x4f1285,_0x59473a,_0x4edb20=!0x1){const _0x4b70bb=[];let _0x448efc=this['repository']['getIndex'](_0x4f1285),_0x55dfde=this['repository']['getIndex'](_0x59473a);for(-0x1==_0x55dfde&&(_0x55dfde=this['repository']['_revisions']['length'],_0x4edb20=!0x1);_0x448efc<_0x55dfde;)_0x4b70bb['push'](this['repository']['getRevision'](_0x448efc)),_0x448efc++;return _0x4edb20&&_0x4b70bb['push'](this['repository']['getRevision'](_0x448efc)),_0x4b70bb;}['_threeWayMerge'](_0x398a8a,_0x5801a0,_0xbede42,_0x4797ef){const _0x36bdbf=this['editor']['model']['schema'];let _0x4d88f4=_0x5801a0;for(;_0x398a8a[_0x4d88f4]&&_0x398a8a[_0x4d88f4]['isAdded'];)_0x4d88f4++;let _0x55b887=_0x4797ef;for(;_0xbede42[_0x55b887]&&_0xbede42[_0x55b887]['isRemoved'];)_0x55b887++;_0x1e7909(_0x398a8a,_0x5801a0,_0x4d88f4),_0x1e7909(_0xbede42,_0x4797ef,_0x55b887);const _0x6e2c3a=_0xbede42['slice'](_0x4797ef,_0x55b887)['concat'](_0x398a8a['slice'](_0x5801a0,_0x4d88f4));return _0x6e2c3a['sort']((_0x45053f,_0x107b4f)=>_0x45053f['side']!=_0x107b4f['side']?_0x45053f['side']-_0x107b4f['side']:_0x45053f['level']!=_0x107b4f['level']?_0x45053f['level']-_0x107b4f['level']:_0x45053f['distance']!=_0x107b4f['distance']?_0x107b4f['distance']-_0x45053f['distance']:!!_0x45053f['isAdded']!=!!_0x107b4f['isAdded']?-0x1==_0x45053f['side']||0x0==_0x45053f['side']?_0x45053f['isAdded']?-0x1:0x1:_0x45053f['isAdded']?0x1:-0x1:_0x45053f['index']-_0x107b4f['index']),{'commonTape':_0x6e2c3a,'iEnd':_0x4d88f4,'jEnd':_0x55b887};function _0x1e7909(_0x321a95,_0x3b0584,_0x2afa3d){let _0x30c45f=-0x1,_0x3d35fe=Number['POSITIVE_INFINITY'],_0x13e8e7=!0x0;for(let _0x4e3d2c=_0x3b0584;_0x4e3d2c<_0x2afa3d;_0x4e3d2c++)if(_0x36bdbf['isInline'](_0x321a95[_0x4e3d2c]['item'])||(_0x13e8e7=!0x1),_0x321a95[_0x4e3d2c]['item']['startIndex']<_0x3b0584&&(_0x30c45f=_0x4e3d2c),_0x321a95[_0x4e3d2c]['item']['endIndex']>=_0x2afa3d){_0x3d35fe=_0x4e3d2c;break;}_0x13e8e7&&(_0x30c45f=_0x2afa3d-0x1);for(let _0x4a6ca=_0x3b0584;_0x4a6ca<_0x2afa3d;_0x4a6ca++)_0x321a95[_0x4a6ca]['side']=_0x4a6ca<=_0x30c45f?-0x1:_0x4a6ca<_0x3d35fe?0x0:0x1,_0x321a95[_0x4a6ca]['index']=_0x4a6ca;let _0x49c590=0x0;for(let _0xec5459=_0x3b0584;_0xec5459<=_0x30c45f;_0xec5459++)0x0==_0x321a95[_0xec5459]['distance']?_0x321a95[_0xec5459]['level']=_0x49c590:(_0x49c590++,_0x321a95[_0xec5459]['level']=_0x49c590,_0x49c590++);for(let _0x133d70=_0x3b0584;_0x133d70<_0x2afa3d;_0x133d70++)0x0==_0x321a95[_0x133d70]['side']&&(_0x321a95[_0x133d70]['level']=_0x49c590);_0x49c590=0x0;for(let _0x320897=_0x2afa3d-0x1;_0x320897>=_0x3d35fe;_0x320897--)0x0==_0x321a95[_0x320897]['distance']?_0x321a95[_0x320897]['level']=_0x49c590:(_0x49c590--,_0x321a95[_0x320897]['level']=_0x49c590,_0x49c590--);}}['_fixObsoleteTags'](_0x413fde){const _0x5a913d=new Map(),_0x335189=this['editor']['model']['schema'];for(let _0x47462b=0x1;_0x47462b<_0x413fde['length'];_0x47462b++){let _0x192150,_0x18f319,_0x3fdd65;const _0x4591b0=_0x413fde[_0x47462b],_0x156492=_0x413fde[_0x47462b-0x1];if('text'==_0x4591b0['type'])continue;if(_0x4591b0['type']!=_0x156492['type'])continue;if(!_0x335189['isBlock'](_0x156492['item'])||_0x335189['isLimit'](_0x156492['item']))continue;if(!_0x335189['isBlock'](_0x4591b0['item'])||_0x335189['isLimit'](_0x4591b0['item']))continue;if((_0x413fde[_0x47462b]['isAdded']||_0x413fde[_0x47462b]['isAddSuggestion'])&&_0x413fde[_0x47462b-0x1]['isRemoved'])_0x192150=_0x413fde[_0x47462b],_0x18f319=_0x413fde[_0x47462b-0x1],_0x3fdd65=_0x47462b-0x1;else{if(!_0x413fde[_0x47462b]['isRemoved']||!_0x413fde[_0x47462b-0x1]['isAdded']&&!_0x413fde[_0x47462b-0x1]['isAddSuggestion'])continue;_0x192150=_0x413fde[_0x47462b-0x1],_0x18f319=_0x413fde[_0x47462b],_0x3fdd65=_0x47462b;}const _0x204910=_0x192150['level']==_0x18f319['level'],_0x244278=Math['abs'](_0x192150['level'])<Math['abs'](_0x18f319['level'])&&0x0==_0x18f319['distance'];(_0x204910||_0x244278)&&(_0x5a913d['set'](_0x18f319['id'],_0x192150['id']),_0x413fde['splice'](_0x3fdd65,0x1),_0x47462b--,_0x192150['isAdded']=!0x1);}for(let _0x4033e5=0x0;_0x4033e5<_0x413fde['length'];_0x4033e5++)_0x5a913d['has'](_0x413fde[_0x4033e5]['pairId'])&&(_0x413fde[_0x4033e5]['pairId']=_0x5a913d['get'](_0x413fde[_0x4033e5]['pairId']));}['_removeMissingPairs'](_0x54653e){const _0x5cd36b=new Set(_0x54653e['map'](_0x3365df=>_0x3365df['id']));for(let _0x189582=0x0;_0x189582<_0x54653e['length'];_0x189582++)_0x5cd36b['has'](_0x54653e[_0x189582]['pairId'])||0x0==_0x54653e[_0x189582]['distance']||(_0x54653e[_0x189582]['isIncorrect']=!0x0);return _0x54653e['filter'](_0x27f84b=>!_0x27f84b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x26489e){const _0x1aee34=new Set();for(let _0x362a5f=0x0;_0x362a5f<_0x26489e['length'];_0x362a5f++){if(_0x1aee34['has'](_0x26489e[_0x362a5f]['id'])&&_0x26489e[_0x362a5f]['isRemoved']&&(_0x26489e[_0x362a5f]['isIncorrect']=!0x0),_0x26489e[_0x362a5f]['isIncorrect'])continue;if(0x0==_0x26489e[_0x362a5f]['distance'])continue;if('elementStart'!=_0x26489e[_0x362a5f]['type'])continue;if(null==_0x26489e[_0x362a5f]['pairId'])continue;let _0x2276a6=_0x362a5f+0x1,_0x5dda71=0x0;for(;_0x26489e[_0x2276a6]['id']!=_0x26489e[_0x362a5f]['pairId'];)'elementStart'==_0x26489e[_0x2276a6]['type']?_0x5dda71++:'elementEnd'==_0x26489e[_0x2276a6]['type']&&_0x5dda71--,_0x2276a6++;if(0x0!=_0x5dda71){if(_0x26489e[_0x362a5f]['isRemoved'])_0x26489e[_0x362a5f]['isIncorrect']=!0x0;else{for(;_0x2276a6!=_0x362a5f;)_0x26489e[_0x2276a6]['isRemoved']&&0x0!=_0x26489e[_0x2276a6]['distance']&&(_0x26489e[_0x2276a6]['isIncorrect']=!0x0,_0x1aee34['add'](_0x26489e[_0x2276a6]['pairId'])),_0x2276a6--;}}}return _0x26489e['filter'](_0x59c1d2=>!_0x59c1d2['isIncorrect']);}['_removeUnsupportedChanges'](_0x435d52){const _0x50e810=this['editor']['model']['schema'];for(let _0x3a45f1=0x0;_0x3a45f1<_0x435d52['length'];_0x3a45f1++){if(!(_0x435d52[_0x3a45f1]['isAdded']||_0x435d52[_0x3a45f1]['isAddSuggestion']||_0x435d52[_0x3a45f1]['isRemoved']||_0x435d52[_0x3a45f1]['isRemoveSuggestion']))continue;if(0x0==_0x435d52[_0x3a45f1]['distance'])continue;const _0xfad3a4=_0x435d52[_0x3a45f1]['item'];_0x50e810['isBlock'](_0xfad3a4)||_0x50e810['isLimit'](_0xfad3a4)||(_0x435d52[_0x3a45f1]['isAdded']&&delete _0x435d52[_0x3a45f1]['isAdded'],_0x435d52[_0x3a45f1]['isAddSuggestion']&&delete _0x435d52[_0x3a45f1]['isAddSuggestion'],_0x435d52[_0x3a45f1]['isRemoveSuggestion']&&delete _0x435d52[_0x3a45f1]['isRemoveSuggestion'],_0x435d52[_0x3a45f1]['isRemoved']&&(_0x435d52[_0x3a45f1]['isIncorrect']=!0x0));}return _0x435d52['filter'](_0x50306f=>!_0x50306f['isIncorrect']);}['_makeModelFromTape'](_0x3123ab,_0xf6c771,_0x2f6e86){const _0x37e381=new mt(),_0x4bd509=[],_0x38ec25=new Map(),_0x295c28=this['editor']['model'],_0x46e65d=_0x295c28['schema'],_0x432135=[_0x37e381],_0x51737e={},_0x399349={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1433e7=null;const _0x3283c6=[0x0];for(let _0x39781c=0x0;_0x39781c<_0x3123ab['length'];_0x39781c++)if('elementStart'===_0x3123ab[_0x39781c]['type']){_0x3123ab[_0x39781c]['previousPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6);const _0x57ca9b=new ft(_0x3123ab[_0x39781c]['item']['name'],_0x3123ab[_0x39781c]['item']['getAttributes']());_0x432135[0x0]['_appendChild'](_0x57ca9b),_0x3283c6['push'](0x0),_0x432135['unshift'](_0x57ca9b),_0x3123ab[_0x39781c]['nextPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6);}else'elementEnd'===_0x3123ab[_0x39781c]['type']?(_0x432135['shift'](),_0x3123ab[_0x39781c]['previousPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6),_0x3283c6['pop'](),_0x3283c6[_0x3283c6['length']-0x1]++,_0x3123ab[_0x39781c]['nextPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6)):(_0x3123ab[_0x39781c]['previousPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6),_0x1433e7?_0x1433e7['_data']+=_0x3123ab[_0x39781c]['item']['data']:_0x1433e7=new wt(_0x3123ab[_0x39781c]['item']['data'],_0x3123ab[_0x39781c]['item']['getAttributes']()),_0x3123ab[_0x39781c+0x1]&&'text'===_0x3123ab[_0x39781c+0x1]['type']&&_0x3d26a5(_0x1433e7,_0x3123ab[_0x39781c+0x1]['item'])||(_0x432135[0x0]['_appendChild'](_0x1433e7),_0x1433e7=null),_0x3283c6[_0x3283c6['length']-0x1]+=_0x3123ab[_0x39781c]['item']['offsetSize'],_0x3123ab[_0x39781c]['nextPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6));for(let _0x2f34a3=0x0;_0x2f34a3<_0x3123ab['length'];_0x2f34a3++){const _0xa7f3b7=_0x3123ab[_0x2f34a3]['previousPosition'],_0x2933d2=_0x3123ab[_0x2f34a3]['nextPosition'];for(const _0x51048e of _0x3123ab[_0x2f34a3]['markersStart'])_0x38ec25['set'](_0x51048e,{'start':_0xa7f3b7,'end':null});_0x14c5f2('isRemoveSuggestion',_0x2f34a3,_0xa7f3b7,_0x2933d2),_0x14c5f2('isAddSuggestion',_0x2f34a3,_0xa7f3b7,_0x2933d2),_0x14c5f2('isRemoved',_0x2f34a3,_0xa7f3b7,_0x2933d2),_0x14c5f2('isAdded',_0x2f34a3,_0xa7f3b7,_0x2933d2);for(const _0x4f87aa of _0x3123ab[_0x2f34a3]['markersEnd']){_0x38ec25['get'](_0x4f87aa)['end']=_0x2933d2;}}for(const [_0x510f7a,_0x3e28d7]of _0x38ec25){const _0x3c791b=this['editor']['model']['createRange'](_0x3e28d7['start'],_0x3e28d7['end']);_0x37e381['markers']['set'](_0x510f7a,_0x3c791b);}return _0x4bd509['sort']((_0x2ef735,_0x3b39cb)=>{const _0x3beb47=_0x37e381['markers']['get']('revision:'+_0x2ef735['id']),_0x2a4b5f=_0x37e381['markers']['get']('revision:'+_0x3b39cb['id']);return _0x3beb47['start']['isBefore'](_0x2a4b5f['start'])?-0x1:_0x3beb47['start']['isAfter'](_0x2a4b5f['start'])?0x1:_0x3beb47['end']['isBefore'](_0x2a4b5f['end'])?-0x1:_0x3beb47['end']['isAfter'](_0x2a4b5f['end'])?0x1:'add'===_0x2ef735['type']?-0x1:0x1;}),{'root':_0x37e381,'changes':_0x4bd509};function _0x14c5f2(_0x506a9d,_0x2d3479,_0x11d549,_0x5b0382){const _0x49f307=!!_0x3123ab[_0x2d3479][_0x506a9d],_0x4ca584=_0x49f307?_0x3123ab[_0x2d3479][_0x506a9d]['userId']:null,_0x2718fc=_0x2d3479===_0x3123ab['length']-0x1,_0x327cec=_0x399349[_0x506a9d][0x0],_0xc777af=_0x46e65d['isObject'](_0x3123ab[_0x2d3479]['item']);!_0x51737e[_0x506a9d]&&_0x49f307?_0x51737e[_0x506a9d]={'start':_0x11d549,'tapeItem':_0x3123ab[_0x2d3479],'userId':_0x4ca584,'type':_0x506a9d}:_0x51737e[_0x506a9d]&&!_0x49f307?(_0x51737e[_0x506a9d]['end']=_0x11d549,_0x1d4d97(_0x51737e[_0x506a9d]),_0x51737e[_0x506a9d]=null):_0x51737e[_0x506a9d]&&_0x49f307&&_0x51737e[_0x506a9d]['userId']!==_0x4ca584&&(_0x51737e[_0x506a9d]['end']=_0x11d549,_0x327cec&&_0x327cec['userId']===_0x51737e[_0x506a9d]['userId']||_0x1d4d97(_0x51737e[_0x506a9d]),_0x51737e[_0x506a9d]={'start':_0x11d549,'tapeItem':_0x3123ab[_0x2d3479],'userId':_0x4ca584,'type':_0x506a9d}),_0x51737e[_0x506a9d]&&_0xc777af&&('elementStart'!==_0x3123ab[_0x2d3479]['type']||_0x327cec&&_0x327cec['userId']===_0x4ca584||_0x399349[_0x506a9d]['unshift']({'userId':_0x4ca584,'object':_0x3123ab[_0x2d3479]['item'],'change':_0x51737e[_0x506a9d]}),'elementEnd'===_0x3123ab[_0x2d3479]['type']&&_0x327cec&&_0x327cec['object']===_0x3123ab[_0x2d3479]['item']&&(_0x399349[_0x506a9d]['shift'](),_0x51737e[_0x506a9d]=_0x327cec['change'])),_0x51737e[_0x506a9d]&&_0x2718fc&&(_0x51737e[_0x506a9d]['end']=_0x5b0382,_0x1d4d97(_0x51737e[_0x506a9d]),_0x51737e[_0x506a9d]=null);}function _0x1d4d97({start:_0x48c848,end:_0x949fb8,tapeItem:_0x34603b,userId:_0x1e534c,type:_0x12d6c9}){const _0x5b7b8a=_0x34603b['item'],_0x12e889=_0x295c28['schema']['isBlock'](_0x5b7b8a)&&!_0x295c28['schema']['isLimit'](_0x5b7b8a),_0x381a8b=_0x48c848['nodeAfter']==_0x949fb8['parent']&&_0x949fb8['isAtStart'];if(_0x12e889&&_0x381a8b)return;const _0x5bb97c=_0x295c28['createRange'](_0x48c848,_0x949fb8),_0x742a0c=_0xf6c771['get'](_0x1e534c),_0x425da0=new r({'author':_0x742a0c,'type':'isAdded'==_0x12d6c9||'isAddSuggestion'==_0x12d6c9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x12d6c9||'isRemoveSuggestion'==_0x12d6c9},'createdAt':new Date(),'rootName':_0x2f6e86});_0x4bd509['push'](_0x425da0),_0x37e381['markers']['set']('revision:'+_0x425da0['id'],_0x5bb97c);}function _0x3d26a5(_0x2d69dc,_0x3bede4){const _0x594317=_0x2d69dc['getAttributes'](),_0x561f52=_0x3bede4['getAttributes']();for(const _0x3f97dc of _0x594317){if(_0x3f97dc[0x1]!==_0x3bede4['getAttribute'](_0x3f97dc[0x0]))return!0x1;_0x561f52['next']();}return _0x561f52['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x24c4e6=>{const _0x2d30ce=_0x24c4e6['markerName']['split'](':')[0x1],_0x654a72=this['_getChangeFromId'](_0x2d30ce);if(!_0x654a72)return null;const _0x2eb236='add'==_0x654a72['type']?'insertion':'deletion',_0x137da5=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2eb236];return _0x654a72['data']['isSuggestion']&&_0x137da5['push']('ck-suggestion-marker-'+_0x2eb236+'-new'),this['activeChange']==_0x654a72&&_0x137da5['push']('ck-suggestion-marker--active'),{'classes':_0x137da5,'attributes':{'data-change-id':_0x2d30ce}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5b6cc7=>{_0x5b6cc7['on']('element:pre',(_0x9087bf,_0x1ce029,_0x21a4ad)=>{const _0x3f5a18=_0x1ce029['viewItem']['getChild'](0x0);if(!_0x3f5a18||!_0x3f5a18['is']('element','code'))return;if(!_0x21a4ad['consumable']['consume'](_0x3f5a18,{'attributes':['vid_start','vid_end']}))return;const _0x3d46be=_0x1ce029['modelRange']['start']['nodeAfter'];_0x21a4ad['writer']['setAttribute']('vid_start',_0x3f5a18['getAttribute']('vid_start'),_0x3d46be),_0x21a4ad['writer']['setAttribute']('vid_end',_0x3f5a18['getAttribute']('vid_end'),_0x3d46be);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1c0ec8=>{_0x1c0ec8['on']('element',(_0x22055c,_0x4e9c6c,_0x211288)=>{if(!_0x211288['consumable']['consume'](_0x4e9c6c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4e9c6c['modelRange']['isCollapsed'])return;const _0x3d37ad=_0x4e9c6c['modelRange']['start']['nodeAfter'];_0x3d37ad['hasAttribute']('vid_start')||_0x3d37ad['hasAttribute']('vid')||(_0x211288['writer']['setAttribute']('vid_start',_0x4e9c6c['viewItem']['getAttribute']('vid_start'),_0x3d37ad),_0x211288['writer']['setAttribute']('vid_end',_0x4e9c6c['viewItem']['getAttribute']('vid_end'),_0x3d37ad));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x30bac4=>_0x30bac4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4dd51c,[,_0x5dfcbb])=>{['vid_start','vid_end','vid']['includes'](_0x5dfcbb)&&(_0x4dd51c['return']=!0x0,_0x4dd51c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2c082f=>{_0x2c082f['on']('attribute:vid',(_0x435596,_0x1e0ed5,_0x41e756)=>{if('\x20'!=_0x1e0ed5['item']['data']||_0x1e0ed5['item']['parent']['maxOffset']>0x1)return;if(!_0x41e756['consumable']['consume'](_0x1e0ed5['item'],_0x435596['name']))return;const _0x24e79d=_0x41e756['writer'],_0x1b3f80=_0x41e756['mapper']['toViewRange'](_0x1e0ed5['range']);_0x24e79d['wrap'](_0x1b3f80,_0x24e79d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x59840d){const _0x3406e5=_0x59840d['plugins']['get']('RevisionViewer');return(_0x4b84fb,_0x347239,_0x144962)=>{const _0x410cda=_0x347239['markerName']['split'](':')[0x1],_0x1691aa=_0x3406e5['_getChangeFromId'](_0x410cda);if(!_0x1691aa)return null;const _0x2b5dbd='add'==_0x1691aa['type']?'split':'merge';if(!_0x144962['consumable']['test'](_0x347239['markerRange'],_0x4b84fb['name']))return;const _0x3ef528=_0x347239['markerRange']['getWalker'](),_0x221f40=_0x347239['markerRange']['start'],_0x306fad=_0x59840d['model']['schema'];let _0x51e9b0=null,_0x3efea7=null,_0x3b897b=!0x1,_0x49668e=!0x1;for(const _0x5e4fad of _0x3ef528){const _0x23be81=_0x5e4fad['item'];_0x3b897b=_0x3b897b||_0x306fad['isContent'](_0x23be81);const _0x2a3fa0=_0x144962['mapper']['toViewElement'](_0x23be81);if(_0x2a3fa0&&_0x2a3fa0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5e4fad['type']&&(_0x306fad['isBlock'](_0x23be81)&&!_0x306fad['isLimit'](_0x23be81)&&(_0x23be81['nextSibling']||_0x221f40['isAtEnd']?_0x51e9b0&&_0x51e9b0['parent']==_0x23be81||(_0x51e9b0=_0x23be81,_0xe63fef(_0x5e4fad['previousPosition']),_0x49668e=!0x0):_0x3efea7=_0x3efea7||_0x5e4fad['previousPosition']));}function _0xe63fef(_0x59122a){const _0x3ff593=_0x144962['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b5dbd}),_0x344dc1=_0x144962['mapper']['toViewPosition'](_0x59122a);_0x1691aa['data']['isSuggestion']&&_0x144962['writer']['addClass']('ck-suggestion-marker-'+_0x2b5dbd+'-new',_0x3ff593),_0x3406e5['activeChange']==_0x1691aa&&_0x144962['writer']['addClass']('ck-suggestion-marker--active',_0x3ff593),_0x144962['writer']['insert'](_0x344dc1,_0x3ff593),_0x144962['mapper']['bindElementToMarker'](_0x3ff593,_0x347239['markerName']);}_0x3b897b||_0x49668e||!_0x3efea7||_0xe63fef(_0x3efea7);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x332bda,_0x4dc68a,_0x4ecb47)=>{const _0x5cc3b7=_0x4ecb47['mapper']['markerNameToElements'](_0x4dc68a['markerName']);if(_0x5cc3b7){for(const _0x290e36 of _0x5cc3b7)(_0x290e36['hasClass']('ck-suggestion-marker-split')||_0x290e36['hasClass']('ck-suggestion-marker-merge'))&&(_0x4ecb47['mapper']['unbindElementFromMarkerName'](_0x290e36,_0x4dc68a['markerName']),_0x4ecb47['writer']['remove'](_0x290e36));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3d6ddd,_0x1b438c,_0x3b823e)=>{const _0xbbaab2=_0x1b438c['markerName']['split'](':')[0x1],_0x2c6f32=this['_getChangeFromId'](_0xbbaab2);if(!_0x2c6f32)return null;const _0x4ca540='add'==_0x2c6f32['type']?'split':'merge';if(_0x3b823e['consumable']['test'](_0x1b438c['markerRange'],_0x3d6ddd['name']))for(const _0x4d54d4 of _0x1b438c['markerRange']['getItems']()){if(!_0x4d54d4['is']('element','softBreak'))continue;const _0x4c09f0=_0x3b823e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ca540}),_0x565ef4=_0x3b823e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4d54d4));_0x2c6f32['data']['isSuggestion']&&_0x3b823e['writer']['addClass']('ck-suggestion-marker-'+_0x4ca540+'-new',_0x4c09f0),this['activeChange']==_0x2c6f32&&_0x3b823e['writer']['addClass']('ck-suggestion-marker--active',_0x4c09f0),_0x3b823e['writer']['insert'](_0x565ef4,_0x4c09f0),_0x3b823e['mapper']['bindElementToMarker'](_0x4c09f0,_0x1b438c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x37c9e3=>{for(const _0x58003e of this['editor']['model']['document']['getRootNames']()){const _0x2d4685=this['editor']['model']['document']['getRoot'](_0x58003e),_0x38d0d3=this['editor']['editing']['view']['document']['getRoot'](_0x58003e);if(_0x38d0d3){const _0x34ff12=_0x2d4685['getAttribute']('revisionHistoryAttachChange');if(_0x37c9e3['removeAttribute']('data-change-id',_0x38d0d3),_0x37c9e3['removeClass']('ck-revision-history-root-add',_0x38d0d3),_0x37c9e3['removeClass']('ck-revision-history-root-remove',_0x38d0d3),_0x37c9e3['removeClass']('ck-revision-history-root--active',_0x38d0d3),_0x34ff12){const _0x311f36=this['_getChangeFromId'](_0x34ff12);if(!_0x311f36)return null;_0x37c9e3['setAttribute']('data-change-id',_0x34ff12,_0x38d0d3),_0x37c9e3['addClass']('ck-revision-history-root-'+_0x311f36['type'],_0x38d0d3),this['activeChange']==_0x311f36&&_0x37c9e3['addClass']('ck-revision-history-root--active',_0x38d0d3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x57219c=>'revision-comment:'+_0x57219c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x9c581c=>'revision-suggestion:'+_0x9c581c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4767e2=>({'name':'suggestion:'+_0x4767e2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3bacee=>{const _0x31c17d=_0x3bacee['markerName']['split'](':')[0x1];return'insertion'!=_0x31c17d&&'deletion'!=_0x31c17d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x31c17d]};}}),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',(_0x289b77,_0x13ce84,_0x39a7a4)=>{const _0xdc5654=_0x39a7a4['mapper']['markerNameToElements'](_0x13ce84['markerName']);if(_0xdc5654){for(const _0x31f46a of _0xdc5654)_0x31f46a['is']('uiElement')&&(_0x39a7a4['mapper']['unbindElementFromMarkerName'](_0x31f46a,_0x13ce84['markerName']),_0x39a7a4['writer']['remove'](_0x31f46a));}},{'priority':'high'});}['_getChangeFromId'](_0x4745a5){return this['_changeIdToChange']['get'](_0x4745a5);}['_getViewForChange'](_0x3ff9b6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x3ff9b6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x9e59ed,_0x40cb4c,_0x49978f,_0x4164d9)=>{_0x4164d9&&this['_balloon']['remove'](_0x4164d9),_0x49978f&&(this['_balloon']['add']({'view':_0x49978f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x210eff=this['editor']['editing'],_0x10d163=this['_getChangeFromId'](_0x49978f['changeId']);let _0x4ce1f4;if(_0x10d163['data']['isOnRoot']){const _0x404da5=_0x210eff['view']['getDomRoot'](_0x10d163['rootName']);_0x4ce1f4=Array['from'](_0x404da5['getClientRects']());}else{const _0x5561f4=this['editor']['model']['markers']['get']('revision:'+_0x49978f['changeId']);_0x4ce1f4=Array['from'](_0x210eff['mapper']['markerNameToElements'](_0x5561f4['name']))['map'](_0x534788=>_0x210eff['view']['domConverter']['mapViewToDom'](_0x534788))['map'](_0x3d2a8b=>Array['from'](_0x3d2a8b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4ce1f4[0x0];return _0x4ce1f4['find'](_0x30c880=>_0x30c880['top']-0x3<=this['_activeViewTarget']['y']&&_0x30c880['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x30c880['left']-0x3<=this['_activeViewTarget']['x']&&_0x30c880['right']+0x3>=this['_activeViewTarget']['x'])||_0x4ce1f4[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x188efd,_0x3fa97c,_0x41f835,_0x470244)=>{this['activeView']=_0x41f835?this['_getViewForChange'](_0x41f835):null,this['editor']['model']['change'](()=>{const _0x28b313=this['editor']['editing'];_0x470244&&(_0x470244['data']['isOnRoot']?_0x28b313['view']['change'](_0x2d5ef4=>{_0x2d5ef4['removeClass']('ck-revision-history-root--active',_0x28b313['view']['document']['getRoot'](_0x470244['rootName']));}):_0x28b313['reconvertMarker']('revision:'+_0x470244['id'])),_0x41f835&&(_0x41f835['data']['isOnRoot']?_0x28b313['view']['change'](_0x4446bf=>{_0x4446bf['addClass']('ck-revision-history-root--active',_0x28b313['view']['document']['getRoot'](_0x41f835['rootName']));}):_0x28b313['reconvertMarker']('revision:'+_0x41f835['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x58c040,_0x392991)=>{if(this['activeChange'])return;const _0x590037=this['_findChangeIdFromDomTarget'](_0x392991['target']),_0x25c1fa=this['_changeIdToChange']['get'](_0x590037);_0x25c1fa?(this['_activeViewTarget']={'x':_0x392991['domEvent']['x'],'y':_0x392991['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x25c1fa)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2a0ec9,_0x3993a2)=>{const _0x167dbe=this['_findChangeIdFromDomTarget'](_0x3993a2['target']),_0x53486c=this['_changeIdToChange']['get'](_0x167dbe);_0x53486c?(this['_activeViewTarget']={'x':_0x3993a2['domEvent']['x'],'y':_0x3993a2['domEvent']['y']},_0x53486c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x53486c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5240f4){do{const _0x164830=_0x5240f4['getAttribute']('data-change-id');if(_0x164830)return _0x164830;_0x5240f4=_0x5240f4['parent'];}while(_0x5240f4);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5748f2=>{for(const _0x96c1b5 of this['editor']['model']['markers'])_0x5748f2['removeMarker'](_0x96c1b5);});}}function tt(_0x54a051,_0x14945e){return(_0x5e0361,_0x34aaff,_0x27c0ea)=>{if(!_0x27c0ea['consumable']['test'](_0x34aaff['markerRange'],_0x5e0361['name']))return;const _0x60fc2f=_0x34aaff['markerRange']['getWalker'](),_0xa1dbec=_0x34aaff['markerRange']['start'],_0x4b0a1f=_0x54a051['model']['schema'];let _0x1f9a7f=null,_0x4a93ef=null,_0x85111b=!0x1,_0x1e7100=!0x1;for(const _0x1429df of _0x60fc2f){const _0x1aeee4=_0x1429df['item'];_0x85111b=_0x85111b||_0x4b0a1f['isContent'](_0x1aeee4);const _0xa2cb01=_0x27c0ea['mapper']['toViewElement'](_0x1aeee4);if(_0xa2cb01&&_0xa2cb01['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1429df['type']&&(_0x4b0a1f['isBlock'](_0x1aeee4)&&!_0x4b0a1f['isLimit'](_0x1aeee4)&&(_0x1aeee4['nextSibling']||_0xa1dbec['isAtEnd']?_0x1f9a7f&&_0x1f9a7f['parent']==_0x1aeee4||(_0x1f9a7f=_0x1aeee4,_0x1673e8(_0x1429df['previousPosition']),_0x1e7100=!0x0):_0x4a93ef=_0x4a93ef||_0x1429df['previousPosition']));}function _0x1673e8(_0x3ff26d){const _0x32f0f6=_0x27c0ea['mapper']['toViewPosition'](_0x3ff26d),_0x1ac6ed=_0x27c0ea['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x14945e});_0x27c0ea['writer']['insert'](_0x32f0f6,_0x1ac6ed),_0x27c0ea['mapper']['bindElementToMarker'](_0x1ac6ed,_0x34aaff['markerName']);}_0x85111b||_0x1e7100||!_0x4a93ef||_0x1673e8(_0x4a93ef);};}class _t extends _0x260265{constructor(_0x11df5e){super(_0x11df5e);const _0x5ab118=_0x11df5e['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5ab118,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ab118,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x540264=this['editor'],_0xabc4dc=_0x540264['plugins']['get'](d),_0x26714=_0xabc4dc['isReady']?_0xabc4dc['diff']['newRevisionId']:null;_0x540264['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x26714);}['refresh'](){const {isReady:_0x6f0a26,isEnabled:_0x12c1f}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x6f0a26&&_0x12c1f;}}class yt extends _0x260265{['_step'];constructor(_0x45a6de,{direction:_0x349e4c}){super(_0x45a6de);const _0x39fa7d=_0x45a6de['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x349e4c?0x1:-0x1,this['listenTo'](_0x39fa7d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x39fa7d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x39fa7d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2eaa43=this['editor'],_0x44e6f9=_0x2eaa43['plugins']['get'](d),{isNavigationMode:_0x21dc60,currentChangeNumber:_0x3eb326}=_0x44e6f9;let _0x447602;if(_0x44e6f9['activeChange']=_0x21dc60?_0x44e6f9['diff']['changes']['get'](_0x3eb326+this['_step']):_0x44e6f9['diff']['changes']['first'],_0x44e6f9['activeChange']['data']['isOnRoot'])_0x447602=_0x2eaa43['editing']['view']['getDomRoot'](_0x44e6f9['activeChange']['rootName']);else{const _0x5a8fc3=_0x2eaa43['model']['markers']['get']('revision:'+_0x44e6f9['activeChange']['id']);_0x447602=_0x46d363(_0x2eaa43['editing'],_0x5a8fc3);}_0x32e163({'target':_0x447602,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x54e0b4,currentChangeNumber:_0x1e36da,numberOfChanges:_0x3d7b70,isReady:_0x30ad9f,isEnabled:_0x2b1be9}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2b1be9&&_0x30ad9f&&_0x3d7b70)&&(!_0x54e0b4||(0x1===this['_step']?_0x1e36da<_0x3d7b70-0x1:_0x1e36da>0x0));}}class ui extends ts{constructor(_0x3e16d5){super(_0x3e16d5);const _0x2120e7=this['bindTemplate'],_0x41aba3=new te(_0x3e16d5),_0x54a973=new te(_0x3e16d5);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',(_0x4eda80,_0x3b1fc7)=>_0x4eda80&&_0x3b1fc7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x375b86,_0x4342fc,_0x241989,_0x399e2f)=>{if(!_0x375b86)return R(_0x3e16d5,'Loading...');if(!_0x241989)return R(_0x3e16d5,'No\x20changes');const _0xe76d9a=R(_0x3e16d5,'NUMBER_OF_CHANGES',_0x241989);return _0x399e2f?R(_0x3e16d5,'X_OF_Y_CHANGES',[_0x4342fc+0x1,_0x241989]):_0xe76d9a;}),_0x41aba3['set']({'label':R(_0x3e16d5,'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'}),_0x54a973['set']({'label':R(_0x3e16d5,'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'}),_0x41aba3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x54a973['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x41aba3['on']('execute',()=>this['fire']('execute','backward')),_0x54a973['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',_0x2120e7['if']('_isStatusLabelVisible','ck-hidden',_0x468835=>!_0x468835)]},'children':[{'text':_0x2120e7['to']('isNavigationMode',_0x2fbf16=>_0x2fbf16?R(_0x3e16d5,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3e16d5,'Total')+':\x20')}]},{'text':_0x2120e7['to']('_statusText')}]},new _0xab97bf(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x41aba3,_0x54a973]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x5b577d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x39d000=this['editor']['editing']['view'];_0x39d000['change'](_0x51edbe=>{for(const _0x2071da of _0x39d000['document']['roots'])_0x51edbe['addClass'](le,_0x2071da);});}['hide'](){const _0x59e933=this['editor']['editing']['view'];_0x59e933['change'](_0x33ea5a=>{for(const _0x331521 of _0x59e933['document']['roots'])_0x33ea5a['removeClass'](le,_0x331521);});}}class m extends _0x5b577d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x3b0263=this['editor'],_0x3b774e=_0x3b0263['plugins']['get'](d),_0x13c8a2=_0x3b0263['plugins']['get'](de);_0x3b0263['ui']['componentFactory']['add']('exitToEditing',_0x230215=>{const _0x123ab7=new te(_0x230215);return _0x123ab7['set']({'label':R(_0x230215,'Back\x20to\x20editing'),'icon':_0x105b1a['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x123ab7,'execute',()=>{_0x3b0263['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x123ab7;}),_0x3b0263['ui']['componentFactory']['add']('restoreRevision',_0x5f589d=>{const _0x214007=new te(_0x5f589d);return _0x214007['set']({'label':R(_0x5f589d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x214007['bind']('isEnabled')['to'](_0x3b0263['commands']['get']('restoreRevision')),this['listenTo'](_0x214007,'execute',()=>_0x3b0263['execute']('restoreRevision')),_0x214007;}),_0x3b0263['ui']['componentFactory']['add']('changesNavigation',_0xfc4750=>{const _0xd73d8b=new ui(_0xfc4750),_0x2e1487=_0x3b0263['commands']['get']('showPreviousChange'),_0x94465e=_0x3b0263['commands']['get']('showNextChange');return _0xd73d8b['bind']('isBackwardNavigationEnabled')['to'](_0x2e1487,'isEnabled'),_0xd73d8b['bind']('isForwardNavigationEnabled')['to'](_0x94465e,'isEnabled'),_0xd73d8b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3b774e),this['listenTo'](_0xd73d8b,'execute',(_0xaf585a,_0x801b4f)=>{_0x3b0263['execute']('forward'===_0x801b4f?'showNextChange':'showPreviousChange');}),_0xd73d8b;}),_0x13c8a2['show'](),_0x3b774e['on']('change:isReady',(_0x592ee7,_0x59ffca,_0xa949c2)=>{_0xa949c2?_0x13c8a2['hide']():_0x13c8a2['show']();});}}class pt extends _0x11290e{['_resizeObserver']=null;constructor(_0x71fe68,_0x5adee5){super(_0x71fe68,_0x5adee5);const _0x423429=this['bindTemplate'];this['set']({'label':R(_0x71fe68,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x71fe68,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x423429['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 _0x2f2d19=this['fieldView']['element'];this['_tooltipString']=_0x2f2d19['scrollWidth']>_0x2f2d19['clientWidth']&&_0x2f2d19['value']||'';}}class ri extends ts{constructor(_0x56cfdd,_0x1d1604,_0x32b91a){super(_0x56cfdd);const _0x126b33=new _0x4f1258();_0x126b33['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 _0x443441=['ck','ck-revision-history-sidebar__revision-author'];_0x32b91a&&_0x443441['push']('ck-revision-history-sidebar__revision-author_creator');const _0xf21f7d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x56cfdd,_0x32b91a?'Revision\x20creator':'Revision\x20author')},'children':[_0x126b33,_0x1d1604['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x443441},'children':_0xf21f7d});}}function oi(_0x209787,_0x3a0d64){const _0x2147ab=_0x209787['bindTemplate'],_0x3d6b70=_0x209787['locale'],_0x565d6a=_0x4c94ed(_0x3d6b70);_0x565d6a['panelPosition']='sw';const _0x15b7c4=function(_0x11c748,_0x5927aa){const _0x2914fc=function(_0x3b2e9b,_0x261274){const _0x237742=_0x3b2e9b['locale'],_0x20c08b={'Compare\x20against\x20selected':R(_0x237742,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x237742,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x237742,'Restore\x20this\x20revision')};return _0x261274['map'](_0x43555b=>{const _0x47cf14=_0x20c08b[_0x43555b['name']];return _0x47cf14&&_0x47cf14!==_0x43555b['name']&&(_0x43555b['name']=_0x47cf14),_0x43555b;});}(_0x11c748,_0x5927aa),_0x4fc4a1=new _0x5a5c64();for(const _0x478704 of _0x2914fc){const _0x403161={'type':'button','model':new _0x31a29d({'label':_0x478704['name'],'class':_0x478704['class'],'withText':!0x0,'role':'menuitem','_action':_0x478704['action']})};_0x403161['model']['bind']('isEnabled')['to'](_0x11c748,'isActionsDropdownOpen',_0x3de69d=>'function'!=typeof _0x478704['isEnabled']||(!_0x3de69d||_0x478704['isEnabled'](_0x11c748))),_0x4fc4a1['add'](_0x403161);}return _0x4fc4a1;}(_0x209787,_0x3a0d64);return _0x209787['bind']('isActionsDropdownOpen')['to'](_0x565d6a,'isOpen'),_0x565d6a['buttonView']['set']({'label':R(_0x3d6b70,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x105b1a['threeVerticalDots']}),_0x565d6a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2147ab['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2147ab['to'](_0x202853=>_0x202853['stopPropagation']())}}),_0x565d6a['on']('execute',_0x56d8e6=>{_0x209787['isReady']&&'function'==typeof _0x56d8e6['source']['_action']&&_0x56d8e6['source']['_action'](_0x209787);}),to(_0x565d6a,_0x15b7c4,{'role':'menu'}),_0x565d6a['listenTo'](_0x209787,'change:isActionsDropdownOpen',(_0xc0d187,_0x104d2d,_0x55e9f9)=>{if(_0x55e9f9)for(const _0x5367de of _0x565d6a['listView']['items']){const _0x2f9934=_0x5367de['children']['first'],_0x527fa0=_0x3a0d64['find'](_0x2afb57=>_0x2afb57['action']===_0x2f9934['_action'])['isVisible'];_0x5367de['isVisible']=void 0x0===_0x527fa0||_0x527fa0(_0x209787);}}),_0x565d6a;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x542d03,_0x7c0bf9,_0x5031cc,_0x207049){super(_0x542d03);const _0x29885d=this['bindTemplate'],_0x11d776=function(_0x5d62d1,_0x2c3e60){const _0x466455=Array['from'](_0x2c3e60['authors'])['filter'](_0x4037cc=>_0x4037cc!=_0x2c3e60['creator']);return _0x2c3e60['creator']&&_0x466455['unshift'](_0x2c3e60['creator']),_0x466455['map'](_0x2ddd45=>new ri(_0x5d62d1,_0x2ddd45,_0x2ddd45==_0x2c3e60['creator']));}(_0x542d03,_0x7c0bf9);this['id']=_0x7c0bf9['id'],this['_revision']=_0x7c0bf9,this['_requireRevisionName']=_0x207049,this['bind']('name','createdAt')['to'](_0x7c0bf9),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xec4406=>{return _0x4a3c74=_0x542d03['uiLanguage'],(_0x33fd61=_0xec4406)['toLocaleDateString'](_0x4a3c74,{'month':'long','day':'numeric'})+',\x20'+_0x33fd61['toLocaleTimeString'](_0x4a3c74,{'hour':'numeric','minute':'numeric'});var _0x4a3c74,_0x33fd61;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x542d03,_0x5f48cb),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x509b9d=>_0x509b9d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x26a32e,_0x2b9edb)=>_0x26a32e&&_0x2b9edb),this['revisionActionsView']=_0x5031cc&&_0x5031cc['length']?oi(this,_0x5031cc):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x29885d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x29885d['if']('isEnabled','ck-disabled',_0x29ccbf=>!_0x29ccbf),_0x29885d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x29885d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x29885d['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':_0x29885d['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':_0x11d776}]},this['revisionActionsView']],'on':{'click':_0x29885d['to'](_0x37d7ad=>{_0x37d7ad['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1b8b63=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1b8b63,'change',()=>{this['_requireRevisionName']&&!_0x1b8b63['value']||this['fire']('setName',{'id':this['id'],'name':_0x1b8b63['value']}),_0x1b8b63['value']||(_0x1b8b63['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(_0x254cd0,_0x4e8d54){const _0xb07add=_0x5d0133['fromJSDate'](_0x254cd0)['setLocale'](_0x4e8d54),_0x58af20=_0x5d0133['local'](),_0x160d8f=_0x58af20['minus']({'days':0x1})['startOf']('day');let _0x5a90d6,_0x16bfec;return _0xb07add['hasSame'](_0x58af20,'day')?(_0x5a90d6=_0xb07add['startOf']('day')['toJSDate'](),_0x16bfec=_0xb07add['toRelativeCalendar']()):_0xb07add['hasSame'](_0x160d8f,'day')?(_0x5a90d6=_0x160d8f['toJSDate'](),_0x16bfec=_0xb07add['toRelativeCalendar']()):_0xb07add['hasSame'](_0x58af20,'week')?(_0x5a90d6=_0xb07add['startOf']('week')['toJSDate'](),_0x16bfec=_0xb07add['weekdayLong']||''):_0xb07add['hasSame'](_0x58af20,'year')?(_0x5a90d6=_0xb07add['startOf']('month')['toJSDate'](),_0x16bfec=_0xb07add['monthLong']||''):(_0x5a90d6=_0xb07add['startOf']('year')['toJSDate'](),_0x16bfec=String(_0xb07add['year'])),{'startDate':_0x5a90d6,'localizedPeriodName':_0x16bfec};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xaecb99,_0x49320c,_0x114fe8,_0x1e6998){super(_0xaecb99);const _0x18ffee=mi(_0x49320c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x49320c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x114fe8,this['_requireRevisionName']=_0x1e6998,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':_0x18ffee}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x176e8a){const _0x14520c=new hi(this['locale'],_0x176e8a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x14520c);}['removeRevision'](_0x29a03f){const _0x379b07=this['revisionViews']['find'](_0x3906a5=>_0x3906a5['id']===_0x29a03f['id']);this['revisionViews']['remove'](_0x379b07);}}class as extends ts{constructor(_0x5481b0){super(_0x5481b0);const _0x54109c=new _0x4f1258();_0x54109c['content']=_0x105b1a['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x54109c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x5481b0,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x115a31,_0x11e0cb,_0x5f2a85,_0x1a39b5){super(_0x115a31);const _0x25ce2c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x11e0cb,this['_revisionActions']=_0x5f2a85,this['_requireRevisionName']=_0x1a39b5,this['on']('select',(_0x187513,_0x4dbac6)=>{this['fire']('revisionSelected',_0x4dbac6);}),this['on']('setName',(_0x117b63,_0x3fd809)=>{this['fire']('revisionSetName',_0x3fd809);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x115a31),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x25ce2c['if']('isEnabled','ck-disabled',_0xa2be7b=>!_0xa2be7b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2e996d of this['_revisions'])this['_addRevision'](_0x2e996d);this['_revisions']['on']('add',(_0x2c8a89,_0x2c412a)=>{this['_addRevision'](_0x2c412a);}),this['_revisions']['on']('remove',(_0x2e3659,_0x29e5e9)=>{this['_removeRevision'](_0x29e5e9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5b5219=>_0x5b5219['revisionViews']['map'](_0x128505=>_0x128505))['flat']();}['selectRevision'](_0x4ec732){for(const _0x4ec9af of this['revisionViews'])_0x4ec732&&_0x4ec732['id']===_0x4ec9af['id']?_0x4ec9af['select']():_0x4ec9af['deselect']();}['highlightRevisions'](_0x3ea178){for(const _0x1e0c93 of this['revisionViews'])_0x3ea178['some'](({id:_0x5ceaff})=>_0x5ceaff===_0x1e0c93['id'])?_0x1e0c93['highlight']():_0x1e0c93['unhighlight']();}['_addRevision'](_0x27ed33){const _0x4a3e74=mi(_0x27ed33['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x414cbd=this['timePeriodViews']['get'](0x0);_0x414cbd&&_0x414cbd['startDate']['getTime']()===_0x4a3e74['getTime']()||(_0x414cbd=new vi(this['locale'],_0x4a3e74,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x414cbd)),_0x414cbd['addRevision'](_0x27ed33);}['_removeRevision'](_0x21ae2c){const _0x1ee2de=mi(_0x21ae2c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1ee2de)['removeRevision'](_0x21ae2c);}['_getTimePeriodViewByStartDate'](_0x3e2135){return this['timePeriodViews']['find'](_0xdb3564=>_0xdb3564['startDate']['getTime']()===_0x3e2135['getTime']());}}class g extends _0x5b577d{['_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(_0x2c20d0){super(_0x2c20d0),this['_revisionViewer']=_0x2c20d0['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1447c0=this['_revisionsRepository']['_revisions'],_0x56fd7b=this['_createRevisionActions'](),_0x30d3e7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x1447c0,_0x56fd7b,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',(_0x26355b,_0x58bf06)=>{_0x58bf06['revisionViews']['on']('add',(_0x5224f3,_0x1c1f7d)=>{_0x1c1f7d['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)),_0x30d3e7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3e0477=this['_revisionsRepository']['getRevision'](0x0);if(_0x3e0477){const _0x2f597a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3e0477['id']);this['_revisionViewer']['compare'](_0x3e0477,_0x2f597a);}}['_handleRevisionSelected'](_0x2261c0,_0x5b90fe){const _0x40c27d=this['_revisionsRepository']['getRevision'](_0x5b90fe['id']),_0x5443a4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x40c27d['id']);this['_revisionViewer']['compare'](_0x40c27d,_0x5443a4);}['_handleRevisionSetName'](_0x54c9dc,_0x13cc2f){this['_revisionsRepository']['getRevision'](_0x13cc2f['id'])['setName'](_0x13cc2f['name']);}['_handleDiffChange'](_0x1f068b,_0x16f979,_0x6e6dbe){const _0x11e7d4=this['_revisionsRepository']['getRevisionsInDiff'](_0x6e6dbe);_0x11e7d4['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x11e7d4),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x11e7d4[0x0]));}['_createRevisionActions'](){const _0xcff383=this['editor'],_0x32850b=g['availableRevisionActions'],_0x2e5cda=_0xcff383['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2e5cda['length'])return _0x2e5cda['map'](_0x377257=>{const _0x15b16c='string'==typeof _0x377257?Object['assign']({},_0x32850b[_0x377257]):_0x377257;return _0x15b16c['action']=_0x15b16c['action']['bind'](this,_0xcff383),_0x15b16c['isVisible']&&(_0x15b16c['isVisible']=_0x15b16c['isVisible']['bind'](this,_0xcff383)),_0x15b16c;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x56ca5f},_0x13391e)=>{const _0x5d5ea3=_0x56ca5f['get'](d),_0x47646a=_0x5d5ea3['repository'];let _0x3f2fac=_0x5d5ea3['diff']['newRevisionId'],_0x56a471=_0x13391e['id'];_0x47646a['getIndex'](_0x3f2fac)>_0x47646a['getIndex'](_0x56a471)&&([_0x3f2fac,_0x56a471]=[_0x56a471,_0x3f2fac]),_0x5d5ea3['compare'](_0x3f2fac,_0x56a471);},'isVisible':({plugins:_0x31cfa4},_0x937fcd)=>{const _0x12a218=_0x31cfa4['get'](d);return!(_0x12a218['repository']['getRevisionsInDiff'](_0x12a218['diff'])['length']>0x2)&&!_0x937fcd['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3a9e94,{id:_0x3fc4da})=>{_0x3a9e94['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3fc4da);},'isVisible':({plugins:_0x2aa0d9},_0x8ff1bd)=>!!_0x2aa0d9['get'](d)['repository']['getLaterVisibleRevision'](_0x8ff1bd['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4ef239},{id:_0x262917,revisionNameView:_0x343d20})=>{const _0x13e92d=_0x4ef239['get'](d),_0x55815f=_0x13e92d['repository']['getEarlierVisibleRevision'](_0x262917);_0x13e92d['compare'](_0x262917,_0x55815f),_0x343d20['focus'](),_0x343d20['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4c0c33,_0x479dbe){super(_0x4c0c33),this['_view']=_0x479dbe,this['_toolbarConfig']=ht(_0x4c0c33['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x1f7e6a){const _0x181e87=this['editor'],_0x30420b=this['view'],_0x3bc374=_0x181e87['editing']['view'],_0x5066eb=_0x30420b['editable'],_0x108bb3=_0x3bc374['document']['getRoot']();_0x5066eb['name']=_0x108bb3['rootName'],_0x30420b['render']();const _0x1952ae=_0x5066eb['element'];this['setEditableElement'](_0x5066eb['name'],_0x1952ae),_0x30420b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3bc374['attachDomRoot'](_0x1952ae),this['_elementReplacer']['replace'](_0x1f7e6a,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xc72256=this['view'],_0x1acb87=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1acb87['detachDomRoot'](_0xc72256['editable']['name']),_0xc72256['destroy']();}['_initToolbar'](){const _0x1204cf=this['view'];_0x1204cf['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1204cf['stickyPanel']['limiterElement']=_0x1204cf['element'],_0x1204cf['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5af7da})=>_0x5af7da),_0x1204cf['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1204cf['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x47ad00,_0x46c280,_0x388e3b={}){super(_0x47ad00),this['stickyPanel']=new lt(_0x47ad00),this['toolbar']=new nt(_0x47ad00,{'shouldGroupWhenFull':_0x388e3b['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x47ad00,_0x46c280);}['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(_0x129dd8,_0x3fe8d3){super(_0x3fe8d3),this['sourceElement']=_0x129dd8,this['model']['document']['createRoot']();const _0x1dbe49=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x1dbe49);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x179d93,_0x148c72){const _0x2a3e15=new this(_0x179d93,_0x148c72);return await _0x2a3e15['initPlugins'](),await _0x2a3e15['ui']['init'](_0x179d93),await _0x2a3e15['data']['init'](_0x2a3e15['config']['get']('initialData')||''),_0x2a3e15['fire']('ready'),_0x2a3e15;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5b577d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42f709){function _0x15c684(_0x136122){return _0x136122['map'](_0x2162a4=>String['fromCharCode'](_0x2162a4))['join']('');}super(_0x42f709),this['result']='end',_0x42f709[_0x15c684([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15c684([0x76,0x69,0x65,0x77])][_0x15c684([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15c684([0x61,0x75,0x74,0x6f]),_0x42f709[_0x15c684([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x15c684([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15c684([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x15c684([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x15c684([0x6f,0x6b])});}}class H extends _0x5b577d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xc62673){if(super(_0xc62673),!this['editor']['config']['get']('revisionHistory'))throw new _0x8b8fdd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xa3b242=>this['_showRevisionViewer']({..._0xa3b242,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2ddafc=>this['_closeRevisionViewer'](_0x2ddafc)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x59d4b1=>this['_restoreRevision'](_0x59d4b1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3ffb2c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3ffb2c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xb89cf3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xb89cf3);}['getRevision'](_0x102172){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x102172);}['getRevisions'](_0x1fdee5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1fdee5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3c4d6c=this['editor'],_0x4ab783=_0xfd0b49(_0x3c4d6c,p),_0x3e3f1b=_0x3c4d6c['plugins']['get']('RevisionTracker'),_0x3783d9=_0x3c4d6c['plugins']['get']('Users')['users'];return _0x4ab783['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4ab783['lazyRoots'],(_0x4ab783['plugins']['push'](k,d,m,class extends _0x5b577d{static get['requires'](){return[d,'Users'];}['init'](){const _0x38078d=this['editor']['plugins']['get']('Users');for(const _0x204903 of _0x3783d9)_0x204903['isAnonymous']||_0x38078d['getUser'](_0x204903['id'])||_0x38078d['addUser'](_0x204903);const _0x3ab2fe=_0x3e3f1b['repository']['getRevisions']();let _0x580657=null;const _0x20bdeb=this['editor']['plugins']['get']('RevisionViewer');_0x20bdeb['adapter']=_0x3e3f1b['adapter'],_0x20bdeb['bind']('isEnabled')['to'](_0x3e3f1b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3c4d6c,'isReadOnly',_0x2131e2=>!_0x2131e2);for(const _0x460351 of _0x3ab2fe){const _0x485734=null===_0x460351['creator'];if(_0x485734&&_0x460351['toVersion']===_0x460351['fromVersion'])continue;const _0x5e1a04=_0x460351['toJSON']();_0x20bdeb['addRevisionData'](_0x5e1a04,(_0xda544c,_0x4ed172,_0x4adfe4)=>{if(_0x485734){if(_0x580657)_0x580657['_update'](_0xda544c,_0x4ed172);else{if(!_0x4ed172){const _0x33de85=_0x4adfe4['toJSON']();_0x33de85['id']=_0x4a2e00(),_0x3e3f1b['saveRevision'](_0x33de85,_0x4adfe4['toVersion'])['then'](_0x4e78fe=>{_0x580657=_0x4e78fe;});}}}else _0x460351['_update'](_0xda544c,_0x4ed172);});}}},g),_0x4ab783);}['_enhanceShowRevisionViewerCallback'](){const _0x15dc38=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1e85c8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x19d280=this['editor']['plugins']['get']('Autosave');await _0x19d280['save']();}else await _0x1e85c8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x17168e=this['editor']['plugins']['get']('Dialog');_0x17168e['isOpen']&&_0x17168e['hide']();}const _0x1b76dc=this['_getRevisionViewerEditorConfig']();return _0x15dc38(_0x1b76dc)['then'](_0x423f54=>{return(this['_viewerEditor']=_0x423f54,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x423f54;})['catch'](_0x196c50=>(console['error'](_0x196c50),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x180acf=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'](),_0x180acf(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x172382=this['editor']['plugins']['get']('Annotations');_0x172382['refreshVisibility'](),_0x172382['refreshPositioning']();}})));}['_showRevisionViewer'](_0x19deb2){const _0x41b4fe=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2f519a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3b9fa0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3b9fa0,_0x19deb2)['then'](_0x1b881e=>(_0x2f519a['style']['display']='block',_0x41b4fe['style']['display']='none',_0x1b881e));}['_closeRevisionViewer'](_0x30f0eb){const _0x3da0a7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3da0a7['style']['display']='',_0x30f0eb['destroy']();}async['_restoreRevision'](_0x135593){const _0x187208=this['editor'],_0x2554f0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xc68281=_0x187208['plugins']['get']('RevisionTracker'),_0x20bcb7=_0x2554f0['repository']['getRevision'](_0x135593);let _0x3b6b30,_0x46c97d,_0x45f24f;try{_0x3b6b30=await _0x2554f0['getRevisionData'](_0x20bcb7),_0x46c97d=await _0x2554f0['getRevisionRootsAttributes'](_0x20bcb7);}catch(_0x2cca57){return void console['error'](_0x2cca57);}_0x187208['model']['change'](_0x501c30=>{for(const _0x42076f of Array['from'](_0x187208['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x501c30['removeMarker'](_0x42076f);}),_0x2554f0['isReady']=!0x1,_0x187208['model']['enqueueChange'](_0x164799=>{_0x164799['setSelection'](null),_0x164799['removeSelectionAttribute'](_0x187208['model']['document']['selection']['getAttributeKeys']());const _0x11ac2c=Object['keys'](_0x3b6b30);for(const _0x4bda62 of _0x187208['model']['document']['roots'])'$graveyard'!=_0x4bda62['rootName']&&_0x4bda62['isAttached']()&&!_0x11ac2c['includes'](_0x4bda62['rootName'])&&_0x164799['detachRoot'](_0x4bda62);for(const _0x49bfba of _0x11ac2c){let _0x2f7bd4=_0x187208['model']['document']['getRoot'](_0x49bfba);_0x2f7bd4&&_0x2f7bd4['isAttached']()||(_0x2f7bd4=_0x164799['addRoot'](_0x49bfba));const _0x1c5e4d=_0x46c97d[_0x49bfba],_0x12fdc5=Object['keys'](_0x1c5e4d),_0x3eed51=_0x3b6b30[_0x49bfba];for(const _0x2c19eb of _0x2f7bd4['getAttributeKeys']())_0x12fdc5['includes'](_0x2c19eb)||_0x164799['removeAttribute'](_0x2c19eb,_0x2f7bd4);for(const _0x5169d3 of _0x12fdc5)_0x164799['setAttribute'](_0x5169d3,_0x46c97d[_0x49bfba][_0x5169d3],_0x2f7bd4);_0x164799['remove'](_0x164799['createRangeIn'](_0x2f7bd4)),_0x164799['insert'](_0x187208['data']['parse'](_0x3eed51,_0x2f7bd4),_0x2f7bd4,0x0);}});const _0x4676ee=R(_0x187208['locale'],'Restored');if(_0x20bcb7['name'])_0x45f24f=-0x1==_0x20bcb7['name']['indexOf'](_0x4676ee)?_0x4676ee+':\x20'+_0x20bcb7['name']:_0x20bcb7['name'];else _0x45f24f=_0x4676ee+':\x20'+(_0x20bcb7['createdAt']['toLocaleDateString'](_0x187208['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x20bcb7['createdAt']['toLocaleTimeString'](_0x187208['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xc68281['saveRevision']({'name':_0x45f24f}),_0x2554f0['isReady']=!0x0,_0x187208['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};
|