@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250419.0 → 0.0.0-nightly-20250421.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +11 -11
- package/src/revisionsrepository.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x295186(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1700e5){super(),this['id']=_0x1700e5['id']||_0x50688e(),this['creator']=_0x1700e5['creator']||null,this['authors']=_0x1700e5['authors']||[],this['diffData']=_0x1700e5['diffData']||null,this['toVersion']=_0x1700e5['toVersion']||0x0,this['fromVersion']=_0x1700e5['fromVersion']||0x0,this['set']('name',_0x1700e5['name']||''),this['set']('createdAt',_0x1700e5['createdAt']||new Date()),this['set']('attributes',_0x1700e5['attributes']||{});}['setName'](_0x21ee56){this['_update']({'name':_0x21ee56});}['setAttribute'](_0x3ea403,_0x31bf8a){const _0x5b5ca4=_0x3656c2(this['attributes']);_0x73a979(_0x5b5ca4,_0x3ea403,_0x31bf8a),this['_update']({'attributes':_0x5b5ca4});}['removeAttribute'](_0x2455dd){const _0x1bf398=_0x3656c2(this['attributes']);_0x179e26(_0x1bf398,_0x2455dd),this['_update']({'attributes':_0x1bf398});}['_update'](_0x13f7d5,_0x1e4988=!0x1){let _0x2a9bb6=!0x1;const _0x30f219={'id':this['id']},_0x756776=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x15e5c5 of _0x756776){const _0x39f44d=_0x13f7d5[_0x15e5c5];void 0x0!==_0x39f44d&&_0x39f44d!==this[_0x15e5c5]&&(this[_0x15e5c5]=_0x39f44d,_0x30f219[_0x15e5c5]=_0x39f44d,_0x2a9bb6=!0x0);}_0x2a9bb6&&(_0x30f219['authors']&&(_0x30f219['authorsIds']=_0x30f219['authors']['map'](_0x3f3ead=>_0x3f3ead['id']),delete _0x30f219['authors']),this['fire']('_update',_0x30f219,_0x1e4988));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3e8e8e=>_0x3e8e8e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4fedf0{['_revisions'];static get['requires'](){return[_0x4b58b7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x79174){super(_0x79174),this['_revisions']=new _0x428f3c();}['afterInit'](){!async function(_0x116720){const _0x4f0ae2=_0x446c0f([0x44,0x65,0x63,0x4a,0x4c,0x4d,0x62,0x4b,0x72,0x33,0x38,0x32,0x58,0x7a,0x5a,0x57,0x37,0x56,0x67,0x42,0x47,0x71,0x34,0x39,0x49,0x6f,0x36,0x6a,0x55,0x61,0x76,0x74,0x78,0x53,0x50,0x66,0x6d,0x68,0x6c,0x64,0x35,0x51,0x43,0x4e,0x46,0x48,0x79,0x73,0x54,0x59,0x70,0x45,0x69,0x30,0x41,0x6b,0x75,0x6e,0x77,0x52,0x4f,0x31]),_0x25596a=0xeb829,_0x23bb84=0x31ab1a96,_0x3f7e6a=0x31ac7fee^_0x23bb84,_0x160b64=window[_0x446c0f([0x44,0x61,0x74,0x65])][_0x446c0f([0x6e,0x6f,0x77])](),_0x561706=_0x116720[_0x446c0f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36ebbc=new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd742a2=>{_0x561706[_0x446c0f([0x6f,0x6e,0x63,0x65])](_0x446c0f([0x72,0x65,0x61,0x64,0x79]),_0xd742a2);}),_0x159c5c={[_0x446c0f([0x6b,0x74,0x79])]:_0x446c0f([0x45,0x43]),[_0x446c0f([0x75,0x73,0x65])]:_0x446c0f([0x73,0x69,0x67]),[_0x446c0f([0x63,0x72,0x76])]:_0x446c0f([0x50,0x2d,0x32,0x35,0x36]),[_0x446c0f([0x78])]:_0x446c0f([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]),[_0x446c0f([0x79])]:_0x446c0f([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]),[_0x446c0f([0x61,0x6c,0x67])]:_0x446c0f([0x45,0x53,0x32,0x35,0x36])},_0xb48e68=_0x561706[_0x446c0f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x446c0f([0x67,0x65,0x74])](_0x446c0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbcbd24(){let _0x6ca016,_0x1f40d8=null,_0x2add3d=null;try{if(_0xb48e68==_0x446c0f([0x47,0x50,0x4c]))return _0x446c0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6ca016=_0x4ea75c(),!_0x6ca016)return _0x446c0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6ca016[_0x446c0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2add3d=_0x441393(_0x6ca016[_0x446c0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6ca016[_0x446c0f([0x6a,0x74,0x69])])),await _0x1e47a1()?_0x13b32c()?_0x4d0d47()?_0x446c0f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bec7c()?(_0x6ca016[_0x446c0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x446c0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f40d8=_0x2f2613(_0x446c0f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6ca016[_0x446c0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x446c0f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f40d8=_0x2f2613(_0x446c0f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x352460()):_0x446c0f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x446c0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x446c0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x55415d){return _0x446c0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d0d47(){const _0x2427dc=[_0x446c0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x446c0f([0x74,0x72,0x69,0x61,0x6c])][_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6ca016[_0x446c0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x160b64/0x3e8:0xe10*_0x3f7e6a;return _0x6ca016[_0x446c0f([0x65,0x78,0x70])]<_0x2427dc;}function _0x13b32c(){const _0x4238df=_0x6ca016[_0x446c0f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4238df)return!0x1;if(_0x4238df[_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x446c0f([0x2a])))return!0x0;if(_0x4238df[_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x446c0f([0x52,0x48])))return!0x0;if(_0x4238df[_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x446c0f([0x52,0x52,0x48]))){if(_0x3de32b())return!0x0;if(_0x1701aa()||_0x2c9f16())return!0x0;}return!0x1;}function _0x2bec7c(){const _0x5e9685=_0x6ca016[_0x446c0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e9685||0x0==_0x5e9685[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x124614}=new URL(window[_0x446c0f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e9685[_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x124614))return!0x0;const _0x1997c2=_0x124614[_0x446c0f([0x73,0x70,0x6c,0x69,0x74])](_0x446c0f([0x2e]));return _0x5e9685[_0x446c0f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x871e1b=>_0x871e1b[_0x446c0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x446c0f([0x2a])))[_0x446c0f([0x6d,0x61,0x70])](_0x4b8271=>_0x4b8271[_0x446c0f([0x73,0x70,0x6c,0x69,0x74])](_0x446c0f([0x2e])))[_0x446c0f([0x73,0x6f,0x6d,0x65])](_0x5a25cc=>_0x1997c2[_0x446c0f([0x65,0x76,0x65,0x72,0x79])]((_0xdc005,_0x37638c)=>_0x5a25cc[_0x37638c]===_0xdc005||_0x5a25cc[_0x37638c]===_0x446c0f([0x2a])));}function _0x352460(){return _0x1f40d8&&_0x2add3d?new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2908ec,_0x6a7bd1)=>{_0x1f40d8[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x2908ec,_0x6a7bd1),_0x2add3d[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x24f665=>{_0x24f665!=_0x446c0f([0x56,0x61,0x6c,0x69,0x64])&&_0x2908ec(_0x24f665);},_0x6a7bd1);}):_0x1f40d8||_0x2add3d||_0x446c0f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x441393(_0x2f8556,_0x44d774){return new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a0907=>{if(_0xd87b3a())return _0x1a0907(_0x446c0f([0x56,0x61,0x6c,0x69,0x64]));_0x7ed89(),_0x561706[_0x446c0f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x446c0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7e3c2f=!0x1;const _0x5ef98f=_0x50688e();function _0x5160d2(_0x5ae27c){return!!_0x5ae27c&&(typeof _0x5ae27c===_0x446c0f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ae27c===_0x446c0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ae27c[_0x446c0f([0x74,0x68,0x65,0x6e])]===_0x446c0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ae27c[_0x446c0f([0x63,0x61,0x74,0x63,0x68])]===_0x446c0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38eb60(_0x433f44){_0xfa1206(_0x433f44)[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x223ee0=>{if(!_0x223ee0||_0x223ee0[_0x446c0f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x446c0f([0x6f,0x6b]))return _0x446c0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22875a(_0x4ae47a(_0x5ef98f+_0x44d774))!=_0x223ee0[_0x446c0f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x446c0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x446c0f([0x56,0x61,0x6c,0x69,0x64]);})[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x46993b=>(_0x3ebe19(),_0x46993b),()=>{const _0x4f3ecd=_0x33220e();return null==_0x4f3ecd?(_0x3ebe19(),_0x446c0f([0x56,0x61,0x6c,0x69,0x64])):_0x446c0f(_0x160b64-_0x4f3ecd>(0x15a79e96^_0x23bb84)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x1a0907)[_0x446c0f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a0907(_0x446c0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55407f=0x319df416^_0x23bb84;function _0x3ebe19(){const _0x112af0=_0x446c0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x22875a(_0x4ae47a(_0x2f8556)),_0x929332=_0x52f211(_0x22875a(window[_0x446c0f([0x4d,0x61,0x74,0x68])][_0x446c0f([0x63,0x65,0x69,0x6c])](_0x160b64/_0x55407f)));window[_0x446c0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x446c0f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x112af0,_0x929332);}function _0x33220e(){const _0x10aa10=_0x446c0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x22875a(_0x4ae47a(_0x2f8556)),_0x5596d0=window[_0x446c0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x446c0f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10aa10);return _0x5596d0?window[_0x446c0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52f211(_0x5596d0),0x10)*_0x55407f:null;}function _0xfa1206(_0x3e4c3c){return new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x169b74,_0x5f5c4f)=>{_0x3e4c3c[_0x446c0f([0x74,0x68,0x65,0x6e])](_0x169b74,_0x5f5c4f),window[_0x446c0f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f5c4f,0x31aace56^_0x23bb84);});}}_0x561706[_0x446c0f([0x6f,0x6e])](_0x446c0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b82ef,_0x5f5b26)=>{if(_0x5f5b26[0x0]!=_0x2f8556)return _0x1a0907(_0x446c0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f5b26[0x1]={..._0x5f5b26[0x1],[_0x446c0f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ef98f};},{[_0x446c0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x446c0f([0x68,0x69,0x67,0x68])}),_0x561706[_0x446c0f([0x6f,0x6e])](_0x446c0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x940bc2=>{_0x5160d2(_0x940bc2[_0x446c0f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7e3c2f=!0x0,_0x38eb60(_0x940bc2[_0x446c0f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x446c0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x446c0f([0x6c,0x6f,0x77])}),_0x36ebbc[_0x446c0f([0x74,0x68,0x65,0x6e])](()=>{_0x7e3c2f||_0x1a0907(_0x446c0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd87b3a(){return _0x561706[_0x446c0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x446c0f([0x76,0x69,0x65,0x77])][_0x446c0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x446c0f([0x61,0x75,0x74,0x6f]);}function _0x7ed89(){_0x561706[_0x446c0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x446c0f([0x76,0x69,0x65,0x77])][_0x446c0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x446c0f([0x61,0x75,0x74,0x6f]);}}function _0x2f2613(_0x26c437){const _0x3a9688=[new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c9582=>setTimeout(_0x2c9582,0x31a2245a^_0x23bb84)),_0x36ebbc[_0x446c0f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2140aa=>{const _0x529409=0x31ab1a91^_0x23bb84,_0x415bf8=_0x116720[_0x446c0f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x18858a(){_0x415bf8[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x529409&&_0x2140aa();}_0x18858a(),_0x415bf8[_0x446c0f([0x6f,0x6e])](_0x446c0f([0x61,0x64,0x64]),_0x18858a);})),new window[(_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d80ad=>{function _0x15f217(){for(const _0x1c87b8 in window)if(window[_0x446c0f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x446c0f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1c87b8))&&window[_0x1c87b8]==_0x25596a)return _0x1d80ad();_0x561706[_0x446c0f([0x73,0x74,0x61,0x74,0x65])]!=_0x446c0f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x446c0f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15f217,0x31ab091e^_0x23bb84);}_0x2537ad(_0x446c0f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x15f217();})];return window[_0x446c0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x446c0f([0x72,0x61,0x63,0x65])](_0x3a9688)[_0x446c0f([0x74,0x68,0x65,0x6e])](()=>_0x26c437);}async function _0x4d503f(){if(await _0x36ebbc,_0x2537ad(_0x446c0f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xe2b4bb=_0x116720[_0x446c0f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2c45ae=_0x116720[_0x446c0f([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])](_0xe2b4bb[_0x446c0f([0x69,0x64])]),_0x589ea9=_0xc12236(_0x446c0f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x589ea9[_0x446c0f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xe2b4bb['id'],_0x2c45ae?_0x2c45ae['id']:null,!0x0),_0x589ea9[_0x446c0f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x446c0f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x589ea9[_0x446c0f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x589ea9[_0x446c0f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1e479f,void(_0x589ea9[_0x446c0f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1e479f);}if(_0x2537ad(_0x446c0f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x287231=_0xc12236(_0x446c0f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x287231[_0x446c0f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x446c0f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x287231[_0x446c0f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x287231[_0x446c0f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1e479f,_0x287231[_0x446c0f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1e479f;}_0x561706[_0x446c0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x446c0f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e479f,_0x561706[_0x446c0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x446c0f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e479f,_0x561706[_0x446c0f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x446c0f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3de32b(){return _0x2537ad(_0x446c0f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc12236(_0x446c0f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x446c0f([0x73,0x74,0x61,0x74,0x65])]==_0x446c0f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1701aa(){return _0x2537ad(_0x446c0f([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 _0x2c9f16(){return _0x2537ad(_0x446c0f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1bf17b(_0x42ad01){const _0x55e931=_0x36f4a1();_0x561706[_0x55e931]=_0x446c0f([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])+_0x42ad01,_0x42ad01[_0x446c0f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x446c0f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x36f4a1()]=_0x25596a),_0x42ad01!=_0x446c0f([0x56,0x61,0x6c,0x69,0x64])&&_0x4d503f();}function _0x36f4a1(){const _0x166c1b=window[_0x446c0f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x446c0f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x446c0f([0x6e,0x6f,0x77])]())[_0x446c0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x446c0f([0x2e]),'');let _0x2d2c7a=_0x446c0f([0x44]);for(let _0x42929a=0x0;_0x42929a<_0x166c1b[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42929a+=0x2){let _0xb23b8c=window[_0x446c0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x166c1b[_0x446c0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42929a,_0x42929a+0x2));_0xb23b8c>=_0x4f0ae2[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb23b8c-=_0x4f0ae2[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d2c7a+=_0x4f0ae2[_0xb23b8c];}return _0x2d2c7a;}function _0x4ea75c(){const _0x246742=_0xb48e68[_0x446c0f([0x73,0x70,0x6c,0x69,0x74])](_0x446c0f([0x2e]));if(0x3!=_0x246742[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xaa6181(_0x246742[0x1]);function _0xaa6181(_0x377fdd){const _0x8863e6=_0x2eb69e(_0x377fdd);return _0x8863e6&&_0x4bb393()?_0x8863e6:null;function _0x4bb393(){const _0x14ba88=_0x8863e6[_0x446c0f([0x6a,0x74,0x69])],_0x23626d=window[_0x446c0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14ba88[_0x446c0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14ba88[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39ea53={..._0x8863e6,[_0x446c0f([0x6a,0x74,0x69])]:_0x14ba88[_0x446c0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14ba88[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39ea53[_0x446c0f([0x76,0x63])],_0x4ae47a(_0x39ea53)==_0x23626d;}}}async function _0x1e47a1(){let _0x4ce8d5=!0x0;try{const _0x29f46e=_0xb48e68[_0x446c0f([0x73,0x70,0x6c,0x69,0x74])](_0x446c0f([0x2e])),[_0x21be76,_0x12bdf2,_0x4c3da2]=_0x29f46e;return _0xc7bc75(_0x21be76),await _0x5eb990(_0x21be76,_0x12bdf2,_0x4c3da2),_0x4ce8d5;}catch(_0x3a203a){return!0x1;}function _0xc7bc75(_0x3ad324){const _0xa93797=_0x2eb69e(_0x3ad324);_0xa93797&&_0xa93797[_0x446c0f([0x61,0x6c,0x67])]==_0x446c0f([0x45,0x53,0x32,0x35,0x36])||(_0x4ce8d5=!0x1);}async function _0x5eb990(_0x35124b,_0x363b99,_0x482e95){const _0x263ac1=window[_0x446c0f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x446c0f([0x66,0x72,0x6f,0x6d])](_0x11cdc6(_0x482e95),_0x3bf2c0=>_0x3bf2c0[_0x446c0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x6e645f=new window[(_0x446c0f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x446c0f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35124b+_0x446c0f([0x2e])+_0x363b99),_0x4a980f=window[_0x446c0f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x446c0f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a980f)return;const _0x3384c4=await _0x4a980f[_0x446c0f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x446c0f([0x6a,0x77,0x6b]),_0x159c5c,{[_0x446c0f([0x6e,0x61,0x6d,0x65])]:_0x446c0f([0x45,0x43,0x44,0x53,0x41]),[_0x446c0f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x446c0f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x446c0f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a980f[_0x446c0f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x446c0f([0x6e,0x61,0x6d,0x65])]:_0x446c0f([0x45,0x43,0x44,0x53,0x41]),[_0x446c0f([0x68,0x61,0x73,0x68])]:{[_0x446c0f([0x6e,0x61,0x6d,0x65])]:_0x446c0f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3384c4,_0x263ac1,_0x6e645f)||(_0x4ce8d5=!0x1);}}function _0x2eb69e(_0x107bee){return _0x107bee[_0x446c0f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x446c0f([0x65,0x79]))?JSON[_0x446c0f([0x70,0x61,0x72,0x73,0x65])](_0x11cdc6(_0x107bee)):null;}function _0x11cdc6(_0x1086b6){return window[_0x446c0f([0x61,0x74,0x6f,0x62])](_0x1086b6[_0x446c0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x446c0f([0x2b]))[_0x446c0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x446c0f([0x2f])));}function _0x4ae47a(_0x5ba836){let _0x44b2c6=0x1505;function _0x512a74(_0x52d2ac){for(let _0x109210=0x0;_0x109210<_0x52d2ac[_0x446c0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109210++){const _0x4ae832=_0x52d2ac[_0x446c0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x109210);_0x44b2c6=(_0x44b2c6<<0x5)+_0x44b2c6+_0x4ae832,_0x44b2c6&=_0x44b2c6;}}function _0x1d783b(_0x1b9bcc){Array[_0x446c0f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b9bcc)?_0x1b9bcc[_0x446c0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d783b):_0x1b9bcc&&typeof _0x1b9bcc==_0x446c0f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x446c0f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b9bcc)[_0x446c0f([0x73,0x6f,0x72,0x74])]()[_0x446c0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19492a,_0x350178])=>{_0x512a74(_0x19492a),_0x1d783b(_0x350178);}):_0x512a74(window[_0x446c0f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b9bcc));}return _0x1d783b(_0x5ba836),_0x44b2c6>>>0x0;}function _0x22875a(_0x42aaee){return _0x42aaee[_0x446c0f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x446c0f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x446c0f([0x30]));}function _0x52f211(_0x15e58d){return _0x15e58d[_0x446c0f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x446c0f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x446c0f([0x6a,0x6f,0x69,0x6e])]('');}function _0x2537ad(_0x106aa7){return _0x561706[_0x446c0f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x446c0f([0x68,0x61,0x73])](_0x106aa7);}function _0xc12236(_0x23dd6e){return _0x561706[_0x446c0f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x446c0f([0x67,0x65,0x74])](_0x23dd6e);}function _0x1e479f(){}function _0x446c0f(_0x49744e){return _0x49744e['map'](_0x2266c6=>String['fromCharCode'](_0x2266c6))['join']('');}_0x1bf17b(await _0xbcbd24());}(this);}['createRevision'](_0x222698){const _0x4ff7c4=this['editor']['plugins']['get']('Users');return new h({'id':_0x222698['id'],'name':_0x222698['name'],'creator':_0x222698['creatorId']?_0x4ff7c4['getUser'](_0x222698['creatorId']):null,'diffData':_0x222698['diffData']||_0x222698['data'],'authors':_0x222698['authorsIds']['map'](_0x293051=>_0x4ff7c4['getUser'](_0x293051)),'createdAt':new Date(_0x222698['createdAt']),'attributes':_0x222698['attributes'],'fromVersion':_0x222698['fromVersion'],'toVersion':_0x222698['toVersion']});}['addRevision'](_0x36e18e,_0x352fc0=0x0){this['_revisions']['add'](_0x36e18e,_0x352fc0);}['getRevision'](_0x59e428){return this['_revisions']['get'](_0x59e428);}['getRevisions'](_0x104948={'toJSON':!0x1}){const _0x3c3efe=Array['from'](this['_revisions']);return _0x3c3efe['reverse'](),_0x104948['toJSON']?_0x3c3efe['map'](_0x577050=>_0x577050['toJSON']()):_0x3c3efe;}['getIndex'](_0x40a5cb){return this['_revisions']['getIndex'](_0x40a5cb);}['getEarlierVisibleRevision'](_0x5d553a){const [,_0x4505bc]=this['getRevisionsIterator'](_0x5d553a,{'direction':'earlier'});return _0x4505bc;}['getLaterVisibleRevision'](_0x51388a){const [,_0x491d32]=this['getRevisionsIterator'](_0x51388a,{'direction':'later'});return _0x491d32;}['getRevisionsInDiff'](_0x4b60e9){const _0x48b139=[];for(const _0xeeabf4 of this['getRevisionsIterator'](_0x4b60e9['newRevisionId']))if(_0x48b139['push'](_0xeeabf4),_0xeeabf4['id']===_0x4b60e9['oldRevisionId'])break;return _0x48b139;}*['getRevisionsIterator'](_0x1918ef,{direction:_0x12eda0='earlier',filter:_0x5027f1=()=>!0x0}={}){const _0x223bf5='earlier'===_0x12eda0?0x1:-0x1;let _0x73de26=this['_revisions']['get'](_0x1918ef),_0x150d6f=this['getIndex'](_0x73de26);for(yield _0x73de26;_0x73de26;){if(_0x150d6f+=_0x223bf5,_0x73de26=this['getRevision'](_0x150d6f),!_0x73de26)return;_0x5027f1(_0x73de26)&&(yield _0x73de26);}}}class V extends _0x4fedf0{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2b5b53,'c'],[_0x3fc208,'a'],[_0x3ba476,'e'],[_0x22f295,'r'],[_0x4b1240,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2b5b53],['a',_0x3fc208],['e',_0x3ba476],['r',_0x22f295],['u',_0x4b1240]]);async['loadRevisionData'](_0x3dea9d,_0x539c93){if(_0x3dea9d['diffData']||!_0x539c93)return;const _0xaee07e=this['editor']['config']['get']('collaboration.channelId'),_0x512531=await _0x539c93['getRevision']({'channelId':_0xaee07e,'revisionId':_0x3dea9d['id']});_0x3dea9d['diffData']=_0x512531['diffData'];}['getRevisionDocumentData'](_0x151a0d){const _0x3cb17c={};for(const _0x451afe in _0x151a0d['diffData']){if(_0x151a0d['diffData'][_0x451afe]['attachChange']&&!_0x151a0d['diffData'][_0x451afe]['attachChange']['isAttached'])continue;const _0x3b9f9b=this['_removeRevisionMarkers'](JSON['parse'](_0x151a0d['diffData'][_0x451afe]['insertions'])),_0xd970d5=this['editor']['editing']['view']['document'],_0x585522=new _0x11f991(_0xd970d5,_0x3b9f9b['map'](_0x27a458=>this['_getViewFromDiffObj'](_0x27a458,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3cb17c[_0x451afe]=this['editor']['data']['processor']['toData'](_0x585522),this['editor']['data']['processor']['useFillerType']('default');}return _0x3cb17c;}['getRevisionRootsAttributes'](_0x39ed79){const _0x500db6={};for(const _0x3927e6 in _0x39ed79['diffData'])_0x39ed79['diffData'][_0x3927e6]['attachChange']&&!_0x39ed79['diffData'][_0x3927e6]['attachChange']['isAttached']||(_0x500db6[_0x3927e6]=_0x39ed79['diffData'][_0x3927e6]['attributesAfter']||{});return _0x500db6;}['_getTypeCharForViewElement'](_0x3b1d58){return this['_viewClassToTypeChar']['get'](_0x3b1d58['constructor']);}['_getViewFromDiffObj'](_0xbc8a6b,_0x32b847){const _0x27878d=this['editor']['editing']['view']['document'];if('string'==typeof _0xbc8a6b)return new _0x7a1e11(_0x27878d,_0xbc8a6b);{let _0x574a23,_0x1a3a4e;_0x1a3a4e='u'==_0xbc8a6b['type']||'r'==_0xbc8a6b['type']?[]:_0xbc8a6b['children']['map'](_0x3173d2=>this['_getViewFromDiffObj'](_0x3173d2,_0x32b847));const _0x1e448c=this['_typeCharToViewClass']['get'](_0xbc8a6b['type'])||_0x2c2d26,_0x365699=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x574a23=new _0x1e448c(_0x27878d,_0xbc8a6b['name'],_0xbc8a6b['attributes'],_0x1a3a4e),'u'==_0xbc8a6b['type']&&_0xbc8a6b['children'][0x0]){const _0x59eb3f=_0xbc8a6b['children'][0x0];if(_0x574a23['render']=function(_0x53e50e){const _0x2e51f3=_0x53e50e['createElement']('div');return _0x2e51f3['innerHTML']=_0x59eb3f,_0x2e51f3['childNodes'][0x0];},_0x32b847){const _0x34c9e6=new _0x11f991(_0x27878d);_0x34c9e6['_appendChild'](_0x574a23);const _0x1f65eb=Array['from'](_0x365699['viewChildrenToDom'](_0x34c9e6,{'bind':!0x1})),_0x248841=_0x365699['domDocument']['createElement']('div');_0x248841['append'](..._0x1f65eb),_0x574a23=Array['from'](_0x365699['domChildrenToView'](_0x248841))[0x0];}}else{if('r'==_0xbc8a6b['type']&&_0xbc8a6b['children'][0x0]){const _0x45c00d=_0xbc8a6b['children'][0x0];if(_0x574a23['render']=function(_0x5b1aaf){_0x5b1aaf['innerHTML']=_0x45c00d;},_0x32b847){const _0x53c1fe=new _0x11f991(_0x27878d);_0x53c1fe['_appendChild'](_0x574a23);const _0x45ab21=Array['from'](_0x365699['viewChildrenToDom'](_0x53c1fe,{'bind':!0x1})),_0x3d2884=_0x365699['domDocument']['createElement']('div');_0x3d2884['append'](..._0x45ab21);const _0x44cfbc=Array['from'](_0x365699['domChildrenToView'](_0x3d2884));_0x44cfbc['length']>0x1?_0x574a23['_appendChild'](_0x44cfbc):_0x574a23=_0x44cfbc[0x0];}}}if(_0xbc8a6b['customProperties']){for(const [_0x359b81,_0x4140ef]of _0xbc8a6b['customProperties'])_0x574a23['_setCustomProperty'](_0x359b81,_0x4140ef);}const _0x478f9d=void 0x0===_0xbc8a6b['fillerOffset']?null:_0xbc8a6b['fillerOffset'];return null!==_0x478f9d&&(_0x574a23['getFillerOffset']=()=>_0x478f9d),_0x574a23;}}['_makeModelFromViewString'](_0x29cef6){const _0xfe756c=JSON['parse'](_0x29cef6),_0x3efbfe=this['editor']['editing']['view']['document'],_0x3b1184=new _0x11f991(_0x3efbfe,_0xfe756c['map'](_0x3b93e9=>this['_getViewFromDiffObj'](_0x3b93e9,!0x0)));return this['editor']['data']['toModel'](_0x3b1184);}['_removeRevisionMarkers'](_0x12db12){return(_0x12db12=_0x12db12['filter'](_0x52ea3e=>!_0x52ea3e['name']||'revision-start'!==_0x52ea3e['name']&&'revision-end'!==_0x52ea3e['name']))['forEach'](_0x5b9ddf=>{'string'!=typeof _0x5b9ddf&&(_0x5b9ddf['children']=this['_removeRevisionMarkers'](_0x5b9ddf['children']),_0x5b9ddf['attributes']=_0x5b9ddf['attributes']['filter'](_0x1b4450=>!_0x1b4450[0x0]['startsWith']('data-revision-')));}),_0x12db12;}}function g(_0x551f9f,_0x3c6778,_0x21743d){const t=_0x551f9f['t'];switch(_0x3c6778){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'},_0x21743d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x21743d);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x4fedf0{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4b58b7,I,V,_0xabd941];}constructor(_0x2d11a2){super(_0x2d11a2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5a7e22=_0x50688e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5a7e22},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x21104d=this['repository']['getRevision'](0x0),_0x113269=_0x21104d&&null===_0x21104d['creator']?_0x21104d:null;if(this['_continueCurrentRevision']=!!_0x113269&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x57ca12=this['_source']['getCurrentRevisionId'](),_0x5d8ed5=this['repository']['getRevision'](_0x57ca12);if(_0x5d8ed5)this['_startingVersion']=_0x5d8ed5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x214094=this['_source']['history']['_operations']['find'](_0xdfe47f=>!_0xdfe47f['_isInit']),_0x1681ad=_0x214094?_0x214094['baseVersion']:this['_source']['history']['version'];_0x21104d?(_0x21104d['toVersion']<_0x1681ad&&_0x21104d['_update']({'toVersion':_0x1681ad}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x113269['id'],this['_startingVersion']=_0x113269['fromVersion']):(this['_startingVersion']=_0x21104d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1681ad,this['_continueCurrentRevision']=!0x1);}}else _0x113269&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x113269['toVersion'],this['editor']['model']['document']['history']['version']),_0x113269['fromVersion']===_0x113269['toVersion']?(0x0!==_0x113269['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x113269['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x113269['id'],this['_startingVersion']=_0x113269['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',_0xf4e4ac=>!_0xf4e4ac),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5647d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b10ff;for(const _0x578677 in _0x5647d3){const _0x3b1e5a=_0x578677,_0x521aa6=_0x5647d3[_0x3b1e5a];if('revisionHistoryLicenseKeyValid'==_0x521aa6||'revisionHistoryLicenseKeyInvalid'==_0x521aa6||'revisionHistoryLicenseKeyExpired'==_0x521aa6||'revisionHistoryLicenseKeyDomainLimit'==_0x521aa6||'revisionHistoryLicenseKeyNotAllowed'==_0x521aa6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x521aa6||'revisionHistoryLicenseKeyTrialLimit'==_0x521aa6||'revisionHistoryLicenseKeyUsageLimit'==_0x521aa6){delete _0x5647d3[_0x3b1e5a],_0x1b10ff=_0x521aa6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1b10ff&&_0x5647d3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1b10ff&&_0x5647d3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1b10ff&&_0x5647d3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1b10ff&&_0x5647d3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1b10ff&&_0x5647d3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1b10ff&&_0x5647d3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1b10ff&&_0x5647d3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4ca9b5=this['repository']['getRevision'](0x0),_0x5b3315=await this['getRevisionDocumentData'](_0x4ca9b5),_0x591de4=await this['getRevisionRootsAttributes'](_0x4ca9b5);this['_replaceEditorDataWithRevisionData'](_0x5b3315,_0x591de4);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x35c7c5){this['_source']=_0x35c7c5;}async['update'](){const _0x5c5d2f=await this['_source']['getLatestVersion']();if(_0x5c5d2f>this['currentRevision']['toVersion']){await this['_loadState']();const _0x12f3c2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5c5d2f});_0x12f3c2['authors']=_0x12f3c2['authorsIds']['map'](_0x3d3915=>this['editor']['plugins']['get']('Users')['getUser'](_0x3d3915)),this['currentRevision']['_update'](_0x12f3c2);}}async['saveRevision'](_0x2c5b7b={},_0x3be15b=null){const _0x22c103=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3be15b>this['currentRevision']['toVersion']&&(_0x3be15b=null),null===_0x3be15b&&(_0x3be15b=await this['_source']['getLatestVersion']());const _0x4ec08c=this['_getFromVersion'](_0x3be15b),_0x1ee0f8=this['buildRevisionData']({'from':_0x4ec08c,'to':_0x3be15b});if(this['currentRevision']['toVersion']<_0x3be15b){const _0xfedc7a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3be15b,'to':_0x3be15b});_0xfedc7a['authors']=[],_0xfedc7a['authorsIds']=[],_0xfedc7a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xfedc7a,!0x0),delete _0xfedc7a['authors'],_0x22c103['push'](_0xfedc7a);}_0x2c5b7b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c5b7b['name']=_0x2c5b7b['name']||null,_0x2c5b7b['id']=_0x2c5b7b['id']||_0x50688e(),_0x2c5b7b={..._0x2c5b7b,..._0x1ee0f8};const _0x2ef4b6=this['addRevisionData'](_0x2c5b7b);_0x22c103['push'](_0x2c5b7b);const _0xb81cf4=this['repository']['getIndex'](_0x2ef4b6);if(0x0!==_0xb81cf4){const _0x3bdf15=this['repository']['getRevision'](_0xb81cf4-0x1);if(_0x3bdf15['fromVersion']!==_0x3be15b){const _0x4b16e5=this['_revisionDataBuilder']['getData'](_0x3be15b,_0x3bdf15['toVersion']),_0x4d0757={'id':_0x3bdf15['id'],'diffData':_0x4b16e5['diffData'],'authorsIds':_0x4b16e5['authorsIds'],'authors':_0x4b16e5['authorsIds']['map'](_0x5b2591=>this['editor']['plugins']['get']('Users')['getUser'](_0x5b2591)),'fromVersion':_0x3be15b};_0x3bdf15===this['currentRevision']&&(_0x4d0757['createdAt']=new Date(_0x2c5b7b['createdAt']['getTime']()+0xa)),_0x3bdf15['_update'](_0x4d0757,!0x0),delete _0x4d0757['authors'],_0x22c103['push'](_0x4d0757);}}if(this['adapter']){for(const _0x33d497 of _0x22c103)this['_bufferUpdate'](_0x33d497['id'],_0x33d497,!0x0);this['sendBufferedUpdates']();}return _0x2ef4b6;}['addRevisionData'](_0x1ed14c){const _0x30b257=this['repository']['createRevision'](_0x1ed14c);return this['adapter']&&_0x30b257['on']('_update',(_0x4e6feb,_0x145c64,_0x575a51)=>{_0x575a51||(this['_bufferUpdate'](_0x145c64['id'],_0x145c64,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x30b257,this['_findInsertionIndex'](_0x30b257)),_0x30b257;}async['getRevisionDocumentData'](_0x5c27a){return await this['_utils']['loadRevisionData'](_0x5c27a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5c27a);}async['getRevisionRootsAttributes'](_0x590995){return await this['_utils']['loadRevisionData'](_0x590995,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x590995);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4d29de=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3e9cd3=0x0;_0x3e9cd3<_0x4d29de['length'];_0x3e9cd3++){const _0x16f1d4=_0x4d29de[_0x3e9cd3];let _0x1a8ef8=!0x1;for(const _0x23b38b of Object['keys'](_0x16f1d4))void 0x0===_0x16f1d4[_0x23b38b]?delete _0x16f1d4[_0x23b38b]:'id'!==_0x23b38b&&(_0x1a8ef8=!0x0);_0x1a8ef8||(_0x4d29de[_0x3e9cd3]=null);}if(_0x4d29de=_0x4d29de['filter'](_0x1da7c4=>null!==_0x1da7c4),!_0x4d29de['length'])return;for(let _0x142872=0x0;_0x142872<_0x4d29de['length'];_0x142872++){const _0x5318e6=_0x4d29de[_0x142872];void 0x0!==_0x5318e6['fromVersion']&&void 0x0===_0x5318e6['toVersion']&&(_0x5318e6['toVersion']=this['repository']['getRevision'](_0x5318e6['id'])['toVersion']),void 0x0!==_0x5318e6['toVersion']&&void 0x0===_0x5318e6['fromVersion']&&(_0x5318e6['fromVersion']=this['repository']['getRevision'](_0x5318e6['id'])['fromVersion']);}const _0x1147b2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4d29de,_0x1147b2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x508056=>{if(_0x508056){for(const _0x59a7c7 of _0x508056)this['setRevisionData']({'id':_0x59a7c7['id'],'createdAt':_0x59a7c7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x55cd3c=null,from:_0x1ea671=null,to:_0xe17086=null}){_0x1ea671=null!==_0x1ea671?_0x1ea671:_0x55cd3c['fromVersion'],_0xe17086=null!==_0xe17086?_0xe17086:_0x55cd3c['toVersion'];const _0x4c5da9=this['_revisionDataBuilder']['getData'](_0x1ea671,_0xe17086),_0x41b638={'diffData':_0x4c5da9['diffData'],'authorsIds':_0x4c5da9['authorsIds'],'fromVersion':_0x1ea671,'toVersion':_0xe17086};if(!_0x55cd3c||_0xe17086!==_0x55cd3c['toVersion']){const _0x3473a3=_0xe17086-0x1,_0x538770=this['_source']['history']['getOperation'](_0x3473a3);_0x41b638['createdAt']=_0x538770&&_0x538770['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1ea671===this['_loadedStateData']['fromVersion']){for(const _0x4d1862 of this['_loadedStateData']['authors'])_0x41b638['authorsIds']['includes'](_0x4d1862['id'])||_0x41b638['authorsIds']['push'](_0x4d1862['id']);}return _0x41b638;}['_bufferUpdate'](_0x1827ef,_0x54f016,_0x40af7b){if(this['_bufferedUpdates']['has'](_0x1827ef)){const _0x1e8a42=this['_bufferedUpdates']['get'](_0x1827ef);_0x54f016=_0x40af7b?{..._0x1e8a42,..._0x54f016}:{..._0x54f016,..._0x1e8a42};}this['_bufferedUpdates']['set'](_0x1827ef,_0x54f016);}['setRevisionData'](_0x269ae8){const _0x59a2be=this['repository']['getRevision'](_0x269ae8['id']);if(_0x269ae8['createdAt']&&(_0x269ae8['createdAt']=new Date(_0x269ae8['createdAt'])),_0x269ae8['authorsIds']){const _0x774f17=this['editor']['plugins']['get']('Users');_0x269ae8['authors']=_0x269ae8['authorsIds']['map'](_0x186a39=>_0x774f17['getUser'](_0x186a39));}_0x59a2be['_update'](_0x269ae8,!0x0);}['_createInitialRevision'](_0x3d3953){const _0x353158=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x353158)this['_initialRevisionId']=_0x353158['id'];else{const _0xd1b134=!this['editor']['model']['document']['roots']['find'](_0x4789cc=>this['editor']['model']['hasContent'](_0x4789cc)),_0x467c13=this['editor']['plugins']['get']('Users')['me']['id'],_0x1aa3e1=g(this['editor']['locale'],_0xd1b134?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3d3953,'to':_0x3d3953,'id':this['_initialRevisionId'],'name':_0x1aa3e1,'creatorId':_0x467c13});}}['_createCurrentRevision'](_0x504558){const _0x5e6ec8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5e6ec8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x504558,'to':_0x504558,'id':_0x5e6ec8,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0xd7c6bb,_0x2ed43a){let _0x8401e8=this['editor']['config']['get']('initialData'),_0x6cf577=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x8401e8){_0x8401e8={};for(const _0x477499 of this['editor']['model']['document']['getRootNames']())_0x8401e8[_0x477499]='';}if('string'==typeof _0x8401e8&&(_0x8401e8={'main':_0x8401e8}),void 0x0===_0x6cf577){_0x6cf577={};for(const _0x5ceb7e of this['editor']['model']['document']['getRootNames']())_0x6cf577[_0x5ceb7e]={};}let _0x4ef63b=!0x1;const _0x99e971=Object['keys'](_0x8401e8),_0x36fae5=Object['keys'](_0xd7c6bb);for(const _0x1c5879 of _0x99e971){if(_0x8401e8[_0x1c5879]!==_0xd7c6bb[_0x1c5879]&&''!==_0x8401e8[_0x1c5879]['trim']()){_0x4ef63b=!0x0;break;}if(!_0x579587(_0x6cf577[_0x1c5879],_0x2ed43a[_0x1c5879])&&Object['keys'](_0x6cf577[_0x1c5879])['length']>0x0){_0x4ef63b=!0x0;break;}}_0x4ef63b||(_0x4ef63b=_0x36fae5['some'](_0x549709=>!this['editor']['model']['document']['getRoot'](_0x549709))),_0x4ef63b&&_0x579614('editor-initial-data-replaced-with-revision-data',{'editorData':_0x8401e8,'editorRootsAttributes':_0x6cf577,'revisionData':_0xd7c6bb,'revisionRootsAttributes':_0x2ed43a}),this['editor']['config']['set']('initialData',_0xd7c6bb),this['editor']['config']['set']('rootsAttributes',_0x2ed43a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x26a1db=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x26a1db['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1f352e){const _0x5c8884=this['repository']['getRevisions']();_0x5c8884['reverse']();let _0x5c06cd=0x0;for(;_0x5c06cd<_0x5c8884['length'];){const _0x15f3ac=_0x5c8884[_0x5c06cd];if(_0x15f3ac===this['currentRevision']){_0x5c06cd++;continue;}if(_0x15f3ac['id']===this['_initialRevisionId'])break;const _0x2f99d6=_0x1f352e['toVersion']-_0x15f3ac['toVersion']||_0x1f352e['fromVersion']-_0x15f3ac['fromVersion'];if(_0x2f99d6>0x0)break;if(_0x2f99d6<0x0)_0x5c06cd++;else{if(!_0x1f352e['creator']&&_0x15f3ac['creator'])break;if(_0x15f3ac['creator']||!_0x1f352e['creator']){if(_0x1f352e['createdAt']>_0x15f3ac['createdAt'])break;_0x5c06cd++;}else _0x5c06cd++;}}return _0x5c06cd;}['_getFromVersion'](_0x743f4e){const _0x338974=this['repository']['getRevisions']();_0x338974['reverse'](),_0x338974['shift']();const _0x308340=_0x338974['find'](_0x6fd257=>_0x6fd257['toVersion']<=_0x743f4e)['toVersion'];return _0x308340<this['_startingVersion']?this['_startingVersion']:_0x308340;}['_makeRevision']({name:_0x40e708,from:_0xdc5b9f,to:_0x5ae43d,creatorId:_0x4bcde9,id:_0x1840ee}){const _0x54a612=this['buildRevisionData']({'from':_0xdc5b9f,'to':_0x5ae43d});_0x54a612['name']=_0x40e708,_0x54a612['creatorId']=_0x4bcde9,_0x54a612['id']=_0x1840ee;const _0xc69449=this['addRevisionData'](_0x54a612);return this['adapter']&&this['_bufferUpdate'](_0x54a612['id'],_0x54a612,!0x0),_0xc69449;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x394eda){this['editor']=_0x394eda,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'](_0x390e59){this['source']=_0x390e59;const _0x244cc3=new Map(),_0xfe171c=new Map(),_0x30c53b=this['editor']['model']['document']['roots']['map'](_0x23419a=>_0x23419a['rootName']);for(const _0x7c876b of _0x30c53b){const _0x5ddb82=this['editor']['model']['document']['getRoot'](_0x7c876b),_0x1d8db8=N(_0x5ddb82);_0x244cc3['set'](_0x7c876b,_0x1d8db8),_0xfe171c['set'](_0x7c876b,Object['fromEntries'](_0x5ddb82['getAttributes']()));}const _0x191e5b=Array['from'](this['editor']['model']['markers'])['map'](_0x122c50=>[_0x122c50['name'],_0x122c50['getRange']()]),_0x40bc78=this['source']['version'];this['_saveMetaData'](_0x40bc78,_0x244cc3,_0x191e5b,_0xfe171c),this['_startingRevisionId']=this['_revisionId'];const _0x4a0a0e=new Map(),_0x257b59=new Map();for(const _0x53bb81 of _0x30c53b){const _0x1d6948=P(_0x53bb81);_0x4a0a0e['set'](_0x53bb81,_0x1d6948),_0x257b59['set'](_0x53bb81,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4a0a0e,[],_0x257b59);}['getData'](_0x3a391d,_0xdbb20e){if(this['_lastFrom']===_0x3a391d&&this['_lastTo']<=_0xdbb20e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xdbb20e,!0x0);else{if(!this['_savedMetaData']['has'](_0x3a391d)){const _0x2c17ed=this['_getPreviousFrom'](_0x3a391d);this['_calculateMetaData'](_0x2c17ed,_0x3a391d,!0x1);}this['_calculateMetaData'](_0x3a391d,_0xdbb20e,!0x0);}return this['_lastFrom']=_0x3a391d,this['_lastTo']=_0xdbb20e,this['_getState']();}['loadState'](_0x8d7062){const _0x3d52c6=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x8d7062['fromVersion'],this['_lastTo']=_0x8d7062['toVersion'];for(const _0x318119 in _0x8d7062['diffData']){const _0xac61ce=_0x8d7062['diffData'][_0x318119]['attachChange'],_0x301a67=_0x3656c2(_0x8d7062['diffData'][_0x318119]['attributesBefore'])||{},_0x53767d=_0x3d52c6['_makeModelFromViewString'](_0x8d7062['diffData'][_0x318119]['deletions']);_0x53767d['rootName']=_0x318119,_0x53767d['_isAttached']=!_0xac61ce||!_0xac61ce['isAttached'],_0x53767d['isAttached']=()=>_0x53767d['_isAttached'],this['_baseRoots']['set'](_0x318119,_0x53767d),this['_baseRootsAttributes']['set'](_0x318119,_0x301a67),_0xac61ce&&this['_touchedRoots']['set'](_0x318119,_0xac61ce);const _0x381706=this['_makeIdsRoot'](_0x53767d);this['_baseIdsRoots']['set'](_0x318119,_0x381706);for(const [_0x433dfb,_0x142637]of _0x53767d['markers']){if(!_0x433dfb['startsWith']('revision:'))continue;const _0x42ef32=_0x433dfb['split'](':')[0x2];for(const _0x2e2211 of _0x142637['getWalker']({'singleCharacters':!0x0})){const _0x1ef599=this['_getVidAttributeName'](_0x2e2211),_0x4c3093='elementEnd'==_0x2e2211['type']?_0x2e2211['previousPosition']['path']['slice'](0x0,-0x1):_0x2e2211['previousPosition']['path'],_0x6688cf=_0x381706['getNodeByPath'](_0x4c3093)['getAttribute'](_0x1ef599);this['_touched']['set'](_0x6688cf,{'userId':_0x42ef32});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2c343d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4d3e67=>!this['_touched']['has'](_0x4d3e67));let _0x5c4c35=0x0;const _0x233753=new Map();for(const _0x373b8c in _0x8d7062['diffData']){const _0x253794=_0x8d7062['diffData'][_0x373b8c]['attachChange'],_0xd96e4d=_0x3656c2(_0x8d7062['diffData'][_0x373b8c]['attributesAfter'])||{},_0x2f6f05=_0x3d52c6['_makeModelFromViewString'](_0x8d7062['diffData'][_0x373b8c]['insertions']);_0x2f6f05['rootName']=_0x373b8c,_0x2f6f05['_isAttached']=!_0x253794||_0x253794['isAttached'],_0x2f6f05['isAttached']=()=>_0x2f6f05['_isAttached'],this['_diffRoots']['set'](_0x373b8c,_0x2f6f05),this['_diffRootsAttributes']['set'](_0x373b8c,_0xd96e4d);const _0x282c73=this['_makeIdsRoot'](_0x2f6f05,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x373b8c,_0x282c73),_0x233753['set'](_0x373b8c,_0x2f6f05['isAttached']()?_0xd96e4d:{});for(const [_0x2cd9e5,_0x119149]of _0x2f6f05['markers']){if(!_0x2cd9e5['startsWith']('revision:'))continue;const _0x1a2cb2=_0x2cd9e5['split'](':')[0x2];for(const _0x3b1847 of _0x119149['getWalker']({'singleCharacters':!0x0})){const _0xaf1d94=this['_getVidAttributeName'](_0x3b1847),_0x5a294f=this['_revisionId']++,_0x31ce1e='elementEnd'==_0x3b1847['type']?_0x3b1847['previousPosition']['path']['slice'](0x0,-0x1):_0x3b1847['previousPosition']['path'];_0x282c73['getNodeByPath'](_0x31ce1e)['_setAttribute'](_0xaf1d94,_0x5a294f),this['_touched']['set'](_0x5a294f,{'userId':_0x1a2cb2});}}for(const _0x4168e1 of this['editor']['model']['createRangeIn'](_0x2f6f05)['getWalker']({'singleCharacters':!0x0})){const _0x56a964=this['_getVidAttributeName'](_0x4168e1),_0x39a6ef='elementEnd'==_0x4168e1['type']?_0x4168e1['previousPosition']['path']['slice'](0x0,-0x1):_0x4168e1['previousPosition']['path'],_0x366619=_0x282c73['getNodeByPath'](_0x39a6ef);_0x366619['getAttribute'](_0x56a964)>0x0||_0x366619['_setAttribute'](_0x56a964,_0x2c343d[_0x5c4c35++]);}for(const [_0x4224e9,_0x12141f]of _0x2f6f05['markers'])_0x4224e9['startsWith']('revision:')||this['_markers']['set'](_0x4224e9,_0x12141f);}const _0x420830=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x420830),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x420830,0x1));const _0x189c97=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x189c97),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x189c97,0x1));const _0xb900db=Array['from'](this['_diffRoots'])['map'](([_0xb9351,_0x862fbd])=>[_0xb9351,N(_0x862fbd)]);this['_saveMetaData'](this['_lastTo'],_0xb900db,this['_markers'],_0x233753);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5312ce,_0x407d5b,_0x556911,_0x1033c3){const _0x784754=new Map(_0x407d5b),_0x2a6d20=new Map(_0x3656c2(_0x1033c3)),_0x4eb9ae=new Map();for(const [_0x2989ba,_0x3d718c]of _0x556911)_0x4eb9ae['set'](_0x2989ba,{'start':_0x3d718c['start']['clone'](),'end':_0x3d718c['end']['clone'](),'rootName':_0x3d718c['root']['rootName']});this['_savedMetaData']['set'](_0x5312ce,{'roots':_0x784754,'markers':_0x4eb9ae,'rootsAttributes':_0x2a6d20});}['_removeMetaData'](_0x5c0ad3){this['_savedMetaData']['delete'](_0x5c0ad3);}['_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'](_0x14b430,_0xbcd892=null){let _0x563930=null;_0x14b430['is']('documentFragment')||(_0x563930=new ut(_0x14b430['name'],{'vid_start':null===_0xbcd892?this['_revisionId']++:_0xbcd892++}));const _0x394653=[];for(const _0x137b59 of _0x14b430['getChildren']())if(_0x137b59['is']('element')){_0x394653['push'](this['_makeIdsRoot'](_0x137b59,_0xbcd892));const _0x40ef17=_0x394653[_0x394653['length']-0x1];null!==_0xbcd892&&(_0xbcd892=_0x40ef17['is']('element','$text')?_0x40ef17['getAttribute']('vid')+0x1:_0x40ef17['getAttribute']('vid_end')+0x1);}else{for(let _0x6261ce=0x0;_0x6261ce<_0x137b59['offsetSize'];_0x6261ce++)_0x394653['push'](new ut('$text',{'vid':null===_0xbcd892?this['_revisionId']++:_0xbcd892++}));}if(_0x14b430['is']('documentFragment')){const _0x285822=P(_0x14b430['rootName']);return _0x285822['_insertChild'](0x0,_0x394653),_0x285822;}return _0x563930['_setAttribute']('vid_end',null===_0xbcd892?this['_revisionId']++:_0xbcd892++),_0x563930['_insertChild'](0x0,_0x394653),_0x563930;}['_calculateMetaData'](_0x219c77,_0x36e63e,_0x15b8b2){this['_reset']();const {roots:_0xea1d6b,markers:_0x5cd85d,rootsAttributes:_0x5ec88b}=this['_savedMetaData']['get'](_0x219c77);this['_baseRoots']=new Map(_0xea1d6b),this['_baseRootsAttributes']=new Map(_0x3656c2(_0x5ec88b));for(const [_0x587fae,_0x50d217]of this['_baseRoots'])if('$graveyard'!==_0x587fae&&(this['_diffRoots']['set'](_0x587fae,N(_0x50d217)),this['_diffRootsAttributes']=new Map(_0x3656c2(_0x5ec88b)),_0x15b8b2)){const _0x4efe05=this['_revisionId'];this['_idsRoots']['set'](_0x587fae,this['_makeIdsRoot'](_0x50d217)),this['_baseIdsRoots']['set'](_0x587fae,this['_makeIdsRoot'](_0x50d217,_0x4efe05));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x15b8b2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x39aa94,_0x543523]of _0x5cd85d){const _0x360b0b=this['_baseRoots']['get'](_0x543523['rootName']),_0x5ac371=this['_diffRoots']['get'](_0x543523['rootName']),_0x5df833=new lt(this['_fixPosition'](_0x543523['start'],_0x360b0b),this['_fixPosition'](_0x543523['end'],_0x360b0b)),_0x5b80fc=this['_fixRange'](_0x5df833,_0x5ac371);_0x360b0b['markers']['set'](_0x39aa94,_0x5df833),this['_markers']['set'](_0x39aa94,_0x5b80fc);}this['_applyOperations'](_0x219c77,_0x36e63e,_0x15b8b2);}['_applyOperations'](_0xc9d666,_0x5e924d,_0x12777e){for(const _0x243cef of this['source']['getOperations'](_0xc9d666,_0x5e924d))this['_handleOperation'](_0x243cef,_0x12777e);for(const _0x497a5d of this['_diffRoots']['values']())_0x497a5d['markers']['clear']();for(const [_0x97744b,_0x1612a1]of this['_markers']){this['_diffRoots']['get'](_0x1612a1['root']['rootName'])['markers']['set'](_0x97744b,_0x1612a1['clone']());}const _0x25d6c8=new Map(),_0x290e7c=new Map();for(const [_0x34e49b,_0x54794a]of this['_diffRoots'])_0x25d6c8['set'](_0x34e49b,N(_0x54794a)),_0x290e7c['set'](_0x34e49b,this['_diffRootsAttributes']['get'](_0x34e49b));this['_saveMetaData'](_0x5e924d,_0x25d6c8,this['_markers'],_0x290e7c);}['_getPreviousFrom'](_0x3b8125){const _0x43e1b7=Array['from'](this['_savedMetaData']['keys']());_0x43e1b7['sort']((_0x307d73,_0x28ef91)=>_0x307d73-_0x28ef91),_0x43e1b7['reverse']();for(const _0x11b3e8 of _0x43e1b7)if(_0x11b3e8<_0x3b8125)return _0x11b3e8;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x562c8c,_0xf97d68){const _0x58a42a=Array['from'](_0xf97d68['markers'])['map'](([_0x445e76,_0x4112a5])=>[_0x445e76,this['_fixRange'](_0x4112a5,_0x562c8c)]);_0x562c8c['markers']=new Map(_0x58a42a);}['_transformMarkers'](_0x171fdf){for(const _0x2bece1 of this['_markers']['values']()){const _0x823e6f=_0x2bece1['getTransformedByOperation'](_0x171fdf),_0x30963a=lt['_createFromRanges'](_0x823e6f);_0x2bece1['start']=_0x30963a['start'],_0x2bece1['end']=_0x30963a['end'];}}['_handleOperation'](_0x166bc7,_0x1835ca){if('addRoot'!=_0x166bc7['type']&&'detachRoot'!=_0x166bc7['type']){if('insert'==_0x166bc7['type']){const _0x1518be=_0x166bc7['position']['root']['rootName'];this['_diffRoots']['has'](_0x1518be)||(this['_diffRoots']['set'](_0x1518be,P(_0x1518be,!0x0)),this['_diffRootsAttributes']['set'](_0x1518be,{}),_0x1835ca&&this['_idsRoots']['set'](_0x1518be,P(_0x1518be,!0x0)));}else{if('addRootAttribute'==_0x166bc7['type']||'removeRootAttribute'==_0x166bc7['type']||'changeRootAttribute'==_0x166bc7['type'])return void this['_handleRootAttributeOperation'](_0x166bc7);'marker'==_0x166bc7['type']&&this['_handleMarkerOperation'](_0x166bc7);}if('marker'!==_0x166bc7['type']){const _0x5ae789=this['_cloneOperation'](_0x166bc7,this['_diffRoots']);_0x5ae789['_execute'](),this['_transformMarkers'](_0x5ae789);}if(_0x1835ca)switch(_0x166bc7['type']){case'insert':this['_handleInsertOperation'](_0x166bc7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x166bc7);break;case'merge':this['_handleMergeOperation'](_0x166bc7);break;case'split':this['_handleSplitOperation'](_0x166bc7);}}else this['_handleRootOperation'](_0x166bc7,_0x1835ca);}['_cloneOperation'](_0x46c102,_0x5c63ea){const _0x299429=_0x46c102['clone']();return _0x299429['_authorId']=_0x46c102['_authorId'],this['_fixOperation'](_0x299429,_0x5c63ea),_0x299429;}['_getBaseVids'](_0x2497d8){return _0x2497d8['map'](_0x51a729=>{const _0x7d1ba7=this['_getVidAttributeName'](_0x51a729);return Number(_0x51a729['item']['getAttribute'](_0x7d1ba7));});}['_generateTape'](_0x2e0c5c,_0x1fd273){if(_0x2e0c5c['is']('element','$text'))_0x1fd273['push']({'item':_0x2e0c5c,'type':'text'});else{_0x2e0c5c['is']('element')&&_0x1fd273['push']({'item':_0x2e0c5c,'type':'elementStart'});for(const _0x257f04 of _0x2e0c5c['getChildren']())this['_generateTape'](_0x257f04,_0x1fd273);_0x2e0c5c['is']('element')&&_0x1fd273['push']({'item':_0x2e0c5c,'type':'elementEnd'});}return _0x1fd273;}['_getState'](){const _0x5a99be=new Map(this['_touched']),_0x317675=new Map(_0x5a99be),_0x102053=new Map(),_0x4b26bc={'insertions':{},'deletions':{}},_0x7fb5dd={'insertions':{},'deletions':{}},_0x1cc615=new Map(),_0x3e06c5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3e06c5['delete']('$graveyard');for(const _0xb0585e of _0x3e06c5){const _0x263225=this['_diffRoots']['get'](_0xb0585e)||P(_0xb0585e,!0x1),_0x47bdc2=this['_baseRoots']['get'](_0xb0585e)||P(_0xb0585e,!0x1);_0x263225['isAttached']()||_0x47bdc2['isAttached']()?(_0x4b26bc['insertions'][_0xb0585e]=N(_0x263225),_0x4b26bc['deletions'][_0xb0585e]=N(_0x47bdc2),this['_copyMarkers'](_0x4b26bc['deletions'][_0xb0585e],_0x47bdc2),this['_copyMarkers'](_0x4b26bc['insertions'][_0xb0585e],_0x263225),_0x7fb5dd['insertions'][_0xb0585e]=this['_generateTape'](this['_idsRoots']['get'](_0xb0585e),[]),_0x7fb5dd['deletions'][_0xb0585e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xb0585e)||P(_0xb0585e,!0x1),[])):_0x3e06c5['delete'](_0xb0585e);}for(const _0x223c85 of _0x3e06c5){const _0x306caa=_0x7fb5dd['insertions'][_0x223c85];for(const _0x302fca of _0x306caa){const _0x4173ef=this['_getVidAttributeName'](_0x302fca),_0x38f183=_0x302fca['item']['getAttribute'](_0x4173ef);_0x317675['delete'](_0x38f183),_0x38f183>=this['_startingRevisionId']&&_0x102053['set'](_0x38f183,_0x5a99be['get'](_0x38f183));}}for(const _0x1eb247 of _0x3e06c5){const _0x464750=_0x7fb5dd['insertions'][_0x1eb247],_0x4dd317=this['_getBaseVids'](_0x7fb5dd['deletions'][_0x1eb247]);let _0x214876=0x0;for(const _0x5e6d6d of _0x464750){const _0xf386f6=this['_getVidAttributeName'](_0x5e6d6d),_0x4bb1e8=_0x5e6d6d['item']['getAttribute'](_0xf386f6);if(!_0x102053['has'](_0x4bb1e8)&&!_0x1cc615['has'](_0x4bb1e8)){if(_0x317675['has'](_0x4bb1e8))_0x214876++;else{if(_0x4bb1e8!=_0x4dd317[_0x214876]){const _0x1f3101=_0x5a99be['get'](_0x4bb1e8)||_0x5a99be['get'](_0x4dd317[_0x214876]);for(;_0x4bb1e8!=_0x4dd317[_0x214876];)_0x317675['has'](_0x4dd317[_0x214876])||(_0x1cc615['set'](_0x4dd317[_0x214876],_0x1f3101),_0x5a99be['set'](_0x4dd317[_0x214876],_0x1f3101)),_0x214876++;}_0x214876++;}}}}for(const _0x1a9acf of _0x3e06c5){const _0x17c410=_0x7fb5dd['insertions'][_0x1a9acf];for(const _0x4b887d of _0x17c410){const _0x183e04=this['_getVidAttributeName'](_0x4b887d),_0x5af8f4=_0x4b887d['item']['getAttribute'](_0x183e04);if(_0x1cc615['has'](_0x5af8f4)){const _0x419c23=_0x1cc615['get'](_0x5af8f4);_0x317675['has'](_0x5af8f4)||_0x317675['set'](_0x5af8f4,{..._0x419c23}),_0x102053['set'](_0x5af8f4,{..._0x419c23});}}}for(const _0x57532e of _0x317675['keys']())_0x57532e>=this['_startingRevisionId']&&_0x317675['delete'](_0x57532e);const _0x52b860=new Map();for(const _0x46ee71 of _0x3e06c5){let _0x131579=_0x7fb5dd['insertions'][_0x46ee71];for(const _0x2615b1 of _0x131579)if(_0x2615b1['item']['is']('element','tableCell')){const _0x4b4905=this['_getVidAttributeName'](_0x2615b1),_0x1983cb=_0x2615b1['item']['getAttribute'](_0x4b4905);if(_0x102053['has'](_0x1983cb)){const _0x5ad47d=_0x2615b1['item']['parent']['parent']['getAttribute']('vid_start'),_0x42e5be=_0x52b860['get'](_0x5ad47d)||new Set();_0x42e5be['add'](_0x102053['get'](_0x1983cb)['userId']),_0x52b860['set'](_0x5ad47d,_0x42e5be);}}_0x131579=_0x7fb5dd['deletions'][_0x46ee71];for(const _0x492da2 of _0x131579)if(_0x492da2['item']['is']('element','tableCell')){const _0x47bfcc=this['_getVidAttributeName'](_0x492da2),_0x11e047=_0x492da2['item']['getAttribute'](_0x47bfcc);if(_0x317675['has'](_0x11e047)){const _0x4008da=_0x492da2['item']['parent']['parent']['getAttribute']('vid_start'),_0x28c8f3=_0x52b860['get'](_0x4008da)||new Set();_0x28c8f3['add'](_0x317675['get'](_0x11e047)['userId']),_0x52b860['set'](_0x4008da,_0x28c8f3);}}for(const _0x50d831 of _0x52b860['keys']())(_0x102053['has'](_0x50d831)||_0x317675['has'](_0x50d831))&&_0x52b860['delete'](_0x50d831);}for(const _0x4661c9 of _0x3e06c5){const _0x3ac7f3=_0x7fb5dd['insertions'][_0x4661c9];let _0x3a234d=null,_0x2fe4fc=null;for(const _0x57a4f9 of _0x3ac7f3){const _0x438ba5=this['_getVidAttributeName'](_0x57a4f9),_0xff7578=_0x57a4f9['item']['getAttribute'](_0x438ba5),_0x472a1e=_0x52b860['get'](_0xff7578);_0x472a1e&&'elementStart'==_0x57a4f9['type']&&(_0x3a234d=Array['from'](_0x472a1e)[0x0],_0x2fe4fc=_0x57a4f9['item']['getAttribute']('vid_end')),_0x3a234d&&(_0x317675['set'](_0xff7578,{'userId':_0x3a234d}),_0x102053['set'](_0xff7578,{'userId':_0x3a234d})),_0xff7578==_0x2fe4fc&&(_0x3a234d=null,_0x2fe4fc=null);}}const _0x1542a7={},_0xcf5db2=new Set();for(const _0x54f599 of _0x3e06c5){const _0x4c257c=_0x4b26bc['deletions'][_0x54f599],_0x918937=_0x4b26bc['insertions'][_0x54f599];for(const {userId:_0x58a82b}of this['_touchedMarkers']['values']())null!==_0x58a82b&&_0xcf5db2['add'](_0x58a82b);for(const {userId:_0x3bf982}of this['_touchedRoots']['values']())null!==_0x3bf982&&_0xcf5db2['add'](_0x3bf982);this['_markChanges'](_0x918937,_0x7fb5dd['insertions'][_0x54f599],_0x102053,'insertion',_0xcf5db2),this['_markChanges'](_0x4c257c,_0x7fb5dd['deletions'][_0x54f599],_0x317675,'deletion',_0xcf5db2),_0x1542a7[_0x54f599]={'insertions':this['_prepareViewToSave'](_0x918937),'deletions':this['_prepareViewToSave'](_0x4c257c),'attachChange':this['_touchedRoots']['get'](_0x54f599)||null,'attributesBefore':_0x3656c2(this['_baseRootsAttributes']['get'](_0x54f599))||{},'attributesAfter':_0x3656c2(this['_diffRootsAttributes']['get'](_0x54f599))};}return{'diffData':_0x1542a7,'authorsIds':Array['from'](_0xcf5db2)};}['_processRootBeforeSave'](_0x386ab7){for(const [,_0x4cf27b]of _0x386ab7['markers']){const _0x4eb461=_0x4cf27b['start']['getAncestors']()['filter'](_0x2dd982=>'tableCell'==_0x2dd982['name']);for(const _0x51e580 of _0x4eb461)0x1==_0x51e580['childCount']&&_0x51e580['getChild'](0x0)['is']('element','paragraph')&&_0x51e580['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x363c5a){this['_processRootBeforeSave'](_0x363c5a);const _0x2fdcca=this['editor']['data']['toView'](_0x363c5a,{}),_0x4b3a5f=Array['from'](_0x2fdcca['getChildren']())['map'](_0x19f275=>this['_getViewJson'](_0x19f275));return JSON['stringify'](_0x4b3a5f);}['_getViewJson'](_0x32bd42){if(_0x32bd42['is']('$text'))return _0x32bd42['data'];{const _0x51ab4b=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x35232c=_0x32bd42,_0x557eda=this['editor']['data']['htmlProcessor']['domConverter'],_0x1dd73a={'type':_0x51ab4b['_getTypeCharForViewElement'](_0x35232c),'name':_0x35232c['name'],'attributes':Array['from'](_0x35232c['getAttributes']()),'children':Array['from'](_0x35232c['getChildren']())['map'](_0x39034a=>this['_getViewJson'](_0x39034a))};if(_0x32bd42['is']('uiElement')&&'$comment'!=_0x32bd42['name']){const _0x37dcbd=_0x32bd42['render'](_0x557eda['domDocument'],_0x557eda);_0x1dd73a['children']['push'](_0x37dcbd['outerHTML']);}else{if(_0x32bd42['is']('rawElement')){const _0x2a6436=_0x557eda['domDocument']['createElement'](_0x35232c['name']);_0x32bd42['render'](_0x2a6436,_0x557eda),_0x1dd73a['children']['push'](_0x2a6436['innerHTML']);}}const _0x55a5b5=Array['from'](_0x35232c['getCustomProperties']());_0x55a5b5['length']>0x0&&(_0x1dd73a['customProperties']=_0x55a5b5);const _0x52b252=_0x35232c['getFillerOffset']();return null!==_0x52b252&&(_0x1dd73a['fillerOffset']=_0x52b252),_0x1dd73a;}}['_markChanges'](_0x31dbed,_0x37897d,_0x43e7f0,_0x48b404,_0x1d879b){let _0x56756c=null,_0x496b75=null,_0x10b07b=0x0;const _0x245cda=this['editor']['model'];for(let _0x505590=0x0;_0x505590<_0x37897d['length'];_0x505590++){const _0x2eee8b=this['_getVidAttributeName'](_0x37897d[_0x505590]),_0x421740=_0x37897d[_0x505590]['item']['getAttribute'](_0x2eee8b),_0x3c4d79=_0x43e7f0['get'](_0x421740),_0x486e61=_0x505590==_0x37897d['length']-0x1;(!_0x56756c&&_0x3c4d79&&(_0x56756c=_0x3c4d79,_0x496b75=_0x37897d[_0x505590]),_0x56756c&&(!_0x3c4d79||_0x3c4d79['userId']!=_0x56756c['userId']))&&(_0x387d8f(_0x3c4d79,F(_0x496b75,_0x31dbed,_0x245cda),F(_0x37897d[_0x505590],_0x31dbed,_0x245cda)),_0x56756c=_0x3c4d79||null,_0x496b75=_0x3c4d79?_0x37897d[_0x505590]:null),_0x56756c&&_0x486e61&&_0x387d8f(_0x3c4d79,F(_0x496b75,_0x31dbed,_0x245cda),B(_0x37897d[_0x505590],_0x31dbed,_0x245cda));}function _0x387d8f(_0x4d058e,_0xd54de9,_0x38326d){const _0x572810=_0x56756c['userId'],_0x21a283='revision:'+_0x48b404+':'+_0x572810+':'+_0x10b07b++,_0x39e29d=_0x245cda['createRange'](_0xd54de9,_0x38326d);_0x31dbed['markers']['set'](_0x21a283,_0x39e29d),null!==_0x572810&&_0x1d879b['add'](_0x572810);}}['_getVidAttributeName'](_0x24cf83){switch(_0x24cf83['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x17a184,_0x567462){_0x17a184['baseVersion']=null;for(const _0x4a2579 in _0x17a184){const _0x1f4d0e=_0x17a184[_0x4a2579];if(_0x1f4d0e instanceof ft){const _0x2d1d63=_0x567462['get'](_0x1f4d0e['root']['rootName']);_0x17a184[_0x4a2579]=this['_fixPosition'](_0x1f4d0e,_0x2d1d63);}if(_0x1f4d0e instanceof lt){const _0x2d9941=_0x567462['get'](_0x1f4d0e['root']['rootName']);_0x17a184[_0x4a2579]=this['_fixRange'](_0x1f4d0e,_0x2d9941);}'root'===_0x4a2579&&(_0x17a184['root']=_0x567462['get'](_0x17a184['root']['rootName']));}}['_fixRange'](_0x6f6d7b,_0x339e88){return this['editor']['model']['createRange'](this['_fixPosition'](_0x6f6d7b['start'],_0x339e88),this['_fixPosition'](_0x6f6d7b['end'],_0x339e88));}['_fixPosition'](_0x272bf2,_0x2720c9){return this['editor']['model']['createPositionFromPath'](_0x2720c9,_0x272bf2['path'],_0x272bf2['stickiness']);}['_handleInsertOperation'](_0x517aa7){const _0x2920b4=this['_idsRoots']['get'](_0x517aa7['position']['root']['rootName']),_0x21ffbe=this['_fixPosition'](_0x517aa7['position'],_0x2920b4),_0x27e9e5=null===_0x517aa7['_authorId']?null:_0x517aa7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44d4e6=_0x21ffbe['parent'],_0x17f16d=this['_revisionId'],_0x46fc1f=[];for(const _0x235bc3 of _0x517aa7['nodes'])if(_0x235bc3['is']('element'))_0x46fc1f['push'](this['_makeIdsRoot'](_0x235bc3));else{for(let _0xfd1f08=0x0;_0xfd1f08<_0x235bc3['offsetSize'];_0xfd1f08++)_0x46fc1f['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3b73d0=this['_revisionId'];for(let _0x2ad2a5=_0x17f16d;_0x2ad2a5<_0x3b73d0;_0x2ad2a5++)this['_touched']['set'](_0x2ad2a5,{'userId':_0x27e9e5});_0x44d4e6['_insertChild'](_0x21ffbe['offset'],_0x46fc1f);}['_handleMoveOperation'](_0x2269db){(_0x2269db=this['_cloneOperation'](_0x2269db,this['_idsRoots']))['_execute']();const _0x1ce719=null===_0x2269db['_authorId']?null:_0x2269db['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x526f48=_0x2269db['getMovedRangeStart'](),_0x156b38=_0x526f48['parent'],_0x55749d=_0x526f48['offset'];!function _0x3f8011(_0x541063,_0x4ee94e,_0x51aa46,_0x127ea4){for(let _0x129fa5=_0x51aa46;_0x129fa5<_0x127ea4;_0x129fa5++){const _0xe538d8=_0x4ee94e['getChild'](_0x129fa5);_0xe538d8['is']('element','$text')?_0x541063['set'](_0xe538d8['getAttribute']('vid'),{'userId':_0x1ce719}):(_0x541063['set'](_0xe538d8['getAttribute']('vid_start'),{'userId':_0x1ce719}),_0x3f8011(_0x541063,_0xe538d8,0x0,_0xe538d8['childCount']),_0x541063['set'](_0xe538d8['getAttribute']('vid_end'),{'userId':_0x1ce719}));}}(this['_touched'],_0x156b38,_0x55749d,_0x55749d+_0x2269db['howMany']);}['_handleMergeOperation'](_0x4434c8){const _0x5be71f=null===(_0x4434c8=this['_cloneOperation'](_0x4434c8,this['_idsRoots']))['_authorId']?null:_0x4434c8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x521777=_0x4434c8['targetPosition']['parent'],_0x4aedf5=_0x4434c8['sourcePosition']['parent'],_0x48bcf8=_0x521777['getAttribute']('vid_end'),_0xa75b61=_0x4aedf5['getAttribute']('vid_start');_0x521777['_setAttribute']('vid_end',_0x4aedf5['getAttribute']('vid_end')),_0x4aedf5['_setAttribute']('vid_end',_0x48bcf8),this['_touched']['set'](_0xa75b61,{'userId':_0x5be71f}),this['_touched']['set'](_0x48bcf8,{'userId':_0x5be71f}),_0x4434c8['_execute']();}['_handleSplitOperation'](_0x54e7cf){const _0x24ea18=null===(_0x54e7cf=this['_cloneOperation'](_0x54e7cf,this['_idsRoots']))['_authorId']?null:_0x54e7cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x336b4b=_0x54e7cf['graveyardPosition'],_0x1d72cb=_0x54e7cf['splitPosition']['parent'];_0x54e7cf['_execute']();const _0x1c2510=_0x1d72cb['getAttribute']('vid_end'),_0x48725a=_0x54e7cf['insertionPosition']['nodeAfter'];if(_0x336b4b){const _0x188e83=_0x48725a['getAttribute']('vid_end'),_0x1f4133=_0x1d72cb['getAttribute']('vid_end');_0x1d72cb['_setAttribute']('vid_end',_0x188e83),_0x48725a['_setAttribute']('vid_end',_0x1f4133),this['_touched']['set'](_0x1d72cb['getAttribute']('vid_end'),{'userId':_0x24ea18}),this['_touched']['set'](_0x48725a['getAttribute']('vid_start'),{'userId':_0x24ea18});}else{const _0x25097e=this['_revisionId']++,_0x51a4f3=this['_revisionId']++;_0x1d72cb['_setAttribute']('vid_end',_0x25097e),_0x48725a['_setAttribute']('vid_start',_0x51a4f3),_0x48725a['_setAttribute']('vid_end',_0x1c2510),this['_touched']['set'](_0x25097e,{'userId':_0x24ea18}),this['_touched']['set'](_0x51a4f3,{'userId':_0x24ea18});}}['_handleMarkerOperation'](_0x233ba1){if(!_0x233ba1['affectsData'])return;const _0x38ff4f=(_0x233ba1=this['_cloneOperation'](_0x233ba1,this['_diffRoots']))['oldRange']?_0x233ba1['oldRange']['root']:null,_0x5976a1=_0x233ba1['newRange']?_0x233ba1['newRange']['root']:null;_0x38ff4f&&this['_markers']['delete'](_0x233ba1['name']),_0x5976a1&&this['_markers']['set'](_0x233ba1['name'],_0x233ba1['newRange']['clone']());const _0x4a7a53=null===_0x233ba1['_authorId']?null:_0x233ba1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34d1be=_0x233ba1['name'];if(!this['_touchedMarkers']['has'](_0x34d1be))return void this['_touchedMarkers']['set'](_0x34d1be,{'range':_0x233ba1['oldRange'],'userId':_0x4a7a53});const _0x204aeb=this['_touchedMarkers']['get'](_0x34d1be),_0x5b2490=_0x204aeb['range'],_0x5e920a=_0x233ba1['newRange'];null==_0x5b2490&&null==_0x5e920a||_0x5b2490&&_0x5e920a&&_0x5b2490['isEqual'](_0x5e920a)?this['_touchedMarkers']['delete'](_0x233ba1['name']):_0x204aeb['userId']=_0x4a7a53;}['_handleRootOperation'](_0x3d0ad4,_0xa2d600){this['_diffRoots']['has'](_0x3d0ad4['rootName'])?this['_diffRoots']['get'](_0x3d0ad4['rootName'])['_isAttached']=_0x3d0ad4['isAdd']:(this['_diffRoots']['set'](_0x3d0ad4['rootName'],P(_0x3d0ad4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3d0ad4['rootName'],{}),_0xa2d600&&this['_idsRoots']['set'](_0x3d0ad4['rootName'],P(_0x3d0ad4['rootName'],!0x0)));const _0x5f507a=null===_0x3d0ad4['_authorId']?null:_0x3d0ad4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x500721=this['_touchedRoots']['get'](_0x3d0ad4['rootName']);_0x500721&&_0x500721['userId']===_0x5f507a?this['_touchedRoots']['delete'](_0x3d0ad4['rootName']):this['_touchedRoots']['set'](_0x3d0ad4['rootName'],{'userId':_0x5f507a,'isAttached':_0x3d0ad4['isAdd']});}['_handleRootAttributeOperation'](_0x2eb0e3){const _0x2a5b42=this['_diffRootsAttributes']['get'](_0x2eb0e3['root']['rootName']);null===_0x2eb0e3['newValue']?delete _0x2a5b42[_0x2eb0e3['key']]:_0x2a5b42[_0x2eb0e3['key']]=_0x2eb0e3['newValue'];}}function N(_0x5c8722){const _0x3d73fb=P(_0x5c8722['rootName'],_0x5c8722['isAttached']());for(const _0x290be0 of _0x5c8722['getChildren']()){const _0x2fadf2=_0x290be0['_clone'](!0x0);_0x3d73fb['_appendChild'](_0x2fadf2);}return _0x3d73fb;}function P(_0x4fc1fa,_0x1c601b=!0x0){const _0x3dd1a6=new vt();return _0x3dd1a6['rootName']=_0x4fc1fa,_0x3dd1a6['_isAttached']=_0x1c601b,_0x3dd1a6['isAttached']=()=>_0x3dd1a6['_isAttached'],_0x3dd1a6;}function F(_0x1fe3fd,_0x5a9256,_0x3013ec){const _0x12764c='elementEnd'==_0x1fe3fd['type']?_0x3013ec['createPositionAt'](_0x1fe3fd['item'],'end'):_0x3013ec['createPositionBefore'](_0x1fe3fd['item']);return _0x3013ec['createPositionFromPath'](_0x5a9256,_0x12764c['path'],_0x12764c['stickiness']);}function B(_0x16b516,_0x52c50d,_0x502cea){const _0x186ece='elementStart'==_0x16b516['type']?_0x502cea['createPositionAt'](_0x16b516['item'],0x0):_0x502cea['createPositionAfter'](_0x16b516['item']);return _0x502cea['createPositionFromPath'](_0x52c50d,_0x186ece['path'],_0x186ece['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x36907c,_0x271fd2){super(_0x36907c),this['focusTracker']=new _0x595364(),this['keystrokes']=new _0x2c2955(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x271fd2),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1610b6(this);}['render'](){super['render'](),_0x175549({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x30a726=_0x3bd48c=>_0x3bd48c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x30a726),this['keystrokes']['set']('arrowleft',_0x30a726),this['keystrokes']['set']('arrowup',_0x30a726),this['keystrokes']['set']('arrowdown',_0x30a726);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x509dcf){this['revisionNameInputView']['fieldView']['element']['value']=_0x509dcf['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x29ec43){const _0x4ab08a=new _0x4263ed(this['locale'],_0x3eb06c),_0x5ca06f=_0x4ab08a['fieldView'];_0x5ca06f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x271613=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x29ec43&&(_0x271613+='\x20('+g(this['locale'],'optional')+')'),(_0x4ab08a['label']=_0x271613,_0x5ca06f['on']('input',()=>{this['revisionNameInputValue']=_0x5ca06f['element']['value']['trim']();}),_0x4ab08a);}}class f extends _0x4fedf0{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5ef169=this['editor'],_0x5689d1=_0x5ef169['plugins']['get']('RevisionTracker');_0x5ef169['ui']['componentFactory']['add']('revisionHistory',_0x2bf9ff=>{const _0x3c2dd3=_0x4b06b6(_0x2bf9ff),_0x1ebdbd=_0x3c2dd3['panelView']['children'],_0x2ca1fb=new _0x29732b(_0x2bf9ff),_0x5ac4cb=new _0x53c893(_0x2bf9ff),_0x523679=new te(_0x2bf9ff),_0x23008d=new _0x53c893(_0x2bf9ff),_0x517e70=new te(_0x2bf9ff);return _0x3c2dd3['bind']('isEnabled')['to'](_0x5689d1,'isReady',_0x5689d1,'isEnabled',_0x5ef169,'isReadOnly',(_0x5dcf49,_0xd9c88b,_0x365767)=>_0x5dcf49&&_0xd9c88b&&!_0x365767),_0x3c2dd3['buttonView']['set']({'icon':_0x49a408,'label':g(_0x2bf9ff,'Revision\x20history'),'tooltip':!0x0}),_0x523679['set']({'label':g(_0x2bf9ff,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x523679['bind']('isEnabled')['to'](_0x5689d1,'isReady',_0x5689d1,'isEnabled',_0x5ef169,'isReadOnly',(_0x5e0f9c,_0x461d81,_0x3a4c11)=>_0x5e0f9c&&_0x461d81&&!_0x3a4c11),_0x523679['on']('execute',()=>this['_showDialog']()),_0x517e70['set']({'label':g(_0x2bf9ff,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x517e70['bind']('isEnabled')['to'](_0x5689d1,'isReady',_0x5ef169,'isReadOnly',(_0xeccc31,_0x271cd0)=>_0xeccc31&&!_0x271cd0),_0x517e70['on']('execute',()=>{_0x5ef169['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3c2dd3['isOpen']=!0x1,_0x5ef169['editing']['view']['focus']();}),_0x5ac4cb['children']['add'](_0x523679),_0x23008d['children']['add'](_0x517e70),_0x2ca1fb['role']='menu',_0x2ca1fb['items']['addMany']([_0x5ac4cb,_0x23008d]),_0x1ebdbd['add'](_0x2ca1fb),_0x3c2dd3;}),_0x5ef169['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x44b09e=this['editor'],_0x2ba582=_0x44b09e['locale'],_0x3b9c0d=new _0x57c2d8(_0x2ba582),_0xb2c1a=new _0x59448c(_0x2ba582);_0x3b9c0d['buttonView']['set']({'icon':_0x49a408,'label':g(_0x2ba582,'Revision\x20history')});const _0x8c5f05=new _0x40cac4(_0x2ba582,_0x3b9c0d),_0x1beb6d=new _0x1d3030(_0x2ba582);_0x1beb6d['set']({'label':g(_0x2ba582,'Save\x20current\x20revision')}),_0x1beb6d['delegate']('execute')['to'](_0x3b9c0d),_0x1beb6d['on']('execute',()=>{this['_showDialog']();}),_0x8c5f05['children']['add'](_0x1beb6d),_0xb2c1a['items']['add'](_0x8c5f05);const _0x474c37=new _0x40cac4(_0x2ba582,_0x3b9c0d),_0x2ddb2a=new _0x1d3030(_0x2ba582);return _0x2ddb2a['set']({'label':g(_0x2ba582,'Open\x20revision\x20history')}),_0x2ddb2a['delegate']('execute')['to'](_0x3b9c0d),_0x2ddb2a['on']('execute',()=>{_0x44b09e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x474c37['children']['add'](_0x2ddb2a),_0xb2c1a['items']['add'](_0x474c37),_0x3b9c0d['panelView']['children']['add'](_0xb2c1a),_0x3b9c0d;}['_showDialog'](){const _0x2f4a57=this['editor'],_0x5200e8=_0x2f4a57['locale'],_0x1a678c=_0x2f4a57['plugins']['get']('Dialog'),_0x25b106=_0x2f4a57['plugins']['get']('RevisionTracker');function _0x10b78d(_0x315b15){_0x2f4a57['config']['get']('revisionHistory.requireRevisionName')&&''===_0x315b15['revisionName']?_0x315b15['revisionNameInputView']['errorText']=g(_0x5200e8,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2f4a57['plugins']['get'](u)['saveRevision']({'name':_0x315b15['revisionName']}),_0x1a678c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x10b78d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1a678c['show']({'id':'revisionSave','title':g(_0x5200e8,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x2f4a57['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1a678c['hide']()},{'label':g(_0x2f4a57['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x24101e){_0x24101e['bind']('isEnabled')['to'](_0x25b106,'isReady',_0x25b106,'isEnabled',_0x2f4a57,'isReadOnly',(_0xcb5fef,_0x4d016c,_0x17471d)=>_0xcb5fef&&_0x4d016c&&!_0x17471d);},'onExecute':()=>_0x10b78d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5a5148=this['editor'],_0x57d596=_0x5a5148['locale'];this['_saveRevisionFormView']=new hs(_0x57d596,_0x5a5148['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x5b03d4,_0xaf12b){super(_0x5b03d4),this['_model']=_0xaf12b,this['changeId']=_0xaf12b['id'];const _0x1d2321=this['bindTemplate'],_0x343dce=g(_0x5b03d4,_0xaf12b['data']['isSuggestion']?'Suggested\x20by':'add'==_0xaf12b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xaf12b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1d2321['to']('type',_0x5c207c=>'ck-revision-change__'+_0x5c207c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x343dce}]},{'text':'\x20'+_0xaf12b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x295186(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2dc32e){super(),this['id']=_0x2dc32e['id']||_0x50688e(),this['author']=_0x2dc32e['author'],this['type']=_0x2dc32e['type'],this['data']=_0x2dc32e['data']||{},this['rootName']=_0x2dc32e['rootName'],this['set']('createdAt',_0x2dc32e['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x533039,_0x173224){this['newRevisionId']=_0x533039,this['oldRevisionId']=_0x173224,this['changes']=new _0x428f3c();}['_setChanges'](_0x5accbc){for(const _0x36843b of _0x5accbc)this['changes']['add'](_0x36843b);}}class m extends _0x4fedf0{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4b58b7,_0x57dc8b,I,V];}constructor(_0x322ce3){super(_0x322ce3),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2f235d,_0x557960,_0x31267d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5c2b70=>{for(const _0x9dc64d of this['editor']['editing']['view']['document']['roots'])_0x31267d?_0x5c2b70['removeClass']('ck-editor__editable__overlay',_0x9dc64d):_0x5c2b70['addClass']('ck-editor__editable__overlay',_0x9dc64d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xde1386=>null!==_0xde1386),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x38166c,_0x4788e8,_0x51d654)=>_0x38166c&&_0x51d654?_0x4788e8['changes']['getIndex'](_0x51d654):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x296a3b,_0x1369a8)=>_0x296a3b?_0x1369a8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x57dc8b);}['init'](){const _0x99250b=this['editor'],_0x12e7d5=new wt(_0x99250b,{'direction':'backward'}),_0x5f5c95=new wt(_0x99250b,{'direction':'forward'});(_0x99250b['commands']['add']('showPreviousChange',_0x12e7d5),_0x99250b['commands']['add']('showNextChange',_0x5f5c95),_0x99250b['commands']['add']('restoreRevision',new mt(_0x99250b)),this['on']('change:numberOfChanges',()=>{_0x12e7d5['refresh'](),_0x5f5c95['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x99250b['enableReadOnlyMode']('revision-viewer'),_0x99250b['plugins']['has']('WidgetToolbarRepository'))&&_0x99250b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x264bd5){return await this['_utils']['loadRevisionData'](_0x264bd5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x264bd5);}async['getRevisionRootsAttributes'](_0x39428b){return await this['_utils']['loadRevisionData'](_0x39428b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x39428b);}async['compare'](_0x2710e0,_0x2840a4,_0x5e3a4a=!0x1){if(!this['isEnabled'])return;const _0xbf5a1c=this['diff'],_0x82cc37=this['repository'],_0x2d1f7b='string'==typeof _0x2710e0?_0x82cc37['getRevision'](_0x2710e0):_0x2710e0,_0x3d54f9='string'==typeof _0x2840a4?_0x82cc37['getRevision'](_0x2840a4):_0x2840a4,_0x13c745=_0x2d1f7b['id'],_0x5d1573=_0x3d54f9?_0x3d54f9['id']:null;if(!_0x5e3a4a&&this['diff']&&this['diff']['newRevisionId']===_0x13c745&&this['diff']['oldRevisionId']===_0x5d1573)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x13c745,_0x5d1573);const _0x10ae62=this['_getRevisionsRange'](_0x2d1f7b,_0x3d54f9,!0x0)['map'](_0x4c2500=>this['_utils']['loadRevisionData'](_0x4c2500,this['adapter']));return _0x10ae62['push'](new Promise(_0x2eb33c=>{setTimeout(_0x2eb33c,0x14);})),Promise['all'](_0x10ae62)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x130336=this['_getDiff'](_0x13c745,_0x5d1573);for(const _0x6b61bc of _0x130336['changes'])this['_changeIdToChange']['set'](_0x6b61bc['id'],_0x6b61bc);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x589a29=>{for(const _0x3da04a of this['editor']['model']['document']['getRootNames']())_0x589a29['detachRoot'](_0x3da04a);for(const _0x3ab43d of Object['keys'](_0x130336['model'])){const _0x21a59f=_0x589a29['addRoot'](_0x3ab43d);for(const _0x54e4ce of Object['keys'](_0x130336['attributes'][_0x3ab43d]))_0x589a29['setAttribute'](_0x54e4ce,_0x130336['attributes'][_0x3ab43d][_0x54e4ce],_0x21a59f);_0x589a29['insert'](_0x130336['model'][_0x3ab43d],_0x21a59f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x130336['changes'])),this['isReady']=!0x0;})['catch'](_0x17ccf0=>{console['error'](_0x17ccf0),this['_cleanUp'](),_0xbf5a1c&&(this['diff']=_0xbf5a1c),this['isReady']=!0x0;});}['addRevisionData'](_0xcdd2f1,_0x50e655){const _0x4903a2=this['repository']['createRevision'](_0xcdd2f1);return _0x4903a2['on']('_update',(_0x56a3c9,_0x1ddc84,_0x25c233)=>_0x50e655(_0x1ddc84,_0x25c233,_0x4903a2)),this['repository']['addRevision'](_0x4903a2),_0x4903a2;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4d5845=>{for(const _0xf65c0 of this['editor']['model']['document']['getRootNames']())_0x4d5845['detachRoot'](_0xf65c0);});}['_sortAndFilterDiffChanges'](_0x5ecaea){const _0x202429=[],_0x227ed8=new Map();for(const _0x7ffe3b of this['editor']['model']['document']['getRootNames']()){const _0x5e8170=this['editor']['editing']['view']['getDomRoot'](_0x7ffe3b);if(!_0x5e8170)continue;const _0x53e06e=_0x5e8170['getClientRects']()['item'](0x0);_0x53e06e&&(_0x202429['push'](_0x7ffe3b),_0x227ed8['set'](_0x7ffe3b,_0x53e06e));}return _0x202429['sort']((_0x33a76d,_0x916726)=>{const _0x897d95=_0x227ed8['get'](_0x33a76d),_0x4f1237=_0x227ed8['get'](_0x916726);return _0x897d95['y']-_0x4f1237['y']||_0x897d95['x']-_0x4f1237['x'];}),(_0x5ecaea=_0x5ecaea['filter'](_0x5c4d94=>_0x202429['includes'](_0x5c4d94['rootName'])))['sort']((_0x459500,_0x726d6e)=>_0x202429['indexOf'](_0x459500['rootName'])-_0x202429['indexOf'](_0x726d6e['rootName'])),_0x5ecaea;}['_makeTape'](_0x4a319b){const _0x384455=Array['from'](_0x4a319b['markers'])['filter'](([_0x1e709f,_0x17bfe9])=>_0x1e709f['startsWith']('revision:')&&!_0x17bfe9['isCollapsed']),_0x3a05e4=Array['from'](this['editor']['model']['createRangeIn'](_0x4a319b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x384455['length'])for(const _0x4a52d4 of _0x3a05e4){const [_0x1e9be4,_0x667e48]=_0x384455[0x0],[,_0x735a55,_0x146335]=_0x1e9be4['split'](':');if(_0x667e48['end']['isEqual'](_0x4a52d4['nextPosition'])&&_0x384455['shift'](),(_0x4a52d4['previousPosition']['isEqual'](_0x667e48['start'])||_0x4a52d4['previousPosition']['isAfter'](_0x667e48['start']))&&('insertion'==_0x735a55?_0x4a52d4['isAdded']={'userId':_0x146335}:'deletion'==_0x735a55&&(_0x4a52d4['isRemoved']={'userId':_0x146335})),0x0==_0x384455['length'])break;}return _0x3a05e4;}['_refreshStartEndIndex'](_0x383928){const _0xdb3270=new Map();for(let _0x12574c=0x0;_0x12574c<_0x383928['length'];_0x12574c++)'text'===_0x383928[_0x12574c]['type']?(_0x383928[_0x12574c]['item']['startIndex']=_0x12574c,_0x383928[_0x12574c]['item']['endIndex']=_0x12574c):('elementStart'===_0x383928[_0x12574c]['type']?_0x383928[_0x12574c]['item']['startIndex']=_0x12574c:'elementEnd'===_0x383928[_0x12574c]['type']&&(_0x383928[_0x12574c]['item']['endIndex']=_0x12574c),_0xdb3270['set'](_0x383928[_0x12574c]['id'],_0x12574c));for(const _0x9673a7 of _0xdb3270['values']())'elementStart'===_0x383928[_0x9673a7]['type']?_0x383928[_0x9673a7]['item']['endIndex']=_0xdb3270['get'](_0x383928[_0x9673a7]['pairId']):'elementEnd'===_0x383928[_0x9673a7]['type']&&(_0x383928[_0x9673a7]['item']['startIndex']=_0xdb3270['get'](_0x383928[_0x9673a7]['pairId']));}['_processTape'](_0x20c7ec){for(let _0x2d49b8=0x0;_0x2d49b8<_0x20c7ec['length'];_0x2d49b8++){if('elementStart'===_0x20c7ec[_0x2d49b8]['type'])_0x20c7ec[_0x2d49b8]['item']['startIndex']=_0x2d49b8;else{if('elementEnd'===_0x20c7ec[_0x2d49b8]['type']){_0x20c7ec[_0x2d49b8]['item']['endIndex']=_0x2d49b8;const _0x3e1c91=_0x20c7ec[_0x2d49b8]['item']['startIndex'];_0x20c7ec[_0x3e1c91]['pairId']=_0x20c7ec[_0x2d49b8]['id'],_0x20c7ec[_0x2d49b8]['pairId']=_0x20c7ec[_0x3e1c91]['id'];}else _0x20c7ec[_0x2d49b8]['item']['startIndex']=_0x2d49b8,_0x20c7ec[_0x2d49b8]['item']['endIndex']=_0x2d49b8,_0x20c7ec[_0x2d49b8]['pairId']=null;}_0x20c7ec[_0x2d49b8]['markersStart']||(_0x20c7ec[_0x2d49b8]['markersStart']=[],_0x20c7ec[_0x2d49b8]['markersEnd']=[]);}}['_markInsertions'](_0x2c3fe2,_0xbbbf41){const _0x2eedc9=_0x2c3fe2['filter'](_0x14ac80=>!_0x14ac80['isAdded']);for(let _0x944cdb=0x0;_0x944cdb<_0xbbbf41['length'];_0x944cdb++)_0xbbbf41[_0x944cdb]['isAdded']&&(_0x2eedc9[_0x944cdb]['isAdded']=_0xbbbf41[_0x944cdb]['isAdded']);}['_getDiff'](_0x3dfab7,_0x395199=null){const _0x3c0164=this['repository']['getRevision'](_0x3dfab7),_0xd5e479=_0x395199?this['repository']['getRevision'](_0x395199):null,_0x312e31=this['_getRevisionsRange'](_0x3c0164,_0xd5e479),_0x54936c=_0x312e31[_0x312e31['length']-0x1],_0x38f4fb=new Map(),_0x3dddc3={'model':{},'attributes':{},'changes':[]},_0x4baa5b=new Set(),_0x11d818=new Map();for(let _0x22faae=_0x312e31['length']-0x1;_0x22faae>=0x0;_0x22faae--){const _0xd015dd=_0x312e31[_0x22faae];for(const _0x389d7d of Object['keys'](_0xd015dd['diffData']))if(_0xd015dd['diffData'][_0x389d7d]['attachChange']){const _0x172d5f=_0xd015dd['diffData'][_0x389d7d]['attachChange'];_0x172d5f['isAttached']?(_0x4baa5b['add'](_0x389d7d),_0x11d818['has'](_0x389d7d)&&_0x11d818['get'](_0x389d7d)['userId']==_0x172d5f['userId']?_0x11d818['delete'](_0x389d7d):_0x11d818['set'](_0x389d7d,_0x172d5f)):_0x11d818['has'](_0x389d7d)?(_0x4baa5b['delete'](_0x389d7d),_0x11d818['delete'](_0x389d7d)):(_0x4baa5b['add'](_0x389d7d),_0x11d818['set'](_0x389d7d,_0x172d5f));}else _0x4baa5b['add'](_0x389d7d);}for(const _0x551b50 of _0x4baa5b){const _0x98eded=_0x11d818['has'](_0x551b50)&&!_0x11d818['get'](_0x551b50)['isAttached'];let _0x154a92=_0x98eded?_0x312e31['length']-0x1:0x0;const _0x34cc6b=_0x98eded?-0x1:0x1;for(;_0x312e31[_0x154a92];){const _0xd2506e=_0x312e31[_0x154a92];if(_0xd2506e['diffData'][_0x551b50]){const _0x3e48a6=_0x98eded?_0xd2506e['diffData'][_0x551b50]['attributesBefore']:_0xd2506e['diffData'][_0x551b50]['attributesAfter'];_0x3dddc3['attributes'][_0x551b50]=_0x3e48a6?_0x3656c2(_0x3e48a6):{};break;}_0x154a92+=_0x34cc6b;}}for(const _0x373423 of _0x312e31){_0x373423['model']={};for(const _0x35d83a of _0x373423['authors'])_0x38f4fb['set'](_0x35d83a['id'],_0x35d83a);for(const _0x533bc9 of _0x4baa5b){const _0xb10927=_0x373423['diffData'][_0x533bc9]?_0x373423['diffData'][_0x533bc9]['insertions']:'[]',_0x19239a=_0x373423['diffData'][_0x533bc9]?_0x373423['diffData'][_0x533bc9]['deletions']:'[]';_0x373423['model'][_0x533bc9]={'insertions':this['_utils']['_makeModelFromViewString'](_0xb10927),'deletions':this['_utils']['_makeModelFromViewString'](_0x19239a)};}}for(const _0x546075 of _0x4baa5b){let _0x19d897=null,_0x4fe04e=0x0;const _0x32d4ca=new Map(Array['from'](_0x3c0164['model'][_0x546075]['insertions']['markers'])['filter'](([_0x144614])=>!_0x144614['startsWith']('revision:')));let _0x2749fb=0x0;for(const _0x5f4e21 of _0x312e31){const _0x3e52e2=this['_makeTape'](_0x5f4e21['model'][_0x546075]['insertions']);_0x5f4e21==_0x3c0164?(_0x19d897=_0x3e52e2,_0x4fe04e=_0x19d897['length'],_0x19d897['forEach'](_0x35c265=>{_0x35c265['id']=_0x2749fb++;}),this['_processTape'](_0x19d897)):this['_markInsertions'](_0x19d897,_0x3e52e2);const _0x4c99ab=_0x19d897['filter'](_0x4565c4=>!_0x4565c4['isAdded'])['map'](_0x3686ff=>_0x3686ff['id']);let _0x156d39=0x0;const _0x52c7e1=this['_makeTape'](_0x5f4e21['model'][_0x546075]['deletions']);_0x52c7e1['forEach'](_0x3ec9b3=>{_0x3ec9b3['isRemoved']?_0x3ec9b3['id']=_0x4fe04e++:_0x3ec9b3['id']=_0x4c99ab[_0x156d39++];}),this['_processTape'](_0x52c7e1),this['_setDistance'](_0x19d897,'isAdded'),this['_setDistance'](_0x52c7e1,'isRemoved'),_0x5f4e21==_0x3c0164&&this['_markMarkers'](_0x19d897,_0x32d4ca),_0x19d897=this['_joinTapes'](_0x19d897,_0x52c7e1),this['_refreshStartEndIndex'](_0x19d897),this['_setDistance'](_0x19d897,'isRemoved');}_0x19d897=_0x19d897['filter'](_0x14b31f=>!(_0x14b31f['isAdded']&&_0x14b31f['isRemoved']));const _0x403cc7=new Map(_0x54936c['model'][_0x546075]['deletions']['markers']),_0x29a841=new Set(_0x32d4ca['keys']());for(const _0x169ccd of _0x403cc7['keys']())_0x29a841['delete'](_0x169ccd);this['_markSuggestions'](_0x19d897,_0x29a841),this['_fixObsoleteTags'](_0x19d897),_0x19d897=this['_removeMissingPairs'](_0x19d897),_0x19d897=this['_markMismatchedRemovedTags'](_0x19d897),_0x19d897=this['_removeUnsupportedChanges'](_0x19d897);const {root:_0x2d3b92,changes:_0x45c18a}=this['_makeModelFromTape'](_0x19d897,_0x38f4fb,_0x546075);_0x3dddc3['model'][_0x546075]=_0x2d3b92;const _0x4bb124=_0x11d818['get'](_0x546075);if(_0x4bb124){const _0x5e70d8=_0x38f4fb['get'](_0x4bb124['userId']),_0x2a88b8=new r({'author':_0x5e70d8,'type':_0x4bb124['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x546075});_0x45c18a['unshift'](_0x2a88b8),_0x3dddc3['attributes'][_0x546075]['revisionHistoryAttachChange']=_0x2a88b8['id'];}_0x3dddc3['changes']=_0x3dddc3['changes']['concat'](_0x45c18a);}return _0x3dddc3;}['_markMarkers'](_0x434797,_0x45e923){for(let _0x4c5f8b=0x0;_0x4c5f8b<_0x434797['length'];_0x4c5f8b++)for(const [_0xede01,_0x563843]of _0x45e923)!_0x563843['isCollapsed']&&_0x563843['start']['isEqual'](_0x434797[_0x4c5f8b]['previousPosition'])&&_0x434797[_0x4c5f8b]['markersStart']['push'](_0xede01),_0x563843['end']['isEqual'](_0x434797[_0x4c5f8b]['nextPosition'])&&_0x434797[_0x4c5f8b]['markersEnd']['push'](_0xede01);}['_joinTapes'](_0x3fed71,_0x4185f9){let _0x5e9602=[],_0x5238f7=0x0,_0x4a6fd1=0x0;for(;_0x5238f7<_0x3fed71['length']||_0x4a6fd1<_0x4185f9['length'];){const _0x2ec029=_0x3fed71[_0x5238f7]||{},_0x5f30f6=_0x4185f9[_0x4a6fd1]||{};if(_0x2ec029['id']==_0x5f30f6['id'])_0x5238f7++,_0x4a6fd1++,_0x5e9602['push'](_0x2ec029);else{if(_0x5f30f6['isRemoved']&&_0x2ec029['isAdded']){const {commonTape:_0x58e031,iEnd:_0xf03e59,jEnd:_0x2523d9}=this['_threeWayMerge'](_0x3fed71,_0x5238f7,_0x4185f9,_0x4a6fd1);_0x5e9602=_0x5e9602['concat'](_0x58e031),_0x5238f7=_0xf03e59,_0x4a6fd1=_0x2523d9;}else _0x5f30f6['isRemoved']?(_0x4a6fd1++,_0x5e9602['push'](_0x5f30f6)):(_0x5238f7++,_0x5e9602['push'](_0x2ec029));}}return _0x5e9602;}['_markSuggestions'](_0x2f19d7,_0x235e65){const _0xb9431d=[];for(let _0x574c4e=0x0;_0x574c4e<_0x2f19d7['length'];_0x574c4e++){for(let _0x455492=0x0;_0x455492<_0x2f19d7[_0x574c4e]['markersStart']['length'];_0x455492++){const _0x26706d=_0x2f19d7[_0x574c4e]['markersStart'][_0x455492];if(!_0x235e65['has'](_0x26706d))continue;const {group:_0x50cdff,type:_0x114661,authorId:_0x46945b}=_0x12485c(_0x26706d);'revision-suggestion'!=_0x50cdff||'insertion'!=_0x114661&&'deletion'!=_0x114661||(_0xb9431d['unshift']({'type':_0x114661,'name':_0x26706d,'userId':_0x46945b}),_0x2f19d7[_0x574c4e]['markersStart']['splice'](_0x455492,0x1),_0x455492--);}_0x4b1c10(_0x2f19d7[_0x574c4e]);for(let _0x45868e=0x0;_0x45868e<_0x2f19d7[_0x574c4e]['markersEnd']['length'];_0x45868e++){const _0x1226ea=_0x2f19d7[_0x574c4e]['markersEnd'][_0x45868e];if(!_0x235e65['has'](_0x1226ea))continue;const {group:_0xec5cb4,type:_0xbeeefc}=_0x12485c(_0x1226ea);if('revision-suggestion'!=_0xec5cb4||'insertion'!=_0xbeeefc&&'deletion'!=_0xbeeefc)continue;_0x2f19d7[_0x574c4e]['markersEnd']['splice'](_0x45868e,0x1),_0x45868e--;const _0x4c3b4d=_0xb9431d['findIndex'](_0x177983=>_0x177983['name']==_0x1226ea);_0x4c3b4d>-0x1&&_0xb9431d['splice'](_0x4c3b4d,0x1);}}function _0x12485c(_0x4a42f9){const _0x2106d3=_0x4a42f9['split'](':');return{'group':_0x2106d3[0x0],'type':_0x2106d3[0x1],'subType':_0x2106d3['length']>=0x5?_0x2106d3[0x2]:null,'id':_0x2106d3['length']<0x5?_0x2106d3[0x2]:_0x2106d3[0x3],'authorId':_0x2106d3['length']<0x5?_0x2106d3[0x3]:_0x2106d3[0x4],'markerCount':0x6==_0x2106d3['length']?_0x2106d3[0x5]:null};}function _0x4b1c10(_0x2a8366){for(let _0x358222=0x0;_0x358222<_0xb9431d['length'];_0x358222++){if(_0x2a8366['isAdded']&&'insertion'==_0xb9431d[_0x358222]['type'])return _0x2a8366['isAddSuggestion']=_0xb9431d[_0x358222],void delete _0x2a8366['isAdded'];if(!_0x2a8366['isAdded']&&!_0x2a8366['isRemoved']&&'deletion'==_0xb9431d[_0x358222]['type'])return void(_0x2a8366['isRemoveSuggestion']=_0xb9431d[_0x358222]);}}}['_setDistance'](_0x50a18b,_0x58a7da){let _0x58bb8a=0x0,_0x255612=!0x1;const _0x2877d0=new Map();for(const _0x2b1299 of _0x50a18b)_0x2b1299[_0x58a7da]?_0x255612&&(_0x58bb8a++,_0x255612=!0x1):(_0x58bb8a++,_0x255612=!0x0),_0x2877d0['set'](_0x2b1299['id'],_0x58bb8a);for(let _0x2d8d63=0x0;_0x2d8d63<_0x50a18b['length'];_0x2d8d63++){if('isRemoved'==_0x58a7da&&_0x50a18b[_0x2d8d63]['isAdded']||'isAdded'==_0x58a7da&&_0x50a18b[_0x2d8d63]['isRemoved'])continue;if('text'==_0x50a18b[_0x2d8d63]['type']){_0x50a18b[_0x2d8d63]['distance']=0x0;continue;}const _0x120dae=_0x2877d0['get'](_0x50a18b[_0x2d8d63]['pairId']),_0xadd00b=_0x2877d0['get'](_0x50a18b[_0x2d8d63]['id']);_0x50a18b[_0x2d8d63]['distance']=_0x120dae-_0xadd00b;}}['_getRevisionsRange'](_0x53f51a,_0x8c89c5,_0x34c405=!0x1){const _0x5b1afd=[];let _0xe1adf9=this['repository']['getIndex'](_0x53f51a),_0x589efd=this['repository']['getIndex'](_0x8c89c5);for(-0x1==_0x589efd&&(_0x589efd=this['repository']['_revisions']['length'],_0x34c405=!0x1);_0xe1adf9<_0x589efd;)_0x5b1afd['push'](this['repository']['getRevision'](_0xe1adf9)),_0xe1adf9++;return _0x34c405&&_0x5b1afd['push'](this['repository']['getRevision'](_0xe1adf9)),_0x5b1afd;}['_threeWayMerge'](_0xb78366,_0x37ec7c,_0x337142,_0x797baa){const _0x5d75f4=this['editor']['model']['schema'];let _0x4f6b17=_0x37ec7c;for(;_0xb78366[_0x4f6b17]&&_0xb78366[_0x4f6b17]['isAdded'];)_0x4f6b17++;let _0x352b81=_0x797baa;for(;_0x337142[_0x352b81]&&_0x337142[_0x352b81]['isRemoved'];)_0x352b81++;_0x235826(_0xb78366,_0x37ec7c,_0x4f6b17),_0x235826(_0x337142,_0x797baa,_0x352b81);const _0x5f1da5=_0x337142['slice'](_0x797baa,_0x352b81)['concat'](_0xb78366['slice'](_0x37ec7c,_0x4f6b17));return _0x5f1da5['sort']((_0x42f059,_0x55fce9)=>_0x42f059['side']!=_0x55fce9['side']?_0x42f059['side']-_0x55fce9['side']:_0x42f059['level']!=_0x55fce9['level']?_0x42f059['level']-_0x55fce9['level']:_0x42f059['distance']!=_0x55fce9['distance']?_0x55fce9['distance']-_0x42f059['distance']:!!_0x42f059['isAdded']!=!!_0x55fce9['isAdded']?-0x1==_0x42f059['side']||0x0==_0x42f059['side']?_0x42f059['isAdded']?-0x1:0x1:_0x42f059['isAdded']?0x1:-0x1:_0x42f059['index']-_0x55fce9['index']),{'commonTape':_0x5f1da5,'iEnd':_0x4f6b17,'jEnd':_0x352b81};function _0x235826(_0x334c23,_0x217c90,_0x501499){let _0x163d7e=-0x1,_0x2d5e57=Number['POSITIVE_INFINITY'],_0xbe7419=!0x0;for(let _0x3346a7=_0x217c90;_0x3346a7<_0x501499;_0x3346a7++)if(_0x5d75f4['isInline'](_0x334c23[_0x3346a7]['item'])||(_0xbe7419=!0x1),_0x334c23[_0x3346a7]['item']['startIndex']<_0x217c90&&(_0x163d7e=_0x3346a7),_0x334c23[_0x3346a7]['item']['endIndex']>=_0x501499){_0x2d5e57=_0x3346a7;break;}_0xbe7419&&(_0x163d7e=_0x501499-0x1);for(let _0x5f48fe=_0x217c90;_0x5f48fe<_0x501499;_0x5f48fe++)_0x334c23[_0x5f48fe]['side']=_0x5f48fe<=_0x163d7e?-0x1:_0x5f48fe<_0x2d5e57?0x0:0x1,_0x334c23[_0x5f48fe]['index']=_0x5f48fe;let _0x279bad=0x0;for(let _0x4baa5c=_0x217c90;_0x4baa5c<=_0x163d7e;_0x4baa5c++)0x0==_0x334c23[_0x4baa5c]['distance']?_0x334c23[_0x4baa5c]['level']=_0x279bad:(_0x279bad++,_0x334c23[_0x4baa5c]['level']=_0x279bad,_0x279bad++);for(let _0x59e711=_0x217c90;_0x59e711<_0x501499;_0x59e711++)0x0==_0x334c23[_0x59e711]['side']&&(_0x334c23[_0x59e711]['level']=_0x279bad);_0x279bad=0x0;for(let _0x46de4e=_0x501499-0x1;_0x46de4e>=_0x2d5e57;_0x46de4e--)0x0==_0x334c23[_0x46de4e]['distance']?_0x334c23[_0x46de4e]['level']=_0x279bad:(_0x279bad--,_0x334c23[_0x46de4e]['level']=_0x279bad,_0x279bad--);}}['_fixObsoleteTags'](_0x378399){const _0x44f7ba=new Map(),_0x1ad056=this['editor']['model']['schema'];for(let _0x5f4770=0x1;_0x5f4770<_0x378399['length'];_0x5f4770++){let _0x5bc50a,_0x3fd1ed,_0x3c3204;const _0x576d54=_0x378399[_0x5f4770],_0x38a30f=_0x378399[_0x5f4770-0x1];if('text'==_0x576d54['type'])continue;if(_0x576d54['type']!=_0x38a30f['type'])continue;if(!_0x1ad056['isBlock'](_0x38a30f['item'])||_0x1ad056['isLimit'](_0x38a30f['item']))continue;if(!_0x1ad056['isBlock'](_0x576d54['item'])||_0x1ad056['isLimit'](_0x576d54['item']))continue;if((_0x378399[_0x5f4770]['isAdded']||_0x378399[_0x5f4770]['isAddSuggestion'])&&_0x378399[_0x5f4770-0x1]['isRemoved'])_0x5bc50a=_0x378399[_0x5f4770],_0x3fd1ed=_0x378399[_0x5f4770-0x1],_0x3c3204=_0x5f4770-0x1;else{if(!_0x378399[_0x5f4770]['isRemoved']||!_0x378399[_0x5f4770-0x1]['isAdded']&&!_0x378399[_0x5f4770-0x1]['isAddSuggestion'])continue;_0x5bc50a=_0x378399[_0x5f4770-0x1],_0x3fd1ed=_0x378399[_0x5f4770],_0x3c3204=_0x5f4770;}const _0x2a9b1c=_0x5bc50a['level']==_0x3fd1ed['level'],_0x5c0e2f=Math['abs'](_0x5bc50a['level'])<Math['abs'](_0x3fd1ed['level'])&&0x0==_0x3fd1ed['distance'];(_0x2a9b1c||_0x5c0e2f)&&(_0x44f7ba['set'](_0x3fd1ed['id'],_0x5bc50a['id']),_0x378399['splice'](_0x3c3204,0x1),_0x5f4770--,_0x5bc50a['isAdded']=!0x1);}for(let _0x117577=0x0;_0x117577<_0x378399['length'];_0x117577++)_0x44f7ba['has'](_0x378399[_0x117577]['pairId'])&&(_0x378399[_0x117577]['pairId']=_0x44f7ba['get'](_0x378399[_0x117577]['pairId']));}['_removeMissingPairs'](_0x2cb13c){const _0x35d5ee=new Set(_0x2cb13c['map'](_0x365637=>_0x365637['id']));for(let _0x1901d5=0x0;_0x1901d5<_0x2cb13c['length'];_0x1901d5++)_0x35d5ee['has'](_0x2cb13c[_0x1901d5]['pairId'])||0x0==_0x2cb13c[_0x1901d5]['distance']||(_0x2cb13c[_0x1901d5]['isIncorrect']=!0x0);return _0x2cb13c['filter'](_0xa08d16=>!_0xa08d16['isIncorrect']);}['_markMismatchedRemovedTags'](_0x402f82){const _0x49300c=new Set();for(let _0x11bd85=0x0;_0x11bd85<_0x402f82['length'];_0x11bd85++){if(_0x49300c['has'](_0x402f82[_0x11bd85]['id'])&&_0x402f82[_0x11bd85]['isRemoved']&&(_0x402f82[_0x11bd85]['isIncorrect']=!0x0),_0x402f82[_0x11bd85]['isIncorrect'])continue;if(0x0==_0x402f82[_0x11bd85]['distance'])continue;if('elementStart'!=_0x402f82[_0x11bd85]['type'])continue;if(null==_0x402f82[_0x11bd85]['pairId'])continue;let _0x2b628f=_0x11bd85+0x1,_0x57ddd9=0x0;for(;_0x402f82[_0x2b628f]['id']!=_0x402f82[_0x11bd85]['pairId'];)'elementStart'==_0x402f82[_0x2b628f]['type']?_0x57ddd9++:'elementEnd'==_0x402f82[_0x2b628f]['type']&&_0x57ddd9--,_0x2b628f++;if(0x0!=_0x57ddd9){if(_0x402f82[_0x11bd85]['isRemoved'])_0x402f82[_0x11bd85]['isIncorrect']=!0x0;else{for(;_0x2b628f!=_0x11bd85;)_0x402f82[_0x2b628f]['isRemoved']&&0x0!=_0x402f82[_0x2b628f]['distance']&&(_0x402f82[_0x2b628f]['isIncorrect']=!0x0,_0x49300c['add'](_0x402f82[_0x2b628f]['pairId'])),_0x2b628f--;}}}return _0x402f82['filter'](_0x16ef71=>!_0x16ef71['isIncorrect']);}['_removeUnsupportedChanges'](_0x37b9ae){const _0x494604=this['editor']['model']['schema'];for(let _0x56dc9b=0x0;_0x56dc9b<_0x37b9ae['length'];_0x56dc9b++){if(!(_0x37b9ae[_0x56dc9b]['isAdded']||_0x37b9ae[_0x56dc9b]['isAddSuggestion']||_0x37b9ae[_0x56dc9b]['isRemoved']||_0x37b9ae[_0x56dc9b]['isRemoveSuggestion']))continue;if(0x0==_0x37b9ae[_0x56dc9b]['distance'])continue;const _0x28dc1d=_0x37b9ae[_0x56dc9b]['item'];_0x494604['isBlock'](_0x28dc1d)||_0x494604['isLimit'](_0x28dc1d)||(_0x37b9ae[_0x56dc9b]['isAdded']&&delete _0x37b9ae[_0x56dc9b]['isAdded'],_0x37b9ae[_0x56dc9b]['isAddSuggestion']&&delete _0x37b9ae[_0x56dc9b]['isAddSuggestion'],_0x37b9ae[_0x56dc9b]['isRemoveSuggestion']&&delete _0x37b9ae[_0x56dc9b]['isRemoveSuggestion'],_0x37b9ae[_0x56dc9b]['isRemoved']&&(_0x37b9ae[_0x56dc9b]['isIncorrect']=!0x0));}return _0x37b9ae['filter'](_0x545f31=>!_0x545f31['isIncorrect']);}['_makeModelFromTape'](_0x20b450,_0x5eaa79,_0x4f43c2){const _0x4eaf71=new vt(),_0x2f2bf2=[],_0x46daa8=new Map(),_0x3d411a=this['editor']['model'],_0x3a2825=_0x3d411a['schema'],_0x35ab56=[_0x4eaf71],_0x189f6c={},_0x14db42={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x591356=null;const _0x2ff620=[0x0];for(let _0x4fe737=0x0;_0x4fe737<_0x20b450['length'];_0x4fe737++)if('elementStart'===_0x20b450[_0x4fe737]['type']){_0x20b450[_0x4fe737]['previousPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620);const _0x5b1085=new ut(_0x20b450[_0x4fe737]['item']['name'],_0x20b450[_0x4fe737]['item']['getAttributes']());_0x35ab56[0x0]['_appendChild'](_0x5b1085),_0x2ff620['push'](0x0),_0x35ab56['unshift'](_0x5b1085),_0x20b450[_0x4fe737]['nextPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620);}else'elementEnd'===_0x20b450[_0x4fe737]['type']?(_0x35ab56['shift'](),_0x20b450[_0x4fe737]['previousPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620),_0x2ff620['pop'](),_0x2ff620[_0x2ff620['length']-0x1]++,_0x20b450[_0x4fe737]['nextPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620)):(_0x20b450[_0x4fe737]['previousPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620),_0x591356?_0x591356['_data']+=_0x20b450[_0x4fe737]['item']['data']:_0x591356=new gt(_0x20b450[_0x4fe737]['item']['data'],_0x20b450[_0x4fe737]['item']['getAttributes']()),_0x20b450[_0x4fe737+0x1]&&'text'===_0x20b450[_0x4fe737+0x1]['type']&&_0x2fcb17(_0x591356,_0x20b450[_0x4fe737+0x1]['item'])||(_0x35ab56[0x0]['_appendChild'](_0x591356),_0x591356=null),_0x2ff620[_0x2ff620['length']-0x1]+=_0x20b450[_0x4fe737]['item']['offsetSize'],_0x20b450[_0x4fe737]['nextPosition']=_0x3d411a['createPositionFromPath'](_0x4eaf71,_0x2ff620));for(let _0x2a6477=0x0;_0x2a6477<_0x20b450['length'];_0x2a6477++){const _0x236dd4=_0x20b450[_0x2a6477]['previousPosition'],_0x313220=_0x20b450[_0x2a6477]['nextPosition'];for(const _0x314e6e of _0x20b450[_0x2a6477]['markersStart'])_0x46daa8['set'](_0x314e6e,{'start':_0x236dd4,'end':null});_0x4ad721('isRemoveSuggestion',_0x2a6477,_0x236dd4,_0x313220),_0x4ad721('isAddSuggestion',_0x2a6477,_0x236dd4,_0x313220),_0x4ad721('isRemoved',_0x2a6477,_0x236dd4,_0x313220),_0x4ad721('isAdded',_0x2a6477,_0x236dd4,_0x313220);for(const _0x452aa1 of _0x20b450[_0x2a6477]['markersEnd']){const _0x5ea23f=_0x46daa8['get'](_0x452aa1);_0x5ea23f?_0x5ea23f['end']=_0x313220:_0x46daa8['set'](_0x452aa1,{'start':_0x313220,'end':_0x313220});}}for(const [_0x409292,_0x173fb5]of _0x46daa8){const _0xd78a2b=this['editor']['model']['createRange'](_0x173fb5['start'],_0x173fb5['end']);_0x4eaf71['markers']['set'](_0x409292,_0xd78a2b);}return _0x2f2bf2['sort']((_0x156754,_0x38e63b)=>{const _0xdd9970=_0x4eaf71['markers']['get']('revision:'+_0x156754['id']),_0x230b1e=_0x4eaf71['markers']['get']('revision:'+_0x38e63b['id']);return _0xdd9970['start']['isBefore'](_0x230b1e['start'])?-0x1:_0xdd9970['start']['isAfter'](_0x230b1e['start'])?0x1:_0xdd9970['end']['isBefore'](_0x230b1e['end'])?-0x1:_0xdd9970['end']['isAfter'](_0x230b1e['end'])?0x1:'add'===_0x156754['type']?-0x1:0x1;}),{'root':_0x4eaf71,'changes':_0x2f2bf2};function _0x4ad721(_0x1561ec,_0x3f4855,_0x524886,_0x2717e8){const _0x464f6d=!!_0x20b450[_0x3f4855][_0x1561ec],_0x30012a=_0x464f6d?_0x20b450[_0x3f4855][_0x1561ec]['userId']:null,_0x4d8503=_0x3f4855===_0x20b450['length']-0x1,_0x4cc7fd=_0x14db42[_0x1561ec][0x0],_0x3e7fcd=_0x3a2825['isObject'](_0x20b450[_0x3f4855]['item']);!_0x189f6c[_0x1561ec]&&_0x464f6d?_0x189f6c[_0x1561ec]={'start':_0x524886,'tapeItem':_0x20b450[_0x3f4855],'userId':_0x30012a,'type':_0x1561ec}:_0x189f6c[_0x1561ec]&&!_0x464f6d?(_0x189f6c[_0x1561ec]['end']=_0x524886,_0x4fb840(_0x189f6c[_0x1561ec]),_0x189f6c[_0x1561ec]=null):_0x189f6c[_0x1561ec]&&_0x464f6d&&_0x189f6c[_0x1561ec]['userId']!==_0x30012a&&(_0x189f6c[_0x1561ec]['end']=_0x524886,_0x4cc7fd&&_0x4cc7fd['userId']===_0x189f6c[_0x1561ec]['userId']||_0x4fb840(_0x189f6c[_0x1561ec]),_0x189f6c[_0x1561ec]={'start':_0x524886,'tapeItem':_0x20b450[_0x3f4855],'userId':_0x30012a,'type':_0x1561ec}),_0x189f6c[_0x1561ec]&&_0x3e7fcd&&('elementStart'!==_0x20b450[_0x3f4855]['type']||_0x4cc7fd&&_0x4cc7fd['userId']===_0x30012a||_0x14db42[_0x1561ec]['unshift']({'userId':_0x30012a,'object':_0x20b450[_0x3f4855]['item'],'change':_0x189f6c[_0x1561ec]}),'elementEnd'===_0x20b450[_0x3f4855]['type']&&_0x4cc7fd&&_0x4cc7fd['object']===_0x20b450[_0x3f4855]['item']&&(_0x14db42[_0x1561ec]['shift'](),_0x189f6c[_0x1561ec]=_0x4cc7fd['change'])),_0x189f6c[_0x1561ec]&&_0x4d8503&&(_0x189f6c[_0x1561ec]['end']=_0x2717e8,_0x4fb840(_0x189f6c[_0x1561ec]),_0x189f6c[_0x1561ec]=null);}function _0x4fb840({start:_0x6072f5,end:_0x2d3c68,tapeItem:_0x12d181,userId:_0xdbe63,type:_0x4ad9a5}){const _0x21d80e=_0x12d181['item'],_0x118a5a=_0x3d411a['schema']['isBlock'](_0x21d80e)&&!_0x3d411a['schema']['isLimit'](_0x21d80e),_0xd513d1=_0x6072f5['nodeAfter']==_0x2d3c68['parent']&&_0x2d3c68['isAtStart'];if(_0x118a5a&&_0xd513d1)return;const _0x3331ad=_0x3d411a['createRange'](_0x6072f5,_0x2d3c68),_0x3578e4=_0x5eaa79['get'](_0xdbe63),_0x1670cd=new r({'author':_0x3578e4,'type':'isAdded'==_0x4ad9a5||'isAddSuggestion'==_0x4ad9a5?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4ad9a5||'isRemoveSuggestion'==_0x4ad9a5},'createdAt':new Date(),'rootName':_0x4f43c2});_0x2f2bf2['push'](_0x1670cd),_0x4eaf71['markers']['set']('revision:'+_0x1670cd['id'],_0x3331ad);}function _0x2fcb17(_0x516c61,_0x3fe813){const _0x22e4aa=_0x516c61['getAttributes'](),_0x5012f2=_0x3fe813['getAttributes']();for(const _0x364f87 of _0x22e4aa){if(_0x364f87[0x1]!==_0x3fe813['getAttribute'](_0x364f87[0x0]))return!0x1;_0x5012f2['next']();}return _0x5012f2['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x582686=>{const _0x4ac585=_0x582686['markerName']['split'](':')[0x1],_0x19afe6=this['_getChangeFromId'](_0x4ac585);if(!_0x19afe6)return null;const _0x3c1f49='add'==_0x19afe6['type']?'insertion':'deletion',_0x191b69=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c1f49];return _0x19afe6['data']['isSuggestion']&&_0x191b69['push']('ck-suggestion-marker-'+_0x3c1f49+'-new'),this['activeChange']==_0x19afe6&&_0x191b69['push']('ck-suggestion-marker--active'),{'classes':_0x191b69,'attributes':{'data-change-id':_0x4ac585}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x232271=>{_0x232271['on']('element:pre',(_0x311091,_0x2f84ae,_0x1c68db)=>{const _0x46a5d1=_0x2f84ae['viewItem']['getChild'](0x0);if(!_0x46a5d1||!_0x46a5d1['is']('element','code'))return;if(!_0x1c68db['consumable']['consume'](_0x46a5d1,{'attributes':['vid_start','vid_end']}))return;const _0xa60a50=_0x2f84ae['modelRange']['start']['nodeAfter'];_0x1c68db['writer']['setAttribute']('vid_start',_0x46a5d1['getAttribute']('vid_start'),_0xa60a50),_0x1c68db['writer']['setAttribute']('vid_end',_0x46a5d1['getAttribute']('vid_end'),_0xa60a50);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3f6e5f=>{_0x3f6e5f['on']('element',(_0x32b5b7,_0x2ea411,_0x385f2b)=>{if(!_0x385f2b['consumable']['consume'](_0x2ea411['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2ea411['modelRange']['isCollapsed'])return;const _0x2b631c=_0x2ea411['modelRange']['start']['nodeAfter'];_0x2b631c['hasAttribute']('vid_start')||_0x2b631c['hasAttribute']('vid')||(_0x385f2b['writer']['setAttribute']('vid_start',_0x2ea411['viewItem']['getAttribute']('vid_start'),_0x2b631c),_0x385f2b['writer']['setAttribute']('vid_end',_0x2ea411['viewItem']['getAttribute']('vid_end'),_0x2b631c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5bfc8a=>_0x5bfc8a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2470ea,[,_0x56dccf])=>{['vid_start','vid_end','vid']['includes'](_0x56dccf)&&(_0x2470ea['return']=!0x0,_0x2470ea['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x587a68=>{_0x587a68['on']('attribute:vid',(_0x4b5e9a,_0x23664d,_0x4ca9f3)=>{if('\x20'!=_0x23664d['item']['data']||_0x23664d['item']['parent']['maxOffset']>0x1)return;if(!_0x4ca9f3['consumable']['consume'](_0x23664d['item'],_0x4b5e9a['name']))return;const _0x2c45f0=_0x4ca9f3['writer'],_0x51a577=_0x4ca9f3['mapper']['toViewRange'](_0x23664d['range']);_0x2c45f0['wrap'](_0x51a577,_0x2c45f0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x323c77){const _0x413117=_0x323c77['plugins']['get']('RevisionViewer');return(_0x284869,_0x274f77,_0x5271bf)=>{const _0x4e8901=_0x274f77['markerName']['split'](':')[0x1],_0x3535b6=_0x413117['_getChangeFromId'](_0x4e8901);if(!_0x3535b6)return null;const _0x253464='add'==_0x3535b6['type']?'split':'merge';if(!_0x5271bf['consumable']['test'](_0x274f77['markerRange'],_0x284869['name']))return;const _0x404158=_0x274f77['markerRange']['getWalker'](),_0x295647=_0x274f77['markerRange']['start'],_0x42b061=_0x323c77['model']['schema'];let _0x107834=null,_0x537340=null,_0xc7031e=!0x1,_0x4af968=!0x1;for(const _0x46af4d of _0x404158){const _0xf633c2=_0x46af4d['item'];_0xc7031e=_0xc7031e||_0x42b061['isContent'](_0xf633c2);const _0x2bd765=_0x5271bf['mapper']['toViewElement'](_0xf633c2);if(_0x2bd765&&_0x2bd765['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46af4d['type']&&(_0x42b061['isBlock'](_0xf633c2)&&!_0x42b061['isLimit'](_0xf633c2)&&(_0xf633c2['nextSibling']||_0x295647['isAtEnd']?_0x107834&&_0x107834['parent']==_0xf633c2||(_0x107834=_0xf633c2,_0x3c138d(_0x46af4d['previousPosition']),_0x4af968=!0x0):_0x537340=_0x537340||_0x46af4d['previousPosition']));}function _0x3c138d(_0x451334){const _0x268bfe=_0x5271bf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x253464}),_0x199e39=_0x5271bf['mapper']['toViewPosition'](_0x451334);_0x3535b6['data']['isSuggestion']&&_0x5271bf['writer']['addClass']('ck-suggestion-marker-'+_0x253464+'-new',_0x268bfe),_0x413117['activeChange']==_0x3535b6&&_0x5271bf['writer']['addClass']('ck-suggestion-marker--active',_0x268bfe),_0x5271bf['writer']['insert'](_0x199e39,_0x268bfe),_0x5271bf['mapper']['bindElementToMarker'](_0x268bfe,_0x274f77['markerName']);}_0xc7031e||_0x4af968||!_0x537340||_0x3c138d(_0x537340);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4aa1cd,_0x1679d5,_0x313ce1)=>{const _0x33d507=_0x313ce1['mapper']['markerNameToElements'](_0x1679d5['markerName']);if(_0x33d507){for(const _0x3e3357 of _0x33d507)(_0x3e3357['hasClass']('ck-suggestion-marker-split')||_0x3e3357['hasClass']('ck-suggestion-marker-merge'))&&(_0x313ce1['mapper']['unbindElementFromMarkerName'](_0x3e3357,_0x1679d5['markerName']),_0x313ce1['writer']['remove'](_0x3e3357));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x9eb6cd,_0x16b739,_0xd7f8d9)=>{const _0x3a9342=_0x16b739['markerName']['split'](':')[0x1],_0x52c3ad=this['_getChangeFromId'](_0x3a9342);if(!_0x52c3ad)return null;const _0x210fac='add'==_0x52c3ad['type']?'split':'merge';if(_0xd7f8d9['consumable']['test'](_0x16b739['markerRange'],_0x9eb6cd['name']))for(const _0x4abb9e of _0x16b739['markerRange']['getItems']()){if(!_0x4abb9e['is']('element','softBreak'))continue;const _0x25772d=_0xd7f8d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x210fac}),_0x5767c5=_0xd7f8d9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4abb9e));_0x52c3ad['data']['isSuggestion']&&_0xd7f8d9['writer']['addClass']('ck-suggestion-marker-'+_0x210fac+'-new',_0x25772d),this['activeChange']==_0x52c3ad&&_0xd7f8d9['writer']['addClass']('ck-suggestion-marker--active',_0x25772d),_0xd7f8d9['writer']['insert'](_0x5767c5,_0x25772d),_0xd7f8d9['mapper']['bindElementToMarker'](_0x25772d,_0x16b739['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4138ee=>{for(const _0x5900c2 of this['editor']['model']['document']['getRootNames']()){const _0x13aa9b=this['editor']['model']['document']['getRoot'](_0x5900c2),_0xf109e=this['editor']['editing']['view']['document']['getRoot'](_0x5900c2);if(_0xf109e){const _0x13b25c=_0x13aa9b['getAttribute']('revisionHistoryAttachChange');if(_0x4138ee['removeAttribute']('data-change-id',_0xf109e),_0x4138ee['removeClass']('ck-revision-history-root-add',_0xf109e),_0x4138ee['removeClass']('ck-revision-history-root-remove',_0xf109e),_0x4138ee['removeClass']('ck-revision-history-root--active',_0xf109e),_0x13b25c){const _0x4bccde=this['_getChangeFromId'](_0x13b25c);if(!_0x4bccde)return null;_0x4138ee['setAttribute']('data-change-id',_0x13b25c,_0xf109e),_0x4138ee['addClass']('ck-revision-history-root-'+_0x4bccde['type'],_0xf109e),this['activeChange']==_0x4bccde&&_0x4138ee['addClass']('ck-revision-history-root--active',_0xf109e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4dc867=>'revision-comment:'+_0x4dc867,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x52c2cb=>'revision-suggestion:'+_0x52c2cb,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2908e7=>({'name':'suggestion:'+_0x2908e7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4105d1=>{const _0x2b8419=_0x4105d1['markerName']['split'](':')[0x1];return'insertion'!=_0x2b8419&&'deletion'!=_0x2b8419?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2b8419]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x36b780,_0x4203c8,_0x5d6353)=>{const _0x746fdb=_0x5d6353['mapper']['markerNameToElements'](_0x4203c8['markerName']);if(_0x746fdb){for(const _0x302ed5 of _0x746fdb)_0x302ed5['is']('uiElement')&&(_0x5d6353['mapper']['unbindElementFromMarkerName'](_0x302ed5,_0x4203c8['markerName']),_0x5d6353['writer']['remove'](_0x302ed5));}},{'priority':'high'});}['_getChangeFromId'](_0x20425d){return this['_changeIdToChange']['get'](_0x20425d);}['_getViewForChange'](_0x44b031){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x44b031),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1a4b60,_0x5139d3,_0x87de53,_0x16cb58)=>{_0x16cb58&&this['_balloon']['remove'](_0x16cb58),_0x87de53&&(this['_balloon']['add']({'view':_0x87de53,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x145c87=this['editor']['editing'],_0x240960=this['_getChangeFromId'](_0x87de53['changeId']);let _0x2b4d55;if(_0x240960['data']['isOnRoot']){const _0x4c6d3d=_0x145c87['view']['getDomRoot'](_0x240960['rootName']);_0x2b4d55=Array['from'](_0x4c6d3d['getClientRects']());}else{const _0x16f57c=this['editor']['model']['markers']['get']('revision:'+_0x87de53['changeId']);_0x2b4d55=Array['from'](_0x145c87['mapper']['markerNameToElements'](_0x16f57c['name']))['map'](_0x526c5a=>_0x145c87['view']['domConverter']['mapViewToDom'](_0x526c5a))['map'](_0x411432=>Array['from'](_0x411432['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2b4d55[0x0];return _0x2b4d55['find'](_0x1f6a49=>_0x1f6a49['top']-0x3<=this['_activeViewTarget']['y']&&_0x1f6a49['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1f6a49['left']-0x3<=this['_activeViewTarget']['x']&&_0x1f6a49['right']+0x3>=this['_activeViewTarget']['x'])||_0x2b4d55[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x433561,_0xdd86a8,_0x40bd73,_0x57a801)=>{this['activeView']=_0x40bd73?this['_getViewForChange'](_0x40bd73):null,this['editor']['model']['change'](()=>{const _0x1c7dcd=this['editor']['editing'];_0x57a801&&(_0x57a801['data']['isOnRoot']?_0x1c7dcd['view']['change'](_0x2366f5=>{_0x2366f5['removeClass']('ck-revision-history-root--active',_0x1c7dcd['view']['document']['getRoot'](_0x57a801['rootName']));}):_0x1c7dcd['reconvertMarker']('revision:'+_0x57a801['id'])),_0x40bd73&&(_0x40bd73['data']['isOnRoot']?_0x1c7dcd['view']['change'](_0x35f4c2=>{_0x35f4c2['addClass']('ck-revision-history-root--active',_0x1c7dcd['view']['document']['getRoot'](_0x40bd73['rootName']));}):_0x1c7dcd['reconvertMarker']('revision:'+_0x40bd73['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x402e8a,_0x20269d)=>{if(this['activeChange'])return;const _0x5d772c=this['_findChangeIdFromDomTarget'](_0x20269d['target']),_0x4481bb=this['_changeIdToChange']['get'](_0x5d772c);_0x4481bb?(this['_activeViewTarget']={'x':_0x20269d['domEvent']['x'],'y':_0x20269d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4481bb)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xf5d2b4,_0x142bfd)=>{const _0x157efd=this['_findChangeIdFromDomTarget'](_0x142bfd['target']),_0x480315=this['_changeIdToChange']['get'](_0x157efd);_0x480315?(this['_activeViewTarget']={'x':_0x142bfd['domEvent']['x'],'y':_0x142bfd['domEvent']['y']},_0x480315===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x480315):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x51609f){do{const _0xeaadca=_0x51609f['getAttribute']('data-change-id');if(_0xeaadca)return _0xeaadca;_0x51609f=_0x51609f['parent'];}while(_0x51609f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4df435=>{for(const _0x21ebfc of this['editor']['model']['markers'])_0x4df435['removeMarker'](_0x21ebfc);});}}function X(_0x233e32,_0x8c2b12){return(_0x512bde,_0x3b60d1,_0x727d26)=>{if(!_0x727d26['consumable']['test'](_0x3b60d1['markerRange'],_0x512bde['name']))return;const _0x6fb986=_0x3b60d1['markerRange']['getWalker'](),_0x153724=_0x3b60d1['markerRange']['start'],_0x1af254=_0x233e32['model']['schema'];let _0x29fbd5=null,_0x2b2a7d=null,_0x1ddab4=!0x1,_0x220a87=!0x1;for(const _0x49141c of _0x6fb986){const _0x5855c1=_0x49141c['item'];_0x1ddab4=_0x1ddab4||_0x1af254['isContent'](_0x5855c1);const _0x49dea5=_0x727d26['mapper']['toViewElement'](_0x5855c1);if(_0x49dea5&&_0x49dea5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49141c['type']&&(_0x1af254['isBlock'](_0x5855c1)&&!_0x1af254['isLimit'](_0x5855c1)&&(_0x5855c1['nextSibling']||_0x153724['isAtEnd']?_0x29fbd5&&_0x29fbd5['parent']==_0x5855c1||(_0x29fbd5=_0x5855c1,_0x432d1b(_0x49141c['previousPosition']),_0x220a87=!0x0):_0x2b2a7d=_0x2b2a7d||_0x49141c['previousPosition']));}function _0x432d1b(_0x19753d){const _0x44c46a=_0x727d26['mapper']['toViewPosition'](_0x19753d),_0x273199=_0x727d26['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x8c2b12});_0x727d26['writer']['insert'](_0x44c46a,_0x273199),_0x727d26['mapper']['bindElementToMarker'](_0x273199,_0x3b60d1['markerName']);}_0x1ddab4||_0x220a87||!_0x2b2a7d||_0x432d1b(_0x2b2a7d);};}class mt extends _0x272f0c{constructor(_0x1af6d5){super(_0x1af6d5);const _0x402edc=_0x1af6d5['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x402edc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x402edc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x27102f=this['editor'],_0x5a764a=_0x27102f['plugins']['get'](m),_0x2d37d1=_0x5a764a['isReady']?_0x5a764a['diff']['newRevisionId']:null;_0x27102f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2d37d1);}['refresh'](){const {isReady:_0x58e28b,isEnabled:_0x28607c,repository:_0x4261a5,diff:_0x2a8259}=this['editor']['plugins']['get'](m),_0x104678=_0x2a8259&&_0x4261a5['getLaterVisibleRevision'](_0x2a8259['newRevisionId']);this['isEnabled']=_0x58e28b&&_0x28607c&&Boolean(_0x104678);}}class wt extends _0x272f0c{['_step'];constructor(_0x3d3088,{direction:_0x43180b}){super(_0x3d3088);const _0x424395=_0x3d3088['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x43180b?0x1:-0x1,this['listenTo'](_0x424395,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x424395,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x424395,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x30d060=this['editor'],_0x1d0ad7=_0x30d060['plugins']['get'](m),{isNavigationMode:_0x36e30e,currentChangeNumber:_0x407c30}=_0x1d0ad7;let _0xc8ee98;if(_0x1d0ad7['activeChange']=_0x36e30e?_0x1d0ad7['diff']['changes']['get'](_0x407c30+this['_step']):_0x1d0ad7['diff']['changes']['first'],_0x1d0ad7['activeChange']['data']['isOnRoot'])_0xc8ee98=_0x30d060['editing']['view']['getDomRoot'](_0x1d0ad7['activeChange']['rootName']);else{const _0x77a73f=_0x30d060['model']['markers']['get']('revision:'+_0x1d0ad7['activeChange']['id']);_0xc8ee98=_0x3be11c(_0x30d060['editing'],_0x77a73f);}_0x53184f({'target':_0xc8ee98,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xf822ec,currentChangeNumber:_0x34c97b,numberOfChanges:_0x5aa0b2,isReady:_0x3a559d,isEnabled:_0x39eace}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x39eace&&_0x3a559d&&_0x5aa0b2)&&(!_0xf822ec||(0x1===this['_step']?_0x34c97b<_0x5aa0b2-0x1:_0x34c97b>0x0));}}class _i extends ts{constructor(_0x543294){super(_0x543294);const _0x14e455=this['bindTemplate'],_0x33fa71=new te(_0x543294),_0x4dc3c4=new te(_0x543294);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',(_0x127d87,_0x47e130)=>_0x127d87&&_0x47e130>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x11ff59,_0x3a5d03,_0x54c9e0,_0x316662)=>{if(!_0x11ff59)return g(_0x543294,'Loading...');if(!_0x54c9e0)return g(_0x543294,'No\x20changes');const _0x55913f=g(_0x543294,'NUMBER_OF_CHANGES',_0x54c9e0);return _0x316662?g(_0x543294,'X_OF_Y_CHANGES',[_0x3a5d03+0x1,_0x54c9e0]):_0x55913f;}),_0x33fa71['set']({'label':g(_0x543294,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x382717}),_0x4dc3c4['set']({'label':g(_0x543294,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5c0296}),_0x33fa71['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4dc3c4['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x33fa71['on']('execute',()=>this['fire']('execute','backward')),_0x4dc3c4['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',_0x14e455['if']('_isStatusLabelVisible','ck-hidden',_0x1c4706=>!_0x1c4706)]},'children':[{'text':_0x14e455['to']('isNavigationMode',_0x4e316f=>_0x4e316f?g(_0x543294,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x543294,'Total')+':\x20')}]},{'text':_0x14e455['to']('_statusText')}]},new _0x42f50c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x33fa71,_0x4dc3c4]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4fedf0{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5c2e41=this['editor']['editing']['view'];_0x5c2e41['change'](_0x120bfb=>{for(const _0x17de3e of _0x5c2e41['document']['roots'])_0x120bfb['addClass'](le,_0x17de3e);});}['hide'](){const _0x1181ec=this['editor']['editing']['view'];_0x1181ec['change'](_0x5bfbe8=>{for(const _0x5db5c0 of _0x1181ec['document']['roots'])_0x5bfbe8['removeClass'](le,_0x5db5c0);});}}class R extends _0x4fedf0{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x172276=this['editor'],_0x4aff99=_0x172276['plugins']['get'](m),_0x570899=_0x172276['plugins']['get'](ge);_0x172276['ui']['componentFactory']['add']('exitToEditing',_0x2b5fce=>{const _0x55722b=new te(_0x2b5fce);return _0x55722b['set']({'label':g(_0x2b5fce,'Back\x20to\x20editing'),'icon':_0x4b853c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x55722b,'execute',()=>{_0x172276['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x55722b;}),_0x172276['ui']['componentFactory']['add']('restoreRevision',_0x808810=>{const _0x4481c5=new te(_0x808810);return _0x4481c5['set']({'label':g(_0x808810,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4481c5['bind']('isEnabled')['to'](_0x172276['commands']['get']('restoreRevision')),this['listenTo'](_0x4481c5,'execute',()=>_0x172276['execute']('restoreRevision')),_0x4481c5;}),_0x172276['ui']['componentFactory']['add']('changesNavigation',_0x26ac79=>{const _0x3322ff=new _i(_0x26ac79),_0x82c0ab=_0x172276['commands']['get']('showPreviousChange'),_0x2b3cfa=_0x172276['commands']['get']('showNextChange');return _0x3322ff['bind']('isBackwardNavigationEnabled')['to'](_0x82c0ab,'isEnabled'),_0x3322ff['bind']('isForwardNavigationEnabled')['to'](_0x2b3cfa,'isEnabled'),_0x3322ff['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4aff99),this['listenTo'](_0x3322ff,'execute',(_0x35170b,_0xef0ade)=>{_0x172276['execute']('forward'===_0xef0ade?'showNextChange':'showPreviousChange');}),_0x3322ff;}),_0x570899['show'](),_0x4aff99['on']('change:isReady',(_0xfaaccc,_0xc64de4,_0x34db8e)=>{_0x34db8e?_0x570899['hide']():_0x570899['show']();});}}class at extends _0x4263ed{['_resizeObserver']=null;constructor(_0x2a273c,_0x303373){super(_0x2a273c,_0x303373);const _0x9602e9=this['bindTemplate'];this['set']({'label':g(_0x2a273c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x2a273c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x9602e9['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5a5007=this['fieldView']['element'];this['_tooltipString']=_0x5a5007['scrollWidth']>_0x5a5007['clientWidth']&&_0x5a5007['value']||'';}}class si extends ts{constructor(_0x1169b9,_0x45d1ba,_0x499a00){super(_0x1169b9);const _0x5791e8=new _0x356830();_0x5791e8['set']({'content':_0x23ed51,'viewBox':'0\x200\x2011\x2010'});const _0x5df3f7=['ck','ck-revision-history-sidebar__revision-author'];_0x499a00&&_0x5df3f7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x409e41=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x1169b9,_0x499a00?'Revision\x20creator':'Revision\x20author')},'children':[_0x5791e8,_0x45d1ba['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5df3f7},'children':_0x409e41});}}function oi(_0x550351,_0x396835){const _0x1b9768=_0x550351['bindTemplate'],_0x24c2f2=_0x550351['locale'],_0x2b1661=_0x4b06b6(_0x24c2f2);_0x2b1661['panelPosition']='sw';const _0x226d77=function(_0x493a3c,_0x49b193){const _0x586c0f=function(_0x3d23f5,_0x3b6811){const _0x434439=_0x3d23f5['locale'],_0x1a89cd={'Compare\x20against\x20selected':g(_0x434439,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x434439,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x434439,'Restore\x20this\x20revision')};return _0x3b6811['map'](_0x433305=>{const _0x35fc02=_0x1a89cd[_0x433305['name']];return _0x35fc02&&_0x35fc02!==_0x433305['name']&&(_0x433305['name']=_0x35fc02),_0x433305;});}(_0x493a3c,_0x49b193),_0x2cf6a4=new _0x428f3c();for(const _0x5d7a03 of _0x586c0f){const _0x1e18d0={'type':'button','model':new to({'label':_0x5d7a03['name'],'class':_0x5d7a03['class'],'withText':!0x0,'role':'menuitem','_action':_0x5d7a03['action']})};_0x1e18d0['model']['bind']('isEnabled')['to'](_0x493a3c,'isActionsDropdownOpen',_0x2f2d3e=>'function'!=typeof _0x5d7a03['isEnabled']||(!_0x2f2d3e||_0x5d7a03['isEnabled'](_0x493a3c))),_0x2cf6a4['add'](_0x1e18d0);}return _0x2cf6a4;}(_0x550351,_0x396835);return _0x550351['bind']('isActionsDropdownOpen')['to'](_0x2b1661,'isOpen'),_0x2b1661['buttonView']['set']({'label':g(_0x24c2f2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x586ec1}),_0x2b1661['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b9768['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b9768['to'](_0x1a839d=>_0x1a839d['stopPropagation']())}}),_0x2b1661['on']('execute',_0x3a83ea=>{_0x550351['isReady']&&'function'==typeof _0x3a83ea['source']['_action']&&_0x3a83ea['source']['_action'](_0x550351);}),_0x5f376c(_0x2b1661,_0x226d77,{'role':'menu'}),_0x2b1661['listenTo'](_0x550351,'change:isActionsDropdownOpen',(_0x13aae9,_0x876c54,_0x148658)=>{if(_0x148658)for(const _0x465fa2 of _0x2b1661['listView']['items']){const _0x28bd83=_0x465fa2['children']['first'],_0x304b24=_0x396835['find'](_0x1fa7cb=>_0x1fa7cb['action']===_0x28bd83['_action'])['isVisible'];_0x465fa2['isVisible']=void 0x0===_0x304b24||_0x304b24(_0x550351);}}),_0x2b1661;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x3b7313,uid as _0x1da58b,Collection as _0xb82d43,logWarning as _0x3bbbf9,FocusTracker as _0x23fe2d,KeystrokeHandler as _0x7068cd,scrollViewportToShowTarget as _0x513e6e,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x85c2cc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x562732,set as _0x547f59,unset as _0x2f8e2f,isEqual as _0x1a8b5b}from'es-toolkit/compat';import{Plugin as _0x28459c,PendingActions as _0x351e9f,Command as _0x2f7e6b,ElementApiMixin as _0x276a93,Editor as _0x47957a}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x437c2e,getMarkerDomElement as _0xeccf,ConfirmMixin as ti,sanitizeEditorConfig as _0x359e7a}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5e0202,ViewAttributeElement as _0x8312d7,ViewEmptyElement as _0x5aee2b,ViewRawElement as _0x33ff0e,ViewUIElement as _0x27a70c,ViewDocumentFragment as _0x10dc03,ViewText as _0x2645a5,ViewElement as _0x37822d,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x186557,IconChevronUp as _0x33c8ee,IconChevronDown as _0x53c39e,IconUndo as _0x46a6d4,IconUser as _0x5c6a42,IconThreeVerticalDots as _0x30042d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x131e87,submitHandler as _0xa7de9f,LabeledFieldView as _0x350f46,createLabeledInputText as _0x3e2d75,createDropdown as _0x36b37a,ListView as _0x3f545b,ListItemView as _0x2229f4,ButtonView as te,MenuBarMenuView as _0x3ec8e3,MenuBarMenuListView as _0x162442,MenuBarMenuListItemView as _0x3968ea,MenuBarMenuListItemButtonView as _0x19dfa8,ContextualBalloon as _0x2717ee,ToolbarSeparatorView as _0x2157f2,IconView as _0x444b50,addListToDropdown as _0x4a750a,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xd41bf3}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3b7313(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4d78bd){super(),this['id']=_0x4d78bd['id']||_0x1da58b(),this['creator']=_0x4d78bd['creator']||null,this['authors']=_0x4d78bd['authors']||[],this['diffData']=_0x4d78bd['diffData']||null,this['toVersion']=_0x4d78bd['toVersion']||0x0,this['fromVersion']=_0x4d78bd['fromVersion']||0x0,this['set']('name',_0x4d78bd['name']||''),this['set']('createdAt',_0x4d78bd['createdAt']||new Date()),this['set']('attributes',_0x4d78bd['attributes']||{});}['setName'](_0x22ce7b){this['_update']({'name':_0x22ce7b});}['setAttribute'](_0x7ca760,_0xac9c6){const _0x4b63cd=_0x562732(this['attributes']);_0x547f59(_0x4b63cd,_0x7ca760,_0xac9c6),this['_update']({'attributes':_0x4b63cd});}['removeAttribute'](_0x36af7c){const _0x25d131=_0x562732(this['attributes']);_0x2f8e2f(_0x25d131,_0x36af7c),this['_update']({'attributes':_0x25d131});}['_update'](_0x3598c4,_0x4dfae0=!0x1){let _0x2b4800=!0x1;const _0x18529d={'id':this['id']},_0x51ac1c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2c106f of _0x51ac1c){const _0x5182c3=_0x3598c4[_0x2c106f];void 0x0!==_0x5182c3&&_0x5182c3!==this[_0x2c106f]&&(this[_0x2c106f]=_0x5182c3,_0x18529d[_0x2c106f]=_0x5182c3,_0x2b4800=!0x0);}_0x2b4800&&(_0x18529d['authors']&&(_0x18529d['authorsIds']=_0x18529d['authors']['map'](_0x3d01a6=>_0x3d01a6['id']),delete _0x18529d['authors']),this['fire']('_update',_0x18529d,_0x4dfae0));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x466a98=>_0x466a98['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x28459c{['_revisions'];static get['requires'](){return[_0x437c2e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4e7f2e){super(_0x4e7f2e),this['_revisions']=new _0xb82d43();}['afterInit'](){!async function(_0x29a06f){const _0x55b369=_0x2857c9([0x6c,0x49,0x56,0x38,0x63,0x72,0x4a,0x31,0x62,0x33,0x68,0x69,0x41,0x4c,0x7a,0x64,0x5a,0x67,0x44,0x34,0x55,0x75,0x37,0x50,0x6b,0x46,0x4f,0x4e,0x70,0x6e,0x73,0x47,0x54,0x35,0x76,0x77,0x32,0x74,0x6d,0x58,0x4d,0x6f,0x39,0x4b,0x59,0x48,0x36,0x78,0x65,0x52,0x71,0x45,0x6a,0x53,0x43,0x42,0x57,0x79,0x30,0x66,0x51,0x61]),_0x1ad12b=0xeb829,_0x37bcde=0x23976d53,_0x150d78=0x239008fb^_0x37bcde,_0x1c56f3=window[_0x2857c9([0x44,0x61,0x74,0x65])][_0x2857c9([0x6e,0x6f,0x77])](),_0x13cf0c=_0x29a06f[_0x2857c9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x393de1=new window[(_0x2857c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x164c83=>{_0x13cf0c[_0x2857c9([0x6f,0x6e,0x63,0x65])](_0x2857c9([0x72,0x65,0x61,0x64,0x79]),_0x164c83);}),_0x22adb1={[_0x2857c9([0x6b,0x74,0x79])]:_0x2857c9([0x45,0x43]),[_0x2857c9([0x75,0x73,0x65])]:_0x2857c9([0x73,0x69,0x67]),[_0x2857c9([0x63,0x72,0x76])]:_0x2857c9([0x50,0x2d,0x32,0x35,0x36]),[_0x2857c9([0x78])]:_0x2857c9([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]),[_0x2857c9([0x79])]:_0x2857c9([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]),[_0x2857c9([0x61,0x6c,0x67])]:_0x2857c9([0x45,0x53,0x32,0x35,0x36])},_0x2a9cf4=_0x13cf0c[_0x2857c9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2857c9([0x67,0x65,0x74])](_0x2857c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x532712(){let _0x1c7336,_0x5d60bf=null,_0x581bd0=null;try{if(_0x2a9cf4==_0x2857c9([0x47,0x50,0x4c]))return _0x2857c9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c7336=_0x4bcfc3(),!_0x1c7336)return _0x2857c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c7336[_0x2857c9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x581bd0=_0x306791(_0x1c7336[_0x2857c9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c7336[_0x2857c9([0x6a,0x74,0x69])])),await _0x5a5ad9()?_0x40f0d5()?_0x280658()?_0x2857c9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x69ca9b()?(_0x1c7336[_0x2857c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2857c9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d60bf=_0x5c215f(_0x2857c9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c7336[_0x2857c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2857c9([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d60bf=_0x5c215f(_0x2857c9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f3dd1()):_0x2857c9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2857c9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2857c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xfc1c49){return _0x2857c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x280658(){const _0x54d12f=[_0x2857c9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2857c9([0x74,0x72,0x69,0x61,0x6c])][_0x2857c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c7336[_0x2857c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c56f3/0x3e8:0xe10*_0x150d78;return _0x1c7336[_0x2857c9([0x65,0x78,0x70])]<_0x54d12f;}function _0x40f0d5(){const _0x3f993d=_0x1c7336[_0x2857c9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3f993d)return!0x1;if(_0x3f993d[_0x2857c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2857c9([0x2a])))return!0x0;if(_0x3f993d[_0x2857c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2857c9([0x52,0x48])))return!0x0;if(_0x3f993d[_0x2857c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2857c9([0x52,0x52,0x48]))){if(_0x2fa924())return!0x0;if(_0x303921()||_0x6e2bf6())return!0x0;}return!0x1;}function _0x69ca9b(){const _0x2e54db=_0x1c7336[_0x2857c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e54db||0x0==_0x2e54db[_0x2857c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38befb}=new URL(window[_0x2857c9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e54db[_0x2857c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38befb))return!0x0;const _0x4442bf=_0x38befb[_0x2857c9([0x73,0x70,0x6c,0x69,0x74])](_0x2857c9([0x2e]));return _0x2e54db[_0x2857c9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x325019=>_0x325019[_0x2857c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2857c9([0x2a])))[_0x2857c9([0x6d,0x61,0x70])](_0x1fe432=>_0x1fe432[_0x2857c9([0x73,0x70,0x6c,0x69,0x74])](_0x2857c9([0x2e])))[_0x2857c9([0x73,0x6f,0x6d,0x65])](_0x1cf255=>_0x4442bf[_0x2857c9([0x65,0x76,0x65,0x72,0x79])]((_0x4b7763,_0x351eaa)=>_0x1cf255[_0x351eaa]===_0x4b7763||_0x1cf255[_0x351eaa]===_0x2857c9([0x2a])));}function _0x1f3dd1(){return _0x5d60bf&&_0x581bd0?new window[(_0x2857c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3078c2,_0x2dff77)=>{_0x5d60bf[_0x2857c9([0x74,0x68,0x65,0x6e])](_0x3078c2,_0x2dff77),_0x581bd0[_0x2857c9([0x74,0x68,0x65,0x6e])](_0x513a4a=>{_0x513a4a!=_0x2857c9([0x56,0x61,0x6c,0x69,0x64])&&_0x3078c2(_0x513a4a);},_0x2dff77);}):_0x5d60bf||_0x581bd0||_0x2857c9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x306791(_0x547e2d,_0x5a9833){return new window[(_0x2857c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x95b040=>{if(_0x2b5ff8())return _0x95b040(_0x2857c9([0x56,0x61,0x6c,0x69,0x64]));_0xe86e85(),_0x13cf0c[_0x2857c9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2857c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x428ad1=!0x1;const _0x58ccc0=_0x1da58b();function _0xce2dd7(_0x32c647){return!!_0x32c647&&(typeof _0x32c647===_0x2857c9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32c647===_0x2857c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32c647[_0x2857c9([0x74,0x68,0x65,0x6e])]===_0x2857c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32c647[_0x2857c9([0x63,0x61,0x74,0x63,0x68])]===_0x2857c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5baaba(_0x49218f){_0x4ce606(_0x49218f)[_0x2857c9([0x74,0x68,0x65,0x6e])](_0x40de86=>{if(!_0x40de86||_0x40de86[_0x2857c9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2857c9([0x6f,0x6b]))return _0x2857c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x609ae8(_0x913b23(_0x58ccc0+_0x5a9833))!=_0x40de86[_0x2857c9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2857c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2857c9([0x56,0x61,0x6c,0x69,0x64]);})[_0x2857c9([0x74,0x68,0x65,0x6e])](_0x3fbe41=>(_0x4e3fef(),_0x3fbe41),()=>{const _0x58f422=_0x516c29();return null==_0x58f422?(_0x4e3fef(),_0x2857c9([0x56,0x61,0x6c,0x69,0x64])):_0x2857c9(_0x1c56f3-_0x58f422>(0x79be953^_0x37bcde)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2857c9([0x74,0x68,0x65,0x6e])](_0x95b040)[_0x2857c9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x95b040(_0x2857c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x350d8b=0x23a183d3^_0x37bcde;function _0x4e3fef(){const _0x30f8e5=_0x2857c9([0x6c,0x6c,0x63,0x74,0x2d])+_0x609ae8(_0x913b23(_0x547e2d)),_0x56bbb7=_0x41eb6e(_0x609ae8(window[_0x2857c9([0x4d,0x61,0x74,0x68])][_0x2857c9([0x63,0x65,0x69,0x6c])](_0x1c56f3/_0x350d8b)));window[_0x2857c9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2857c9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30f8e5,_0x56bbb7);}function _0x516c29(){const _0xe7a362=_0x2857c9([0x6c,0x6c,0x63,0x74,0x2d])+_0x609ae8(_0x913b23(_0x547e2d)),_0x1ed046=window[_0x2857c9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2857c9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7a362);return _0x1ed046?window[_0x2857c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41eb6e(_0x1ed046),0x10)*_0x350d8b:null;}function _0x4ce606(_0x3e852f){return new window[(_0x2857c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dce00,_0xc09387)=>{_0x3e852f[_0x2857c9([0x74,0x68,0x65,0x6e])](_0x1dce00,_0xc09387),window[_0x2857c9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc09387,0x2396b993^_0x37bcde);});}}_0x13cf0c[_0x2857c9([0x6f,0x6e])](_0x2857c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd8d040,_0x31087f)=>{if(_0x31087f[0x0]!=_0x547e2d)return _0x95b040(_0x2857c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31087f[0x1]={..._0x31087f[0x1],[_0x2857c9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58ccc0};},{[_0x2857c9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2857c9([0x68,0x69,0x67,0x68])}),_0x13cf0c[_0x2857c9([0x6f,0x6e])](_0x2857c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1078a8=>{_0xce2dd7(_0x1078a8[_0x2857c9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x428ad1=!0x0,_0x5baaba(_0x1078a8[_0x2857c9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2857c9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2857c9([0x6c,0x6f,0x77])}),_0x393de1[_0x2857c9([0x74,0x68,0x65,0x6e])](()=>{_0x428ad1||_0x95b040(_0x2857c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b5ff8(){return _0x13cf0c[_0x2857c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2857c9([0x76,0x69,0x65,0x77])][_0x2857c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2857c9([0x61,0x75,0x74,0x6f]);}function _0xe86e85(){_0x13cf0c[_0x2857c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2857c9([0x76,0x69,0x65,0x77])][_0x2857c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2857c9([0x61,0x75,0x74,0x6f]);}}function _0x5c215f(_0x3be453){const _0x4e0a60=[new window[(_0x2857c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4886b1=>setTimeout(_0x4886b1,0x239e539f^_0x37bcde)),_0x393de1[_0x2857c9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2857c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4da96f=>{const _0xb40c71=0x23976d54^_0x37bcde,_0x169c47=_0x29a06f[_0x2857c9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x35ad6d(){_0x169c47[_0x2857c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xb40c71&&_0x4da96f();}_0x35ad6d(),_0x169c47[_0x2857c9([0x6f,0x6e])](_0x2857c9([0x61,0x64,0x64]),_0x35ad6d);})),new window[(_0x2857c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xed23b0=>{function _0x14f3b8(){for(const _0xf52155 in window)if(window[_0x2857c9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2857c9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xf52155))&&window[_0xf52155]==_0x1ad12b)return _0xed23b0();_0x13cf0c[_0x2857c9([0x73,0x74,0x61,0x74,0x65])]!=_0x2857c9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2857c9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14f3b8,0x23977edb^_0x37bcde);}_0x1cdf21(_0x2857c9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x14f3b8();})];return window[_0x2857c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2857c9([0x72,0x61,0x63,0x65])](_0x4e0a60)[_0x2857c9([0x74,0x68,0x65,0x6e])](()=>_0x3be453);}async function _0x5d696a(){if(await _0x393de1,_0x1cdf21(_0x2857c9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1430f0=_0x29a06f[_0x2857c9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5a9edd=_0x29a06f[_0x2857c9([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])](_0x1430f0[_0x2857c9([0x69,0x64])]),_0x15df7a=_0x300b88(_0x2857c9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x15df7a[_0x2857c9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1430f0['id'],_0x5a9edd?_0x5a9edd['id']:null,!0x0),_0x15df7a[_0x2857c9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2857c9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x15df7a[_0x2857c9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x15df7a[_0x2857c9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2c65fe,void(_0x15df7a[_0x2857c9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2c65fe);}if(_0x1cdf21(_0x2857c9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2271da=_0x300b88(_0x2857c9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2271da[_0x2857c9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2857c9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2271da[_0x2857c9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2271da[_0x2857c9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2c65fe,_0x2271da[_0x2857c9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2c65fe;}_0x13cf0c[_0x2857c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2857c9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c65fe,_0x13cf0c[_0x2857c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2857c9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c65fe,_0x13cf0c[_0x2857c9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2857c9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fa924(){return _0x1cdf21(_0x2857c9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x300b88(_0x2857c9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2857c9([0x73,0x74,0x61,0x74,0x65])]==_0x2857c9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x303921(){return _0x1cdf21(_0x2857c9([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 _0x6e2bf6(){return _0x1cdf21(_0x2857c9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xaef65c(_0x2c5a9b){const _0x878d4c=_0x259cbe();_0x13cf0c[_0x878d4c]=_0x2857c9([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])+_0x2c5a9b,_0x2c5a9b[_0x2857c9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2857c9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x259cbe()]=_0x1ad12b),_0x2c5a9b!=_0x2857c9([0x56,0x61,0x6c,0x69,0x64])&&_0x5d696a();}function _0x259cbe(){const _0x3c8c47=window[_0x2857c9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2857c9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2857c9([0x6e,0x6f,0x77])]())[_0x2857c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2857c9([0x2e]),'');let _0x23cc26=_0x2857c9([0x6c]);for(let _0x55580d=0x0;_0x55580d<_0x3c8c47[_0x2857c9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55580d+=0x2){let _0x21197b=window[_0x2857c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c8c47[_0x2857c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55580d,_0x55580d+0x2));_0x21197b>=_0x55b369[_0x2857c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21197b-=_0x55b369[_0x2857c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23cc26+=_0x55b369[_0x21197b];}return _0x23cc26;}function _0x4bcfc3(){const _0x53aacf=_0x2a9cf4[_0x2857c9([0x73,0x70,0x6c,0x69,0x74])](_0x2857c9([0x2e]));if(0x3!=_0x53aacf[_0x2857c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6ab730(_0x53aacf[0x1]);function _0x6ab730(_0x4a2fe6){const _0x49b64a=_0xce6e2c(_0x4a2fe6);return _0x49b64a&&_0x370c01()?_0x49b64a:null;function _0x370c01(){const _0x388cd9=_0x49b64a[_0x2857c9([0x6a,0x74,0x69])],_0x22dec1=window[_0x2857c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x388cd9[_0x2857c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x388cd9[_0x2857c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x445d1c={..._0x49b64a,[_0x2857c9([0x6a,0x74,0x69])]:_0x388cd9[_0x2857c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x388cd9[_0x2857c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x445d1c[_0x2857c9([0x76,0x63])],_0x913b23(_0x445d1c)==_0x22dec1;}}}async function _0x5a5ad9(){let _0x517e6a=!0x0;try{const _0x4cd9bf=_0x2a9cf4[_0x2857c9([0x73,0x70,0x6c,0x69,0x74])](_0x2857c9([0x2e])),[_0x1a749e,_0xb70905,_0x38851d]=_0x4cd9bf;return _0x418ae6(_0x1a749e),await _0x5a69a1(_0x1a749e,_0xb70905,_0x38851d),_0x517e6a;}catch(_0x5c9943){return!0x1;}function _0x418ae6(_0x517ab4){const _0x383611=_0xce6e2c(_0x517ab4);_0x383611&&_0x383611[_0x2857c9([0x61,0x6c,0x67])]==_0x2857c9([0x45,0x53,0x32,0x35,0x36])||(_0x517e6a=!0x1);}async function _0x5a69a1(_0x432f70,_0x11de04,_0x173b0e){const _0x215133=window[_0x2857c9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2857c9([0x66,0x72,0x6f,0x6d])](_0x558308(_0x173b0e),_0x18c1ed=>_0x18c1ed[_0x2857c9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x809157=new window[(_0x2857c9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2857c9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x432f70+_0x2857c9([0x2e])+_0x11de04),_0x550ec8=window[_0x2857c9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2857c9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x550ec8)return;const _0xcbbe29=await _0x550ec8[_0x2857c9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2857c9([0x6a,0x77,0x6b]),_0x22adb1,{[_0x2857c9([0x6e,0x61,0x6d,0x65])]:_0x2857c9([0x45,0x43,0x44,0x53,0x41]),[_0x2857c9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2857c9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2857c9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x550ec8[_0x2857c9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2857c9([0x6e,0x61,0x6d,0x65])]:_0x2857c9([0x45,0x43,0x44,0x53,0x41]),[_0x2857c9([0x68,0x61,0x73,0x68])]:{[_0x2857c9([0x6e,0x61,0x6d,0x65])]:_0x2857c9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xcbbe29,_0x215133,_0x809157)||(_0x517e6a=!0x1);}}function _0xce6e2c(_0x3dfbbd){return _0x3dfbbd[_0x2857c9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2857c9([0x65,0x79]))?JSON[_0x2857c9([0x70,0x61,0x72,0x73,0x65])](_0x558308(_0x3dfbbd)):null;}function _0x558308(_0x2fb601){return window[_0x2857c9([0x61,0x74,0x6f,0x62])](_0x2fb601[_0x2857c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2857c9([0x2b]))[_0x2857c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2857c9([0x2f])));}function _0x913b23(_0x1d7043){let _0x345894=0x1505;function _0x5cb454(_0xe7a10){for(let _0x43425b=0x0;_0x43425b<_0xe7a10[_0x2857c9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43425b++){const _0x49b336=_0xe7a10[_0x2857c9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43425b);_0x345894=(_0x345894<<0x5)+_0x345894+_0x49b336,_0x345894&=_0x345894;}}function _0x53b677(_0x411abf){Array[_0x2857c9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x411abf)?_0x411abf[_0x2857c9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53b677):_0x411abf&&typeof _0x411abf==_0x2857c9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2857c9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x411abf)[_0x2857c9([0x73,0x6f,0x72,0x74])]()[_0x2857c9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e55e3,_0x5cd0a5])=>{_0x5cb454(_0x2e55e3),_0x53b677(_0x5cd0a5);}):_0x5cb454(window[_0x2857c9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x411abf));}return _0x53b677(_0x1d7043),_0x345894>>>0x0;}function _0x609ae8(_0x371fe1){return _0x371fe1[_0x2857c9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2857c9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2857c9([0x30]));}function _0x41eb6e(_0x554247){return _0x554247[_0x2857c9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2857c9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2857c9([0x6a,0x6f,0x69,0x6e])]('');}function _0x1cdf21(_0x2d39da){return _0x13cf0c[_0x2857c9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2857c9([0x68,0x61,0x73])](_0x2d39da);}function _0x300b88(_0x56954f){return _0x13cf0c[_0x2857c9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2857c9([0x67,0x65,0x74])](_0x56954f);}function _0x2c65fe(){}function _0x2857c9(_0x80667d){return _0x80667d['map'](_0x5e115c=>String['fromCharCode'](_0x5e115c))['join']('');}_0xaef65c(await _0x532712());}(this);}['createRevision'](_0x578af9){const _0x17b5ec=this['editor']['plugins']['get']('Users');return new h({'id':_0x578af9['id'],'name':_0x578af9['name'],'creator':_0x578af9['creatorId']?_0x17b5ec['getUser'](_0x578af9['creatorId']):null,'diffData':_0x578af9['diffData']||_0x578af9['data'],'authors':_0x578af9['authorsIds']['map'](_0x460d2d=>_0x17b5ec['getUser'](_0x460d2d)),'createdAt':new Date(_0x578af9['createdAt']),'attributes':_0x578af9['attributes'],'fromVersion':_0x578af9['fromVersion'],'toVersion':_0x578af9['toVersion']});}['addRevision'](_0x2927d7,_0xb66315=0x0){this['_revisions']['add'](_0x2927d7,_0xb66315);}['getRevision'](_0x2305dd){return this['_revisions']['get'](_0x2305dd);}['getRevisions'](_0x3cee16={'toJSON':!0x1}){const _0x58a832=Array['from'](this['_revisions']);return _0x58a832['reverse'](),_0x3cee16['toJSON']?_0x58a832['map'](_0x1a4533=>_0x1a4533['toJSON']()):_0x58a832;}['getIndex'](_0x22c8d3){return this['_revisions']['getIndex'](_0x22c8d3);}['getEarlierVisibleRevision'](_0x577fd2){const [,_0x54bfc3]=this['getRevisionsIterator'](_0x577fd2,{'direction':'earlier'});return _0x54bfc3;}['getLaterVisibleRevision'](_0x59f9eb){const [,_0x57cc98]=this['getRevisionsIterator'](_0x59f9eb,{'direction':'later'});return _0x57cc98;}['getRevisionsInDiff'](_0x360649){const _0xa6682a=[];for(const _0x143e2e of this['getRevisionsIterator'](_0x360649['newRevisionId']))if(_0xa6682a['push'](_0x143e2e),_0x143e2e['id']===_0x360649['oldRevisionId'])break;return _0xa6682a;}*['getRevisionsIterator'](_0x466276,{direction:_0xad26b7='earlier',filter:_0x1913d8=()=>!0x0}={}){const _0x35d4c5='earlier'===_0xad26b7?0x1:-0x1;let _0x241af7=this['_revisions']['get'](_0x466276),_0x5cac6d=this['getIndex'](_0x241af7);for(yield _0x241af7;_0x241af7;){if(_0x5cac6d+=_0x35d4c5,_0x241af7=this['getRevision'](_0x5cac6d),!_0x241af7)return;_0x1913d8(_0x241af7)&&(yield _0x241af7);}}}class V extends _0x28459c{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5e0202,'c'],[_0x8312d7,'a'],[_0x5aee2b,'e'],[_0x33ff0e,'r'],[_0x27a70c,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5e0202],['a',_0x8312d7],['e',_0x5aee2b],['r',_0x33ff0e],['u',_0x27a70c]]);async['loadRevisionData'](_0x12e031,_0x234abd){if(_0x12e031['diffData']||!_0x234abd)return;const _0x48afc6=this['editor']['config']['get']('collaboration.channelId'),_0x44fcb9=await _0x234abd['getRevision']({'channelId':_0x48afc6,'revisionId':_0x12e031['id']});_0x12e031['diffData']=_0x44fcb9['diffData'];}['getRevisionDocumentData'](_0x323478){const _0x3293d0={};for(const _0x45ea0e in _0x323478['diffData']){if(_0x323478['diffData'][_0x45ea0e]['attachChange']&&!_0x323478['diffData'][_0x45ea0e]['attachChange']['isAttached'])continue;const _0x24d99a=this['_removeRevisionMarkers'](JSON['parse'](_0x323478['diffData'][_0x45ea0e]['insertions'])),_0x1b014d=this['editor']['editing']['view']['document'],_0x1c9ec3=new _0x10dc03(_0x1b014d,_0x24d99a['map'](_0x1d4fce=>this['_getViewFromDiffObj'](_0x1d4fce,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3293d0[_0x45ea0e]=this['editor']['data']['processor']['toData'](_0x1c9ec3),this['editor']['data']['processor']['useFillerType']('default');}return _0x3293d0;}['getRevisionRootsAttributes'](_0x2804d3){const _0x438f00={};for(const _0x253de9 in _0x2804d3['diffData'])_0x2804d3['diffData'][_0x253de9]['attachChange']&&!_0x2804d3['diffData'][_0x253de9]['attachChange']['isAttached']||(_0x438f00[_0x253de9]=_0x2804d3['diffData'][_0x253de9]['attributesAfter']||{});return _0x438f00;}['_getTypeCharForViewElement'](_0x183efb){return this['_viewClassToTypeChar']['get'](_0x183efb['constructor']);}['_getViewFromDiffObj'](_0x4c2a00,_0x3c796b){const _0x5942e7=this['editor']['editing']['view']['document'];if('string'==typeof _0x4c2a00)return new _0x2645a5(_0x5942e7,_0x4c2a00);{let _0x42bd48,_0x48b708;_0x48b708='u'==_0x4c2a00['type']||'r'==_0x4c2a00['type']?[]:_0x4c2a00['children']['map'](_0x7d6a55=>this['_getViewFromDiffObj'](_0x7d6a55,_0x3c796b));const _0x13312f=this['_typeCharToViewClass']['get'](_0x4c2a00['type'])||_0x37822d,_0x3a5e4b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x42bd48=new _0x13312f(_0x5942e7,_0x4c2a00['name'],_0x4c2a00['attributes'],_0x48b708),'u'==_0x4c2a00['type']&&_0x4c2a00['children'][0x0]){const _0x258a64=_0x4c2a00['children'][0x0];if(_0x42bd48['render']=function(_0x23f62f){const _0x24155f=_0x23f62f['createElement']('div');return _0x24155f['innerHTML']=_0x258a64,_0x24155f['childNodes'][0x0];},_0x3c796b){const _0x27d707=new _0x10dc03(_0x5942e7);_0x27d707['_appendChild'](_0x42bd48);const _0x37c8b5=Array['from'](_0x3a5e4b['viewChildrenToDom'](_0x27d707,{'bind':!0x1})),_0x30b609=_0x3a5e4b['domDocument']['createElement']('div');_0x30b609['append'](..._0x37c8b5),_0x42bd48=Array['from'](_0x3a5e4b['domChildrenToView'](_0x30b609))[0x0];}}else{if('r'==_0x4c2a00['type']&&_0x4c2a00['children'][0x0]){const _0x411941=_0x4c2a00['children'][0x0];if(_0x42bd48['render']=function(_0x1b8af5){_0x1b8af5['innerHTML']=_0x411941;},_0x3c796b){const _0x53bb8c=new _0x10dc03(_0x5942e7);_0x53bb8c['_appendChild'](_0x42bd48);const _0x509410=Array['from'](_0x3a5e4b['viewChildrenToDom'](_0x53bb8c,{'bind':!0x1})),_0x1c2d7d=_0x3a5e4b['domDocument']['createElement']('div');_0x1c2d7d['append'](..._0x509410);const _0x29a902=Array['from'](_0x3a5e4b['domChildrenToView'](_0x1c2d7d));_0x29a902['length']>0x1?_0x42bd48['_appendChild'](_0x29a902):_0x42bd48=_0x29a902[0x0];}}}if(_0x4c2a00['customProperties']){for(const [_0x20c600,_0x11173f]of _0x4c2a00['customProperties'])_0x42bd48['_setCustomProperty'](_0x20c600,_0x11173f);}const _0x375aea=void 0x0===_0x4c2a00['fillerOffset']?null:_0x4c2a00['fillerOffset'];return null!==_0x375aea&&(_0x42bd48['getFillerOffset']=()=>_0x375aea),_0x42bd48;}}['_makeModelFromViewString'](_0x99df4e){const _0xa01e22=JSON['parse'](_0x99df4e),_0x493416=this['editor']['editing']['view']['document'],_0x20e5bb=new _0x10dc03(_0x493416,_0xa01e22['map'](_0x5e073d=>this['_getViewFromDiffObj'](_0x5e073d,!0x0)));return this['editor']['data']['toModel'](_0x20e5bb);}['_removeRevisionMarkers'](_0x4fdae4){return(_0x4fdae4=_0x4fdae4['filter'](_0x36cb80=>!_0x36cb80['name']||'revision-start'!==_0x36cb80['name']&&'revision-end'!==_0x36cb80['name']))['forEach'](_0x145bc0=>{'string'!=typeof _0x145bc0&&(_0x145bc0['children']=this['_removeRevisionMarkers'](_0x145bc0['children']),_0x145bc0['attributes']=_0x145bc0['attributes']['filter'](_0x343c81=>!_0x343c81[0x0]['startsWith']('data-revision-')));}),_0x4fdae4;}}function g(_0x192899,_0x2b70aa,_0x152f67){const t=_0x192899['t'];switch(_0x2b70aa){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'},_0x152f67);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x152f67);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x28459c{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x437c2e,I,V,_0x351e9f];}constructor(_0x3a9181){super(_0x3a9181),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x19053e=_0x1da58b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x19053e},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x36c5fa=this['repository']['getRevision'](0x0),_0x5b9e0d=_0x36c5fa&&null===_0x36c5fa['creator']?_0x36c5fa:null;if(this['_continueCurrentRevision']=!!_0x5b9e0d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x374763=this['_source']['getCurrentRevisionId'](),_0x2672f7=this['repository']['getRevision'](_0x374763);if(_0x2672f7)this['_startingVersion']=_0x2672f7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1c867a=this['_source']['history']['_operations']['find'](_0x4c13ca=>!_0x4c13ca['_isInit']),_0x52a446=_0x1c867a?_0x1c867a['baseVersion']:this['_source']['history']['version'];_0x36c5fa?(_0x36c5fa['toVersion']<_0x52a446&&_0x36c5fa['_update']({'toVersion':_0x52a446}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5b9e0d['id'],this['_startingVersion']=_0x5b9e0d['fromVersion']):(this['_startingVersion']=_0x36c5fa['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x52a446,this['_continueCurrentRevision']=!0x1);}}else _0x5b9e0d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5b9e0d['toVersion'],this['editor']['model']['document']['history']['version']),_0x5b9e0d['fromVersion']===_0x5b9e0d['toVersion']?(0x0!==_0x5b9e0d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b9e0d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b9e0d['id'],this['_startingVersion']=_0x5b9e0d['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',_0x346e54=>!_0x346e54),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3f8d8b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bfe63;for(const _0x259ddb in _0x3f8d8b){const _0x14b475=_0x259ddb,_0x2bd050=_0x3f8d8b[_0x14b475];if('revisionHistoryLicenseKeyValid'==_0x2bd050||'revisionHistoryLicenseKeyInvalid'==_0x2bd050||'revisionHistoryLicenseKeyExpired'==_0x2bd050||'revisionHistoryLicenseKeyDomainLimit'==_0x2bd050||'revisionHistoryLicenseKeyNotAllowed'==_0x2bd050||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2bd050||'revisionHistoryLicenseKeyTrialLimit'==_0x2bd050||'revisionHistoryLicenseKeyUsageLimit'==_0x2bd050){delete _0x3f8d8b[_0x14b475],_0x5bfe63=_0x2bd050,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5bfe63&&_0x3f8d8b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5bfe63&&_0x3f8d8b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5bfe63&&_0x3f8d8b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5bfe63&&_0x3f8d8b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5bfe63&&_0x3f8d8b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5bfe63&&_0x3f8d8b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5bfe63&&_0x3f8d8b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1bde46=this['repository']['getRevision'](0x0),_0x20e601=await this['getRevisionDocumentData'](_0x1bde46),_0x5be166=await this['getRevisionRootsAttributes'](_0x1bde46);this['_replaceEditorDataWithRevisionData'](_0x20e601,_0x5be166);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4fcdeb){this['_source']=_0x4fcdeb;}async['update'](){const _0x42b1c2=await this['_source']['getLatestVersion']();if(_0x42b1c2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x409a2d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x42b1c2});_0x409a2d['authors']=_0x409a2d['authorsIds']['map'](_0x15a5c2=>this['editor']['plugins']['get']('Users')['getUser'](_0x15a5c2)),this['currentRevision']['_update'](_0x409a2d);}}async['saveRevision'](_0x4db4c8={},_0x50b22c=null){const _0x163025=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x50b22c>this['currentRevision']['toVersion']&&(_0x50b22c=null),null===_0x50b22c&&(_0x50b22c=await this['_source']['getLatestVersion']());const _0x112b3c=this['_getFromVersion'](_0x50b22c),_0x42d639=this['buildRevisionData']({'from':_0x112b3c,'to':_0x50b22c});if(this['currentRevision']['toVersion']<_0x50b22c){const _0x43135f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x50b22c,'to':_0x50b22c});_0x43135f['authors']=[],_0x43135f['authorsIds']=[],_0x43135f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x43135f,!0x0),delete _0x43135f['authors'],_0x163025['push'](_0x43135f);}_0x4db4c8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4db4c8['name']=_0x4db4c8['name']||null,_0x4db4c8['id']=_0x4db4c8['id']||_0x1da58b(),_0x4db4c8={..._0x4db4c8,..._0x42d639};const _0x180494=this['addRevisionData'](_0x4db4c8);_0x163025['push'](_0x4db4c8);const _0x4fa02=this['repository']['getIndex'](_0x180494);if(0x0!==_0x4fa02){const _0x3c2b24=this['repository']['getRevision'](_0x4fa02-0x1);if(_0x3c2b24['fromVersion']!==_0x50b22c){const _0x173310=this['_revisionDataBuilder']['getData'](_0x50b22c,_0x3c2b24['toVersion']),_0xd99c98={'id':_0x3c2b24['id'],'diffData':_0x173310['diffData'],'authorsIds':_0x173310['authorsIds'],'authors':_0x173310['authorsIds']['map'](_0x222cfd=>this['editor']['plugins']['get']('Users')['getUser'](_0x222cfd)),'fromVersion':_0x50b22c};_0x3c2b24===this['currentRevision']&&(_0xd99c98['createdAt']=new Date(_0x4db4c8['createdAt']['getTime']()+0xa)),_0x3c2b24['_update'](_0xd99c98,!0x0),delete _0xd99c98['authors'],_0x163025['push'](_0xd99c98);}}if(this['adapter']){for(const _0x4c08a3 of _0x163025)this['_bufferUpdate'](_0x4c08a3['id'],_0x4c08a3,!0x0);this['sendBufferedUpdates']();}return _0x180494;}['addRevisionData'](_0x3913db){const _0x231f5e=this['repository']['createRevision'](_0x3913db);return this['adapter']&&_0x231f5e['on']('_update',(_0x51a73c,_0x588991,_0x57f1f9)=>{_0x57f1f9||(this['_bufferUpdate'](_0x588991['id'],_0x588991,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x231f5e,this['_findInsertionIndex'](_0x231f5e)),_0x231f5e;}async['getRevisionDocumentData'](_0x543520){return await this['_utils']['loadRevisionData'](_0x543520,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x543520);}async['getRevisionRootsAttributes'](_0x59c739){return await this['_utils']['loadRevisionData'](_0x59c739,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x59c739);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x22a68a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3eb333=0x0;_0x3eb333<_0x22a68a['length'];_0x3eb333++){const _0x4afbc2=_0x22a68a[_0x3eb333];let _0x5775e3=!0x1;for(const _0x2425e8 of Object['keys'](_0x4afbc2))void 0x0===_0x4afbc2[_0x2425e8]?delete _0x4afbc2[_0x2425e8]:'id'!==_0x2425e8&&(_0x5775e3=!0x0);_0x5775e3||(_0x22a68a[_0x3eb333]=null);}if(_0x22a68a=_0x22a68a['filter'](_0x164a17=>null!==_0x164a17),!_0x22a68a['length'])return;for(let _0x482f76=0x0;_0x482f76<_0x22a68a['length'];_0x482f76++){const _0x563a79=_0x22a68a[_0x482f76];void 0x0!==_0x563a79['fromVersion']&&void 0x0===_0x563a79['toVersion']&&(_0x563a79['toVersion']=this['repository']['getRevision'](_0x563a79['id'])['toVersion']),void 0x0!==_0x563a79['toVersion']&&void 0x0===_0x563a79['fromVersion']&&(_0x563a79['fromVersion']=this['repository']['getRevision'](_0x563a79['id'])['fromVersion']);}const _0x1eeb94=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x22a68a,_0x1eeb94)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x350ea8=>{if(_0x350ea8){for(const _0x463d76 of _0x350ea8)this['setRevisionData']({'id':_0x463d76['id'],'createdAt':_0x463d76['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x382b46=null,from:_0x3e2a3a=null,to:_0x289fd3=null}){_0x3e2a3a=null!==_0x3e2a3a?_0x3e2a3a:_0x382b46['fromVersion'],_0x289fd3=null!==_0x289fd3?_0x289fd3:_0x382b46['toVersion'];const _0x3912cb=this['_revisionDataBuilder']['getData'](_0x3e2a3a,_0x289fd3),_0xb10dbc={'diffData':_0x3912cb['diffData'],'authorsIds':_0x3912cb['authorsIds'],'fromVersion':_0x3e2a3a,'toVersion':_0x289fd3};if(!_0x382b46||_0x289fd3!==_0x382b46['toVersion']){const _0x25b3ed=_0x289fd3-0x1,_0x538033=this['_source']['history']['getOperation'](_0x25b3ed);_0xb10dbc['createdAt']=_0x538033&&_0x538033['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3e2a3a===this['_loadedStateData']['fromVersion']){for(const _0x54966b of this['_loadedStateData']['authors'])_0xb10dbc['authorsIds']['includes'](_0x54966b['id'])||_0xb10dbc['authorsIds']['push'](_0x54966b['id']);}return _0xb10dbc;}['_bufferUpdate'](_0x593c3f,_0xb2c113,_0x52c496){if(this['_bufferedUpdates']['has'](_0x593c3f)){const _0x62c864=this['_bufferedUpdates']['get'](_0x593c3f);_0xb2c113=_0x52c496?{..._0x62c864,..._0xb2c113}:{..._0xb2c113,..._0x62c864};}this['_bufferedUpdates']['set'](_0x593c3f,_0xb2c113);}['setRevisionData'](_0x3f0626){const _0x1dbd7b=this['repository']['getRevision'](_0x3f0626['id']);if(_0x3f0626['createdAt']&&(_0x3f0626['createdAt']=new Date(_0x3f0626['createdAt'])),_0x3f0626['authorsIds']){const _0x38d6ef=this['editor']['plugins']['get']('Users');_0x3f0626['authors']=_0x3f0626['authorsIds']['map'](_0x168720=>_0x38d6ef['getUser'](_0x168720));}_0x1dbd7b['_update'](_0x3f0626,!0x0);}['_createInitialRevision'](_0x3dfa66){const _0x3864fc=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3864fc)this['_initialRevisionId']=_0x3864fc['id'];else{const _0x1990e8=!this['editor']['model']['document']['roots']['find'](_0x2ee288=>this['editor']['model']['hasContent'](_0x2ee288)),_0x36a78c=this['editor']['plugins']['get']('Users')['me']['id'],_0xcfa11b=g(this['editor']['locale'],_0x1990e8?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3dfa66,'to':_0x3dfa66,'id':this['_initialRevisionId'],'name':_0xcfa11b,'creatorId':_0x36a78c});}}['_createCurrentRevision'](_0xdbb610){const _0x4327db=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4327db),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xdbb610,'to':_0xdbb610,'id':_0x4327db,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x34012c,_0x4caaea){let _0x510120=this['editor']['config']['get']('initialData'),_0x1732e5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x510120){_0x510120={};for(const _0x1ce6b7 of this['editor']['model']['document']['getRootNames']())_0x510120[_0x1ce6b7]='';}if('string'==typeof _0x510120&&(_0x510120={'main':_0x510120}),void 0x0===_0x1732e5){_0x1732e5={};for(const _0x45821e of this['editor']['model']['document']['getRootNames']())_0x1732e5[_0x45821e]={};}let _0x43a422=!0x1;const _0x3f5904=Object['keys'](_0x510120),_0x678a63=Object['keys'](_0x34012c);for(const _0x5a13ba of _0x3f5904){if(_0x510120[_0x5a13ba]!==_0x34012c[_0x5a13ba]&&''!==_0x510120[_0x5a13ba]['trim']()){_0x43a422=!0x0;break;}if(!_0x1a8b5b(_0x1732e5[_0x5a13ba],_0x4caaea[_0x5a13ba])&&Object['keys'](_0x1732e5[_0x5a13ba])['length']>0x0){_0x43a422=!0x0;break;}}_0x43a422||(_0x43a422=_0x678a63['some'](_0x18349f=>!this['editor']['model']['document']['getRoot'](_0x18349f))),_0x43a422&&_0x3bbbf9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x510120,'editorRootsAttributes':_0x1732e5,'revisionData':_0x34012c,'revisionRootsAttributes':_0x4caaea}),this['editor']['config']['set']('initialData',_0x34012c),this['editor']['config']['set']('rootsAttributes',_0x4caaea);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x444fd3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x444fd3['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x305216){const _0x40d41e=this['repository']['getRevisions']();_0x40d41e['reverse']();let _0x43f691=0x0;for(;_0x43f691<_0x40d41e['length'];){const _0x56e596=_0x40d41e[_0x43f691];if(_0x56e596===this['currentRevision']){_0x43f691++;continue;}if(_0x56e596['id']===this['_initialRevisionId'])break;const _0x1bb5dc=_0x305216['toVersion']-_0x56e596['toVersion']||_0x305216['fromVersion']-_0x56e596['fromVersion'];if(_0x1bb5dc>0x0)break;if(_0x1bb5dc<0x0)_0x43f691++;else{if(!_0x305216['creator']&&_0x56e596['creator'])break;if(_0x56e596['creator']||!_0x305216['creator']){if(_0x305216['createdAt']>_0x56e596['createdAt'])break;_0x43f691++;}else _0x43f691++;}}return _0x43f691;}['_getFromVersion'](_0x3dc273){const _0x4a2cd8=this['repository']['getRevisions']();_0x4a2cd8['reverse'](),_0x4a2cd8['shift']();const _0x55db51=_0x4a2cd8['find'](_0x5cf92e=>_0x5cf92e['toVersion']<=_0x3dc273)['toVersion'];return _0x55db51<this['_startingVersion']?this['_startingVersion']:_0x55db51;}['_makeRevision']({name:_0x5f480b,from:_0x436c4e,to:_0x3d3917,creatorId:_0x3bb531,id:_0x43dbde}){const _0x4c58fd=this['buildRevisionData']({'from':_0x436c4e,'to':_0x3d3917});_0x4c58fd['name']=_0x5f480b,_0x4c58fd['creatorId']=_0x3bb531,_0x4c58fd['id']=_0x43dbde;const _0x2266c2=this['addRevisionData'](_0x4c58fd);return this['adapter']&&this['_bufferUpdate'](_0x4c58fd['id'],_0x4c58fd,!0x0),_0x2266c2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x52948c){this['editor']=_0x52948c,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'](_0x59bfa6){this['source']=_0x59bfa6;const _0x311306=new Map(),_0x570799=new Map(),_0x14f79e=this['editor']['model']['document']['roots']['map'](_0x4b1636=>_0x4b1636['rootName']);for(const _0x29d056 of _0x14f79e){const _0x45549e=this['editor']['model']['document']['getRoot'](_0x29d056),_0x28c0ed=N(_0x45549e);_0x311306['set'](_0x29d056,_0x28c0ed),_0x570799['set'](_0x29d056,Object['fromEntries'](_0x45549e['getAttributes']()));}const _0x2f52e3=Array['from'](this['editor']['model']['markers'])['map'](_0x7d1aba=>[_0x7d1aba['name'],_0x7d1aba['getRange']()]),_0x71e170=this['source']['version'];this['_saveMetaData'](_0x71e170,_0x311306,_0x2f52e3,_0x570799),this['_startingRevisionId']=this['_revisionId'];const _0x3fe267=new Map(),_0x23cc2c=new Map();for(const _0x29b294 of _0x14f79e){const _0x49fe33=P(_0x29b294);_0x3fe267['set'](_0x29b294,_0x49fe33),_0x23cc2c['set'](_0x29b294,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3fe267,[],_0x23cc2c);}['getData'](_0x21330b,_0x58c64a){if(this['_lastFrom']===_0x21330b&&this['_lastTo']<=_0x58c64a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x58c64a,!0x0);else{if(!this['_savedMetaData']['has'](_0x21330b)){const _0x18b3db=this['_getPreviousFrom'](_0x21330b);this['_calculateMetaData'](_0x18b3db,_0x21330b,!0x1);}this['_calculateMetaData'](_0x21330b,_0x58c64a,!0x0);}return this['_lastFrom']=_0x21330b,this['_lastTo']=_0x58c64a,this['_getState']();}['loadState'](_0x19d434){const _0x340696=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x19d434['fromVersion'],this['_lastTo']=_0x19d434['toVersion'];for(const _0x8ba50e in _0x19d434['diffData']){const _0x5dc104=_0x19d434['diffData'][_0x8ba50e]['attachChange'],_0x54a2a8=_0x562732(_0x19d434['diffData'][_0x8ba50e]['attributesBefore'])||{},_0x2d6816=_0x340696['_makeModelFromViewString'](_0x19d434['diffData'][_0x8ba50e]['deletions']);_0x2d6816['rootName']=_0x8ba50e,_0x2d6816['_isAttached']=!_0x5dc104||!_0x5dc104['isAttached'],_0x2d6816['isAttached']=()=>_0x2d6816['_isAttached'],this['_baseRoots']['set'](_0x8ba50e,_0x2d6816),this['_baseRootsAttributes']['set'](_0x8ba50e,_0x54a2a8),_0x5dc104&&this['_touchedRoots']['set'](_0x8ba50e,_0x5dc104);const _0x312d6=this['_makeIdsRoot'](_0x2d6816);this['_baseIdsRoots']['set'](_0x8ba50e,_0x312d6);for(const [_0x480694,_0x1dd053]of _0x2d6816['markers']){if(!_0x480694['startsWith']('revision:'))continue;const _0x277c68=_0x480694['split'](':')[0x2];for(const _0x3f771a of _0x1dd053['getWalker']({'singleCharacters':!0x0})){const _0x19a316=this['_getVidAttributeName'](_0x3f771a),_0x599688='elementEnd'==_0x3f771a['type']?_0x3f771a['previousPosition']['path']['slice'](0x0,-0x1):_0x3f771a['previousPosition']['path'],_0x7adf30=_0x312d6['getNodeByPath'](_0x599688)['getAttribute'](_0x19a316);this['_touched']['set'](_0x7adf30,{'userId':_0x277c68});}}}this['_startingRevisionId']=this['_revisionId'];const _0x53ff12=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1527be=>!this['_touched']['has'](_0x1527be));let _0x392e7a=0x0;const _0xe84bca=new Map();for(const _0x192c66 in _0x19d434['diffData']){const _0xc41a84=_0x19d434['diffData'][_0x192c66]['attachChange'],_0x50a1ef=_0x562732(_0x19d434['diffData'][_0x192c66]['attributesAfter'])||{},_0x3e8cc7=_0x340696['_makeModelFromViewString'](_0x19d434['diffData'][_0x192c66]['insertions']);_0x3e8cc7['rootName']=_0x192c66,_0x3e8cc7['_isAttached']=!_0xc41a84||_0xc41a84['isAttached'],_0x3e8cc7['isAttached']=()=>_0x3e8cc7['_isAttached'],this['_diffRoots']['set'](_0x192c66,_0x3e8cc7),this['_diffRootsAttributes']['set'](_0x192c66,_0x50a1ef);const _0x1e7f58=this['_makeIdsRoot'](_0x3e8cc7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x192c66,_0x1e7f58),_0xe84bca['set'](_0x192c66,_0x3e8cc7['isAttached']()?_0x50a1ef:{});for(const [_0x30959d,_0x22c512]of _0x3e8cc7['markers']){if(!_0x30959d['startsWith']('revision:'))continue;const _0x1cd172=_0x30959d['split'](':')[0x2];for(const _0x5d1c91 of _0x22c512['getWalker']({'singleCharacters':!0x0})){const _0x47ac89=this['_getVidAttributeName'](_0x5d1c91),_0x20a361=this['_revisionId']++,_0x37f66d='elementEnd'==_0x5d1c91['type']?_0x5d1c91['previousPosition']['path']['slice'](0x0,-0x1):_0x5d1c91['previousPosition']['path'];_0x1e7f58['getNodeByPath'](_0x37f66d)['_setAttribute'](_0x47ac89,_0x20a361),this['_touched']['set'](_0x20a361,{'userId':_0x1cd172});}}for(const _0xb9e76b of this['editor']['model']['createRangeIn'](_0x3e8cc7)['getWalker']({'singleCharacters':!0x0})){const _0x11fa20=this['_getVidAttributeName'](_0xb9e76b),_0x48245d='elementEnd'==_0xb9e76b['type']?_0xb9e76b['previousPosition']['path']['slice'](0x0,-0x1):_0xb9e76b['previousPosition']['path'],_0x290c0=_0x1e7f58['getNodeByPath'](_0x48245d);_0x290c0['getAttribute'](_0x11fa20)>0x0||_0x290c0['_setAttribute'](_0x11fa20,_0x53ff12[_0x392e7a++]);}for(const [_0x58d03d,_0x878361]of _0x3e8cc7['markers'])_0x58d03d['startsWith']('revision:')||this['_markers']['set'](_0x58d03d,_0x878361);}const _0x5131c3=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5131c3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5131c3,0x1));const _0x10e6c1=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x10e6c1),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x10e6c1,0x1));const _0x22bfea=Array['from'](this['_diffRoots'])['map'](([_0x4a8fb6,_0x4105ba])=>[_0x4a8fb6,N(_0x4105ba)]);this['_saveMetaData'](this['_lastTo'],_0x22bfea,this['_markers'],_0xe84bca);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2636b1,_0x197383,_0x4a24f9,_0x119525){const _0x381afb=new Map(_0x197383),_0x21a47f=new Map(_0x562732(_0x119525)),_0x4d4d26=new Map();for(const [_0x53ac53,_0x1050c3]of _0x4a24f9)_0x4d4d26['set'](_0x53ac53,{'start':_0x1050c3['start']['clone'](),'end':_0x1050c3['end']['clone'](),'rootName':_0x1050c3['root']['rootName']});this['_savedMetaData']['set'](_0x2636b1,{'roots':_0x381afb,'markers':_0x4d4d26,'rootsAttributes':_0x21a47f});}['_removeMetaData'](_0x384bfc){this['_savedMetaData']['delete'](_0x384bfc);}['_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'](_0x2bbdb5,_0x466746=null){let _0x3e1adf=null;_0x2bbdb5['is']('documentFragment')||(_0x3e1adf=new ut(_0x2bbdb5['name'],{'vid_start':null===_0x466746?this['_revisionId']++:_0x466746++}));const _0x2b7204=[];for(const _0x40bb06 of _0x2bbdb5['getChildren']())if(_0x40bb06['is']('element')){_0x2b7204['push'](this['_makeIdsRoot'](_0x40bb06,_0x466746));const _0x6a6b8e=_0x2b7204[_0x2b7204['length']-0x1];null!==_0x466746&&(_0x466746=_0x6a6b8e['is']('element','$text')?_0x6a6b8e['getAttribute']('vid')+0x1:_0x6a6b8e['getAttribute']('vid_end')+0x1);}else{for(let _0x16b6d5=0x0;_0x16b6d5<_0x40bb06['offsetSize'];_0x16b6d5++)_0x2b7204['push'](new ut('$text',{'vid':null===_0x466746?this['_revisionId']++:_0x466746++}));}if(_0x2bbdb5['is']('documentFragment')){const _0x25bcc4=P(_0x2bbdb5['rootName']);return _0x25bcc4['_insertChild'](0x0,_0x2b7204),_0x25bcc4;}return _0x3e1adf['_setAttribute']('vid_end',null===_0x466746?this['_revisionId']++:_0x466746++),_0x3e1adf['_insertChild'](0x0,_0x2b7204),_0x3e1adf;}['_calculateMetaData'](_0x15e43e,_0x10c17f,_0x5cf98d){this['_reset']();const {roots:_0x2507d2,markers:_0x4124d4,rootsAttributes:_0x120d52}=this['_savedMetaData']['get'](_0x15e43e);this['_baseRoots']=new Map(_0x2507d2),this['_baseRootsAttributes']=new Map(_0x562732(_0x120d52));for(const [_0x33879b,_0x4d4b6a]of this['_baseRoots'])if('$graveyard'!==_0x33879b&&(this['_diffRoots']['set'](_0x33879b,N(_0x4d4b6a)),this['_diffRootsAttributes']=new Map(_0x562732(_0x120d52)),_0x5cf98d)){const _0x2cc1c7=this['_revisionId'];this['_idsRoots']['set'](_0x33879b,this['_makeIdsRoot'](_0x4d4b6a)),this['_baseIdsRoots']['set'](_0x33879b,this['_makeIdsRoot'](_0x4d4b6a,_0x2cc1c7));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x5cf98d&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5a7ede,_0x25d9c5]of _0x4124d4){const _0x11b258=this['_baseRoots']['get'](_0x25d9c5['rootName']),_0x30bf70=this['_diffRoots']['get'](_0x25d9c5['rootName']),_0x52e330=new lt(this['_fixPosition'](_0x25d9c5['start'],_0x11b258),this['_fixPosition'](_0x25d9c5['end'],_0x11b258)),_0x274fdb=this['_fixRange'](_0x52e330,_0x30bf70);_0x11b258['markers']['set'](_0x5a7ede,_0x52e330),this['_markers']['set'](_0x5a7ede,_0x274fdb);}this['_applyOperations'](_0x15e43e,_0x10c17f,_0x5cf98d);}['_applyOperations'](_0x2b0a08,_0x46f845,_0x1579ba){for(const _0x399a90 of this['source']['getOperations'](_0x2b0a08,_0x46f845))this['_handleOperation'](_0x399a90,_0x1579ba);for(const _0x463f12 of this['_diffRoots']['values']())_0x463f12['markers']['clear']();for(const [_0x368ecd,_0x2be3bc]of this['_markers']){this['_diffRoots']['get'](_0x2be3bc['root']['rootName'])['markers']['set'](_0x368ecd,_0x2be3bc['clone']());}const _0x592e06=new Map(),_0x536e61=new Map();for(const [_0x32c576,_0x4f118d]of this['_diffRoots'])_0x592e06['set'](_0x32c576,N(_0x4f118d)),_0x536e61['set'](_0x32c576,this['_diffRootsAttributes']['get'](_0x32c576));this['_saveMetaData'](_0x46f845,_0x592e06,this['_markers'],_0x536e61);}['_getPreviousFrom'](_0x418041){const _0x146fbf=Array['from'](this['_savedMetaData']['keys']());_0x146fbf['sort']((_0x49ca0c,_0x564b19)=>_0x49ca0c-_0x564b19),_0x146fbf['reverse']();for(const _0x579062 of _0x146fbf)if(_0x579062<_0x418041)return _0x579062;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3d8262,_0x40d1a1){const _0x4835c9=Array['from'](_0x40d1a1['markers'])['map'](([_0x5eae00,_0x2d7d65])=>[_0x5eae00,this['_fixRange'](_0x2d7d65,_0x3d8262)]);_0x3d8262['markers']=new Map(_0x4835c9);}['_transformMarkers'](_0x223a90){for(const _0x30a3ed of this['_markers']['values']()){const _0x19de35=_0x30a3ed['getTransformedByOperation'](_0x223a90),_0x29772e=lt['_createFromRanges'](_0x19de35);_0x30a3ed['start']=_0x29772e['start'],_0x30a3ed['end']=_0x29772e['end'];}}['_handleOperation'](_0x575c1f,_0x4c9097){if('addRoot'!=_0x575c1f['type']&&'detachRoot'!=_0x575c1f['type']){if('insert'==_0x575c1f['type']){const _0x589de4=_0x575c1f['position']['root']['rootName'];this['_diffRoots']['has'](_0x589de4)||(this['_diffRoots']['set'](_0x589de4,P(_0x589de4,!0x0)),this['_diffRootsAttributes']['set'](_0x589de4,{}),_0x4c9097&&this['_idsRoots']['set'](_0x589de4,P(_0x589de4,!0x0)));}else{if('addRootAttribute'==_0x575c1f['type']||'removeRootAttribute'==_0x575c1f['type']||'changeRootAttribute'==_0x575c1f['type'])return void this['_handleRootAttributeOperation'](_0x575c1f);'marker'==_0x575c1f['type']&&this['_handleMarkerOperation'](_0x575c1f);}if('marker'!==_0x575c1f['type']){const _0x3673b8=this['_cloneOperation'](_0x575c1f,this['_diffRoots']);_0x3673b8['_execute'](),this['_transformMarkers'](_0x3673b8);}if(_0x4c9097)switch(_0x575c1f['type']){case'insert':this['_handleInsertOperation'](_0x575c1f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x575c1f);break;case'merge':this['_handleMergeOperation'](_0x575c1f);break;case'split':this['_handleSplitOperation'](_0x575c1f);}}else this['_handleRootOperation'](_0x575c1f,_0x4c9097);}['_cloneOperation'](_0x30ec4d,_0x3e3025){const _0x5dbc4e=_0x30ec4d['clone']();return _0x5dbc4e['_authorId']=_0x30ec4d['_authorId'],this['_fixOperation'](_0x5dbc4e,_0x3e3025),_0x5dbc4e;}['_getBaseVids'](_0x5d43a8){return _0x5d43a8['map'](_0x3dfa78=>{const _0x194bb3=this['_getVidAttributeName'](_0x3dfa78);return Number(_0x3dfa78['item']['getAttribute'](_0x194bb3));});}['_generateTape'](_0x1ffdc0,_0x25cf95){if(_0x1ffdc0['is']('element','$text'))_0x25cf95['push']({'item':_0x1ffdc0,'type':'text'});else{_0x1ffdc0['is']('element')&&_0x25cf95['push']({'item':_0x1ffdc0,'type':'elementStart'});for(const _0x19df40 of _0x1ffdc0['getChildren']())this['_generateTape'](_0x19df40,_0x25cf95);_0x1ffdc0['is']('element')&&_0x25cf95['push']({'item':_0x1ffdc0,'type':'elementEnd'});}return _0x25cf95;}['_getState'](){const _0x3a3091=new Map(this['_touched']),_0x47abc2=new Map(_0x3a3091),_0x272992=new Map(),_0x1373a2={'insertions':{},'deletions':{}},_0x5cd617={'insertions':{},'deletions':{}},_0x21df48=new Map(),_0xbcf4a3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xbcf4a3['delete']('$graveyard');for(const _0x1dd2e4 of _0xbcf4a3){const _0x678b82=this['_diffRoots']['get'](_0x1dd2e4)||P(_0x1dd2e4,!0x1),_0x573bfe=this['_baseRoots']['get'](_0x1dd2e4)||P(_0x1dd2e4,!0x1);_0x678b82['isAttached']()||_0x573bfe['isAttached']()?(_0x1373a2['insertions'][_0x1dd2e4]=N(_0x678b82),_0x1373a2['deletions'][_0x1dd2e4]=N(_0x573bfe),this['_copyMarkers'](_0x1373a2['deletions'][_0x1dd2e4],_0x573bfe),this['_copyMarkers'](_0x1373a2['insertions'][_0x1dd2e4],_0x678b82),_0x5cd617['insertions'][_0x1dd2e4]=this['_generateTape'](this['_idsRoots']['get'](_0x1dd2e4),[]),_0x5cd617['deletions'][_0x1dd2e4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1dd2e4)||P(_0x1dd2e4,!0x1),[])):_0xbcf4a3['delete'](_0x1dd2e4);}for(const _0x241d7f of _0xbcf4a3){const _0x57e522=_0x5cd617['insertions'][_0x241d7f];for(const _0x4fe455 of _0x57e522){const _0x2c60d7=this['_getVidAttributeName'](_0x4fe455),_0x4975c8=_0x4fe455['item']['getAttribute'](_0x2c60d7);_0x47abc2['delete'](_0x4975c8),_0x4975c8>=this['_startingRevisionId']&&_0x272992['set'](_0x4975c8,_0x3a3091['get'](_0x4975c8));}}for(const _0x45469e of _0xbcf4a3){const _0xfb3cc3=_0x5cd617['insertions'][_0x45469e],_0x497f17=this['_getBaseVids'](_0x5cd617['deletions'][_0x45469e]);let _0x2bfde9=0x0;for(const _0x344334 of _0xfb3cc3){const _0x26c2eb=this['_getVidAttributeName'](_0x344334),_0x25228d=_0x344334['item']['getAttribute'](_0x26c2eb);if(!_0x272992['has'](_0x25228d)&&!_0x21df48['has'](_0x25228d)){if(_0x47abc2['has'](_0x25228d))_0x2bfde9++;else{if(_0x25228d!=_0x497f17[_0x2bfde9]){const _0x3d33a0=_0x3a3091['get'](_0x25228d)||_0x3a3091['get'](_0x497f17[_0x2bfde9]);for(;_0x25228d!=_0x497f17[_0x2bfde9];)_0x47abc2['has'](_0x497f17[_0x2bfde9])||(_0x21df48['set'](_0x497f17[_0x2bfde9],_0x3d33a0),_0x3a3091['set'](_0x497f17[_0x2bfde9],_0x3d33a0)),_0x2bfde9++;}_0x2bfde9++;}}}}for(const _0x44ad40 of _0xbcf4a3){const _0x5516d0=_0x5cd617['insertions'][_0x44ad40];for(const _0x42edec of _0x5516d0){const _0x18a04b=this['_getVidAttributeName'](_0x42edec),_0x319eff=_0x42edec['item']['getAttribute'](_0x18a04b);if(_0x21df48['has'](_0x319eff)){const _0x1d435b=_0x21df48['get'](_0x319eff);_0x47abc2['has'](_0x319eff)||_0x47abc2['set'](_0x319eff,{..._0x1d435b}),_0x272992['set'](_0x319eff,{..._0x1d435b});}}}for(const _0xaa220e of _0x47abc2['keys']())_0xaa220e>=this['_startingRevisionId']&&_0x47abc2['delete'](_0xaa220e);const _0x192785=new Map();for(const _0x343ca2 of _0xbcf4a3){let _0x346b7b=_0x5cd617['insertions'][_0x343ca2];for(const _0x371284 of _0x346b7b)if(_0x371284['item']['is']('element','tableCell')){const _0x4b21a0=this['_getVidAttributeName'](_0x371284),_0x249387=_0x371284['item']['getAttribute'](_0x4b21a0);if(_0x272992['has'](_0x249387)){const _0x43cfaa=_0x371284['item']['parent']['parent']['getAttribute']('vid_start'),_0x38f327=_0x192785['get'](_0x43cfaa)||new Set();_0x38f327['add'](_0x272992['get'](_0x249387)['userId']),_0x192785['set'](_0x43cfaa,_0x38f327);}}_0x346b7b=_0x5cd617['deletions'][_0x343ca2];for(const _0x5c9763 of _0x346b7b)if(_0x5c9763['item']['is']('element','tableCell')){const _0x286709=this['_getVidAttributeName'](_0x5c9763),_0x29010d=_0x5c9763['item']['getAttribute'](_0x286709);if(_0x47abc2['has'](_0x29010d)){const _0x5bdf71=_0x5c9763['item']['parent']['parent']['getAttribute']('vid_start'),_0x22aa27=_0x192785['get'](_0x5bdf71)||new Set();_0x22aa27['add'](_0x47abc2['get'](_0x29010d)['userId']),_0x192785['set'](_0x5bdf71,_0x22aa27);}}for(const _0x505bb1 of _0x192785['keys']())(_0x272992['has'](_0x505bb1)||_0x47abc2['has'](_0x505bb1))&&_0x192785['delete'](_0x505bb1);}for(const _0x290547 of _0xbcf4a3){const _0x153251=_0x5cd617['insertions'][_0x290547];let _0x5d67c9=null,_0x1c3a21=null;for(const _0x4b1045 of _0x153251){const _0x1e8901=this['_getVidAttributeName'](_0x4b1045),_0x4a516a=_0x4b1045['item']['getAttribute'](_0x1e8901),_0x35480a=_0x192785['get'](_0x4a516a);_0x35480a&&'elementStart'==_0x4b1045['type']&&(_0x5d67c9=Array['from'](_0x35480a)[0x0],_0x1c3a21=_0x4b1045['item']['getAttribute']('vid_end')),_0x5d67c9&&(_0x47abc2['set'](_0x4a516a,{'userId':_0x5d67c9}),_0x272992['set'](_0x4a516a,{'userId':_0x5d67c9})),_0x4a516a==_0x1c3a21&&(_0x5d67c9=null,_0x1c3a21=null);}}const _0x22d8ad={},_0x362331=new Set();for(const _0x35c6c1 of _0xbcf4a3){const _0x4d0243=_0x1373a2['deletions'][_0x35c6c1],_0x898e7c=_0x1373a2['insertions'][_0x35c6c1];for(const {userId:_0x83f54}of this['_touchedMarkers']['values']())null!==_0x83f54&&_0x362331['add'](_0x83f54);for(const {userId:_0x514777}of this['_touchedRoots']['values']())null!==_0x514777&&_0x362331['add'](_0x514777);this['_markChanges'](_0x898e7c,_0x5cd617['insertions'][_0x35c6c1],_0x272992,'insertion',_0x362331),this['_markChanges'](_0x4d0243,_0x5cd617['deletions'][_0x35c6c1],_0x47abc2,'deletion',_0x362331),_0x22d8ad[_0x35c6c1]={'insertions':this['_prepareViewToSave'](_0x898e7c),'deletions':this['_prepareViewToSave'](_0x4d0243),'attachChange':this['_touchedRoots']['get'](_0x35c6c1)||null,'attributesBefore':_0x562732(this['_baseRootsAttributes']['get'](_0x35c6c1))||{},'attributesAfter':_0x562732(this['_diffRootsAttributes']['get'](_0x35c6c1))};}return{'diffData':_0x22d8ad,'authorsIds':Array['from'](_0x362331)};}['_processRootBeforeSave'](_0x50e87f){for(const [,_0x3055dc]of _0x50e87f['markers']){const _0xd5e47c=_0x3055dc['start']['getAncestors']()['filter'](_0x5b6c2f=>'tableCell'==_0x5b6c2f['name']);for(const _0x516ba6 of _0xd5e47c)0x1==_0x516ba6['childCount']&&_0x516ba6['getChild'](0x0)['is']('element','paragraph')&&_0x516ba6['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5f5c71){this['_processRootBeforeSave'](_0x5f5c71);const _0x1ba6b3=this['editor']['data']['toView'](_0x5f5c71,{}),_0x4d5149=Array['from'](_0x1ba6b3['getChildren']())['map'](_0x4ecac6=>this['_getViewJson'](_0x4ecac6));return JSON['stringify'](_0x4d5149);}['_getViewJson'](_0x6c387d){if(_0x6c387d['is']('$text'))return _0x6c387d['data'];{const _0x8f9f68=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xf180f7=_0x6c387d,_0xff5441=this['editor']['data']['htmlProcessor']['domConverter'],_0x39f82e={'type':_0x8f9f68['_getTypeCharForViewElement'](_0xf180f7),'name':_0xf180f7['name'],'attributes':Array['from'](_0xf180f7['getAttributes']()),'children':Array['from'](_0xf180f7['getChildren']())['map'](_0x34dbaf=>this['_getViewJson'](_0x34dbaf))};if(_0x6c387d['is']('uiElement')&&'$comment'!=_0x6c387d['name']){const _0x16fcac=_0x6c387d['render'](_0xff5441['domDocument'],_0xff5441);_0x39f82e['children']['push'](_0x16fcac['outerHTML']);}else{if(_0x6c387d['is']('rawElement')){const _0x4767e2=_0xff5441['domDocument']['createElement'](_0xf180f7['name']);_0x6c387d['render'](_0x4767e2,_0xff5441),_0x39f82e['children']['push'](_0x4767e2['innerHTML']);}}const _0x4b07d3=Array['from'](_0xf180f7['getCustomProperties']());_0x4b07d3['length']>0x0&&(_0x39f82e['customProperties']=_0x4b07d3);const _0x141a31=_0xf180f7['getFillerOffset']();return null!==_0x141a31&&(_0x39f82e['fillerOffset']=_0x141a31),_0x39f82e;}}['_markChanges'](_0x5874c5,_0x45b1cc,_0x3955c2,_0x4df34b,_0x44786b){let _0x1bacca=null,_0x5e9925=null,_0x4193e3=0x0;const _0x1208b6=this['editor']['model'];for(let _0xc3345d=0x0;_0xc3345d<_0x45b1cc['length'];_0xc3345d++){const _0x3a0bd2=this['_getVidAttributeName'](_0x45b1cc[_0xc3345d]),_0x1e642a=_0x45b1cc[_0xc3345d]['item']['getAttribute'](_0x3a0bd2),_0x18229c=_0x3955c2['get'](_0x1e642a),_0x54a810=_0xc3345d==_0x45b1cc['length']-0x1;(!_0x1bacca&&_0x18229c&&(_0x1bacca=_0x18229c,_0x5e9925=_0x45b1cc[_0xc3345d]),_0x1bacca&&(!_0x18229c||_0x18229c['userId']!=_0x1bacca['userId']))&&(_0x524f86(_0x18229c,F(_0x5e9925,_0x5874c5,_0x1208b6),F(_0x45b1cc[_0xc3345d],_0x5874c5,_0x1208b6)),_0x1bacca=_0x18229c||null,_0x5e9925=_0x18229c?_0x45b1cc[_0xc3345d]:null),_0x1bacca&&_0x54a810&&_0x524f86(_0x18229c,F(_0x5e9925,_0x5874c5,_0x1208b6),B(_0x45b1cc[_0xc3345d],_0x5874c5,_0x1208b6));}function _0x524f86(_0x404287,_0x277440,_0x254de4){const _0x3607b5=_0x1bacca['userId'],_0x4f08fa='revision:'+_0x4df34b+':'+_0x3607b5+':'+_0x4193e3++,_0x1bcbb2=_0x1208b6['createRange'](_0x277440,_0x254de4);_0x5874c5['markers']['set'](_0x4f08fa,_0x1bcbb2),null!==_0x3607b5&&_0x44786b['add'](_0x3607b5);}}['_getVidAttributeName'](_0x2bd3c1){switch(_0x2bd3c1['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x541407,_0x5c5b0e){_0x541407['baseVersion']=null;for(const _0x4db521 in _0x541407){const _0xfe0d8c=_0x541407[_0x4db521];if(_0xfe0d8c instanceof ft){const _0x16e522=_0x5c5b0e['get'](_0xfe0d8c['root']['rootName']);_0x541407[_0x4db521]=this['_fixPosition'](_0xfe0d8c,_0x16e522);}if(_0xfe0d8c instanceof lt){const _0xcecf5e=_0x5c5b0e['get'](_0xfe0d8c['root']['rootName']);_0x541407[_0x4db521]=this['_fixRange'](_0xfe0d8c,_0xcecf5e);}'root'===_0x4db521&&(_0x541407['root']=_0x5c5b0e['get'](_0x541407['root']['rootName']));}}['_fixRange'](_0x550267,_0x211051){return this['editor']['model']['createRange'](this['_fixPosition'](_0x550267['start'],_0x211051),this['_fixPosition'](_0x550267['end'],_0x211051));}['_fixPosition'](_0x355c01,_0xee991d){return this['editor']['model']['createPositionFromPath'](_0xee991d,_0x355c01['path'],_0x355c01['stickiness']);}['_handleInsertOperation'](_0x44e1c9){const _0x53f7fc=this['_idsRoots']['get'](_0x44e1c9['position']['root']['rootName']),_0x10d4aa=this['_fixPosition'](_0x44e1c9['position'],_0x53f7fc),_0x47f870=null===_0x44e1c9['_authorId']?null:_0x44e1c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5f3555=_0x10d4aa['parent'],_0x418b18=this['_revisionId'],_0x143ed6=[];for(const _0x2de0f9 of _0x44e1c9['nodes'])if(_0x2de0f9['is']('element'))_0x143ed6['push'](this['_makeIdsRoot'](_0x2de0f9));else{for(let _0x1688fe=0x0;_0x1688fe<_0x2de0f9['offsetSize'];_0x1688fe++)_0x143ed6['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x269c90=this['_revisionId'];for(let _0xa5fcba=_0x418b18;_0xa5fcba<_0x269c90;_0xa5fcba++)this['_touched']['set'](_0xa5fcba,{'userId':_0x47f870});_0x5f3555['_insertChild'](_0x10d4aa['offset'],_0x143ed6);}['_handleMoveOperation'](_0x235835){(_0x235835=this['_cloneOperation'](_0x235835,this['_idsRoots']))['_execute']();const _0x265e15=null===_0x235835['_authorId']?null:_0x235835['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x330995=_0x235835['getMovedRangeStart'](),_0x2c87e7=_0x330995['parent'],_0x23e455=_0x330995['offset'];!function _0x261973(_0x311018,_0x14bd04,_0x45eacd,_0x576f3f){for(let _0x2bcaff=_0x45eacd;_0x2bcaff<_0x576f3f;_0x2bcaff++){const _0x372560=_0x14bd04['getChild'](_0x2bcaff);_0x372560['is']('element','$text')?_0x311018['set'](_0x372560['getAttribute']('vid'),{'userId':_0x265e15}):(_0x311018['set'](_0x372560['getAttribute']('vid_start'),{'userId':_0x265e15}),_0x261973(_0x311018,_0x372560,0x0,_0x372560['childCount']),_0x311018['set'](_0x372560['getAttribute']('vid_end'),{'userId':_0x265e15}));}}(this['_touched'],_0x2c87e7,_0x23e455,_0x23e455+_0x235835['howMany']);}['_handleMergeOperation'](_0x3364aa){const _0x42797c=null===(_0x3364aa=this['_cloneOperation'](_0x3364aa,this['_idsRoots']))['_authorId']?null:_0x3364aa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1df56a=_0x3364aa['targetPosition']['parent'],_0x5d4ffa=_0x3364aa['sourcePosition']['parent'],_0x40be8c=_0x1df56a['getAttribute']('vid_end'),_0x371473=_0x5d4ffa['getAttribute']('vid_start');_0x1df56a['_setAttribute']('vid_end',_0x5d4ffa['getAttribute']('vid_end')),_0x5d4ffa['_setAttribute']('vid_end',_0x40be8c),this['_touched']['set'](_0x371473,{'userId':_0x42797c}),this['_touched']['set'](_0x40be8c,{'userId':_0x42797c}),_0x3364aa['_execute']();}['_handleSplitOperation'](_0x31e252){const _0xf95d1e=null===(_0x31e252=this['_cloneOperation'](_0x31e252,this['_idsRoots']))['_authorId']?null:_0x31e252['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x415deb=_0x31e252['graveyardPosition'],_0x353b45=_0x31e252['splitPosition']['parent'];_0x31e252['_execute']();const _0xaca95f=_0x353b45['getAttribute']('vid_end'),_0x3fc7ea=_0x31e252['insertionPosition']['nodeAfter'];if(_0x415deb){const _0x2abe10=_0x3fc7ea['getAttribute']('vid_end'),_0x4e0bb5=_0x353b45['getAttribute']('vid_end');_0x353b45['_setAttribute']('vid_end',_0x2abe10),_0x3fc7ea['_setAttribute']('vid_end',_0x4e0bb5),this['_touched']['set'](_0x353b45['getAttribute']('vid_end'),{'userId':_0xf95d1e}),this['_touched']['set'](_0x3fc7ea['getAttribute']('vid_start'),{'userId':_0xf95d1e});}else{const _0x5e9c8a=this['_revisionId']++,_0x123bf1=this['_revisionId']++;_0x353b45['_setAttribute']('vid_end',_0x5e9c8a),_0x3fc7ea['_setAttribute']('vid_start',_0x123bf1),_0x3fc7ea['_setAttribute']('vid_end',_0xaca95f),this['_touched']['set'](_0x5e9c8a,{'userId':_0xf95d1e}),this['_touched']['set'](_0x123bf1,{'userId':_0xf95d1e});}}['_handleMarkerOperation'](_0x350b5){if(!_0x350b5['affectsData'])return;const _0x321dee=(_0x350b5=this['_cloneOperation'](_0x350b5,this['_diffRoots']))['oldRange']?_0x350b5['oldRange']['root']:null,_0x105c98=_0x350b5['newRange']?_0x350b5['newRange']['root']:null;_0x321dee&&this['_markers']['delete'](_0x350b5['name']),_0x105c98&&this['_markers']['set'](_0x350b5['name'],_0x350b5['newRange']['clone']());const _0x289590=null===_0x350b5['_authorId']?null:_0x350b5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x145e8c=_0x350b5['name'];if(!this['_touchedMarkers']['has'](_0x145e8c))return void this['_touchedMarkers']['set'](_0x145e8c,{'range':_0x350b5['oldRange'],'userId':_0x289590});const _0x1df9dd=this['_touchedMarkers']['get'](_0x145e8c),_0x344b55=_0x1df9dd['range'],_0x5e3093=_0x350b5['newRange'];null==_0x344b55&&null==_0x5e3093||_0x344b55&&_0x5e3093&&_0x344b55['isEqual'](_0x5e3093)?this['_touchedMarkers']['delete'](_0x350b5['name']):_0x1df9dd['userId']=_0x289590;}['_handleRootOperation'](_0xc67bef,_0x1b18b2){this['_diffRoots']['has'](_0xc67bef['rootName'])?this['_diffRoots']['get'](_0xc67bef['rootName'])['_isAttached']=_0xc67bef['isAdd']:(this['_diffRoots']['set'](_0xc67bef['rootName'],P(_0xc67bef['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xc67bef['rootName'],{}),_0x1b18b2&&this['_idsRoots']['set'](_0xc67bef['rootName'],P(_0xc67bef['rootName'],!0x0)));const _0x422afd=null===_0xc67bef['_authorId']?null:_0xc67bef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x59110c=this['_touchedRoots']['get'](_0xc67bef['rootName']);_0x59110c&&_0x59110c['userId']===_0x422afd?this['_touchedRoots']['delete'](_0xc67bef['rootName']):this['_touchedRoots']['set'](_0xc67bef['rootName'],{'userId':_0x422afd,'isAttached':_0xc67bef['isAdd']});}['_handleRootAttributeOperation'](_0x581c3b){const _0xa1004d=this['_diffRootsAttributes']['get'](_0x581c3b['root']['rootName']);null===_0x581c3b['newValue']?delete _0xa1004d[_0x581c3b['key']]:_0xa1004d[_0x581c3b['key']]=_0x581c3b['newValue'];}}function N(_0x27b8d1){const _0x3c2615=P(_0x27b8d1['rootName'],_0x27b8d1['isAttached']());for(const _0x14af32 of _0x27b8d1['getChildren']()){const _0x56cd4a=_0x14af32['_clone'](!0x0);_0x3c2615['_appendChild'](_0x56cd4a);}return _0x3c2615;}function P(_0x2cd0bf,_0x4c1de4=!0x0){const _0x4f3b57=new vt();return _0x4f3b57['rootName']=_0x2cd0bf,_0x4f3b57['_isAttached']=_0x4c1de4,_0x4f3b57['isAttached']=()=>_0x4f3b57['_isAttached'],_0x4f3b57;}function F(_0x2caff5,_0x37617f,_0x25b20f){const _0x592f59='elementEnd'==_0x2caff5['type']?_0x25b20f['createPositionAt'](_0x2caff5['item'],'end'):_0x25b20f['createPositionBefore'](_0x2caff5['item']);return _0x25b20f['createPositionFromPath'](_0x37617f,_0x592f59['path'],_0x592f59['stickiness']);}function B(_0x170f1a,_0x953e34,_0x4e40f0){const _0x2c657c='elementStart'==_0x170f1a['type']?_0x4e40f0['createPositionAt'](_0x170f1a['item'],0x0):_0x4e40f0['createPositionAfter'](_0x170f1a['item']);return _0x4e40f0['createPositionFromPath'](_0x953e34,_0x2c657c['path'],_0x2c657c['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x9e941c,_0xc93060){super(_0x9e941c),this['focusTracker']=new _0x23fe2d(),this['keystrokes']=new _0x7068cd(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xc93060),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x131e87(this);}['render'](){super['render'](),_0xa7de9f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4cebd4=_0xae5a05=>_0xae5a05['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4cebd4),this['keystrokes']['set']('arrowleft',_0x4cebd4),this['keystrokes']['set']('arrowup',_0x4cebd4),this['keystrokes']['set']('arrowdown',_0x4cebd4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4078d0){this['revisionNameInputView']['fieldView']['element']['value']=_0x4078d0['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3b4317){const _0x2d8dbe=new _0x350f46(this['locale'],_0x3e2d75),_0x1a53a4=_0x2d8dbe['fieldView'];_0x1a53a4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3fc396=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3b4317&&(_0x3fc396+='\x20('+g(this['locale'],'optional')+')'),(_0x2d8dbe['label']=_0x3fc396,_0x1a53a4['on']('input',()=>{this['revisionNameInputValue']=_0x1a53a4['element']['value']['trim']();}),_0x2d8dbe);}}class f extends _0x28459c{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x31c767=this['editor'],_0x4f7d33=_0x31c767['plugins']['get']('RevisionTracker');_0x31c767['ui']['componentFactory']['add']('revisionHistory',_0x6dc178=>{const _0x17f17e=_0x36b37a(_0x6dc178),_0x4a5415=_0x17f17e['panelView']['children'],_0x108e24=new _0x3f545b(_0x6dc178),_0x5c7dae=new _0x2229f4(_0x6dc178),_0x4fe8c6=new te(_0x6dc178),_0x54cf2d=new _0x2229f4(_0x6dc178),_0x48e731=new te(_0x6dc178);return _0x17f17e['bind']('isEnabled')['to'](_0x4f7d33,'isReady',_0x4f7d33,'isEnabled',_0x31c767,'isReadOnly',(_0x2f2081,_0x222403,_0xdbe3b2)=>_0x2f2081&&_0x222403&&!_0xdbe3b2),_0x17f17e['buttonView']['set']({'icon':_0x186557,'label':g(_0x6dc178,'Revision\x20history'),'tooltip':!0x0}),_0x4fe8c6['set']({'label':g(_0x6dc178,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4fe8c6['bind']('isEnabled')['to'](_0x4f7d33,'isReady',_0x4f7d33,'isEnabled',_0x31c767,'isReadOnly',(_0x5dc2a8,_0x5421d2,_0x35d768)=>_0x5dc2a8&&_0x5421d2&&!_0x35d768),_0x4fe8c6['on']('execute',()=>this['_showDialog']()),_0x48e731['set']({'label':g(_0x6dc178,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x48e731['bind']('isEnabled')['to'](_0x4f7d33,'isReady',_0x31c767,'isReadOnly',(_0x3f46be,_0x42da5f)=>_0x3f46be&&!_0x42da5f),_0x48e731['on']('execute',()=>{_0x31c767['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x17f17e['isOpen']=!0x1,_0x31c767['editing']['view']['focus']();}),_0x5c7dae['children']['add'](_0x4fe8c6),_0x54cf2d['children']['add'](_0x48e731),_0x108e24['role']='menu',_0x108e24['items']['addMany']([_0x5c7dae,_0x54cf2d]),_0x4a5415['add'](_0x108e24),_0x17f17e;}),_0x31c767['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2fc610=this['editor'],_0x3bf9b2=_0x2fc610['locale'],_0x34f38d=new _0x3ec8e3(_0x3bf9b2),_0xd1999e=new _0x162442(_0x3bf9b2);_0x34f38d['buttonView']['set']({'icon':_0x186557,'label':g(_0x3bf9b2,'Revision\x20history')});const _0x450ca4=new _0x3968ea(_0x3bf9b2,_0x34f38d),_0x3f39a3=new _0x19dfa8(_0x3bf9b2);_0x3f39a3['set']({'label':g(_0x3bf9b2,'Save\x20current\x20revision')}),_0x3f39a3['delegate']('execute')['to'](_0x34f38d),_0x3f39a3['on']('execute',()=>{this['_showDialog']();}),_0x450ca4['children']['add'](_0x3f39a3),_0xd1999e['items']['add'](_0x450ca4);const _0x5c164a=new _0x3968ea(_0x3bf9b2,_0x34f38d),_0x462b15=new _0x19dfa8(_0x3bf9b2);return _0x462b15['set']({'label':g(_0x3bf9b2,'Open\x20revision\x20history')}),_0x462b15['delegate']('execute')['to'](_0x34f38d),_0x462b15['on']('execute',()=>{_0x2fc610['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5c164a['children']['add'](_0x462b15),_0xd1999e['items']['add'](_0x5c164a),_0x34f38d['panelView']['children']['add'](_0xd1999e),_0x34f38d;}['_showDialog'](){const _0x3b7119=this['editor'],_0x134cab=_0x3b7119['locale'],_0x5f5b7b=_0x3b7119['plugins']['get']('Dialog'),_0x24d9ed=_0x3b7119['plugins']['get']('RevisionTracker');function _0x3df93b(_0x1c9bfa){_0x3b7119['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1c9bfa['revisionName']?_0x1c9bfa['revisionNameInputView']['errorText']=g(_0x134cab,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3b7119['plugins']['get'](u)['saveRevision']({'name':_0x1c9bfa['revisionName']}),_0x5f5b7b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3df93b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5f5b7b['show']({'id':'revisionSave','title':g(_0x134cab,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x3b7119['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5f5b7b['hide']()},{'label':g(_0x3b7119['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x463e23){_0x463e23['bind']('isEnabled')['to'](_0x24d9ed,'isReady',_0x24d9ed,'isEnabled',_0x3b7119,'isReadOnly',(_0x4af211,_0x948ef7,_0x3b3da5)=>_0x4af211&&_0x948ef7&&!_0x3b3da5);},'onExecute':()=>_0x3df93b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1cff84=this['editor'],_0x5e813b=_0x1cff84['locale'];this['_saveRevisionFormView']=new hs(_0x5e813b,_0x1cff84['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1c3ea9,_0x4109df){super(_0x1c3ea9),this['_model']=_0x4109df,this['changeId']=_0x4109df['id'];const _0x57f006=this['bindTemplate'],_0x39afb6=g(_0x1c3ea9,_0x4109df['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4109df['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4109df['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x57f006['to']('type',_0x4ec31a=>'ck-revision-change__'+_0x4ec31a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x39afb6}]},{'text':'\x20'+_0x4109df['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3b7313(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x31c61b){super(),this['id']=_0x31c61b['id']||_0x1da58b(),this['author']=_0x31c61b['author'],this['type']=_0x31c61b['type'],this['data']=_0x31c61b['data']||{},this['rootName']=_0x31c61b['rootName'],this['set']('createdAt',_0x31c61b['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x43ff05,_0x3a43af){this['newRevisionId']=_0x43ff05,this['oldRevisionId']=_0x3a43af,this['changes']=new _0xb82d43();}['_setChanges'](_0x860d93){for(const _0x349586 of _0x860d93)this['changes']['add'](_0x349586);}}class m extends _0x28459c{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x437c2e,_0x2717ee,I,V];}constructor(_0x55f3b3){super(_0x55f3b3),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x407141,_0x5417e9,_0x3c7f04)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2b264b=>{for(const _0x598429 of this['editor']['editing']['view']['document']['roots'])_0x3c7f04?_0x2b264b['removeClass']('ck-editor__editable__overlay',_0x598429):_0x2b264b['addClass']('ck-editor__editable__overlay',_0x598429);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2c8b1a=>null!==_0x2c8b1a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x703eef,_0x2f6c0f,_0x14f5c4)=>_0x703eef&&_0x14f5c4?_0x2f6c0f['changes']['getIndex'](_0x14f5c4):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x47e27e,_0x4dbcb4)=>_0x47e27e?_0x4dbcb4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2717ee);}['init'](){const _0x192465=this['editor'],_0x4ec068=new wt(_0x192465,{'direction':'backward'}),_0x5f2284=new wt(_0x192465,{'direction':'forward'});(_0x192465['commands']['add']('showPreviousChange',_0x4ec068),_0x192465['commands']['add']('showNextChange',_0x5f2284),_0x192465['commands']['add']('restoreRevision',new mt(_0x192465)),this['on']('change:numberOfChanges',()=>{_0x4ec068['refresh'](),_0x5f2284['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x192465['enableReadOnlyMode']('revision-viewer'),_0x192465['plugins']['has']('WidgetToolbarRepository'))&&_0x192465['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1a1d5f){return await this['_utils']['loadRevisionData'](_0x1a1d5f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1a1d5f);}async['getRevisionRootsAttributes'](_0x6cbd6f){return await this['_utils']['loadRevisionData'](_0x6cbd6f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x6cbd6f);}async['compare'](_0x4c97d8,_0x333c44,_0x46f8ba=!0x1){if(!this['isEnabled'])return;const _0xb5cde=this['diff'],_0x478647=this['repository'],_0x351e80='string'==typeof _0x4c97d8?_0x478647['getRevision'](_0x4c97d8):_0x4c97d8,_0x23e1b9='string'==typeof _0x333c44?_0x478647['getRevision'](_0x333c44):_0x333c44,_0x1b097a=_0x351e80['id'],_0x33da15=_0x23e1b9?_0x23e1b9['id']:null;if(!_0x46f8ba&&this['diff']&&this['diff']['newRevisionId']===_0x1b097a&&this['diff']['oldRevisionId']===_0x33da15)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1b097a,_0x33da15);const _0x2ae089=this['_getRevisionsRange'](_0x351e80,_0x23e1b9,!0x0)['map'](_0x5d2194=>this['_utils']['loadRevisionData'](_0x5d2194,this['adapter']));return _0x2ae089['push'](new Promise(_0x37e57b=>{setTimeout(_0x37e57b,0x14);})),Promise['all'](_0x2ae089)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x47cde7=this['_getDiff'](_0x1b097a,_0x33da15);for(const _0x48e681 of _0x47cde7['changes'])this['_changeIdToChange']['set'](_0x48e681['id'],_0x48e681);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4ac07=>{for(const _0x290c76 of this['editor']['model']['document']['getRootNames']())_0x4ac07['detachRoot'](_0x290c76);for(const _0x1a1db5 of Object['keys'](_0x47cde7['model'])){const _0x148e3c=_0x4ac07['addRoot'](_0x1a1db5);for(const _0x21d6ba of Object['keys'](_0x47cde7['attributes'][_0x1a1db5]))_0x4ac07['setAttribute'](_0x21d6ba,_0x47cde7['attributes'][_0x1a1db5][_0x21d6ba],_0x148e3c);_0x4ac07['insert'](_0x47cde7['model'][_0x1a1db5],_0x148e3c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x47cde7['changes'])),this['isReady']=!0x0;})['catch'](_0x540736=>{console['error'](_0x540736),this['_cleanUp'](),_0xb5cde&&(this['diff']=_0xb5cde),this['isReady']=!0x0;});}['addRevisionData'](_0x3d9b79,_0x4158d8){const _0xf64db5=this['repository']['createRevision'](_0x3d9b79);return _0xf64db5['on']('_update',(_0x348f84,_0x88f79c,_0x38d50f)=>_0x4158d8(_0x88f79c,_0x38d50f,_0xf64db5)),this['repository']['addRevision'](_0xf64db5),_0xf64db5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5874c6=>{for(const _0x41d43b of this['editor']['model']['document']['getRootNames']())_0x5874c6['detachRoot'](_0x41d43b);});}['_sortAndFilterDiffChanges'](_0x577f15){const _0x5abc63=[],_0x9c231d=new Map();for(const _0x5afe0b of this['editor']['model']['document']['getRootNames']()){const _0x2b7314=this['editor']['editing']['view']['getDomRoot'](_0x5afe0b);if(!_0x2b7314)continue;const _0x271621=_0x2b7314['getClientRects']()['item'](0x0);_0x271621&&(_0x5abc63['push'](_0x5afe0b),_0x9c231d['set'](_0x5afe0b,_0x271621));}return _0x5abc63['sort']((_0xda3f2e,_0x469ff6)=>{const _0x24c039=_0x9c231d['get'](_0xda3f2e),_0x5cd2f6=_0x9c231d['get'](_0x469ff6);return _0x24c039['y']-_0x5cd2f6['y']||_0x24c039['x']-_0x5cd2f6['x'];}),(_0x577f15=_0x577f15['filter'](_0x195fd0=>_0x5abc63['includes'](_0x195fd0['rootName'])))['sort']((_0x19e4e4,_0x365e83)=>_0x5abc63['indexOf'](_0x19e4e4['rootName'])-_0x5abc63['indexOf'](_0x365e83['rootName'])),_0x577f15;}['_makeTape'](_0x42182c){const _0x1f2e44=Array['from'](_0x42182c['markers'])['filter'](([_0x384bb1,_0x4432cf])=>_0x384bb1['startsWith']('revision:')&&!_0x4432cf['isCollapsed']),_0x899e47=Array['from'](this['editor']['model']['createRangeIn'](_0x42182c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1f2e44['length'])for(const _0x153a01 of _0x899e47){const [_0x4e0f99,_0x53ee42]=_0x1f2e44[0x0],[,_0x6ef24,_0x8b91ae]=_0x4e0f99['split'](':');if(_0x53ee42['end']['isEqual'](_0x153a01['nextPosition'])&&_0x1f2e44['shift'](),(_0x153a01['previousPosition']['isEqual'](_0x53ee42['start'])||_0x153a01['previousPosition']['isAfter'](_0x53ee42['start']))&&('insertion'==_0x6ef24?_0x153a01['isAdded']={'userId':_0x8b91ae}:'deletion'==_0x6ef24&&(_0x153a01['isRemoved']={'userId':_0x8b91ae})),0x0==_0x1f2e44['length'])break;}return _0x899e47;}['_refreshStartEndIndex'](_0x1523b8){const _0x517202=new Map();for(let _0xa75378=0x0;_0xa75378<_0x1523b8['length'];_0xa75378++)'text'===_0x1523b8[_0xa75378]['type']?(_0x1523b8[_0xa75378]['item']['startIndex']=_0xa75378,_0x1523b8[_0xa75378]['item']['endIndex']=_0xa75378):('elementStart'===_0x1523b8[_0xa75378]['type']?_0x1523b8[_0xa75378]['item']['startIndex']=_0xa75378:'elementEnd'===_0x1523b8[_0xa75378]['type']&&(_0x1523b8[_0xa75378]['item']['endIndex']=_0xa75378),_0x517202['set'](_0x1523b8[_0xa75378]['id'],_0xa75378));for(const _0x288e84 of _0x517202['values']())'elementStart'===_0x1523b8[_0x288e84]['type']?_0x1523b8[_0x288e84]['item']['endIndex']=_0x517202['get'](_0x1523b8[_0x288e84]['pairId']):'elementEnd'===_0x1523b8[_0x288e84]['type']&&(_0x1523b8[_0x288e84]['item']['startIndex']=_0x517202['get'](_0x1523b8[_0x288e84]['pairId']));}['_processTape'](_0x194dbb){for(let _0x214875=0x0;_0x214875<_0x194dbb['length'];_0x214875++){if('elementStart'===_0x194dbb[_0x214875]['type'])_0x194dbb[_0x214875]['item']['startIndex']=_0x214875;else{if('elementEnd'===_0x194dbb[_0x214875]['type']){_0x194dbb[_0x214875]['item']['endIndex']=_0x214875;const _0x7f5d9a=_0x194dbb[_0x214875]['item']['startIndex'];_0x194dbb[_0x7f5d9a]['pairId']=_0x194dbb[_0x214875]['id'],_0x194dbb[_0x214875]['pairId']=_0x194dbb[_0x7f5d9a]['id'];}else _0x194dbb[_0x214875]['item']['startIndex']=_0x214875,_0x194dbb[_0x214875]['item']['endIndex']=_0x214875,_0x194dbb[_0x214875]['pairId']=null;}_0x194dbb[_0x214875]['markersStart']||(_0x194dbb[_0x214875]['markersStart']=[],_0x194dbb[_0x214875]['markersEnd']=[]);}}['_markInsertions'](_0x376ec0,_0x3a827a){const _0x5cf07c=_0x376ec0['filter'](_0xa80477=>!_0xa80477['isAdded']);for(let _0x4dca7e=0x0;_0x4dca7e<_0x3a827a['length'];_0x4dca7e++)_0x3a827a[_0x4dca7e]['isAdded']&&(_0x5cf07c[_0x4dca7e]['isAdded']=_0x3a827a[_0x4dca7e]['isAdded']);}['_getDiff'](_0x178649,_0xfcb213=null){const _0x5e4df3=this['repository']['getRevision'](_0x178649),_0x145ec5=_0xfcb213?this['repository']['getRevision'](_0xfcb213):null,_0x144a3d=this['_getRevisionsRange'](_0x5e4df3,_0x145ec5),_0x42d4eb=_0x144a3d[_0x144a3d['length']-0x1],_0x5e6927=new Map(),_0x24ec8f={'model':{},'attributes':{},'changes':[]},_0x3587fb=new Set(),_0x2f65cf=new Map();for(let _0x33f43d=_0x144a3d['length']-0x1;_0x33f43d>=0x0;_0x33f43d--){const _0x4337a9=_0x144a3d[_0x33f43d];for(const _0x3935ea of Object['keys'](_0x4337a9['diffData']))if(_0x4337a9['diffData'][_0x3935ea]['attachChange']){const _0x2986c2=_0x4337a9['diffData'][_0x3935ea]['attachChange'];_0x2986c2['isAttached']?(_0x3587fb['add'](_0x3935ea),_0x2f65cf['has'](_0x3935ea)&&_0x2f65cf['get'](_0x3935ea)['userId']==_0x2986c2['userId']?_0x2f65cf['delete'](_0x3935ea):_0x2f65cf['set'](_0x3935ea,_0x2986c2)):_0x2f65cf['has'](_0x3935ea)?(_0x3587fb['delete'](_0x3935ea),_0x2f65cf['delete'](_0x3935ea)):(_0x3587fb['add'](_0x3935ea),_0x2f65cf['set'](_0x3935ea,_0x2986c2));}else _0x3587fb['add'](_0x3935ea);}for(const _0x4241b7 of _0x3587fb){const _0x7960dc=_0x2f65cf['has'](_0x4241b7)&&!_0x2f65cf['get'](_0x4241b7)['isAttached'];let _0x2f2864=_0x7960dc?_0x144a3d['length']-0x1:0x0;const _0x1c3308=_0x7960dc?-0x1:0x1;for(;_0x144a3d[_0x2f2864];){const _0x36b27f=_0x144a3d[_0x2f2864];if(_0x36b27f['diffData'][_0x4241b7]){const _0x486098=_0x7960dc?_0x36b27f['diffData'][_0x4241b7]['attributesBefore']:_0x36b27f['diffData'][_0x4241b7]['attributesAfter'];_0x24ec8f['attributes'][_0x4241b7]=_0x486098?_0x562732(_0x486098):{};break;}_0x2f2864+=_0x1c3308;}}for(const _0x10ac8b of _0x144a3d){_0x10ac8b['model']={};for(const _0xfa0f78 of _0x10ac8b['authors'])_0x5e6927['set'](_0xfa0f78['id'],_0xfa0f78);for(const _0x5a2aaa of _0x3587fb){const _0x4de8f9=_0x10ac8b['diffData'][_0x5a2aaa]?_0x10ac8b['diffData'][_0x5a2aaa]['insertions']:'[]',_0x4b17f6=_0x10ac8b['diffData'][_0x5a2aaa]?_0x10ac8b['diffData'][_0x5a2aaa]['deletions']:'[]';_0x10ac8b['model'][_0x5a2aaa]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4de8f9),'deletions':this['_utils']['_makeModelFromViewString'](_0x4b17f6)};}}for(const _0x1a9e4d of _0x3587fb){let _0x10c2e4=null,_0x1b7264=0x0;const _0x5f45e6=new Map(Array['from'](_0x5e4df3['model'][_0x1a9e4d]['insertions']['markers'])['filter'](([_0x5df96b])=>!_0x5df96b['startsWith']('revision:')));let _0x5bcd79=0x0;for(const _0x39b786 of _0x144a3d){const _0x2e2835=this['_makeTape'](_0x39b786['model'][_0x1a9e4d]['insertions']);_0x39b786==_0x5e4df3?(_0x10c2e4=_0x2e2835,_0x1b7264=_0x10c2e4['length'],_0x10c2e4['forEach'](_0x49b65a=>{_0x49b65a['id']=_0x5bcd79++;}),this['_processTape'](_0x10c2e4)):this['_markInsertions'](_0x10c2e4,_0x2e2835);const _0x5d8d82=_0x10c2e4['filter'](_0x3ae970=>!_0x3ae970['isAdded'])['map'](_0x5c2215=>_0x5c2215['id']);let _0x2fb841=0x0;const _0x483075=this['_makeTape'](_0x39b786['model'][_0x1a9e4d]['deletions']);_0x483075['forEach'](_0x14f8ce=>{_0x14f8ce['isRemoved']?_0x14f8ce['id']=_0x1b7264++:_0x14f8ce['id']=_0x5d8d82[_0x2fb841++];}),this['_processTape'](_0x483075),this['_setDistance'](_0x10c2e4,'isAdded'),this['_setDistance'](_0x483075,'isRemoved'),_0x39b786==_0x5e4df3&&this['_markMarkers'](_0x10c2e4,_0x5f45e6),_0x10c2e4=this['_joinTapes'](_0x10c2e4,_0x483075),this['_refreshStartEndIndex'](_0x10c2e4),this['_setDistance'](_0x10c2e4,'isRemoved');}_0x10c2e4=_0x10c2e4['filter'](_0x5f2692=>!(_0x5f2692['isAdded']&&_0x5f2692['isRemoved']));const _0x3b0950=new Map(_0x42d4eb['model'][_0x1a9e4d]['deletions']['markers']),_0x3c9069=new Set(_0x5f45e6['keys']());for(const _0x49ccfe of _0x3b0950['keys']())_0x3c9069['delete'](_0x49ccfe);this['_markSuggestions'](_0x10c2e4,_0x3c9069),this['_fixObsoleteTags'](_0x10c2e4),_0x10c2e4=this['_removeMissingPairs'](_0x10c2e4),_0x10c2e4=this['_markMismatchedRemovedTags'](_0x10c2e4),_0x10c2e4=this['_removeUnsupportedChanges'](_0x10c2e4);const {root:_0x4adbad,changes:_0x490512}=this['_makeModelFromTape'](_0x10c2e4,_0x5e6927,_0x1a9e4d);_0x24ec8f['model'][_0x1a9e4d]=_0x4adbad;const _0x4b4d5b=_0x2f65cf['get'](_0x1a9e4d);if(_0x4b4d5b){const _0x10ccd7=_0x5e6927['get'](_0x4b4d5b['userId']),_0x4adaa3=new r({'author':_0x10ccd7,'type':_0x4b4d5b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1a9e4d});_0x490512['unshift'](_0x4adaa3),_0x24ec8f['attributes'][_0x1a9e4d]['revisionHistoryAttachChange']=_0x4adaa3['id'];}_0x24ec8f['changes']=_0x24ec8f['changes']['concat'](_0x490512);}return _0x24ec8f;}['_markMarkers'](_0x42e956,_0x55ae8c){for(let _0x460914=0x0;_0x460914<_0x42e956['length'];_0x460914++)for(const [_0x9bafda,_0x2940cb]of _0x55ae8c)!_0x2940cb['isCollapsed']&&_0x2940cb['start']['isEqual'](_0x42e956[_0x460914]['previousPosition'])&&_0x42e956[_0x460914]['markersStart']['push'](_0x9bafda),_0x2940cb['end']['isEqual'](_0x42e956[_0x460914]['nextPosition'])&&_0x42e956[_0x460914]['markersEnd']['push'](_0x9bafda);}['_joinTapes'](_0x21d7e2,_0x1f5167){let _0x30e6d4=[],_0x566851=0x0,_0x2de343=0x0;for(;_0x566851<_0x21d7e2['length']||_0x2de343<_0x1f5167['length'];){const _0x14d822=_0x21d7e2[_0x566851]||{},_0x101967=_0x1f5167[_0x2de343]||{};if(_0x14d822['id']==_0x101967['id'])_0x566851++,_0x2de343++,_0x30e6d4['push'](_0x14d822);else{if(_0x101967['isRemoved']&&_0x14d822['isAdded']){const {commonTape:_0xd66ada,iEnd:_0x129b1a,jEnd:_0x47a0f8}=this['_threeWayMerge'](_0x21d7e2,_0x566851,_0x1f5167,_0x2de343);_0x30e6d4=_0x30e6d4['concat'](_0xd66ada),_0x566851=_0x129b1a,_0x2de343=_0x47a0f8;}else _0x101967['isRemoved']?(_0x2de343++,_0x30e6d4['push'](_0x101967)):(_0x566851++,_0x30e6d4['push'](_0x14d822));}}return _0x30e6d4;}['_markSuggestions'](_0x5eab79,_0x2b04ce){const _0xa62bd=[];for(let _0x33b45e=0x0;_0x33b45e<_0x5eab79['length'];_0x33b45e++){for(let _0x5cca1e=0x0;_0x5cca1e<_0x5eab79[_0x33b45e]['markersStart']['length'];_0x5cca1e++){const _0x15daf6=_0x5eab79[_0x33b45e]['markersStart'][_0x5cca1e];if(!_0x2b04ce['has'](_0x15daf6))continue;const {group:_0x4cc232,type:_0x54e8f7,authorId:_0x208958}=_0x24f081(_0x15daf6);'revision-suggestion'!=_0x4cc232||'insertion'!=_0x54e8f7&&'deletion'!=_0x54e8f7||(_0xa62bd['unshift']({'type':_0x54e8f7,'name':_0x15daf6,'userId':_0x208958}),_0x5eab79[_0x33b45e]['markersStart']['splice'](_0x5cca1e,0x1),_0x5cca1e--);}_0x3e4915(_0x5eab79[_0x33b45e]);for(let _0x50871b=0x0;_0x50871b<_0x5eab79[_0x33b45e]['markersEnd']['length'];_0x50871b++){const _0x109fdb=_0x5eab79[_0x33b45e]['markersEnd'][_0x50871b];if(!_0x2b04ce['has'](_0x109fdb))continue;const {group:_0x5318ba,type:_0x212fa9}=_0x24f081(_0x109fdb);if('revision-suggestion'!=_0x5318ba||'insertion'!=_0x212fa9&&'deletion'!=_0x212fa9)continue;_0x5eab79[_0x33b45e]['markersEnd']['splice'](_0x50871b,0x1),_0x50871b--;const _0x57b417=_0xa62bd['findIndex'](_0x5b1880=>_0x5b1880['name']==_0x109fdb);_0x57b417>-0x1&&_0xa62bd['splice'](_0x57b417,0x1);}}function _0x24f081(_0x42a6a9){const _0x56c0a7=_0x42a6a9['split'](':');return{'group':_0x56c0a7[0x0],'type':_0x56c0a7[0x1],'subType':_0x56c0a7['length']>=0x5?_0x56c0a7[0x2]:null,'id':_0x56c0a7['length']<0x5?_0x56c0a7[0x2]:_0x56c0a7[0x3],'authorId':_0x56c0a7['length']<0x5?_0x56c0a7[0x3]:_0x56c0a7[0x4],'markerCount':0x6==_0x56c0a7['length']?_0x56c0a7[0x5]:null};}function _0x3e4915(_0x1a14d6){for(let _0x42c3d3=0x0;_0x42c3d3<_0xa62bd['length'];_0x42c3d3++){if(_0x1a14d6['isAdded']&&'insertion'==_0xa62bd[_0x42c3d3]['type'])return _0x1a14d6['isAddSuggestion']=_0xa62bd[_0x42c3d3],void delete _0x1a14d6['isAdded'];if(!_0x1a14d6['isAdded']&&!_0x1a14d6['isRemoved']&&'deletion'==_0xa62bd[_0x42c3d3]['type'])return void(_0x1a14d6['isRemoveSuggestion']=_0xa62bd[_0x42c3d3]);}}}['_setDistance'](_0x9e4224,_0xe18a0d){let _0x3c2985=0x0,_0x55a2f7=!0x1;const _0x3a118f=new Map();for(const _0x1ada21 of _0x9e4224)_0x1ada21[_0xe18a0d]?_0x55a2f7&&(_0x3c2985++,_0x55a2f7=!0x1):(_0x3c2985++,_0x55a2f7=!0x0),_0x3a118f['set'](_0x1ada21['id'],_0x3c2985);for(let _0x1feeee=0x0;_0x1feeee<_0x9e4224['length'];_0x1feeee++){if('isRemoved'==_0xe18a0d&&_0x9e4224[_0x1feeee]['isAdded']||'isAdded'==_0xe18a0d&&_0x9e4224[_0x1feeee]['isRemoved'])continue;if('text'==_0x9e4224[_0x1feeee]['type']){_0x9e4224[_0x1feeee]['distance']=0x0;continue;}const _0x3ed6d0=_0x3a118f['get'](_0x9e4224[_0x1feeee]['pairId']),_0x32ff3f=_0x3a118f['get'](_0x9e4224[_0x1feeee]['id']);_0x9e4224[_0x1feeee]['distance']=_0x3ed6d0-_0x32ff3f;}}['_getRevisionsRange'](_0xfcda71,_0x372a83,_0x5b633c=!0x1){const _0x9731ad=[];let _0x52dad5=this['repository']['getIndex'](_0xfcda71),_0x2eb05e=this['repository']['getIndex'](_0x372a83);for(-0x1==_0x2eb05e&&(_0x2eb05e=this['repository']['_revisions']['length'],_0x5b633c=!0x1);_0x52dad5<_0x2eb05e;)_0x9731ad['push'](this['repository']['getRevision'](_0x52dad5)),_0x52dad5++;return _0x5b633c&&_0x9731ad['push'](this['repository']['getRevision'](_0x52dad5)),_0x9731ad;}['_threeWayMerge'](_0x4c035c,_0x4c0d8f,_0x51c4b6,_0x2326c5){const _0x1fed58=this['editor']['model']['schema'];let _0x544b87=_0x4c0d8f;for(;_0x4c035c[_0x544b87]&&_0x4c035c[_0x544b87]['isAdded'];)_0x544b87++;let _0x528d4b=_0x2326c5;for(;_0x51c4b6[_0x528d4b]&&_0x51c4b6[_0x528d4b]['isRemoved'];)_0x528d4b++;_0x11bf3a(_0x4c035c,_0x4c0d8f,_0x544b87),_0x11bf3a(_0x51c4b6,_0x2326c5,_0x528d4b);const _0x250b52=_0x51c4b6['slice'](_0x2326c5,_0x528d4b)['concat'](_0x4c035c['slice'](_0x4c0d8f,_0x544b87));return _0x250b52['sort']((_0x3e894c,_0x29db37)=>_0x3e894c['side']!=_0x29db37['side']?_0x3e894c['side']-_0x29db37['side']:_0x3e894c['level']!=_0x29db37['level']?_0x3e894c['level']-_0x29db37['level']:_0x3e894c['distance']!=_0x29db37['distance']?_0x29db37['distance']-_0x3e894c['distance']:!!_0x3e894c['isAdded']!=!!_0x29db37['isAdded']?-0x1==_0x3e894c['side']||0x0==_0x3e894c['side']?_0x3e894c['isAdded']?-0x1:0x1:_0x3e894c['isAdded']?0x1:-0x1:_0x3e894c['index']-_0x29db37['index']),{'commonTape':_0x250b52,'iEnd':_0x544b87,'jEnd':_0x528d4b};function _0x11bf3a(_0x585a80,_0xa0d73d,_0x4f9052){let _0x4d1653=-0x1,_0x3472fb=Number['POSITIVE_INFINITY'],_0x2f73b8=!0x0;for(let _0x5ba469=_0xa0d73d;_0x5ba469<_0x4f9052;_0x5ba469++)if(_0x1fed58['isInline'](_0x585a80[_0x5ba469]['item'])||(_0x2f73b8=!0x1),_0x585a80[_0x5ba469]['item']['startIndex']<_0xa0d73d&&(_0x4d1653=_0x5ba469),_0x585a80[_0x5ba469]['item']['endIndex']>=_0x4f9052){_0x3472fb=_0x5ba469;break;}_0x2f73b8&&(_0x4d1653=_0x4f9052-0x1);for(let _0x6231aa=_0xa0d73d;_0x6231aa<_0x4f9052;_0x6231aa++)_0x585a80[_0x6231aa]['side']=_0x6231aa<=_0x4d1653?-0x1:_0x6231aa<_0x3472fb?0x0:0x1,_0x585a80[_0x6231aa]['index']=_0x6231aa;let _0x551eea=0x0;for(let _0x555cd6=_0xa0d73d;_0x555cd6<=_0x4d1653;_0x555cd6++)0x0==_0x585a80[_0x555cd6]['distance']?_0x585a80[_0x555cd6]['level']=_0x551eea:(_0x551eea++,_0x585a80[_0x555cd6]['level']=_0x551eea,_0x551eea++);for(let _0x425098=_0xa0d73d;_0x425098<_0x4f9052;_0x425098++)0x0==_0x585a80[_0x425098]['side']&&(_0x585a80[_0x425098]['level']=_0x551eea);_0x551eea=0x0;for(let _0x4d743a=_0x4f9052-0x1;_0x4d743a>=_0x3472fb;_0x4d743a--)0x0==_0x585a80[_0x4d743a]['distance']?_0x585a80[_0x4d743a]['level']=_0x551eea:(_0x551eea--,_0x585a80[_0x4d743a]['level']=_0x551eea,_0x551eea--);}}['_fixObsoleteTags'](_0x5f2088){const _0x3dd38c=new Map(),_0x4eb4b2=this['editor']['model']['schema'];for(let _0x33fc1b=0x1;_0x33fc1b<_0x5f2088['length'];_0x33fc1b++){let _0xdf3f98,_0x4086bb,_0x4b0b57;const _0x2db7cc=_0x5f2088[_0x33fc1b],_0x38d35c=_0x5f2088[_0x33fc1b-0x1];if('text'==_0x2db7cc['type'])continue;if(_0x2db7cc['type']!=_0x38d35c['type'])continue;if(!_0x4eb4b2['isBlock'](_0x38d35c['item'])||_0x4eb4b2['isLimit'](_0x38d35c['item']))continue;if(!_0x4eb4b2['isBlock'](_0x2db7cc['item'])||_0x4eb4b2['isLimit'](_0x2db7cc['item']))continue;if((_0x5f2088[_0x33fc1b]['isAdded']||_0x5f2088[_0x33fc1b]['isAddSuggestion'])&&_0x5f2088[_0x33fc1b-0x1]['isRemoved'])_0xdf3f98=_0x5f2088[_0x33fc1b],_0x4086bb=_0x5f2088[_0x33fc1b-0x1],_0x4b0b57=_0x33fc1b-0x1;else{if(!_0x5f2088[_0x33fc1b]['isRemoved']||!_0x5f2088[_0x33fc1b-0x1]['isAdded']&&!_0x5f2088[_0x33fc1b-0x1]['isAddSuggestion'])continue;_0xdf3f98=_0x5f2088[_0x33fc1b-0x1],_0x4086bb=_0x5f2088[_0x33fc1b],_0x4b0b57=_0x33fc1b;}const _0x52b6e4=_0xdf3f98['level']==_0x4086bb['level'],_0x5a0168=Math['abs'](_0xdf3f98['level'])<Math['abs'](_0x4086bb['level'])&&0x0==_0x4086bb['distance'];(_0x52b6e4||_0x5a0168)&&(_0x3dd38c['set'](_0x4086bb['id'],_0xdf3f98['id']),_0x5f2088['splice'](_0x4b0b57,0x1),_0x33fc1b--,_0xdf3f98['isAdded']=!0x1);}for(let _0x52c4e1=0x0;_0x52c4e1<_0x5f2088['length'];_0x52c4e1++)_0x3dd38c['has'](_0x5f2088[_0x52c4e1]['pairId'])&&(_0x5f2088[_0x52c4e1]['pairId']=_0x3dd38c['get'](_0x5f2088[_0x52c4e1]['pairId']));}['_removeMissingPairs'](_0x31dcb3){const _0x294144=new Set(_0x31dcb3['map'](_0xda5a4c=>_0xda5a4c['id']));for(let _0x3246e1=0x0;_0x3246e1<_0x31dcb3['length'];_0x3246e1++)_0x294144['has'](_0x31dcb3[_0x3246e1]['pairId'])||0x0==_0x31dcb3[_0x3246e1]['distance']||(_0x31dcb3[_0x3246e1]['isIncorrect']=!0x0);return _0x31dcb3['filter'](_0x534aba=>!_0x534aba['isIncorrect']);}['_markMismatchedRemovedTags'](_0x492b8a){const _0x2c5ee2=new Set();for(let _0xfeb931=0x0;_0xfeb931<_0x492b8a['length'];_0xfeb931++){if(_0x2c5ee2['has'](_0x492b8a[_0xfeb931]['id'])&&_0x492b8a[_0xfeb931]['isRemoved']&&(_0x492b8a[_0xfeb931]['isIncorrect']=!0x0),_0x492b8a[_0xfeb931]['isIncorrect'])continue;if(0x0==_0x492b8a[_0xfeb931]['distance'])continue;if('elementStart'!=_0x492b8a[_0xfeb931]['type'])continue;if(null==_0x492b8a[_0xfeb931]['pairId'])continue;let _0xbc46ac=_0xfeb931+0x1,_0x29cfce=0x0;for(;_0x492b8a[_0xbc46ac]['id']!=_0x492b8a[_0xfeb931]['pairId'];)'elementStart'==_0x492b8a[_0xbc46ac]['type']?_0x29cfce++:'elementEnd'==_0x492b8a[_0xbc46ac]['type']&&_0x29cfce--,_0xbc46ac++;if(0x0!=_0x29cfce){if(_0x492b8a[_0xfeb931]['isRemoved'])_0x492b8a[_0xfeb931]['isIncorrect']=!0x0;else{for(;_0xbc46ac!=_0xfeb931;)_0x492b8a[_0xbc46ac]['isRemoved']&&0x0!=_0x492b8a[_0xbc46ac]['distance']&&(_0x492b8a[_0xbc46ac]['isIncorrect']=!0x0,_0x2c5ee2['add'](_0x492b8a[_0xbc46ac]['pairId'])),_0xbc46ac--;}}}return _0x492b8a['filter'](_0x163187=>!_0x163187['isIncorrect']);}['_removeUnsupportedChanges'](_0x65e418){const _0x3df6e2=this['editor']['model']['schema'];for(let _0x48a696=0x0;_0x48a696<_0x65e418['length'];_0x48a696++){if(!(_0x65e418[_0x48a696]['isAdded']||_0x65e418[_0x48a696]['isAddSuggestion']||_0x65e418[_0x48a696]['isRemoved']||_0x65e418[_0x48a696]['isRemoveSuggestion']))continue;if(0x0==_0x65e418[_0x48a696]['distance'])continue;const _0x13c67e=_0x65e418[_0x48a696]['item'];_0x3df6e2['isBlock'](_0x13c67e)||_0x3df6e2['isLimit'](_0x13c67e)||(_0x65e418[_0x48a696]['isAdded']&&delete _0x65e418[_0x48a696]['isAdded'],_0x65e418[_0x48a696]['isAddSuggestion']&&delete _0x65e418[_0x48a696]['isAddSuggestion'],_0x65e418[_0x48a696]['isRemoveSuggestion']&&delete _0x65e418[_0x48a696]['isRemoveSuggestion'],_0x65e418[_0x48a696]['isRemoved']&&(_0x65e418[_0x48a696]['isIncorrect']=!0x0));}return _0x65e418['filter'](_0x5a07e7=>!_0x5a07e7['isIncorrect']);}['_makeModelFromTape'](_0x49fded,_0x13b77d,_0x5493ca){const _0xef0759=new vt(),_0x53b87f=[],_0x3b375f=new Map(),_0x20f92e=this['editor']['model'],_0x4196c3=_0x20f92e['schema'],_0x2beefd=[_0xef0759],_0x2fafe5={},_0x5d6359={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3c7cc2=null;const _0x1ad39c=[0x0];for(let _0x11ef5f=0x0;_0x11ef5f<_0x49fded['length'];_0x11ef5f++)if('elementStart'===_0x49fded[_0x11ef5f]['type']){_0x49fded[_0x11ef5f]['previousPosition']=_0x20f92e['createPositionFromPath'](_0xef0759,_0x1ad39c);const _0x2a62c4=new ut(_0x49fded[_0x11ef5f]['item']['name'],_0x49fded[_0x11ef5f]['item']['getAttributes']());_0x2beefd[0x0]['_appendChild'](_0x2a62c4),_0x1ad39c['push'](0x0),_0x2beefd['unshift'](_0x2a62c4),_0x49fded[_0x11ef5f]['nextPosition']=_0x20f92e['createPositionFromPath'](_0xef0759,_0x1ad39c);}else'elementEnd'===_0x49fded[_0x11ef5f]['type']?(_0x2beefd['shift'](),_0x49fded[_0x11ef5f]['previousPosition']=_0x20f92e['createPositionFromPath'](_0xef0759,_0x1ad39c),_0x1ad39c['pop'](),_0x1ad39c[_0x1ad39c['length']-0x1]++,_0x49fded[_0x11ef5f]['nextPosition']=_0x20f92e['createPositionFromPath'](_0xef0759,_0x1ad39c)):(_0x49fded[_0x11ef5f]['previousPosition']=_0x20f92e['createPositionFromPath'](_0xef0759,_0x1ad39c),_0x3c7cc2?_0x3c7cc2['_data']+=_0x49fded[_0x11ef5f]['item']['data']:_0x3c7cc2=new gt(_0x49fded[_0x11ef5f]['item']['data'],_0x49fded[_0x11ef5f]['item']['getAttributes']()),_0x49fded[_0x11ef5f+0x1]&&'text'===_0x49fded[_0x11ef5f+0x1]['type']&&_0x3e9e2c(_0x3c7cc2,_0x49fded[_0x11ef5f+0x1]['item'])||(_0x2beefd[0x0]['_appendChild'](_0x3c7cc2),_0x3c7cc2=null),_0x1ad39c[_0x1ad39c['length']-0x1]+=_0x49fded[_0x11ef5f]['item']['offsetSize'],_0x49fded[_0x11ef5f]['nextPosition']=_0x20f92e['createPositionFromPath'](_0xef0759,_0x1ad39c));for(let _0x1017d9=0x0;_0x1017d9<_0x49fded['length'];_0x1017d9++){const _0x33c86f=_0x49fded[_0x1017d9]['previousPosition'],_0x499e5b=_0x49fded[_0x1017d9]['nextPosition'];for(const _0x3bfc7a of _0x49fded[_0x1017d9]['markersStart'])_0x3b375f['set'](_0x3bfc7a,{'start':_0x33c86f,'end':null});_0x15a0cd('isRemoveSuggestion',_0x1017d9,_0x33c86f,_0x499e5b),_0x15a0cd('isAddSuggestion',_0x1017d9,_0x33c86f,_0x499e5b),_0x15a0cd('isRemoved',_0x1017d9,_0x33c86f,_0x499e5b),_0x15a0cd('isAdded',_0x1017d9,_0x33c86f,_0x499e5b);for(const _0x3e850a of _0x49fded[_0x1017d9]['markersEnd']){const _0x4863da=_0x3b375f['get'](_0x3e850a);_0x4863da?_0x4863da['end']=_0x499e5b:_0x3b375f['set'](_0x3e850a,{'start':_0x499e5b,'end':_0x499e5b});}}for(const [_0x2a08f9,_0x5b2bc8]of _0x3b375f){const _0x309203=this['editor']['model']['createRange'](_0x5b2bc8['start'],_0x5b2bc8['end']);_0xef0759['markers']['set'](_0x2a08f9,_0x309203);}return _0x53b87f['sort']((_0x41beea,_0x528a88)=>{const _0x35cfbd=_0xef0759['markers']['get']('revision:'+_0x41beea['id']),_0x32f2cd=_0xef0759['markers']['get']('revision:'+_0x528a88['id']);return _0x35cfbd['start']['isBefore'](_0x32f2cd['start'])?-0x1:_0x35cfbd['start']['isAfter'](_0x32f2cd['start'])?0x1:_0x35cfbd['end']['isBefore'](_0x32f2cd['end'])?-0x1:_0x35cfbd['end']['isAfter'](_0x32f2cd['end'])?0x1:'add'===_0x41beea['type']?-0x1:0x1;}),{'root':_0xef0759,'changes':_0x53b87f};function _0x15a0cd(_0x2ef432,_0x2ba6b1,_0xf5799a,_0xe54901){const _0x3f79da=!!_0x49fded[_0x2ba6b1][_0x2ef432],_0x53e054=_0x3f79da?_0x49fded[_0x2ba6b1][_0x2ef432]['userId']:null,_0x2137c8=_0x2ba6b1===_0x49fded['length']-0x1,_0x4ac635=_0x5d6359[_0x2ef432][0x0],_0x5a710f=_0x4196c3['isObject'](_0x49fded[_0x2ba6b1]['item']);!_0x2fafe5[_0x2ef432]&&_0x3f79da?_0x2fafe5[_0x2ef432]={'start':_0xf5799a,'tapeItem':_0x49fded[_0x2ba6b1],'userId':_0x53e054,'type':_0x2ef432}:_0x2fafe5[_0x2ef432]&&!_0x3f79da?(_0x2fafe5[_0x2ef432]['end']=_0xf5799a,_0x503418(_0x2fafe5[_0x2ef432]),_0x2fafe5[_0x2ef432]=null):_0x2fafe5[_0x2ef432]&&_0x3f79da&&_0x2fafe5[_0x2ef432]['userId']!==_0x53e054&&(_0x2fafe5[_0x2ef432]['end']=_0xf5799a,_0x4ac635&&_0x4ac635['userId']===_0x2fafe5[_0x2ef432]['userId']||_0x503418(_0x2fafe5[_0x2ef432]),_0x2fafe5[_0x2ef432]={'start':_0xf5799a,'tapeItem':_0x49fded[_0x2ba6b1],'userId':_0x53e054,'type':_0x2ef432}),_0x2fafe5[_0x2ef432]&&_0x5a710f&&('elementStart'!==_0x49fded[_0x2ba6b1]['type']||_0x4ac635&&_0x4ac635['userId']===_0x53e054||_0x5d6359[_0x2ef432]['unshift']({'userId':_0x53e054,'object':_0x49fded[_0x2ba6b1]['item'],'change':_0x2fafe5[_0x2ef432]}),'elementEnd'===_0x49fded[_0x2ba6b1]['type']&&_0x4ac635&&_0x4ac635['object']===_0x49fded[_0x2ba6b1]['item']&&(_0x5d6359[_0x2ef432]['shift'](),_0x2fafe5[_0x2ef432]=_0x4ac635['change'])),_0x2fafe5[_0x2ef432]&&_0x2137c8&&(_0x2fafe5[_0x2ef432]['end']=_0xe54901,_0x503418(_0x2fafe5[_0x2ef432]),_0x2fafe5[_0x2ef432]=null);}function _0x503418({start:_0x4b9085,end:_0x398f43,tapeItem:_0x33c2cd,userId:_0x3a3b58,type:_0x559c8d}){const _0x1f39d0=_0x33c2cd['item'],_0x45eb1d=_0x20f92e['schema']['isBlock'](_0x1f39d0)&&!_0x20f92e['schema']['isLimit'](_0x1f39d0),_0x321122=_0x4b9085['nodeAfter']==_0x398f43['parent']&&_0x398f43['isAtStart'];if(_0x45eb1d&&_0x321122)return;const _0x2365c5=_0x20f92e['createRange'](_0x4b9085,_0x398f43),_0x317ce8=_0x13b77d['get'](_0x3a3b58),_0x1fc9ea=new r({'author':_0x317ce8,'type':'isAdded'==_0x559c8d||'isAddSuggestion'==_0x559c8d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x559c8d||'isRemoveSuggestion'==_0x559c8d},'createdAt':new Date(),'rootName':_0x5493ca});_0x53b87f['push'](_0x1fc9ea),_0xef0759['markers']['set']('revision:'+_0x1fc9ea['id'],_0x2365c5);}function _0x3e9e2c(_0x160ee0,_0x20b8b2){const _0x31703e=_0x160ee0['getAttributes'](),_0x5a7e33=_0x20b8b2['getAttributes']();for(const _0x421ad9 of _0x31703e){if(_0x421ad9[0x1]!==_0x20b8b2['getAttribute'](_0x421ad9[0x0]))return!0x1;_0x5a7e33['next']();}return _0x5a7e33['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x12dfc1=>{const _0x1690bd=_0x12dfc1['markerName']['split'](':')[0x1],_0x2fdec4=this['_getChangeFromId'](_0x1690bd);if(!_0x2fdec4)return null;const _0x1d266a='add'==_0x2fdec4['type']?'insertion':'deletion',_0x1a7ccf=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1d266a];return _0x2fdec4['data']['isSuggestion']&&_0x1a7ccf['push']('ck-suggestion-marker-'+_0x1d266a+'-new'),this['activeChange']==_0x2fdec4&&_0x1a7ccf['push']('ck-suggestion-marker--active'),{'classes':_0x1a7ccf,'attributes':{'data-change-id':_0x1690bd}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x35cbb2=>{_0x35cbb2['on']('element:pre',(_0x476e78,_0x494012,_0x7964e0)=>{const _0xe2af2b=_0x494012['viewItem']['getChild'](0x0);if(!_0xe2af2b||!_0xe2af2b['is']('element','code'))return;if(!_0x7964e0['consumable']['consume'](_0xe2af2b,{'attributes':['vid_start','vid_end']}))return;const _0x3fc8ab=_0x494012['modelRange']['start']['nodeAfter'];_0x7964e0['writer']['setAttribute']('vid_start',_0xe2af2b['getAttribute']('vid_start'),_0x3fc8ab),_0x7964e0['writer']['setAttribute']('vid_end',_0xe2af2b['getAttribute']('vid_end'),_0x3fc8ab);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3fb7bb=>{_0x3fb7bb['on']('element',(_0x5aa94b,_0x4f49d6,_0xb219ab)=>{if(!_0xb219ab['consumable']['consume'](_0x4f49d6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4f49d6['modelRange']['isCollapsed'])return;const _0x1e216d=_0x4f49d6['modelRange']['start']['nodeAfter'];_0x1e216d['hasAttribute']('vid_start')||_0x1e216d['hasAttribute']('vid')||(_0xb219ab['writer']['setAttribute']('vid_start',_0x4f49d6['viewItem']['getAttribute']('vid_start'),_0x1e216d),_0xb219ab['writer']['setAttribute']('vid_end',_0x4f49d6['viewItem']['getAttribute']('vid_end'),_0x1e216d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x500d35=>_0x500d35['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x59b8dd,[,_0xec2481])=>{['vid_start','vid_end','vid']['includes'](_0xec2481)&&(_0x59b8dd['return']=!0x0,_0x59b8dd['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4a8d24=>{_0x4a8d24['on']('attribute:vid',(_0x27e110,_0x5ad23c,_0x4ec233)=>{if('\x20'!=_0x5ad23c['item']['data']||_0x5ad23c['item']['parent']['maxOffset']>0x1)return;if(!_0x4ec233['consumable']['consume'](_0x5ad23c['item'],_0x27e110['name']))return;const _0x44f8ab=_0x4ec233['writer'],_0x273aa3=_0x4ec233['mapper']['toViewRange'](_0x5ad23c['range']);_0x44f8ab['wrap'](_0x273aa3,_0x44f8ab['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x6ddbf2){const _0x12dfce=_0x6ddbf2['plugins']['get']('RevisionViewer');return(_0x3b89f3,_0x44b16d,_0x35169c)=>{const _0x5cc38c=_0x44b16d['markerName']['split'](':')[0x1],_0x59ef38=_0x12dfce['_getChangeFromId'](_0x5cc38c);if(!_0x59ef38)return null;const _0x46f263='add'==_0x59ef38['type']?'split':'merge';if(!_0x35169c['consumable']['test'](_0x44b16d['markerRange'],_0x3b89f3['name']))return;const _0x20ab6e=_0x44b16d['markerRange']['getWalker'](),_0x1347ce=_0x44b16d['markerRange']['start'],_0x55acbc=_0x6ddbf2['model']['schema'];let _0xdc74ec=null,_0x427fdb=null,_0x40396f=!0x1,_0x43af05=!0x1;for(const _0x5b7f16 of _0x20ab6e){const _0x525a5b=_0x5b7f16['item'];_0x40396f=_0x40396f||_0x55acbc['isContent'](_0x525a5b);const _0xc7829=_0x35169c['mapper']['toViewElement'](_0x525a5b);if(_0xc7829&&_0xc7829['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b7f16['type']&&(_0x55acbc['isBlock'](_0x525a5b)&&!_0x55acbc['isLimit'](_0x525a5b)&&(_0x525a5b['nextSibling']||_0x1347ce['isAtEnd']?_0xdc74ec&&_0xdc74ec['parent']==_0x525a5b||(_0xdc74ec=_0x525a5b,_0x1a3da7(_0x5b7f16['previousPosition']),_0x43af05=!0x0):_0x427fdb=_0x427fdb||_0x5b7f16['previousPosition']));}function _0x1a3da7(_0x2c6962){const _0x4d067b=_0x35169c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46f263}),_0x586d8c=_0x35169c['mapper']['toViewPosition'](_0x2c6962);_0x59ef38['data']['isSuggestion']&&_0x35169c['writer']['addClass']('ck-suggestion-marker-'+_0x46f263+'-new',_0x4d067b),_0x12dfce['activeChange']==_0x59ef38&&_0x35169c['writer']['addClass']('ck-suggestion-marker--active',_0x4d067b),_0x35169c['writer']['insert'](_0x586d8c,_0x4d067b),_0x35169c['mapper']['bindElementToMarker'](_0x4d067b,_0x44b16d['markerName']);}_0x40396f||_0x43af05||!_0x427fdb||_0x1a3da7(_0x427fdb);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2d6735,_0x14c93c,_0x378171)=>{const _0x1e2c29=_0x378171['mapper']['markerNameToElements'](_0x14c93c['markerName']);if(_0x1e2c29){for(const _0x4ef9c6 of _0x1e2c29)(_0x4ef9c6['hasClass']('ck-suggestion-marker-split')||_0x4ef9c6['hasClass']('ck-suggestion-marker-merge'))&&(_0x378171['mapper']['unbindElementFromMarkerName'](_0x4ef9c6,_0x14c93c['markerName']),_0x378171['writer']['remove'](_0x4ef9c6));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x152ad0,_0xf05fde,_0xcc8254)=>{const _0x29a602=_0xf05fde['markerName']['split'](':')[0x1],_0x7f5e4a=this['_getChangeFromId'](_0x29a602);if(!_0x7f5e4a)return null;const _0x20bf6e='add'==_0x7f5e4a['type']?'split':'merge';if(_0xcc8254['consumable']['test'](_0xf05fde['markerRange'],_0x152ad0['name']))for(const _0x25d39a of _0xf05fde['markerRange']['getItems']()){if(!_0x25d39a['is']('element','softBreak'))continue;const _0x3a52cc=_0xcc8254['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20bf6e}),_0x53df27=_0xcc8254['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x25d39a));_0x7f5e4a['data']['isSuggestion']&&_0xcc8254['writer']['addClass']('ck-suggestion-marker-'+_0x20bf6e+'-new',_0x3a52cc),this['activeChange']==_0x7f5e4a&&_0xcc8254['writer']['addClass']('ck-suggestion-marker--active',_0x3a52cc),_0xcc8254['writer']['insert'](_0x53df27,_0x3a52cc),_0xcc8254['mapper']['bindElementToMarker'](_0x3a52cc,_0xf05fde['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x154fdd=>{for(const _0x10156 of this['editor']['model']['document']['getRootNames']()){const _0x348092=this['editor']['model']['document']['getRoot'](_0x10156),_0x8e8559=this['editor']['editing']['view']['document']['getRoot'](_0x10156);if(_0x8e8559){const _0x35f853=_0x348092['getAttribute']('revisionHistoryAttachChange');if(_0x154fdd['removeAttribute']('data-change-id',_0x8e8559),_0x154fdd['removeClass']('ck-revision-history-root-add',_0x8e8559),_0x154fdd['removeClass']('ck-revision-history-root-remove',_0x8e8559),_0x154fdd['removeClass']('ck-revision-history-root--active',_0x8e8559),_0x35f853){const _0x825393=this['_getChangeFromId'](_0x35f853);if(!_0x825393)return null;_0x154fdd['setAttribute']('data-change-id',_0x35f853,_0x8e8559),_0x154fdd['addClass']('ck-revision-history-root-'+_0x825393['type'],_0x8e8559),this['activeChange']==_0x825393&&_0x154fdd['addClass']('ck-revision-history-root--active',_0x8e8559);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5d4fcd=>'revision-comment:'+_0x5d4fcd,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xc43a87=>'revision-suggestion:'+_0xc43a87,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x197532=>({'name':'suggestion:'+_0x197532,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2fc93c=>{const _0x53de87=_0x2fc93c['markerName']['split'](':')[0x1];return'insertion'!=_0x53de87&&'deletion'!=_0x53de87?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x53de87]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3a0416,_0x61cb20,_0x520679)=>{const _0x2f1ab4=_0x520679['mapper']['markerNameToElements'](_0x61cb20['markerName']);if(_0x2f1ab4){for(const _0x66df0e of _0x2f1ab4)_0x66df0e['is']('uiElement')&&(_0x520679['mapper']['unbindElementFromMarkerName'](_0x66df0e,_0x61cb20['markerName']),_0x520679['writer']['remove'](_0x66df0e));}},{'priority':'high'});}['_getChangeFromId'](_0x584431){return this['_changeIdToChange']['get'](_0x584431);}['_getViewForChange'](_0x227c00){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x227c00),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4b2b73,_0x42518b,_0x468540,_0xe44431)=>{_0xe44431&&this['_balloon']['remove'](_0xe44431),_0x468540&&(this['_balloon']['add']({'view':_0x468540,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4e9e71=this['editor']['editing'],_0x2af0d9=this['_getChangeFromId'](_0x468540['changeId']);let _0x1ae347;if(_0x2af0d9['data']['isOnRoot']){const _0x536dc4=_0x4e9e71['view']['getDomRoot'](_0x2af0d9['rootName']);_0x1ae347=Array['from'](_0x536dc4['getClientRects']());}else{const _0x4737fe=this['editor']['model']['markers']['get']('revision:'+_0x468540['changeId']);_0x1ae347=Array['from'](_0x4e9e71['mapper']['markerNameToElements'](_0x4737fe['name']))['map'](_0x21071d=>_0x4e9e71['view']['domConverter']['mapViewToDom'](_0x21071d))['map'](_0x56133d=>Array['from'](_0x56133d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1ae347[0x0];return _0x1ae347['find'](_0x2b460c=>_0x2b460c['top']-0x3<=this['_activeViewTarget']['y']&&_0x2b460c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2b460c['left']-0x3<=this['_activeViewTarget']['x']&&_0x2b460c['right']+0x3>=this['_activeViewTarget']['x'])||_0x1ae347[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x20f16e,_0x12cfdc,_0x1b7e04,_0x1e6e3a)=>{this['activeView']=_0x1b7e04?this['_getViewForChange'](_0x1b7e04):null,this['editor']['model']['change'](()=>{const _0x4647bc=this['editor']['editing'];_0x1e6e3a&&(_0x1e6e3a['data']['isOnRoot']?_0x4647bc['view']['change'](_0x15d48f=>{_0x15d48f['removeClass']('ck-revision-history-root--active',_0x4647bc['view']['document']['getRoot'](_0x1e6e3a['rootName']));}):_0x4647bc['reconvertMarker']('revision:'+_0x1e6e3a['id'])),_0x1b7e04&&(_0x1b7e04['data']['isOnRoot']?_0x4647bc['view']['change'](_0x62dfa4=>{_0x62dfa4['addClass']('ck-revision-history-root--active',_0x4647bc['view']['document']['getRoot'](_0x1b7e04['rootName']));}):_0x4647bc['reconvertMarker']('revision:'+_0x1b7e04['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x59122d,_0x4d9f3f)=>{if(this['activeChange'])return;const _0x3f2df8=this['_findChangeIdFromDomTarget'](_0x4d9f3f['target']),_0x1e9132=this['_changeIdToChange']['get'](_0x3f2df8);_0x1e9132?(this['_activeViewTarget']={'x':_0x4d9f3f['domEvent']['x'],'y':_0x4d9f3f['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1e9132)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2b193f,_0x8edbef)=>{const _0x3be4b1=this['_findChangeIdFromDomTarget'](_0x8edbef['target']),_0xf772d0=this['_changeIdToChange']['get'](_0x3be4b1);_0xf772d0?(this['_activeViewTarget']={'x':_0x8edbef['domEvent']['x'],'y':_0x8edbef['domEvent']['y']},_0xf772d0===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xf772d0):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x601285){do{const _0x3ba6d7=_0x601285['getAttribute']('data-change-id');if(_0x3ba6d7)return _0x3ba6d7;_0x601285=_0x601285['parent'];}while(_0x601285);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x42c206=>{for(const _0x2d266b of this['editor']['model']['markers'])_0x42c206['removeMarker'](_0x2d266b);});}}function X(_0x143863,_0x5a9e47){return(_0x469df6,_0x21e15e,_0x137a42)=>{if(!_0x137a42['consumable']['test'](_0x21e15e['markerRange'],_0x469df6['name']))return;const _0x287db4=_0x21e15e['markerRange']['getWalker'](),_0x4d2191=_0x21e15e['markerRange']['start'],_0x18a430=_0x143863['model']['schema'];let _0x53c1ae=null,_0x17b5f6=null,_0x1eede9=!0x1,_0x30d467=!0x1;for(const _0x103b85 of _0x287db4){const _0x5dbe40=_0x103b85['item'];_0x1eede9=_0x1eede9||_0x18a430['isContent'](_0x5dbe40);const _0x8d62d3=_0x137a42['mapper']['toViewElement'](_0x5dbe40);if(_0x8d62d3&&_0x8d62d3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x103b85['type']&&(_0x18a430['isBlock'](_0x5dbe40)&&!_0x18a430['isLimit'](_0x5dbe40)&&(_0x5dbe40['nextSibling']||_0x4d2191['isAtEnd']?_0x53c1ae&&_0x53c1ae['parent']==_0x5dbe40||(_0x53c1ae=_0x5dbe40,_0x355385(_0x103b85['previousPosition']),_0x30d467=!0x0):_0x17b5f6=_0x17b5f6||_0x103b85['previousPosition']));}function _0x355385(_0x3fab98){const _0x3f8a2e=_0x137a42['mapper']['toViewPosition'](_0x3fab98),_0x42bc65=_0x137a42['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5a9e47});_0x137a42['writer']['insert'](_0x3f8a2e,_0x42bc65),_0x137a42['mapper']['bindElementToMarker'](_0x42bc65,_0x21e15e['markerName']);}_0x1eede9||_0x30d467||!_0x17b5f6||_0x355385(_0x17b5f6);};}class mt extends _0x2f7e6b{constructor(_0x2559c4){super(_0x2559c4);const _0x582ad4=_0x2559c4['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x582ad4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x582ad4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x469458=this['editor'],_0x3bedc3=_0x469458['plugins']['get'](m),_0x383598=_0x3bedc3['isReady']?_0x3bedc3['diff']['newRevisionId']:null;_0x469458['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x383598);}['refresh'](){const {isReady:_0x3a5473,isEnabled:_0x47f98a,repository:_0x27bc75,diff:_0x49759e}=this['editor']['plugins']['get'](m),_0x568980=_0x49759e&&_0x27bc75['getLaterVisibleRevision'](_0x49759e['newRevisionId']);this['isEnabled']=_0x3a5473&&_0x47f98a&&Boolean(_0x568980);}}class wt extends _0x2f7e6b{['_step'];constructor(_0x5df757,{direction:_0xff900f}){super(_0x5df757);const _0x1e7b11=_0x5df757['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0xff900f?0x1:-0x1,this['listenTo'](_0x1e7b11,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1e7b11,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1e7b11,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x407424=this['editor'],_0xea8357=_0x407424['plugins']['get'](m),{isNavigationMode:_0x4eb529,currentChangeNumber:_0x3b9ce9}=_0xea8357;let _0x7f7129;if(_0xea8357['activeChange']=_0x4eb529?_0xea8357['diff']['changes']['get'](_0x3b9ce9+this['_step']):_0xea8357['diff']['changes']['first'],_0xea8357['activeChange']['data']['isOnRoot'])_0x7f7129=_0x407424['editing']['view']['getDomRoot'](_0xea8357['activeChange']['rootName']);else{const _0x24d60a=_0x407424['model']['markers']['get']('revision:'+_0xea8357['activeChange']['id']);_0x7f7129=_0xeccf(_0x407424['editing'],_0x24d60a);}_0x513e6e({'target':_0x7f7129,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1ee9cc,currentChangeNumber:_0x3dbb4e,numberOfChanges:_0x5318bc,isReady:_0x4a72a4,isEnabled:_0x45b324}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x45b324&&_0x4a72a4&&_0x5318bc)&&(!_0x1ee9cc||(0x1===this['_step']?_0x3dbb4e<_0x5318bc-0x1:_0x3dbb4e>0x0));}}class _i extends ts{constructor(_0x579616){super(_0x579616);const _0x4f0772=this['bindTemplate'],_0x4275ec=new te(_0x579616),_0x69ef16=new te(_0x579616);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',(_0x82c1bb,_0xf70a5c)=>_0x82c1bb&&_0xf70a5c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x349777,_0x2d2938,_0x34d7e6,_0x92e6cd)=>{if(!_0x349777)return g(_0x579616,'Loading...');if(!_0x34d7e6)return g(_0x579616,'No\x20changes');const _0x1fdcaf=g(_0x579616,'NUMBER_OF_CHANGES',_0x34d7e6);return _0x92e6cd?g(_0x579616,'X_OF_Y_CHANGES',[_0x2d2938+0x1,_0x34d7e6]):_0x1fdcaf;}),_0x4275ec['set']({'label':g(_0x579616,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x33c8ee}),_0x69ef16['set']({'label':g(_0x579616,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x53c39e}),_0x4275ec['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x69ef16['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4275ec['on']('execute',()=>this['fire']('execute','backward')),_0x69ef16['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',_0x4f0772['if']('_isStatusLabelVisible','ck-hidden',_0x2c76a8=>!_0x2c76a8)]},'children':[{'text':_0x4f0772['to']('isNavigationMode',_0x3e75b0=>_0x3e75b0?g(_0x579616,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x579616,'Total')+':\x20')}]},{'text':_0x4f0772['to']('_statusText')}]},new _0x2157f2(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4275ec,_0x69ef16]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x28459c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4c4cb0=this['editor']['editing']['view'];_0x4c4cb0['change'](_0x538bbe=>{for(const _0x47a2d9 of _0x4c4cb0['document']['roots'])_0x538bbe['addClass'](le,_0x47a2d9);});}['hide'](){const _0x5a6b4a=this['editor']['editing']['view'];_0x5a6b4a['change'](_0x2d7b3b=>{for(const _0x387ec8 of _0x5a6b4a['document']['roots'])_0x2d7b3b['removeClass'](le,_0x387ec8);});}}class R extends _0x28459c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x492866=this['editor'],_0x219442=_0x492866['plugins']['get'](m),_0x190002=_0x492866['plugins']['get'](ge);_0x492866['ui']['componentFactory']['add']('exitToEditing',_0x401f34=>{const _0x2ea62e=new te(_0x401f34);return _0x2ea62e['set']({'label':g(_0x401f34,'Back\x20to\x20editing'),'icon':_0x46a6d4,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2ea62e,'execute',()=>{_0x492866['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2ea62e;}),_0x492866['ui']['componentFactory']['add']('restoreRevision',_0x3574b4=>{const _0x11d546=new te(_0x3574b4);return _0x11d546['set']({'label':g(_0x3574b4,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x11d546['bind']('isEnabled')['to'](_0x492866['commands']['get']('restoreRevision')),this['listenTo'](_0x11d546,'execute',()=>_0x492866['execute']('restoreRevision')),_0x11d546;}),_0x492866['ui']['componentFactory']['add']('changesNavigation',_0x4653e3=>{const _0x207da4=new _i(_0x4653e3),_0x2362c0=_0x492866['commands']['get']('showPreviousChange'),_0x3c6dd7=_0x492866['commands']['get']('showNextChange');return _0x207da4['bind']('isBackwardNavigationEnabled')['to'](_0x2362c0,'isEnabled'),_0x207da4['bind']('isForwardNavigationEnabled')['to'](_0x3c6dd7,'isEnabled'),_0x207da4['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x219442),this['listenTo'](_0x207da4,'execute',(_0x19f826,_0x3cbe02)=>{_0x492866['execute']('forward'===_0x3cbe02?'showNextChange':'showPreviousChange');}),_0x207da4;}),_0x190002['show'](),_0x219442['on']('change:isReady',(_0x4abbc3,_0x167b7a,_0x425efc)=>{_0x425efc?_0x190002['hide']():_0x190002['show']();});}}class at extends _0x350f46{['_resizeObserver']=null;constructor(_0x320c5d,_0x222213){super(_0x320c5d,_0x222213);const _0x317504=this['bindTemplate'];this['set']({'label':g(_0x320c5d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x320c5d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x317504['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x292c60=this['fieldView']['element'];this['_tooltipString']=_0x292c60['scrollWidth']>_0x292c60['clientWidth']&&_0x292c60['value']||'';}}class si extends ts{constructor(_0x2cbb4d,_0x56ac6b,_0x2730a1){super(_0x2cbb4d);const _0xa468b6=new _0x444b50();_0xa468b6['set']({'content':_0x5c6a42,'viewBox':'0\x200\x2011\x2010'});const _0x17aaff=['ck','ck-revision-history-sidebar__revision-author'];_0x2730a1&&_0x17aaff['push']('ck-revision-history-sidebar__revision-author_creator');const _0x28c772=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x2cbb4d,_0x2730a1?'Revision\x20creator':'Revision\x20author')},'children':[_0xa468b6,_0x56ac6b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x17aaff},'children':_0x28c772});}}function oi(_0x40b001,_0xbee116){const _0x388b33=_0x40b001['bindTemplate'],_0x125413=_0x40b001['locale'],_0x1e43b6=_0x36b37a(_0x125413);_0x1e43b6['panelPosition']='sw';const _0xc593d5=function(_0x41d6e9,_0x495f9f){const _0x1961f4=function(_0x35d984,_0x5c73e2){const _0xbeede5=_0x35d984['locale'],_0x237f49={'Compare\x20against\x20selected':g(_0xbeede5,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xbeede5,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xbeede5,'Restore\x20this\x20revision')};return _0x5c73e2['map'](_0x5b8836=>{const _0x4371ea=_0x237f49[_0x5b8836['name']];return _0x4371ea&&_0x4371ea!==_0x5b8836['name']&&(_0x5b8836['name']=_0x4371ea),_0x5b8836;});}(_0x41d6e9,_0x495f9f),_0x4d65a4=new _0xb82d43();for(const _0x376b78 of _0x1961f4){const _0x3e0a30={'type':'button','model':new to({'label':_0x376b78['name'],'class':_0x376b78['class'],'withText':!0x0,'role':'menuitem','_action':_0x376b78['action']})};_0x3e0a30['model']['bind']('isEnabled')['to'](_0x41d6e9,'isActionsDropdownOpen',_0x4dfb8f=>'function'!=typeof _0x376b78['isEnabled']||(!_0x4dfb8f||_0x376b78['isEnabled'](_0x41d6e9))),_0x4d65a4['add'](_0x3e0a30);}return _0x4d65a4;}(_0x40b001,_0xbee116);return _0x40b001['bind']('isActionsDropdownOpen')['to'](_0x1e43b6,'isOpen'),_0x1e43b6['buttonView']['set']({'label':g(_0x125413,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x30042d}),_0x1e43b6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x388b33['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x388b33['to'](_0x3469fc=>_0x3469fc['stopPropagation']())}}),_0x1e43b6['on']('execute',_0x50d5ae=>{_0x40b001['isReady']&&'function'==typeof _0x50d5ae['source']['_action']&&_0x50d5ae['source']['_action'](_0x40b001);}),_0x4a750a(_0x1e43b6,_0xc593d5,{'role':'menu'}),_0x1e43b6['listenTo'](_0x40b001,'change:isActionsDropdownOpen',(_0x31e9a4,_0x31ec9d,_0x58092c)=>{if(_0x58092c)for(const _0xa2dcf9 of _0x1e43b6['listView']['items']){const _0x3e4e36=_0xa2dcf9['children']['first'],_0x2983ad=_0xbee116['find'](_0x2b18a2=>_0x2b18a2['action']===_0x3e4e36['_action'])['isVisible'];_0xa2dcf9['isVisible']=void 0x0===_0x2983ad||_0x2983ad(_0x40b001);}}),_0x1e43b6;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x127091,_0x456fdf,_0x1fe26b,_0xf2c8f4){super(_0x127091);const _0x5b4de9=this['bindTemplate'],_0x36a3d6=function(_0x59cb6f,_0x1d6a40){const _0x4ef5ae=Array['from'](_0x1d6a40['authors'])['filter'](_0xaaca0d=>_0xaaca0d!=_0x1d6a40['creator']);return _0x1d6a40['creator']&&_0x4ef5ae['unshift'](_0x1d6a40['creator']),_0x4ef5ae['map'](_0x2c0281=>new si(_0x59cb6f,_0x2c0281,_0x2c0281==_0x1d6a40['creator']));}(_0x127091,_0x456fdf);this['id']=_0x456fdf['id'],this['_revision']=_0x456fdf,this['_requireRevisionName']=_0xf2c8f4,this['bind']('name','createdAt')['to'](_0x456fdf),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3b55a6=>{return _0xaf9459=_0x127091['uiLanguage'],(_0x26843d=_0x3b55a6)['toLocaleDateString'](_0xaf9459,{'month':'long','day':'numeric'})+',\x20'+_0x26843d['toLocaleTimeString'](_0xaf9459,{'hour':'numeric','minute':'numeric'});var _0xaf9459,_0x26843d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x127091,_0x3e2d75),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xc7ec2c=>_0xc7ec2c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xd7d1bd,_0x539b1c)=>_0xd7d1bd&&_0x539b1c),this['revisionActionsView']=_0x1fe26b&&_0x1fe26b['length']?oi(this,_0x1fe26b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5b4de9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5b4de9['if']('isEnabled','ck-disabled',_0x4701fc=>!_0x4701fc),_0x5b4de9['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5b4de9['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5b4de9['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':_0x5b4de9['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':_0x36a3d6}]},this['revisionActionsView']],'on':{'click':_0x5b4de9['to'](_0x54f146=>{_0x54f146['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x410757=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x410757,'change',()=>{this['_requireRevisionName']&&!_0x410757['value']||this['fire']('setName',{'id':this['id'],'name':_0x410757['value']}),_0x410757['value']||(_0x410757['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x55ee3b,_0x2145bb){const _0x27f58b=_0xd41bf3['fromJSDate'](_0x55ee3b)['setLocale'](_0x2145bb),_0xc94db7=_0xd41bf3['local'](),_0x3ba7cf=_0xc94db7['minus']({'days':0x1})['startOf']('day');let _0x24286e,_0x1e822b;return _0x27f58b['hasSame'](_0xc94db7,'day')?(_0x24286e=_0x27f58b['startOf']('day')['toJSDate'](),_0x1e822b=_0x27f58b['toRelativeCalendar']()):_0x27f58b['hasSame'](_0x3ba7cf,'day')?(_0x24286e=_0x3ba7cf['toJSDate'](),_0x1e822b=_0x27f58b['toRelativeCalendar']()):_0x27f58b['hasSame'](_0xc94db7,'week')?(_0x24286e=_0x27f58b['startOf']('week')['toJSDate'](),_0x1e822b=_0x27f58b['weekdayLong']||''):_0x27f58b['hasSame'](_0xc94db7,'year')?(_0x24286e=_0x27f58b['startOf']('month')['toJSDate'](),_0x1e822b=_0x27f58b['monthLong']||''):(_0x24286e=_0x27f58b['startOf']('year')['toJSDate'](),_0x1e822b=String(_0x27f58b['year'])),{'startDate':_0x24286e,'localizedPeriodName':_0x1e822b};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3a876f,_0x14ebd0,_0x1380cd,_0x5e9038){super(_0x3a876f);const _0x1cb836=ai(_0x14ebd0,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x14ebd0,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1380cd,this['_requireRevisionName']=_0x5e9038,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':_0x1cb836}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5c689b){const _0x2acfbe=new hi(this['locale'],_0x5c689b,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2acfbe);}['removeRevision'](_0x20301a){const _0x5bf207=this['revisionViews']['find'](_0x5232de=>_0x5232de['id']===_0x20301a['id']);this['revisionViews']['remove'](_0x5bf207);}}class as extends ts{constructor(_0x381958){super(_0x381958);const _0x3a76a8=new _0x444b50();_0x3a76a8['content']=_0x186557,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3a76a8,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x381958,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4eddf9,_0x1d2121,_0x7b36fc,_0xc51b75){super(_0x4eddf9);const _0x1895aa=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1d2121,this['_revisionActions']=_0x7b36fc,this['_requireRevisionName']=_0xc51b75,this['on']('select',(_0x246393,_0x3554bf)=>{this['fire']('revisionSelected',_0x3554bf);}),this['on']('setName',(_0x45c2c2,_0xd4cbaf)=>{this['fire']('revisionSetName',_0xd4cbaf);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4eddf9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1895aa['if']('isEnabled','ck-disabled',_0x51f613=>!_0x51f613)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x214f4e of this['_revisions'])this['_addRevision'](_0x214f4e);this['_revisions']['on']('add',(_0x287f42,_0x2b0745)=>{this['_addRevision'](_0x2b0745);}),this['_revisions']['on']('remove',(_0x2eabdc,_0x55a6ae)=>{this['_removeRevision'](_0x55a6ae);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x32ad9d=>_0x32ad9d['revisionViews']['map'](_0x4ac257=>_0x4ac257))['flat']();}['selectRevision'](_0x2d3a72){for(const _0x185cde of this['revisionViews'])_0x2d3a72&&_0x2d3a72['id']===_0x185cde['id']?_0x185cde['select']():_0x185cde['deselect']();}['highlightRevisions'](_0x50bc95){for(const _0x5cf115 of this['revisionViews'])_0x50bc95['some'](({id:_0x171ff3})=>_0x171ff3===_0x5cf115['id'])?_0x5cf115['highlight']():_0x5cf115['unhighlight']();}['_addRevision'](_0x131c74){const _0x277fc2=ai(_0x131c74['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5bd75d=this['timePeriodViews']['get'](0x0);_0x5bd75d&&_0x5bd75d['startDate']['getTime']()===_0x277fc2['getTime']()||(_0x5bd75d=new di(this['locale'],_0x277fc2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5bd75d)),_0x5bd75d['addRevision'](_0x131c74);}['_removeRevision'](_0x3e65b3){const _0x4f76ad=ai(_0x3e65b3['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4f76ad)['removeRevision'](_0x3e65b3);}['_getTimePeriodViewByStartDate'](_0x32a385){return this['timePeriodViews']['find'](_0x3a3f64=>_0x3a3f64['startDate']['getTime']()===_0x32a385['getTime']());}}class d extends _0x28459c{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x951075(_0x567fc9){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1c0b46,_0x3bff6e){super(_0x3bff6e),this['sourceElement']=_0x1c0b46,this['model']['document']['createRoot']();const _0x54022d=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x54022d);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5b6337,_0x4d9d7c){const _0x34c305=new this(_0x5b6337,_0x4d9d7c);return await _0x34c305['initPlugins'](),await _0x34c305['ui']['init'](_0x5b6337),await _0x34c305['data']['init'](_0x34c305['config']['get']('initialData')||''),_0x34c305['fire']('ready'),_0x34c305;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4fedf0{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19f8b7){function _0x11d07c(_0x43667a){return _0x43667a['map'](_0xc977c6=>String['fromCharCode'](_0xc977c6))['join']('');}super(_0x19f8b7),this['result']='end',_0x19f8b7[_0x11d07c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11d07c([0x76,0x69,0x65,0x77])][_0x11d07c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11d07c([0x61,0x75,0x74,0x6f]),_0x19f8b7[_0x11d07c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x11d07c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11d07c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x11d07c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x11d07c([0x6f,0x6b])});}}class k extends _0x4fedf0{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x5a7213){if(super(_0x5a7213),!this['editor']['config']['get']('revisionHistory'))throw new _0x440845('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xabafa5=>this['_showRevisionViewer']({..._0xabafa5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1d788d=>this['_closeRevisionViewer'](_0x1d788d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4576d1=>this['_restoreRevision'](_0x4576d1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x360037){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x360037;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1c06bc){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1c06bc);}['getRevision'](_0x11ec69){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x11ec69);}['getRevisions'](_0x5d4da8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5d4da8||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xf5dd52=this['editor'],_0x54187b=_0x1499fd(_0xf5dd52,p),_0x3e89d2=_0xf5dd52['plugins']['get']('RevisionTracker'),_0x4cb2a9=_0xf5dd52['plugins']['get']('Users')['users'];return _0x54187b['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x54187b['lazyRoots'],(_0x54187b['plugins']['push'](_t,m,R,class extends _0x4fedf0{static get['requires'](){return[m,'Users'];}['init'](){const _0x38835a=this['editor']['plugins']['get']('Users');for(const _0x1e8767 of _0x4cb2a9)_0x1e8767['isAnonymous']||_0x38835a['getUser'](_0x1e8767['id'])||_0x38835a['addUser'](_0x1e8767);const _0xc170b9=_0x3e89d2['repository']['getRevisions']();let _0x5953fc=null;const _0x1129bd=this['editor']['plugins']['get']('RevisionViewer');_0x1129bd['adapter']=_0x3e89d2['adapter'],_0x1129bd['bind']('isEnabled')['to'](_0x3e89d2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xf5dd52,'isReadOnly',_0x8fb93b=>!_0x8fb93b);for(const _0x414e43 of _0xc170b9){const _0x2092d0=null===_0x414e43['creator'];if(_0x2092d0&&_0x414e43['toVersion']===_0x414e43['fromVersion'])continue;const _0x51fe77=_0x414e43['toJSON']();_0x1129bd['addRevisionData'](_0x51fe77,(_0x501b2c,_0x3c7e28,_0x1ec39e)=>{if(_0x2092d0){if(_0x5953fc)_0x5953fc['_update'](_0x501b2c,_0x3c7e28);else{if(!_0x3c7e28){const _0xd2f031=_0x1ec39e['toJSON']();_0xd2f031['id']=_0x50688e(),_0x3e89d2['saveRevision'](_0xd2f031,_0x1ec39e['toVersion'])['then'](_0x455821=>{_0x5953fc=_0x455821;});}}}else _0x414e43['_update'](_0x501b2c,_0x3c7e28);});}}},d),_0x54187b);}['_enhanceShowRevisionViewerCallback'](){const _0x2d716b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x485146=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3204f6=this['editor']['plugins']['get']('Autosave');await _0x3204f6['save']();}else await _0x485146['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x30ca39=this['editor']['plugins']['get']('Dialog');_0x30ca39['isOpen']&&_0x30ca39['hide']();}const _0x5dbc1f=this['_getRevisionViewerEditorConfig']();return _0x2d716b(_0x5dbc1f)['then'](_0x3bab3f=>{return(this['_viewerEditor']=_0x3bab3f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x3bab3f);})['catch'](_0x53a147=>(console['error'](_0x53a147),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x93944a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x93944a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x35153b=this['editor']['plugins']['get']('Annotations');_0x35153b['refreshVisibility'](),_0x35153b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x46f93d){const _0x1036d7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x91bd67=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xbb625a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0xbb625a,_0x46f93d)['then'](_0x5d356a=>(_0x91bd67['style']['display']='block',_0x1036d7['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5d356a));}['_closeRevisionViewer'](_0x180173){const _0x1ce205=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1ce205['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x180173['destroy']();}async['_restoreRevision'](_0x16ce58){const _0xf814a6=this['editor'],_0x3a2c7e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5066f3=_0xf814a6['plugins']['get']('RevisionTracker'),_0x421c16=_0xf814a6['plugins']['get']('RevisionHistoryUtils'),_0x3c6aa6=_0x3a2c7e['repository']['getRevision'](_0x16ce58);let _0x23c797,_0x3bd0a5,_0x2b3c28;try{await _0x421c16['loadRevisionData'](_0x3c6aa6,this['adapter']),_0x23c797=_0x421c16['getRevisionDocumentData'](_0x3c6aa6),_0x3bd0a5=_0x421c16['getRevisionRootsAttributes'](_0x3c6aa6);}catch(_0x4828ea){return void console['error'](_0x4828ea);}_0xf814a6['model']['change'](_0x56e483=>{for(const _0x198406 of Array['from'](_0xf814a6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x56e483['removeMarker'](_0x198406);}),_0x3a2c7e['isReady']=!0x1,_0xf814a6['model']['enqueueChange'](_0x270511=>{_0x270511['setSelection'](null),_0x270511['removeSelectionAttribute'](_0xf814a6['model']['document']['selection']['getAttributeKeys']());const _0x5d8e67=Object['keys'](_0x23c797);for(const _0x33412a of _0xf814a6['model']['document']['roots'])'$graveyard'!=_0x33412a['rootName']&&_0x33412a['isAttached']()&&!_0x5d8e67['includes'](_0x33412a['rootName'])&&_0x270511['detachRoot'](_0x33412a);for(const _0x29d450 of _0x5d8e67){let _0x4d1db9=_0xf814a6['model']['document']['getRoot'](_0x29d450);_0x4d1db9&&_0x4d1db9['isAttached']()||(_0x4d1db9=_0x270511['addRoot'](_0x29d450));const _0x4dc95c=_0x3bd0a5[_0x29d450],_0x32ad46=Object['keys'](_0x4dc95c),_0x3334ef=_0x23c797[_0x29d450];for(const _0x4e538c of _0x4d1db9['getAttributeKeys']())_0x32ad46['includes'](_0x4e538c)||_0x270511['removeAttribute'](_0x4e538c,_0x4d1db9);for(const _0x70b067 of _0x32ad46)_0x270511['setAttribute'](_0x70b067,_0x3bd0a5[_0x29d450][_0x70b067],_0x4d1db9);_0x270511['remove'](_0x270511['createRangeIn'](_0x4d1db9)),_0x270511['insert'](_0xf814a6['data']['parse'](_0x3334ef,_0x4d1db9),_0x4d1db9,0x0);}});const _0x3fb86d=g(_0xf814a6['locale'],'Restored');if(_0x3c6aa6['name'])_0x2b3c28=-0x1==_0x3c6aa6['name']['indexOf'](_0x3fb86d)?_0x3fb86d+':\x20'+_0x3c6aa6['name']:_0x3c6aa6['name'];else _0x2b3c28=_0x3fb86d+':\x20'+(_0x3c6aa6['createdAt']['toLocaleDateString'](_0xf814a6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3c6aa6['createdAt']['toLocaleTimeString'](_0xf814a6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5066f3['saveRevision']({'name':_0x2b3c28}),_0x3a2c7e['isReady']=!0x0,_0xf814a6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x1cced8){super(_0x1cced8),this['_revisionViewer']=_0x1cced8['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2d764a=this['_revisionsRepository']['_revisions'],_0x1aa5d8=this['_createRevisionActions'](),_0x1345c1=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x2d764a,_0x1aa5d8,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',(_0x2972cf,_0x5889cb)=>{_0x5889cb['revisionViews']['on']('add',(_0x4cac15,_0x2aec8e)=>{_0x2aec8e['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)),_0x1345c1['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x15b32c=this['_revisionsRepository']['getRevision'](0x0);if(_0x15b32c){const _0x28252d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x15b32c['id']);this['_revisionViewer']['compare'](_0x15b32c,_0x28252d);}}['_handleRevisionSelected'](_0x3b9d31,_0x396a75){const _0x9ce3f0=this['_revisionsRepository']['getRevision'](_0x396a75['id']),_0x2b7892=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x9ce3f0['id']);this['_revisionViewer']['compare'](_0x9ce3f0,_0x2b7892);}['_handleRevisionSetName'](_0x53e783,_0x1f323a){this['_revisionsRepository']['getRevision'](_0x1f323a['id'])['setName'](_0x1f323a['name']);}['_handleDiffChange'](_0x12f09b,_0x2d689b,_0x2605de){const _0x5d81ad=this['_revisionsRepository']['getRevisionsInDiff'](_0x2605de);_0x5d81ad['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5d81ad),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5d81ad[0x0]));}['_createRevisionActions'](){const _0x14a82f=this['editor'],_0x2f8b89=d['availableRevisionActions'],_0xc269a9=_0x14a82f['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0xc269a9['length'])return _0xc269a9['map'](_0x58a490=>{const _0xd8a1d2='string'==typeof _0x58a490?Object['assign']({},_0x2f8b89[_0x58a490]):_0x58a490;return _0xd8a1d2['action']=_0xd8a1d2['action']['bind'](this,_0x14a82f),_0xd8a1d2['isVisible']&&(_0xd8a1d2['isVisible']=_0xd8a1d2['isVisible']['bind'](this,_0x14a82f)),_0xd8a1d2;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x10bb4e},_0x2cf866)=>{const _0x5852e9=_0x10bb4e['get'](m),_0x31ff32=_0x5852e9['repository'];let _0x2a1807=_0x5852e9['diff']['newRevisionId'],_0x308bf7=_0x2cf866['id'];_0x31ff32['getIndex'](_0x2a1807)>_0x31ff32['getIndex'](_0x308bf7)&&([_0x2a1807,_0x308bf7]=[_0x308bf7,_0x2a1807]),_0x5852e9['compare'](_0x2a1807,_0x308bf7);},'isVisible':({plugins:_0x56de7e},_0x2117b1)=>{const _0x261af3=_0x56de7e['get'](m);return!(_0x261af3['repository']['getRevisionsInDiff'](_0x261af3['diff'])['length']>0x2)&&!_0x2117b1['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5832fa,{id:_0x110524})=>{_0x5832fa['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x110524);},'isVisible':({plugins:_0x9bcd53},_0x201961)=>!!_0x9bcd53['get'](m)['repository']['getLaterVisibleRevision'](_0x201961['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x15bbd4},{id:_0x1c6dab,revisionNameView:_0x5d4b1b})=>{const _0x1d8199=_0x15bbd4['get'](m),_0x2c37e8=_0x1d8199['repository']['getEarlierVisibleRevision'](_0x1c6dab);_0x1d8199['compare'](_0x1c6dab,_0x2c37e8),_0x5d4b1b['focus'](),_0x5d4b1b['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3759f7,_0x16e77c){super(_0x3759f7),this['_view']=_0x16e77c,this['_toolbarConfig']=et(_0x3759f7['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x5c364f){const _0x79ccb7=this['editor'],_0x416fbc=this['view'],_0x4250cf=_0x79ccb7['editing']['view'],_0x509888=_0x416fbc['editable'],_0x316213=_0x4250cf['document']['getRoot']();_0x509888['name']=_0x316213['rootName'],_0x416fbc['render']();const _0x49acb0=_0x509888['element'];this['setEditableElement'](_0x509888['name'],_0x49acb0),_0x416fbc['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4250cf['attachDomRoot'](_0x49acb0),this['_elementReplacer']['replace'](_0x5c364f,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x42c963=this['view'],_0xc7ee6d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xc7ee6d['detachDomRoot'](_0x42c963['editable']['name']),_0x42c963['destroy']();}['_initToolbar'](){const _0x531187=this['view'];_0x531187['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x531187['stickyPanel']['limiterElement']=_0x531187['element'],_0x531187['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xa6d56a})=>_0xa6d56a),_0x531187['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x531187['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2a8181,_0x4b68ce,_0x413d08={}){super(_0x2a8181),this['stickyPanel']=new ht(_0x2a8181),this['toolbar']=new dt(_0x2a8181,{'shouldGroupWhenFull':_0x413d08['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x2a8181,_0x4b68ce);}['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
|
+
_0x276a93(_0x47957a){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x511a37,_0x32e29f){super(_0x32e29f),this['sourceElement']=_0x511a37,this['model']['document']['createRoot']();const _0x45d442=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x45d442);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4d0e7c,_0x14281b){const _0x4488c3=new this(_0x4d0e7c,_0x14281b);return await _0x4488c3['initPlugins'](),await _0x4488c3['ui']['init'](_0x4d0e7c),await _0x4488c3['data']['init'](_0x4488c3['config']['get']('initialData')||''),_0x4488c3['fire']('ready'),_0x4488c3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x28459c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4293d9){function _0x2fcd9c(_0x1eb3b8){return _0x1eb3b8['map'](_0x19f55f=>String['fromCharCode'](_0x19f55f))['join']('');}super(_0x4293d9),this['result']='end',_0x4293d9[_0x2fcd9c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fcd9c([0x76,0x69,0x65,0x77])][_0x2fcd9c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fcd9c([0x61,0x75,0x74,0x6f]),_0x4293d9[_0x2fcd9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2fcd9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fcd9c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2fcd9c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2fcd9c([0x6f,0x6b])});}}class k extends _0x28459c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2cf2f7){if(super(_0x2cf2f7),!this['editor']['config']['get']('revisionHistory'))throw new _0x85c2cc('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xf187f3=>this['_showRevisionViewer']({..._0xf187f3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2c4dcf=>this['_closeRevisionViewer'](_0x2c4dcf)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x143566=>this['_restoreRevision'](_0x143566)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x172914){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x172914;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x47d6b4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x47d6b4);}['getRevision'](_0x525f27){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x525f27);}['getRevisions'](_0x134686){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x134686||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x260192=this['editor'],_0x5a7b0d=_0x359e7a(_0x260192,p),_0x17485=_0x260192['plugins']['get']('RevisionTracker'),_0x1e4929=_0x260192['plugins']['get']('Users')['users'];return _0x5a7b0d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5a7b0d['lazyRoots'],(_0x5a7b0d['plugins']['push'](_t,m,R,class extends _0x28459c{static get['requires'](){return[m,'Users'];}['init'](){const _0x42caa1=this['editor']['plugins']['get']('Users');for(const _0xf0569d of _0x1e4929)_0xf0569d['isAnonymous']||_0x42caa1['getUser'](_0xf0569d['id'])||_0x42caa1['addUser'](_0xf0569d);const _0x41b73c=_0x17485['repository']['getRevisions']();let _0x29a022=null;const _0x6fd20a=this['editor']['plugins']['get']('RevisionViewer');_0x6fd20a['adapter']=_0x17485['adapter'],_0x6fd20a['bind']('isEnabled')['to'](_0x17485),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x260192,'isReadOnly',_0x4d97c1=>!_0x4d97c1);for(const _0x1d0375 of _0x41b73c){const _0x5a5ea8=null===_0x1d0375['creator'];if(_0x5a5ea8&&_0x1d0375['toVersion']===_0x1d0375['fromVersion'])continue;const _0x2cbd5b=_0x1d0375['toJSON']();_0x6fd20a['addRevisionData'](_0x2cbd5b,(_0x7ffac8,_0x2d5153,_0x33d4f0)=>{if(_0x5a5ea8){if(_0x29a022)_0x29a022['_update'](_0x7ffac8,_0x2d5153);else{if(!_0x2d5153){const _0x4ef27e=_0x33d4f0['toJSON']();_0x4ef27e['id']=_0x1da58b(),_0x17485['saveRevision'](_0x4ef27e,_0x33d4f0['toVersion'])['then'](_0x5e427d=>{_0x29a022=_0x5e427d;});}}}else _0x1d0375['_update'](_0x7ffac8,_0x2d5153);});}}},d),_0x5a7b0d);}['_enhanceShowRevisionViewerCallback'](){const _0x484d1d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x362f99=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x976ac9=this['editor']['plugins']['get']('Autosave');await _0x976ac9['save']();}else await _0x362f99['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x430207=this['editor']['plugins']['get']('Dialog');_0x430207['isOpen']&&_0x430207['hide']();}const _0x1a16e2=this['_getRevisionViewerEditorConfig']();return _0x484d1d(_0x1a16e2)['then'](_0x1ef03b=>{return(this['_viewerEditor']=_0x1ef03b,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x1ef03b);})['catch'](_0xae0ae8=>(console['error'](_0xae0ae8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x31baed=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x31baed(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x374e1e=this['editor']['plugins']['get']('Annotations');_0x374e1e['refreshVisibility'](),_0x374e1e['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3b660e){const _0x391fdb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x53da53=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4cf08b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4cf08b,_0x3b660e)['then'](_0x452c8b=>(_0x53da53['style']['display']='block',_0x391fdb['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x452c8b));}['_closeRevisionViewer'](_0x5dcf60){const _0x6e39a5=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x6e39a5['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5dcf60['destroy']();}async['_restoreRevision'](_0x4ca193){const _0x13512c=this['editor'],_0x148a9b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x378cf9=_0x13512c['plugins']['get']('RevisionTracker'),_0x5595d1=_0x13512c['plugins']['get']('RevisionHistoryUtils'),_0x244033=_0x148a9b['repository']['getRevision'](_0x4ca193);let _0x2663f7,_0x14b7cc,_0x49d416;try{await _0x5595d1['loadRevisionData'](_0x244033,this['adapter']),_0x2663f7=_0x5595d1['getRevisionDocumentData'](_0x244033),_0x14b7cc=_0x5595d1['getRevisionRootsAttributes'](_0x244033);}catch(_0x577551){return void console['error'](_0x577551);}_0x13512c['model']['change'](_0x484250=>{for(const _0x26ceef of Array['from'](_0x13512c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x484250['removeMarker'](_0x26ceef);}),_0x148a9b['isReady']=!0x1,_0x13512c['model']['enqueueChange'](_0x2be47b=>{_0x2be47b['setSelection'](null),_0x2be47b['removeSelectionAttribute'](_0x13512c['model']['document']['selection']['getAttributeKeys']());const _0x34eda=Object['keys'](_0x2663f7);for(const _0x37f856 of _0x13512c['model']['document']['roots'])'$graveyard'!=_0x37f856['rootName']&&_0x37f856['isAttached']()&&!_0x34eda['includes'](_0x37f856['rootName'])&&_0x2be47b['detachRoot'](_0x37f856);for(const _0x37906f of _0x34eda){let _0x401bb2=_0x13512c['model']['document']['getRoot'](_0x37906f);_0x401bb2&&_0x401bb2['isAttached']()||(_0x401bb2=_0x2be47b['addRoot'](_0x37906f));const _0x3d4896=_0x14b7cc[_0x37906f],_0x152919=Object['keys'](_0x3d4896),_0x123d06=_0x2663f7[_0x37906f];for(const _0x5ef6ec of _0x401bb2['getAttributeKeys']())_0x152919['includes'](_0x5ef6ec)||_0x2be47b['removeAttribute'](_0x5ef6ec,_0x401bb2);for(const _0x22829d of _0x152919)_0x2be47b['setAttribute'](_0x22829d,_0x14b7cc[_0x37906f][_0x22829d],_0x401bb2);_0x2be47b['remove'](_0x2be47b['createRangeIn'](_0x401bb2)),_0x2be47b['insert'](_0x13512c['data']['parse'](_0x123d06,_0x401bb2),_0x401bb2,0x0);}});const _0x14a486=g(_0x13512c['locale'],'Restored');if(_0x244033['name'])_0x49d416=-0x1==_0x244033['name']['indexOf'](_0x14a486)?_0x14a486+':\x20'+_0x244033['name']:_0x244033['name'];else _0x49d416=_0x14a486+':\x20'+(_0x244033['createdAt']['toLocaleDateString'](_0x13512c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x244033['createdAt']['toLocaleTimeString'](_0x13512c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x378cf9['saveRevision']({'name':_0x49d416}),_0x148a9b['isReady']=!0x0,_0x13512c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|